@zjpcy/simple-design 1.2.2 → 1.2.10

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.
Files changed (58) hide show
  1. package/dist/cjs/index.css +1 -1
  2. package/dist/cjs/index.js +1 -1
  3. package/dist/es/Button/Button.js +1 -1
  4. package/dist/es/Checkbox/index.js +1 -0
  5. package/dist/es/Drawer/index.js +1 -0
  6. package/dist/es/Grid/index.js +1 -0
  7. package/dist/es/Grid/styles.js +1 -0
  8. package/dist/es/Hooks/useClickOutside.js +1 -0
  9. package/dist/es/Input/InputBase.js +1 -1
  10. package/dist/es/Input/Password.js +1 -0
  11. package/dist/es/Input/Textarea.js +1 -0
  12. package/dist/es/Input/index.js +1 -1
  13. package/dist/es/Layout/LayoutContext.js +1 -0
  14. package/dist/es/Layout/index.js +1 -0
  15. package/dist/es/Layout/styles.js +1 -0
  16. package/dist/es/Menu/index.js +1 -1
  17. package/dist/es/Popconfirm/index.js +1 -0
  18. package/dist/es/Progress/index.js +1 -0
  19. package/dist/es/Table/SortableRow.js +1 -0
  20. package/dist/es/Table/index.js +1 -1
  21. package/dist/es/Tag/index.js +1 -0
  22. package/dist/es/index.css +1 -1
  23. package/dist/es/index.js +1 -1
  24. package/dist/types/components/Button/Button.d.ts +3 -2
  25. package/dist/types/components/Drawer/index.d.ts +6 -0
  26. package/dist/types/components/Drawer/styles.d.ts +0 -0
  27. package/dist/types/components/Drawer/types.d.ts +71 -0
  28. package/dist/types/components/Grid/index.d.ts +14 -0
  29. package/dist/types/components/Grid/styles.d.ts +22 -0
  30. package/dist/types/components/Grid/types.d.ts +49 -0
  31. package/dist/types/components/Input/AutoComplete.d.ts +0 -0
  32. package/dist/types/components/Input/InputBase.d.ts +2 -0
  33. package/dist/types/components/Input/Password.d.ts +11 -0
  34. package/dist/types/components/Input/Textarea.d.ts +51 -0
  35. package/dist/types/components/Input/index.d.ts +6 -2
  36. package/dist/types/components/Layout/LayoutContext.d.ts +15 -0
  37. package/dist/types/components/Layout/index.d.ts +86 -0
  38. package/dist/types/components/Layout/styles.d.ts +40 -0
  39. package/dist/types/components/Layout/types.d.ts +112 -0
  40. package/dist/types/components/Menu/index.d.ts +8 -1
  41. package/dist/types/components/Menu/styles.d.ts +7 -0
  42. package/dist/types/components/Menu/types.d.ts +56 -7
  43. package/dist/types/components/Popconfirm/index.d.ts +6 -0
  44. package/dist/types/components/Popconfirm/styles.d.ts +0 -0
  45. package/dist/types/components/Popconfirm/types.d.ts +28 -0
  46. package/dist/types/components/Progress/index.d.ts +6 -0
  47. package/dist/types/components/Progress/styles.d.ts +0 -0
  48. package/dist/types/components/Progress/types.d.ts +38 -0
  49. package/dist/types/components/Table/SortableRow.d.ts +26 -0
  50. package/dist/types/components/Table/index.d.ts +5 -1
  51. package/dist/types/components/Tag/index.d.ts +6 -0
  52. package/dist/types/components/Tag/styles.d.ts +52 -0
  53. package/dist/types/components/Tag/types.d.ts +46 -0
  54. package/dist/types/components/index.d.ts +12 -2
  55. package/package.json +1 -1
  56. package/dist/es/Navigation/index.js +0 -1
  57. package/dist/types/components/Navigation/index.d.ts +0 -5
  58. package/dist/types/components/Navigation/types.d.ts +0 -43
package/dist/cjs/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";var e=require("react/jsx-runtime"),n=require("react"),t=require("classnames"),i=require("styled-components"),r=require("react-color"),o=require("react-dom/client"),a=require("react-dom"),s=require("@dnd-kit/core"),l=require("@dnd-kit/sortable"),c=require("@dnd-kit/utilities");function d(e){return e&&e.__esModule?e:{default:e}}var u=d(n),p=d(t),h=d(i),f=d(a),m=function(){return m=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},m.apply(this,arguments)};function g(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)n.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(t[i[r]]=e[i[r]])}return t}function v(e,n,t,i){return new(t||(t=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(a,s)}l((i=i.apply(e,n||[])).next())})}function _(e,n){var t,i,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(t)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(t=1,i&&(r=2&s[0]?i.return:s[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;switch(i=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,i=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){o.label=s[1];break}if(6===s[0]&&o.label<r[1]){o.label=r[1],r=s;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(s);break}r[2]&&o.ops.pop(),o.trys.pop();continue}s=n.call(e,o)}catch(e){s=[6,e],i=0}finally{t=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function x(e,n,t){if(t||2===arguments.length)for(var i,r=0,o=n.length;r<o;r++)!i&&r in n||(i||(i=Array.prototype.slice.call(n,0,r)),i[r]=n[r]);return e.concat(i||Array.prototype.slice.call(n))}function C(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e}"function"==typeof SuppressedError&&SuppressedError;var E={path:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z",viewBox:"0 0 24 24"},O={path:"M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z",viewBox:"0 0 24 24"},T={path:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z",viewBox:"0 0 24 24"},b={path:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",viewBox:"0 0 24 24"},N={path:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z",viewBox:"0 0 24 24"},A={path:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z",viewBox:"0 0 24 24"},y={path:"M19 13H5v-2h14v2z",viewBox:"0 0 24 24"},S={path:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",viewBox:"0 0 24 24"},L={path:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",viewBox:"0 0 24 24"},I={path:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z",viewBox:"0 0 24 24"},w={path:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z",viewBox:"0 0 24 24"},M={search:E,loading:O,user:T,close:b,check:N,plus:A,minus:y,arrowLeft:S,arrowRight:L,arrowUp:I,arrowDown:w,setting:{path:"M19.14 12.94c.04-.31.06-.63.06-.94 0-.31-.02-.63-.06-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.04.31-.06.63-.06.94s.02.63.06.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z",viewBox:"0 0 24 24"},eye:{path:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z",viewBox:"0 0 24 24"},eyeOff:{path:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z",viewBox:"0 0 24 24"},trash:{path:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z",viewBox:"0 0 24 24"},edit:{path:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z",viewBox:"0 0 24 24"},download:{path:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z",viewBox:"0 0 24 24"},upload:{path:"M9 16h6v-6h4l-7-7-7 7h4v6zm-4 2h14v2H5v-2z",viewBox:"0 0 24 24"},refresh:{path:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z",viewBox:"0 0 24 24"},home:{path:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z",viewBox:"0 0 24 24"},menu:{path:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z",viewBox:"0 0 24 24"},more:{path:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",viewBox:"0 0 24 24"},bell:{path:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z",viewBox:"0 0 24 24"},mail:{path:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z",viewBox:"0 0 24 24"},calendar:{path:"M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM9 10H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm-8 4H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2z",viewBox:"0 0 24 24"},clock:{path:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z",viewBox:"0 0 24 24"},star:{path:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z",viewBox:"0 0 24 24"},starOutline:{path:"M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z",viewBox:"0 0 24 24"},heart:{path:"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z",viewBox:"0 0 24 24"},heartOutline:{path:"M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z",viewBox:"0 0 24 24"},info:{path:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z",viewBox:"0 0 24 24"},warning:{path:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z",viewBox:"0 0 24 24"},error:{path:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z",viewBox:"0 0 24 24"},success:{path:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z",viewBox:"0 0 24 24"},question:{path:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z",viewBox:"0 0 24 24"},link:{path:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z",viewBox:"0 0 24 24"},image:{path:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z",viewBox:"0 0 24 24"},folder:{path:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z",viewBox:"0 0 24 24"},file:{path:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z",viewBox:"0 0 24 24"},cloud:{path:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96z",viewBox:"0 0 24 24"},exclamation:{path:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z",viewBox:"0 0 24 24"},facebook:{path:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",viewBox:"0 0 24 24"},twitter:{path:"M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z",viewBox:"0 0 24 24"},instagram:{path:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z",viewBox:"0 0 24 24"},linkedin:{path:"M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z",viewBox:"0 0 24 24"},copy:{path:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",viewBox:"0 0 24 24"},paste:{path:"M19 2h-4.18C14.4 2 14 2.4 14 2.82V7h-4V2.82C10 2.4 9.6 2 9.18 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0h4v5h-4V2zm5 18H5V4h4v3h1.18C10.6 7 11 7.4 11 7.82V20h8V4h-4v3h-.18C14.4 7 14 7.4 14 7.82V20z",viewBox:"0 0 24 24"},cut:{path:"M17 3H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H7V5h10v14zm-1-7h-3V8h-2v4H8l4 4 4-4z",viewBox:"0 0 24 24"},select:{path:"M3 3v18h18V3H3zm16 16H5V5h14v14zM11 7h2v2h-2zm0 4h2v2h-2zm0 4h2v2h-2z",viewBox:"0 0 24 24"},fileText:{path:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z",viewBox:"0 0 24 24"},filePdf:{path:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z",viewBox:"0 0 24 24"},fileExcel:{path:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z",viewBox:"0 0 24 24"},fileWord:{path:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z",viewBox:"0 0 24 24"},arrowUpRight:{path:"M13 3h-2v5H6v2h5v8h2v-8h5v-2h-5V3z",viewBox:"0 0 24 24"},arrowDownRight:{path:"M19 15v-2h-5V6h-2v7H6v2h7v5h2v-5h5z",viewBox:"0 0 24 24"},arrowUpLeft:{path:"M11 3v5H6v2h5v8h2v-8h5v-2h-5V3h-2z",viewBox:"0 0 24 24"},arrowDownLeft:{path:"M11 19H6v-2h5v-5h2v5h5v2h-5z",viewBox:"0 0 24 24"},filter:{path:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z",viewBox:"0 0 24 24"},sort:{path:"M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z",viewBox:"0 0 24 24"},searchPlus:{path:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zm7.5 4l3.04 3.04.71-.71-3.75-3.75z",viewBox:"0 0 24 24"},searchMinus:{path:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zm7.5-2h-5v-2h5v2z",viewBox:"0 0 24 24"},shield:{path:"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z",viewBox:"0 0 24 24"},lock:{path:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z",viewBox:"0 0 24 24"},unlock:{path:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z",viewBox:"0 0 24 24"},tag:{path:"M20.59 13.41l-7.17 7.17c-.18.18-.43.29-.71.29H8c-1.1 0-1.99-.9-1.99-2V9.3c0-.28.11-.53.29-.71l7.17-7.17c.56-.56 1.41-.22 1.79.58l3.31 8.83c.38.95-.29 1.95-1.24 1.95h-2.06c-.28 0-.53.11-.71.29z",viewBox:"0 0 24 24"},bookmark:{path:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z",viewBox:"0 0 24 24"},flag:{path:"M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6h-5.6z",viewBox:"0 0 24 24"},map:{path:"M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM10 5.47l4 1.4v11.66l-4-1.4V5.47zm-5 .99l3-1.01v11.7l-3 1.16V6.46zm14 11.08l-3 1.01V6.86l3-1.16v11.7z",viewBox:"0 0 24 24"},message:{path:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z",viewBox:"0 0 24 24"},phone:{path:"M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z",viewBox:"0 0 24 24"},camera:{path:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z",viewBox:"0 0 24 24"},video:{path:"M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4z",viewBox:"0 0 24 24"},music:{path:"M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z",viewBox:"0 0 24 24"},play:{path:"M8 5v14l11-7z",viewBox:"0 0 24 24"},pause:{path:"M6 19h4V5H6v14zm8-14v14h4V5h-4z",viewBox:"0 0 24 24"},stop:{path:"M6 19h12V5H6v14z",viewBox:"0 0 24 24"},refreshCw:{path:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z",viewBox:"0 0 24 24"},refreshCcw:{path:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z",viewBox:"0 0 24 24"},undo:{path:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z",viewBox:"0 0 24 24"},redo:{path:"M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22l2.37.78C4.63 15.17 7.74 13 11.5 13c1.95 0 3.73.72 5.12 1.88L13 20h9V11l-3.6-3.6z",viewBox:"0 0 24 24"},zoomIn:{path:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zm2.5-2h-2v-2h2v2z",viewBox:"0 0 24 24"},zoomOut:{path:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z",viewBox:"0 0 24 24"},infoCircle:{path:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z",viewBox:"0 0 24 24"},warningCircle:{path:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2V7h2v7z",viewBox:"0 0 24 24"},errorCircle:{path:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z",viewBox:"0 0 24 24"},checkCircle:{path:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z",viewBox:"0 0 24 24"},questionCircle:{path:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z",viewBox:"0 0 24 24"},youtube:{path:"M10,15.5C10,16.88 8.67,18.14 6.88,18.64C5.08,19.14 3,18.47 3,17V7C3,5.53 5.08,4.86 6.88,5.36C8.67,5.86 10,7.12 10,8.5V15.5M15.5,15.5C15.5,16.88 14.17,18.14 12.38,18.64C10.58,19.14 8.5,18.47 8.5,17V7C8.5,5.53 10.58,4.86 12.38,5.36C14.17,5.86 15.5,7.12 15.5,8.5V15.5M19.83,7.41C20.22,7.69 20.39,8.14 20.39,8.64V15.36C20.39,15.86 20.22,16.31 19.83,16.59C19.63,16.72 19.39,16.79 19.14,16.79H15.41V7.21H19.14C19.39,7.21 19.63,7.28 19.83,7.41M19.14,15.56H16.5V8.44H19.14V15.56Z",viewBox:"0 0 24 24"},github:{path:"M12,2A10,10 0 0,0 2,12C2,16.42 4.87,20.17 8.84,21.5C9.34,21.58 9.5,21.27 9.5,21C9.5,20.77 9.5,20.14 9.5,19.31C6.73,19.91 6.14,17.97 6.14,17.97C5.68,16.81 5.03,16.5 5.03,16.5C4.12,15.88 5.1,15.9 5.1,15.9C6.1,15.97 6.63,16.93 6.63,16.93C7.5,18.45 8.97,18 9.54,17.76C9.63,17.11 9.89,16.67 10.17,16.42C7.95,16.17 5.62,15.31 5.62,11.5C5.62,10.39 6,9.5 6.65,8.79C6.55,8.54 6.2,7.5 6.75,6.15C6.75,6.15 7.59,5.88 9.5,7.17C10.29,6.95 11.15,6.84 12,6.84C12.85,6.84 13.71,6.95 14.5,7.17C16.41,5.88 17.25,6.15 17.25,6.15C17.8,7.5 17.45,8.54 17.35,8.79C18,9.5 18.38,10.39 18.38,11.5C18.38,15.32 16.04,16.16 13.81,16.41C14.17,16.72 14.5,17.33 14.5,18.26C14.5,19.6 14.5,20.68 14.5,21C14.5,21.27 14.66,21.59 15.17,21.5C19.14,20.16 22,16.42 22,12A10,10 0 0,0 12,2Z",viewBox:"0 0 24 24"},weibo:{path:"M19,4H5C3.89,4 3,4.89 3,6V18A2,2 0 0,0 5,20H19A2,2 0 0,0 21,18V6C21,4.89 20.1,4 19,4M19,18H5V6H19V18M9.5,8A1.5,1.5 0 0,0 8,9.5A1.5,1.5 0 0,0 9.5,11A1.5,1.5 0 0,0 11,9.5A1.5,1.5 0 0,0 9.5,8M14.5,15A1.5,1.5 0 0,0 13,16.5A1.5,1.5 0 0,0 14.5,18A1.5,1.5 0 0,0 16,16.5A1.5,1.5 0 0,0 14.5,15M18,11C18,14.87 14.87,18 11,18C7.13,18 4,14.87 4,11C4,7.13 7.13,4 11,4C14.87,4 18,7.13 18,11Z",viewBox:"0 0 24 24"},telegram:{path:"M18.88,6.85L14.19,11.54L4.76,10.43L7.26,15.53L6.21,20.21L11.89,17.4L16.8,22L18.88,15.28L18.88,6.85Z",viewBox:"0 0 24 24"},hammer:{path:"M19.66,3.99C18.87,3.63 18,3.36 17.11,3.19L15,5.41L18.59,9L20.81,7.88C20.64,7 20.37,6.12 20.01,5.34L19.66,3.99M16.59,10L13,6.41L4,15.41V19H7.58L16.59,10Z",viewBox:"0 0 24 24"},wrench:{path:"M14.71,15.88L10.83,12L14.71,8.12L13.29,6.71L9.41,10.59L5.53,6.71L4.12,8.12L7.99,12L4.12,15.88L5.53,17.29L9.41,13.41L13.29,17.29L14.71,15.88Z",viewBox:"0 0 24 24"},screwdriver:{path:"M5,18H9V20H5V18M11,5.83V17.17L8,14.17L9.41,12.76L11,14.34V5.83M21.71,4.04C22.1,3.65 22.1,3 21.71,2.63L19.37,0.29C19,-0.1 18.35,-0.1 17.96,0.29L15,3.25L18.75,7L21.71,4.04Z",viewBox:"0 0 24 24"},paintbrush:{path:"M18,4A4,4 0 0,1 22,8A4,4 0 0,1 18,12A4,4 0 0,1 14,8A4,4 0 0,1 18,4M8.5,14.5A1.5,1.5 0 0,1 7,13A1.5,1.5 0 0,1 8.5,11.5A1.5,1.5 0 0,1 10,13A1.5,1.5 0 0,1 8.5,14.5M12,17A3,3 0 0,1 9,20H3V22H9A5,5 0 0,0 14,17H12Z",viewBox:"0 0 24 24"},fileEarmark:{path:"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20Z",viewBox:"0 0 24 24"},fileEarmarkText:{path:"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M15,12V14H9V12H15M15,16V18H9V16H15M15,8H9V10H15V8Z",viewBox:"0 0 24 24"},fileEarmarkImage:{path:"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20M10,13L15,16L10,19V13Z",viewBox:"0 0 24 24"},fileEarmarkPdf:{path:"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20M10,13H8V18H10V13M12,13H10V11H12V13M14,13H12V11H14V13M16,13H14V11H16V13Z",viewBox:"0 0 24 24"},arrowUpRightSquare:{path:"M18,2A2,2 0 0,1 20,4V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4C4,2.89 4.89,2 6,2H18M17,10L12,15L7,10H17Z",viewBox:"0 0 24 24"},arrowDownRightSquare:{path:"M18,2A2,2 0 0,1 20,4V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H18M17,14L12,9L7,14H17Z",viewBox:"0 0 24 24"},arrowUpLeftSquare:{path:"M18,2A2,2 0 0,1 20,4V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H18M7,10L12,15L17,10H7Z",viewBox:"0 0 24 24"},arrowDownLeftSquare:{path:"M18,2A2,2 0 0,1 20,4V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H18M7,14L12,9L17,14H7Z",viewBox:"0 0 24 24"},compass:{path:"M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4Z",viewBox:"0 0 24 24"},mapPin:{path:"M12,11.5A2.5,2.5 0 0,1 9.5,9A2.5,2.5 0 0,1 12,6.5A2.5,2.5 0 0,1 14.5,9A2.5,2.5 0 0,1 12,11.5M12,2A7,7 0 0,0 5,9C5,14.25 12,22 12,22C12,22 19,14.25 19,9A7,7 0 0,0 12,2Z",viewBox:"0 0 24 24"},location:{path:"M12,11.5A2.5,2.5 0 0,1 9.5,9A2.5,2.5 0 0,1 12,6.5A2.5,2.5 0 0,1 14.5,9A2.5,2.5 0 0,1 12,11.5M12,2A7,7 0 0,0 5,9C5,14.25 12,22 12,22C12,22 19,14.25 19,9A7,7 0 0,0 12,2Z",viewBox:"0 0 24 24"},pencilSquare:{path:"M18,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V4A2,2 0 0,0 18,2M15.5,13.5C15.5,14.35 15.13,15.09 14.5,15.5C13.88,15.91 13.15,16.1 12.3,16.1C11.45,16.1 10.73,15.91 10.1,15.5C9.47,15.09 9.1,14.35 9.1,13.5A4.4,4.4 0 0,1 13.5,9.1C14.35,9.1 15.09,9.47 15.5,10.1C15.91,10.73 16.1,11.45 16.1,12.3C16.1,13.15 15.91,13.88 15.5,14.5V13.5M12.3,14.9C12.69,14.9 13.07,14.82 13.4,14.66C14.08,14.34 14.4,13.69 14.4,13C14.4,12.31 14.08,11.66 13.4,11.34C13.07,11.18 12.69,11.1 12.3,11.1C11.91,11.1 11.53,11.18 11.2,11.34C10.52,11.66 10.2,12.31 10.2,13C10.2,13.69 10.52,14.34 11.2,14.66C11.53,14.82 11.91,14.9 12.3,14.9Z",viewBox:"0 0 24 24"},highlighter:{path:"M6,17A2,2 0 0,1 4,15V3A1,1 0 0,1 5,2H19A1,1 0 0,1 20,3V15A2,2 0 0,1 18,17H8L6,21V17M13,9H18V15H13V9M8,9H11V15H8V9Z",viewBox:"0 0 24 24"},checkCircleFill:{path:"M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M10,17L5,12L6.41,10.59L10,14.17L17.59,6.58L19,8L10,17Z",viewBox:"0 0 24 24"},exclamationCircleFill:{path:"M11,15H13V17H11V15M11,7H13V13H11V7M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20Z",viewBox:"0 0 24 24"},infoCircleFill:{path:"M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M11,17H13V19H11V17M12,5A1,1 0 0,0 11,6A1,1 0 0,0 12,7A1,1 0 0,0 13,6A1,1 0 0,0 12,5Z",viewBox:"0 0 24 24"},laptop:{path:"M20,18H4V6H20M20,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V6C22,4.89 21.1,4 20,4Z",viewBox:"0 0 24 24"},tablet:{path:"M21,18H3V5H21M21,3H3A2,2 0 0,0 1,5V18A2,2 0 0,0 3,20H21A2,2 0 0,0 23,18V5A2,2 0 0,0 21,3Z",viewBox:"0 0 24 24"},mobile:{path:"M17,19H7V5H17M17,3H7A2,2 0 0,0 5,5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V5A2,2 0 0,0 17,3Z",viewBox:"0 0 24 24"},dollar:{path:"M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22C6.47,22 2,17.5 2,12A10,10 0 0,1 12,2M14,18H12V15H14V18M14,13H12V4H10V13H8V11L12,15L16,11V13Z",viewBox:"0 0 24 24"},euro:{path:"M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M15,18H13L11,15V13H15V18M13,9H11V7H15V10L13,9Z",viewBox:"0 0 24 24"},sun:{path:"M12,18A6,6 0 0,0 18,12A6,6 0 0,0 12,6A6,6 0 0,0 6,12A6,6 0 0,0 12,18M12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4M12,2V4M12,20V22M4.93,4.93L6.34,6.34M17.66,17.66L19.07,19.07M2,12H4M20,12H22M6.34,17.66L4.93,19.07M19.07,4.93L17.66,6.34",viewBox:"0 0 24 24"},moon:{path:"M12,3A9,9 0 0,0 3,12A9,9 0 0,0 12,21A9,9 0 0,0 21,12A9,9 0 0,0 12,3M12,19.93A7.93,7.93 0 0,1 4.07,12A7.93,7.93 0 0,1 12,4.07A7.93,7.93 0 0,1 19.93,12A7.93,7.93 0 0,1 12,19.93Z",viewBox:"0 0 24 24"},cloudSun:{path:"M19.35,10.03C18.67,6.59 15.64,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20H20C21.11,20 22,19.1 22,18C22,16.5 20.9,15.3 19.35,13.97L12,20V13L19.35,10.03Z",viewBox:"0 0 24 24"},settings:{path:"M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.22,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.22,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.68 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z",viewBox:"0 0 24 24"},tools:{path:"M21.71,20.29L20.29,21.71C20.1,21.9 19.85,22 19.59,22C19.33,22 19.08,21.9 18.88,21.71L15,17.83C13.22,19.34 10.91,20.17 8.5,20C4.91,19.96 1.84,17.59 0.89,14.15C0,10.82 1.9,7.5 5,6C5,6 6,6 7,7C7,7 8,8 8,9C10,9 11,10 12,11C13,12 14,13 15,13C16,14 17,15 18,15C19,16 20,17 20,18C22.5,20.5 22.5,22.5 21.71,20.29M5.5,18C6.33,18 7,18.67 7,19.5C7,20.33 6.33,21 5.5,21C4.67,21 4,20.33 4,19.5C4,18.67 4.67,18 5.5,18Z",viewBox:"0 0 24 24"},tool:{path:"M22.7,19.6L14.4,11.3C14.7,10.5 14.9,9.7 14.9,8.8C14.9,5.6 12.3,3 9.1,3C8.2,3 7.3,3.2 6.5,3.5L10.8,7.8L7.9,10.7L3.6,6.4C3.2,7.2 3,8.1 3,9.1C3,12.3 5.6,14.9 8.8,14.9C9.7,14.9 10.5,14.7 11.3,14.4L19.6,22.7C20,23.1 20.5,23.3 21,23.3C21.5,23.3 22,23.1 22.4,22.7C23.1,22 23.1,20.8 22.7,19.6Z",viewBox:"0 0 24 24"},mallet:{path:"M2,19.63L13.43,8.2L12.72,7.5L14.14,6.07L12,3.89C13.2,2.7 15.09,2.7 16.27,3.89L19.87,7.5L18.45,8.91H21.29L22,9.62L18.45,13.21L17.74,12.5V9.62L16.27,11.04L15.56,10.33L4.13,21.76L2,19.63Z",viewBox:"0 0 24 24"},driver:{path:"M18,1.83C17.5,1.83 17,2 16.59,2.41L13.17,5.83L15.83,8.5L19.5,4.83C20,4.33 20,3.5 19.5,3C19,2.5 18.5,1.83 18,1.83M13,4L4,13C3.5,13.5 3.5,14.5 4,15L9,20C9.5,20.5 10.5,20.5 11,20L20,11C20.5,10.5 20.5,9.5 20,9L15,4C14.5,3.5 13.5,3.5 13,4M6.5,18.5L3.5,17.5L6,15L8.5,17.5L6.5,18.5Z",viewBox:"0 0 24 24"},document:{path:"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20Z",viewBox:"0 0 24 24"},directory:{path:"M10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6H12L10,4Z",viewBox:"0 0 24 24"},"folder-open":{path:"M19,20H4C2.89,20 2,19.1 2,18V6C2,4.89 2.89,4 4,4H10L12,6H19A2,2 0 0,1 21,8H21L4,8V18L6.14,10H23.21L20.93,18.5C20.7,19.37 19.92,20 19,20Z",viewBox:"0 0 24 24"},"file-pdf":{path:"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20M7,13H9V19H7V13M10,13H12V17H10V13M13,13H15V19H13V13Z",viewBox:"0 0 24 24"},"file-text":{path:"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20M8,13H16V15H8V13M8,9H10V11H8V9M8,17H13V19H8V17Z",viewBox:"0 0 24 24"},"arrow-left":{path:"M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z",viewBox:"0 0 24 24"},"arrow-right":{path:"M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z",viewBox:"0 0 24 24"},"arrow-up":{path:"M13,20H11V8L5.5,13.5L4.08,12.08L12,4.16L19.92,12.08L18.5,13.5L13,8V20Z",viewBox:"0 0 24 24"},"arrow-down":{path:"M11,4H13V16L18.5,10.5L19.92,11.92L12,19.84L4.08,11.92L5.5,10.5L11,16V4Z",viewBox:"0 0 24 24"},"chevron-left":{path:"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",viewBox:"0 0 24 24"},"chevron-right":{path:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",viewBox:"0 0 24 24"},"m-home":{path:"M10,20V14H14V20H19V12H22L12,3L2,12H5V20H10Z",viewBox:"0 0 24 24"},"m-menu":{path:"M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z",viewBox:"0 0 24 24"},"m-search":{path:"M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z",viewBox:"0 0 24 24"},"m-close":{path:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",viewBox:"0 0 24 24"},"m-user":{path:"M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",viewBox:"0 0 24 24"},"m-edit":{path:"M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",viewBox:"0 0 24 24"},delete:{path:"M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",viewBox:"0 0 24 24"},"m-copy":{path:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z",viewBox:"0 0 24 24"},"m-out":{path:"M19,3L13,9L15,11L22,4V3M12,12.5A0.5,0.5 0 0,1 11.5,12A0.5,0.5 0 0,1 12,11.5A0.5,0.5 0 0,1 12.5,12A0.5,0.5 0 0,1 12,12.5M6,20A2,2 0 0,1 4,18C4,16.89 4.9,16 6,16A2,2 0 0,1 8,18C8,19.11 7.1,20 6,20M6,8A2,2 0 0,1 4,6C4,4.89 4.9,4 6,4A2,2 0 0,1 8,6C8,7.11 7.1,8 6,8M9.64,7.64C9.87,7.14 10,6.59 10,6A4,4 0 0,0 6,2A4,4 0 0,0 2,6A4,4 0 0,0 6,10C6.59,10 7.14,9.87 7.64,9.64L10,12L7.64,14.36C7.14,14.13 6.59,14 6,14A4,4 0 0,0 2,18A4,4 0 0,0 6,22A4,4 0 0,0 10,18C10,17.41 9.87,16.86 9.64,16.36L12,14L19,21H22V20L9.64,7.64Z",viewBox:"0 0 24 24"},bold:{path:"M13.5,15.5H10V12.5H13.5A1.5,1.5 0 0,1 15,14A1.5,1.5 0 0,1 13.5,15.5M10,6.5H13A1.5,1.5 0 0,1 14.5,8A1.5,1.5 0 0,1 13,9.5H10M15.6,10.79C16.57,10.11 17.25,9 17.25,8C17.25,5.74 15.5,4 13.25,4H7V18H14.04C16.14,18 17.75,16.3 17.75,14.21C17.75,12.69 16.89,11.39 15.6,10.79Z",viewBox:"0 0 24 24"},"m-check":{path:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",viewBox:"0 0 24 24"},"m-error":{path:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",viewBox:"0 0 24 24"},"m-warning":{path:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z",viewBox:"0 0 24 24"},"m-info":{path:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",viewBox:"0 0 24 24"},"m-loading":{path:"M12,4V2A10,10 0 0,0 2,12H4A8,8 0 0,1 12,4Z",viewBox:"0 0 24 24"},"m-phone":{path:"M6.62,10.79C8.06,13.62 10.38,15.94 13.21,17.38L15.41,15.18C15.69,14.9 16.08,14.82 16.43,14.93C17.55,15.3 18.75,15.5 20,15.5A1,1 0 0,1 21,16.5V20A1,1 0 0,1 20,21A17,17 0 0,1 3,4A1,1 0 0,1 4,3H7.5A1,1 0 0,1 8.5,4C8.5,5.25 8.7,6.45 9.07,7.57C9.18,7.92 9.1,8.31 8.82,8.59L6.62,10.79Z",viewBox:"0 0 24 24"},photograph:{path:"M4,4H7L9,2H15L17,4H20A2,2 0 0,1 22,6V18A2,2 0 0,1 20,20H4A2,2 0 0,1 2,18V6A2,2 0 0,1 4,4M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7M12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9Z",viewBox:"0 0 24 24"},printer:{path:"M18,3H6V7H18M19,12A1,1 0 0,1 18,11A1,1 0 0,1 19,10A1,1 0 0,1 20,11A1,1 0 0,1 19,12M16,19H8V14H16M19,8H5A3,3 0 0,0 2,11V17H6V21H18V17H22V11A3,3 0 0,0 19,8Z",viewBox:"0 0 24 24"},headphones:{path:"M12,1C7,1 3,5 3,10V17A3,3 0 0,0 6,20H9V12H5V10A7,7 0 0,1 12,3A7,7 0 0,1 19,10V12H15V20H18A3,3 0 0,0 21,17V10C21,5 16.97,1 12,1Z",viewBox:"0 0 24 24"},mouse:{path:"M11,1.07C7.05,1.56 4,4.92 4,9H11M4,15A8,8 0 0,0 12,23A8,8 0 0,0 20,15V11H4M13,1.07V9H20C20,4.92 16.94,1.56 13,1.07Z",viewBox:"0 0 24 24"},schedule:{path:"M19,19H5V8H19M16,1V3H8V1H6V3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3H18V1M17,12H12V17H17V12Z",viewBox:"0 0 24 24"},"m-clock":{path:"M12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22C6.47,22 2,17.5 2,12A10,10 0 0,1 12,2M12.5,7V12.25L17,14.92L16.25,16.15L11,13V7H12.5Z",viewBox:"0 0 24 24"},"m-bell":{path:"M10,21H14A2,2 0 0,1 12,23A2,2 0 0,1 10,21M21,19V20H3V19L5,17V11C5,7.9 7.03,5.17 10,4.29C10,4.19 10,4.1 10,4A2,2 0 0,1 12,2A2,2 0 0,1 14,4C14,4.1 14,4.19 14,4.29C16.97,5.17 19,7.9 19,11V17L21,19Z",viewBox:"0 0 24 24"},"m-star":{path:"M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z",viewBox:"0 0 24 24"},"m-heart":{path:"M12,21.35L10.55,20.03C5.4,15.36 2,12.27 2,8.5C2,5.41 4.42,3 7.5,3C9.24,3 10.91,3.81 12,5.08C13.09,3.81 14.76,3 16.5,3C19.58,3 22,5.41 22,8.5C22,12.27 18.6,15.36 13.45,20.03L12,21.35Z",viewBox:"0 0 24 24"},"m-download":{path:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z",viewBox:"0 0 24 24"},"m-upload":{path:"M9,16V10H5L12,3L19,10H15V16H9M5,20V18H19V20H5Z",viewBox:"0 0 24 24"},share:{path:"M18,16.08C17.24,16.08 16.56,16.38 16.04,16.85L8.91,12.7C8.96,12.47 9,12.24 9,12C9,11.76 8.96,11.53 8.91,11.3L15.96,7.19C16.5,7.69 17.21,8 18,8A3,3 0 0,0 21,5A3,3 0 0,0 18,2A3,3 0 0,0 15,5C15,5.24 15.04,5.47 15.09,5.7L8.04,9.81C7.5,9.31 6.79,9 6,9A3,3 0 0,0 3,12A3,3 0 0,0 6,15C6.79,15 7.5,14.69 8.04,14.19L15.16,18.34C15.11,18.55 15.08,18.77 15.08,19C15.08,20.61 16.39,21.91 18,21.91C19.61,21.91 20.92,20.61 20.92,19A2.92,2.92 0 0,0 18,16.08Z",viewBox:"0 0 24 24"},"external-link":{path:"M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z",viewBox:"0 0 24 24"},"m-mail":{path:"M20,8L12,13L4,8V6L12,11L20,6M20,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V6C22,4.89 21.1,4 20,4Z",viewBox:"0 0 24 24"},secure:{path:"M12,17A2,2 0 0,0 14,15C14,13.89 13.1,13 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V10C4,8.89 4.9,8 6,8H7V6A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,3A3,3 0 0,0 9,6V8H15V6A3,3 0 0,0 12,3Z",viewBox:"0 0 24 24"},open:{path:"M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V10A2,2 0 0,1 6,8H15V6A3,3 0 0,0 12,3A3,3 0 0,0 9,6H7A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,17A2,2 0 0,0 14,15A2,2 0 0,0 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17Z",viewBox:"0 0 24 24"},view:{path:"M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z",viewBox:"0 0 24 24"},off:{path:"M11.83,9L15,12.16C15,12.11 15,12.05 15,12A3,3 0 0,0 12,9C11.94,9 11.89,9 11.83,9M7.53,9.8L9.08,11.35C9.03,11.56 9,11.77 9,12A3,3 0 0,0 12,15C12.22,15 12.44,14.97 12.65,14.92L14.2,16.47C13.53,16.8 12.79,17 12,17A5,5 0 0,1 7,12C7,11.21 7.2,10.47 7.53,9.8M2,4.27L4.28,6.55L4.73,7C3.08,8.3 1.78,10 1,12C2.73,16.39 7,19.5 12,19.5C13.55,19.5 15.03,19.2 16.38,18.66L16.81,19.08L19.73,22L21,20.73L3.27,3M12,7A5,5 0 0,1 17,12C17,12.64 16.87,13.26 16.64,13.82L19.57,16.75C21.07,15.5 22.27,13.86 23,12C21.27,7.61 17,4.5 12,4.5C10.6,4.5 9.26,4.75 8,5.2L10.17,7.35C10.74,7.13 11.35,7 12,7Z",viewBox:"0 0 24 24"},"m-sort":{path:"M14,12V19.88C14.04,20.18 13.94,20.5 13.71,20.71C13.32,21.1 12.69,21.1 12.3,20.71L10.29,18.7C10.06,18.47 9.96,18.16 10,17.87V12H9.97L4.21,4.62C3.87,4.19 3.95,3.56 4.38,3.22C4.57,3.08 4.78,3 5,3V3H19V3C19.22,3 19.43,3.08 19.62,3.22C20.05,3.56 20.13,4.19 19.79,4.62L14.03,12H14Z",viewBox:"0 0 24 24"},grid:{path:"M10,4V8H14V4H10M16,4V8H20V4H16M16,10V14H20V10H16M16,16V20H20V16H16M14,20V16H10V20H14M8,20V16H4V20H8M8,14V10H4V14H8M8,8V4H4V8H8M10,14H14V10H10V14M4,2H20A2,2 0 0,1 22,4V20A2,2 0 0,1 20,22H4C2.92,22 2,21.1 2,20V4A2,2 0 0,1 4,2Z",viewBox:"0 0 24 24"},list:{path:"M3,13H21V11H3V13M3,6H21V4H3V6M3,18H21V16H3V18Z",viewBox:"0 0 24 24"},reload:{path:"M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z",viewBox:"0 0 24 24"},"volume-high":{path:"M14,3.23V5.29C16.89,6.15 19,8.83 19,12C19,15.17 16.89,17.84 14,18.7V20.77C18,19.86 21,16.28 21,12C21,7.72 18,4.14 14,3.23M16.5,12C16.5,10.23 15.5,8.71 14,7.97V16C15.5,15.29 16.5,13.76 16.5,12M3,9V15H7L12,20V4L7,9H3Z",viewBox:"0 0 24 24"},"volume-off":{path:"M12,4L9.91,6.09L12,8.18M4.27,3L3,4.27L7.73,9H3V15H7L12,20V13.27L16.25,17.52C15.58,18.04 14.83,18.46 14,18.7V20.77C15.38,20.45 16.63,19.82 17.68,18.96L19.73,21L21,19.73L12,10.73M19,12C19,12.94 18.8,13.82 18.46,14.64L19.97,16.15C20.62,14.91 21,13.5 21,12C21,7.72 18,4.14 14,3.23V5.29C16.89,6.15 19,8.83 19,12M16.5,12C16.5,10.23 15.5,8.71 14,7.97V10.18L16.45,12.63C16.5,12.43 16.5,12.21 16.5,12Z",viewBox:"0 0 24 24"},"shield-check":{path:"M12,2L4,5V11C4,16.55 7.84,21.74 12,23C16.16,21.74 20,16.55 20,11V5L12,2M10.59,16.59L7.41,13.41L8.82,12L10.59,13.76L15.18,9.17L16.59,10.58L10.59,16.59Z",viewBox:"0 0 24 24"},"shield-off":{path:"M19,11V5L12,2L5,5V11C5,14.54 6.64,17.89 9.25,20.02L3.27,4.27L4.55,3L21,19.45L19.73,20.73L17.3,18.3C15.95,19.4 14.36,20.28 12.65,20.82C11.29,20.4 10.05,19.73 8.96,18.86L11.19,16.63C11.46,16.41 11.73,16.18 12,15.92V15.92C12.56,15.36 13.07,14.76 13.5,14.11L9.89,10.5L8.47,9.08L6.59,7.2V11C6.59,12.51 7.06,13.96 7.91,15.2L9.33,16.62",viewBox:"0 0 24 24"},key:{path:"M7,14A5,5 0 0,1 12,9A5,5 0 0,1 17,14A5,5 0 0,1 12,19A5,5 0 0,1 7,14M12,11A3,3 0 0,0 9,14A3,3 0 0,0 12,17A3,3 0 0,0 15,14A3,3 0 0,0 12,11M19,7L17,7V4H15V7H12V9H15V12H17V9H19V7Z",viewBox:"0 0 24 24"},"key-outline":{path:"M12,3A7,7 0 0,1 19,10A7,7 0 0,1 12,17A7,7 0 0,1 5,10A7,7 0 0,1 12,3M12,5A5,5 0 0,0 7,10A5,5 0 0,0 12,15A5,5 0 0,0 17,10A5,5 0 0,0 12,5M19,7H17V4H15V7H12V9H15V12H17V9H19V7Z",viewBox:"0 0 24 24"},logout:{path:"M14,17V14H6V10H14V7L19,12L14,17M4,19H12V21H4A2,2 0 0,1 2,19V5A2,2 0 0,1 4,3H12V5H4V19Z",viewBox:"0 0 24 24"},login:{path:"M10,17V14H18V10H10V7L5,12L10,17M20,19H12V21H20A2,2 0 0,0 22,19V5A2,2 0 0,0 20,3H12V5H20V19Z",viewBox:"0 0 24 24"},"settings-2":{path:"M12,8A4,4 0 0,1 16,12A4,4 0 0,1 12,16A4,4 0 0,1 8,12A4,4 0 0,1 12,8M4,12C4,11.3 4.07,10.62 4.2,9.95L2,8.5L3.5,6L5.95,6.8C6.44,6.28 6.99,5.82 7.6,5.44L7.3,2.8H10.2L10.5,5.44C11.17,5.2 11.85,5.08 12.55,5.08C13.25,5.08 13.93,5.2 14.6,5.44L14.9,2.8H17.8L17.5,5.44C18.11,5.82 18.66,6.28 19.15,6.8L21.6,6L23.1,8.5L20.9,9.95C21.03,10.62 21.1,11.3 21.1,12C21.1,12.7 21.03,13.38 20.9,14.05L23.1,15.5L21.6,18L19.15,17.2C18.66,17.72 18.11,18.18 17.5,18.56L17.8,21.2H14.9L14.6,18.56C13.93,18.8 13.25,18.92 12.55,18.92C11.85,18.92 11.17,18.8 10.5,18.56L10.2,21.2H7.3L7.6,18.56C6.99,18.18 6.44,17.72 5.95,17.2L3.5,18L2,15.5L4.2,14.05C4.07,13.38 4,12.7 4,12Z",viewBox:"0 0 24 24"},sliders:{path:"M10,4H4V6H10V4M20,4H14V6H20V4M16,9H4V11H16V9M20,9H18V11H20V9M8,14H4V16H8V14M20,14H12V16H20V14M12,19H4V21H12V19M20,19H16V21H20V19Z",viewBox:"0 0 24 24"},"chart-bar":{path:"M4,19H20V21H2V3H4V19M8,17V9H10V17H8M12,17V5H14V17H12M16,17V12H18V17H16Z",viewBox:"0 0 24 24"},"chart-line":{path:"M3,17L9,11L13,15L21,7L19.6,5.6L13,12.2L9,8.2L1.6,15.6L3,17M2,19H22V21H2V19Z",viewBox:"0 0 24 24"},"chart-pie":{path:"M11,2V12H21C20.45,6.4 16,2 11,2M13,13V3.08C7.94,3.58 4,7.86 4,13C4,18.52 8.48,23 14,23C19.14,23 23.42,19.06 23.92,14H13Z",viewBox:"0 0 24 24"},clipboard:{path:"M16,4H14.18C13.76,2.84 12.69,2 11.5,2C10.31,2 9.24,2.84 8.82,4H7A2,2 0 0,0 5,6V20A2,2 0 0,0 7,22H17A2,2 0 0,0 19,20V6A2,2 0 0,0 17,4H16M11.5,4A1,1 0 0,1 12.5,5A1,1 0 0,1 11.5,6A1,1 0 0,1 10.5,5A1,1 0 0,1 11.5,4Z",viewBox:"0 0 24 24"},"clipboard-check":{path:"M9,16.17L6.83,14L5.42,15.41L9,19L18,10L16.59,8.59L9,16.17M16,4H14.18C13.76,2.84 12.69,2 11.5,2C10.31,2 9.24,2.84 8.82,4H7A2,2 0 0,0 5,6V20A2,2 0 0,0 7,22H17A2,2 0 0,0 19,20V6A2,2 0 0,0 17,4H16Z",viewBox:"0 0 24 24"},"clipboard-text":{path:"M16,4H14.18C13.76,2.84 12.69,2 11.5,2C10.31,2 9.24,2.84 8.82,4H7A2,2 0 0,0 5,6V20A2,2 0 0,0 7,22H17A2,2 0 0,0 19,20V6A2,2 0 0,0 17,4H16M8,10H16V12H8V10M8,14H16V16H8V14Z",viewBox:"0 0 24 24"},database:{path:"M12,3C7.58,3 4,4.79 4,7V17C4,19.21 7.58,21 12,21C16.42,21 20,19.21 20,17V7C20,4.79 16.42,3 12,3M12,5C15.31,5 18,6.12 18,7.5C18,8.88 15.31,10 12,10C8.69,10 6,8.88 6,7.5C6,6.12 8.69,5 12,5M6,10.5C7.26,11.35 9.43,12 12,12C14.57,12 16.74,11.35 18,10.5V13C18,14.38 15.31,15.5 12,15.5C8.69,15.5 6,14.38 6,13V10.5M6,15.5C7.26,16.35 9.43,17 12,17C14.57,17 16.74,16.35 18,15.5V17C18,18.38 15.31,19.5 12,19.5C8.69,19.5 6,18.38 6,17V15.5Z",viewBox:"0 0 24 24"},server:{path:"M4,4H20A2,2 0 0,1 22,6V10A2,2 0 0,1 20,12H4A2,2 0 0,1 2,10V6A2,2 0 0,1 4,4M4,14H20A2,2 0 0,1 22,16V20A2,2 0 0,1 20,22H4A2,2 0 0,1 2,20V16A2,2 0 0,1 4,14M6,7A1,1 0 0,0 5,8A1,1 0 0,0 6,9A1,1 0 0,0 7,8A1,1 0 0,0 6,7M6,17A1,1 0 0,0 5,18A1,1 0 0,0 6,19A1,1 0 0,0 7,18A1,1 0 0,0 6,17Z",viewBox:"0 0 24 24"},terminal:{path:"M4,5H20A2,2 0 0,1 22,7V17A2,2 0 0,1 20,19H4A2,2 0 0,1 2,17V7A2,2 0 0,1 4,5M6,8L10,12L6,16L7.41,17.41L12.83,12L7.41,6.59L6,8M13,15H18V17H13V15Z",viewBox:"0 0 24 24"},code:{path:"M8.59,16.59L4,12L8.59,7.41L7.17,6L1.17,12L7.17,18L8.59,16.59M15.41,16.59L20,12L15.41,7.41L16.83,6L22.83,12L16.83,18L15.41,16.59Z",viewBox:"0 0 24 24"},bug:{path:"M14,6H18V8H14V6M6,6H10V8H6V6M12,2A4,4 0 0,1 16,6V7H8V6A4,4 0 0,1 12,2M5,9H19V11H5V9M7,12H9V20H7V12M15,12H17V20H15V12M11,12H13V22H11V12Z",viewBox:"0 0 24 24"},gift:{path:"M20,12V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V12H20M12,2A2.5,2.5 0 0,1 14.5,4.5A2.5,2.5 0 0,1 12,7A2.5,2.5 0 0,1 9.5,4.5A2.5,2.5 0 0,1 12,2M2,8H22V12H2V8M11,12H13V22H11V12Z",viewBox:"0 0 24 24"},cart:{path:"M7,18A2,2 0 0,0 9,20A2,2 0 0,0 11,18A2,2 0 0,0 9,16A2,2 0 0,0 7,18M15,18A2,2 0 0,0 17,20A2,2 0 0,0 19,18A2,2 0 0,0 17,16A2,2 0 0,0 15,18M7.16,12H17.55L20.31,6H6L5.21,4H2V6H4L7.6,13.59L6.25,16H19V14H8.42L7.16,12Z",viewBox:"0 0 24 24"},"shopping-bag":{path:"M6,6V5A4,4 0 0,1 10,1H14A4,4 0 0,1 18,5V6H21A1,1 0 0,1 22,7V20A2,2 0 0,1 20,22H4A2,2 0 0,1 2,20V7A1,1 0 0,1 3,6H6M8,6H16V5A2,2 0 0,0 14,3H10A2,2 0 0,0 8,5V6Z",viewBox:"0 0 24 24"},"credit-card":{path:"M4,4H20A2,2 0 0,1 22,6V18A2,2 0 0,1 20,20H4A2,2 0 0,1 2,18V6A2,2 0 0,1 4,4M4,7V9H20V7H4M6,14H12V16H6V14Z",viewBox:"0 0 24 24"},wallet:{path:"M3,7H20A2,2 0 0,1 22,9V17A2,2 0 0,1 20,19H4A2,2 0 0,1 2,17V7A2,2 0 0,1 4,5H20V7H3M18,12A1,1 0 0,0 17,13A1,1 0 0,0 18,14A1,1 0 0,0 19,13A1,1 0 0,0 18,12Z",viewBox:"0 0 24 24"},"tag-outline":{path:"M20.59,13.41L11,3.83A2,2 0 0,0 9.59,3H5A2,2 0 0,0 3,5V9.59A2,2 0 0,0 3.59,11L13.17,20.59A2,2 0 0,0 16,20.59L20.59,16A2,2 0 0,0 20.59,13.41M7,7A1.5,1.5 0 0,1 8.5,5.5A1.5,1.5 0 0,1 10,7A1.5,1.5 0 0,1 8.5,8.5A1.5,1.5 0 0,1 7,7Z",viewBox:"0 0 24 24"},"bookmark-outline":{path:"M17,3H7A2,2 0 0,0 5,5V21L12,18L19,21V5A2,2 0 0,0 17,3M17,18L12,16L7,18V5H17V18Z",viewBox:"0 0 24 24"},pin:{path:"M12,2A7,7 0 0,1 19,9C19,14.25 12,22 12,22C12,22 5,14.25 5,9A7,7 0 0,1 12,2M12,6.5A2.5,2.5 0 0,0 9.5,9A2.5,2.5 0 0,0 12,11.5A2.5,2.5 0 0,0 14.5,9A2.5,2.5 0 0,0 12,6.5Z",viewBox:"0 0 24 24"},"pin-outline":{path:"M12,2A7,7 0 0,0 5,9C5,14.25 12,22 12,22C12,22 19,14.25 19,9A7,7 0 0,0 12,2M12,4A5,5 0 0,1 17,9C17,12.74 13.8,17.15 12,19.29C10.2,17.15 7,12.74 7,9A5,5 0 0,1 12,4M12,6.5A2.5,2.5 0 0,0 9.5,9A2.5,2.5 0 0,0 12,11.5A2.5,2.5 0 0,0 14.5,9A2.5,2.5 0 0,0 12,6.5Z",viewBox:"0 0 24 24"},"bell-outline":{path:"M12,22A2,2 0 0,0 14,20H10A2,2 0 0,0 12,22M18,16V11A6,6 0 0,0 12,5A6,6 0 0,0 6,11V16L4,18V19H20V18L18,16M12,7A4,4 0 0,1 16,11V16H8V11A4,4 0 0,1 12,7Z",viewBox:"0 0 24 24"},"bell-off":{path:"M2,5.27L3.28,4L20,20.72L18.73,22L16.68,19.95C15.7,20.4 14.61,20.68 13.5,20.78V22H10.5V20.78C9.62,20.7 8.74,20.48 7.91,20.14L6.5,21.55L5.23,20.28L7.05,18.46L4,15V11A6,6 0 0,1 9.08,5.08L7.61,3.61C8.98,2.59 10.55,2 12,2A6,6 0 0,1 18,8V12L20,14V15H17.82L15.82,13H18V12A4,4 0 0,0 14,8C13.46,8 12.93,8.11 12.45,8.32L9.95,5.82C10.62,5.29 11.29,5.03 12,5.03A6,6 0 0,1 18,11V16L19.18,17.18L2,5.27Z",viewBox:"0 0 24 24"}},R={search:E,loading:O,user:T,close:b,check:N,plus:A,minus:y,arrowLeft:S,arrowRight:L,arrowUp:I,arrowDown:w},D=function(e){return R[e]?R[e]:M[e]},H={small:12,medium:16,large:24},k=function(t){var i=t.type,r=t.path,o=t.viewBox,a=void 0===o?"0 0 24 24":o,s=t.size,l=void 0===s?"medium":s,c=t.color,d=void 0===c?"#339af0":c,u=t.hoverColor,p=t.spin,h=void 0!==p&&p,f=t.rotate,g=t.align,v=void 0===g?"center":g,_=t.className,x=void 0===_?"":_,C=t.style,E=t.onClick,O=n.useMemo(function(){return"number"==typeof l?l:H[l]||16},[l]),T=n.useMemo(function(){if(r)return r;if(i){var e=D(i);return(null==e?void 0:e.path)||""}return""},[i,r]),b=n.useMemo(function(){if("0 0 24 24"!==a)return a;if(i){var e=D(i);return(null==e?void 0:e.viewBox)||"0 0 24 24"}return"0 0 24 24"},[i,a]);if(!T)return null;var N=m({width:O,height:O,fill:d,transform:f?"rotate(".concat(f,"deg)"):void 0},C);return e.jsx("div",{className:"icon-container align-".concat(v," ").concat(x),children:e.jsx("svg",{viewBox:b,className:"icon ".concat(h?"icon-spin":""),style:N,onMouseEnter:function(e){u&&(e.currentTarget.style.fill=u)},onMouseLeave:function(e){u&&(e.currentTarget.style.fill=d)},onClick:E,children:e.jsx("path",{d:T})})})},P=u.default.forwardRef(function(n,t){var i=n.children,r=n.variant,o=void 0===r?"primary":r,a=n.size,s=void 0===a?"medium":a,l=n.disabled,c=void 0!==l&&l,d=n.loading,u=void 0!==d&&d,h=n.onClick,f=n.className,m=n.style,g=n.icon,v=n.type,_=void 0===v?"button":v,x=p.default("idp-btn","idp-btn--".concat(o),"idp-btn--".concat(s),{"idp-btn--disabled":c||u},f);return e.jsxs("button",{ref:t,type:_,className:x,onClick:function(){!c&&h&&h()},disabled:c,style:m,children:[u?e.jsx(k,{type:"loading",style:{marginRight:i?"2px":0}}):g?"string"==typeof g?e.jsx(k,{type:g,style:{marginRight:i?"2px":0}}):e.jsx("span",{style:{marginRight:i?"8px":0,display:"inline-flex",alignItems:"center"},children:g}):null,i]})});P.displayName="Button";var j,V,z,U,B,F,G,Y,$,W,K,Z,X,q,J,Q,ee,ne,te,ie,re,oe,ae,se=P,le=function(n){var t=n.icon,i=n.image,r=n.description,o=void 0===r?"暂无数据":r,a=n.children,s=n.size,l=void 0===s?"middle":s,c=n.style,d=n.className;return e.jsxs("div",{className:"idp-empty idp-empty--".concat(l," ").concat(d||""),style:c,children:[e.jsxs("div",{className:"idp-empty__icon-wrapper",children:[t&&e.jsx("div",{className:"idp-empty__icon",children:t}),i&&e.jsx("img",{src:i,alt:"empty",className:"idp-empty__image"}),!t&&!i&&e.jsx(k,{type:"file-text",size:"large"===l?64:"small"===l?32:48,color:"#d9d9d9"})]}),e.jsx("div",{className:"idp-empty__description",children:o}),a&&e.jsx("div",{className:"idp-empty__actions",children:a})]})},ce=function(t){var i,r,o=t.value,a=t.defaultValue,s=t.onChange,l=t.options,c=void 0===l?[]:l,d=t.placeholder,u=void 0===d?"请选择":d,p=t.disabled,h=void 0!==p&&p,f=t.size,g=void 0===f?"middle":f,v=t.style,_=t.className,C=void 0===_?"":_,E=t.allowClear,O=void 0===E||E,T=t.expandTrigger,b=void 0===T?"click":T,N=t.changeOnSelect,A=void 0!==N&&N,y=t.fieldNames,S=void 0===y?{}:y,L=t.width,I=t.dropdownWidth,w=t.dropdownHeight,M=t.dropdownStyle,R=void 0===M?{}:M,D=t.dropdownClassName,H=void 0===D?"":D,P=t.placement,j=void 0===P?"bottomLeft":P,V=t.checkbox,z=void 0!==V&&V,U=t.autoWidth,B=void 0!==U&&U,F=n.useState(!1),G=F[0],Y=F[1],$=n.useState([]),W=$[0],K=$[1],Z=n.useState([]),X=Z[0],q=Z[1],J=n.useRef(null),Q=n.useRef(null),ee=S.label,ne=void 0===ee?"label":ee,te=S.value,ie=void 0===te?"value":te,re=S.children,oe=void 0===re?"children":re,ae=n.useCallback(function(e){return e[ie]||e.value},[ie]),se=n.useCallback(function(e){return e[ne]||e.label},[ne]),ce=n.useCallback(function(e){return e[oe]||e.children},[oe]),de=n.useCallback(function(e){for(var n=[],t=c,i=function(e){var i=t.find(function(n){return ae(n)===e});if(!i)return{value:n};n.push(i),t=ce(i)||[]},r=0,o=e;r<o.length;r++){var a=i(o[r]);if("object"==typeof a)return a.value}return n},[c,ae,ce]),ue=n.useCallback(function(e){for(var n=[],t=c,i=function(e){var i=t.find(function(n){return ae(n)===e});if(!i)return{value:n};n.push(i),t=ce(i)||[]},r=0,o=e;r<o.length;r++){var a=i(o[r]);if("object"==typeof a)return a.value}return n},[c,ae,ce]),pe=n.useCallback(function(){var e=void 0!==o?o:a;return!e||Array.isArray(e)&&0===e.length?[]:z?Array.isArray(e)&&Array.isArray(e[0])?e:[e]:Array.isArray(e)&&!Array.isArray(e[0])?[e]:[]},[o,a,z]),he=n.useState(pe()),fe=he[0],me=he[1];n.useEffect(function(){var e=void 0!==o?o:a;if(!e)return me([]),void K([]);if(z){var n=void 0;n=Array.isArray(e)?0===e.length?[]:Array.isArray(e[0])?e:[e]:[],me(n);var t=n.map(function(e){return ue(e)});K(t.map(function(e){return e&&0!==e.length?e[e.length-1]:null}).filter(function(e){return null!==e}))}else{(n=Array.isArray(e)&&!Array.isArray(e[0])?e:e[0])&&n.length>0?me([n]):me([])}},[o,a,z,ue]);var ge=n.useCallback(function(e){var n=[],t=function(e,i){for(var r=0,o=e;r<o.length;r++){var a=o[r];if(ae(a)===ae(i))return n.push(se(a)),!0;var s=ce(a);if(s&&s.length>0&&t(s,i))return n.unshift(se(a)),!0}return!1};return t(c,e),n},[c,ae,se,ce]),ve=n.useCallback(function(){if(z){if(!W||0===W.length)return u;var e=W.filter(function(e){var n=ce(e);return!n||0===n.length}).map(function(e){return ge(e).join("/")});return e.length>3?e.slice(0,3).join(", ")+" +".concat(e.length-3):e.join(", ")}return 0!==fe.length&&fe[0]&&0!==fe[0].length?de(fe[0]).map(function(e){return se(e)}).join(" / "):u},[fe,W,z,de,se,u,ge,ce]),_e=n.useCallback(function(e){var n=[],t=function(e,i,r){for(var o=0,a=e;o<a.length;o++){var s=a[o],l=x(x([],r,!0),[ae(s)],!1);if(ae(s)===ae(i))return n.push.apply(n,l),!0;var c=ce(s);if(c&&c.length>0&&t(c,i,l))return!0}return!1};return t(c,e,[]),n},[c,ae,ce]),xe=n.useCallback(function(e,n){var t=_e(n),i=_e(e);if(i.length<=t.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!==i[r])return!1;return!0},[_e]),Ce=n.useCallback(function(e){var n=[],t=function(e,i,r){for(var o=0,a=e;o<a.length;o++){var s=a[o];if(ae(s)===ae(i))return n.unshift(s),!0;var l=ce(s);if(l&&l.length>0&&t(l,i,x(x([],r,!0),[s],!1)))return n.unshift(s),!0}return!1};return t(c,e,[]),n},[c,ae,ce]),Ee=n.useCallback(function(e,n,t){if(e.stopPropagation(),z){var i=x([],W,!0),r=i.findIndex(function(e){return ae(e)===ae(n)});if(r>-1){i.splice(r,1);var a=i.filter(function(e){return!xe(e,n)});i.splice.apply(i,x([0,i.length],a,!1))}else{Ce(n).forEach(function(e){-1===i.findIndex(function(n){return ae(n)===ae(e)})&&i.push(e)})}K(i);var l=i.map(function(e){return _e(e)});null==s||s(l,i),void 0===o&&me(l);var c=ce(n);if(c&&c.length>0){var d=x(x([],X.slice(0,t),!0),[ae(n)],!1);q(d)}else{d=X.slice(0,t+1);q(d)}}},[W,z,ae,ce,_e,Ce,xe,s,o,X]),Oe=n.useCallback(function(e,n){if(z){var t=x([],W,!0),i=t.findIndex(function(n){return ae(n)===ae(e)});if(i>-1){t.splice(i,1);var r=t.filter(function(n){return!xe(n,e)});t.splice.apply(t,x([0,t.length],r,!1))}else{Ce(e).forEach(function(e){-1===t.findIndex(function(n){return ae(n)===ae(e)})&&t.push(e)})}K(t);var a=t.map(function(e){return _e(e)});if(null==s||s(a,t),void 0===o&&me(a),(c=ce(e))&&c.length>0){var l=x(x([],X.slice(0,n),!0),[ae(e)],!1);q(l)}else{l=X.slice(0,n+1);q(l)}}else{var c;l=x(x([],X.slice(0,n),!0),[ae(e)],!1);if(q(l),(c=ce(e))&&c.length>0){if(A){var d=de(l);null==s||s(l,d),void 0===o&&me([l])}}else{var u=de(l);null==s||s(l,u),void 0===o&&me([l]),Y(!1),q([])}}},[X,W,z,ae,se,ce,A,de,_e,Ce,xe,s,o]),Te=n.useCallback(function(e,n){if("hover"===b){var t=x(x([],X.slice(0,n),!0),[ae(e)],!1);q(t)}},[X,b,ae]),be=n.useCallback(function(e,n,t){if(e.stopPropagation(),z){var i=ce(n);if(i&&i.length>0){var r=x(x([],X.slice(0,t),!0),[ae(n)],!1);q(r)}}else Oe(n,t)},[z,X,ae,ce,Oe]),Ne=n.useCallback(function(e){e.stopPropagation(),z?(null==s||s([],[]),K([]),void 0===o&&me([])):(null==s||s([],[]),void 0===o&&me([])),q([])},[s,o,z]),Ae=n.useCallback(function(e,n){if(e.stopPropagation(),z){var t=x([],W,!0),i=ae(n),r=t.findIndex(function(e){return ae(e)===i});if(r>-1){t.splice(r,1);var a=t.filter(function(e){return!xe(e,n)});t.splice.apply(t,x([0,t.length],a,!1));for(var l=Ce(n),c=function(e){var n=l[e],i=ae(n);if(!t.some(function(e){return ae(e)!==i&&xe(e,n)})){var r=t.findIndex(function(e){return ae(e)===i});r>-1&&t.splice(r,1)}},d=l.length-2;d>=0;d--)c(d);K(t);var u=t.map(function(e){return _e(e)});null==s||s(u,t),void 0===o&&me(u)}}},[W,z,ae,_e,Ce,xe,s,o]),ye=n.useCallback(function(){h||Y(!G)},[G,h]);n.useEffect(function(){var e=function(e){J.current&&!J.current.contains(e.target)&&(Y(!1),q([]))};return G&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}},[G]);var Se=n.useCallback(function(e){if(0===e)return c;for(var n=X.slice(0,e),t=c,i=function(e){var n=t.find(function(n){return ae(n)===e});if(!n)return{value:[]};t=ce(n)||[]},r=0,o=n;r<o.length;r++){var a=i(o[r]);if("object"==typeof a)return a.value}return t},[c,X,ae,ce]);n.useEffect(function(){z||(G&&fe.length>0&&fe[0]?q(fe[0]):G||q([]))},[G,fe,z]);var Le=n.useCallback(function(e){return!!z&&W.some(function(n){return ae(n)===ae(e)})},[W,z,ae]),Ie=n.useCallback(function(e,n){return!z&&(!(n>=fe.length||!fe[0])&&fe[0][n]===ae(e))},[fe,z,ae]),we=n.useCallback(function(e,n){return!(n>=X.length)&&X[n]===ae(e)},[X,ae]),Me=n.useCallback(function(){if(0===X.length)return 1;for(var e=X.length,n=c,t=function(e){var t=n.find(function(n){return ae(n)===e});if(!t)return"break";n=ce(t)||[]},i=0,r=X;i<r.length;i++){if("break"===t(r[i]))break}return n&&n.length>0&&e++,e},[X,c,ae,ce]),Re=n.useCallback(function(){var e=m({},v);return L&&(e.width="number"==typeof L?"".concat(L,"px"):L),B||L?B&&!L?e.minWidth="180px":!B&&L&&(e.maxWidth="number"==typeof L?"".concat(L,"px"):L):(e.minWidth="180px",e.maxWidth="100%"),e},[L,v,B]),De=n.useCallback(function(){var e=m({},R);switch(j){case"bottomLeft":e.top="100%",e.left="0",e.marginTop="4px";break;case"bottomRight":e.top="100%",e.right="0",e.marginTop="4px";break;case"topLeft":e.bottom="100%",e.left="0",e.marginBottom="4px";break;case"topRight":e.bottom="100%",e.right="0",e.marginBottom="4px"}return I&&(e.width="number"==typeof I?"".concat(I,"px"):I),w&&(e.maxHeight="number"==typeof w?"".concat(w,"px"):w),e},[I,w,R,j]);return e.jsxs("div",{ref:J,className:"cascader cascader-".concat(g," ").concat(C," ").concat(h?"cascader-disabled":""," ").concat(G?"cascader-open":""),style:Re(),children:[e.jsxs("div",{className:"cascader-trigger",onClick:ye,children:[e.jsx("span",{className:"cascader-selection-placeholder ".concat(z?W.length>0?"cascader-selection-hidden":"":fe.length>0&&(null===(i=fe[0])||void 0===i?void 0:i.length)>0?"cascader-selection-hidden":""),children:u}),z?e.jsx("div",{className:"cascader-selection-value ".concat(0===W.length?"cascader-selection-hidden":""),children:W.filter(function(e){var n=ce(e);return!n||0===n.length}).map(function(n){var t=ge(n);return e.jsxs("span",{className:"cascader-tag",children:[e.jsx("span",{className:"cascader-tag-content",children:t.join("/")}),e.jsx("span",{className:"cascader-tag-close",onClick:function(e){return!h&&Ae(e,n)},children:e.jsx(k,{type:"close",size:10})})]},ae(n))})}):e.jsx("span",{className:"cascader-selection-value ".concat(fe[0]&&0!==fe[0].length?"":"cascader-selection-hidden"),children:ve()}),e.jsx("span",{className:"cascader-arrow",children:e.jsx(k,{type:"arrowDown",size:12})}),O&&(z?W.length>0:fe.length>0&&(null===(r=fe[0])||void 0===r?void 0:r.length)>0)&&!h&&e.jsx("span",{className:"cascader-clear",onClick:Ne,children:e.jsx(k,{type:"close",size:12})})]}),G&&e.jsx("div",{className:"cascader-dropdown cascader-dropdown-".concat(j," ").concat(H),ref:Q,style:De(),children:e.jsx("div",{className:"cascader-menus",style:{width:I?void 0:"".concat(180*Me(),"px")},children:Array.from({length:Me()}).map(function(n,t){return function(n){var t=Se(n);return t&&0!==t.length?e.jsx("ul",{className:"cascader-menu cascader-menu-".concat(n," ").concat(z?"cascader-menu-checkbox":""),children:t.map(function(t,i){var r=z?Le(t):Ie(t,n),o=we(t,n),a=ce(t)&&ce(t).length>0,s=t.disabled;return e.jsxs("li",{className:"cascader-menu-item ".concat(r?"cascader-menu-item-selected":""," ").concat(o?"cascader-menu-item-active":""," ").concat(s?"cascader-menu-item-disabled":""),onClick:function(){return!s&&(z?void 0:Oe(t,n))},onMouseEnter:function(){return!s&&Te(t,n)},children:[z&&e.jsx("span",{className:"cascader-menu-item-checkbox",onClick:function(e){return!s&&Ee(e,t,n)},children:e.jsx("input",{type:"checkbox",checked:r,readOnly:!0})}),e.jsx("span",{className:"cascader-menu-item-content",onClick:function(e){return!s&&be(e,t,n)},children:se(t)}),a&&e.jsx("span",{className:"cascader-menu-item-expand-icon",children:e.jsx(k,{type:"arrowRight",size:12,color:"#bfbfbf"})})]},"".concat(ae(t),"-").concat(i))})}):e.jsx("div",{className:"cascader-menu cascader-menu-empty",children:e.jsx(le,{size:"small",description:"暂无数据"})})}(t)})})})]})},de=function(e,n){return"var(".concat(e,", ").concat(n,")")},ue=h.default.div(j||(j=C(["\n position: relative;\n display: inline-block;\n width: ",";\n min-width: 180px;\n font-size: 14px;\n color: ",";\n box-sizing: border-box;\n\n &.treeselect-wrapper {\n /* 外部可通过 .treeselect-wrapper 选择器覆盖样式 */\n }\n\n ","\n"],["\n position: relative;\n display: inline-block;\n width: ",";\n min-width: 180px;\n font-size: 14px;\n color: ",";\n box-sizing: border-box;\n\n &.treeselect-wrapper {\n /* 外部可通过 .treeselect-wrapper 选择器覆盖样式 */\n }\n\n ","\n"])),function(e){return e.$width||"100%"},de("--idp-text-color","rgba(0, 0, 0, 0.85)"),function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),pe=h.default.div(V||(V=C(["\n position: relative;\n display: flex;\n align-items: center;\n min-height: 32px;\n padding: 4px 28px 4px 11px;\n background-color: ",";\n border: 1px solid ",";\n border-radius: ",";\n cursor: pointer;\n transition: all "," ",";\n box-sizing: border-box;\n\n &.treeselect-selection {\n /* 外部可通过 .treeselect-selection 选择器覆盖样式 */\n }\n\n &:hover {\n border-color: ",";\n }\n\n ","\n\n ","\n\n ","\n\n ","\n"],["\n position: relative;\n display: flex;\n align-items: center;\n min-height: 32px;\n padding: 4px 28px 4px 11px;\n background-color: ",";\n border: 1px solid ",";\n border-radius: ",";\n cursor: pointer;\n transition: all "," ",";\n box-sizing: border-box;\n\n &.treeselect-selection {\n /* 外部可通过 .treeselect-selection 选择器覆盖样式 */\n }\n\n &:hover {\n border-color: ",";\n }\n\n ","\n\n ","\n\n ","\n\n ","\n"])),de("--idp-bg-color-white","#fff"),de("--idp-border-color-extra-light","#d9d9d9"),de("--idp-border-radius-sm","4px"),de("--idp-transition-duration","0.2s"),de("--idp-transition-timing-function","ease-in-out"),de("--idp-primary-hover-color","#40a9ff"),function(e){return e.$open&&"\n border-color: ".concat(de("--idp-primary-color","#1890ff"),";\n box-shadow: ").concat(de("--idp-input-box-shadow-focus","0 0 0 2px rgba(51, 154, 240, 0.2)"),";\n ")},function(e){return e.$disabled&&"\n background-color: ".concat(de("--idp-input-disabled-bg","#f5f5f5"),";\n border-color: ").concat(de("--idp-border-color-extra-light","#d9d9d9"),";\n cursor: not-allowed;\n ")},function(e){var n=e.$size;return"large"===n?"\n min-height: 40px;\n padding: 6px 32px 6px 15px;\n font-size: 16px;\n ":"small"===n?"\n min-height: 24px;\n padding: 2px 24px 2px 7px;\n font-size: 14px;\n ":""},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),he=h.default.div(z||(z=C(["\n flex: 1;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 4px;\n overflow: hidden;\n\n &.treeselect-selection__rendered {\n /* 外部可通过 .treeselect-selection__rendered 选择器覆盖样式 */\n }\n\n ","\n"],["\n flex: 1;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 4px;\n overflow: hidden;\n\n &.treeselect-selection__rendered {\n /* 外部可通过 .treeselect-selection__rendered 选择器覆盖样式 */\n }\n\n ","\n"])),function(e){return e.$isPlaceholder&&"\n color: ".concat(de("--idp-input-placeholder-color","#bfbfbf"),";\n ")}),fe=h.default.span(U||(U=C(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n &.treeselect-selection__item {\n /* 外部可通过 .treeselect-selection__item 选择器覆盖样式 */\n }\n"],["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n &.treeselect-selection__item {\n /* 外部可通过 .treeselect-selection__item 选择器覆盖样式 */\n }\n"]))),me=h.default.span(B||(B=C(["\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n padding: 2px 8px;\n background-color: ",";\n border: 1px solid ",";\n border-radius: ",";\n font-size: 12px;\n line-height: 1.5;\n\n &.treeselect-selection__tag {\n /* 外部可通过 .treeselect-selection__tag 选择器覆盖样式 */\n }\n\n &.treeselect-selection__tag--more {\n background-color: transparent;\n border-color: transparent;\n color: ",";\n }\n\n ","\n\n ","\n"],["\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n padding: 2px 8px;\n background-color: ",";\n border: 1px solid ",";\n border-radius: ",";\n font-size: 12px;\n line-height: 1.5;\n\n &.treeselect-selection__tag {\n /* 外部可通过 .treeselect-selection__tag 选择器覆盖样式 */\n }\n\n &.treeselect-selection__tag--more {\n background-color: transparent;\n border-color: transparent;\n color: ",";\n }\n\n ","\n\n ","\n"])),de("--idp-bg-color-light","#f5f5f5"),de("--idp-border-color-light","#f0f0f0"),de("--idp-border-radius-sm","4px"),de("--idp-text-color-secondary","rgba(0, 0, 0, 0.65)"),function(e){var n=e.$size;return"large"===n?"\n font-size: 14px;\n padding: 4px 10px;\n ":"small"===n?"\n font-size: 12px;\n padding: 1px 6px;\n ":""},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),ge=h.default.span(F||(F=C(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n &.treeselect-selection__tag-content {\n /* 外部可通过 .treeselect-selection__tag-content 选择器覆盖样式 */\n }\n"],["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n &.treeselect-selection__tag-content {\n /* 外部可通过 .treeselect-selection__tag-content 选择器覆盖样式 */\n }\n"]))),ve=h.default.span(G||(G=C(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-left: 4px;\n padding: 2px;\n color: ",";\n cursor: pointer;\n transition: color ",";\n\n &.treeselect-selection__tag-close {\n /* 外部可通过 .treeselect-selection__tag-close 选择器覆盖样式 */\n }\n\n &:hover {\n color: ",";\n }\n"],["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-left: 4px;\n padding: 2px;\n color: ",";\n cursor: pointer;\n transition: color ",";\n\n &.treeselect-selection__tag-close {\n /* 外部可通过 .treeselect-selection__tag-close 选择器覆盖样式 */\n }\n\n &:hover {\n color: ",";\n }\n"])),de("--idp-text-color-tertiary","rgba(0, 0, 0, 0.45)"),de("--idp-transition-duration","0.2s"),de("--idp-text-color","rgba(0, 0, 0, 0.85)")),_e=h.default.div(Y||(Y=C(["\n flex: 1;\n min-width: 30px;\n\n &.treeselect-selection__search {\n /* 外部可通过 .treeselect-selection__search 选择器覆盖样式 */\n }\n"],["\n flex: 1;\n min-width: 30px;\n\n &.treeselect-selection__search {\n /* 外部可通过 .treeselect-selection__search 选择器覆盖样式 */\n }\n"]))),xe=h.default.input($||($=C(["\n width: 100%;\n padding: 0;\n border: none;\n outline: none;\n background: transparent;\n font-size: 14px;\n color: ",";\n\n &::placeholder {\n color: ",";\n }\n\n &.treeselect-selection__search-input,\n &.treeselect-dropdown__search-input {\n /* 外部可通过这些选择器覆盖样式 */\n }\n"],["\n width: 100%;\n padding: 0;\n border: none;\n outline: none;\n background: transparent;\n font-size: 14px;\n color: ",";\n\n &::placeholder {\n color: ",";\n }\n\n &.treeselect-selection__search-input,\n &.treeselect-dropdown__search-input {\n /* 外部可通过这些选择器覆盖样式 */\n }\n"])),de("--idp-text-color","rgba(0, 0, 0, 0.85)"),de("--idp-input-placeholder-color","#bfbfbf")),Ce=h.default.span(W||(W=C(["\n position: absolute;\n right: 28px;\n top: 50%;\n transform: translateY(-50%);\n display: flex;\n align-items: center;\n justify-content: center;\n width: 18px;\n height: 18px;\n color: ",";\n cursor: pointer;\n transition: color ",";\n z-index: 1;\n\n &.treeselect-selection__clear {\n /* 外部可通过 .treeselect-selection__clear 选择器覆盖样式 */\n }\n\n &:hover {\n color: ",";\n }\n\n ","\n"],["\n position: absolute;\n right: 28px;\n top: 50%;\n transform: translateY(-50%);\n display: flex;\n align-items: center;\n justify-content: center;\n width: 18px;\n height: 18px;\n color: ",";\n cursor: pointer;\n transition: color ",";\n z-index: 1;\n\n &.treeselect-selection__clear {\n /* 外部可通过 .treeselect-selection__clear 选择器覆盖样式 */\n }\n\n &:hover {\n color: ",";\n }\n\n ","\n"])),de("--idp-text-color-tertiary","rgba(0, 0, 0, 0.45)"),de("--idp-transition-duration","0.2s"),de("--idp-text-color","rgba(0, 0, 0, 0.85)"),function(e){var n=e.$size;return"large"===n?"right: 32px;":"small"===n?"right: 24px;":""}),Ee=h.default.span(K||(K=C(["\n position: absolute;\n right: 11px;\n top: 50%;\n transform: translateY(-50%);\n display: flex;\n align-items: center;\n justify-content: center;\n color: ",";\n transition: transform ",";\n pointer-events: none;\n\n &.treeselect-selection__arrow {\n /* 外部可通过 .treeselect-selection__arrow 选择器覆盖样式 */\n }\n\n ","\n\n ","\n"],["\n position: absolute;\n right: 11px;\n top: 50%;\n transform: translateY(-50%);\n display: flex;\n align-items: center;\n justify-content: center;\n color: ",";\n transition: transform ",";\n pointer-events: none;\n\n &.treeselect-selection__arrow {\n /* 外部可通过 .treeselect-selection__arrow 选择器覆盖样式 */\n }\n\n ","\n\n ","\n"])),de("--idp-text-color-tertiary","rgba(0, 0, 0, 0.45)"),de("--idp-transition-duration","0.2s"),function(e){return e.$open&&"\n transform: translateY(-50%) rotate(180deg);\n "},function(e){var n=e.$size;return"large"===n?"right: 15px;":"small"===n?"right: 7px;":""}),Oe=h.default.div(Z||(Z=C(["\n position: absolute;\n top: 100%;\n left: 0;\n z-index: 1050;\n margin-top: 4px;\n background-color: ",";\n border-radius: ",";\n box-shadow: ",";\n overflow: hidden;\n width: ",";\n max-height: ",";\n\n &.treeselect-dropdown {\n /* 外部可通过 .treeselect-dropdown 选择器覆盖样式 */\n }\n\n ","\n"],["\n position: absolute;\n top: 100%;\n left: 0;\n z-index: 1050;\n margin-top: 4px;\n background-color: ",";\n border-radius: ",";\n box-shadow: ",";\n overflow: hidden;\n width: ",";\n max-height: ",";\n\n &.treeselect-dropdown {\n /* 外部可通过 .treeselect-dropdown 选择器覆盖样式 */\n }\n\n ","\n"])),de("--idp-bg-color-white","#fff"),de("--idp-border-radius-sm","4px"),de("--idp-shadow-lg","0 8px 24px rgba(0, 0, 0, 0.15)"),function(e){return e.$width||"100%"},function(e){return e.$height||"300px"},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),Te=h.default.div(X||(X=C(["\n padding: 8px 12px;\n border-bottom: 1px solid ",";\n\n &.treeselect-dropdown__search {\n /* 外部可通过 .treeselect-dropdown__search 选择器覆盖样式 */\n }\n"],["\n padding: 8px 12px;\n border-bottom: 1px solid ",";\n\n &.treeselect-dropdown__search {\n /* 外部可通过 .treeselect-dropdown__search 选择器覆盖样式 */\n }\n"])),de("--idp-border-color-light","#f0f0f0")),be=h.default.input(q||(q=C(["\n width: 100%;\n padding: 4px 8px;\n background-color: ",";\n border: none;\n border-radius: ",";\n outline: none;\n font-size: 14px;\n color: ",";\n\n &::placeholder {\n color: ",";\n }\n"],["\n width: 100%;\n padding: 4px 8px;\n background-color: ",";\n border: none;\n border-radius: ",";\n outline: none;\n font-size: 14px;\n color: ",";\n\n &::placeholder {\n color: ",";\n }\n"])),de("--idp-bg-color-light","#f5f5f5"),de("--idp-border-radius-sm","4px"),de("--idp-text-color","rgba(0, 0, 0, 0.85)"),de("--idp-input-placeholder-color","#bfbfbf")),Ne=h.default.div(J||(J=C(["\n max-height: 300px;\n overflow-y: auto;\n padding: 4px 0;\n\n &.treeselect-dropdown__content {\n /* 外部可通过 .treeselect-dropdown__content 选择器覆盖样式 */\n }\n\n /* 滚动条样式 */\n &::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.15);\n border-radius: 3px;\n }\n\n &::-webkit-scrollbar-thumb:hover {\n background-color: rgba(0, 0, 0, 0.25);\n }\n\n &::-webkit-scrollbar-track {\n background-color: transparent;\n }\n"],["\n max-height: 300px;\n overflow-y: auto;\n padding: 4px 0;\n\n &.treeselect-dropdown__content {\n /* 外部可通过 .treeselect-dropdown__content 选择器覆盖样式 */\n }\n\n /* 滚动条样式 */\n &::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.15);\n border-radius: 3px;\n }\n\n &::-webkit-scrollbar-thumb:hover {\n background-color: rgba(0, 0, 0, 0.25);\n }\n\n &::-webkit-scrollbar-track {\n background-color: transparent;\n }\n"]))),Ae=h.default.div(Q||(Q=C(["\n padding: 32px 0;\n\n &.treeselect-dropdown__empty {\n /* 外部可通过 .treeselect-dropdown__empty 选择器覆盖样式 */\n }\n"],["\n padding: 32px 0;\n\n &.treeselect-dropdown__empty {\n /* 外部可通过 .treeselect-dropdown__empty 选择器覆盖样式 */\n }\n"]))),ye=h.default.div(ee||(ee=C(["\n display: flex;\n flex-direction: column;\n\n &.treeselect-tree-node-wrapper {\n /* 外部可通过 .treeselect-tree-node-wrapper 选择器覆盖样式 */\n }\n"],["\n display: flex;\n flex-direction: column;\n\n &.treeselect-tree-node-wrapper {\n /* 外部可通过 .treeselect-tree-node-wrapper 选择器覆盖样式 */\n }\n"]))),Se=h.default.div(ne||(ne=C(["\n display: flex;\n align-items: center;\n padding: 8px 12px;\n padding-left: ",";\n cursor: pointer;\n transition: background-color ",";\n user-select: none;\n\n &.treeselect-tree-node {\n /* 外部可通过 .treeselect-tree-node 选择器覆盖样式 */\n }\n\n &:hover {\n background-color: ",";\n }\n\n ","\n\n ","\n\n ","\n"],["\n display: flex;\n align-items: center;\n padding: 8px 12px;\n padding-left: ",";\n cursor: pointer;\n transition: background-color ",";\n user-select: none;\n\n &.treeselect-tree-node {\n /* 外部可通过 .treeselect-tree-node 选择器覆盖样式 */\n }\n\n &:hover {\n background-color: ",";\n }\n\n ","\n\n ","\n\n ","\n"])),function(e){return"".concat(20*e.$level+12,"px")},de("--idp-transition-duration","0.2s"),de("--idp-bg-color-light","#f5f5f5"),function(e){return e.$selected&&"\n background-color: #e6f7ff;\n\n &:hover {\n background-color: #bae7ff;\n }\n "},function(e){return e.$disabled&&"\n color: ".concat(de("--idp-text-color-tertiary","rgba(0, 0, 0, 0.45)"),";\n cursor: not-allowed;\n\n &:hover {\n background-color: transparent;\n }\n ")},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),Le=h.default.span(te||(te=C(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n margin-right: 4px;\n cursor: pointer;\n transition: transform ",";\n\n &.treeselect-tree-node__expand-icon {\n /* 外部可通过 .treeselect-tree-node__expand-icon 选择器覆盖样式 */\n }\n\n ","\n\n ","\n"],["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n margin-right: 4px;\n cursor: pointer;\n transition: transform ",";\n\n &.treeselect-tree-node__expand-icon {\n /* 外部可通过 .treeselect-tree-node__expand-icon 选择器覆盖样式 */\n }\n\n ","\n\n ","\n"])),de("--idp-transition-duration","0.2s"),function(e){return e.$expanded&&"\n transform: rotate(90deg);\n "},function(e){return!e.$hasChildren&&"\n visibility: hidden;\n cursor: default;\n "}),Ie=h.default.span(ie||(ie=C(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-right: 8px;\n\n &.treeselect-tree-node__checkbox {\n /* 外部可通过 .treeselect-tree-node__checkbox 选择器覆盖样式 */\n }\n"],["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-right: 8px;\n\n &.treeselect-tree-node__checkbox {\n /* 外部可通过 .treeselect-tree-node__checkbox 选择器覆盖样式 */\n }\n"]))),we=h.default.span(re||(re=C(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n border: 1px solid ",";\n border-radius: 2px;\n background-color: ",";\n transition: all ",";\n\n &.treeselect-tree-node__checkbox-inner {\n /* 外部可通过 .treeselect-tree-node__checkbox-inner 选择器覆盖样式 */\n }\n\n .treeselect-tree-node:hover & {\n border-color: ",";\n }\n\n ","\n"],["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n border: 1px solid ",";\n border-radius: 2px;\n background-color: ",";\n transition: all ",";\n\n &.treeselect-tree-node__checkbox-inner {\n /* 外部可通过 .treeselect-tree-node__checkbox-inner 选择器覆盖样式 */\n }\n\n .treeselect-tree-node:hover & {\n border-color: ",";\n }\n\n ","\n"])),de("--idp-border-color-extra-light","#d9d9d9"),de("--idp-bg-color-white","#fff"),de("--idp-transition-duration","0.2s"),de("--idp-primary-color","#1890ff"),function(e){return e.$checked&&"\n background-color: ".concat(de("--idp-primary-color","#1890ff"),";\n border-color: ").concat(de("--idp-primary-color","#1890ff"),";\n ")}),Me=h.default.span(oe||(oe=C(["\n flex: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n &.treeselect-tree-node__title {\n /* 外部可通过 .treeselect-tree-node__title 选择器覆盖样式 */\n }\n"],["\n flex: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n &.treeselect-tree-node__title {\n /* 外部可通过 .treeselect-tree-node__title 选择器覆盖样式 */\n }\n"]))),Re=h.default.div(ae||(ae=C(["\n display: flex;\n flex-direction: column;\n\n &.treeselect-tree-node-children {\n /* 外部可通过 .treeselect-tree-node-children 选择器覆盖样式 */\n }\n"],["\n display: flex;\n flex-direction: column;\n\n &.treeselect-tree-node-children {\n /* 外部可通过 .treeselect-tree-node-children 选择器覆盖样式 */\n }\n"]))),De=function(t){var i=t.treeData,r=void 0===i?[]:i,o=t.value,a=t.defaultValue,s=t.onChange,l=t.placeholder,c=void 0===l?"请选择":l,d=t.disabled,u=void 0!==d&&d,h=t.multiple,f=void 0!==h&&h,m=t.maxTagCount,g=t.allowClear,v=void 0===g||g,_=t.size,C=void 0===_?"middle":_,E=t.styles,O=t.className,T=t.dropdownWidth,b=t.dropdownHeight,N=void 0===b?300:b,A=t.showSearch,y=void 0!==A&&A,S=t.filterOption,L=t.autoClearSearchValue,I=void 0===L||L,w=t.fieldNames,M=void 0===w?{}:w,R=t.width,D=n.useState(!1),H=D[0],P=D[1],j=n.useState(function(){return a?Array.isArray(a)?a:[a]:[]}),V=j[0],z=j[1],U=n.useState(""),B=U[0],F=U[1],G=n.useRef(null),Y=n.useRef(null),$=n.useState(new Set),W=$[0],K=$[1],Z=M.title,X=void 0===Z?"title":Z,q=M.value,J=void 0===q?"value":q,Q=M.children,ee=void 0===Q?"children":Q,ne=n.useCallback(function(e){return e[J]||e.value},[J]),te=n.useCallback(function(e){return e[X]||e.title},[X]),ie=n.useCallback(function(e){return e[ee]},[ee]),re=n.useMemo(function(){return void 0!==o?f?Array.isArray(o)?o:[o]:null!==o&&""!==o?[o]:[]:V},[o,V,f]),oe=n.useCallback(function(e,n){void 0===n&&(n=r);for(var t=0,i=n;t<i.length;t++){var o=i[t];if(ne(o)===e)return o;var a=ie(o);if(a&&a.length>0){var s=oe(e,a);if(s)return s}}return null},[r,ne,ie]),ae=n.useMemo(function(){return re.map(function(e){return oe(e)}).filter(Boolean)},[re,oe]);n.useEffect(function(){var e=function(e){G.current&&!G.current.contains(e.target)&&(P(!1),F(""))};return H&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}},[H]),n.useEffect(function(){H&&y&&Y.current&&setTimeout(function(){var e;return null===(e=Y.current)||void 0===e?void 0:e.focus()},0)},[H,y]);var se=n.useCallback(function(e){var n=ne(e);if(f){var t=void 0,i=(t=re.includes(n)?re.filter(function(e){return e!==n}):x(x([],re,!0),[n],!1)).map(function(e){return oe(e)}).filter(Boolean);void 0===o&&z(t),null==s||s(t,i)}else void 0===o&&z([n]),null==s||s(n,[e]),P(!1);I&&F("")},[re,f,ne,oe,o,s,I]),ce=n.useCallback(function(e){e.stopPropagation(),void 0===o&&z([]),null==s||s(f?[]:void 0,[])},[o,s,f]),de=n.useCallback(function(e,n){e.stopPropagation();var t=re.filter(function(e){return e!==n}),i=t.map(function(e){return oe(e)}).filter(Boolean);void 0===o&&z(t),null==s||s(t,i)},[re,oe,o,s]),De=n.useCallback(function(e,n){e.stopPropagation();var t=ne(n),i=new Set(W);i.has(t)?i.delete(t):i.add(t),K(i)},[W,ne]),He=n.useCallback(function(e){if(!B)return!0;var n=String(te(e));return S?S(B,e):n.toLowerCase().includes(B.toLowerCase())},[B,te,S]),ke=n.useCallback(function(e){var n=ie(e);return!(!n||0===n.length)&&n.some(function(e){return He(e)||ke(e)})},[ie,He]),Pe=n.useCallback(function(n,t){void 0===t&&(t=0);var i=ne(n),r=te(n),o=ie(n),a=o&&o.length>0,s=re.includes(i),l=W.has(i),c=!!n.disabled,d=He(n),u=ke(n);return d||u?e.jsxs(ye,{className:"treeselect-tree-node-wrapper",children:[e.jsxs(Se,{className:p.default("treeselect-tree-node",{"treeselect-tree-node--selected":s,"treeselect-tree-node--disabled":c,"treeselect-tree-node--leaf":!a}),$selected:s,$disabled:c,$level:t,$styles:null==E?void 0:E.treeNode,onClick:function(){return!c&&se(n)},children:[e.jsx(Le,{className:p.default("treeselect-tree-node__expand-icon",{"treeselect-tree-node__expand-icon--expanded":l,"treeselect-tree-node__expand-icon--no-children":!a}),$expanded:l,$hasChildren:!!a,onClick:function(e){return a&&De(e,n)},children:a&&e.jsx(k,{type:"arrowRight",size:12,color:"#bfbfbf"})}),f&&e.jsx(Ie,{className:"treeselect-tree-node__checkbox",children:e.jsx(we,{className:p.default("treeselect-tree-node__checkbox-inner",{"treeselect-tree-node__checkbox-inner--checked":s}),$checked:s,children:s&&e.jsx(k,{type:"check",size:10,color:"#fff"})})}),e.jsx(Me,{className:"treeselect-tree-node__title",children:r})]}),a&&l&&e.jsx(Re,{className:"treeselect-tree-node-children",children:o.map(function(e){return Pe(e,t+1)})})]},String(i)):null},[re,W,ne,te,ie,f,He,ke,se,De,null==E?void 0:E.treeNode]),je=n.useCallback(function(){if(!f){var n=ae[0];return n?e.jsx(fe,{className:"treeselect-selection__item",children:te(n)}):c}if(0===ae.length)return c;var t=ae,i=0;return void 0!==m&&m>0&&ae.length>m&&(t=ae.slice(0,m),i=ae.length-m),e.jsxs(e.Fragment,{children:[t.map(function(n){return e.jsxs(me,{className:p.default("treeselect-selection__tag",{"treeselect-selection__tag--more":!1}),$size:C,$styles:null==E?void 0:E.tag,children:[e.jsx(ge,{className:"treeselect-selection__tag-content",children:te(n)}),e.jsx(ve,{className:"treeselect-selection__tag-close",onClick:function(e){return de(e,ne(n))},children:e.jsx(k,{type:"close",size:10})})]},ne(n))}),i>0&&e.jsxs(me,{className:"treeselect-selection__tag treeselect-selection__tag--more",$size:C,$styles:null==E?void 0:E.tag,children:["+",i]})]})},[f,ae,m,ne,te,de,c,C,null==E?void 0:E.tag]),Ve=p.default("treeselect-wrapper",O);return e.jsxs(ue,{ref:G,className:Ve,$width:R,$styles:null==E?void 0:E.wrapper,children:[e.jsxs(pe,{className:p.default("treeselect-selection",{"treeselect-selection--open":H,"treeselect-selection--disabled":u}),$open:H,$disabled:u,$size:C,$styles:null==E?void 0:E.selection,onClick:function(){u||(P(!H),H||F(""))},children:[y&&H?e.jsx(_e,{className:"treeselect-selection__search",children:e.jsx(xe,{ref:Y,type:"text",className:"treeselect-selection__search-input",value:B,onChange:function(e){return F(e.target.value)},placeholder:0===ae.length?c:"",onClick:function(e){return e.stopPropagation()}})}):e.jsx(he,{className:p.default("treeselect-selection__rendered",{"treeselect-selection__rendered--placeholder":0===ae.length}),$isPlaceholder:0===ae.length,children:je()}),v&&!u&&ae.length>0&&e.jsx(Ce,{className:"treeselect-selection__clear",$size:C,onClick:ce,children:e.jsx(k,{type:"close",size:12})}),e.jsx(Ee,{className:p.default("treeselect-selection__arrow",{"treeselect-selection__arrow--open":H}),$open:H,$size:C,children:e.jsx(k,{type:"arrowDown",size:12})})]}),H&&e.jsxs(Oe,{className:"treeselect-dropdown",$width:T,$height:N,$styles:null==E?void 0:E.dropdown,children:[y&&!H&&e.jsx(Te,{className:"treeselect-dropdown__search",children:e.jsx(be,{ref:Y,type:"text",className:"treeselect-dropdown__search-input",value:B,onChange:function(e){return F(e.target.value)},placeholder:"搜索"})}),e.jsx(Ne,{className:"treeselect-dropdown__content",children:r.length>0?r.map(function(e){return Pe(e)}):e.jsx(Ae,{className:"treeselect-dropdown__empty",children:e.jsx(le,{size:"small",description:"暂无数据"})})})]})]})},He=function(t){var i=t.color,o=t.onChange,a=t.onColorChange,s=t.disabled,l=void 0!==s&&s,c=t.className,d=t.style,u=t.alpha,h=void 0!==u&&u,f=t.presetColors,m=void 0===f?[]:f,g=t.gradient,v=void 0!==g&&g,_=t.children,C=n.useState(!1),E=C[0],O=C[1],T=n.useState(i),b=T[0],N=T[1],A=n.useState([i,"#ffffff"]),y=A[0],S=A[1],L=n.useState(90),I=L[0],w=L[1],M=n.useRef(null),R=n.useRef(null),D=p.default("idp-color-picker",{"idp-color-picker--disabled":l,"idp-color-picker--open":E},c),H=function(e,n){if(v&&void 0!==n){var t=x([],y,!0);t[n]=e.hex,S(t),k()}else N(e.hex),null==a||a(e.hex)},k=function(){var e="linear-gradient(".concat(I,"deg, ").concat(y[0],", ").concat(y[1],")");N(e),null==a||a(e)},P=function(e){e.stopPropagation(),l||O(!E)};return n.useEffect(function(){var e=function(e){var n=M.current&&M.current.contains(e.target),t=R.current&&R.current.contains(e.target);n||t||O(!1)};return E&&document.addEventListener("click",e),function(){document.removeEventListener("click",e)}},[E]),n.useEffect(function(){if(v&&i&&i.startsWith("linear-gradient")){var e=i.match(/linear-gradient\((\d+)deg,\s*(#[0-9a-fA-F]+),\s*(#[0-9a-fA-F]+)\)/);e&&(w(parseInt(e[1])),S([e[2],e[3]]))}},[i,v]),e.jsxs("div",{className:D,style:d,children:[_?e.jsx("div",{ref:R,className:"idp-color-picker-trigger-container",onClick:P,children:_}):e.jsx("div",{ref:R,className:"idp-color-picker-default-trigger",style:{background:i},onClick:P}),E&&e.jsxs("div",{className:"idp-color-picker-popup",children:[e.jsxs("div",{className:"idp-color-picker-content",ref:M,children:[v?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"idp-color-picker-gradient",children:[e.jsxs("div",{className:"idp-color-picker-gradient-item",children:[e.jsx("div",{className:"idp-color-picker-gradient-label",children:"起始颜色"}),e.jsx(r.SketchPicker,{color:y[0],onChange:function(e){H(e,0)},disableAlpha:!h})]}),e.jsxs("div",{className:"idp-color-picker-gradient-item",children:[e.jsx("div",{className:"idp-color-picker-gradient-label",children:"结束颜色"}),e.jsx(r.SketchPicker,{color:y[1],onChange:function(e){H(e,1)},disableAlpha:!h})]})]}),e.jsxs("div",{className:"idp-color-picker-gradient-direction",children:[e.jsxs("div",{className:"idp-color-picker-gradient-direction-label",children:["渐变方向: ",I,"°"]}),e.jsx("input",{type:"range",min:"0",max:"360",value:I,onChange:function(e){w(parseInt(e.target.value)),k()},className:"idp-color-picker-gradient-range"})]})]}):e.jsx(r.SketchPicker,{color:b,onChange:function(e){H(e)},disableAlpha:!h}),m.length>0&&e.jsxs("div",{children:[e.jsx("div",{className:"idp-color-picker-presets-label",children:"预设颜色"}),e.jsx("div",{className:"idp-color-picker-presets",children:m.map(function(n,t){return e.jsx("div",{className:"idp-color-picker-preset",style:{backgroundColor:n},onClick:function(){return H({hex:n})},title:n},t)})})]}),e.jsxs("div",{className:"idp-color-picker-actions",children:[e.jsx("div",{className:"idp-color-picker-preview-label",children:"参考值:"}),e.jsx("div",{className:"idp-color-picker-preview ".concat(v?"idp-color-picker-gradient-preview":"idp-color-picker-solid-preview"),style:{background:b}}),e.jsxs("div",{className:"idp-color-picker-button-group",children:[e.jsx(se,{size:"small",onClick:function(){N(i),v&&(S([i,"#ffffff"]),w(90)),O(!1)},children:"取消"}),e.jsx(se,{variant:"primary",size:"small",onClick:function(){o(b),O(!1)},children:"确认"})]})]})]}),e.jsx("div",{className:"idp-color-picker-overlay",onClick:function(){return O(!1)}})]})]})},ke=function(e){return v(void 0,void 0,void 0,function(){var n;return _(this,function(t){switch(t.label){case 0:return navigator.clipboard&&window.isSecureContext?[4,navigator.clipboard.writeText(e)]:[3,2];case 1:return t.sent(),[3,3];case 2:(n=document.createElement("textarea")).style.position="fixed",n.style.top=n.style.left="-100vh",n.style.opacity="0",n.value=e,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n),t.label=3;case 3:return[2]}})})};function Pe(){var e=this;return u.default.useCallback(function(n){return v(e,void 0,void 0,function(){return _(this,function(e){switch(e.label){case 0:return[4,ke(n)];case 1:return[2,e.sent()]}})})},[])}var je=function(n){var t=n.url,i=n.onCopyStatusChange,r=n.children,o=Pe();return e.jsx("span",{style:{margin:"0px",padding:"0px"},onClick:function(){return v(void 0,void 0,void 0,function(){return _(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,o(t)];case 1:return e.sent(),null==i||i("success"),[3,3];case 2:return e.sent(),null==i||i("error"),[3,3];case 3:return[2]}})})},children:r})},Ve=Pe,ze=function(n){var t=n.orientation,i=void 0===t?"horizontal":t,r=n.type,o=void 0===r?"solid":r,a=n.color,s=void 0===a?"#339af0":a,l=n.className,c=void 0===l?"":l,d=n.style;return e.jsx("div",{className:"divider divider-".concat(i," divider-").concat(o," ").concat(c),style:m({backgroundColor:"horizontal"===i?s:"transparent",borderColor:"vertical"===i?s:"transparent"},d)})},Ue=function(n){var t=n.children,i=n.layout,r=void 0===i?"horizontal":i,o=n.direction,a=n.justify,s=void 0===a?"flex-start":a,l=n.align,c=void 0===l?"stretch":l,d=n.wrap,u=void 0===d?"nowrap":d,p=n.gap,h=n.style,f=void 0===h?{}:h,g=o||("column"===r?"column":"row");return e.jsx("div",{className:"flex",style:m({gap:"number"==typeof p?"".concat(p,"px"):p,justifyContent:s,alignItems:c,flexWrap:u,flexDirection:g},f),children:t})},Be=function(n){var t=n.type,i=void 0===t?"text":t,r=n.placeholder,o=void 0===r?"":r,a=n.width,s=n.className,l=void 0===s?"":s,c=n.style,d=n.value,p=n.defaultValue,h=n.onChange,f=n.onBlur,v=n.onFocus,_=n.disabled,x=void 0!==_&&_,C=n.readOnly,E=void 0!==C&&C,O=n.onKeyDown,T=n.prefix,b=n.suffix,N=n.clear,A=void 0!==N&&N,y=n.extra,S=n.label,L=n.labelGap,I=void 0===L?8:L,w=n.labelClassName,M=void 0===w?"":w,R=n.labelStyle,D=g(n,["type","placeholder","width","className","style","value","defaultValue","onChange","onBlur","onFocus","disabled","readOnly","onKeyDown","prefix","suffix","clear","extra","label","labelGap","labelClassName","labelStyle"]),H=u.default.useState(p||""),P=H[0],j=H[1],V=u.default.useState(!1),z=V[0],U=V[1],B=function(n){return n?"string"==typeof n?e.jsx(k,{type:n,size:"medium",color:"#909399"}):n:null},F=void 0!==d?d:P,G=A&&!x&&!E&&z&&null!=F&&F.toString().length>0;return e.jsxs("div",{className:"input-base-container",children:[e.jsxs("div",{className:"input-label-wrapper",style:{display:"flex",alignItems:"center"},children:[S&&e.jsx("div",{className:"input-label ".concat(M),style:m({marginRight:"number"==typeof I?"".concat(I,"px"):I},R),children:S}),e.jsxs("div",{className:"input-wrapper ".concat(l," ").concat(x?"input-disabled":""," ").concat(E?"input-readonly":""),style:m({width:a},c),children:[T&&e.jsx("div",{className:"input-prefix",children:B(T)}),e.jsx("input",m({type:i,placeholder:o,className:"input-inner",value:null!=d?String(d):F,onChange:function(e){void 0===d&&j(e.target.value),null==h||h(e)},onBlur:function(e){U(!1),null==f||f(e)},onFocus:function(e){U(!0),null==v||v(e)},disabled:x,readOnly:E,onKeyDown:O},D)),e.jsxs("div",{className:"input-suffix-group",children:[e.jsx("div",{className:"input-suffix-clear ".concat(G?"visible":""),onClick:function(){x||E||(void 0!==d||j(""),h&&h({target:{value:""}}))},children:e.jsx(k,{type:"close",size:"medium",color:"#1890ff"})}),b&&e.jsx("div",{className:"input-suffix-content",children:B(b)})]})]})]}),y&&e.jsx("div",{className:"input-extra",children:y})]})},Fe=function(n){var t=n.type,i=void 0===t?"text":t,r=n.placeholder,o=void 0===r?"搜索":r,a=n.width,s=n.className,l=void 0===s?"":s,c=n.style,d=n.value,u=n.onChange,p=n.onBlur,h=n.onFocus,f=n.disabled,v=void 0!==f&&f,_=n.readOnly,x=void 0!==_&&_,C=n.onSearch,E=n.onClear,O=n.clear,T=void 0!==O&&O,b=n.suffix,N=g(n,["type","placeholder","width","className","style","value","onChange","onBlur","onFocus","disabled","readOnly","onSearch","onClear","clear","suffix"]),A=function(){null==C||C()},y=T?e.jsx(k,{type:"search",onClick:A,style:{cursor:"pointer"}}):b;return e.jsxs("div",{className:"search-input-wrapper ".concat(l),style:m({width:a},c),children:[e.jsx(Be,m({type:i,placeholder:o,width:"100%",value:d,onChange:u,onBlur:p,onFocus:h,disabled:v,readOnly:x,onKeyDown:function(e){"Enter"===e.key&&(null==C||C())},clear:T,suffix:y},N)),!T&&e.jsxs("div",{className:"search-input-suffix",children:[d&&e.jsx(k,{type:"clear",size:"small",onClick:function(){if(null==E||E(),!E&&u){u({target:{value:""}})}},style:{cursor:"pointer",marginRight:"8px"}}),e.jsx(k,{type:"search",onClick:A,style:{cursor:"pointer"}})]})]})},Ge=function(n){var t=n.nType,i=n.errorMessage,r=n.extra,o=n.value,a=n.onChange,s=g(n,["nType","errorMessage","extra","value","onChange"]),l=function(e){if(!e)return{isValid:!0,message:""};var n=("string"==typeof e?e:String(e)).trim(),i=parseFloat(n);if(isNaN(i))return{isValid:!1,message:"请输入有效的数字"};switch(t){case"positive-float":return/^\d+(\.\d+)?$/.test(n)&&i>0?{isValid:!0,message:""}:{isValid:!1,message:"请输入正浮点数"};case"negative-float":return/^-\d+(\.\d+)?$/.test(n)&&i<0?{isValid:!0,message:""}:{isValid:!1,message:"请输入负浮点数"};case"positive-integer":return/^\d+$/.test(n)&&i>0?{isValid:!0,message:""}:{isValid:!1,message:"请输入正整数"};case"negative-integer":return/^-\d+$/.test(n)&&i<0?{isValid:!0,message:""}:{isValid:!1,message:"请输入负整数"};case"integer":return/^-?\d+$/.test(n)?{isValid:!0,message:""}:{isValid:!1,message:"请输入整数"};case"negative":return/^-\d+(\.\d+)?$/.test(n)&&i<0?{isValid:!0,message:""}:{isValid:!1,message:"请输入负数"};case"positive":return/^\d+(\.\d+)?$/.test(n)&&i>0?{isValid:!0,message:""}:{isValid:!1,message:"请输入正数"};default:return{isValid:!0,message:""}}},c=u.default.useState({isValid:!0,message:""}),d=c[0],p=c[1];u.default.useEffect(function(){if(t&&o){var e=l(o);p(e)}},[t,o]);var h=i||d.message,f=!!h,v=!f&&r;return e.jsxs("div",{className:"number-input-wrapper",children:[e.jsx(Be,m({type:"text",value:o,onChange:function(e){var n=e.target.value;if(null==a||a(e),t){var i=l(n);p(i)}}},s,{className:"".concat(s.className||""," ").concat(f?"input-error":"")})),f&&e.jsx("div",{className:"input-error-message ".concat(f?"visible":""),children:h}),v&&e.jsx("div",{className:"input-extra",children:r})]})},Ye=Be;Ye.Search=Fe,Ye.Number=Ge;var $e=Ye,We={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Ke=u.default.createContext&&u.default.createContext(We),Ze=["attr","size","title"];function Xe(e,n){if(null==e)return{};var t,i,r=function(e,n){if(null==e)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)t=o[i],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}function qe(){return qe=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},qe.apply(this,arguments)}function Je(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,i)}return t}function Qe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Je(Object(t),!0).forEach(function(n){en(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Je(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function en(e,n,t){var i;return(n="symbol"==typeof(i=function(e,n){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,n||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(n,"string"))?i:i+"")in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function nn(e){return e&&e.map((e,n)=>u.default.createElement(e.tag,Qe({key:n},e.attr),nn(e.child)))}function tn(e){return n=>u.default.createElement(rn,qe({attr:Qe({},e.attr)},n),nn(e.child))}function rn(e){var n=n=>{var t,{attr:i,size:r,title:o}=e,a=Xe(e,Ze),s=r||n.size||"1em";return n.className&&(t=n.className),e.className&&(t=(t?t+" ":"")+e.className),u.default.createElement("svg",qe({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,i,a,{className:t,style:Qe(Qe({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),o&&u.default.createElement("title",null,o),e.children)};return void 0!==Ke?u.default.createElement(Ke.Consumer,null,e=>n(e)):n(We)}function on(e){return tn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"m289.94 256 95-95A24 24 0 0 0 351 127l-95 95-95-95a24 24 0 0 0-34 34l95 95-95 95a24 24 0 1 0 34 34l95-95 95 95a24 24 0 0 0 34-34z"},child:[]}]})(e)}var an=function(t){var i=t.announcement,r=t.height,o=void 0===r?40:r,a=t.speed,s=void 0===a?50:a,l=t.backgroundColor,c=void 0===l?"linear-gradient(to right, #e8eaf6 0%, #f5f5f5 50%, #e8eaf6 100%)":l,d=t.visible,u=void 0===d||d,p=t.fixed,h=void 0!==p&&p,f=t.fixedTop,m=void 0===f?0:f,g=t.isIcon,v=void 0===g||g,_=t.onClose;if(!i)return null;var x=n.useState(!0),C=x[0],E=x[1],O=u&&C,T=n.useRef(null),b=n.useRef(null),N=n.useRef(void 0),A=n.useRef(!1),y=n.useRef(!0);return n.useEffect(function(){if(O&&T.current&&b.current){var e=T.current,n=b.current;n.style.left="".concat(e.offsetWidth,"px");var t=function(){if(y.current&&n)if(A.current)N.current=requestAnimationFrame(t);else{var i=parseFloat(n.style.left)||0;i<-n.offsetWidth?n.style.left="".concat(e.offsetWidth,"px"):n.style.left="".concat(i-s/100,"px"),N.current=requestAnimationFrame(t)}};N.current=requestAnimationFrame(t);var i=function(){A.current=!0},r=function(){A.current=!1};return e.addEventListener("mouseenter",i),e.addEventListener("mouseleave",r),function(){N.current&&cancelAnimationFrame(N.current),e.removeEventListener("mouseenter",i),e.removeEventListener("mouseleave",r)}}},[s,i,O]),O?e.jsxs("div",{ref:T,className:"marquee-container ".concat(h?"marquee-container-fixed":""),style:{height:"".concat(o,"px"),background:c,top:h?"".concat(m,"px"):void 0},children:[e.jsx("div",{ref:b,className:"marquee-text",children:Array.isArray(i)?e.jsx("span",{children:i.map(function(n,t){return e.jsxs("span",{style:0==t?{}:{marginLeft:"100px"},children:[e.jsx("span",{style:{marginRight:"5px"},children:v?"📢":null}),n]},t)})}):i}),e.jsx("div",{className:"marquee-close",style:{height:"".concat(o,"px"),width:"45px",background:c},onClick:function(){y.current=!1,E(!1),_&&_()},onMouseEnter:function(){A.current=!0},onMouseLeave:function(){A.current=!1},children:e.jsx(on,{size:18,color:"#666"})})]}):null},sn=function(t){var i=t.type,r=t.content,o=t.duration,a=void 0===o?3e3:o,s=t.className,l=void 0===s?"":s,c=t.style,d=t.onClose,u=n.useState(!0),p=u[0],h=u[1];if(n.useEffect(function(){if(a>0){var e=setTimeout(function(){h(!1),null==d||d()},a);return function(){return clearTimeout(e)}}},[a,d]),!p)return null;return e.jsx("div",{className:"idp-message idp-message--".concat(i," ").concat(l," ").concat(p?"idp-message--show":""),style:c,children:e.jsxs("div",{className:"idp-message-content",children:[e.jsx(k,{type:function(){switch(i){case"success":return"success";case"warning":return"warning";case"error":return"error";default:return"infoCircleFill"}}(),size:20,color:function(){switch(i){case"success":return"#52c41a";case"warning":return"#faad14";case"error":return"#f5222d";default:return"#1890ff"}}()}),e.jsx("span",{className:"idp-message-text",children:r})]})})},ln=0,cn=new Map,dn=function(e){var n=cn.get(e);if(n){var t=n.container;n.root.unmount(),document.body.contains(t)&&document.body.removeChild(t),cn.delete(e)}},un=function(n,t,i){void 0===i&&(i=3e3);var r=++ln,a=function(){var e=document.createElement("div");return e.style.position="fixed",e.style.top="20px",e.style.left="50%",e.style.transform="translateX(-50%)",e.style.zIndex="1050",e.style.pointerEvents="none",document.body.appendChild(e),e}(),s=o.createRoot(a);s.render(e.jsx(sn,{type:n,content:t,duration:i,onClose:function(){dn(r)}})),cn.set(r,{container:a,root:s});var l=setTimeout(function(){dn(r)},i);return{close:function(){clearTimeout(l),dn(r)}}},pn={success:function(e,n){un("success",e,n)},warning:function(e,n){un("warning",e,n)},error:function(e,n){un("error",e,n)},close:function(){cn.forEach(function(e,n){return dn(n)})}},hn=n.createContext({message:null}),fn=function(t){var i,r=t.visible,o=t.title,s=void 0===o?"标题":o,l=t.width,c=void 0===l?600:l,d=t.height,u=void 0===d?300:d,h=t.headerHeight,f=void 0===h?40:h,g=t.footerHeight,v=void 0===g?40:g,_=t.confirmLoading,x=void 0!==_&&_,C=t.direction,E=void 0===C?"normal":C,O=t.top,T=t.onCancel,b=t.onOk,N=t.children,A=t.footer,y=void 0===A?null:A,S=t.bordered,L=void 0!==S&&S,I=t.className,w=t.style,M=t.okText,R=void 0===M?"确认":M,D=t.cancelText,H=void 0===D?"取消":D,P=t.getContainer,j=void 0===P?function(){return document.body}:P,V=t.maskStyle,z=t.maskClassName,U=t.zIndex,B=void 0===U?1e3:U,F=t.contentClassName,G=t.contentStyle,Y=t.destroyOnClose,$=void 0!==Y&&Y,W=n.useState(!1),K=W[0],Z=W[1],X=n.useState(!1),q=X[0],J=X[1],Q=n.useState({x:0,y:0}),ee=Q[0],ne=Q[1],te=n.useRef(null),ie=E,re=function(e){if("number"==typeof e)return e;var n=e.match(/^(\d+)px$/);return n?parseInt(n[1],10):0};n.useEffect(function(){var e=function(e){te.current={x:e.clientX,y:e.clientY}};return document.addEventListener("mousedown",e,!0),function(){document.removeEventListener("mousedown",e,!0)}},[]),n.useEffect(function(){if(!r){J(!0);var e=setTimeout(function(){Z(!1),J(!1)},550);return function(){return clearTimeout(e)}}var n=function(){var e=te.current;if(!e||"undefined"==typeof window)return{x:0,y:0};var n=u?re(u):0;if("center"===ie&&void 0!==O){var t=window.innerWidth/2,i=O+(n>0?n/2:0);return{x:e.x-t,y:e.y-i}}if("center"===ie)return t=window.innerWidth/2,i=window.innerHeight/2,{x:e.x-t,y:e.y-i};if(void 0!==O&&n>0)return t=window.innerWidth/2,i=O+n/2,{x:e.x-t,y:e.y-i};return t=window.innerWidth/2,i=window.innerHeight/2,{x:e.x-t,y:e.y-i}}();ne(n),J(!1),Z(!0)},[r,550,u,O,$]);var oe=function(){J(!0);var e=setTimeout(function(){Z(!1),J(!1),null==T||T()},550);return function(){return clearTimeout(e)}},ae=function(){null==b||b()},le=m(((i={width:"number"==typeof c?"".concat(c,"px"):c,top:void 0!==O?"".concat(O,"px"):void 0})["--idp-modal-origin-x"]="".concat(ee.x,"px"),i["--idp-modal-origin-y"]="".concat(ee.y,"px"),i),w),ce={height:"number"==typeof f?"".concat(f,"px"):f},de=u?re(u):0,ue=re(f),pe=re(v),he=de>0?Math.max(0,de-ue-pe):void 0,fe=m({},G);if(!fe.maxHeight&&u){var me=re(u);fe.maxHeight="".concat(me,"px")}!fe.maxHeight&&he&&(fe.maxHeight="".concat(he,"px"));var ge={height:"number"==typeof v?"".concat(v,"px"):v},ve=function(){if(!K&&!q)return null;var n=m({zIndex:B},V);return e.jsx("div",{className:p.default("idp-modal-overlay",{"idp-modal-overlay--visible":K,"idp-modal-overlay--closing":q,"idp-modal-overlay--custom-top":void 0!==O},I,z),onClick:oe,style:n,children:e.jsxs("div",{className:p.default("idp-modal-container",{"idp-modal-container--center-top":K&&!q&&"center"===ie&&void 0!==O,"idp-modal-container--center":K&&!q&&"center"===ie&&void 0===O,"idp-modal-container--top-right":K&&!q&&"top-right"===ie,"idp-modal-container--bottom-right":K&&!q&&"bottom-right"===ie,"idp-modal-container--bottom-left":K&&!q&&"bottom-left"===ie,"idp-modal-container--normal":K&&!q&&"normal"===ie,"idp-modal-container--closing-center-top":q&&"center"===ie&&void 0!==O,"idp-modal-container--closing-center":q&&"center"===ie&&void 0===O,"idp-modal-container--closing-top-right":q&&"top-right"===ie,"idp-modal-container--closing-bottom-right":q&&"bottom-right"===ie,"idp-modal-container--closing-bottom-left":q&&"bottom-left"===ie,"idp-modal-container--closing-normal":q&&"normal"===ie,"idp-modal-container--bordered":L,"idp-modal-container--has-height":void 0!==u}),style:le,onClick:function(e){return e.stopPropagation()},children:[e.jsxs("div",{className:"idp-modal-header",style:ce,children:[e.jsx("div",{className:"idp-modal-header__left",children:e.jsx("span",{className:"idp-modal-header__title",children:s})}),e.jsx("div",{className:"idp-modal-header__right",children:e.jsx(k,{type:"close",size:24,color:"#339af0",onClick:oe,style:{cursor:"pointer",padding:"4px"}})})]}),K&&e.jsx("div",{className:p.default("idp-modal-content",F),style:fe,children:$&&q?null:N}),e.jsx(Ue,{className:"idp-modal-footer",align:"center",justify:"flex-end",style:Object.assign({},ge,{padding:"0px 10px"}),gap:12,children:null===y?e.jsxs(Ue,{className:"idp-modal-footer__actions",justify:"flex-end",gap:12,children:[e.jsx(se,{variant:"secondary",onClick:oe,disabled:x,children:H||"取消"}),e.jsx(se,{variant:"primary",onClick:ae,loading:x,children:R||"确认"})]}):y})]})})}();if(!ve)return null;if(!1===j)return ve;var _e="function"==typeof j?j():j;return _e?a.createPortal(ve,_e):ve},mn={};Object.defineProperty(mn,"__esModule",{value:!0});var gn=u.default;function vn(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _n=vn(gn);!function(e){if(!e||"undefined"==typeof window)return;const n=document.createElement("style");n.setAttribute("type","text/css"),n.innerHTML=e,document.head.appendChild(n)}('.rfm-marquee-container {\n overflow-x: hidden;\n display: flex;\n flex-direction: row;\n position: relative;\n width: var(--width);\n transform: var(--transform);\n}\n.rfm-marquee-container:hover div {\n animation-play-state: var(--pause-on-hover);\n}\n.rfm-marquee-container:active div {\n animation-play-state: var(--pause-on-click);\n}\n\n.rfm-overlay {\n position: absolute;\n width: 100%;\n height: 100%;\n}\n.rfm-overlay::before, .rfm-overlay::after {\n background: linear-gradient(to right, var(--gradient-color), rgba(255, 255, 255, 0));\n content: "";\n height: 100%;\n position: absolute;\n width: var(--gradient-width);\n z-index: 2;\n pointer-events: none;\n touch-action: none;\n}\n.rfm-overlay::after {\n right: 0;\n top: 0;\n transform: rotateZ(180deg);\n}\n.rfm-overlay::before {\n left: 0;\n top: 0;\n}\n\n.rfm-marquee {\n flex: 0 0 auto;\n min-width: var(--min-width);\n z-index: 1;\n display: flex;\n flex-direction: row;\n align-items: center;\n animation: scroll var(--duration) linear var(--delay) var(--iteration-count);\n animation-play-state: var(--play);\n animation-delay: var(--delay);\n animation-direction: var(--direction);\n}\n@keyframes scroll {\n 0% {\n transform: translateX(0%);\n }\n 100% {\n transform: translateX(-100%);\n }\n}\n\n.rfm-initial-child-container {\n flex: 0 0 auto;\n display: flex;\n min-width: auto;\n flex-direction: row;\n align-items: center;\n}\n\n.rfm-child {\n transform: var(--transform);\n}');const xn=gn.forwardRef(function({style:e={},className:n="",autoFill:t=!1,play:i=!0,pauseOnHover:r=!1,pauseOnClick:o=!1,direction:a="left",speed:s=50,delay:l=0,loop:c=0,gradient:d=!1,gradientColor:u="white",gradientWidth:p=200,onFinish:h,onCycleComplete:f,onMount:m,children:g},v){const[_,x]=gn.useState(0),[C,E]=gn.useState(0),[O,T]=gn.useState(1),[b,N]=gn.useState(!1),A=gn.useRef(null),y=v||A,S=gn.useRef(null),L=gn.useCallback(()=>{if(S.current&&y.current){const e=y.current.getBoundingClientRect(),n=S.current.getBoundingClientRect();let i=e.width,r=n.width;"up"!==a&&"down"!==a||(i=e.height,r=n.height),T(t&&i&&r&&r<i?Math.ceil(i/r):1),x(i),E(r)}},[t,y,a]);gn.useEffect(()=>{if(b&&(L(),S.current&&y.current)){const e=new ResizeObserver(()=>L());return e.observe(y.current),e.observe(S.current),()=>{e&&e.disconnect()}}},[L,y,b]),gn.useEffect(()=>{L()},[L,g]),gn.useEffect(()=>{N(!0)},[]),gn.useEffect(()=>{"function"==typeof m&&m()},[]);const I=gn.useMemo(()=>t?C*O/s:C<_?_/s:C/s,[t,_,C,O,s]),w=gn.useMemo(()=>Object.assign(Object.assign({},e),{"--pause-on-hover":!i||r?"paused":"running","--pause-on-click":!i||r&&!o||o?"paused":"running","--width":"up"===a||"down"===a?"100vh":"100%","--transform":"up"===a?"rotate(-90deg)":"down"===a?"rotate(90deg)":"none"}),[e,i,r,o,a]),M=gn.useMemo(()=>({"--gradient-color":u,"--gradient-width":"number"==typeof p?`${p}px`:p}),[u,p]),R=gn.useMemo(()=>({"--play":i?"running":"paused","--direction":"left"===a?"normal":"reverse","--duration":`${I}s`,"--delay":`${l}s`,"--iteration-count":c?`${c}`:"infinite","--min-width":t?"auto":"100%"}),[i,a,I,l,c,t]),D=gn.useMemo(()=>({"--transform":"up"===a?"rotate(90deg)":"down"===a?"rotate(-90deg)":"none"}),[a]),H=gn.useCallback(e=>[...Array(Number.isFinite(e)&&e>=0?e:0)].map((e,n)=>_n.default.createElement(gn.Fragment,{key:n},gn.Children.map(g,e=>_n.default.createElement("div",{style:D,className:"rfm-child"},e)))),[D,g]);return b?_n.default.createElement("div",{ref:y,style:w,className:"rfm-marquee-container "+n},d&&_n.default.createElement("div",{style:M,className:"rfm-overlay"}),_n.default.createElement("div",{className:"rfm-marquee",style:R,onAnimationIteration:f,onAnimationEnd:h},_n.default.createElement("div",{className:"rfm-initial-child-container",ref:S},gn.Children.map(g,e=>_n.default.createElement("div",{style:D,className:"rfm-child"},e))),H(O-1)),_n.default.createElement("div",{className:"rfm-marquee",style:R},H(O))):null});var Cn=mn.default=xn,En=function(n){var t=n.text,i=void 0===t?"":t,r=n.speed,o=void 0===r?50:r,a=n.height,s=void 0===a?60:a,l=n.icon,c=void 0===l?null:l,d=n.styles,p=void 0===d?{}:d,h=n.closeStyle,f=void 0===h?{}:h,g=n.showCloseButton,v=void 0!==g&&g,_=n.floatingTop,x=void 0!==_&&_,C=n.pauseOnHover,E=void 0===C||C,O=u.default.useState(!0),T=O[0],b=O[1];if(!i||!T)return null;return e.jsxs("div",{className:"idp-notice ".concat(x?"idp-notice-floating":""),style:m({height:"".concat(s,"px")},p),children:[e.jsxs(Cn,{pauseOnHover:E,speed:o,gradient:!1,children:[e.jsx("span",{style:{width:"1200px"}}),Array.isArray(i)?e.jsx("div",{style:{display:"inline-block",whiteSpace:"nowrap"},children:i.map(function(n,t){return e.jsxs("span",{style:{marginRight:"15px",display:"inline-block"},children:[c?e.jsx("span",{style:{marginRight:"5px"},children:c}):null,n]},t)})}):e.jsx("div",{style:{display:"inline-block",whiteSpace:"nowrap"},children:e.jsxs("span",{children:[c?e.jsx("span",{style:{marginRight:"5px"},children:c}):null,i]})})]}),v&&e.jsx("div",{className:"idp-notice-close",style:m({height:"".concat(s,"px")},f),onClick:function(){b(!1)},children:e.jsx("span",{style:{color:"white",fontSize:"16px",fontWeight:"bold"},children:"×"})})]})},On=function(n){switch(n){case"success":return e.jsx("i",{className:"fas fa-check-circle"});case"warning":return e.jsx("i",{className:"fas fa-exclamation-triangle"});case"error":return e.jsx("i",{className:"fas fa-times-circle"});default:return e.jsx("i",{className:"fas fa-info-circle"})}},Tn=function(t){var i=t.message,r=t.duration,o=void 0===r?3e3:r,a=t.type,s=void 0===a?"info":a,l=t.position,c=void 0===l?"center":l,d=t.color,u=t.top,p=t.open,h=t.clickOutsideToClose,f=void 0!==h&&h,g=t.onClose,v=void 0!==p,_=n.useState(!0),x=_[0],C=_[1],E=n.useState(!0),O=E[0],T=E[1],b=n.useRef(null),N=v?p:x;if(n.useEffect(function(){var e=function(e){f&&b.current&&!b.current.contains(e.target)&&(T(!1),setTimeout(function(){g&&g(),v||C(!1)},500))};return f&&N&&document.addEventListener("click",e),function(){document.removeEventListener("click",e)}},[f,N,v,g]),n.useEffect(function(){v&&(p?T(!0):(T(!1),setTimeout(function(){g&&g()},500)))},[p,v,g]),n.useEffect(function(){if(N){var e=setTimeout(function(){T(!1),setTimeout(function(){g&&g(),v||C(!1)},500)},o);return function(){return clearTimeout(e)}}},[o,N,v,g]),!N||!O)return null;var A="notification-".concat(s),y=d?"notification-custom":"",S=function(){var e={};if(void 0!==u)if(e.top="".concat(u,"px"),c.startsWith("top-"))switch(c){case"top-left":e.left="20px",e.right="auto";break;case"top-center":e.left="50%",e.transform="translateX(-50%)",e.right="auto";break;case"top-right":e.right="20px",e.left="auto"}else e.right="20px",e.left="auto",e.bottom="auto";return e}(),L=m({backgroundColor:d},S),I=void 0===u?"notification-".concat(c):"";return e.jsx("div",{ref:b,className:"notification ".concat(A," ").concat(I," ").concat(y," ").concat(O?"fade-in":"fade-out"),style:L,children:e.jsxs("div",{className:"notification-content",children:[On(s),e.jsx("span",{children:i})]})})},bn=n.createContext(void 0),Nn=function(t){var i,r=t.value,o=t.checked,a=t.defaultChecked,s=void 0!==a&&a,l=t.onChange,c=t.disabled,d=void 0!==c&&c,u=t.size,h=t.children,f=t.className,g=t.style,v=t.label,_=t.labelGap,x=void 0===_?8:_,C=t.labelClassName,E=void 0===C?"":C,O=t.labelStyle,T=n.useContext(bn),b=!!T,N=n.useState(s),A=N[0],y=N[1],S=b?T.value===r:void 0!==o?o:A,L=u||(b?T.size:void 0),I="button"===(b?T.type:void 0);n.useEffect(function(){b||void 0===o||y(o)},[o,b]);var w=p.default("idp-radio",((i={"idp-radio--checked":S,"idp-radio--disabled":d||b&&T.disabled})["idp-radio--".concat(L)]=L,i["idp-radio--button"]=I,i),f);return e.jsx("label",{className:w,style:g,children:e.jsxs("div",{className:"idp-radio-wrapper",style:{display:"flex",alignItems:"center"},children:[v&&e.jsx("div",{className:"idp-radio-label ".concat(E),style:m({marginRight:"number"==typeof x?"".concat(x,"px"):x},O),children:v}),e.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[e.jsx("input",{type:"radio",className:"idp-radio__input",checked:S,onChange:function(e){var n,t=e.target.checked;d||b&&T.disabled||(b?null===(n=T.onChange)||void 0===n||n.call(T,r):(y(t),null==l||l(t,r)))},disabled:d||b&&T.disabled,value:r}),!I&&e.jsx("span",{className:"idp-radio__inner"}),h&&e.jsx("span",{className:"idp-radio__label",children:h})]})]})})};Nn.Group=function(t){var i,r=t.value,o=t.defaultValue,a=t.onChange,s=t.disabled,l=void 0!==s&&s,c=t.type,d=void 0===c?"radio":c,u=t.size,h=void 0===u?"middle":u,f=t.children,m=t.className,g=t.style,v=n.useState(o),_=v[0],x=v[1];n.useEffect(function(){void 0!==r&&x(r)},[r]);var C=p.default("idp-radio-group",((i={"idp-radio-group--button":"button"===d})["idp-radio-group--".concat(h)]=h,i),m);return e.jsx(bn.Provider,{value:{value:void 0!==r?r:_,onChange:function(e){x(e),null==a||a(e)},disabled:l,type:d,size:h},children:e.jsx("div",{className:C,style:g,children:f})})},Nn.displayName="Radio",Nn.Group.displayName="Radio.Group";var An=Nn,yn=n.createContext(void 0),Sn=function(t){var i,r=t.value,o=t.defaultValue,a=t.onChange,s=t.placeholder,l=void 0===s?"请选择":s,c=t.disabled,d=void 0!==c&&c,h=t.size,f=void 0===h?"middle":h,g=t.style,v=t.className,_=t.options,x=t.children,C=t.open,E=t.onOpenChange,O=t.width,T=t.height,b=t.dropdownHeight,N=t.label,A=t.labelGap,y=void 0===A?8:A,S=t.labelClassName,L=void 0===S?"":S,I=t.labelStyle,w=n.useState(o),M=w[0],R=w[1],D=n.useState(!1),H=D[0],P=D[1],j=n.useState(l),V=j[0],z=j[1],U=n.useRef(null),B=n.useRef(null),F=n.useRef(null),G=void 0!==C?C:H,Y=function(e,n){if(n)for(var t=0,i=u.default.Children.toArray(n);t<i.length;t++){var r=i[t];if(u.default.isValidElement(r)){if(r.type===u.default.Fragment){var o=Y(e,r.props.children);if(void 0!==o)return o;continue}if(r.type===Sn.OptGroup){var a=Y(e,r.props.children);if(void 0!==a)return a;continue}if(r.type===Sn.Option&&r.props.value===e)return r.props.children}}};n.useEffect(function(){if(void 0!==r){var e;if(R(r),_&&_.length>0){var n=_.find(function(e){return e.value===r});n&&(e=n.label)}void 0===e&&x&&(e=Y(r,x)),void 0===e&&null==r&&(e=l),void 0!==e&&z(e)}},[r,_,x,l]),n.useEffect(function(){if(void 0===r){var e;if(_&&_.length>0){var n=_.find(function(e){return e.value===M});n&&(e=n.label)}void 0===e&&x&&(e=Y(M,x)),void 0===e&&null==M&&(e=l),void 0!==e&&z(e)}},[M,_,x,l,r]),n.useEffect(function(){var e=function(e){G&&U.current&&!U.current.contains(e.target)&&(void 0!==C?null==E||E(!1):P(!1))};return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}},[G,C,E]);var $,W,K=function(e,n){if(!d)if(void 0===r&&R(e),null==a||a(e),void 0!==C?null==E||E(!1):P(!1),n)z(n);else if(_&&_.length>0){var t=_.find(function(n){return n.value===e});t&&z(t.label)}},Z=T?void 0:f,X=m(m({},g),{width:O}),q={height:T,flex:void 0!==O?1:void 0},J={maxHeight:b},Q=p.default("idp-select",((i={"idp-select--open":G,"idp-select--disabled":d})["idp-select--".concat(Z)]=Z,i),v);return e.jsx(yn.Provider,{value:{value:M,onOptionSelect:K,disabled:d},children:e.jsx("div",{className:Q,style:X,ref:U,children:e.jsxs("div",{className:"idp-select-wrapper",style:{display:"flex",alignItems:"center"},children:[N&&e.jsx("div",{className:"idp-select-label ".concat(L),style:m({marginRight:"number"==typeof y?"".concat(y,"px"):y},I),children:N}),e.jsxs("div",{className:"idp-select__trigger",onClick:function(){if(!d){var e=!G;void 0!==C?null==E||E(e):P(e)}},ref:F,"aria-expanded":G,"aria-haspopup":"listbox",style:q,children:[e.jsx("span",{className:p.default("idp-select__value",{"idp-select__value--placeholder":null==M}),children:V}),e.jsx("span",{className:"idp-select__arrow",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M4 6L8 10L12 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),G&&e.jsx("div",{className:"idp-select-dropdown",ref:B,role:"listbox",style:{},children:e.jsx("div",{className:"idp-select-dropdown__content",style:J,children:($=_&&_.length>0,W=u.default.Children.count(x)>0,$?_&&0!==_.length?_.map(function(n,t){return e.jsxs("div",{className:p.default("idp-select-option",{"idp-select-option--selected":M===n.value,"idp-select-option--disabled":n.disabled}),onClick:function(){return!n.disabled&&K(n.value,n.label)},children:[e.jsxs("div",{style:{flex:1,display:"flex",alignItems:"center"},children:[n.icon&&e.jsx(k,{type:n.icon,size:16,color:n.disabled?"#00000040":"#8c8c8c",style:{marginRight:"8px"}}),n.label]}),M===n.value&&e.jsx(k,{type:"check",size:18,color:"#339af0"})]},t)}):null:W?x:e.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"80px",padding:"20px"},children:e.jsx(le,{size:"small",description:"暂无选项"})}))})})]})]})})})};Sn.Option=function(t){var i=t.value,r=t.children,o=t.disabled,a=void 0!==o&&o,s=t.icon,l=n.useContext(yn);if(!l)throw new Error("Select.Option must be used within a Select component");var c=l.value,d=l.onOptionSelect,u=l.disabled,h=c===i,f=a||u;return e.jsxs("div",{className:p.default("idp-select-option",{"idp-select-option--selected":h,"idp-select-option--disabled":f}),onClick:function(){f||d(i,r)},role:"option","aria-selected":h,"aria-disabled":f,children:[e.jsxs("div",{style:{flex:1,display:"flex",alignItems:"center"},children:[s&&e.jsx(k,{type:s,size:16,color:f?"#00000040":"#8c8c8c",style:{marginRight:"8px"}}),r]}),h&&e.jsx(k,{type:"check",size:18,color:"#339af0"})]})},Sn.OptGroup=function(n){var t=n.label,i=n.children;return e.jsxs("div",{className:"idp-select-optgroup",children:[e.jsx("div",{className:"idp-select-optgroup__label",children:t}),e.jsx("div",{className:"idp-select-optgroup__content",children:i})]})},Sn.displayName="Select",Sn.Option.displayName="Select.Option",Sn.OptGroup.displayName="Select.OptGroup";var Ln=Sn,In=function(t){var i=t.value,r=t.options,o=t.onChange,a=n.useState(!1),s=a[0],l=a[1],c=n.useRef(null),d=n.useRef(null),u=n.useState({}),p=u[0],h=u[1],f=n.useCallback(function(){var e;if(c.current){var n=c.current.getBoundingClientRect(),t=window.innerHeight,i=(null===(e=d.current)||void 0===e?void 0:e.offsetHeight)||200,r=t-n.bottom,o=r>=i||r>=n.top;h(o?{top:n.bottom+window.scrollY,left:n.left+window.scrollX,width:n.width}:{top:n.top+window.scrollY-i-5,left:n.left+window.scrollX,width:n.width})}},[]);n.useEffect(function(){var e=function(e){c.current&&!c.current.contains(e.target)&&l(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[]),n.useEffect(function(){if(s){f();var e=function(){return f()};return window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),function(){window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0)}}},[s,f]);return e.jsxs("div",{className:"idp-page-size-select",ref:c,children:[e.jsxs("div",{className:"idp-page-size-select-trigger ".concat(s?"is-open":""),onClick:function(){l(!s),s||setTimeout(f,0)},children:[e.jsxs("span",{className:"idp-page-size-select-value",children:[i," 条/页"]}),e.jsx("svg",{className:"idp-page-size-select-arrow",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:e.jsx("path",{d:"M6 8L1 3h10z",fill:"currentColor"})})]}),s&&e.jsx("div",{className:"idp-page-size-select-dropdown is-open",ref:d,style:p,children:r.map(function(n){var t=parseInt(n,10);return e.jsxs("div",{className:"idp-page-size-select-option ".concat(i===t?"is-selected":""),onClick:function(){return o(t),void l(!1)},children:[n," 条/页"]},n)})})]})},wn=function(t){var i=t.total,r=void 0===i?0:i,o=t.current,a=t.pageSize,s=void 0===a?10:a,l=t.onChange,c=t.pageSizeOptions,d=void 0===c?["10","20","50","100"]:c,u=t.showSizeChanger,p=void 0!==u&&u,h=t.showQuickJumper,f=void 0!==h&&h,m=t.showTotal,g=t.size,v=void 0===g?"default":g,_=t.align,x=t.className,C=void 0===x?"":x,E=t.style,O=n.useState(1),T=O[0],b=O[1],N=n.useState(s),A=N[0],y=N[1],S=n.useRef(!0),L=void 0!==o?o:T,I=void 0!==s?s:A,w=Math.ceil(r/I),M=n.useRef(l);M.current=l,n.useEffect(function(){void 0!==s&&y(s)},[s]),n.useEffect(function(){void 0!==o&&b(o)},[o]),n.useEffect(function(){if(S.current)S.current=!1;else if(L>w&&w>0){var e=w;void 0===o&&b(e),M.current&&M.current(e,I)}},[L,w,o,I]);var R=function(e){e===L||e<1||e>w||(void 0===o&&b(e),l&&l(e,I))},D=(L-1)*I+1,H=Math.min(L*I,r),k="center"===_?"align-center":"flex-end"===_?"align-right":"";return e.jsxs("div",{className:"idp-pagination ".concat("small"===v?"mini":""," ").concat(k," ").concat(C),style:E,children:[m&&e.jsx("div",{className:"idp-pagination-total-text",children:m(r,[D,H])}),e.jsxs("ul",{className:"idp-pagination-list",children:[e.jsx("li",{className:"idp-pagination-prev ".concat(L<=1?"idp-pagination-prev-disabled":""),onClick:function(){L>1&&R(L-1)},children:"<"}),function(){if(w<=7)return Array.from({length:w},function(e,n){return n+1});var e=[];if(e.push(1),L<=4){for(var n=2;n<=5;n++)e.push(n);e.push("..."),e.push(w)}else if(L>=w-3){e.push("...");for(n=w-4;n<=w-1;n++)e.push(n);e.push(w)}else{e.push("...");for(n=L-1;n<=L+1;n++)e.push(n);e.push("..."),e.push(w)}return e}().map(function(n,t){return e.jsx("li",{className:"number"==typeof n?"idp-pagination-item ".concat(n===L?"idp-pagination-item-active":""):"idp-pagination-ellipsis",onClick:function(){return"number"==typeof n&&R(n)},children:n},t)}),e.jsx("li",{className:"idp-pagination-next ".concat(L>=w?"idp-pagination-next-disabled":""),onClick:function(){L<w&&R(L+1)},children:">"})]}),(p||f)&&e.jsxs("div",{className:"idp-pagination-options",children:[p&&e.jsx(In,{value:I,options:d,onChange:function(e){return function(e){var n=parseInt(e,10);void 0===s&&y(n),void 0===o&&b(1),l&&l(1,n)}(e.toString())}}),f&&e.jsxs("div",{className:"idp-pagination-options-quick-jumper",children:[e.jsx("div",{style:{minWidth:"30px"},children:"跳至"}),e.jsx("input",{type:"text",onKeyPress:function(e){if("Enter"===e.key){var n=e.target,t=parseInt(n.value,10);!isNaN(t)&&t>=1&&t<=w&&(R(t),n.value="")}},placeholder:"页码"}),"页"]})]})]})},Mn=function(t){var i=t.children,r=t.title,o=t.placement,a=void 0===o?"top":o,s=t.trigger,l=void 0===s?"hover":s,c=t.delay,d=void 0===c?300:c,u=t.open,p=t.backgroundColor,h=t.style,f=void 0===h?{}:h,g=t.className,v=void 0===g?"":g,_=n.useState(!1),x=_[0],C=_[1],E=n.useState({top:0,left:0}),O=E[0],T=E[1],b=n.useRef(null),N=n.useRef(null),A=n.useRef(null),y=void 0!==u?u:x,S=function(){if(b.current&&N.current){var e=b.current.getBoundingClientRect(),n=N.current.getBoundingClientRect(),t=window.pageYOffset||document.documentElement.scrollTop,i=window.pageXOffset||document.documentElement.scrollLeft,r=0,o=0;switch(a){case"top":r=e.top-n.height-8,o=e.left+(e.width-n.width)/2;break;case"bottom":r=e.bottom+8,o=e.left+(e.width-n.width)/2;break;case"left":r=e.top+(e.height-n.height)/2,o=e.left-n.width-8;break;case"right":r=e.top+(e.height-n.height)/2,o=e.right+8}T({top:r+t,left:o+i})}},L=function(e){if("click"===l&&void 0===u&&x){var n=e.target;b.current&&!b.current.contains(n)&&N.current&&!N.current.contains(n)&&C(!1)}};return n.useEffect(function(){if(y){requestAnimationFrame(S);var e=function(){return S()},n=function(){return S()};return window.addEventListener("resize",e),window.addEventListener("scroll",n,!0),"click"===l&&void 0===u&&document.addEventListener("click",L),function(){window.removeEventListener("resize",e),window.removeEventListener("scroll",n,!0),"click"===l&&void 0===u&&document.removeEventListener("click",L)}}},[y,a,l,u]),n.useEffect(function(){return function(){A.current&&clearTimeout(A.current)}},[]),e.jsxs(e.Fragment,{children:[e.jsx("span",{ref:b,onMouseEnter:"hover"===l?function(){r&&void 0===u&&(A.current&&clearTimeout(A.current),A.current=setTimeout(function(){C(!0),requestAnimationFrame(S)},d))}:void 0,onMouseLeave:"hover"===l?function(){void 0===u&&(A.current&&(clearTimeout(A.current),A.current=null),C(!1))}:void 0,onClick:"click"===l?function(){"click"===l&&void 0===u&&C(!x)}:void 0,style:{display:"inline-block"},children:i}),y&&r&&e.jsxs("div",{ref:N,className:"idp-tooltip idp-tooltip-".concat(a," ").concat(v),style:m({position:"fixed",top:O.top,left:O.left,zIndex:1e3,backgroundColor:p},f),onMouseEnter:"hover"===l&&void 0===u?function(){return C(!0)}:void 0,onMouseLeave:"hover"===l&&void 0===u?function(){return C(!1)}:void 0,children:[e.jsx("div",{className:"idp-tooltip-content",children:r}),e.jsx("div",{className:"idp-tooltip-arrow",style:{backgroundColor:p}})]})]})},Rn=function(t){var i=t.dataSource,r=void 0===i?[]:i,o=t.columns,a=void 0===o?[]:o,s=t.bordered,l=void 0!==s&&s,c=t.scroll,d=void 0===c?{}:c,u=t.rowKey,p=void 0===u?"key":u,h=t.className,f=void 0===h?"":h,v=t.pagination,_=t.empty,C=t.loading,E=void 0!==C&&C,O=t.loadingText,T=void 0===O?"加载中...":O,b=t.loadingDelay,N=n.useState([]),A=N[0],y=N[1],S=n.useState([]),L=S[0],I=S[1],w=n.useState([]),M=w[0],R=w[1],D=n.useState([]),H=D[0],P=D[1],j=n.useState(1),V=j[0],z=j[1],U=n.useState(10),B=U[0],F=U[1],G=n.useState(E),Y=G[0],$=G[1],W=n.useRef(null),K=n.useRef(null),Z=n.useRef(null),X=n.useRef(null),q=n.useState(null),J=q[0],Q=q[1],ee=n.useState(""),ne=ee[0],te=ee[1];n.useEffect(function(){return W.current&&(clearTimeout(W.current),W.current=null),E&&b&&b>0?($(!0),W.current=setTimeout(function(){$(!1)},b)):$(E),function(){W.current&&clearTimeout(W.current)}},[E,b]),n.useEffect(function(){v&&"object"==typeof v&&(void 0!==v.current&&z(v.current),void 0!==v.pageSize&&F(v.pageSize))},[v&&"object"==typeof v?v.current:void 0,v&&"object"==typeof v?v.pageSize:void 0]);n.useEffect(function(){var e=[],n=[],t=[],i=[];a.forEach(function(r,o){var a,s=(a=r.width)?"number"==typeof a?a:parseInt(a,10)||0:0;i[o]=s;var l=m(m({},r),{_index:o});"start"===r.fixed||!0===r.fixed?e.push(l):"end"===r.fixed?n.push(l):t.push(l)}),y(e),I(n),R(t),P(i)},[a]);var ie=function(e,n){var t=n||B,i=t!==B?1:e;z(i),F(t),v&&"function"==typeof v.onChange&&v.onChange(i,n)},re=function(e){return null==e?"":"string"==typeof e?e:"number"==typeof e?String(e):Array.isArray(e)?e.map(re).join(""):"object"==typeof e&&e.props&&e.props.children?re(e.props.children):""},oe=function(){Q(null),te("")},ae=function(n,t,i,r,o){var a={width:n.width||"auto",textAlign:n.align||"left",backgroundColor:"white"};if("start"===n.fixed||!0===n.fixed){a.position="sticky";for(var s=0,l=0;l<r;l++)s+=H[l]||0;a.left="".concat(s,"px"),a.zIndex=5}else if("end"===n.fixed){a.position="sticky";var c=0;for(l=o.length-1;l>r;l--)c+=H[l]||0;a.right="".concat(c,"px"),a.zIndex=5}var d=A.length?A.length-1:-1,u=L.length?A.length+M.length:-1,p=("start"===n.fixed||!0===n.fixed)&&r===d,h="end"===n.fixed&&r===u,f=n.key||n.dataIndex||n._index,m=(null==J?void 0:J.rowIndex)===i&&(null==J?void 0:J.colKey)===String(f),g=n.dataIndex?t[n.dataIndex]:null;n.render&&(g=n.render(g,t,i));var v=n.maxLines&&n.maxLines>0,_="";if(n.tooltip&&!m&&!(_=re(g))&&n.dataIndex&&(_=String(t[n.dataIndex]||"")),n.editable&&m)return e.jsx("td",{style:a,className:"".concat(p?"idp-table-fixed-left-shadow":"").concat(h?" idp-table-fixed-right-shadow":""),children:e.jsxs("div",{className:"idp-table-edit-cell",onClick:function(e){return e.stopPropagation()},children:[e.jsx("input",{type:"text",className:"idp-table-edit-input",value:ne,onChange:function(e){return te(e.target.value)},autoFocus:!0,onClick:function(e){return e.stopPropagation()}}),e.jsxs("div",{className:"idp-table-edit-actions",children:[e.jsx("span",{className:"idp-table-edit-icon idp-edit-submit",onClick:function(){return function(e,n){n.onSave&&n.onSave(e,ne),Q(null),te("")}(t,n)},title:"保存",children:e.jsx(k,{type:"check",size:24,color:"#339af0"})}),e.jsx("span",{className:"idp-table-edit-icon idp-edit-cancel",onClick:oe,title:"取消",children:e.jsx(k,{type:"close",size:24,color:"#339af0"})})]})]})},n.key||n.dataIndex||n._index);var x=v?e.jsx("div",{className:"idp-table-cell-ellipsis",style:{WebkitLineClamp:n.maxLines},children:g}):g,C=_?e.jsx(Mn,{title:_,placement:"top",children:x}):x;return e.jsxs("td",{style:a,onClick:n.editable?function(){return function(e,n,t){Q({rowIndex:e,colKey:n}),te(String(t||""))}(i,String(f),g)}:void 0,className:"".concat(p?"idp-table-fixed-left-shadow":"").concat(h?" idp-table-fixed-right-shadow":"").concat(v?" idp-table-cell-has-ellipsis":"").concat(n.editable?" idp-table-editable-cell":""),children:[C,n.editable&&e.jsx("span",{className:"idp-table-edit-icon-wrapper",children:e.jsx(k,{type:"edit",size:16,color:"#339af0"})})]},n.key||n.dataIndex||n._index)},se={width:d.x?"number"==typeof d.x?"".concat(d.x,"px"):d.x:"100%"},ce={maxHeight:d.y?"number"==typeof d.y?"".concat(d.y,"px"):d.y:"auto",overflowY:d.y?"auto":"visible",overflowX:d.x?"auto":"visible"},de=x(x(x([],A,!0),M,!0),L,!0),ue=n.useMemo(function(){return function(e,n){if(void 0===e&&(e=V),void 0===n&&(n=B),!1===v)return null;var t,i=void 0!==(null==v?void 0:v.total)?v.total:r.length,o=Math.ceil(i/n)||1,a=Math.min(e,o);if(void 0!==(null==v?void 0:v.total))t=r;else{var s=(a-1)*n,l=s+n;t=r.slice(s,l)}return{data:t,total:i,pageSize:n,current:a,totalPages:o}}()},[r,v,B,V]),pe=ue?ue.data:r;return e.jsxs("div",{ref:K,className:"custom-table-container ".concat(l?"bordered":""," ").concat(f),style:se,children:[Y&&e.jsx("div",{className:"custom-table-loading-mask",children:e.jsxs("div",{className:"custom-table-loading-content",children:[e.jsx("div",{className:"custom-table-loading-spinner",children:e.jsxs("svg",{viewBox:"0 0 24 24",className:"custom-table-loading-icon",children:[e.jsx("circle",{className:"custom-table-loading-track",cx:"12",cy:"12",r:"10",fill:"none",strokeWidth:"2"}),e.jsx("circle",{className:"custom-table-loading-indicator",cx:"12",cy:"12",r:"10",fill:"none",strokeWidth:"2"})]})}),T&&e.jsx("div",{className:"custom-table-loading-text",children:T})]})}),e.jsx("div",{className:"custom-table-header",ref:Z,onScroll:function(e){if(Z.current&&X.current){var n=e.target;n===Z.current&&X.current.scrollLeft!==n.scrollLeft&&(X.current.scrollLeft=n.scrollLeft)}},children:e.jsxs("table",{className:"custom-table ".concat(l?"bordered":""),children:[e.jsx("colgroup",{children:de.map(function(n,t){return e.jsx("col",{style:{width:n.width||"auto"}},"header-col-".concat(n.dataIndex||n.key||t))})}),e.jsx("thead",{children:e.jsx("tr",{children:de.map(function(n,t){return function(n,t,i){var r={width:n.width||"auto",textAlign:n.align||"left",backgroundColor:"#fafafa !important",top:0};if("start"===n.fixed||!0===n.fixed){r.position="sticky";for(var o=0,a=0;a<t;a++)o+=H[a]||0;r.left="".concat(o,"px"),r.zIndex=10}else if("end"===n.fixed){r.position="sticky";var s=0;for(a=i.length-1;a>t;a--)s+=H[a]||0;r.right="".concat(s,"px"),r.zIndex=10}return e.jsx("th",{style:r,children:n.title||""},n.key||n.dataIndex||n._index)}(n,t,de)})})})]})}),e.jsx("div",{className:"custom-table-body",ref:X,style:ce,onScroll:function(e){if(Z.current&&X.current){var n=e.target;n===X.current&&Z.current.scrollLeft!==n.scrollLeft&&(Z.current.scrollLeft=n.scrollLeft)}},children:e.jsxs("table",{className:"custom-table ".concat(l?"bordered":""),children:[e.jsx("colgroup",{children:de.map(function(n,t){return e.jsx("col",{style:{width:n.width||"auto"}},"body-col-".concat(n.dataIndex||n.key||t))})}),e.jsx("tbody",{children:pe.map(function(n,t){return e.jsx("tr",{children:de.map(function(e,i){return ae(e,n,t,i,de)})},function(e,n){return"function"==typeof p?p(e,n):e[p]||n}(n,t))})})]})}),0===pe.length&&e.jsx("div",{className:"custom-table-empty",children:_||e.jsx(le,{size:"small",description:"暂无数据"})}),function(){if(!1===v||!ue)return null;var n=ue.total,t=ue.current,i=ue.pageSize,r=g(v||{},["onChange","pageSize","current"]);return e.jsx("div",{className:"custom-table-pagination-wrapper",children:e.jsx(wn,m({total:n,current:t,pageSize:i,onChange:ie,showTotal:function(e,n){return"第 ".concat(n[0],"-").concat(n[1]," 条,共 ").concat(e," 条")},showSizeChanger:!0,showQuickJumper:!0,align:"flex-end"},r))})}()]})};function Dn(e){return tn({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M34.9 289.5l-22.2-22.2c-9.4-9.4-9.4-24.6 0-33.9L207 39c9.4-9.4 24.6-9.4 33.9 0l194.3 194.3c9.4 9.4 9.4 24.6 0 33.9L413 289.4c-9.5 9.5-25 9.3-34.3-.4L264 168.6V456c0 13.3-10.7 24-24 24h-32c-13.3 0-24-10.7-24-24V168.6L69.2 289.1c-9.3 9.8-24.8 10-34.3.4z"},child:[]}]})(e)}var Hn=function(t){var i=t.showAfter,r=void 0===i?100:i,o=t.bottom,a=void 0===o?30:o,s=t.right,l=void 0===s?30:s,c=t.size,d=void 0===c?40:c,u=t.color,p=void 0===u?"#fff":u,h=t.bgColor,f=void 0===h?"#1a2980":h,m=t.boxShadow,g=void 0===m?"0 2px 10px rgba(0, 0, 0, 0.15)":m,v=t.onClick,_=t.containerRef,x=t.icon,C=n.useState(!1),E=C[0],O=C[1],T=n.useRef(null),b=n.useCallback(function(){(null==_?void 0:_.current)?_.current.scrollTo({top:0,behavior:"smooth"}):window.scrollTo({top:0,behavior:"smooth"}),null==v||v()},[v,_]);if(n.useEffect(function(){var e=function(){var e=0;e=(null==_?void 0:_.current)?_.current.scrollTop:window.pageYOffset,O(e>r)};if(null==_?void 0:_.current){var n=_.current;return n.addEventListener("scroll",e),e(),function(){return n.removeEventListener("scroll",e)}}return window.addEventListener("scroll",e),e(),function(){return window.removeEventListener("scroll",e)}},[r,_]),!E)return null;var N=e.jsx(Dn,{size:Math.floor(.5*d)}),A=.5*d;return(null==_?void 0:_.current)?e.jsx("div",{ref:T,className:"top-button-wrapper-container",style:{position:"sticky",bottom:"".concat(a,"px"),marginLeft:"auto",width:"".concat(d,"px"),height:"".concat(d,"px"),right:"".concat(l,"px"),zIndex:10},children:e.jsx("button",{className:"top-button",onClick:b,style:{width:"".concat(d,"px"),height:"".concat(d,"px"),backgroundColor:f,color:p,boxShadow:g,padding:0,border:"none"},children:x?e.jsx("span",{style:{width:A,height:A,display:"flex",alignItems:"center",justifyContent:"center"},children:x}):N})}):e.jsx("div",{ref:T,className:"top-button-wrapper",style:{position:"fixed",bottom:"".concat(a,"px"),right:"".concat(l,"px"),zIndex:1e3},children:e.jsx("button",{className:"top-button",onClick:b,style:{width:"".concat(d,"px"),height:"".concat(d,"px"),backgroundColor:f,color:p,boxShadow:g,padding:0,border:"none"},children:x?e.jsx("span",{style:{width:A,height:A,display:"flex",alignItems:"center",justifyContent:"center"},children:x}):N})})},kn=function(n){var t=n.children,i=n.width,r=n.rows,o=n.style,a=n.className,s=m(m({},o),{width:i}),l=["idp-typography",function(e){return e?"idp-typography--line-clamp-".concat(e):""}(r),a].filter(Boolean);return e.jsx("div",{className:l.join(" "),style:s,children:t})},Pn=function(t){var i=t.items,r=t.columns,o=void 0===r?3:r,a=t.gutter,s=void 0===a?20:a,l=t.className,c=t.style,d=t.classNames,u=void 0===d?{}:d,p=t.styles,h=void 0===p?{}:p,f=t.onLayoutChange,g=n.useRef(null),v=n.useState(3),_=v[0],x=v[1],C=n.useState(20),E=C[0],O=C[1],T=function(e,n,t){if(null!==e&&"object"==typeof e&&!Array.isArray(e)){for(var i=e,r=0,o=Object.keys(i).map(Number).sort(function(e,n){return n-e});r<o.length;r++){var a=o[r];if(t>=a&&i.hasOwnProperty(a))return i[a]}return n}return e};n.useEffect(function(){var e,n=function(){clearTimeout(e),e=window.setTimeout(function(){if(g.current){var e=g.current.offsetWidth,n=T(o,3,e),t=T(s,20,e);x(n),O(t),f&&f(n,i)}},100)};return n(),window.addEventListener("resize",n),function(){clearTimeout(e),window.removeEventListener("resize",n)}},[o,s,i,f]);var b=n.useMemo(function(){var e=Array.from({length:_},function(){return[]});return i.filter(function(n){return!(void 0!==n.column&&n.column>=0&&n.column<_)||(e[n.column].push(n),!1)}).forEach(function(n,t){e[t%_].push(n)}),e},[i,_]),N=function(e,n){var t=u[e];return"function"==typeof t?t(n):t||""},A=function(e,n){var t=h[e];return"function"==typeof t?t(n):t||{}};return e.jsx("div",{ref:g,className:"idp-masonry ".concat(l||""," ").concat(N("container",0)),style:m(m({display:"flex",gap:"".concat(E,"px")},c),A("container",0)),children:b.map(function(n,t){return e.jsx("div",{className:"idp-masonry-column ".concat(N("column",t)),style:m({flex:1,display:"flex",flexDirection:"column",gap:"".concat(E,"px")},A("column",t)),children:n.map(function(n,t){return e.jsx("div",{className:"idp-masonry-item ".concat(N("item",t)),style:m({},A("item",t)),children:n.content},n.key)})},"column-".concat(t))})})},jn=function(n){var t=n.children,i=n.gap,r=void 0===i?12:i,o=n.align,a=void 0===o?"center":o,s=n.wrap,l=void 0===s?"nowrap":s,c=n.className,d=n.style,p=void 0===d?{}:d,h=n.inline,f=void 0!==h&&h,g=u.default.Children.toArray(t).filter(function(e){return null!=e});return 0===g.length?null:e.jsx("div",{className:"space ".concat(f?"space-inline":""," ").concat(c||""),style:m({display:f?"inline-flex":"flex",gap:"number"==typeof r?"".concat(r,"px"):r,alignItems:function(){switch(a){case"start":return"flex-start";case"end":return"flex-end";case"center":default:return"center";case"baseline":return"baseline";case"stretch":return"stretch"}}(),flexWrap:l},p),children:g.map(function(n,t){return e.jsx("div",{className:"space-item",children:n},t)})})},Vn=function(){return null},zn=function(t){var i=t.className,r=t.style,o=t.children,a=t.offsetTop,s=void 0===a?0:a,l=t.affix,c=void 0===l||l,d=t.bounds,p=void 0===d?5:d,h=t.getContainer,f=void 0===h?function(){return window.document.documentElement}:h,g=t.onChange,v=n.useState(""),_=v[0],C=v[1],E=n.useState([]),O=E[0],T=E[1],b=n.useRef(null),N=n.useRef(null),A=n.useRef(""),y=n.useRef(!1);n.useEffect(function(){A.current=_},[_]);var S=function(){var e=f(),n=e===window.document.documentElement||e===document.body,t=!1,i=O.map(function(i){var r=document.querySelector(i.href);if(r){var o=r.getBoundingClientRect(),a=0;if(n)a=o.top+window.scrollY-s;else{var l=e.getBoundingClientRect();a=o.top-l.top+e.scrollTop-s}if(Math.abs(a-i.top)>1)return t=!0,m(m({},i),{top:a})}return i});t&&T(i)},L=function(){if(!y.current&&0!==O.length){for(var e=f(),n=(e===window.document.documentElement||e===document.body?window.scrollY:e.scrollTop)+s+p,t="",i=x([],O,!0).sort(function(e,n){return e.top-n.top}),r=0;r<i.length&&n>=i[r].top;r+=1)t=i[r].href;t!==A.current&&(C(t),null==g||g(t))}};n.useEffect(function(){var e=function(e){var n=[],t=function(e){if(u.default.isValidElement(e)){var i=e;if(i.type===Vn&&i.props.href&&i.props.title&&n.push({href:i.props.href,title:i.props.title,top:0}),"children"in i.props&&i.props.children){var r=i.props.children;Array.isArray(r)?r.forEach(t):t(r)}}};return Array.isArray(e)?e.forEach(t):t(e),n}(o);T(e)},[o]),n.useEffect(function(){S(),L();var e=f();N.current=function(){L()},e.addEventListener("scroll",N.current);var n=function(){S(),L()};return window.addEventListener("resize",n),function(){N.current&&e.removeEventListener("scroll",N.current),window.removeEventListener("resize",n)}},[O,s,p,f,g]);var I="idp-anchor ".concat(i||""," ").concat(c?"idp-anchor-affix":"");return e.jsx("div",{ref:b,className:I,style:r,children:e.jsx("ul",{className:"idp-anchor-list",children:O.map(function(n){return e.jsx("li",{className:"idp-anchor-link ".concat(_===n.href?"idp-anchor-link-active":""),children:e.jsx("a",{href:n.href,onClick:function(e){return function(e,n){e.preventDefault();var t=document.querySelector(n);if(t){var i=f();y.current=!0,console.log("开始点击锚点,设置isUserClickingRef为true"),C(n),g&&(console.log("点击锚点,触发onChange:",n),g(n)),setTimeout(function(){if(i!==window.document.documentElement&&i!==document.body){var e=i.getBoundingClientRect(),n=(r=t.getBoundingClientRect()).top-e.top+i.scrollTop-s;i&&"function"==typeof i.scrollTo&&i.scrollTo({top:n,behavior:"smooth"})}else{var r=t.getBoundingClientRect(),o=window.pageYOffset||document.documentElement.scrollTop;n=r.top+o-s,window.scrollTo({top:n,behavior:"smooth"})}setTimeout(function(){y.current=!1,console.log("滚动完成,清除isUserClickingRef标记")},800)},0)}}(e,n.href)},className:"idp-anchor-link-a",children:n.title})},n.href)})})})};zn.Link=Vn;var Un=zn,Bn=function(n){var t=n.items,i=n.separator,r=void 0===i?"/":i,o=n.className,a=void 0===o?"":o;return t&&0!==t.length?e.jsx("nav",{className:"breadcrumb ".concat(a),"aria-label":"breadcrumb",children:e.jsx("ol",{className:"breadcrumb-list",children:t.map(function(n,i){var o=i===t.length-1;return e.jsx("li",{className:"breadcrumb-item",children:o?e.jsx("span",{className:"breadcrumb-current",children:n.label}):e.jsxs(e.Fragment,{children:[n.href?e.jsx("a",{href:n.href,className:"breadcrumb-link",children:n.label}):e.jsx("span",{className:"breadcrumb-text",children:n.label}),i<t.length-1&&e.jsx("span",{className:"breadcrumb-separator",children:r})]})},i)})})}):null};const Fn=e=>"string"==typeof e,Gn=()=>{let e,n;const t=new Promise((t,i)=>{e=t,n=i});return t.resolve=e,t.reject=n,t},Yn=e=>null==e?"":""+e,$n=/###/g,Wn=e=>e&&e.indexOf("###")>-1?e.replace($n,"."):e,Kn=e=>!e||Fn(e),Zn=(e,n,t)=>{const i=Fn(n)?n.split("."):n;let r=0;for(;r<i.length-1;){if(Kn(e))return{};const n=Wn(i[r]);!e[n]&&t&&(e[n]=new t),e=Object.prototype.hasOwnProperty.call(e,n)?e[n]:{},++r}return Kn(e)?{}:{obj:e,k:Wn(i[r])}},Xn=(e,n,t)=>{const{obj:i,k:r}=Zn(e,n,Object);if(void 0!==i||1===n.length)return void(i[r]=t);let o=n[n.length-1],a=n.slice(0,n.length-1),s=Zn(e,a,Object);for(;void 0===s.obj&&a.length;)o=`${a[a.length-1]}.${o}`,a=a.slice(0,a.length-1),s=Zn(e,a,Object),s?.obj&&void 0!==s.obj[`${s.k}.${o}`]&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=t},qn=(e,n)=>{const{obj:t,k:i}=Zn(e,n);if(t&&Object.prototype.hasOwnProperty.call(t,i))return t[i]},Jn=(e,n,t)=>{for(const i in n)"__proto__"!==i&&"constructor"!==i&&(i in e?Fn(e[i])||e[i]instanceof String||Fn(n[i])||n[i]instanceof String?t&&(e[i]=n[i]):Jn(e[i],n[i],t):e[i]=n[i]);return e},Qn=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var et={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const nt=e=>Fn(e)?e.replace(/[&<>"'\/]/g,e=>et[e]):e;const tt=[" ",",","?","!",";"],it=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(void 0!==n)return n;const t=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,t),this.regExpQueue.push(e),t}}(20),rt=(e,n,t=".")=>{if(!e)return;if(e[n]){if(!Object.prototype.hasOwnProperty.call(e,n))return;return e[n]}const i=n.split(t);let r=e;for(let e=0;e<i.length;){if(!r||"object"!=typeof r)return;let n,o="";for(let a=e;a<i.length;++a)if(a!==e&&(o+=t),o+=i[a],n=r[o],void 0!==n){if(["string","number","boolean"].indexOf(typeof n)>-1&&a<i.length-1)continue;e+=a-e+1;break}r=n}return r},ot=e=>e?.replace("_","-"),at={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,n){console?.[e]?.apply?.(console,n)}};class st{constructor(e,n={}){this.init(e,n)}init(e,n={}){this.prefix=n.prefix||"i18next:",this.logger=e||at,this.options=n,this.debug=n.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,t,i){return i&&!this.debug?null:(Fn(e[0])&&(e[0]=`${t}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new st(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new st(this.logger,e)}}var lt=new st;class ct{constructor(){this.observers={}}on(e,n){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const t=this.observers[e].get(n)||0;this.observers[e].set(n,t+1)}),this}off(e,n){this.observers[e]&&(n?this.observers[e].delete(n):delete this.observers[e])}emit(e,...n){if(this.observers[e]){Array.from(this.observers[e].entries()).forEach(([e,t])=>{for(let i=0;i<t;i++)e(...n)})}if(this.observers["*"]){Array.from(this.observers["*"].entries()).forEach(([t,i])=>{for(let r=0;r<i;r++)t.apply(t,[e,...n])})}}}class dt extends ct{constructor(e,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=n,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,n,t,i={}){const r=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,o=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,n],t&&(Array.isArray(t)?a.push(...t):Fn(t)&&r?a.push(...t.split(r)):a.push(t)));const s=qn(this.data,a);return!s&&!n&&!t&&e.indexOf(".")>-1&&(e=a[0],n=a[1],t=a.slice(2).join(".")),!s&&o&&Fn(t)?rt(this.data?.[e]?.[n],t,r):s}addResource(e,n,t,i,r={silent:!1}){const o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator;let a=[e,n];t&&(a=a.concat(o?t.split(o):t)),e.indexOf(".")>-1&&(a=e.split("."),i=n,n=a[1]),this.addNamespaces(n),Xn(this.data,a,i),r.silent||this.emit("added",e,n,t,i)}addResources(e,n,t,i={silent:!1}){for(const i in t)(Fn(t[i])||Array.isArray(t[i]))&&this.addResource(e,n,i,t[i],{silent:!0});i.silent||this.emit("added",e,n,t)}addResourceBundle(e,n,t,i,r,o={silent:!1,skipCopy:!1}){let a=[e,n];e.indexOf(".")>-1&&(a=e.split("."),i=t,t=n,n=a[1]),this.addNamespaces(n);let s=qn(this.data,a)||{};o.skipCopy||(t=JSON.parse(JSON.stringify(t))),i?Jn(s,t,r):s={...s,...t},Xn(this.data,a,s),o.silent||this.emit("added",e,n,t)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return void 0!==this.getResource(e,n)}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(e=>n[e]&&Object.keys(n[e]).length>0)}toJSON(){return this.data}}var ut={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,n,t,i,r){return e.forEach(e=>{n=this.processors[e]?.process(n,t,i,r)??n}),n}};const pt=Symbol("i18next/PATH_KEY");function ht(e,n){const{[pt]:t}=e(function(){const e=[],n=Object.create(null);let t;return n.get=(i,r)=>(t?.revoke?.(),r===pt?e:(e.push(r),t=Proxy.revocable(i,n),t.proxy)),Proxy.revocable(Object.create(null),n).proxy}());return t.join(n?.keySeparator??".")}const ft={},mt=e=>!Fn(e)&&"boolean"!=typeof e&&"number"!=typeof e;class gt extends ct{constructor(e,n={}){var t,i;super(),t=e,i=this,["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach(e=>{t[e]&&(i[e]=t[e])}),this.options=n,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=lt.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,n={interpolation:{}}){const t={...n};if(null==e)return!1;const i=this.resolve(e,t);if(void 0===i?.res)return!1;const r=mt(i.res);return!1!==t.returnObjects||!r}extractFromKey(e,n){let t=void 0!==n.nsSeparator?n.nsSeparator:this.options.nsSeparator;void 0===t&&(t=":");const i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator;let r=n.ns||this.options.defaultNS||[];const o=t&&e.indexOf(t)>-1,a=!(this.options.userDefinedKeySeparator||n.keySeparator||this.options.userDefinedNsSeparator||n.nsSeparator||((e,n,t)=>{n=n||"",t=t||"";const i=tt.filter(e=>n.indexOf(e)<0&&t.indexOf(e)<0);if(0===i.length)return!0;const r=it.getRegExp(`(${i.map(e=>"?"===e?"\\?":e).join("|")})`);let o=!r.test(e);if(!o){const n=e.indexOf(t);n>0&&!r.test(e.substring(0,n))&&(o=!0)}return o})(e,t,i));if(o&&!a){const n=e.match(this.interpolator.nestingRegexp);if(n&&n.length>0)return{key:e,namespaces:Fn(r)?[r]:r};const o=e.split(t);(t!==i||t===i&&this.options.ns.indexOf(o[0])>-1)&&(r=o.shift()),e=o.join(i)}return{key:e,namespaces:Fn(r)?[r]:r}}translate(e,n,t){let i="object"==typeof n?{...n}:n;if("object"!=typeof i&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof i&&(i={...i}),i||(i={}),null==e)return"";"function"==typeof e&&(e=ht(e,{...this.options,...i})),Array.isArray(e)||(e=[String(e)]);const r=void 0!==i.returnDetails?i.returnDetails:this.options.returnDetails,o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(e[e.length-1],i),l=s[s.length-1];let c=void 0!==i.nsSeparator?i.nsSeparator:this.options.nsSeparator;void 0===c&&(c=":");const d=i.lng||this.language,u=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===d?.toLowerCase())return u?r?{res:`${l}${c}${a}`,usedKey:a,exactUsedKey:a,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${c}${a}`:r?{res:a,usedKey:a,exactUsedKey:a,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:a;const p=this.resolve(e,i);let h=p?.res;const f=p?.usedKey||a,m=p?.exactUsedKey||a,g=void 0!==i.joinArrays?i.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,_=void 0!==i.count&&!Fn(i.count),x=gt.hasDefaultValue(i),C=_?this.pluralResolver.getSuffix(d,i.count,i):"",E=i.ordinal&&_?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):"",O=_&&!i.ordinal&&0===i.count,T=O&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${C}`]||i[`defaultValue${E}`]||i.defaultValue;let b=h;v&&!h&&x&&(b=T);const N=mt(b),A=Object.prototype.toString.apply(b);if(!(v&&b&&N&&["[object Number]","[object Function]","[object RegExp]"].indexOf(A)<0)||Fn(g)&&Array.isArray(b))if(v&&Fn(g)&&Array.isArray(h))h=h.join(g),h&&(h=this.extendTranslation(h,e,i,t));else{let n=!1,r=!1;!this.isValidLookup(h)&&x&&(n=!0,h=T),this.isValidLookup(h)||(r=!0,h=a);const s=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&r?void 0:h,u=x&&T!==h&&this.options.updateMissing;if(r||n||u){if(this.logger.log(u?"updateKey":"missingKey",d,l,a,u?T:h),o){const e=this.resolve(a,{...i,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t<n.length;t++)e.push(n[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);const t=(e,n,t)=>{const r=x&&t!==h?t:s;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,n,r,u,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,n,r,u,i),this.emit("missingKey",e,l,n,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&_?e.forEach(e=>{const n=this.pluralResolver.getSuffixes(e,i);O&&i[`defaultValue${this.options.pluralSeparator}zero`]&&n.indexOf(`${this.options.pluralSeparator}zero`)<0&&n.push(`${this.options.pluralSeparator}zero`),n.forEach(n=>{t([e],a+n,i[`defaultValue${n}`]||T)})}):t(e,a,T))}h=this.extendTranslation(h,e,i,p,t),r&&h===a&&this.options.appendNamespaceToMissingKey&&(h=`${l}${c}${a}`),(r||n)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${c}${a}`:a,n?h:void 0,i))}else{if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,b,{...i,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return r?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){const e=Array.isArray(b),n=e?[]:{},t=e?m:f;for(const e in b)if(Object.prototype.hasOwnProperty.call(b,e)){const r=`${t}${o}${e}`;n[e]=x&&!h?this.translate(r,{...i,defaultValue:mt(T)?T[e]:void 0,joinArrays:!1,ns:s}):this.translate(r,{...i,joinArrays:!1,ns:s}),n[e]===r&&(n[e]=b[e])}h=n}}return r?(p.res=h,p.usedParams=this.getUsedParamsDetails(i),p):h}extendTranslation(e,n,t,i,r){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...t},t.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!t.skipInterpolation){t.interpolation&&this.interpolator.init({...t,interpolation:{...this.options.interpolation,...t.interpolation}});const o=Fn(e)&&(void 0!==t?.interpolation?.skipOnVariables?t.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let a;if(o){const n=e.match(this.interpolator.nestingRegexp);a=n&&n.length}let s=t.replace&&!Fn(t.replace)?t.replace:t;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,t.lng||this.language||i.usedLng,t),o){const n=e.match(this.interpolator.nestingRegexp);a<(n&&n.length)&&(t.nest=!1)}!t.lng&&i&&i.res&&(t.lng=this.language||i.usedLng),!1!==t.nest&&(e=this.interpolator.nest(e,(...e)=>r?.[0]!==e[0]||t.context?this.translate(...e,n):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${n[0]}`),null),t)),t.interpolation&&this.interpolator.reset()}const o=t.postProcess||this.options.postProcess,a=Fn(o)?[o]:o;return null!=e&&a?.length&&!1!==t.applyPostProcessor&&(e=ut.handle(a,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(t)},...t}:t,this)),e}resolve(e,n={}){let t,i,r,o,a;return Fn(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;const s=this.extractFromKey(e,n),l=s.key;i=l;let c=s.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const d=void 0!==n.count&&!Fn(n.count),u=d&&!n.ordinal&&0===n.count,p=void 0!==n.context&&(Fn(n.context)||"number"==typeof n.context)&&""!==n.context,h=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);c.forEach(e=>{this.isValidLookup(t)||(a=e,ft[`${h[0]}-${e}`]||!this.utils?.hasLoadedNamespace||this.utils?.hasLoadedNamespace(a)||(ft[`${h[0]}-${e}`]=!0,this.logger.warn(`key "${i}" for languages "${h.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(i=>{if(this.isValidLookup(t))return;o=i;const a=[l];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(a,l,i,e,n);else{let e;d&&(e=this.pluralResolver.getSuffix(i,n.count,n));const t=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(n.ordinal&&0===e.indexOf(r)&&a.push(l+e.replace(r,this.options.pluralSeparator)),a.push(l+e),u&&a.push(l+t)),p){const i=`${l}${this.options.contextSeparator||"_"}${n.context}`;a.push(i),d&&(n.ordinal&&0===e.indexOf(r)&&a.push(i+e.replace(r,this.options.pluralSeparator)),a.push(i+e),u&&a.push(i+t))}}let s;for(;s=a.pop();)this.isValidLookup(t)||(r=s,t=this.getResource(i,e,s,n))}))})}),{res:t,usedKey:i,exactUsedKey:r,usedLng:o,usedNS:a}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,n,t,i={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,n,t,i):this.resourceStore.getResource(e,n,t,i)}getUsedParamsDetails(e={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],t=e.replace&&!Fn(e.replace);let i=t?e.replace:e;if(t&&void 0!==e.count&&(i.count=e.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!t){i={...i};for(const e of n)delete i[e]}return i}static hasDefaultValue(e){const n="defaultValue";for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&n===t.substring(0,12)&&void 0!==e[t])return!0;return!1}}class vt{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=lt.create("languageUtils")}getScriptPartFromCode(e){if(!(e=ot(e))||e.indexOf("-")<0)return null;const n=e.split("-");return 2===n.length?null:(n.pop(),"x"===n[n.length-1].toLowerCase()?null:this.formatLanguageCode(n.join("-")))}getLanguagePartFromCode(e){if(!(e=ot(e))||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(Fn(e)&&e.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(e)[0]}catch(e){}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(e=>{if(n)return;const t=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(t)||(n=t)}),!n&&this.options.supportedLngs&&e.forEach(e=>{if(n)return;const t=this.getScriptPartFromCode(e);if(this.isSupportedCode(t))return n=t;const i=this.getLanguagePartFromCode(e);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(e=>e===i?e:e.indexOf("-")<0&&i.indexOf("-")<0?void 0:e.indexOf("-")>0&&i.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===i||0===e.indexOf(i)&&i.length>1?e:void 0)}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if("function"==typeof e&&(e=e(n)),Fn(e)&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let t=e[n];return t||(t=e[this.getScriptPartFromCode(n)]),t||(t=e[this.formatLanguageCode(n)]),t||(t=e[this.getLanguagePartFromCode(n)]),t||(t=e.default),t||[]}toResolveHierarchy(e,n){const t=this.getFallbackCodes((!1===n?[]:n)||this.options.fallbackLng||[],e),i=[],r=e=>{e&&(this.isSupportedCode(e)?i.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return Fn(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&r(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&r(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&r(this.getLanguagePartFromCode(e))):Fn(e)&&r(this.formatLanguageCode(e)),t.forEach(e=>{i.indexOf(e)<0&&r(this.formatLanguageCode(e))}),i}}const _t={zero:0,one:1,two:2,few:3,many:4,other:5},xt={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Ct{constructor(e,n={}){this.languageUtils=e,this.options=n,this.logger=lt.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,n={}){const t=ot("dev"===e?"en":e),i=n.ordinal?"ordinal":"cardinal",r=JSON.stringify({cleanedCode:t,type:i});if(r in this.pluralRulesCache)return this.pluralRulesCache[r];let o;try{o=new Intl.PluralRules(t,{type:i})}catch(t){if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),xt;if(!e.match(/-|_/))return xt;const i=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(i,n)}return this.pluralRulesCache[r]=o,o}needsPlural(e,n={}){let t=this.getRule(e,n);return t||(t=this.getRule("dev",n)),t?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,n,t={}){return this.getSuffixes(e,t).map(e=>`${n}${e}`)}getSuffixes(e,n={}){let t=this.getRule(e,n);return t||(t=this.getRule("dev",n)),t?t.resolvedOptions().pluralCategories.sort((e,n)=>_t[e]-_t[n]).map(e=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,n,t={}){const i=this.getRule(e,t);return i?`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",n,t))}}const Et=(e,n,t,i=".",r=!0)=>{let o=((e,n,t)=>{const i=qn(e,t);return void 0!==i?i:qn(n,t)})(e,n,t);return!o&&r&&Fn(t)&&(o=rt(e,t,i),void 0===o&&(o=rt(n,t,i))),o},Ot=e=>e.replace(/\$/g,"$$$$");class Tt{constructor(e={}){this.logger=lt.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:t,useRawValueToEscape:i,prefix:r,prefixEscaped:o,suffix:a,suffixEscaped:s,formatSeparator:l,unescapeSuffix:c,unescapePrefix:d,nestingPrefix:u,nestingPrefixEscaped:p,nestingSuffix:h,nestingSuffixEscaped:f,nestingOptionsSeparator:m,maxReplaces:g,alwaysFormat:v}=e.interpolation;this.escape=void 0!==n?n:nt,this.escapeValue=void 0===t||t,this.useRawValueToEscape=void 0!==i&&i,this.prefix=r?Qn(r):o||"{{",this.suffix=a?Qn(a):s||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=u?Qn(u):p||Qn("$t("),this.nestingSuffix=h?Qn(h):f||Qn(")"),this.nestingOptionsSeparator=m||",",this.maxReplaces=g||1e3,this.alwaysFormat=void 0!==v&&v,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,n)=>e?.source===n?(e.lastIndex=0,e):new RegExp(n,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,n,t,i){let r,o,a;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=e=>{if(e.indexOf(this.formatSeparator)<0){const r=Et(n,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(r,void 0,t,{...i,...n,interpolationkey:e}):r}const r=e.split(this.formatSeparator),o=r.shift().trim(),a=r.join(this.formatSeparator).trim();return this.format(Et(n,s,o,this.options.keySeparator,this.options.ignoreJSONStructure),a,t,{...i,...n,interpolationkey:o})};this.resetRegExp();const c=i?.missingInterpolationHandler||this.options.missingInterpolationHandler,d=void 0!==i?.interpolation?.skipOnVariables?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>Ot(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?Ot(this.escape(e)):Ot(e)}].forEach(n=>{for(a=0;r=n.regex.exec(e);){const t=r[1].trim();if(o=l(t),void 0===o)if("function"==typeof c){const n=c(e,r,i);o=Fn(n)?n:""}else if(i&&Object.prototype.hasOwnProperty.call(i,t))o="";else{if(d){o=r[0];continue}this.logger.warn(`missed to pass in variable ${t} for interpolating ${e}`),o=""}else Fn(o)||this.useRawValueToEscape||(o=Yn(o));const s=n.safeValue(o);if(e=e.replace(r[0],s),d?(n.regex.lastIndex+=o.length,n.regex.lastIndex-=r[0].length):n.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),e}nest(e,n,t={}){let i,r,o;const a=(e,n)=>{const t=this.nestingOptionsSeparator;if(e.indexOf(t)<0)return e;const i=e.split(new RegExp(`${t}[ ]*{`));let r=`{${i[1]}`;e=i[0],r=this.interpolate(r,o);const a=r.match(/'/g),s=r.match(/"/g);((a?.length??0)%2==0&&!s||s.length%2!=0)&&(r=r.replace(/'/g,'"'));try{o=JSON.parse(r),n&&(o={...n,...o})}catch(n){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,n),`${e}${t}${r}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,e};for(;i=this.nestingRegexp.exec(e);){let s=[];o={...t},o=o.replace&&!Fn(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;const l=/{.*}/.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(-1!==l&&(s=i[1].slice(l).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),i[1]=i[1].slice(0,l)),r=n(a.call(this,i[1].trim(),o),o),r&&i[0]===e&&!Fn(r))return r;Fn(r)||(r=Yn(r)),r||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),r=""),s.length&&(r=s.reduce((e,n)=>this.format(e,n,t.lng,{...t,interpolationkey:i[1].trim()}),r.trim())),e=e.replace(i[0],r),this.regexp.lastIndex=0}return e}}const bt=e=>{const n={};return(t,i,r)=>{let o=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(o={...o,[r.interpolationkey]:void 0});const a=i+JSON.stringify(o);let s=n[a];return s||(s=e(ot(i),r),n[a]=s),s(t)}},Nt=e=>(n,t,i)=>e(ot(t),i)(n);class At{constructor(e={}){this.logger=lt.create("formatter"),this.options=e,this.init(e)}init(e,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const t=n.cacheInBuiltFormats?bt:Nt;this.formats={number:t((e,n)=>{const t=new Intl.NumberFormat(e,{...n});return e=>t.format(e)}),currency:t((e,n)=>{const t=new Intl.NumberFormat(e,{...n,style:"currency"});return e=>t.format(e)}),datetime:t((e,n)=>{const t=new Intl.DateTimeFormat(e,{...n});return e=>t.format(e)}),relativetime:t((e,n)=>{const t=new Intl.RelativeTimeFormat(e,{...n});return e=>t.format(e,n.range||"day")}),list:t((e,n)=>{const t=new Intl.ListFormat(e,{...n});return e=>t.format(e)})}}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=bt(n)}format(e,n,t,i={}){const r=n.split(this.formatSeparator);if(r.length>1&&r[0].indexOf("(")>1&&r[0].indexOf(")")<0&&r.find(e=>e.indexOf(")")>-1)){const e=r.findIndex(e=>e.indexOf(")")>-1);r[0]=[r[0],...r.splice(1,e)].join(this.formatSeparator)}return r.reduce((e,n)=>{const{formatName:r,formatOptions:o}=(e=>{let n=e.toLowerCase().trim();const t={};if(e.indexOf("(")>-1){const i=e.split("(");n=i[0].toLowerCase().trim();const r=i[1].substring(0,i[1].length-1);"currency"===n&&r.indexOf(":")<0?t.currency||(t.currency=r.trim()):"relativetime"===n&&r.indexOf(":")<0?t.range||(t.range=r.trim()):r.split(";").forEach(e=>{if(e){const[n,...i]=e.split(":"),r=i.join(":").trim().replace(/^'+|'+$/g,""),o=n.trim();t[o]||(t[o]=r),"false"===r&&(t[o]=!1),"true"===r&&(t[o]=!0),isNaN(r)||(t[o]=parseInt(r,10))}})}return{formatName:n,formatOptions:t}})(n);if(this.formats[r]){let n=e;try{const a=i?.formatParams?.[i.interpolationkey]||{},s=a.locale||a.lng||i.locale||i.lng||t;n=this.formats[r](e,s,{...o,...i,...a})}catch(e){this.logger.warn(e)}return n}return this.logger.warn(`there was no format function for ${r}`),e},e)}}class yt extends ct{constructor(e,n,t,i={}){super(),this.backend=e,this.store=n,this.services=t,this.languageUtils=t.languageUtils,this.options=i,this.logger=lt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(t,i.backend,i)}queueLoad(e,n,t,i){const r={},o={},a={},s={};return e.forEach(e=>{let i=!0;n.forEach(n=>{const a=`${e}|${n}`;!t.reload&&this.store.hasResourceBundle(e,n)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===o[a]&&(o[a]=!0):(this.state[a]=1,i=!1,void 0===o[a]&&(o[a]=!0),void 0===r[a]&&(r[a]=!0),void 0===s[n]&&(s[n]=!0)))}),i||(a[e]=!0)}),(Object.keys(r).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(r),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,n,t){const i=e.split("|"),r=i[0],o=i[1];n&&this.emit("failedLoading",r,o,n),!n&&t&&this.store.addResourceBundle(r,o,t,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2,n&&t&&(this.state[e]=0);const a={};this.queue.forEach(t=>{((e,n,t)=>{const{obj:i,k:r}=Zn(e,n,Object);i[r]=i[r]||[],i[r].push(t)})(t.loaded,[r],o),((e,n)=>{void 0!==e.pending[n]&&(delete e.pending[n],e.pendingCount--)})(t,e),n&&t.errors.push(n),0!==t.pendingCount||t.done||(Object.keys(t.loaded).forEach(e=>{a[e]||(a[e]={});const n=t.loaded[e];n.length&&n.forEach(n=>{void 0===a[e][n]&&(a[e][n]=!0)})}),t.done=!0,t.errors.length?t.callback(t.errors):t.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,n,t,i=0,r=this.retryTimeout,o){if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:n,fcName:t,tried:i,wait:r,callback:o});this.readingCalls++;const a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&s&&i<this.maxRetries?setTimeout(()=>{this.read.call(this,e,n,t,i+1,2*r,o)},r):o(a,s)},s=this.backend[t].bind(this.backend);if(2!==s.length)return s(e,n,a);try{const t=s(e,n);t&&"function"==typeof t.then?t.then(e=>a(null,e)).catch(a):a(null,t)}catch(e){a(e)}}prepareLoading(e,n,t={},i){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();Fn(e)&&(e=this.languageUtils.toResolveHierarchy(e)),Fn(n)&&(n=[n]);const r=this.queueLoad(e,n,t,i);if(!r.toLoad.length)return r.pending.length||i(),null;r.toLoad.forEach(e=>{this.loadOne(e)})}load(e,n,t){this.prepareLoading(e,n,{},t)}reload(e,n,t){this.prepareLoading(e,n,{reload:!0},t)}loadOne(e,n=""){const t=e.split("|"),i=t[0],r=t[1];this.read(i,r,"read",void 0,void 0,(t,o)=>{t&&this.logger.warn(`${n}loading namespace ${r} for language ${i} failed`,t),!t&&o&&this.logger.log(`${n}loaded namespace ${r} for language ${i}`,o),this.loaded(e,t,o)})}saveMissing(e,n,t,i,r,o={},a=()=>{}){if(!this.services?.utils?.hasLoadedNamespace||this.services?.utils?.hasLoadedNamespace(n)){if(null!=t&&""!==t){if(this.backend?.create){const s={...o,isUpdate:r},l=this.backend.create.bind(this.backend);if(l.length<6)try{let r;r=5===l.length?l(e,n,t,i,s):l(e,n,t,i),r&&"function"==typeof r.then?r.then(e=>a(null,e)).catch(a):a(null,r)}catch(e){a(e)}else l(e,n,t,i,a,s)}e&&e[0]&&this.store.addResource(e[0],n,t,i)}}else this.logger.warn(`did not save key "${t}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")}}const St=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let n={};if("object"==typeof e[1]&&(n=e[1]),Fn(e[1])&&(n.defaultValue=e[1]),Fn(e[2])&&(n.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const t=e[3]||e[2];Object.keys(t).forEach(e=>{n[e]=t[e]})}return n},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Lt=e=>(Fn(e.ns)&&(e.ns=[e.ns]),Fn(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Fn(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),"boolean"==typeof e.initImmediate&&(e.initAsync=e.initImmediate),e),It=()=>{};class wt extends ct{constructor(e={},n){var t;if(super(),this.options=Lt(e),this.services={},this.logger=lt,this.modules={external:[]},t=this,Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(e=>{"function"==typeof t[e]&&(t[e]=t[e].bind(t))}),n&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(e={},n){this.isInitializing=!0,"function"==typeof e&&(n=e,e={}),null==e.defaultNS&&e.ns&&(Fn(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const t=St();this.options={...t,...this.options,...Lt(e)},this.options.interpolation={...t.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=t.overloadTranslationOptionHandler),!0===this.options.debug&&"undefined"!=typeof console&&console.warn("i18next is maintained with support from locize.com — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com");const i=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?lt.init(i(this.modules.logger),this.options):lt.init(null,this.options),e=this.modules.formatter?this.modules.formatter:At;const n=new vt(this.options);this.store=new dt(this.options.resources,this.options);const r=this.services;r.logger=lt,r.resourceStore=this.store,r.languageUtils=n,r.pluralResolver=new Ct(n,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix});this.options.interpolation.format&&this.options.interpolation.format!==t.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),!e||this.options.interpolation.format&&this.options.interpolation.format!==t.interpolation.format||(r.formatter=i(e),r.formatter.init&&r.formatter.init(r,this.options),this.options.interpolation.format=r.formatter.format.bind(r.formatter)),r.interpolator=new Tt(this.options),r.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},r.backendConnector=new yt(i(this.modules.backend),r.resourceStore,r,this.options),r.backendConnector.on("*",(e,...n)=>{this.emit(e,...n)}),this.modules.languageDetector&&(r.languageDetector=i(this.modules.languageDetector),r.languageDetector.init&&r.languageDetector.init(r,this.options.detection,this.options)),this.modules.i18nFormat&&(r.i18nFormat=i(this.modules.i18nFormat),r.i18nFormat.init&&r.i18nFormat.init(this)),this.translator=new gt(this.services,this.options),this.translator.on("*",(e,...n)=>{this.emit(e,...n)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,n||(n=It),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...n)=>this.store[e](...n)});["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...n)=>(this.store[e](...n),this)});const r=Gn(),o=()=>{const e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),r.resolve(t),n(e,t)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?o():setTimeout(o,0),r}loadResources(e,n=It){let t=n;const i=Fn(e)?e:this.language;if("function"==typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if("cimode"===i?.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],n=n=>{if(!n)return;if("cimode"===n)return;this.services.languageUtils.toResolveHierarchy(n).forEach(n=>{"cimode"!==n&&e.indexOf(n)<0&&e.push(n)})};if(i)n(i);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>n(e))}this.options.preload?.forEach?.(e=>n(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)})}else t(null)}reloadResources(e,n,t){const i=Gn();return"function"==typeof e&&(t=e,e=void 0),"function"==typeof n&&(t=n,n=void 0),e||(e=this.languages),n||(n=this.options.ns),t||(t=It),this.services.backendConnector.reload(e,n,e=>{i.resolve(),t(e)}),i}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&ut.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1)){for(let e=0;e<this.languages.length;e++){const n=this.languages[e];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,n){this.isLanguageChangingTo=e;const t=Gn();this.emit("languageChanging",e);const i=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},r=(r,o)=>{o?this.isLanguageChangingTo===e&&(i(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,t.resolve((...e)=>this.t(...e)),n&&n(r,(...e)=>this.t(...e))},o=n=>{e||n||!this.services.languageDetector||(n=[]);const t=Fn(n)?n:n&&n[0],o=this.store.hasLanguageSomeTranslations(t)?t:this.services.languageUtils.getBestMatchFromCodes(Fn(n)?[n]:n);o&&(this.language||i(o),this.translator.language||this.translator.changeLanguage(o),this.services.languageDetector?.cacheUserLanguage?.(o)),this.loadResources(o,e=>{r(e,o)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),t}getFixedT(e,n,t){const i=(e,n,...r)=>{let o;o="object"!=typeof n?this.options.overloadTranslationOptionHandler([e,n].concat(r)):{...n},o.lng=o.lng||i.lng,o.lngs=o.lngs||i.lngs,o.ns=o.ns||i.ns,""!==o.keyPrefix&&(o.keyPrefix=o.keyPrefix||t||i.keyPrefix);const a=this.options.keySeparator||".";let s;return o.keyPrefix&&Array.isArray(e)?s=e.map(e=>("function"==typeof e&&(e=ht(e,{...this.options,...n})),`${o.keyPrefix}${a}${e}`)):("function"==typeof e&&(e=ht(e,{...this.options,...n})),s=o.keyPrefix?`${o.keyPrefix}${a}${e}`:e),this.t(s,o)};return Fn(e)?i.lng=e:i.lngs=e,i.ns=n,i.keyPrefix=t,i}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const t=n.lng||this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,r=this.languages[this.languages.length-1];if("cimode"===t.toLowerCase())return!0;const o=(e,n)=>{const t=this.services.backendConnector.state[`${e}|${n}`];return-1===t||0===t||2===t};if(n.precheck){const e=n.precheck(this,o);if(void 0!==e)return e}return!!this.hasResourceBundle(t,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!o(t,e)||i&&!o(r,e)))}loadNamespaces(e,n){const t=Gn();return this.options.ns?(Fn(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{t.resolve(),n&&n(e)}),t):(n&&n(),Promise.resolve())}loadLanguages(e,n){const t=Gn();Fn(e)&&(e=[e]);const i=this.options.preload||[],r=e.filter(e=>i.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return r.length?(this.options.preload=i.concat(r),this.loadResources(e=>{t.resolve(),n&&n(e)}),t):(n&&n(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{const n=new Intl.Locale(e);if(n&&n.getTextInfo){const e=n.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}const n=this.services?.languageUtils||new vt(St());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},n){const t=new wt(e,n);return t.createInstance=wt.createInstance,t}cloneInstance(e={},n=It){const t=e.forkResourceStore;t&&delete e.forkResourceStore;const i={...this.options,...e,isClone:!0},r=new wt(i);void 0===e.debug&&void 0===e.prefix||(r.logger=r.logger.clone(e));if(["store","services","language"].forEach(e=>{r[e]=this[e]}),r.services={...this.services},r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},t){const e=Object.keys(this.store.data).reduce((e,n)=>(e[n]={...this.store.data[n]},e[n]=Object.keys(e[n]).reduce((t,i)=>(t[i]={...e[n][i]},t),e[n]),e),{});r.store=new dt(e,i),r.services.resourceStore=r.store}if(e.interpolation){const n={...St().interpolation,...this.options.interpolation,...e.interpolation},t={...i,interpolation:n};r.services.interpolator=new Tt(t)}return r.translator=new gt(r.services,i),r.translator.on("*",(e,...n)=>{r.emit(e,...n)}),r.init(i,n),r.translator.options=i,r.translator.backendConnector.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Mt=wt.createInstance(),Rt={},Dt=(e,n,t,i)=>{jt(t)&&Rt[t]||(jt(t)&&(Rt[t]=new Date),((e,n,t,i)=>{const r=[t,{code:n,...i||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(r,"warn","react-i18next::",!0);jt(r[0])&&(r[0]=`react-i18next:: ${r[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...r):console?.warn&&console.warn(...r)})(e,n,t,i))},Ht=(e,n)=>()=>{if(e.isInitialized)n();else{const t=()=>{setTimeout(()=>{e.off("initialized",t)},0),n()};e.on("initialized",t)}},kt=(e,n,t)=>{e.loadNamespaces(n,Ht(e,t))},Pt=(e,n,t,i)=>{if(jt(t)&&(t=[t]),e.options.preload&&e.options.preload.indexOf(n)>-1)return kt(e,t,i);t.forEach(n=>{e.options.ns.indexOf(n)<0&&e.options.ns.push(n)}),e.loadLanguages(n,Ht(e,i))},jt=e=>"string"==typeof e,Vt=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,zt={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},Ut=e=>zt[e];let Bt={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(Vt,Ut),transDefaultProps:void 0};let Ft;const Gt={type:"3rdParty",init(e){((e={})=>{Bt={...Bt,...e}})(e.options.react),(e=>{Ft=e})(e)}},Yt=n.createContext();class $t{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var Wt,Kt={exports:{}},Zt={};var Xt,qt={};"production"===process.env.NODE_ENV?Kt.exports=function(){if(Wt)return Zt;Wt=1;var e=u.default,n="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n},t=e.useState,i=e.useEffect,r=e.useLayoutEffect,o=e.useDebugValue;function a(e){var t=e.getSnapshot;e=e.value;try{var i=t();return!n(e,i)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,n){return n()}:function(e,n){var s=n(),l=t({inst:{value:s,getSnapshot:n}}),c=l[0].inst,d=l[1];return r(function(){c.value=s,c.getSnapshot=n,a(c)&&d({inst:c})},[e,s,n]),i(function(){return a(c)&&d({inst:c}),e(function(){a(c)&&d({inst:c})})},[e]),o(s),s};return Zt.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:s,Zt}():Kt.exports=(Xt||(Xt=1,"production"!==process.env.NODE_ENV&&function(){function e(e){var n=e.getSnapshot;e=e.value;try{var i=n();return!t(e,i)}catch(e){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=u.default,t="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n},i=n.useState,r=n.useEffect,o=n.useLayoutEffect,a=n.useDebugValue,s=!1,l=!1,c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,n){return n()}:function(c,d){s||void 0===n.startTransition||(s=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var u=d();if(!l){var p=d();t(u,p)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),l=!0)}var h=(p=i({inst:{value:u,getSnapshot:d}}))[0].inst,f=p[1];return o(function(){h.value=u,h.getSnapshot=d,e(h)&&f({inst:h})},[c,u,d]),r(function(){return e(h)&&f({inst:h}),c(function(){e(h)&&f({inst:h})})},[c]),a(u),u};qt.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),qt);var Jt=Kt.exports;const Qt={t:(e,n)=>{return jt(n)?n:"object"==typeof(t=n)&&null!==t&&jt(n.defaultValue)?n.defaultValue:Array.isArray(e)?e[e.length-1]:e;var t},ready:!1},ei=()=>()=>{},ni=(e,t={})=>{const{i18n:i}=t,{i18n:r,defaultNS:o}=n.useContext(Yt)||{},a=i||r||Ft;a&&!a.reportNamespaces&&(a.reportNamespaces=new $t),a||Dt(a,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const s=n.useMemo(()=>({...Bt,...a?.options?.react,...t}),[a,t]),{useSuspense:l,keyPrefix:c}=s,d=e||o||a?.options?.defaultNS,u=jt(d)?[d]:d||["translation"],p=n.useMemo(()=>u,u);a?.reportNamespaces?.addUsedNamespaces?.(p);const h=n.useRef(0),f=n.useCallback(e=>{if(!a)return ei;const{bindI18n:n,bindI18nStore:t}=s,i=()=>{h.current+=1,e()};return n&&a.on(n,i),t&&a.store.on(t,i),()=>{n&&n.split(" ").forEach(e=>a.off(e,i)),t&&t.split(" ").forEach(e=>a.store.off(e,i))}},[a,s]),m=n.useRef(),g=n.useCallback(()=>{if(!a)return Qt;const e=!(!a.isInitialized&&!a.initializedStoreOnce)&&p.every(e=>((e,n,t={})=>n.languages&&n.languages.length?n.hasLoadedNamespace(e,{lng:t.lng,precheck:(n,i)=>{if(t.bindI18n&&t.bindI18n.indexOf("languageChanging")>-1&&n.services.backendConnector.backend&&n.isLanguageChangingTo&&!i(n.isLanguageChangingTo,e))return!1}}):(Dt(n,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:n.languages}),!0))(e,a,s)),n=t.lng||a.language,i=h.current,r=m.current;if(r&&r.ready===e&&r.lng===n&&r.keyPrefix===c&&r.revision===i)return r;const o={t:a.getFixedT(n,"fallback"===s.nsMode?p:p[0],c),ready:e,lng:n,keyPrefix:c,revision:i};return m.current=o,o},[a,p,c,s,t.lng]),[v,_]=n.useState(0),{t:x,ready:C}=Jt.useSyncExternalStore(f,g,g);n.useEffect(()=>{if(a&&!C&&!l){const e=()=>_(e=>e+1);t.lng?Pt(a,t.lng,p,e):kt(a,p,e)}},[a,t.lng,p,C,l,v]);const E=a||{},O=n.useRef(null),T=n.useRef(),b=e=>{const n=Object.getOwnPropertyDescriptors(e);n.__original&&delete n.__original;const t=Object.create(Object.getPrototypeOf(e),n);if(!Object.prototype.hasOwnProperty.call(t,"__original"))try{Object.defineProperty(t,"__original",{value:e,writable:!1,enumerable:!1,configurable:!1})}catch(e){}return t},N=n.useMemo(()=>{const e=E,n=e?.language;let t=e;e&&(O.current&&O.current.__original===e?T.current!==n?(t=b(e),O.current=t,T.current=n):t=O.current:(t=b(e),O.current=t,T.current=n));const i=[x,t,C];return i.t=x,i.i18n=t,i.ready=C,i},[x,E,C,E.resolvedLanguage,E.language,E.languages]);if(a&&l&&!C)throw new Promise(e=>{const n=()=>e();t.lng?Pt(a,t.lng,p,n):kt(a,p,n)});return N};function ti({i18n:e,defaultNS:t,children:i}){const r=n.useMemo(()=>({i18n:e,defaultNS:t}),[e,t]);return n.createElement(Yt.Provider,{value:r},i)}var ii={MODAL_TITLE:"标题",MODAL_OKTEXT:"确认",MODAL_CANCELTEXT:"取消",EMPTY_DESCRIPTION:"空状态组件,用于在数据为空时展示友好的提示信息。",SELECT_PLACEHOLDER:"请选择",INTRO:"简介",INSTALL:"安装",I18N:"国际化",BUTTON:"按钮",COLORPICKER:"颜色选择器",COPYTOCLIPBOARD:"剪贴板复制",DIVIDER:"分割线",EMPTY:"空状态",FLEX:"弹性布局",ICON:"icon",INPUT:"输入框",MARQUEE:"跑马灯",MESSAGE:"消息提示",NOTICE:"公告栏",NOTIFICATION:"通知",RADIO:"单选框",TABLE:"表格",TOP:"回到顶部",TYPOGRAPHY:"排版",VARIABLES:"自定义变量",API_REF:"API 参考",IDP_DESIGN:"IDP Design",IDP_STUDIO:"IDP Studio",INTRO_DESCRIPTION:"IDP Design 组件库介绍",INSTALL_DESCRIPTION:"如何安装和引用",I18N_DESCRIPTION:"组件库国际化支持",BUTTON_DESCRIPTION:"可定制的按钮组件,支持多种样式和尺寸。",COLORPICKER_DESCRIPTION:"用于选择颜色的组件,支持预设颜色、透明度调整和渐变色等功能。",COPYTOCLIPBOARD_DESCRIPTION:"用于将文本复制到剪贴板的组件,支持自定义样式和状态回调。",DIVIDER_DESCRIPTION:"用于页面内容分割的组件,支持横向和纵向两种方向,以及实线和虚线两种类型。",FLEX_DESCRIPTION:"通用的 flex 布局组件,提供灵活的布局方式。",ICON_DESCRIPTION:"图标组件",INPUT_DESCRIPTION:"输入框组件",MARQUEE_DESCRIPTION:"这是一个可定制的滚动公告栏组件,支持多种样式和配置选项。",MESSAGE_DESCRIPTION:"消息提示组件",NOTICE_DESCRIPTION:"公告栏组件",NOTIFICATION_DESCRIPTION:"通知组件",RADIO_DESCRIPTION:"单选框组件",SELECT_DESCRIPTION:"选择器组件",TABLE_DESCRIPTION:"表格组件",TOP_DESCRIPTION:"回到顶部组件",TYPOGRAPHY_DESCRIPTION:"排版组件,支持自定义宽度和行数限制,超过行数限制时显示省略号。",VARIABLES_DESCRIPTION:"自定义组件库主题颜色",API_REF_DESCRIPTION:"查看组件 API 文档",LANGUAGE_SWITCH:"语言切换",ENGLISH:"English",CHINESE:"中文",VERSION:"版本",BUTTON_COMPONENT:"Button 组件",BASIC_USAGE:"基本使用",SHOW_VARIANTS_SIZES:"展示不同变体和尺寸的按钮。",VARIANT_BUTTONS:"变体按钮",SIZE_BUTTONS:"尺寸按钮",DISABLED_STATE:"禁用状态",ICON_BUTTONS:"带图标按钮",CUSTOM_STYLE:"自定义样式",API_PARAMETERS:"API 参数",PARAM_NAME:"参数名",TYPE:"类型",DEFAULT_VALUE:"默认值",DESCRIPTION:"描述",CHILDREN:"children",CHILDREN_DESC:"按钮文本内容",VARIANT:"variant",VARIANT_DESC:"按钮变体样式",SIZE:"size",SIZE_DESC:"按钮尺寸",DISABLED:"disabled",DISABLED_DESC:"是否禁用按钮",ON_CLICK:"onClick",ON_CLICK_DESC:"点击事件回调",CLASS_NAME:"className",CLASS_NAME_DESC:"自定义 CSS 类名",STYLE:"style",STYLE_DESC:"自定义内联样式",ICON_DESC:"按钮前缀图标,支持字符串(内置图标名)或自定义图标节点",CODE_EXAMPLES:"代码示例",USAGE_IN_OTHER_PROJECTS:"在其他项目中引用",BASIC_USAGE_CODE:"基本用法",DIFFERENT_SIZES:"不同尺寸",DISABLED_BUTTON:"禁用状态",BUTTON_WITH_ICON:"带图标按钮",BUTTON_SEARCH:"搜索",BUTTON_USER:"用户",BUTTON_DELETE:"删除",BUTTON_CONFIRM:"确认",BUTTON_WARNING:"警告",CUSTOM_STYLE_CLICK:"自定义样式和点击事件",INSTALLATION:"安装",INSTALLATION_DESCRIPTION:"IDP Design 组件库支持多种安装方式,您可以根据实际需求选择适合的安装方法。",LOCAL_FILE_INSTALLATION:"从本地文件安装",LOCAL_FILE_INSTALLATION_DESC:"如果您已经获取了 IDP Design 组件库的本地文件,可以通过以下方式安装:",NPM_LOCAL_INSTALL:"使用 npm 从本地目录安装",NPM_LOCAL_INSTALL_DESC:"将本地组件库目录作为依赖安装到您的项目中:",YARN_LOCAL_INSTALL:"使用 yarn 从本地目录安装",PATH_TO_IDP_DESIGN:"/path/to/idp-design",PATH_TO_IDP_DESIGN_DESC:"是您本地 IDP Design 组件库的绝对路径。",GIT_REPO_INSTALLATION:"从 Git 仓库安装",GIT_REPO_INSTALLATION_DESC:"您可以直接从 Git 仓库安装 IDP Design 组件库,支持指定分支或标签:",LATEST_MAIN_BRANCH:"安装主分支最新版本",SPECIFIC_BRANCH:"安装指定分支",BRANCH_NAME:"branch-name",BRANCH_NAME_DESC:"替换为您想要安装的分支名称,例如",EXAMPLE_BRANCHES:"dev 或 feature/new-component。",SPECIFIC_TAG:"安装指定标签版本",V1_0_0:"v1.0.0",V1_0_0_DESC:"替换为您想要安装的具体版本标签。",UPDATING_DEPENDENCIES:"更新依赖",UPDATING_DEPENDENCIES_DESC:"当 IDP Design 组件库有新版本发布时,您可以通过以下方式更新依赖:",UPDATING_INSTALLED_DEPENDENCIES:"更新本地安装的依赖",REINSTALLING_LOCAL_FILES:"重新安装本地文件依赖",USING_FORCE_PARAM:"使用 --force 参数强制重新安装,确保获取最新的本地文件。",UPDATING_GIT_DEPENDENCIES:"更新 Git 仓库依赖",UNINSTALL_REINSTALL:"或者先卸载再重新安装:",SEARCH:"搜索",USER:"用户",DELETE:"删除",CONFIRM:"确认",WARNING:"警告",REFERENCE_COMPONENT:"引用组件",COLORPICKER_COMPONENT:"ColorPicker 组件",DIVIDER_ORIENTATION:"分割线方向",DIVIDER_TYPE:"分割线类型",DIVIDER_COLOR:"分割线颜色",DIVIDER_COMPONENT:"Divider 组件",DIVIDER_SHOW_ORIENTATIONS_TYPES:"展示不同方向和类型的分割线。",HORIZONTAL_DIVIDER:"横向分割线",ABOVE_DEFAULT_HORIZONTAL:"上方是默认的横向分割线",BELOW_DEFAULT_HORIZONTAL:"下方是默认的横向分割线",VERTICAL_DIVIDER:"纵向分割线",LEFT_CONTENT:"左侧内容",RIGHT_CONTENT:"右侧内容",SOLID_DASHED:"实线与虚线",ABOVE_SOLID_DEFAULT:"上方是实线分割线(默认)",CONTENT_BETWEEN_DIVIDERS:"实线分割线和虚线分割线之间的内容",BELOW_DASHED:"下方是虚线分割线",CUSTOM_COLOR:"颜色自定义",DIVIDERS_DIFFERENT_COLORS:"不同颜色的分割线",COMBINED_USAGE:"组合用法",HORIZONTAL_DASHED_CUSTOM_COLOR:"横向虚线,自定义颜色",DIVIDERS_CUSTOM_STYLE:"带有自定义样式的分割线",DIVIDER_WITH_TEXT:"带文本的分割线效果",TEXT_CONTENT:"文本内容",COPY_URL_OR_TEXT_CONTENT:"需要复制的URL或文本内容",COPY_STATUS_CHANGE_CALLBACK:"复制状态变化回调",CUSTOM_CHILD_ELEMENT:"自定义子元素",COPY_OPERATION_PROMISE:"复制操作的Promise",COPY_SUCCESS:"复制成功!",COPY_FAILED:"复制失败!",COPYTOCLIPBOARD_COMPONENT:"CopyToClipboard 组件",DISPLAY_DIFFERENT_STYLES_COPY_BUTTONS:"展示不同样式的复制按钮。",TEXT_LINK_STYLE:"文本链接样式",COPY_LINK:"复制链接",BUTTON_STYLE:"按钮样式",CLICK_TO_COPY_CUSTOM_LINK:"点击复制自定义链接",STYLED_LINK:"带样式的链接",COPY_STYLED_LINK:"复制带样式的链接",USING_USECOPY_HOOK:"使用 useCopy 钩子",USE_USECOPY_TO_COPY_LINK:"使用 useCopy 复制链接",COMPONENT:"组件",HOOK:"钩子",SUCCESS:"成功",EMPTY_COMPONENT:"Empty 空状态",DEFAULT_EMPTY_STATE:"默认空状态",CUSTOM_DESCRIPTION:"自定义描述",CUSTOM_ICON:"自定义图标",CUSTOM_IMAGE:"自定义图片",WITH_ACTION_BUTTON:"带操作按钮",LARGE_SIZE:"大尺寸",MIDDLE_SIZE:"中尺寸",SMALL_SIZE:"小尺寸",NO_EXCEL_FILE:"暂无Excel文件",UPLOAD_FILE:"上传文件",VIEW_TEMPLATE:"查看模板",LOAD_DATA:"点击加载",TRANSPARENCY_ADJUSTMENT:"透明度调整",ENABLE_ALPHA_PROPERTY:"通过 alpha 属性启用透明度调整,支持 RGBA 颜色格式。",WITH_TRANSPARENCY:"带透明度",PRESET_COLORS:"预设颜色",SET_PRESET_COLORS:"通过 presetColors 属性设置常用的预设颜色,方便快速选择。",DISABLE_COLOR_PICKER:"通过 disabled 属性禁用颜色选择器,禁用后无法打开选择面板。",COLOR_SQUARE:"颜色方块",COLOR_TEXT:"颜色文字",COLOR_BUTTON:"颜色按钮",SELECT_COLOR:"选择颜色",CUSTOM_STYLE_PROPERTY:"通过 style 属性自定义颜色选择器的样式。",CUSTOM_BORDER_RADIUS:"自定义圆角",GRADIENT_SUPPORT:"渐变色支持",ENABLE_GRADIENT:"通过 gradient 属性启用渐变色支持,支持线性渐变颜色选择。",BASIC_GRADIENT:"基本渐变色",GRADIENT_COLOR:"渐变颜色",FEATURES:"特性说明",LIGHTWEIGHT:"轻量:仅 2.8KB gzipped(比 react-color 轻 13 倍)",TREE_SHAKING:"支持树摇:仅导入使用的部分",FAST:"快速:使用 hooks 和函数组件",TYPE_SAFE:"类型安全:严格的 TypeScript 支持",MOBILE_FRIENDLY:"移动端友好:支持触摸设备",ACCESSIBLE:"可访问性:遵循 WAI-ARIA 指南",NO_DEPENDENCIES:"无依赖:不依赖其他库",FLEX_COMPONENT:"Flex 组件",INTERACTIVE_EXAMPLE:"交互式示例",ADJUST_PROPERTIES:"通过下方的按钮和输入框,实时调整 flex 布局的各项属性。",ITEM_COUNT:"项目数量",ITEMS:"个项目",DIRECTION:"Direction (优先级高于Layout)",CURRENT_VALUE:"当前值",DEMONSTRATION_EFFECT:"演示效果",CURRENT_CONFIGURATION:"当前配置",MULTI_LEVEL_NESTING:"多层次嵌套示例",NESTING_DESCRIPTION:"展示 Flex 组件的多层次嵌套使用,实现复杂的布局结构。",TITLE_AREA:"标题区域",VERTICAL_LAYOUT:"垂直布局",CENTER_ALIGNMENT:"居中对齐",JUSTIFY_BETWEEN:"两端对齐",WRAP_LAYOUT:"换行布局",COMPLEX_USAGE:"复合使用",ACTION_AREA:"操作区域",FLEX_CHILDREN_DESC:"子组件内容",FLEX_LAYOUT_DESC:"快速设置布局方向,horizontal 为水平布局,column 为列布局",FLEX_DIRECTION_DESC:"flex-direction 属性,优先级高于 layout",FLEX_JUSTIFY_DESC:"justify-content 属性",FLEX_ALIGN_DESC:"align-items 属性",FLEX_WRAP_DESC:"flex-wrap 属性",FLEX_GAP_DESC:"gap 属性,支持数值(px)和字符串",CENTER_CONTENT:"居中内容",MARQUEE_COMPONENT:"Marquee 公告组件",DEFAULT_CONFIGURATION:"1. 默认配置",DEFAULT_CONFIG_DESC:"默认高度: 40px, 默认速度: 50, 默认渐变背景",DEFAULT_ANNOUNCEMENT:"这是一条默认配置的公告信息,从右向左滚动,播放完毕后会自动重复播放!",CUSTOM_HEIGHT:"支持自定义公告栏高度(默认为60px,范围30-100px)",HEIGHT_60PX:"高度: 60px",CUSTOM_HEIGHT_ANNOUNCEMENT:"这是一条自定义高度为60px的公告信息!",CUSTOM_SPEED:"3. 自定义速度",SLOW_SPEED:"慢速: 20",SLOW_SPEED_ANNOUNCEMENT:"这是一条慢速滚动的公告信息,速度为20!",FAST_SPEED:"快速: 100",FAST_SPEED_ANNOUNCEMENT:"这是一条快速滚动的公告信息,速度为100!",CUSTOM_BACKGROUND:"4. 自定义背景色",CUSTOM_GRADIENT_BACKGROUND:"自定义渐变背景",GRADIENT_BACKGROUND_ANNOUNCEMENT_1:"这是一条自定义渐变背景的公告信息",GRADIENT_BACKGROUND_ANNOUNCEMENT_2:"这是第二条自定义渐变背景的公告信息",COMPREHENSIVE_CUSTOM:"5. 综合自定义",COMPREHENSIVE_CUSTOM_DESC:"高度: 50px, 速度: 75, 自定义背景",COMPREHENSIVE_ANNOUNCEMENT:"这是一条综合自定义配置的公告信息,高度50px,速度75,自定义渐变背景!",FIXED_TOP:"6. 固定到顶部",FIXED_TOP_DESC:"fixed=true,公告栏会浮动固定在页面顶部",FIXED_TOP_ANNOUNCEMENT:"这是一条固定顶部的公告信息,滚动页面时保持可见!",CLOSE_CALLBACK:"7. 关闭回调",CLOSE_CALLBACK_DESC:"点击关闭按钮触发 onClose 回调",CLOSE_CALLBACK_ANNOUNCEMENT:"这是一条带关闭回调的公告信息,点击右侧X关闭!",FULL_FUNCTIONALITY:"8. 完整功能示例",FULL_FUNCTIONALITY_DESC:"固定顶部 + 自定义高度 + 自定义速度 + 关闭回调",FULL_FUNCTIONALITY_ANNOUNCEMENT:"这是一条功能完整的公告信息,固定顶部、自定义高度和速度、支持关闭!",ANNOUNCEMENT_TEXT:"公告文本,可以是字符串或字符串数组",ANNOUNCEMENT_HEIGHT:"公告栏高度,单位为像素",SCROLL_SPEED:"滚动速度,数值越大滚动越快",ANNOUNCEMENT_BACKGROUND:"公告栏背景色,可以是纯色或渐变",DISPLAY_ANNOUNCEMENT:"是否显示公告栏",FIXED_POSITION:"是否固定在页面顶部",FIXED_DISTANCE:"固定时距离顶部的距离,单位为像素",DISPLAY_ICON:"是否显示公告图标",CLOSE_BUTTON_CALLBACK:"关闭按钮点击时的回调函数",COLORPICKER_CURRENT_COLOR:"当前颜色",COLORPICKER_CURRENT_GRADIENT:"当前渐变色",COLORPICKER_COLOR_VALUE:"当前颜色值(支持 HEX 格式)",COLORPICKER_CONFIRM_CHANGE:"确认选择颜色后的回调函数",COLORPICKER_REAL_TIME_CHANGE:"实时颜色变化时的回调函数",COLORPICKER_PRESET_COLORS:"预设颜色数组",COLORPICKER_GRADIENT_SUPPORT:"是否支持渐变色,启用后可选择线性渐变颜色",COLORPICKER_CUSTOM_TRIGGER:"自定义触发区域,支持任意 React 节点",EMPTY_CUSTOM_ICON:"自定义图标",EMPTY_CUSTOM_IMAGE_PATH:"自定义图片路径",EMPTY_DATA:"暂无数据",EMPTY_STATUS_DESCRIPTION:"空状态描述信息",EMPTY_CUSTOM_ACTION_AREA:"自定义操作区域",EMPTY_SIZE:"空状态尺寸",EMPTY_CUSTOM_STYLE:"自定义样式",EMPTY_CUSTOM_CLASS_NAME:"自定义CSS类名",NOTICE_COMPONENT_DESC:"这是一个滚动通知栏组件,使用 react-fast-marquee 实现无缝滚动效果。",NOTICE_HIDDEN:"通知已隐藏",HIDE_NOTICE:"隐藏通知",SHOW_NOTICE:"显示通知",CUSTOM_CONFIGURATION:"自定义配置",NOTICE_TEXT:"通知文本",ENTER_NOTICE_TEXT:"输入通知文本",NOTICE_BAR_HEIGHT:"公告栏高度",SHOW_CLOSE_BUTTON:"显示关闭按钮",FLOAT_TO_TOP:"悬浮到顶部",SEAMLESS_SCROLL:"使用 Marquee 组件实现无缝滚动效果",CONFIGURABLE_SPEED:"滚动速度可配置(默认为50,范围10-100)",CUSTOM_NOTICE_TEXT:"支持自定义通知文本内容",OPTIONAL_CLOSE_BUTTON:"可选择显示关闭按钮,宽度30px,点击可隐藏公告栏",FLOATING_TOP_FUNCTION:"支持悬浮到顶部功能,固定显示在页面顶部",TYPESCRIPT_SUPPORT:"组件支持TypeScript类型定义",USAGE_SCENARIOS:"使用场景",WEBSITE_ANNOUNCEMENT:"网站公告",SYSTEM_NOTIFICATION:"系统通知",PROMOTION_INFO:"促销活动信息",IMPORTANT_REMINDER:"重要消息提醒",SPEED_DESC:"滚动速度,数值越大滚动越快",HEIGHT_DESC:"公告栏高度,单位为像素",STYLES_DESC:"自定义通知栏样式",ICON_NOTICE_DESC:"通知文本前的图标",SHOW_CLOSE_BUTTON_DESC:"是否显示关闭按钮",CLOSE_STYLE_DESC:"自定义关闭按钮样式",FLOATING_TOP_DESC:"是否固定悬浮在页面顶部",PAUSE_ON_HOVER_DESC:"鼠标悬停时是否暂停滚动",MESSAGE_COMPONENT_DESC:"轻量级消息提示框,用于显示成功、警告和错误信息。",CLICK_BUTTONS_TO_SHOW_MESSAGES:"点击按钮显示不同类型的消息提示。",SHOW_SUCCESS_MESSAGE:"显示成功消息",SHOW_WARNING_MESSAGE:"显示警告消息",SHOW_ERROR_MESSAGE:"显示错误消息",OPERATION_SUCCESS:"操作成功!",WARNING_CHECK_INPUT:"警告:请检查输入!",OPERATION_FAILED_RETRY:"操作失败,请重试!",MESSAGE_TYPE:"消息类型",MESSAGE_CONTENT:"消息内容",MESSAGE_DURATION:"消息自动关闭时长(毫秒)",MESSAGE_CLOSE_CALLBACK:"消息关闭回调",MODAL_COMPONENT_DESC:"模态对话框组件,用于显示重要信息或需要用户确认的操作。",CLICK_BUTTON_OPEN_BASIC_MODAL:"点击按钮打开基本弹窗。",OPEN_BASIC_MODAL:"打开基本弹窗",BASIC_MODAL:"基本弹窗",MODAL_CONTENT_AREA:"这是弹窗的内容区域,可以放置任意内容。",MODAL_CENTERED:"弹窗会上下左右居中显示。",CUSTOM_SIZE:"自定义尺寸",CAN_CUSTOMIZE_MODAL_WIDTH_HEIGHT:"可以自定义弹窗的宽度和高度。",SMALL_SIZE_MODAL:"小尺寸弹窗",LARGE_SIZE_MODAL:"大尺寸弹窗",SMALL_SIZE_MODAL_CONTENT:"这是小尺寸弹窗,宽度为 400px。",LARGE_SIZE_MODAL_CONTENT:"这是大尺寸弹窗,宽度为 800px,高度为 500px。",CAN_PLACE_MORE_CONTENT:"可以放置更多内容。",ASYNC_CONFIRMATION:"异步确认",CLICK_CONFIRM_TO_PERFORM_ASYNC_OPERATION:"点击确认按钮后可以进行异步操作,完成后关闭弹窗。",ASYNC_CONFIRMATION_MODAL:"异步确认弹窗",AFTER_CLICK_CONFIRM_BUTTON:"点击确认按钮后,会模拟 1 秒的异步操作。",MODAL_WILL_AUTOMATICALLY_CLOSE_AFTER_OPERATION_COMPLETE:"操作完成后弹窗会自动关闭。",CONTENT_HEIGHT_AUTO_ADJUSTMENT:"内容高度自适应",WHEN_HEIGHT_NOT_SET_CONTENT_AREA_ADAPTS:"当未设置height时,内容区域高度自适应;当设置height时,内容区域高度自动计算。",AUTO_ADJUST_HEIGHT:"自适应高度",CONTENT_SCROLL_EXAMPLE:"内容滚动示例",AUTO_ADJUST_HEIGHT_MODAL:"自适应高度弹窗",THIS_IS_A_MODAL_WITHOUT_HEIGHT_SET:"这是一个未设置height的弹窗,内容区域高度会根据内容自动调整。",YOU_CAN_ADD_MORE_CONTENT_TO_TEST_ADAPTIVE_EFFECT:"你可以添加更多内容来测试自适应效果。",CONTENT_SCROLL_MODAL:"内容滚动弹窗",LONG_CONTENT_TEST:"长内容测试",THIS_IS_A_MODAL_WITH_FIXED_HEIGHT:"这是一个设置了固定高度的弹窗,内容区域高度会自动计算。",WHEN_CONTENT_EXCEEDS_CALCULATED_HEIGHT:"当内容超过计算高度时,会自动显示滚动条。",ANIMATION_DIRECTION_DEMONSTRATION:"动画方向演示",SUPPORT_FOUR_ANIMATION_DIRECTIONS:"支持四种动画方向,打开和关闭将使用相同的方向设置。",CENTER_ANIMATION:"中心动画",TOP_RIGHT_ANIMATION:"右上角动画",BOTTOM_RIGHT_ANIMATION:"右下角动画",NORMAL_ANIMATION:"正常动画",OPEN_FROM_CENTER_POINT_ENLARGE:"打开:从中心点放大",CLOSE_FROM_CENTER_POINT_SHRINK:"关闭:从中心点缩小消失",OPEN_FROM_TOP_RIGHT_MOVE_AND_ENLARGE:"打开:从右上角移动并放大",CLOSE_TO_TOP_RIGHT_MOVE_AND_SHRINK:"关闭:向右上角移动并缩小消失",OPEN_FROM_BOTTOM_RIGHT_MOVE_AND_ENLARGE:"打开:从右下角移动并放大",CLOSE_TO_BOTTOM_RIGHT_MOVE_AND_SHRINK:"关闭:向右下角移动并缩小消失",OPEN_SLIGHTLY_ENLARGE_AND_FADE_IN:"打开:轻微放大并淡入",CLOSE_SLIGHTLY_SHRINK_AND_FADE_OUT:"关闭:轻微缩小并淡出",CUSTOM_TOP_POSITION:"自定义顶部位置",THROUGH_TOP_PARAM_CUSTOMIZE_MODAL_DISTANCE_FROM_TOP:"通过 top 参数可以自定义弹窗距离顶部的位置,当同时设置 direction 时,direction 会强制使用默认值 normal。",USE_TOP_AND_DIRECTION_SIMULTANEOUSLY:"top 与 direction 同时使用",THIS_MODAL_IS_100PX_FROM_TOP:"此弹窗距离顶部 100px",USE_TOP_PARAM_TO_CUSTOMIZE_MODAL_VERTICAL_POSITION:"使用 top 参数可以自定义弹窗的垂直位置",THIS_MODAL_IS_200PX_FROM_TOP:"此弹窗距离顶部 200px",ALTHOUGH_DIRECTION_TOP_RIGHT_SET_BUT_DUE_TO_TOP_PARAM:'虽然设置了 direction="top-right",但由于同时设置了 top 参数,direction 被强制为 normal',CUSTOM_FOOTER:"自定义 Footer",CAN_CUSTOMIZE_BOTTOM_BUTTONS_THROUGH_FOOTER_PARAM:"可以通过 footer 参数自定义底部按钮,footer 为 null 时显示默认按钮,提供值时显示自定义按钮。",CUSTOM_FOOTER_MODAL:"自定义 Footer 弹窗",CANCEL:"取消",SAVE:"保存",THIS_IS_A_MODAL_WITH_CUSTOM_FOOTER:"这是一个自定义 Footer 的弹窗,底部显示了三个按钮:取消、保存和删除。",YOU_CAN_CUSTOMIZE_FOOTER_CONTENT_AND_STYLE:"您可以根据需要自定义 footer 的内容和样式。",CUSTOM_MOUNT_CONTAINER:"自定义挂载容器",CAN_SPECIFY_MODAL_MOUNT_HTML_NODE_THROUGH_GET_CONTAINER_PARAM:"可以通过 getContainer 参数指定 Modal 挂载的 HTML 节点,false 为挂载在当前 DOM。",MOUNT_IN_CURRENT_DOM:"挂载在当前 DOM",MOUNT_IN_CUSTOM_CONTAINER:"挂载在自定义容器",THIS_IS_A_CUSTOM_MOUNT_CONTAINER:"这是一个自定义的挂载容器",CLICK_MOUNT_IN_CUSTOM_CONTAINER_BUTTON:'点击"挂载在自定义容器"按钮,Modal 将挂载在此处',THIS_MODAL_IS_MOUNTED_IN_CURRENT_DOM:"这个 Modal 被挂载在当前 DOM 中,而不是 document.body。",CAN_ACHIEVE_THIS_EFFECT_THROUGH_GET_CONTAINER_FALSE:"可以通过 getContainer={false} 实现此效果。",THIS_MODAL_IS_MOUNTED_IN_CUSTOM_CONTAINER:"这个 Modal 被挂载在页面中的自定义容器里。",CAN_SPECIFY_MOUNTED_HTML_NODE_THROUGH_GET_CONTAINER_PROPERTY:"可以通过 getContainer 属性指定挂载的 HTML 节点。",CUSTOM_MASK_BACKGROUND_COLOR:"自定义遮罩背景色",CAN_CUSTOMIZE_MASK_BACKGROUND_COLOR_AND_OTHER_STYLES:"可以通过 maskStyle 属性自定义遮罩层的背景色和其他样式。",THIS_MODAL_MASK_USES_CUSTOM_BACKGROUND_COLOR:"这个 Modal 的遮罩层使用了自定义的背景色(半透明的红色)。",CAN_SET_VARIOUS_STYLES_OF_MASK_THROUGH_MASK_STYLE_PROPERTY:"可以通过 maskStyle 属性设置遮罩层的各种样式,如背景色、透明度等。",CUSTOM_ZINDEX:"自定义zIndex",CAN_SET_MASK_LAYER_LEVEL_THROUGH_ZINDEX_PROPERTY:"可以通过zIndex属性设置遮罩层的层级,默认值为1000。在嵌套Modal的情况下,需要设置不同的zIndex值来确保正确的显示层级。",OPEN_FIRST_MODAL:"打开第一个Modal",FIRST_MODAL_ZINDEX_1000:"第一个Modal (zIndex: 1000)",CLOSE:"关闭",OPEN_SECOND_MODAL:"打开第二个Modal",THIS_IS_THE_FIRST_MODAL_USING_DEFAULT_ZINDEX_1000:"这是第一个Modal,使用默认的zIndex值(1000)。",CLICK_OPEN_SECOND_MODAL_BUTTON_TO_POP_UP_SECOND_MODAL:'点击"打开第二个Modal"按钮,会弹出第二个Modal。',SECOND_MODAL_ZINDEX_1010:"第二个Modal (zIndex: 1010)",THIS_IS_THE_SECOND_MODAL_USING_HIGHER_ZINDEX_1010:"这是第二个Modal,使用了更高的zIndex值(1010)。",DUE_TO_HIGHER_ZINDEX_IT_WILL_DISPLAY_ABOVE_FIRST_MODAL:"由于设置了更高的zIndex,它会显示在第一个Modal的上方。",MODAL_VISIBLE_DESC:"控制弹窗显示/隐藏(必填)",MODAL_TITLE_DESC:"弹窗标题",MODAL_WIDTH_DESC:"弹窗宽度",MODAL_HEIGHT_DESC:"弹窗高度(可选,不设置则自适应)",MODAL_HEADER_HEIGHT_DESC:"顶部区域高度",MODAL_FOOTER_HEIGHT_DESC:"底部区域高度",MODAL_CONFIRM_LOADING_DESC:"确认按钮是否显示加载状态",MODAL_DIRECTION_DESC:"打开和关闭的动画方向",MODAL_TOP_DESC:"弹窗距离顶部的距离,设置后direction会强制使用normal",MODAL_FOOTER_DESC:"底部内容,为 null 时显示默认按钮,提供值时显示自定义内容",MODAL_ON_CANCEL_DESC:"取消按钮点击回调",MODAL_ON_OK_DESC:"确认按钮点击回调",MODAL_CHILDREN_DESC:"弹窗内容",MODAL_GET_CONTAINER_DESC:"指定 Modal 挂载的 HTML 节点,false 为挂载在当前 DOM",MODAL_OK_TEXT_DESC:"确认按钮文本",MODAL_CANCEL_TEXT_DESC:"取消按钮文本",MODAL_MASK_STYLE_DESC:"自定义遮罩层样式",MODAL_MASK_CLASS_NAME_DESC:"自定义遮罩层类名",MODAL_Z_INDEX_DESC:"遮罩层的z-index值",TYPOGRAPHY_COMPONENT:"Typography 组件",SHOW_BASIC_USAGE_TYPOGRAPHY:"展示Typography组件的基本使用方式。",DEFAULT_DISPLAY_NO_ROW_LIMIT:"默认显示(不限制行数)",LIMIT_1_ROW:"限制1行",LIMIT_2_ROWS:"限制2行",LIMIT_3_ROWS:"限制3行",DIFFERENT_WIDTHS:"不同宽度",WIDTH_200PX_LIMIT_1_ROW:"宽度200px,限制1行",WIDTH_300PX_LIMIT_2_ROWS:"宽度300px,限制2行",WIDTH_500PX_LIMIT_3_ROWS:"宽度500px,限制3行",MIXED_TEXT_WRAPPING:"中英文混合文本(测试换行问题)",MIXED_TEXT_CONTENT:"这是一段包含English英文的测试文本,用于测试中英文混合时的换行问题。当文本内容超过容器宽度时,英文应该紧跟在中文后面,而不是单独换行显示。",MIXED_TEXT_LIMIT_2_ROWS:"中英文混合文本(限制2行)",TYPOGRAPHY_LONG_TEXT:"这是一段很长的测试文本,用于测试Typography组件的行数限制功能。当文本内容超过指定的行数限制时,应该在末尾显示省略号。这个组件支持自定义宽度和行数限制,可以满足不同的布局需求。",TYPOGRAPHY_CHILDREN_DESC:"文本内容",TYPOGRAPHY_WIDTH_DESC:"宽度限制",TYPOGRAPHY_ROWS_DESC:"行数限制",TYPOGRAPHY_STYLE_DESC:"自定义样式",TYPOGRAPHY_CLASSNAME_DESC:"自定义类名",TYPOGRAPHY_MIXED_TEXT:"这是一段包含English英文的测试文本,用于测试中英文混合时的换行问题。当文本内容超过容器宽度时,英文应该紧跟在中文后面,而不是单独换行显示。",TYPOGRAPHY_MIXED_TEXT_2:"这是一段包含English英文的测试文本,用于测试中英文混合时的换行问题。当文本内容超过容器宽度时,英文应该紧跟在中文后面,而不是单独换行显示。",TYPOGRAPHY_DEFAULT_DISPLAY:"默认显示(不限制行数)",TYPOGRAPHY_LIMIT_1_ROW:"限制1行",TYPOGRAPHY_LIMIT_2_ROWS:"限制2行",TYPOGRAPHY_LIMIT_3_ROWS:"限制3行",TYPOGRAPHY_DIFFERENT_WIDTHS:"不同宽度",TYPOGRAPHY_MIXED_TEXT_TEST:"中英文混合文本(测试换行问题)",TYPOGRAPHY_MIXED_TEXT_TEST_2:"中英文混合文本(限制2行)",TYPOGRAPHY_BASIC_USAGE:"基本使用",TYPOGRAPHY_API_PARAMETERS:"API 参数",TYPOGRAPHY_CODE_EXAMPLE:"代码示例",TYPOGRAPHY_COMPONENT_DESCRIPTION:"排版组件,支持自定义宽度和行数限制,超过行数限制时显示省略号。",TYPOGRAPHY_BASIC_USAGE_DESCRIPTION:"展示Typography组件的基本使用方式。",TYPOGRAPHY_WIDTH_200PX:"宽度200px,限制1行",TYPOGRAPHY_WIDTH_300PX:"宽度300px,限制2行",TYPOGRAPHY_WIDTH_500PX:"宽度500px,限制3行"},ri={MODAL_TITLE:"Title",MODAL_OKTEXT:"OK",MODAL_CANCELTEXT:"Cancel",EMPTY_DESCRIPTION:"Empty state component used to display friendly prompt messages when there is no data.",SELECT_PLACEHOLDER:"Please select",INTRO:"Introduction",INSTALL:"Installation",I18N:"Internationalization",BUTTON:"Button",COLORPICKER:"Color Picker",COPYTOCLIPBOARD:"Copy to Clipboard",DIVIDER:"Divider",EMPTY:"Empty State",FLEX:"Flex",ICON:"icon",INPUT:"Input",MARQUEE:"Marquee",MESSAGE:"Message",NOTICE:"Notice",NOTIFICATION:"Notification",RADIO:"Radio",TABLE:"Table",TOP:"Back to Top",TYPOGRAPHY:"Typography",VARIABLES:"Variables",API_REF:"API Reference",IDP_DESIGN:"IDP Design",IDP_STUDIO:"IDP Studio",INTRO_DESCRIPTION:"Introduction to IDP Design Component Library",INSTALL_DESCRIPTION:"How to install and reference",I18N_DESCRIPTION:"Internationalization support for component library",BUTTON_DESCRIPTION:"Customizable button component with multiple styles and sizes.",COLORPICKER_DESCRIPTION:"Color selection component that supports preset colors, opacity adjustment, and gradient colors.",COPYTOCLIPBOARD_DESCRIPTION:"Component for copying text to clipboard, supporting custom styles and status callbacks.",DIVIDER_DESCRIPTION:"Component for dividing page content, supporting both horizontal and vertical orientations, and solid and dashed types.",FLEX_DESCRIPTION:"General flex layout component that provides flexible layout options.",ICON_DESCRIPTION:"Icon component",INPUT_DESCRIPTION:"Input component",MARQUEE_DESCRIPTION:"This is a customizable scrolling announcement component that supports various styles and configuration options.",MESSAGE_DESCRIPTION:"Message component",NOTICE_DESCRIPTION:"Notice component",NOTIFICATION_DESCRIPTION:"Notification component",RADIO_DESCRIPTION:"Radio component",SELECT_DESCRIPTION:"Select component",TABLE_DESCRIPTION:"Table component",TOP_DESCRIPTION:"Back to top component",TYPOGRAPHY_DESCRIPTION:"Typography component, supports custom width and row limits, displays ellipsis when exceeding row limits.",VARIABLES_DESCRIPTION:"Customize component library theme colors",API_REF_DESCRIPTION:"View component API documentation",LANGUAGE_SWITCH:"Language Switch",ENGLISH:"English",CHINESE:"中文",VERSION:"Version",BUTTON_COMPONENT:"Button Component",BASIC_USAGE:"Basic Usage",SHOW_VARIANTS_SIZES:"Display buttons with different variants and sizes.",VARIANT_BUTTONS:"Variant Buttons",SIZE_BUTTONS:"Size Buttons",DISABLED_STATE:"Disabled State",ICON_BUTTONS:"Buttons with Icons",CUSTOM_STYLE:"Custom Style",API_PARAMETERS:"API Parameters",PARAM_NAME:"Parameter Name",TYPE:"Type",DEFAULT_VALUE:"Default Value",DESCRIPTION:"Description",CHILDREN:"children",CHILDREN_DESC:"Button text content",VARIANT:"variant",VARIANT_DESC:"Button variant style",SIZE:"size",SIZE_DESC:"Button size",DISABLED:"disabled",DISABLED_DESC:"Whether the button is disabled",ON_CLICK:"onClick",ON_CLICK_DESC:"Click event callback",CLASS_NAME:"className",CLASS_NAME_DESC:"Custom CSS class name",STYLE:"style",STYLE_DESC:"Custom inline style",ICON_DESC:"Button prefix icon, supports string (built-in icon name) or custom icon node",CODE_EXAMPLES:"Code Examples",USAGE_IN_OTHER_PROJECTS:"Usage in Other Projects",BASIC_USAGE_CODE:"Basic Usage",DIFFERENT_SIZES:"Different Sizes",DISABLED_BUTTON:"Disabled Button",BUTTON_WITH_ICON:"Button with Icon",BUTTON_SEARCH:"Search",BUTTON_USER:"User",BUTTON_DELETE:"Delete",BUTTON_CONFIRM:"Confirm",BUTTON_WARNING:"Warning",CUSTOM_STYLE_CLICK:"Custom Style and Click Event",INSTALLATION:"Installation",INSTALLATION_DESCRIPTION:"IDP Design component library supports multiple installation methods, you can choose the one that suits your needs.",LOCAL_FILE_INSTALLATION:"Installation from Local Files",LOCAL_FILE_INSTALLATION_DESC:"If you have obtained the local files of the IDP Design component library, you can install it in the following ways:",NPM_LOCAL_INSTALL:"Install from local directory using npm",NPM_LOCAL_INSTALL_DESC:"Install the local component library directory as a dependency in your project:",YARN_LOCAL_INSTALL:"Install from local directory using yarn",PATH_TO_IDP_DESIGN:"/path/to/idp-design",PATH_TO_IDP_DESIGN_DESC:"is the absolute path to your local IDP Design component library.",GIT_REPO_INSTALLATION:"Installation from Git Repository",GIT_REPO_INSTALLATION_DESC:"You can directly install the IDP Design component library from the Git repository, supporting specified branches or tags:",LATEST_MAIN_BRANCH:"Install the latest version of the main branch",SPECIFIC_BRANCH:"Install a specified branch",BRANCH_NAME:"branch-name",BRANCH_NAME_DESC:"Replace with the branch name you want to install, for example",EXAMPLE_BRANCHES:"dev or feature/new-component.",SPECIFIC_TAG:"Install a specified tag version",V1_0_0:"v1.0.0",V1_0_0_DESC:"Replace with the specific version tag you want to install.",UPDATING_DEPENDENCIES:"Updating Dependencies",UPDATING_DEPENDENCIES_DESC:"When a new version of the IDP Design component library is released, you can update the dependencies in the following ways:",UPDATING_INSTALLED_DEPENDENCIES:"Update locally installed dependencies",REINSTALLING_LOCAL_FILES:"Reinstall local file dependencies",USING_FORCE_PARAM:"Use the --force parameter to force reinstallation to ensure you get the latest local files.",UPDATING_GIT_DEPENDENCIES:"Update Git repository dependencies",UNINSTALL_REINSTALL:"Or uninstall and then reinstall:",SEARCH:"Search",USER:"User",DELETE:"Delete",CONFIRM:"Confirm",WARNING:"Warning",REFERENCE_COMPONENT:"Reference Component",COLORPICKER_COMPONENT:"ColorPicker Component",DIVIDER_ORIENTATION:"Divider orientation",DIVIDER_TYPE:"Divider type",DIVIDER_COLOR:"Divider color",DIVIDER_COMPONENT:"Divider Component",DIVIDER_SHOW_ORIENTATIONS_TYPES:"Display dividers with different orientations and types.",HORIZONTAL_DIVIDER:"Horizontal Divider",ABOVE_DEFAULT_HORIZONTAL:"Above is the default horizontal divider",BELOW_DEFAULT_HORIZONTAL:"Below is the default horizontal divider",VERTICAL_DIVIDER:"Vertical Divider",LEFT_CONTENT:"Left Content",RIGHT_CONTENT:"Right Content",SOLID_DASHED:"Solid and Dashed",ABOVE_SOLID_DEFAULT:"Above is the solid divider (default)",CONTENT_BETWEEN_DIVIDERS:"Content between solid and dashed dividers",BELOW_DASHED:"Below is the dashed divider",CUSTOM_COLOR:"Custom Color",DIVIDERS_DIFFERENT_COLORS:"Dividers with different colors",COMBINED_USAGE:"Combined Usage",HORIZONTAL_DASHED_CUSTOM_COLOR:"Horizontal dashed line with custom color",DIVIDERS_CUSTOM_STYLE:"Dividers with custom styles",DIVIDER_WITH_TEXT:"Divider with Text",TEXT_CONTENT:"Text content",COPY_URL_OR_TEXT_CONTENT:"URL or text content to copy",COPY_STATUS_CHANGE_CALLBACK:"Copy status change callback",CUSTOM_CHILD_ELEMENT:"Custom child element",COPY_OPERATION_PROMISE:"Copy operation Promise",COPY_SUCCESS:"Copy successful!",COPY_FAILED:"Copy failed!",COPYTOCLIPBOARD_COMPONENT:"CopyToClipboard Component",DISPLAY_DIFFERENT_STYLES_COPY_BUTTONS:"Display copy buttons with different styles.",TEXT_LINK_STYLE:"Text Link Style",COPY_LINK:"Copy Link",BUTTON_STYLE:"Button Style",CLICK_TO_COPY_CUSTOM_LINK:"Click to copy custom link",STYLED_LINK:"Styled Link",COPY_STYLED_LINK:"Copy styled link",USING_USECOPY_HOOK:"Using useCopy Hook",USE_USECOPY_TO_COPY_LINK:"Use useCopy to copy link",COMPONENT:"Component",HOOK:"Hook",SUCCESS:"success",EMPTY_COMPONENT:"Empty Empty State",DEFAULT_EMPTY_STATE:"Default Empty State",CUSTOM_DESCRIPTION:"Custom Description",CUSTOM_ICON:"Custom Icon",CUSTOM_IMAGE:"Custom Image",WITH_ACTION_BUTTON:"With Action Button",LARGE_SIZE:"Large Size",MIDDLE_SIZE:"Middle Size",SMALL_SIZE:"Small Size",NO_EXCEL_FILE:"No Excel Files",UPLOAD_FILE:"Upload File",VIEW_TEMPLATE:"View Template",LOAD_DATA:"Load Data",TRANSPARENCY_ADJUSTMENT:"Transparency Adjustment",ENABLE_ALPHA_PROPERTY:"Enable transparency adjustment through the alpha property, supporting RGBA color format.",WITH_TRANSPARENCY:"With Transparency",PRESET_COLORS:"Preset Colors",SET_PRESET_COLORS:"Set common preset colors through the presetColors property for quick selection.",DISABLE_COLOR_PICKER:"Disable the color picker through the disabled property; cannot open the selection panel when disabled.",COLOR_SQUARE:"Color Square",COLOR_TEXT:"Color Text",COLOR_BUTTON:"Color Button",SELECT_COLOR:"Select Color",CUSTOM_STYLE_PROPERTY:"Customize the style of the color picker through the style property.",CUSTOM_BORDER_RADIUS:"Custom Border Radius",GRADIENT_SUPPORT:"Gradient Support",ENABLE_GRADIENT:"Enable gradient color support through the gradient property, supporting linear gradient color selection.",BASIC_GRADIENT:"Basic Gradient",GRADIENT_COLOR:"Gradient Color",FEATURES:"Features",LIGHTWEIGHT:"Lightweight: Only 2.8KB gzipped (13 times lighter than react-color)",TREE_SHAKING:"Tree Shaking: Only import used parts",FAST:"Fast: Uses hooks and functional components",TYPE_SAFE:"Type Safe: Strict TypeScript support",MOBILE_FRIENDLY:"Mobile Friendly: Supports touch devices",ACCESSIBLE:"Accessible: Follows WAI-ARIA guidelines",NO_DEPENDENCIES:"No Dependencies: Does not depend on other libraries",FLEX_COMPONENT:"Flex Component",INTERACTIVE_EXAMPLE:"Interactive Example",ADJUST_PROPERTIES:"Adjust various properties of the flex layout in real-time through the buttons and input boxes below.",ITEM_COUNT:"Item Count",ITEMS:"items",DIRECTION:"Direction (higher priority than Layout)",CURRENT_VALUE:"Current Value",DEMONSTRATION_EFFECT:"Demonstration Effect",CURRENT_CONFIGURATION:"Current Configuration",MULTI_LEVEL_NESTING:"Multi-level Nesting Example",NESTING_DESCRIPTION:"Demonstrates the multi-level nesting usage of the Flex component to achieve complex layout structures.",TITLE_AREA:"Title Area",VERTICAL_LAYOUT:"Vertical Layout",CENTER_ALIGNMENT:"Center Alignment",JUSTIFY_BETWEEN:"Space Between",WRAP_LAYOUT:"Wrap Layout",COMPLEX_USAGE:"Complex Usage",ACTION_AREA:"Action Area",FLEX_CHILDREN_DESC:"Child component content",FLEX_LAYOUT_DESC:"Quickly set the layout direction, horizontal for horizontal layout, column for column layout",FLEX_DIRECTION_DESC:"flex-direction property, with higher priority than layout",FLEX_JUSTIFY_DESC:"justify-content property",FLEX_ALIGN_DESC:"align-items property",FLEX_WRAP_DESC:"flex-wrap property",FLEX_GAP_DESC:"gap property, supporting numeric values (px) and strings",CENTER_CONTENT:"Center Content",MARQUEE_COMPONENT:"Marquee Announcement Component",DEFAULT_CONFIGURATION:"1. Default Configuration",DEFAULT_CONFIG_DESC:"Default height: 40px, default speed: 50, default gradient background",DEFAULT_ANNOUNCEMENT:"This is a default configured announcement message that scrolls from right to left and automatically repeats after playback!",CUSTOM_HEIGHT:"Supports custom notice bar height (default: 60px, range: 30-100px)",HEIGHT_60PX:"Height: 60px",CUSTOM_HEIGHT_ANNOUNCEMENT:"This is an announcement message with a custom height of 60px!",CUSTOM_SPEED:"3. Custom Speed",SLOW_SPEED:"Slow Speed: 20",SLOW_SPEED_ANNOUNCEMENT:"This is a slow-scrolling announcement message with a speed of 20!",FAST_SPEED:"Fast Speed: 100",FAST_SPEED_ANNOUNCEMENT:"This is a fast-scrolling announcement message with a speed of 100!",CUSTOM_BACKGROUND:"4. Custom Background",CUSTOM_GRADIENT_BACKGROUND:"Custom Gradient Background",GRADIENT_BACKGROUND_ANNOUNCEMENT_1:"This is an announcement with a custom gradient background",GRADIENT_BACKGROUND_ANNOUNCEMENT_2:"This is the second announcement with a custom gradient background",COMPREHENSIVE_CUSTOM:"5. Comprehensive Customization",COMPREHENSIVE_CUSTOM_DESC:"Height: 50px, Speed: 75, Custom Background",COMPREHENSIVE_ANNOUNCEMENT:"This is a comprehensively customized announcement, height 50px, speed 75, custom gradient background!",FIXED_TOP:"6. Fixed to Top",FIXED_TOP_DESC:"fixed=true, the announcement bar will be fixed at the top of the page",FIXED_TOP_ANNOUNCEMENT:"This is an announcement fixed at the top, remaining visible while scrolling!",CLOSE_CALLBACK:"7. Close Callback",CLOSE_CALLBACK_DESC:"Click the close button to trigger onClose callback",CLOSE_CALLBACK_ANNOUNCEMENT:"This is an announcement with close callback, click the X on the right to close!",FULL_FUNCTIONALITY:"8. Full Functionality Example",FULL_FUNCTIONALITY_DESC:"Fixed Top + Custom Height + Custom Speed + Close Callback",FULL_FUNCTIONALITY_ANNOUNCEMENT:"This is a fully functional announcement with fixed top, custom height and speed, and close support!",ANNOUNCEMENT_TEXT:"Announcement text, can be a string or string array",ANNOUNCEMENT_HEIGHT:"Height of the announcement bar in pixels",SCROLL_SPEED:"Scrolling speed, larger values scroll faster",ANNOUNCEMENT_BACKGROUND:"Background color of the announcement bar, can be solid color or gradient",DISPLAY_ANNOUNCEMENT:"Whether to display the announcement bar",FIXED_POSITION:"Whether to fix at the top of the page",FIXED_DISTANCE:"Distance from the top when fixed, in pixels",DISPLAY_ICON:"Whether to display the announcement icon",CLOSE_BUTTON_CALLBACK:"Callback function when the close button is clicked",COLORPICKER_CURRENT_COLOR:"Current Color",COLORPICKER_CURRENT_GRADIENT:"Current Gradient",COLORPICKER_COLOR_VALUE:"Current color value (supports HEX format)",COLORPICKER_CONFIRM_CHANGE:"Callback function after confirming color selection",COLORPICKER_REAL_TIME_CHANGE:"Callback function when color changes in real-time",COLORPICKER_PRESET_COLORS:"Array of preset colors",COLORPICKER_GRADIENT_SUPPORT:"Whether to support gradient colors; after enabling, can select linear gradient colors",COLORPICKER_CUSTOM_TRIGGER:"Custom trigger area, supports any React node",EMPTY_CUSTOM_ICON:"Custom icon",EMPTY_CUSTOM_IMAGE_PATH:"Custom image path",EMPTY_DATA:"No data",EMPTY_STATUS_DESCRIPTION:"Empty state description",EMPTY_CUSTOM_ACTION_AREA:"Custom action area",EMPTY_SIZE:"Empty state size",EMPTY_CUSTOM_STYLE:"Custom style",EMPTY_CUSTOM_CLASS_NAME:"Custom CSS class name",NOTICE_COMPONENT_DESC:"This is a scrolling notification bar component that uses react-fast-marquee to achieve seamless scrolling effects.",NOTICE_HIDDEN:"Notice hidden",HIDE_NOTICE:"Hide notice",SHOW_NOTICE:"Show notice",CUSTOM_CONFIGURATION:"Custom Configuration",NOTICE_TEXT:"Notice text",ENTER_NOTICE_TEXT:"Enter notice text",NOTICE_BAR_HEIGHT:"Notice bar height",SHOW_CLOSE_BUTTON:"Show close button",FLOAT_TO_TOP:"Float to top",SEAMLESS_SCROLL:"Uses Marquee component to achieve seamless scrolling effect",CONFIGURABLE_SPEED:"Scrolling speed configurable (default: 50, range: 10-100)",CUSTOM_NOTICE_TEXT:"Supports custom notice text content",OPTIONAL_CLOSE_BUTTON:"Optional close button, 30px wide, click to hide the notice bar",FLOATING_TOP_FUNCTION:"Supports floating top function, fixed at the top of the page",TYPESCRIPT_SUPPORT:"Component supports TypeScript type definitions",USAGE_SCENARIOS:"Usage Scenarios",WEBSITE_ANNOUNCEMENT:"Website announcements",SYSTEM_NOTIFICATION:"System notifications",PROMOTION_INFO:"Promotional activity information",IMPORTANT_REMINDER:"Important message reminders",SPEED_DESC:"Scrolling speed, larger values scroll faster",HEIGHT_DESC:"Height of the notice bar in pixels",STYLES_DESC:"Custom notice bar styles",ICON_NOTICE_DESC:"Icon before the notice text",SHOW_CLOSE_BUTTON_DESC:"Whether to show the close button",CLOSE_STYLE_DESC:"Custom close button style",FLOATING_TOP_DESC:"Whether to fix and float at the top of the page",PAUSE_ON_HOVER_DESC:"Whether to pause scrolling when hovering",MESSAGE_COMPONENT_DESC:"Lightweight message prompt box for displaying success, warning and error messages.",CLICK_BUTTONS_TO_SHOW_MESSAGES:"Click the buttons to display different types of message prompts.",SHOW_SUCCESS_MESSAGE:"Show success message",SHOW_WARNING_MESSAGE:"Show warning message",SHOW_ERROR_MESSAGE:"Show error message",OPERATION_SUCCESS:"Operation successful!",WARNING_CHECK_INPUT:"Warning: Please check your input!",OPERATION_FAILED_RETRY:"Operation failed, please try again!",MESSAGE_TYPE:"Message type",MESSAGE_CONTENT:"Message content",MESSAGE_DURATION:"Message auto-close duration (milliseconds)",MESSAGE_CLOSE_CALLBACK:"Message close callback",MODAL_COMPONENT_DESC:"Modal dialog component for displaying important information or operations that require user confirmation.",CLICK_BUTTON_OPEN_BASIC_MODAL:"Click the button to open the basic modal.",OPEN_BASIC_MODAL:"Open Basic Modal",BASIC_MODAL:"Basic Modal",MODAL_CONTENT_AREA:"This is the content area of the modal, which can contain any content.",MODAL_CENTERED:"The modal will be centered horizontally and vertically.",CUSTOM_SIZE:"Custom Size",CAN_CUSTOMIZE_MODAL_WIDTH_HEIGHT:"You can customize the width and height of the modal.",SMALL_SIZE_MODAL:"Small Size Modal",LARGE_SIZE_MODAL:"Large Size Modal",SMALL_SIZE_MODAL_CONTENT:"This is a small size modal with a width of 400px.",LARGE_SIZE_MODAL_CONTENT:"This is a large size modal with a width of 800px and height of 500px.",CAN_PLACE_MORE_CONTENT:"You can place more content.",ASYNC_CONFIRMATION:"Async Confirmation",CLICK_CONFIRM_TO_PERFORM_ASYNC_OPERATION:"Click the confirm button to perform asynchronous operations, and close the modal after completion.",ASYNC_CONFIRMATION_MODAL:"Async Confirmation Modal",AFTER_CLICK_CONFIRM_BUTTON:"After clicking the confirm button, it will simulate a 1-second asynchronous operation.",MODAL_WILL_AUTOMATICALLY_CLOSE_AFTER_OPERATION_COMPLETE:"The modal will automatically close after the operation is complete.",CONTENT_HEIGHT_AUTO_ADJUSTMENT:"Content Height Auto-adjustment",WHEN_HEIGHT_NOT_SET_CONTENT_AREA_ADAPTS:"When height is not set, the content area height adapts; when height is set, the content area height is automatically calculated.",AUTO_ADJUST_HEIGHT:"Auto-adjust Height",CONTENT_SCROLL_EXAMPLE:"Content Scroll Example",AUTO_ADJUST_HEIGHT_MODAL:"Auto-adjust Height Modal",THIS_IS_A_MODAL_WITHOUT_HEIGHT_SET:"This is a modal without height set, and the content area height will automatically adjust according to the content.",YOU_CAN_ADD_MORE_CONTENT_TO_TEST_ADAPTIVE_EFFECT:"You can add more content to test the adaptive effect.",CONTENT_SCROLL_MODAL:"Content Scroll Modal",LONG_CONTENT_TEST:"Long Content Test",THIS_IS_A_MODAL_WITH_FIXED_HEIGHT:"This is a modal with fixed height, and the content area height is automatically calculated.",WHEN_CONTENT_EXCEEDS_CALCULATED_HEIGHT:"When the content exceeds the calculated height, a scrollbar will be automatically displayed.",ANIMATION_DIRECTION_DEMONSTRATION:"Animation Direction Demonstration",SUPPORT_FOUR_ANIMATION_DIRECTIONS:"Supports four animation directions, and opening and closing will use the same direction setting.",CENTER_ANIMATION:"Center Animation",TOP_RIGHT_ANIMATION:"Top Right Animation",BOTTOM_RIGHT_ANIMATION:"Bottom Right Animation",NORMAL_ANIMATION:"Normal Animation",OPEN_FROM_CENTER_POINT_ENLARGE:"Open: Enlarge from the center point",CLOSE_FROM_CENTER_POINT_SHRINK:"Close: Shrink from the center point",OPEN_FROM_TOP_RIGHT_MOVE_AND_ENLARGE:"Open: Move from top right and enlarge",CLOSE_TO_TOP_RIGHT_MOVE_AND_SHRINK:"Close: Move to top right and shrink",OPEN_FROM_BOTTOM_RIGHT_MOVE_AND_ENLARGE:"Open: Move from bottom right and enlarge",CLOSE_TO_BOTTOM_RIGHT_MOVE_AND_SHRINK:"Close: Move to bottom right and shrink",OPEN_SLIGHTLY_ENLARGE_AND_FADE_IN:"Open: Slightly enlarge and fade in",CLOSE_SLIGHTLY_SHRINK_AND_FADE_OUT:"Close: Slightly shrink and fade out",CUSTOM_TOP_POSITION:"Custom Top Position",THROUGH_TOP_PARAM_CUSTOMIZE_MODAL_DISTANCE_FROM_TOP:"You can customize the modal's distance from the top through the top parameter. When direction is set at the same time, direction will be forced to use normal.",USE_TOP_AND_DIRECTION_SIMULTANEOUSLY:"Use top and direction simultaneously",THIS_MODAL_IS_100PX_FROM_TOP:"This modal is 100px from the top",USE_TOP_PARAM_TO_CUSTOMIZE_MODAL_VERTICAL_POSITION:"Use the top parameter to customize the vertical position of the modal",THIS_MODAL_IS_200PX_FROM_TOP:"This modal is 200px from the top",ALTHOUGH_DIRECTION_TOP_RIGHT_SET_BUT_DUE_TO_TOP_PARAM:'Although direction="top-right" is set, direction is forced to normal because the top parameter is set at the same time',CUSTOM_FOOTER:"Custom Footer",CAN_CUSTOMIZE_BOTTOM_BUTTONS_THROUGH_FOOTER_PARAM:"You can customize the bottom buttons through the footer parameter. When footer is null, default buttons are displayed; when a value is provided, custom buttons are displayed.",CUSTOM_FOOTER_MODAL:"Custom Footer Modal",CANCEL:"Cancel",SAVE:"Save",THIS_IS_A_MODAL_WITH_CUSTOM_FOOTER:"This is a modal with custom footer, which displays three buttons at the bottom: Cancel, Save, and Delete.",YOU_CAN_CUSTOMIZE_FOOTER_CONTENT_AND_STYLE:"You can customize the content and style of the footer according to your needs.",CUSTOM_MOUNT_CONTAINER:"Custom Mount Container",CAN_SPECIFY_MODAL_MOUNT_HTML_NODE_THROUGH_GET_CONTAINER_PARAM:"You can specify the HTML node where the Modal is mounted through the getContainer parameter. false means mount in the current DOM.",MOUNT_IN_CURRENT_DOM:"Mount in Current DOM",MOUNT_IN_CUSTOM_CONTAINER:"Mount in Custom Container",THIS_IS_A_CUSTOM_MOUNT_CONTAINER:"This is a custom mount container",CLICK_MOUNT_IN_CUSTOM_CONTAINER_BUTTON:'Click the "Mount in Custom Container" button, and the Modal will be mounted here',THIS_MODAL_IS_MOUNTED_IN_CURRENT_DOM:"This Modal is mounted in the current DOM, not in document.body.",CAN_ACHIEVE_THIS_EFFECT_THROUGH_GET_CONTAINER_FALSE:"You can achieve this effect through getContainer={false}.",THIS_MODAL_IS_MOUNTED_IN_CUSTOM_CONTAINER:"This Modal is mounted in a custom container on the page.",CAN_SPECIFY_MOUNTED_HTML_NODE_THROUGH_GET_CONTAINER_PROPERTY:"You can specify the mounted HTML node through the getContainer property.",CUSTOM_MASK_BACKGROUND_COLOR:"Custom Mask Background Color",CAN_CUSTOMIZE_MASK_BACKGROUND_COLOR_AND_OTHER_STYLES:"You can customize the mask background color and other styles through the maskStyle property.",THIS_MODAL_MASK_USES_CUSTOM_BACKGROUND_COLOR:"The mask layer of this Modal uses a custom background color (semi-transparent red).",CAN_SET_VARIOUS_STYLES_OF_MASK_THROUGH_MASK_STYLE_PROPERTY:"You can set various styles of the mask through the maskStyle property, such as background color, opacity, etc.",CUSTOM_ZINDEX:"Custom zIndex",CAN_SET_MASK_LAYER_LEVEL_THROUGH_ZINDEX_PROPERTY:"You can set the level of the mask layer through the zIndex property, with a default value of 1000. In the case of nested Modals, you need to set different zIndex values to ensure the correct display level.",OPEN_FIRST_MODAL:"Open First Modal",FIRST_MODAL_ZINDEX_1000:"First Modal (zIndex: 1000)",CLOSE:"Close",OPEN_SECOND_MODAL:"Open Second Modal",THIS_IS_THE_FIRST_MODAL_USING_DEFAULT_ZINDEX_1000:"This is the first Modal, using the default zIndex value (1000).",CLICK_OPEN_SECOND_MODAL_BUTTON_TO_POP_UP_SECOND_MODAL:'Click the "Open Second Modal" button to pop up the second Modal.',SECOND_MODAL_ZINDEX_1010:"Second Modal (zIndex: 1010)",THIS_IS_THE_SECOND_MODAL_USING_HIGHER_ZINDEX_1010:"This is the second Modal, using a higher zIndex value (1010).",DUE_TO_HIGHER_ZINDEX_IT_WILL_DISPLAY_ABOVE_FIRST_MODAL:"Due to the higher zIndex setting, it will be displayed above the first Modal.",MODAL_VISIBLE_DESC:"Controls whether the modal is displayed/hidden (required)",MODAL_TITLE_DESC:"Modal title",MODAL_WIDTH_DESC:"Modal width",MODAL_HEIGHT_DESC:"Modal height (optional, adapts if not set)",MODAL_HEADER_HEIGHT_DESC:"Top area height",MODAL_FOOTER_HEIGHT_DESC:"Bottom area height",MODAL_CONFIRM_LOADING_DESC:"Whether the confirm button shows loading status",MODAL_DIRECTION_DESC:"Animation direction for opening and closing",MODAL_TOP_DESC:"Distance from the top of the modal; when set, direction will be forced to normal",MODAL_FOOTER_DESC:"Bottom content, shows default buttons when null, shows custom content when provided",MODAL_ON_CANCEL_DESC:"Cancel button click callback",MODAL_ON_OK_DESC:"Confirm button click callback",MODAL_CHILDREN_DESC:"Modal content",MODAL_GET_CONTAINER_DESC:"Specifies the HTML node where the Modal is mounted; false means mount in current DOM",MODAL_OK_TEXT_DESC:"Confirm button text",MODAL_CANCEL_TEXT_DESC:"Cancel button text",MODAL_MASK_STYLE_DESC:"Custom mask layer style",MODAL_MASK_CLASS_NAME_DESC:"Custom mask layer class name",MODAL_Z_INDEX_DESC:"z-index value of the mask layer",TYPOGRAPHY_COMPONENT:"Typography component",SHOW_BASIC_USAGE_TYPOGRAPHY:"Demonstrates the basic usage of the Typography component.",DEFAULT_DISPLAY_NO_ROW_LIMIT:"Default display (no row limit)",LIMIT_1_ROW:"Limit to 1 row",LIMIT_2_ROWS:"Limit to 2 rows",LIMIT_3_ROWS:"Limit to 3 rows",DIFFERENT_WIDTHS:"Different widths",WIDTH_200PX_LIMIT_1_ROW:"Width 200px, limit to 1 row",WIDTH_300PX_LIMIT_2_ROWS:"Width 300px, limit to 2 rows",WIDTH_500PX_LIMIT_3_ROWS:"Width 500px, limit to 3 rows",MIXED_TEXT_WRAPPING:"Mixed Chinese and English text (testing line break issues)",MIXED_TEXT_CONTENT:"This is a test text containing English, used to test line break issues when mixing Chinese and English. When the text content exceeds the container width, English should follow immediately after Chinese instead of starting a new line separately.",MIXED_TEXT_LIMIT_2_ROWS:"Mixed Chinese and English text (limit to 2 rows)",TYPOGRAPHY_LONG_TEXT:"This is a long test text used to test the row limit function of the Typography component. When the text content exceeds the specified row limit, ellipsis should be displayed at the end. This component supports custom width and row limits to meet different layout needs.",TYPOGRAPHY_CHILDREN_DESC:"Text content",TYPOGRAPHY_WIDTH_DESC:"Width limit",TYPOGRAPHY_ROWS_DESC:"Row limit",TYPOGRAPHY_STYLE_DESC:"Custom style",TYPOGRAPHY_CLASSNAME_DESC:"Custom class name",TYPOGRAPHY_MIXED_TEXT:"This is a test text containing English, used to test line break issues when mixing Chinese and English. When the text content exceeds the container width, English should follow immediately after Chinese instead of starting a new line separately.",TYPOGRAPHY_MIXED_TEXT_2:"This is a test text containing English, used to test line break issues when mixing Chinese and English. When the text content exceeds the container width, English should follow immediately after Chinese instead of starting a new line separately.",TYPOGRAPHY_DEFAULT_DISPLAY:"Default display (no row limit)",TYPOGRAPHY_LIMIT_1_ROW:"Limit to 1 row",TYPOGRAPHY_LIMIT_2_ROWS:"Limit to 2 rows",TYPOGRAPHY_LIMIT_3_ROWS:"Limit to 3 rows",TYPOGRAPHY_DIFFERENT_WIDTHS:"Different widths",TYPOGRAPHY_MIXED_TEXT_TEST:"Mixed Chinese and English text (testing line break issues)",TYPOGRAPHY_MIXED_TEXT_TEST_2:"Mixed Chinese and English text (limit to 2 rows)",TYPOGRAPHY_BASIC_USAGE:"Basic usage",TYPOGRAPHY_API_PARAMETERS:"API parameters",TYPOGRAPHY_CODE_EXAMPLE:"Code example",TYPOGRAPHY_COMPONENT_DESCRIPTION:"Typography component that supports custom width and row limits, displaying ellipsis when exceeding row limits.",TYPOGRAPHY_BASIC_USAGE_DESCRIPTION:"Demonstrates the basic usage of the Typography component.",TYPOGRAPHY_WIDTH_200PX:"Width 200px, limit to 1 row",TYPOGRAPHY_WIDTH_300PX:"Width 300px, limit to 2 rows",TYPOGRAPHY_WIDTH_500PX:"Width 500px, limit to 3 rows"};Mt.use(Gt).init({resources:{"zh-CN":{translation:ii},"en-US":{translation:ri}},lng:"zh-CN",fallbackLng:"zh-CN",interpolation:{escapeValue:!1}});var oi,ai,si,li,ci,di,ui,pi,hi,fi,mi,gi,vi,_i,xi,Ci,Ei,Oi,Ti,bi,Ni,Ai,yi,Si,Li,Ii,wi,Mi,Ri,Di,Hi,ki,Pi,ji=function(n){var t=n.children,i=n.locale,r=n.resources;return u.default.useEffect(function(){r&&Object.keys(r).forEach(function(e){var n=r[e];Object.keys(n).forEach(function(t){var i=n[t];Mt.addResourceBundle(e,t,i,!0)})})},[r]),u.default.useEffect(function(){i&&i!==Mt.language&&Mt.changeLanguage(i)},[i]),e.jsx(ti,{i18n:Mt,children:t})},Vi=function(t){var i=t.items,r=t.type,o=void 0===r?"text":r,a=t.children,s=t.trigger,l=void 0===s?"click":s,c=t.placement,d=void 0===c?"bottom":c,u=t.disabled,h=void 0!==u&&u,m=t.open,g=t.ellipsis,v=void 0===g||g,_=t.className,x=t.style,C=t.contentStyles,E=t.getContainer,O=t.onVisibleChange,T=t.onChange,b=void 0!==m,N=n.useState(!1),A=N[0],y=N[1],S=b?m:A,L=n.useRef(null),I=n.useRef(null);n.useEffect(function(){var e=function(e){L.current&&!L.current.contains(e.target)&&(b||y(!1),null==O||O(!1))};return S&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}},[S,O,b]);var w=function(){if(!h&&"click"===l){var e=!S;b||y(e),null==O||O(e)}},M=function(){h||"hover"!==l||(b||y(!0),null==O||O(!0))},R=function(){h||"hover"!==l||(b||y(!1),null==O||O(!1))};return e.jsxs("div",{ref:L,className:p.default("dropdown",_,{"dropdown--disabled":h}),style:x,children:["button"===o?e.jsx(se,{variant:"secondary",size:"medium",disabled:h,onClick:w,icon:"caret-down",children:a||"Dropdown"}):e.jsxs("div",{ref:I,className:p.default("dropdown-trigger",{"dropdown-trigger--text":"text"===o,"dropdown-trigger--disabled":h}),onClick:w,onMouseEnter:M,onMouseLeave:R,children:[a||"Dropdown",e.jsx(k,{type:"caret-down",className:"dropdown-arrow"})]}),e.jsx("div",{className:"dropdown-content-wrapper",children:function(){if(!i||0===i.length||!S)return null;var n=e.jsx("div",{className:p.default("dropdown-menu dropdown-menu--".concat(d," dropdown-menu--p-").concat(d),{"dropdown-menu--visible":S}),children:e.jsx("ul",{className:"dropdown-list",style:C,children:i.map(function(n){return e.jsxs("li",{className:p.default("dropdown-item",{"dropdown-item--disabled":n.disabled}),onClick:function(){return function(e){var n;e.disabled||(null===(n=e.onClick)||void 0===n||n.call(e),null==T||T(e),b||y(!1),null==O||O(!1))}(n)},children:[n.icon&&e.jsx("span",{className:"dropdown-item-icon",children:"string"==typeof n.icon?e.jsx(k,{type:n.icon}):n.icon}),e.jsx("span",{className:p.default("dropdown-item-label",{"dropdown-item-label--with-width":(null==C?void 0:C.width)&&!v,"dropdown-item-label--ellipsis":(null==C?void 0:C.width)&&v}),children:n.label})]},n.key)})})});if(E){var t=E();if(t)return f.default.createPortal(n,t)}return n}()})]})},zi=function(t){var i=t.mode,r=void 0===i?"vertical":i,o=t.items,a=void 0===o?[]:o,s=t.className,l=t.style,c=t.menuItemStyle,d=void 0===c?{}:c,u=t.selectedKey,p=t.collapsed,h=void 0!==p&&p,f=t.onChange,g=n.useState(""),v=g[0],_=g[1],C=n.useState([]),E=C[0],O=C[1],T=n.useState(!1),b=T[0],N=T[1],A=n.useState({left:0,top:0}),y=A[0],S=A[1],L=n.useState(null),I=L[0],w=L[1],M=n.useState(!1),R=M[0],D=M[1],H=n.useState({left:0,top:0}),P=H[0],j=H[1],V=n.useState(null),z=V[0],U=V[1],B=n.useState(!1),F=B[0],G=B[1],Y=n.useState(!1),$=Y[0],W=Y[1],K=void 0!==u?u:v;n.useEffect(function(){if(K){var e=function(n,t,i){void 0===i&&(i=[]);for(var r=0,o=n;r<o.length;r++){var a=o[r];if(a.key===t)return i;if(a.childrens&&a.childrens.length>0){var s=e(a.childrens,t,x(x([],i,!0),[a.key],!1));if(s)return s}}return null},n=e(a,K);n&&O(function(e){return Array.from(new Set(x(x([],e,!0),n,!0)))})}},[K,a]);var Z={},X=n.createContext(Z);n.useEffect(function(){if(b){var e=setTimeout(function(){return G(!0)},10);return function(){return clearTimeout(e)}}G(!1)},[b]),n.useEffect(function(){if(R){var e=setTimeout(function(){return W(!0)},10);return function(){return clearTimeout(e)}}W(!1)},[R]),n.useEffect(function(){var e=function(){b&&(N(!1),D(!1)),R&&D(!1)};return window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),function(){window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e)}},[b,R]),n.useEffect(function(){var e=function(e){var n=document.querySelectorAll(".idp-menu-item"),t=document.querySelectorAll(".menu-popup, .sub-menu-popup"),i=!1,o=!1;n.forEach(function(n){n.contains(e.target)&&(i=!0)}),t.forEach(function(n){n.contains(e.target)&&(o=!0)}),"horizontal"!==r&&"inline-flex"!==r&&"inline-block"!==r||!b&&!R||i||o||(N(!1),D(!1))};return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}},[b,R,r]);var q=function(e){O(function(n){return n.includes(e)?n.filter(function(n){return n!==e}):x(x([],n,!0),[e],!1)})};function J(n){var t;return null===(t=n.childrens)||void 0===t?void 0:t.map(function(n){return e.jsxs("div",{className:"vertical-menu-item",children:[e.jsxs("div",{style:m({},d),className:"common-item vertical-menu-item-content ".concat(K===n.key?"menu-".concat(r,"-selected"):""),"data-title":n.label,onClick:function(){void 0===u&&_(n.key),f&&f(n,n.key),n.childrens&&!h&&q(n.key)},children:[(null==n?void 0:n.icon)||e.jsx("span",{style:{width:"16px",height:"16px",display:"inline-block"},children:n.label.charAt(0)}),e.jsx("span",{children:n.label}),n.childrens&&!h&&e.jsx(k,{type:E.includes(n.key)?"arrowUp":"arrowDown",size:16,color:"#666",style:{transition:"transform 0.3s ease"},className:"common-menu-item-icon"})]}),n.childrens&&e.jsx("div",{className:"sub-menu-container ".concat(E.includes(n.key)?"open":""),children:J(n)})]},n.key)})}var Q=function(){return e.jsx("div",{className:"idp-menu-item inline-menu",children:a.map(function(t,i){return e.jsxs(n.Fragment,{children:[e.jsxs("div",{onClick:function(e){if(void 0===u&&_(t.key),f&&f(t,t.key),t.childrens)if(b&&(null==I?void 0:I.key)===t.key)N(!1),D(!1);else{var n=e.currentTarget.getBoundingClientRect();S({left:n.left+n.width/2,top:n.bottom+8}),w(t),N(!0)}else N(!1)},className:"common-item inline-menu-item ".concat(K===t.key?"menu-inline-selected":""),children:[null==t?void 0:t.icon,e.jsx("span",{children:t.label}),t.childrens&&e.jsx(k,{type:"arrowDown",size:12,color:K===t.key?"#339af0":"#666",style:{transform:b&&(null==I?void 0:I.key)===t.key?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease",marginLeft:"4px",opacity:.7}})]}),i<a.length-1&&e.jsx(ze,{color:"#e1e1e1",orientation:"vertical",style:{height:"24px",margin:"0 4px",alignSelf:"center"}})]},t.key)})})},ee={horizontal:function(){return e.jsx("div",{className:"idp-menu-item horizontal-menu",id:"idp-horizontal",children:a.map(function(n){return e.jsx("div",{className:"horizontal-menu-item",children:e.jsxs("div",{className:"common-item horizontal-menu-item-content ".concat(K===n.key?"menu-".concat(r,"-selected"):""),onClick:function(e){var t;if(void 0===u&&_(n.key),f&&f(n,n.key),n.childrens)if(b&&(null==I?void 0:I.key)===n.key)N(!1),D(!1);else{var i=e.currentTarget.getBoundingClientRect(),o=i.right+1;if("horizontal"===r){var a=document.getElementById("idp-horizontal");o=(null!==(t=null==a?void 0:a.getBoundingClientRect())&&void 0!==t?t:{right:0,top:0}).right+62}S({left:o,top:i.top}),w(n),N(!0)}else N(!1)},children:[null==n?void 0:n.icon,e.jsx("span",{children:n.label}),n.childrens&&e.jsx(k,{type:"arrowRight",size:16,color:"#666",style:{transform:b&&(null==I?void 0:I.key)===n.key?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.3s ease"},className:"common-menu-item-icon"})]})},n.key)})})},vertical:function(){return e.jsx("div",{className:"idp-menu-item vertical-menu ".concat(h?"collapsed":""),children:a.map(function(n){return e.jsxs("div",{className:"vertical-menu-item",children:[e.jsxs("div",{className:"common-item vertical-menu-item-content ".concat(K===n.key?"menu-".concat(r,"-selected"):""),"data-title":n.label,onClick:function(){void 0===u&&_(n.key),f&&f(n,n.key),n.childrens&&!h&&q(n.key)},children:[(null==n?void 0:n.icon)||e.jsx("span",{style:{width:"16px",height:"16px",display:"inline-block"},children:n.label.charAt(0)}),e.jsx("span",{children:n.label}),n.childrens&&!h&&e.jsx(k,{type:E.includes(n.key)?"arrowUp":"arrowDown",size:16,color:"#666",style:{transition:"transform 0.3s ease"},className:"common-menu-item-icon"})]}),n.childrens&&e.jsx("div",{className:"sub-menu-container ".concat(E.includes(n.key)?"open":""),children:J(n)})]},n.key)})})},"inline-flex":Q,"inline-block":Q};return e.jsx(X.Provider,{value:Z,children:e.jsxs("div",{className:"idp-menu ".concat(s||""),style:l,children:[ee[r](),b&&I&&I.childrens?"inline-block"===r?e.jsx("div",{className:"menu-popup ".concat(F?"visible":""),onMouseLeave:function(){N(!1),D(!1)},style:{position:"fixed",left:y.left,top:y.top,transform:"translateX(-50%)",backgroundColor:"white",border:"1px solid #e1e1e1",borderRadius:"8px",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",padding:"8px 0",minWidth:"200px",zIndex:1e3},children:e.jsx("div",{className:"vertical-menu",children:I.childrens.map(function(n){return e.jsxs("div",{className:"vertical-menu-item",children:[e.jsxs("div",{className:"vertical-menu-item-content ".concat(K===n.key?"menu-vertical-selected":""),onClick:function(){n.childrens&&n.childrens.length>0?q(n.key):(void 0===u&&_(n.key),f&&f(n,n.key),N(!1),D(!1))},children:[null==n?void 0:n.icon,e.jsx("span",{children:n.label}),n.childrens&&n.childrens.length>0&&e.jsx(k,{type:E.includes(n.key)?"arrowUp":"arrowDown",size:12,color:"#666",style:{transition:"transform 0.3s ease"}})]}),n.childrens&&n.childrens.length>0&&e.jsx("div",{className:"sub-menu-container ".concat(E.includes(n.key)?"open":""),children:n.childrens.map(function(n){return e.jsx("div",{className:"vertical-menu-item",children:e.jsxs("div",{className:"vertical-menu-item-content ".concat(K===n.key?"menu-vertical-selected":""),onClick:function(){void 0===u&&_(n.key),f&&f(n,n.key),N(!1),D(!1)},children:[null==n?void 0:n.icon,e.jsx("span",{children:n.label})]})},n.key)})})]},n.key)})})}):e.jsx("div",{className:"menu-popup ".concat(F?"visible":""),onMouseLeave:function(){"inline-flex"!==r&&"horizontal"!==r||(N(!1),D(!1))},style:{position:"fixed",left:y.left,top:y.top,transform:"translateX(-50%)",backgroundColor:"white",border:"1px solid #e1e1e1",borderRadius:"8px",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",padding:"8px 0",minWidth:"120px",zIndex:1e3},children:I.childrens.map(function(n){return e.jsxs("div",{className:"common-item popup-menu-item popup-menu-item-content ".concat(K===n.key?"menu-inline-selected":""," ").concat(n.childrens&&n.childrens.length>0?"has-children":""," ").concat((null==z?void 0:z.key)===n.key&&R?"sub-menu-active":""),onClick:function(){void 0===u&&_(n.key),f&&f(n,n.key),N(!1),D(!1)},onMouseEnter:function(e){if(n.childrens&&n.childrens.length>0){var t=e.currentTarget.getBoundingClientRect();j({left:t.right+1,top:t.top}),U(n),D(!0)}else D(!1)},style:{padding:"8px 16px",cursor:"pointer",transition:"background-color 0.2s ease",color:K===n.key?"#339af0":"#333",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[null==n?void 0:n.icon,e.jsx("span",{children:n.label})]}),n.childrens&&n.childrens.length>0&&e.jsx(k,{type:"arrowRight",size:12,color:"#666",className:"common-menu-item-icon"})]},n.key)})}):null,R&&z&&z.childrens?e.jsx("div",{className:"menu-popup ".concat($?"visible":""),onMouseLeave:function(){"inline-flex"===r&&D(!1)},style:{position:"fixed",left:P.left,top:P.top,backgroundColor:"white",border:"1px solid #e1e1e1",borderRadius:"8px",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",padding:"8px 0",minWidth:"120px",zIndex:1001},children:z.childrens.map(function(n){return e.jsxs("div",{className:"popup-menu-item",onClick:function(){void 0===u&&_(n.key),N(!1),D(!1)},style:{padding:"8px 16px",cursor:"pointer",transition:"background-color 0.2s ease",color:K===n.key?"#339af0":"#333"},children:[null==n?void 0:n.icon,e.jsx("span",{children:n.label})]},n.key)})}):null,(b||R)&&e.jsx("div",{onClick:function(){N(!1),D(!1)}})]})})},Ui=u.default.memo(function(t){var i,r=t.item,o=t.level,a=t.collapsed,s=t.mode,l=t.openKeySet,c=t.selectedKey,d=t.onItemClick,u=t.onToggleOpen,p=!!r.childrens&&r.childrens.length>0,h=l.has(r.key),f=c===r.key,m="horizontal"===s,g=0===o,v=n.useCallback(function(e){e.stopPropagation(),d(r,r.key),!p||a&&!m||u(r.key,g)},[r,d,u,p,a,m,g]),_=m&&g||a?12:12+16*o,x=h&&(!a||m);return e.jsxs("div",{className:"navigation-item-wrapper",children:[e.jsx("div",{className:"navigation-item ".concat(f?"selected":""," ").concat(r.disabled?"disabled":""),style:{paddingLeft:_},title:a?r.name:void 0,onClick:v,children:e.jsxs("div",{className:"navigation-item-content",children:[r.icon&&e.jsx("span",{className:"navigation-item-icon",children:r.icon}),!a&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"navigation-item-name",children:r.name}),r.description&&e.jsx("span",{className:"navigation-item-description",children:r.description})]}),p&&!a&&(!m||!g)&&e.jsx("span",{className:"navigation-item-arrow ".concat(x?"open":""),children:"▼"}),p&&m&&g&&e.jsx("span",{className:"navigation-item-arrow horizontal ".concat(x?"open":""),children:"▼"})]})}),p&&!a&&x&&e.jsx("div",{className:"navigation-children open".concat(m&&g?" horizontal":""),children:null===(i=r.childrens)||void 0===i?void 0:i.map(function(n){return e.jsx(Ui,{item:n,level:o+1,collapsed:a,mode:s,openKeySet:l,selectedKey:c,onItemClick:d,onToggleOpen:u},n.key)})})]})}),Bi=function(t){var i=t.items,r=t.selectedKey,o=t.collapsed,a=t.defaultOpenKeys,s=void 0===a?[]:a,l=t.mode,c=void 0===l?"vertical":l,d=t.closeOnOutsideClick,u=void 0===d||d,p=t.header,h=t.footer,f=t.onChange,g=t.onCollapseChange,v=t.className,_=void 0===v?"":v,C=t.style,E=t.width,O=void 0===E?280:E,T=t.collapsedWidth,b=void 0===T?48:T,N=t.animationDuration,A=void 0===N?300:N,y=n.useState(s),S=y[0],L=y[1],I=n.useState(""),w=I[0],M=I[1],R=n.useState(null!=o&&o),D=R[0],H=R[1],k=n.useState(""),P=k[0],j=k[1],V=n.useRef(""),z=n.useRef(null),U="horizontal"===c,B=n.useCallback(function(e,n){if(!n.trim())return e;var t=n.toLowerCase();return e.reduce(function(e,i){var r,o,a=i.key.toLowerCase().includes(t),s=i.name.toLowerCase().includes(t),l=null===(r=i.description)||void 0===r?void 0:r.toLowerCase().includes(t);return i.childrens&&i.childrens.length>0&&(o=B(i.childrens,n)),(a||s||l||o&&o.length>0)&&e.push(m(m({},i),{childrens:o})),e},[])},[]),F=n.useMemo(function(){return B(i,P)},[i,P,B]),G=n.useMemo(function(){var e=new Map,n=new Map,t=function(i,r){void 0===r&&(r=[]),i.forEach(function(i){var o=x(x([],r,!0),[i.key],!1);n.set(i.key,o),e.set(i.key,o[0]),i.childrens&&i.childrens.length>0&&t(i.childrens,o)})};return t(i),{rootMap:e,pathMap:n}},[i]),Y=G.rootMap,$=G.pathMap;n.useEffect(function(){void 0!==r&&(V.current=r,M(r))},[r]),n.useEffect(function(){void 0!==o&&H(o)},[o]);var W=n.useCallback(function(e){return Y.get(e)||e},[Y]),K=n.useMemo(function(){return!U&&(void 0!==o?o:D)},[o,D,U]),Z=n.useMemo(function(){return new Set(S)},[S]),X=n.useMemo(function(){return(void 0!==r?r:w)||V.current},[r,w]),q=n.useMemo(function(){return X?K?W(X):X:""},[K,W,X]),J=n.useMemo(function(){if(!X)return[];var e=$.get(X);return e?e.slice(0,-1):[]},[$,X]);n.useEffect(function(){!X||K||U||L(function(e){var n=!1,t=new Set(e);return J.forEach(function(e){t.has(e)||(t.add(e),n=!0)}),n?Array.from(t):e})},[X,K,J,U]);var Q=n.useCallback(function(e,t){n.startTransition(function(){L(function(n){return U&&t?n.includes(e)?[]:[e]:n.includes(e)?n.filter(function(n){return n!==e}):x(x([],n,!0),[e],!1)})})},[U]),ee=n.useCallback(function(){var e=!K;void 0===o&&H(e),null==g||g(e)},[K,o,g]),ne=n.useCallback(function(e){if(!e.disabled){V.current=e.key;var t=!!e.childrens&&e.childrens.length>0;U&&!t&&L([]),void 0===r?(n.startTransition(function(){M(e.key)}),null==f||f(e,e.key)):null==f||f(e,e.key)}},[r,f,U,$]),te=n.useMemo(function(){return U?"100%":K?b:O},[K,O,b,U]);return n.useEffect(function(){if(U&&u){var e=function(e){var n=e.target;z.current&&n&&!z.current.contains(n)&&L([])};return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}},[U,u]),e.jsxs("div",{ref:z,className:"idp-navigation ".concat(_," ").concat(K?"collapsed":""," ").concat(U?"horizontal":""),style:m({width:te,transition:"width ".concat(A,"ms ease")},C),children:[!U&&null!==p&&!1!==p&&e.jsx("div",{className:"navigation-header",children:null!=p?p:e.jsx(e.Fragment,{children:K?e.jsx(se,{onClick:ee,className:"navigation-collapse-button",variant:"secondary",children:"→"}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"navigation-header-row",children:[e.jsx("h2",{className:"navigation-title",children:"IDP Design"}),e.jsx(se,{onClick:ee,className:"navigation-collapse-button",variant:"secondary",children:"←"})]}),e.jsx("div",{className:"navigation-search",children:e.jsx($e.Search,{placeholder:"搜索组件...",value:P,onChange:function(e){return j(e.target.value)},clear:!0})})]})})}),e.jsx("div",{className:"navigation-list",children:F.length>0?F.map(function(n){return e.jsx(Ui,{item:n,level:0,collapsed:K,mode:c,openKeySet:Z,selectedKey:q,onItemClick:ne,onToggleOpen:Q},n.key)}):e.jsx("div",{className:"navigation-empty",children:e.jsx("span",{children:"未找到匹配的组件"})})}),!K&&!U&&null!==h&&!1!==h&&e.jsx("div",{className:"navigation-footer",children:null!=h?h:e.jsxs(e.Fragment,{children:[e.jsx("p",{children:"IDP Design v1.0.0"}),e.jsx("p",{children:"IDP Studio"})]})})]})},Fi=function(t){var i=t.value,r=void 0===i?0:i,o=t.count,a=void 0===o?5:o,s=t.allowHalf,l=void 0===s||s,c=t.disabled,d=void 0!==c&&c,u=t.color,p=void 0===u?"#1677ff":u,h=t.onChange,f=t.className,m=void 0===f?"":f,g=t.size,v=void 0===g?24:g,_=t.chats,x=n.useState(0),C=x[0],E=x[1],O=n.useRef([]),T=n.useRef(0),b=Array.isArray(_)&&_.length>=a&&_.every(function(e){return null!=e&&""!==e}),N=n.useState([]),A=N[0],y=N[1],S=n.useState(!1),L=S[0],I=S[1];O.current.length!==a&&(O.current=Array(a).fill(null)),n.useEffect(function(){if(b)if("string"==typeof r&&r.length>0){var e=Math.min(r.length,a);y(_.slice(0,e))}else y([]);else y([])},[r,b,_,a]),n.useLayoutEffect(function(){0===C&&L&&I(!1)},[C,L]);var w=C||(b?A.length:parseFloat(Number(r).toFixed(1)||"0")),M=n.useCallback(function(e){return function(n){O.current[e]=n}},[]),R=n.useMemo(function(){return Array.from({length:a}).map(function(e,n){var t=n+1,i=!1,r=!1;b?i=n<(L&&C>0?C:A.length):w>=t?i=!0:l&&w>n&&w<t&&(r=!0);return{index:n,isHalf:r,isFull:i,iconType:r?"half":i?"full":"empty",iconColor:i||r?p:"#d9d9d9"}})},[a,w,l,p,b,A.length,L,C]),D=function(n){if(b){var t=_[n.index],i=n.isFull;return e.jsx("span",{className:"rate-chat-item",style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",fontSize:"inherit",backgroundColor:"transparent",color:d?"inherit":i?p:"inherit",cursor:d?"default":"pointer"},onMouseEnter:function(e){if(!d){e.stopPropagation();var t=n.index+1;t!==T.current&&(T.current=t,E(t))}},onClick:function(e){if(!d){e.stopPropagation();var t=n.index+1;if(_&&Array.isArray(_)&&_.length>=0){var i=_.slice(0,t);y(i),null==h||h(i.join(""))}else null==h||h(t.toString());E(0),T.current=0,I(!1)}},children:t})}return e.jsxs(e.Fragment,{children:[e.jsx(k,{type:"starOutline",size:v,color:"#d9d9d9",className:"rate-star-bg"}),e.jsx("span",{className:"rate-star-left",onMouseEnter:function(e){if(!d&&l){e.stopPropagation();var t=n.index+.5;t!==T.current&&(T.current=t,E(t))}},onClick:function(e){!d&&l&&(e.stopPropagation(),null==h||h((n.index+.5).toString()),E(0),T.current=0,I(!1))}}),e.jsx("span",{className:"rate-star-right",onMouseEnter:function(e){if(!d){e.stopPropagation();var t=n.index+1;t!==T.current&&(T.current=t,E(t))}},onClick:function(e){if(!d){if(e.stopPropagation(),b){var t=_.slice(0,n.index+1);null==h||h(t.join(""))}else null==h||h((n.index+1).toString());E(0),T.current=0,I(!1)}}}),e.jsx("span",{className:"rate-star-fill ".concat(n.isHalf?"half":""," ").concat(n.isFull?"full":""),style:{color:n.iconColor},children:e.jsx(k,{type:"star",size:v,color:n.iconColor,className:"rate-star-icon"})})]})};return e.jsx("div",{className:"rate ".concat(d?"disabled":""," ").concat(b?"rate-chats-mode":"rate-star-mode"," ").concat(m),style:{"--rate-color":p},onMouseEnter:function(){d||I(!0)},onMouseLeave:function(){d||(I(!1),E(0),T.current=0)},children:R.map(function(n){return e.jsx("span",{ref:M(n.index),className:"rate-star",style:{fontSize:"".concat(v,"px")},children:D(n)},n.index)})})},Gi=function(t){var i,r=t.min,o=void 0===r?0:r,a=t.max,s=void 0===a?100:a,l=t.step,c=void 0===l?1:l,d=t.value,u=t.defaultValue,p=void 0===u?0:u,h=t.disabled,f=void 0!==h&&h,g=t.marks,v=void 0===g?{}:g,_=t.showValue,x=void 0!==_&&_,C=t.transitionSpeed,E=void 0===C?300:C,O=t.trackColor,T=void 0===O?"#1890ff":O,b=t.handleColor,N=void 0===b?"#1890ff":b,A=t.gradient,y=t.onChange,S=t.onAfterChange,L=t.className,I=void 0===L?"":L,w=t.style,M=n.useState(p),R=M[0],D=M[1],H=n.useState(!1),k=H[0],P=H[1],j=n.useRef(null),V=void 0!==d?d:R,z=n.useCallback(function(e){var n=(e-o)/(s-o);return Math.max(0,Math.min(1,n))},[o,s]),U=n.useCallback(function(e){var n=Math.max(0,Math.min(1,e)),t=o+n*(s-o);if(c>0){var i=Math.round(t/c)*c;return Math.min(s,Math.max(o,i))}return Math.min(s,Math.max(o,t))},[o,s,c]),B=function(e){return"touches"in e?e.touches[0].clientX:e.clientX},F=n.useCallback(function(e){if(j.current&&!f){var n=j.current.getBoundingClientRect(),t=(e-n.left)/n.width,i=U(t);void 0===d&&D(i),null==y||y(i)}},[f,d,U,y]),G=function(e){if(!f){e.preventDefault(),P(!0);var n=B(e);F(n)}};n.useEffect(function(){if(k){var e=function(e){e.preventDefault();var n=B(e);F(n)},n=function(){P(!1),null==S||S(V)};return document.addEventListener("mousemove",e),document.addEventListener("mouseup",n),document.addEventListener("touchmove",e,{passive:!1}),document.addEventListener("touchend",n),function(){document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",n),document.removeEventListener("touchmove",e),document.removeEventListener("touchend",n)}}},[k,F,V,S]);var Y=z(V),$="".concat(100*Y,"%"),W="".concat(100*Y,"%"),K=n.useCallback(function(e){for(var n=Object.entries(v).sort(function(e,n){return Number(e[0])-Number(n[0])}),t=0;t<n.length;t++){var i=n[t],r=i[0],o=i[1];if(e<=Number(r))return"string"==typeof o?{trackColor:void 0,handleColor:void 0,mark:o}:o}var a=n[n.length-1];if(a){var s=a[1];return"string"==typeof s?{trackColor:void 0,handleColor:void 0,mark:s}:s}return{trackColor:void 0,handleColor:void 0,mark:""}},[v]),Z=K(V),X=w&&w["--slider-track-filled-bg-color"],q=w&&w["--slider-handle-border-color"],J=A&&!Z.trackColor&&!X&&"#1890ff"===T,Q=Z.trackColor||X||T,ee=Z.handleColor||q||N,ne=Object.entries(v).map(function(e){var n=e[0],t=e[1],i=Number(n),r="string"==typeof t?{trackColor:void 0,handleColor:void 0,mark:t}:t;return{value:i,label:r.mark,trackColor:r.trackColor,handleColor:r.handleColor,position:z(i)}}).sort(function(e,n){return e.value-n.value});return e.jsxs("div",{className:"slider-container ".concat(f?"disabled":""," ").concat(I),style:m((i={},i["--slider-track-filled-bg-color"]=Q,i["--slider-handle-border-color"]=ee,i["--slider-track-filled-transition"]="width ".concat(E,"ms ease"),i["--slider-handle-transition"]="all ".concat(E,"ms ease"),i),w),children:[e.jsxs("div",{ref:j,className:"slider-track",onClick:function(e){f||(e.target.classList.contains("slider-handle")||(F(e.clientX),null==S||S(V)))},role:"presentation",children:[e.jsx("div",{className:"slider-track-filled",style:m({width:$},J&&A?{background:"linear-gradient(to right, ".concat(A.startColor,", ").concat(A.endColor,")")}:{})}),e.jsx("div",{className:"slider-handle",style:{left:W},onMouseDown:G,onTouchStart:G,onKeyDown:function(e){if(!f){var n=V;switch(e.key){case"ArrowLeft":case"ArrowDown":n=Math.max(o,V-c);break;case"ArrowRight":case"ArrowUp":n=Math.min(s,V+c);break;case"Home":n=o;break;case"End":n=s;break;case"PageDown":n=Math.max(o,V-10*c);break;case"PageUp":n=Math.min(s,V+10*c);break;default:return}e.preventDefault(),void 0===d&&D(n),null==y||y(n),null==S||S(n)}},role:"slider","aria-valuemin":o,"aria-valuemax":s,"aria-valuenow":V,"aria-disabled":f,tabIndex:f?-1:0,children:e.jsx("div",{className:"slider-tooltip",children:V})})]}),Object.keys(v).length>0&&e.jsx("div",{className:"slider-marks",children:ne.map(function(n){return e.jsx("div",{className:"slider-mark",style:{left:"".concat(100*n.position,"%"),color:n.trackColor||void 0},children:n.label},n.value)})}),x&&e.jsxs("div",{className:"slider-value-display",children:["当前值:",V]})]})},Yi=n.createContext(null),$i=function(n){var t=n.index,i=n.status,r=n.item;return r.node?e.jsx("span",{className:"idp-step-node idp-step-node-".concat(i),children:r.node}):r.title?e.jsx("span",{className:"idp-step-node idp-step-node-".concat(i),children:r.title}):r.description?e.jsx("span",{className:"idp-step-node idp-step-node-".concat(i),children:r.description}):"finish"===i?e.jsx("span",{className:"idp-step-node idp-step-node-finish",children:"✓"}):"error"===i?e.jsx("span",{className:"idp-step-node idp-step-node-error",children:"✕"}):e.jsx("span",{className:"idp-step-node idp-step-node-".concat(i),children:t+1})},Wi=function(t){var i=t.item,r=t.index,o=t.isLast,a=u.default.useRef(null),s=n.useContext(Yi),l=n.useState(0),c=l[0],d=l[1];if(!s)return null;var p=s.current,h=s.status,f=s.direction,m=s.onChange,g=i.status||(r<p?"finish":r===p?h:"wait");u.default.useEffect(function(){var e;if(a.current&&"panel"===s.type){var n=null===(e=a.current.getBoundingClientRect())||void 0===e?void 0:e.height;d(n||0)}},[a,s]);var v=n.useMemo(function(){if("panel"!==s.type||0===c)return null;var n=c/4-8;return e.jsx("div",{style:{transform:"translateY(".concat(n,"px)")},className:"idp-step-arrow",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:e.jsx("path",{d:"M5.5 3L10.5 8L5.5 13",stroke:"currentColor",strokeWidth:"2",fill:"none"})})})},[c,s]),_={};i.tailColor&&(_.backgroundColor=i.tailColor);var x=i.tailType||"solid";return e.jsxs("div",{className:"idp-step ".concat(f," ").concat(g," ").concat(i.disabled?"disabled":""),onClick:function(){!i.disabled&&m&&r!==p&&m(r)},ref:a,children:[e.jsxs("div",{className:"idp-step-head",children:[e.jsx($i,{index:r,status:g,item:i}),!o&&e.jsxs(e.Fragment,{children:["default"===s.type&&e.jsx("div",{className:"idp-step-tail idp-step-tail-".concat(x),style:_,children:i.tailTitle&&e.jsx("div",{className:"idp-step-tail-title",children:i.tailTitle})}),v]})]}),e.jsxs("div",{className:"idp-step-content",children:[i.title&&e.jsx("div",{className:"idp-step-title",children:i.title}),i.description&&e.jsx("div",{className:"idp-step-description",children:i.description})]})]})},Ki=function(n){var t=n.current,i=void 0===t?0:t,r=n.status,o=void 0===r?"process":r,a=n.direction,s=void 0===a?"horizontal":a,l=n.size,c=void 0===l?"default":l,d=n.type,u=void 0===d?"default":d,p=n.items,h=n.onChange,f=n.className,m=void 0===f?"":f,g=n.style,v={current:i,status:o,direction:s,size:c,type:u,onChange:h};return e.jsx(Yi.Provider,{value:v,children:e.jsx("div",{className:"idp-steps ".concat(s," ").concat(c," ").concat(u," ").concat(m),style:g,children:p.map(function(n,t){return e.jsx(Wi,{item:n,index:t,isLast:t===p.length-1},t)})})})},Zi=function(e,n){return"var(".concat(e,", ").concat(n,")")},Xi=h.default.div(oi||(oi=C(["\n display: inline-block;\n\n &.switch-wrapper {\n /* 外部可通过 .switch-wrapper 选择器覆盖样式 */\n }\n\n ","\n"],["\n display: inline-block;\n\n &.switch-wrapper {\n /* 外部可通过 .switch-wrapper 选择器覆盖样式 */\n }\n\n ","\n"])),function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),qi=h.default.div(ai||(ai=C(["\n position: relative;\n background-color: ",";\n border-radius: ",";\n transition: all ",";\n cursor: ",";\n opacity: ",";\n box-sizing: border-box;\n overflow: hidden;\n\n &.switch-track {\n /* 外部可通过 .switch-track 选择器覆盖样式 */\n }\n\n &.switch-track-checked {\n background-color: ",";\n }\n\n &.switch-track-disabled {\n cursor: not-allowed;\n opacity: 0.4;\n }\n\n &.switch-track-loading {\n cursor: wait;\n }\n\n ","\n\n ","\n\n ","\n\n ","\n"],["\n position: relative;\n background-color: ",";\n border-radius: ",";\n transition: all ",";\n cursor: ",";\n opacity: ",";\n box-sizing: border-box;\n overflow: hidden;\n\n &.switch-track {\n /* 外部可通过 .switch-track 选择器覆盖样式 */\n }\n\n &.switch-track-checked {\n background-color: ",";\n }\n\n &.switch-track-disabled {\n cursor: not-allowed;\n opacity: 0.4;\n }\n\n &.switch-track-loading {\n cursor: wait;\n }\n\n ","\n\n ","\n\n ","\n\n ","\n"])),function(e){return Zi("--switch-track-bg","#dcdfe6")},function(e){return Zi("--switch-track-radius","10px")},function(e){return Zi("--switch-transition","0.3s")},function(e){return e.$disabled?"not-allowed":"pointer"},function(e){return e.$disabled?.4:1},Zi("--switch-track-active-bg","#409eff"),function(e){var n=e.$size,t=e.$hasChildren,i=e.$width;return i?"\n width: ".concat(i,"px;\n min-width: ").concat(i,"px;\n height: ").concat("small"===n?Zi("--switch-small-height","16px"):Zi("--switch-default-height","22px"),";\n "):"small"===n?"\n width: ".concat(t?"auto":Zi("--switch-small-width","28px"),";\n min-width: ").concat(Zi("--switch-small-width","28px"),";\n height: ").concat(Zi("--switch-small-height","16px"),";\n "):"\n width: ".concat(t?"auto":Zi("--switch-default-width","44px"),";\n min-width: ").concat(Zi("--switch-default-width","44px"),";\n height: ").concat(Zi("--switch-default-height","22px"),";\n ")},function(e){return e.$checked&&"\n background-color: ".concat(Zi("--switch-track-active-bg","#409eff"),";\n ")},function(e){return e.$loading&&"\n cursor: wait;\n "},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),Ji=h.default.div(si||(si=C(["\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n background-color: ",";\n border-radius: ",";\n box-shadow: ",";\n transition: left 0.3s ease;\n z-index: 2;\n\n &.switch-thumb {\n /* 外部可通过 .switch-thumb 选择器覆盖样式 */\n }\n\n &.switch-thumb-checked {\n /* 选中状态下的样式 */\n }\n\n ","\n\n ","\n\n ","\n"],["\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n background-color: ",";\n border-radius: ",";\n box-shadow: ",";\n transition: left 0.3s ease;\n z-index: 2;\n\n &.switch-thumb {\n /* 外部可通过 .switch-thumb 选择器覆盖样式 */\n }\n\n &.switch-thumb-checked {\n /* 选中状态下的样式 */\n }\n\n ","\n\n ","\n\n ","\n"])),function(e){return Zi("--switch-thumb-bg","#fff")},function(e){return Zi("--switch-thumb-radius","50%")},function(e){return Zi("--switch-thumb-shadow","0 2px 4px rgba(0, 0, 0, 0.2)")},function(e){var n=e.$size,t=e.$checked,i=e.$width,r="small"===n?12:18;if(i){var o="".concat(t?i-r-2:2,"px");return"\n width: ".concat(r,"px;\n height: ").concat(r,"px;\n left: ").concat(o,";\n ")}if("small"===n){var a=t?"14px":"2px";return"\n width: ".concat(r,"px;\n height: ").concat(r,"px;\n left: ").concat(a,";\n ")}var s=t?"24px":"2px";return"\n width: ".concat(r,"px;\n height: ").concat(r,"px;\n left: ").concat(s,";\n ")},function(e){return e.$loading&&"\n animation: switch-thumb-spin 1s linear infinite;\n "},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),Qi=h.default.div(li||(li=C(["\n position: absolute;\n top: 50%;\n margin-top: -6px; /* 12px 高度的一半,实现垂直居中 */\n width: ",";\n height: ",";\n z-index: 3;\n display: flex;\n align-items: center;\n justify-content: center;\n\n &.switch-loading-icon {\n /* 外部可通过 .switch-loading-icon 选择器覆盖样式 */\n }\n\n /* SVG 旋转动画 - 以中心点旋转 */\n & > svg {\n width: 100%;\n height: 100%;\n animation: switch-spin 1s linear infinite;\n transform-origin: center center;\n display: block;\n }\n\n ","\n\n ","\n"],["\n position: absolute;\n top: 50%;\n margin-top: -6px; /* 12px 高度的一半,实现垂直居中 */\n width: ",";\n height: ",";\n z-index: 3;\n display: flex;\n align-items: center;\n justify-content: center;\n\n &.switch-loading-icon {\n /* 外部可通过 .switch-loading-icon 选择器覆盖样式 */\n }\n\n /* SVG 旋转动画 - 以中心点旋转 */\n & > svg {\n width: 100%;\n height: 100%;\n animation: switch-spin 1s linear infinite;\n transform-origin: center center;\n display: block;\n }\n\n ","\n\n ","\n"])),function(e){return Zi("--switch-loading-size","12px")},function(e){return Zi("--switch-loading-size","12px")},function(e){var n=e.$size,t=e.$checked,i=e.$width,r="small"===n?12:18;return i?"\n left: ".concat((t?i-r-2:2)+(r-12)/2,"px;\n "):"small"===n?"\n left: ".concat((t?14:2)+(r-12)/2,"px;\n "):"\n left: ".concat((t?24:2)+(r-12)/2,"px;\n ")},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),er=h.default.span(ci||(ci=C(["\n position: absolute;\n top: 0;\n bottom: 0;\n left: ",";\n display: flex;\n align-items: center;\n justify-content: flex-start;\n font-size: 12px;\n color: #fff;\n white-space: nowrap;\n user-select: none;\n z-index: 1;\n padding-right: ",";\n\n &.switch-checked-inner {\n /* 外部可通过 .switch-checked-inner 选择器覆盖样式 */\n }\n\n ","\n"],["\n position: absolute;\n top: 0;\n bottom: 0;\n left: ",";\n display: flex;\n align-items: center;\n justify-content: flex-start;\n font-size: 12px;\n color: #fff;\n white-space: nowrap;\n user-select: none;\n z-index: 1;\n padding-right: ",";\n\n &.switch-checked-inner {\n /* 外部可通过 .switch-checked-inner 选择器覆盖样式 */\n }\n\n ","\n"])),function(e){return"small"===e.$size?"4px":"6px"},function(e){return"small"===e.$size?"14px":"22px"},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),nr=h.default.span(di||(di=C(["\n position: absolute;\n top: 0;\n bottom: 0;\n right: ",";\n display: flex;\n align-items: center;\n justify-content: flex-end;\n font-size: 12px;\n color: #fff;\n white-space: nowrap;\n user-select: none;\n z-index: 1;\n padding-left: ",";\n\n &.switch-unchecked-inner {\n /* 外部可通过 .switch-unchecked-inner 选择器覆盖样式 */\n }\n\n ","\n"],["\n position: absolute;\n top: 0;\n bottom: 0;\n right: ",";\n display: flex;\n align-items: center;\n justify-content: flex-end;\n font-size: 12px;\n color: #fff;\n white-space: nowrap;\n user-select: none;\n z-index: 1;\n padding-left: ",";\n\n &.switch-unchecked-inner {\n /* 外部可通过 .switch-unchecked-inner 选择器覆盖样式 */\n }\n\n ","\n"])),function(e){return"small"===e.$size?"4px":"6px"},function(e){return"small"===e.$size?"14px":"22px"},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),tr=function(t){var i=t.checked,r=t.defaultChecked,o=void 0!==r&&r,a=t.disabled,s=void 0!==a&&a,l=t.loading,c=void 0!==l&&l,d=t.size,u=void 0===d?"default":d,p=t.width,h=t.checkedChildren,f=t.unCheckedChildren,g=t.styles,v=t.onChange,_=t.label,x=t.labelGap,C=void 0===x?8:x,E=t.labelClassName,O=void 0===E?"":E,T=t.labelStyle,b=void 0!==i,N=n.useState(o),A=N[0],y=N[1],S=b?i:A,L=void 0!==h||void 0!==f;n.useEffect(function(){!function(){if("undefined"!=typeof document&&!document.getElementById("switch-styles")){var e=document.createElement("style");e.id="switch-styles",e.textContent="\n @keyframes switch-spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n }\n @keyframes switch-thumb-spin {\n from { transform: translateY(-50%) rotate(0deg); }\n to { transform: translateY(-50%) rotate(360deg); }\n }\n ",document.head.appendChild(e)}}()},[]);return e.jsx(Xi,{className:"switch-wrapper",$styles:null==g?void 0:g.wrapper,children:e.jsxs("div",{className:"switch-label-wrapper",style:{display:"flex",alignItems:"center"},children:[_&&e.jsx("div",{className:"switch-label ".concat(O),style:m({marginRight:"number"==typeof C?"".concat(C,"px"):C},T),children:_}),e.jsxs(qi,{className:"switch-track".concat(S?" switch-track-checked":"").concat(s?" switch-track-disabled":"").concat(c?" switch-track-loading":""),$checked:S,$disabled:s,$size:u,$loading:c,$hasChildren:L,$width:p,$styles:null==g?void 0:g.track,onClick:function(){if(!s&&!c){var e=!S;b||y(e),null==v||v(e)}},children:[c&&e.jsx(Qi,{className:"switch-loading-icon",$checked:S,$size:u,$width:p,$styles:null==g?void 0:g.loading,children:e.jsx("svg",{viewBox:"0 0 24 24",width:"12",height:"12",fill:"#1890ff",children:e.jsx("path",{d:"M12,4V2A10,10 0 0,0 2,12H4A8,8 0 0,1 12,4Z"})})}),!c&&S&&h&&e.jsx(er,{className:"switch-checked-inner",$size:u,$styles:null==g?void 0:g.inner,children:h}),!c&&!S&&f&&e.jsx(nr,{className:"switch-unchecked-inner",$size:u,$styles:null==g?void 0:g.inner,children:f}),e.jsx(Ji,{className:"switch-thumb".concat(S?" switch-thumb-checked":""),$checked:S,$size:u,$loading:c,$hasChildren:L,$width:p,$styles:null==g?void 0:g.thumb})]})]})})},ir=function(n){var t=n.item,i=n.isActive,r=n.isClosable,o=n.onClick,a=n.onClose,s=n.tabRefs,d=l.useSortable({id:t.key,disabled:t.disabled}),u=d.attributes,h=d.listeners,f=d.setNodeRef,g=d.transform,v=d.transition,_=d.isDragging,x={transform:c.CSS.Transform.toString(g),transition:v,opacity:_?.5:1,zIndex:_?1e3:"auto",position:"relative"};return e.jsxs("div",{ref:function(e){f(e),e?s.current.set(t.key,e):s.current.delete(t.key)},className:p.default("idp-tabs-tab",{"idp-tabs-tab--active":i,"idp-tabs-tab--disabled":t.disabled,"idp-tabs-tab--dragging":_}),role:"tab","aria-selected":i,style:x,children:[e.jsxs("div",m({className:"idp-tabs-tab__drag-handle"},u,h,{onClick:o,style:{cursor:t.disabled?"not-allowed":"grab",display:"flex",alignItems:"center",gap:"6px"},children:[t.icon&&e.jsx("span",{className:"idp-tabs-tab__icon",children:t.icon}),e.jsx("span",{className:"idp-tabs-tab__label",children:t.label})]})),r&&!t.disabled&&e.jsx("span",{className:"idp-tabs-tab__close",onClick:function(e){return a(e)},children:e.jsx(k,{type:"close",size:12})})]})},rr=function(t){var i=t.items,r=void 0===i?[]:i,o=t.activeKey,a=t.defaultActiveKey,c=t.onChange,d=t.onClose,h=t.tabsClosable,f=void 0!==h&&h,g=t.tabPlacement,v=void 0===g?"top":g,_=t.type,x=void 0===_?"line":_,C=t.onAdd,E=t.className,O=t.style,T=t.contentClassName,b=t.contentStyle,N=t.draggable,A=void 0!==N&&N,y=t.onDragEnd,S=n.useState(function(){return a}),L=S[0],I=S[1],w=n.useRef(null),M=n.useRef(new Map),R=n.useRef(null),D=n.useState({}),H=D[0],P=D[1],j=n.useState(!1),V=j[0],z=j[1],U=n.useState(!1),B=U[0],F=U[1],G=n.useState(!1),Y=G[0],$=G[1],W=n.useState(!1),K=W[0],Z=W[1],X=n.useRef(!1),q=n.useRef(!0),J=n.useState(!1),Q=J[0],ee=J[1],ne=n.useState(r),te=ne[0],ie=ne[1];n.useEffect(function(){void 0!==o&&I(o)},[o]),n.useEffect(function(){ie(r)},[r]),n.useEffect(function(){var e;if(void 0===o){var n=null===(e=r[0])||void 0===e?void 0:e.key;if(!(!!a&&r.some(function(e){return e.key===a}))||L)if(n)r.some(function(e){return e.key===L})||I(n);else I(void 0);else I(a)}},[r,L,o,a]);var re=void 0!==o?o:L,oe=n.useMemo(function(){return r.find(function(e){return e.key===re})||r[0]},[r,re]),ae=function(e,n){if(void 0===n&&(n=!0),e&&w.current){var t=M.current.get(e),i=w.current;if(t&&i){var r=i.querySelector(".idp-tabs-indicator"),o=q.current;if(r&&o&&(r.style.transition="none"),"top"===v||"bottom"===v){if(P({left:t.offsetLeft,width:t.offsetWidth,top:void 0,height:void 0}),!n){var a=t.offsetLeft,s=a+t.offsetWidth,l=i.scrollLeft,c=i.clientWidth;(a<l||s>l+c)&&t.scrollIntoView({behavior:"smooth",inline:"nearest",block:"nearest"})}}else P({top:t.offsetTop,height:t.offsetHeight,left:void 0,width:void 0});r&&o&&n?requestAnimationFrame(function(){r.style.transition="",q.current=!1}):o&&(q.current=!1)}}},se=u.default.useCallback(function(){if(w.current){var e=w.current,n="top"===v||"bottom"===v;if("card"===x)return z(!1),F(!1),void $(!1);if(n){var t=Math.ceil(e.scrollWidth)>Math.floor(e.clientWidth);if(z(t),t){var i=e.scrollLeft>1;F(i);var r=e.scrollWidth-e.clientWidth,o=e.scrollLeft<r-1;$(o)}else F(!1),$(!1)}else z(!1),F(!1),$(!1)}},[v,x]),le=function(e){if(w.current&&!X.current){var n=w.current,t=n.clientWidth,i=Math.max(200,.6*t);X.current=!0,"left"===e?n.scrollTo({left:n.scrollLeft-i,behavior:"smooth"}):n.scrollTo({left:n.scrollLeft+i,behavior:"smooth"}),setTimeout(function(){X.current=!1,se()},400)}};n.useEffect(function(){re&&(ae(re,!1),se())},[re,r,v,se]),n.useEffect(function(){se();var e=requestAnimationFrame(function(){re&&ae(re,!1),se()});return function(){return cancelAnimationFrame(e)}},[se,re]),n.useEffect(function(){var e,n=function(){re&&ae(re,!1),se()},t=function(){clearTimeout(e),e=setTimeout(function(){se()},100)},i=w.current;return i&&i.addEventListener("scroll",t),window.addEventListener("resize",n),function(){window.removeEventListener("resize",n),i&&i.removeEventListener("scroll",t),clearTimeout(e)}},[se,re]),n.useEffect(function(){var e=function(){if(R.current&&w.current&&"card"===x&&C){var e=w.current,n=R.current,t=e.getBoundingClientRect(),i=n.getBoundingClientRect(),r=t.right-i.right;ee(r<=20)}else ee(!1)};e();var n=function(){e()},t=w.current;return t&&(t.addEventListener("scroll",n),window.addEventListener("resize",n)),function(){t&&t.removeEventListener("scroll",n),window.removeEventListener("resize",n)}},[x,C,r]);var ce=function(e){e.disabled||(void 0===o&&I(e.key),ae(e.key,!0),se(),null==c||c(e.key))},de=function(e,n){e.stopPropagation(),n.disabled||null==d||d(n.key)},ue=function(){null==C||C(),setTimeout(function(){w.current&&requestAnimationFrame(function(){if(w.current&&M.current.size>0){var e=Array.from(M.current.keys());if(e.length>0){var n=e[e.length-1],t=M.current.get(n),i=w.current;if(t&&i&&R.current)if("card"===x){var r=R.current.offsetWidth+4,o=t.offsetLeft+t.offsetWidth,a=i.clientWidth;if(o-i.scrollLeft>a-r){var s=o-a+r;i.scrollTo({left:s,behavior:"smooth"})}}else t.scrollIntoView({behavior:"smooth",inline:"nearest",block:"nearest"})}}})},100)},pe=s.useSensors(s.useSensor(s.PointerSensor,{activationConstraint:{distance:8}})),he=function(e){},fe=function(e){var n=e.active,t=e.over;if(t&&n.id!==t.id){var i=te.findIndex(function(e){return e.key===n.id}),r=te.findIndex(function(e){return e.key===t.id});if(-1!==i&&-1!==r){var o=l.arrayMove(te,i,r);ie(o),null==y||y(o)}}},me=function(){var n="top"===v||"bottom"===v,t="card"===x,i=A?te:r,o=e.jsxs("div",{className:"idp-tabs-nav-wrapper",onMouseEnter:function(){return Z(!0)},onMouseLeave:function(){return Z(!1)},children:[n&&V&&!t&&e.jsx("button",{className:p.default("idp-tabs-nav__button","idp-tabs-nav__button--left",{"idp-tabs-nav__button--disabled":!B,"idp-tabs-nav__button--visible":K}),onClick:function(){return le("left")},disabled:!B,type:"button",children:e.jsx(k,{type:"arrowLeft",size:12})}),e.jsxs("div",{className:"idp-tabs-nav",ref:w,children:[i.map(function(n){return function(n,t,i){return!A||n.disabled||"top"!==v&&"bottom"!==v?e.jsxs("div",{ref:function(e){e?M.current.set(n.key,e):M.current.delete(n.key)},className:p.default("idp-tabs-tab",{"idp-tabs-tab--active":t,"idp-tabs-tab--disabled":n.disabled}),role:"tab","aria-selected":t,onClick:function(){return ce(n)},children:[n.icon&&e.jsx("span",{className:"idp-tabs-tab__icon",children:n.icon}),e.jsx("span",{className:"idp-tabs-tab__label",children:n.label}),i&&!n.disabled&&e.jsx("span",{className:"idp-tabs-tab__close",onClick:function(e){return de(e,n)},children:e.jsx(k,{type:"close",size:12})})]},n.key):e.jsx(ir,{item:n,isActive:t,isClosable:i,onClick:function(){return ce(n)},onClose:function(e){return de(e,n)},tabRefs:M},n.key)}(n,n.key===re,f||n.closable||!1)}),"card"===x&&C&&e.jsx("div",{ref:R,className:p.default("idp-tabs-tab idp-tabs-tab--add",{sticky:!0===Q}),role:"tab",onClick:ue,children:e.jsx(k,{type:"plus",size:16})}),e.jsx("div",{className:"idp-tabs-indicator",style:H})]}),n&&V&&!t&&e.jsx("button",{className:p.default("idp-tabs-nav__button","idp-tabs-nav__button--right",{"idp-tabs-nav__button--disabled":!Y,"idp-tabs-nav__button--visible":K}),onClick:function(){return le("right")},disabled:!Y,type:"button",children:e.jsx(k,{type:"arrowRight",size:12})})]});return!A||t||"top"!==v&&"bottom"!==v?o:e.jsx(s.DndContext,{sensors:pe,collisionDetection:s.closestCenter,onDragStart:he,onDragEnd:fe,children:e.jsx(l.SortableContext,{items:i.map(function(e){return e.key}),strategy:l.horizontalListSortingStrategy,children:o})})},ge=function(){var n=(null==oe?void 0:oe.renderContent)?oe.renderContent():null==oe?void 0:oe.content,t=p.default("idp-tabs-content","idp-tabs-content--".concat(v),T),i=m({},b);return e.jsx("div",{className:t,style:i,children:n})};return e.jsx("div",{className:p.default("idp-tabs","idp-tabs--".concat(v),"idp-tabs--".concat(x),E),style:O,children:"bottom"===v?e.jsxs(e.Fragment,{children:[ge(),me()]}):e.jsxs(e.Fragment,{children:[me(),ge()]})})},or=function(e,n){return"var(".concat(e,", ").concat(n,")")},ar=h.default.div(ui||(ui=C(["\n display: flex;\n align-items: center;\n gap: 8px;\n\n &.transfer-wrapper {\n /* 外部可通过 .transfer-wrapper 选择器覆盖样式 */\n }\n\n ","\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n\n &.transfer-wrapper {\n /* 外部可通过 .transfer-wrapper 选择器覆盖样式 */\n }\n\n ","\n"])),function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),sr=h.default.div(pi||(pi=C(["\n width: ",";\n height: ",";\n border: 1px solid ",";\n border-radius: ",";\n background: ",";\n display: flex;\n flex-direction: column;\n overflow: hidden;\n opacity: ",";\n /* 立体感阴影效果 */\n box-shadow:\n 0 2px 4px rgba(0, 0, 0, 0.04),\n 0 4px 8px rgba(0, 0, 0, 0.06),\n 0 8px 16px rgba(0, 0, 0, 0.04),\n inset 0 1px 0 rgba(255, 255, 255, 0.8);\n transition: box-shadow 0.3s ease, transform 0.3s ease;\n\n &.transfer-list {\n /* 外部可通过 .transfer-list 选择器覆盖样式 */\n }\n\n ","\n"],["\n width: ",";\n height: ",";\n border: 1px solid ",";\n border-radius: ",";\n background: ",";\n display: flex;\n flex-direction: column;\n overflow: hidden;\n opacity: ",";\n /* 立体感阴影效果 */\n box-shadow:\n 0 2px 4px rgba(0, 0, 0, 0.04),\n 0 4px 8px rgba(0, 0, 0, 0.06),\n 0 8px 16px rgba(0, 0, 0, 0.04),\n inset 0 1px 0 rgba(255, 255, 255, 0.8);\n transition: box-shadow 0.3s ease, transform 0.3s ease;\n\n &.transfer-list {\n /* 外部可通过 .transfer-list 选择器覆盖样式 */\n }\n\n ","\n"])),function(e){var n=e.$width;return"number"==typeof n?"".concat(n,"px"):n||or("--transfer-list-width","200px")},function(e){var n=e.$height;return"number"==typeof n?"".concat(n,"px"):n||or("--transfer-height","300px")},or("--transfer-border-color","#d9d9d9"),or("--transfer-border-radius","6px"),or("--transfer-bg","#fff"),function(e){return e.$disabled?.6:1},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),lr=h.default.div(hi||(hi=C(["\n height: ",";\n padding: 0 ",";\n background: ",";\n border-bottom: 1px solid ",";\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-size: ",";\n font-weight: 500;\n color: ",";\n\n &.transfer-list-header {\n /* 外部可通过 .transfer-list-header 选择器覆盖样式 */\n }\n"],["\n height: ",";\n padding: 0 ",";\n background: ",";\n border-bottom: 1px solid ",";\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-size: ",";\n font-weight: 500;\n color: ",";\n\n &.transfer-list-header {\n /* 外部可通过 .transfer-list-header 选择器覆盖样式 */\n }\n"])),or("--transfer-header-height","40px"),or("--transfer-padding","12px"),or("--transfer-header-bg","#fafafa"),or("--transfer-border-color","#d9d9d9"),or("--transfer-header-font-size","14px"),or("--transfer-item-text-color","rgba(0, 0, 0, 0.85)")),cr=h.default.div(fi||(fi=C(["\n display: flex;\n align-items: center;\n gap: 8px;\n\n .transfer-checkbox {\n cursor: pointer;\n }\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n\n .transfer-checkbox {\n cursor: pointer;\n }\n"]))),dr=h.default.span(mi||(mi=C(["\n font-size: 12px;\n color: ",";\n"],["\n font-size: 12px;\n color: ",";\n"])),or("--transfer-description-color","rgba(0, 0, 0, 0.45)")),ur=h.default.div(gi||(gi=C(["\n padding: 8px ",";\n border-bottom: 1px solid ",";\n display: flex;\n align-items: center;\n gap: 8px;\n box-sizing: border-box;\n width: 100%;\n\n &.transfer-search-wrapper {\n /* 外部可通过 .transfer-search-wrapper 选择器覆盖样式 */\n }\n"],["\n padding: 8px ",";\n border-bottom: 1px solid ",";\n display: flex;\n align-items: center;\n gap: 8px;\n box-sizing: border-box;\n width: 100%;\n\n &.transfer-search-wrapper {\n /* 外部可通过 .transfer-search-wrapper 选择器覆盖样式 */\n }\n"])),or("--transfer-padding","12px"),or("--transfer-border-color","#d9d9d9")),pr=h.default.input(vi||(vi=C(["\n flex: 1;\n min-width: 0;\n height: ",";\n padding: ",";\n border: 1px solid ",";\n border-radius: 4px;\n font-size: ",";\n outline: none;\n transition: ",";\n box-sizing: border-box;\n\n &::placeholder {\n color: ",";\n }\n\n &:focus {\n border-color: ",";\n }\n\n &:disabled {\n background: #f5f5f5;\n cursor: not-allowed;\n }\n\n ","\n"],["\n flex: 1;\n min-width: 0;\n height: ",";\n padding: ",";\n border: 1px solid ",";\n border-radius: 4px;\n font-size: ",";\n outline: none;\n transition: ",";\n box-sizing: border-box;\n\n &::placeholder {\n color: ",";\n }\n\n &:focus {\n border-color: ",";\n }\n\n &:disabled {\n background: #f5f5f5;\n cursor: not-allowed;\n }\n\n ","\n"])),or("--transfer-search-height","32px"),or("--transfer-search-padding","0 8px"),or("--transfer-search-border","#d9d9d9"),or("--transfer-font-size","14px"),or("--transfer-transition","all 0.3s"),or("--transfer-search-placeholder-color","rgba(0, 0, 0, 0.45)"),or("--transfer-search-focus-border","#1890ff"),function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),hr=h.default.button(_i||(_i=C(["\n width: 32px;\n min-width: 32px;\n height: ",";\n border: 1px solid ",";\n border-radius: 4px;\n background: ",";\n cursor: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n transition: ",";\n opacity: ",";\n flex-shrink: 0;\n padding: 0;\n box-sizing: border-box;\n\n &:hover:not(:disabled) {\n border-color: ",";\n color: ",";\n }\n\n &:disabled {\n background: #f5f5f5;\n }\n\n /* 搜索图标 */\n .search-icon {\n width: 16px;\n height: 16px;\n }\n"],["\n width: 32px;\n min-width: 32px;\n height: ",";\n border: 1px solid ",";\n border-radius: 4px;\n background: ",";\n cursor: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n transition: ",";\n opacity: ",";\n flex-shrink: 0;\n padding: 0;\n box-sizing: border-box;\n\n &:hover:not(:disabled) {\n border-color: ",";\n color: ",";\n }\n\n &:disabled {\n background: #f5f5f5;\n }\n\n /* 搜索图标 */\n .search-icon {\n width: 16px;\n height: 16px;\n }\n"])),or("--transfer-search-height","32px"),or("--transfer-search-border","#d9d9d9"),or("--transfer-bg","#fff"),function(e){return e.$disabled?"not-allowed":"pointer"},or("--transfer-transition","all 0.3s"),function(e){return e.$disabled?.6:1},or("--transfer-search-focus-border","#1890ff"),or("--transfer-search-focus-border","#1890ff")),fr=h.default.div(xi||(xi=C(["\n flex: 1;\n overflow-y: auto;\n padding: 4px 0;\n\n &.transfer-list-body {\n /* 外部可通过 .transfer-list-body 选择器覆盖样式 */\n }\n\n /* 滚动条样式 - 淡色精致设计 */\n &::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n }\n\n &::-webkit-scrollbar-thumb {\n background: rgba(0, 0, 0, 0.15);\n border-radius: 4px;\n border: 2px solid transparent;\n background-clip: padding-box;\n transition: background 0.2s ease;\n\n &:hover {\n background: rgba(0, 0, 0, 0.25);\n }\n }\n\n &::-webkit-scrollbar-track {\n background: transparent;\n border-radius: 4px;\n }\n\n &::-webkit-scrollbar-corner {\n background: transparent;\n }\n"],["\n flex: 1;\n overflow-y: auto;\n padding: 4px 0;\n\n &.transfer-list-body {\n /* 外部可通过 .transfer-list-body 选择器覆盖样式 */\n }\n\n /* 滚动条样式 - 淡色精致设计 */\n &::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n }\n\n &::-webkit-scrollbar-thumb {\n background: rgba(0, 0, 0, 0.15);\n border-radius: 4px;\n border: 2px solid transparent;\n background-clip: padding-box;\n transition: background 0.2s ease;\n\n &:hover {\n background: rgba(0, 0, 0, 0.25);\n }\n }\n\n &::-webkit-scrollbar-track {\n background: transparent;\n border-radius: 4px;\n }\n\n &::-webkit-scrollbar-corner {\n background: transparent;\n }\n"]))),mr=h.default.div(Ci||(Ci=C(["\n height: ",";\n padding: ",";\n display: flex;\n align-items: center;\n gap: 8px;\n cursor: ",";\n transition: ",";\n font-size: ",";\n color: ",";\n background: ",";\n\n &:hover {\n background: ",";\n }\n\n &.transfer-list-item {\n /* 外部可通过 .transfer-list-item 选择器覆盖样式 */\n }\n\n ","\n"],["\n height: ",";\n padding: ",";\n display: flex;\n align-items: center;\n gap: 8px;\n cursor: ",";\n transition: ",";\n font-size: ",";\n color: ",";\n background: ",";\n\n &:hover {\n background: ",";\n }\n\n &.transfer-list-item {\n /* 外部可通过 .transfer-list-item 选择器覆盖样式 */\n }\n\n ","\n"])),or("--transfer-item-height","32px"),or("--transfer-item-padding","0 12px"),function(e){return e.$disabled?"not-allowed":"pointer"},or("--transfer-transition","all 0.3s"),or("--transfer-item-font-size","14px"),function(e){return e.$disabled?or("--transfer-item-disabled-color","rgba(0, 0, 0, 0.25)"):or("--transfer-item-text-color","rgba(0, 0, 0, 0.85)")},function(e){return e.$selected?or("--transfer-item-selected-bg","#e6f7ff"):"transparent"},function(e){var n=e.$disabled,t=e.$selected;return n?"transparent":t?or("--transfer-item-selected-bg","#e6f7ff"):or("--transfer-item-hover-bg","#f5f5f5")},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),gr=h.default.span(Ei||(Ei=C(["\n width: 16px;\n height: 16px;\n border: 1px solid\n ",";\n border-radius: 2px;\n background: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n transition: all 0.3s;\n\n &::after {\n content: ",";\n font-size: ",";\n color: #fff;\n transform: scale(",");\n transition: all 0.2s;\n line-height: 1;\n font-weight: ",";\n }\n"],["\n width: 16px;\n height: 16px;\n border: 1px solid\n ",";\n border-radius: 2px;\n background: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n transition: all 0.3s;\n\n &::after {\n content: ",";\n font-size: ",";\n color: #fff;\n transform: scale(",");\n transition: all 0.2s;\n line-height: 1;\n font-weight: ",";\n }\n"])),function(e){var n=e.$checked,t=e.$indeterminate;return n||t?"#1890ff":"#d9d9d9"},function(e){var n=e.$checked,t=e.$indeterminate;return n||t?"#1890ff":"#fff"},function(e){var n=e.$checked;return e.$indeterminate?"'−'":n?"'✓'":"''"},function(e){return e.$indeterminate?"14px":"12px"},function(e){var n=e.$checked,t=e.$indeterminate;return n||t?1:0},function(e){return e.$indeterminate?"bold":"normal"}),vr=h.default.span(Oi||(Oi=C(["\n width: 16px;\n height: 16px;\n border: 1px solid ",";\n border-radius: 2px;\n background: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n transition: all 0.3s;\n\n &::after {\n content: '✓';\n font-size: 12px;\n color: #fff;\n transform: scale(",");\n transition: all 0.2s;\n line-height: 1;\n }\n"],["\n width: 16px;\n height: 16px;\n border: 1px solid ",";\n border-radius: 2px;\n background: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n transition: all 0.3s;\n\n &::after {\n content: '✓';\n font-size: 12px;\n color: #fff;\n transform: scale(",");\n transition: all 0.2s;\n line-height: 1;\n }\n"])),function(e){return e.$checked?"#1890ff":"#d9d9d9"},function(e){return e.$checked?"#1890ff":"#fff"},function(e){return e.$checked?1:0}),_r=h.default.span(Ti||(Ti=C(["\n flex: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"],["\n flex: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"]))),xr=h.default.div(bi||(bi=C(["\n padding: 8px ",";\n border-top: 1px solid ",";\n font-size: ",";\n color: ",";\n min-height: 20px;\n display: flex;\n align-items: center;\n\n &.transfer-list-footer {\n /* 外部可通过 .transfer-list-footer 选择器覆盖样式 */\n }\n"],["\n padding: 8px ",";\n border-top: 1px solid ",";\n font-size: ",";\n color: ",";\n min-height: 20px;\n display: flex;\n align-items: center;\n\n &.transfer-list-footer {\n /* 外部可通过 .transfer-list-footer 选择器覆盖样式 */\n }\n"])),or("--transfer-padding","12px"),or("--transfer-border-color","#d9d9d9"),or("--transfer-description-font-size","12px"),or("--transfer-description-color","rgba(0, 0, 0, 0.45)")),Cr=h.default.div(Ni||(Ni=C(["\n display: flex;\n flex-direction: column;\n gap: 8px;\n width: ",";\n align-items: center;\n\n &.transfer-operation {\n /* 外部可通过 .transfer-operation 选择器覆盖样式 */\n }\n\n ","\n"],["\n display: flex;\n flex-direction: column;\n gap: 8px;\n width: ",";\n align-items: center;\n\n &.transfer-operation {\n /* 外部可通过 .transfer-operation 选择器覆盖样式 */\n }\n\n ","\n"])),or("--transfer-operation-width","40px"),function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),Er=h.default.button(Ai||(Ai=C(["\n width: 32px;\n height: 28px;\n border: 1px solid ",";\n border-radius: 4px;\n background: ",";\n cursor: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n transition: ",";\n opacity: ",";\n\n &:hover:not(:disabled) {\n background: ",";\n border-color: ",";\n color: #1890ff;\n }\n\n &:disabled {\n background: ",";\n color: ",";\n }\n\n /* 箭头图标 - 使用字符 */\n &::before {\n content: ",";\n font-size: 14px;\n font-weight: 600;\n line-height: 1;\n color: inherit;\n }\n"],["\n width: 32px;\n height: 28px;\n border: 1px solid ",";\n border-radius: 4px;\n background: ",";\n cursor: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n transition: ",";\n opacity: ",";\n\n &:hover:not(:disabled) {\n background: ",";\n border-color: ",";\n color: #1890ff;\n }\n\n &:disabled {\n background: ",";\n color: ",";\n }\n\n /* 箭头图标 - 使用字符 */\n &::before {\n content: ",";\n font-size: 14px;\n font-weight: 600;\n line-height: 1;\n color: inherit;\n }\n"])),or("--transfer-operation-border","#d9d9d9"),or("--transfer-operation-bg","#f5f5f5"),function(e){return e.$disabled?"not-allowed":"pointer"},or("--transfer-transition","all 0.3s"),function(e){return e.$disabled?.6:1},or("--transfer-operation-hover-bg","#e6f7ff"),or("--transfer-operation-hover-border","#1890ff"),or("--transfer-operation-disabled-bg","#f5f5f5"),or("--transfer-operation-disabled-color","rgba(0, 0, 0, 0.25)"),function(e){return"right"===e.$direction?"'>'":"'<'"}),Or=h.default.div(yi||(yi=C(["\n padding: 32px 0;\n text-align: center;\n color: ",";\n font-size: ",";\n\n &.transfer-empty {\n /* 外部可通过 .transfer-empty 选择器覆盖样式 */\n }\n"],["\n padding: 32px 0;\n text-align: center;\n color: ",";\n font-size: ",";\n\n &.transfer-empty {\n /* 外部可通过 .transfer-empty 选择器覆盖样式 */\n }\n"])),or("--transfer-description-color","rgba(0, 0, 0, 0.45)"),or("--transfer-font-size","14px")),Tr=h.default.div(Si||(Si=C(["\n flex: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 32px 0;\n\n &.transfer-loading {\n /* 外部可通过 .transfer-loading 选择器覆盖样式 */\n }\n"],["\n flex: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 32px 0;\n\n &.transfer-loading {\n /* 外部可通过 .transfer-loading 选择器覆盖样式 */\n }\n"]))),br=h.default.div(Li||(Li=C(["\n width: 32px;\n height: 32px;\n border: 3px solid ",";\n border-top-color: ",";\n border-radius: 50%;\n animation: transfer-spin 0.8s linear infinite;\n\n @keyframes transfer-spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n }\n"],["\n width: 32px;\n height: 32px;\n border: 3px solid ",";\n border-top-color: ",";\n border-radius: 50%;\n animation: transfer-spin 0.8s linear infinite;\n\n @keyframes transfer-spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n }\n"])),or("--transfer-loading-track-color","#f0f0f0"),or("--transfer-loading-spinner-color","#1890ff")),Nr=function(e,n,t){return n?e[n]:e[t]},Ar=function(e,n){return Nr(e,null==n?void 0:n.key,"key")},yr=function(e,n){return Nr(e,null==n?void 0:n.title,"title")},Sr=function(t){var i=t.dataSource,r=t.fieldNames,o=t.selectedKeys,a=t.showSearch,s=t.disabled,l=t.title,c=t.description,d=t.searchPlaceholder,u=void 0===d?"请输入搜索内容":d,p=t.filterOption,h=t.styles,f=t.listHeight,m=t.listWidth,g=t.header,v=t.search,_=t.body,C=t.onSelectChange,E=t.onSearch,O=t.render,T=t.footer,b=t.direction,N=t.rowClassName,A=t.loading,y=t.loadingRender,S=t.loadingDelay,L=t.sourceSelectedKeys,I=t.targetSelectedKeys,w=n.useState(""),M=w[0],R=w[1],D=n.useState(A),H=D[0],P=D[1],j=n.useRef(null);n.useEffect(function(){return j.current&&(clearTimeout(j.current),j.current=null),A&&S&&S>0?(P(!0),j.current=setTimeout(function(){P(!1)},S)):P(A),function(){j.current&&clearTimeout(j.current)}},[A,S]);var V=n.useMemo(function(){return M?p?i.filter(function(e){return p(M,e)}):i.filter(function(e){var n=yr(e,r),t=null!=n?String(n):"";if(t)return t.toLowerCase().includes(M.toLowerCase());var i=M.toLowerCase();return Object.keys(e).some(function(n){var t=e[n];return"key"!==n&&"disabled"!==n&&(null!=t&&String(t).toLowerCase().includes(i))})}):i},[i,M,p,r]),z=n.useMemo(function(){var e=V.filter(function(e){return!e.disabled});return 0!==e.length&&e.every(function(e){return o.includes(Ar(e,r))})},[V,o,r]),U=n.useMemo(function(){var e=V.filter(function(e){return!e.disabled});if(0===e.length)return!1;var n=e.filter(function(e){return o.includes(Ar(e,r))}).length;return n>0&&n<e.length},[V,o,r]),B=n.useCallback(function(){if(!s){var e=V.filter(function(e){return!e.disabled}).map(function(e){return Ar(e,r)});if(z){var n=o.filter(function(n){return!e.includes(n)});"left"===b?C(n,I):C(L,n)}else{var t=x(x([],o,!0),e,!0);n=t.filter(function(e,n){return t.indexOf(e)===n});"left"===b?C(n,I):C(L,n)}}},[s,V,o,z,C,r,b,L,I]),F=n.useCallback(function(e){if(!s&&!e.disabled){var n,t=Ar(e,r),i=o.indexOf(t);n=i>-1?x(x([],o.slice(0,i),!0),o.slice(i+1),!0):x(x([],o,!0),[t],!1),"left"===b?C(n,I):C(L,n)}},[s,o,C,r,b,L,I]),G=n.useCallback(function(e){var n=e.target.value;R(n)},[]),Y=n.useCallback(function(){null==E||E(M)},[E,M]),$=n.useCallback(function(e){"Enter"===e.key&&Y()},[Y]),W=n.useCallback(function(){Y()},[Y]),K=n.useMemo(function(){var e=o.length,n=i.length;return"".concat(e,"/").concat(n)},[o,i]);return e.jsxs(sr,{className:"transfer-list",$disabled:s,$styles:null==h?void 0:h.list,$height:f,$width:m,children:[function(){if(g){var n=g({direction:b,dataSource:i,selectedKeys:o,sourceSelectedKeys:L,targetSelectedKeys:I});return null===n?null:n}return e.jsxs(lr,{className:"transfer-list-header",children:[e.jsxs(cr,{children:[e.jsx(gr,{className:"transfer-checkbox",$checked:z,$indeterminate:U,$disabled:s||0===V.length,onClick:B,style:{opacity:s||0===V.length?.6:1}}),e.jsx("span",{children:l})]}),e.jsx(dr,{children:K})]})}(),a&&null!==g&&e.jsx(ur,{className:"transfer-search-wrapper",children:v?v({direction:b,value:M,onChange:function(e){R(e),null==E||E(e)},disabled:s}):e.jsxs(e.Fragment,{children:[e.jsx(pr,{type:"text",placeholder:u,value:M,onChange:G,onKeyDown:$,disabled:s,$styles:null==h?void 0:h.search}),e.jsx(hr,{onClick:W,disabled:s,$disabled:s,"aria-label":"搜索",children:e.jsx(k,{type:"search",size:"small",color:s?"#bfbfbf":"#1890ff"})})]})}),_?_({direction:b,dataSource:V,selectedKeys:o,sourceSelectedKeys:L,targetSelectedKeys:I,onSelectChange:C}):H?e.jsx(Tr,{className:"transfer-loading",children:y?y():e.jsx(br,{className:"transfer-loading-spinner"})}):e.jsx(fr,{className:"transfer-list-body",children:V.length>0?V.map(function(n){var t=Ar(n,r),i=o.includes(t),a=(null==N?void 0:N(n))||"";return e.jsxs(mr,{className:"transfer-list-item ".concat(a),$selected:i,$disabled:s||n.disabled,$styles:null==h?void 0:h.item,onClick:function(){return F(n)},children:[e.jsx(vr,{$checked:i}),e.jsx(_r,{children:O?O(n):yr(n,r)})]},t)}):e.jsx(Or,{className:"transfer-empty",children:"暂无数据"})}),(c||T)&&e.jsx(xr,{className:"transfer-list-footer",children:T?T({direction:b}):c})]})},Lr=function(n){var t=n.moveToRightDisabled,i=n.moveToLeftDisabled,r=n.onMoveToRight,o=n.onMoveToLeft,a=n.style;return e.jsxs(Cr,{className:"transfer-operation",$styles:a,children:[e.jsx(Er,{type:"button",$direction:"right",$disabled:t,onClick:r,disabled:t,"aria-label":"移动到右侧"}),e.jsx(Er,{type:"button",$direction:"left",$disabled:i,onClick:o,disabled:i,"aria-label":"移动到左侧"})]})},Ir=function(t){var i=t.dataSource,r=t.fieldNames,o=t.targetKeys,a=t.defaultTargetKeys,s=void 0===a?[]:a,l=t.selectedKeys,c=t.defaultSelectedKeys,d=void 0===c?[]:c,u=t.showSearch,p=void 0!==u&&u,h=t.disabled,f=void 0!==h&&h,m=t.leftTitle,g=void 0===m?"源列表":m,v=t.rightTitle,_=void 0===v?"目标列表":v,C=t.leftDescription,E=t.rightDescription,O=t.filterOption,T=t.styles,b=t.listHeight,N=t.listWidth,A=t.header,y=t.search,S=t.body,L=t.onSelectChange,I=t.onChange,w=t.onSearch,M=t.render,R=t.footer,D=t.rowClassName,H=t.mode,k=void 0===H?"transfer":H,P=t.loading,j=void 0!==P&&P,V=t.loadingRender,z=t.loadingDelay,U=void 0!==o,B=void 0!==l,F=n.useState(s),G=F[0],Y=F[1],$=n.useState(d),W=$[0],K=$[1],Z=n.useState([]),X=Z[0],q=Z[1],J=U?o:G,Q=B?l.filter(function(e){return!J.includes(e)}):W,ee=B?l.filter(function(e){return J.includes(e)}):X,ne=n.useMemo(function(){return i.filter(function(e){return!J.includes(Ar(e,r))})},[i,J,r]),te=n.useMemo(function(){return i.filter(function(e){return J.includes(Ar(e,r))})},[i,J,r]),ie=n.useCallback(function(e,n){B||K(e),null==L||L(e,n)},[B,L]),re=n.useCallback(function(e,n){B||q(n),null==L||L(e,n)},[B,L]),oe=n.useCallback(function(){if(0!==Q.length){var e=x(x([],J,!0),Q,!0),n=x([],Q,!0);U||(Y(e),K([])),null==I||I(e,"right",n)}},[Q,J,U,I]),ae=n.useCallback(function(){if(0!==ee.length){var e=J.filter(function(e){return!ee.includes(e)}),n=x([],ee,!0);U||(Y(e),q([])),null==I||I(e,"left",n)}},[ee,J,U,I]),se=n.useCallback(function(e){null==w||w("left",e)},[w]),le=n.useCallback(function(e){null==w||w("right",e)},[w]),ce=f||0===Q.length,de=f||0===ee.length,ue=n.useCallback(function(e,n){var t=e;U||Y(t),null==I||I(t,"right",t),null==L||L([],t)},[U,I,L]),pe=n.useMemo(function(){return i},[i]),he=n.useMemo(function(){return B?l.filter(function(e){return J.includes(e)}):J},[B,l,J]);return e.jsx(ar,{className:"transfer-wrapper",$styles:null==T?void 0:T.wrapper,children:"single"===k?e.jsx(Sr,{direction:"left",dataSource:pe,fieldNames:r,selectedKeys:he,showSearch:p,disabled:f,title:g,description:C,filterOption:O,styles:T,listHeight:b,listWidth:N,header:A,search:y,body:S,onSelectChange:ue,onSearch:se,render:M,footer:R,rowClassName:D,loading:j,loadingRender:V,loadingDelay:z,sourceSelectedKeys:[],targetSelectedKeys:he}):e.jsxs(e.Fragment,{children:[e.jsx(Sr,{direction:"left",dataSource:ne,fieldNames:r,selectedKeys:Q,showSearch:p,disabled:f,title:g,description:C,filterOption:O,styles:T,listHeight:b,listWidth:N,header:A,search:y,body:S,onSelectChange:ie,onSearch:se,render:M,footer:R,rowClassName:D,loading:j,loadingRender:V,loadingDelay:z,sourceSelectedKeys:Q,targetSelectedKeys:ee}),e.jsx(Lr,{moveToRightDisabled:ce,moveToLeftDisabled:de,onMoveToRight:oe,onMoveToLeft:ae,style:null==T?void 0:T.operation}),e.jsx(Sr,{direction:"right",dataSource:te,fieldNames:r,selectedKeys:ee,showSearch:p,disabled:f,title:_,description:E,filterOption:O,styles:T,listHeight:b,listWidth:N,header:A,search:y,body:S,onSelectChange:re,onSearch:le,render:M,footer:R,rowClassName:D,loading:j,loadingRender:V,loadingDelay:z,sourceSelectedKeys:Q,targetSelectedKeys:ee})]})})},wr=h.default.label(Ii||(Ii=C(["\n /* 基础样式 */\n background-color: #f5f5f5;\n padding: 8px;\n padding-right: var(--label-padding-right, 8px);\n border-radius: 4px;\n position: relative;\n display: inline-flex;\n align-items: center;\n \n /* 指示器样式 */\n &::after {\n content: ' ';\n position: absolute;\n top: 50%;\n left: 0;\n transform: translateY(-50%);\n width: var(--label-indicator-width, 3px);\n height: var(--label-indicator-height, 100%);\n background-color: var(--label-indicator-color, blue);\n border-radius: 2px;\n }\n"],["\n /* 基础样式 */\n background-color: #f5f5f5;\n padding: 8px;\n padding-right: var(--label-padding-right, 8px);\n border-radius: 4px;\n position: relative;\n display: inline-flex;\n align-items: center;\n \n /* 指示器样式 */\n &::after {\n content: ' ';\n position: absolute;\n top: 50%;\n left: 0;\n transform: translateY(-50%);\n width: var(--label-indicator-width, 3px);\n height: var(--label-indicator-height, 100%);\n background-color: var(--label-indicator-color, blue);\n border-radius: 2px;\n }\n"]))),Mr=function(n){var t=n.title,i=n.indicatorColor,r=void 0===i?"blue":i,o=n.indicatorWidth,a=void 0===o?"3px":o,s=n.indicatorHeight,l=void 0===s?"100%":s,c=n.paddingRight,d=void 0===c?"8px":c,u=n.style,p=function(e){return void 0===e?"":"number"==typeof e?"".concat(e,"px"):e},h={"--label-indicator-color":r,"--label-indicator-width":p(a),"--label-indicator-height":p(l),"--label-padding-right":p(d)},f=m(m({},h),u);return e.jsx(wr,{className:"label-wrapper",style:f,children:t||null})},Rr=function(e,n){return"var(".concat(e,", ").concat(n,")")},Dr=i.keyframes(wi||(wi=C(["\n from {\n opacity: 0;\n max-height: 0;\n padding-top: 0;\n padding-bottom: 0;\n }\n to {\n opacity: 1;\n max-height: 100px;\n padding-bottom: 4px;\n }\n"],["\n from {\n opacity: 0;\n max-height: 0;\n padding-top: 0;\n padding-bottom: 0;\n }\n to {\n opacity: 1;\n max-height: 100px;\n padding-bottom: 4px;\n }\n"]))),Hr=h.default.form(Mi||(Mi=C(["\n width: 100%;\n\n &.form-wrapper {\n /* 外部可通过 .form-wrapper 选择器覆盖样式 */\n }\n\n ","\n"],["\n width: 100%;\n\n &.form-wrapper {\n /* 外部可通过 .form-wrapper 选择器覆盖样式 */\n }\n\n ","\n"])),function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),kr=h.default.div(Ri||(Ri=C(["\n margin-bottom: ",";\n\n &.form-item {\n /* 外部可通过 .form-item 选择器覆盖样式 */\n }\n\n ","\n\n ","\n\n ","\n"],["\n margin-bottom: ",";\n\n &.form-item {\n /* 外部可通过 .form-item 选择器覆盖样式 */\n }\n\n ","\n\n ","\n\n ","\n"])),Rr("--form-item-margin-bottom","24px"),function(e){return"horizontal"===e.$layout&&"\n display: flex;\n align-items: center;\n\n & .form-label {\n margin-bottom: 0;\n }\n "},function(e){return"inline"===e.$layout&&"\n display: inline-flex;\n align-items: center;\n margin-right: ".concat(Rr("--form-inline-item-margin-right","24px"),";\n margin-bottom: 0;\n\n & .form-label {\n margin-bottom: 0;\n }\n ")},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),Pr=h.default.label(Di||(Di=C(["\n display: block;\n font-size: ",";\n color: ",";\n margin-bottom: ",";\n white-space: nowrap;\n text-align: ",";\n\n &.form-label {\n /* 外部可通过 .form-label 选择器覆盖样式 */\n }\n\n &::after {\n content: ",";\n margin: 0 8px 0 2px;\n }\n\n &::before {\n content: ",";\n color: ",";\n margin-right: 4px;\n display: inline-block;\n vertical-align: middle;\n }\n\n ","\n"],["\n display: block;\n font-size: ",";\n color: ",";\n margin-bottom: ",";\n white-space: nowrap;\n text-align: ",";\n\n &.form-label {\n /* 外部可通过 .form-label 选择器覆盖样式 */\n }\n\n &::after {\n content: ",";\n margin: 0 8px 0 2px;\n }\n\n &::before {\n content: ",";\n color: ",";\n margin-right: 4px;\n display: inline-block;\n vertical-align: middle;\n }\n\n ","\n"])),Rr("--form-label-font-size","14px"),Rr("--form-label-color","#333"),Rr("--form-label-margin-bottom","8px"),function(e){return e.$labelAlign||"end"},function(e){return e.$colon?'":"':""},function(e){return e.$required?'"*"':'""'},Rr("--form-label-required-color","#f5222d"),function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),jr=h.default.div(Hi||(Hi=C(["\n width: 100%;\n position: relative;\n\n &.form-control {\n /* 外部可通过 .form-control 选择器覆盖样式 */\n }\n\n ","\n"],["\n width: 100%;\n position: relative;\n\n &.form-control {\n /* 外部可通过 .form-control 选择器覆盖样式 */\n }\n\n ","\n"])),function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),Vr=h.default.div(ki||(ki=C(["\n font-size: ",";\n color: ",";\n line-height: 1.5;\n position: absolute;\n top: 100%;\n left: 0;\n width: 100%;\n opacity: 0;\n max-height: 0;\n overflow: hidden;\n z-index: 10;\n\n &.form-error {\n /* 外部可通过 .form-error 选择器覆盖样式 */\n }\n\n &.form-error-visible {\n animation: "," 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;\n }\n\n ","\n"],["\n font-size: ",";\n color: ",";\n line-height: 1.5;\n position: absolute;\n top: 100%;\n left: 0;\n width: 100%;\n opacity: 0;\n max-height: 0;\n overflow: hidden;\n z-index: 10;\n\n &.form-error {\n /* 外部可通过 .form-error 选择器覆盖样式 */\n }\n\n &.form-error-visible {\n animation: "," 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;\n }\n\n ","\n"])),Rr("--form-error-font-size","12px"),Rr("--form-error-color","#f5222d"),Dr,function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),zr=h.default.div(Pi||(Pi=C(["\n font-size: ",";\n color: ",";\n line-height: 1.5;\n position: absolute;\n\n &.form-help {\n /* 外部可通过 .form-help 选择器覆盖样式 */\n }\n\n ","\n"],["\n font-size: ",";\n color: ",";\n line-height: 1.5;\n position: absolute;\n\n &.form-help {\n /* 外部可通过 .form-help 选择器覆盖样式 */\n }\n\n ","\n"])),Rr("--form-help-font-size","12px"),Rr("--form-help-color","#00000073"),function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),Ur=n.createContext(null),Br=function(t){var i=t.children,r=t.className,o=void 0===r?"":r,a=t.style,s=t.layout,l=void 0===s?"horizontal":s,c=t.labelSpan,d=t.wrapperSpan,p=t.initialValues,h=void 0===p?{}:p,f=t.onFinish,g=t.onFinishFailed,x=t.colon,C=void 0===x||x,E=t.requiredMark,O=void 0===E||E,T=t.styles,b=t.formRef,N=t.form,A=n.useState(h),y=A[0],S=A[1],L=n.useState({}),I=L[0],w=L[1],M=n.useRef(null),R=n.useRef(new Map),D=n.useRef(null),H=n.useCallback(function(e,n){S(function(t){var i;return m(m({},t),((i={})[e]=n,i))}),I[e]&&w(function(n){var t=m({},n);return delete t[e],t})},[I]),k=n.useCallback(function(e){return y[e]},[y]),P=n.useCallback(function(e){S(function(n){return m(m({},n),e)}),Object.keys(e).forEach(function(e){I[e]&&w(function(n){var t=m({},n);return delete t[e],t})})},[I]),j=n.useCallback(function(e){return v(void 0,void 0,void 0,function(){var n,t,i,r,o,a,s,l;return _(this,function(c){switch(c.label){case 0:if(!(n=R.current.get(e)))return[2];if(t=n.rules,i=y[e],!t||0===t.length)return[2];r=function(n){var t,r,o,a,s,l,c,d,u;return _(this,function(p){switch(p.label){case 0:if(n.required&&(null==i||""===i))return t=n.message||"".concat(e," is required"),w(function(n){var i;return m(m({},n),((i={})[e]=t,i))}),[2,{value:t}];if(n.pattern&&!n.pattern.test(i))return r=n.message||"".concat(e," format is invalid"),w(function(n){var t;return m(m({},n),((t={})[e]=r,t))}),[2,{value:r}];if(n.type){switch(o=!0,n.type){case"email":o=/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(i);break;case"url":o=/^https?:\/\/.+$/.test(i);break;case"number":o=!isNaN(Number(i));break;case"integer":o=Number.isInteger(Number(i));break;case"float":o=!isNaN(parseFloat(i))&&isFinite(i);break;case"string":o="string"==typeof i;break;case"boolean":o="boolean"==typeof i;break;case"array":o=Array.isArray(i);break;case"object":o="object"==typeof i&&null!==i&&!Array.isArray(i)}if(!o)return a=n.message||"".concat(e," must be a ").concat(n.type),w(function(n){var t;return m(m({},n),((t={})[e]=a,t))}),[2,{value:a}]}if(void 0!==n.min&&i.length<n.min)return s=n.message||"".concat(e," must be at least ").concat(n.min," characters"),w(function(n){var t;return m(m({},n),((t={})[e]=s,t))}),[2,{value:s}];if(void 0!==n.max&&i.length>n.max)return l=n.message||"".concat(e," must be at most ").concat(n.max," characters"),w(function(n){var t;return m(m({},n),((t={})[e]=l,t))}),[2,{value:l}];if(void 0!==n.len&&i.length!==n.len)return c=n.message||"".concat(e," must be exactly ").concat(n.len," characters"),w(function(n){var t;return m(m({},n),((t={})[e]=c,t))}),[2,{value:c}];if(!n.validator)return[3,4];p.label=1;case 1:return p.trys.push([1,3,,4]),[4,n.validator(n,i)];case 2:return p.sent(),[3,4];case 3:return d=p.sent(),u=d instanceof Error?d.message:n.message||"".concat(e," validation failed"),w(function(n){var t;return m(m({},n),((t={})[e]=u,t))}),[2,{value:u}];case 4:return[2]}})},o=0,a=t,c.label=1;case 1:return o<a.length?(s=a[o],[5,r(s)]):[3,4];case 2:if("object"==typeof(l=c.sent()))return[2,l.value];c.label=3;case 3:return o++,[3,1];case 4:return w(function(n){var t=m({},n);return delete t[e],t}),[2,null]}})})},[y]),V=n.useCallback(function(e){return v(void 0,void 0,void 0,function(){var n,t;return _(this,function(i){switch(i.label){case 0:return n=e||Array.from(R.current.keys()),[4,Promise.all(n.map(function(e){return j(e)}))];case 1:if(t=i.sent(),t.some(function(e){return null!==e}))throw new Error("Validation failed");return[2,y]}})})},[j,y]),z=n.useCallback(function(e){if(e){var n=m({},y);e.forEach(function(e){n[e]=h[e]||void 0}),S(n)}else S(h);w({})},[y,h]),U={getFieldValue:k,getFieldsValue:function(e){if(!e)return y;var n={};return e.forEach(function(e){n[e]=y[e]}),n},setFieldValue:H,setFieldsValue:P,setFields:function(e){var n=m({},y),t=m({},I);e.forEach(function(e){void 0!==e.value&&(n[e.name]=e.value),e.errors&&e.errors.length>0?t[e.name]=e.errors[0]:delete t[e.name]}),S(n),w(t)},resetFields:z,validateFields:V,submit:function(){V().then(function(){var e=document.querySelector("form");e&&e.dispatchEvent(new Event("submit",{cancelable:!0,bubbles:!0}))})},destroy:function(){S({}),w({}),R.current.clear(),D.current=null}};n.useEffect(function(){D.current=U,b&&(b.current=U),N&&(N.getFieldValue=U.getFieldValue,N.getFieldsValue=U.getFieldsValue,N.setFieldValue=U.setFieldValue,N.setFieldsValue=U.setFieldsValue,N.setFields=U.setFields,N.resetFields=U.resetFields,N.validateFields=U.validateFields,N.submit=U.submit,N.destroy=U.destroy)},[U,b,N]);var B=n.useCallback(function(e,n){return R.current.set(e,n),function(){R.current.delete(e)}},[]),F={layout:l,labelSpan:c,wrapperSpan:d,colon:C,requiredMark:O,values:y,errors:I,setFieldValue:H,getFieldValue:k,setFieldValueList:P,validateField:j,validateFields:V,resetFields:z};return e.jsx(Ur.Provider,{value:F,children:e.jsx(Hr,{ref:M,className:"form-wrapper ".concat(o),style:a,$styles:null==T?void 0:T.wrapper,onSubmit:function(e){return v(void 0,void 0,void 0,function(){var n;return _(this,function(t){switch(t.label){case 0:e.preventDefault(),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,V()];case 2:return t.sent(),null==f||f(y),[3,4];case 3:return n=t.sent(),null==g||g({error:n,values:y}),[3,4];case 4:return[2]}})})},children:u.default.Children.map(i,function(e){return u.default.isValidElement(e)&&e.type===Fr?u.default.cloneElement(e,{registerItem:B}):e})})})},Fr=function(t){var i=t.name,r=t.label,o=t.required,a=t.rules,s=void 0===a?[]:a,l=t.className,c=void 0===l?"":l,d=t.style,p=t.help,h=t.validateStatus,f=t.colon,g=t.labelSpan,v=t.wrapperSpan,_=t.hidden,x=void 0!==_&&_,C=t.extra,E=t.styles,O=t.registerItem,T=t.children,b=n.useContext(Ur),N=n.useState(i&&(null==b?void 0:b.values[i])?b.values[i]:""),A=N[0],y=N[1];n.useEffect(function(){if(O&&i)return O(i,{rules:s})},[O,i,s]),n.useEffect(function(){b&&i&&y(b.values[i])},[b,i,null==b?void 0:b.values]);var S=o||s.some(function(e){return e.required}),L=b&&i?b.errors[i]:"",I=!!L||"error"===h,w=void 0!==g?g:null==b?void 0:b.labelSpan,M=void 0!==v?v:null==b?void 0:b.wrapperSpan,R=w?w/24*100:void 0,D=void 0;if(void 0!==w){var H=24-w,k=void 0!==M?M:H;k>H&&(k=H),k<1&&(k=1),D=k/24*100}return x?null:e.jsxs(kr,{className:"form-item ".concat(c),style:d,$layout:(null==b?void 0:b.layout)||"horizontal",$styles:null==E?void 0:E.wrapper,children:[r&&e.jsx(Pr,{className:"form-label",$required:S,$colon:void 0!==f?f:null==b?void 0:b.colon,$styles:m(m({},null==E?void 0:E.label),void 0!==R?{width:"".concat(R,"%")}:{}),children:r}),e.jsxs(jr,{className:"form-control",$styles:m(m({},null==E?void 0:E.input),void 0!==D?{width:"".concat(D,"%")}:{}),children:[u.default.Children.map(u.default.Children.toArray(T).filter(function(e){return u.default.isValidElement(e)}),function(e){return u.default.cloneElement(e,{value:A,onChange:function(n){var t,r;!function(e){y(e),i&&(null==b||b.setFieldValue(i,e))}(void 0!==(null===(t=null==n?void 0:n.target)||void 0===t?void 0:t.value)?n.target.value:n);var o=e.props;null===(r=o.onChange)||void 0===r||r.call(o,n)},error:I})}),I&&e.jsx(Vr,{className:"form-error ".concat(I?"form-error-visible":""),$styles:null==E?void 0:E.error,children:L}),p&&!I&&e.jsx(zr,{className:"form-help",$styles:null==E?void 0:E.help,children:p}),C&&!I&&e.jsx(zr,{className:"form-help",$styles:null==E?void 0:E.help,children:C})]})]})};Br.Item=Fr;var Gr=Br;exports.Anchor=Un,exports.Breadcrumb=Bn,exports.Button=se,exports.Cascader=ce,exports.ColorPicker=He,exports.CopyToClipboard=je,exports.Divider=ze,exports.Dropdown=Vi,exports.Empty=le,exports.Flex=Ue,exports.Form=Gr,exports.I18nProvider=ji,exports.Icon=k,exports.Input=$e,exports.Label=Mr,exports.Marquee=an,exports.Masonry=Pn,exports.Menu=zi,exports.Message=sn,exports.MessageProvider=function(t){var i=t.children,r=n.useState([]),o=r[0],a=r[1],s=n.useState(0),l=s[0],c=s[1],d=n.useCallback(function(e,n,t){void 0===t&&(t=3e3);var i=l;c(function(e){return e+1}),a(function(r){return x(x([],r,!0),[{id:i,type:e,content:n,duration:t}],!1)});var r=setTimeout(function(){o(i)},t),o=function(e){a(function(n){return n.filter(function(n){return n.id!==e})})};return{close:function(){clearTimeout(r),o(i)}}},[l]),u={success:function(e,n){return d("success",e,n)},warning:function(e,n){return d("warning",e,n)},error:function(e,n){return d("error",e,n)},close:function(){return a([])}};return e.jsxs(hn.Provider,{value:{message:u},children:[i,o.map(function(n){return e.jsx(sn,{type:n.type,content:n.content,duration:n.duration,onClose:function(){return a(function(e){return e.filter(function(e){return e.id!==n.id})})}},n.id)})]})},exports.Modal=fn,exports.Navigation=Bi,exports.Notice=En,exports.Notification=Tn,exports.Pagination=wn,exports.Radio=An,exports.Rate=Fi,exports.Select=Ln,exports.Slider=Gi,exports.Space=jn,exports.Steps=Ki,exports.Switch=tr,exports.Table=Rn,exports.Tabs=rr,exports.Tooltip=Mn,exports.Top=Hn,exports.Transfer=Ir,exports.TreeSelect=De,exports.Typography=kn,exports.i18n=Mt,exports.load18n=function(e){var n={};return Object.keys(e).forEach(function(t){var i=e[t];if(i&&"object"==typeof i){var r=void 0,o=i;if(i.language)r=i.language,i.translation&&"object"==typeof i.translation&&(o=i.translation);else if(i.locale)r=i.locale,i.translation&&"object"==typeof i.translation&&(o=i.translation);else if(1===Object.keys(i).length){var a=Object.keys(i)[0];/^[a-z]{2}(-[A-Za-z]{2})?$/.test(a)&&(r=a,o=i[a])}else if(i.translation&&"object"==typeof i.translation&&1===Object.keys(i.translation).length){a=Object.keys(i.translation)[0];/^[a-z]{2}(-[A-Za-z]{2})?$/.test(a)&&(r=a,o=i.translation[a])}if(!r){(r={JP:"ja-JP",HK:"zh-HK",US:"en-US",CN:"zh-CN",EN:"en-US",ZH:"zh-CN"}[t]||t)!==t||/^[a-z]{2}(-[A-Za-z]{2})?$/.test(t)||console.warn('Using key "'.concat(t,'" as language code. For better results, ')+'please use explicit language codes like "ja-JP" or "zh-HK", or include language information in your JSON files.')}if(!r||"string"!=typeof r)return void console.warn("Invalid language code for resource ".concat(t));n[r]||(n[r]={}),o.translation&&"object"==typeof o.translation?n[r].translation=m(m({},n[r].translation),o.translation):n[r].translation=m(m({},n[r].translation),o)}}),n},exports.message=pn,exports.useCopy=Ve,exports.useI18n=function(){return ni()},exports.useMessage=function(){var e=n.useContext(hn);return(null==e?void 0:e.message)?e.message:pn};
1
+ "use strict";var e=require("react/jsx-runtime"),n=require("react"),t=require("classnames"),i=require("styled-components"),r=require("react-color"),o=require("react-dom/client"),a=require("react-dom"),s=require("@dnd-kit/core"),l=require("@dnd-kit/sortable"),c=require("@dnd-kit/utilities");function d(e){return e&&e.__esModule?e:{default:e}}var u=d(n),p=d(t),h=d(i),f=d(a),g=function(){return g=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},g.apply(this,arguments)};function m(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)n.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(t[i[r]]=e[i[r]])}return t}function v(e,n,t,i){return new(t||(t=Promise))(function(r,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(a,s)}l((i=i.apply(e,n||[])).next())})}function x(e,n){var t,i,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(t)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(t=1,i&&(r=2&s[0]?i.return:s[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;switch(i=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,i=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){o.label=s[1];break}if(6===s[0]&&o.label<r[1]){o.label=r[1],r=s;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(s);break}r[2]&&o.ops.pop(),o.trys.pop();continue}s=n.call(e,o)}catch(e){s=[6,e],i=0}finally{t=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function C(e,n,t){if(t||2===arguments.length)for(var i,r=0,o=n.length;r<o;r++)!i&&r in n||(i||(i=Array.prototype.slice.call(n,0,r)),i[r]=n[r]);return e.concat(i||Array.prototype.slice.call(n))}function _(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e}"function"==typeof SuppressedError&&SuppressedError;var E={path:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z",viewBox:"0 0 24 24"},b={path:"M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z",viewBox:"0 0 24 24"},y={path:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z",viewBox:"0 0 24 24"},O={path:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",viewBox:"0 0 24 24"},T={path:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z",viewBox:"0 0 24 24"},N={path:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z",viewBox:"0 0 24 24"},S={path:"M19 13H5v-2h14v2z",viewBox:"0 0 24 24"},A={path:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",viewBox:"0 0 24 24"},L={path:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",viewBox:"0 0 24 24"},w={path:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z",viewBox:"0 0 24 24"},I={path:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z",viewBox:"0 0 24 24"},M={search:E,loading:b,user:y,close:O,check:T,plus:N,minus:S,arrowLeft:A,arrowRight:L,arrowUp:w,arrowDown:I,setting:{path:"M19.14 12.94c.04-.31.06-.63.06-.94 0-.31-.02-.63-.06-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.04.31-.06.63-.06.94s.02.63.06.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z",viewBox:"0 0 24 24"},eye:{path:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z",viewBox:"0 0 24 24"},eyeOff:{path:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z",viewBox:"0 0 24 24"},trash:{path:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z",viewBox:"0 0 24 24"},edit:{path:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z",viewBox:"0 0 24 24"},download:{path:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z",viewBox:"0 0 24 24"},upload:{path:"M9 16h6v-6h4l-7-7-7 7h4v6zm-4 2h14v2H5v-2z",viewBox:"0 0 24 24"},refresh:{path:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z",viewBox:"0 0 24 24"},home:{path:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z",viewBox:"0 0 24 24"},menu:{path:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z",viewBox:"0 0 24 24"},more:{path:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",viewBox:"0 0 24 24"},bell:{path:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z",viewBox:"0 0 24 24"},mail:{path:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z",viewBox:"0 0 24 24"},calendar:{path:"M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM9 10H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm-8 4H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2z",viewBox:"0 0 24 24"},clock:{path:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z",viewBox:"0 0 24 24"},star:{path:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z",viewBox:"0 0 24 24"},starOutline:{path:"M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z",viewBox:"0 0 24 24"},heart:{path:"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z",viewBox:"0 0 24 24"},heartOutline:{path:"M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z",viewBox:"0 0 24 24"},info:{path:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z",viewBox:"0 0 24 24"},warning:{path:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z",viewBox:"0 0 24 24"},error:{path:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z",viewBox:"0 0 24 24"},success:{path:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z",viewBox:"0 0 24 24"},question:{path:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z",viewBox:"0 0 24 24"},link:{path:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z",viewBox:"0 0 24 24"},image:{path:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z",viewBox:"0 0 24 24"},folder:{path:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z",viewBox:"0 0 24 24"},file:{path:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z",viewBox:"0 0 24 24"},cloud:{path:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96z",viewBox:"0 0 24 24"},exclamation:{path:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z",viewBox:"0 0 24 24"},facebook:{path:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",viewBox:"0 0 24 24"},twitter:{path:"M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z",viewBox:"0 0 24 24"},instagram:{path:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z",viewBox:"0 0 24 24"},linkedin:{path:"M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z",viewBox:"0 0 24 24"},copy:{path:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",viewBox:"0 0 24 24"},paste:{path:"M19 2h-4.18C14.4 2 14 2.4 14 2.82V7h-4V2.82C10 2.4 9.6 2 9.18 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0h4v5h-4V2zm5 18H5V4h4v3h1.18C10.6 7 11 7.4 11 7.82V20h8V4h-4v3h-.18C14.4 7 14 7.4 14 7.82V20z",viewBox:"0 0 24 24"},cut:{path:"M17 3H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H7V5h10v14zm-1-7h-3V8h-2v4H8l4 4 4-4z",viewBox:"0 0 24 24"},select:{path:"M3 3v18h18V3H3zm16 16H5V5h14v14zM11 7h2v2h-2zm0 4h2v2h-2zm0 4h2v2h-2z",viewBox:"0 0 24 24"},fileText:{path:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z",viewBox:"0 0 24 24"},filePdf:{path:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z",viewBox:"0 0 24 24"},fileExcel:{path:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z",viewBox:"0 0 24 24"},fileWord:{path:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z",viewBox:"0 0 24 24"},arrowUpRight:{path:"M13 3h-2v5H6v2h5v8h2v-8h5v-2h-5V3z",viewBox:"0 0 24 24"},arrowDownRight:{path:"M19 15v-2h-5V6h-2v7H6v2h7v5h2v-5h5z",viewBox:"0 0 24 24"},arrowUpLeft:{path:"M11 3v5H6v2h5v8h2v-8h5v-2h-5V3h-2z",viewBox:"0 0 24 24"},arrowDownLeft:{path:"M11 19H6v-2h5v-5h2v5h5v2h-5z",viewBox:"0 0 24 24"},filter:{path:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z",viewBox:"0 0 24 24"},sort:{path:"M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z",viewBox:"0 0 24 24"},searchPlus:{path:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zm7.5 4l3.04 3.04.71-.71-3.75-3.75z",viewBox:"0 0 24 24"},searchMinus:{path:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zm7.5-2h-5v-2h5v2z",viewBox:"0 0 24 24"},shield:{path:"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z",viewBox:"0 0 24 24"},lock:{path:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z",viewBox:"0 0 24 24"},unlock:{path:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z",viewBox:"0 0 24 24"},tag:{path:"M20.59 13.41l-7.17 7.17c-.18.18-.43.29-.71.29H8c-1.1 0-1.99-.9-1.99-2V9.3c0-.28.11-.53.29-.71l7.17-7.17c.56-.56 1.41-.22 1.79.58l3.31 8.83c.38.95-.29 1.95-1.24 1.95h-2.06c-.28 0-.53.11-.71.29z",viewBox:"0 0 24 24"},bookmark:{path:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z",viewBox:"0 0 24 24"},flag:{path:"M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6h-5.6z",viewBox:"0 0 24 24"},map:{path:"M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM10 5.47l4 1.4v11.66l-4-1.4V5.47zm-5 .99l3-1.01v11.7l-3 1.16V6.46zm14 11.08l-3 1.01V6.86l3-1.16v11.7z",viewBox:"0 0 24 24"},message:{path:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z",viewBox:"0 0 24 24"},phone:{path:"M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z",viewBox:"0 0 24 24"},camera:{path:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z",viewBox:"0 0 24 24"},video:{path:"M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4z",viewBox:"0 0 24 24"},music:{path:"M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z",viewBox:"0 0 24 24"},play:{path:"M8 5v14l11-7z",viewBox:"0 0 24 24"},pause:{path:"M6 19h4V5H6v14zm8-14v14h4V5h-4z",viewBox:"0 0 24 24"},stop:{path:"M6 19h12V5H6v14z",viewBox:"0 0 24 24"},refreshCw:{path:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z",viewBox:"0 0 24 24"},refreshCcw:{path:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z",viewBox:"0 0 24 24"},undo:{path:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z",viewBox:"0 0 24 24"},redo:{path:"M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22l2.37.78C4.63 15.17 7.74 13 11.5 13c1.95 0 3.73.72 5.12 1.88L13 20h9V11l-3.6-3.6z",viewBox:"0 0 24 24"},zoomIn:{path:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zm2.5-2h-2v-2h2v2z",viewBox:"0 0 24 24"},zoomOut:{path:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z",viewBox:"0 0 24 24"},infoCircle:{path:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z",viewBox:"0 0 24 24"},warningCircle:{path:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2V7h2v7z",viewBox:"0 0 24 24"},errorCircle:{path:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z",viewBox:"0 0 24 24"},checkCircle:{path:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z",viewBox:"0 0 24 24"},questionCircle:{path:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z",viewBox:"0 0 24 24"},youtube:{path:"M10,15.5C10,16.88 8.67,18.14 6.88,18.64C5.08,19.14 3,18.47 3,17V7C3,5.53 5.08,4.86 6.88,5.36C8.67,5.86 10,7.12 10,8.5V15.5M15.5,15.5C15.5,16.88 14.17,18.14 12.38,18.64C10.58,19.14 8.5,18.47 8.5,17V7C8.5,5.53 10.58,4.86 12.38,5.36C14.17,5.86 15.5,7.12 15.5,8.5V15.5M19.83,7.41C20.22,7.69 20.39,8.14 20.39,8.64V15.36C20.39,15.86 20.22,16.31 19.83,16.59C19.63,16.72 19.39,16.79 19.14,16.79H15.41V7.21H19.14C19.39,7.21 19.63,7.28 19.83,7.41M19.14,15.56H16.5V8.44H19.14V15.56Z",viewBox:"0 0 24 24"},github:{path:"M12,2A10,10 0 0,0 2,12C2,16.42 4.87,20.17 8.84,21.5C9.34,21.58 9.5,21.27 9.5,21C9.5,20.77 9.5,20.14 9.5,19.31C6.73,19.91 6.14,17.97 6.14,17.97C5.68,16.81 5.03,16.5 5.03,16.5C4.12,15.88 5.1,15.9 5.1,15.9C6.1,15.97 6.63,16.93 6.63,16.93C7.5,18.45 8.97,18 9.54,17.76C9.63,17.11 9.89,16.67 10.17,16.42C7.95,16.17 5.62,15.31 5.62,11.5C5.62,10.39 6,9.5 6.65,8.79C6.55,8.54 6.2,7.5 6.75,6.15C6.75,6.15 7.59,5.88 9.5,7.17C10.29,6.95 11.15,6.84 12,6.84C12.85,6.84 13.71,6.95 14.5,7.17C16.41,5.88 17.25,6.15 17.25,6.15C17.8,7.5 17.45,8.54 17.35,8.79C18,9.5 18.38,10.39 18.38,11.5C18.38,15.32 16.04,16.16 13.81,16.41C14.17,16.72 14.5,17.33 14.5,18.26C14.5,19.6 14.5,20.68 14.5,21C14.5,21.27 14.66,21.59 15.17,21.5C19.14,20.16 22,16.42 22,12A10,10 0 0,0 12,2Z",viewBox:"0 0 24 24"},weibo:{path:"M19,4H5C3.89,4 3,4.89 3,6V18A2,2 0 0,0 5,20H19A2,2 0 0,0 21,18V6C21,4.89 20.1,4 19,4M19,18H5V6H19V18M9.5,8A1.5,1.5 0 0,0 8,9.5A1.5,1.5 0 0,0 9.5,11A1.5,1.5 0 0,0 11,9.5A1.5,1.5 0 0,0 9.5,8M14.5,15A1.5,1.5 0 0,0 13,16.5A1.5,1.5 0 0,0 14.5,18A1.5,1.5 0 0,0 16,16.5A1.5,1.5 0 0,0 14.5,15M18,11C18,14.87 14.87,18 11,18C7.13,18 4,14.87 4,11C4,7.13 7.13,4 11,4C14.87,4 18,7.13 18,11Z",viewBox:"0 0 24 24"},telegram:{path:"M18.88,6.85L14.19,11.54L4.76,10.43L7.26,15.53L6.21,20.21L11.89,17.4L16.8,22L18.88,15.28L18.88,6.85Z",viewBox:"0 0 24 24"},hammer:{path:"M19.66,3.99C18.87,3.63 18,3.36 17.11,3.19L15,5.41L18.59,9L20.81,7.88C20.64,7 20.37,6.12 20.01,5.34L19.66,3.99M16.59,10L13,6.41L4,15.41V19H7.58L16.59,10Z",viewBox:"0 0 24 24"},wrench:{path:"M14.71,15.88L10.83,12L14.71,8.12L13.29,6.71L9.41,10.59L5.53,6.71L4.12,8.12L7.99,12L4.12,15.88L5.53,17.29L9.41,13.41L13.29,17.29L14.71,15.88Z",viewBox:"0 0 24 24"},screwdriver:{path:"M5,18H9V20H5V18M11,5.83V17.17L8,14.17L9.41,12.76L11,14.34V5.83M21.71,4.04C22.1,3.65 22.1,3 21.71,2.63L19.37,0.29C19,-0.1 18.35,-0.1 17.96,0.29L15,3.25L18.75,7L21.71,4.04Z",viewBox:"0 0 24 24"},paintbrush:{path:"M18,4A4,4 0 0,1 22,8A4,4 0 0,1 18,12A4,4 0 0,1 14,8A4,4 0 0,1 18,4M8.5,14.5A1.5,1.5 0 0,1 7,13A1.5,1.5 0 0,1 8.5,11.5A1.5,1.5 0 0,1 10,13A1.5,1.5 0 0,1 8.5,14.5M12,17A3,3 0 0,1 9,20H3V22H9A5,5 0 0,0 14,17H12Z",viewBox:"0 0 24 24"},fileEarmark:{path:"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20Z",viewBox:"0 0 24 24"},fileEarmarkText:{path:"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M15,12V14H9V12H15M15,16V18H9V16H15M15,8H9V10H15V8Z",viewBox:"0 0 24 24"},fileEarmarkImage:{path:"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20M10,13L15,16L10,19V13Z",viewBox:"0 0 24 24"},fileEarmarkPdf:{path:"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20M10,13H8V18H10V13M12,13H10V11H12V13M14,13H12V11H14V13M16,13H14V11H16V13Z",viewBox:"0 0 24 24"},arrowUpRightSquare:{path:"M18,2A2,2 0 0,1 20,4V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4C4,2.89 4.89,2 6,2H18M17,10L12,15L7,10H17Z",viewBox:"0 0 24 24"},arrowDownRightSquare:{path:"M18,2A2,2 0 0,1 20,4V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H18M17,14L12,9L7,14H17Z",viewBox:"0 0 24 24"},arrowUpLeftSquare:{path:"M18,2A2,2 0 0,1 20,4V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H18M7,10L12,15L17,10H7Z",viewBox:"0 0 24 24"},arrowDownLeftSquare:{path:"M18,2A2,2 0 0,1 20,4V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H18M7,14L12,9L17,14H7Z",viewBox:"0 0 24 24"},compass:{path:"M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4Z",viewBox:"0 0 24 24"},mapPin:{path:"M12,11.5A2.5,2.5 0 0,1 9.5,9A2.5,2.5 0 0,1 12,6.5A2.5,2.5 0 0,1 14.5,9A2.5,2.5 0 0,1 12,11.5M12,2A7,7 0 0,0 5,9C5,14.25 12,22 12,22C12,22 19,14.25 19,9A7,7 0 0,0 12,2Z",viewBox:"0 0 24 24"},location:{path:"M12,11.5A2.5,2.5 0 0,1 9.5,9A2.5,2.5 0 0,1 12,6.5A2.5,2.5 0 0,1 14.5,9A2.5,2.5 0 0,1 12,11.5M12,2A7,7 0 0,0 5,9C5,14.25 12,22 12,22C12,22 19,14.25 19,9A7,7 0 0,0 12,2Z",viewBox:"0 0 24 24"},pencilSquare:{path:"M18,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V4A2,2 0 0,0 18,2M15.5,13.5C15.5,14.35 15.13,15.09 14.5,15.5C13.88,15.91 13.15,16.1 12.3,16.1C11.45,16.1 10.73,15.91 10.1,15.5C9.47,15.09 9.1,14.35 9.1,13.5A4.4,4.4 0 0,1 13.5,9.1C14.35,9.1 15.09,9.47 15.5,10.1C15.91,10.73 16.1,11.45 16.1,12.3C16.1,13.15 15.91,13.88 15.5,14.5V13.5M12.3,14.9C12.69,14.9 13.07,14.82 13.4,14.66C14.08,14.34 14.4,13.69 14.4,13C14.4,12.31 14.08,11.66 13.4,11.34C13.07,11.18 12.69,11.1 12.3,11.1C11.91,11.1 11.53,11.18 11.2,11.34C10.52,11.66 10.2,12.31 10.2,13C10.2,13.69 10.52,14.34 11.2,14.66C11.53,14.82 11.91,14.9 12.3,14.9Z",viewBox:"0 0 24 24"},highlighter:{path:"M6,17A2,2 0 0,1 4,15V3A1,1 0 0,1 5,2H19A1,1 0 0,1 20,3V15A2,2 0 0,1 18,17H8L6,21V17M13,9H18V15H13V9M8,9H11V15H8V9Z",viewBox:"0 0 24 24"},checkCircleFill:{path:"M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M10,17L5,12L6.41,10.59L10,14.17L17.59,6.58L19,8L10,17Z",viewBox:"0 0 24 24"},exclamationCircleFill:{path:"M11,15H13V17H11V15M11,7H13V13H11V7M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20Z",viewBox:"0 0 24 24"},infoCircleFill:{path:"M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M11,17H13V19H11V17M12,5A1,1 0 0,0 11,6A1,1 0 0,0 12,7A1,1 0 0,0 13,6A1,1 0 0,0 12,5Z",viewBox:"0 0 24 24"},laptop:{path:"M20,18H4V6H20M20,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V6C22,4.89 21.1,4 20,4Z",viewBox:"0 0 24 24"},tablet:{path:"M21,18H3V5H21M21,3H3A2,2 0 0,0 1,5V18A2,2 0 0,0 3,20H21A2,2 0 0,0 23,18V5A2,2 0 0,0 21,3Z",viewBox:"0 0 24 24"},mobile:{path:"M17,19H7V5H17M17,3H7A2,2 0 0,0 5,5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V5A2,2 0 0,0 17,3Z",viewBox:"0 0 24 24"},dollar:{path:"M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22C6.47,22 2,17.5 2,12A10,10 0 0,1 12,2M14,18H12V15H14V18M14,13H12V4H10V13H8V11L12,15L16,11V13Z",viewBox:"0 0 24 24"},euro:{path:"M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M15,18H13L11,15V13H15V18M13,9H11V7H15V10L13,9Z",viewBox:"0 0 24 24"},sun:{path:"M12,18A6,6 0 0,0 18,12A6,6 0 0,0 12,6A6,6 0 0,0 6,12A6,6 0 0,0 12,18M12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4M12,2V4M12,20V22M4.93,4.93L6.34,6.34M17.66,17.66L19.07,19.07M2,12H4M20,12H22M6.34,17.66L4.93,19.07M19.07,4.93L17.66,6.34",viewBox:"0 0 24 24"},moon:{path:"M12,3A9,9 0 0,0 3,12A9,9 0 0,0 12,21A9,9 0 0,0 21,12A9,9 0 0,0 12,3M12,19.93A7.93,7.93 0 0,1 4.07,12A7.93,7.93 0 0,1 12,4.07A7.93,7.93 0 0,1 19.93,12A7.93,7.93 0 0,1 12,19.93Z",viewBox:"0 0 24 24"},cloudSun:{path:"M19.35,10.03C18.67,6.59 15.64,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20H20C21.11,20 22,19.1 22,18C22,16.5 20.9,15.3 19.35,13.97L12,20V13L19.35,10.03Z",viewBox:"0 0 24 24"},settings:{path:"M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.22,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.22,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.68 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z",viewBox:"0 0 24 24"},tools:{path:"M21.71,20.29L20.29,21.71C20.1,21.9 19.85,22 19.59,22C19.33,22 19.08,21.9 18.88,21.71L15,17.83C13.22,19.34 10.91,20.17 8.5,20C4.91,19.96 1.84,17.59 0.89,14.15C0,10.82 1.9,7.5 5,6C5,6 6,6 7,7C7,7 8,8 8,9C10,9 11,10 12,11C13,12 14,13 15,13C16,14 17,15 18,15C19,16 20,17 20,18C22.5,20.5 22.5,22.5 21.71,20.29M5.5,18C6.33,18 7,18.67 7,19.5C7,20.33 6.33,21 5.5,21C4.67,21 4,20.33 4,19.5C4,18.67 4.67,18 5.5,18Z",viewBox:"0 0 24 24"},tool:{path:"M22.7,19.6L14.4,11.3C14.7,10.5 14.9,9.7 14.9,8.8C14.9,5.6 12.3,3 9.1,3C8.2,3 7.3,3.2 6.5,3.5L10.8,7.8L7.9,10.7L3.6,6.4C3.2,7.2 3,8.1 3,9.1C3,12.3 5.6,14.9 8.8,14.9C9.7,14.9 10.5,14.7 11.3,14.4L19.6,22.7C20,23.1 20.5,23.3 21,23.3C21.5,23.3 22,23.1 22.4,22.7C23.1,22 23.1,20.8 22.7,19.6Z",viewBox:"0 0 24 24"},mallet:{path:"M2,19.63L13.43,8.2L12.72,7.5L14.14,6.07L12,3.89C13.2,2.7 15.09,2.7 16.27,3.89L19.87,7.5L18.45,8.91H21.29L22,9.62L18.45,13.21L17.74,12.5V9.62L16.27,11.04L15.56,10.33L4.13,21.76L2,19.63Z",viewBox:"0 0 24 24"},driver:{path:"M18,1.83C17.5,1.83 17,2 16.59,2.41L13.17,5.83L15.83,8.5L19.5,4.83C20,4.33 20,3.5 19.5,3C19,2.5 18.5,1.83 18,1.83M13,4L4,13C3.5,13.5 3.5,14.5 4,15L9,20C9.5,20.5 10.5,20.5 11,20L20,11C20.5,10.5 20.5,9.5 20,9L15,4C14.5,3.5 13.5,3.5 13,4M6.5,18.5L3.5,17.5L6,15L8.5,17.5L6.5,18.5Z",viewBox:"0 0 24 24"},document:{path:"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20Z",viewBox:"0 0 24 24"},directory:{path:"M10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6H12L10,4Z",viewBox:"0 0 24 24"},"folder-open":{path:"M19,20H4C2.89,20 2,19.1 2,18V6C2,4.89 2.89,4 4,4H10L12,6H19A2,2 0 0,1 21,8H21L4,8V18L6.14,10H23.21L20.93,18.5C20.7,19.37 19.92,20 19,20Z",viewBox:"0 0 24 24"},"file-pdf":{path:"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20M7,13H9V19H7V13M10,13H12V17H10V13M13,13H15V19H13V13Z",viewBox:"0 0 24 24"},"file-text":{path:"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20M8,13H16V15H8V13M8,9H10V11H8V9M8,17H13V19H8V17Z",viewBox:"0 0 24 24"},"arrow-left":{path:"M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z",viewBox:"0 0 24 24"},"arrow-right":{path:"M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z",viewBox:"0 0 24 24"},"arrow-up":{path:"M13,20H11V8L5.5,13.5L4.08,12.08L12,4.16L19.92,12.08L18.5,13.5L13,8V20Z",viewBox:"0 0 24 24"},"arrow-down":{path:"M11,4H13V16L18.5,10.5L19.92,11.92L12,19.84L4.08,11.92L5.5,10.5L11,16V4Z",viewBox:"0 0 24 24"},"chevron-left":{path:"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",viewBox:"0 0 24 24"},"chevron-right":{path:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",viewBox:"0 0 24 24"},"m-home":{path:"M10,20V14H14V20H19V12H22L12,3L2,12H5V20H10Z",viewBox:"0 0 24 24"},"m-menu":{path:"M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z",viewBox:"0 0 24 24"},"m-search":{path:"M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z",viewBox:"0 0 24 24"},"m-close":{path:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",viewBox:"0 0 24 24"},"m-user":{path:"M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",viewBox:"0 0 24 24"},"m-edit":{path:"M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",viewBox:"0 0 24 24"},delete:{path:"M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",viewBox:"0 0 24 24"},"m-copy":{path:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z",viewBox:"0 0 24 24"},"m-out":{path:"M19,3L13,9L15,11L22,4V3M12,12.5A0.5,0.5 0 0,1 11.5,12A0.5,0.5 0 0,1 12,11.5A0.5,0.5 0 0,1 12.5,12A0.5,0.5 0 0,1 12,12.5M6,20A2,2 0 0,1 4,18C4,16.89 4.9,16 6,16A2,2 0 0,1 8,18C8,19.11 7.1,20 6,20M6,8A2,2 0 0,1 4,6C4,4.89 4.9,4 6,4A2,2 0 0,1 8,6C8,7.11 7.1,8 6,8M9.64,7.64C9.87,7.14 10,6.59 10,6A4,4 0 0,0 6,2A4,4 0 0,0 2,6A4,4 0 0,0 6,10C6.59,10 7.14,9.87 7.64,9.64L10,12L7.64,14.36C7.14,14.13 6.59,14 6,14A4,4 0 0,0 2,18A4,4 0 0,0 6,22A4,4 0 0,0 10,18C10,17.41 9.87,16.86 9.64,16.36L12,14L19,21H22V20L9.64,7.64Z",viewBox:"0 0 24 24"},bold:{path:"M13.5,15.5H10V12.5H13.5A1.5,1.5 0 0,1 15,14A1.5,1.5 0 0,1 13.5,15.5M10,6.5H13A1.5,1.5 0 0,1 14.5,8A1.5,1.5 0 0,1 13,9.5H10M15.6,10.79C16.57,10.11 17.25,9 17.25,8C17.25,5.74 15.5,4 13.25,4H7V18H14.04C16.14,18 17.75,16.3 17.75,14.21C17.75,12.69 16.89,11.39 15.6,10.79Z",viewBox:"0 0 24 24"},"m-check":{path:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",viewBox:"0 0 24 24"},"m-error":{path:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",viewBox:"0 0 24 24"},"m-warning":{path:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z",viewBox:"0 0 24 24"},"m-info":{path:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",viewBox:"0 0 24 24"},"m-loading":{path:"M12,4V2A10,10 0 0,0 2,12H4A8,8 0 0,1 12,4Z",viewBox:"0 0 24 24"},"m-phone":{path:"M6.62,10.79C8.06,13.62 10.38,15.94 13.21,17.38L15.41,15.18C15.69,14.9 16.08,14.82 16.43,14.93C17.55,15.3 18.75,15.5 20,15.5A1,1 0 0,1 21,16.5V20A1,1 0 0,1 20,21A17,17 0 0,1 3,4A1,1 0 0,1 4,3H7.5A1,1 0 0,1 8.5,4C8.5,5.25 8.7,6.45 9.07,7.57C9.18,7.92 9.1,8.31 8.82,8.59L6.62,10.79Z",viewBox:"0 0 24 24"},photograph:{path:"M4,4H7L9,2H15L17,4H20A2,2 0 0,1 22,6V18A2,2 0 0,1 20,20H4A2,2 0 0,1 2,18V6A2,2 0 0,1 4,4M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7M12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9Z",viewBox:"0 0 24 24"},printer:{path:"M18,3H6V7H18M19,12A1,1 0 0,1 18,11A1,1 0 0,1 19,10A1,1 0 0,1 20,11A1,1 0 0,1 19,12M16,19H8V14H16M19,8H5A3,3 0 0,0 2,11V17H6V21H18V17H22V11A3,3 0 0,0 19,8Z",viewBox:"0 0 24 24"},headphones:{path:"M12,1C7,1 3,5 3,10V17A3,3 0 0,0 6,20H9V12H5V10A7,7 0 0,1 12,3A7,7 0 0,1 19,10V12H15V20H18A3,3 0 0,0 21,17V10C21,5 16.97,1 12,1Z",viewBox:"0 0 24 24"},mouse:{path:"M11,1.07C7.05,1.56 4,4.92 4,9H11M4,15A8,8 0 0,0 12,23A8,8 0 0,0 20,15V11H4M13,1.07V9H20C20,4.92 16.94,1.56 13,1.07Z",viewBox:"0 0 24 24"},schedule:{path:"M19,19H5V8H19M16,1V3H8V1H6V3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3H18V1M17,12H12V17H17V12Z",viewBox:"0 0 24 24"},"m-clock":{path:"M12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22C6.47,22 2,17.5 2,12A10,10 0 0,1 12,2M12.5,7V12.25L17,14.92L16.25,16.15L11,13V7H12.5Z",viewBox:"0 0 24 24"},"m-bell":{path:"M10,21H14A2,2 0 0,1 12,23A2,2 0 0,1 10,21M21,19V20H3V19L5,17V11C5,7.9 7.03,5.17 10,4.29C10,4.19 10,4.1 10,4A2,2 0 0,1 12,2A2,2 0 0,1 14,4C14,4.1 14,4.19 14,4.29C16.97,5.17 19,7.9 19,11V17L21,19Z",viewBox:"0 0 24 24"},"m-star":{path:"M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z",viewBox:"0 0 24 24"},"m-heart":{path:"M12,21.35L10.55,20.03C5.4,15.36 2,12.27 2,8.5C2,5.41 4.42,3 7.5,3C9.24,3 10.91,3.81 12,5.08C13.09,3.81 14.76,3 16.5,3C19.58,3 22,5.41 22,8.5C22,12.27 18.6,15.36 13.45,20.03L12,21.35Z",viewBox:"0 0 24 24"},"m-download":{path:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z",viewBox:"0 0 24 24"},"m-upload":{path:"M9,16V10H5L12,3L19,10H15V16H9M5,20V18H19V20H5Z",viewBox:"0 0 24 24"},share:{path:"M18,16.08C17.24,16.08 16.56,16.38 16.04,16.85L8.91,12.7C8.96,12.47 9,12.24 9,12C9,11.76 8.96,11.53 8.91,11.3L15.96,7.19C16.5,7.69 17.21,8 18,8A3,3 0 0,0 21,5A3,3 0 0,0 18,2A3,3 0 0,0 15,5C15,5.24 15.04,5.47 15.09,5.7L8.04,9.81C7.5,9.31 6.79,9 6,9A3,3 0 0,0 3,12A3,3 0 0,0 6,15C6.79,15 7.5,14.69 8.04,14.19L15.16,18.34C15.11,18.55 15.08,18.77 15.08,19C15.08,20.61 16.39,21.91 18,21.91C19.61,21.91 20.92,20.61 20.92,19A2.92,2.92 0 0,0 18,16.08Z",viewBox:"0 0 24 24"},"external-link":{path:"M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z",viewBox:"0 0 24 24"},"m-mail":{path:"M20,8L12,13L4,8V6L12,11L20,6M20,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V6C22,4.89 21.1,4 20,4Z",viewBox:"0 0 24 24"},secure:{path:"M12,17A2,2 0 0,0 14,15C14,13.89 13.1,13 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V10C4,8.89 4.9,8 6,8H7V6A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,3A3,3 0 0,0 9,6V8H15V6A3,3 0 0,0 12,3Z",viewBox:"0 0 24 24"},open:{path:"M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V10A2,2 0 0,1 6,8H15V6A3,3 0 0,0 12,3A3,3 0 0,0 9,6H7A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,17A2,2 0 0,0 14,15A2,2 0 0,0 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17Z",viewBox:"0 0 24 24"},view:{path:"M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z",viewBox:"0 0 24 24"},off:{path:"M11.83,9L15,12.16C15,12.11 15,12.05 15,12A3,3 0 0,0 12,9C11.94,9 11.89,9 11.83,9M7.53,9.8L9.08,11.35C9.03,11.56 9,11.77 9,12A3,3 0 0,0 12,15C12.22,15 12.44,14.97 12.65,14.92L14.2,16.47C13.53,16.8 12.79,17 12,17A5,5 0 0,1 7,12C7,11.21 7.2,10.47 7.53,9.8M2,4.27L4.28,6.55L4.73,7C3.08,8.3 1.78,10 1,12C2.73,16.39 7,19.5 12,19.5C13.55,19.5 15.03,19.2 16.38,18.66L16.81,19.08L19.73,22L21,20.73L3.27,3M12,7A5,5 0 0,1 17,12C17,12.64 16.87,13.26 16.64,13.82L19.57,16.75C21.07,15.5 22.27,13.86 23,12C21.27,7.61 17,4.5 12,4.5C10.6,4.5 9.26,4.75 8,5.2L10.17,7.35C10.74,7.13 11.35,7 12,7Z",viewBox:"0 0 24 24"},"m-sort":{path:"M14,12V19.88C14.04,20.18 13.94,20.5 13.71,20.71C13.32,21.1 12.69,21.1 12.3,20.71L10.29,18.7C10.06,18.47 9.96,18.16 10,17.87V12H9.97L4.21,4.62C3.87,4.19 3.95,3.56 4.38,3.22C4.57,3.08 4.78,3 5,3V3H19V3C19.22,3 19.43,3.08 19.62,3.22C20.05,3.56 20.13,4.19 19.79,4.62L14.03,12H14Z",viewBox:"0 0 24 24"},grid:{path:"M10,4V8H14V4H10M16,4V8H20V4H16M16,10V14H20V10H16M16,16V20H20V16H16M14,20V16H10V20H14M8,20V16H4V20H8M8,14V10H4V14H8M8,8V4H4V8H8M10,14H14V10H10V14M4,2H20A2,2 0 0,1 22,4V20A2,2 0 0,1 20,22H4C2.92,22 2,21.1 2,20V4A2,2 0 0,1 4,2Z",viewBox:"0 0 24 24"},list:{path:"M3,13H21V11H3V13M3,6H21V4H3V6M3,18H21V16H3V18Z",viewBox:"0 0 24 24"},reload:{path:"M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z",viewBox:"0 0 24 24"},"volume-high":{path:"M14,3.23V5.29C16.89,6.15 19,8.83 19,12C19,15.17 16.89,17.84 14,18.7V20.77C18,19.86 21,16.28 21,12C21,7.72 18,4.14 14,3.23M16.5,12C16.5,10.23 15.5,8.71 14,7.97V16C15.5,15.29 16.5,13.76 16.5,12M3,9V15H7L12,20V4L7,9H3Z",viewBox:"0 0 24 24"},"volume-off":{path:"M12,4L9.91,6.09L12,8.18M4.27,3L3,4.27L7.73,9H3V15H7L12,20V13.27L16.25,17.52C15.58,18.04 14.83,18.46 14,18.7V20.77C15.38,20.45 16.63,19.82 17.68,18.96L19.73,21L21,19.73L12,10.73M19,12C19,12.94 18.8,13.82 18.46,14.64L19.97,16.15C20.62,14.91 21,13.5 21,12C21,7.72 18,4.14 14,3.23V5.29C16.89,6.15 19,8.83 19,12M16.5,12C16.5,10.23 15.5,8.71 14,7.97V10.18L16.45,12.63C16.5,12.43 16.5,12.21 16.5,12Z",viewBox:"0 0 24 24"},"shield-check":{path:"M12,2L4,5V11C4,16.55 7.84,21.74 12,23C16.16,21.74 20,16.55 20,11V5L12,2M10.59,16.59L7.41,13.41L8.82,12L10.59,13.76L15.18,9.17L16.59,10.58L10.59,16.59Z",viewBox:"0 0 24 24"},"shield-off":{path:"M19,11V5L12,2L5,5V11C5,14.54 6.64,17.89 9.25,20.02L3.27,4.27L4.55,3L21,19.45L19.73,20.73L17.3,18.3C15.95,19.4 14.36,20.28 12.65,20.82C11.29,20.4 10.05,19.73 8.96,18.86L11.19,16.63C11.46,16.41 11.73,16.18 12,15.92V15.92C12.56,15.36 13.07,14.76 13.5,14.11L9.89,10.5L8.47,9.08L6.59,7.2V11C6.59,12.51 7.06,13.96 7.91,15.2L9.33,16.62",viewBox:"0 0 24 24"},key:{path:"M7,14A5,5 0 0,1 12,9A5,5 0 0,1 17,14A5,5 0 0,1 12,19A5,5 0 0,1 7,14M12,11A3,3 0 0,0 9,14A3,3 0 0,0 12,17A3,3 0 0,0 15,14A3,3 0 0,0 12,11M19,7L17,7V4H15V7H12V9H15V12H17V9H19V7Z",viewBox:"0 0 24 24"},"key-outline":{path:"M12,3A7,7 0 0,1 19,10A7,7 0 0,1 12,17A7,7 0 0,1 5,10A7,7 0 0,1 12,3M12,5A5,5 0 0,0 7,10A5,5 0 0,0 12,15A5,5 0 0,0 17,10A5,5 0 0,0 12,5M19,7H17V4H15V7H12V9H15V12H17V9H19V7Z",viewBox:"0 0 24 24"},logout:{path:"M14,17V14H6V10H14V7L19,12L14,17M4,19H12V21H4A2,2 0 0,1 2,19V5A2,2 0 0,1 4,3H12V5H4V19Z",viewBox:"0 0 24 24"},login:{path:"M10,17V14H18V10H10V7L5,12L10,17M20,19H12V21H20A2,2 0 0,0 22,19V5A2,2 0 0,0 20,3H12V5H20V19Z",viewBox:"0 0 24 24"},"settings-2":{path:"M12,8A4,4 0 0,1 16,12A4,4 0 0,1 12,16A4,4 0 0,1 8,12A4,4 0 0,1 12,8M4,12C4,11.3 4.07,10.62 4.2,9.95L2,8.5L3.5,6L5.95,6.8C6.44,6.28 6.99,5.82 7.6,5.44L7.3,2.8H10.2L10.5,5.44C11.17,5.2 11.85,5.08 12.55,5.08C13.25,5.08 13.93,5.2 14.6,5.44L14.9,2.8H17.8L17.5,5.44C18.11,5.82 18.66,6.28 19.15,6.8L21.6,6L23.1,8.5L20.9,9.95C21.03,10.62 21.1,11.3 21.1,12C21.1,12.7 21.03,13.38 20.9,14.05L23.1,15.5L21.6,18L19.15,17.2C18.66,17.72 18.11,18.18 17.5,18.56L17.8,21.2H14.9L14.6,18.56C13.93,18.8 13.25,18.92 12.55,18.92C11.85,18.92 11.17,18.8 10.5,18.56L10.2,21.2H7.3L7.6,18.56C6.99,18.18 6.44,17.72 5.95,17.2L3.5,18L2,15.5L4.2,14.05C4.07,13.38 4,12.7 4,12Z",viewBox:"0 0 24 24"},sliders:{path:"M10,4H4V6H10V4M20,4H14V6H20V4M16,9H4V11H16V9M20,9H18V11H20V9M8,14H4V16H8V14M20,14H12V16H20V14M12,19H4V21H12V19M20,19H16V21H20V19Z",viewBox:"0 0 24 24"},"chart-bar":{path:"M4,19H20V21H2V3H4V19M8,17V9H10V17H8M12,17V5H14V17H12M16,17V12H18V17H16Z",viewBox:"0 0 24 24"},"chart-line":{path:"M3,17L9,11L13,15L21,7L19.6,5.6L13,12.2L9,8.2L1.6,15.6L3,17M2,19H22V21H2V19Z",viewBox:"0 0 24 24"},"chart-pie":{path:"M11,2V12H21C20.45,6.4 16,2 11,2M13,13V3.08C7.94,3.58 4,7.86 4,13C4,18.52 8.48,23 14,23C19.14,23 23.42,19.06 23.92,14H13Z",viewBox:"0 0 24 24"},clipboard:{path:"M16,4H14.18C13.76,2.84 12.69,2 11.5,2C10.31,2 9.24,2.84 8.82,4H7A2,2 0 0,0 5,6V20A2,2 0 0,0 7,22H17A2,2 0 0,0 19,20V6A2,2 0 0,0 17,4H16M11.5,4A1,1 0 0,1 12.5,5A1,1 0 0,1 11.5,6A1,1 0 0,1 10.5,5A1,1 0 0,1 11.5,4Z",viewBox:"0 0 24 24"},"clipboard-check":{path:"M9,16.17L6.83,14L5.42,15.41L9,19L18,10L16.59,8.59L9,16.17M16,4H14.18C13.76,2.84 12.69,2 11.5,2C10.31,2 9.24,2.84 8.82,4H7A2,2 0 0,0 5,6V20A2,2 0 0,0 7,22H17A2,2 0 0,0 19,20V6A2,2 0 0,0 17,4H16Z",viewBox:"0 0 24 24"},"clipboard-text":{path:"M16,4H14.18C13.76,2.84 12.69,2 11.5,2C10.31,2 9.24,2.84 8.82,4H7A2,2 0 0,0 5,6V20A2,2 0 0,0 7,22H17A2,2 0 0,0 19,20V6A2,2 0 0,0 17,4H16M8,10H16V12H8V10M8,14H16V16H8V14Z",viewBox:"0 0 24 24"},database:{path:"M12,3C7.58,3 4,4.79 4,7V17C4,19.21 7.58,21 12,21C16.42,21 20,19.21 20,17V7C20,4.79 16.42,3 12,3M12,5C15.31,5 18,6.12 18,7.5C18,8.88 15.31,10 12,10C8.69,10 6,8.88 6,7.5C6,6.12 8.69,5 12,5M6,10.5C7.26,11.35 9.43,12 12,12C14.57,12 16.74,11.35 18,10.5V13C18,14.38 15.31,15.5 12,15.5C8.69,15.5 6,14.38 6,13V10.5M6,15.5C7.26,16.35 9.43,17 12,17C14.57,17 16.74,16.35 18,15.5V17C18,18.38 15.31,19.5 12,19.5C8.69,19.5 6,18.38 6,17V15.5Z",viewBox:"0 0 24 24"},server:{path:"M4,4H20A2,2 0 0,1 22,6V10A2,2 0 0,1 20,12H4A2,2 0 0,1 2,10V6A2,2 0 0,1 4,4M4,14H20A2,2 0 0,1 22,16V20A2,2 0 0,1 20,22H4A2,2 0 0,1 2,20V16A2,2 0 0,1 4,14M6,7A1,1 0 0,0 5,8A1,1 0 0,0 6,9A1,1 0 0,0 7,8A1,1 0 0,0 6,7M6,17A1,1 0 0,0 5,18A1,1 0 0,0 6,19A1,1 0 0,0 7,18A1,1 0 0,0 6,17Z",viewBox:"0 0 24 24"},terminal:{path:"M4,5H20A2,2 0 0,1 22,7V17A2,2 0 0,1 20,19H4A2,2 0 0,1 2,17V7A2,2 0 0,1 4,5M6,8L10,12L6,16L7.41,17.41L12.83,12L7.41,6.59L6,8M13,15H18V17H13V15Z",viewBox:"0 0 24 24"},code:{path:"M8.59,16.59L4,12L8.59,7.41L7.17,6L1.17,12L7.17,18L8.59,16.59M15.41,16.59L20,12L15.41,7.41L16.83,6L22.83,12L16.83,18L15.41,16.59Z",viewBox:"0 0 24 24"},bug:{path:"M14,6H18V8H14V6M6,6H10V8H6V6M12,2A4,4 0 0,1 16,6V7H8V6A4,4 0 0,1 12,2M5,9H19V11H5V9M7,12H9V20H7V12M15,12H17V20H15V12M11,12H13V22H11V12Z",viewBox:"0 0 24 24"},gift:{path:"M20,12V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V12H20M12,2A2.5,2.5 0 0,1 14.5,4.5A2.5,2.5 0 0,1 12,7A2.5,2.5 0 0,1 9.5,4.5A2.5,2.5 0 0,1 12,2M2,8H22V12H2V8M11,12H13V22H11V12Z",viewBox:"0 0 24 24"},cart:{path:"M7,18A2,2 0 0,0 9,20A2,2 0 0,0 11,18A2,2 0 0,0 9,16A2,2 0 0,0 7,18M15,18A2,2 0 0,0 17,20A2,2 0 0,0 19,18A2,2 0 0,0 17,16A2,2 0 0,0 15,18M7.16,12H17.55L20.31,6H6L5.21,4H2V6H4L7.6,13.59L6.25,16H19V14H8.42L7.16,12Z",viewBox:"0 0 24 24"},"shopping-bag":{path:"M6,6V5A4,4 0 0,1 10,1H14A4,4 0 0,1 18,5V6H21A1,1 0 0,1 22,7V20A2,2 0 0,1 20,22H4A2,2 0 0,1 2,20V7A1,1 0 0,1 3,6H6M8,6H16V5A2,2 0 0,0 14,3H10A2,2 0 0,0 8,5V6Z",viewBox:"0 0 24 24"},"credit-card":{path:"M4,4H20A2,2 0 0,1 22,6V18A2,2 0 0,1 20,20H4A2,2 0 0,1 2,18V6A2,2 0 0,1 4,4M4,7V9H20V7H4M6,14H12V16H6V14Z",viewBox:"0 0 24 24"},wallet:{path:"M3,7H20A2,2 0 0,1 22,9V17A2,2 0 0,1 20,19H4A2,2 0 0,1 2,17V7A2,2 0 0,1 4,5H20V7H3M18,12A1,1 0 0,0 17,13A1,1 0 0,0 18,14A1,1 0 0,0 19,13A1,1 0 0,0 18,12Z",viewBox:"0 0 24 24"},"tag-outline":{path:"M20.59,13.41L11,3.83A2,2 0 0,0 9.59,3H5A2,2 0 0,0 3,5V9.59A2,2 0 0,0 3.59,11L13.17,20.59A2,2 0 0,0 16,20.59L20.59,16A2,2 0 0,0 20.59,13.41M7,7A1.5,1.5 0 0,1 8.5,5.5A1.5,1.5 0 0,1 10,7A1.5,1.5 0 0,1 8.5,8.5A1.5,1.5 0 0,1 7,7Z",viewBox:"0 0 24 24"},"bookmark-outline":{path:"M17,3H7A2,2 0 0,0 5,5V21L12,18L19,21V5A2,2 0 0,0 17,3M17,18L12,16L7,18V5H17V18Z",viewBox:"0 0 24 24"},pin:{path:"M12,2A7,7 0 0,1 19,9C19,14.25 12,22 12,22C12,22 5,14.25 5,9A7,7 0 0,1 12,2M12,6.5A2.5,2.5 0 0,0 9.5,9A2.5,2.5 0 0,0 12,11.5A2.5,2.5 0 0,0 14.5,9A2.5,2.5 0 0,0 12,6.5Z",viewBox:"0 0 24 24"},"pin-outline":{path:"M12,2A7,7 0 0,0 5,9C5,14.25 12,22 12,22C12,22 19,14.25 19,9A7,7 0 0,0 12,2M12,4A5,5 0 0,1 17,9C17,12.74 13.8,17.15 12,19.29C10.2,17.15 7,12.74 7,9A5,5 0 0,1 12,4M12,6.5A2.5,2.5 0 0,0 9.5,9A2.5,2.5 0 0,0 12,11.5A2.5,2.5 0 0,0 14.5,9A2.5,2.5 0 0,0 12,6.5Z",viewBox:"0 0 24 24"},"bell-outline":{path:"M12,22A2,2 0 0,0 14,20H10A2,2 0 0,0 12,22M18,16V11A6,6 0 0,0 12,5A6,6 0 0,0 6,11V16L4,18V19H20V18L18,16M12,7A4,4 0 0,1 16,11V16H8V11A4,4 0 0,1 12,7Z",viewBox:"0 0 24 24"},"bell-off":{path:"M2,5.27L3.28,4L20,20.72L18.73,22L16.68,19.95C15.7,20.4 14.61,20.68 13.5,20.78V22H10.5V20.78C9.62,20.7 8.74,20.48 7.91,20.14L6.5,21.55L5.23,20.28L7.05,18.46L4,15V11A6,6 0 0,1 9.08,5.08L7.61,3.61C8.98,2.59 10.55,2 12,2A6,6 0 0,1 18,8V12L20,14V15H17.82L15.82,13H18V12A4,4 0 0,0 14,8C13.46,8 12.93,8.11 12.45,8.32L9.95,5.82C10.62,5.29 11.29,5.03 12,5.03A6,6 0 0,1 18,11V16L19.18,17.18L2,5.27Z",viewBox:"0 0 24 24"}},R={search:E,loading:b,user:y,close:O,check:T,plus:N,minus:S,arrowLeft:A,arrowRight:L,arrowUp:w,arrowDown:I},k=function(e){return R[e]?R[e]:M[e]},H={small:12,medium:16,large:24},D=function(t){var i=t.type,r=t.path,o=t.viewBox,a=void 0===o?"0 0 24 24":o,s=t.size,l=void 0===s?"medium":s,c=t.color,d=void 0===c?"#339af0":c,u=t.hoverColor,p=t.spin,h=void 0!==p&&p,f=t.rotate,m=t.align,v=void 0===m?"center":m,x=t.className,C=void 0===x?"":x,_=t.style,E=t.onClick,b=n.useMemo(function(){return"number"==typeof l?l:H[l]||16},[l]),y=n.useMemo(function(){if(r)return r;if(i){var e=k(i);return(null==e?void 0:e.path)||""}return""},[i,r]),O=n.useMemo(function(){if("0 0 24 24"!==a)return a;if(i){var e=k(i);return(null==e?void 0:e.viewBox)||"0 0 24 24"}return"0 0 24 24"},[i,a]);if(!y)return null;var T=g({width:b,height:b,fill:d,transform:f?"rotate(".concat(f,"deg)"):void 0},_);return e.jsx("div",{className:"icon-container align-".concat(v," ").concat(C),children:e.jsx("svg",{viewBox:O,className:"icon ".concat(h?"icon-spin":""),style:T,onMouseEnter:function(e){u&&(e.currentTarget.style.fill=u)},onMouseLeave:function(e){u&&(e.currentTarget.style.fill=d)},onClick:E,children:e.jsx("path",{d:y})})})},P=u.default.forwardRef(function(n,t){var i=n.children,r=n.variant,o=void 0===r?"secondary":r,a=n.size,s=void 0===a?"medium":a,l=n.disabled,c=void 0!==l&&l,d=n.loading,u=void 0!==d&&d,h=n.onClick,f=n.className,v=n.style,x=n.icon,C=n.type,_=void 0===C?"button":C,E=n.href,b=m(n,["children","variant","size","disabled","loading","onClick","className","style","icon","type","href"]),y=p.default("idp-btn","idp-btn--".concat(o),"idp-btn--".concat(s),{"idp-btn--disabled":c||u},f),O=function(e){c||u?null==e||e.preventDefault():h&&h()},T=function(){return u?e.jsx(D,{type:"loading",style:{marginRight:i?"2px":0}}):x?"string"==typeof x?e.jsx(D,{type:x,style:{marginRight:i?"2px":0}}):e.jsx("span",{style:{marginRight:i?"8px":0,display:"inline-flex",alignItems:"center"},children:x}):null};return"link"===o&&E?e.jsxs("a",g({ref:t,href:c?void 0:E,className:y,onClick:O,style:v},b,{children:[T(),i]})):e.jsxs("button",g({ref:t,type:_,className:y,onClick:O,disabled:c,style:v},b,{children:[T(),i]}))});P.displayName="Button";var j,V,z,U,B,F,G,$,Y,W,K,Z,X,q,J,Q,ee,ne,te,ie,re,oe,ae,se=P,le=function(n){var t=n.icon,i=n.image,r=n.description,o=void 0===r?"暂无数据":r,a=n.children,s=n.size,l=void 0===s?"middle":s,c=n.style,d=n.className;return e.jsxs("div",{className:"idp-empty idp-empty--".concat(l," ").concat(d||""),style:c,children:[e.jsxs("div",{className:"idp-empty__icon-wrapper",children:[t&&e.jsx("div",{className:"idp-empty__icon",children:t}),i&&e.jsx("img",{src:i,alt:"empty",className:"idp-empty__image"}),!t&&!i&&e.jsx(D,{type:"file-text",size:"large"===l?64:"small"===l?32:48,color:"#d9d9d9"})]}),e.jsx("div",{className:"idp-empty__description",children:o}),a&&e.jsx("div",{className:"idp-empty__actions",children:a})]})},ce=function(t){var i,r,o=t.value,a=t.defaultValue,s=t.onChange,l=t.options,c=void 0===l?[]:l,d=t.placeholder,u=void 0===d?"请选择":d,p=t.disabled,h=void 0!==p&&p,f=t.size,m=void 0===f?"middle":f,v=t.style,x=t.className,_=void 0===x?"":x,E=t.allowClear,b=void 0===E||E,y=t.expandTrigger,O=void 0===y?"click":y,T=t.changeOnSelect,N=void 0!==T&&T,S=t.fieldNames,A=void 0===S?{}:S,L=t.width,w=t.dropdownWidth,I=t.dropdownHeight,M=t.dropdownStyle,R=void 0===M?{}:M,k=t.dropdownClassName,H=void 0===k?"":k,P=t.placement,j=void 0===P?"bottomLeft":P,V=t.checkbox,z=void 0!==V&&V,U=t.autoWidth,B=void 0!==U&&U,F=n.useState(!1),G=F[0],$=F[1],Y=n.useState([]),W=Y[0],K=Y[1],Z=n.useState([]),X=Z[0],q=Z[1],J=n.useRef(null),Q=n.useRef(null),ee=A.label,ne=void 0===ee?"label":ee,te=A.value,ie=void 0===te?"value":te,re=A.children,oe=void 0===re?"children":re,ae=n.useCallback(function(e){return e[ie]||e.value},[ie]),se=n.useCallback(function(e){return e[ne]||e.label},[ne]),ce=n.useCallback(function(e){return e[oe]||e.children},[oe]),de=n.useCallback(function(e){for(var n=[],t=c,i=function(e){var i=t.find(function(n){return ae(n)===e});if(!i)return{value:n};n.push(i),t=ce(i)||[]},r=0,o=e;r<o.length;r++){var a=i(o[r]);if("object"==typeof a)return a.value}return n},[c,ae,ce]),ue=n.useCallback(function(e){for(var n=[],t=c,i=function(e){var i=t.find(function(n){return ae(n)===e});if(!i)return{value:n};n.push(i),t=ce(i)||[]},r=0,o=e;r<o.length;r++){var a=i(o[r]);if("object"==typeof a)return a.value}return n},[c,ae,ce]),pe=n.useCallback(function(){var e=void 0!==o?o:a;return!e||Array.isArray(e)&&0===e.length?[]:z?Array.isArray(e)&&Array.isArray(e[0])?e:[e]:Array.isArray(e)&&!Array.isArray(e[0])?[e]:[]},[o,a,z]),he=n.useState(pe()),fe=he[0],ge=he[1];n.useEffect(function(){var e=void 0!==o?o:a;if(!e)return ge([]),void K([]);if(z){var n=void 0;n=Array.isArray(e)?0===e.length?[]:Array.isArray(e[0])?e:[e]:[],ge(n);var t=n.map(function(e){return ue(e)});K(t.map(function(e){return e&&0!==e.length?e[e.length-1]:null}).filter(function(e){return null!==e}))}else{(n=Array.isArray(e)&&!Array.isArray(e[0])?e:e[0])&&n.length>0?ge([n]):ge([])}},[o,a,z,ue]);var me=n.useCallback(function(e){var n=[],t=function(e,i){for(var r=0,o=e;r<o.length;r++){var a=o[r];if(ae(a)===ae(i))return n.push(se(a)),!0;var s=ce(a);if(s&&s.length>0&&t(s,i))return n.unshift(se(a)),!0}return!1};return t(c,e),n},[c,ae,se,ce]),ve=n.useCallback(function(){if(z){if(!W||0===W.length)return u;var e=W.filter(function(e){var n=ce(e);return!n||0===n.length}).map(function(e){return me(e).join("/")});return e.length>3?e.slice(0,3).join(", ")+" +".concat(e.length-3):e.join(", ")}return 0!==fe.length&&fe[0]&&0!==fe[0].length?de(fe[0]).map(function(e){return se(e)}).join(" / "):u},[fe,W,z,de,se,u,me,ce]),xe=n.useCallback(function(e){var n=[],t=function(e,i,r){for(var o=0,a=e;o<a.length;o++){var s=a[o],l=C(C([],r,!0),[ae(s)],!1);if(ae(s)===ae(i))return n.push.apply(n,l),!0;var c=ce(s);if(c&&c.length>0&&t(c,i,l))return!0}return!1};return t(c,e,[]),n},[c,ae,ce]),Ce=n.useCallback(function(e,n){var t=xe(n),i=xe(e);if(i.length<=t.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!==i[r])return!1;return!0},[xe]),_e=n.useCallback(function(e){var n=[],t=function(e,i,r){for(var o=0,a=e;o<a.length;o++){var s=a[o];if(ae(s)===ae(i))return n.unshift(s),!0;var l=ce(s);if(l&&l.length>0&&t(l,i,C(C([],r,!0),[s],!1)))return n.unshift(s),!0}return!1};return t(c,e,[]),n},[c,ae,ce]),Ee=n.useCallback(function(e,n,t){if(e.stopPropagation(),z){var i=C([],W,!0),r=i.findIndex(function(e){return ae(e)===ae(n)});if(r>-1){i.splice(r,1);var a=i.filter(function(e){return!Ce(e,n)});i.splice.apply(i,C([0,i.length],a,!1))}else{_e(n).forEach(function(e){-1===i.findIndex(function(n){return ae(n)===ae(e)})&&i.push(e)})}K(i);var l=i.map(function(e){return xe(e)});null==s||s(l,i),void 0===o&&ge(l);var c=ce(n);if(c&&c.length>0){var d=C(C([],X.slice(0,t),!0),[ae(n)],!1);q(d)}else{d=X.slice(0,t+1);q(d)}}},[W,z,ae,ce,xe,_e,Ce,s,o,X]),be=n.useCallback(function(e,n){if(z){var t=C([],W,!0),i=t.findIndex(function(n){return ae(n)===ae(e)});if(i>-1){t.splice(i,1);var r=t.filter(function(n){return!Ce(n,e)});t.splice.apply(t,C([0,t.length],r,!1))}else{_e(e).forEach(function(e){-1===t.findIndex(function(n){return ae(n)===ae(e)})&&t.push(e)})}K(t);var a=t.map(function(e){return xe(e)});if(null==s||s(a,t),void 0===o&&ge(a),(c=ce(e))&&c.length>0){var l=C(C([],X.slice(0,n),!0),[ae(e)],!1);q(l)}else{l=X.slice(0,n+1);q(l)}}else{var c;l=C(C([],X.slice(0,n),!0),[ae(e)],!1);if(q(l),(c=ce(e))&&c.length>0){if(N){var d=de(l);null==s||s(l,d),void 0===o&&ge([l])}}else{var u=de(l);null==s||s(l,u),void 0===o&&ge([l]),$(!1),q([])}}},[X,W,z,ae,se,ce,N,de,xe,_e,Ce,s,o]),ye=n.useCallback(function(e,n){if("hover"===O){var t=C(C([],X.slice(0,n),!0),[ae(e)],!1);q(t)}},[X,O,ae]),Oe=n.useCallback(function(e,n,t){if(e.stopPropagation(),z){var i=ce(n);if(i&&i.length>0){var r=C(C([],X.slice(0,t),!0),[ae(n)],!1);q(r)}}else be(n,t)},[z,X,ae,ce,be]),Te=n.useCallback(function(e){e.stopPropagation(),z?(null==s||s([],[]),K([]),void 0===o&&ge([])):(null==s||s([],[]),void 0===o&&ge([])),q([])},[s,o,z]),Ne=n.useCallback(function(e,n){if(e.stopPropagation(),z){var t=C([],W,!0),i=ae(n),r=t.findIndex(function(e){return ae(e)===i});if(r>-1){t.splice(r,1);var a=t.filter(function(e){return!Ce(e,n)});t.splice.apply(t,C([0,t.length],a,!1));for(var l=_e(n),c=function(e){var n=l[e],i=ae(n);if(!t.some(function(e){return ae(e)!==i&&Ce(e,n)})){var r=t.findIndex(function(e){return ae(e)===i});r>-1&&t.splice(r,1)}},d=l.length-2;d>=0;d--)c(d);K(t);var u=t.map(function(e){return xe(e)});null==s||s(u,t),void 0===o&&ge(u)}}},[W,z,ae,xe,_e,Ce,s,o]),Se=n.useCallback(function(){h||$(!G)},[G,h]);n.useEffect(function(){var e=function(e){J.current&&!J.current.contains(e.target)&&($(!1),q([]))};return G&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}},[G]);var Ae=n.useCallback(function(e){if(0===e)return c;for(var n=X.slice(0,e),t=c,i=function(e){var n=t.find(function(n){return ae(n)===e});if(!n)return{value:[]};t=ce(n)||[]},r=0,o=n;r<o.length;r++){var a=i(o[r]);if("object"==typeof a)return a.value}return t},[c,X,ae,ce]);n.useEffect(function(){z||(G&&fe.length>0&&fe[0]?q(fe[0]):G||q([]))},[G,fe,z]);var Le=n.useCallback(function(e){return!!z&&W.some(function(n){return ae(n)===ae(e)})},[W,z,ae]),we=n.useCallback(function(e,n){return!z&&(!(n>=fe.length||!fe[0])&&fe[0][n]===ae(e))},[fe,z,ae]),Ie=n.useCallback(function(e,n){return!(n>=X.length)&&X[n]===ae(e)},[X,ae]),Me=n.useCallback(function(){if(0===X.length)return 1;for(var e=X.length,n=c,t=function(e){var t=n.find(function(n){return ae(n)===e});if(!t)return"break";n=ce(t)||[]},i=0,r=X;i<r.length;i++){if("break"===t(r[i]))break}return n&&n.length>0&&e++,e},[X,c,ae,ce]),Re=n.useCallback(function(){var e=g({},v);return L&&(e.width="number"==typeof L?"".concat(L,"px"):L),B||L?B&&!L?e.minWidth="180px":!B&&L&&(e.maxWidth="number"==typeof L?"".concat(L,"px"):L):(e.minWidth="180px",e.maxWidth="100%"),e},[L,v,B]),ke=n.useCallback(function(){var e=g({},R);switch(j){case"bottomLeft":e.top="100%",e.left="0",e.marginTop="4px";break;case"bottomRight":e.top="100%",e.right="0",e.marginTop="4px";break;case"topLeft":e.bottom="100%",e.left="0",e.marginBottom="4px";break;case"topRight":e.bottom="100%",e.right="0",e.marginBottom="4px"}return w&&(e.width="number"==typeof w?"".concat(w,"px"):w),I&&(e.maxHeight="number"==typeof I?"".concat(I,"px"):I),e},[w,I,R,j]);return e.jsxs("div",{ref:J,className:"cascader cascader-".concat(m," ").concat(_," ").concat(h?"cascader-disabled":""," ").concat(G?"cascader-open":""),style:Re(),children:[e.jsxs("div",{className:"cascader-trigger",onClick:Se,children:[e.jsx("span",{className:"cascader-selection-placeholder ".concat(z?W.length>0?"cascader-selection-hidden":"":fe.length>0&&(null===(i=fe[0])||void 0===i?void 0:i.length)>0?"cascader-selection-hidden":""),children:u}),z?e.jsx("div",{className:"cascader-selection-value ".concat(0===W.length?"cascader-selection-hidden":""),children:W.filter(function(e){var n=ce(e);return!n||0===n.length}).map(function(n){var t=me(n);return e.jsxs("span",{className:"cascader-tag",children:[e.jsx("span",{className:"cascader-tag-content",children:t.join("/")}),e.jsx("span",{className:"cascader-tag-close",onClick:function(e){return!h&&Ne(e,n)},children:e.jsx(D,{type:"close",size:10})})]},ae(n))})}):e.jsx("span",{className:"cascader-selection-value ".concat(fe[0]&&0!==fe[0].length?"":"cascader-selection-hidden"),children:ve()}),e.jsx("span",{className:"cascader-arrow",children:e.jsx(D,{type:"arrowDown",size:12})}),b&&(z?W.length>0:fe.length>0&&(null===(r=fe[0])||void 0===r?void 0:r.length)>0)&&!h&&e.jsx("span",{className:"cascader-clear",onClick:Te,children:e.jsx(D,{type:"close",size:12})})]}),G&&e.jsx("div",{className:"cascader-dropdown cascader-dropdown-".concat(j," ").concat(H),ref:Q,style:ke(),children:e.jsx("div",{className:"cascader-menus",style:{width:w?void 0:"".concat(180*Me(),"px")},children:Array.from({length:Me()}).map(function(n,t){return function(n){var t=Ae(n);return t&&0!==t.length?e.jsx("ul",{className:"cascader-menu cascader-menu-".concat(n," ").concat(z?"cascader-menu-checkbox":""),children:t.map(function(t,i){var r=z?Le(t):we(t,n),o=Ie(t,n),a=ce(t)&&ce(t).length>0,s=t.disabled;return e.jsxs("li",{className:"cascader-menu-item ".concat(r?"cascader-menu-item-selected":""," ").concat(o?"cascader-menu-item-active":""," ").concat(s?"cascader-menu-item-disabled":""),onClick:function(){return!s&&(z?void 0:be(t,n))},onMouseEnter:function(){return!s&&ye(t,n)},children:[z&&e.jsx("span",{className:"cascader-menu-item-checkbox",onClick:function(e){return!s&&Ee(e,t,n)},children:e.jsx("input",{type:"checkbox",checked:r,readOnly:!0})}),e.jsx("span",{className:"cascader-menu-item-content",onClick:function(e){return!s&&Oe(e,t,n)},children:se(t)}),a&&e.jsx("span",{className:"cascader-menu-item-expand-icon",children:e.jsx(D,{type:"arrowRight",size:12,color:"#bfbfbf"})})]},"".concat(ae(t),"-").concat(i))})}):e.jsx("div",{className:"cascader-menu cascader-menu-empty",children:e.jsx(le,{size:"small",description:"暂无数据"})})}(t)})})})]})},de=function(e,n){return"var(".concat(e,", ").concat(n,")")},ue=h.default.div(j||(j=_(["\n position: relative;\n display: inline-block;\n width: ",";\n min-width: 180px;\n font-size: 14px;\n color: ",";\n box-sizing: border-box;\n\n &.treeselect-wrapper {\n /* 外部可通过 .treeselect-wrapper 选择器覆盖样式 */\n }\n\n ","\n"],["\n position: relative;\n display: inline-block;\n width: ",";\n min-width: 180px;\n font-size: 14px;\n color: ",";\n box-sizing: border-box;\n\n &.treeselect-wrapper {\n /* 外部可通过 .treeselect-wrapper 选择器覆盖样式 */\n }\n\n ","\n"])),function(e){return e.$width||"100%"},de("--idp-text-color","rgba(0, 0, 0, 0.85)"),function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),pe=h.default.div(V||(V=_(["\n position: relative;\n display: flex;\n align-items: center;\n min-height: 32px;\n padding: 4px 28px 4px 11px;\n background-color: ",";\n border: 1px solid ",";\n border-radius: ",";\n cursor: pointer;\n transition: all "," ",";\n box-sizing: border-box;\n\n &.treeselect-selection {\n /* 外部可通过 .treeselect-selection 选择器覆盖样式 */\n }\n\n &:hover {\n border-color: ",";\n }\n\n ","\n\n ","\n\n ","\n\n ","\n"],["\n position: relative;\n display: flex;\n align-items: center;\n min-height: 32px;\n padding: 4px 28px 4px 11px;\n background-color: ",";\n border: 1px solid ",";\n border-radius: ",";\n cursor: pointer;\n transition: all "," ",";\n box-sizing: border-box;\n\n &.treeselect-selection {\n /* 外部可通过 .treeselect-selection 选择器覆盖样式 */\n }\n\n &:hover {\n border-color: ",";\n }\n\n ","\n\n ","\n\n ","\n\n ","\n"])),de("--idp-bg-color-white","#fff"),de("--idp-border-color-extra-light","#d9d9d9"),de("--idp-border-radius-sm","4px"),de("--idp-transition-duration","0.2s"),de("--idp-transition-timing-function","ease-in-out"),de("--idp-primary-hover-color","#40a9ff"),function(e){return e.$open&&"\n border-color: ".concat(de("--idp-primary-color","#1890ff"),";\n box-shadow: ").concat(de("--idp-input-box-shadow-focus","0 0 0 2px rgba(51, 154, 240, 0.2)"),";\n ")},function(e){return e.$disabled&&"\n background-color: ".concat(de("--idp-input-disabled-bg","#f5f5f5"),";\n border-color: ").concat(de("--idp-border-color-extra-light","#d9d9d9"),";\n cursor: not-allowed;\n ")},function(e){var n=e.$size;return"large"===n?"\n min-height: 40px;\n padding: 6px 32px 6px 15px;\n font-size: 16px;\n ":"small"===n?"\n min-height: 24px;\n padding: 2px 24px 2px 7px;\n font-size: 14px;\n ":""},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),he=h.default.div(z||(z=_(["\n flex: 1;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 4px;\n overflow: hidden;\n\n &.treeselect-selection__rendered {\n /* 外部可通过 .treeselect-selection__rendered 选择器覆盖样式 */\n }\n\n ","\n"],["\n flex: 1;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 4px;\n overflow: hidden;\n\n &.treeselect-selection__rendered {\n /* 外部可通过 .treeselect-selection__rendered 选择器覆盖样式 */\n }\n\n ","\n"])),function(e){return e.$isPlaceholder&&"\n color: ".concat(de("--idp-input-placeholder-color","#bfbfbf"),";\n ")}),fe=h.default.span(U||(U=_(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n &.treeselect-selection__item {\n /* 外部可通过 .treeselect-selection__item 选择器覆盖样式 */\n }\n"],["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n &.treeselect-selection__item {\n /* 外部可通过 .treeselect-selection__item 选择器覆盖样式 */\n }\n"]))),ge=h.default.span(B||(B=_(["\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n padding: 2px 8px;\n background-color: ",";\n border: 1px solid ",";\n border-radius: ",";\n font-size: 12px;\n line-height: 1.5;\n\n &.treeselect-selection__tag {\n /* 外部可通过 .treeselect-selection__tag 选择器覆盖样式 */\n }\n\n &.treeselect-selection__tag--more {\n background-color: transparent;\n border-color: transparent;\n color: ",";\n }\n\n ","\n\n ","\n"],["\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n padding: 2px 8px;\n background-color: ",";\n border: 1px solid ",";\n border-radius: ",";\n font-size: 12px;\n line-height: 1.5;\n\n &.treeselect-selection__tag {\n /* 外部可通过 .treeselect-selection__tag 选择器覆盖样式 */\n }\n\n &.treeselect-selection__tag--more {\n background-color: transparent;\n border-color: transparent;\n color: ",";\n }\n\n ","\n\n ","\n"])),de("--idp-bg-color-light","#f5f5f5"),de("--idp-border-color-light","#f0f0f0"),de("--idp-border-radius-sm","4px"),de("--idp-text-color-secondary","rgba(0, 0, 0, 0.65)"),function(e){var n=e.$size;return"large"===n?"\n font-size: 14px;\n padding: 4px 10px;\n ":"small"===n?"\n font-size: 12px;\n padding: 1px 6px;\n ":""},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),me=h.default.span(F||(F=_(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n &.treeselect-selection__tag-content {\n /* 外部可通过 .treeselect-selection__tag-content 选择器覆盖样式 */\n }\n"],["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n &.treeselect-selection__tag-content {\n /* 外部可通过 .treeselect-selection__tag-content 选择器覆盖样式 */\n }\n"]))),ve=h.default.span(G||(G=_(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-left: 4px;\n padding: 2px;\n color: ",";\n cursor: pointer;\n transition: color ",";\n\n &.treeselect-selection__tag-close {\n /* 外部可通过 .treeselect-selection__tag-close 选择器覆盖样式 */\n }\n\n &:hover {\n color: ",";\n }\n"],["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-left: 4px;\n padding: 2px;\n color: ",";\n cursor: pointer;\n transition: color ",";\n\n &.treeselect-selection__tag-close {\n /* 外部可通过 .treeselect-selection__tag-close 选择器覆盖样式 */\n }\n\n &:hover {\n color: ",";\n }\n"])),de("--idp-text-color-tertiary","rgba(0, 0, 0, 0.45)"),de("--idp-transition-duration","0.2s"),de("--idp-text-color","rgba(0, 0, 0, 0.85)")),xe=h.default.div($||($=_(["\n flex: 1;\n min-width: 30px;\n\n &.treeselect-selection__search {\n /* 外部可通过 .treeselect-selection__search 选择器覆盖样式 */\n }\n"],["\n flex: 1;\n min-width: 30px;\n\n &.treeselect-selection__search {\n /* 外部可通过 .treeselect-selection__search 选择器覆盖样式 */\n }\n"]))),Ce=h.default.input(Y||(Y=_(["\n width: 100%;\n padding: 0;\n border: none;\n outline: none;\n background: transparent;\n font-size: 14px;\n color: ",";\n\n &::placeholder {\n color: ",";\n }\n\n &.treeselect-selection__search-input,\n &.treeselect-dropdown__search-input {\n /* 外部可通过这些选择器覆盖样式 */\n }\n"],["\n width: 100%;\n padding: 0;\n border: none;\n outline: none;\n background: transparent;\n font-size: 14px;\n color: ",";\n\n &::placeholder {\n color: ",";\n }\n\n &.treeselect-selection__search-input,\n &.treeselect-dropdown__search-input {\n /* 外部可通过这些选择器覆盖样式 */\n }\n"])),de("--idp-text-color","rgba(0, 0, 0, 0.85)"),de("--idp-input-placeholder-color","#bfbfbf")),_e=h.default.span(W||(W=_(["\n position: absolute;\n right: 28px;\n top: 50%;\n transform: translateY(-50%);\n display: flex;\n align-items: center;\n justify-content: center;\n width: 18px;\n height: 18px;\n color: ",";\n cursor: pointer;\n transition: color ",";\n z-index: 1;\n\n &.treeselect-selection__clear {\n /* 外部可通过 .treeselect-selection__clear 选择器覆盖样式 */\n }\n\n &:hover {\n color: ",";\n }\n\n ","\n"],["\n position: absolute;\n right: 28px;\n top: 50%;\n transform: translateY(-50%);\n display: flex;\n align-items: center;\n justify-content: center;\n width: 18px;\n height: 18px;\n color: ",";\n cursor: pointer;\n transition: color ",";\n z-index: 1;\n\n &.treeselect-selection__clear {\n /* 外部可通过 .treeselect-selection__clear 选择器覆盖样式 */\n }\n\n &:hover {\n color: ",";\n }\n\n ","\n"])),de("--idp-text-color-tertiary","rgba(0, 0, 0, 0.45)"),de("--idp-transition-duration","0.2s"),de("--idp-text-color","rgba(0, 0, 0, 0.85)"),function(e){var n=e.$size;return"large"===n?"right: 32px;":"small"===n?"right: 24px;":""}),Ee=h.default.span(K||(K=_(["\n position: absolute;\n right: 11px;\n top: 50%;\n transform: translateY(-50%);\n display: flex;\n align-items: center;\n justify-content: center;\n color: ",";\n transition: transform ",";\n pointer-events: none;\n\n &.treeselect-selection__arrow {\n /* 外部可通过 .treeselect-selection__arrow 选择器覆盖样式 */\n }\n\n ","\n\n ","\n"],["\n position: absolute;\n right: 11px;\n top: 50%;\n transform: translateY(-50%);\n display: flex;\n align-items: center;\n justify-content: center;\n color: ",";\n transition: transform ",";\n pointer-events: none;\n\n &.treeselect-selection__arrow {\n /* 外部可通过 .treeselect-selection__arrow 选择器覆盖样式 */\n }\n\n ","\n\n ","\n"])),de("--idp-text-color-tertiary","rgba(0, 0, 0, 0.45)"),de("--idp-transition-duration","0.2s"),function(e){return e.$open&&"\n transform: translateY(-50%) rotate(180deg);\n "},function(e){var n=e.$size;return"large"===n?"right: 15px;":"small"===n?"right: 7px;":""}),be=h.default.div(Z||(Z=_(["\n position: absolute;\n top: 100%;\n left: 0;\n z-index: 1050;\n margin-top: 4px;\n background-color: ",";\n border-radius: ",";\n box-shadow: ",";\n overflow: hidden;\n width: ",";\n max-height: ",";\n\n &.treeselect-dropdown {\n /* 外部可通过 .treeselect-dropdown 选择器覆盖样式 */\n }\n\n ","\n"],["\n position: absolute;\n top: 100%;\n left: 0;\n z-index: 1050;\n margin-top: 4px;\n background-color: ",";\n border-radius: ",";\n box-shadow: ",";\n overflow: hidden;\n width: ",";\n max-height: ",";\n\n &.treeselect-dropdown {\n /* 外部可通过 .treeselect-dropdown 选择器覆盖样式 */\n }\n\n ","\n"])),de("--idp-bg-color-white","#fff"),de("--idp-border-radius-sm","4px"),de("--idp-shadow-lg","0 8px 24px rgba(0, 0, 0, 0.15)"),function(e){return e.$width||"100%"},function(e){return e.$height||"300px"},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),ye=h.default.div(X||(X=_(["\n padding: 8px 12px;\n border-bottom: 1px solid ",";\n\n &.treeselect-dropdown__search {\n /* 外部可通过 .treeselect-dropdown__search 选择器覆盖样式 */\n }\n"],["\n padding: 8px 12px;\n border-bottom: 1px solid ",";\n\n &.treeselect-dropdown__search {\n /* 外部可通过 .treeselect-dropdown__search 选择器覆盖样式 */\n }\n"])),de("--idp-border-color-light","#f0f0f0")),Oe=h.default.input(q||(q=_(["\n width: 100%;\n padding: 4px 8px;\n background-color: ",";\n border: none;\n border-radius: ",";\n outline: none;\n font-size: 14px;\n color: ",";\n\n &::placeholder {\n color: ",";\n }\n"],["\n width: 100%;\n padding: 4px 8px;\n background-color: ",";\n border: none;\n border-radius: ",";\n outline: none;\n font-size: 14px;\n color: ",";\n\n &::placeholder {\n color: ",";\n }\n"])),de("--idp-bg-color-light","#f5f5f5"),de("--idp-border-radius-sm","4px"),de("--idp-text-color","rgba(0, 0, 0, 0.85)"),de("--idp-input-placeholder-color","#bfbfbf")),Te=h.default.div(J||(J=_(["\n max-height: 300px;\n overflow-y: auto;\n padding: 4px 0;\n\n &.treeselect-dropdown__content {\n /* 外部可通过 .treeselect-dropdown__content 选择器覆盖样式 */\n }\n\n /* 滚动条样式 */\n &::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.15);\n border-radius: 3px;\n }\n\n &::-webkit-scrollbar-thumb:hover {\n background-color: rgba(0, 0, 0, 0.25);\n }\n\n &::-webkit-scrollbar-track {\n background-color: transparent;\n }\n"],["\n max-height: 300px;\n overflow-y: auto;\n padding: 4px 0;\n\n &.treeselect-dropdown__content {\n /* 外部可通过 .treeselect-dropdown__content 选择器覆盖样式 */\n }\n\n /* 滚动条样式 */\n &::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.15);\n border-radius: 3px;\n }\n\n &::-webkit-scrollbar-thumb:hover {\n background-color: rgba(0, 0, 0, 0.25);\n }\n\n &::-webkit-scrollbar-track {\n background-color: transparent;\n }\n"]))),Ne=h.default.div(Q||(Q=_(["\n padding: 32px 0;\n\n &.treeselect-dropdown__empty {\n /* 外部可通过 .treeselect-dropdown__empty 选择器覆盖样式 */\n }\n"],["\n padding: 32px 0;\n\n &.treeselect-dropdown__empty {\n /* 外部可通过 .treeselect-dropdown__empty 选择器覆盖样式 */\n }\n"]))),Se=h.default.div(ee||(ee=_(["\n display: flex;\n flex-direction: column;\n\n &.treeselect-tree-node-wrapper {\n /* 外部可通过 .treeselect-tree-node-wrapper 选择器覆盖样式 */\n }\n"],["\n display: flex;\n flex-direction: column;\n\n &.treeselect-tree-node-wrapper {\n /* 外部可通过 .treeselect-tree-node-wrapper 选择器覆盖样式 */\n }\n"]))),Ae=h.default.div(ne||(ne=_(["\n display: flex;\n align-items: center;\n padding: 8px 12px;\n padding-left: ",";\n cursor: pointer;\n transition: background-color ",";\n user-select: none;\n\n &.treeselect-tree-node {\n /* 外部可通过 .treeselect-tree-node 选择器覆盖样式 */\n }\n\n &:hover {\n background-color: ",";\n }\n\n ","\n\n ","\n\n ","\n"],["\n display: flex;\n align-items: center;\n padding: 8px 12px;\n padding-left: ",";\n cursor: pointer;\n transition: background-color ",";\n user-select: none;\n\n &.treeselect-tree-node {\n /* 外部可通过 .treeselect-tree-node 选择器覆盖样式 */\n }\n\n &:hover {\n background-color: ",";\n }\n\n ","\n\n ","\n\n ","\n"])),function(e){return"".concat(20*e.$level+12,"px")},de("--idp-transition-duration","0.2s"),de("--idp-bg-color-light","#f5f5f5"),function(e){return e.$selected&&"\n background-color: #e6f7ff;\n\n &:hover {\n background-color: #bae7ff;\n }\n "},function(e){return e.$disabled&&"\n color: ".concat(de("--idp-text-color-tertiary","rgba(0, 0, 0, 0.45)"),";\n cursor: not-allowed;\n\n &:hover {\n background-color: transparent;\n }\n ")},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),Le=h.default.span(te||(te=_(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n margin-right: 4px;\n cursor: pointer;\n transition: transform ",";\n\n &.treeselect-tree-node__expand-icon {\n /* 外部可通过 .treeselect-tree-node__expand-icon 选择器覆盖样式 */\n }\n\n ","\n\n ","\n"],["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n margin-right: 4px;\n cursor: pointer;\n transition: transform ",";\n\n &.treeselect-tree-node__expand-icon {\n /* 外部可通过 .treeselect-tree-node__expand-icon 选择器覆盖样式 */\n }\n\n ","\n\n ","\n"])),de("--idp-transition-duration","0.2s"),function(e){return e.$expanded&&"\n transform: rotate(90deg);\n "},function(e){return!e.$hasChildren&&"\n visibility: hidden;\n cursor: default;\n "}),we=h.default.span(ie||(ie=_(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-right: 8px;\n\n &.treeselect-tree-node__checkbox {\n /* 外部可通过 .treeselect-tree-node__checkbox 选择器覆盖样式 */\n }\n"],["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-right: 8px;\n\n &.treeselect-tree-node__checkbox {\n /* 外部可通过 .treeselect-tree-node__checkbox 选择器覆盖样式 */\n }\n"]))),Ie=h.default.span(re||(re=_(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n border: 1px solid ",";\n border-radius: 2px;\n background-color: ",";\n transition: all ",";\n\n &.treeselect-tree-node__checkbox-inner {\n /* 外部可通过 .treeselect-tree-node__checkbox-inner 选择器覆盖样式 */\n }\n\n .treeselect-tree-node:hover & {\n border-color: ",";\n }\n\n ","\n"],["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n border: 1px solid ",";\n border-radius: 2px;\n background-color: ",";\n transition: all ",";\n\n &.treeselect-tree-node__checkbox-inner {\n /* 外部可通过 .treeselect-tree-node__checkbox-inner 选择器覆盖样式 */\n }\n\n .treeselect-tree-node:hover & {\n border-color: ",";\n }\n\n ","\n"])),de("--idp-border-color-extra-light","#d9d9d9"),de("--idp-bg-color-white","#fff"),de("--idp-transition-duration","0.2s"),de("--idp-primary-color","#1890ff"),function(e){return e.$checked&&"\n background-color: ".concat(de("--idp-primary-color","#1890ff"),";\n border-color: ").concat(de("--idp-primary-color","#1890ff"),";\n ")}),Me=h.default.span(oe||(oe=_(["\n flex: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n &.treeselect-tree-node__title {\n /* 外部可通过 .treeselect-tree-node__title 选择器覆盖样式 */\n }\n"],["\n flex: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n &.treeselect-tree-node__title {\n /* 外部可通过 .treeselect-tree-node__title 选择器覆盖样式 */\n }\n"]))),Re=h.default.div(ae||(ae=_(["\n display: flex;\n flex-direction: column;\n\n &.treeselect-tree-node-children {\n /* 外部可通过 .treeselect-tree-node-children 选择器覆盖样式 */\n }\n"],["\n display: flex;\n flex-direction: column;\n\n &.treeselect-tree-node-children {\n /* 外部可通过 .treeselect-tree-node-children 选择器覆盖样式 */\n }\n"]))),ke=function(t){var i=t.treeData,r=void 0===i?[]:i,o=t.value,a=t.defaultValue,s=t.onChange,l=t.placeholder,c=void 0===l?"请选择":l,d=t.disabled,u=void 0!==d&&d,h=t.multiple,f=void 0!==h&&h,g=t.maxTagCount,m=t.allowClear,v=void 0===m||m,x=t.size,_=void 0===x?"middle":x,E=t.styles,b=t.className,y=t.dropdownWidth,O=t.dropdownHeight,T=void 0===O?300:O,N=t.showSearch,S=void 0!==N&&N,A=t.filterOption,L=t.autoClearSearchValue,w=void 0===L||L,I=t.fieldNames,M=void 0===I?{}:I,R=t.width,k=n.useState(!1),H=k[0],P=k[1],j=n.useState(function(){return a?Array.isArray(a)?a:[a]:[]}),V=j[0],z=j[1],U=n.useState(""),B=U[0],F=U[1],G=n.useRef(null),$=n.useRef(null),Y=n.useState(new Set),W=Y[0],K=Y[1],Z=M.title,X=void 0===Z?"title":Z,q=M.value,J=void 0===q?"value":q,Q=M.children,ee=void 0===Q?"children":Q,ne=n.useCallback(function(e){return e[J]||e.value},[J]),te=n.useCallback(function(e){return e[X]||e.title},[X]),ie=n.useCallback(function(e){return e[ee]},[ee]),re=n.useMemo(function(){return void 0!==o?f?Array.isArray(o)?o:[o]:null!==o&&""!==o?[o]:[]:V},[o,V,f]),oe=n.useCallback(function(e,n){void 0===n&&(n=r);for(var t=0,i=n;t<i.length;t++){var o=i[t];if(ne(o)===e)return o;var a=ie(o);if(a&&a.length>0){var s=oe(e,a);if(s)return s}}return null},[r,ne,ie]),ae=n.useMemo(function(){return re.map(function(e){return oe(e)}).filter(Boolean)},[re,oe]);n.useEffect(function(){var e=function(e){G.current&&!G.current.contains(e.target)&&(P(!1),F(""))};return H&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}},[H]),n.useEffect(function(){H&&S&&$.current&&setTimeout(function(){var e;return null===(e=$.current)||void 0===e?void 0:e.focus()},0)},[H,S]);var se=n.useCallback(function(e){var n=ne(e);if(f){var t=void 0,i=(t=re.includes(n)?re.filter(function(e){return e!==n}):C(C([],re,!0),[n],!1)).map(function(e){return oe(e)}).filter(Boolean);void 0===o&&z(t),null==s||s(t,i)}else void 0===o&&z([n]),null==s||s(n,[e]),P(!1);w&&F("")},[re,f,ne,oe,o,s,w]),ce=n.useCallback(function(e){e.stopPropagation(),void 0===o&&z([]),null==s||s(f?[]:void 0,[])},[o,s,f]),de=n.useCallback(function(e,n){e.stopPropagation();var t=re.filter(function(e){return e!==n}),i=t.map(function(e){return oe(e)}).filter(Boolean);void 0===o&&z(t),null==s||s(t,i)},[re,oe,o,s]),ke=n.useCallback(function(e,n){e.stopPropagation();var t=ne(n),i=new Set(W);i.has(t)?i.delete(t):i.add(t),K(i)},[W,ne]),He=n.useCallback(function(e){if(!B)return!0;var n=String(te(e));return A?A(B,e):n.toLowerCase().includes(B.toLowerCase())},[B,te,A]),De=n.useCallback(function(e){var n=ie(e);return!(!n||0===n.length)&&n.some(function(e){return He(e)||De(e)})},[ie,He]),Pe=n.useCallback(function(n,t){void 0===t&&(t=0);var i=ne(n),r=te(n),o=ie(n),a=o&&o.length>0,s=re.includes(i),l=W.has(i),c=!!n.disabled,d=He(n),u=De(n);return d||u?e.jsxs(Se,{className:"treeselect-tree-node-wrapper",children:[e.jsxs(Ae,{className:p.default("treeselect-tree-node",{"treeselect-tree-node--selected":s,"treeselect-tree-node--disabled":c,"treeselect-tree-node--leaf":!a}),$selected:s,$disabled:c,$level:t,$styles:null==E?void 0:E.treeNode,onClick:function(){return!c&&se(n)},children:[e.jsx(Le,{className:p.default("treeselect-tree-node__expand-icon",{"treeselect-tree-node__expand-icon--expanded":l,"treeselect-tree-node__expand-icon--no-children":!a}),$expanded:l,$hasChildren:!!a,onClick:function(e){return a&&ke(e,n)},children:a&&e.jsx(D,{type:"arrowRight",size:12,color:"#bfbfbf"})}),f&&e.jsx(we,{className:"treeselect-tree-node__checkbox",children:e.jsx(Ie,{className:p.default("treeselect-tree-node__checkbox-inner",{"treeselect-tree-node__checkbox-inner--checked":s}),$checked:s,children:s&&e.jsx(D,{type:"check",size:10,color:"#fff"})})}),e.jsx(Me,{className:"treeselect-tree-node__title",children:r})]}),a&&l&&e.jsx(Re,{className:"treeselect-tree-node-children",children:o.map(function(e){return Pe(e,t+1)})})]},String(i)):null},[re,W,ne,te,ie,f,He,De,se,ke,null==E?void 0:E.treeNode]),je=n.useCallback(function(){if(!f){var n=ae[0];return n?e.jsx(fe,{className:"treeselect-selection__item",children:te(n)}):c}if(0===ae.length)return c;var t=ae,i=0;return void 0!==g&&g>0&&ae.length>g&&(t=ae.slice(0,g),i=ae.length-g),e.jsxs(e.Fragment,{children:[t.map(function(n){return e.jsxs(ge,{className:p.default("treeselect-selection__tag",{"treeselect-selection__tag--more":!1}),$size:_,$styles:null==E?void 0:E.tag,children:[e.jsx(me,{className:"treeselect-selection__tag-content",children:te(n)}),e.jsx(ve,{className:"treeselect-selection__tag-close",onClick:function(e){return de(e,ne(n))},children:e.jsx(D,{type:"close",size:10})})]},ne(n))}),i>0&&e.jsxs(ge,{className:"treeselect-selection__tag treeselect-selection__tag--more",$size:_,$styles:null==E?void 0:E.tag,children:["+",i]})]})},[f,ae,g,ne,te,de,c,_,null==E?void 0:E.tag]),Ve=p.default("treeselect-wrapper",b);return e.jsxs(ue,{ref:G,className:Ve,$width:R,$styles:null==E?void 0:E.wrapper,children:[e.jsxs(pe,{className:p.default("treeselect-selection",{"treeselect-selection--open":H,"treeselect-selection--disabled":u}),$open:H,$disabled:u,$size:_,$styles:null==E?void 0:E.selection,onClick:function(){u||(P(!H),H||F(""))},children:[S&&H?e.jsx(xe,{className:"treeselect-selection__search",children:e.jsx(Ce,{ref:$,type:"text",className:"treeselect-selection__search-input",value:B,onChange:function(e){return F(e.target.value)},placeholder:0===ae.length?c:"",onClick:function(e){return e.stopPropagation()}})}):e.jsx(he,{className:p.default("treeselect-selection__rendered",{"treeselect-selection__rendered--placeholder":0===ae.length}),$isPlaceholder:0===ae.length,children:je()}),v&&!u&&ae.length>0&&e.jsx(_e,{className:"treeselect-selection__clear",$size:_,onClick:ce,children:e.jsx(D,{type:"close",size:12})}),e.jsx(Ee,{className:p.default("treeselect-selection__arrow",{"treeselect-selection__arrow--open":H}),$open:H,$size:_,children:e.jsx(D,{type:"arrowDown",size:12})})]}),H&&e.jsxs(be,{className:"treeselect-dropdown",$width:y,$height:T,$styles:null==E?void 0:E.dropdown,children:[S&&!H&&e.jsx(ye,{className:"treeselect-dropdown__search",children:e.jsx(Oe,{ref:$,type:"text",className:"treeselect-dropdown__search-input",value:B,onChange:function(e){return F(e.target.value)},placeholder:"搜索"})}),e.jsx(Te,{className:"treeselect-dropdown__content",children:r.length>0?r.map(function(e){return Pe(e)}):e.jsx(Ne,{className:"treeselect-dropdown__empty",children:e.jsx(le,{size:"small",description:"暂无数据"})})})]})]})},He=function(t){var i=t.color,o=t.onChange,a=t.onColorChange,s=t.disabled,l=void 0!==s&&s,c=t.className,d=t.style,u=t.alpha,h=void 0!==u&&u,f=t.presetColors,g=void 0===f?[]:f,m=t.gradient,v=void 0!==m&&m,x=t.children,_=n.useState(!1),E=_[0],b=_[1],y=n.useState(i),O=y[0],T=y[1],N=n.useState([i,"#ffffff"]),S=N[0],A=N[1],L=n.useState(90),w=L[0],I=L[1],M=n.useRef(null),R=n.useRef(null),k=p.default("idp-color-picker",{"idp-color-picker--disabled":l,"idp-color-picker--open":E},c),H=function(e,n){if(v&&void 0!==n){var t=C([],S,!0);t[n]=e.hex,A(t),D()}else T(e.hex),null==a||a(e.hex)},D=function(){var e="linear-gradient(".concat(w,"deg, ").concat(S[0],", ").concat(S[1],")");T(e),null==a||a(e)},P=function(e){e.stopPropagation(),l||b(!E)};return n.useEffect(function(){var e=function(e){var n=M.current&&M.current.contains(e.target),t=R.current&&R.current.contains(e.target);n||t||b(!1)};return E&&document.addEventListener("click",e),function(){document.removeEventListener("click",e)}},[E]),n.useEffect(function(){if(v&&i&&i.startsWith("linear-gradient")){var e=i.match(/linear-gradient\((\d+)deg,\s*(#[0-9a-fA-F]+),\s*(#[0-9a-fA-F]+)\)/);e&&(I(parseInt(e[1])),A([e[2],e[3]]))}},[i,v]),e.jsxs("div",{className:k,style:d,children:[x?e.jsx("div",{ref:R,className:"idp-color-picker-trigger-container",onClick:P,children:x}):e.jsx("div",{ref:R,className:"idp-color-picker-default-trigger",style:{background:i},onClick:P}),E&&e.jsxs("div",{className:"idp-color-picker-popup",children:[e.jsxs("div",{className:"idp-color-picker-content",ref:M,children:[v?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"idp-color-picker-gradient",children:[e.jsxs("div",{className:"idp-color-picker-gradient-item",children:[e.jsx("div",{className:"idp-color-picker-gradient-label",children:"起始颜色"}),e.jsx(r.SketchPicker,{color:S[0],onChange:function(e){H(e,0)},disableAlpha:!h})]}),e.jsxs("div",{className:"idp-color-picker-gradient-item",children:[e.jsx("div",{className:"idp-color-picker-gradient-label",children:"结束颜色"}),e.jsx(r.SketchPicker,{color:S[1],onChange:function(e){H(e,1)},disableAlpha:!h})]})]}),e.jsxs("div",{className:"idp-color-picker-gradient-direction",children:[e.jsxs("div",{className:"idp-color-picker-gradient-direction-label",children:["渐变方向: ",w,"°"]}),e.jsx("input",{type:"range",min:"0",max:"360",value:w,onChange:function(e){I(parseInt(e.target.value)),D()},className:"idp-color-picker-gradient-range"})]})]}):e.jsx(r.SketchPicker,{color:O,onChange:function(e){H(e)},disableAlpha:!h}),g.length>0&&e.jsxs("div",{children:[e.jsx("div",{className:"idp-color-picker-presets-label",children:"预设颜色"}),e.jsx("div",{className:"idp-color-picker-presets",children:g.map(function(n,t){return e.jsx("div",{className:"idp-color-picker-preset",style:{backgroundColor:n},onClick:function(){return H({hex:n})},title:n},t)})})]}),e.jsxs("div",{className:"idp-color-picker-actions",children:[e.jsx("div",{className:"idp-color-picker-preview-label",children:"参考值:"}),e.jsx("div",{className:"idp-color-picker-preview ".concat(v?"idp-color-picker-gradient-preview":"idp-color-picker-solid-preview"),style:{background:O}}),e.jsxs("div",{className:"idp-color-picker-button-group",children:[e.jsx(se,{size:"small",onClick:function(){T(i),v&&(A([i,"#ffffff"]),I(90)),b(!1)},children:"取消"}),e.jsx(se,{variant:"primary",size:"small",onClick:function(){o(O),b(!1)},children:"确认"})]})]})]}),e.jsx("div",{className:"idp-color-picker-overlay",onClick:function(){return b(!1)}})]})]})},De=function(e){return v(void 0,void 0,void 0,function(){var n;return x(this,function(t){switch(t.label){case 0:return navigator.clipboard&&window.isSecureContext?[4,navigator.clipboard.writeText(e)]:[3,2];case 1:return t.sent(),[3,3];case 2:(n=document.createElement("textarea")).style.position="fixed",n.style.top=n.style.left="-100vh",n.style.opacity="0",n.value=e,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n),t.label=3;case 3:return[2]}})})};function Pe(){var e=this;return u.default.useCallback(function(n){return v(e,void 0,void 0,function(){return x(this,function(e){switch(e.label){case 0:return[4,De(n)];case 1:return[2,e.sent()]}})})},[])}var je=function(n){var t=n.url,i=n.onCopyStatusChange,r=n.children,o=Pe();return e.jsx("span",{style:{margin:"0px",padding:"0px"},onClick:function(){return v(void 0,void 0,void 0,function(){return x(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,o(t)];case 1:return e.sent(),null==i||i("success"),[3,3];case 2:return e.sent(),null==i||i("error"),[3,3];case 3:return[2]}})})},children:r})},Ve=Pe,ze=function(n){var t=n.orientation,i=void 0===t?"horizontal":t,r=n.type,o=void 0===r?"solid":r,a=n.color,s=void 0===a?"#339af0":a,l=n.className,c=void 0===l?"":l,d=n.style;return e.jsx("div",{className:"divider divider-".concat(i," divider-").concat(o," ").concat(c),style:g({backgroundColor:"horizontal"===i?s:"transparent",borderColor:"vertical"===i?s:"transparent"},d)})},Ue=function(n){var t=n.children,i=n.layout,r=void 0===i?"horizontal":i,o=n.direction,a=n.justify,s=void 0===a?"flex-start":a,l=n.align,c=void 0===l?"stretch":l,d=n.wrap,u=void 0===d?"nowrap":d,p=n.gap,h=n.style,f=void 0===h?{}:h,m=o||("column"===r?"column":"row");return e.jsx("div",{className:"flex",style:g({gap:"number"==typeof p?"".concat(p,"px"):p,justifyContent:s,alignItems:c,flexWrap:u,flexDirection:m},f),children:t})},Be=function(n){var t=n.type,i=void 0===t?"text":t,r=n.placeholder,o=void 0===r?"":r,a=n.width,s=n.className,l=void 0===s?"":s,c=n.style,d=n.value,p=n.defaultValue,h=n.onChange,f=n.onBlur,v=n.onFocus,x=n.disabled,C=void 0!==x&&x,_=n.readOnly,E=void 0!==_&&_,b=n.onKeyDown,y=n.prefix,O=n.suffix,T=n.clear,N=void 0!==T&&T,S=n.extra,A=n.label,L=n.labelGap,w=void 0===L?8:L,I=n.labelClassName,M=void 0===I?"":I,R=n.labelStyle,k=m(n,["type","placeholder","width","className","style","value","defaultValue","onChange","onBlur","onFocus","disabled","readOnly","onKeyDown","prefix","suffix","clear","extra","label","labelGap","labelClassName","labelStyle","error"]),H=u.default.useState(p||""),P=H[0],j=H[1],V=u.default.useState(!1),z=V[0],U=V[1],B=function(n){return n?"string"==typeof n?e.jsx(D,{type:n,size:"medium",color:"#909399"}):n:null},F=void 0!==d?d:P,G=N&&!C&&!E&&z&&null!=F&&F.toString().length>0;return e.jsxs("div",{className:"input-base-container",children:[e.jsxs("div",{className:"input-label-wrapper",style:{display:"flex",alignItems:"center"},children:[A&&e.jsx("div",{className:"input-label ".concat(M),style:g({marginRight:"number"==typeof w?"".concat(w,"px"):w},R),children:A}),e.jsxs("div",{className:"input-wrapper ".concat(l," ").concat(C?"input-disabled":""," ").concat(E?"input-readonly":""),style:g({width:a},c),children:[y&&e.jsx("div",{className:"input-prefix",children:B(y)}),e.jsx("input",g({type:i,placeholder:o,className:"input-inner",value:null!=d?String(d):F,onChange:function(e){void 0===d&&j(e.target.value),null==h||h(e)},onBlur:function(e){U(!1),null==f||f(e)},onFocus:function(e){U(!0),null==v||v(e)},disabled:C,readOnly:E,onKeyDown:b},k)),e.jsxs("div",{className:"input-suffix-group",children:[e.jsx("div",{className:"input-suffix-clear ".concat(G?"visible":""),onClick:function(){C||E||(void 0!==d||j(""),h&&h({target:{value:""}}))},children:e.jsx(D,{type:"close",size:"medium",color:"#1890ff"})}),O&&e.jsx("div",{className:"input-suffix-content",children:B(O)})]})]})]}),S&&e.jsx("div",{className:"input-extra",children:S})]})},Fe=function(n){var t=n.type,i=void 0===t?"text":t,r=n.placeholder,o=void 0===r?"搜索":r,a=n.width,s=n.className,l=void 0===s?"":s,c=n.style,d=n.value,u=n.onChange,p=n.onBlur,h=n.onFocus,f=n.disabled,v=void 0!==f&&f,x=n.readOnly,C=void 0!==x&&x,_=n.onSearch,E=n.onClear,b=n.clear,y=void 0!==b&&b,O=n.suffix,T=m(n,["type","placeholder","width","className","style","value","onChange","onBlur","onFocus","disabled","readOnly","onSearch","onClear","clear","suffix"]),N=function(){null==_||_()},S=y?e.jsx(D,{type:"search",onClick:N,style:{cursor:"pointer"}}):O;return e.jsxs("div",{className:"search-input-wrapper ".concat(l),style:g({width:a},c),children:[e.jsx(Be,g({type:i,placeholder:o,width:"100%",value:d,onChange:u,onBlur:p,onFocus:h,disabled:v,readOnly:C,onKeyDown:function(e){"Enter"===e.key&&(null==_||_())},clear:y,suffix:S},T)),!y&&e.jsxs("div",{className:"search-input-suffix",children:[d&&e.jsx(D,{type:"clear",size:"small",onClick:function(){if(null==E||E(),!E&&u){u({target:{value:""}})}},style:{cursor:"pointer",marginRight:"8px"}}),e.jsx(D,{type:"search",onClick:N,style:{cursor:"pointer"}})]})]})},Ge=function(n){var t=n.nType,i=n.errorMessage,r=n.extra,o=n.value,a=n.onChange,s=m(n,["nType","errorMessage","extra","value","onChange"]),l=function(e){if(!e)return{isValid:!0,message:""};var n=("string"==typeof e?e:String(e)).trim(),i=parseFloat(n);if(isNaN(i))return{isValid:!1,message:"请输入有效的数字"};switch(t){case"positive-float":return/^\d+(\.\d+)?$/.test(n)&&i>0?{isValid:!0,message:""}:{isValid:!1,message:"请输入正浮点数"};case"negative-float":return/^-\d+(\.\d+)?$/.test(n)&&i<0?{isValid:!0,message:""}:{isValid:!1,message:"请输入负浮点数"};case"positive-integer":return/^\d+$/.test(n)&&i>0?{isValid:!0,message:""}:{isValid:!1,message:"请输入正整数"};case"negative-integer":return/^-\d+$/.test(n)&&i<0?{isValid:!0,message:""}:{isValid:!1,message:"请输入负整数"};case"integer":return/^-?\d+$/.test(n)?{isValid:!0,message:""}:{isValid:!1,message:"请输入整数"};case"negative":return/^-\d+(\.\d+)?$/.test(n)&&i<0?{isValid:!0,message:""}:{isValid:!1,message:"请输入负数"};case"positive":return/^\d+(\.\d+)?$/.test(n)&&i>0?{isValid:!0,message:""}:{isValid:!1,message:"请输入正数"};default:return{isValid:!0,message:""}}},c=u.default.useState({isValid:!0,message:""}),d=c[0],p=c[1];u.default.useEffect(function(){if(t&&o){var e=l(o);p(e)}},[t,o]);var h=i||d.message,f=!!h,v=!f&&r;return e.jsxs("div",{className:"number-input-wrapper",children:[e.jsx(Be,g({type:"text",value:o,onChange:function(e){var n=e.target.value;if(null==a||a(e),t){var i=l(n);p(i)}}},s,{className:"".concat(s.className||""," ").concat(f?"input-error":"")})),f&&e.jsx("div",{className:"input-error-message ".concat(f?"visible":""),children:h}),v&&e.jsx("div",{className:"input-extra",children:r})]})},$e=function(n){var t=n.placeholder,i=void 0===t?"":t,r=n.width,o=n.height,a=n.className,s=void 0===a?"":a,l=n.style,c=n.value,d=n.defaultValue,p=n.onChange,h=n.onBlur,f=n.onFocus,m=n.onKeyDown,v=n.disabled,x=void 0!==v&&v,C=n.readOnly,_=void 0!==C&&C,E=n.rows,b=void 0===E?4:E,y=n.cols,O=n.maxLength,T=n.showCount,N=void 0!==T&&T,S=n.clear,A=void 0!==S&&S,L=n.extra,w=n.label,I=n.labelGap,M=void 0===I?8:I,R=n.labelClassName,k=void 0===R?"":R,H=n.labelStyle,P=n.resizable,j=void 0!==P&&P,V=n.resizeHandleSize,z=void 0===V?10:V,U=n.minWidth,B=void 0===U?200:U,F=n.maxWidth,G=void 0===F?2e3:F,$=n.minHeight,Y=void 0===$?80:$,W=n.maxHeight,K=void 0===W?800:W,Z=n.onResize,X=u.default.useState(d||""),q=X[0],J=X[1],Q=u.default.useState(!1),ee=Q[0],ne=Q[1],te=u.default.useState(!1),ie=te[0],re=te[1],oe=u.default.useRef(null),ae=u.default.useRef(null),se=u.default.useRef(null),le=function(e){if(void 0===e)return 0;if("number"==typeof e)return e;var n=String(e).match(/^(\d+)px$/);return n?parseInt(n[1],10):0},ce=function(e){if(void 0===e)return 0;if("number"==typeof e)return e;var n=String(e).match(/^(\d+)px$/);return n?parseInt(n[1],10):0},de=u.default.useState(le(r)||0),ue=de[0],pe=de[1],he=u.default.useState(ce(o)||24*b||80),fe=he[0],ge=he[1];u.default.useEffect(function(){if(ae.current){var e=le(r)||ae.current.offsetWidth||0,n=ce(o)||24*b||80;pe(e),ge(n)}},[]);var me=void 0!==c,ve=me?c:q,xe=(null==ve?void 0:ve.length)||0;u.default.useEffect(function(){var e=function(e){if(ie&&se.current){var n=e.clientX-se.current.mouseX,t=e.clientY-se.current.mouseY,i=se.current.width+n,r=se.current.height+t;i=Math.max(B,Math.min(G,i)),r=Math.max(Y,Math.min(K,r)),pe(i),ge(r),null==Z||Z({width:i,height:r})}},n=function(){se.current=null,re(!1)};return ie&&(document.addEventListener("mousemove",e),document.addEventListener("mouseup",n)),function(){document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",n)}},[ie,B,G,Y,K,Z]);var Ce={display:"inline-flex",flexDirection:"column",width:r?"number"==typeof r?"".concat(r,"px"):r:"100%"},_e={position:"relative",display:"flex",alignItems:"flex-start",flex:1,width:j?"number"==typeof ue?"".concat(ue,"px"):ue:void 0},Ee=g({width:"100%",height:o?"number"==typeof o?"".concat(o,"px"):o:void 0,resize:"none"},l),be=A&&ve&&!x&&!_,ye=j?g(g({},Ee),{width:"100%",height:j?"number"==typeof fe?"".concat(fe,"px"):fe:void 0}):Ee;return e.jsxs("div",{className:"textarea-wrapper ".concat(s),style:Ce,ref:ae,children:[(w||N||be)&&e.jsxs("div",{className:"textarea-header",style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"8px"},children:[w?e.jsx("label",{className:"input-label ".concat(k),style:g({marginRight:"number"==typeof M?"".concat(M,"px"):M},H),children:w}):null,e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[be&&e.jsx("span",{className:"textarea-clear",onClick:function(){if(!x&&!_){me||J(""),null==p||p({target:{value:""}})}},style:{cursor:"pointer"},children:e.jsx(D,{type:"close-circle",size:"small",color:"#909399"})}),N&&O&&e.jsxs("span",{className:"textarea-count",style:{fontSize:"12px",color:"#909399"},children:[xe,"/",O]})]})]}),e.jsxs("div",{className:"input-wrapper textarea-input-wrapper ".concat(ee?"focused":""," ").concat(x?"disabled":""," ").concat(ie?"resizing":""),style:_e,children:[e.jsx("textarea",{ref:oe,className:"input-base textarea-base",placeholder:i,value:ve,defaultValue:me?void 0:d,onChange:function(e){var n=e.target.value;me||J(n),null==p||p(e)},onBlur:function(e){ne(!1),null==h||h(e)},onFocus:function(e){ne(!0),null==f||f(e)},onKeyDown:m,disabled:x,readOnly:_,rows:b,cols:y,maxLength:O,style:ye}),j&&e.jsx("div",{className:"textarea-resize-handle",onMouseDown:function(e){j&&!x&&!_&&ae.current&&(e.preventDefault(),e.stopPropagation(),se.current={mouseX:e.clientX,mouseY:e.clientY,width:ae.current.offsetWidth,height:ae.current.offsetHeight},re(!0))},style:{position:"absolute",bottom:"0",right:"0",width:"".concat(z,"px"),height:"".concat(z,"px"),cursor:"nwse-resize",zIndex:1,display:"flex",alignItems:"center",justifyContent:"center"},children:e.jsx("div",{style:{width:"8px",height:"8px",borderRight:"2px solid #909399",borderBottom:"2px solid #909399"}})})]}),L&&e.jsx("div",{className:"input-extra",style:{marginTop:"4px"},children:L})]})},Ye=function(n){var t=n.defaultVisible,i=void 0!==t&&t,r=n.onVisibleChange,o=m(n,["defaultVisible","onVisibleChange"]),a=u.default.useState(i),s=a[0],l=a[1],c=function(){var e=!s;l(e),null==r||r(e)};return e.jsx(Be,g({type:s?"text":"password",suffix:e.jsx("div",{className:"input-suffix-content",onClick:c,style:{cursor:"pointer"},children:e.jsx(D,{type:s?"eye":"eyeOff",size:"medium",color:"#909399"})})},o))},We=Be;We.Search=Fe,We.Number=Ge,We.Textarea=$e,We.Password=Ye;var Ke=We,Ze={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Xe=u.default.createContext&&u.default.createContext(Ze),qe=["attr","size","title"];function Je(e,n){if(null==e)return{};var t,i,r=function(e,n){if(null==e)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)t=o[i],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}function Qe(){return Qe=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Qe.apply(this,arguments)}function en(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,i)}return t}function nn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?en(Object(t),!0).forEach(function(n){tn(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):en(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function tn(e,n,t){var i;return(n="symbol"==typeof(i=function(e,n){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,n||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(n,"string"))?i:i+"")in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function rn(e){return e&&e.map((e,n)=>u.default.createElement(e.tag,nn({key:n},e.attr),rn(e.child)))}function on(e){return n=>u.default.createElement(an,Qe({attr:nn({},e.attr)},n),rn(e.child))}function an(e){var n=n=>{var t,{attr:i,size:r,title:o}=e,a=Je(e,qe),s=r||n.size||"1em";return n.className&&(t=n.className),e.className&&(t=(t?t+" ":"")+e.className),u.default.createElement("svg",Qe({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,i,a,{className:t,style:nn(nn({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),o&&u.default.createElement("title",null,o),e.children)};return void 0!==Xe?u.default.createElement(Xe.Consumer,null,e=>n(e)):n(Ze)}function sn(e){return on({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"m289.94 256 95-95A24 24 0 0 0 351 127l-95 95-95-95a24 24 0 0 0-34 34l95 95-95 95a24 24 0 1 0 34 34l95-95 95 95a24 24 0 0 0 34-34z"},child:[]}]})(e)}var ln=function(t){var i=t.announcement,r=t.height,o=void 0===r?40:r,a=t.speed,s=void 0===a?50:a,l=t.backgroundColor,c=void 0===l?"linear-gradient(to right, #e8eaf6 0%, #f5f5f5 50%, #e8eaf6 100%)":l,d=t.visible,u=void 0===d||d,p=t.fixed,h=void 0!==p&&p,f=t.fixedTop,g=void 0===f?0:f,m=t.isIcon,v=void 0===m||m,x=t.onClose;if(!i)return null;var C=n.useState(!0),_=C[0],E=C[1],b=u&&_,y=n.useRef(null),O=n.useRef(null),T=n.useRef(void 0),N=n.useRef(!1),S=n.useRef(!0);return n.useEffect(function(){if(b&&y.current&&O.current){var e=y.current,n=O.current;n.style.left="".concat(e.offsetWidth,"px");var t=function(){if(S.current&&n)if(N.current)T.current=requestAnimationFrame(t);else{var i=parseFloat(n.style.left)||0;i<-n.offsetWidth?n.style.left="".concat(e.offsetWidth,"px"):n.style.left="".concat(i-s/100,"px"),T.current=requestAnimationFrame(t)}};T.current=requestAnimationFrame(t);var i=function(){N.current=!0},r=function(){N.current=!1};return e.addEventListener("mouseenter",i),e.addEventListener("mouseleave",r),function(){T.current&&cancelAnimationFrame(T.current),e.removeEventListener("mouseenter",i),e.removeEventListener("mouseleave",r)}}},[s,i,b]),b?e.jsxs("div",{ref:y,className:"marquee-container ".concat(h?"marquee-container-fixed":""),style:{height:"".concat(o,"px"),background:c,top:h?"".concat(g,"px"):void 0},children:[e.jsx("div",{ref:O,className:"marquee-text",children:Array.isArray(i)?e.jsx("span",{children:i.map(function(n,t){return e.jsxs("span",{style:0==t?{}:{marginLeft:"100px"},children:[e.jsx("span",{style:{marginRight:"5px"},children:v?"📢":null}),n]},t)})}):i}),e.jsx("div",{className:"marquee-close",style:{height:"".concat(o,"px"),width:"45px",background:c},onClick:function(){S.current=!1,E(!1),x&&x()},onMouseEnter:function(){N.current=!0},onMouseLeave:function(){N.current=!1},children:e.jsx(sn,{size:18,color:"#666"})})]}):null},cn=function(t){var i=t.type,r=t.content,o=t.duration,a=void 0===o?3e3:o,s=t.className,l=void 0===s?"":s,c=t.style,d=t.onClose,u=n.useState(!0),p=u[0],h=u[1];if(n.useEffect(function(){if(a>0){var e=setTimeout(function(){h(!1),null==d||d()},a);return function(){return clearTimeout(e)}}},[a,d]),!p)return null;return e.jsx("div",{className:"idp-message idp-message--".concat(i," ").concat(l," ").concat(p?"idp-message--show":""),style:c,children:e.jsxs("div",{className:"idp-message-content",children:[e.jsx(D,{type:function(){switch(i){case"success":return"success";case"warning":return"warning";case"error":return"error";default:return"infoCircleFill"}}(),size:20,color:function(){switch(i){case"success":return"#52c41a";case"warning":return"#faad14";case"error":return"#f5222d";default:return"#1890ff"}}()}),e.jsx("span",{className:"idp-message-text",children:r})]})})},dn=0,un=new Map,pn=function(e){var n=un.get(e);if(n){var t=n.container;n.root.unmount(),document.body.contains(t)&&document.body.removeChild(t),un.delete(e)}},hn=function(n,t,i){void 0===i&&(i=3e3);var r=++dn,a=function(){var e=document.createElement("div");return e.style.position="fixed",e.style.top="20px",e.style.left="50%",e.style.transform="translateX(-50%)",e.style.zIndex="1050",e.style.pointerEvents="none",document.body.appendChild(e),e}(),s=o.createRoot(a);s.render(e.jsx(cn,{type:n,content:t,duration:i,onClose:function(){pn(r)}})),un.set(r,{container:a,root:s});var l=setTimeout(function(){pn(r)},i);return{close:function(){clearTimeout(l),pn(r)}}},fn={success:function(e,n){hn("success",e,n)},warning:function(e,n){hn("warning",e,n)},error:function(e,n){hn("error",e,n)},close:function(){un.forEach(function(e,n){return pn(n)})}},gn=n.createContext({message:null}),mn=function(t){var i,r=t.visible,o=t.title,s=void 0===o?"标题":o,l=t.width,c=void 0===l?600:l,d=t.height,u=void 0===d?300:d,h=t.headerHeight,f=void 0===h?40:h,m=t.footerHeight,v=void 0===m?40:m,x=t.confirmLoading,C=void 0!==x&&x,_=t.direction,E=void 0===_?"normal":_,b=t.top,y=t.onCancel,O=t.onOk,T=t.children,N=t.footer,S=void 0===N?null:N,A=t.bordered,L=void 0!==A&&A,w=t.className,I=t.style,M=t.okText,R=void 0===M?"确认":M,k=t.cancelText,H=void 0===k?"取消":k,P=t.getContainer,j=void 0===P?function(){return document.body}:P,V=t.maskStyle,z=t.maskClassName,U=t.zIndex,B=void 0===U?1e3:U,F=t.contentClassName,G=t.contentStyle,$=t.destroyOnClose,Y=void 0!==$&&$,W=n.useState(!1),K=W[0],Z=W[1],X=n.useState(!1),q=X[0],J=X[1],Q=n.useState({x:0,y:0}),ee=Q[0],ne=Q[1],te=n.useRef(null),ie=E,re=function(e){if("number"==typeof e)return e;var n=e.match(/^(\d+)px$/);return n?parseInt(n[1],10):0};n.useEffect(function(){var e=function(e){te.current={x:e.clientX,y:e.clientY}};return document.addEventListener("mousedown",e,!0),function(){document.removeEventListener("mousedown",e,!0)}},[]),n.useEffect(function(){if(!r){J(!0);var e=setTimeout(function(){Z(!1),J(!1)},550);return function(){return clearTimeout(e)}}var n=function(){var e=te.current;if(!e||"undefined"==typeof window)return{x:0,y:0};var n=u?re(u):0;if("center"===ie&&void 0!==b){var t=window.innerWidth/2,i=b+(n>0?n/2:0);return{x:e.x-t,y:e.y-i}}if("center"===ie)return t=window.innerWidth/2,i=window.innerHeight/2,{x:e.x-t,y:e.y-i};if(void 0!==b&&n>0)return t=window.innerWidth/2,i=b+n/2,{x:e.x-t,y:e.y-i};return t=window.innerWidth/2,i=window.innerHeight/2,{x:e.x-t,y:e.y-i}}();ne(n),J(!1),Z(!0)},[r,550,u,b,Y]);var oe=function(){J(!0);var e=setTimeout(function(){Z(!1),J(!1),null==y||y()},550);return function(){return clearTimeout(e)}},ae=function(){null==O||O()},le=g(((i={width:"number"==typeof c?"".concat(c,"px"):c,top:void 0!==b?"".concat(b,"px"):void 0})["--idp-modal-origin-x"]="".concat(ee.x,"px"),i["--idp-modal-origin-y"]="".concat(ee.y,"px"),i),I),ce={height:"number"==typeof f?"".concat(f,"px"):f},de=u?re(u):0,ue=re(f),pe=re(v),he=de>0?Math.max(0,de-ue-pe):void 0,fe=g({},G);if(!fe.maxHeight&&u){var ge=re(u);fe.maxHeight="".concat(ge,"px")}!fe.maxHeight&&he&&(fe.maxHeight="".concat(he,"px"));var me={height:"number"==typeof v?"".concat(v,"px"):v},ve=function(){if(!K&&!q)return null;var n=g({zIndex:B},V);return e.jsx("div",{className:p.default("idp-modal-overlay",{"idp-modal-overlay--visible":K,"idp-modal-overlay--closing":q,"idp-modal-overlay--custom-top":void 0!==b},w,z),onClick:oe,style:n,children:e.jsxs("div",{className:p.default("idp-modal-container",{"idp-modal-container--center-top":K&&!q&&"center"===ie&&void 0!==b,"idp-modal-container--center":K&&!q&&"center"===ie&&void 0===b,"idp-modal-container--top-right":K&&!q&&"top-right"===ie,"idp-modal-container--bottom-right":K&&!q&&"bottom-right"===ie,"idp-modal-container--bottom-left":K&&!q&&"bottom-left"===ie,"idp-modal-container--normal":K&&!q&&"normal"===ie,"idp-modal-container--closing-center-top":q&&"center"===ie&&void 0!==b,"idp-modal-container--closing-center":q&&"center"===ie&&void 0===b,"idp-modal-container--closing-top-right":q&&"top-right"===ie,"idp-modal-container--closing-bottom-right":q&&"bottom-right"===ie,"idp-modal-container--closing-bottom-left":q&&"bottom-left"===ie,"idp-modal-container--closing-normal":q&&"normal"===ie,"idp-modal-container--bordered":L,"idp-modal-container--has-height":void 0!==u}),style:le,onClick:function(e){return e.stopPropagation()},children:[e.jsxs("div",{className:"idp-modal-header",style:ce,children:[e.jsx("div",{className:"idp-modal-header__left",children:e.jsx("span",{className:"idp-modal-header__title",children:s})}),e.jsx("div",{className:"idp-modal-header__right",children:e.jsx(D,{type:"close",size:24,color:"#339af0",onClick:oe,style:{cursor:"pointer",padding:"4px"}})})]}),K&&e.jsx("div",{className:p.default("idp-modal-content",F),style:fe,children:Y&&q?null:T}),e.jsx(Ue,{className:"idp-modal-footer",align:"center",justify:"flex-end",style:Object.assign({},me,{padding:"0px 10px"}),gap:12,children:null===S?e.jsxs(Ue,{className:"idp-modal-footer__actions",justify:"flex-end",gap:12,children:[e.jsx(se,{variant:"secondary",onClick:oe,disabled:C,children:H||"取消"}),e.jsx(se,{variant:"primary",onClick:ae,loading:C,children:R||"确认"})]}):S})]})})}();if(!ve)return null;if(!1===j)return ve;var xe="function"==typeof j?j():j;return xe?a.createPortal(ve,xe):ve},vn={};Object.defineProperty(vn,"__esModule",{value:!0});var xn=u.default;function Cn(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _n=Cn(xn);!function(e){if(!e||"undefined"==typeof window)return;const n=document.createElement("style");n.setAttribute("type","text/css"),n.innerHTML=e,document.head.appendChild(n)}('.rfm-marquee-container {\n overflow-x: hidden;\n display: flex;\n flex-direction: row;\n position: relative;\n width: var(--width);\n transform: var(--transform);\n}\n.rfm-marquee-container:hover div {\n animation-play-state: var(--pause-on-hover);\n}\n.rfm-marquee-container:active div {\n animation-play-state: var(--pause-on-click);\n}\n\n.rfm-overlay {\n position: absolute;\n width: 100%;\n height: 100%;\n}\n.rfm-overlay::before, .rfm-overlay::after {\n background: linear-gradient(to right, var(--gradient-color), rgba(255, 255, 255, 0));\n content: "";\n height: 100%;\n position: absolute;\n width: var(--gradient-width);\n z-index: 2;\n pointer-events: none;\n touch-action: none;\n}\n.rfm-overlay::after {\n right: 0;\n top: 0;\n transform: rotateZ(180deg);\n}\n.rfm-overlay::before {\n left: 0;\n top: 0;\n}\n\n.rfm-marquee {\n flex: 0 0 auto;\n min-width: var(--min-width);\n z-index: 1;\n display: flex;\n flex-direction: row;\n align-items: center;\n animation: scroll var(--duration) linear var(--delay) var(--iteration-count);\n animation-play-state: var(--play);\n animation-delay: var(--delay);\n animation-direction: var(--direction);\n}\n@keyframes scroll {\n 0% {\n transform: translateX(0%);\n }\n 100% {\n transform: translateX(-100%);\n }\n}\n\n.rfm-initial-child-container {\n flex: 0 0 auto;\n display: flex;\n min-width: auto;\n flex-direction: row;\n align-items: center;\n}\n\n.rfm-child {\n transform: var(--transform);\n}');const En=xn.forwardRef(function({style:e={},className:n="",autoFill:t=!1,play:i=!0,pauseOnHover:r=!1,pauseOnClick:o=!1,direction:a="left",speed:s=50,delay:l=0,loop:c=0,gradient:d=!1,gradientColor:u="white",gradientWidth:p=200,onFinish:h,onCycleComplete:f,onMount:g,children:m},v){const[x,C]=xn.useState(0),[_,E]=xn.useState(0),[b,y]=xn.useState(1),[O,T]=xn.useState(!1),N=xn.useRef(null),S=v||N,A=xn.useRef(null),L=xn.useCallback(()=>{if(A.current&&S.current){const e=S.current.getBoundingClientRect(),n=A.current.getBoundingClientRect();let i=e.width,r=n.width;"up"!==a&&"down"!==a||(i=e.height,r=n.height),y(t&&i&&r&&r<i?Math.ceil(i/r):1),C(i),E(r)}},[t,S,a]);xn.useEffect(()=>{if(O&&(L(),A.current&&S.current)){const e=new ResizeObserver(()=>L());return e.observe(S.current),e.observe(A.current),()=>{e&&e.disconnect()}}},[L,S,O]),xn.useEffect(()=>{L()},[L,m]),xn.useEffect(()=>{T(!0)},[]),xn.useEffect(()=>{"function"==typeof g&&g()},[]);const w=xn.useMemo(()=>t?_*b/s:_<x?x/s:_/s,[t,x,_,b,s]),I=xn.useMemo(()=>Object.assign(Object.assign({},e),{"--pause-on-hover":!i||r?"paused":"running","--pause-on-click":!i||r&&!o||o?"paused":"running","--width":"up"===a||"down"===a?"100vh":"100%","--transform":"up"===a?"rotate(-90deg)":"down"===a?"rotate(90deg)":"none"}),[e,i,r,o,a]),M=xn.useMemo(()=>({"--gradient-color":u,"--gradient-width":"number"==typeof p?`${p}px`:p}),[u,p]),R=xn.useMemo(()=>({"--play":i?"running":"paused","--direction":"left"===a?"normal":"reverse","--duration":`${w}s`,"--delay":`${l}s`,"--iteration-count":c?`${c}`:"infinite","--min-width":t?"auto":"100%"}),[i,a,w,l,c,t]),k=xn.useMemo(()=>({"--transform":"up"===a?"rotate(90deg)":"down"===a?"rotate(-90deg)":"none"}),[a]),H=xn.useCallback(e=>[...Array(Number.isFinite(e)&&e>=0?e:0)].map((e,n)=>_n.default.createElement(xn.Fragment,{key:n},xn.Children.map(m,e=>_n.default.createElement("div",{style:k,className:"rfm-child"},e)))),[k,m]);return O?_n.default.createElement("div",{ref:S,style:I,className:"rfm-marquee-container "+n},d&&_n.default.createElement("div",{style:M,className:"rfm-overlay"}),_n.default.createElement("div",{className:"rfm-marquee",style:R,onAnimationIteration:f,onAnimationEnd:h},_n.default.createElement("div",{className:"rfm-initial-child-container",ref:A},xn.Children.map(m,e=>_n.default.createElement("div",{style:k,className:"rfm-child"},e))),H(b-1)),_n.default.createElement("div",{className:"rfm-marquee",style:R},H(b))):null});var bn=vn.default=En,yn=function(n){var t=n.text,i=void 0===t?"":t,r=n.speed,o=void 0===r?50:r,a=n.height,s=void 0===a?60:a,l=n.icon,c=void 0===l?null:l,d=n.styles,p=void 0===d?{}:d,h=n.closeStyle,f=void 0===h?{}:h,m=n.showCloseButton,v=void 0!==m&&m,x=n.floatingTop,C=void 0!==x&&x,_=n.pauseOnHover,E=void 0===_||_,b=u.default.useState(!0),y=b[0],O=b[1];if(!i||!y)return null;return e.jsxs("div",{className:"idp-notice ".concat(C?"idp-notice-floating":""),style:g({height:"".concat(s,"px")},p),children:[e.jsxs(bn,{pauseOnHover:E,speed:o,gradient:!1,children:[e.jsx("span",{style:{width:"1200px"}}),Array.isArray(i)?e.jsx("div",{style:{display:"inline-block",whiteSpace:"nowrap"},children:i.map(function(n,t){return e.jsxs("span",{style:{marginRight:"15px",display:"inline-block"},children:[c?e.jsx("span",{style:{marginRight:"5px"},children:c}):null,n]},t)})}):e.jsx("div",{style:{display:"inline-block",whiteSpace:"nowrap"},children:e.jsxs("span",{children:[c?e.jsx("span",{style:{marginRight:"5px"},children:c}):null,i]})})]}),v&&e.jsx("div",{className:"idp-notice-close",style:g({height:"".concat(s,"px")},f),onClick:function(){O(!1)},children:e.jsx("span",{style:{color:"white",fontSize:"16px",fontWeight:"bold"},children:"×"})})]})},On=function(n){switch(n){case"success":return e.jsx("i",{className:"fas fa-check-circle"});case"warning":return e.jsx("i",{className:"fas fa-exclamation-triangle"});case"error":return e.jsx("i",{className:"fas fa-times-circle"});default:return e.jsx("i",{className:"fas fa-info-circle"})}},Tn=function(t){var i=t.message,r=t.duration,o=void 0===r?3e3:r,a=t.type,s=void 0===a?"info":a,l=t.position,c=void 0===l?"center":l,d=t.color,u=t.top,p=t.open,h=t.clickOutsideToClose,f=void 0!==h&&h,m=t.onClose,v=void 0!==p,x=n.useState(!0),C=x[0],_=x[1],E=n.useState(!0),b=E[0],y=E[1],O=n.useRef(null),T=v?p:C;if(n.useEffect(function(){var e=function(e){f&&O.current&&!O.current.contains(e.target)&&(y(!1),setTimeout(function(){m&&m(),v||_(!1)},500))};return f&&T&&document.addEventListener("click",e),function(){document.removeEventListener("click",e)}},[f,T,v,m]),n.useEffect(function(){v&&(p?y(!0):(y(!1),setTimeout(function(){m&&m()},500)))},[p,v,m]),n.useEffect(function(){if(T){var e=setTimeout(function(){y(!1),setTimeout(function(){m&&m(),v||_(!1)},500)},o);return function(){return clearTimeout(e)}}},[o,T,v,m]),!T||!b)return null;var N="notification-".concat(s),S=d?"notification-custom":"",A=function(){var e={};if(void 0!==u)if(e.top="".concat(u,"px"),c.startsWith("top-"))switch(c){case"top-left":e.left="20px",e.right="auto";break;case"top-center":e.left="50%",e.transform="translateX(-50%)",e.right="auto";break;case"top-right":e.right="20px",e.left="auto"}else e.right="20px",e.left="auto",e.bottom="auto";return e}(),L=g({backgroundColor:d},A),w=void 0===u?"notification-".concat(c):"";return e.jsx("div",{ref:O,className:"notification ".concat(N," ").concat(w," ").concat(S," ").concat(b?"fade-in":"fade-out"),style:L,children:e.jsxs("div",{className:"notification-content",children:[On(s),e.jsx("span",{children:i})]})})},Nn=n.createContext(void 0),Sn=function(t){var i,r=t.value,o=t.checked,a=t.defaultChecked,s=void 0!==a&&a,l=t.onChange,c=t.disabled,d=void 0!==c&&c,u=t.size,h=t.children,f=t.className,m=t.style,v=t.label,x=t.labelGap,C=void 0===x?8:x,_=t.labelClassName,E=void 0===_?"":_,b=t.labelStyle,y=n.useContext(Nn),O=!!y,T=n.useState(s),N=T[0],S=T[1],A=O?y.value===r:void 0!==o?o:N,L=u||(O?y.size:void 0),w="button"===(O?y.type:void 0);n.useEffect(function(){O||void 0===o||S(o)},[o,O]);var I=p.default("idp-radio",((i={"idp-radio--checked":A,"idp-radio--disabled":d||O&&y.disabled})["idp-radio--".concat(L)]=L,i["idp-radio--button"]=w,i),f);return e.jsx("label",{className:I,style:m,children:e.jsxs("div",{className:"idp-radio-wrapper",style:{display:"flex",alignItems:"center"},children:[v&&e.jsx("div",{className:"idp-radio-label ".concat(E),style:g({marginRight:"number"==typeof C?"".concat(C,"px"):C},b),children:v}),e.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[e.jsx("input",{type:"radio",className:"idp-radio__input",checked:A,onChange:function(e){var n,t=e.target.checked;d||O&&y.disabled||(O?null===(n=y.onChange)||void 0===n||n.call(y,r):(S(t),null==l||l(t,r)))},disabled:d||O&&y.disabled,value:r}),!w&&e.jsx("span",{className:"idp-radio__inner"}),h&&e.jsx("span",{className:"idp-radio__label",children:h})]})]})})};Sn.Group=function(t){var i,r=t.value,o=t.defaultValue,a=t.onChange,s=t.disabled,l=void 0!==s&&s,c=t.type,d=void 0===c?"radio":c,u=t.size,h=void 0===u?"middle":u,f=t.children,g=t.className,m=t.style,v=n.useState(o),x=v[0],C=v[1];n.useEffect(function(){void 0!==r&&C(r)},[r]);var _=p.default("idp-radio-group",((i={"idp-radio-group--button":"button"===d})["idp-radio-group--".concat(h)]=h,i),g);return e.jsx(Nn.Provider,{value:{value:void 0!==r?r:x,onChange:function(e){C(e),null==a||a(e)},disabled:l,type:d,size:h},children:e.jsx("div",{className:_,style:m,children:f})})},Sn.displayName="Radio",Sn.Group.displayName="Radio.Group";var An=Sn,Ln=n.createContext(void 0),wn=function(t){var i,r=t.value,o=t.defaultValue,a=t.onChange,s=t.placeholder,l=void 0===s?"请选择":s,c=t.disabled,d=void 0!==c&&c,h=t.size,f=void 0===h?"middle":h,m=t.style,v=t.className,x=t.options,C=t.children,_=t.open,E=t.onOpenChange,b=t.width,y=t.height,O=t.dropdownHeight,T=t.label,N=t.labelGap,S=void 0===N?8:N,A=t.labelClassName,L=void 0===A?"":A,w=t.labelStyle,I=n.useState(o),M=I[0],R=I[1],k=n.useState(!1),H=k[0],P=k[1],j=n.useState(l),V=j[0],z=j[1],U=n.useRef(null),B=n.useRef(null),F=n.useRef(null),G=void 0!==_?_:H,$=function(e,n){if(n)for(var t=0,i=u.default.Children.toArray(n);t<i.length;t++){var r=i[t];if(u.default.isValidElement(r)){if(r.type===u.default.Fragment){var o=$(e,r.props.children);if(void 0!==o)return o;continue}if(r.type===wn.OptGroup){var a=$(e,r.props.children);if(void 0!==a)return a;continue}if(r.type===wn.Option&&r.props.value===e)return r.props.children}}};n.useEffect(function(){if(void 0!==r){var e;if(R(r),x&&x.length>0){var n=x.find(function(e){return e.value===r});n&&(e=n.label)}void 0===e&&C&&(e=$(r,C)),void 0===e&&null==r&&(e=l),void 0!==e&&z(e)}},[r,x,C,l]),n.useEffect(function(){if(void 0===r){var e;if(x&&x.length>0){var n=x.find(function(e){return e.value===M});n&&(e=n.label)}void 0===e&&C&&(e=$(M,C)),void 0===e&&null==M&&(e=l),void 0!==e&&z(e)}},[M,x,C,l,r]),n.useEffect(function(){var e=function(e){G&&U.current&&!U.current.contains(e.target)&&(void 0!==_?null==E||E(!1):P(!1))};return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}},[G,_,E]);var Y,W,K=function(e,n){if(!d)if(void 0===r&&R(e),null==a||a(e),void 0!==_?null==E||E(!1):P(!1),n)z(n);else if(x&&x.length>0){var t=x.find(function(n){return n.value===e});t&&z(t.label)}},Z=y?void 0:f,X=g(g({},m),{width:b}),q={height:y,flex:void 0!==b?1:void 0},J={maxHeight:O},Q=p.default("idp-select",((i={"idp-select--open":G,"idp-select--disabled":d})["idp-select--".concat(Z)]=Z,i),v);return e.jsx(Ln.Provider,{value:{value:M,onOptionSelect:K,disabled:d},children:e.jsx("div",{className:Q,style:X,ref:U,children:e.jsxs("div",{className:"idp-select-wrapper",style:{display:"flex",alignItems:"center"},children:[T&&e.jsx("div",{className:"idp-select-label ".concat(L),style:g({marginRight:"number"==typeof S?"".concat(S,"px"):S},w),children:T}),e.jsxs("div",{className:"idp-select__trigger",onClick:function(){if(!d){var e=!G;void 0!==_?null==E||E(e):P(e)}},ref:F,"aria-expanded":G,"aria-haspopup":"listbox",style:q,children:[e.jsx("span",{className:p.default("idp-select__value",{"idp-select__value--placeholder":null==M}),children:V}),e.jsx("span",{className:"idp-select__arrow",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M4 6L8 10L12 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),G&&e.jsx("div",{className:"idp-select-dropdown",ref:B,role:"listbox",style:{},children:e.jsx("div",{className:"idp-select-dropdown__content",style:J,children:(Y=x&&x.length>0,W=u.default.Children.count(C)>0,Y?x&&0!==x.length?x.map(function(n,t){return e.jsxs("div",{className:p.default("idp-select-option",{"idp-select-option--selected":M===n.value,"idp-select-option--disabled":n.disabled}),onClick:function(){return!n.disabled&&K(n.value,n.label)},children:[e.jsxs("div",{style:{flex:1,display:"flex",alignItems:"center"},children:[n.icon&&e.jsx(D,{type:n.icon,size:16,color:n.disabled?"#00000040":"#8c8c8c",style:{marginRight:"8px"}}),n.label]}),M===n.value&&e.jsx(D,{type:"check",size:18,color:"#339af0"})]},t)}):null:W?C:e.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"80px",padding:"20px"},children:e.jsx(le,{size:"small",description:"暂无选项"})}))})})]})]})})})};wn.Option=function(t){var i=t.value,r=t.children,o=t.disabled,a=void 0!==o&&o,s=t.icon,l=n.useContext(Ln);if(!l)throw new Error("Select.Option must be used within a Select component");var c=l.value,d=l.onOptionSelect,u=l.disabled,h=c===i,f=a||u;return e.jsxs("div",{className:p.default("idp-select-option",{"idp-select-option--selected":h,"idp-select-option--disabled":f}),onClick:function(){f||d(i,r)},role:"option","aria-selected":h,"aria-disabled":f,children:[e.jsxs("div",{style:{flex:1,display:"flex",alignItems:"center"},children:[s&&e.jsx(D,{type:s,size:16,color:f?"#00000040":"#8c8c8c",style:{marginRight:"8px"}}),r]}),h&&e.jsx(D,{type:"check",size:18,color:"#339af0"})]})},wn.OptGroup=function(n){var t=n.label,i=n.children;return e.jsxs("div",{className:"idp-select-optgroup",children:[e.jsx("div",{className:"idp-select-optgroup__label",children:t}),e.jsx("div",{className:"idp-select-optgroup__content",children:i})]})},wn.displayName="Select",wn.Option.displayName="Select.Option",wn.OptGroup.displayName="Select.OptGroup";var In=wn,Mn=function(t){var i=t.value,r=t.options,o=t.onChange,a=n.useState(!1),s=a[0],l=a[1],c=n.useRef(null),d=n.useRef(null),u=n.useState({}),p=u[0],h=u[1],f=n.useCallback(function(){var e;if(c.current){var n=c.current.getBoundingClientRect(),t=window.innerHeight,i=(null===(e=d.current)||void 0===e?void 0:e.offsetHeight)||200,r=t-n.bottom,o=r>=i||r>=n.top;h(o?{top:n.bottom+window.scrollY,left:n.left+window.scrollX,width:n.width}:{top:n.top+window.scrollY-i-5,left:n.left+window.scrollX,width:n.width})}},[]);n.useEffect(function(){var e=function(e){c.current&&!c.current.contains(e.target)&&l(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[]),n.useEffect(function(){if(s){f();var e=function(){return f()};return window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),function(){window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0)}}},[s,f]);return e.jsxs("div",{className:"idp-page-size-select",ref:c,children:[e.jsxs("div",{className:"idp-page-size-select-trigger ".concat(s?"is-open":""),onClick:function(){l(!s),s||setTimeout(f,0)},children:[e.jsxs("span",{className:"idp-page-size-select-value",children:[i," 条/页"]}),e.jsx("svg",{className:"idp-page-size-select-arrow",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:e.jsx("path",{d:"M6 8L1 3h10z",fill:"currentColor"})})]}),s&&e.jsx("div",{className:"idp-page-size-select-dropdown is-open",ref:d,style:p,children:r.map(function(n){var t=parseInt(n,10);return e.jsxs("div",{className:"idp-page-size-select-option ".concat(i===t?"is-selected":""),onClick:function(){return o(t),void l(!1)},children:[n," 条/页"]},n)})})]})},Rn=function(t){var i=t.total,r=void 0===i?0:i,o=t.current,a=t.pageSize,s=void 0===a?10:a,l=t.onChange,c=t.pageSizeOptions,d=void 0===c?["10","20","50","100"]:c,u=t.showSizeChanger,p=void 0!==u&&u,h=t.showQuickJumper,f=void 0!==h&&h,g=t.showTotal,m=t.size,v=void 0===m?"default":m,x=t.align,C=t.className,_=void 0===C?"":C,E=t.style,b=n.useState(1),y=b[0],O=b[1],T=n.useState(s),N=T[0],S=T[1],A=n.useRef(!0),L=void 0!==o?o:y,w=void 0!==s?s:N,I=Math.ceil(r/w),M=n.useRef(l);M.current=l,n.useEffect(function(){void 0!==s&&S(s)},[s]),n.useEffect(function(){void 0!==o&&O(o)},[o]),n.useEffect(function(){if(A.current)A.current=!1;else if(L>I&&I>0){var e=I;void 0===o&&O(e),M.current&&M.current(e,w)}},[L,I,o,w]);var R=function(e){e===L||e<1||e>I||(void 0===o&&O(e),l&&l(e,w))},k=(L-1)*w+1,H=Math.min(L*w,r),D="center"===x?"align-center":"flex-end"===x?"align-right":"";return e.jsxs("div",{className:"idp-pagination ".concat("small"===v?"mini":""," ").concat(D," ").concat(_),style:E,children:[g&&e.jsx("div",{className:"idp-pagination-total-text",children:g(r,[k,H])}),e.jsxs("ul",{className:"idp-pagination-list",children:[e.jsx("li",{className:"idp-pagination-prev ".concat(L<=1?"idp-pagination-prev-disabled":""),onClick:function(){L>1&&R(L-1)},children:"<"}),function(){if(I<=7)return Array.from({length:I},function(e,n){return n+1});var e=[];if(e.push(1),L<=4){for(var n=2;n<=5;n++)e.push(n);e.push("..."),e.push(I)}else if(L>=I-3){e.push("...");for(n=I-4;n<=I-1;n++)e.push(n);e.push(I)}else{e.push("...");for(n=L-1;n<=L+1;n++)e.push(n);e.push("..."),e.push(I)}return e}().map(function(n,t){return e.jsx("li",{className:"number"==typeof n?"idp-pagination-item ".concat(n===L?"idp-pagination-item-active":""):"idp-pagination-ellipsis",onClick:function(){return"number"==typeof n&&R(n)},children:n},t)}),e.jsx("li",{className:"idp-pagination-next ".concat(L>=I?"idp-pagination-next-disabled":""),onClick:function(){L<I&&R(L+1)},children:">"})]}),(p||f)&&e.jsxs("div",{className:"idp-pagination-options",children:[p&&e.jsx(Mn,{value:w,options:d,onChange:function(e){return function(e){var n=parseInt(e,10);void 0===s&&S(n),void 0===o&&O(1),l&&l(1,n)}(e.toString())}}),f&&e.jsxs("div",{className:"idp-pagination-options-quick-jumper",children:[e.jsx("div",{style:{minWidth:"30px"},children:"跳至"}),e.jsx("input",{type:"text",onKeyPress:function(e){if("Enter"===e.key){var n=e.target,t=parseInt(n.value,10);!isNaN(t)&&t>=1&&t<=I&&(R(t),n.value="")}},placeholder:"页码"}),"页"]})]})]})},kn=function(t){var i=t.children,r=t.title,o=t.placement,a=void 0===o?"top":o,s=t.trigger,l=void 0===s?"hover":s,c=t.delay,d=void 0===c?300:c,u=t.open,p=t.backgroundColor,h=t.style,f=void 0===h?{}:h,m=t.className,v=void 0===m?"":m,x=n.useState(!1),C=x[0],_=x[1],E=n.useState({top:0,left:0}),b=E[0],y=E[1],O=n.useRef(null),T=n.useRef(null),N=n.useRef(null),S=void 0!==u?u:C,A=function(){if(O.current&&T.current){var e=O.current.getBoundingClientRect(),n=T.current.getBoundingClientRect(),t=window.pageYOffset||document.documentElement.scrollTop,i=window.pageXOffset||document.documentElement.scrollLeft,r=0,o=0;switch(a){case"top":r=e.top-n.height-8,o=e.left+(e.width-n.width)/2;break;case"bottom":r=e.bottom+8,o=e.left+(e.width-n.width)/2;break;case"left":r=e.top+(e.height-n.height)/2,o=e.left-n.width-8;break;case"right":r=e.top+(e.height-n.height)/2,o=e.right+8}y({top:r+t,left:o+i})}},L=function(e){if("click"===l&&void 0===u&&C){var n=e.target;O.current&&!O.current.contains(n)&&T.current&&!T.current.contains(n)&&_(!1)}};return n.useEffect(function(){if(S){requestAnimationFrame(A);var e=function(){return A()},n=function(){return A()};return window.addEventListener("resize",e),window.addEventListener("scroll",n,!0),"click"===l&&void 0===u&&document.addEventListener("click",L),function(){window.removeEventListener("resize",e),window.removeEventListener("scroll",n,!0),"click"===l&&void 0===u&&document.removeEventListener("click",L)}}},[S,a,l,u]),n.useEffect(function(){return function(){N.current&&clearTimeout(N.current)}},[]),e.jsxs(e.Fragment,{children:[e.jsx("span",{ref:O,onMouseEnter:"hover"===l?function(){r&&void 0===u&&(N.current&&clearTimeout(N.current),N.current=setTimeout(function(){_(!0),requestAnimationFrame(A)},d))}:void 0,onMouseLeave:"hover"===l?function(){void 0===u&&(N.current&&(clearTimeout(N.current),N.current=null),_(!1))}:void 0,onClick:"click"===l?function(){"click"===l&&void 0===u&&_(!C)}:void 0,style:{display:"inline-block"},children:i}),S&&r&&e.jsxs("div",{ref:T,className:"idp-tooltip idp-tooltip-".concat(a," ").concat(v),style:g({position:"fixed",top:b.top,left:b.left,zIndex:1e3,backgroundColor:p},f),onMouseEnter:"hover"===l&&void 0===u?function(){return _(!0)}:void 0,onMouseLeave:"hover"===l&&void 0===u?function(){return _(!1)}:void 0,children:[e.jsx("div",{className:"idp-tooltip-content",children:r}),e.jsx("div",{className:"idp-tooltip-arrow",style:{backgroundColor:p}})]})]})},Hn=function(n){var t=n.id,i=n.record,r=n.rowIndex,o=n.allColumns,a=n.renderTableCell,s=l.useSortable({id:t}),d=s.attributes,u=s.listeners,p=s.setNodeRef,h=s.transform,f=s.transition,m=s.isDragging,v={transform:c.CSS.Transform.toString(h),transition:f,opacity:m?.5:1,cursor:"grab"};return e.jsx("tr",g({ref:p,style:v},d,u,{className:"idp-table-sortable-row ".concat(m?"is-dragging":""),"data-dragging":m,children:o.map(function(e,n){return a(e,i,r,n,o)})}))},Dn=function(t){var i=t.dataSource,r=void 0===i?[]:i,o=t.columns,a=void 0===o?[]:o,c=t.bordered,d=void 0!==c&&c,u=t.scroll,p=void 0===u?{}:u,h=t.rowKey,f=void 0===h?"key":h,v=t.className,x=void 0===v?"":v,_=t.pagination,E=t.empty,b=t.loading,y=void 0!==b&&b,O=t.loadingText,T=void 0===O?"加载中...":O,N=t.loadingDelay,S=t.draggable,A=void 0!==S&&S,L=t.onDragEnd,w=n.useState([]),I=w[0],M=w[1],R=n.useState([]),k=R[0],H=R[1],P=n.useState([]),j=P[0],V=P[1],z=n.useState([]),U=z[0],B=z[1],F=n.useState(1),G=F[0],$=F[1],Y=n.useState(10),W=Y[0],K=Y[1],Z=n.useState(y),X=Z[0],q=Z[1],J=n.useState(r),Q=J[0],ee=J[1],ne=n.useRef(null),te=n.useRef(null),ie=n.useRef(null),re=n.useRef(null),oe=n.useState(null),ae=oe[0],se=oe[1],ce=n.useState(""),de=ce[0],ue=ce[1];n.useEffect(function(){ee(r)},[r]),n.useEffect(function(){return ne.current&&(clearTimeout(ne.current),ne.current=null),y&&N&&N>0?(q(!0),ne.current=setTimeout(function(){q(!1)},N)):q(y),function(){ne.current&&clearTimeout(ne.current)}},[y,N]),n.useEffect(function(){_&&"object"==typeof _&&(void 0!==_.current&&$(_.current),void 0!==_.pageSize&&K(_.pageSize))},[_&&"object"==typeof _?_.current:void 0,_&&"object"==typeof _?_.pageSize:void 0]);n.useEffect(function(){var e=[],n=[],t=[],i=[];a.forEach(function(r,o){var a,s=(a=r.width)?"number"==typeof a?a:parseInt(a,10)||0:0;i[o]=s;var l=g(g({},r),{_index:o});"start"===r.fixed||!0===r.fixed?e.push(l):"end"===r.fixed?n.push(l):t.push(l)}),M(e),H(n),V(t),B(i)},[a]);var pe=function(e,n){var t=n||W,i=t!==W?1:e;$(i),K(t),_&&"function"==typeof _.onChange&&_.onChange(i,n)},he=function(e,n){if(void 0===e&&(e=G),void 0===n&&(n=W),!1===_)return null;var t,i=void 0!==(null==_?void 0:_.total)?_.total:Q.length,r=Math.ceil(i/n)||1,o=Math.min(e,r);if(void 0!==(null==_?void 0:_.total))t=Q;else{var a=(o-1)*n,s=a+n;t=Q.slice(a,s)}return{data:t,total:i,pageSize:n,current:o,totalPages:r}},fe=function(e,n){return"function"==typeof f?f(e,n):e[f]||n},ge=function(e){return null==e?"":"string"==typeof e?e:"number"==typeof e?String(e):Array.isArray(e)?e.map(ge).join(""):"object"==typeof e&&e.props&&e.props.children?ge(e.props.children):""},me=function(e,n,t){se({rowIndex:e,colKey:n}),ue(String(t||""))},ve=function(e,n){n.onSave&&n.onSave(e,de),se(null),ue("")},xe=function(){se(null),ue("")},Ce=function(n,t,i,r,o){var a={width:n.width||"auto",textAlign:n.align||"left",backgroundColor:"white"};if("start"===n.fixed||!0===n.fixed){a.position="sticky";for(var s=0,l=0;l<r;l++)s+=U[l]||0;a.left="".concat(s,"px"),a.zIndex=5}else if("end"===n.fixed){a.position="sticky";var c=0;for(l=o.length-1;l>r;l--)c+=U[l]||0;a.right="".concat(c,"px"),a.zIndex=5}var d=I.length?I.length-1:-1,u=k.length?I.length+j.length:-1,p=("start"===n.fixed||!0===n.fixed)&&r===d,h="end"===n.fixed&&r===u,f=n.key||n.dataIndex||n._index,g=(null==ae?void 0:ae.rowIndex)===i&&(null==ae?void 0:ae.colKey)===String(f),m=n.dataIndex?t[n.dataIndex]:null;n.render&&(m=n.render(m,t,i));var v=n.maxLines&&n.maxLines>0,x="";if(n.tooltip&&!g&&!(x=ge(m))&&n.dataIndex&&(x=String(t[n.dataIndex]||"")),n.editable&&g)return e.jsx("td",{style:a,className:"".concat(p?"idp-table-fixed-left-shadow":"").concat(h?" idp-table-fixed-right-shadow":""),children:e.jsxs("div",{className:"idp-table-edit-cell",onClick:function(e){return e.stopPropagation()},children:[e.jsx("input",{type:"text",className:"idp-table-edit-input",value:de,onChange:function(e){return ue(e.target.value)},autoFocus:!0,onClick:function(e){return e.stopPropagation()}}),e.jsxs("div",{className:"idp-table-edit-actions",children:[e.jsx("span",{className:"idp-table-edit-icon idp-edit-submit",onClick:function(){return ve(t,n)},title:"保存",children:e.jsx(D,{type:"check",size:24,color:"#339af0"})}),e.jsx("span",{className:"idp-table-edit-icon idp-edit-cancel",onClick:xe,title:"取消",children:e.jsx(D,{type:"close",size:24,color:"#339af0"})})]})]})},n.key||n.dataIndex||n._index);var C=v?e.jsx("div",{className:"idp-table-cell-ellipsis",style:{WebkitLineClamp:n.maxLines},children:m}):m,_=x?e.jsx(kn,{title:x,placement:"top",children:C}):C;return e.jsxs("td",{style:a,onClick:n.editable?function(){return me(i,String(f),m)}:void 0,className:"".concat(p?"idp-table-fixed-left-shadow":"").concat(h?" idp-table-fixed-right-shadow":"").concat(v?" idp-table-cell-has-ellipsis":"").concat(n.editable?" idp-table-editable-cell":""),children:[_,n.editable&&e.jsx("span",{className:"idp-table-edit-icon-wrapper",children:e.jsx(D,{type:"edit",size:16,color:"#339af0"})})]},n.key||n.dataIndex||n._index)},_e=s.useSensors(s.useSensor(s.PointerSensor,{activationConstraint:{distance:8}}),s.useSensor(s.KeyboardSensor,{coordinateGetter:l.sortableKeyboardCoordinates})),Ee=function(e){var n=e.active,t=e.over;if(t&&n.id!==t.id){var i=he(),r=i?i.data:Q,o=r.findIndex(function(e,t){return String(fe(e,t))===String(n.id)}),a=r.findIndex(function(e,n){return String(fe(e,n))===String(t.id)});if(-1!==o&&-1!==a){var s=l.arrayMove(r,o,a);if(i&&_&&"object"==typeof _&&void 0===_.total){var c=(i.current-1)*i.pageSize,d=C([],Q,!0);s.forEach(function(e,n){d[c+n]=e}),ee(d),L&&L(d)}else ee(s),L&&L(s)}}},be={width:p.x?"number"==typeof p.x?"".concat(p.x,"px"):p.x:"100%"},ye={maxHeight:p.y?"number"==typeof p.y?"".concat(p.y,"px"):p.y:"auto",overflowY:p.y?"auto":"visible",overflowX:p.x?"auto":"visible"},Oe=C(C(C([],I,!0),j,!0),k,!0),Te=n.useMemo(function(){return he()},[Q,_,W,G]),Ne=Te?Te.data:Q;return e.jsxs("div",{ref:te,className:"custom-table-container ".concat(d?"bordered":""," ").concat(x," ").concat(A?"draggable":""),style:be,children:[X&&e.jsx("div",{className:"custom-table-loading-mask",children:e.jsxs("div",{className:"custom-table-loading-content",children:[e.jsx("div",{className:"custom-table-loading-spinner",children:e.jsxs("svg",{viewBox:"0 0 24 24",className:"custom-table-loading-icon",children:[e.jsx("circle",{className:"custom-table-loading-track",cx:"12",cy:"12",r:"10",fill:"none",strokeWidth:"2"}),e.jsx("circle",{className:"custom-table-loading-indicator",cx:"12",cy:"12",r:"10",fill:"none",strokeWidth:"2"})]})}),T&&e.jsx("div",{className:"custom-table-loading-text",children:T})]})}),e.jsx("div",{className:"custom-table-header",ref:ie,onScroll:function(e){if(ie.current&&re.current){var n=e.target;n===ie.current&&re.current.scrollLeft!==n.scrollLeft&&(re.current.scrollLeft=n.scrollLeft)}},children:e.jsxs("table",{className:"custom-table ".concat(d?"bordered":""),children:[e.jsx("colgroup",{children:Oe.map(function(n,t){return e.jsx("col",{style:{width:n.width||"auto"}},"header-col-".concat(n.dataIndex||n.key||t))})}),e.jsx("thead",{children:e.jsx("tr",{children:Oe.map(function(n,t){return function(n,t,i){var r={width:n.width||"auto",textAlign:n.align||"left",backgroundColor:"#fafafa !important",top:0};if("start"===n.fixed||!0===n.fixed){r.position="sticky";for(var o=0,a=0;a<t;a++)o+=U[a]||0;r.left="".concat(o,"px"),r.zIndex=10}else if("end"===n.fixed){r.position="sticky";var s=0;for(a=i.length-1;a>t;a--)s+=U[a]||0;r.right="".concat(s,"px"),r.zIndex=10}return e.jsx("th",{style:r,children:n.title||""},n.key||n.dataIndex||n._index)}(n,t,Oe)})})})]})}),e.jsx("div",{className:"custom-table-body",ref:re,style:ye,onScroll:function(e){if(ie.current&&re.current){var n=e.target;n===re.current&&ie.current.scrollLeft!==n.scrollLeft&&(ie.current.scrollLeft=n.scrollLeft)}},children:function(){var n=e.jsxs("table",{className:"custom-table ".concat(d?"bordered":""),children:[e.jsx("colgroup",{children:Oe.map(function(n,t){return e.jsx("col",{style:{width:n.width||"auto"}},"body-col-".concat(n.dataIndex||n.key||t))})}),e.jsx("tbody",{children:A?Ne.map(function(n,t){return e.jsx(Hn,{id:String(fe(n,t)),record:n,rowIndex:t,columns:a,columnWidths:U,fixedLeftColumns:I,fixedRightColumns:k,normalColumns:j,allColumns:Oe,editingCell:ae,editingValue:de,handleEdit:me,handleSave:ve,handleCancel:xe,setEditingValue:ue,renderTableCell:Ce},fe(n,t))}):Ne.map(function(n,t){return e.jsx("tr",{children:Oe.map(function(e,i){return Ce(e,n,t,i,Oe)})},fe(n,t))})})]});if(A){var t=Ne.map(function(e,n){return String(fe(e,n))});return e.jsx(s.DndContext,{sensors:_e,collisionDetection:s.closestCenter,onDragEnd:Ee,children:e.jsx(l.SortableContext,{items:t,strategy:l.verticalListSortingStrategy,children:n})})}return n}()}),0===Ne.length&&e.jsx("div",{className:"custom-table-empty",children:E||e.jsx(le,{size:"small",description:"暂无数据"})}),function(){if(!1===_||!Te)return null;var n=Te.total,t=Te.current,i=Te.pageSize,r=m(_||{},["onChange","pageSize","current"]);return e.jsx("div",{className:"custom-table-pagination-wrapper",children:e.jsx(Rn,g({total:n,current:t,pageSize:i,onChange:pe,showTotal:function(e,n){return"第 ".concat(n[0],"-").concat(n[1]," 条,共 ").concat(e," 条")},showSizeChanger:!0,showQuickJumper:!0,align:"flex-end"},r))})}()]})};function Pn(e){return on({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M34.9 289.5l-22.2-22.2c-9.4-9.4-9.4-24.6 0-33.9L207 39c9.4-9.4 24.6-9.4 33.9 0l194.3 194.3c9.4 9.4 9.4 24.6 0 33.9L413 289.4c-9.5 9.5-25 9.3-34.3-.4L264 168.6V456c0 13.3-10.7 24-24 24h-32c-13.3 0-24-10.7-24-24V168.6L69.2 289.1c-9.3 9.8-24.8 10-34.3.4z"},child:[]}]})(e)}var jn=function(t){var i=t.showAfter,r=void 0===i?100:i,o=t.bottom,a=void 0===o?30:o,s=t.right,l=void 0===s?30:s,c=t.size,d=void 0===c?40:c,u=t.color,p=void 0===u?"#fff":u,h=t.bgColor,f=void 0===h?"#1a2980":h,g=t.boxShadow,m=void 0===g?"0 2px 10px rgba(0, 0, 0, 0.15)":g,v=t.onClick,x=t.containerRef,C=t.icon,_=n.useState(!1),E=_[0],b=_[1],y=n.useRef(null),O=n.useCallback(function(){(null==x?void 0:x.current)?x.current.scrollTo({top:0,behavior:"smooth"}):window.scrollTo({top:0,behavior:"smooth"}),null==v||v()},[v,x]);if(n.useEffect(function(){var e=function(){var e=0;e=(null==x?void 0:x.current)?x.current.scrollTop:window.pageYOffset,b(e>r)};if(null==x?void 0:x.current){var n=x.current;return n.addEventListener("scroll",e),e(),function(){return n.removeEventListener("scroll",e)}}return window.addEventListener("scroll",e),e(),function(){return window.removeEventListener("scroll",e)}},[r,x]),!E)return null;var T=e.jsx(Pn,{size:Math.floor(.5*d)}),N=.5*d;return(null==x?void 0:x.current)?e.jsx("div",{ref:y,className:"top-button-wrapper-container",style:{position:"sticky",bottom:"".concat(a,"px"),marginLeft:"auto",width:"".concat(d,"px"),height:"".concat(d,"px"),right:"".concat(l,"px"),zIndex:10},children:e.jsx("button",{className:"top-button",onClick:O,style:{width:"".concat(d,"px"),height:"".concat(d,"px"),backgroundColor:f,color:p,boxShadow:m,padding:0,border:"none"},children:C?e.jsx("span",{style:{width:N,height:N,display:"flex",alignItems:"center",justifyContent:"center"},children:C}):T})}):e.jsx("div",{ref:y,className:"top-button-wrapper",style:{position:"fixed",bottom:"".concat(a,"px"),right:"".concat(l,"px"),zIndex:1e3},children:e.jsx("button",{className:"top-button",onClick:O,style:{width:"".concat(d,"px"),height:"".concat(d,"px"),backgroundColor:f,color:p,boxShadow:m,padding:0,border:"none"},children:C?e.jsx("span",{style:{width:N,height:N,display:"flex",alignItems:"center",justifyContent:"center"},children:C}):T})})},Vn=function(n){var t=n.children,i=n.width,r=n.rows,o=n.style,a=n.className,s=g(g({},o),{width:i}),l=["idp-typography",function(e){return e?"idp-typography--line-clamp-".concat(e):""}(r),a].filter(Boolean);return e.jsx("div",{className:l.join(" "),style:s,children:t})},zn=function(t){var i=t.items,r=t.columns,o=void 0===r?3:r,a=t.gutter,s=void 0===a?20:a,l=t.className,c=t.style,d=t.classNames,u=void 0===d?{}:d,p=t.styles,h=void 0===p?{}:p,f=t.onLayoutChange,m=n.useRef(null),v=n.useState(3),x=v[0],C=v[1],_=n.useState(20),E=_[0],b=_[1],y=function(e,n,t){if(null!==e&&"object"==typeof e&&!Array.isArray(e)){for(var i=e,r=0,o=Object.keys(i).map(Number).sort(function(e,n){return n-e});r<o.length;r++){var a=o[r];if(t>=a&&i.hasOwnProperty(a))return i[a]}return n}return e};n.useEffect(function(){var e,n=function(){clearTimeout(e),e=window.setTimeout(function(){if(m.current){var e=m.current.offsetWidth,n=y(o,3,e),t=y(s,20,e);C(n),b(t),f&&f(n,i)}},100)};return n(),window.addEventListener("resize",n),function(){clearTimeout(e),window.removeEventListener("resize",n)}},[o,s,i,f]);var O=n.useMemo(function(){var e=Array.from({length:x},function(){return[]});return i.filter(function(n){return!(void 0!==n.column&&n.column>=0&&n.column<x)||(e[n.column].push(n),!1)}).forEach(function(n,t){e[t%x].push(n)}),e},[i,x]),T=function(e,n){var t=u[e];return"function"==typeof t?t(n):t||""},N=function(e,n){var t=h[e];return"function"==typeof t?t(n):t||{}};return e.jsx("div",{ref:m,className:"idp-masonry ".concat(l||""," ").concat(T("container",0)),style:g(g({display:"flex",gap:"".concat(E,"px")},c),N("container",0)),children:O.map(function(n,t){return e.jsx("div",{className:"idp-masonry-column ".concat(T("column",t)),style:g({flex:1,display:"flex",flexDirection:"column",gap:"".concat(E,"px")},N("column",t)),children:n.map(function(n,t){return e.jsx("div",{className:"idp-masonry-item ".concat(T("item",t)),style:g({},N("item",t)),children:n.content},n.key)})},"column-".concat(t))})})},Un=function(n){var t=n.children,i=n.gap,r=void 0===i?12:i,o=n.align,a=void 0===o?"center":o,s=n.wrap,l=void 0===s?"nowrap":s,c=n.className,d=n.style,p=void 0===d?{}:d,h=n.inline,f=void 0!==h&&h,m=u.default.Children.toArray(t).filter(function(e){return null!=e});return 0===m.length?null:e.jsx("div",{className:"space ".concat(f?"space-inline":""," ").concat(c||""),style:g({display:f?"inline-flex":"flex",gap:"number"==typeof r?"".concat(r,"px"):r,alignItems:function(){switch(a){case"start":return"flex-start";case"end":return"flex-end";case"center":default:return"center";case"baseline":return"baseline";case"stretch":return"stretch"}}(),flexWrap:l},p),children:m.map(function(n,t){return e.jsx("div",{className:"space-item",children:n},t)})})},Bn=function(){return null},Fn=function(t){var i=t.className,r=t.style,o=t.children,a=t.offsetTop,s=void 0===a?0:a,l=t.affix,c=void 0===l||l,d=t.bounds,p=void 0===d?5:d,h=t.getContainer,f=void 0===h?function(){return window.document.documentElement}:h,m=t.onChange,v=n.useState(""),x=v[0],_=v[1],E=n.useState([]),b=E[0],y=E[1],O=n.useRef(null),T=n.useRef(null),N=n.useRef(""),S=n.useRef(!1);n.useEffect(function(){N.current=x},[x]);var A=function(){var e=f(),n=e===window.document.documentElement||e===document.body,t=!1,i=b.map(function(i){var r=document.querySelector(i.href);if(r){var o=r.getBoundingClientRect(),a=0;if(n)a=o.top+window.scrollY-s;else{var l=e.getBoundingClientRect();a=o.top-l.top+e.scrollTop-s}if(Math.abs(a-i.top)>1)return t=!0,g(g({},i),{top:a})}return i});t&&y(i)},L=function(){if(!S.current&&0!==b.length){for(var e=f(),n=(e===window.document.documentElement||e===document.body?window.scrollY:e.scrollTop)+s+p,t="",i=C([],b,!0).sort(function(e,n){return e.top-n.top}),r=0;r<i.length&&n>=i[r].top;r+=1)t=i[r].href;t!==N.current&&(_(t),null==m||m(t))}};n.useEffect(function(){var e=function(e){var n=[],t=function(e){if(u.default.isValidElement(e)){var i=e;if(i.type===Bn&&i.props.href&&i.props.title&&n.push({href:i.props.href,title:i.props.title,top:0}),"children"in i.props&&i.props.children){var r=i.props.children;Array.isArray(r)?r.forEach(t):t(r)}}};return Array.isArray(e)?e.forEach(t):t(e),n}(o);y(e)},[o]),n.useEffect(function(){A(),L();var e=f();T.current=function(){L()},e.addEventListener("scroll",T.current);var n=function(){A(),L()};return window.addEventListener("resize",n),function(){T.current&&e.removeEventListener("scroll",T.current),window.removeEventListener("resize",n)}},[b,s,p,f,m]);var w="idp-anchor ".concat(i||""," ").concat(c?"idp-anchor-affix":"");return e.jsx("div",{ref:O,className:w,style:r,children:e.jsx("ul",{className:"idp-anchor-list",children:b.map(function(n){return e.jsx("li",{className:"idp-anchor-link ".concat(x===n.href?"idp-anchor-link-active":""),children:e.jsx("a",{href:n.href,onClick:function(e){return function(e,n){e.preventDefault();var t=document.querySelector(n);if(t){var i=f();S.current=!0,console.log("开始点击锚点,设置isUserClickingRef为true"),_(n),m&&(console.log("点击锚点,触发onChange:",n),m(n)),setTimeout(function(){if(i!==window.document.documentElement&&i!==document.body){var e=i.getBoundingClientRect(),n=(r=t.getBoundingClientRect()).top-e.top+i.scrollTop-s;i&&"function"==typeof i.scrollTo&&i.scrollTo({top:n,behavior:"smooth"})}else{var r=t.getBoundingClientRect(),o=window.pageYOffset||document.documentElement.scrollTop;n=r.top+o-s,window.scrollTo({top:n,behavior:"smooth"})}setTimeout(function(){S.current=!1,console.log("滚动完成,清除isUserClickingRef标记")},800)},0)}}(e,n.href)},className:"idp-anchor-link-a",children:n.title})},n.href)})})})};Fn.Link=Bn;var Gn=Fn,$n=function(n){var t=n.items,i=n.separator,r=void 0===i?"/":i,o=n.className,a=void 0===o?"":o;return t&&0!==t.length?e.jsx("nav",{className:"breadcrumb ".concat(a),"aria-label":"breadcrumb",children:e.jsx("ol",{className:"breadcrumb-list",children:t.map(function(n,i){var o=i===t.length-1;return e.jsx("li",{className:"breadcrumb-item",children:o?e.jsx("span",{className:"breadcrumb-current",children:n.label}):e.jsxs(e.Fragment,{children:[n.href?e.jsx("a",{href:n.href,className:"breadcrumb-link",children:n.label}):e.jsx("span",{className:"breadcrumb-text",children:n.label}),i<t.length-1&&e.jsx("span",{className:"breadcrumb-separator",children:r})]})},i)})})}):null};const Yn=e=>"string"==typeof e,Wn=()=>{let e,n;const t=new Promise((t,i)=>{e=t,n=i});return t.resolve=e,t.reject=n,t},Kn=e=>null==e?"":""+e,Zn=/###/g,Xn=e=>e&&e.indexOf("###")>-1?e.replace(Zn,"."):e,qn=e=>!e||Yn(e),Jn=(e,n,t)=>{const i=Yn(n)?n.split("."):n;let r=0;for(;r<i.length-1;){if(qn(e))return{};const n=Xn(i[r]);!e[n]&&t&&(e[n]=new t),e=Object.prototype.hasOwnProperty.call(e,n)?e[n]:{},++r}return qn(e)?{}:{obj:e,k:Xn(i[r])}},Qn=(e,n,t)=>{const{obj:i,k:r}=Jn(e,n,Object);if(void 0!==i||1===n.length)return void(i[r]=t);let o=n[n.length-1],a=n.slice(0,n.length-1),s=Jn(e,a,Object);for(;void 0===s.obj&&a.length;)o=`${a[a.length-1]}.${o}`,a=a.slice(0,a.length-1),s=Jn(e,a,Object),s?.obj&&void 0!==s.obj[`${s.k}.${o}`]&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=t},et=(e,n)=>{const{obj:t,k:i}=Jn(e,n);if(t&&Object.prototype.hasOwnProperty.call(t,i))return t[i]},nt=(e,n,t)=>{for(const i in n)"__proto__"!==i&&"constructor"!==i&&(i in e?Yn(e[i])||e[i]instanceof String||Yn(n[i])||n[i]instanceof String?t&&(e[i]=n[i]):nt(e[i],n[i],t):e[i]=n[i]);return e},tt=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var it={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const rt=e=>Yn(e)?e.replace(/[&<>"'\/]/g,e=>it[e]):e;const ot=[" ",",","?","!",";"],at=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(void 0!==n)return n;const t=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,t),this.regExpQueue.push(e),t}}(20),st=(e,n,t=".")=>{if(!e)return;if(e[n]){if(!Object.prototype.hasOwnProperty.call(e,n))return;return e[n]}const i=n.split(t);let r=e;for(let e=0;e<i.length;){if(!r||"object"!=typeof r)return;let n,o="";for(let a=e;a<i.length;++a)if(a!==e&&(o+=t),o+=i[a],n=r[o],void 0!==n){if(["string","number","boolean"].indexOf(typeof n)>-1&&a<i.length-1)continue;e+=a-e+1;break}r=n}return r},lt=e=>e?.replace("_","-"),ct={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,n){console?.[e]?.apply?.(console,n)}};class dt{constructor(e,n={}){this.init(e,n)}init(e,n={}){this.prefix=n.prefix||"i18next:",this.logger=e||ct,this.options=n,this.debug=n.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,t,i){return i&&!this.debug?null:(Yn(e[0])&&(e[0]=`${t}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new dt(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new dt(this.logger,e)}}var ut=new dt;class pt{constructor(){this.observers={}}on(e,n){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const t=this.observers[e].get(n)||0;this.observers[e].set(n,t+1)}),this}off(e,n){this.observers[e]&&(n?this.observers[e].delete(n):delete this.observers[e])}emit(e,...n){if(this.observers[e]){Array.from(this.observers[e].entries()).forEach(([e,t])=>{for(let i=0;i<t;i++)e(...n)})}if(this.observers["*"]){Array.from(this.observers["*"].entries()).forEach(([t,i])=>{for(let r=0;r<i;r++)t.apply(t,[e,...n])})}}}class ht extends pt{constructor(e,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=n,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,n,t,i={}){const r=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,o=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,n],t&&(Array.isArray(t)?a.push(...t):Yn(t)&&r?a.push(...t.split(r)):a.push(t)));const s=et(this.data,a);return!s&&!n&&!t&&e.indexOf(".")>-1&&(e=a[0],n=a[1],t=a.slice(2).join(".")),!s&&o&&Yn(t)?st(this.data?.[e]?.[n],t,r):s}addResource(e,n,t,i,r={silent:!1}){const o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator;let a=[e,n];t&&(a=a.concat(o?t.split(o):t)),e.indexOf(".")>-1&&(a=e.split("."),i=n,n=a[1]),this.addNamespaces(n),Qn(this.data,a,i),r.silent||this.emit("added",e,n,t,i)}addResources(e,n,t,i={silent:!1}){for(const i in t)(Yn(t[i])||Array.isArray(t[i]))&&this.addResource(e,n,i,t[i],{silent:!0});i.silent||this.emit("added",e,n,t)}addResourceBundle(e,n,t,i,r,o={silent:!1,skipCopy:!1}){let a=[e,n];e.indexOf(".")>-1&&(a=e.split("."),i=t,t=n,n=a[1]),this.addNamespaces(n);let s=et(this.data,a)||{};o.skipCopy||(t=JSON.parse(JSON.stringify(t))),i?nt(s,t,r):s={...s,...t},Qn(this.data,a,s),o.silent||this.emit("added",e,n,t)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return void 0!==this.getResource(e,n)}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(e=>n[e]&&Object.keys(n[e]).length>0)}toJSON(){return this.data}}var ft={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,n,t,i,r){return e.forEach(e=>{n=this.processors[e]?.process(n,t,i,r)??n}),n}};const gt=Symbol("i18next/PATH_KEY");function mt(e,n){const{[gt]:t}=e(function(){const e=[],n=Object.create(null);let t;return n.get=(i,r)=>(t?.revoke?.(),r===gt?e:(e.push(r),t=Proxy.revocable(i,n),t.proxy)),Proxy.revocable(Object.create(null),n).proxy}());return t.join(n?.keySeparator??".")}const vt={},xt=e=>!Yn(e)&&"boolean"!=typeof e&&"number"!=typeof e;class Ct extends pt{constructor(e,n={}){var t,i;super(),t=e,i=this,["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach(e=>{t[e]&&(i[e]=t[e])}),this.options=n,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=ut.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,n={interpolation:{}}){const t={...n};if(null==e)return!1;const i=this.resolve(e,t);if(void 0===i?.res)return!1;const r=xt(i.res);return!1!==t.returnObjects||!r}extractFromKey(e,n){let t=void 0!==n.nsSeparator?n.nsSeparator:this.options.nsSeparator;void 0===t&&(t=":");const i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator;let r=n.ns||this.options.defaultNS||[];const o=t&&e.indexOf(t)>-1,a=!(this.options.userDefinedKeySeparator||n.keySeparator||this.options.userDefinedNsSeparator||n.nsSeparator||((e,n,t)=>{n=n||"",t=t||"";const i=ot.filter(e=>n.indexOf(e)<0&&t.indexOf(e)<0);if(0===i.length)return!0;const r=at.getRegExp(`(${i.map(e=>"?"===e?"\\?":e).join("|")})`);let o=!r.test(e);if(!o){const n=e.indexOf(t);n>0&&!r.test(e.substring(0,n))&&(o=!0)}return o})(e,t,i));if(o&&!a){const n=e.match(this.interpolator.nestingRegexp);if(n&&n.length>0)return{key:e,namespaces:Yn(r)?[r]:r};const o=e.split(t);(t!==i||t===i&&this.options.ns.indexOf(o[0])>-1)&&(r=o.shift()),e=o.join(i)}return{key:e,namespaces:Yn(r)?[r]:r}}translate(e,n,t){let i="object"==typeof n?{...n}:n;if("object"!=typeof i&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof i&&(i={...i}),i||(i={}),null==e)return"";"function"==typeof e&&(e=mt(e,{...this.options,...i})),Array.isArray(e)||(e=[String(e)]);const r=void 0!==i.returnDetails?i.returnDetails:this.options.returnDetails,o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(e[e.length-1],i),l=s[s.length-1];let c=void 0!==i.nsSeparator?i.nsSeparator:this.options.nsSeparator;void 0===c&&(c=":");const d=i.lng||this.language,u=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===d?.toLowerCase())return u?r?{res:`${l}${c}${a}`,usedKey:a,exactUsedKey:a,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${c}${a}`:r?{res:a,usedKey:a,exactUsedKey:a,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:a;const p=this.resolve(e,i);let h=p?.res;const f=p?.usedKey||a,g=p?.exactUsedKey||a,m=void 0!==i.joinArrays?i.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,x=void 0!==i.count&&!Yn(i.count),C=Ct.hasDefaultValue(i),_=x?this.pluralResolver.getSuffix(d,i.count,i):"",E=i.ordinal&&x?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):"",b=x&&!i.ordinal&&0===i.count,y=b&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${_}`]||i[`defaultValue${E}`]||i.defaultValue;let O=h;v&&!h&&C&&(O=y);const T=xt(O),N=Object.prototype.toString.apply(O);if(!(v&&O&&T&&["[object Number]","[object Function]","[object RegExp]"].indexOf(N)<0)||Yn(m)&&Array.isArray(O))if(v&&Yn(m)&&Array.isArray(h))h=h.join(m),h&&(h=this.extendTranslation(h,e,i,t));else{let n=!1,r=!1;!this.isValidLookup(h)&&C&&(n=!0,h=y),this.isValidLookup(h)||(r=!0,h=a);const s=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&r?void 0:h,u=C&&y!==h&&this.options.updateMissing;if(r||n||u){if(this.logger.log(u?"updateKey":"missingKey",d,l,a,u?y:h),o){const e=this.resolve(a,{...i,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t<n.length;t++)e.push(n[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);const t=(e,n,t)=>{const r=C&&t!==h?t:s;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,n,r,u,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,n,r,u,i),this.emit("missingKey",e,l,n,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&x?e.forEach(e=>{const n=this.pluralResolver.getSuffixes(e,i);b&&i[`defaultValue${this.options.pluralSeparator}zero`]&&n.indexOf(`${this.options.pluralSeparator}zero`)<0&&n.push(`${this.options.pluralSeparator}zero`),n.forEach(n=>{t([e],a+n,i[`defaultValue${n}`]||y)})}):t(e,a,y))}h=this.extendTranslation(h,e,i,p,t),r&&h===a&&this.options.appendNamespaceToMissingKey&&(h=`${l}${c}${a}`),(r||n)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${c}${a}`:a,n?h:void 0,i))}else{if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,O,{...i,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return r?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){const e=Array.isArray(O),n=e?[]:{},t=e?g:f;for(const e in O)if(Object.prototype.hasOwnProperty.call(O,e)){const r=`${t}${o}${e}`;n[e]=C&&!h?this.translate(r,{...i,defaultValue:xt(y)?y[e]:void 0,joinArrays:!1,ns:s}):this.translate(r,{...i,joinArrays:!1,ns:s}),n[e]===r&&(n[e]=O[e])}h=n}}return r?(p.res=h,p.usedParams=this.getUsedParamsDetails(i),p):h}extendTranslation(e,n,t,i,r){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...t},t.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!t.skipInterpolation){t.interpolation&&this.interpolator.init({...t,interpolation:{...this.options.interpolation,...t.interpolation}});const o=Yn(e)&&(void 0!==t?.interpolation?.skipOnVariables?t.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let a;if(o){const n=e.match(this.interpolator.nestingRegexp);a=n&&n.length}let s=t.replace&&!Yn(t.replace)?t.replace:t;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,t.lng||this.language||i.usedLng,t),o){const n=e.match(this.interpolator.nestingRegexp);a<(n&&n.length)&&(t.nest=!1)}!t.lng&&i&&i.res&&(t.lng=this.language||i.usedLng),!1!==t.nest&&(e=this.interpolator.nest(e,(...e)=>r?.[0]!==e[0]||t.context?this.translate(...e,n):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${n[0]}`),null),t)),t.interpolation&&this.interpolator.reset()}const o=t.postProcess||this.options.postProcess,a=Yn(o)?[o]:o;return null!=e&&a?.length&&!1!==t.applyPostProcessor&&(e=ft.handle(a,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(t)},...t}:t,this)),e}resolve(e,n={}){let t,i,r,o,a;return Yn(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;const s=this.extractFromKey(e,n),l=s.key;i=l;let c=s.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const d=void 0!==n.count&&!Yn(n.count),u=d&&!n.ordinal&&0===n.count,p=void 0!==n.context&&(Yn(n.context)||"number"==typeof n.context)&&""!==n.context,h=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);c.forEach(e=>{this.isValidLookup(t)||(a=e,vt[`${h[0]}-${e}`]||!this.utils?.hasLoadedNamespace||this.utils?.hasLoadedNamespace(a)||(vt[`${h[0]}-${e}`]=!0,this.logger.warn(`key "${i}" for languages "${h.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(i=>{if(this.isValidLookup(t))return;o=i;const a=[l];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(a,l,i,e,n);else{let e;d&&(e=this.pluralResolver.getSuffix(i,n.count,n));const t=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(n.ordinal&&0===e.indexOf(r)&&a.push(l+e.replace(r,this.options.pluralSeparator)),a.push(l+e),u&&a.push(l+t)),p){const i=`${l}${this.options.contextSeparator||"_"}${n.context}`;a.push(i),d&&(n.ordinal&&0===e.indexOf(r)&&a.push(i+e.replace(r,this.options.pluralSeparator)),a.push(i+e),u&&a.push(i+t))}}let s;for(;s=a.pop();)this.isValidLookup(t)||(r=s,t=this.getResource(i,e,s,n))}))})}),{res:t,usedKey:i,exactUsedKey:r,usedLng:o,usedNS:a}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,n,t,i={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,n,t,i):this.resourceStore.getResource(e,n,t,i)}getUsedParamsDetails(e={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],t=e.replace&&!Yn(e.replace);let i=t?e.replace:e;if(t&&void 0!==e.count&&(i.count=e.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!t){i={...i};for(const e of n)delete i[e]}return i}static hasDefaultValue(e){const n="defaultValue";for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&n===t.substring(0,12)&&void 0!==e[t])return!0;return!1}}class _t{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ut.create("languageUtils")}getScriptPartFromCode(e){if(!(e=lt(e))||e.indexOf("-")<0)return null;const n=e.split("-");return 2===n.length?null:(n.pop(),"x"===n[n.length-1].toLowerCase()?null:this.formatLanguageCode(n.join("-")))}getLanguagePartFromCode(e){if(!(e=lt(e))||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(Yn(e)&&e.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(e)[0]}catch(e){}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(e=>{if(n)return;const t=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(t)||(n=t)}),!n&&this.options.supportedLngs&&e.forEach(e=>{if(n)return;const t=this.getScriptPartFromCode(e);if(this.isSupportedCode(t))return n=t;const i=this.getLanguagePartFromCode(e);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(e=>e===i?e:e.indexOf("-")<0&&i.indexOf("-")<0?void 0:e.indexOf("-")>0&&i.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===i||0===e.indexOf(i)&&i.length>1?e:void 0)}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if("function"==typeof e&&(e=e(n)),Yn(e)&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let t=e[n];return t||(t=e[this.getScriptPartFromCode(n)]),t||(t=e[this.formatLanguageCode(n)]),t||(t=e[this.getLanguagePartFromCode(n)]),t||(t=e.default),t||[]}toResolveHierarchy(e,n){const t=this.getFallbackCodes((!1===n?[]:n)||this.options.fallbackLng||[],e),i=[],r=e=>{e&&(this.isSupportedCode(e)?i.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return Yn(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&r(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&r(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&r(this.getLanguagePartFromCode(e))):Yn(e)&&r(this.formatLanguageCode(e)),t.forEach(e=>{i.indexOf(e)<0&&r(this.formatLanguageCode(e))}),i}}const Et={zero:0,one:1,two:2,few:3,many:4,other:5},bt={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class yt{constructor(e,n={}){this.languageUtils=e,this.options=n,this.logger=ut.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,n={}){const t=lt("dev"===e?"en":e),i=n.ordinal?"ordinal":"cardinal",r=JSON.stringify({cleanedCode:t,type:i});if(r in this.pluralRulesCache)return this.pluralRulesCache[r];let o;try{o=new Intl.PluralRules(t,{type:i})}catch(t){if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),bt;if(!e.match(/-|_/))return bt;const i=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(i,n)}return this.pluralRulesCache[r]=o,o}needsPlural(e,n={}){let t=this.getRule(e,n);return t||(t=this.getRule("dev",n)),t?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,n,t={}){return this.getSuffixes(e,t).map(e=>`${n}${e}`)}getSuffixes(e,n={}){let t=this.getRule(e,n);return t||(t=this.getRule("dev",n)),t?t.resolvedOptions().pluralCategories.sort((e,n)=>Et[e]-Et[n]).map(e=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,n,t={}){const i=this.getRule(e,t);return i?`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",n,t))}}const Ot=(e,n,t,i=".",r=!0)=>{let o=((e,n,t)=>{const i=et(e,t);return void 0!==i?i:et(n,t)})(e,n,t);return!o&&r&&Yn(t)&&(o=st(e,t,i),void 0===o&&(o=st(n,t,i))),o},Tt=e=>e.replace(/\$/g,"$$$$");class Nt{constructor(e={}){this.logger=ut.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:t,useRawValueToEscape:i,prefix:r,prefixEscaped:o,suffix:a,suffixEscaped:s,formatSeparator:l,unescapeSuffix:c,unescapePrefix:d,nestingPrefix:u,nestingPrefixEscaped:p,nestingSuffix:h,nestingSuffixEscaped:f,nestingOptionsSeparator:g,maxReplaces:m,alwaysFormat:v}=e.interpolation;this.escape=void 0!==n?n:rt,this.escapeValue=void 0===t||t,this.useRawValueToEscape=void 0!==i&&i,this.prefix=r?tt(r):o||"{{",this.suffix=a?tt(a):s||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=u?tt(u):p||tt("$t("),this.nestingSuffix=h?tt(h):f||tt(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==v&&v,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,n)=>e?.source===n?(e.lastIndex=0,e):new RegExp(n,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,n,t,i){let r,o,a;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=e=>{if(e.indexOf(this.formatSeparator)<0){const r=Ot(n,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(r,void 0,t,{...i,...n,interpolationkey:e}):r}const r=e.split(this.formatSeparator),o=r.shift().trim(),a=r.join(this.formatSeparator).trim();return this.format(Ot(n,s,o,this.options.keySeparator,this.options.ignoreJSONStructure),a,t,{...i,...n,interpolationkey:o})};this.resetRegExp();const c=i?.missingInterpolationHandler||this.options.missingInterpolationHandler,d=void 0!==i?.interpolation?.skipOnVariables?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>Tt(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?Tt(this.escape(e)):Tt(e)}].forEach(n=>{for(a=0;r=n.regex.exec(e);){const t=r[1].trim();if(o=l(t),void 0===o)if("function"==typeof c){const n=c(e,r,i);o=Yn(n)?n:""}else if(i&&Object.prototype.hasOwnProperty.call(i,t))o="";else{if(d){o=r[0];continue}this.logger.warn(`missed to pass in variable ${t} for interpolating ${e}`),o=""}else Yn(o)||this.useRawValueToEscape||(o=Kn(o));const s=n.safeValue(o);if(e=e.replace(r[0],s),d?(n.regex.lastIndex+=o.length,n.regex.lastIndex-=r[0].length):n.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),e}nest(e,n,t={}){let i,r,o;const a=(e,n)=>{const t=this.nestingOptionsSeparator;if(e.indexOf(t)<0)return e;const i=e.split(new RegExp(`${t}[ ]*{`));let r=`{${i[1]}`;e=i[0],r=this.interpolate(r,o);const a=r.match(/'/g),s=r.match(/"/g);((a?.length??0)%2==0&&!s||s.length%2!=0)&&(r=r.replace(/'/g,'"'));try{o=JSON.parse(r),n&&(o={...n,...o})}catch(n){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,n),`${e}${t}${r}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,e};for(;i=this.nestingRegexp.exec(e);){let s=[];o={...t},o=o.replace&&!Yn(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;const l=/{.*}/.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(-1!==l&&(s=i[1].slice(l).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),i[1]=i[1].slice(0,l)),r=n(a.call(this,i[1].trim(),o),o),r&&i[0]===e&&!Yn(r))return r;Yn(r)||(r=Kn(r)),r||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),r=""),s.length&&(r=s.reduce((e,n)=>this.format(e,n,t.lng,{...t,interpolationkey:i[1].trim()}),r.trim())),e=e.replace(i[0],r),this.regexp.lastIndex=0}return e}}const St=e=>{const n={};return(t,i,r)=>{let o=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(o={...o,[r.interpolationkey]:void 0});const a=i+JSON.stringify(o);let s=n[a];return s||(s=e(lt(i),r),n[a]=s),s(t)}},At=e=>(n,t,i)=>e(lt(t),i)(n);class Lt{constructor(e={}){this.logger=ut.create("formatter"),this.options=e,this.init(e)}init(e,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const t=n.cacheInBuiltFormats?St:At;this.formats={number:t((e,n)=>{const t=new Intl.NumberFormat(e,{...n});return e=>t.format(e)}),currency:t((e,n)=>{const t=new Intl.NumberFormat(e,{...n,style:"currency"});return e=>t.format(e)}),datetime:t((e,n)=>{const t=new Intl.DateTimeFormat(e,{...n});return e=>t.format(e)}),relativetime:t((e,n)=>{const t=new Intl.RelativeTimeFormat(e,{...n});return e=>t.format(e,n.range||"day")}),list:t((e,n)=>{const t=new Intl.ListFormat(e,{...n});return e=>t.format(e)})}}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=St(n)}format(e,n,t,i={}){const r=n.split(this.formatSeparator);if(r.length>1&&r[0].indexOf("(")>1&&r[0].indexOf(")")<0&&r.find(e=>e.indexOf(")")>-1)){const e=r.findIndex(e=>e.indexOf(")")>-1);r[0]=[r[0],...r.splice(1,e)].join(this.formatSeparator)}return r.reduce((e,n)=>{const{formatName:r,formatOptions:o}=(e=>{let n=e.toLowerCase().trim();const t={};if(e.indexOf("(")>-1){const i=e.split("(");n=i[0].toLowerCase().trim();const r=i[1].substring(0,i[1].length-1);"currency"===n&&r.indexOf(":")<0?t.currency||(t.currency=r.trim()):"relativetime"===n&&r.indexOf(":")<0?t.range||(t.range=r.trim()):r.split(";").forEach(e=>{if(e){const[n,...i]=e.split(":"),r=i.join(":").trim().replace(/^'+|'+$/g,""),o=n.trim();t[o]||(t[o]=r),"false"===r&&(t[o]=!1),"true"===r&&(t[o]=!0),isNaN(r)||(t[o]=parseInt(r,10))}})}return{formatName:n,formatOptions:t}})(n);if(this.formats[r]){let n=e;try{const a=i?.formatParams?.[i.interpolationkey]||{},s=a.locale||a.lng||i.locale||i.lng||t;n=this.formats[r](e,s,{...o,...i,...a})}catch(e){this.logger.warn(e)}return n}return this.logger.warn(`there was no format function for ${r}`),e},e)}}class wt extends pt{constructor(e,n,t,i={}){super(),this.backend=e,this.store=n,this.services=t,this.languageUtils=t.languageUtils,this.options=i,this.logger=ut.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(t,i.backend,i)}queueLoad(e,n,t,i){const r={},o={},a={},s={};return e.forEach(e=>{let i=!0;n.forEach(n=>{const a=`${e}|${n}`;!t.reload&&this.store.hasResourceBundle(e,n)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===o[a]&&(o[a]=!0):(this.state[a]=1,i=!1,void 0===o[a]&&(o[a]=!0),void 0===r[a]&&(r[a]=!0),void 0===s[n]&&(s[n]=!0)))}),i||(a[e]=!0)}),(Object.keys(r).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(r),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,n,t){const i=e.split("|"),r=i[0],o=i[1];n&&this.emit("failedLoading",r,o,n),!n&&t&&this.store.addResourceBundle(r,o,t,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2,n&&t&&(this.state[e]=0);const a={};this.queue.forEach(t=>{((e,n,t)=>{const{obj:i,k:r}=Jn(e,n,Object);i[r]=i[r]||[],i[r].push(t)})(t.loaded,[r],o),((e,n)=>{void 0!==e.pending[n]&&(delete e.pending[n],e.pendingCount--)})(t,e),n&&t.errors.push(n),0!==t.pendingCount||t.done||(Object.keys(t.loaded).forEach(e=>{a[e]||(a[e]={});const n=t.loaded[e];n.length&&n.forEach(n=>{void 0===a[e][n]&&(a[e][n]=!0)})}),t.done=!0,t.errors.length?t.callback(t.errors):t.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,n,t,i=0,r=this.retryTimeout,o){if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:n,fcName:t,tried:i,wait:r,callback:o});this.readingCalls++;const a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&s&&i<this.maxRetries?setTimeout(()=>{this.read.call(this,e,n,t,i+1,2*r,o)},r):o(a,s)},s=this.backend[t].bind(this.backend);if(2!==s.length)return s(e,n,a);try{const t=s(e,n);t&&"function"==typeof t.then?t.then(e=>a(null,e)).catch(a):a(null,t)}catch(e){a(e)}}prepareLoading(e,n,t={},i){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();Yn(e)&&(e=this.languageUtils.toResolveHierarchy(e)),Yn(n)&&(n=[n]);const r=this.queueLoad(e,n,t,i);if(!r.toLoad.length)return r.pending.length||i(),null;r.toLoad.forEach(e=>{this.loadOne(e)})}load(e,n,t){this.prepareLoading(e,n,{},t)}reload(e,n,t){this.prepareLoading(e,n,{reload:!0},t)}loadOne(e,n=""){const t=e.split("|"),i=t[0],r=t[1];this.read(i,r,"read",void 0,void 0,(t,o)=>{t&&this.logger.warn(`${n}loading namespace ${r} for language ${i} failed`,t),!t&&o&&this.logger.log(`${n}loaded namespace ${r} for language ${i}`,o),this.loaded(e,t,o)})}saveMissing(e,n,t,i,r,o={},a=()=>{}){if(!this.services?.utils?.hasLoadedNamespace||this.services?.utils?.hasLoadedNamespace(n)){if(null!=t&&""!==t){if(this.backend?.create){const s={...o,isUpdate:r},l=this.backend.create.bind(this.backend);if(l.length<6)try{let r;r=5===l.length?l(e,n,t,i,s):l(e,n,t,i),r&&"function"==typeof r.then?r.then(e=>a(null,e)).catch(a):a(null,r)}catch(e){a(e)}else l(e,n,t,i,a,s)}e&&e[0]&&this.store.addResource(e[0],n,t,i)}}else this.logger.warn(`did not save key "${t}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")}}const It=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let n={};if("object"==typeof e[1]&&(n=e[1]),Yn(e[1])&&(n.defaultValue=e[1]),Yn(e[2])&&(n.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const t=e[3]||e[2];Object.keys(t).forEach(e=>{n[e]=t[e]})}return n},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Mt=e=>(Yn(e.ns)&&(e.ns=[e.ns]),Yn(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Yn(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),"boolean"==typeof e.initImmediate&&(e.initAsync=e.initImmediate),e),Rt=()=>{};class kt extends pt{constructor(e={},n){var t;if(super(),this.options=Mt(e),this.services={},this.logger=ut,this.modules={external:[]},t=this,Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(e=>{"function"==typeof t[e]&&(t[e]=t[e].bind(t))}),n&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(e={},n){this.isInitializing=!0,"function"==typeof e&&(n=e,e={}),null==e.defaultNS&&e.ns&&(Yn(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const t=It();this.options={...t,...this.options,...Mt(e)},this.options.interpolation={...t.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=t.overloadTranslationOptionHandler),!0===this.options.debug&&"undefined"!=typeof console&&console.warn("i18next is maintained with support from locize.com — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com");const i=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?ut.init(i(this.modules.logger),this.options):ut.init(null,this.options),e=this.modules.formatter?this.modules.formatter:Lt;const n=new _t(this.options);this.store=new ht(this.options.resources,this.options);const r=this.services;r.logger=ut,r.resourceStore=this.store,r.languageUtils=n,r.pluralResolver=new yt(n,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix});this.options.interpolation.format&&this.options.interpolation.format!==t.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),!e||this.options.interpolation.format&&this.options.interpolation.format!==t.interpolation.format||(r.formatter=i(e),r.formatter.init&&r.formatter.init(r,this.options),this.options.interpolation.format=r.formatter.format.bind(r.formatter)),r.interpolator=new Nt(this.options),r.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},r.backendConnector=new wt(i(this.modules.backend),r.resourceStore,r,this.options),r.backendConnector.on("*",(e,...n)=>{this.emit(e,...n)}),this.modules.languageDetector&&(r.languageDetector=i(this.modules.languageDetector),r.languageDetector.init&&r.languageDetector.init(r,this.options.detection,this.options)),this.modules.i18nFormat&&(r.i18nFormat=i(this.modules.i18nFormat),r.i18nFormat.init&&r.i18nFormat.init(this)),this.translator=new Ct(this.services,this.options),this.translator.on("*",(e,...n)=>{this.emit(e,...n)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Rt),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...n)=>this.store[e](...n)});["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...n)=>(this.store[e](...n),this)});const r=Wn(),o=()=>{const e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),r.resolve(t),n(e,t)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?o():setTimeout(o,0),r}loadResources(e,n=Rt){let t=n;const i=Yn(e)?e:this.language;if("function"==typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if("cimode"===i?.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],n=n=>{if(!n)return;if("cimode"===n)return;this.services.languageUtils.toResolveHierarchy(n).forEach(n=>{"cimode"!==n&&e.indexOf(n)<0&&e.push(n)})};if(i)n(i);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>n(e))}this.options.preload?.forEach?.(e=>n(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)})}else t(null)}reloadResources(e,n,t){const i=Wn();return"function"==typeof e&&(t=e,e=void 0),"function"==typeof n&&(t=n,n=void 0),e||(e=this.languages),n||(n=this.options.ns),t||(t=Rt),this.services.backendConnector.reload(e,n,e=>{i.resolve(),t(e)}),i}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&ft.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1)){for(let e=0;e<this.languages.length;e++){const n=this.languages[e];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,n){this.isLanguageChangingTo=e;const t=Wn();this.emit("languageChanging",e);const i=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},r=(r,o)=>{o?this.isLanguageChangingTo===e&&(i(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,t.resolve((...e)=>this.t(...e)),n&&n(r,(...e)=>this.t(...e))},o=n=>{e||n||!this.services.languageDetector||(n=[]);const t=Yn(n)?n:n&&n[0],o=this.store.hasLanguageSomeTranslations(t)?t:this.services.languageUtils.getBestMatchFromCodes(Yn(n)?[n]:n);o&&(this.language||i(o),this.translator.language||this.translator.changeLanguage(o),this.services.languageDetector?.cacheUserLanguage?.(o)),this.loadResources(o,e=>{r(e,o)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),t}getFixedT(e,n,t){const i=(e,n,...r)=>{let o;o="object"!=typeof n?this.options.overloadTranslationOptionHandler([e,n].concat(r)):{...n},o.lng=o.lng||i.lng,o.lngs=o.lngs||i.lngs,o.ns=o.ns||i.ns,""!==o.keyPrefix&&(o.keyPrefix=o.keyPrefix||t||i.keyPrefix);const a=this.options.keySeparator||".";let s;return o.keyPrefix&&Array.isArray(e)?s=e.map(e=>("function"==typeof e&&(e=mt(e,{...this.options,...n})),`${o.keyPrefix}${a}${e}`)):("function"==typeof e&&(e=mt(e,{...this.options,...n})),s=o.keyPrefix?`${o.keyPrefix}${a}${e}`:e),this.t(s,o)};return Yn(e)?i.lng=e:i.lngs=e,i.ns=n,i.keyPrefix=t,i}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const t=n.lng||this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,r=this.languages[this.languages.length-1];if("cimode"===t.toLowerCase())return!0;const o=(e,n)=>{const t=this.services.backendConnector.state[`${e}|${n}`];return-1===t||0===t||2===t};if(n.precheck){const e=n.precheck(this,o);if(void 0!==e)return e}return!!this.hasResourceBundle(t,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!o(t,e)||i&&!o(r,e)))}loadNamespaces(e,n){const t=Wn();return this.options.ns?(Yn(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{t.resolve(),n&&n(e)}),t):(n&&n(),Promise.resolve())}loadLanguages(e,n){const t=Wn();Yn(e)&&(e=[e]);const i=this.options.preload||[],r=e.filter(e=>i.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return r.length?(this.options.preload=i.concat(r),this.loadResources(e=>{t.resolve(),n&&n(e)}),t):(n&&n(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{const n=new Intl.Locale(e);if(n&&n.getTextInfo){const e=n.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}const n=this.services?.languageUtils||new _t(It());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},n){const t=new kt(e,n);return t.createInstance=kt.createInstance,t}cloneInstance(e={},n=Rt){const t=e.forkResourceStore;t&&delete e.forkResourceStore;const i={...this.options,...e,isClone:!0},r=new kt(i);void 0===e.debug&&void 0===e.prefix||(r.logger=r.logger.clone(e));if(["store","services","language"].forEach(e=>{r[e]=this[e]}),r.services={...this.services},r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},t){const e=Object.keys(this.store.data).reduce((e,n)=>(e[n]={...this.store.data[n]},e[n]=Object.keys(e[n]).reduce((t,i)=>(t[i]={...e[n][i]},t),e[n]),e),{});r.store=new ht(e,i),r.services.resourceStore=r.store}if(e.interpolation){const n={...It().interpolation,...this.options.interpolation,...e.interpolation},t={...i,interpolation:n};r.services.interpolator=new Nt(t)}return r.translator=new Ct(r.services,i),r.translator.on("*",(e,...n)=>{r.emit(e,...n)}),r.init(i,n),r.translator.options=i,r.translator.backendConnector.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ht=kt.createInstance(),Dt={},Pt=(e,n,t,i)=>{Ut(t)&&Dt[t]||(Ut(t)&&(Dt[t]=new Date),((e,n,t,i)=>{const r=[t,{code:n,...i||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(r,"warn","react-i18next::",!0);Ut(r[0])&&(r[0]=`react-i18next:: ${r[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...r):console?.warn&&console.warn(...r)})(e,n,t,i))},jt=(e,n)=>()=>{if(e.isInitialized)n();else{const t=()=>{setTimeout(()=>{e.off("initialized",t)},0),n()};e.on("initialized",t)}},Vt=(e,n,t)=>{e.loadNamespaces(n,jt(e,t))},zt=(e,n,t,i)=>{if(Ut(t)&&(t=[t]),e.options.preload&&e.options.preload.indexOf(n)>-1)return Vt(e,t,i);t.forEach(n=>{e.options.ns.indexOf(n)<0&&e.options.ns.push(n)}),e.loadLanguages(n,jt(e,i))},Ut=e=>"string"==typeof e,Bt=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Ft={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},Gt=e=>Ft[e];let $t={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(Bt,Gt),transDefaultProps:void 0};let Yt;const Wt={type:"3rdParty",init(e){((e={})=>{$t={...$t,...e}})(e.options.react),(e=>{Yt=e})(e)}},Kt=n.createContext();class Zt{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var Xt,qt={exports:{}},Jt={};var Qt,ei={};"production"===process.env.NODE_ENV?qt.exports=function(){if(Xt)return Jt;Xt=1;var e=u.default,n="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n},t=e.useState,i=e.useEffect,r=e.useLayoutEffect,o=e.useDebugValue;function a(e){var t=e.getSnapshot;e=e.value;try{var i=t();return!n(e,i)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,n){return n()}:function(e,n){var s=n(),l=t({inst:{value:s,getSnapshot:n}}),c=l[0].inst,d=l[1];return r(function(){c.value=s,c.getSnapshot=n,a(c)&&d({inst:c})},[e,s,n]),i(function(){return a(c)&&d({inst:c}),e(function(){a(c)&&d({inst:c})})},[e]),o(s),s};return Jt.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:s,Jt}():qt.exports=(Qt||(Qt=1,"production"!==process.env.NODE_ENV&&function(){function e(e){var n=e.getSnapshot;e=e.value;try{var i=n();return!t(e,i)}catch(e){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=u.default,t="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n},i=n.useState,r=n.useEffect,o=n.useLayoutEffect,a=n.useDebugValue,s=!1,l=!1,c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,n){return n()}:function(c,d){s||void 0===n.startTransition||(s=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var u=d();if(!l){var p=d();t(u,p)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),l=!0)}var h=(p=i({inst:{value:u,getSnapshot:d}}))[0].inst,f=p[1];return o(function(){h.value=u,h.getSnapshot=d,e(h)&&f({inst:h})},[c,u,d]),r(function(){return e(h)&&f({inst:h}),c(function(){e(h)&&f({inst:h})})},[c]),a(u),u};ei.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),ei);var ni=qt.exports;const ti={t:(e,n)=>{return Ut(n)?n:"object"==typeof(t=n)&&null!==t&&Ut(n.defaultValue)?n.defaultValue:Array.isArray(e)?e[e.length-1]:e;var t},ready:!1},ii=()=>()=>{},ri=(e,t={})=>{const{i18n:i}=t,{i18n:r,defaultNS:o}=n.useContext(Kt)||{},a=i||r||Yt;a&&!a.reportNamespaces&&(a.reportNamespaces=new Zt),a||Pt(a,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const s=n.useMemo(()=>({...$t,...a?.options?.react,...t}),[a,t]),{useSuspense:l,keyPrefix:c}=s,d=e||o||a?.options?.defaultNS,u=Ut(d)?[d]:d||["translation"],p=n.useMemo(()=>u,u);a?.reportNamespaces?.addUsedNamespaces?.(p);const h=n.useRef(0),f=n.useCallback(e=>{if(!a)return ii;const{bindI18n:n,bindI18nStore:t}=s,i=()=>{h.current+=1,e()};return n&&a.on(n,i),t&&a.store.on(t,i),()=>{n&&n.split(" ").forEach(e=>a.off(e,i)),t&&t.split(" ").forEach(e=>a.store.off(e,i))}},[a,s]),g=n.useRef(),m=n.useCallback(()=>{if(!a)return ti;const e=!(!a.isInitialized&&!a.initializedStoreOnce)&&p.every(e=>((e,n,t={})=>n.languages&&n.languages.length?n.hasLoadedNamespace(e,{lng:t.lng,precheck:(n,i)=>{if(t.bindI18n&&t.bindI18n.indexOf("languageChanging")>-1&&n.services.backendConnector.backend&&n.isLanguageChangingTo&&!i(n.isLanguageChangingTo,e))return!1}}):(Pt(n,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:n.languages}),!0))(e,a,s)),n=t.lng||a.language,i=h.current,r=g.current;if(r&&r.ready===e&&r.lng===n&&r.keyPrefix===c&&r.revision===i)return r;const o={t:a.getFixedT(n,"fallback"===s.nsMode?p:p[0],c),ready:e,lng:n,keyPrefix:c,revision:i};return g.current=o,o},[a,p,c,s,t.lng]),[v,x]=n.useState(0),{t:C,ready:_}=ni.useSyncExternalStore(f,m,m);n.useEffect(()=>{if(a&&!_&&!l){const e=()=>x(e=>e+1);t.lng?zt(a,t.lng,p,e):Vt(a,p,e)}},[a,t.lng,p,_,l,v]);const E=a||{},b=n.useRef(null),y=n.useRef(),O=e=>{const n=Object.getOwnPropertyDescriptors(e);n.__original&&delete n.__original;const t=Object.create(Object.getPrototypeOf(e),n);if(!Object.prototype.hasOwnProperty.call(t,"__original"))try{Object.defineProperty(t,"__original",{value:e,writable:!1,enumerable:!1,configurable:!1})}catch(e){}return t},T=n.useMemo(()=>{const e=E,n=e?.language;let t=e;e&&(b.current&&b.current.__original===e?y.current!==n?(t=O(e),b.current=t,y.current=n):t=b.current:(t=O(e),b.current=t,y.current=n));const i=[C,t,_];return i.t=C,i.i18n=t,i.ready=_,i},[C,E,_,E.resolvedLanguage,E.language,E.languages]);if(a&&l&&!_)throw new Promise(e=>{const n=()=>e();t.lng?zt(a,t.lng,p,n):Vt(a,p,n)});return T};function oi({i18n:e,defaultNS:t,children:i}){const r=n.useMemo(()=>({i18n:e,defaultNS:t}),[e,t]);return n.createElement(Kt.Provider,{value:r},i)}var ai={MODAL_TITLE:"标题",MODAL_OKTEXT:"确认",MODAL_CANCELTEXT:"取消",EMPTY_DESCRIPTION:"空状态组件,用于在数据为空时展示友好的提示信息。",SELECT_PLACEHOLDER:"请选择",INTRO:"简介",INSTALL:"安装",I18N:"国际化",BUTTON:"按钮",COLORPICKER:"颜色选择器",COPYTOCLIPBOARD:"剪贴板复制",DIVIDER:"分割线",EMPTY:"空状态",FLEX:"弹性布局",ICON:"icon",INPUT:"输入框",MARQUEE:"跑马灯",MESSAGE:"消息提示",NOTICE:"公告栏",NOTIFICATION:"通知",RADIO:"单选框",TABLE:"表格",TOP:"回到顶部",TYPOGRAPHY:"排版",VARIABLES:"自定义变量",API_REF:"API 参考",IDP_DESIGN:"IDP Design",IDP_STUDIO:"IDP Studio",INTRO_DESCRIPTION:"IDP Design 组件库介绍",INSTALL_DESCRIPTION:"如何安装和引用",I18N_DESCRIPTION:"组件库国际化支持",BUTTON_DESCRIPTION:"可定制的按钮组件,支持多种样式和尺寸。",COLORPICKER_DESCRIPTION:"用于选择颜色的组件,支持预设颜色、透明度调整和渐变色等功能。",COPYTOCLIPBOARD_DESCRIPTION:"用于将文本复制到剪贴板的组件,支持自定义样式和状态回调。",DIVIDER_DESCRIPTION:"用于页面内容分割的组件,支持横向和纵向两种方向,以及实线和虚线两种类型。",FLEX_DESCRIPTION:"通用的 flex 布局组件,提供灵活的布局方式。",ICON_DESCRIPTION:"图标组件",INPUT_DESCRIPTION:"输入框组件",MARQUEE_DESCRIPTION:"这是一个可定制的滚动公告栏组件,支持多种样式和配置选项。",MESSAGE_DESCRIPTION:"消息提示组件",NOTICE_DESCRIPTION:"公告栏组件",NOTIFICATION_DESCRIPTION:"通知组件",RADIO_DESCRIPTION:"单选框组件",SELECT_DESCRIPTION:"选择器组件",TABLE_DESCRIPTION:"表格组件",TOP_DESCRIPTION:"回到顶部组件",TYPOGRAPHY_DESCRIPTION:"排版组件,支持自定义宽度和行数限制,超过行数限制时显示省略号。",VARIABLES_DESCRIPTION:"自定义组件库主题颜色",API_REF_DESCRIPTION:"查看组件 API 文档",LANGUAGE_SWITCH:"语言切换",ENGLISH:"English",CHINESE:"中文",VERSION:"版本",BUTTON_COMPONENT:"Button 组件",BASIC_USAGE:"基本使用",SHOW_VARIANTS_SIZES:"展示不同变体和尺寸的按钮。",VARIANT_BUTTONS:"变体按钮",SIZE_BUTTONS:"尺寸按钮",DISABLED_STATE:"禁用状态",ICON_BUTTONS:"带图标按钮",CUSTOM_STYLE:"自定义样式",API_PARAMETERS:"API 参数",PARAM_NAME:"参数名",TYPE:"类型",DEFAULT_VALUE:"默认值",DESCRIPTION:"描述",CHILDREN:"children",CHILDREN_DESC:"按钮文本内容",VARIANT:"variant",VARIANT_DESC:"按钮变体样式",SIZE:"size",SIZE_DESC:"按钮尺寸",DISABLED:"disabled",DISABLED_DESC:"是否禁用按钮",ON_CLICK:"onClick",ON_CLICK_DESC:"点击事件回调",CLASS_NAME:"className",CLASS_NAME_DESC:"自定义 CSS 类名",STYLE:"style",STYLE_DESC:"自定义内联样式",ICON_DESC:"按钮前缀图标,支持字符串(内置图标名)或自定义图标节点",CODE_EXAMPLES:"代码示例",USAGE_IN_OTHER_PROJECTS:"在其他项目中引用",BASIC_USAGE_CODE:"基本用法",DIFFERENT_SIZES:"不同尺寸",DISABLED_BUTTON:"禁用状态",BUTTON_WITH_ICON:"带图标按钮",BUTTON_SEARCH:"搜索",BUTTON_USER:"用户",BUTTON_DELETE:"删除",BUTTON_CONFIRM:"确认",BUTTON_WARNING:"警告",CUSTOM_STYLE_CLICK:"自定义样式和点击事件",INSTALLATION:"安装",INSTALLATION_DESCRIPTION:"IDP Design 组件库支持多种安装方式,您可以根据实际需求选择适合的安装方法。",LOCAL_FILE_INSTALLATION:"从本地文件安装",LOCAL_FILE_INSTALLATION_DESC:"如果您已经获取了 IDP Design 组件库的本地文件,可以通过以下方式安装:",NPM_LOCAL_INSTALL:"使用 npm 从本地目录安装",NPM_LOCAL_INSTALL_DESC:"将本地组件库目录作为依赖安装到您的项目中:",YARN_LOCAL_INSTALL:"使用 yarn 从本地目录安装",PATH_TO_IDP_DESIGN:"/path/to/idp-design",PATH_TO_IDP_DESIGN_DESC:"是您本地 IDP Design 组件库的绝对路径。",GIT_REPO_INSTALLATION:"从 Git 仓库安装",GIT_REPO_INSTALLATION_DESC:"您可以直接从 Git 仓库安装 IDP Design 组件库,支持指定分支或标签:",LATEST_MAIN_BRANCH:"安装主分支最新版本",SPECIFIC_BRANCH:"安装指定分支",BRANCH_NAME:"branch-name",BRANCH_NAME_DESC:"替换为您想要安装的分支名称,例如",EXAMPLE_BRANCHES:"dev 或 feature/new-component。",SPECIFIC_TAG:"安装指定标签版本",V1_0_0:"v1.0.0",V1_0_0_DESC:"替换为您想要安装的具体版本标签。",UPDATING_DEPENDENCIES:"更新依赖",UPDATING_DEPENDENCIES_DESC:"当 IDP Design 组件库有新版本发布时,您可以通过以下方式更新依赖:",UPDATING_INSTALLED_DEPENDENCIES:"更新本地安装的依赖",REINSTALLING_LOCAL_FILES:"重新安装本地文件依赖",USING_FORCE_PARAM:"使用 --force 参数强制重新安装,确保获取最新的本地文件。",UPDATING_GIT_DEPENDENCIES:"更新 Git 仓库依赖",UNINSTALL_REINSTALL:"或者先卸载再重新安装:",SEARCH:"搜索",USER:"用户",DELETE:"删除",CONFIRM:"确认",WARNING:"警告",REFERENCE_COMPONENT:"引用组件",COLORPICKER_COMPONENT:"ColorPicker 组件",DIVIDER_ORIENTATION:"分割线方向",DIVIDER_TYPE:"分割线类型",DIVIDER_COLOR:"分割线颜色",DIVIDER_COMPONENT:"Divider 组件",DIVIDER_SHOW_ORIENTATIONS_TYPES:"展示不同方向和类型的分割线。",HORIZONTAL_DIVIDER:"横向分割线",ABOVE_DEFAULT_HORIZONTAL:"上方是默认的横向分割线",BELOW_DEFAULT_HORIZONTAL:"下方是默认的横向分割线",VERTICAL_DIVIDER:"纵向分割线",LEFT_CONTENT:"左侧内容",RIGHT_CONTENT:"右侧内容",SOLID_DASHED:"实线与虚线",ABOVE_SOLID_DEFAULT:"上方是实线分割线(默认)",CONTENT_BETWEEN_DIVIDERS:"实线分割线和虚线分割线之间的内容",BELOW_DASHED:"下方是虚线分割线",CUSTOM_COLOR:"颜色自定义",DIVIDERS_DIFFERENT_COLORS:"不同颜色的分割线",COMBINED_USAGE:"组合用法",HORIZONTAL_DASHED_CUSTOM_COLOR:"横向虚线,自定义颜色",DIVIDERS_CUSTOM_STYLE:"带有自定义样式的分割线",DIVIDER_WITH_TEXT:"带文本的分割线效果",TEXT_CONTENT:"文本内容",COPY_URL_OR_TEXT_CONTENT:"需要复制的URL或文本内容",COPY_STATUS_CHANGE_CALLBACK:"复制状态变化回调",CUSTOM_CHILD_ELEMENT:"自定义子元素",COPY_OPERATION_PROMISE:"复制操作的Promise",COPY_SUCCESS:"复制成功!",COPY_FAILED:"复制失败!",COPYTOCLIPBOARD_COMPONENT:"CopyToClipboard 组件",DISPLAY_DIFFERENT_STYLES_COPY_BUTTONS:"展示不同样式的复制按钮。",TEXT_LINK_STYLE:"文本链接样式",COPY_LINK:"复制链接",BUTTON_STYLE:"按钮样式",CLICK_TO_COPY_CUSTOM_LINK:"点击复制自定义链接",STYLED_LINK:"带样式的链接",COPY_STYLED_LINK:"复制带样式的链接",USING_USECOPY_HOOK:"使用 useCopy 钩子",USE_USECOPY_TO_COPY_LINK:"使用 useCopy 复制链接",COMPONENT:"组件",HOOK:"钩子",SUCCESS:"成功",EMPTY_COMPONENT:"Empty 空状态",DEFAULT_EMPTY_STATE:"默认空状态",CUSTOM_DESCRIPTION:"自定义描述",CUSTOM_ICON:"自定义图标",CUSTOM_IMAGE:"自定义图片",WITH_ACTION_BUTTON:"带操作按钮",LARGE_SIZE:"大尺寸",MIDDLE_SIZE:"中尺寸",SMALL_SIZE:"小尺寸",NO_EXCEL_FILE:"暂无Excel文件",UPLOAD_FILE:"上传文件",VIEW_TEMPLATE:"查看模板",LOAD_DATA:"点击加载",TRANSPARENCY_ADJUSTMENT:"透明度调整",ENABLE_ALPHA_PROPERTY:"通过 alpha 属性启用透明度调整,支持 RGBA 颜色格式。",WITH_TRANSPARENCY:"带透明度",PRESET_COLORS:"预设颜色",SET_PRESET_COLORS:"通过 presetColors 属性设置常用的预设颜色,方便快速选择。",DISABLE_COLOR_PICKER:"通过 disabled 属性禁用颜色选择器,禁用后无法打开选择面板。",COLOR_SQUARE:"颜色方块",COLOR_TEXT:"颜色文字",COLOR_BUTTON:"颜色按钮",SELECT_COLOR:"选择颜色",CUSTOM_STYLE_PROPERTY:"通过 style 属性自定义颜色选择器的样式。",CUSTOM_BORDER_RADIUS:"自定义圆角",GRADIENT_SUPPORT:"渐变色支持",ENABLE_GRADIENT:"通过 gradient 属性启用渐变色支持,支持线性渐变颜色选择。",BASIC_GRADIENT:"基本渐变色",GRADIENT_COLOR:"渐变颜色",FEATURES:"特性说明",LIGHTWEIGHT:"轻量:仅 2.8KB gzipped(比 react-color 轻 13 倍)",TREE_SHAKING:"支持树摇:仅导入使用的部分",FAST:"快速:使用 hooks 和函数组件",TYPE_SAFE:"类型安全:严格的 TypeScript 支持",MOBILE_FRIENDLY:"移动端友好:支持触摸设备",ACCESSIBLE:"可访问性:遵循 WAI-ARIA 指南",NO_DEPENDENCIES:"无依赖:不依赖其他库",FLEX_COMPONENT:"Flex 组件",INTERACTIVE_EXAMPLE:"交互式示例",ADJUST_PROPERTIES:"通过下方的按钮和输入框,实时调整 flex 布局的各项属性。",ITEM_COUNT:"项目数量",ITEMS:"个项目",DIRECTION:"Direction (优先级高于Layout)",CURRENT_VALUE:"当前值",DEMONSTRATION_EFFECT:"演示效果",CURRENT_CONFIGURATION:"当前配置",MULTI_LEVEL_NESTING:"多层次嵌套示例",NESTING_DESCRIPTION:"展示 Flex 组件的多层次嵌套使用,实现复杂的布局结构。",TITLE_AREA:"标题区域",VERTICAL_LAYOUT:"垂直布局",CENTER_ALIGNMENT:"居中对齐",JUSTIFY_BETWEEN:"两端对齐",WRAP_LAYOUT:"换行布局",COMPLEX_USAGE:"复合使用",ACTION_AREA:"操作区域",FLEX_CHILDREN_DESC:"子组件内容",FLEX_LAYOUT_DESC:"快速设置布局方向,horizontal 为水平布局,column 为列布局",FLEX_DIRECTION_DESC:"flex-direction 属性,优先级高于 layout",FLEX_JUSTIFY_DESC:"justify-content 属性",FLEX_ALIGN_DESC:"align-items 属性",FLEX_WRAP_DESC:"flex-wrap 属性",FLEX_GAP_DESC:"gap 属性,支持数值(px)和字符串",CENTER_CONTENT:"居中内容",MARQUEE_COMPONENT:"Marquee 公告组件",DEFAULT_CONFIGURATION:"1. 默认配置",DEFAULT_CONFIG_DESC:"默认高度: 40px, 默认速度: 50, 默认渐变背景",DEFAULT_ANNOUNCEMENT:"这是一条默认配置的公告信息,从右向左滚动,播放完毕后会自动重复播放!",CUSTOM_HEIGHT:"支持自定义公告栏高度(默认为60px,范围30-100px)",HEIGHT_60PX:"高度: 60px",CUSTOM_HEIGHT_ANNOUNCEMENT:"这是一条自定义高度为60px的公告信息!",CUSTOM_SPEED:"3. 自定义速度",SLOW_SPEED:"慢速: 20",SLOW_SPEED_ANNOUNCEMENT:"这是一条慢速滚动的公告信息,速度为20!",FAST_SPEED:"快速: 100",FAST_SPEED_ANNOUNCEMENT:"这是一条快速滚动的公告信息,速度为100!",CUSTOM_BACKGROUND:"4. 自定义背景色",CUSTOM_GRADIENT_BACKGROUND:"自定义渐变背景",GRADIENT_BACKGROUND_ANNOUNCEMENT_1:"这是一条自定义渐变背景的公告信息",GRADIENT_BACKGROUND_ANNOUNCEMENT_2:"这是第二条自定义渐变背景的公告信息",COMPREHENSIVE_CUSTOM:"5. 综合自定义",COMPREHENSIVE_CUSTOM_DESC:"高度: 50px, 速度: 75, 自定义背景",COMPREHENSIVE_ANNOUNCEMENT:"这是一条综合自定义配置的公告信息,高度50px,速度75,自定义渐变背景!",FIXED_TOP:"6. 固定到顶部",FIXED_TOP_DESC:"fixed=true,公告栏会浮动固定在页面顶部",FIXED_TOP_ANNOUNCEMENT:"这是一条固定顶部的公告信息,滚动页面时保持可见!",CLOSE_CALLBACK:"7. 关闭回调",CLOSE_CALLBACK_DESC:"点击关闭按钮触发 onClose 回调",CLOSE_CALLBACK_ANNOUNCEMENT:"这是一条带关闭回调的公告信息,点击右侧X关闭!",FULL_FUNCTIONALITY:"8. 完整功能示例",FULL_FUNCTIONALITY_DESC:"固定顶部 + 自定义高度 + 自定义速度 + 关闭回调",FULL_FUNCTIONALITY_ANNOUNCEMENT:"这是一条功能完整的公告信息,固定顶部、自定义高度和速度、支持关闭!",ANNOUNCEMENT_TEXT:"公告文本,可以是字符串或字符串数组",ANNOUNCEMENT_HEIGHT:"公告栏高度,单位为像素",SCROLL_SPEED:"滚动速度,数值越大滚动越快",ANNOUNCEMENT_BACKGROUND:"公告栏背景色,可以是纯色或渐变",DISPLAY_ANNOUNCEMENT:"是否显示公告栏",FIXED_POSITION:"是否固定在页面顶部",FIXED_DISTANCE:"固定时距离顶部的距离,单位为像素",DISPLAY_ICON:"是否显示公告图标",CLOSE_BUTTON_CALLBACK:"关闭按钮点击时的回调函数",COLORPICKER_CURRENT_COLOR:"当前颜色",COLORPICKER_CURRENT_GRADIENT:"当前渐变色",COLORPICKER_COLOR_VALUE:"当前颜色值(支持 HEX 格式)",COLORPICKER_CONFIRM_CHANGE:"确认选择颜色后的回调函数",COLORPICKER_REAL_TIME_CHANGE:"实时颜色变化时的回调函数",COLORPICKER_PRESET_COLORS:"预设颜色数组",COLORPICKER_GRADIENT_SUPPORT:"是否支持渐变色,启用后可选择线性渐变颜色",COLORPICKER_CUSTOM_TRIGGER:"自定义触发区域,支持任意 React 节点",EMPTY_CUSTOM_ICON:"自定义图标",EMPTY_CUSTOM_IMAGE_PATH:"自定义图片路径",EMPTY_DATA:"暂无数据",EMPTY_STATUS_DESCRIPTION:"空状态描述信息",EMPTY_CUSTOM_ACTION_AREA:"自定义操作区域",EMPTY_SIZE:"空状态尺寸",EMPTY_CUSTOM_STYLE:"自定义样式",EMPTY_CUSTOM_CLASS_NAME:"自定义CSS类名",NOTICE_COMPONENT_DESC:"这是一个滚动通知栏组件,使用 react-fast-marquee 实现无缝滚动效果。",NOTICE_HIDDEN:"通知已隐藏",HIDE_NOTICE:"隐藏通知",SHOW_NOTICE:"显示通知",CUSTOM_CONFIGURATION:"自定义配置",NOTICE_TEXT:"通知文本",ENTER_NOTICE_TEXT:"输入通知文本",NOTICE_BAR_HEIGHT:"公告栏高度",SHOW_CLOSE_BUTTON:"显示关闭按钮",FLOAT_TO_TOP:"悬浮到顶部",SEAMLESS_SCROLL:"使用 Marquee 组件实现无缝滚动效果",CONFIGURABLE_SPEED:"滚动速度可配置(默认为50,范围10-100)",CUSTOM_NOTICE_TEXT:"支持自定义通知文本内容",OPTIONAL_CLOSE_BUTTON:"可选择显示关闭按钮,宽度30px,点击可隐藏公告栏",FLOATING_TOP_FUNCTION:"支持悬浮到顶部功能,固定显示在页面顶部",TYPESCRIPT_SUPPORT:"组件支持TypeScript类型定义",USAGE_SCENARIOS:"使用场景",WEBSITE_ANNOUNCEMENT:"网站公告",SYSTEM_NOTIFICATION:"系统通知",PROMOTION_INFO:"促销活动信息",IMPORTANT_REMINDER:"重要消息提醒",SPEED_DESC:"滚动速度,数值越大滚动越快",HEIGHT_DESC:"公告栏高度,单位为像素",STYLES_DESC:"自定义通知栏样式",ICON_NOTICE_DESC:"通知文本前的图标",SHOW_CLOSE_BUTTON_DESC:"是否显示关闭按钮",CLOSE_STYLE_DESC:"自定义关闭按钮样式",FLOATING_TOP_DESC:"是否固定悬浮在页面顶部",PAUSE_ON_HOVER_DESC:"鼠标悬停时是否暂停滚动",MESSAGE_COMPONENT_DESC:"轻量级消息提示框,用于显示成功、警告和错误信息。",CLICK_BUTTONS_TO_SHOW_MESSAGES:"点击按钮显示不同类型的消息提示。",SHOW_SUCCESS_MESSAGE:"显示成功消息",SHOW_WARNING_MESSAGE:"显示警告消息",SHOW_ERROR_MESSAGE:"显示错误消息",OPERATION_SUCCESS:"操作成功!",WARNING_CHECK_INPUT:"警告:请检查输入!",OPERATION_FAILED_RETRY:"操作失败,请重试!",MESSAGE_TYPE:"消息类型",MESSAGE_CONTENT:"消息内容",MESSAGE_DURATION:"消息自动关闭时长(毫秒)",MESSAGE_CLOSE_CALLBACK:"消息关闭回调",MODAL_COMPONENT_DESC:"模态对话框组件,用于显示重要信息或需要用户确认的操作。",CLICK_BUTTON_OPEN_BASIC_MODAL:"点击按钮打开基本弹窗。",OPEN_BASIC_MODAL:"打开基本弹窗",BASIC_MODAL:"基本弹窗",MODAL_CONTENT_AREA:"这是弹窗的内容区域,可以放置任意内容。",MODAL_CENTERED:"弹窗会上下左右居中显示。",CUSTOM_SIZE:"自定义尺寸",CAN_CUSTOMIZE_MODAL_WIDTH_HEIGHT:"可以自定义弹窗的宽度和高度。",SMALL_SIZE_MODAL:"小尺寸弹窗",LARGE_SIZE_MODAL:"大尺寸弹窗",SMALL_SIZE_MODAL_CONTENT:"这是小尺寸弹窗,宽度为 400px。",LARGE_SIZE_MODAL_CONTENT:"这是大尺寸弹窗,宽度为 800px,高度为 500px。",CAN_PLACE_MORE_CONTENT:"可以放置更多内容。",ASYNC_CONFIRMATION:"异步确认",CLICK_CONFIRM_TO_PERFORM_ASYNC_OPERATION:"点击确认按钮后可以进行异步操作,完成后关闭弹窗。",ASYNC_CONFIRMATION_MODAL:"异步确认弹窗",AFTER_CLICK_CONFIRM_BUTTON:"点击确认按钮后,会模拟 1 秒的异步操作。",MODAL_WILL_AUTOMATICALLY_CLOSE_AFTER_OPERATION_COMPLETE:"操作完成后弹窗会自动关闭。",CONTENT_HEIGHT_AUTO_ADJUSTMENT:"内容高度自适应",WHEN_HEIGHT_NOT_SET_CONTENT_AREA_ADAPTS:"当未设置height时,内容区域高度自适应;当设置height时,内容区域高度自动计算。",AUTO_ADJUST_HEIGHT:"自适应高度",CONTENT_SCROLL_EXAMPLE:"内容滚动示例",AUTO_ADJUST_HEIGHT_MODAL:"自适应高度弹窗",THIS_IS_A_MODAL_WITHOUT_HEIGHT_SET:"这是一个未设置height的弹窗,内容区域高度会根据内容自动调整。",YOU_CAN_ADD_MORE_CONTENT_TO_TEST_ADAPTIVE_EFFECT:"你可以添加更多内容来测试自适应效果。",CONTENT_SCROLL_MODAL:"内容滚动弹窗",LONG_CONTENT_TEST:"长内容测试",THIS_IS_A_MODAL_WITH_FIXED_HEIGHT:"这是一个设置了固定高度的弹窗,内容区域高度会自动计算。",WHEN_CONTENT_EXCEEDS_CALCULATED_HEIGHT:"当内容超过计算高度时,会自动显示滚动条。",ANIMATION_DIRECTION_DEMONSTRATION:"动画方向演示",SUPPORT_FOUR_ANIMATION_DIRECTIONS:"支持四种动画方向,打开和关闭将使用相同的方向设置。",CENTER_ANIMATION:"中心动画",TOP_RIGHT_ANIMATION:"右上角动画",BOTTOM_RIGHT_ANIMATION:"右下角动画",NORMAL_ANIMATION:"正常动画",OPEN_FROM_CENTER_POINT_ENLARGE:"打开:从中心点放大",CLOSE_FROM_CENTER_POINT_SHRINK:"关闭:从中心点缩小消失",OPEN_FROM_TOP_RIGHT_MOVE_AND_ENLARGE:"打开:从右上角移动并放大",CLOSE_TO_TOP_RIGHT_MOVE_AND_SHRINK:"关闭:向右上角移动并缩小消失",OPEN_FROM_BOTTOM_RIGHT_MOVE_AND_ENLARGE:"打开:从右下角移动并放大",CLOSE_TO_BOTTOM_RIGHT_MOVE_AND_SHRINK:"关闭:向右下角移动并缩小消失",OPEN_SLIGHTLY_ENLARGE_AND_FADE_IN:"打开:轻微放大并淡入",CLOSE_SLIGHTLY_SHRINK_AND_FADE_OUT:"关闭:轻微缩小并淡出",CUSTOM_TOP_POSITION:"自定义顶部位置",THROUGH_TOP_PARAM_CUSTOMIZE_MODAL_DISTANCE_FROM_TOP:"通过 top 参数可以自定义弹窗距离顶部的位置,当同时设置 direction 时,direction 会强制使用默认值 normal。",USE_TOP_AND_DIRECTION_SIMULTANEOUSLY:"top 与 direction 同时使用",THIS_MODAL_IS_100PX_FROM_TOP:"此弹窗距离顶部 100px",USE_TOP_PARAM_TO_CUSTOMIZE_MODAL_VERTICAL_POSITION:"使用 top 参数可以自定义弹窗的垂直位置",THIS_MODAL_IS_200PX_FROM_TOP:"此弹窗距离顶部 200px",ALTHOUGH_DIRECTION_TOP_RIGHT_SET_BUT_DUE_TO_TOP_PARAM:'虽然设置了 direction="top-right",但由于同时设置了 top 参数,direction 被强制为 normal',CUSTOM_FOOTER:"自定义 Footer",CAN_CUSTOMIZE_BOTTOM_BUTTONS_THROUGH_FOOTER_PARAM:"可以通过 footer 参数自定义底部按钮,footer 为 null 时显示默认按钮,提供值时显示自定义按钮。",CUSTOM_FOOTER_MODAL:"自定义 Footer 弹窗",CANCEL:"取消",SAVE:"保存",THIS_IS_A_MODAL_WITH_CUSTOM_FOOTER:"这是一个自定义 Footer 的弹窗,底部显示了三个按钮:取消、保存和删除。",YOU_CAN_CUSTOMIZE_FOOTER_CONTENT_AND_STYLE:"您可以根据需要自定义 footer 的内容和样式。",CUSTOM_MOUNT_CONTAINER:"自定义挂载容器",CAN_SPECIFY_MODAL_MOUNT_HTML_NODE_THROUGH_GET_CONTAINER_PARAM:"可以通过 getContainer 参数指定 Modal 挂载的 HTML 节点,false 为挂载在当前 DOM。",MOUNT_IN_CURRENT_DOM:"挂载在当前 DOM",MOUNT_IN_CUSTOM_CONTAINER:"挂载在自定义容器",THIS_IS_A_CUSTOM_MOUNT_CONTAINER:"这是一个自定义的挂载容器",CLICK_MOUNT_IN_CUSTOM_CONTAINER_BUTTON:'点击"挂载在自定义容器"按钮,Modal 将挂载在此处',THIS_MODAL_IS_MOUNTED_IN_CURRENT_DOM:"这个 Modal 被挂载在当前 DOM 中,而不是 document.body。",CAN_ACHIEVE_THIS_EFFECT_THROUGH_GET_CONTAINER_FALSE:"可以通过 getContainer={false} 实现此效果。",THIS_MODAL_IS_MOUNTED_IN_CUSTOM_CONTAINER:"这个 Modal 被挂载在页面中的自定义容器里。",CAN_SPECIFY_MOUNTED_HTML_NODE_THROUGH_GET_CONTAINER_PROPERTY:"可以通过 getContainer 属性指定挂载的 HTML 节点。",CUSTOM_MASK_BACKGROUND_COLOR:"自定义遮罩背景色",CAN_CUSTOMIZE_MASK_BACKGROUND_COLOR_AND_OTHER_STYLES:"可以通过 maskStyle 属性自定义遮罩层的背景色和其他样式。",THIS_MODAL_MASK_USES_CUSTOM_BACKGROUND_COLOR:"这个 Modal 的遮罩层使用了自定义的背景色(半透明的红色)。",CAN_SET_VARIOUS_STYLES_OF_MASK_THROUGH_MASK_STYLE_PROPERTY:"可以通过 maskStyle 属性设置遮罩层的各种样式,如背景色、透明度等。",CUSTOM_ZINDEX:"自定义zIndex",CAN_SET_MASK_LAYER_LEVEL_THROUGH_ZINDEX_PROPERTY:"可以通过zIndex属性设置遮罩层的层级,默认值为1000。在嵌套Modal的情况下,需要设置不同的zIndex值来确保正确的显示层级。",OPEN_FIRST_MODAL:"打开第一个Modal",FIRST_MODAL_ZINDEX_1000:"第一个Modal (zIndex: 1000)",CLOSE:"关闭",OPEN_SECOND_MODAL:"打开第二个Modal",THIS_IS_THE_FIRST_MODAL_USING_DEFAULT_ZINDEX_1000:"这是第一个Modal,使用默认的zIndex值(1000)。",CLICK_OPEN_SECOND_MODAL_BUTTON_TO_POP_UP_SECOND_MODAL:'点击"打开第二个Modal"按钮,会弹出第二个Modal。',SECOND_MODAL_ZINDEX_1010:"第二个Modal (zIndex: 1010)",THIS_IS_THE_SECOND_MODAL_USING_HIGHER_ZINDEX_1010:"这是第二个Modal,使用了更高的zIndex值(1010)。",DUE_TO_HIGHER_ZINDEX_IT_WILL_DISPLAY_ABOVE_FIRST_MODAL:"由于设置了更高的zIndex,它会显示在第一个Modal的上方。",MODAL_VISIBLE_DESC:"控制弹窗显示/隐藏(必填)",MODAL_TITLE_DESC:"弹窗标题",MODAL_WIDTH_DESC:"弹窗宽度",MODAL_HEIGHT_DESC:"弹窗高度(可选,不设置则自适应)",MODAL_HEADER_HEIGHT_DESC:"顶部区域高度",MODAL_FOOTER_HEIGHT_DESC:"底部区域高度",MODAL_CONFIRM_LOADING_DESC:"确认按钮是否显示加载状态",MODAL_DIRECTION_DESC:"打开和关闭的动画方向",MODAL_TOP_DESC:"弹窗距离顶部的距离,设置后direction会强制使用normal",MODAL_FOOTER_DESC:"底部内容,为 null 时显示默认按钮,提供值时显示自定义内容",MODAL_ON_CANCEL_DESC:"取消按钮点击回调",MODAL_ON_OK_DESC:"确认按钮点击回调",MODAL_CHILDREN_DESC:"弹窗内容",MODAL_GET_CONTAINER_DESC:"指定 Modal 挂载的 HTML 节点,false 为挂载在当前 DOM",MODAL_OK_TEXT_DESC:"确认按钮文本",MODAL_CANCEL_TEXT_DESC:"取消按钮文本",MODAL_MASK_STYLE_DESC:"自定义遮罩层样式",MODAL_MASK_CLASS_NAME_DESC:"自定义遮罩层类名",MODAL_Z_INDEX_DESC:"遮罩层的z-index值",TYPOGRAPHY_COMPONENT:"Typography 组件",SHOW_BASIC_USAGE_TYPOGRAPHY:"展示Typography组件的基本使用方式。",DEFAULT_DISPLAY_NO_ROW_LIMIT:"默认显示(不限制行数)",LIMIT_1_ROW:"限制1行",LIMIT_2_ROWS:"限制2行",LIMIT_3_ROWS:"限制3行",DIFFERENT_WIDTHS:"不同宽度",WIDTH_200PX_LIMIT_1_ROW:"宽度200px,限制1行",WIDTH_300PX_LIMIT_2_ROWS:"宽度300px,限制2行",WIDTH_500PX_LIMIT_3_ROWS:"宽度500px,限制3行",MIXED_TEXT_WRAPPING:"中英文混合文本(测试换行问题)",MIXED_TEXT_CONTENT:"这是一段包含English英文的测试文本,用于测试中英文混合时的换行问题。当文本内容超过容器宽度时,英文应该紧跟在中文后面,而不是单独换行显示。",MIXED_TEXT_LIMIT_2_ROWS:"中英文混合文本(限制2行)",TYPOGRAPHY_LONG_TEXT:"这是一段很长的测试文本,用于测试Typography组件的行数限制功能。当文本内容超过指定的行数限制时,应该在末尾显示省略号。这个组件支持自定义宽度和行数限制,可以满足不同的布局需求。",TYPOGRAPHY_CHILDREN_DESC:"文本内容",TYPOGRAPHY_WIDTH_DESC:"宽度限制",TYPOGRAPHY_ROWS_DESC:"行数限制",TYPOGRAPHY_STYLE_DESC:"自定义样式",TYPOGRAPHY_CLASSNAME_DESC:"自定义类名",TYPOGRAPHY_MIXED_TEXT:"这是一段包含English英文的测试文本,用于测试中英文混合时的换行问题。当文本内容超过容器宽度时,英文应该紧跟在中文后面,而不是单独换行显示。",TYPOGRAPHY_MIXED_TEXT_2:"这是一段包含English英文的测试文本,用于测试中英文混合时的换行问题。当文本内容超过容器宽度时,英文应该紧跟在中文后面,而不是单独换行显示。",TYPOGRAPHY_DEFAULT_DISPLAY:"默认显示(不限制行数)",TYPOGRAPHY_LIMIT_1_ROW:"限制1行",TYPOGRAPHY_LIMIT_2_ROWS:"限制2行",TYPOGRAPHY_LIMIT_3_ROWS:"限制3行",TYPOGRAPHY_DIFFERENT_WIDTHS:"不同宽度",TYPOGRAPHY_MIXED_TEXT_TEST:"中英文混合文本(测试换行问题)",TYPOGRAPHY_MIXED_TEXT_TEST_2:"中英文混合文本(限制2行)",TYPOGRAPHY_BASIC_USAGE:"基本使用",TYPOGRAPHY_API_PARAMETERS:"API 参数",TYPOGRAPHY_CODE_EXAMPLE:"代码示例",TYPOGRAPHY_COMPONENT_DESCRIPTION:"排版组件,支持自定义宽度和行数限制,超过行数限制时显示省略号。",TYPOGRAPHY_BASIC_USAGE_DESCRIPTION:"展示Typography组件的基本使用方式。",TYPOGRAPHY_WIDTH_200PX:"宽度200px,限制1行",TYPOGRAPHY_WIDTH_300PX:"宽度300px,限制2行",TYPOGRAPHY_WIDTH_500PX:"宽度500px,限制3行"},si={MODAL_TITLE:"Title",MODAL_OKTEXT:"OK",MODAL_CANCELTEXT:"Cancel",EMPTY_DESCRIPTION:"Empty state component used to display friendly prompt messages when there is no data.",SELECT_PLACEHOLDER:"Please select",INTRO:"Introduction",INSTALL:"Installation",I18N:"Internationalization",BUTTON:"Button",COLORPICKER:"Color Picker",COPYTOCLIPBOARD:"Copy to Clipboard",DIVIDER:"Divider",EMPTY:"Empty State",FLEX:"Flex",ICON:"icon",INPUT:"Input",MARQUEE:"Marquee",MESSAGE:"Message",NOTICE:"Notice",NOTIFICATION:"Notification",RADIO:"Radio",TABLE:"Table",TOP:"Back to Top",TYPOGRAPHY:"Typography",VARIABLES:"Variables",API_REF:"API Reference",IDP_DESIGN:"IDP Design",IDP_STUDIO:"IDP Studio",INTRO_DESCRIPTION:"Introduction to IDP Design Component Library",INSTALL_DESCRIPTION:"How to install and reference",I18N_DESCRIPTION:"Internationalization support for component library",BUTTON_DESCRIPTION:"Customizable button component with multiple styles and sizes.",COLORPICKER_DESCRIPTION:"Color selection component that supports preset colors, opacity adjustment, and gradient colors.",COPYTOCLIPBOARD_DESCRIPTION:"Component for copying text to clipboard, supporting custom styles and status callbacks.",DIVIDER_DESCRIPTION:"Component for dividing page content, supporting both horizontal and vertical orientations, and solid and dashed types.",FLEX_DESCRIPTION:"General flex layout component that provides flexible layout options.",ICON_DESCRIPTION:"Icon component",INPUT_DESCRIPTION:"Input component",MARQUEE_DESCRIPTION:"This is a customizable scrolling announcement component that supports various styles and configuration options.",MESSAGE_DESCRIPTION:"Message component",NOTICE_DESCRIPTION:"Notice component",NOTIFICATION_DESCRIPTION:"Notification component",RADIO_DESCRIPTION:"Radio component",SELECT_DESCRIPTION:"Select component",TABLE_DESCRIPTION:"Table component",TOP_DESCRIPTION:"Back to top component",TYPOGRAPHY_DESCRIPTION:"Typography component, supports custom width and row limits, displays ellipsis when exceeding row limits.",VARIABLES_DESCRIPTION:"Customize component library theme colors",API_REF_DESCRIPTION:"View component API documentation",LANGUAGE_SWITCH:"Language Switch",ENGLISH:"English",CHINESE:"中文",VERSION:"Version",BUTTON_COMPONENT:"Button Component",BASIC_USAGE:"Basic Usage",SHOW_VARIANTS_SIZES:"Display buttons with different variants and sizes.",VARIANT_BUTTONS:"Variant Buttons",SIZE_BUTTONS:"Size Buttons",DISABLED_STATE:"Disabled State",ICON_BUTTONS:"Buttons with Icons",CUSTOM_STYLE:"Custom Style",API_PARAMETERS:"API Parameters",PARAM_NAME:"Parameter Name",TYPE:"Type",DEFAULT_VALUE:"Default Value",DESCRIPTION:"Description",CHILDREN:"children",CHILDREN_DESC:"Button text content",VARIANT:"variant",VARIANT_DESC:"Button variant style",SIZE:"size",SIZE_DESC:"Button size",DISABLED:"disabled",DISABLED_DESC:"Whether the button is disabled",ON_CLICK:"onClick",ON_CLICK_DESC:"Click event callback",CLASS_NAME:"className",CLASS_NAME_DESC:"Custom CSS class name",STYLE:"style",STYLE_DESC:"Custom inline style",ICON_DESC:"Button prefix icon, supports string (built-in icon name) or custom icon node",CODE_EXAMPLES:"Code Examples",USAGE_IN_OTHER_PROJECTS:"Usage in Other Projects",BASIC_USAGE_CODE:"Basic Usage",DIFFERENT_SIZES:"Different Sizes",DISABLED_BUTTON:"Disabled Button",BUTTON_WITH_ICON:"Button with Icon",BUTTON_SEARCH:"Search",BUTTON_USER:"User",BUTTON_DELETE:"Delete",BUTTON_CONFIRM:"Confirm",BUTTON_WARNING:"Warning",CUSTOM_STYLE_CLICK:"Custom Style and Click Event",INSTALLATION:"Installation",INSTALLATION_DESCRIPTION:"IDP Design component library supports multiple installation methods, you can choose the one that suits your needs.",LOCAL_FILE_INSTALLATION:"Installation from Local Files",LOCAL_FILE_INSTALLATION_DESC:"If you have obtained the local files of the IDP Design component library, you can install it in the following ways:",NPM_LOCAL_INSTALL:"Install from local directory using npm",NPM_LOCAL_INSTALL_DESC:"Install the local component library directory as a dependency in your project:",YARN_LOCAL_INSTALL:"Install from local directory using yarn",PATH_TO_IDP_DESIGN:"/path/to/idp-design",PATH_TO_IDP_DESIGN_DESC:"is the absolute path to your local IDP Design component library.",GIT_REPO_INSTALLATION:"Installation from Git Repository",GIT_REPO_INSTALLATION_DESC:"You can directly install the IDP Design component library from the Git repository, supporting specified branches or tags:",LATEST_MAIN_BRANCH:"Install the latest version of the main branch",SPECIFIC_BRANCH:"Install a specified branch",BRANCH_NAME:"branch-name",BRANCH_NAME_DESC:"Replace with the branch name you want to install, for example",EXAMPLE_BRANCHES:"dev or feature/new-component.",SPECIFIC_TAG:"Install a specified tag version",V1_0_0:"v1.0.0",V1_0_0_DESC:"Replace with the specific version tag you want to install.",UPDATING_DEPENDENCIES:"Updating Dependencies",UPDATING_DEPENDENCIES_DESC:"When a new version of the IDP Design component library is released, you can update the dependencies in the following ways:",UPDATING_INSTALLED_DEPENDENCIES:"Update locally installed dependencies",REINSTALLING_LOCAL_FILES:"Reinstall local file dependencies",USING_FORCE_PARAM:"Use the --force parameter to force reinstallation to ensure you get the latest local files.",UPDATING_GIT_DEPENDENCIES:"Update Git repository dependencies",UNINSTALL_REINSTALL:"Or uninstall and then reinstall:",SEARCH:"Search",USER:"User",DELETE:"Delete",CONFIRM:"Confirm",WARNING:"Warning",REFERENCE_COMPONENT:"Reference Component",COLORPICKER_COMPONENT:"ColorPicker Component",DIVIDER_ORIENTATION:"Divider orientation",DIVIDER_TYPE:"Divider type",DIVIDER_COLOR:"Divider color",DIVIDER_COMPONENT:"Divider Component",DIVIDER_SHOW_ORIENTATIONS_TYPES:"Display dividers with different orientations and types.",HORIZONTAL_DIVIDER:"Horizontal Divider",ABOVE_DEFAULT_HORIZONTAL:"Above is the default horizontal divider",BELOW_DEFAULT_HORIZONTAL:"Below is the default horizontal divider",VERTICAL_DIVIDER:"Vertical Divider",LEFT_CONTENT:"Left Content",RIGHT_CONTENT:"Right Content",SOLID_DASHED:"Solid and Dashed",ABOVE_SOLID_DEFAULT:"Above is the solid divider (default)",CONTENT_BETWEEN_DIVIDERS:"Content between solid and dashed dividers",BELOW_DASHED:"Below is the dashed divider",CUSTOM_COLOR:"Custom Color",DIVIDERS_DIFFERENT_COLORS:"Dividers with different colors",COMBINED_USAGE:"Combined Usage",HORIZONTAL_DASHED_CUSTOM_COLOR:"Horizontal dashed line with custom color",DIVIDERS_CUSTOM_STYLE:"Dividers with custom styles",DIVIDER_WITH_TEXT:"Divider with Text",TEXT_CONTENT:"Text content",COPY_URL_OR_TEXT_CONTENT:"URL or text content to copy",COPY_STATUS_CHANGE_CALLBACK:"Copy status change callback",CUSTOM_CHILD_ELEMENT:"Custom child element",COPY_OPERATION_PROMISE:"Copy operation Promise",COPY_SUCCESS:"Copy successful!",COPY_FAILED:"Copy failed!",COPYTOCLIPBOARD_COMPONENT:"CopyToClipboard Component",DISPLAY_DIFFERENT_STYLES_COPY_BUTTONS:"Display copy buttons with different styles.",TEXT_LINK_STYLE:"Text Link Style",COPY_LINK:"Copy Link",BUTTON_STYLE:"Button Style",CLICK_TO_COPY_CUSTOM_LINK:"Click to copy custom link",STYLED_LINK:"Styled Link",COPY_STYLED_LINK:"Copy styled link",USING_USECOPY_HOOK:"Using useCopy Hook",USE_USECOPY_TO_COPY_LINK:"Use useCopy to copy link",COMPONENT:"Component",HOOK:"Hook",SUCCESS:"success",EMPTY_COMPONENT:"Empty Empty State",DEFAULT_EMPTY_STATE:"Default Empty State",CUSTOM_DESCRIPTION:"Custom Description",CUSTOM_ICON:"Custom Icon",CUSTOM_IMAGE:"Custom Image",WITH_ACTION_BUTTON:"With Action Button",LARGE_SIZE:"Large Size",MIDDLE_SIZE:"Middle Size",SMALL_SIZE:"Small Size",NO_EXCEL_FILE:"No Excel Files",UPLOAD_FILE:"Upload File",VIEW_TEMPLATE:"View Template",LOAD_DATA:"Load Data",TRANSPARENCY_ADJUSTMENT:"Transparency Adjustment",ENABLE_ALPHA_PROPERTY:"Enable transparency adjustment through the alpha property, supporting RGBA color format.",WITH_TRANSPARENCY:"With Transparency",PRESET_COLORS:"Preset Colors",SET_PRESET_COLORS:"Set common preset colors through the presetColors property for quick selection.",DISABLE_COLOR_PICKER:"Disable the color picker through the disabled property; cannot open the selection panel when disabled.",COLOR_SQUARE:"Color Square",COLOR_TEXT:"Color Text",COLOR_BUTTON:"Color Button",SELECT_COLOR:"Select Color",CUSTOM_STYLE_PROPERTY:"Customize the style of the color picker through the style property.",CUSTOM_BORDER_RADIUS:"Custom Border Radius",GRADIENT_SUPPORT:"Gradient Support",ENABLE_GRADIENT:"Enable gradient color support through the gradient property, supporting linear gradient color selection.",BASIC_GRADIENT:"Basic Gradient",GRADIENT_COLOR:"Gradient Color",FEATURES:"Features",LIGHTWEIGHT:"Lightweight: Only 2.8KB gzipped (13 times lighter than react-color)",TREE_SHAKING:"Tree Shaking: Only import used parts",FAST:"Fast: Uses hooks and functional components",TYPE_SAFE:"Type Safe: Strict TypeScript support",MOBILE_FRIENDLY:"Mobile Friendly: Supports touch devices",ACCESSIBLE:"Accessible: Follows WAI-ARIA guidelines",NO_DEPENDENCIES:"No Dependencies: Does not depend on other libraries",FLEX_COMPONENT:"Flex Component",INTERACTIVE_EXAMPLE:"Interactive Example",ADJUST_PROPERTIES:"Adjust various properties of the flex layout in real-time through the buttons and input boxes below.",ITEM_COUNT:"Item Count",ITEMS:"items",DIRECTION:"Direction (higher priority than Layout)",CURRENT_VALUE:"Current Value",DEMONSTRATION_EFFECT:"Demonstration Effect",CURRENT_CONFIGURATION:"Current Configuration",MULTI_LEVEL_NESTING:"Multi-level Nesting Example",NESTING_DESCRIPTION:"Demonstrates the multi-level nesting usage of the Flex component to achieve complex layout structures.",TITLE_AREA:"Title Area",VERTICAL_LAYOUT:"Vertical Layout",CENTER_ALIGNMENT:"Center Alignment",JUSTIFY_BETWEEN:"Space Between",WRAP_LAYOUT:"Wrap Layout",COMPLEX_USAGE:"Complex Usage",ACTION_AREA:"Action Area",FLEX_CHILDREN_DESC:"Child component content",FLEX_LAYOUT_DESC:"Quickly set the layout direction, horizontal for horizontal layout, column for column layout",FLEX_DIRECTION_DESC:"flex-direction property, with higher priority than layout",FLEX_JUSTIFY_DESC:"justify-content property",FLEX_ALIGN_DESC:"align-items property",FLEX_WRAP_DESC:"flex-wrap property",FLEX_GAP_DESC:"gap property, supporting numeric values (px) and strings",CENTER_CONTENT:"Center Content",MARQUEE_COMPONENT:"Marquee Announcement Component",DEFAULT_CONFIGURATION:"1. Default Configuration",DEFAULT_CONFIG_DESC:"Default height: 40px, default speed: 50, default gradient background",DEFAULT_ANNOUNCEMENT:"This is a default configured announcement message that scrolls from right to left and automatically repeats after playback!",CUSTOM_HEIGHT:"Supports custom notice bar height (default: 60px, range: 30-100px)",HEIGHT_60PX:"Height: 60px",CUSTOM_HEIGHT_ANNOUNCEMENT:"This is an announcement message with a custom height of 60px!",CUSTOM_SPEED:"3. Custom Speed",SLOW_SPEED:"Slow Speed: 20",SLOW_SPEED_ANNOUNCEMENT:"This is a slow-scrolling announcement message with a speed of 20!",FAST_SPEED:"Fast Speed: 100",FAST_SPEED_ANNOUNCEMENT:"This is a fast-scrolling announcement message with a speed of 100!",CUSTOM_BACKGROUND:"4. Custom Background",CUSTOM_GRADIENT_BACKGROUND:"Custom Gradient Background",GRADIENT_BACKGROUND_ANNOUNCEMENT_1:"This is an announcement with a custom gradient background",GRADIENT_BACKGROUND_ANNOUNCEMENT_2:"This is the second announcement with a custom gradient background",COMPREHENSIVE_CUSTOM:"5. Comprehensive Customization",COMPREHENSIVE_CUSTOM_DESC:"Height: 50px, Speed: 75, Custom Background",COMPREHENSIVE_ANNOUNCEMENT:"This is a comprehensively customized announcement, height 50px, speed 75, custom gradient background!",FIXED_TOP:"6. Fixed to Top",FIXED_TOP_DESC:"fixed=true, the announcement bar will be fixed at the top of the page",FIXED_TOP_ANNOUNCEMENT:"This is an announcement fixed at the top, remaining visible while scrolling!",CLOSE_CALLBACK:"7. Close Callback",CLOSE_CALLBACK_DESC:"Click the close button to trigger onClose callback",CLOSE_CALLBACK_ANNOUNCEMENT:"This is an announcement with close callback, click the X on the right to close!",FULL_FUNCTIONALITY:"8. Full Functionality Example",FULL_FUNCTIONALITY_DESC:"Fixed Top + Custom Height + Custom Speed + Close Callback",FULL_FUNCTIONALITY_ANNOUNCEMENT:"This is a fully functional announcement with fixed top, custom height and speed, and close support!",ANNOUNCEMENT_TEXT:"Announcement text, can be a string or string array",ANNOUNCEMENT_HEIGHT:"Height of the announcement bar in pixels",SCROLL_SPEED:"Scrolling speed, larger values scroll faster",ANNOUNCEMENT_BACKGROUND:"Background color of the announcement bar, can be solid color or gradient",DISPLAY_ANNOUNCEMENT:"Whether to display the announcement bar",FIXED_POSITION:"Whether to fix at the top of the page",FIXED_DISTANCE:"Distance from the top when fixed, in pixels",DISPLAY_ICON:"Whether to display the announcement icon",CLOSE_BUTTON_CALLBACK:"Callback function when the close button is clicked",COLORPICKER_CURRENT_COLOR:"Current Color",COLORPICKER_CURRENT_GRADIENT:"Current Gradient",COLORPICKER_COLOR_VALUE:"Current color value (supports HEX format)",COLORPICKER_CONFIRM_CHANGE:"Callback function after confirming color selection",COLORPICKER_REAL_TIME_CHANGE:"Callback function when color changes in real-time",COLORPICKER_PRESET_COLORS:"Array of preset colors",COLORPICKER_GRADIENT_SUPPORT:"Whether to support gradient colors; after enabling, can select linear gradient colors",COLORPICKER_CUSTOM_TRIGGER:"Custom trigger area, supports any React node",EMPTY_CUSTOM_ICON:"Custom icon",EMPTY_CUSTOM_IMAGE_PATH:"Custom image path",EMPTY_DATA:"No data",EMPTY_STATUS_DESCRIPTION:"Empty state description",EMPTY_CUSTOM_ACTION_AREA:"Custom action area",EMPTY_SIZE:"Empty state size",EMPTY_CUSTOM_STYLE:"Custom style",EMPTY_CUSTOM_CLASS_NAME:"Custom CSS class name",NOTICE_COMPONENT_DESC:"This is a scrolling notification bar component that uses react-fast-marquee to achieve seamless scrolling effects.",NOTICE_HIDDEN:"Notice hidden",HIDE_NOTICE:"Hide notice",SHOW_NOTICE:"Show notice",CUSTOM_CONFIGURATION:"Custom Configuration",NOTICE_TEXT:"Notice text",ENTER_NOTICE_TEXT:"Enter notice text",NOTICE_BAR_HEIGHT:"Notice bar height",SHOW_CLOSE_BUTTON:"Show close button",FLOAT_TO_TOP:"Float to top",SEAMLESS_SCROLL:"Uses Marquee component to achieve seamless scrolling effect",CONFIGURABLE_SPEED:"Scrolling speed configurable (default: 50, range: 10-100)",CUSTOM_NOTICE_TEXT:"Supports custom notice text content",OPTIONAL_CLOSE_BUTTON:"Optional close button, 30px wide, click to hide the notice bar",FLOATING_TOP_FUNCTION:"Supports floating top function, fixed at the top of the page",TYPESCRIPT_SUPPORT:"Component supports TypeScript type definitions",USAGE_SCENARIOS:"Usage Scenarios",WEBSITE_ANNOUNCEMENT:"Website announcements",SYSTEM_NOTIFICATION:"System notifications",PROMOTION_INFO:"Promotional activity information",IMPORTANT_REMINDER:"Important message reminders",SPEED_DESC:"Scrolling speed, larger values scroll faster",HEIGHT_DESC:"Height of the notice bar in pixels",STYLES_DESC:"Custom notice bar styles",ICON_NOTICE_DESC:"Icon before the notice text",SHOW_CLOSE_BUTTON_DESC:"Whether to show the close button",CLOSE_STYLE_DESC:"Custom close button style",FLOATING_TOP_DESC:"Whether to fix and float at the top of the page",PAUSE_ON_HOVER_DESC:"Whether to pause scrolling when hovering",MESSAGE_COMPONENT_DESC:"Lightweight message prompt box for displaying success, warning and error messages.",CLICK_BUTTONS_TO_SHOW_MESSAGES:"Click the buttons to display different types of message prompts.",SHOW_SUCCESS_MESSAGE:"Show success message",SHOW_WARNING_MESSAGE:"Show warning message",SHOW_ERROR_MESSAGE:"Show error message",OPERATION_SUCCESS:"Operation successful!",WARNING_CHECK_INPUT:"Warning: Please check your input!",OPERATION_FAILED_RETRY:"Operation failed, please try again!",MESSAGE_TYPE:"Message type",MESSAGE_CONTENT:"Message content",MESSAGE_DURATION:"Message auto-close duration (milliseconds)",MESSAGE_CLOSE_CALLBACK:"Message close callback",MODAL_COMPONENT_DESC:"Modal dialog component for displaying important information or operations that require user confirmation.",CLICK_BUTTON_OPEN_BASIC_MODAL:"Click the button to open the basic modal.",OPEN_BASIC_MODAL:"Open Basic Modal",BASIC_MODAL:"Basic Modal",MODAL_CONTENT_AREA:"This is the content area of the modal, which can contain any content.",MODAL_CENTERED:"The modal will be centered horizontally and vertically.",CUSTOM_SIZE:"Custom Size",CAN_CUSTOMIZE_MODAL_WIDTH_HEIGHT:"You can customize the width and height of the modal.",SMALL_SIZE_MODAL:"Small Size Modal",LARGE_SIZE_MODAL:"Large Size Modal",SMALL_SIZE_MODAL_CONTENT:"This is a small size modal with a width of 400px.",LARGE_SIZE_MODAL_CONTENT:"This is a large size modal with a width of 800px and height of 500px.",CAN_PLACE_MORE_CONTENT:"You can place more content.",ASYNC_CONFIRMATION:"Async Confirmation",CLICK_CONFIRM_TO_PERFORM_ASYNC_OPERATION:"Click the confirm button to perform asynchronous operations, and close the modal after completion.",ASYNC_CONFIRMATION_MODAL:"Async Confirmation Modal",AFTER_CLICK_CONFIRM_BUTTON:"After clicking the confirm button, it will simulate a 1-second asynchronous operation.",MODAL_WILL_AUTOMATICALLY_CLOSE_AFTER_OPERATION_COMPLETE:"The modal will automatically close after the operation is complete.",CONTENT_HEIGHT_AUTO_ADJUSTMENT:"Content Height Auto-adjustment",WHEN_HEIGHT_NOT_SET_CONTENT_AREA_ADAPTS:"When height is not set, the content area height adapts; when height is set, the content area height is automatically calculated.",AUTO_ADJUST_HEIGHT:"Auto-adjust Height",CONTENT_SCROLL_EXAMPLE:"Content Scroll Example",AUTO_ADJUST_HEIGHT_MODAL:"Auto-adjust Height Modal",THIS_IS_A_MODAL_WITHOUT_HEIGHT_SET:"This is a modal without height set, and the content area height will automatically adjust according to the content.",YOU_CAN_ADD_MORE_CONTENT_TO_TEST_ADAPTIVE_EFFECT:"You can add more content to test the adaptive effect.",CONTENT_SCROLL_MODAL:"Content Scroll Modal",LONG_CONTENT_TEST:"Long Content Test",THIS_IS_A_MODAL_WITH_FIXED_HEIGHT:"This is a modal with fixed height, and the content area height is automatically calculated.",WHEN_CONTENT_EXCEEDS_CALCULATED_HEIGHT:"When the content exceeds the calculated height, a scrollbar will be automatically displayed.",ANIMATION_DIRECTION_DEMONSTRATION:"Animation Direction Demonstration",SUPPORT_FOUR_ANIMATION_DIRECTIONS:"Supports four animation directions, and opening and closing will use the same direction setting.",CENTER_ANIMATION:"Center Animation",TOP_RIGHT_ANIMATION:"Top Right Animation",BOTTOM_RIGHT_ANIMATION:"Bottom Right Animation",NORMAL_ANIMATION:"Normal Animation",OPEN_FROM_CENTER_POINT_ENLARGE:"Open: Enlarge from the center point",CLOSE_FROM_CENTER_POINT_SHRINK:"Close: Shrink from the center point",OPEN_FROM_TOP_RIGHT_MOVE_AND_ENLARGE:"Open: Move from top right and enlarge",CLOSE_TO_TOP_RIGHT_MOVE_AND_SHRINK:"Close: Move to top right and shrink",OPEN_FROM_BOTTOM_RIGHT_MOVE_AND_ENLARGE:"Open: Move from bottom right and enlarge",CLOSE_TO_BOTTOM_RIGHT_MOVE_AND_SHRINK:"Close: Move to bottom right and shrink",OPEN_SLIGHTLY_ENLARGE_AND_FADE_IN:"Open: Slightly enlarge and fade in",CLOSE_SLIGHTLY_SHRINK_AND_FADE_OUT:"Close: Slightly shrink and fade out",CUSTOM_TOP_POSITION:"Custom Top Position",THROUGH_TOP_PARAM_CUSTOMIZE_MODAL_DISTANCE_FROM_TOP:"You can customize the modal's distance from the top through the top parameter. When direction is set at the same time, direction will be forced to use normal.",USE_TOP_AND_DIRECTION_SIMULTANEOUSLY:"Use top and direction simultaneously",THIS_MODAL_IS_100PX_FROM_TOP:"This modal is 100px from the top",USE_TOP_PARAM_TO_CUSTOMIZE_MODAL_VERTICAL_POSITION:"Use the top parameter to customize the vertical position of the modal",THIS_MODAL_IS_200PX_FROM_TOP:"This modal is 200px from the top",ALTHOUGH_DIRECTION_TOP_RIGHT_SET_BUT_DUE_TO_TOP_PARAM:'Although direction="top-right" is set, direction is forced to normal because the top parameter is set at the same time',CUSTOM_FOOTER:"Custom Footer",CAN_CUSTOMIZE_BOTTOM_BUTTONS_THROUGH_FOOTER_PARAM:"You can customize the bottom buttons through the footer parameter. When footer is null, default buttons are displayed; when a value is provided, custom buttons are displayed.",CUSTOM_FOOTER_MODAL:"Custom Footer Modal",CANCEL:"Cancel",SAVE:"Save",THIS_IS_A_MODAL_WITH_CUSTOM_FOOTER:"This is a modal with custom footer, which displays three buttons at the bottom: Cancel, Save, and Delete.",YOU_CAN_CUSTOMIZE_FOOTER_CONTENT_AND_STYLE:"You can customize the content and style of the footer according to your needs.",CUSTOM_MOUNT_CONTAINER:"Custom Mount Container",CAN_SPECIFY_MODAL_MOUNT_HTML_NODE_THROUGH_GET_CONTAINER_PARAM:"You can specify the HTML node where the Modal is mounted through the getContainer parameter. false means mount in the current DOM.",MOUNT_IN_CURRENT_DOM:"Mount in Current DOM",MOUNT_IN_CUSTOM_CONTAINER:"Mount in Custom Container",THIS_IS_A_CUSTOM_MOUNT_CONTAINER:"This is a custom mount container",CLICK_MOUNT_IN_CUSTOM_CONTAINER_BUTTON:'Click the "Mount in Custom Container" button, and the Modal will be mounted here',THIS_MODAL_IS_MOUNTED_IN_CURRENT_DOM:"This Modal is mounted in the current DOM, not in document.body.",CAN_ACHIEVE_THIS_EFFECT_THROUGH_GET_CONTAINER_FALSE:"You can achieve this effect through getContainer={false}.",THIS_MODAL_IS_MOUNTED_IN_CUSTOM_CONTAINER:"This Modal is mounted in a custom container on the page.",CAN_SPECIFY_MOUNTED_HTML_NODE_THROUGH_GET_CONTAINER_PROPERTY:"You can specify the mounted HTML node through the getContainer property.",CUSTOM_MASK_BACKGROUND_COLOR:"Custom Mask Background Color",CAN_CUSTOMIZE_MASK_BACKGROUND_COLOR_AND_OTHER_STYLES:"You can customize the mask background color and other styles through the maskStyle property.",THIS_MODAL_MASK_USES_CUSTOM_BACKGROUND_COLOR:"The mask layer of this Modal uses a custom background color (semi-transparent red).",CAN_SET_VARIOUS_STYLES_OF_MASK_THROUGH_MASK_STYLE_PROPERTY:"You can set various styles of the mask through the maskStyle property, such as background color, opacity, etc.",CUSTOM_ZINDEX:"Custom zIndex",CAN_SET_MASK_LAYER_LEVEL_THROUGH_ZINDEX_PROPERTY:"You can set the level of the mask layer through the zIndex property, with a default value of 1000. In the case of nested Modals, you need to set different zIndex values to ensure the correct display level.",OPEN_FIRST_MODAL:"Open First Modal",FIRST_MODAL_ZINDEX_1000:"First Modal (zIndex: 1000)",CLOSE:"Close",OPEN_SECOND_MODAL:"Open Second Modal",THIS_IS_THE_FIRST_MODAL_USING_DEFAULT_ZINDEX_1000:"This is the first Modal, using the default zIndex value (1000).",CLICK_OPEN_SECOND_MODAL_BUTTON_TO_POP_UP_SECOND_MODAL:'Click the "Open Second Modal" button to pop up the second Modal.',SECOND_MODAL_ZINDEX_1010:"Second Modal (zIndex: 1010)",THIS_IS_THE_SECOND_MODAL_USING_HIGHER_ZINDEX_1010:"This is the second Modal, using a higher zIndex value (1010).",DUE_TO_HIGHER_ZINDEX_IT_WILL_DISPLAY_ABOVE_FIRST_MODAL:"Due to the higher zIndex setting, it will be displayed above the first Modal.",MODAL_VISIBLE_DESC:"Controls whether the modal is displayed/hidden (required)",MODAL_TITLE_DESC:"Modal title",MODAL_WIDTH_DESC:"Modal width",MODAL_HEIGHT_DESC:"Modal height (optional, adapts if not set)",MODAL_HEADER_HEIGHT_DESC:"Top area height",MODAL_FOOTER_HEIGHT_DESC:"Bottom area height",MODAL_CONFIRM_LOADING_DESC:"Whether the confirm button shows loading status",MODAL_DIRECTION_DESC:"Animation direction for opening and closing",MODAL_TOP_DESC:"Distance from the top of the modal; when set, direction will be forced to normal",MODAL_FOOTER_DESC:"Bottom content, shows default buttons when null, shows custom content when provided",MODAL_ON_CANCEL_DESC:"Cancel button click callback",MODAL_ON_OK_DESC:"Confirm button click callback",MODAL_CHILDREN_DESC:"Modal content",MODAL_GET_CONTAINER_DESC:"Specifies the HTML node where the Modal is mounted; false means mount in current DOM",MODAL_OK_TEXT_DESC:"Confirm button text",MODAL_CANCEL_TEXT_DESC:"Cancel button text",MODAL_MASK_STYLE_DESC:"Custom mask layer style",MODAL_MASK_CLASS_NAME_DESC:"Custom mask layer class name",MODAL_Z_INDEX_DESC:"z-index value of the mask layer",TYPOGRAPHY_COMPONENT:"Typography component",SHOW_BASIC_USAGE_TYPOGRAPHY:"Demonstrates the basic usage of the Typography component.",DEFAULT_DISPLAY_NO_ROW_LIMIT:"Default display (no row limit)",LIMIT_1_ROW:"Limit to 1 row",LIMIT_2_ROWS:"Limit to 2 rows",LIMIT_3_ROWS:"Limit to 3 rows",DIFFERENT_WIDTHS:"Different widths",WIDTH_200PX_LIMIT_1_ROW:"Width 200px, limit to 1 row",WIDTH_300PX_LIMIT_2_ROWS:"Width 300px, limit to 2 rows",WIDTH_500PX_LIMIT_3_ROWS:"Width 500px, limit to 3 rows",MIXED_TEXT_WRAPPING:"Mixed Chinese and English text (testing line break issues)",MIXED_TEXT_CONTENT:"This is a test text containing English, used to test line break issues when mixing Chinese and English. When the text content exceeds the container width, English should follow immediately after Chinese instead of starting a new line separately.",MIXED_TEXT_LIMIT_2_ROWS:"Mixed Chinese and English text (limit to 2 rows)",TYPOGRAPHY_LONG_TEXT:"This is a long test text used to test the row limit function of the Typography component. When the text content exceeds the specified row limit, ellipsis should be displayed at the end. This component supports custom width and row limits to meet different layout needs.",TYPOGRAPHY_CHILDREN_DESC:"Text content",TYPOGRAPHY_WIDTH_DESC:"Width limit",TYPOGRAPHY_ROWS_DESC:"Row limit",TYPOGRAPHY_STYLE_DESC:"Custom style",TYPOGRAPHY_CLASSNAME_DESC:"Custom class name",TYPOGRAPHY_MIXED_TEXT:"This is a test text containing English, used to test line break issues when mixing Chinese and English. When the text content exceeds the container width, English should follow immediately after Chinese instead of starting a new line separately.",TYPOGRAPHY_MIXED_TEXT_2:"This is a test text containing English, used to test line break issues when mixing Chinese and English. When the text content exceeds the container width, English should follow immediately after Chinese instead of starting a new line separately.",TYPOGRAPHY_DEFAULT_DISPLAY:"Default display (no row limit)",TYPOGRAPHY_LIMIT_1_ROW:"Limit to 1 row",TYPOGRAPHY_LIMIT_2_ROWS:"Limit to 2 rows",TYPOGRAPHY_LIMIT_3_ROWS:"Limit to 3 rows",TYPOGRAPHY_DIFFERENT_WIDTHS:"Different widths",TYPOGRAPHY_MIXED_TEXT_TEST:"Mixed Chinese and English text (testing line break issues)",TYPOGRAPHY_MIXED_TEXT_TEST_2:"Mixed Chinese and English text (limit to 2 rows)",TYPOGRAPHY_BASIC_USAGE:"Basic usage",TYPOGRAPHY_API_PARAMETERS:"API parameters",TYPOGRAPHY_CODE_EXAMPLE:"Code example",TYPOGRAPHY_COMPONENT_DESCRIPTION:"Typography component that supports custom width and row limits, displaying ellipsis when exceeding row limits.",TYPOGRAPHY_BASIC_USAGE_DESCRIPTION:"Demonstrates the basic usage of the Typography component.",TYPOGRAPHY_WIDTH_200PX:"Width 200px, limit to 1 row",TYPOGRAPHY_WIDTH_300PX:"Width 300px, limit to 2 rows",TYPOGRAPHY_WIDTH_500PX:"Width 500px, limit to 3 rows"};Ht.use(Wt).init({resources:{"zh-CN":{translation:ai},"en-US":{translation:si}},lng:"zh-CN",fallbackLng:"zh-CN",interpolation:{escapeValue:!1}});var li=function(n){var t=n.children,i=n.locale,r=n.resources;return u.default.useEffect(function(){r&&Object.keys(r).forEach(function(e){var n=r[e];Object.keys(n).forEach(function(t){var i=n[t];Ht.addResourceBundle(e,t,i,!0)})})},[r]),u.default.useEffect(function(){i&&i!==Ht.language&&Ht.changeLanguage(i)},[i]),e.jsx(oi,{i18n:Ht,children:t})},ci=function(t){var i=t.items,r=t.type,o=void 0===r?"text":r,a=t.children,s=t.trigger,l=void 0===s?"click":s,c=t.placement,d=void 0===c?"bottom":c,u=t.disabled,h=void 0!==u&&u,g=t.open,m=t.ellipsis,v=void 0===m||m,x=t.className,C=t.style,_=t.contentStyles,E=t.getContainer,b=t.onVisibleChange,y=t.onChange,O=void 0!==g,T=n.useState(!1),N=T[0],S=T[1],A=O?g:N,L=n.useRef(null),w=n.useRef(null);n.useEffect(function(){var e=function(e){L.current&&!L.current.contains(e.target)&&(O||S(!1),null==b||b(!1))};return A&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}},[A,b,O]);var I=function(){if(!h&&"click"===l){var e=!A;O||S(e),null==b||b(e)}},M=function(){h||"hover"!==l||(O||S(!0),null==b||b(!0))},R=function(){h||"hover"!==l||(O||S(!1),null==b||b(!1))};return e.jsxs("div",{ref:L,className:p.default("dropdown",x,{"dropdown--disabled":h}),style:C,children:["button"===o?e.jsx(se,{variant:"secondary",size:"medium",disabled:h,onClick:I,icon:"caret-down",children:a||"Dropdown"}):e.jsxs("div",{ref:w,className:p.default("dropdown-trigger",{"dropdown-trigger--text":"text"===o,"dropdown-trigger--disabled":h}),onClick:I,onMouseEnter:M,onMouseLeave:R,children:[a||"Dropdown",e.jsx(D,{type:"caret-down",className:"dropdown-arrow"})]}),e.jsx("div",{className:"dropdown-content-wrapper",children:function(){if(!i||0===i.length||!A)return null;var n=e.jsx("div",{className:p.default("dropdown-menu dropdown-menu--".concat(d," dropdown-menu--p-").concat(d),{"dropdown-menu--visible":A}),children:e.jsx("ul",{className:"dropdown-list",style:_,children:i.map(function(n){return e.jsxs("li",{className:p.default("dropdown-item",{"dropdown-item--disabled":n.disabled}),onClick:function(){return function(e){var n;e.disabled||(null===(n=e.onClick)||void 0===n||n.call(e),null==y||y(e),O||S(!1),null==b||b(!1))}(n)},children:[n.icon&&e.jsx("span",{className:"dropdown-item-icon",children:"string"==typeof n.icon?e.jsx(D,{type:n.icon}):n.icon}),e.jsx("span",{className:p.default("dropdown-item-label",{"dropdown-item-label--with-width":(null==_?void 0:_.width)&&!v,"dropdown-item-label--ellipsis":(null==_?void 0:_.width)&&v}),children:n.label})]},n.key)})})});if(E){var t=E();if(t)return f.default.createPortal(n,t)}return n}()})]})},di=u.default.memo(function(t){var i,r,o,a=t.item,s=t.level,l=t.mode,c=t.collapsed,d=t.theme,u=t.openKeySet,p=t.selectedKey,h=t.onItemClick,f=t.onToggleOpen,g=!!a.children&&a.children.length>0,m=u.has(a.key),v=p===a.key,x="horizontal"===l,C="inline"===l,_=0===s,E=n.useCallback(function(e){e.stopPropagation(),a.disabled||(g&&f(a.key),h(a,a.key))},[a,h,f,g]),b=x&&_?16:C?12+24*s:c?0:12+16*s,y=m&&(!c||x),O=g&&(!c||!_),T=d||"light";return e.jsxs("div",{className:"idp-menu-item-wrapper ".concat(_?"root":""),children:[e.jsx("div",{className:"\n idp-menu-item\n ".concat(v?"selected":"","\n ").concat(a.disabled?"disabled":"","\n ").concat(g?"has-children":"","\n ").concat(_?"root":"","\n ").concat(c&&_?"collapsed":"","\n ").concat(l,"\n ").concat(T,"\n "),style:{paddingLeft:b},title:c&&_?a.label:void 0,onClick:E,children:e.jsxs("div",{className:"idp-menu-item-content",children:[a.icon&&e.jsx("span",{className:"idp-menu-item-icon ".concat(c&&_?"collapsed":""),children:a.icon}),(!c||!_)&&e.jsx(e.Fragment,{children:e.jsx("span",{className:"idp-menu-item-label",children:a.label})}),c&&_&&!a.icon&&e.jsx("span",{className:"idp-menu-item-collapsed-label",children:(r=a.label,o||r.charAt(0).toUpperCase())}),O&&e.jsx("span",{className:"idp-menu-item-arrow ".concat(y?"open":""," ").concat(l),children:e.jsx("svg",{viewBox:"0 0 1024 1024",width:"10",height:"10",fill:"currentColor",children:e.jsx("path",{d:"M840.4 300H183.6c-19.7 0-30.7 25.7-18.5 40.5l328.4 402.4c9.4 11.6 26.7 11.6 36.1 0l328.4-402.4c12.2-14.8 1.2-40.5-18.5-40.5z"})})})]})}),g&&(!x||y)&&e.jsx("div",{className:"idp-menu-submenu ".concat(y?x&&_?"open horizontal-popup":C?"open inline":"open":""," ").concat(l," level-").concat(s),children:e.jsx("div",{className:"idp-menu-submenu-content",children:null===(i=a.children)||void 0===i?void 0:i.map(function(n){return e.jsx(di,{item:n,level:s+1,mode:l,collapsed:c,theme:d,openKeySet:u,selectedKey:p,onItemClick:h,onToggleOpen:f},n.key)})})})]})});di.displayName="MenuItemComponent";var ui,pi,hi,fi,gi,mi,vi,xi,Ci,_i,Ei,bi,yi,Oi,Ti,Ni,Si,Ai,Li,wi,Ii,Mi,Ri,ki,Hi,Di,Pi=function(t){var i=t.mode,r=void 0===i?"vertical":i,o=t.items,a=t.className,s=void 0===a?"":a,l=t.style,c=t.selectedKey,d=t.defaultOpenKeys,u=void 0===d?[]:d,p=t.openKeys,h=t.collapsed,f=void 0!==h&&h,g=t.open,m=t.theme,v=void 0===m?"light":m,x=t.onChange,_=t.onOpenChange,E=n.useRef(null),b=n.useState(!0)[0],y=n.useState(u),O=y[0],T=y[1],N=n.useState(""),S=N[0],A=N[1],L=void 0!==p,w=void 0!==c,I=L?p:O,M=w?c:S,R=void 0!==g?g:b,k=n.useMemo(function(){return new Set(I)},[I]);n.useEffect(function(){void 0!==c&&A(c)},[c]),n.useEffect(function(){if(M&&!L&&"horizontal"!==r){var e=function(n,t,i){void 0===i&&(i=[]);for(var r=0,o=n;r<o.length;r++){var a=o[r];if(a.key===t)return i;if(a.children&&a.children.length>0){var s=e(a.children,t,C(C([],i,!0),[a.key],!1));if(s.length>0)return s}}return[]},n=e(o,M);n.length>0&&T(function(e){var t=new Set(C(C([],e,!0),n,!0));return Array.from(t)})}},[M,o,L,r]);var H,D,P=n.useCallback(function(e,n){w||A(n),null==x||x(e,n),"horizontal"===r&&(!e.children||0===e.children.length)&&I.length>0&&(L||T([]),null==_||_([]))},[x,w,r,I.length,L,_]),j=n.useCallback(function(e){if(L){var n=k.has(e)?I.filter(function(n){return n!==e}):C(C([],I,!0),[e],!1);null==_||_(n)}else T(function(n){var t=n.includes(e)?n.filter(function(n){return n!==e}):C(C([],n,!0),[e],!1);return null==_||_(t),t})},[k,I,L,_]),V="horizontal"!==r&&f;return H=E,D=n.useCallback(function(){"horizontal"===r&&I.length>0&&(L||T([]),null==_||_([]))},[r,I.length,L,_]),n.useEffect(function(){var e=function(e){H.current&&!H.current.contains(e.target)&&D(e)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),function(){document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[H,D]),R?e.jsx("div",{ref:E,className:"idp-menu idp-menu-".concat(v," idp-menu-").concat(r," ").concat(V?"collapsed":""," ").concat(s),style:l,role:"menu",children:o.map(function(n){return e.jsx(di,{item:n,level:0,mode:r,collapsed:V,theme:v,openKeySet:k,selectedKey:M,onItemClick:P,onToggleOpen:j},n.key)})}):null},ji=function(t){var i=t.value,r=void 0===i?0:i,o=t.count,a=void 0===o?5:o,s=t.allowHalf,l=void 0===s||s,c=t.disabled,d=void 0!==c&&c,u=t.color,p=void 0===u?"#1677ff":u,h=t.onChange,f=t.className,g=void 0===f?"":f,m=t.size,v=void 0===m?24:m,x=t.chats,C=n.useState(0),_=C[0],E=C[1],b=n.useRef([]),y=n.useRef(0),O=Array.isArray(x)&&x.length>=a&&x.every(function(e){return null!=e&&""!==e}),T=n.useState([]),N=T[0],S=T[1],A=n.useState(!1),L=A[0],w=A[1];b.current.length!==a&&(b.current=Array(a).fill(null)),n.useEffect(function(){if(O)if("string"==typeof r&&r.length>0){var e=Math.min(r.length,a);S(x.slice(0,e))}else S([]);else S([])},[r,O,x,a]),n.useLayoutEffect(function(){0===_&&L&&w(!1)},[_,L]);var I=_||(O?N.length:parseFloat(Number(r).toFixed(1)||"0")),M=n.useCallback(function(e){return function(n){b.current[e]=n}},[]),R=n.useMemo(function(){return Array.from({length:a}).map(function(e,n){var t=n+1,i=!1,r=!1;O?i=n<(L&&_>0?_:N.length):I>=t?i=!0:l&&I>n&&I<t&&(r=!0);return{index:n,isHalf:r,isFull:i,iconType:r?"half":i?"full":"empty",iconColor:i||r?p:"#d9d9d9"}})},[a,I,l,p,O,N.length,L,_]),k=function(n){if(O){var t=x[n.index],i=n.isFull;return e.jsx("span",{className:"rate-chat-item",style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",fontSize:"inherit",backgroundColor:"transparent",color:d?"inherit":i?p:"inherit",cursor:d?"default":"pointer"},onMouseEnter:function(e){if(!d){e.stopPropagation();var t=n.index+1;t!==y.current&&(y.current=t,E(t))}},onClick:function(e){if(!d){e.stopPropagation();var t=n.index+1;if(x&&Array.isArray(x)&&x.length>=0){var i=x.slice(0,t);S(i),null==h||h(i.join(""))}else null==h||h(t.toString());E(0),y.current=0,w(!1)}},children:t})}return e.jsxs(e.Fragment,{children:[e.jsx(D,{type:"starOutline",size:v,color:"#d9d9d9",className:"rate-star-bg"}),e.jsx("span",{className:"rate-star-left",onMouseEnter:function(e){if(!d&&l){e.stopPropagation();var t=n.index+.5;t!==y.current&&(y.current=t,E(t))}},onClick:function(e){!d&&l&&(e.stopPropagation(),null==h||h((n.index+.5).toString()),E(0),y.current=0,w(!1))}}),e.jsx("span",{className:"rate-star-right",onMouseEnter:function(e){if(!d){e.stopPropagation();var t=n.index+1;t!==y.current&&(y.current=t,E(t))}},onClick:function(e){if(!d){if(e.stopPropagation(),O){var t=x.slice(0,n.index+1);null==h||h(t.join(""))}else null==h||h((n.index+1).toString());E(0),y.current=0,w(!1)}}}),e.jsx("span",{className:"rate-star-fill ".concat(n.isHalf?"half":""," ").concat(n.isFull?"full":""),style:{color:n.iconColor},children:e.jsx(D,{type:"star",size:v,color:n.iconColor,className:"rate-star-icon"})})]})};return e.jsx("div",{className:"rate ".concat(d?"disabled":""," ").concat(O?"rate-chats-mode":"rate-star-mode"," ").concat(g),style:{"--rate-color":p},onMouseEnter:function(){d||w(!0)},onMouseLeave:function(){d||(w(!1),E(0),y.current=0)},children:R.map(function(n){return e.jsx("span",{ref:M(n.index),className:"rate-star",style:{fontSize:"".concat(v,"px")},children:k(n)},n.index)})})},Vi=function(t){var i,r=t.min,o=void 0===r?0:r,a=t.max,s=void 0===a?100:a,l=t.step,c=void 0===l?1:l,d=t.value,u=t.defaultValue,p=void 0===u?0:u,h=t.disabled,f=void 0!==h&&h,m=t.marks,v=void 0===m?{}:m,x=t.showValue,C=void 0!==x&&x,_=t.transitionSpeed,E=void 0===_?300:_,b=t.trackColor,y=void 0===b?"#1890ff":b,O=t.handleColor,T=void 0===O?"#1890ff":O,N=t.gradient,S=t.onChange,A=t.onAfterChange,L=t.className,w=void 0===L?"":L,I=t.style,M=n.useState(p),R=M[0],k=M[1],H=n.useState(!1),D=H[0],P=H[1],j=n.useRef(null),V=void 0!==d?d:R,z=n.useCallback(function(e){var n=(e-o)/(s-o);return Math.max(0,Math.min(1,n))},[o,s]),U=n.useCallback(function(e){var n=Math.max(0,Math.min(1,e)),t=o+n*(s-o);if(c>0){var i=Math.round(t/c)*c;return Math.min(s,Math.max(o,i))}return Math.min(s,Math.max(o,t))},[o,s,c]),B=function(e){return"touches"in e?e.touches[0].clientX:e.clientX},F=n.useCallback(function(e){if(j.current&&!f){var n=j.current.getBoundingClientRect(),t=(e-n.left)/n.width,i=U(t);void 0===d&&k(i),null==S||S(i)}},[f,d,U,S]),G=function(e){if(!f){e.preventDefault(),P(!0);var n=B(e);F(n)}};n.useEffect(function(){if(D){var e=function(e){e.preventDefault();var n=B(e);F(n)},n=function(){P(!1),null==A||A(V)};return document.addEventListener("mousemove",e),document.addEventListener("mouseup",n),document.addEventListener("touchmove",e,{passive:!1}),document.addEventListener("touchend",n),function(){document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",n),document.removeEventListener("touchmove",e),document.removeEventListener("touchend",n)}}},[D,F,V,A]);var $=z(V),Y="".concat(100*$,"%"),W="".concat(100*$,"%"),K=n.useCallback(function(e){for(var n=Object.entries(v).sort(function(e,n){return Number(e[0])-Number(n[0])}),t=0;t<n.length;t++){var i=n[t],r=i[0],o=i[1];if(e<=Number(r))return"string"==typeof o?{trackColor:void 0,handleColor:void 0,mark:o}:o}var a=n[n.length-1];if(a){var s=a[1];return"string"==typeof s?{trackColor:void 0,handleColor:void 0,mark:s}:s}return{trackColor:void 0,handleColor:void 0,mark:""}},[v]),Z=K(V),X=I&&I["--slider-track-filled-bg-color"],q=I&&I["--slider-handle-border-color"],J=N&&!Z.trackColor&&!X&&"#1890ff"===y,Q=Z.trackColor||X||y,ee=Z.handleColor||q||T,ne=Object.entries(v).map(function(e){var n=e[0],t=e[1],i=Number(n),r="string"==typeof t?{trackColor:void 0,handleColor:void 0,mark:t}:t;return{value:i,label:r.mark,trackColor:r.trackColor,handleColor:r.handleColor,position:z(i)}}).sort(function(e,n){return e.value-n.value});return e.jsxs("div",{className:"slider-container ".concat(f?"disabled":""," ").concat(w),style:g((i={},i["--slider-track-filled-bg-color"]=Q,i["--slider-handle-border-color"]=ee,i["--slider-track-filled-transition"]="width ".concat(E,"ms ease"),i["--slider-handle-transition"]="all ".concat(E,"ms ease"),i),I),children:[e.jsxs("div",{ref:j,className:"slider-track",onClick:function(e){f||(e.target.classList.contains("slider-handle")||(F(e.clientX),null==A||A(V)))},role:"presentation",children:[e.jsx("div",{className:"slider-track-filled",style:g({width:Y},J&&N?{background:"linear-gradient(to right, ".concat(N.startColor,", ").concat(N.endColor,")")}:{})}),e.jsx("div",{className:"slider-handle",style:{left:W},onMouseDown:G,onTouchStart:G,onKeyDown:function(e){if(!f){var n=V;switch(e.key){case"ArrowLeft":case"ArrowDown":n=Math.max(o,V-c);break;case"ArrowRight":case"ArrowUp":n=Math.min(s,V+c);break;case"Home":n=o;break;case"End":n=s;break;case"PageDown":n=Math.max(o,V-10*c);break;case"PageUp":n=Math.min(s,V+10*c);break;default:return}e.preventDefault(),void 0===d&&k(n),null==S||S(n),null==A||A(n)}},role:"slider","aria-valuemin":o,"aria-valuemax":s,"aria-valuenow":V,"aria-disabled":f,tabIndex:f?-1:0,children:e.jsx("div",{className:"slider-tooltip",children:V})})]}),Object.keys(v).length>0&&e.jsx("div",{className:"slider-marks",children:ne.map(function(n){return e.jsx("div",{className:"slider-mark",style:{left:"".concat(100*n.position,"%"),color:n.trackColor||void 0},children:n.label},n.value)})}),C&&e.jsxs("div",{className:"slider-value-display",children:["当前值:",V]})]})},zi=n.createContext(null),Ui=function(n){var t=n.index,i=n.status,r=n.item;return r.node?e.jsx("span",{className:"idp-step-node idp-step-node-".concat(i),children:r.node}):r.title?e.jsx("span",{className:"idp-step-node idp-step-node-".concat(i),children:r.title}):r.description?e.jsx("span",{className:"idp-step-node idp-step-node-".concat(i),children:r.description}):"finish"===i?e.jsx("span",{className:"idp-step-node idp-step-node-finish",children:"✓"}):"error"===i?e.jsx("span",{className:"idp-step-node idp-step-node-error",children:"✕"}):e.jsx("span",{className:"idp-step-node idp-step-node-".concat(i),children:t+1})},Bi=function(t){var i=t.item,r=t.index,o=t.isLast,a=u.default.useRef(null),s=n.useContext(zi),l=n.useState(0),c=l[0],d=l[1];if(!s)return null;var p=s.current,h=s.status,f=s.direction,g=s.onChange,m=i.status||(r<p?"finish":r===p?h:"wait");u.default.useEffect(function(){var e;if(a.current&&"panel"===s.type){var n=null===(e=a.current.getBoundingClientRect())||void 0===e?void 0:e.height;d(n||0)}},[a,s]);var v=n.useMemo(function(){if("panel"!==s.type||0===c)return null;var n=c/4-8;return e.jsx("div",{style:{transform:"translateY(".concat(n,"px)")},className:"idp-step-arrow",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:e.jsx("path",{d:"M5.5 3L10.5 8L5.5 13",stroke:"currentColor",strokeWidth:"2",fill:"none"})})})},[c,s]),x={};i.tailColor&&(x.backgroundColor=i.tailColor);var C=i.tailType||"solid";return e.jsxs("div",{className:"idp-step ".concat(f," ").concat(m," ").concat(i.disabled?"disabled":""),onClick:function(){!i.disabled&&g&&r!==p&&g(r)},ref:a,children:[e.jsxs("div",{className:"idp-step-head",children:[e.jsx(Ui,{index:r,status:m,item:i}),!o&&e.jsxs(e.Fragment,{children:["default"===s.type&&e.jsx("div",{className:"idp-step-tail idp-step-tail-".concat(C),style:x,children:i.tailTitle&&e.jsx("div",{className:"idp-step-tail-title",children:i.tailTitle})}),v]})]}),e.jsxs("div",{className:"idp-step-content",children:[i.title&&e.jsx("div",{className:"idp-step-title",children:i.title}),i.description&&e.jsx("div",{className:"idp-step-description",children:i.description})]})]})},Fi=function(n){var t=n.current,i=void 0===t?0:t,r=n.status,o=void 0===r?"process":r,a=n.direction,s=void 0===a?"horizontal":a,l=n.size,c=void 0===l?"default":l,d=n.type,u=void 0===d?"default":d,p=n.items,h=n.onChange,f=n.className,g=void 0===f?"":f,m=n.style,v={current:i,status:o,direction:s,size:c,type:u,onChange:h};return e.jsx(zi.Provider,{value:v,children:e.jsx("div",{className:"idp-steps ".concat(s," ").concat(c," ").concat(u," ").concat(g),style:m,children:p.map(function(n,t){return e.jsx(Bi,{item:n,index:t,isLast:t===p.length-1},t)})})})},Gi=function(e,n){return"var(".concat(e,", ").concat(n,")")},$i=h.default.div(ui||(ui=_(["\n display: inline-block;\n\n &.switch-wrapper {\n /* 外部可通过 .switch-wrapper 选择器覆盖样式 */\n }\n\n ","\n"],["\n display: inline-block;\n\n &.switch-wrapper {\n /* 外部可通过 .switch-wrapper 选择器覆盖样式 */\n }\n\n ","\n"])),function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),Yi=h.default.div(pi||(pi=_(["\n position: relative;\n background-color: ",";\n border-radius: ",";\n transition: all ",";\n cursor: ",";\n opacity: ",";\n box-sizing: border-box;\n overflow: hidden;\n\n &.switch-track {\n /* 外部可通过 .switch-track 选择器覆盖样式 */\n }\n\n &.switch-track-checked {\n background-color: ",";\n }\n\n &.switch-track-disabled {\n cursor: not-allowed;\n opacity: 0.4;\n }\n\n &.switch-track-loading {\n cursor: wait;\n }\n\n ","\n\n ","\n\n ","\n\n ","\n"],["\n position: relative;\n background-color: ",";\n border-radius: ",";\n transition: all ",";\n cursor: ",";\n opacity: ",";\n box-sizing: border-box;\n overflow: hidden;\n\n &.switch-track {\n /* 外部可通过 .switch-track 选择器覆盖样式 */\n }\n\n &.switch-track-checked {\n background-color: ",";\n }\n\n &.switch-track-disabled {\n cursor: not-allowed;\n opacity: 0.4;\n }\n\n &.switch-track-loading {\n cursor: wait;\n }\n\n ","\n\n ","\n\n ","\n\n ","\n"])),function(e){return Gi("--switch-track-bg","#dcdfe6")},function(e){return Gi("--switch-track-radius","10px")},function(e){return Gi("--switch-transition","0.3s")},function(e){return e.$disabled?"not-allowed":"pointer"},function(e){return e.$disabled?.4:1},Gi("--switch-track-active-bg","#409eff"),function(e){var n=e.$size,t=e.$hasChildren,i=e.$width;return i?"\n width: ".concat(i,"px;\n min-width: ").concat(i,"px;\n height: ").concat("small"===n?Gi("--switch-small-height","16px"):Gi("--switch-default-height","22px"),";\n "):"small"===n?"\n width: ".concat(t?"auto":Gi("--switch-small-width","28px"),";\n min-width: ").concat(Gi("--switch-small-width","28px"),";\n height: ").concat(Gi("--switch-small-height","16px"),";\n "):"\n width: ".concat(t?"auto":Gi("--switch-default-width","44px"),";\n min-width: ").concat(Gi("--switch-default-width","44px"),";\n height: ").concat(Gi("--switch-default-height","22px"),";\n ")},function(e){return e.$checked&&"\n background-color: ".concat(Gi("--switch-track-active-bg","#409eff"),";\n ")},function(e){return e.$loading&&"\n cursor: wait;\n "},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),Wi=h.default.div(hi||(hi=_(["\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n background-color: ",";\n border-radius: ",";\n box-shadow: ",";\n transition: left 0.3s ease;\n z-index: 2;\n\n &.switch-thumb {\n /* 外部可通过 .switch-thumb 选择器覆盖样式 */\n }\n\n &.switch-thumb-checked {\n /* 选中状态下的样式 */\n }\n\n ","\n\n ","\n\n ","\n"],["\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n background-color: ",";\n border-radius: ",";\n box-shadow: ",";\n transition: left 0.3s ease;\n z-index: 2;\n\n &.switch-thumb {\n /* 外部可通过 .switch-thumb 选择器覆盖样式 */\n }\n\n &.switch-thumb-checked {\n /* 选中状态下的样式 */\n }\n\n ","\n\n ","\n\n ","\n"])),function(e){return Gi("--switch-thumb-bg","#fff")},function(e){return Gi("--switch-thumb-radius","50%")},function(e){return Gi("--switch-thumb-shadow","0 2px 4px rgba(0, 0, 0, 0.2)")},function(e){var n=e.$size,t=e.$checked,i=e.$width,r="small"===n?12:18;if(i){var o="".concat(t?i-r-2:2,"px");return"\n width: ".concat(r,"px;\n height: ").concat(r,"px;\n left: ").concat(o,";\n ")}if("small"===n){var a=t?"14px":"2px";return"\n width: ".concat(r,"px;\n height: ").concat(r,"px;\n left: ").concat(a,";\n ")}var s=t?"24px":"2px";return"\n width: ".concat(r,"px;\n height: ").concat(r,"px;\n left: ").concat(s,";\n ")},function(e){return e.$loading&&"\n animation: switch-thumb-spin 1s linear infinite;\n "},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),Ki=h.default.div(fi||(fi=_(["\n position: absolute;\n top: 50%;\n margin-top: -6px; /* 12px 高度的一半,实现垂直居中 */\n width: ",";\n height: ",";\n z-index: 3;\n display: flex;\n align-items: center;\n justify-content: center;\n\n &.switch-loading-icon {\n /* 外部可通过 .switch-loading-icon 选择器覆盖样式 */\n }\n\n /* SVG 旋转动画 - 以中心点旋转 */\n & > svg {\n width: 100%;\n height: 100%;\n animation: switch-spin 1s linear infinite;\n transform-origin: center center;\n display: block;\n }\n\n ","\n\n ","\n"],["\n position: absolute;\n top: 50%;\n margin-top: -6px; /* 12px 高度的一半,实现垂直居中 */\n width: ",";\n height: ",";\n z-index: 3;\n display: flex;\n align-items: center;\n justify-content: center;\n\n &.switch-loading-icon {\n /* 外部可通过 .switch-loading-icon 选择器覆盖样式 */\n }\n\n /* SVG 旋转动画 - 以中心点旋转 */\n & > svg {\n width: 100%;\n height: 100%;\n animation: switch-spin 1s linear infinite;\n transform-origin: center center;\n display: block;\n }\n\n ","\n\n ","\n"])),function(e){return Gi("--switch-loading-size","12px")},function(e){return Gi("--switch-loading-size","12px")},function(e){var n=e.$size,t=e.$checked,i=e.$width,r="small"===n?12:18;return i?"\n left: ".concat((t?i-r-2:2)+(r-12)/2,"px;\n "):"small"===n?"\n left: ".concat((t?14:2)+(r-12)/2,"px;\n "):"\n left: ".concat((t?24:2)+(r-12)/2,"px;\n ")},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),Zi=h.default.span(gi||(gi=_(["\n position: absolute;\n top: 0;\n bottom: 0;\n left: ",";\n display: flex;\n align-items: center;\n justify-content: flex-start;\n font-size: 12px;\n color: #fff;\n white-space: nowrap;\n user-select: none;\n z-index: 1;\n padding-right: ",";\n\n &.switch-checked-inner {\n /* 外部可通过 .switch-checked-inner 选择器覆盖样式 */\n }\n\n ","\n"],["\n position: absolute;\n top: 0;\n bottom: 0;\n left: ",";\n display: flex;\n align-items: center;\n justify-content: flex-start;\n font-size: 12px;\n color: #fff;\n white-space: nowrap;\n user-select: none;\n z-index: 1;\n padding-right: ",";\n\n &.switch-checked-inner {\n /* 外部可通过 .switch-checked-inner 选择器覆盖样式 */\n }\n\n ","\n"])),function(e){return"small"===e.$size?"4px":"6px"},function(e){return"small"===e.$size?"14px":"22px"},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),Xi=h.default.span(mi||(mi=_(["\n position: absolute;\n top: 0;\n bottom: 0;\n right: ",";\n display: flex;\n align-items: center;\n justify-content: flex-end;\n font-size: 12px;\n color: #fff;\n white-space: nowrap;\n user-select: none;\n z-index: 1;\n padding-left: ",";\n\n &.switch-unchecked-inner {\n /* 外部可通过 .switch-unchecked-inner 选择器覆盖样式 */\n }\n\n ","\n"],["\n position: absolute;\n top: 0;\n bottom: 0;\n right: ",";\n display: flex;\n align-items: center;\n justify-content: flex-end;\n font-size: 12px;\n color: #fff;\n white-space: nowrap;\n user-select: none;\n z-index: 1;\n padding-left: ",";\n\n &.switch-unchecked-inner {\n /* 外部可通过 .switch-unchecked-inner 选择器覆盖样式 */\n }\n\n ","\n"])),function(e){return"small"===e.$size?"4px":"6px"},function(e){return"small"===e.$size?"14px":"22px"},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),qi=function(t){var i=t.checked,r=t.defaultChecked,o=void 0!==r&&r,a=t.disabled,s=void 0!==a&&a,l=t.loading,c=void 0!==l&&l,d=t.size,u=void 0===d?"default":d,p=t.width,h=t.checkedChildren,f=t.unCheckedChildren,m=t.styles,v=t.onChange,x=t.label,C=t.labelGap,_=void 0===C?8:C,E=t.labelClassName,b=void 0===E?"":E,y=t.labelStyle,O=void 0!==i,T=n.useState(o),N=T[0],S=T[1],A=O?i:N,L=void 0!==h||void 0!==f;n.useEffect(function(){!function(){if("undefined"!=typeof document&&!document.getElementById("switch-styles")){var e=document.createElement("style");e.id="switch-styles",e.textContent="\n @keyframes switch-spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n }\n @keyframes switch-thumb-spin {\n from { transform: translateY(-50%) rotate(0deg); }\n to { transform: translateY(-50%) rotate(360deg); }\n }\n ",document.head.appendChild(e)}}()},[]);return e.jsx($i,{className:"switch-wrapper",$styles:null==m?void 0:m.wrapper,children:e.jsxs("div",{className:"switch-label-wrapper",style:{display:"flex",alignItems:"center"},children:[x&&e.jsx("div",{className:"switch-label ".concat(b),style:g({marginRight:"number"==typeof _?"".concat(_,"px"):_},y),children:x}),e.jsxs(Yi,{className:"switch-track".concat(A?" switch-track-checked":"").concat(s?" switch-track-disabled":"").concat(c?" switch-track-loading":""),$checked:A,$disabled:s,$size:u,$loading:c,$hasChildren:L,$width:p,$styles:null==m?void 0:m.track,onClick:function(){if(!s&&!c){var e=!A;O||S(e),null==v||v(e)}},children:[c&&e.jsx(Ki,{className:"switch-loading-icon",$checked:A,$size:u,$width:p,$styles:null==m?void 0:m.loading,children:e.jsx("svg",{viewBox:"0 0 24 24",width:"12",height:"12",fill:"#1890ff",children:e.jsx("path",{d:"M12,4V2A10,10 0 0,0 2,12H4A8,8 0 0,1 12,4Z"})})}),!c&&A&&h&&e.jsx(Zi,{className:"switch-checked-inner",$size:u,$styles:null==m?void 0:m.inner,children:h}),!c&&!A&&f&&e.jsx(Xi,{className:"switch-unchecked-inner",$size:u,$styles:null==m?void 0:m.inner,children:f}),e.jsx(Wi,{className:"switch-thumb".concat(A?" switch-thumb-checked":""),$checked:A,$size:u,$loading:c,$hasChildren:L,$width:p,$styles:null==m?void 0:m.thumb})]})]})})},Ji=function(n){var t=n.item,i=n.isActive,r=n.isClosable,o=n.onClick,a=n.onClose,s=n.tabRefs,d=l.useSortable({id:t.key,disabled:t.disabled}),u=d.attributes,h=d.listeners,f=d.setNodeRef,m=d.transform,v=d.transition,x=d.isDragging,C={transform:c.CSS.Transform.toString(m),transition:v,opacity:x?.5:1,zIndex:x?1e3:"auto",position:"relative"};return e.jsxs("div",{ref:function(e){f(e),e?s.current.set(t.key,e):s.current.delete(t.key)},className:p.default("idp-tabs-tab",{"idp-tabs-tab--active":i,"idp-tabs-tab--disabled":t.disabled,"idp-tabs-tab--dragging":x}),role:"tab","aria-selected":i,style:C,children:[e.jsxs("div",g({className:"idp-tabs-tab__drag-handle"},u,h,{onClick:o,style:{cursor:t.disabled?"not-allowed":"grab",display:"flex",alignItems:"center",gap:"6px"},children:[t.icon&&e.jsx("span",{className:"idp-tabs-tab__icon",children:t.icon}),e.jsx("span",{className:"idp-tabs-tab__label",children:t.label})]})),r&&!t.disabled&&e.jsx("span",{className:"idp-tabs-tab__close",onClick:function(e){return a(e)},children:e.jsx(D,{type:"close",size:12})})]})},Qi=function(t){var i=t.items,r=void 0===i?[]:i,o=t.activeKey,a=t.defaultActiveKey,c=t.onChange,d=t.onClose,h=t.tabsClosable,f=void 0!==h&&h,m=t.tabPlacement,v=void 0===m?"top":m,x=t.type,C=void 0===x?"line":x,_=t.onAdd,E=t.className,b=t.style,y=t.contentClassName,O=t.contentStyle,T=t.draggable,N=void 0!==T&&T,S=t.onDragEnd,A=n.useState(function(){return a}),L=A[0],w=A[1],I=n.useRef(null),M=n.useRef(new Map),R=n.useRef(null),k=n.useState({}),H=k[0],P=k[1],j=n.useState(!1),V=j[0],z=j[1],U=n.useState(!1),B=U[0],F=U[1],G=n.useState(!1),$=G[0],Y=G[1],W=n.useState(!1),K=W[0],Z=W[1],X=n.useRef(!1),q=n.useRef(!0),J=n.useState(!1),Q=J[0],ee=J[1],ne=n.useState(r),te=ne[0],ie=ne[1];n.useEffect(function(){void 0!==o&&w(o)},[o]),n.useEffect(function(){ie(r)},[r]),n.useEffect(function(){var e;if(void 0===o){var n=null===(e=r[0])||void 0===e?void 0:e.key;if(!(!!a&&r.some(function(e){return e.key===a}))||L)if(n)r.some(function(e){return e.key===L})||w(n);else w(void 0);else w(a)}},[r,L,o,a]);var re=void 0!==o?o:L,oe=n.useMemo(function(){return r.find(function(e){return e.key===re})||r[0]},[r,re]),ae=function(e,n){if(void 0===n&&(n=!0),e&&I.current){var t=M.current.get(e),i=I.current;if(t&&i){var r=i.querySelector(".idp-tabs-indicator"),o=q.current;if(r&&o&&(r.style.transition="none"),"top"===v||"bottom"===v){if(P({left:t.offsetLeft,width:t.offsetWidth,top:void 0,height:void 0}),!n){var a=t.offsetLeft,s=a+t.offsetWidth,l=i.scrollLeft,c=i.clientWidth;(a<l||s>l+c)&&t.scrollIntoView({behavior:"smooth",inline:"nearest",block:"nearest"})}}else P({top:t.offsetTop,height:t.offsetHeight,left:void 0,width:void 0});r&&o&&n?requestAnimationFrame(function(){r.style.transition="",q.current=!1}):o&&(q.current=!1)}}},se=u.default.useCallback(function(){if(I.current){var e=I.current,n="top"===v||"bottom"===v;if("card"===C)return z(!1),F(!1),void Y(!1);if(n){var t=Math.ceil(e.scrollWidth)>Math.floor(e.clientWidth);if(z(t),t){var i=e.scrollLeft>1;F(i);var r=e.scrollWidth-e.clientWidth,o=e.scrollLeft<r-1;Y(o)}else F(!1),Y(!1)}else z(!1),F(!1),Y(!1)}},[v,C]),le=function(e){if(I.current&&!X.current){var n=I.current,t=n.clientWidth,i=Math.max(200,.6*t);X.current=!0,"left"===e?n.scrollTo({left:n.scrollLeft-i,behavior:"smooth"}):n.scrollTo({left:n.scrollLeft+i,behavior:"smooth"}),setTimeout(function(){X.current=!1,se()},400)}};n.useEffect(function(){re&&(ae(re,!1),se())},[re,r,v,se]),n.useEffect(function(){se();var e=requestAnimationFrame(function(){re&&ae(re,!1),se()});return function(){return cancelAnimationFrame(e)}},[se,re]),n.useEffect(function(){var e,n=function(){re&&ae(re,!1),se()},t=function(){clearTimeout(e),e=setTimeout(function(){se()},100)},i=I.current;return i&&i.addEventListener("scroll",t),window.addEventListener("resize",n),function(){window.removeEventListener("resize",n),i&&i.removeEventListener("scroll",t),clearTimeout(e)}},[se,re]),n.useEffect(function(){var e=function(){if(R.current&&I.current&&"card"===C&&_){var e=I.current,n=R.current,t=e.getBoundingClientRect(),i=n.getBoundingClientRect(),r=t.right-i.right;ee(r<=20)}else ee(!1)};e();var n=function(){e()},t=I.current;return t&&(t.addEventListener("scroll",n),window.addEventListener("resize",n)),function(){t&&t.removeEventListener("scroll",n),window.removeEventListener("resize",n)}},[C,_,r]);var ce=function(e){e.disabled||(void 0===o&&w(e.key),ae(e.key,!0),se(),null==c||c(e.key))},de=function(e,n){e.stopPropagation(),n.disabled||null==d||d(n.key)},ue=function(){null==_||_(),setTimeout(function(){I.current&&requestAnimationFrame(function(){if(I.current&&M.current.size>0){var e=Array.from(M.current.keys());if(e.length>0){var n=e[e.length-1],t=M.current.get(n),i=I.current;if(t&&i&&R.current)if("card"===C){var r=R.current.offsetWidth+4,o=t.offsetLeft+t.offsetWidth,a=i.clientWidth;if(o-i.scrollLeft>a-r){var s=o-a+r;i.scrollTo({left:s,behavior:"smooth"})}}else t.scrollIntoView({behavior:"smooth",inline:"nearest",block:"nearest"})}}})},100)},pe=s.useSensors(s.useSensor(s.PointerSensor,{activationConstraint:{distance:8}})),he=function(e){},fe=function(e){var n=e.active,t=e.over;if(t&&n.id!==t.id){var i=te.findIndex(function(e){return e.key===n.id}),r=te.findIndex(function(e){return e.key===t.id});if(-1!==i&&-1!==r){var o=l.arrayMove(te,i,r);ie(o),null==S||S(o)}}},ge=function(){var n="top"===v||"bottom"===v,t="card"===C,i=N?te:r,o=e.jsxs("div",{className:"idp-tabs-nav-wrapper",onMouseEnter:function(){return Z(!0)},onMouseLeave:function(){return Z(!1)},children:[n&&V&&!t&&e.jsx("button",{className:p.default("idp-tabs-nav__button","idp-tabs-nav__button--left",{"idp-tabs-nav__button--disabled":!B,"idp-tabs-nav__button--visible":K}),onClick:function(){return le("left")},disabled:!B,type:"button",children:e.jsx(D,{type:"arrowLeft",size:12})}),e.jsxs("div",{className:"idp-tabs-nav",ref:I,children:[i.map(function(n){return function(n,t,i){return!N||n.disabled||"top"!==v&&"bottom"!==v?e.jsxs("div",{ref:function(e){e?M.current.set(n.key,e):M.current.delete(n.key)},className:p.default("idp-tabs-tab",{"idp-tabs-tab--active":t,"idp-tabs-tab--disabled":n.disabled}),role:"tab","aria-selected":t,onClick:function(){return ce(n)},children:[n.icon&&e.jsx("span",{className:"idp-tabs-tab__icon",children:n.icon}),e.jsx("span",{className:"idp-tabs-tab__label",children:n.label}),i&&!n.disabled&&e.jsx("span",{className:"idp-tabs-tab__close",onClick:function(e){return de(e,n)},children:e.jsx(D,{type:"close",size:12})})]},n.key):e.jsx(Ji,{item:n,isActive:t,isClosable:i,onClick:function(){return ce(n)},onClose:function(e){return de(e,n)},tabRefs:M},n.key)}(n,n.key===re,f||n.closable||!1)}),"card"===C&&_&&e.jsx("div",{ref:R,className:p.default("idp-tabs-tab idp-tabs-tab--add",{sticky:!0===Q}),role:"tab",onClick:ue,children:e.jsx(D,{type:"plus",size:16})}),e.jsx("div",{className:"idp-tabs-indicator",style:H})]}),n&&V&&!t&&e.jsx("button",{className:p.default("idp-tabs-nav__button","idp-tabs-nav__button--right",{"idp-tabs-nav__button--disabled":!$,"idp-tabs-nav__button--visible":K}),onClick:function(){return le("right")},disabled:!$,type:"button",children:e.jsx(D,{type:"arrowRight",size:12})})]});return!N||t||"top"!==v&&"bottom"!==v?o:e.jsx(s.DndContext,{sensors:pe,collisionDetection:s.closestCenter,onDragStart:he,onDragEnd:fe,children:e.jsx(l.SortableContext,{items:i.map(function(e){return e.key}),strategy:l.horizontalListSortingStrategy,children:o})})},me=function(){var n=(null==oe?void 0:oe.renderContent)?oe.renderContent():null==oe?void 0:oe.content,t=p.default("idp-tabs-content","idp-tabs-content--".concat(v),y),i=g({},O);return e.jsx("div",{className:t,style:i,children:n})};return e.jsx("div",{className:p.default("idp-tabs","idp-tabs--".concat(v),"idp-tabs--".concat(C),E),style:b,children:"bottom"===v?e.jsxs(e.Fragment,{children:[me(),ge()]}):e.jsxs(e.Fragment,{children:[ge(),me()]})})},er=function(e,n){return"var(".concat(e,", ").concat(n,")")},nr=h.default.div(vi||(vi=_(["\n display: flex;\n align-items: center;\n gap: 8px;\n\n &.transfer-wrapper {\n /* 外部可通过 .transfer-wrapper 选择器覆盖样式 */\n }\n\n ","\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n\n &.transfer-wrapper {\n /* 外部可通过 .transfer-wrapper 选择器覆盖样式 */\n }\n\n ","\n"])),function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),tr=h.default.div(xi||(xi=_(["\n width: ",";\n height: ",";\n border: 1px solid ",";\n border-radius: ",";\n background: ",";\n display: flex;\n flex-direction: column;\n overflow: hidden;\n opacity: ",";\n /* 立体感阴影效果 */\n box-shadow:\n 0 2px 4px rgba(0, 0, 0, 0.04),\n 0 4px 8px rgba(0, 0, 0, 0.06),\n 0 8px 16px rgba(0, 0, 0, 0.04),\n inset 0 1px 0 rgba(255, 255, 255, 0.8);\n transition: box-shadow 0.3s ease, transform 0.3s ease;\n\n &.transfer-list {\n /* 外部可通过 .transfer-list 选择器覆盖样式 */\n }\n\n ","\n"],["\n width: ",";\n height: ",";\n border: 1px solid ",";\n border-radius: ",";\n background: ",";\n display: flex;\n flex-direction: column;\n overflow: hidden;\n opacity: ",";\n /* 立体感阴影效果 */\n box-shadow:\n 0 2px 4px rgba(0, 0, 0, 0.04),\n 0 4px 8px rgba(0, 0, 0, 0.06),\n 0 8px 16px rgba(0, 0, 0, 0.04),\n inset 0 1px 0 rgba(255, 255, 255, 0.8);\n transition: box-shadow 0.3s ease, transform 0.3s ease;\n\n &.transfer-list {\n /* 外部可通过 .transfer-list 选择器覆盖样式 */\n }\n\n ","\n"])),function(e){var n=e.$width;return"number"==typeof n?"".concat(n,"px"):n||er("--transfer-list-width","200px")},function(e){var n=e.$height;return"number"==typeof n?"".concat(n,"px"):n||er("--transfer-height","300px")},er("--transfer-border-color","#d9d9d9"),er("--transfer-border-radius","6px"),er("--transfer-bg","#fff"),function(e){return e.$disabled?.6:1},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),ir=h.default.div(Ci||(Ci=_(["\n height: ",";\n padding: 0 ",";\n background: ",";\n border-bottom: 1px solid ",";\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-size: ",";\n font-weight: 500;\n color: ",";\n\n &.transfer-list-header {\n /* 外部可通过 .transfer-list-header 选择器覆盖样式 */\n }\n"],["\n height: ",";\n padding: 0 ",";\n background: ",";\n border-bottom: 1px solid ",";\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-size: ",";\n font-weight: 500;\n color: ",";\n\n &.transfer-list-header {\n /* 外部可通过 .transfer-list-header 选择器覆盖样式 */\n }\n"])),er("--transfer-header-height","40px"),er("--transfer-padding","12px"),er("--transfer-header-bg","#fafafa"),er("--transfer-border-color","#d9d9d9"),er("--transfer-header-font-size","14px"),er("--transfer-item-text-color","rgba(0, 0, 0, 0.85)")),rr=h.default.div(_i||(_i=_(["\n display: flex;\n align-items: center;\n gap: 8px;\n\n .transfer-checkbox {\n cursor: pointer;\n }\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n\n .transfer-checkbox {\n cursor: pointer;\n }\n"]))),or=h.default.span(Ei||(Ei=_(["\n font-size: 12px;\n color: ",";\n"],["\n font-size: 12px;\n color: ",";\n"])),er("--transfer-description-color","rgba(0, 0, 0, 0.45)")),ar=h.default.div(bi||(bi=_(["\n padding: 8px ",";\n border-bottom: 1px solid ",";\n display: flex;\n align-items: center;\n gap: 8px;\n box-sizing: border-box;\n width: 100%;\n\n &.transfer-search-wrapper {\n /* 外部可通过 .transfer-search-wrapper 选择器覆盖样式 */\n }\n"],["\n padding: 8px ",";\n border-bottom: 1px solid ",";\n display: flex;\n align-items: center;\n gap: 8px;\n box-sizing: border-box;\n width: 100%;\n\n &.transfer-search-wrapper {\n /* 外部可通过 .transfer-search-wrapper 选择器覆盖样式 */\n }\n"])),er("--transfer-padding","12px"),er("--transfer-border-color","#d9d9d9")),sr=h.default.input(yi||(yi=_(["\n flex: 1;\n min-width: 0;\n height: ",";\n padding: ",";\n border: 1px solid ",";\n border-radius: 4px;\n font-size: ",";\n outline: none;\n transition: ",";\n box-sizing: border-box;\n\n &::placeholder {\n color: ",";\n }\n\n &:focus {\n border-color: ",";\n }\n\n &:disabled {\n background: #f5f5f5;\n cursor: not-allowed;\n }\n\n ","\n"],["\n flex: 1;\n min-width: 0;\n height: ",";\n padding: ",";\n border: 1px solid ",";\n border-radius: 4px;\n font-size: ",";\n outline: none;\n transition: ",";\n box-sizing: border-box;\n\n &::placeholder {\n color: ",";\n }\n\n &:focus {\n border-color: ",";\n }\n\n &:disabled {\n background: #f5f5f5;\n cursor: not-allowed;\n }\n\n ","\n"])),er("--transfer-search-height","32px"),er("--transfer-search-padding","0 8px"),er("--transfer-search-border","#d9d9d9"),er("--transfer-font-size","14px"),er("--transfer-transition","all 0.3s"),er("--transfer-search-placeholder-color","rgba(0, 0, 0, 0.45)"),er("--transfer-search-focus-border","#1890ff"),function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),lr=h.default.button(Oi||(Oi=_(["\n width: 32px;\n min-width: 32px;\n height: ",";\n border: 1px solid ",";\n border-radius: 4px;\n background: ",";\n cursor: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n transition: ",";\n opacity: ",";\n flex-shrink: 0;\n padding: 0;\n box-sizing: border-box;\n\n &:hover:not(:disabled) {\n border-color: ",";\n color: ",";\n }\n\n &:disabled {\n background: #f5f5f5;\n }\n\n /* 搜索图标 */\n .search-icon {\n width: 16px;\n height: 16px;\n }\n"],["\n width: 32px;\n min-width: 32px;\n height: ",";\n border: 1px solid ",";\n border-radius: 4px;\n background: ",";\n cursor: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n transition: ",";\n opacity: ",";\n flex-shrink: 0;\n padding: 0;\n box-sizing: border-box;\n\n &:hover:not(:disabled) {\n border-color: ",";\n color: ",";\n }\n\n &:disabled {\n background: #f5f5f5;\n }\n\n /* 搜索图标 */\n .search-icon {\n width: 16px;\n height: 16px;\n }\n"])),er("--transfer-search-height","32px"),er("--transfer-search-border","#d9d9d9"),er("--transfer-bg","#fff"),function(e){return e.$disabled?"not-allowed":"pointer"},er("--transfer-transition","all 0.3s"),function(e){return e.$disabled?.6:1},er("--transfer-search-focus-border","#1890ff"),er("--transfer-search-focus-border","#1890ff")),cr=h.default.div(Ti||(Ti=_(["\n flex: 1;\n overflow-y: auto;\n padding: 4px 0;\n\n &.transfer-list-body {\n /* 外部可通过 .transfer-list-body 选择器覆盖样式 */\n }\n\n /* 滚动条样式 - 淡色精致设计 */\n &::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n }\n\n &::-webkit-scrollbar-thumb {\n background: rgba(0, 0, 0, 0.15);\n border-radius: 4px;\n border: 2px solid transparent;\n background-clip: padding-box;\n transition: background 0.2s ease;\n\n &:hover {\n background: rgba(0, 0, 0, 0.25);\n }\n }\n\n &::-webkit-scrollbar-track {\n background: transparent;\n border-radius: 4px;\n }\n\n &::-webkit-scrollbar-corner {\n background: transparent;\n }\n"],["\n flex: 1;\n overflow-y: auto;\n padding: 4px 0;\n\n &.transfer-list-body {\n /* 外部可通过 .transfer-list-body 选择器覆盖样式 */\n }\n\n /* 滚动条样式 - 淡色精致设计 */\n &::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n }\n\n &::-webkit-scrollbar-thumb {\n background: rgba(0, 0, 0, 0.15);\n border-radius: 4px;\n border: 2px solid transparent;\n background-clip: padding-box;\n transition: background 0.2s ease;\n\n &:hover {\n background: rgba(0, 0, 0, 0.25);\n }\n }\n\n &::-webkit-scrollbar-track {\n background: transparent;\n border-radius: 4px;\n }\n\n &::-webkit-scrollbar-corner {\n background: transparent;\n }\n"]))),dr=h.default.div(Ni||(Ni=_(["\n height: ",";\n padding: ",";\n display: flex;\n align-items: center;\n gap: 8px;\n cursor: ",";\n transition: ",";\n font-size: ",";\n color: ",";\n background: ",";\n\n &:hover {\n background: ",";\n }\n\n &.transfer-list-item {\n /* 外部可通过 .transfer-list-item 选择器覆盖样式 */\n }\n\n ","\n"],["\n height: ",";\n padding: ",";\n display: flex;\n align-items: center;\n gap: 8px;\n cursor: ",";\n transition: ",";\n font-size: ",";\n color: ",";\n background: ",";\n\n &:hover {\n background: ",";\n }\n\n &.transfer-list-item {\n /* 外部可通过 .transfer-list-item 选择器覆盖样式 */\n }\n\n ","\n"])),er("--transfer-item-height","32px"),er("--transfer-item-padding","0 12px"),function(e){return e.$disabled?"not-allowed":"pointer"},er("--transfer-transition","all 0.3s"),er("--transfer-item-font-size","14px"),function(e){return e.$disabled?er("--transfer-item-disabled-color","rgba(0, 0, 0, 0.25)"):er("--transfer-item-text-color","rgba(0, 0, 0, 0.85)")},function(e){return e.$selected?er("--transfer-item-selected-bg","#e6f7ff"):"transparent"},function(e){var n=e.$disabled,t=e.$selected;return n?"transparent":t?er("--transfer-item-selected-bg","#e6f7ff"):er("--transfer-item-hover-bg","#f5f5f5")},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),ur=h.default.span(Si||(Si=_(["\n width: 16px;\n height: 16px;\n border: 1px solid\n ",";\n border-radius: 2px;\n background: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n transition: all 0.3s;\n\n &::after {\n content: ",";\n font-size: ",";\n color: #fff;\n transform: scale(",");\n transition: all 0.2s;\n line-height: 1;\n font-weight: ",";\n }\n"],["\n width: 16px;\n height: 16px;\n border: 1px solid\n ",";\n border-radius: 2px;\n background: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n transition: all 0.3s;\n\n &::after {\n content: ",";\n font-size: ",";\n color: #fff;\n transform: scale(",");\n transition: all 0.2s;\n line-height: 1;\n font-weight: ",";\n }\n"])),function(e){var n=e.$checked,t=e.$indeterminate;return n||t?"#1890ff":"#d9d9d9"},function(e){var n=e.$checked,t=e.$indeterminate;return n||t?"#1890ff":"#fff"},function(e){var n=e.$checked;return e.$indeterminate?"'−'":n?"'✓'":"''"},function(e){return e.$indeterminate?"14px":"12px"},function(e){var n=e.$checked,t=e.$indeterminate;return n||t?1:0},function(e){return e.$indeterminate?"bold":"normal"}),pr=h.default.span(Ai||(Ai=_(["\n width: 16px;\n height: 16px;\n border: 1px solid ",";\n border-radius: 2px;\n background: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n transition: all 0.3s;\n\n &::after {\n content: '✓';\n font-size: 12px;\n color: #fff;\n transform: scale(",");\n transition: all 0.2s;\n line-height: 1;\n }\n"],["\n width: 16px;\n height: 16px;\n border: 1px solid ",";\n border-radius: 2px;\n background: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n transition: all 0.3s;\n\n &::after {\n content: '✓';\n font-size: 12px;\n color: #fff;\n transform: scale(",");\n transition: all 0.2s;\n line-height: 1;\n }\n"])),function(e){return e.$checked?"#1890ff":"#d9d9d9"},function(e){return e.$checked?"#1890ff":"#fff"},function(e){return e.$checked?1:0}),hr=h.default.span(Li||(Li=_(["\n flex: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"],["\n flex: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"]))),fr=h.default.div(wi||(wi=_(["\n padding: 8px ",";\n border-top: 1px solid ",";\n font-size: ",";\n color: ",";\n min-height: 20px;\n display: flex;\n align-items: center;\n\n &.transfer-list-footer {\n /* 外部可通过 .transfer-list-footer 选择器覆盖样式 */\n }\n"],["\n padding: 8px ",";\n border-top: 1px solid ",";\n font-size: ",";\n color: ",";\n min-height: 20px;\n display: flex;\n align-items: center;\n\n &.transfer-list-footer {\n /* 外部可通过 .transfer-list-footer 选择器覆盖样式 */\n }\n"])),er("--transfer-padding","12px"),er("--transfer-border-color","#d9d9d9"),er("--transfer-description-font-size","12px"),er("--transfer-description-color","rgba(0, 0, 0, 0.45)")),gr=h.default.div(Ii||(Ii=_(["\n display: flex;\n flex-direction: column;\n gap: 8px;\n width: ",";\n align-items: center;\n\n &.transfer-operation {\n /* 外部可通过 .transfer-operation 选择器覆盖样式 */\n }\n\n ","\n"],["\n display: flex;\n flex-direction: column;\n gap: 8px;\n width: ",";\n align-items: center;\n\n &.transfer-operation {\n /* 外部可通过 .transfer-operation 选择器覆盖样式 */\n }\n\n ","\n"])),er("--transfer-operation-width","40px"),function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),mr=h.default.button(Mi||(Mi=_(["\n width: 32px;\n height: 28px;\n border: 1px solid ",";\n border-radius: 4px;\n background: ",";\n cursor: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n transition: ",";\n opacity: ",";\n\n &:hover:not(:disabled) {\n background: ",";\n border-color: ",";\n color: #1890ff;\n }\n\n &:disabled {\n background: ",";\n color: ",";\n }\n\n /* 箭头图标 - 使用字符 */\n &::before {\n content: ",";\n font-size: 14px;\n font-weight: 600;\n line-height: 1;\n color: inherit;\n }\n"],["\n width: 32px;\n height: 28px;\n border: 1px solid ",";\n border-radius: 4px;\n background: ",";\n cursor: ",";\n display: flex;\n align-items: center;\n justify-content: center;\n transition: ",";\n opacity: ",";\n\n &:hover:not(:disabled) {\n background: ",";\n border-color: ",";\n color: #1890ff;\n }\n\n &:disabled {\n background: ",";\n color: ",";\n }\n\n /* 箭头图标 - 使用字符 */\n &::before {\n content: ",";\n font-size: 14px;\n font-weight: 600;\n line-height: 1;\n color: inherit;\n }\n"])),er("--transfer-operation-border","#d9d9d9"),er("--transfer-operation-bg","#f5f5f5"),function(e){return e.$disabled?"not-allowed":"pointer"},er("--transfer-transition","all 0.3s"),function(e){return e.$disabled?.6:1},er("--transfer-operation-hover-bg","#e6f7ff"),er("--transfer-operation-hover-border","#1890ff"),er("--transfer-operation-disabled-bg","#f5f5f5"),er("--transfer-operation-disabled-color","rgba(0, 0, 0, 0.25)"),function(e){return"right"===e.$direction?"'>'":"'<'"}),vr=h.default.div(Ri||(Ri=_(["\n padding: 32px 0;\n text-align: center;\n color: ",";\n font-size: ",";\n\n &.transfer-empty {\n /* 外部可通过 .transfer-empty 选择器覆盖样式 */\n }\n"],["\n padding: 32px 0;\n text-align: center;\n color: ",";\n font-size: ",";\n\n &.transfer-empty {\n /* 外部可通过 .transfer-empty 选择器覆盖样式 */\n }\n"])),er("--transfer-description-color","rgba(0, 0, 0, 0.45)"),er("--transfer-font-size","14px")),xr=h.default.div(ki||(ki=_(["\n flex: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 32px 0;\n\n &.transfer-loading {\n /* 外部可通过 .transfer-loading 选择器覆盖样式 */\n }\n"],["\n flex: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 32px 0;\n\n &.transfer-loading {\n /* 外部可通过 .transfer-loading 选择器覆盖样式 */\n }\n"]))),Cr=h.default.div(Hi||(Hi=_(["\n width: 32px;\n height: 32px;\n border: 3px solid ",";\n border-top-color: ",";\n border-radius: 50%;\n animation: transfer-spin 0.8s linear infinite;\n\n @keyframes transfer-spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n }\n"],["\n width: 32px;\n height: 32px;\n border: 3px solid ",";\n border-top-color: ",";\n border-radius: 50%;\n animation: transfer-spin 0.8s linear infinite;\n\n @keyframes transfer-spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n }\n"])),er("--transfer-loading-track-color","#f0f0f0"),er("--transfer-loading-spinner-color","#1890ff")),_r=function(e,n,t){return n?e[n]:e[t]},Er=function(e,n){return _r(e,null==n?void 0:n.key,"key")},br=function(e,n){return _r(e,null==n?void 0:n.title,"title")},yr=function(t){var i=t.dataSource,r=t.fieldNames,o=t.selectedKeys,a=t.showSearch,s=t.disabled,l=t.title,c=t.description,d=t.searchPlaceholder,u=void 0===d?"请输入搜索内容":d,p=t.filterOption,h=t.styles,f=t.listHeight,g=t.listWidth,m=t.header,v=t.search,x=t.body,_=t.onSelectChange,E=t.onSearch,b=t.render,y=t.footer,O=t.direction,T=t.rowClassName,N=t.loading,S=t.loadingRender,A=t.loadingDelay,L=t.sourceSelectedKeys,w=t.targetSelectedKeys,I=n.useState(""),M=I[0],R=I[1],k=n.useState(N),H=k[0],P=k[1],j=n.useRef(null);n.useEffect(function(){return j.current&&(clearTimeout(j.current),j.current=null),N&&A&&A>0?(P(!0),j.current=setTimeout(function(){P(!1)},A)):P(N),function(){j.current&&clearTimeout(j.current)}},[N,A]);var V=n.useMemo(function(){return M?p?i.filter(function(e){return p(M,e)}):i.filter(function(e){var n=br(e,r),t=null!=n?String(n):"";if(t)return t.toLowerCase().includes(M.toLowerCase());var i=M.toLowerCase();return Object.keys(e).some(function(n){var t=e[n];return"key"!==n&&"disabled"!==n&&(null!=t&&String(t).toLowerCase().includes(i))})}):i},[i,M,p,r]),z=n.useMemo(function(){var e=V.filter(function(e){return!e.disabled});return 0!==e.length&&e.every(function(e){return o.includes(Er(e,r))})},[V,o,r]),U=n.useMemo(function(){var e=V.filter(function(e){return!e.disabled});if(0===e.length)return!1;var n=e.filter(function(e){return o.includes(Er(e,r))}).length;return n>0&&n<e.length},[V,o,r]),B=n.useCallback(function(){if(!s){var e=V.filter(function(e){return!e.disabled}).map(function(e){return Er(e,r)});if(z){var n=o.filter(function(n){return!e.includes(n)});"left"===O?_(n,w):_(L,n)}else{var t=C(C([],o,!0),e,!0);n=t.filter(function(e,n){return t.indexOf(e)===n});"left"===O?_(n,w):_(L,n)}}},[s,V,o,z,_,r,O,L,w]),F=n.useCallback(function(e){if(!s&&!e.disabled){var n,t=Er(e,r),i=o.indexOf(t);n=i>-1?C(C([],o.slice(0,i),!0),o.slice(i+1),!0):C(C([],o,!0),[t],!1),"left"===O?_(n,w):_(L,n)}},[s,o,_,r,O,L,w]),G=n.useCallback(function(e){var n=e.target.value;R(n)},[]),$=n.useCallback(function(){null==E||E(M)},[E,M]),Y=n.useCallback(function(e){"Enter"===e.key&&$()},[$]),W=n.useCallback(function(){$()},[$]),K=n.useMemo(function(){var e=o.length,n=i.length;return"".concat(e,"/").concat(n)},[o,i]);return e.jsxs(tr,{className:"transfer-list",$disabled:s,$styles:null==h?void 0:h.list,$height:f,$width:g,children:[function(){if(m){var n=m({direction:O,dataSource:i,selectedKeys:o,sourceSelectedKeys:L,targetSelectedKeys:w});return null===n?null:n}return e.jsxs(ir,{className:"transfer-list-header",children:[e.jsxs(rr,{children:[e.jsx(ur,{className:"transfer-checkbox",$checked:z,$indeterminate:U,$disabled:s||0===V.length,onClick:B,style:{opacity:s||0===V.length?.6:1}}),e.jsx("span",{children:l})]}),e.jsx(or,{children:K})]})}(),a&&null!==m&&e.jsx(ar,{className:"transfer-search-wrapper",children:v?v({direction:O,value:M,onChange:function(e){R(e),null==E||E(e)},disabled:s}):e.jsxs(e.Fragment,{children:[e.jsx(sr,{type:"text",placeholder:u,value:M,onChange:G,onKeyDown:Y,disabled:s,$styles:null==h?void 0:h.search}),e.jsx(lr,{onClick:W,disabled:s,$disabled:s,"aria-label":"搜索",children:e.jsx(D,{type:"search",size:"small",color:s?"#bfbfbf":"#1890ff"})})]})}),x?x({direction:O,dataSource:V,selectedKeys:o,sourceSelectedKeys:L,targetSelectedKeys:w,onSelectChange:_}):H?e.jsx(xr,{className:"transfer-loading",children:S?S():e.jsx(Cr,{className:"transfer-loading-spinner"})}):e.jsx(cr,{className:"transfer-list-body",children:V.length>0?V.map(function(n){var t=Er(n,r),i=o.includes(t),a=(null==T?void 0:T(n))||"";return e.jsxs(dr,{className:"transfer-list-item ".concat(a),$selected:i,$disabled:s||n.disabled,$styles:null==h?void 0:h.item,onClick:function(){return F(n)},children:[e.jsx(pr,{$checked:i}),e.jsx(hr,{children:b?b(n):br(n,r)})]},t)}):e.jsx(vr,{className:"transfer-empty",children:"暂无数据"})}),(c||y)&&e.jsx(fr,{className:"transfer-list-footer",children:y?y({direction:O}):c})]})},Or=function(n){var t=n.moveToRightDisabled,i=n.moveToLeftDisabled,r=n.onMoveToRight,o=n.onMoveToLeft,a=n.style;return e.jsxs(gr,{className:"transfer-operation",$styles:a,children:[e.jsx(mr,{type:"button",$direction:"right",$disabled:t,onClick:r,disabled:t,"aria-label":"移动到右侧"}),e.jsx(mr,{type:"button",$direction:"left",$disabled:i,onClick:o,disabled:i,"aria-label":"移动到左侧"})]})},Tr=function(t){var i=t.dataSource,r=t.fieldNames,o=t.targetKeys,a=t.defaultTargetKeys,s=void 0===a?[]:a,l=t.selectedKeys,c=t.defaultSelectedKeys,d=void 0===c?[]:c,u=t.showSearch,p=void 0!==u&&u,h=t.disabled,f=void 0!==h&&h,g=t.leftTitle,m=void 0===g?"源列表":g,v=t.rightTitle,x=void 0===v?"目标列表":v,_=t.leftDescription,E=t.rightDescription,b=t.filterOption,y=t.styles,O=t.listHeight,T=t.listWidth,N=t.header,S=t.search,A=t.body,L=t.onSelectChange,w=t.onChange,I=t.onSearch,M=t.render,R=t.footer,k=t.rowClassName,H=t.mode,D=void 0===H?"transfer":H,P=t.loading,j=void 0!==P&&P,V=t.loadingRender,z=t.loadingDelay,U=void 0!==o,B=void 0!==l,F=n.useState(s),G=F[0],$=F[1],Y=n.useState(d),W=Y[0],K=Y[1],Z=n.useState([]),X=Z[0],q=Z[1],J=U?o:G,Q=B?l.filter(function(e){return!J.includes(e)}):W,ee=B?l.filter(function(e){return J.includes(e)}):X,ne=n.useMemo(function(){return i.filter(function(e){return!J.includes(Er(e,r))})},[i,J,r]),te=n.useMemo(function(){return i.filter(function(e){return J.includes(Er(e,r))})},[i,J,r]),ie=n.useCallback(function(e,n){B||K(e),null==L||L(e,n)},[B,L]),re=n.useCallback(function(e,n){B||q(n),null==L||L(e,n)},[B,L]),oe=n.useCallback(function(){if(0!==Q.length){var e=C(C([],J,!0),Q,!0),n=C([],Q,!0);U||($(e),K([])),null==w||w(e,"right",n)}},[Q,J,U,w]),ae=n.useCallback(function(){if(0!==ee.length){var e=J.filter(function(e){return!ee.includes(e)}),n=C([],ee,!0);U||($(e),q([])),null==w||w(e,"left",n)}},[ee,J,U,w]),se=n.useCallback(function(e){null==I||I("left",e)},[I]),le=n.useCallback(function(e){null==I||I("right",e)},[I]),ce=f||0===Q.length,de=f||0===ee.length,ue=n.useCallback(function(e,n){var t=e;U||$(t),null==w||w(t,"right",t),null==L||L([],t)},[U,w,L]),pe=n.useMemo(function(){return i},[i]),he=n.useMemo(function(){return B?l.filter(function(e){return J.includes(e)}):J},[B,l,J]);return e.jsx(nr,{className:"transfer-wrapper",$styles:null==y?void 0:y.wrapper,children:"single"===D?e.jsx(yr,{direction:"left",dataSource:pe,fieldNames:r,selectedKeys:he,showSearch:p,disabled:f,title:m,description:_,filterOption:b,styles:y,listHeight:O,listWidth:T,header:N,search:S,body:A,onSelectChange:ue,onSearch:se,render:M,footer:R,rowClassName:k,loading:j,loadingRender:V,loadingDelay:z,sourceSelectedKeys:[],targetSelectedKeys:he}):e.jsxs(e.Fragment,{children:[e.jsx(yr,{direction:"left",dataSource:ne,fieldNames:r,selectedKeys:Q,showSearch:p,disabled:f,title:m,description:_,filterOption:b,styles:y,listHeight:O,listWidth:T,header:N,search:S,body:A,onSelectChange:ie,onSearch:se,render:M,footer:R,rowClassName:k,loading:j,loadingRender:V,loadingDelay:z,sourceSelectedKeys:Q,targetSelectedKeys:ee}),e.jsx(Or,{moveToRightDisabled:ce,moveToLeftDisabled:de,onMoveToRight:oe,onMoveToLeft:ae,style:null==y?void 0:y.operation}),e.jsx(yr,{direction:"right",dataSource:te,fieldNames:r,selectedKeys:ee,showSearch:p,disabled:f,title:x,description:E,filterOption:b,styles:y,listHeight:O,listWidth:T,header:N,search:S,body:A,onSelectChange:re,onSearch:le,render:M,footer:R,rowClassName:k,loading:j,loadingRender:V,loadingDelay:z,sourceSelectedKeys:Q,targetSelectedKeys:ee})]})})},Nr=h.default.label(Di||(Di=_(["\n /* 基础样式 */\n background-color: #f5f5f5;\n padding: 8px;\n padding-right: var(--label-padding-right, 8px);\n border-radius: 4px;\n position: relative;\n display: inline-flex;\n align-items: center;\n \n /* 指示器样式 */\n &::after {\n content: ' ';\n position: absolute;\n top: 50%;\n left: 0;\n transform: translateY(-50%);\n width: var(--label-indicator-width, 3px);\n height: var(--label-indicator-height, 100%);\n background-color: var(--label-indicator-color, blue);\n border-radius: 2px;\n }\n"],["\n /* 基础样式 */\n background-color: #f5f5f5;\n padding: 8px;\n padding-right: var(--label-padding-right, 8px);\n border-radius: 4px;\n position: relative;\n display: inline-flex;\n align-items: center;\n \n /* 指示器样式 */\n &::after {\n content: ' ';\n position: absolute;\n top: 50%;\n left: 0;\n transform: translateY(-50%);\n width: var(--label-indicator-width, 3px);\n height: var(--label-indicator-height, 100%);\n background-color: var(--label-indicator-color, blue);\n border-radius: 2px;\n }\n"]))),Sr=function(n){var t=n.title,i=n.indicatorColor,r=void 0===i?"blue":i,o=n.indicatorWidth,a=void 0===o?"3px":o,s=n.indicatorHeight,l=void 0===s?"100%":s,c=n.paddingRight,d=void 0===c?"8px":c,u=n.style,p=function(e){return void 0===e?"":"number"==typeof e?"".concat(e,"px"):e},h={"--label-indicator-color":r,"--label-indicator-width":p(a),"--label-indicator-height":p(l),"--label-padding-right":p(d)},f=g(g({},h),u);return e.jsx(Nr,{className:"label-wrapper",style:f,children:t||null})},Ar=function(e,n){return"var(".concat(e,", ").concat(n,")")},Lr=h.default.div(Hr||(Hr=_(["\n display: flex;\n flex-direction: column;\n min-height: ",";\n max-height: 100vh;\n background-color: ",";\n box-sizing: border-box;\n position: relative;\n overflow: hidden;\n\n &.layout-wrapper {\n /* 外部可通过 .layout-wrapper 选择器覆盖样式 */\n }\n\n ","\n"],["\n display: flex;\n flex-direction: column;\n min-height: ",";\n max-height: 100vh;\n background-color: ",";\n box-sizing: border-box;\n position: relative;\n overflow: hidden;\n\n &.layout-wrapper {\n /* 外部可通过 .layout-wrapper 选择器覆盖样式 */\n }\n\n ","\n"])),Ar("--layout-min-height","100vh"),function(e){return"dark"===e.$theme?Ar("--layout-bg-dark","#000"):Ar("--layout-bg-light","#f5f5f5")},function(e){return e.$hasSider&&"\n flex-direction: row;\n "}),wr=h.default.header(Dr||(Dr=_(["\n display: flex;\n align-items: center;\n flex-shrink: 0;\n padding: ",";\n background-color: ",";\n color: ",";\n height: ",";\n z-index: ",";\n transition: ",";\n box-sizing: border-box;\n\n &.layout-header-light {\n border-bottom: ",";\n }\n\n &.layout-header-dark {\n border-bottom: 1px solid transition;\n }\n\n &.layout-header {\n /* 外部可通过 .layout-header 选择器覆盖样式 */\n }\n\n ","\n"],["\n display: flex;\n align-items: center;\n flex-shrink: 0;\n padding: ",";\n background-color: ",";\n color: ",";\n height: ",";\n z-index: ",";\n transition: ",";\n box-sizing: border-box;\n\n &.layout-header-light {\n border-bottom: ",";\n }\n\n &.layout-header-dark {\n border-bottom: 1px solid transition;\n }\n\n &.layout-header {\n /* 外部可通过 .layout-header 选择器覆盖样式 */\n }\n\n ","\n"])),Ar("--layout-header-padding","0 24px"),function(e){return"dark"===e.$theme?Ar("--layout-header-bg-dark","#001529"):Ar("--layout-header-bg-light","#fff")},function(e){return"dark"===e.$theme?Ar("--layout-header-color-dark","#fff"):Ar("--layout-header-color-light","#000")},function(e){var n=e.$height;return"number"==typeof n?"".concat(n,"px"):n||Ar("--layout-header-height","64px")},Ar("--layout-header-z-index","10"),Ar("--layout-header-transition","all 0.3s ease"),function(e){var n=e.$bgColor;return"1px solid ".concat(n)},function(e){return e.$fixed&&"\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n box-shadow: ".concat(Ar("--layout-header-box-shadow","0 2px 8px rgba(0, 0, 0, 0.15)"),";\n ")}),Ir=h.default.aside(Pr||(Pr=_(["\n display: flex;\n flex-direction: column;\n background-color: ",";\n color: ",";\n z-index: ",";\n transition: ",";\n flex: ",";\n box-sizing: border-box;\n border-right: ",";\n box-shadow: ",";\n\n /* Sider 高度 = 浏览器高度 - Header 高度 */\n height: calc(100vh - var(--layout-header-height, 64px));\n min-height: calc(100vh - var(--layout-header-height, 64px));\n\n &.layout-sider {\n /* 外部可通过 .layout-sider 选择器覆盖样式 */\n }\n\n /* 让子元素占据剩余空间,使 trigger 可以固定在底部 */\n & > *:not(.layout-sider-trigger) {\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n }\n\n ","\n\n ","\n\n /* 菜单项样式 */\n .layout-menu-item {\n color: ",";\n transition: all 0.3s ease;\n\n &:hover {\n background-color: ",";\n color: ",";\n }\n\n &.active {\n background-color: ",";\n color: ",";\n }\n }\n"],["\n display: flex;\n flex-direction: column;\n background-color: ",";\n color: ",";\n z-index: ",";\n transition: ",";\n flex: ",";\n box-sizing: border-box;\n border-right: ",";\n box-shadow: ",";\n\n /* Sider 高度 = 浏览器高度 - Header 高度 */\n height: calc(100vh - var(--layout-header-height, 64px));\n min-height: calc(100vh - var(--layout-header-height, 64px));\n\n &.layout-sider {\n /* 外部可通过 .layout-sider 选择器覆盖样式 */\n }\n\n /* 让子元素占据剩余空间,使 trigger 可以固定在底部 */\n & > *:not(.layout-sider-trigger) {\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n }\n\n ","\n\n ","\n\n /* 菜单项样式 */\n .layout-menu-item {\n color: ",";\n transition: all 0.3s ease;\n\n &:hover {\n background-color: ",";\n color: ",";\n }\n\n &.active {\n background-color: ",";\n color: ",";\n }\n }\n"])),function(e){return"dark"===e.$theme?Ar("--layout-sider-bg-dark","#001529"):Ar("--layout-sider-bg-light","#fff")},function(e){return"dark"===e.$theme?Ar("--layout-sider-color-dark","#fff"):Ar("--layout-sider-color-light","#000")},Ar("--layout-sider-z-index","10"),Ar("--layout-sider-transition","all 0.3s ease"),Ar("--layout-sider-flex","0 0 200px"),function(e){return"dark"===e.$theme?"var(--layout-sider-border, 1px solid #303030)":"var(--layout-sider-border, 1px solid transparent)"},function(e){return"dark"===e.$theme?"2px 0 8px rgba(0, 0, 0, 0.3)":"2px 0 8px rgba(0, 0, 0, 0.08)"},function(e){var n=e.$width,t=e.$collapsedWidth,i=e.$collapsed,r="number"==typeof n?"".concat(n,"px"):n||Ar("--layout-sider-width","200px"),o=void 0!==t?"".concat(t,"px"):Ar("--layout-sider-collapsed-width","64px");return"\n width: ".concat(i?o:r,";\n min-width: ").concat(i?o:r,";\n max-width: ").concat(i?o:r,";\n ")},function(e){return e.$fixed&&"\n position: fixed;\n top: ".concat(Ar("--layout-header-height","64px"),";\n left: 0;\n bottom: 0;\n overflow-y: auto;\n box-shadow: ").concat(Ar("--layout-sider-box-shadow","2px 0 8px rgba(0, 0, 0, 0.15)"),";\n ")},function(e){return"dark"===e.$theme?Ar("--layout-sider-color-dark","#fff"):Ar("--layout-sider-color-light","#000")},Ar("--layout-menu-hover-bg-light","#1890ff"),Ar("--layout-menu-hover-color-light","#fff"),Ar("--layout-menu-active-bg-light","#1890ff"),Ar("--layout-menu-active-color-light","#fff")),Mr=h.default.div(jr||(jr=_(["\n flex: 1;\n overflow-y: auto;\n overflow-x: hidden;\n\n /* 内容过渡动画 */\n & > * {\n transition: all 0.3s ease;\n }\n\n /* 收缩状态下的内容样式 */\n ","\n"],["\n flex: 1;\n overflow-y: auto;\n overflow-x: hidden;\n\n /* 内容过渡动画 */\n & > * {\n transition: all 0.3s ease;\n }\n\n /* 收缩状态下的内容样式 */\n ","\n"])),function(e){return e.$collapsed&&"\n & > * {\n text-align: center;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n "}),Rr=h.default.div(Vr||(Vr=_(["\n display: flex;\n align-items: center;\n justify-content: center;\n height: ",";\n background-color: ",";\n color: ",";\n cursor: pointer;\n transition: ",";\n user-select: none;\n order: ",";\n\n &.layout-sider-trigger {\n /* 外部可通过 .layout-sider-trigger 选择器覆盖样式 */\n }\n\n &:hover {\n background-color: ",";\n color: ",";\n }\n\n /* 分割线 */\n ","\n\n ","\n\n /* 零宽度模式下,收缩时隐藏触发器 */\n ","\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n height: ",";\n background-color: ",";\n color: ",";\n cursor: pointer;\n transition: ",";\n user-select: none;\n order: ",";\n\n &.layout-sider-trigger {\n /* 外部可通过 .layout-sider-trigger 选择器覆盖样式 */\n }\n\n &:hover {\n background-color: ",";\n color: ",";\n }\n\n /* 分割线 */\n ","\n\n ","\n\n /* 零宽度模式下,收缩时隐藏触发器 */\n ","\n"])),Ar("--layout-trigger-height","48px"),function(e){return"dark"===e.$theme?Ar("--layout-sider-bg-dark","#001529"):Ar("--layout-sider-bg-light","#fff")},function(e){return"dark"===e.$theme?Ar("--layout-sider-color-dark","#fff"):Ar("--layout-sider-color-light","#000")},Ar("--layout-trigger-transition","all 0.3s ease"),function(e){return"top"===e.$placement?"-1":"auto"},Ar("--layout-menu-hover-bg-light","#1890ff"),Ar("--layout-menu-hover-color-light","#fff"),function(e){var n=e.$placement,t=e.$theme;return"top"===n&&"\n border-bottom: 1px solid ".concat("dark"===t?"#303030":"transparent",";\n ")},function(e){var n=e.$placement,t=e.$theme;return"top"!==n&&"\n border-top: 1px solid ".concat("dark"===t?"#303030":"transparent",";\n ")},function(e){var n=e.$zeroWidthMode,t=e.$collapsed;return n&&t&&"\n display: none;\n "}),kr=h.default.div(zr||(zr=_(["\n position: absolute;\n top: 16px;\n left: 16px;\n width: 40px;\n height: 40px;\n border-radius: 50%;\n background-color: #1890ff;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n z-index: 100;\n transition: all 0.3s ease;\n\n &:hover {\n background-color: #40a9ff;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);\n transform: scale(1.05);\n }\n"],["\n position: absolute;\n top: 16px;\n left: 16px;\n width: 40px;\n height: 40px;\n border-radius: 50%;\n background-color: #1890ff;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n z-index: 100;\n transition: all 0.3s ease;\n\n &:hover {\n background-color: #40a9ff;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);\n transform: scale(1.05);\n }\n"])));h.default.div(Ur||(Ur=_(["\n display: flex;\n flex: 1;\n flex-direction: column;\n overflow: hidden;\n\n ","\n"],["\n display: flex;\n flex: 1;\n flex-direction: column;\n overflow: hidden;\n\n ","\n"])),function(e){return e.$hasSider&&"\n flex-direction: row;\n "});var Hr,Dr,Pr,jr,Vr,zr,Ur,Br,Fr,Gr=h.default.main(Br||(Br=_(["\n flex: 1;\n padding: ",";\n background-color: ",";\n min-height: ",";\n transition: ",";\n overflow-y: auto;\n box-sizing: border-box;\n position: relative;\n\n &.layout-content {\n /* 外部可通过 .layout-content 选择器覆盖样式 */\n }\n\n ","\n\n /* Dark 主题滚动条样式 */\n ","\n"],["\n flex: 1;\n padding: ",";\n background-color: ",";\n min-height: ",";\n transition: ",";\n overflow-y: auto;\n box-sizing: border-box;\n position: relative;\n\n &.layout-content {\n /* 外部可通过 .layout-content 选择器覆盖样式 */\n }\n\n ","\n\n /* Dark 主题滚动条样式 */\n ","\n"])),Ar("--layout-content-padding","24px"),Ar("--layout-content-bg","transparent"),Ar("--layout-content-min-height","280px"),Ar("--layout-content-transition","all 0.3s ease"),function(e){return e.$fixed&&"\n overflow-y: auto;\n "},function(e){return"dark"===e.$theme&&"\n &::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n }\n\n &::-webkit-scrollbar-track {\n background: transparent;\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: color-mix(in srgb, var(--idp-primary-color, #1890ff) 50%, transparent);\n border-radius: 3px;\n }\n\n &::-webkit-scrollbar-thumb:hover {\n background-color: color-mix(in srgb, var(--idp-primary-color, #1890ff) 70%, transparent);\n }\n\n scrollbar-width: thin;\n scrollbar-color: color-mix(in srgb, var(--idp-primary-color, #1890ff) 50%, transparent) transparent;\n "}),$r=h.default.footer(Fr||(Fr=_(["\n display: flex;\n align-items: center;\n flex-shrink: 0;\n padding: ",";\n background-color: ",";\n color: ",";\n height: ",";\n border-top: ",";\n z-index: ",";\n transition: ",";\n box-sizing: border-box;\n\n &.layout-footer {\n /* 外部可通过 .layout-footer 选择器覆盖样式 */\n }\n\n ","\n"],["\n display: flex;\n align-items: center;\n flex-shrink: 0;\n padding: ",";\n background-color: ",";\n color: ",";\n height: ",";\n border-top: ",";\n z-index: ",";\n transition: ",";\n box-sizing: border-box;\n\n &.layout-footer {\n /* 外部可通过 .layout-footer 选择器覆盖样式 */\n }\n\n ","\n"])),Ar("--layout-footer-padding","24px 50px"),function(e){return"dark"===e.$theme?Ar("--layout-footer-bg-dark","#001529"):Ar("--layout-footer-bg-light","#fff")},function(e){return"dark"===e.$theme?Ar("--layout-footer-color-dark","#fff"):Ar("--layout-footer-color-light","#000")},function(e){var n=e.$height;return"number"==typeof n?"".concat(n,"px"):n||Ar("--layout-footer-height","48px")},function(e){return"dark"===e.$theme?"var(--layout-footer-border, 1px solid #303030)":"var(--layout-footer-border, 1px solid transparent)"},Ar("--layout-footer-z-index","10"),Ar("--layout-footer-transition","all 0.3s ease"),function(e){return e.$fixed&&"\n position: fixed;\n bottom: 0;\n left: 0;\n right: 0;\n box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);\n "}),Yr=n.createContext(void 0),Wr=function(t){var i=t.children,r=n.useState(!1),o=r[0],a=r[1],s=n.useState(!1),l=s[0],c=s[1],d=n.useState(function(){return function(){}}),u=d[0],p=d[1];return e.jsx(Yr.Provider,{value:{siderCollapsed:o,setSiderCollapsed:a,zeroWidthMode:l,setZeroWidthMode:c,onExpand:u,setOnExpand:p},children:i})},Kr=function(){var e=n.useContext(Yr);if(!e)throw new Error("useLayoutContext must be used within a LayoutProvider");return e},Zr=function(n){var t=n.className,i=void 0===t?"":t,r=n.style,o=void 0===r?{}:r,a=n.children,s=n.width,l=void 0===s?200:s,c=n.collapsedWidth,d=void 0===c?64:c,p=n.collapsible,h=void 0!==p&&p,f=n.collapsed,g=void 0!==f&&f,m=n.onCollapse,v=n.trigger,x=n.triggerPlacement,C=void 0===x?"bottom":x,_=n.zeroWidthMode,E=void 0!==_&&_,b=n.fixed,y=void 0!==b&&b,O=n.theme,T=void 0===O?"light":O,N=Kr(),S=N.setSiderCollapsed,A=N.setZeroWidthMode,L=N.setOnExpand;u.default.useEffect(function(){S(g),A(E)},[g,E,S,A]);var w=function(){null==m||m(!g)};u.default.useEffect(function(){L(function(){return w})},[g,m,L]);var I=E&&g?0:d;return e.jsxs(Ir,{className:"layout-sider ".concat(i),style:o,$width:l,$collapsedWidth:I,$collapsed:g,$fixed:y,$theme:T,children:[e.jsx(Mr,{children:a}),h&&e.jsx(Rr,{className:"layout-sider-trigger",$collapsed:g,$placement:E?"top":C,onClick:w,$zeroWidthMode:E,$theme:T,children:v||e.jsx(D,{type:g?"arrowRight":"arrowLeft",size:20,color:"dark"===T?"#fff":"rgba(0, 0, 0, 0.65)"})})]})},Xr=function(n){var t=n.className,i=void 0===t?"":t,r=n.style,o=void 0===r?{}:r,a=n.children,s=n.hasSider,l=n.theme,c=void 0!==s?s:function(e){return!!e&&u.default.Children.toArray(e).some(function(e){return u.default.isValidElement(e)&&e.type===Zr})}(a);return e.jsx(Wr,{children:e.jsx(Lr,{className:"layout-wrapper ".concat(i),style:o,$hasSider:c,$theme:l,children:a})})};Xr.Header=function(n){var t=n.className,i=void 0===t?"":t,r=n.style,o=void 0===r?{}:r,a=n.children,s=n.height,l=n.fixed,c=void 0!==l&&l,d=n.theme,u=void 0===d?"light":d,p=(null==o?void 0:o.background)||"#3030302b";return e.jsx(wr,{className:"layout-header layout-header-".concat(u," ").concat(i),style:o,$height:s,$fixed:c,$theme:u,$bgColor:p,children:a})},Xr.Sider=Zr,Xr.Content=function(n){var t=n.className,i=void 0===t?"":t,r=n.style,o=void 0===r?{}:r,a=n.children,s=n.theme,l=void 0===s?"light":s,c=Kr(),d=c.siderCollapsed,u=c.zeroWidthMode,p=c.onExpand;return e.jsxs(Gr,{className:"layout-content ".concat(i),style:o,$theme:l,children:[u&&d&&e.jsx(kr,{onClick:p,children:e.jsx(D,{type:"menu",size:24,color:"#fff"})}),a]})},Xr.Footer=function(n){var t=n.className,i=void 0===t?"":t,r=n.style,o=void 0===r?{}:r,a=n.children,s=n.height,l=n.fixed,c=void 0!==l&&l,d=n.theme;return e.jsx($r,{className:"layout-footer ".concat(i),style:o,$height:s,$fixed:c,$theme:d,children:a})};var qr,Jr,Qr,eo,no,to,io,ro=Xr,oo=function(e,n){return"var(".concat(e,", ").concat(n,")")},ao=i.keyframes(qr||(qr=_(["\n from {\n opacity: 0;\n max-height: 0;\n padding-top: 0;\n padding-bottom: 0;\n }\n to {\n opacity: 1;\n max-height: 100px;\n padding-bottom: 4px;\n }\n"],["\n from {\n opacity: 0;\n max-height: 0;\n padding-top: 0;\n padding-bottom: 0;\n }\n to {\n opacity: 1;\n max-height: 100px;\n padding-bottom: 4px;\n }\n"]))),so=h.default.form(Jr||(Jr=_(["\n width: 100%;\n\n &.form-wrapper {\n /* 外部可通过 .form-wrapper 选择器覆盖样式 */\n }\n\n ","\n"],["\n width: 100%;\n\n &.form-wrapper {\n /* 外部可通过 .form-wrapper 选择器覆盖样式 */\n }\n\n ","\n"])),function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),lo=h.default.div(Qr||(Qr=_(["\n margin-bottom: ",";\n\n &.form-item {\n /* 外部可通过 .form-item 选择器覆盖样式 */\n }\n\n ","\n\n ","\n\n ","\n"],["\n margin-bottom: ",";\n\n &.form-item {\n /* 外部可通过 .form-item 选择器覆盖样式 */\n }\n\n ","\n\n ","\n\n ","\n"])),oo("--form-item-margin-bottom","24px"),function(e){return"horizontal"===e.$layout&&"\n display: flex;\n align-items: center;\n\n & .form-label {\n margin-bottom: 0;\n }\n "},function(e){return"inline"===e.$layout&&"\n display: inline-flex;\n align-items: center;\n margin-right: ".concat(oo("--form-inline-item-margin-right","24px"),";\n margin-bottom: 0;\n\n & .form-label {\n margin-bottom: 0;\n }\n ")},function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),co=h.default.label(eo||(eo=_(["\n display: block;\n font-size: ",";\n color: ",";\n margin-bottom: ",";\n white-space: nowrap;\n text-align: ",";\n\n &.form-label {\n /* 外部可通过 .form-label 选择器覆盖样式 */\n }\n\n &::after {\n content: ",";\n margin: 0 8px 0 2px;\n }\n\n &::before {\n content: ",";\n color: ",";\n margin-right: 4px;\n display: inline-block;\n vertical-align: middle;\n }\n\n ","\n"],["\n display: block;\n font-size: ",";\n color: ",";\n margin-bottom: ",";\n white-space: nowrap;\n text-align: ",";\n\n &.form-label {\n /* 外部可通过 .form-label 选择器覆盖样式 */\n }\n\n &::after {\n content: ",";\n margin: 0 8px 0 2px;\n }\n\n &::before {\n content: ",";\n color: ",";\n margin-right: 4px;\n display: inline-block;\n vertical-align: middle;\n }\n\n ","\n"])),oo("--form-label-font-size","14px"),oo("--form-label-color","#333"),oo("--form-label-margin-bottom","8px"),function(e){return e.$labelAlign||"end"},function(e){return e.$colon?'":"':""},function(e){return e.$required?'"*"':'""'},oo("--form-label-required-color","#f5222d"),function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),uo=h.default.div(no||(no=_(["\n width: 100%;\n position: relative;\n\n &.form-control {\n /* 外部可通过 .form-control 选择器覆盖样式 */\n }\n\n ","\n"],["\n width: 100%;\n position: relative;\n\n &.form-control {\n /* 外部可通过 .form-control 选择器覆盖样式 */\n }\n\n ","\n"])),function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),po=h.default.div(to||(to=_(["\n font-size: ",";\n color: ",";\n line-height: 1.5;\n position: absolute;\n top: 100%;\n left: 0;\n width: 100%;\n opacity: 0;\n max-height: 0;\n overflow: hidden;\n z-index: 10;\n\n &.form-error {\n /* 外部可通过 .form-error 选择器覆盖样式 */\n }\n\n &.form-error-visible {\n animation: "," 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;\n }\n\n ","\n"],["\n font-size: ",";\n color: ",";\n line-height: 1.5;\n position: absolute;\n top: 100%;\n left: 0;\n width: 100%;\n opacity: 0;\n max-height: 0;\n overflow: hidden;\n z-index: 10;\n\n &.form-error {\n /* 外部可通过 .form-error 选择器覆盖样式 */\n }\n\n &.form-error-visible {\n animation: "," 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;\n }\n\n ","\n"])),oo("--form-error-font-size","12px"),oo("--form-error-color","#f5222d"),ao,function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),ho=h.default.div(io||(io=_(["\n font-size: ",";\n color: ",";\n line-height: 1.5;\n position: absolute;\n\n &.form-help {\n /* 外部可通过 .form-help 选择器覆盖样式 */\n }\n\n ","\n"],["\n font-size: ",";\n color: ",";\n line-height: 1.5;\n position: absolute;\n\n &.form-help {\n /* 外部可通过 .form-help 选择器覆盖样式 */\n }\n\n ","\n"])),oo("--form-help-font-size","12px"),oo("--form-help-color","#00000073"),function(e){var n=e.$styles;return n&&Object.entries(n).map(function(e){var n=e[0],t=e[1];return"".concat(n,": ").concat(t,";")}).join("\n")}),fo=n.createContext(null),go=function(t){var i=t.children,r=t.className,o=void 0===r?"":r,a=t.style,s=t.layout,l=void 0===s?"horizontal":s,c=t.labelSpan,d=t.wrapperSpan,p=t.initialValues,h=void 0===p?{}:p,f=t.onFinish,m=t.onFinishFailed,C=t.colon,_=void 0===C||C,E=t.requiredMark,b=void 0===E||E,y=t.styles,O=t.formRef,T=t.form,N=n.useState(h),S=N[0],A=N[1],L=n.useState({}),w=L[0],I=L[1],M=n.useRef(null),R=n.useRef(new Map),k=n.useRef(null),H=n.useCallback(function(e,n){A(function(t){var i;return g(g({},t),((i={})[e]=n,i))}),w[e]&&I(function(n){var t=g({},n);return delete t[e],t})},[w]),D=n.useCallback(function(e){return S[e]},[S]),P=n.useCallback(function(e){A(function(n){return g(g({},n),e)}),Object.keys(e).forEach(function(e){w[e]&&I(function(n){var t=g({},n);return delete t[e],t})})},[w]),j=n.useCallback(function(e){return v(void 0,void 0,void 0,function(){var n,t,i,r,o,a,s,l;return x(this,function(c){switch(c.label){case 0:if(!(n=R.current.get(e)))return[2];if(t=n.rules,i=S[e],!t||0===t.length)return[2];r=function(n){var t,r,o,a,s,l,c,d,u;return x(this,function(p){switch(p.label){case 0:if(n.required&&(null==i||""===i))return t=n.message||"".concat(e," is required"),I(function(n){var i;return g(g({},n),((i={})[e]=t,i))}),[2,{value:t}];if(n.pattern&&!n.pattern.test(i))return r=n.message||"".concat(e," format is invalid"),I(function(n){var t;return g(g({},n),((t={})[e]=r,t))}),[2,{value:r}];if(n.type){switch(o=!0,n.type){case"email":o=/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(i);break;case"url":o=/^https?:\/\/.+$/.test(i);break;case"number":o=!isNaN(Number(i));break;case"integer":o=Number.isInteger(Number(i));break;case"float":o=!isNaN(parseFloat(i))&&isFinite(i);break;case"string":o="string"==typeof i;break;case"boolean":o="boolean"==typeof i;break;case"array":o=Array.isArray(i);break;case"object":o="object"==typeof i&&null!==i&&!Array.isArray(i)}if(!o)return a=n.message||"".concat(e," must be a ").concat(n.type),I(function(n){var t;return g(g({},n),((t={})[e]=a,t))}),[2,{value:a}]}if(void 0!==n.min&&i.length<n.min)return s=n.message||"".concat(e," must be at least ").concat(n.min," characters"),I(function(n){var t;return g(g({},n),((t={})[e]=s,t))}),[2,{value:s}];if(void 0!==n.max&&i.length>n.max)return l=n.message||"".concat(e," must be at most ").concat(n.max," characters"),I(function(n){var t;return g(g({},n),((t={})[e]=l,t))}),[2,{value:l}];if(void 0!==n.len&&i.length!==n.len)return c=n.message||"".concat(e," must be exactly ").concat(n.len," characters"),I(function(n){var t;return g(g({},n),((t={})[e]=c,t))}),[2,{value:c}];if(!n.validator)return[3,4];p.label=1;case 1:return p.trys.push([1,3,,4]),[4,n.validator(n,i)];case 2:return p.sent(),[3,4];case 3:return d=p.sent(),u=d instanceof Error?d.message:n.message||"".concat(e," validation failed"),I(function(n){var t;return g(g({},n),((t={})[e]=u,t))}),[2,{value:u}];case 4:return[2]}})},o=0,a=t,c.label=1;case 1:return o<a.length?(s=a[o],[5,r(s)]):[3,4];case 2:if("object"==typeof(l=c.sent()))return[2,l.value];c.label=3;case 3:return o++,[3,1];case 4:return I(function(n){var t=g({},n);return delete t[e],t}),[2,null]}})})},[S]),V=n.useCallback(function(e){return v(void 0,void 0,void 0,function(){var n,t;return x(this,function(i){switch(i.label){case 0:return n=e||Array.from(R.current.keys()),[4,Promise.all(n.map(function(e){return j(e)}))];case 1:if(t=i.sent(),t.some(function(e){return null!==e}))throw new Error("Validation failed");return[2,S]}})})},[j,S]),z=n.useCallback(function(e){if(e){var n=g({},S);e.forEach(function(e){n[e]=h[e]||void 0}),A(n)}else A(h);I({})},[S,h]),U={getFieldValue:D,getFieldsValue:function(e){if(!e)return S;var n={};return e.forEach(function(e){n[e]=S[e]}),n},setFieldValue:H,setFieldsValue:P,setFields:function(e){var n=g({},S),t=g({},w);e.forEach(function(e){void 0!==e.value&&(n[e.name]=e.value),e.errors&&e.errors.length>0?t[e.name]=e.errors[0]:delete t[e.name]}),A(n),I(t)},resetFields:z,validateFields:V,submit:function(){V().then(function(){var e=document.querySelector("form");e&&e.dispatchEvent(new Event("submit",{cancelable:!0,bubbles:!0}))})},destroy:function(){A({}),I({}),R.current.clear(),k.current=null}};n.useEffect(function(){k.current=U,O&&(O.current=U),T&&(T.getFieldValue=U.getFieldValue,T.getFieldsValue=U.getFieldsValue,T.setFieldValue=U.setFieldValue,T.setFieldsValue=U.setFieldsValue,T.setFields=U.setFields,T.resetFields=U.resetFields,T.validateFields=U.validateFields,T.submit=U.submit,T.destroy=U.destroy)},[U,O,T]);var B=n.useCallback(function(e,n){return R.current.set(e,n),function(){R.current.delete(e)}},[]),F={layout:l,labelSpan:c,wrapperSpan:d,colon:_,requiredMark:b,values:S,errors:w,setFieldValue:H,getFieldValue:D,setFieldValueList:P,validateField:j,validateFields:V,resetFields:z};return e.jsx(fo.Provider,{value:F,children:e.jsx(so,{ref:M,className:"form-wrapper ".concat(o),style:a,$styles:null==y?void 0:y.wrapper,onSubmit:function(e){return v(void 0,void 0,void 0,function(){var n;return x(this,function(t){switch(t.label){case 0:e.preventDefault(),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,V()];case 2:return t.sent(),null==f||f(S),[3,4];case 3:return n=t.sent(),null==m||m({error:n,values:S}),[3,4];case 4:return[2]}})})},children:u.default.Children.map(i,function(e){return u.default.isValidElement(e)&&e.type===mo?u.default.cloneElement(e,{registerItem:B}):e})})})},mo=function(t){var i=t.name,r=t.label,o=t.required,a=t.rules,s=void 0===a?[]:a,l=t.className,c=void 0===l?"":l,d=t.style,p=t.help,h=t.validateStatus,f=t.colon,m=t.labelSpan,v=t.wrapperSpan,x=t.hidden,C=void 0!==x&&x,_=t.extra,E=t.styles,b=t.registerItem,y=t.children,O=n.useContext(fo),T=n.useState(i&&(null==O?void 0:O.values[i])?O.values[i]:""),N=T[0],S=T[1];n.useEffect(function(){if(b&&i)return b(i,{rules:s})},[b,i,s]),n.useEffect(function(){O&&i&&S(O.values[i])},[O,i,null==O?void 0:O.values]);var A=o||s.some(function(e){return e.required}),L=O&&i?O.errors[i]:"",w=!!L||"error"===h,I=void 0!==m?m:null==O?void 0:O.labelSpan,M=void 0!==v?v:null==O?void 0:O.wrapperSpan,R=I?I/24*100:void 0,k=void 0;if(void 0!==I){var H=24-I,D=void 0!==M?M:H;D>H&&(D=H),D<1&&(D=1),k=D/24*100}return C?null:e.jsxs(lo,{className:"form-item ".concat(c),style:d,$layout:(null==O?void 0:O.layout)||"horizontal",$styles:null==E?void 0:E.wrapper,children:[r&&e.jsx(co,{className:"form-label",$required:A,$colon:void 0!==f?f:null==O?void 0:O.colon,$styles:g(g({},null==E?void 0:E.label),void 0!==R?{width:"".concat(R,"%")}:{}),children:r}),e.jsxs(uo,{className:"form-control",$styles:g(g({},null==E?void 0:E.input),void 0!==k?{width:"".concat(k,"%")}:{}),children:[u.default.Children.map(u.default.Children.toArray(y).filter(function(e){return u.default.isValidElement(e)}),function(e){return u.default.cloneElement(e,{value:N,onChange:function(n){var t,r;!function(e){S(e),i&&(null==O||O.setFieldValue(i,e))}(void 0!==(null===(t=null==n?void 0:n.target)||void 0===t?void 0:t.value)?n.target.value:n);var o=e.props;null===(r=o.onChange)||void 0===r||r.call(o,n)},error:w})}),w&&e.jsx(po,{className:"form-error ".concat(w?"form-error-visible":""),$styles:null==E?void 0:E.error,children:L}),p&&!w&&e.jsx(ho,{className:"form-help",$styles:null==E?void 0:E.help,children:p}),_&&!w&&e.jsx(ho,{className:"form-help",$styles:null==E?void 0:E.help,children:_})]})]})};go.Item=mo;var vo,xo,Co,_o=go,Eo=h.default.div.withConfig({shouldForwardProp:function(e){return!["width","height","gap","padding","backgroundColor"].includes(e)}})(vo||(vo=_(["\n width: ",";\n height: ",";\n gap: ",";\n padding: ",";\n background-color: ",";\n box-sizing: border-box;\n"],["\n width: ",";\n height: ",";\n gap: ",";\n padding: ",";\n background-color: ",";\n box-sizing: border-box;\n"])),function(e){return void 0!==e.width?"number"==typeof e.width?"".concat(e.width,"px"):e.width:"100%"},function(e){return void 0!==e.height?"number"==typeof e.height?"".concat(e.height,"px"):e.height:"auto"},function(e){return void 0!==e.gap?"number"==typeof e.gap?"".concat(e.gap,"px"):e.gap:"0"},function(e){return void 0!==e.padding?"number"==typeof e.padding?"".concat(e.padding,"px"):e.padding:"0"},function(e){return e.backgroundColor||"transparent"}),bo=h.default.div.withConfig({shouldForwardProp:function(e){return!["span","rowGap","align","justify","wrap"].includes(e)}})(xo||(xo=_(["\n display: flex;\n width: ",";\n row-gap: ",";\n align-items: ",";\n justify-content: ",";\n flex-wrap: ",";\n box-sizing: border-box;\n"],["\n display: flex;\n width: ",";\n row-gap: ",";\n align-items: ",";\n justify-content: ",";\n flex-wrap: ",";\n box-sizing: border-box;\n"])),function(e){return void 0!==e.span?"calc(".concat(e.span," / 24 * 100%)"):"100%"},function(e){return void 0!==e.rowGap?"number"==typeof e.rowGap?"".concat(e.rowGap,"px"):e.rowGap:"0"},function(e){return e.align||"stretch"},function(e){return e.justify||"flex-start"},function(e){return!1!==e.wrap?"wrap":"nowrap"}),yo=h.default.div.withConfig({shouldForwardProp:function(e){return!["span","offset","push","pull","order","gap"].includes(e)}})(Co||(Co=_(["\n flex: ",";\n max-width: ",";\n margin-left: ",";\n margin-right: ",";\n order: ",";\n padding-left: ",";\n padding-right: ",";\n box-sizing: border-box;\n"],["\n flex: ",";\n max-width: ",";\n margin-left: ",";\n margin-right: ",";\n order: ",";\n padding-left: ",";\n padding-right: ",";\n box-sizing: border-box;\n"])),function(e){return void 0!==e.span?"0 0 calc(".concat(e.span," / 24 * 100%)"):"1"},function(e){return void 0!==e.span?"calc(".concat(e.span," / 24 * 100%)"):"100%"},function(e){return void 0!==e.pull?"calc(-".concat(e.pull," / 24 * 100%)"):void 0!==e.offset?"calc(".concat(e.offset," / 24 * 100%)"):"0"},function(e){return void 0!==e.push?"calc(".concat(e.push," / 24 * 100%)"):"0"},function(e){return void 0!==e.order?e.order:"0"},function(e){return void 0!==e.gap?"number"==typeof e.gap?"".concat(e.gap/2,"px"):"calc(".concat(e.gap," / 2)"):"0"},function(e){return void 0!==e.gap?"number"==typeof e.gap?"".concat(e.gap/2,"px"):"calc(".concat(e.gap," / 2)"):"0"}),Oo=n.createContext({}),To=n.createContext({}),No=u.default.forwardRef(function(t,i){var r=t.children,o=t.className,a=t.style,s=t.span,l=t.offset,c=t.push,d=t.pull,u=t.order,h=t.gap,f=n.useContext(To),g=null==f?void 0:f.gap,m=void 0!==h?h:g;return e.jsx(yo,{ref:i,className:p.default("idp-grid-col",o),style:a,span:s,offset:l,push:c,pull:d,order:u,gap:m,children:r})});No.displayName="Grid.Col";var So=u.default.forwardRef(function(t,i){var r=t.children,o=t.className,a=t.style,s=t.span,l=t.gap,c=t.rowGap,d=t.align,u=t.justify,h=t.wrap,f=void 0===h||h,g=n.useContext(Oo),m=null==g?void 0:g.gap,v=void 0!==l?l:m;return e.jsx(To.Provider,{value:{gap:v},children:e.jsx(bo,{ref:i,className:p.default("idp-grid-row",o),style:a,span:s,rowGap:c,align:d,justify:u,wrap:f,children:r})})});So.displayName="Grid.Row";var Ao=Object.assign(So,{Col:No}),Lo=u.default.forwardRef(function(n,t){var i=n.children,r=n.className,o=n.style,a=n.width,s=n.height,l=n.gap,c=n.padding,d=n.backgroundColor;return e.jsx(Oo.Provider,{value:{gap:l},children:e.jsx(Eo,{ref:t,className:p.default("idp-grid",r),style:o,width:a,height:s,gap:l,padding:c,backgroundColor:d,children:i})})});Lo.displayName="Grid";var wo=Object.assign(Lo,{Row:Ao,Col:No}),Io=function(t){var i=t.open,r=t.title,o=t.width,s=void 0===o?460:o,l=t.height,c=void 0===l?300:l,d=t.placement,u=void 0===d?"right":d,h=t.maskClosable,f=void 0===h||h,m=t.mask,v=void 0===m||m,x=t.onClose,C=t.children,_=t.className,E=t.style,b=t.maskStyle,y=t.maskClassName,O=t.contentClassName,T=t.contentStyle,N=t.header,S=t.headerClassName,A=t.headerStyle,L=t.footer,w=t.footerClassName,I=t.footerStyle,M=t.getContainer,R=void 0!==M&&M,k=t.destroyOnClose,H=void 0!==k&&k,P=t.closable,j=void 0===P||P,V=t.zIndex,z=void 0===V?1e3:V,U=t.loading,B=void 0!==U&&U,F=t.loadingIcon,G=t.resizable,$=void 0!==G&&G,Y=t.resizeHandleSize,W=void 0===Y?8:Y,K=t.minWidth,Z=void 0===K?460:K,X=t.minHeight,q=void 0===X?150:X,J=t.onChange,Q=n.useState(!1),ee=Q[0],ne=Q[1],te=n.useState(!1),ie=te[0],re=te[1],oe=n.useState(!1),ae=oe[0],le=oe[1],ce=window.innerWidth,de=window.innerHeight,ue=n.useState("number"==typeof s?s:460),pe=ue[0],he=ue[1],fe=n.useState("number"==typeof c?c:300),ge=fe[0],me=fe[1],ve=n.useState(!1),xe=ve[0],Ce=ve[1],_e=n.useRef(null),Ee=n.useRef({x:0,y:0}),be=n.useRef({width:0,height:0}),ye=n.useRef({width:pe,height:ge}),Oe=n.useRef({placement:u,minWidth:Z,maxWidth:ce,minHeight:q,maxHeight:de,onChange:J});n.useEffect(function(){ye.current={width:pe,height:ge}},[pe,ge]),n.useEffect(function(){Oe.current={placement:u,minWidth:Z,maxWidth:ce,minHeight:q,maxHeight:de,onChange:J}},[u,Z,ce,q,de,J]),n.useEffect(function(){"number"==typeof s&&he(s)},[s]),n.useEffect(function(){"number"==typeof c&&me(c)},[c]),n.useEffect(function(){if(!i){re(!1),le(!0);var e=setTimeout(function(){ne(!1),le(!1)},300);return function(){return clearTimeout(e)}}return le(!1),ne(!0),document.body.style.overflow="hidden",requestAnimationFrame(function(){requestAnimationFrame(function(){re(!0)})}),function(){document.body.style.overflow=""}},[i,300]);var Te=function(){f&&x()},Ne=function(){x()},Se=function(e){return"number"==typeof e?"".concat(e,"px"):e},Ae=function(){var e=g(g({},E),{zIndex:z}),n=$?{width:pe,height:ge}:{width:s,height:c};switch(u){case"left":case"right":e.width=Se(n.width),e.height="100%";break;case"top":case"bottom":e.height=Se(n.height),e.width="100%"}return xe&&(e.transition="none"),e},Le=$&&ee,we=function(){switch(u){case"left":return"idp-drawer-resize-handle--right";case"right":return"idp-drawer-resize-handle--left";case"top":return"idp-drawer-resize-handle--bottom";case"bottom":return"idp-drawer-resize-handle--top";default:return""}},Ie=function(){switch(u){case"left":case"right":return"col-resize";case"top":case"bottom":return"row-resize";default:return"default"}},Me=n.useCallback(function(e){e.preventDefault(),e.stopPropagation();var n=ye.current.width,t=ye.current.height;if(_e.current){var i=Oe.current;"left"===i.placement||"right"===i.placement?_e.current.style.width="".concat(n,"px"):_e.current.style.height="".concat(t,"px")}Ce(!0),Ee.current={x:e.clientX,y:e.clientY},be.current={width:n,height:t}},[]),Re=n.useCallback(function(e){var n,t=Oe.current,i=e.clientX-Ee.current.x,r=e.clientY-Ee.current.y,o=be.current.width,a=be.current.height;if("left"===t.placement){var s=be.current.width+i;(o=Math.max(t.minWidth,Math.min(t.maxWidth,s)))!==s&&(Ee.current.x=e.clientX,be.current.width=o)}else if("right"===t.placement){s=be.current.width-i;(o=Math.max(t.minWidth,Math.min(t.maxWidth,s)))!==s&&(Ee.current.x=e.clientX,be.current.width=o)}else if("top"===t.placement){var l=be.current.height+r;(a=Math.max(t.minHeight,Math.min(t.maxHeight,l)))!==l&&(Ee.current.y=e.clientY,be.current.height=a)}else if("bottom"===t.placement){l=be.current.height-r;(a=Math.max(t.minHeight,Math.min(t.maxHeight,l)))!==l&&(Ee.current.y=e.clientY,be.current.height=a)}ye.current={width:o,height:a},he(o),me(a),null===(n=t.onChange)||void 0===n||n.call(t,{width:o,height:a})},[]),ke=n.useCallback(function(){Ce(!1)},[]);n.useEffect(function(){return xe?(document.addEventListener("mousemove",Re),document.addEventListener("mouseup",ke)):(document.removeEventListener("mousemove",Re),document.removeEventListener("mouseup",ke)),function(){document.removeEventListener("mousemove",Re),document.removeEventListener("mouseup",ke)}},[xe,Re,ke]);var He=function(){return B?e.jsx("div",{className:"idp-drawer-loading",children:F||e.jsx(D,{type:"loading",size:"large",spin:!0})}):null},De=function(){return!1===N?null:N?e.jsx("div",{className:p.default("idp-drawer-header",S),style:A,children:N}):r||j?e.jsxs("div",{className:p.default("idp-drawer-header",S),style:A,children:[e.jsx("div",{className:"idp-drawer-header__title",children:r}),j&&e.jsx("button",{className:"idp-drawer-header__close",onClick:Ne,type:"button","aria-label":"Close",children:e.jsx(D,{type:"close",size:20})})]}):null},Pe=function(){var n;return Le?e.jsx("div",{className:p.default("idp-drawer-resize-handle",we()),style:(n={cursor:Ie()},n["left"===u||"right"===u?"width":"height"]=W,n),onMouseDown:Me}):null},je=function(){if(!ee&&!ae)return null;var n=e.jsx("div",{className:p.default("idp-drawer-overlay",{"idp-drawer-overlay--visible":ie&&!ae,"idp-drawer-overlay--closing":ae,"idp-drawer-overlay--resizing":xe},y),style:g({zIndex:z},b),onClick:Te,children:e.jsxs("div",{ref:_e,className:p.default("idp-drawer","idp-drawer--".concat(u),{"idp-drawer--visible":ie&&!ae,"idp-drawer--closing":ae,"idp-drawer--no-mask":!v,"idp-drawer--resizing":xe},_),style:Ae(),onClick:function(e){return e.stopPropagation()},children:[He(),De(),e.jsx("div",{className:p.default("idp-drawer-content",O),style:T,children:H&&ae?null:C}),!1!==L&&e.jsx("div",{className:p.default("idp-drawer-footer",w),style:I,children:L||e.jsxs(e.Fragment,{children:[e.jsx(se,{onClick:Ne,type:"button",children:"取消"}),e.jsx(se,{variant:"primary",onClick:Ne,type:"button",children:"确认"})]})}),Pe()]})});return v?n:e.jsx("div",{className:p.default("idp-drawer-wrapper",{"idp-drawer-wrapper--visible":ie&&!ae,"idp-drawer-wrapper--closing":ae}),style:{zIndex:z},children:e.jsxs("div",{ref:_e,className:p.default("idp-drawer","idp-drawer--".concat(u),{"idp-drawer--visible":ie&&!ae,"idp-drawer--closing":ae,"idp-drawer--no-mask":!v,"idp-drawer--resizing":xe},_),style:Ae(),children:[He(),De(),e.jsx("div",{className:p.default("idp-drawer-content",O),style:T,children:H&&ae?null:C}),!1!==L&&e.jsx("div",{className:p.default("idp-drawer-footer",w),style:I,children:L||e.jsxs(e.Fragment,{children:[e.jsx("button",{onClick:Ne,type:"button",children:"取消"}),e.jsx("button",{onClick:Ne,type:"button",children:"确认"})]})}),Pe()]})})}();if(!je)return null;if(!1===R)return je;var Ve="function"==typeof R?R():R;return Ve?a.createPortal(je,Ve):je},Mo=n.createContext(void 0),Ro=function(t){var i,r=t.value,o=t.checked,a=t.defaultChecked,s=void 0!==a&&a,l=t.onChange,c=t.disabled,d=void 0!==c&&c,u=t.indeterminate,h=void 0!==u&&u,f=t.children,m=t.className,v=t.style,x=t.label,_=t.labelGap,E=void 0===_?8:_,b=t.labelClassName,y=void 0===b?"":b,O=t.labelStyle,T=n.useContext(Mo),N=!!T,S=n.useState(s),A=S[0],L=S[1],w=N?null===(i=T.value)||void 0===i?void 0:i.includes(r):void 0!==o?o:A;n.useEffect(function(){N||void 0===o||L(o)},[o,N]);var I=p.default("idp-checkbox",{"idp-checkbox--checked":w,"idp-checkbox--disabled":d||N&&T.disabled,"idp-checkbox--indeterminate":h},m);return e.jsx("label",{className:I,style:v,children:e.jsxs("div",{className:"idp-checkbox-wrapper",style:{display:"flex",alignItems:"center"},children:[x&&e.jsx("div",{className:"idp-checkbox-label ".concat(y),style:g({marginRight:"number"==typeof E?"".concat(E,"px"):E},O),children:x}),e.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[e.jsx("input",{type:"checkbox",className:"idp-checkbox__input",checked:w,onChange:function(e){var n,t=e.target.checked;if(!(d||N&&T.disabled))if(N){var i=T.value||[],o=void 0;o=t?C(C([],i,!0),[r],!1):i.filter(function(e){return e!==r}),null===(n=T.onChange)||void 0===n||n.call(T,o)}else L(t),null==l||l(t,r)},disabled:d||N&&T.disabled,value:r,ref:function(e){e&&(e.indeterminate=h)}}),e.jsx("span",{className:"idp-checkbox__inner"}),f&&e.jsx("span",{className:"idp-checkbox__label",children:f})]})]})})};Ro.Group=function(t){var i=t.value,r=t.defaultValue,o=void 0===r?[]:r,a=t.onChange,s=t.disabled,l=void 0!==s&&s,c=t.options,d=t.children,u=t.className,h=t.style,f=t.layout,m=void 0===f?"vertical":f,v=t.gap,x=void 0===v?8:v,C=n.useState(o||[]),_=C[0],E=C[1];n.useEffect(function(){void 0!==i&&E(i)},[i]);var b=p.default("idp-checkbox-group",{"idp-checkbox-group--horizontal":"horizontal"===m},u),y=g(g({},h),{gap:"number"==typeof x?"".concat(x,"px"):x});return e.jsx(Mo.Provider,{value:{value:void 0!==i?i:_,onChange:function(e){E(e),null==a||a(e)},disabled:l},children:e.jsx("div",{className:b,style:y,children:c?c.map(function(n,t){var i;return e.jsx(Ro,{value:n.value,disabled:n.disabled||l,children:n.label},null!==(i=n.value)&&void 0!==i?i:t)}):d})})},Ro.displayName="Checkbox",Ro.Group.displayName="Checkbox.Group";var ko=Ro,Ho=u.default.forwardRef(function(t,i){var r=t.children,o=t.className,a=t.style,s=t.size,l=void 0===s?"medium":s,c=t.backgroundColor,d=t.color,u=t.icon,h=t.closable,f=void 0!==h&&h,v=t.onClose,x=t.onClick,C=m(t,["children","className","style","size","backgroundColor","color","icon","closable","onClose","onClick"]),_=n.useState(!0),E=_[0],b=_[1];if(!E)return null;var y=p.default("idp-tag","idp-tag--".concat(l),{"idp-tag--clickable":x,"idp-tag--closable":f},o),O=g({backgroundColor:c,color:d},a);return e.jsxs("span",g({ref:i,className:y,style:O,onClick:x},C,{children:[u?"string"==typeof u?e.jsx("span",{className:"idp-tag__icon",children:e.jsx(D,{type:u})}):e.jsx("span",{className:"idp-tag__icon",children:u}):null,e.jsx("span",{className:"idp-tag__content",children:r}),f&&e.jsx("span",{className:"idp-tag__close",onClick:function(e){e.stopPropagation(),null==v||v(e),b(!1)},role:"button",tabIndex:0,"aria-label":"close",children:e.jsx(D,{type:"close"})})]}))});Ho.displayName="Tag";var Do=Ho,Po=function(t){var i=t.title,r=void 0===i?"确认删除吗?":i,o=t.description,s=t.okText,l=void 0===s?"确定":s,c=t.cancelText,d=void 0===c?"取消":c,u=t.okButtonProps,h=void 0===u?{}:u,f=t.cancelButtonProps,m=void 0===f?{}:f,C=t.onConfirm,_=t.onCancel,E=t.disabled,b=void 0!==E&&E,y=t.icon,O=void 0===y?e.jsx(D,{type:"warning-circle",size:16,color:"#faad14"}):y,T=t.placement,N=void 0===T?"top":T,S=t.showCancel,A=void 0===S||S,L=t.getContainer,w=void 0===L?function(){return document.body}:L,I=t.className,M=t.style,R=t.children,k=n.useState(!1),H=k[0],P=k[1],j=n.useState(!1),V=j[0],z=j[1],U=n.useState({top:0,left:0}),B=U[0],F=U[1],G=n.useRef(null),$=n.useRef(null),Y={top:"idp-popconfirm-top",bottom:"idp-popconfirm-bottom",left:"idp-popconfirm-left",right:"idp-popconfirm-right",topLeft:"idp-popconfirm-topLeft",topRight:"idp-popconfirm-topRight",bottomLeft:"idp-popconfirm-bottomLeft",bottomRight:"idp-popconfirm-bottomRight",leftTop:"idp-popconfirm-leftTop",leftBottom:"idp-popconfirm-leftBottom",rightTop:"idp-popconfirm-rightTop",rightBottom:"idp-popconfirm-rightBottom"},W=function(e){b||(e&&e.preventDefault&&e.preventDefault(),e&&e.stopPropagation&&e.stopPropagation(),P(!0))},K=function(){return v(void 0,void 0,void 0,function(){return x(this,function(e){switch(e.label){case 0:if(!C)return[3,5];z(!0),e.label=1;case 1:return e.trys.push([1,,3,4]),[4,C()];case 2:return e.sent(),P(!1),[3,4];case 3:return z(!1),[7];case 4:return[3,6];case 5:P(!1),e.label=6;case 6:return[2]}})})},Z=function(){_&&_(),P(!1)},X=function(e){$.current&&!$.current.contains(e.target)&&G.current&&!G.current.contains(e.target)&&P(!1)};n.useEffect(function(){if(H)return setTimeout(function(){!function(){if(G.current&&$.current){var e=G.current.getBoundingClientRect(),n=$.current.getBoundingClientRect(),t=0,i=0;switch(N){case"top":case"topLeft":case"topRight":t=e.top-n.height-8,i=e.left+(e.width-n.width)/2,"topLeft"===N?i=e.left:"topRight"===N&&(i=e.right-n.width);break;case"bottom":case"bottomLeft":case"bottomRight":t=e.bottom+8,i=e.left+(e.width-n.width)/2,"bottomLeft"===N?i=e.left:"bottomRight"===N&&(i=e.right-n.width);break;case"left":case"leftTop":case"leftBottom":t=e.top+(e.height-n.height)/2,i=e.left-n.width-8,"leftTop"===N?t=e.top:"leftBottom"===N&&(t=e.bottom-n.height);break;case"right":case"rightTop":case"rightBottom":t=e.top+(e.height-n.height)/2,i=e.right+8,"rightTop"===N?t=e.top:"rightBottom"===N&&(t=e.bottom-n.height)}var r=window.innerWidth,o=window.innerHeight;i<10&&(i=10),i+n.width>r-10&&(i=r-n.width-10),t<10&&(t=10),t+n.height>o-10&&(t=o-n.height-10),F({top:t,left:i})}}()},0),document.addEventListener("mousedown",X),function(){document.removeEventListener("mousedown",X)}},[H,N]);var q,J;return e.jsxs(e.Fragment,{children:[(q=R,J=q.props||{},e.jsx("span",{ref:G,style:{display:"inline-block"},children:n.cloneElement(q,g(g({},J),{onClick:W}))})),function(){if(!H)return null;var n=e.jsxs("div",{ref:$,className:p.default("idp-popconfirm",Y[N],I),style:g({position:"fixed",top:"".concat(B.top,"px"),left:"".concat(B.left,"px")},M),children:[e.jsx("div",{className:"idp-popconfirm-arrow"}),e.jsxs("div",{className:"idp-popconfirm-inner",children:[e.jsxs("div",{className:"idp-popconfirm-header",children:[O&&e.jsx("span",{className:"idp-popconfirm-icon",children:O}),e.jsx("span",{className:"idp-popconfirm-title",children:r})]}),o&&e.jsx("div",{className:"idp-popconfirm-description",children:o}),e.jsxs("div",{className:"idp-popconfirm-actions",children:[A&&e.jsx(se,{variant:m.variant||"secondary",onClick:Z,disabled:m.disabled||V,size:"small",children:d}),e.jsx(se,{variant:h.variant||"primary",onClick:K,loading:h.loading||V,disabled:h.disabled,size:"small",children:l})]})]})]});if(!1===w)return n;var t="function"==typeof w?w():w;return t?a.createPortal(n,t):n}()]})},jo=function(n){var t=n.percent,i=void 0===t?0:t,r=n.type,o=void 0===r?"line":r,a=n.status,s=n.showInfo,l=void 0===s||s,c=n.format,d=n.strokeColor,u=void 0===d?"#1890ff":d,h=n.trailColor,f=void 0===h?"#f5f5f5":h,g=n.strokeWidth,m=n.size,v=void 0===m?"default":m,x=n.transition,C=void 0===x||x,_=n.icon,E=n.prefix,b=n.suffix,y=n.className,O=n.style,T=a||(i>=100?"success":i<0?"exception":"normal"),N=function(){return c?c(i):"".concat(Math.floor(i),"%")},S=function(){return"success"===T?"#52c41a":"exception"===T?"#ff4d4f":u},A=function(){return _||("success"===T?e.jsx(D,{type:"check-circle",style:{color:"#52c41a"}}):"exception"===T?e.jsx(D,{type:"close-circle",style:{color:"#ff4d4f"}}):null)};if("circle"===o||"dashboard"===o){var L=50-(g||6),w=2*Math.PI*L,I=w-i/100*w;return e.jsxs("div",{className:p.default("idp-progress","idp-progress--circle",y),style:O,children:[e.jsxs("svg",{width:120,height:120,viewBox:"0 0 120 120",style:{transform:"rotate(-90deg)"},children:[e.jsx("circle",{cx:60,cy:60,r:L,stroke:f,strokeWidth:g||6,fill:"none"}),e.jsx("circle",{cx:60,cy:60,r:L,stroke:S(),strokeWidth:g||6,fill:"none",strokeDasharray:w,strokeDashoffset:I,strokeLinecap:"round",style:{transition:C?"stroke-dashoffset 0.3s cubic-bezier(0.34, 0.69, 0.1, 1)":"none"}})]}),l&&e.jsxs("div",{className:"idp-progress-info",style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",margin:0},children:[A(),E,N(),b]})]})}return e.jsxs("div",{className:p.default("idp-progress","idp-progress--".concat(v),"idp-progress--line",{"idp-progress--success":"success"===T},{"idp-progress--exception":"exception"===T},y),style:O,children:[e.jsx("div",{className:"idp-progress-wrapper",children:e.jsx("div",{className:"idp-progress-outer",children:e.jsx("div",{className:"idp-progress-inner",children:e.jsx("div",{className:p.default("idp-progress-bg",{"idp-progress-bg--success":"success"===T,"idp-progress-bg--exception":"exception"===T}),style:{width:"".concat(Math.min(100,Math.max(0,i)),"%"),backgroundColor:S(),transition:C?"width 0.3s cubic-bezier(0.34, 0.69, 0.1, 1)":"none"}})})})}),l&&e.jsxs("div",{className:"idp-progress-info",children:[A()&&e.jsx("span",{className:"idp-progress-icon",children:A()}),E&&e.jsx("span",{className:"idp-progress-prefix",children:E}),e.jsx("span",{children:N()}),b&&e.jsx("span",{className:"idp-progress-suffix",children:b})]})]})};exports.Anchor=Gn,exports.Breadcrumb=$n,exports.Button=se,exports.Cascader=ce,exports.Checkbox=ko,exports.Col=No,exports.ColorPicker=He,exports.CopyToClipboard=je,exports.Divider=ze,exports.Drawer=Io,exports.Dropdown=ci,exports.Empty=le,exports.Flex=Ue,exports.Form=_o,exports.Grid=wo,exports.I18nProvider=li,exports.Icon=D,exports.Input=Ke,exports.Label=Sr,exports.Layout=ro,exports.Marquee=ln,exports.Masonry=zn,exports.Menu=Pi,exports.Message=cn,exports.MessageProvider=function(t){var i=t.children,r=n.useState([]),o=r[0],a=r[1],s=n.useState(0),l=s[0],c=s[1],d=n.useCallback(function(e,n,t){void 0===t&&(t=3e3);var i=l;c(function(e){return e+1}),a(function(r){return C(C([],r,!0),[{id:i,type:e,content:n,duration:t}],!1)});var r=setTimeout(function(){o(i)},t),o=function(e){a(function(n){return n.filter(function(n){return n.id!==e})})};return{close:function(){clearTimeout(r),o(i)}}},[l]),u={success:function(e,n){return d("success",e,n)},warning:function(e,n){return d("warning",e,n)},error:function(e,n){return d("error",e,n)},close:function(){return a([])}};return e.jsxs(gn.Provider,{value:{message:u},children:[i,o.map(function(n){return e.jsx(cn,{type:n.type,content:n.content,duration:n.duration,onClose:function(){return a(function(e){return e.filter(function(e){return e.id!==n.id})})}},n.id)})]})},exports.Modal=mn,exports.Notice=yn,exports.Notification=Tn,exports.Pagination=Rn,exports.Popconfirm=Po,exports.Progress=jo,exports.Radio=An,exports.Rate=ji,exports.Row=Ao,exports.Select=In,exports.Slider=Vi,exports.Space=Un,exports.Steps=Fi,exports.Switch=qi,exports.Table=Dn,exports.Tabs=Qi,exports.Tag=Do,exports.Textarea=$e,exports.Tooltip=kn,exports.Top=jn,exports.Transfer=Tr,exports.TreeSelect=ke,exports.Typography=Vn,exports.i18n=Ht,exports.load18n=function(e){var n={};return Object.keys(e).forEach(function(t){var i=e[t];if(i&&"object"==typeof i){var r=void 0,o=i;if(i.language)r=i.language,i.translation&&"object"==typeof i.translation&&(o=i.translation);else if(i.locale)r=i.locale,i.translation&&"object"==typeof i.translation&&(o=i.translation);else if(1===Object.keys(i).length){var a=Object.keys(i)[0];/^[a-z]{2}(-[A-Za-z]{2})?$/.test(a)&&(r=a,o=i[a])}else if(i.translation&&"object"==typeof i.translation&&1===Object.keys(i.translation).length){a=Object.keys(i.translation)[0];/^[a-z]{2}(-[A-Za-z]{2})?$/.test(a)&&(r=a,o=i.translation[a])}if(!r){(r={JP:"ja-JP",HK:"zh-HK",US:"en-US",CN:"zh-CN",EN:"en-US",ZH:"zh-CN"}[t]||t)!==t||/^[a-z]{2}(-[A-Za-z]{2})?$/.test(t)||console.warn('Using key "'.concat(t,'" as language code. For better results, ')+'please use explicit language codes like "ja-JP" or "zh-HK", or include language information in your JSON files.')}if(!r||"string"!=typeof r)return void console.warn("Invalid language code for resource ".concat(t));n[r]||(n[r]={}),o.translation&&"object"==typeof o.translation?n[r].translation=g(g({},n[r].translation),o.translation):n[r].translation=g(g({},n[r].translation),o)}}),n},exports.message=fn,exports.useCopy=Ve,exports.useI18n=function(){return ri()},exports.useMessage=function(){var e=n.useContext(gn);return(null==e?void 0:e.message)?e.message:fn};