@nocobase/app 2.0.0-alpha.2 → 2.0.0-alpha.21

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 (136) hide show
  1. package/dist/client/113.736e29a0.async.js +7 -0
  2. package/dist/client/1145.0351040a.async.js +3 -0
  3. package/dist/client/1161.0b3b5766.async.js +40 -0
  4. package/dist/client/1442.be509f94.async.js +5 -0
  5. package/dist/client/1595.1827ce7f.async.js +45 -0
  6. package/dist/client/1758.eeeacf43.async.js +5 -0
  7. package/dist/client/1883.6ee256ab.async.js +17 -0
  8. package/dist/client/1905.ff0793ff.async.js +12 -0
  9. package/dist/client/2042.feb4b9ac.async.js +10 -0
  10. package/dist/client/2097.5a49892c.async.js +12 -0
  11. package/dist/client/{2190.90c718a9.async.js → 2190.4f5395e5.async.js} +1 -1
  12. package/dist/client/2380.900b7a22.async.js +15 -0
  13. package/dist/client/2612.0865e67e.async.js +19 -0
  14. package/dist/client/2775.455c3402.async.js +47 -0
  15. package/dist/client/2936.902710e4.async.js +28 -0
  16. package/dist/client/3357.be95167c.async.js +28 -0
  17. package/dist/client/341.fba65e23.async.js +28 -0
  18. package/dist/client/3451.a9466e73.async.js +24 -0
  19. package/dist/client/4327.68c0f17b.async.js +16 -0
  20. package/dist/client/4351.efe05af2.async.js +15 -0
  21. package/dist/client/4666.fb83d11a.async.js +9 -0
  22. package/dist/client/4727.0f6df8fb.async.js +1 -0
  23. package/dist/client/4750.044f647b.async.js +32 -0
  24. package/dist/client/4926.58238954.async.js +17 -0
  25. package/dist/client/5013.b14730ba.async.js +3 -0
  26. package/dist/client/5501.22d50b3a.async.js +23 -0
  27. package/dist/client/5662.8c643e63.async.js +26 -0
  28. package/dist/client/5950.179a885e.async.js +4 -0
  29. package/dist/client/6021.cdefa0d3.async.js +22 -0
  30. package/dist/client/645.ea6376fe.async.js +60 -0
  31. package/dist/client/6474.49632e37.async.js +21 -0
  32. package/dist/client/6534.6ea6468b.async.js +33 -0
  33. package/dist/client/6747.de538558.async.js +22 -0
  34. package/dist/client/689.4de33d65.async.js +3 -0
  35. package/dist/client/6920.497d7e80.async.js +59 -0
  36. package/dist/client/6939.d7d780b7.async.js +17 -0
  37. package/dist/client/6996.ae27c9d6.async.js +9 -0
  38. package/dist/client/703.20003a5c.async.js +17 -0
  39. package/dist/client/7087.5646e199.async.js +6 -0
  40. package/dist/client/7197.bb3092b2.async.js +35 -0
  41. package/dist/client/7482.3924bcd9.async.js +1 -0
  42. package/dist/client/7483.546ddcb6.async.js +23 -0
  43. package/dist/client/7534.0d69e071.async.js +34 -0
  44. package/dist/client/8183.4c6f7e21.async.js +12 -0
  45. package/dist/client/8408.c0ef773c.async.js +84 -0
  46. package/dist/client/8805.819c4f44.async.js +20 -0
  47. package/dist/client/9017.4ae5c322.async.js +6 -0
  48. package/dist/client/9042.3d21f631.async.js +45 -0
  49. package/dist/client/908.0e8c8a54.async.js +14 -0
  50. package/dist/client/9317.fe6ffa9a.async.js +13 -0
  51. package/dist/client/935.97d45ffa.async.js +27 -0
  52. package/dist/client/95.24aa76c4.async.js +6 -0
  53. package/dist/client/9547.a442df93.async.js +25 -0
  54. package/dist/client/9801.34b13a74.async.js +9 -0
  55. package/dist/client/9844.6f484975.async.js +37 -0
  56. package/dist/client/index.html +1 -1
  57. package/dist/client/index.html.tpl +1 -1
  58. package/dist/client/{npm._at_ant-design.0bc226be.async.js → npm._at_ant-design.c2d0554a.async.js} +1 -1
  59. package/dist/client/npm._at_babel.94b2dd75.async.js +3 -0
  60. package/dist/client/npm._at_floating-ui.c19fd4ef.async.js +1 -0
  61. package/dist/client/npm._at_rc-component.fcc6d966.async.js +8 -0
  62. package/dist/client/npm._at_react-spring.2682ca90.async.js +1 -0
  63. package/dist/client/{npm._at_umijs.47085d01.async.js → npm._at_umijs.f64c1387.async.js} +1 -1
  64. package/dist/client/npm._at_use-gesture.c2876964.async.js +1 -0
  65. package/dist/client/npm.ahooks.9a89c2a5.async.js +6 -0
  66. package/dist/client/npm.antd-mobile-icons.4b133b6b.async.js +1 -0
  67. package/dist/client/npm.antd-mobile.1a8a8320.async.js +2 -0
  68. package/dist/client/{npm.antd.8f85b075.async.js → npm.antd.acf65d87.async.js} +204 -204
  69. package/dist/client/npm.async-validator.32d9020f.async.js +12 -0
  70. package/dist/client/{npm.dayjs.772d2a39.async.js → npm.dayjs.549164ec.async.js} +1 -1
  71. package/dist/client/{npm.highlight.js.c1f693ec.async.js → npm.highlight.js.5db864c8.async.js} +2 -2
  72. package/dist/client/{npm.htmlparser2.a2f8d64d.async.js → npm.htmlparser2.ee1fb042.async.js} +1 -1
  73. package/dist/client/{npm.lodash.5dcc1c5e.async.js → npm.lodash.0ff318b3.async.js} +2 -2
  74. package/dist/client/npm.rc-cascader.641db835.async.js +4 -0
  75. package/dist/client/npm.rc-field-form.6a3cf561.async.js +1 -0
  76. package/dist/client/npm.rc-picker.baba6981.async.js +22 -0
  77. package/dist/client/npm.rc-table.ffbc8feb.async.js +22 -0
  78. package/dist/client/npm.rc-tree-select.866d1acb.async.js +5 -0
  79. package/dist/client/npm.rc-util.4aa445e4.async.js +35 -0
  80. package/dist/client/npm.unknown.1838c8f4.chunk.css +1 -0
  81. package/dist/client/p__index.1f505ad4.chunk.css +1 -0
  82. package/dist/client/p__index.b9cae597.async.js +2292 -0
  83. package/dist/client/{umi.ce574f8c.js → umi.ac3fde7d.js} +18 -18
  84. package/package.json +6 -6
  85. package/dist/client/1145.4029b0be.async.js +0 -3
  86. package/dist/client/1617.dd671a87.async.js +0 -6
  87. package/dist/client/1833.82373d30.async.js +0 -6
  88. package/dist/client/2134.1d86e440.async.js +0 -5
  89. package/dist/client/2498.be8b1194.async.js +0 -7
  90. package/dist/client/260.5b02a0a5.async.js +0 -4
  91. package/dist/client/2953.2e77d77c.async.js +0 -24
  92. package/dist/client/3130.8c624281.async.js +0 -35
  93. package/dist/client/3170.6147bd19.async.js +0 -24
  94. package/dist/client/3255.e6303833.async.js +0 -10
  95. package/dist/client/3520.81fd6362.async.js +0 -24
  96. package/dist/client/3522.674f2264.async.js +0 -4
  97. package/dist/client/4088.0568ef31.async.js +0 -5
  98. package/dist/client/4205.c3eac46d.async.js +0 -9
  99. package/dist/client/4644.ae01f8a6.async.js +0 -4
  100. package/dist/client/4666.d20ff352.async.js +0 -8
  101. package/dist/client/4840.477401f9.async.js +0 -8
  102. package/dist/client/5068.72e9d750.async.js +0 -5
  103. package/dist/client/5087.468f5500.async.js +0 -6
  104. package/dist/client/5950.b83f8586.async.js +0 -4
  105. package/dist/client/6416.361c93ff.async.js +0 -4
  106. package/dist/client/6472.ac05f778.async.js +0 -7
  107. package/dist/client/6779.47fc1971.async.js +0 -10
  108. package/dist/client/6816.1ff200ac.async.js +0 -5
  109. package/dist/client/6996.836a3f7f.async.js +0 -8
  110. package/dist/client/7463.70ca58ce.async.js +0 -20
  111. package/dist/client/7522.1f91be5c.async.js +0 -23
  112. package/dist/client/7596.232a7185.async.js +0 -10
  113. package/dist/client/7688.85d6d7bb.async.js +0 -4
  114. package/dist/client/8106.829fd6b5.async.js +0 -10
  115. package/dist/client/8541.e3110aaa.async.js +0 -8
  116. package/dist/client/9017.28eacc5a.async.js +0 -6
  117. package/dist/client/937.a55819ab.async.js +0 -5
  118. package/dist/client/9489.25ca39a9.async.js +0 -7
  119. package/dist/client/9663.c04b2ad1.async.js +0 -5
  120. package/dist/client/9729.0d7a5c47.async.js +0 -8
  121. package/dist/client/9848.18f8d3db.async.js +0 -4
  122. package/dist/client/npm._at_babel.aa6aa60c.async.js +0 -3
  123. package/dist/client/npm._at_rc-component.adfcb69e.async.js +0 -8
  124. package/dist/client/npm._at_react-spring.47360957.async.js +0 -1
  125. package/dist/client/npm._at_use-gesture.15164819.async.js +0 -1
  126. package/dist/client/npm.ahooks.7b545023.async.js +0 -6
  127. package/dist/client/npm.antd-mobile.9ba7b196.async.js +0 -1
  128. package/dist/client/npm.antd-style.f89528fc.async.js +0 -1
  129. package/dist/client/npm.babel-runtime.eed49798.async.js +0 -1
  130. package/dist/client/npm.rc-cascader.2d4909f4.async.js +0 -4
  131. package/dist/client/npm.rc-picker.c4dce7bc.async.js +0 -22
  132. package/dist/client/npm.rc-table.8e9124fe.async.js +0 -22
  133. package/dist/client/npm.rc-tree-select.c1fbaa19.async.js +0 -5
  134. package/dist/client/npm.rc-util.7f3dc7bf.async.js +0 -35
  135. package/dist/client/p__index.5eda2656.chunk.css +0 -1
  136. package/dist/client/p__index.751f234c.async.js +0 -2316
@@ -4,4 +4,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4
4
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ye(t,r){if(t){if(typeof t=="string")return xe(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xe(t,r)}}function Re(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function je(t){if(Array.isArray(t))return xe(t)}function xe(t,r){(r==null||r>t.length)&&(r=t.length);for(var n=0,o=new Array(r);n<r;n++)o[n]=t[n];return o}function Ie(t,r){if(t==null)return{};var n=De(t,r),o,f;if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(t);for(f=0;f<x.length;f++)o=x[f],!(r.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(n[o]=t[o])}return n}function De(t,r){if(t==null)return{};var n={},o=Object.keys(t),f,x;for(x=0;x<o.length;x++)f=o[x],!(r.indexOf(f)>=0)&&(n[f]=t[f]);return n}function we(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(f){return Object.getOwnPropertyDescriptor(t,f).enumerable})),n.push.apply(n,o)}return n}function H(t){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?we(Object(n),!0).forEach(function(o){Ne(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Ne(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var V="routes";function ce(t){return t.split("?")[0].split("#")[0]}var de=function(r){if(!r.startsWith("http"))return!1;try{var n=new URL(r);return!!n}catch{return!1}},Fe=function(r){var n=r.path;if(!n||n==="/")try{return"/".concat(N(JSON.stringify(r)))}catch{}return n&&ce(n)},Ce=function(r,n){var o=r.name,f=r.locale;return"locale"in r&&f===!1||!o?!1:r.locale||"".concat(n,".").concat(o)},Oe=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"/";return r.endsWith("/*")?r.replace("/*","/"):(r||n).startsWith("/")||de(r)?r:"/".concat(n,"/").concat(r).replace(/\/\//g,"/").replace(/\/\//g,"/")},We=function(r,n){var o=r.menu,f=o===void 0?{}:o,x=r.indexRoute,l=r.path,d=l===void 0?"":l,O=r.children||[],j=f.name,G=j===void 0?r.name:j,U=f.icon,W=U===void 0?r.icon:U,pe=f.hideChildren,Me=pe===void 0?r.hideChildren:pe,be=f.flatMenu,Pe=be===void 0?r.flatMenu:be,le=x&&Object.keys(x).join(",")!=="redirect"?[H({path:d,menu:f},x)].concat(O||[]):O,te=H({},r);if(G&&(te.name=G),W&&(te.icon=W),le&&le.length){if(Me)return delete te.children,te;var _e=he(H(H({},n),{},{data:le}),r);if(Pe)return _e;delete te[V]}return te},ee=function(r){return Array.isArray(r)&&r.length>0};function he(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{path:"/"},n=t.data,o=t.formatMessage,f=t.parentName,x=t.locale;return!n||!Array.isArray(n)?[]:n.filter(function(l){return l?ee(l.children)||l.path||l.originPath||l.layout?!0:(l.redirect||l.unaccessible,!1):!1}).filter(function(l){var d,O;return!(l==null||(d=l.menu)===null||d===void 0)&&d.name||l!=null&&l.flatMenu||!(l==null||(O=l.menu)===null||O===void 0)&&O.flatMenu?!0:l.menu!==!1}).map(function(l){var d=H(H({},l),{},{path:l.path||l.originPath});return!d.children&&d[V]&&(d.children=d[V],delete d[V]),d.unaccessible&&delete d.name,d.path==="*"&&(d.path="."),d.path==="/*"&&(d.path="."),!d.path&&d.originPath&&(d.path=d.originPath),d}).map(function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"},d=l.children||l[V]||[],O=Oe(l.path,r?r.path:"/"),j=l.name,G=Ce(l,f||"menu"),U=G!==!1&&x!==!1&&o&&G?o({id:G,defaultMessage:j}):j,W=r.pro_layout_parentKeys,pe=W===void 0?[]:W,Me=r.children,be=r.icon,Pe=r.flatMenu,le=r.indexRoute,te=r.routes,_e=Ie(r,I),Ae=new Set([].concat(ge(pe),ge(l.parentKeys||[])));r.key&&Ae.add(r.key);var re=H(H(H({},_e),{},{menu:void 0},l),{},{path:O,locale:G,key:l.key||Fe(H(H({},l),{},{path:O})),pro_layout_parentKeys:Array.from(Ae).filter(function(Ee){return Ee&&Ee!=="/"})});if(U?re.name=U:delete re.name,re.menu===void 0&&delete re.menu,ee(d)){var Se=he(H(H({},t),{},{data:d,parentName:G||""}),re);ee(Se)&&(re.children=Se)}return We(re,t)}).flat(1)}var Be=function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return r.filter(function(n){return n&&(n.name||ee(n.children))&&!n.hideInMenu&&!n.redirect}).map(function(n){var o=H({},n),f=o.children||n[V]||[];if(delete o[V],ee(f)&&!o.hideChildrenInMenu&&f.some(function(l){return l&&!!l.name})){var x=t(f);if(x.length)return H(H({},o),{},{children:x})}return H({},n)}).filter(function(n){return n})},He=function(t){ne(n,t);var r=Y(n);function n(){return M(this,n),r.apply(this,arguments)}return k(n,[{key:"get",value:function(f){var x;try{var l=J(this.entries()),d;try{for(l.s();!(d=l.n()).done;){var O=m(d.value,2),j=O[0],G=O[1],U=ce(j);if(!de(j)&&(0,i.Bo)(U,[]).test(f)){x=G;break}}}catch(W){l.e(W)}finally{l.f()}}catch{x=void 0}return x}}]),n}(X(Map)),Ke=function(r){var n=new He,o=function f(x,l){x.forEach(function(d){var O=d.children||d[V]||[];ee(O)&&f(O,d);var j=Oe(d.path,l?l.path:"/");n.set(ce(j),d)})};return o(r),n},$e=function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return r.map(function(n){var o=n.children||n[V];if(ee(o)){var f=t(o);if(f.length)return H({},n)}var x=H({},n);return delete x[V],delete x.children,x}).filter(function(n){return n})},Le=function(r,n,o,f){var x=he({data:r,formatMessage:o,locale:n}),l=f?$e(x):Be(x),d=Ke(x);return{breadcrumb:d,menuData:l}},Ue=Le;function me(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(f){return Object.getOwnPropertyDescriptor(t,f).enumerable})),n.push.apply(n,o)}return n}function se(t){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?me(Object(n),!0).forEach(function(o){ze(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):me(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function ze(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var Ge=function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n={};return r.forEach(function(o){var f=se({},o);if(!(!f||!f.key)){!f.children&&f[V]&&(f.children=f[V],delete f[V]);var x=f.children||[];n[ce(f.path||f.key||"/")]=se({},f),n[f.key||f.path||"/"]=se({},f),x&&(n=se(se({},n),t(x)))}}),n},Je=Ge,Qe=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return r.filter(function(f){if(f==="/"&&n==="/")return!0;if(f!=="/"&&f!=="/*"&&f&&!de(f)){var x=ce(f);try{if(o&&(0,i.Bo)("".concat(x)).test(n)||(0,i.Bo)("".concat(x),[]).test(n)||(0,i.Bo)("".concat(x,"/(.*)")).test(n))return!0}catch{}}return!1}).sort(function(f,x){return f===n?10:x===n?-10:f.substr(1).split("/").length-x.substr(1).split("/").length})},Ve=function(r,n,o,f){var x=Je(n),l=Object.keys(x),d=Qe(l,r||"/",f);return!d||d.length<1?[]:(o||(d=[d[d.length-1]]),d.map(function(O){var j=x[O]||{pro_layout_parentKeys:"",key:""},G=new Map,U=(j.pro_layout_parentKeys||[]).map(function(W){return G.has(W)?null:(G.set(W,!0),x[W])}).filter(function(W){return W});return j.key&&U.push(j),U}).flat(1))},Xe=Ve},47930:function(e,v){var a;function i(h){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},i(h)}a={value:!0},v.Bo=a=a=a=a=a=a=void 0;function c(h){for(var b=[],y=0;y<h.length;){var A=h[y];if(A==="*"||A==="+"||A==="?"){b.push({type:"MODIFIER",index:y,value:h[y++]});continue}if(A==="\\"){b.push({type:"ESCAPED_CHAR",index:y++,value:h[y++]});continue}if(A==="{"){b.push({type:"OPEN",index:y,value:h[y++]});continue}if(A==="}"){b.push({type:"CLOSE",index:y,value:h[y++]});continue}if(A===":"){for(var $="",P=y+1;P<h.length;){var T=h.charCodeAt(P);if(T>=48&&T<=57||T>=65&&T<=90||T>=97&&T<=122||T===95){$+=h[P++];continue}break}if(!$)throw new TypeError("Missing parameter name at "+y);b.push({type:"NAME",index:y,value:$}),y=P;continue}if(A==="("){var z=1,N="",P=y+1;if(h[P]==="?")throw new TypeError('Pattern cannot start with "?" at '+P);for(;P<h.length;){if(h[P]==="\\"){N+=h[P++]+h[P++];continue}if(h[P]===")"){if(z--,z===0){P++;break}}else if(h[P]==="("&&(z++,h[P+1]!=="?"))throw new TypeError("Capturing groups are not allowed at "+P);N+=h[P++]}if(z)throw new TypeError("Unbalanced pattern at "+y);if(!N)throw new TypeError("Missing pattern at "+y);b.push({type:"PATTERN",index:y,value:N}),y=P;continue}b.push({type:"CHAR",index:y,value:h[y++]})}return b.push({type:"END",index:y,value:""}),b}function u(h,b){b===void 0&&(b={});for(var y=c(h),A=b.prefixes,$=A===void 0?"./":A,P="[^"+S(b.delimiter||"/#?")+"]+?",T=[],z=0,N=0,F="",I=function(X){if(N<y.length&&y[N].type===X)return y[N++].value},m=function(X){var Z=I(X);if(Z!==void 0)return Z;var ie=y[N],ve=ie.type,q=ie.index;throw new TypeError("Unexpected "+ve+" at "+q+", expected "+X)},L=function(){for(var X="",Z;Z=I("CHAR")||I("ESCAPED_CHAR");)X+=Z;return X};N<y.length;){var C=I("CHAR"),B=I("NAME"),J=I("PATTERN");if(B||J){var M=C||"";$.indexOf(M)===-1&&(F+=M,M=""),F&&(T.push(F),F=""),T.push({name:B||z++,prefix:M,suffix:"",pattern:J||P,modifier:I("MODIFIER")||""});continue}var Q=C||I("ESCAPED_CHAR");if(Q){F+=Q;continue}F&&(T.push(F),F="");var k=I("OPEN");if(k){var M=L(),ne=I("NAME")||"",Y=I("PATTERN")||"",ue=L();m("CLOSE"),T.push({name:ne||(Y?z++:""),pattern:ne&&!Y?P:Y,prefix:M,suffix:ue,modifier:I("MODIFIER")||""});continue}m("END")}return T}a=u;function s(h,b){return p(u(h,b),b)}a=s;function p(h,b){b===void 0&&(b={});var y=E(b),A=b.encode,$=A===void 0?function(N){return N}:A,P=b.validate,T=P===void 0?!0:P,z=h.map(function(N){if(i(N)==="object")return new RegExp("^(?:"+N.pattern+")$",y)});return function(N){for(var F="",I=0;I<h.length;I++){var m=h[I];if(typeof m=="string"){F+=m;continue}var L=N?N[m.name]:void 0,C=m.modifier==="?"||m.modifier==="*",B=m.modifier==="*"||m.modifier==="+";if(Array.isArray(L)){if(!B)throw new TypeError('Expected "'+m.name+'" to not repeat, but got an array');if(L.length===0){if(C)continue;throw new TypeError('Expected "'+m.name+'" to not be empty')}for(var J=0;J<L.length;J++){var M=$(L[J],m);if(T&&!z[I].test(M))throw new TypeError('Expected all "'+m.name+'" to match "'+m.pattern+'", but got "'+M+'"');F+=m.prefix+M+m.suffix}continue}if(typeof L=="string"||typeof L=="number"){var M=$(String(L),m);if(T&&!z[I].test(M))throw new TypeError('Expected "'+m.name+'" to match "'+m.pattern+'", but got "'+M+'"');F+=m.prefix+M+m.suffix;continue}if(!C){var Q=B?"an array":"a string";throw new TypeError('Expected "'+m.name+'" to be '+Q)}}return F}}a=p;function _(h,b){var y=[],A=oe(h,y,b);return w(A,y,b)}a=_;function w(h,b,y){y===void 0&&(y={});var A=y.decode,$=A===void 0?function(P){return P}:A;return function(P){var T=h.exec(P);if(!T)return!1;for(var z=T[0],N=T.index,F=Object.create(null),I=function(C){if(T[C]===void 0)return"continue";var B=b[C-1];B.modifier==="*"||B.modifier==="+"?F[B.name]=T[C].split(B.prefix+B.suffix).map(function(J){return $(J,B)}):F[B.name]=$(T[C],B)},m=1;m<T.length;m++)I(m);return{path:z,index:N,params:F}}}a=w;function S(h){return h.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function E(h){return h&&h.sensitive?"":"i"}function K(h,b){if(!b)return h;var y=h.source.match(/\((?!\?)/g);if(y)for(var A=0;A<y.length;A++)b.push({name:A,prefix:"",suffix:"",modifier:"",pattern:""});return h}function g(h,b,y){var A=h.map(function($){return oe($,b,y).source});return new RegExp("(?:"+A.join("|")+")",E(y))}function R(h,b,y){return D(u(h,y),b,y)}function D(h,b,y){y===void 0&&(y={});for(var A=y.strict,$=A===void 0?!1:A,P=y.start,T=P===void 0?!0:P,z=y.end,N=z===void 0?!0:z,F=y.encode,I=F===void 0?function(ae){return ae}:F,m="["+S(y.endsWith||"")+"]|$",L="["+S(y.delimiter||"/#?")+"]",C=T?"^":"",B=0,J=h;B<J.length;B++){var M=J[B];if(typeof M=="string")C+=S(I(M));else{var Q=S(I(M.prefix)),k=S(I(M.suffix));if(M.pattern)if(b&&b.push(M),Q||k)if(M.modifier==="+"||M.modifier==="*"){var ne=M.modifier==="*"?"?":"";C+="(?:"+Q+"((?:"+M.pattern+")(?:"+k+Q+"(?:"+M.pattern+"))*)"+k+")"+ne}else C+="(?:"+Q+"("+M.pattern+")"+k+")"+M.modifier;else C+="("+M.pattern+")"+M.modifier;else C+="(?:"+Q+k+")"+M.modifier}}if(N)$||(C+=L+"?"),C+=y.endsWith?"(?="+m+")":"$";else{var Y=h[h.length-1],ue=typeof Y=="string"?L.indexOf(Y[Y.length-1])>-1:Y===void 0;$||(C+="(?:"+L+"(?="+m+"))?"),ue||(C+="(?="+L+"|"+m+")")}return new RegExp(C,E(y))}a=D;function oe(h,b,y){return h instanceof RegExp?K(h,b):Array.isArray(h)?g(h,b,y):R(h,b,y)}v.Bo=oe},37923:function(e){function v(a,i){(i==null||i>a.length)&&(i=a.length);for(var c=0,u=new Array(i);c<i;c++)u[c]=a[c];return u}e.exports=v,e.exports.__esModule=!0,e.exports.default=e.exports},82187:function(e){function v(a){if(Array.isArray(a))return a}e.exports=v,e.exports.__esModule=!0,e.exports.default=e.exports},96446:function(e,v,a){var i=a(37923);function c(u){if(Array.isArray(u))return i(u)}e.exports=c,e.exports.__esModule=!0,e.exports.default=e.exports},25098:function(e){function v(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}e.exports=v,e.exports.__esModule=!0,e.exports.default=e.exports},44987:function(e){function v(i){var c,u,s,p=2;for(typeof Symbol<"u"&&(u=Symbol.asyncIterator,s=Symbol.iterator);p--;){if(u&&(c=i[u])!=null)return c.call(i);if(s&&(c=i[s])!=null)return new a(c.call(i));u="@@asyncIterator",s="@@iterator"}throw new TypeError("Object is not async iterable")}function a(i){function c(u){if(Object(u)!==u)return Promise.reject(new TypeError(u+" is not an object."));var s=u.done;return Promise.resolve(u.value).then(function(p){return{value:p,done:s}})}return a=function(s){this.s=s,this.n=s.next},a.prototype={s:null,n:null,next:function(){return c(this.n.apply(this.s,arguments))},return:function(s){var p=this.s.return;return p===void 0?Promise.resolve({value:s,done:!0}):c(p.apply(this.s,arguments))},throw:function(s){var p=this.s.return;return p===void 0?Promise.reject(s):c(p.apply(this.s,arguments))}},new a(i)}e.exports=v,e.exports.__esModule=!0,e.exports.default=e.exports},97235:function(e){function v(a,i){if(i.has(a))throw new TypeError("Cannot initialize the same private elements twice on an object")}e.exports=v,e.exports.__esModule=!0,e.exports.default=e.exports},28771:function(e){function v(a,i){return i.get?i.get.call(a):i.value}e.exports=v,e.exports.__esModule=!0,e.exports.default=e.exports},40008:function(e){function v(a,i,c){if(i.set)i.set.call(a,c);else{if(!i.writable)throw new TypeError("attempted to set read only private field");i.value=c}}e.exports=v,e.exports.__esModule=!0,e.exports.default=e.exports},12444:function(e){function v(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}e.exports=v,e.exports.__esModule=!0,e.exports.default=e.exports},56194:function(e){function v(a,i,c){if(!i.has(a))throw new TypeError("attempted to "+c+" private field on non-instance");return i.get(a)}e.exports=v,e.exports.__esModule=!0,e.exports.default=e.exports},33862:function(e,v,a){var i=a(28771),c=a(56194);function u(s,p){var _=c(s,p,"get");return i(s,_)}e.exports=u,e.exports.__esModule=!0,e.exports.default=e.exports},29777:function(e,v,a){var i=a(97235);function c(u,s,p){i(u,s),s.set(u,p)}e.exports=c,e.exports.__esModule=!0,e.exports.default=e.exports},25457:function(e,v,a){var i=a(40008),c=a(56194);function u(s,p,_){var w=c(s,p,"set");return i(s,w,_),_}e.exports=u,e.exports.__esModule=!0,e.exports.default=e.exports},74978:function(e){function v(a,i,c){if(!i.has(a))throw new TypeError("attempted to get private field on non-instance");return c}e.exports=v,e.exports.__esModule=!0,e.exports.default=e.exports},73190:function(e,v,a){var i=a(97235);function c(u,s){i(u,s),s.add(u)}e.exports=c,e.exports.__esModule=!0,e.exports.default=e.exports},42672:function(e,v,a){var i=a(21314),c=a(21771);function u(s,p,_){return c()?(e.exports=u=Reflect.construct.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=u=function(S,E,K){var g=[null];g.push.apply(g,E);var R=Function.bind.apply(S,g),D=new R;return K&&i(D,K.prototype),D},e.exports.__esModule=!0,e.exports.default=e.exports),u.apply(null,arguments)}e.exports=u,e.exports.__esModule=!0,e.exports.default=e.exports},72004:function(e,v,a){var i=a(51883);function c(s,p){for(var _=0;_<p.length;_++){var w=p[_];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(s,i(w.key),w)}}function u(s,p,_){return p&&c(s.prototype,p),_&&c(s,_),Object.defineProperty(s,"prototype",{writable:!1}),s}e.exports=u,e.exports.__esModule=!0,e.exports.default=e.exports},96695:function(e,v,a){var i=a(96263);function c(u,s){var p=typeof Symbol<"u"&&u[Symbol.iterator]||u["@@iterator"];if(!p){if(Array.isArray(u)||(p=i(u))||s&&u&&typeof u.length=="number"){p&&(u=p);var _=0,w=function(){};return{s:w,n:function(){return _>=u.length?{done:!0}:{done:!1,value:u[_++]}},e:function(R){throw R},f:w}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
5
5
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var S=!0,E=!1,K;return{s:function(){p=p.call(u)},n:function(){var R=p.next();return S=R.done,R},e:function(R){E=!0,K=R},f:function(){try{!S&&p.return!=null&&p.return()}finally{if(E)throw K}}}}e.exports=c,e.exports.__esModule=!0,e.exports.default=e.exports},26037:function(e,v,a){var i=a(48374),c=a(21771),u=a(73408);function s(p){var _=c();return function(){var S=i(p),E;if(_){var K=i(this).constructor;E=Reflect.construct(S,arguments,K)}else E=S.apply(this,arguments);return u(this,E)}}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports},28785:function(e,v,a){var i=a(70426);function c(){return typeof Reflect<"u"&&Reflect.get?(e.exports=c=Reflect.get.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=c=function(s,p,_){var w=i(s,p);if(w){var S=Object.getOwnPropertyDescriptor(w,p);return S.get?S.get.call(arguments.length<3?s:_):S.value}},e.exports.__esModule=!0,e.exports.default=e.exports),c.apply(this,arguments)}e.exports=c,e.exports.__esModule=!0,e.exports.default=e.exports},48374:function(e){function v(a){return e.exports=v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(c){return c.__proto__||Object.getPrototypeOf(c)},e.exports.__esModule=!0,e.exports.default=e.exports,v(a)}e.exports=v,e.exports.__esModule=!0,e.exports.default=e.exports},31996:function(e,v,a){var i=a(21314);function c(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(s&&s.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),Object.defineProperty(u,"prototype",{writable:!1}),s&&i(u,s)}e.exports=c,e.exports.__esModule=!0,e.exports.default=e.exports},15143:function(e){function v(a){try{return Function.toString.call(a).indexOf("[native code]")!==-1}catch{return typeof a=="function"}}e.exports=v,e.exports.__esModule=!0,e.exports.default=e.exports},21771:function(e){function v(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}e.exports=v,e.exports.__esModule=!0,e.exports.default=e.exports},96936:function(e){function v(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}e.exports=v,e.exports.__esModule=!0,e.exports.default=e.exports},73964:function(e){function v(a,i){var c=a==null?null:typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(c!=null){var u,s,p,_,w=[],S=!0,E=!1;try{if(p=(c=c.call(a)).next,i===0){if(Object(c)!==c)return;S=!1}else for(;!(S=(u=p.call(c)).done)&&(w.push(u.value),w.length!==i);S=!0);}catch(K){E=!0,s=K}finally{try{if(!S&&c.return!=null&&(_=c.return(),Object(_)!==_))return}finally{if(E)throw s}}return w}}e.exports=v,e.exports.__esModule=!0,e.exports.default=e.exports},69094:function(e){function v(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
6
6
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=v,e.exports.__esModule=!0,e.exports.default=e.exports},88619:function(e){function v(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
7
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=v,e.exports.__esModule=!0,e.exports.default=e.exports},49677:function(e){function v(a){if(a==null)throw new TypeError("Cannot destructure "+a)}e.exports=v,e.exports.__esModule=!0,e.exports.default=e.exports},13769:function(e,v,a){var i=a(48541);function c(u,s){if(u==null)return{};var p=i(u,s),_,w;if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(u);for(w=0;w<S.length;w++)_=S[w],!(s.indexOf(_)>=0)&&Object.prototype.propertyIsEnumerable.call(u,_)&&(p[_]=u[_])}return p}e.exports=c,e.exports.__esModule=!0,e.exports.default=e.exports},48541:function(e){function v(a,i){if(a==null)return{};var c={},u=Object.keys(a),s,p;for(p=0;p<u.length;p++)s=u[p],!(i.indexOf(s)>=0)&&(c[s]=a[s]);return c}e.exports=v,e.exports.__esModule=!0,e.exports.default=e.exports},73408:function(e,v,a){var i=a(52677).default,c=a(25098);function u(s,p){if(p&&(i(p)==="object"||typeof p=="function"))return p;if(p!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return c(s)}e.exports=u,e.exports.__esModule=!0,e.exports.default=e.exports},21314:function(e){function v(a,i){return e.exports=v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,s){return u.__proto__=s,u},e.exports.__esModule=!0,e.exports.default=e.exports,v(a,i)}e.exports=v,e.exports.__esModule=!0,e.exports.default=e.exports},5574:function(e,v,a){var i=a(82187),c=a(73964),u=a(96263),s=a(69094);function p(_,w){return i(_)||c(_,w)||u(_,w)||s()}e.exports=p,e.exports.__esModule=!0,e.exports.default=e.exports},70426:function(e,v,a){var i=a(48374);function c(u,s){for(;!Object.prototype.hasOwnProperty.call(u,s)&&(u=i(u),u!==null););return u}e.exports=c,e.exports.__esModule=!0,e.exports.default=e.exports},68400:function(e){function v(a,i){return i||(i=a.slice(0)),Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(i)}}))}e.exports=v,e.exports.__esModule=!0,e.exports.default=e.exports},61227:function(e,v,a){var i=a(82187),c=a(96936),u=a(96263),s=a(69094);function p(_){return i(_)||c(_)||u(_)||s()}e.exports=p,e.exports.__esModule=!0,e.exports.default=e.exports},19632:function(e,v,a){var i=a(96446),c=a(96936),u=a(96263),s=a(88619);function p(_){return i(_)||c(_)||u(_)||s()}e.exports=p,e.exports.__esModule=!0,e.exports.default=e.exports},96263:function(e,v,a){var i=a(37923);function c(u,s){if(u){if(typeof u=="string")return i(u,s);var p=Object.prototype.toString.call(u).slice(8,-1);if(p==="Object"&&u.constructor&&(p=u.constructor.name),p==="Map"||p==="Set")return Array.from(u);if(p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p))return i(u,s)}}e.exports=c,e.exports.__esModule=!0,e.exports.default=e.exports},12665:function(e,v,a){var i=a(48374),c=a(21314),u=a(15143),s=a(42672);function p(_){var w=typeof Map=="function"?new Map:void 0;return e.exports=p=function(E){if(E===null||!u(E))return E;if(typeof E!="function")throw new TypeError("Super expression must either be null or a function");if(typeof w<"u"){if(w.has(E))return w.get(E);w.set(E,K)}function K(){return s(E,arguments,i(this).constructor)}return K.prototype=Object.create(E.prototype,{constructor:{value:K,enumerable:!1,writable:!0,configurable:!0}}),c(K,E)},e.exports.__esModule=!0,e.exports.default=e.exports,p(_)}e.exports=p,e.exports.__esModule=!0,e.exports.default=e.exports}}]);
7
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=v,e.exports.__esModule=!0,e.exports.default=e.exports},13769:function(e,v,a){var i=a(48541);function c(u,s){if(u==null)return{};var p=i(u,s),_,w;if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(u);for(w=0;w<S.length;w++)_=S[w],!(s.indexOf(_)>=0)&&Object.prototype.propertyIsEnumerable.call(u,_)&&(p[_]=u[_])}return p}e.exports=c,e.exports.__esModule=!0,e.exports.default=e.exports},48541:function(e){function v(a,i){if(a==null)return{};var c={},u=Object.keys(a),s,p;for(p=0;p<u.length;p++)s=u[p],!(i.indexOf(s)>=0)&&(c[s]=a[s]);return c}e.exports=v,e.exports.__esModule=!0,e.exports.default=e.exports},73408:function(e,v,a){var i=a(52677).default,c=a(25098);function u(s,p){if(p&&(i(p)==="object"||typeof p=="function"))return p;if(p!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return c(s)}e.exports=u,e.exports.__esModule=!0,e.exports.default=e.exports},21314:function(e){function v(a,i){return e.exports=v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,s){return u.__proto__=s,u},e.exports.__esModule=!0,e.exports.default=e.exports,v(a,i)}e.exports=v,e.exports.__esModule=!0,e.exports.default=e.exports},5574:function(e,v,a){var i=a(82187),c=a(73964),u=a(96263),s=a(69094);function p(_,w){return i(_)||c(_,w)||u(_,w)||s()}e.exports=p,e.exports.__esModule=!0,e.exports.default=e.exports},70426:function(e,v,a){var i=a(48374);function c(u,s){for(;!Object.prototype.hasOwnProperty.call(u,s)&&(u=i(u),u!==null););return u}e.exports=c,e.exports.__esModule=!0,e.exports.default=e.exports},68400:function(e){function v(a,i){return i||(i=a.slice(0)),Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(i)}}))}e.exports=v,e.exports.__esModule=!0,e.exports.default=e.exports},61227:function(e,v,a){var i=a(82187),c=a(96936),u=a(96263),s=a(69094);function p(_){return i(_)||c(_)||u(_)||s()}e.exports=p,e.exports.__esModule=!0,e.exports.default=e.exports},19632:function(e,v,a){var i=a(96446),c=a(96936),u=a(96263),s=a(88619);function p(_){return i(_)||c(_)||u(_)||s()}e.exports=p,e.exports.__esModule=!0,e.exports.default=e.exports},96263:function(e,v,a){var i=a(37923);function c(u,s){if(u){if(typeof u=="string")return i(u,s);var p=Object.prototype.toString.call(u).slice(8,-1);if(p==="Object"&&u.constructor&&(p=u.constructor.name),p==="Map"||p==="Set")return Array.from(u);if(p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p))return i(u,s)}}e.exports=c,e.exports.__esModule=!0,e.exports.default=e.exports},12665:function(e,v,a){var i=a(48374),c=a(21314),u=a(15143),s=a(42672);function p(_){var w=typeof Map=="function"?new Map:void 0;return e.exports=p=function(E){if(E===null||!u(E))return E;if(typeof E!="function")throw new TypeError("Super expression must either be null or a function");if(typeof w<"u"){if(w.has(E))return w.get(E);w.set(E,K)}function K(){return s(E,arguments,i(this).constructor)}return K.prototype=Object.create(E.prototype,{constructor:{value:K,enumerable:!1,writable:!0,configurable:!0}}),c(K,E)},e.exports.__esModule=!0,e.exports.default=e.exports,p(_)}e.exports=p,e.exports.__esModule=!0,e.exports.default=e.exports}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[2319],{55074:function(yt,F,R){R.d(F,{C:function(){return vt},E:function(){return _t},S:function(){return S},_:function(){return _},a:function(){return T},b:function(){return ht},c:function(){return E},d:function(){return it},e:function(){return $t},f:function(){return Jt},i:function(){return A},p:function(){return D},r:function(){return zt},t:function(){return rt},w:function(){return Qt}});function f(s,t,e){return Math.max(t,Math.min(s,e))}const d={toVector(s,t){return s===void 0&&(s=t),Array.isArray(s)?s:[s,s]},add(s,t){return[s[0]+t[0],s[1]+t[1]]},sub(s,t){return[s[0]-t[0],s[1]-t[1]]},addTo(s,t){s[0]+=t[0],s[1]+=t[1]},subTo(s,t){s[0]-=t[0],s[1]-=t[1]}};function Y(s,t,e){return t===0||Math.abs(t)===1/0?Math.pow(s,e*5):s*t*e/(t+e*s)}function G(s,t,e,i=.15){return i===0?f(s,t,e):s<t?-Y(t-s,e-t,i)+t:s>e?+Y(s-e,e-t,i)+e:s}function tt(s,[t,e],[i,o]){const[[h,p],[b,k]]=s;return[G(t,h,p,i),G(e,b,k,o)]}function et(s,t){if(typeof s!="object"||s===null)return s;var e=s[Symbol.toPrimitive];if(e!==void 0){var i=e.call(s,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(s)}function M(s){var t=et(s,"string");return typeof t=="symbol"?t:String(t)}function T(s,t,e){return t=M(t),t in s?Object.defineProperty(s,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):s[t]=e,s}function K(s,t){var e=Object.keys(s);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(s);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(s,o).enumerable})),e.push.apply(e,i)}return e}function _(s){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?K(Object(e),!0).forEach(function(i){T(s,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(e)):K(Object(e)).forEach(function(i){Object.defineProperty(s,i,Object.getOwnPropertyDescriptor(e,i))})}return s}const N={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function I(s){return s?s[0].toUpperCase()+s.slice(1):""}const st=["enter","leave"];function W(s=!1,t){return s&&!st.includes(t)}function it(s,t="",e=!1){const i=N[s],o=i&&i[t]||t;return"on"+I(s)+I(o)+(W(e,o)?"Capture":"")}const nt=["gotpointercapture","lostpointercapture"];function D(s){let t=s.substring(2).toLowerCase();const e=!!~t.indexOf("passive");e&&(t=t.replace("passive",""));const i=nt.includes(t)?"capturecapture":"capture",o=!!~t.indexOf(i);return o&&(t=t.replace("capture","")),{device:t,capture:o,passive:e}}function rt(s,t=""){const e=N[s],i=e&&e[t]||t;return s+i}function A(s){return"touches"in s}function X(s){return A(s)?"touch":"pointerType"in s?s.pointerType:"mouse"}function ut(s){return Array.from(s.touches).filter(t=>{var e,i;return t.target===s.currentTarget||((e=s.currentTarget)===null||e===void 0||(i=e.contains)===null||i===void 0?void 0:i.call(e,t.target))})}function ot(s){return s.type==="touchend"||s.type==="touchcancel"?s.changedTouches:s.targetTouches}function at(s){return A(s)?ot(s)[0]:s}function z(s,t){try{const e=t.clientX-s.clientX,i=t.clientY-s.clientY,o=(t.clientX+s.clientX)/2,h=(t.clientY+s.clientY)/2,p=Math.hypot(e,i);return{angle:-(Math.atan2(e,i)*180)/Math.PI,distance:p,origin:[o,h]}}catch{}return null}function ht(s){return ut(s).map(t=>t.identifier)}function V(s,t){const[e,i]=Array.from(s.touches).filter(o=>t.includes(o.identifier));return z(e,i)}function $(s){const t=at(s);return A(s)?t.identifier:t.pointerId}function r(s){const t=at(s);return[t.clientX,t.clientY]}const n=40,a=800;function u(s){let{deltaX:t,deltaY:e,deltaMode:i}=s;return i===1?(t*=n,e*=n):i===2&&(t*=a,e*=a),[t,e]}function c(s){var t,e;const{scrollX:i,scrollY:o,scrollLeft:h,scrollTop:p}=s.currentTarget;return[(t=i??h)!==null&&t!==void 0?t:0,(e=o??p)!==null&&e!==void 0?e:0]}function l(s){const t={};if("buttons"in s&&(t.buttons=s.buttons),"shiftKey"in s){const{shiftKey:e,altKey:i,metaKey:o,ctrlKey:h}=s;Object.assign(t,{shiftKey:e,altKey:i,metaKey:o,ctrlKey:h})}return t}function m(s,...t){return typeof s=="function"?s(...t):s}function y(){}function E(...s){return s.length===0?y:s.length===1?s[0]:function(){let t;for(const e of s)t=e.apply(this,arguments)||t;return t}}function g(s,t){return Object.assign({},t,s||{})}const w=32;class O{constructor(t,e,i){this.ctrl=t,this.args=e,this.key=i,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(t){this.ctrl.state[this.key]=t}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:t,shared:e,ingKey:i,args:o}=this;e[i]=t._active=t.active=t._blocked=t._force=!1,t._step=[!1,!1],t.intentional=!1,t._movement=[0,0],t._distance=[0,0],t._direction=[0,0],t._delta=[0,0],t._bounds=[[-1/0,1/0],[-1/0,1/0]],t.args=o,t.axis=void 0,t.memo=void 0,t.elapsedTime=t.timeDelta=0,t.direction=[0,0],t.distance=[0,0],t.overflow=[0,0],t._movementBound=[!1,!1],t.velocity=[0,0],t.movement=[0,0],t.delta=[0,0],t.timeStamp=0}start(t){const e=this.state,i=this.config;e._active||(this.reset(),this.computeInitial(),e._active=!0,e.target=t.target,e.currentTarget=t.currentTarget,e.lastOffset=i.from?m(i.from,e):e.offset,e.offset=e.lastOffset,e.startTime=e.timeStamp=t.timeStamp)}computeValues(t){const e=this.state;e._values=t,e.values=this.config.transform(t)}computeInitial(){const t=this.state;t._initial=t._values,t.initial=t.values}compute(t){const{state:e,config:i,shared:o}=this;e.args=this.args;let h=0;if(t&&(e.event=t,i.preventDefault&&t.cancelable&&e.event.preventDefault(),e.type=t.type,o.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,o.locked=!!document.pointerLockElement,Object.assign(o,l(t)),o.down=o.pressed=o.buttons%2===1||o.touches>0,h=t.timeStamp-e.timeStamp,e.timeStamp=t.timeStamp,e.elapsedTime=e.timeStamp-e.startTime),e._active){const P=e._delta.map(Math.abs);d.addTo(e._distance,P)}this.axisIntent&&this.axisIntent(t);const[p,b]=e._movement,[k,U]=i.threshold,{_step:v,values:H}=e;if(i.hasCustomTransform?(v[0]===!1&&(v[0]=Math.abs(p)>=k&&H[0]),v[1]===!1&&(v[1]=Math.abs(b)>=U&&H[1])):(v[0]===!1&&(v[0]=Math.abs(p)>=k&&Math.sign(p)*k),v[1]===!1&&(v[1]=Math.abs(b)>=U&&Math.sign(b)*U)),e.intentional=v[0]!==!1||v[1]!==!1,!e.intentional)return;const x=[0,0];if(i.hasCustomTransform){const[P,ee]=H;x[0]=v[0]!==!1?P-v[0]:0,x[1]=v[1]!==!1?ee-v[1]:0}else x[0]=v[0]!==!1?p-v[0]:0,x[1]=v[1]!==!1?b-v[1]:0;this.restrictToAxis&&!e._blocked&&this.restrictToAxis(x);const J=e.offset,Q=e._active&&!e._blocked||e.active;Q&&(e.first=e._active&&!e.active,e.last=!e._active&&e.active,e.active=o[this.ingKey]=e._active,t&&(e.first&&("bounds"in i&&(e._bounds=m(i.bounds,e)),this.setup&&this.setup()),e.movement=x,this.computeOffset()));const[Z,q]=e.offset,[[ct,Zt],[qt,Ft]]=e._bounds;e.overflow=[Z<ct?-1:Z>Zt?1:0,q<qt?-1:q>Ft?1:0],e._movementBound[0]=e.overflow[0]?e._movementBound[0]===!1?e._movement[0]:e._movementBound[0]:!1,e._movementBound[1]=e.overflow[1]?e._movementBound[1]===!1?e._movement[1]:e._movementBound[1]:!1;const te=e._active?i.rubberband||[0,0]:[0,0];if(e.offset=tt(e._bounds,e.offset,te),e.delta=d.sub(e.offset,J),this.computeMovement(),Q&&(!e.last||h>w)){e.delta=d.sub(e.offset,J);const P=e.delta.map(Math.abs);d.addTo(e.distance,P),e.direction=e.delta.map(Math.sign),e._direction=e._delta.map(Math.sign),!e.first&&h>0&&(e.velocity=[P[0]/h,P[1]/h],e.timeDelta=h)}}emit(){const t=this.state,e=this.shared,i=this.config;if(t._active||this.clean(),(t._blocked||!t.intentional)&&!t._force&&!i.triggerAllEvents)return;const o=this.handler(_(_(_({},e),t),{},{[this.aliasKey]:t.values}));o!==void 0&&(t.memo=o)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function L([s,t],e){const i=Math.abs(s),o=Math.abs(t);if(i>o&&i>e)return"x";if(o>i&&o>e)return"y"}class B extends O{constructor(...t){super(...t),T(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=d.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=d.sub(this.state.offset,this.state.lastOffset)}axisIntent(t){const e=this.state,i=this.config;if(!e.axis&&t){const o=typeof i.axisThreshold=="object"?i.axisThreshold[X(t)]:i.axisThreshold;e.axis=L(e._movement,o)}e._blocked=(i.lockDirection||!!i.axis)&&!e.axis||!!i.axis&&i.axis!==e.axis}restrictToAxis(t){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":t[1]=0;break;case"y":t[0]=0;break}}}const bt=s=>s,lt=.15,ft={enabled(s=!0){return s},eventOptions(s,t,e){return _(_({},e.shared.eventOptions),s)},preventDefault(s=!1){return s},triggerAllEvents(s=!1){return s},rubberband(s=0){switch(s){case!0:return[lt,lt];case!1:return[0,0];default:return d.toVector(s)}},from(s){if(typeof s=="function")return s;if(s!=null)return d.toVector(s)},transform(s,t,e){const i=s||e.shared.transform;return this.hasCustomTransform=!!i,i||bt},threshold(s){return d.toVector(s,0)}},wt=0,C=_(_({},ft),{},{axis(s,t,{axis:e}){if(this.lockDirection=e==="lock",!this.lockDirection)return e},axisThreshold(s=wt){return s},bounds(s={}){if(typeof s=="function")return h=>C.bounds(s(h));if("current"in s)return()=>s.current;if(typeof HTMLElement=="function"&&s instanceof HTMLElement)return s;const{left:t=-1/0,right:e=1/0,top:i=-1/0,bottom:o=1/0}=s;return[[t,e],[i,o]]}}),dt={ArrowRight:(s,t=1)=>[s*t,0],ArrowLeft:(s,t=1)=>[-1*s*t,0],ArrowUp:(s,t=1)=>[0,-1*s*t],ArrowDown:(s,t=1)=>[0,s*t]};class Et extends B{constructor(...t){super(...t),T(this,"ingKey","dragging")}reset(){super.reset();const t=this.state;t._pointerId=void 0,t._pointerActive=!1,t._keyboardActive=!1,t._preventScroll=!1,t._delayed=!1,t.swipe=[0,0],t.tap=!1,t.canceled=!1,t.cancel=this.cancel.bind(this)}setup(){const t=this.state;if(t._bounds instanceof HTMLElement){const e=t._bounds.getBoundingClientRect(),i=t.currentTarget.getBoundingClientRect(),o={left:e.left-i.left+t.offset[0],right:e.right-i.right+t.offset[0],top:e.top-i.top+t.offset[1],bottom:e.bottom-i.bottom+t.offset[1]};t._bounds=C.bounds(o)}}cancel(){const t=this.state;t.canceled||(t.canceled=!0,t._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(t){const e=this.config,i=this.state;if(t.buttons!=null&&(Array.isArray(e.pointerButtons)?!e.pointerButtons.includes(t.buttons):e.pointerButtons!==-1&&e.pointerButtons!==t.buttons))return;const o=this.ctrl.setEventIds(t);e.pointerCapture&&t.target.setPointerCapture(t.pointerId),!(o&&o.size>1&&i._pointerActive)&&(this.start(t),this.setupPointer(t),i._pointerId=$(t),i._pointerActive=!0,this.computeValues(r(t)),this.computeInitial(),e.preventScrollAxis&&X(t)!=="mouse"?(i._active=!1,this.setupScrollPrevention(t)):e.delay>0?(this.setupDelayTrigger(t),e.triggerAllEvents&&(this.compute(t),this.emit())):this.startPointerDrag(t))}startPointerDrag(t){const e=this.state;e._active=!0,e._preventScroll=!0,e._delayed=!1,this.compute(t),this.emit()}pointerMove(t){const e=this.state,i=this.config;if(!e._pointerActive)return;const o=$(t);if(e._pointerId!==void 0&&o!==e._pointerId)return;const h=r(t);if(document.pointerLockElement===t.target?e._delta=[t.movementX,t.movementY]:(e._delta=d.sub(h,e._values),this.computeValues(h)),d.addTo(e._movement,e._delta),this.compute(t),e._delayed&&e.intentional){this.timeoutStore.remove("dragDelay"),e.active=!1,this.startPointerDrag(t);return}if(i.preventScrollAxis&&!e._preventScroll)if(e.axis)if(e.axis===i.preventScrollAxis||i.preventScrollAxis==="xy"){e._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(t);return}else return;this.emit()}pointerUp(t){this.ctrl.setEventIds(t);try{this.config.pointerCapture&&t.target.hasPointerCapture(t.pointerId)&&t.target.releasePointerCapture(t.pointerId)}catch{}const e=this.state,i=this.config;if(!e._active||!e._pointerActive)return;const o=$(t);if(e._pointerId!==void 0&&o!==e._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(t);const[h,p]=e._distance;if(e.tap=h<=i.tapsThreshold&&p<=i.tapsThreshold,e.tap&&i.filterTaps)e._force=!0;else{const[b,k]=e._delta,[U,v]=e._movement,[H,x]=i.swipe.velocity,[J,Q]=i.swipe.distance,Z=i.swipe.duration;if(e.elapsedTime<Z){const q=Math.abs(b/e.timeDelta),ct=Math.abs(k/e.timeDelta);q>H&&Math.abs(U)>J&&(e.swipe[0]=Math.sign(b)),ct>x&&Math.abs(v)>Q&&(e.swipe[1]=Math.sign(k))}}this.emit()}pointerClick(t){!this.state.tap&&t.detail>0&&(t.preventDefault(),t.stopPropagation())}setupPointer(t){const e=this.config,i=e.device;e.pointerLock&&t.currentTarget.requestPointerLock(),e.pointerCapture||(this.eventStore.add(this.sharedConfig.window,i,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,i,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,i,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(t){this.state._preventScroll&&t.cancelable&&t.preventDefault()}setupScrollPrevention(t){this.state._preventScroll=!1,Tt(t);const e=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",e),this.eventStore.add(this.sharedConfig.window,"touch","cancel",e),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,t)}setupDelayTrigger(t){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(t)},this.config.delay)}keyDown(t){const e=dt[t.key];if(e){const i=this.state,o=t.shiftKey?10:t.altKey?.1:1;this.start(t),i._delta=e(this.config.keyboardDisplacement,o),i._keyboardActive=!0,d.addTo(i._movement,i._delta),this.compute(t),this.emit()}}keyUp(t){t.key in dt&&(this.state._keyboardActive=!1,this.setActive(),this.compute(t),this.emit())}bind(t){const e=this.config.device;t(e,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(t(e,"change",this.pointerMove.bind(this)),t(e,"end",this.pointerUp.bind(this)),t(e,"cancel",this.pointerUp.bind(this)),t("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(t("key","down",this.keyDown.bind(this)),t("key","up",this.keyUp.bind(this))),this.config.filterTaps&&t("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function Tt(s){"persist"in s&&typeof s.persist=="function"&&s.persist()}const j=typeof window<"u"&&window.document&&window.document.createElement;function pt(){return j&&"ontouchstart"in window}function At(){return pt()||j&&window.navigator.maxTouchPoints>1}function St(){return j&&"onpointerdown"in window}function It(){return j&&"exitPointerLock"in window.document}function kt(){try{return"constructor"in GestureEvent}catch{return!1}}const S={isBrowser:j,gesture:kt(),touch:pt(),touchscreen:At(),pointer:St(),pointerLock:It()},Dt=250,xt=180,Ot=.5,Ct=50,Pt=250,Mt=10,mt={mouse:0,touch:0,pen:8},Lt=_(_({},C),{},{device(s,t,{pointer:{touch:e=!1,lock:i=!1,mouse:o=!1}={}}){return this.pointerLock=i&&S.pointerLock,S.touch&&e?"touch":this.pointerLock?"mouse":S.pointer&&!o?"pointer":S.touch?"touch":"mouse"},preventScrollAxis(s,t,{preventScroll:e}){if(this.preventScrollDelay=typeof e=="number"?e:e||e===void 0&&s?Dt:void 0,!(!S.touchscreen||e===!1))return s||(e!==void 0?"y":void 0)},pointerCapture(s,t,{pointer:{capture:e=!0,buttons:i=1,keys:o=!0}={}}){return this.pointerButtons=i,this.keys=o,!this.pointerLock&&this.device==="pointer"&&e},threshold(s,t,{filterTaps:e=!1,tapsThreshold:i=3,axis:o=void 0}){const h=d.toVector(s,e?i:o?1:0);return this.filterTaps=e,this.tapsThreshold=i,h},swipe({velocity:s=Ot,distance:t=Ct,duration:e=Pt}={}){return{velocity:this.transform(d.toVector(s)),distance:this.transform(d.toVector(t)),duration:e}},delay(s=0){switch(s){case!0:return xt;case!1:return 0;default:return s}},axisThreshold(s){return s?_(_({},mt),s):mt},keyboardDisplacement(s=Mt){return s}});function gt(s){const[t,e]=s.overflow,[i,o]=s._delta,[h,p]=s._direction;(t<0&&i>0&&h<0||t>0&&i<0&&h>0)&&(s._movement[0]=s._movementBound[0]),(e<0&&o>0&&p<0||e>0&&o<0&&p>0)&&(s._movement[1]=s._movementBound[1])}const Rt=30,Kt=100;class Vt extends O{constructor(...t){super(...t),T(this,"ingKey","pinching"),T(this,"aliasKey","da")}init(){this.state.offset=[1,0],this.state.lastOffset=[1,0],this.state._pointerEvents=new Map}reset(){super.reset();const t=this.state;t._touchIds=[],t.canceled=!1,t.cancel=this.cancel.bind(this),t.turns=0}computeOffset(){const{type:t,movement:e,lastOffset:i}=this.state;t==="wheel"?this.state.offset=d.add(e,i):this.state.offset=[(1+e[0])*i[0],e[1]+i[1]]}computeMovement(){const{offset:t,lastOffset:e}=this.state;this.state.movement=[t[0]/e[0],t[1]-e[1]]}axisIntent(){const t=this.state,[e,i]=t._movement;if(!t.axis){const o=Math.abs(e)*Rt-Math.abs(i);o<0?t.axis="angle":o>0&&(t.axis="scale")}}restrictToAxis(t){this.config.lockDirection&&(this.state.axis==="scale"?t[1]=0:this.state.axis==="angle"&&(t[0]=0))}cancel(){const t=this.state;t.canceled||setTimeout(()=>{t.canceled=!0,t._active=!1,this.compute(),this.emit()},0)}touchStart(t){this.ctrl.setEventIds(t);const e=this.state,i=this.ctrl.touchIds;if(e._active&&e._touchIds.every(h=>i.has(h))||i.size<2)return;this.start(t),e._touchIds=Array.from(i).slice(0,2);const o=V(t,e._touchIds);o&&this.pinchStart(t,o)}pointerStart(t){if(t.buttons!=null&&t.buttons%2!==1)return;this.ctrl.setEventIds(t),t.target.setPointerCapture(t.pointerId);const e=this.state,i=e._pointerEvents,o=this.ctrl.pointerIds;if(e._active&&Array.from(i.keys()).every(p=>o.has(p))||(i.size<2&&i.set(t.pointerId,t),e._pointerEvents.size<2))return;this.start(t);const h=z(...Array.from(i.values()));h&&this.pinchStart(t,h)}pinchStart(t,e){const i=this.state;i.origin=e.origin,this.computeValues([e.distance,e.angle]),this.computeInitial(),this.compute(t),this.emit()}touchMove(t){if(!this.state._active)return;const e=V(t,this.state._touchIds);e&&this.pinchMove(t,e)}pointerMove(t){const e=this.state._pointerEvents;if(e.has(t.pointerId)&&e.set(t.pointerId,t),!this.state._active)return;const i=z(...Array.from(e.values()));i&&this.pinchMove(t,i)}pinchMove(t,e){const i=this.state,o=i._values[1],h=e.angle-o;let p=0;Math.abs(h)>270&&(p+=Math.sign(h)),this.computeValues([e.distance,e.angle-360*p]),i.origin=e.origin,i.turns=p,i._movement=[i._values[0]/i._initial[0]-1,i._values[1]-i._initial[1]],this.compute(t),this.emit()}touchEnd(t){this.ctrl.setEventIds(t),this.state._active&&this.state._touchIds.some(e=>!this.ctrl.touchIds.has(e))&&(this.state._active=!1,this.compute(t),this.emit())}pointerEnd(t){const e=this.state;this.ctrl.setEventIds(t);try{t.target.releasePointerCapture(t.pointerId)}catch{}e._pointerEvents.has(t.pointerId)&&e._pointerEvents.delete(t.pointerId),e._active&&e._pointerEvents.size<2&&(e._active=!1,this.compute(t),this.emit())}gestureStart(t){t.cancelable&&t.preventDefault();const e=this.state;e._active||(this.start(t),this.computeValues([t.scale,t.rotation]),e.origin=[t.clientX,t.clientY],this.compute(t),this.emit())}gestureMove(t){if(t.cancelable&&t.preventDefault(),!this.state._active)return;const e=this.state;this.computeValues([t.scale,t.rotation]),e.origin=[t.clientX,t.clientY];const i=e._movement;e._movement=[t.scale-1,t.rotation],e._delta=d.sub(e._movement,i),this.compute(t),this.emit()}gestureEnd(t){this.state._active&&(this.state._active=!1,this.compute(t),this.emit())}wheel(t){const e=this.config.modifierKey;e&&(Array.isArray(e)?!e.find(i=>t[i]):!t[e])||(this.state._active?this.wheelChange(t):this.wheelStart(t),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this)))}wheelStart(t){this.start(t),this.wheelChange(t)}wheelChange(t){"uv"in t||t.cancelable&&t.preventDefault();const i=this.state;i._delta=[-u(t)[1]/Kt*i.offset[0],0],d.addTo(i._movement,i._delta),gt(i),this.state.origin=[t.clientX,t.clientY],this.compute(t),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(t){const e=this.config.device;e&&(t(e,"start",this[e+"Start"].bind(this)),t(e,"change",this[e+"Move"].bind(this)),t(e,"end",this[e+"End"].bind(this)),t(e,"cancel",this[e+"End"].bind(this)),t("lostPointerCapture","",this[e+"End"].bind(this))),this.config.pinchOnWheel&&t("wheel","",this.wheel.bind(this),{passive:!1})}}const Bt=_(_({},ft),{},{device(s,t,{shared:e,pointer:{touch:i=!1}={}}){if(e.target&&!S.touch&&S.gesture)return"gesture";if(S.touch&&i)return"touch";if(S.touchscreen){if(S.pointer)return"pointer";if(S.touch)return"touch"}},bounds(s,t,{scaleBounds:e={},angleBounds:i={}}){const o=p=>{const b=g(m(e,p),{min:-1/0,max:1/0});return[b.min,b.max]},h=p=>{const b=g(m(i,p),{min:-1/0,max:1/0});return[b.min,b.max]};return typeof e!="function"&&typeof i!="function"?[o(),h()]:p=>[o(p),h(p)]},threshold(s,t,e){return this.lockDirection=e.axis==="lock",d.toVector(s,this.lockDirection?[.1,3]:0)},modifierKey(s){return s===void 0?"ctrlKey":s},pinchOnWheel(s=!0){return s}});class jt extends B{constructor(...t){super(...t),T(this,"ingKey","moving")}move(t){this.config.mouseOnly&&t.pointerType!=="mouse"||(this.state._active?this.moveChange(t):this.moveStart(t),this.timeoutStore.add("moveEnd",this.moveEnd.bind(this)))}moveStart(t){this.start(t),this.computeValues(r(t)),this.compute(t),this.computeInitial(),this.emit()}moveChange(t){if(!this.state._active)return;const e=r(t),i=this.state;i._delta=d.sub(e,i._values),d.addTo(i._movement,i._delta),this.computeValues(e),this.compute(t),this.emit()}moveEnd(t){this.state._active&&(this.state._active=!1,this.compute(t),this.emit())}bind(t){t("pointer","change",this.move.bind(this)),t("pointer","leave",this.moveEnd.bind(this))}}const Ut=_(_({},C),{},{mouseOnly:(s=!0)=>s});class Ht extends B{constructor(...t){super(...t),T(this,"ingKey","scrolling")}scroll(t){this.state._active||this.start(t),this.scrollChange(t),this.timeoutStore.add("scrollEnd",this.scrollEnd.bind(this))}scrollChange(t){t.cancelable&&t.preventDefault();const e=this.state,i=c(t);e._delta=d.sub(i,e._values),d.addTo(e._movement,e._delta),this.computeValues(i),this.compute(t),this.emit()}scrollEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(t){t("scroll","",this.scroll.bind(this))}}const Yt=C;class Gt extends B{constructor(...t){super(...t),T(this,"ingKey","wheeling")}wheel(t){this.state._active||this.start(t),this.wheelChange(t),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this))}wheelChange(t){const e=this.state;e._delta=u(t),d.addTo(e._movement,e._delta),gt(e),this.compute(t),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(t){t("wheel","",this.wheel.bind(this))}}const Nt=C;class Wt extends B{constructor(...t){super(...t),T(this,"ingKey","hovering")}enter(t){this.config.mouseOnly&&t.pointerType!=="mouse"||(this.start(t),this.computeValues(r(t)),this.compute(t),this.emit())}leave(t){if(this.config.mouseOnly&&t.pointerType!=="mouse")return;const e=this.state;if(!e._active)return;e._active=!1;const i=r(t);e._movement=e._delta=d.sub(i,e._values),this.computeValues(i),this.compute(t),e.delta=e.movement,this.emit()}bind(t){t("pointer","enter",this.enter.bind(this)),t("pointer","leave",this.leave.bind(this))}}const Xt=_(_({},C),{},{mouseOnly:(s=!0)=>s}),_t=new Map,vt=new Map;function zt(s){_t.set(s.key,s.engine),vt.set(s.key,s.resolver)}const $t={key:"drag",engine:Et,resolver:Lt},se={key:"hover",engine:Wt,resolver:Xt},ie={key:"move",engine:jt,resolver:Ut},Jt={key:"pinch",engine:Vt,resolver:Bt},ne={key:"scroll",engine:Ht,resolver:Yt},Qt={key:"wheel",engine:Gt,resolver:Nt}},9267:function(yt,F,R){R.d(F,{createUseGesture:function(){return V},useDrag:function(){return X},useWheel:function(){return ot}});var f=R(55074),d=R(67294);function Y(r,n){if(r==null)return{};var a={},u=Object.keys(r),c,l;for(l=0;l<u.length;l++)c=u[l],!(n.indexOf(c)>=0)&&(a[c]=r[c]);return a}function G(r,n){if(r==null)return{};var a=Y(r,n),u,c;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(r);for(c=0;c<l.length;c++)u=l[c],!(n.indexOf(u)>=0)&&Object.prototype.propertyIsEnumerable.call(r,u)&&(a[u]=r[u])}return a}const tt={target(r){if(r)return()=>"current"in r?r.current:r},enabled(r=!0){return r},window(r=f.S.isBrowser?window:void 0){return r},eventOptions({passive:r=!0,capture:n=!1}={}){return{passive:r,capture:n}},transform(r){return r}},et=["target","eventOptions","window","enabled","transform"];function M(r={},n){const a={};for(const[u,c]of Object.entries(n))switch(typeof c){case"function":a[u]=c.call(a,r[u],u,r);break;case"object":a[u]=M(r[u],c);break;case"boolean":c&&(a[u]=r[u]);break}return a}function T(r,n,a={}){const u=r,{target:c,eventOptions:l,window:m,enabled:y,transform:E}=u,g=G(u,et);if(a.shared=M({target:c,eventOptions:l,window:m,enabled:y,transform:E},tt),n){const w=f.C.get(n);a[n]=M((0,f._)({shared:a.shared},g),w)}else for(const w in g){const O=f.C.get(w);O&&(a[w]=M((0,f._)({shared:a.shared},g[w]),O))}return a}class K{constructor(n,a){(0,f.a)(this,"_listeners",new Set),this._ctrl=n,this._gestureKey=a}add(n,a,u,c,l){const m=this._listeners,y=(0,f.t)(a,u),E=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},g=(0,f._)((0,f._)({},E),l);n.addEventListener(y,c,g);const w=()=>{n.removeEventListener(y,c,g),m.delete(w)};return m.add(w),w}clean(){this._listeners.forEach(n=>n()),this._listeners.clear()}}class _{constructor(){(0,f.a)(this,"_timeouts",new Map)}add(n,a,u=140,...c){this.remove(n),this._timeouts.set(n,window.setTimeout(a,u,...c))}remove(n){const a=this._timeouts.get(n);a&&window.clearTimeout(a)}clean(){this._timeouts.forEach(n=>void window.clearTimeout(n)),this._timeouts.clear()}}class N{constructor(n){(0,f.a)(this,"gestures",new Set),(0,f.a)(this,"_targetEventStore",new K(this)),(0,f.a)(this,"gestureEventStores",{}),(0,f.a)(this,"gestureTimeoutStores",{}),(0,f.a)(this,"handlers",{}),(0,f.a)(this,"config",{}),(0,f.a)(this,"pointerIds",new Set),(0,f.a)(this,"touchIds",new Set),(0,f.a)(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),st(this,n)}setEventIds(n){if((0,f.i)(n))return this.touchIds=new Set((0,f.b)(n)),this.touchIds;if("pointerId"in n)return n.type==="pointerup"||n.type==="pointercancel"?this.pointerIds.delete(n.pointerId):n.type==="pointerdown"&&this.pointerIds.add(n.pointerId),this.pointerIds}applyHandlers(n,a){this.handlers=n,this.nativeHandlers=a}applyConfig(n,a){this.config=T(n,a,this.config)}clean(){this._targetEventStore.clean();for(const n of this.gestures)this.gestureEventStores[n].clean(),this.gestureTimeoutStores[n].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...n){const a=this.config.shared,u={};let c;if(!(a.target&&(c=a.target(),!c))){if(a.enabled){for(const m of this.gestures){const y=this.config[m],E=W(u,y.eventOptions,!!c);if(y.enabled){const g=f.E.get(m);new g(this,n,m).bind(E)}}const l=W(u,a.eventOptions,!!c);for(const m in this.nativeHandlers)l(m,"",y=>this.nativeHandlers[m]((0,f._)((0,f._)({},this.state.shared),{},{event:y,args:n})),void 0,!0)}for(const l in u)u[l]=(0,f.c)(...u[l]);if(!c)return u;for(const l in u){const{device:m,capture:y,passive:E}=(0,f.p)(l);this._targetEventStore.add(c,m,"",u[l],{capture:y,passive:E})}}}}function I(r,n){r.gestures.add(n),r.gestureEventStores[n]=new K(r,n),r.gestureTimeoutStores[n]=new _}function st(r,n){n.drag&&I(r,"drag"),n.wheel&&I(r,"wheel"),n.scroll&&I(r,"scroll"),n.move&&I(r,"move"),n.pinch&&I(r,"pinch"),n.hover&&I(r,"hover")}const W=(r,n,a)=>(u,c,l,m={},y=!1)=>{var E,g;const w=(E=m.capture)!==null&&E!==void 0?E:n.capture,O=(g=m.passive)!==null&&g!==void 0?g:n.passive;let L=y?u:(0,f.d)(u,c,w);a&&O&&(L+="Passive"),r[L]=r[L]||[],r[L].push(l)},it=/^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/;function nt(r){const n={},a={},u=new Set;for(let c in r)it.test(c)?(u.add(RegExp.lastMatch),a[c]=r[c]):n[c]=r[c];return[a,n,u]}function D(r,n,a,u,c,l){if(!r.has(a)||!f.E.has(u))return;const m=a+"Start",y=a+"End",E=g=>{let w;return g.first&&m in n&&n[m](g),a in n&&(w=n[a](g)),g.last&&y in n&&n[y](g),w};c[u]=E,l[u]=l[u]||{}}function rt(r,n){const[a,u,c]=nt(r),l={};return D(c,a,"onDrag","drag",l,n),D(c,a,"onWheel","wheel",l,n),D(c,a,"onScroll","scroll",l,n),D(c,a,"onPinch","pinch",l,n),D(c,a,"onMove","move",l,n),D(c,a,"onHover","hover",l,n),{handlers:l,config:n,nativeHandlers:u}}function A(r,n={},a,u){const c=d.useMemo(()=>new N(r),[]);if(c.applyHandlers(r,u),c.applyConfig(n,a),d.useEffect(c.effect.bind(c)),d.useEffect(()=>c.clean.bind(c),[]),n.target===void 0)return c.bind.bind(c)}function X(r,n){return(0,f.r)(f.e),A({drag:r},n||{},"drag")}function ut(r,n){return registerAction(pinchAction),A({pinch:r},n||{},"pinch")}function ot(r,n){return(0,f.r)(f.w),A({wheel:r},n||{},"wheel")}function at(r,n){return registerAction(scrollAction),A({scroll:r},n||{},"scroll")}function z(r,n){return registerAction(moveAction),A({move:r},n||{},"move")}function ht(r,n){return registerAction(hoverAction),A({hover:r},n||{},"hover")}function V(r){return r.forEach(f.r),function(a,u){const{handlers:c,nativeHandlers:l,config:m}=rt(a,u||{});return A(c,m,void 0,l)}}function $(r,n){return V([dragAction,pinchAction,scrollAction,wheelAction,moveAction,hoverAction])(r,n||{})}}}]);
@@ -0,0 +1,6 @@
1
+ "use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[7792],{31351:function($,Z,u){u.d(Z,{o:function(){return i}});var s=u(67294),t=u(70202),i=function(l){return function(D,h){var M=(0,s.useRef)(),W=(0,s.useRef)(0);(h===void 0||!(0,t.k)(h,M.current))&&(M.current=h,W.current+=1),l(D,[W.current])}}},44370:function($,Z,u){u.d(Z,{a:function(){return t}});var s=u(67294),t=function(l){return function(D,h){var M=(0,s.useRef)(!1);l(function(){return function(){M.current=!1}},[]),l(function(){if(!M.current)M.current=!0;else return D()},h)}},i=null},9577:function($,Z,u){u.d(Z,{f:function(){return h}});var s=u(97582),t=u(67294),i=u(22638),l=u(42170),D=u(92770);function h(M){function W(S,p){p===void 0&&(p={});var C,J=p.onError,oe=J===void 0?function(ae){console.error(ae)}:J;try{C=M()}catch(ae){oe(ae)}var ue=function(ae){return p!=null&&p.serializer?p==null?void 0:p.serializer(ae):JSON.stringify(ae)},Q=function(ae){return p!=null&&p.deserializer?p==null?void 0:p.deserializer(ae):JSON.parse(ae)};function se(){try{var ae=C==null?void 0:C.getItem(S);if(ae)return Q(ae)}catch(Pe){oe(Pe)}return(0,D.mf)(p==null?void 0:p.defaultValue)?p==null?void 0:p.defaultValue():p==null?void 0:p.defaultValue}var re=(0,s.CR)((0,t.useState)(function(){return se()}),2),_e=re[0],he=re[1];(0,l.Z)(function(){he(se())},[S]);var pe=function(ae){var Pe=(0,D.mf)(ae)?ae(_e):ae;if(he(Pe),(0,D.G7)(Pe))C==null||C.removeItem(S);else try{C==null||C.setItem(S,ue(Pe))}catch(De){console.error(De)}};return[_e,(0,i.Z)(pe)]}return W}},47140:function($,Z,u){u.r(Z),u.d(Z,{clearCache:function(){return bt.LK},configResponsive:function(){return Ut},createUpdateEffect:function(){return s.a},useAntdTable:function(){return p},useAsyncEffect:function(){return ue},useBoolean:function(){return Q.Z},useClickAway:function(){return se.Z},useControllableValue:function(){return he},useCookieState:function(){return De},useCountDown:function(){return tn},useCounter:function(){return Fe},useCreation:function(){return Xe.Z},useDebounce:function(){return Ye.Z},useDebounceEffect:function(){return un.Z},useDebounceFn:function(){return an.Z},useDeepCompareEffect:function(){return on.Z},useDeepCompareLayoutEffect:function(){return fn},useDocumentVisibility:function(){return ln},useDrag:function(){return dn},useDrop:function(){return gn},useDynamicList:function(){return hn},useEventEmitter:function(){return Cn},useEventListener:function(){return ye.Z},useEventTarget:function(){return _n},useExternal:function(){return x},useFavicon:function(){return ee},useFocusWithin:function(){return k},useFullscreen:function(){return ne},useFusionTable:function(){return ze},useGetState:function(){return Je.Z},useHistoryTravel:function(){return Le},useHover:function(){return Ze},useInViewport:function(){return Jn.Z},useInfiniteScroll:function(){return Xn},useInterval:function(){return Gn},useIsomorphicLayoutEffect:function(){return $n.Z},useKeyPress:function(){return at},useLatest:function(){return de.Z},useLocalStorageState:function(){return it.Z},useLockFn:function(){return ot.Z},useLongPress:function(){return ft},useMap:function(){return lt},useMemoizedFn:function(){return l.Z},useMount:function(){return vt.Z},useMouse:function(){return mt},useMutationObserver:function(){return gr},useNetwork:function(){return Et},usePagination:function(){return M},usePrevious:function(){return Ct},useRafInterval:function(){return Mt},useRafState:function(){return Mn.Z},useRafTimeout:function(){return Tt},useReactive:function(){return At},useRequest:function(){return D.Z},useResetState:function(){return Wt},useResponsive:function(){return Bt},useSafeState:function(){return Kt},useScroll:function(){return wt},useSelections:function(){return xt},useSessionStorageState:function(){return Ht},useSet:function(){return Xt},useSetState:function(){return Yt.Z},useSize:function(){return zn.Z},useTextSelection:function(){return $t},useThrottle:function(){return kt},useThrottleEffect:function(){return er},useThrottleFn:function(){return Tn.Z},useTimeout:function(){return nr.Z},useTitle:function(){return ur},useToggle:function(){return ar.Z},useTrackedEffect:function(){return cr},useUnmount:function(){return q.Z},useUnmountedRef:function(){return xn.Z},useUpdate:function(){return re.Z},useUpdateEffect:function(){return W.Z},useUpdateLayoutEffect:function(){return fr},useVirtualList:function(){return lr},useWebSocket:function(){return vr},useWhyDidYouUpdate:function(){return dr}});var s=u(44370),t=u(97582),i=u(67294),l=u(22638),D=u(20578),h=function(e,n){var r;n===void 0&&(n={});var a=n.defaultPageSize,o=a===void 0?10:a,f=n.defaultCurrent,c=f===void 0?1:f,v=(0,t._T)(n,["defaultPageSize","defaultCurrent"]),d=(0,D.Z)(e,(0,t.pi)({defaultParams:[{current:c,pageSize:o}],refreshDepsAction:function(){G(1)}},v)),P=d.params[0]||{},g=P.current,m=g===void 0?1:g,E=P.pageSize,L=E===void 0?o:E,A=((r=d.data)===null||r===void 0?void 0:r.total)||0,U=(0,i.useMemo)(function(){return Math.ceil(A/L)},[L,A]),R=function(j,I){var F=j<=0?1:j,b=I<=0?1:I,T=Math.ceil(A/b);F>T&&(F=Math.max(1,T));var N=(0,t.CR)(d.params||[]),K=N[0],ie=K===void 0?{}:K,ce=N.slice(1);d.run.apply(d,(0,t.ev)([(0,t.pi)((0,t.pi)({},ie),{current:F,pageSize:b})],(0,t.CR)(ce),!1))},G=function(j){R(j,L)},z=function(j){R(m,j)};return(0,t.pi)((0,t.pi)({},d),{pagination:{current:m,pageSize:L,total:A,totalPage:U,onChange:(0,l.Z)(R),changeCurrent:(0,l.Z)(G),changePageSize:(0,l.Z)(z)}})},M=h,W=u(42170),S=function(e,n){var r;n===void 0&&(n={});var a=n.form,o=n.defaultType,f=o===void 0?"simple":o,c=n.defaultParams,v=n.manual,d=v===void 0?!1:v,P=n.refreshDeps,g=P===void 0?[]:P,m=n.ready,E=m===void 0?!0:m,L=(0,t._T)(n,["form","defaultType","defaultParams","manual","refreshDeps","ready"]),A=M(e,(0,t.pi)({manual:!0},L)),U=A.params,R=U===void 0?[]:U,G=A.run,z=R[2]||{},j=(0,t.CR)((0,i.useState)((z==null?void 0:z.type)||f),2),I=j[0],F=j[1],b=(0,i.useRef)({}),T=(0,i.useRef)([]),N=!!(a!=null&&a.getInternalHooks),K=function(){if(!a)return{};if(N)return a.getFieldsValue(null,function(){return!0});var ve=a.getFieldsValue(),fe={};return Object.keys(ve).forEach(function(Oe){(!a.getFieldInstance||a.getFieldInstance(Oe))&&(fe[Oe]=ve[Oe])}),fe},ie=function(){if(!a)return Promise.resolve({});var ve=K(),fe=Object.keys(ve);return N?a.validateFields(fe):new Promise(function(Oe,Sn){a.validateFields(fe,function(He,Ln){He?Sn(He):Oe(Ln)})})},ce=function(){if(a){if(N)return a.setFieldsValue(b.current);var ve={};Object.keys(b.current).forEach(function(fe){(!a.getFieldInstance||a.getFieldInstance(fe))&&(ve[fe]=b.current[fe])}),a.setFieldsValue(ve)}},be=function(){var ve=K();b.current=(0,t.pi)((0,t.pi)({},b.current),ve),F(function(fe){return fe==="simple"?"advance":"simple"})},Me=function(ve){E&&setTimeout(function(){ie().then(function(fe){fe===void 0&&(fe={});var Oe=ve||(0,t.pi)((0,t.pi)({pageSize:n.defaultPageSize||10},(R==null?void 0:R[0])||{}),{current:1});if(!a){G(Oe);return}b.current=(0,t.pi)((0,t.pi)({},b.current),fe),G(Oe,fe,{allFormData:b.current,type:I})}).catch(function(fe){return fe})})},ge=function(){var ve,fe;a&&a.resetFields(),Me((0,t.pi)((0,t.pi)({},(c==null?void 0:c[0])||{}),{pageSize:n.defaultPageSize||((fe=(ve=n.defaultParams)===null||ve===void 0?void 0:ve[0])===null||fe===void 0?void 0:fe.pageSize)||10,current:1}))},Y=function(ve){var fe;(fe=ve==null?void 0:ve.preventDefault)===null||fe===void 0||fe.call(ve),Me()},Ee=function(ve,fe,Oe,Sn){var He=(0,t.CR)(R||[]),Ln=He[0],Er=He.slice(1);G.apply(void 0,(0,t.ev)([(0,t.pi)((0,t.pi)({},Ln),{current:ve.current,pageSize:ve.pageSize,filters:fe,sorter:Oe,extra:Sn})],(0,t.CR)(Er),!1))};(0,i.useEffect)(function(){if(R.length>0){b.current=(z==null?void 0:z.allFormData)||{},ce(),G.apply(void 0,(0,t.ev)([],(0,t.CR)(R),!1));return}!d&&E&&(b.current=(c==null?void 0:c[1])||{},ce(),Me(c==null?void 0:c[0]))},[]),(0,W.Z)(function(){E&&ce()},[I]);var le=(0,i.useRef)(!1);return le.current=!1,(0,W.Z)(function(){!d&&E&&(le.current=!0,a&&a.resetFields(),b.current=(c==null?void 0:c[1])||{},ce(),Me(c==null?void 0:c[0]))},[E]),(0,W.Z)(function(){le.current||E&&(d||(le.current=!0,A.pagination.changeCurrent(1)))},(0,t.ev)([],(0,t.CR)(g),!1)),(0,t.pi)((0,t.pi)({},A),{tableProps:{dataSource:((r=A.data)===null||r===void 0?void 0:r.list)||T.current,loading:A.loading,onChange:(0,l.Z)(Ee),pagination:{current:A.pagination.current,pageSize:A.pagination.pageSize,total:A.pagination.total}},search:{submit:(0,l.Z)(Y),type:I,changeType:(0,l.Z)(be),reset:(0,l.Z)(ge)}})},p=S,C=u(92770);function J(e){return(0,C.mf)(e[Symbol.asyncIterator])}function oe(e,n){(0,i.useEffect)(function(){var r=e(),a=!1;function o(){return(0,t.mG)(this,void 0,void 0,function(){var f;return(0,t.Jh)(this,function(c){switch(c.label){case 0:if(!J(r))return[3,4];c.label=1;case 1:return[4,r.next()];case 2:return f=c.sent(),f.done||a?[3,3]:[3,1];case 3:return[3,6];case 4:return[4,r];case 5:c.sent(),c.label=6;case 6:return[2]}})})}return o(),function(){a=!0}},n)}var ue=oe,Q=u(36705),se=u(55914),re=u(90105);function _e(e,n){e===void 0&&(e={}),n===void 0&&(n={});var r=n.defaultValue,a=n.defaultValuePropName,o=a===void 0?"defaultValue":a,f=n.valuePropName,c=f===void 0?"value":f,v=n.trigger,d=v===void 0?"onChange":v,P=e[c],g=e.hasOwnProperty(c),m=(0,i.useMemo)(function(){return g?P:e.hasOwnProperty(o)?e[o]:r},[]),E=(0,i.useRef)(m);g&&(E.current=P);var L=(0,re.Z)();function A(U){for(var R=[],G=1;G<arguments.length;G++)R[G-1]=arguments[G];var z=(0,C.mf)(U)?U(E.current):U;g||(E.current=z,L()),e[d]&&e[d].apply(e,(0,t.ev)([z],(0,t.CR)(R),!1))}return[E.current,(0,l.Z)(A)]}var he=_e,pe=u(36808),ae=u.n(pe);function Pe(e,n){n===void 0&&(n={});var r=(0,t.CR)((0,i.useState)(function(){var c=ae().get(e);return(0,C.HD)(c)?c:(0,C.mf)(n.defaultValue)?n.defaultValue():n.defaultValue}),2),a=r[0],o=r[1],f=(0,l.Z)(function(c,v){v===void 0&&(v={});var d=(0,t.pi)((0,t.pi)({},n),v),P=d.defaultValue,g=(0,t._T)(d,["defaultValue"]),m=(0,C.mf)(c)?c(a):c;o(m),m===void 0?ae().remove(e):ae().set(e,m,g)});return[a,f]}var De=Pe,Te=u(27484),Se=u.n(Te),de=u(3930),xe=function(e){if(!e)return 0;var n=Se()(e).valueOf()-Date.now();return n<0?0:n},en=function(e){return{days:Math.floor(e/864e5),hours:Math.floor(e/36e5)%24,minutes:Math.floor(e/6e4)%60,seconds:Math.floor(e/1e3)%60,milliseconds:Math.floor(e)%1e3}},nn=function(e){e===void 0&&(e={});var n=e||{},r=n.leftTime,a=n.targetDate,o=n.interval,f=o===void 0?1e3:o,c=n.onEnd,v=(0,i.useMemo)(function(){return"leftTime"in e?(0,C.hj)(r)&&r>0?Date.now()+r:void 0:a},[r,a]),d=(0,t.CR)((0,i.useState)(function(){return xe(v)}),2),P=d[0],g=d[1],m=(0,de.Z)(c);(0,i.useEffect)(function(){if(!v){g(0);return}g(xe(v));var L=setInterval(function(){var A,U=xe(v);g(U),U===0&&(clearInterval(L),(A=m.current)===null||A===void 0||A.call(m))},f);return function(){return clearInterval(L)}},[v,f]);var E=(0,i.useMemo)(function(){return en(P)},[P]);return[P,E]},tn=nn;function Ve(e,n){n===void 0&&(n={});var r=n.min,a=n.max,o=e;return(0,C.hj)(a)&&(o=Math.min(a,o)),(0,C.hj)(r)&&(o=Math.max(r,o)),o}function rn(e,n){e===void 0&&(e=0),n===void 0&&(n={});var r=n.min,a=n.max,o=(0,t.CR)((0,i.useState)(function(){return Ve(e,{min:r,max:a})}),2),f=o[0],c=o[1],v=function(E){c(function(L){var A=(0,C.hj)(E)?E:E(L);return Ve(A,{max:a,min:r})})},d=function(E){E===void 0&&(E=1),v(function(L){return L+E})},P=function(E){E===void 0&&(E=1),v(function(L){return L-E})},g=function(E){v(E)},m=function(){v(e)};return[f,{inc:(0,l.Z)(d),dec:(0,l.Z)(P),set:(0,l.Z)(g),reset:(0,l.Z)(m)}]}var Fe=rn,Xe=u(85292),Ye=u(58580),un=u(8527),an=u(85980),on=u(8291),cn=u(31351),fn=(0,cn.o)(i.useLayoutEffect),ye=u(83204),Ie=u(52982),Ge=function(){return Ie.Z?document.visibilityState:"visible"};function sn(){var e=(0,t.CR)((0,i.useState)(function(){return Ge()}),2),n=e[0],r=e[1];return(0,ye.Z)("visibilitychange",function(){r(Ge())},{target:function(){return document}}),n}var ln=sn,me=u(48002),We=u(59682),vn=function(e,n,r){r===void 0&&(r={});var a=(0,de.Z)(r),o=(0,de.Z)(e);(0,We.Z)(function(){var f=(0,me.n)(n);if(f!=null&&f.addEventListener){var c=function(d){var P,g;(g=(P=a.current).onDragStart)===null||g===void 0||g.call(P,d),d.dataTransfer.setData("custom",JSON.stringify(o.current))},v=function(d){var P,g;(g=(P=a.current).onDragEnd)===null||g===void 0||g.call(P,d)};return f.setAttribute("draggable","true"),f.addEventListener("dragstart",c),f.addEventListener("dragend",v),function(){f.removeEventListener("dragstart",c),f.removeEventListener("dragend",v)}}},[],n)},dn=vn,mn=function(e,n){n===void 0&&(n={});var r=(0,de.Z)(n),a=(0,i.useRef)();(0,We.Z)(function(){var o=(0,me.n)(e);if(o!=null&&o.addEventListener){var f=function(m,E){var L=m.getData("text/uri-list"),A=m.getData("custom");if(A&&r.current.onDom){var U=A;try{U=JSON.parse(A)}catch{U=A}r.current.onDom(U,E);return}if(L&&r.current.onUri){r.current.onUri(L,E);return}if(m.files&&m.files.length&&r.current.onFiles){r.current.onFiles(Array.from(m.files),E);return}m.items&&m.items.length&&r.current.onText&&m.items[0].getAsString(function(R){r.current.onText(R,E)})},c=function(m){var E,L;m.preventDefault(),m.stopPropagation(),a.current=m.target,(L=(E=r.current).onDragEnter)===null||L===void 0||L.call(E,m)},v=function(m){var E,L;m.preventDefault(),(L=(E=r.current).onDragOver)===null||L===void 0||L.call(E,m)},d=function(m){var E,L;m.target===a.current&&((L=(E=r.current).onDragLeave)===null||L===void 0||L.call(E,m))},P=function(m){var E,L;m.preventDefault(),f(m.dataTransfer,m),(L=(E=r.current).onDrop)===null||L===void 0||L.call(E,m)},g=function(m){var E,L;f(m.clipboardData,m),(L=(E=r.current).onPaste)===null||L===void 0||L.call(E,m)};return o.addEventListener("dragenter",c),o.addEventListener("dragover",v),o.addEventListener("dragleave",d),o.addEventListener("drop",P),o.addEventListener("paste",g),function(){o.removeEventListener("dragenter",c),o.removeEventListener("dragover",v),o.removeEventListener("dragleave",d),o.removeEventListener("drop",P),o.removeEventListener("paste",g)}}},[],e)},gn=mn,En=function(e){e===void 0&&(e=[]);var n=(0,i.useRef)(-1),r=(0,i.useRef)([]),a=(0,i.useCallback)(function(I){n.current+=1,r.current.splice(I,0,n.current)},[]),o=(0,t.CR)((0,i.useState)(function(){return e.forEach(function(I,F){a(F)}),e}),2),f=o[0],c=o[1],v=(0,i.useCallback)(function(I){r.current=[],c(function(){return I.forEach(function(F,b){a(b)}),I})},[]),d=(0,i.useCallback)(function(I,F){c(function(b){var T=(0,t.ev)([],(0,t.CR)(b),!1);return T.splice(I,0,F),a(I),T})},[]),P=(0,i.useCallback)(function(I){return r.current[I]},[]),g=(0,i.useCallback)(function(I){return r.current.findIndex(function(F){return F===I})},[]),m=(0,i.useCallback)(function(I,F){c(function(b){var T=(0,t.ev)([],(0,t.CR)(b),!1);return F.forEach(function(N,K){a(I+K)}),T.splice.apply(T,(0,t.ev)([I,0],(0,t.CR)(F),!1)),T})},[]),E=(0,i.useCallback)(function(I,F){c(function(b){var T=(0,t.ev)([],(0,t.CR)(b),!1);return T[I]=F,T})},[]),L=(0,i.useCallback)(function(I){c(function(F){var b=(0,t.ev)([],(0,t.CR)(F),!1);b.splice(I,1);try{r.current.splice(I,1)}catch(T){console.error(T)}return b})},[]),A=(0,i.useCallback)(function(I,F){I!==F&&c(function(b){var T=(0,t.ev)([],(0,t.CR)(b),!1),N=T.filter(function(ie,ce){return ce!==I});N.splice(F,0,T[I]);try{var K=r.current.filter(function(ie,ce){return ce!==I});K.splice(F,0,r.current[I]),r.current=K}catch(ie){console.error(ie)}return N})},[]),U=(0,i.useCallback)(function(I){c(function(F){return a(F.length),F.concat([I])})},[]),R=(0,i.useCallback)(function(){try{r.current=r.current.slice(0,r.current.length-1)}catch(I){console.error(I)}c(function(I){return I.slice(0,I.length-1)})},[]),G=(0,i.useCallback)(function(I){c(function(F){return a(0),[I].concat(F)})},[]),z=(0,i.useCallback)(function(){try{r.current=r.current.slice(1,r.current.length)}catch(I){console.error(I)}c(function(I){return I.slice(1,I.length)})},[]),j=(0,i.useCallback)(function(I){return I.map(function(F,b){return{key:b,item:F}}).sort(function(F,b){return g(F.key)-g(b.key)}).filter(function(F){return!!F.item}).map(function(F){return F.item})},[]);return{list:f,insert:d,merge:m,replace:E,remove:L,getKey:P,getIndex:g,move:A,push:U,pop:R,unshift:G,shift:z,sortList:j,resetList:v}},hn=En,Rn=function(){function e(){var n=this;this.subscriptions=new Set,this.emit=function(r){var a,o;try{for(var f=(0,t.XA)(n.subscriptions),c=f.next();!c.done;c=f.next()){var v=c.value;v(r)}}catch(d){a={error:d}}finally{try{c&&!c.done&&(o=f.return)&&o.call(f)}finally{if(a)throw a.error}}},this.useSubscription=function(r){var a=(0,i.useRef)();a.current=r,(0,i.useEffect)(function(){function o(f){a.current&&a.current(f)}return n.subscriptions.add(o),function(){n.subscriptions.delete(o)}},[])}}return e}();function Cn(){var e=(0,i.useRef)();return e.current||(e.current=new Rn),e.current}function Pn(e){var n=e||{},r=n.initialValue,a=n.transformer,o=(0,t.CR)((0,i.useState)(r),2),f=o[0],c=o[1],v=(0,de.Z)(a),d=(0,i.useCallback)(function(){return c(r)},[]),P=(0,i.useCallback)(function(g){var m=g.target.value;return(0,C.mf)(v.current)?c(v.current(m)):c(m)},[]);return[f,{onChange:P,reset:d}]}var _n=Pn,_={},y=function(e,n){n===void 0&&(n={});var r=document.querySelector('script[src="'.concat(e,'"]'));if(!r){var a=document.createElement("script");return a.src=e,Object.keys(n).forEach(function(o){a[o]=n[o]}),a.setAttribute("data-status","loading"),document.body.appendChild(a),{ref:a,status:"loading"}}return{ref:r,status:r.getAttribute("data-status")||"ready"}},O=function(e,n){n===void 0&&(n={});var r=document.querySelector('link[href="'.concat(e,'"]'));if(!r){var a=document.createElement("link");a.rel="stylesheet",a.href=e,Object.keys(n).forEach(function(f){a[f]=n[f]});var o="hideFocus"in a;return o&&a.relList&&(a.rel="preload",a.as="style"),a.setAttribute("data-status","loading"),document.head.appendChild(a),{ref:a,status:"loading"}}return{ref:r,status:r.getAttribute("data-status")||"ready"}},w=function(e,n){var r=(0,t.CR)((0,i.useState)(e?"loading":"unset"),2),a=r[0],o=r[1],f=(0,i.useRef)();return(0,i.useEffect)(function(){if(!e){o("unset");return}var c=e.replace(/[|#].*$/,"");if((n==null?void 0:n.type)==="css"||!(n!=null&&n.type)&&/(^css!|\.css$)/.test(c)){var v=O(e,n==null?void 0:n.css);f.current=v.ref,o(v.status)}else if((n==null?void 0:n.type)==="js"||!(n!=null&&n.type)&&/(^js!|\.js$)/.test(c)){var v=y(e,n==null?void 0:n.js);f.current=v.ref,o(v.status)}else console.error("Cannot infer the type of external resource, and please provide a type ('js' | 'css'). Refer to the https://ahooks.js.org/hooks/dom/use-external/#options");if(f.current){_[e]===void 0?_[e]=1:_[e]+=1;var d=function(P){var g,m=P.type==="load"?"ready":"error";(g=f.current)===null||g===void 0||g.setAttribute("data-status",m),o(m)};return f.current.addEventListener("load",d),f.current.addEventListener("error",d),function(){var P,g,m;(P=f.current)===null||P===void 0||P.removeEventListener("load",d),(g=f.current)===null||g===void 0||g.removeEventListener("error",d),_[e]-=1,_[e]===0&&!(n!=null&&n.keepWhenUnused)&&((m=f.current)===null||m===void 0||m.remove()),f.current=void 0}}},[e]),a},x=w,H={SVG:"image/svg+xml",ICO:"image/x-icon",GIF:"image/gif",PNG:"image/png"},V=function(e){(0,i.useEffect)(function(){if(e){var n=e.split("."),r=n[n.length-1].toLocaleUpperCase(),a=document.querySelector("link[rel*='icon']")||document.createElement("link");a.type=H[r],a.href=e,a.rel="shortcut icon",document.getElementsByTagName("head")[0].appendChild(a)}},[e])},ee=V;function k(e,n){var r=(0,t.CR)((0,i.useState)(!1),2),a=r[0],o=r[1],f=n||{},c=f.onFocus,v=f.onBlur,d=f.onChange;return(0,ye.Z)("focusin",function(P){a||(c==null||c(P),d==null||d(!0),o(!0))},{target:e}),(0,ye.Z)("focusout",function(P){var g,m;a&&!(!((m=(g=P.currentTarget)===null||g===void 0?void 0:g.contains)===null||m===void 0)&&m.call(g,P.relatedTarget))&&(v==null||v(P),d==null||d(!1),o(!1))},{target:e}),a}var B=u(10577),X=u.n(B),q=u(45210),Re=function(e,n){var r=n||{},a=r.onExit,o=r.onEnter,f=r.pageFullscreen,c=f===void 0?!1:f,v=(0,C.jn)(c)||!c?{}:c,d=v.className,P=d===void 0?"ahooks-page-fullscreen":d,g=v.zIndex,m=g===void 0?999999:g,E=(0,de.Z)(a),L=(0,de.Z)(o),A=(0,t.CR)((0,i.useState)(!1),2),U=A[0],R=A[1],G=function(T){var N,K;T?(N=L.current)===null||N===void 0||N.call(L):(K=E.current)===null||K===void 0||K.call(E)},z=(0,l.Z)(function(){if(X().isEnabled){var T=(0,me.n)(e);if(!X().element)G(!1),R(!1),X().off("change",z);else{var N=X().element===T;G(N),R(N)}}}),j=function(T){var N=(0,me.n)(e);if(N){var K=document.getElementById(P);T?(N.classList.add(P),K||(K=document.createElement("style"),K.setAttribute("id",P),K.textContent=`
2
+ .`.concat(P,` {
3
+ position: fixed; left: 0; top: 0; right: 0; bottom: 0;
4
+ width: 100% !important; height: 100% !important;
5
+ z-index: `).concat(m,`;
6
+ }`),N.appendChild(K))):(N.classList.remove(P),K&&K.remove()),U!==T&&(G(T),R(T))}},I=function(){var T=(0,me.n)(e);if(T){if(c){j(!0);return}if(X().isEnabled)try{X().request(T),X().on("change",z)}catch(N){console.error(N)}}},F=function(){var T=(0,me.n)(e);if(T){if(c){j(!1);return}X().isEnabled&&X().element===T&&X().exit()}},b=function(){U?F():I()};return(0,q.Z)(function(){X().isEnabled&&!c&&X().off("change",z)}),[U,{enterFullscreen:(0,l.Z)(I),exitFullscreen:(0,l.Z)(F),toggleFullscreen:(0,l.Z)(b),isEnabled:X().isEnabled}]},ne=Re,te=function(e){return{getFieldInstance:function(n){return e.getNames().includes(n)},setFieldsValue:e.setValues,getFieldsValue:e.getValues,resetFields:e.resetToDefault,validateFields:function(n,r){e.validate(n,r)}}},Ce=function(e){var n={dataSource:e.tableProps.dataSource,loading:e.tableProps.loading,onSort:function(a,o){var f;e.tableProps.onChange({current:e.pagination.current,pageSize:e.pagination.pageSize},(f=e.params[0])===null||f===void 0?void 0:f.filters,{field:a,order:o})},onFilter:function(a){var o;e.tableProps.onChange({current:e.pagination.current,pageSize:e.pagination.pageSize},a,(o=e.params[0])===null||o===void 0?void 0:o.sorter)}},r={onChange:e.pagination.changeCurrent,onPageSizeChange:e.pagination.changePageSize,current:e.pagination.current,pageSize:e.pagination.pageSize,total:e.pagination.total};return(0,t.pi)((0,t.pi)({},e),{tableProps:n,paginationProps:r})},we=function(e,n){n===void 0&&(n={});var r=p(e,(0,t.pi)((0,t.pi)({},n),{form:n.field?te(n.field):void 0}));return Ce(r)},ze=we,Je=u(79785),je=function(e,n){var r=e>0?e-1:n.length+e;return r>=n.length-1&&(r=n.length-1),r<0&&(r=0),r},Ke=function(e,n){var r=je(e,n);return{_current:n[r],_before:n.slice(0,r),_after:n.slice(r+1)}};function Le(e,n){n===void 0&&(n=0);var r=(0,t.CR)((0,i.useState)({present:e,past:[],future:[]}),2),a=r[0],o=r[1],f=a.present,c=a.past,v=a.future,d=(0,i.useRef)(e),P=function(){for(var A=[],U=0;U<arguments.length;U++)A[U]=arguments[U];var R=A.length>0?A[0]:d.current;d.current=R,o({present:R,future:[],past:[]})},g=function(A){var U=(0,t.ev)((0,t.ev)([],(0,t.CR)(c),!1),[f],!1),R=(0,C.hj)(n)?n:Number(n);R>0&&U.length>R&&U.splice(0,1),o({present:A,future:[],past:U})},m=function(A){if(A===void 0&&(A=1),v.length!==0){var U=Ke(A,v),R=U._before,G=U._current,z=U._after;o({past:(0,t.ev)((0,t.ev)((0,t.ev)([],(0,t.CR)(c),!1),[f],!1),(0,t.CR)(R),!1),present:G,future:z})}},E=function(A){if(A===void 0&&(A=-1),c.length!==0){var U=Ke(A,c),R=U._before,G=U._current,z=U._after;o({past:R,present:G,future:(0,t.ev)((0,t.ev)((0,t.ev)([],(0,t.CR)(z),!1),[f],!1),(0,t.CR)(v),!1)})}},L=function(A){var U=(0,C.hj)(A)?A:Number(A);if(U!==0){if(U>0)return m(U);E(U)}};return{value:f,backLength:c.length,forwardLength:v.length,setValue:(0,l.Z)(g),go:(0,l.Z)(L),back:(0,l.Z)(function(){L(-1)}),forward:(0,l.Z)(function(){L(1)}),reset:(0,l.Z)(P)}}var Ze=function(e,n){var r=n||{},a=r.onEnter,o=r.onLeave,f=r.onChange,c=(0,t.CR)((0,Q.Z)(!1),2),v=c[0],d=c[1],P=d.setTrue,g=d.setFalse;return(0,ye.Z)("mouseenter",function(){a==null||a(),P(),f==null||f(!0)},{target:e}),(0,ye.Z)("mouseleave",function(){o==null||o(),g(),f==null||f(!1)},{target:e}),v},$e=function(e){return e===document||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},Ne=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},Hn=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},Vn=function(e,n){n===void 0&&(n={});var r=n.target,a=n.isNoMore,o=n.threshold,f=o===void 0?100:o,c=n.reloadDeps,v=c===void 0?[]:c,d=n.manual,P=n.onBefore,g=n.onSuccess,m=n.onError,E=n.onFinally,L=(0,t.CR)((0,i.useState)(),2),A=L[0],U=L[1],R=(0,t.CR)((0,i.useState)(!1),2),G=R[0],z=R[1],j=(0,i.useMemo)(function(){return a?a(A):!1},[A]),I=(0,D.Z)(function(ge){return(0,t.mG)(void 0,void 0,void 0,function(){var Y,Ee,le;return(0,t.Jh)(this,function(ve){switch(ve.label){case 0:return[4,e(ge)];case 1:return Y=ve.sent(),U(ge?(0,t.pi)((0,t.pi)({},Y),{list:(0,t.ev)((0,t.ev)([],(0,t.CR)((le=ge.list)!==null&&le!==void 0?le:[]),!1),(0,t.CR)(Y.list),!1)}):(0,t.pi)((0,t.pi)({},Y),{list:(0,t.ev)([],(0,t.CR)((Ee=Y.list)!==null&&Ee!==void 0?Ee:[]),!1)})),[2,Y]}})})},{manual:d,onFinally:function(ge,Y,Ee){z(!1),E==null||E(Y,Ee)},onBefore:function(){return P==null?void 0:P()},onSuccess:function(ge){setTimeout(function(){Me()}),g==null||g(ge)},onError:function(ge){return m==null?void 0:m(ge)}}),F=I.loading,b=I.run,T=I.runAsync,N=I.cancel,K=(0,l.Z)(function(){j||(z(!0),b(A))}),ie=(0,l.Z)(function(){return j?Promise.reject():(z(!0),T(A))}),ce=function(){return z(!1),b()},be=function(){return z(!1),T()},Me=function(){var ge=(0,me.n)(r);if(ge){ge=ge===document?document.documentElement:ge;var Y=$e(ge),Ee=Ne(ge),le=Hn(ge);Ee-Y<=le+f&&K()}};return(0,ye.Z)("scroll",function(){F||G||Me()},{target:r}),(0,W.Z)(function(){b()},(0,t.ev)([],(0,t.CR)(v),!1)),{data:A,loading:!G&&F,loadingMore:G,noMore:j,loadMore:K,loadMoreAsync:ie,reload:(0,l.Z)(ce),reloadAsync:(0,l.Z)(be),mutate:U,cancel:N}},Xn=Vn,Yn=function(e,n,r){r===void 0&&(r={});var a=(0,l.Z)(e),o=(0,i.useRef)(null),f=(0,i.useCallback)(function(){o.current&&clearInterval(o.current)},[]);return(0,i.useEffect)(function(){if(!(!(0,C.hj)(n)||n<0))return r.immediate&&a(),o.current=setInterval(a,n),f},[n,r.immediate]),f},Gn=Yn,Jn=u(42532),$n=u(12527),Qn=u(70202),kn=function(e,n,r){var a=(0,i.useRef)(),o=(0,i.useRef)(0);(0,Qn.k)(n,a.current)||(a.current=n,o.current+=1),(0,We.Z)(e,[o.current],r)},Zn=kn,qn=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:""),et=qn,An={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:et?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},Dn={ctrl:function(e){return e.ctrlKey},shift:function(e){return e.shiftKey},alt:function(e){return e.altKey},meta:function(e){return e.type==="keyup"?An.meta.includes(e.keyCode):e.metaKey}};function nt(e){var n=Object.keys(Dn).reduce(function(r,a){return Dn[a](e)?r+1:r},0);return[16,17,18,91,92].includes(e.keyCode)?n:n+1}function bn(e,n,r){var a,o;if(!e.key)return!1;if((0,C.hj)(n))return e.keyCode===n;var f=n.split("."),c=0;try{for(var v=(0,t.XA)(f),d=v.next();!d.done;d=v.next()){var P=d.value,g=Dn[P],m=An[P.toLowerCase()];(g&&g(e)||m&&m===e.keyCode)&&c++}}catch(E){a={error:E}}finally{try{d&&!d.done&&(o=v.return)&&o.call(v)}finally{if(a)throw a.error}}return r?c===f.length&&nt(e)===f.length:c===f.length}function tt(e,n){return(0,C.mf)(e)?e:(0,C.HD)(e)||(0,C.hj)(e)?function(r){return bn(r,e,n)}:Array.isArray(e)?function(r){return e.some(function(a){return bn(r,a,n)})}:function(){return!!e}}var rt=["keydown"];function ut(e,n,r){var a=r||{},o=a.events,f=o===void 0?rt:o,c=a.target,v=a.exactMatch,d=v===void 0?!1:v,P=a.useCapture,g=P===void 0?!1:P,m=(0,de.Z)(n),E=(0,de.Z)(e);Zn(function(){var L,A,U,R=(0,me.n)(c,window);if(R){var G=function(F){var b,T=tt(E.current,d);if(T(F))return(b=m.current)===null||b===void 0?void 0:b.call(m,F)};try{for(var z=(0,t.XA)(f),j=z.next();!j.done;j=z.next()){var I=j.value;(U=R==null?void 0:R.addEventListener)===null||U===void 0||U.call(R,I,G,g)}}catch(F){L={error:F}}finally{try{j&&!j.done&&(A=z.return)&&A.call(z)}finally{if(L)throw L.error}}return function(){var F,b,T;try{for(var N=(0,t.XA)(f),K=N.next();!K.done;K=N.next()){var ie=K.value;(T=R==null?void 0:R.removeEventListener)===null||T===void 0||T.call(R,ie,G,g)}}catch(ce){F={error:ce}}finally{try{K&&!K.done&&(b=N.return)&&b.call(N)}finally{if(F)throw F.error}}}}},[f],c)}var at=ut,it=u(51283),ot=u(65043),In=Ie.Z&&("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch);function ct(e,n,r){var a=r===void 0?{}:r,o=a.delay,f=o===void 0?300:o,c=a.moveThreshold,v=a.onClick,d=a.onLongPressEnd,P=(0,de.Z)(e),g=(0,de.Z)(v),m=(0,de.Z)(d),E=(0,i.useRef)(),L=(0,i.useRef)(!1),A=(0,i.useRef)({x:0,y:0}),U=!!(c!=null&&c.x&&c.x>0||c!=null&&c.y&&c.y>0);(0,We.Z)(function(){var R=(0,me.n)(n);if(!(R!=null&&R.addEventListener))return;var G=function(T){var N=z(T),K=N.clientX,ie=N.clientY,ce=Math.abs(K-A.current.x),be=Math.abs(ie-A.current.y);return!!(c!=null&&c.x&&ce>c.x||c!=null&&c.y&&be>c.y)};function z(T){return T instanceof TouchEvent?{clientX:T.touches[0].clientX,clientY:T.touches[0].clientY}:T instanceof MouseEvent?{clientX:T.clientX,clientY:T.clientY}:(console.warn("Unsupported event type"),{clientX:0,clientY:0})}var j=function(T){if(U){var N=z(T),K=N.clientX,ie=N.clientY;A.current.x=K,A.current.y=ie}E.current=setTimeout(function(){P.current(T),L.current=!0},f)},I=function(T){E.current&&G(T)&&(clearInterval(E.current),E.current=void 0)},F=function(T,N){var K;N===void 0&&(N=!1),E.current&&clearTimeout(E.current),L.current&&((K=m.current)===null||K===void 0||K.call(m,T)),N&&!L.current&&g.current&&g.current(T),L.current=!1},b=function(T){return F(T,!0)};return In?(R.addEventListener("touchstart",j),R.addEventListener("touchend",b),U&&R.addEventListener("touchmove",I)):(R.addEventListener("mousedown",j),R.addEventListener("mouseup",b),R.addEventListener("mouseleave",F),U&&R.addEventListener("mousemove",I)),function(){E.current&&(clearTimeout(E.current),L.current=!1),In?(R.removeEventListener("touchstart",j),R.removeEventListener("touchend",b),U&&R.removeEventListener("touchmove",I)):(R.removeEventListener("mousedown",j),R.removeEventListener("mouseup",b),R.removeEventListener("mouseleave",F),U&&R.removeEventListener("mousemove",I))}},[],n)}var ft=ct;function st(e){var n=function(){return new Map(e)},r=(0,t.CR)((0,i.useState)(n),2),a=r[0],o=r[1],f=function(g,m){o(function(E){var L=new Map(E);return L.set(g,m),L})},c=function(g){o(new Map(g))},v=function(g){o(function(m){var E=new Map(m);return E.delete(g),E})},d=function(){return o(n())},P=function(g){return a.get(g)};return[a,{set:(0,l.Z)(f),setAll:(0,l.Z)(c),remove:(0,l.Z)(v),reset:(0,l.Z)(d),get:(0,l.Z)(P)}]}var lt=st,vt=u(78234),Mn=u(27347),dt={screenX:NaN,screenY:NaN,clientX:NaN,clientY:NaN,pageX:NaN,pageY:NaN,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},mt=function(e){var n=(0,t.CR)((0,Mn.Z)(dt),2),r=n[0],a=n[1];return(0,ye.Z)("mousemove",function(o){var f=o.screenX,c=o.screenY,v=o.clientX,d=o.clientY,P=o.pageX,g=o.pageY,m={screenX:f,screenY:c,clientX:v,clientY:d,pageX:P,pageY:g,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},E=(0,me.n)(e);if(E){var L=E.getBoundingClientRect(),A=L.left,U=L.top,R=L.width,G=L.height;m.elementPosX=A+window.pageXOffset,m.elementPosY=U+window.pageYOffset,m.elementX=P-m.elementPosX,m.elementY=g-m.elementPosY,m.elementW=R,m.elementH=G}a(m)},{target:function(){return document}}),r},Ue;(function(e){e.ONLINE="online",e.OFFLINE="offline",e.CHANGE="change"})(Ue||(Ue={}));function Wn(){var e=navigator;return(0,C.Kn)(e)?e.connection||e.mozConnection||e.webkitConnection:null}function Un(){var e=Wn();return e?{rtt:e.rtt,type:e.type,saveData:e.saveData,downlink:e.downlink,downlinkMax:e.downlinkMax,effectiveType:e.effectiveType}:{}}function gt(){var e=(0,t.CR)((0,i.useState)(function(){return(0,t.pi)({since:void 0,online:navigator==null?void 0:navigator.onLine},Un())}),2),n=e[0],r=e[1];return(0,i.useEffect)(function(){var a=function(){r(function(v){return(0,t.pi)((0,t.pi)({},v),{online:!0,since:new Date})})},o=function(){r(function(v){return(0,t.pi)((0,t.pi)({},v),{online:!1,since:new Date})})},f=function(){r(function(v){return(0,t.pi)((0,t.pi)({},v),Un())})};window.addEventListener(Ue.ONLINE,a),window.addEventListener(Ue.OFFLINE,o);var c=Wn();return c==null||c.addEventListener(Ue.CHANGE,f),function(){window.removeEventListener(Ue.ONLINE,a),window.removeEventListener(Ue.OFFLINE,o),c==null||c.removeEventListener(Ue.CHANGE,f)}},[]),n}var Et=gt,ht=function(e,n){return!Object.is(e,n)};function Rt(e,n){n===void 0&&(n=ht);var r=(0,i.useRef)(),a=(0,i.useRef)();return n(a.current,e)&&(r.current=a.current,a.current=e),r.current}var Ct=Rt,Pt=function(e,n){if(n===void 0&&(n=0),typeof requestAnimationFrame>"u")return{id:setInterval(e,n)};var r=new Date().getTime(),a={id:0},o=function(){var f=new Date().getTime();f-r>=n&&(e(),r=new Date().getTime()),a.id=requestAnimationFrame(o)};return a.id=requestAnimationFrame(o),a};function _t(e){return typeof cancelAnimationFrame>"u"}var Bn=function(e){if(_t(e.id))return clearInterval(e.id);cancelAnimationFrame(e.id)};function Dt(e,n,r){var a=r==null?void 0:r.immediate,o=(0,de.Z)(e),f=(0,i.useRef)();(0,i.useEffect)(function(){if(!(!(0,C.hj)(n)||n<0))return a&&o.current(),f.current=Pt(function(){o.current()},n),function(){f.current&&Bn(f.current)}},[n]);var c=(0,i.useCallback)(function(){f.current&&Bn(f.current)},[]);return c}var Mt=Dt,pt=function(e,n){if(n===void 0&&(n=0),typeof requestAnimationFrame>"u")return{id:setTimeout(e,n)};var r={id:0},a=new Date().getTime(),o=function(){var f=new Date().getTime();f-a>=n?e():r.id=requestAnimationFrame(o)};return r.id=requestAnimationFrame(o),r};function yt(e){return typeof cancelAnimationFrame>"u"}var Fn=function(e){if(yt(e.id))return clearTimeout(e.id);cancelAnimationFrame(e.id)};function Ot(e,n){var r=(0,de.Z)(e),a=(0,i.useRef)();(0,i.useEffect)(function(){if(!(!(0,C.hj)(n)||n<0))return a.current=pt(function(){r.current()},n),function(){a.current&&Fn(a.current)}},[n]);var o=(0,i.useCallback)(function(){a.current&&Fn(a.current)},[]);return o}var Tt=Ot,St=u(68630),Lt=u.n(St),Kn=new WeakMap,Nn=new WeakMap;function wn(e,n){var r=Kn.get(e);if(r)return r;if(Nn.has(e))return e;var a=new Proxy(e,{get:function(o,f,c){var v=Reflect.get(o,f,c);return Lt()(v)||Array.isArray(v)?wn(v,n):v},set:function(o,f,c){var v=Reflect.set(o,f,c);return n(),v},deleteProperty:function(o,f){var c=Reflect.deleteProperty(o,f);return n(),c}});return Kn.set(e,a),Nn.set(a,e),a}function Zt(e){var n=(0,re.Z)(),r=(0,i.useRef)(e),a=(0,Xe.Z)(function(){return wn(r.current,function(){n()})},[]);return a}var At=Zt,bt=u(29178),It=function(e){var n=(0,t.CR)((0,i.useState)(e),2),r=n[0],a=n[1],o=(0,l.Z)(function(){a(e)});return[r,a,o]},Wt=It,Qe=new Set,Be,pn={xs:0,sm:576,md:768,lg:992,xl:1200};function yn(){var e,n,r=Be;if(On(),r!==Be)try{for(var a=(0,t.XA)(Qe),o=a.next();!o.done;o=a.next()){var f=o.value;f()}}catch(c){e={error:c}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}}var ke=!1;function On(){var e,n,r=window.innerWidth,a={},o=!1;try{for(var f=(0,t.XA)(Object.keys(pn)),c=f.next();!c.done;c=f.next()){var v=c.value;a[v]=r>=pn[v],a[v]!==Be[v]&&(o=!0)}}catch(d){e={error:d}}finally{try{c&&!c.done&&(n=f.return)&&n.call(f)}finally{if(e)throw e.error}}o&&(Be=a)}function Ut(e){pn=e,Be&&On()}function Bt(){Ie.Z&&!ke&&(Be={},On(),window.addEventListener("resize",yn),ke=!0);var e=(0,t.CR)((0,i.useState)(Be),2),n=e[0],r=e[1];return(0,i.useEffect)(function(){if(Ie.Z){ke||window.addEventListener("resize",yn);var a=function(){r(Be)};return Qe.add(a),function(){Qe.delete(a),Qe.size===0&&(window.removeEventListener("resize",yn),ke=!1)}}},[]),n}var xn=u(8591);function Ft(e){var n=(0,xn.Z)(),r=(0,t.CR)((0,i.useState)(e),2),a=r[0],o=r[1],f=(0,i.useCallback)(function(c){n.current||o(c)},[]);return[a,f]}var Kt=Ft;function Nt(e,n){n===void 0&&(n=function(){return!0});var r=(0,t.CR)((0,Mn.Z)(),2),a=r[0],o=r[1],f=(0,de.Z)(n);return(0,We.Z)(function(){var c=(0,me.n)(e,document);if(c){var v=function(){var d;c===document?document.scrollingElement?d={left:document.scrollingElement.scrollLeft,top:document.scrollingElement.scrollTop}:d={left:Math.max(window.pageXOffset,document.documentElement.scrollLeft,document.body.scrollLeft),top:Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop)}:d={left:c.scrollLeft,top:c.scrollTop},f.current(d)&&o(d)};return v(),c.addEventListener("scroll",v),function(){c.removeEventListener("scroll",v)}}},[],e),a}var wt=Nt;function xt(e,n){n===void 0&&(n=[]);var r=(0,t.CR)((0,i.useState)(n),2),a=r[0],o=r[1],f=(0,i.useMemo)(function(){return new Set(a)},[a]),c=function(R){return f.has(R)},v=function(R){return f.add(R),o(Array.from(f))},d=function(R){return f.delete(R),o(Array.from(f))},P=function(R){c(R)?d(R):v(R)},g=function(){e.forEach(function(R){f.add(R)}),o(Array.from(f))},m=function(){e.forEach(function(R){f.delete(R)}),o(Array.from(f))},E=(0,i.useMemo)(function(){return e.every(function(R){return!f.has(R)})},[e,f]),L=(0,i.useMemo)(function(){return e.every(function(R){return f.has(R)})&&!E},[e,f,E]),A=(0,i.useMemo)(function(){return!E&&!L},[E,L]),U=function(){return L?m():g()};return{selected:a,noneSelected:E,allSelected:L,partiallySelected:A,setSelected:o,isSelected:c,select:(0,l.Z)(v),unSelect:(0,l.Z)(d),toggle:(0,l.Z)(P),selectAll:(0,l.Z)(g),unSelectAll:(0,l.Z)(m),toggleAll:(0,l.Z)(U)}}var zt=u(9577),jt=(0,zt.f)(function(){return Ie.Z?sessionStorage:void 0}),Ht=jt;function Vt(e){var n=function(){return new Set(e)},r=(0,t.CR)((0,i.useState)(n),2),a=r[0],o=r[1],f=function(d){a.has(d)||o(function(P){var g=new Set(P);return g.add(d),g})},c=function(d){a.has(d)&&o(function(P){var g=new Set(P);return g.delete(d),g})},v=function(){return o(n())};return[a,{add:(0,l.Z)(f),remove:(0,l.Z)(c),reset:(0,l.Z)(v)}]}var Xt=Vt,Yt=u(96638),zn=u(82052),qe={top:NaN,left:NaN,bottom:NaN,right:NaN,height:NaN,width:NaN},jn=(0,t.pi)({text:""},qe);function Gt(e){if(!e||e.rangeCount<1)return qe;var n=e.getRangeAt(0),r=n.getBoundingClientRect(),a=r.height,o=r.width,f=r.top,c=r.left,v=r.right,d=r.bottom;return{height:a,width:o,top:f,left:c,right:v,bottom:d}}function Jt(e){var n=(0,t.CR)((0,i.useState)(jn),2),r=n[0],a=n[1],o=(0,i.useRef)(r),f=(0,i.useRef)(!1);return o.current=r,(0,We.Z)(function(){var c=(0,me.n)(e,document);if(c){var v=function(){var P=null,g="",m=qe;window.getSelection&&(P=window.getSelection(),g=P?P.toString():"",g&&f.current&&(m=Gt(P),a((0,t.pi)((0,t.pi)((0,t.pi)({},r),{text:g}),m))))},d=function(P){if(window.getSelection){o.current.text&&a((0,t.pi)({},jn)),f.current=!1;var g=window.getSelection();g&&(g.removeAllRanges(),f.current=c.contains(P.target))}};return c.addEventListener("mouseup",v),document.addEventListener("mousedown",d),function(){c.removeEventListener("mouseup",v),document.removeEventListener("mousedown",d)}}},[],e),r}var $t=Jt,Tn=u(21455);function Qt(e,n){var r=(0,t.CR)((0,i.useState)(e),2),a=r[0],o=r[1],f=(0,Tn.Z)(function(){o(e)},n).run;return(0,i.useEffect)(function(){f()},[e]),a}var kt=Qt;function qt(e,n,r){var a=(0,t.CR)((0,i.useState)({}),2),o=a[0],f=a[1],c=(0,Tn.Z)(function(){f({})},r).run;(0,i.useEffect)(function(){return c()},n),(0,W.Z)(e,[o])}var er=qt,nr=u(69637),tr={restoreOnUnmount:!1};function rr(e,n){n===void 0&&(n=tr);var r=(0,i.useRef)(Ie.Z?document.title:"");(0,i.useEffect)(function(){document.title=e},[e]),(0,q.Z)(function(){n.restoreOnUnmount&&(document.title=r.current)})}var ur=rr,ar=u(70451),ir=function(e,n){return e?e.map(function(r,a){return Object.is(e[a],n==null?void 0:n[a])?-1:a}).filter(function(r){return r>=0}):n?n.map(function(r,a){return a}):[]},or=function(e,n){var r=(0,i.useRef)();(0,i.useEffect)(function(){var a=ir(r.current,n),o=r.current;return r.current=n,e(a,o,n)},n)},cr=or,fr=(0,s.a)(i.useLayoutEffect),sr=function(e,n){var r=n.containerTarget,a=n.wrapperTarget,o=n.itemHeight,f=n.overscan,c=f===void 0?5:f,v=(0,de.Z)(o),d=(0,zn.Z)(r),P=(0,i.useRef)(!1),g=(0,t.CR)((0,i.useState)([]),2),m=g[0],E=g[1],L=(0,t.CR)((0,i.useState)({}),2),A=L[0],U=L[1],R=function(b,T){if((0,C.hj)(v.current))return Math.ceil(b/v.current);for(var N=0,K=0,ie=T;ie<e.length;ie++){var ce=v.current(ie,e[ie]);if(N+=ce,K=ie,N>=b)break}return K-T},G=function(b){if((0,C.hj)(v.current))return Math.floor(b/v.current)+1;for(var T=0,N=0,K=0;K<e.length;K++){var ie=v.current(K,e[K]);if(T+=ie,T>=b){N=K;break}}return N+1},z=function(b){if((0,C.hj)(v.current)){var T=b*v.current;return T}var N=e.slice(0,b).reduce(function(K,ie,ce){return K+v.current(ce,e[ce])},0);return N},j=(0,i.useMemo)(function(){return(0,C.hj)(v.current)?e.length*v.current:e.reduce(function(b,T,N){return b+v.current(N,e[N])},0)},[e]),I=function(){var b=(0,me.n)(r);if(b){var T=b.scrollTop,N=b.clientHeight,K=G(T),ie=R(N,K),ce=Math.max(0,K-c),be=Math.min(e.length,K+ie+c),Me=z(ce);U({height:j-Me+"px",marginTop:Me+"px"}),E(e.slice(ce,be).map(function(ge,Y){return{data:ge,index:Y+ce}}))}};(0,W.Z)(function(){var b=(0,me.n)(a);b&&Object.keys(A).forEach(function(T){return b.style[T]=A[T]})},[A]),(0,i.useEffect)(function(){!(d!=null&&d.width)||!(d!=null&&d.height)||I()},[d==null?void 0:d.width,d==null?void 0:d.height,e]),(0,ye.Z)("scroll",function(b){if(P.current){P.current=!1;return}b.preventDefault(),I()},{target:r});var F=function(b){var T=(0,me.n)(r);T&&(P.current=!0,T.scrollTop=z(b),I())};return[m,(0,l.Z)(F)]},lr=sr,Ae;(function(e){e[e.Connecting=0]="Connecting",e[e.Open=1]="Open",e[e.Closing=2]="Closing",e[e.Closed=3]="Closed"})(Ae||(Ae={}));function vr(e,n){n===void 0&&(n={});var r=n.reconnectLimit,a=r===void 0?3:r,o=n.reconnectInterval,f=o===void 0?3*1e3:o,c=n.manual,v=c===void 0?!1:c,d=n.onOpen,P=n.onClose,g=n.onMessage,m=n.onError,E=n.protocols,L=(0,de.Z)(d),A=(0,de.Z)(P),U=(0,de.Z)(g),R=(0,de.Z)(m),G=(0,i.useRef)(0),z=(0,i.useRef)(),j=(0,i.useRef)(),I=(0,t.CR)((0,i.useState)(),2),F=I[0],b=I[1],T=(0,t.CR)((0,i.useState)(Ae.Closed),2),N=T[0],K=T[1],ie=function(){var Y;G.current<a&&((Y=j.current)===null||Y===void 0?void 0:Y.readyState)!==Ae.Open&&(z.current&&clearTimeout(z.current),z.current=setTimeout(function(){ce(),G.current++},f))},ce=function(){z.current&&clearTimeout(z.current),j.current&&j.current.close();var Y=new WebSocket(e,E);K(Ae.Connecting),Y.onerror=function(Ee){var le;j.current===Y&&(ie(),(le=R.current)===null||le===void 0||le.call(R,Ee,Y),K(Y.readyState||Ae.Closed))},Y.onopen=function(Ee){var le;j.current===Y&&((le=L.current)===null||le===void 0||le.call(L,Ee,Y),G.current=0,K(Y.readyState||Ae.Open))},Y.onmessage=function(Ee){var le;j.current===Y&&((le=U.current)===null||le===void 0||le.call(U,Ee,Y),b(Ee))},Y.onclose=function(Ee){var le;(le=A.current)===null||le===void 0||le.call(A,Ee,Y),j.current===Y&&ie(),(!j.current||j.current===Y)&&K(Y.readyState||Ae.Closed)},j.current=Y},be=function(Y){var Ee;if(N===Ae.Open)(Ee=j.current)===null||Ee===void 0||Ee.send(Y);else throw new Error("WebSocket disconnected")},Me=function(){G.current=0,ce()},ge=function(){var Y;z.current&&clearTimeout(z.current),G.current=a,(Y=j.current)===null||Y===void 0||Y.close(),j.current=void 0};return(0,i.useEffect)(function(){!v&&e&&Me()},[e,v]),(0,q.Z)(function(){ge()}),{latestMessage:F,sendMessage:(0,l.Z)(be),connect:(0,l.Z)(Me),disconnect:(0,l.Z)(ge),readyState:N,webSocketIns:j.current}}function dr(e,n){var r=(0,i.useRef)({});(0,i.useEffect)(function(){if(r.current){var a=Object.keys((0,t.pi)((0,t.pi)({},r.current),n)),o={};a.forEach(function(f){Object.is(r.current[f],n[f])||(o[f]={from:r.current[f],to:n[f]})}),Object.keys(o).length&&console.log("[why-did-you-update]",e,o)}r.current=n})}var mr=function(e,n,r){r===void 0&&(r={});var a=(0,de.Z)(e);Zn(function(){var o=(0,me.n)(n);if(o){var f=new MutationObserver(a.current);return f.observe(o,r),function(){f==null||f.disconnect()}}},[r],n)},gr=mr},36705:function($,Z,u){u.d(Z,{Z:function(){return l}});var s=u(97582),t=u(67294),i=u(70451);function l(D){D===void 0&&(D=!1);var h=(0,s.CR)((0,i.Z)(!!D),2),M=h[0],W=h[1],S=W.toggle,p=W.set,C=(0,t.useMemo)(function(){var J=function(){return p(!0)},oe=function(){return p(!1)};return{toggle:S,set:function(ue){return p(!!ue)},setTrue:J,setFalse:oe}},[]);return[M,C]}},55914:function($,Z,u){u.d(Z,{Z:function(){return W}});var s=u(3930),t=u(48002),i=function(S){return S.every(function(p){var C=(0,t.n)(p);if(!C)return!1;if(C.getRootNode()instanceof ShadowRoot)return!0})},l=function(S){return S?S.getRootNode():document},D=function(S){if(!S||!document.getRootNode)return document;var p=Array.isArray(S)?S:[S];return i(p)?l((0,t.n)(p[0])):document},h=D,M=u(59682);function W(S,p,C){C===void 0&&(C="click");var J=(0,s.Z)(S);(0,M.Z)(function(){var oe=function(se){var re=Array.isArray(p)?p:[p];re.some(function(_e){var he=(0,t.n)(_e);return!he||he.contains(se.target)})||J.current(se)},ue=h(p),Q=Array.isArray(C)?C:[C];return Q.forEach(function(se){return ue.addEventListener(se,oe)}),function(){Q.forEach(function(se){return ue.removeEventListener(se,oe)})}},Array.isArray(C)?C:[C],p)}},85292:function($,Z,u){u.d(Z,{Z:function(){return i}});var s=u(67294),t=u(8224);function i(l,D){var h=(0,s.useRef)({deps:D,obj:void 0,initialized:!1}).current;return(h.initialized===!1||!(0,t.Z)(h.deps,D))&&(h.deps=D,h.obj=l(),h.initialized=!0),h.obj}},58580:function($,Z,u){var s=u(97582),t=u(67294),i=u(85980);function l(D,h){var M=(0,s.CR)((0,t.useState)(D),2),W=M[0],S=M[1],p=(0,i.Z)(function(){S(D)},h).run;return(0,t.useEffect)(function(){p()},[D]),W}Z.Z=l},8527:function($,Z,u){var s=u(97582),t=u(67294),i=u(85980),l=u(42170);function D(h,M,W){var S=(0,s.CR)((0,t.useState)({}),2),p=S[0],C=S[1],J=(0,i.Z)(function(){C({})},W).run;(0,t.useEffect)(function(){return J()},M),(0,l.Z)(h,[p])}Z.Z=D},85980:function($,Z,u){var s=u(97582),t=u(23279),i=u.n(t),l=u(67294),D=u(3930),h=u(45210),M=u(92770),W=u(31663);function S(p,C){var J;W.Z&&((0,M.mf)(p)||console.error("useDebounceFn expected parameter is a function, got ".concat(typeof p)));var oe=(0,D.Z)(p),ue=(J=C==null?void 0:C.wait)!==null&&J!==void 0?J:1e3,Q=(0,l.useMemo)(function(){return i()(function(){for(var se=[],re=0;re<arguments.length;re++)se[re]=arguments[re];return oe.current.apply(oe,(0,s.ev)([],(0,s.CR)(se),!1))},ue,C)},[]);return(0,h.Z)(function(){Q.cancel()}),{run:Q,cancel:Q.cancel,flush:Q.flush}}Z.Z=S},8291:function($,Z,u){var s=u(67294),t=u(31351);Z.Z=(0,t.o)(s.useEffect)},83204:function($,Z,u){var s=u(3930),t=u(48002),i=u(59682);function l(D,h,M){M===void 0&&(M={});var W=(0,s.Z)(h);(0,i.Z)(function(){var S=(0,t.n)(M.target,window);if(S!=null&&S.addEventListener){var p=function(C){return W.current(C)};return S.addEventListener(D,p,{capture:M.capture,once:M.once,passive:M.passive}),function(){S.removeEventListener(D,p,{capture:M.capture})}}},[D,M.capture,M.once,M.passive],M.target)}Z.Z=l},79785:function($,Z,u){var s=u(97582),t=u(67294);function i(l){var D=(0,s.CR)((0,t.useState)(l),2),h=D[0],M=D[1],W=(0,t.useRef)(h);W.current=h;var S=(0,t.useCallback)(function(){return W.current},[]);return[h,M,S]}Z.Z=i},42532:function($,Z,u){var s=u(97582),t=u(66337),i=u.n(t),l=u(67294),D=u(48002),h=u(59682);function M(W,S){var p=(0,s.CR)((0,l.useState)(),2),C=p[0],J=p[1],oe=(0,s.CR)((0,l.useState)(),2),ue=oe[0],Q=oe[1];return(0,h.Z)(function(){var se=(0,D.n)(W);if(se){var re=new IntersectionObserver(function(_e){var he,pe;try{for(var ae=(0,s.XA)(_e),Pe=ae.next();!Pe.done;Pe=ae.next()){var De=Pe.value;Q(De.intersectionRatio),J(De.isIntersecting)}}catch(Te){he={error:Te}}finally{try{Pe&&!Pe.done&&(pe=ae.return)&&pe.call(ae)}finally{if(he)throw he.error}}},(0,s.pi)((0,s.pi)({},S),{root:(0,D.n)(S==null?void 0:S.root)}));return re.observe(se),function(){re.disconnect()}}},[S==null?void 0:S.rootMargin,S==null?void 0:S.threshold],W),[C,ue]}Z.Z=M},12527:function($,Z,u){var s=u(67294),t=u(52982),i=t.Z?s.useLayoutEffect:s.useEffect;Z.Z=i},3930:function($,Z,u){var s=u(67294);function t(i){var l=(0,s.useRef)(i);return l.current=i,l}Z.Z=t},51283:function($,Z,u){var s=u(9577),t=u(52982),i=(0,s.f)(function(){return t.Z?localStorage:void 0});Z.Z=i},65043:function($,Z,u){var s=u(97582),t=u(67294);function i(l){var D=this,h=(0,t.useRef)(!1);return(0,t.useCallback)(function(){for(var M=[],W=0;W<arguments.length;W++)M[W]=arguments[W];return(0,s.mG)(D,void 0,void 0,function(){var S,p;return(0,s.Jh)(this,function(C){switch(C.label){case 0:if(h.current)return[2];h.current=!0,C.label=1;case 1:return C.trys.push([1,3,,4]),[4,l.apply(void 0,(0,s.ev)([],(0,s.CR)(M),!1))];case 2:return S=C.sent(),h.current=!1,[2,S];case 3:throw p=C.sent(),h.current=!1,p;case 4:return[2]}})})},[l])}Z.Z=i},22638:function($,Z,u){var s=u(67294),t=u(92770),i=u(31663);function l(D){i.Z&&((0,t.mf)(D)||console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof D)));var h=(0,s.useRef)(D);h.current=(0,s.useMemo)(function(){return D},[D]);var M=(0,s.useRef)();return M.current||(M.current=function(){for(var W=[],S=0;S<arguments.length;S++)W[S]=arguments[S];return h.current.apply(this,W)}),M.current}Z.Z=l},78234:function($,Z,u){var s=u(67294),t=u(92770),i=u(31663),l=function(D){i.Z&&((0,t.mf)(D)||console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof D,'".'))),(0,s.useEffect)(function(){D==null||D()},[])};Z.Z=l},27347:function($,Z,u){var s=u(97582),t=u(67294),i=u(45210);function l(D){var h=(0,t.useRef)(0),M=(0,s.CR)((0,t.useState)(D),2),W=M[0],S=M[1],p=(0,t.useCallback)(function(C){cancelAnimationFrame(h.current),h.current=requestAnimationFrame(function(){S(C)})},[]);return(0,i.Z)(function(){cancelAnimationFrame(h.current)}),[W,p]}Z.Z=l},20578:function($,Z,u){u.d(Z,{Z:function(){return _n}});var s=u(97582),t=u(67294),i=u(42170),l=function(_,y){var O=y.manual,w=y.ready,x=w===void 0?!0:w,H=y.defaultParams,V=H===void 0?[]:H,ee=y.refreshDeps,k=ee===void 0?[]:ee,B=y.refreshDepsAction,X=(0,t.useRef)(!1);return X.current=!1,(0,i.Z)(function(){!O&&x&&(X.current=!0,_.run.apply(_,(0,s.ev)([],(0,s.CR)(V),!1)))},[x]),(0,i.Z)(function(){X.current||O||(X.current=!0,B?B():_.refresh())},(0,s.ev)([],(0,s.CR)(k),!1)),{onBefore:function(){if(!x)return{stopNow:!0}}}};l.onInit=function(_){var y=_.ready,O=y===void 0?!0:y,w=_.manual;return{loading:!w&&O}};var D=l,h=u(85292),M=u(45210),W=u(29178),S=new Map,p=function(_){return S.get(_)},C=function(_,y){S.set(_,y),y.then(function(O){return S.delete(_),O}).catch(function(){S.delete(_)})},J={},oe=function(_,y){J[_]&&J[_].forEach(function(O){return O(y)})},ue=function(_,y){return J[_]||(J[_]=[]),J[_].push(y),function(){var w=J[_].indexOf(y);J[_].splice(w,1)}},Q=function(_,y){var O=y.cacheKey,w=y.cacheTime,x=w===void 0?5*60*1e3:w,H=y.staleTime,V=H===void 0?0:H,ee=y.setCache,k=y.getCache,B=(0,t.useRef)(),X=(0,t.useRef)(),q=function(ne,te){ee?ee(te):W.K7(ne,x,te),oe(ne,te.data)},Re=function(ne,te){return te===void 0&&(te=[]),k?k(te):W.lJ(ne)};return(0,h.Z)(function(){if(O){var ne=Re(O);ne&&Object.hasOwnProperty.call(ne,"data")&&(_.state.data=ne.data,_.state.params=ne.params,(V===-1||new Date().getTime()-ne.time<=V)&&(_.state.loading=!1)),B.current=ue(O,function(te){_.setState({data:te})})}},[]),(0,M.Z)(function(){var ne;(ne=B.current)===null||ne===void 0||ne.call(B)}),O?{onBefore:function(ne){var te=Re(O,ne);return!te||!Object.hasOwnProperty.call(te,"data")?{}:V===-1||new Date().getTime()-te.time<=V?{loading:!1,data:te==null?void 0:te.data,error:void 0,returnNow:!0}:{data:te==null?void 0:te.data,error:void 0}},onRequest:function(ne,te){var Ce=p(O);return Ce&&Ce!==X.current?{servicePromise:Ce}:(Ce=ne.apply(void 0,(0,s.ev)([],(0,s.CR)(te),!1)),X.current=Ce,C(O,Ce),{servicePromise:Ce})},onSuccess:function(ne,te){var Ce;O&&((Ce=B.current)===null||Ce===void 0||Ce.call(B),q(O,{data:ne,params:te,time:new Date().getTime()}),B.current=ue(O,function(we){_.setState({data:we})}))},onMutate:function(ne){var te;O&&((te=B.current)===null||te===void 0||te.call(B),q(O,{data:ne,params:_.state.params,time:new Date().getTime()}),B.current=ue(O,function(Ce){_.setState({data:Ce})}))}}:{}},se=Q,re=u(23279),_e=u.n(re),he=function(_,y){var O=y.debounceWait,w=y.debounceLeading,x=y.debounceTrailing,H=y.debounceMaxWait,V=(0,t.useRef)(),ee=(0,t.useMemo)(function(){var k={};return w!==void 0&&(k.leading=w),x!==void 0&&(k.trailing=x),H!==void 0&&(k.maxWait=H),k},[w,x,H]);return(0,t.useEffect)(function(){if(O){var k=_.runAsync.bind(_);return V.current=_e()(function(B){B()},O,ee),_.runAsync=function(){for(var B=[],X=0;X<arguments.length;X++)B[X]=arguments[X];return new Promise(function(q,Re){var ne;(ne=V.current)===null||ne===void 0||ne.call(V,function(){k.apply(void 0,(0,s.ev)([],(0,s.CR)(B),!1)).then(q).catch(Re)})})},function(){var B;(B=V.current)===null||B===void 0||B.cancel(),_.runAsync=k}}},[O,ee]),O?{onCancel:function(){var k;(k=V.current)===null||k===void 0||k.cancel()}}:{}},pe=he,ae=function(_,y){var O=y.loadingDelay,w=y.ready,x=(0,t.useRef)();if(!O)return{};var H=function(){x.current&&clearTimeout(x.current)};return{onBefore:function(){return H(),w!==!1&&(x.current=setTimeout(function(){_.setState({loading:!0})},O)),{loading:!1}},onFinally:function(){H()},onCancel:function(){H()}}},Pe=ae,De=u(52982);function Te(){return De.Z?document.visibilityState!=="hidden":!0}var Se=[];function de(_){return Se.push(_),function(){var O=Se.indexOf(_);Se.splice(O,1)}}if(De.Z){var xe=function(){if(Te())for(var _=0;_<Se.length;_++){var y=Se[_];y()}};window.addEventListener("visibilitychange",xe,!1)}var en=de,nn=function(_,y){var O=y.pollingInterval,w=y.pollingWhenHidden,x=w===void 0?!0:w,H=y.pollingErrorRetryCount,V=H===void 0?-1:H,ee=(0,t.useRef)(),k=(0,t.useRef)(),B=(0,t.useRef)(0),X=function(){var q;ee.current&&clearTimeout(ee.current),(q=k.current)===null||q===void 0||q.call(k)};return(0,i.Z)(function(){O||X()},[O]),O?{onBefore:function(){X()},onError:function(){B.current+=1},onSuccess:function(){B.current=0},onFinally:function(){V===-1||V!==-1&&B.current<=V?ee.current=setTimeout(function(){!x&&!Te()?k.current=en(function(){_.refresh()}):_.refresh()},O):B.current=0},onCancel:function(){X()}}:{}},tn=nn;function Ve(_,y){var O=!1;return function(){for(var w=[],x=0;x<arguments.length;x++)w[x]=arguments[x];O||(O=!0,_.apply(void 0,(0,s.ev)([],(0,s.CR)(w),!1)),setTimeout(function(){O=!1},y))}}function rn(){return De.Z&&typeof navigator.onLine<"u"?navigator.onLine:!0}var Fe=[];function Xe(_){return Fe.push(_),function(){var O=Fe.indexOf(_);O>-1&&Fe.splice(O,1)}}if(De.Z){var Ye=function(){if(!(!Te()||!rn()))for(var _=0;_<Fe.length;_++){var y=Fe[_];y()}};window.addEventListener("visibilitychange",Ye,!1),window.addEventListener("focus",Ye,!1)}var un=Xe,an=function(_,y){var O=y.refreshOnWindowFocus,w=y.focusTimespan,x=w===void 0?5e3:w,H=(0,t.useRef)(),V=function(){var ee;(ee=H.current)===null||ee===void 0||ee.call(H)};return(0,t.useEffect)(function(){if(O){var ee=Ve(_.refresh.bind(_),x);H.current=un(function(){ee()})}return function(){V()}},[O,x]),(0,M.Z)(function(){V()}),{}},on=an,cn=function(_,y){var O=y.retryInterval,w=y.retryCount,x=(0,t.useRef)(),H=(0,t.useRef)(0),V=(0,t.useRef)(!1);return w?{onBefore:function(){V.current||(H.current=0),V.current=!1,x.current&&clearTimeout(x.current)},onSuccess:function(){H.current=0},onError:function(){if(H.current+=1,w===-1||H.current<=w){var ee=O??Math.min(1e3*Math.pow(2,H.current),3e4);x.current=setTimeout(function(){V.current=!0,_.refresh()},ee)}else H.current=0},onCancel:function(){H.current=0,x.current&&clearTimeout(x.current)}}:{}},fn=cn,ye=u(23493),Ie=u.n(ye),Ge=function(_,y){var O=y.throttleWait,w=y.throttleLeading,x=y.throttleTrailing,H=(0,t.useRef)(),V={};return w!==void 0&&(V.leading=w),x!==void 0&&(V.trailing=x),(0,t.useEffect)(function(){if(O){var ee=_.runAsync.bind(_);return H.current=Ie()(function(k){k()},O,V),_.runAsync=function(){for(var k=[],B=0;B<arguments.length;B++)k[B]=arguments[B];return new Promise(function(X,q){var Re;(Re=H.current)===null||Re===void 0||Re.call(H,function(){ee.apply(void 0,(0,s.ev)([],(0,s.CR)(k),!1)).then(X).catch(q)})})},function(){var k;_.runAsync=ee,(k=H.current)===null||k===void 0||k.cancel()}}},[O,w,x]),O?{onCancel:function(){var ee;(ee=H.current)===null||ee===void 0||ee.cancel()}}:{}},sn=Ge,ln=u(3930),me=u(22638),We=u(78234),vn=u(90105),dn=u(31663),mn=u(92770),gn=function(){function _(y,O,w,x){x===void 0&&(x={}),this.serviceRef=y,this.options=O,this.subscribe=w,this.initState=x,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=(0,s.pi)((0,s.pi)((0,s.pi)({},this.state),{loading:!O.manual}),x)}return _.prototype.setState=function(y){y===void 0&&(y={}),this.state=(0,s.pi)((0,s.pi)({},this.state),y),this.subscribe()},_.prototype.runPluginHandler=function(y){for(var O=[],w=1;w<arguments.length;w++)O[w-1]=arguments[w];var x=this.pluginImpls.map(function(H){var V;return(V=H[y])===null||V===void 0?void 0:V.call.apply(V,(0,s.ev)([H],(0,s.CR)(O),!1))}).filter(Boolean);return Object.assign.apply(Object,(0,s.ev)([{}],(0,s.CR)(x),!1))},_.prototype.runAsync=function(){for(var y,O,w,x,H,V,ee,k,B,X,q=[],Re=0;Re<arguments.length;Re++)q[Re]=arguments[Re];return(0,s.mG)(this,void 0,void 0,function(){var ne,te,Ce,we,ze,Je,je,Ke,Le,Ze,$e;return(0,s.Jh)(this,function(Ne){switch(Ne.label){case 0:if(this.count+=1,ne=this.count,te=this.runPluginHandler("onBefore",q),Ce=te.stopNow,we=Ce===void 0?!1:Ce,ze=te.returnNow,Je=ze===void 0?!1:ze,je=(0,s._T)(te,["stopNow","returnNow"]),we)return[2,new Promise(function(){})];if(this.setState((0,s.pi)({loading:!0,params:q},je)),Je)return[2,Promise.resolve(je.data)];(O=(y=this.options).onBefore)===null||O===void 0||O.call(y,q),Ne.label=1;case 1:return Ne.trys.push([1,3,,4]),Ke=this.runPluginHandler("onRequest",this.serviceRef.current,q).servicePromise,Ke||(Ke=($e=this.serviceRef).current.apply($e,(0,s.ev)([],(0,s.CR)(q),!1))),[4,Ke];case 2:return Le=Ne.sent(),ne!==this.count?[2,new Promise(function(){})]:(this.setState({data:Le,error:void 0,loading:!1}),(x=(w=this.options).onSuccess)===null||x===void 0||x.call(w,Le,q),this.runPluginHandler("onSuccess",Le,q),(V=(H=this.options).onFinally)===null||V===void 0||V.call(H,q,Le,void 0),ne===this.count&&this.runPluginHandler("onFinally",q,Le,void 0),[2,Le]);case 3:if(Ze=Ne.sent(),ne!==this.count)return[2,new Promise(function(){})];throw this.setState({error:Ze,loading:!1}),(k=(ee=this.options).onError)===null||k===void 0||k.call(ee,Ze,q),this.runPluginHandler("onError",Ze,q),(X=(B=this.options).onFinally)===null||X===void 0||X.call(B,q,void 0,Ze),ne===this.count&&this.runPluginHandler("onFinally",q,void 0,Ze),Ze;case 4:return[2]}})})},_.prototype.run=function(){for(var y=this,O=[],w=0;w<arguments.length;w++)O[w]=arguments[w];this.runAsync.apply(this,(0,s.ev)([],(0,s.CR)(O),!1)).catch(function(x){y.options.onError||console.error(x)})},_.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},_.prototype.refresh=function(){this.run.apply(this,(0,s.ev)([],(0,s.CR)(this.state.params||[]),!1))},_.prototype.refreshAsync=function(){return this.runAsync.apply(this,(0,s.ev)([],(0,s.CR)(this.state.params||[]),!1))},_.prototype.mutate=function(y){var O=(0,mn.mf)(y)?y(this.state.data):y;this.runPluginHandler("onMutate",O),this.setState({data:O})},_}(),En=gn;function hn(_,y,O){y===void 0&&(y={}),O===void 0&&(O=[]);var w=y.manual,x=w===void 0?!1:w,H=(0,s._T)(y,["manual"]);dn.Z&&y.defaultParams&&!Array.isArray(y.defaultParams)&&console.warn("expected defaultParams is array, got ".concat(typeof y.defaultParams));var V=(0,s.pi)({manual:x},H),ee=(0,ln.Z)(_),k=(0,vn.Z)(),B=(0,h.Z)(function(){var X=O.map(function(q){var Re;return(Re=q==null?void 0:q.onInit)===null||Re===void 0?void 0:Re.call(q,V)}).filter(Boolean);return new En(ee,V,k,Object.assign.apply(Object,(0,s.ev)([{}],(0,s.CR)(X),!1)))},[]);return B.options=V,B.pluginImpls=O.map(function(X){return X(B,V)}),(0,We.Z)(function(){if(!x){var X=B.state.params||y.defaultParams||[];B.run.apply(B,(0,s.ev)([],(0,s.CR)(X),!1))}}),(0,M.Z)(function(){B.cancel()}),{loading:B.state.loading,data:B.state.data,error:B.state.error,params:B.state.params||[],cancel:(0,me.Z)(B.cancel.bind(B)),refresh:(0,me.Z)(B.refresh.bind(B)),refreshAsync:(0,me.Z)(B.refreshAsync.bind(B)),run:(0,me.Z)(B.run.bind(B)),runAsync:(0,me.Z)(B.runAsync.bind(B)),mutate:(0,me.Z)(B.mutate.bind(B))}}var Rn=hn;function Cn(_,y,O){return Rn(_,y,(0,s.ev)((0,s.ev)([],(0,s.CR)(O||[]),!1),[pe,Pe,tn,on,sn,D,se,fn],!1))}var Pn=Cn,_n=Pn},29178:function($,Z,u){u.d(Z,{K7:function(){return i},LK:function(){return D},lJ:function(){return l}});var s=u(97582),t=new Map,i=function(h,M,W){var S=t.get(h);S!=null&&S.timer&&clearTimeout(S.timer);var p=void 0;M>-1&&(p=setTimeout(function(){t.delete(h)},M)),t.set(h,(0,s.pi)((0,s.pi)({},W),{timer:p}))},l=function(h){return t.get(h)},D=function(h){if(h){var M=Array.isArray(h)?h:[h];M.forEach(function(W){return t.delete(W)})}else t.clear()}},96638:function($,Z,u){var s=u(97582),t=u(67294),i=u(92770),l=function(D){var h=(0,s.CR)((0,t.useState)(D),2),M=h[0],W=h[1],S=(0,t.useCallback)(function(p){W(function(C){var J=(0,i.mf)(p)?p(C):p;return J?(0,s.pi)((0,s.pi)({},C),J):C})},[]);return[M,S]};Z.Z=l},82052:function($,Z,u){u.d(Z,{Z:function(){return ue}});var s=u(97582),t=u(91033),i=u(27347),l=u(48002),D=u(52982),h=u(59682),M=u(67294),W=u(44999),S=(0,W.Z)(M.useLayoutEffect),p=S,C=D.Z?p:h.Z,J=C;function oe(Q){var se=(0,s.CR)((0,i.Z)(function(){var he=(0,l.n)(Q);return he?{width:he.clientWidth,height:he.clientHeight}:void 0}),2),re=se[0],_e=se[1];return J(function(){var he=(0,l.n)(Q);if(he){var pe=new t.Z(function(ae){ae.forEach(function(Pe){var De=Pe.target,Te=De.clientWidth,Se=De.clientHeight;_e({width:Te,height:Se})})});return pe.observe(he),function(){pe.disconnect()}}},[],Q),re}var ue=oe},21455:function($,Z,u){var s=u(97582),t=u(23493),i=u.n(t),l=u(67294),D=u(3930),h=u(45210),M=u(92770),W=u(31663);function S(p,C){var J;W.Z&&((0,M.mf)(p)||console.error("useThrottleFn expected parameter is a function, got ".concat(typeof p)));var oe=(0,D.Z)(p),ue=(J=C==null?void 0:C.wait)!==null&&J!==void 0?J:1e3,Q=(0,l.useMemo)(function(){return i()(function(){for(var se=[],re=0;re<arguments.length;re++)se[re]=arguments[re];return oe.current.apply(oe,(0,s.ev)([],(0,s.CR)(se),!1))},ue,C)},[]);return(0,h.Z)(function(){Q.cancel()}),{run:Q,cancel:Q.cancel,flush:Q.flush}}Z.Z=S},69637:function($,Z,u){var s=u(67294),t=u(22638),i=u(92770),l=function(D,h){var M=(0,t.Z)(D),W=(0,s.useRef)(null),S=(0,s.useCallback)(function(){W.current&&clearTimeout(W.current)},[]);return(0,s.useEffect)(function(){if(!(!(0,i.hj)(h)||h<0))return W.current=setTimeout(M,h),S},[h]),S};Z.Z=l},70451:function($,Z,u){var s=u(97582),t=u(67294);function i(l,D){l===void 0&&(l=!1);var h=(0,s.CR)((0,t.useState)(l),2),M=h[0],W=h[1],S=(0,t.useMemo)(function(){var p=D===void 0?!l:D,C=function(){return W(function(Q){return Q===l?p:l})},J=function(Q){return W(Q)},oe=function(){return W(l)},ue=function(){return W(p)};return{toggle:C,set:J,setLeft:oe,setRight:ue}},[]);return[M,S]}Z.Z=i},45210:function($,Z,u){var s=u(67294),t=u(3930),i=u(92770),l=u(31663),D=function(h){l.Z&&((0,i.mf)(h)||console.error("useUnmount expected parameter is a function, got ".concat(typeof h)));var M=(0,t.Z)(h);(0,s.useEffect)(function(){return function(){M.current()}},[])};Z.Z=D},8591:function($,Z,u){var s=u(67294),t=function(){var i=(0,s.useRef)(!1);return(0,s.useEffect)(function(){return i.current=!1,function(){i.current=!0}},[]),i};Z.Z=t},90105:function($,Z,u){var s=u(97582),t=u(67294),i=function(){var l=(0,s.CR)((0,t.useState)({}),2),D=l[1];return(0,t.useCallback)(function(){return D({})},[])};Z.Z=i},42170:function($,Z,u){var s=u(67294),t=u(44370);Z.Z=(0,t.a)(s.useEffect)},44999:function($,Z,u){var s=u(67294),t=u(45210),i=u(8224),l=u(48002),D=function(h){var M=function(W,S,p){var C=(0,s.useRef)(!1),J=(0,s.useRef)([]),oe=(0,s.useRef)([]),ue=(0,s.useRef)();h(function(){var Q,se=Array.isArray(p)?p:[p],re=se.map(function(_e){return(0,l.n)(_e)});if(!C.current){C.current=!0,J.current=re,oe.current=S,ue.current=W();return}(re.length!==J.current.length||!(0,i.Z)(re,J.current)||!(0,i.Z)(S,oe.current))&&((Q=ue.current)===null||Q===void 0||Q.call(ue),J.current=re,oe.current=S,ue.current=W())}),(0,t.Z)(function(){var Q;(Q=ue.current)===null||Q===void 0||Q.call(ue),C.current=!1})};return M};Z.Z=D},8224:function($,Z,u){u.d(Z,{Z:function(){return s}});function s(t,i){if(t===i)return!0;for(var l=0;l<t.length;l++)if(!Object.is(t[l],i[l]))return!1;return!0}},70202:function($,Z,u){u.d(Z,{k:function(){return i}});var s=u(18446),t=u.n(s),i=function(l,D){return l===void 0&&(l=[]),D===void 0&&(D=[]),t()(l,D)}},48002:function($,Z,u){u.d(Z,{n:function(){return i}});var s=u(92770),t=u(52982);function i(l,D){if(t.Z){if(!l)return D;var h;return(0,s.mf)(l)?h=l():"current"in l?h=l.current:h=l,h}}},92770:function($,Z,u){u.d(Z,{G7:function(){return h},HD:function(){return i},Kn:function(){return s},hj:function(){return D},jn:function(){return l},mf:function(){return t}});var s=function(M){return M!==null&&typeof M=="object"},t=function(M){return typeof M=="function"},i=function(M){return typeof M=="string"},l=function(M){return typeof M=="boolean"},D=function(M){return typeof M=="number"},h=function(M){return typeof M>"u"}},52982:function($,Z){var u=!!(typeof window<"u"&&window.document&&window.document.createElement);Z.Z=u},31663:function($,Z){var u=!1;Z.Z=u},59682:function($,Z,u){var s=u(67294),t=u(44999),i=(0,t.Z)(s.useEffect);Z.Z=i}}]);