@swiftcast/clip-editor-react 0.0.1-alpha.4 → 0.0.1-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/index.html +1 -1
- package/dist/mf-manifest.json +37 -1200
- package/dist/mf-stats.json +38 -1566
- package/dist/remoteEntry.js +5 -5
- package/dist/static/js/{8094.03bf5edc.js → 637.83cf8d27.js} +4 -4
- package/dist/static/js/async/191.71dfdad9.js +2 -0
- package/dist/static/js/async/194.b5006c1a.js +1 -0
- package/dist/static/js/async/365.c527c8f5.js +175 -0
- package/dist/static/js/async/365.c527c8f5.js.LICENSE.txt +144 -0
- package/dist/static/js/async/375.46fcb5d6.js +1 -0
- package/dist/static/js/async/491.3bcb1d90.js +1 -0
- package/dist/static/js/async/502.fcdc65e5.js +3 -0
- package/dist/static/js/async/502.fcdc65e5.js.LICENSE.txt +21 -0
- package/dist/static/js/async/525.6ae73442.js +1 -0
- package/dist/static/js/async/593.a28c81c3.js +36 -0
- package/dist/static/js/async/{1690.28cd4402.js.LICENSE.txt → 593.a28c81c3.js.LICENSE.txt} +46 -0
- package/dist/static/js/async/661.7ab5634a.js +8 -0
- package/dist/static/js/async/{5285.fe1791d9.js.LICENSE.txt → 661.7ab5634a.js.LICENSE.txt} +8 -1
- package/dist/static/js/async/682.f9ec3784.js +2 -0
- package/dist/static/js/async/720.a9a82d77.js +1 -0
- package/dist/static/js/async/852.06f45cf6.js +6 -0
- package/dist/static/js/async/914.1bc3e252.js +3 -0
- package/dist/static/js/async/914.1bc3e252.js.LICENSE.txt +28 -0
- package/dist/static/js/async/__federation_expose_ProjectsPage.c3d4eb98.js +2 -0
- package/dist/static/js/async/{6452.a2c7f164.js.LICENSE.txt → __federation_expose_ProjectsPage.c3d4eb98.js.LICENSE.txt} +1 -1
- package/dist/static/js/async/__federation_expose_SniffingPage.f4c73b9b.js +1 -0
- package/dist/static/js/async/__federation_expose_WorkFlow.a7a39987.js +11 -0
- package/dist/static/js/async/lib-axios.64c3f6d8.js +1 -0
- package/dist/static/js/index.d158f4a7.js +1 -0
- package/package.json +2 -2
- package/dist/static/js/async/109.256a32bd.js +0 -2
- package/dist/static/js/async/109.256a32bd.js.LICENSE.txt +0 -9
- package/dist/static/js/async/1099.7ec4a1d4.js +0 -1
- package/dist/static/js/async/1167.eafb458c.js +0 -1
- package/dist/static/js/async/1229.3824b191.js +0 -1
- package/dist/static/js/async/1358.c5623f2c.js +0 -2
- package/dist/static/js/async/1358.c5623f2c.js.LICENSE.txt +0 -9
- package/dist/static/js/async/1359.c78c33cc.js +0 -1
- package/dist/static/js/async/1408.45dd942f.js +0 -1
- package/dist/static/js/async/1475.ca68a958.js +0 -2
- package/dist/static/js/async/1475.ca68a958.js.LICENSE.txt +0 -9
- package/dist/static/js/async/1491.afc05a88.js +0 -1
- package/dist/static/js/async/1536.acd44187.js +0 -2
- package/dist/static/js/async/1536.acd44187.js.LICENSE.txt +0 -9
- package/dist/static/js/async/1545.339b9e4a.js +0 -1
- package/dist/static/js/async/1663.0a34b1a6.js +0 -2
- package/dist/static/js/async/1663.0a34b1a6.js.LICENSE.txt +0 -9
- package/dist/static/js/async/1677.4c84f733.js +0 -2
- package/dist/static/js/async/1677.4c84f733.js.LICENSE.txt +0 -9
- package/dist/static/js/async/1690.28cd4402.js +0 -2
- package/dist/static/js/async/1855.dc79d72c.js +0 -1
- package/dist/static/js/async/191.ba82b2aa.js +0 -2
- package/dist/static/js/async/1921.7437e362.js +0 -1
- package/dist/static/js/async/2068.600661ee.js +0 -1
- package/dist/static/js/async/2111.5db2cfc1.js +0 -2
- package/dist/static/js/async/2111.5db2cfc1.js.LICENSE.txt +0 -9
- package/dist/static/js/async/213.94b97063.js +0 -1
- package/dist/static/js/async/2199.65d29190.js +0 -1
- package/dist/static/js/async/2305.9e6f32d6.js +0 -2
- package/dist/static/js/async/2305.9e6f32d6.js.LICENSE.txt +0 -8
- package/dist/static/js/async/2375.042f6260.js +0 -1
- package/dist/static/js/async/2469.fc8a042e.js +0 -1
- package/dist/static/js/async/2746.01a51768.js +0 -2
- package/dist/static/js/async/2746.01a51768.js.LICENSE.txt +0 -1
- package/dist/static/js/async/2790.ff501683.js +0 -5
- package/dist/static/js/async/2900.6ab855e9.js +0 -1
- package/dist/static/js/async/2927.6711b41c.js +0 -2
- package/dist/static/js/async/2927.6711b41c.js.LICENSE.txt +0 -45
- package/dist/static/js/async/3126.500697e8.js +0 -1
- package/dist/static/js/async/3145.6d46bb3e.js +0 -1
- package/dist/static/js/async/3328.3edb2c5f.js +0 -7
- package/dist/static/js/async/3328.3edb2c5f.js.LICENSE.txt +0 -9
- package/dist/static/js/async/3357.3cc4b057.js +0 -1
- package/dist/static/js/async/3358.f439fe77.js +0 -3
- package/dist/static/js/async/3436.02b7dced.js +0 -2
- package/dist/static/js/async/3436.02b7dced.js.LICENSE.txt +0 -9
- package/dist/static/js/async/35.63ec382c.js +0 -2
- package/dist/static/js/async/35.63ec382c.js.LICENSE.txt +0 -9
- package/dist/static/js/async/3500.2a5e861e.js +0 -2
- package/dist/static/js/async/3500.2a5e861e.js.LICENSE.txt +0 -5
- package/dist/static/js/async/3714.3de0cc07.js +0 -1
- package/dist/static/js/async/3761.30e06c21.js +0 -2
- package/dist/static/js/async/4437.c013a47e.js +0 -1
- package/dist/static/js/async/4516.86f759b3.js +0 -1
- package/dist/static/js/async/4588.381756a4.js +0 -4
- package/dist/static/js/async/4617.3c1cb2e1.js +0 -1
- package/dist/static/js/async/4804.4b5a6c4b.js +0 -1
- package/dist/static/js/async/4964.31141e42.js +0 -1
- package/dist/static/js/async/5040.ad9e108f.js +0 -2
- package/dist/static/js/async/5040.ad9e108f.js.LICENSE.txt +0 -9
- package/dist/static/js/async/5058.6c88d364.js +0 -2
- package/dist/static/js/async/5058.6c88d364.js.LICENSE.txt +0 -62
- package/dist/static/js/async/5083.a594c3b4.js +0 -2
- package/dist/static/js/async/5083.a594c3b4.js.LICENSE.txt +0 -9
- package/dist/static/js/async/5127.095785dd.js +0 -2
- package/dist/static/js/async/5127.095785dd.js.LICENSE.txt +0 -9
- package/dist/static/js/async/5128.27f2ad05.js +0 -2
- package/dist/static/js/async/5128.27f2ad05.js.LICENSE.txt +0 -19
- package/dist/static/js/async/5184.c393a127.js +0 -1
- package/dist/static/js/async/5218.87494e0c.js +0 -1
- package/dist/static/js/async/5285.fe1791d9.js +0 -5
- package/dist/static/js/async/5408.253200ee.js +0 -1
- package/dist/static/js/async/5450.359d95c3.js +0 -1
- package/dist/static/js/async/5469.f0179be1.js +0 -1
- package/dist/static/js/async/5522.cc016a92.js +0 -1
- package/dist/static/js/async/5770.c3d8277f.js +0 -1
- package/dist/static/js/async/5876.36f8e85a.js +0 -2
- package/dist/static/js/async/5876.36f8e85a.js.LICENSE.txt +0 -9
- package/dist/static/js/async/5921.bfb648cb.js +0 -1
- package/dist/static/js/async/6127.1257e70c.js +0 -1
- package/dist/static/js/async/6140.5479e7b9.js +0 -2
- package/dist/static/js/async/6140.5479e7b9.js.LICENSE.txt +0 -9
- package/dist/static/js/async/6297.336e7ffc.js +0 -2
- package/dist/static/js/async/6297.336e7ffc.js.LICENSE.txt +0 -9
- package/dist/static/js/async/6452.a2c7f164.js +0 -2
- package/dist/static/js/async/6504.53e9c9c5.js +0 -1
- package/dist/static/js/async/6678.fe09eab0.js +0 -1
- package/dist/static/js/async/6682.e0084aeb.js +0 -2
- package/dist/static/js/async/6703.f8fca121.js +0 -1
- package/dist/static/js/async/6716.50326c01.js +0 -2
- package/dist/static/js/async/6716.50326c01.js.LICENSE.txt +0 -8
- package/dist/static/js/async/6734.4a52d73f.js +0 -6
- package/dist/static/js/async/6964.d244eb15.js +0 -7
- package/dist/static/js/async/7300.69a06cf8.js +0 -1
- package/dist/static/js/async/7420.4846bd05.js +0 -2
- package/dist/static/js/async/7420.4846bd05.js.LICENSE.txt +0 -9
- package/dist/static/js/async/7426.2ccadab1.js +0 -1
- package/dist/static/js/async/747.3568c169.js +0 -2
- package/dist/static/js/async/747.3568c169.js.LICENSE.txt +0 -9
- package/dist/static/js/async/753.c9fb4bb6.js +0 -2
- package/dist/static/js/async/753.c9fb4bb6.js.LICENSE.txt +0 -8
- package/dist/static/js/async/7560.cfdf6fc1.js +0 -3
- package/dist/static/js/async/7560.cfdf6fc1.js.LICENSE.txt +0 -19
- package/dist/static/js/async/7693.99348793.js +0 -2
- package/dist/static/js/async/7693.99348793.js.LICENSE.txt +0 -6
- package/dist/static/js/async/7785.4146afc2.js +0 -1
- package/dist/static/js/async/7855.3a70056f.js +0 -1
- package/dist/static/js/async/787.fe3d07c6.js +0 -1
- package/dist/static/js/async/7889.09b20686.js +0 -1
- package/dist/static/js/async/7961.5d19744b.js +0 -1
- package/dist/static/js/async/8062.09a6fdbd.js +0 -2
- package/dist/static/js/async/8062.09a6fdbd.js.LICENSE.txt +0 -9
- package/dist/static/js/async/8112.26771b29.js +0 -1
- package/dist/static/js/async/8145.7711418b.js +0 -1
- package/dist/static/js/async/8194.e3680a0e.js +0 -1
- package/dist/static/js/async/8247.71ad8780.js +0 -1
- package/dist/static/js/async/8314.4fbcc580.js +0 -2
- package/dist/static/js/async/8314.4fbcc580.js.LICENSE.txt +0 -9
- package/dist/static/js/async/8327.d70b6d2b.js +0 -2
- package/dist/static/js/async/8327.d70b6d2b.js.LICENSE.txt +0 -9
- package/dist/static/js/async/8377.491112d2.js +0 -1
- package/dist/static/js/async/8430.cc4ab0b0.js +0 -2
- package/dist/static/js/async/8430.cc4ab0b0.js.LICENSE.txt +0 -9
- package/dist/static/js/async/8512.ae31acae.js +0 -2
- package/dist/static/js/async/8512.ae31acae.js.LICENSE.txt +0 -9
- package/dist/static/js/async/8522.7b59f26a.js +0 -17
- package/dist/static/js/async/8572.889a2f0f.js +0 -1
- package/dist/static/js/async/8636.3a0609ce.js +0 -4
- package/dist/static/js/async/8652.231efd09.js +0 -1
- package/dist/static/js/async/8719.d5d23e80.js +0 -1
- package/dist/static/js/async/8865.2104211d.js +0 -8
- package/dist/static/js/async/8895.153ddc5f.js +0 -2
- package/dist/static/js/async/8895.153ddc5f.js.LICENSE.txt +0 -19
- package/dist/static/js/async/8913.64eea008.js +0 -1
- package/dist/static/js/async/8964.196834ba.js +0 -1
- package/dist/static/js/async/9047.c6fa7623.js +0 -452
- package/dist/static/js/async/9047.c6fa7623.js.LICENSE.txt +0 -117
- package/dist/static/js/async/905.4340e6d5.js +0 -2
- package/dist/static/js/async/905.4340e6d5.js.LICENSE.txt +0 -5
- package/dist/static/js/async/9146.efbecec7.js +0 -1
- package/dist/static/js/async/9149.82308d8f.js +0 -1
- package/dist/static/js/async/9249.622a286f.js +0 -2
- package/dist/static/js/async/9249.622a286f.js.LICENSE.txt +0 -5
- package/dist/static/js/async/9525.2192486e.js +0 -1
- package/dist/static/js/async/9594.516654c9.js +0 -2
- package/dist/static/js/async/9594.516654c9.js.LICENSE.txt +0 -9
- package/dist/static/js/async/9630.c795adce.js +0 -1
- package/dist/static/js/async/9669.dc59da89.js +0 -75
- package/dist/static/js/async/9798.20a5011c.js +0 -2
- package/dist/static/js/async/9798.20a5011c.js.LICENSE.txt +0 -9
- package/dist/static/js/async/9854.c86b795e.js +0 -1
- package/dist/static/js/async/9905.e5456d13.js +0 -2
- package/dist/static/js/async/9905.e5456d13.js.LICENSE.txt +0 -9
- package/dist/static/js/async/9973.04e09e35.js +0 -1
- package/dist/static/js/async/__federation_expose_ProjectsPage.d61a8a68.js +0 -1
- package/dist/static/js/async/__federation_expose_SniffingPage.79823a67.js +0 -1
- package/dist/static/js/async/__federation_expose_WorkFlow.39bd1b8e.js +0 -11
- package/dist/static/js/index.03348712.js +0 -1
- /package/dist/static/css/async/{9139.ecec5306.css → 139.ecec5306.css} +0 -0
- /package/dist/static/js/async/{191.ba82b2aa.js.LICENSE.txt → 191.71dfdad9.js.LICENSE.txt} +0 -0
- /package/dist/static/js/async/{6682.e0084aeb.js.LICENSE.txt → 682.f9ec3784.js.LICENSE.txt} +0 -0
- /package/dist/static/js/async/{3761.30e06c21.js.LICENSE.txt → 852.06f45cf6.js.LICENSE.txt} +0 -0
@@ -1,2 +0,0 @@
|
|
1
|
-
/*! For license information please see 5128.27f2ad05.js.LICENSE.txt */
|
2
|
-
"use strict";(self.webpackChunkremote=self.webpackChunkremote||[]).push([["5128"],{85492:function(t){let e={},r=e.hasOwnProperty,o=(t,e)=>{for(let o in t)r.call(t,o)&&e(o,t[o])},n=(t,e)=>(e&&o(e,(e,r)=>{t[e]=r}),t),i=(t,e)=>{let r=t.length,o=-1;for(;++o<r;)e(t[o])},s=t=>"\\u"+("0000"+t).slice(-4),a=(t,e)=>{let r=t.toString(16);return e?r:r.toUpperCase()},l=e.toString,u=Array.isArray,c=t=>"function"==typeof Buffer&&Buffer.isBuffer(t),d=t=>"[object Object]"==l.call(t),h=t=>"string"==typeof t||"[object String]"==l.call(t),f=t=>"number"==typeof t||"[object Number]"==l.call(t),p=t=>"bigint"==typeof t,m=t=>"function"==typeof t,v=t=>"[object Map]"==l.call(t),g=t=>"[object Set]"==l.call(t),y={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},S=/[\\\b\f\n\r\t]/,w=/[0-9]/,b=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,R=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,_=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,x=(t,e)=>{let r,l=()=>{k=F,++e.indentLevel,F=e.indent.repeat(e.indentLevel)},P={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},C=e&&e.json;C&&(P.quotes="double",P.wrap=!0),"single"!=(e=n(P,e)).quotes&&"double"!=e.quotes&&"backtick"!=e.quotes&&(e.quotes="single");let L="double"==e.quotes?'"':"backtick"==e.quotes?"`":"'",M=e.compact,E=e.lowercaseHex,F=e.indent.repeat(e.indentLevel),k="",j=e.__inline1__,I=e.__inline2__,O=M?"":"\n",D=!0,T="binary"==e.numbers,B="octal"==e.numbers,A="decimal"==e.numbers,N="hexadecimal"==e.numbers;if(C&&t&&m(t.toJSON)&&(t=t.toJSON()),!h(t)){if(v(t))return 0==t.size?"new Map()":(M||(e.__inline1__=!0,e.__inline2__=!1),"new Map("+x(Array.from(t),e)+")");if(g(t))return 0==t.size?"new Set()":"new Set("+x(Array.from(t),e)+")";if(c(t))return 0==t.length?"Buffer.from([])":"Buffer.from("+x(Array.from(t),e)+")";if(u(t))return(r=[],e.wrap=!0,j&&(e.__inline1__=!1,e.__inline2__=!0),I||l(),i(t,t=>{D=!1,I&&(e.__inline2__=!1),r.push((M||I?"":F)+x(t,e))}),D)?"[]":I?"["+r.join(", ")+"]":"["+O+r.join(","+O)+O+(M?"":k)+"]";if(f(t)||p(t)){let e;if(C)return JSON.stringify(Number(t));if(A)e=String(t);else if(N){let r=t.toString(16);E||(r=r.toUpperCase()),e="0x"+r}else T?e="0b"+t.toString(2):B&&(e="0o"+t.toString(8));return p(t)?e+"n":e}if(p(t))return C?JSON.stringify(Number(t)):t+"n";else if(d(t))return(r=[],e.wrap=!0,l(),o(t,(t,o)=>{D=!1,r.push((M?"":F)+x(t,e)+":"+(M?"":" ")+x(o,e))}),D)?"{}":"{"+O+r.join(","+O)+O+(M?"":k)+"}";else return C?JSON.stringify(t)||"null":String(t)}let $=e.escapeEverything?R:_;return r=t.replace($,(t,r,o,n,i,l)=>{if(r){if(e.minimal)return r;let t=r.charCodeAt(0),o=r.charCodeAt(1);return e.es6?"\\u{"+a((t-55296)*1024+o-56320+65536,E)+"}":s(a(t,E))+s(a(o,E))}if(o)return s(a(o.charCodeAt(0),E));if("\0"==t&&!C&&!w.test(l.charAt(i+1)))return"\\0";if(n)return n==L||e.escapeEverything?"\\"+n:n;if(S.test(t))return y[t];if(e.minimal&&!b.test(t))return t;let u=a(t.charCodeAt(0),E);return C||u.length>2?s(u):"\\x"+("00"+u).slice(-2)}),"`"==L&&(r=r.replace(/\$\{/g,"\\${")),e.isScriptContext&&(r=r.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,C?"\\u003C!--":"\\x3C!--")),e.wrap&&(r=L+r+L),r};x.version="3.0.2",t.exports=x},73248:function(t,e,r){r.d(e,{Z:()=>o});let o=function(t,e){}},11151:function(t,e,r){var o=r(8491),n="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},i=o.useState,s=o.useEffect,a=o.useLayoutEffect,l=o.useDebugValue;function u(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!n(t,r)}catch(t){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var r=e(),o=i({inst:{value:r,getSnapshot:e}}),n=o[0].inst,c=o[1];return a(function(){n.value=r,n.getSnapshot=e,u(n)&&c({inst:n})},[t,r,e]),s(function(){return u(n)&&c({inst:n}),t(function(){u(n)&&c({inst:n})})},[t]),l(r),r};e.useSyncExternalStore=void 0!==o.useSyncExternalStore?o.useSyncExternalStore:c},63344:function(t,e,r){var o=r(8491),n=r(94191),i="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},s=n.useSyncExternalStore,a=o.useRef,l=o.useEffect,u=o.useMemo,c=o.useDebugValue;e.useSyncExternalStoreWithSelector=function(t,e,r,o,n){var d=a(null);if(null===d.current){var h={hasValue:!1,value:null};d.current=h}else h=d.current;var f=s(t,(d=u(function(){function t(t){if(!l){if(l=!0,s=t,t=o(t),void 0!==n&&h.hasValue){var e=h.value;if(n(e,t))return a=e}return a=t}if(e=a,i(s,t))return e;var r=o(t);return void 0!==n&&n(e,r)?(s=t,e):(s=t,a=r)}var s,a,l=!1,u=void 0===r?null:r;return[function(){return t(e())},null===u?void 0:function(){return t(u())}]},[e,r,o,n]))[0],d[1]);return l(function(){h.hasValue=!0,h.value=f},[f]),c(f),f}},94191:function(t,e,r){t.exports=r(11151)},40789:function(t,e,r){t.exports=r(63344)},92116:function(t,e,r){r.r(e),r.d(e,{CatchBoundary:()=>tB,matchContext:()=>tZ,createControlledPromise:()=>D,createMemoryHistory:()=>_,useRouterState:()=>tX,Matches:()=>eM,isPlainObject:()=>F,useLinkProps:()=>eD,useStableCallback:()=>ex,createRootRoute:()=>eo,createRouteMask:()=>en,parsePathname:()=>H,stripSearchParams:()=>tk,replaceEqualDeep:()=>E,defaultParseSearch:()=>tc,PathParamError:()=>tR,defaultSerializeError:()=>ty,lazyFn:()=>t_,isPlainArray:()=>j,Scripts:()=>e0,HeadContent:()=>eQ,Router:()=>e$,redirect:()=>tm,Block:()=>eJ,matchPathname:()=>J,createLazyFileRoute:()=>ed,linkOptions:()=>eA,shallow:()=>B,isNotFound:()=>Z,ClientOnly:()=>t$,NotFoundRoute:()=>ei,Link:()=>eB,CatchNotFound:()=>eh,RouteApi:()=>t9,createLazyRoute:()=>ec,RootRoute:()=>er,matchByPath:()=>q,resolvePath:()=>U,isMatch:()=>tE,trimPath:()=>W,trimPathRight:()=>V,trimPathLeft:()=>$,useChildMatches:()=>eO,rootRouteId:()=>tp,getRouterContext:()=>tG,useMatches:()=>ej,useSearch:()=>t5,notFound:()=>X,joinPaths:()=>A,ScrollRestoration:()=>ez,stringifySearchWith:()=>tf,useLoaderDeps:()=>t1,encode:()=>ta,defaultStringifySearch:()=>td,cleanPath:()=>N,ScriptOnce:()=>ev,getRouteApi:()=>t8,createFileRoute:()=>es,parseSearchWith:()=>th,useAwaited:()=>tO,Outlet:()=>eb,useCanGoBack:()=>eX,useElementScrollRestoration:()=>eU,Match:()=>ey,DefaultGlobalNotFound:()=>ef,LazyRoute:()=>eu,createRootRouteWithContext:()=>et,FileRouteLoader:()=>el,Navigate:()=>t3,RouterProvider:()=>eW,createBrowserHistory:()=>b,Asset:()=>eZ,createRouter:()=>eN,escapeJSON:()=>T,invariant:()=>o,getInitialRouterState:()=>tx,decode:()=>tu,interpolatePath:()=>K,Await:()=>tD,pick:()=>M,useBlocker:()=>eH,createLink:()=>eT,FileRoute:()=>ea,useLayoutEffect:()=>eP,useParentMatches:()=>eI,defer:()=>tM,useNavigate:()=>t4,useRouter:()=>tq,isRedirect:()=>tv,useLocation:()=>eq,removeBasepath:()=>G,useParams:()=>t2,createHashHistory:()=>R,functionalUpdate:()=>L,RouterContextProvider:()=>eV,SearchParamError:()=>tb,TSR_DEFERRED_PROMISE:()=>tL,deepEqual:()=>O,lazyRouteComponent:()=>eR,componentTypes:()=>tC,warning:()=>n.Z,rootRouteWithContext:()=>ee,useRouteContext:()=>eG,useMatchRoute:()=>eF,createHistory:()=>S,createRoute:()=>t7,useMatch:()=>tQ,useLoaderData:()=>t0,Route:()=>t6,MatchRoute:()=>ek,ErrorComponent:()=>tN,retainSearchParams:()=>tF});function o(t,e){if(!t)throw Error("Invariant failed")}var n=r(73248);class i{constructor(t){this.listeners=new Set,this._subscriptions=[],this.lastSeenDepValues=[],this.getDepVals=()=>{let t=[],e=[];for(let r of this.options.deps)t.push(r.prevState),e.push(r.state);return this.lastSeenDepValues=e,{prevDepVals:t,currDepVals:e,prevVal:this.prevState??void 0}},this.recompute=()=>{var t,e;this.prevState=this.state;let{prevDepVals:r,currDepVals:o,prevVal:n}=this.getDepVals();this.state=this.options.fn({prevDepVals:r,currDepVals:o,prevVal:n}),null==(e=(t=this.options).onUpdate)||e.call(t)},this.checkIfRecalculationNeededDeeply=()=>{for(let t of this.options.deps)t instanceof i&&t.checkIfRecalculationNeededDeeply();let t=!1,e=this.lastSeenDepValues,{currDepVals:r}=this.getDepVals();for(let o=0;o<r.length;o++)if(r[o]!==e[o]){t=!0;break}t&&this.recompute()},this.mount=()=>(this.registerOnGraph(),this.checkIfRecalculationNeededDeeply(),()=>{for(let t of(this.unregisterFromGraph(),this._subscriptions))t()}),this.subscribe=t=>{var e,r;this.listeners.add(t);let o=null==(r=(e=this.options).onSubscribe)?void 0:r.call(e,t,this);return()=>{this.listeners.delete(t),null==o||o()}},this.options=t,this.state=t.fn({prevDepVals:void 0,prevVal:void 0,currDepVals:this.getDepVals().currDepVals})}registerOnGraph(t=this.options.deps){for(let e of t)if(e instanceof i)e.registerOnGraph(),this.registerOnGraph(e.options.deps);else if(e instanceof m){let t=s.get(e);t||(t=new Set,s.set(e,t)),t.add(this);let r=a.get(this);r||(r=new Set,a.set(this,r)),r.add(e)}}unregisterFromGraph(t=this.options.deps){for(let e of t)if(e instanceof i)this.unregisterFromGraph(e.options.deps);else if(e instanceof m){let t=s.get(e);t&&t.delete(this);let r=a.get(this);r&&r.delete(e)}}}let s=new WeakMap,a=new WeakMap,l={current:[]},u=!1,c=0,d=new Set,h=new Map;function f(t){if((c>0&&!h.has(t)&&h.set(t,t.prevState),d.add(t),!(c>0))&&!u)try{for(u=!0;d.size>0;){let t=Array.from(d);for(let e of(d.clear(),t)){let t=h.get(e)??e.prevState;e.prevState=t,function(t){t.listeners.forEach(e=>e({prevVal:t.prevState,currentVal:t.state}))}(e)}for(let e of t){let t=s.get(e);t&&(l.current.push(e),function t(e){for(let r of Array.from(e).sort((t,e)=>t instanceof i&&t.options.deps.includes(e)?1:e instanceof i&&e.options.deps.includes(t)?-1:0)){if(l.current.includes(r))continue;l.current.push(r),r.recompute();let e=a.get(r);if(e)for(let r of e){let e=s.get(r);e&&t(e)}}}(t))}for(let e of t){let t=s.get(e);if(t)for(let e of t)!function(t){t.listeners.forEach(e=>e({prevVal:t.prevState,currentVal:t.state}))}(e)}}}finally{u=!1,l.current=[],h.clear()}}function p(t){c++;try{t()}finally{if(0==--c){let t=Array.from(d)[0];t&&f(t)}}}class m{constructor(t,e){this.listeners=new Set,this.subscribe=t=>{var e,r;this.listeners.add(t);let o=null==(r=null==(e=this.options)?void 0:e.onSubscribe)?void 0:r.call(e,t,this);return()=>{this.listeners.delete(t),null==o||o()}},this.setState=t=>{var e,r,o;this.prevState=this.state,this.state=(null==(e=this.options)?void 0:e.updateFn)?this.options.updateFn(this.prevState)(t):t(this.prevState),null==(o=null==(r=this.options)?void 0:r.onUpdate)||o.call(r),f(this)},this.prevState=t,this.state=t,this.options=e}}let v="__TSR_index",g="popstate",y="beforeunload";function S(t){let e=t.getLocation(),r=new Set,o=o=>{e=t.getLocation(),r.forEach(t=>t({location:e,action:o}))},n=r=>{t.notifyOnIndexChange??!0?o(r):e=t.getLocation()},i=async({task:r,navigateOpts:o,...n})=>{var i,s;if(null==o?void 0:o.ignoreBlocker)return void r();let a=(null==(i=t.getBlockers)?void 0:i.call(t))??[],l="PUSH"===n.type||"REPLACE"===n.type;if("undefined"!=typeof document&&a.length&&l)for(let r of a){let o=x(n.path,n.state);if(await r.blockerFn({currentLocation:e,nextLocation:o,action:n.type})){null==(s=t.onBlocked)||s.call(t);return}}r()};return{get location(){return e},get length(){return t.getLength()},subscribers:r,subscribe:t=>(r.add(t),()=>{r.delete(t)}),push:(r,n,s)=>{i({task:()=>{t.pushState(r,n),o({type:"PUSH"})},navigateOpts:s,type:"PUSH",path:r,state:n=w(e.state[v]+1,n)})},replace:(r,n,s)=>{i({task:()=>{t.replaceState(r,n),o({type:"REPLACE"})},navigateOpts:s,type:"REPLACE",path:r,state:n=w(e.state[v],n)})},go:(e,r)=>{i({task:()=>{t.go(e),n({type:"GO",index:e})},navigateOpts:r,type:"GO"})},back:e=>{i({task:()=>{t.back((null==e?void 0:e.ignoreBlocker)??!1),n({type:"BACK"})},navigateOpts:e,type:"BACK"})},forward:e=>{i({task:()=>{t.forward((null==e?void 0:e.ignoreBlocker)??!1),n({type:"FORWARD"})},navigateOpts:e,type:"FORWARD"})},canGoBack:()=>0!==e.state[v],createHref:e=>t.createHref(e),block:e=>{var r;if(!t.setBlockers)return()=>{};let o=(null==(r=t.getBlockers)?void 0:r.call(t))??[];return t.setBlockers([...o,e]),()=>{var r,o;let n=(null==(r=t.getBlockers)?void 0:r.call(t))??[];null==(o=t.setBlockers)||o.call(t,n.filter(t=>t!==e))}},flush:()=>{var e;return null==(e=t.flush)?void 0:e.call(t)},destroy:()=>{var e;return null==(e=t.destroy)?void 0:e.call(t)},notify:o}}function w(t,e){return e||(e={}),{...e,key:P(),[v]:t}}function b(t){var e;let r,o,n,i=(null==t?void 0:t.window)??("undefined"!=typeof document?window:void 0),s=i.history.pushState,a=i.history.replaceState,l=[],u=()=>l,c=(null==t?void 0:t.createHref)??(t=>t),d=(null==t?void 0:t.parseLocation)??(()=>x(`${i.location.pathname}${i.location.search}${i.location.hash}`,i.history.state));(null==(e=i.history.state)?void 0:e.key)||i.history.replaceState({[v]:0,key:P()},"");let h=d(),f=!1,p=!1,m=!1,w=!1,b=()=>{o&&(M._ignoreSubscribers=!0,(o.isPush?i.history.pushState:i.history.replaceState)(o.state,"",o.href),M._ignoreSubscribers=!1,o=void 0,n=void 0,r=void 0)},R=(t,e,i)=>{let s=c(e);n||(r=h),h=x(e,i),o={href:s,state:i,isPush:(null==o?void 0:o.isPush)||"push"===t},n||(n=Promise.resolve().then(()=>b()))},_=t=>{h=d(),M.notify({type:t})},C=async()=>{if(p){p=!1;return}let t=d(),e=t.state[v]-h.state[v],r=1===e,o=-1===e,n=!r&&!o||f;f=!1;let s=n?"GO":o?"BACK":"FORWARD",a=n?{type:"GO",index:e}:{type:o?"BACK":"FORWARD"};if(m)m=!1;else{let e=u();if("undefined"!=typeof document&&e.length){for(let r of e)if(await r.blockerFn({currentLocation:h,nextLocation:t,action:s})){p=!0,i.history.go(1),M.notify(a);return}}}h=d(),M.notify(a)},L=t=>{if(w){w=!1;return}let e=!1,r=u();if("undefined"!=typeof document&&r.length)for(let t of r){let r=t.enableBeforeUnload??!0;if(!0===r||"function"==typeof r&&!0===r()){e=!0;break}}if(e)return t.preventDefault(),t.returnValue=""},M=S({getLocation:()=>h,getLength:()=>i.history.length,pushState:(t,e)=>R("push",t,e),replaceState:(t,e)=>R("replace",t,e),back:t=>(t&&(m=!0),w=!0,i.history.back()),forward:t=>{t&&(m=!0),w=!0,i.history.forward()},go:t=>{f=!0,i.history.go(t)},createHref:t=>c(t),flush:b,destroy:()=>{i.history.pushState=s,i.history.replaceState=a,i.removeEventListener(y,L,{capture:!0}),i.removeEventListener(g,C)},onBlocked:()=>{r&&h!==r&&(h=r)},getBlockers:u,setBlockers:t=>l=t,notifyOnIndexChange:!1});return i.addEventListener(y,L,{capture:!0}),i.addEventListener(g,C),i.history.pushState=function(...t){let e=s.apply(i.history,t);return M._ignoreSubscribers||_("PUSH"),e},i.history.replaceState=function(...t){let e=a.apply(i.history,t);return M._ignoreSubscribers||_("REPLACE"),e},M}function R(t){let e=(null==t?void 0:t.window)??("undefined"!=typeof document?window:void 0);return b({window:e,parseLocation:()=>{let t=e.location.hash.split("#").slice(1),r=t[0]??"/",o=e.location.search,n=t.slice(1),i=0===n.length?"":`#${n.join("#")}`;return x(`${r}${o}${i}`,e.history.state)},createHref:t=>`${e.location.pathname}${e.location.search}#${t}`})}function _(t={initialEntries:["/"]}){let e=t.initialEntries,r=t.initialIndex?Math.min(Math.max(t.initialIndex,0),e.length-1):e.length-1,o=e.map((t,e)=>w(e,void 0));return S({getLocation:()=>x(e[r],o[r]),getLength:()=>e.length,pushState:(t,n)=>{r<e.length-1&&(e.splice(r+1),o.splice(r+1)),o.push(n),e.push(t),r=Math.max(e.length-1,0)},replaceState:(t,n)=>{o[r]=n,e[r]=t},back:()=>{r=Math.max(r-1,0)},forward:()=>{r=Math.min(r+1,e.length-1)},go:t=>{r=Math.min(Math.max(r+t,0),e.length-1)},createHref:t=>t})}function x(t,e){let r=t.indexOf("#"),o=t.indexOf("?");return{href:t,pathname:t.substring(0,r>0?o>0?Math.min(r,o):r:o>0?o:t.length),hash:r>-1?t.substring(r):"",search:o>-1?t.slice(o,-1===r?void 0:r):"",state:e||{[v]:0,key:P()}}}function P(){return(Math.random()+1).toString(36).substring(7)}function C(t){return t[t.length-1]}function L(t,e){return"function"==typeof t?t(e):t}function M(t,e){return e.reduce((e,r)=>(e[r]=t[r],e),{})}function E(t,e){if(t===e)return t;let r=j(t)&&j(e);if(r||F(t)&&F(e)){let o=r?t:Object.keys(t),n=o.length,i=r?e:Object.keys(e),s=i.length,a=r?[]:{},l=0;for(let n=0;n<s;n++){let s=r?n:i[n];(!r&&o.includes(s)||r)&&void 0===t[s]&&void 0===e[s]?(a[s]=void 0,l++):(a[s]=E(t[s],e[s]),a[s]===t[s]&&void 0!==t[s]&&l++)}return n===s&&l===n?t:a}return e}function F(t){if(!k(t))return!1;let e=t.constructor;if(void 0===e)return!0;let r=e.prototype;return!!k(r)&&!!r.hasOwnProperty("isPrototypeOf")}function k(t){return"[object Object]"===Object.prototype.toString.call(t)}function j(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function I(t,e){let r=Object.keys(t);return e&&(r=r.filter(e=>void 0!==t[e])),r}function O(t,e,r){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(F(t)&&F(e)){let o=(null==r?void 0:r.ignoreUndefined)??!0,n=I(t,o),i=I(e,o);return(!!(null==r?void 0:r.partial)||n.length===i.length)&&i.every(o=>O(t[o],e[o],r))}return!!(Array.isArray(t)&&Array.isArray(e))&&t.length===e.length&&!t.some((t,o)=>!O(t,e[o],r))}function D(t){let e,r,o=new Promise((t,o)=>{e=t,r=o});return o.status="pending",o.resolve=r=>{o.status="resolved",o.value=r,e(r),null==t||t(r)},o.reject=t=>{o.status="rejected",r(t)},o}function T(t){return t.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/"/g,'\\"')}function B(t,e){if(Object.is(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!1;for(let o of r)if(!Object.prototype.hasOwnProperty.call(e,o)||!Object.is(t[o],e[o]))return!1;return!0}function A(t){return N(t.filter(t=>void 0!==t).join("/"))}function N(t){return t.replace(/\/{2,}/g,"/")}function $(t){return"/"===t?t:t.replace(/^\/{1,}/,"")}function V(t){return"/"===t?t:t.replace(/\/{1,}$/,"")}function W(t){return V($(t))}function z(t,e){return(null==t?void 0:t.endsWith("/"))&&"/"!==t&&t!==`${e}/`?t.slice(0,-1):t}function U({basepath:t,base:e,to:r,trailingSlash:o="never",caseSensitive:n}){var i,s;e=G(t,e,n),r=G(t,r,n);let a=H(e),l=H(r);return a.length>1&&(null==(i=C(a))?void 0:i.value)==="/"&&a.pop(),l.forEach((t,e)=>{"/"===t.value?e?e===l.length-1&&a.push(t):a=[t]:".."===t.value?a.pop():"."===t.value||a.push(t)}),a.length>1&&((null==(s=C(a))?void 0:s.value)==="/"?"never"===o&&a.pop():"always"===o&&a.push({type:"pathname",value:"/"})),N(A([t,...a.map(t=>t.value)]))}function H(t){if(!t)return[];t=N(t);let e=[];return("/"===t.slice(0,1)&&(t=t.substring(1),e.push({type:"pathname",value:"/"})),t)?(e.push(...t.split("/").filter(Boolean).map(t=>"$"===t||"*"===t?{type:"wildcard",value:t}:"$"===t.charAt(0)?{type:"param",value:t}:{type:"pathname",value:t.includes("%25")?t.split("%25").map(t=>decodeURI(t)).join("%25"):decodeURI(t)})),"/"===t.slice(-1)&&(t=t.substring(1),e.push({type:"pathname",value:"/"})),e):e}function K({path:t,params:e,leaveWildcards:r,leaveParams:o,decodeCharMap:n}){let i=H(t);function s(t){let r=e[t],o="string"==typeof r;return["*","_splat"].includes(t)?o?encodeURI(r):r:o?function(t,e){let r=encodeURIComponent(t);if(e)for(let[t,o]of e)r=r.replaceAll(t,o);return r}(r,n):r}let a={},l=A(i.map(t=>{if("wildcard"===t.type){a._splat=e._splat;let o=s("_splat");return r?`${t.value}${o??""}`:o}if("param"===t.type){let r=t.value.substring(1);if(a[r]=e[r],o){let e=s(t.value);return`${t.value}${e??""}`}return s(r)??"undefined"}return t.value}));return{usedParams:a,interpolatedPath:l}}function J(t,e,r){let o=q(t,e,r);if(!r.to||o)return o??{}}function G(t,e,r=!1){let o=r?t:t.toLowerCase(),n=r?e:e.toLowerCase();switch(!0){case"/"===o:return e;case n===o:return"";case e.length<t.length:case"/"!==n[o.length]:return e;case n.startsWith(o):return e.slice(t.length);default:return e}}function q(t,e,r){if("/"!==t&&!e.startsWith(t))return;e=G(t,e,r.caseSensitive);let o=G(t,`${r.to??"$"}`,r.caseSensitive),n=H(e),i=H(o);e.startsWith("/")||n.unshift({type:"pathname",value:"/"}),o.startsWith("/")||i.unshift({type:"pathname",value:"/"});let s={};return(()=>{for(let t=0;t<Math.max(n.length,i.length);t++){let e=n[t],o=i[t],a=t>=n.length-1,l=t>=i.length-1;if(o){if("wildcard"===o.type){let e=decodeURI(A(n.slice(t).map(t=>t.value)));return s["*"]=e,s._splat=e,!0}if("pathname"===o.type){if("/"===o.value&&!(null==e?void 0:e.value))return!0;if(e){if(r.caseSensitive){if(o.value!==e.value)return!1}else if(o.value.toLowerCase()!==e.value.toLowerCase())return!1}}if(!e)return!1;if("param"===o.type){if("/"===e.value)return!1;"$"!==e.value.charAt(0)&&(s[o.value.substring(1)]=decodeURIComponent(e.value))}}if(!a&&l)return s["**"]=A(n.slice(t+1).map(t=>t.value)),!!r.fuzzy&&(null==o?void 0:o.value)!=="/"}return!0})()?s:void 0}function X(t={}){if(t.isNotFound=!0,t.throw)throw t;return t}function Z(t){return!!(null==t?void 0:t.isNotFound)}let Y="tsr-scroll-restoration-v1_3",Q=!1;try{Q="undefined"!=typeof window&&"object"==typeof window.sessionStorage}catch{}let tt=(t,e)=>{let r;return(...o)=>{r||(r=setTimeout(()=>{t(...o),r=null},e))}},te=Q?{state:JSON.parse(window.sessionStorage.getItem(Y)||"null")||{},set:t=>(te.state=L(t,te.state)||te.state,window.sessionStorage.setItem(Y,JSON.stringify(te.state)))}:void 0,tr=t=>t.state.key||t.href;function to(t){let e,r=[];for(;e=t.parentNode;)r.unshift(`${t.tagName}:nth-child(${[].indexOf.call(e.children,t)+1})`),t=e;return`${r.join(" > ")}`.toLowerCase()}let tn=!1;function ti(t,e,r,o,n){var i;let s;try{s=JSON.parse(sessionStorage.getItem(t)||"{}")}catch(t){console.error(t);return}let a=s[e||(null==(i=window.history.state)?void 0:i.key)];tn=!0,(()=>{if(o&&a){for(let t in a){let e=a[t];if("window"===t)window.scrollTo({top:e.scrollY,left:e.scrollX,behavior:r});else if(t){let r=document.querySelector(t);r&&(r.scrollLeft=e.scrollX,r.scrollTop=e.scrollY)}}return}let t=window.location.hash.split("#")[1];if(t){let e=(window.history.state||{}).__hashScrollIntoViewOptions??!0;if(e){let r=document.getElementById(t);r&&r.scrollIntoView(e)}return}["window",...(null==n?void 0:n.filter(t=>"window"!==t))??[]].forEach(t=>{let e="window"===t?window:document.querySelector(t);e&&e.scrollTo({top:0,left:0,behavior:r})})})(),tn=!1}function ts(t,e){if((e??t.options.scrollRestoration)&&(t.isScrollRestoring=!0),"undefined"==typeof document||t.isScrollRestorationSetup)return;t.isScrollRestorationSetup=!0,tn=!1;let r=t.options.getScrollRestorationKey||tr;window.history.scrollRestoration="manual","undefined"!=typeof document&&document.addEventListener("scroll",tt(e=>{if(tn||!t.isScrollRestoring)return;let o="";if(e.target===document||e.target===window)o="window";else{let t=e.target.getAttribute("data-scroll-restoration-id");o=t?`[data-scroll-restoration-id="${t}"]`:to(e.target)}let n=r(t.state.location);te.set(t=>{let e=t[n]=t[n]||{},r=e[o]=e[o]||{};if("window"===o)r.scrollX=window.scrollX||0,r.scrollY=window.scrollY||0;else if(o){let t=document.querySelector(o);t&&(r.scrollX=t.scrollLeft||0,r.scrollY=t.scrollTop||0)}return t})},100),!0),t.subscribe("onRendered",e=>{let o=r(e.toLocation);if(!t.resetNextScroll){t.resetNextScroll=!0;return}ti(Y,o,t.options.scrollRestorationBehavior||void 0,t.isScrollRestoring||void 0,t.options.scrollToTopSelectors||void 0),t.isScrollRestoring&&te.set(t=>(t[o]=t[o]||{},t))})}function ta(t,e){return(e||"")+new URLSearchParams(Object.entries(t).flatMap(([t,e])=>Array.isArray(e)?e.map(e=>[t,String(e)]):[[t,String(e)]])).toString()}function tl(t){if(!t)return"";let e=/%[0-9A-Fa-f]{2}/.test(t)?decodeURIComponent(t):decodeURIComponent(encodeURIComponent(t));return"false"!==e&&("true"===e||(0*+e==0&&+e+""===e?+e:e))}function tu(t,e){return[...new URLSearchParams(e?t.slice(e.length):t).entries()].reduce((t,[e,r])=>{let o=t[e];return null==o?t[e]=tl(r):t[e]=Array.isArray(o)?[...o,tl(r)]:[o,tl(r)],t},{})}let tc=th(JSON.parse),td=tf(JSON.stringify,JSON.parse);function th(t){return e=>{"?"===e.substring(0,1)&&(e=e.substring(1));let r=tu(e);for(let e in r){let o=r[e];if("string"==typeof o)try{r[e]=t(o)}catch(t){}}return r}}function tf(t,e){return r=>{Object.keys(r={...r}).forEach(o=>{let n=r[o];void 0===n||void 0===n?delete r[o]:r[o]=function(r){if("object"==typeof r&&null!==r)try{return t(r)}catch(t){}else if("string"==typeof r&&"function"==typeof e)try{return e(r),t(r)}catch(t){}return r}(n)});let o=ta(r).toString();return o?`?${o}`:""}}let tp="__root__";function tm(t){if(t.isRedirect=!0,t.statusCode=t.statusCode||t.code||307,t.headers=t.headers||{},!t.reloadDocument){t.reloadDocument=!1;try{new URL(`${t.href}`),t.reloadDocument=!0}catch{}}if(t.throw)throw t;return t}function tv(t){return!!(null==t?void 0:t.isRedirect)}function tg(t){return!!(null==t?void 0:t.isRedirect)&&t.href}function ty(t){return t instanceof Error?{name:t.name,message:t.message}:{data:t}}function tS(t){let e=t.resolvedLocation,r=t.location,o=(null==e?void 0:e.pathname)!==r.pathname,n=(null==e?void 0:e.href)!==r.href,i=(null==e?void 0:e.hash)!==r.hash;return{fromLocation:e,toLocation:r,pathChanged:o,hrefChanged:n,hashChanged:i}}class tw{constructor(t){this.tempLocationKey=`${Math.round(1e7*Math.random())}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=t=>t(),this.update=t=>{var e;t.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");let r=this.options;this.options={...this.options,...t},this.isServer=this.options.isServer??"undefined"==typeof document,this.pathParamsDecodeCharMap=this.options.pathParamsAllowedCharacters?new Map(this.options.pathParamsAllowedCharacters.map(t=>[encodeURIComponent(t),t])):void 0,(!this.basepath||t.basepath&&t.basepath!==r.basepath)&&(void 0===t.basepath||""===t.basepath||"/"===t.basepath?this.basepath="/":this.basepath=`/${W(t.basepath)}`),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history??(this.isServer?_({initialEntries:[this.basepath||"/"]}):b()),this.latestLocation=this.parseLocation()),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),this.__store||(this.__store=new m(tx(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(t=>!["redirected"].includes(t.status))}}}),ts(this)),"undefined"!=typeof window&&"CSS"in window&&"function"==typeof(null==(e=window.CSS)?void 0:e.supports)&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.buildRouteTree=()=>{this.routesById={},this.routesByPath={};let t=this.options.notFoundRoute;t&&(t.init({originalIndex:0x174876e7ff,defaultSsr:this.options.defaultSsr}),this.routesById[t.id]=t);let e=t=>{t.forEach((t,r)=>{if(t.init({originalIndex:r,defaultSsr:this.options.defaultSsr}),o(!this.routesById[t.id],`Duplicate routes found with id: ${String(t.id)}`),this.routesById[t.id]=t,!t.isRoot&&t.path){let e=V(t.fullPath);(!this.routesByPath[e]||t.fullPath.endsWith("/"))&&(this.routesByPath[e]=t)}let n=t.children;(null==n?void 0:n.length)&&e(n)})};e([this.routeTree]);let r=[];Object.values(this.routesById).forEach((t,e)=>{var o;if(t.isRoot||!t.path)return;let n=$(t.fullPath),i=H(n);for(;i.length>1&&(null==(o=i[0])?void 0:o.value)==="/";)i.shift();let s=i.map(t=>"/"===t.value?.75:"param"===t.type?.5:"wildcard"===t.type?.25:1);r.push({child:t,trimmed:n,parsed:i,index:e,scores:s})}),this.flatRoutes=r.sort((t,e)=>{let r=Math.min(t.scores.length,e.scores.length);for(let o=0;o<r;o++)if(t.scores[o]!==e.scores[o])return e.scores[o]-t.scores[o];if(t.scores.length!==e.scores.length)return e.scores.length-t.scores.length;for(let o=0;o<r;o++)if(t.parsed[o].value!==e.parsed[o].value)return t.parsed[o].value>e.parsed[o].value?1:-1;return t.index-e.index}).map((t,e)=>(t.child.rank=e,t.child))},this.subscribe=(t,e)=>{let r={eventType:t,fn:e};return this.subscribers.add(r),()=>{this.subscribers.delete(r)}},this.emit=t=>{this.subscribers.forEach(e=>{e.eventType===t.type&&e.fn(t)})},this.parseLocation=(t,e)=>{let r=({pathname:e,search:r,hash:o,state:n})=>{let i=this.options.parseSearch(r),s=this.options.stringifySearch(i);return{pathname:e,searchStr:s,search:E(null==t?void 0:t.search,i),hash:o.split("#").reverse()[0]??"",href:`${e}${s}${o}`,state:E(null==t?void 0:t.state,n)}},o=r(e??this.history.location),{__tempLocation:n,__tempKey:i}=o.state;if(n&&(!i||i===this.tempLocationKey)){let t=r(n);return t.state.key=o.state.key,delete t.state.__tempLocation,{...t,maskedLocation:o}}return o},this.resolvePathWithBase=(t,e)=>U({basepath:this.basepath,base:t,to:N(e),trailingSlash:this.options.trailingSlash,caseSensitive:this.options.caseSensitive}),this.matchRoutes=(t,e,r)=>"string"==typeof t?this.matchRoutesInternal({pathname:t,search:e},r):this.matchRoutesInternal(t,e),this.getMatchedRoutes=(t,e)=>{let r={},o=V(t.pathname),n=t=>J(this.basepath,o,{to:t.fullPath,caseSensitive:t.options.caseSensitive??this.options.caseSensitive,fuzzy:!0}),i=(null==e?void 0:e.to)!==void 0?this.routesByPath[e.to]:void 0;i?r=n(i):i=this.flatRoutes.find(t=>{let e=n(t);return!!e&&(r=e,!0)});let s=i||this.routesById[tp],a=[s];for(;s.parentRoute;)a.unshift(s=s.parentRoute);return{matchedRoutes:a,routeParams:r,foundRoute:i}},this.cancelMatch=t=>{let e=this.getMatch(t);e&&(e.abortController.abort(),clearTimeout(e.pendingTimeout))},this.cancelMatches=()=>{var t;null==(t=this.state.pendingMatches)||t.forEach(t=>{this.cancelMatch(t.id)})},this.buildLocation=t=>{let e=(e={},r)=>{var n,i,s,a,l,u,c;let d,h=e._fromLocation?this.matchRoutes(e._fromLocation,{_buildLocation:!0}):this.state.matches,f=null!=e.from?h.find(t=>J(this.basepath,V(t.pathname),{to:e.from,caseSensitive:!1,fuzzy:!1})):void 0,p=(null==f?void 0:f.pathname)||this.latestLocation.pathname;o(null==e.from||null!=f,"Could not find match for from: "+e.from);let m=(null==(n=this.state.pendingMatches)?void 0:n.length)?null==(i=C(this.state.pendingMatches))?void 0:i.search:(null==(s=C(h))?void 0:s.search)||this.latestLocation.search,v=null==r?void 0:r.matchedRoutes.filter(t=>h.find(e=>e.routeId===t.id));if(e.to){let t=(null==f?void 0:f.fullPath)||(null==(a=C(h))?void 0:a.fullPath)||this.latestLocation.pathname;d=this.resolvePathWithBase(t,`${e.to}`)}else{let t=this.routesById[null==(l=null==v?void 0:v.find(t=>{let e=K({path:t.fullPath,params:(null==r?void 0:r.routeParams)??{},decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath;return A([this.basepath,e])===p}))?void 0:l.id];d=this.resolvePathWithBase(p,(null==t?void 0:t.to)??p)}let g={...null==(u=C(h))?void 0:u.params},y=(e.params??!0)===!0?g:{...g,...L(e.params,g)};Object.keys(y).length>0&&(null==r||r.matchedRoutes.map(t=>{var e;return(null==(e=t.options.params)?void 0:e.stringify)??t.options.stringifyParams}).filter(Boolean).forEach(t=>{y={...y,...t(y)}})),d=K({path:d,params:y??{},leaveWildcards:!1,leaveParams:t.leaveParams,decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath;let S=m;if(t._includeValidateSearch&&(null==(c=this.options.search)?void 0:c.strict)){let t={};null==r||r.matchedRoutes.forEach(e=>{try{e.options.validateSearch&&(t={...t,...tP(e.options.validateSearch,{...t,...S})??{}})}catch{}}),S=t}S=E(m,S=(o=>{let n=(null==r?void 0:r.matchedRoutes.reduce((e,r)=>{var o;let n=[];return"search"in r.options?(null==(o=r.options.search)?void 0:o.middlewares)&&n.push(...r.options.search.middlewares):(r.options.preSearchFilters||r.options.postSearchFilters)&&n.push(({search:t,next:e})=>{let o=t;"preSearchFilters"in r.options&&r.options.preSearchFilters&&(o=r.options.preSearchFilters.reduce((t,e)=>e(t),t));let n=e(o);return"postSearchFilters"in r.options&&r.options.postSearchFilters?r.options.postSearchFilters.reduce((t,e)=>e(t),n):n}),t._includeValidateSearch&&r.options.validateSearch&&n.push(({search:t,next:e})=>{let o=e(t);try{return{...o,...tP(r.options.validateSearch,o)??{}}}catch{return o}}),e.concat(n)},[]))??[];n.push(({search:t})=>e.search?!0===e.search?t:L(e.search,t):{});let i=(t,e)=>t>=n.length?e:(0,n[t])({search:e,next:e=>i(t+1,e)});return i(0,o)})(S));let w=this.options.stringifySearch(S),b=!0===e.hash?this.latestLocation.hash:e.hash?L(e.hash,this.latestLocation.hash):void 0,R=b?`#${b}`:"",_=!0===e.state?this.latestLocation.state:e.state?L(e.state,this.latestLocation.state):{};return _=E(this.latestLocation.state,_),{pathname:d,search:S,searchStr:w,state:_,hash:b??"",href:`${d}${w}${R}`,unmaskOnReload:e.unmaskOnReload}},r=(r={},o)=>{var n;let i=e(r),s=o?e(o):void 0;if(!s){let r={},a=null==(n=this.options.routeMasks)?void 0:n.find(t=>{let e=J(this.basepath,i.pathname,{to:t.from,caseSensitive:!1,fuzzy:!1});return!!e&&(r=e,!0)});if(a){let{from:n,...i}=a;s=e(o={...M(t,["from"]),...i,params:r})}}let a=this.getMatchedRoutes(i,r),l=e(r,a);if(s){let t=this.getMatchedRoutes(s,o);l.maskedLocation=e(o,t)}return l};return t.mask?r(t,{...M(t,["from"]),...t.mask}):r(t)},this.commitLocation=({viewTransition:t,ignoreBlocker:e,...r})=>{let o=this.latestLocation.href===r.href,n=this.commitLocationPromise;if(this.commitLocationPromise=D(()=>{null==n||n.resolve()}),o&&(()=>{let t=["key","__TSR_index","__hashScrollIntoViewOptions"];t.forEach(t=>{r.state[t]=this.latestLocation.state[t]});let e=O(r.state,this.latestLocation.state);return t.forEach(t=>{delete r.state[t]}),e})())this.load();else{let{maskedLocation:o,hashScrollIntoView:n,...i}=r;o&&((i={...o,state:{...o.state,__tempKey:void 0,__tempLocation:{...i,search:i.searchStr,state:{...i.state,__tempKey:void 0,__tempLocation:void 0,key:void 0}}}}).unmaskOnReload??this.options.unmaskOnReload)&&(i.state.__tempKey=this.tempLocationKey),i.state.__hashScrollIntoViewOptions=n??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=t,this.history[r.replace?"replace":"push"](i.href,i.state,{ignoreBlocker:e})}return this.resetNextScroll=r.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:t,resetScroll:e,hashScrollIntoView:r,viewTransition:o,ignoreBlocker:n,href:i,...s}={})=>{if(i){let e=this.history.location.state.__TSR_index,r=x(i,{__TSR_index:t?e:e+1});s.to=r.pathname,s.search=this.options.parseSearch(r.search),s.hash=r.hash.slice(1)}let a=this.buildLocation({...s,_includeValidateSearch:!0});return this.commitLocation({...a,viewTransition:o,replace:t,resetScroll:e,hashScrollIntoView:r,ignoreBlocker:n})},this.navigate=({to:t,reloadDocument:e,href:r,...o})=>{if(e){if(!r){let e=this.buildLocation({to:t,...o});r=this.history.createHref(e.href)}o.replace?window.location.replace(r):window.location.href=r;return}return this.buildAndCommitLocation({...o,href:r,to:t})},this.load=async t=>{let e,r,o;for(this.latestLocation=this.parseLocation(this.latestLocation),o=new Promise(n=>{this.startTransition(async()=>{var i;try{let e,r=this.latestLocation,o=this.state.resolvedLocation;this.cancelMatches(),p(()=>{e=this.matchRoutes(r),this.__store.setState(t=>({...t,status:"pending",isLoading:!0,location:r,pendingMatches:e,cachedMatches:t.cachedMatches.filter(t=>!e.find(e=>e.id===t.id))}))}),this.state.redirect||this.emit({type:"onBeforeNavigate",...tS({resolvedLocation:o,location:r})}),this.emit({type:"onBeforeLoad",...tS({resolvedLocation:o,location:r})}),await this.loadMatches({sync:null==t?void 0:t.sync,matches:e,location:r,onReady:async()=>{this.startViewTransition(async()=>{let t,e,r;p(()=>{this.__store.setState(o=>{let n=o.matches,i=o.pendingMatches||o.matches;return t=n.filter(t=>!i.find(e=>e.id===t.id)),e=i.filter(t=>!n.find(e=>e.id===t.id)),r=n.filter(t=>i.find(e=>e.id===t.id)),{...o,isLoading:!1,loadedAt:Date.now(),matches:i,pendingMatches:void 0,cachedMatches:[...o.cachedMatches,...t.filter(t=>"error"!==t.status)]}}),this.clearExpiredCache()}),[[t,"onLeave"],[e,"onEnter"],[r,"onStay"]].forEach(([t,e])=>{t.forEach(t=>{var r,o;null==(o=(r=this.looseRoutesById[t.routeId].options)[e])||o.call(r,t)})})})}})}catch(t){tg(t)?(e=t,this.isServer||this.navigate({...e,replace:!0,ignoreBlocker:!0})):Z(t)&&(r=t),this.__store.setState(t=>({...t,statusCode:e?e.statusCode:r?404:t.matches.some(t=>"error"===t.status)?500:200,redirect:e}))}this.latestLoadPromise===o&&(null==(i=this.commitLocationPromise)||i.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),n()})}),this.latestLoadPromise=o,await o;this.latestLoadPromise&&o!==this.latestLoadPromise;)await this.latestLoadPromise;this.hasNotFoundMatch()&&this.__store.setState(t=>({...t,statusCode:404}))},this.startViewTransition=t=>{let e=this.shouldViewTransition??this.options.defaultViewTransition;if(delete this.shouldViewTransition,e&&"undefined"!=typeof document&&"startViewTransition"in document&&"function"==typeof document.startViewTransition){let r;r="object"==typeof e&&this.isViewTransitionTypesSupported?{update:t,types:e.types}:t,document.startViewTransition(r)}else t()},this.updateMatch=(t,e)=>{var r;let o,n=null==(r=this.state.pendingMatches)?void 0:r.find(e=>e.id===t),i=this.state.matches.find(e=>e.id===t),s=this.state.cachedMatches.find(e=>e.id===t),a=n?"pendingMatches":i?"matches":s?"cachedMatches":"";return a&&this.__store.setState(r=>{var n;return{...r,[a]:null==(n=r[a])?void 0:n.map(r=>r.id===t?o=e(r):r)}}),o},this.getMatch=t=>[...this.state.cachedMatches,...this.state.pendingMatches??[],...this.state.matches].find(e=>e.id===t),this.loadMatches=async({location:t,matches:e,preload:r,onReady:o,updateMatch:n=this.updateMatch,sync:i})=>{let s,a=!1,l=async()=>{a||(a=!0,await (null==o?void 0:o()))},u=t=>!!(r&&!this.state.matches.find(e=>e.id===t));this.isServer||this.state.matches.length||l();let c=(r,o)=>{var i,s,l,u;if(tg(o)&&!o.reloadDocument)throw o;if(tv(o)||Z(o)){if(n(r.id,t=>({...t,status:tv(o)?"redirected":Z(o)?"notFound":"error",isFetching:!1,error:o,beforeLoadPromise:void 0,loaderPromise:void 0})),o.routeId||(o.routeId=r.routeId),null==(i=r.beforeLoadPromise)||i.resolve(),null==(s=r.loaderPromise)||s.resolve(),null==(l=r.loadPromise)||l.resolve(),tv(o))throw a=!0,o=this.resolveRedirect({...o,_fromLocation:t});if(Z(o))throw this._handleNotFound(e,o,{updateMatch:n}),null==(u=this.serverSsr)||u.onMatchSettled({router:this,match:this.getMatch(r.id)}),o}};try{await new Promise((r,a)=>{(async()=>{var d,h,f,p;try{let a=(t,r,o)=>{var i,a;let{id:l,routeId:u}=e[t],d=this.looseRoutesById[u];if(r instanceof Promise)throw r;r.routerCode=o,s=s??t,c(this.getMatch(l),r);try{null==(a=(i=d.options).onError)||a.call(i,r)}catch(t){r=t,c(this.getMatch(l),r)}n(l,t=>{var e,o;return null==(e=t.beforeLoadPromise)||e.resolve(),null==(o=t.loadPromise)||o.resolve(),{...t,error:r,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController,beforeLoadPromise:void 0}})};for(let[r,{id:i,routeId:s}]of e.entries()){let c=this.getMatch(i),m=null==(d=e[r-1])?void 0:d.id,v=this.looseRoutesById[s],g=v.options.pendingMs??this.options.defaultPendingMs,y=!!(o&&!this.isServer&&!u(i)&&(v.options.loader||v.options.beforeLoad)&&"number"==typeof g&&g!==1/0&&(v.options.pendingComponent??(null==(h=this.options)?void 0:h.defaultPendingComponent))),S=!0;if((c.beforeLoadPromise||c.loaderPromise)&&(y&&setTimeout(()=>{try{l()}catch{}},g),await c.beforeLoadPromise,S="success"!==this.getMatch(i).status),S){try{let o;n(i,t=>{let e=t.loadPromise;return{...t,loadPromise:D(()=>{null==e||e.resolve()}),beforeLoadPromise:D()}});let s=new AbortController;y&&(o=setTimeout(()=>{try{l()}catch{}},g));let{paramsError:c,searchError:d}=this.getMatch(i);c&&a(r,c,"PARSE_PARAMS"),d&&a(r,d,"VALIDATE_SEARCH");let h=()=>m?this.getMatch(m).context:this.options.context??{};n(i,t=>({...t,isFetching:"beforeLoad",fetchCount:t.fetchCount+1,abortController:s,pendingTimeout:o,context:{...h(),...t.__routeContext}}));let{search:S,params:w,context:b,cause:R}=this.getMatch(i),_=u(i),x={search:S,abortController:s,params:w,preload:_,context:b,location:t,navigate:e=>this.navigate({...e,_fromLocation:t}),buildLocation:this.buildLocation,cause:_?"preload":R,matches:e},P=await (null==(p=(f=v.options).beforeLoad)?void 0:p.call(f,x))??{};(tv(P)||Z(P))&&a(r,P,"BEFORE_LOAD"),n(i,t=>({...t,__beforeLoadContext:P,context:{...h(),...t.__routeContext,...P},abortController:s}))}catch(t){a(r,t,"BEFORE_LOAD")}n(i,t=>{var e;return null==(e=t.beforeLoadPromise)||e.resolve(),{...t,beforeLoadPromise:void 0,isFetching:!1}})}}let m=e.slice(0,s),v=[];m.forEach(({id:r,routeId:o},s)=>{v.push((async()=>{let{loaderPromise:a}=this.getMatch(r),l=!1,d=!1;if(a){await a;let t=this.getMatch(r);t.error&&c(t,t.error)}else{let a=v[s-1],h=this.looseRoutesById[o],f=()=>{let{params:e,loaderDeps:o,abortController:n,context:i,cause:s}=this.getMatch(r),l=u(r);return{params:e,deps:o,preload:!!l,parentMatchPromise:a,abortController:n,context:i,location:t,navigate:e=>this.navigate({...e,_fromLocation:t}),cause:l?"preload":s,route:h}},p=Date.now()-this.getMatch(r).updatedAt,m=u(r),g=m?h.options.preloadStaleTime??this.options.defaultPreloadStaleTime??3e4:h.options.staleTime??this.options.defaultStaleTime??0,y=h.options.shouldReload,S="function"==typeof y?y(f()):y;n(r,t=>({...t,loaderPromise:D(),preload:!!m&&!this.state.matches.find(t=>t.id===r)}));let w=async()=>{var t,o,i,s,a,l,u,d,p,m,v;try{let g=async()=>{let t=this.getMatch(r);t.minPendingPromise&&await t.minPendingPromise};try{this.loadRouteChunk(h),n(r,t=>({...t,isFetching:"loader"}));let p=await (null==(o=(t=h.options).loader)?void 0:o.call(t,f()));c(this.getMatch(r),p),await h._lazyPromise,await g();let m={matches:e,match:this.getMatch(r),params:this.getMatch(r).params,loaderData:p},v=null==(s=(i=h.options).head)?void 0:s.call(i,m),y=null==v?void 0:v.meta,S=null==v?void 0:v.links,w=null==v?void 0:v.scripts,b=null==(l=(a=h.options).scripts)?void 0:l.call(a,m),R=null==(d=(u=h.options).headers)?void 0:d.call(u,{loaderData:p});n(r,t=>({...t,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),loaderData:p,meta:y,links:S,headScripts:w,headers:R,scripts:b}))}catch(e){let t=e;await g(),c(this.getMatch(r),e);try{null==(m=(p=h.options).onError)||m.call(p,e)}catch(e){t=e,c(this.getMatch(r),e)}n(r,e=>({...e,error:t,status:"error",isFetching:!1}))}null==(v=this.serverSsr)||v.onMatchSettled({router:this,match:this.getMatch(r)}),await h._componentsPromise}catch(t){n(r,t=>({...t,loaderPromise:void 0})),c(this.getMatch(r),t)}},{status:b,invalid:R}=this.getMatch(r);l="success"===b&&(R||(S??p>g)),m&&!1===h.options.preload||(l&&!i?(d=!0,(async()=>{try{await w();let{loaderPromise:t,loadPromise:e}=this.getMatch(r);null==t||t.resolve(),null==e||e.resolve(),n(r,t=>({...t,loaderPromise:void 0}))}catch(t){tg(t)&&await this.navigate(t)}})()):("success"!==b||l&&i)&&await w())}if(!d){let{loaderPromise:t,loadPromise:e}=this.getMatch(r);null==t||t.resolve(),null==e||e.resolve()}return n(r,t=>({...t,isFetching:!!d&&t.isFetching,loaderPromise:d?t.loaderPromise:void 0,invalid:!1})),this.getMatch(r)})())}),await Promise.all(v),r()}catch(t){a(t)}})()}),await l()}catch(t){if(tv(t)||Z(t))throw Z(t)&&!r&&await l(),t}return e},this.invalidate=t=>{let e=e=>{var r;return(null==(r=null==t?void 0:t.filter)?void 0:r.call(t,e))??!0?{...e,invalid:!0,..."error"===e.status?{status:"pending",error:void 0}:{}}:e};return this.__store.setState(t=>{var r;return{...t,matches:t.matches.map(e),cachedMatches:t.cachedMatches.map(e),pendingMatches:null==(r=t.pendingMatches)?void 0:r.map(e)}}),this.load({sync:null==t?void 0:t.sync})},this.resolveRedirect=t=>(t.href||(t.href=this.buildLocation(t).href),t),this.clearCache=t=>{let e=null==t?void 0:t.filter;void 0!==e?this.__store.setState(t=>({...t,cachedMatches:t.cachedMatches.filter(t=>!e(t))})):this.__store.setState(t=>({...t,cachedMatches:[]}))},this.clearExpiredCache=()=>{this.clearCache({filter:t=>{let e=this.looseRoutesById[t.routeId];if(!e.options.loader)return!0;let r=(t.preload?e.options.preloadGcTime??this.options.defaultPreloadGcTime:e.options.gcTime??this.options.defaultGcTime)??3e5;return!("error"!==t.status&&Date.now()-t.updatedAt<r)}})},this.loadRouteChunk=t=>(void 0===t._lazyPromise&&(t.lazyFn?t._lazyPromise=t.lazyFn().then(e=>{let{id:r,...o}=e.options;Object.assign(t.options,o)}):t._lazyPromise=Promise.resolve()),void 0===t._componentsPromise&&(t._componentsPromise=t._lazyPromise.then(()=>Promise.all(tC.map(async e=>{let r=t.options[e];(null==r?void 0:r.preload)&&await r.preload()})))),t._componentsPromise),this.preloadRoute=async t=>{let e=this.buildLocation(t),r=this.matchRoutes(e,{throwOnError:!0,preload:!0,dest:t}),o=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(t=>t.id)),n=new Set([...o,...this.state.cachedMatches.map(t=>t.id)]);p(()=>{r.forEach(t=>{n.has(t.id)||this.__store.setState(e=>({...e,cachedMatches:[...e.cachedMatches,t]}))})});try{return r=await this.loadMatches({matches:r,location:e,preload:!0,updateMatch:(t,e)=>{o.has(t)?r=r.map(r=>r.id===t?e(r):r):this.updateMatch(t,e)}})}catch(t){if(tv(t)){if(t.reloadDocument)return;return await this.preloadRoute({...t,_fromLocation:e})}Z(t)||console.error(t);return}},this.matchRoute=(t,e)=>{let r={...t,to:t.to?this.resolvePathWithBase(t.from||"",t.to):void 0,params:t.params||{},leaveParams:!0},o=this.buildLocation(r);if((null==e?void 0:e.pending)&&"pending"!==this.state.status)return!1;let n=((null==e?void 0:e.pending)===void 0?!this.state.isLoading:e.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,i=J(this.basepath,n.pathname,{...e,to:o.pathname});return!!i&&(!t.params||!!O(i,t.params,{partial:!0}))&&(i&&((null==e?void 0:e.includeSearch)??!0)?!!O(n.search,o.search,{partial:!0})&&i:i)},this._handleNotFound=(t,e,{updateMatch:r=this.updateMatch}={})=>{var n;let i=this.routesById[e.routeId??""]??this.routeTree,s={};for(let e of t)s[e.routeId]=e;!i.options.notFoundComponent&&(null==(n=this.options)?void 0:n.defaultNotFoundComponent)&&(i.options.notFoundComponent=this.options.defaultNotFoundComponent),o(i.options.notFoundComponent,"No notFoundComponent found. Please set a notFoundComponent on your route or provide a defaultNotFoundComponent to the router.");let a=s[i.id];o(a,"Could not find match for route: "+i.id),r(a.id,t=>({...t,status:"notFound",error:e,isFetching:!1})),"BEFORE_LOAD"===e.routerCode&&i.parentRoute&&(e.routeId=i.parentRoute.id,this._handleNotFound(t,e,{updateMatch:r}))},this.hasNotFoundMatch=()=>this.__store.state.matches.some(t=>"notFound"===t.status||t.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??"fuzzy",stringifySearch:t.stringifySearch??td,parseSearch:t.parseSearch??tc}),"undefined"!=typeof document&&(window.__TSR_ROUTER__=this)}get state(){return this.__store.state}get looseRoutesById(){return this.routesById}matchRoutesInternal(t,e){let{foundRoute:r,matchedRoutes:o,routeParams:n}=this.getMatchedRoutes(t,null==e?void 0:e.dest),i=!1;(r?"/"!==r.path&&n["**"]:V(t.pathname))&&(this.options.notFoundRoute?o.push(this.options.notFoundRoute):i=!0);let s=(()=>{if(i){if("root"!==this.options.notFoundMode)for(let t=o.length-1;t>=0;t--){let e=o[t];if(e.children)return e.id}return tp}})(),a=o.map(t=>{var r;let o,i=(null==(r=t.options.params)?void 0:r.parse)??t.options.parseParams;if(i)try{let t=i(n);Object.assign(n,t)}catch(t){if(o=new tR(t.message,{cause:t}),null==e?void 0:e.throwOnError)throw o;return o}}),l=[],u=t=>(null==t?void 0:t.id)?t.context??this.options.context??{}:this.options.context??{};return o.forEach((r,o)=>{var i,c;let d,h=l[o-1],[f,p,m]=(()=>{let o=(null==h?void 0:h.search)??t.search,n=(null==h?void 0:h._strictSearch)??{};try{let t=tP(r.options.validateSearch,{...o})??{};return[{...o,...t},{...n,...t},void 0]}catch(r){let t=r;if(r instanceof tb||(t=new tb(r.message,{cause:r})),null==e?void 0:e.throwOnError)throw t;return[o,{},t]}})(),v=(null==(c=(i=r.options).loaderDeps)?void 0:c.call(i,{search:f}))??"",g=v?JSON.stringify(v):"",{usedParams:y,interpolatedPath:S}=K({path:r.fullPath,params:n,decodeCharMap:this.pathParamsDecodeCharMap}),w=K({path:r.id,params:n,leaveWildcards:!0,decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath+g,b=this.getMatch(w),R=this.state.matches.find(t=>t.routeId===r.id),_=R?"stay":"enter";if(b)d={...b,cause:_,params:R?E(R.params,n):n,_strictParams:y,search:R?E(R.search,f):E(b.search,f),_strictSearch:p};else{let t=r.options.loader||r.options.beforeLoad||r.lazyFn||function(t){var e;for(let r of tC)if(null==(e=t.options[r])?void 0:e.preload)return!0;return!1}(r)?"pending":"success";d={id:w,index:o,routeId:r.id,params:R?E(R.params,n):n,_strictParams:y,pathname:A([this.basepath,S]),updatedAt:Date.now(),search:R?E(R.search,f):f,_strictSearch:p,searchError:void 0,status:t,isFetching:!1,error:void 0,paramsError:a[o],__routeContext:{},__beforeLoadContext:{},context:{},abortController:new AbortController,fetchCount:0,cause:_,loaderDeps:R?E(R.loaderDeps,v):v,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:r.options.staticData||{},loadPromise:D(),fullPath:r.fullPath}}(null==e?void 0:e.preload)||(d.globalNotFound=s===r.id),d.searchError=m;let x=u(h);d.context={...x,...d.__routeContext,...d.__beforeLoadContext},l.push(d)}),l.forEach((r,o)=>{var n,i,s,a,c,d,h,f;let p=this.looseRoutesById[r.routeId];if(!this.getMatch(r.id)&&(null==e?void 0:e._buildLocation)!==!0){let e=u(l[o-1]),s={deps:r.loaderDeps,params:r.params,context:e,location:t,navigate:e=>this.navigate({...e,_fromLocation:t}),buildLocation:this.buildLocation,cause:r.cause,abortController:r.abortController,preload:!!r.preload,matches:l};r.__routeContext=(null==(i=(n=p.options).context)?void 0:i.call(n,s))??{},r.context={...e,...r.__routeContext,...r.__beforeLoadContext}}if("success"===r.status){r.headers=null==(a=(s=p.options).headers)?void 0:a.call(s,{loaderData:r.loaderData});let t={matches:l,match:r,params:r.params,loaderData:r.loaderData},e=null==(d=(c=p.options).head)?void 0:d.call(c,t);r.links=null==e?void 0:e.links,r.headScripts=null==e?void 0:e.scripts,r.meta=null==e?void 0:e.meta,r.scripts=null==(f=(h=p.options).scripts)?void 0:f.call(h,t)}}),l}}class tb extends Error{}class tR extends Error{}function t_(t,e){return async(...r)=>(await t())[e||"default"](...r)}function tx(t){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:t,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function tP(t,e){if(null==t)return{};if("~standard"in t){let r=t["~standard"].validate(e);if(r instanceof Promise)throw new tb("Async validation not supported");if(r.issues)throw new tb(JSON.stringify(r.issues,void 0,2),{cause:r});return r.value}return"parse"in t?t.parse(e):"function"==typeof t?t(e):{}}let tC=["component","errorComponent","pendingComponent","notFoundComponent"],tL=Symbol.for("TSR_DEFERRED_PROMISE");function tM(t,e){return t[tL]||(t[tL]={status:"pending"},t.then(e=>{t[tL].status="success",t[tL].data=e}).catch(r=>{t[tL].status="error",t[tL].error={data:((null==e?void 0:e.serializeError)??ty)(r),__isServerError:!0}})),t}let tE=(t,e)=>{let r,o=e.split("."),n=t;for(;null!=(r=o.shift())&&null!=n;)n=n[r];return null!=n};function tF(t){return({search:e,next:r})=>{let o=r(e);return!0===t?{...e,...o}:(t.forEach(t=>{t in o||(o[t]=e[t])}),o)}}function tk(t){return({search:e,next:r})=>{if(!0===t)return{};let o=r(e);return Array.isArray(t)?t.forEach(t=>{delete o[t]}):Object.entries(t).forEach(([t,e])=>{O(o[t],e)&&delete o[t]}),o}}var tj=r(31549),tI=r(8491);function tO({promise:t}){let e=tM(t);if("pending"===e[tL].status)throw e;if("error"===e[tL].status)throw e[tL].error;return[e[tL].data,e]}function tD(t){let e=(0,tj.jsx)(tT,{...t});return t.fallback?(0,tj.jsx)(tI.Suspense,{fallback:t.fallback,children:e}):e}function tT(t){let[e]=tO(t);return t.children(e)}function tB(t){let e=t.errorComponent??tN;return(0,tj.jsx)(tA,{getResetKey:t.getResetKey,onCatch:t.onCatch,children:({error:r,reset:o})=>r?tI.createElement(e,{error:r,reset:o}):t.children})}class tA extends tI.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(t){return{resetKey:t.getResetKey()}}static getDerivedStateFromError(t){return{error:t}}reset(){this.setState({error:null})}componentDidUpdate(t,e){e.error&&e.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(t,e){this.props.onCatch&&this.props.onCatch(t,e)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function tN({error:t}){let[e,r]=tI.useState(!1);return(0,tj.jsxs)("div",{style:{padding:".5rem",maxWidth:"100%"},children:[(0,tj.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[(0,tj.jsx)("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),(0,tj.jsx)("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>r(t=>!t),children:e?"Hide Error":"Show Error"})]}),(0,tj.jsx)("div",{style:{height:".25rem"}}),e?(0,tj.jsx)("div",{children:(0,tj.jsx)("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:t.message?(0,tj.jsx)("code",{children:t.message}):null})}):null]})}function t$({children:t,fallback:e=null}){return tI.useSyncExternalStore(tV,()=>!0,()=>!1)?(0,tj.jsx)(tI.Fragment,{children:t}):(0,tj.jsx)(tI.Fragment,{children:e})}function tV(){return()=>{}}class tW{constructor(t){if(this.init=t=>{var e,r;this.originalIndex=t.originalIndex;let o=this.options,n=!(null==o?void 0:o.path)&&!(null==o?void 0:o.id);if(this.parentRoute=null==(r=(e=this.options).getParentRoute)?void 0:r.call(e),n)this._path=tp;else if(!this.parentRoute)throw Error("Child Route instances must pass a 'getParentRoute: () => ParentRoute' option that returns a Route instance.");let i=n?tp:null==o?void 0:o.path;i&&"/"!==i&&(i=$(i));let s=(null==o?void 0:o.id)||i,a=n?tp:A([this.parentRoute.id===tp?"":this.parentRoute.id,s]);i===tp&&(i="/"),a!==tp&&(a=A(["/",a]));let l=a===tp?"/":A([this.parentRoute.fullPath,i]);this._path=i,this._id=a,this._fullPath=l,this._to=l,this._ssr=(null==o?void 0:o.ssr)??t.defaultSsr??!0},this.addChildren=t=>this._addFileChildren(t),this._addFileChildren=t=>(Array.isArray(t)&&(this.children=t),"object"==typeof t&&null!==t&&(this.children=Object.values(t)),this),this._addFileTypes=()=>this,this.updateLoader=t=>(Object.assign(this.options,t),this),this.update=t=>(Object.assign(this.options,t),this),this.lazy=t=>(this.lazyFn=t,this),this.options=t||{},this.isRoot=!(null==t?void 0:t.getParentRoute),(null==t?void 0:t.id)&&(null==t?void 0:t.path))throw Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}get ssr(){return this._ssr}}class tz{constructor({id:t}){this.notFound=t=>X({routeId:this.id,...t}),this.id=t}}class tU extends tW{constructor(t){super(t)}}var tH=r(40789);function tK(t,e){if(Object.is(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(let[r,o]of t)if(!e.has(r)||!Object.is(o,e.get(r)))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(let r of t)if(!e.has(r))return!1;return!0}let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!1;for(let o=0;o<r.length;o++)if(!Object.prototype.hasOwnProperty.call(e,r[o])||!Object.is(t[r[o]],e[r[o]]))return!1;return!0}let tJ=tI.createContext(null);function tG(){return"undefined"==typeof document?tJ:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=tJ,tJ)}function tq(t){let e=tI.useContext(tG());return(0,n.Z)(!(((null==t?void 0:t.warn)??!0)&&!e),"useRouter must be used inside a <RouterProvider> component!"),e}function tX(t){let e=tq({warn:(null==t?void 0:t.router)===void 0}),r=(null==t?void 0:t.router)||e,o=(0,tI.useRef)(void 0);return function(t,e=t=>t){return(0,tH.useSyncExternalStoreWithSelector)(t.subscribe,()=>t.state,()=>t.state,e,tK)}(r.__store,e=>{if(null==t?void 0:t.select){if(t.structuralSharing??r.options.defaultStructuralSharing){let r=E(o.current,t.select(e));return o.current=r,r}return t.select(e)}return e})}let tZ=tI.createContext(void 0),tY=tI.createContext(void 0);function tQ(t){let e=tI.useContext(t.from?tY:tZ);return tX({select:r=>{let n=r.matches.find(r=>t.from?t.from===r.routeId:r.id===e);if(o(!((t.shouldThrow??!0)&&!n),`Could not find ${t.from?`an active match from "${t.from}"`:"a nearest match!"}`),void 0!==n)return t.select?t.select(n):n},structuralSharing:t.structuralSharing})}function t0(t){return tQ({from:t.from,strict:t.strict,structuralSharing:t.structuralSharing,select:e=>t.select?t.select(e.loaderData):e.loaderData})}function t1(t){let{select:e,...r}=t;return tQ({...r,select:t=>e?e(t.loaderDeps):t.loaderDeps})}function t2(t){return tQ({from:t.from,strict:t.strict,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,select:e=>t.select?t.select(e.params):e.params})}function t5(t){return tQ({from:t.from,strict:t.strict,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,select:e=>t.select?t.select(e.search):e.search})}function t4(t){let{navigate:e}=tq();return tI.useCallback(r=>e({from:null==t?void 0:t.from,...r}),[null==t?void 0:t.from,e])}function t3(t){let e=tq(),r=tI.useRef(null);return tI.useEffect(()=>{r.current!==t&&(e.navigate({...t}),r.current=t)},[e,t]),null}function t8(t){return new t9({id:t})}class t9 extends tz{constructor({id:t}){super({id:t}),this.useMatch=t=>tQ({select:null==t?void 0:t.select,from:this.id,structuralSharing:null==t?void 0:t.structuralSharing}),this.useRouteContext=t=>tQ({from:this.id,select:e=>(null==t?void 0:t.select)?t.select(e.context):e.context}),this.useSearch=t=>t5({select:null==t?void 0:t.select,structuralSharing:null==t?void 0:t.structuralSharing,from:this.id}),this.useParams=t=>t2({select:null==t?void 0:t.select,structuralSharing:null==t?void 0:t.structuralSharing,from:this.id}),this.useLoaderDeps=t=>t1({...t,from:this.id,strict:!1}),this.useLoaderData=t=>t0({...t,from:this.id,strict:!1}),this.useNavigate=()=>t4({from:tq().routesById[this.id].fullPath}),this.notFound=t=>X({routeId:this.id,...t})}}class t6 extends tW{constructor(t){super(t),this.useMatch=t=>tQ({select:null==t?void 0:t.select,from:this.id,structuralSharing:null==t?void 0:t.structuralSharing}),this.useRouteContext=t=>tQ({...t,from:this.id,select:e=>(null==t?void 0:t.select)?t.select(e.context):e.context}),this.useSearch=t=>t5({select:null==t?void 0:t.select,structuralSharing:null==t?void 0:t.structuralSharing,from:this.id}),this.useParams=t=>t2({select:null==t?void 0:t.select,structuralSharing:null==t?void 0:t.structuralSharing,from:this.id}),this.useLoaderDeps=t=>t1({...t,from:this.id}),this.useLoaderData=t=>t0({...t,from:this.id}),this.useNavigate=()=>t4({from:this.fullPath}),this.$$typeof=Symbol.for("react.memo")}}function t7(t){return new t6(t)}function et(){return t=>eo(t)}let ee=et;class er extends tU{constructor(t){super(t),this.useMatch=t=>tQ({select:null==t?void 0:t.select,from:this.id,structuralSharing:null==t?void 0:t.structuralSharing}),this.useRouteContext=t=>tQ({...t,from:this.id,select:e=>(null==t?void 0:t.select)?t.select(e.context):e.context}),this.useSearch=t=>t5({select:null==t?void 0:t.select,structuralSharing:null==t?void 0:t.structuralSharing,from:this.id}),this.useParams=t=>t2({select:null==t?void 0:t.select,structuralSharing:null==t?void 0:t.structuralSharing,from:this.id}),this.useLoaderDeps=t=>t1({...t,from:this.id}),this.useLoaderData=t=>t0({...t,from:this.id}),this.useNavigate=()=>t4({from:this.fullPath}),this.$$typeof=Symbol.for("react.memo")}}function eo(t){return new er(t)}function en(t){return t}class ei extends t6{constructor(t){super({...t,id:"404"})}}function es(t){return new ea(t,{silent:!0}).createRoute}class ea{constructor(t,e){this.path=t,this.createRoute=t=>{(0,n.Z)(this.silent,"FileRoute is deprecated and will be removed in the next major version. Use the createFileRoute(path)(options) function instead.");let e=t7(t);return e.isRoot=!1,e},this.silent=null==e?void 0:e.silent}}function el(t){return(0,n.Z)(!1,"FileRouteLoader is deprecated and will be removed in the next major version. Please place the loader function in the the main route file, inside the `createFileRoute('/path/to/file')(options)` options"),t=>t}class eu{constructor(t){this.useMatch=t=>tQ({select:null==t?void 0:t.select,from:this.options.id,structuralSharing:null==t?void 0:t.structuralSharing}),this.useRouteContext=t=>tQ({from:this.options.id,select:e=>(null==t?void 0:t.select)?t.select(e.context):e.context}),this.useSearch=t=>t5({select:null==t?void 0:t.select,structuralSharing:null==t?void 0:t.structuralSharing,from:this.options.id}),this.useParams=t=>t2({select:null==t?void 0:t.select,structuralSharing:null==t?void 0:t.structuralSharing,from:this.options.id}),this.useLoaderDeps=t=>t1({...t,from:this.options.id}),this.useLoaderData=t=>t0({...t,from:this.options.id}),this.useNavigate=()=>t4({from:tq().routesById[this.options.id].fullPath}),this.options=t,this.$$typeof=Symbol.for("react.memo")}}function ec(t){return e=>new eu({id:t,...e})}function ed(t){return e=>new eu({id:t,...e})}function eh(t){let e=tX({select:t=>`not-found-${t.location.pathname}-${t.status}`});return(0,tj.jsx)(tB,{getResetKey:()=>e,onCatch:(e,r)=>{var o;if(Z(e))null==(o=t.onCatch)||o.call(t,e,r);else throw e},errorComponent:({error:e})=>{var r;if(Z(e))return null==(r=t.fallback)?void 0:r.call(t,e);throw e},children:t.children})}function ef(){return(0,tj.jsx)("p",{children:"Not Found"})}function ep(t){return(0,tj.jsx)(tj.Fragment,{children:t.children})}function em(t,e,r){return e.options.notFoundComponent?(0,tj.jsx)(e.options.notFoundComponent,{data:r}):t.options.defaultNotFoundComponent?(0,tj.jsx)(t.options.defaultNotFoundComponent,{data:r}):(0,tj.jsx)(ef,{})}function ev({children:t,log:e}){return"undefined"!=typeof document?null:(0,tj.jsx)("script",{className:"tsr-once",dangerouslySetInnerHTML:{__html:[t,"",'if (typeof __TSR_SSR__ !== "undefined") __TSR_SSR__.cleanScripts()'].filter(Boolean).join("\n")}})}function eg(){let t=tq(),e=(t.options.getScrollRestorationKey||tr)(t.latestLocation),r=e!==tr(t.latestLocation)?e:null;return t.isScrollRestoring&&t.isServer?(0,tj.jsx)(ev,{children:`(${ti.toString()})(${JSON.stringify(Y)},${JSON.stringify(r)}, undefined, true)`,log:!1}):null}r(85492);let ey=tI.memo(function({matchId:t}){var e,r;let i=tq(),s=tX({select:e=>{var r;return null==(r=e.matches.find(e=>e.id===t))?void 0:r.routeId}});o(s,`Could not find routeId for matchId "${t}". Please file an issue!`);let a=i.routesById[s],l=a.options.pendingComponent??i.options.defaultPendingComponent,u=l?(0,tj.jsx)(l,{}):null,c=a.options.errorComponent??i.options.defaultErrorComponent,d=a.options.onCatch??i.options.defaultOnCatch,h=a.isRoot?a.options.notFoundComponent??(null==(e=i.options.notFoundRoute)?void 0:e.options.component):a.options.notFoundComponent,f=(!a.isRoot||a.options.wrapInSuspense)&&(a.options.wrapInSuspense??l??(null==(r=a.options.errorComponent)?void 0:r.preload))?tI.Suspense:ep,p=c?tB:ep,m=h?eh:ep,v=tX({select:t=>t.loadedAt}),g=tX({select:e=>{var r;let o=e.matches.findIndex(e=>e.id===t);return null==(r=e.matches[o-1])?void 0:r.routeId}});return(0,tj.jsxs)(tj.Fragment,{children:[(0,tj.jsx)(tZ.Provider,{value:t,children:(0,tj.jsx)(f,{fallback:u,children:(0,tj.jsx)(p,{getResetKey:()=>v,errorComponent:c||tN,onCatch:(e,r)=>{if(Z(e))throw e;(0,n.Z)(!1,`Error in route match: ${t}`),null==d||d(e,r)},children:(0,tj.jsx)(m,{fallback:t=>{if(!h||t.routeId&&t.routeId!==s||!t.routeId&&!a.isRoot)throw t;return tI.createElement(h,t)},children:(0,tj.jsx)(ew,{matchId:t})})})})}),g===tp&&i.options.scrollRestoration?(0,tj.jsxs)(tj.Fragment,{children:[(0,tj.jsx)(eS,{}),(0,tj.jsx)(eg,{})]}):null]})});function eS(){let t=tq(),e=tI.useRef(void 0);return(0,tj.jsx)("script",{suppressHydrationWarning:!0,ref:r=>{r&&(void 0===e.current||e.current.href!==t.latestLocation.href)&&(t.emit({type:"onRendered",...tS(t.state)}),e.current=t.latestLocation)}},t.latestLocation.state.key)}let ew=tI.memo(function({matchId:t}){var e,r,n;let i=tq(),{match:s,key:a,routeId:l}=tX({select:e=>{let r=e.matches.findIndex(e=>e.id===t),o=e.matches[r],n=o.routeId,s=i.routesById[n].options.remountDeps??i.options.defaultRemountDeps,a=null==s?void 0:s({routeId:n,loaderDeps:o.loaderDeps,params:o._strictParams,search:o._strictSearch});return{key:a?JSON.stringify(a):void 0,routeId:n,match:M(o,["id","status","error"])}},structuralSharing:!0}),u=i.routesById[l],c=tI.useMemo(()=>{let t=u.options.component??i.options.defaultComponent;return t?(0,tj.jsx)(t,{},a):(0,tj.jsx)(eb,{})},[a,u.options.component,i.options.defaultComponent]),d=(u.options.errorComponent??i.options.defaultErrorComponent)||tN;if("notFound"===s.status)return o(Z(s.error),"Expected a notFound error"),em(i,u,s.error);if("redirected"===s.status)throw o(tv(s.error),"Expected a redirect error"),null==(e=i.getMatch(s.id))?void 0:e.loadPromise;if("error"===s.status){if(i.isServer)return(0,tj.jsx)(d,{error:s.error,reset:void 0,info:{componentStack:""}});throw s.error}if("pending"===s.status){let t=u.options.pendingMinMs??i.options.defaultPendingMinMs;if(t&&!(null==(r=i.getMatch(s.id))?void 0:r.minPendingPromise)&&!i.isServer){let e=D();Promise.resolve().then(()=>{i.updateMatch(s.id,t=>({...t,minPendingPromise:e}))}),setTimeout(()=>{e.resolve(),i.updateMatch(s.id,t=>({...t,minPendingPromise:void 0}))},t)}throw null==(n=i.getMatch(s.id))?void 0:n.loadPromise}return c}),eb=tI.memo(function(){let t=tq(),e=tI.useContext(tZ),r=tX({select:t=>{var r;return null==(r=t.matches.find(t=>t.id===e))?void 0:r.routeId}}),n=t.routesById[r],i=tX({select:t=>{let r=t.matches.find(t=>t.id===e);return o(r,`Could not find parent match for matchId "${e}"`),r.globalNotFound}}),s=tX({select:t=>{var r;let o=t.matches,n=o.findIndex(t=>t.id===e);return null==(r=o[n+1])?void 0:r.id}});if(i)return em(t,n,void 0);if(!s)return null;let a=(0,tj.jsx)(ey,{matchId:s}),l=t.options.defaultPendingComponent?(0,tj.jsx)(t.options.defaultPendingComponent,{}):null;return e===tp?(0,tj.jsx)(tI.Suspense,{fallback:l,children:a}):a});function eR(t,e,r){let o,n,i,s,a=()=>"undefined"==typeof document&&(null==r?void 0:r())===!1?(n=()=>null,Promise.resolve()):(o||(o=t().then(t=>{o=void 0,n=t[e??"default"]}).catch(t=>{var e;if("string"==typeof(null==(e=i=t)?void 0:e.message)&&(e.message.startsWith("Failed to fetch dynamically imported module")||e.message.startsWith("error loading dynamically imported module")||e.message.startsWith("Importing a module script failed"))&&i instanceof Error&&"undefined"!=typeof window&&"undefined"!=typeof sessionStorage){let t=`tanstack_router_reload:${i.message}`;sessionStorage.getItem(t)||(sessionStorage.setItem(t,"1"),s=!0)}})),o),l=function(t){if(s)throw window.location.reload(),new Promise(()=>{});if(i)throw i;if(!n)throw a();return(null==r?void 0:r())===!1?(0,tj.jsx)(t$,{fallback:(0,tj.jsx)(eb,{}),children:tI.createElement(n,t)}):tI.createElement(n,t)};return l.preload=a,l}var e_=r(96853);function ex(t){let e=tI.useRef(t);return e.current=t,tI.useRef((...t)=>e.current(...t)).current}let eP="undefined"!=typeof window?tI.useLayoutEffect:tI.useEffect;function eC(t){let e=tI.useRef({value:t,prev:null}),r=e.current.value;return t!==r&&(e.current={value:t,prev:r}),e.current.prev}function eL(){let t=tq(),e=tI.useRef({router:t,mounted:!1}),r=tX({select:({isLoading:t})=>t}),[o,n]=tI.useState(!1),i=tX({select:t=>t.matches.some(t=>"pending"===t.status),structuralSharing:!0}),s=eC(r),a=r||o||i,l=eC(a),u=r||i,c=eC(u);return t.isServer||(t.startTransition=t=>{n(!0),tI.startTransition(()=>{t(),n(!1)})}),tI.useEffect(()=>{let e=t.history.subscribe(t.load),r=t.buildLocation({to:t.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return V(t.latestLocation.href)!==V(r.href)&&t.commitLocation({...r,replace:!0}),()=>{e()}},[t,t.history]),eP(()=>{"undefined"!=typeof window&&t.clientSsr||e.current.router===t&&e.current.mounted||(e.current={router:t,mounted:!0},(async()=>{try{await t.load()}catch(t){console.error(t)}})())},[t]),eP(()=>{s&&!r&&t.emit({type:"onLoad",...tS(t.state)})},[s,t,r]),eP(()=>{c&&!u&&t.emit({type:"onBeforeRouteMount",...tS(t.state)})},[u,c,t]),eP(()=>{if(l&&!a){t.emit({type:"onResolved",...tS(t.state)}),t.__store.setState(t=>({...t,status:"idle",resolvedLocation:t.location}));if("undefined"!=typeof document&&document.querySelector){let e=t.state.location.state.__hashScrollIntoViewOptions??!0;if(e&&""!==t.state.location.hash){let r=document.getElementById(t.state.location.hash);r&&r.scrollIntoView(e)}}}},[a,l,t]),null}function eM(){let t=tq(),e=t.options.defaultPendingComponent?(0,tj.jsx)(t.options.defaultPendingComponent,{}):null,r=t.isServer||"undefined"!=typeof document&&t.clientSsr?ep:tI.Suspense,o=(0,tj.jsxs)(r,{fallback:e,children:[(0,tj.jsx)(eL,{}),(0,tj.jsx)(eE,{})]});return t.options.InnerWrap?(0,tj.jsx)(t.options.InnerWrap,{children:o}):o}function eE(){let t=tX({select:t=>{var e;return null==(e=t.matches[0])?void 0:e.id}}),e=tX({select:t=>t.loadedAt});return(0,tj.jsx)(tZ.Provider,{value:t,children:(0,tj.jsx)(tB,{getResetKey:()=>e,errorComponent:tN,onCatch:t=>{(0,n.Z)(!1,"The following error wasn't caught by any route! At the very least, consider setting an 'errorComponent' in your RootRoute!"),(0,n.Z)(!1,t.message||t.toString())},children:t?(0,tj.jsx)(ey,{matchId:t}):null})})}function eF(){let t=tq();return tX({select:t=>{var e;return[t.location.href,null==(e=t.resolvedLocation)?void 0:e.href,t.status]},structuralSharing:!0}),tI.useCallback(e=>{let{pending:r,caseSensitive:o,fuzzy:n,includeSearch:i,...s}=e;return t.matchRoute(s,{pending:r,caseSensitive:o,fuzzy:n,includeSearch:i})},[t])}function ek(t){let e=eF()(t);return"function"==typeof t.children?t.children(e):e?t.children:null}function ej(t){return tX({select:e=>{let r=e.matches;return(null==t?void 0:t.select)?t.select(r):r},structuralSharing:null==t?void 0:t.structuralSharing})}function eI(t){let e=tI.useContext(tZ);return ej({select:r=>(r=r.slice(0,r.findIndex(t=>t.id===e)),(null==t?void 0:t.select)?t.select(r):r),structuralSharing:null==t?void 0:t.structuralSharing})}function eO(t){let e=tI.useContext(tZ);return ej({select:r=>(r=r.slice(r.findIndex(t=>t.id===e)+1),(null==t?void 0:t.select)?t.select(r):r),structuralSharing:null==t?void 0:t.structuralSharing})}function eD(t,e){let r=tq(),[o,n]=tI.useState(!1),i=tI.useRef(!1),s=function(t){let e=tI.useRef(null);return tI.useImperativeHandle(t,()=>e.current,[]),e}(e),{activeProps:a=()=>({className:"active"}),inactiveProps:l=()=>({}),activeOptions:u,to:c,preload:d,preloadDelay:h,hashScrollIntoView:f,replace:p,startTransition:m,resetScroll:v,viewTransition:g,children:y,target:S,disabled:w,style:b,className:R,onClick:_,onFocus:x,onMouseEnter:P,onMouseLeave:C,onTouchStart:M,ignoreBlocker:E,...F}=t,{params:k,search:j,hash:I,state:D,mask:T,reloadDocument:B,...A}=F,N=tI.useMemo(()=>{try{return new URL(`${c}`),"external"}catch{}return"internal"},[c]),$=tX({select:t=>t.location.search,structuralSharing:!0}),V=ej({select:e=>{var r;return t.from??(null==(r=e[e.length-1])?void 0:r.fullPath)}}),W=tI.useMemo(()=>({...t,from:V}),[t,V]),U=tI.useMemo(()=>r.buildLocation(W),[r,W,$]),H=tI.useMemo(()=>!W.reloadDocument&&(d??r.options.defaultPreload),[r.options.defaultPreload,d,W.reloadDocument]),K=h??r.options.defaultPreloadDelay??0,J=tX({select:t=>{if(null==u?void 0:u.exact){var e,o,n;if(e=t.location.pathname,o=U.pathname,z(e,n=r.basepath)!==z(o,n))return!1}else{let e=z(t.location.pathname,r.basepath).split("/");if(!z(U.pathname,r.basepath).split("/").every((t,r)=>t===e[r]))return!1}return(!((null==u?void 0:u.includeSearch)??!0)||!!O(t.location.search,U.search,{partial:!(null==u?void 0:u.exact),ignoreUndefined:!(null==u?void 0:u.explicitUndefined)}))&&(null==u||!u.includeHash||t.location.hash===U.hash)}}),G=tI.useCallback(()=>{r.preloadRoute(W).catch(t=>{console.warn(t),console.warn("Error preloading route! ☝️")})},[W,r]);if(!function(t,e,r={},o={}){let n=tI.useRef("function"==typeof IntersectionObserver),i=tI.useRef(null);tI.useEffect(()=>{if(t.current&&n.current&&!o.disabled)return i.current=new IntersectionObserver(([t])=>{e(t)},r),i.current.observe(t.current),()=>{var t;null==(t=i.current)||t.disconnect()}},[e,r,o.disabled,t]),i.current}(s,tI.useCallback(t=>{(null==t?void 0:t.isIntersecting)&&G()},[G]),{rootMargin:"100px"},{disabled:!!w||"viewport"!==H}),eP(()=>{!i.current&&(w||"render"!==H||(G(),i.current=!0))},[w,G,H]),"external"===N)return{...A,ref:s,type:N,href:c,...y&&{children:y},...S&&{target:S},...w&&{disabled:w},...b&&{style:b},...R&&{className:R},..._&&{onClick:_},...x&&{onFocus:x},...P&&{onMouseEnter:P},...C&&{onMouseLeave:C},...M&&{onTouchStart:M}};let q=t=>{!w&&H&&G()},X=t=>e=>{var r;null==(r=e.persist)||r.call(e),t.filter(Boolean).forEach(t=>{e.defaultPrevented||t(e)})},Z=J?L(a,{})??{}:{},Y=J?{}:L(l,{}),Q=[R,Z.className,Y.className].filter(Boolean).join(" "),tt={...b,...Z.style,...Y.style};return{...A,...Z,...Y,href:w?void 0:U.maskedLocation?r.history.createHref(U.maskedLocation.href):r.history.createHref(U.href),ref:s,onClick:X([_,t=>{var e;if(!w&&!((e=t).metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!t.defaultPrevented&&(!S||"_self"===S)&&0===t.button){t.preventDefault(),(0,e_.flushSync)(()=>{n(!0)});let e=r.subscribe("onResolved",()=>{e(),n(!1)});return r.navigate({...W,replace:p,resetScroll:v,hashScrollIntoView:f,startTransition:m,viewTransition:g,ignoreBlocker:E})}}]),onFocus:X([x,q]),onMouseEnter:X([P,t=>{if(w)return;let e=t.target||{};if(H){if(e.preloadTimeout)return;e.preloadTimeout=setTimeout(()=>{e.preloadTimeout=null,G()},K)}}]),onMouseLeave:X([C,t=>{if(w)return;let e=t.target||{};e.preloadTimeout&&(clearTimeout(e.preloadTimeout),e.preloadTimeout=null)}]),onTouchStart:X([M,q]),disabled:!!w,target:S,...Object.keys(tt).length&&{style:tt},...Q&&{className:Q},...w&&{role:"link","aria-disabled":!0},...J&&{"data-status":"active","aria-current":"page"},...o&&{"data-transitioning":"transitioning"}}}function eT(t){return tI.forwardRef(function(e,r){return(0,tj.jsx)(eB,{...e,_asChild:t,ref:r})})}let eB=tI.forwardRef((t,e)=>{let{_asChild:r,...o}=t,{type:n,ref:i,...s}=eD(o,e),a="function"==typeof o.children?o.children({isActive:"active"===s["data-status"]}):o.children;return void 0===r&&delete s.disabled,tI.createElement(r||"a",{...s,ref:i},a)}),eA=t=>t,eN=t=>new e$(t);class e$ extends tw{constructor(t){super(t)}}function eV({router:t,children:e,...r}){t.update({...t.options,...r,context:{...t.options.context,...r.context}});let o=tG(),n=(0,tj.jsx)(o.Provider,{value:t,children:e});return t.options.Wrap?(0,tj.jsx)(t.options.Wrap,{children:n}):n}function eW({router:t,...e}){return(0,tj.jsx)(eV,{router:t,...e,children:(0,tj.jsx)(eM,{})})}function ez(t){return ts(tq(),!0),null}function eU(t){var e;ts(tq(),!0);let r=tq(),o=t.getKey||tr,n="";if(t.id)n=`[data-scroll-restoration-id="${t.id}"]`;else{let r=null==(e=t.getElement)?void 0:e.call(t);if(!r)return;n=r instanceof Window?"window":to(r)}let i=o(r.latestLocation),s=te.state[i];return null==s?void 0:s[n]}function eH(t,e){let{shouldBlockFn:r,enableBeforeUnload:o=!0,disabled:n=!1,withResolver:i=!1}=function(t,e){if(void 0===t)return{shouldBlockFn:()=>!0,withResolver:!1};if("shouldBlockFn"in t)return t;if("function"==typeof t){let r=!!(e??!0);return{shouldBlockFn:async()=>!!r&&await t(),enableBeforeUnload:r,withResolver:!1}}let r=!!(t.condition??!0),o=t.blockerFn;return{shouldBlockFn:async()=>r&&void 0!==o?await o():r,enableBeforeUnload:r,withResolver:void 0===o}}(t,e),s=tq(),{history:a}=s,[l,u]=tI.useState({status:"idle",current:void 0,next:void 0,action:void 0,proceed:void 0,reset:void 0});return tI.useEffect(()=>{let t=async t=>{function e(t){let e=s.parseLocation(void 0,t),r=s.getMatchedRoutes(e);if(void 0===r.foundRoute)throw Error(`No route found for location ${t.href}`);return{routeId:r.foundRoute.id,fullPath:r.foundRoute.fullPath,pathname:e.pathname,params:r.routeParams,search:e.search}}let o=e(t.currentLocation),n=e(t.nextLocation),a=await r({action:t.action,current:o,next:n});if(!i)return a;if(!a)return!1;let l=new Promise(e=>{u({status:"blocked",current:o,next:n,action:t.action,proceed:()=>e(!1),reset:()=>e(!0)})}),c=await l;return u({status:"idle",current:void 0,next:void 0,action:void 0,proceed:void 0,reset:void 0}),c};return n?void 0:a.block({blockerFn:t,enableBeforeUnload:o})},[r,o,n,i,a,s]),l}let eK=t=>{if("shouldBlockFn"in t)return{...t};let e=!!(t.condition??!0),r=t.blockerFn;return{shouldBlockFn:async()=>e&&void 0!==r?await r():e,enableBeforeUnload:e,withResolver:void 0===r}};function eJ(t){let{children:e,...r}=t,o=eH(eK(r));return e?"function"==typeof e?e(o):e:null}function eG(t){return tQ({...t,select:e=>t.select?t.select(e.context):e.context})}function eq(t){return tX({select:e=>(null==t?void 0:t.select)?t.select(e.location):e.location})}function eX(){return tX({select:t=>0!==t.location.state.__TSR_index})}function eZ({tag:t,attrs:e,children:r}){switch(t){case"title":return(0,tj.jsx)("title",{...e,suppressHydrationWarning:!0,children:r});case"meta":return(0,tj.jsx)("meta",{...e,suppressHydrationWarning:!0});case"link":return(0,tj.jsx)("link",{...e,suppressHydrationWarning:!0});case"style":return(0,tj.jsx)("style",{...e,dangerouslySetInnerHTML:{__html:r}});case"script":if(e&&e.src)return(0,tj.jsx)("script",{...e,suppressHydrationWarning:!0});if("string"==typeof r)return(0,tj.jsx)("script",{...e,dangerouslySetInnerHTML:{__html:r},suppressHydrationWarning:!0});return null;default:return null}}let eY=()=>{let t=tq(),e=tX({select:t=>t.matches.map(t=>t.meta).filter(Boolean)}),r=tI.useMemo(()=>{let t,r=[],o={};return[...e].reverse().forEach(e=>{[...e].reverse().forEach(e=>{if(e)if(e.title)t||(t={tag:"title",children:e.title});else{let t=e.name??e.property;if(t)if(o[t])return;else o[t]=!0;r.push({tag:"meta",attrs:{...e}})}})}),t&&r.push(t),r.reverse(),r},[e]),o=tX({select:t=>t.matches.map(t=>t.links).filter(Boolean).flat(1).map(t=>({tag:"link",attrs:{...t}})),structuralSharing:!0});return function(t,e){let r=new Set;return t.filter(t=>{let o=e(t);return!r.has(o)&&(r.add(o),!0)})}([...r,...tX({select:e=>{let r=[];return e.matches.map(e=>t.looseRoutesById[e.routeId]).forEach(e=>{var o,n,i,s;return null==(s=null==(i=null==(n=null==(o=t.ssr)?void 0:o.manifest)?void 0:n.routes[e.id])?void 0:i.preloads)?void 0:s.filter(Boolean).forEach(t=>{r.push({tag:"link",attrs:{rel:"modulepreload",href:t}})})}),r},structuralSharing:!0}),...o,...tX({select:t=>t.matches.map(t=>t.headScripts).flat(1).filter(Boolean).map(({children:t,...e})=>({tag:"script",attrs:{...e},children:t})),structuralSharing:!0})],t=>JSON.stringify(t))};function eQ(){return eY().map(t=>(0,tI.createElement)(eZ,{...t,key:`tsr-meta-${JSON.stringify(t)}`}))}let e0=()=>{let t=tq(),e=tX({select:e=>{var r;let o=[],n=null==(r=t.ssr)?void 0:r.manifest;return n?(e.matches.map(e=>t.looseRoutesById[e.routeId]).forEach(t=>{var e,r;return null==(r=null==(e=n.routes[t.id])?void 0:e.assets)?void 0:r.filter(t=>"script"===t.tag).forEach(t=>{o.push({tag:"script",attrs:t.attrs,children:t.children})})}),o):[]},structuralSharing:!0}),{scripts:r}=tX({select:t=>({scripts:t.matches.map(t=>t.scripts).flat(1).filter(Boolean).map(({children:t,...e})=>({tag:"script",attrs:{...e,suppressHydrationWarning:!0},children:t}))})}),o=[...r,...e];return(0,tj.jsx)(tj.Fragment,{children:o.map((t,e)=>(0,tI.createElement)(eZ,{...t,key:`tsr-scripts-${t.tag}-${e}`}))})}}}]);
|
@@ -1,19 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license React
|
3
|
-
* use-sync-external-store-shim.production.js
|
4
|
-
*
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
6
|
-
*
|
7
|
-
* This source code is licensed under the MIT license found in the
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
9
|
-
*/
|
10
|
-
|
11
|
-
/**
|
12
|
-
* @license React
|
13
|
-
* use-sync-external-store-shim/with-selector.production.js
|
14
|
-
*
|
15
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
16
|
-
*
|
17
|
-
* This source code is licensed under the MIT license found in the
|
18
|
-
* LICENSE file in the root directory of this source tree.
|
19
|
-
*/
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";(self.webpackChunkremote=self.webpackChunkremote||[]).push([["5184"],{88905:function(e,t,n){n.d(t,{F:()=>i,e:()=>o});var r=n(8491);function l(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function i(...e){return t=>{let n=!1,r=e.map(e=>{let r=l(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():l(e[t],null)}}}}function o(...e){return r.useCallback(i(...e),e)}},40349:function(e,t,n){n.r(t),n.d(t,{Root:()=>a,Slot:()=>a,Slottable:()=>c,createSlot:()=>o,createSlottable:()=>f});var r=n(8491),l=n(88905),i=n(31549);function o(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...i}=e;if(r.isValidElement(n)){var o;let e,a,u=(o=n,(a=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(a=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),f=function(e,t){let n={...t};for(let r in t){let l=e[r],i=t[r];/^on[A-Z]/.test(r)?l&&i?n[r]=(...e)=>{i(...e),l(...e)}:l&&(n[r]=l):"style"===r?n[r]={...l,...i}:"className"===r&&(n[r]=[l,i].filter(Boolean).join(" "))}return{...e,...n}}(i,n.props);return n.type!==r.Fragment&&(f.ref=t?(0,l.F)(t,u):u),r.cloneElement(n,f)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:l,...o}=e,a=r.Children.toArray(l),u=a.find(s);if(u){let e=u.props.children,l=a.map(t=>t!==u?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,i.jsx)(t,{...o,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,l):null})}return(0,i.jsx)(t,{...o,ref:n,children:l})});return n.displayName=`${e}.Slot`,n}var a=o("Slot"),u=Symbol("radix.slottable");function f(e){let t=({children:e})=>(0,i.jsx)(i.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=u,t}var c=f("Slottable");function s(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===u}}}]);
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";(self.webpackChunkremote=self.webpackChunkremote||[]).push([["5218"],{92274:function(e,t,n){n.r(t),n.d(t,{CSS:()=>L,add:()=>T,canUseDOM:()=>o,findFirstFocusableNode:()=>D,getEventCoordinates:()=>j,getOwnerDocument:()=>d,getWindow:()=>l,hasViewportRelativeCoordinates:()=>M,isDocument:()=>a,isHTMLElement:()=>s,isKeyboardEvent:()=>R,isNode:()=>i,isSVGElement:()=>f,isTouchEvent:()=>k,isWindow:()=>c,subtract:()=>C,useCombinedRefs:()=>u,useEvent:()=>h,useInterval:()=>b,useIsomorphicLayoutEffect:()=>m,useLatestValue:()=>g,useLazyMemo:()=>w,useNodeRef:()=>v,usePrevious:()=>E,useUniqueId:()=>p});var r=n(8491);function u(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)(()=>e=>{t.forEach(t=>t(e))},t)}let o="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function c(e){let t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function i(e){return"nodeType"in e}function l(e){var t,n;return e?c(e)?e:i(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function a(e){let{Document:t}=l(e);return e instanceof t}function s(e){return!c(e)&&e instanceof l(e).HTMLElement}function f(e){return e instanceof l(e).SVGElement}function d(e){return e?c(e)?e.document:i(e)?a(e)?e:s(e)||f(e)?e.ownerDocument:document:document:document}let m=o?r.useLayoutEffect:r.useEffect;function h(e){let t=(0,r.useRef)(e);return m(()=>{t.current=e}),(0,r.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}function b(){let e=(0,r.useRef)(null);return[(0,r.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,r.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}function g(e,t){void 0===t&&(t=[e]);let n=(0,r.useRef)(e);return m(()=>{n.current!==e&&(n.current=e)},t),n}function w(e,t){let n=(0,r.useRef)();return(0,r.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function v(e){let t=h(e),n=(0,r.useRef)(null),u=(0,r.useCallback)(e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e},[]);return[n,u]}function E(e){let t=(0,r.useRef)();return(0,r.useEffect)(()=>{t.current=e},[e]),t.current}let S={};function p(e,t){return(0,r.useMemo)(()=>{if(t)return t;let n=null==S[e]?0:S[e]+1;return S[e]=n,e+"-"+n},[e,t])}function y(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),u=1;u<n;u++)r[u-1]=arguments[u];return r.reduce((t,n)=>{for(let[r,u]of Object.entries(n)){let n=t[r];null!=n&&(t[r]=n+e*u)}return t},{...t})}}let T=y(1),C=y(-1);function M(e){return"clientX"in e&&"clientY"in e}function R(e){if(!e)return!1;let{KeyboardEvent:t}=l(e.target);return t&&e instanceof t}function k(e){if(!e)return!1;let{TouchEvent:t}=l(e.target);return t&&e instanceof t}function j(e){if(k(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return M(e)?{x:e.clientX,y:e.clientY}:null}let L=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[L.Translate.toString(e),L.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),x="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function D(e){return e.matches(x)?e:e.querySelector(x)}}}]);
|
@@ -1,5 +0,0 @@
|
|
1
|
-
/*! For license information please see 5285.fe1791d9.js.LICENSE.txt */
|
2
|
-
"use strict";(self.webpackChunkremote=self.webpackChunkremote||[]).push([["5285"],{98213:function(e,t,l){l.r(t),l.d(t,{getFilteredRowModel:()=>eS,reSplitAlphaNumeric:()=>er,getPaginationRowModel:()=>eF,ColumnFaceting:()=>v,defaultColumnSizing:()=>B,Headers:()=>C,createColumnHelper:()=>o,isFunction:()=>a,ColumnFiltering:()=>G,GlobalFaceting:()=>K,buildHeaderGroups:()=>h,getFacetedUniqueValues:()=>ev,getFacetedMinMaxValues:()=>eC,passiveEventSupported:()=>j,RowSorting:()=>ed,flattenBy:()=>s,createCell:()=>c,RowExpanding:()=>Q,filterFns:()=>y,createRow:()=>R,createTable:()=>ec,ColumnSizing:()=>k,getFacetedRowModel:()=>eR,_getVisibleLeafColumns:()=>X,functionalUpdate:()=>i,getMemoOptions:()=>p,getSortedRowModel:()=>eM,ColumnGrouping:()=>H,isNumberArray:()=>g,RowPinning:()=>ee,RowSelection:()=>et,getGroupedRowModel:()=>eb,ColumnVisibility:()=>$,expandRows:()=>ew,isRowSelected:()=>eo,GlobalFiltering:()=>J,isSubRowSelected:()=>ei,aggregationFns:()=>A,ColumnPinning:()=>T,getExpandedRowModel:()=>em,getCoreRowModel:()=>ef,memo:()=>d,noop:()=>r,orderColumns:()=>D,ColumnOrdering:()=>z,createColumn:()=>f,selectRowsFn:()=>en,makeStateUpdater:()=>u,flexRender:()=>eV,RowPagination:()=>Y,shouldAutoRemoveFilter:()=>L,sortingFns:()=>es,useReactTable:()=>eP});var n=l(8491);function o(){return{accessor:(e,t)=>"function"==typeof e?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function i(e,t){return"function"==typeof e?e(t):e}function r(){}function u(e,t){return l=>{t.setState(t=>({...t,[e]:i(l,t[e])}))}}function a(e){return e instanceof Function}function g(e){return Array.isArray(e)&&e.every(e=>"number"==typeof e)}function s(e,t){let l=[],n=e=>{e.forEach(e=>{l.push(e);let o=t(e);null!=o&&o.length&&n(o)})};return n(e),l}function d(e,t,l){let n,o=[];return i=>{let r,u;l.key&&l.debug&&(r=Date.now());let a=e(i);if(!(a.length!==o.length||a.some((e,t)=>o[t]!==e)))return n;if(o=a,l.key&&l.debug&&(u=Date.now()),n=t(...a),null==l||null==l.onChange||l.onChange(n),l.key&&l.debug&&null!=l&&l.debug()){let e=Math.round((Date.now()-r)*100)/100,t=Math.round((Date.now()-u)*100)/100,n=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${o(t,5)} /${o(e,5)} ms`,`
|
3
|
-
font-size: .6rem;
|
4
|
-
font-weight: bold;
|
5
|
-
color: hsl(${Math.max(0,Math.min(120-120*n,120))}deg 100% 31%);`,null==l?void 0:l.key)}return n}}function p(e,t,l,n){return{debug:()=>{var l;return null!=(l=null==e?void 0:e.debugAll)?l:e[t]},key:!1,onChange:n}}function c(e,t,l,n){let o={id:`${t.id}_${l.id}`,row:t,column:l,getValue:()=>t.getValue(n),renderValue:()=>{var t;return null!=(t=o.getValue())?t:e.options.renderFallbackValue},getContext:d(()=>[e,l,t,o],(e,t,l,n)=>({table:e,column:t,row:l,cell:n,getValue:n.getValue,renderValue:n.renderValue}),p(e.options,"debugCells","cell.getContext"))};return e._features.forEach(n=>{null==n.createCell||n.createCell(o,l,t,e)},{}),o}function f(e,t,l,n){var o,i;let r,u={...e._getDefaultColumnDef(),...t},a=u.accessorKey,g=null!=(o=null!=(i=u.id)?i:a?"function"==typeof String.prototype.replaceAll?a.replaceAll(".","_"):a.replace(/\./g,"_"):void 0)?o:"string"==typeof u.header?u.header:void 0;if(u.accessorFn?r=u.accessorFn:a&&(r=a.includes(".")?e=>{let t=e;for(let e of a.split(".")){var l;t=null==(l=t)?void 0:l[e]}return t}:e=>e[u.accessorKey]),!g)throw Error();let s={id:`${String(g)}`,accessorFn:r,parent:n,depth:l,columnDef:u,columns:[],getFlatColumns:d(()=>[!0],()=>{var e;return[s,...null==(e=s.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},p(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:d(()=>[e._getOrderColumnsFn()],e=>{var t;return null!=(t=s.columns)&&t.length?e(s.columns.flatMap(e=>e.getLeafColumns())):[s]},p(e.options,"debugColumns","column.getLeafColumns"))};for(let t of e._features)null==t.createColumn||t.createColumn(s,e);return s}let m="debugHeaders";function w(e,t,l){var n;let o={id:null!=(n=l.id)?n:t.id,column:t,index:l.index,isPlaceholder:!!l.isPlaceholder,placeholderId:l.placeholderId,depth:l.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{let e=[],t=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(t),e.push(l)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(t=>{null==t.createHeader||t.createHeader(o,e)}),o}let C={createTable:e=>{e.getHeaderGroups=d(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,l,n,o)=>{var i,r;let u=null!=(i=null==n?void 0:n.map(e=>l.find(t=>t.id===e)).filter(Boolean))?i:[],a=null!=(r=null==o?void 0:o.map(e=>l.find(t=>t.id===e)).filter(Boolean))?r:[];return h(t,[...u,...l.filter(e=>!(null!=n&&n.includes(e.id))&&!(null!=o&&o.includes(e.id))),...a],e)},p(e.options,m,"getHeaderGroups")),e.getCenterHeaderGroups=d(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,l,n,o)=>h(t,l=l.filter(e=>!(null!=n&&n.includes(e.id))&&!(null!=o&&o.includes(e.id))),e,"center"),p(e.options,m,"getCenterHeaderGroups")),e.getLeftHeaderGroups=d(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,l,n)=>{var o;return h(t,null!=(o=null==n?void 0:n.map(e=>l.find(t=>t.id===e)).filter(Boolean))?o:[],e,"left")},p(e.options,m,"getLeftHeaderGroups")),e.getRightHeaderGroups=d(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,l,n)=>{var o;return h(t,null!=(o=null==n?void 0:n.map(e=>l.find(t=>t.id===e)).filter(Boolean))?o:[],e,"right")},p(e.options,m,"getRightHeaderGroups")),e.getFooterGroups=d(()=>[e.getHeaderGroups()],e=>[...e].reverse(),p(e.options,m,"getFooterGroups")),e.getLeftFooterGroups=d(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),p(e.options,m,"getLeftFooterGroups")),e.getCenterFooterGroups=d(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),p(e.options,m,"getCenterFooterGroups")),e.getRightFooterGroups=d(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),p(e.options,m,"getRightFooterGroups")),e.getFlatHeaders=d(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),p(e.options,m,"getFlatHeaders")),e.getLeftFlatHeaders=d(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),p(e.options,m,"getLeftFlatHeaders")),e.getCenterFlatHeaders=d(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),p(e.options,m,"getCenterFlatHeaders")),e.getRightFlatHeaders=d(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),p(e.options,m,"getRightFlatHeaders")),e.getCenterLeafHeaders=d(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),p(e.options,m,"getCenterLeafHeaders")),e.getLeftLeafHeaders=d(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),p(e.options,m,"getLeftLeafHeaders")),e.getRightLeafHeaders=d(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),p(e.options,m,"getRightLeafHeaders")),e.getLeafHeaders=d(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,l)=>{var n,o,i,r,u,a;return[...null!=(n=null==(o=e[0])?void 0:o.headers)?n:[],...null!=(i=null==(r=t[0])?void 0:r.headers)?i:[],...null!=(u=null==(a=l[0])?void 0:a.headers)?u:[]].map(e=>e.getLeafHeaders()).flat()},p(e.options,m,"getLeafHeaders"))}};function h(e,t,l,n){var o,i;let r=0,u=function(e,t){void 0===t&&(t=1),r=Math.max(r,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var l;null!=(l=e.columns)&&l.length&&u(e.columns,t+1)},0)};u(e);let a=[],g=(e,t)=>{let o={depth:t,id:[n,`${t}`].filter(Boolean).join("_"),headers:[]},i=[];e.forEach(e=>{let r,u=[...i].reverse()[0],a=e.column.depth===o.depth,g=!1;if(a&&e.column.parent?r=e.column.parent:(r=e.column,g=!0),u&&(null==u?void 0:u.column)===r)u.subHeaders.push(e);else{let o=w(l,r,{id:[n,t,r.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:g,placeholderId:g?`${i.filter(e=>e.column===r).length}`:void 0,depth:t,index:i.length});o.subHeaders.push(e),i.push(o)}o.headers.push(e),e.headerGroup=o}),a.push(o),t>0&&g(i,t-1)};g(t.map((e,t)=>w(l,e,{depth:r,index:t})),r-1),a.reverse();let s=e=>e.filter(e=>e.column.getIsVisible()).map(e=>{let t=0,l=0,n=[0];return e.subHeaders&&e.subHeaders.length?(n=[],s(e.subHeaders).forEach(e=>{let{colSpan:l,rowSpan:o}=e;t+=l,n.push(o)})):t=1,l+=Math.min(...n),e.colSpan=t,e.rowSpan=l,{colSpan:t,rowSpan:l}});return s(null!=(o=null==(i=a[0])?void 0:i.headers)?o:[]),a}let R=(e,t,l,n,o,i,r)=>{let u={id:t,index:n,original:l,depth:o,parentId:r,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(u._valuesCache.hasOwnProperty(t))return u._valuesCache[t];let l=e.getColumn(t);if(null!=l&&l.accessorFn)return u._valuesCache[t]=l.accessorFn(u.original,n),u._valuesCache[t]},getUniqueValues:t=>{if(u._uniqueValuesCache.hasOwnProperty(t))return u._uniqueValuesCache[t];let l=e.getColumn(t);if(null!=l&&l.accessorFn)return l.columnDef.getUniqueValues?u._uniqueValuesCache[t]=l.columnDef.getUniqueValues(u.original,n):u._uniqueValuesCache[t]=[u.getValue(t)],u._uniqueValuesCache[t]},renderValue:t=>{var l;return null!=(l=u.getValue(t))?l:e.options.renderFallbackValue},subRows:null!=i?i:[],getLeafRows:()=>s(u.subRows,e=>e.subRows),getParentRow:()=>u.parentId?e.getRow(u.parentId,!0):void 0,getParentRows:()=>{let e=[],t=u;for(;;){let l=t.getParentRow();if(!l)break;e.push(l),t=l}return e.reverse()},getAllCells:d(()=>[e.getAllLeafColumns()],t=>t.map(t=>c(e,u,t,t.id)),p(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:d(()=>[u.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),p(e.options,"debugRows","getAllCellsByColumnId"))};for(let t=0;t<e._features.length;t++){let l=e._features[t];null==l||null==l.createRow||l.createRow(u,e)}return u},v={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},S=(e,t,l)=>{var n,o;let i=null==l||null==(n=l.toString())?void 0:n.toLowerCase();return!!(null==(o=e.getValue(t))||null==(o=o.toString())||null==(o=o.toLowerCase())?void 0:o.includes(i))};S.autoRemove=e=>E(e);let b=(e,t,l)=>{var n;return!!(null==(n=e.getValue(t))||null==(n=n.toString())?void 0:n.includes(l))};b.autoRemove=e=>E(e);let F=(e,t,l)=>{var n;return(null==(n=e.getValue(t))||null==(n=n.toString())?void 0:n.toLowerCase())===(null==l?void 0:l.toLowerCase())};F.autoRemove=e=>E(e);let M=(e,t,l)=>{var n;return null==(n=e.getValue(t))?void 0:n.includes(l)};M.autoRemove=e=>E(e);let V=(e,t,l)=>!l.some(l=>{var n;return!(null!=(n=e.getValue(t))&&n.includes(l))});V.autoRemove=e=>E(e)||!(null!=e&&e.length);let P=(e,t,l)=>l.some(l=>{var n;return null==(n=e.getValue(t))?void 0:n.includes(l)});P.autoRemove=e=>E(e)||!(null!=e&&e.length);let I=(e,t,l)=>e.getValue(t)===l;I.autoRemove=e=>E(e);let x=(e,t,l)=>e.getValue(t)==l;x.autoRemove=e=>E(e);let _=(e,t,l)=>{let[n,o]=l,i=e.getValue(t);return i>=n&&i<=o};_.resolveFilterValue=e=>{let[t,l]=e,n="number"!=typeof t?parseFloat(t):t,o="number"!=typeof l?parseFloat(l):l,i=null===t||Number.isNaN(n)?-1/0:n,r=null===l||Number.isNaN(o)?1/0:o;if(i>r){let e=i;i=r,r=e}return[i,r]},_.autoRemove=e=>E(e)||E(e[0])&&E(e[1]);let y={includesString:S,includesStringSensitive:b,equalsString:F,arrIncludes:M,arrIncludesAll:V,arrIncludesSome:P,equals:I,weakEquals:x,inNumberRange:_};function E(e){return null==e||""===e}let G={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:u("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{let l=t.getCoreRowModel().flatRows[0],n=null==l?void 0:l.getValue(e.id);return"string"==typeof n?y.includesString:"number"==typeof n?y.inNumberRange:"boolean"==typeof n||null!==n&&"object"==typeof n?y.equals:Array.isArray(n)?y.arrIncludes:y.weakEquals},e.getFilterFn=()=>{var l,n;return a(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(l=null==(n=t.options.filterFns)?void 0:n[e.columnDef.filterFn])?l:y[e.columnDef.filterFn]},e.getCanFilter=()=>{var l,n,o;return(null==(l=e.columnDef.enableColumnFilter)||l)&&(null==(n=t.options.enableColumnFilters)||n)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var l;return null==(l=t.getState().columnFilters)||null==(l=l.find(t=>t.id===e.id))?void 0:l.value},e.getFilterIndex=()=>{var l,n;return null!=(l=null==(n=t.getState().columnFilters)?void 0:n.findIndex(t=>t.id===e.id))?l:-1},e.setFilterValue=l=>{t.setColumnFilters(t=>{var n,o;let r=e.getFilterFn(),u=null==t?void 0:t.find(t=>t.id===e.id),a=i(l,u?u.value:void 0);if(L(r,a,e))return null!=(n=null==t?void 0:t.filter(t=>t.id!==e.id))?n:[];let g={id:e.id,value:a};return u?null!=(o=null==t?void 0:t.map(t=>t.id===e.id?g:t))?o:[]:null!=t&&t.length?[...t,g]:[g]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{let l=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange(e=>{var n;return null==(n=i(t,e))?void 0:n.filter(e=>{let t=l.find(t=>t.id===e.id);return!(t&&L(t.getFilterFn(),e.value,t))&&!0})})},e.resetColumnFilters=t=>{var l,n;e.setColumnFilters(t?[]:null!=(l=null==(n=e.initialState)?void 0:n.columnFilters)?l:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel)?e.getPreFilteredRowModel():e._getFilteredRowModel()}};function L(e,t,l){return!!e&&!!e.autoRemove&&e.autoRemove(t,l)||void 0===t||"string"==typeof t&&!t}let A={sum:(e,t,l)=>l.reduce((t,l)=>{let n=l.getValue(e);return t+("number"==typeof n?n:0)},0),min:(e,t,l)=>{let n;return l.forEach(t=>{let l=t.getValue(e);null!=l&&(n>l||void 0===n&&l>=l)&&(n=l)}),n},max:(e,t,l)=>{let n;return l.forEach(t=>{let l=t.getValue(e);null!=l&&(n<l||void 0===n&&l>=l)&&(n=l)}),n},extent:(e,t,l)=>{let n,o;return l.forEach(t=>{let l=t.getValue(e);null!=l&&(void 0===n?l>=l&&(n=o=l):(n>l&&(n=l),o<l&&(o=l)))}),[n,o]},mean:(e,t)=>{let l=0,n=0;if(t.forEach(t=>{let o=t.getValue(e);null!=o&&(o*=1)>=o&&(++l,n+=o)}),l)return n/l},median:(e,t)=>{if(!t.length)return;let l=t.map(t=>t.getValue(e));if(!g(l))return;if(1===l.length)return l[0];let n=Math.floor(l.length/2),o=l.sort((e,t)=>e-t);return l.length%2!=0?o[n]:(o[n-1]+o[n])/2},unique:(e,t)=>Array.from(new Set(t.map(t=>t.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(t=>t.getValue(e))).size,count:(e,t)=>t.length},H={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,l;return null!=(t=null==(l=e.getValue())||null==l.toString?void 0:l.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:u("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(t=>null!=t&&t.includes(e.id)?t.filter(t=>t!==e.id):[...null!=t?t:[],e.id])},e.getCanGroup=()=>{var l,n;return(null==(l=e.columnDef.enableGrouping)||l)&&(null==(n=t.options.enableGrouping)||n)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var l;return null==(l=t.getState().grouping)?void 0:l.includes(e.id)},e.getGroupedIndex=()=>{var l;return null==(l=t.getState().grouping)?void 0:l.indexOf(e.id)},e.getToggleGroupingHandler=()=>{let t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{let l=t.getCoreRowModel().flatRows[0],n=null==l?void 0:l.getValue(e.id);return"number"==typeof n?A.sum:"[object Date]"===Object.prototype.toString.call(n)?A.extent:void 0},e.getAggregationFn=()=>{var l,n;if(!e)throw Error();return a(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(l=null==(n=t.options.aggregationFns)?void 0:n[e.columnDef.aggregationFn])?l:A[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var l,n;e.setGrouping(t?[]:null!=(l=null==(n=e.initialState)?void 0:n.grouping)?l:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel)?e.getPreGroupedRowModel():e._getGroupedRowModel()},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=l=>{if(e._groupingValuesCache.hasOwnProperty(l))return e._groupingValuesCache[l];let n=t.getColumn(l);return null!=n&&n.columnDef.getGroupingValue?(e._groupingValuesCache[l]=n.columnDef.getGroupingValue(e.original),e._groupingValuesCache[l]):e.getValue(l)},e._groupingValuesCache={}},createCell:(e,t,l,n)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===l.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!(null!=(t=l.subRows)&&t.length)}}};function D(e,t,l){if(!(null!=t&&t.length)||!l)return e;let n=e.filter(e=>!t.includes(e.id));return"remove"===l?n:[...t.map(t=>e.find(e=>e.id===t)).filter(Boolean),...n]}let z={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:u("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=d(e=>[X(t,e)],t=>t.findIndex(t=>t.id===e.id),p(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=l=>{var n;return(null==(n=X(t,l)[0])?void 0:n.id)===e.id},e.getIsLastColumn=l=>{var n;let o=X(t,l);return(null==(n=o[o.length-1])?void 0:n.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var l;e.setColumnOrder(t?[]:null!=(l=e.initialState.columnOrder)?l:[])},e._getOrderColumnsFn=d(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(e,t,l)=>n=>{let o=[];if(null!=e&&e.length){let t=[...e],l=[...n];for(;l.length&&t.length;){let e=t.shift(),n=l.findIndex(t=>t.id===e);n>-1&&o.push(l.splice(n,1)[0])}o=[...o,...l]}else o=n;return D(o,t,l)},p(e.options,"debugTable","_getOrderColumnsFn"))}},O=()=>({left:[],right:[]}),T={getInitialState:e=>({columnPinning:O(),...e}),getDefaultOptions:e=>({onColumnPinningChange:u("columnPinning",e)}),createColumn:(e,t)=>{e.pin=l=>{let n=e.getLeafColumns().map(e=>e.id).filter(Boolean);t.setColumnPinning(e=>{var t,o,i,r,u,a;return"right"===l?{left:(null!=(i=null==e?void 0:e.left)?i:[]).filter(e=>!(null!=n&&n.includes(e))),right:[...(null!=(r=null==e?void 0:e.right)?r:[]).filter(e=>!(null!=n&&n.includes(e))),...n]}:"left"===l?{left:[...(null!=(u=null==e?void 0:e.left)?u:[]).filter(e=>!(null!=n&&n.includes(e))),...n],right:(null!=(a=null==e?void 0:e.right)?a:[]).filter(e=>!(null!=n&&n.includes(e)))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter(e=>!(null!=n&&n.includes(e))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter(e=>!(null!=n&&n.includes(e)))}})},e.getCanPin=()=>e.getLeafColumns().some(e=>{var l,n,o;return(null==(l=e.columnDef.enablePinning)||l)&&(null==(n=null!=(o=t.options.enableColumnPinning)?o:t.options.enablePinning)||n)}),e.getIsPinned=()=>{let l=e.getLeafColumns().map(e=>e.id),{left:n,right:o}=t.getState().columnPinning,i=l.some(e=>null==n?void 0:n.includes(e)),r=l.some(e=>null==o?void 0:o.includes(e));return i?"left":!!r&&"right"},e.getPinnedIndex=()=>{var l,n;let o=e.getIsPinned();return o?null!=(l=null==(n=t.getState().columnPinning)||null==(n=n[o])?void 0:n.indexOf(e.id))?l:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=d(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,l)=>{let n=[...null!=t?t:[],...null!=l?l:[]];return e.filter(e=>!n.includes(e.column.id))},p(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=d(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"left"})),p(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=d(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"right"})),p(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var l,n;return e.setColumnPinning(t?O():null!=(l=null==(n=e.initialState)?void 0:n.columnPinning)?l:O())},e.getIsSomeColumnsPinned=t=>{var l,n,o;let i=e.getState().columnPinning;return t?!!(null==(l=i[t])?void 0:l.length):!!((null==(n=i.left)?void 0:n.length)||(null==(o=i.right)?void 0:o.length))},e.getLeftLeafColumns=d(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),p(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=d(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),p(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=d(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,l)=>{let n=[...null!=t?t:[],...null!=l?l:[]];return e.filter(e=>!n.includes(e.id))},p(e.options,"debugColumns","getCenterLeafColumns"))}},B={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},q=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),k={getDefaultColumnDef:()=>B,getInitialState:e=>({columnSizing:{},columnSizingInfo:q(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:u("columnSizing",e),onColumnSizingInfoChange:u("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var l,n,o;let i=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(l=e.columnDef.minSize)?l:B.minSize,null!=(n=null!=i?i:e.columnDef.size)?n:B.size),null!=(o=e.columnDef.maxSize)?o:B.maxSize)},e.getStart=d(e=>[e,X(t,e),t.getState().columnSizing],(t,l)=>l.slice(0,e.getIndex(t)).reduce((e,t)=>e+t.getSize(),0),p(t.options,"debugColumns","getStart")),e.getAfter=d(e=>[e,X(t,e),t.getState().columnSizing],(t,l)=>l.slice(e.getIndex(t)+1).reduce((e,t)=>e+t.getSize(),0),p(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing(t=>{let{[e.id]:l,...n}=t;return n})},e.getCanResize=()=>{var l,n;return(null==(l=e.columnDef.enableResizing)||l)&&(null==(n=t.options.enableColumnResizing)||n)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0,l=e=>{if(e.subHeaders.length)e.subHeaders.forEach(l);else{var n;t+=null!=(n=e.column.getSize())?n:0}};return l(e),t},e.getStart=()=>{if(e.index>0){let t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=l=>{let n=t.getColumn(e.column.id),o=null==n?void 0:n.getCanResize();return i=>{if(!n||!o||(null==i.persist||i.persist(),U(i)&&i.touches&&i.touches.length>1))return;let r=e.getSize(),u=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[n.id,n.getSize()]],a=U(i)?Math.round(i.touches[0].clientX):i.clientX,g={},s=(e,l)=>{"number"==typeof l&&(t.setColumnSizingInfo(e=>{var n,o;let i="rtl"===t.options.columnResizeDirection?-1:1,r=(l-(null!=(n=null==e?void 0:e.startOffset)?n:0))*i,u=Math.max(r/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999);return e.columnSizingStart.forEach(e=>{let[t,l]=e;g[t]=Math.round(100*Math.max(l+l*u,0))/100}),{...e,deltaOffset:r,deltaPercentage:u}}),("onChange"===t.options.columnResizeMode||"end"===e)&&t.setColumnSizing(e=>({...e,...g})))},d=e=>s("move",e),p=e=>{s("end",e),t.setColumnSizingInfo(e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},c=l||("undefined"!=typeof document?document:null),f={moveHandler:e=>d(e.clientX),upHandler:e=>{null==c||c.removeEventListener("mousemove",f.moveHandler),null==c||c.removeEventListener("mouseup",f.upHandler),p(e.clientX)}},m={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t;null==c||c.removeEventListener("touchmove",m.moveHandler),null==c||c.removeEventListener("touchend",m.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),p(null==(t=e.touches[0])?void 0:t.clientX)}},w=!!j()&&{passive:!1};U(i)?(null==c||c.addEventListener("touchmove",m.moveHandler,w),null==c||c.addEventListener("touchend",m.upHandler,w)):(null==c||c.addEventListener("mousemove",f.moveHandler,w),null==c||c.addEventListener("mouseup",f.upHandler,w)),t.setColumnSizingInfo(e=>({...e,startOffset:a,startSize:r,deltaOffset:0,deltaPercentage:0,columnSizingStart:u,isResizingColumn:n.id}))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var l;e.setColumnSizing(t?{}:null!=(l=e.initialState.columnSizing)?l:{})},e.resetHeaderSizeInfo=t=>{var l;e.setColumnSizingInfo(t?q():null!=(l=e.initialState.columnSizingInfo)?l:q())},e.getTotalSize=()=>{var t,l;return null!=(t=null==(l=e.getHeaderGroups()[0])?void 0:l.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getLeftTotalSize=()=>{var t,l;return null!=(t=null==(l=e.getLeftHeaderGroups()[0])?void 0:l.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getCenterTotalSize=()=>{var t,l;return null!=(t=null==(l=e.getCenterHeaderGroups()[0])?void 0:l.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getRightTotalSize=()=>{var t,l;return null!=(t=null==(l=e.getRightHeaderGroups()[0])?void 0:l.headers.reduce((e,t)=>e+t.getSize(),0))?t:0}}},N=null;function j(){if("boolean"==typeof N)return N;let e=!1;try{let t=()=>{};window.addEventListener("test",t,{get passive(){return e=!0,!1}}),window.removeEventListener("test",t)}catch(t){e=!1}return N=e}function U(e){return"touchstart"===e.type}let $={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:u("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=l=>{e.getCanHide()&&t.setColumnVisibility(t=>({...t,[e.id]:null!=l?l:!e.getIsVisible()}))},e.getIsVisible=()=>{var l,n;let o=e.columns;return null==(l=o.length?o.some(e=>e.getIsVisible()):null==(n=t.getState().columnVisibility)?void 0:n[e.id])||l},e.getCanHide=()=>{var l,n;return(null==(l=e.columnDef.enableHiding)||l)&&(null==(n=t.options.enableHiding)||n)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=d(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),p(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=d(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,l)=>[...e,...t,...l],p(t.options,"debugRows","getVisibleCells"))},createTable:e=>{let t=(t,l)=>d(()=>[l(),l().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),p(e.options,"debugColumns",t));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var l;e.setColumnVisibility(t?{}:null!=(l=e.initialState.columnVisibility)?l:{})},e.toggleAllColumnsVisible=t=>{var l;t=null!=(l=t)?l:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((e,l)=>({...e,[l.id]:t||!(null!=l.getCanHide&&l.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(e=>!(null!=e.getIsVisible&&e.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(e=>null==e.getIsVisible?void 0:e.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var l;e.toggleAllColumnsVisible(null==(l=t.target)?void 0:l.checked)}}};function X(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}let K={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},J={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:u("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var l;let n=null==(l=e.getCoreRowModel().flatRows[0])||null==(l=l._getAllCellsByColumnId()[t.id])?void 0:l.getValue();return"string"==typeof n||"number"==typeof n}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var l,n,o,i;return(null==(l=e.columnDef.enableGlobalFilter)||l)&&(null==(n=t.options.enableGlobalFilter)||n)&&(null==(o=t.options.enableFilters)||o)&&(null==(i=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||i)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>y.includesString,e.getGlobalFilterFn=()=>{var t,l;let{globalFilterFn:n}=e.options;return a(n)?n:"auto"===n?e.getGlobalAutoFilterFn():null!=(t=null==(l=e.options.filterFns)?void 0:l[n])?t:y[n]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},Q={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:u("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,l=!1;e._autoResetExpanded=()=>{var n,o;if(!t)return void e._queue(()=>{t=!0});if(null!=(n=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?n:!e.options.manualExpanding){if(l)return;l=!0,e._queue(()=>{e.resetExpanded(),l=!1})}},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var l,n;e.setExpanded(t?{}:null!=(l=null==(n=e.initialState)?void 0:n.expanded)?l:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(e=>e.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{let t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{let t=e.getState().expanded;return"boolean"==typeof t?!0===t:!(!Object.keys(t).length||e.getRowModel().flatRows.some(e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(e=>{let l=e.split(".");t=Math.max(t,l.length)}),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel)?e.getPreExpandedRowModel():e._getExpandedRowModel()},createRow:(e,t)=>{e.toggleExpanded=l=>{t.setExpanded(n=>{var o;let i=!0===n||!!(null!=n&&n[e.id]),r={};if(!0===n?Object.keys(t.getRowModel().rowsById).forEach(e=>{r[e]=!0}):r=n,l=null!=(o=l)?o:!i,!i&&l)return{...r,[e.id]:!0};if(i&&!l){let{[e.id]:t,...l}=r;return l}return n})},e.getIsExpanded=()=>{var l;let n=t.getState().expanded;return!!(null!=(l=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?l:!0===n||(null==n?void 0:n[e.id]))},e.getCanExpand=()=>{var l,n,o;return null!=(l=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?l:(null==(n=t.options.enableExpanding)||n)&&!!(null!=(o=e.subRows)&&o.length)},e.getIsAllParentsExpanded=()=>{let l=!0,n=e;for(;l&&n.parentId;)l=(n=t.getRow(n.parentId,!0)).getIsExpanded();return l},e.getToggleExpandedHandler=()=>{let t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},W=()=>({pageIndex:0,pageSize:10}),Y={getInitialState:e=>({...e,pagination:{...W(),...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:u("pagination",e)}),createTable:e=>{let t=!1,l=!1;e._autoResetPageIndex=()=>{var n,o;if(!t)return void e._queue(()=>{t=!0});if(null!=(n=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?n:!e.options.manualPagination){if(l)return;l=!0,e._queue(()=>{e.resetPageIndex(),l=!1})}},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange(e=>i(t,e)),e.resetPagination=t=>{var l;e.setPagination(t?W():null!=(l=e.initialState.pagination)?l:W())},e.setPageIndex=t=>{e.setPagination(l=>{let n=i(t,l.pageIndex);return n=Math.max(0,Math.min(n,void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1)),{...l,pageIndex:n}})},e.resetPageIndex=t=>{var l,n;e.setPageIndex(t?0:null!=(l=null==(n=e.initialState)||null==(n=n.pagination)?void 0:n.pageIndex)?l:0)},e.resetPageSize=t=>{var l,n;e.setPageSize(t?10:null!=(l=null==(n=e.initialState)||null==(n=n.pagination)?void 0:n.pageSize)?l:10)},e.setPageSize=t=>{e.setPagination(e=>{let l=Math.max(1,i(t,e.pageSize)),n=Math.floor(e.pageSize*e.pageIndex/l);return{...e,pageIndex:n,pageSize:l}})},e.setPageCount=t=>e.setPagination(l=>{var n;let o=i(t,null!=(n=e.options.pageCount)?n:-1);return"number"==typeof o&&(o=Math.max(-1,o)),{...l,pageCount:o}}),e.getPageOptions=d(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...Array(e)].fill(null).map((e,t)=>t)),t},p(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{let{pageIndex:t}=e.getState().pagination,l=e.getPageCount();return -1===l||0!==l&&t<l-1},e.previousPage=()=>e.setPageIndex(e=>e-1),e.nextPage=()=>e.setPageIndex(e=>e+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel)?e.getPrePaginationRowModel():e._getPaginationRowModel(),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},Z=()=>({top:[],bottom:[]}),ee={getInitialState:e=>({rowPinning:Z(),...e}),getDefaultOptions:e=>({onRowPinningChange:u("rowPinning",e)}),createRow:(e,t)=>{e.pin=(l,n,o)=>{let i=n?e.getLeafRows().map(e=>{let{id:t}=e;return t}):[],r=new Set([...o?e.getParentRows().map(e=>{let{id:t}=e;return t}):[],e.id,...i]);t.setRowPinning(e=>{var t,n,o,i,u,a;return"bottom"===l?{top:(null!=(o=null==e?void 0:e.top)?o:[]).filter(e=>!(null!=r&&r.has(e))),bottom:[...(null!=(i=null==e?void 0:e.bottom)?i:[]).filter(e=>!(null!=r&&r.has(e))),...Array.from(r)]}:"top"===l?{top:[...(null!=(u=null==e?void 0:e.top)?u:[]).filter(e=>!(null!=r&&r.has(e))),...Array.from(r)],bottom:(null!=(a=null==e?void 0:e.bottom)?a:[]).filter(e=>!(null!=r&&r.has(e)))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter(e=>!(null!=r&&r.has(e))),bottom:(null!=(n=null==e?void 0:e.bottom)?n:[]).filter(e=>!(null!=r&&r.has(e)))}})},e.getCanPin=()=>{var l;let{enableRowPinning:n,enablePinning:o}=t.options;return"function"==typeof n?n(e):null==(l=null!=n?n:o)||l},e.getIsPinned=()=>{let l=[e.id],{top:n,bottom:o}=t.getState().rowPinning,i=l.some(e=>null==n?void 0:n.includes(e)),r=l.some(e=>null==o?void 0:o.includes(e));return i?"top":!!r&&"bottom"},e.getPinnedIndex=()=>{var l,n;let o=e.getIsPinned();if(!o)return -1;let i=null==(l="top"===o?t.getTopRows():t.getBottomRows())?void 0:l.map(e=>{let{id:t}=e;return t});return null!=(n=null==i?void 0:i.indexOf(e.id))?n:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var l,n;return e.setRowPinning(t?Z():null!=(l=null==(n=e.initialState)?void 0:n.rowPinning)?l:Z())},e.getIsSomeRowsPinned=t=>{var l,n,o;let i=e.getState().rowPinning;return t?!!(null==(l=i[t])?void 0:l.length):!!((null==(n=i.top)?void 0:n.length)||(null==(o=i.bottom)?void 0:o.length))},e._getPinnedRows=(t,l,n)=>{var o;return(null==(o=e.options.keepPinnedRows)||o?(null!=l?l:[]).map(t=>{let l=e.getRow(t,!0);return l.getIsAllParentsExpanded()?l:null}):(null!=l?l:[]).map(e=>t.find(t=>t.id===e))).filter(Boolean).map(e=>({...e,position:n}))},e.getTopRows=d(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,l)=>e._getPinnedRows(t,l,"top"),p(e.options,"debugRows","getTopRows")),e.getBottomRows=d(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,l)=>e._getPinnedRows(t,l,"bottom"),p(e.options,"debugRows","getBottomRows")),e.getCenterRows=d(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(e,t,l)=>{let n=new Set([...null!=t?t:[],...null!=l?l:[]]);return e.filter(e=>!n.has(e.id))},p(e.options,"debugRows","getCenterRows"))}},et={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:u("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var l;return e.setRowSelection(t?{}:null!=(l=e.initialState.rowSelection)?l:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(l=>{t=void 0!==t?t:!e.getIsAllRowsSelected();let n={...l},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(e=>{e.getCanSelect()&&(n[e.id]=!0)}):o.forEach(e=>{delete n[e.id]}),n})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(l=>{let n=void 0!==t?t:!e.getIsAllPageRowsSelected(),o={...l};return e.getRowModel().rows.forEach(t=>{el(o,t.id,n,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=d(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,l)=>Object.keys(t).length?en(e,l):{rows:[],flatRows:[],rowsById:{}},p(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=d(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,l)=>Object.keys(t).length?en(e,l):{rows:[],flatRows:[],rowsById:{}},p(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=d(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,l)=>Object.keys(t).length?en(e,l):{rows:[],flatRows:[],rowsById:{}},p(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{let t=e.getFilteredRowModel().flatRows,{rowSelection:l}=e.getState(),n=!!(t.length&&Object.keys(l).length);return n&&t.some(e=>e.getCanSelect()&&!l[e.id])&&(n=!1),n},e.getIsAllPageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows.filter(e=>e.getCanSelect()),{rowSelection:l}=e.getState(),n=!!t.length;return n&&t.some(e=>!l[e.id])&&(n=!1),n},e.getIsSomeRowsSelected=()=>{var t;let l=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return l>0&&l<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter(e=>e.getCanSelect()).some(e=>e.getIsSelected()||e.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(l,n)=>{let o=e.getIsSelected();t.setRowSelection(i=>{var r;if(l=void 0!==l?l:!o,e.getCanSelect()&&o===l)return i;let u={...i};return el(u,e.id,l,null==(r=null==n?void 0:n.selectChildren)||r,t),u})},e.getIsSelected=()=>{let{rowSelection:l}=t.getState();return eo(e,l)},e.getIsSomeSelected=()=>{let{rowSelection:l}=t.getState();return"some"===ei(e,l)},e.getIsAllSubRowsSelected=()=>{let{rowSelection:l}=t.getState();return"all"===ei(e,l)},e.getCanSelect=()=>{var l;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(l=t.options.enableRowSelection)||l},e.getCanSelectSubRows=()=>{var l;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(l=t.options.enableSubRowSelection)||l},e.getCanMultiSelect=()=>{var l;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(l=t.options.enableMultiRowSelection)||l},e.getToggleSelectedHandler=()=>{let t=e.getCanSelect();return l=>{var n;t&&e.toggleSelected(null==(n=l.target)?void 0:n.checked)}}}},el=(e,t,l,n,o)=>{var i;let r=o.getRow(t,!0);l?(r.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),r.getCanSelect()&&(e[t]=!0)):delete e[t],n&&null!=(i=r.subRows)&&i.length&&r.getCanSelectSubRows()&&r.subRows.forEach(t=>el(e,t.id,l,n,o))};function en(e,t){let l=e.getState().rowSelection,n=[],o={},i=function(e,t){return e.map(e=>{var t;let r=eo(e,l);if(r&&(n.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:i(e.subRows)}),r)return e}).filter(Boolean)};return{rows:i(t.rows),flatRows:n,rowsById:o}}function eo(e,t){var l;return null!=(l=t[e.id])&&l}function ei(e,t,l){var n;if(!(null!=(n=e.subRows)&&n.length))return!1;let o=!0,i=!1;return e.subRows.forEach(e=>{if((!i||o)&&(e.getCanSelect()&&(eo(e,t)?i=!0:o=!1),e.subRows&&e.subRows.length)){let l=ei(e,t);"all"===l?i=!0:("some"===l&&(i=!0),o=!1)}}),o?"all":!!i&&"some"}let er=/([0-9]+)/gm;function eu(e,t){return e===t?0:e>t?1:-1}function ea(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function eg(e,t){let l=e.split(er).filter(Boolean),n=t.split(er).filter(Boolean);for(;l.length&&n.length;){let e=l.shift(),t=n.shift(),o=parseInt(e,10),i=parseInt(t,10),r=[o,i].sort();if(isNaN(r[0])){if(e>t)return 1;if(t>e)return -1;continue}if(isNaN(r[1]))return isNaN(o)?-1:1;if(o>i)return 1;if(i>o)return -1}return l.length-n.length}let es={alphanumeric:(e,t,l)=>eg(ea(e.getValue(l)).toLowerCase(),ea(t.getValue(l)).toLowerCase()),alphanumericCaseSensitive:(e,t,l)=>eg(ea(e.getValue(l)),ea(t.getValue(l))),text:(e,t,l)=>eu(ea(e.getValue(l)).toLowerCase(),ea(t.getValue(l)).toLowerCase()),textCaseSensitive:(e,t,l)=>eu(ea(e.getValue(l)),ea(t.getValue(l))),datetime:(e,t,l)=>{let n=e.getValue(l),o=t.getValue(l);return n>o?1:n<o?-1:0},basic:(e,t,l)=>eu(e.getValue(l),t.getValue(l))},ed={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:u("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{let l=t.getFilteredRowModel().flatRows.slice(10),n=!1;for(let t of l){let l=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(l))return es.datetime;if("string"==typeof l&&(n=!0,l.split(er).length>1))return es.alphanumeric}return n?es.text:es.basic},e.getAutoSortDir=()=>{let l=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==l?void 0:l.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var l,n;if(!e)throw Error();return a(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(l=null==(n=t.options.sortingFns)?void 0:n[e.columnDef.sortingFn])?l:es[e.columnDef.sortingFn]},e.toggleSorting=(l,n)=>{let o=e.getNextSortingOrder(),i=null!=l;t.setSorting(r=>{let u,a=null==r?void 0:r.find(t=>t.id===e.id),g=null==r?void 0:r.findIndex(t=>t.id===e.id),s=[],d=i?l:"desc"===o;if("toggle"!=(u=null!=r&&r.length&&e.getCanMultiSort()&&n?a?"toggle":"add":null!=r&&r.length&&g!==r.length-1?"replace":a?"toggle":"replace")||i||o||(u="remove"),"add"===u){var p;(s=[...r,{id:e.id,desc:d}]).splice(0,s.length-(null!=(p=t.options.maxMultiSortColCount)?p:Number.MAX_SAFE_INTEGER))}else s="toggle"===u?r.map(t=>t.id===e.id?{...t,desc:d}:t):"remove"===u?r.filter(t=>t.id!==e.id):[{id:e.id,desc:d}];return s})},e.getFirstSortDir=()=>{var l,n;return(null!=(l=null!=(n=e.columnDef.sortDescFirst)?n:t.options.sortDescFirst)?l:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=l=>{var n,o;let i=e.getFirstSortDir(),r=e.getIsSorted();return r?(r===i||null!=(n=t.options.enableSortingRemoval)&&!n||!!l&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===r?"asc":"desc"):i},e.getCanSort=()=>{var l,n;return(null==(l=e.columnDef.enableSorting)||l)&&(null==(n=t.options.enableSorting)||n)&&!!e.accessorFn},e.getCanMultiSort=()=>{var l,n;return null!=(l=null!=(n=e.columnDef.enableMultiSort)?n:t.options.enableMultiSort)?l:!!e.accessorFn},e.getIsSorted=()=>{var l;let n=null==(l=t.getState().sorting)?void 0:l.find(t=>t.id===e.id);return!!n&&(n.desc?"desc":"asc")},e.getSortIndex=()=>{var l,n;return null!=(l=null==(n=t.getState().sorting)?void 0:n.findIndex(t=>t.id===e.id))?l:-1},e.clearSorting=()=>{t.setSorting(t=>null!=t&&t.length?t.filter(t=>t.id!==e.id):[])},e.getToggleSortingHandler=()=>{let l=e.getCanSort();return n=>{l&&(null==n.persist||n.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(n))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var l,n;e.setSorting(t?[]:null!=(l=null==(n=e.initialState)?void 0:n.sorting)?l:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel)?e.getPreSortedRowModel():e._getSortedRowModel()}},ep=[C,$,z,T,v,G,K,J,ed,H,Q,Y,ee,et,k];function ec(e){var t,l;let n=[...ep,...null!=(t=e._features)?t:[]],o={_features:n},r=o._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(o)),{}),u=e=>o.options.mergeOptions?o.options.mergeOptions(r,e):{...r,...e},a={...null!=(l=e.initialState)?l:{}};o._features.forEach(e=>{var t;a=null!=(t=null==e.getInitialState?void 0:e.getInitialState(a))?t:a});let g=[],s=!1,c={_features:n,options:{...r,...e},initialState:a,_queue:e=>{g.push(e),s||(s=!0,Promise.resolve().then(()=>{for(;g.length;)g.shift()();s=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{o.setState(o.initialState)},setOptions:e=>{let t=i(e,o.options);o.options=u(t)},getState:()=>o.options.state,setState:e=>{null==o.options.onStateChange||o.options.onStateChange(e)},_getRowId:(e,t,l)=>{var n;return null!=(n=null==o.options.getRowId?void 0:o.options.getRowId(e,t,l))?n:`${l?[l.id,t].join("."):t}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(e,t)=>{let l=(t?o.getPrePaginationRowModel():o.getRowModel()).rowsById[e];if(!l&&!(l=o.getCoreRowModel().rowsById[e]))throw Error();return l},_getDefaultColumnDef:d(()=>[o.options.defaultColumn],e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{let t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,l;return null!=(t=null==(l=e.renderValue())||null==l.toString?void 0:l.toString())?t:null},...o._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef()),{}),...e}},p(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>o.options.columns,getAllColumns:d(()=>[o._getColumnDefs()],e=>{let t=function(e,l,n){return void 0===n&&(n=0),e.map(e=>{let i=f(o,e,n,l);return i.columns=e.columns?t(e.columns,i,n+1):[],i})};return t(e)},p(e,"debugColumns","getAllColumns")),getAllFlatColumns:d(()=>[o.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),p(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:d(()=>[o.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),p(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:d(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),p(e,"debugColumns","getAllLeafColumns")),getColumn:e=>o._getAllFlatColumnsById()[e]};Object.assign(o,c);for(let e=0;e<o._features.length;e++){let t=o._features[e];null==t||null==t.createTable||t.createTable(o)}return o}function ef(){return e=>d(()=>[e.options.data],t=>{let l={rows:[],flatRows:[],rowsById:{}},n=function(t,o,i){void 0===o&&(o=0);let r=[];for(let a=0;a<t.length;a++){let g=R(e,e._getRowId(t[a],a,i),t[a],a,o,void 0,null==i?void 0:i.id);if(l.flatRows.push(g),l.rowsById[g.id]=g,r.push(g),e.options.getSubRows){var u;g.originalSubRows=e.options.getSubRows(t[a],a),null!=(u=g.originalSubRows)&&u.length&&(g.subRows=n(g.originalSubRows,o+1,g))}}return r};return l.rows=n(t),l},p(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function em(){return e=>d(()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows],(e,t,l)=>t.rows.length&&(!0===e||Object.keys(null!=e?e:{}).length)&&l?ew(t):t,p(e.options,"debugTable","getExpandedRowModel"))}function ew(e){let t=[],l=e=>{var n;t.push(e),null!=(n=e.subRows)&&n.length&&e.getIsExpanded()&&e.subRows.forEach(l)};return e.rows.forEach(l),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function eC(){return(e,t)=>d(()=>{var l;return[null==(l=e.getColumn(t))?void 0:l.getFacetedRowModel()]},e=>{if(!e)return;let l=e.flatRows.flatMap(e=>{var l;return null!=(l=e.getUniqueValues(t))?l:[]}).map(Number).filter(e=>!Number.isNaN(e));if(!l.length)return;let n=l[0],o=l[l.length-1];for(let e of l)e<n?n=e:e>o&&(o=e);return[n,o]},p(e.options,"debugTable","getFacetedMinMaxValues"))}function eh(e,t,l){return l.options.filterFromLeafRows?function(e,t,l){var n;let o=[],i={},r=null!=(n=l.options.maxLeafRowFilterDepth)?n:100,u=function(e,n){void 0===n&&(n=0);let a=[];for(let s=0;s<e.length;s++){var g;let d=e[s],p=R(l,d.id,d.original,d.index,d.depth,void 0,d.parentId);if(p.columnFilters=d.columnFilters,null!=(g=d.subRows)&&g.length&&n<r){if(p.subRows=u(d.subRows,n+1),t(d=p)&&!p.subRows.length||t(d)||p.subRows.length){a.push(d),i[d.id]=d,o.push(d);continue}}else t(d=p)&&(a.push(d),i[d.id]=d,o.push(d))}return a};return{rows:u(e),flatRows:o,rowsById:i}}(e,t,l):function(e,t,l){var n;let o=[],i={},r=null!=(n=l.options.maxLeafRowFilterDepth)?n:100,u=function(e,n){void 0===n&&(n=0);let a=[];for(let s=0;s<e.length;s++){let d=e[s];if(t(d)){var g;if(null!=(g=d.subRows)&&g.length&&n<r){let e=R(l,d.id,d.original,d.index,d.depth,void 0,d.parentId);e.subRows=u(d.subRows,n+1),d=e}a.push(d),o.push(d),i[d.id]=d}}return a};return{rows:u(e),flatRows:o,rowsById:i}}(e,t,l)}function eR(){return(e,t)=>d(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter,e.getFilteredRowModel()],(l,n,o)=>{if(!l.rows.length||!(null!=n&&n.length)&&!o)return l;let i=[...n.map(e=>e.id).filter(e=>e!==t),o?"__global__":void 0].filter(Boolean);return eh(l.rows,e=>{for(let t=0;t<i.length;t++)if(!1===e.columnFilters[i[t]])return!1;return!0},e)},p(e.options,"debugTable","getFacetedRowModel"))}function ev(){return(e,t)=>d(()=>{var l;return[null==(l=e.getColumn(t))?void 0:l.getFacetedRowModel()]},e=>{if(!e)return new Map;let l=new Map;for(let o=0;o<e.flatRows.length;o++){let i=e.flatRows[o].getUniqueValues(t);for(let e=0;e<i.length;e++){let t=i[e];if(l.has(t)){var n;l.set(t,(null!=(n=l.get(t))?n:0)+1)}else l.set(t,1)}}return l},p(e.options,"debugTable",`getFacetedUniqueValues_${t}`))}function eS(){return e=>d(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,l,n)=>{let o,i;if(!t.rows.length||!(null!=l&&l.length)&&!n){for(let e=0;e<t.flatRows.length;e++)t.flatRows[e].columnFilters={},t.flatRows[e].columnFiltersMeta={};return t}let r=[],u=[];(null!=l?l:[]).forEach(t=>{var l;let n=e.getColumn(t.id);if(!n)return;let o=n.getFilterFn();o&&r.push({id:t.id,filterFn:o,resolvedValue:null!=(l=null==o.resolveFilterValue?void 0:o.resolveFilterValue(t.value))?l:t.value})});let a=(null!=l?l:[]).map(e=>e.id),g=e.getGlobalFilterFn(),s=e.getAllLeafColumns().filter(e=>e.getCanGlobalFilter());n&&g&&s.length&&(a.push("__global__"),s.forEach(e=>{var t;u.push({id:e.id,filterFn:g,resolvedValue:null!=(t=null==g.resolveFilterValue?void 0:g.resolveFilterValue(n))?t:n})}));for(let e=0;e<t.flatRows.length;e++){let l=t.flatRows[e];if(l.columnFilters={},r.length)for(let e=0;e<r.length;e++){let t=(o=r[e]).id;l.columnFilters[t]=o.filterFn(l,t,o.resolvedValue,e=>{l.columnFiltersMeta[t]=e})}if(u.length){for(let e=0;e<u.length;e++){let t=(i=u[e]).id;if(i.filterFn(l,t,i.resolvedValue,e=>{l.columnFiltersMeta[t]=e})){l.columnFilters.__global__=!0;break}}!0!==l.columnFilters.__global__&&(l.columnFilters.__global__=!1)}}return eh(t.rows,e=>{for(let t=0;t<a.length;t++)if(!1===e.columnFilters[a[t]])return!1;return!0},e)},p(e.options,"debugTable","getFilteredRowModel",()=>e._autoResetPageIndex()))}function eb(){return e=>d(()=>[e.getState().grouping,e.getPreGroupedRowModel()],(t,l)=>{if(!l.rows.length||!t.length)return l.rows.forEach(e=>{e.depth=0,e.parentId=void 0}),l;let n=t.filter(t=>e.getColumn(t)),o=[],i={},r=function(t,l,u){if(void 0===l&&(l=0),l>=n.length)return t.map(e=>(e.depth=l,o.push(e),i[e.id]=e,e.subRows&&(e.subRows=r(e.subRows,l+1,e.id)),e));let a=n[l];return Array.from((function(e,t){let l=new Map;return e.reduce((e,l)=>{let n=`${l.getGroupingValue(t)}`,o=e.get(n);return o?o.push(l):e.set(n,[l]),e},l)})(t,a).entries()).map((t,g)=>{let[d,p]=t,c=`${a}:${d}`;c=u?`${u}>${c}`:c;let f=r(p,l+1,c);f.forEach(e=>{e.parentId=c});let m=l?s(p,e=>e.subRows):p,w=R(e,c,m[0].original,g,l,void 0,u);return Object.assign(w,{groupingColumnId:a,groupingValue:d,subRows:f,leafRows:m,getValue:t=>{if(n.includes(t)){if(w._valuesCache.hasOwnProperty(t))return w._valuesCache[t];if(p[0]){var l;w._valuesCache[t]=null!=(l=p[0].getValue(t))?l:void 0}return w._valuesCache[t]}if(w._groupingValuesCache.hasOwnProperty(t))return w._groupingValuesCache[t];let o=e.getColumn(t),i=null==o?void 0:o.getAggregationFn();if(i)return w._groupingValuesCache[t]=i(t,m,p),w._groupingValuesCache[t]}}),f.forEach(e=>{o.push(e),i[e.id]=e}),w})},u=r(l.rows,0);return u.forEach(e=>{o.push(e),i[e.id]=e}),{rows:u,flatRows:o,rowsById:i}},p(e.options,"debugTable","getGroupedRowModel",()=>{e._queue(()=>{e._autoResetExpanded(),e._autoResetPageIndex()})}))}function eF(e){return e=>d(()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded],(t,l)=>{let n;if(!l.rows.length)return l;let{pageSize:o,pageIndex:i}=t,{rows:r,flatRows:u,rowsById:a}=l,g=o*i;r=r.slice(g,g+o),(n=e.options.paginateExpandedRows?{rows:r,flatRows:u,rowsById:a}:ew({rows:r,flatRows:u,rowsById:a})).flatRows=[];let s=e=>{n.flatRows.push(e),e.subRows.length&&e.subRows.forEach(s)};return n.rows.forEach(s),n},p(e.options,"debugTable","getPaginationRowModel"))}function eM(){return e=>d(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,l)=>{if(!l.rows.length||!(null!=t&&t.length))return l;let n=e.getState().sorting,o=[],i=n.filter(t=>{var l;return null==(l=e.getColumn(t.id))?void 0:l.getCanSort()}),r={};i.forEach(t=>{let l=e.getColumn(t.id);l&&(r[t.id]={sortUndefined:l.columnDef.sortUndefined,invertSorting:l.columnDef.invertSorting,sortingFn:l.getSortingFn()})});let u=e=>{let t=e.map(e=>({...e}));return t.sort((e,t)=>{for(let n=0;n<i.length;n+=1){var l;let o=i[n],u=r[o.id],a=u.sortUndefined,g=null!=(l=null==o?void 0:o.desc)&&l,s=0;if(a){let l=e.getValue(o.id),n=t.getValue(o.id),i=void 0===l,r=void 0===n;if(i||r){if("first"===a)return i?-1:1;if("last"===a)return i?1:-1;s=i&&r?0:i?a:-a}}if(0===s&&(s=u.sortingFn(e,t,o.id)),0!==s)return g&&(s*=-1),u.invertSorting&&(s*=-1),s}return e.index-t.index}),t.forEach(e=>{var t;o.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=u(e.subRows))}),t};return{rows:u(l.rows),flatRows:o,rowsById:l.rowsById}},p(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}function eV(e,t){var l,o,i;return e?"function"==typeof(o=l=e)&&(()=>{let e=Object.getPrototypeOf(o);return e.prototype&&e.prototype.isReactComponent})()||"function"==typeof l||"object"==typeof(i=l)&&"symbol"==typeof i.$$typeof&&["react.memo","react.forward_ref"].includes(i.$$typeof.description)?n.createElement(e,t):e:null}function eP(e){let t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[l]=n.useState(()=>({current:ec(t)})),[o,i]=n.useState(()=>l.current.initialState);return l.current.setOptions(t=>({...t,...e,state:{...o,...e.state},onStateChange:t=>{i(t),null==e.onStateChange||e.onStateChange(t)}})),l.current}}}]);
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";(self.webpackChunkremote=self.webpackChunkremote||[]).push([["5408"],{95917:function(e,n,l){l.d(n,{F:()=>r,e:()=>o});var t=l(8491);function r(...e){return n=>e.forEach(e=>{"function"==typeof e?e(n):null!=e&&(e.current=n)})}function o(...e){return(0,t.useCallback)(r(...e),e)}},79904:function(e,n,l){l.r(n),l.d(n,{Root:()=>f,Slot:()=>i,Slottable:()=>u});var t=l(25833),r=l(8491),o=l(95917);let i=(0,r.forwardRef)((e,n)=>{let{children:l,...o}=e,i=r.Children.toArray(l),u=i.find(c);if(u){let e=u.props.children,l=i.map(n=>n!==u?n:r.Children.count(e)>1?r.Children.only(null):(0,r.isValidElement)(e)?e.props.children:null);return(0,r.createElement)(a,(0,t.Z)({},o,{ref:n}),(0,r.isValidElement)(e)?(0,r.cloneElement)(e,void 0,l):null)}return(0,r.createElement)(a,(0,t.Z)({},o,{ref:n}),l)});i.displayName="Slot";let a=(0,r.forwardRef)((e,n)=>{let{children:l,...t}=e;return(0,r.isValidElement)(l)?(0,r.cloneElement)(l,{...function(e,n){let l={...n};for(let t in n){let r=e[t],o=n[t];/^on[A-Z]/.test(t)?r&&o?l[t]=(...e)=>{o(...e),r(...e)}:r&&(l[t]=r):"style"===t?l[t]={...r,...o}:"className"===t&&(l[t]=[r,o].filter(Boolean).join(" "))}return{...e,...l}}(t,l.props),ref:(0,o.F)(n,l.ref)}):r.Children.count(l)>1?r.Children.only(null):null});a.displayName="SlotClone";let u=({children:e})=>(0,r.createElement)(r.Fragment,null,e);function c(e){return(0,r.isValidElement)(e)&&e.type===u}let f=i},25833:function(e,n,l){l.d(n,{Z:()=>t});function t(){return(t=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var l=arguments[n];for(var t in l)({}).hasOwnProperty.call(l,t)&&(e[t]=l[t])}return e}).apply(null,arguments)}}}]);
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";(self.webpackChunkremote=self.webpackChunkremote||[]).push([["5450"],{71115:function(e,t,r){r.d(t,{M:()=>n});function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}},88905:function(e,t,r){r.d(t,{F:()=>o,e:()=>i});var n=r(8491);function u(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function o(...e){return t=>{let r=!1,n=e.map(e=>{let n=u(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():u(e[t],null)}}}}function i(...e){return n.useCallback(o(...e),e)}},76418:function(e,t,r){r.d(t,{b:()=>i,k:()=>o});var n=r(8491),u=r(31549);function o(e,t){let r=n.createContext(t),o=e=>{let{children:t,...o}=e,i=n.useMemo(()=>o,Object.values(o));return(0,u.jsx)(r.Provider,{value:i,children:t})};return o.displayName=e+"Provider",[o,function(u){let o=n.useContext(r);if(o)return o;if(void 0!==t)return t;throw Error(`\`${u}\` must be used within \`${e}\``)}]}function i(e,t=[]){let r=[],o=()=>{let t=r.map(e=>n.createContext(e));return function(r){let u=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:u}}),[r,u])}};return o.scopeName=e,[function(t,o){let i=n.createContext(o),c=r.length;r=[...r,o];let a=t=>{let{scope:r,children:o,...a}=t,s=r?.[e]?.[c]||i,l=n.useMemo(()=>a,Object.values(a));return(0,u.jsx)(s.Provider,{value:l,children:o})};return a.displayName=t+"Provider",[a,function(r,u){let a=u?.[e]?.[c]||i,s=n.useContext(a);if(s)return s;if(void 0!==o)return o;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let u=r.reduce((t,{useScope:r,scopeName:n})=>{let u=r(e)[`__scope${n}`];return{...t,...u}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return r.scopeName=t.scopeName,r}(o,...t)]}},78737:function(e,t,r){r.d(t,{WV:()=>c,jH:()=>a});var n=r(8491),u=r(96853),o=r(30638),i=r(31549),c=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=(0,o.createSlot)(`Primitive.${t}`),u=n.forwardRef((e,n)=>{let{asChild:u,...o}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(u?r:t,{...o,ref:n})});return u.displayName=`Primitive.${t}`,{...e,[t]:u}},{});function a(e,t){e&&u.flushSync(()=>e.dispatchEvent(t))}},76963:function(e,t,r){r.r(t),r.d(t,{Root:()=>S,Switch:()=>m,SwitchThumb:()=>y,Thumb:()=>g,createSwitchScope:()=>h});var n=r(8491),u=r(71115),o=r(88905),i=r(76418),c=r(81183),a=r(18297),s=r(54646),l=r(78737),f=r(31549),d="Switch",[p,h]=(0,i.b)(d),[v,b]=p(d),m=n.forwardRef((e,t)=>{let{__scopeSwitch:r,name:i,checked:a,defaultChecked:s,required:d,disabled:p,value:h="on",onCheckedChange:b,form:m,...w}=e,[y,S]=n.useState(null),g=(0,o.e)(t,e=>S(e)),C=n.useRef(!1),j=!y||m||!!y.closest("form"),[E=!1,N]=(0,c.T)({prop:a,defaultProp:s,onChange:b});return(0,f.jsxs)(v,{scope:r,checked:E,disabled:p,children:[(0,f.jsx)(l.WV.button,{type:"button",role:"switch","aria-checked":E,"aria-required":d,"data-state":k(E),"data-disabled":p?"":void 0,disabled:p,value:h,...w,ref:g,onClick:(0,u.M)(e.onClick,e=>{N(e=>!e),j&&(C.current=e.isPropagationStopped(),C.current||e.stopPropagation())})}),j&&(0,f.jsx)(x,{control:y,bubbles:!C.current,name:i,value:h,checked:E,required:d,disabled:p,form:m,style:{transform:"translateX(-100%)"}})]})});m.displayName=d;var w="SwitchThumb",y=n.forwardRef((e,t)=>{let{__scopeSwitch:r,...n}=e,u=b(w,r);return(0,f.jsx)(l.WV.span,{"data-state":k(u.checked),"data-disabled":u.disabled?"":void 0,...n,ref:t})});y.displayName=w;var x=e=>{let{control:t,checked:r,bubbles:u=!0,...o}=e,i=n.useRef(null),c=(0,a.D)(r),l=(0,s.t)(t);return n.useEffect(()=>{let e=i.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(c!==r&&t){let n=new Event("click",{bubbles:u});t.call(e,r),e.dispatchEvent(n)}},[c,r,u]),(0,f.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:i,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function k(e){return e?"checked":"unchecked"}var S=m,g=y},81820:function(e,t,r){r.d(t,{W:()=>u});var n=r(8491);function u(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}},81183:function(e,t,r){r.d(t,{T:()=>o});var n=r(8491),u=r(81820);function o({prop:e,defaultProp:t,onChange:r=()=>{}}){let[o,i]=function({defaultProp:e,onChange:t}){let r=n.useState(e),[o]=r,i=n.useRef(o),c=(0,u.W)(t);return n.useEffect(()=>{i.current!==o&&(c(o),i.current=o)},[o,i,c]),r}({defaultProp:t,onChange:r}),c=void 0!==e,a=c?e:o,s=(0,u.W)(r);return[a,n.useCallback(t=>{if(c){let r="function"==typeof t?t(e):t;r!==e&&s(r)}else i(t)},[c,e,i,s])]}},82836:function(e,t,r){r.d(t,{b:()=>u});var n=r(8491),u=globalThis?.document?n.useLayoutEffect:()=>{}},18297:function(e,t,r){r.d(t,{D:()=>u});var n=r(8491);function u(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},54646:function(e,t,r){r.d(t,{t:()=>o});var n=r(8491),u=r(82836);function o(e){let[t,r]=n.useState(void 0);return(0,u.b)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,u;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,u=t.blockSize}else n=e.offsetWidth,u=e.offsetHeight;r({width:n,height:u})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}}}]);
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";(self.webpackChunkremote=self.webpackChunkremote||[]).push([["5469"],{58724:function(t,e){function n(t){return"object"!=typeof t||"toString"in t?t:Object.prototype.toString.call(t).slice(8,-1)}Object.defineProperty(e,"__esModule",{value:!0});var r="object"==typeof process;function o(t,e){if(!t){if(r)throw Error("Invariant failed");throw Error(e())}}e.invariant=o;var a=Object.prototype.hasOwnProperty,u=Array.prototype.splice,c=Object.prototype.toString;function i(t){return c.call(t).slice(8,-1)}var p=Object.assign||function(t,e){return s(e).forEach(function(n){a.call(e,n)&&(t[n]=e[n])}),t},s="function"==typeof Object.getOwnPropertySymbols?function(t){return Object.keys(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.keys(t)};function f(t){return Array.isArray(t)?p(t.constructor(t.length),t):"Map"===i(t)?new Map(t):"Set"===i(t)?new Set(t):t&&"object"==typeof t?p(Object.create(Object.getPrototypeOf(t)),t):t}var d=function(){function t(){this.commands=p({},y),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(t,e){return t===e},this.update.newContext=function(){return new t().update}}return Object.defineProperty(t.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(t){this.update.isEquals=t},enumerable:!0,configurable:!0}),t.prototype.extend=function(t,e){this.commands[t]=e},t.prototype.update=function(t,e){var n=this,r="function"==typeof e?{$apply:e}:e;Array.isArray(t)&&Array.isArray(r)||o(!Array.isArray(r),function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."}),o("object"==typeof r&&null!==r,function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the following commands: "+Object.keys(n.commands).join(", ")+"."});var u=t;return s(r).forEach(function(e){if(a.call(n.commands,e)){var o=t===u;u=n.commands[e](r[e],u,r,t),o&&n.isEquals(u,t)&&(u=t)}else{var c="Map"===i(t)?n.update(t.get(e),r[e]):n.update(t[e],r[e]),p="Map"===i(u)?u.get(e):u[e];n.isEquals(c,p)&&(void 0!==c||a.call(t,e))||(u===t&&(u=f(t)),"Map"===i(u)?u.set(e,c):u[e]=c)}}),u},t}();e.Context=d;var y={$push:function(t,e,n){return h(e,n,"$push"),t.length?e.concat(t):e},$unshift:function(t,e,n){return h(e,n,"$unshift"),t.length?t.concat(e):e},$splice:function(t,e,r,a){var c,i;return c=e,i=r,o(Array.isArray(c),function(){return"Expected $splice target to be an array; got "+n(c)}),b(i.$splice),t.forEach(function(t){b(t),e===a&&t.length&&(e=f(a)),u.apply(e,t)}),e},$set:function(t,e,n){return o(1===Object.keys(n).length,function(){return"Cannot have more than one key in an object with $set"}),t},$toggle:function(t,e){g(t,"$toggle");var n=t.length?f(e):e;return t.forEach(function(t){n[t]=!e[t]}),n},$unset:function(t,e,n,r){return g(t,"$unset"),t.forEach(function(t){Object.hasOwnProperty.call(e,t)&&(e===r&&(e=f(r)),delete e[t])}),e},$add:function(t,e,n,r){return m(e,"$add"),g(t,"$add"),"Map"===i(e)?t.forEach(function(t){var n=t[0],o=t[1];e===r&&e.get(n)!==o&&(e=f(r)),e.set(n,o)}):t.forEach(function(t){e!==r||e.has(t)||(e=f(r)),e.add(t)}),e},$remove:function(t,e,n,r){return m(e,"$remove"),g(t,"$remove"),t.forEach(function(t){e===r&&e.has(t)&&(e=f(r)),e.delete(t)}),e},$merge:function(t,e,r,a){var u,c;return u=e,o((c=t)&&"object"==typeof c,function(){return"update(): $merge expects a spec of type 'object'; got "+n(c)}),o(u&&"object"==typeof u,function(){return"update(): $merge expects a target of type 'object'; got "+n(u)}),s(t).forEach(function(n){t[n]!==e[n]&&(e===a&&(e=f(a)),e[n]=t[n])}),e},$apply:function(t,e){var r;return o("function"==typeof(r=t),function(){return"update(): expected spec of $apply to be a function; got "+n(r)+"."}),t(e)}},l=new d;function h(t,e,r){o(Array.isArray(t),function(){return"update(): expected target of "+n(r)+" to be an array; got "+n(t)+"."}),g(e[r],r)}function g(t,e){o(Array.isArray(t),function(){return"update(): expected spec of "+n(e)+" to be an array; got "+n(t)+". Did you forget to wrap your parameter in an array?"})}function b(t){o(Array.isArray(t),function(){return"update(): expected spec of $splice to be an array of arrays; got "+n(t)+". Did you forget to wrap your parameters in an array?"})}function m(t,e){var r=i(t);o("Map"===r||"Set"===r,function(){return"update(): "+n(e)+" expects a target of type Set or Map; got "+n(r)})}e.isEquals=l.update.isEquals,e.extend=l.extend,e.default=l.update,e.default.default=t.exports=p(e.default,e)}}]);
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";(self.webpackChunkremote=self.webpackChunkremote||[]).push([["5522"],{95917:function(e,t,n){n.d(t,{F:()=>o,e:()=>i});var r=n(8491);function o(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function i(...e){return(0,r.useCallback)(o(...e),e)}},27557:function(e,t,n){let r;n.r(t),n.d(t,{Root:()=>tr,Content:()=>tl,Arrow:()=>ta,TooltipPortal:()=>e9,TooltipContent:()=>e3,Portal:()=>ti,Tooltip:()=>eJ,createTooltipScope:()=>eV,TooltipTrigger:()=>e0,TooltipArrow:()=>tt,Provider:()=>tn,TooltipProvider:()=>eX,Trigger:()=>to});var o=n(25833),i=n(8491);function l(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}var a=n(95917);function u(e,t=[]){let n=[],r=()=>{let t=n.map(e=>(0,i.createContext)(e));return function(n){let r=(null==n?void 0:n[e])||t;return(0,i.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let o=(0,i.createContext)(r),l=n.length;function a(t){let{scope:n,children:r,...a}=t,u=(null==n?void 0:n[e][l])||o,s=(0,i.useMemo)(()=>a,Object.values(a));return(0,i.createElement)(u.Provider,{value:s},r)}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){let u=(null==a?void 0:a[e][l])||o,s=(0,i.useContext)(u);if(s)return s;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return(0,i.useMemo)(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}var s=n(81928);function c(e){let t=(0,i.useRef)(e);return(0,i.useEffect)(()=>{t.current=e}),(0,i.useMemo)(()=>(...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)},[])}let f="dismissableLayer.update",d=(0,i.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),p=(0,i.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:u=!1,onEscapeKeyDown:p,onPointerDownOutside:g,onFocusOutside:v,onInteractOutside:y,onDismiss:w,...b}=e,x=(0,i.useContext)(d),[E,T]=(0,i.useState)(null),C=null!=(n=null==E?void 0:E.ownerDocument)?n:null==globalThis?void 0:globalThis.document,[,P]=(0,i.useState)({}),R=(0,a.e)(t,e=>T(e)),A=Array.from(x.layers),[O]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),L=A.indexOf(O),D=E?A.indexOf(E):-1,S=x.layersWithOutsidePointerEventsDisabled.size>0,k=D>=L,_=function(e,t=null==globalThis?void 0:globalThis.document){let n=c(e),r=(0,i.useRef)(!1),o=(0,i.useRef)(()=>{});return(0,i.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function i(){m("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=i,t.addEventListener("click",o.current,{once:!0})):i()}r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...x.branches].some(e=>e.contains(t));k&&!n&&(null==g||g(e),null==y||y(e),e.defaultPrevented||null==w||w())},C),N=function(e,t=null==globalThis?void 0:globalThis.document){let n=c(e),r=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{let e=e=>{e.target&&!r.current&&m("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;![...x.branches].some(e=>e.contains(t))&&(null==v||v(e),null==y||y(e),e.defaultPrevented||null==w||w())},C);return!function(e,t=null==globalThis?void 0:globalThis.document){let n=c(e);(0,i.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{D===x.layers.size-1&&(null==p||p(e),!e.defaultPrevented&&w&&(e.preventDefault(),w()))},C),(0,i.useEffect)(()=>{if(E)return u&&(0===x.layersWithOutsidePointerEventsDisabled.size&&(r=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(E)),x.layers.add(E),h(),()=>{u&&1===x.layersWithOutsidePointerEventsDisabled.size&&(C.body.style.pointerEvents=r)}},[E,C,u,x]),(0,i.useEffect)(()=>()=>{E&&(x.layers.delete(E),x.layersWithOutsidePointerEventsDisabled.delete(E),h())},[E,x]),(0,i.useEffect)(()=>{let e=()=>P({});return document.addEventListener(f,e),()=>document.removeEventListener(f,e)},[]),(0,i.createElement)(s.WV.div,(0,o.Z)({},b,{ref:R,style:{pointerEvents:S?k?"auto":"none":void 0,...e.style},onFocusCapture:l(e.onFocusCapture,N.onFocusCapture),onBlurCapture:l(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:l(e.onPointerDownCapture,_.onPointerDownCapture)}))});function h(){let e=new CustomEvent(f);document.dispatchEvent(e)}function m(e,t,n,{discrete:r}){let o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?(0,s.jH)(o,i):o.dispatchEvent(i)}let g=(null==globalThis?void 0:globalThis.document)?i.useLayoutEffect:()=>{},v=i["useId".toString()]||(()=>void 0),y=0;function w(e){return e.split("-")[0]}function b(e){return e.split("-")[1]}function x(e){return["top","bottom"].includes(w(e))?"x":"y"}function E(e){return"y"===e?"height":"width"}function T(e,t,n){let r,{reference:o,floating:i}=e,l=o.x+o.width/2-i.width/2,a=o.y+o.height/2-i.height/2,u=x(t),s=E(u),c=o[s]/2-i[s]/2,f="x"===u;switch(w(t)){case"top":r={x:l,y:o.y-i.height};break;case"bottom":r={x:l,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:a};break;case"left":r={x:o.x-i.width,y:a};break;default:r={x:o.x,y:o.y}}switch(b(t)){case"start":r[u]-=c*(n&&f?-1:1);break;case"end":r[u]+=c*(n&&f?-1:1)}return r}let C=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=await (null==l.isRTL?void 0:l.isRTL(t)),u=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:s,y:c}=T(u,r,a),f=r,d={},p=0;for(let n=0;n<i.length;n++){let{name:h,fn:m}=i[n],{x:g,y:v,data:y,reset:w}=await m({x:s,y:c,initialPlacement:r,placement:f,strategy:o,middlewareData:d,rects:u,platform:l,elements:{reference:e,floating:t}});s=null!=g?g:s,c=null!=v?v:c,d={...d,[h]:{...d[h],...y}},w&&p<=50&&(p++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(u=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:s,y:c}=T(u,f,a)),n=-1)}return{x:s,y:c,placement:f,strategy:o,middlewareData:d}};function P(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function R(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function A(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:l,elements:a,strategy:u}=e,{boundary:s="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=t,h=P(p),m=a[d?"floating"===f?"reference":"floating":f],g=R(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:s,rootBoundary:c,strategy:u})),v=R(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===f?{...l.floating,x:r,y:o}:l.reference,offsetParent:await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),strategy:u}):l[f]);return{top:g.top-v.top+h.top,bottom:v.bottom-g.bottom+h.bottom,left:g.left-v.left+h.left,right:v.right-g.right+h.right}}let O=Math.min,L=Math.max,D=e=>({name:"arrow",options:e,async fn(t){let{element:n,padding:r=0}=null!=e?e:{},{x:o,y:i,placement:l,rects:a,platform:u}=t;if(null==n)return{};let s=P(r),c={x:o,y:i},f=x(l),d=b(l),p=E(f),h=await u.getDimensions(n),m="y"===f?"top":"left",g="y"===f?"bottom":"right",v=a.reference[p]+a.reference[f]-c[f]-a.floating[p],y=c[f]-a.reference[f],w=await (null==u.getOffsetParent?void 0:u.getOffsetParent(n)),T=w?"y"===f?w.clientHeight||0:w.clientWidth||0:0;0===T&&(T=a.floating[p]);let C=s[m],R=T-h[p]-s[g],A=T/2-h[p]/2+(v/2-y/2),D=L(C,O(A,R)),S=("start"===d?s[m]:s[g])>0&&A!==D&&a.reference[p]<=a.floating[p];return{[f]:c[f]-(S?A<C?C-A:R-A:0),data:{[f]:D,centerOffset:A-D}}}}),S={left:"right",right:"left",bottom:"top",top:"bottom"};function k(e){return e.replace(/left|right|bottom|top/g,e=>S[e])}let _={start:"end",end:"start"};function N(e){return e.replace(/start|end/g,e=>_[e])}let M=["top","right","bottom","left"];function W(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function H(e){return M.some(t=>e[t]>=0)}M.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);let I=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){let{rects:r}=e;switch(t){case"referenceHidden":{let t=W(await A(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:H(t)}}}case"escaped":{let t=W(await A(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:H(t)}}}default:return{}}}}};function $(e){return"x"===e?"y":"x"}function B(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function F(e){if(null==e)return window;if(!B(e)){let t=e.ownerDocument;return t&&t.defaultView||window}return e}function z(e){return F(e).getComputedStyle(e)}function V(e){return B(e)?"":e?(e.nodeName||"").toLowerCase():""}function U(){let e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map(e=>e.brand+"/"+e.version).join(" "):navigator.userAgent}function Z(e){return e instanceof F(e).HTMLElement}function Y(e){return e instanceof F(e).Element}function j(e){return"undefined"!=typeof ShadowRoot&&(e instanceof F(e).ShadowRoot||e instanceof ShadowRoot)}function X(e){let{overflow:t,overflowX:n,overflowY:r}=z(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function K(e){let t=/firefox/i.test(U()),n=z(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function q(){return!/^((?!chrome|android).)*safari/i.test(U())}let G=Math.min,J=Math.max,Q=Math.round;function ee(e,t,n){var r,o,i,l;void 0===t&&(t=!1),void 0===n&&(n=!1);let a=e.getBoundingClientRect(),u=1,s=1;t&&Z(e)&&(u=e.offsetWidth>0&&Q(a.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Q(a.height)/e.offsetHeight||1);let c=Y(e)?F(e):window,f=!q()&&n,d=(a.left+(f&&null!=(r=null==(o=c.visualViewport)?void 0:o.offsetLeft)?r:0))/u,p=(a.top+(f&&null!=(i=null==(l=c.visualViewport)?void 0:l.offsetTop)?i:0))/s,h=a.width/u,m=a.height/s;return{width:h,height:m,top:p,right:d+h,bottom:p+m,left:d,x:d,y:p}}function et(e){return((e instanceof F(e).Node?e.ownerDocument:e.document)||window.document).documentElement}function en(e){return Y(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function er(e){return ee(et(e)).left+en(e).scrollLeft}function eo(e){return"html"===V(e)?e:e.assignedSlot||e.parentNode||(j(e)?e.host:null)||et(e)}function ei(e){return Z(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function el(e){let t=F(e),n=ei(e);for(;n&&["table","td","th"].includes(V(n))&&"static"===getComputedStyle(n).position;)n=ei(n);return n&&("html"===V(n)||"body"===V(n)&&"static"===getComputedStyle(n).position&&!K(n))?t:n||function(e){let t=eo(e);for(j(t)&&(t=t.host);Z(t)&&!["html","body"].includes(V(t));){if(K(t))return t;t=t.parentNode}return null}(e)||t}function ea(e){if(Z(e))return{width:e.offsetWidth,height:e.offsetHeight};let t=ee(e);return{width:t.width,height:t.height}}function eu(e,t){var n;void 0===t&&(t=[]);let r=function e(t){let n=eo(t);return["html","body","#document"].includes(V(n))?t.ownerDocument.body:Z(n)&&X(n)?n:e(n)}(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=F(r),l=o?[i].concat(i.visualViewport||[],X(r)?r:[]):r,a=t.concat(l);return o?a:a.concat(eu(l))}function es(e,t,n){return"viewport"===t?R(function(e,t){let n=F(e),r=et(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,u=0;if(o){i=o.width,l=o.height;let e=q();(e||!e&&"fixed"===t)&&(a=o.offsetLeft,u=o.offsetTop)}return{width:i,height:l,x:a,y:u}}(e,n)):Y(t)?function(e,t){let n=ee(e,!1,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft;return{top:r,left:o,x:o,y:r,right:o+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):R(function(e){var t;let n=et(e),r=en(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=J(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=J(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+er(e),u=-r.scrollTop;return"rtl"===z(o||n).direction&&(a+=J(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:l,x:a,y:u}}(et(e)))}let ec={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?function(e){let t=eu(e),n=["absolute","fixed"].includes(z(e).position)&&Z(e)?el(e):e;return Y(n)?t.filter(e=>Y(e)&&function(e,t){let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&j(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==V(e)):[]}(t):[].concat(n),r],l=i[0],a=i.reduce((e,n)=>{let r=es(t,n,o);return e.top=J(r.top,e.top),e.right=G(r.right,e.right),e.bottom=G(r.bottom,e.bottom),e.left=J(r.left,e.left),e},es(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e,o=Z(n),i=et(n);if(n===i)return t;let l={scrollLeft:0,scrollTop:0},a={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==V(n)||X(i))&&(l=en(n)),Z(n))){let e=ee(n,!0);a.x=e.x+n.clientLeft,a.y=e.y+n.clientTop}return{...t,x:t.x-l.scrollLeft+a.x,y:t.y-l.scrollTop+a.y}},isElement:Y,getDimensions:ea,getOffsetParent:el,getDocumentElement:et,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:function(e,t,n){let r=Z(t),o=et(t),i=ee(e,r&&function(e){let t=ee(e);return Q(t.width)!==e.offsetWidth||Q(t.height)!==e.offsetHeight}(t),"fixed"===n),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==V(t)||X(o))&&(l=en(t)),Z(t)){let e=ee(t,!0);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else o&&(a.x=er(o));return{x:i.left+l.scrollLeft-a.x,y:i.top+l.scrollTop-a.y,width:i.width,height:i.height}}(t,el(n),r),floating:{...ea(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===z(e).direction};function ef(e,t,n,r){void 0===r&&(r={});let{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l=!0,animationFrame:a=!1}=r,u=o&&!a,s=i&&!a,c=u||s?[...Y(e)?eu(e):[],...eu(t)]:[];c.forEach(e=>{u&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)});let f,d=null;if(l){let r=!0;d=new ResizeObserver(()=>{r||n(),r=!1}),Y(e)&&!a&&d.observe(e),d.observe(t)}let p=a?ee(e):null;return a&&function t(){let r=ee(e);p&&(r.x!==p.x||r.y!==p.y||r.width!==p.width||r.height!==p.height)&&n(),p=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach(e=>{u&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),null==(e=d)||e.disconnect(),d=null,a&&cancelAnimationFrame(f)}}let ed=(e,t,n)=>C(e,t,{platform:ec,...n});var ep=n(96853),eh="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;let em=e=>{let{element:t,padding:n}=e;return{name:"arrow",options:e,fn(e){if(Object.prototype.hasOwnProperty.call(t,"current")){if(null!=t.current)return D({element:t.current,padding:n}).fn(e)}else if(t)return D({element:t,padding:n}).fn(e);return{}}}},eg=(0,i.forwardRef)((e,t)=>{let{children:n,width:r=10,height:l=5,...a}=e;return(0,i.createElement)(s.WV.svg,(0,o.Z)({},a,{ref:t,width:r,height:l,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,i.createElement)("polygon",{points:"0,0 30,0 15,10"}))}),ev="Popper",[ey,ew]=u(ev),[eb,ex]=ey(ev),eE=(0,i.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...l}=e,u=ex("PopperAnchor",n),c=(0,i.useRef)(null),f=(0,a.e)(t,c);return(0,i.useEffect)(()=>{u.onAnchorChange((null==r?void 0:r.current)||c.current)}),r?null:(0,i.createElement)(s.WV.div,(0,o.Z)({},l,{ref:f}))}),eT="PopperContent",[eC,eP]=ey(eT),[eR,eA]=ey(eT,{hasParent:!1,positionUpdateFns:new Set}),eO=(0,i.forwardRef)((e,t)=>{var n,r,o,l,u,f,d,p,h,m,v,y,T;let{__scopePopper:C,side:P="bottom",sideOffset:R=0,align:D="center",alignOffset:S=0,arrowPadding:_=0,collisionBoundary:M=[],collisionPadding:W=0,sticky:H="partial",hideWhenDetached:B=!1,avoidCollisions:F=!0,onPlaced:z,...V}=e,U=ex(eT,C),[Z,Y]=(0,i.useState)(null),j=(0,a.e)(t,e=>Y(e)),[X,K]=(0,i.useState)(null),q=function(e){let[t,n]=(0,i.useState)(void 0);return g(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(X),G=null!=(n=null==q?void 0:q.width)?n:0,J=null!=(r=null==q?void 0:q.height)?r:0,Q="number"==typeof W?W:{top:0,right:0,bottom:0,left:0,...W},ee=Array.isArray(M)?M:[M],et=ee.length>0,en={padding:Q,boundary:ee.filter(ek),altBoundary:et},{reference:er,floating:eo,strategy:ei,x:el,y:ea,placement:eu,middlewareData:es,update:ec}=function(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:o}=void 0===e?{}:e,l=i.useRef(null),a=i.useRef(null),u=function(e){let t=i.useRef(e);return eh(()=>{t.current=e}),t}(o),s=i.useRef(null),[c,f]=i.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[d,p]=i.useState(t);!function e(t,n){let r,o,i;if(t===n)return!0;if(typeof t!=typeof n)return!1;if("function"==typeof t&&t.toString()===n.toString())return!0;if(t&&n&&"object"==typeof t){if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){let r=i[o];if(("_owner"!==r||!t.$$typeof)&&!e(t[r],n[r]))return!1}return!0}return t!=t&&n!=n}(null==d?void 0:d.map(e=>{let{options:t}=e;return t}),null==t?void 0:t.map(e=>{let{options:t}=e;return t}))&&p(t);let h=i.useCallback(()=>{l.current&&a.current&&ed(l.current,a.current,{middleware:d,placement:n,strategy:r}).then(e=>{m.current&&ep.flushSync(()=>{f(e)})})},[d,n,r]);eh(()=>{m.current&&h()},[h]);let m=i.useRef(!1);eh(()=>(m.current=!0,()=>{m.current=!1}),[]);let g=i.useCallback(()=>{"function"==typeof s.current&&(s.current(),s.current=null),l.current&&a.current&&(u.current?s.current=u.current(l.current,a.current,h):h())},[h,u]),v=i.useCallback(e=>{l.current=e,g()},[g]),y=i.useCallback(e=>{a.current=e,g()},[g]),w=i.useMemo(()=>({reference:l,floating:a}),[]);return i.useMemo(()=>({...c,update:h,refs:w,reference:v,floating:y}),[c,h,w,v,y])}({strategy:"fixed",placement:P+("center"!==D?"-"+D:""),whileElementsMounted:ef,middleware:[e_(),{name:"offset",options:h={mainAxis:R+J,alignmentAxis:S},async fn(e){let{x:t,y:n}=e,r=await async function(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=w(n),a=b(n),u="x"===x(n),s=["left","top"].includes(l)?-1:1,c=i&&u?-1:1,f="function"==typeof t?t(e):t,{mainAxis:d,crossAxis:p,alignmentAxis:h}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&"number"==typeof h&&(p="end"===a?-1*h:h),u?{x:p*c,y:d*s}:{x:d*s,y:p*c}}(e,h);return{x:t+r.x,y:n+r.y,data:r}}},F?{name:"shift",options:v={mainAxis:!0,crossAxis:!1,limiter:"partial"===H?(void 0===m&&(m={}),{options:m,fn(e){let{x:t,y:n,placement:r,rects:o,middlewareData:i}=e,{offset:l=0,mainAxis:a=!0,crossAxis:u=!0}=m,s={x:t,y:n},c=x(r),f=$(c),d=s[c],p=s[f],h="function"==typeof l?l({...o,placement:r}):l,g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(a){let e="y"===c?"height":"width",t=o.reference[c]-o.floating[e]+g.mainAxis,n=o.reference[c]+o.reference[e]-g.mainAxis;d<t?d=t:d>n&&(d=n)}if(u){var v,y,b,E;let e="y"===c?"width":"height",t=["top","left"].includes(w(r)),n=o.reference[f]-o.floating[e]+(t&&null!=(v=null==(y=i.offset)?void 0:y[f])?v:0)+(t?0:g.crossAxis),l=o.reference[f]+o.reference[e]+(t?0:null!=(b=null==(E=i.offset)?void 0:E[f])?b:0)-(t?g.crossAxis:0);p<n?p=n:p>l&&(p=l)}return{[c]:d,[f]:p}}}):void 0,...en},async fn(e){let{x:t,y:n,placement:r}=e,{mainAxis:o=!0,crossAxis:i=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...a}=v,u={x:t,y:n},s=await A(e,a),c=x(w(r)),f=$(c),d=u[c],p=u[f];if(o){let e="y"===c?"bottom":"right";d=L(d+s["y"===c?"top":"left"],O(d,d-s[e]))}if(i){let e="y"===f?"bottom":"right";p=L(p+s["y"===f?"top":"left"],O(p,p-s[e]))}let h=l.fn({...e,[c]:d,[f]:p});return{...h,data:{x:h.x-t,y:h.y-n}}}}:void 0,X?em({element:X,padding:_}):void 0,F?{name:"flip",options:y={...en},async fn(e){var t,n,r,o;let{placement:i,middlewareData:l,rects:a,initialPlacement:u,platform:s,elements:c}=e,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",flipAlignment:m=!0,...g}=y,v=w(i),T=p||(v!==u&&m?function(e){let t=k(e);return[N(e),t,N(t)]}(u):[k(u)]),C=[u,...T],P=await A(e,g),R=[],O=(null==(t=l.flip)?void 0:t.overflows)||[];if(f&&R.push(P[v]),d){let{main:e,cross:t}=function(e,t,n){void 0===n&&(n=!1);let r=b(e),o=x(e),i=E(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=k(l)),{main:l,cross:k(l)}}(i,a,await (null==s.isRTL?void 0:s.isRTL(c.floating)));R.push(P[e],P[t])}if(O=[...O,{placement:i,overflows:R}],!R.every(e=>e<=0)){let e=(null!=(n=null==(r=l.flip)?void 0:r.index)?n:0)+1,t=C[e];if(t)return{data:{index:e,overflows:O},reset:{placement:t}};let a="bottom";switch(h){case"bestFit":{let e=null==(o=O.map(e=>[e,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0].placement;e&&(a=e);break}case"initialPlacement":a=u}if(i!==a)return{reset:{placement:a}}}return{}}}:void 0,{name:"size",options:T={...en,apply:({elements:e,availableWidth:t,availableHeight:n})=>{e.floating.style.setProperty("--radix-popper-available-width",`${t}px`),e.floating.style.setProperty("--radix-popper-available-height",`${n}px`)}},async fn(e){let t,n,{placement:r,rects:o,platform:i,elements:l}=e,{apply:a,...u}=T,s=await A(e,u),c=w(r),f=b(r);"top"===c||"bottom"===c?(t=c,n=f===(await (null==i.isRTL?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(n=c,t="end"===f?"top":"bottom");let d=L(s.left,0),p=L(s.right,0),h=L(s.top,0),m=L(s.bottom,0),g={availableHeight:o.floating.height-(["left","right"].includes(r)?2*(0!==h||0!==m?h+m:L(s.top,s.bottom)):s[t]),availableWidth:o.floating.width-(["top","bottom"].includes(r)?2*(0!==d||0!==p?d+p:L(s.left,s.right)):s[n])},v=await i.getDimensions(l.floating);null==a||a({...e,...g});let y=await i.getDimensions(l.floating);return v.width!==y.width||v.height!==y.height?{reset:{rects:!0}}:{}}},eN({arrowWidth:G,arrowHeight:J}),B?I({strategy:"referenceHidden"}):void 0].filter(eS)});g(()=>{er(U.anchor)},[er,U.anchor]);let eg=null!==el&&null!==ea,[ev,ey]=eM(eu),ew=c(z);g(()=>{eg&&(null==ew||ew())},[eg,ew]);let eb=null==(o=es.arrow)?void 0:o.x,eE=null==(l=es.arrow)?void 0:l.y,eP=(null==(u=es.arrow)?void 0:u.centerOffset)!==0,[eO,eL]=(0,i.useState)();g(()=>{Z&&eL(window.getComputedStyle(Z).zIndex)},[Z]);let{hasParent:eD,positionUpdateFns:eW}=eA(eT,C),eH=!eD;(0,i.useLayoutEffect)(()=>{if(!eH)return eW.add(ec),()=>{eW.delete(ec)}},[eH,eW,ec]),g(()=>{eH&&eg&&Array.from(eW).reverse().forEach(e=>requestAnimationFrame(e))},[eH,eg,eW]);let eI={"data-side":ev,"data-align":ey,...V,ref:j,style:{...V.style,animation:eg?void 0:"none",opacity:null!=(f=es.hide)&&f.referenceHidden?0:void 0}};return(0,i.createElement)("div",{ref:eo,"data-radix-popper-content-wrapper":"",style:{position:ei,left:0,top:0,transform:eg?`translate3d(${Math.round(el)}px, ${Math.round(ea)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:eO,"--radix-popper-transform-origin":[null==(d=es.transformOrigin)?void 0:d.x,null==(p=es.transformOrigin)?void 0:p.y].join(" ")},dir:e.dir},(0,i.createElement)(eC,{scope:C,placedSide:ev,onArrowChange:K,arrowX:eb,arrowY:eE,shouldHideArrow:eP},eH?(0,i.createElement)(eR,{scope:C,hasParent:!0,positionUpdateFns:eW},(0,i.createElement)(s.WV.div,eI)):(0,i.createElement)(s.WV.div,eI)))}),eL={top:"bottom",right:"left",bottom:"top",left:"right"},eD=(0,i.forwardRef)(function(e,t){let{__scopePopper:n,...r}=e,l=eP("PopperArrow",n),a=eL[l.placedSide];return(0,i.createElement)("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0}},(0,i.createElement)(eg,(0,o.Z)({},r,{ref:t,style:{...r.style,display:"block"}})))});function eS(e){return void 0!==e}function ek(e){return null!==e}let e_=()=>({name:"anchorCssProperties",fn(e){let{rects:t,elements:n}=e,{width:r,height:o}=t.reference;return n.floating.style.setProperty("--radix-popper-anchor-width",`${r}px`),n.floating.style.setProperty("--radix-popper-anchor-height",`${o}px`),{}}}),eN=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:u,middlewareData:s}=t,c=(null==(n=s.arrow)?void 0:n.centerOffset)!==0,f=c?0:e.arrowWidth,d=c?0:e.arrowHeight,[p,h]=eM(a),m={start:"0%",center:"50%",end:"100%"}[h],g=(null!=(r=null==(o=s.arrow)?void 0:o.x)?r:0)+f/2,v=(null!=(i=null==(l=s.arrow)?void 0:l.y)?i:0)+d/2,y="",w="";return"bottom"===p?(y=c?m:`${g}px`,w=`${-d}px`):"top"===p?(y=c?m:`${g}px`,w=`${u.floating.height+d}px`):"right"===p?(y=`${-d}px`,w=c?m:`${v}px`):"left"===p&&(y=`${u.floating.width+d}px`,w=c?m:`${v}px`),{data:{x:y,y:w}}}});function eM(e){let[t,n="center"]=e.split("-");return[t,n]}let eW=e=>{let{__scopePopper:t,children:n}=e,[r,o]=(0,i.useState)(null);return(0,i.createElement)(eb,{scope:t,anchor:r,onAnchorChange:o},n)};var eH=n(18867);let eI=e=>{let{present:t,children:n}=e,r=function(e){var t,n;let[r,o]=(0,i.useState)(),l=(0,i.useRef)({}),a=(0,i.useRef)(e),u=(0,i.useRef)("none"),[s,c]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,i.useReducer)((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return(0,i.useEffect)(()=>{let e=e$(l.current);u.current="mounted"===s?e:"none"},[s]),g(()=>{let t=l.current,n=a.current;if(n!==e){let r=u.current,o=e$(t);e?c("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?c("UNMOUNT"):n&&r!==o?c("ANIMATION_OUT"):c("UNMOUNT"),a.current=e}},[e,c]),g(()=>{if(r){let e=e=>{let t=e$(l.current).includes(e.animationName);e.target===r&&t&&(0,ep.flushSync)(()=>c("ANIMATION_END"))},t=e=>{e.target===r&&(u.current=e$(l.current))};return r.addEventListener("animationstart",t),r.addEventListener("animationcancel",e),r.addEventListener("animationend",e),()=>{r.removeEventListener("animationstart",t),r.removeEventListener("animationcancel",e),r.removeEventListener("animationend",e)}}c("ANIMATION_END")},[r,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:(0,i.useCallback)(e=>{e&&(l.current=getComputedStyle(e)),o(e)},[])}}(t),o="function"==typeof n?n({present:r.isPresent}):i.Children.only(n),l=(0,a.e)(r.ref,o.ref);return"function"==typeof n||r.isPresent?(0,i.cloneElement)(o,{ref:l}):null};function e$(e){return(null==e?void 0:e.animationName)||"none"}eI.displayName="Presence";var eB=n(95384);let eF=(0,i.forwardRef)((e,t)=>(0,i.createElement)(s.WV.span,(0,o.Z)({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),[ez,eV]=u("Tooltip",[ew]),eU=ew(),eZ="tooltip.open",[eY,ej]=ez("TooltipProvider"),eX=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:l}=e,[a,u]=(0,i.useState)(!0),s=(0,i.useRef)(!1),c=(0,i.useRef)(0);return(0,i.useEffect)(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,i.createElement)(eY,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:(0,i.useCallback)(()=>{window.clearTimeout(c.current),u(!1)},[]),onClose:(0,i.useCallback)(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>u(!0),r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:(0,i.useCallback)(e=>{s.current=e},[]),disableHoverableContent:o},l)},eK="Tooltip",[eq,eG]=ez(eK),eJ=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:l,disableHoverableContent:a,delayDuration:u}=e,s=ej(eK,e.__scopeTooltip),f=eU(t),[d,p]=(0,i.useState)(null),h=function(e){let[t,n]=i.useState(v());return g(()=>{n(e=>null!=e?e:String(y++))},[void 0]),e||(t?`radix-${t}`:"")}(),m=(0,i.useRef)(0),w=null!=a?a:s.disableHoverableContent,b=null!=u?u:s.delayDuration,x=(0,i.useRef)(!1),[E=!1,T]=function({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,o]=function({defaultProp:e,onChange:t}){let n=(0,i.useState)(e),[r]=n,o=(0,i.useRef)(r),l=c(t);return(0,i.useEffect)(()=>{o.current!==r&&(l(r),o.current=r)},[r,o,l]),n}({defaultProp:t,onChange:n}),l=void 0!==e,a=l?e:r,u=c(n);return[a,(0,i.useCallback)(t=>{if(l){let n="function"==typeof t?t(e):t;n!==e&&u(n)}else o(t)},[l,e,o,u])]}({prop:r,defaultProp:o,onChange:e=>{e?(s.onOpen(),document.dispatchEvent(new CustomEvent(eZ))):s.onClose(),null==l||l(e)}}),C=(0,i.useMemo)(()=>E?x.current?"delayed-open":"instant-open":"closed",[E]),P=(0,i.useCallback)(()=>{window.clearTimeout(m.current),x.current=!1,T(!0)},[T]),R=(0,i.useCallback)(()=>{window.clearTimeout(m.current),T(!1)},[T]),A=(0,i.useCallback)(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{x.current=!0,T(!0)},b)},[b,T]);return(0,i.useEffect)(()=>()=>window.clearTimeout(m.current),[]),(0,i.createElement)(eW,f,(0,i.createElement)(eq,{scope:t,contentId:h,open:E,stateAttribute:C,trigger:d,onTriggerChange:p,onTriggerEnter:(0,i.useCallback)(()=>{s.isOpenDelayed?A():P()},[s.isOpenDelayed,A,P]),onTriggerLeave:(0,i.useCallback)(()=>{w?R():window.clearTimeout(m.current)},[R,w]),onOpen:P,onClose:R,disableHoverableContent:w},n))},eQ="TooltipTrigger",e0=(0,i.forwardRef)((e,t)=>{let{__scopeTooltip:n,...r}=e,u=eG(eQ,n),c=ej(eQ,n),f=eU(n),d=(0,i.useRef)(null),p=(0,a.e)(t,d,u.onTriggerChange),h=(0,i.useRef)(!1),m=(0,i.useRef)(!1),g=(0,i.useCallback)(()=>h.current=!1,[]);return(0,i.useEffect)(()=>()=>document.removeEventListener("pointerup",g),[g]),(0,i.createElement)(eE,(0,o.Z)({asChild:!0},f),(0,i.createElement)(s.WV.button,(0,o.Z)({"aria-describedby":u.open?u.contentId:void 0,"data-state":u.stateAttribute},r,{ref:p,onPointerMove:l(e.onPointerMove,e=>{"touch"!==e.pointerType&&(m.current||c.isPointerInTransitRef.current||(u.onTriggerEnter(),m.current=!0))}),onPointerLeave:l(e.onPointerLeave,()=>{u.onTriggerLeave(),m.current=!1}),onPointerDown:l(e.onPointerDown,()=>{h.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:l(e.onFocus,()=>{h.current||u.onOpen()}),onBlur:l(e.onBlur,u.onClose),onClick:l(e.onClick,u.onClose)})))}),e1="TooltipPortal",[e2,e5]=ez(e1,{forceMount:void 0}),e9=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,l=eG(e1,t);return(0,i.createElement)(e2,{scope:t,forceMount:n},(0,i.createElement)(eI,{present:n||l.open},(0,i.createElement)(eH.h,{asChild:!0,container:o},r)))},e8="TooltipContent",e3=(0,i.forwardRef)((e,t)=>{let n=e5(e8,e.__scopeTooltip),{forceMount:r=n.forceMount,side:l="top",...a}=e,u=eG(e8,e.__scopeTooltip);return(0,i.createElement)(eI,{present:r||u.open},u.disableHoverableContent?(0,i.createElement)(te,(0,o.Z)({side:l},a,{ref:t})):(0,i.createElement)(e7,(0,o.Z)({side:l},a,{ref:t})))}),e7=(0,i.forwardRef)((e,t)=>{let n=eG(e8,e.__scopeTooltip),r=ej(e8,e.__scopeTooltip),l=(0,i.useRef)(null),u=(0,a.e)(t,l),[s,c]=(0,i.useState)(null),{trigger:f,onClose:d}=n,p=l.current,{onPointerInTransitChange:h}=r,m=(0,i.useCallback)(()=>{c(null),h(!1)},[h]),g=(0,i.useCallback)((e,t)=>{let n=e.currentTarget,r=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:return null}}({x:e.clientX,y:e.clientY},n.getBoundingClientRect()),o="right"===r||"bottom"===r?-5:5;c(function(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:1*!!(e.y>t.y)),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(t)}(["right"===r||"left"===r?{x:e.clientX+o,y:e.clientY}:{x:e.clientX,y:e.clientY+o},...function(e){let{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())])),h(!0)},[h]);return(0,i.useEffect)(()=>()=>m(),[m]),(0,i.useEffect)(()=>{if(f&&p){let e=e=>g(e,p),t=e=>g(e,f);return f.addEventListener("pointerleave",e),p.addEventListener("pointerleave",t),()=>{f.removeEventListener("pointerleave",e),p.removeEventListener("pointerleave",t)}}},[f,p,g,m]),(0,i.useEffect)(()=>{if(s){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==f?void 0:f.contains(t))||(null==p?void 0:p.contains(t)),o=!function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let l=t[e].x,a=t[e].y,u=t[i].x,s=t[i].y;a>r!=s>r&&n<(u-l)*(r-a)/(s-a)+l&&(o=!o)}return o}(n,s);r?m():o&&(m(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[f,p,s,d,m]),(0,i.createElement)(te,(0,o.Z)({},e,{ref:u}))}),[e4,e6]=ez(eK,{isInside:!1}),te=(0,i.forwardRef)((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":l,onEscapeKeyDown:a,onPointerDownOutside:u,...s}=e,c=eG(e8,n),f=eU(n),{onClose:d}=c;return(0,i.useEffect)(()=>(document.addEventListener(eZ,d),()=>document.removeEventListener(eZ,d)),[d]),(0,i.useEffect)(()=>{if(c.trigger){let e=e=>{let t=e.target;null!=t&&t.contains(c.trigger)&&d()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[c.trigger,d]),(0,i.createElement)(p,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:d},(0,i.createElement)(eO,(0,o.Z)({"data-state":c.stateAttribute},f,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),(0,i.createElement)(eB.Slottable,null,r),(0,i.createElement)(e4,{scope:n,isInside:!0},(0,i.createElement)(eF,{id:c.contentId,role:"tooltip"},l||r))))}),tt=(0,i.forwardRef)((e,t)=>{let{__scopeTooltip:n,...r}=e,l=eU(n);return e6("TooltipArrow",n).isInside?null:(0,i.createElement)(eD,(0,o.Z)({},l,r,{ref:t}))}),tn=eX,tr=eJ,to=e0,ti=e9,tl=e3,ta=tt}}]);
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";(self.webpackChunkremote=self.webpackChunkremote||[]).push([["5770"],{71115:function(e,t,n){n.d(t,{M:()=>r});function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}},78737:function(e,t,n){n.d(t,{WV:()=>f,jH:()=>a});var r=n(8491),u=n(96853),o=n(30638),i=n(31549),f=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,o.createSlot)(`Primitive.${t}`),u=r.forwardRef((e,r)=>{let{asChild:u,...o}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(u?n:t,{...o,ref:r})});return u.displayName=`Primitive.${t}`,{...e,[t]:u}},{});function a(e,t){e&&u.flushSync(()=>e.dispatchEvent(t))}},22766:function(e,t,n){n.r(t),n.d(t,{Root:()=>d,Toggle:()=>a});var r=n(8491),u=n(71115),o=n(81183),i=n(78737),f=n(31549),a=r.forwardRef((e,t)=>{let{pressed:n,defaultPressed:r=!1,onPressedChange:a,...d}=e,[l=!1,s]=(0,o.T)({prop:n,onChange:a,defaultProp:r});return(0,f.jsx)(i.WV.button,{type:"button","aria-pressed":l,"data-state":l?"on":"off","data-disabled":e.disabled?"":void 0,...d,ref:t,onClick:(0,u.M)(e.onClick,()=>{e.disabled||s(!l)})})});a.displayName="Toggle";var d=a},81820:function(e,t,n){n.d(t,{W:()=>u});var r=n(8491);function u(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},81183:function(e,t,n){n.d(t,{T:()=>o});var r=n(8491),u=n(81820);function o({prop:e,defaultProp:t,onChange:n=()=>{}}){let[o,i]=function({defaultProp:e,onChange:t}){let n=r.useState(e),[o]=n,i=r.useRef(o),f=(0,u.W)(t);return r.useEffect(()=>{i.current!==o&&(f(o),i.current=o)},[o,i,f]),n}({defaultProp:t,onChange:n}),f=void 0!==e,a=f?e:o,d=(0,u.W)(n);return[a,r.useCallback(t=>{if(f){let n="function"==typeof t?t(e):t;n!==e&&d(n)}else i(t)},[f,e,i,d])]}}}]);
|
@@ -1,2 +0,0 @@
|
|
1
|
-
/*! For license information please see 5876.36f8e85a.js.LICENSE.txt */
|
2
|
-
"use strict";(self.webpackChunkremote=self.webpackChunkremote||[]).push([["5876"],{90777:function(e,t,n){n.r(t),n.d(t,{HotkeysProvider:()=>L,isHotkeyPressed:()=>v,useHotkeys:()=>O,useHotkeysContext:()=>C,useRecordHotkeys:()=>A});var o=n(8491),r=n(31549);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}var u=["shift","alt","meta","mod","ctrl"],l={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function a(e){return(e&&l[e]||e||"").trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function c(e,t){return void 0===t&&(t=","),e.split(t)}function s(e,t,n){void 0===t&&(t="+");var o=e.toLocaleLowerCase().split(t).map(function(e){return a(e)}),r={alt:o.includes("alt"),ctrl:o.includes("ctrl")||o.includes("control"),shift:o.includes("shift"),meta:o.includes("meta"),mod:o.includes("mod")},l=o.filter(function(e){return!u.includes(e)});return i({},r,{keys:l,description:n,hotkey:e})}"undefined"!=typeof document&&(document.addEventListener("keydown",function(e){void 0!==e.key&&y([a(e.key),a(e.code)])}),document.addEventListener("keyup",function(e){void 0!==e.key&&p([a(e.key),a(e.code)])})),"undefined"!=typeof window&&window.addEventListener("blur",function(){d.clear()});var d=new Set;function f(e){return Array.isArray(e)}function v(e,t){return void 0===t&&(t=","),(f(e)?e:e.split(t)).every(function(e){return d.has(e.trim().toLowerCase())})}function y(e){var t=Array.isArray(e)?e:[e];d.has("meta")&&d.forEach(function(e){return!u.includes(e)&&d.delete(e.toLowerCase())}),t.forEach(function(e){return d.add(e.toLowerCase())})}function p(e){var t=Array.isArray(e)?e:[e];"meta"===e?d.clear():t.forEach(function(e){return d.delete(e.toLowerCase())})}function k(e,t){void 0===t&&(t=!1);var n,o=e.target,r=e.composed,i=null;return(i=(n=o).tagName&&!n.tagName.startsWith("-")&&n.tagName.includes("-")&&r?e.composedPath()[0]&&e.composedPath()[0].tagName:o&&o.tagName,f(t))?!!(i&&t&&t.some(function(e){var t;return e.toLowerCase()===(null==(t=i)?void 0:t.toLowerCase())})):!!(i&&t&&t)}var m=function(e,t,n){void 0===n&&(n=!1);var o=t.alt,r=t.meta,i=t.mod,u=t.shift,l=t.ctrl,c=t.keys,s=e.key,d=e.code,f=e.ctrlKey,y=e.metaKey,p=e.shiftKey,k=e.altKey,m=a(d),h=s.toLowerCase();if(!(null!=c&&c.includes(m))&&!(null!=c&&c.includes(h))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(m))return!1;if(!n){if(!k===o&&"alt"!==h||!p===u&&"shift"!==h)return!1;if(i){if(!y&&!f)return!1}else if(!y===r&&"meta"!==h&&"os"!==h||!f===l&&"ctrl"!==h&&"control"!==h)return!1}return!!(c&&1===c.length&&(c.includes(h)||c.includes(m)))||(c?v(c):!c||!1)},h=(0,o.createContext)(void 0);function b(e){var t=e.addHotkey,n=e.removeHotkey,o=e.children;return(0,r.jsx)(h.Provider,{value:{addHotkey:t,removeHotkey:n},children:o})}function w(e,t){return e&&t&&"object"==typeof e&&"object"==typeof t?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce(function(n,o){return n&&w(e[o],t[o])},!0):e===t}var g=(0,o.createContext)({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),C=function(){return(0,o.useContext)(g)},L=function(e){var t=e.initiallyActiveScopes,n=void 0===t?["*"]:t,i=e.children,u=(0,o.useState)((null==n?void 0:n.length)>0?n:["*"]),l=u[0],a=u[1],c=(0,o.useState)([]),s=c[0],d=c[1],f=(0,o.useCallback)(function(e){a(function(t){return t.includes("*")?[e]:Array.from(new Set([].concat(t,[e])))})},[]),v=(0,o.useCallback)(function(e){a(function(t){return 0===t.filter(function(t){return t!==e}).length?["*"]:t.filter(function(t){return t!==e})})},[]),y=(0,o.useCallback)(function(e){a(function(t){if(t.includes(e))if(0===t.filter(function(t){return t!==e}).length)return["*"];else return t.filter(function(t){return t!==e});return t.includes("*")?[e]:Array.from(new Set([].concat(t,[e])))})},[]),p=(0,o.useCallback)(function(e){d(function(t){return[].concat(t,[e])})},[]),k=(0,o.useCallback)(function(e){d(function(t){return t.filter(function(t){return!w(t,e)})})},[]);return(0,r.jsx)(g.Provider,{value:{enabledScopes:l,hotkeys:s,enableScope:f,disableScope:v,toggleScope:y},children:(0,r.jsx)(b,{addHotkey:p,removeHotkey:k,children:i})})},S=function(e){e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},E="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;function O(e,t,n,r){var i,u=(0,o.useState)(null),l=u[0],d=u[1],v=(0,o.useRef)(!1),b=n instanceof Array?r instanceof Array?void 0:r:n,g=f(e)?e.join(null==b?void 0:b.splitKey):e,L=n instanceof Array?n:r instanceof Array?r:void 0,O=(0,o.useCallback)(t,null!=L?L:[]),A=(0,o.useRef)(O);L?A.current=O:A.current=t;var R=(w((i=(0,o.useRef)(void 0)).current,b)||(i.current=b),i.current),_=C().enabledScopes,P=(0,o.useContext)(h);return E(function(){var e;if((null==R?void 0:R.enabled)!==!1&&(e=null==R?void 0:R.scopes,0===_.length&&e?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):!e||_.some(function(t){return e.includes(t)})||_.includes("*"))){var t=function(e,t){var n;if(void 0===t&&(t=!1),!k(e,["input","textarea","select"])||k(e,null==R?void 0:R.enableOnFormTags)){if(null!==l){var o=l.getRootNode();if((o instanceof Document||o instanceof ShadowRoot)&&o.activeElement!==l&&!l.contains(o.activeElement))return void S(e)}(null==(n=e.target)||!n.isContentEditable||null!=R&&R.enableOnContentEditable)&&c(g,null==R?void 0:R.splitKey).forEach(function(n){var o,r,i,u=s(n,null==R?void 0:R.combinationKey);if(m(e,u,null==R?void 0:R.ignoreModifiers)||null!=(i=u.keys)&&i.includes("*")){if(null!=R&&null!=R.ignoreEventWhen&&R.ignoreEventWhen(e)||t&&v.current)return;if(("function"==typeof(o=null==R?void 0:R.preventDefault)&&o(e,u)||!0===o)&&e.preventDefault(),"function"==typeof(r=null==R?void 0:R.enabled)?!r(e,u):!0!==r&&void 0!==r)return void S(e);A.current(e,u),t||(v.current=!0)}})}},n=function(e){void 0!==e.key&&(y(a(e.code)),((null==R?void 0:R.keydown)===void 0&&(null==R?void 0:R.keyup)!==!0||null!=R&&R.keydown)&&t(e))},o=function(e){void 0!==e.key&&(p(a(e.code)),v.current=!1,null!=R&&R.keyup&&t(e,!0))},r=l||(null==b?void 0:b.document)||document;return r.addEventListener("keyup",o,null==b?void 0:b.eventListenerOptions),r.addEventListener("keydown",n,null==b?void 0:b.eventListenerOptions),P&&c(g,null==R?void 0:R.splitKey).forEach(function(e){return P.addHotkey(s(e,null==R?void 0:R.combinationKey,null==R?void 0:R.description))}),function(){r.removeEventListener("keyup",o,null==b?void 0:b.eventListenerOptions),r.removeEventListener("keydown",n,null==b?void 0:b.eventListenerOptions),P&&c(g,null==R?void 0:R.splitKey).forEach(function(e){return P.removeHotkey(s(e,null==R?void 0:R.combinationKey,null==R?void 0:R.description))})}}},[l,g,R,_]),d}function A(){var e=(0,o.useState)(new Set),t=e[0],n=e[1],r=(0,o.useState)(!1),i=r[0],u=r[1],l=(0,o.useCallback)(function(e){void 0!==e.key&&(e.preventDefault(),e.stopPropagation(),n(function(t){var n=new Set(t);return n.add(a(e.code)),n}))},[]),c=(0,o.useCallback)(function(){"undefined"!=typeof document&&(document.removeEventListener("keydown",l),u(!1))},[l]);return[t,{start:(0,o.useCallback)(function(){n(new Set),"undefined"!=typeof document&&(c(),document.addEventListener("keydown",l),u(!0))},[l,c]),stop:c,resetKeys:(0,o.useCallback)(function(){n(new Set)},[]),isRecording:i}]}},92293:function(e,t,n){var o=n(8491),r=Symbol.for("react.element"),i=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,l=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var o,i={},c=null,s=null;for(o in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(s=t.ref),t)u.call(t,o)&&!a.hasOwnProperty(o)&&(i[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===i[o]&&(i[o]=t[o]);return{$$typeof:r,type:e,key:c,ref:s,props:i,_owner:l.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},31549:function(e,t,n){e.exports=n(92293)}}]);
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";(self.webpackChunkremote=self.webpackChunkremote||[]).push([["5921"],{82722:function(e,t,r){r.r(t),r.d(t,{default:()=>c});var n=r(8491);let u="undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)?n.useEffect:n.useLayoutEffect;function c(e){let t="function"==typeof e?function(e){let t,r=new Set,n=(e,n)=>{let u="function"==typeof e?e(t):e;if(u!==t){let e=t;t=n?u:Object.assign({},t,u),r.forEach(r=>r(t,e))}},u=()=>t,c=(e,n=u,c=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let s=n(t);function i(){let r=n(t);if(!c(s,r)){let t=s;e(s=r,t)}}return r.add(i),()=>r.delete(i)},s={setState:n,getState:u,subscribe:(e,t,n)=>t||n?c(e,t,n):(r.add(e),()=>r.delete(e)),destroy:()=>r.clear()};return t=e(n,u,s),s}(e):e,r=(e=t.getState,r=Object.is)=>{let c,[,s]=(0,n.useReducer)(e=>e+1,0),i=t.getState(),l=(0,n.useRef)(i),a=(0,n.useRef)(e),o=(0,n.useRef)(r),f=(0,n.useRef)(!1),d=(0,n.useRef)();void 0===d.current&&(d.current=e(i));let b=!1;(l.current!==i||a.current!==e||o.current!==r||f.current)&&(c=e(i),b=!r(d.current,c)),u(()=>{b&&(d.current=c),l.current=i,a.current=e,o.current=r,f.current=!1});let w=(0,n.useRef)(i);u(()=>{let e=()=>{try{let e=t.getState(),r=a.current(e);o.current(d.current,r)||(l.current=e,d.current=r,s())}catch(e){f.current=!0,s()}},r=t.subscribe(e);return t.getState()!==w.current&&e(),r},[]);let g=b?c:d.current;return(0,n.useDebugValue)(g),g};return Object.assign(r,t),r[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");let e=[r,t];return{next(){let t=e.length<=0;return{value:e.shift(),done:t}}}},r}}}]);
|