recce-nightly 1.15.0.20250806__py3-none-any.whl → 1.26.0.20251124__py3-none-any.whl

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.

Potentially problematic release.


This version of recce-nightly might be problematic. Click here for more details.

Files changed (167) hide show
  1. recce/VERSION +1 -1
  2. recce/__init__.py +5 -0
  3. recce/adapter/dbt_adapter/__init__.py +12 -3
  4. recce/artifact.py +74 -1
  5. recce/cli.py +642 -101
  6. recce/config.py +2 -2
  7. recce/connect_to_cloud.py +1 -1
  8. recce/core.py +2 -2
  9. recce/data/404.html +1 -1
  10. recce/data/__next.__PAGE__.txt +10 -0
  11. recce/data/__next._full.txt +23 -0
  12. recce/data/__next._head.txt +8 -0
  13. recce/data/__next._index.txt +8 -0
  14. recce/data/__next._tree.txt +5 -0
  15. recce/data/_next/static/52aV_JrNUZU6dMFgvTQEO/_buildManifest.js +11 -0
  16. recce/data/_next/static/52aV_JrNUZU6dMFgvTQEO/_clientMiddlewareManifest.json +1 -0
  17. recce/data/_next/static/chunks/02b996c7f6a29a06.js +4 -0
  18. recce/data/_next/static/chunks/19c10d219a6a21ff.js +1 -0
  19. recce/data/_next/static/chunks/2df9ec28a061971d.js +11 -0
  20. recce/data/_next/static/chunks/3098c987393bda15.js +1 -0
  21. recce/data/_next/static/chunks/393dc43e483f717a.css +2 -0
  22. recce/data/_next/static/chunks/399e8d91a7e45073.js +2 -0
  23. recce/data/_next/static/chunks/4d0186f631230245.js +1 -0
  24. recce/data/_next/static/chunks/5794ba9e10a9c060.js +11 -0
  25. recce/data/_next/static/chunks/715761c929a3f28b.js +110 -0
  26. recce/data/_next/static/chunks/71f88fcc615bf282.js +1 -0
  27. recce/data/_next/static/chunks/80d2a95eaf1201ea.js +1 -0
  28. recce/data/_next/static/chunks/9979c6109bbbee35.js +1 -0
  29. recce/data/_next/static/chunks/99d638224186c118.js +1 -0
  30. recce/data/_next/static/chunks/d003eb36240e92f3.js +1 -0
  31. recce/data/_next/static/chunks/d3167cdfec4fc351.js +1 -0
  32. recce/data/_next/static/chunks/e124bccf574a3361.css +1 -0
  33. recce/data/_next/static/chunks/f40141db1bdb46f0.css +6 -0
  34. recce/data/_next/static/chunks/fcc53a88741a52f9.js +1 -0
  35. recce/data/_next/static/chunks/turbopack-b1920d28cfb1f28d.js +3 -0
  36. recce/data/_next/static/media/favicon.a8d38d84.ico +0 -0
  37. recce/data/_next/static/media/montserrat-cyrillic-800-normal.d80d830d.woff2 +0 -0
  38. recce/data/_next/static/media/{montserrat-cyrillic-800-normal.bd5c9f50.woff → montserrat-cyrillic-800-normal.f9d58125.woff} +0 -0
  39. recce/data/_next/static/media/montserrat-cyrillic-ext-800-normal.076c2a93.woff2 +0 -0
  40. recce/data/_next/static/media/montserrat-latin-800-normal.cde454cc.woff2 +0 -0
  41. recce/data/_next/static/media/{montserrat-latin-800-normal.fc315020.woff → montserrat-latin-800-normal.d5761935.woff} +0 -0
  42. recce/data/_next/static/media/montserrat-latin-ext-800-normal.40ec0659.woff2 +0 -0
  43. recce/data/_next/static/media/{montserrat-latin-ext-800-normal.2e5381b2.woff → montserrat-latin-ext-800-normal.b671449b.woff} +0 -0
  44. recce/data/_next/static/media/{montserrat-vietnamese-800-normal.20c545e6.woff → montserrat-vietnamese-800-normal.9f7b8541.woff} +0 -0
  45. recce/data/_next/static/media/montserrat-vietnamese-800-normal.f9eb854e.woff2 +0 -0
  46. recce/data/_not-found/__next._full.txt +17 -0
  47. recce/data/_not-found/__next._head.txt +8 -0
  48. recce/data/_not-found/__next._index.txt +8 -0
  49. recce/data/_not-found/__next._not-found.__PAGE__.txt +5 -0
  50. recce/data/_not-found/__next._not-found.txt +4 -0
  51. recce/data/_not-found/__next._tree.txt +3 -0
  52. recce/data/_not-found.html +1 -0
  53. recce/data/_not-found.txt +17 -0
  54. recce/data/index.html +1 -1
  55. recce/data/index.txt +21 -23
  56. recce/event/__init__.py +9 -8
  57. recce/event/collector.py +3 -1
  58. recce/event/track.py +10 -0
  59. recce/github.py +1 -1
  60. recce/mcp_server.py +716 -0
  61. recce/models/types.py +35 -2
  62. recce/pull_request.py +1 -1
  63. recce/run.py +2 -2
  64. recce/server.py +105 -3
  65. recce/state/__init__.py +31 -0
  66. recce/state/cloud.py +632 -0
  67. recce/state/const.py +26 -0
  68. recce/state/local.py +56 -0
  69. recce/state/state.py +119 -0
  70. recce/state/state_loader.py +174 -0
  71. recce/summary.py +21 -1
  72. recce/tasks/dataframe.py +63 -1
  73. recce/tasks/rowcount.py +4 -1
  74. recce/tasks/schema.py +4 -1
  75. recce/util/api_token.py +9 -2
  76. recce/util/breaking.py +1 -1
  77. recce/util/io.py +2 -2
  78. recce/util/lineage.py +14 -18
  79. recce/util/recce_cloud.py +187 -7
  80. recce/yaml/__init__.py +2 -2
  81. recce_cloud/__init__.py +24 -0
  82. recce_cloud/api/__init__.py +17 -0
  83. recce_cloud/api/base.py +111 -0
  84. recce_cloud/api/client.py +150 -0
  85. recce_cloud/api/exceptions.py +26 -0
  86. recce_cloud/api/factory.py +63 -0
  87. recce_cloud/api/github.py +76 -0
  88. recce_cloud/api/gitlab.py +82 -0
  89. recce_cloud/artifact.py +57 -0
  90. recce_cloud/ci_providers/__init__.py +9 -0
  91. recce_cloud/ci_providers/base.py +82 -0
  92. recce_cloud/ci_providers/detector.py +147 -0
  93. recce_cloud/ci_providers/github_actions.py +136 -0
  94. recce_cloud/ci_providers/gitlab_ci.py +130 -0
  95. recce_cloud/cli.py +245 -0
  96. recce_cloud/upload.py +214 -0
  97. {recce_nightly-1.15.0.20250806.dist-info → recce_nightly-1.26.0.20251124.dist-info}/METADATA +54 -28
  98. recce_nightly-1.26.0.20251124.dist-info/RECORD +180 -0
  99. {recce_nightly-1.15.0.20250806.dist-info → recce_nightly-1.26.0.20251124.dist-info}/top_level.txt +1 -0
  100. tests/adapter/dbt_adapter/test_dbt_cll.py +4 -2
  101. tests/recce_cloud/__init__.py +0 -0
  102. tests/recce_cloud/test_ci_providers.py +351 -0
  103. tests/recce_cloud/test_cli.py +372 -0
  104. tests/recce_cloud/test_client.py +273 -0
  105. tests/recce_cloud/test_platform_clients.py +333 -0
  106. tests/test_cli.py +106 -3
  107. tests/test_cli_mcp_optional.py +45 -0
  108. tests/test_cloud_listing_cli.py +324 -0
  109. tests/test_core.py +147 -0
  110. tests/test_mcp_server.py +332 -0
  111. tests/test_server.py +6 -6
  112. tests/test_summary.py +14 -6
  113. recce/data/_next/static/Q_5ThPsmamd4VAGXuqwgi/_buildManifest.js +0 -1
  114. recce/data/_next/static/chunks/0376eeba-3db2196398d62270.js +0 -1
  115. recce/data/_next/static/chunks/068b80ea-833a129468ee1622.js +0 -1
  116. recce/data/_next/static/chunks/0ddaf06c-c7961285f66460f6.js +0 -1
  117. recce/data/_next/static/chunks/1268aea1-6dc1251c01bd724b.js +0 -54
  118. recce/data/_next/static/chunks/12f8fac4-16838e42d28d45c3.js +0 -1
  119. recce/data/_next/static/chunks/235b8375-8c84c51d7bd4f6aa.js +0 -1
  120. recce/data/_next/static/chunks/2541941f-2cd3a7c2d629bd33.js +0 -1
  121. recce/data/_next/static/chunks/273-f3fa401bd2b6fc91.js +0 -10
  122. recce/data/_next/static/chunks/2fc37c1e-910deebeb3d77c90.js +0 -1
  123. recce/data/_next/static/chunks/338-2e7eed5135c64550.js +0 -30
  124. recce/data/_next/static/chunks/367-ab8b16dd5f8586ca.js +0 -1
  125. recce/data/_next/static/chunks/3a92ee20-0400ffe460c7c803.js +0 -1
  126. recce/data/_next/static/chunks/62446465-423c03bb8c1f59b6.js +0 -1
  127. recce/data/_next/static/chunks/6af7f9e9-60aa8706f49dae45.js +0 -1
  128. recce/data/_next/static/chunks/6cf54382-49d52ae6e564e2ac.js +0 -1
  129. recce/data/_next/static/chunks/6dc81886-78e2efe4538794ae.js +0 -1
  130. recce/data/_next/static/chunks/715e4acc-9e2e6df4eb3809d1.js +0 -1
  131. recce/data/_next/static/chunks/72-181b430654230f0e.js +0 -1
  132. recce/data/_next/static/chunks/786-774e3e3ed70a41b3.js +0 -1
  133. recce/data/_next/static/chunks/8d700b6a.7fe2c8c3f4e333a6.js +0 -1
  134. recce/data/_next/static/chunks/a69d64b4-d6890125a87b0aba.js +0 -1
  135. recce/data/_next/static/chunks/ae307f12-01100009689ace61.js +0 -1
  136. recce/data/_next/static/chunks/app/_not-found/page-c7ef8ed6dc07aaeb.js +0 -1
  137. recce/data/_next/static/chunks/app/layout-744f0a78e9e50e60.js +0 -1
  138. recce/data/_next/static/chunks/app/page-e8f798c2ae3f59c2.js +0 -1
  139. recce/data/_next/static/chunks/c0015c5c-82c219792582c104.js +0 -1
  140. recce/data/_next/static/chunks/d90cfbaa-e7d779b3912afeec.js +0 -1
  141. recce/data/_next/static/chunks/e07c302e-cd170429646873e1.js +0 -1
  142. recce/data/_next/static/chunks/fa5fb511-15fb438349ad5b97.js +0 -1
  143. recce/data/_next/static/chunks/framework-7950757d31580329.js +0 -1
  144. recce/data/_next/static/chunks/main-app-4df79eb11c34d43c.js +0 -1
  145. recce/data/_next/static/chunks/main-cd6c104af638214a.js +0 -1
  146. recce/data/_next/static/chunks/pages/_app-73008661edbd5e05.js +0 -1
  147. recce/data/_next/static/chunks/pages/_error-cf8bbdc3cf76c83f.js +0 -1
  148. recce/data/_next/static/chunks/webpack-84df6dd5ae3cf908.js +0 -1
  149. recce/data/_next/static/css/188a3a1687e2a064.css +0 -1
  150. recce/data/_next/static/css/8edca58d4abcf908.css +0 -14
  151. recce/data/_next/static/css/abdb9814a3dd18bb.css +0 -1
  152. recce/data/_next/static/css/c21263c1520b615b.css +0 -1
  153. recce/data/_next/static/media/montserrat-cyrillic-800-normal.22628180.woff2 +0 -0
  154. recce/data/_next/static/media/montserrat-cyrillic-ext-800-normal.94a63aea.woff2 +0 -0
  155. recce/data/_next/static/media/montserrat-latin-800-normal.6f8fa298.woff2 +0 -0
  156. recce/data/_next/static/media/montserrat-latin-ext-800-normal.013b84f9.woff2 +0 -0
  157. recce/data/_next/static/media/montserrat-vietnamese-800-normal.c0035377.woff2 +0 -0
  158. recce/state.py +0 -865
  159. recce_nightly-1.15.0.20250806.dist-info/RECORD +0 -156
  160. tests/test_state.py +0 -134
  161. /recce/data/_next/static/{Q_5ThPsmamd4VAGXuqwgi → 52aV_JrNUZU6dMFgvTQEO}/_ssgManifest.js +0 -0
  162. /recce/data/_next/static/chunks/{polyfills-42372ed130431b0a.js → a6dad97d9634a72d.js} +0 -0
  163. /recce/data/_next/static/media/{montserrat-cyrillic-ext-800-normal.e6e0d8d0.woff → montserrat-cyrillic-ext-800-normal.a4fa76b5.woff} +0 -0
  164. /recce/data/_next/static/media/{reload-image.79aabb7d.svg → reload-image.7aa931c7.svg} +0 -0
  165. {recce_nightly-1.15.0.20250806.dist-info → recce_nightly-1.26.0.20251124.dist-info}/WHEEL +0 -0
  166. {recce_nightly-1.15.0.20250806.dist-info → recce_nightly-1.26.0.20251124.dist-info}/entry_points.txt +0 -0
  167. {recce_nightly-1.15.0.20250806.dist-info → recce_nightly-1.26.0.20251124.dist-info}/licenses/LICENSE +0 -0
@@ -1,10 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[273],{36:(e,t,n)=>{var r=n(34862),i=n(4663);e.exports=function(e,t){return e&&r(t,i(t),e)}},41:(e,t,n)=>{"use strict";var r=n(19978);function i(e){this._isDirected=!r.has(e,"directed")||e.directed,this._isMultigraph=!!r.has(e,"multigraph")&&e.multigraph,this._isCompound=!!r.has(e,"compound")&&e.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function o(e,t){e[t]?e[t]++:e[t]=1}function a(e,t){--e[t]||delete e[t]}function s(e,t,n,i){var o=""+t,a=""+n;if(!e&&o>a){var s=o;o=a,a=s}return o+"\x01"+a+"\x01"+(r.isUndefined(i)?"\0":i)}function l(e,t){return s(e,t.v,t.w,t.name)}e.exports=i,i.prototype._nodeCount=0,i.prototype._edgeCount=0,i.prototype.isDirected=function(){return this._isDirected},i.prototype.isMultigraph=function(){return this._isMultigraph},i.prototype.isCompound=function(){return this._isCompound},i.prototype.setGraph=function(e){return this._label=e,this},i.prototype.graph=function(){return this._label},i.prototype.setDefaultNodeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultNodeLabelFn=e,this},i.prototype.nodeCount=function(){return this._nodeCount},i.prototype.nodes=function(){return r.keys(this._nodes)},i.prototype.sources=function(){var e=this;return r.filter(this.nodes(),function(t){return r.isEmpty(e._in[t])})},i.prototype.sinks=function(){var e=this;return r.filter(this.nodes(),function(t){return r.isEmpty(e._out[t])})},i.prototype.setNodes=function(e,t){var n=arguments,i=this;return r.each(e,function(e){n.length>1?i.setNode(e,t):i.setNode(e)}),this},i.prototype.setNode=function(e,t){return r.has(this._nodes,e)?arguments.length>1&&(this._nodes[e]=t):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]="\0",this._children[e]={},this._children["\0"][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount),this},i.prototype.node=function(e){return this._nodes[e]},i.prototype.hasNode=function(e){return r.has(this._nodes,e)},i.prototype.removeNode=function(e){var t=this;if(r.has(this._nodes,e)){var n=function(e){t.removeEdge(t._edgeObjs[e])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],r.each(this.children(e),function(e){t.setParent(e)}),delete this._children[e]),r.each(r.keys(this._in[e]),n),delete this._in[e],delete this._preds[e],r.each(r.keys(this._out[e]),n),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this},i.prototype.setParent=function(e,t){if(!this._isCompound)throw Error("Cannot set parent in a non-compound graph");if(r.isUndefined(t))t="\0";else{t+="";for(var n=t;!r.isUndefined(n);n=this.parent(n))if(n===e)throw Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this},i.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]},i.prototype.parent=function(e){if(this._isCompound){var t=this._parent[e];if("\0"!==t)return t}},i.prototype.children=function(e){if(r.isUndefined(e)&&(e="\0"),this._isCompound){var t=this._children[e];if(t)return r.keys(t)}else if("\0"===e)return this.nodes();else if(this.hasNode(e))return[]},i.prototype.predecessors=function(e){var t=this._preds[e];if(t)return r.keys(t)},i.prototype.successors=function(e){var t=this._sucs[e];if(t)return r.keys(t)},i.prototype.neighbors=function(e){var t=this.predecessors(e);if(t)return r.union(t,this.successors(e))},i.prototype.isLeaf=function(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length},i.prototype.filterNodes=function(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;r.each(this._nodes,function(n,r){e(r)&&t.setNode(r,n)}),r.each(this._edgeObjs,function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))});var i={};return this._isCompound&&r.each(t.nodes(),function(e){t.setParent(e,function e(r){var o=n.parent(r);return void 0===o||t.hasNode(o)?(i[r]=o,o):o in i?i[o]:e(o)}(e))}),t},i.prototype.setDefaultEdgeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultEdgeLabelFn=e,this},i.prototype.edgeCount=function(){return this._edgeCount},i.prototype.edges=function(){return r.values(this._edgeObjs)},i.prototype.setPath=function(e,t){var n=this,i=arguments;return r.reduce(e,function(e,r){return i.length>1?n.setEdge(e,r,t):n.setEdge(e,r),r}),this},i.prototype.setEdge=function(){var e,t,n,i,a=!1,l=arguments[0];"object"==typeof l&&null!==l&&"v"in l?(e=l.v,t=l.w,n=l.name,2==arguments.length&&(i=arguments[1],a=!0)):(e=l,t=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),e=""+e,t=""+t,r.isUndefined(n)||(n=""+n);var u=s(this._isDirected,e,t,n);if(r.has(this._edgeLabels,u))return a&&(this._edgeLabels[u]=i),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[u]=a?i:this._defaultEdgeLabelFn(e,t,n);var c=function(e,t,n,r){var i=""+t,o=""+n;if(!e&&i>o){var a=i;i=o,o=a}var s={v:i,w:o};return r&&(s.name=r),s}(this._isDirected,e,t,n);return e=c.v,t=c.w,Object.freeze(c),this._edgeObjs[u]=c,o(this._preds[t],e),o(this._sucs[e],t),this._in[t][u]=c,this._out[e][u]=c,this._edgeCount++,this},i.prototype.edge=function(e,t,n){var r=1==arguments.length?l(this._isDirected,arguments[0]):s(this._isDirected,e,t,n);return this._edgeLabels[r]},i.prototype.hasEdge=function(e,t,n){var i=1==arguments.length?l(this._isDirected,arguments[0]):s(this._isDirected,e,t,n);return r.has(this._edgeLabels,i)},i.prototype.removeEdge=function(e,t,n){var r=1==arguments.length?l(this._isDirected,arguments[0]):s(this._isDirected,e,t,n),i=this._edgeObjs[r];return i&&(e=i.v,t=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],a(this._preds[t],e),a(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this},i.prototype.inEdges=function(e,t){var n=this._in[e];if(n){var i=r.values(n);return t?r.filter(i,function(e){return e.v===t}):i}},i.prototype.outEdges=function(e,t){var n=this._out[e];if(n){var i=r.values(n);return t?r.filter(i,function(e){return e.w===t}):i}},i.prototype.nodeEdges=function(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}},272:(e,t,n)=>{var r=n(22094),i=n(92469),o=n(52731),a=n(57796),s=n(53264),l=n(47016);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},379:(e,t,n)=>{var r=n(19978);function i(e){var t={},n={},i=[];if(r.each(e.sinks(),function a(s){if(r.has(n,s))throw new o;r.has(t,s)||(n[s]=!0,t[s]=!0,r.each(e.predecessors(s),a),delete n[s],i.push(s))}),r.size(t)!==e.nodeCount())throw new o;return i}function o(){}e.exports=i,i.CycleException=o,o.prototype=Error()},410:(e,t,n)=>{"use strict";e.exports=n(2417)},621:(e,t,n)=>{var r;try{r=n(88105)}catch(e){}r||(r=window.graphlib),e.exports=r},718:e=>{function t(){var e={};e._next=e._prev=e,this._sentinel=e}function n(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function r(e,t){if("_next"!==e&&"_prev"!==e)return t}e.exports=t,t.prototype.dequeue=function(){var e=this._sentinel,t=e._prev;if(t!==e)return n(t),t},t.prototype.enqueue=function(e){var t=this._sentinel;e._prev&&e._next&&n(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t},t.prototype.toString=function(){for(var e=[],t=this._sentinel,n=t._prev;n!==t;)e.push(JSON.stringify(n,r)),n=n._prev;return"["+e.join(", ")+"]"}},830:(e,t,n)=>{e.exports=n(83199)(n(53252),"WeakMap")},832:(e,t,n)=>{"use strict";n.d(t,{$:()=>a,s:()=>s});var r=n(9597),i=n(96223);let[o,a]=(0,n(43163).q)({name:"ChakraContext",strict:!0,providerName:"<ChakraProvider />"});function s(e){let{value:t,children:n}=e;return(0,r.jsxs)(o,{value:t,children:[!t._config.disableLayers&&(0,r.jsx)(i.mL,{styles:t.layers.atRule}),(0,r.jsx)(i.mL,{styles:t._global}),n]})}},1213:(e,t,n)=>{var r=n(34862),i=n(91512);e.exports=function(e){return r(e,i(e))}},1577:(e,t,n)=>{var r=n(69752),i=n(4663);e.exports=function(e){return null==e?[]:r(e,i(e))}},1837:(e,t,n)=>{var r=n(81665),i=n(40096),o=n(27404);e.exports=function(e,t){var n={};return t=o(t,3),i(e,function(e,i,o){r(n,i,t(e,i,o))}),n}},1863:(e,t,n)=>{"use strict";n.d(t,{D:()=>o});let{withContext:r,PropsProvider:i}=(0,n(12580).a)({key:"heading"}),o=r("h2")},2417:(e,t,n)=>{"use strict";var r=n(80905),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})},[e,n,t]),a(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},2604:(e,t,n)=>{var r=n(40096);e.exports=n(36848)(r)},2657:(e,t,n)=>{"use strict";n.d(t,{PR:()=>R,Mo:()=>P,ZI:()=>T,ol:()=>_,sb:()=>O,k$:()=>I});var r=n(9597),i=n(20752),o=n(51075),a=n(97276),s=n(7759);let[l,u]=(0,n(42347).q)({name:"TooltipContext",hookName:"useTooltipContext",providerName:"<TooltipProvider />"});var c=n(35556),d=n(63048),f=n(80905),h=n(63283),p=n(52693),g=n(52718);let v=(0,f.forwardRef)((e,t)=>{let n=u(),o=(0,i.v6)(n.getTriggerProps(),e);return(0,r.jsx)(g.X.button,{...o,ref:t})});v.displayName="TooltipTrigger";let m=(0,f.forwardRef)((e,t)=>{let n=u(),o=(0,i.v6)(n.getPositionerProps(),e);return(0,s.c)().unmounted?null:(0,r.jsx)(g.X.div,{...o,ref:t})});m.displayName="TooltipPositioner";var b=n(99648);let y=(0,f.forwardRef)((e,t)=>{let n=u(),o=(0,s.c)(),a=(0,i.v6)(n.getContentProps(),o.getPresenceProps(),e);return o.unmounted?null:(0,r.jsx)(g.X.div,{...a,ref:(0,b.t)(o.ref,t)})});y.displayName="TooltipContent";let x=(0,f.forwardRef)((e,t)=>{let n=u(),o=(0,i.v6)(n.getArrowTipProps(),e);return(0,r.jsx)(g.X.div,{...o,ref:t})});x.displayName="TooltipArrowTip";let w=(0,f.forwardRef)((e,t)=>{let n=u(),o=(0,i.v6)(n.getArrowProps(),e);return(0,r.jsx)(g.X.div,{...o,ref:t})});w.displayName="TooltipArrow";let{withRootProvider:S,withContext:E,useStyles:k,PropsProvider:C}=(0,n(25651).c)({key:"tooltip"});S(e=>{let[t,{value:n,children:u}]=(0,o.s)(e),c=(0,a.x)((0,i.v6)({present:n.open},t));return(0,r.jsx)(l,{value:n,children:(0,r.jsx)(s.j,{value:c,children:u})})});let O=S(e=>{let[t,{children:n,...u}]=(0,o.s)(e),g=(e=>{let t=(0,f.useId)(),{getRootNode:n}=(0,h.w)(),{dir:r}=(0,p.g)(),i={id:t,dir:r,getRootNode:n,...e},o=(0,c.zl)(d.Aq,i);return d.Ng(o,c._B)})(u),v=(0,a.x)((0,i.v6)({present:g.open},t));return(0,r.jsx)(l,{value:g,children:(0,r.jsx)(s.j,{value:v,children:n})})},{defaultProps:{lazyMount:!0,unmountOnExit:!0}}),I=E(v,"trigger",{forwardAsChild:!0}),_=E(m,"positioner",{forwardAsChild:!0}),T=E(y,"content",{forwardAsChild:!0}),P=E(x,"arrowTip",{forwardAsChild:!0}),R=E(w,"arrow",{forwardAsChild:!0,defaultProps:{children:(0,r.jsx)(P,{})}})},3334:(e,t,n)=>{var r=n(89812),i=n(53311);e.exports=function(e,t){return null!=e&&i(e,t,r)}},3473:(e,t,n)=>{var r=n(74474),i=n(27531);e.exports=function(e,t){return i(e||[],t||[],r)}},3716:(e,t,n)=>{"use strict";n.d(t,{f:()=>r});let r=n(93600).MI.extendWith("group")},3856:(e,t,n)=>{var r=n(19978);e.exports=function(e){var t,n={},i=[];return r.each(e.nodes(),function(o){t=[],function i(o){r.has(n,o)||(n[o]=!0,t.push(o),r.each(e.successors(o),i),r.each(e.predecessors(o),i))}(o),t.length&&i.push(t)}),i}},4174:(e,t,n)=>{"use strict";n.d(t,{E:()=>o});let{withContext:r,PropsProvider:i}=(0,n(12580).a)({key:"text"}),o=r("p")},4408:(e,t,n)=>{"use strict";var r=n(63780),i=n(72883),o=n(16730),a=n(48437),s=n(10145),l=n(78173),u=n(621).Graph,c=n(99601);function d(e,t,n){return r.map(t,function(t){return s(e,t,n)})}function f(e,t){r.forEach(t,function(t){r.forEach(t,function(t,n){e.node(t).order=n})})}e.exports=function(e){var t=c.maxRank(e),n=d(e,r.range(1,t+1),"inEdges"),s=d(e,r.range(t-1,-1,-1),"outEdges"),h=i(e);f(e,h);for(var p,g=1/0,v=0,m=0;m<4;++v,++m){(function(e,t){var n=new u;r.forEach(e,function(e){var i=e.graph().root,o=a(e,i,n,t);r.forEach(o.vs,function(t,n){e.node(t).order=n}),l(e,n,o.vs)})})(v%2?n:s,v%4>=2),h=c.buildLayerMatrix(e);var b=o(e,h);b<g&&(m=0,p=r.cloneDeep(h),g=b)}f(e,p)}},4438:(e,t,n)=>{var r=n(72612),i=n(78420),o=n(31376),a=o&&o.isTypedArray;e.exports=a?i(a):r},4542:(e,t,n)=>{var r=n(19978),i=n(61018);e.exports=function(e,t,n,r){return function(e,t,n,r){var o,a,s={},l=new i,u=function(e){var t=e.v!==o?e.v:e.w,r=s[t],i=n(e),u=a.distance+i;if(i<0)throw Error("dijkstra does not allow negative edge weights. Bad edge: "+e+" Weight: "+i);u<r.distance&&(r.distance=u,r.predecessor=o,l.decrease(t,u))};for(e.nodes().forEach(function(e){var n=e===t?0:1/0;s[e]={distance:n},l.add(e,n)});l.size()>0&&(a=s[o=l.removeMin()]).distance!==1/0;)r(o).forEach(u);return s}(e,String(t),n||o,r||function(t){return e.outEdges(t)})};var o=r.constant(1)},4663:(e,t,n)=>{var r=n(47350),i=n(21561),o=n(40935);e.exports=function(e){return o(e)?r(e):i(e)}},4743:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{formatUrl:function(){return o},formatWithValidation:function(){return s},urlObjectKeys:function(){return a}});let r=n(77764)._(n(56485)),i=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:n}=e,o=e.protocol||"",a=e.pathname||"",s=e.hash||"",l=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:n&&(u=t+(~n.indexOf(":")?"["+n+"]":n),e.port&&(u+=":"+e.port)),l&&"object"==typeof l&&(l=String(r.urlQueryToSearchParams(l)));let c=e.search||l&&"?"+l||"";return o&&!o.endsWith(":")&&(o+=":"),e.slashes||(!o||i.test(o))&&!1!==u?(u="//"+(u||""),a&&"/"!==a[0]&&(a="/"+a)):u||(u=""),s&&"#"!==s[0]&&(s="#"+s),c&&"?"!==c[0]&&(c="?"+c),""+o+u+(a=a.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+s}let a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function s(e){return o(e)}},4987:(e,t,n)=>{var r=n(99175),i=n(23597),o=n(3334),a=n(28939),s=n(14757),l=n(95532),u=n(8788);e.exports=function(e,t){return a(e)&&s(t)?l(u(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,3)}}},5734:(e,t,n)=>{var r=n(46872);e.exports=function(e){return r(this.__data__,e)>-1}},5816:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?0x1fffffffffffff:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},5976:(e,t,n)=>{"use strict";n.d(t,{V:()=>o});let r=/[^a-zA-Z0-9_\u0081-\uffff-]/g,i=/[A-Z]/g;function o(e,t={}){let{fallback:n="",prefix:a=""}=t,s=["-",a,`${e}`.replace(r,e=>`\\${e}`)].filter(Boolean).join("-").replace(i,e=>`-${e.toLowerCase()}`);return{var:s,ref:`var(${s}${n?`, ${n}`:""})`}}},6229:(e,t,n)=>{"use strict";n.d(t,{k:()=>i});var r=n(70465),i=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,r.gn)(this.gcTime)&&(this.#e=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(r.S$?1/0:3e5))}clearGcTimeout(){this.#e&&(clearTimeout(this.#e),this.#e=void 0)}}},6280:(e,t,n)=>{"use strict";function r(e){if(!e)return;let t=e.selectionStart??0;0===Math.abs((e.selectionEnd??0)-t)&&0===t&&e.setSelectionRange(e.value.length,e.value.length)}n.d(t,{$S:()=>Q,$b:()=>N,$h:()=>eV,AO:()=>er,Al:()=>ek,CF:()=>Y,CN:()=>I,Ge:()=>ed,Gj:()=>eM,I5:()=>eN,IR:()=>g,Il:()=>ef,K:()=>W,KY:()=>es,L9:()=>E,MC:()=>eE,Ml:()=>F,NH:()=>eb,Ng:()=>p,P:()=>e_,RD:()=>ea,Rt:()=>em,TH:()=>H,TW:()=>V,U4:()=>G,Ut:()=>eA,VL:()=>z,Y:()=>eO,YE:()=>y,YF:()=>D,YG:()=>eI,_T:()=>K,aR:()=>_,aX:()=>eP,b9:()=>M,bq:()=>w,cX:()=>T,dY:()=>el,eC:()=>eL,er:()=>eu,fe:()=>eF,fg:()=>m,fv:()=>j,gR:()=>b,gX:()=>r,hx:()=>l,i7:()=>ee,j9:()=>en,kf:()=>k,kn:()=>q,mx:()=>ec,nr:()=>P,ob:()=>eh,q_:()=>L,rq:()=>c,ru:()=>eC,sE:()=>u,sb:()=>d,tp:()=>et,tt:()=>eD,uf:()=>X,uh:()=>A,v9:()=>function e(t,n=[]){let r=eh(t),i=r===t.ownerDocument.body,o=x(r);return i?n.concat(o,o.visualViewport||[],ev(r)?r:[]):n.concat(r,e(r,[]))},wt:()=>R,wz:()=>f,xk:()=>ej,yT:()=>eo,zk:()=>x,zn:()=>ey});var i=e=>Math.max(0,Math.min(1,e)),o=(...e)=>t=>e.reduce((e,t)=>t(e),t),a=()=>void 0,s=e=>"object"==typeof e&&null!==e,l=0x7fffffff,u=e=>e?"":void 0,c=e=>e?"true":void 0,d=e=>s(e)&&1===e.nodeType&&"string"==typeof e.nodeName,f=e=>s(e)&&9===e.nodeType,h=e=>d(e)?e.localName||"":"#document",p=e=>(e=>s(e)&&void 0!==e.nodeType)(e)&&11===e.nodeType&&"host"in e,g=e=>!!e?.matches("a[href]"),v=/(textarea|select)/;function m(e){if(null==e||!d(e))return!1;try{return d(e)&&"input"===e.localName&&null!=e.selectionStart||v.test(e.localName)||e.isContentEditable||"true"===e.getAttribute("contenteditable")||""===e.getAttribute("contenteditable")}catch{return!1}}function b(e,t){if(!e||!t||!d(e)||!d(t))return!1;let n=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(n&&p(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function y(e){return f(e)?e:s(e)&&e===e.window?e.document:e?.ownerDocument??document}function x(e){return p(e)?x(e.host):f(e)?e.defaultView??window:d(e)?e.ownerDocument?.defaultView??window:window}function w(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var S=new WeakMap;function E(e){return S.has(e)||S.set(e,x(e).getComputedStyle(e)),S.get(e)}function k(e,t){let{type:n,quality:r=.92,background:i}=t;if(!e)throw Error("[zag-js > getDataUrl]: Could not find the svg element");let o=x(e),a=o.document,s=e.getBoundingClientRect(),l=e.cloneNode(!0);l.hasAttribute("viewBox")||l.setAttribute("viewBox",`0 0 ${s.width} ${s.height}`);let u="data:image/svg+xml;charset=utf-8,"+encodeURIComponent('<?xml version="1.0" standalone="no"?>\r\n'+new o.XMLSerializer().serializeToString(l));if("image/svg+xml"===n)return Promise.resolve(u).then(e=>(l.remove(),e));let c=o.devicePixelRatio||1,d=a.createElement("canvas"),f=new o.Image;f.src=u,d.width=s.width*c,d.height=s.height*c;let h=d.getContext("2d");return("image/jpeg"===n||i)&&(h.fillStyle=i||"white",h.fillRect(0,0,d.width,d.height)),new Promise(e=>{f.onload=()=>{h?.drawImage(f,0,0,d.width,d.height),e(d.toDataURL(n,r)),l.remove()}})}var C=e=>"undefined"!=typeof document&&e.test(function(){let e=navigator.userAgentData;return e?.platform??navigator.platform}()),O=e=>"undefined"!=typeof document&&e.test(function(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(" "):navigator.userAgent}()),I=()=>"undefined"!=typeof document&&!!navigator.maxTouchPoints,_=()=>C(/^iPhone/i)||C(/^iPad/i)||T()&&navigator.maxTouchPoints>1,T=()=>C(/^Mac/i),P=()=>{let e;return(T()||_())&&(e=/apple/i,"undefined"!=typeof document&&e.test(navigator.vendor))};function R(e){let t=e.composedPath?.()??e.nativeEvent?.composedPath?.();return t?.[0]??e.target}var A=e=>b(e.currentTarget,R(e));function N(e){var t;let n=e.currentTarget;if(!n||!n.matches("a[href], button[type='submit'], input[type='submit']"))return!1;let r=1===e.button,i=(t=e,T()?t.metaKey:t.ctrlKey);return r||i}function M(e){let t=e.currentTarget;if(!t)return!1;let n=t.localName;return!!e.altKey&&("a"===n||"button"===n&&"submit"===t.type||"input"===n&&"submit"===t.type)}function L(e){var t;return((t=e).nativeEvent??t).isComposing||229===e.keyCode}function V(e){return 1===e.key.length&&!e.ctrlKey&&!e.metaKey}function D(e){return 0===e.mozInputSource&&!!e.isTrusted||(O(/Android/i)&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}var F=e=>0===e.button,j=e=>2===e.button||T()&&e.ctrlKey&&0===e.button,z=e=>e.ctrlKey||e.altKey||e.metaKey,B={Up:"ArrowUp",Down:"ArrowDown",Esc:"Escape"," ":"Space",",":"Comma",Left:"ArrowLeft",Right:"ArrowRight"},U={ArrowLeft:"ArrowRight",ArrowRight:"ArrowLeft"};function W(e,t={}){let{dir:n="ltr",orientation:r="horizontal"}=t,i=e.key;return i=B[i]??i,"rtl"===n&&"horizontal"===r&&i in U&&(i=U[i]),i}function H(e,t="client"){let n="touches"in e&&e.touches.length>0?e.touches[0]||e.changedTouches[0]:e;return{x:n[`${t}X`],y:n[`${t}Y`]}}var q=(e,t,n,r)=>{let i="function"==typeof e?e():e;return i?.addEventListener(t,n,r),()=>{i?.removeEventListener(t,n,r)}};function $(e,t){let{type:n="HTMLInputElement",property:r="value"}=t;return Object.getOwnPropertyDescriptor(x(e)[n].prototype,r)??{}}function G(e,t,n="value"){if(!e)return;let r="input"===e.localName?"HTMLInputElement":"textarea"===e.localName?"HTMLTextAreaElement":"select"===e.localName?"HTMLSelectElement":void 0;if(r){let i=$(e,{type:r,property:n});i.set?.call(e,t)}e.setAttribute(n,t)}function K(e,t){if(!e)return;let n=$(e,{type:"HTMLInputElement",property:"checked"});n.set?.call(e,t),t?e.setAttribute("checked",""):e.removeAttribute("checked")}function Y(e,t){let{value:n,bubbles:r=!0}=t;if(!e)return;let i=x(e);e instanceof i.HTMLInputElement&&(G(e,`${n}`),e.dispatchEvent(new i.Event("input",{bubbles:r})))}function X(e,t){let{checked:n,bubbles:r=!0}=t;if(!e)return;let i=x(e);e instanceof i.HTMLInputElement&&(K(e,n),e.dispatchEvent(new i.Event("click",{bubbles:r})))}function Q(e,t){if(!e)return;let{onFieldsetDisabledChange:n,onFormReset:r}=t,i=[function(e,t){if(!e)return;let n=e.matches("textarea, input, select, button")?e.form:e.closest("form"),r=e=>{e.defaultPrevented||t()};return n?.addEventListener("reset",r,{passive:!0}),()=>n?.removeEventListener("reset",r)}(e,r),function(e,t){let n=e?.closest("fieldset");if(!n)return;t(n.disabled);let r=new(x(n)).MutationObserver(()=>t(n.disabled));return r.observe(n,{attributes:!0,attributeFilter:["disabled"]}),()=>r.disconnect()}(e,n)];return()=>i.forEach(e=>e?.())}var J=e=>d(e)&&"IFRAME"===e.tagName,Z="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type",ee=(e,t=!1)=>{if(!e)return[];let n=Array.from(e.querySelectorAll(Z));(!0==t||"if-empty"==t&&0===n.length)&&d(e)&&et(e)&&n.unshift(e);let r=n.filter(et);return r.forEach((e,t)=>{if(J(e)&&e.contentDocument){let n=e.contentDocument.body;r.splice(t,1,...ee(n))}}),r};function et(e){return!(!e||e.closest("[inert]"))&&e.matches(Z)&&!!d(e)&&(e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0)}function en(e,t){if(!e)return[];let n=Array.from(e.querySelectorAll(Z)),r=n.filter(er);return(t&&er(e)&&r.unshift(e),r.forEach((e,t)=>{if(J(e)&&e.contentDocument){let n=en(e.contentDocument.body);r.splice(t,1,...n)}}),!r.length&&t)?n:r}function er(e){return null!=e&&!!(e.tabIndex>0)||et(e)&&!(0>parseInt(e.getAttribute("tabindex")||"0",10))}function ei(e,t){let n=en(e,t);return[n[0]||null,n[n.length-1]||null]}function eo(e){return e.tabIndex<0&&(/^(audio|video|details)$/.test(e.localName)||m(e))&&Number.isNaN(parseInt(e.getAttribute("tabindex")||"0",10))?0:e.tabIndex}function ea(e){let{root:t,getInitialEl:n,filter:r,enabled:i=!0}=e;if(!i)return;let o=null;if((o="function"==typeof n?n():n)||(o=t?.querySelector("[data-autofocus],[autofocus]")),!o){let e=en(t);o=r?e.filter(r)[0]:e[0]}return o||t||void 0}function es(e){let t=e.currentTarget;if(!t)return!1;let[n,r]=ei(t),i=t.ownerDocument||document;return(i.activeElement!==n||!e.shiftKey)&&(i.activeElement!==r||!!e.shiftKey)&&(!!n||!!r)}function el(e){let t=new Set;function n(e){let n=globalThis.requestAnimationFrame(e);t.add(()=>globalThis.cancelAnimationFrame(n))}return n(()=>n(e)),function(){t.forEach(e=>e())}}function eu(e){let t,n=globalThis.requestAnimationFrame(()=>{t=e()});return()=>{globalThis.cancelAnimationFrame(n),t?.()}}function ec(e,t){let{defer:n}=t,r=[];return r.push((n?eu:e=>e())(()=>{let n="function"==typeof e?e():e;r.push(function(e,t){if(!e)return;let{attributes:n,callback:r}=t,i=new(e.ownerDocument.defaultView||window).MutationObserver(e=>{for(let t of e)"attributes"===t.type&&t.attributeName&&n.includes(t.attributeName)&&r(t)});return i.observe(e,{attributes:!0,attributeFilter:n}),()=>i.disconnect()}(n,t))})),()=>{r.forEach(e=>e?.())}}function ed(e,t){let{defer:n}=t,r=[];return r.push((n?eu:e=>e())(()=>{let n="function"==typeof e?e():e;r.push(function(e,t){let{callback:n}=t;if(!e)return;let r=new(e.ownerDocument.defaultView||window).MutationObserver(n);return r.observe(e,{childList:!0,subtree:!0}),()=>r.disconnect()}(n,t))})),()=>{r.forEach(e=>e?.())}}function ef(e){let t=()=>{let t=x(e);e.dispatchEvent(new t.MouseEvent("click"))};O(/Firefox/i)?function(e,t,n){let r=eu(()=>{e.removeEventListener(t,i,!0),n()}),i=()=>{r(),n()};e.addEventListener(t,i,{once:!0,capture:!0})}(e,"keyup",t):queueMicrotask(t)}function eh(e){let t=function(e){if("html"===h(e))return e;let t=e.assignedSlot||e.parentNode||p(e)&&e.host||y(e).documentElement;return p(t)?t.host:t}(e);return["html","body","#document"].includes(h(t))?y(t).body:d(t)&&ev(t)?t:eh(t)}var ep=/auto|scroll|overlay|hidden|clip/,eg=new Set(["inline","contents"]);function ev(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=x(e).getComputedStyle(e);return ep.test(t+r+n)&&!eg.has(i)}function em(e,t){let{rootEl:n,...r}=t||{};e&&n&&ev(n)&&(n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth)&&e.scrollIntoView(r)}function eb(e,t){let{left:n,top:r,width:o,height:a}=t.getBoundingClientRect(),s={x:e.x-n,y:e.y-r},l={x:i(s.x/o),y:i(s.y/a)};return{offset:s,percent:l,getPercentValue:function(e={}){let{dir:t="ltr",orientation:n="horizontal",inverted:r}=e,i="object"==typeof r?r.x:r,o="object"==typeof r?r.y:r;return"horizontal"===n?"rtl"===t||i?1-l.x:l.x:o?1-l.y:l.y}}}function ey(e,t){let n=e.body;if(!("pointerLockElement"in e||"mozPointerLockElement"in e))return;try{n.requestPointerLock()}catch{}let r=[q(e,"pointerlockchange",function(){t?.(!!e.pointerLockElement)},!1),q(e,"pointerlockerror",function(n){e.pointerLockElement&&t?.(!1),console.error("PointerLock error occurred:",n),e.exitPointerLock()},!1)];return()=>{r.forEach(e=>e()),e.exitPointerLock()}}var ex="default",ew="",eS=new WeakMap;function eE(e={}){let{defer:t,target:n,...r}=e,i=[];return i.push((t?eu:e=>e())(()=>{let e="function"==typeof n?n():n;i.push(function(e={}){let{target:t,doc:n}=e,r=n??document,i=r.documentElement;return _()?("default"===ex&&(ew=i.style.webkitUserSelect,i.style.webkitUserSelect="none"),ex="disabled"):t&&(eS.set(t,t.style.userSelect),t.style.userSelect="none"),()=>(function(e={}){let{target:t,doc:n}=e,r=(n??document).documentElement;if(_()){if("disabled"!==ex)return;ex="restoring",setTimeout(()=>{el(()=>{"restoring"===ex&&("none"===r.style.webkitUserSelect&&(r.style.webkitUserSelect=ew||""),ew="",ex="default")})},300)}else if(t&&eS.has(t)){let e=eS.get(t);"none"===t.style.userSelect&&(t.style.userSelect=e??""),""===t.getAttribute("style")&&t.removeAttribute("style"),eS.delete(t)}})({target:t,doc:r})}({...r,target:e}))})),()=>{i.forEach(e=>e?.())}}function ek(e,t){let{onPointerMove:n,onPointerUp:r}=t,i=[q(e,"pointermove",e=>{let t=H(e);if(!(Math.sqrt(t.x**2+t.y**2)<("touch"===e.pointerType?10:5))){if("mouse"===e.pointerType&&0===e.button)return void r();n({point:t,event:e})}},!1),q(e,"pointerup",r,!1),q(e,"pointercancel",r,!1),q(e,"contextmenu",r,!1),eE({doc:e})];return()=>{i.forEach(e=>e())}}function eC(e){let{pointerNode:t,keyboardNode:n=t,onPress:r,onPressStart:i,onPressEnd:s,isValidKey:l=e=>"Enter"===e.key}=e;if(!t)return a;let u=x(t),c=y(t),d=a,f=a,h=a,p=e=>({point:H(e),event:e});function g(e){s?.(p(e))}let v=q(t,"pointerdown",e=>{f(),f=o(q(u,"pointerup",e=>{b(t,R(e))?r?.(p(e)):s?.(p(e))},{passive:!r,once:!0}),q(u,"pointercancel",g,{passive:!s,once:!0})),c.activeElement===n&&"mouse"===e.pointerType&&e.preventDefault(),i?.(p(e))},{passive:!i});return d=o(v,q(n,"focus",function(){h=o(q(n,"keydown",e=>{var t;l(e)&&(f(),f=q(n,"keyup",e=>{if(!l(e))return;let t=p(new u.PointerEvent("pointerup"));r?.(t),s?.(t)}),t=new u.PointerEvent("pointerdown"),i?.(p(t)))}),q(n,"blur",()=>{g(new u.PointerEvent("pointercancel"))}))})),()=>{d(),f(),h()}}function eO(e,t){let{defer:n,triggerElement:r,...i}=t,o=[];return o.push((n?eu:e=>e())(()=>{let t="function"==typeof e?e():e,n="function"==typeof r?r():r;o.push(function(e,t={}){let{triggerElement:n,onFocus:r,onFocusEnter:i}=t,o=e?.ownerDocument||document,a=o.body;return q(o,"keydown",function(t){if("Tab"!==t.key)return;let s=null,[l,u]=ei(e,!0),c=function(e,t){let n=en(e),r=e?.ownerDocument||document,i=t??r.activeElement;if(!i)return null;let o=n.indexOf(i);return n[o+1]||null}(a,n),d=!l&&!u;t.shiftKey&&c===o.activeElement?(i?.(),s=u):t.shiftKey&&(o.activeElement===l||d)?s=n:t.shiftKey||o.activeElement!==n?!t.shiftKey&&(o.activeElement===u||d)&&(s=c):(i?.(),s=l),s&&(t.preventDefault(),"function"==typeof r?r(s):s.focus())},!0)}(t,{triggerElement:n,...i}))})),()=>{o.forEach(e=>e?.())}}function eI(e,t){return Array.from(e?.querySelectorAll(t)??[])}function e_(e,t){return e?.querySelector(t)??null}var eT=e=>e.id;function eP(e,t,n=eT){return e.find(e=>n(e)===t)}function eR(e,t,n=eT){let r=eP(e,t,n);return r?e.indexOf(r):-1}function eA(e,t,n=!0){let r=eR(e,t);return r=n?(r+1)%e.length:Math.min(r+1,e.length-1),e[r]}function eN(e,t,n=!0){let r=eR(e,t);return -1===r?n?e[e.length-1]:null:(r=n?(r-1+e.length)%e.length:Math.max(0,r-1),e[r])}function eM(e,t){let{onEntry:n,measure:r,box:i="border-box"}=t,o=(Array.isArray(e)?e:[e]).filter(d),a=x(o[0]),s=e=>{n({rects:o.map(e=>r(e)),entries:e})};s([]);let l=new a.ResizeObserver(s);return o.forEach(e=>l.observe(e,{box:i})),()=>l.disconnect()}function eL(e,t){if(!e)return a;let n=Object.keys(t).reduce((t,n)=>(t[n]=e.style.getPropertyValue(n),t),{});return Object.assign(e.style,t),()=>{Object.assign(e.style,n),0===e.style.length&&e.removeAttribute("style")}}function eV(e,t,n){if(!e)return a;let r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{e.style.setProperty(t,r),0===e.style.length&&e.removeAttribute("style")}}var eD=Object.assign(function(e,t){let{state:n,activeId:r,key:i,timeout:o=350,itemToId:a}=t,s=n.keysSoFar+i,l=s.length>1&&Array.from(s).every(e=>e===s[0])?s[0]:s,u=function(e,t,n,r=eT){let i=n?eR(e,n,r):-1,o=n?e.map((t,n)=>e[(Math.max(i,0)+n)%e.length]):e;return 1===t.length&&(o=o.filter(e=>r(e)!==n)),o.find(e=>{let n;return n=(e.dataset?.valuetext??e.textContent??"").split("").map(e=>{let t=e.charCodeAt(0);return t>0&&t<128?e:t>=128&&t<=255?`/x${t.toString(16)}`.replace("/","\\"):""}).join("").trim(),n.trim().toLowerCase().startsWith(t.toLowerCase())})}(e.slice(),l,r,a);function c(){clearTimeout(n.timer),n.timer=-1}return!function e(t){n.keysSoFar=t,c(),""!==t&&(n.timer=+setTimeout(()=>{e(""),c()},o))}(s),u},{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:function(e){return 1===e.key.length&&!e.ctrlKey&&!e.metaKey}}),eF={border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"};function ej(e,t){let{timeout:n,rootNode:r}=t,i=x(r),o=y(r),a=new i.AbortController;var s=new Promise(t=>{let n=e();if(n)return void t(n);let r=new i.MutationObserver(()=>{let n=e();n&&n.isConnected&&(r.disconnect(),t(n))});r.observe(o.body,{childList:!0,subtree:!0})});let{signal:l}=a;return[new Promise((e,t)=>{let r=setTimeout(()=>{t(Error(`Timeout of ${n}ms exceeded`))},n);l.addEventListener("abort",()=>{clearTimeout(r),t(Error("Promise aborted"))}),s.then(t=>{l.aborted||(clearTimeout(r),e(t))}).catch(e=>{l.aborted||(clearTimeout(r),t(e))})}),()=>a.abort()]}},6477:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});let r=(0,n(23769).B)("span")},6644:(e,t,n)=>{"use strict";n.d(t,{C1:()=>u,D3:()=>a,Sr:()=>o,US:()=>f,Yt:()=>l,id:()=>c,mo:()=>d,vK:()=>s});var r=n(9597),i=n(23769);let o=e=>(0,r.jsx)(i.B.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:(0,r.jsx)("path",{d:"M20 6 9 17l-5-5"})}),a=e=>(0,r.jsx)(i.B.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:(0,r.jsx)("path",{d:"m6 9 6 6 6-6"})}),s=e=>(0,r.jsx)(i.B.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:(0,r.jsx)("path",{d:"m9 18 6-6-6-6"})}),l=e=>(0,r.jsxs)(i.B.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[(0,r.jsx)("circle",{cx:"12",cy:"12",r:"1"}),(0,r.jsx)("circle",{cx:"19",cy:"12",r:"1"}),(0,r.jsx)("circle",{cx:"5",cy:"12",r:"1"})]}),u=e=>(0,r.jsx)(i.B.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11.0026 16L6.75999 11.7574L8.17421 10.3431L11.0026 13.1716L16.6595 7.51472L18.0737 8.92893L11.0026 16Z"})}),c=e=>(0,r.jsx)(i.B.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z"})}),d=e=>(0,r.jsx)(i.B.svg,{viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",...e,children:(0,r.jsx)("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z"})}),f=e=>(0,r.jsx)(i.B.svg,{viewBox:"0 0 24 24",fill:"currentColor",...e,children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711Z"})})},6863:(e,t,n)=>{var r=n(34862),i=n(91512);e.exports=function(e,t){return e&&r(t,i(t),e)}},7072:(e,t,n)=>{"use strict";n.d(t,{Aq:()=>p,MI:()=>l,Ng:()=>h});var r=n(61696),i=n(6280),o=n(20752),a=n(82136),s=n(77952),l=(0,r.y)("avatar").parts("root","image","fallback"),u=l.build(),c=e=>e.ids?.root??`avatar:${e.id}`,d=e=>e.ids?.image??`avatar:${e.id}:image`,f=e=>e.getById(d(e));function h(e,t){let{state:n,send:r,prop:i,scope:o}=e,a=n.matches("loaded");return{loaded:a,setSrc(e){let t=f(o);t?.setAttribute("src",e)},setLoaded(){r({type:"img.loaded",src:"api"})},setError(){r({type:"img.error",src:"api"})},getRootProps:()=>t.element({...u.root.attrs,dir:i("dir"),id:c(o)}),getImageProps:()=>t.img({...u.image.attrs,hidden:!a,dir:i("dir"),id:d(o),"data-state":a?"visible":"hidden",onLoad(){r({type:"img.loaded",src:"element"})},onError(){r({type:"img.error",src:"element"})}}),getFallbackProps:()=>t.element({...u.fallback.attrs,dir:i("dir"),id:o.ids?.fallback??`avatar:${o.id}:fallback`,hidden:a,"data-state":a?"hidden":"visible"})}}var p=(0,o.Op)({initialState:()=>"loading",effects:["trackImageRemoval","trackSrcChange"],on:{"src.change":{target:"loading"},"img.unmount":{target:"error"}},states:{loading:{entry:["checkImageStatus"],on:{"img.loaded":{target:"loaded",actions:["invokeOnLoad"]},"img.error":{target:"error",actions:["invokeOnError"]}}},error:{on:{"img.loaded":{target:"loaded",actions:["invokeOnLoad"]}}},loaded:{on:{"img.error":{target:"error",actions:["invokeOnError"]}}}},implementations:{actions:{invokeOnLoad({prop:e}){e("onStatusChange")?.({status:"loaded"})},invokeOnError({prop:e}){e("onStatusChange")?.({status:"error"})},checkImageStatus({send:e,scope:t}){let n=f(t);if(n?.complete){var r;e({type:(r=n).complete&&0!==r.naturalWidth&&0!==r.naturalHeight?"img.loaded":"img.error",src:"ssr"})}}},effects:{trackImageRemoval({send:e,scope:t}){let n=t.getById(c(t));return(0,i.Ge)(n,{callback(t){Array.from(t[0].removedNodes).find(e=>e.nodeType===Node.ELEMENT_NODE&&e.matches("[data-scope=avatar][data-part=image]"))&&e({type:"img.unmount"})}})},trackSrcChange({send:e,scope:t}){let n=f(t);return(0,i.mx)(n,{attributes:["src","srcset"],callback(){e({type:"src.change"})}})}}}}),g=(0,a.x)()(["dir","id","ids","onStatusChange","getRootNode"]);(0,s.PM)(g)},7120:(e,t,n)=>{var r=n(18979),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var l=1&n,u=r(e),c=u.length;if(c!=r(t).length&&!l)return!1;for(var d=c;d--;){var f=u[d];if(!(l?f in t:i.call(t,f)))return!1}var h=s.get(e),p=s.get(t);if(h&&p)return h==t&&p==e;var g=!0;s.set(e,t),s.set(t,e);for(var v=l;++d<c;){var m=e[f=u[d]],b=t[f];if(o)var y=l?o(b,m,f,t,e,s):o(m,b,f,e,t,s);if(!(void 0===y?m===b||a(m,b,n,o,s):y)){g=!1;break}v||(v="constructor"==f)}if(g&&!v){var x=e.constructor,w=t.constructor;x!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w)&&(g=!1)}return s.delete(e),s.delete(t),g}},7454:(e,t,n)=>{var r=n(87313),i=n(94398),o=n(83033),a=n(62408);e.exports=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:a},7577:(e,t,n)=>{var r=n(379);e.exports=function(e){try{r(e)}catch(e){if(e instanceof r.CycleException)return!1;throw e}return!0}},7658:(e,t,n)=>{"use strict";n.d(t,{u:()=>i,z:()=>r});let r=Object.freeze({}),i=Object.freeze({})},7685:(e,t,n)=>{"use strict";n.d(t,{MI:()=>v,Ng:()=>M,Aq:()=>F});var r=n(61696),i=n(20752),o=n(6280),a=n(54394),s=n(77952),l=n(73520),u=(e,t)=>({x:e,y:t}),{min:c,max:d}=Math,{sign:f,abs:h,min:p}=Math,g=n(82136),v=(0,r.y)("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem"),m=v.build(),b=e=>e.ids?.trigger??`menu:${e.id}:trigger`,y=e=>e.ids?.contextTrigger??`menu:${e.id}:ctx-trigger`,x=e=>e.ids?.content??`menu:${e.id}:content`,w=e=>e.ids?.positioner??`menu:${e.id}:popper`,S=(e,t)=>`${e.id}/${t}`,E=e=>e?.dataset.value??null,k=(e,t)=>e.ids?.groupLabel?.(t)??`menu:${e.id}:group-label:${t}`,C=e=>e.getById(x(e)),O=e=>e.getById(w(e)),I=e=>e.getById(b(e)),_=(e,t)=>t?e.getById(S(e,t)):null,T=e=>e.getById(y(e)),P=e=>{let t=CSS.escape(x(e)),n=`[role^="menuitem"][data-ownedby=${t}]:not([data-disabled])`;return(0,o.YG)(C(e),n)},R=(e,t)=>!!t&&(e.id===t||e.dataset.value===t),A=e=>(0,o.sb)(e)&&(""===e.dataset.disabled||e.hasAttribute("disabled")),N="menu:select";function M(e,t){let{context:n,send:r,state:l,computed:u,prop:c,scope:d}=e,f=l.hasTag("open"),h=u("isSubmenu"),p=u("isTypingAhead"),g=c("composite"),v=n.get("currentPlacement"),E=n.get("anchorPoint"),C=n.get("highlightedValue"),O=(0,a.aC)({...c("positioning"),placement:E?"bottom":v});function I(e){return{id:S(d,e.value),disabled:!!e.disabled,highlighted:C===e.value}}function T(e){let t=e.valueText??e.value;return{...e,id:e.value,valueText:t}}function P(e){return{...I(T(e)),checked:!!e.checked}}function R(n){let{closeOnSelect:i,valueText:a,value:s}=n,l=I(n),u=S(d,s);return t.element({...m.item.attrs,id:u,role:"menuitem","aria-disabled":(0,o.rq)(l.disabled),"data-disabled":(0,o.sE)(l.disabled),"data-ownedby":x(d),"data-highlighted":(0,o.sE)(l.highlighted),"data-value":s,"data-valuetext":a,onDragStart(e){e.currentTarget.matches("a[href]")&&e.preventDefault()},onPointerMove(e){if(l.disabled||"mouse"!==e.pointerType)return;let t=e.currentTarget;l.highlighted||r({type:"ITEM_POINTERMOVE",id:u,target:t,closeOnSelect:i})},onPointerLeave(t){!l.disabled&&"mouse"===t.pointerType&&e.event.previous()?.type.includes("POINTER")&&r({type:"ITEM_POINTERLEAVE",id:u,target:t.currentTarget,closeOnSelect:i})},onPointerDown(e){l.disabled||r({type:"ITEM_POINTERDOWN",target:e.currentTarget,id:u,closeOnSelect:i})},onClick(e){(0,o.b9)(e)||(0,o.$b)(e)||l.disabled||r({type:"ITEM_CLICK",target:e.currentTarget,id:u,closeOnSelect:i})}})}return{highlightedValue:C,open:f,setOpen(e){l.hasTag("open")!==e&&r({type:e?"OPEN":"CLOSE"})},setHighlightedValue(e){r({type:"HIGHLIGHTED.SET",value:e})},setParent(e){r({type:"PARENT.SET",value:e,id:e.prop("id")})},setChild(e){r({type:"CHILD.SET",value:e,id:e.prop("id")})},reposition(e={}){r({type:"POSITIONING.SET",options:e})},addItemListener(e){let t=d.getById(e.id);if(!t)return;let n=()=>e.onSelect?.();return t.addEventListener(N,n),()=>t.removeEventListener(N,n)},getContextTriggerProps:()=>t.element({...m.contextTrigger.attrs,dir:c("dir"),id:y(d),onPointerDown(e){"mouse"!==e.pointerType&&r({type:"CONTEXT_MENU_START",point:(0,o.TH)(e)})},onPointerCancel(e){"mouse"!==e.pointerType&&r({type:"CONTEXT_MENU_CANCEL"})},onPointerMove(e){"mouse"!==e.pointerType&&r({type:"CONTEXT_MENU_CANCEL"})},onPointerUp(e){"mouse"!==e.pointerType&&r({type:"CONTEXT_MENU_CANCEL"})},onContextMenu(e){r({type:"CONTEXT_MENU",point:(0,o.TH)(e)}),e.preventDefault()},style:{WebkitTouchCallout:"none",WebkitUserSelect:"none",userSelect:"none"}}),getTriggerItemProps(e){let t=e.getTriggerProps();return(0,i.v6)(R({value:t.id}),t)},getTriggerProps:()=>t.button({...h?m.triggerItem.attrs:m.trigger.attrs,"data-placement":n.get("currentPlacement"),type:"button",dir:c("dir"),id:b(d),"data-uid":c("id"),"aria-haspopup":g?"menu":"dialog","aria-controls":x(d),"aria-expanded":f||void 0,"data-state":f?"open":"closed",onPointerMove(e){if("mouse"!==e.pointerType||A(e.currentTarget)||!h)return;let t=(0,o.TH)(e);r({type:"TRIGGER_POINTERMOVE",target:e.currentTarget,point:t})},onPointerLeave(e){if(A(e.currentTarget)||"mouse"!==e.pointerType||!h)return;let t=(0,o.TH)(e);r({type:"TRIGGER_POINTERLEAVE",target:e.currentTarget,point:t})},onPointerDown(e){!A(e.currentTarget)&&((0,o.fv)(e)||e.preventDefault())},onClick(e){!e.defaultPrevented&&(A(e.currentTarget)||r({type:"TRIGGER_CLICK",target:e.currentTarget}))},onBlur(){r({type:"TRIGGER_BLUR"})},onFocus(){r({type:"TRIGGER_FOCUS"})},onKeyDown(e){if(e.defaultPrevented)return;let t={ArrowDown(){r({type:"ARROW_DOWN"})},ArrowUp(){r({type:"ARROW_UP"})},Enter(){r({type:"ARROW_DOWN",src:"enter"})},Space(){r({type:"ARROW_DOWN",src:"space"})}}[(0,o.K)(e,{orientation:"vertical",dir:c("dir")})];t&&(e.preventDefault(),t(e))}}),getIndicatorProps:()=>t.element({...m.indicator.attrs,dir:c("dir"),"data-state":f?"open":"closed"}),getPositionerProps:()=>t.element({...m.positioner.attrs,dir:c("dir"),id:w(d),style:O.floating}),getArrowProps:()=>t.element({id:d.ids?.arrow??`menu:${d.id}:arrow`,...m.arrow.attrs,dir:c("dir"),style:O.arrow}),getArrowTipProps:()=>t.element({...m.arrowTip.attrs,dir:c("dir"),style:O.arrowTip}),getContentProps:()=>t.element({...m.content.attrs,id:x(d),"aria-label":c("aria-label"),hidden:!f,"data-state":f?"open":"closed",role:g?"menu":"dialog",tabIndex:0,dir:c("dir"),"aria-activedescendant":u("highlightedId")||void 0,"aria-labelledby":b(d),"data-placement":v,onPointerEnter(e){"mouse"===e.pointerType&&r({type:"MENU_POINTERENTER"})},onKeyDown(e){if(e.defaultPrevented||!(0,o.uh)(e))return;let t=(0,o.wt)(e);if(t?.closest("[role=menu]")!==e.currentTarget&&t!==e.currentTarget)return;if("Tab"===e.key&&!(0,o.KY)(e))return void e.preventDefault();let n=_(d,C),i={ArrowDown(){r({type:"ARROW_DOWN"})},ArrowUp(){r({type:"ARROW_UP"})},ArrowLeft(){r({type:"ARROW_LEFT"})},ArrowRight(){r({type:"ARROW_RIGHT"})},Enter(){r({type:"ENTER"}),null!=C&&(0,o.IR)(n)&&c("navigate")?.({value:C,node:n,href:n.href})},Space(e){p?r({type:"TYPEAHEAD",key:e.key}):i.Enter?.(e)},Home(){r({type:"HOME"})},End(){r({type:"END"})}},a=i[(0,o.K)(e,{dir:c("dir")})];if(a){a(e),e.stopPropagation(),e.preventDefault();return}!(!c("typeahead")||!(0,o.TW)(e)||(0,o.VL)(e))&&((0,o.fg)(t)||(r({type:"TYPEAHEAD",key:e.key}),e.preventDefault()))}}),getSeparatorProps:()=>t.element({...m.separator.attrs,role:"separator",dir:c("dir"),"aria-orientation":"horizontal"}),getItemState:I,getItemProps:R,getOptionItemState:P,getOptionItemProps(e){let{type:n,disabled:i,onCheckedChange:a,closeOnSelect:s}=e,l=T(e),u=P(e);return{...R(l),...t.element({"data-type":n,...m.item.attrs,dir:c("dir"),"data-value":l.value,role:`menuitem${n}`,"aria-checked":!!u.checked,"data-state":u.checked?"checked":"unchecked",onClick(e){i||(0,o.b9)(e)||(0,o.$b)(e)||(r({type:"ITEM_CLICK",target:e.currentTarget,option:l,closeOnSelect:s}),a?.(!u.checked))}})}},getItemIndicatorProps(e){let n=P((0,s.wg)(e)),r=n.checked?"checked":"unchecked";return t.element({...m.itemIndicator.attrs,dir:c("dir"),"data-disabled":(0,o.sE)(n.disabled),"data-highlighted":(0,o.sE)(n.highlighted),"data-state":(0,s.cK)(e,"checked")?r:void 0,hidden:(0,s.cK)(e,"checked")?!n.checked:void 0})},getItemTextProps(e){let n=P((0,s.wg)(e)),r=n.checked?"checked":"unchecked";return t.element({...m.itemText.attrs,dir:c("dir"),"data-disabled":(0,o.sE)(n.disabled),"data-highlighted":(0,o.sE)(n.highlighted),"data-state":(0,s.cK)(e,"checked")?r:void 0})},getItemGroupLabelProps:e=>t.element({...m.itemGroupLabel.attrs,id:k(d,e.htmlFor),dir:c("dir")}),getItemGroupProps:e=>{let n;return t.element({id:(n=e.id,d.ids?.group?.(n)??`menu:${d.id}:group:${n}`),...m.itemGroup.attrs,dir:c("dir"),"aria-labelledby":k(d,e.id),role:"group"})}}}var{not:L,and:V,or:D}=(0,i.b6)(),F=(0,i.Op)({props:({props:e})=>({closeOnSelect:!0,typeahead:!0,composite:!0,loopFocus:!1,navigate(e){(0,o.Il)(e.node)},...e,positioning:{placement:"bottom-start",gutter:8,...e.positioning}}),initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"idle",context:({bindable:e,prop:t})=>({suspendPointer:e(()=>({defaultValue:!1})),highlightedValue:e(()=>({defaultValue:t("defaultHighlightedValue")||null,value:t("highlightedValue"),onChange(e){t("onHighlightChange")?.({highlightedValue:e})}})),lastHighlightedValue:e(()=>({defaultValue:null})),currentPlacement:e(()=>({defaultValue:void 0})),intentPolygon:e(()=>({defaultValue:null})),anchorPoint:e(()=>({defaultValue:null,hash:e=>`x: ${e?.x}, y: ${e?.y}`}))}),refs:()=>({parent:null,children:{},typeaheadState:{...o.tt.defaultOptions},positioningOverride:{}}),computed:{isSubmenu:({refs:e})=>null!=e.get("parent"),isRtl:({prop:e})=>"rtl"===e("dir"),isTypingAhead:({refs:e})=>""!==e.get("typeaheadState").keysSoFar,highlightedId:({context:e,scope:t,refs:n})=>(function(e,t,n){let r=Object.keys(e).length>0;if(!t)return null;if(!r)return S(n,t);for(let n in e){let r=b(e[n].scope);if(r===t)return r}return S(n,t)})(n.get("children"),e.get("highlightedValue"),t)},watch({track:e,action:t,context:n,computed:r,prop:i}){e([()=>r("isSubmenu")],()=>{t(["setSubmenuPlacement"])}),e([()=>n.hash("anchorPoint")],()=>{t(["reposition"])}),e([()=>i("open")],()=>{t(["toggleVisibility"])})},on:{"PARENT.SET":{actions:["setParentMenu"]},"CHILD.SET":{actions:["setChildMenu"]},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],OPEN_AUTOFOCUS:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["highlightFirstItem","invokeOnOpen"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"HIGHLIGHTED.RESTORE":{actions:["restoreHighlightedItem"]},"HIGHLIGHTED.SET":{actions:["setHighlightedItem"]}},states:{idle:{tags:["closed"],on:{"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed"},CONTEXT_MENU_START:{target:"opening:contextmenu",actions:["setAnchorPoint"]},CONTEXT_MENU:[{guard:"isOpenControlled",actions:["setAnchorPoint","invokeOnOpen"]},{target:"open",actions:["setAnchorPoint","invokeOnOpen"]}],TRIGGER_CLICK:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TRIGGER_FOCUS:{guard:L("isSubmenu"),target:"closed"},TRIGGER_POINTERMOVE:{guard:"isSubmenu",target:"opening"}}},"opening:contextmenu":{tags:["closed"],effects:["waitForLongPress"],on:{"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed"},CONTEXT_MENU_CANCEL:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"LONG_PRESS.OPEN":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}},opening:{tags:["closed"],effects:["waitForOpenDelay"],on:{"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed"},BLUR:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TRIGGER_POINTERLEAVE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"DELAY.OPEN":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}},closing:{tags:["open"],effects:["trackPointerMove","trackInteractOutside","waitForCloseDelay"],on:{"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed",actions:["focusParentMenu","restoreParentHighlightedItem"]},MENU_POINTERENTER:{target:"open",actions:["clearIntentPolygon"]},POINTER_MOVED_AWAY_FROM_SUBMENU:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["focusParentMenu","restoreParentHighlightedItem"]}],"DELAY.CLOSE":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["focusParentMenu","restoreParentHighlightedItem","invokeOnClose"]}]}},closed:{tags:["closed"],entry:["clearHighlightedItem","focusTrigger","resumePointer"],on:{"CONTROLLED.OPEN":[{guard:D("isOpenAutoFocusEvent","isArrowDownEvent"),target:"open",actions:["highlightFirstItem"]},{guard:"isArrowUpEvent",target:"open",actions:["highlightLastItem"]},{target:"open"}],CONTEXT_MENU_START:{target:"opening:contextmenu",actions:["setAnchorPoint"]},CONTEXT_MENU:[{guard:"isOpenControlled",actions:["setAnchorPoint","invokeOnOpen"]},{target:"open",actions:["setAnchorPoint","invokeOnOpen"]}],TRIGGER_CLICK:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TRIGGER_POINTERMOVE:{guard:"isTriggerItem",target:"opening"},TRIGGER_BLUR:{target:"idle"},ARROW_DOWN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["highlightFirstItem","invokeOnOpen"]}],ARROW_UP:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["highlightLastItem","invokeOnOpen"]}]}},open:{tags:["open"],effects:["trackInteractOutside","trackPositioning","scrollToHighlightedItem"],entry:["focusMenu","resumePointer"],on:{"CONTROLLED.CLOSE":[{target:"closed",guard:"isArrowLeftEvent",actions:["focusParentMenu"]},{target:"closed"}],TRIGGER_CLICK:[{guard:V(L("isTriggerItem"),"isOpenControlled"),actions:["invokeOnClose"]},{guard:L("isTriggerItem"),target:"closed",actions:["invokeOnClose"]}],CONTEXT_MENU:{actions:["setAnchorPoint","focusMenu"]},ARROW_UP:{actions:["highlightPrevItem","focusMenu"]},ARROW_DOWN:{actions:["highlightNextItem","focusMenu"]},ARROW_LEFT:[{guard:V("isSubmenu","isOpenControlled"),actions:["invokeOnClose"]},{guard:"isSubmenu",target:"closed",actions:["focusParentMenu","invokeOnClose"]}],HOME:{actions:["highlightFirstItem","focusMenu"]},END:{actions:["highlightLastItem","focusMenu"]},ARROW_RIGHT:{guard:"isTriggerItemHighlighted",actions:["openSubmenu"]},ENTER:[{guard:"isTriggerItemHighlighted",actions:["openSubmenu"]},{actions:["clickHighlightedItem"]}],ITEM_POINTERMOVE:[{guard:L("isPointerSuspended"),actions:["setHighlightedItem","focusMenu"]},{actions:["setLastHighlightedItem"]}],ITEM_POINTERLEAVE:{guard:V(L("isPointerSuspended"),L("isTriggerItem")),actions:["clearHighlightedItem"]},ITEM_CLICK:[{guard:V(L("isTriggerItemHighlighted"),L("isHighlightedItemEditable"),"closeOnSelect","isOpenControlled"),actions:["invokeOnSelect","setOptionState","closeRootMenu","invokeOnClose"]},{guard:V(L("isTriggerItemHighlighted"),L("isHighlightedItemEditable"),"closeOnSelect"),target:"closed",actions:["invokeOnSelect","setOptionState","closeRootMenu","invokeOnClose"]},{guard:V(L("isTriggerItemHighlighted"),L("isHighlightedItemEditable")),actions:["invokeOnSelect","setOptionState"]},{actions:["setHighlightedItem"]}],TRIGGER_POINTERMOVE:{guard:"isTriggerItem",actions:["setIntentPolygon"]},TRIGGER_POINTERLEAVE:{target:"closing"},ITEM_POINTERDOWN:{actions:["setHighlightedItem"]},TYPEAHEAD:{actions:["highlightMatchedItem"]},FOCUS_MENU:{actions:["focusMenu"]},"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{closeOnSelect:({prop:e,event:t})=>!!(t?.closeOnSelect??e("closeOnSelect")),isTriggerItem:({event:e})=>(e=>!!e?.getAttribute("role")?.startsWith("menuitem")&&!!e?.hasAttribute("aria-controls"))(e.target),isTriggerItemHighlighted:({event:e,scope:t,computed:n})=>{let r=e.target??t.getById(n("highlightedId"));return!!r?.hasAttribute("aria-controls")},isSubmenu:({computed:e})=>e("isSubmenu"),isPointerSuspended:({context:e})=>e.get("suspendPointer"),isHighlightedItemEditable:({scope:e,computed:t})=>(0,o.fg)(e.getById(t("highlightedId"))),isOpenControlled:({prop:e})=>void 0!==e("open"),isArrowLeftEvent:({event:e})=>e.previousEvent?.type==="ARROW_LEFT",isArrowUpEvent:({event:e})=>e.previousEvent?.type==="ARROW_UP",isArrowDownEvent:({event:e})=>e.previousEvent?.type==="ARROW_DOWN",isOpenAutoFocusEvent:({event:e})=>e.previousEvent?.type==="OPEN_AUTOFOCUS"},effects:{waitForOpenDelay({send:e}){let t=setTimeout(()=>{e({type:"DELAY.OPEN"})},100);return()=>clearTimeout(t)},waitForCloseDelay({send:e}){let t=setTimeout(()=>{e({type:"DELAY.CLOSE"})},300);return()=>clearTimeout(t)},waitForLongPress({send:e}){let t=setTimeout(()=>{e({type:"LONG_PRESS.OPEN"})},700);return()=>clearTimeout(t)},trackPositioning({context:e,prop:t,scope:n,refs:r}){if(T(n))return;let i={...t("positioning"),...r.get("positioningOverride")};return e.set("currentPlacement",i.placement),(0,a.Ox)(I(n),()=>O(n),{...i,defer:!0,onComplete(t){e.set("currentPlacement",t.placement)}})},trackInteractOutside({refs:e,scope:t,prop:n,computed:r,send:i}){let a=!0;return(0,l.u)(()=>C(t),{defer:!0,exclude:[I(t)],onInteractOutside:n("onInteractOutside"),onFocusOutside(e){n("onFocusOutside")?.(e);let r=(0,o.wt)(e.detail.originalEvent);if((0,o.gR)(T(t),r))return void e.preventDefault()},onEscapeKeyDown(t){n("onEscapeKeyDown")?.(t),r("isSubmenu")&&t.preventDefault(),j({parent:e.get("parent")})},onPointerDownOutside(e){n("onPointerDownOutside")?.(e);let r=(0,o.wt)(e.detail.originalEvent);if((0,o.gR)(T(t),r)&&e.detail.contextmenu)return void e.preventDefault();a=!e.detail.focusable},onDismiss(){i({type:"CLOSE",src:"interact-outside",restoreFocus:a})}})},trackPointerMove({context:e,scope:t,send:n,refs:r,flush:i}){let a=r.get("parent");i(()=>{a.context.set("suspendPointer",!0)});let s=t.getDoc();return(0,o.kn)(s,"pointermove",t=>{var r,i;r=e.get("intentPolygon"),i={x:t.clientX,y:t.clientY},r&&function(e,t){let{x:n,y:r}=t,i=!1;for(let t=0,o=e.length-1;t<e.length;o=t++){let a=e[t].x,s=e[t].y,l=e[o].x,u=e[o].y;s>r!=u>r&&n<(l-a)*(r-s)/(u-s)+a&&(i=!i)}return i}(r,i)||(n({type:"POINTER_MOVED_AWAY_FROM_SUBMENU"}),a.context.set("suspendPointer",!1))})},scrollToHighlightedItem({event:e,scope:t,computed:n}){let r=()=>{if(e.type.startsWith("ITEM_POINTER"))return;let r=t.getById(n("highlightedId")),i=C(t);(0,o.Rt)(r,{rootEl:i,block:"nearest"})};return(0,o.er)(()=>r()),(0,o.mx)(()=>C(t),{defer:!0,attributes:["aria-activedescendant"],callback:r})}},actions:{setAnchorPoint({context:e,event:t}){e.set("anchorPoint",e=>(0,s.n4)(e,t.point)?e:t.point)},setSubmenuPlacement({computed:e,refs:t}){if(!e("isSubmenu"))return;let n=e("isRtl")?"left-start":"right-start";t.set("positioningOverride",{placement:n,gutter:0})},reposition({context:e,scope:t,prop:n,event:r,refs:i}){let o=e.get("anchorPoint"),s={...n("positioning"),...i.get("positioningOverride")};(0,a.Ox)(I(t),()=>O(t),{...s,defer:!0,getAnchorRect:o?()=>({width:0,height:0,...o}):void 0,...r.options??{},listeners:!1,onComplete(t){e.set("currentPlacement",t.placement)}})},setOptionState({event:e}){if(!e.option)return;let{checked:t,onCheckedChange:n,type:r}=e.option;"radio"===r?n?.(!0):"checkbox"===r&&n?.(!t)},clickHighlightedItem({scope:e,computed:t}){let n=e.getById(t("highlightedId"));n&&!n.dataset.disabled&&queueMicrotask(()=>n.click())},setIntentPolygon({context:e,scope:t,event:n}){let r=C(t),i=e.get("currentPlacement");if(!r||!i)return;let o=function(e,t){let{top:n,right:r,left:i,bottom:o}=function(e){let t=u(e.minX,e.minY),n=u(e.maxX,e.minY);return{top:t,right:n,bottom:u(e.maxX,e.maxY),left:u(e.minX,e.maxY)}}(function(e){let{x:t,y:n,width:r,height:i}=e,o=t+r/2,a=n+i/2;return{x:t,y:n,width:r,height:i,minX:t,minY:n,maxX:t+r,maxY:n+i,midX:o,midY:a,center:u(o,a)}}(e)),[a]=t.split("-");return({top:[i,n,r,o],right:[n,r,o,i],bottom:[n,i,o,r],left:[r,n,i,o]})[a]}(r.getBoundingClientRect(),i);if(!o)return;let s="right"===(0,a.bf)(i);e.set("intentPolygon",[{...n.point,x:n.point.x+(s?-5:5)},...o])},clearIntentPolygon({context:e}){e.set("intentPolygon",null)},resumePointer({refs:e,flush:t}){let n=e.get("parent");n&&t(()=>{n.context.set("suspendPointer",!1)})},setHighlightedItem({context:e,event:t}){let n=t.value||E(t.target);e.set("highlightedValue",n)},clearHighlightedItem({context:e}){e.set("highlightedValue",null)},focusMenu({scope:e}){(0,o.er)(()=>{let t=C(e),n=(0,o.RD)({root:t,enabled:!(0,o.gR)(t,e.getActiveElement()),filter:e=>!e.role?.startsWith("menuitem")});n?.focus({preventScroll:!0})})},highlightFirstItem({context:e,scope:t}){(C(t)?queueMicrotask:o.er)(()=>{let n=(0,s.$1)(P(t));n&&e.set("highlightedValue",E(n))})},highlightLastItem({context:e,scope:t}){(C(t)?queueMicrotask:o.er)(()=>{let n=(0,s.HV)(P(t));n&&e.set("highlightedValue",E(n))})},highlightNextItem({context:e,scope:t,event:n,prop:r}){let i=((e,t)=>{let n=P(e),r=n.findIndex(e=>R(e,t.value));return(0,s.K2)(n,r,{loop:t.loop??t.loopFocus})})(t,{loop:n.loop,value:e.get("highlightedValue"),loopFocus:r("loopFocus")});e.set("highlightedValue",E(i))},highlightPrevItem({context:e,scope:t,event:n,prop:r}){let i=((e,t)=>{let n=P(e),r=n.findIndex(e=>R(e,t.value));return(0,s.YL)(n,r,{loop:t.loop??t.loopFocus})})(t,{loop:n.loop,value:e.get("highlightedValue"),loopFocus:r("loopFocus")});e.set("highlightedValue",E(i))},invokeOnSelect({context:e,prop:t,scope:n}){let r=e.get("highlightedValue");null!=r&&(!function(e,t){if(!e)return;let n=new((0,o.zk)(e)).CustomEvent(N,{detail:{value:t}});e.dispatchEvent(n)}(_(n,r),r),t("onSelect")?.({value:r}))},focusTrigger({scope:e,context:t,event:n,computed:r}){r("isSubmenu")||t.get("anchorPoint")||!1===n.restoreFocus||queueMicrotask(()=>I(e)?.focus({preventScroll:!0}))},highlightMatchedItem({scope:e,context:t,event:n,refs:r}){let i=((e,t)=>{let n=P(e),r=n.find(e=>R(e,t.value));return(0,o.tt)(n,{state:t.typeaheadState,key:t.key,activeId:r?.id??null})})(e,{key:n.key,value:t.get("highlightedValue"),typeaheadState:r.get("typeaheadState")});i&&t.set("highlightedValue",E(i))},setParentMenu({refs:e,event:t}){e.set("parent",t.value)},setChildMenu({refs:e,event:t}){let n=e.get("children");n[t.id]=t.value,e.set("children",n)},closeRootMenu({refs:e}){j({parent:e.get("parent")})},openSubmenu({refs:e,scope:t,computed:n}){let r=t.getById(n("highlightedId")),i=r?.getAttribute("data-uid"),o=e.get("children"),a=i?o[i]:null;a?.send({type:"OPEN_AUTOFOCUS"})},focusParentMenu({refs:e}){e.get("parent")?.send({type:"FOCUS_MENU"})},setLastHighlightedItem({context:e,event:t}){e.set("lastHighlightedValue",E(t.target))},restoreHighlightedItem({context:e}){e.get("lastHighlightedValue")&&(e.set("highlightedValue",e.get("lastHighlightedValue")),e.set("lastHighlightedValue",null))},restoreParentHighlightedItem({refs:e}){e.get("parent")?.send({type:"HIGHLIGHTED.RESTORE"})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},toggleVisibility({prop:e,event:t,send:n}){n({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:t})}}}});function j(e){let t=e.parent;for(;t&&t.computed("isSubmenu");)t=t.refs.get("parent");t?.send({type:"CLOSE"})}var z=(0,g.x)()(["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","dir","getRootNode","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","open","positioning","typeahead"]);(0,s.PM)(z);var B=(0,g.x)()(["closeOnSelect","disabled","value","valueText"]);(0,s.PM)(B);var U=(0,g.x)()(["htmlFor"]);(0,s.PM)(U);var W=(0,g.x)()(["id"]);(0,s.PM)(W);var H=(0,g.x)()(["checked","closeOnSelect","disabled","onCheckedChange","type","value","valueText"]);(0,s.PM)(H)},7759:(e,t,n)=>{"use strict";n.d(t,{c:()=>i,j:()=>r});let[r,i]=(0,n(42347).q)({name:"PresenceContext",hookName:"usePresenceContext",providerName:"<PresenceProvider />"})},7805:(e,t,n)=>{var r=n(26291),i=n(79719),o=n(27404),a=n(12984);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},8269:(e,t,n)=>{"use strict";n.d(t,{K:()=>a});var r=n(9597),i=n(80905),o=n(68667);let a=(0,i.forwardRef)(function(e,t){return(0,r.jsx)(o.$,{px:"0",py:"0",_icon:{fontSize:"1.2em"},ref:t,...e})})},8788:(e,t,n)=>{var r=n(79123),i=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},8789:(e,t,n)=>{"use strict";n.d(t,{F0:()=>d,pe:()=>i});let{Axios:r,AxiosError:i,CanceledError:o,isCancel:a,CancelToken:s,VERSION:l,all:u,Cancel:c,isAxiosError:d,spread:f,toFormData:h,AxiosHeaders:p,HttpStatusCode:g,formToJSON:v,getAdapter:m,mergeConfig:b}=n(95914).A},9348:(e,t,n)=>{var r=n(59480),i=n(94599),o=n(36150);e.exports=r&&1/o(new r([,-0]))[1]==1/0?function(e){return new r(e)}:i},9371:e=>{var t=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},9598:(e,t,n)=>{e.exports=n(83199)(n(53252),"Map")},10145:(e,t,n)=>{var r=n(63780),i=n(621).Graph;e.exports=function(e,t,n){var o=function(e){for(var t;e.hasNode(t=r.uniqueId("_root")););return t}(e),a=new i({compound:!0}).setGraph({root:o}).setDefaultNodeLabel(function(t){return e.node(t)});return r.forEach(e.nodes(),function(i){var s=e.node(i),l=e.parent(i);(s.rank===t||s.minRank<=t&&t<=s.maxRank)&&(a.setNode(i),a.setParent(i,l||o),r.forEach(e[n](i),function(t){var n=t.v===i?t.w:t.v,o=a.edge(n,i),s=r.isUndefined(o)?0:o.weight;a.setEdge(n,i,{weight:e.edge(t).weight+s})}),r.has(s,"minRank")&&a.setNode(i,{borderLeft:s.borderLeft[t],borderRight:s.borderRight[t]}))}),a}},10233:(e,t,n)=>{var r=n(94427);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},10281:(e,t,n)=>{var r=n(19978);e.exports=function(e,t,n){var r,o,a,s,l;return r=e,o=t||i,a=n||function(t){return e.outEdges(t)},s={},(l=r.nodes()).forEach(function(e){s[e]={},s[e][e]={distance:0},l.forEach(function(t){e!==t&&(s[e][t]={distance:1/0})}),a(e).forEach(function(t){var n=t.v===e?t.w:t.v,r=o(t);s[e][n]={distance:r,predecessor:e}})}),l.forEach(function(e){var t=s[e];l.forEach(function(n){var r=s[n];l.forEach(function(n){var i=r[e],o=t[n],a=r[n],s=i.distance+o.distance;s<a.distance&&(a.distance=s,a.predecessor=o.predecessor)})})}),s};var i=r.constant(1)},10521:(e,t,n)=>{var r=n(20088),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},10594:(e,t,n)=>{var r=n(80111);e.exports=function(e,t){return r(e,t,"post")}},11046:(e,t,n)=>{"use strict";n.d(t,{T:()=>a});var r=n(9597),i=n(80905),o=n(94372);let a=(0,i.forwardRef)(function(e,t){return(0,r.jsx)(o.B,{align:"center",...e,direction:"column",ref:t})})},11568:(e,t,n)=>{e.exports={components:n(3856),dijkstra:n(4542),dijkstraAll:n(38980),findCycles:n(80157),floydWarshall:n(10281),isAcyclic:n(7577),postorder:n(10594),preorder:n(60063),prim:n(52432),tarjan:n(55740),topsort:n(379)}},11830:(e,t,n)=>{"use strict";n.d(t,{wp:()=>P,dh:()=>T,XO:()=>_});var r=n(9597),i=n(20752),o=n(80905),a=n(99648),s=n(90167),l=n(52718),u=n(6280),c=n(63283);let d="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,[f,h]=(0,n(42347).q)({name:"FieldsetContext",hookName:"useFieldsetContext",providerName:"<FieldsetProvider />",strict:!1});var p=n(35656);let g=function(){var e,t,n,r,i;let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=h(),l=(0,c.w)(),{ids:f,disabled:g=!!(null==s?void 0:s.disabled),invalid:v=!1,readOnly:m=!1,required:b=!1}=a,[y,x]=(0,o.useState)(!1),[w,S]=(0,o.useState)(!1),E=(0,o.useId)(),k=null!=(e=a.id)?e:E,C=(0,o.useRef)(null),O=null!=(t=null==f?void 0:f.control)?t:"field::".concat(k),I=null!=(n=null==f?void 0:f.errorText)?n:"field::".concat(k,"::error-text"),_=null!=(r=null==f?void 0:f.helperText)?r:"field::".concat(k,"::helper-text"),T=null!=(i=null==f?void 0:f.label)?i:"field::".concat(k,"::label");d(()=>{let e=C.current;if(!e)return;let t=()=>{let e=l.getRootNode();x(!!e.getElementById(I)),S(!!e.getElementById(_))};t();let n=new(l.getWindow()).MutationObserver(t);return n.observe(e,{childList:!0,subtree:!0}),()=>n.disconnect()},[l,I,_]);let P=(0,o.useMemo)(()=>{let e=[];return y&&v&&e.push(I),w&&e.push(_),e.join(" ")||void 0},[v,I,_,y,w]),R=(0,o.useMemo)(()=>()=>({...p.r.root.attrs,id:O,ref:C,role:"group","data-disabled":(0,u.sE)(g),"data-invalid":(0,u.sE)(v),"data-readonly":(0,u.sE)(m)}),[g,v,m,O]),A=(0,o.useMemo)(()=>()=>({...p.r.label.attrs,id:T,"data-disabled":(0,u.sE)(g),"data-invalid":(0,u.sE)(v),"data-readonly":(0,u.sE)(m),htmlFor:k}),[g,v,m,k,T]),N=(0,o.useMemo)(()=>()=>({"aria-describedby":P,"aria-invalid":(0,u.rq)(v),"data-invalid":(0,u.sE)(v),"data-required":(0,u.sE)(b),"data-readonly":(0,u.sE)(m),id:k,required:b,disabled:g,readOnly:m}),[P,v,b,m,k,g]),M=(0,o.useMemo)(()=>()=>({...N(),...p.r.input.attrs}),[N]),L=(0,o.useMemo)(()=>()=>({...N(),...p.r.textarea.attrs}),[N]),V=(0,o.useMemo)(()=>()=>({...N(),...p.r.select.attrs}),[N]),D=(0,o.useMemo)(()=>()=>({id:_,...p.r.helperText.attrs,"data-disabled":(0,u.sE)(g)}),[g,_]),F=(0,o.useMemo)(()=>()=>({id:I,...p.r.errorText.attrs,"aria-live":"polite"}),[I]);return{ariaDescribedby:P,ids:{root:O,control:k,label:T,errorText:I,helperText:_},refs:{rootRef:C},disabled:g,invalid:v,readOnly:m,required:b,getLabelProps:A,getRootProps:R,getInputProps:M,getTextareaProps:L,getSelectProps:V,getHelperTextProps:D,getErrorTextProps:F,getRequiredIndicatorProps:(0,o.useMemo)(()=>()=>({"aria-hidden":!0,...p.r.requiredIndicator.attrs}),[])}};var v=n(68127);let m=(0,o.forwardRef)((e,t)=>{let[n,o]=(0,s.P)()(e,["id","ids","disabled","invalid","readOnly","required"]),u=g(n),c=(0,i.v6)(u.getRootProps(),o);return(0,r.jsx)(v.S,{value:u,children:(0,r.jsx)(l.X.div,{...c,ref:(0,a.t)(t,u.refs.rootRef)})})});m.displayName="FieldRoot";let b=(0,o.forwardRef)((e,t)=>{let n=(0,v.f)(),o=(0,i.v6)(null==n?void 0:n.getLabelProps(),e);return(0,r.jsx)(l.X.label,{...o,ref:t})});b.displayName="FieldLabel";let y=(0,o.forwardRef)((e,t)=>{let n=(0,v.f)(),o=(0,i.v6)(null==n?void 0:n.getHelperTextProps(),e);return(0,r.jsx)(l.X.span,{...o,ref:t})});y.displayName="FieldHelperText";let x=(0,o.forwardRef)((e,t)=>{let n=(0,v.f)(),o=(0,i.v6)(n.getErrorTextProps(),e);return(null==n?void 0:n.invalid)?(0,r.jsx)(l.X.span,{...o,ref:t}):null});x.displayName="FieldErrorText";var w=n(25651),S=n(94241);let{withProvider:E,withContext:k,useStyles:C,useClassNames:O,PropsProvider:I}=(0,w.c)({key:"field"}),_=E(m,"root",{forwardAsChild:!0}),T=k(b,"label",{forwardAsChild:!0});k(y,"helperText",{forwardAsChild:!0});let P=k(x,"errorText",{forwardAsChild:!0});!function(e){let{viewBox:t="0 0 24 24",d:n,displayName:i,defaultProps:a={}}=e,s=o.Children.toArray(e.path);(0,o.forwardRef)((e,i)=>(0,r.jsx)(S.I,{ref:i,asChild:!1,viewBox:t,...a,...e,children:s.length?s:(0,r.jsx)("path",{fill:"currentColor",d:n})})).displayName=i}({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})},11865:(e,t,n)=>{var r=n(24672),i=n(27745),o=n(40096),a=n(27404),s=n(94398),l=n(12984),u=n(81657),c=n(62155),d=n(97348),f=n(4438);e.exports=function(e,t,n){var h=l(e),p=h||u(e)||f(e);if(t=a(t,4),null==n){var g=e&&e.constructor;n=p?h?new g:[]:d(e)&&c(g)?i(s(e)):{}}return(p?r:o)(e,function(e,r,i){return t(n,e,r,i)}),n}},11946:(e,t,n)=>{"use strict";n.d(t,{A:()=>H});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t));var t,n=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(n);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else n.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),i=Math.abs,o=String.fromCharCode,a=Object.assign;function s(e,t,n){return e.replace(t,n)}function l(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function c(e,t,n){return e.slice(t,n)}function d(e){return e.length}function f(e,t){return t.push(e),e}var h=1,p=1,g=0,v=0,m=0,b="";function y(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:h,column:p,length:a,return:""}}function x(e,t){return a(y("",null,null,"",null,null,0),e,{length:-e.length},t)}function w(){return m=v<g?u(b,v++):0,p++,10===m&&(p=1,h++),m}function S(){return u(b,v)}function E(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function k(e){return h=p=1,g=d(b=e),v=0,[]}function C(e){var t,n;return(t=v-1,n=function e(t){for(;w();)switch(m){case t:return v;case 34:case 39:34!==t&&39!==t&&e(m);break;case 40:41===t&&e(t);break;case 92:w()}return v}(91===e?e+2:40===e?e+1:e),c(b,t,n)).trim()}var O="-ms-",I="-moz-",_="-webkit-",T="comm",P="rule",R="decl",A="@keyframes";function N(e,t){for(var n="",r=e.length,i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function M(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case R:return e.return=e.return||e.value;case T:return"";case A:return e.return=e.value+"{"+N(e.children,r)+"}";case P:e.value=e.props.join(",")}return d(n=N(e.children,r))?e.return=e.value+"{"+n+"}":""}function L(e,t,n,r,o,a,l,u,d,f,h){for(var p=o-1,g=0===o?a:[""],v=g.length,m=0,b=0,x=0;m<r;++m)for(var w=0,S=c(e,p+1,p=i(b=l[m])),E=e;w<v;++w)(E=(b>0?g[w]+" "+S:s(S,/&\f/g,g[w])).trim())&&(d[x++]=E);return y(e,t,n,0===o?P:u,d,f,h)}function V(e,t,n,r){return y(e,t,n,R,c(e,0,r),c(e,r+1,-1),r)}var D=function(e,t,n){for(var r=0,i=0;r=i,i=S(),38===r&&12===i&&(t[n]=1),!E(i);)w();return c(b,e,v)},F=function(e,t){var n=-1,r=44;do switch(E(r)){case 0:38===r&&12===S()&&(t[n]=1),e[n]+=D(v-1,t,n);break;case 2:e[n]+=C(r);break;case 4:if(44===r){e[++n]=58===S()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=o(r)}while(r=w());return e},j=function(e,t){var n;return n=F(k(e),t),b="",n},z=new WeakMap,B=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||z.get(n))&&!r){z.set(e,!0);for(var i=[],o=j(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[u]):a[u]+" "+o[s]}}},U=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},W=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case R:e.return=function e(t,n){switch(45^u(t,0)?(((n<<2^u(t,0))<<2^u(t,1))<<2^u(t,2))<<2^u(t,3):0){case 5103:return _+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return _+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return _+t+I+t+O+t+t;case 6828:case 4268:return _+t+O+t+t;case 6165:return _+t+O+"flex-"+t+t;case 5187:return _+t+s(t,/(\w+).+(:[^]+)/,_+"box-$1$2"+O+"flex-$1$2")+t;case 5443:return _+t+O+"flex-item-"+s(t,/flex-|-self/,"")+t;case 4675:return _+t+O+"flex-line-pack"+s(t,/align-content|flex-|-self/,"")+t;case 5548:return _+t+O+s(t,"shrink","negative")+t;case 5292:return _+t+O+s(t,"basis","preferred-size")+t;case 6060:return _+"box-"+s(t,"-grow","")+_+t+O+s(t,"grow","positive")+t;case 4554:return _+s(t,/([^-])(transform)/g,"$1"+_+"$2")+t;case 6187:return s(s(s(t,/(zoom-|grab)/,_+"$1"),/(image-set)/,_+"$1"),t,"")+t;case 5495:case 3959:return s(t,/(image-set\([^]*)/,_+"$1$`$1");case 4968:return s(s(t,/(.+:)(flex-)?(.*)/,_+"box-pack:$3"+O+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+_+t+t;case 4095:case 3583:case 4068:case 2532:return s(t,/(.+)-inline(.+)/,_+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(d(t)-1-n>6)switch(u(t,n+1)){case 109:if(45!==u(t,n+4))break;case 102:return s(t,/(.+:)(.+)-([^]+)/,"$1"+_+"$2-$3$1"+I+(108==u(t,n+3)?"$3":"$2-$3"))+t;case 115:return~l(t,"stretch")?e(s(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==u(t,n+1))break;case 6444:switch(u(t,d(t)-3-(~l(t,"!important")&&10))){case 107:return s(t,":",":"+_)+t;case 101:return s(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+_+(45===u(t,14)?"inline-":"")+"box$3$1"+_+"$2$3$1"+O+"$2box$3")+t}break;case 5936:switch(u(t,n+11)){case 114:return _+t+O+s(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return _+t+O+s(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return _+t+O+s(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return _+t+O+t+t}return t}(e.value,e.length);break;case A:return N([x(e,{value:s(e.value,"@","@"+_)})],r);case P:if(e.length){var i,o;return i=e.props,o=function(t){var n;switch(n=t,(n=/(::plac\w+|:read-\w+)/.exec(n))?n[0]:n){case":read-only":case":read-write":return N([x(e,{props:[s(t,/:(read-\w+)/,":"+I+"$1")]})],r);case"::placeholder":return N([x(e,{props:[s(t,/:(plac\w+)/,":"+_+"input-$1")]}),x(e,{props:[s(t,/:(plac\w+)/,":"+I+"$1")]}),x(e,{props:[s(t,/:(plac\w+)/,O+"input-$1")]})],r)}return""},i.map(o).join("")}}}],H=function(e){var t,n,i,a,g,x=e.key;if("css"===x){var O=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(O,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var I=e.stylisPlugins||W,_={},P=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+x+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)_[t[n]]=!0;P.push(e)});var R=(n=(t=[B,U].concat(I,[M,(i=function(e){g.insert(e)},function(e){!e.root&&(e=e.return)&&i(e)})])).length,function(e,r,i,o){for(var a="",s=0;s<n;s++)a+=t[s](e,r,i,o)||"";return a}),A=function(e){var t,n;return N((n=function e(t,n,r,i,a,g,x,k,O){for(var I,_=0,P=0,R=x,A=0,N=0,M=0,D=1,F=1,j=1,z=0,B="",U=a,W=g,H=i,q=B;F;)switch(M=z,z=w()){case 40:if(108!=M&&58==u(q,R-1)){-1!=l(q+=s(C(z),"&","&\f"),"&\f")&&(j=-1);break}case 34:case 39:case 91:q+=C(z);break;case 9:case 10:case 13:case 32:q+=function(e){for(;m=S();)if(m<33)w();else break;return E(e)>2||E(m)>3?"":" "}(M);break;case 92:q+=function(e,t){for(var n;--t&&w()&&!(m<48)&&!(m>102)&&(!(m>57)||!(m<65))&&(!(m>70)||!(m<97)););return n=v+(t<6&&32==S()&&32==w()),c(b,e,n)}(v-1,7);continue;case 47:switch(S()){case 42:case 47:f((I=function(e,t){for(;w();)if(e+m===57)break;else if(e+m===84&&47===S())break;return"/*"+c(b,t,v-1)+"*"+o(47===e?e:w())}(w(),v),y(I,n,r,T,o(m),c(I,2,-2),0)),O);break;default:q+="/"}break;case 123*D:k[_++]=d(q)*j;case 125*D:case 59:case 0:switch(z){case 0:case 125:F=0;case 59+P:-1==j&&(q=s(q,/\f/g,"")),N>0&&d(q)-R&&f(N>32?V(q+";",i,r,R-1):V(s(q," ","")+";",i,r,R-2),O);break;case 59:q+=";";default:if(f(H=L(q,n,r,_,P,a,k,B,U=[],W=[],R),g),123===z)if(0===P)e(q,n,H,H,U,g,R,k,W);else switch(99===A&&110===u(q,3)?100:A){case 100:case 108:case 109:case 115:e(t,H,H,i&&f(L(t,H,H,0,0,a,k,B,a,U=[],R),W),a,W,R,k,i?U:W);break;default:e(q,H,H,H,[""],W,0,k,W)}}_=P=N=0,D=j=1,B=q="",R=x;break;case 58:R=1+d(q),N=M;default:if(D<1){if(123==z)--D;else if(125==z&&0==D++&&125==(m=v>0?u(b,--v):0,p--,10===m&&(p=1,h--),m))continue}switch(q+=o(z),z*D){case 38:j=P>0?1:(q+="\f",-1);break;case 44:k[_++]=(d(q)-1)*j,j=1;break;case 64:45===S()&&(q+=C(w())),A=S(),P=R=d(B=q+=function(e){for(;!E(S());)w();return c(b,e,v)}(v)),z++;break;case 45:45===M&&2==d(q)&&(D=0)}}return g}("",null,null,null,[""],t=k(t=e),0,[0],t),b="",n),R)},D={key:x,sheet:new r({key:x,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:_,registered:{},insert:function(e,t,n,r){g=n,A(e?e+"{"+t.styles+"}":t.styles),r&&(D.inserted[t.name]=!0)}};return D.sheet.hydrate(P),D}},11954:(e,t,n)=>{"use strict";function r(){return[]}function i(e){return null==e?r:function(){return this.querySelectorAll(e)}}n.d(t,{A:()=>i})},12342:(e,t,n)=>{"use strict";n.d(t,{Yw:()=>d,sJ:()=>i,C8:()=>v,tt:()=>l,jC:()=>s,nf:()=>f,g3:()=>o,eq:()=>g,i_:()=>a,H2:()=>u,RP:()=>c,Ok:()=>p,SV:()=>m});var r=n(27197);let i=e=>e,o=e=>e,a=e=>e,s=e=>e,l=e=>e,u=e=>e,c=e=>e,d=e=>e,f=e=>e;function h(){let e=e=>e;return new Proxy(e,{get:()=>e})}let p=h(),g=h(),v=e=>e,m=(...e)=>(0,r.X)({},...e.map(function e(t){if(null===t||"object"!=typeof t)return t;if(Array.isArray(t))return t.map(t=>e(t));let n=Object.create(Object.getPrototypeOf(t));for(let r of Object.keys(t))n[r]=e(t[r]);return n}))},12569:(e,t,n)=>{var r=n(79905),i=n(40935),o=n(5816),a=n(97348);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return("number"==s?!!(i(n)&&o(t,n.length)):"string"==s&&t in n)&&r(n[t],e)}},12580:(e,t,n)=>{"use strict";n.d(t,{a:()=>d});var r=n(9597),i=n(80905),o=n(43163),a=n(16550),s=n(45008),l=n(7658),u=n(23769),c=n(83289);function d(e){let t,{key:n,recipe:d}=e,f=(t=n||d.className||"Component").charAt(0).toUpperCase()+t.slice(1),[h,p]=(0,o.q)({strict:!1,name:"".concat(f,"PropsContext"),providerName:"".concat(f,"PropsContext")});function g(e){let{unstyled:t,...r}=e,o=(0,c.m)({key:n,recipe:r.recipe||d}),[a,s]=(0,i.useMemo)(()=>o.splitVariantProps(r),[o,r]);return{styles:t?l.z:o(a),className:o.className,props:s}}return{withContext:(e,t)=>{let n=(0,u.B)(e,{},t),o=(0,i.forwardRef)((e,t)=>{let o=p(),l=(0,i.useMemo)(()=>(0,a.v)(o,e),[e,o]),{styles:u,className:c,props:d}=g(l);return(0,r.jsx)(n,{...d,ref:t,css:[u,l.css],className:(0,s.cx)(c,l.className)})});return o.displayName=e.displayName||e.name,o},PropsProvider:h,withPropsProvider:function(){return h},usePropsContext:p,useRecipeResult:g}}},12696:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},12984:e=>{e.exports=Array.isArray},13762:(e,t,n)=>{var r=n(52337),i=n(53215),o=n(93996),a=n(35420);e.exports=i(function(e){return o(r(e,1,a,!0))})},13959:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t}},14757:(e,t,n)=>{var r=n(97348);e.exports=function(e){return e==e&&!r(e)}},15277:(e,t,n)=>{var r=n(272),i=n(19302),o=n(63547),a=n(7120),s=n(35724),l=n(12984),u=n(81657),c=n(4438),d="[object Arguments]",f="[object Array]",h="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,v,m){var b=l(e),y=l(t),x=b?f:s(e),w=y?f:s(t);x=x==d?h:x,w=w==d?h:w;var S=x==h,E=w==h,k=x==w;if(k&&u(e)){if(!u(t))return!1;b=!0,S=!1}if(k&&!S)return m||(m=new r),b||c(e)?i(e,t,n,g,v,m):o(e,t,x,n,g,v,m);if(!(1&n)){var C=S&&p.call(e,"__wrapped__"),O=E&&p.call(t,"__wrapped__");if(C||O){var I=C?e.value():e,_=O?t.value():t;return m||(m=new r),v(I,_,n,g,m)}}return!!k&&(m||(m=new r),a(e,t,n,g,v,m))}},15886:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},16137:(e,t,n)=>{var r=n(89132);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},16209:(e,t,n)=>{var r=n(90599),i=n(78420),o=n(31376),a=o&&o.isSet;e.exports=a?i(a):r},16257:(e,t,n)=>{var r=n(63780);e.exports=function(e,t){return r.map(t,function(t){var n=e.inEdges(t);if(!n.length)return{v:t};var i=r.reduce(n,function(t,n){var r=e.edge(n),i=e.node(n.v);return{sum:t.sum+r.weight*i.order,weight:t.weight+r.weight}},{sum:0,weight:0});return{v:t,barycenter:i.sum/i.weight,weight:i.weight}})}},16434:(e,t,n)=>{var r=n(70378),i=n(87159),o=n(27404),a=n(27009),s=n(83176),l=n(78420),u=n(76259),c=n(52889),d=n(12984);e.exports=function(e,t,n){t=t.length?r(t,function(e){return d(e)?function(t){return i(t,1===e.length?e[0]:e)}:e}):[c];var f=-1;return t=r(t,l(o)),s(a(e,function(e,n,i){return{criteria:r(t,function(t){return t(e)}),index:++f,value:e}}),function(e,t){return u(e,t,n)})}},16453:(e,t,n)=>{var r=n(20088),i=n(70378),o=n(12984),a=n(79123),s=1/0,l=r?r.prototype:void 0,u=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-s?"-0":n}},16550:(e,t,n)=>{"use strict";n.d(t,{v:()=>o});let r=(...e)=>e.map(e=>e?.trim?.()).filter(Boolean).join(" "),i=/^on[A-Z]/;function o(...e){let t={};for(let n of e){for(let e in t){if(i.test(e)&&"function"==typeof t[e]&&"function"==typeof n[e]){t[e]=function(...e){return function(...t){e.forEach(e=>e?.(...t))}}(t[e],n[e]);continue}if("className"===e||"class"===e){t[e]=r(t[e],n[e]);continue}if("style"===e){t[e]=Object.assign({},t[e]??{},n[e]??{});continue}t[e]=void 0!==n[e]?n[e]:t[e]}for(let e in n)void 0===t[e]&&(t[e]=n[e])}return t}},16730:(e,t,n)=>{"use strict";var r=n(63780);e.exports=function(e,t){for(var n=0,i=1;i<t.length;++i)n+=function(e,t,n){for(var i=r.zipObject(n,r.map(n,function(e,t){return t})),o=r.flatten(r.map(t,function(t){return r.sortBy(r.map(e.outEdges(t),function(t){return{pos:i[t.w],weight:e.edge(t).weight}}),"pos")}),!0),a=1;a<n.length;)a<<=1;var s=2*a-1;a-=1;var l=r.map(Array(s),function(){return 0}),u=0;return r.forEach(o.forEach(function(e){var t=e.pos+a;l[t]+=e.weight;for(var n=0;t>0;)t%2&&(n+=l[t+1]),t=t-1>>1,l[t]+=e.weight;u+=e.weight*n})),u}(e,t[i-1],t[i]);return n}},16966:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},17310:(e,t,n)=>{var r=n(77092),i=n(90254),o=n(28939),a=n(8788);e.exports=function(e){return o(e)?r(a(e)):i(e)}},17551:(e,t,n)=>{var r=n(98873),i=n(97348),o=n(79123),a=0/0,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return a;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):s.test(e)?a:+e}},17737:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>a,GK:()=>o,Rw:()=>i,vr:()=>r});let r={passive:!1},i={capture:!0,passive:!1};function o(e){e.stopImmediatePropagation()}function a(e){e.preventDefault(),e.stopImmediatePropagation()}},18008:(e,t,n)=>{"use strict";function r(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}n.d(t,{o:()=>r})},18420:(e,t,n)=>{"use strict";n.d(t,{gC:()=>R,k1:()=>_,aD:()=>P,Lv:()=>N,mk:()=>I,Sb:()=>T,l$:()=>O});var r=n(9597),i=n(35556),o=n(20752),a=n(40928),s=n(80905),l=n(63283),u=n(52693),c=n(52718);let[d,f]=(0,n(42347).q)({name:"ToastContext",hookName:"useToastContext",providerName:"<ToastProvider />"}),h=(0,s.forwardRef)((e,t)=>{let{toaster:n,children:d,...f}=e,h=(0,u.g)(),g=(0,l.w)(),v=(0,i.zl)(a.Os.machine,{store:n,id:(0,s.useId)(),dir:null==h?void 0:h.dir,getRootNode:null==g?void 0:g.getRootNode}),m=a.Os.connect(v,i._B),b=(0,o.v6)(m.getGroupProps(),f);return(0,r.jsx)(c.X.div,{...b,ref:t,children:m.getToasts().map((e,t)=>(0,r.jsx)(p,{value:e,parent:v,index:t,children:e=>d(e)},e.id))})});h.displayName="Toaster";let p=e=>{let t=(0,l.w)(),n={...e.value,parent:e.parent,index:e.index,getRootNode:t.getRootNode},o=(0,i.zl)(a.Aq,{...n}),s=a.Ng(o,i._B);return(0,r.jsx)(d,{value:s,children:e.children(e.value)})};p.displayName="ToastActor";let g=(0,s.forwardRef)((e,t)=>{let n=f(),i=(0,o.v6)(n.getRootProps(),e);return(0,r.jsxs)("div",{...i,ref:t,children:[(0,r.jsx)("div",{...n.getGhostBeforeProps()}),e.children,(0,r.jsx)("div",{...n.getGhostAfterProps()})]})});g.displayName="ToastRoot";let v=(0,s.forwardRef)((e,t)=>{let n=f(),i=(0,o.v6)(n.getCloseTriggerProps(),e);return(0,r.jsx)(c.X.button,{...i,ref:t})});v.displayName="ToastCloseTrigger";let m=(0,s.forwardRef)((e,t)=>{let n=f(),i=(0,o.v6)(n.getTitleProps(),e);return(0,r.jsx)(c.X.div,{...i,ref:t})});m.displayName="ToastTitle";let b=(0,s.forwardRef)((e,t)=>{let n=f(),i=(0,o.v6)(n.getDescriptionProps(),e);return(0,r.jsx)(c.X.div,{...i,ref:t})});b.displayName="ToastDescription";let y=(0,s.forwardRef)((e,t)=>{let n=f(),i=(0,o.v6)(n.getActionTriggerProps(),e);return(0,r.jsx)(c.X.button,{...i,ref:t})});y.displayName="ToastActionTrigger";var x=n(25651),w=n(23769),S=n(6644);let{withProvider:E,withContext:k,useStyles:C}=(0,x.c)({key:"toast"}),O=(0,w.B)(h,{},{forwardAsChild:!0}),I=E(g,"root",{forwardAsChild:!0}),_=k(v,"closeTrigger",{forwardAsChild:!0,defaultProps:{children:(0,r.jsx)(S.US,{})}}),T=k(m,"title",{forwardAsChild:!0}),P=k(b,"description",{forwardAsChild:!0}),R=k(y,"actionTrigger",{forwardAsChild:!0}),A={warning:S.id,success:S.C1,error:S.id},N=(0,s.forwardRef)(function(e,t){let{unstyled:n,...i}=e,o=f(),a=C(),s=A[o.type];return s?(0,r.jsx)(s,{ref:t,...i,css:[n?void 0:a.indicator,e.css]}):null})},18771:(e,t,n)=>{var r=n(43517),i=n(78420),o=n(31376),a=o&&o.isMap;e.exports=a?i(a):r},18792:(e,t,n)=>{var r=0/0,i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt,u="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,d=u||c||Function("return this")(),f=Object.prototype.toString,h=Math.max,p=Math.min,g=function(){return d.Date.now()};function v(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==f.call(t))return r;if(v(e)){var t,n="function"==typeof e.valueOf?e.valueOf():e;e=v(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var u=a.test(e);return u||s.test(e)?l(e.slice(2),u?2:8):o.test(e)?r:+e}e.exports=function(e,t,n){var r,i,o,a,s,l,u=0,c=!1,d=!1,f=!0;if("function"!=typeof e)throw TypeError("Expected a function");function b(t){var n=r,o=i;return r=i=void 0,u=t,a=e.apply(o,n)}function y(e){var n=e-l,r=e-u;return void 0===l||n>=t||n<0||d&&r>=o}function x(){var e,n,r,i=g();if(y(i))return w(i);s=setTimeout(x,(e=i-l,n=i-u,r=t-e,d?p(r,o-n):r))}function w(e){return(s=void 0,f&&r)?b(e):(r=i=void 0,a)}function S(){var e,n=g(),o=y(n);if(r=arguments,i=this,l=n,o){if(void 0===s)return u=e=l,s=setTimeout(x,t),c?b(e):a;if(d)return s=setTimeout(x,t),b(l)}return void 0===s&&(s=setTimeout(x,t)),a}return t=m(t)||0,v(n)&&(c=!!n.leading,o=(d="maxWait"in n)?h(m(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),S.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=i=s=void 0},S.flush=function(){return void 0===s?a:w(g())},S}},18896:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return v},useLinkStatus:function(){return b}});let r=n(77764),i=n(9597),o=r._(n(80905)),a=n(4743),s=n(64777),l=n(20780),u=n(39040),c=n(64141),d=n(30507);n(22144);let f=n(73664),h=n(52618),p=n(44176);function g(e){return"string"==typeof e?e:(0,a.formatUrl)(e)}function v(e){let t,n,r,[a,v]=(0,o.useOptimistic)(f.IDLE_LINK_STATUS),b=(0,o.useRef)(null),{href:y,as:x,children:w,prefetch:S=null,passHref:E,replace:k,shallow:C,scroll:O,onClick:I,onMouseEnter:_,onTouchStart:T,legacyBehavior:P=!1,onNavigate:R,ref:A,unstable_dynamicOnHover:N,...M}=e;t=w,P&&("string"==typeof t||"number"==typeof t)&&(t=(0,i.jsx)("a",{children:t}));let L=o.default.useContext(s.AppRouterContext),V=!1!==S,D=null===S||"auto"===S?l.PrefetchKind.AUTO:l.PrefetchKind.FULL,{href:F,as:j}=o.default.useMemo(()=>{let e=g(y);return{href:e,as:x?g(x):e}},[y,x]);P&&(n=o.default.Children.only(t));let z=P?n&&"object"==typeof n&&n.ref:A,B=o.default.useCallback(e=>(null!==L&&(b.current=(0,f.mountLinkInstance)(e,F,L,D,V,v)),()=>{b.current&&((0,f.unmountLinkForCurrentNavigation)(b.current),b.current=null),(0,f.unmountPrefetchableInstance)(e)}),[V,F,L,D,v]),U={ref:(0,u.useMergedRef)(B,z),onClick(e){P||"function"!=typeof I||I(e),P&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),L&&(e.defaultPrevented||function(e,t,n,r,i,a,s){let{nodeName:l}=e.currentTarget;if(!("A"===l.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||e.currentTarget.hasAttribute("download"))){if(!(0,h.isLocalURL)(t)){i&&(e.preventDefault(),location.replace(t));return}if(e.preventDefault(),s){let e=!1;if(s({preventDefault:()=>{e=!0}}),e)return}o.default.startTransition(()=>{(0,p.dispatchNavigateAction)(n||t,i?"replace":"push",null==a||a,r.current)})}}(e,F,j,b,k,O,R))},onMouseEnter(e){P||"function"!=typeof _||_(e),P&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),L&&V&&(0,f.onNavigationIntent)(e.currentTarget,!0===N)},onTouchStart:function(e){P||"function"!=typeof T||T(e),P&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),L&&V&&(0,f.onNavigationIntent)(e.currentTarget,!0===N)}};return(0,c.isAbsoluteUrl)(j)?U.href=j:P&&!E&&("a"!==n.type||"href"in n.props)||(U.href=(0,d.addBasePath)(j)),r=P?o.default.cloneElement(n,U):(0,i.jsx)("a",{...M,...U,children:t}),(0,i.jsx)(m.Provider,{value:a,children:r})}n(33990);let m=(0,o.createContext)(f.IDLE_LINK_STATUS),b=()=>(0,o.useContext)(m);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},18979:(e,t,n)=>{var r=n(74990),i=n(83033),o=n(4663);e.exports=function(e){return r(e,o,i)}},19302:(e,t,n)=>{var r=n(65538),i=n(94329),o=n(39690);e.exports=function(e,t,n,a,s,l){var u=1&n,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var f=l.get(e),h=l.get(t);if(f&&h)return f==t&&h==e;var p=-1,g=!0,v=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++p<c;){var m=e[p],b=t[p];if(a)var y=u?a(b,m,p,t,e,l):a(m,b,p,e,t,l);if(void 0!==y){if(y)continue;g=!1;break}if(v){if(!i(t,function(e,t){if(!o(v,t)&&(m===e||s(m,e,n,a,l)))return v.push(t)})){g=!1;break}}else if(!(m===b||s(m,b,n,a,l))){g=!1;break}}return l.delete(e),l.delete(t),g}},19978:(e,t,n)=>{var r;try{r={clone:n(53804),constant:n(75967),each:n(71406),filter:n(7805),has:n(71937),isArray:n(12984),isEmpty:n(24688),isFunction:n(62155),isUndefined:n(60257),keys:n(4663),map:n(35539),reduce:n(66061),size:n(66010),transform:n(11865),union:n(13762),values:n(1577)}}catch(e){}r||(r=window._),e.exports=r},20017:(e,t,n)=>{e.exports="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g},20088:(e,t,n)=>{e.exports=n(53252).Symbol},20255:(e,t,n)=>{"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>r})},20752:(e,t,n)=>{"use strict";n.d(t,{Aj:()=>p,Ds:()=>v,Op:()=>f,b6:()=>d,h2:()=>g,mj:()=>h,ph:()=>c,v6:()=>u});var r=n(77952),i=n(6280),o=(...e)=>e.map(e=>e?.trim?.()).filter(Boolean).join(" "),a=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,s=e=>{let t,n={};for(;t=a.exec(e);)n[t[1]]=t[2];return n},l=(e,t)=>{if((0,r.Kg)(e)){if((0,r.Kg)(t))return`${e};${t}`;e=s(e)}else(0,r.Kg)(t)&&(t=s(t));return Object.assign({},e??{},t??{})};function u(...e){let t={};for(let n of e){for(let e in t){if(e.startsWith("on")&&"function"==typeof t[e]&&"function"==typeof n[e]){t[e]=(0,r.OK)(n[e],t[e]);continue}if("className"===e||"class"===e){t[e]=o(t[e],n[e]);continue}if("style"===e){t[e]=l(t[e],n[e]);continue}t[e]=void 0!==n[e]?n[e]:t[e]}for(let e in n)void 0===t[e]&&(t[e]=n[e])}return t}function c(e,t,n){let i,o=[];return a=>{let s=e(a);return(s.length!==o.length||s.some((e,t)=>!(0,r.n4)(o[t],e)))&&(o=s,i=t(...s),n?.onChange?.(i)),i}}function d(){return{and:(...e)=>function(t){return e.every(e=>t.guard(e))},or:(...e)=>function(t){return e.some(e=>t.guard(e))},not:e=>function(t){return!t.guard(e)}}}function f(e){return e}function h(){return{guards:d(),createMachine:e=>e,choose:e=>function({choose:t}){return t(e)?.actions}}}var p=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(p||{}),g="__init__";function v(e){let t=()=>e.getRootNode?.()??document,n=()=>(0,i.YE)(t()),r=()=>(0,i.bq)(t());return{...e,getRootNode:t,getDoc:n,getWin:()=>n().defaultView??window,getActiveElement:r,isActiveElement:e=>e===r(),getById:e=>t().getElementById(e)}}},21561:(e,t,n)=>{var r=n(16966),i=n(69387),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},21783:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(99921),i=n(75678),o=n(89058),a=n(47797),s=n(17737);let l=e=>()=>e;function u(e,{sourceEvent:t,subject:n,target:r,identifier:i,active:o,x:a,y:s,dx:l,dy:u,dispatch:c}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:c}})}function c(e){return!e.ctrlKey&&!e.button}function d(){return this.parentNode}function f(e,t){return null==t?{x:e.x,y:e.y}:t}function h(){return navigator.maxTouchPoints||"ontouchstart"in this}function p(){var e,t,n,p,g=c,v=d,m=f,b=h,y={},x=(0,r.A)("start","drag","end"),w=0,S=0;function E(e){e.on("mousedown.drag",k).filter(b).on("touchstart.drag",I).on("touchmove.drag",_,s.vr).on("touchend.drag touchcancel.drag",T).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function k(r,o){if(!p&&g.call(this,r,o)){var l=P(this,v.call(this,r,o),r,o,"mouse");l&&((0,i.A)(r.view).on("mousemove.drag",C,s.Rw).on("mouseup.drag",O,s.Rw),(0,a.A)(r.view),(0,s.GK)(r),n=!1,e=r.clientX,t=r.clientY,l("start",r))}}function C(r){if((0,s.Ay)(r),!n){var i=r.clientX-e,o=r.clientY-t;n=i*i+o*o>S}y.mouse("drag",r)}function O(e){(0,i.A)(e.view).on("mousemove.drag mouseup.drag",null),(0,a.y)(e.view,n),(0,s.Ay)(e),y.mouse("end",e)}function I(e,t){if(g.call(this,e,t)){var n,r,i=e.changedTouches,o=v.call(this,e,t),a=i.length;for(n=0;n<a;++n)(r=P(this,o,e,t,i[n].identifier,i[n]))&&((0,s.GK)(e),r("start",e,i[n]))}}function _(e){var t,n,r=e.changedTouches,i=r.length;for(t=0;t<i;++t)(n=y[r[t].identifier])&&((0,s.Ay)(e),n("drag",e,r[t]))}function T(e){var t,n,r=e.changedTouches,i=r.length;for(p&&clearTimeout(p),p=setTimeout(function(){p=null},500),t=0;t<i;++t)(n=y[r[t].identifier])&&((0,s.GK)(e),n("end",e,r[t]))}function P(e,t,n,r,i,a){var s,l,c,d=x.copy(),f=(0,o.A)(a||n,t);if(null!=(c=m.call(e,new u("beforestart",{sourceEvent:n,target:E,identifier:i,active:w,x:f[0],y:f[1],dx:0,dy:0,dispatch:d}),r)))return s=c.x-f[0]||0,l=c.y-f[1]||0,function n(a,h,p){var g,v=f;switch(a){case"start":y[i]=n,g=w++;break;case"end":delete y[i],--w;case"drag":f=(0,o.A)(p||h,t),g=w}d.call(a,e,new u(a,{sourceEvent:h,subject:c,target:E,identifier:i,active:g,x:f[0]+s,y:f[1]+l,dx:f[0]-v[0],dy:f[1]-v[1],dispatch:d}),r)}}return E.filter=function(e){return arguments.length?(g="function"==typeof e?e:l(!!e),E):g},E.container=function(e){return arguments.length?(v="function"==typeof e?e:l(e),E):v},E.subject=function(e){return arguments.length?(m="function"==typeof e?e:l(e),E):m},E.touchable=function(e){return arguments.length?(b="function"==typeof e?e:l(!!e),E):b},E.on=function(){var e=x.on.apply(x,arguments);return e===x?E:e},E.clickDistance=function(e){return arguments.length?(S=(e*=1)*e,E):Math.sqrt(S)},E}u.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e}},21813:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},22094:(e,t,n)=>{var r=n(58927),i=n(84849),o=n(43282),a=n(5734),s=n(55806);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},22462:e=>{e.exports=a,a.default=a,a.stable=u,a.stableStringify=u;var t="[...]",n="[Circular]",r=[],i=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(e,a,l,u){void 0===u&&(u=o()),function e(r,i,o,a,l,u,c){if(u+=1,"object"==typeof r&&null!==r){for(d=0;d<a.length;d++)if(a[d]===r)return void s(n,r,i,l);if(void 0!==c.depthLimit&&u>c.depthLimit||void 0!==c.edgesLimit&&o+1>c.edgesLimit)return void s(t,r,i,l);if(a.push(r),Array.isArray(r))for(d=0;d<r.length;d++)e(r[d],d,d,a,r,u,c);else{var d,f=Object.keys(r);for(d=0;d<f.length;d++){var h=f[d];e(r[h],h,d,a,r,u,c)}}a.pop()}}(e,"",0,[],void 0,0,u);try{d=0===i.length?JSON.stringify(e,a,l):JSON.stringify(e,c(a),l)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==r.length;){var d,f=r.pop();4===f.length?Object.defineProperty(f[0],f[1],f[3]):f[0][f[1]]=f[2]}}return d}function s(e,t,n,o){var a=Object.getOwnPropertyDescriptor(o,n);void 0!==a.get?a.configurable?(Object.defineProperty(o,n,{value:e}),r.push([o,n,t,a])):i.push([t,n,e]):(o[n]=e,r.push([o,n,t]))}function l(e,t){return e<t?-1:+(e>t)}function u(e,a,u,d){void 0===d&&(d=o());var f,h=function e(i,o,a,u,c,d,f){if(d+=1,"object"==typeof i&&null!==i){for(h=0;h<u.length;h++)if(u[h]===i)return void s(n,i,o,c);try{if("function"==typeof i.toJSON)return}catch(e){return}if(void 0!==f.depthLimit&&d>f.depthLimit||void 0!==f.edgesLimit&&a+1>f.edgesLimit)return void s(t,i,o,c);if(u.push(i),Array.isArray(i))for(h=0;h<i.length;h++)e(i[h],h,h,u,i,d,f);else{var h,p={},g=Object.keys(i).sort(l);for(h=0;h<g.length;h++){var v=g[h];e(i[v],v,h,u,i,d,f),p[v]=i[v]}if(void 0===c)return p;r.push([c,o,i]),c[o]=p}u.pop()}}(e,"",0,[],void 0,0,d)||e;try{f=0===i.length?JSON.stringify(h,a,u):JSON.stringify(h,c(a),u)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==r.length;){var p=r.pop();4===p.length?Object.defineProperty(p[0],p[1],p[3]):p[0][p[1]]=p[2]}}return f}function c(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(i.length>0)for(var r=0;r<i.length;r++){var o=i[r];if(o[1]===t&&o[0]===n){n=o[2],i.splice(r,1);break}}return e.call(this,t,n)}}},22973:(e,t,n)=>{"use strict";n.d(t,{s_:()=>eZ,GS:()=>eH});var r,i=n(99921),o=n(47797);function a(e){return((e=Math.exp(e))+1/e)/2}let s=function e(t,n,r){function i(e,i){var o,s,l=e[0],u=e[1],c=e[2],d=i[0],f=i[1],h=i[2],p=d-l,g=f-u,v=p*p+g*g;if(v<1e-12)s=Math.log(h/c)/t,o=function(e){return[l+e*p,u+e*g,c*Math.exp(t*e*s)]};else{var m=Math.sqrt(v),b=(h*h-c*c+r*v)/(2*c*n*m),y=(h*h-c*c-r*v)/(2*h*n*m),x=Math.log(Math.sqrt(b*b+1)-b);s=(Math.log(Math.sqrt(y*y+1)-y)-x)/t,o=function(e){var r,i,o=e*s,d=a(x),f=c/(n*m)*(d*(((r=Math.exp(2*(r=t*o+x)))-1)/(r+1))-((i=Math.exp(i=x))-1/i)/2);return[l+f*p,u+f*g,c*d/a(t*o+x)]}}return o.duration=1e3*s*t/Math.SQRT2,o}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i}(Math.SQRT2,2,4);var l,u,c=n(75678),d=n(89058),f=n(43857),h=0,p=0,g=0,v=0,m=0,b=0,y="object"==typeof performance&&performance.now?performance:Date,x="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function w(){return m||(x(S),m=y.now()+b)}function S(){m=0}function E(){this._call=this._time=this._next=null}function k(e,t,n){var r=new E;return r.restart(e,t,n),r}function C(){m=(v=y.now())+b,h=p=0;try{w(),++h;for(var e,t=l;t;)(e=m-t._time)>=0&&t._call.call(void 0,e),t=t._next;--h}finally{h=0,function(){for(var e,t,n=l,r=1/0;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:l=t);u=e,I(r)}(),m=0}}function O(){var e=y.now(),t=e-v;t>1e3&&(b-=t,v=e)}function I(e){!h&&(p&&(p=clearTimeout(p)),e-m>24?(e<1/0&&(p=setTimeout(C,e-y.now()-b)),g&&(g=clearInterval(g))):(g||(v=y.now(),g=setInterval(O,1e3)),h=1,x(C)))}function _(e,t,n){var r=new E;return t=null==t?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}E.prototype=k.prototype={constructor:E,restart:function(e,t,n){if("function"!=typeof e)throw TypeError("callback is not a function");n=(null==n?w():+n)+(null==t?0:+t),this._next||u===this||(u?u._next=this:l=this,u=this),this._call=e,this._time=n,I()},stop:function(){this._call&&(this._call=null,this._time=1/0,I())}};var T=(0,i.A)("start","end","cancel","interrupt"),P=[];function R(e,t,n,r,i,o){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function o(l){var u,c,d,f;if(1!==n.state)return s();for(u in i)if((f=i[u]).name===n.name){if(3===f.state)return _(o);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete i[u]):+u<t&&(f.state=6,f.timer.stop(),f.on.call("cancel",e,e.__data__,f.index,f.group),delete i[u])}if(_(function(){3===n.state&&(n.state=4,n.timer.restart(a,n.delay,n.time),a(l))}),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(u=0,n.state=3,r=Array(d=n.tween.length),c=-1;u<d;++u)(f=n.tween[u].value.call(e,e.__data__,n.index,n.group))&&(r[++c]=f);r.length=c+1}}function a(t){for(var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(s),n.state=5,1),o=-1,a=r.length;++o<a;)r[o].call(e,i);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),s())}function s(){for(var r in n.state=6,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=k(function(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)},0,n.time)}(e,n,{name:t,index:r,group:i,on:T,tween:P,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function A(e,t){var n=M(e,t);if(n.state>0)throw Error("too late; already scheduled");return n}function N(e,t){var n=M(e,t);if(n.state>3)throw Error("too late; already running");return n}function M(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error("transition not found");return n}function L(e,t){var n,r,i,o=e.__transition,a=!0;if(o){for(i in t=null==t?null:t+"",o){if((n=o[i]).name!==t){a=!1;continue}r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete o[i]}a&&delete e.__transition}}function V(e,t){return e*=1,t*=1,function(n){return e*(1-n)+t*n}}var D=180/Math.PI,F={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function j(e,t,n,r,i,o){var a,s,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r<t*n&&(e=-e,t=-t,l=-l,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*D,skewX:Math.atan(l)*D,scaleX:a,scaleY:s}}function z(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}return function(o,a){var s,l,u,c,d=[],f=[];return o=e(o),a=e(a),!function(e,r,i,o,a,s){if(e!==i||r!==o){var l=a.push("translate(",null,t,null,n);s.push({i:l-4,x:V(e,i)},{i:l-2,x:V(r,o)})}else(i||o)&&a.push("translate("+i+t+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,d,f),s=o.rotate,l=a.rotate,s!==l?(s-l>180?l+=360:l-s>180&&(s+=360),f.push({i:d.push(i(d)+"rotate(",null,r)-2,x:V(s,l)})):l&&d.push(i(d)+"rotate("+l+r),u=o.skewX,c=a.skewX,u!==c?f.push({i:d.push(i(d)+"skewX(",null,r)-2,x:V(u,c)}):c&&d.push(i(d)+"skewX("+c+r),!function(e,t,n,r,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:V(e,n)},{i:s-2,x:V(t,r)})}else(1!==n||1!==r)&&o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,d,f),o=a=null,function(e){for(var t,n=-1,r=f.length;++n<r;)d[(t=f[n]).i]=t.x(e);return d.join("")}}}var B=z(function(e){let t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?F:j(t.a,t.b,t.c,t.d,t.e,t.f)},"px, ","px)","deg)"),U=z(function(e){return null==e?F:(r||(r=document.createElementNS("http://www.w3.org/2000/svg","g")),r.setAttribute("transform",e),e=r.transform.baseVal.consolidate())?j((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):F},", ",")",")"),W=n(83413);function H(e,t,n){var r=e._id;return e.each(function(){var e=N(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)}),function(e){return M(e,r).value[t]}}function q(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function $(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function G(){}var K="\\s*([+-]?\\d+)\\s*",Y="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",X="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Q=/^#([0-9a-f]{3,8})$/,J=RegExp(`^rgb\\(${K},${K},${K}\\)$`),Z=RegExp(`^rgb\\(${X},${X},${X}\\)$`),ee=RegExp(`^rgba\\(${K},${K},${K},${Y}\\)$`),et=RegExp(`^rgba\\(${X},${X},${X},${Y}\\)$`),en=RegExp(`^hsl\\(${Y},${X},${X}\\)$`),er=RegExp(`^hsla\\(${Y},${X},${X},${Y}\\)$`),ei={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function eo(){return this.rgb().formatHex()}function ea(){return this.rgb().formatRgb()}function es(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Q.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?el(t):3===n?new ed(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?eu(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?eu(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=J.exec(e))?new ed(t[1],t[2],t[3],1):(t=Z.exec(e))?new ed(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ee.exec(e))?eu(t[1],t[2],t[3],t[4]):(t=et.exec(e))?eu(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=en.exec(e))?em(t[1],t[2]/100,t[3]/100,1):(t=er.exec(e))?em(t[1],t[2]/100,t[3]/100,t[4]):ei.hasOwnProperty(e)?el(ei[e]):"transparent"===e?new ed(NaN,NaN,NaN,0):null}function el(e){return new ed(e>>16&255,e>>8&255,255&e,1)}function eu(e,t,n,r){return r<=0&&(e=t=n=NaN),new ed(e,t,n,r)}function ec(e,t,n,r){var i;return 1==arguments.length?((i=e)instanceof G||(i=es(i)),i)?new ed((i=i.rgb()).r,i.g,i.b,i.opacity):new ed:new ed(e,t,n,null==r?1:r)}function ed(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ef(){return`#${ev(this.r)}${ev(this.g)}${ev(this.b)}`}function eh(){let e=ep(this.opacity);return`${1===e?"rgb(":"rgba("}${eg(this.r)}, ${eg(this.g)}, ${eg(this.b)}${1===e?")":`, ${e})`}`}function ep(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function eg(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ev(e){return((e=eg(e))<16?"0":"")+e.toString(16)}function em(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ey(e,t,n,r)}function eb(e){if(e instanceof ey)return new ey(e.h,e.s,e.l,e.opacity);if(e instanceof G||(e=es(e)),!e)return new ey;if(e instanceof ey)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+(n<r)*6:n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new ey(a,s,l,e.opacity)}function ey(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ex(e){return(e=(e||0)%360)<0?e+360:e}function ew(e){return Math.max(0,Math.min(1,e||0))}function eS(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function eE(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}q(G,es,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:eo,formatHex:eo,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return eb(this).formatHsl()},formatRgb:ea,toString:ea}),q(ed,ec,$(G,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new ed(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ed(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ed(eg(this.r),eg(this.g),eg(this.b),ep(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ef,formatHex:ef,formatHex8:function(){return`#${ev(this.r)}${ev(this.g)}${ev(this.b)}${ev((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:eh,toString:eh})),q(ey,function(e,t,n,r){return 1==arguments.length?eb(e):new ey(e,t,n,null==r?1:r)},$(G,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new ey(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ey(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new ed(eS(e>=240?e-240:e+120,i,r),eS(e,i,r),eS(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new ey(ex(this.h),ew(this.s),ew(this.l),ep(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=ep(this.opacity);return`${1===e?"hsl(":"hsla("}${ex(this.h)}, ${100*ew(this.s)}%, ${100*ew(this.l)}%${1===e?")":`, ${e})`}`}}));let ek=e=>()=>e;function eC(e,t){var n=t-e;return n?function(t){return e+t*n}:ek(isNaN(e)?t:e)}let eO=function e(t){var n,r=1==(n=+t)?eC:function(e,t){var r,i,o;return t-e?(r=e,i=t,r=Math.pow(r,o=n),i=Math.pow(i,o)-r,o=1/o,function(e){return Math.pow(r+e*i,o)}):ek(isNaN(e)?t:e)};function i(e,t){var n=r((e=ec(e)).r,(t=ec(t)).r),i=r(e.g,t.g),o=r(e.b,t.b),a=eC(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return i.gamma=e,i}(1);function eI(e){return function(t){var n,r,i=t.length,o=Array(i),a=Array(i),s=Array(i);for(n=0;n<i;++n)r=ec(t[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=e(o),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=o(e),r.g=a(e),r.b=s(e),r+""}}}eI(function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return eE((n-r/t)*t,a,i,o,s)}}),eI(function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return eE((n-r/t)*t,i,o,a,s)}});var e_=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,eT=RegExp(e_.source,"g");function eP(e,t){var n;return("number"==typeof t?V:t instanceof es?eO:(n=es(t))?(t=n,eO):function(e,t){var n,r,i,o,a,s=e_.lastIndex=eT.lastIndex=0,l=-1,u=[],c=[];for(e+="",t+="";(i=e_.exec(e))&&(o=eT.exec(t));)(a=o.index)>s&&(a=t.slice(s,a),u[l]?u[l]+=a:u[++l]=a),(i=i[0])===(o=o[0])?u[l]?u[l]+=o:u[++l]=o:(u[++l]=null,c.push({i:l,x:V(i,o)})),s=eT.lastIndex;return s<t.length&&(a=t.slice(s),u[l]?u[l]+=a:u[++l]=a),u.length<2?c[0]?(n=c[0].x,function(e){return n(e)+""}):(r=t,function(){return r}):(t=c.length,function(e){for(var n,r=0;r<t;++r)u[(n=c[r]).i]=n.x(e);return u.join("")})})(e,t)}var eR=n(92740),eA=n(37551),eN=n(11954),eM=f.Ay.prototype.constructor,eL=n(99122);function eV(e){return function(){this.style.removeProperty(e)}}var eD=0;function eF(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}var ej=f.Ay.prototype;eF.prototype=(function(e){return(0,f.Ay)().transition(e)}).prototype={constructor:eF,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=(0,eA.A)(e));for(var r=this._groups,i=r.length,o=Array(i),a=0;a<i;++a)for(var s,l,u=r[a],c=u.length,d=o[a]=Array(c),f=0;f<c;++f)(s=u[f])&&(l=e.call(s,s.__data__,f,u))&&("__data__"in s&&(l.__data__=s.__data__),d[f]=l,R(d[f],t,n,f,d,M(s,n)));return new eF(o,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=(0,eN.A)(e));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var l,u=r[s],c=u.length,d=0;d<c;++d)if(l=u[d]){for(var f,h=e.call(l,l.__data__,d,u),p=M(l,n),g=0,v=h.length;g<v;++g)(f=h[g])&&R(f,t,n,g,h,p);o.push(h),a.push(l)}return new eF(o,a,t,n)},selectChild:ej.selectChild,selectChildren:ej.selectChildren,filter:function(e){"function"!=typeof e&&(e=(0,eR.A)(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,l=r[i]=[],u=0;u<s;++u)(o=a[u])&&e.call(o,o.__data__,u,a)&&l.push(o);return new eF(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=Array(r),s=0;s<o;++s)for(var l,u=t[s],c=n[s],d=u.length,f=a[s]=Array(d),h=0;h<d;++h)(l=u[h]||c[h])&&(f[h]=l);for(;s<r;++s)a[s]=t[s];return new eF(a,this._parents,this._name,this._id)},selection:function(){return new eM(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=++eD,r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],l=s.length,u=0;u<l;++u)if(a=s[u]){var c=M(a,t);R(a,e,n,u,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new eF(r,this._parents,e,n)},call:ej.call,nodes:ej.nodes,node:ej.node,size:ej.size,empty:ej.empty,each:ej.each,on:function(e,t){var n,r,i,o,a,s,l=this._id;return arguments.length<2?M(this.node(),l).on.on(e):this.each((n=l,r=e,i=t,s=(r+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e})?A:N,function(){var e=s(this,n),t=e.on;t!==o&&(a=(o=t).copy()).on(r,i),e.on=a}))},attr:function(e,t){var n=(0,W.A)(e),r="transform"===n?U:eP;return this.attrTween(e,"function"==typeof t?(n.local?function(e,t,n){var r,i,o;return function(){var a,s,l=n(this);return null==l?void this.removeAttributeNS(e.space,e.local):(a=this.getAttributeNS(e.space,e.local))===(s=l+"")?null:a===r&&s===i?o:(i=s,o=t(r=a,l))}}:function(e,t,n){var r,i,o;return function(){var a,s,l=n(this);return null==l?void this.removeAttribute(e):(a=this.getAttribute(e))===(s=l+"")?null:a===r&&s===i?o:(i=s,o=t(r=a,l))}})(n,r,H(this,"attr."+e,t)):null==t?(n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}})(n):(n.local?function(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(e.space,e.local);return a===o?null:a===r?i:i=t(r=a,n)}}:function(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttribute(e);return a===o?null:a===r?i:i=t(r=a,n)}})(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw Error();var r=(0,W.A)(e);return this.tween(n,(r.local?function(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t){this.setAttributeNS(e.space,e.local,i.call(this,t))}),n}return i._value=t,i}:function(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t){this.setAttribute(e,i.call(this,t))}),n}return i._value=t,i})(r,t))},style:function(e,t,n){var r,i,o,a,s,l,u,c,d,f,h,p,g,v,m,b,y,x,w,S,E,k="transform"==(e+="")?B:eP;return null==t?this.styleTween(e,(r=e,function(){var e=(0,eL.j)(this,r),t=(this.style.removeProperty(r),(0,eL.j)(this,r));return e===t?null:e===i&&t===o?a:a=k(i=e,o=t)})).on("end.style."+e,eV(e)):"function"==typeof t?this.styleTween(e,(s=e,l=H(this,"style."+e,t),function(){var e=(0,eL.j)(this,s),t=l(this),n=t+"";return null==t&&(this.style.removeProperty(s),n=t=(0,eL.j)(this,s)),e===n?null:e===u&&n===c?d:(c=n,d=k(u=e,t))})).each((f=this._id,y="end."+(b="style."+(h=e)),function(){var e=N(this,f),t=e.on,n=null==e.value[b]?m||(m=eV(h)):void 0;(t!==p||v!==n)&&(g=(p=t).copy()).on(y,v=n),e.on=g})):this.styleTween(e,(x=e,E=t+"",function(){var e=(0,eL.j)(this,x);return e===E?null:e===w?S:S=k(w=e,t)}),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw Error();return this.tween(r,function(e,t,n){var r,i;function o(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&function(t){this.style.setProperty(e,o.call(this,t),n)}),r}return o._value=t,o}(e,t,null==n?"":n))},text:function(e){var t,n;return this.tween("text","function"==typeof e?(t=H(this,"text",e),function(){var e=t(this);this.textContent=null==e?"":e}):(n=null==e?"":e+"",function(){this.textContent=n}))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw Error();return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){this.textContent=r.call(this,e)}),t}return r._value=e,r}(e))},remove:function(){var e;return this.on("end.remove",(e=this._id,function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=M(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===e)return r.value;return null}return this.each((null==t?function(e,t){var n,r;return function(){var i=N(this,e),o=i.tween;if(o!==n){r=n=o;for(var a=0,s=r.length;a<s;++a)if(r[a].name===t){(r=r.slice()).splice(a,1);break}}i.tween=r}}:function(e,t,n){var r,i;if("function"!=typeof n)throw Error();return function(){var o=N(this,e),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:t,value:n},l=0,u=i.length;l<u;++l)if(i[l].name===t){i[l]=s;break}l===u&&i.push(s)}o.tween=i}})(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){A(this,e).delay=+t.apply(this,arguments)}}:function(e,t){return t*=1,function(){A(this,e).delay=t}})(t,e)):M(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){N(this,e).duration=+t.apply(this,arguments)}}:function(e,t){return t*=1,function(){N(this,e).duration=t}})(t,e)):M(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw Error();return function(){N(this,e).ease=t}}(t,e)):M(this.node(),t).ease},easeVarying:function(e){var t;if("function"!=typeof e)throw Error();return this.each((t=this._id,function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw Error();N(this,t).ease=n}))},end:function(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(o,a){var s={value:a},l={value:function(){0==--i&&o()}};n.each(function(){var n=N(this,r),i=n.on;i!==e&&((t=(e=i).copy())._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),n.on=t}),0===i&&o()})},[Symbol.iterator]:ej[Symbol.iterator]};var ez={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};f.Ay.prototype.interrupt=function(e){return this.each(function(){L(this,e)})},f.Ay.prototype.transition=function(e){var t,n;e instanceof eF?(t=e._id,e=e._name):(t=++eD,(n=ez).time=w(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],l=s.length,u=0;u<l;++u)(a=s[u])&&R(a,e,t,u,s,n||function(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}(a,t));return new eF(r,this._parents,e,t)};let eB=e=>()=>e;function eU(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function eW(e,t,n){this.k=e,this.x=t,this.y=n}eW.prototype={constructor:eW,scale:function(e){return 1===e?this:new eW(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new eW(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var eH=new eW(1,0,0);function eq(e){e.stopImmediatePropagation()}function e$(e){e.preventDefault(),e.stopImmediatePropagation()}function eG(e){return(!e.ctrlKey||"wheel"===e.type)&&!e.button}function eK(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function eY(){return this.__zoom||eH}function eX(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function eQ(){return navigator.maxTouchPoints||"ontouchstart"in this}function eJ(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function eZ(){var e,t,n,r=eG,a=eK,l=eJ,u=eX,f=eQ,h=[0,1/0],p=[[-1/0,-1/0],[1/0,1/0]],g=250,v=s,m=(0,i.A)("start","zoom","end"),b=0,y=10;function x(e){e.property("__zoom",eY).on("wheel.zoom",I,{passive:!1}).on("mousedown.zoom",_).on("dblclick.zoom",T).filter(f).on("touchstart.zoom",P).on("touchmove.zoom",R).on("touchend.zoom touchcancel.zoom",A).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(e,t){return(t=Math.max(h[0],Math.min(h[1],t)))===e.k?e:new eW(t,e.x,e.y)}function S(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new eW(e.k,r,i)}function E(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function k(e,t,n,r){e.on("start.zoom",function(){C(this,arguments).event(r).start()}).on("interrupt.zoom end.zoom",function(){C(this,arguments).event(r).end()}).tween("zoom",function(){var e=arguments,i=C(this,e).event(r),o=a.apply(this,e),s=null==n?E(o):"function"==typeof n?n.apply(this,e):n,l=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),u=this.__zoom,c="function"==typeof t?t.apply(this,e):t,d=v(u.invert(s).concat(l/u.k),c.invert(s).concat(l/c.k));return function(e){if(1===e)e=c;else{var t=d(e),n=l/t[2];e=new eW(n,s[0]-t[0]*n,s[1]-t[1]*n)}i.zoom(null,e)}})}function C(e,t,n){return!n&&e.__zooming||new O(e,t)}function O(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=a.apply(e,t),this.taps=0}function I(e,...t){if(r.apply(this,arguments)){var n=C(this,t).event(e),i=this.__zoom,o=Math.max(h[0],Math.min(h[1],i.k*Math.pow(2,u.apply(this,arguments)))),a=(0,d.A)(e);if(n.wheel)(n.mouse[0][0]!==a[0]||n.mouse[0][1]!==a[1])&&(n.mouse[1]=i.invert(n.mouse[0]=a)),clearTimeout(n.wheel);else{if(i.k===o)return;n.mouse=[a,i.invert(a)],L(this),n.start()}e$(e),n.wheel=setTimeout(function(){n.wheel=null,n.end()},150),n.zoom("mouse",l(S(w(i,o),n.mouse[0],n.mouse[1]),n.extent,p))}}function _(e,...t){if(!n&&r.apply(this,arguments)){var i=e.currentTarget,a=C(this,t,!0).event(e),s=(0,c.A)(e.view).on("mousemove.zoom",function(e){if(e$(e),!a.moved){var t=e.clientX-f,n=e.clientY-h;a.moved=t*t+n*n>b}a.event(e).zoom("mouse",l(S(a.that.__zoom,a.mouse[0]=(0,d.A)(e,i),a.mouse[1]),a.extent,p))},!0).on("mouseup.zoom",function(e){s.on("mousemove.zoom mouseup.zoom",null),(0,o.y)(e.view,a.moved),e$(e),a.event(e).end()},!0),u=(0,d.A)(e,i),f=e.clientX,h=e.clientY;(0,o.A)(e.view),eq(e),a.mouse=[u,this.__zoom.invert(u)],L(this),a.start()}}function T(e,...t){if(r.apply(this,arguments)){var n=this.__zoom,i=(0,d.A)(e.changedTouches?e.changedTouches[0]:e,this),o=n.invert(i),s=n.k*(e.shiftKey?.5:2),u=l(S(w(n,s),i,o),a.apply(this,t),p);e$(e),g>0?(0,c.A)(this).transition().duration(g).call(k,u,i,e):(0,c.A)(this).call(x.transform,u,i,e)}}function P(n,...i){if(r.apply(this,arguments)){var o,a,s,l,u=n.touches,c=u.length,f=C(this,i,n.changedTouches.length===c).event(n);for(eq(n),a=0;a<c;++a)s=u[a],l=[l=(0,d.A)(s,this),this.__zoom.invert(l),s.identifier],f.touch0?f.touch1||f.touch0[2]===l[2]||(f.touch1=l,f.taps=0):(f.touch0=l,o=!0,f.taps=1+!!e);e&&(e=clearTimeout(e)),o&&(f.taps<2&&(t=l[0],e=setTimeout(function(){e=null},500)),L(this),f.start())}}function R(e,...t){if(this.__zooming){var n,r,i,o,a=C(this,t).event(e),s=e.changedTouches,u=s.length;for(e$(e),n=0;n<u;++n)r=s[n],i=(0,d.A)(r,this),a.touch0&&a.touch0[2]===r.identifier?a.touch0[0]=i:a.touch1&&a.touch1[2]===r.identifier&&(a.touch1[0]=i);if(r=a.that.__zoom,a.touch1){var c=a.touch0[0],f=a.touch0[1],h=a.touch1[0],g=a.touch1[1],v=(v=h[0]-c[0])*v+(v=h[1]-c[1])*v,m=(m=g[0]-f[0])*m+(m=g[1]-f[1])*m;r=w(r,Math.sqrt(v/m)),i=[(c[0]+h[0])/2,(c[1]+h[1])/2],o=[(f[0]+g[0])/2,(f[1]+g[1])/2]}else{if(!a.touch0)return;i=a.touch0[0],o=a.touch0[1]}a.zoom("touch",l(S(r,i,o),a.extent,p))}}function A(e,...r){if(this.__zooming){var i,o,a=C(this,r).event(e),s=e.changedTouches,l=s.length;for(eq(e),n&&clearTimeout(n),n=setTimeout(function(){n=null},500),i=0;i<l;++i)o=s[i],a.touch0&&a.touch0[2]===o.identifier?delete a.touch0:a.touch1&&a.touch1[2]===o.identifier&&delete a.touch1;if(a.touch1&&!a.touch0&&(a.touch0=a.touch1,delete a.touch1),a.touch0)a.touch0[1]=this.__zoom.invert(a.touch0[0]);else if(a.end(),2===a.taps&&(o=(0,d.A)(o,this),Math.hypot(t[0]-o[0],t[1]-o[1])<y)){var u=(0,c.A)(this).on("dblclick.zoom");u&&u.apply(this,arguments)}}}return x.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property("__zoom",eY),e!==i?k(e,t,n,r):i.interrupt().each(function(){C(this,arguments).event(r).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()})},x.scaleBy=function(e,t,n,r){x.scaleTo(e,function(){var e=this.__zoom.k,n="function"==typeof t?t.apply(this,arguments):t;return e*n},n,r)},x.scaleTo=function(e,t,n,r){x.transform(e,function(){var e=a.apply(this,arguments),r=this.__zoom,i=null==n?E(e):"function"==typeof n?n.apply(this,arguments):n,o=r.invert(i),s="function"==typeof t?t.apply(this,arguments):t;return l(S(w(r,s),i,o),e,p)},n,r)},x.translateBy=function(e,t,n,r){x.transform(e,function(){return l(this.__zoom.translate("function"==typeof t?t.apply(this,arguments):t,"function"==typeof n?n.apply(this,arguments):n),a.apply(this,arguments),p)},null,r)},x.translateTo=function(e,t,n,r,i){x.transform(e,function(){var e=a.apply(this,arguments),i=this.__zoom,o=null==r?E(e):"function"==typeof r?r.apply(this,arguments):r;return l(eH.translate(o[0],o[1]).scale(i.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof n?-n.apply(this,arguments):-n),e,p)},r,i)},O.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=(0,c.A)(this.that).datum();m.call(e,this.that,new eU(e,{sourceEvent:this.sourceEvent,target:x,type:e,transform:this.that.__zoom,dispatch:m}),t)}},x.wheelDelta=function(e){return arguments.length?(u="function"==typeof e?e:eB(+e),x):u},x.filter=function(e){return arguments.length?(r="function"==typeof e?e:eB(!!e),x):r},x.touchable=function(e){return arguments.length?(f="function"==typeof e?e:eB(!!e),x):f},x.extent=function(e){return arguments.length?(a="function"==typeof e?e:eB([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),x):a},x.scaleExtent=function(e){return arguments.length?(h[0]=+e[0],h[1]=+e[1],x):[h[0],h[1]]},x.translateExtent=function(e){return arguments.length?(p[0][0]=+e[0][0],p[1][0]=+e[1][0],p[0][1]=+e[0][1],p[1][1]=+e[1][1],x):[[p[0][0],p[0][1]],[p[1][0],p[1][1]]]},x.constrain=function(e){return arguments.length?(l=e,x):l},x.duration=function(e){return arguments.length?(g=+e,x):g},x.interpolate=function(e){return arguments.length?(v=e,x):v},x.on=function(){var e=m.on.apply(m,arguments);return e===m?x:e},x.clickDistance=function(e){return arguments.length?(b=(e*=1)*e,x):Math.sqrt(b)},x.tapDistance=function(e){return arguments.length?(y=+e,x):y},x}eW.prototype},23002:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,m=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case o:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case u:case f:case v:case g:case l:return e;default:return t}}case i:return t}}}function S(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=v,t.Memo=g,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return S(e)||w(e)===c},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===g},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===h||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===b||e.$$typeof===y||e.$$typeof===x||e.$$typeof===m)},t.typeOf=w},23212:(e,t,n)=>{var r=n(63780),i=n(99601);function o(e,t,n){for(var i;t.length&&(i=r.last(t)).i<=n;)t.pop(),e.push(i.vs),n++;return n}e.exports=function(e,t){var n,a=i.partition(e,function(e){return r.has(e,"barycenter")}),s=a.lhs,l=r.sortBy(a.rhs,function(e){return-e.i}),u=[],c=0,d=0,f=0;s.sort((n=!!t,function(e,t){return e.barycenter<t.barycenter?-1:e.barycenter>t.barycenter?1:n?t.i-e.i:e.i-t.i})),f=o(u,l,f),r.forEach(s,function(e){f+=e.vs.length,u.push(e.vs),c+=e.barycenter*e.weight,d+=e.weight,f=o(u,l,f)});var h={vs:r.flatten(u,!0)};return d&&(h.barycenter=c/d,h.weight=d),h}},23503:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}},23597:(e,t,n)=>{var r=n(87159);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},23769:(e,t,n)=>{"use strict";n.d(t,{B:()=>I});var r=n(9597),i=n(20255),o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,a=(0,i.A)(function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),s=n(31741),l=n(95329),u=n(39161),c=n(42162),d=n(80905),f=n(16550),h=n(18008),p=n(45008),g=n(68479),v=n(84526),m=n(832),b=n(36006);let y=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]),x=function(e){return e.default||e}(a),w=e=>"theme"!==e,S="undefined"!=typeof document,E=e=>{let{cache:t,serialized:n,isStringTag:i}=e;(0,c.SF)(t,n,i);let o=(0,u.s)(()=>(0,c.sk)(t,n,i));if(!S&&void 0!==o){let e=n.name,i=n.next;for(;void 0!==i;)e=(0,p.cx)(e,i.name),i=i.next;return(0,r.jsx)("style",{...{"data-emotion":(0,p.cx)(t.key,e),dangerouslySetInnerHTML:{__html:o},nonce:t.sheet.nonce}})}return null},k={path:["d"],text:["x","y"],circle:["cx","cy","r"],rect:["width","height","x","y","rx","ry"],ellipse:["cx","cy","rx","ry"],g:["transform"],stop:["offset","stopOpacity"]},C=(function(e){let t,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(Object.prototype.hasOwnProperty.call(k,e)){o.forwardProps||(o.forwardProps=[]);let t=k[e];o.forwardProps=(0,v.s)([...o.forwardProps,...t])}let a=e.__emotion_real===e,u=a&&e.__emotion_base||e;void 0!==o&&(t=o.label,n=o.target);let S=[],C=(0,s.w)((t,v,k)=>{var C;let O,{cva:I,isValidProperty:T}=(0,m.$)(),P=i.__cva__?i:I(i),R=_(e.__emotion_cva,P);!o.shouldForwardProp&&o.forwardProps&&(O=o.forwardProps,o.shouldForwardProp=(e,t)=>!!O.includes(e)||!(null==t?void 0:t.includes(e))&&!T(e));let A=((e,t,n)=>{let r;if(t){let n=t.shouldForwardProp;r=e.__emotion_forwardProp&&n?t=>e.__emotion_forwardProp(t)&&n(t):n}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r})(e,o,a)||((t,n)=>{let r="string"==typeof e&&e.charCodeAt(0)>96?x:w,i=!(null==n?void 0:n.includes(t))&&!T(t);return r(t)&&i}),{props:N,styles:M}=function(e,t,n){let{css:r,isValidProperty:i}=(0,m.$)(),{children:o,...a}=e,s=(0,d.useMemo)(()=>{let[e,r]=(0,b.r)(a,e=>n(e,t.variantKeys)),[o,s]=(0,b.r)(r,t.variantKeys),[l,u]=(0,b.r)(s,i);return{forwardedProps:e,variantProps:o,styleProps:l,elementProps:u}},[t.variantKeys,n,a,i]),{css:l,...u}=s.styleProps,c=(0,d.useMemo)(()=>{let e={...s.variantProps};return t.variantKeys.includes("colorPalette")||(e.colorPalette=a.colorPalette),t.variantKeys.includes("orientation")||(e.orientation=a.orientation),t(e)},[t,s.variantProps,a.colorPalette,a.orientation]);return{styles:(0,d.useMemo)(()=>{let e;return r(c,...(Array.isArray(e=l)?e:[e]).filter(Boolean).flat(),u)},[r,c,l,u]),props:{...s.forwardedProps,...s.elementProps,children:o}}}(d.useMemo(()=>Object.assign({},o.defaultProps,(0,h.o)(t)),[t]),R,A),L="",V=[M],D=N;if(null==N.theme){for(let e in D={},N)D[e]=N[e];D.theme=d.useContext(s.T)}"string"==typeof N.className?L=(0,c.Rk)(v.registered,V,N.className):null!=N.className&&(L=(0,p.cx)(L,N.className));let F=(0,l.J)(S.concat(V),v.registered,D);F.styles&&(L=(0,p.cx)(L,"".concat(v.key,"-").concat(F.name))),void 0!==n&&(L=(0,p.cx)(L,n));let j=!A("as"),z=j&&N.as||u,B={};for(let e in N)if(!j||"as"!==e){if("string"==typeof e&&y.has(e)){B[e.replace("html","").toLowerCase()]=N[e];continue}A(e)&&(B[e]=N[e])}let U=L.trim();U?B.className=U:Reflect.deleteProperty(B,"className"),B.ref=k;let W=o.forwardAsChild||(null==(C=o.forwardProps)?void 0:C.includes("asChild"));if(N.asChild&&!W){let e=d.Children.only(N.children);z=e.type,B.children=null,Reflect.deleteProperty(B,"asChild"),(B=(0,f.v)(B,e.props)).ref=function(...e){return t=>{e.forEach(e=>{!function(e,t){if(null!=e){if("function"==typeof e)return e(t);try{e.current=t}catch(n){throw Error(`Cannot assign value '${t}' to ref '${e}'`)}}}(e,t)})}}(k,function(e){let t=d.version;return!(0,g.Kg)(t)||t.startsWith("18.")?e?.ref:e?.props?.ref}(e))}return B.as&&W?(B.as=void 0,(0,r.jsxs)(d.Fragment,{children:[(0,r.jsx)(E,{cache:v,serialized:F,isStringTag:"string"==typeof z}),(0,r.jsx)(z,{asChild:!0,...B,children:(0,r.jsx)(N.as,{children:B.children})})]})):(0,r.jsxs)(d.Fragment,{children:[(0,r.jsx)(E,{cache:v,serialized:F,isStringTag:"string"==typeof z}),(0,r.jsx)(z,{...B})]})});return C.displayName=void 0!==t?t:"chakra(".concat("string"==typeof u?u:u.displayName||u.name||"Component",")"),C.__emotion_real=C,C.__emotion_base=u,C.__emotion_forwardProp=o.shouldForwardProp,C.__emotion_cva=i,Object.defineProperty(C,"toString",{value:()=>".".concat(n)}),C}).bind(),O=new Map,I=new Proxy(C,{apply:(e,t,n)=>C(...n),get:(e,t)=>(O.has(t)||O.set(t,C(t)),O.get(t))}),_=(e,t)=>e&&!t?e:!e&&t?t:e.merge(t)},23886:(e,t,n)=>{var r=n(57081),i=n(12984),o=n(90563);e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&"[object String]"==r(e)}},23994:(e,t,n)=>{var r=n(20088),i=n(80053),o=n(12984),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(a&&e&&e[a])}},24287:(e,t,n)=>{var r=n(16453);e.exports=function(e){return null==e?"":r(e)}},24376:(e,t,n)=>{var r=n(27013),i=n(3334);e.exports=function(e,t){return r(e,t,function(t,n){return i(e,n)})}},24624:e=>{e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}},24672:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},24688:(e,t,n)=>{var r=n(21561),i=n(35724),o=n(80053),a=n(12984),s=n(40935),l=n(81657),u=n(16966),c=n(4438),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||c(e)||o(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(u(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},25224:(e,t,n)=>{e.exports=n(68476)()},25651:(e,t,n)=>{"use strict";n.d(t,{c:()=>d});var r=n(9597),i=n(80905),o=n(43163),a=n(16550),s=n(45008),l=n(7658),u=n(23769),c=n(59432);let d=e=>{let{key:t,recipe:n}=e,d=(e=>e.charAt(0).toUpperCase()+e.slice(1))(t||n.className||"Component"),[f,h]=(0,o.q)({name:"".concat(d,"StylesContext"),errorMessage:"use".concat(d,"Styles returned is 'undefined'. Seems you forgot to wrap the components in \"<").concat(d,'.Root />" ')}),[p,g]=(0,o.q)({name:"".concat(d,"ClassNameContext"),errorMessage:"use".concat(d,"ClassNames returned is 'undefined'. Seems you forgot to wrap the components in \"<").concat(d,'.Root />" '),strict:!1}),[v,m]=(0,o.q)({strict:!1,name:"".concat(d,"PropsContext"),providerName:"".concat(d,"PropsContext"),defaultValue:{}});function b(e){let{unstyled:r,...o}=e,a=(0,c.y)({key:t,recipe:o.recipe||n}),[s,u]=(0,i.useMemo)(()=>a.splitVariantProps(o),[o,a]);return{styles:(0,i.useMemo)(()=>r?l.u:a(s),[r,s,a]),classNames:a.classNameMap,props:u}}return{StylesProvider:f,ClassNamesProvider:p,PropsProvider:v,usePropsContext:m,useRecipeResult:b,withProvider:(e,t,n)=>{let{defaultProps:o,...l}=null!=n?n:{},c=(0,u.B)(e,{},l),d=(0,i.forwardRef)((e,l)=>{var u,d;let h=m(),g=(0,i.useMemo)(()=>(0,a.v)(null!=o?o:{},h,e),[h,e]),{styles:v,props:y,classNames:x}=b(g),w=x[t],S=(0,r.jsx)(f,{value:v,children:(0,r.jsx)(p,{value:x,children:(0,r.jsx)(c,{ref:l,...y,css:[v[t],g.css],className:(0,s.cx)(g.className,w)})})});return null!=(d=null==n||null==(u=n.wrapElement)?void 0:u.call(n,S,g))?d:S});return d.displayName=e.displayName||e.name,d},withContext:(e,t,n)=>{let o=(0,u.B)(e,{},n),a=(0,i.forwardRef)((e,n)=>{let{unstyled:i,...a}=e,l=h(),u=g(),c=null==u?void 0:u[t];return(0,r.jsx)(o,{...a,css:[!i&&t?l[t]:void 0,e.css],ref:n,className:(0,s.cx)(e.className,c)})});return a.displayName=e.displayName||e.name,a},withRootProvider:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{defaultProps:n}=t,o=t=>{let o=m(),{styles:s,classNames:l,props:u}=b((0,i.useMemo)(()=>(0,a.v)(n,o,t),[o,t]));return(0,r.jsx)(f,{value:s,children:(0,r.jsx)(p,{value:l,children:(0,r.jsx)(e,{...u})})})};return o.displayName=e.displayName||e.name,o},useStyles:h,useClassNames:g}}},26291:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},26774:(e,t,n)=>{var r=n(272),i=n(99175);e.exports=function(e,t,n,o){var a=n.length,s=a,l=!o;if(null==e)return!s;for(e=Object(e);a--;){var u=n[a];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<s;){var c=(u=n[a])[0],d=e[c],f=u[1];if(l&&u[2]){if(void 0===d&&!(c in e))return!1}else{var h=new r;if(o)var p=o(d,f,c,e,t,h);if(!(void 0===p?i(f,d,3,o,h):p))return!1}}return!0}},27009:(e,t,n)=>{var r=n(2604),i=n(40935);e.exports=function(e,t){var n=-1,o=i(e)?Array(e.length):[];return r(e,function(e,r,i){o[++n]=t(e,r,i)}),o}},27013:(e,t,n)=>{var r=n(87159),i=n(62179),o=n(69864);e.exports=function(e,t,n){for(var a=-1,s=t.length,l={};++a<s;){var u=t[a],c=r(e,u);n(c,u)&&i(l,o(u,e),c)}return l}},27197:(e,t,n)=>{"use strict";n.d(t,{X:()=>i});var r=n(68479);function i(e,...t){for(let n of t)!function e(t,n){if(null==n)return t;for(let i of Object.keys(n))if(void 0!==n[i]&&"__proto__"!==i)if(!(0,r.Gv)(t[i])&&(0,r.Gv)(n[i]))Object.assign(t,{[i]:n[i]});else if(t[i]&&(0,r.Gv)(n[i]))e(t[i],n[i]);else if(Array.isArray(n[i])&&Array.isArray(t[i])){let o=0;for(;o<n[i].length;o++)(0,r.Gv)(t[i][o])&&(0,r.Gv)(n[i][o])?e(t[i][o],n[i][o]):t[i][o]=n[i][o]}else Object.assign(t,{[i]:n[i]});return t}(e,n);return e}},27404:(e,t,n)=>{var r=n(95718),i=n(4987),o=n(52889),a=n(12984),s=n(17310);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},27531:e=>{e.exports=function(e,t,n){for(var r=-1,i=e.length,o=t.length,a={};++r<i;){var s=r<o?t[r]:void 0;n(a,e[r],s)}return a}},27745:(e,t,n)=>{var r=n(97348),i=Object.create;e.exports=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}()},27801:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(80905);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,r.useRef)(()=>{throw Error("Cannot call an event handler while rendering.")});return(0,r.useInsertionEffect)(()=>{n.current=e}),(0,r.useCallback)(function(){for(var e,t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];return null==(e=n.current)?void 0:e.call(n,...r)},t)}},28578:(e,t,n)=>{"use strict";n.d(t,{Tt:()=>V,Xi:()=>D,R4:()=>F,tK:()=>L,Cf:()=>N,Es:()=>j,c7:()=>z,f5:()=>A,Dz:()=>R,L3:()=>M});var r=n(9597),i=n(20752),o=n(84753),a=n(51075),s=n(97276),l=n(7759);let[u,c]=(0,n(42347).q)({name:"DialogContext",hookName:"useDialogContext",providerName:"<DialogProvider />"});var d=n(72017),f=n(35556),h=n(80905),p=n(63283),g=n(52693),v=n(52718);let m=(0,h.forwardRef)((e,t)=>{let n=c(),o=(0,l.c)(),a=(0,i.v6)({...n.getTriggerProps(),"aria-controls":o.unmounted?void 0:n.getTriggerProps()["aria-controls"]},e);return(0,r.jsx)(v.X.button,{...a,ref:t})});m.displayName="DialogTrigger";let b=(0,h.forwardRef)((e,t)=>{let n=c(),o=(0,i.v6)(n.getPositionerProps(),e);return(0,l.c)().unmounted?null:(0,r.jsx)(v.X.div,{...o,ref:t})});b.displayName="DialogPositioner";var y=n(99648);let x=(0,h.forwardRef)((e,t)=>{let n=c(),o=(0,l.c)(),a=(0,i.v6)(n.getContentProps(),o.getPresenceProps(),e);return o.unmounted?null:(0,r.jsx)(v.X.div,{...a,ref:(0,y.t)(o.ref,t)})});x.displayName="DialogContent";let w=(0,h.forwardRef)((e,t)=>{let n=c(),o=(0,i.v6)(n.getDescriptionProps(),e);return(0,r.jsx)(v.X.div,{...o,ref:t})});w.displayName="DialogDescription";let S=(0,h.forwardRef)((e,t)=>{let n=c(),o=(0,i.v6)(n.getTitleProps(),e);return(0,r.jsx)(v.X.h2,{...o,ref:t})});S.displayName="DialogTitle";let E=(0,h.forwardRef)((e,t)=>{let n=c(),o=(0,i.v6)(n.getCloseTriggerProps(),e);return(0,r.jsx)(v.X.button,{...o,ref:t})});E.displayName="DialogCloseTrigger";let k=(0,h.forwardRef)((e,t)=>{let n=c(),a=(0,o.ob)(),l=(0,s.x)({...a,present:n.open}),u=(0,i.v6)(n.getBackdropProps(),l.getPresenceProps(),e);return l.unmounted?null:(0,r.jsx)(v.X.div,{...u,ref:(0,y.t)(l.ref,t)})});k.displayName="DialogBackdrop";var C=n(25651),O=n(23769);let{withRootProvider:I,withContext:_,useStyles:T,PropsProvider:P}=(0,C.c)({key:"dialog"});I(e=>{let[t,{value:n,children:c}]=(0,a.s)(e),[d]=(0,o.s9)(t),f=(0,s.x)((0,i.v6)({present:n.open},t));return(0,r.jsx)(u,{value:n,children:(0,r.jsx)(o.pf,{value:d,children:(0,r.jsx)(l.j,{value:f,children:c})})})},{defaultProps:{unmountOnExit:!0,lazyMount:!0}});let R=I(e=>{let[t,{children:n,...c}]=(0,a.s)(e),[v]=(0,o.s9)(t),m=(e=>{let t=(0,h.useId)(),{getRootNode:n}=(0,p.w)(),{dir:r}=(0,g.g)(),i={id:t,getRootNode:n,dir:r,...e},o=(0,f.zl)(d.Aq,i);return d.Ng(o,f._B)})(c),b=(0,s.x)((0,i.v6)({present:m.open},t));return(0,r.jsx)(u,{value:m,children:(0,r.jsx)(o.pf,{value:v,children:(0,r.jsx)(l.j,{value:b,children:n})})})},{defaultProps:{unmountOnExit:!0,lazyMount:!0}});_(m,"trigger",{forwardAsChild:!0});let A=_(b,"positioner",{forwardAsChild:!0}),N=_(x,"content",{forwardAsChild:!0});_(w,"description",{forwardAsChild:!0});let M=_(S,"title",{forwardAsChild:!0}),L=_(E,"closeTrigger",{forwardAsChild:!0}),V=(0,h.forwardRef)(function(e,t){let n=c();return(0,r.jsx)(O.B.button,{...e,ref:t,onClick:()=>n.setOpen(!1)})}),D=_(k,"backdrop",{forwardAsChild:!0}),F=_("div","body"),j=_("div","footer"),z=_("div","header")},28817:e=>{e.exports="2.1.8"},28908:(e,t,n)=>{var r=n(54778);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=+(n.size!=i),this}},28917:(e,t,n)=>{var r=n(25224),i=n(56859),o=n(91512);e.exports=function(e,t){return null==e?e:r(e,i(t),o)}},28939:(e,t,n)=>{var r=n(12984),i=n(79123),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!!("number"==n||"symbol"==n||"boolean"==n||null==e||i(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},29092:(e,t,n)=>{var r=n(54778);e.exports=function(e){return r(this,e).has(e)}},29675:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e,n){return null!=e&&t.call(e,n)}},29814:(e,t,n)=>{var r=n(57081),i=n(90563);e.exports=function(e){return"number"==typeof e||i(e)&&"[object Number]"==r(e)}},29861:(e,t,n)=>{"use strict";n.d(t,{Ht:()=>s,jE:()=>a});var r=n(80905),i=n(9597),o=r.createContext(void 0),a=e=>{let t=r.useContext(o);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},s=e=>{let{client:t,children:n}=e;return r.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,i.jsx)(o.Provider,{value:t,children:n})}},30268:(e,t,n)=>{"use strict";n.d(t,{a:()=>r});let r=(0,n(23769).B)("div");r.displayName="Box"},31376:(e,t,n)=>{e=n.nmd(e);var r=n(20017),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},31741:(e,t,n)=>{"use strict";n.d(t,{E:()=>g,T:()=>c,c:()=>h,h:()=>d,w:()=>u});var r=n(80905),i=n(11946),o=n(42162),a=n(95329),s=n(39161),l=r.createContext("undefined"!=typeof HTMLElement?(0,i.A)({key:"css"}):null);l.Provider;var u=function(e){return(0,r.forwardRef)(function(t,n){return e(t,(0,r.useContext)(l),n)})},c=r.createContext({}),d={}.hasOwnProperty,f="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",h=function(e,t){var n={};for(var r in t)d.call(t,r)&&(n[r]=t[r]);return n[f]=e,n},p=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,o.SF)(t,n,r),(0,s.s)(function(){return(0,o.sk)(t,n,r)}),null},g=u(function(e,t,n){var i=e.css;"string"==typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var s=e[f],l=[i],u="";"string"==typeof e.className?u=(0,o.Rk)(t.registered,l,e.className):null!=e.className&&(u=e.className+" ");var h=(0,a.J)(l,void 0,r.useContext(c));u+=t.key+"-"+h.name;var g={};for(var v in e)d.call(e,v)&&"css"!==v&&v!==f&&(g[v]=e[v]);return g.className=u,n&&(g.ref=n),r.createElement(r.Fragment,null,r.createElement(p,{cache:t,serialized:h,isStringTag:"string"==typeof s}),r.createElement(s,g))})},31991:(e,t,n)=>{var r=n(54778);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=!!t,t}},32158:e=>{e.exports=function(){return!1}},32617:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},32853:(e,t,n)=>{var r=n(34862),i=n(7454);e.exports=function(e,t){return r(e,i(e),t)}},33392:(e,t,n)=>{"use strict";n.d(t,{Aq:()=>O,MI:()=>h,Ng:()=>C});var r=n(61696),i=n(6280),o=n(54394),a=n(40032),s=n(20752),l=n(73520),u=n(86074),c=n(59864),d=n(82136),f=n(77952),h=(0,r.y)("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger"),p=h.build(),g=e=>e.ids?.anchor??`popover:${e.id}:anchor`,v=e=>e.ids?.trigger??`popover:${e.id}:trigger`,m=e=>e.ids?.content??`popover:${e.id}:content`,b=e=>e.ids?.positioner??`popover:${e.id}:popper`,y=e=>e.ids?.title??`popover:${e.id}:title`,x=e=>e.ids?.description??`popover:${e.id}:desc`,w=e=>e.getById(g(e)),S=e=>e.getById(v(e)),E=e=>e.getById(m(e)),k=e=>e.getById(b(e));function C(e,t){let{state:n,context:r,send:a,computed:s,prop:l,scope:u}=e,c=n.matches("open"),d=r.get("currentPlacement"),f=s("currentPortalled"),h=r.get("renderedElements"),w=(0,o.aC)({...l("positioning"),placement:d});return{portalled:f,open:c,setOpen(e){n.matches("open")!==e&&a({type:e?"OPEN":"CLOSE"})},reposition(e={}){a({type:"POSITIONING.SET",options:e})},getArrowProps:()=>t.element({id:u.ids?.arrow??`popover:${u.id}:arrow`,...p.arrow.attrs,dir:l("dir"),style:w.arrow}),getArrowTipProps:()=>t.element({...p.arrowTip.attrs,dir:l("dir"),style:w.arrowTip}),getAnchorProps:()=>t.element({...p.anchor.attrs,dir:l("dir"),id:g(u)}),getTriggerProps:()=>t.button({...p.trigger.attrs,dir:l("dir"),type:"button","data-placement":d,id:v(u),"aria-haspopup":"dialog","aria-expanded":c,"data-state":c?"open":"closed","aria-controls":m(u),onPointerDown(e){(0,i.Ml)(e)&&(0,i.nr)()&&e.currentTarget.focus()},onClick(e){e.defaultPrevented||a({type:"TOGGLE"})},onBlur(e){a({type:"TRIGGER_BLUR",target:e.relatedTarget})}}),getIndicatorProps:()=>t.element({...p.indicator.attrs,dir:l("dir"),"data-state":c?"open":"closed"}),getPositionerProps:()=>t.element({id:b(u),...p.positioner.attrs,dir:l("dir"),style:w.floating}),getContentProps:()=>t.element({...p.content.attrs,dir:l("dir"),id:m(u),tabIndex:-1,role:"dialog",hidden:!c,"data-state":c?"open":"closed","data-expanded":(0,i.sE)(c),"aria-labelledby":h.title?y(u):void 0,"aria-describedby":h.description?x(u):void 0,"data-placement":d}),getTitleProps:()=>t.element({...p.title.attrs,id:y(u),dir:l("dir")}),getDescriptionProps:()=>t.element({...p.description.attrs,id:x(u),dir:l("dir")}),getCloseTriggerProps:()=>t.button({...p.closeTrigger.attrs,dir:l("dir"),id:u.ids?.closeTrigger??`popover:${u.id}:close`,type:"button","aria-label":"close",onClick(e){e.defaultPrevented||(e.stopPropagation(),a({type:"CLOSE"}))}})}}var O=(0,s.Op)({props:({props:e})=>({closeOnInteractOutside:!0,closeOnEscape:!0,autoFocus:!0,modal:!1,portalled:!0,...e,positioning:{placement:"bottom",...e.positioning}}),initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"closed",context:({bindable:e})=>({currentPlacement:e(()=>({defaultValue:void 0})),renderedElements:e(()=>({defaultValue:{title:!0,description:!0}}))}),computed:{currentPortalled:({prop:e})=>!!e("modal")||!!e("portalled")},watch({track:e,prop:t,action:n}){e([()=>t("open")],()=>{n(["toggleVisibility"])})},entry:["checkRenderedElements"],states:{closed:{on:{"CONTROLLED.OPEN":{target:"open",actions:["setInitialFocus"]},TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}]}},open:{effects:["trapFocus","preventScroll","hideContentBelow","trackPositioning","trackDismissableElement","proxyTabFocus"],on:{"CONTROLLED.CLOSE":{target:"closed",actions:["setFinalFocus"]},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose","setFinalFocus"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{isOpenControlled:({prop:e})=>void 0!=e("open")},effects:{trackPositioning({context:e,prop:t,scope:n}){e.set("currentPlacement",t("positioning").placement);let r=w(n)??S(n);return(0,o.Ox)(r,()=>k(n),{...t("positioning"),defer:!0,onComplete(t){e.set("currentPlacement",t.placement)}})},trackDismissableElement({send:e,prop:t,scope:n}){let r=!0;return(0,l.u)(()=>E(n),{pointerBlocking:t("modal"),exclude:S(n),defer:!0,onEscapeKeyDown(e){t("onEscapeKeyDown")?.(e),t("closeOnEscape")||e.preventDefault()},onInteractOutside(e){t("onInteractOutside")?.(e),!e.defaultPrevented&&(r=!(e.detail.focusable||e.detail.contextmenu),t("closeOnInteractOutside")||e.preventDefault())},onPointerDownOutside:t("onPointerDownOutside"),onFocusOutside:t("onFocusOutside"),persistentElements:t("persistentElements"),onDismiss(){e({type:"CLOSE",src:"interact-outside",restoreFocus:r})}})},proxyTabFocus({prop:e,scope:t}){if(!e("modal")&&e("portalled"))return(0,i.Y)(()=>E(t),{triggerElement:S(t),defer:!0,onFocus(e){e.focus({preventScroll:!0})}})},hideContentBelow({prop:e,scope:t}){if(e("modal"))return(0,a.M)(()=>[E(t),S(t)],{defer:!0})},preventScroll({prop:e,scope:t}){if(e("modal"))return(0,c.k)(t.getDoc())},trapFocus({prop:e,scope:t}){if(e("modal"))return(0,u.o)(()=>E(t),{initialFocus:()=>(0,i.RD)({root:E(t),getInitialEl:e("initialFocusEl"),enabled:e("autoFocus")})})}},actions:{reposition({event:e,prop:t,scope:n,context:r}){let i=w(n)??S(n);(0,o.Ox)(i,()=>k(n),{...t("positioning"),...e.options,defer:!0,listeners:!1,onComplete(e){r.set("currentPlacement",e.placement)}})},checkRenderedElements({context:e,scope:t}){(0,i.er)(()=>{Object.assign(e.get("renderedElements"),{title:!!t.getById(y(t)),description:!!t.getById(x(t))})})},setInitialFocus({prop:e,scope:t}){e("modal")||(0,i.er)(()=>{let n=(0,i.RD)({root:E(t),getInitialEl:e("initialFocusEl"),enabled:e("autoFocus")});n?.focus({preventScroll:!0})})},setFinalFocus({event:e,scope:t}){let n=e.restoreFocus??e.previousEvent?.restoreFocus;(null==n||n)&&(0,i.er)(()=>{let e=S(t);e?.focus({preventScroll:!0})})},invokeOnOpen({prop:e,flush:t}){t(()=>{e("onOpenChange")?.({open:!0})})},invokeOnClose({prop:e,flush:t}){t(()=>{e("onOpenChange")?.({open:!1})})},toggleVisibility({event:e,send:t,prop:n}){t({type:n("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}}),I=(0,d.x)()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","defaultOpen","open","persistentElements","portalled","positioning"]);(0,f.PM)(I)},33902:e=>{e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return -1}},33990:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},34862:(e,t,n)=>{var r=n(74474),i=n(81665);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var u=t[s],c=o?o(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),a?i(n,u,c):r(n,u,c)}return n}},34884:(e,t,n)=>{var r=n(47997);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},34983:(e,t,n)=>{"use strict";n.d(t,{N:()=>o});let{withContext:r,PropsProvider:i}=(0,n(12580).a)({key:"link"}),o=r("a")},35391:(e,t,n)=>{"use strict";n.d(t,{$:()=>s,s:()=>a});var r=n(54908),i=n(6229),o=n(47705),a=class extends i.k{#t;#n;#r;constructor(e){super(),this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||s(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||("pending"===this.state.status?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:"continue"})};this.#r=(0,o.II)({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#i({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#i({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let n="pending"===this.state.status,r=!this.#r.canStart();try{if(n)t();else{this.#i({type:"pending",variables:e,isPaused:r}),await this.#n.config.onMutate?.(e,this);let t=await this.options.onMutate?.(e);t!==this.state.context&&this.#i({type:"pending",context:t,variables:e,isPaused:r})}let i=await this.#r.start();return await this.#n.config.onSuccess?.(i,e,this.state.context,this),await this.options.onSuccess?.(i,e,this.state.context),await this.#n.config.onSettled?.(i,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(i,null,e,this.state.context),this.#i({type:"success",data:i}),i}catch(t){try{throw await this.#n.config.onError?.(t,e,this.state.context,this),await this.options.onError?.(t,e,this.state.context),await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,t,e,this.state.context),t}finally{this.#i({type:"error",error:t})}}finally{this.#n.runNext(this)}}#i(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),r.jG.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function s(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},35420:(e,t,n)=>{var r=n(40935),i=n(90563);e.exports=function(e){return i(e)&&r(e)}},35539:(e,t,n)=>{var r=n(70378),i=n(27404),o=n(27009),a=n(12984);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},35556:(e,t,n)=>{"use strict";n.d(t,{_B:()=>p,zl:()=>d});var r=n(20752),i=n(77952),o=n(80905),a=n(28636),s=n(82136);n(9597);var l=void 0!==globalThis.document?o.useLayoutEffect:o.useEffect;function u(e){var t,n;let r=null!=(t=e().value)?t:e().defaultValue,s=null!=(n=e().isEqual)?n:Object.is,[u]=(0,o.useState)(r),[c,d]=(0,o.useState)(u),f=void 0!==e().value,h=(0,o.useRef)(c);h.current=f?e().value:c;let p=(0,o.useRef)(h.current);return l(()=>{p.current=h.current},[c,e().value]),{initial:u,ref:h,get:function(){return f?e().value:c},set(t){(e().sync?a.flushSync:i.D_)(()=>(t=>{let n=p.current,r=(0,i.Tn)(t)?t(n):t;if(e().debug&&console.log("[bindable > ".concat(e().debug,"] setValue"),{next:r,prev:n}),f||d(r),!s(r,n)){var o,a;null==(o=(a=e()).onChange)||o.call(a,r,n)}})(t))},invoke(t,n){var r,i;null==(r=(i=e()).onChange)||r.call(i,t,n)},hash(t){var n,r,i;return null!=(i=null==(n=(r=e()).hash)?void 0:n.call(r,t))?i:String(t)}}}u.cleanup=e=>{(0,o.useEffect)(()=>e,[])},u.ref=e=>{let t=(0,o.useRef)(e);return{get:()=>t.current,set:e=>{t.current=e}}};var c=(e,t)=>{let n=(0,o.useRef)(!1),r=(0,o.useRef)(!1);(0,o.useEffect)(()=>{if(n.current&&r.current)return t();r.current=!0},[...(null!=e?e:[]).map(e=>"function"==typeof e?e():e)]),(0,o.useEffect)(()=>(n.current=!0,()=>{n.current=!1}),[])};function d(e){var t,n,s,d,p,g;let v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},m=(0,o.useMemo)(()=>{let{id:e,ids:t,getRootNode:n}=v;return(0,r.Ds)({id:e,ids:t,getRootNode:n})},[v]),b=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];e.debug&&console.log(...n)},y=function(e){let t=f(e);return function(e){return t.current[e]}}(null!=(p=null==(t=e.props)?void 0:t.call(e,{props:(0,i.oE)(v),scope:m}))?p:v),x=f(null==(n=e.context)?void 0:n.call(e,{prop:y,bindable:u,scope:m,flush:h,getContext:()=>w,getComputed:()=>M,getRefs:()=>_,getEvent:()=>O()})),w={get(e){var t;return null==(t=x.current)?void 0:t[e].ref.current},set(e,t){var n;null==(n=x.current)||n[e].set(t)},initial(e){var t;return null==(t=x.current)?void 0:t[e].initial},hash(e){var t,n;let r=null==(t=x.current)?void 0:t[e].get();return null==(n=x.current)?void 0:n[e].hash(r)}},S=(0,o.useRef)(new Map),E=(0,o.useRef)(null),k=(0,o.useRef)(null),C=(0,o.useRef)({type:""}),O=()=>({...C.current,current:()=>C.current,previous:()=>k.current}),I=()=>({...L,matches(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.includes(L.ref.current)},hasTag(t){var n,r;return!!(null==(r=e.states[L.ref.current])||null==(n=r.tags)?void 0:n.includes(t))}}),_=function(e){let t=(0,o.useRef)(e);return{get:e=>t.current[e],set(e,n){t.current[e]=n}}}(null!=(g=null==(s=e.refs)?void 0:s.call(e,{prop:y,context:w}))?g:{}),T=()=>({state:I(),context:w,event:O(),prop:y,send:F,action:P,guard:R,track:c,refs:_,computed:M,flush:h,scope:m,choose:N}),P=t=>{let n=(0,i.Tn)(t)?t(T()):t;if(n)for(let t of n.map(t=>{var n,r;let o=null==(r=e.implementations)||null==(n=r.actions)?void 0:n[t];return o||(0,i.R8)('[zag-js] No implementation found for action "'.concat(JSON.stringify(t),'"')),o}))null==t||t(T())},R=t=>{var n,r;return(0,i.Tn)(t)?t(T()):null==(r=e.implementations)||null==(n=r.guards)?void 0:n[t](T())},A=t=>{let n=(0,i.Tn)(t)?t(T()):t;if(!n)return;let r=n.map(t=>{var n,r;let o=null==(r=e.implementations)||null==(n=r.effects)?void 0:n[t];return o||(0,i.R8)('[zag-js] No implementation found for effect "'.concat(JSON.stringify(t),'"')),o}),o=[];for(let e of r){let t=null==e?void 0:e(T());t&&o.push(t)}return()=>o.forEach(e=>null==e?void 0:e())},N=e=>(0,i.$r)(e).find(e=>{let t=!e.guard;return(0,i.Kg)(e.guard)?t=!!R(e.guard):(0,i.Tn)(e.guard)&&(t=e.guard(T())),t}),M=t=>((0,i.D8)(e.computed,()=>"[zag-js] No computed object found on machine"),(0,e.computed[t])({context:w,event:O(),prop:y,refs:_,scope:m,computed:M})),L=u(()=>({defaultValue:e.initialState({prop:y}),onChange(t,n){var i,o,a,s;if(n){let e=S.current.get(n);null==e||e(),S.current.delete(n)}n&&P(null==(s=e.states[n])?void 0:s.exit),P(null==(i=E.current)?void 0:i.actions);let l=A(null==(o=e.states[t])?void 0:o.effects);if(l&&S.current.set(t,l),n===r.h2){P(e.entry);let t=A(e.effects);t&&S.current.set(r.h2,t)}P(null==(a=e.states[t])?void 0:a.entry)}})),V=(0,o.useRef)(void 0),D=(0,o.useRef)(r.Aj.NotStarted);l(()=>{queueMicrotask(()=>{var e;let t=D.current===r.Aj.Started;D.current=r.Aj.Started,b(t?"rehydrating...":"initializing...");let n=null!=(e=V.current)?e:L.initial;L.invoke(n,t?L.get():r.h2)});let t=S.current,n=L.ref.current;return()=>{b("unmounting..."),V.current=n,D.current=r.Aj.Stopped,t.forEach(e=>null==e?void 0:e()),S.current=new Map,E.current=null,queueMicrotask(()=>{P(e.exit)})}},[]);let F=t=>{queueMicrotask(()=>{var n,i,o,s,l;if(D.current!==r.Aj.Started)return;k.current=C.current,C.current=t,b("send",t);let u="ref"in L?L.ref.current:L.get(),c=N(null!=(o=null==(n=e.states[u].on)?void 0:n[t.type])?o:null==(i=e.on)?void 0:i[t.type]);if(!c)return;E.current=c;let d=null!=(s=c.target)?s:u;b("transition",c);let f=d!==u;f?(0,a.flushSync)(()=>L.set(d)):c.reenter&&!f?L.invoke(u,u):P(null!=(l=c.actions)?l:[])})};return null==(d=e.watch)||d.call(e,T()),{state:I(),send:F,context:w,prop:y,scope:m,refs:_,computed:M,event:O(),getStatus:()=>D.current}}function f(e){let t=(0,o.useRef)(e);return t.current=e,t}function h(e){queueMicrotask(()=>{(0,a.flushSync)(()=>e())})}var p=(0,s._)(e=>e)},35636:(e,t,n)=>{var r=n(94427),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},35656:(e,t,n)=>{"use strict";n.d(t,{K:()=>r,r:()=>i});let r=(0,n(61696).y)("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator"),i=r.build()},35721:(e,t,n)=>{var r=n(63324),i=n(22094),o=n(9598);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},35724:(e,t,n)=>{var r=n(82021),i=n(9598),o=n(54053),a=n(59480),s=n(830),l=n(57081),u=n(48824),c="[object Map]",d="[object Promise]",f="[object Set]",h="[object WeakMap]",p="[object DataView]",g=u(r),v=u(i),m=u(o),b=u(a),y=u(s),x=l;(r&&x(new r(new ArrayBuffer(1)))!=p||i&&x(new i)!=c||o&&x(o.resolve())!=d||a&&x(new a)!=f||s&&x(new s)!=h)&&(x=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case g:return p;case v:return c;case m:return d;case b:return f;case y:return h}return t}),e.exports=x},36006:(e,t,n)=>{"use strict";n.d(t,{r:()=>i});var r=n(68479);let i=(e,t)=>((e,t)=>{let n={},r={};for(let i of Object.keys(e))t(i)?r[i]=e[i]:n[i]=e[i];return[r,n]})(e,(0,r.Tn)(t)?t:e=>t.includes(e))},36150:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},36348:(e,t,n)=>{e.exports=n(81213)()},36621:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});var r=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},36848:(e,t,n)=>{var r=n(40935);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},37551:(e,t,n)=>{"use strict";function r(){}function i(e){return null==e?r:function(){return this.querySelector(e)}}n.d(t,{A:()=>i})},38914:(e,t,n)=>{var r=n(62155),i=n(57961),o=n(97348),a=n(48824),s=/^\[object .+?Constructor\]$/,l=Object.prototype,u=Function.prototype.toString,c=l.hasOwnProperty,d=RegExp("^"+u.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?d:s).test(a(e))}},38980:(e,t,n)=>{var r=n(4542),i=n(19978);e.exports=function(e,t,n){return i.transform(e.nodes(),function(i,o){i[o]=r(e,o,t,n)},{})}},39040:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return i}});let r=n(80905);function i(e,t){let n=(0,r.useRef)(null),i=(0,r.useRef)(null);return(0,r.useCallback)(r=>{if(null===r){let e=n.current;e&&(n.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(n.current=o(e,r)),t&&(i.current=o(t,r))},[e,t])}function o(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let n=e(t);return"function"==typeof n?n:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},39161:(e,t,n)=>{"use strict";n.d(t,{i:()=>s,s:()=>a});var r,i=n(80905),o=!!(r||(r=n.t(i,2))).useInsertionEffect&&(r||(r=n.t(i,2))).useInsertionEffect,a=o||function(e){return e()},s=o||i.useLayoutEffect},39592:(e,t,n)=>{"use strict";n.d(t,{uT:()=>E,Nv:()=>k,MQ:()=>w});var r=n(9597),i=n(68127),o=n(20752),a=n(80905),s=n(52718);let l=(0,a.forwardRef)((e,t)=>{let n=(0,i.f)(),a=(0,o.v6)(null==n?void 0:n.getSelectProps(),e);return(0,r.jsx)(s.X.select,{...a,ref:t})});l.displayName="FieldSelect";var u=n(43163),c=n(63276),d=n(45008),f=n(25651),h=n(23769),p=n(6644);let[g,v]=(0,u.q)({name:"NativeSelectBasePropsContext",hookName:"useNativeSelectBaseProps",providerName:"<NativeSelectRoot />",strict:!1}),{withProvider:m,useClassNames:b,useStyles:y,PropsProvider:x}=(0,f.c)({key:"nativeSelect"}),w=m("div","root",{wrapElement(e,t){var n,o;let a=(0,i.f)(),s=!!(null!=(n=null==a?void 0:a.disabled)?n:t.disabled),l=!!(null!=(o=null==a?void 0:a.invalid)?o:t.invalid);return(0,r.jsx)(g,{value:{disabled:s,invalid:l},children:e})}}),S=(0,h.B)(l,{},{forwardAsChild:!0}),E=(0,a.forwardRef)(function(e,t){let{children:n,placeholder:i,unstyled:o,...a}=e,{disabled:s,invalid:l}=v(),u=y(),f=b();return(0,r.jsxs)(S,{disabled:s,"data-invalid":(0,c.s)(l),...a,ref:t,className:(0,d.cx)(f.field,e.className),css:[o?void 0:u.field,e.css],children:[i&&(0,r.jsx)("option",{value:"",children:i}),n]})});function k(e){var t;let{unstyled:n,...i}=e,o=y(),{disabled:a,invalid:s}=v(),l=b();return(0,r.jsx)(h.B.div,{...i,"data-disabled":(0,c.s)(a),"data-invalid":(0,c.s)(s),className:(0,d.cx)(l.indicator,e.className),css:[n?void 0:o.indicator,e.css],children:null!=(t=e.children)?t:(0,r.jsx)(p.D3,{})})}},39690:e=>{e.exports=function(e,t){return e.has(t)}},39981:(e,t,n)=>{"use strict";n.d(t,{e:()=>l});var r=n(9597),i=n(80905),o=n(83289),a=n(68667),s=n(58449);let l=(0,i.forwardRef)(function(e,t){let n=(0,o.m)({key:"button"}),[l,u]=(0,i.useMemo)(()=>n.splitVariantProps(e),[e,n]);return(0,r.jsx)(a.O,{value:l,children:(0,r.jsx)(s.Y,{ref:t,...u})})})},40032:(e,t,n)=>{"use strict";n.d(t,{M:()=>c});var r=new WeakMap,i=new WeakMap,o={},a=0,s=e=>e&&(e.host||s(e.parentNode)),l=new Set(["script","output","status","next-route-announcer"]),u=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body;function c(e,t={}){let{defer:n=!0}=t,d=[];return d.push((n?e=>{let t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)}:e=>e())(()=>{let t=("function"==typeof e?e():e).filter(Boolean);0!==t.length&&d.push(((e,t=u(e),n="data-aria-hidden")=>{if(t)return((e,t)=>{let n,{parentNode:u,markerName:c,controlAttribute:d}=t,f=(n=u,(Array.isArray(e)?e:[e]).map(e=>{if(n.contains(e))return e;let t=s(e);return t&&n.contains(t)?t:(console.error("[zag-js > ariaHidden] target",e,"in not contained inside",n,". Doing nothing"),null)}).filter(e=>!!e));o[c]||(o[c]=new WeakMap);let h=o[c],p=[],g=new Set,v=new Set(f),m=e=>{!e||g.has(e)||(g.add(e),m(e.parentNode))};f.forEach(m);let b=e=>{!e||v.has(e)||Array.prototype.forEach.call(e.children,e=>{if(g.has(e))b(e);else try{let t;if(t=e,l.has(t.localName)||"status"===t.role||t.hasAttribute("aria-live")||t.matches("[data-live-announcer]"))return;let n=e.getAttribute(d),o="true"===n,a=(r.get(e)||0)+1,s=(h.get(e)||0)+1;r.set(e,a),h.set(e,s),p.push(e),1===a&&o&&i.set(e,!0),1===s&&e.setAttribute(c,""),o||e.setAttribute(d,"true")}catch(t){console.error("[zag-js > ariaHidden] cannot operate on ",e,t)}})};return b(u),g.clear(),a++,()=>{p.forEach(e=>{let t=r.get(e)-1,n=h.get(e)-1;r.set(e,t),h.set(e,n),t||(i.has(e)||e.removeAttribute(d),i.delete(e)),n||e.removeAttribute(c)}),--a||(r=new WeakMap,r=new WeakMap,i=new WeakMap,o={})}})(e,{parentNode:t,markerName:n,controlAttribute:"aria-hidden"})})(t))})),()=>{d.forEach(e=>e?.())}}},40096:(e,t,n)=>{var r=n(25224),i=n(4663);e.exports=function(e,t){return e&&r(e,t,i)}},40583:(e,t,n)=>{"use strict";var r=n(63780),i=n(91923),o=n(89612),a=n(48028),s=n(99601).normalizeRanks,l=n(47393),u=n(99601).removeEmptyRanks,c=n(51324),d=n(99634),f=n(94095),h=n(4408),p=n(91485),g=n(99601),v=n(621).Graph;e.exports=function(e,t){var n=t&&t.debugTiming?g.time:g.notime;n("layout",function(){var t=n(" buildLayoutGraph",function(){var t,n,i;return t=e,n=new v({multigraph:!0,compound:!0}),i=O(t.graph()),n.setGraph(r.merge({},b,C(i,m),r.pick(i,y))),r.forEach(t.nodes(),function(e){var i=O(t.node(e));n.setNode(e,r.defaults(C(i,x),w)),n.setParent(e,t.parent(e))}),r.forEach(t.edges(),function(e){var i=O(t.edge(e));n.setEdge(e,r.merge({},E,C(i,S),r.pick(i,k)))}),n});n(" runLayout",function(){var e,v;e=t,(v=n)(" makeSpaceForEdgeLabels",function(){var t,n;n=(t=e).graph(),n.ranksep/=2,r.forEach(t.edges(),function(e){var r=t.edge(e);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===n.rankdir||"BT"===n.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)})}),v(" removeSelfEdges",function(){var t;t=e,r.forEach(t.edges(),function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}})}),v(" acyclic",function(){i.run(e)}),v(" nestingGraph.run",function(){c.run(e)}),v(" rank",function(){a(g.asNonCompoundGraph(e))}),v(" injectEdgeLabelProxies",function(){var t;t=e,r.forEach(t.edges(),function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),i={rank:(t.node(e.w).rank-r.rank)/2+r.rank,e:e};g.addDummyNode(t,"edge-proxy",i,"_ep")}})}),v(" removeEmptyRanks",function(){u(e)}),v(" nestingGraph.cleanup",function(){c.cleanup(e)}),v(" normalizeRanks",function(){s(e)}),v(" assignRankMinMax",function(){var t,n;t=e,n=0,r.forEach(t.nodes(),function(e){var i=t.node(e);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,n=r.max(n,i.maxRank))}),t.graph().maxRank=n}),v(" removeEdgeLabelProxies",function(){var t;t=e,r.forEach(t.nodes(),function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))})}),v(" normalize.run",function(){o.run(e)}),v(" parentDummyChains",function(){l(e)}),v(" addBorderSegments",function(){d(e)}),v(" order",function(){h(e)}),v(" insertSelfEdges",function(){var t,n;t=e,n=g.buildLayerMatrix(t),r.forEach(n,function(e){var n=0;r.forEach(e,function(e,i){var o=t.node(e);o.order=i+n,r.forEach(o.selfEdges,function(e){g.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:o.rank,order:i+ ++n,e:e.e,label:e.label},"_se")}),delete o.selfEdges})})}),v(" adjustCoordinateSystem",function(){f.adjust(e)}),v(" position",function(){p(e)}),v(" positionSelfEdges",function(){var t;t=e,r.forEach(t.nodes(),function(e){var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),i=r.x+r.width/2,o=r.y,a=n.x-i,s=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*a/3,y:o-s},{x:i+5*a/6,y:o-s},{x:i+a,y:o},{x:i+5*a/6,y:o+s},{x:i+2*a/3,y:o+s}],n.label.x=n.x,n.label.y=n.y}})}),v(" removeBorderNodes",function(){var t;t=e,r.forEach(t.nodes(),function(e){if(t.children(e).length){var n=t.node(e),i=t.node(n.borderTop),o=t.node(n.borderBottom),a=t.node(r.last(n.borderLeft)),s=t.node(r.last(n.borderRight));n.width=Math.abs(s.x-a.x),n.height=Math.abs(o.y-i.y),n.x=a.x+n.width/2,n.y=i.y+n.height/2}}),r.forEach(t.nodes(),function(e){"border"===t.node(e).dummy&&t.removeNode(e)})}),v(" normalize.undo",function(){o.undo(e)}),v(" fixupEdgeLabelCoords",function(){var t;t=e,r.forEach(t.edges(),function(e){var n=t.edge(e);if(r.has(n,"x"))switch(("l"===n.labelpos||"r"===n.labelpos)&&(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}})}),v(" undoCoordinateSystem",function(){f.undo(e)}),v(" translateGraph",function(){!function(e){var t=1/0,n=0,i=1/0,o=0,a=e.graph(),s=a.marginx||0,l=a.marginy||0;function u(e){var r=e.x,a=e.y,s=e.width,l=e.height;t=Math.min(t,r-s/2),n=Math.max(n,r+s/2),i=Math.min(i,a-l/2),o=Math.max(o,a+l/2)}r.forEach(e.nodes(),function(t){u(e.node(t))}),r.forEach(e.edges(),function(t){var n=e.edge(t);r.has(n,"x")&&u(n)}),t-=s,i-=l,r.forEach(e.nodes(),function(n){var r=e.node(n);r.x-=t,r.y-=i}),r.forEach(e.edges(),function(n){var o=e.edge(n);r.forEach(o.points,function(e){e.x-=t,e.y-=i}),r.has(o,"x")&&(o.x-=t),r.has(o,"y")&&(o.y-=i)}),a.width=n-t+s,a.height=o-i+l}(e)}),v(" assignNodeIntersects",function(){var t;t=e,r.forEach(t.edges(),function(e){var n,r,i=t.edge(e),o=t.node(e.v),a=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=a,r=o),i.points.unshift(g.intersectRect(o,n)),i.points.push(g.intersectRect(a,r))})}),v(" reversePoints",function(){var t;t=e,r.forEach(t.edges(),function(e){var n=t.edge(e);n.reversed&&n.points.reverse()})}),v(" acyclic.undo",function(){i.undo(e)})}),n(" updateInputGraph",function(){var n,i;n=e,i=t,r.forEach(n.nodes(),function(e){var t=n.node(e),r=i.node(e);t&&(t.x=r.x,t.y=r.y,i.children(e).length&&(t.width=r.width,t.height=r.height))}),r.forEach(n.edges(),function(e){var t=n.edge(e),o=i.edge(e);t.points=o.points,r.has(o,"x")&&(t.x=o.x,t.y=o.y)}),n.graph().width=i.graph().width,n.graph().height=i.graph().height})})};var m=["nodesep","edgesep","ranksep","marginx","marginy"],b={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},y=["acyclicer","ranker","rankdir","align"],x=["width","height"],w={width:0,height:0},S=["minlen","weight","width","height","labeloffset"],E={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},k=["labelpos"];function C(e,t){return r.mapValues(r.pick(e,t),Number)}function O(e){var t={};return r.forEach(e,function(e,n){t[n.toLowerCase()]=e}),t}},40831:(e,t,n)=>{var r=n(57081),i=n(90563);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},40928:(e,t,n)=>{"use strict";n.d(t,{Aq:()=>y,Ng:()=>m,Os:()=>E,y$:()=>w});var r=n(6280),i=n(61696),o=n(20752),a=n(73520),s=n(77952),l=(0,i.y)("toast").parts("group","root","title","description","actionTrigger","closeTrigger").build(),u=(e,t)=>e.getById(`toast-group:${t}`),c=e=>`toast:${e.id}`,d=e=>e.getById(c(e)),f=e=>`toast:${e.id}:title`,h=e=>`toast:${e.id}:description`,p={info:5e3,error:5e3,success:2e3,loading:1/0,DEFAULT:5e3};function g(e,t){return e??p[t]??p.DEFAULT}var v=(0,o.Op)({props:({props:e})=>({dir:"ltr",id:(0,s.uR)(),...e,store:e.store}),initialState:({prop:e})=>e("store").attrs.overlap?"overlap":"stack",refs:()=>({lastFocusedEl:null,isFocusWithin:!1,dismissableCleanup:void 0}),context:({bindable:e})=>({toasts:e(()=>({defaultValue:[],sync:!0,hash:e=>e.map(e=>e.id).join(",")})),heights:e(()=>({defaultValue:[],sync:!0}))}),computed:{count:({context:e})=>e.get("toasts").length,overlap:({prop:e})=>e("store").attrs.overlap,placement:({prop:e})=>e("store").attrs.placement},effects:["subscribeToStore","trackDocumentVisibility","trackHotKeyPress"],watch({track:e,context:t,action:n}){e([()=>t.hash("toasts")],()=>{queueMicrotask(()=>{n(["collapsedIfEmpty","setDismissableBranch"])})})},exit:["clearDismissableBranch","clearLastFocusedEl"],on:{"DOC.HOTKEY":{actions:["focusRegionEl"]},"REGION.BLUR":[{guard:"isOverlapping",target:"overlap",actions:["collapseToasts","resumeToasts","restoreLastFocusedEl"]},{target:"stack",actions:["resumeToasts","restoreLastFocusedEl"]}],"TOAST.REMOVE":{actions:["removeToast","removeHeight"]},"TOAST.PAUSE":{actions:["pauseToasts"]}},states:{stack:{on:{"REGION.POINTER_LEAVE":[{guard:"isOverlapping",target:"overlap",actions:["resumeToasts","collapseToasts"]},{actions:["resumeToasts"]}],"REGION.OVERLAP":{target:"overlap",actions:["collapseToasts"]},"REGION.FOCUS":{actions:["setLastFocusedEl","pauseToasts"]},"REGION.POINTER_ENTER":{actions:["pauseToasts"]}}},overlap:{on:{"REGION.STACK":{target:"stack",actions:["expandToasts"]},"REGION.POINTER_ENTER":{target:"stack",actions:["pauseToasts","expandToasts"]},"REGION.FOCUS":{target:"stack",actions:["setLastFocusedEl","pauseToasts","expandToasts"]}}}},implementations:{guards:{isOverlapping:({computed:e})=>e("overlap")},effects:{subscribeToStore:({context:e,prop:t})=>t("store").subscribe(t=>{if(t.dismiss)return void e.set("toasts",e=>e.filter(e=>e.id!==t.id));e.set("toasts",e=>{let n=e.findIndex(e=>e.id===t.id);return -1!==n?[...e.slice(0,n),{...e[n],...t},...e.slice(n+1)]:[t,...e]})}),trackHotKeyPress:({prop:e,send:t})=>(0,r.kn)(document,"keydown",n=>{let{hotkey:r}=e("store").attrs;r.every(e=>n[e]||n.code===e)&&t({type:"DOC.HOTKEY"})},{capture:!0}),trackDocumentVisibility({prop:e,send:t,scope:n}){let{pauseOnPageIdle:i}=e("store").attrs;if(!i)return;let o=n.getDoc();return(0,r.kn)(o,"visibilitychange",()=>{t({type:"hidden"===o.visibilityState?"PAUSE_ALL":"RESUME_ALL"})})}},actions:{setDismissableBranch({refs:e,context:t,computed:n,scope:r}){let i=t.get("toasts"),o=n("placement"),s=i.length>0;if(!s)return void e.get("dismissableCleanup")?.();if(s&&e.get("dismissableCleanup"))return;let l=(0,a.S)(()=>u(r,o),{defer:!0});e.set("dismissableCleanup",l)},clearDismissableBranch({refs:e}){e.get("dismissableCleanup")?.()},focusRegionEl({scope:e,computed:t}){queueMicrotask(()=>{u(e,t("placement"))?.focus()})},pauseToasts({prop:e}){e("store").pause()},resumeToasts({prop:e}){e("store").resume()},expandToasts({prop:e}){e("store").expand()},collapseToasts({prop:e}){e("store").collapse()},removeToast({prop:e,event:t}){e("store").remove(t.id)},removeHeight({event:e,context:t}){e?.id!=null&&queueMicrotask(()=>{t.set("heights",t=>t.filter(t=>t.id!==e.id))})},collapsedIfEmpty({send:e,computed:t}){!t("overlap")||t("count")>1||e({type:"REGION.OVERLAP"})},setLastFocusedEl({refs:e,event:t}){!e.get("isFocusWithin")&&t.target&&(e.set("isFocusWithin",!0),e.set("lastFocusedEl",t.target))},restoreLastFocusedEl({refs:e}){e.get("lastFocusedEl")&&(e.get("lastFocusedEl")?.focus({preventScroll:!0}),e.set("lastFocusedEl",null),e.set("isFocusWithin",!1))},clearLastFocusedEl({refs:e}){e.get("lastFocusedEl")&&(e.get("lastFocusedEl")?.focus({preventScroll:!0}),e.set("lastFocusedEl",null),e.set("isFocusWithin",!1))}}}});function m(e,t){let{state:n,send:i,prop:o,scope:a,context:s,computed:u}=e,d=n.hasTag("visible"),p=n.hasTag("paused"),g=s.get("mounted"),v=u("frontmost"),m=o("parent").computed("placement"),b=o("type"),y=o("stacked"),x=o("title"),w=o("description"),S=o("action"),[E,k="center"]=m.split("-");return{type:b,title:x,description:w,placement:m,visible:d,paused:p,closable:!!o("closable"),pause(){i({type:"PAUSE"})},resume(){i({type:"RESUME"})},dismiss(){i({type:"DISMISS",src:"programmatic"})},getRootProps:()=>t.element({...l.root.attrs,dir:o("dir"),id:c(a),"data-state":d?"open":"closed","data-type":b,"data-placement":m,"data-align":k,"data-side":E,"data-mounted":(0,r.sE)(g),"data-paused":(0,r.sE)(p),"data-first":(0,r.sE)(v),"data-sibling":(0,r.sE)(!v),"data-stack":(0,r.sE)(y),"data-overlap":(0,r.sE)(!y),role:"status","aria-atomic":"true","aria-describedby":w?h(a):void 0,"aria-labelledby":x?f(a):void 0,tabIndex:0,style:function(e,t){let{prop:n,context:r,computed:i}=e,o=n("parent"),a=o.computed("placement"),{gap:s}=o.prop("store").attrs,[l]=a.split("-"),u=r.get("mounted"),c=r.get("remainingTime"),d=i("height"),f=i("frontmost"),h=!f,p=!n("stacked"),g=n("stacked"),v="loading"===n("type")?Number.MAX_SAFE_INTEGER:c,m=i("heightIndex")*s+i("heightBefore"),b={position:"absolute",pointerEvents:"auto","--opacity":"0","--remove-delay":`${n("removeDelay")}ms`,"--duration":`${v}ms`,"--initial-height":`${d}px`,"--offset":`${m}px`,"--index":n("index"),"--z-index":i("zIndex"),"--lift-amount":"calc(var(--lift) * var(--gap))","--y":"100%","--x":"0"},y=e=>Object.assign(b,e);return"top"===l?y({top:"0","--sign":"-1","--y":"-100%","--lift":"1"}):"bottom"===l&&y({bottom:"0","--sign":"1","--y":"100%","--lift":"-1"}),u&&(y({"--y":"0","--opacity":"1"}),g&&y({"--y":"calc(var(--lift) * var(--offset))","--height":"var(--initial-height)"})),t||y({"--opacity":"0",pointerEvents:"none"}),h&&p&&(y({"--base-scale":"var(--index) * 0.05 + 1","--y":"calc(var(--lift-amount) * var(--index))","--scale":"calc(-1 * var(--base-scale))","--height":"var(--first-height)"}),t||y({"--y":"calc(var(--sign) * 40%)"})),h&&g&&!t&&y({"--y":"calc(var(--lift) * var(--offset) + var(--lift) * -100%)"}),f&&!t&&y({"--y":"calc(var(--lift) * -100%)"}),b}(e,d),onKeyDown(e){e.defaultPrevented||"Escape"==e.key&&(i({type:"DISMISS",src:"keyboard"}),e.preventDefault())}}),getGhostBeforeProps:()=>t.element({"data-ghost":"before",style:function(e,t){let{computed:n}=e,r={position:"absolute",inset:"0",scale:"1 2",pointerEvents:t?"none":"auto"};return n("frontmost")&&!t&&Object.assign(r,{height:"calc(var(--initial-height) + 80%)"}),r}(e,d)}),getGhostAfterProps:()=>t.element({"data-ghost":"after",style:{position:"absolute",left:"0",height:"calc(var(--gap) + 2px)",bottom:"100%",width:"100%"}}),getTitleProps:()=>t.element({...l.title.attrs,id:f(a)}),getDescriptionProps:()=>t.element({...l.description.attrs,id:h(a)}),getActionTriggerProps:()=>t.button({...l.actionTrigger.attrs,type:"button",onClick(e){e.defaultPrevented||(S?.onClick?.(),i({type:"DISMISS",src:"user"}))}}),getCloseTriggerProps:()=>t.button({id:`toast${a.id}:close`,...l.closeTrigger.attrs,type:"button","aria-label":"Dismiss notification",onClick(e){e.defaultPrevented||i({type:"DISMISS",src:"user"})}})}}var{not:b}=(0,o.b6)(),y=(0,o.Op)({props:({props:e})=>((0,s.Pe)(e,["id","type","parent","removeDelay"],"toast"),{closable:!0,...e,duration:g(e.duration,e.type)}),initialState:({prop:e})=>"loading"===e("type")||e("duration")===1/0?"visible:persist":"visible",context:({prop:e,bindable:t})=>({remainingTime:t(()=>({defaultValue:g(e("duration"),e("type"))})),createdAt:t(()=>({defaultValue:Date.now()})),mounted:t(()=>({defaultValue:!1})),initialHeight:t(()=>({defaultValue:0}))}),refs:()=>({closeTimerStartTime:Date.now(),lastCloseStartTimerStartTime:0}),computed:{zIndex:({prop:e})=>{let t=e("parent").context.get("toasts"),n=t.findIndex(t=>t.id===e("id"));return t.length-n},height:({prop:e})=>{let t=e("parent").context.get("heights").find(t=>t.id===e("id"));return t?.height??0},heightIndex:({prop:e})=>e("parent").context.get("heights").findIndex(t=>t.id===e("id")),frontmost:({prop:e})=>0===e("index"),heightBefore:({prop:e})=>{let t=e("parent").context.get("heights"),n=t.findIndex(t=>t.id===e("id"));return t.reduce((e,t,r)=>r>=n?e:e+t.height,0)},shouldPersist:({prop:e})=>"loading"===e("type")||e("duration")===1/0},watch({track:e,prop:t,send:n}){e([()=>t("message")],()=>{let e=t("message");e&&n({type:e,src:"programmatic"})}),e([()=>t("type"),()=>t("duration")],()=>{n({type:"UPDATE"})})},on:{UPDATE:[{guard:"shouldPersist",target:"visible:persist",actions:["resetCloseTimer"]},{target:"visible:updating",actions:["resetCloseTimer"]}],MEASURE:{actions:["measureHeight"]}},entry:["setMounted","measureHeight","invokeOnVisible"],effects:["trackHeight"],states:{"visible:updating":{tags:["visible","updating"],effects:["waitForNextTick"],on:{SHOW:{target:"visible"}}},"visible:persist":{tags:["visible","paused"],on:{RESUME:{guard:b("isLoadingType"),target:"visible",actions:["setCloseTimer"]},DISMISS:{target:"dismissing"}}},visible:{tags:["visible"],effects:["waitForDuration"],on:{DISMISS:{target:"dismissing"},PAUSE:{target:"visible:persist",actions:["syncRemainingTime"]}}},dismissing:{entry:["invokeOnDismiss"],effects:["waitForRemoveDelay"],on:{REMOVE:{target:"unmounted",actions:["notifyParentToRemove"]}}},unmounted:{entry:["invokeOnUnmount"]}},implementations:{effects:{waitForRemoveDelay:({prop:e,send:t})=>(0,s.bK)(()=>{t({type:"REMOVE",src:"timer"})},e("removeDelay")),waitForDuration({send:e,context:t,computed:n}){if(!n("shouldPersist"))return(0,s.bK)(()=>{e({type:"DISMISS",src:"timer"})},t.get("remainingTime"))},waitForNextTick:({send:e})=>(0,s.bK)(()=>{e({type:"SHOW",src:"timer"})},0),trackHeight({scope:e,prop:t}){let n;return(0,r.er)(()=>{let r=d(e);if(!r)return;let i=new(e.getWin()).MutationObserver(()=>{let e=r.style.height;r.style.height="auto";let n=r.getBoundingClientRect().height;r.style.height=e;let i={id:t("id"),height:n};x(t("parent"),i)});i.observe(r,{childList:!0,subtree:!0,characterData:!0}),n=()=>i.disconnect()}),()=>n?.()}},guards:{isLoadingType:({prop:e})=>"loading"===e("type"),shouldPersist:({computed:e})=>e("shouldPersist")},actions:{setMounted({context:e}){(0,r.er)(()=>{e.set("mounted",!0)})},measureHeight({scope:e,prop:t,context:n}){queueMicrotask(()=>{let r=d(e);if(!r)return;let i=r.style.height;r.style.height="auto";let o=r.getBoundingClientRect().height;r.style.height=i,n.set("initialHeight",o);let a={id:t("id"),height:o};x(t("parent"),a)})},setCloseTimer({refs:e}){e.set("closeTimerStartTime",Date.now())},resetCloseTimer({context:e,refs:t,prop:n}){t.set("closeTimerStartTime",Date.now()),e.set("remainingTime",g(n("duration"),n("type")))},syncRemainingTime({context:e,refs:t}){e.set("remainingTime",e=>{let n=t.get("closeTimerStartTime"),r=Date.now()-n;return t.set("lastCloseStartTimerStartTime",Date.now()),e-r})},notifyParentToRemove({prop:e}){e("parent").send({type:"TOAST.REMOVE",id:e("id")})},invokeOnDismiss({prop:e,event:t}){e("onStatusChange")?.({status:"dismissing",src:t.src})},invokeOnUnmount({prop:e}){e("onStatusChange")?.({status:"unmounted"})},invokeOnVisible({prop:e}){e("onStatusChange")?.({status:"visible"})}}}});function x(e,t){let{id:n,height:r}=t;e.context.set("heights",e=>e.find(e=>e.id===n)?e.map(e=>e.id===n?{...e,height:r}:e):[{id:n,height:r},...e])}function w(e){let t={placement:"bottom",overlap:!1,max:24,gap:16,offsets:"1rem",hotkey:["altKey","KeyT"],removeDelay:200,pauseOnPageIdle:!0,...(0,s.oE)(e)},n=[],r=[],i=new Set,o=[],a=e=>(n.forEach(t=>t(e)),e),l=e=>{let n=e.id??`toast:${(0,s.uR)()}`,l=r.find(e=>e.id===n);return i.has(n)&&i.delete(n),l?r=r.map(t=>t.id===n?a({...t,...e,id:n}):t):(e=>{if(r.length>=t.max)return o.push(e);a(e),r.unshift(e)})({id:n,duration:t.duration,removeDelay:t.removeDelay,type:"info",...e,stacked:!t.overlap,gap:t.gap}),n},u=e=>{if(i.add(e),e)for(n.forEach(t=>t({id:e,dismiss:!0})),r=r.filter(t=>t.id!==e);o.length>0&&r.length<t.max;){let e=o.shift();e&&(a(e),r.unshift(e))}else r.forEach(e=>{n.forEach(t=>t({id:e.id,dismiss:!0}))}),r=[],o=[];return e};return{attrs:t,subscribe:e=>(n.push(e),()=>{let t=n.indexOf(e);n.splice(t,1)}),create:l,update:(e,t)=>l({id:e,...t}),remove:u,dismiss:e=>{r=null!=e?r.map(t=>t.id===e?a({...t,message:"DISMISS"}):t):r.map(e=>a({...e,message:"DISMISS"}))},error:e=>l({...e,type:"error"}),success:e=>l({...e,type:"success"}),info:e=>l({...e,type:"info"}),warning:e=>l({...e,type:"warning"}),loading:e=>l({...e,type:"loading"}),getVisibleToasts:()=>r.filter(e=>!i.has(e.id)),getCount:()=>r.length,promise:(e,t,n={})=>{let r;if(!t||!t.loading)return void(0,s.R8)("[zag-js > toast] toaster.promise() requires at least a 'loading' option to be specified");let i=l({...n,...t.loading,promise:e,type:"loading"}),o=!0,a=(0,s.Jg)(e).then(async e=>{if(r=["resolve",e],S(e)&&!e.ok){o=!1;let r=(0,s.Jg)(t.error,`HTTP Error! status: ${e.status}`);l({...n,...r,id:i,type:"error"})}else if(void 0!==t.success){o=!1;let r=(0,s.Jg)(t.success,e);l({...n,...r,id:i,type:"success"})}}).catch(async e=>{if(r=["reject",e],void 0!==t.error){o=!1;let r=(0,s.Jg)(t.error,e);l({...n,...r,id:i,type:"error"})}}).finally(()=>{o&&u(i),t.finally?.()});return{id:i,unwrap:()=>new Promise((e,t)=>a.then(()=>"reject"===r[0]?t(r[1]):e(r[1])).catch(t))}},pause:e=>{r=null!=e?r.map(t=>t.id===e?a({...t,message:"PAUSE"}):t):r.map(e=>a({...e,message:"PAUSE"}))},resume:e=>{r=null!=e?r.map(t=>t.id===e?a({...t,message:"RESUME"}):t):r.map(e=>a({...e,message:"RESUME"}))},isVisible:e=>!i.has(e)&&!!r.find(t=>t.id===e),isDismissed:e=>i.has(e),expand:()=>{r=r.map(e=>a({...e,stacked:!0}))},collapse:()=>{r=r.map(e=>a({...e,stacked:!1}))}}}var S=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,E={connect:function(e,t){let{context:n,prop:i,send:o,refs:a,computed:s}=e;return{getCount:()=>n.get("toasts").length,getToasts:()=>n.get("toasts"),getGroupProps(n={}){let{label:u="Notifications"}=n,{hotkey:c}=i("store").attrs,d=c.join("+").replace(/Key/g,"").replace(/Digit/g,""),f=s("placement"),[h,p="center"]=f.split("-");return t.element({...l.group.attrs,dir:i("dir"),tabIndex:-1,"aria-label":`${f} ${u} ${d}`,id:`toast-group:${f}`,"data-placement":f,"data-side":h,"data-align":p,"aria-live":"polite",role:"region",style:function(e,t){let{prop:n,computed:i,context:o}=e,{offsets:a,gap:s}=n("store").attrs,l=o.get("heights"),u="string"==typeof a?{left:a,right:a,bottom:a,top:a}:a,c="rtl"===n("dir"),d=t.replace("-start",c?"-right":"-left").replace("-end",c?"-left":"-right"),f=d.includes("right"),h=d.includes("left"),p={position:"fixed",pointerEvents:i("count")>0?void 0:"none",display:"flex",flexDirection:"column","--gap":`${s}px`,"--first-height":`${l[0]?.height||0}px`,zIndex:r.hx},g="center";if(f&&(g="flex-end"),h&&(g="flex-start"),p.alignItems=g,d.includes("top")){let e=u.top;p.top=`max(env(safe-area-inset-top, 0px), ${e})`}if(d.includes("bottom")){let e=u.bottom;p.bottom=`max(env(safe-area-inset-bottom, 0px), ${e})`}if(!d.includes("left")){let e=u.right;p.insetInlineEnd=`calc(env(safe-area-inset-right, 0px) + ${e})`}if(!d.includes("right")){let e=u.left;p.insetInlineStart=`calc(env(safe-area-inset-left, 0px) + ${e})`}return p}(e,f),onMouseMove(){o({type:"REGION.POINTER_ENTER",placement:f})},onMouseLeave(){o({type:"REGION.POINTER_LEAVE",placement:f})},onFocus(e){o({type:"REGION.FOCUS",target:e.relatedTarget})},onBlur(e){a.get("isFocusWithin")&&!(0,r.gR)(e.currentTarget,e.relatedTarget)&&queueMicrotask(()=>o({type:"REGION.BLUR"}))}})},subscribe:e=>i("store").subscribe(()=>e(n.get("toasts")))}},machine:v}},40935:(e,t,n)=>{var r=n(62155),i=n(23503);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},41063:(e,t,n)=>{"use strict";n.d(t,{SQ:()=>c,W9:()=>l,ZD:()=>h,oo:()=>f});var r=n(61801);let i="pushState",o="replaceState",a=["popstate",i,o,"hashchange"],s=e=>{for(let t of a)addEventListener(t,e);return()=>{for(let t of a)removeEventListener(t,e)}},l=(e,t)=>(0,r.rz)(s,e,t),u=()=>location.search,c=({ssrSearch:e=""}={})=>l(u,()=>e),d=()=>location.pathname,f=(e,{replace:t=!1,state:n=null}={})=>history[t?o:i](n,"",e),h=(e={})=>[(({ssrPath:e}={})=>l(d,e?()=>e:d))(e),f],p=Symbol.for("wouter_v3");if("undefined"!=typeof history&&void 0===window[p]){for(let e of[i,o]){let t=history[e];history[e]=function(){let n=t.apply(this,arguments),r=new Event(e);return r.arguments=arguments,dispatchEvent(r),n}}Object.defineProperty(window,p,{value:!0})}},41438:(e,t,n)=>{var r=n(97348),i=n(16966),o=n(96724),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var s in e)"constructor"==s&&(t||!a.call(e,s))||n.push(s);return n}},42162:(e,t,n)=>{"use strict";function r(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}n.d(t,{Rk:()=>r,SF:()=>i,sk:()=>o});var i=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},o=function(e,t,n){i(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next;while(void 0!==o)}}},42345:(e,t,n)=>{var r=n(24287),i=0;e.exports=function(e){var t=++i;return r(e)+t}},42347:(e,t,n)=>{"use strict";n.d(t,{q:()=>i});var r=n(80905);function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{name:t,strict:n=!0,hookName:i="useContext",providerName:o="Provider",errorMessage:a,defaultValue:s}=e,l=(0,r.createContext)(s);return l.displayName=t,[l.Provider,function e(){let t=(0,r.useContext)(l);if(!t&&n){var s,u;let t=Error(null!=a?a:"".concat(i," returned `undefined`. Seems you forgot to wrap component within ").concat(o));throw t.name="ContextError",null==(s=(u=Error).captureStackTrace)||s.call(u,t,e),t}return t},l]}},42500:(e,t,n)=>{"use strict";n.d(t,{p:()=>d});var r=n(9597),i=n(20752),o=n(80905),a=n(52718),s=n(68127);let l=(0,o.forwardRef)((e,t)=>{let n=(0,s.f)(),o=(0,i.v6)(null==n?void 0:n.getInputProps(),e);return(0,r.jsx)(a.X.input,{...o,ref:t})});l.displayName="FieldInput";let{withContext:u,PropsProvider:c}=(0,n(12580).a)({key:"input"}),d=u(l)},42722:(e,t,n)=>{"use strict";var r=n(68454),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var i=h(n);i&&i!==p&&e(t,i,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=l(t),g=l(n),v=0;v<a.length;++v){var m=a[v];if(!o[m]&&!(r&&r[m])&&!(g&&g[m])&&!(s&&s[m])){var b=f(n,m);try{u(t,m,b)}catch(e){}}}}return t}},43146:(e,t,n)=>{var r=n(92970),i=n(57286),o=n(33902);e.exports=function(e,t,n){return t==t?o(e,t,n):r(e,i,n)}},43163:(e,t,n)=>{"use strict";n.d(t,{q:()=>i});var r=n(80905);function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{name:t,strict:n=!0,hookName:i="useContext",providerName:o="Provider",errorMessage:a,defaultValue:s}=e,l=(0,r.createContext)(s);return l.displayName=t,[l.Provider,function e(){let t=(0,r.useContext)(l);if(!t&&n){var s,u;let t=Error(null!=a?a:"".concat(i," returned `undefined`. Seems you forgot to wrap component within ").concat(o));throw t.name="ContextError",null==(s=(u=Error).captureStackTrace)||s.call(u,t,e),t}return t},l]}},43282:(e,t,n)=>{var r=n(46872);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},43358:e=>{var t=Math.ceil,n=Math.max;e.exports=function(e,r,i,o){for(var a=-1,s=n(t((r-e)/(i||1)),0),l=Array(s);s--;)l[o?s:++a]=e,e+=i;return l}},43517:(e,t,n)=>{var r=n(35724),i=n(90563);e.exports=function(e){return i(e)&&"[object Map]"==r(e)}},43762:(e,t,n)=>{"use strict";n.d(t,{t:()=>o});var r=n(36621),i=n(70465),o=new class extends r.Q{#o=!0;#a;#s;constructor(){super(),this.#s=e=>{if(!i.S$&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#a||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#a?.(),this.#a=void 0)}setEventListener(e){this.#s=e,this.#a?.(),this.#a=e(this.setOnline.bind(this))}setOnline(e){this.#o!==e&&(this.#o=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#o}}},43857:(e,t,n)=>{"use strict";n.d(t,{LN:()=>F,Ay:()=>z,zr:()=>D});var r=n(37551),i=n(11954),o=n(92740),a=Array.prototype.find;function s(){return this.firstElementChild}var l=Array.prototype.filter;function u(){return Array.from(this.children)}function c(e){return Array(e.length)}function d(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function f(e,t,n,r,i,o){for(var a,s=0,l=t.length,u=o.length;s<u;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new d(e,o[s]);for(;s<l;++s)(a=t[s])&&(i[s]=a)}function h(e,t,n,r,i,o,a){var s,l,u,c=new Map,f=t.length,h=o.length,p=Array(f);for(s=0;s<f;++s)(l=t[s])&&(p[s]=u=a.call(l,l.__data__,s,t)+"",c.has(u)?i[s]=l:c.set(u,l));for(s=0;s<h;++s)u=a.call(e,o[s],s,o)+"",(l=c.get(u))?(r[s]=l,l.__data__=o[s],c.delete(u)):n[s]=new d(e,o[s]);for(s=0;s<f;++s)(l=t[s])&&c.get(p[s])===l&&(i[s]=l)}function p(e){return e.__data__}function g(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}d.prototype={constructor:d,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var v=n(83413),m=n(99122);function b(e){return e.trim().split(/^|\s+/)}function y(e){return e.classList||new x(e)}function x(e){this._node=e,this._names=b(e.getAttribute("class")||"")}function w(e,t){for(var n=y(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function S(e,t){for(var n=y(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function E(){this.textContent=""}function k(){this.innerHTML=""}function C(){this.nextSibling&&this.parentNode.appendChild(this)}function O(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}x.prototype={add:function(e){0>this._names.indexOf(e)&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var I=n(61506);function _(e){var t=(0,v.A)(e);return(t.local?function(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}:function(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===I.g&&t.documentElement.namespaceURI===I.g?t.createElement(e):t.createElementNS(n,e)}})(t)}function T(){return null}function P(){var e=this.parentNode;e&&e.removeChild(this)}function R(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function A(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function N(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r<o;++r)(n=t[r],e.type&&n.type!==e.type||n.name!==e.name)?t[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?t.length=i:delete this.__on}}}function M(e,t,n){return function(){var r,i=this.__on,o=function(e){t.call(this,e,this.__data__)};if(i){for(var a=0,s=i.length;a<s;++a)if((r=i[a]).type===e.type&&r.name===e.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),r.value=t;return}}this.addEventListener(e.type,o,n),r={type:e.type,name:e.name,value:t,listener:o,options:n},i?i.push(r):this.__on=[r]}}var L=n(67610);function V(e,t,n){var r=(0,L.A)(e),i=r.CustomEvent;"function"==typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}var D=[null];function F(e,t){this._groups=e,this._parents=t}function j(){return new F([[document.documentElement]],D)}F.prototype=j.prototype={constructor:F,select:function(e){"function"!=typeof e&&(e=(0,r.A)(e));for(var t=this._groups,n=t.length,i=Array(n),o=0;o<n;++o)for(var a,s,l=t[o],u=l.length,c=i[o]=Array(u),d=0;d<u;++d)(a=l[d])&&(s=e.call(a,a.__data__,d,l))&&("__data__"in a&&(s.__data__=a.__data__),c[d]=s);return new F(i,this._parents)},selectAll:function(e){if("function"==typeof e){var t;t=e,e=function(){var e;return e=t.apply(this,arguments),null==e?[]:Array.isArray(e)?e:Array.from(e)}}else e=(0,i.A)(e);for(var n=this._groups,r=n.length,o=[],a=[],s=0;s<r;++s)for(var l,u=n[s],c=u.length,d=0;d<c;++d)(l=u[d])&&(o.push(e.call(l,l.__data__,d,u)),a.push(l));return new F(o,a)},selectChild:function(e){var t;return this.select(null==e?s:(t="function"==typeof e?e:(0,o.j)(e),function(){return a.call(this.children,t)}))},selectChildren:function(e){var t;return this.selectAll(null==e?u:(t="function"==typeof e?e:(0,o.j)(e),function(){return l.call(this.children,t)}))},filter:function(e){"function"!=typeof e&&(e=(0,o.A)(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a,s=t[i],l=s.length,u=r[i]=[],c=0;c<l;++c)(a=s[c])&&e.call(a,a.__data__,c,s)&&u.push(a);return new F(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,p);var n=t?h:f,r=this._parents,i=this._groups;"function"!=typeof e&&(w=e,e=function(){return w});for(var o=i.length,a=Array(o),s=Array(o),l=Array(o),u=0;u<o;++u){var c=r[u],d=i[u],g=d.length,v="object"==typeof(x=e.call(c,c&&c.__data__,u,r))&&"length"in x?x:Array.from(x),m=v.length,b=s[u]=Array(m),y=a[u]=Array(m);n(c,d,b,y,l[u]=Array(g),v,t);for(var x,w,S,E,k=0,C=0;k<m;++k)if(S=b[k]){for(k>=C&&(C=k+1);!(E=y[C])&&++C<m;);S._next=E||null}}return(a=new F(a,r))._enter=s,a._exit=l,a},enter:function(){return new F(this._enter||this._groups.map(c),this._parents)},exit:function(){return new F(this._exit||this._groups.map(c),this._parents)},join:function(e,t,n){var r=this.enter(),i=this,o=this.exit();return"function"==typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(i=t(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,o=r.length,a=Math.min(i,o),s=Array(i),l=0;l<a;++l)for(var u,c=n[l],d=r[l],f=c.length,h=s[l]=Array(f),p=0;p<f;++p)(u=c[p]||d[p])&&(h[p]=u);for(;l<i;++l)s[l]=n[l];return new F(s,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=g);for(var n=this._groups,r=n.length,i=Array(r),o=0;o<r;++o){for(var a,s=n[o],l=s.length,u=i[o]=Array(l),c=0;c<l;++c)(a=s[c])&&(u[c]=a);u.sort(t)}return new F(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){let e=0;for(let t of this)++e;return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,o=t[n],a=0,s=o.length;a<s;++a)(i=o[a])&&e.call(i,i.__data__,a,o);return this},attr:function(e,t){var n=(0,v.A)(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}}:"function"==typeof t?n.local?function(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}:function(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}:n.local?function(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}:function(e,t){return function(){this.setAttribute(e,t)}})(n,t))},style:m.A,property:function(e,t){return arguments.length>1?this.each((null==t?function(e){return function(){delete this[e]}}:"function"==typeof t?function(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}:function(e,t){return function(){this[e]=t}})(e,t)):this.node()[e]},classed:function(e,t){var n=b(e+"");if(arguments.length<2){for(var r=y(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof t?function(e,t){return function(){(t.apply(this,arguments)?w:S)(this,e)}}:t?function(e){return function(){w(this,e)}}:function(e){return function(){S(this,e)}})(n,t))},text:function(e){return arguments.length?this.each(null==e?E:("function"==typeof e?function(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}:function(e){return function(){this.textContent=e}})(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?k:("function"==typeof e?function(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}:function(e){return function(){this.innerHTML=e}})(e)):this.node().innerHTML},raise:function(){return this.each(C)},lower:function(){return this.each(O)},append:function(e){var t="function"==typeof e?e:_(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},insert:function(e,t){var n="function"==typeof e?e:_(e),i=null==t?T:"function"==typeof t?t:(0,r.A)(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function(){return this.each(P)},clone:function(e){return this.select(e?A:R)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,o=(e+"").trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}),a=o.length;if(arguments.length<2){var s=this.node().__on;if(s){for(var l,u=0,c=s.length;u<c;++u)for(r=0,l=s[u];r<a;++r)if((i=o[r]).type===l.type&&i.name===l.name)return l.value}return}for(r=0,s=t?M:N;r<a;++r)this.each(s(o[r],t,n));return this},dispatch:function(e,t){return this.each(("function"==typeof t?function(e,t){return function(){return V(this,e,t.apply(this,arguments))}}:function(e,t){return function(){return V(this,e,t)}})(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r,i=e[t],o=0,a=i.length;o<a;++o)(r=i[o])&&(yield r)}};let z=j},44099:(e,t,n)=>{var r=n(272),i=n(44412),o=n(25224),a=n(69105),s=n(97348),l=n(91512),u=n(61807);e.exports=function e(t,n,c,d,f){t!==n&&o(n,function(o,l){if(f||(f=new r),s(o))a(t,n,l,c,e,d,f);else{var h=d?d(u(t,l),o,l+"",t,n,f):void 0;void 0===h&&(h=o),i(t,l,h)}},l)}},44164:(e,t,n)=>{e.exports=n(87799)(n(94848))},44412:(e,t,n)=>{var r=n(81665),i=n(79905);e.exports=function(e,t,n){(void 0===n||i(e[t],n))&&(void 0!==n||t in e)||r(e,t,n)}},44771:(e,t,n)=>{e.exports={graphlib:n(621),layout:n(40583),debug:n(91752),util:{time:n(99601).time,notime:n(99601).notime},version:n(68763)}},44901:(e,t,n)=>{e.exports={Graph:n(41),version:n(28817)}},44930:(e,t,n)=>{"use strict";let r;function i(e){return e+.5|0}n.d(t,{$:()=>tu,A:()=>eA,B:()=>eR,C:()=>ts,D:()=>eS,E:()=>tx,F:()=>U,G:()=>tY,H:()=>el,I:()=>tU,J:()=>tJ,K:()=>tQ,L:()=>ej,M:()=>tB,N:()=>eg,O:()=>D,P:()=>er,Q:()=>B,R:()=>tE,S:()=>eI,T:()=>ei,U:()=>ex,V:()=>tt,W:()=>e_,X:()=>tr,Y:()=>tl,Z:()=>tf,_:()=>eD,a:()=>tS,a0:()=>tw,a1:()=>eB,a2:()=>eU,a3:()=>e4,a4:()=>G,a5:()=>J,a6:()=>e6,a7:()=>ee,a8:()=>function e(t,n,r,i){return new Proxy({_cacheable:!1,_proxy:t,_context:n,_subProxy:r,_stack:new Set,_descriptors:tO(t,i),setContext:n=>e(t,n,r,i),override:o=>e(t.override(o),n,r,i)},{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,n,r)=>tT(t,n,()=>(function(t,n,r){let{_proxy:i,_context:o,_subProxy:a,_descriptors:s}=t,l=i[n];return ee(l)&&s.isScriptable(n)&&(l=function(e,t,n,r){let{_proxy:i,_context:o,_subProxy:a,_stack:s}=n;if(s.has(e))throw Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(o,a||r);return s.delete(e),t_(e,l)&&(l=tR(i._scopes,i,e,l)),l}(n,l,t,r)),M(l)&&l.length&&(l=function(t,n,r,i){let{_proxy:o,_context:a,_subProxy:s,_descriptors:l}=r;if(void 0!==a.index&&i(t))return n[a.index%n.length];if(L(n[0])){let r=n,i=o._scopes.filter(e=>e!==r);for(let u of(n=[],r)){let r=tR(i,o,t,u);n.push(e(r,a,s&&s[t],l))}}return n}(n,l,t,s.isIndexable)),t_(n,l)&&(l=e(l,o,a&&a[n],s)),l})(t,n,r)),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,r)=>(t[n]=r,delete e[n],!0)})},a9:()=>tC,aA:()=>t2,aB:()=>t5,aC:()=>eW,aD:()=>t3,aE:()=>ta,aF:()=>eE,aG:()=>R,aH:()=>eb,aI:()=>ep,aJ:()=>em,aK:()=>eh,aL:()=>ew,aM:()=>e3,aN:()=>ed,aO:()=>tn,aP:()=>eN,aQ:()=>eP,aa:()=>tO,ab:()=>K,ac:()=>A,ad:()=>ez,ae:()=>tX,af:()=>ti,ag:()=>et,ah:()=>nr,ai:()=>W,aj:()=>en,ak:()=>eT,al:()=>eC,am:()=>tm,an:()=>tz,ao:()=>t9,ap:()=>t7,aq:()=>t0,ar:()=>t1,as:()=>tZ,at:()=>tc,au:()=>td,av:()=>to,aw:()=>th,ax:()=>tb,ay:()=>ty,az:()=>t8,b:()=>M,c:()=>eQ,d:()=>te,e:()=>eY,f:()=>Q,g:()=>V,h:()=>Z,i:()=>L,j:()=>tk,k:()=>N,l:()=>eL,m:()=>j,n:()=>z,o:()=>e2,p:()=>eO,q:()=>eH,r:()=>eF,s:()=>ef,t:()=>ey,u:()=>eV,v:()=>F,w:()=>eq,x:()=>ev,y:()=>tL,z:()=>tG});let o=(e,t,n)=>Math.max(Math.min(e,n),t);function a(e){return o(i(2.55*e),0,255)}function s(e){return o(i(255*e),0,255)}function l(e){return o(i(e/2.55)/100,0,1)}function u(e){return o(i(100*e),0,100)}let c={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},d=[..."0123456789ABCDEF"],f=e=>d[15&e],h=e=>d[(240&e)>>4]+d[15&e],p=e=>(240&e)>>4==(15&e),g=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function v(e,t,n){let r=t*Math.min(n,1-n),i=(t,i=(t+e/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1);return[i(0),i(8),i(4)]}function m(e,t,n){let r=(r,i=(r+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function b(e,t,n){let r,i=v(e,1,.5);for(t+n>1&&(r=1/(t+n),t*=r,n*=r),r=0;r<3;r++)i[r]*=1-t-n,i[r]+=t;return i}function y(e){let t,n,r,i=e.r/255,o=e.g/255,a=e.b/255,s=Math.max(i,o,a),l=Math.min(i,o,a),u=(s+l)/2;s!==l&&(r=s-l,n=u>.5?r/(2-s-l):r/(s+l),t=60*(t=i===s?(o-a)/r+6*(o<a):o===s?(a-i)/r+2:(i-o)/r+4)+.5);return[0|t,n||0,u]}function x(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(s)}function w(e){return(e%360+360)%360}let S={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},E={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"},k=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,C=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,O=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function I(e,t,n){if(e){let r=y(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,0===t?360:1)),e.r=(r=x(v,r,void 0,void 0))[0],e.g=r[1],e.b=r[2]}}function _(e,t){return e?Object.assign(t||{},e):e}function T(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=s(e[3]))):(t=_(e,{r:0,g:0,b:0,a:1})).a=s(t.a),t}class P{constructor(e){let t;if(e instanceof P)return e;let n=typeof e;"object"===n?t=T(e):"string"===n&&(t=function(e){var t,n=e.length;return"#"===e[0]&&(4===n||5===n?t={r:255&17*c[e[1]],g:255&17*c[e[2]],b:255&17*c[e[3]],a:5===n?17*c[e[4]]:255}:(7===n||9===n)&&(t={r:c[e[1]]<<4|c[e[2]],g:c[e[3]]<<4|c[e[4]],b:c[e[5]]<<4|c[e[6]],a:9===n?c[e[7]]<<4|c[e[8]]:255})),t}(e)||function(e){r||((r=function(){let e,t,n,r,i,o={},a=Object.keys(E),s=Object.keys(S);for(e=0;e<a.length;e++){for(t=0,r=i=a[e];t<s.length;t++)n=s[t],i=i.replace(n,S[n]);n=parseInt(E[r],16),o[i]=[n>>16&255,n>>8&255,255&n]}return o}()).transparent=[0,0,0,0]);let t=r[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}(e)||function(e){return"r"===e.charAt(0)?function(e){let t,n,r,i=k.exec(e),s=255;if(i){if(i[7]!==t){let e=+i[7];s=i[8]?a(e):o(255*e,0,255)}return t=+i[1],n=+i[3],r=+i[5],t=255&(i[2]?a(t):o(t,0,255)),{r:t,g:n=255&(i[4]?a(n):o(n,0,255)),b:r=255&(i[6]?a(r):o(r,0,255)),a:s}}}(e):function(e){let t,n=g.exec(e),r=255;if(!n)return;n[5]!==t&&(r=n[6]?a(+n[5]):s(+n[5]));let i=w(+n[2]),o=n[3]/100,l=n[4]/100;return{r:(t="hwb"===n[1]?x(b,i,o,l):"hsv"===n[1]?x(m,i,o,l):x(v,i,o,l))[0],g:t[1],b:t[2],a:r}}(e)}(e)),this._rgb=t,this._valid=!!t}get valid(){return this._valid}get rgb(){var e=_(this._rgb);return e&&(e.a=l(e.a)),e}set rgb(e){this._rgb=T(e)}rgbString(){var e;return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${l(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):void 0}hexString(){var e,t;let n,r;return this._valid?(t=p((n=e=this._rgb).r)&&p(n.g)&&p(n.b)&&p(n.a)?f:h,e?"#"+t(e.r)+t(e.g)+t(e.b)+(r=e.a,r<255?t(r):""):void 0):void 0}hslString(){return this._valid?function(e){if(!e)return;let t=y(e),n=t[0],r=u(t[1]),i=u(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${l(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}(this._rgb):void 0}mix(e,t){if(e){let n,r=this.rgb,i=e.rgb,o=t===n?.5:t,a=2*o-1,s=r.a-i.a,l=((a*s==-1?a:(a+s)/(1+a*s))+1)/2;n=1-l,r.r=255&l*r.r+n*i.r+.5,r.g=255&l*r.g+n*i.g+.5,r.b=255&l*r.b+n*i.b+.5,r.a=o*r.a+(1-o)*i.a,this.rgb=r}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,n){let r=O(l(e.r)),i=O(l(e.g)),o=O(l(e.b));return{r:s(C(r+n*(O(l(t.r))-r))),g:s(C(i+n*(O(l(t.g))-i))),b:s(C(o+n*(O(l(t.b))-o))),a:e.a+n*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new P(this.rgb)}alpha(e){return this._rgb.a=s(e),this}clearer(e){let t=this._rgb;return t.a*=1-e,this}greyscale(){let e=this._rgb,t=i(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){let t=this._rgb;return t.a*=1+e,this}negate(){let e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return I(this._rgb,2,e),this}darken(e){return I(this._rgb,2,-e),this}saturate(e){return I(this._rgb,1,e),this}desaturate(e){return I(this._rgb,1,-e),this}rotate(e){var t,n;return t=this._rgb,(n=y(t))[0]=w(n[0]+e),t.r=(n=x(v,n,void 0,void 0))[0],t.g=n[1],t.b=n[2],this}}function R(){}let A=(()=>{let e=0;return()=>e++})();function N(e){return null==e}function M(e){if(Array.isArray&&Array.isArray(e))return!0;let t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function L(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function V(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)}function D(e,t){return V(e)?e:t}function F(e,t){return void 0===e?t:e}let j=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100:e/t,z=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function B(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)}function U(e,t,n,r){let i,o,a;if(M(e))if(o=e.length,r)for(i=o-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;i<o;i++)t.call(n,e[i],i);else if(L(e))for(i=0,o=(a=Object.keys(e)).length;i<o;i++)t.call(n,e[a[i]],a[i])}function W(e,t){let n,r,i,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],o=t[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function H(e){if(M(e))return e.map(H);if(L(e)){let t=Object.create(null),n=Object.keys(e),r=n.length,i=0;for(;i<r;++i)t[n[i]]=H(e[n[i]]);return t}return e}function q(e){return -1===["__proto__","prototype","constructor"].indexOf(e)}function $(e,t,n,r){if(!q(e))return;let i=t[e],o=n[e];L(i)&&L(o)?G(i,o,r):t[e]=H(o)}function G(e,t,n){let r,i=M(t)?t:[t],o=i.length;if(!L(e))return e;let a=(n=n||{}).merger||$;for(let t=0;t<o;++t){if(!L(r=i[t]))continue;let o=Object.keys(r);for(let t=0,i=o.length;t<i;++t)a(o[t],e,r,n)}return e}function K(e,t){return G(e,t,{merger:Y})}function Y(e,t,n){if(!q(e))return;let r=t[e],i=n[e];L(r)&&L(i)?K(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=H(i))}let X={"":e=>e,x:e=>e.x,y:e=>e.y};function Q(e,t){return(X[t]||(X[t]=function(e){let t=function(e){let t=e.split("."),n=[],r="";for(let e of t)(r+=e).endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}(e);return e=>{for(let n of t){if(""===n)break;e=e&&e[n]}return e}}(t)))(e)}function J(e){return e.charAt(0).toUpperCase()+e.slice(1)}let Z=e=>void 0!==e,ee=e=>"function"==typeof e,et=(e,t)=>{if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0};function en(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}let er=Math.PI,ei=2*er,eo=ei+er,ea=1/0,es=er/180,el=er/2,eu=er/4,ec=2*er/3,ed=Math.log10,ef=Math.sign;function eh(e,t,n){return Math.abs(e-t)<n}function ep(e){let t=Math.round(e),n=Math.pow(10,Math.floor(ed(e=eh(e,t,e/1e3)?t:e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function eg(e){let t,n=[],r=Math.sqrt(e);for(t=1;t<r;t++)e%t==0&&(n.push(t),n.push(e/t));return r===(0|r)&&n.push(r),n.sort((e,t)=>e-t).pop(),n}function ev(e){return"symbol"!=typeof e&&("object"!=typeof e||null===e||!!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e))&&!isNaN(parseFloat(e))&&isFinite(e)}function em(e,t){let n=Math.round(e);return n-t<=e&&n+t>=e}function eb(e,t,n){let r,i,o;for(r=0,i=e.length;r<i;r++)isNaN(o=e[r][n])||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function ey(e){return er/180*e}function ex(e){return 180/er*e}function ew(e){if(!V(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function eS(e,t){let n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r),o=Math.atan2(r,n);return o<-.5*er&&(o+=ei),{angle:o,distance:i}}function eE(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function ek(e,t){return(e-t+eo)%ei-er}function eC(e){return(e%ei+ei)%ei}function eO(e,t,n,r){let i=eC(e),o=eC(t),a=eC(n),s=eC(o-i),l=eC(a-i),u=eC(i-o),c=eC(i-a);return i===o||i===a||r&&o===a||s>l&&u<c}function eI(e,t,n){return Math.max(t,Math.min(n,e))}function e_(e){return eI(e,-32768,32767)}function eT(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function eP(e,t,n){let r;n=n||(n=>e[n]<t);let i=e.length-1,o=0;for(;i-o>1;)n(r=o+i>>1)?o=r:i=r;return{lo:o,hi:i}}let eR=(e,t,n,r)=>eP(e,n,r?r=>{let i=e[r][t];return i<n||i===n&&e[r+1][t]===n}:r=>e[r][t]<n),eA=(e,t,n)=>eP(e,n,r=>e[r][t]>=n);function eN(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}let eM=["push","pop","shift","splice","unshift"];function eL(e,t){if(e._chartjs)return void e._chartjs.listeners.push(t);Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),eM.forEach(t=>{let n="_onData"+J(t),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...t){let i=r.apply(this,t);return e._chartjs.listeners.forEach(e=>{"function"==typeof e[n]&&e[n](...t)}),i}})})}function eV(e,t){let n=e._chartjs;if(!n)return;let r=n.listeners,i=r.indexOf(t);-1!==i&&r.splice(i,1),r.length>0||(eM.forEach(t=>{delete e[t]}),delete e._chartjs)}function eD(e){let t=new Set(e);return t.size===e.length?e:Array.from(t)}let eF="undefined"==typeof window?function(e){return e()}:window.requestAnimationFrame;function ej(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,eF.call(window,()=>{r=!1,e.apply(t,n)}))}}function ez(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}let eB=e=>"start"===e?"left":"end"===e?"right":"center",eU=(e,t,n)=>"start"===e?t:"end"===e?n:(t+n)/2,eW=(e,t,n,r)=>e===(r?"left":"right")?n:"center"===e?(t+n)/2:t;function eH(e,t,n){let r=t.length,i=0,o=r;if(e._sorted){let{iScale:a,vScale:s,_parsed:l}=e,u=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,c=a.axis,{min:d,max:f,minDefined:h,maxDefined:p}=a.getUserBounds();if(h){if(i=Math.min(eR(l,c,d).lo,n?r:eR(t,c,a.getPixelForValue(d)).lo),u){let e=l.slice(0,i+1).reverse().findIndex(e=>!N(e[s.axis]));i-=Math.max(0,e)}i=eI(i,0,r-1)}if(p){let e=Math.max(eR(l,a.axis,f,!0).hi+1,n?0:eR(t,c,a.getPixelForValue(f),!0).hi+1);if(u){let t=l.slice(e-1).findIndex(e=>!N(e[s.axis]));e+=Math.max(0,t)}o=eI(e,i,r)-i}else o=r-i}return{start:i,count:o}}function eq(e){let{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;let o=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}let e$=e=>0===e||1===e,eG=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*ei/n)),eK=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*ei/n)+1,eY={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*el)+1,easeOutSine:e=>Math.sin(e*el),easeInOutSine:e=>-.5*(Math.cos(er*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>e$(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(-Math.pow(2,-10*(2*e-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>e$(e)?e:eG(e,.075,.3),easeOutElastic:e=>e$(e)?e:eK(e,.075,.3),easeInOutElastic:e=>e$(e)?e:e<.5?.5*eG(2*e,.1125,.45):.5+.5*eK(2*e-1,.1125,.45),easeInBack:e=>e*e*(2.70158*e-1.70158),easeOutBack:e=>(e-=1)*e*(2.70158*e+1.70158)+1,easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-eY.easeOutBounce(1-e),easeOutBounce:e=>e<.36363636363636365?7.5625*e*e:e<.7272727272727273?7.5625*(e-=.5454545454545454)*e+.75:e<.9090909090909091?7.5625*(e-=.8181818181818182)*e+.9375:7.5625*(e-=.9545454545454546)*e+.984375,easeInOutBounce:e=>e<.5?.5*eY.easeInBounce(2*e):.5*eY.easeOutBounce(2*e-1)+.5};function eX(e){if(e&&"object"==typeof e){let t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function eQ(e){return eX(e)?e:new P(e)}function eJ(e){return eX(e)?e:new P(e).saturate(.5).darken(.1).hexString()}let eZ=["x","y","borderWidth","radius","tension"],e0=["color","borderColor","backgroundColor"],e1=new Map;function e2(e,t,n){return(function(e,t){let n=e+JSON.stringify(t=t||{}),r=e1.get(n);return r||(r=new Intl.NumberFormat(e,t),e1.set(n,r)),r})(t,n).format(e)}let e5={values:e=>M(e)?e:""+e,numeric(e,t,n){let r;if(0===e)return"0";let i=this.chart.options.locale,o=e;if(n.length>1){var a,s;let t,i=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(i<1e-4||i>1e15)&&(r="scientific"),a=e,Math.abs(t=(s=n).length>3?s[2].value-s[1].value:s[1].value-s[0].value)>=1&&a!==Math.floor(a)&&(t=a-Math.floor(a)),o=t}let l=ed(Math.abs(o)),u=isNaN(l)?1:Math.max(Math.min(-1*Math.floor(l),20),0),c={notation:r,minimumFractionDigits:u,maximumFractionDigits:u};return Object.assign(c,this.options.ticks.format),e2(e,i,c)},logarithmic(e,t,n){return 0===e?"0":[1,2,3,5,10,15].includes(n[t].significand||e/Math.pow(10,Math.floor(ed(e))))||t>.8*n.length?e5.numeric.call(this,e,t,n):""}};var e3={formatters:e5};let e4=Object.create(null),e6=Object.create(null);function e8(e,t){if(!t)return e;let n=t.split(".");for(let t=0,r=n.length;t<r;++t){let r=n[t];e=e[r]||(e[r]=Object.create(null))}return e}function e7(e,t,n){return"string"==typeof t?G(e8(e,t),n):G(e8(e,""),t)}class e9{constructor(e,t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>eJ(t.backgroundColor),this.hoverBorderColor=(e,t)=>eJ(t.borderColor),this.hoverColor=(e,t)=>eJ(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return e7(this,e,t)}get(e){return e8(this,e)}describe(e,t){return e7(e6,e,t)}override(e,t){return e7(e4,e,t)}route(e,t,n,r){let i=e8(this,e),o=e8(this,n),a="_"+t;Object.defineProperties(i,{[a]:{value:i[t],writable:!0},[t]:{enumerable:!0,get(){let e=this[a],t=o[r];return L(e)?Object.assign({},t,e):F(e,t)},set(e){this[a]=e}}})}apply(e){e.forEach(e=>e(this))}}var te=new e9({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),e.set("animations",{colors:{type:"color",properties:e0},numbers:{type:"number",properties:eZ}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}})},function(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:e3.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e&&"dash"!==e}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e})}]);function tt(e,t,n,r,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>r&&(r=o),r}function tn(e,t,n,r){let i,o,a,s,l,u=(r=r||{}).data=r.data||{},c=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(u=r.data={},c=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let d=0,f=n.length;for(i=0;i<f;i++)if(null==(s=n[i])||M(s)){if(M(s))for(o=0,a=s.length;o<a;o++)null==(l=s[o])||M(l)||(d=tt(e,u,c,d,l))}else d=tt(e,u,c,d,s);e.restore();let h=c.length/2;if(h>n.length){for(i=0;i<h;i++)delete u[c[i]];c.splice(0,h)}return d}function tr(e,t,n){let r=e.currentDevicePixelRatio,i=0!==n?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function ti(e,t){(t||e)&&((t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function to(e,t,n,r){ta(e,t,n,r,null)}function ta(e,t,n,r,i){let o,a,s,l,u,c,d,f,h=t.pointStyle,p=t.rotation,g=t.radius,v=(p||0)*es;if(h&&"object"==typeof h&&("[object HTMLImageElement]"===(o=h.toString())||"[object HTMLCanvasElement]"===o)){e.save(),e.translate(n,r),e.rotate(v),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),e.restore();return}if(!isNaN(g)&&!(g<=0)){switch(e.beginPath(),h){default:i?e.ellipse(n,r,i/2,g,0,0,ei):e.arc(n,r,g,0,ei),e.closePath();break;case"triangle":c=i?i/2:g,e.moveTo(n+Math.sin(v)*c,r-Math.cos(v)*g),v+=ec,e.lineTo(n+Math.sin(v)*c,r-Math.cos(v)*g),v+=ec,e.lineTo(n+Math.sin(v)*c,r-Math.cos(v)*g),e.closePath();break;case"rectRounded":u=.516*g,a=Math.cos(v+eu)*(l=g-u),d=Math.cos(v+eu)*(i?i/2-u:l),s=Math.sin(v+eu)*l,f=Math.sin(v+eu)*(i?i/2-u:l),e.arc(n-d,r-s,u,v-er,v-el),e.arc(n+f,r-a,u,v-el,v),e.arc(n+d,r+s,u,v,v+el),e.arc(n-f,r+a,u,v+el,v+er),e.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*g,c=i?i/2:l,e.rect(n-c,r-l,2*c,2*l);break}v+=eu;case"rectRot":d=Math.cos(v)*(i?i/2:g),a=Math.cos(v)*g,s=Math.sin(v)*g,f=Math.sin(v)*(i?i/2:g),e.moveTo(n-d,r-s),e.lineTo(n+f,r-a),e.lineTo(n+d,r+s),e.lineTo(n-f,r+a),e.closePath();break;case"crossRot":v+=eu;case"cross":d=Math.cos(v)*(i?i/2:g),a=Math.cos(v)*g,s=Math.sin(v)*g,f=Math.sin(v)*(i?i/2:g),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-a),e.lineTo(n-f,r+a);break;case"star":d=Math.cos(v)*(i?i/2:g),a=Math.cos(v)*g,s=Math.sin(v)*g,f=Math.sin(v)*(i?i/2:g),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-a),e.lineTo(n-f,r+a),v+=eu,d=Math.cos(v)*(i?i/2:g),a=Math.cos(v)*g,s=Math.sin(v)*g,f=Math.sin(v)*(i?i/2:g),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-a),e.lineTo(n-f,r+a);break;case"line":a=i?i/2:Math.cos(v)*g,s=Math.sin(v)*g,e.moveTo(n-a,r-s),e.lineTo(n+a,r+s);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(v)*(i?i/2:g),r+Math.sin(v)*g);break;case!1:e.closePath()}e.fill(),t.borderWidth>0&&e.stroke()}}function ts(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function tl(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function tu(e){e.restore()}function tc(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if("middle"===i){let r=(t.x+n.x)/2;e.lineTo(r,t.y),e.lineTo(r,n.y)}else"after"===i!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function td(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function tf(e,t,n,r,i,o={}){let a,s,l=M(t)?t:[t],u=o.strokeWidth>0&&""!==o.strokeColor;for(e.save(),e.font=i.string,o.translation&&e.translate(o.translation[0],o.translation[1]),N(o.rotation)||e.rotate(o.rotation),o.color&&(e.fillStyle=o.color),o.textAlign&&(e.textAlign=o.textAlign),o.textBaseline&&(e.textBaseline=o.textBaseline),a=0;a<l.length;++a)s=l[a],o.backdrop&&function(e,t){let n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}(e,o.backdrop),u&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),N(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(s,n,r,o.maxWidth)),e.fillText(s,n,r,o.maxWidth),function(e,t,n,r,i){if(i.strikethrough||i.underline){let o=e.measureText(r),a=t-o.actualBoundingBoxLeft,s=t+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,u=n+o.actualBoundingBoxDescent,c=i.strikethrough?(l+u)/2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(a,c),e.lineTo(s,c),e.stroke()}}(e,n,r,s,o),r+=Number(i.lineHeight);e.restore()}function th(e,t){let{x:n,y:r,w:i,h:o,radius:a}=t;e.arc(n+a.topLeft,r+a.topLeft,a.topLeft,1.5*er,er,!0),e.lineTo(n,r+o-a.bottomLeft),e.arc(n+a.bottomLeft,r+o-a.bottomLeft,a.bottomLeft,er,el,!0),e.lineTo(n+i-a.bottomRight,r+o),e.arc(n+i-a.bottomRight,r+o-a.bottomRight,a.bottomRight,el,0,!0),e.lineTo(n+i,r+a.topRight),e.arc(n+i-a.topRight,r+a.topRight,a.topRight,0,-el,!0),e.lineTo(n+a.topLeft,r)}let tp=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,tg=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/,tv=e=>+e||0;function tm(e,t){let n={},r=L(t),i=r?Object.keys(t):t,o=L(e)?r?n=>F(e[n],e[t[n]]):t=>e[t]:()=>e;for(let e of i)n[e]=tv(o(e));return n}function tb(e){return tm(e,{top:"y",right:"x",bottom:"y",left:"x"})}function ty(e){return tm(e,["topLeft","topRight","bottomLeft","bottomRight"])}function tx(e){let t=tb(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function tw(e,t){e=e||{},t=t||te.font;let n=F(e.size,t.size);"string"==typeof n&&(n=parseInt(n,10));let r=F(e.style,t.style);r&&!(""+r).match(tg)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);let i={family:F(e.family,t.family),lineHeight:function(e,t){let n=(""+e).match(tp);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e}(F(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:F(e.weight,t.weight),string:""};return i.string=!i||N(i.size)||N(i.family)?null:(i.style?i.style+" ":"")+(i.weight?i.weight+" ":"")+i.size+"px "+i.family,i}function tS(e,t,n,r){let i,o,a,s=!0;for(i=0,o=e.length;i<o;++i)if(void 0!==(a=e[i])&&(void 0!==t&&"function"==typeof a&&(a=a(t),s=!1),void 0!==n&&M(a)&&(a=a[n%a.length],s=!1),void 0!==a))return r&&!s&&(r.cacheable=!1),a}function tE(e,t,n){let{min:r,max:i}=e,o=z(t,(i-r)/2),a=(e,t)=>n&&0===e?0:e+t;return{min:a(r,-Math.abs(o)),max:a(i,o)}}function tk(e,t){return Object.assign(Object.create(e),t)}function tC(e,t=[""],n,r,i=()=>e[0]){let o=n||e;return void 0===r&&(r=tN("_fallback",e)),new Proxy({[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:r,_getTarget:i,override:n=>tC([n,...e],t,o,r)},{deleteProperty:(t,n)=>(delete t[n],delete t._keys,delete e[0][n],!0),get:(n,r)=>tT(n,r,()=>(function(e,t,n,r){let i;for(let o of t)if(void 0!==(i=tN(tI(o,e),n)))return t_(e,i)?tR(n,r,e,i):i})(r,t,e,n)),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,t)=>tM(e).includes(t),ownKeys:e=>tM(e),set(e,t,n){let r=e._storage||(e._storage=i());return e[t]=r[t]=n,delete e._keys,!0}})}function tO(e,t={scriptable:!0,indexable:!0}){let{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:ee(n)?n:()=>n,isIndexable:ee(r)?r:()=>r}}let tI=(e,t)=>e?e+J(t):t,t_=(e,t)=>L(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function tT(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||"constructor"===t)return e[t];let r=n();return e[t]=r,r}let tP=(e,t)=>!0===e?t:"string"==typeof e?Q(t,e):void 0;function tR(e,t,n,r){var i;let o=t._rootScopes,a=(i=t._fallback,ee(i)?i(n,r):i),s=[...e,...o],l=new Set;l.add(r);let u=tA(l,s,n,a||n,r);return null!==u&&(void 0===a||a===n||null!==(u=tA(l,s,a,u,r)))&&tC(Array.from(l),[""],o,a,()=>(function(e,t,n){let r=e._getTarget();t in r||(r[t]={});let i=r[t];return M(i)&&L(n)?n:i||{}})(t,n,r))}function tA(e,t,n,r,i){for(;n;)n=function(e,t,n,r,i){for(let a of t){let t=tP(n,a);if(t){var o;e.add(t);let a=(o=t._fallback,ee(o)?o(n,i):o);if(void 0!==a&&a!==n&&a!==r)return a}else if(!1===t&&void 0!==r&&n!==r)return null}return!1}(e,t,n,r,i);return n}function tN(e,t){for(let n of t){if(!n)continue;let t=n[e];if(void 0!==t)return t}}function tM(e){let t=e._keys;return t||(t=e._keys=function(e){let t=new Set;for(let n of e)for(let e of Object.keys(n).filter(e=>!e.startsWith("_")))t.add(e);return Array.from(t)}(e._scopes)),t}function tL(e,t,n,r){let i,o,a,{iScale:s}=e,{key:l="r"}=this._parsing,u=Array(r);for(i=0;i<r;++i)a=t[o=i+n],u[i]={r:s.parse(Q(a,l),o)};return u}let tV=Number.EPSILON||1e-14,tD=(e,t)=>t<e.length&&!e[t].skip&&e[t],tF=e=>"x"===e?"y":"x";function tj(e,t,n){return Math.max(Math.min(e,n),t)}function tz(e,t,n,r,i){let o,a,s,l;if(t.spanGaps&&(e=e.filter(e=>!e.skip)),"monotone"===t.cubicInterpolationMode)!function(e,t="x"){let n,r,i,o=tF(t),a=e.length,s=Array(a).fill(0),l=Array(a),u=tD(e,0);for(n=0;n<a;++n)if(r=i,i=u,u=tD(e,n+1),i){if(u){let e=u[t]-i[t];s[n]=0!==e?(u[o]-i[o])/e:0}l[n]=r?u?ef(s[n-1])!==ef(s[n])?0:(s[n-1]+s[n])/2:s[n-1]:s[n]}!function(e,t,n){let r,i,o,a,s,l=e.length,u=tD(e,0);for(let c=0;c<l-1;++c)if(s=u,u=tD(e,c+1),s&&u){if(eh(t[c],0,tV)){n[c]=n[c+1]=0;continue}(a=Math.pow(r=n[c]/t[c],2)+Math.pow(i=n[c+1]/t[c],2))<=9||(o=3/Math.sqrt(a),n[c]=r*o*t[c],n[c+1]=i*o*t[c])}}(e,s,l),function(e,t,n="x"){let r,i,o,a=tF(n),s=e.length,l=tD(e,0);for(let u=0;u<s;++u){if(i=o,o=l,l=tD(e,u+1),!o)continue;let s=o[n],c=o[a];i&&(r=(s-i[n])/3,o[`cp1${n}`]=s-r,o[`cp1${a}`]=c-r*t[u]),l&&(r=(l[n]-s)/3,o[`cp2${n}`]=s+r,o[`cp2${a}`]=c+r*t[u])}}(e,l,t)}(e,i);else{let n=r?e[e.length-1]:e[0];for(o=0,a=e.length;o<a;++o)l=function(e,t,n,r){let i=e.skip?t:e,o=n.skip?t:n,a=eE(t,i),s=eE(o,t),l=a/(a+s),u=s/(a+s);l=isNaN(l)?0:l,u=isNaN(u)?0:u;let c=r*l,d=r*u;return{previous:{x:t.x-c*(o.x-i.x),y:t.y-c*(o.y-i.y)},next:{x:t.x+d*(o.x-i.x),y:t.y+d*(o.y-i.y)}}}(n,s=e[o],e[Math.min(o+1,a-!r)%a],t.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,n=s}t.capBezierPoints&&function(e,t){let n,r,i,o,a,s=ts(e[0],t);for(n=0,r=e.length;n<r;++n)a=o,o=s,s=n<r-1&&ts(e[n+1],t),o&&(i=e[n],a&&(i.cp1x=tj(i.cp1x,t.left,t.right),i.cp1y=tj(i.cp1y,t.top,t.bottom)),s&&(i.cp2x=tj(i.cp2x,t.left,t.right),i.cp2y=tj(i.cp2y,t.top,t.bottom)))}(e,n)}function tB(){return"undefined"!=typeof window&&"undefined"!=typeof document}function tU(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function tW(e,t,n){let r;return"string"==typeof e?(r=parseInt(e,10),-1!==e.indexOf("%")&&(r=r/100*t.parentNode[n])):r=e,r}let tH=e=>e.ownerDocument.defaultView.getComputedStyle(e,null),tq=["top","right","bottom","left"];function t$(e,t,n){let r={};n=n?"-"+n:"";for(let i=0;i<4;i++){let o=tq[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}function tG(e,t){if("native"in e)return e;let{canvas:n,currentDevicePixelRatio:r}=t,i=tH(n),o="border-box"===i.boxSizing,a=t$(i,"padding"),s=t$(i,"border","width"),{x:l,y:u,box:c}=function(e,t){let n,r,i,o=e.touches,a=o&&o.length?o[0]:e,{offsetX:s,offsetY:l}=a,u=!1;if(i=e.target,(s>0||l>0)&&(!i||!i.shadowRoot))n=s,r=l;else{let e=t.getBoundingClientRect();n=a.clientX-e.left,r=a.clientY-e.top,u=!0}return{x:n,y:r,box:u}}(e,n),d=a.left+(c&&s.left),f=a.top+(c&&s.top),{width:h,height:p}=t;return o&&(h-=a.width+s.width,p-=a.height+s.height),{x:Math.round((l-d)/h*n.width/r),y:Math.round((u-f)/p*n.height/r)}}let tK=e=>Math.round(10*e)/10;function tY(e,t,n,r){let i=tH(e),o=t$(i,"margin"),a=tW(i.maxWidth,e,"clientWidth")||ea,s=tW(i.maxHeight,e,"clientHeight")||ea,l=function(e,t,n){let r,i;if(void 0===t||void 0===n){let o=e&&tU(e);if(o){let e=o.getBoundingClientRect(),a=tH(o),s=t$(a,"border","width"),l=t$(a,"padding");t=e.width-l.width-s.width,n=e.height-l.height-s.height,r=tW(a.maxWidth,o,"clientWidth"),i=tW(a.maxHeight,o,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:r||ea,maxHeight:i||ea}}(e,t,n),{width:u,height:c}=l;if("content-box"===i.boxSizing){let e=t$(i,"border","width"),t=t$(i,"padding");u-=t.width+e.width,c-=t.height+e.height}return u=Math.max(0,u-o.width),c=Math.max(0,r?u/r:c-o.height),u=tK(Math.min(u,a,l.maxWidth)),c=tK(Math.min(c,s,l.maxHeight)),u&&!c&&(c=tK(u/2)),(void 0!==t||void 0!==n)&&r&&l.height&&c>l.height&&(u=tK(Math.floor((c=l.height)*r))),{width:u,height:c}}function tX(e,t,n){let r=t||1,i=Math.floor(e.height*r),o=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);let a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),(e.currentDevicePixelRatio!==r||a.height!==i||a.width!==o)&&(e.currentDevicePixelRatio=r,a.height=i,a.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0)}let tQ=function(){let e=!1;try{let t={get passive(){return e=!0,!1}};tB()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch(e){}return e}();function tJ(e,t){let n=tH(e).getPropertyValue(t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function tZ(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function t0(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:"middle"===r?n<.5?e.y:t.y:"after"===r?n<1?e.y:t.y:n>0?t.y:e.y}}function t1(e,t,n,r){let i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},a=tZ(e,i,n),s=tZ(i,o,n),l=tZ(o,t,n),u=tZ(a,s,n),c=tZ(s,l,n);return tZ(u,c,n)}function t2(e,t,n){var r;return e?(r=n,{x:e=>t+t+r-e,setWidth(e){r=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:(e,t)=>e}}function t5(e,t){let n,r;("ltr"===t||"rtl"===t)&&(r=[(n=e.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function t3(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function t4(e){return"angle"===e?{between:eO,compare:ek,normalize:eC}:{between:eT,compare:(e,t)=>e-t,normalize:e=>e}}function t6({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n==0,style:i}}function t8(e,t,n){let r,i,o;if(!n)return[e];let{property:a,start:s,end:l}=n,u=t.length,{compare:c,between:d,normalize:f}=t4(a),{start:h,end:p,loop:g,style:v}=function(e,t,n){let r,{property:i,start:o,end:a}=n,{between:s,normalize:l}=t4(i),u=t.length,{start:c,end:d,loop:f}=e;if(f){for(c+=u,d+=u,r=0;r<u&&s(l(t[c%u][i]),o,a);++r)c--,d--;c%=u,d%=u}return d<c&&(d+=u),{start:c,end:d,loop:f,style:e.style}}(e,t,n),m=[],b=!1,y=null,x=()=>b||d(s,o,r)&&0!==c(s,o),w=()=>!b||0===c(l,r)||d(l,o,r);for(let e=h,n=h;e<=p;++e)(i=t[e%u]).skip||(r=f(i[a]))!==o&&(b=d(r,s,l),null===y&&x()&&(y=0===c(r,s)?e:n),null!==y&&w()&&(m.push(t6({start:y,end:e,loop:g,count:u,style:v})),y=null),n=e,o=r);return null!==y&&m.push(t6({start:y,end:p,loop:g,count:u,style:v})),m}function t7(e,t){let n=[],r=e.segments;for(let i=0;i<r.length;i++){let o=t8(r[i],e.points,t);o.length&&n.push(...o)}return n}function t9(e,t){let n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];let o=!!e._loop,{start:a,end:s}=function(e,t,n,r){let i=0,o=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(o+=i);o>i&&e[o%t].skip;)o--;return{start:i,end:o%=t}}(n,i,o,r);if(!0===r)return ne(e,[{start:a,end:s,loop:o}],n,t);let l=s<a?s+i:s,u=!!e._fullLoop&&0===a&&s===i-1;return ne(e,function(e,t,n,r){let i,o=e.length,a=[],s=t,l=e[t];for(i=t+1;i<=n;++i){let n=e[i%o];n.skip||n.stop?l.skip||(r=!1,a.push({start:t%o,end:(i-1)%o,loop:r}),t=s=n.stop?i:null):(s=i,l.skip&&(t=i)),l=n}return null!==s&&a.push({start:t%o,end:s%o,loop:r}),a}(n,a,l,u),n,t)}function ne(e,t,n,r){return r&&r.setContext&&n?function(e,t,n,r){let i=e._chart.getContext(),o=nt(e.options),{_datasetIndex:a,options:{spanGaps:s}}=e,l=n.length,u=[],c=o,d=t[0].start,f=d;function h(e,t,r,i){let o=s?-1:1;if(e!==t){for(e+=l;n[e%l].skip;)e-=o;for(;n[t%l].skip;)t+=o;e%l!=t%l&&(u.push({start:e%l,end:t%l,loop:r,style:i}),c=i,d=t%l)}}for(let e of t){let t,o=n[(d=s?d:e.start)%l];for(f=d+1;f<=e.end;f++){let s=n[f%l];(function(e,t){if(!t)return!1;let n=[],r=function(e,t){return eX(t)?(n.includes(t)||n.push(t),n.indexOf(t)):t};return JSON.stringify(e,r)!==JSON.stringify(t,r)})(t=nt(r.setContext(tk(i,{type:"segment",p0:o,p1:s,p0DataIndex:(f-1)%l,p1DataIndex:f%l,datasetIndex:a}))),c)&&h(d,f-1,e.loop,c),o=s,c=t}d<f-1&&h(d,f-1,e.loop,c)}return u}(e,t,n,r):t}function nt(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function nn(e,t,n){return e.options.clip?e[n]:t[n]}function nr(e,t){let n=t._clip;if(n.disabled)return!1;let r=function(e,t){let{xScale:n,yScale:r}=e;return n&&r?{left:nn(n,t,"left"),right:nn(n,t,"right"),top:nn(r,t,"top"),bottom:nn(r,t,"bottom")}:t}(t,e.chartArea);return{left:!1===n.left?0:r.left-(!0===n.left?0:n.left),right:!1===n.right?e.width:r.right+(!0===n.right?0:n.right),top:!1===n.top?0:r.top-(!0===n.top?0:n.top),bottom:!1===n.bottom?e.height:r.bottom+(!0===n.bottom?0:n.bottom)}}},45008:(e,t,n)=>{"use strict";n.d(t,{cx:()=>r});let r=(...e)=>e.filter(Boolean).map(e=>e.trim()).join(" ")},46844:(e,t,n)=>{var r=n(94427);e.exports=function(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},46872:(e,t,n)=>{var r=n(79905);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return -1}},47016:(e,t,n)=>{var r=n(22094),i=n(9598),o=n(89132);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},47350:(e,t,n)=>{var r=n(32617),i=n(80053),o=n(12984),a=n(81657),s=n(5816),l=n(4438),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),c=!n&&i(e),d=!n&&!c&&a(e),f=!n&&!c&&!d&&l(e),h=n||c||d||f,p=h?r(e.length,String):[],g=p.length;for(var v in e)(t||u.call(e,v))&&!(h&&("length"==v||d&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,g)))&&p.push(v);return p}},47393:(e,t,n)=>{var r=n(63780);e.exports=function(e){var t,n,i,o=(t=e,n={},i=0,r.forEach(t.children(),function e(o){var a=i;r.forEach(t.children(o),e),n[o]={low:a,lim:i++}}),n);r.forEach(e.graph().dummyChains,function(t){for(var n=e.node(t),r=n.edgeObj,i=function(e,t,n,r){var i,o,a=[],s=[],l=Math.min(t[n].low,t[r].low),u=Math.max(t[n].lim,t[r].lim);i=n;do a.push(i=e.parent(i));while(i&&(t[i].low>l||u>t[i].lim));for(o=i,i=r;(i=e.parent(i))!==o;)s.push(i);return{path:a.concat(s.reverse()),lca:o}}(e,o,r.v,r.w),a=i.path,s=i.lca,l=0,u=a[0],c=!0;t!==r.w;){if(n=e.node(t),c){for(;(u=a[l])!==s&&e.node(u).maxRank<n.rank;)l++;u===s&&(c=!1)}if(!c){for(;l<a.length-1&&e.node(u=a[l+1]).minRank<=n.rank;)l++;u=a[l]}e.setParent(t,u),t=e.successors(t)[0]}})}},47607:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},47705:(e,t,n)=>{"use strict";n.d(t,{II:()=>d,v_:()=>l,wm:()=>c});var r=n(54371),i=n(43762),o=n(96699),a=n(70465);function s(e){return Math.min(1e3*2**e,3e4)}function l(e){return(e??"online")!=="online"||i.t.isOnline()}var u=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function c(e){return e instanceof u}function d(e){let t,n=!1,c=0,d=!1,f=(0,o.T)(),h=()=>r.m.isFocused()&&("always"===e.networkMode||i.t.isOnline())&&e.canRun(),p=()=>l(e.networkMode)&&e.canRun(),g=n=>{d||(d=!0,e.onSuccess?.(n),t?.(),f.resolve(n))},v=n=>{d||(d=!0,e.onError?.(n),t?.(),f.reject(n))},m=()=>new Promise(n=>{t=e=>{(d||h())&&n(e)},e.onPause?.()}).then(()=>{t=void 0,d||e.onContinue?.()}),b=()=>{let t;if(d)return;let r=0===c?e.initialPromise:void 0;try{t=r??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(g).catch(t=>{if(d)return;let r=e.retry??3*!a.S$,i=e.retryDelay??s,o="function"==typeof i?i(c,t):i,l=!0===r||"number"==typeof r&&c<r||"function"==typeof r&&r(c,t);if(n||!l)return void v(t);c++,e.onFail?.(c,t),(0,a.yy)(o).then(()=>h()?void 0:m()).then(()=>{n?v(t):b()})})};return{promise:f,cancel:t=>{d||(v(new u(t)),e.abort?.())},continue:()=>(t?.(),f),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:p,start:()=>(p()?b():m().then(b),f)}}},47797:(e,t,n)=>{"use strict";n.d(t,{A:()=>o,y:()=>a});var r=n(75678),i=n(17737);function o(e){var t=e.document.documentElement,n=(0,r.A)(e).on("dragstart.drag",i.Ay,i.Rw);"onselectstart"in t?n.on("selectstart.drag",i.Ay,i.Rw):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function a(e,t){var n=e.document.documentElement,o=(0,r.A)(e).on("dragstart.drag",null);t&&(o.on("click.drag",i.Ay,i.Rw),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in n?o.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}},47900:(e,t,n)=>{"use strict";n.d(t,{rm:()=>er,Dr:()=>es,Uh:()=>eo,QC:()=>ea,S3:()=>el,y3:()=>et,iD:()=>ec,x0:()=>eu,il:()=>Z,bX:()=>en,cQ:()=>ee});var r=n(9597),i=n(20752),o=n(80905);let a=e=>{let t=(0,o.useRef)(e),n=(0,o.useRef)(!1);(0,o.useEffect)(()=>{t.current=e}),(0,o.useEffect)(()=>{!0!==n.current&&(n.current=!0,t.current())},[])};var s=n(51075),l=n(97276),u=n(7759),c=n(42347);let[d,f]=(0,c.q)({name:"MenuContext",hookName:"useMenuContext",providerName:"<MenuProvider />",strict:!1}),[h,p]=(0,c.q)({name:"MenuMachineContext",hookName:"useMenuMachineContext",providerName:"<MenuMachineProvider />",strict:!1}),[g,v]=(0,c.q)({name:"MenuMachineContext",hookName:"useMenuMachineContext",providerName:"<MenuMachineProvider />",strict:!1});var m=n(90167),b=n(7685),y=n(35556),x=n(63283),w=n(52693),S=n(52718);let E=(0,o.forwardRef)((e,t)=>{let n=f(),o=(0,u.c)(),a=(0,i.v6)({...n.getTriggerProps(),"aria-controls":o.unmounted?void 0:n.getTriggerProps()["aria-controls"]},e);return(0,r.jsx)(S.X.button,{...a,ref:t})});E.displayName="MenuTrigger";let k=(0,o.forwardRef)((e,t)=>{let n=f(),o=(0,i.v6)(n.getContextTriggerProps(),e);return(0,r.jsx)(S.X.button,{...o,ref:t})});k.displayName="MenuContextTrigger";let C=(0,o.forwardRef)((e,t)=>{let n=f(),o=(0,i.v6)(n.getPositionerProps(),e);return(0,u.c)().unmounted?null:(0,r.jsx)(S.X.div,{...o,ref:t})});C.displayName="MenuPositioner";let O=(0,o.forwardRef)((e,t)=>{let n=f(),o=(0,i.v6)(n.getSeparatorProps(),e);return(0,r.jsx)(S.X.hr,{...o,ref:t})});O.displayName="MenuSeparator";var I=n(99648);let _=(0,o.forwardRef)((e,t)=>{let n=f(),o=(0,u.c)(),a=(0,i.v6)(n.getContentProps(),o.getPresenceProps(),e);return o.unmounted?null:(0,r.jsx)(S.X.div,{...a,ref:(0,I.t)(o.ref,t)})});_.displayName="MenuContent";let T=(0,o.forwardRef)((e,t)=>{let n=f(),o=(0,i.v6)(n.getArrowTipProps(),e);return(0,r.jsx)(S.X.div,{...o,ref:t})});T.displayName="MenuArrowTip";let P=(0,o.forwardRef)((e,t)=>{let n=f(),o=(0,i.v6)(n.getArrowProps(),e);return(0,r.jsx)(S.X.div,{...o,ref:t})});P.displayName="MenuArrow";let R=(0,o.forwardRef)((e,t)=>{let n=f(),o=(0,i.v6)(n.getIndicatorProps(),e);return(0,r.jsx)(S.X.div,{...o,ref:t})});R.displayName="MenuIndicator";let[A,N]=(0,c.q)({name:"MenuItemGroupContext",hookName:"useMenuItemGroupContext",providerName:"<MenuItemGroupProvider />"}),M=(0,o.forwardRef)((e,t)=>{let[n,a]=(0,m.P)()(e,["id"]),s=f(),l={id:(0,o.useId)(),...n},u=(0,i.v6)(s.getItemGroupProps(l),a);return(0,r.jsx)(A,{value:l,children:(0,r.jsx)(S.X.div,{...u,ref:t})})});M.displayName="MenuItemGroup";let L=(0,o.forwardRef)((e,t)=>{let n=f(),o=N(),a=(0,i.v6)(n.getItemGroupLabelProps({htmlFor:o.id}),e);return(0,r.jsx)(S.X.div,{...a,ref:t})});L.displayName="MenuItemGroupLabel";let[V,D]=(0,c.q)({name:"MenuItemContext",hookName:"useMenuItemContext",providerName:"<MenuItemProvider />"}),[F,j]=(0,c.q)({name:"MenuItemPropsContext",hookName:"useMenuItemPropsContext",providerName:"<MenuItemPropsProvider />"}),z=(0,o.forwardRef)((e,t)=>{let[n,a]=(0,m.P)()(e,["closeOnSelect","disabled","value","valueText","onSelect"]),s=f(),l=(0,i.v6)(s.getItemProps(n),a),u=s.getItemState(n);return(0,o.useEffect)(()=>s.addItemListener({id:u.id,onSelect:n.onSelect}),[u.id,n.onSelect]),(0,r.jsx)(F,{value:n,children:(0,r.jsx)(V,{value:u,children:(0,r.jsx)(S.X.div,{...l,ref:t})})})});z.displayName="MenuItem";let B=(0,o.forwardRef)((e,t)=>{var n;let o=v(),a=(0,i.v6)(null!=(n=null==o?void 0:o())?n:{},e);return(0,r.jsx)(S.X.div,{...a,ref:t})});B.displayName="MenuTriggerItem";let U=(0,o.forwardRef)((e,t)=>{let n=f(),o=j(),a=(0,i.v6)(n.getItemTextProps(o),e);return(0,r.jsx)(S.X.div,{...a,ref:t})});U.displayName="MenuItemText";let W=(0,o.forwardRef)((e,t)=>{let n=f(),o=j(),a=(0,i.v6)(n.getItemIndicatorProps(o),e);return(0,r.jsx)(S.X.div,{...a,ref:t})});W.displayName="MenuItemIndicator";let H=(0,o.forwardRef)((e,t)=>{let[n,o]=(0,m.P)()(e,["checked","closeOnSelect","disabled","onCheckedChange","value","valueText"]),a={...n,type:"checkbox"},s=f(),l=(0,i.v6)(s.getOptionItemProps(a),o),u=s.getOptionItemState(a);return(0,r.jsx)(F,{value:a,children:(0,r.jsx)(V,{value:u,children:(0,r.jsx)(S.X.div,{...l,ref:t})})})});H.displayName="MenuCheckboxItem";let q=(0,o.forwardRef)((e,t)=>{let[n,a]=(0,m.P)()(e,["id","onValueChange","value"]),s=f(),l={id:(0,o.useId)(),...n},u=(0,i.v6)(s.getItemGroupProps({id:l.id}),a);return(0,r.jsx)(A,{value:l,children:(0,r.jsx)(S.X.div,{...u,ref:t})})});q.displayName="MenuRadioItemGroup";let $=(0,o.forwardRef)((e,t)=>{let[n,o]=(0,m.P)()(e,["closeOnSelect","disabled","value","valueText"]),a=f(),s=N(),l={...n,checked:s.value===n.value,type:"radio",onCheckedChange:()=>{var e;return null==(e=s.onValueChange)?void 0:e.call(s,{value:n.value})}},u=(0,i.v6)(a.getOptionItemProps(l),o),c=a.getOptionItemState(l);return(0,r.jsx)(F,{value:l,children:(0,r.jsx)(V,{value:c,children:(0,r.jsx)(S.X.div,{...u,ref:t})})})});$.displayName="MenuRadioItem";var G=n(25651),K=n(6644);let{withRootProvider:Y,withContext:X,useStyles:Q,PropsProvider:J}=(0,G.c)({key:"menu"});Y(e=>{let t=f(),n=p(),[c,{value:v,children:m}]=(0,s.s)(e),{api:b,service:y}=v,x=(0,l.x)((0,i.v6)({present:b.open},c));a(()=>{n&&t&&(t.setChild(y),b.setParent(n))});let w=(0,o.useCallback)(()=>null==t?void 0:t.getTriggerItemProps(b),[b,t]);return(0,r.jsx)(g,{value:w,children:(0,r.jsx)(h,{value:y,children:(0,r.jsx)(d,{value:b,children:(0,r.jsx)(u.j,{value:x,children:m})})})})});let Z=Y(e=>{let[t,n]=(0,s.s)(e),[c,v]=(0,m.P)()(n,["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","open","positioning","typeahead"]),S=f(),E=p(),{api:k,service:C}=(e=>{let t=(0,o.useId)(),{getRootNode:n}=(0,x.w)(),{dir:r}=(0,w.g)(),i={id:t,dir:r,getRootNode:n,...e},a=(0,y.zl)(b.Aq,i);return{api:b.Ng(a,y._B),service:a}})(c),O=(0,l.x)((0,i.v6)({present:k.open},t));a(()=>{E&&S&&(S.setChild(C),k.setParent(E))});let I=(0,o.useCallback)(()=>null==S?void 0:S.getTriggerItemProps(k),[k,S]);return(0,r.jsx)(g,{value:I,children:(0,r.jsx)(h,{value:C,children:(0,r.jsx)(d,{value:k,children:(0,r.jsx)(u.j,{value:O,...v})})})})},{defaultProps:{lazyMount:!0,unmountOnExit:!0}}),ee=X(E,"trigger",{forwardAsChild:!0});X(k,"contextTrigger",{forwardAsChild:!0});let et=X(C,"positioner",{forwardAsChild:!0}),en=X(O,"separator",{forwardAsChild:!0}),er=X(_,"content",{forwardAsChild:!0}),ei=X(T,"arrowTip",{forwardAsChild:!0});X(P,"arrow",{forwardAsChild:!0,defaultProps:{children:(0,r.jsx)(ei,{})}}),X(R,"indicator",{forwardAsChild:!0});let eo=X(M,"itemGroup",{forwardAsChild:!0}),ea=X(L,"itemGroupLabel",{forwardAsChild:!0}),es=X(z,"item",{forwardAsChild:!0});X(B,"item",{forwardAsChild:!0}),X(U,"itemText",{forwardAsChild:!0}),X("kbd","itemCommand");let el=X(W,"itemIndicator",{forwardAsChild:!0,defaultProps:{children:(0,r.jsx)(K.Sr,{boxSize:"4"})}});X(H,"item",{forwardAsChild:!0});let eu=X(q,"itemGroup",{forwardAsChild:!0}),ec=X($,"item",{forwardAsChild:!0})},47997:(e,t,n)=>{e.exports=n(53252).Uint8Array},48028:(e,t,n)=>{"use strict";var r=n(89124).longestPath,i=n(82540),o=n(74985);e.exports=function(e){switch(e.graph().ranker){case"network-simplex":default:o(e);break;case"tight-tree":var t;r(t=e),i(t);break;case"longest-path":a(e)}};var a=r},48437:(e,t,n)=>{var r=n(63780),i=n(16257),o=n(75114),a=n(23212);e.exports=function e(t,n,s,l){var u,c,d=t.children(n),f=t.node(n),h=f?f.borderLeft:void 0,p=f?f.borderRight:void 0,g={};h&&(d=r.filter(d,function(e){return e!==h&&e!==p}));var v=i(t,d);r.forEach(v,function(n){if(t.children(n.v).length){var i,o,a=e(t,n.v,s,l);g[n.v]=a,r.has(a,"barycenter")&&(i=n,o=a,r.isUndefined(i.barycenter)?(i.barycenter=o.barycenter,i.weight=o.weight):(i.barycenter=(i.barycenter*i.weight+o.barycenter*o.weight)/(i.weight+o.weight),i.weight+=o.weight))}});var m=o(v,s);u=m,c=g,r.forEach(u,function(e){e.vs=r.flatten(e.vs.map(function(e){return c[e]?c[e].vs:e}),!0)});var b=a(m,l);if(h&&(b.vs=r.flatten([h,b.vs,p],!0),t.predecessors(h).length)){var y=t.node(t.predecessors(h)[0]),x=t.node(t.predecessors(p)[0]);r.has(b,"barycenter")||(b.barycenter=0,b.weight=0),b.barycenter=(b.barycenter*b.weight+y.order+x.order)/(b.weight+2),b.weight+=2}return b}},48824:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},49923:(e,t,n)=>{var r=n(79123);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,o=e==e,a=r(e),s=void 0!==t,l=null===t,u=t==t,c=r(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||i&&s&&u||!n&&u||!o)return 1;if(!i&&!a&&!c&&e<t||c&&n&&o&&!i&&!a||l&&n&&o||!s&&o||!u)return -1}return 0}},50674:(e,t,n)=>{"use strict";n.d(t,{$:()=>l});var r=n(6280),i=n(77952),o="pointerdown.outside",a="focus.outside";function s(e,t){if(!t||!("clientY"in e))return!1;let n=t.scrollHeight>t.clientHeight,r=n&&e.clientX>t.offsetLeft+t.clientWidth,i=t.scrollWidth>t.clientWidth,o=i&&e.clientY>t.offsetTop+t.clientHeight,a={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+16*!!n,height:t.clientHeight+16*!!i},s={x:e.clientX,y:e.clientY};return a.y<=s.y&&s.y<=a.y+a.height&&a.x<=s.x&&s.x<=a.x+a.width&&(r||o)}function l(e,t){let{defer:n}=t,l=n?r.er:e=>e(),c=[];return c.push(l(()=>{let n="function"==typeof e?e():e;c.push(function(e,t){let{exclude:n,onFocusOutside:l,onPointerDownOutside:c,onInteractOutside:d,defer:f}=t;if(!e)return;let h=(0,r.YE)(e),p=(0,r.zk)(e),g=function(e){let t={each(t){for(let n=0;n<e.frames?.length;n+=1){let r=e.frames[n];r&&t(r)}},addEventListener:(e,n,r)=>(t.each(t=>{try{t.document.addEventListener(e,n,r)}catch{}}),()=>{try{t.removeEventListener(e,n,r)}catch{}}),removeEventListener(e,n,r){t.each(t=>{try{t.document.removeEventListener(e,n,r)}catch{}})}};return t}(p),v=function(e){let t=null!=e.frameElement?e.parent:null;return{addEventListener:(e,n,r)=>{try{t?.addEventListener(e,n,r)}catch{}return()=>{try{t?.removeEventListener(e,n,r)}catch{}}},removeEventListener:(e,n,r)=>{try{t?.removeEventListener(e,n,r)}catch{}}}}(p);function m(t,i){if(!(0,r.sb)(i)||!i.isConnected||(0,r.gR)(e,i)||function(e,t){if(!("clientY"in t)||!e)return!1;let n=e.getBoundingClientRect();return 0!==n.width&&0!==n.height&&n.top<=t.clientY&&t.clientY<=n.top+n.height&&n.left<=t.clientX&&t.clientX<=n.left+n.width}(e,t))return!1;let o=h.querySelector(`[aria-controls="${e.id}"]`);return!(o&&s(t,(0,r.ob)(o)))&&!s(t,(0,r.ob)(e))&&!n?.(i)}let b=new Set,y=(0,r.Ng)(e?.getRootNode());function x(t){function n(n){let a=f&&!(0,r.CN)()?r.er:e=>e(),s=n??t,l=s?.composedPath?.()??[s?.target];a(()=>{let n=y?l[0]:(0,r.wt)(t);if(e&&m(t,n)){if(c||d){let t=(0,i.OK)(c,d);e.addEventListener(o,t,{once:!0})}u(e,o,{bubbles:!1,cancelable:!0,detail:{originalEvent:s,contextmenu:(0,r.fv)(s),focusable:function(e){for(let t of e)if((0,r.sb)(t)&&(0,r.tp)(t))return!0;return!1}(l),target:n}})}})}"touch"===t.pointerType?(b.forEach(e=>e()),b.add((0,r.kn)(h,"click",n,{once:!0})),b.add(v.addEventListener("click",n,{once:!0})),b.add(g.addEventListener("click",n,{once:!0}))):n()}let w=new Set,S=setTimeout(()=>{w.add((0,r.kn)(h,"pointerdown",x,!0)),w.add(v.addEventListener("pointerdown",x,!0)),w.add(g.addEventListener("pointerdown",x,!0))},0);function E(t){(f?r.er:e=>e())(()=>{let n=(0,r.wt)(t);if(e&&m(t,n)){if(l||d){let t=(0,i.OK)(l,d);e.addEventListener(a,t,{once:!0})}u(e,a,{bubbles:!1,cancelable:!0,detail:{originalEvent:t,contextmenu:!1,focusable:(0,r.tp)(n),target:n}})}})}return(0,r.CN)()||(w.add((0,r.kn)(h,"focusin",E,!0)),w.add(v.addEventListener("focusin",E,!0)),w.add(g.addEventListener("focusin",E,!0))),()=>{clearTimeout(S),b.forEach(e=>e()),w.forEach(e=>e())}}(n,t))})),()=>{c.forEach(e=>e?.())}}function u(e,t,n){let r=new(e.ownerDocument.defaultView||window).CustomEvent(t,n);return e.dispatchEvent(r)}},50761:e=>{e.exports=function(e,t){return e<t}},50952:(e,t,n)=>{var r=n(27745),i=n(94398),o=n(16966);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},51075:(e,t,n)=>{"use strict";n.d(t,{s:()=>i});var r=n(90167);let i=e=>(0,r.P)()(e,["immediate","lazyMount","onExitComplete","present","skipAnimationOnMount","unmountOnExit"])},51256:(e,t,n)=>{"use strict";e.exports=n(84578)},51324:(e,t,n)=>{var r=n(63780),i=n(99601);e.exports={run:function(e){var t,n,o,a=i.addDummyNode(e,"root",{},"_root"),s=(t=e,n={},r.forEach(t.children(),function(e){!function e(i,o){var a=t.children(i);a&&a.length&&r.forEach(a,function(t){e(t,o+1)}),n[i]=o}(e,1)}),n),l=r.max(r.values(s))-1,u=2*l+1;e.graph().nestingRoot=a,r.forEach(e.edges(),function(t){e.edge(t).minlen*=u});var c=(o=e,r.reduce(o.edges(),function(e,t){return e+o.edge(t).weight},0)+1);r.forEach(e.children(),function(t){!function e(t,n,o,a,s,l,u){var c=t.children(u);if(!c.length){u!==n&&t.setEdge(n,u,{weight:0,minlen:o});return}var d=i.addBorderNode(t,"_bt"),f=i.addBorderNode(t,"_bb"),h=t.node(u);t.setParent(d,u),h.borderTop=d,t.setParent(f,u),h.borderBottom=f,r.forEach(c,function(r){e(t,n,o,a,s,l,r);var i=t.node(r),c=i.borderTop?i.borderTop:r,h=i.borderBottom?i.borderBottom:r,p=i.borderTop?a:2*a,g=c!==h?1:s-l[u]+1;t.setEdge(d,c,{weight:p,minlen:g,nestingEdge:!0}),t.setEdge(h,f,{weight:p,minlen:g,nestingEdge:!0})}),t.parent(u)||t.setEdge(n,d,{weight:0,minlen:s+l[u]})}(e,a,u,c,l,s,t)}),e.graph().nodeRankFactor=u},cleanup:function(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,r.forEach(e.edges(),function(t){e.edge(t).nestingEdge&&e.removeEdge(t)})}}},51945:(e,t,n)=>{"use strict";n.d(t,{j:()=>i});var r=n(40928);let i=e=>r.y$(e)},52337:(e,t,n)=>{var r=n(87313),i=n(23994);e.exports=function e(t,n,o,a,s){var l=-1,u=t.length;for(o||(o=i),s||(s=[]);++l<u;){var c=t[l];n>0&&o(c)?n>1?e(c,n-1,o,a,s):r(s,c):a||(s[s.length]=c)}return s}},52432:(e,t,n)=>{var r=n(19978),i=n(41),o=n(61018);e.exports=function(e,t){var n,a=new i,s={},l=new o;function u(e){var r=e.v===n?e.w:e.v,i=l.priority(r);if(void 0!==i){var o=t(e);o<i&&(s[r]=n,l.decrease(r,o))}}if(0===e.nodeCount())return a;r.each(e.nodes(),function(e){l.add(e,1/0),a.setNode(e)}),l.decrease(e.nodes()[0],0);for(var c=!1;l.size()>0;){if(n=l.removeMin(),r.has(s,n))a.setEdge(n,s[n]);else if(c)throw Error("Input graph is not connected: "+e);else c=!0;e.nodeEdges(n).forEach(u)}return a}},52618:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return o}});let r=n(64141),i=n(68556);function o(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,i.hasBasePath)(n.pathname)}catch(e){return!1}}},52693:(e,t,n)=>{"use strict";n.d(t,{g:()=>i});let[r,i]=(0,n(42347).q)({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}})},52718:(e,t,n)=>{"use strict";n.d(t,{X:()=>s});var r=n(20752),i=n(80905),o=n(99648);let a=e=>{let t=(0,i.memo)((0,i.forwardRef)((t,n)=>{let{asChild:a,children:s,...l}=t;if(!a)return(0,i.createElement)(e,{...l,ref:n},s);let u=i.Children.only(s);if(!(0,i.isValidElement)(u))return null;let c=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(u);return(0,i.cloneElement)(u,{...(0,r.v6)(l,u.props),ref:n?(0,o.t)(n,c):c})}));return t.displayName=e.displayName||e.name,t},s=(()=>{let e=new Map;return new Proxy(a,{apply:(e,t,n)=>a(n[0]),get:(t,n)=>(e.has(n)||e.set(n,a(n)),e.get(n))})})()},52731:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},52889:e=>{e.exports=function(e){return e}},52944:(e,t,n)=>{var r=n(54778);e.exports=function(e){return r(this,e).get(e)}},53082:(e,t,n)=>{"use strict";n.d(t,{A:()=>function e(t){if("string"==typeof t||"number"==typeof t)return""+t;let n="";if(Array.isArray(t))for(let r=0,i;r<t.length;r++)""!==(i=e(t[r]))&&(n+=(n&&" ")+i);else for(let e in t)t[e]&&(n+=(n&&" ")+e);return n}})},53215:(e,t,n)=>{var r=n(52889),i=n(53708),o=n(57248);e.exports=function(e,t){return o(i(e,t,r),e+"")}},53252:(e,t,n)=>{var r=n(20017),i="object"==typeof self&&self&&self.Object===Object&&self;e.exports=r||i||Function("return this")()},53264:e=>{e.exports=function(e){return this.__data__.has(e)}},53311:(e,t,n)=>{var r=n(69864),i=n(80053),o=n(12984),a=n(5816),s=n(23503),l=n(8788);e.exports=function(e,t,n){t=r(t,e);for(var u=-1,c=t.length,d=!1;++u<c;){var f=l(t[u]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++u!=c?d:!!(c=null==e?0:e.length)&&s(c)&&a(f,c)&&(o(e)||i(e))}},53708:(e,t,n)=>{var r=n(12696),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a<s;)l[a]=o[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=o[a];return u[t]=n(l),r(e,this,u)}}},53804:(e,t,n)=>{var r=n(85566);e.exports=function(e){return r(e,4)}},54053:(e,t,n)=>{e.exports=n(83199)(n(53252),"Promise")},54371:(e,t,n)=>{"use strict";n.d(t,{m:()=>o});var r=n(36621),i=n(70465),o=new class extends r.Q{#l;#a;#s;constructor(){super(),this.#s=e=>{if(!i.S$&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#a||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#a?.(),this.#a=void 0)}setEventListener(e){this.#s=e,this.#a?.(),this.#a=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#l!==e&&(this.#l=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#l?this.#l:globalThis.document?.visibilityState!=="hidden"}}},54394:(e,t,n)=>{"use strict";n.d(t,{Ox:()=>eR,bf:()=>eI,aC:()=>eN});let r=["top","right","bottom","left"],i=Math.min,o=Math.max,a=Math.round,s=Math.floor,l=e=>({x:e,y:e}),u={left:"right",right:"left",bottom:"top",top:"bottom"},c={start:"end",end:"start"};function d(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function h(e){return e.split("-")[1]}function p(e){return"x"===e?"y":"x"}function g(e){return"y"===e?"height":"width"}let v=new Set(["top","bottom"]);function m(e){return v.has(f(e))?"y":"x"}function b(e){return e.replace(/start|end/g,e=>c[e])}let y=["left","right"],x=["right","left"],w=["top","bottom"],S=["bottom","top"];function E(e){return e.replace(/left|right|bottom|top/g,e=>u[e])}function k(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function C(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function O(e,t,n){let r,{reference:i,floating:o}=e,a=m(t),s=p(m(t)),l=g(s),u=f(t),c="y"===a,d=i.x+i.width/2-o.width/2,v=i.y+i.height/2-o.height/2,b=i[l]/2-o[l]/2;switch(u){case"top":r={x:d,y:i.y-o.height};break;case"bottom":r={x:d,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:v};break;case"left":r={x:i.x-o.width,y:v};break;default:r={x:i.x,y:i.y}}switch(h(t)){case"start":r[s]-=b*(n&&c?-1:1);break;case"end":r[s]+=b*(n&&c?-1:1)}return r}let I=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await (null==a.isRTL?void 0:a.isRTL(t)),u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=O(u,r,l),f=r,h={},p=0;for(let n=0;n<s.length;n++){let{name:o,fn:g}=s[n],{x:v,y:m,data:b,reset:y}=await g({x:c,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:h,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=v?v:c,d=null!=m?m:d,h={...h,[o]:{...h[o],...b}},y&&p<=50&&(p++,"object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(u=!0===y.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):y.rects),{x:c,y:d}=O(u,f,l)),n=-1)}return{x:c,y:d,placement:f,strategy:i,middlewareData:h}};async function _(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:h=!1,padding:p=0}=d(t,e),g=k(p),v=s[h?"floating"===f?"reference":"floating":f],m=C(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(v)))||n?v:v.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),b="floating"===f?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,y=await (null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),x=await (null==o.isElement?void 0:o.isElement(y))&&await (null==o.getScale?void 0:o.getScale(y))||{x:1,y:1},w=C(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:y,strategy:l}):b);return{top:(m.top-w.top+g.top)/x.y,bottom:(w.bottom-m.bottom+g.bottom)/x.y,left:(m.left-w.left+g.left)/x.x,right:(w.right-m.right+g.right)/x.x}}function T(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function P(e){return r.some(t=>e[t]>=0)}let R=new Set(["left","top"]);async function A(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),a=f(n),s=h(n),l="y"===m(n),u=R.has(a)?-1:1,c=o&&l?-1:1,p=d(t,e),{mainAxis:g,crossAxis:v,alignmentAxis:b}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&"number"==typeof b&&(v="end"===s?-1*b:b),l?{x:v*c,y:g*u}:{x:g*u,y:v*c}}function N(){return"undefined"!=typeof window}function M(e){return D(e)?(e.nodeName||"").toLowerCase():"#document"}function L(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function V(e){var t;return null==(t=(D(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function D(e){return!!N()&&(e instanceof Node||e instanceof L(e).Node)}function F(e){return!!N()&&(e instanceof Element||e instanceof L(e).Element)}function j(e){return!!N()&&(e instanceof HTMLElement||e instanceof L(e).HTMLElement)}function z(e){return!!N()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof L(e).ShadowRoot)}let B=new Set(["inline","contents"]);function U(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Z(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!B.has(i)}let W=new Set(["table","td","th"]),H=[":popover-open",":modal"];function q(e){return H.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let $=["transform","translate","scale","rotate","perspective"],G=["transform","translate","scale","rotate","perspective","filter"],K=["paint","layout","strict","content"];function Y(e){let t=X(),n=F(e)?Z(e):e;return $.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||G.some(e=>(n.willChange||"").includes(e))||K.some(e=>(n.contain||"").includes(e))}function X(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let Q=new Set(["html","body","#document"]);function J(e){return Q.has(M(e))}function Z(e){return L(e).getComputedStyle(e)}function ee(e){return F(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function et(e){if("html"===M(e))return e;let t=e.assignedSlot||e.parentNode||z(e)&&e.host||V(e);return z(t)?t.host:t}function en(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=et(t);return J(n)?t.ownerDocument?t.ownerDocument.body:t.body:j(n)&&U(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=L(i);if(o){let e=er(a);return t.concat(a,a.visualViewport||[],U(i)?i:[],e&&n?en(e):[])}return t.concat(i,en(i,[],n))}function er(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ei(e){let t=Z(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=j(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,l=a(n)!==o||a(r)!==s;return l&&(n=o,r=s),{width:n,height:r,$:l}}function eo(e){return F(e)?e:e.contextElement}function ea(e){let t=eo(e);if(!j(t))return l(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=ei(t),s=(o?a(n.width):n.width)/r,u=(o?a(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),u&&Number.isFinite(u)||(u=1),{x:s,y:u}}let es=l(0);function el(e){let t=L(e);return X()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:es}function eu(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),a=eo(e),s=l(1);t&&(r?F(r)&&(s=ea(r)):s=ea(e));let u=(void 0===(i=n)&&(i=!1),r&&(!i||r===L(a))&&i)?el(a):l(0),c=(o.left+u.x)/s.x,d=(o.top+u.y)/s.y,f=o.width/s.x,h=o.height/s.y;if(a){let e=L(a),t=r&&F(r)?L(r):r,n=e,i=er(n);for(;i&&r&&t!==n;){let e=ea(i),t=i.getBoundingClientRect(),r=Z(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,d*=e.y,f*=e.x,h*=e.y,c+=o,d+=a,i=er(n=L(i))}}return C({width:f,height:h,x:c,y:d})}function ec(e,t){let n=ee(e).scrollLeft;return t?t.left+n:eu(V(e)).left+n}function ed(e,t,n){void 0===n&&(n=!1);let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:ec(e,r)),y:r.top+t.scrollTop}}let ef=new Set(["absolute","fixed"]);function eh(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=L(e),r=V(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;let e=X();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){let t=V(e),n=ee(e),r=e.ownerDocument.body,i=o(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=o(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-n.scrollLeft+ec(e),l=-n.scrollTop;return"rtl"===Z(r).direction&&(s+=o(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:s,y:l}}(V(e));else if(F(t))r=function(e,t){let n=eu(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=j(e)?ea(e):l(1),a=e.clientWidth*o.x,s=e.clientHeight*o.y;return{width:a,height:s,x:i*o.x,y:r*o.y}}(t,n);else{let n=el(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return C(r)}function ep(e){return"static"===Z(e).position}function eg(e,t){if(!j(e)||"fixed"===Z(e).position)return null;if(t)return t(e);let n=e.offsetParent;return V(e)===n&&(n=n.ownerDocument.body),n}function ev(e,t){var n;let r=L(e);if(q(e))return r;if(!j(e)){let t=et(e);for(;t&&!J(t);){if(F(t)&&!ep(t))return t;t=et(t)}return r}let i=eg(e,t);for(;i&&(n=i,W.has(M(n)))&&ep(i);)i=eg(i,t);return i&&J(i)&&ep(i)&&!Y(i)?r:i||function(e){let t=et(e);for(;j(t)&&!J(t);){if(Y(t))return t;if(q(t))break;t=et(t)}return null}(e)||r}let em=async function(e){let t=this.getOffsetParent||ev,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=j(t),i=V(t),o="fixed"===n,a=eu(e,!0,o,t),s={scrollLeft:0,scrollTop:0},u=l(0);if(r||!r&&!o)if(("body"!==M(t)||U(i))&&(s=ee(t)),r){let e=eu(t,!0,o,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else i&&(u.x=ec(i));o&&!r&&i&&(u.x=ec(i));let c=!i||r||o?l(0):ed(i,s);return{x:a.left+s.scrollLeft-u.x-c.x,y:a.top+s.scrollTop-u.y-c.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},eb={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,a=V(r),s=!!t&&q(t.floating);if(r===a||s&&o)return n;let u={scrollLeft:0,scrollTop:0},c=l(1),d=l(0),f=j(r);if((f||!f&&!o)&&(("body"!==M(r)||U(a))&&(u=ee(r)),j(r))){let e=eu(r);c=ea(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}let h=!a||f||o?l(0):ed(a,u,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+d.x+h.x,y:n.y*c.y-u.scrollTop*c.y+d.y+h.y}},getDocumentElement:V,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e,s=[..."clippingAncestors"===n?q(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=en(e,[],!1).filter(e=>F(e)&&"body"!==M(e)),i=null,o="fixed"===Z(e).position,a=o?et(e):e;for(;F(a)&&!J(a);){let t=Z(a),n=Y(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&!!i&&ef.has(i.position)||U(a)&&!n&&function e(t,n){let r=et(t);return!(r===n||!F(r)||J(r))&&("fixed"===Z(r).position||e(r,n))}(e,a))?r=r.filter(e=>e!==a):i=t,a=et(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=s[0],u=s.reduce((e,n)=>{let r=eh(t,n,a);return e.top=o(r.top,e.top),e.right=i(r.right,e.right),e.bottom=i(r.bottom,e.bottom),e.left=o(r.left,e.left),e},eh(t,l,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:ev,getElementRects:em,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=ei(e);return{width:t,height:n}},getScale:ea,isElement:F,isRTL:function(e){return"rtl"===Z(e).direction}};function ey(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}var ex=n(6280),ew=n(77952);function eS(e=0,t=0,n=0,r=0){if("function"==typeof DOMRect)return new DOMRect(e,t,n,r);let i={x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e};return{...i,toJSON:()=>i}}var eE=e=>({variable:e,reference:`var(${e})`}),ek={arrowSize:eE("--arrow-size"),arrowSizeHalf:eE("--arrow-size-half"),arrowBg:eE("--arrow-background"),transformOrigin:eE("--transform-origin"),arrowOffset:eE("--arrow-offset")},eC={name:"transformOrigin",fn({placement:e,elements:t,middlewareData:n}){let{arrow:r}=n,i={top:"bottom center","top-start":r?`${r.x}px bottom`:"left bottom","top-end":r?`${r.x}px bottom`:"right bottom",bottom:"top center","bottom-start":r?`${r.x}px top`:"top left","bottom-end":r?`${r.x}px top`:"top right",left:"right center","left-start":r?`right ${r.y}px`:"right top","left-end":r?`right ${r.y}px`:"right bottom",right:"left center","right-start":r?`left ${r.y}px`:"left top","right-end":r?`left ${r.y}px`:"left bottom"}[e],{floating:o}=t;return o.style.setProperty(ek.transformOrigin.variable,i),{data:{transformOrigin:i}}}},eO={name:"rects",fn:({rects:e})=>({data:e})};function eI(e){return e.split("-")[0]}var e_={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function eT(e,t){let n=e.devicePixelRatio||1;return Math.round(t*n)/n}function eP(e){return(0,ew.Jg)(e.boundary)}function eR(e,t,n={}){let{defer:r,...a}=n,l=r?ex.er:e=>e(),u=[];return u.push(l(()=>{let n="function"==typeof e?e():e,r="function"==typeof t?t():t;u.push(function(e,t,n={}){var r,a,l;let u=(r=n.getAnchorRect,{contextElement:(0,ex.sb)(e)?e:void 0,getBoundingClientRect:()=>{let t=r?.(e);if(t||!e){if(!t)return eS();let{x:e,y:n,width:r,height:i}=t;return eS(e,n,r,i)}return e.getBoundingClientRect()}});if(!t||!u)return;let c=Object.assign({},e_,n),v=t.querySelector("[data-part=arrow]"),C=[function(e,t){if(!(0,ew.kZ)(t.offset??t.gutter)){var n;return void 0===(n=({placement:n})=>{let r=(e?.clientHeight||0)/2,i=t.offset?.mainAxis??t.gutter,{hasAlign:o}=function(e){let[t,n]=e.split("-");return{side:t,align:n,hasAlign:null!=n}}(n),a=o?void 0:t.shift,s=t.offset?.crossAxis??a;return(0,ew.oE)({crossAxis:s,mainAxis:"number"==typeof i?i+r:i??r,alignmentAxis:t.shift})})&&(n=0),{name:"offset",options:n,async fn(e){var t,r;let{x:i,y:o,placement:a,middlewareData:s}=e,l=await A(e,n);return a===(null==(t=s.offset)?void 0:t.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}}}(v,c),function(e){if(e.flip){var t;return{name:"flip",options:t={boundary:eP(e),padding:e.overflowPadding,fallbackPlacements:!0===e.flip?void 0:e.flip},async fn(e){var n,r,i,o,a;let{placement:s,middlewareData:l,rects:u,initialPlacement:c,platform:v,elements:k}=e,{mainAxis:C=!0,crossAxis:O=!0,fallbackPlacements:I,fallbackStrategy:T="bestFit",fallbackAxisSideDirection:P="none",flipAlignment:R=!0,...A}=d(t,e);if(null!=(n=l.arrow)&&n.alignmentOffset)return{};let N=f(s),M=m(c),L=f(c)===c,V=await (null==v.isRTL?void 0:v.isRTL(k.floating)),D=I||(L||!R?[E(c)]:function(e){let t=E(e);return[b(e),t,b(t)]}(c)),F="none"!==P;!I&&F&&D.push(...function(e,t,n,r){let i=h(e),o=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?x:y;return t?y:x;case"left":case"right":return t?w:S;default:return[]}}(f(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(b)))),o}(c,R,P,V));let j=[c,...D],z=await _(e,A),B=[],U=(null==(r=l.flip)?void 0:r.overflows)||[];if(C&&B.push(z[N]),O){let e=function(e,t,n){void 0===n&&(n=!1);let r=h(e),i=p(m(e)),o=g(i),a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=E(a)),[a,E(a)]}(s,u,V);B.push(z[e[0]],z[e[1]])}if(U=[...U,{placement:s,overflows:B}],!B.every(e=>e<=0)){let e=((null==(i=l.flip)?void 0:i.index)||0)+1,t=j[e];if(t&&("alignment"!==O||M===m(t)||U.every(e=>e.overflows[0]>0&&m(e.placement)===M)))return{data:{index:e,overflows:U},reset:{placement:t}};let n=null==(o=U.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(T){case"bestFit":{let e=null==(a=U.filter(e=>{if(F){let t=m(e.placement);return t===M||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(n=e);break}case"initialPlacement":n=c}if(s!==n)return{reset:{placement:n}}}return{}}}}}(c),function(e){if(e.slide||e.overlap){var t,n;return{name:"shift",options:n={boundary:eP(e),mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:(void 0===t&&(t={}),{options:t,fn(e){let{x:n,y:r,placement:i,rects:o,middlewareData:a}=e,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=d(t,e),c={x:n,y:r},h=m(i),g=p(h),v=c[g],b=c[h],y=d(s,e),x="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){let e="y"===g?"height":"width",t=o.reference[g]-o.floating[e]+x.mainAxis,n=o.reference[g]+o.reference[e]-x.mainAxis;v<t?v=t:v>n&&(v=n)}if(u){var w,S;let e="y"===g?"width":"height",t=R.has(f(i)),n=o.reference[h]-o.floating[e]+(t&&(null==(w=a.offset)?void 0:w[h])||0)+(t?0:x.crossAxis),r=o.reference[h]+o.reference[e]+(t?0:(null==(S=a.offset)?void 0:S[h])||0)-(t?x.crossAxis:0);b<n?b=n:b>r&&(b=r)}return{[g]:v,[h]:b}}})},async fn(e){let{x:t,y:r,placement:a}=e,{mainAxis:s=!0,crossAxis:l=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=d(n,e),h={x:t,y:r},g=await _(e,c),v=m(f(a)),b=p(v),y=h[b],x=h[v];if(s){let e="y"===b?"top":"left",t="y"===b?"bottom":"right",n=y+g[e],r=y-g[t];y=o(n,i(y,r))}if(l){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",n=x+g[e],r=x-g[t];x=o(n,i(x,r))}let w=u.fn({...e,[b]:y,[v]:x});return{...w,data:{x:w.x-t,y:w.y-r,enabled:{[b]:s,[v]:l}}}}}}}(c),function(e,t){if(e){let n;return{name:"arrow",options:n={element:e,padding:t.arrowPadding},async fn(e){let{x:t,y:r,placement:a,rects:s,platform:l,elements:u,middlewareData:c}=e,{element:f,padding:v=0}=d(n,e)||{};if(null==f)return{};let b=k(v),y={x:t,y:r},x=p(m(a)),w=g(x),S=await l.getDimensions(f),E="y"===x,C=E?"clientHeight":"clientWidth",O=s.reference[w]+s.reference[x]-y[x]-s.floating[w],I=y[x]-s.reference[x],_=await (null==l.getOffsetParent?void 0:l.getOffsetParent(f)),T=_?_[C]:0;T&&await (null==l.isElement?void 0:l.isElement(_))||(T=u.floating[C]||s.floating[w]);let P=T/2-S[w]/2-1,R=i(b[E?"top":"left"],P),A=i(b[E?"bottom":"right"],P),N=T-S[w]-A,M=T/2-S[w]/2+(O/2-I/2),L=o(R,i(M,N)),V=!c.arrow&&null!=h(a)&&M!==L&&s.reference[w]/2-(M<R?R:A)-S[w]/2<0,D=V?M<R?M-R:M-N:0;return{[x]:y[x]+D,data:{[x]:L,centerOffset:M-L-D,...V&&{alignmentOffset:D}},reset:V}}}}}(v,c),(e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:n}){if(!n.arrow)return{};let{x:r,y:i}=n.arrow,o=t.split("-")[0];return Object.assign(e.style,{left:null!=r?`${r}px`:"",top:null!=i?`${i}px`:"",[o]:`calc(100% + ${ek.arrowOffset.reference})`}),{}}}})(v),eC,{name:"size",options:a={padding:c.overflowPadding,apply({elements:e,rects:t,availableHeight:n,availableWidth:r}){let i=e.floating,o=Math.round(t.reference.width);r=Math.floor(r),n=Math.floor(n),i.style.setProperty("--reference-width",`${o}px`),i.style.setProperty("--available-width",`${r}px`),i.style.setProperty("--available-height",`${n}px`)}},async fn(e){var t,n;let r,s,{placement:l,rects:u,platform:c,elements:p}=e,{apply:g=()=>{},...v}=d(a,e),b=await _(e,v),y=f(l),x=h(l),w="y"===m(l),{width:S,height:E}=u.floating;"top"===y||"bottom"===y?(r=y,s=x===(await (null==c.isRTL?void 0:c.isRTL(p.floating))?"start":"end")?"left":"right"):(s=y,r="end"===x?"top":"bottom");let k=E-b.top-b.bottom,C=S-b.left-b.right,O=i(E-b[r],k),I=i(S-b[s],C),T=!e.middlewareData.shift,P=O,R=I;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(R=C),null!=(n=e.middlewareData.shift)&&n.enabled.y&&(P=k),T&&!x){let e=o(b.left,0),t=o(b.right,0),n=o(b.top,0),r=o(b.bottom,0);w?R=S-2*(0!==e||0!==t?e+t:o(b.left,b.right)):P=E-2*(0!==n||0!==r?n+r:o(b.top,b.bottom))}await g({...e,availableWidth:R,availableHeight:P});let A=await c.getDimensions(p.floating);return S!==A.width||E!==A.height?{reset:{rects:!0}}:{}}},function(e){if(e.hideWhenDetached){var t;return{name:"hide",options:t={strategy:"referenceHidden",boundary:e.boundary?.()??"clippingAncestors"},async fn(e){let{rects:n}=e,{strategy:r="referenceHidden",...i}=d(t,e);switch(r){case"referenceHidden":{let t=T(await _(e,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:P(t)}}}case"escaped":{let t=T(await _(e,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:t,escaped:P(t)}}}default:return{}}}}}}(c),eO],{placement:O,strategy:N,onComplete:M,onPositioned:L}=c,D=async()=>{if(!u||!t)return;let e=await ((e,t,n)=>{let r=new Map,i={platform:eb,...n},o={...i.platform,_c:r};return I(e,t,{...i,platform:o})})(u,t,{placement:O,middleware:C,strategy:N});M?.(e),L?.({placed:!0});let n=(0,ex.zk)(t),r=eT(n,e.x),i=eT(n,e.y);t.style.setProperty("--x",`${r}px`),t.style.setProperty("--y",`${i}px`),c.hideWhenDetached&&(e.middlewareData.hide?.referenceHidden?(t.style.setProperty("visibility","hidden"),t.style.setProperty("pointer-events","none")):(t.style.removeProperty("visibility"),t.style.removeProperty("pointer-events")));let o=t.firstElementChild;if(o){let e=(0,ex.L9)(o);t.style.setProperty("--z-index",e.zIndex)}},F=async()=>{n.updatePosition?(await n.updatePosition({updatePosition:D,floatingElement:t}),L?.({placed:!0})):await D()},j=(l=c.listeners)?!0===l?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:l:{},z=c.listeners?function(e,t,n,r){let a;void 0===r&&(r={});let{ancestorScroll:l=!0,ancestorResize:u=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:f=!1}=r,h=eo(e),p=l||u?[...h?en(h):[],...en(t)]:[];p.forEach(e=>{l&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let g=h&&d?function(e,t){let n,r=null,a=V(e);function l(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function u(c,d){void 0===c&&(c=!1),void 0===d&&(d=1),l();let f=e.getBoundingClientRect(),{left:h,top:p,width:g,height:v}=f;if(c||t(),!g||!v)return;let m=s(p),b=s(a.clientWidth-(h+g)),y={rootMargin:-m+"px "+-b+"px "+-s(a.clientHeight-(p+v))+"px "+-s(h)+"px",threshold:o(0,i(1,d))||1},x=!0;function w(t){let r=t[0].intersectionRatio;if(r!==d){if(!x)return u();r?u(!1,r):n=setTimeout(()=>{u(!1,1e-7)},1e3)}1!==r||ey(f,e.getBoundingClientRect())||u(),x=!1}try{r=new IntersectionObserver(w,{...y,root:a.ownerDocument})}catch(e){r=new IntersectionObserver(w,y)}r.observe(e)}(!0),l}(h,n):null,v=-1,m=null;c&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===h&&m&&(m.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),h&&!f&&m.observe(h),m.observe(t));let b=f?eu(e):null;return f&&function t(){let r=eu(e);b&&!ey(b,r)&&n(),b=r,a=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach(e=>{l&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==g||g(),null==(e=m)||e.disconnect(),m=null,f&&cancelAnimationFrame(a)}}(u,t,F,j):ew.lQ;return F(),()=>{z?.(),L?.({placed:!1})}}(n,r,a))})),()=>{u.forEach(e=>e?.())}}var eA={bottom:"rotate(45deg)",left:"rotate(135deg)",top:"rotate(225deg)",right:"rotate(315deg)"};function eN(e={}){let{placement:t,sameWidth:n,fitViewport:r,strategy:i="absolute"}=e;return{arrow:{position:"absolute",width:ek.arrowSize.reference,height:ek.arrowSize.reference,[ek.arrowSizeHalf.variable]:`calc(${ek.arrowSize.reference} / 2)`,[ek.arrowOffset.variable]:`calc(${ek.arrowSizeHalf.reference} * -1)`},arrowTip:{transform:t?eA[t.split("-")[0]]:void 0,background:ek.arrowBg.reference,top:"0",left:"0",width:"100%",height:"100%",position:"absolute",zIndex:"inherit"},floating:{position:i,isolation:"isolate",minWidth:n?void 0:"max-content",width:n?"var(--reference-width)":void 0,maxWidth:r?"var(--available-width)":void 0,maxHeight:r?"var(--available-height)":void 0,pointerEvents:t?void 0:"none",top:"0px",left:"0px",transform:t?"translate3d(var(--x), var(--y), 0)":"translate3d(0, -100vh, 0)",zIndex:"var(--z-index)"}}}},54673:(e,t,n)=>{"use strict";n.d(t,{y:()=>o});let{withContext:r,PropsProvider:i}=(0,n(12580).a)({key:"spinner"}),o=r("span")},54778:(e,t,n)=>{var r=n(69675);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},54908:(e,t,n)=>{"use strict";n.d(t,{jG:()=>i});var r=e=>setTimeout(e,0),i=function(){let e=[],t=0,n=e=>{e()},i=e=>{e()},o=r,a=r=>{t?e.push(r):o(()=>{n(r)})};return{batch:r=>{let a;t++;try{a=r()}finally{--t||(()=>{let t=e;e=[],t.length&&o(()=>{i(()=>{t.forEach(e=>{n(e)})})})})()}return a},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{i=e},setScheduler:e=>{o=e}}}()},55740:(e,t,n)=>{var r=n(19978);e.exports=function(e){var t=0,n=[],i={},o=[];return e.nodes().forEach(function(a){r.has(i,a)||function a(s){var l=i[s]={onStack:!0,lowlink:t,index:t++};if(n.push(s),e.successors(s).forEach(function(e){r.has(i,e)?i[e].onStack&&(l.lowlink=Math.min(l.lowlink,i[e].index)):(a(e),l.lowlink=Math.min(l.lowlink,i[e].lowlink))}),l.lowlink===l.index){var u,c=[];do i[u=n.pop()].onStack=!1,c.push(u);while(s!==u);o.push(c)}}(a)}),o}},55806:(e,t,n)=>{var r=n(46872);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},56026:(e,t,n)=>{var r=n(63780),i=n(621).Graph,o=n(718);e.exports=function(e,t){if(1>=e.nodeCount())return[];var n,u,c,d,f,h,p,g=(n=e,u=t||a,c=new i,d=0,f=0,r.forEach(n.nodes(),function(e){c.setNode(e,{v:e,in:0,out:0})}),r.forEach(n.edges(),function(e){var t=c.edge(e.v,e.w)||0,n=u(e);c.setEdge(e.v,e.w,t+n),f=Math.max(f,c.node(e.v).out+=n),d=Math.max(d,c.node(e.w).in+=n)}),h=r.range(f+d+3).map(function(){return new o}),p=d+1,r.forEach(c.nodes(),function(e){l(h,p,c.node(e))}),{graph:c,buckets:h,zeroIdx:p}),v=function(e,t,n){for(var r,i=[],o=t[t.length-1],a=t[0];e.nodeCount();){for(;r=a.dequeue();)s(e,t,n,r);for(;r=o.dequeue();)s(e,t,n,r);if(e.nodeCount()){for(var l=t.length-2;l>0;--l)if(r=t[l].dequeue()){i=i.concat(s(e,t,n,r,!0));break}}}return i}(g.graph,g.buckets,g.zeroIdx);return r.flatten(r.map(v,function(t){return e.outEdges(t.v,t.w)}),!0)};var a=r.constant(1);function s(e,t,n,i,o){var a=o?[]:void 0;return r.forEach(e.inEdges(i.v),function(r){var i=e.edge(r),s=e.node(r.v);o&&a.push({v:r.v,w:r.w}),s.out-=i,l(t,n,s)}),r.forEach(e.outEdges(i.v),function(r){var i=e.edge(r),o=r.w,a=e.node(o);a.in-=i,l(t,n,a)}),e.removeNode(i.v),a}function l(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}},56096:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},56153:(e,t,n)=>{"use strict";n.d(t,{w:()=>f});var r=n(9597),i=n(80905),o=n(45008),a=n(68479),s=n(63258),l=n(12580),u=n(23769);let{useRecipeResult:c,PropsProvider:d}=(0,l.a)({key:"separator"}),f=(0,i.forwardRef)(function(e,t){let{styles:n,className:i,props:l}=c(e),d=e.orientation||"horizontal";return(0,r.jsx)(u.B.span,{ref:t,role:(0,a.Kg)(d)?"separator":"presentation","aria-orientation":(0,a.Kg)(d)?d:void 0,...(0,s.c)(l,["orientation"]),className:(0,o.cx)(i,e.className),css:[n,e.css]})})},56485:(e,t)=>{"use strict";function n(e){let t={};for(let[n,r]of e.entries()){let e=t[n];void 0===e?t[n]=r:Array.isArray(e)?e.push(r):t[n]=[e,r]}return t}function r(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function i(e){let t=new URLSearchParams;for(let[n,i]of Object.entries(e))if(Array.isArray(i))for(let e of i)t.append(n,r(e));else t.set(n,r(i));return t}function o(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(let t of n){for(let n of t.keys())e.delete(n);for(let[n,r]of t.entries())e.append(n,r)}return e}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{assign:function(){return o},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return i}})},56625:(e,t,n)=>{var r=n(14757),i=n(4663);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}},56812:(e,t,n)=>{"use strict";n.d(t,{J:()=>s});var r=n(9597),i=n(80905),o=n(6644),a=n(8269);let s=i.forwardRef(function(e,t){return(0,r.jsx)(a.K,{variant:"ghost","aria-label":"Close",ref:t,...e,children:e.children??(0,r.jsx)(o.US,{})})})},56859:(e,t,n)=>{var r=n(52889);e.exports=function(e){return"function"==typeof e?e:r}},57081:(e,t,n)=>{var r=n(20088),i=n(66042),o=n(47607),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},57102:(e,t,n)=>{var r=n(34884),i=n(89016),o=n(56096),a=n(10521),s=n(95816);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return i(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return o(e);case"[object Symbol]":return a(e)}}},57179:(e,t,n)=>{var r=n(75967),i=n(67066),o=n(52889);e.exports=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o},57248:(e,t,n)=>{var r=n(57179);e.exports=n(86874)(r)},57286:e=>{e.exports=function(e){return e!=e}},57516:(e,t,n)=>{var r=n(74990),i=n(7454),o=n(91512);e.exports=function(e){return r(e,o,i)}},57796:e=>{e.exports=function(e){return this.__data__.get(e)}},57961:(e,t,n)=>{var r=n(83336),i=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!i&&i in e}},58449:(e,t,n)=>{"use strict";n.d(t,{Y:()=>l});var r=n(9597),i=n(80905),o=n(63276),a=n(45008);let s=(0,n(23769).B)("div",{base:{display:"inline-flex",gap:"var(--group-gap, 0.5rem)",isolation:"isolate",position:"relative","& [data-group-item]":{_focusVisible:{zIndex:1}}},variants:{orientation:{horizontal:{flexDirection:"row"},vertical:{flexDirection:"column"}},attached:{true:{gap:"0!"}},grow:{true:{display:"flex","& > *":{flex:1}}},stacking:{"first-on-top":{"& > [data-group-item]":{zIndex:"calc(var(--group-count) - var(--group-index))"}},"last-on-top":{"& > [data-group-item]":{zIndex:"var(--group-index)"}}}},compoundVariants:[{orientation:"horizontal",attached:!0,css:{"& > *[data-first]":{borderEndRadius:"0!",marginEnd:"-1px"},"& > *[data-between]":{borderRadius:"0!",marginEnd:"-1px"},"& > *[data-last]":{borderStartRadius:"0!"}}},{orientation:"vertical",attached:!0,css:{"& > *[data-first]":{borderBottomRadius:"0!",marginBottom:"-1px"},"& > *[data-between]":{borderRadius:"0!",marginBottom:"-1px"},"& > *[data-last]":{borderTopRadius:"0!"}}}],defaultVariants:{orientation:"horizontal"}}),l=(0,i.memo)((0,i.forwardRef)(function(e,t){let{align:n="center",justify:l="flex-start",children:u,wrap:c,skip:d,...f}=e,h=(0,i.useMemo)(()=>{let e=i.Children.toArray(u).filter(i.isValidElement);if(1===e.length)return e;let t=e.filter(e=>!(null==d?void 0:d(e))),n=t.length;return 1===t.length?e:e.map(e=>{var r;let a=e.props;if(null==d?void 0:d(e))return e;let s=t.indexOf(e);return(0,i.cloneElement)(e,{...a,"data-group-item":"","data-first":(0,o.s)(0===s),"data-last":(0,o.s)(s===n-1),"data-between":(0,o.s)(s>0&&s<n-1),style:{"--group-count":n,"--group-index":s,...null!=(r=null==a?void 0:a.style)?r:{}}})})},[u,d]);return(0,r.jsx)(s,{ref:t,alignItems:n,justifyContent:l,flexWrap:c,...f,className:(0,a.cx)("chakra-group",e.className),children:h})}))},58927:e=>{e.exports=function(){this.__data__=[],this.size=0}},59432:(e,t,n)=>{"use strict";n.d(t,{y:()=>o});var r=n(80905),i=n(832);function o(e){let{key:t,recipe:n}=e,o=(0,i.$)();return(0,r.useMemo)(()=>{let e=n||(null!=t?o.getSlotRecipe(t):{});return o.sva(structuredClone(e))},[t,n,o])}},59433:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},59480:(e,t,n)=>{e.exports=n(83199)(n(53252),"Set")},59864:(e,t,n)=>{"use strict";n.d(t,{k:()=>o});var r=n(6280),i="data-scroll-lock";function o(e){let t=e??document,n=t.defaultView??window,{documentElement:o,body:a}=t;if(a.hasAttribute(i))return;let s=n.innerWidth-o.clientWidth;a.setAttribute(i,"");let l=Math.round(o.getBoundingClientRect().left)+o.scrollLeft?"paddingLeft":"paddingRight",u=[(0,r.$h)(o,"--scrollbar-width",`${s}px`),(0,r.aR)()?(()=>{let{scrollX:e,scrollY:t,visualViewport:i}=n,o=i?.offsetLeft??0,u=i?.offsetTop??0,c=(0,r.eC)(a,{position:"fixed",overflow:"hidden",top:`${-(t-Math.floor(u))}px`,left:`${-(e-Math.floor(o))}px`,right:"0",[l]:`${s}px`});return()=>{c?.(),n.scrollTo({left:e,top:t,behavior:"instant"})}})():(0,r.eC)(a,{overflow:"hidden",[l]:`${s}px`})];return()=>{u.forEach(e=>e?.()),a.removeAttribute(i)}}},60063:(e,t,n)=>{var r=n(80111);e.exports=function(e,t){return r(e,t,"pre")}},60178:(e,t,n)=>{"use strict";n.d(t,{B:()=>o,s:()=>a});var r=n(68479);let i=e=>null!=e;function o(e,t,n={}){let{stop:a,getKey:s}=n;return function e(n,o=[]){if((0,r.Gv)(n)||Array.isArray(n)){let r={};for(let[l,u]of Object.entries(n)){let c=s?.(l,u)??l,d=[...o,c];if(a?.(n,d))return t(n,o);let f=e(u,d);i(f)&&(r[c]=f)}return r}return t(n,o)}(e)}function a(e,t){return Array.isArray(e)?e.map(e=>i(e)?t(e):e):(0,r.Gv)(e)?o(e,e=>t(e)):i(e)?t(e):e}},60257:e=>{e.exports=function(e){return void 0===e}},61018:(e,t,n)=>{var r=n(19978);function i(){this._arr=[],this._keyIndices={}}e.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map(function(e){return e.key})},i.prototype.has=function(e){return r.has(this._keyIndices,e)},i.prototype.priority=function(e){var t=this._keyIndices[e];if(void 0!==t)return this._arr[t].priority},i.prototype.min=function(){if(0===this.size())throw Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(e,t){var n=this._keyIndices;if(e=String(e),!r.has(n,e)){var i=this._arr,o=i.length;return n[e]=o,i.push({key:e,priority:t}),this._decrease(o),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key},i.prototype.decrease=function(e,t){var n=this._keyIndices[e];if(t>this._arr[n].priority)throw Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[n].priority+" New: "+t);this._arr[n].priority=t,this._decrease(n)},i.prototype._heapify=function(e){var t=this._arr,n=2*e,r=n+1,i=e;n<t.length&&(i=t[n].priority<t[i].priority?n:i,r<t.length&&(i=t[r].priority<t[i].priority?r:i),i!==e&&(this._swap(e,i),this._heapify(i)))},i.prototype._decrease=function(e){for(var t,n=this._arr,r=n[e].priority;0!==e&&!(n[t=e>>1].priority<r);)this._swap(e,t),e=t},i.prototype._swap=function(e,t){var n=this._arr,r=this._keyIndices,i=n[e],o=n[t];n[e]=o,n[t]=i,r[o.key]=e,r[i.key]=t}},61218:(e,t,n)=>{var r=n(57081),i=n(94398),o=n(90563),a=Object.prototype,s=Function.prototype.toString,l=a.hasOwnProperty,u=s.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==u}},61506:(e,t,n)=>{"use strict";n.d(t,{A:()=>i,g:()=>r});var r="http://www.w3.org/1999/xhtml";let i={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},61696:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});var r=(e,t=[])=>({parts:(...n)=>{if(o(t))return r(e,n);throw Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...n)=>r(e,[...t,...n]),omit:(...n)=>r(e,t.filter(e=>!n.includes(e))),rename:e=>r(e,t),keys:()=>t,build:()=>[...new Set(t)].reduce((t,n)=>Object.assign(t,{[n]:{selector:`&[data-scope="${i(e)}"][data-part="${i(n)}"], & [data-scope="${i(e)}"][data-part="${i(n)}"]`,attrs:{"data-scope":i(e),"data-part":i(n)}}}),{})}),i=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),o=e=>0===e.length},61801:(e,t,n)=>{"use strict";n.d(t,{Es:()=>s,FK:()=>i.Fragment,NT:()=>i.useContext,Ob:()=>i.cloneElement,Rf:()=>i.forwardRef,_q:()=>u,li:()=>i.useRef,n:()=>i.createElement,q6:()=>i.createContext,rz:()=>o.useSyncExternalStore,zO:()=>i.isValidElement});var r,i=n(80905),o=n(410);let a=(r||(r=n.t(i,2))).useInsertionEffect,s="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?i.useLayoutEffect:i.useEffect,l=a||s,u=e=>{let t=i.useRef([e,(...e)=>t[0](...e)]).current;return l(()=>{t[0]=e}),t[1]}},61807:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},61895:(e,t,n)=>{"use strict";n.d(t,{k5:()=>c});var r=n(80905),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},o=r.createContext&&r.createContext(i),a=["attr","size","title"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e){return t=>r.createElement(d,s({attr:u({},e.attr)},t),function e(t){return t&&t.map((t,n)=>r.createElement(t.tag,u({key:n},t.attr),e(t.child)))}(e.child))}function d(e){var t=t=>{var n,{attr:i,size:o,title:l}=e,c=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,a),d=o||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),r.createElement("svg",s({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,c,{className:n,style:u(u({color:e.color||t.color},t.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),l&&r.createElement("title",null,l),e.children)};return void 0!==o?r.createElement(o.Consumer,null,e=>t(e)):t(i)}},62155:(e,t,n)=>{var r=n(57081),i=n(97348);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},62179:(e,t,n)=>{var r=n(74474),i=n(69864),o=n(5816),a=n(97348),s=n(8788);e.exports=function(e,t,n,l){if(!a(e))return e;t=i(t,e);for(var u=-1,c=t.length,d=c-1,f=e;null!=f&&++u<c;){var h=s(t[u]),p=n;if("__proto__"===h||"constructor"===h||"prototype"===h)break;if(u!=d){var g=f[h];void 0===(p=l?l(g,h,f):void 0)&&(p=a(g)?g:o(t[u+1])?[]:{})}r(f,h,p),f=f[h]}return e}},62408:e=>{e.exports=function(){return[]}},62796:(e,t,n)=>{"use strict";n.d(t,{z:()=>a});var r=n(9597),i=n(80905),o=n(94372);let a=(0,i.forwardRef)(function(e,t){return(0,r.jsx)(o.B,{align:"center",...e,direction:"row",ref:t})})},62797:(e,t,n)=>{var r=n(53215),i=n(79905),o=n(12569),a=n(91512),s=Object.prototype,l=s.hasOwnProperty;e.exports=r(function(e,t){e=Object(e);var n=-1,r=t.length,u=r>2?t[2]:void 0;for(u&&o(t[0],t[1],u)&&(r=1);++n<r;)for(var c=t[n],d=a(c),f=-1,h=d.length;++f<h;){var p=d[f],g=e[p];(void 0===g||i(g,s[p])&&!l.call(e,p))&&(e[p]=c[p])}return e})},63048:(e,t,n)=>{"use strict";n.d(t,{MI:()=>O,Ng:()=>N,Aq:()=>V});var r=n(61696),i=n(6280),o=n(83788),a=n(54394);let s=Symbol(),l=Symbol(),u=Object.getPrototypeOf,c=new WeakMap,d=e=>e&&(c.has(e)?c.get(e):u(e)===Object.prototype||u(e)===Array.prototype),f=e=>d(e)&&e[l]||null,h=(e,t=!0)=>{c.set(e,t)};function p(e,t){let n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0;return n?(n[e]||(n[e]=t()),n[e]):t()}var g=p("__zag__refSet",()=>new WeakSet),v=e=>null!==e&&"object"==typeof e,m=e=>v(e)&&!g.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e=>(e=>"object"==typeof e&&null!==e&&"$$typeof"in e&&"props"in e)(e)||(e=>"object"==typeof e&&null!==e&&"__v_isVNode"in e)(e)||(e=>"object"==typeof e&&null!==e&&"nodeType"in e&&"string"==typeof e.nodeName)(e))(e)&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer)&&!(e instanceof Promise),b=()=>!1,y=p("__zag__proxyStateMap",()=>new WeakMap),[x]=((e=Object.is,t=(e,t)=>new Proxy(e,t),n=new WeakMap,r=(e,t)=>{let r=n.get(e);if(r?.[0]===t)return r[1];let i=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e));return h(i,!0),n.set(e,[t,i]),Reflect.ownKeys(e).forEach(t=>{let n=Reflect.get(e,t);g.has(n)?(h(n,!1),i[t]=n):y.has(n)?i[t]=S(n):i[t]=n}),Object.freeze(i)},i=new WeakMap,o=[1,1],a=n=>{if(!v(n))throw Error("object required");let a=i.get(n);if(a)return a;let s=o[0],l=new Set,u=(e,t=++o[0])=>{s!==t&&(s=t,l.forEach(n=>n(e,t)))},c=o[1],d=(e=++o[1])=>(c===e||l.size||(c=e,p.forEach(([t])=>{let n=t[1](e);n>s&&(s=n)})),s),h=e=>(t,n)=>{let r=[...t];r[1]=[e,...r[1]],u(r,n)},p=new Map,x=(e,t)=>{if(b()&&p.has(e))throw Error("prop listener already exists");if(l.size){let n=t[3](h(e));p.set(e,[t,n])}else p.set(e,[t])},S=e=>{let t=p.get(e);t&&(p.delete(e),t[1]?.())},E=e=>{l.add(e),1===l.size&&p.forEach(([e,t],n)=>{if(b()&&t)throw Error("remove already exists");let r=e[3](h(n));p.set(n,[e,r])});let t=()=>{l.delete(e),0===l.size&&p.forEach(([e,t],n)=>{t&&(t(),p.set(n,[e]))})};return t},k=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n)),C={deleteProperty(e,t){let n=Reflect.get(e,t);S(t);let r=Reflect.deleteProperty(e,t);return r&&u(["delete",[t],n]),r},set(t,n,r,o){let a=Reflect.has(t,n),s=Reflect.get(t,n,o);if(a&&(e(s,r)||i.has(r)&&e(s,i.get(r))))return!0;S(n),v(r)&&(r=f(r)||r);let l=r;if(Object.getOwnPropertyDescriptor(t,n)?.set);else{!y.has(r)&&m(r)&&(l=w(r));let e=!g.has(l)&&y.get(l);e&&x(n,e)}return Reflect.set(t,n,l,o),u(["set",[n],r,s]),!0}},O=t(k,C);i.set(n,O);let I=[k,d,r,E];return y.set(O,I),Reflect.ownKeys(n).forEach(e=>{let t=Object.getOwnPropertyDescriptor(n,e);t.get||t.set?Object.defineProperty(k,e,t):O[e]=n[e]}),O})=>[a,y,g,e,t,m,n,r,i,o])();function w(e={}){return x(e)}function S(e){let t=y.get(e);b()&&!t&&console.warn("Please use proxy object");let[n,r,i]=t;return i(n,r())}var E=n(20752),k=n(82136),C=n(77952),O=(0,r.y)("tooltip").parts("trigger","arrow","arrowTip","positioner","content"),I=O.build(),_=e=>e.ids?.trigger??`tooltip:${e.id}:trigger`,T=e=>e.ids?.positioner??`tooltip:${e.id}:popper`,P=e=>e.getById(_(e)),R=e=>e.getById(T(e)),A=w({id:null});function N(e,t){let{state:n,context:r,send:s,scope:l,prop:u,event:c}=e,d=u("id"),f=!!u("aria-label"),h=n.matches("open","closing"),p=_(l),g=l.ids?.content??`tooltip:${l.id}:content`,v=u("disabled"),m=(0,a.aC)({...u("positioning"),placement:r.get("currentPlacement")});return{open:h,setOpen(e){n.matches("open","closing")!==e&&s({type:e?"open":"close"})},reposition(e={}){s({type:"positioning.set",options:e})},getTriggerProps:()=>t.button({...I.trigger.attrs,id:p,dir:u("dir"),"data-expanded":(0,i.sE)(h),"data-state":h?"open":"closed","aria-describedby":h?g:void 0,onClick(e){e.defaultPrevented||v||u("closeOnClick")&&s({type:"close",src:"trigger.click"})},onFocus(e){queueMicrotask(()=>{e.defaultPrevented||v||"trigger.pointerdown"===c.src||(0,o.pP)()&&s({type:"open",src:"trigger.focus"})})},onBlur(e){!e.defaultPrevented&&(v||d===A.id&&s({type:"close",src:"trigger.blur"}))},onPointerDown(e){!e.defaultPrevented&&!v&&(0,i.Ml)(e)&&u("closeOnPointerDown")&&d===A.id&&s({type:"close",src:"trigger.pointerdown"})},onPointerMove(e){e.defaultPrevented||v||"touch"!==e.pointerType&&s({type:"pointer.move"})},onPointerLeave(){v||s({type:"pointer.leave"})},onPointerCancel(){v||s({type:"pointer.leave"})}}),getArrowProps:()=>t.element({id:l.ids?.arrow??`tooltip:${l.id}:arrow`,...I.arrow.attrs,dir:u("dir"),style:m.arrow}),getArrowTipProps:()=>t.element({...I.arrowTip.attrs,dir:u("dir"),style:m.arrowTip}),getPositionerProps:()=>t.element({id:T(l),...I.positioner.attrs,dir:u("dir"),style:m.floating}),getContentProps:()=>t.element({...I.content.attrs,dir:u("dir"),hidden:!h,"data-state":h?"open":"closed",role:f?void 0:"tooltip",id:f?void 0:g,"data-placement":r.get("currentPlacement"),onPointerEnter(){s({type:"content.pointer.move"})},onPointerLeave(){s({type:"content.pointer.leave"})},style:{pointerEvents:u("interactive")?"auto":"none"}})}}var{and:M,not:L}=(0,E.b6)(),V=(0,E.Op)({initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"closed",props:({props:e})=>({id:"x",openDelay:1e3,closeDelay:500,closeOnPointerDown:!0,closeOnEscape:!0,interactive:!1,closeOnScroll:!0,closeOnClick:!0,disabled:!1,...e,positioning:{placement:"bottom",...e.positioning}}),effects:["trackFocusVisible","trackStore"],context:({bindable:e})=>({currentPlacement:e(()=>({defaultValue:void 0})),hasPointerMoveOpened:e(()=>({defaultValue:!1}))}),watch({track:e,action:t,prop:n}){e([()=>n("disabled")],()=>{t(["closeIfDisabled"])}),e([()=>n("open")],()=>{t(["toggleVisibility"])})},states:{closed:{entry:["clearGlobalId"],on:{"controlled.open":{target:"open"},open:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],"pointer.leave":{actions:["clearPointerMoveOpened"]},"pointer.move":[{guard:M("noVisibleTooltip",L("hasPointerMoveOpened")),target:"opening"},{guard:L("hasPointerMoveOpened"),target:"open",actions:["setPointerMoveOpened","invokeOnOpen"]}]}},opening:{effects:["trackScroll","trackPointerlockChange","waitForOpenDelay"],on:{"after.openDelay":[{guard:"isOpenControlled",actions:["setPointerMoveOpened","invokeOnOpen"]},{target:"open",actions:["setPointerMoveOpened","invokeOnOpen"]}],"controlled.open":{target:"open"},"controlled.close":{target:"closed"},open:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],"pointer.leave":[{guard:"isOpenControlled",actions:["clearPointerMoveOpened","invokeOnClose","toggleVisibility"]},{target:"closed",actions:["clearPointerMoveOpened","invokeOnClose"]}],close:[{guard:"isOpenControlled",actions:["invokeOnClose","toggleVisibility"]},{target:"closed",actions:["invokeOnClose"]}]}},open:{effects:["trackEscapeKey","trackScroll","trackPointerlockChange","trackPositioning"],entry:["setGlobalId"],on:{"controlled.close":{target:"closed"},close:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"pointer.leave":[{guard:"isVisible",target:"closing",actions:["clearPointerMoveOpened"]},{guard:"isOpenControlled",actions:["clearPointerMoveOpened","invokeOnClose"]},{target:"closed",actions:["clearPointerMoveOpened","invokeOnClose"]}],"content.pointer.leave":{guard:"isInteractive",target:"closing"},"positioning.set":{actions:["reposition"]}}},closing:{effects:["trackPositioning","waitForCloseDelay"],on:{"after.closeDelay":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"controlled.close":{target:"closed"},"controlled.open":{target:"open"},close:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"pointer.move":[{guard:"isOpenControlled",actions:["setPointerMoveOpened","invokeOnOpen","toggleVisibility"]},{target:"open",actions:["setPointerMoveOpened","invokeOnOpen"]}],"content.pointer.move":{guard:"isInteractive",target:"open"},"positioning.set":{actions:["reposition"]}}}},implementations:{guards:{noVisibleTooltip:()=>null===A.id,isVisible:({prop:e})=>e("id")===A.id,isInteractive:({prop:e})=>!!e("interactive"),hasPointerMoveOpened:({context:e})=>e.get("hasPointerMoveOpened"),isOpenControlled:({prop:e})=>void 0!==e("open")},actions:{setGlobalId:({prop:e})=>{A.id=e("id")},clearGlobalId:({prop:e})=>{e("id")===A.id&&(A.id=null)},invokeOnOpen:({prop:e})=>{e("onOpenChange")?.({open:!0})},invokeOnClose:({prop:e})=>{e("onOpenChange")?.({open:!1})},closeIfDisabled:({prop:e,send:t})=>{e("disabled")&&t({type:"close",src:"disabled.change"})},reposition:({context:e,event:t,prop:n,scope:r})=>{if("positioning.set"===t.type)return(0,a.Ox)(P(r),()=>R(r),{...n("positioning"),...t.options,defer:!0,listeners:!1,onComplete(t){e.set("currentPlacement",t.placement)}})},toggleVisibility:({prop:e,event:t,send:n})=>{queueMicrotask(()=>{n({type:e("open")?"controlled.open":"controlled.close",previousEvent:t})})},setPointerMoveOpened:({context:e})=>{e.set("hasPointerMoveOpened",!0)},clearPointerMoveOpened:({context:e})=>{e.set("hasPointerMoveOpened",!1)}},effects:{trackFocusVisible:({scope:e})=>(0,o.Yy)({root:e.getRootNode?.()}),trackPositioning:({context:e,prop:t,scope:n})=>(e.get("currentPlacement")||e.set("currentPlacement",t("positioning").placement),(0,a.Ox)(P(n),()=>R(n),{...t("positioning"),defer:!0,onComplete(t){e.set("currentPlacement",t.placement)}})),trackPointerlockChange:({send:e,scope:t})=>{let n=t.getDoc();return(0,i.kn)(n,"pointerlockchange",()=>e({type:"close",src:"pointerlock:change"}),!1)},trackScroll:({send:e,prop:t,scope:n})=>{if(!t("closeOnScroll"))return;let r=P(n);if(!r)return;let o=(0,i.v9)(r).map(t=>(0,i.kn)(t,"scroll",()=>{e({type:"close",src:"scroll"})},{passive:!0,capture:!0}));return()=>{o.forEach(e=>e?.())}},trackStore:({prop:e,send:t})=>{let n;return queueMicrotask(()=>{n=function(e,t,n){let r,i=y.get(e);b()&&!i&&console.warn("Please use proxy object");let o=[],a=i[3],s=!1,l=a(e=>{o.push(e),r||(r=Promise.resolve().then(()=>{r=void 0,s&&t(o.splice(0))}))});return s=!0,()=>{s=!1,l()}}(A,()=>{A.id!==e("id")&&t({type:"close",src:"id.change"})})}),()=>n?.()},trackEscapeKey:({send:e,prop:t})=>{if(t("closeOnEscape"))return(0,i.kn)(document,"keydown",t=>{(0,i.q_)(t)||"Escape"===t.key&&(t.stopPropagation(),e({type:"close",src:"keydown.escape"}))},!0)},waitForOpenDelay:({send:e,prop:t})=>{let n=setTimeout(()=>{e({type:"after.openDelay"})},t("openDelay"));return()=>clearTimeout(n)},waitForCloseDelay:({send:e,prop:t})=>{let n=setTimeout(()=>{e({type:"after.closeDelay"})},t("closeDelay"));return()=>clearTimeout(n)}}}}),D=(0,k.x)()(["aria-label","closeDelay","closeOnEscape","closeOnPointerDown","closeOnScroll","closeOnClick","dir","disabled","getRootNode","id","ids","interactive","onOpenChange","defaultOpen","open","openDelay","positioning"]);(0,C.PM)(D)},63258:(e,t,n)=>{"use strict";function r(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}n.d(t,{c:()=>r})},63276:(e,t,n)=>{"use strict";n.d(t,{s:()=>r});let r=e=>e?"":void 0},63283:(e,t,n)=>{"use strict";n.d(t,{w:()=>i});let[r,i]=(0,n(42347).q)({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}})},63324:(e,t,n)=>{var r=n(10233),i=n(13959),o=n(87136),a=n(35636),s=n(46844);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},63547:(e,t,n)=>{var r=n(20088),i=n(47997),o=n(79905),a=n(19302),s=n(84548),l=n(36150),u=r?r.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,d,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!d(new i(e),new i(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=s;case"[object Set]":var p=1&r;if(h||(h=l),e.size!=t.size&&!p)break;var g=f.get(e);if(g)return g==t;r|=2,f.set(e,t);var v=a(h(e),h(t),r,u,d,f);return f.delete(e),v;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},63660:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},63780:(e,t,n)=>{var r;try{r={cloneDeep:n(70390),constant:n(75967),defaults:n(62797),each:n(71406),filter:n(7805),find:n(44164),flatten:n(92859),forEach:n(64683),forIn:n(28917),has:n(71937),isUndefined:n(60257),last:n(98955),map:n(35539),mapValues:n(1837),max:n(90155),merge:n(77357),min:n(97629),minBy:n(79804),now:n(75629),pick:n(93006),range:n(36348),reduce:n(66061),sortBy:n(75846),uniqueId:n(42345),values:n(1577),zipObject:n(3473)}}catch(e){}r||(r=window._),e.exports=r},63971:(e,t,n)=>{"use strict";function r(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,r]of e)if(!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}n.d(t,{x:()=>r})},64141:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DecodeError:function(){return p},MiddlewareNotFoundError:function(){return b},MissingStaticPage:function(){return m},NormalizeError:function(){return g},PageNotFoundError:function(){return v},SP:function(){return f},ST:function(){return h},WEB_VITALS:function(){return n},execOnce:function(){return r},getDisplayName:function(){return l},getLocationOrigin:function(){return a},getURL:function(){return s},isAbsoluteUrl:function(){return o},isResSent:function(){return u},loadGetInitialProps:function(){return d},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return y}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(e){let t,n=!1;return function(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return n||(n=!0,t=e(...i)),t}}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,o=e=>i.test(e);function a(){let{protocol:e,hostname:t,port:n}=window.location;return e+"//"+t+(n?":"+n:"")}function s(){let{href:e}=window.location,t=a();return e.substring(t.length)}function l(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function u(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function d(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await d(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&u(n))return r;if(!r)throw Object.defineProperty(Error('"'+l(e)+'.getInitialProps()" should resolve to an object. But found "'+r+'" instead.'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return r}let f="undefined"!=typeof performance,h=f&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class p extends Error{}class g extends Error{}class v extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class m extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class b extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function y(e){return JSON.stringify({message:e.message,stack:e.stack})}},64217:(e,t,n)=>{"use strict";n.d(t,{s:()=>a});var r=n(9597),i=n(80905),o=n(23769);let a=(0,i.forwardRef)(function(e,t){let{direction:n,align:i,justify:a,wrap:s,basis:l,grow:u,shrink:c,inline:d,...f}=e;return(0,r.jsx)(o.B.div,{ref:t,...f,css:{display:d?"inline-flex":"flex",flexDirection:n,alignItems:i,justifyContent:a,flexWrap:s,flexBasis:l,flexGrow:u,flexShrink:c,...e.css}})})},64479:e=>{e.exports=function(e,t,n,r,i){return i(e,function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)}),n}},64683:(e,t,n)=>{var r=n(24672),i=n(2604),o=n(56859),a=n(12984);e.exports=function(e,t){return(a(e)?r:i)(e,o(t))}},65171:(e,t,n)=>{"use strict";n.d(t,{j:()=>o});var r=n(80905),i=n(27801);function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,i.c)(e.onOpen),n=(0,i.c)(e.onClose),[o,a]=(0,r.useState)(e.defaultOpen||!1),s=void 0!==e.open?e.open:o,l=void 0!==e.open,u=(0,r.useCallback)(()=>{l||a(!1),null==n||n()},[l,n]),c=(0,r.useCallback)(()=>{l||a(!0),null==t||t()},[l,t]),d=(0,r.useCallback)(()=>{s?u():c()},[s,c,u]);return{open:s,onOpen:c,onClose:u,onToggle:d,setOpen:a}}},65538:(e,t,n)=>{var r=n(89132),i=n(21813),o=n(86658);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},66010:(e,t,n)=>{var r=n(21561),i=n(35724),o=n(40935),a=n(23886),s=n(78888);e.exports=function(e){if(null==e)return 0;if(o(e))return a(e)?s(e):e.length;var t=i(e);return"[object Map]"==t||"[object Set]"==t?e.size:r(e).length}},66042:(e,t,n)=>{var r=n(20088),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},66061:(e,t,n)=>{var r=n(98059),i=n(2604),o=n(27404),a=n(64479),s=n(12984);e.exports=function(e,t,n){var l=s(e)?r:a,u=arguments.length<3;return l(e,o(t,4),n,u,i)}},67031:e=>{!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,o=l(e),a=o[0],s=o[1],u=new i((a+s)*3/4-s),c=0,d=s>0?a-4:a;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=0,s=r-i;a<s;a+=16383)o.push(function(e,t,r){for(var i,o=[],a=t;a<r;a+=3)i=(e[a]<<16&0xff0000)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(n[i>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&o.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a<s;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r[45]=62,r[95]=63},72:function(e,t,n){"use strict";var r=n(675),i=n(783),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e){var r=e,i=t;if(("string"!=typeof i||""===i)&&(i="utf8"),!s.isEncoding(i))throw TypeError("Unknown encoding: "+i);var o=0|h(r,i),l=a(o),u=l.write(r,i);return u!==o&&(l=l.slice(0,u)),l}if(ArrayBuffer.isView(e))return d(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(T(e,ArrayBuffer)||e&&T(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(T(e,SharedArrayBuffer)||e&&T(e.buffer,SharedArrayBuffer)))return function(e,t,n){var r;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),s.prototype),r}(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var c=e.valueOf&&e.valueOf();if(null!=c&&c!==e)return s.from(c,t,n);var p=function(e){if(s.isBuffer(e)){var t=0|f(e.length),n=a(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(p)return p;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),a(e<0?0:0|f(e))}function d(e){for(var t=e.length<0?0:0|f(e.length),n=a(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return(u(e),e<=0)?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)};function f(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function h(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||T(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return C(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return I(e).length;default:if(i)return r?-1:C(e).length;t=(""+t).toLowerCase(),i=!0}}function p(e,t,n){var i,o,a,s=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=P[e[o]];return i}(this,t,n);case"utf8":case"utf-8":return b(this,t,n);case"ascii":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}(this,t,n);case"latin1":case"binary":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}(this,t,n);case"base64":return i=this,o=t,a=n,0===o&&a===i.length?r.fromByteArray(i):r.fromByteArray(i.slice(o,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}(this,t,n);default:if(s)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){var o;if(0===e.length)return -1;if("string"==typeof n?(r=n,n=0):n>0x7fffffff?n=0x7fffffff:n<-0x80000000&&(n=-0x80000000),(o=n*=1)!=o&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length)if(i)return -1;else n=e.length-1;else if(n<0)if(!i)return -1;else n=0;if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:m(e,t,n,r,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,n);else return Uint8Array.prototype.lastIndexOf.call(e,t,n);return m(e,[t],n,r,i)}throw TypeError("val must be string, number or Buffer")}function m(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;o<s;o++)if(u(e,o)===u(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*a}else -1!==c&&(o-=o-c),c=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var d=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){d=!1;break}if(d)return o}return -1}s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(T(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),T(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:+(r<n)},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(n=0,t=0;n<e.length;++n)t+=e[n].length;var n,r=s.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(T(o,Uint8Array)&&(o=s.from(o)),!s.isBuffer(o))throw TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},s.byteLength=h,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?b(this,0,e):p.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(T(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,l=Math.min(o,a),u=this.slice(r,i),c=e.slice(t,n),d=0;d<l;++d)if(u[d]!==c[d]){o=u[d],a=c[d];break}return o<a?-1:+(a<o)},s.prototype.includes=function(e,t,n){return -1!==this.indexOf(e,t,n)},s.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)};function b(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,l,u=e[i],c=null,d=u>239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(o=e[i+1]))==128&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}var f=r,h=f.length;if(h<=4096)return String.fromCharCode.apply(String,f);for(var p="",g=0;g<h;)p+=String.fromCharCode.apply(String,f.slice(g,g+=4096));return p}function y(e,t,n){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>n)throw RangeError("Trying to access beyond buffer length")}function x(e,t,n,r,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw RangeError('"value" argument is out of bounds');if(n+r>e.length)throw RangeError("Index out of range")}function w(e,t,n,r,i,o){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function S(e,t,n,r,o){return t*=1,n>>>=0,o||w(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function E(e,t,n,r,o){return t*=1,n>>>=0,o||w(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}s.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,a,s,l,u,c,d,f=this.length-t;if((void 0===n||n>f)&&(n=f),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var h=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s,l=parseInt(t.substr(2*a,2),16);if((s=l)!=s)break;e[n+a]=l}return a}(this,e,t,n);case"utf8":case"utf-8":return i=t,o=n,_(C(e,this.length-i),this,i,o);case"ascii":return a=t,s=n,_(O(e),this,a,s);case"latin1":case"binary":return function(e,t,n,r){return _(O(t),e,n,r)}(this,e,t,n);case"base64":return l=t,u=n,_(I(e),this,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=t,d=n,_(function(e,t){for(var n,r,i=[],o=0;o<e.length&&!((t-=2)<0);++o)r=(n=e.charCodeAt(o))>>8,i.push(n%256),i.push(r);return i}(e,this.length-c),this,c,d);default:if(h)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),h=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,s.prototype),r},s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||y(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||y(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUInt8=function(e,t){return e>>>=0,t||y(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||y(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||y(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||y(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||y(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||y(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||y(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||y(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||y(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?0xffff0000|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||y(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?0xffff0000|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||y(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||y(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||y(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||y(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||y(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||y(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,n,r){if(e*=1,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;x(this,e,t,n,i,0)}var o=1,a=0;for(this[t]=255&e;++a<n&&(o*=256);)this[t+a]=e/o&255;return t+n},s.prototype.writeUIntBE=function(e,t,n,r){if(e*=1,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;x(this,e,t,n,i,0)}var o=n-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+n},s.prototype.writeUInt8=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUInt32LE=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUInt32BE=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e*=1,t>>>=0,!r){var i=Math.pow(2,8*n-1);x(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e*=1,t>>>=0,!r){var i=Math.pow(2,8*n-1);x(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,n){return S(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return S(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return E(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return E(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var o=i-1;o>=0;--o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},s.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!s.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===e.length){var i,o=e.charCodeAt(0);("utf8"===r&&o<128||"latin1"===r)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError("Out of range index");if(n<=t)return this;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=s.isBuffer(e)?e:s.from(e,r),l=a.length;if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=a[i%l]}return this};var k=/[^+/0-9A-Za-z-_]/g;function C(e,t){t=t||1/0;for(var n,r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319||a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return o}function O(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function I(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(k,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function _(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function T(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var P=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},783:function(e,t){t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,d=n?i-1:0,f=n?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=u}return(h?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,d=c>>1,f=5960464477539062e-23*(23===i),h=r?0:o-1,p=r?1:-1,g=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(s=+!!isNaN(t),a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+d>=1?t+=f/l:t+=f*Math.pow(2,1-d),t*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[n+h]=255&a,h+=p,a/=256,u-=8);e[n+h-p]|=128*g}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},a=!0;try{t[e](o,o.exports,r),a=!1}finally{a&&delete n[e]}return o.exports}r.ab="//",e.exports=r(72)}()},67066:(e,t,n)=>{var r=n(83199);e.exports=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}()},67610:(e,t,n)=>{"use strict";function r(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}n.d(t,{A:()=>r})},67636:(e,t,n)=>{"use strict";n.d(t,{ej:()=>V,hl:()=>M,Ug:()=>N,yt:()=>R,Wv:()=>A});var r=n(9597),i=n(20752),o=n(51075),a=n(97276),s=n(7759);let[l,u]=(0,n(42347).q)({name:"PopoverContext",hookName:"usePopoverContext",providerName:"<PopoverProvider />"});var c=n(33392),d=n(35556),f=n(80905),h=n(63283),p=n(52693),g=n(52718);let v=(0,f.forwardRef)((e,t)=>{let n=u(),o=(0,s.c)(),a=(0,i.v6)({...n.getTriggerProps(),"aria-controls":o.unmounted?void 0:n.getTriggerProps()["aria-controls"]},e);return(0,r.jsx)(g.X.button,{...a,ref:t})});v.displayName="PopoverTrigger";let m=(0,f.forwardRef)((e,t)=>{let n=u(),o=(0,s.c)(),a=(0,i.v6)(n.getPositionerProps(),e);return o.unmounted?null:(0,r.jsx)(g.X.div,{...a,ref:t})});m.displayName="PopoverPositioner";var b=n(99648);let y=(0,f.forwardRef)((e,t)=>{let n=u(),o=(0,s.c)(),a=(0,i.v6)(n.getContentProps(),o.getPresenceProps(),e);return o.unmounted?null:(0,r.jsx)(g.X.div,{...a,ref:(0,b.t)(o.ref,t)})});y.displayName="PopoverContent";let x=(0,f.forwardRef)((e,t)=>{let n=u(),o=(0,i.v6)(n.getArrowTipProps(),e);return(0,r.jsx)(g.X.div,{...o,ref:t})});x.displayName="PopoverArrowTip";let w=(0,f.forwardRef)((e,t)=>{let n=u(),o=(0,i.v6)(n.getArrowProps(),e);return(0,r.jsx)(g.X.div,{...o,ref:t})});w.displayName="PopoverArrow";let S=(0,f.forwardRef)((e,t)=>{let n=u(),o=(0,i.v6)(n.getCloseTriggerProps(),e);return(0,r.jsx)(g.X.button,{...o,ref:t})});S.displayName="PopoverCloseTrigger";let E=(0,f.forwardRef)((e,t)=>{let n=u(),o=(0,i.v6)(n.getIndicatorProps(),e);return(0,r.jsx)(g.X.div,{...o,ref:t})});E.displayName="PopoverIndicator";let k=(0,f.forwardRef)((e,t)=>{let n=u(),o=(0,i.v6)(n.getTitleProps(),e);return(0,r.jsx)(g.X.div,{...o,ref:t})});k.displayName="PopoverTitle";let C=(0,f.forwardRef)((e,t)=>{let n=u(),o=(0,i.v6)(n.getDescriptionProps(),e);return(0,r.jsx)(g.X.div,{...o,ref:t})});C.displayName="PopoverDescription";let O=(0,f.forwardRef)((e,t)=>{let n=u(),o=(0,i.v6)(n.getAnchorProps(),e);return(0,r.jsx)(g.X.div,{...o,ref:t})});O.displayName="PopoverAnchor";let{withRootProvider:I,withContext:_,useStyles:T,PropsProvider:P}=(0,n(25651).c)({key:"popover"});I(e=>{let[t,{value:n,children:u}]=(0,o.s)(e),c=(0,a.x)((0,i.v6)({present:n.open},t));return(0,r.jsx)(l,{value:n,children:(0,r.jsx)(s.j,{value:c,children:u})})});let R=I(e=>{let[t,{children:n,...u}]=(0,o.s)(e),g=(e=>{let t=(0,f.useId)(),{getRootNode:n}=(0,h.w)(),{dir:r}=(0,p.g)(),i={id:t,dir:r,getRootNode:n,...e},o=(0,d.zl)(c.Aq,i);return c.Ng(o,d._B)})(u),v=(0,a.x)((0,i.v6)({present:g.open},t));return(0,r.jsx)(l,{value:g,children:(0,r.jsx)(s.j,{value:v,children:n})})}),A=_(v,"trigger",{forwardAsChild:!0}),N=_(m,"positioner",{forwardAsChild:!0}),M=_(y,"content",{forwardAsChild:!0}),L=_(x,"arrowTip",{forwardAsChild:!0});_(w,"arrow",{forwardAsChild:!0,defaultProps:{children:(0,r.jsx)(L,{})}}),_(S,"closeTrigger",{forwardAsChild:!0}),_(E,"indicator",{forwardAsChild:!0}),_(k,"title",{forwardAsChild:!0}),_(C,"description",{forwardAsChild:!0}),_("footer","footer"),_("header","header");let V=_("div","body");_(O,void 0,{forwardAsChild:!0})},68084:(e,t,n)=>{"use strict";n.d(t,{X:()=>s,k:()=>l});var r=n(70465),i=n(54908),o=n(47705),a=n(6229),s=class extends a.k{#u;#c;#d;#f;#r;#h;#p;constructor(e){super(),this.#p=!1,this.#h=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#f=e.client,this.#d=this.#f.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#u=function(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=e.state??this.#u,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){this.options={...this.#h,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#d.remove(this)}setData(e,t){let n=(0,r.pl)(this.state.data,e,this.options);return this.#i({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(r.lQ).catch(r.lQ):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#u)}isActive(){return this.observers.some(e=>!1!==(0,r.Eh)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===r.hT||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===(0,r.d2)(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!(0,r.j3)(this.state.dataUpdatedAt,e))}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#d.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#p?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#d.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,i=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#p=!0,n.signal)})},a=()=>{let e=(0,r.ZM)(this.options,t),n=(()=>{let e={client:this.#f,queryKey:this.queryKey,meta:this.meta};return i(e),e})();return(this.#p=!1,this.options.persister)?this.options.persister(e,n,this):e(n)},s=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#f,state:this.state,fetchFn:a};return i(e),e})();this.options.behavior?.onFetch(s,this),this.#c=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==s.fetchOptions?.meta)&&this.#i({type:"fetch",meta:s.fetchOptions?.meta});let l=e=>{(0,o.wm)(e)&&e.silent||this.#i({type:"error",error:e}),(0,o.wm)(e)||(this.#d.config.onError?.(e,this),this.#d.config.onSettled?.(this.state.data,e,this)),this.scheduleGc()};return this.#r=(0,o.II)({initialPromise:t?.initialPromise,fn:s.fetchFn,abort:n.abort.bind(n),onSuccess:e=>{if(void 0===e)return void l(Error(`${this.queryHash} data is undefined`));try{this.setData(e)}catch(e){l(e);return}this.#d.config.onSuccess?.(e,this),this.#d.config.onSettled?.(e,this.state.error,this),this.scheduleGc()},onError:l,onFail:(e,t)=>{this.#i({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0}),this.#r.start()}#i(e){let t=t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...l(t.data,this.options),fetchMeta:e.meta??null};case"success":return this.#c=void 0,{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let n=e.error;if((0,o.wm)(n)&&n.revert&&this.#c)return{...this.#c,fetchStatus:"idle"};return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}};this.state=t(this.state),i.jG.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#d.notify({query:this,type:"updated",action:e})})}};function l(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,o.v_)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}},68127:(e,t,n)=>{"use strict";n.d(t,{S:()=>r,f:()=>i});let[r,i]=(0,n(42347).q)({name:"FieldContext",hookName:"useFieldContext",providerName:"<FieldProvider />",strict:!1})},68433:(e,t,n)=>{"use strict";n.d(t,{o:()=>r});let r=(0,n(23769).B)("div",{base:{display:"flex",alignItems:"center",justifyContent:"center"},variants:{inline:{true:{display:"inline-flex"}}}});r.displayName="Center"},68454:(e,t,n)=>{"use strict";e.exports=n(23002)},68476:e=>{e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}},68479:(e,t,n)=>{"use strict";n.d(t,{Gv:()=>r,Kg:()=>i,Tn:()=>o});let r=e=>null!=e&&"object"==typeof e&&!Array.isArray(e),i=e=>"string"==typeof e,o=e=>"function"==typeof e},68503:(e,t,n)=>{"use strict";n.d(t,{h:()=>r});let r=(0,n(23769).B)("div",{base:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});r.displayName="Spacer"},68626:function(e,t,n){var r;!function(i,o){"use strict";var a="function",s="undefined",l="object",u="string",c="model",d="name",f="type",h="vendor",p="version",g="architecture",v="console",m="mobile",b="tablet",y="smarttv",x="wearable",w="embedded",S="Amazon",E="Apple",k="ASUS",C="BlackBerry",O="Browser",I="Chrome",_="Firefox",T="Google",P="Huawei",R="Microsoft",A="Motorola",N="Opera",M="Samsung",L="Sharp",V="Sony",D="Xiaomi",F="Zebra",j="Facebook",z=function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},B=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},U=function(e,t){return typeof e===u&&-1!==W(t).indexOf(W(e))},W=function(e){return e.toLowerCase()},H=function(e,t){if(typeof e===u)return e=e.replace(/^\s\s*/,""),typeof t===s?e:e.substring(0,350)},q=function(e,t){for(var n,r,i,s,u,c,d=0;d<t.length&&!u;){var f=t[d],h=t[d+1];for(n=r=0;n<f.length&&!u;)if(u=f[n++].exec(e))for(i=0;i<h.length;i++)c=u[++r],typeof(s=h[i])===l&&s.length>0?2===s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,c):this[s[0]]=s[1]:3===s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=c?c.replace(s[1],s[2]):void 0:this[s[0]]=c?s[1].call(this,c,s[2]):void 0:4===s.length&&(this[s[0]]=c?s[3].call(this,c.replace(s[1],s[2])):o):this[s]=c||o;d+=2}},$=function(e,t){for(var n in t)if(typeof t[n]===l&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(U(t[n][r],e))return"?"===n?o:n}else if(U(t[n],e))return"?"===n?o:n;return e},G={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},K={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[d,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[d,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[d,p],[/opios[\/ ]+([\w\.]+)/i],[p,[d,N+" Mini"]],[/\bopr\/([\w\.]+)/i],[p,[d,N]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[d,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[d,"UC"+O]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[p,[d,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[d,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[d,"IE"]],[/yabrowser\/([\w\.]+)/i],[p,[d,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure "+O],p],[/\bfocus\/([\w\.]+)/i],[p,[d,_+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[d,N+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[d,N+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[d,"MIUI "+O]],[/fxios\/([-\w\.]+)/i],[p,[d,_]],[/\bqihu|(qi?ho?o?|360)browser/i],[[d,"360 "+O]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1 "+O],p],[/(comodo_dragon)\/([\w\.]+)/i],[[d,/_/g," "],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[d,p],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[d],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[d,j],p],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[d,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[d,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[d,I+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,I+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[d,"Android "+O]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[d,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[d,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,d],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[d,[p,$,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[d,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[d,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[d,_+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[d,p],[/(cobalt)\/([\w\.]+)/i],[d,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[g,"amd64"]],[/(ia32(?=;))/i],[[g,W]],[/((?:i[346]|x)86)[;\)]/i],[[g,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[g,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[g,"armhf"]],[/windows (ce|mobile); ppc;/i],[[g,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[g,/ower/,"",W]],[/(sun4\w)[;\)]/i],[[g,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[g,W]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[h,M],[f,b]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[h,M],[f,m]],[/((ipod|iphone)\d+,\d+)/i],[c,[h,E],[f,m]],[/(ipad\d+,\d+)/i],[c,[h,E],[f,b]],[/\((ip(?:hone|od)[\w ]*);/i],[c,[h,E],[f,m]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[h,E],[f,b]],[/(macintosh);/i],[c,[h,E]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[h,P],[f,b]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[h,P],[f,m]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[c,/_/g," "],[h,D],[f,m]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[h,D],[f,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[h,"OPPO"],[f,m]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[h,"Vivo"],[f,m]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[c,[h,"Realme"],[f,m]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[c,[h,A],[f,m]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[h,A],[f,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[h,"LG"],[f,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[h,"LG"],[f,m]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[h,"Lenovo"],[f,b]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[h,"Nokia"],[f,m]],[/(pixel c)\b/i],[c,[h,T],[f,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[h,T],[f,m]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[h,V],[f,m]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[h,V],[f,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[h,"OnePlus"],[f,m]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[h,S],[f,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[h,S],[f,m]],[/(playbook);[-\w\),; ]+(rim)/i],[c,h,[f,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[h,C],[f,m]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[h,k],[f,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[h,k],[f,m]],[/(nexus 9)/i],[c,[h,"HTC"],[f,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[c,/_/g," "],[f,m]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[h,"Acer"],[f,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[h,"Meizu"],[f,m]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[h,L],[f,m]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[h,c,[f,m]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[h,c,[f,b]],[/(surface duo)/i],[c,[h,R],[f,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[h,"Fairphone"],[f,m]],[/(u304aa)/i],[c,[h,"AT&T"],[f,m]],[/\bsie-(\w*)/i],[c,[h,"Siemens"],[f,m]],[/\b(rct\w+) b/i],[c,[h,"RCA"],[f,b]],[/\b(venue[\d ]{2,7}) b/i],[c,[h,"Dell"],[f,b]],[/\b(q(?:mv|ta)\w+) b/i],[c,[h,"Verizon"],[f,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[h,"Barnes & Noble"],[f,b]],[/\b(tm\d{3}\w+) b/i],[c,[h,"NuVision"],[f,b]],[/\b(k88) b/i],[c,[h,"ZTE"],[f,b]],[/\b(nx\d{3}j) b/i],[c,[h,"ZTE"],[f,m]],[/\b(gen\d{3}) b.+49h/i],[c,[h,"Swiss"],[f,m]],[/\b(zur\d{3}) b/i],[c,[h,"Swiss"],[f,b]],[/\b((zeki)?tb.*\b) b/i],[c,[h,"Zeki"],[f,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],c,[f,b]],[/\b(ns-?\w{0,9}) b/i],[c,[h,"Insignia"],[f,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[h,"NextBook"],[f,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],c,[f,m]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],c,[f,m]],[/\b(ph-1) /i],[c,[h,"Essential"],[f,m]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[h,"Envizen"],[f,b]],[/\b(trio[-\w\. ]+) b/i],[c,[h,"MachSpeed"],[f,b]],[/\btu_(1491) b/i],[c,[h,"Rotor"],[f,b]],[/(shield[\w ]+) b/i],[c,[h,"Nvidia"],[f,b]],[/(sprint) (\w+)/i],[h,c,[f,m]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[h,R],[f,m]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[h,F],[f,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[h,F],[f,m]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,c,[f,v]],[/droid.+; (shield) bui/i],[c,[h,"Nvidia"],[f,v]],[/(playstation [345portablevi]+)/i],[c,[h,V],[f,v]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[h,R],[f,v]],[/smart-tv.+(samsung)/i],[h,[f,y]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[h,M],[f,y]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,"LG"],[f,y]],[/(apple) ?tv/i],[h,[c,E+" TV"],[f,y]],[/crkey/i],[[c,I+"cast"],[h,T],[f,y]],[/droid.+aft(\w)( bui|\))/i],[c,[h,S],[f,y]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[h,L],[f,y]],[/(bravia[\w ]+)( bui|\))/i],[c,[h,V],[f,y]],[/(mitv-\w{5}) bui/i],[c,[h,D],[f,y]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[h,H],[c,H],[f,y]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,y]],[/((pebble))app/i],[h,c,[f,x]],[/droid.+; (glass) \d/i],[c,[h,T],[f,x]],[/droid.+; (wt63?0{2,3})\)/i],[c,[h,F],[f,x]],[/(quest( 2)?)/i],[c,[h,j],[f,x]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[f,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[c,[f,m]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[f,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,m]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[d,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[d,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[d,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,d]],os:[[/microsoft (windows) (vista|xp)/i],[d,p],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[d,[p,$,G]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[d,"Windows"],[p,$,G]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[d,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[d,"Mac OS"],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,d],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[d,p],[/\(bb(10);/i],[p,[d,C]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[d,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[d,_+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[d,"webOS"]],[/crkey\/([\d\.]+)/i],[p,[d,I+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[d,"Chromium OS"],p],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[d,p],[/(sunos) ?([\w\.\d]*)/i],[[d,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[d,p]]},Y=function(e,t){if(typeof e===l&&(t=e,e=o),!(this instanceof Y))return new Y(e,t).getResult();var n=e||(typeof i!==s&&i.navigator&&i.navigator.userAgent?i.navigator.userAgent:""),r=t?z(K,t):K;return this.getBrowser=function(){var e,t={};return t[d]=o,t[p]=o,q.call(t,n,r.browser),t.major=typeof(e=t.version)===u?e.replace(/[^\d\.]/g,"").split(".")[0]:o,t},this.getCPU=function(){var e={};return e[g]=o,q.call(e,n,r.cpu),e},this.getDevice=function(){var e={};return e[h]=o,e[c]=o,e[f]=o,q.call(e,n,r.device),e},this.getEngine=function(){var e={};return e[d]=o,e[p]=o,q.call(e,n,r.engine),e},this.getOS=function(){var e={};return e[d]=o,e[p]=o,q.call(e,n,r.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=typeof e===u&&e.length>350?H(e,350):e,this},this.setUA(n),this};Y.VERSION="0.7.33",Y.BROWSER=B([d,p,"major"]),Y.CPU=B([g]),Y.DEVICE=B([c,h,f,v,m,y,b,x,w]),Y.ENGINE=Y.OS=B([d,p]),typeof t!==s?(e.exports&&(t=e.exports=Y),t.UAParser=Y):n.amdO?o===(r=(function(){return Y}).call(t,n,t,e))||(e.exports=r):typeof i!==s&&(i.UAParser=Y);var X=typeof i!==s&&(i.jQuery||i.Zepto);if(X&&!X.ua){var Q=new Y;X.ua=Q.getResult(),X.ua.get=function(){return Q.getUA()},X.ua.set=function(e){Q.setUA(e);var t=Q.getResult();for(var n in t)X.ua[n]=t[n]}}}("object"==typeof window?window:this)},68667:(e,t,n)=>{"use strict";n.d(t,{$:()=>m,O:()=>b});var r=n(9597),i=n(80905),o=n(16550),a=n(63276),s=n(45008),l=n(12580),u=n(23769),c=n(6477),d=n(54673);let f=(0,u.B)("div",{base:{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},variants:{axis:{horizontal:{insetStart:"50%",translate:"-50%",_rtl:{translate:"50%"}},vertical:{top:"50%",translate:"0 -50%"},both:{insetStart:"50%",top:"50%",translate:"-50% -50%",_rtl:{translate:"50% -50%"}}}},defaultVariants:{axis:"both"}});f.displayName="AbsoluteCenter";let h=i.forwardRef(function(e,t){let{spinner:n=(0,r.jsx)(d.y,{size:"inherit",borderWidth:"0.125em",color:"inherit"}),spinnerPlacement:i="start",children:o,text:a,visible:s=!0,...l}=e;return s?a?(0,r.jsxs)(c.L,{ref:t,display:"contents",...l,children:["start"===i&&n,a,"end"===i&&n]}):n?(0,r.jsxs)(c.L,{ref:t,display:"contents",...l,children:[(0,r.jsx)(f,{display:"inline-flex",children:n}),(0,r.jsx)(c.L,{visibility:"hidden",display:"contents",children:o})]}):(0,r.jsx)(c.L,{ref:t,display:"contents",...l,children:o}):o}),{useRecipeResult:p,PropsProvider:g,usePropsContext:v}=(0,l.a)({key:"button"}),m=(0,i.forwardRef)(function(e,t){let n=v(),l=(0,i.useMemo)(()=>(0,o.v)(n,e),[n,e]),c=p(l),{loading:d,loadingText:f,children:g,spinner:m,spinnerPlacement:b,...y}=c.props;return(0,r.jsx)(u.B.button,{type:"button",ref:t,...y,"data-loading":(0,a.s)(d),disabled:d||y.disabled,className:(0,s.cx)(c.className,l.className),css:[c.styles,l.css],children:!l.asChild&&d?(0,r.jsx)(h,{spinner:m,text:f,spinnerPlacement:b,children:g}):g})}),b=g},68763:e=>{e.exports="0.8.5"},69105:(e,t,n)=>{var r=n(44412),i=n(94627),o=n(95816),a=n(15886),s=n(50952),l=n(80053),u=n(12984),c=n(35420),d=n(81657),f=n(62155),h=n(97348),p=n(61218),g=n(4438),v=n(61807),m=n(1213);e.exports=function(e,t,n,b,y,x,w){var S=v(e,n),E=v(t,n),k=w.get(E);if(k)return void r(e,n,k);var C=x?x(S,E,n+"",e,t,w):void 0,O=void 0===C;if(O){var I=u(E),_=!I&&d(E),T=!I&&!_&&g(E);C=E,I||_||T?u(S)?C=S:c(S)?C=a(S):_?(O=!1,C=i(E,!0)):T?(O=!1,C=o(E,!0)):C=[]:p(E)||l(E)?(C=S,l(S)?C=m(S):(!h(S)||f(S))&&(C=s(E))):O=!1}O&&(w.set(E,C),y(C,E,b,x,w),w.delete(E)),r(e,n,C)}},69387:(e,t,n)=>{e.exports=n(88854)(Object.keys,Object)},69675:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},69733:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(9597),i=n(6280),o=n(80905),a=n(28636),s=n(63283);let l=e=>{var t;let{children:n,disabled:i}=e,[l,d]=(0,o.useState)(null==(t=e.container)?void 0:t.current),f=(0,o.useSyncExternalStore)(c,()=>!1,()=>!0),{getRootNode:h}=(0,s.w)();if((0,o.useEffect)(()=>{d(()=>{var t;return null==(t=e.container)?void 0:t.current})},[e.container]),f||i)return(0,r.jsx)(r.Fragment,{children:n});let p=null!=l?l:u(h);return(0,r.jsx)(r.Fragment,{children:o.Children.map(n,e=>(0,a.createPortal)(e,p))})},u=e=>{let t=null==e?void 0:e(),n=t.getRootNode();return(0,i.Ng)(n)?n:(0,i.YE)(t).body},c=()=>()=>{}},69752:(e,t,n)=>{var r=n(70378);e.exports=function(e,t){return r(t,function(t){return e[t]})}},69864:(e,t,n)=>{var r=n(12984),i=n(28939),o=n(77035),a=n(24287);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},70066:(e,t,n)=>{"use strict";n.d(t,{Cj:()=>i});var r=n(80905);function i(){let[e,t]=(0,r.useState)(null);return[e,(0,r.useCallback)(async e=>{if(!(null==navigator?void 0:navigator.clipboard))return console.warn("Clipboard not supported"),!1;try{return await navigator.clipboard.writeText(e),t(e),!0}catch(e){return console.warn("Copy failed",e),t(null),!1}},[])]}n(18792),"undefined"!=typeof window?r.useLayoutEffect:r.useEffect},70378:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},70390:(e,t,n)=>{var r=n(85566);e.exports=function(e){return r(e,5)}},70465:(e,t,n)=>{"use strict";n.d(t,{Cp:()=>p,EN:()=>h,Eh:()=>u,F$:()=>f,GU:()=>C,MK:()=>c,S$:()=>r,ZM:()=>k,ZZ:()=>S,Zw:()=>o,d2:()=>l,f8:()=>g,gn:()=>a,hT:()=>E,j3:()=>s,lQ:()=>i,nJ:()=>d,pl:()=>x,y9:()=>w,yy:()=>y});var r="undefined"==typeof window||"Deno"in globalThis;function i(){}function o(e,t){return"function"==typeof e?e(t):e}function a(e){return"number"==typeof e&&e>=0&&e!==1/0}function s(e,t){return Math.max(e+(t||0)-Date.now(),0)}function l(e,t){return"function"==typeof e?e(t):e}function u(e,t){return"function"==typeof e?e(t):e}function c(e,t){let{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==f(a,t.options))return!1}else if(!p(t.queryKey,a))return!1}if("all"!==n){let e=t.isActive();if("active"===n&&!e||"inactive"===n&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&(!i||i===t.state.fetchStatus)&&(!o||!!o(t))}function d(e,t){let{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(h(t.options.mutationKey)!==h(o))return!1}else if(!p(t.options.mutationKey,o))return!1}return(!r||t.state.status===r)&&(!i||!!i(t))}function f(e,t){return(t?.queryKeyHashFn||h)(e)}function h(e){return JSON.stringify(e,(e,t)=>m(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function p(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&Object.keys(t).every(n=>p(e[n],t[n]))}function g(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function v(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function m(e){if(!b(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!b(n)&&!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function b(e){return"[object Object]"===Object.prototype.toString.call(e)}function y(e){return new Promise(t=>{setTimeout(t,e)})}function x(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?function e(t,n){if(t===n)return t;let r=v(t)&&v(n);if(r||m(t)&&m(n)){let i=r?t:Object.keys(t),o=i.length,a=r?n:Object.keys(n),s=a.length,l=r?[]:{},u=new Set(i),c=0;for(let i=0;i<s;i++){let o=r?i:a[i];(!r&&u.has(o)||r)&&void 0===t[o]&&void 0===n[o]?(l[o]=void 0,c++):(l[o]=e(t[o],n[o]),l[o]===t[o]&&void 0!==t[o]&&c++)}return o===s&&c===o?t:l}return n}(e,t):t}function w(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function S(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var E=Symbol();function k(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==E?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}function C(e,t){return"function"==typeof e?e(...t):!!e}},71102:e=>{var t="\ud800-\udfff",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\ud83c[\udffb-\udfff]",i="[^"+t+"]",o="(?:\ud83c[\udde6-\uddff]){2}",a="[\ud800-\udbff][\udc00-\udfff]",s="(?:"+n+"|"+r+")?",l="[\\ufe0e\\ufe0f]?",u="(?:\\u200d(?:"+[i,o,a].join("|")+")"+l+s+")*",c=RegExp(r+"(?="+r+")|"+("(?:"+[i+n+"?",n,o,a,"["+t+"]"].join("|"))+")"+(l+s+u),"g");e.exports=function(e){for(var t=c.lastIndex=0;c.test(e);)++t;return t}},71386:(e,t,n)=>{"use strict";let r,i;n.d(t,{Yi:()=>sA,u4:()=>sN});var o,a,s,l,u,c,d,f,h,p,g,v,m,b,y,x,w,S,E,k,C,O,I,_=function(e,t){return(_=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function T(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}_(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var P=function(){return(P=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function R(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function A(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}function N(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,r=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){o.label=u[1];break}if(6===u[0]&&o.label<i[1]){o.label=i[1],i=u;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(u);break}i[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],r=0}finally{n=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function M(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function L(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function V(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function D(e){return this instanceof D?(this.v=e,this):new D(e)}Object.create,Object.create;var F=("function"==typeof SuppressedError&&SuppressedError,function(e){return{promise:e||Promise.resolve()}}),j=function(){var e="ampIntegrationContext";return"undefined"!=typeof globalThis&&void 0!==globalThis[e]?globalThis[e]:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==n.g?n.g:void 0},z=function(){var e,t=j();return(null==(e=null==t?void 0:t.location)?void 0:e.search)?t.location.search.substring(1).split("&").filter(Boolean).reduce(function(e,t){var n=t.split("=",2),r=B(n[0]),i=B(n[1]);return i&&(e[r]=i),e},{}):{}},B=function(e){void 0===e&&(e="");try{return decodeURIComponent(e)}catch(e){return""}},U=function(){function e(){}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:W(),platform:"Web",os:void 0,deviceModel:void 0}},e}(),W=function(){return"undefined"!=typeof navigator&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},H=function(){function e(){this.queue=[]}return e.prototype.logEvent=function(e){this.receiver?this.receiver(e):this.queue.length<512&&this.queue.push(e)},e.prototype.setEventReceiver=function(e){this.receiver=e,this.queue.length>0&&(this.queue.forEach(function(t){e(t)}),this.queue=[])},e}(),q=function(){return(q=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function $(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function G(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}"function"==typeof SuppressedError&&SuppressedError;var K=function(e,t){var n,r,i=typeof e;if(i!==typeof t)return!1;try{for(var o=$(["string","number","boolean","undefined"]),a=o.next();!a.done;a=o.next())if(a.value===i)return e===t}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}if(null==e&&null==t)return!0;if(null==e||null==t||e.length!==t.length)return!1;var s=Array.isArray(e),l=Array.isArray(t);if(s!==l)return!1;if(s&&l){for(var u=0;u<e.length;u++)if(!K(e[u],t[u]))return!1}else{if(!K(Object.keys(e).sort(),Object.keys(t).sort()))return!1;var c=!0;return Object.keys(e).forEach(function(n){K(e[n],t[n])||(c=!1)}),c}return!0};Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),n=t.length,r=Array(n);n--;)r[n]=[t[n],e[t[n]]];return r});var Y=function(){function e(){this.identity={userProperties:{}},this.listeners=new Set}return e.prototype.editIdentity=function(){var e=this,t=q({},this.identity.userProperties),n=q(q({},this.identity),{userProperties:t});return{setUserId:function(e){return n.userId=e,this},setDeviceId:function(e){return n.deviceId=e,this},setUserProperties:function(e){return n.userProperties=e,this},setOptOut:function(e){return n.optOut=e,this},updateUserProperties:function(e){var t,r,i,o,a,s,l=n.userProperties||{};try{for(var u=$(Object.entries(e)),c=u.next();!c.done;c=u.next()){var d=G(c.value,2),f=d[0],h=d[1];switch(f){case"$set":try{for(var p=(i=void 0,$(Object.entries(h))),g=p.next();!g.done;g=p.next()){var v=G(g.value,2),m=v[0],b=v[1];l[m]=b}}catch(e){i={error:e}}finally{try{g&&!g.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}break;case"$unset":try{for(var y=(a=void 0,$(Object.keys(h))),x=y.next();!x.done;x=y.next()){var m=x.value;delete l[m]}}catch(e){a={error:e}}finally{try{x&&!x.done&&(s=y.return)&&s.call(y)}finally{if(a)throw a.error}}break;case"$clearAll":l={}}}}catch(e){t={error:e}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}return n.userProperties=l,this},commit:function(){return e.setIdentity(n),this}}},e.prototype.getIdentity=function(){return q({},this.identity)},e.prototype.setIdentity=function(e){var t=q({},this.identity);this.identity=q({},e),K(t,this.identity)||this.listeners.forEach(function(t){t(e)})},e.prototype.addIdentityListener=function(e){this.listeners.add(e)},e.prototype.removeIdentityListener=function(e){this.listeners.delete(e)},e}(),X="undefined"!=typeof globalThis?globalThis:void 0!==n.g?n.g:self,Q=function(){function e(){this.identityStore=new Y,this.eventBridge=new H,this.applicationContextProvider=new U}return e.getInstance=function(t){return X.analyticsConnectorInstances||(X.analyticsConnectorInstances={}),X.analyticsConnectorInstances[t]||(X.analyticsConnectorInstances[t]=new e),X.analyticsConnectorInstances[t]},e}(),J="".concat("AMP","_unsent"),Z="$default_instance",ee="https://api2.amplitude.com/2/httpapi",et=function(e){return void 0===e&&(e=Z),Q.getInstance(e)},en=function(e,t){et(t).identityStore.editIdentity().setUserId(e).commit()},er=function(e,t){et(t).identityStore.editIdentity().setDeviceId(e).commit()};!function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.PayloadTooLarge="payload_too_large",e.Invalid="invalid",e.Failed="failed",e.Timeout="Timeout",e.SystemError="SystemError"}(o||(o={}));var ei=function(e,t){var n=Math.max(t,1);return e.reduce(function(e,t,r){var i=Math.floor(r/n);return e[i]||(e[i]=[]),e[i].push(t),e},[])},eo=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=o.Unknown),{event:e,code:t,message:n}};!function(e){e[e.None=0]="None",e[e.Error=1]="Error",e[e.Warn=2]="Warn",e[e.Verbose=3]="Verbose",e[e.Debug=4]="Debug"}(a||(a={}));var ea="Amplitude Logger ",es=function(){function e(){this.logLevel=a.None}return e.prototype.disable=function(){this.logLevel=a.None},e.prototype.enable=function(e){void 0===e&&(e=a.Warn),this.logLevel=e},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<a.Verbose||console.log("".concat(ea,"[Log]: ").concat(e.join(" ")))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<a.Warn||console.warn("".concat(ea,"[Warn]: ").concat(e.join(" ")))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<a.Error||console.error("".concat(ea,"[Error]: ").concat(e.join(" ")))},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<a.Debug||console.log("".concat(ea,"[Debug]: ").concat(e.join(" ")))},e}(),el=function(){return{flushMaxRetries:12,flushQueueSize:200,flushIntervalMillis:1e4,instanceName:Z,logLevel:a.Warn,loggerProvider:new es,offline:!1,optOut:!1,serverUrl:ee,serverZone:"US",useBatch:!1}},eu=function(){function e(e){this._optOut=!1;var t,n,r,i,o=el();this.apiKey=e.apiKey,this.flushIntervalMillis=null!=(t=e.flushIntervalMillis)?t:o.flushIntervalMillis,this.flushMaxRetries=e.flushMaxRetries||o.flushMaxRetries,this.flushQueueSize=e.flushQueueSize||o.flushQueueSize,this.instanceName=e.instanceName||o.instanceName,this.loggerProvider=e.loggerProvider||o.loggerProvider,this.logLevel=null!=(n=e.logLevel)?n:o.logLevel,this.minIdLength=e.minIdLength,this.plan=e.plan,this.ingestionMetadata=e.ingestionMetadata,this.offline=void 0!==e.offline?e.offline:o.offline,this.optOut=null!=(r=e.optOut)?r:o.optOut,this.serverUrl=e.serverUrl,this.serverZone=e.serverZone||o.serverZone,this.storageProvider=e.storageProvider,this.transportProvider=e.transportProvider,this.useBatch=null!=(i=e.useBatch)?i:o.useBatch,this.loggerProvider.enable(this.logLevel);var a=ec(e.serverUrl,e.serverZone,e.useBatch);this.serverZone=a.serverZone,this.serverUrl=a.serverUrl}return Object.defineProperty(e.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut=e},enumerable:!1,configurable:!0}),e}(),ec=function(e,t,n){if(void 0===e&&(e=""),void 0===t&&(t=el().serverZone),void 0===n&&(n=el().useBatch),e)return{serverUrl:e,serverZone:void 0};var r,i=["US","EU"].includes(t)?t:el().serverZone;return{serverZone:i,serverUrl:(r=n,"EU"===i?r?"https://api.eu.amplitude.com/batch":"https://api.eu.amplitude.com/2/httpapi":r?"https://api2.amplitude.com/batch":ee)}},ed=function(){function e(){this.sdk={metrics:{histogram:{}}}}return e.prototype.recordHistogram=function(e,t){this.sdk.metrics.histogram[e]=t},e}(),ef=V([],L(Array(256).keys()),!1).map(function(e){return e.toString(16).padStart(2,"0")}),eh=function(e){var t,n=j();if(!(null==(t=null==n?void 0:n.crypto)?void 0:t.getRandomValues))return e?(e^16*Math.random()>>e/4).toString(16):(String(1e7)+String(-1e3)+String(-4e3)+String(-8e3)+String(-1e11)).replace(/[018]/g,eh);var r=n.crypto.getRandomValues(new Uint8Array(16));return r[6]=15&r[6]|64,r[8]=63&r[8]|128,V([],L(r.entries()),!1).map(function(e){var t=L(e,2),n=t[0],r=t[1];return[4,6,8,10].includes(n)?"-".concat(ef[r]):ef[r]}).join("")};function ep(e){var t="";try{"body"in e&&(t=JSON.stringify(e.body,null,2))}catch(e){}return t}var eg=function(){function e(){this.name="amplitude",this.type="destination",this.retryTimeout=1e3,this.throttleTimeout=3e4,this.storageKey="",this.scheduleId=null,this.scheduledTimeout=0,this.flushId=null,this.queue=[]}return e.prototype.setup=function(e){var t;return A(this,void 0,void 0,function(){var n,r=this;return N(this,function(i){switch(i.label){case 0:return this.config=e,this.storageKey="".concat(J,"_").concat(this.config.apiKey.substring(0,10)),[4,null==(t=this.config.storageProvider)?void 0:t.get(this.storageKey)];case 1:return(n=i.sent())&&n.length>0&&Promise.all(n.map(function(e){return r.execute(e)})).catch(),[2,Promise.resolve(void 0)]}})})},e.prototype.execute=function(e){var t=this;return e.insert_id||(e.insert_id=eh()),new Promise(function(n){t.queue.push({event:e,attempts:0,callback:function(e){return n(e)},timeout:0}),t.schedule(t.config.flushIntervalMillis),t.saveEvents()})},e.prototype.removeEventsExceedFlushMaxRetries=function(e){var t=this;return e.filter(function(e){return e.attempts+=1,e.attempts<t.config.flushMaxRetries||(t.fulfillRequest([e],500,"Event rejected due to exceeded retry count"),!1)})},e.prototype.scheduleEvents=function(e){var t=this;e.forEach(function(e){t.schedule(0===e.timeout?t.config.flushIntervalMillis:e.timeout)})},e.prototype.schedule=function(e){var t=this;if(!this.config.offline&&(null===this.scheduleId||this.scheduleId&&e>this.scheduledTimeout)){this.scheduleId&&clearTimeout(this.scheduleId),this.scheduledTimeout=e,this.scheduleId=setTimeout(function(){t.queue=t.queue.map(function(e){return e.timeout=0,e}),t.flush(!0)},e);return}},e.prototype.resetSchedule=function(){this.scheduleId=null,this.scheduledTimeout=0},e.prototype.flush=function(e){return void 0===e&&(e=!1),A(this,void 0,void 0,function(){var t,n,r=this;return N(this,function(i){switch(i.label){case 0:if(this.config.offline)return this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush while offline."),[2];if(this.flushId)return this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush because previous flush has not resolved."),[2];return this.flushId=this.scheduleId,this.resetSchedule(),t=[],n=[],this.queue.forEach(function(e){return 0===e.timeout?t.push(e):n.push(e)}),[4,ei(t,this.config.flushQueueSize).reduce(function(t,n){return A(r,void 0,void 0,function(){return N(this,function(r){switch(r.label){case 0:return[4,t];case 1:return r.sent(),[4,this.send(n,e)];case 2:return[2,r.sent()]}})})},Promise.resolve())];case 1:return i.sent(),this.flushId=null,this.scheduleEvents(this.queue),[2]}})})},e.prototype.send=function(e,t){return void 0===t&&(t=!0),A(this,void 0,void 0,function(){var n,r,i,a;return N(this,function(s){switch(s.label){case 0:if(!this.config.apiKey)return[2,this.fulfillRequest(e,400,"Event rejected due to missing API key")];n={api_key:this.config.apiKey,events:e.map(function(e){var t=e.event;return t.extra,R(t,["extra"])}),options:{min_id_length:this.config.minIdLength},client_upload_time:new Date().toISOString(),request_metadata:this.config.requestMetadata},this.config.requestMetadata=new ed,s.label=1;case 1:return s.trys.push([1,3,,4]),r=ec(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl,[4,this.config.transportProvider.send(r,n)];case 2:if(null===(i=s.sent()))return this.fulfillRequest(e,0,"Unexpected error occurred"),[2];if(!t)return"body"in i?this.fulfillRequest(e,i.statusCode,"".concat(i.status,": ").concat(ep(i))):this.fulfillRequest(e,i.statusCode,i.status),[2];return this.handleResponse(i,e),[3,4];case 3:var l;return a=(l=s.sent())instanceof Error?l.message:String(l),this.config.loggerProvider.error(a),this.handleResponse({status:o.Failed,statusCode:0},e),[3,4];case 4:return[2]}})})},e.prototype.handleResponse=function(e,t){var n=e.status;switch(n){case o.Success:this.handleSuccessResponse(e,t);break;case o.Invalid:this.handleInvalidResponse(e,t);break;case o.PayloadTooLarge:this.handlePayloadTooLargeResponse(e,t);break;case o.RateLimit:this.handleRateLimitResponse(e,t);break;default:this.config.loggerProvider.warn("{code: 0, error: \"Status '".concat(n,"' provided for ").concat(t.length,' events"}')),this.handleOtherResponse(t)}},e.prototype.handleSuccessResponse=function(e,t){this.fulfillRequest(t,e.statusCode,"Event tracked successfully")},e.prototype.handleInvalidResponse=function(e,t){var n=this;if(e.body.missingField||e.body.error.startsWith("Invalid API key"))return void this.fulfillRequest(t,e.statusCode,e.body.error);var r=new Set(V(V(V(V([],L(Object.values(e.body.eventsWithInvalidFields)),!1),L(Object.values(e.body.eventsWithMissingFields)),!1),L(Object.values(e.body.eventsWithInvalidIdLengths)),!1),L(e.body.silencedEvents),!1).flat()),i=t.filter(function(t,i){return!r.has(i)||void n.fulfillRequest([t],e.statusCode,e.body.error)});i.length>0&&this.config.loggerProvider.warn(ep(e));var o=this.removeEventsExceedFlushMaxRetries(i);this.scheduleEvents(o)},e.prototype.handlePayloadTooLargeResponse=function(e,t){if(1===t.length)return void this.fulfillRequest(t,e.statusCode,e.body.error);this.config.loggerProvider.warn(ep(e)),this.config.flushQueueSize/=2;var n=this.removeEventsExceedFlushMaxRetries(t);this.scheduleEvents(n)},e.prototype.handleRateLimitResponse=function(e,t){var n=this,r=Object.keys(e.body.exceededDailyQuotaUsers),i=Object.keys(e.body.exceededDailyQuotaDevices),o=e.body.throttledEvents,a=new Set(r),s=new Set(i),l=new Set(o),u=t.filter(function(t,r){return t.event.user_id&&a.has(t.event.user_id)||t.event.device_id&&s.has(t.event.device_id)?void n.fulfillRequest([t],e.statusCode,e.body.error):(l.has(r)&&(t.timeout=n.throttleTimeout),!0)});u.length>0&&this.config.loggerProvider.warn(ep(e));var c=this.removeEventsExceedFlushMaxRetries(u);this.scheduleEvents(c)},e.prototype.handleOtherResponse=function(e){var t=this,n=e.map(function(e){return e.timeout=e.attempts*t.retryTimeout,e}),r=this.removeEventsExceedFlushMaxRetries(n);this.scheduleEvents(r)},e.prototype.fulfillRequest=function(e,t,n){this.removeEvents(e),e.forEach(function(e){return e.callback(eo(e.event,t,n))})},e.prototype.saveEvents=function(){if(this.config.storageProvider){var e=this.queue.map(function(e){return e.event});this.config.storageProvider.set(this.storageKey,e)}},e.prototype.removeEvents=function(e){this.queue=this.queue.filter(function(t){return!e.some(function(e){return e.event.insert_id===t.event.insert_id})}),this.saveEvents()},e}(),ev=function(){function e(){this.name="identity",this.type="before",this.identityStore=et().identityStore}return e.prototype.execute=function(e){return A(this,void 0,void 0,function(){var t;return N(this,function(n){return(t=e.user_properties)&&this.identityStore.editIdentity().updateUserProperties(t).commit(),[2,e]})})},e.prototype.setup=function(e){return A(this,void 0,void 0,function(){return N(this,function(t){return e.instanceName&&(this.identityStore=et(e.instanceName).identityStore),[2]})})},e}(),em=function(e){if(Object.keys(e).length>1e3)return!1;for(var t in e){var n=e[t];if(!eb(t,n))return!1}return!0},eb=function(e,t){var n,r;if("string"!=typeof e)return!1;if(Array.isArray(t)){var i=!0;try{for(var o=M(t),a=o.next();!a.done;a=o.next()){var s=a.value;if(Array.isArray(s))return!1;if("object"==typeof s)i=i&&em(s);else if(!["number","string"].includes(typeof s))return!1;if(!i)return!1}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}else if(null==t)return!1;else if("object"==typeof t)return em(t);else if(!["number","string","boolean"].includes(typeof t))return!1;return!0},ey=function(){function e(){this._propertySet=new Set,this._properties={}}return e.prototype.getUserProperties=function(){return P({},this._properties)},e.prototype.set=function(e,t){return this._safeSet(s.SET,e,t),this},e.prototype.setOnce=function(e,t){return this._safeSet(s.SET_ONCE,e,t),this},e.prototype.append=function(e,t){return this._safeSet(s.APPEND,e,t),this},e.prototype.prepend=function(e,t){return this._safeSet(s.PREPEND,e,t),this},e.prototype.postInsert=function(e,t){return this._safeSet(s.POSTINSERT,e,t),this},e.prototype.preInsert=function(e,t){return this._safeSet(s.PREINSERT,e,t),this},e.prototype.remove=function(e,t){return this._safeSet(s.REMOVE,e,t),this},e.prototype.add=function(e,t){return this._safeSet(s.ADD,e,t),this},e.prototype.unset=function(e){return this._safeSet(s.UNSET,e,"-"),this},e.prototype.clearAll=function(){return this._properties={},this._properties[s.CLEAR_ALL]="-",this},e.prototype._safeSet=function(e,t,n){if(this._validate(e,t,n)){var r=this._properties[e];return void 0===r&&(r={},this._properties[e]=r),r[t]=n,this._propertySet.add(t),!0}return!1},e.prototype._validate=function(e,t,n){return!(void 0!==this._properties[s.CLEAR_ALL]||this._propertySet.has(t))&&(e===s.ADD?"number"==typeof n:e===s.UNSET||e===s.REMOVE||eb(t,n))},e}();!function(e){e.SET="$set",e.SET_ONCE="$setOnce",e.ADD="$add",e.APPEND="$append",e.PREPEND="$prepend",e.REMOVE="$remove",e.PREINSERT="$preInsert",e.POSTINSERT="$postInsert",e.UNSET="$unset",e.CLEAR_ALL="$clearAll"}(s||(s={}));var ex=[s.CLEAR_ALL,s.UNSET,s.SET,s.SET_ONCE,s.ADD,s.APPEND,s.PREPEND,s.PREINSERT,s.POSTINSERT,s.REMOVE],ew=function(){function e(){this.productId="",this.quantity=1,this.price=0}return e.prototype.setProductId=function(e){return this.productId=e,this},e.prototype.setQuantity=function(e){return e>0&&(this.quantity=e),this},e.prototype.setPrice=function(e){return this.price=e,this},e.prototype.setRevenueType=function(e){return this.revenueType=e,this},e.prototype.setCurrency=function(e){return this.currency=e,this},e.prototype.setRevenue=function(e){return this.revenue=e,this},e.prototype.setReceipt=function(e){return this.receipt=e,this},e.prototype.setReceiptSig=function(e){return this.receiptSig=e,this},e.prototype.setEventProperties=function(e){return em(e)&&(this.properties=e),this},e.prototype.getEventProperties=function(){var e=this.properties?P({},this.properties):{};return e[l.REVENUE_PRODUCT_ID]=this.productId,e[l.REVENUE_QUANTITY]=this.quantity,e[l.REVENUE_PRICE]=this.price,e[l.REVENUE_TYPE]=this.revenueType,e[l.REVENUE_CURRENCY]=this.currency,e[l.REVENUE]=this.revenue,e[l.RECEIPT]=this.receipt,e[l.RECEIPT_SIG]=this.receiptSig,e},e}();!function(e){e.REVENUE_PRODUCT_ID="$productId",e.REVENUE_QUANTITY="$quantity",e.REVENUE_PRICE="$price",e.REVENUE_TYPE="$revenueType",e.REVENUE_CURRENCY="$currency",e.REVENUE="$revenue",e.RECEIPT="$receipt",e.RECEIPT_SIG="$receiptSig"}(l||(l={}));var eS=function(e,t){return void 0===t&&(t=Date.now()),Date.now()-t>e};!function(e){e.SET="$set",e.SET_ONCE="$setOnce",e.ADD="$add",e.APPEND="$append",e.PREPEND="$prepend",e.REMOVE="$remove",e.PREINSERT="$preInsert",e.POSTINSERT="$postInsert",e.UNSET="$unset",e.CLEAR_ALL="$clearAll"}(u||(u={})),function(e){e.IDENTIFY="$identify",e.GROUP_IDENTIFY="$groupidentify",e.REVENUE="revenue_amount"}(c||(c={}));var eE=function(){function e(e){this.client=e,this.queue=[],this.applying=!1,this.plugins=[]}return e.prototype.register=function(e,t){var n,r;return A(this,void 0,void 0,function(){return N(this,function(i){switch(i.label){case 0:if(this.plugins.some(function(t){return t.name===e.name}))return this.loggerProvider.warn("Plugin with name ".concat(e.name," already exists, skipping registration")),[2];return void 0===e.name&&(e.name=eh(),this.loggerProvider.warn("Plugin name is undefined. \n Generating a random UUID for plugin name: ".concat(e.name,". \n Set a name for the plugin to prevent it from being added multiple times."))),e.type=null!=(n=e.type)?n:"enrichment",[4,null==(r=e.setup)?void 0:r.call(e,t,this.client)];case 1:return i.sent(),this.plugins.push(e),[2]}})})},e.prototype.deregister=function(e,t){var n;return A(this,void 0,void 0,function(){var r,i;return N(this,function(o){switch(o.label){case 0:if(-1===(r=this.plugins.findIndex(function(t){return t.name===e})))return t.loggerProvider.warn("Plugin with name ".concat(e," does not exist, skipping deregistration")),[2];return i=this.plugins[r],this.plugins.splice(r,1),[4,null==(n=i.teardown)?void 0:n.call(i)];case 1:return o.sent(),[2]}})})},e.prototype.reset=function(e){this.applying=!1,this.plugins.map(function(e){var t;return null==(t=e.teardown)?void 0:t.call(e)}),this.plugins=[],this.client=e},e.prototype.push=function(e){var t=this;return new Promise(function(n){t.queue.push([e,n]),t.scheduleApply(0)})},e.prototype.scheduleApply=function(e){var t=this;this.applying||(this.applying=!0,setTimeout(function(){t.apply(t.queue.shift()).then(function(){t.applying=!1,t.queue.length>0&&t.scheduleApply(0)})},e))},e.prototype.apply=function(e){return A(this,void 0,void 0,function(){var t,n,r,i,o,a,s,l,u,c,d,f,h,p,g;return N(this,function(v){switch(v.label){case 0:if(!e)return[2];t=L(e,1)[0],n=L(e,2)[1],this.loggerProvider.log("Timeline.apply: Initial event",t),r=this.plugins.filter(function(e){return"before"===e.type}),v.label=1;case 1:v.trys.push([1,6,7,8]),o=(i=M(r)).next(),v.label=2;case 2:if(o.done)return[3,5];if(!(a=o.value).execute)return[3,4];return[4,a.execute(P({},t))];case 3:if(null===(s=v.sent()))return this.loggerProvider.log("Timeline.apply: Event filtered out by before plugin '".concat(String(a.name),"', event: ").concat(JSON.stringify(t))),n({event:t,code:0,message:""}),[2];t=s,this.loggerProvider.log("Timeline.apply: Event after before plugin '".concat(String(a.name),"', event: ").concat(JSON.stringify(t))),v.label=4;case 4:return o=i.next(),[3,2];case 5:return[3,8];case 6:return f={error:v.sent()},[3,8];case 7:try{o&&!o.done&&(h=i.return)&&h.call(i)}finally{if(f)throw f.error}return[7];case 8:l=this.plugins.filter(function(e){return"enrichment"===e.type||void 0===e.type}),v.label=9;case 9:v.trys.push([9,14,15,16]),c=(u=M(l)).next(),v.label=10;case 10:if(c.done)return[3,13];if(!(a=c.value).execute)return[3,12];return[4,a.execute(P({},t))];case 11:if(null===(s=v.sent()))return this.loggerProvider.log("Timeline.apply: Event filtered out by enrichment plugin '".concat(String(a.name),"', event: ").concat(JSON.stringify(t))),n({event:t,code:0,message:""}),[2];t=s,this.loggerProvider.log("Timeline.apply: Event after enrichment plugin '".concat(String(a.name),"', event: ").concat(JSON.stringify(t))),v.label=12;case 12:return c=u.next(),[3,10];case 13:return[3,16];case 14:return p={error:v.sent()},[3,16];case 15:try{c&&!c.done&&(g=u.return)&&g.call(u)}finally{if(p)throw p.error}return[7];case 16:return d=this.plugins.filter(function(e){return"destination"===e.type}),this.loggerProvider.log("Timeline.apply: Final event before destinations, event: ".concat(JSON.stringify(t))),Promise.all(d.map(function(e){var n=P({},t);return e.execute(n).catch(function(e){return eo(n,0,String(e))})})).then(function(e){var r=L(e,1)[0]||eo(t,100,"Event not tracked, no destination plugins on the instance");n(r)}),[2]}})})},e.prototype.flush=function(){return A(this,void 0,void 0,function(){var e,t=this;return N(this,function(n){switch(n.label){case 0:return e=this.queue,this.queue=[],[4,Promise.all(e.map(function(e){return t.apply(e)}))];case 1:return n.sent(),[4,Promise.all(this.plugins.filter(function(e){return"destination"===e.type}).map(function(e){return e.flush&&e.flush()}))];case 2:return n.sent(),[2]}})})},e.prototype.onIdentityChanged=function(e){this.plugins.forEach(function(t){var n;null==(n=t.onIdentityChanged)||n.call(t,e)})},e.prototype.onSessionIdChanged=function(e){this.plugins.forEach(function(t){var n;null==(n=t.onSessionIdChanged)||n.call(t,e)})},e.prototype.onOptOutChanged=function(e){this.plugins.forEach(function(t){var n;null==(n=t.onOptOutChanged)||n.call(t,e)})},e}(),ek=function(e,t){return P(P({},t),{event_type:c.IDENTIFY,user_properties:e.getUserProperties()})},eC=function(e,t,n,r){var i;return P(P({},r),{event_type:c.GROUP_IDENTIFY,group_properties:n.getUserProperties(),groups:((i={})[e]=t,i)})},eO=function(e,t,n){var r,i=new ey;return i.set(e,t),P(P({},n),{event_type:c.IDENTIFY,user_properties:i.getUserProperties(),groups:((r={})[e]=t,r)})},eI=function(){function e(e){void 0===e&&(e="$default"),this.initializing=!1,this.isReady=!1,this.q=[],this.dispatchQ=[],this.logEvent=this.track.bind(this),this.timeline=new eE(this),this.name=e}return e.prototype._init=function(e){return A(this,void 0,void 0,function(){return N(this,function(t){switch(t.label){case 0:return this.config=e,this.timeline.reset(this),this.timeline.loggerProvider=this.config.loggerProvider,[4,this.runQueuedFunctions("q")];case 1:return t.sent(),this.isReady=!0,[2]}})})},e.prototype.runQueuedFunctions=function(e){return A(this,void 0,void 0,function(){var t,n,r,i,o,a;return N(this,function(s){switch(s.label){case 0:t=this[e],this[e]=[],s.label=1;case 1:s.trys.push([1,8,9,10]),r=(n=M(t)).next(),s.label=2;case 2:if(r.done)return[3,7];if(!((i=(0,r.value)())&&"promise"in i))return[3,4];return[4,i.promise];case 3:return s.sent(),[3,6];case 4:return[4,i];case 5:s.sent(),s.label=6;case 6:return r=n.next(),[3,2];case 7:return[3,10];case 8:return o={error:s.sent()},[3,10];case 9:try{r&&!r.done&&(a=n.return)&&a.call(n)}finally{if(o)throw o.error}return[7];case 10:if(!this[e].length)return[3,12];return[4,this.runQueuedFunctions(e)];case 11:s.sent(),s.label=12;case 12:return[2]}})})},e.prototype.track=function(e,t,n){var r=P(P(P({},"string"==typeof e?{event_type:e}:e),n),t&&{event_properties:t});return F(this.dispatch(r))},e.prototype.identify=function(e,t){var n=ek(e,t);return F(this.dispatch(n))},e.prototype.groupIdentify=function(e,t,n,r){var i=eC(e,t,n,r);return F(this.dispatch(i))},e.prototype.setGroup=function(e,t,n){var r=eO(e,t,n);return F(this.dispatch(r))},e.prototype.revenue=function(e,t){var n=P(P({},t),{event_type:c.REVENUE,event_properties:e.getEventProperties()});return F(this.dispatch(n))},e.prototype.add=function(e){return this.isReady?this._addPlugin(e):(this.q.push(this._addPlugin.bind(this,e)),F())},e.prototype._addPlugin=function(e){return F(this.timeline.register(e,this.config))},e.prototype.remove=function(e){return this.isReady?this._removePlugin(e):(this.q.push(this._removePlugin.bind(this,e)),F())},e.prototype._removePlugin=function(e){return F(this.timeline.deregister(e,this.config))},e.prototype.dispatchWithCallback=function(e,t){if(!this.isReady)return t(eo(e,0,"Client not initialized"));this.process(e).then(t)},e.prototype.dispatch=function(e){return A(this,void 0,void 0,function(){var t=this;return N(this,function(n){return this.isReady?[2,this.process(e)]:[2,new Promise(function(n){t.dispatchQ.push(t.dispatchWithCallback.bind(t,e,n))})]})})},e.prototype.getOperationAppliedUserProperties=function(e){var t={};if(void 0===e)return t;var n={};return Object.keys(e).forEach(function(t){Object.values(u).includes(t)||(n[t]=e[t])}),ex.forEach(function(n){if(Object.keys(e).includes(n)){var r=e[n];switch(n){case u.CLEAR_ALL:Object.keys(t).forEach(function(e){delete t[e]});break;case u.UNSET:Object.keys(r).forEach(function(e){delete t[e]});break;case u.SET:Object.assign(t,r)}}}),Object.assign(t,n),t},e.prototype.process=function(e){return A(this,void 0,void 0,function(){var t,n,r;return N(this,function(i){switch(i.label){case 0:if(i.trys.push([0,2,,3]),this.config.optOut)return[2,eo(e,0,"Event skipped due to optOut config")];return e.event_type===c.IDENTIFY&&(t=this.getOperationAppliedUserProperties(e.user_properties),this.timeline.onIdentityChanged({userProperties:t})),[4,this.timeline.push(e)];case 1:return 200===(n=i.sent()).code?this.config.loggerProvider.log(n.message):100===n.code?this.config.loggerProvider.warn(n.message):this.config.loggerProvider.error(n.message),[2,n];case 2:return r=String(i.sent()),this.config.loggerProvider.error(r),[2,n=eo(e,0,r)];case 3:return[2]}})})},e.prototype.setOptOut=function(e){if(!this.isReady)return void this.q.push(this._setOptOut.bind(this,!!e));this._setOptOut(e)},e.prototype._setOptOut=function(e){this.config.optOut!==e&&(this.timeline.onOptOutChanged(e),this.config.optOut=!!e)},e.prototype.flush=function(){return F(this.timeline.flush())},e.prototype.plugin=function(e){var t=this.timeline.plugins.find(function(t){return t.name===e});return void 0===t?void this.config.loggerProvider.debug("Cannot find plugin with name ".concat(e)):t},e.prototype.plugins=function(e){return this.timeline.plugins.filter(function(t){return t instanceof e})},e}(),e_=function(e,t){return"boolean"==typeof e?e:(null==e?void 0:e[t])!==!1},eT=function(e){return e_(e,"attribution")},eP=function(e){return e_(e,"pageViews")},eR=function(e){return e_(e,"sessions")},eA=function(e){return"object"==typeof e&&(!0===e.networkTracking||"object"==typeof e.networkTracking)},eN=function(e){return"boolean"==typeof e?e:"object"==typeof e&&(!0===e.elementInteractions||"object"==typeof e.elementInteractions)},eM=function(e){if(eN(e.autocapture)&&"object"==typeof e.autocapture&&"object"==typeof e.autocapture.elementInteractions)return e.autocapture.elementInteractions},eL=function(e){if(eA(e.autocapture)){if("object"==typeof e.autocapture&&"object"==typeof e.autocapture.networkTracking)return e.autocapture.networkTracking;else if(e.networkTrackingOptions)return e.networkTrackingOptions}},eV=function(e){var t,n=function(){return!1},r=void 0,i=e.pageCounter;return eP(e.defaultTracking)&&(n=void 0,t=void 0,e.defaultTracking&&"object"==typeof e.defaultTracking&&e.defaultTracking.pageViews&&"object"==typeof e.defaultTracking.pageViews&&("trackOn"in e.defaultTracking.pageViews&&(n=e.defaultTracking.pageViews.trackOn),"trackHistoryChanges"in e.defaultTracking.pageViews&&(r=e.defaultTracking.pageViews.trackHistoryChanges),"eventType"in e.defaultTracking.pageViews&&e.defaultTracking.pageViews.eventType&&(t=e.defaultTracking.pageViews.eventType))),{trackOn:n,trackHistoryChanges:r,eventType:t,pageCounter:i}},eD=function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.name,o=r.args,a=r.resolve,s=e&&e[i];if("function"==typeof s){var l=s.apply(e,o);"function"==typeof a&&a(null==l?void 0:l.promise)}}return e},eF=function(e){return e&&void 0!==e._q},ej=function(){if("undefined"==typeof navigator)return"";var e,t,n,r,i=navigator.userLanguage;return null!=(r=null!=(n=null!=(t=null==(e=navigator.languages)?void 0:e[0])?t:navigator.language)?n:i)?r:""},ez="2.17.8",eB=function(){function e(){this.name="@amplitude/plugin-context-browser",this.type="before",this.library="".concat("amplitude-ts","/").concat(ez),"undefined"!=typeof navigator&&(this.userAgent=navigator.userAgent)}return e.prototype.setup=function(e){return this.config=e,Promise.resolve(void 0)},e.prototype.execute=function(e){var t,n;return A(this,void 0,void 0,function(){var r,i,o;return N(this,function(a){return r=new Date().getTime(),i=null!=(t=this.config.lastEventId)?t:-1,o=null!=(n=e.event_id)?n:i+1,this.config.lastEventId=o,e.time||(this.config.lastEventTime=r),[2,P(P(P(P(P(P(P(P({user_id:this.config.userId,device_id:this.config.deviceId,session_id:this.config.sessionId,time:r},this.config.appVersion&&{app_version:this.config.appVersion}),this.config.trackingOptions.platform&&{platform:"Web"}),this.config.trackingOptions.language&&{language:ej()}),this.config.trackingOptions.ipAddress&&{ip:"$remote"}),{insert_id:eh(),partner_id:this.config.partnerId,plan:this.config.plan}),this.config.ingestionMetadata&&{ingestion_metadata:{source_name:this.config.ingestionMetadata.sourceName,source_version:this.config.ingestionMetadata.sourceVersion}}),e),{event_id:o,library:this.library,user_agent:this.userAgent})]})})},e}(),eU=function(){function e(){this.memoryStorage=new Map}return e.prototype.isEnabled=function(){return A(this,void 0,void 0,function(){return N(this,function(e){return[2,!0]})})},e.prototype.get=function(e){return A(this,void 0,void 0,function(){return N(this,function(t){return[2,this.memoryStorage.get(e)]})})},e.prototype.getRaw=function(e){return A(this,void 0,void 0,function(){var t;return N(this,function(n){switch(n.label){case 0:return[4,this.get(e)];case 1:return[2,(t=n.sent())?JSON.stringify(t):void 0]}})})},e.prototype.set=function(e,t){return A(this,void 0,void 0,function(){return N(this,function(n){return this.memoryStorage.set(e,t),[2]})})},e.prototype.remove=function(e){return A(this,void 0,void 0,function(){return N(this,function(t){return this.memoryStorage.delete(e),[2]})})},e.prototype.reset=function(){return A(this,void 0,void 0,function(){return N(this,function(e){return this.memoryStorage.clear(),[2]})})},e}(),eW=function(e,t,n){return void 0===t&&(t=""),void 0===n&&(n=10),["AMP",t,e.substring(0,n)].filter(Boolean).join("_")},eH=function(){function e(e){this.options=P({},e)}return e.prototype.isEnabled=function(){return A(this,void 0,void 0,function(){var t,n;return N(this,function(r){switch(r.label){case 0:if(!j())return[2,!1];e.testValue=String(Date.now()),t=new e(this.options),n="AMP_TEST",r.label=1;case 1:return r.trys.push([1,4,5,7]),[4,t.set(n,e.testValue)];case 2:return r.sent(),[4,t.get(n)];case 3:return[2,r.sent()===e.testValue];case 4:return r.sent(),[2,!1];case 5:return[4,t.remove(n)];case 6:return r.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(e){var t;return A(this,void 0,void 0,function(){var n,r;return N(this,function(i){switch(i.label){case 0:return[4,this.getRaw(e)];case 1:if(!(n=i.sent()))return[2,void 0];try{if(r=null!=(t=eq(n))?t:e$(n),void 0===r)return console.error("Amplitude Logger [Error]: Failed to decode cookie value for key: ".concat(e,", value: ").concat(n)),[2,void 0];return[2,JSON.parse(r)]}catch(t){return console.error("Amplitude Logger [Error]: Failed to parse cookie value for key: ".concat(e,", value: ").concat(n)),[2,void 0]}}})})},e.prototype.getRaw=function(e){var t,n;return A(this,void 0,void 0,function(){var r,i;return N(this,function(o){return(i=(null!=(n=null==(t=null==(r=j())?void 0:r.document)?void 0:t.cookie.split("; "))?n:[]).find(function(t){return 0===t.indexOf(e+"=")}))?[2,i.substring(e.length+1)]:[2,void 0]})})},e.prototype.set=function(e,t){var n;return A(this,void 0,void 0,function(){var r,i,o,a,s,l,u;return N(this,function(c){try{r=null!=(n=this.options.expirationDays)?n:0,i=null!==t?r:-1,o=void 0,i&&((a=new Date).setTime(a.getTime()+24*i*36e5),o=a),s="".concat(e,"=").concat(btoa(encodeURIComponent(JSON.stringify(t)))),o&&(s+="; expires=".concat(o.toUTCString())),s+="; path=/",this.options.domain&&(s+="; domain=".concat(this.options.domain)),this.options.secure&&(s+="; Secure"),this.options.sameSite&&(s+="; SameSite=".concat(this.options.sameSite)),(l=j())&&(l.document.cookie=s)}catch(t){u=t instanceof Error?t.message:String(t),console.error("Amplitude Logger [Error]: Failed to set cookie for key: ".concat(e,". Error: ").concat(u))}return[2]})})},e.prototype.remove=function(e){return A(this,void 0,void 0,function(){return N(this,function(t){switch(t.label){case 0:return[4,this.set(e,null)];case 1:return t.sent(),[2]}})})},e.prototype.reset=function(){return A(this,void 0,void 0,function(){return N(this,function(e){return[2]})})},e}(),eq=function(e){try{return decodeURIComponent(atob(e))}catch(e){return}},e$=function(e){try{return decodeURIComponent(atob(decodeURIComponent(e)))}catch(e){return}},eG=function(){function e(){}return e.prototype.send=function(e,t){return Promise.resolve(null)},e.prototype.buildResponse=function(e){if("object"!=typeof e)return null;var t,n,r,i,a,s,l,u,c,d,f,h,p,g,v,m,b,y,x,w,S,E,k=e.code||0,C=this.buildStatus(k);switch(C){case o.Success:return{status:C,statusCode:k,body:{eventsIngested:null!=(t=e.events_ingested)?t:0,payloadSizeBytes:null!=(n=e.payload_size_bytes)?n:0,serverUploadTime:null!=(r=e.server_upload_time)?r:0}};case o.Invalid:return{status:C,statusCode:k,body:{error:null!=(i=e.error)?i:"",missingField:null!=(a=e.missing_field)?a:"",eventsWithInvalidFields:null!=(s=e.events_with_invalid_fields)?s:{},eventsWithMissingFields:null!=(l=e.events_with_missing_fields)?l:{},eventsWithInvalidIdLengths:null!=(u=e.events_with_invalid_id_lengths)?u:{},epsThreshold:null!=(c=e.eps_threshold)?c:0,exceededDailyQuotaDevices:null!=(d=e.exceeded_daily_quota_devices)?d:{},silencedDevices:null!=(f=e.silenced_devices)?f:[],silencedEvents:null!=(h=e.silenced_events)?h:[],throttledDevices:null!=(p=e.throttled_devices)?p:{},throttledEvents:null!=(g=e.throttled_events)?g:[]}};case o.PayloadTooLarge:return{status:C,statusCode:k,body:{error:null!=(v=e.error)?v:""}};case o.RateLimit:return{status:C,statusCode:k,body:{error:null!=(m=e.error)?m:"",epsThreshold:null!=(b=e.eps_threshold)?b:0,throttledDevices:null!=(y=e.throttled_devices)?y:{},throttledUsers:null!=(x=e.throttled_users)?x:{},exceededDailyQuotaDevices:null!=(w=e.exceeded_daily_quota_devices)?w:{},exceededDailyQuotaUsers:null!=(S=e.exceeded_daily_quota_users)?S:{},throttledEvents:null!=(E=e.throttled_events)?E:[]}};case o.Timeout:default:return{status:C,statusCode:k}}},e.prototype.buildStatus=function(e){return e>=200&&e<300?o.Success:429===e?o.RateLimit:413===e?o.PayloadTooLarge:408===e?o.Timeout:e>=400&&e<500?o.Invalid:e>=500?o.Failed:o.Unknown},e}(),eK=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return T(t,e),t.prototype.send=function(e,t){return A(this,void 0,void 0,function(){var n,r;return N(this,function(i){switch(i.label){case 0:if("undefined"==typeof fetch)throw Error("FetchTransport is not supported");return[4,fetch(e,{headers:{"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify(t),method:"POST"})];case 1:return[4,(n=i.sent()).text()];case 2:r=i.sent();try{return[2,this.buildResponse(JSON.parse(r))]}catch(e){return[2,this.buildResponse({code:n.status})]}}})})},t}(eG),eY=function(){function e(e){this.storage=e}return e.prototype.isEnabled=function(){return A(this,void 0,void 0,function(){var t,n,r;return N(this,function(i){switch(i.label){case 0:if(!this.storage)return[2,!1];t=String(Date.now()),n=new e(this.storage),r="AMP_TEST",i.label=1;case 1:return i.trys.push([1,4,5,7]),[4,n.set(r,t)];case 2:return i.sent(),[4,n.get(r)];case 3:return[2,i.sent()===t];case 4:return i.sent(),[2,!1];case 5:return[4,n.remove(r)];case 6:return i.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(e){return A(this,void 0,void 0,function(){var t;return N(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.getRaw(e)];case 1:if(!(t=n.sent()))return[2,void 0];return[2,JSON.parse(t)];case 2:return n.sent(),console.error("[Amplitude] Error: Could not get value from storage"),[2,void 0];case 3:return[2]}})})},e.prototype.getRaw=function(e){var t;return A(this,void 0,void 0,function(){return N(this,function(n){return[2,(null==(t=this.storage)?void 0:t.getItem(e))||void 0]})})},e.prototype.set=function(e,t){var n;return A(this,void 0,void 0,function(){return N(this,function(r){try{null==(n=this.storage)||n.setItem(e,JSON.stringify(t))}catch(e){}return[2]})})},e.prototype.remove=function(e){var t;return A(this,void 0,void 0,function(){return N(this,function(n){try{null==(t=this.storage)||t.removeItem(e)}catch(e){}return[2]})})},e.prototype.reset=function(){var e;return A(this,void 0,void 0,function(){return N(this,function(t){try{null==(e=this.storage)||e.clear()}catch(e){}return[2]})})},e}(),eX=function(e){function t(t){var n,r,i,o=this;try{i=null==(n=j())?void 0:n.localStorage}catch(e){null==(r=null==t?void 0:t.loggerProvider)||r.debug("Failed to access localStorage. error=".concat(JSON.stringify(e))),i=void 0}return(o=e.call(this,i)||this).loggerProvider=null==t?void 0:t.loggerProvider,o}return T(t,e),t.prototype.set=function(t,n){var r;return A(this,void 0,void 0,function(){var i;return N(this,function(o){switch(o.label){case 0:if(!(Array.isArray(n)&&n.length>1e3))return[3,2];return i=n.length-1e3,[4,e.prototype.set.call(this,t,n.slice(0,1e3))];case 1:return o.sent(),null==(r=this.loggerProvider)||r.error("Failed to save ".concat(i," events because the queue length exceeded ").concat(1e3,".")),[3,4];case 2:return[4,e.prototype.set.call(this,t,n)];case 3:o.sent(),o.label=4;case 4:return[2]}})})},t}(eY),eQ=function(e){function t(){var t;return e.call(this,null==(t=j())?void 0:t.sessionStorage)||this}return T(t,e),t}(eY),eJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={done:4},t}return T(t,e),t.prototype.send=function(e,t){return A(this,void 0,void 0,function(){var n=this;return N(this,function(r){return[2,new Promise(function(r,i){"undefined"==typeof XMLHttpRequest&&i(Error("XHRTransport is not supported."));var o=new XMLHttpRequest;o.open("POST",e,!0),o.onreadystatechange=function(){if(o.readyState===n.state.done){var e=o.responseText;try{r(n.buildResponse(JSON.parse(e)))}catch(e){r(n.buildResponse({code:o.status}))}}},o.setRequestHeader("Content-Type","application/json"),o.setRequestHeader("Accept","*/*"),o.send(JSON.stringify(t))})]})})},t}(eG),eZ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return T(t,e),t.prototype.send=function(e,t){return A(this,void 0,void 0,function(){var n=this;return N(this,function(r){return[2,new Promise(function(r,i){var o=j();if(!(null==o?void 0:o.navigator.sendBeacon))throw Error("SendBeaconTransport is not supported");try{var a=JSON.stringify(t);if(o.navigator.sendBeacon(e,JSON.stringify(t)))return r(n.buildResponse({code:200,events_ingested:t.events.length,payload_size_bytes:a.length,server_upload_time:Date.now()}));return r(n.buildResponse({code:500}))}catch(e){i(e)}})]})})},t}(eG),e0=function(e){var t=parseInt(e,32);if(!isNaN(t))return t},e1=function(e){if(atob&&escape&&e)try{return decodeURIComponent(escape(atob(e)))}catch(e){return}},e2="[Amplitude]",e5="".concat(e2," Form Started"),e3="".concat(e2," Form Submitted"),e4="".concat(e2," File Downloaded"),e6="session_start",e8="session_end",e7="".concat(e2," File Extension"),e9="".concat(e2," File Name"),te="".concat(e2," Link ID"),tt="".concat(e2," Link Text"),tn="".concat(e2," Link URL"),tr="".concat(e2," Form ID"),ti="".concat(e2," Form Name"),to="".concat(e2," Form Destination"),ta="cookie",ts=function(e){function t(t,n,r,i,o,s,l,u,c,d,f,h,p,g,v,m,b,y,x,w,S,E,k,C,O,I,_,T,P,R,A,N,M,L,V){void 0===r&&(r=new eU),void 0===i&&(i={domain:"",expiration:365,sameSite:"Lax",secure:!1,upgrade:!0}),void 0===u&&(u=1e3),void 0===c&&(c=5),void 0===d&&(d=30),void 0===f&&(f=ta),void 0===m&&(m=new es),void 0===b&&(b=a.Warn),void 0===x&&(x=!1),void 0===w&&(w=!1),void 0===k&&(k=""),void 0===C&&(C="US"),void 0===I&&(I=18e5),void 0===_&&(_=new eX({loggerProvider:m})),void 0===T&&(T={ipAddress:!0,language:!0,platform:!0}),void 0===P&&(P="fetch"),void 0===R&&(R=!1),void 0===A&&(A=!0);var D=e.call(this,{apiKey:t,storageProvider:_,transportProvider:tu(P)})||this;return D.apiKey=t,D.appVersion=n,D.cookieOptions=i,D.defaultTracking=o,D.autocapture=s,D.flushIntervalMillis=u,D.flushMaxRetries=c,D.flushQueueSize=d,D.identityStorage=f,D.ingestionMetadata=h,D.instanceName=p,D.loggerProvider=m,D.logLevel=b,D.minIdLength=y,D.offline=x,D.partnerId=S,D.plan=E,D.serverUrl=k,D.serverZone=C,D.sessionTimeout=I,D.storageProvider=_,D.trackingOptions=T,D.transport=P,D.useBatch=R,D.fetchRemoteConfig=A,D.networkTrackingOptions=V,D.version=ez,D._optOut=!1,D._cookieStorage=r,D.deviceId=l,D.lastEventId=g,D.lastEventTime=v,D.optOut=w,D.sessionId=O,D.pageCounter=M,D.userId=N,D.debugLogsEnabled=L,D.loggerProvider.enable(L?a.Debug:D.logLevel),D.networkTrackingOptions=V,D}return T(t,e),Object.defineProperty(t.prototype,"cookieStorage",{get:function(){return this._cookieStorage},set:function(e){this._cookieStorage!==e&&(this._cookieStorage=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceId",{get:function(){return this._deviceId},set:function(e){this._deviceId!==e&&(this._deviceId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userId",{get:function(){return this._userId},set:function(e){this._userId!==e&&(this._userId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sessionId",{get:function(){return this._sessionId},set:function(e){this._sessionId!==e&&(this._sessionId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut!==e&&(this._optOut=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventTime",{get:function(){return this._lastEventTime},set:function(e){this._lastEventTime!==e&&(this._lastEventTime=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventId",{get:function(){return this._lastEventId},set:function(e){this._lastEventId!==e&&(this._lastEventId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCounter",{get:function(){return this._pageCounter},set:function(e){this._pageCounter!==e&&(this._pageCounter=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"debugLogsEnabled",{set:function(e){this._debugLogsEnabled!==e&&(this._debugLogsEnabled=e,this.updateStorage())},enumerable:!1,configurable:!0}),t.prototype.updateStorage=function(){var e={deviceId:this._deviceId,userId:this._userId,sessionId:this._sessionId,optOut:this._optOut,lastEventTime:this._lastEventTime,lastEventId:this._lastEventId,pageCounter:this._pageCounter,debugLogsEnabled:this._debugLogsEnabled};this.cookieStorage.set(eW(this.apiKey),e)},t}(eu),tl=function(e,t){switch(void 0===e&&(e=ta),void 0===t&&(t={}),e){case"localStorage":return new eX;case"sessionStorage":return new eQ;case"none":return new eU;default:return new eH(P(P({},t),{expirationDays:t.expiration}))}},tu=function(e){return"xhr"===e?new eJ:"beacon"===e?new eZ:new eK},tc=function(){var e="ampIntegrationContext";return"undefined"!=typeof globalThis&&void 0!==globalThis[e]?globalThis[e]:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==n.g?n.g:void 0},td=function(){var e,t=tc();return(null==(e=null==t?void 0:t.location)?void 0:e.search)?t.location.search.substring(1).split("&").filter(Boolean).reduce(function(e,t){var n=t.split("=",2),r=tf(n[0]),i=tf(n[1]);return i&&(e[r]=i),e},{}):{}},tf=function(e){void 0===e&&(e="");try{return decodeURIComponent(e)}catch(e){return""}},th="dclid",tp="fbclid",tg="gbraid",tv="gclid",tm="ko_click_id",tb="li_fat_id",ty="msclkid",tx="rtd_cid",tw="ttclid",tS="twclid",tE="wbraid",tk={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rtd_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0},tC=function(){function e(){}return e.prototype.parse=function(){return A(this,void 0,void 0,function(){return N(this,function(e){return[2,P(P(P(P({},tk),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},e.prototype.getUtmParam=function(){var e=td();return{utm_campaign:e.utm_campaign,utm_content:e.utm_content,utm_id:e.utm_id,utm_medium:e.utm_medium,utm_source:e.utm_source,utm_term:e.utm_term}},e.prototype.getReferrer=function(){var e,t,n={referrer:void 0,referring_domain:void 0};try{n.referrer=document.referrer||void 0,n.referring_domain=null!=(t=null==(e=n.referrer)?void 0:e.split("/")[2])?t:void 0}catch(e){}return n},e.prototype.getClickIds=function(){var e,t=td();return(e={})[th]=t[th],e[tp]=t[tp],e[tg]=t[tg],e[tv]=t[tv],e[tm]=t[tm],e[tb]=t[tb],e[ty]=t[ty],e[tx]=t[tx],e[tw]=t[tw],e[tS]=t[tS],e[tE]=t[tE],e},e}();!function(e){e.SET="$set",e.SET_ONCE="$setOnce",e.ADD="$add",e.APPEND="$append",e.PREPEND="$prepend",e.REMOVE="$remove",e.PREINSERT="$preInsert",e.POSTINSERT="$postInsert",e.UNSET="$unset",e.CLEAR_ALL="$clearAll"}(d||(d={})),function(e){e.REVENUE_PRODUCT_ID="$productId",e.REVENUE_QUANTITY="$quantity",e.REVENUE_PRICE="$price",e.REVENUE_TYPE="$revenueType",e.REVENUE_CURRENCY="$currency",e.REVENUE="$revenue"}(f||(f={})),function(e){e.IDENTIFY="$identify",e.GROUP_IDENTIFY="$groupidentify",e.REVENUE="revenue_amount"}(h||(h={}));var tO=function(e){var t={};for(var n in e){var r=e[n];r&&(t[n]=r)}return t},tI=function(e){void 0===e&&(e={});var t,n,r=tc(),i=void 0,o=!1,a=e.trackOn,s=e.trackHistoryChanges,l=e.eventType,u=void 0===l?"[Amplitude] Page Viewed":l,c=function(e){var t=e;try{t=decodeURI(e)}catch(e){null==i||i.error("Malformed URI sequence: ",e)}return t},d=function(){return A(void 0,void 0,void 0,function(){var e,t,n;return N(this,function(r){switch(r.label){case 0:return e=c("undefined"!=typeof location&&location.href||""),n={event_type:u},t=[{}],[4,t_()];case 1:return[2,(n.event_properties=P.apply(void 0,[P.apply(void 0,t.concat([r.sent()])),{"[Amplitude] Page Domain":"undefined"!=typeof location&&location.hostname||"","[Amplitude] Page Location":e,"[Amplitude] Page Path":"undefined"!=typeof location&&c(location.pathname)||"","[Amplitude] Page Title":"undefined"!=typeof document&&document.title||"","[Amplitude] Page URL":e.split("?")[0]}]),n)]}})})},f=function(){return void 0===a||"function"==typeof a&&a()},h="undefined"!=typeof location?location.href:null,p=function(){return A(void 0,void 0,void 0,function(){var e,n,r,o;return N(this,function(a){switch(a.label){case 0:if(n=tP(s,e=location.href,h||"")&&f(),h=e,!n)return[3,4];if(null==i||i.log("Tracking page view event"),null!=t)return[3,1];return[3,3];case 1:return o=(r=t).track,[4,d()];case 2:o.apply(r,[a.sent()]),a.label=3;case 3:a.label=4;case 4:return[2]}})})},g=function(){p()};return{name:"@amplitude/plugin-page-view-tracking-browser",type:"enrichment",setup:function(e,a){return A(void 0,void 0,void 0,function(){var s,l;return N(this,function(u){switch(u.label){case 0:if(t=a,n=e,(i=e.loggerProvider).log("Installing @amplitude/plugin-page-view-tracking-browser"),o=!0,r&&(r.addEventListener("popstate",g),r.history.pushState=new Proxy(r.history.pushState,{apply:function(e,t,n){var r=L(n,3),i=r[0],a=r[1],s=r[2];e.apply(t,[i,a,s]),o&&p()}})),!f())return[3,2];return i.log("Tracking page view event"),l=(s=t).track,[4,d()];case 1:l.apply(s,[u.sent()]),u.label=2;case 2:return[2]}})})},execute:function(e){return A(void 0,void 0,void 0,function(){var t;return N(this,function(r){switch(r.label){case 0:if(!("attribution"===a&&tT(e)))return[3,2];return null==i||i.log("Enriching campaign event to page view event with campaign parameters"),[4,d()];case 1:e.event_type=(t=r.sent()).event_type,e.event_properties=P(P({},e.event_properties),t.event_properties),r.label=2;case 2:return n&&e.event_type===u&&(n.pageCounter=n.pageCounter?n.pageCounter+1:1,e.event_properties=P(P({},e.event_properties),{"[Amplitude] Page Counter":n.pageCounter})),[2,e]}})})},teardown:function(){return A(void 0,void 0,void 0,function(){return N(this,function(e){return r&&(r.removeEventListener("popstate",g),o=!1),[2]})})}}},t_=function(){return A(void 0,void 0,void 0,function(){var e;return N(this,function(t){switch(t.label){case 0:return e=tO,[4,new tC().parse()];case 1:return[2,e.apply(void 0,[t.sent()])]}})})},tT=function(e){if("$identify"===e.event_type&&e.user_properties){var t=e.user_properties,n=t[d.SET]||{},r=t[d.UNSET]||{},i=V(V([],L(Object.keys(n)),!1),L(Object.keys(r)),!1);return Object.keys(tk).every(function(e){return i.includes(e)})}return!1},tP=function(e,t,n){if("pathOnly"!==e)return t!==n;if(""==n)return!0;var r=new URL(t),i=new URL(n);return r.origin+r.pathname!==i.origin+i.pathname},tR=function(){var e,t=[],n=function(e,n,r){e.addEventListener(n,r),t.push({element:e,type:n,handler:r})},r=function(){t.forEach(function(e){var t=e.element,n=e.type,r=e.handler;null==t||t.removeEventListener(n,r)}),t=[]};return{name:"@amplitude/plugin-form-interaction-tracking-browser",type:"enrichment",setup:function(t,r){return A(void 0,void 0,void 0,function(){var i,o;return N(this,function(a){return i=function(){if(!r)return void t.loggerProvider.warn("Form interaction tracking requires a later version of @amplitude/analytics-browser. Form interaction events are not tracked.");if("undefined"!=typeof document){var i=function(e){var t=!1;n(e,"change",function(){var n,i=tN(e);t||r.track(e5,((n={})[tr]=tA(e.id),n[ti]=tA(e.name),n[to]=i,n)),t=!0}),n(e,"submit",function(){var n,i,o=tN(e);t||r.track(e5,((n={})[tr]=tA(e.id),n[ti]=tA(e.name),n[to]=o,n)),r.track(e3,((i={})[tr]=tA(e.id),i[ti]=tA(e.name),i[to]=o,i)),t=!1})};Array.from(document.getElementsByTagName("form")).forEach(i),"undefined"!=typeof MutationObserver&&(e=new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEach(function(e){"FORM"===e.nodeName&&i(e),"querySelectorAll"in e&&"function"==typeof e.querySelectorAll&&Array.from(e.querySelectorAll("form")).map(i)})})})).observe(document.body,{subtree:!0,childList:!0})}},"complete"===document.readyState?i():(o=j())?o.addEventListener("load",i):t.loggerProvider.debug("Form interaction tracking is not installed because global is undefined."),[2]})})},execute:function(e){return A(void 0,void 0,void 0,function(){return N(this,function(t){return[2,e]})})},teardown:function(){return A(void 0,void 0,void 0,function(){return N(this,function(t){return null==e||e.disconnect(),r(),[2]})})}}},tA=function(e){if("string"==typeof e)return e},tN=function(e){var t=e.getAttribute("action");try{t=new URL(encodeURI(null!=t?t:""),window.location.href).href}catch(e){}return t},tM=function(){var e,t=[],n=function(e,n,r){e.addEventListener(n,r),t.push({element:e,type:n,handler:r})},r=function(){t.forEach(function(e){var t=e.element,n=e.type,r=e.handler;null==t||t.removeEventListener(n,r)}),t=[]};return{name:"@amplitude/plugin-file-download-tracking-browser",type:"enrichment",setup:function(t,r){return A(void 0,void 0,void 0,function(){var i,o;return N(this,function(a){return i=function(){if(!r)return void t.loggerProvider.warn("File download tracking requires a later version of @amplitude/analytics-browser. File download events are not tracked.");if("undefined"!=typeof document){var i=function(e){try{t=new URL(e.href,window.location.href)}catch(e){return}var t,i=o.exec(t.href),a=null==i?void 0:i[1];a&&n(e,"click",function(){var n;a&&r.track(e4,((n={})[e7]=a,n[e9]=t.pathname,n[te]=e.id,n[tt]=e.text,n[tn]=e.href,n))})},o=/\.(pdf|xlsx?|docx?|txt|rtf|csv|exe|key|pp(s|t|tx)|7z|pkg|rar|gz|zip|avi|mov|mp4|mpe?g|wmv|midi?|mp3|wav|wma)(\?.+)?$/;Array.from(document.getElementsByTagName("a")).forEach(i),"undefined"!=typeof MutationObserver&&(e=new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEach(function(e){"A"===e.nodeName&&i(e),"querySelectorAll"in e&&"function"==typeof e.querySelectorAll&&Array.from(e.querySelectorAll("a")).map(i)})})})).observe(document.body,{subtree:!0,childList:!0})}},"complete"===document.readyState?i():(o=j())?o.addEventListener("load",i):t.loggerProvider.debug("File download tracking is not installed because global is undefined."),[2]})})},execute:function(e){return A(void 0,void 0,void 0,function(){return N(this,function(t){return[2,e]})})},teardown:function(){return A(void 0,void 0,void 0,function(){return N(this,function(t){return null==e||e.disconnect(),r(),[2]})})}}},tL=!1,tV=function(e){tL||void 0!==e.defaultTracking||(e.loggerProvider.warn("`options.defaultTracking` is set to undefined. This implicitly configures your Amplitude instance to track Page Views, Sessions, File Downloads, and Form Interactions. You can suppress this warning by explicitly setting a value to `options.defaultTracking`. The value must either be a boolean, to enable and disable all default events, or an object, for advanced configuration. For example:\n\namplitude.init(<YOUR_API_KEY>, {\n defaultTracking: true,\n});\n\nVisit https://www.docs.developers.amplitude.com/data/sdks/browser-2/#tracking-default-events for more details."),tL=!0)},tD=function(){var e=j(),t=[],n=function(n,r){e&&(e.addEventListener(n,r),t.push({type:n,handler:r}))},r=function(){t.forEach(function(t){var n=t.type,r=t.handler;e&&e.removeEventListener(n,r)}),t=[]};return{name:"@amplitude/plugin-network-checker-browser",type:"before",setup:function(e,t){return A(void 0,void 0,void 0,function(){return N(this,function(r){return"undefined"==typeof navigator?(e.loggerProvider.debug("Network connectivity checker plugin is disabled because navigator is not available."),e.offline=!1):(e.offline=!navigator.onLine,n("online",function(){e.loggerProvider.debug("Network connectivity changed to online."),e.offline=!1,setTimeout(function(){t.flush()},e.flushIntervalMillis)}),n("offline",function(){e.loggerProvider.debug("Network connectivity changed to offline."),e.offline=!0})),[2]})})},teardown:function(){return A(void 0,void 0,void 0,function(){return N(this,function(e){return r(),[2]})})}}};!function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.PayloadTooLarge="payload_too_large",e.Invalid="invalid",e.Failed="failed",e.Timeout="Timeout",e.SystemError="SystemError"}(p||(p={})),function(e){e.US="US",e.EU="EU"}(g||(g={}));var tF="Remote config fetch rejected due to timeout after 5 seconds",tj="Unexpected error occurred",tz=function(){function e(e){var t=e.localConfig,n=e.configKeys,r=this;this.retryTimeout=1e3,this.attempts=0,this.sessionTargetingMatch=!1,this.metrics={},this.getRemoteConfig=function(e,t,n){return A(r,void 0,void 0,function(){var r,i,o;return N(this,function(a){switch(a.label){case 0:return r=Date.now(),[4,this.fetchWithTimeout(n)];case 1:if((i=a.sent())&&(o=i.configs&&i.configs[e]))return this.metrics.fetchTimeAPISuccess=Date.now()-r,[2,o[t]];return this.metrics.fetchTimeAPIFail=Date.now()-r,[2,void 0]}})})},this.fetchWithTimeout=function(e){return A(r,void 0,void 0,function(){var t,n,r;return N(this,function(i){switch(i.label){case 0:return t=new AbortController,n=setTimeout(function(){return t.abort()},5e3),[4,this.fetchRemoteConfig(t.signal,e)];case 1:return r=i.sent(),clearTimeout(n),[2,r]}})})},this.fetchRemoteConfig=function(e,t){return A(r,void 0,void 0,function(){var n,r,i,o,a,s,l,u,c,d,f;return N(this,function(h){switch(h.label){case 0:if(t===this.lastFetchedSessionId&&this.attempts>=this.localConfig.flushMaxRetries)return[2,this.completeRequest({err:"Remote config fetch rejected due to exceeded retry count"})];if(e.aborted)return[2,this.completeRequest({err:tF})];t!==this.lastFetchedSessionId&&(this.lastFetchedSessionId=t,this.attempts=0);h.label=1;case 1:h.trys.push([1,3,,4]),n=new URLSearchParams({api_key:this.localConfig.apiKey});try{for(i=(r=M(this.configKeys)).next();!i.done;i=r.next())o=i.value,n.append("config_keys",o)}catch(e){c={error:e}}finally{try{i&&!i.done&&(d=r.return)&&d.call(r)}finally{if(c)throw c.error}}return t&&n.set("session_id",String(t)),a={headers:{Accept:"*/*"},method:"GET"},s="".concat(this.getServerUrl(),"?").concat(n.toString()),this.attempts+=1,[4,fetch(s,P(P({},a),{signal:e}))];case 2:if(null===(l=h.sent()))return[2,this.completeRequest({err:tj})];switch(new eG().buildStatus(l.status)){case p.Success:return this.attempts=0,[2,this.parseAndStoreConfig(l)];case p.Failed:return[2,this.retryFetch(e,t)];default:return[2,this.completeRequest({err:"Network error occurred, remote config fetch failed"})]}case 3:if(u=h.sent(),e.aborted)return[2,this.completeRequest({err:tF})];return[2,this.completeRequest({err:null!=(f=u.message)?f:tj})];case 4:return[2]}})})},this.retryFetch=function(e,t){return A(r,void 0,void 0,function(){var n=this;return N(this,function(r){switch(r.label){case 0:return[4,new Promise(function(e){return setTimeout(e,n.attempts*n.retryTimeout)})];case 1:return r.sent(),[2,this.fetchRemoteConfig(e,t)]}})})},this.parseAndStoreConfig=function(e){return A(r,void 0,void 0,function(){var t;return N(this,function(n){switch(n.label){case 0:return[4,e.json()];case 1:return t=n.sent(),this.completeRequest({success:"Remote config successfully fetched"}),[2,t]}})})},this.localConfig=t,this.configKeys=n}return e.prototype.getServerUrl=function(){return this.localConfig.serverZone===g.STAGING?"https://sr-client-cfg.stag2.amplitude.com/config":this.localConfig.serverZone===g.EU?"https://sr-client-cfg.eu.amplitude.com/config":"https://sr-client-cfg.amplitude.com/config"},e.prototype.completeRequest=function(e){var t=e.err,n=e.success;if(t)throw Error(t);n&&this.localConfig.loggerProvider.log(n)},e}(),tB=function(e){var t=e.localConfig,n=e.configKeys;return A(void 0,void 0,void 0,function(){return N(this,function(e){return[2,new tz({localConfig:t,configKeys:n})]})})},tU=function(){function e(e){this.config=e,this.config.loggerProvider.debug("Local configuration before merging with remote config",JSON.stringify(this.config,null,2))}return e.prototype.initialize=function(){return A(this,void 0,void 0,function(){var e;return N(this,function(t){switch(t.label){case 0:return e=this,[4,tB({localConfig:this.config,configKeys:["analyticsSDK"]})];case 1:return e.remoteConfigFetch=t.sent(),[2]}})})},e.prototype.generateJoinedConfig=function(){var e,t,n,r,i;return A(this,void 0,void 0,function(){var o,a,s,l,u,c,d,f,h,p,g,v;return N(this,function(m){switch(m.label){case 0:if(m.trys.push([0,3,,4]),!(a=this.remoteConfigFetch))return[3,2];return[4,this.remoteConfigFetch.getRemoteConfig("analyticsSDK","browserSDK",this.config.sessionId)];case 1:a=m.sent(),m.label=2;case 2:if(o=a,this.config.loggerProvider.debug("Remote configuration:",JSON.stringify(o,null,2)),o&&"autocapture"in o){if("boolean"==typeof o.autocapture&&(this.config.autocapture=o.autocapture),"object"==typeof o.autocapture){if(s=P({},o.autocapture),void 0===this.config.autocapture&&(this.config.autocapture=o.autocapture),"object"==typeof o.autocapture.elementInteractions&&(null==(e=o.autocapture.elementInteractions.pageUrlAllowlistRegex)?void 0:e.length)){s.elementInteractions=P({},o.autocapture.elementInteractions),u=null!=(t=(l=s.elementInteractions).pageUrlAllowlist)?t:[],c=[];try{for(f=(d=M(o.autocapture.elementInteractions.pageUrlAllowlistRegex)).next();!f.done;f=d.next()){h=f.value;try{c.push(new RegExp(h))}catch(e){this.config.loggerProvider.warn("Invalid regex pattern: ".concat(h),e)}}}catch(e){g={error:e}}finally{try{f&&!f.done&&(v=d.return)&&v.call(d)}finally{if(g)throw g.error}}l.pageUrlAllowlist=u.concat(c),delete l.pageUrlAllowlistRegex}"boolean"==typeof this.config.autocapture&&(this.config.autocapture=P({attribution:this.config.autocapture,fileDownloads:this.config.autocapture,formInteractions:this.config.autocapture,pageViews:this.config.autocapture,sessions:this.config.autocapture,elementInteractions:this.config.autocapture},s)),"object"==typeof this.config.autocapture&&(this.config.autocapture=P(P({},this.config.autocapture),s))}this.config.defaultTracking=this.config.autocapture}return this.config.loggerProvider.debug("Joined configuration: ",JSON.stringify(this.config,null,2)),null!=(i=this.config).requestMetadata||(i.requestMetadata=new ed),(null==(n=this.remoteConfigFetch)?void 0:n.metrics.fetchTimeAPISuccess)&&this.config.requestMetadata.recordHistogram("remote_config_fetch_time_API_success",this.remoteConfigFetch.metrics.fetchTimeAPISuccess),(null==(r=this.remoteConfigFetch)?void 0:r.metrics.fetchTimeAPIFail)&&this.config.requestMetadata.recordHistogram("remote_config_fetch_time_API_fail",this.remoteConfigFetch.metrics.fetchTimeAPIFail),[3,4];case 3:return p=m.sent(),this.config.loggerProvider.error("Failed to fetch remote configuration because of error: ",p),[3,4];case 4:return[2,this.config]}})})},e}(),tW=["a","button","input","select","textarea","label","video","audio",'[contenteditable="true" i]',"[data-amp-default-track]",".amp-default-track"],tH=["div","span","h1","h2","h3","h4","h5","h6"],tq="[Amplitude] Element Clicked",t$="[Amplitude] Element Tag",tG="[Amplitude] Element Text",tK="[Amplitude] Page URL",tY="https://app.amplitude.com",tX={US:tY,EU:"https://app.eu.amplitude.com",STAGING:"https://apps.stag2.amplitude.com"},tQ=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function tJ(e){return"function"==typeof e}function tZ(e){return tJ(null==e?void 0:e.then)}function t0(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var t1=t0(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}});function t2(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var t5=function(){var e;function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e,t,n,r,i,o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=M(o),s=a.next();!s.done;s=a.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this);var l=this.initialTeardown;if(tJ(l))try{l()}catch(e){i=e instanceof t1?e.errors:[e]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var c=M(u),d=c.next();!d.done;d=c.next()){var f=d.value;try{t6(f)}catch(e){i=null!=i?i:[],e instanceof t1?i=V(V([],L(i)),L(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}if(i)throw new t1(i)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)t6(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(n=this._finalizers)?n:[]).push(e)}},t.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},t.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},t.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&t2(t,e)},t.prototype.remove=function(e){var n=this._finalizers;n&&t2(n,e),e instanceof t&&e._removeParent(this)},(e=new t).closed=!0,t.EMPTY=e,t}(),t3=t5.EMPTY;function t4(e){return e instanceof t5||e&&"closed"in e&&tJ(e.remove)&&tJ(e.add)&&tJ(e.unsubscribe)}function t6(e){tJ(e)?e():e.unsubscribe()}var t8={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},t7={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=t7.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,V([e,t],L(n))):setTimeout.apply(void 0,V([e,t],L(n)))},clearTimeout:function(e){var t=t7.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function t9(e){t7.setTimeout(function(){var t=t8.onUnhandledError;if(t)t(e);else throw e})}function ne(){}var nt=nn("C",void 0,void 0);function nn(e,t,n){return{kind:e,value:t,error:n}}var nr=null;function ni(e){if(t8.useDeprecatedSynchronousErrorHandling){var t=!nr;if(t&&(nr={errorThrown:!1,error:null}),e(),t){var n=nr,r=n.errorThrown,i=n.error;if(nr=null,r)throw i}}else e()}var no=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,t4(t)&&t.add(n)):n.destination=nf,n}return T(t,e),t.create=function(e,t,n){return new nu(e,t,n)},t.prototype.next=function(e){this.isStopped?nd(nn("N",e,void 0),this):this._next(e)},t.prototype.error=function(e){this.isStopped?nd(nn("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?nd(nt,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(t5),na=Function.prototype.bind;function ns(e,t){return na.call(e,t)}var nl=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){nc(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){nc(e)}else nc(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){nc(e)}},e}(),nu=function(e){function t(t,n,r){var i,o,a=e.call(this)||this;return tJ(t)||!t?i={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:a&&t8.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return a.unsubscribe()},i={next:t.next&&ns(t.next,o),error:t.error&&ns(t.error,o),complete:t.complete&&ns(t.complete,o)}):i=t,a.destination=new nl(i),a}return T(t,e),t}(no);function nc(e){if(t8.useDeprecatedSynchronousErrorHandling)t8.useDeprecatedSynchronousErrorHandling&&nr&&(nr.errorThrown=!0,nr.error=e);else t9(e)}function nd(e,t){var n=t8.onStoppedNotification;n&&t7.setTimeout(function(){return n(e,t)})}var nf={closed:!0,next:ne,error:function(e){throw e},complete:ne},nh="function"==typeof Symbol&&Symbol.observable||"@@observable";function np(e){return e}var ng=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r=this,i=!function(e){return e&&e instanceof no||e&&tJ(e.next)&&tJ(e.error)&&tJ(e.complete)&&t4(e)}(e)?new nu(e,t,n):e;return ni(function(){var e=r.operator,t=r.source;i.add(e?e.call(i,t):t?r._subscribe(i):r._trySubscribe(i))}),i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=nv(t))(function(t,r){var i=new nu({next:function(t){try{e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t});n.subscribe(i)})},e.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},e.prototype[nh]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0===e.length?np:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=nv(e))(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}();function nv(e){var t;return null!=(t=null!=e?e:t8.Promise)?t:Promise}function nm(e){return Symbol.asyncIterator&&tJ(null==e?void 0:e[Symbol.asyncIterator])}function nb(e){return TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var ny="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function nx(e){return tJ(null==e?void 0:e[ny])}function nw(e){return function(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function(e){return function(t){return Promise.resolve(t).then(e,u)}}),r[Symbol.asyncIterator]=function(){return this},r;function a(e,t){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||s(e,t)})},t&&(r[e]=t(r[e])))}function s(e,t){try{var n;(n=i[e](t)).value instanceof D?Promise.resolve(n.value.v).then(l,u):c(o[0][2],n)}catch(e){c(o[0][3],e)}}function l(e){s("next",e)}function u(e){s("throw",e)}function c(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}(this,arguments,function(){var t,n,r;return N(this,function(i){switch(i.label){case 0:t=e.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,D(t.read())];case 3:if(r=(n=i.sent()).value,!n.done)return[3,5];return[4,D(void 0)];case 4:return[2,i.sent()];case 5:return[4,D(r)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function nS(e){return tJ(null==e?void 0:e.getReader)}function nE(e){if(e instanceof ng)return e;if(null!=e){var t,n,r,i;if(tJ(e[nh])){return t=e,new ng(function(e){var n=t[nh]();if(tJ(n.subscribe))return n.subscribe(e);throw TypeError("Provided object does not correctly implement Symbol.observable")})}if(tQ(e)){return n=e,new ng(function(e){for(var t=0;t<n.length&&!e.closed;t++)e.next(n[t]);e.complete()})}if(tZ(e)){return r=e,new ng(function(e){r.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,t9)})}if(nm(e))return nk(e);if(nx(e)){return i=e,new ng(function(e){var t,n;try{for(var r=M(i),o=r.next();!o.done;o=r.next()){var a=o.value;if(e.next(a),e.closed)return}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}e.complete()})}if(nS(e))return nk(nw(e))}throw nb(e)}function nk(e){return new ng(function(t){(function(e,t){var n,r,i,o;return A(this,void 0,void 0,function(){var a;return N(this,function(s){switch(s.label){case 0:s.trys.push([0,5,6,11]),n=function(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=M(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){var o,a,s;o=r,a=i,s=(t=e[n](t)).done,Promise.resolve(t.value).then(function(e){o({value:e,done:s})},a)})}}}(e),s.label=1;case 1:return[4,n.next()];case 2:if((r=s.sent()).done)return[3,4];if(a=r.value,t.next(a),t.closed)return[2];s.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return i={error:s.sent()},[3,11];case 6:if(s.trys.push([6,,9,10]),!(r&&!r.done&&(o=n.return)))return[3,8];return[4,o.call(n)];case 7:s.sent(),s.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}function nC(e){return function(t){if(tJ(null==t?void 0:t.lift))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw TypeError("Unable to lift unknown Observable type")}}function nO(e,t,n,r,i){return new nI(e,t,n,r,i)}var nI=function(e){function t(t,n,r,i,o,a){var s=e.call(this,t)||this;return s.onFinalize=o,s.shouldUnsubscribe=a,s._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,s._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,s}return T(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),n||null==(t=this.onFinalize)||t.call(this)}},t}(no);function n_(e,t){return nC(function(n,r){var i=0;n.subscribe(nO(r,function(n){r.next(e.call(t,n,i++))}))})}function nT(e,t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=!1);var o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function nP(e,t,n){return(void 0===n&&(n=1/0),tJ(t))?nP(function(n,r){return n_(function(e,i){return t(n,e,r,i)})(nE(e(n,r)))},n):("number"==typeof t&&(n=t),nC(function(t,r){var i,o,a,s,l,u,c,d,f;return i=n,a=[],s=0,l=0,u=!1,c=function(){!u||a.length||s||r.complete()},d=function(e){return s<i?f(e):a.push(e)},f=function(t){s++;var n=!1;nE(e(t,l++)).subscribe(nO(r,function(e){o?d(e):r.next(e)},function(){n=!0},void 0,function(){if(n)try{for(s--;a.length&&s<i;)!function(){var e=a.shift();f(e)}();c()}catch(e){r.error(e)}}))},t.subscribe(nO(r,d,function(){u=!0,c()})),function(){}}))}var nR=Array.isArray,nA=["addListener","removeListener"],nN=["addEventListener","removeEventListener"],nM=["on","off"];function nL(e,t,n,r){if(tJ(n)&&(r=n,n=void 0),r){return nL(e,t,n).pipe((i=r,n_(function(e){return nR(e)?i.apply(void 0,V([],L(e))):i(e)})))}var i,o,a,s,l=L(tJ((o=e).addEventListener)&&tJ(o.removeEventListener)?nN.map(function(r){return function(i){return e[r](t,i,n)}}):tJ((a=e).addListener)&&tJ(a.removeListener)?nA.map(nV(e,t)):tJ((s=e).on)&&tJ(s.off)?nM.map(nV(e,t)):[],2),u=l[0],c=l[1];if(!u&&tQ(e))return nP(function(e){return nL(e,t,n)})(nE(e));if(!u)throw TypeError("Invalid event target");return new ng(function(e){var t=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.next(1<t.length?t:t[0])};return u(t),function(){return c(t)}})}function nV(e,t){return function(n){return function(r){return e[n](t,r)}}}var nD=t0(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),nF=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return T(t,e),t.prototype.lift=function(e){var t=new nj(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new nD},t.prototype.next=function(e){var t=this;ni(function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=M(t.currentObservers),o=i.next();!o.done;o=i.next())o.value.next(e)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var t=this;ni(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;ni(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null==(e=this.observers)?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this.hasError,r=this.isStopped,i=this.observers;return n||r?t3:(this.currentObservers=null,i.push(e),new t5(function(){t.currentObservers=null,t2(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,n=this.thrownError,r=this.isStopped;t?e.error(n):r&&e.complete()},t.prototype.asObservable=function(){var e=new ng;return e.source=this,e},t.create=function(e,t){return new nj(e,t)},t}(ng),nj=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return T(t,e),t.prototype.next=function(e){var t,n;null==(n=null==(t=this.destination)?void 0:t.next)||n.call(t,e)},t.prototype.error=function(e){var t,n;null==(n=null==(t=this.destination)?void 0:t.error)||n.call(t,e)},t.prototype.complete=function(){var e,t;null==(t=null==(e=this.destination)?void 0:e.complete)||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!=(n=null==(t=this.source)?void 0:t.subscribe(e))?n:t3},t}(nF);function nz(e){void 0===e&&(e={});var t=e.connector,n=void 0===t?function(){return new nF}:t,r=e.resetOnError,i=void 0===r||r,o=e.resetOnComplete,a=void 0===o||o,s=e.resetOnRefCountZero,l=void 0===s||s;return function(e){var t,r,o,s=0,u=!1,c=!1,d=function(){null==r||r.unsubscribe(),r=void 0},f=function(){d(),t=o=void 0,u=c=!1},h=function(){var e=t;f(),null==e||e.unsubscribe()};return nC(function(e,p){s++,c||u||d();var g=o=null!=o?o:n();p.add(function(){0!=--s||c||u||(r=nB(h,l))}),g.subscribe(p),!t&&s>0&&(t=new nu({next:function(e){return g.next(e)},error:function(e){c=!0,d(),r=nB(f,i,e),g.error(e)},complete:function(){u=!0,d(),r=nB(f,a),g.complete()}}),nE(e).subscribe(t))})(e)}}function nB(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(!0===t)return void e();if(!1!==t){var i=new nu({next:function(){i.unsubscribe(),e()}});return nE(t.apply(void 0,V([],L(n)))).subscribe(i)}}var nU=["input","select","textarea"],nW=function(e,t){return function(n,r){var i,o,a,s=e.pageUrlAllowlist,l=e.shouldTrackEventResolver,u=null==(o=null==(i=null==r?void 0:r.tagName)?void 0:i.toLowerCase)?void 0:o.call(i);if(!u)return!1;if(l)return l(n,r);if(!nG(window.location.href,s))return!1;var c=String(null==r?void 0:r.getAttribute("type"))||"";if("string"==typeof c)switch(c.toLowerCase()){case"hidden":case"password":return!1}if(t&&!t.some(function(e){var t;return!!(null==(t=null==r?void 0:r.matches)?void 0:t.call(r,e))}))return!1;switch(u){case"input":case"select":case"textarea":return"change"===n||"click"===n;default:var d=null==(a=null==window?void 0:window.getComputedStyle)?void 0:a.call(window,r);if(d&&"pointer"===d.getPropertyValue("cursor")&&"click"===n)return!0;return"click"===n}}},nH=function(e){if(null==e)return!1;if("string"==typeof e&&(/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(e)))return!1;return!0},nq=function(e){var t,n,r,i=null==(n=null==(t=null==e?void 0:e.tagName)?void 0:t.toLowerCase)?void 0:n.call(t),o=e instanceof HTMLElement&&(null==(r=e.getAttribute("contenteditable"))?void 0:r.toLowerCase())==="true";return!nU.includes(i)&&!o},n$=function(e){var t="";return nq(e)&&e.childNodes&&e.childNodes.length&&e.childNodes.forEach(function(e){var n="";e&&3===e.nodeType?e.textContent&&(n=e.textContent):n=n$(e),t+=n.split(/(\s+)/).filter(nH).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}),t},nG=function(e,t){return!t||!t.length||t.some(function(t){return"string"==typeof t?e===t:e.match(t)})},nK=function(e){return Object.keys(e).reduce(function(t,n){var r=e[n];return null!=r&&("object"!=typeof r||0!==Object.keys(r).length)&&("string"!=typeof r||0!==r.trim().length)&&(t[n]=r),t},{})},nY=function(e){var t,n=e.parentElement;if(!n)return"";try{t=n.querySelector(":scope>span,h1,h2,h3,h4,h5,h6")}catch(e){t=null}if(t){var r=t.textContent||"";return nH(r)?r:""}return nY(n)},nX=function(e,t){return e?t.some(function(t){var n;return null==(n=null==e?void 0:e.matches)?void 0:n.call(e,t)})?e:nX(null==e?void 0:e.parentElement,t):null},nQ=function(e){if(!e)return{};var t,n,r,i=null==(r=null==(n=null==e?void 0:e.tagName)?void 0:n.toLowerCase)?void 0:r.call(n);return nK(((t={})[t$]=i,t[tG]=n$(e),t[tK]=window.location.href.split("?")[0],t))},nJ=function(e){return null!==e.event.target&&!!e.closestTrackedAncestor},nZ=function(){function e(e){var t=(void 0===e?{}:e).origin,n=this;this.endpoint=tY,this.requestCallbacks={},this.onSelect=function(e){n.notify({action:"element-selected",data:e})},this.onTrack=function(e,t){"selector-mode-changed"===e?n.notify({action:"track-selector-mode-changed",data:t}):"selector-moved"===e&&n.notify({action:"track-selector-moved",data:t})},this.endpoint=void 0===t?tY:t}return e.prototype.notify=function(e){var t,n,r,i;null==(n=null==(t=this.logger)?void 0:t.debug)||n.call(t,"Message sent: ",JSON.stringify(e)),null==(i=null==(r=window.opener)?void 0:r.postMessage)||i.call(r,e,this.endpoint)},e.prototype.sendRequest=function(e,t,n){var r=this;void 0===n&&(n={timeout:15e3});var i="".concat(Date.now(),"-").concat(Math.random().toString(36).substr(2,9)),o={id:i,action:e,args:t};return new Promise(function(t,a){r.requestCallbacks[i]={resolve:t,reject:a},r.notify(o),(null==n?void 0:n.timeout)>0&&setTimeout(function(){a(Error("".concat(e," timed out (id: ").concat(i,")"))),delete r.requestCallbacks[i]},n.timeout)})},e.prototype.handleResponse=function(e){var t;if(!this.requestCallbacks[e.id]){null==(t=this.logger)||t.warn("No callback found for request id: ".concat(e.id));return}this.requestCallbacks[e.id].resolve(e.responseData),delete this.requestCallbacks[e.id]},e.prototype.setup=function(e){var t=this,n=void 0===e?{}:e,r=n.logger,i=n.endpoint,o=n.isElementSelectable,a=n.cssSelectorAllowlist,s=n.actionClickAllowlist;this.logger=r,i&&this.endpoint===tY&&(this.endpoint=i);var l=null;window.addEventListener("message",function(e){if(null==(r=null==(n=t.logger)?void 0:n.debug)||r.call(n,"Message received: ",JSON.stringify(e)),t.endpoint===e.origin){var n,r,i,u,c,d=null==e?void 0:e.data,f=null==d?void 0:d.action;if(f)if("id"in d)null==(u=null==(i=t.logger)?void 0:i.debug)||u.call(i,"Received Response to previous request: ",JSON.stringify(e)),t.handleResponse(d);else if("ping"===f)t.notify({action:"pong"});else if("initialize-visual-tagging-selector"===f){var h,p=null==d?void 0:d.data;(h="https://cdn.amplitude.com/libs/visual-tagging-selector-1.0.0-alpha.js.gz",new Promise(function(e,t){var n;try{var r=document.createElement("script");r.type="text/javascript",r.async=!0,r.src=h,r.addEventListener("load",function(){e({status:!0})},{once:!0}),r.addEventListener("error",function(){t({status:!1,message:"Failed to load the script ".concat(h)})}),null==(n=document.head)||n.appendChild(r)}catch(e){t(e)}})).then(function(){var e;l=null==(e=null==window?void 0:window.amplitudeVisualTaggingSelector)?void 0:e.call(window,{getEventTagProps:nQ,isElementSelectable:function(e){return!o||o((null==p?void 0:p.actionType)||"click",e)},onTrack:t.onTrack,onSelect:t.onSelect,visualHighlightClass:"amp-visual-tagging-selector-highlight",messenger:t,cssSelectorAllowlist:a,actionClickAllowlist:s}),t.notify({action:"selector-loaded"})}).catch(function(){var e;null==(e=t.logger)||e.warn("Failed to initialize visual tagging selector")})}else"close-visual-tagging-selector"===f&&(null==(c=null==l?void 0:l.close)||c.call(l))}}),this.notify({action:"page-loaded"})},e}(),n0=["id","class","style","value","onclick","onchange","oninput","onblur","onsubmit","onfocus","onkeydown","onkeyup","onkeypress","data-reactid","data-react-checksum","data-reactroot"],n1=["type"],n2=["svg","path","g"],n5=["password","hidden"],n3=function(e){return e?function(e,t){for(var n=0,r=0;r<e.length;r++){var i=e[r];if(null===i)n+=4;else{var o=function e(t,n){void 0===n&&(n=!1);try{if(null==t){if(n)return"None";return null}if("string"==typeof t){if(n){if((t=t.replace(/\\/g,"\\\\").replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r")).includes('"'))return"'".concat(t,"'");if(t.includes("'"))return'"'.concat(t.replace(/'/g,"\\'"),'"');return"'".concat(t,"'")}return t}if("boolean"==typeof t)return t?"True":"False";else if(Array.isArray(t)){var r=t.map(function(t){return e(t,!0)});return"[".concat(r.join(", "),"]")}else if("object"==typeof t){var i=Object.entries(t).filter(function(e){var t=L(e,1)[0];return null!=t}).map(function(t){var n=L(t,2),r=n[0],i=n[1];return"".concat(String(e(r,!0)),": ").concat(String(e(i,!0)))}),o="{".concat(i.join(", "),"}");return o.includes("\\'")&&(o=o.replace(/'/g,"'").replace(/'/g,"\\'")),o}return t.toString()}catch(e){return null}}(i);n+=o?Array.from(o).length:4}if(n>1024)return e.slice(0,r)}return e}((function(e){var t=[];if(!e)return t;t.push(e);for(var n=e.parentElement;n&&"HTML"!==n.tagName;)t.push(n),n=n.parentElement;return t})(e).map(function(e){return function(e){if(null===e)return null;var t,n,r,i,o,a,s=String(e.tagName).toLowerCase(),l={tag:s},u=Array.from(null!=(i=null==(r=e.parentElement)?void 0:r.children)?i:[]);u.length&&(l.index=u.indexOf(e),l.indexOfType=u.filter(function(t){return t.tagName===e.tagName}).indexOf(e));var c=null==(a=null==(o=e.previousElementSibling)?void 0:o.tagName)?void 0:a.toLowerCase();c&&(l.prevSib=String(c));var d=e.getAttribute("id");d&&(l.id=String(d));var f=Array.from(e.classList);f.length&&(l.classes=f);var h={},p=Array.from(e.attributes).filter(function(e){return!n0.includes(e.name)}),g=!nq(e);if(!n5.includes(String(e.getAttribute("type")))&&!n2.includes(s))try{for(var v=M(p),m=v.next();!m.done;m=v.next()){var b=m.value;(!g||n1.includes(b.name))&&(h[b.name]=String(b.value).substring(0,128))}}catch(e){t={error:e}}finally{try{m&&!m.done&&(n=v.return)&&n.call(v)}finally{if(t)throw t.error}}return Object.keys(h).length&&(l.attrs=h),l}(e)}),1024):[]};function n4(e,t){return nC(function(n,r){var i=0;n.subscribe(nO(r,function(n){return e.call(t,n,i++)&&r.next(n)}))})}var n6=function(e){function t(t,n){return e.call(this)||this}return T(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(t5),n8={setInterval:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n8.delegate;return(null==i?void 0:i.setInterval)?i.setInterval.apply(i,V([e,t],L(n))):setInterval.apply(void 0,V([e,t],L(n)))},clearInterval:function(e){var t=n8.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},n7=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return T(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n,r=this.id,i=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(i,r,t)),this.pending=!0,this.delay=t,this.id=null!=(n=this.id)?n:this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),n8.setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return t;null!=t&&n8.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n,r=!1;try{this.work(e)}catch(e){r=!0,n=e||Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),n},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,n=this.scheduler,r=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,t2(r,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(n6),n9={now:function(){return(n9.delegate||Date).now()},delegate:void 0},re=function(){function e(t,n){void 0===n&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=n9.now,e}(),rt=new(function(e){function t(t,n){void 0===n&&(n=re.now);var r=e.call(this,t,n)||this;return r.actions=[],r._active=!1,r}return T(t,e),t.prototype.flush=function(e){var t,n=this.actions;if(this._active)return void n.push(e);this._active=!0;do if(t=e.execute(e.state,e.delay))break;while(e=n.shift());if(this._active=!1,t){for(;e=n.shift();)e.unsubscribe();throw t}},t}(re))(n7);function rn(e){return void 0===e&&(e=1/0),nP(np,e)}var rr=new ng(function(e){return e.complete()});function ri(e){return e&&tJ(e.schedule)}function ro(e){return e[e.length-1]}function ra(e){return ri(ro(e))?e.pop():void 0}function rs(e,t){return void 0===t&&(t=0),nC(function(n,r){n.subscribe(nO(r,function(n){return nT(r,e,function(){return r.next(n)},t)},function(){return nT(r,e,function(){return r.complete()},t)},function(n){return nT(r,e,function(){return r.error(n)},t)}))})}function rl(e,t){return void 0===t&&(t=0),nC(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}function ru(e,t){if(!e)throw Error("Iterable cannot be null");return new ng(function(n){nT(n,t,function(){var r=e[Symbol.asyncIterator]();nT(n,t,function(){r.next().then(function(e){e.done?n.complete():n.next(e.value)})},0,!0)})})}function rc(e,t){return t?function(e,t){if(null!=e){if(tJ(e[nh]))return nE(e).pipe(rl(t),rs(t));if(tQ(e))return new ng(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})});if(tZ(e))return nE(e).pipe(rl(t),rs(t));if(nm(e))return ru(e,t);if(nx(e))return new ng(function(n){var r;return nT(n,t,function(){r=e[ny](),nT(n,t,function(){var e,t,i;try{t=(e=r.next()).value,i=e.done}catch(e){n.error(e);return}i?n.complete():n.next(t)},0,!0)}),function(){return tJ(null==r?void 0:r.return)&&r.return()}});if(nS(e))return ru(nw(e),t)}throw nb(e)}(e,t):nE(e)}function rd(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=ra(t),i=(e=1/0,"number"==typeof ro(t)?t.pop():e);return t.length?1===t.length?nE(t[0]):rn(i)(rc(t,r)):rr}function rf(e){return e<=0?function(){return rr}:nC(function(t,n){var r=0;t.subscribe(nO(n,function(t){++r<=e&&(n.next(t),e<=r&&n.complete())}))})}function rh(e){return e instanceof Date&&!isNaN(e)}var rp=t0(function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}});function rg(e){throw new rp(e)}!function(e){e.ClickObservable="clickObservable",e.ChangeObservable="changeObservable",e.NavigateObservable="navigateObservable",e.MutationObservable="mutationObservable"}(v||(v={}));var rv=function(e){void 0===e&&(e={});var t,n,r,i=e.dataAttributePrefix,o=void 0===i?"data-amp-track-":i,a=e.visualTaggingOptions,s=void 0===a?{enabled:!0,messenger:new nZ}:a;e.cssSelectorAllowlist=null!=(t=e.cssSelectorAllowlist)?t:tW,e.actionClickAllowlist=null!=(n=e.actionClickAllowlist)?n:tH,e.debounceTime=null!=(r=e.debounceTime)?r:0;var l="@amplitude/plugin-autocapture-browser",u=[],c=function(){var e,t,n=nL(document,"click",{capture:!0}).pipe(n_(function(e){return f(e,"click")}),nz()),r=nL(document,"change",{capture:!0}).pipe(n_(function(e){return f(e,"change")}),nz());window.navigation&&(t=nL(window.navigation,"navigate").pipe(n_(function(e){return f(e,"navigate")}),nz()));var i=new ng(function(e){var t=new MutationObserver(function(t){e.next(t)});return t.observe(document.body,{childList:!0,attributes:!0,characterData:!0,subtree:!0}),function(){return t.disconnect()}}).pipe(n_(function(e){return f(e,"mutation")}),nz());return(e={})[v.ClickObservable]=n,e[v.ChangeObservable]=r,e[v.NavigateObservable]=t,e[v.MutationObservable]=i,e},d=function(e,t){var n,r,i,a=null==(i=null==(r=null==t?void 0:t.tagName)?void 0:r.toLowerCase)?void 0:i.call(r),s="function"==typeof t.getBoundingClientRect?t.getBoundingClientRect():{left:null,top:null},l=t.getAttribute("aria-label"),u=t.getAttributeNames().reduce(function(e,n){if(n.startsWith(o)){var r=n.replace(o,""),i=t.getAttribute(n);r&&(e[r]=i||"")}return e},{}),c=nY(t),d=((n={})["[Amplitude] Element ID"]=t.getAttribute("id")||"",n["[Amplitude] Element Class"]=t.getAttribute("class"),n["[Amplitude] Element Hierarchy"]=n3(t),n[t$]=a,n[tG]=n$(t),n["[Amplitude] Element Position Left"]=null==s.left?null:Math.round(s.left),n["[Amplitude] Element Position Top"]=null==s.top?null:Math.round(s.top),n["[Amplitude] Element Aria Label"]=l,n["[Amplitude] Element Attributes"]=u,n["[Amplitude] Element Parent Label"]=c,n[tK]=window.location.href.split("?")[0],n["[Amplitude] Page Title"]="undefined"!=typeof document&&document.title||"",n["[Amplitude] Viewport Height"]=window.innerHeight,n["[Amplitude] Viewport Width"]=window.innerWidth,n);return"a"===a&&"click"===e&&t instanceof HTMLAnchorElement&&(d["[Amplitude] Element Href"]=t.href),nK(d)},f=function(t,n){var r={event:t,timestamp:Date.now(),type:n};if(("click"===r.type||"change"===r.type)&&null!==r.event.target){var i=nX(r.event.target,e.cssSelectorAllowlist);i&&(r.closestTrackedAncestor=i,r.targetElementProperties=d(r.type,i))}return r};return{name:l,type:"enrichment",setup:function(t,n){return A(void 0,void 0,void 0,function(){var r,i,o,a,f,h,p,g,v,m;return N(this,function(b){var y,x,w,S,E,k,C,O,I,_,T,R,A,N,D,F,j,z,B,U,W,H,q,$,G,K,Y,X,Q,J,Z,ee,et,en;return"undefined"==typeof document?[2]:(r=nW(e,e.cssSelectorAllowlist),i=nW(e,e.actionClickAllowlist),x=(y={allObservables:o=c(),options:e,amplitude:n,shouldTrackEvent:r}).amplitude,w=y.allObservables,S=y.options,E=y.shouldTrackEvent,I=rd((k=w.clickObservable).pipe(nC(function(e,t){var n,r=!1;e.subscribe(nO(t,function(e){var i=n;n=e,r&&t.next([i,e]),r=!0}))}),n4(function(e){var t=L(e,2),n=t[0],r=t[1],i=n.event.target!==r.event.target,o=20>=Math.abs(r.event.screenX-n.event.screenX)&&20>=Math.abs(r.event.screenY-n.event.screenY);return i&&!o})),k.pipe((C=S.debounceTime,void 0===O&&(O=rt),nC(function(e,t){var n=null,r=null,i=null,o=function(){if(n){n.unsubscribe(),n=null;var e=r;r=null,t.next(e)}};function a(){var e=i+C,r=O.now();if(r<e){n=this.schedule(void 0,e-r),t.add(n);return}o()}e.subscribe(nO(t,function(e){r=e,i=O.now(),n||(n=O.schedule(a,C),t.add(n))},function(){o(),t.complete()},void 0,function(){r=n=null}))})),n_(function(){return"timeout"}))),a=k.pipe((void 0===_&&(_=rt),T=0,R=_,void 0===T&&(T=0),void 0===A&&(A=rt),N=-1,null!=R&&(ri(R)?A=R:N=R),D=new ng(function(e){var t=rh(T)?T-A.now():T;t<0&&(t=0);var n=0;return A.schedule(function(){e.closed||(e.next(n++),0<=N?this.schedule(void 0,N):e.complete())},t)}),function e(t,n){return n?function(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return rn(1)(rc(e,ra(e)))}(n.pipe(rf(1),nC(function(e,t){e.subscribe(nO(t,ne))})),r.pipe(e(t)))}:nP(function(e,n){return nE(t(e,n)).pipe(rf(1),n_(function(){return e}))})}(function(){return D})),n4(nJ),n4(function(e){return E("click",e.closestTrackedAncestor)}),nC(function(e,t){var n=[];return e.subscribe(nO(t,function(e){return n.push(e)},function(){t.next(n),t.complete()})),nE(I).subscribe(nO(t,function(){var e=n;n=[],t.next(e)},ne)),function(){n=null}})).subscribe(function(e){var t,n,r=(e.length,tq);try{for(var i=M(e),o=i.next();!o.done;o=i.next()){var a=o.value;null==x||x.track(r,a.targetElementProperties)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}}),u.push(a),j=(F={allObservables:o,getEventProperties:d,amplitude:n,shouldTrackEvent:r}).amplitude,z=F.allObservables,B=F.getEventProperties,U=F.shouldTrackEvent,f=z.changeObservable.pipe(n4(nJ),n4(function(e){return U("change",e.closestTrackedAncestor)})).subscribe(function(e){null==j||j.track("[Amplitude] Element Changed",B("change",e.closestTrackedAncestor))}),u.push(f),H=(W={allObservables:o,options:e,getEventProperties:d,amplitude:n,shouldTrackEvent:r,shouldTrackActionClick:i}).amplitude,q=W.allObservables,$=W.options,G=W.getEventProperties,K=W.shouldTrackEvent,Y=W.shouldTrackActionClick,X=q.clickObservable,Q=q.mutationObservable,J=q.navigateObservable,Z=X.pipe(n4(function(e){return!K("click",e.closestTrackedAncestor)}),n_(function(e){var t=nX(e.event.target,$.actionClickAllowlist);return e.closestTrackedAncestor=t,null!==e.closestTrackedAncestor&&(e.targetElementProperties=G(e.type,e.closestTrackedAncestor)),e}),n4(nJ),n4(function(e){return Y("click",e.closestTrackedAncestor)})),ee=[Q],J&&ee.push(J),et=rd.apply(void 0,V([],L(ee),!1)),h=Z.pipe((en=function(e){return et.pipe(rf(1),function(e,t){var n=rh(e)?{first:e}:"number"==typeof e?{each:e}:e,r=n.first,i=n.each,o=n.with,a=void 0===o?rg:o,s=n.scheduler,l=void 0===s?rt:s,u=n.meta,c=void 0===u?null:u;if(null==r&&null==i)throw TypeError("No timeout provided.");return nC(function(e,t){var n,o,s=null,u=0,d=function(e){o=nT(t,l,function(){try{n.unsubscribe(),nE(a({meta:c,lastValue:s,seen:u})).subscribe(t)}catch(e){t.error(e)}},e)};n=e.subscribe(nO(t,function(e){null==o||o.unsubscribe(),u++,t.next(s=e),i>0&&d(i)},void 0,void 0,function(){(null==o?void 0:o.closed)||null==o||o.unsubscribe(),s=null})),u||d(null!=r?"number"==typeof r?r:r-l.now():i)})}({first:500,with:function(){return rr}}),n_(function(){return e}))},nC(function(e,t){var n=null,r=0,i=!1,o=function(){return i&&!n&&t.complete()};e.subscribe(nO(t,function(e){null==n||n.unsubscribe(),nE(en(e,r++)).subscribe(n=nO(t,function(e){return t.next(e)},function(){n=null,o()}))},function(){i=!0,o()}))}))).subscribe(function(e){null==H||H.track(tq,G("click",e.closestTrackedAncestor))}),u.push(h),null==(v=null==t?void 0:t.loggerProvider)||v.log("".concat(l," has been successfully added.")),window.opener&&s.enabled&&(p=e.cssSelectorAllowlist,g=e.actionClickAllowlist,null==(m=s.messenger)||m.setup(P(P({logger:null==t?void 0:t.loggerProvider},(null==t?void 0:t.serverZone)&&{endpoint:tX[t.serverZone]}),{isElementSelectable:nW(e,V(V([],L(p),!1),L(g),!1)),cssSelectorAllowlist:p,actionClickAllowlist:g}))),[2])})})},execute:function(e){return A(void 0,void 0,void 0,function(){return N(this,function(t){return[2,e]})})},teardown:function(){return A(void 0,void 0,void 0,function(){var e,t,n,r;return N(this,function(i){try{for(t=(e=M(u)).next();!t.done;t=e.next())t.value.unsubscribe()}catch(e){n={error:e}}finally{try{t&&!t.done&&(r=e.return)&&r.call(e)}finally{if(n)throw n.error}}return[2]})})}}},rm=function(){function e(e){this.request=e}return Object.defineProperty(e.prototype,"headers",{get:function(){if(this._headers)return this._headers;var e=this.request.headers;if(Array.isArray(e))this._headers=e.reduce(function(e,t){var n=L(t,2),r=n[0],i=n[1];return e[r]=i,e},{});else if(e instanceof Headers){var t={};e.forEach(function(e,n){t[n]=e}),this._headers=t}else"object"==typeof e&&(this._headers=e);return this._headers},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bodySize",{get:function(){if("number"==typeof this._bodySize)return this._bodySize;var e=j();if(null==e?void 0:e.TextEncoder){var t=this.request.body;return this._bodySize=ry(t,100),this._bodySize}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"method",{get:function(){return this.request.method},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{get:function(){return"string"==typeof this.request.body?this.request.body:null},enumerable:!1,configurable:!0}),e}(),rb=function(){function e(e){this.body=e}return Object.defineProperty(e.prototype,"bodySize",{get:function(){return ry(this.body,100)},enumerable:!1,configurable:!0}),e}();function ry(e,t){var n,r,i,o,a=j(),s=null==a?void 0:a.TextEncoder;if(s){if("string"==typeof e)o=e,i=new s().encode(o).length;else if(e instanceof Blob)i=(o=e).size;else if(e instanceof URLSearchParams)o=e,i=new s().encode(o.toString()).length;else if(ArrayBuffer.isView(e))i=(o=e).byteLength;else if(e instanceof ArrayBuffer)i=(o=e).byteLength;else if(e instanceof FormData){var l=0,u=0;try{for(var c=M(e.entries()),d=c.next();!d.done;d=c.next()){var f=L(d.value,2),h=f[0],p=f[1];if(l+=h.length,"string"==typeof p)l+=new s().encode(p).length;else{if(!(p instanceof Blob))return;l+=p.size}if(++u>=t)return}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}i=l}else if(e instanceof ReadableStream){o=e;return}return i}}var rx=function(){function e(e){this.response=e}return Object.defineProperty(e.prototype,"headers",{get:function(){var e;if(this._headers)return this._headers;if(this.response.headers instanceof Headers){var t=this.response.headers,n={};return null==(e=null==t?void 0:t.forEach)||e.call(t,function(e,t){n[t]=e}),this._headers=n,n}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bodySize",{get:function(){if(void 0!==this._bodySize)return this._bodySize;var e,t,n=null==(t=null==(e=this.response.headers)?void 0:e.get)?void 0:t.call(e,"content-length"),r=n?parseInt(n,10):void 0;return this._bodySize=r,r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.response.status},enumerable:!1,configurable:!0}),e}(),rw=function(){function e(e,t,n){this.statusCode=e,this.headersString=t,this.size=n}return Object.defineProperty(e.prototype,"bodySize",{get:function(){return this.size},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.statusCode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"headers",{get:function(){if(this.headersString){var e,t,n={},r=this.headersString.split("\r\n");try{for(var i=M(r),o=i.next();!o.done;o=i.next()){var a=o.value,s=L(a.split(": "),2),l=s[0],u=s[1];l&&u&&(n[l]=u)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return n}},enumerable:!1,configurable:!0}),e}(),rS=function(){function e(e,t,n,r,i,o,a,s,l,u,c){void 0===a&&(a=0),this.type=e,this.method=t,this.timestamp=n,this.startTime=r,this.url=i,this.requestWrapper=o,this.status=a,this.duration=s,this.responseWrapper=l,this.error=u,this.endTime=c}return e.prototype.toSerializable=function(){var e,t,n,r;return Object.fromEntries(Object.entries({type:this.type,method:this.method,url:this.url,timestamp:this.timestamp,status:this.status,duration:this.duration,error:this.error,startTime:this.startTime,endTime:this.endTime,requestHeaders:null==(e=this.requestWrapper)?void 0:e.headers,requestBodySize:null==(t=this.requestWrapper)?void 0:t.bodySize,responseHeaders:null==(n=this.responseWrapper)?void 0:n.headers,responseBodySize:null==(r=this.responseWrapper)?void 0:r.bodySize}).filter(function(e){var t=L(e,2);return void 0!==(t[0],t[1])}))},e}(),rE=function(e,t){void 0===t&&(t=eh()),this.callback=e,this.id=t},rk=new(function(){function e(t){this.eventCallbacks=new Map,this.isObserving=!1,this.logger=t;var n=j();e.isSupported()&&(this.globalScope=n)}return e.isSupported=function(){var e=j();return!!e&&!!e.fetch},e.prototype.subscribe=function(e,t){var n,r,i,o,a,s,l;if(this.logger||(this.logger=t),this.eventCallbacks.set(e.id,e),!this.isObserving){var u=null==(i=null==(r=null==(n=this.globalScope)?void 0:n.XMLHttpRequest)?void 0:r.prototype)?void 0:i.open,c=null==(s=null==(a=null==(o=this.globalScope)?void 0:o.XMLHttpRequest)?void 0:a.prototype)?void 0:s.send;u&&c&&this.observeXhr(u,c);var d=null==(l=this.globalScope)?void 0:l.fetch;d&&this.observeFetch(d),this.isObserving=!0}},e.prototype.unsubscribe=function(e){this.eventCallbacks.delete(e.id)},e.prototype.triggerEventCallbacks=function(e){var t=this;this.eventCallbacks.forEach(function(n){var r;try{n.callback(e)}catch(e){null==(r=t.logger)||r.debug("an unexpected error occurred while triggering event callbacks",e)}})},e.prototype.handleNetworkRequestEvent=function(e,t,n,r,i,o,a){if(void 0!==o&&void 0!==a){var s,l,u,c,d="GET";"object"==typeof t&&null!==t&&"url"in t&&"method"in t?(l=t.url,d=t.method):l=null==(s=null==t?void 0:t.toString)?void 0:s.call(t),d=(null==n?void 0:n.method)||d,r&&(u=r.status),i&&(c={name:i.name||"UnknownError",message:i.message||"An unknown error occurred"},u=0);var f=Math.floor(performance.now()-a),h=Math.floor(o+f),p=new rS(e,d,o,o,l,n,u,f,r,c,h);this.triggerEventCallbacks(p)}},e.prototype.getTimestamps=function(){var e,t;return{startTime:null==(e=Date.now)?void 0:e.call(Date),durationStart:null==(t=null==performance?void 0:performance.now)?void 0:t.call(performance)}},e.prototype.observeFetch=function(e){var t=this;this.globalScope&&e&&(this.globalScope.fetch=function(n,r){return A(t,void 0,void 0,function(){var t,i,o,a,s;return N(this,function(l){switch(l.label){case 0:try{t=this.getTimestamps()}catch(e){null==(a=this.logger)||a.debug("an unexpected error occurred while retrieving timestamps",e)}l.label=1;case 1:return l.trys.push([1,3,,4]),[4,e(n,r)];case 2:return i=l.sent(),[3,4];case 3:return o=l.sent(),[3,4];case 4:try{this.handleNetworkRequestEvent("fetch",n,r?new rm(r):void 0,i?new rx(i):void 0,o,null==t?void 0:t.startTime,null==t?void 0:t.durationStart)}catch(e){null==(s=this.logger)||s.debug("an unexpected error occurred while handling fetch",e)}if(i)return[2,i];throw o}})})})},e.prototype.observeXhr=function(e,t){if(this.globalScope&&e&&t){var n=this.globalScope.XMLHttpRequest.prototype,r=this;n.open=function(){for(var t,n,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var a=L(i,2),s=a[0],l=a[1];try{this.$$AmplitudeAnalyticsEvent=P({method:s,url:null==(t=null==l?void 0:l.toString)?void 0:t.call(l)},r.getTimestamps())}catch(e){null==(n=r.logger)||n.debug("an unexpected error occurred while calling xhr open",e)}return e.apply(this,i)},n.send=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=this,o=e[0],a=i.$$AmplitudeAnalyticsEvent;return i.addEventListener("loadend",function(){var e;try{var t=i.getAllResponseHeaders(),n=i.getResponseHeader("content-length"),s=new rw(i.status,t,n?parseInt(n,10):void 0),l=new rb(o);a.status=i.status,r.handleNetworkRequestEvent("xhr",{url:a.url,method:a.method},l,s,void 0,a.startTime,a.durationStart)}catch(t){null==(e=r.logger)||e.debug("an unexpected error occurred while handling xhr send",t)}}),t.apply(i,e)}}},e}()),rC="500-599";function rO(e,t){return RegExp("^"+t.replace(/[-[\]{}()+?.,\\^$|#\s]/g,"\\$&").replace(/\*/g,".*")+"$").test(e)}function rI(e,t){var n,r,i=t.split(",");try{for(var o=M(i),a=o.next();!a.done;a=o.next()){var s=a.value,l=L(s.split("-").map(Number),2),u=l[0],c=l[1];if(e===u&&void 0===c||e>=u&&e<=c)return!0}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!1}function r_(e){var t;if(e)try{var n=null==(t=j())?void 0:t.location.href,r=new URL(e,n),i=r.searchParams.toString(),o=r.hash.replace("#",""),a=r.href,s=r.host;r.hash="",r.search="";var l=r.href;return{query:i,fragment:o,href:a,hrefWithoutQueryOrHash:l,host:s}}catch(e){return}}(m||(m={})).NetworkObservable="networkObservable";var rT=function(e){void 0===e&&(e={});var t,n="@amplitude/plugin-network-capture-browser",r=[],i=function(){var e,n=new ng(function(e){var n=new rE(function(t){var n={event:t,timestamp:Date.now(),type:"network"};e.next(n)});return rk.subscribe(n,t),function(){rk.unsubscribe(n)}});return(e={})[m.NetworkObservable]=n,e};return{name:n,type:"enrichment",setup:function(o,a){return A(void 0,void 0,void 0,function(){var s;return N(this,function(l){var u,c,d,f;return"undefined"==typeof document?[2]:(c=(u={allObservables:i(),networkTrackingOptions:e,amplitude:a}).allObservables,d=u.networkTrackingOptions,f=u.amplitude,s=c.networkObservable.pipe(n4(function(e){return function(e,t){void 0===t&&(t={});var n,r,i=r_(e.url);if(!i)return!1;var o=i.host;return!(!1!==t.ignoreAmplitudeRequests&&(rO(o,"*.amplitude.com")||rO(o,"amplitude.com"))||(null==(n=t.ignoreHosts)?void 0:n.find(function(e){return rO(o,e)})))&&(!!t.captureRules||void 0===e.status||!!rI(e.status,rC))&&(!t.captureRules||(V([],L(t.captureRules),!1).reverse().find(function(t){return void 0!==(r=function(e,t,n){if(!e.hosts||e.hosts.find(function(e){return rO(t,e)}))return(!n&&0!==n||!!rI(n,e.statusCodeRange||rC))&&!0}(t,o,e.status))}),!!r))&&!0}(e.event,d)})).subscribe(function(e){var t,n,r,i=e.event,o=r_(i.url);if(o){var a=null==(n=i.responseWrapper)?void 0:n.bodySize,s=null==(r=i.requestWrapper)?void 0:r.bodySize,l=((t={})["[Amplitude] URL"]=o.hrefWithoutQueryOrHash,t["[Amplitude] URL Query"]=o.query,t["[Amplitude] URL Fragment"]=o.fragment,t["[Amplitude] Request Method"]=i.method,t["[Amplitude] Status Code"]=i.status,t["[Amplitude] Start Time"]=i.startTime,t["[Amplitude] Completion Time"]=i.endTime,t["[Amplitude] Duration"]=i.duration,t["[Amplitude] Request Body Size"]=s,t["[Amplitude] Response Body Size"]=a,t["[Amplitude] Request Type"]=i.type,t);null==f||f.track("[Amplitude] Network Request",l)}}),r.push(s),null==(t=null==o?void 0:o.loggerProvider)||t.log("".concat(n," has been successfully added.")),[2])})})},execute:function(e){return A(void 0,void 0,void 0,function(){return N(this,function(t){return[2,e]})})},teardown:function(){return A(void 0,void 0,void 0,function(){var e,t,n,i;return N(this,function(o){try{for(t=(e=M(r)).next();!t.done;t=e.next())t.value.unsubscribe()}catch(e){n={error:e}}finally{try{t&&!t.done&&(i=e.return)&&i.call(e)}finally{if(n)throw n.error}}return[2]})})}}},rP="dclid",rR="fbclid",rA="gbraid",rN="gclid",rM="ko_click_id",rL="li_fat_id",rV="msclkid",rD="rtd_cid",rF="ttclid",rj="twclid",rz="wbraid",rB={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rtd_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0},rU=function(e){var t=e.split(".");return t.length<=2?e:t.slice(t.length-2,t.length).join(".")},rW=function(e,t,n,r,i){void 0===i&&(i=!0),e.referrer;var o=e.referring_domain,a=R(e,["referrer","referring_domain"]),s=t||{},l=(s.referrer,s.referring_domain),u=R(s,["referrer","referring_domain"]);if(rH(n.excludeReferrers,e.referring_domain))return r.debug("This is not a new campaign because ".concat(e.referring_domain," is in the exclude referrer list.")),!1;if(!i&&Object.values(e).every(function(e){return!e})&&t)return r.debug("This is not a new campaign because this is a direct traffic in the same session."),!1;var c=JSON.stringify(a)!==JSON.stringify(u),d=rU(o||"")!==rU(l||""),f=!t||c||d;return f?r.debug("This is a new campaign. An $identify event will be sent."):r.debug("This is not a new campaign because it's the same as the previous one."),f},rH=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=""),e.some(function(e){return e instanceof RegExp?e.test(t):e===t})},rq=function(e){var t=e;return t?(t.startsWith(".")&&(t=t.substring(1)),[new RegExp("".concat(t.replace(".","\\."),"$"))]):[]},r$=function(){function e(){}return e.prototype.parse=function(){return A(this,void 0,void 0,function(){return N(this,function(e){return[2,P(P(P(P({},rB),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},e.prototype.getUtmParam=function(){var e=z();return{utm_campaign:e.utm_campaign,utm_content:e.utm_content,utm_id:e.utm_id,utm_medium:e.utm_medium,utm_source:e.utm_source,utm_term:e.utm_term}},e.prototype.getReferrer=function(){var e,t,n={referrer:void 0,referring_domain:void 0};try{n.referrer=document.referrer||void 0,n.referring_domain=null!=(t=null==(e=n.referrer)?void 0:e.split("/")[2])?t:void 0}catch(e){}return n},e.prototype.getClickIds=function(){var e,t=z();return(e={})[rP]=t[rP],e[rR]=t[rR],e[rA]=t[rA],e[rN]=t[rN],e[rM]=t[rM],e[rL]=t[rL],e[rV]=t[rV],e[rD]=t[rD],e[rF]=t[rF],e[rj]=t[rj],e[rz]=t[rz],e},e}(),rG=function(){function e(e,t){var n,r,i;this.shouldTrackNewCampaign=!1,this.options=P({initialEmptyValue:"EMPTY",resetSessionOnNewCampaign:!1,excludeReferrers:rq(null==(n=t.cookieOptions)?void 0:n.domain)},e),this.storage=t.cookieStorage,this.storageKey=(r=t.apiKey,void 0===i&&(i=10),["AMP","MKTG",r.substring(0,i)].filter(Boolean).join("_")),this.currentCampaign=rB,this.sessionTimeout=t.sessionTimeout,this.lastEventTime=t.lastEventTime,this.logger=t.loggerProvider,t.loggerProvider.log("Installing web attribution tracking.")}return e.prototype.init=function(){return A(this,void 0,void 0,function(){var e,t;return N(this,function(n){switch(n.label){case 0:return[4,this.fetchCampaign()];case 1:if(t=L.apply(void 0,[n.sent(),2]),this.currentCampaign=t[0],this.previousCampaign=t[1],e=!this.lastEventTime||eS(this.sessionTimeout,this.lastEventTime),!rW(this.currentCampaign,this.previousCampaign,this.options,this.logger,e))return[3,3];return this.shouldTrackNewCampaign=!0,[4,this.storage.set(this.storageKey,this.currentCampaign)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},e.prototype.fetchCampaign=function(){return A(this,void 0,void 0,function(){return N(this,function(e){switch(e.label){case 0:return[4,Promise.all([new r$().parse(),this.storage.get(this.storageKey)])];case 1:return[2,e.sent()]}})})},e.prototype.generateCampaignEvent=function(e){this.shouldTrackNewCampaign=!1;var t,n,r=(t=this.currentCampaign,n=this.options,ek(Object.entries(P(P({},rB),t)).reduce(function(e,t){var r,i=L(t,2),o=i[0],a=i[1];return(e.setOnce("initial_".concat(o),null!=(r=null!=a?a:n.initialEmptyValue)?r:"EMPTY"),a)?e.set(o,a):e.unset(o)},new ey)));return e&&(r.event_id=e),r},e.prototype.shouldSetSessionIdOnNewCampaign=function(){return this.shouldTrackNewCampaign&&!!this.options.resetSessionOnNewCampaign},e}(),rK=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return T(t,e),t.prototype.init=function(e,t,n){var r,i;return void 0===e&&(e=""),arguments.length>2?(r=t,i=n):"string"==typeof t?(r=t,i=void 0):(r=null==t?void 0:t.userId,i=t),F(this._init(P(P({},i),{userId:r,apiKey:e})))},t.prototype._init=function(t){var n,r,i;return A(this,void 0,void 0,function(){var o,a,s,l,u,c=this;return N(this,function(d){var f,h,p,g,v;switch(d.label){case 0:if(this.initializing)return[2];return this.initializing=!0,[4,(f=t.apiKey,h=t,p=this,void 0===h&&(h={}),A(void 0,void 0,void 0,function(){var e,t,n,r,i,o,a,s,l,u,c,d,g,v,m,b,y,x,w,S,E,k,C,O,I,_,T,R,M,V,D,F,j,B,U,W,H,q,$,G,K,Y,X;return N(this,function(Q){var J,Z,ee;switch(Q.label){case 0:if(e=h.identityStorage||ta,w={},e===ta)return[3,1];return n="",[3,5];case 1:if(null==(E=null==(S=h.cookieOptions)?void 0:S.domain))return[3,2];return r=E,[3,4];case 2:return[4,A(void 0,void 0,void 0,function(){var e,t,n,r,i,o;return N(this,function(a){switch(a.label){case 0:return[4,new eH().isEnabled()];case 1:if(!a.sent()||"undefined"==typeof location||!location.hostname)return[2,""];for(e=(null!=J?J:location.hostname).split("."),t=[],n="AMP_TLDTEST",r=e.length-2;r>=0;--r)t.push(e.slice(r).join("."));r=0,a.label=2;case 2:if(!(r<t.length))return[3,7];return[4,(o=new eH({domain:"."+(i=t[r])})).set(n,1)];case 3:return a.sent(),[4,o.get(n)];case 4:if(!a.sent())return[3,6];return[4,o.remove(n)];case 5:return a.sent(),[2,"."+i];case 6:return r++,[3,2];case 7:return[2,""]}})})];case 3:r=Q.sent(),Q.label=4;case 4:n=r,Q.label=5;case 5:return t=P.apply(void 0,[(w.domain=n,w.expiration=365,w.sameSite="Lax",w.secure=!1,w.upgrade=!0,w),h.cookieOptions]),[4,(Z=i=tl(h.identityStorage,t),void 0===(ee=null==(C=null==(k=h.cookieOptions)?void 0:k.upgrade)||C)&&(ee=!0),A(void 0,void 0,void 0,function(){var e,t,n,r,i,o,a,s,l;return N(this,function(u){switch(u.label){case 0:return e="".concat("amp","_").concat(f.substring(0,6)),[4,Z.getRaw(e)];case 1:if(!(t=u.sent()))return[2,{optOut:!1}];if(!ee)return[3,3];return[4,Z.remove(e)];case 2:u.sent(),u.label=3;case 3:return r=(n=L(t.split("."),6))[0],i=n[1],o=n[2],a=n[3],s=n[4],l=n[5],[2,{deviceId:r,userId:e1(i),sessionId:e0(a),lastEventId:e0(l),lastEventTime:e0(s),optOut:!!o}]}})}))];case 6:return o=Q.sent(),[4,i.get(eW(f))];case 7:return a=Q.sent(),s=z(),l=null!=(R=null!=(T=null!=(_=null!=(I=null!=(O=h.deviceId)?O:s.ampDeviceId)?I:s.deviceId)?_:null==a?void 0:a.deviceId)?T:o.deviceId)?R:eh(),u=null!=(M=null==a?void 0:a.lastEventId)?M:o.lastEventId,c=null!=(V=null==a?void 0:a.lastEventTime)?V:o.lastEventTime,d=null!=(F=null!=(D=h.optOut)?D:null==a?void 0:a.optOut)?F:o.optOut,g=null!=(j=null==a?void 0:a.sessionId)?j:o.sessionId,v=null!=(U=null!=(B=h.userId)?B:null==a?void 0:a.userId)?U:o.userId,p.previousSessionDeviceId=null!=(W=null==a?void 0:a.deviceId)?W:o.deviceId,p.previousSessionUserId=null!=(H=null==a?void 0:a.userId)?H:o.userId,m={ipAddress:null==($=null==(q=h.trackingOptions)?void 0:q.ipAddress)||$,language:null==(K=null==(G=h.trackingOptions)?void 0:G.language)||K,platform:null==(X=null==(Y=h.trackingOptions)?void 0:Y.platform)||X},b=null==a?void 0:a.pageCounter,y=null==a?void 0:a.debugLogsEnabled,void 0!==h.autocapture&&(h.defaultTracking=h.autocapture),[4,(x=new ts(f,h.appVersion,i,t,h.defaultTracking,h.autocapture,l,h.flushIntervalMillis,h.flushMaxRetries,h.flushQueueSize,e,h.ingestionMetadata,h.instanceName,u,c,h.loggerProvider,h.logLevel,h.minIdLength,h.offline,d,h.partnerId,h.plan,h.serverUrl,h.serverZone,g,h.sessionTimeout,h.storageProvider,m,h.transport,h.useBatch,h.fetchRemoteConfig,v,b,y,h.networkTrackingOptions)).storageProvider.isEnabled()];case 8:return Q.sent()||(x.loggerProvider.warn("Storage provider ".concat(x.storageProvider.constructor.name," is not enabled. Falling back to MemoryStorage.")),x.storageProvider=new eU),[2,x]}})}))];case 1:if(!(o=d.sent()).fetchRemoteConfig)return[3,4];return[4,(g=o,A(void 0,void 0,void 0,function(){var e;return N(this,function(t){switch(t.label){case 0:return[4,(e=new tU(g)).initialize()];case 1:return t.sent(),[2,e]}})}))];case 2:return[4,d.sent().generateJoinedConfig()];case 3:o=d.sent(),d.label=4;case 4:return[4,e.prototype._init.call(this,o)];case 5:if(d.sent(),this.logBrowserOptions(o),!eT(this.config.defaultTracking))return[3,7];return a=eT((v=this.config).defaultTracking)&&v.defaultTracking&&"object"==typeof v.defaultTracking&&v.defaultTracking.attribution&&"object"==typeof v.defaultTracking.attribution?P({},v.defaultTracking.attribution):{},this.webAttribution=new rG(a,this.config),[4,this.webAttribution.init()];case 6:d.sent(),d.label=7;case 7:if(l=Number.isNaN(Number((s=z()).ampSessionId))?void 0:Number(s.ampSessionId),this.setSessionId(null!=(i=null!=(r=null!=(n=t.sessionId)?n:l)?r:this.config.sessionId)?i:Date.now()),(u=et(t.instanceName)).identityStore.setIdentity({userId:this.config.userId,deviceId:this.config.deviceId}),null===this.config.offline)return[3,9];return[4,this.add(tD()).promise];case 8:d.sent(),d.label=9;case 9:return[4,this.add(new eg).promise];case 10:return d.sent(),[4,this.add(new eB).promise];case 11:return d.sent(),[4,this.add(new ev).promise];case 12:if(d.sent(),tV(this.config),!e_(this.config.defaultTracking,"fileDownloads"))return[3,14];return this.config.loggerProvider.debug("Adding file download tracking plugin"),[4,this.add(tM()).promise];case 13:d.sent(),d.label=14;case 14:if(!e_(this.config.defaultTracking,"formInteractions"))return[3,16];return this.config.loggerProvider.debug("Adding form interaction plugin"),[4,this.add(tR()).promise];case 15:d.sent(),d.label=16;case 16:if(!eP(this.config.defaultTracking))return[3,18];return this.config.loggerProvider.debug("Adding page view tracking plugin"),[4,this.add(tI(eV(this.config))).promise];case 17:d.sent(),d.label=18;case 18:if(!eN(this.config.autocapture))return[3,20];return this.config.loggerProvider.debug("Adding user interactions plugin (autocapture plugin)"),[4,this.add(rv(eM(this.config))).promise];case 19:d.sent(),d.label=20;case 20:if(!eA(this.config.autocapture))return[3,22];return this.config.loggerProvider.debug("Adding network tracking plugin"),[4,this.add(rT(eL(this.config))).promise];case 21:d.sent(),d.label=22;case 22:return this.initializing=!1,[4,this.runQueuedFunctions("dispatchQ")];case 23:return d.sent(),u.eventBridge.setEventReceiver(function(e){c.track(e.eventType,e.eventProperties)}),[2]}})})},t.prototype.getUserId=function(){var e;return null==(e=this.config)?void 0:e.userId},t.prototype.setUserId=function(e){if(!this.config)return void this.q.push(this.setUserId.bind(this,e));this.config.loggerProvider.debug("function setUserId: ",e),(e!==this.config.userId||void 0===e)&&(this.config.userId=e,this.timeline.onIdentityChanged({userId:e}),en(e,this.config.instanceName))},t.prototype.getDeviceId=function(){var e;return null==(e=this.config)?void 0:e.deviceId},t.prototype.setDeviceId=function(e){if(!this.config)return void this.q.push(this.setDeviceId.bind(this,e));this.config.loggerProvider.debug("function setDeviceId: ",e),e!==this.config.deviceId&&(this.config.deviceId=e,this.timeline.onIdentityChanged({deviceId:e}),er(e,this.config.instanceName))},t.prototype.reset=function(){this.setDeviceId(eh()),this.setUserId(void 0)},t.prototype.getSessionId=function(){var e;return null==(e=this.config)?void 0:e.sessionId},t.prototype.setSessionId=function(e){var t,n=[];if(!this.config)return this.q.push(this.setSessionId.bind(this,e)),F(Promise.resolve());if(e===this.config.sessionId)return F(Promise.resolve());this.config.loggerProvider.debug("function setSessionId: ",e);var r=this.getSessionId();r!==e&&this.timeline.onSessionIdChanged(e);var i=this.config.lastEventTime,o=null!=(t=this.config.lastEventId)?t:-1;this.config.sessionId=e,this.config.lastEventTime=void 0,this.config.pageCounter=0,eR(this.config.defaultTracking)&&(r&&i&&n.push(this.track(e8,void 0,{device_id:this.previousSessionDeviceId,event_id:++o,session_id:r,time:i+1,user_id:this.previousSessionUserId}).promise),this.config.lastEventTime=this.config.sessionId);var a=this.trackCampaignEventIfNeeded(++o,n);return eR(this.config.defaultTracking)&&n.push(this.track(e6,void 0,{event_id:a?++o:o,session_id:this.config.sessionId,time:this.config.lastEventTime}).promise),this.previousSessionDeviceId=this.config.deviceId,this.previousSessionUserId=this.config.userId,F(Promise.all(n))},t.prototype.extendSession=function(){if(!this.config)return void this.q.push(this.extendSession.bind(this));this.config.lastEventTime=Date.now()},t.prototype.setTransport=function(e){if(!this.config)return void this.q.push(this.setTransport.bind(this,e));this.config.transportProvider=tu(e)},t.prototype.identify=function(t,n){if(eF(t)){var r=t._q;t._q=[],t=eD(new ey,r)}return(null==n?void 0:n.user_id)&&this.setUserId(n.user_id),(null==n?void 0:n.device_id)&&this.setDeviceId(n.device_id),e.prototype.identify.call(this,t,n)},t.prototype.groupIdentify=function(t,n,r,i){if(eF(r)){var o=r._q;r._q=[],r=eD(new ey,o)}return e.prototype.groupIdentify.call(this,t,n,r,i)},t.prototype.revenue=function(t,n){if(eF(t)){var r=t._q;t._q=[],t=eD(new ew,r)}return e.prototype.revenue.call(this,t,n)},t.prototype.trackCampaignEventIfNeeded=function(e,t){if(!this.webAttribution||!this.webAttribution.shouldTrackNewCampaign)return!1;var n=this.webAttribution.generateCampaignEvent(e);return t?t.push(this.track(n).promise):this.track(n),this.config.loggerProvider.log("Tracking attribution."),!0},t.prototype.process=function(t){return A(this,void 0,void 0,function(){var n,r,i;return N(this,function(o){return n=Date.now(),r=eS(this.config.sessionTimeout,this.config.lastEventTime),i=this.webAttribution&&this.webAttribution.shouldSetSessionIdOnNewCampaign(),t.event_type!==e6&&t.event_type!==e8&&(!t.session_id||t.session_id===this.getSessionId())&&(r||i?(this.setSessionId(n),i&&this.config.loggerProvider.log("Created a new session for new campaign.")):r||this.trackCampaignEventIfNeeded()),[2,e.prototype.process.call(this,t)]})})},t.prototype.logBrowserOptions=function(e){try{var t=P(P({},e),{apiKey:e.apiKey.substring(0,10)+"********"});this.config.loggerProvider.debug("Initialized Amplitude with BrowserConfig:",JSON.stringify(t))}catch(e){this.config.loggerProvider.error("Error logging browser config",e)}},t}(eI),rY=function(e){return function(){var t=P({},e.config);return{logger:t.loggerProvider,logLevel:t.logLevel}}},rX=function(e,t){var n,r;t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"");try{for(var i=M(t.split(".")),o=i.next();!o.done;o=i.next()){var a=o.value;if(!(a in e))return;e=e[a]}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return e},rQ=function(e,t){return function(){var n,r,i={};try{for(var o=M(t),a=o.next();!a.done;a=o.next()){var s=a.value;i[s]=rX(e,s)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}},rJ=function(e,t,n,r,i){return void 0===i&&(i=null),function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var l=n(),u=l.logger,c=l.logLevel;if(c&&c<a.Debug||!c||!u)return e.apply(i,o);var d={type:"invoke public method",name:t,args:o,stacktrace:(Error().stack||"").split("\n").slice(3).map(function(e){return e.trim()}),time:{start:new Date().toISOString()},states:{}};r&&d.states&&(d.states.before=r());var f=e.apply(i,o);return f&&f.promise?f.promise.then(function(){r&&d.states&&(d.states.after=r()),d.time&&(d.time.end=new Date().toISOString()),u.debug(JSON.stringify(d,null,2))}):(r&&d.states&&(d.states.after=r()),d.time&&(d.time.end=new Date().toISOString()),u.debug(JSON.stringify(d,null,2))),f}};!function(e){e.US="US",e.EU="EU",e.STAGING="STAGING"}(b||(b={}));var rZ="[Amplitude]",r0="".concat(rZ," Session Replay ID"),r1=b.US,r2="".concat(rZ," Session Replay Debug"),r5="amp-mask";!function(e){e.GET_SR_PROPS="get-sr-props",e.DEBUG_INFO="debug-info",e.FETCH_REQUEST="fetch-request",e.METADATA="metadata"}(y||(y={}));var r3=function(){function e(e){this.logger=e,this.log=this.getSafeMethod("log"),this.warn=this.getSafeMethod("warn"),this.error=this.getSafeMethod("error"),this.debug=this.getSafeMethod("debug")}return e.prototype.getSafeMethod=function(e){if(!this.logger)return function(){};var t,n=this.logger[e];return"function"==typeof n?(null!=(t=n.__rrweb_original__)?t:n).bind(this.logger):function(){}},e.prototype.enable=function(e){this.logger.enable(e)},e.prototype.disable=function(){this.logger.disable()},e}(),r4=function(){return{flushMaxRetries:2,logLevel:a.Warn,loggerProvider:new es,transportProvider:new eK}},r6=function(e){function t(t,n){var r,i=this,o=r4();return(i=e.call(this,P(P({transportProvider:o.transportProvider,loggerProvider:new r3(n.loggerProvider||o.loggerProvider)},n),{apiKey:t}))||this).flushMaxRetries=void 0!==n.flushMaxRetries&&n.flushMaxRetries<=o.flushMaxRetries?n.flushMaxRetries:o.flushMaxRetries,i.apiKey=t,i.sampleRate=n.sampleRate||0,i.serverZone=n.serverZone||r1,i.configServerUrl=n.configServerUrl,i.trackServerUrl=n.trackServerUrl,i.shouldInlineStylesheet=n.shouldInlineStylesheet,i.version=n.version,i.performanceConfig=n.performanceConfig,i.storeType=null!=(r=n.storeType)?r:"idb",n.privacyConfig&&(i.privacyConfig=n.privacyConfig),n.debugMode&&(i.debugMode=n.debugMode),n.experimental&&(i.experimental=n.experimental),i}return T(t,e),t}(eu),r8=n(83415);!function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.PayloadTooLarge="payload_too_large",e.Invalid="invalid",e.Failed="failed",e.Timeout="Timeout",e.SystemError="SystemError"}(x||(x={}));var r7=function(){function e(){}return e.prototype.send=function(e,t){return Promise.resolve(null)},e.prototype.buildResponse=function(e){if("object"!=typeof e)return null;var t,n,r,i,o,a,s,l,u,c,d,f,h,p,g,v,m,b,y,w,S,E,k=e.code||0,C=this.buildStatus(k);switch(C){case x.Success:return{status:C,statusCode:k,body:{eventsIngested:null!=(t=e.events_ingested)?t:0,payloadSizeBytes:null!=(n=e.payload_size_bytes)?n:0,serverUploadTime:null!=(r=e.server_upload_time)?r:0}};case x.Invalid:return{status:C,statusCode:k,body:{error:null!=(i=e.error)?i:"",missingField:null!=(o=e.missing_field)?o:"",eventsWithInvalidFields:null!=(a=e.events_with_invalid_fields)?a:{},eventsWithMissingFields:null!=(s=e.events_with_missing_fields)?s:{},eventsWithInvalidIdLengths:null!=(l=e.events_with_invalid_id_lengths)?l:{},epsThreshold:null!=(u=e.eps_threshold)?u:0,exceededDailyQuotaDevices:null!=(c=e.exceeded_daily_quota_devices)?c:{},silencedDevices:null!=(d=e.silenced_devices)?d:[],silencedEvents:null!=(f=e.silenced_events)?f:[],throttledDevices:null!=(h=e.throttled_devices)?h:{},throttledEvents:null!=(p=e.throttled_events)?p:[]}};case x.PayloadTooLarge:return{status:C,statusCode:k,body:{error:null!=(g=e.error)?g:""}};case x.RateLimit:return{status:C,statusCode:k,body:{error:null!=(v=e.error)?v:"",epsThreshold:null!=(m=e.eps_threshold)?m:0,throttledDevices:null!=(b=e.throttled_devices)?b:{},throttledUsers:null!=(y=e.throttled_users)?y:{},exceededDailyQuotaDevices:null!=(w=e.exceeded_daily_quota_devices)?w:{},exceededDailyQuotaUsers:null!=(S=e.exceeded_daily_quota_users)?S:{},throttledEvents:null!=(E=e.throttled_events)?E:[]}};case x.Timeout:default:return{status:C,statusCode:k}}},e.prototype.buildStatus=function(e){return e>=200&&e<300?x.Success:429===e?x.RateLimit:413===e?x.PayloadTooLarge:408===e?x.Timeout:e>=400&&e<500?x.Invalid:e>=500?x.Failed:x.Unknown},e}();!function(e){e.US="US",e.EU="EU",e.STAGING="STAGING"}(w||(w={}));var r9="Remote config fetch rejected due to timeout after 5 seconds",ie="Unexpected error occurred",it=function(){function e(e){var t=e.localConfig,n=e.configKeys,r=this;this.retryTimeout=1e3,this.attempts=0,this.sessionTargetingMatch=!1,this.metrics={},this.getRemoteConfig=function(e,t,n){return A(r,void 0,void 0,function(){var r,i,o;return N(this,function(a){switch(a.label){case 0:return r=Date.now(),[4,this.fetchWithTimeout(n)];case 1:if((i=a.sent())&&(o=i.configs&&i.configs[e]))return this.metrics.fetchTimeAPISuccess=Date.now()-r,[2,o[t]];return this.metrics.fetchTimeAPIFail=Date.now()-r,[2,void 0]}})})},this.fetchWithTimeout=function(e){return A(r,void 0,void 0,function(){var t,n,r;return N(this,function(i){switch(i.label){case 0:return t=new AbortController,n=setTimeout(function(){return t.abort()},5e3),[4,this.fetchRemoteConfig(t.signal,e)];case 1:return r=i.sent(),clearTimeout(n),[2,r]}})})},this.fetchRemoteConfig=function(e,t){return A(r,void 0,void 0,function(){var n,r,i,o,a,s,l,u,c,d,f;return N(this,function(h){switch(h.label){case 0:if(t===this.lastFetchedSessionId&&this.attempts>=this.localConfig.flushMaxRetries)return[2,this.completeRequest({err:"Remote config fetch rejected due to exceeded retry count"})];if(e.aborted)return[2,this.completeRequest({err:r9})];t!==this.lastFetchedSessionId&&(this.lastFetchedSessionId=t,this.attempts=0);h.label=1;case 1:h.trys.push([1,3,,4]),n=new URLSearchParams({api_key:this.localConfig.apiKey});try{for(i=(r=M(this.configKeys)).next();!i.done;i=r.next())o=i.value,n.append("config_keys",o)}catch(e){c={error:e}}finally{try{i&&!i.done&&(d=r.return)&&d.call(r)}finally{if(c)throw c.error}}return t&&n.set("session_id",String(t)),a={headers:{Accept:"*/*"},method:"GET"},s="".concat(this.getServerUrl(),"?").concat(n.toString()),this.attempts+=1,[4,fetch(s,P(P({},a),{signal:e}))];case 2:if(null===(l=h.sent()))return[2,this.completeRequest({err:ie})];switch(new r7().buildStatus(l.status)){case x.Success:return this.attempts=0,[2,this.parseAndStoreConfig(l)];case x.Failed:return[2,this.retryFetch(e,t)];default:return[2,this.completeRequest({err:"Network error occurred, remote config fetch failed"})]}case 3:if(u=h.sent(),e.aborted)return[2,this.completeRequest({err:r9})];return[2,this.completeRequest({err:null!=(f=u.message)?f:ie})];case 4:return[2]}})})},this.retryFetch=function(e,t){return A(r,void 0,void 0,function(){var n=this;return N(this,function(r){switch(r.label){case 0:return[4,new Promise(function(e){return setTimeout(e,n.attempts*n.retryTimeout)})];case 1:return r.sent(),[2,this.fetchRemoteConfig(e,t)]}})})},this.parseAndStoreConfig=function(e){return A(r,void 0,void 0,function(){var t;return N(this,function(n){switch(n.label){case 0:return[4,e.json()];case 1:return t=n.sent(),this.completeRequest({success:"Remote config successfully fetched"}),[2,t]}})})},this.localConfig=t,this.configKeys=n}return e.prototype.getServerUrl=function(){return this.localConfig.configServerUrl?this.localConfig.configServerUrl:this.localConfig.serverZone===w.STAGING?"https://sr-client-cfg.stag2.amplitude.com/config":this.localConfig.serverZone===w.EU?"https://sr-client-cfg.eu.amplitude.com/config":"https://sr-client-cfg.amplitude.com/config"},e.prototype.completeRequest=function(e){var t=e.err,n=e.success;if(t)throw Error(t);n&&this.localConfig.loggerProvider.log(n)},e}(),ir=function(e){var t=e.localConfig,n=e.configKeys;return A(void 0,void 0,void 0,function(){return N(this,function(e){return[2,new it({localConfig:t,configKeys:n})]})})},ii="medium",io=function(e,t,n){switch(t){case"light":if("input"!==e)return!0;var r,i,o=n?(i=(r=n).type,r.hasAttribute("data-rr-is-password")?"password":i?i.toLowerCase():null):"";if(!o)return!1;if(["password","hidden","email","tel"].includes(o)||n.autocomplete.startsWith("cc-"))return!0;return!1;case"medium":case"conservative":return!0;default:return io(e,ii,n)}},ia=function(e,t,n){var r,i,o;if(void 0===t&&(t={defaultMaskLevel:ii}),n){if(n.closest("."+r5)||(null!=(r=t.maskSelector)?r:[]).some(function(e){return n.closest(e)}))return!0;if(n.closest(".amp-unmask")||(null!=(i=t.unmaskSelector)?i:[]).some(function(e){return n.closest(e)}))return!1}return io(e,null!=(o=t.defaultMaskLevel)?o:ii,n)},is=function(e,t){return function(n,r){return ia(e,t,r)?n.replace(/[^\s]/g,"*"):n}},il=function(e){var t=0;if(0===e.length)return t;for(var n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n)|0;return t},iu=function(){var e=j();return(null==e?void 0:e.location)?e.location.href:""},ic=function(e,t){return t||(e===b.STAGING?"https://api-sr.stag2.amplitude.com/sessions/v2/track":e===b.EU?"https://api-sr.eu.amplitude.com/sessions/v2/track":"https://api-sr.amplitude.com/sessions/v2/track")},id=function(){return A(void 0,void 0,void 0,function(){var e,t,n,r;return N(this,function(i){switch(i.label){case 0:if(i.trys.push([0,3,,4]),!(e=j()))return[3,2];return[4,e.navigator.storage.estimate()];case 1:return n=(t=i.sent()).usage,r=t.quota,[2,{totalStorageSize:n?Math.round(n/1024):0,percentOfQuota:n&&r?Math.round((n/r+Number.EPSILON)*1e3)/1e3:0,usageDetails:JSON.stringify(t.usageDetails)}];case 2:return[3,4];case 3:return i.sent(),[3,4];case 4:return[2,{totalStorageSize:0,percentOfQuota:0,usageDetails:""}]}})})},ih=function(e){var t=P({},e),n=t.apiKey;return t.apiKey="****".concat(n.substring(n.length-4)),t},ip=function(e,t){var n=document.createDocumentFragment(),r=function(e){if(void 0===e&&(e=[]),"string"==typeof e&&(e=[e]),0!==(e=e.filter(function(e){try{n.querySelector(e)}catch(n){return t.warn('[session-replay-browser] omitting selector "'.concat(e,'" because it is invalid')),!1}return!0})).length)return e};return e.blockSelector=r(e.blockSelector),e.maskSelector=r(e.maskSelector),e.unmaskSelector=r(e.unmaskSelector),e},ig=function(){function e(e,t){this.localConfig=t,this.remoteConfigFetch=e}return e.prototype.generateJoinedConfig=function(e){var t,n,r;return A(this,void 0,void 0,function(){var i,o,a,s,l,u,c,d,f,h,p,g,v,m,b,y,x,w,S,E;return N(this,function(k){switch(k.label){case 0:(i=P({},this.localConfig)).optOut=this.localConfig.optOut,i.captureEnabled=!0,k.label=1;case 1:return k.trys.push([1,6,,7]),[4,this.remoteConfigFetch.getRemoteConfig("sessionReplay","sr_sampling_config",e)];case 2:return a=k.sent(),[4,this.remoteConfigFetch.getRemoteConfig("sessionReplay","sr_privacy_config",e)];case 3:return s=k.sent(),l=i,[4,this.remoteConfigFetch.getRemoteConfig("sessionReplay","sr_interaction_config",e)];case 4:return l.interactionConfig=k.sent(),u=i,[4,this.remoteConfigFetch.getRemoteConfig("sessionReplay","sr_logging_config",e)];case 5:return u.loggingConfig=k.sent(),(a||s)&&(o={},a&&(o.sr_sampling_config=a),s&&(o.sr_privacy_config=s)),[3,7];case 6:return c=k.sent(),this.localConfig.loggerProvider.warn(c.message),i.captureEnabled=!1,[3,7];case 7:if(!o)return[2,{localConfig:this.localConfig,joinedConfig:i,remoteConfig:o}];if(d=o.sr_sampling_config,f=o.sr_privacy_config,d&&Object.keys(d).length>0?(Object.prototype.hasOwnProperty.call(d,"capture_enabled")?i.captureEnabled=d.capture_enabled:i.captureEnabled=!1,Object.prototype.hasOwnProperty.call(d,"sample_rate")&&(i.sampleRate=d.sample_rate)):(i.captureEnabled=!0,this.localConfig.loggerProvider.debug("Remote config successfully fetched, but no values set for project, Session Replay capture enabled.")),f){h=null!=(t=i.privacyConfig)?t:{},p={defaultMaskLevel:null!=(r=null!=(n=f.defaultMaskLevel)?n:h.defaultMaskLevel)?r:"medium",blockSelector:[],maskSelector:[],unmaskSelector:[]},v=P(P({},(g=function(e){var t,n,r,i,o,a,s,l,u,c={};"string"==typeof e.blockSelector&&(e.blockSelector=[e.blockSelector]);try{for(var d=M(null!=(s=e.blockSelector)?s:[]),f=d.next();!f.done;f=d.next()){var h=f.value;c[h]="block"}}catch(e){t={error:e}}finally{try{f&&!f.done&&(n=d.return)&&n.call(d)}finally{if(t)throw t.error}}try{for(var p=M(null!=(l=e.maskSelector)?l:[]),g=p.next();!g.done;g=p.next()){var h=g.value;c[h]="mask"}}catch(e){r={error:e}}finally{try{g&&!g.done&&(i=p.return)&&i.call(p)}finally{if(r)throw r.error}}try{for(var v=M(null!=(u=e.unmaskSelector)?u:[]),m=v.next();!m.done;m=v.next()){var h=m.value;c[h]="unmask"}}catch(e){o={error:e}}finally{try{m&&!m.done&&(a=v.return)&&a.call(v)}finally{if(o)throw o.error}}return c})(h)),g(f));try{for(b=(m=M(Object.entries(v))).next();!b.done;b=m.next())x=(y=L(b.value,2))[0],w=y[1],"mask"===w?p.maskSelector.push(x):"block"===w?p.blockSelector.push(x):"unmask"===w&&p.unmaskSelector.push(x)}catch(e){S={error:e}}finally{try{b&&!b.done&&(E=m.return)&&E.call(m)}finally{if(S)throw S.error}}i.privacyConfig=ip(p,this.localConfig.loggerProvider)}return this.localConfig.loggerProvider.debug(JSON.stringify({name:"session replay joined config",config:ih(i)},null,2)),[2,{localConfig:this.localConfig,joinedConfig:i,remoteConfig:o}]}})})},e}(),iv="Failed to store session replay events in IndexedDB",im="1.22.10",ib=function(){function e(e){var t=e.trackServerUrl,n=e.loggerProvider,r=e.payloadBatcher;this.storageKey="",this.retryTimeout=1e3,this.scheduled=null,this.queue=[],this.loggerProvider=n,this.payloadBatcher=r||function(e){return e},this.trackServerUrl=t}return e.prototype.sendEventsList=function(e){this.addToQueue(P(P({},e),{attempts:0,timeout:0}))},e.prototype.addToQueue=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];t.filter(function(t){return t.attempts<(t.flushMaxRetries||0)?(t.attempts+=1,!0):(e.completeRequest({context:t,err:"Session replay event batch rejected due to exceeded retry count"}),!1)}).forEach(function(t){if(e.queue=e.queue.concat(t),0===t.timeout)return void e.schedule(0);setTimeout(function(){t.timeout=0,e.schedule(0)},t.timeout)})},e.prototype.schedule=function(e){var t=this;this.scheduled||(this.scheduled=setTimeout(function(){t.flush(!0).then(function(){t.queue.length>0&&t.schedule(e)})},e))},e.prototype.flush=function(e){return void 0===e&&(e=!1),A(this,void 0,void 0,function(){var t,n,r=this;return N(this,function(i){switch(i.label){case 0:return t=[],n=[],this.queue.forEach(function(e){return 0===e.timeout?t.push(e):n.push(e)}),this.queue=n,this.scheduled&&(clearTimeout(this.scheduled),this.scheduled=null),[4,Promise.all(t.map(function(t){return r.send(t,e)}))];case 1:return i.sent(),[2]}})})},e.prototype.send=function(e,t){var n,r;return void 0===t&&(t=!0),A(this,void 0,void 0,function(){var i,o,a,s,l,u,c,d,f,h,p,g;return N(this,function(v){switch(v.label){case 0:if(!(i=e.apiKey))return[2,this.completeRequest({context:e,err:"Session replay event batch not sent due to missing api key"})];if(!(o=e.deviceId))return[2,this.completeRequest({context:e,err:"Session replay event batch not sent due to missing device ID"})];if(a=iu(),s=im,l=e.sampleRate,u=new URLSearchParams({device_id:o,session_id:"".concat(e.sessionId),type:"".concat(e.type)}),c="".concat((null==(n=e.version)?void 0:n.type)||"standalone","/").concat((null==(r=e.version)?void 0:r.version)||s),0===(d=this.payloadBatcher({version:1,events:e.events})).events.length)return this.completeRequest({context:e}),[2];v.label=1;case 1:return v.trys.push([1,3,,4]),f={headers:{"Content-Type":"application/json",Accept:"*/*",Authorization:"Bearer ".concat(i),"X-Client-Version":s,"X-Client-Library":c,"X-Client-Url":a.substring(0,1e3),"X-Client-Sample-Rate":"".concat(l)},body:JSON.stringify(d),method:"POST"},[4,fetch("".concat(ic(e.serverZone,this.trackServerUrl),"?").concat(u.toString()),f)];case 2:if(null===(h=v.sent()))return this.completeRequest({context:e,err:"Unexpected error occurred"}),[2];if(t)this.handleReponse(h.status,e);else{p="";try{p=JSON.stringify(h.body,null,2)}catch(e){}this.completeRequest({context:e,success:"".concat(h.status,": ").concat(p)})}return[3,4];case 3:return g=v.sent(),this.completeRequest({context:e,err:g}),[3,4];case 4:return[2]}})})},e.prototype.handleReponse=function(e,t){switch(new eG().buildStatus(e)){case o.Success:this.handleSuccessResponse(t);break;case o.Failed:this.handleOtherResponse(t);break;default:this.completeRequest({context:t,err:"Network error occurred, event batch rejected"})}},e.prototype.handleSuccessResponse=function(e){var t=Math.round(new Blob(e.events).size/1024);this.completeRequest({context:e,success:"Session replay event batch tracked successfully for session id ".concat(e.sessionId,", size of events: ").concat(t," KB")})},e.prototype.handleOtherResponse=function(e){this.addToQueue(P(P({},e),{timeout:e.attempts*this.retryTimeout}))},e.prototype.completeRequest=function(e){var t=e.context,n=e.err,r=e.success;t.onComplete(),n?this.loggerProvider.warn(n):r&&this.loggerProvider.log(r)},e}();let iy=(e,t)=>t.some(t=>e instanceof t),ix=new WeakMap,iw=new WeakMap,iS=new WeakMap,iE={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return ix.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return ik(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function ik(e){if(e instanceof IDBRequest){let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",o)},i=()=>{t(ik(e.result)),r()},o=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",o)});return iS.set(t,e),t}if(iw.has(e))return iw.get(e);let t=function(e){if("function"==typeof e)return(i||(i=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(iC(this),t),ik(this.request)}:function(...t){return ik(e.apply(iC(this),t))};return(e instanceof IDBTransaction&&function(e){if(ix.has(e))return;let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",o),e.removeEventListener("abort",o)},i=()=>{t(),r()},o=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",o),e.addEventListener("abort",o)});ix.set(e,t)}(e),iy(e,r||(r=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])))?new Proxy(e,iE):e}(e);return t!==e&&(iw.set(e,t),iS.set(t,e)),t}let iC=e=>iS.get(e),iO=["get","getKey","getAll","getAllKeys","count"],iI=["put","add","delete","clear"],i_=new Map;function iT(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(i_.get(t))return i_.get(t);let n=t.replace(/FromIndex$/,""),r=t!==n,i=iI.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||iO.includes(n)))return;let o=async function(e,...t){let o=this.transaction(e,i?"readwrite":"readonly"),a=o.store;return r&&(a=a.index(t.shift())),(await Promise.all([a[n](...t),i&&o.done]))[0]};return i_.set(t,o),o}iE=(e=>({...e,get:(t,n,r)=>iT(t,n)||e.get(t,n,r),has:(t,n)=>!!iT(t,n)||e.has(t,n)}))(iE);let iP=["continue","continuePrimaryKey","advance"],iR={},iA=new WeakMap,iN=new WeakMap,iM={get(e,t){if(!iP.includes(t))return e[t];let n=iR[t];return n||(n=iR[t]=function(...e){iA.set(this,iN.get(this)[t](...e))}),n}};async function*iL(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;let n=new Proxy(t,iM);for(iN.set(n,t),iS.set(n,iC(t));t;)yield n,t=await (iA.get(n)||t.continue()),iA.delete(n)}function iV(e,t){return t===Symbol.asyncIterator&&iy(e,[IDBIndex,IDBObjectStore,IDBCursor])||"iterate"===t&&iy(e,[IDBIndex,IDBObjectStore])}iE=(e=>({...e,get:(t,n,r)=>iV(t,n)?iL:e.get(t,n,r),has:(t,n)=>iV(t,n)||e.has(t,n)}))(iE);var iD=function(){function e(e){var t,n,r,i=this;this.minInterval=500,this.maxInterval=1e4,this.maxPersistedEventsSize=1e6,this.interval=this.minInterval,this._timeAtLastSplit=Date.now(),this.shouldSplitEventsList=function(e,t){var n=new Blob([t]).size;return new Blob(e).size+n>=i.maxPersistedEventsSize||Date.now()-i.timeAtLastSplit>i.interval&&!!e.length&&(i.interval=Math.min(i.maxInterval,i.interval+i.minInterval),i._timeAtLastSplit=Date.now(),!0)},this.loggerProvider=e.loggerProvider,this.minInterval=null!=(t=e.minInterval)?t:this.minInterval,this.maxInterval=null!=(n=e.maxInterval)?n:this.maxInterval,this.maxPersistedEventsSize=null!=(r=e.maxPersistedEventsSize)?r:this.maxPersistedEventsSize}return Object.defineProperty(e.prototype,"timeAtLastSplit",{get:function(){return this._timeAtLastSplit},enumerable:!1,configurable:!0}),e}();!function(e){e.RECORDING="recording",e.SENT="sent"}(S||(S={}));var iF="sessionCurrentSequence",ij="sequencesToSend",iz=function(){var e=j();return new Promise(function(t,n){if(!e)return n(Error("Global scope not found"));if(!e.indexedDB)return n(Error("Session Replay: cannot find indexedDB"));try{var r=e.indexedDB.open("keyval-store");r.onupgradeneeded=function(){1===r.result.version&&(r.result.close(),r.transaction&&r.transaction.abort(),e.indexedDB.deleteDatabase("keyval-store"),t())},r.onsuccess=function(){t(r.result)}}catch(e){n(e)}})},iB=function(e){return A(void 0,void 0,void 0,function(){return N(this,function(t){switch(t.label){case 0:if(!(e.length>0))return[3,2];return[4,Promise.all(e.splice(0,10))];case 1:return t.sent(),[3,0];case 2:return[2]}})})},iU=function(e){var t,n;return e.objectStoreNames.contains(iF)||(n=e.createObjectStore(iF,{keyPath:"sessionId"})),e.objectStoreNames.contains(ij)||(t=e.createObjectStore(ij,{keyPath:"sequenceId",autoIncrement:!0})).createIndex("sessionId","sessionId"),{sequencesStore:t,currentSequenceStore:n}},iW=function(e){function t(t){var n=e.call(this,t)||this;return n.getSequencesToSend=function(){return A(n,void 0,void 0,function(){var e,t,n,r,i,o;return N(this,function(a){switch(a.label){case 0:return a.trys.push([0,5,,6]),e=[],[4,this.db.transaction("sequencesToSend").store.openCursor()];case 1:t=a.sent(),a.label=2;case 2:if(!t)return[3,4];return r=(n=t.value).sessionId,i=n.events,e.push({events:i,sequenceId:t.key,sessionId:r}),[4,t.continue()];case 3:return t=a.sent(),[3,2];case 4:return[2,e];case 5:return o=a.sent(),this.loggerProvider.warn("".concat(iv,": ").concat(o)),[3,6];case 6:return[2,void 0]}})})},n.storeCurrentSequence=function(e){return A(n,void 0,void 0,function(){var t,n,r;return N(this,function(i){switch(i.label){case 0:return i.trys.push([0,4,,5]),[4,this.db.get(iF,e)];case 1:if(!(t=i.sent()))return[2,void 0];return[4,this.db.put(ij,{sessionId:e,events:t.events})];case 2:return n=i.sent(),[4,this.db.put(iF,{sessionId:e,events:[]})];case 3:return i.sent(),[2,P(P({},t),{sessionId:e,sequenceId:n})];case 4:return r=i.sent(),this.loggerProvider.warn("".concat(iv,": ").concat(r)),[3,5];case 5:return[2,void 0]}})})},n.addEventToCurrentSequence=function(e,t){return A(n,void 0,void 0,function(){var n,r,i,o,a,s;return N(this,function(l){switch(l.label){case 0:return l.trys.push([0,10,,11]),[4,(n=this.db.transaction(iF,"readwrite")).store.get(e)];case 1:if(r=l.sent())return[3,3];return[4,n.store.put({sessionId:e,events:[t]})];case 2:return l.sent(),[2];case 3:if(i=void 0,!this.shouldSplitEventsList(r.events,t))return[3,5];return i=r.events,[4,n.store.put({sessionId:e,events:[t]})];case 4:return l.sent(),[3,7];case 5:return o=r.events.concat(t),[4,n.store.put({sessionId:e,events:o})];case 6:l.sent(),l.label=7;case 7:return[4,n.done];case 8:if(l.sent(),!i)return[2,void 0];return[4,this.storeSendingEvents(e,i)];case 9:if(!(a=l.sent()))return[2,void 0];return[2,{events:i,sessionId:e,sequenceId:a}];case 10:return s=l.sent(),this.loggerProvider.warn("".concat(iv,": ").concat(s)),[3,11];case 11:return[2,void 0]}})})},n.storeSendingEvents=function(e,t){return A(n,void 0,void 0,function(){var n;return N(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.db.put(ij,{sessionId:e,events:t})];case 1:return[2,r.sent()];case 2:return n=r.sent(),this.loggerProvider.warn("".concat(iv,": ").concat(n)),[3,3];case 3:return[2,void 0]}})})},n.cleanUpSessionEventsStore=function(e,t){return A(n,void 0,void 0,function(){var e;return N(this,function(n){switch(n.label){case 0:if(!t)return[2];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.db.delete(ij,t)];case 2:return n.sent(),[3,4];case 3:return e=n.sent(),this.loggerProvider.warn("".concat(iv,": ").concat(e)),[3,4];case 4:return[2]}})})},n.transitionFromKeyValStore=function(e){return A(n,void 0,void 0,function(){var t,n,r,i,o,a,s,l=this;return N(this,function(u){switch(u.label){case 0:return u.trys.push([0,6,,7]),[4,iz()];case 1:if(!(t=u.sent()))return[2];n=function(e,t){return A(l,void 0,void 0,function(){var n,r,i=this;return N(this,function(o){switch(o.label){case 0:return n=t.sessionSequences,r=[],Object.keys(n).forEach(function(o){var a=parseInt(o,10),s=n[a];if(a===t.currentSequenceId){var l=s.events.map(function(t){return A(i,void 0,void 0,function(){return N(this,function(n){return[2,this.addEventToCurrentSequence(e,t)]})})});r.concat(l)}else s.status!==S.SENT&&r.push(i.storeSendingEvents(e,s.events))}),[4,iB(r)];case 1:return o.sent(),[2]}})})},r="".concat(J,"_").concat(this.apiKey.substring(0,10)),u.label=2;case 2:return u.trys.push([2,4,,5]),i=t.transaction("keyval").objectStore("keyval").getAll(r),[4,new Promise(function(t){i.onsuccess=function(r){return A(l,void 0,void 0,function(){var i,o,a,s=this;return N(this,function(l){switch(l.label){case 0:if(!(o=(i=r&&r.target.result)&&i[0]))return[3,2];return a=[],Object.keys(o).forEach(function(t){var r=parseInt(t,10),i=o[r];if(e===r)a.push(n(r,i));else{var l=i.sessionSequences;Object.keys(l).forEach(function(e){var t=parseInt(e,10);l[t].status!==S.SENT&&a.push(s.storeSendingEvents(r,l[t].events))})}}),[4,iB(a)];case 1:l.sent(),l.label=2;case 2:return t(),[2]}})})}})];case 3:return u.sent(),(o=j())&&o.indexedDB.deleteDatabase("keyval-store"),[3,5];case 4:return a=u.sent(),this.loggerProvider.warn("Failed to transition session replay events from keyval to new store: ".concat(a)),[3,5];case 5:return[3,7];case 6:return s=u.sent(),this.loggerProvider.warn("Failed to access keyval store: ".concat(s,". For more information, visit: https://www.docs.developers.amplitude.com/session-replay/sdks/standalone/#indexeddb-best-practices")),[3,7];case 7:return[2]}})})},n.apiKey=t.apiKey,n.db=t.db,n}return T(t,e),t.new=function(e,n,r){return A(this,void 0,void 0,function(){var i,o,a,s;return N(this,function(l){switch(l.label){case 0:var u;return l.trys.push([0,3,,4]),i="replay"===e?"":"_".concat(e),[4,(u="".concat(n.apiKey.substring(0,10),"_amp_session_replay_events").concat(i),A(void 0,void 0,void 0,function(){return N(this,function(e){switch(e.label){case 0:return[4,function(e,t,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){let a=indexedDB.open(e,1),s=ik(a);return r&&a.addEventListener("upgradeneeded",e=>{r(ik(a.result),e.oldVersion,e.newVersion,ik(a.transaction),e)}),n&&a.addEventListener("blocked",e=>n(e.oldVersion,e.newVersion,e)),s.then(e=>{o&&e.addEventListener("close",()=>o()),i&&e.addEventListener("versionchange",e=>i(e.oldVersion,e.newVersion,e))}).catch(()=>{}),s}(u,0,{upgrade:iU})];case 1:return[2,e.sent()]}})}))];case 1:return o=l.sent(),[4,(a=new t(P(P({},n),{db:o}))).transitionFromKeyValStore(r)];case 2:return l.sent(),[2,a];case 3:return s=l.sent(),n.loggerProvider.warn("".concat(iv,": ").concat(s)),[3,4];case 4:return[2]}})})},t.prototype.getCurrentSequenceEvents=function(e){return A(this,void 0,void 0,function(){var t,n,r,i,o,a;return N(this,function(s){switch(s.label){case 0:if(!e)return[3,2];return[4,this.db.get("sessionCurrentSequence",e)];case 1:if(!(t=s.sent()))return[2,void 0];return[2,[t]];case 2:n=[],s.label=3;case 3:return s.trys.push([3,8,9,10]),[4,this.db.getAll("sessionCurrentSequence")];case 4:i=(r=M.apply(void 0,[s.sent()])).next(),s.label=5;case 5:if(i.done)return[3,7];t=i.value,n.push(t),s.label=6;case 6:return i=r.next(),[3,5];case 7:return[3,10];case 8:return o={error:s.sent()},[3,10];case 9:try{i&&!i.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}return[7];case 10:return[2,n]}})})},t}(iD),iH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.finalizedSequences={},t.sequences={},t.sequenceId=0,t}return T(t,e),t.prototype.resetCurrentSequence=function(e){this.sequences[e]=[]},t.prototype.addSequence=function(e){var t=this.sequenceId++,n=V([],L(this.sequences[e]),!1);return this.finalizedSequences[t]={sessionId:e,events:n},this.resetCurrentSequence(e),{sequenceId:t,events:n,sessionId:e}},t.prototype.getSequencesToSend=function(){return A(this,void 0,void 0,function(){return N(this,function(e){return[2,Object.entries(this.finalizedSequences).map(function(e){var t=L(e,2),n=t[0],r=t[1],i=r.sessionId,o=r.events;return{sequenceId:Number(n),sessionId:i,events:o}})]})})},t.prototype.storeCurrentSequence=function(e){return A(this,void 0,void 0,function(){return N(this,function(t){return this.sequences[e]?[2,this.addSequence(e)]:[2,void 0]})})},t.prototype.addEventToCurrentSequence=function(e,t){return A(this,void 0,void 0,function(){var n;return N(this,function(r){return this.sequences[e]||this.resetCurrentSequence(e),this.shouldSplitEventsList(this.sequences[e],t)&&(n=this.addSequence(e)),this.sequences[e].push(t),[2,n]})})},t.prototype.storeSendingEvents=function(e,t){return A(this,void 0,void 0,function(){return N(this,function(n){return this.finalizedSequences[this.sequenceId]={sessionId:e,events:t},[2,this.sequenceId++]})})},t.prototype.cleanUpSessionEventsStore=function(e,t){return A(this,void 0,void 0,function(){return N(this,function(e){return void 0!==t&&delete this.finalizedSequences[t],[2]})})},t}(iD),iq=function(e){var t=e.config,n=e.sessionId,r=e.minInterval,i=e.maxInterval,o=e.type,a=e.payloadBatcher,s=e.storeType;return A(void 0,void 0,void 0,function(){var e,l,u,c,d;function f(t){return void 0===t&&(t=!1),A(this,void 0,void 0,function(){return N(this,function(n){return[2,e.flush(t)]})})}return N(this,function(h){switch(h.label){case 0:if(e=new ib(P(P({},t),{loggerProvider:t.loggerProvider,payloadBatcher:a})),l=function(){return new iH({loggerProvider:t.loggerProvider,maxInterval:i,minInterval:r})},"idb"!==s)return[3,2];return[4,A(void 0,void 0,void 0,function(){var e;return N(this,function(a){switch(a.label){case 0:return[4,iW.new(o,{loggerProvider:t.loggerProvider,minInterval:r,maxInterval:i,apiKey:t.apiKey},n)];case 1:return e=a.sent(),t.loggerProvider.log("Failed to initialize idb store, falling back to memory store."),[2,null!=e?e:l()]}})})];case 1:return c=h.sent(),[3,3];case 2:c=l(),h.label=3;case 3:return u=c,d=function(n){var r=n.events,i=n.sessionId,a=n.deviceId,s=n.sequenceId;t.debugMode&&id().then(function(e){var n=e.totalStorageSize,r=e.percentOfQuota,i=e.usageDetails;t.loggerProvider.debug("Total storage size: ".concat(n," KB, percentage of quota: ").concat(r,"%, usage details: ").concat(i))}).catch(function(){}),e.sendEventsList({events:r,sessionId:i,flushMaxRetries:t.flushMaxRetries,apiKey:t.apiKey,deviceId:a,sampleRate:t.sampleRate,serverZone:t.serverZone,version:t.version,type:o,onComplete:function(){return A(void 0,void 0,void 0,function(){return N(this,function(e){switch(e.label){case 0:return[4,u.cleanUpSessionEventsStore(i,s)];case 1:return e.sent(),[2]}})})}})},[2,{sendCurrentSequenceEvents:function(e){var n=e.sessionId,r=e.deviceId;u.storeCurrentSequence(n).then(function(e){e&&d({sequenceId:e.sequenceId,events:e.events,sessionId:e.sessionId,deviceId:r})}).catch(function(e){t.loggerProvider.warn("Failed to get current sequence of session replay events for session:",e)})},addEvent:function(e){var n=e.event,r=e.sessionId,i=e.deviceId;u.addEventToCurrentSequence(r,n.data).then(function(e){return e&&d({sequenceId:e.sequenceId,events:e.events,sessionId:e.sessionId,deviceId:i})}).catch(function(e){t.loggerProvider.warn("Failed to add event to session replay capture:",e)})},sendStoredEvents:function(e){var t=e.deviceId;return A(void 0,void 0,void 0,function(){var e;return N(this,function(n){switch(n.label){case 0:return[4,u.getSequencesToSend()];case 1:return(e=n.sent())&&e.forEach(function(e){d({sequenceId:e.sequenceId,events:e.events,sessionId:e.sessionId,deviceId:t})}),[2]}})})},flush:f}]}})})},i$=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=new Map;e.forEach(function(e){n.set(e.name,e.manager)}),this.managers=n}return e.prototype.sendStoredEvents=function(e){return A(this,void 0,void 0,function(){var t;return N(this,function(n){switch(n.label){case 0:return t=[],this.managers.forEach(function(n){t.push(n.sendStoredEvents(e))}),[4,Promise.all(t)];case 1:return n.sent(),[2]}})})},e.prototype.addEvent=function(e){var t,n=e.sessionId,r=e.event,i=e.deviceId;null==(t=this.managers.get(r.type))||t.addEvent({sessionId:n,event:r,deviceId:i})},e.prototype.sendCurrentSequenceEvents=function(e){var t=e.sessionId,n=e.deviceId;this.managers.forEach(function(e){e.sendCurrentSequenceEvents({sessionId:t,deviceId:n})})},e.prototype.flush=function(e){return A(this,void 0,void 0,function(){var t;return N(this,function(n){switch(n.label){case 0:return t=[],this.managers.forEach(function(n){t.push(n.flush(e))}),[4,Promise.all(t)];case 1:return n.sent(),[2]}})})},e}(),iG=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(iG||{}),iK=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(iK||{}),iY=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(iY||{}),iX=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(iX||{}),iQ=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(iQ||{}),iJ=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(iJ||{}),iZ=(e=>(e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast",e.CustomEvent="custom-event",e.Flush="flush",e.StateChange="state-change",e.PlayBack="play-back",e.Destroy="destroy",e))(iZ||{}),i0=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(i0||{});function i1(e,t,n){for(var r=null,i=[],o=e,a=0;o&&"break"!==function(){var e,s,l,u,c=new Date().getTime()-C.getTime();if(void 0!==E.timeoutMs&&c>E.timeoutMs)throw Error("Timeout: Can't find a unique selector after ".concat(c,"ms"));var d=i9((e=o.getAttribute("id"))&&E.idName(e)?{name:"#"+CSS.escape(e),penalty:0}:null)||i9.apply(void 0,V([],L(Array.from(o.attributes).filter(function(e){return E.attr(e.name,e.value)}).map(function(e){return{name:"[".concat(CSS.escape(e.name),'="').concat(CSS.escape(e.value),'"]'),penalty:.5}})),!1))||i9.apply(void 0,V([],L(Array.from(o.classList).filter(E.className).map(function(e){return{name:"."+CSS.escape(e),penalty:1}})),!1))||i9((s=o.tagName.toLowerCase(),E.tagName(s)?{name:s,penalty:2}:null))||[i6()],f=function(e){var t=e.parentNode;if(!t)return null;var n=t.firstChild;if(!n)return null;for(var r=0;n&&(n.nodeType===Node.ELEMENT_NODE&&r++,n!==e);)n=n.nextSibling;return r}(o);if("all"==t)f&&(d=d.concat(d.filter(i7).map(function(e){return i8(e,f)})));else if("two"==t)d=d.slice(0,1),f&&(d=d.concat(d.filter(i7).map(function(e){return i8(e,f)})));else if("one"==t){var h=L(d=d.slice(0,1),1)[0];f&&i7(h)&&(d=[i8(h,f)])}else"none"==t&&(d=[i6()],f&&(d=[i8(d[0],f)]));try{for(var p=(l=void 0,M(d)),g=p.next();!g.done;g=p.next()){var h=g.value;h.level=a}}catch(e){l={error:e}}finally{try{g&&!g.done&&(u=p.return)&&u.call(p)}finally{if(l)throw l.error}}if(i.push(d),i.length>=E.seedMinLength&&(r=i2(i,n)))return"break";o=o.parentElement,a++}(););return(r||(r=i2(i,n)),!r&&n)?n():r}function i2(e,t){var n,r,i=ot(function e(t,n){var r,i,o,a,s;return void 0===n&&(n=[]),N(this,function(l){switch(l.label){case 0:if(!(t.length>0))return[3,9];l.label=1;case 1:l.trys.push([1,6,7,8]),i=(r=M(t[0])).next(),l.label=2;case 2:if(i.done)return[3,5];return o=i.value,[5,M(e(t.slice(1,t.length),n.concat(o)))];case 3:l.sent(),l.label=4;case 4:return i=r.next(),[3,2];case 5:return[3,8];case 6:return a={error:l.sent()},[3,8];case 7:try{i&&!i.done&&(s=r.return)&&s.call(r)}finally{if(a)throw a.error}return[7];case 8:return[3,11];case 9:return[4,n];case 10:l.sent(),l.label=11;case 11:return[2]}})}(e));if(i.length>E.threshold)return t?t():null;try{for(var o=M(i),a=o.next();!a.done;a=o.next()){var s=a.value;if(i4(s))return s}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return null}function i5(e){for(var t=e[0],n=t.name,r=1;r<e.length;r++){var i=e[r].level||0;n=t.level===i-1?"".concat(e[r].name," > ").concat(n):"".concat(e[r].name," ").concat(n),t=e[r]}return n}function i3(e){return e.map(function(e){return e.penalty}).reduce(function(e,t){return e+t},0)}function i4(e){var t=i5(e);switch(k.querySelectorAll(t).length){case 0:throw Error("Can't select any node with this selector: ".concat(t));case 1:return!0;default:return!1}}function i6(){return{name:"*",penalty:3}}function i8(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function i7(e){return"html"!==e.name&&!e.name.startsWith("#")}function i9(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.filter(oe);return n.length>0?n:null}function oe(e){return null!=e}function ot(e){return V([],L(e),!1).sort(function(e,t){return i3(e)-i3(t)})}var on=function(e){var t=e.version,n=e.events,r=[];return n.forEach(function(e){var t=JSON.parse(e);t.count=1,"click"===t.type&&r.push(t)}),{version:t,events:r}},or=function(e){var t=e.version,n=e.events,r=[];return n.forEach(function(e){var t=JSON.parse(e);"click"===t.type&&r.push(t)}),{version:t,events:Object.values(r.reduce(function(e,t){var n=t.x,r=t.y,i=t.selector,o=t.timestamp,a=o-o%36e5,s="".concat(n,":").concat(r,":").concat(null!=i?i:"",":").concat(a);return e[s]?e[s].count+=1:e[s]=P(P({},t),{timestamp:a,count:1}),e},{}))}},oi=function(e,t){var n=t.eventsManager,r=t.sessionId,i=t.deviceIdFn;return function(t){if(t.type!==iY.Click)return;var o,a=j();if(a){var s=a.location,l=a.innerHeight,u=a.innerWidth;if(s){var c=t.x,d=t.y;if(void 0!==c&&void 0!==d){var f=r8.g1.mirror.getNode(t.id);if(f)try{o=function(e,t){if(C=new Date,e.nodeType!==Node.ELEMENT_NODE)throw Error("Can't generate CSS selector for non-element node type.");if("html"===e.tagName.toLowerCase())return"html";var n,r,i={root:document.body,idName:function(e){return!0},className:function(e){return!0},tagName:function(e){return!0},attr:function(e,t){return!1},seedMinLength:1,optimizedMinLength:2,threshold:1e3,maxNumberOfTries:1e4,timeoutMs:void 0};n=(E=P(P({},i),void 0)).root,r=i,k=n.nodeType===Node.DOCUMENT_NODE?n:n===r.root?n.ownerDocument:n;var o=i1(e,"all",function(){return i1(e,"two",function(){return i1(e,"one",function(){return i1(e,"none")})})});if(o){var a=ot(function e(t,n,r){var i,o,a;return void 0===r&&(r={counter:0,visited:new Map}),N(this,function(s){switch(s.label){case 0:if(!(t.length>2&&t.length>E.optimizedMinLength))return[3,5];i=1,s.label=1;case 1:var l,u;if(!(i<t.length-1))return[3,5];if(r.counter>E.maxNumberOfTries||(r.counter+=1,(o=V([],L(t),!1)).splice(i,1),a=i5(o),r.visited.has(a)))return[2];if(!(i4(o)&&(l=o,u=n,k.querySelector(i5(l))===u)))return[3,4];return[4,o];case 2:return s.sent(),r.visited.set(a,!0),[5,M(e(o,n,r))];case 3:s.sent(),s.label=4;case 4:return i++,[3,1];case 5:return[2]}})}(o,e));return a.length>0&&(o=a[0]),i5(o)}throw Error("Selector was not found.")}(f)}catch(t){e.debug("error resolving selector from finder")}var h=r8.Wp.getWindowScroll(a),p={x:c+h.left,y:d+h.top,selector:o,viewportHeight:l,viewportWidth:u,pageUrl:s.href,timestamp:Date.now(),type:"click"},g=i();g&&n.addEvent({sessionId:r,event:{type:"interaction",data:JSON.stringify(p)},deviceId:g})}}}}},oo=function(){function e(e,t){var n=j();n&&n.navigator&&"function"==typeof n.navigator.sendBeacon?this.sendBeacon=function(e,t){try{if(n.navigator.sendBeacon(e,JSON.stringify(t)))return!0}catch(e){}return!1}:this.sendBeacon=function(){return!1},this.sendXhr=function(e,t){var n=new XMLHttpRequest;return n.open("POST",e,!0),n.setRequestHeader("Accept","*/*"),n.send(JSON.stringify(t)),!0},this.basePageUrl=ic(t.serverZone,t.trackServerUrl),this.apiKey=t.apiKey,this.context=e}return e.prototype.send=function(e,t){var n=this.context,r=n.sessionId,i=n.type,o=new URLSearchParams({device_id:e,session_id:String(r),type:String(i),api_key:this.apiKey}),a="".concat(this.basePageUrl,"?").concat(o.toString());this.sendBeacon(a,t)||this.sendXhr(a,t)},e}(),oa=r8.Wp.getWindowHeight,os=r8.Wp.getWindowWidth,ol=function(){function e(e){var t=this;this.timestamp=Date.now(),this.hook=function(e){t.update(e)},this.send=function(e){return function(n){var r=e(),i=j();i&&r&&t.transport.send(r,{version:1,events:[{maxScrollX:t._maxScrollX,maxScrollY:t._maxScrollY,maxScrollWidth:t._maxScrollWidth,maxScrollHeight:t._maxScrollHeight,viewportHeight:oa(),viewportWidth:os(),pageUrl:i.location.href,timestamp:t.timestamp,type:"scroll"}]})}},this._maxScrollX=0,this._maxScrollY=0,this._maxScrollWidth=os(),this._maxScrollHeight=oa(),this.transport=e}return e.default=function(t,n){return new e(new oo(t,n))},Object.defineProperty(e.prototype,"maxScrollX",{get:function(){return this._maxScrollX},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxScrollY",{get:function(){return this._maxScrollY},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxScrollWidth",{get:function(){return this._maxScrollWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxScrollHeight",{get:function(){return this._maxScrollHeight},enumerable:!1,configurable:!0}),e.prototype.update=function(e){var t=Date.now();if(e.x>this._maxScrollX){var n=os();this._maxScrollX=e.x;var r=e.x+n;r>this._maxScrollWidth&&(this._maxScrollWidth=r),this.timestamp=t}if(e.y>this._maxScrollY){var i=oa();this._maxScrollY=e.y;var o=e.y+i;o>this._maxScrollHeight&&(this._maxScrollHeight=o),this.timestamp=t}},e}(),ou=function(e){var t=e.sessionId,n=e.deviceId;this.deviceId=n,this.sessionId=t,t&&n&&(this.sessionReplayId="".concat(n,"/").concat(t))},oc=Uint8Array,od=Uint16Array,of=Uint32Array,oh=new oc([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),op=new oc([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),og=new oc([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ov=function(e,t){for(var n=new od(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var i=new of(n[30]),r=1;r<30;++r)for(var o=n[r];o<n[r+1];++o)i[o]=o-n[r]<<5|r;return[n,i]},om=ov(oh,2),ob=om[0],oy=om[1];ob[28]=258,oy[258]=28;for(var ox=ov(op,0),ow=(ox[0],ox[1]),oS=new od(32768),oE=0;oE<32768;++oE){var ok=(43690&oE)>>>1|(21845&oE)<<1;ok=(61680&(ok=(52428&ok)>>>2|(13107&ok)<<2))>>>4|(3855&ok)<<4,oS[oE]=((65280&ok)>>>8|(255&ok)<<8)>>>1}for(var oC=function(e,t,n){for(var r,i=e.length,o=0,a=new od(t);o<i;++o)++a[e[o]-1];var s=new od(t);for(o=0;o<t;++o)s[o]=s[o-1]+a[o-1]<<1;if(n){r=new od(1<<t);var l=15-t;for(o=0;o<i;++o)if(e[o])for(var u=o<<4|e[o],c=t-e[o],d=s[e[o]-1]++<<c,f=d|(1<<c)-1;d<=f;++d)r[oS[d]>>>l]=u}else for(o=0,r=new od(i);o<i;++o)r[o]=oS[s[e[o]-1]++]>>>15-e[o];return r},oO=new oc(288),oE=0;oE<144;++oE)oO[oE]=8;for(var oE=144;oE<256;++oE)oO[oE]=9;for(var oE=256;oE<280;++oE)oO[oE]=7;for(var oE=280;oE<288;++oE)oO[oE]=8;for(var oI=new oc(32),oE=0;oE<32;++oE)oI[oE]=5;var o_=oC(oO,9,0),oT=oC(oI,5,0),oP=function(e){return(e/8|0)+(7&e&&1)},oR=function(e,t,n){(null==n||n>e.length)&&(n=e.length);var r=new(e instanceof od?od:e instanceof of?of:oc)(n-t);return r.set(e.subarray(t,n)),r},oA=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>>8},oN=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},oM=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,o=n.slice();if(!i)return[new oc(0),0];if(1==i){var a=new oc(n[0].s+1);return a[n[0].s]=1,[a,1]}n.sort(function(e,t){return e.f-t.f}),n.push({s:-1,f:25001});var s=n[0],l=n[1],u=0,c=1,d=2;for(n[0]={s:-1,f:s.f+l.f,l:s,r:l};c!=i-1;)s=n[n[u].f<n[d].f?u++:d++],l=n[u!=c&&n[u].f<n[d].f?u++:d++],n[c++]={s:-1,f:s.f+l.f,l:s,r:l};for(var f=o[0].s,r=1;r<i;++r)o[r].s>f&&(f=o[r].s);var h=new od(f+1),p=oL(n[c-1],h,0);if(p>t){var r=0,g=0,v=p-t,m=1<<v;for(o.sort(function(e,t){return h[t.s]-h[e.s]||e.f-t.f});r<i;++r){var b=o[r].s;if(h[b]>t)g+=m-(1<<p-h[b]),h[b]=t;else break}for(g>>>=v;g>0;){var y=o[r].s;h[y]<t?g-=1<<t-h[y]++-1:++r}for(;r>=0&&g;--r){var x=o[r].s;h[x]==t&&(--h[x],++g)}p=t}return[new oc(h),p]},oL=function(e,t,n){return -1==e.s?Math.max(oL(e.l,t,n+1),oL(e.r,t,n+1)):t[e.s]=n},oV=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new od(++t),r=0,i=e[0],o=1,a=function(e){n[r++]=e},s=1;s<=t;++s)if(e[s]==i&&s!=t)++o;else{if(!i&&o>2){for(;o>138;o-=138)a(32754);o>2&&(a(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(a(i),--o;o>6;o-=6)a(8304);o>2&&(a(o-3<<5|8208),o=0)}for(;o--;)a(i);o=1,i=e[s]}return[n.subarray(0,r),t]},oD=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},oF=function(e,t,n){var r=n.length,i=oP(t+2);e[i]=255&r,e[i+1]=r>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var o=0;o<r;++o)e[i+o+4]=n[o];return(i+4+r)*8},oj=function(e,t,n,r,i,o,a,s,l,u,c){oA(t,c++,n),++i[256];for(var d,f,h,p,g=oM(i,15),v=g[0],m=g[1],b=oM(o,15),y=b[0],x=b[1],w=oV(v),S=w[0],E=w[1],k=oV(y),C=k[0],O=k[1],I=new od(19),_=0;_<S.length;++_)I[31&S[_]]++;for(var _=0;_<C.length;++_)I[31&C[_]]++;for(var T=oM(I,7),P=T[0],R=T[1],A=19;A>4&&!P[og[A-1]];--A);var N=u+5<<3,M=oD(i,oO)+oD(o,oI)+a,L=oD(i,v)+oD(o,y)+a+14+3*A+oD(I,P)+(2*I[16]+3*I[17]+7*I[18]);if(N<=M&&N<=L)return oF(t,c,e.subarray(l,l+u));if(oA(t,c,1+(L<M)),c+=2,L<M){d=oC(v,m,0),f=v,h=oC(y,x,0),p=y;var V=oC(P,R,0);oA(t,c,E-257),oA(t,c+5,O-1),oA(t,c+10,A-4),c+=14;for(var _=0;_<A;++_)oA(t,c+3*_,P[og[_]]);c+=3*A;for(var D=[S,C],F=0;F<2;++F)for(var j=D[F],_=0;_<j.length;++_){var z=31&j[_];oA(t,c,V[z]),c+=P[z],z>15&&(oA(t,c,j[_]>>>5&127),c+=j[_]>>>12)}}else d=o_,f=oO,h=oT,p=oI;for(var _=0;_<s;++_)if(r[_]>255){var z=r[_]>>>18&31;oN(t,c,d[z+257]),c+=f[z+257],z>7&&(oA(t,c,r[_]>>>23&31),c+=oh[z]);var B=31&r[_];oN(t,c,h[B]),c+=p[B],B>3&&(oN(t,c,r[_]>>>5&8191),c+=op[B])}else oN(t,c,d[r[_]]),c+=f[r[_]];return oN(t,c,d[256]),c+f[256]},oz=new of([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),oB=function(e,t,n,r,i,o){var a=e.length,s=new oc(r+a+5*(1+Math.floor(a/7e3))+i),l=s.subarray(r,s.length-i),u=0;if(!t||a<8)for(var c=0;c<=a;c+=65535){var d=c+65535;d<a?u=oF(l,u,e.subarray(c,d)):(l[c]=o,u=oF(l,u,e.subarray(c,a)))}else{for(var f=oz[t-1],h=f>>>13,p=8191&f,g=(1<<n)-1,v=new od(32768),m=new od(g+1),b=Math.ceil(n/3),y=2*b,x=function(t){return(e[t]^e[t+1]<<b^e[t+2]<<y)&g},w=new of(25e3),S=new od(288),E=new od(32),k=0,C=0,c=0,O=0,I=0,_=0;c<a;++c){var T=x(c),P=32767&c,R=m[T];if(v[P]=R,m[T]=P,I<=c){var A=a-c;if((k>7e3||O>24576)&&A>423){u=oj(e,l,0,w,S,E,C,O,_,c-_,u),O=k=C=0,_=c;for(var N=0;N<286;++N)S[N]=0;for(var N=0;N<30;++N)E[N]=0}var M=2,L=0,V=p,D=P-R&32767;if(A>2&&T==x(c-D))for(var F=Math.min(h,A)-1,j=Math.min(32767,c),z=Math.min(258,A);D<=j&&--V&&P!=R;){if(e[c+M]==e[c+M-D]){for(var B=0;B<z&&e[c+B]==e[c+B-D];++B);if(B>M){if(M=B,L=D,B>F)break;for(var U=Math.min(D,B-2),W=0,N=0;N<U;++N){var H=c-D+N+32768&32767,q=v[H],$=H-q+32768&32767;$>W&&(W=$,R=H)}}}R=v[P=R],D+=P-R+32768&32767}if(L){w[O++]=0x10000000|oy[M]<<18|ow[L];var G=31&oy[M],K=31&ow[L];C+=oh[G]+op[K],++S[257+G],++E[K],I=c+M,++k}else w[O++]=e[c],++S[e[c]]}}u=oj(e,l,o,w,S,E,C,O,_,c-_,u)}return oR(s,0,r+oP(u)+i)},oU=function(){var e=1,t=0;return{p:function(n){for(var r=e,i=t,o=n.length,a=0;a!=o;){for(var s=Math.min(a+5552,o);a<s;++a)r+=n[a],i+=r;r%=65521,i%=65521}e=r,t=i},d:function(){return(e>>>8<<16|(255&t)<<8|t>>>8)+((255&e)<<23)*2}}},oW=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},oH=function(e,t){var n=t.level,r=0==n?0:n<6?1:9==n?3:2;e[0]=120,e[1]=r<<6|(r?32-2*r:1)},oq=function(){function e(e,t,n,r){var i,o,a=this;this.taskQueue=[],this.isProcessing=!1,this.compressEvent=function(e){return JSON.stringify(function(e,t){var n="";if(!t&&"undefined"!=typeof TextDecoder)return new TextDecoder().decode(e);for(var r=0;r<e.length;){var i=e[r++];i<128||t?n+=String.fromCharCode(i):i<224?n+=String.fromCharCode((31&i)<<6|63&e[r++]):i<240?n+=String.fromCharCode((15&i)<<12|(63&e[r++])<<6|63&e[r++]):n+=String.fromCharCode(55296|(i=((15&i)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++])-65536)>>10,56320|1023&i)}return n}(function(e,t){void 0===t&&(t={});var n,r=oU();r.p(e);var i=oB(e,null==(n=t).level?6:n.level,null==n.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+n.mem,2,4,!0);return oH(i,t),oW(i,i.length-4,r.d()),i}(function(e,t){var n=e.length;if("undefined"!=typeof TextEncoder)return new TextEncoder().encode(e);for(var r=new oc(e.length+(e.length>>>1)),i=0,o=function(e){r[i++]=e},a=0;a<n;++a){if(i+5>r.length){var s=new oc(i+8+(n-a<<1));s.set(r),r=s}var l=e.charCodeAt(a);l<128?o(l):(l<2048?o(192|l>>>6):(l>55295&&l<57344?(o(240|(l=65536+(1047552&l)|1023&e.charCodeAt(++a))>>>18),o(128|l>>>12&63)):o(224|l>>>12),o(128|l>>>6&63)),o(128|63&l))}return oR(r,0,i)}(JSON.stringify({...e,v:"v1"}))),!0))},this.addCompressedEventToManager=function(e,t){a.eventsManager&&a.deviceId&&a.eventsManager.addEvent({event:{type:"replay",data:e},sessionId:t,deviceId:a.deviceId})},this.addCompressedEvent=function(e,t){if(a.worker)a.worker.postMessage({event:e,sessionId:t});else{var n=a.compressEvent(e);a.addCompressedEventToManager(n,t)}},this.terminate=function(){var e;null==(e=a.worker)||e.terminate()};var s=j();this.canUseIdleCallback=s&&"requestIdleCallback"in s,this.eventsManager=e,this.config=t,this.deviceId=n,this.timeout=(null==(i=t.performanceConfig)?void 0:i.timeout)||2e3;var l=r;if((null==(o=this.config.experimental)?void 0:o.useWebWorker)&&s&&s.Worker&&l){t.loggerProvider.log("[Experimental] Enabling web worker for compression");var u=new Worker(URL.createObjectURL(new Blob([l],{type:"application/javascript"})));u.onerror=function(e){t.loggerProvider.error(e)},u.onmessage=function(e){var t=e.data,n=t.compressedEvent,r=t.sessionId;a.addCompressedEventToManager(n,r)},this.worker=u}}return e.prototype.scheduleIdleProcessing=function(){var e=this;this.isProcessing||(this.isProcessing=!0,requestIdleCallback(function(t){e.processQueue(t)},{timeout:this.timeout}))},e.prototype.enqueueEvent=function(e,t){var n;this.canUseIdleCallback&&(null==(n=this.config.performanceConfig)?void 0:n.enabled)?(this.config.loggerProvider.debug("Enqueuing event for processing during idle time."),this.taskQueue.push({event:e,sessionId:t}),this.scheduleIdleProcessing()):(this.config.loggerProvider.debug("Processing event without idle callback."),this.addCompressedEvent(e,t))},e.prototype.processQueue=function(e){for(var t=this;this.taskQueue.length>0&&(e.timeRemaining()>0||e.didTimeout);){var n=this.taskQueue.shift();if(n){var r=n.event,i=n.sessionId;this.addCompressedEvent(r,i)}}this.taskQueue.length>0?requestIdleCallback(function(e){t.processQueue(e)},{timeout:this.timeout}):this.isProcessing=!1},e}(),o$=function(){function e(){this.fetchObserver=null}return e.prototype.start=function(e){this.eventCallback=e,this.observeFetch()},e.prototype.stop=function(){var e;null==(e=this.fetchObserver)||e.call(this),this.fetchObserver=null,this.eventCallback=void 0},e.prototype.notifyEvent=function(e){var t;null==(t=this.eventCallback)||t.call(this,e)},e.prototype.observeFetch=function(){var e=this,t=j();if(t){var n=t.fetch;n&&(t.fetch=function(t,r){return A(e,void 0,void 0,function(){var e,i,o,a,s,l,u;return N(this,function(c){switch(c.label){case 0:i={timestamp:e=Date.now(),type:"fetch",method:(null==r?void 0:r.method)||"GET",url:t.toString(),requestHeaders:null==r?void 0:r.headers},c.label=1;case 1:return c.trys.push([1,3,,4]),[4,n(t,r)];case 2:return o=c.sent(),a=Date.now(),i.status=o.status,i.duration=a-e,s={},o.headers.forEach(function(e,t){s[t]=e}),i.responseHeaders=s,this.notifyEvent(i),[2,o];case 3:throw l=c.sent(),a=Date.now(),i.duration=a-e,u=l,i.error={name:u.name||"UnknownError",message:u.message||"An unknown error occurred"},this.notifyEvent(i),l;case 4:return[2]}})})},this.fetchObserver=function(){t.fetch=n})}},e}(),oG=function(){function e(){var e=this;this.name="@amplitude/session-replay-browser",this.recordCancelCallback=null,this.eventCount=0,this.pageLeaveFns=[],this.teardownEventListeners=function(t){var n=j();n&&(n.removeEventListener("blur",e.blurListener),n.removeEventListener("focus",e.focusListener),t||n.addEventListener("blur",e.blurListener),t||n.addEventListener("focus",e.focusListener),n.self&&"onpagehide"in n.self?(n.removeEventListener("pagehide",e.pageLeaveListener),t||n.addEventListener("pagehide",e.pageLeaveListener)):(n.removeEventListener("beforeunload",e.pageLeaveListener),t||n.addEventListener("beforeunload",e.pageLeaveListener)))},this.blurListener=function(){e.sendEvents()},this.focusListener=function(){e.recordEvents(!1)},this.pageLeaveListener=function(t){e.pageLeaveFns.forEach(function(e){e(t)})},this.addCustomRRWebEvent=function(t,n,r){return void 0===n&&(n={}),void 0===r&&(r=!0),A(e,void 0,void 0,function(){var e,i,o,a;return N(this,function(s){switch(s.label){case 0:if(s.trys.push([0,3,,4]),e=void 0,!((i=this.config)&&t!==y.METADATA)||(e={config:ih(i),version:im},!r))return[3,2];return[4,id()];case 1:o=s.sent(),e=P(P({},o),e),s.label=2;case 2:return this.recordCancelCallback?r8.g1.addCustomEvent(t,P(P({},n),e)):this.loggerProvider.debug("Not able to add custom replay capture event ".concat(t," due to no ongoing recording.")),[3,4];case 3:return a=s.sent(),this.loggerProvider.debug("Error while adding custom replay capture event: ",a),[3,4];case 4:return[2]}})})},this.stopRecordingEvents=function(){var t;try{e.loggerProvider.log("Session Replay capture stopping."),e.recordCancelCallback&&e.recordCancelCallback(),e.recordCancelCallback=null,null==(t=e.networkObservers)||t.stop()}catch(t){e.loggerProvider.warn("Error occurred while stopping replay capture: ".concat(t.toString()))}},this.loggerProvider=new r3(new es)}return e.prototype.init=function(e,t){return F(this._init(e,t))},e.prototype._init=function(e,t){var n,r,i,o,a,s,l,u;return A(this,void 0,void 0,function(){var c,d,f,h,p,g,v,m,b,y,x,w;return N(this,function(S){switch(S.label){case 0:return this.loggerProvider=new r3(t.loggerProvider||new es),Object.prototype.hasOwnProperty.call(t,"logLevel")&&this.loggerProvider.enable(t.logLevel),this.identifiers=new ou({sessionId:t.sessionId,deviceId:t.deviceId}),c=this,[4,A(void 0,void 0,void 0,function(){var n;return N(this,function(r){switch(r.label){case 0:return[4,ir({localConfig:n=new r6(e,t),configKeys:["sessionReplay"]})];case 1:return[2,new ig(r.sent(),n)]}})})];case 1:return c.joinedConfigGenerator=S.sent(),[4,this.joinedConfigGenerator.generateJoinedConfig(this.identifiers.sessionId)];case 2:f=(d=S.sent()).joinedConfig,h=d.localConfig,p=d.remoteConfig,this.config=f,this.setMetadata(t.sessionId,f,h,p,null==(n=t.version)?void 0:n.version,im,null==(r=t.version)?void 0:r.type),t.sessionId&&(null==(i=this.config.interactionConfig)?void 0:i.enabled)&&(g=ol.default({sessionId:t.sessionId,type:"interaction"},this.config),this.pageLeaveFns=[g.send(this.getDeviceId.bind(this)).bind(g)],this.scrollHook=g.hook.bind(g)),v=[],"idb"!==(m=this.config.storeType)||(null==(o=j())?void 0:o.indexedDB)||(m="memory",this.loggerProvider.warn("Could not use preferred indexedDB storage, reverting to in memory option.")),this.loggerProvider.log("Using ".concat(m," for event storage.")),S.label=3;case 3:return S.trys.push([3,5,,6]),[4,iq({config:this.config,sessionId:this.identifiers.sessionId,type:"replay",storeType:m})];case 4:return b=S.sent(),v.push({name:"replay",manager:b}),[3,6];case 5:return y=S.sent(),this.loggerProvider.warn("Error occurred while creating replay events manager: ".concat(y.toString())),[3,6];case 6:if(!(null==(a=this.config.interactionConfig)?void 0:a.enabled))return[3,10];x=this.config.interactionConfig.batch?or:on,S.label=7;case 7:return S.trys.push([7,9,,10]),[4,iq({config:this.config,sessionId:this.identifiers.sessionId,type:"interaction",minInterval:null!=(s=this.config.interactionConfig.trackEveryNms)?s:3e4,maxInterval:6e4,payloadBatcher:x,storeType:m})];case 8:return w=S.sent(),v.push({name:"interaction",manager:w}),[3,10];case 9:return y=S.sent(),this.loggerProvider.warn("Error occurred while creating interaction events manager: ".concat(y.toString())),[3,10];case 10:return this.eventsManager=new(i$.bind.apply(i$,V([void 0],L(v),!1))),this.eventCompressor&&this.eventCompressor.terminate(),this.eventCompressor=new oq(this.eventsManager,this.config,this.getDeviceId()),(null==(u=null==(l=this.config.loggingConfig)?void 0:l.network)?void 0:u.enabled)&&(this.networkObservers=new o$),this.loggerProvider.log("Installing @amplitude/session-replay-browser."),this.teardownEventListeners(!1),this.initialize(!0),[2]}})})},e.prototype.setSessionId=function(e,t){return F(this.asyncSetSessionId(e,t))},e.prototype.asyncSetSessionId=function(e,t){return A(this,void 0,void 0,function(){var n,r,i;return N(this,function(o){switch(o.label){case 0:if((n=this.identifiers&&this.identifiers.sessionId)&&this.sendEvents(n),r=t||this.getDeviceId(),this.identifiers=new ou({sessionId:e,deviceId:r}),!(this.joinedConfigGenerator&&n))return[3,2];return[4,this.joinedConfigGenerator.generateJoinedConfig(this.identifiers.sessionId)];case 1:i=o.sent().joinedConfig,this.config=i,o.label=2;case 2:return this.recordEvents(),[2]}})})},e.prototype.getSessionReplayProperties=function(){var e,t=this.config,n=this.identifiers;if(!t||!n)return this.loggerProvider.warn("Session replay init has not been called, cannot get session replay properties."),{};var r=this.getShouldRecord(),i={};return r&&((e={})[r0]=n.sessionReplayId?n.sessionReplayId:null,i=e,t.debugMode&&(i[r2]=JSON.stringify({appHash:il(t.apiKey).toString()}))),this.addCustomRRWebEvent(y.GET_SR_PROPS,{shouldRecord:r,eventProperties:i},10===this.eventCount),10===this.eventCount&&(this.eventCount=0),this.eventCount++,i},e.prototype.sendEvents=function(e){var t,n=e||(null==(t=this.identifiers)?void 0:t.sessionId),r=this.getDeviceId();this.eventsManager&&n&&r&&this.eventsManager.sendCurrentSequenceEvents({sessionId:n,deviceId:r})},e.prototype.initialize=function(e){var t;return void 0===e&&(e=!1),A(this,void 0,void 0,function(){var n;return N(this,function(r){return(null==(t=this.identifiers)?void 0:t.sessionId)?(n=this.getDeviceId())?(this.eventsManager&&e&&this.eventsManager.sendStoredEvents({deviceId:n}),[2,this.recordEvents()]):(this.loggerProvider.log("Session is not being recorded due to lack of device id."),[2,Promise.resolve()]):(this.loggerProvider.log("Session is not being recorded due to lack of session id."),[2,Promise.resolve()])})})},e.prototype.shouldOptOut=function(){if(null==(e=this.config)?void 0:e.instanceName){var e,t,n;n=et(this.config.instanceName).identityStore.getIdentity().optOut}return void 0!==n?n:null==(t=this.config)?void 0:t.optOut},e.prototype.getShouldRecord=function(){if(!this.identifiers||!this.config||!this.identifiers.sessionId)return this.loggerProvider.warn("Session is not being recorded due to lack of config, please call sessionReplay.init."),!1;if(!this.config.captureEnabled)return this.loggerProvider.log("Session ".concat(this.identifiers.sessionId," not being captured due to capture being disabled for project or because the remote config could not be fetched.")),!1;if(this.shouldOptOut())return this.loggerProvider.log("Opting session ".concat(this.identifiers.sessionId," out of recording due to optOut config.")),!1;var e,t,n=(e=this.identifiers.sessionId,t=this.config.sampleRate,31*Math.abs(il(e.toString()))%1e6/1e6<t);return n||this.loggerProvider.log("Opting session ".concat(this.identifiers.sessionId," out of recording due to sample rate.")),n},e.prototype.getBlockSelectors=function(){var e,t,n,r=null!=(n=null==(t=null==(e=this.config)?void 0:e.privacyConfig)?void 0:t.blockSelector)?n:[];if(0!==r.length)return r},e.prototype.getMaskTextSelectors=function(){if((null==(t=null==(e=this.config)?void 0:e.privacyConfig)?void 0:t.defaultMaskLevel)==="conservative")return"*";var e,t,n,r,i=null==(r=null==(n=this.config)?void 0:n.privacyConfig)?void 0:r.maskSelector;if(i)return i},e.prototype.getRecordingPlugins=function(e){var t;return A(this,void 0,void 0,function(){var r,i,o;return N(this,function(a){switch(a.label){case 0:if(r=[],!(null==(t=null==e?void 0:e.console)?void 0:t.enabled))return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,n.e(267).then(n.bind(n,20638))];case 2:return i=a.sent().getRecordConsolePlugin,r.push(i({level:e.console.levels})),[3,4];case 3:return o=a.sent(),this.loggerProvider.warn("Failed to load console plugin:",o),[3,4];case 4:return[2,r.length>0?r:void 0]}})})},e.prototype.recordEvents=function(e){var t,n;return void 0===e&&(e=!0),A(this,void 0,void 0,function(){var r,i,o,a,s,l,u,c,d,f,h,p=this;return N(this,function(g){switch(g.label){case 0:if(r=this.config,i=this.getShouldRecord(),o=null==(t=this.identifiers)?void 0:t.sessionId,!i||!o||!r)return[2];this.stopRecordingEvents(),null==(n=this.networkObservers)||n.start(function(e){p.addCustomRRWebEvent(y.FETCH_REQUEST,e)}),a=r.privacyConfig,s=r.interactionConfig,l=r.loggingConfig,u=(null==s?void 0:s.enabled)?{mouseInteraction:this.eventsManager&&oi(this.loggerProvider,{eventsManager:this.eventsManager,sessionId:o,deviceIdFn:this.getDeviceId.bind(this)}),scroll:this.scrollHook}:{},this.loggerProvider.log("Session Replay capture beginning for ".concat(o,".")),g.label=1;case 1:return g.trys.push([1,3,,4]),c=this,d=r8.g1,h={emit:function(e){if(p.shouldOptOut()){p.loggerProvider.log("Opting session ".concat(o," out of recording due to optOut config.")),p.stopRecordingEvents(),p.sendEvents();return}p.eventCompressor&&p.eventCompressor.enqueueEvent(e,o)},inlineStylesheet:r.shouldInlineStylesheet,hooks:u,maskAllInputs:!0,maskTextClass:r5,blockClass:"amp-block",blockSelector:this.getBlockSelectors(),maskInputFn:is("input",a),maskTextFn:is("text",a),maskTextSelector:this.getMaskTextSelectors(),recordCanvas:!1,errorHandler:function(e){if(e.message.includes("insertRule")&&e.message.includes("CSSStyleSheet")||e._external_)throw e;return p.loggerProvider.warn("Error while capturing replay: ",e.toString()),!0}},[4,this.getRecordingPlugins(l)];case 2:return c.recordCancelCallback=d.apply(void 0,[(h.plugins=g.sent(),h)]),this.addCustomRRWebEvent(y.DEBUG_INFO),e&&this.addCustomRRWebEvent(y.METADATA,this.metadata),[3,4];case 3:return f=g.sent(),this.loggerProvider.warn("Failed to initialize session replay:",f),[3,4];case 4:return[2]}})})},e.prototype.getDeviceId=function(){var e;return null==(e=this.identifiers)?void 0:e.deviceId},e.prototype.getSessionId=function(){var e;return null==(e=this.identifiers)?void 0:e.sessionId},e.prototype.flush=function(e){var t;return void 0===e&&(e=!1),A(this,void 0,void 0,function(){return N(this,function(n){return[2,null==(t=this.eventsManager)?void 0:t.flush(e)]})})},e.prototype.shutdown=function(){this.teardownEventListeners(!0),this.stopRecordingEvents(),this.sendEvents()},e.prototype.mapSDKType=function(e){return"plugin"===e?"@amplitude/plugin-session-replay-browser":"segment"===e?"@amplitude/segment-session-replay-plugin":null},e.prototype.setMetadata=function(e,t,n,r,i,o,a){var s=(null==e?void 0:e.toString())?il(e.toString()):void 0;this.metadata={joinedConfig:t,localConfig:n,remoteConfig:r,sessionId:e,hashValue:s,sampleRate:t.sampleRate,replaySDKType:this.mapSDKType(a),replaySDKVersion:i,standaloneSDKType:"@amplitude/session-replay-browser",standaloneSDKVersion:o}},e}(),oK=function(e){return function(){var t=e.config||r4();return{logger:t.loggerProvider,logLevel:t.logLevel}}};let oY=function(){var e=new oG;return{init:rJ(e.init.bind(e),"init",oK(e)),setSessionId:rJ(e.setSessionId.bind(e),"setSessionId",oK(e)),getSessionId:rJ(e.getSessionId.bind(e),"getSessionId",oK(e)),getSessionReplayProperties:rJ(e.getSessionReplayProperties.bind(e),"getSessionReplayProperties",oK(e)),flush:rJ(e.flush.bind(e),"flush",oK(e)),shutdown:rJ(e.shutdown.bind(e),"shutdown",oK(e))}}();var oX=oY.init,oQ=oY.setSessionId,oJ=oY.getSessionId,oZ=oY.getSessionReplayProperties,o0=oY.flush,o1=oY.shutdown,o2="1.16.13",o5=function(){function e(t){this.name=e.pluginName,this.type="enrichment",this.sr={flush:o0,getSessionId:oJ,getSessionReplayProperties:oZ,init:oX,setSessionId:oQ,shutdown:o1},this.options=P({forceSessionTracking:!1},t),this.srInitOptions=this.options}return e.prototype.setup=function(e,t){var n,r,i,o,a;return A(this,void 0,void 0,function(){var t;return N(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),null==e||e.loggerProvider.log("Installing @amplitude/plugin-session-replay, version ".concat(o2,".")),this.config=e,this.options.forceSessionTracking&&("boolean"==typeof e.defaultTracking?!1===e.defaultTracking&&(e.defaultTracking={pageViews:!1,formInteractions:!1,fileDownloads:!1,sessions:!0}):e.defaultTracking=P(P({},e.defaultTracking),{sessions:!0})),this.srInitOptions={instanceName:this.config.instanceName,deviceId:null!=(n=this.options.deviceId)?n:this.config.deviceId,optOut:this.config.optOut,sessionId:this.options.customSessionId?void 0:this.config.sessionId,loggerProvider:this.config.loggerProvider,logLevel:this.config.logLevel,flushMaxRetries:this.config.flushMaxRetries,serverZone:this.config.serverZone,configServerUrl:this.options.configServerUrl,trackServerUrl:this.options.trackServerUrl,sampleRate:this.options.sampleRate,privacyConfig:{blockSelector:null==(r=this.options.privacyConfig)?void 0:r.blockSelector,maskSelector:null==(i=this.options.privacyConfig)?void 0:i.maskSelector,unmaskSelector:null==(o=this.options.privacyConfig)?void 0:o.unmaskSelector,defaultMaskLevel:null==(a=this.options.privacyConfig)?void 0:a.defaultMaskLevel},debugMode:this.options.debugMode,shouldInlineStylesheet:this.options.shouldInlineStylesheet,version:{type:"plugin",version:o2},performanceConfig:this.options.performanceConfig,storeType:this.options.storeType,experimental:this.options.experimental},[4,this.sr.init(e.apiKey,this.srInitOptions).promise];case 1:return s.sent(),[3,3];case 2:return t=s.sent(),null==e||e.loggerProvider.error("Session Replay: Failed to initialize due to ".concat(t.message)),[3,3];case 3:return[2]}})})},e.prototype.onSessionIdChanged=function(e){return A(this,void 0,void 0,function(){return N(this,function(t){switch(t.label){case 0:return this.config.loggerProvider.debug("Analytics session id is changed to ".concat(e,", SR session id is ").concat(String(this.sr.getSessionId()),".")),[4,this.sr.setSessionId(e).promise];case 1:return t.sent(),[2]}})})},e.prototype.onOptOutChanged=function(e){return A(this,void 0,void 0,function(){return N(this,function(t){switch(t.label){case 0:if(this.config.loggerProvider.debug("optOut is changed to ".concat(String(e),", calling ").concat(e?"sessionReplay.shutdown()":"sessionReplay.init()",".")),!e)return[3,1];return this.sr.shutdown(),[3,3];case 1:return[4,this.sr.init(this.config.apiKey,this.srInitOptions).promise];case 2:t.sent(),t.label=3;case 3:return[2]}})})},e.prototype.execute=function(e){var t;return A(this,void 0,void 0,function(){var n,r,i;return N(this,function(o){switch(o.label){case 0:if(o.trys.push([0,8,,9]),!this.options.customSessionId)return[3,4];if(!(n=this.options.customSessionId(e)))return[3,3];if(n===this.sr.getSessionId())return[3,2];return[4,this.sr.setSessionId(n).promise];case 1:o.sent(),o.label=2;case 2:r=this.sr.getSessionReplayProperties(),e.event_properties=P(P({},e.event_properties),r),o.label=3;case 3:return[3,7];case 4:if(!((n=this.config.sessionId)&&n!==this.sr.getSessionId()))return[3,6];return[4,this.sr.setSessionId(n).promise];case 5:o.sent(),o.label=6;case 6:n&&n===e.session_id&&(r=this.sr.getSessionReplayProperties(),e.event_properties=P(P({},e.event_properties),r)),o.label=7;case 7:return[2,Promise.resolve(e)];case 8:return i=o.sent(),null==(t=this.config)||t.loggerProvider.error("Session Replay: Failed to enrich event due to ".concat(i.message)),[2,Promise.resolve(e)];case 9:return[2]}})})},e.prototype.teardown=function(){var e;return A(this,void 0,void 0,function(){return N(this,function(t){try{this.sr.shutdown(),this.config=null}catch(t){null==(e=this.config)||e.loggerProvider.error("Session Replay: teardown failed due to ".concat(t.message))}return[2]})})},e.prototype.getSessionReplayProperties=function(){return this.sr.getSessionReplayProperties()},e.pluginName="@amplitude/plugin-session-replay-browser",e}(),o3=n(67031).Buffer,o4=function(e,t){return(o4=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function o6(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o4(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o8=function(){return(o8=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function o7(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}function o9(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function ae(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function at(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function an(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var ar={IS:"is",IS_NOT:"is not",CONTAINS:"contains",DOES_NOT_CONTAIN:"does not contain",LESS_THAN:"less",LESS_THAN_EQUALS:"less or equal",GREATER_THAN:"greater",GREATER_THAN_EQUALS:"greater or equal",VERSION_LESS_THAN:"version less",VERSION_LESS_THAN_EQUALS:"version less or equal",VERSION_GREATER_THAN:"version greater",VERSION_GREATER_THAN_EQUALS:"version greater or equal",SET_IS:"set is",SET_IS_NOT:"set is not",SET_CONTAINS:"set contains",SET_DOES_NOT_CONTAIN:"set does not contain",SET_CONTAINS_ANY:"set contains any",SET_DOES_NOT_CONTAIN_ANY:"set does not contain any",REGEX_MATCH:"regex match",REGEX_DOES_NOT_MATCH:"regex does not match"},ai=function(e){for(var t=[],n=0,r=0;r<e.length;r++){var i=e.charCodeAt(r);i<128?t[n++]=i:(i<2048?t[n++]=i>>6|192:((64512&i)==55296&&r+1<e.length&&(64512&e.charCodeAt(r+1))==56320?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),t[n++]=i>>18|240,t[n++]=i>>12&63|128):t[n++]=i>>12|224,t[n++]=i>>6&63|128),t[n++]=63&i|128)}return Uint8Array.from(t)},ao=function(e,t){void 0===t&&(t=0);for(var n=ai(e),r=n.length,i=r>>2,o=t,a=0;a<i;a++)o=aa(au(n,a<<2),o);var s=i<<2,l=0;switch(r-s){case 3:l^=n[s+2]<<16,l^=n[s+1]<<8,l^=n[s],o^=l=Math.imul(l=al(l=Math.imul(l,-0x3361d2af),15),0x1b873593);break;case 2:l^=n[s+1]<<8,l^=n[s],o^=l=Math.imul(l=al(l=Math.imul(l,-0x3361d2af),15),0x1b873593);break;case 1:l^=n[s],o^=l=Math.imul(l=al(l=Math.imul(l,-0x3361d2af),15),0x1b873593)}return as(o^=r)>>>0},aa=function(e,t){var n=e,r=t;return r^=n=Math.imul(n=al(n=Math.imul(n,-0x3361d2af),15),0x1b873593),(r=Math.imul(r=al(r,13),5))+-0x19ab949c|0},as=function(e){var t=e;return t^=t>>>16,t=Math.imul(t,-0x7a143595),t^=t>>>13,t=Math.imul(t,-0x3d4d51cb),t^=t>>>16},al=function(e,t,n){void 0===n&&(n=32),t>n&&(t%=n);var r=(e&0xffffffff<<n-t>>>0)>>>0>>>n-t>>>0;return(e<<t|r)>>>0},au=function(e,t){return void 0===t&&(t=0),ac(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])},ac=function(e){return(-0x1000000&e)>>>24|(0xff0000&e)>>>8|(65280&e)<<8|(255&e)<<24},ad=function(e,t){var n,r;if(t&&0!==t.length){try{for(var i=ae(t),o=i.next();!o.done;o=i.next()){var a=o.value;if(!a||!e||"object"!=typeof e)return;e=e[a]}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}if(!e)return;return e}},af="^".concat("(\\d+)\\.(\\d+)","(\\.").concat("(\\d+)").concat("(-(([-\\w]+\\.?)*))?",")?$"),ah=function(){function e(e,t,n,r){void 0===r&&(r=void 0),this.major=e,this.minor=t,this.patch=n,this.preRelease=r}return e.parse=function(t){if(t){var n=new RegExp(af).exec(t);if(n){var r=Number(n[1]),i=Number(n[2]);if(!(isNaN(r)||isNaN(i)))return new e(r,i,Number(n[4])||0,n[5]||void 0)}}},e.prototype.compareTo=function(e){if(this.major>e.major)return 1;if(this.major<e.major)return -1;if(this.minor>e.minor)return 1;if(this.minor<e.minor)return -1;if(this.patch>e.patch)return 1;if(this.patch<e.patch||this.preRelease&&!e.preRelease)return -1;if(!this.preRelease&&e.preRelease)return 1;if(this.preRelease&&e.preRelease){if(this.preRelease>e.preRelease)return 1;if(this.preRelease<e.preRelease)return -1}return 0},e}(),ap=function(){function e(){}return e.prototype.evaluate=function(e,t){var n,r,i={},o={context:e,result:i};try{for(var a=ae(t),s=a.next();!s.done;s=a.next()){var l=s.value,u=this.evaluateFlag(o,l);u&&(i[l.key]=u)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i},e.prototype.evaluateFlag=function(e,t){try{for(var n,r,i,o=ae(t.segments),a=o.next();!a.done;a=o.next()){var s=a.value;if(i=this.evaluateSegment(e,t,s)){var l=o8(o8(o8({},t.metadata),s.metadata),i.metadata);i=o8(o8({},i),{metadata:l});break}}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i},e.prototype.evaluateSegment=function(e,t,n){if(!n.conditions){var r=this.bucket(e,n);return void 0!==r?t.variants[r]:void 0}if(this.evaluateConditions(e,n.conditions)){var r=this.bucket(e,n);if(void 0!==r)return t.variants[r]}},e.prototype.evaluateConditions=function(e,t){var n,r,i,o;try{for(var a=ae(t),s=a.next();!s.done;s=a.next()){var l=s.value,u=!0;try{for(var c=(i=void 0,ae(l)),d=c.next();!d.done;d=c.next()){var f=d.value;if(!(u=this.matchCondition(e,f)))break}}catch(e){i={error:e}}finally{try{d&&!d.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}if(u)return!0}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return!1},e.prototype.matchCondition=function(e,t){var n=ad(e,t.selector);if(!n)return this.matchNull(t.op,t.values);if(this.isSetOperator(t.op)){var r=this.coerceStringArray(n);return!!r&&this.matchSet(r,t.op,t.values)}var i=this.coerceString(n);return void 0!==i&&this.matchString(i,t.op,t.values)},e.prototype.getHash=function(e){return ao(e)},e.prototype.bucket=function(e,t){if(!t.bucket)return t.variant;var n,r,i,o,a=this.coerceString(ad(e,t.bucket.selector));if(!a||0===a.length)return t.variant;var s="".concat(t.bucket.salt,"/").concat(a),l=this.getHash(s),u=l%100,c=Math.floor(l/100);try{for(var d=ae(t.bucket.allocations),f=d.next();!f.done;f=d.next()){var h=f.value,p=h.range[0],g=h.range[1];if(u>=p&&u<g)try{for(var v=(i=void 0,ae(h.distributions)),m=v.next();!m.done;m=v.next()){var b=m.value,y=b.range[0],x=b.range[1];if(c>=y&&c<x)return b.variant}}catch(e){i={error:e}}finally{try{m&&!m.done&&(o=v.return)&&o.call(v)}finally{if(i)throw i.error}}}}catch(e){n={error:e}}finally{try{f&&!f.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}return t.variant},e.prototype.matchNull=function(e,t){var n=this.containsNone(t);switch(e){case ar.IS:case ar.CONTAINS:case ar.LESS_THAN:case ar.LESS_THAN_EQUALS:case ar.GREATER_THAN:case ar.GREATER_THAN_EQUALS:case ar.VERSION_LESS_THAN:case ar.VERSION_LESS_THAN_EQUALS:case ar.VERSION_GREATER_THAN:case ar.VERSION_GREATER_THAN_EQUALS:case ar.SET_IS:case ar.SET_CONTAINS:case ar.SET_CONTAINS_ANY:return n;case ar.IS_NOT:case ar.DOES_NOT_CONTAIN:case ar.SET_DOES_NOT_CONTAIN:case ar.SET_DOES_NOT_CONTAIN_ANY:return!n;default:return!1}},e.prototype.matchSet=function(e,t,n){switch(t){case ar.SET_IS:return this.setEquals(e,n);case ar.SET_IS_NOT:return!this.setEquals(e,n);case ar.SET_CONTAINS:return this.matchesSetContainsAll(e,n);case ar.SET_DOES_NOT_CONTAIN:return!this.matchesSetContainsAll(e,n);case ar.SET_CONTAINS_ANY:return this.matchesSetContainsAny(e,n);case ar.SET_DOES_NOT_CONTAIN_ANY:return!this.matchesSetContainsAny(e,n);default:return!1}},e.prototype.matchString=function(e,t,n){var r=this;switch(t){case ar.IS:return this.matchesIs(e,n);case ar.IS_NOT:return!this.matchesIs(e,n);case ar.CONTAINS:return this.matchesContains(e,n);case ar.DOES_NOT_CONTAIN:return!this.matchesContains(e,n);case ar.LESS_THAN:case ar.LESS_THAN_EQUALS:case ar.GREATER_THAN:case ar.GREATER_THAN_EQUALS:return this.matchesComparable(e,t,n,function(e){return r.parseNumber(e)},this.comparator);case ar.VERSION_LESS_THAN:case ar.VERSION_LESS_THAN_EQUALS:case ar.VERSION_GREATER_THAN:case ar.VERSION_GREATER_THAN_EQUALS:return this.matchesComparable(e,t,n,function(e){return ah.parse(e)},this.versionComparator);case ar.REGEX_MATCH:return this.matchesRegex(e,n);case ar.REGEX_DOES_NOT_MATCH:return!this.matchesRegex(e,n);default:return!1}},e.prototype.matchesIs=function(e,t){if(this.containsBooleans(t)){var n=e.toLowerCase();if("true"===n||"false"===n)return t.some(function(e){return e.toLowerCase()===n})}return t.some(function(t){return e===t})},e.prototype.matchesContains=function(e,t){var n,r;try{for(var i=ae(t),o=i.next();!o.done;o=i.next()){var a=o.value;if(e.toLowerCase().includes(a.toLowerCase()))return!0}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!1},e.prototype.matchesComparable=function(e,t,n,r,i){var o=this,a=r(e),s=n.map(function(e){return r(e)}).filter(function(e){return void 0!==e});return void 0===a||0===s.length?n.some(function(n){return o.comparator(e,t,n)}):s.some(function(e){return i(a,t,e)})},e.prototype.comparator=function(e,t,n){switch(t){case ar.LESS_THAN:case ar.VERSION_LESS_THAN:return e<n;case ar.LESS_THAN_EQUALS:case ar.VERSION_LESS_THAN_EQUALS:return e<=n;case ar.GREATER_THAN:case ar.VERSION_GREATER_THAN:return e>n;case ar.GREATER_THAN_EQUALS:case ar.VERSION_GREATER_THAN_EQUALS:return e>=n;default:return!1}},e.prototype.versionComparator=function(e,t,n){var r=e.compareTo(n);switch(t){case ar.LESS_THAN:case ar.VERSION_LESS_THAN:return r<0;case ar.LESS_THAN_EQUALS:case ar.VERSION_LESS_THAN_EQUALS:return r<=0;case ar.GREATER_THAN:case ar.VERSION_GREATER_THAN:return r>0;case ar.GREATER_THAN_EQUALS:case ar.VERSION_GREATER_THAN_EQUALS:return r>=0;default:return!1}},e.prototype.matchesRegex=function(e,t){return t.some(function(t){return!!new RegExp(t).exec(e)})},e.prototype.containsNone=function(e){return e.some(function(e){return"(none)"===e})},e.prototype.containsBooleans=function(e){return e.some(function(e){switch(e.toLowerCase()){case"true":case"false":return!0;default:return!1}})},e.prototype.parseNumber=function(e){var t;return null!=(t=Number(e))?t:void 0},e.prototype.coerceString=function(e){if(null!=e)return"object"==typeof e?JSON.stringify(e):String(e)},e.prototype.coerceStringArray=function(e){var t=this;if(Array.isArray(e)){var n=e;return n.map(function(e){return t.coerceString(e)}).filter(Boolean)}var r=String(e);try{var i=JSON.parse(r);if(Array.isArray(i)){var n=e;return n.map(function(e){return t.coerceString(e)}).filter(Boolean)}var o=this.coerceString(r);return o?[o]:void 0}catch(e){var o=this.coerceString(r);return o?[o]:void 0}},e.prototype.isSetOperator=function(e){switch(e){case ar.SET_IS:case ar.SET_IS_NOT:case ar.SET_CONTAINS:case ar.SET_DOES_NOT_CONTAIN:case ar.SET_CONTAINS_ANY:case ar.SET_DOES_NOT_CONTAIN_ANY:return!0;default:return!1}},e.prototype.setEquals=function(e,t){var n=new Set(e),r=new Set(t);return n.size===r.size&&an([],at(r),!1).every(function(e){return n.has(e)})},e.prototype.matchesSetContainsAll=function(e,t){var n,r;if(e.length<t.length)return!1;try{for(var i=ae(t),o=i.next();!o.done;o=i.next()){var a=o.value;if(!this.matchesIs(a,e))return!1}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0},e.prototype.matchesSetContainsAny=function(e,t){var n,r;try{for(var i=ae(t),o=i.next();!o.done;o=i.next()){var a=o.value;if(this.matchesIs(a,e))return!0}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!1},e}(),ag=function(e,t){var n,r,i=o8({},e),o=[],a=t||Object.keys(i);try{for(var s=ae(a),l=s.next();!l.done;l=s.next()){var u=l.value,c=av(u,i);c&&o.push.apply(o,an([],at(c),!1))}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return o},av=function(e,t,n){void 0===n&&(n=[]);var r,i,o=t[e];if(o){if(!o.dependencies||0===o.dependencies.length)return delete t[o.key],[o];n.push(o.key);var a=[],s=function(e){if(n.some(function(t){return t===e}))throw Error("Detected a cycle between flags ".concat(n));var r=av(e,t,n);r&&a.push.apply(a,an([],at(r),!1))};try{for(var l=ae(o.dependencies),u=l.next();!u.done;u=l.next()){var c=u.value;s(c)}}catch(e){r={error:e}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return a.push(o),n.pop(),delete t[o.key],a}};let am="function"==typeof atob,ab="function"==typeof btoa,ay="function"==typeof o3,ax="function"==typeof TextDecoder?new TextDecoder:void 0,aw="function"==typeof TextEncoder?new TextEncoder:void 0,aS=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),aE=(e=>{let t={};return e.forEach((e,n)=>t[e]=n),t})(aS),ak=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,aC=String.fromCharCode.bind(String),aO="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),aI=e=>e.replace(/=/g,"").replace(/[+\/]/g,e=>"+"==e?"-":"_"),a_=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),aT=ab?e=>btoa(e):ay?e=>o3.from(e,"binary").toString("base64"):e=>{let t,n,r,i,o="",a=e.length%3;for(let a=0;a<e.length;){if((n=e.charCodeAt(a++))>255||(r=e.charCodeAt(a++))>255||(i=e.charCodeAt(a++))>255)throw TypeError("invalid character found");o+=aS[(t=n<<16|r<<8|i)>>18&63]+aS[t>>12&63]+aS[t>>6&63]+aS[63&t]}return a?o.slice(0,a-3)+"===".substring(a):o},aP=ay?e=>o3.from(e).toString("base64"):e=>{let t=[];for(let n=0,r=e.length;n<r;n+=4096)t.push(aC.apply(null,e.subarray(n,n+4096)));return aT(t.join(""))},aR=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?aC(192|t>>>6)+aC(128|63&t):aC(224|t>>>12&15)+aC(128|t>>>6&63)+aC(128|63&t)}var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return aC(240|t>>>18&7)+aC(128|t>>>12&63)+aC(128|t>>>6&63)+aC(128|63&t)},aA=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,aN=ay?e=>o3.from(e,"utf8").toString("base64"):aw?e=>aP(aw.encode(e)):e=>aT(e.replace(aA,aR)),aM=(e,t=!1)=>t?aI(aN(e)):aN(e),aL=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,aV=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return aC((t>>>10)+55296)+aC((1023&t)+56320);case 3:return aC((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return aC((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},aD=am?e=>atob(a_(e)):ay?e=>o3.from(e,"base64").toString("binary"):e=>{if(e=e.replace(/\s+/g,""),!ak.test(e))throw TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,n="",r,i;for(let o=0;o<e.length;)t=aE[e.charAt(o++)]<<18|aE[e.charAt(o++)]<<12|(r=aE[e.charAt(o++)])<<6|(i=aE[e.charAt(o++)]),n+=64===r?aC(t>>16&255):64===i?aC(t>>16&255,t>>8&255):aC(t>>16&255,t>>8&255,255&t);return n},aF=ay?e=>aO(o3.from(e,"base64")):e=>aO(aD(e).split("").map(e=>e.charCodeAt(0))),aj=ay?e=>o3.from(e,"base64").toString("utf8"):ax?e=>ax.decode(aF(e)):e=>aD(e).replace(aL,aV),az={encodeURL:e=>aM(e,!0)};var aB=function(e){function t(n,r){var i=e.call(this,r)||this;return i.statusCode=n,Object.setPrototypeOf(i,t.prototype),i}return o6(t,e),t}(Error),aU=function(e){function t(n){var r=e.call(this,n)||this;return Object.setPrototypeOf(r,t.prototype),r}return o6(t,e),t}(Error),aW=function(){function e(e,t,n){this.deploymentKey=e,this.serverUrl=t,this.httpClient=n}return e.prototype.getVariants=function(e,t){return o7(this,void 0,void 0,function(){var n,r,i,o;return o9(this,function(a){switch(a.label){case 0:return n=az.encodeURL(JSON.stringify(e)),r={Authorization:"Api-Key ".concat(this.deploymentKey),"X-Amp-Exp-User":n},(null==t?void 0:t.flagKeys)&&(r["X-Amp-Exp-Flag-Keys"]=az.encodeURL(JSON.stringify(t.flagKeys))),(null==t?void 0:t.trackingOption)&&(r["X-Amp-Exp-Track"]=t.trackingOption),i=new URL("".concat(this.serverUrl,"/sdk/v2/vardata?v=0")),(null==t?void 0:t.evaluationMode)&&i.searchParams.append("eval_mode",null==t?void 0:t.evaluationMode),(null==t?void 0:t.deliveryMethod)&&i.searchParams.append("delivery_method",null==t?void 0:t.deliveryMethod),[4,this.httpClient.request({requestUrl:i.toString(),method:"GET",headers:r,timeoutMillis:null==t?void 0:t.timeoutMillis})];case 1:if(200!=(o=a.sent()).status)throw new aB(o.status,"Fetch error response: status=".concat(o.status));return[2,JSON.parse(o.body)]}})})},e}(),aH=function(){function e(e,t,n){this.deploymentKey=e,this.serverUrl=t,this.httpClient=n}return e.prototype.getFlags=function(e){return o7(this,void 0,void 0,function(){var t,n;return o9(this,function(r){switch(r.label){case 0:return t={Authorization:"Api-Key ".concat(this.deploymentKey)},(null==e?void 0:e.libraryName)&&(null==e?void 0:e.libraryVersion)&&(t["X-Amp-Exp-Library"]="".concat(e.libraryName,"/").concat(e.libraryVersion)),(null==e?void 0:e.user)&&(t["X-Amp-Exp-User"]=az.encodeURL(JSON.stringify(e.user))),[4,this.httpClient.request({requestUrl:"".concat(this.serverUrl,"/sdk/v2/flags")+((null==e?void 0:e.deliveryMethod)?"?delivery_method=".concat(e.deliveryMethod):""),method:"GET",headers:t,timeoutMillis:null==e?void 0:e.timeoutMillis})];case 1:if(200!=(n=r.sent()).status)throw Error("Flags error response: status=".concat(n.status));return[2,JSON.parse(n.body).reduce(function(e,t){return e[t.key]=t,e},{})]}})})},e}(),aq="undefined"!=typeof globalThis?globalThis:n.g||self,a$=function(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==n.g?n.g:void 0},aG=function(){var e=a$();if(e)try{var t="EXP_test";return e.localStorage.setItem(t,t),e.localStorage.removeItem(t),!0}catch(e){}return!1},aK=function(){function e(e,t){this.poller=void 0,this.action=e,this.ms=t}return e.prototype.start=function(){this.poller||(this.poller=aq.setInterval(this.action,this.ms),this.action())},e.prototype.stop=function(){this.poller&&(aq.clearInterval(this.poller),this.poller=void 0)},e}(),aY=n(68626);!function(){function e(e){this.amplitudeInstance=e}e.prototype.getUser=function(){var e,t,n,r,i,o,a,s,l,u;return{device_id:null==(t=null==(e=this.amplitudeInstance)?void 0:e.options)?void 0:t.deviceId,user_id:null==(r=null==(n=this.amplitudeInstance)?void 0:n.options)?void 0:r.userId,version:null==(o=null==(i=this.amplitudeInstance)?void 0:i.options)?void 0:o.versionName,language:null==(s=null==(a=this.amplitudeInstance)?void 0:a.options)?void 0:s.language,platform:null==(u=null==(l=this.amplitudeInstance)?void 0:l.options)?void 0:u.platform,os:this.getOs(),device_model:this.getDeviceModel()}},e.prototype.getOs=function(){var e,t,n,r,i,o;return[null==(n=null==(t=null==(e=this.amplitudeInstance)?void 0:e._ua)?void 0:t.browser)?void 0:n.name,null==(o=null==(i=null==(r=this.amplitudeInstance)?void 0:r._ua)?void 0:i.browser)?void 0:o.major].filter(function(e){return null!=e}).join(" ")},e.prototype.getDeviceModel=function(){var e,t,n;return null==(n=null==(t=null==(e=this.amplitudeInstance)?void 0:e._ua)?void 0:t.os)?void 0:n.name}}(),function(){function e(e){this.amplitudeInstance=e}e.prototype.track=function(e){this.amplitudeInstance.logEvent(e.name,e.properties)},e.prototype.setUserProperty=function(e){var t,n;this.amplitudeInstance.setUserProperties(((t={})[e.userProperty]=null==(n=e.variant)?void 0:n.value,t))},e.prototype.unsetUserProperty=function(e){var t;this.amplitudeInstance._logEvent("$identify",null,null,{$unset:((t={})[e.userProperty]="-",t)})}}();var aX=function(){return(aX=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function aQ(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}function aJ(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function aZ(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function a0(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function a1(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var a2=function(e,t){void 0===t&&(t=!1);var n,r,i=a4(e,t),o=void 0,a=aq.document.cookie.split("; ");try{for(var s=aZ(a),l=s.next();!l.done;l=s.next()){var u=l.value,c=a0(u.split("=",2),2),d=c[0],f=c[1];d===i&&(o=decodeURIComponent(f))}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}if(o)try{if(t){var h=atob(o);return JSON.parse(decodeURIComponent(h))}var p=o.split("."),g=void 0;return p.length>=2&&p[1]&&(g=atob(p[1])),{deviceId:p[0],userId:g}}catch(e){return}},a5=function(e){var t=a4(e,!0);try{var n=aq.localStorage.getItem(t);if(!n)return;var r=JSON.parse(n);if("object"!=typeof r)return;return r}catch(e){return}},a3=function(e){var t=a4(e,!0);try{var n=aq.sessionStorage.getItem(t);if(!n)return;var r=JSON.parse(n);if("object"!=typeof r)return;return r}catch(e){return}},a4=function(e,t){if(t){if((null==e?void 0:e.length)<10)return;return"AMP_".concat(e.substring(0,10))}if(!((null==e?void 0:e.length)<6))return"amp_".concat(e.substring(0,6))},a6=function(){function e(e,t,n){this.type="integration",this.apiKey=e,this.identityStore=t.identityStore,this.eventBridge=t.eventBridge,this.contextProvider=t.applicationContextProvider,this.timeoutMillis=n,this.loadPersistedState(),n<=0&&(this.setup=void 0)}return e.prototype.setup=function(e,t){return aQ(this,void 0,void 0,function(){return aJ(this,function(n){return(null==e?void 0:e.automaticFetchOnAmplitudeIdentityChange)&&this.identityStore.addIdentityListener(function(){null==t||t.fetch()}),[2,this.waitForConnectorIdentity(this.timeoutMillis)]})})},e.prototype.getUser=function(){var e=this.identityStore.getIdentity();return{user_id:e.userId,device_id:e.deviceId,user_properties:e.userProperties,version:this.contextProvider.versionName}},e.prototype.track=function(e){return!!this.eventBridge.receiver&&(this.eventBridge.logEvent({eventType:e.eventType,eventProperties:e.eventProperties}),!0)},e.prototype.loadPersistedState=function(){if(!this.apiKey||this.apiKey.startsWith("client-"))return!1;var e=a2(this.apiKey,!0);return!!(e||(e=a2(this.apiKey,!1))||(e=a5(this.apiKey))||(e=a3(this.apiKey)))&&(this.commitIdentityToConnector(e),!0)},e.prototype.commitIdentityToConnector=function(e){var t=this.identityStore.editIdentity();t.setDeviceId(e.deviceId),e.userId&&t.setUserId(e.userId),t.commit()},e.prototype.waitForConnectorIdentity=function(e){return aQ(this,void 0,void 0,function(){var t,n=this;return aJ(this,function(r){return(t=this.identityStore.getIdentity()).userId||t.deviceId?[2]:[2,Promise.race([new Promise(function(e){var t=function(){e(),n.identityStore.removeIdentityListener(t)};n.identityStore.addIdentityListener(t)}),new Promise(function(t,n){aq.setTimeout(n,e,"Timed out waiting for Amplitude Analytics SDK to initialize.")})])]})})},e}(),a8=aq.fetch||function(e,t){return t=t||{},new Promise(function(n,r){var i=new XMLHttpRequest,o=[],a=[],s={},l=function(){return{ok:2==(i.status/100|0),statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(JSON.parse(i.responseText))},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:l,headers:{keys:function(){return o},entries:function(){return a},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var u in i.open(t.method||"get",e,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(e,t,n){o.push(t=t.toLowerCase()),a.push([t,n]),s[t]=s[t]?s[t]+","+n:n}),n(l())},i.onerror=r,i.withCredentials="include"==t.credentials,t.headers)i.setRequestHeader(u,t.headers[u]);i.send(t.body||null)})},a7=function(){function e(e){this.client=e}return e.prototype.request=function(e){return aQ(this,void 0,void 0,function(){return aJ(this,function(t){switch(t.label){case 0:return[4,this.client.request(e.requestUrl,e.method,e.headers,null,e.timeoutMillis)];case 1:return[2,t.sent()]}})})},e}(),a9={request:function(e,t,n,r,i){var o;return o=aQ(void 0,void 0,void 0,function(){var i,o;return aJ(this,function(a){switch(a.label){case 0:return[4,a8(e,{method:t,headers:n,body:r})];case 1:return o={status:(i=a.sent()).status},[4,i.text()];case 2:return o.body=a.sent(),[2,o]}})}),null==i||i<=0?o:new Promise(function(e,t){aq.setTimeout(function(){t(new aU("Request timeout after "+i+" milliseconds"))},i),o.then(e,t)})}};!function(e){e.LocalStorage="localStorage",e.InitialVariants="initialVariants"}(O||(O={})),function(e){e.LocalStorage="storage",e.InitialVariants="initial",e.SecondaryLocalStorage="secondary-storage",e.SecondaryInitialVariants="secondary-initial",e.FallbackInline="fallback-inline",e.FallbackConfig="fallback-config",e.LocalEvaluation="local-evaluation"}(I||(I={}));var se=function(e){return!e||e===I.FallbackInline||e===I.FallbackConfig||e===I.SecondaryInitialVariants},st={debug:!1,instanceName:"$default_instance",fallbackVariant:{},initialVariants:{},initialFlags:void 0,source:O.LocalStorage,serverUrl:"https://api.lab.amplitude.com",flagsServerUrl:"https://flag.lab.amplitude.com",serverZone:"US",fetchTimeoutMillis:1e4,retryFetchOnFailure:!0,automaticExposureTracking:!0,pollOnStart:!0,flagConfigPollingIntervalMillis:3e5,fetchOnStart:!0,automaticFetchOnAmplitudeIdentityChange:!1,userProvider:null,analyticsProvider:null,exposureTrackingProvider:null,httpClient:a9},sn="1.15.6",sr=function(){function e(e,t){var n,r=this;this.isReady=new Promise(function(e){r.resolve=e}),this.config=e,this.client=t;var i=null!=(n=e.instanceName)?n:st.instanceName;this.queue=new so(i),this.cache=new si(i)}return e.prototype.ready=function(){return this.integration?this.isReady:Promise.resolve()},e.prototype.setIntegration=function(e){var t=this;this.integration&&this.integration.teardown&&this.integration.teardown(),this.integration=e,e.setup?this.integration.setup(this.config,this.client).then(function(){t.queue.setTracker(t.integration.track.bind(e)),t.resolve()},function(){t.queue.setTracker(t.integration.track.bind(e)),t.resolve()}):(this.queue.setTracker(this.integration.track.bind(e)),this.resolve())},e.prototype.getUser=function(){return this.integration?this.integration.getUser():{}},e.prototype.track=function(e){if(this.cache.shouldTrack(e)){var t=this.getExposureEvent(e);this.queue.push(t)}},e.prototype.getExposureEvent=function(e){var t,n,r,i={eventType:"$exposure",eventProperties:e};return(null==(t=e.metadata)?void 0:t.exposureEvent)?i={eventType:null==(n=e.metadata)?void 0:n.exposureEvent,eventProperties:e}:(null==(r=e.metadata)?void 0:r.deliveryMethod)==="web"&&(i={eventType:"$impression",eventProperties:e}),i},e}(),si=function(){function e(e){this.isSessionStorageAvailable=sa(),this.inMemoryCache={},this.storageKey="EXP_sent_v2_".concat(e),this.isSessionStorageAvailable&&aq.sessionStorage.removeItem("EXP_sent_".concat(e))}return e.prototype.shouldTrack=function(e){if((null==(t=e.metadata)?void 0:t.deliveryMethod)==="web")return!0;this.loadCache();var t,n=this.inMemoryCache[e.flag_key],r=!1;return n&&n.variant===e.variant||(r=!0,this.inMemoryCache[e.flag_key]=e),this.storeCache(),r},e.prototype.loadCache=function(){if(this.isSessionStorageAvailable){var e=aq.sessionStorage.getItem(this.storageKey);this.inMemoryCache=e?JSON.parse(e):{}}},e.prototype.storeCache=function(){this.isSessionStorageAvailable&&aq.sessionStorage.setItem(this.storageKey,JSON.stringify(this.inMemoryCache))},e}(),so=function(){function e(e,t){void 0===t&&(t=512),this.isLocalStorageAvailable=aG(),this.inMemoryQueue=[],this.storageKey="EXP_unsent_".concat(e),this.maxQueueSize=t}return e.prototype.push=function(e){this.loadQueue(),this.inMemoryQueue.push(e),this.flush(),this.storeQueue()},e.prototype.setTracker=function(e){var t=this;this.tracker=e,this.poller=aq.setInterval(function(){t.loadFlushStore()},1e3),this.loadFlushStore()},e.prototype.flush=function(){var e,t;if(this.tracker&&0!==this.inMemoryQueue.length){try{for(var n=aZ(this.inMemoryQueue),r=n.next();!r.done;r=n.next()){var i=r.value;try{if(!this.tracker(i))return}catch(e){return}}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.inMemoryQueue=[],this.poller&&(aq.clearInterval(this.poller),this.poller=void 0)}},e.prototype.loadQueue=function(){if(this.isLocalStorageAvailable){var e=aq.localStorage.getItem(this.storageKey);this.inMemoryQueue=e?JSON.parse(e):[]}},e.prototype.storeQueue=function(){this.isLocalStorageAvailable&&(this.inMemoryQueue.length>this.maxQueueSize&&(this.inMemoryQueue=this.inMemoryQueue.slice(this.inMemoryQueue.length-this.maxQueueSize)),aq.localStorage.setItem(this.storageKey,JSON.stringify(this.inMemoryQueue)))},e.prototype.loadFlushStore=function(){this.loadQueue(),this.flush(),this.storeQueue()},e}(),sa=function(){var e=a$();if(e)try{var t="EXP_test";return e.sessionStorage.setItem(t,t),e.sessionStorage.removeItem(t),!0}catch(e){}return!1},ss=function(){function e(){this.globalScope=a$()}return e.prototype.get=function(e){var t;return null==(t=this.globalScope)?void 0:t.localStorage.getItem(e)},e.prototype.put=function(e,t){var n;null==(n=this.globalScope)||n.localStorage.setItem(e,t)},e.prototype.delete=function(e){var t;null==(t=this.globalScope)||t.localStorage.removeItem(e)},e}(),sl=function(e,t,n){var r=e.substring(e.length-6);return new sc("amp-exp-".concat(t,"-").concat(r),n,sd)},su=function(e,t,n){void 0===n&&(n=new ss);var r=e.substring(e.length-6);return new sc("amp-exp-".concat(t,"-").concat(r,"-flags"),n)},sc=function(){function e(e,t,n){this.cache={},this.namespace=e,this.storage=t,this.transformer=n}return e.prototype.get=function(e){return this.cache[e]},e.prototype.getAll=function(){return aX({},this.cache)},e.prototype.put=function(e,t){this.cache[e]=t},e.prototype.putAll=function(e){var t,n;try{for(var r=aZ(Object.keys(e)),i=r.next();!i.done;i=r.next()){var o=i.value;this.cache[o]=e[o]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.remove=function(e){delete this.cache[e]},e.prototype.clear=function(){this.cache={}},e.prototype.load=function(){var e,t,n,r=this.storage.get(this.namespace);try{n=JSON.parse(r)||{}}catch(e){return}var i={};try{for(var o=aZ(Object.keys(n)),a=o.next();!a.done;a=o.next()){var s=a.value;try{var l=void 0;(l=this.transformer?this.transformer(n[s]):n[s])&&(i[s]=l)}catch(e){}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}this.clear(),this.putAll(i)},e.prototype.store=function(e){void 0===e&&(e=this.cache),this.storage.put(this.namespace,JSON.stringify(e))},e}(),sd=function(e){if("string"==typeof e)return{key:e,value:e};if("object"==typeof e){var t=e.key,n=e.value,r=e.payload,i=e.metadata,o=e.expKey;i&&i.experimentKey?o=i.experimentKey:o&&((i=i||{}).experimentKey=o);var a={};return t?a.key=t:n&&(a.key=n),n&&(a.value=n),i&&(a.metadata=i),r&&(a.payload=r),o&&(a.expKey=o),a}},sf=function(){function e(){this.globalScope=a$()}return e.prototype.get=function(e){var t;return null==(t=this.globalScope)?void 0:t.sessionStorage.getItem(e)},e.prototype.put=function(e,t){var n;null==(n=this.globalScope)||n.sessionStorage.setItem(e,t)},e.prototype.delete=function(e){var t;null==(t=this.globalScope)||t.sessionStorage.removeItem(e)},e}(),sh=function(e,t,n,r){var i,o=null==n?void 0:n.value,a="[Experiment] ".concat(t);return{name:"[Experiment] Exposure",user:e,key:t,variant:n,userProperty:a,properties:{key:t,variant:o,source:r},userProperties:((i={})[a]=o,i)}},sp=function(e){return null==e},sg=function(e){return!!sp(e)||e&&0===Object.keys(e).length},sv=function(e){var t;return(null==(t=null==e?void 0:e.metadata)?void 0:t.evaluationMode)==="local"},sm=function(){function e(e,t,n,r){this.started=!1,this.done=!1,this.attempts=e,this.min=t,this.max=n,this.scalar=r}return e.prototype.start=function(e){return aQ(this,void 0,void 0,function(){return aJ(this,function(t){switch(t.label){case 0:if(this.started)throw Error("Backoff already started");return this.started=!0,[4,this.backoff(e,0,this.min)];case 1:return t.sent(),[2]}})})},e.prototype.cancel=function(){this.done=!0,clearTimeout(this.timeoutHandle)},e.prototype.backoff=function(e,t,n){return aQ(this,void 0,void 0,function(){var r=this;return aJ(this,function(i){return this.done||(this.timeoutHandle=aq.setTimeout(function(){return aQ(r,void 0,void 0,function(){var r,i;return aJ(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,e()];case 1:return o.sent(),[3,3];case 2:return o.sent(),(r=t+1)<this.attempts&&(i=Math.min(n*this.scalar,this.max),this.backoff(e,r,i)),[3,3];case 3:return[2]}})})},n)),[2]})})},e}(),sb=function(e){if(!e)return{};var t,n,r,i,o={user:e},a=a$();a&&(o.page={url:a.location.href});var s={};if(!e.groups)return o;try{for(var l=aZ(Object.keys(e.groups)),u=l.next();!u.done;u=l.next()){var c=u.value,d=e.groups[c];if(d.length>0&&d[0]){var f=d[0],h={group_name:f},p=null==(i=null==(r=e.group_properties)?void 0:r[c])?void 0:i[f];p&&Object.keys(p).length>0&&(h.group_properties=p),s[c]=h}}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return Object.keys(s).length>0&&(o.groups=s),delete o.user.groups,delete o.user.group_properties,o},sy=function(e){return null==e?{}:"string"==typeof e?{key:e,value:e}:e},sx=function(e){if(!e)return{};var t=void 0;e.metadata&&(t=e.metadata.experimentKey);var n={};return e.key&&(n.key=e.key),e.value&&(n.value=e.value),e.payload&&(n.payload=e.payload),t&&(n.expKey=t),e.metadata&&(n.metadata=e.metadata),n},sw=function(){function e(e){this.setProperties={},this.unsetProperties={},this.analyticsProvider=e}return e.prototype.track=function(e){this.setProperties[e.key]!=e.variant.value&&(this.setProperties[e.key]=e.variant.value,delete this.unsetProperties[e.key],this.analyticsProvider.track(e))},e.prototype.setUserProperty=function(e){this.setProperties[e.key]!=e.variant.value&&this.analyticsProvider.setUserProperty(e)},e.prototype.unsetUserProperty=function(e){this.unsetProperties[e.key]||(this.unsetProperties[e.key]="unset",delete this.setProperties[e.key],this.analyticsProvider.unsetUserProperty(e))},e}(),sS=function(){function e(e){this.tracked={},this.exposureTrackingProvider=e}return e.prototype.track=function(e){var t=this.tracked[e.flag_key];t&&t.variant===e.variant||(this.tracked[e.flag_key]=e,this.exposureTrackingProvider.track(e))},e}(),sE=function(){function e(e,t){var n,r,i,o,a,s=this;this.engine=new ap,this.isRunning=!1,this.apiKey=e,this.config=aX(aX(aX({},st),t),{serverUrl:(null==t?void 0:t.serverUrl)||((null==(n=null==t?void 0:t.serverZone)?void 0:n.toLowerCase())==="eu"?"https://api.lab.eu.amplitude.com":st.serverUrl),flagsServerUrl:(null==t?void 0:t.flagsServerUrl)||((null==(r=null==t?void 0:t.serverZone)?void 0:r.toLowerCase())==="eu"?"https://flag.lab.eu.amplitude.com":st.flagsServerUrl),flagConfigPollingIntervalMillis:t.flagConfigPollingIntervalMillis<6e4?6e4:null!=(i=t.flagConfigPollingIntervalMillis)?i:st.flagConfigPollingIntervalMillis});var l=null==(o=this.config)?void 0:o.internalInstanceNameSuffix;if(this.isWebExperiment="web"===l,this.poller=new aK(function(){return s.doFlags()},this.config.flagConfigPollingIntervalMillis),this.config.initialVariants)for(var u in this.config.initialVariants)this.config.initialVariants[u]=sd(this.config.initialVariants[u]);this.config.userProvider&&(this.userProvider=this.config.userProvider),this.config.analyticsProvider&&(this.analyticsProvider=new sw(this.config.analyticsProvider)),this.config.exposureTrackingProvider&&(this.exposureTrackingProvider=new sS(this.config.exposureTrackingProvider)),this.integrationManager=new sr(this.config,this);var c=new a7(this.config.httpClient||a9);this.flagApi=new aH(this.apiKey,this.config.flagsServerUrl,c),this.evaluationApi=new aW(this.apiKey,this.config.serverUrl,c);var d=l?"".concat(this.config.instanceName,"-").concat(l):this.config.instanceName;a=this.isWebExperiment?new sf:new ss,this.variants=sl(this.apiKey,d,a),this.flags=su(this.apiKey,d,a);try{this.flags.load(),this.variants.load()}catch(e){}this.mergeInitialFlagsWithStorage()}return e.prototype.start=function(e){var t;return aQ(this,void 0,void 0,function(){var n;return aJ(this,function(r){switch(r.label){case 0:if(this.isRunning)return[2];if(this.isRunning=!0,this.setUser(e),n=this.doFlags(),!(null==(t=this.config.fetchOnStart)||t))return[3,2];return[4,Promise.all([this.fetch(e),n])];case 1:return r.sent(),[3,4];case 2:return[4,n];case 3:r.sent(),r.label=4;case 4:return this.config.pollOnStart&&this.poller.start(),[2]}})})},e.prototype.stop=function(){this.isRunning&&(this.poller.stop(),this.isRunning=!1)},e.prototype.fetch=function(e,t){return void 0===e&&(e=this.user),aQ(this,void 0,void 0,function(){var n;return aJ(this,function(r){switch(r.label){case 0:this.setUser(e||{}),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.fetchInternal(e,this.config.fetchTimeoutMillis,this.config.retryFetchOnFailure,t)];case 2:return r.sent(),[3,4];case 3:return n=r.sent(),this.config.debug&&(n instanceof aU?console.debug(n):console.error(n)),[3,4];case 4:return[2,this]}})})},e.prototype.variant=function(e,t){if(!this.apiKey)return{value:void 0};var n,r,i=this.variantAndSource(e,t);return this.config.automaticExposureTracking&&this.exposureInternal(e,i),this.debug("[Experiment] variant for ".concat(e," is ").concat((null==(n=i.variant)?void 0:n.key)||(null==(r=i.variant)?void 0:r.value))),i.variant||{}},e.prototype.exposure=function(e){var t=this.variantAndSource(e);this.exposureInternal(e,t)},e.prototype.all=function(){if(!this.apiKey)return{};var e=this.evaluate();for(var t in e)sv(this.flags.get(t))||delete e[t];return aX(aX(aX({},this.secondaryVariants()),this.sourceVariants()),e)},e.prototype.clear=function(){this.variants.clear();try{this.variants.store()}catch(e){}},e.prototype.getUser=function(){if(!this.user)return this.user;if(null==(e=this.user)||!e.user_properties)return aX({},this.user);var e,t=aX({},this.user.user_properties);return aX(aX({},this.user),{user_properties:t})},e.prototype.setUser=function(e){var t;if(!e){this.user=null;return}if(null==(t=this.user)?void 0:t.user_properties){var n=aX({},e.user_properties);this.user=aX(aX({},e),{user_properties:n})}else this.user=aX({},e)},e.prototype.getUserProvider=function(){return this.userProvider},e.prototype.setUserProvider=function(e){return this.userProvider=e,this},e.prototype.mergeInitialFlagsWithStorage=function(){var e=this;this.config.initialFlags&&JSON.parse(this.config.initialFlags).forEach(function(t){e.flags.get(t.key)||e.flags.put(t.key,t)})},e.prototype.evaluate=function(e){var t,n,r=this.addContext(this.user),i=ag(this.flags.getAll(),e),o=sb(r),a=this.engine.evaluate(o,i),s={};try{for(var l=aZ(Object.keys(a)),u=l.next();!u.done;u=l.next()){var c=u.value;s[c]=sx(a[c])}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return s},e.prototype.variantAndSource=function(e,t){var n={};this.config.source===O.LocalStorage?n=this.localStorageVariantAndSource(e,t):this.config.source===O.InitialVariants&&(n=this.initialVariantsVariantAndSource(e,t));var r=this.flags.get(e);return(sv(r)||!n.variant&&r)&&(n=this.localEvaluationVariantAndSource(e,r,t)),n},e.prototype.localEvaluationVariantAndSource=function(e,t,n){var r,i={},o=this.evaluate([t.key])[e],a=I.LocalEvaluation,s=null==(r=null==o?void 0:o.metadata)?void 0:r.default;if(!sp(o)&&!s)return{variant:sy(o),source:a,hasDefaultVariant:!1};if(s&&(i={variant:sy(o),source:a,hasDefaultVariant:!0}),!sp(n))return{variant:sy(n),source:I.FallbackInline,hasDefaultVariant:i.hasDefaultVariant};var l=this.config.initialVariants[e];if(!sp(l))return{variant:sy(l),source:I.SecondaryInitialVariants,hasDefaultVariant:i.hasDefaultVariant};var u=sy(this.config.fallbackVariant),c={variant:u,source:I.FallbackConfig,hasDefaultVariant:i.hasDefaultVariant};return sg(u)?i:c},e.prototype.localStorageVariantAndSource=function(e,t){var n,r={},i=this.variants.get(e),o=null==(n=null==i?void 0:i.metadata)?void 0:n.default;if(!sp(i)&&!o)return{variant:sy(i),source:I.LocalStorage,hasDefaultVariant:!1};if(o&&(r={variant:sy(i),source:I.LocalStorage,hasDefaultVariant:!0}),!sp(t))return{variant:sy(t),source:I.FallbackInline,hasDefaultVariant:r.hasDefaultVariant};var a=this.config.initialVariants[e];if(!sp(a))return{variant:sy(a),source:I.SecondaryInitialVariants,hasDefaultVariant:r.hasDefaultVariant};var s=sy(this.config.fallbackVariant),l={variant:s,source:I.FallbackConfig,hasDefaultVariant:r.hasDefaultVariant};return sg(s)?r:l},e.prototype.initialVariantsVariantAndSource=function(e,t){var n,r={},i=this.config.initialVariants[e];if(!sp(i))return{variant:sy(i),source:I.InitialVariants,hasDefaultVariant:!1};var o=this.variants.get(e),a=null==(n=null==o?void 0:o.metadata)?void 0:n.default;if(!sp(o)&&!a)return{variant:sy(o),source:I.LocalStorage,hasDefaultVariant:!1};if(a&&(r={variant:sy(o),source:I.LocalStorage,hasDefaultVariant:!0}),!sp(t))return{variant:sy(t),source:I.FallbackInline,hasDefaultVariant:r.hasDefaultVariant};var s=sy(this.config.fallbackVariant),l={variant:s,source:I.FallbackConfig,hasDefaultVariant:r.hasDefaultVariant};return sg(s)?r:l},e.prototype.fetchInternal=function(e,t,n,r){return aQ(this,void 0,void 0,function(){var i,o;return aJ(this,function(a){switch(a.label){case 0:if(!this.apiKey)throw Error("Experiment API key is empty");this.debug("[Experiment] Fetch all: retry=".concat(n)),n&&this.stopRetries(),a.label=1;case 1:return a.trys.push([1,4,,5]),[4,this.doFetch(e,t,r)];case 2:return i=a.sent(),[4,this.storeVariants(i,r)];case 3:return a.sent(),[2,i];case 4:throw o=a.sent(),n&&this.shouldRetryFetch(o)&&this.startRetries(e,r),o;case 5:return[2]}})})},e.prototype.cleanUserPropsForFetch=function(e){var t=aX({},e);return delete t.cookie,t},e.prototype.doFetch=function(e,t,n){return aQ(this,void 0,void 0,function(){var r,i,o,a,s,l,u;return aJ(this,function(c){switch(c.label){case 0:return[4,this.addContextOrWait(e)];case 1:return e=c.sent(),e=this.cleanUserPropsForFetch(e),this.debug("[Experiment] Fetch variants for user: ",e),[4,this.evaluationApi.getVariants(e,aX({timeoutMillis:t},n))];case 2:r=c.sent(),i={};try{for(a=(o=aZ(Object.keys(r))).next();!a.done;a=o.next())i[s=a.value]=sx(r[s])}catch(e){l={error:e}}finally{try{a&&!a.done&&(u=o.return)&&u.call(o)}finally{if(l)throw l.error}}return this.debug("[Experiment] Received variants: ",i),[2,i]}})})},e.prototype.doFlags=function(){return aQ(this,void 0,void 0,function(){var e,t,n;return aJ(this,function(r){switch(r.label){case 0:if(r.trys.push([0,4,,5]),e=void 0,!this.isWebExperiment)return[3,2];return[4,this.addContextOrWait(this.getUser())];case 1:e=r.sent(),r.label=2;case 2:return[4,this.flagApi.getFlags({libraryName:"experiment-js-client",libraryVersion:sn,timeoutMillis:this.config.fetchTimeoutMillis,deliveryMethod:this.isWebExperiment?"web":void 0,user:(null==e?void 0:e.user_id)||(null==e?void 0:e.device_id)?{user_id:null==e?void 0:e.user_id,device_id:null==e?void 0:e.device_id}:void 0})];case 3:return t=r.sent(),this.flags.clear(),this.flags.putAll(t),[3,5];case 4:if((n=r.sent())instanceof aU)this.config.debug&&console.debug(n);else throw n;return[3,5];case 5:try{this.flags.store()}catch(e){}return this.mergeInitialFlagsWithStorage(),[2]}})})},e.prototype.storeVariants=function(e,t){return aQ(this,void 0,void 0,function(){var n,r,i,o;return aJ(this,function(a){for(o in 0===(n=t&&t.flagKeys?t.flagKeys:[]).length&&this.variants.clear(),r=function(t){n=n.filter(function(e){return e!==t}),i.variants.put(t,e[t])},i=this,e)r(o);for(o in n)this.variants.remove(o);try{this.variants.store()}catch(e){}return this.debug("[Experiment] Stored variants: ",e),[2]})})},e.prototype.startRetries=function(e,t){return aQ(this,void 0,void 0,function(){var n=this;return aJ(this,function(r){return this.debug("[Experiment] Retry fetch"),this.retriesBackoff=new sm(8,500,1e4,1.5),this.retriesBackoff.start(function(){return aQ(n,void 0,void 0,function(){return aJ(this,function(n){switch(n.label){case 0:return[4,this.fetchInternal(e,1e4,!1,t)];case 1:return n.sent(),[2]}})})}),[2]})})},e.prototype.stopRetries=function(){this.retriesBackoff&&this.retriesBackoff.cancel()},e.prototype.addContext=function(e){var t,n=null==(t=this.userProvider)?void 0:t.getUser(),r=this.integrationManager.getUser(),i=aX(aX(aX({},null==n?void 0:n.user_properties),r.user_properties),null==e?void 0:e.user_properties);return aX(aX(aX(aX({library:"experiment-js-client/".concat(sn)},n),r),e),{user_properties:i})},e.prototype.addContextOrWait=function(e){return aQ(this,void 0,void 0,function(){return aJ(this,function(t){switch(t.label){case 0:return[4,this.integrationManager.ready()];case 1:return t.sent(),[2,this.addContext(e)]}})})},e.prototype.sourceVariants=function(){return this.config.source==O.LocalStorage?this.variants.getAll():this.config.source==O.InitialVariants?this.config.initialVariants:void 0},e.prototype.secondaryVariants=function(){return this.config.source==O.LocalStorage?this.config.initialVariants:this.config.source==O.InitialVariants?this.variants.getAll():void 0},e.prototype.exposureInternal=function(e,t){if(null==(i=null==(r=null==(n=t.variant)?void 0:n.metadata)?void 0:r.trackExposure)||i){this.legacyExposureInternal(e,t.variant,t.source);var n,r,i,o,a,s,l,u,c,d={flag_key:e},f=se(t.source);if(!f||t.hasDefaultVariant){(null==(o=t.variant)?void 0:o.expKey)&&(d.experiment_key=null==(a=t.variant)?void 0:a.expKey);var h=null==(s=t.variant)?void 0:s.metadata;f||(null==h?void 0:h.default)||((null==(l=t.variant)?void 0:l.key)?d.variant=t.variant.key:(null==(u=t.variant)?void 0:u.value)&&(d.variant=t.variant.value)),h&&(d.metadata=h),null==(c=this.exposureTrackingProvider)||c.track(d),this.integrationManager.track(d)}}},e.prototype.legacyExposureInternal=function(e,t,n){var r,i,o,a,s;if(this.analyticsProvider){var l=sh(this.addContext(this.getUser()),e,t,n);!se(n)&&(null==t?void 0:t.value)?(null==t?void 0:t.value)&&(null==(a=null==(o=this.analyticsProvider)?void 0:o.setUserProperty)||a.call(o,l),null==(s=this.analyticsProvider)||s.track(l)):null==(i=null==(r=this.analyticsProvider)?void 0:r.unsetUserProperty)||i.call(r,l)}},e.prototype.debug=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.config.debug&&console.debug.apply(console,a1([e],a0(t),!1))},e.prototype.shouldRetryFetch=function(e){return!(e instanceof aB)||e.statusCode<400||e.statusCode>=500||429===e.statusCode},e.prototype.addPlugin=function(e){"integration"===e.type&&this.integrationManager.setIntegration(e)},e}(),sk=function(){function e(e,t){var n,r,i;this.globalScope=a$(),this.userAgent=void 0!==(null==(n=this.globalScope)?void 0:n.navigator)?null==(r=this.globalScope)?void 0:r.navigator.userAgent:void 0,this.ua=new aY.UAParser(this.userAgent).getResult(),this.localStorage=new ss,this.sessionStorage=new sf,this.userProvider=e,this.apiKey=t,this.storageKey="EXP_".concat(null==(i=this.apiKey)?void 0:i.slice(0,10),"_DEFAULT_USER_PROVIDER")}return e.prototype.getUser=function(){var e,t,n,r,i,o=(null==(e=this.userProvider)?void 0:e.getUser())||{};return aX({language:this.getLanguage(),platform:"Web",os:this.getOs(this.ua),device_model:this.getDeviceModel(this.ua),device_category:null!=(n=null==(t=this.ua.device)?void 0:t.type)?n:"desktop",referring_url:null==(i=null==(r=this.globalScope)?void 0:r.document)?void 0:i.referrer.replace(/\/$/,""),cookie:this.getCookie(),browser:this.getBrowser(this.ua),landing_url:this.getLandingUrl(),first_seen:this.getFirstSeen(),url_param:this.getUrlParam(),user_agent:this.userAgent},o)},e.prototype.getLanguage=function(){return"undefined"!=typeof navigator&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},e.prototype.getOs=function(e){var t,n;return[null==(t=e.browser)?void 0:t.name,null==(n=e.browser)?void 0:n.major].filter(function(e){return null!=e}).join(" ")},e.prototype.getDeviceModel=function(e){var t;return null==(t=e.os)?void 0:t.name},e.prototype.getBrowser=function(e){var t,n=null==(t=e.browser)?void 0:t.name;return(null==n?void 0:n.includes("Chrom"))&&(n="Chrome"),(null==n?void 0:n.includes("Firefox"))&&(n="Firefox"),(null==n?void 0:n.includes("Safari"))&&(n="Safari"),(null==n?void 0:n.includes("Edge"))&&(n="Edge"),(null==n?void 0:n.includes("Opera"))&&(n="Opera"),n},e.prototype.getCookie=function(){var e,t,n,r,i;if(null==(t=null==(e=this.globalScope)?void 0:e.document)?void 0:t.cookie)return Object.fromEntries(null==(i=null==(r=null==(n=this.globalScope)?void 0:n.document)?void 0:r.cookie)?void 0:i.split("; ").map(function(e){return e.split("=")}))},e.prototype.getLandingUrl=function(){var e,t;try{var n=JSON.parse(this.sessionStorage.get(this.storageKey)||"{}");return n.landing_url||(n.landing_url=null==(t=null==(e=this.globalScope)?void 0:e.location)?void 0:t.href.replace(/\/$/,""),this.sessionStorage.put(this.storageKey,JSON.stringify(n))),n.landing_url}catch(e){return}},e.prototype.getFirstSeen=function(){try{var e=JSON.parse(this.localStorage.get(this.storageKey)||"{}");return e.first_seen||(e.first_seen=(Date.now()/1e3).toString(),this.localStorage.put(this.storageKey,JSON.stringify(e))),e.first_seen}catch(e){return}},e.prototype.getUrlParam=function(){if(this.globalScope){var e,t,n,r={};try{var i=new URL(this.globalScope.location.href);try{for(var o=aZ(i.searchParams),a=o.next();!a.done;a=o.next()){var s=a0(a.value,2),l=s[0],u=s[1];r[l]=a1(a1([],a0(null!=(n=r[l])?n:[]),!1),a0(u.split(",")),!1)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}}catch(e){return}return Object.entries(r).reduce(function(e,t){var n=a0(t,2),r=n[0],i=n[1];return e[r]=1==i.length?i[0]:i,e},{})}},e}();aq.experimentInstances={};var sC=aq.experimentInstances,sO=function(e){return(null==e?void 0:e.instanceName)||st.instanceName},sI=function(e,t){var n=sO(t),r=null==t?void 0:t.internalInstanceNameSuffix;return r?"".concat(n,".").concat(e,".").concat(r):"".concat(n,".").concat(e)},s_=function(e,t,n){var r=sI(e,t),i=sC[r];return i?i:(i=new sE(e,aX(aX({},t),{userProvider:new sk(null==t?void 0:t.userProvider,e)})),n&&i.addPlugin(n()),sC[r]=i,i)};!function(){function e(){}e.prototype.getUser=function(){return{}},e.prototype.start=function(e){return aQ(this,void 0,void 0,function(){return aJ(this,function(e){return[2]})})},e.prototype.stop=function(){},e.prototype.setUser=function(e){},e.prototype.fetch=function(e){return aQ(this,void 0,void 0,function(){return aJ(this,function(e){return[2,this]})})},e.prototype.getUserProvider=function(){return null},e.prototype.setUserProvider=function(e){return this},e.prototype.variant=function(e,t){return st.fallbackVariant},e.prototype.all=function(){return{}},e.prototype.clear=function(){},e.prototype.exposure=function(e){}}();var sT=function(){function e(t){this.name=e.pluginName,this.config=t}return e.prototype.setup=function(e,t){return A(this,void 0,void 0,function(){return N(this,function(t){var n,r;return this.experiment=s_(n=e.apiKey,r=this.config,function(){return new a6(n,Q.getInstance(sO(r)),1e4)}),[2]})})},e.pluginName="@amplitude/experiment-analytics-plugin",e}(),sP=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return T(t,e),Object.defineProperty(t.prototype,"experiment",{get:function(){if(void 0!==this.config){var e=this.plugins(sT);return 0===e.length?void this.config.loggerProvider.debug("".concat(sT.pluginName," plugin is not found.")):1===e.length?e[0].experiment:void this.config.loggerProvider.debug("Multiple instances of ".concat(sT.pluginName," are found."))}},enumerable:!1,configurable:!0}),t.prototype.initAll=function(t,n){return A(this,void 0,void 0,function(){var r,i;return N(this,function(o){switch(o.label){case 0:return r={serverZone:null==n?void 0:n.serverZone,instanceName:null==n?void 0:n.instanceName},e.prototype.add.call(this,{type:"enrichment",name:"@amplitude/unified-library-plugin",execute:function(e){var t;return A(this,void 0,void 0,function(){return N(this,function(n){return e.library="".concat("amplitude-ts-unified","/").concat("1.0.0-beta.2","-").concat(null!=(t=e.library)?t:""),[2,e]})})}}),[4,e.prototype.init.call(this,t,P(P({},null==n?void 0:n.analytics),r)).promise];case 1:return o.sent(),[4,e.prototype.add.call(this,new o5(P(P({},null==n?void 0:n.sr),r))).promise];case 2:return o.sent(),[4,e.prototype.add.call(this,new sT(P(P({},null==n?void 0:n.experiment),r))).promise];case 3:return o.sent(),void 0===(i=this.plugin(o5.pluginName))?this.config.loggerProvider.debug("".concat(o5.pluginName," plugin is not found.")):this.sr=i.sr,[2]}})})},t.prototype.init=function(t,n,r){return void 0===t&&(t=""),e.prototype.init.call(this,t,n,r)},t}(rK);let sR=function(){var e=new sP;return{experiment:e.experiment,sr:e.sr,initAll:rJ(e.initAll.bind(e),"initAll",rY(e),rQ(e,["config"])),init:rJ(e.init.bind(e),"init",rY(e),rQ(e,["config"])),add:rJ(e.add.bind(e),"add",rY(e),rQ(e,["config.apiKey","timeline.plugins"])),remove:rJ(e.remove.bind(e),"remove",rY(e),rQ(e,["config.apiKey","timeline.plugins"])),track:rJ(e.track.bind(e),"track",rY(e),rQ(e,["config.apiKey","timeline.queue.length"])),logEvent:rJ(e.logEvent.bind(e),"logEvent",rY(e),rQ(e,["config.apiKey","timeline.queue.length"])),identify:rJ(e.identify.bind(e),"identify",rY(e),rQ(e,["config.apiKey","timeline.queue.length"])),groupIdentify:rJ(e.groupIdentify.bind(e),"groupIdentify",rY(e),rQ(e,["config.apiKey","timeline.queue.length"])),setGroup:rJ(e.setGroup.bind(e),"setGroup",rY(e),rQ(e,["config.apiKey","timeline.queue.length"])),revenue:rJ(e.revenue.bind(e),"revenue",rY(e),rQ(e,["config.apiKey","timeline.queue.length"])),flush:rJ(e.flush.bind(e),"flush",rY(e),rQ(e,["config.apiKey","timeline.queue.length"])),getUserId:rJ(e.getUserId.bind(e),"getUserId",rY(e),rQ(e,["config","config.userId"])),setUserId:rJ(e.setUserId.bind(e),"setUserId",rY(e),rQ(e,["config","config.userId"])),getDeviceId:rJ(e.getDeviceId.bind(e),"getDeviceId",rY(e),rQ(e,["config","config.deviceId"])),setDeviceId:rJ(e.setDeviceId.bind(e),"setDeviceId",rY(e),rQ(e,["config","config.deviceId"])),reset:rJ(e.reset.bind(e),"reset",rY(e),rQ(e,["config","config.userId","config.deviceId"])),getSessionId:rJ(e.getSessionId.bind(e),"getSessionId",rY(e),rQ(e,["config"])),setSessionId:rJ(e.setSessionId.bind(e),"setSessionId",rY(e),rQ(e,["config"])),extendSession:rJ(e.extendSession.bind(e),"extendSession",rY(e),rQ(e,["config"])),setOptOut:rJ(e.setOptOut.bind(e),"setOptOut",rY(e),rQ(e,["config"])),setTransport:rJ(e.setTransport.bind(e),"setTransport",rY(e),rQ(e,["config"]))}}();var sA=sR.initAll,sN=(sR.experiment,sR.sr,sR.add,sR.extendSession,sR.flush,sR.getDeviceId,sR.getSessionId,sR.getUserId,sR.groupIdentify,sR.identify,sR.logEvent,sR.remove,sR.reset,sR.revenue,sR.setDeviceId,sR.setGroup,sR.setOptOut,sR.setSessionId,sR.setTransport,sR.setUserId,sR.track)},71406:(e,t,n)=>{e.exports=n(64683)},71937:(e,t,n)=>{var r=n(29675),i=n(53311);e.exports=function(e,t){return null!=e&&i(e,t,r)}},72017:(e,t,n)=>{"use strict";n.d(t,{Aq:()=>E,MI:()=>f,Ng:()=>S});var r=n(61696),i=n(40032),o=n(20752),a=n(73520),s=n(6280),l=n(86074),u=n(59864),c=n(82136),d=n(77952),f=(0,r.y)("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),h=f.build(),p=e=>e.ids?.positioner??`dialog:${e.id}:positioner`,g=e=>e.ids?.backdrop??`dialog:${e.id}:backdrop`,v=e=>e.ids?.content??`dialog:${e.id}:content`,m=e=>e.ids?.trigger??`dialog:${e.id}:trigger`,b=e=>e.ids?.title??`dialog:${e.id}:title`,y=e=>e.ids?.description??`dialog:${e.id}:description`,x=e=>e.ids?.closeTrigger??`dialog:${e.id}:close`,w=e=>e.getById(v(e));function S(e,t){let{state:n,send:r,context:i,prop:o,scope:a}=e,s=o("aria-label"),l=n.matches("open");return{open:l,setOpen(e){n.matches("open")!==e&&r({type:e?"OPEN":"CLOSE"})},getTriggerProps:()=>t.button({...h.trigger.attrs,dir:o("dir"),id:m(a),"aria-haspopup":"dialog",type:"button","aria-expanded":l,"data-state":l?"open":"closed","aria-controls":v(a),onClick(e){e.defaultPrevented||r({type:"TOGGLE"})}}),getBackdropProps:()=>t.element({...h.backdrop.attrs,dir:o("dir"),hidden:!l,id:g(a),"data-state":l?"open":"closed"}),getPositionerProps:()=>t.element({...h.positioner.attrs,dir:o("dir"),id:p(a),style:{pointerEvents:l?void 0:"none"}}),getContentProps(){let e=i.get("rendered");return t.element({...h.content.attrs,dir:o("dir"),role:o("role"),hidden:!l,id:v(a),tabIndex:-1,"data-state":l?"open":"closed","aria-modal":!0,"aria-label":s||void 0,"aria-labelledby":s||!e.title?void 0:b(a),"aria-describedby":e.description?y(a):void 0})},getTitleProps:()=>t.element({...h.title.attrs,dir:o("dir"),id:b(a)}),getDescriptionProps:()=>t.element({...h.description.attrs,dir:o("dir"),id:y(a)}),getCloseTriggerProps:()=>t.button({...h.closeTrigger.attrs,dir:o("dir"),id:x(a),type:"button",onClick(e){e.defaultPrevented||(e.stopPropagation(),r({type:"CLOSE"}))}})}}var E=(0,o.Op)({props({props:e,scope:t}){let n="alertdialog"===e.role,r=n?()=>t.getById(x(t)):void 0,i="boolean"!=typeof e.modal||e.modal;return{role:"dialog",modal:i,trapFocus:i,preventScroll:i,closeOnInteractOutside:!n,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:r,...e}},initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"closed",context:({bindable:e})=>({rendered:e(()=>({defaultValue:{title:!0,description:!0}}))}),watch({track:e,action:t,prop:n}){e([()=>n("open")],()=>{t(["toggleVisibility"])})},states:{open:{entry:["checkRenderedElements","syncZIndex"],effects:["trackDismissableElement","trapFocus","preventScroll","hideContentBelow"],on:{"CONTROLLED.CLOSE":{target:"closed"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}]}},closed:{on:{"CONTROLLED.OPEN":{target:"open"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}}},implementations:{guards:{isOpenControlled:({prop:e})=>void 0!=e("open")},effects:{trackDismissableElement:({scope:e,send:t,prop:n})=>(0,a.u)(()=>w(e),{defer:!0,pointerBlocking:n("modal"),exclude:[e.getById(m(e))],onInteractOutside(e){n("onInteractOutside")?.(e),n("closeOnInteractOutside")||e.preventDefault()},persistentElements:n("persistentElements"),onFocusOutside:n("onFocusOutside"),onPointerDownOutside:n("onPointerDownOutside"),onEscapeKeyDown(e){n("onEscapeKeyDown")?.(e),n("closeOnEscape")||e.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}}),preventScroll({scope:e,prop:t}){if(t("preventScroll"))return(0,u.k)(e.getDoc())},trapFocus({scope:e,prop:t}){if(t("trapFocus"))return(0,l.o)(()=>w(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:e=>t("finalFocusEl")?.()??e})},hideContentBelow({scope:e,prop:t}){if(t("modal"))return(0,i.M)(()=>[w(e)],{defer:!0})}},actions:{checkRenderedElements({context:e,scope:t}){(0,s.er)(()=>{e.set("rendered",{title:!!t.getById(b(t)),description:!!t.getById(y(t))})})},syncZIndex({scope:e}){(0,s.er)(()=>{let t=w(e);if(!t)return;let n=(0,s.L9)(t);[e.getById(p(e)),e.getById(g(e))].forEach(e=>{e?.style.setProperty("--z-index",n.zIndex),e?.style.setProperty("--layer-index",n.getPropertyValue("--layer-index"))})})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},toggleVisibility({prop:e,send:t,event:n}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:n})}}}}),k=(0,c.x)()(["aria-label","closeOnEscape","closeOnInteractOutside","dir","finalFocusEl","getRootNode","getRootNode","id","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","defaultOpen","open","persistentElements","preventScroll","restoreFocus","role","trapFocus"]);(0,d.PM)(k)},72612:(e,t,n)=>{var r=n(57081),i=n(23503),o=n(90563),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},72883:(e,t,n)=>{"use strict";var r=n(63780);e.exports=function(e){var t={},n=r.filter(e.nodes(),function(t){return!e.children(t).length}),i=r.max(r.map(n,function(t){return e.node(t).rank})),o=r.map(r.range(i+1),function(){return[]}),a=r.sortBy(n,function(t){return e.node(t).rank});return r.forEach(a,function n(i){r.has(t,i)||(t[i]=!0,o[e.node(i).rank].push(i),r.forEach(e.successors(i),n))}),o}},73520:(e,t,n)=>{"use strict";n.d(t,{S:()=>c,u:()=>u});var r,i=n(6280),o=n(50674),a=n(77952),s={layers:[],branches:[],count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){return this.indexOf(e)<(this.topMostPointerBlockingLayer()?this.indexOf(this.topMostPointerBlockingLayer()?.node):-1)},isTopMost(e){let t=this.layers[this.count()-1];return t?.node===e},getNestedLayers(e){return Array.from(this.layers).slice(this.indexOf(e)+1)},isInNestedLayer(e,t){return this.getNestedLayers(e).some(e=>(0,i.gR)(e.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>(0,i.gR)(t,e))},add(e){let t=this.layers.push(e);e.node.style.setProperty("--layer-index",`${t}`)},addBranch(e){this.branches.push(e)},remove(e){let t=this.indexOf(e);t<0||(t<this.count()-1&&this.getNestedLayers(e).forEach(e=>e.dismiss()),this.layers.splice(t,1),e.style.removeProperty("--layer-index"))},removeBranch(e){let t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e){this.layers[this.indexOf(e)]?.dismiss()},clear(){this.remove(this.layers[0].node)}};function l(){s.layers.forEach(({node:e})=>{e.style.pointerEvents=s.isBelowPointerBlockingLayer(e)?"none":"auto"})}function u(e,t){let{defer:n}=t,u=n?i.er:e=>e(),c=[];return c.push(u(()=>{let n=(0,a.Tn)(e)?e():e;c.push(function(e,t){var n;let{warnOnMissingNode:u=!0}=t;if(u&&!e)return void(0,a.R8)("[@zag-js/dismissable] node is `null` or `undefined`");if(!e)return;let{onDismiss:c,pointerBlocking:d,exclude:f,debug:h}=t;s.add({dismiss:c,node:e,pointerBlocking:d}),l();let p=[d?function(e,t){let n=(0,i.YE)(e),o=[];return s.hasPointerBlockingLayer()&&!n.body.hasAttribute("data-inert")&&(r=document.body.style.pointerEvents,queueMicrotask(()=>{n.body.style.pointerEvents="none",n.body.setAttribute("data-inert","")})),t?.forEach(e=>{let[t,n]=(0,i.xk)(()=>{let t=e();return(0,i.sb)(t)?t:null},{timeout:1e3});t.then(e=>o.push((0,i.eC)(e,{pointerEvents:"auto"}))),o.push(n)}),()=>{s.hasPointerBlockingLayer()||(queueMicrotask(()=>{n.body.style.pointerEvents=r,n.body.removeAttribute("data-inert"),0===n.body.style.length&&n.body.removeAttribute("style")}),o.forEach(e=>e()))}}(e,t.persistentElements):void 0,(n=function(n){s.isTopMost(e)&&(t.onEscapeKeyDown?.(n),!n.defaultPrevented&&c&&(n.preventDefault(),c()))},(0,i.kn)((0,i.YE)(e),"keydown",e=>{"Escape"===e.key&&(e.isComposing||n?.(e))},{capture:!0})),(0,o.$)(e,{exclude:function(n){if(!e)return!1;let r="function"==typeof f?f():f,o=Array.isArray(r)?r:[r],a=t.persistentElements?.map(e=>e()).filter(i.sb);return a&&o.push(...a),o.some(e=>(0,i.gR)(e,n))||s.isInNestedLayer(e,n)},onFocusOutside:function(e){let n=(0,i.wt)(e.detail.originalEvent);!s.isInBranch(n)&&(t.onFocusOutside?.(e),t.onInteractOutside?.(e),e.defaultPrevented||(h&&console.log("onFocusOutside:",e.detail.originalEvent),c?.()))},onPointerDownOutside:function(n){let r=(0,i.wt)(n.detail.originalEvent);!(s.isBelowPointerBlockingLayer(e)||s.isInBranch(r))&&(t.onPointerDownOutside?.(n),t.onInteractOutside?.(n),n.defaultPrevented||(h&&console.log("onPointerDownOutside:",n.detail.originalEvent),c?.()))},defer:t.defer})];return()=>{s.remove(e),l(),e.style.pointerEvents="",p.forEach(e=>e?.())}}(n,t))})),()=>{c.forEach(e=>e?.())}}function c(e,t={}){let{defer:n}=t,r=n?i.er:e=>e(),o=[];return o.push(r(()=>{let t=(0,a.Tn)(e)?e():e;if(!t)return void(0,a.R8)("[@zag-js/dismissable] branch node is `null` or `undefined`");s.addBranch(t),o.push(()=>{s.removeBranch(t)})})),()=>{o.forEach(e=>e?.())}}},74474:(e,t,n)=>{var r=n(81665),i=n(79905),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},74832:(e,t,n)=>{"use strict";n.d(t,{h:()=>d,n:()=>u});var r=n(80905),i=n(51256);let o=e=>{let t,n=new Set,r=(e,r)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=r?r:"object"!=typeof i||null===i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,o={setState:r,getState:i,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},a=t=e(r,i,o);return o},{useDebugValue:a}=r,{useSyncExternalStoreWithSelector:s}=i,l=e=>e;function u(e,t=l,n){let r=s(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return a(r),r}let c=(e,t)=>{let n=(e=>e?o(e):o)(e),r=(e,r=t)=>u(n,e,r);return Object.assign(r,n),r},d=(e,t)=>e?c(e,t):c},74985:(e,t,n)=>{"use strict";var r=n(63780),i=n(82540),o=n(89124).slack,a=n(89124).longestPath,s=n(621).alg.preorder,l=n(621).alg.postorder,u=n(99601).simplify;function c(e){a(e=u(e));var t,n,r=i(e);for(h(r),d(r,e);t=p(r);)n=g(r,e,t),v(r,e,t,n)}function d(e,t){var n=l(e,e.nodes());n=n.slice(0,n.length-1),r.forEach(n,function(n){var r,i,o,a;r=e,i=t,o=n,a=r.node(o).parent,r.edge(o,a).cutvalue=f(r,i,o)})}function f(e,t,n){var i=e.node(n).parent,o=!0,a=t.edge(n,i),s=0;return a||(o=!1,a=t.edge(i,n)),s=a.weight,r.forEach(t.nodeEdges(n),function(r){var a=r.v===n,l=a?r.w:r.v;if(l!==i){var u,c,d,f=a===o,h=t.edge(r).weight;if(s+=f?h:-h,u=e,c=n,d=l,u.hasEdge(c,d)){var p=e.edge(n,l).cutvalue;s+=f?-p:p}}}),s}function h(e,t){arguments.length<2&&(t=e.nodes()[0]),function e(t,n,i,o,a){var s=i,l=t.node(o);return n[o]=!0,r.forEach(t.neighbors(o),function(a){r.has(n,a)||(i=e(t,n,i,a,o))}),l.low=s,l.lim=i++,a?l.parent=a:delete l.parent,i}(e,{},1,t)}function p(e){return r.find(e.edges(),function(t){return e.edge(t).cutvalue<0})}function g(e,t,n){var i=n.v,a=n.w;t.hasEdge(i,a)||(i=n.w,a=n.v);var s=e.node(i),l=e.node(a),u=s,c=!1;s.lim>l.lim&&(u=l,c=!0);var d=r.filter(t.edges(),function(t){return c===m(e,e.node(t.v),u)&&c!==m(e,e.node(t.w),u)});return r.minBy(d,function(e){return o(t,e)})}function v(e,t,n,i){var o,a,l,u,c=n.v,f=n.w;e.removeEdge(c,f),e.setEdge(i.v,i.w,{}),h(e),d(e,t),o=e,a=t,l=r.find(o.nodes(),function(e){return!a.node(e).parent}),u=(u=s(o,l)).slice(1),r.forEach(u,function(e){var t=o.node(e).parent,n=a.edge(e,t),r=!1;n||(n=a.edge(t,e),r=!0),a.node(e).rank=a.node(t).rank+(r?n.minlen:-n.minlen)})}function m(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}e.exports=c,c.initLowLimValues=h,c.initCutValues=d,c.calcCutValue=f,c.leaveEdge=p,c.enterEdge=g,c.exchangeEdges=v},74990:(e,t,n)=>{var r=n(87313),i=n(12984);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},75114:(e,t,n)=>{"use strict";var r=n(63780);e.exports=function(e,t){var n={};return r.forEach(e,function(e,t){var i=n[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};r.isUndefined(e.barycenter)||(i.barycenter=e.barycenter,i.weight=e.weight)}),r.forEach(t.edges(),function(e){var t=n[e.v],i=n[e.w];r.isUndefined(t)||r.isUndefined(i)||(i.indegree++,t.out.push(n[e.w]))}),function(e){for(var t=[];e.length;){var n=e.pop();t.push(n),r.forEach(n.in.reverse(),function(e){return function(t){!t.merged&&(r.isUndefined(t.barycenter)||r.isUndefined(e.barycenter)||t.barycenter>=e.barycenter)&&function(e,t){var n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}(e,t)}}(n)),r.forEach(n.out,function(t){return function(n){n.in.push(t),0==--n.indegree&&e.push(n)}}(n))}return r.map(r.filter(t,function(e){return!e.merged}),function(e){return r.pick(e,["vs","i","barycenter","weight"])})}(r.filter(n,function(e){return!e.indegree}))}},75629:(e,t,n)=>{var r=n(53252);e.exports=function(){return r.Date.now()}},75678:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(43857);function i(e){return"string"==typeof e?new r.LN([[document.querySelector(e)]],[document.documentElement]):new r.LN([[e]],r.zr)}},75846:(e,t,n)=>{var r=n(52337),i=n(16434),o=n(53215),a=n(12569);e.exports=o(function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])})},75967:e=>{e.exports=function(e){return function(){return e}}},76259:(e,t,n)=>{var r=n(49923);e.exports=function(e,t,n){for(var i=-1,o=e.criteria,a=t.criteria,s=o.length,l=n.length;++i<s;){var u=r(o[i],a[i]);if(u){if(i>=l)return u;return u*("desc"==n[i]?-1:1)}}return e.index-t.index}},76482:(e,t,n)=>{"use strict";n.d(t,{rd:()=>w,qh:()=>b,Ix:()=>v,dO:()=>x,zy:()=>h,lq:()=>g});var r=n(41063),i=n(61801);let o=(e="")=>"/"===e?"":e,a=e=>{try{return decodeURI(e)}catch(t){return e}},s={hook:r.ZD,searchHook:r.SQ,parser:function(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var n,r,i,o,a=[],s="",l=e.split("/");for(l[0]||l.shift();i=l.shift();)"*"===(n=i[0])?(a.push(n),s+="?"===i[1]?"(?:/(.*))?":"/(.*)"):":"===n?(r=i.indexOf("?",1),o=i.indexOf(".",1),a.push(i.substring(1,~r?r:~o?o:i.length)),s+=~r&&!~o?"(?:/([^/]+?))?":"/([^/]+?)",~o&&(s+=(~r?"?":"")+"\\"+i.substring(o))):s+="/"+i;return{keys:a,pattern:RegExp("^"+s+(t?"(?=$|/)":"/?$"),"i")}},base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:e=>e},l=(0,i.q6)(s),u=()=>(0,i.NT)(l),c={},d=(0,i.q6)(c),f=e=>{let[t,n]=e.hook(e);return[((e="",t)=>((e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/")(a(o(e)),a(t)))(e.base,t),(0,i._q)((t,r)=>n(((e,t)=>"~"===e[0]?e.slice(1):o(t)+e)(t,e.base),r))]},h=()=>f(u()),p=(e,t,n,r)=>{let{pattern:i,keys:o}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||"*",r),a=i.exec(n)||[],[s,...l]=a;return void 0!==s?[!0,(()=>{let e=!1!==o?Object.fromEntries(o.map((e,t)=>[e,l[t]])):a.groups,t={...l};return e&&Object.assign(t,e),t})(),...r?[s]:[]]:[!1,null]},g=e=>p(u().parser,e,h()[0]),v=({children:e,...t})=>{let n=u(),r=t.hook?s:n,o=r,[a,c]=t.ssrPath?.split("?")??[];c&&(t.ssrSearch=c,t.ssrPath=a),t.hrefs=t.hrefs??t.hook?.hrefs;let d=(0,i.li)({}),f=d.current,h=f;for(let e in r){let n="base"===e?r[e]+(t[e]||""):t[e]||r[e];f===h&&n!==h[e]&&(d.current=h={...h}),h[e]=n,(n!==r[e]||n!==o[e])&&(o=h)}return(0,i.n)(l.Provider,{value:o,children:e})},m=({children:e,component:t},n)=>t?(0,i.n)(t,{params:n}):"function"==typeof e?e(n):e,b=({path:e,nest:t,match:n,...r})=>{let o=u(),[a]=f(o),[s,l,h]=n??p(o.parser,e,a,t),g=(e=>{let t=(0,i.li)(c),n=t.current;return t.current=Object.keys(e).length!==Object.keys(n).length||Object.entries(e).some(([e,t])=>t!==n[e])?e:n})({...(0,i.NT)(d),...l});if(!s)return null;let b=h?(0,i.n)(v,{base:h},m(r,g)):m(r,g);return(0,i.n)(d.Provider,{value:g,children:b})};(0,i.Rf)((e,t)=>{let n=u(),[r,o]=f(n),{to:a="",href:s=a,onClick:l,asChild:c,children:d,className:h,replace:p,state:g,...v}=e,m=(0,i._q)(t=>{t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||0!==t.button||(l?.(t),t.defaultPrevented||(t.preventDefault(),o(s,e)))}),b=n.hrefs("~"===s[0]?s.slice(1):n.base+s,n);return c&&(0,i.zO)(d)?(0,i.Ob)(d,{onClick:m,href:b}):(0,i.n)("a",{...v,onClick:m,href:b,className:h?.call?h(r===s):h,children:d,ref:t})});let y=e=>Array.isArray(e)?e.flatMap(e=>y(e&&e.type===i.FK?e.props.children:e)):[e],x=({children:e,location:t})=>{let n=u(),[r]=f(n);for(let o of y(e)){let e=0;if((0,i.zO)(o)&&(e=p(n.parser,o.props.path,t||r,o.props.nest))[0])return(0,i.Ob)(o,{match:e})}return null},w=e=>{let{to:t,href:n=t}=e,r=u(),[,o]=f(r),a=(0,i._q)(()=>o(t||n,e)),{ssrContext:s}=r;return(0,i.Es)(()=>{a()},[]),s&&(s.redirectTo=t),null}},76630:(e,t,n)=>{"use strict";n.d(t,{Aq:()=>m,MI:()=>u,Ng:()=>g});var r=n(61696),i=n(6280),o=n(83788),a=n(20752),s=n(82136),l=n(77952),u=(0,r.y)("switch").parts("root","label","control","thumb"),c=u.build(),d=e=>e.ids?.root??`switch:${e.id}`,f=e=>e.ids?.label??`switch:${e.id}:label`,h=e=>e.ids?.hiddenInput??`switch:${e.id}:input`,p=e=>e.getById(h(e));function g(e,t){let{context:n,send:r,prop:a,scope:s}=e,l=a("disabled"),u=a("readOnly"),g=!!n.get("checked"),v=!l&&n.get("focused"),m=!l&&n.get("focusVisible"),b={"data-active":(0,i.sE)(n.get("active")),"data-focus":(0,i.sE)(v),"data-focus-visible":(0,i.sE)(m),"data-readonly":(0,i.sE)(u),"data-hover":(0,i.sE)(n.get("hovered")),"data-disabled":(0,i.sE)(l),"data-state":g?"checked":"unchecked","data-invalid":(0,i.sE)(a("invalid"))};return{checked:g,disabled:l,focused:v,setChecked(e){r({type:"CHECKED.SET",checked:e,isTrusted:!1})},toggleChecked(){r({type:"CHECKED.TOGGLE",checked:g,isTrusted:!1})},getRootProps:()=>t.label({...c.root.attrs,...b,dir:a("dir"),id:d(s),htmlFor:h(s),onPointerMove(){l||r({type:"CONTEXT.SET",context:{hovered:!0}})},onPointerLeave(){l||r({type:"CONTEXT.SET",context:{hovered:!1}})},onClick(e){!l&&((0,i.wt)(e)===p(s)&&e.stopPropagation(),(0,i.nr)()&&p(s)?.focus())}}),getLabelProps:()=>t.element({...c.label.attrs,...b,dir:a("dir"),id:f(s)}),getThumbProps:()=>t.element({...c.thumb.attrs,...b,dir:a("dir"),id:s.ids?.thumb??`switch:${s.id}:thumb`,"aria-hidden":!0}),getControlProps:()=>t.element({...c.control.attrs,...b,dir:a("dir"),id:s.ids?.control??`switch:${s.id}:control`,"aria-hidden":!0}),getHiddenInputProps:()=>t.input({id:h(s),type:"checkbox",required:a("required"),defaultChecked:g,disabled:l,"aria-labelledby":f(s),"aria-invalid":a("invalid"),name:a("name"),form:a("form"),value:a("value"),style:i.fe,onFocus(){r({type:"CONTEXT.SET",context:{focused:!0,focusVisible:(0,o.pP)()}})},onBlur(){r({type:"CONTEXT.SET",context:{focused:!1,focusVisible:!1}})},onClick(e){if(u)return void e.preventDefault();r({type:"CHECKED.SET",checked:e.currentTarget.checked,isTrusted:!0})}})}}var{not:v}=(0,a.b6)(),m=(0,a.Op)({props:({props:e})=>({defaultChecked:!1,label:"switch",value:"on",...e}),initialState:()=>"ready",context:({prop:e,bindable:t})=>({checked:t(()=>({defaultValue:e("defaultChecked"),value:e("checked"),onChange(t){e("onCheckedChange")?.({checked:t})}})),fieldsetDisabled:t(()=>({defaultValue:!1})),focusVisible:t(()=>({defaultValue:!1})),active:t(()=>({defaultValue:!1})),focused:t(()=>({defaultValue:!1})),hovered:t(()=>({defaultValue:!1}))}),computed:{isDisabled:({context:e,prop:t})=>t("disabled")||e.get("fieldsetDisabled")},watch({track:e,prop:t,context:n,action:r}){e([()=>t("disabled")],()=>{r(["removeFocusIfNeeded"])}),e([()=>n.get("checked")],()=>{r(["syncInputElement"])})},effects:["trackFormControlState","trackPressEvent","trackFocusVisible"],on:{"CHECKED.TOGGLE":[{guard:v("isTrusted"),actions:["toggleChecked","dispatchChangeEvent"]},{actions:["toggleChecked"]}],"CHECKED.SET":[{guard:v("isTrusted"),actions:["setChecked","dispatchChangeEvent"]},{actions:["setChecked"]}],"CONTEXT.SET":{actions:["setContext"]}},states:{ready:{}},implementations:{guards:{isTrusted:({event:e})=>!!e.isTrusted},effects:{trackPressEvent({computed:e,scope:t,context:n}){if(!e("isDisabled"))return(0,i.ru)({pointerNode:t.getById(d(t)),keyboardNode:p(t),isValidKey:e=>" "===e.key,onPress:()=>n.set("active",!1),onPressStart:()=>n.set("active",!0),onPressEnd:()=>n.set("active",!1)})},trackFocusVisible({computed:e,scope:t}){if(!e("isDisabled"))return(0,o.Yy)({root:t.getRootNode()})},trackFormControlState:({context:e,send:t,scope:n})=>(0,i.$S)(p(n),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){t({type:"CHECKED.SET",checked:!!e.initial("checked"),src:"form-reset"})}})},actions:{setContext({context:e,event:t}){for(let n in t.context)e.set(n,t.context[n])},syncInputElement({context:e,scope:t}){let n=p(t);n&&(0,i._T)(n,!!e.get("checked"))},removeFocusIfNeeded({context:e,prop:t}){t("disabled")&&e.set("focused",!1)},setChecked({context:e,event:t}){e.set("checked",t.checked)},toggleChecked({context:e}){e.set("checked",!e.get("checked"))},dispatchChangeEvent({context:e,scope:t}){let n=p(t);(0,i.uf)(n,{checked:e.get("checked")})}}}}),b=(0,s.x)()(["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]);(0,l.PM)(b)},77035:(e,t,n)=>{var r=n(97105),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g;e.exports=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)}),t})},77092:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},77357:(e,t,n)=>{var r=n(44099);e.exports=n(94022)(function(e,t,n){r(e,t,n)})},77952:(e,t,n)=>{"use strict";function r(e){return null==e?[]:Array.isArray(e)?e:[e]}n.d(t,{$1:()=>i,$r:()=>r,BU:()=>ei,D8:()=>ex,D_:()=>N,Et:()=>E,F4:()=>et,Gv:()=>S,Gy:()=>er,HV:()=>o,H_:()=>X,JT:()=>eo,Jg:()=>R,K2:()=>f,Kg:()=>k,L3:()=>Z,LV:()=>Y,Lm:()=>x,Nh:()=>ed,OK:()=>L,PM:()=>em,Pe:()=>ew,R8:()=>ey,T1:()=>eu,TF:()=>s,TX:()=>F,Tn:()=>C,Ui:()=>u,Up:()=>ev,VJ:()=>eg,WQ:()=>a,Xx:()=>c,YL:()=>p,YW:()=>D,Yi:()=>ec,Yp:()=>d,aU:()=>h,bK:()=>eb,cK:()=>I,cy:()=>y,iv:()=>g,jB:()=>v,jv:()=>es,kZ:()=>O,kn:()=>el,lQ:()=>M,n4:()=>b,oE:()=>function e(t){if(!(e=>{if(!w(e)||"[object Object]"!=Object.prototype.toString.call(e)||P(e))return!1;let t=Object.getPrototypeOf(e);if(null===t)return!0;let n=I(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&_.call(n)==T})(t)||void 0===t)return t;let n=Reflect.ownKeys(t).filter(e=>"string"==typeof e),r={};for(let i of n){let n=t[i];void 0!==n&&(r[i]=e(n))}return r},pY:()=>Q,s:()=>J,sb:()=>l,tp:()=>ep,uR:()=>V,vV:()=>ee,wg:()=>A,zi:()=>K});var i=e=>e[0],o=e=>e[e.length-1],a=(e,...t)=>e.concat(t),s=(e,...t)=>e.filter(e=>!t.includes(e)),l=e=>Array.from(new Set(e)),u=(e,t)=>{let n=new Set(t);return e.filter(e=>!n.has(e))},c=(e,t)=>-1!==e.indexOf(t)?s(e,t):a(e,t);function d(e,t,n={}){let{step:r=1,loop:i=!0}=n,o=t+r,a=e.length,s=a-1;return -1===t?r>0?0:s:o<0?i?s:0:o>=a?i?0:t>a?a:t:o}function f(e,t,n={}){return e[d(e,t,n)]}function h(e,t,n={}){let{step:r=1,loop:i=!0}=n;return d(e,t,{step:-r,loop:i})}function p(e,t,n={}){return e[h(e,t,n)]}function g(e,t){return e.reduce((e,n,r)=>(r%t==0?e.push([n]):o(e)?.push(n),e),[])}function v(e,t){return e.reduce(([e,n],r)=>(t(r)?e.push(r):n.push(r),[e,n]),[[],[]])}var m=e=>e?.constructor.name==="Array",b=(e,t)=>{if(Object.is(e,t))return!0;if(null==e&&null!=t||null!=e&&null==t)return!1;if("function"==typeof e?.isEqual&&"function"==typeof t?.isEqual)return e.isEqual(t);if("function"==typeof e&&"function"==typeof t)return e.toString()===t.toString();if(m(e)&&m(t))return((e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!b(e[n],t[n]))return!1;return!0})(Array.from(e),Array.from(t));if("object"!=typeof e||"object"!=typeof t)return!1;let n=Object.keys(t??Object.create(null)),r=n.length;for(let t=0;t<r;t++)if(!Reflect.has(e,n[t]))return!1;for(let i=0;i<r;i++){let r=n[i];if(!b(e[r],t[r]))return!1}return!0},y=e=>Array.isArray(e),x=e=>!0===e||!1===e,w=e=>null!=e&&"object"==typeof e,S=e=>w(e)&&!y(e),E=e=>"number"==typeof e&&!Number.isNaN(e),k=e=>"string"==typeof e,C=e=>"function"==typeof e,O=e=>null==e,I=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),_=Function.prototype.toString,T=_.call(Object),P=e=>(e=>"object"==typeof e&&null!==e&&"$$typeof"in e&&"props"in e)(e)||(e=>"object"==typeof e&&null!==e&&"__v_isVNode"in e)(e),R=(e,...t)=>("function"==typeof e?e(...t):e)??void 0,A=e=>e,N=e=>e(),M=()=>{},L=(...e)=>(...t)=>{e.forEach(function(e){e?.(...t)})},V=(()=>{let e=0;return()=>(e++,e.toString(36))})();function D(e,t,...n){if(e in t){let r=t[e];return C(r)?r(...n):r}let r=Error(`No matching key: ${JSON.stringify(e)} in ${JSON.stringify(Object.keys(t))}`);throw Error.captureStackTrace?.(r,D),r}var F=(e,t)=>{try{return e()}catch(e){return e instanceof Error&&Error.captureStackTrace?.(e,F),t?.()}},{floor:j,abs:z,round:B,min:U,max:W,pow:H,sign:q}=Math,$=e=>Number.isNaN(e),G=e=>$(e)?0:e,K=(e,t)=>(e%t+t)%t,Y=(e,t)=>(e%t+t)%t,X=(e,t)=>G(e)>=t,Q=(e,t)=>G(e)<=t,J=(e,t,n)=>G(e)>=t&&G(e)<=n,Z=(e,t,n)=>U(W(G(e),t),n),ee=(e,t,n)=>(G(e)-t)/(n-t),et=(e,t,n,r)=>Z(((e,t,n)=>B((G(e)-t)/n)*n+t)(e*(n-t)+t,t,r),t,n),en=(e,t)=>{let n=e,r=t.toString(),i=r.indexOf("."),o=i>=0?r.length-i:0;if(o>0){let e=H(10,o);n=B(n*e)/e}return n},er=(e,t)=>"number"==typeof t?j(e*t+.5)/t:B(e),ei=(e,t,n,r)=>{let i=null!=t?Number(t):0,o=Number(n),a=(e-i)%r,s=2*z(a)>=r?e+q(a)*(r-z(a)):e-a;if(s=en(s,r),!$(i)&&s<i)s=i;else if(!$(o)&&s>o){let e=j((o-i)/r),t=i+e*r;s=e<=0||t<i?o:t}return en(s,r)},eo=(e,t,n)=>e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)];function ea(e,t){let n,r,i,o,a=(n=t.values,r=t.min,0===e?r:n[e-1]),s=(i=t.values,o=t.max,e===i.length-1?o:i[e+1]),l=t.values.slice();return function(n){let r=ei(n,a,s,t.step);return(l=eo(l,e,n))[e]=r,l}}function es(e,t){let n=t.values[e]+t.step;return ea(e,t)(n)}function el(e,t){let n=t.values[e]-t.step;return ea(e,t)(n)}var eu=(e,t)=>{let n=e.findIndex(e=>t-e<0);if(0===n)return n;if(-1===n)return e.length-1;let r=e[n-1],i=e[n];return z(r-t)<z(i-t)?n-1:n},ec=(e,t,n,r)=>e.map((i,o)=>({min:0===o?t:e[o-1]+r,max:o===e.length-1?n:e[o+1]-r,value:i})),ed=(e,t=0,n=10)=>{let r=Math.pow(n,t);return B(e*r)/r},ef=e=>{if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n},eh=(e,t,n)=>{let r="+"===t?e+n:e-n;if(e%1!=0||n%1!=0){let i=10**Math.max(ef(e),ef(n));e=Math.round(e*i),n=Math.round(n*i),r=("+"===t?e+n:e-n)/i}return r},ep=(e,t)=>eh(G(e),"+",t),eg=(e,t)=>eh(G(e),"-",t);function ev(e,t){let n={};for(let r of t){let t=e[r];void 0!==t&&(n[r]=t)}return n}var em=e=>function(t){let n={},r={},i=new Set(e);for(let e in t)i.has(e)?r[e]=t[e]:n[e]=t[e];return[r,n]};function eb(e,t){let n,r=performance.now();return n=requestAnimationFrame(function i(o){if(o-r>=t)return void e();n=requestAnimationFrame(i)}),()=>cancelAnimationFrame(n)}function ey(...e){1===e.length?e[0]:e[1],2!==e.length||e[0]}function ex(e,t){if(null==e)throw Error(t())}function ew(e,t,n){let r=[];for(let n of t)null==e[n]&&r.push(n);if(r.length>0)throw Error(`[zag-js${n?` > ${n}`:""}] missing required props: ${r.join(", ")}`)}},77993:(e,t,n)=>{var r=n(92859),i=n(53708),o=n(57248);e.exports=function(e){return o(i(e,void 0,r),e+"")}},78173:(e,t,n)=>{var r=n(63780);e.exports=function(e,t,n){var i,o={};r.forEach(n,function(n){for(var r,a,s=e.parent(n);s;){if((r=e.parent(s))?(a=o[r],o[r]=s):(a=i,i=s),a&&a!==s)return void t.setEdge(a,s);s=r}})}},78420:e=>{e.exports=function(e){return function(t){return e(t)}}},78527:(e,t,n)=>{"use strict";n.d(t,{E:()=>r,U:()=>i});let r=(e,t)=>{if(!e||"string"!=typeof e)return{invalid:!0,value:e};let[n,r]=e.split("/");if(!n||!r||"currentBg"===n)return{invalid:!0,value:n};let i=t(`colors.${n}`),o=t.raw(`opacity.${r}`)?.value;if(!o&&isNaN(Number(r)))return{invalid:!0,value:n};let a=o?100*Number(o)+"%":`${r}%`,s=i??n;return{invalid:!1,color:s,value:`color-mix(in srgb, ${s} ${a}, transparent)`}},i=e=>(t,n)=>{let r=n.utils.colorMix(t);if(r.invalid)return{[e]:t};let i="--mix-"+e;return{[i]:r.value,[e]:`var(${i}, ${r.color})`}}},78888:(e,t,n)=>{var r=n(78978),i=n(9371),o=n(71102);e.exports=function(e){return i(e)?o(e):r(e)}},78978:(e,t,n)=>{e.exports=n(77092)("length")},79123:(e,t,n)=>{var r=n(57081),i=n(90563);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},79216:(e,t,n)=>{"use strict";n.d(t,{t1:()=>u,yP:()=>c});var r,i=n(80905),o=n(47748);let a="label";function s(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function l(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a,r=[];e.datasets=t.map(t=>{let i=e.datasets.find(e=>e[n]===t[n]);return!i||!t.data||r.includes(i)?{...t}:(r.push(i),Object.assign(i,t),i)})}let u=(0,i.forwardRef)(function(e,t){let{height:n=150,width:r=300,redraw:u=!1,datasetIdKey:c,type:d,data:f,options:h,plugins:p=[],fallbackContent:g,updateMode:v,...m}=e,b=(0,i.useRef)(null),y=(0,i.useRef)(null),x=()=>{b.current&&(y.current=new o.t1(b.current,{type:d,data:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,n={labels:[],datasets:[]};return n.labels=e.labels,l(n,e.datasets,t),n}(f,c),options:h&&{...h},plugins:p}),s(t,y.current))},w=()=>{s(t,null),y.current&&(y.current.destroy(),y.current=null)};return(0,i.useEffect)(()=>{!u&&y.current&&h&&function(e,t){let n=e.options;n&&t&&Object.assign(n,t)}(y.current,h)},[u,h]),(0,i.useEffect)(()=>{!u&&y.current&&(y.current.config.data.labels=f.labels)},[u,f.labels]),(0,i.useEffect)(()=>{!u&&y.current&&f.datasets&&l(y.current.config.data,f.datasets,c)},[u,f.datasets]),(0,i.useEffect)(()=>{y.current&&(u?(w(),setTimeout(x)):y.current.update(v))},[u,h,f.labels,f.datasets,v]),(0,i.useEffect)(()=>{y.current&&(w(),setTimeout(x))},[d]),(0,i.useEffect)(()=>(x(),()=>w()),[]),i.createElement("canvas",{ref:b,role:"img",height:n,width:r,...m},g)}),c=(r=o.A6,o.t1.register(r),(0,i.forwardRef)((e,t)=>i.createElement(u,{...e,ref:t,type:"bar"})))},79719:(e,t,n)=>{var r=n(2604);e.exports=function(e,t){var n=[];return r(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}},79804:(e,t,n)=>{var r=n(96921),i=n(27404),o=n(50761);e.exports=function(e,t){return e&&e.length?r(e,i(t,2),o):void 0}},79905:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},80053:(e,t,n)=>{var r=n(40831),i=n(90563),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable;e.exports=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")}},80111:(e,t,n)=>{var r=n(19978);e.exports=function(e,t,n){r.isArray(t)||(t=[t]);var i=(e.isDirected()?e.successors:e.neighbors).bind(e),o=[],a={};return r.each(t,function(t){if(!e.hasNode(t))throw Error("Graph does not have node: "+t);!function e(t,n,i,o,a,s){!r.has(o,n)&&(o[n]=!0,i||s.push(n),r.each(a(n),function(n){e(t,n,i,o,a,s)}),i&&s.push(n))}(e,t,"post"===n,a,i,o)}),o}},80157:(e,t,n)=>{var r=n(19978),i=n(55740);e.exports=function(e){return r.filter(i(e),function(t){return t.length>1||1===t.length&&e.hasEdge(t[0],t[0])})}},80717:(e,t,n)=>{var r=n(19978),i=n(41);e.exports={write:function(e){var t,n,i={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:(t=e,r.map(t.nodes(),function(e){var n=t.node(e),i=t.parent(e),o={v:e};return r.isUndefined(n)||(o.value=n),r.isUndefined(i)||(o.parent=i),o})),edges:(n=e,r.map(n.edges(),function(e){var t=n.edge(e),i={v:e.v,w:e.w};return r.isUndefined(e.name)||(i.name=e.name),r.isUndefined(t)||(i.value=t),i}))};return r.isUndefined(e.graph())||(i.value=r.clone(e.graph())),i},read:function(e){var t=new i(e.options).setGraph(e.value);return r.each(e.nodes,function(e){t.setNode(e.v,e.value),e.parent&&t.setParent(e.v,e.parent)}),r.each(e.edges,function(e){t.setEdge({v:e.v,w:e.w,name:e.name},e.value)}),t}}},81213:(e,t,n)=>{var r=n(43358),i=n(12569),o=n(90009);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&i(t,n,a)&&(n=a=void 0),t=o(t),void 0===n?(n=t,t=0):n=o(n),a=void 0===a?t<n?1:-1:o(a),r(t,n,a,e)}}},81414:(e,t,n)=>{var r=n(34862),i=n(83033);e.exports=function(e,t){return r(e,i(e),t)}},81621:e=>{!function(){"use strict";var t={114:function(e){function t(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",i=0,o=-1,a=0,s=0;s<=e.length;++s){if(s<e.length)n=e.charCodeAt(s);else if(47===n)break;else n=47;if(47===n){if(o===s-1||1===a);else if(o!==s-1&&2===a){if(r.length<2||2!==i||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2)){if(r.length>2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",i=0):i=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),o=s,a=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=s,a=0;continue}}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(o+1,s):r=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===n&&-1!==a?++a:a=-1}return r}var r={resolve:function(){for(var e,r,i="",o=!1,a=arguments.length-1;a>=-1&&!o;a--)a>=0?r=arguments[a]:(void 0===e&&(e=""),r=e),t(r),0!==r.length&&(i=r+"/"+i,o=47===r.charCodeAt(0));if(i=n(i,!o),o)if(i.length>0)return"/"+i;else return"/";return i.length>0?i:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return(0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&i&&(e+="/"),r)?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var i=arguments[n];t(i),i.length>0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n||(e=r.resolve(e))===(n=r.resolve(n)))return"";for(var i=1;i<e.length&&47===e.charCodeAt(i);++i);for(var o=e.length,a=o-i,s=1;s<n.length&&47===n.charCodeAt(s);++s);for(var l=n.length-s,u=a<l?a:l,c=-1,d=0;d<=u;++d){if(d===u){if(l>u){if(47===n.charCodeAt(s+d))return n.slice(s+d+1);else if(0===d)return n.slice(s+d)}else a>u&&(47===e.charCodeAt(i+d)?c=d:0===d&&(c=0));break}var f=e.charCodeAt(i+d);if(f!==n.charCodeAt(s+d))break;47===f&&(c=d)}var h="";for(d=i+c+1;d<=o;++d)(d===o||47===e.charCodeAt(d))&&(0===h.length?h+="..":h+="/..");return h.length>0?h+n.slice(s+c):(s+=c,47===n.charCodeAt(s)&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,i=-1,o=!0,a=e.length-1;a>=1;--a)if(47===(n=e.charCodeAt(a))){if(!o){i=a;break}}else o=!1;return -1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw TypeError('"ext" argument must be a string');t(e);var r,i=0,o=-1,a=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var s=n.length-1,l=-1;for(r=e.length-1;r>=0;--r){var u=e.charCodeAt(r);if(47===u){if(!a){i=r+1;break}}else -1===l&&(a=!1,l=r+1),s>=0&&(u===n.charCodeAt(s)?-1==--s&&(o=r):(s=-1,o=l))}return i===o?o=l:-1===o&&(o=e.length),e.slice(i,o)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){i=r+1;break}}else -1===o&&(a=!1,o=r+1);return -1===o?"":e.slice(i,o)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(47===l){if(!o){r=s+1;break}continue}-1===i&&(o=!1,i=s+1),46===l?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1)}return -1===n||-1===i||0===a||1===a&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){var t,n;if(null===e||"object"!=typeof e)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return t=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||""),t?t===e.root?t+n:t+"/"+n:n},parse:function(e){t(e);var n,r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;var i=e.charCodeAt(0),o=47===i;o?(r.root="/",n=1):n=0;for(var a=-1,s=0,l=-1,u=!0,c=e.length-1,d=0;c>=n;--c){if(47===(i=e.charCodeAt(c))){if(!u){s=c+1;break}continue}-1===l&&(u=!1,l=c+1),46===i?-1===a?a=c:1!==d&&(d=1):-1!==a&&(d=-1)}return -1===a||-1===l||0===d||1===d&&a===l-1&&a===s+1?-1!==l&&(0===s&&o?r.base=r.name=e.slice(1,l):r.base=r.name=e.slice(s,l)):(0===s&&o?(r.name=e.slice(1,a),r.base=e.slice(1,l)):(r.name=e.slice(s,a),r.base=e.slice(s,l)),r.ext=e.slice(a,l)),s>0?r.dir=e.slice(0,s-1):o&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},a=!0;try{t[e](o,o.exports,r),a=!1}finally{a&&delete n[e]}return o.exports}r.ab="//",e.exports=r(114)}()},81657:(e,t,n)=>{e=n.nmd(e);var r=n(53252),i=n(32158),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,l=s?s.isBuffer:void 0;e.exports=l||i},81665:(e,t,n)=>{var r=n(67066);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},81905:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},82021:(e,t,n)=>{e.exports=n(83199)(n(53252),"DataView")},82136:(e,t,n)=>{"use strict";function r(e){return new Proxy({},{get:(t,n)=>"style"===n?t=>e({style:t}).style:e})}n.d(t,{_:()=>r,x:()=>i});var i=()=>e=>Array.from(new Set(e))},82540:(e,t,n)=>{"use strict";var r=n(63780),i=n(621).Graph,o=n(89124).slack;e.exports=function(e){var t,n,a,s,l=new i({directed:!1}),u=e.nodes()[0],c=e.nodeCount();for(l.setNode(u,{});t=l,n=e,r.forEach(t.nodes(),function e(i){r.forEach(n.nodeEdges(i),function(r){var a=r.v,s=i===a?r.w:a;t.hasNode(s)||o(n,r)||(t.setNode(s,{}),t.setEdge(i,s,{}),e(s))})}),t.nodeCount()<c;)a=function(e,t){return r.minBy(t.edges(),function(n){if(e.hasNode(n.v)!==e.hasNode(n.w))return o(t,n)})}(l,e),s=l.hasNode(a.v)?o(e,a):-o(e,a),function(e,t,n){r.forEach(e.nodes(),function(e){t.node(e).rank+=n})}(l,e,s);return l}},83033:(e,t,n)=>{var r=n(26291),i=n(62408),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;e.exports=a?function(e){return null==e?[]:r(a(e=Object(e)),function(t){return o.call(e,t)})}:i},83176:e=>{e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},83199:(e,t,n)=>{var r=n(38914),i=n(81905);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},83289:(e,t,n)=>{"use strict";n.d(t,{m:()=>o});var r=n(80905),i=n(832);function o(e){let{key:t,recipe:n}=e,o=(0,i.$)();return(0,r.useMemo)(()=>{let e=n||(null!=t?o.getRecipe(t):{});return o.cva(structuredClone(e))},[t,n,o])}},83336:(e,t,n)=>{e.exports=n(53252)["__core-js_shared__"]},83413:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(61506);function i(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),r.A.hasOwnProperty(t)?{space:r.A[t],local:e}:e}},83704:(e,t,n)=>{"use strict";var r=n(63780),i=n(621).Graph,o=n(99601);function a(e,t){var n={};return r.reduce(t,function(t,i){var o=0,a=0,s=t.length,u=r.last(i);return r.forEach(i,function(t,c){var d=function(e,t){if(e.node(t).dummy)return r.find(e.predecessors(t),function(t){return e.node(t).dummy})}(e,t),f=d?e.node(d).order:s;(d||t===u)&&(r.forEach(i.slice(a,c+1),function(t){r.forEach(e.predecessors(t),function(r){var i=e.node(r),a=i.order;(a<o||f<a)&&!(i.dummy&&e.node(t).dummy)&&l(n,r,t)})}),a=c+1,o=f)}),i}),n}function s(e,t){var n={};function i(t,i,o,a,s){var u;r.forEach(r.range(i,o),function(i){u=t[i],e.node(u).dummy&&r.forEach(e.predecessors(u),function(t){var r=e.node(t);r.dummy&&(r.order<a||r.order>s)&&l(n,t,u)})})}return r.reduce(t,function(t,n){var o,a=-1,s=0;return r.forEach(n,function(r,l){if("border"===e.node(r).dummy){var u=e.predecessors(r);u.length&&(o=e.node(u[0]).order,i(n,s,l,a,o),s=l,a=o)}i(n,s,n.length,o,t.length)}),n}),n}function l(e,t,n){if(t>n){var r=t;t=n,n=r}var i=e[t];i||(e[t]=i={}),i[n]=!0}function u(e,t,n){if(t>n){var i=t;t=n,n=i}return r.has(e[t],n)}function c(e,t,n,i){var o={},a={},s={};return r.forEach(t,function(e){r.forEach(e,function(e,t){o[e]=e,a[e]=e,s[e]=t})}),r.forEach(t,function(e){var t=-1;r.forEach(e,function(e){var l=i(e);if(l.length)for(var c=((l=r.sortBy(l,function(e){return s[e]})).length-1)/2,d=Math.floor(c),f=Math.ceil(c);d<=f;++d){var h=l[d];a[e]===e&&t<s[h]&&!u(n,e,h)&&(a[h]=e,a[e]=o[e]=o[h],t=s[h])}})}),{root:o,align:a}}function d(e,t,n,o,a){var s,l,u,c,d,f,h,p,g,v,m={},b=(s=e,l=t,u=n,c=a,p=new i,v=(d=(g=s.graph()).nodesep,f=g.edgesep,h=c,function(e,t,n){var i,o,a=e.node(t),s=e.node(n);if(i=0+a.width/2,r.has(a,"labelpos"))switch(a.labelpos.toLowerCase()){case"l":o=-a.width/2;break;case"r":o=a.width/2}if(o&&(i+=h?o:-o),o=0,i+=(a.dummy?f:d)/2,i+=(s.dummy?f:d)/2,i+=s.width/2,r.has(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":o=s.width/2;break;case"r":o=-s.width/2}return o&&(i+=h?o:-o),o=0,i}),r.forEach(l,function(e){var t;r.forEach(e,function(e){var n=u[e];if(p.setNode(n),t){var r=u[t],i=p.edge(r,n);p.setEdge(r,n,Math.max(v(s,e,t),i||0))}t=e})}),p),y=a?"borderLeft":"borderRight";function x(e,t){for(var n=b.nodes(),r=n.pop(),i={};r;)i[r]?e(r):(i[r]=!0,n.push(r),n=n.concat(t(r))),r=n.pop()}return x(function(e){m[e]=b.inEdges(e).reduce(function(e,t){return Math.max(e,m[t.v]+b.edge(t))},0)},b.predecessors.bind(b)),x(function(t){var n=b.outEdges(t).reduce(function(e,t){return Math.min(e,m[t.w]-b.edge(t))},1/0),r=e.node(t);n!==1/0&&r.borderType!==y&&(m[t]=Math.max(m[t],n))},b.successors.bind(b)),r.forEach(o,function(e){m[e]=m[n[e]]}),m}function f(e,t){return r.minBy(r.values(t),function(t){var n=-1/0,i=1/0;return r.forIn(t,function(t,r){var o,a,s=(o=e,a=r,o.node(a).width/2);n=Math.max(t+s,n),i=Math.min(t-s,i)}),n-i})}function h(e,t){var n=r.values(t),i=r.min(n),o=r.max(n);r.forEach(["u","d"],function(n){r.forEach(["l","r"],function(a){var s,l=n+a,u=e[l];if(u!==t){var c=r.values(u);(s="l"===a?i-r.min(c):o-r.max(c))&&(e[l]=r.mapValues(u,function(e){return e+s}))}})})}function p(e,t){return r.mapValues(e.ul,function(n,i){if(t)return e[t.toLowerCase()][i];var o=r.sortBy(r.map(e,i));return(o[1]+o[2])/2})}e.exports={positionX:function(e){var t,n=o.buildLayerMatrix(e),i=r.merge(a(e,n),s(e,n)),l={};r.forEach(["u","d"],function(o){t="u"===o?n:r.values(n).reverse(),r.forEach(["l","r"],function(n){"r"===n&&(t=r.map(t,function(e){return r.values(e).reverse()}));var a=("u"===o?e.predecessors:e.successors).bind(e),s=c(e,t,i,a),u=d(e,t,s.root,s.align,"r"===n);"r"===n&&(u=r.mapValues(u,function(e){return-e})),l[o+n]=u})});var u=f(e,l);return h(l,u),p(l,e.graph().align)},findType1Conflicts:a,findType2Conflicts:s,addConflict:l,hasConflict:u,verticalAlignment:c,horizontalCompaction:d,alignCoordinates:h,findSmallestWidthAlignment:f,balance:p}},83788:(e,t,n)=>{"use strict";n.d(t,{Yy:()=>b,pP:()=>m});var r=n(6280),i=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),o=null,a=new Set,s=new Map,l=!1,u=!1,c={Tab:!0,Escape:!0};function d(e,t){for(let n of a)n(e,t)}function f(e){l=!0,e.metaKey||!(0,r.cX)()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(o="keyboard",d("keyboard",e))}function h(e){o="pointer",("mousedown"===e.type||"pointerdown"===e.type)&&(l=!0,d("pointer",e))}function p(e){(0,r.YF)(e)&&(l=!0,o="virtual")}function g(e){let t=(0,r.wt)(e);t!==(0,r.zk)(t)&&t!==(0,r.YE)(t)&&(l||u||(o="virtual",d("virtual",e)),l=!1,u=!1)}function v(){l=!1,u=!0}function m(){return"keyboard"===o}function b(e={}){let{isTextInput:t,autoFocus:n,onChange:u,root:y}=e;!function(e){if("undefined"==typeof window||s.get((0,r.zk)(e)))return;let t=(0,r.zk)(e),n=(0,r.YE)(e),i=t.HTMLElement.prototype.focus;Object.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,value:function(){o="virtual",d("virtual",null),l=!0,i.apply(this,arguments)}}),n.addEventListener("keydown",f,!0),n.addEventListener("keyup",f,!0),n.addEventListener("click",p,!0),t.addEventListener("focus",g,!0),t.addEventListener("blur",v,!1),void 0!==t.PointerEvent?(n.addEventListener("pointerdown",h,!0),n.addEventListener("pointermove",h,!0),n.addEventListener("pointerup",h,!0)):(n.addEventListener("mousedown",h,!0),n.addEventListener("mousemove",h,!0),n.addEventListener("mouseup",h,!0)),t.addEventListener("beforeunload",()=>{var t=e;let n=(0,r.zk)(t),i=(0,r.YE)(t);s.has(n)&&(n.HTMLElement.prototype.focus=s.get(n).focus,i.removeEventListener("keydown",f,!0),i.removeEventListener("keyup",f,!0),i.removeEventListener("click",p,!0),n.removeEventListener("focus",g,!0),n.removeEventListener("blur",v,!1),void 0!==n.PointerEvent?(i.removeEventListener("pointerdown",h,!0),i.removeEventListener("pointermove",h,!0),i.removeEventListener("pointerup",h,!0)):(i.removeEventListener("mousedown",h,!0),i.removeEventListener("mousemove",h,!0),i.removeEventListener("mouseup",h,!0)),s.delete(n))},{once:!0}),s.set(t,{focus:i})}(y),u?.({isFocusVisible:n||m(),modality:o});let x=(e,n)=>{(function(e,t,n){let o=n?(0,r.wt)(n):null,a=(0,r.zk)(o);return!((e=e||o instanceof a.HTMLInputElement&&!i.has(o?.type)||o instanceof a.HTMLTextAreaElement||o instanceof a.HTMLElement&&o.isContentEditable)&&"keyboard"===t&&n instanceof a.KeyboardEvent&&!Reflect.has(c,n.key))})(!!t,e,n)&&u?.({isFocusVisible:m(),modality:e})};return a.add(x),()=>{a.delete(x)}}},84526:(e,t,n)=>{"use strict";n.d(t,{s:()=>r});let r=(...e)=>Array.from(e.reduce((e,t)=>(null!=t&&t.forEach(t=>e.add(t)),e),new Set([])))},84548:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},84578:(e,t,n)=>{"use strict";var r=n(80905),i=n(410),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=i.useSyncExternalStore,s=r.useRef,l=r.useEffect,u=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var h=a(e,(d=u(function(){function e(e){if(!l){if(l=!0,a=e,e=r(e),void 0!==i&&f.hasValue){var t=f.value;if(i(t,e))return s=t}return s=e}if(t=s,o(a,e))return t;var n=r(e);return void 0!==i&&i(t,n)?(a=e,t):(a=e,s=n)}var a,s,l=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,n,r,i]))[0],d[1]);return l(function(){f.hasValue=!0,f.value=h},[h]),c(h),h}},84753:(e,t,n)=>{"use strict";n.d(t,{ob:()=>a,pf:()=>o,s9:()=>s});var r=n(42347),i=n(90167);let[o,a]=(0,r.q)({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:"<RenderStrategyPropsProvider />"}),s=e=>(0,i.P)()(e,["lazyMount","unmountOnExit"])},84849:(e,t,n)=>{var r=n(46872),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},84855:(e,t,n)=>{"use strict";n.d(t,{v7:()=>z,Ks:()=>B,Sb:()=>F,y8:()=>D});var r=n(9597),i=n(20752),o=n(80905),a=n(90167),s=n(52718),l=n(42347);let[u,c]=(0,l.q)({name:"CheckboxContext",hookName:"useCheckboxContext",providerName:"<CheckboxProvider />"}),d=(0,o.forwardRef)((e,t)=>{let[{value:n},o]=(0,a.P)()(e,["value"]),l=(0,i.v6)(n.getRootProps(),o);return(0,r.jsx)(u,{value:n,children:(0,r.jsx)(s.X.label,{...l,ref:t})})});d.displayName="CheckboxRootProvider";var f=n(93600),h=n(35556),p=n(63283),g=n(52693),v=n(68127);let[m,b]=(0,l.q)({name:"CheckboxGroupContext",hookName:"useCheckboxGroupContext",providerName:"<CheckboxGroupProvider />",strict:!1}),y=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=b(),n=(0,v.f)(),r=(0,o.useMemo)(()=>{var n;return(0,i.v6)(e,null!=(n=null==t?void 0:t.getItemProps({value:e.value}))?n:{})},[e,t]),a=(0,o.useId)(),{getRootNode:s}=(0,p.w)(),{dir:l}=(0,g.g)(),u={id:a,ids:{label:null==n?void 0:n.ids.label,hiddenInput:null==n?void 0:n.ids.control},dir:l,disabled:null==n?void 0:n.disabled,readOnly:null==n?void 0:n.readOnly,invalid:null==n?void 0:n.invalid,required:null==n?void 0:n.required,getRootNode:s,...r},c=(0,h.zl)(f.Aq,u);return f.Ng(c,h._B)},x=(0,o.forwardRef)((e,t)=>{let[n,o]=(0,a.P)()(e,["checked","defaultChecked","disabled","form","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]),l=y(n),c=(0,i.v6)(l.getRootProps(),o);return(0,r.jsx)(u,{value:l,children:(0,r.jsx)(s.X.label,{...c,ref:t})})});x.displayName="CheckboxRoot";let w=(0,o.forwardRef)((e,t)=>{let n=c(),o=(0,i.v6)(n.getLabelProps(),e);return(0,r.jsx)(s.X.span,{...o,ref:t})});w.displayName="CheckboxLabel";let S=(0,o.forwardRef)((e,t)=>{let n=c(),o=(0,i.v6)(n.getControlProps(),e);return(0,r.jsx)(s.X.div,{...o,ref:t})});S.displayName="CheckboxControl";var E=n(3716),k=n(84937);let C=(0,o.forwardRef)((e,t)=>{let[n,i]=(0,a.P)()(e,["defaultValue","value","onValueChange","disabled","invalid","readOnly","name"]),l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{defaultValue:t,value:n,onValueChange:r,disabled:i,readOnly:a,name:s,invalid:l}=e,u=!(i||a),[c,d]=function(e){let{value:t,onChange:n,defaultValue:r}=e,[i,a]=(0,o.useState)(r),s=void 0!==t;return[s?t:i,(0,o.useCallback)(e=>(s||a(e),null==n?void 0:n(e)),[s,n])]}({value:n,defaultValue:t||[],onChange:(0,k._)(r,{sync:!0})}),f=e=>c.some(t=>String(t)===String(e)),h=e=>{f(e)?g(e):p(e)},p=e=>{u&&(f(e)||d(c.concat(e)))},g=e=>{u&&d(c.filter(t=>String(t)!==String(e)))};return{isChecked:f,value:c,name:s,disabled:!!i,readOnly:!!a,invalid:!!l,setValue:d,addValue:p,toggleValue:h,getItemProps:e=>({checked:null!=e.value?f(e.value):void 0,onCheckedChange(){null!=e.value&&h(e.value)},name:s,disabled:i,readOnly:a,invalid:l})}}(n);return(0,r.jsx)(m,{value:l,children:(0,r.jsx)(s.X.div,{ref:t,role:"group",...i,...E.f.build().group.attrs})})});C.displayName="CheckboxGroup";let O=(0,o.forwardRef)((e,t)=>{let n=c(),o=(0,i.v6)(n.getHiddenInputProps(),e),a=(0,v.f)();return(0,r.jsx)(s.X.input,{"aria-describedby":null==a?void 0:a.ariaDescribedby,...o,ref:t})});O.displayName="CheckboxHiddenInput";var I=n(25651),_=n(23769),T=n(63276),P=n(7658),R=n(83289);let A=(0,o.forwardRef)(function(e,t){let n=(0,R.m)({key:"checkmark",recipe:e.recipe}),[i,o]=n.splitVariantProps(e),{checked:a,indeterminate:s,disabled:l,unstyled:u,children:c,...d}=o,f=u?P.z:n(i);return(0,r.jsx)(_.B.svg,{ref:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3px",strokeLinecap:"round",strokeLinejoin:"round","data-state":s?"indeterminate":a?"checked":"unchecked","data-disabled":(0,T.s)(l),css:[f,e.css],...d,children:s?(0,r.jsx)("path",{d:"M5 12h14"}):a?(0,r.jsx)("polyline",{points:"20 6 9 17 4 12"}):null})}),{withProvider:N,withContext:M,useStyles:L,PropsProvider:V}=(0,I.c)({key:"checkbox"});N(d,"root",{forwardAsChild:!0});let D=N(x,"root",{forwardAsChild:!0}),F=M(w,"label",{forwardAsChild:!0}),j=(0,o.forwardRef)(function(e,t){let{checked:n,indeterminate:i,...o}=e,a=c(),s=L();return n&&a.checked?(0,r.jsx)(_.B.svg,{ref:t,asChild:!0,...o,css:[s.indicator,e.css],children:n}):i&&a.indeterminate?(0,r.jsx)(_.B.svg,{ref:t,asChild:!0,...o,css:[s.indicator,e.css],children:i}):(0,r.jsx)(A,{ref:t,checked:a.checked,indeterminate:a.indeterminate,disabled:a.disabled,unstyled:!0,...o,css:[s.indicator,e.css]})}),z=M(S,"control",{forwardAsChild:!0,defaultProps:{children:(0,r.jsx)(j,{})}});(0,_.B)(C,{base:{display:"flex",flexDirection:"column",gap:"1.5"}},{forwardAsChild:!0});let B=O},84937:(e,t,n)=>{"use strict";n.d(t,{_:()=>i});var r=n(80905);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{sync:n=!1}=t,i=function(e){let t=(0,r.useRef)(e);return t.current=e,t}(e);return(0,r.useCallback)(function(){for(var e,t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];return n?queueMicrotask(()=>{var e;return null==(e=i.current)?void 0:e.call(i,...r)}):null==(e=i.current)?void 0:e.call(i,...r)},[n,i])}},84988:(e,t,n)=>{var r=n(43146);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},85049:(e,t,n)=>{"use strict";n.d(t,{E:()=>g});var r=n(70465),i=n(68084),o=n(54908),a=n(36621),s=class extends a.Q{constructor(e={}){super(),this.config=e,this.#g=new Map}#g;build(e,t,n){let o=t.queryKey,a=t.queryHash??(0,r.F$)(o,t),s=this.get(a);return s||(s=new i.X({client:e,queryKey:o,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o)}),this.add(s)),s}add(e){this.#g.has(e.queryHash)||(this.#g.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#g.get(e.queryHash);t&&(e.destroy(),t===e&&this.#g.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){o.jG.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#g.get(e)}getAll(){return[...this.#g.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r.MK)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,r.MK)(e,t)):t}notify(e){o.jG.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){o.jG.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){o.jG.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},l=n(35391),u=class extends a.Q{constructor(e={}){super(),this.config=e,this.#v=new Set,this.#m=new Map,this.#b=0}#v;#m;#b;build(e,t,n){let r=new l.s({mutationCache:this,mutationId:++this.#b,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#v.add(e);let t=c(e);if("string"==typeof t){let n=this.#m.get(t);n?n.push(e):this.#m.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#v.delete(e)){let t=c(e);if("string"==typeof t){let n=this.#m.get(t);if(n)if(n.length>1){let t=n.indexOf(e);-1!==t&&n.splice(t,1)}else n[0]===e&&this.#m.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=c(e);if("string"!=typeof t)return!0;{let n=this.#m.get(t),r=n?.find(e=>"pending"===e.state.status);return!r||r===e}}runNext(e){let t=c(e);if("string"!=typeof t)return Promise.resolve();{let n=this.#m.get(t)?.find(t=>t!==e&&t.state.isPaused);return n?.continue()??Promise.resolve()}}clear(){o.jG.batch(()=>{this.#v.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#v.clear(),this.#m.clear()})}getAll(){return Array.from(this.#v)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r.nJ)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,r.nJ)(e,t))}notify(e){o.jG.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return o.jG.batch(()=>Promise.all(e.map(e=>e.continue().catch(r.lQ))))}};function c(e){return e.options.scope?.id}var d=n(54371),f=n(43762);function h(e){return{onFetch:(t,n)=>{let i=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],s=t.state.data?.pageParams||[],l={pages:[],pageParams:[]},u=0,c=async()=>{let n=!1,c=(0,r.ZM)(t.options,t.fetchOptions),d=async(e,i,o)=>{if(n)return Promise.reject();if(null==i&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:i,direction:o?"backward":"forward",meta:t.options.meta};return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",()=>{n=!0}),t.signal)}),e})(),s=await c(a),{maxPages:l}=t.options,u=o?r.ZZ:r.y9;return{pages:u(e.pages,s,l),pageParams:u(e.pageParams,i,l)}};if(o&&a.length){let e="backward"===o,t={pages:a,pageParams:s},n=(e?function(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}:p)(i,t);l=await d(t,n,e)}else{let t=e??a.length;do{let e=0===u?s[0]??i.initialPageParam:p(i,l);if(u>0&&null==e)break;l=await d(l,e),u++}while(u<t)}return l};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=c}}}function p(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}var g=class{#y;#n;#h;#x;#w;#S;#E;#k;constructor(e={}){this.#y=e.queryCache||new s,this.#n=e.mutationCache||new u,this.#h=e.defaultOptions||{},this.#x=new Map,this.#w=new Map,this.#S=0}mount(){this.#S++,1===this.#S&&(this.#E=d.m.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#y.onFocus())}),this.#k=f.t.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#y.onOnline())}))}unmount(){this.#S--,0===this.#S&&(this.#E?.(),this.#E=void 0,this.#k?.(),this.#k=void 0)}isFetching(e){return this.#y.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#n.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#y.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#y.build(this,t),i=n.state.data;return void 0===i?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime((0,r.d2)(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return this.#y.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let i=this.defaultQueryOptions({queryKey:e}),o=this.#y.get(i.queryHash),a=o?.state.data,s=(0,r.Zw)(t,a);if(void 0!==s)return this.#y.build(this,i).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return o.jG.batch(()=>this.#y.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#y.get(t.queryHash)?.state}removeQueries(e){let t=this.#y;o.jG.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#y;return o.jG.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t};return Promise.all(o.jG.batch(()=>this.#y.findAll(e).map(e=>e.cancel(n)))).then(r.lQ).catch(r.lQ)}invalidateQueries(e,t={}){return o.jG.batch(()=>(this.#y.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(o.jG.batch(()=>this.#y.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(r.lQ)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(r.lQ)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let n=this.#y.build(this,t);return n.isStaleByTime((0,r.d2)(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(r.lQ).catch(r.lQ)}fetchInfiniteQuery(e){return e.behavior=h(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(r.lQ).catch(r.lQ)}ensureInfiniteQueryData(e){return e.behavior=h(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return f.t.isOnline()?this.#n.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#y}getMutationCache(){return this.#n}getDefaultOptions(){return this.#h}setDefaultOptions(e){this.#h=e}setQueryDefaults(e,t){this.#x.set((0,r.EN)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#x.values()],n={};return t.forEach(t=>{(0,r.Cp)(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#w.set((0,r.EN)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#w.values()],n={};return t.forEach(t=>{(0,r.Cp)(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#h.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,r.F$)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===r.hT&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#h.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#y.clear(),this.#n.clear()}}},85566:(e,t,n)=>{var r=n(272),i=n(24672),o=n(74474),a=n(36),s=n(6863),l=n(94627),u=n(15886),c=n(81414),d=n(32853),f=n(18979),h=n(57516),p=n(35724),g=n(63660),v=n(57102),m=n(50952),b=n(12984),y=n(81657),x=n(18771),w=n(97348),S=n(16209),E=n(4663),k=n(91512),C="[object Arguments]",O="[object Function]",I="[object Object]",_={};_[C]=_["[object Array]"]=_["[object ArrayBuffer]"]=_["[object DataView]"]=_["[object Boolean]"]=_["[object Date]"]=_["[object Float32Array]"]=_["[object Float64Array]"]=_["[object Int8Array]"]=_["[object Int16Array]"]=_["[object Int32Array]"]=_["[object Map]"]=_["[object Number]"]=_[I]=_["[object RegExp]"]=_["[object Set]"]=_["[object String]"]=_["[object Symbol]"]=_["[object Uint8Array]"]=_["[object Uint8ClampedArray]"]=_["[object Uint16Array]"]=_["[object Uint32Array]"]=!0,_["[object Error]"]=_[O]=_["[object WeakMap]"]=!1,e.exports=function e(t,n,T,P,R,A){var N,M=1&n,L=2&n,V=4&n;if(T&&(N=R?T(t,P,R,A):T(t)),void 0!==N)return N;if(!w(t))return t;var D=b(t);if(D){if(N=g(t),!M)return u(t,N)}else{var F=p(t),j=F==O||"[object GeneratorFunction]"==F;if(y(t))return l(t,M);if(F==I||F==C||j&&!R){if(N=L||j?{}:m(t),!M)return L?d(t,s(N,t)):c(t,a(N,t))}else{if(!_[F])return R?t:{};N=v(t,F,M)}}A||(A=new r);var z=A.get(t);if(z)return z;A.set(t,N),S(t)?t.forEach(function(r){N.add(e(r,n,T,r,t,A))}):x(t)&&t.forEach(function(r,i){N.set(i,e(r,n,T,i,t,A))});var B=V?L?h:f:L?k:E,U=D?void 0:B(t);return i(U||t,function(r,i){U&&(r=t[i=r]),o(N,i,e(r,n,T,i,t,A))}),N}},86074:(e,t,n)=>{"use strict";n.d(t,{o:()=>p});var r=n(6280),i=Object.defineProperty,o=(e,t,n)=>((e,t,n)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),a={activateTrap(e,t){if(e.length>0){let n=e[e.length-1];n!==t&&n.pause()}let n=e.indexOf(t);-1===n||e.splice(n,1),e.push(t)},deactivateTrap(e,t){let n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}},s=[],l=class{constructor(e,t){o(this,"trapStack"),o(this,"config"),o(this,"doc"),o(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),o(this,"listenerCleanups",[]),o(this,"handleFocus",e=>{let t=(0,r.wt)(e),n=this.findContainerIndex(t,e)>=0;if(n||(0,r.wz)(t))n&&(this.state.mostRecentlyFocusedNode=t);else{let t;e.stopImmediatePropagation();let n=!0;if(this.state.mostRecentlyFocusedNode)if((0,r.yT)(this.state.mostRecentlyFocusedNode)>0){let e=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:r}=this.state.containerGroups[e];if(r.length>0){let e=r.findIndex(e=>e===this.state.mostRecentlyFocusedNode);e>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?e+1<r.length&&(t=r[e+1],n=!1):e-1>=0&&(t=r[e-1],n=!1))}}else this.state.containerGroups.some(e=>e.tabbableNodes.some(e=>(0,r.yT)(e)>0))||(n=!1);else n=!1;n&&(t=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),t?this.tryFocus(t):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0}),o(this,"handlePointerDown",e=>{let t=(0,r.wt)(e);if(!(this.findContainerIndex(t,e)>=0)){if(c(this.config.clickOutsideDeactivates,e))return void this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});c(this.config.allowOutsideClick,e)||e.preventDefault()}}),o(this,"handleClick",e=>{let t=(0,r.wt)(e);!(this.findContainerIndex(t,e)>=0||c(this.config.clickOutsideDeactivates,e))&&(c(this.config.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation()))}),o(this,"handleTabKey",e=>{if(this.config.isKeyForward(e)||this.config.isKeyBackward(e)){this.state.recentNavEvent=e;let t=this.config.isKeyBackward(e),n=this.findNextNavNode({event:e,isBackward:t});n&&(u(e)&&e.preventDefault(),this.tryFocus(n))}}),o(this,"handleEscapeKey",e=>{d(e)&&!1!==c(this.config.escapeDeactivates,e)&&(e.preventDefault(),this.deactivate())}),o(this,"_mutationObserver"),o(this,"setupMutationObserver",()=>{let e=this.doc.defaultView||window;this._mutationObserver=new e.MutationObserver(e=>{e.some(e=>Array.from(e.removedNodes).some(e=>e===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode())})}),o(this,"updateObservedNodes",()=>{this._mutationObserver?.disconnect(),this.state.active&&!this.state.paused&&this.state.containers.map(e=>{this._mutationObserver?.observe(e,{subtree:!0,childList:!0})})}),o(this,"getInitialFocusNode",()=>{let e=this.getNodeForOption("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!(0,r.tp)(e))if(this.findContainerIndex(this.doc.activeElement)>=0)e=this.doc.activeElement;else{let t=this.state.tabbableGroups[0];e=t&&t.firstTabbableNode||this.getNodeForOption("fallbackFocus")}else null===e&&(e=this.getNodeForOption("fallbackFocus"));if(!e)throw Error("Your focus-trap needs to have at least one focusable element");return e.isConnected||(e=this.getNodeForOption("fallbackFocus")),e}),o(this,"tryFocus",e=>{if(!1!==e&&e!==(0,r.bq)(this.doc)){if(!e||!e.focus)return void this.tryFocus(this.getInitialFocusNode());e.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=e,h(e)&&e.select()}}),o(this,"deactivate",e=>{if(!this.state.active)return this;let t={onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus,...e};clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),a.deactivateTrap(this.trapStack,this);let n=this.getOption(t,"onDeactivate"),r=this.getOption(t,"onPostDeactivate"),i=this.getOption(t,"checkCanReturnFocus"),o=this.getOption(t,"returnFocus","returnFocusOnDeactivate");n?.();let s=()=>{f(()=>{if(o){let e=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(e)}r?.()})};return o&&i?i(this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation)).then(s,s):s(),this}),o(this,"pause",e=>{if(this.state.paused||!this.state.active)return this;let t=this.getOption(e,"onPause"),n=this.getOption(e,"onPostPause");return this.state.paused=!0,t?.(),this.removeListeners(),this.updateObservedNodes(),n?.(),this}),o(this,"unpause",e=>{if(!this.state.paused||!this.state.active)return this;let t=this.getOption(e,"onUnpause"),n=this.getOption(e,"onPostUnpause");return this.state.paused=!1,t?.(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),n?.(),this}),o(this,"updateContainerElements",e=>(this.state.containers=Array.isArray(e)?e.filter(Boolean):[e].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),o(this,"getReturnFocusNode",e=>{let t=this.getNodeForOption("setReturnFocus",{params:[e]});return t||!1!==t&&e}),o(this,"getOption",(e,t,n)=>e&&void 0!==e[t]?e[t]:this.config[n||t]),o(this,"getNodeForOption",(e,{hasFallback:t=!1,params:n=[]}={})=>{let r=this.config[e];if("function"==typeof r&&(r=r(...n)),!0===r&&(r=void 0),!r){if(void 0===r||!1===r)return r;throw Error(`\`${e}\` was specified but was not a node, or did not return a node`)}let i=r;if("string"==typeof r){try{i=this.doc.querySelector(r)}catch(t){throw Error(`\`${e}\` appears to be an invalid selector; error="${t.message}"`)}if(!i&&!t)throw Error(`\`${e}\` as selector refers to no known node`)}return i}),o(this,"findNextNavNode",e=>{let{event:t,isBackward:n=!1}=e,i=e.target||(0,r.wt)(t);this.updateTabbableNodes();let o=null;if(this.state.tabbableGroups.length>0){let e=this.findContainerIndex(i,t),a=e>=0?this.state.containerGroups[e]:void 0;if(e<0)o=n?this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:this.state.tabbableGroups[0].firstTabbableNode;else if(n){let n=this.state.tabbableGroups.findIndex(({firstTabbableNode:e})=>i===e);if(n<0&&(a?.container===i||(0,r.tp)(i)&&!(0,r.AO)(i)&&!a?.nextTabbableNode(i,!1))&&(n=e),n>=0){let e=0===n?this.state.tabbableGroups.length-1:n-1,t=this.state.tabbableGroups[e];o=(0,r.yT)(i)>=0?t.lastTabbableNode:t.lastDomTabbableNode}else u(t)||(o=a?.nextTabbableNode(i,!1))}else{let n=this.state.tabbableGroups.findIndex(({lastTabbableNode:e})=>i===e);if(n<0&&(a?.container===i||(0,r.tp)(i)&&!(0,r.AO)(i)&&!a?.nextTabbableNode(i))&&(n=e),n>=0){let e=n===this.state.tabbableGroups.length-1?0:n+1,t=this.state.tabbableGroups[e];o=(0,r.yT)(i)>=0?t.firstTabbableNode:t.firstDomTabbableNode}else u(t)||(o=a?.nextTabbableNode(i))}}else o=this.getNodeForOption("fallbackFocus");return o}),this.trapStack=t.trapStack||s;let n={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:e=>u(e)&&!e.shiftKey,isKeyBackward:e=>u(e)&&e.shiftKey,...t};this.doc=n.document||(0,r.YE)(Array.isArray(e)?e[0]:e),this.config=n,this.updateContainerElements(e),this.setupMutationObserver()}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){let n="function"==typeof t?.composedPath?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:t,tabbableNodes:r})=>t.contains(e)||n?.includes(t)||r.find(t=>t===e))}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{let t=(0,r.j9)(e),n=(0,r.i7)(e),i=t.length>0?t[0]:void 0,o=t.length>0?t[t.length-1]:void 0,a=n.find(e=>(0,r.AO)(e)),s=n.slice().reverse().find(e=>(0,r.AO)(e)),l=!!t.find(e=>(0,r.yT)(e)>0);return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:l,firstTabbableNode:i,lastTabbableNode:o,firstDomTabbableNode:a,lastDomTabbableNode:s,nextTabbableNode:function(e,i=!0){let o=t.indexOf(e);return o<0?i?n.slice(n.indexOf(e)+1).find(e=>(0,r.AO)(e)):n.slice(0,n.indexOf(e)).reverse().find(e=>(0,r.AO)(e)):t[o+(i?1:-1)]}}}),this.state.tabbableGroups=this.state.containerGroups.filter(e=>e.tabbableNodes.length>0),this.state.tabbableGroups.length<=0&&!this.getNodeForOption("fallbackFocus"))throw Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(this.state.containerGroups.find(e=>e.posTabIndexesFound)&&this.state.containerGroups.length>1)throw Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}addListeners(){if(this.state.active)return a.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?f(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push((0,r.kn)(this.doc,"focusin",this.handleFocus,!0),(0,r.kn)(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),(0,r.kn)(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),(0,r.kn)(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),(0,r.kn)(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),(0,r.kn)(this.doc,"keydown",this.handleEscapeKey)),this}removeListeners(){if(this.state.active)return this.listenerCleanups.forEach(e=>e()),this.listenerCleanups=[],this}activate(e){if(this.state.active)return this;let t=this.getOption(e,"onActivate"),n=this.getOption(e,"onPostActivate"),r=this.getOption(e,"checkCanFocusTrap");r||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=this.doc.activeElement||null,t?.();let i=()=>{r&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),n?.()};return r?r(this.state.containers.concat()).then(i,i):i(),this}},u=e=>"Tab"===e.key,c=(e,...t)=>"function"==typeof e?e(...t):e,d=e=>!e.isComposing&&"Escape"===e.key,f=e=>setTimeout(e,0),h=e=>"input"===e.localName&&"select"in e&&"function"==typeof e.select;function p(e,t={}){let n,i=(0,r.er)(()=>{let i="function"==typeof e?e():e;if(i){n=new l(i,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:i,...t,document:(0,r.YE)(i)});try{n.activate()}catch{}}});return function(){n?.deactivate(),i()}}},86244:(e,t,n)=>{"use strict";n.d(t,{Aq:()=>f,MI:()=>s,Ng:()=>u});var r=n(61696),i=n(20752),o=n(77952),a=n(82136),s=(0,r.y)("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange"),l=s.build();function u(e,t){var n,r;let{context:i,computed:o,prop:a,send:s,scope:u}=e,f=o("percent"),h=o("isIndeterminate")?"":o("formatter").format(f/100),p=a("max"),g=a("min"),v=a("orientation"),m=a("translations"),b=o("isIndeterminate"),y=i.get("value"),x=m?.value({value:y,max:p,percent:f,min:g,formatter:o("formatter")})??"",w=(n=y,r=p,null==n?"indeterminate":n===r?"complete":"loading"),S={role:"progressbar","aria-label":x,"data-max":p,"aria-valuemin":g,"aria-valuemax":p,"aria-valuenow":y??void 0,"data-orientation":v,"data-state":w},E=function(e){let{context:t,computed:n}=e;return{root:d,track:c,range:{opacity:0===t.get("value")?0:void 0,style:{...c.style,"--percent":n("percent"),"--circumference":"calc(2 * 3.14159 * var(--radius))","--offset":"calc(var(--circumference) * (100 - var(--percent)) / 100)",strokeDashoffset:"calc(var(--circumference) * ((100 - var(--percent)) / 100))",strokeDasharray:n("isIndeterminate")?void 0:"var(--circumference)",transformOrigin:"center",transform:"rotate(-90deg)"}}}}(e);return{value:y,valueAsString:x,min:g,max:p,percent:f,percentAsString:h,indeterminate:b,setValue(e){s({type:"VALUE.SET",value:e})},setToMax(){s({type:"VALUE.SET",value:p})},setToMin(){s({type:"VALUE.SET",value:g})},getRootProps:()=>t.element({dir:a("dir"),...l.root.attrs,id:u.ids?.root??`progress-${u.id}`,"data-max":p,"data-value":y??void 0,"data-state":w,"data-orientation":v,style:{"--percent":b?void 0:f}}),getLabelProps:()=>t.element({dir:a("dir"),id:u.ids?.label??`progress-${u.id}-label`,...l.label.attrs,"data-orientation":v}),getValueTextProps:()=>t.element({dir:a("dir"),"aria-live":"polite",...l.valueText.attrs}),getTrackProps:()=>t.element({dir:a("dir"),id:u.ids?.track??`progress-${u.id}-track`,...l.track.attrs,...S}),getRangeProps:()=>t.element({dir:a("dir"),...l.range.attrs,"data-orientation":v,"data-state":w,style:{[o("isHorizontal")?"width":"height"]:b?void 0:`${f}%`}}),getCircleProps:()=>t.element({dir:a("dir"),id:u.ids?.circle??`progress-${u.id}-circle`,...l.circle.attrs,...S,...E.root}),getCircleTrackProps:()=>t.element({dir:a("dir"),"data-orientation":v,...l.circleTrack.attrs,...E.track}),getCircleRangeProps:()=>t.element({dir:a("dir"),...l.circleRange.attrs,...E.range,"data-state":w}),getViewProps:e=>t.element({dir:a("dir"),...l.view.attrs,"data-state":e.state,hidden:e.state!==w})}}var c={style:{"--radius":"calc(var(--size) / 2 - var(--thickness) / 2)",cx:"calc(var(--size) / 2)",cy:"calc(var(--size) / 2)",r:"var(--radius)",fill:"transparent",strokeWidth:"var(--thickness)"}},d={style:{width:"var(--size)",height:"var(--size)"}},f=(0,i.Op)({props({props:e}){let t=e.min??0,n=e.max??100;return{orientation:"horizontal",...e,max:n,min:t,defaultValue:void 0!==e.defaultValue?e.defaultValue:v(t,n),formatOptions:{style:"percent",...e.formatOptions},translations:{value:({value:e,percent:t,formatter:n})=>{if(null===e)return"loading...";if(n){let r="percent"===n.resolvedOptions().style?t/100:e;return n.format(r)}return e.toString()},...e.translations}}},initialState:()=>"idle",entry:["validateContext"],context:({bindable:e,prop:t})=>({value:e(()=>({defaultValue:t("defaultValue"),value:t("value"),onChange(e){t("onValueChange")?.({value:e})}}))}),computed:{isIndeterminate:({context:e})=>null===e.get("value"),percent({context:e,prop:t}){let n=e.get("value");return(0,o.Et)(n)?100*(0,o.vV)(n,t("min"),t("max")):-1},formatter:(0,i.ph)(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>new Intl.NumberFormat(e,t)),isHorizontal:({prop:e})=>"horizontal"===e("orientation")},states:{idle:{on:{"VALUE.SET":{actions:["setValue"]}}}},implementations:{actions:{setValue:({context:e,event:t,prop:n})=>{let r=null===t.value?null:Math.max(0,Math.min(t.value,n("max")));e.set("value",r)},validateContext:({context:e,prop:t})=>{let n=t("max"),r=t("min"),i=e.get("value");if(null!=i){if(!h(n))throw Error(`[progress] The max value passed \`${n}\` is not a valid number`);if(!p(i,n))throw Error(`[progress] The value passed \`${i}\` exceeds the max value \`${n}\``);if(!g(i,r))throw Error(`[progress] The value passed \`${i}\` exceeds the min value \`${r}\``)}}}}}),h=e=>(0,o.Et)(e)&&!isNaN(e),p=(e,t)=>h(e)&&e<=t,g=(e,t)=>h(e)&&e>=t,v=(e,t)=>e+(t-e)/2,m=(0,a.x)()(["dir","getRootNode","id","ids","max","min","orientation","translations","value","onValueChange","defaultValue","formatOptions","locale"]);(0,o.PM)(m)},86658:e=>{e.exports=function(e){return this.__data__.has(e)}},86690:(e,t,n)=>{"use strict";n.d(t,{l6:()=>t3});var r,i=n(80905);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}function s(e,t,n){return(t=a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t){if(e){if("string"==typeof e)return c(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||d(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var p=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function g(e){var t=e.defaultInputValue,n=e.defaultMenuIsOpen,r=e.defaultValue,o=e.inputValue,a=e.menuIsOpen,s=e.onChange,l=e.onInputChange,c=e.onMenuClose,d=e.onMenuOpen,g=e.value,v=h(e,p),m=f((0,i.useState)(void 0!==o?o:void 0===t?"":t),2),b=m[0],y=m[1],x=f((0,i.useState)(void 0!==a?a:void 0!==n&&n),2),w=x[0],S=x[1],E=f((0,i.useState)(void 0!==g?g:void 0===r?null:r),2),k=E[0],C=E[1],O=(0,i.useCallback)(function(e,t){"function"==typeof s&&s(e,t),C(e)},[s]),I=(0,i.useCallback)(function(e,t){var n;"function"==typeof l&&(n=l(e,t)),y(void 0!==n?n:e)},[l]),_=(0,i.useCallback)(function(){"function"==typeof d&&d(),S(!0)},[d]),T=(0,i.useCallback)(function(){"function"==typeof c&&c(),S(!1)},[c]),P=void 0!==o?o:b,R=void 0!==a?a:w,A=void 0!==g?g:k;return u(u({},v),{},{inputValue:P,menuIsOpen:R,onChange:O,onInputChange:I,onMenuClose:T,onMenuOpen:_,value:A})}var v=n(95362);function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function b(e,t){return(b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function x(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(x=function(){return!!e})()}function w(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||d(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var S=n(96223),E=n(28636);let k=Math.min,C=Math.max,O=Math.round,I=Math.floor,_=e=>({x:e,y:e});function T(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function P(){return"undefined"!=typeof window}function R(e){return M(e)?(e.nodeName||"").toLowerCase():"#document"}function A(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function N(e){var t;return null==(t=(M(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function M(e){return!!P()&&(e instanceof Node||e instanceof A(e).Node)}function L(e){return!!P()&&(e instanceof Element||e instanceof A(e).Element)}function V(e){return!!P()&&(e instanceof HTMLElement||e instanceof A(e).HTMLElement)}function D(e){return!!P()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof A(e).ShadowRoot)}function F(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=B(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function j(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function z(e){return["html","body","#document"].includes(R(e))}function B(e){return A(e).getComputedStyle(e)}function U(e){if("html"===R(e))return e;let t=e.assignedSlot||e.parentNode||D(e)&&e.host||N(e);return D(t)?t.host:t}function W(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=U(t);return z(n)?t.ownerDocument?t.ownerDocument.body:t.body:V(n)&&F(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=A(i);if(o){let e=H(a);return t.concat(a,a.visualViewport||[],F(i)?i:[],e&&n?W(e):[])}return t.concat(i,W(i,[],n))}function H(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function q(e){return L(e)?e:e.contextElement}function $(e){let t=q(e);if(!V(t))return _(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=function(e){let t=B(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=V(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=O(n)!==o||O(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}(t),a=(o?O(n.width):n.width)/r,s=(o?O(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}let G=_(0);function K(e){let t=A(e);return j()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:G}function Y(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),a=q(e),s=_(1);t&&(r?L(r)&&(s=$(r)):s=$(e));let l=(void 0===(i=n)&&(i=!1),r&&(!i||r===A(a))&&i)?K(a):_(0),u=(o.left+l.x)/s.x,c=(o.top+l.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(a){let e=A(a),t=r&&L(r)?A(r):r,n=e,i=H(n);for(;i&&r&&t!==n;){let e=$(i),t=i.getBoundingClientRect(),r=B(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,f*=e.y,u+=o,c+=a,i=H(n=A(i))}}return T({width:d,height:f,x:u,y:c})}function X(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}var Q=i.useLayoutEffect,J=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Z=function(){};function ee(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&o.push("".concat(a?"-"===a[0]?e+a:e+"__"+a:e));return o.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var et=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===o(e)&&null!==e?[e]:[]},en=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,u({},h(e,J))},er=function(e,t,n){var r=e.cx,i=e.getStyles,o=e.getClassNames,a=e.className;return{css:i(t,e),className:r(null!=n?n:{},o(t,e),a)}};function ei(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function eo(e){return ei(e)?window.pageYOffset:e.scrollTop}function ea(e,t){if(ei(e))return void window.scrollTo(0,t);e.scrollTop=t}function es(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Z,i=eo(e),o=t-i,a=0;!function t(){var s;a+=10,ea(e,o*((s=(s=a)/n-1)*s*s+1)+i),a<n?window.requestAnimationFrame(t):r(e)}()}function el(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?ea(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&ea(e,Math.max(t.offsetTop-i,0))}function eu(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var ec=!1,ed="undefined"!=typeof window?window:{};ed.addEventListener&&ed.removeEventListener&&(ed.addEventListener("p",Z,{get passive(){return ec=!0}}),ed.removeEventListener("p",Z,!1));var ef=ec;function eh(e){return null!=e}var ep=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object.entries(e).filter(function(e){var t=f(e,1)[0];return!n.includes(t)}).reduce(function(e,t){var n=f(t,2),r=n[0],i=n[1];return e[r]=i,e},{})},eg=["children","innerProps"],ev=["children","innerProps"],em=function(e){return"auto"===e?"bottom":e},eb=(0,i.createContext)(null),ey=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,a=e.menuPosition,s=e.menuShouldScrollIntoView,l=e.theme,c=((0,i.useContext)(eb)||{}).setPortalPlacement,d=(0,i.useRef)(null),h=f((0,i.useState)(r),2),p=h[0],g=h[1],v=f((0,i.useState)(null),2),m=v[0],b=v[1],y=l.spacing.controlHeight;return Q(function(){var e=d.current;if(e){var t="fixed"===a,i=function(e){var t,n=e.maxHeight,r=e.menuEl,i=e.minHeight,o=e.placement,a=e.shouldScroll,s=e.isFixedPosition,l=e.controlHeight,u=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}(r),c={placement:"bottom",maxHeight:n};if(!r||!r.offsetParent)return c;var d=u.getBoundingClientRect().height,f=r.getBoundingClientRect(),h=f.bottom,p=f.height,g=f.top,v=r.offsetParent.getBoundingClientRect().top,m=s||ei(t=u)?window.innerHeight:t.clientHeight,b=eo(u),y=parseInt(getComputedStyle(r).marginBottom,10),x=parseInt(getComputedStyle(r).marginTop,10),w=v-x,S=m-g,E=w+b,k=d-b-g,C=h-m+b+y,O=b+g-x;switch(o){case"auto":case"bottom":if(S>=p)return{placement:"bottom",maxHeight:n};if(k>=p&&!s)return a&&es(u,C,160),{placement:"bottom",maxHeight:n};if(!s&&k>=i||s&&S>=i)return a&&es(u,C,160),{placement:"bottom",maxHeight:s?S-y:k-y};if("auto"===o||s){var I=n,_=s?w:E;return _>=i&&(I=Math.min(_-y-l,n)),{placement:"top",maxHeight:I}}if("bottom"===o)return a&&ea(u,C),{placement:"bottom",maxHeight:n};break;case"top":if(w>=p)return{placement:"top",maxHeight:n};if(E>=p&&!s)return a&&es(u,O,160),{placement:"top",maxHeight:n};if(!s&&E>=i||s&&w>=i){var T=n;return(!s&&E>=i||s&&w>=i)&&(T=s?w-x:E-x),a&&es(u,O,160),{placement:"top",maxHeight:T}}return{placement:"bottom",maxHeight:n};default:throw Error('Invalid placement provided "'.concat(o,'".'))}return c}({maxHeight:r,menuEl:e,minHeight:n,placement:o,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:y});g(i.maxHeight),b(i.placement),null==c||c(i.placement)}},[r,o,a,s,n,c,y]),t({ref:d,placerProps:u(u({},e),{},{placement:m||em(o),maxHeight:p})})},ex=function(e,t){var n=e.theme,r=n.spacing.baseUnit,i=n.colors;return u({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},ew=["size"],eS=["innerProps","isRtl","size"],eE={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},ek=function(e){var t=e.size,n=h(e,ew);return(0,S.Y)("svg",(0,v.A)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:eE},n))},eC=function(e){return(0,S.Y)(ek,(0,v.A)({size:20},e),(0,S.Y)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},eO=function(e){return(0,S.Y)(ek,(0,v.A)({size:20},e),(0,S.Y)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},eI=function(e,t){var n=e.isFocused,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return u({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*i,":hover":{color:n?o.neutral80:o.neutral40}})},e_=(0,S.i7)(r||(r=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),eT=function(e){var t=e.delay,n=e.offset;return(0,S.Y)("span",{css:(0,S.AH)({animation:"".concat(e_," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},eP=["data"],eR=["innerRef","isDisabled","isHidden","inputClassName"],eA={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},eN={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":u({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},eA)},eM=function(e){var t=e.children,n=e.innerProps;return(0,S.Y)("div",n,t)},eL={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return(0,S.Y)("div",(0,v.A)({},er(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||(0,S.Y)(eC,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.innerRef,o=e.innerProps,a=e.menuIsOpen;return(0,S.Y)("div",(0,v.A)({ref:i},er(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),o,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return(0,S.Y)("div",(0,v.A)({},er(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||(0,S.Y)(eO,null))},DownChevron:eO,CrossIcon:eC,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,i=e.getClassNames,o=e.Heading,a=e.headingProps,s=e.innerProps,l=e.label,u=e.theme,c=e.selectProps;return(0,S.Y)("div",(0,v.A)({},er(e,"group",{group:!0}),s),(0,S.Y)(o,(0,v.A)({},a,{selectProps:c,theme:u,getStyles:r,getClassNames:i,cx:n}),l),(0,S.Y)("div",null,t))},GroupHeading:function(e){var t=en(e);t.data;var n=h(t,eP);return(0,S.Y)("div",(0,v.A)({},er(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return(0,S.Y)("div",(0,v.A)({},er(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return(0,S.Y)("span",(0,v.A)({},t,er(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=en(e),i=r.innerRef,o=r.isDisabled,a=r.isHidden,s=r.inputClassName,l=h(r,eR);return(0,S.Y)("div",(0,v.A)({},er(e,"input",{"input-container":!0}),{"data-value":n||""}),(0,S.Y)("input",(0,v.A)({className:t({input:!0},s),ref:i,style:u({label:"input",color:"inherit",background:0,opacity:+!a,width:"100%"},eA),disabled:o},l)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,i=h(e,eS);return(0,S.Y)("div",(0,v.A)({},er(u(u({},i),{},{innerProps:t,isRtl:n,size:void 0===r?4:r}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),(0,S.Y)(eT,{delay:0,offset:n}),(0,S.Y)(eT,{delay:160,offset:!0}),(0,S.Y)(eT,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return(0,S.Y)("div",(0,v.A)({},er(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,i=e.isMulti;return(0,S.Y)("div",(0,v.A)({},er(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,o=e.innerProps,a=e.menuPlacement,s=e.menuPosition,l=(0,i.useRef)(null),c=(0,i.useRef)(null),d=f((0,i.useState)(em(a)),2),h=d[0],p=d[1],g=(0,i.useMemo)(function(){return{setPortalPlacement:p}},[]),m=f((0,i.useState)(null),2),b=m[0],y=m[1],x=(0,i.useCallback)(function(){if(r){var e,t={bottom:(e=r.getBoundingClientRect()).bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width},n="fixed"===s?0:window.pageYOffset,i=t[h]+n;(i!==(null==b?void 0:b.offset)||t.left!==(null==b?void 0:b.rect.left)||t.width!==(null==b?void 0:b.rect.width))&&y({offset:i,rect:t})}},[r,s,h,null==b?void 0:b.offset,null==b?void 0:b.rect.left,null==b?void 0:b.rect.width]);Q(function(){x()},[x]);var w=(0,i.useCallback)(function(){"function"==typeof c.current&&(c.current(),c.current=null),r&&l.current&&(c.current=function(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,c=q(e),d=o||a?[...c?W(c):[],...W(t)]:[];d.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});let f=c&&l?function(e,t){let n,r=null,i=N(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();let u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:h}=u;if(s||t(),!f||!h)return;let p=I(d),g=I(i.clientWidth-(c+f)),v={rootMargin:-p+"px "+-g+"px "+-I(i.clientHeight-(d+h))+"px "+-I(c)+"px",threshold:C(0,k(1,l))||1},m=!0;function b(t){let r=t[0].intersectionRatio;if(r!==l){if(!m)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||X(u,e.getBoundingClientRect())||a(),m=!1}try{r=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(b,v)}r.observe(e)}(!0),o}(c,n):null,h=-1,p=null;s&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),n()}),c&&!u&&p.observe(c),p.observe(t));let g=u?Y(e):null;return u&&function t(){let r=Y(e);g&&!X(g,r)&&n(),g=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=p)||e.disconnect(),p=null,u&&cancelAnimationFrame(i)}}(r,l.current,x,{elementResize:"ResizeObserver"in window}))},[r,x]);Q(function(){w()},[w]);var O=(0,i.useCallback)(function(e){l.current=e,w()},[w]);if(!t&&"fixed"!==s||!b)return null;var _=(0,S.Y)("div",(0,v.A)({ref:O},er(u(u({},e),{},{offset:b.offset,position:s,rect:b.rect}),"menuPortal",{"menu-portal":!0}),o),n);return(0,S.Y)(eb.Provider,{value:g},t?(0,E.createPortal)(_,t):_)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,i=h(e,ev);return(0,S.Y)("div",(0,v.A)({},er(u(u({},i),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,i=h(e,eg);return(0,S.Y)("div",(0,v.A)({},er(u(u({},i),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:function(e){var t=e.children,n=e.components,r=e.data,i=e.innerProps,o=e.isDisabled,a=e.removeProps,s=e.selectProps,l=n.Container,c=n.Label,d=n.Remove;return(0,S.Y)(l,{data:r,innerProps:u(u({},er(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),i),selectProps:s},(0,S.Y)(c,{data:r,innerProps:u({},er(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),(0,S.Y)(d,{data:r,innerProps:u(u({},er(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},MultiValueContainer:eM,MultiValueLabel:eM,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return(0,S.Y)("div",(0,v.A)({role:"button"},n),t||(0,S.Y)(eC,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.innerRef,a=e.innerProps;return(0,S.Y)("div",(0,v.A)({},er(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":i}),{ref:o,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return(0,S.Y)("div",(0,v.A)({},er(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,i=e.isRtl;return(0,S.Y)("div",(0,v.A)({},er(e,"container",{"--is-disabled":r,"--is-rtl":i}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return(0,S.Y)("div",(0,v.A)({},er(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,i=e.hasValue;return(0,S.Y)("div",(0,v.A)({},er(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":i}),n),t)}},eV=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function eD(e,t){if(e.length!==t.length)return!1;for(var n,r,i=0;i<e.length;i++)if(!((n=e[i])===(r=t[i])||eV(n)&&eV(r))&&1)return!1;return!0}for(var eF={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},ej=function(e){return(0,S.Y)("span",(0,v.A)({css:eF},e))},ez={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,i=e.context,o=e.isInitialFocus;switch(i){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return o?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,i=e.labels,o=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return o?"option ".concat(r," is disabled. Select another option."):"option ".concat(r,", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,i=e.label,o=void 0===i?"":i,a=e.selectValue,s=e.isDisabled,l=e.isSelected,u=e.isAppleDevice,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(o," focused, ").concat(c(a,n),".");if("menu"===t&&u){var d="".concat(l?" selected":"").concat(s?" disabled":"");return"".concat(o).concat(d,", ").concat(c(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},eB=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,a=e.isFocused,s=e.selectValue,l=e.selectProps,c=e.id,d=e.isAppleDevice,f=l.ariaLiveMessages,h=l.getOptionLabel,p=l.inputValue,g=l.isMulti,v=l.isOptionDisabled,m=l.isSearchable,b=l.menuIsOpen,y=l.options,x=l.screenReaderStatus,w=l.tabSelectsValue,E=l.isLoading,k=l["aria-label"],C=l["aria-live"],O=(0,i.useMemo)(function(){return u(u({},ez),f||{})},[f]),I=(0,i.useMemo)(function(){var e="";if(t&&O.onChange){var n=t.option,r=t.options,i=t.removedValue,o=t.removedValues,a=t.value,l=i||n||(Array.isArray(a)?null:a),c=l?h(l):"",d=r||o||void 0,f=d?d.map(h):[],p=u({isDisabled:l&&v(l,s),label:c,labels:f},t);e=O.onChange(p)}return e},[t,O,v,s,h]),_=(0,i.useMemo)(function(){var e="",t=n||r,i=!!(n&&s&&s.includes(n));if(t&&O.onFocus){var a={focused:t,label:h(t),isDisabled:v(t,s),isSelected:i,options:o,context:t===n?"menu":"value",selectValue:s,isAppleDevice:d};e=O.onFocus(a)}return e},[n,r,h,v,O,o,s,d]),T=(0,i.useMemo)(function(){var e="";if(b&&y.length&&!E&&O.onFilter){var t=x({count:o.length});e=O.onFilter({inputValue:p,resultsMessage:t})}return e},[o,p,b,O,y,x,E]),P=(null==t?void 0:t.action)==="initial-input-focus",R=(0,i.useMemo)(function(){var e="";if(O.guidance){var t=r?"value":b?"menu":"input";e=O.guidance({"aria-label":k,context:t,isDisabled:n&&v(n,s),isMulti:g,isSearchable:m,tabSelectsValue:w,isInitialFocus:P})}return e},[k,n,r,g,v,m,b,O,s,w,P]),A=(0,S.Y)(i.Fragment,null,(0,S.Y)("span",{id:"aria-selection"},I),(0,S.Y)("span",{id:"aria-focused"},_),(0,S.Y)("span",{id:"aria-results"},T),(0,S.Y)("span",{id:"aria-guidance"},R));return(0,S.Y)(i.Fragment,null,(0,S.Y)(ej,{id:c},P&&A),(0,S.Y)(ej,{"aria-live":C,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!P&&A))},eU=[{base:"A",letters:"AⒶA\xc0\xc1\xc2ẦẤẪẨ\xc3ĀĂẰẮẴẲȦǠ\xc4ǞẢ\xc5ǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"\xc6ǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČ\xc7ḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺE\xc8\xc9\xcaỀẾỄỂẼĒḔḖĔĖ\xcbẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾI\xcc\xcd\xceĨĪĬİ\xcfḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃ\xd1ṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄO\xd2\xd3\xd4ỒỐỖỔ\xd5ṌȬṎŌṐṒŎȮȰ\xd6ȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬ\xd8ǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊU\xd9\xda\xdbŨṸŪṺŬ\xdcǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲ\xddŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚ\xe0\xe1\xe2ầấẫẩ\xe3āăằắẵẳȧǡ\xe4ǟả\xe5ǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"\xe6ǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċč\xe7ḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔe\xe8\xe9\xeaềếễểẽēḕḗĕė\xebẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘi\xec\xed\xeeĩīĭ\xefḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹń\xf1ṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞo\xf2\xf3\xf4ồốỗổ\xf5ṍȭṏōṑṓŏȯȱ\xf6ȫỏőǒȍȏơờớỡởợọộǫǭ\xf8ǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢs\xdfśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤu\xf9\xfa\xfbũṹūṻŭ\xfcǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳ\xfdŷỹȳẏ\xffỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],eW=RegExp("["+eU.map(function(e){return e.letters}).join("")+"]","g"),eH={},eq=0;eq<eU.length;eq++)for(var e$=eU[eq],eG=0;eG<e$.letters.length;eG++)eH[e$.letters[eG]]=e$.base;var eK=function(e){return e.replace(eW,function(e){return eH[e]})},eY=function(e,t){void 0===t&&(t=eD);var n=null;function r(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var o=e.apply(this,r);return n={lastResult:o,lastArgs:r,lastThis:this},o}return r.clear=function(){n=null},r}(eK),eX=function(e){return e.replace(/^\s+|\s+$/g,"")},eQ=function(e){return"".concat(e.label," ").concat(e.value)},eJ=["innerRef"];function eZ(e){var t=e.innerRef,n=ep(h(e,eJ),"onExited","in","enter","exit","appear");return(0,S.Y)("input",(0,v.A)({ref:t},n,{css:(0,S.AH)({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var e0=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()},e1=["boxSizing","height","overflow","paddingRight","position"],e2={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function e5(e){e.cancelable&&e.preventDefault()}function e3(e){e.stopPropagation()}function e4(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function e6(){return"ontouchstart"in window||navigator.maxTouchPoints}var e8=!!("undefined"!=typeof window&&window.document&&window.document.createElement),e7=0,e9={capture:!1,passive:!1},te=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},tt={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function tn(e){var t,n,r,o,a,s,l,u,c,d,f,h,p,g,v,m,b,y,x,w,E,k,C,O,I=e.children,_=e.lockEnabled,T=e.captureEnabled,P=(n=(t={isEnabled:void 0===T||T,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}).isEnabled,r=t.onBottomArrive,o=t.onBottomLeave,a=t.onTopArrive,s=t.onTopLeave,l=(0,i.useRef)(!1),u=(0,i.useRef)(!1),c=(0,i.useRef)(0),d=(0,i.useRef)(null),f=(0,i.useCallback)(function(e,t){if(null!==d.current){var n=d.current,i=n.scrollTop,c=n.scrollHeight,f=n.clientHeight,h=d.current,p=t>0,g=c-f-i,v=!1;g>t&&l.current&&(o&&o(e),l.current=!1),p&&u.current&&(s&&s(e),u.current=!1),p&&t>g?(r&&!l.current&&r(e),h.scrollTop=c,v=!0,l.current=!0):!p&&-t>i&&(a&&!u.current&&a(e),h.scrollTop=0,v=!0,u.current=!0),v&&e0(e)}},[r,o,a,s]),h=(0,i.useCallback)(function(e){f(e,e.deltaY)},[f]),p=(0,i.useCallback)(function(e){c.current=e.changedTouches[0].clientY},[]),g=(0,i.useCallback)(function(e){var t=c.current-e.changedTouches[0].clientY;f(e,t)},[f]),v=(0,i.useCallback)(function(e){if(e){var t=!!ef&&{passive:!1};e.addEventListener("wheel",h,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",g,t)}},[g,p,h]),m=(0,i.useCallback)(function(e){e&&(e.removeEventListener("wheel",h,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",g,!1))},[g,p,h]),(0,i.useEffect)(function(){if(n){var e=d.current;return v(e),function(){m(e)}}},[n,v,m]),function(e){d.current=e}),R=(y=(b={isEnabled:_}).isEnabled,w=void 0===(x=b.accountForScrollbars)||x,E=(0,i.useRef)({}),k=(0,i.useRef)(null),C=(0,i.useCallback)(function(e){if(e8){var t=document.body,n=t&&t.style;if(w&&e1.forEach(function(e){var t=n&&n[e];E.current[e]=t}),w&&e7<1){var r=parseInt(E.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,o=window.innerWidth-i+r||0;Object.keys(e2).forEach(function(e){var t=e2[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(o,"px"))}t&&e6()&&(t.addEventListener("touchmove",e5,e9),e&&(e.addEventListener("touchstart",e4,e9),e.addEventListener("touchmove",e3,e9))),e7+=1}},[w]),O=(0,i.useCallback)(function(e){if(e8){var t=document.body,n=t&&t.style;e7=Math.max(e7-1,0),w&&e7<1&&e1.forEach(function(e){var t=E.current[e];n&&(n[e]=t)}),t&&e6()&&(t.removeEventListener("touchmove",e5,e9),e&&(e.removeEventListener("touchstart",e4,e9),e.removeEventListener("touchmove",e3,e9)))}},[w]),(0,i.useEffect)(function(){if(y){var e=k.current;return C(e),function(){O(e)}}},[y,C,O]),function(e){k.current=e});return(0,S.Y)(i.Fragment,null,_&&(0,S.Y)("div",{onClick:te,css:tt}),I(function(e){P(e),R(e)}))}var tr={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},ti=function(e){var t=e.name,n=e.onFocus;return(0,S.Y)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:tr,value:"",onChange:function(){}})};function to(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null==(t=window.navigator.userAgentData)?void 0:t.platform)||window.navigator.platform)}var ta=function(e){return e.label},ts=function(e){return e.value},tl={clearIndicator:eI,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.theme,o=i.colors,a=i.borderRadius;return u({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?o.neutral5:o.neutral0,borderColor:n?o.neutral10:r?o.primary:o.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:r?o.primary:o.neutral30}})},dropdownIndicator:eI,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,i=n.spacing;return u({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return u({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?o.neutral10:o.neutral20,marginBottom:2*i,marginTop:2*i})},input:function(e,t){var n=e.isDisabled,r=e.value,i=e.theme,o=i.spacing,a=i.colors;return u(u({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},eN),t?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,i=e.theme,o=i.colors,a=i.spacing.baseUnit;return u({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*a})},loadingMessage:ex,menu:function(e,t){var n,r=e.placement,i=e.theme,o=i.borderRadius,a=i.spacing,l=i.colors;return u((s(n={label:"menu"},r?({bottom:"top",top:"bottom"})[r]:"bottom","100%"),s(n,"position","absolute"),s(n,"width","100%"),s(n,"zIndex",1),n),t?{}:{backgroundColor:l.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return u({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,o=n.colors;return u({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:o.neutral10,borderRadius:i/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,i=n.colors,o=e.cropWithEllipsis;return u({overflow:"hidden",textOverflow:o||void 0===o?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,o=n.colors,a=e.isFocused;return u({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:a?o.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},noOptionsMessage:ex,option:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.theme,a=o.spacing,s=o.colors;return u({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:i?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,i=n.colors;return u({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing,o=r.colors;return u({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?o.neutral40:o.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,i=e.hasValue,o=e.selectProps.controlShouldRenderValue;return u({alignItems:"center",display:r&&i&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},tu={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},tc={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:eu(),captureMenuScroll:!eu(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=u({ignoreCase:!0,ignoreAccents:!0,stringify:eQ,trim:!0,matchFrom:"any"},void 0),r=n.ignoreCase,i=n.ignoreAccents,o=n.stringify,a=n.trim,s=n.matchFrom,l=a?eX(t):t,c=a?eX(o(e)):o(e);return r&&(l=l.toLowerCase(),c=c.toLowerCase()),i&&(l=eY(l),c=eK(c)),"start"===s?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:ta,getOptionValue:ts,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function td(e,t,n,r){var i=ty(e,t,n),o=tx(e,t,n),a=tm(e,t),s=tb(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:a,value:s,index:r}}function tf(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(n,r){return td(e,n,t,r)}).filter(function(t){return tg(e,t)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=td(e,n,t,r);return tg(e,o)?o:void 0}).filter(eh)}function th(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,w(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function tp(e,t){return e.reduce(function(e,n){return"group"===n.type?e.push.apply(e,w(n.options.map(function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}}))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e},[])}function tg(e,t){var n=e.inputValue,r=t.data,i=t.isSelected,o=t.label,a=t.value;return(!tS(e)||!i)&&tw(e,{label:o,value:a,data:r},void 0===n?"":n)}var tv=function(e,t){var n;return(null==(n=e.find(function(e){return e.data===t}))?void 0:n.id)||null},tm=function(e,t){return e.getOptionLabel(t)},tb=function(e,t){return e.getOptionValue(t)};function ty(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function tx(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=tb(e,t);return n.some(function(t){return tb(e,t)===r})}function tw(e,t,n){return!e.filterOption||e.filterOption(t,n)}var tS=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},tE=1,tk=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");s.prototype=Object.create(e&&e.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),Object.defineProperty(s,"prototype",{writable:!1}),e&&b(s,e);var t,n,r,a=(t=x(),function(){var e,n=y(s);e=t?Reflect.construct(n,arguments,y(this).constructor):n.apply(this,arguments);if(e&&("object"==o(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return this});function s(e){var t;if(!(this instanceof s))throw TypeError("Cannot call a class as a function");if((t=a.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=to(/^Mac/i)||to(/^iPhone/i)||to(/^iPad/i)||to(/^Mac/i)&&navigator.maxTouchPoints>1,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,i=r.onChange;n.name=r.name,t.ariaOnChange(e,n),i(e,n)},t.setValue=function(e,n,r){var i=t.props,o=i.closeMenuOnSelect,a=i.isMulti,s=i.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),o&&(t.setState({inputIsHiddenAfterUpdate:!a}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,i=n.isMulti,o=n.name,a=t.state.selectValue,s=i&&t.isOptionSelected(e,a),l=t.isOptionDisabled(e,a);if(s){var u=t.getOptionValue(e);t.setValue(a.filter(function(e){return t.getOptionValue(e)!==u}),"deselect-option",e)}else{if(l)return void t.ariaOnChange(e,{action:"select-option",option:e,name:o});i?t.setValue([].concat(w(a),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n,r=t.props.isMulti,i=t.state.selectValue,o=t.getOptionValue(e),a=i.filter(function(e){return t.getOptionValue(e)!==o}),s=(n=a[0]||null,r?a:n);t.onChange(s,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e,n,r=t.state.selectValue;t.onChange((e=t.props.isMulti,n=[],e?n:null),{action:"clear",removedValues:r})},t.popValue=function(){var e,n=t.props.isMulti,r=t.state.selectValue,i=r[r.length-1],o=r.slice(0,r.length-1),a=(e=o[0]||null,n?o:e);i&&t.onChange(a,{action:"pop-value",removedValue:i})},t.getFocusedOptionId=function(e){return tv(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return tp(tf(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return ee.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return tm(t.props,e)},t.getOptionValue=function(e){return tb(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,i=tl[e](n,r);i.boxSizing="border-box";var o=t.props.styles[e];return o?o(i,n):i},t.getClassNames=function(e,n){var r,i;return null==(r=(i=t.props.classNames)[e])?void 0:r.call(i,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){var e;return e=t.props,u(u({},eL),e.components)},t.buildCategorizedOptions=function(){return tf(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return th(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:u({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if((!e||"mousedown"!==e.type||0===e.button)&&!t.props.isDisabled){var n=t.props,r=n.isMulti,i=n.menuIsOpen;t.focusInput(),i?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout(function(){return t.focusInput()}))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&ei(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var i=Math.abs(r.clientX-t.initialTouchX),o=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=i>5||o>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;if(t.menuListRef&&t.menuListRef.contains(document.activeElement))return void t.inputRef.focus();t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1})},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return tS(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,i=n.backspaceRemovesValue,o=n.escapeClearsValue,a=n.inputValue,s=n.isClearable,l=n.isDisabled,u=n.menuIsOpen,c=n.onKeyDown,d=n.tabSelectsValue,f=n.openMenuOnFocus,h=t.state,p=h.focusedOption,g=h.focusedValue,v=h.selectValue;if(!l){if("function"==typeof c&&(c(e),e.defaultPrevented))return;switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(g)t.removeValue(g);else{if(!i)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing||e.shiftKey||!u||!d||!p||f&&t.isOptionSelected(p,v))return;t.selectOption(p);break;case"Enter":if(229===e.keyCode)break;if(u){if(!p||t.isComposing)return;t.selectOption(p);break}return;case"Escape":u?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):s&&o&&t.clearValue();break;case" ":if(a)return;if(!u){t.openMenu("first");break}if(!p)return;t.selectOption(p);break;case"ArrowUp":u?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":u?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!u)return;t.focusOption("pageup");break;case"PageDown":if(!u)return;t.focusOption("pagedown");break;case"Home":if(!u)return;t.focusOption("first");break;case"End":if(!u)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++tE),t.state.selectValue=et(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),r=t.buildFocusableOptions(),i=r.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=r[i],t.state.focusedOptionId=tv(n,r[i])}return t}return n=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&el(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&r&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):i||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(el(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,i=n.isFocused,o=this.buildFocusableOptions(),a="first"===e?0:o.length-1;if(!this.props.isMulti){var s=o.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[a],focusedOptionId:this.getFocusedOptionId(o[a])},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(r);r||(i=-1);var o=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===i?0:-1===i?o:i-1;break;case"next":i>-1&&i<o&&(a=i+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var i=0,o=r.indexOf(n);n||(o=-1),"up"===e?i=o>0?o-1:r.length-1:"down"===e?i=(o+1)%r.length:"pageup"===e?(i=o-t)<0&&(i=0):"pagedown"===e?(i=o+t)>r.length-1&&(i=r.length-1):"last"===e&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[i])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(tu):u(u({},tu),this.props.theme):tu}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,i=this.getValue,o=this.selectOption,a=this.setValue,s=this.props,l=s.isMulti,u=s.isRtl,c=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:i,hasValue:this.hasValue(),isMulti:l,isRtl:u,options:c,selectOption:o,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return ty(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return tx(this.props,e,t)}},{key:"filterOption",value:function(e,t){return tw(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"!=typeof this.props.formatOptionLabel)return this.getOptionLabel(e);var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,a=e.tabIndex,s=e.form,l=e.menuIsOpen,c=e.required,d=this.getComponents().Input,f=this.state,h=f.inputIsHidden,p=f.ariaSelection,g=this.commonProps,m=r||this.getElementId("input"),b=u(u(u({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},l&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?(null==p?void 0:p.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?i.createElement(d,(0,v.A)({},g,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:h,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:s,type:"text",value:o},b)):i.createElement(eZ,(0,v.A)({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Z,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:s,value:""},b))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,a=t.MultiValueRemove,s=t.SingleValue,l=t.Placeholder,u=this.commonProps,c=this.props,d=c.controlShouldRenderValue,f=c.isDisabled,h=c.isMulti,p=c.inputValue,g=c.placeholder,m=this.state,b=m.selectValue,y=m.focusedValue,x=m.isFocused;if(!this.hasValue()||!d)return p?null:i.createElement(l,(0,v.A)({},u,{key:"placeholder",isDisabled:f,isFocused:x,innerProps:{id:this.getElementId("placeholder")}}),g);if(h)return b.map(function(t,s){var l=t===y,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return i.createElement(n,(0,v.A)({},u,{components:{Container:r,Label:o,Remove:a},isFocused:l,isDisabled:f,key:c,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))});if(p)return null;var w=b[0];return i.createElement(s,(0,v.A)({},u,{data:w,isDisabled:f}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return i.createElement(e,(0,v.A)({},t,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;return e&&o?i.createElement(e,(0,v.A)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,a=this.state.isFocused;return i.createElement(n,(0,v.A)({},r,{isDisabled:o,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return i.createElement(e,(0,v.A)({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e,t=this,n=this.getComponents(),r=n.Group,o=n.GroupHeading,a=n.Menu,s=n.MenuList,l=n.MenuPortal,u=n.LoadingMessage,c=n.NoOptionsMessage,d=n.Option,f=this.commonProps,h=this.state.focusedOption,p=this.props,g=p.captureMenuScroll,m=p.inputValue,b=p.isLoading,y=p.loadingMessage,x=p.minMenuHeight,w=p.maxMenuHeight,S=p.menuIsOpen,E=p.menuPlacement,k=p.menuPosition,C=p.menuPortalTarget,O=p.menuShouldBlockScroll,I=p.menuShouldScrollIntoView,_=p.noOptionsMessage,T=p.onMenuScrollToTop,P=p.onMenuScrollToBottom;if(!S)return null;var R=function(e,n){var r=e.type,o=e.data,a=e.isDisabled,s=e.isSelected,l=e.label,u=e.value,c=h===o,p=a?void 0:function(){return t.onOptionHover(o)},g=a?void 0:function(){return t.selectOption(o)},m="".concat(t.getElementId("option"),"-").concat(n),b={id:m,onClick:g,onMouseMove:p,onMouseOver:p,tabIndex:-1,role:"option","aria-selected":t.isAppleDevice?void 0:s};return i.createElement(d,(0,v.A)({},f,{innerProps:b,data:o,isDisabled:a,isSelected:s,key:m,label:l,type:r,value:u,isFocused:c,innerRef:c?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(e.data,"menu"))};if(this.hasOptions())e=this.getCategorizedOptions().map(function(e){if("group"===e.type){var n=e.data,a=e.options,s=e.index,l="".concat(t.getElementId("group"),"-").concat(s),u="".concat(l,"-heading");return i.createElement(r,(0,v.A)({},f,{key:l,data:n,options:a,Heading:o,headingProps:{id:u,data:e.data},label:t.formatGroupLabel(e.data)}),e.options.map(function(e){return R(e,"".concat(s,"-").concat(e.index))}))}if("option"===e.type)return R(e,"".concat(e.index))});else if(b){var A=y({inputValue:m});if(null===A)return null;e=i.createElement(u,f,A)}else{var N=_({inputValue:m});if(null===N)return null;e=i.createElement(c,f,N)}var M={minMenuHeight:x,maxMenuHeight:w,menuPlacement:E,menuPosition:k,menuShouldScrollIntoView:I},L=i.createElement(ey,(0,v.A)({},f,M),function(n){var r=n.ref,o=n.placerProps,l=o.placement,u=o.maxHeight;return i.createElement(a,(0,v.A)({},f,M,{innerRef:r,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:b,placement:l}),i.createElement(tn,{captureEnabled:g,onTopArrive:T,onBottomArrive:P,lockEnabled:O},function(n){return i.createElement(s,(0,v.A)({},f,{innerRef:function(e){t.getMenuListRef(e),n(e)},innerProps:{role:"listbox","aria-multiselectable":f.isMulti,id:t.getElementId("listbox")},isLoading:b,maxHeight:u,focusedOption:h}),e)}))});return C||"fixed"===k?i.createElement(l,(0,v.A)({},f,{appendTo:C,controlElement:this.controlRef,menuPlacement:E,menuPosition:k}),L):L}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,a=t.name,s=t.required,l=this.state.selectValue;if(s&&!this.hasValue()&&!r)return i.createElement(ti,{name:a,onFocus:this.onValueInputFocus});if(a&&!r)if(o)if(n){var u=l.map(function(t){return e.getOptionValue(t)}).join(n);return i.createElement("input",{name:a,type:"hidden",value:u})}else{var c=l.length>0?l.map(function(t,n){return i.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})}):i.createElement("input",{name:a,type:"hidden",value:""});return i.createElement("div",null,c)}else{var d=l[0]?this.getOptionValue(l[0]):"";return i.createElement("input",{name:a,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,a=t.isFocused,s=t.selectValue,l=this.getFocusableOptions();return i.createElement(eB,(0,v.A)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:a,selectValue:s,focusableOptions:l,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,a=this.props,s=a.className,l=a.id,u=a.isDisabled,c=a.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return i.createElement(r,(0,v.A)({},f,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:d}),this.renderLiveRegion(),i.createElement(t,(0,v.A)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:d,menuIsOpen:c}),i.createElement(o,(0,v.A)({},f,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),i.createElement(n,(0,v.A)({},f,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){var n,r=t.prevProps,i=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,s=t.isFocused,l=t.prevWasFocused,c=t.instancePrefix,d=e.options,f=e.value,h=e.menuIsOpen,p=e.inputValue,g=e.isMulti,v=et(f),m={};if(r&&(f!==r.value||d!==r.options||h!==r.menuIsOpen||p!==r.inputValue)){var b,y=h?th(tf(e,v)):[],x=h?tp(tf(e,v),"".concat(c,"-option")):[],w=i?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,v):null,S=(b=t.focusedOption)&&y.indexOf(b)>-1?b:y[0],E=tv(x,S);m={selectValue:v,focusedOption:S,focusedOptionId:E,focusableOptionsWithIds:x,focusedValue:w,clearFocusValueOnUpdate:!1}}var k=null!=o&&e!==r?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},C=a,O=s&&l;return s&&!O&&(C={value:(n=v[0]||null,g?v:n),options:v,action:"initial-input-focus"},O=!l),(null==a?void 0:a.action)==="initial-input-focus"&&(C=null),u(u(u({},m),k),{},{prevProps:e,ariaSelection:C,prevWasFocused:O})}}],n&&m(s.prototype,n),r&&m(s,r),Object.defineProperty(s,"prototype",{writable:!1}),s}(i.Component);tk.defaultProps=tc,n(11946);var tC=(0,i.forwardRef)(function(e,t){var n=g(e);return i.createElement(tk,(0,v.A)({ref:t},n))}),tO=n(59432),tI=n(30268),t_=n(23769),tT=n(83289),tP=n(56153),tR=n(8269),tA=n(54673),tN=n(832),tM=n(27801),tL=n(6477),tV=n(68127),tD=n(9597),tF=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],tj=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=String(e).toLowerCase(),i=String(n.getOptionValue(t)).toLowerCase(),o=String(n.getOptionLabel(t)).toLowerCase();return i===r||o===r},tz={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n,r){return!(!e||t.some(function(t){return tj(e,t,r)})||n.some(function(t){return tj(e,t,r)}))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}};function tB(e){var t=e.allowCreateWhileLoading,n=void 0!==t&&t,r=e.createOptionPosition,o=void 0===r?"last":r,a=e.formatCreateLabel,s=void 0===a?tz.formatCreateLabel:a,l=e.isValidNewOption,c=void 0===l?tz.isValidNewOption:l,d=e.getNewOptionData,f=void 0===d?tz.getNewOptionData:d,p=e.onCreateOption,g=e.options,v=void 0===g?[]:g,m=e.onChange,b=h(e,tF),y=b.getOptionValue,x=void 0===y?ts:y,S=b.getOptionLabel,E=void 0===S?ta:S,k=b.inputValue,C=b.isLoading,O=b.isMulti,I=b.value,_=b.name,T=(0,i.useMemo)(function(){return c(k,et(I),v,{getOptionValue:x,getOptionLabel:E})?f(k,s(k)):void 0},[s,f,E,x,k,c,v,I]),P=(0,i.useMemo)(function(){return(n||!C)&&T?"first"===o?[T].concat(w(v)):[].concat(w(v),[T]):v},[n,o,C,T,v]),R=(0,i.useCallback)(function(e,t){if("select-option"!==t.action)return m(e,t);var n=Array.isArray(e)?e:[e];if(n[n.length-1]===T){if(p)p(k);else{var r,i=f(k,k);m((r=[].concat(w(et(I)),[i]),O?r:i),{action:"create-option",name:_,option:i})}return}m(e,t)},[f,k,O,_,T,p,m,I]);return u(u({},b),{},{options:P,onChange:R})}var tU=(0,i.forwardRef)(function(e,t){var n=tB(g(e));return i.createElement(tk,(0,v.A)({ref:t},n))}),tW=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function tH(e){var t=e.defaultOptions,n=void 0!==t&&t,r=e.cacheOptions,o=void 0!==r&&r,a=e.loadOptions;e.options;var l=e.isLoading,c=e.onInputChange,d=e.filterOption,p=h(e,tW),g=p.inputValue,v=(0,i.useRef)(void 0),m=(0,i.useRef)(!1),b=f((0,i.useState)(Array.isArray(n)?n:void 0),2),y=b[0],x=b[1],w=f((0,i.useState)(void 0!==g?g:""),2),S=w[0],E=w[1],k=f((0,i.useState)(!0===n),2),C=k[0],O=k[1],I=f((0,i.useState)(void 0),2),_=I[0],T=I[1],P=f((0,i.useState)([]),2),R=P[0],A=P[1],N=f((0,i.useState)(!1),2),M=N[0],L=N[1],V=f((0,i.useState)({}),2),D=V[0],F=V[1],j=f((0,i.useState)(void 0),2),z=j[0],B=j[1],U=f((0,i.useState)(void 0),2),W=U[0],H=U[1];o!==W&&(F({}),H(o)),n!==z&&(x(Array.isArray(n)?n:void 0),B(n)),(0,i.useEffect)(function(){return m.current=!0,function(){m.current=!1}},[]);var q=(0,i.useCallback)(function(e,t){if(!a)return t();var n=a(e,t);n&&"function"==typeof n.then&&n.then(t,function(){return t()})},[a]);(0,i.useEffect)(function(){!0===n&&q(S,function(e){m.current&&(x(e||[]),O(!!v.current))})},[]);var $=(0,i.useCallback)(function(e,t){var n=function(e,t,n){if(n){var r=n(e,t);if("string"==typeof r)return r}return e}(e,t,c);if(!n){v.current=void 0,E(""),T(""),A([]),O(!1),L(!1);return}if(o&&D[n])E(n),T(n),A(D[n]),O(!1),L(!1);else{var r=v.current={};E(n),O(!0),L(!_),q(n,function(e){m&&r===v.current&&(v.current=void 0,O(!1),T(n),A(e||[]),L(!1),F(e?u(u({},D),{},s({},n,e)):D))})}},[o,q,_,D,c]),G=M?[]:S&&_?R:y||[];return u(u({},p),{},{options:G,isLoading:C||void 0!==l&&l,onInputChange:$,filterOption:void 0===d?null:d})}var tq=(0,i.forwardRef)(function(e,t){var n=g(tH(e));return i.createElement(tk,(0,v.A)({ref:t},n))}),t$=(0,i.forwardRef)(function(e,t){var n=tB(g(tH(e)));return i.createElement(tk,(0,v.A)({ref:t},n))}),tG=(0,t_.B)("svg"),tK=e=>(0,tD.jsx)(tG,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:(0,tD.jsx)("path",{d:"M20 6 9 17l-5-5"})}),tY=e=>(0,tD.jsx)(tG,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:(0,tD.jsx)("path",{d:"m6 9 6 6 6-6"})}),tX=e=>(0,tD.jsx)(tG,{viewBox:"0 0 24 24",fill:"currentColor",...e,children:(0,tD.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711Z"})}),tQ=e=>{let{className:t,clearValue:n,cx:r,getStyles:i,getClassNames:o,getValue:a,hasValue:s,isMulti:l,isRtl:u,options:c,selectOption:d,selectProps:f,setValue:h,theme:p,...g}=e;return{...g}},tJ=e=>{var t,n,r,o;let a=(e=>(e=>"string"==typeof e&&["sm","md","lg"].includes(e))(e)?e:"xs"===e?"sm":"xl"===e?"lg":"md")(null==(n=null==(t=(0,tN.$)().getSlotRecipe("select"))?void 0:t.defaultVariants)?void 0:n.size);return null!=(o=function(e,t){let n=(0,tN.$)().normalizeValue(e),r=function(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.fallback||(n.fallback="base");let r=(0,tN.$)(),o=!1,a=r.breakpoints.values.map(e=>{let{min:t,name:r}=e,i={breakpoint:r,query:"(min-width: ".concat(t,")"),fallback:!o};return r===n.fallback&&(o=!0),i}).filter(e=>{var t;let{breakpoint:r}=e;return!!(null==(t=n.breakpoints)?void 0:t.includes(r))}),s=a.map(e=>{let{fallback:t}=e;return t}),l=(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{fallback:n=[],ssr:r=!0,getWindow:o}=t,a=(0,tM.c)(o),s=Array.isArray(e)?e:[e],l=null==n?void 0:n.filter(e=>null!=e),[u,c]=(0,i.useState)(()=>s.map((e,t)=>{if(!r){var n;let{media:t,matches:r}=(null!=(n=null==o?void 0:o())?n:window).matchMedia(e);return{media:t,matches:r}}return{media:e,matches:!!l[t]}}));return(0,i.useEffect)(()=>{var e;let t=null!=(e=a())?e:window;c(e=>{let n=s.map(e=>{let{media:n,matches:r}=t.matchMedia(e);return{media:n,matches:r}});return e.every((e,t)=>e.matches===n[t].matches&&e.media===n[t].media)?e:n});let n=s.map(e=>t.matchMedia(e)),r=e=>{c(t=>t.slice().map(t=>t.media===e.media?{...t,matches:e.matches}:t))},i=n.map(e=>(function(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch(n){return e.addListener(t),()=>e.removeListener(t)}})(e,r));return()=>i.forEach(e=>e())},[a]),u.map(e=>e.matches)})(a.map(e=>e.query),{fallback:s,ssr:n.ssr}).lastIndexOf(!0);return null!=(t=null==(e=a[l])?void 0:e.breakpoint)?t:n.fallback}({breakpoints:Object.keys(n),...void 0});return n[r]}(null!=(r="string"==typeof e?[e]:e)?r:[a]))?o:a},tZ=(0,t_.B)("input"),t0={sm:1.5,md:2,lg:2.5},t1=e=>(0,tD.jsx)(tL.L,{...e,children:(0,tD.jsx)(tK,{})}),t2={ClearIndicator:e=>{let{children:t,className:n,cx:r,innerProps:i,selectProps:{chakraStyles:o,size:a,variant:s}}=e,l={...(0,tO.y)({key:"select"})({size:a,variant:s}).clearTrigger},u=(null==o?void 0:o.clearIndicator)?o.clearIndicator(l,e):l,c={},d=(null==o?void 0:o.crossIcon)?o.crossIcon(c,e):c;return(0,tD.jsx)(tI.a,{className:r({indicator:!0,"clear-indicator":!0},n),css:u,"aria-label":"Clear selected options",asChild:!0,...i,children:(0,tD.jsx)(tR.K,{size:"sm",boxSize:8,minWidth:"unset",variant:"plain",pointerEvents:"auto",tabIndex:-1,children:t||(0,tD.jsx)(tX,{css:d})})})},Control:e=>{let{className:t,cx:n,children:r,innerRef:i,innerProps:o,isDisabled:a,isFocused:s,menuIsOpen:l,selectProps:{chakraStyles:u,size:c,variant:d,invalid:f,readOnly:h,focusRingColor:p}}=e,g={...(0,tT.m)({key:"input"})({size:c,variant:d}),display:"flex",height:"auto",minHeight:"var(--select-trigger-height)",...a?{pointerEvents:"none"}:{}},v=(null==u?void 0:u.control)?u.control(g,e):g;return(0,tD.jsx)(tI.a,{ref:i,className:n({control:!0,"control--is-disabled":a,"control--is-focused":s,"control--menu-is-open":l},t),css:v,...o,focusRingColor:p,"data-focus":!!s||void 0,"data-focus-visible":!!s||void 0,"data-invalid":!!f||void 0,"data-disabled":!!a||void 0,"data-readonly":!!h||void 0,children:r})},DropdownIndicator:e=>{let{children:t,className:n,cx:r,innerProps:i,selectProps:{chakraStyles:o,size:a,variant:s}}=e,l={...(0,tO.y)({key:"select"})({size:a,variant:s}).indicator},u=(null==o?void 0:o.dropdownIndicator)?o.dropdownIndicator(l,e):l,c={},d=(null==o?void 0:o.downChevron)?o.downChevron(c,e):c;return(0,tD.jsx)(tI.a,{...i,className:r({indicator:!0,"dropdown-indicator":!0},n),css:u,children:t||(0,tD.jsx)(tY,{css:d})})},Group:e=>{let{children:t,className:n,cx:r,theme:i,getStyles:o,Heading:a,headingProps:s,label:l,selectProps:u,innerProps:c,getClassNames:d}=e,{chakraStyles:f,size:h,variant:p}=u,g={...(0,tO.y)({key:"select"})({size:h,variant:p}).itemGroup},v=(null==f?void 0:f.group)?f.group(g,e):g;return(0,tD.jsxs)(tI.a,{...c,className:r({group:!0},n),css:v,children:[(0,tD.jsx)(a,{...s,selectProps:u,cx:r,theme:i,getStyles:o,getClassNames:d,children:l}),(0,tD.jsx)(tI.a,{children:t})]})},GroupHeading:e=>{let{cx:t,className:n,selectProps:{chakraStyles:r,size:i,variant:o}}=e,{data:a,...s}=tQ(e),l={...(0,tO.y)({key:"select"})({size:i,variant:o}).itemGroupLabel},u=(null==r?void 0:r.groupHeading)?r.groupHeading(l,e):l;return(0,tD.jsx)(tI.a,{...s,className:t({"group-heading":!0},n),css:u})},IndicatorSeparator:e=>{let{className:t,cx:n,selectProps:{chakraStyles:r}}=e,i={display:"none"},o=(null==r?void 0:r.indicatorSeparator)?r.indicatorSeparator(i,e):i;return(0,tD.jsx)(tP.w,{className:n({"indicator-separator":!0},t),css:o,orientation:"vertical"})},IndicatorsContainer:e=>{let{children:t,className:n,cx:r,innerProps:i,selectProps:{chakraStyles:o,size:a,variant:s}}=e,l={...(0,tO.y)({key:"select"})({size:a,variant:s}).indicatorGroup,position:"static",paddingRight:0},u=(null==o?void 0:o.indicatorsContainer)?o.indicatorsContainer(l,e):l;return(0,tD.jsx)(tI.a,{...i,className:r({indicators:!0},n),css:u,children:t})},Input:e=>{let{className:t,cx:n,value:r,selectProps:{chakraStyles:i,readOnly:o}}=e,{innerRef:a,isDisabled:s,isHidden:l,inputClassName:u,...c}=tQ(e),d={gridArea:"1 / 2",minW:"2px",border:0,margin:0,outline:0,padding:0},f={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content",color:"inherit",marginX:"0.125rem",paddingY:"0.125rem",visibility:s?"hidden":"visible",transform:r?"translateZ(0)":"",_after:{content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre",padding:0,...d}},h=(null==i?void 0:i.inputContainer)?i.inputContainer(f,e):f,p={background:0,opacity:+!l,width:"100%",...d},g=(null==i?void 0:i.input)?i.input(p,e):p;return(0,tD.jsx)(tI.a,{className:n({"input-container":!0},t),"data-value":r||"",css:h,children:(0,tD.jsx)(tZ,{className:n({input:!0},u),ref:a,css:g,disabled:s,readOnly:!!o||void 0,...c})})},LoadingIndicator:e=>{let{className:t,cx:n,innerProps:r,selectProps:{chakraStyles:i},color:o,colorPalette:a,trackColor:s,animationDuration:l,borderWidth:u,spinnerSize:c}=e,d={marginRight:3,...s?{"--spinner-track-color":s}:{}},f=(null==i?void 0:i.loadingIndicator)?i.loadingIndicator(d,e):d;return(0,tD.jsx)(tA.y,{className:n({indicator:!0,"loading-indicator":!0},t),css:f,...r,size:c,colorPalette:a,color:o,animationDuration:l,borderWidth:u})},LoadingMessage:e=>{let{children:t,className:n,cx:r,innerProps:i,selectProps:{chakraStyles:o,size:a}}=e,s={color:"fg.muted",textAlign:"center",paddingY:t0[tJ(a)]},l=(null==o?void 0:o.loadingMessage)?o.loadingMessage(s,e):s;return(0,tD.jsx)(tI.a,{...i,className:r({"menu-notice":!0,"menu-notice--loading":!0},n),css:l,children:t})},Menu:e=>{let{className:t,cx:n,children:r,innerProps:i,innerRef:o,placement:a,selectProps:{chakraStyles:s}}=e,l={position:"absolute",..."top"===a?{bottom:"100%"}:{top:"100%"},marginY:"8px",width:"100%",zIndex:1},u=(null==s?void 0:s.menu)?s.menu(l,e):l;return(0,tD.jsx)(tI.a,{...i,ref:o,className:n({menu:!0},t),css:u,children:r})},MenuList:e=>{let{className:t,cx:n,innerRef:r,children:i,maxHeight:o,isMulti:a,innerProps:s,selectProps:{chakraStyles:l,size:u,variant:c}}=e,d={...(0,tO.y)({key:"select"})({size:u,variant:c}).content,maxHeight:`${o}px`,position:"relative"},f=(null==l?void 0:l.menuList)?l.menuList(d,e):d;return(0,tD.jsx)(tI.a,{...s,className:n({"menu-list":!0,"menu-list--is-multi":a},t),css:f,ref:r,children:i})},MultiValue:e=>{var t;let{children:n,className:r,components:i,cx:o,data:a,innerProps:s,isDisabled:l,isFocused:u,removeProps:c,selectProps:d,cropWithEllipsis:f}=e,{Container:h,Label:p,Remove:g}=i,{chakraStyles:v,tagColorPalette:m,tagVariant:b,size:y}=d,{colorPalette:x,variant:w}=null!=(t=(0,tN.$)().getSlotRecipe("tag").defaultVariants)?t:{},S=x;(e=>"object"==typeof e&&null!==e&&"colorPalette"in e&&"string"==typeof e.colorPalette)(a)?S=a.colorPalette:m&&(S=m);let E=w;(e=>"object"==typeof e&&null!==e&&"variant"in e&&"string"==typeof e.variant)(a)?E=a.variant:b&&(E=b);let k=(0,tO.y)({key:"tag"})({size:y,variant:E}),C={...k.root,colorPalette:S,minWidth:0,margin:"0.125rem"},O=(null==v?void 0:v.multiValue)?v.multiValue(C,e):C,I={...k.label,overflow:"hidden",textOverflow:f||void 0===f?"ellipsis":void 0,whiteSpace:"nowrap"},_=(null==v?void 0:v.multiValueLabel)?v.multiValueLabel(I,e):I,T={...k.endElement},P=(null==v?void 0:v.multiValueEndElement)?v.multiValueEndElement(T,e):T,R={...k.closeTrigger,cursor:"pointer"},A=(null==v?void 0:v.multiValueRemove)?v.multiValueRemove(R,e):R;return(0,tD.jsxs)(h,{data:a,innerProps:{className:o({"multi-value":!0,"multi-value--is-disabled":l},r),...s},css:O,selectProps:d,children:[(0,tD.jsx)(p,{data:a,innerProps:{className:o({"multi-value__label":!0},r)},css:_,selectProps:d,children:n}),(0,tD.jsx)(g,{data:a,innerProps:{className:o({"multi-value__remove":!0},r),"aria-label":`Remove ${n||"option"}`,...c},endElementCss:P,css:A,selectProps:d,isFocused:u})]})},MultiValueContainer:e=>{let{children:t,innerProps:n,css:r}=e;return(0,tD.jsx)(tL.L,{...n,css:r,children:t})},MultiValueLabel:e=>{let{children:t,innerProps:n,css:r}=e;return(0,tD.jsx)(tL.L,{...n,css:r,children:t})},MultiValueRemove:e=>{let{children:t,innerProps:n,isFocused:r,endElementCss:i,css:o}=e;return(0,tD.jsx)(tL.L,{css:i,...n,children:(0,tD.jsx)(tL.L,{role:"button",css:o,"data-focus-visible":!!r||void 0,children:t||(0,tD.jsx)(tX,{})})})},NoOptionsMessage:e=>{let{children:t,className:n,cx:r,innerProps:i,selectProps:{chakraStyles:o,size:a}}=e,s={color:"fg.muted",textAlign:"center",paddingY:t0[tJ(a)]},l=(null==o?void 0:o.noOptionsMessage)?o.noOptionsMessage(s,e):s;return(0,tD.jsx)(tI.a,{...i,className:r({"menu-notice":!0,"menu-notice--no-options":!0},n),css:l,children:t})},Option:e=>{let{className:t,cx:n,innerRef:r,innerProps:i,children:o,isFocused:a,isDisabled:s,isSelected:l,selectProps:{chakraStyles:u,isMulti:c,hideSelectedOptions:d,selectedOptionStyle:f,selectedOptionColorPalette:h,size:p,variant:g}}=e,v=(0,tO.y)({key:"select"})({size:p,variant:g}),m="color"===f&&l,b={...v.item,...m?{color:"colorPalette.contrast",bg:"colorPalette.solid",_active:{bg:"colorPalette.solid"}}:{}},y=(null==u?void 0:u.option)?u.option(b,e):b;return(0,tD.jsxs)(tI.a,{...i,colorPalette:h,className:n({option:!0,"option--is-disabled":s,"option--is-focused":a,"option--is-selected":l},t),css:y,ref:r,"data-highlighted":!!a||void 0,"aria-disabled":!!s||void 0,"aria-selected":l,children:[o,"check"===f&&(!c||!1===d)&&(0,tD.jsx)(t1,{css:{...v.itemIndicator},hidden:!l,children:(0,tD.jsx)(tK,{})})]})},Placeholder:e=>{let{children:t,className:n,cx:r,innerProps:i,selectProps:{chakraStyles:o}}=e,a={gridArea:"1 / 1 / 2 / 3",color:"fg.muted/80",mx:"0.125rem",userSelect:"none"},s=(null==o?void 0:o.placeholder)?o.placeholder(a,e):a;return(0,tD.jsx)(tI.a,{...i,className:r({placeholder:!0},n),css:s,children:t})},SelectContainer:e=>{let{children:t,className:n,cx:r,innerProps:i,isDisabled:o,isRtl:a,hasValue:s,selectProps:{chakraStyles:l,size:u,variant:c}}=e,d={...(0,tO.y)({key:"select"})({size:u,variant:c}).root,gap:0,position:"relative",direction:a?"rtl":void 0,...o?{cursor:"not-allowed"}:{}},f=(null==l?void 0:l.container)?l.container(d,e):d;return(0,tD.jsx)(tI.a,{...i,className:r({"--is-disabled":o,"--is-rtl":a,"--has-value":s},n),css:f,children:t})},SingleValue:e=>{let{children:t,className:n,cx:r,isDisabled:i,innerProps:o,selectProps:{chakraStyles:a}}=e,s={gridArea:"1 / 1 / 2 / 3",mx:"0.125rem",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},l=(null==a?void 0:a.singleValue)?a.singleValue(s,e):s;return(0,tD.jsx)(tI.a,{className:r({"single-value":!0,"single-value--is-disabled":i},n),css:l,...o,children:t})},ValueContainer:e=>{let{children:t,className:n,cx:r,isMulti:i,hasValue:o,innerProps:a,selectProps:{chakraStyles:s,controlShouldRenderValue:l}}=e,u={display:i&&o&&l?"flex":"grid",alignItems:"center",flex:1,paddingY:"2px",flexWrap:"wrap",position:"relative",overflow:"hidden"},c=(null==s?void 0:s.valueContainer)?s.valueContainer(u,e):u;return(0,tD.jsx)(tI.a,{...a,className:r({"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o},n),css:c,children:t})}},t5=({components:e={},disabled:t,isDisabled:n,invalid:r,readOnly:i,required:o,inputId:a,selectedOptionStyle:s="color",selectedOptionColorPalette:l="blue",menuIsOpen:u,menuPlacement:c="auto",theme:d,...f})=>{var h,p;let g=(0,tV.f)(),v=null!=i?i:null==g?void 0:g.readOnly,m=s;["color","check"].includes(s)||(m="color");let b=l||"blue";return"string"!=typeof b&&(b="blue"),{components:{...t2,...e},selectedOptionStyle:m,selectedOptionColorPalette:b,isDisabled:null!=(h=null!=t?t:n)?h:null==g?void 0:g.disabled,invalid:null!=r?r:null==g?void 0:g.invalid,inputId:null!=a?a:null==g?void 0:g.ids.control,readOnly:v,required:null!=o?o:null==g?void 0:g.required,menuIsOpen:null!=u?u:!v&&void 0,menuPlacement:c,unstyled:!0,...f,"aria-invalid":null!=(p=f["aria-invalid"])?p:null==g?void 0:g.invalid}},t3=(0,i.forwardRef)((e,t)=>{let n=t5(e);return(0,tD.jsx)(tC,{ref:t,...n})});(0,i.forwardRef)((e,t)=>{let n=t5(e);return(0,tD.jsx)(tU,{ref:t,...n})}),(0,i.forwardRef)((e,t)=>{let n=t5(e);return(0,tD.jsx)(tq,{ref:t,...n})}),(0,i.forwardRef)((e,t)=>{let n=t5(e);return(0,tD.jsx)(t$,{ref:t,...n})})},86798:e=>{e.exports=function(e,t){return e>t}},86874:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var i=t(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},87136:(e,t,n)=>{var r=n(94427),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},87159:(e,t,n)=>{var r=n(69864),i=n(8788);e.exports=function(e,t){t=r(t,e);for(var n=0,o=t.length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},87313:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},87799:(e,t,n)=>{var r=n(27404),i=n(40935),o=n(4663);e.exports=function(e){return function(t,n,a){var s=Object(t);if(!i(t)){var l=r(n,3);t=o(t),n=function(e){return l(s[e],e,s)}}var u=e(t,n,a);return u>-1?s[l?t[u]:u]:void 0}}},88105:(e,t,n)=>{var r=n(44901);e.exports={Graph:r.Graph,json:n(80717),alg:n(11568),version:r.version}},88464:(e,t,n)=>{"use strict";n.d(t,{Aq:()=>x,MI:()=>u,Ng:()=>b});var r=n(61696),i=n(6280),o=n(83788),a=n(20752),s=n(77952),l=n(82136),u=(0,r.y)("radio-group").parts("root","label","item","itemText","itemControl","indicator"),c=u.build(),d=e=>e.ids?.root??`radio-group:${e.id}`,f=e=>e.ids?.label??`radio-group:${e.id}:label`,h=(e,t)=>e.ids?.item?.(t)??`radio-group:${e.id}:radio:${t}`,p=(e,t)=>e.ids?.itemHiddenInput?.(t)??`radio-group:${e.id}:radio:input:${t}`,g=e=>e.ids?.indicator??`radio-group:${e.id}:indicator`,v=e=>e.getById(d(e)),m=e=>{let t=CSS.escape(d(e)),n=`input[type=radio][data-ownedby='${t}']:not([disabled])`;return(0,i.YG)(v(e),n)};function b(e,t){let{context:n,send:r,computed:a,prop:s,scope:l}=e,u=a("isDisabled"),m=s("readOnly");function b(e){let t=n.get("focusedValue")===e.value,r=t&&(0,o.pP)();return{value:e.value,invalid:!!e.invalid,disabled:!!e.disabled||u,checked:n.get("value")===e.value,focused:t,focusVisible:r,hovered:n.get("hoveredValue")===e.value,active:n.get("activeValue")===e.value}}function y(e){let t=b(e);return{"data-focus":(0,i.sE)(t.focused),"data-focus-visible":(0,i.sE)(t.focusVisible),"data-disabled":(0,i.sE)(t.disabled),"data-readonly":(0,i.sE)(m),"data-state":t.checked?"checked":"unchecked","data-hover":(0,i.sE)(t.hovered),"data-invalid":(0,i.sE)(t.invalid),"data-orientation":s("orientation"),"data-ssr":(0,i.sE)(n.get("ssr"))}}let x=()=>{let e=v(l)?.querySelector("input:not(:disabled):checked")??v(l)?.querySelector("input:not(:disabled)");e?.focus()};return{focus:x,value:n.get("value"),setValue(e){r({type:"SET_VALUE",value:e,isTrusted:!1})},clearValue(){r({type:"SET_VALUE",value:null,isTrusted:!1})},getRootProps:()=>t.element({...c.root.attrs,role:"radiogroup",id:d(l),"aria-labelledby":f(l),"data-orientation":s("orientation"),"data-disabled":(0,i.sE)(u),"aria-orientation":s("orientation"),dir:s("dir"),style:{position:"relative"}}),getLabelProps:()=>t.element({...c.label.attrs,dir:s("dir"),"data-orientation":s("orientation"),"data-disabled":(0,i.sE)(u),id:f(l),onClick:x}),getItemState:b,getItemProps(e){let n=b(e);return t.label({...c.item.attrs,dir:s("dir"),id:h(l,e.value),htmlFor:p(l,e.value),...y(e),onPointerMove(){!n.disabled&&(n.hovered||r({type:"SET_HOVERED",value:e.value,hovered:!0}))},onPointerLeave(){n.disabled||r({type:"SET_HOVERED",value:null})},onPointerDown(t){!n.disabled&&(0,i.Ml)(t)&&(n.focused&&"mouse"===t.pointerType&&t.preventDefault(),r({type:"SET_ACTIVE",value:e.value,active:!0}))},onPointerUp(){n.disabled||r({type:"SET_ACTIVE",value:null})},onClick(){let t;!n.disabled&&(0,i.nr)()&&(t=e.value,l.getById(p(l,t)))?.focus()}})},getItemTextProps:e=>{let n;return t.element({...c.itemText.attrs,dir:s("dir"),id:(n=e.value,l.ids?.itemLabel?.(n)??`radio-group:${l.id}:radio:label:${n}`),...y(e)})},getItemControlProps(e){let n,r=b(e);return t.element({...c.itemControl.attrs,dir:s("dir"),id:(n=e.value,l.ids?.itemControl?.(n)??`radio-group:${l.id}:radio:control:${n}`),"data-active":(0,i.sE)(r.active),"aria-hidden":!0,...y(e)})},getItemHiddenInputProps(e){let n=b(e);return t.input({"data-ownedby":d(l),id:p(l,e.value),type:"radio",name:s("name")||s("id"),form:s("form"),value:e.value,onClick(t){if(m)return void t.preventDefault();t.currentTarget.checked&&r({type:"SET_VALUE",value:e.value,isTrusted:!0})},onBlur(){r({type:"SET_FOCUSED",value:null,focused:!1})},onFocus(){r({type:"SET_FOCUSED",value:e.value,focused:!0})},onKeyDown(t){t.defaultPrevented||" "===t.key&&r({type:"SET_ACTIVE",value:e.value,active:!0})},onKeyUp(e){e.defaultPrevented||" "===e.key&&r({type:"SET_ACTIVE",value:null})},disabled:n.disabled,defaultChecked:n.checked,style:i.fe})},getIndicatorProps(){let e=n.get("indicatorRect");return t.element({id:g(l),...c.indicator.attrs,dir:s("dir"),hidden:null==n.get("value"),"data-disabled":(0,i.sE)(u),"data-orientation":s("orientation"),style:{"--transition-property":"left, top, width, height","--left":e?.left,"--top":e?.top,"--width":e?.width,"--height":e?.height,position:"absolute",willChange:"var(--transition-property)",transitionProperty:"var(--transition-property)",transitionDuration:n.get("canIndicatorTransition")?"var(--transition-duration, 150ms)":"0ms",transitionTimingFunction:"var(--transition-timing-function)",["horizontal"===s("orientation")?"left":"top"]:"horizontal"===s("orientation")?"var(--left)":"var(--top)"}})}}}var{not:y}=(0,a.b6)(),x=(0,a.Op)({props:({props:e})=>({orientation:"vertical",...e}),initialState:()=>"idle",context:({prop:e,bindable:t})=>({value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(t){e("onValueChange")?.({value:t})}})),activeValue:t(()=>({defaultValue:null})),focusedValue:t(()=>({defaultValue:null})),hoveredValue:t(()=>({defaultValue:null})),indicatorRect:t(()=>({defaultValue:{}})),canIndicatorTransition:t(()=>({defaultValue:!1})),fieldsetDisabled:t(()=>({defaultValue:!1})),ssr:t(()=>({defaultValue:!0}))}),refs:()=>({indicatorCleanup:null}),computed:{isDisabled:({prop:e,context:t})=>!!e("disabled")||t.get("fieldsetDisabled")},entry:["syncIndicatorRect","syncSsr"],exit:["cleanupObserver"],effects:["trackFormControlState","trackFocusVisible"],watch({track:e,action:t,context:n}){e([()=>n.get("value")],()=>{t(["setIndicatorTransition","syncIndicatorRect","syncInputElements"])})},on:{SET_VALUE:[{guard:y("isTrusted"),actions:["setValue","dispatchChangeEvent"]},{actions:["setValue"]}],SET_HOVERED:{actions:["setHovered"]},SET_ACTIVE:{actions:["setActive"]},SET_FOCUSED:{actions:["setFocused"]}},states:{idle:{}},implementations:{guards:{isTrusted:({event:e})=>!!e.isTrusted},effects:{trackFormControlState:({context:e,scope:t})=>(0,i.$S)(v(t),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){e.set("value",e.initial("value"))}}),trackFocusVisible:({scope:e})=>(0,o.Yy)({root:e.getRootNode?.()})},actions:{setValue({context:e,event:t}){e.set("value",t.value)},setHovered({context:e,event:t}){e.set("hoveredValue",t.value)},setActive({context:e,event:t}){e.set("activeValue",t.value)},setFocused({context:e,event:t}){e.set("focusedValue",t.value)},syncInputElements({context:e,scope:t}){m(t).forEach(t=>{t.checked=t.value===e.get("value")})},setIndicatorTransition({context:e}){e.set("canIndicatorTransition",(0,s.Kg)(e.get("value")))},cleanupObserver({refs:e}){e.get("indicatorCleanup")?.()},syncSsr({context:e}){e.set("ssr",!1)},syncIndicatorRect({context:e,scope:t,refs:n}){if(n.get("indicatorCleanup")?.(),!t.getById(g(t)))return;let r=e.get("value"),o=((e,t)=>{if(t)return e.getById(h(e,t))})(t,r);if(null==r||!o){e.set("canIndicatorTransition",!1),e.set("indicatorRect",{});return}let a=(0,i.Gj)([o],{measure:e=>({left:e?.offsetLeft??0,top:e?.offsetTop??0,width:e?.offsetWidth??0,height:e?.offsetHeight??0}),onEntry({rects:t}){let n;e.set("indicatorRect",(n=t[0],{width:`${n.width}px`,height:`${n.height}px`,left:`${n.left}px`,top:`${n.top}px`}))}});n.set("indicatorCleanup",a)},dispatchChangeEvent({context:e,scope:t}){m(t).forEach(t=>{let n=t.value===e.get("value");n!==t.checked&&(0,i.uf)(t,{checked:n})})}}}}),w=(0,l.x)()(["dir","disabled","form","getRootNode","id","ids","name","onValueChange","orientation","readOnly","value","defaultValue"]);(0,s.PM)(w);var S=(0,l.x)()(["value","disabled","invalid"]);(0,s.PM)(S)},88854:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},89016:(e,t,n)=>{var r=n(34884);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},89058:(e,t,n)=>{"use strict";function r(e,t){if(e=function(e){let t;for(;t=e.sourceEvent;)e=t;return e}(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}n.d(t,{A:()=>r})},89124:(e,t,n)=>{"use strict";var r=n(63780);e.exports={longestPath:function(e){var t={};r.forEach(e.sources(),function n(i){var o=e.node(i);if(r.has(t,i))return o.rank;t[i]=!0;var a=r.min(r.map(e.outEdges(i),function(t){return n(t.w)-e.edge(t).minlen}));return(a===1/0||null==a)&&(a=0),o.rank=a})},slack:function(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}}},89132:(e,t,n)=>{var r=n(35721),i=n(31991),o=n(52944),a=n(29092),s=n(28908);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},89612:(e,t,n)=>{"use strict";var r=n(63780),i=n(99601);e.exports={run:function(e){e.graph().dummyChains=[],r.forEach(e.edges(),function(t){!function(e,t){var n,r,o,a=t.v,s=e.node(a).rank,l=t.w,u=e.node(l).rank,c=t.name,d=e.edge(t),f=d.labelRank;if(u!==s+1){for(e.removeEdge(t),o=0,++s;s<u;++o,++s)d.points=[],r={width:0,height:0,edgeLabel:d,edgeObj:t,rank:s},n=i.addDummyNode(e,"edge",r,"_d"),s===f&&(r.width=d.width,r.height=d.height,r.dummy="edge-label",r.labelpos=d.labelpos),e.setEdge(a,n,{weight:d.weight},c),0===o&&e.graph().dummyChains.push(n),a=n;e.setEdge(a,l,{weight:d.weight},c)}}(e,t)})},undo:function(e){r.forEach(e.graph().dummyChains,function(t){var n,r=e.node(t),i=r.edgeLabel;for(e.setEdge(r.edgeObj,i);r.dummy;)n=e.successors(t)[0],e.removeNode(t),i.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height),t=n,r=e.node(t)})}}},89812:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},90009:(e,t,n)=>{var r=n(17551),i=1/0;e.exports=function(e){return e?(e=r(e))===i||e===-i?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},90155:(e,t,n)=>{var r=n(96921),i=n(86798),o=n(52889);e.exports=function(e){return e&&e.length?r(e,o,i):void 0}},90167:(e,t,n)=>{"use strict";n.d(t,{P:()=>r});let r=()=>(e,t)=>t.reduce((e,t)=>{let[n,r]=e;return void 0!==r[t]&&(n[t]=r[t]),delete r[t],[n,r]},[{},{...e}])},90254:(e,t,n)=>{var r=n(87159);e.exports=function(e){return function(t){return r(t,e)}}},90563:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},90599:(e,t,n)=>{var r=n(35724),i=n(90563);e.exports=function(e){return i(e)&&"[object Set]"==r(e)}},90637:(e,t,n)=>{"use strict";n.d(t,{I:()=>y});var r=n(54371),i=n(54908),o=n(68084),a=n(36621),s=n(96699),l=n(70465),u=class extends a.Q{constructor(e,t){super(),this.options=t,this.#f=e,this.#C=null,this.#O=(0,s.T)(),this.options.experimental_prefetchInRender||this.#O.reject(Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#f;#I=void 0;#_=void 0;#T=void 0;#P;#R;#O;#C;#A;#N;#M;#L;#V;#D;#F=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#I.addObserver(this),c(this.#I,this.options)?this.#j():this.updateResult(),this.#z())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return d(this.#I,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return d(this.#I,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#B(),this.#U(),this.#I.removeObserver(this)}setOptions(e){let t=this.options,n=this.#I;if(this.options=this.#f.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,l.Eh)(this.options.enabled,this.#I))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#W(),this.#I.setOptions(this.options),t._defaulted&&!(0,l.f8)(this.options,t)&&this.#f.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#I,observer:this});let r=this.hasListeners();r&&f(this.#I,n,this.options,t)&&this.#j(),this.updateResult(),r&&(this.#I!==n||(0,l.Eh)(this.options.enabled,this.#I)!==(0,l.Eh)(t.enabled,this.#I)||(0,l.d2)(this.options.staleTime,this.#I)!==(0,l.d2)(t.staleTime,this.#I))&&this.#H();let i=this.#q();r&&(this.#I!==n||(0,l.Eh)(this.options.enabled,this.#I)!==(0,l.Eh)(t.enabled,this.#I)||i!==this.#D)&&this.#$(i)}getOptimisticResult(e){var t,n;let r=this.#f.getQueryCache().build(this.#f,e),i=this.createResult(r,e);return t=this,n=i,(0,l.f8)(t.getCurrentResult(),n)||(this.#T=i,this.#R=this.options,this.#P=this.#I.state),i}getCurrentResult(){return this.#T}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),Reflect.get(e,n))})}trackProp(e){this.#F.add(e)}getCurrentQuery(){return this.#I}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#f.defaultQueryOptions(e),n=this.#f.getQueryCache().build(this.#f,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#j({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#T))}#j(e){this.#W();let t=this.#I.fetch(this.options,e);return e?.throwOnError||(t=t.catch(l.lQ)),t}#H(){this.#B();let e=(0,l.d2)(this.options.staleTime,this.#I);if(l.S$||this.#T.isStale||!(0,l.gn)(e))return;let t=(0,l.j3)(this.#T.dataUpdatedAt,e);this.#L=setTimeout(()=>{this.#T.isStale||this.updateResult()},t+1)}#q(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#I):this.options.refetchInterval)??!1}#$(e){this.#U(),this.#D=e,!l.S$&&!1!==(0,l.Eh)(this.options.enabled,this.#I)&&(0,l.gn)(this.#D)&&0!==this.#D&&(this.#V=setInterval(()=>{(this.options.refetchIntervalInBackground||r.m.isFocused())&&this.#j()},this.#D))}#z(){this.#H(),this.#$(this.#q())}#B(){this.#L&&(clearTimeout(this.#L),this.#L=void 0)}#U(){this.#V&&(clearInterval(this.#V),this.#V=void 0)}createResult(e,t){let n,r=this.#I,i=this.options,a=this.#T,u=this.#P,d=this.#R,p=e!==r?e.state:this.#_,{state:g}=e,v={...g},m=!1;if(t._optimisticResults){let n=this.hasListeners(),a=!n&&c(e,t),s=n&&f(e,r,t,i);(a||s)&&(v={...v,...(0,o.k)(g.data,e.options)}),"isRestoring"===t._optimisticResults&&(v.fetchStatus="idle")}let{error:b,errorUpdatedAt:y,status:x}=v;n=v.data;let w=!1;if(void 0!==t.placeholderData&&void 0===n&&"pending"===x){let e;a?.isPlaceholderData&&t.placeholderData===d?.placeholderData?(e=a.data,w=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#M?.state.data,this.#M):t.placeholderData,void 0!==e&&(x="success",n=(0,l.pl)(a?.data,e,t),m=!0)}if(t.select&&void 0!==n&&!w)if(a&&n===u?.data&&t.select===this.#A)n=this.#N;else try{this.#A=t.select,n=t.select(n),n=(0,l.pl)(a?.data,n,t),this.#N=n,this.#C=null}catch(e){this.#C=e}this.#C&&(b=this.#C,n=this.#N,y=Date.now(),x="error");let S="fetching"===v.fetchStatus,E="pending"===x,k="error"===x,C=E&&S,O=void 0!==n,I={status:x,fetchStatus:v.fetchStatus,isPending:E,isSuccess:"success"===x,isError:k,isInitialLoading:C,isLoading:C,data:n,dataUpdatedAt:v.dataUpdatedAt,error:b,errorUpdatedAt:y,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>p.dataUpdateCount||v.errorUpdateCount>p.errorUpdateCount,isFetching:S,isRefetching:S&&!E,isLoadingError:k&&!O,isPaused:"paused"===v.fetchStatus,isPlaceholderData:m,isRefetchError:k&&O,isStale:h(e,t),refetch:this.refetch,promise:this.#O,isEnabled:!1!==(0,l.Eh)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=e=>{"error"===I.status?e.reject(I.error):void 0!==I.data&&e.resolve(I.data)},n=()=>{t(this.#O=I.promise=(0,s.T)())},i=this.#O;switch(i.status){case"pending":e.queryHash===r.queryHash&&t(i);break;case"fulfilled":("error"===I.status||I.data!==i.value)&&n();break;case"rejected":("error"!==I.status||I.error!==i.reason)&&n()}}return I}updateResult(){let e=this.#T,t=this.createResult(this.#I,this.options);if(this.#P=this.#I.state,this.#R=this.options,void 0!==this.#P.data&&(this.#M=this.#I),(0,l.f8)(t,e))return;this.#T=t;let n=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n="function"==typeof t?t():t;if("all"===n||!n&&!this.#F.size)return!0;let r=new Set(n??this.#F);return this.options.throwOnError&&r.add("error"),Object.keys(this.#T).some(t=>this.#T[t]!==e[t]&&r.has(t))};this.#G({listeners:n()})}#W(){let e=this.#f.getQueryCache().build(this.#f,this.options);if(e===this.#I)return;let t=this.#I;this.#I=e,this.#_=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#z()}#G(e){i.jG.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#T)}),this.#f.getQueryCache().notify({query:this.#I,type:"observerResultsUpdated"})})}};function c(e,t){return!1!==(0,l.Eh)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==t.retryOnMount)||void 0!==e.state.data&&d(e,t,t.refetchOnMount)}function d(e,t,n){if(!1!==(0,l.Eh)(t.enabled,e)&&"static"!==(0,l.d2)(t.staleTime,e)){let r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&h(e,t)}return!1}function f(e,t,n,r){return(e!==t||!1===(0,l.Eh)(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&h(e,n)}function h(e,t){return!1!==(0,l.Eh)(t.enabled,e)&&e.isStaleByTime((0,l.d2)(t.staleTime,e))}var p=n(80905),g=n(29861);n(9597);var v=p.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),m=p.createContext(!1);m.Provider;var b=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function y(e,t){return function(e,t,n){var r,o,a,s,u;let c=p.useContext(m),d=p.useContext(v),f=(0,g.jE)(n),h=f.defaultQueryOptions(e);if(null==(o=f.getDefaultOptions().queries)||null==(r=o._experimental_beforeQuery)||r.call(o,h),h._optimisticResults=c?"isRestoring":"optimistic",h.suspense){let e=e=>"static"===e?e:Math.max(e??1e3,1e3),t=h.staleTime;h.staleTime="function"==typeof t?(...n)=>e(t(...n)):e(t),"number"==typeof h.gcTime&&(h.gcTime=Math.max(h.gcTime,1e3))}(h.suspense||h.throwOnError||h.experimental_prefetchInRender)&&!d.isReset()&&(h.retryOnMount=!1),p.useEffect(()=>{d.clearReset()},[d]);let y=!f.getQueryCache().get(h.queryHash),[x]=p.useState(()=>new t(f,h)),w=x.getOptimisticResult(h),S=!c&&!1!==e.subscribed;if(p.useSyncExternalStore(p.useCallback(e=>{let t=S?x.subscribe(i.jG.batchCalls(e)):l.lQ;return x.updateResult(),t},[x,S]),()=>x.getCurrentResult(),()=>x.getCurrentResult()),p.useEffect(()=>{x.setOptions(h)},[h,x]),h?.suspense&&w.isPending)throw b(h,x,d);if((e=>{let{result:t,errorResetBoundary:n,throwOnError:r,query:i,suspense:o}=e;return t.isError&&!n.isReset()&&!t.isFetching&&i&&(o&&void 0===t.data||(0,l.GU)(r,[t.error,i]))})({result:w,errorResetBoundary:d,throwOnError:h.throwOnError,query:f.getQueryCache().get(h.queryHash),suspense:h.suspense}))throw w.error;if(null==(s=f.getDefaultOptions().queries)||null==(a=s._experimental_afterQuery)||a.call(s,h,w),h.experimental_prefetchInRender&&!l.S$&&w.isLoading&&w.isFetching&&!c){let e=y?b(h,x,d):null==(u=f.getQueryCache().get(h.queryHash))?void 0:u.promise;null==e||e.catch(l.lQ).finally(()=>{x.updateResult()})}return h.notifyOnChangeProps?w:x.trackResult(w)}(e,u,t)}},91078:(e,t,n)=>{"use strict";n.d(t,{zh:()=>es,jE:()=>ef});var r=n(80905),i=n(28636);let o=function(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(n=0;n<o;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r);return i}(e))&&(r&&(r+=" "),r+=t);return r};var a=n(9597);function s(e,t,n){let r="function"==typeof e.colSpan?e.colSpan(n):1;if(Number.isInteger(r)&&r>1&&(!e.frozen||e.idx+r-1<=t))return r}function l(e){e.stopPropagation()}function u(e,t="instant"){e?.scrollIntoView({inline:"nearest",block:"nearest",behavior:t})}function c(e){let t=!1,n={...e,preventGridDefault(){t=!0},isGridDefaultPrevented:()=>t};return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),n}let d=new Set(["Unidentified","Alt","AltGraph","CapsLock","Control","Fn","FnLock","Meta","NumLock","ScrollLock","Shift","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Insert","ContextMenu","Escape","Pause","Play","PrintScreen","F1","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"]);function f(e){return(e.ctrlKey||e.metaKey)&&"Control"!==e.key}function h(e){let t="rtl"===e;return{leftKey:t?"ArrowRight":"ArrowLeft",rightKey:t?"ArrowLeft":"ArrowRight"}}function p(e,t){return null!=e.renderEditCell&&("function"==typeof e.editable?e.editable(t):e.editable)!==!1}let g="rdg-cell cj343x07-0-0-beta-57";function v(e){return{"--rdg-grid-row-start":e}}function m(e,t,n){let r=t+1,i=`calc(${n-1} * var(--rdg-header-row-height))`;return void 0===e.parent?{insetBlockStart:0,gridRowStart:1,gridRowEnd:r,paddingBlockStart:i}:{insetBlockStart:`calc(${t-n} * var(--rdg-header-row-height))`,gridRowStart:r-n,gridRowEnd:r,paddingBlockStart:i}}function b(e,t=1){let n=e.idx+1;return{gridColumnStart:n,gridColumnEnd:n+t,insetInlineStart:e.frozen?`var(--rdg-frozen-left-${e.idx})`:void 0}}function y(e,...t){return o(g,{"rdg-cell-frozen csofj7r7-0-0-beta-57":e.frozen},...t)}let{min:x,max:w,floor:S,sign:E,abs:k}=Math;function C(e){if("function"!=typeof e)throw Error("Please specify the rowKeyGetter prop to use selection")}function O(e,{minWidth:t,maxWidth:n}){return(e=w(e,t),"number"==typeof n&&n>=t)?x(e,n):e}function I(e,t){return void 0===e.parent?t:e.level-e.parent.level}function _({onChange:e,indeterminate:t,...n}){return(0,a.jsx)("input",{ref:e=>{e&&(e.indeterminate=!0===t)},type:"checkbox",className:"rdg-checkbox-input c1bn88vv7-0-0-beta-57",onChange:function(t){e(t.target.checked,t.nativeEvent.shiftKey)},...n})}function T(e){try{return e.row[e.column.key]}catch{return null}}let P=(0,r.createContext)(void 0);function R(){return(0,r.useContext)(P)}let A=(0,r.createContext)(void 0),N=(0,r.createContext)(void 0),M=(0,r.createContext)(void 0),L=(0,r.createContext)(void 0),V="rdg-select-column";function D({column:e,sortDirection:t,priority:n}){return e.sortable?(0,a.jsx)(F,{sortDirection:t,priority:n,children:e.name}):e.name}function F({sortDirection:e,priority:t,children:n}){let r=R().renderSortStatus;return(0,a.jsxs)("span",{className:"h44jtk67-0-0-beta-57",children:[(0,a.jsx)("span",{className:"rdg-header-sort-name hcgkhxz7-0-0-beta-57",children:n}),(0,a.jsx)("span",{children:r({sortDirection:e,priority:t})})]})}function j(e,t){let n=`[data-measuring-cell-key="${CSS.escape(t)}"]`,r=e.current?.querySelector(n);return r?.getBoundingClientRect().width}function z(e){let t=(0,r.useRef)(e);(0,r.useLayoutEffect)(()=>{t.current=e});let n=(0,r.useCallback)((...e)=>{t.current(...e)},[]);return e?n:e}function B(e){let[t,n]=(0,r.useState)(!1);return t&&!e&&n(!1),{tabIndex:e&&!t?0:-1,childTabIndex:e?0:-1,onFocus:e?function(e){if(e.target===e.currentTarget){let t=e.currentTarget.querySelector('[tabindex="0"]');null!==t?(t.focus({preventScroll:!0}),n(!0)):n(!1)}else n(!0)}:void 0}}let U=(0,r.memo)(function({column:e,colSpan:t,isCellSelected:n,isDraggedOver:r,row:i,rowIdx:o,className:s,onMouseDown:l,onCellMouseDown:u,onClick:d,onCellClick:f,onDoubleClick:h,onCellDoubleClick:g,onContextMenu:v,onCellContextMenu:m,onRowChange:x,selectCell:w,style:S,...E}){let{tabIndex:k,childTabIndex:C,onFocus:O}=B(n),{cellClass:I}=e;s=y(e,{"rdg-cell-dragged-over c6ra8a37-0-0-beta-57":r},"function"==typeof I?I(i):I,s);let _=p(e,i);function T(t){w({rowIdx:o,idx:e.idx},{enableEditor:t})}function P(t,n){let r=!1;if(n){let a=c(t);n({rowIdx:o,row:i,column:e,selectCell:T},a),r=a.isGridDefaultPrevented()}return r}return(0,a.jsx)("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":n,"aria-readonly":!_||void 0,tabIndex:k,className:s,style:{...b(e,t),...S},onClick:function(e){d?.(e),P(e,f)},onMouseDown:function(e){l?.(e),P(e,u)||T()},onDoubleClick:function(e){h?.(e),P(e,g)||T(!0)},onContextMenu:function(e){v?.(e),P(e,m)},onFocus:O,...E,children:e.renderCell({column:e,row:i,rowIdx:o,isCellEditable:_,tabIndex:C,onRowChange:function(t){x(e,t)}})})});function W(e,t){return(0,a.jsx)(U,{...t},e)}let H="object"==typeof scheduler&&"function"==typeof scheduler.postTask;function q({column:e,colSpan:t,row:n,rowIdx:i,onRowChange:o,closeEditor:s,onKeyDown:l,navigate:u}){let d=(0,r.useRef)(void 0),f=(0,r.useRef)(void 0),h=(0,r.useRef)(void 0),p=e.editorOptions?.commitOnOutsideClick??!0,g=z(()=>{m(!0,!1)});function v(){d.current=void 0,void 0!==f.current&&(f.current.abort(),f.current=void 0),void 0!==h.current&&(cancelAnimationFrame(h.current),h.current=void 0)}function m(e=!1,t=!0){e?o(n,!0,t):s(t)}function x(e,t=!1){o(e,t,t)}(0,r.useLayoutEffect)(()=>{if(p)return addEventListener("mousedown",e,{capture:!0}),addEventListener("mousedown",t),()=>{removeEventListener("mousedown",e,{capture:!0}),removeEventListener("mousedown",t),v()};function e(e){if(d.current=e,H){let e=new AbortController,{signal:t}=e;f.current=e,scheduler.postTask(g,{priority:"user-blocking",signal:t}).catch(()=>{})}else h.current=requestAnimationFrame(g)}function t(e){d.current===e&&g()}},[p,g]);let{cellClass:w}=e,S=y(e,"rdg-editor-container",!e.editorOptions?.displayCellContent&&"cis5rrm7-0-0-beta-57","function"==typeof w?w(n):w);return(0,a.jsx)("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":!0,className:S,style:b(e,t),onKeyDown:function(t){if(l){let r=c(t);if(l({mode:"EDIT",row:n,column:e,rowIdx:i,navigate(){u(t)},onClose:m},r),r.isGridDefaultPrevented())return}"Escape"===t.key?m():"Enter"===t.key?m(!0):function({key:e,target:t}){return!!("Tab"===e&&(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement))&&t.closest(".rdg-editor-container")?.querySelectorAll("input, textarea, select").length===1}(t)&&u(t)},onMouseDownCapture:v,children:null!=e.renderEditCell&&(0,a.jsxs)(a.Fragment,{children:[e.renderEditCell({column:e,row:n,rowIdx:i,onRowChange:x,onClose:m}),e.editorOptions?.displayCellContent&&e.renderCell({column:e,row:n,rowIdx:i,isCellEditable:!0,tabIndex:-1,onRowChange:x})]})})}function $({column:e,rowIdx:t,isCellSelected:n,selectCell:r}){let{tabIndex:i,onFocus:s}=B(n),{colSpan:l}=e,u=I(e,t),c=e.idx+1;return(0,a.jsx)("div",{role:"columnheader","aria-colindex":c,"aria-colspan":l,"aria-rowspan":u,"aria-selected":n,tabIndex:i,className:o(g,e.headerCellClass),style:{...m(e,t,u),gridColumnStart:c,gridColumnEnd:c+l},onFocus:s,onMouseDown:function(){r({idx:e.idx,rowIdx:t})},children:e.name})}function G({column:e,colSpan:t,rowIdx:n,isCellSelected:o,onColumnResize:s,onColumnResizeEnd:l,onColumnsReorder:u,sortColumns:c,onSortColumnsChange:d,selectCell:p,shouldFocusGrid:g,direction:v,draggedColumnKey:x,setDraggedColumnKey:w}){let S,E,[k,C]=(0,r.useState)(!1),_=(0,r.useRef)(null),T=x===e.key,P=I(e,n),{tabIndex:R,childTabIndex:A,onFocus:N}=B(g||o),M=c?.findIndex(t=>t.columnKey===e.key),L=void 0!==M&&M>-1?c[M]:void 0,V=L?.direction,D=void 0!==L&&c.length>1?M+1:void 0,F=V&&!D?"ASC"===V?"ascending":"descending":void 0,{sortable:j,resizable:z,draggable:U}=e,W=y(e,e.headerCellClass,{"c6l2wv17-0-0-beta-57":j,"rdg-cell-resizable c1kqdw7y7-0-0-beta-57":z,"rdg-cell-draggable":U,"rdg-cell-dragging c1bezg5o7-0-0-beta-57":T,"rdg-cell-drag-over c1vc96037-0-0-beta-57":k});function H(t){if(null==d)return;let{sortDescendingFirst:n}=e;if(void 0===L){let r={columnKey:e.key,direction:n?"DESC":"ASC"};d(c&&t?[...c,r]:[r])}else{let r;if((!0===n&&"DESC"===V||!0!==n&&"ASC"===V)&&(r={columnKey:e.key,direction:"ASC"===V?"DESC":"ASC"}),t){let e=[...c];r?e[M]=r:e.splice(M,1),d(e)}else d(r?[r]:[])}}U&&(S={draggable:!0,onDragStart:function(t){(0,i.flushSync)(()=>{w(e.key)}),t.dataTransfer.setDragImage(_.current,0,0),t.dataTransfer.dropEffect="move"},onDragEnd:function(){w(void 0)}},void 0!==x&&x!==e.key&&(E={onDragOver:function(e){e.preventDefault(),e.dataTransfer.dropEffect="move"},onDragEnter:function(e){Y(e)&&C(!0)},onDragLeave:function(e){Y(e)&&C(!1)},onDrop:function(t){C(!1),t.preventDefault(),u?.(x,e.key)}}));let q={...m(e,n,P),...b(e,t)},$=e.renderHeaderCell({column:e,sortDirection:V,priority:D,tabIndex:A});return(0,a.jsxs)(a.Fragment,{children:[T&&(0,a.jsx)("div",{ref:_,style:q,className:y(e,e.headerCellClass,"d8rwc9w7-0-0-beta-57"),children:$}),(0,a.jsxs)("div",{role:"columnheader","aria-colindex":e.idx+1,"aria-colspan":t,"aria-rowspan":P,"aria-selected":o,"aria-sort":F,tabIndex:R,className:W,style:q,onMouseDown:function(){p({idx:e.idx,rowIdx:n})},onFocus:function(e){N?.(e),g&&p({idx:0,rowIdx:n})},onClick:function(e){j&&H(e.ctrlKey||e.metaKey)},onKeyDown:function(t){let{key:n}=t;if(j&&(" "===n||"Enter"===n))t.preventDefault(),H(t.ctrlKey||t.metaKey);else if(z&&f(t)&&("ArrowLeft"===n||"ArrowRight"===n)){t.stopPropagation();let{width:r}=t.currentTarget.getBoundingClientRect(),{leftKey:i}=h(v),o=O(r+(n===i?-10:10),e);o!==r&&s(e,o)}},...S,...E,children:[$,z&&(0,a.jsx)(K,{direction:v,column:e,onColumnResize:s,onColumnResizeEnd:l})]})]})}function K({direction:e,column:t,onColumnResize:n,onColumnResizeEnd:i}){let o=(0,r.useRef)(void 0),s="rtl"===e;return(0,a.jsx)("div",{className:"r1y6ywlx7-0-0-beta-57",onClick:l,onPointerDown:function(e){if("mouse"===e.pointerType&&1!==e.buttons)return;e.preventDefault();let{currentTarget:t,pointerId:n}=e;t.setPointerCapture(n);let{right:r,left:i}=t.parentElement.getBoundingClientRect();o.current=s?e.clientX-i:r-e.clientX},onPointerMove:function(e){let r=o.current;if(void 0===r)return;let{width:i,right:a,left:l}=e.currentTarget.parentElement.getBoundingClientRect(),u=s?a+r-e.clientX:e.clientX+r-l;u=O(u,t),i>0&&u!==i&&n(t,u)},onLostPointerCapture:function(){i(),o.current=void 0},onDoubleClick:function(){n(t,"max-content")}})}function Y(e){let t=e.relatedTarget;return!e.currentTarget.contains(t)}let X="rdg-row r1upfr807-0-0-beta-57",Q="rdg-row-selected",J="rdg-header-row h10tskcx7-0-0-beta-57";var Z=(0,r.memo)(function({headerRowClass:e,rowIdx:t,columns:n,onColumnResize:i,onColumnResizeEnd:l,onColumnsReorder:u,sortColumns:c,onSortColumnsChange:d,lastFrozenColumnIndex:f,selectedCellIdx:h,selectCell:p,shouldFocusGrid:g,direction:v}){let[m,b]=(0,r.useState)(),y=[];for(let e=0;e<n.length;e++){let r=n[e],o=s(r,f,{type:"HEADER"});void 0!==o&&(e+=o-1),y.push((0,a.jsx)(G,{column:r,colSpan:o,rowIdx:t,isCellSelected:h===r.idx,onColumnResize:i,onColumnResizeEnd:l,onColumnsReorder:u,onSortColumnsChange:d,sortColumns:c,selectCell:p,shouldFocusGrid:g&&0===e,direction:v,draggedColumnKey:m,setDraggedColumnKey:b},r.key))}return(0,a.jsx)("div",{role:"row","aria-rowindex":t,className:o(J,{[Q]:-1===h},e),children:y})}),ee=(0,r.memo)(function({rowIdx:e,level:t,columns:n,selectedCellIdx:r,selectCell:i}){let o=[],s=new Set;for(let l of n){let{parent:n}=l;if(void 0!==n){for(;n.level>t&&void 0!==n.parent;)n=n.parent;if(n.level===t&&!s.has(n)){s.add(n);let{idx:t}=n;o.push((0,a.jsx)($,{column:n,rowIdx:e,isCellSelected:r===t,selectCell:i},t))}}}return(0,a.jsx)("div",{role:"row","aria-rowindex":e,className:J,children:o})});let et=(0,r.memo)(function({className:e,rowIdx:t,gridRowStart:n,selectedCellIdx:i,isRowSelectionDisabled:l,isRowSelected:u,draggedOverCellIdx:c,lastFrozenColumnIndex:d,row:f,viewportColumns:h,selectedCellEditor:p,onCellMouseDown:g,onCellClick:m,onCellDoubleClick:b,onCellContextMenu:y,rowClass:x,onRowChange:w,selectCell:S,style:E,...k}){let C=R().renderCell,O=z((e,n)=>{w(e,t,n)});e=o(X,`rdg-row-${t%2==0?"even":"odd"}`,{[Q]:-1===i},x?.(f,t),e);let I=[];for(let e=0;e<h.length;e++){let n=h[e],{idx:r}=n,o=s(n,d,{type:"ROW",row:f});void 0!==o&&(e+=o-1);let a=i===r;a&&p?I.push(p):I.push(C(n.key,{column:n,colSpan:o,row:f,rowIdx:t,isDraggedOver:c===r,isCellSelected:a,onCellMouseDown:g,onCellClick:m,onCellDoubleClick:b,onCellContextMenu:y,onRowChange:O,selectCell:S}))}let _=(0,r.useMemo)(()=>({isRowSelected:u,isRowSelectionDisabled:l}),[l,u]);return(0,a.jsx)(A,{value:_,children:(0,a.jsx)("div",{role:"row",className:e,style:{...v(n),...E},...k,children:I})})});function en(e,t){return(0,a.jsx)(et,{...t},e)}function er({scrollToPosition:{idx:e,rowIdx:t},gridRef:n,setScrollToCellPosition:i}){let o=(0,r.useRef)(null);return(0,r.useLayoutEffect)(()=>{u(o.current,"auto")}),(0,r.useLayoutEffect)(()=>{let e=new IntersectionObserver(function(){i(null)},{root:n.current,threshold:1});return e.observe(o.current),()=>{e.disconnect()}},[n,i]),(0,a.jsx)("div",{ref:o,style:{gridColumn:void 0===e?"1/-1":e+1,gridRow:void 0===t?"1/-1":t+2}})}function ei({sortDirection:e,priority:t}){return(0,a.jsxs)(a.Fragment,{children:[function({sortDirection:e}){return void 0===e?null:(0,a.jsx)("svg",{viewBox:"0 0 12 8",width:"12",height:"8",className:"rdg-sort-arrow a3ejtar7-0-0-beta-57","aria-hidden":!0,children:(0,a.jsx)("path",{d:"ASC"===e?"M0 8 6 0 12 8":"M0 0 6 8 12 0"})})}({sortDirection:e}),function({priority:e}){return e}({priority:t})]})}var eo=(0,r.memo)(function({column:e,colSpan:t,row:n,rowIdx:r,isCellSelected:i,selectCell:o}){let{tabIndex:s,childTabIndex:l,onFocus:u}=B(i),{summaryCellClass:c}=e,d=y(e,"s8wc6fl7-0-0-beta-57","function"==typeof c?c(n):c);return(0,a.jsx)("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":i,tabIndex:s,className:d,style:b(e,t),onMouseDown:function(){o({rowIdx:r,idx:e.idx})},onFocus:u,children:e.renderSummaryCell?.({column:e,row:n,tabIndex:l})})}),ea=(0,r.memo)(function({rowIdx:e,gridRowStart:t,row:n,viewportColumns:r,top:i,bottom:l,lastFrozenColumnIndex:u,selectedCellIdx:c,isTop:d,selectCell:f,"aria-rowindex":h}){let p=[];for(let t=0;t<r.length;t++){let i=r[t],o=s(i,u,{type:"SUMMARY",row:n});void 0!==o&&(t+=o-1);let l=c===i.idx;p.push((0,a.jsx)(eo,{column:i,colSpan:o,row:n,rowIdx:e,isCellSelected:l,selectCell:f},i.key))}return(0,a.jsx)("div",{role:"row","aria-rowindex":h,className:o(X,`rdg-row-${e%2==0?"even":"odd"}`,"rdg-summary-row skuhp557-0-0-beta-57",{[Q]:-1===c,"rdg-top-summary-row tf8l5ub7-0-0-beta-57":d,"rdg-bottom-summary-row":!d}),style:{...v(t),"--rdg-summary-row-top":void 0!==i?`${i}px`:void 0,"--rdg-summary-row-bottom":void 0!==l?`${l}px`:void 0},children:p})});function es(e){let{ref:t,columns:n,rows:l,topSummaryRows:g,bottomSummaryRows:v,rowKeyGetter:m,onRowsChange:y,rowHeight:I,headerRowHeight:A,summaryRowHeight:F,columnWidths:B,onColumnWidthsChange:U,selectedRows:H,isRowSelectionDisabled:$,onSelectedRowsChange:G,sortColumns:K,onSortColumnsChange:Y,defaultColumnOptions:X,onCellMouseDown:Q,onCellClick:J,onCellDoubleClick:et,onCellContextMenu:eo,onCellKeyDown:es,onSelectedCellChange:ec,onScroll:ed,onColumnResize:ef,onColumnsReorder:eh,onFill:ep,onCellCopy:eg,onCellPaste:ev,enableVirtualization:em,renderers:eb,className:ey,style:ex,rowClass:ew,headerRowClass:eS,direction:eE,role:ek,"aria-label":eC,"aria-labelledby":eO,"aria-description":eI,"aria-describedby":e_,"aria-rowcount":eT,"data-testid":eP,"data-cy":eR}=e,eA=R(),eN=ek??"grid",eM=I??35,eL=A??("number"==typeof eM?eM:35),eV=F??("number"==typeof eM?eM:35),eD=eb?.renderRow??eA?.renderRow??en,eF=eb?.renderCell??eA?.renderCell??W,ej=eb?.renderSortStatus??eA?.renderSortStatus??ei,ez=eb?.renderCheckbox??eA?.renderCheckbox??_,eB=eb?.noRowsFallback??eA?.noRowsFallback,eU=em??!0,eW=eE??"ltr",[eH,eq]=(0,r.useState)(0),[e$,eG]=(0,r.useState)(0),[eK,eY]=(0,r.useState)(()=>B??new Map),[eX,eQ]=(0,r.useState)(!1),[eJ,eZ]=(0,r.useState)(!1),[e0,e1]=(0,r.useState)(void 0),[e2,e5]=(0,r.useState)(null),[e3,e4]=(0,r.useState)(!1),[e6,e8]=(0,r.useState)(-1),e7=null!=B&&null!=U&&!eX,e9=e7?B:eK,te=e7?e=>{eY(e),U(e)}:eY,tt=(0,r.useCallback)(e=>e9.get(e.key)?.width??e.width,[e9]),[tn,tr,ti,to]=function(){let e=(0,r.useRef)(null),[t,n]=(0,r.useState)(1),[o,a]=(0,r.useState)(1),[s,l]=(0,r.useState)(0);return(0,r.useLayoutEffect)(()=>{let{ResizeObserver:t}=window;if(null==t)return;let{clientWidth:r,clientHeight:o,offsetWidth:s,offsetHeight:u}=e.current,{width:c,height:d}=e.current.getBoundingClientRect(),f=u-o;n(c-s+r),a(d-f),l(f);let h=new t(t=>{let r=t[0].contentBoxSize[0],{clientHeight:o,offsetHeight:s}=e.current;(0,i.flushSync)(()=>{n(r.inlineSize),a(r.blockSize),l(s-o)})});return h.observe(e.current),()=>{h.disconnect()}},[]),[e,t,o,s]}(),{columns:ta,colSpanColumns:ts,lastFrozenColumnIndex:tl,headerRowsCount:tu,colOverscanStartIdx:tc,colOverscanEndIdx:td,templateColumns:tf,layoutCssVars:th,totalFrozenColumnWidth:tp}=function({rawColumns:e,defaultColumnOptions:t,getColumnWidth:n,viewportWidth:i,scrollLeft:o,enableVirtualization:a}){let s=t?.width??"auto",l=t?.minWidth??50,u=t?.maxWidth??void 0,c=t?.renderCell??T,d=t?.renderHeaderCell??D,f=t?.sortable??!1,h=t?.resizable??!1,p=t?.draggable??!1,{columns:g,colSpanColumns:v,lastFrozenColumnIndex:m,headerRowsCount:b}=(0,r.useMemo)(()=>{let t=-1,n=1,r=[];!function e(i,o,a){for(let g of i){if("children"in g){let t={name:g.name,parent:a,idx:-1,colSpan:0,level:0,headerCellClass:g.headerCellClass};e(g.children,o+1,t);continue}let i=g.frozen??!1,v={...g,parent:a,idx:0,level:0,frozen:i,width:g.width??s,minWidth:g.minWidth??l,maxWidth:g.maxWidth??u,sortable:g.sortable??f,resizable:g.resizable??h,draggable:g.draggable??p,renderCell:g.renderCell??c,renderHeaderCell:g.renderHeaderCell??d};r.push(v),i&&t++,o>n&&(n=o)}}(e,1),r.sort(({key:e,frozen:t},{key:n,frozen:r})=>e===V?-1:n===V?1:t?r?0:-1:+!!r);let i=[];return r.forEach((e,t)=>{e.idx=t,function e(t,n,r){if(r<t.level&&(t.level=r),void 0!==t.parent){let{parent:i}=t;-1===i.idx&&(i.idx=n),i.colSpan+=1,e(i,n,r-1)}}(e,t,0),null!=e.colSpan&&i.push(e)}),{columns:r,colSpanColumns:i,lastFrozenColumnIndex:t,headerRowsCount:n}},[e,s,l,u,c,d,h,f,p]),{templateColumns:y,layoutCssVars:S,totalFrozenColumnWidth:E,columnMetrics:k}=(0,r.useMemo)(()=>{let e=new Map,t=0,r=0,i=[];for(let r of g){let o=n(r);o="number"==typeof o?O(o,r):r.minWidth,i.push(`${o}px`),e.set(r,{width:o,left:t}),t+=o}if(-1!==m){let t=e.get(g[m]);r=t.left+t.width}let o={};for(let t=0;t<=m;t++){let n=g[t];o[`--rdg-frozen-left-${n.idx}`]=`${e.get(n).left}px`}return{templateColumns:i,layoutCssVars:o,totalFrozenColumnWidth:r,columnMetrics:e}},[n,g,m]),[C,I]=(0,r.useMemo)(()=>{if(!a)return[0,g.length-1];let e=o+E,t=o+i,n=g.length-1,r=x(m+1,n);if(e>=t)return[r,r];let s=r;for(;s<n;){let{left:t,width:n}=k.get(g[s]);if(t+n>e)break;s++}let l=s;for(;l<n;){let{left:e,width:n}=k.get(g[l]);if(e+n>=t)break;l++}return[w(r,s-1),x(n,l+1)]},[k,g,m,o,E,i,a]);return{columns:g,colSpanColumns:v,colOverscanStartIdx:C,colOverscanEndIdx:I,templateColumns:y,layoutCssVars:S,headerRowsCount:b,lastFrozenColumnIndex:m,totalFrozenColumnWidth:E}}({rawColumns:n,defaultColumnOptions:X,getColumnWidth:tt,scrollLeft:e$,viewportWidth:tr,enableVirtualization:eU}),tg=g?.length??0,tv=v?.length??0,tm=tg+tv,tb=tu+tg,ty=tu-1,tx=-tb,tw=tx+ty,tS=l.length+tv-1,[tE,tk]=(0,r.useState)(()=>({idx:-1,rowIdx:tx-1,mode:"SELECT"})),tC=(0,r.useRef)(null),tO="treegrid"===eN,tI=tu*eL,t_=tm*eV,tT=ti-tI-t_,tP=null!=H&&null!=G,{leftKey:tR,rightKey:tA}=h(eW),tN=eT??tu+l.length+tm,tM=(0,r.useMemo)(()=>({renderCheckbox:ez,renderSortStatus:ej,renderCell:eF}),[ez,ej,eF]),tL=(0,r.useMemo)(()=>{let e=!1,t=!1;if(null!=m&&null!=H&&H.size>0){for(let n of l)if(H.has(m(n))?e=!0:t=!0,e&&t)break}return{isRowSelected:e&&!t,isIndeterminate:e&&t}},[l,H,m]),{rowOverscanStartIdx:tV,rowOverscanEndIdx:tD,totalRowHeight:tF,gridTemplateRows:tj,getRowTop:tz,getRowHeight:tB,findRowIdx:tU}=function({rows:e,rowHeight:t,clientHeight:n,scrollTop:i,enableVirtualization:o}){let{totalRowHeight:a,gridTemplateRows:s,getRowTop:l,getRowHeight:u,findRowIdx:c}=(0,r.useMemo)(()=>{if("number"==typeof t)return{totalRowHeight:t*e.length,gridTemplateRows:` repeat(${e.length}, ${t}px)`,getRowTop:e=>e*t,getRowHeight:()=>t,findRowIdx:e=>S(e/t)};let n=0,r=" ",i=e.map(e=>{let i=t(e),o={top:n,height:i};return r+=`${i}px `,n+=i,o}),o=t=>w(0,x(e.length-1,t));return{totalRowHeight:n,gridTemplateRows:r,getRowTop:e=>i[o(e)].top,getRowHeight:e=>i[o(e)].height,findRowIdx(e){let t=0,n=i.length-1;for(;t<=n;){let r=t+S((n-t)/2),o=i[r].top;if(o===e)return r;if(o<e?t=r+1:o>e&&(n=r-1),t>n)return n}return 0}}},[t,e]),d=0,f=e.length-1;if(o){let t=c(i),r=c(i+n);d=w(0,t-4),f=x(e.length-1,r+4)}return{rowOverscanStartIdx:d,rowOverscanEndIdx:f,totalRowHeight:a,gridTemplateRows:s,getRowTop:l,getRowHeight:u,findRowIdx:c}}({rows:l,rowHeight:eM,clientHeight:tT,scrollTop:eH,enableVirtualization:eU}),tW=function({columns:e,colSpanColumns:t,rows:n,topSummaryRows:i,bottomSummaryRows:o,colOverscanStartIdx:a,colOverscanEndIdx:l,lastFrozenColumnIndex:u,rowOverscanStartIdx:c,rowOverscanEndIdx:d}){let f=(0,r.useMemo)(()=>{if(0===a)return 0;let e=a,r=(t,n)=>void 0!==n&&t+n>a&&(e=t,!0);for(let a of t){let t=a.idx;if(t>=e||r(t,s(a,u,{type:"HEADER"})))break;for(let e=c;e<=d&&!r(t,s(a,u,{type:"ROW",row:n[e]}));e++);if(null!=i){for(let e of i)if(r(t,s(a,u,{type:"SUMMARY",row:e})))break}if(null!=o){for(let e of o)if(r(t,s(a,u,{type:"SUMMARY",row:e})))break}}return e},[c,d,n,i,o,a,u,t]);return(0,r.useMemo)(()=>{let t=[];for(let n=0;n<=l;n++){let r=e[n];(!(n<f)||r.frozen)&&t.push(r)}return t},[f,l,e])}({columns:ta,colSpanColumns:ts,colOverscanStartIdx:tc,colOverscanEndIdx:td,lastFrozenColumnIndex:tl,rowOverscanStartIdx:tV,rowOverscanEndIdx:tD,rows:l,topSummaryRows:g,bottomSummaryRows:v}),{gridTemplateColumns:tH,handleColumnResize:tq}=function(e,t,n,o,a,s,l,u,c){let[d,f]=(0,r.useState)(null),[h,p]=(0,r.useState)(null),[g,v]=(0,r.useState)(a),m=e.length===t.length,b=m&&a!==g,y=[...n],x=[];for(let{key:e,idx:n,width:r}of t){let t=s.get(e);e===d?.key?(y[n]="max-content"===d.width?d.width:`${d.width}px`,x.push(e)):"string"==typeof r&&t?.type!=="resized"&&(b||h?.has(e)===!0||void 0===t)&&(y[n]=r,x.push(e))}let w=y.join(" ");return(0,r.useLayoutEffect)(function(){if(v(a),0===x.length)return;let e=new Map(s),t=!1;for(let n of x){let r=j(o,n);t||=r!==s.get(n)?.width,void 0===r?e.delete(n):e.set(n,{type:"measured",width:r})}if(null!==d){let n=d.key,r=s.get(n)?.width,i=j(o,n);void 0!==i&&r!==i&&(t=!0,e.set(n,{type:"resized",width:i})),f(null)}t&&l(e)}),{gridTemplateColumns:w,handleColumnResize:function(e,n){let{key:r}=e;if((0,i.flushSync)(()=>{if(m){let e=new Set;for(let{key:n,width:i}of t)r!==n&&"string"==typeof i&&s.get(n)?.type!=="resized"&&e.add(n);p(e)}f({key:r,width:n}),c("number"==typeof n)}),p(null),u){let t=s.get(r)?.width,i="number"==typeof n?n:j(o,r);void 0!==i&&i!==t&&u(e,i)}}}}(ta,tW,tf,tn,tr,e9,te,ef,eQ),t$=tO?-1:0,tG=ta.length-1,tK=nd(tE),tY=nf(tE),tX=eL+tF+t_+to,tQ=z(tq),tJ=z(function(){eX&&(U?.(e9),eQ(!1))}),tZ=z(eh),t0=z(Y),t1=z(Q),t2=z(J),t5=z(et),t3=z(eo),t4=z(function(e){if(!G)return;C(m);let t=new Set(H);for(let n of l){if($?.(n)===!0)continue;let r=m(n);e.checked?t.add(r):t.delete(r)}G(t)}),t6=z(nt),t8=z(nn),t7=z(np),t9=z(function({idx:e,rowIdx:t}){np({rowIdx:tx+t-1,idx:e})}),ne=(0,r.useCallback)((e=!0)=>{let t=el(tn.current);null!==t&&(e&&u(t),t.focus({preventScroll:!0}))},[tn]);function nt(e){if(!G)return;C(m);let{row:t,checked:n,isShiftClick:r}=e;if($?.(t)===!0)return;let i=new Set(H),o=m(t),a=l.indexOf(t);if(e8(a),n?i.add(o):i.delete(o),r&&-1!==e6&&e6!==a&&e6<l.length){let e=E(a-e6);for(let t=e6+e;t!==a;t+=e){let e=l[t];$?.(e)!==!0&&(n?i.add(m(e)):i.delete(m(e)))}}G(i)}function nn(e,t,n){"function"==typeof y&&n!==l[t]&&y(l.with(t,n),{indexes:[t],column:e})}function nr(){"EDIT"===tE.mode&&nn(ta[tE.idx],tE.rowIdx,tE.row)}function ni(e){e.preventDefault(),("mouse"!==e.pointerType||1===e.buttons)&&(eZ(!0),e.currentTarget.setPointerCapture(e.pointerId))}function no(e){let t=tn.current,n=tU(eH-(tI+tg*eV)+e.clientY-t.getBoundingClientRect().top);e1(n),u(t.querySelector(`:scope > [aria-rowindex="${tb+n+1}"] > [aria-colindex="${tE.idx+1}"]`))}function na(){if(eZ(!1),void 0===e0)return;let{rowIdx:e}=tE,[t,n]=e<e0?[e+1,e0+1]:[e0,e];nu(t,n),e1(void 0)}function ns(){ne(!1)}function nl(e){e.stopPropagation(),nu(tE.rowIdx+1,l.length)}function nu(e,t){if(null==y)return;let{rowIdx:n,idx:r}=tE,i=ta[r],o=l[n],a=[...l],s=[];for(let n=e;n<t;n++)if(nh({rowIdx:n,idx:r})){let e=ep({columnKey:i.key,sourceRow:o,targetRow:l[n]});e!==l[n]&&(a[n]=e,s.push(n))}s.length>0&&y(a,{indexes:s,column:i})}(0,r.useLayoutEffect)(()=>{e3&&(null!==tC.current&&-1===tE.idx?(tC.current.focus({preventScroll:!0}),u(tC.current)):ne(),e4(!1))},[e3,ne,tE.idx]),(0,r.useImperativeHandle)(t,()=>({element:tn.current,scrollToCell({idx:e,rowIdx:t}){let n=void 0!==e&&e>tl&&e<ta.length?e:void 0,r=void 0!==t&&nc(t)?t:void 0;(void 0!==n||void 0!==r)&&e5({idx:n,rowIdx:r})},selectCell:np}));function nc(e){return e>=0&&e<l.length}function nd({idx:e,rowIdx:t}){var n;return t>=tx&&t<=tS&&(n=e)>=t$&&n<=tG}function nf({idx:e,rowIdx:t}){var n;return nc(t)&&(n=e)>=t$&&n<=tG}function nh(e){return function({idx:e,rowIdx:t}){return nc(t)&&e>=0&&e<=tG}(e)&&function({selectedPosition:e,columns:t,rows:n}){return p(t[e.idx],n[e.rowIdx])}({columns:ta,rows:l,selectedPosition:e})}function np(e,t){if(!nd(e))return;nr();let n=eu(tE,e);if(t?.enableEditor&&nh(e)){let t=l[e.rowIdx];tk({...e,mode:"EDIT",row:t,originalRow:t})}else n?u(el(tn.current)):(e4(t?.shouldFocusCell===!0),tk({...e,mode:"SELECT"}));ec&&!n&&ec({rowIdx:e.rowIdx,row:nc(e.rowIdx)?l[e.rowIdx]:void 0,column:ta[e.idx]})}function ng(e){let{key:t,shiftKey:n}=e,r="NONE";if("Tab"===t){if(function({maxColIdx:e,minRowIdx:t,maxRowIdx:n,selectedPosition:{rowIdx:r,idx:i},shiftKey:o}){return o?0===i&&r===t:i===e&&r===n}({shiftKey:n,maxColIdx:tG,minRowIdx:tx,maxRowIdx:tS,selectedPosition:tE}))return void nr();r="CHANGE_ROW"}e.preventDefault();let i=function(e,t,n){let{idx:r,rowIdx:i}=tE,o=tK&&-1===r;switch(e){case"ArrowUp":return{idx:r,rowIdx:i-1};case"ArrowDown":return{idx:r,rowIdx:i+1};case tR:return{idx:r-1,rowIdx:i};case tA:return{idx:r+1,rowIdx:i};case"Tab":return{idx:r+(n?-1:1),rowIdx:i};case"Home":if(o)return{idx:r,rowIdx:tx};return{idx:0,rowIdx:t?tx:i};case"End":if(o)return{idx:r,rowIdx:tS};return{idx:tG,rowIdx:t?tS:i};case"PageUp":{if(tE.rowIdx===tx)return tE;let e=tz(i)+tB(i)-tT;return{idx:r,rowIdx:e>0?tU(e):0}}case"PageDown":{if(tE.rowIdx>=l.length)return tE;let e=tz(i)+tT;return{idx:r,rowIdx:e<tF?tU(e):l.length-1}}default:return tE}}(t,f(e),n);if(eu(tE,i))return;let o=function({moveUp:e,moveNext:t,cellNavigationMode:n,columns:r,colSpanColumns:i,rows:o,topSummaryRows:a,bottomSummaryRows:l,minRowIdx:u,mainHeaderRowIdx:c,maxRowIdx:d,currentPosition:{idx:f,rowIdx:h},nextPosition:p,lastFrozenColumnIndex:g,isCellWithinBounds:v}){let{idx:m,rowIdx:b}=p,y=r.length,x=e=>{for(let t of i){let n=t.idx;if(n>m)break;let r=function({rows:e,topSummaryRows:t,bottomSummaryRows:n,rowIdx:r,mainHeaderRowIdx:i,lastFrozenColumnIndex:o,column:a}){let l=t?.length??0;return r===i?s(a,o,{type:"HEADER"}):t&&r>i&&r<=l+i?s(a,o,{type:"SUMMARY",row:t[r+l]}):r>=0&&r<e.length?s(a,o,{type:"ROW",row:e[r]}):n?s(a,o,{type:"SUMMARY",row:n[r-e.length]}):void 0}({rows:o,topSummaryRows:a,bottomSummaryRows:l,rowIdx:b,mainHeaderRowIdx:c,lastFrozenColumnIndex:g,column:t});if(r&&m>n&&m<r+n){m=n+(e?r:0);break}}},w=e=>e.level+c;if(v(p)&&(x(t),b<c&&(()=>{if(t){let e=r[m].parent;for(;void 0!==e;){let t=w(e);if(b===t){m=e.idx+e.colSpan;break}e=e.parent}}else if(e){let e=r[m].parent,t=!1;for(;void 0!==e;){let n=w(e);if(b>=n){m=e.idx,b=n,t=!0;break}e=e.parent}t||(m=f,b=h)}})()),"CHANGE_ROW"===n){let e=m===y,t=-1===m;e?b!==d&&(m=0,b+=1):t&&(b!==u&&(b-=1,m=y-1),x(!1))}if(b<c&&m>-1&&m<y){let e=r[m].parent,t=b;for(b=c;void 0!==e;){let n=w(e);n>=t&&(b=n,m=e.idx),e=e.parent}}return{idx:m,rowIdx:b}}({moveUp:"ArrowUp"===t,moveNext:t===tA||"Tab"===t&&!n,columns:ta,colSpanColumns:ts,rows:l,topSummaryRows:g,bottomSummaryRows:v,minRowIdx:tx,mainHeaderRowIdx:tw,maxRowIdx:tS,lastFrozenColumnIndex:tl,cellNavigationMode:r,currentPosition:tE,nextPosition:i,isCellWithinBounds:nd});np(o,{shouldFocusCell:!0})}function nv(e){let t=-1===tE.idx?void 0:ta[tE.idx];return void 0===t||tE.rowIdx!==e||tW.includes(t)?tW:tE.idx>td?[...tW,t]:[...tW.slice(0,tl+1),t,...tW.slice(tl+1)]}(tE.idx>tG||tE.rowIdx>tS)&&(tk({idx:-1,rowIdx:tx-1,mode:"SELECT"}),e1(void 0)),e7&&eK!==B&&eY(B);let nm=`repeat(${tu}, ${eL}px)`;tg>0&&(nm+=` repeat(${tg}, ${eV}px)`),l.length>0&&(nm+=tj),tv>0&&(nm+=` repeat(${tv}, ${eV}px)`);let nb=-1===tE.idx&&tE.rowIdx!==tx-1;return(0,a.jsxs)("div",{role:eN,"aria-label":eC,"aria-labelledby":eO,"aria-description":eI,"aria-describedby":e_,"aria-multiselectable":!!tP||void 0,"aria-colcount":ta.length,"aria-rowcount":tN,tabIndex:-1,className:o("rdg rnvodz57-0-0-beta-57",{"rdg-viewport-dragging vlqv91k7-0-0-beta-57":eJ},ey),style:{...ex,scrollPaddingInlineStart:tE.idx>tl||e2?.idx!==void 0?`${tp}px`:void 0,scrollPaddingBlock:nc(tE.rowIdx)||e2?.rowIdx!==void 0?`${tI+tg*eV}px ${tv*eV}px`:void 0,gridTemplateColumns:tH,gridTemplateRows:nm,"--rdg-header-row-height":`${eL}px`,"--rdg-scroll-height":`${tX}px`,...th},dir:eW,ref:tn,onScroll:function(e){let{scrollTop:t,scrollLeft:n}=e.currentTarget;(0,i.flushSync)(()=>{eq(t),eG(k(n))}),ed?.(e)},onKeyDown:function(e){let{idx:t,rowIdx:n,mode:r}=tE;if("EDIT"===r)return;if(es&&nc(n)){let r=l[n],i=c(e);if(es({mode:"SELECT",row:r,column:ta[t],rowIdx:n,selectCell:np},i),i.isGridDefaultPrevented())return}if(!(e.target instanceof Element))return;let i=null!==e.target.closest(".rdg-cell"),o=tO&&e.target===tC.current;if(i||o)switch(e.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Tab":case"Home":case"End":case"PageUp":case"PageDown":ng(e);break;default:!function(e){var t;if(!tY)return;let n=l[tE.rowIdx],{key:r,shiftKey:i}=e;if(tP&&i&&" "===r){C(m);let t=m(n);nt({row:n,checked:!H.has(t),isShiftClick:!1}),e.preventDefault();return}!nh(tE)||(t=null!=ev,f(e)&&(86!==e.keyCode||t)||d.has(e.key))||tk(({idx:e,rowIdx:t})=>({idx:e,rowIdx:t,mode:"EDIT",row:n,originalRow:n}))}(e)}},onCopy:function(e){if(!tY)return;let{idx:t,rowIdx:n}=tE;eg?.({row:l[n],column:ta[t]},e)},onPaste:function(e){if(!ev||!y||!nh(tE))return;let{idx:t,rowIdx:n}=tE,r=ta[t],i=ev({row:l[n],column:r},e);nn(r,n,i)},"data-testid":eP,"data-cy":eR,children:[(0,a.jsxs)(P,{value:tM,children:[(0,a.jsx)(L,{value:t4,children:(0,a.jsxs)(M,{value:tL,children:[Array.from({length:ty},(e,t)=>(0,a.jsx)(ee,{rowIdx:t+1,level:-ty+t,columns:nv(tx+t),selectedCellIdx:tE.rowIdx===tx+t?tE.idx:void 0,selectCell:t9},t)),(0,a.jsx)(Z,{headerRowClass:eS,rowIdx:tu,columns:nv(tw),onColumnResize:tQ,onColumnResizeEnd:tJ,onColumnsReorder:tZ,sortColumns:K,onSortColumnsChange:t0,lastFrozenColumnIndex:tl,selectedCellIdx:tE.rowIdx===tw?tE.idx:void 0,selectCell:t9,shouldFocusGrid:!tK,direction:eW})]})}),0===l.length&&eB?eB:(0,a.jsxs)(a.Fragment,{children:[g?.map((e,t)=>{let n=tu+1+t,r=tw+1+t,i=tE.rowIdx===r;return(0,a.jsx)(ea,{"aria-rowindex":n,rowIdx:r,gridRowStart:n,row:e,top:tI+eV*t,bottom:void 0,viewportColumns:nv(r),lastFrozenColumnIndex:tl,selectedCellIdx:i?tE.idx:void 0,isTop:!0,selectCell:t7},t)}),(0,a.jsx)(N,{value:t6,children:function(){let e=[],{idx:t,rowIdx:n}=tE,r=tY&&n<tV?tV-1:tV,o=tY&&n>tD?tD+1:tD;for(let u=r;u<=o;u++){let r=u===tV-1||u===tD+1,o=r?n:u,c=tW,d=-1===t?void 0:ta[t];void 0!==d&&(c=r?[d]:nv(o));let f=l[o],h=tb+o+1,p=o,g=!1;"function"==typeof m&&(p=m(f),g=H?.has(p)??!1),e.push(eD(p,{"aria-rowindex":tb+o+1,"aria-selected":tP?g:void 0,rowIdx:o,row:f,viewportColumns:c,isRowSelectionDisabled:$?.(f)??!1,isRowSelected:g,onCellMouseDown:t1,onCellClick:t2,onCellDoubleClick:t5,onCellContextMenu:t3,rowClass:ew,gridRowStart:h,selectedCellIdx:n===o?t:void 0,draggedOverCellIdx:function(e){if(void 0===e0)return;let{rowIdx:t}=tE;return(t<e0?t<e&&e<=e0:t>e&&e>=e0)?tE.idx:void 0}(o),lastFrozenColumnIndex:tl,onRowChange:t8,selectCell:t7,selectedCellEditor:function(e){if(tE.rowIdx!==e||"SELECT"===tE.mode)return;let{idx:t,row:n}=tE,r=ta[t],o=s(r,tl,{type:"ROW",row:n}),u=r.editorOptions?.closeOnExternalRowChange??!0,c=e=>{e4(e),tk(({idx:e,rowIdx:t})=>({idx:e,rowIdx:t,mode:"SELECT"}))};return u&&l[tE.rowIdx]!==tE.originalRow&&c(!1),(0,a.jsx)(q,{column:r,colSpan:o,row:n,rowIdx:e,onRowChange:(e,t,n)=>{t?(0,i.flushSync)(()=>{nn(r,tE.rowIdx,e),c(n)}):tk(t=>({...t,row:e}))},closeEditor:c,onKeyDown:es,navigate:ng},r.key)}(o)}))}return e}()}),v?.map((e,t)=>{let n=tb+l.length+t+1,r=l.length+t,i=tE.rowIdx===r,o=tT>tF?ti-eV*(v.length-t):void 0,s=void 0===o?eV*(v.length-1-t):void 0;return(0,a.jsx)(ea,{"aria-rowindex":tN-tv+t+1,rowIdx:r,gridRowStart:n,row:e,top:o,bottom:s,viewportColumns:nv(r),lastFrozenColumnIndex:tl,selectedCellIdx:i?tE.idx:void 0,isTop:!1,selectCell:t7},t)})]})]}),function(){if(null==ep||"EDIT"===tE.mode||!nf(tE))return;let{idx:e,rowIdx:t}=tE,n=ta[e];if(null==n.renderEditCell||!1===n.editable)return;let r=t===tS,i=tt(n),s=n.colSpan?.({type:"ROW",row:l[t]})??1,{insetInlineStart:u,...c}=b(n,s),d="calc(var(--rdg-drag-handle-size) * -0.5 + 1px)",f=n.idx+s-1===tG,h={...c,gridRowStart:tb+t+1,marginInlineEnd:f?void 0:d,marginBlockEnd:r?void 0:d,insetInlineStart:u?`calc(${u} + ${i}px + var(--rdg-drag-handle-size) * -0.5 - 1px)`:void 0};return(0,a.jsx)("div",{style:h,className:o("rdg-cell-drag-handle ch2wcw87-0-0-beta-57",n.frozen&&"c1wvphzh7-0-0-beta-57"),onPointerDown:ni,onPointerMove:eJ?no:void 0,onLostPointerCapture:eJ?na:void 0,onClick:ns,onDoubleClick:nl})}(),tW.map(({key:e,idx:t,minWidth:n,maxWidth:r})=>(0,a.jsx)("div",{className:"mlln6zg7-0-0-beta-57",style:{gridColumnStart:t+1,minWidth:n,maxWidth:r},"data-measuring-cell-key":e},e)),tO&&(0,a.jsx)("div",{ref:tC,tabIndex:nb?0:-1,className:o("f1lsfrzw7-0-0-beta-57",{"f1cte0lg7-0-0-beta-57":!nc(tE.rowIdx),"r190mhd37-0-0-beta-57":nb,"r139qu9m7-0-0-beta-57":nb&&-1!==tl}),style:{gridRowStart:tE.rowIdx+tb+1}}),null!==e2&&(0,a.jsx)(er,{scrollToPosition:e2,setScrollToCellPosition:e5,gridRef:tn})]})}function el(e){return e.querySelector(':scope > [role="row"] > [tabindex="0"]')}function eu(e,t){return e.idx===t.idx&&e.rowIdx===t.rowIdx}var ec=(0,r.memo)(function({id:e,groupKey:t,childRows:n,isExpanded:r,isCellSelected:i,column:o,row:s,groupColumnIndex:l,isGroupByColumn:u,toggleGroup:c}){let{tabIndex:d,childTabIndex:f,onFocus:h}=B(i);function p(){c(e)}let g=u&&l===o.idx;return(0,a.jsx)("div",{role:"gridcell","aria-colindex":o.idx+1,"aria-selected":i,tabIndex:d,className:y(o),style:{...b(o),cursor:g?"pointer":"default"},onMouseDown:e=>{e.preventDefault()},onClick:g?p:void 0,onFocus:h,children:(!u||g)&&o.renderGroupCell?.({groupKey:t,childRows:n,column:o,row:s,isExpanded:r,tabIndex:f,toggleGroup:p})},o.key)});(0,r.memo)(function({className:e,row:t,rowIdx:n,viewportColumns:i,selectedCellIdx:s,isRowSelected:l,selectCell:u,gridRowStart:c,groupBy:d,toggleGroup:f,isRowSelectionDisabled:h,...p}){let g=i[0].key===V?t.level+1:t.level,m=(0,r.useMemo)(()=>({isRowSelectionDisabled:!1,isRowSelected:l}),[l]);return(0,a.jsx)(A,{value:m,children:(0,a.jsx)("div",{role:"row","aria-level":t.level+1,"aria-setsize":t.setSize,"aria-posinset":t.posInSet+1,"aria-expanded":t.isExpanded,className:o(X,"rdg-group-row g1yxluv37-0-0-beta-57",`rdg-row-${n%2==0?"even":"odd"}`,-1===s&&Q,e),onMouseDown:function(){u({rowIdx:n,idx:-1},{shouldFocusCell:!0})},style:v(c),...p,children:i.map(e=>(0,a.jsx)(ec,{id:t.id,groupKey:t.groupKey,childRows:t.childRows,isExpanded:t.isExpanded,isCellSelected:s===e.idx,column:e,row:t,groupColumnIndex:g,toggleGroup:f,isGroupByColumn:d.includes(e.key)},e.key))})})});function ed(e){e?.focus(),e?.select()}function ef({row:e,column:t,onRowChange:n,onClose:r}){return(0,a.jsx)("input",{className:"rdg-text-editor t7vyx3i7-0-0-beta-57",ref:ed,value:e[t.key],onChange:r=>n({...e,[t.key]:r.target.value}),onBlur:()=>r(!0,!1)})}},91485:(e,t,n)=>{"use strict";var r=n(63780),i=n(99601),o=n(83704).positionX;e.exports=function(e){var t,n,a,s;t=e=i.asNonCompoundGraph(e),n=i.buildLayerMatrix(t),a=t.graph().ranksep,s=0,r.forEach(n,function(e){var n=r.max(r.map(e,function(e){return t.node(e).height}));r.forEach(e,function(e){t.node(e).y=s+n/2}),s+=n+a}),r.forEach(o(e),function(t,n){e.node(n).x=t})}},91512:(e,t,n)=>{var r=n(47350),i=n(41438),o=n(40935);e.exports=function(e){return o(e)?r(e,!0):i(e)}},91752:(e,t,n)=>{var r=n(63780),i=n(99601),o=n(621).Graph;e.exports={debugOrdering:function(e){var t=i.buildLayerMatrix(e),n=new o({compound:!0,multigraph:!0}).setGraph({});return r.forEach(e.nodes(),function(t){n.setNode(t,{label:t}),n.setParent(t,"layer"+e.node(t).rank)}),r.forEach(e.edges(),function(e){n.setEdge(e.v,e.w,{},e.name)}),r.forEach(t,function(e,t){n.setNode("layer"+t,{rank:"same"}),r.reduce(e,function(e,t){return n.setEdge(e,t,{style:"invis"}),t})}),n}}},91923:(e,t,n)=>{"use strict";var r=n(63780),i=n(56026);e.exports={run:function(e){var t,n,o,a,s,l="greedy"===e.graph().acyclicer?i(e,(t=e,function(e){return t.edge(e).weight})):(n=e,o=[],a={},s={},r.forEach(n.nodes(),function e(t){r.has(s,t)||(s[t]=!0,a[t]=!0,r.forEach(n.outEdges(t),function(t){r.has(a,t.w)?o.push(t):e(t.w)}),delete a[t])}),o);r.forEach(l,function(t){var n=e.edge(t);e.removeEdge(t),n.forwardName=t.name,n.reversed=!0,e.setEdge(t.w,t.v,n,r.uniqueId("rev"))})},undo:function(e){r.forEach(e.edges(),function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}})}}},92078:(e,t,n)=>{"use strict";n.d(t,{sb:()=>og});var r=n(78527),i=n(12342),o=n(5976);let a=(e,t)=>null!=t?`${e}(${t})`:t,s=e=>{if(/^var\(--.+\)$/.test(e)||null==e)return e;let t="string"==typeof e&&!e.endsWith("deg");return"number"==typeof e||t?`${e}deg`:e},l=e=>({values:["outside","inside","mixed","none"],transform(t,{token:n}){let r=n("colors.colorPalette.focusRing");return({inside:{"--focus-ring-color":r,[e]:{outlineOffset:"0px",outlineWidth:"var(--focus-ring-width, 1px)",outlineColor:"var(--focus-ring-color)",outlineStyle:"var(--focus-ring-style, solid)",borderColor:"var(--focus-ring-color)"}},outside:{"--focus-ring-color":r,[e]:{outlineWidth:"var(--focus-ring-width, 2px)",outlineOffset:"var(--focus-ring-offset, 2px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"var(--focus-ring-color)"}},mixed:{"--focus-ring-color":r,[e]:{outlineWidth:"var(--focus-ring-width, 3px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"color-mix(in srgb, var(--focus-ring-color), transparent 60%)",borderColor:"var(--focus-ring-color)"}},none:{"--focus-ring-color":r,[e]:{outline:"none"}}})[t]??{}}}),u=(0,r.U)("borderColor"),c=e=>({transition:e,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}),d=(0,i.sJ)({hover:["@media (hover: hover)","&:is(:hover, [data-hover]):not(:disabled, [data-disabled])"],active:"&:is(:active, [data-active]):not(:disabled, [data-disabled], [data-state=open])",focus:"&:is(:focus, [data-focus])",focusWithin:"&:is(:focus-within, [data-focus-within])",focusVisible:"&:is(:focus-visible, [data-focus-visible])",disabled:"&:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])",visited:"&:visited",target:"&:target",readOnly:"&:is([data-readonly], [aria-readonly=true], [readonly])",readWrite:"&:read-write",empty:"&:is(:empty, [data-empty])",checked:"&:is(:checked, [data-checked], [aria-checked=true], [data-state=checked])",enabled:"&:enabled",expanded:"&:is([aria-expanded=true], [data-expanded], [data-state=expanded])",highlighted:"&[data-highlighted]",complete:"&[data-complete]",incomplete:"&[data-incomplete]",dragging:"&[data-dragging]",before:"&::before",after:"&::after",firstLetter:"&::first-letter",firstLine:"&::first-line",marker:"&::marker",selection:"&::selection",file:"&::file-selector-button",backdrop:"&::backdrop",first:"&:first-of-type",last:"&:last-of-type",notFirst:"&:not(:first-of-type)",notLast:"&:not(:last-of-type)",only:"&:only-child",even:"&:nth-of-type(even)",odd:"&:nth-of-type(odd)",peerFocus:".peer:is(:focus, [data-focus]) ~ &",peerHover:".peer:is(:hover, [data-hover]):not(:disabled, [data-disabled]) ~ &",peerActive:".peer:is(:active, [data-active]):not(:disabled, [data-disabled]) ~ &",peerFocusWithin:".peer:focus-within ~ &",peerFocusVisible:".peer:is(:focus-visible, [data-focus-visible]) ~ &",peerDisabled:".peer:is(:disabled, [disabled], [data-disabled]) ~ &",peerChecked:".peer:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) ~ &",peerInvalid:".peer:is(:invalid, [data-invalid], [aria-invalid=true]) ~ &",peerExpanded:".peer:is([aria-expanded=true], [data-expanded], [data-state=expanded]) ~ &",peerPlaceholderShown:".peer:placeholder-shown ~ &",groupFocus:".group:is(:focus, [data-focus]) &",groupHover:".group:is(:hover, [data-hover]):not(:disabled, [data-disabled]) &",groupActive:".group:is(:active, [data-active]):not(:disabled, [data-disabled]) &",groupFocusWithin:".group:focus-within &",groupFocusVisible:".group:is(:focus-visible, [data-focus-visible]) &",groupDisabled:".group:is(:disabled, [disabled], [data-disabled]) &",groupChecked:".group:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) &",groupExpanded:".group:is([aria-expanded=true], [data-expanded], [data-state=expanded]) &",groupInvalid:".group:invalid &",indeterminate:"&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state=indeterminate])",required:"&:is([data-required], [aria-required=true])",valid:"&:is([data-valid], [data-state=valid])",invalid:"&:is([data-invalid], [aria-invalid=true], [data-state=invalid])",autofill:"&:autofill",inRange:"&:is(:in-range, [data-in-range])",outOfRange:"&:is(:out-of-range, [data-outside-range])",placeholder:"&::placeholder, &[data-placeholder]",placeholderShown:"&:is(:placeholder-shown, [data-placeholder-shown])",pressed:"&:is([aria-pressed=true], [data-pressed])",selected:"&:is([aria-selected=true], [data-selected])",grabbed:"&:is([aria-grabbed=true], [data-grabbed])",underValue:"&[data-state=under-value]",overValue:"&[data-state=over-value]",atValue:"&[data-state=at-value]",default:"&:default",optional:"&:optional",open:"&:is([open], [data-open], [data-state=open])",closed:"&:is([closed], [data-closed], [data-state=closed])",fullscreen:"&:is(:fullscreen, [data-fullscreen])",loading:"&:is([data-loading], [aria-busy=true])",hidden:"&:is([hidden], [data-hidden])",current:"&[data-current]",currentPage:"&[aria-current=page]",currentStep:"&[aria-current=step]",today:"&[data-today]",unavailable:"&[data-unavailable]",rangeStart:"&[data-range-start]",rangeEnd:"&[data-range-end]",now:"&[data-now]",topmost:"&[data-topmost]",motionReduce:"@media (prefers-reduced-motion: reduce)",motionSafe:"@media (prefers-reduced-motion: no-preference)",print:"@media print",landscape:"@media (orientation: landscape)",portrait:"@media (orientation: portrait)",dark:".dark &, .dark .chakra-theme:not(.light) &",light:":root &, .light &",osDark:"@media (prefers-color-scheme: dark)",osLight:"@media (prefers-color-scheme: light)",highContrast:"@media (forced-colors: active)",lessContrast:"@media (prefers-contrast: less)",moreContrast:"@media (prefers-contrast: more)",ltr:"[dir=ltr] &",rtl:"[dir=rtl] &",scrollbar:"&::-webkit-scrollbar",scrollbarThumb:"&::-webkit-scrollbar-thumb",scrollbarTrack:"&::-webkit-scrollbar-track",horizontal:"&[data-orientation=horizontal]",vertical:"&[data-orientation=vertical]",icon:"& :where(svg)",starting:"@starting-style"}),f=(0,o.V)("bg-currentcolor"),h=e=>e===f.ref||"currentBg"===e,p=e=>({...e("colors"),currentBg:f}),g=(0,i.C8)({conditions:d,utilities:{background:{values:p,shorthand:["bg"],transform(e,t){if(h(t.raw))return{background:f.ref};let n=(0,r.U)("background")(e,t);return{...n,[f.var]:n?.background}}},backgroundColor:{values:p,shorthand:["bgColor"],transform(e,t){if(h(t.raw))return{backgroundColor:f.ref};let n=(0,r.U)("backgroundColor")(e,t);return{...n,[f.var]:n?.backgroundColor}}},backgroundSize:{shorthand:["bgSize"]},backgroundPosition:{shorthand:["bgPos"]},backgroundRepeat:{shorthand:["bgRepeat"]},backgroundAttachment:{shorthand:["bgAttachment"]},backgroundClip:{shorthand:["bgClip"],values:["text"],transform:e=>"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},backgroundGradient:{shorthand:["bgGradient"],values:e=>({...e("gradients"),"to-t":"linear-gradient(to top, var(--gradient))","to-tr":"linear-gradient(to top right, var(--gradient))","to-r":"linear-gradient(to right, var(--gradient))","to-br":"linear-gradient(to bottom right, var(--gradient))","to-b":"linear-gradient(to bottom, var(--gradient))","to-bl":"linear-gradient(to bottom left, var(--gradient))","to-l":"linear-gradient(to left, var(--gradient))","to-tl":"linear-gradient(to top left, var(--gradient))"}),transform:e=>({"--gradient-stops":"var(--gradient-from), var(--gradient-to)","--gradient":"var(--gradient-via-stops, var(--gradient-stops))",backgroundImage:e})},gradientFrom:{values:p,transform:(0,r.U)("--gradient-from")},gradientTo:{values:p,transform:(0,r.U)("--gradient-to")},gradientVia:{values:p,transform:(e,t)=>({...(0,r.U)("--gradient-via")(e,t),"--gradient-via-stops":"var(--gradient-from), var(--gradient-via), var(--gradient-to)"})},backgroundImage:{values:e=>({...e("gradients"),...e("assets")}),shorthand:["bgImg","bgImage"]},border:{values:"borders"},borderTop:{values:"borders"},borderLeft:{values:"borders"},borderBlockStart:{values:"borders"},borderRight:{values:"borders"},borderBottom:{values:"borders"},borderBlockEnd:{values:"borders"},borderInlineStart:{values:"borders",shorthand:["borderStart"]},borderInlineEnd:{values:"borders",shorthand:["borderEnd"]},borderInline:{values:"borders",shorthand:["borderX"]},borderBlock:{values:"borders",shorthand:["borderY"]},borderColor:{values:p,transform:(0,r.U)("borderColor")},borderTopColor:{values:p,transform:(0,r.U)("borderTopColor")},borderBlockStartColor:{values:p,transform:(0,r.U)("borderBlockStartColor")},borderBottomColor:{values:p,transform:(0,r.U)("borderBottomColor")},borderBlockEndColor:{values:p,transform:(0,r.U)("borderBlockEndColor")},borderLeftColor:{values:p,transform:(0,r.U)("borderLeftColor")},borderInlineStartColor:{values:p,shorthand:["borderStartColor"],transform:(0,r.U)("borderInlineStartColor")},borderRightColor:{values:p,transform:(0,r.U)("borderRightColor")},borderInlineEndColor:{values:p,shorthand:["borderEndColor"],transform:(0,r.U)("borderInlineEndColor")},borderStyle:{values:"borderStyles"},borderTopStyle:{values:"borderStyles"},borderBlockStartStyle:{values:"borderStyles"},borderBottomStyle:{values:"borderStyles"},borderBlockEndStyle:{values:"borderStyles"},borderInlineStartStyle:{values:"borderStyles",shorthand:["borderStartStyle"]},borderInlineEndStyle:{values:"borderStyles",shorthand:["borderEndStyle"]},borderLeftStyle:{values:"borderStyles"},borderRightStyle:{values:"borderStyles"},borderRadius:{values:"radii",shorthand:["rounded"]},borderTopLeftRadius:{values:"radii",shorthand:["roundedTopLeft"]},borderStartStartRadius:{values:"radii",shorthand:["roundedStartStart","borderTopStartRadius"]},borderEndStartRadius:{values:"radii",shorthand:["roundedEndStart","borderBottomStartRadius"]},borderTopRightRadius:{values:"radii",shorthand:["roundedTopRight"]},borderStartEndRadius:{values:"radii",shorthand:["roundedStartEnd","borderTopEndRadius"]},borderEndEndRadius:{values:"radii",shorthand:["roundedEndEnd","borderBottomEndRadius"]},borderBottomLeftRadius:{values:"radii",shorthand:["roundedBottomLeft"]},borderBottomRightRadius:{values:"radii",shorthand:["roundedBottomRight"]},borderInlineStartRadius:{values:"radii",property:"borderRadius",shorthand:["roundedStart","borderStartRadius"],transform:e=>({borderStartStartRadius:e,borderEndStartRadius:e})},borderInlineEndRadius:{values:"radii",property:"borderRadius",shorthand:["roundedEnd","borderEndRadius"],transform:e=>({borderStartEndRadius:e,borderEndEndRadius:e})},borderTopRadius:{values:"radii",property:"borderRadius",shorthand:["roundedTop"],transform:e=>({borderTopLeftRadius:e,borderTopRightRadius:e})},borderBottomRadius:{values:"radii",property:"borderRadius",shorthand:["roundedBottom"],transform:e=>({borderBottomLeftRadius:e,borderBottomRightRadius:e})},borderLeftRadius:{values:"radii",property:"borderRadius",shorthand:["roundedLeft"],transform:e=>({borderTopLeftRadius:e,borderBottomLeftRadius:e})},borderRightRadius:{values:"radii",property:"borderRadius",shorthand:["roundedRight"],transform:e=>({borderTopRightRadius:e,borderBottomRightRadius:e})},borderWidth:{values:"borderWidths"},borderBlockStartWidth:{values:"borderWidths"},borderTopWidth:{values:"borderWidths"},borderBottomWidth:{values:"borderWidths"},borderBlockEndWidth:{values:"borderWidths"},borderRightWidth:{values:"borderWidths"},borderInlineWidth:{values:"borderWidths",shorthand:["borderXWidth"]},borderInlineStartWidth:{values:"borderWidths",shorthand:["borderStartWidth"]},borderInlineEndWidth:{values:"borderWidths",shorthand:["borderEndWidth"]},borderLeftWidth:{values:"borderWidths"},borderBlockWidth:{values:"borderWidths",shorthand:["borderYWidth"]},color:{values:p,transform:(0,r.U)("color")},fill:{values:p,transform:(0,r.U)("fill")},stroke:{values:p,transform:(0,r.U)("stroke")},accentColor:{values:p,transform:(0,r.U)("accentColor")},divideX:{values:{type:"string"},transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderInlineStartWidth:e,borderInlineEndWidth:"0px"}})},divideY:{values:{type:"string"},transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderTopWidth:e,borderBottomWidth:"0px"}})},divideColor:{values:p,transform:(e,t)=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":u(e,t)})},divideStyle:{property:"borderStyle",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderStyle:e}})},boxShadow:{values:"shadows",shorthand:["shadow"]},boxShadowColor:{values:p,transform:(0,r.U)("--shadow-color"),shorthand:["shadowColor"]},mixBlendMode:{shorthand:["blendMode"]},backgroundBlendMode:{shorthand:["bgBlendMode"]},opacity:{values:"opacity"},filter:{transform:e=>"auto"!==e?{filter:e}:{filter:"var(--blur) var(--brightness) var(--contrast) var(--grayscale) var(--hue-rotate) var(--invert) var(--saturate) var(--sepia) var(--drop-shadow)"}},blur:{values:"blurs",transform:e=>({"--blur":a("blur",e)})},brightness:{transform:e=>({"--brightness":a("brightness",e)})},contrast:{transform:e=>({"--contrast":a("contrast",e)})},grayscale:{transform:e=>({"--grayscale":a("grayscale",e)})},hueRotate:{transform:e=>({"--hue-rotate":a("hue-rotate",s(e))})},invert:{transform:e=>({"--invert":a("invert",e)})},saturate:{transform:e=>({"--saturate":a("saturate",e)})},sepia:{transform:e=>({"--sepia":a("sepia",e)})},dropShadow:{transform:e=>({"--drop-shadow":a("drop-shadow",e)})},backdropFilter:{transform:e=>"auto"!==e?{backdropFilter:e}:{backdropFilter:"var(--backdrop-blur) var(--backdrop-brightness) var(--backdrop-contrast) var(--backdrop-grayscale) var(--backdrop-hue-rotate) var(--backdrop-invert) var(--backdrop-opacity) var(--backdrop-saturate) var(--backdrop-sepia)"}},backdropBlur:{values:"blurs",transform:e=>({"--backdrop-blur":a("blur",e)})},backdropBrightness:{transform:e=>({"--backdrop-brightness":a("brightness",e)})},backdropContrast:{transform:e=>({"--backdrop-contrast":a("contrast",e)})},backdropGrayscale:{transform:e=>({"--backdrop-grayscale":a("grayscale",e)})},backdropHueRotate:{transform:e=>({"--backdrop-hue-rotate":a("hue-rotate",s(e))})},backdropInvert:{transform:e=>({"--backdrop-invert":a("invert",e)})},backdropOpacity:{transform:e=>({"--backdrop-opacity":a("opacity",e)})},backdropSaturate:{transform:e=>({"--backdrop-saturate":a("saturate",e)})},backdropSepia:{transform:e=>({"--backdrop-sepia":a("sepia",e)})},flexBasis:{values:"sizes"},gap:{values:"spacing"},rowGap:{values:"spacing",shorthand:["gapY"]},columnGap:{values:"spacing",shorthand:["gapX"]},flexDirection:{shorthand:["flexDir"]},gridGap:{values:"spacing"},gridColumnGap:{values:"spacing"},gridRowGap:{values:"spacing"},outlineColor:{values:p,transform:(0,r.U)("outlineColor")},focusRing:l("&:is(:focus, [data-focus])"),focusVisibleRing:l("&:is(:focus-visible, [data-focus-visible])"),focusRingColor:{values:p,transform:(0,r.U)("--focus-ring-color")},focusRingOffset:{values:"spacing",transform:e=>({"--focus-ring-offset":e})},focusRingWidth:{values:"borderWidths",property:"outlineWidth",transform:e=>({"--focus-ring-width":e})},focusRingStyle:{values:"borderStyles",property:"outlineStyle",transform:e=>({"--focus-ring-style":e})},aspectRatio:{values:"aspectRatios"},width:{values:"sizes",shorthand:["w"]},inlineSize:{values:"sizes"},height:{values:"sizes",shorthand:["h"]},blockSize:{values:"sizes"},boxSize:{values:"sizes",property:"width",transform:e=>({width:e,height:e})},minWidth:{values:"sizes",shorthand:["minW"]},minInlineSize:{values:"sizes"},minHeight:{values:"sizes",shorthand:["minH"]},minBlockSize:{values:"sizes"},maxWidth:{values:"sizes",shorthand:["maxW"]},maxInlineSize:{values:"sizes"},maxHeight:{values:"sizes",shorthand:["maxH"]},maxBlockSize:{values:"sizes"},hideFrom:{values:"breakpoints",transform:(e,{raw:t,token:n})=>({[n.raw(`breakpoints.${t}`)?`@breakpoint ${t}`:`@media screen and (min-width: ${e})`]:{display:"none"}})},hideBelow:{values:"breakpoints",transform:(e,{raw:t,token:n})=>({[n.raw(`breakpoints.${t}`)?`@breakpoint ${t}Down`:`@media screen and (max-width: ${e})`]:{display:"none"}})},overscrollBehavior:{shorthand:["overscroll"]},overscrollBehaviorX:{shorthand:["overscrollX"]},overscrollBehaviorY:{shorthand:["overscrollY"]},scrollbar:{values:["visible","hidden"],transform(e){switch(e){case"visible":return{msOverflowStyle:"auto",scrollbarWidth:"auto","&::-webkit-scrollbar":{display:"block"}};case"hidden":return{msOverflowStyle:"none",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}};default:return{}}}},scrollbarColor:{values:p,transform:(0,r.U)("scrollbarColor")},scrollbarGutter:{values:"spacing"},scrollbarWidth:{values:"sizes"},scrollMargin:{values:"spacing"},scrollMarginTop:{values:"spacing"},scrollMarginBottom:{values:"spacing"},scrollMarginLeft:{values:"spacing"},scrollMarginRight:{values:"spacing"},scrollMarginX:{values:"spacing",transform:e=>({scrollMarginLeft:e,scrollMarginRight:e})},scrollMarginY:{values:"spacing",transform:e=>({scrollMarginTop:e,scrollMarginBottom:e})},scrollPadding:{values:"spacing"},scrollPaddingTop:{values:"spacing"},scrollPaddingBottom:{values:"spacing"},scrollPaddingLeft:{values:"spacing"},scrollPaddingRight:{values:"spacing"},scrollPaddingInline:{values:"spacing",shorthand:["scrollPaddingX"]},scrollPaddingBlock:{values:"spacing",shorthand:["scrollPaddingY"]},scrollSnapType:{values:{none:"none",x:"x var(--scroll-snap-strictness)",y:"y var(--scroll-snap-strictness)",both:"both var(--scroll-snap-strictness)"}},scrollSnapStrictness:{values:["mandatory","proximity"],transform:e=>({"--scroll-snap-strictness":e})},scrollSnapMargin:{values:"spacing"},scrollSnapMarginTop:{values:"spacing"},scrollSnapMarginBottom:{values:"spacing"},scrollSnapMarginLeft:{values:"spacing"},scrollSnapMarginRight:{values:"spacing"},listStylePosition:{shorthand:["listStylePos"]},listStyleImage:{values:"assets",shorthand:["listStyleImg"]},position:{shorthand:["pos"]},zIndex:{values:"zIndex"},inset:{values:"spacing"},insetInline:{values:"spacing",shorthand:["insetX"]},insetBlock:{values:"spacing",shorthand:["insetY"]},top:{values:"spacing"},insetBlockStart:{values:"spacing"},bottom:{values:"spacing"},insetBlockEnd:{values:"spacing"},left:{values:"spacing"},right:{values:"spacing"},insetInlineStart:{values:"spacing",shorthand:["insetStart"]},insetInlineEnd:{values:"spacing",shorthand:["insetEnd"]},ring:{transform:e=>({"--ring-offset-shadow":"var(--ring-inset) 0 0 0 var(--ring-offset-width) var(--ring-offset-color)","--ring-shadow":"var(--ring-inset) 0 0 0 calc(var(--ring-width) + var(--ring-offset-width)) var(--ring-color)","--ring-width":e,boxShadow:"var(--ring-offset-shadow), var(--ring-shadow), var(--shadow, 0 0 #0000)"})},ringColor:{values:p,transform:(0,r.U)("--ring-color")},ringOffset:{transform:e=>({"--ring-offset-width":e})},ringOffsetColor:{values:p,transform:(0,r.U)("--ring-offset-color")},ringInset:{transform:e=>({"--ring-inset":e})},margin:{values:"spacing",shorthand:["m"]},marginTop:{values:"spacing",shorthand:["mt"]},marginBlockStart:{values:"spacing"},marginRight:{values:"spacing",shorthand:["mr"]},marginBottom:{values:"spacing",shorthand:["mb"]},marginBlockEnd:{values:"spacing"},marginLeft:{values:"spacing",shorthand:["ml"]},marginInlineStart:{values:"spacing",shorthand:["ms","marginStart"]},marginInlineEnd:{values:"spacing",shorthand:["me","marginEnd"]},marginInline:{values:"spacing",shorthand:["mx","marginX"]},marginBlock:{values:"spacing",shorthand:["my","marginY"]},padding:{values:"spacing",shorthand:["p"]},paddingTop:{values:"spacing",shorthand:["pt"]},paddingRight:{values:"spacing",shorthand:["pr"]},paddingBottom:{values:"spacing",shorthand:["pb"]},paddingBlockStart:{values:"spacing"},paddingBlockEnd:{values:"spacing"},paddingLeft:{values:"spacing",shorthand:["pl"]},paddingInlineStart:{values:"spacing",shorthand:["ps","paddingStart"]},paddingInlineEnd:{values:"spacing",shorthand:["pe","paddingEnd"]},paddingInline:{values:"spacing",shorthand:["px","paddingX"]},paddingBlock:{values:"spacing",shorthand:["py","paddingY"]},textDecoration:{shorthand:["textDecor"]},textDecorationColor:{values:p,transform:(0,r.U)("textDecorationColor")},textShadow:{values:"shadows"},transform:{transform:e=>{let t=e;return"auto"===e&&(t="translateX(var(--translate-x, 0)) translateY(var(--translate-y, 0)) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),"auto-gpu"===e&&(t="translate3d(var(--translate-x, 0), var(--translate-y, 0), 0) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),{transform:t}}},skewX:{transform:e=>({"--skew-x":s(e)})},skewY:{transform:e=>({"--skew-y":s(e)})},scaleX:{transform:e=>({"--scale-x":e})},scaleY:{transform:e=>({"--scale-y":e})},scale:{transform:e=>"auto"!==e?{scale:e}:{scale:"var(--scale-x, 1) var(--scale-y, 1)"}},spaceXReverse:{values:{type:"boolean"},transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":e?"1":void 0}})},spaceX:{property:"marginInlineStart",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":"0",marginInlineStart:`calc(${e} * calc(1 - var(--space-x-reverse)))`,marginInlineEnd:`calc(${e} * var(--space-x-reverse))`}})},spaceYReverse:{values:{type:"boolean"},transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":e?"1":void 0}})},spaceY:{property:"marginTop",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":"0",marginTop:`calc(${e} * calc(1 - var(--space-y-reverse)))`,marginBottom:`calc(${e} * var(--space-y-reverse))`}})},rotate:{transform:e=>"auto"!==e?{rotate:s(e)}:{rotate:"var(--rotate-x, 0) var(--rotate-y, 0) var(--rotate-z, 0)"}},rotateX:{transform:e=>({"--rotate-x":s(e)})},rotateY:{transform:e=>({"--rotate-y":s(e)})},translate:{transform:e=>"auto"!==e?{translate:e}:{translate:"var(--translate-x) var(--translate-y)"}},translateX:{values:"spacing",transform:e=>({"--translate-x":e})},translateY:{values:"spacing",transform:e=>({"--translate-y":e})},transition:{values:["all","common","colors","opacity","position","backgrounds","size","shadow","transform"],transform(e){switch(e){case"all":return c("all");case"position":return c("left, right, top, bottom, inset-inline, inset-block");case"colors":return c("color, background-color, border-color, text-decoration-color, fill, stroke");case"opacity":return c("opacity");case"shadow":return c("box-shadow");case"transform":return c("transform");case"size":return c("width, height");case"backgrounds":return c("background, background-color, background-image, background-position");case"common":return c("color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter");default:return{transition:e}}}},transitionDuration:{values:"durations"},transitionProperty:{values:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, translate, transform",colors:"background-color, border-color, color, fill, stroke",size:"width, height",position:"left, right, top, bottom, inset-inline, inset-block",background:"background, background-color, background-image, background-position"}},transitionTimingFunction:{values:"easings"},animation:{values:"animations"},animationDuration:{values:"durations"},animationDelay:{values:"durations"},animationTimingFunction:{values:"easings"},fontFamily:{values:"fonts"},fontSize:{values:"fontSizes"},fontWeight:{values:"fontWeights"},lineHeight:{values:"lineHeights"},letterSpacing:{values:"letterSpacings"},textIndent:{values:"spacing"},truncate:{values:{type:"boolean"},transform:e=>!0===e?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{}},lineClamp:{transform:e=>"none"===e?{WebkitLineClamp:"unset"}:{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",textWrap:"wrap"}},srOnly:{values:{type:"boolean"},transform:e=>v[e]||{}},debug:{values:{type:"boolean"},transform:e=>e?{outline:"1px solid blue !important","& > *":{outline:"1px solid red !important"}}:{}},caretColor:{values:p,transform:(0,r.U)("caretColor")},cursor:{values:"cursor"}}}),v={true:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},false:{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto",whiteSpace:"normal"}};var m=n(97168);let b="var(--chakra-empty,/*!*/ /*!*/)",y=(0,i.tt)({"*":{fontFeatureSettings:'"cv11"',"--ring-inset":b,"--ring-offset-width":"0px","--ring-offset-color":"#fff","--ring-color":"rgba(66, 153, 225, 0.6)","--ring-offset-shadow":"0 0 #0000","--ring-shadow":"0 0 #0000",...Object.fromEntries(["brightness","contrast","grayscale","hue-rotate","invert","saturate","sepia","drop-shadow"].map(e=>[`--${e}`,b])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,b])),"--global-font-mono":"fonts.mono","--global-font-body":"fonts.body","--global-color-border":"colors.border"},html:{color:"fg",bg:"bg",lineHeight:"1.5",colorPalette:"gray"},"*::placeholder, *[data-placeholder]":{color:"fg.muted/80"},"*::selection":{bg:"colorPalette.emphasized/80"}}),x=(0,i.nf)({"fill.muted":{value:{background:"colorPalette.muted",color:"colorPalette.fg"}},"fill.subtle":{value:{background:"colorPalette.subtle",color:"colorPalette.fg"}},"fill.surface":{value:{background:"colorPalette.subtle",color:"colorPalette.fg",boxShadow:"0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.muted"}},"fill.solid":{value:{background:"colorPalette.solid",color:"colorPalette.contrast"}},"outline.subtle":{value:{color:"colorPalette.fg",boxShadow:"inset 0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.subtle"}},"outline.solid":{value:{borderWidth:"1px",borderColor:"colorPalette.solid",color:"colorPalette.fg"}},"indicator.bottom":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",bottom:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.top":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",top:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.start":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineStart:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.end":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineEnd:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},disabled:{value:{opacity:"0.5",cursor:"not-allowed"}},none:{value:{}}}),w=(0,i.Yw)({"slide-fade-in":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-from-bottom, fade-in"},"&[data-placement^=bottom]":{animationName:"slide-from-top, fade-in"},"&[data-placement^=left]":{animationName:"slide-from-right, fade-in"},"&[data-placement^=right]":{animationName:"slide-from-left, fade-in"}}},"slide-fade-out":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-to-bottom, fade-out"},"&[data-placement^=bottom]":{animationName:"slide-to-top, fade-out"},"&[data-placement^=left]":{animationName:"slide-to-right, fade-out"},"&[data-placement^=right]":{animationName:"slide-to-left, fade-out"}}},"scale-fade-in":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-in, fade-in"}},"scale-fade-out":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-out, fade-out"}}}),S=(0,i.g3)({className:"chakra-badge",base:{display:"inline-flex",alignItems:"center",borderRadius:"l2",gap:"1",fontWeight:"medium",fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap",userSelect:"none"},variants:{variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg"},outline:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},plain:{color:"colorPalette.fg"}},size:{xs:{textStyle:"2xs",px:"1",minH:"4"},sm:{textStyle:"xs",px:"1.5",minH:"5"},md:{textStyle:"sm",px:"2",minH:"6"},lg:{textStyle:"sm",px:"2.5",minH:"7"}}},defaultVariants:{variant:"subtle",size:"sm"}}),E=(0,i.g3)({className:"chakra-button",base:{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",borderRadius:"l2",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"medium",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"6",minW:"6",textStyle:"xs",px:"2",gap:"1",_icon:{width:"3.5",height:"3.5"}},xs:{h:"8",minW:"8",textStyle:"xs",px:"2.5",gap:"1",_icon:{width:"4",height:"4"}},sm:{h:"9",minW:"9",px:"3.5",textStyle:"sm",gap:"2",_icon:{width:"4",height:"4"}},md:{h:"10",minW:"10",textStyle:"sm",px:"4",gap:"2",_icon:{width:"5",height:"5"}},lg:{h:"11",minW:"11",textStyle:"md",px:"5",gap:"3",_icon:{width:"5",height:"5"}},xl:{h:"12",minW:"12",textStyle:"md",px:"5",gap:"2.5",_icon:{width:"5",height:"5"}},"2xl":{h:"16",minW:"16",textStyle:"lg",px:"7",gap:"3",_icon:{width:"6",height:"6"}}},variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"transparent",_hover:{bg:"colorPalette.solid/90"},_expanded:{bg:"colorPalette.solid/90"}},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"transparent",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},outline:{borderWidth:"1px",borderColor:"colorPalette.muted",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},ghost:{bg:"transparent",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},plain:{color:"colorPalette.fg"}}},defaultVariants:{size:"md",variant:"solid"}}),k=(0,i.g3)({className:"chakra-checkmark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"l1",cursor:"checkbox",focusVisibleRing:"outside",_icon:{boxSize:"full"},_invalid:{colorPalette:"red",borderColor:"border.error"},_disabled:{opacity:"0.5",cursor:"disabled"}},variants:{size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5",p:"0.5"},lg:{boxSize:"6",p:"0.5"}},variant:{solid:{borderColor:"border.emphasized","&:is([data-state=checked], [data-state=indeterminate])":{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},outline:{borderColor:"border","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg",borderColor:"colorPalette.solid"}},subtle:{bg:"colorPalette.muted",borderColor:"colorPalette.muted","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},plain:{"&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},inverted:{borderColor:"border",color:"colorPalette.fg","&:is([data-state=checked], [data-state=indeterminate])":{borderColor:"colorPalette.solid"}}}},defaultVariants:{variant:"solid",size:"md"}}),{variants:C,defaultVariants:O}=S,I=(0,i.g3)({className:"chakra-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"l2"},variants:C,defaultVariants:O}),_=(0,i.g3)({className:"color-swatch",base:{boxSize:"var(--swatch-size)",shadow:"inset 0 0 0 1px rgba(0, 0, 0, 0.1)","--checker-size":"8px","--checker-bg":"colors.bg","--checker-fg":"colors.bg.emphasized",background:"linear-gradient(var(--color), var(--color)), repeating-conic-gradient(var(--checker-fg) 0%, var(--checker-fg) 25%, var(--checker-bg) 0%, var(--checker-bg) 50%) 0% 50% / var(--checker-size) var(--checker-size) !important",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},variants:{size:{"2xs":{"--swatch-size":"sizes.3.5"},xs:{"--swatch-size":"sizes.4"},sm:{"--swatch-size":"sizes.4.5"},md:{"--swatch-size":"sizes.5"},lg:{"--swatch-size":"sizes.6"},xl:{"--swatch-size":"sizes.7"},"2xl":{"--swatch-size":"sizes.8"},inherit:{"--swatch-size":"inherit"},full:{"--swatch-size":"100%"}},shape:{square:{borderRadius:"none"},circle:{borderRadius:"full"},rounded:{borderRadius:"l1"}}},defaultVariants:{size:"md",shape:"rounded"}}),T=(0,i.g3)({className:"chakra-container",base:{position:"relative",maxWidth:"8xl",w:"100%",mx:"auto",px:{base:"4",md:"6",lg:"8"}},variants:{centerContent:{true:{display:"flex",flexDirection:"column",alignItems:"center"}},fluid:{true:{maxWidth:"full"}}}}),P=(0,i.g3)({className:"chakra-heading",base:{fontFamily:"heading",fontWeight:"semibold"},variants:{size:{xs:{textStyle:"xs"},sm:{textStyle:"sm"},md:{textStyle:"md"},lg:{textStyle:"lg"},xl:{textStyle:"xl"},"2xl":{textStyle:"2xl"},"3xl":{textStyle:"3xl"},"4xl":{textStyle:"4xl"},"5xl":{textStyle:"5xl"},"6xl":{textStyle:"6xl"},"7xl":{textStyle:"7xl"}}},defaultVariants:{size:"xl"}}),R=(0,i.g3)({className:"chakra-icon",base:{display:"inline-block",lineHeight:"1em",flexShrink:"0",color:"currentcolor",verticalAlign:"middle"},variants:{size:{inherit:{},xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"},xl:{boxSize:"7"},"2xl":{boxSize:"8"}}},defaultVariants:{size:"inherit"}}),A=(0,i.g3)({className:"chakra-input",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},height:"var(--input-height)",minW:"var(--input-height)","--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{"2xs":{textStyle:"xs",px:"2","--input-height":"sizes.7"},xs:{textStyle:"xs",px:"2","--input-height":"sizes.8"},sm:{textStyle:"sm",px:"2.5","--input-height":"sizes.9"},md:{textStyle:"sm",px:"3","--input-height":"sizes.10"},lg:{textStyle:"md",px:"4","--input-height":"sizes.11"},xl:{textStyle:"md",px:"4.5","--input-height":"sizes.12"},"2xl":{textStyle:"lg",px:"5","--input-height":"sizes.16"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)",_invalid:{borderColor:"var(--error-color)",boxShadow:"0px 1px 0px 0px var(--error-color)"}}}}},defaultVariants:{size:"md",variant:"outline"}}),N=(0,i.g3)({className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:A.variants.size,variant:{outline:{borderWidth:"1px",borderColor:"border",bg:"bg.muted"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.emphasized"},flushed:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}},defaultVariants:{size:"md",variant:"outline"}}),M=(0,i.g3)({className:"chakra-kbd",base:{display:"inline-flex",alignItems:"center",fontWeight:"medium",fontFamily:"mono",flexShrink:"0",whiteSpace:"nowrap",wordSpacing:"-0.5em",userSelect:"none",px:"1",borderRadius:"l2"},variants:{variant:{raised:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderWidth:"1px",borderBottomWidth:"2px",borderColor:"colorPalette.muted"},outline:{borderWidth:"1px",color:"colorPalette.fg"},subtle:{bg:"colorPalette.muted",color:"colorPalette.fg"},plain:{color:"colorPalette.fg"}},size:{sm:{textStyle:"xs",height:"4.5"},md:{textStyle:"sm",height:"5"},lg:{textStyle:"md",height:"6"}}},defaultVariants:{size:"md",variant:"raised"}}),L=(0,i.g3)({className:"chakra-link",base:{display:"inline-flex",alignItems:"center",outline:"none",gap:"1.5",cursor:"pointer",borderRadius:"l1",focusRing:"outside"},variants:{variant:{underline:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"},plain:{color:"colorPalette.fg",_hover:{textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"}}}},defaultVariants:{variant:"plain"}}),V=(0,i.g3)({className:"chakra-mark",base:{bg:"transparent",color:"inherit",whiteSpace:"nowrap"},variants:{variant:{subtle:{bg:"colorPalette.subtle",color:"inherit"},solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},text:{fontWeight:"medium"},plain:{}}}}),D=(0,i.g3)({className:"chakra-radiomark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,verticalAlign:"top",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"full",cursor:"radio",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing",outlineOffset:"2px"},_invalid:{colorPalette:"red",borderColor:"red.500"},_disabled:{opacity:"0.5",cursor:"disabled"},"& .dot":{height:"100%",width:"100%",borderRadius:"full",bg:"currentColor",scale:"0.4"}},variants:{variant:{solid:{borderWidth:"1px",borderColor:"border.emphasized",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},subtle:{borderWidth:"1px",bg:"colorPalette.muted",borderColor:"colorPalette.muted",color:"transparent",_checked:{color:"colorPalette.fg"}},outline:{borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.fg",borderColor:"colorPalette.solid"},"& .dot":{scale:"0.6"}},inverted:{bg:"bg",borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.solid",borderColor:"currentcolor"}}},size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"}}},defaultVariants:{variant:"solid",size:"md"}}),F=(0,i.g3)({className:"chakra-separator",base:{display:"block",borderColor:"border"},variants:{variant:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"},dotted:{borderStyle:"dotted"}},orientation:{vertical:{borderInlineStartWidth:"var(--separator-thickness)"},horizontal:{borderTopWidth:"var(--separator-thickness)"}},size:{xs:{"--separator-thickness":"0.5px"},sm:{"--separator-thickness":"1px"},md:{"--separator-thickness":"2px"},lg:{"--separator-thickness":"3px"}}},defaultVariants:{size:"sm",variant:"solid",orientation:"horizontal"}}),j=(0,i.g3)({className:"chakra-skeleton",base:{},variants:{loading:{true:{borderRadius:"l2",boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none",flexShrink:"0","&::before, &::after, *":{visibility:"hidden"}},false:{background:"unset",animation:"fade-in var(--fade-duration, 0.1s) ease-out !important"}},variant:{pulse:{background:"bg.emphasized",animation:"pulse",animationDuration:"var(--duration, 1.2s)"},shine:{"--animate-from":"200%","--animate-to":"-200%","--start-color":"colors.bg.muted","--end-color":"colors.bg.emphasized",backgroundImage:"linear-gradient(270deg,var(--start-color),var(--end-color),var(--end-color),var(--start-color))",backgroundSize:"400% 100%",animation:"bg-position var(--duration, 5s) ease-in-out infinite"},none:{animation:"none"}}},defaultVariants:{variant:"pulse",loading:!0}}),z=(0,i.g3)({className:"chakra-skip-nav",base:{display:"inline-flex",bg:"bg.panel",padding:"2.5",borderRadius:"l2",fontWeight:"semibold",focusVisibleRing:"outside",textStyle:"sm",userSelect:"none",border:"0",height:"1px",width:"1px",margin:"-1px",outline:"0",overflow:"hidden",position:"absolute",clip:"rect(0 0 0 0)",_focusVisible:{clip:"auto",width:"auto",height:"auto",position:"fixed",top:"6",insetStart:"6"}}}),B=(0,i.g3)({className:"chakra-spinner",base:{display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderWidth:"2px",borderRadius:"full",width:"var(--spinner-size)",height:"var(--spinner-size)",animation:"spin",animationDuration:"slowest","--spinner-track-color":"transparent",borderBottomColor:"var(--spinner-track-color)",borderInlineStartColor:"var(--spinner-track-color)"},variants:{size:{inherit:{"--spinner-size":"1em"},xs:{"--spinner-size":"sizes.3"},sm:{"--spinner-size":"sizes.4"},md:{"--spinner-size":"sizes.5"},lg:{"--spinner-size":"sizes.8"},xl:{"--spinner-size":"sizes.10"}}},defaultVariants:{size:"md"}}),U=(0,i.g3)({className:"chakra-textarea",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{xs:{textStyle:"xs",px:"2",py:"1.5",scrollPaddingBottom:"1.5"},sm:{textStyle:"sm",px:"2.5",py:"2",scrollPaddingBottom:"2"},md:{textStyle:"sm",px:"3",py:"2",scrollPaddingBottom:"2"},lg:{textStyle:"md",px:"4",py:"3",scrollPaddingBottom:"3"},xl:{textStyle:"md",px:"4.5",py:"3.5",scrollPaddingBottom:"3.5"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}}}},defaultVariants:{size:"md",variant:"outline"}}),W=i.eq.colors({bg:{DEFAULT:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},emphasized:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},inverted:{value:{_light:"{colors.black}",_dark:"{colors.white}"}},panel:{value:{_light:"{colors.white}",_dark:"{colors.gray.950}"}},error:{value:{_light:"{colors.red.50}",_dark:"{colors.red.950}"}},warning:{value:{_light:"{colors.orange.50}",_dark:"{colors.orange.950}"}},success:{value:{_light:"{colors.green.50}",_dark:"{colors.green.950}"}},info:{value:{_light:"{colors.blue.50}",_dark:"{colors.blue.950}"}}},fg:{DEFAULT:{value:{_light:"{colors.black}",_dark:"{colors.gray.50}"}},muted:{value:{_light:"{colors.gray.600}",_dark:"{colors.gray.400}"}},subtle:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.500}"}},inverted:{value:{_light:"{colors.gray.50}",_dark:"{colors.black}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.300}"}},success:{value:{_light:"{colors.green.600}",_dark:"{colors.green.300}"}},info:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.300}"}}},border:{DEFAULT:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},inverted:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.400}"}},success:{value:{_light:"{colors.green.500}",_dark:"{colors.green.400}"}},info:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.400}"}}},gray:{contrast:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},fg:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},subtle:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},muted:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},solid:{value:{_light:"{colors.gray.900}",_dark:"{colors.white}"}},focusRing:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.400}"}}},red:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.red.700}",_dark:"{colors.red.300}"}},subtle:{value:{_light:"{colors.red.100}",_dark:"{colors.red.900}"}},muted:{value:{_light:"{colors.red.200}",_dark:"{colors.red.800}"}},emphasized:{value:{_light:"{colors.red.300}",_dark:"{colors.red.700}"}},solid:{value:{_light:"{colors.red.600}",_dark:"{colors.red.600}"}},focusRing:{value:{_light:"{colors.red.500}",_dark:"{colors.red.500}"}}},orange:{contrast:{value:{_light:"white",_dark:"black"}},fg:{value:{_light:"{colors.orange.700}",_dark:"{colors.orange.300}"}},subtle:{value:{_light:"{colors.orange.100}",_dark:"{colors.orange.900}"}},muted:{value:{_light:"{colors.orange.200}",_dark:"{colors.orange.800}"}},emphasized:{value:{_light:"{colors.orange.300}",_dark:"{colors.orange.700}"}},solid:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.500}"}},focusRing:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.500}"}}},green:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.green.700}",_dark:"{colors.green.300}"}},subtle:{value:{_light:"{colors.green.100}",_dark:"{colors.green.900}"}},muted:{value:{_light:"{colors.green.200}",_dark:"{colors.green.800}"}},emphasized:{value:{_light:"{colors.green.300}",_dark:"{colors.green.700}"}},solid:{value:{_light:"{colors.green.600}",_dark:"{colors.green.600}"}},focusRing:{value:{_light:"{colors.green.500}",_dark:"{colors.green.500}"}}},blue:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.blue.700}",_dark:"{colors.blue.300}"}},subtle:{value:{_light:"{colors.blue.100}",_dark:"{colors.blue.900}"}},muted:{value:{_light:"{colors.blue.200}",_dark:"{colors.blue.800}"}},emphasized:{value:{_light:"{colors.blue.300}",_dark:"{colors.blue.700}"}},solid:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.600}"}},focusRing:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.500}"}}},yellow:{contrast:{value:{_light:"black",_dark:"black"}},fg:{value:{_light:"{colors.yellow.800}",_dark:"{colors.yellow.300}"}},subtle:{value:{_light:"{colors.yellow.100}",_dark:"{colors.yellow.900}"}},muted:{value:{_light:"{colors.yellow.200}",_dark:"{colors.yellow.800}"}},emphasized:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.700}"}},solid:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.300}"}},focusRing:{value:{_light:"{colors.yellow.500}",_dark:"{colors.yellow.500}"}}},teal:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.teal.700}",_dark:"{colors.teal.300}"}},subtle:{value:{_light:"{colors.teal.100}",_dark:"{colors.teal.900}"}},muted:{value:{_light:"{colors.teal.200}",_dark:"{colors.teal.800}"}},emphasized:{value:{_light:"{colors.teal.300}",_dark:"{colors.teal.700}"}},solid:{value:{_light:"{colors.teal.600}",_dark:"{colors.teal.600}"}},focusRing:{value:{_light:"{colors.teal.500}",_dark:"{colors.teal.500}"}}},purple:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.purple.700}",_dark:"{colors.purple.300}"}},subtle:{value:{_light:"{colors.purple.100}",_dark:"{colors.purple.900}"}},muted:{value:{_light:"{colors.purple.200}",_dark:"{colors.purple.800}"}},emphasized:{value:{_light:"{colors.purple.300}",_dark:"{colors.purple.700}"}},solid:{value:{_light:"{colors.purple.600}",_dark:"{colors.purple.600}"}},focusRing:{value:{_light:"{colors.purple.500}",_dark:"{colors.purple.500}"}}},pink:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.pink.700}",_dark:"{colors.pink.300}"}},subtle:{value:{_light:"{colors.pink.100}",_dark:"{colors.pink.900}"}},muted:{value:{_light:"{colors.pink.200}",_dark:"{colors.pink.800}"}},emphasized:{value:{_light:"{colors.pink.300}",_dark:"{colors.pink.700}"}},solid:{value:{_light:"{colors.pink.600}",_dark:"{colors.pink.600}"}},focusRing:{value:{_light:"{colors.pink.500}",_dark:"{colors.pink.500}"}}},cyan:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.cyan.700}",_dark:"{colors.cyan.300}"}},subtle:{value:{_light:"{colors.cyan.100}",_dark:"{colors.cyan.900}"}},muted:{value:{_light:"{colors.cyan.200}",_dark:"{colors.cyan.800}"}},emphasized:{value:{_light:"{colors.cyan.300}",_dark:"{colors.cyan.700}"}},solid:{value:{_light:"{colors.cyan.600}",_dark:"{colors.cyan.600}"}},focusRing:{value:{_light:"{colors.cyan.500}",_dark:"{colors.cyan.500}"}}}}),H=i.eq.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),q=i.eq.shadows({xs:{value:{_light:"0px 1px 2px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/20}",_dark:"0px 1px 1px {black/64}, 0px 0px 1px inset {colors.gray.300/20}"}},sm:{value:{_light:"0px 2px 4px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 2px 4px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},md:{value:{_light:"0px 4px 8px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 4px 8px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},lg:{value:{_light:"0px 8px 16px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 8px 16px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},xl:{value:{_light:"0px 16px 24px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 16px 24px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},"2xl":{value:{_light:"0px 24px 40px {colors.gray.900/16}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 24px 40px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},inner:{value:{_light:"inset 0 2px 4px 0 {black/5}",_dark:"inset 0 2px 4px 0 black"}},inset:{value:{_light:"inset 0 0 0 1px {black/5}",_dark:"inset 0 0 0 1px {colors.gray.300/5}"}}});var $=n(61696),G=n(77952),K=Object.defineProperty,Y=(e,t,n)=>((e,t,n)=>t in e?K(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),X={itemToValue:e=>"string"==typeof e?e:(0,G.Gv)(e)&&(0,G.cK)(e,"value")?e.value:"",itemToString:e=>"string"==typeof e?e:(0,G.Gv)(e)&&(0,G.cK)(e,"label")?e.label:X.itemToValue(e),isItemDisabled:e=>!!((0,G.Gv)(e)&&(0,G.cK)(e,"disabled"))&&!!e.disabled},Q=class e{constructor(t){this.options=t,Y(this,"items"),Y(this,"copy",t=>new e({...this.options,items:t??[...this.items]})),Y(this,"isEqual",e=>(0,G.n4)(this.items,e.items)),Y(this,"setItems",e=>this.copy(e)),Y(this,"getValues",(e=this.items)=>Array.from(e).map(e=>this.getItemValue(e)).filter(Boolean)),Y(this,"find",e=>{if(null==e)return null;let t=this.indexOf(e);return null!=t?this.at(t):null}),Y(this,"findMany",e=>Array.from(e).map(e=>this.find(e)).filter(e=>null!=e)),Y(this,"at",e=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[e]??null;let t=0;for(let[,n]of this.group())for(let r of n){if(t===e)return r;t++}return null}),Y(this,"sortFn",(e,t)=>(this.indexOf(e)??0)-(this.indexOf(t)??0)),Y(this,"sort",e=>[...e].sort(this.sortFn.bind(this))),Y(this,"getItemValue",e=>null==e?null:this.options.itemToValue?.(e)??X.itemToValue(e)),Y(this,"getItemDisabled",e=>null!=e&&(this.options.isItemDisabled?.(e)??X.isItemDisabled(e))),Y(this,"stringifyItem",e=>null==e?null:this.options.itemToString?.(e)??X.itemToString(e)),Y(this,"stringify",e=>null==e?null:this.stringifyItem(this.find(e))),Y(this,"stringifyItems",(e,t=", ")=>Array.from(e).map(e=>this.stringifyItem(e)).filter(Boolean).join(t)),Y(this,"stringifyMany",(e,t)=>this.stringifyItems(this.findMany(e),t)),Y(this,"has",e=>-1!==this.indexOf(e)),Y(this,"hasItem",e=>null!=e&&this.has(this.getItemValue(e))),Y(this,"group",()=>{let{groupBy:e,groupSort:t}=this.options;if(!e)return[["",[...this.items]]];let n=new Map;this.items.forEach((t,r)=>{let i=e(t,r);n.has(i)||n.set(i,[]),n.get(i).push(t)});let r=Array.from(n.entries());return t&&r.sort(([e],[n])=>{if("function"==typeof t)return t(e,n);if(Array.isArray(t)){let r=t.indexOf(e),i=t.indexOf(n);return -1===r?1:-1===i?-1:r-i}return"asc"===t?e.localeCompare(n):"desc"===t?n.localeCompare(e):0}),r}),Y(this,"getNextValue",(e,t=1,n=!1)=>{let r=this.indexOf(e);if(-1===r)return null;for(r=n?Math.min(r+t,this.size-1):r+t;r<=this.size&&this.getItemDisabled(this.at(r));)r++;return this.getItemValue(this.at(r))}),Y(this,"getPreviousValue",(e,t=1,n=!1)=>{let r=this.indexOf(e);if(-1===r)return null;for(r=n?Math.max(r-t,0):r-t;r>=0&&this.getItemDisabled(this.at(r));)r--;return this.getItemValue(this.at(r))}),Y(this,"indexOf",e=>{if(null==e)return -1;if(!this.options.groupBy&&!this.options.groupSort)return this.items.findIndex(t=>this.getItemValue(t)===e);let t=0;for(let[,n]of this.group())for(let r of n){if(this.getItemValue(r)===e)return t;t++}return -1}),Y(this,"getByText",(e,t)=>{let n=null!=t?Z(this.items,this.indexOf(t)):this.items;return 1===e.length&&(n=n.filter(e=>this.getItemValue(e)!==t)),n.find(t=>J(this.stringifyItem(t),e))}),Y(this,"search",(e,t)=>{let{state:n,currentValue:r,timeout:i=350}=t,o=n.keysSoFar+e,a=o.length>1&&Array.from(o).every(e=>e===o[0])?o[0]:o,s=this.getByText(a,r),l=this.getItemValue(s);function u(){clearTimeout(n.timer),n.timer=-1}return!function e(t){n.keysSoFar=t,u(),""!==t&&(n.timer=+setTimeout(()=>{e(""),u()},i))}(o),l}),Y(this,"update",(e,t)=>{let n=this.indexOf(e);return -1===n?this:this.copy([...this.items.slice(0,n),t,...this.items.slice(n+1)])}),Y(this,"upsert",(e,t,n="append")=>{let r=this.indexOf(e);return -1===r?("append"===n?this.append:this.prepend)(t):this.copy([...this.items.slice(0,r),t,...this.items.slice(r+1)])}),Y(this,"insert",(e,...t)=>this.copy(ee(this.items,e,...t))),Y(this,"insertBefore",(e,...t)=>{let n=this.indexOf(e);if(-1===n)if(0!==this.items.length)return this;else n=0;return this.copy(ee(this.items,n,...t))}),Y(this,"insertAfter",(e,...t)=>{let n=this.indexOf(e);if(-1===n)if(0!==this.items.length)return this;else n=0;return this.copy(ee(this.items,n+1,...t))}),Y(this,"prepend",(...e)=>this.copy(ee(this.items,0,...e))),Y(this,"append",(...e)=>this.copy(ee(this.items,this.items.length,...e))),Y(this,"filter",e=>{let t=this.items.filter((t,n)=>e(this.stringifyItem(t),n,t));return this.copy(t)}),Y(this,"remove",(...e)=>{let t=e.map(e=>"string"==typeof e?e:this.getItemValue(e));return this.copy(this.items.filter(e=>{let n=this.getItemValue(e);return null!=n&&!t.includes(n)}))}),Y(this,"move",(e,t)=>{let n=this.indexOf(e);return -1===n?this:this.copy(et(this.items,[n],t))}),Y(this,"moveBefore",(e,...t)=>{let n=this.items.findIndex(t=>this.getItemValue(t)===e);if(-1===n)return this;let r=t.map(e=>this.items.findIndex(t=>this.getItemValue(t)===e)).sort((e,t)=>e-t);return this.copy(et(this.items,r,n))}),Y(this,"moveAfter",(e,...t)=>{let n=this.items.findIndex(t=>this.getItemValue(t)===e);if(-1===n)return this;let r=t.map(e=>this.items.findIndex(t=>this.getItemValue(t)===e)).sort((e,t)=>e-t);return this.copy(et(this.items,r,n+1))}),Y(this,"reorder",(e,t)=>this.copy(et(this.items,[e],t))),Y(this,"compareValue",(e,t)=>{let n=this.indexOf(e),r=this.indexOf(t);return n<r?-1:+(n>r)}),Y(this,"range",(e,t)=>{let n=[],r=e;for(;null!=r;){if(this.find(r)&&n.push(r),r===t)return n;r=this.getNextValue(r)}return[]}),Y(this,"getValueRange",(e,t)=>e&&t?0>=this.compareValue(e,t)?this.range(e,t):this.range(t,e):[]),Y(this,"toString",()=>{let e="";for(let t of this.items){let n=this.getItemValue(t);e+=[n,this.stringifyItem(t),this.getItemDisabled(t)].filter(Boolean).join(":")+","}return e}),Y(this,"toJSON",()=>({size:this.size,first:this.firstValue,last:this.lastValue})),this.items=[...t.items]}get size(){return this.items.length}get firstValue(){let e=0;for(;this.getItemDisabled(this.at(e));)e++;return this.getItemValue(this.at(e))}get lastValue(){let e=this.size-1;for(;this.getItemDisabled(this.at(e));)e--;return this.getItemValue(this.at(e))}*[Symbol.iterator](){yield*this.items}},J=(e,t)=>!!e?.toLowerCase().startsWith(t.toLowerCase()),Z=(e,t)=>e.map((n,r)=>e[(Math.max(t,0)+r)%e.length]);function ee(e,t,...n){return[...e.slice(0,t),...n,...e.slice(t)]}function et(e,t,n){let r=(t=[...t].sort((e,t)=>e-t)).map(t=>e[t]);for(let n=t.length-1;n>=0;n--)e=[...e.slice(0,t[n]),...e.slice(t[n]+1)];return n=Math.max(0,n-t.filter(e=>e<n).length),[...e.slice(0,n),...r,...e.slice(n)]}function en(e,t,n){for(let r=0;r<t.length;r++)e=n.getChildren(e,t.slice(r+1))[t[r]];return e}function er(e,t){for(let n=0;n<Math.min(e.length,t.length);n++){if(e[n]<t[n])return -1;if(e[n]>t[n])return 1}return e.length-t.length}function ei(e,t){let n;return ed(e,{onEnter:(e,r)=>{if(t.predicate(e,r))return n=[...r],"stop"},getChildren:t.getChildren}),n}function eo(){return{type:"replace"}}function ea(e){return[e.slice(0,-1),e[e.length-1]]}function es(e,t,n=new Map){let[r,i]=ea(e);for(let e=r.length-1;e>=0;e--){let t=r.slice(0,e).join();n.get(t)?.type!=="remove"&&n.set(t,eo())}let o=n.get(r.join());if(o?.type==="remove")n.set(r.join(),{type:"removeThenInsert",removeIndexes:o.indexes,insertIndex:i,insertNodes:t});else n.set(r.join(),{type:"insert",index:i,nodes:t});return n}function el(e){let t=new Map,n=new Map;for(let t of e){let e=t.slice(0,-1).join(),r=n.get(e)??[];r.push(t[t.length-1]),n.set(e,r.sort((e,t)=>e-t))}for(let n of e)for(let e=n.length-2;e>=0;e--){let r=n.slice(0,e).join();t.has(r)||t.set(r,eo())}for(let[e,r]of n)t.set(e,{type:"remove",indexes:r});return t}function eu(e,t,n){var r=e,i={...n,getChildren:(e,r)=>{let i=r.join(),o=t.get(i);switch(o?.type){case"replace":case"remove":case"removeThenInsert":case"insert":return n.getChildren(e,r);default:return[]}},transform:(e,r,i)=>{let o=i.join(),a=t.get(o);switch(a?.type){case"remove":return n.create(e,r.filter((e,t)=>!a.indexes.includes(t)),i);case"removeThenInsert":let s=r.filter((e,t)=>!a.removeIndexes.includes(t)),l=a.removeIndexes.reduce((e,t)=>t<e?e-1:e,a.insertIndex);return n.create(e,ec(s,l,0,...a.insertNodes),i);case"insert":return n.create(e,ec(r,a.index,0,...a.nodes),i);case"replace":return n.create(e,r,i);default:return e}}};let o={};return ed(r,{...i,onLeave:(e,t)=>{let n=[0,...t],r=n.join(),a=i.transform(e,o[r]??[],t),s=n.slice(0,-1).join(),l=o[s]??[];l.push(a),o[s]=l}}),o[""][0]}function ec(e,t,n,...r){return[...e.slice(0,t),...r,...e.slice(t+n)]}function ed(e,t){let{onEnter:n,onLeave:r,getChildren:i}=t,o=[],a=[{node:e}],s=t.reuseIndexPath?()=>o:()=>o.slice();for(;a.length>0;){let e=a[a.length-1];if(void 0===e.state){let t=n?.(e.node,s());if("stop"===t)return;e.state="skip"===t?-1:0}let t=e.children||i(e.node,s());if(e.children||(e.children=t),-1!==e.state){if(e.state<t.length){let n=e.state;o.push(n),a.push({node:t[n]}),e.state=n+1;continue}if("stop"===r?.(e.node,s()))return}o.pop(),a.pop()}}(class e extends Set{constructor(t=[]){super(t),Y(this,"selectionMode","single"),Y(this,"deselectable",!0),Y(this,"copy",()=>{let t=new e([...this]);return this.sync(t)}),Y(this,"sync",e=>(e.selectionMode=this.selectionMode,e.deselectable=this.deselectable,e)),Y(this,"isEmpty",()=>0===this.size),Y(this,"isSelected",e=>"none"!==this.selectionMode&&null!=e&&this.has(e)),Y(this,"canSelect",(e,t)=>"none"!==this.selectionMode||!e.getItemDisabled(e.find(t))),Y(this,"firstSelectedValue",e=>{let t=null;for(let n of this)(!t||0>e.compareValue(n,t))&&(t=n);return t}),Y(this,"lastSelectedValue",e=>{let t=null;for(let n of this)(!t||e.compareValue(n,t)>0)&&(t=n);return t}),Y(this,"extendSelection",(e,t,n)=>{if("none"===this.selectionMode)return this;if("single"===this.selectionMode)return this.replaceSelection(e,n);let r=this.copy(),i=Array.from(this).pop();for(let o of e.getValueRange(t,i??n))r.delete(o);for(let i of e.getValueRange(n,t))this.canSelect(e,i)&&r.add(i);return r}),Y(this,"toggleSelection",(e,t)=>{if("none"===this.selectionMode)return this;if("single"===this.selectionMode&&!this.isSelected(t))return this.replaceSelection(e,t);let n=this.copy();return n.has(t)?n.delete(t):n.canSelect(e,t)&&n.add(t),n}),Y(this,"replaceSelection",(t,n)=>{if("none"===this.selectionMode||null==n||!this.canSelect(t,n))return this;let r=new e([n]);return this.sync(r)}),Y(this,"setSelection",t=>{if("none"===this.selectionMode)return this;let n=new e;for(let e of t)if(null!=e&&(n.add(e),"single"===this.selectionMode))break;return this.sync(n)}),Y(this,"clearSelection",()=>{let e=this.copy();return e.deselectable&&e.size>0&&e.clear(),e}),Y(this,"select",(e,t,n)=>{if("none"===this.selectionMode)return this;if("single"===this.selectionMode)if(this.isSelected(t)&&this.deselectable)return this.toggleSelection(e,t);else return this.replaceSelection(e,t);return"multiple"===this.selectionMode||n?this.toggleSelection(e,t):this.replaceSelection(e,t)}),Y(this,"deselect",e=>{let t=this.copy();return t.delete(e),t}),Y(this,"isEqual",e=>(0,G.n4)(Array.from(this),Array.from(e)))}});var ef=class e{constructor(t){this.options=t,Y(this,"rootNode"),Y(this,"isEqual",e=>(0,G.n4)(this.rootNode,e.rootNode)),Y(this,"getNodeChildren",e=>this.options.nodeToChildren?.(e)??eh.nodeToChildren(e)??[]),Y(this,"resolveIndexPath",e=>"string"==typeof e?this.getIndexPath(e):e),Y(this,"resolveNode",e=>{let t=this.resolveIndexPath(e);return t?this.at(t):void 0}),Y(this,"getNodeChildrenCount",e=>this.options.nodeToChildrenCount?.(e)??eh.nodeToChildrenCount(e)),Y(this,"getNodeValue",e=>this.options.nodeToValue?.(e)??eh.nodeToValue(e)),Y(this,"getNodeDisabled",e=>this.options.isNodeDisabled?.(e)??eh.isNodeDisabled(e)),Y(this,"stringify",e=>{let t=this.findNode(e);return t?this.stringifyNode(t):null}),Y(this,"stringifyNode",e=>this.options.nodeToString?.(e)??eh.nodeToString(e)),Y(this,"getFirstNode",(e=this.rootNode)=>{let t;return ed(e,{getChildren:this.getNodeChildren,onEnter:(e,n)=>{if(!t&&n.length>0&&!this.getNodeDisabled(e))return t=e,"stop"}}),t}),Y(this,"getLastNode",(e=this.rootNode,t={})=>{let n;return ed(e,{getChildren:this.getNodeChildren,onEnter:(r,i)=>{if(!this.isSameNode(r,e)){if(t.skip?.({value:this.getNodeValue(r),node:r,indexPath:i}))return"skip";i.length>0&&!this.getNodeDisabled(r)&&(n=r)}}}),n}),Y(this,"at",e=>en(this.rootNode,e,{getChildren:this.getNodeChildren})),Y(this,"findNode",(e,t=this.rootNode)=>(function(e,t){let n;return ed(e,{...t,onEnter:(e,r)=>{if(t.predicate(e,r))return n=e,"stop"}}),n})(t,{getChildren:this.getNodeChildren,predicate:t=>this.getNodeValue(t)===e})),Y(this,"findNodes",(e,t=this.rootNode)=>{let n=new Set(e.filter(e=>null!=e));return function(e,t){let n=[];return ed(e,{onEnter:(e,r)=>{t.predicate(e,r)&&n.push(e)},getChildren:t.getChildren}),n}(t,{getChildren:this.getNodeChildren,predicate:e=>n.has(this.getNodeValue(e))})}),Y(this,"sort",e=>e.reduce((e,t)=>{let n=this.getIndexPath(t);return n&&e.push({value:t,indexPath:n}),e},[]).sort((e,t)=>er(e.indexPath,t.indexPath)).map(({value:e})=>e)),Y(this,"getIndexPath",e=>ei(this.rootNode,{getChildren:this.getNodeChildren,predicate:t=>this.getNodeValue(t)===e})),Y(this,"getValue",e=>{let t=this.at(e);return t?this.getNodeValue(t):void 0}),Y(this,"getValuePath",e=>{if(!e)return[];let t=[],n=[...e];for(;n.length>0;){let e=this.at(n);e&&t.unshift(this.getNodeValue(e)),n.pop()}return t}),Y(this,"getDepth",e=>{let t=ei(this.rootNode,{getChildren:this.getNodeChildren,predicate:t=>this.getNodeValue(t)===e});return t?.length??0}),Y(this,"isSameNode",(e,t)=>this.getNodeValue(e)===this.getNodeValue(t)),Y(this,"isRootNode",e=>this.isSameNode(e,this.rootNode)),Y(this,"contains",(e,t)=>!!e&&!!t&&t.slice(0,e.length).every((n,r)=>e[r]===t[r])),Y(this,"getNextNode",(e,t={})=>{let n,r=!1;return ed(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(i,o)=>{if(this.isRootNode(i))return;let a=this.getNodeValue(i);return t.skip?.({value:a,node:i,indexPath:o})?(a===e&&(r=!0),"skip"):r&&!this.getNodeDisabled(i)?(n=i,"stop"):void(a===e&&(r=!0))}}),n}),Y(this,"getPreviousNode",(e,t={})=>{let n,r=!1;return ed(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(i,o)=>{if(this.isRootNode(i))return;let a=this.getNodeValue(i);return t.skip?.({value:a,node:i,indexPath:o})?"skip":a===e?(r=!0,"stop"):void(!this.getNodeDisabled(i)&&(n=i))}}),r?n:void 0}),Y(this,"getParentNodes",e=>{let t=this.resolveIndexPath(e)?.slice();if(!t)return[];let n=[];for(;t.length>0;){t.pop();let e=this.at(t);e&&!this.isRootNode(e)&&n.unshift(e)}return n}),Y(this,"getDescendantNodes",(e,t)=>{let n=this.resolveNode(e);if(!n)return[];let r=[];return ed(n,{getChildren:this.getNodeChildren,onEnter:(e,n)=>{0!==n.length&&(!t?.withBranch&&this.isBranchNode(e)||r.push(e))}}),r}),Y(this,"getDescendantValues",(e,t)=>this.getDescendantNodes(e,t).map(e=>this.getNodeValue(e))),Y(this,"getParentIndexPath",e=>e.slice(0,-1)),Y(this,"getParentNode",e=>{let t=this.resolveIndexPath(e);return t?this.at(this.getParentIndexPath(t)):void 0}),Y(this,"visit",e=>{let{skip:t,...n}=e;ed(this.rootNode,{...n,getChildren:this.getNodeChildren,onEnter:(e,r)=>{if(!this.isRootNode(e))return t?.({value:this.getNodeValue(e),node:e,indexPath:r})?"skip":n.onEnter?.(e,r)}})}),Y(this,"getPreviousSibling",e=>{let t=this.getParentNode(e);if(!t)return;let n=this.getNodeChildren(t),r=e[e.length-1];for(;--r>=0;){let e=n[r];if(!this.getNodeDisabled(e))return e}}),Y(this,"getNextSibling",e=>{let t=this.getParentNode(e);if(!t)return;let n=this.getNodeChildren(t),r=e[e.length-1];for(;++r<n.length;){let e=n[r];if(!this.getNodeDisabled(e))return e}}),Y(this,"getSiblingNodes",e=>{let t=this.getParentNode(e);return t?this.getNodeChildren(t):[]}),Y(this,"getValues",(e=this.rootNode)=>(function(e,t){var n;let r;return r=(n={...t,initialResult:[],nextResult:(e,n,r)=>(e.push(...t.transform(n,r)),e)}).initialResult,ed(e,{...n,onEnter:(e,t)=>{r=n.nextResult(r,e,t)}}),r})(e,{getChildren:this.getNodeChildren,transform:e=>[this.getNodeValue(e)]}).slice(1)),Y(this,"isValidDepth",(e,t)=>null==t||("function"==typeof t?t(e.length):e.length===t)),Y(this,"isBranchNode",e=>this.getNodeChildren(e).length>0||null!=this.getNodeChildrenCount(e)),Y(this,"getBranchValues",(e=this.rootNode,t={})=>{let n=[];return ed(e,{getChildren:this.getNodeChildren,onEnter:(e,r)=>{if(0===r.length)return;let i=this.getNodeValue(e);if(t.skip?.({value:i,node:e,indexPath:r}))return"skip";this.isBranchNode(e)&&this.isValidDepth(r,t.depth)&&n.push(this.getNodeValue(e))}}),n}),Y(this,"flatten",(e=this.rootNode)=>(function(e,t){let n=[],r=0,i=new Map,o=new Map;return ed(e,{getChildren:t.getChildren,onEnter:(e,a)=>{i.has(e)||i.set(e,r++);let s=t.getChildren(e,a);s.forEach(t=>{o.has(t)||o.set(t,e),i.has(t)||i.set(t,r++)});let l=s.length>0?s.map(e=>i.get(e)):void 0,u=o.get(e),c=u?i.get(u):void 0,d=i.get(e);n.push({...e,_children:l,_parent:c,_index:d})}}),n})(e,{getChildren:this.getNodeChildren})),Y(this,"_create",(e,t)=>this.getNodeChildren(e).length>0||t.length>0?{...e,children:t}:{...e}),Y(this,"_insert",(e,t,n)=>this.copy(function(e,t){let{nodes:n,at:r}=t;if(0===r.length)throw Error("Can't insert nodes at the root");return eu(e,es(r,n),t)}(e,{at:t,nodes:n,getChildren:this.getNodeChildren,create:this._create}))),Y(this,"copy",t=>new e({...this.options,rootNode:t})),Y(this,"_replace",(e,t,n)=>this.copy(function(e,t){return 0===t.at.length?t.node:eu(e,function(e,t){let n=new Map,[r,i]=ea(e);for(let e=r.length-1;e>=0;e--){let t=r.slice(0,e).join();n.set(t,eo())}return n.set(r.join(),{type:"removeThenInsert",removeIndexes:[i],insertIndex:i,insertNodes:[t]}),n}(t.at,t.node),t)}(e,{at:t,node:n,getChildren:this.getNodeChildren,create:this._create}))),Y(this,"_move",(e,t,n)=>this.copy(function(e,t){if(0===t.indexPaths.length)return e;for(let e of t.indexPaths)if(0===e.length)throw Error("Can't move the root node");if(0===t.to.length)throw Error("Can't move nodes to the root");let n=function(e){let t=e.sort(er),n=[],r=new Set;for(let e of t){let t=e.join();r.has(t)||(r.add(t),n.push(e))}return n}(t.indexPaths),r=n.map(n=>en(e,n,t));return eu(e,es(t.to,r,el(n)),t)}(e,{indexPaths:t,to:n,getChildren:this.getNodeChildren,create:this._create}))),Y(this,"_remove",(e,t)=>this.copy(function(e,t){if(0===t.indexPaths.length)return e;for(let e of t.indexPaths)if(0===e.length)throw Error("Can't remove the root node");return eu(e,el(t.indexPaths),t)}(e,{indexPaths:t,getChildren:this.getNodeChildren,create:this._create}))),Y(this,"replace",(e,t)=>this._replace(this.rootNode,e,t)),Y(this,"remove",e=>this._remove(this.rootNode,e)),Y(this,"insertBefore",(e,t)=>this.getParentNode(e)?this._insert(this.rootNode,e,t):void 0),Y(this,"insertAfter",(e,t)=>{if(!this.getParentNode(e))return;let n=[...e.slice(0,-1),e[e.length-1]+1];return this._insert(this.rootNode,n,t)}),Y(this,"move",(e,t)=>this._move(this.rootNode,e,t)),Y(this,"filter",e=>{let t=function(e,t){let{predicate:n,create:r,getChildren:i}=t,o=(e,t)=>{let a=i(e,t),s=[];a.forEach((e,n)=>{let r=o(e,[...t,n]);r&&s.push(r)});let l=0===t.length,u=n(e,t),c=s.length>0;return l||u||c?r(e,s,t):null};return o(e,[])||r(e,[],[])}(this.rootNode,{predicate:e,getChildren:this.getNodeChildren,create:this._create});return this.copy(t)}),Y(this,"toJSON",()=>this.getValues(this.rootNode)),this.rootNode=t.rootNode}},eh={nodeToValue:e=>"string"==typeof e?e:(0,G.Gv)(e)&&(0,G.cK)(e,"value")?e.value:"",nodeToString:e=>"string"==typeof e?e:(0,G.Gv)(e)&&(0,G.cK)(e,"label")?e.label:eh.nodeToValue(e),isNodeDisabled:e=>!!((0,G.Gv)(e)&&(0,G.cK)(e,"disabled"))&&!!e.disabled,nodeToChildren:e=>e.children,nodeToChildrenCount(e){if((0,G.Gv)(e)&&(0,G.cK)(e,"childrenCount"))return e.childrenCount}},ep=n(6280),eg=n(54394),ev=n(40032),em=n(20752),eb=n(73520),ey=n(82136),ex=(0,$.y)("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger");ex.build();var ew=e=>new Q(e);ew.empty=()=>new Q({items:[]});var eS=e=>e.getById((e=>e.ids?.content??`combobox:${e.id}:content`)(e)),eE=e=>e.getById((e=>e.ids?.input??`combobox:${e.id}:input`)(e)),ek=e=>e.getById((e=>e.ids?.positioner??`combobox:${e.id}:popper`)(e)),eC=e=>e.getById((e=>e.ids?.control??`combobox:${e.id}:control`)(e)),eO=e=>e.getById((e=>e.ids?.trigger??`combobox:${e.id}:toggle-btn`)(e)),eI=e=>e.getById((e=>e.ids?.clearTrigger??`combobox:${e.id}:clear-btn`)(e)),e_=(e,t)=>{if(null==t)return;let n=`[role=option][data-value="${CSS.escape(t)}"]`;return(0,ep.P)(eS(e),n)},eT=e=>{let t=eE(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})},{guards:eP,createMachine:eR,choose:eA}=(0,em.mj)(),{and:eN,not:eM}=eP;function eL(e){return(e.previousEvent||e).src}eR({props:({props:e})=>({loopFocus:!0,openOnClick:!1,defaultValue:[],closeOnSelect:!e.multiple,allowCustomValue:!1,inputBehavior:"none",selectionBehavior:e.multiple?"clear":"replace",openOnKeyPress:!0,openOnChange:!0,composite:!0,navigate({node:e}){(0,ep.Il)(e)},collection:ew.empty(),...e,positioning:{placement:"bottom",sameWidth:!0,...e.positioning},translations:{triggerLabel:"Toggle suggestions",clearTriggerLabel:"Clear value",...e.translations}}),initialState:({prop:e})=>e("open")||e("defaultOpen")?"suggesting":"idle",context:({prop:e,bindable:t,getContext:n,getEvent:r})=>({currentPlacement:t(()=>({defaultValue:void 0})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:G.n4,hash:e=>e.join(","),onChange(t){let r=n(),i=r.get("selectedItems"),o=e("collection"),a=t.map(e=>i.find(t=>o.getItemValue(t)===e)||o.find(e));r.set("selectedItems",a),e("onValueChange")?.({value:t,items:a})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(t){let n=e("collection").find(t);e("onHighlightChange")?.({highlightedValue:t,highlightedItem:n})}})),inputValue:t(()=>{let t=e("inputValue")||e("defaultInputValue")||"",n=e("defaultValue")||e("value")||[];if(!t.trim()&&!e("multiple")){let r=e("collection").stringifyMany(n);t=(0,G.YW)(e("selectionBehavior"),{preserve:t||r,replace:r,clear:""})}return{defaultValue:t,value:e("inputValue"),onChange(t){let n=r(),i=(n.previousEvent||n).src;e("onInputValueChange")?.({inputValue:t,reason:i})}}}),highlightedItem:t(()=>{let t=e("highlightedValue");return{defaultValue:e("collection").find(t)}}),selectedItems:t(()=>{let t=e("value")||e("defaultValue")||[];return{defaultValue:e("collection").findMany(t)}})}),computed:{isInputValueEmpty:({context:e})=>0===e.get("inputValue").length,isInteractive:({prop:e})=>!(e("readOnly")||e("disabled")),autoComplete:({prop:e})=>"autocomplete"===e("inputBehavior"),autoHighlight:({prop:e})=>"autohighlight"===e("inputBehavior"),hasSelectedItems:({context:e})=>e.get("value").length>0,valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems")),isCustomValue:({context:e,computed:t})=>e.get("inputValue")!==t("valueAsString")},watch({context:e,prop:t,track:n,action:r,send:i}){n([()=>e.hash("value")],()=>{r(["syncSelectedItems"])}),n([()=>e.get("inputValue")],()=>{r(["syncInputValue"])}),n([()=>e.get("highlightedValue")],()=>{r(["syncHighlightedItem","autofillInputValue"])}),n([()=>t("open")],()=>{r(["toggleVisibility"])}),n([()=>t("collection").toString()],()=>{i({type:"CHILDREN_CHANGE"})})},on:{"SELECTED_ITEMS.SYNC":{actions:["syncSelectedItems"]},"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedValue"]},"HIGHLIGHTED_VALUE.CLEAR":{actions:["clearHighlightedValue"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setValue"]},"INPUT_VALUE.SET":{actions:["setInputValue"]},"POSITIONING.SET":{actions:["reposition"]}},entry:eA([{guard:"autoFocus",actions:["setInitialFocus"]}]),states:{idle:{tags:["idle","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":{target:"interacting"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{target:"focused",actions:["clearInputValue","clearSelectedItems","setInitialFocus"]}}},focused:{tags:["focused","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":[{guard:"isChangeEvent",target:"suggesting"},{target:"interacting"}],"INPUT.CHANGE":[{guard:eN("isOpenControlled","openOnChange"),actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{guard:"openOnChange",target:"suggesting",actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{actions:["setInputValue"]}],"LAYER.INTERACT_OUTSIDE":{target:"idle"},"INPUT.ESCAPE":{guard:eN("isCustomValue",eM("allowCustomValue")),actions:["revertInputValue"]},"INPUT.BLUR":{target:"idle"},"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_DOWN":[{guard:eN("isOpenControlled","autoComplete"),actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"isOpenControlled",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_UP":[{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{actions:["clearInputValue","clearSelectedItems"]}}},interacting:{tags:["open","focused"],entry:["setInitialFocus"],effects:["scrollToHighlightedItem","trackDismissableLayer","trackPlacement","hideOtherElements"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{actions:["scrollToHighlightedItem"]}],"INPUT.HOME":{actions:["highlightFirstItem"]},"INPUT.END":{actions:["highlightLastItem"]},"INPUT.ARROW_DOWN":[{guard:eN("autoComplete","isLastItemHighlighted"),actions:["clearHighlightedValue","scrollContentToTop"]},{actions:["highlightNextItem"]}],"INPUT.ARROW_UP":[{guard:eN("autoComplete","isFirstItemHighlighted"),actions:["clearHighlightedValue"]},{actions:["highlightPrevItem"]}],"INPUT.ENTER":[{guard:eN("isOpenControlled","isCustomValue",eM("hasHighlightedItem"),eM("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:eN("isCustomValue",eM("hasHighlightedItem"),eM("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:eN("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":[{guard:"autoComplete",target:"suggesting",actions:["setInputValue"]},{target:"suggesting",actions:["clearHighlightedValue","setInputValue"]}],"ITEM.POINTER_MOVE":{actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"ITEM.CLICK":[{guard:eN("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],"LAYER.ESCAPE":[{guard:eN("isOpenControlled","autoComplete"),actions:["syncInputValue","invokeOnClose"]},{guard:"autoComplete",target:"focused",actions:["syncInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"LAYER.INTERACT_OUTSIDE":[{guard:eN("isOpenControlled","isCustomValue",eM("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:eN("isCustomValue",eM("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}},suggesting:{tags:["open","focused"],effects:["trackDismissableLayer","scrollToHighlightedItem","trackPlacement","hideOtherElements"],entry:["setInitialFocus"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:"autoHighlight",actions:["highlightFirstItem"]},{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]}],"INPUT.ARROW_DOWN":{target:"interacting",actions:["highlightNextItem"]},"INPUT.ARROW_UP":{target:"interacting",actions:["highlightPrevItem"]},"INPUT.HOME":{target:"interacting",actions:["highlightFirstItem"]},"INPUT.END":{target:"interacting",actions:["highlightLastItem"]},"INPUT.ENTER":[{guard:eN("isOpenControlled","isCustomValue",eM("hasHighlightedItem"),eM("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:eN("isCustomValue",eM("hasHighlightedItem"),eM("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:eN("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":{actions:["setInputValue"]},"LAYER.ESCAPE":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.POINTER_MOVE":{target:"interacting",actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"LAYER.INTERACT_OUTSIDE":[{guard:eN("isOpenControlled","isCustomValue",eM("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:eN("isCustomValue",eM("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.CLICK":[{guard:eN("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}}},implementations:{guards:{isInputValueEmpty:({computed:e})=>e("isInputValueEmpty"),autoComplete:({computed:e,prop:t})=>e("autoComplete")&&!t("multiple"),autoHighlight:({computed:e})=>e("autoHighlight"),isFirstItemHighlighted:({prop:e,context:t})=>e("collection").firstValue===t.get("highlightedValue"),isLastItemHighlighted:({prop:e,context:t})=>e("collection").lastValue===t.get("highlightedValue"),isCustomValue:({computed:e})=>e("isCustomValue"),allowCustomValue:({prop:e})=>!!e("allowCustomValue"),hasHighlightedItem:({context:e})=>null!=e.get("highlightedValue"),closeOnSelect:({prop:e})=>!!e("closeOnSelect"),isOpenControlled:({prop:e})=>null!=e("open"),openOnChange:({prop:e,context:t})=>{let n=e("openOnChange");return(0,G.Lm)(n)?n:!!n?.({inputValue:t.get("inputValue")})},restoreFocus:({event:e})=>null==e.restoreFocus||!!e.restoreFocus,isChangeEvent:({event:e})=>e.previousEvent?.type==="INPUT.CHANGE",autoFocus:({prop:e})=>!!e("autoFocus"),isHighlightedItemRemoved:({prop:e,context:t})=>!e("collection").has(t.get("highlightedValue"))},effects:{trackDismissableLayer({send:e,prop:t,scope:n}){if(!t("disableLayer"))return(0,eb.u)(()=>eS(n),{defer:!0,exclude:()=>[eE(n),eO(n),eI(n)],onFocusOutside:t("onFocusOutside"),onPointerDownOutside:t("onPointerDownOutside"),onInteractOutside:t("onInteractOutside"),onEscapeKeyDown(t){t.preventDefault(),t.stopPropagation(),e({type:"LAYER.ESCAPE",src:"escape-key"})},onDismiss(){e({type:"LAYER.INTERACT_OUTSIDE",src:"interact-outside",restoreFocus:!1})}})},hideOtherElements:({scope:e})=>(0,ev.M)([eE(e),eS(e),eO(e),eI(e)]),trackPlacement:({context:e,prop:t,scope:n})=>(e.set("currentPlacement",t("positioning").placement),(0,eg.Ox)(()=>eC(n)||eO(n),()=>ek(n),{...t("positioning"),defer:!0,onComplete(t){e.set("currentPlacement",t.placement)}})),scrollToHighlightedItem({context:e,prop:t,scope:n,event:r}){let i=eE(n),o=[],a=i=>{let a=r.current().type.includes("POINTER"),s=e.get("highlightedValue");if(a||!s)return;let l=e_(n,s),u=eS(n),c=t("scrollToIndexFn");if(c)return void c({index:t("collection").indexOf(s),immediate:i});let d=(0,ep.er)(()=>{(0,ep.Rt)(l,{rootEl:u,block:"nearest"})});o.push(d)},s=(0,ep.er)(()=>a(!0));o.push(s);let l=(0,ep.mx)(i,{attributes:["aria-activedescendant"],callback:()=>a(!1)});return o.push(l),()=>{o.forEach(e=>e())}}},actions:{reposition({context:e,prop:t,scope:n,event:r}){(0,eg.Ox)(()=>eC(n),()=>ek(n),{...t("positioning"),...r.options,defer:!0,listeners:!1,onComplete(t){e.set("currentPlacement",t.placement)}})},setHighlightedValue({context:e,event:t}){null!=t.value&&e.set("highlightedValue",t.value)},clearHighlightedValue({context:e}){e.set("highlightedValue",null)},selectHighlightedItem(e){let{context:t,prop:n}=e,r=n("collection"),i=t.get("highlightedValue");if(!i||!r.has(i))return;let o=n("multiple")?(0,G.Xx)(t.get("value"),i):[i];n("onSelect")?.({value:o,itemValue:i}),t.set("value",o);let a=(0,G.YW)(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(o),clear:""});t.set("inputValue",a)},scrollToHighlightedItem({context:e,prop:t,scope:n}){(0,ep.dY)(()=>{let r=e.get("highlightedValue");if(null==r)return;let i=e_(n,r),o=eS(n),a=t("scrollToIndexFn");if(a)return void a({index:t("collection").indexOf(r),immediate:!0});(0,ep.Rt)(i,{rootEl:o,block:"nearest"})})},selectItem(e){let{context:t,event:n,flush:r,prop:i}=e;null!=n.value&&r(()=>{let e=i("multiple")?(0,G.Xx)(t.get("value"),n.value):[n.value];i("onSelect")?.({value:e,itemValue:n.value}),t.set("value",e);let r=(0,G.YW)(i("selectionBehavior"),{preserve:t.get("inputValue"),replace:i("collection").stringifyMany(e),clear:""});t.set("inputValue",r)})},clearItem(e){let{context:t,event:n,flush:r,prop:i}=e;null!=n.value&&r(()=>{let e=(0,G.TF)(t.get("value"),n.value);t.set("value",e);let r=(0,G.YW)(i("selectionBehavior"),{preserve:t.get("inputValue"),replace:i("collection").stringifyMany(e),clear:""});t.set("inputValue",r)})},setInitialFocus({scope:e}){(0,ep.er)(()=>{eT(e)})},setFinalFocus({scope:e}){(0,ep.er)(()=>{let t=eO(e);if(t?.dataset.focusable==null)eT(e);else{let t=eO(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})}})},syncInputValue({context:e,scope:t,event:n}){let r=eE(t);r&&(r.value=e.get("inputValue"),queueMicrotask(()=>{"INPUT.CHANGE"!==n.current().type&&(0,ep.gX)(r)}))},setInputValue({context:e,event:t}){e.set("inputValue",t.value)},clearInputValue({context:e}){e.set("inputValue","")},revertInputValue({context:e,prop:t,computed:n}){let r=t("selectionBehavior"),i=(0,G.YW)(r,{replace:n("hasSelectedItems")?n("valueAsString"):"",preserve:e.get("inputValue"),clear:""});e.set("inputValue",i)},setValue(e){let{context:t,flush:n,event:r,prop:i}=e;n(()=>{t.set("value",r.value);let e=(0,G.YW)(i("selectionBehavior"),{preserve:t.get("inputValue"),replace:i("collection").stringifyMany(r.value),clear:""});t.set("inputValue",e)})},clearSelectedItems(e){let{context:t,flush:n,prop:r}=e;n(()=>{t.set("value",[]);let e=(0,G.YW)(r("selectionBehavior"),{preserve:t.get("inputValue"),replace:r("collection").stringifyMany([]),clear:""});t.set("inputValue",e)})},scrollContentToTop({prop:e,scope:t}){let n=e("scrollToIndexFn");if(n)n({index:0,immediate:!0});else{let e=eS(t);if(!e)return;e.scrollTop=0}},invokeOnOpen({prop:e,event:t}){let n=eL(t);e("onOpenChange")?.({open:!0,reason:n})},invokeOnClose({prop:e,event:t}){let n=eL(t);e("onOpenChange")?.({open:!1,reason:n})},highlightFirstItem({context:e,prop:t,scope:n}){(eS(n)?queueMicrotask:ep.er)(()=>{let n=t("collection").firstValue;n&&e.set("highlightedValue",n)})},highlightFirstItemIfNeeded({computed:e,action:t}){e("autoHighlight")&&t(["highlightFirstItem"])},highlightLastItem({context:e,prop:t,scope:n}){(eS(n)?queueMicrotask:ep.er)(()=>{let n=t("collection").lastValue;n&&e.set("highlightedValue",n)})},highlightNextItem({context:e,prop:t}){let n=null,r=e.get("highlightedValue"),i=t("collection");r?!(n=i.getNextValue(r))&&t("loopFocus")&&(n=i.firstValue):n=i.firstValue,n&&e.set("highlightedValue",n)},highlightPrevItem({context:e,prop:t}){let n=null,r=e.get("highlightedValue"),i=t("collection");r?!(n=i.getPreviousValue(r))&&t("loopFocus")&&(n=i.lastValue):n=i.lastValue,n&&e.set("highlightedValue",n)},highlightFirstSelectedItem({context:e,prop:t}){(0,ep.er)(()=>{let[n]=t("collection").sort(e.get("value"));n&&e.set("highlightedValue",n)})},highlightFirstOrSelectedItem({context:e,prop:t,computed:n}){(0,ep.er)(()=>{let r=null;(r=n("hasSelectedItems")?t("collection").sort(e.get("value"))[0]:t("collection").firstValue)&&e.set("highlightedValue",r)})},highlightLastOrSelectedItem({context:e,prop:t,computed:n}){(0,ep.er)(()=>{let r=t("collection"),i=null;(i=n("hasSelectedItems")?r.sort(e.get("value"))[0]:r.lastValue)&&e.set("highlightedValue",i)})},autofillInputValue({context:e,computed:t,prop:n,event:r,scope:i}){let o=eE(i),a=n("collection");if(!t("autoComplete")||!o||!r.keypress)return;let s=a.stringify(e.get("highlightedValue"));(0,ep.er)(()=>{o.value=s||e.get("inputValue")})},syncSelectedItems(e){queueMicrotask(()=>{let{context:t,prop:n}=e,r=n("collection"),i=t.get("value"),o=i.map(e=>t.get("selectedItems").find(t=>r.getItemValue(t)===e)||r.find(e));t.set("selectedItems",o);let a=(0,G.YW)(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(i),clear:""});t.set("inputValue",a)})},syncHighlightedItem({context:e,prop:t}){let n=t("collection").find(e.get("highlightedValue"));e.set("highlightedItem",n)},toggleVisibility({event:e,send:t,prop:n}){t({type:n("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}});var eV=(0,ey.x)()(["allowCustomValue","autoFocus","closeOnSelect","collection","composite","defaultHighlightedValue","defaultInputValue","defaultOpen","defaultValue","dir","disabled","disableLayer","form","getRootNode","highlightedValue","id","ids","inputBehavior","inputValue","invalid","loopFocus","multiple","name","navigate","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onOpenChange","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","openOnChange","openOnClick","openOnKeyPress","placeholder","positioning","readOnly","required","scrollToIndexFn","selectionBehavior","translations","value"]);(0,G.PM)(eV);var eD=(0,ey.x)()(["htmlFor"]);(0,G.PM)(eD);var eF=(0,ey.x)()(["id"]);(0,G.PM)(eF);var ej=(0,ey.x)()(["item","persistFocus"]);(0,G.PM)(ej);var ez=(0,$.y)("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator");ez.build();var eB=e=>e.ids?.root??`accordion:${e.id}`,eU=(e,t)=>e.ids?.itemTrigger?.(t)??`accordion:${e.id}:trigger:${t}`,eW=e=>{let t=CSS.escape(eB(e)),n=`[aria-controls][data-ownedby='${t}']:not([disabled])`;return(0,ep.YG)((e=>e.getById(eB(e)))(e),n)},{and:eH,not:eq}=(0,em.b6)();(0,em.Op)({props:({props:e})=>({collapsible:!1,multiple:!1,orientation:"vertical",defaultValue:[],...e}),initialState:()=>"idle",context:({prop:e,bindable:t})=>({focusedValue:t(()=>({defaultValue:null,sync:!0,onChange(t){e("onFocusChange")?.({value:t})}})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(t){e("onValueChange")?.({value:t})}}))}),computed:{isHorizontal:({prop:e})=>"horizontal"===e("orientation")},on:{"VALUE.SET":{actions:["setValue"]}},states:{idle:{on:{"TRIGGER.FOCUS":{target:"focused",actions:["setFocusedValue"]}}},focused:{on:{"GOTO.NEXT":{actions:["focusNextTrigger"]},"GOTO.PREV":{actions:["focusPrevTrigger"]},"TRIGGER.CLICK":[{guard:eH("isExpanded","canToggle"),actions:["collapse"]},{guard:eq("isExpanded"),actions:["expand"]}],"GOTO.FIRST":{actions:["focusFirstTrigger"]},"GOTO.LAST":{actions:["focusLastTrigger"]},"TRIGGER.BLUR":{target:"idle",actions:["clearFocusedValue"]}}}},implementations:{guards:{canToggle:({prop:e})=>!!e("collapsible")||!!e("multiple"),isExpanded:({context:e,event:t})=>e.get("value").includes(t.value)},actions:{collapse({context:e,prop:t,event:n}){let r=t("multiple")?(0,G.TF)(e.get("value"),n.value):[];e.set("value",r)},expand({context:e,prop:t,event:n}){let r=t("multiple")?(0,G.WQ)(e.get("value"),n.value):[n.value];e.set("value",r)},focusFirstTrigger({scope:e}){(0,G.$1)(eW(e))?.focus()},focusLastTrigger({scope:e}){(0,G.HV)(eW(e))?.focus()},focusNextTrigger({context:e,scope:t}){let n=e.get("focusedValue");if(!n)return;let r=(0,ep.Ut)(eW(t),eU(t,n));r?.focus()},focusPrevTrigger({context:e,scope:t}){let n=e.get("focusedValue");if(!n)return;let r=(0,ep.I5)(eW(t),eU(t,n));r?.focus()},setFocusedValue({context:e,event:t}){e.set("focusedValue",t.value)},clearFocusedValue({context:e}){e.set("focusedValue",null)},setValue({context:e,event:t}){e.set("value",t.value)},coarseValue({context:e,prop:t}){!t("multiple")&&e.get("value").length>1&&((0,G.R8)("The value of accordion should be a single value when multiple is false."),e.set("value",[e.get("value")[0]]))}}}});var e$=(0,ey.x)()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value","defaultValue"]);(0,G.PM)(e$);var eG=(0,ey.x)()(["value","disabled"]);(0,G.PM)(eG);var eK=(0,$.y)("clipboard").parts("root","control","trigger","indicator","input","label");eK.build(),(0,em.Op)({props:({props:e})=>({timeout:3e3,defaultValue:"",...e}),initialState:()=>"idle",context:({prop:e,bindable:t})=>({value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(t){e("onValueChange")?.({value:t})}}))}),watch({track:e,context:t,action:n}){e([()=>t.get("value")],()=>{n(["syncInputElement"])})},on:{"VALUE.SET":{actions:["setValue"]},COPY:{target:"copied",actions:["copyToClipboard","invokeOnCopy"]}},states:{idle:{on:{"INPUT.COPY":{target:"copied",actions:["invokeOnCopy"]}}},copied:{effects:["waitForTimeout"],on:{"COPY.DONE":{target:"idle"},COPY:{target:"copied",actions:["copyToClipboard","invokeOnCopy"]},"INPUT.COPY":{actions:["invokeOnCopy"]}}}},implementations:{effects:{waitForTimeout:({prop:e,send:t})=>(0,G.bK)(()=>{t({type:"COPY.DONE"})},e("timeout"))},actions:{setValue({context:e,event:t}){e.set("value",t.value)},copyToClipboard({context:e,scope:t}){let n;n=e.get("value"),function(e,t){let n=e.defaultView||window;if(n.navigator.clipboard?.writeText!==void 0)return n.navigator.clipboard.writeText(t);if(!e.body)return Promise.reject(Error());let r=function(e,t){let n=e.createElement("pre");return Object.assign(n.style,{width:"1px",height:"1px",position:"fixed",top:"5px"}),n.textContent=t,n}(e,t);e.body.appendChild(r),function(e){let t=(0,ep.zk)(e).getSelection();if(null==t)return Promise.reject(Error());t.removeAllRanges();let n=e.ownerDocument,r=n.createRange();r.selectNodeContents(e),t.addRange(r),n.execCommand("copy"),t.removeAllRanges(),Promise.resolve()}(r),e.body.removeChild(r),Promise.resolve()}(t.getDoc(),n)},invokeOnCopy({prop:e}){e("onStatusChange")?.({copied:!0})},syncInputElement({context:e,scope:t}){let n=t.getById(t.ids?.input??`clip:${t.id}:input`);n&&(0,ep.U4)(n,e.get("value"))}}}});var eY=(0,ey.x)()(["getRootNode","id","ids","value","defaultValue","timeout","onStatusChange","onValueChange"]);(0,G.PM)(eY);var eX=(0,ey.x)()(["copied"]);(0,G.PM)(eX);var eQ=Object.defineProperty,eJ=(e,t,n)=>((e,t,n)=>t in e?eQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,t+"",n),eZ=class{toHexInt(){return this.toFormat("rgba").toHexInt()}getChannelValue(e){if(e in this)return this[e];throw Error("Unsupported color channel: "+e)}getChannelValuePercent(e,t){let n=t??this.getChannelValue(e),{minValue:r,maxValue:i}=this.getChannelRange(e);return(0,G.vV)(n,r,i)}getChannelPercentValue(e,t){let{minValue:n,maxValue:r,step:i}=this.getChannelRange(e),o=(0,G.F4)(t,n,r,i);return(0,G.BU)(o,n,r,i)}withChannelValue(e,t){let{minValue:n,maxValue:r}=this.getChannelRange(e);if(e in this){let i=this.clone();return i[e]=(0,G.L3)(t,n,r),i}throw Error("Unsupported color channel: "+e)}getColorAxes(e){let{xChannel:t,yChannel:n}=e,r=t||this.getChannels().find(e=>e!==n),i=n||this.getChannels().find(e=>e!==r),o=this.getChannels().find(e=>e!==r&&e!==i);return{xChannel:r,yChannel:i,zChannel:o}}incrementChannel(e,t){let{minValue:n,maxValue:r,step:i}=this.getChannelRange(e),o=(0,G.BU)((0,G.L3)(this.getChannelValue(e)+t,n,r),n,r,i);return this.withChannelValue(e,o)}decrementChannel(e,t){return this.incrementChannel(e,-t)}isEqual(e){return((e,t)=>{if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0})(this.toJSON(),e.toJSON())&&this.getChannelValue("alpha")===e.getChannelValue("alpha")}},e0=/^#[\da-f]+$/i,e1=/^rgba?\((.*)\)$/,e2=/[^#]/gi,e5=class e extends eZ{constructor(e,t,n,r){super(),this.red=e,this.green=t,this.blue=n,this.alpha=r}static parse(t){let n=[];if(e0.test(t)&&[4,5,7,9].includes(t.length)){let e=(t.length<6?t.replace(e2,"$&$&"):t).slice(1).split("");for(;e.length>0;)n.push(parseInt(e.splice(0,2).join(""),16));n[3]=void 0!==n[3]?n[3]/255:void 0}let r=t.match(e1);return r?.[1]&&(n=r[1].split(",").map(e=>Number(e.trim())).map((e,t)=>(0,G.L3)(e,0,t<3?255:1))),n.length<3?void 0:new e(n[0],n[1],n[2],n[3]??1)}toString(e){switch(e){case"hex":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")).toUpperCase();case"hexa":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")+Math.round(255*this.alpha).toString(16).padStart(2,"0")).toUpperCase();case"rgb":return`rgb(${this.red}, ${this.green}, ${this.blue})`;case"css":case"rgba":return`rgba(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"hsb":return this.toHSB().toString("hsb");default:return this.toFormat(e).toString(e)}}toFormat(e){switch(e){case"rgba":return this;case"hsba":return this.toHSB();case"hsla":return this.toHSL();default:throw Error("Unsupported color conversion: rgb -> "+e)}}toHexInt(){return this.red<<16|this.green<<8|this.blue}toHSB(){let e=this.red/255,t=this.green/255,n=this.blue/255,r=Math.min(e,t,n),i=Math.max(e,t,n),o=i-r,a=0;if(0!==o){switch(i){case e:a=(t-n)/o+6*(t<n);break;case t:a=(n-e)/o+2;break;case n:a=(e-t)/o+4}a/=6}return new e9((0,G.Nh)(360*a,2),(0,G.Nh)(100*(0===i?0:o/i),2),(0,G.Nh)(100*i,2),(0,G.Nh)(this.alpha,2))}toHSL(){let e=this.red/255,t=this.green/255,n=this.blue/255,r=Math.min(e,t,n),i=Math.max(e,t,n),o=(i+r)/2,a=i-r,s=-1,l=-1;if(0===a)s=l=0;else{switch(l=a/(o<.5?i+r:2-i-r),i){case e:s=(t-n)/a+6*(t<n);break;case t:s=(n-e)/a+2;break;case n:s=(e-t)/a+4}s/=6}return new e6((0,G.Nh)(360*s,2),(0,G.Nh)(100*l,2),(0,G.Nh)(100*o,2),(0,G.Nh)(this.alpha,2))}clone(){return new e(this.red,this.green,this.blue,this.alpha)}getChannelFormatOptions(e){switch(e){case"red":case"green":case"blue":return{style:"decimal"};case"alpha":return{style:"percent"};default:throw Error("Unknown color channel: "+e)}}formatChannelValue(e,t){let n=this.getChannelFormatOptions(e),r=this.getChannelValue(e);return new Intl.NumberFormat(t,n).format(r)}getChannelRange(e){switch(e){case"red":case"green":case"blue":return{minValue:0,maxValue:255,step:1,pageSize:17};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw Error("Unknown color channel: "+e)}}toJSON(){return{r:this.red,g:this.green,b:this.blue,a:this.alpha}}getFormat(){return"rgba"}getChannels(){return e.colorChannels}};eJ(e5,"colorChannels",["red","green","blue"]);var e3=/hsl\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsla\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/,e4=class e extends eZ{constructor(e,t,n,r){super(),this.hue=e,this.saturation=t,this.lightness=n,this.alpha=r}static parse(t){let n;if(n=t.match(e3)){let[t,r,i,o]=(n[1]??n[2]).split(",").map(e=>Number(e.trim().replace("%","")));return new e((0,G.zi)(t,360),(0,G.L3)(r,0,100),(0,G.L3)(i,0,100),(0,G.L3)(o??1,0,1))}}toString(e){switch(e){case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsl":return`hsl(${this.hue}, ${(0,G.Nh)(this.saturation,2)}%, ${(0,G.Nh)(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${(0,G.Nh)(this.saturation,2)}%, ${(0,G.Nh)(this.lightness,2)}%, ${this.alpha})`;case"hsb":return this.toHSB().toString("hsb");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(e).toString(e)}}toFormat(e){switch(e){case"hsla":return this;case"hsba":return this.toHSB();case"rgba":return this.toRGB();default:throw Error("Unsupported color conversion: hsl -> "+e)}}toHSB(){let e=this.saturation/100,t=this.lightness/100,n=t+e*Math.min(t,1-t);return e=0===n?0:2*(1-t/n),new e9((0,G.Nh)(this.hue,2),(0,G.Nh)(100*e,2),(0,G.Nh)(100*n,2),(0,G.Nh)(this.alpha,2))}toRGB(){let e=this.hue,t=this.saturation/100,n=this.lightness/100,r=t*Math.min(n,1-n),i=(t,i=(t+e/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1);return new e5(Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4)),(0,G.Nh)(this.alpha,2))}clone(){return new e(this.hue,this.saturation,this.lightness,this.alpha)}getChannelFormatOptions(e){switch(e){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"lightness":case"alpha":return{style:"percent"};default:throw Error("Unknown color channel: "+e)}}formatChannelValue(e,t){let n=this.getChannelFormatOptions(e),r=this.getChannelValue(e);return("saturation"===e||"lightness"===e)&&(r/=100),new Intl.NumberFormat(t,n).format(r)}getChannelRange(e){switch(e){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"lightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw Error("Unknown color channel: "+e)}}toJSON(){return{h:this.hue,s:this.saturation,l:this.lightness,a:this.alpha}}getFormat(){return"hsla"}getChannels(){return e.colorChannels}};eJ(e4,"colorChannels",["hue","saturation","lightness"]);var e6=e4,e8=/hsb\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsba\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/,e7=class e extends eZ{constructor(e,t,n,r){super(),this.hue=e,this.saturation=t,this.brightness=n,this.alpha=r}static parse(t){let n;if(n=t.match(e8)){let[t,r,i,o]=(n[1]??n[2]).split(",").map(e=>Number(e.trim().replace("%","")));return new e((0,G.zi)(t,360),(0,G.L3)(r,0,100),(0,G.L3)(i,0,100),(0,G.L3)(o??1,0,1))}}toString(e){switch(e){case"css":return this.toHSL().toString("css");case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsb":return`hsb(${this.hue}, ${(0,G.Nh)(this.saturation,2)}%, ${(0,G.Nh)(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${(0,G.Nh)(this.saturation,2)}%, ${(0,G.Nh)(this.brightness,2)}%, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(e).toString(e)}}toFormat(e){switch(e){case"hsba":return this;case"hsla":return this.toHSL();case"rgba":return this.toRGB();default:throw Error("Unsupported color conversion: hsb -> "+e)}}toHSL(){let e=this.saturation/100,t=this.brightness/100,n=t*(1-e/2);return e=0===n||1===n?0:(t-n)/Math.min(n,1-n),new e6((0,G.Nh)(this.hue,2),(0,G.Nh)(100*e,2),(0,G.Nh)(100*n,2),(0,G.Nh)(this.alpha,2))}toRGB(){let e=this.hue,t=this.saturation/100,n=this.brightness/100,r=(r,i=(r+e/60)%6)=>n-t*n*Math.max(Math.min(i,4-i,1),0);return new e5(Math.round(255*r(5)),Math.round(255*r(3)),Math.round(255*r(1)),(0,G.Nh)(this.alpha,2))}clone(){return new e(this.hue,this.saturation,this.brightness,this.alpha)}getChannelFormatOptions(e){switch(e){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"brightness":case"alpha":return{style:"percent"};default:throw Error("Unknown color channel: "+e)}}formatChannelValue(e,t){let n=this.getChannelFormatOptions(e),r=this.getChannelValue(e);return("saturation"===e||"brightness"===e)&&(r/=100),new Intl.NumberFormat(t,n).format(r)}getChannelRange(e){switch(e){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"brightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw Error("Unknown color channel: "+e)}}toJSON(){return{h:this.hue,s:this.saturation,b:this.brightness,a:this.alpha}}getFormat(){return"hsba"}getChannels(){return e.colorChannels}};eJ(e7,"colorChannels",["hue","saturation","brightness"]);var e9=e7,te=(e=>{let t=new Map,n=e.split(",");for(let e=0;e<n.length;e++){let[r,i]=n[e].split(":");t.set(r,`#${i}`),r.includes("gray")&&t.set(r.replace("gray","grey"),`#${i}`)}return t})("aliceblue:f0f8ff,antiquewhite:faebd7,aqua:00ffff,aquamarine:7fffd4,azure:f0ffff,beige:f5f5dc,bisque:ffe4c4,black:000000,blanchedalmond:ffebcd,blue:0000ff,blueviolet:8a2be2,brown:a52a2a,burlywood:deb887,cadetblue:5f9ea0,chartreuse:7fff00,chocolate:d2691e,coral:ff7f50,cornflowerblue:6495ed,cornsilk:fff8dc,crimson:dc143c,cyan:00ffff,darkblue:00008b,darkcyan:008b8b,darkgoldenrod:b8860b,darkgray:a9a9a9,darkgreen:006400,darkkhaki:bdb76b,darkmagenta:8b008b,darkolivegreen:556b2f,darkorange:ff8c00,darkorchid:9932cc,darkred:8b0000,darksalmon:e9967a,darkseagreen:8fbc8f,darkslateblue:483d8b,darkslategray:2f4f4f,darkturquoise:00ced1,darkviolet:9400d3,deeppink:ff1493,deepskyblue:00bfff,dimgray:696969,dodgerblue:1e90ff,firebrick:b22222,floralwhite:fffaf0,forestgreen:228b22,fuchsia:ff00ff,gainsboro:dcdcdc,ghostwhite:f8f8ff,gold:ffd700,goldenrod:daa520,gray:808080,green:008000,greenyellow:adff2f,honeydew:f0fff0,hotpink:ff69b4,indianred:cd5c5c,indigo:4b0082,ivory:fffff0,khaki:f0e68c,lavender:e6e6fa,lavenderblush:fff0f5,lawngreen:7cfc00,lemonchiffon:fffacd,lightblue:add8e6,lightcoral:f08080,lightcyan:e0ffff,lightgoldenrodyellow:fafad2,lightgrey:d3d3d3,lightgreen:90ee90,lightpink:ffb6c1,lightsalmon:ffa07a,lightseagreen:20b2aa,lightskyblue:87cefa,lightslategray:778899,lightsteelblue:b0c4de,lightyellow:ffffe0,lime:00ff00,limegreen:32cd32,linen:faf0e6,magenta:ff00ff,maroon:800000,mediumaquamarine:66cdaa,mediumblue:0000cd,mediumorchid:ba55d3,mediumpurple:9370d8,mediumseagreen:3cb371,mediumslateblue:7b68ee,mediumspringgreen:00fa9a,mediumturquoise:48d1cc,mediumvioletred:c71585,midnightblue:191970,mintcream:f5fffa,mistyrose:ffe4e1,moccasin:ffe4b5,navajowhite:ffdead,navy:000080,oldlace:fdf5e6,olive:808000,olivedrab:6b8e23,orange:ffa500,orangered:ff4500,orchid:da70d6,palegoldenrod:eee8aa,palegreen:98fb98,paleturquoise:afeeee,palevioletred:d87093,papayawhip:ffefd5,peachpuff:ffdab9,peru:cd853f,pink:ffc0cb,plum:dda0dd,powderblue:b0e0e6,purple:800080,rebeccapurple:663399,red:ff0000,rosybrown:bc8f8f,royalblue:4169e1,saddlebrown:8b4513,salmon:fa8072,sandybrown:f4a460,seagreen:2e8b57,seashell:fff5ee,sienna:a0522d,silver:c0c0c0,skyblue:87ceeb,slateblue:6a5acd,slategray:708090,snow:fffafa,springgreen:00ff7f,steelblue:4682b4,tan:d2b48c,teal:008080,thistle:d8bfd8,tomato:ff6347,turquoise:40e0d0,violet:ee82ee,wheat:f5deb3,white:ffffff,whitesmoke:f5f5f5,yellow:ffff00,yellowgreen:9acd32"),tt=e=>{if(te.has(e))return tt(te.get(e));let t=e5.parse(e)||e9.parse(e)||e6.parse(e);if(!t){let t=Error("Invalid color value: "+e);throw Error.captureStackTrace?.(t,tt),t}return t},tn=(0,$.y)("color-picker",["root","label","control","trigger","positioner","content","area","areaThumb","valueText","areaBackground","channelSlider","channelSliderLabel","channelSliderTrack","channelSliderThumb","channelSliderValueText","channelInput","transparencyGrid","swatchGroup","swatchTrigger","swatchIndicator","swatch","eyeDropperTrigger","formatTrigger","formatSelect"]);tn.build();var tr=e=>e.getById((e=>e.ids?.content??`color-picker:${e.id}:content`)(e)),ti=e=>e.getById((e=>e.ids?.hiddenInput??`color-picker:${e.id}:hidden-input`)(e)),to=e=>e.getById((e=>e.ids?.trigger??`color-picker:${e.id}:trigger`)(e));RegExp("^(hsba|hsla|rgba)$");var ta=e=>tt(e),ts=/^[0-9a-fA-F]{3,8}$/,{and:tl}=(0,em.b6)();function tu(e,t,n){let r=[...(0,ep.YG)(tr(e),"input[data-channel]"),...(0,ep.YG)(e.getById(e.ids?.control??`color-picker:${e.id}:control`),"input[data-channel]")];(0,ep.er)(()=>{r.forEach(e=>{let r=e.dataset.channel;(0,ep.U4)(e,function(e,t){if(null==t)return"";if("hex"===t)return e.toString("hex");if("css"===t)return e.toString("css");if(t in e)return e.getChannelValue(t).toString();let n="hsla"===e.getFormat();switch(t){case"hue":return n?e.toFormat("hsla").getChannelValue("hue").toString():e.toFormat("hsba").getChannelValue("hue").toString();case"saturation":return n?e.toFormat("hsla").getChannelValue("saturation").toString():e.toFormat("hsba").getChannelValue("saturation").toString();case"lightness":return e.toFormat("hsla").getChannelValue("lightness").toString();case"brightness":return e.toFormat("hsba").getChannelValue("brightness").toString();case"red":case"green":case"blue":return e.toFormat("rgba").getChannelValue(t).toString();default:return e.getChannelValue(t).toString()}}(n||t,r))})})}(0,em.Op)({props:({props:e})=>({dir:"ltr",defaultValue:ta("#000000"),defaultFormat:"rgba",openAutoFocus:!0,...e,positioning:{placement:"bottom",...e.positioning}}),initialState:({prop:e})=>e("open")||e("defaultOpen")||e("inline")?"open":"idle",context:({prop:e,bindable:t,getContext:n})=>({value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:(e,t)=>e.toString("css")===t?.toString("css"),hash:e=>e.toString("css"),onChange(t){let r=n(),i=t.toString(r.get("format"));e("onValueChange")?.({value:t,valueAsString:i})}})),format:t(()=>({defaultValue:e("defaultFormat"),value:e("format"),onChange(t){e("onFormatChange")?.({format:t})}})),activeId:t(()=>({defaultValue:null})),activeChannel:t(()=>({defaultValue:null})),activeOrientation:t(()=>({defaultValue:null})),fieldsetDisabled:t(()=>({defaultValue:!1})),restoreFocus:t(()=>({defaultValue:!0})),currentPlacement:t(()=>({defaultValue:void 0}))}),computed:{rtl:({prop:e})=>"rtl"===e("dir"),disabled:({prop:e,context:t})=>!!e("disabled")||t.get("fieldsetDisabled"),interactive:({prop:e})=>!(e("disabled")||e("readOnly")),valueAsString:({context:e})=>e.get("value").toString(e.get("format")),areaValue:({context:e})=>{let t=e.get("format").startsWith("hsl")?"hsla":"hsba";return e.get("value").toFormat(t)}},effects:["trackFormControl"],watch({prop:e,context:t,action:n,track:r}){r([()=>t.hash("value")],()=>{n(["syncInputElements","dispatchChangeEvent"])}),r([()=>t.get("format")],()=>{n(["syncFormatSelectElement"])}),r([()=>e("open")],()=>{n(["toggleVisibility"])})},on:{"VALUE.SET":{actions:["setValue"]},"FORMAT.SET":{actions:["setFormat"]},"CHANNEL_INPUT.CHANGE":{actions:["setChannelColorFromInput"]},"EYEDROPPER.CLICK":{actions:["openEyeDropper"]},"SWATCH_TRIGGER.CLICK":{actions:["setValue"]}},states:{idle:{tags:["closed"],on:{"CONTROLLED.OPEN":{target:"open",actions:["setInitialFocus"]},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}],"CHANNEL_INPUT.FOCUS":{target:"focused",actions:["setActiveChannel"]}}},focused:{tags:["closed","focused"],on:{"CONTROLLED.OPEN":{target:"open",actions:["setInitialFocus"]},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}],"CHANNEL_INPUT.FOCUS":{actions:["setActiveChannel"]},"CHANNEL_INPUT.BLUR":{target:"idle",actions:["setChannelColorFromInput"]},"TRIGGER.BLUR":{target:"idle"}}},open:{tags:["open"],effects:["trackPositioning","trackDismissableElement"],on:{"CONTROLLED.CLOSE":[{guard:"shouldRestoreFocus",target:"focused",actions:["setReturnFocus"]},{target:"idle"}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],"AREA.POINTER_DOWN":{target:"open:dragging",actions:["setActiveChannel","setAreaColorFromPoint","focusAreaThumb"]},"AREA.FOCUS":{actions:["setActiveChannel"]},"CHANNEL_SLIDER.POINTER_DOWN":{target:"open:dragging",actions:["setActiveChannel","setChannelColorFromPoint","focusChannelThumb"]},"CHANNEL_SLIDER.FOCUS":{actions:["setActiveChannel"]},"AREA.ARROW_LEFT":{actions:["decrementAreaXChannel"]},"AREA.ARROW_RIGHT":{actions:["incrementAreaXChannel"]},"AREA.ARROW_UP":{actions:["incrementAreaYChannel"]},"AREA.ARROW_DOWN":{actions:["decrementAreaYChannel"]},"AREA.PAGE_UP":{actions:["incrementAreaXChannel"]},"AREA.PAGE_DOWN":{actions:["decrementAreaXChannel"]},"CHANNEL_SLIDER.ARROW_LEFT":{actions:["decrementChannel"]},"CHANNEL_SLIDER.ARROW_RIGHT":{actions:["incrementChannel"]},"CHANNEL_SLIDER.ARROW_UP":{actions:["incrementChannel"]},"CHANNEL_SLIDER.ARROW_DOWN":{actions:["decrementChannel"]},"CHANNEL_SLIDER.PAGE_UP":{actions:["incrementChannel"]},"CHANNEL_SLIDER.PAGE_DOWN":{actions:["decrementChannel"]},"CHANNEL_SLIDER.HOME":{actions:["setChannelToMin"]},"CHANNEL_SLIDER.END":{actions:["setChannelToMax"]},"CHANNEL_INPUT.BLUR":{actions:["setChannelColorFromInput"]},INTERACT_OUTSIDE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{guard:"shouldRestoreFocus",target:"focused",actions:["invokeOnClose","setReturnFocus"]},{target:"idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],"SWATCH_TRIGGER.CLICK":[{guard:tl("isOpenControlled","closeOnSelect"),actions:["setValue","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["setValue","invokeOnClose","setReturnFocus"]},{actions:["setValue"]}]}},"open:dragging":{tags:["open"],exit:["clearActiveChannel"],effects:["trackPointerMove","disableTextSelection","trackPositioning","trackDismissableElement"],on:{"CONTROLLED.CLOSE":[{guard:"shouldRestoreFocus",target:"focused",actions:["setReturnFocus"]},{target:"idle"}],"AREA.POINTER_MOVE":{actions:["setAreaColorFromPoint","focusAreaThumb"]},"AREA.POINTER_UP":{target:"open",actions:["invokeOnChangeEnd"]},"CHANNEL_SLIDER.POINTER_MOVE":{actions:["setChannelColorFromPoint","focusChannelThumb"]},"CHANNEL_SLIDER.POINTER_UP":{target:"open",actions:["invokeOnChangeEnd"]},INTERACT_OUTSIDE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{guard:"shouldRestoreFocus",target:"focused",actions:["invokeOnClose","setReturnFocus"]},{target:"idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}]}}},implementations:{guards:{closeOnSelect:({prop:e})=>!!e("closeOnSelect"),isOpenControlled:({prop:e})=>null!=e("open")||!!e("inline"),shouldRestoreFocus:({context:e})=>!!e.get("restoreFocus")},effects:{trackPositioning({context:e,prop:t,scope:n}){if(t("inline"))return;e.get("currentPlacement")||e.set("currentPlacement",t("positioning")?.placement);let r=to(n);return(0,eg.Ox)(r,()=>n.getById(n.ids?.positioner??`color-picker:${n.id}:positioner`),{...t("positioning"),defer:!0,onComplete(t){e.set("currentPlacement",t.placement)}})},trackDismissableElement({context:e,scope:t,prop:n,send:r}){if(!n("inline"))return(0,eb.u)(()=>tr(t),{exclude:to(t),defer:!0,onInteractOutside(t){n("onInteractOutside")?.(t),t.defaultPrevented||e.set("restoreFocus",!(t.detail.focusable||t.detail.contextmenu))},onPointerDownOutside:n("onPointerDownOutside"),onFocusOutside:n("onFocusOutside"),onDismiss(){r({type:"INTERACT_OUTSIDE"})}})},trackFormControl({context:e,scope:t,send:n}){let r=ti(t);return(0,ep.$S)(r,{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){n({type:"VALUE.SET",value:e.initial("value"),src:"form.reset"})}})},trackPointerMove:({context:e,scope:t,event:n,send:r})=>(0,ep.Al)(t.getDoc(),{onPointerMove({point:t}){r({type:"area"===e.get("activeId")?"AREA.POINTER_MOVE":"CHANNEL_SLIDER.POINTER_MOVE",point:t,format:n.format})},onPointerUp(){r({type:"area"===e.get("activeId")?"AREA.POINTER_UP":"CHANNEL_SLIDER.POINTER_UP"})}}),disableTextSelection:({scope:e})=>(0,ep.MC)({doc:e.getDoc(),target:tr(e)})},actions:{openEyeDropper({scope:e,context:t}){let n=e.getWin();"EyeDropper"in n&&new n.EyeDropper().open().then(({sRGBHex:e})=>{let n=t.get("value").getFormat(),r=tt(e).toFormat(n);t.set("value",r)}).catch(()=>void 0)},setActiveChannel({context:e,event:t}){e.set("activeId",t.id),t.channel&&e.set("activeChannel",t.channel),t.orientation&&e.set("activeOrientation",t.orientation)},clearActiveChannel({context:e}){e.set("activeChannel",null),e.set("activeId",null),e.set("activeOrientation",null)},setAreaColorFromPoint({context:e,event:t,computed:n,scope:r}){let i=t.format?e.get("value").toFormat(t.format):n("areaValue"),{xChannel:o,yChannel:a}=t.channel||e.get("activeChannel"),s=((e,t)=>{var n;let r,i=(n=e).getById((r=n,r.ids?.area??`color-picker:${r.id}:area`));if(!i)return;let{percent:o}=(0,ep.NH)(t,i);return o})(r,t.point);if(!s)return;let l=i.getChannelPercentValue(o,s.x),u=i.getChannelPercentValue(a,1-s.y),c=i.withChannelValue(o,l).withChannelValue(a,u);e.set("value",c)},setChannelColorFromPoint({context:e,event:t,computed:n,scope:r}){let i=t.channel||e.get("activeId"),o=t.format?e.get("value").toFormat(t.format):n("areaValue"),a=((e,t,n)=>{var r,i;let o,a,s=(r=e,i=n,r.getById((o=r,a=i,o.ids?.channelSliderTrack?.(a)??`color-picker:${o.id}:slider-track:${a}`)));if(!s)return;let{percent:l}=(0,ep.NH)(t,s);return l})(r,t.point,i);if(!a)return;let s="horizontal"===(e.get("activeOrientation")||"horizontal")?a.x:a.y,l=o.getChannelPercentValue(i,s),u=o.withChannelValue(i,l);e.set("value",u)},setValue({context:e,event:t}){e.set("value",t.value)},setFormat({context:e,event:t}){e.set("format",t.format)},dispatchChangeEvent({scope:e,computed:t}){(0,ep.CF)(ti(e),{value:t("valueAsString")})},syncInputElements({context:e,scope:t}){tu(t,e.get("value"))},invokeOnChangeEnd({context:e,prop:t,computed:n}){t("onValueChangeEnd")?.({value:e.get("value"),valueAsString:n("valueAsString")})},setChannelColorFromInput({context:e,event:t,scope:n,prop:r}){let i,{channel:o,isTextField:a,value:s}=t,l=e.get("value").getChannelValue("alpha");if("alpha"===o){let t=parseFloat(s);t=Number.isNaN(t)?l:t,i=e.get("value").withChannelValue("alpha",t)}else if(a)i=(0,G.TX)(()=>ta("hex"===o?function(e){return e.startsWith("#")?e:ts.test(e)?`#${e}`:e}(s):s).withChannelValue("alpha",l),()=>e.get("value"));else{let t=e.get("value").toFormat(e.get("format")),n=Number.isNaN(s)?t.getChannelValue(o):s;i=t.withChannelValue(o,n)}tu(n,e.get("value"),i),e.set("value",i),r("onValueChangeEnd")?.({value:i,valueAsString:i.toString(e.get("format"))})},incrementChannel({context:e,event:t}){let n=e.get("value").incrementChannel(t.channel,t.step);e.set("value",n)},decrementChannel({context:e,event:t}){let n=e.get("value").decrementChannel(t.channel,t.step);e.set("value",n)},incrementAreaXChannel({context:e,event:t,computed:n}){let{xChannel:r}=t.channel,i=n("areaValue").incrementChannel(r,t.step);e.set("value",i)},decrementAreaXChannel({context:e,event:t,computed:n}){let{xChannel:r}=t.channel,i=n("areaValue").decrementChannel(r,t.step);e.set("value",i)},incrementAreaYChannel({context:e,event:t,computed:n}){let{yChannel:r}=t.channel,i=n("areaValue").incrementChannel(r,t.step);e.set("value",i)},decrementAreaYChannel({context:e,event:t,computed:n}){let{yChannel:r}=t.channel,i=n("areaValue").decrementChannel(r,t.step);e.set("value",i)},setChannelToMax({context:e,event:t}){let n=e.get("value"),r=n.getChannelRange(t.channel),i=n.withChannelValue(t.channel,r.maxValue);e.set("value",i)},setChannelToMin({context:e,event:t}){let n=e.get("value"),r=n.getChannelRange(t.channel),i=n.withChannelValue(t.channel,r.minValue);e.set("value",i)},focusAreaThumb({scope:e}){(0,ep.er)(()=>{e.getById(e.ids?.areaThumb??`color-picker:${e.id}:area-thumb`)?.focus({preventScroll:!0})})},focusChannelThumb({event:e,scope:t}){(0,ep.er)(()=>{let n;(n=e.channel,t.getById(t.ids?.channelSliderThumb?.(n)??`color-picker:${t.id}:slider-thumb:${n}`))?.focus({preventScroll:!0})})},setInitialFocus({prop:e,scope:t}){e("openAutoFocus")&&(0,ep.er)(()=>{let n=(0,ep.RD)({root:tr(t),getInitialEl:e("initialFocusEl")});n?.focus({preventScroll:!0})})},setReturnFocus({scope:e}){(0,ep.er)(()=>{to(e)?.focus({preventScroll:!0})})},syncFormatSelectElement({context:e,scope:t}){!function(e,t){let n=e.getById(e.ids?.formatSelect??`color-picker:${e.id}:format-select`);n&&(0,ep.er)(()=>(0,ep.U4)(n,t))}(t,e.get("format"))},invokeOnOpen({prop:e}){e("inline")||e("onOpenChange")?.({open:!0})},invokeOnClose({prop:e}){e("inline")||e("onOpenChange")?.({open:!1})},toggleVisibility({prop:e,event:t,send:n}){n({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:t})}}}});var tc=(0,ey.x)()(["closeOnSelect","dir","disabled","format","defaultFormat","getRootNode","id","ids","initialFocusEl","inline","name","positioning","onFocusOutside","onFormatChange","onInteractOutside","onOpenChange","onPointerDownOutside","onValueChange","onValueChangeEnd","defaultOpen","open","positioning","required","readOnly","value","defaultValue","invalid","openAutoFocus"]);(0,G.PM)(tc);var td=(0,ey.x)()(["xChannel","yChannel"]);(0,G.PM)(td);var tf=(0,ey.x)()(["channel","orientation"]);(0,G.PM)(tf);var th=(0,ey.x)()(["value","disabled"]);(0,G.PM)(th);var tp=(0,ey.x)()(["value","respectAlpha"]);(0,G.PM)(tp);var tg=(0,ey.x)()(["size"]);(0,G.PM)(tg);let tv=tn.extendWith("view");var tm=n(72017),tb=n(50674),ty=(0,$.y)("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control");ty.build();var tx=e=>e.getById((e=>e.ids?.input??`editable:${e.id}:input`)(e));(0,em.Op)({props:({props:e})=>({activationMode:"focus",submitMode:"both",defaultValue:"",selectOnFocus:!0,...e,translations:{input:"editable input",edit:"edit",submit:"submit",cancel:"cancel",...e.translations}}),initialState:({prop:e})=>e("edit")||e("defaultEdit")?"edit":"preview",entry:["focusInputIfNeeded"],context:({bindable:e,prop:t})=>({value:e(()=>({defaultValue:t("defaultValue"),value:t("value"),onChange:e=>t("onValueChange")?.({value:e})})),previousValue:e(()=>({defaultValue:""}))}),watch({track:e,action:t,context:n,prop:r}){e([()=>n.get("value")],()=>{t(["syncInputValue"])}),e([()=>r("edit")],()=>{t(["toggleEditing"])})},computed:{submitOnEnter({prop:e}){let t=e("submitMode");return"both"===t||"enter"===t},submitOnBlur({prop:e}){let t=e("submitMode");return"both"===t||"blur"===t},isInteractive:({prop:e})=>!(e("disabled")||e("readOnly"))},on:{"VALUE.SET":{actions:["setValue"]}},states:{preview:{entry:["blurInputIfNeeded"],on:{"CONTROLLED.EDIT":{target:"edit",actions:["setPreviousValue","focusInput"]},EDIT:[{guard:"isEditControlled",actions:["invokeOnEdit"]},{target:"edit",actions:["setPreviousValue","focusInput","invokeOnEdit"]}]}},edit:{effects:["trackInteractOutside"],on:{"CONTROLLED.PREVIEW":[{guard:"isSubmitEvent",target:"preview",actions:["setPreviousValue","restoreFocus","invokeOnSubmit"]},{target:"preview",actions:["revertValue","restoreFocus","invokeOnCancel"]}],CANCEL:[{guard:"isEditControlled",actions:["invokeOnPreview"]},{target:"preview",actions:["revertValue","restoreFocus","invokeOnCancel","invokeOnPreview"]}],SUBMIT:[{guard:"isEditControlled",actions:["invokeOnPreview"]},{target:"preview",actions:["setPreviousValue","restoreFocus","invokeOnSubmit","invokeOnPreview"]}]}}},implementations:{guards:{isEditControlled:({prop:e})=>void 0!=e("edit"),isSubmitEvent:({event:e})=>e.previousEvent?.type==="SUBMIT"},effects:{trackInteractOutside:({send:e,scope:t,prop:n,computed:r})=>(0,tb.$)(tx(t),{exclude:e=>[t.getById(t.ids?.cancelTrigger??`editable:${t.id}:cancel`),t.getById(t.ids?.submitTrigger??`editable:${t.id}:submit`)].some(t=>(0,ep.gR)(t,e)),onFocusOutside:n("onFocusOutside"),onPointerDownOutside:n("onPointerDownOutside"),onInteractOutside(t){if(n("onInteractOutside")?.(t),t.defaultPrevented)return;let{focusable:i}=t.detail;e({type:r("submitOnBlur")?"SUBMIT":"CANCEL",src:"interact-outside",focusable:i})}})},actions:{restoreFocus({event:e,scope:t,prop:n}){e.focusable||(0,ep.er)(()=>{let e=n("finalFocusEl")?.()??t.getById(t.ids?.editTrigger??`editable:${t.id}:edit`);e?.focus({preventScroll:!0})})},clearValue({context:e}){e.set("value","")},focusInputIfNeeded({action:e,prop:t}){(t("edit")||t("defaultEdit"))&&e(["focusInput"])},focusInput({scope:e,prop:t}){(0,ep.er)(()=>{let n=tx(e);n&&(t("selectOnFocus")?n.select():n.focus({preventScroll:!0}))})},invokeOnCancel({prop:e,context:t}){let n=t.get("previousValue");e("onValueRevert")?.({value:n})},invokeOnSubmit({prop:e,context:t}){let n=t.get("value");e("onValueCommit")?.({value:n})},invokeOnEdit({prop:e}){e("onEditChange")?.({edit:!0})},invokeOnPreview({prop:e}){e("onEditChange")?.({edit:!1})},toggleEditing({prop:e,send:t,event:n}){t({type:e("edit")?"CONTROLLED.EDIT":"CONTROLLED.PREVIEW",previousEvent:n})},syncInputValue({context:e,scope:t}){let n=tx(t);n&&(0,ep.U4)(n,e.get("value"))},setValue({context:e,prop:t,event:n}){let r=t("maxLength"),i=null!=r?n.value.slice(0,r):n.value;e.set("value",i)},setPreviousValue({context:e}){e.set("previousValue",e.get("value"))},revertValue({context:e}){let t=e.get("previousValue");t&&e.set("value",t)},blurInputIfNeeded({scope:e}){tx(e)?.blur()}}}});var tw=(0,ey.x)()(["activationMode","autoResize","dir","disabled","finalFocusEl","form","getRootNode","id","ids","invalid","maxLength","name","onEditChange","onFocusOutside","onInteractOutside","onPointerDownOutside","onValueChange","onValueCommit","onValueRevert","placeholder","readOnly","required","selectOnFocus","edit","defaultEdit","submitMode","translations","defaultValue","value"]);(0,G.PM)(tw);var tS=n(35656);let tE=(0,$.y)("fieldset").parts("root","errorText","helperText","legend");tE.build();var tk=e=>(function(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)})(e)||/^.*\.[\w]+$/.test(e),tC=(e,t)=>e.name===t.name&&e.size===t.size&&e.type===t.type,tO=new Map("3g2_video/3gpp2[3gp,3gpp_video/3gpp[3mf_model/3mf[7z_application/x-7z-compressed[aac_audio/aac[ac_application/pkix-attr-cert[adp_audio/adpcm[adts_audio/aac[ai_application/postscript[aml_application/automationml-aml+xml[amlx_application/automationml-amlx+zip[amr_audio/amr[apk_application/vnd.android.package-archive[apng_image/apng[appcache,manifest_text/cache-manifest[appinstaller_application/appinstaller[appx_application/appx[appxbundle_application/appxbundle[asc_application/pgp-keys[atom_application/atom+xml[atomcat_application/atomcat+xml[atomdeleted_application/atomdeleted+xml[atomsvc_application/atomsvc+xml[au,snd_audio/basic[avi_video/x-msvideo[avci_image/avci[avcs_image/avcs[avif_image/avif[aw_application/applixware[bdoc_application/bdoc[bin,bpk,buffer,deb,deploy,dist,distz,dll,dmg,dms,dump,elc,exe,img,iso,lrf,mar,msi,msm,msp,pkg,so_application/octet-stream[bmp,dib_image/bmp[btf,btif_image/prs.btif[bz2_application/x-bzip2[c_text/x-c[ccxml_application/ccxml+xml[cdfx_application/cdfx+xml[cdmia_application/cdmi-capability[cdmic_application/cdmi-container[cdmid_application/cdmi-domain[cdmio_application/cdmi-object[cdmiq_application/cdmi-queue[cer_application/pkix-cert[cgm_image/cgm[cjs_application/node[class_application/java-vm[coffee,litcoffee_text/coffeescript[conf,def,in,ini,list,log,text,txt_text/plain[cpp,cxx,cc_text/x-c++src[cpl_application/cpl+xml[cpt_application/mac-compactpro[crl_application/pkix-crl[css_text/css[csv_text/csv[cu_application/cu-seeme[cwl_application/cwl[cww_application/prs.cww[davmount_application/davmount+xml[dbk_application/docbook+xml[doc_application/msword[docx_application/vnd.openxmlformats-officedocument.wordprocessingml.document[dsc_text/prs.lines.tag[dssc_application/dssc+der[dtd_application/xml-dtd[dwd_application/atsc-dwd+xml[ear,jar,war_application/java-archive[ecma_application/ecmascript[emf_image/emf[eml,mime_message/rfc822[emma_application/emma+xml[emotionml_application/emotionml+xml[eot_application/vnd.ms-fontobject[eps,ps_application/postscript[epub_application/epub+zip[exi_application/exi[exp_application/express[exr_image/aces[ez_application/andrew-inset[fdf_application/fdf[fdt_application/fdt+xml[fits_image/fits[flac_audio/flac[flv_video/x-flv[g3_image/g3fax[geojson_application/geo+json[gif_image/gif[glb_model/gltf-binary[gltf_model/gltf+json[gml_application/gml+xml[go_text/x-go[gpx_application/gpx+xml[gz_application/gzip[h_text/x-h[h261_video/h261[h263_video/h263[h264_video/h264[heic_image/heic[heics_image/heic-sequence[heif_image/heif[heifs_image/heif-sequence[htm,html,shtml_text/html[ico_image/x-icon[icns_image/x-icns[ics,ifb_text/calendar[iges,igs_model/iges[ink,inkml_application/inkml+xml[ipa_application/octet-stream[java_text/x-java-source[jp2,jpg2_image/jp2[jpeg,jpe,jpg_image/jpeg[jpf,jpx_image/jpx[jpm,jpgm_image/jpm[jpgv_video/jpeg[jph_image/jph[js,mjs_text/javascript[json_application/json[json5_application/json5[jsonld_application/ld+json[jsx_text/jsx[jxl_image/jxl[jxr_image/jxr[ktx_image/ktx[ktx2_image/ktx2[less_text/less[m1v,m2v,mpe,mpeg,mpg_video/mpeg[m4a_audio/mp4[m4v_video/x-m4v[md,markdown_text/markdown[mid,midi,kar,rmi_audio/midi[mkv_video/x-matroska[mp2,mp2a,mp3,mpga,m3a,m2a_audio/mpeg[mp4,mp4v,mpg4_video/mp4[mp4a_audio/mp4[mp4s,m4p_application/mp4[odp_application/vnd.oasis.opendocument.presentation[oda_application/oda[ods_application/vnd.oasis.opendocument.spreadsheet[odt_application/vnd.oasis.opendocument.text[oga,ogg,opus,spx_audio/ogg[ogv_video/ogg[ogx_application/ogg[otf_font/otf[p12,pfx_application/x-pkcs12[pdf_application/pdf[pem_application/x-pem-file[php_text/x-php[png_image/png[ppt_application/vnd.ms-powerpoint[pptx_application/vnd.openxmlformats-officedocument.presentationml.presentation[pskcxml_application/pskc+xml[psd_image/vnd.adobe.photoshop[py_text/x-python[qt,mov_video/quicktime[rar_application/vnd.rar[rdf_application/rdf+xml[rtf_text/rtf[sass_text/x-sass[scss_text/x-scss[sgm,sgml_text/sgml[sh_application/x-sh[svg,svgz_image/svg+xml[swf_application/x-shockwave-flash[tar_application/x-tar[tif,tiff_image/tiff[toml_application/toml[ts_video/mp2t[tsx_text/tsx[tsv_text/tab-separated-values[ttc_font/collection[ttf_font/ttf[vtt_text/vtt[wasm_application/wasm[wav_audio/wav[weba_audio/webm[webm_video/webm[webmanifest_application/manifest+json[webp_image/webp[wma_audio/x-ms-wma[wmv_video/x-ms-wmv[woff_font/woff[woff2_font/woff2[xls_application/vnd.ms-excel[xlsx_application/vnd.openxmlformats-officedocument.spreadsheetml.sheet[xml_application/xml[xz_application/x-xz[yaml,yml_text/yaml[zip_application/zip".split("[").flatMap(e=>{let[t,n]=e.split("_");return t.split(",").map(e=>[e,n])})),tI=(0,$.y)("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger");tI.build();var t_=e=>e.getById((e=>e.ids?.hiddenInput??`file:${e.id}:input`)(e));function tT(e,t,n=[],r=[]){let{prop:i,computed:o}=e,a=[],s=[],l={acceptedFiles:n,rejectedFiles:r};return t.forEach(e=>{let[t,n]=function(e,t){let n="application/x-moz-file"===e.type||function(e,t){if(e&&t){let n=Array.isArray(t)?t:"string"==typeof t?t.split(","):[];if(0===n.length)return!0;let r=e.name||"",i=(e.type||function(e){let t=e.split(".").pop();return t&&tO.get(t)||null}(r)||"").toLowerCase(),o=i.replace(/\/.*$/,"");return n.some(e=>{let t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?o===t.replace(/\/.*$/,""):i===t})}return!0}(e,t);return[n,n?null:"FILE_INVALID_TYPE"]}(e,o("acceptAttr")),[r,u]=function(e,t,n){if(null!=e.size)if(null!=t&&null!=n){if(e.size>n)return[!1,"FILE_TOO_LARGE"];if(e.size<t)return[!1,"FILE_TOO_SMALL"]}else{if(null!=t&&e.size<t)return[!1,"FILE_TOO_SMALL"];if(null!=n&&e.size>n)return[!1,"FILE_TOO_LARGE"]}return[!0,null]}(e,i("minFileSize"),i("maxFileSize")),c=i("validate")?.(e,l),d=!c||0===c.length;if(t&&r&&d)a.push(e);else{let t=[n,u];d||t.push(...c??[]),s.push({file:e,errors:t.filter(Boolean)})}}),!function(e,t,n){let{prop:r,computed:i}=e;return(!!i("multiple")||!(t>1))&&(!i("multiple")&&t+n.length===2||!(t+n.length>r("maxFiles")))}(e,a.length,n)&&(a.forEach(e=>{s.push({file:e,errors:["TOO_MANY_FILES"]})}),a.splice(0)),{acceptedFiles:a,rejectedFiles:s}}(0,em.Op)({props:({props:e})=>({minFileSize:0,maxFileSize:1/0,maxFiles:1,allowDrop:!0,preventDocumentDrop:!0,defaultAcceptedFiles:[],...e,translations:{dropzone:"dropzone",itemPreview:e=>`preview of ${e.name}`,deleteFile:e=>`delete file ${e.name}`,...e.translations}}),initialState:()=>"idle",context:({prop:e,bindable:t,getContext:n})=>({acceptedFiles:t(()=>({defaultValue:e("defaultAcceptedFiles"),value:e("acceptedFiles"),isEqual:(e,t)=>e.length===t?.length&&e.every((e,n)=>tC(e,t[n])),hash:e=>e.map(e=>`${e.name}-${e.size}`).join(","),onChange(t){let r=n();e("onFileAccept")?.({files:t}),e("onFileChange")?.({acceptedFiles:t,rejectedFiles:r.get("rejectedFiles")})}})),rejectedFiles:t(()=>({defaultValue:[],isEqual:(e,t)=>e.length===t?.length&&e.every((e,n)=>tC(e.file,t[n].file)),onChange(t){let r=n();e("onFileReject")?.({files:t}),e("onFileChange")?.({acceptedFiles:r.get("acceptedFiles"),rejectedFiles:t})}})),transforming:t(()=>({defaultValue:!1}))}),computed:{acceptAttr:({prop:e})=>(function(e){if(null!=e)return"string"==typeof e?e:Array.isArray(e)?e.filter(tk).join(","):Object.entries(e).reduce((e,[t,n])=>[...e,t,...n],[]).filter(tk).join(",")})(e("accept")),multiple:({prop:e})=>e("maxFiles")>1},watch({track:e,context:t,action:n}){e([()=>t.hash("acceptedFiles")],()=>{n(["syncInputElement"])})},on:{"FILES.SET":{actions:["setFiles"]},"FILE.SELECT":{actions:["setEventFiles"]},"FILE.DELETE":{actions:["removeFile"]},"FILES.CLEAR":{actions:["clearFiles"]},"REJECTED_FILES.CLEAR":{actions:["clearRejectedFiles"]}},effects:["preventDocumentDrop"],states:{idle:{on:{OPEN:{actions:["openFilePicker"]},"DROPZONE.CLICK":{actions:["openFilePicker"]},"DROPZONE.FOCUS":{target:"focused"},"DROPZONE.DRAG_OVER":{target:"dragging"}}},focused:{on:{"DROPZONE.BLUR":{target:"idle"},OPEN:{actions:["openFilePicker"]},"DROPZONE.CLICK":{actions:["openFilePicker"]},"DROPZONE.DRAG_OVER":{target:"dragging"}}},dragging:{on:{"DROPZONE.DROP":{target:"idle",actions:["setEventFiles"]},"DROPZONE.DRAG_LEAVE":{target:"idle"}}}},implementations:{effects:{preventDocumentDrop({prop:e,scope:t}){if(!e("preventDocumentDrop")||!e("allowDrop")||e("disabled"))return;let n=t.getDoc();return(0,G.OK)((0,ep.kn)(n,"dragover",e=>{e?.preventDefault()},!1),(0,ep.kn)(n,"drop",e=>{(0,ep.gR)(t.getById(t.ids?.root??`file:${t.id}`),(0,ep.wt)(e))||e.preventDefault()},!1))}},actions:{syncInputElement({scope:e,context:t}){queueMicrotask(()=>{let n=t_(e);if(!n)return;var r=t.get("acceptedFiles");let i=(0,ep.zk)(n);try{if("DataTransfer"in i){let e=new i.DataTransfer;r.forEach(t=>{e.items.add(t)}),n.files=e.files}}catch{}let o=e.getWin();n.dispatchEvent(new o.Event("change",{bubbles:!0}))})},openFilePicker({scope:e}){(0,ep.er)(()=>{t_(e)?.click()})},setFiles(e){let{computed:t,context:n,event:r}=e,{acceptedFiles:i,rejectedFiles:o}=tT(e,r.files);n.set("acceptedFiles",t("multiple")?i:i.length>0?[i[0]]:[]),n.set("rejectedFiles",o)},setEventFiles(e){let{computed:t,context:n,event:r,prop:i}=e,o=n.get("acceptedFiles"),a=n.get("rejectedFiles"),{acceptedFiles:s,rejectedFiles:l}=tT(e,r.files,o,a),u=e=>{if(t("multiple")){n.set("acceptedFiles",t=>[...t,...e]),n.set("rejectedFiles",l);return}if(e.length){n.set("acceptedFiles",[e[0]]),n.set("rejectedFiles",l);return}l.length&&(n.set("acceptedFiles",n.get("acceptedFiles")),n.set("rejectedFiles",l))},c=i("transformFiles");c?(n.set("transforming",!0),c(s).then(u).catch(e=>{(0,G.R8)(`[zag-js/file-upload] error transforming files
2
- ${e}`)}).finally(()=>{n.set("transforming",!1)})):u(s)},removeFile({context:e,event:t}){let n=e.get("acceptedFiles").filter(e=>!tC(e,t.file)),r=e.get("rejectedFiles").filter(e=>!tC(e.file,t.file));e.set("acceptedFiles",n),e.set("rejectedFiles",r)},clearRejectedFiles({context:e}){e.set("rejectedFiles",[])},clearFiles({context:e}){e.set("acceptedFiles",[]),e.set("rejectedFiles",[])}}}});var tP=(0,ey.x)()(["accept","acceptedFiles","allowDrop","capture","defaultAcceptedFiles","dir","directory","disabled","getRootNode","id","ids","invalid","locale","maxFiles","maxFileSize","minFileSize","name","onFileAccept","onFileChange","onFileReject","preventDocumentDrop","required","transformFiles","translations","validate"]);(0,G.PM)(tP);var tR=(0,ey.x)()(["file"]);(0,G.PM)(tR);var tA=n(7685),tN=n(33392),tM=n(88464),tL=(0,$.y)("rating-group").parts("root","label","item","control");tL.build();var tV=e=>e.getById((e=>e.ids?.control??`rating:${e.id}:control`)(e)),tD=e=>e.getById((e=>e.ids?.hiddenInput??`rating:${e.id}:input`)(e));(0,em.Op)({props:({props:e})=>({name:"rating",count:5,dir:"ltr",defaultValue:-1,...e,translations:{ratingValueText:e=>`${e} stars`,...e.translations}}),initialState:()=>"idle",context:({prop:e,bindable:t})=>({value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(t){e("onValueChange")?.({value:t})}})),hoveredValue:t(()=>({defaultValue:-1,onChange(t){e("onHoverChange")?.({hoveredValue:t})}})),fieldsetDisabled:t(()=>({defaultValue:!1}))}),watch({track:e,action:t,prop:n,context:r}){e([()=>n("allowHalf")],()=>{t(["roundValueIfNeeded"])}),e([()=>r.get("value")],()=>{t(["dispatchChangeEvent"])})},computed:{isDisabled:({context:e,prop:t})=>!!t("disabled")||e.get("fieldsetDisabled"),isInteractive:({computed:e,prop:t})=>!(e("isDisabled")||t("readOnly")),isHovering:({context:e})=>e.get("hoveredValue")>-1},effects:["trackFormControlState"],on:{SET_VALUE:{actions:["setValue"]},CLEAR_VALUE:{actions:["clearValue"]}},states:{idle:{entry:["clearHoveredValue"],on:{GROUP_POINTER_OVER:{target:"hover"},FOCUS:{target:"focus"},CLICK:{actions:["setValue","focusActiveRadio"]}}},focus:{on:{POINTER_OVER:{actions:["setHoveredValue"]},GROUP_POINTER_LEAVE:{actions:["clearHoveredValue"]},BLUR:{target:"idle"},SPACE:{guard:"isValueEmpty",actions:["setValue"]},CLICK:{actions:["setValue","focusActiveRadio"]},ARROW_LEFT:{actions:["setPrevValue","focusActiveRadio"]},ARROW_RIGHT:{actions:["setNextValue","focusActiveRadio"]},HOME:{actions:["setValueToMin","focusActiveRadio"]},END:{actions:["setValueToMax","focusActiveRadio"]}}},hover:{on:{POINTER_OVER:{actions:["setHoveredValue"]},GROUP_POINTER_LEAVE:[{guard:"isRadioFocused",target:"focus",actions:["clearHoveredValue"]},{target:"idle",actions:["clearHoveredValue"]}],CLICK:{actions:["setValue","focusActiveRadio"]}}}},implementations:{guards:{isInteractive:({prop:e})=>!(e("disabled")||e("readOnly")),isHoveredValueEmpty:({context:e})=>-1===e.get("hoveredValue"),isValueEmpty:({context:e})=>0>=e.get("value"),isRadioFocused:({scope:e})=>!!tV(e)?.contains(e.getActiveElement())},effects:{trackFormControlState:({context:e,scope:t})=>(0,ep.$S)(tD(t),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){e.set("value",e.initial("value"))}})},actions:{clearHoveredValue({context:e}){e.set("hoveredValue",-1)},focusActiveRadio({scope:e,context:t}){(0,ep.er)(()=>((e,t)=>{let n=`[role=radio][aria-posinset='${Math.ceil(t)}']`;return(0,ep.P)(tV(e),n)})(e,t.get("value"))?.focus())},setPrevValue({context:e,prop:t}){let n=t("allowHalf")?.5:1;e.set("value",Math.max(0,e.get("value")-n))},setNextValue({context:e,prop:t}){let n=t("allowHalf")?.5:1,r=-1===e.get("value")?0:e.get("value");e.set("value",Math.min(t("count"),r+n))},setValueToMin({context:e}){e.set("value",1)},setValueToMax({context:e,prop:t}){e.set("value",t("count"))},setValue({context:e,event:t}){let n=e.get("hoveredValue"),r=-1===n?t.value:n;e.set("value",r)},clearValue({context:e}){e.set("value",-1)},setHoveredValue({context:e,prop:t,event:n}){let r=t("allowHalf")&&n.isMidway;e.set("hoveredValue",n.index-.5*!!r)},roundValueIfNeeded({context:e,prop:t}){t("allowHalf")||e.set("value",Math.round(e.get("value")))},dispatchChangeEvent({context:e,scope:t}){var n=e.get("value");let r=tD(t);r&&(0,ep.CF)(r,{value:n})}}}});var tF=(0,ey.x)()(["allowHalf","autoFocus","count","dir","disabled","form","getRootNode","id","ids","name","onHoverChange","onValueChange","required","readOnly","translations","value","defaultValue"]);(0,G.PM)(tF);var tj=(0,ey.x)()(["index"]);(0,G.PM)(tj);var tz=(0,$.y)("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText");tz.build();var tB=e=>new Q(e);tB.empty=()=>new Q({items:[]});var tU=e=>e.getById((e=>e.ids?.hiddenSelect??`select:${e.id}:select`)(e)),tW=e=>e.getById((e=>e.ids?.content??`select:${e.id}:content`)(e)),tH=e=>e.getById((e=>e.ids?.trigger??`select:${e.id}:trigger`)(e)),tq=e=>e.getById((e=>e.ids?.positioner??`select:${e.id}:positioner`)(e)),{and:t$,not:tG,or:tK}=(0,em.b6)();function tY(e){let t=e.restoreFocus??e.previousEvent?.restoreFocus;return null==t||!!t}(0,em.Op)({props:({props:e})=>({loopFocus:!1,closeOnSelect:!e.multiple,composite:!0,defaultValue:[],...e,collection:e.collection??tB.empty(),positioning:{placement:"bottom-start",gutter:8,...e.positioning}}),context:({prop:e,bindable:t})=>({value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:G.n4,onChange(t){let n=e("collection").findMany(t);return e("onValueChange")?.({value:t,items:n})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(t){e("onHighlightChange")?.({highlightedValue:t,highlightedItem:e("collection").find(t),highlightedIndex:e("collection").indexOf(t)})}})),currentPlacement:t(()=>({defaultValue:void 0})),fieldsetDisabled:t(()=>({defaultValue:!1})),highlightedItem:t(()=>({defaultValue:null})),selectedItems:t(()=>{let t=e("value")??e("defaultValue")??[];return{defaultValue:e("collection").findMany(t)}})}),refs:()=>({typeahead:{...ep.tt.defaultOptions}}),computed:{hasSelectedItems:({context:e})=>e.get("value").length>0,isTypingAhead:({refs:e})=>""!==e.get("typeahead").keysSoFar,isDisabled:({prop:e,context:t})=>!!e("disabled")||!!t.get("fieldsetDisabled"),isInteractive:({prop:e})=>!(e("disabled")||e("readOnly")),valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems"))},initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"idle",entry:["syncSelectElement"],watch({context:e,prop:t,track:n,action:r}){n([()=>e.get("value").toString()],()=>{r(["syncSelectedItems","syncSelectElement","dispatchChangeEvent"])}),n([()=>t("open")],()=>{r(["toggleVisibility"])}),n([()=>e.get("highlightedValue")],()=>{r(["syncHighlightedItem"])}),n([()=>t("collection").toString()],()=>{r(["syncCollection"])})},on:{"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedItem"]},"HIGHLIGHTED_VALUE.CLEAR":{actions:["clearHighlightedItem"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setSelectedItems"]},"VALUE.CLEAR":{actions:["clearSelectedItems"]},"CLEAR.CLICK":{actions:["clearSelectedItems","focusTriggerEl"]}},effects:["trackFormControlState"],states:{idle:{tags:["closed"],on:{"CONTROLLED.OPEN":[{guard:"isTriggerClickEvent",target:"open",actions:["setInitialFocus","highlightFirstSelectedItem"]},{target:"open",actions:["setInitialFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus","highlightFirstSelectedItem"]}],"TRIGGER.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen"]}]}},focused:{tags:["closed"],on:{"CONTROLLED.OPEN":[{guard:"isTriggerClickEvent",target:"open",actions:["setInitialFocus","highlightFirstSelectedItem"]},{guard:"isTriggerArrowUpEvent",target:"open",actions:["setInitialFocus","highlightComputedLastItem"]},{guard:tK("isTriggerArrowDownEvent","isTriggerEnterEvent"),target:"open",actions:["setInitialFocus","highlightComputedFirstItem"]},{target:"open",actions:["setInitialFocus"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen"]}],"TRIGGER.BLUR":{target:"idle"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightFirstSelectedItem"]}],"TRIGGER.ENTER":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedFirstItem"]}],"TRIGGER.ARROW_UP":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedLastItem"]}],"TRIGGER.ARROW_DOWN":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedFirstItem"]}],"TRIGGER.ARROW_LEFT":[{guard:t$(tG("multiple"),"hasSelectedItems"),actions:["selectPreviousItem"]},{guard:tG("multiple"),actions:["selectLastItem"]}],"TRIGGER.ARROW_RIGHT":[{guard:t$(tG("multiple"),"hasSelectedItems"),actions:["selectNextItem"]},{guard:tG("multiple"),actions:["selectFirstItem"]}],"TRIGGER.HOME":{guard:tG("multiple"),actions:["selectFirstItem"]},"TRIGGER.END":{guard:tG("multiple"),actions:["selectLastItem"]},"TRIGGER.TYPEAHEAD":{guard:tG("multiple"),actions:["selectMatchingItem"]}}},open:{tags:["open"],exit:["scrollContentToTop"],effects:["trackDismissableElement","computePlacement","scrollToHighlightedItem"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["focusTriggerEl","clearHighlightedItem"]},{target:"idle",actions:["clearHighlightedItem"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{guard:"restoreFocus",target:"focused",actions:["invokeOnClose","focusTriggerEl","clearHighlightedItem"]},{target:"idle",actions:["invokeOnClose","clearHighlightedItem"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","clearHighlightedItem"]}],"ITEM.CLICK":[{guard:t$("closeOnSelect","isOpenControlled"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","focusTriggerEl","clearHighlightedItem"]},{actions:["selectHighlightedItem"]}],"CONTENT.HOME":{actions:["highlightFirstItem"]},"CONTENT.END":{actions:["highlightLastItem"]},"CONTENT.ARROW_DOWN":[{guard:t$("hasHighlightedItem","loop","isLastItemHighlighted"),actions:["highlightFirstItem"]},{guard:"hasHighlightedItem",actions:["highlightNextItem"]},{actions:["highlightFirstItem"]}],"CONTENT.ARROW_UP":[{guard:t$("hasHighlightedItem","loop","isFirstItemHighlighted"),actions:["highlightLastItem"]},{guard:"hasHighlightedItem",actions:["highlightPreviousItem"]},{actions:["highlightLastItem"]}],"CONTENT.TYPEAHEAD":{actions:["highlightMatchingItem"]},"ITEM.POINTER_MOVE":{actions:["highlightItem"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedItem"]},"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{loop:({prop:e})=>!!e("loopFocus"),multiple:({prop:e})=>!!e("multiple"),hasSelectedItems:({computed:e})=>!!e("hasSelectedItems"),hasHighlightedItem:({context:e})=>null!=e.get("highlightedValue"),isFirstItemHighlighted:({context:e,prop:t})=>e.get("highlightedValue")===t("collection").firstValue,isLastItemHighlighted:({context:e,prop:t})=>e.get("highlightedValue")===t("collection").lastValue,closeOnSelect:({prop:e,event:t})=>!!(t.closeOnSelect??e("closeOnSelect")),restoreFocus:({event:e})=>tY(e),isOpenControlled:({prop:e})=>void 0!==e("open"),isTriggerClickEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.CLICK",isTriggerEnterEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ENTER",isTriggerArrowUpEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ARROW_UP",isTriggerArrowDownEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ARROW_DOWN"},effects:{trackFormControlState:({context:e,scope:t})=>(0,ep.$S)(tU(t),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){let t=e.initial("value");e.set("value",t)}}),trackDismissableElement({scope:e,send:t,prop:n}){let r=!0;return(0,eb.u)(()=>tW(e),{defer:!0,exclude:[tH(e),e.getById(e.ids?.clearTrigger??`select:${e.id}:clear-trigger`)],onFocusOutside:n("onFocusOutside"),onPointerDownOutside:n("onPointerDownOutside"),onInteractOutside(e){n("onInteractOutside")?.(e),r=!(e.detail.focusable||e.detail.contextmenu)},onDismiss(){t({type:"CLOSE",src:"interact-outside",restoreFocus:r})}})},computePlacement({context:e,prop:t,scope:n}){let r=t("positioning");return e.set("currentPlacement",r.placement),(0,eg.Ox)(()=>tH(n),()=>tq(n),{defer:!0,...r,onComplete(t){e.set("currentPlacement",t.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:n,event:r}){let i=i=>{let o=e.get("highlightedValue");if(null==o||r.current().type.includes("POINTER"))return;let a=n.getById(n.ids?.item?.(o)??`select:${n.id}:option:${o}`),s=tW(n),l=t("scrollToIndexFn");if(l){let e=t("collection").indexOf(o);l?.({index:e,immediate:i});return}(0,ep.Rt)(a,{rootEl:s,block:"nearest"})};return(0,ep.er)(()=>i(!0)),(0,ep.mx)(()=>tW(n),{defer:!0,attributes:["data-activedescendant"],callback(){i(!1)}})}},actions:{reposition({context:e,prop:t,scope:n,event:r}){(0,eg.Ox)(tH(n),()=>tq(n),{...t("positioning"),...r.options,defer:!0,listeners:!1,onComplete(t){e.set("currentPlacement",t.placement)}})},toggleVisibility({send:e,prop:t,event:n}){e({type:t("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:n})},highlightPreviousItem({context:e,prop:t}){let n=e.get("highlightedValue");if(null==n)return;let r=t("collection").getPreviousValue(n,1,t("loopFocus"));null!=r&&e.set("highlightedValue",r)},highlightNextItem({context:e,prop:t}){let n=e.get("highlightedValue");if(null==n)return;let r=t("collection").getNextValue(n,1,t("loopFocus"));null!=r&&e.set("highlightedValue",r)},highlightFirstItem({context:e,prop:t}){let n=t("collection").firstValue;e.set("highlightedValue",n)},highlightLastItem({context:e,prop:t}){let n=t("collection").lastValue;e.set("highlightedValue",n)},setInitialFocus({scope:e}){(0,ep.er)(()=>{let t=(0,ep.RD)({root:tW(e)});t?.focus({preventScroll:!0})})},focusTriggerEl({event:e,scope:t}){tY(e)&&(0,ep.er)(()=>{let e=tH(t);e?.focus({preventScroll:!0})})},selectHighlightedItem({context:e,prop:t,event:n}){let r=n.value??e.get("highlightedValue");null!=r&&t("collection").has(r)&&(t("onSelect")?.({value:r}),r=t("deselectable")&&!t("multiple")&&e.get("value").includes(r)?null:r,e.set("value",e=>null==r?[]:t("multiple")?(0,G.Xx)(e,r):[r]))},highlightComputedFirstItem({context:e,prop:t,computed:n}){let r=t("collection"),i=n("hasSelectedItems")?r.sort(e.get("value"))[0]:r.firstValue;e.set("highlightedValue",i)},highlightComputedLastItem({context:e,prop:t,computed:n}){let r=t("collection"),i=n("hasSelectedItems")?r.sort(e.get("value"))[0]:r.lastValue;e.set("highlightedValue",i)},highlightFirstSelectedItem({context:e,prop:t,computed:n}){if(!n("hasSelectedItems"))return;let r=t("collection").sort(e.get("value"))[0];e.set("highlightedValue",r)},highlightItem({context:e,event:t}){e.set("highlightedValue",t.value)},highlightMatchingItem({context:e,prop:t,event:n,refs:r}){let i=t("collection").search(n.key,{state:r.get("typeahead"),currentValue:e.get("highlightedValue")});null!=i&&e.set("highlightedValue",i)},setHighlightedItem({context:e,event:t}){e.set("highlightedValue",t.value)},clearHighlightedItem({context:e}){e.set("highlightedValue",null)},selectItem({context:e,prop:t,event:n}){t("onSelect")?.({value:n.value});let r=t("deselectable")&&!t("multiple")&&e.get("value").includes(n.value)?null:n.value;e.set("value",e=>null==r?[]:t("multiple")?(0,G.Xx)(e,r):[r])},clearItem({context:e,event:t}){e.set("value",e=>e.filter(e=>e!==t.value))},setSelectedItems({context:e,event:t}){e.set("value",t.value)},clearSelectedItems({context:e}){e.set("value",[])},selectPreviousItem({context:e,prop:t}){let[n]=e.get("value"),r=t("collection").getPreviousValue(n);r&&e.set("value",[r])},selectNextItem({context:e,prop:t}){let[n]=e.get("value"),r=t("collection").getNextValue(n);r&&e.set("value",[r])},selectFirstItem({context:e,prop:t}){let n=t("collection").firstValue;n&&e.set("value",[n])},selectLastItem({context:e,prop:t}){let n=t("collection").lastValue;n&&e.set("value",[n])},selectMatchingItem({context:e,prop:t,event:n,refs:r}){let i=t("collection").search(n.key,{state:r.get("typeahead"),currentValue:e.get("value")[0]});null!=i&&e.set("value",[i])},scrollContentToTop({prop:e,scope:t}){e("scrollToIndexFn")?e("scrollToIndexFn")?.({index:0,immediate:!0}):tW(t)?.scrollTo(0,0)},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},syncSelectElement({context:e,prop:t,scope:n}){let r=tU(n);if(r){if(0===e.get("value").length&&!t("multiple")){r.selectedIndex=-1;return}for(let t of r.options)t.selected=e.get("value").includes(t.value)}},syncCollection({context:e,prop:t}){let n=t("collection"),r=n.find(e.get("highlightedValue"));r&&e.set("highlightedItem",r);let i=n.findMany(e.get("value"));e.set("selectedItems",i)},syncSelectedItems({context:e,prop:t}){let n=t("collection"),r=e.get("selectedItems"),i=e.get("value").map(e=>r.find(t=>n.getItemValue(t)===e)||n.find(e));e.set("selectedItems",i)},syncHighlightedItem({context:e,prop:t}){let n=t("collection"),r=e.get("highlightedValue"),i=r?n.find(r):null;e.set("highlightedItem",i)},dispatchChangeEvent({scope:e}){queueMicrotask(()=>{let t=tU(e);if(!t)return;let n=new(e.getWin()).Event("change",{bubbles:!0,composed:!0});t.dispatchEvent(n)})}}}});var tX=(0,ey.x)()(["closeOnSelect","collection","composite","defaultHighlightedValue","defaultOpen","defaultValue","deselectable","dir","disabled","form","getRootNode","highlightedValue","id","ids","invalid","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","positioning","readOnly","required","scrollToIndexFn","value"]);(0,G.PM)(tX);var tQ=(0,ey.x)()(["item","persistFocus"]);(0,G.PM)(tQ);var tJ=(0,ey.x)()(["id"]);(0,G.PM)(tJ);var tZ=(0,ey.x)()(["htmlFor"]);(0,G.PM)(tZ);var t0=(0,$.y)("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator");t0.build();var t1=(e,t)=>e.getById(((e,t)=>e.ids?.hiddenInput?.(t)??`slider:${e.id}:input:${t}`)(e,t)),t2=e=>e.getById((e=>e.ids?.control??`slider:${e.id}:control`)(e)),t5=(e,t)=>{let{prop:n,scope:r}=e,i=t2(r);if(!i)return;let o=(0,ep.NH)(t,i).getPercentValue({orientation:n("orientation"),dir:n("dir"),inverted:{y:!0}});return(0,G.F4)(o,n("min"),n("max"),n("step"))};function t3(e,t){let{context:n,prop:r}=e,i=r("step")*r("minStepsBetweenThumbs");return(0,G.Yi)(n.get("value"),r("min"),r("max"),i)[t]}function t4(e,t,n){let{prop:r}=e,i=t3(e,n),o=(0,G.BU)(t,r("min"),r("max"),r("step"));return(0,G.L3)(o,i.min,i.max)}var t6=(e,t,n,r,i)=>(0,G.Yi)(e,t,n,i*r).map(e=>{let i=(0,G.BU)(e.value,e.min,e.max,r),o=(0,G.L3)(i,e.min,e.max);if(!(0,G.s)(o,t,n))throw Error("[zag-js/slider] The configured `min`, `max`, `step` or `minStepsBetweenThumbs` values are invalid");return o});(0,em.Op)({props({props:e}){let t=e.min??0,n=e.max??100,r=e.step??1,i=e.defaultValue??[t],o=e.minStepsBetweenThumbs??0;return{dir:"ltr",thumbAlignment:"contain",origin:"start",orientation:"horizontal",minStepsBetweenThumbs:o,...e,defaultValue:t6(i,t,n,r,o),value:e.value?t6(e.value,t,n,r,o):void 0,max:n,step:r,min:t}},initialState:()=>"idle",context:({prop:e,bindable:t,getContext:n})=>({thumbSize:t(()=>({defaultValue:e("thumbSize")||null})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:G.n4,hash:e=>e.join(","),onChange(t){e("onValueChange")?.({value:t})}})),focusedIndex:t(()=>({defaultValue:-1,onChange(t){let r=n();e("onFocusChange")?.({focusedIndex:t,value:r.get("value")})}})),fieldsetDisabled:t(()=>({defaultValue:!1}))}),computed:{isHorizontal:({prop:e})=>"horizontal"===e("orientation"),isVertical:({prop:e})=>"vertical"===e("orientation"),isRtl:({prop:e})=>"horizontal"===e("orientation")&&"rtl"===e("dir"),isDisabled:({context:e,prop:t})=>!!t("disabled")||e.get("fieldsetDisabled"),isInteractive:({prop:e,computed:t})=>!(e("readOnly")||t("isDisabled")),hasMeasuredThumbSize:({context:e})=>null!=e.get("thumbSize"),valuePercent:({context:e,prop:t})=>e.get("value").map(e=>100*(0,G.vV)(e,t("min"),t("max")))},watch({track:e,action:t,context:n}){e([()=>n.hash("value")],()=>{t(["syncInputElements","dispatchChangeEvent"])})},effects:["trackFormControlState","trackThumbSize"],on:{SET_VALUE:[{guard:"hasIndex",actions:["setValueAtIndex"]},{actions:["setValue"]}],INCREMENT:{actions:["incrementThumbAtIndex"]},DECREMENT:{actions:["decrementThumbAtIndex"]}},states:{idle:{on:{POINTER_DOWN:{target:"dragging",actions:["setClosestThumbIndex","setPointerValue","focusActiveThumb"]},FOCUS:{target:"focus",actions:["setFocusedIndex"]},THUMB_POINTER_DOWN:{target:"dragging",actions:["setFocusedIndex","focusActiveThumb"]}}},focus:{entry:["focusActiveThumb"],on:{POINTER_DOWN:{target:"dragging",actions:["setClosestThumbIndex","setPointerValue","focusActiveThumb"]},THUMB_POINTER_DOWN:{target:"dragging",actions:["setFocusedIndex","focusActiveThumb"]},ARROW_DEC:{actions:["decrementThumbAtIndex","invokeOnChangeEnd"]},ARROW_INC:{actions:["incrementThumbAtIndex","invokeOnChangeEnd"]},HOME:{actions:["setFocusedThumbToMin","invokeOnChangeEnd"]},END:{actions:["setFocusedThumbToMax","invokeOnChangeEnd"]},BLUR:{target:"idle",actions:["clearFocusedIndex"]}}},dragging:{entry:["focusActiveThumb"],effects:["trackPointerMove"],on:{POINTER_UP:{target:"focus",actions:["invokeOnChangeEnd"]},POINTER_MOVE:{actions:["setPointerValue"]}}}},implementations:{guards:{hasIndex:({event:e})=>null!=e.index},effects:{trackFormControlState:({context:e,scope:t})=>(0,ep.$S)((e=>e.getById((e=>e.ids?.root??`slider:${e.id}`)(e)))(t),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){e.set("value",e.initial("value"))}}),trackPointerMove:({scope:e,send:t})=>(0,ep.Al)(e.getDoc(),{onPointerMove(e){t({type:"POINTER_MOVE",point:e.point})},onPointerUp(){t({type:"POINTER_UP"})}}),trackThumbSize({context:e,scope:t,prop:n}){if(!("contain"!==n("thumbAlignment")||n("thumbSize")))return(0,ep.Gj)((0,ep.YG)(t2(t),"[role=slider]"),{box:"border-box",measure:e=>({left:e?.offsetLeft??0,top:e?.offsetTop??0,width:e?.offsetWidth??0,height:e?.offsetHeight??0}),onEntry({rects:t}){let n;if(0===t.length)return;let r=(0,G.Up)(t[0],["width","height"]);n=e.get("thumbSize"),(n?.width!==r?.width||n?.height!==r?.height)&&e.set("thumbSize",r)}})}},actions:{dispatchChangeEvent({context:e,scope:t}){e.get("value").forEach((e,n)=>{let r=t1(t,n);r&&(0,ep.CF)(r,{value:e})})},syncInputElements({context:e,scope:t}){e.get("value").forEach((e,n)=>{let r=t1(t,n);(0,ep.U4)(r,e.toString())})},invokeOnChangeEnd({prop:e,context:t}){queueMicrotask(()=>{e("onValueChangeEnd")?.({value:t.get("value")})})},setClosestThumbIndex(e){let{context:t,event:n}=e,r=t5(e,n.point);if(null==r)return;let i=function(e,t){let{context:n}=e;return(0,G.T1)(n.get("value"),t)}(e,r);t.set("focusedIndex",i)},setFocusedIndex({context:e,event:t}){e.set("focusedIndex",t.index)},clearFocusedIndex({context:e}){e.set("focusedIndex",-1)},setPointerValue(e){queueMicrotask(()=>{let{context:t,event:n}=e,r=t5(e,n.point);if(null==r)return;let i=t.get("focusedIndex"),o=t4(e,r,i);t.set("value",e=>(0,G.JT)(e,i,o))})},focusActiveThumb({scope:e,context:t}){(0,ep.er)(()=>{let n,r=(n=t.get("focusedIndex"),e.getById(e.ids?.thumb?.(n)??`slider:${e.id}:thumb:${n}`));r?.focus({preventScroll:!0})})},decrementThumbAtIndex(e){let{context:t,event:n}=e,r=function(e,t,n){let{context:r,prop:i}=e,o=t??r.get("focusedIndex"),a=t3(e,o),s=(0,G.kn)(o,{...a,step:n??i("step"),values:r.get("value")});return s[o]=(0,G.L3)(s[o],a.min,a.max),s}(e,n.index,n.step);t.set("value",r)},incrementThumbAtIndex(e){let{context:t,event:n}=e,r=function(e,t,n){let{context:r,prop:i}=e,o=t??r.get("focusedIndex"),a=t3(e,o),s=(0,G.jv)(o,{...a,step:n??i("step"),values:r.get("value")});return s[o]=(0,G.L3)(s[o],a.min,a.max),s}(e,n.index,n.step);t.set("value",r)},setFocusedThumbToMin(e){let{context:t}=e,n=t.get("focusedIndex"),{min:r}=t3(e,n);t.set("value",e=>(0,G.JT)(e,n,r))},setFocusedThumbToMax(e){let{context:t}=e,n=t.get("focusedIndex"),{max:r}=t3(e,n);t.set("value",e=>(0,G.JT)(e,n,r))},setValueAtIndex(e){let{context:t,event:n}=e,r=t4(e,n.value,n.index);t.set("value",e=>(0,G.JT)(e,n.index,r))},setValue(e){let{context:t,event:n}=e,r=n.value.map((t,n)=>t4(e,t,n));t.set("value",r)}}}});var t8=(0,ey.x)()(["aria-label","aria-labelledby","dir","disabled","form","getAriaValueText","getRootNode","id","ids","invalid","max","min","minStepsBetweenThumbs","name","onFocusChange","onValueChange","onValueChangeEnd","orientation","origin","readOnly","step","thumbAlignment","thumbAlignment","thumbSize","value","defaultValue"]);(0,G.PM)(t8);var t7=(0,ey.x)()(["index","name"]);(0,G.PM)(t7);var t9=n(76630);let ne=ez.extendWith("itemBody"),nt=(0,$.y)("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),nn=(0,$.y)("alert").parts("title","description","root","indicator","content"),nr=(0,$.y)("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),ni=(0,$.y)("blockquote").parts("root","icon","content","caption"),no=(0,$.y)("card").parts("root","header","body","footer","title","description"),na=(0,$.y)("checkbox-card",["root","control","label","description","addon","indicator","content"]),ns=(0,$.y)("data-list").parts("root","item","itemLabel","itemValue"),nl=tm.MI.extendWith("header","body","footer","backdrop"),nu=tm.MI.extendWith("header","body","footer","backdrop"),nc=ty.extendWith("textarea"),nd=(0,$.y)("empty-state",["root","content","indicator","title","description"]),nf=tS.K.extendWith("requiredIndicator"),nh=tE.extendWith("content"),np=tI.extendWith("itemContent","dropzoneContent","fileText"),ng=(0,$.y)("list").parts("root","item","indicator"),nv=tA.MI.extendWith("itemCommand"),nm=(0,$.y)("select").parts("root","field","indicator"),nb=tN.MI.extendWith("header","body","footer"),ny=tM.MI.extendWith("itemAddon","itemIndicator"),nx=ny.extendWith("itemContent","itemDescription"),nw=tL.extendWith("itemIndicator"),nS=tz.extendWith("indicatorGroup"),nE=ex.extendWith("indicatorGroup","empty"),nk=t0.extendWith("markerIndicator"),nC=(0,$.y)("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),nO=(0,$.y)("status").parts("root","indicator"),nI=(0,$.y)("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),n_=t9.MI.extendWith("indicator"),nT=(0,$.y)("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),nP=(0,$.y)("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),nR=(0,$.y)("tabs").parts("root","trigger","list","content","contentGroup","indicator"),nA=(0,$.y)("tag").parts("root","label","closeTrigger","startElement","endElement"),nN=(0,$.y)("timeline").parts("root","item","content","separator","indicator","connector","title","description"),nM=tv.extendWith("channelText"),nL=(0,$.y)("code-block",["root","content","title","header","footer","control","overlay","code","codeText","copyTrigger","copyIndicator","collapseTrigger","collapseIndicator","collapseText"]);eK.extendWith("valueText");let nV=(0,i.i_)({className:"chakra-accordion",slots:ne.keys(),base:{root:{width:"full","--accordion-radius":"radii.l2"},item:{overflowAnchor:"none"},itemTrigger:{display:"flex",alignItems:"center",textAlign:"start",width:"full",outline:"0",gap:"3",fontWeight:"medium",borderRadius:"var(--accordion-radius)",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{layerStyle:"disabled"}},itemBody:{pt:"var(--accordion-padding-y)",pb:"calc(var(--accordion-padding-y) * 2)"},itemContent:{overflow:"hidden",borderRadius:"var(--accordion-radius)",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}},itemIndicator:{transition:"rotate 0.2s",transformOrigin:"center",color:"fg.subtle",_open:{rotate:"180deg"},_icon:{width:"1.2em",height:"1.2em"}}},variants:{variant:{outline:{item:{borderBottomWidth:"1px"}},subtle:{itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{borderRadius:"var(--accordion-radius)",_open:{bg:"colorPalette.subtle"}}},enclosed:{root:{borderWidth:"1px",borderRadius:"var(--accordion-radius)",divideY:"1px",overflow:"hidden"},itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{_open:{bg:"bg.subtle"}}},plain:{}},size:{sm:{root:{"--accordion-padding-x":"spacing.3","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"sm",py:"var(--accordion-padding-y)"}},md:{root:{"--accordion-padding-x":"spacing.4","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"md",py:"var(--accordion-padding-y)"}},lg:{root:{"--accordion-padding-x":"spacing.4.5","--accordion-padding-y":"spacing.2.5"},itemTrigger:{textStyle:"lg",py:"var(--accordion-padding-y)"}}}},defaultVariants:{size:"md",variant:"outline"}}),nD=(0,i.i_)({className:"chakra-action-bar",slots:nt.keys(),base:{positioner:{position:"fixed",display:"flex",justifyContent:"center",pointerEvents:"none",insetInline:"0",top:"unset",bottom:"calc(env(safe-area-inset-bottom) + 20px)"},content:{bg:"bg.panel",shadow:"md",display:"flex",alignItems:"center",gap:"3",borderRadius:"l3",py:"2.5",px:"3",pointerEvents:"auto",translate:"calc(-1 * var(--scrollbar-width) / 2) 0px",_open:{animationName:"slide-from-bottom, fade-in",animationDuration:"moderate"},_closed:{animationName:"slide-to-bottom, fade-out",animationDuration:"faster"}},separator:{width:"1px",height:"5",bg:"border"},selectionTrigger:{display:"inline-flex",alignItems:"center",gap:"2",alignSelf:"stretch",textStyle:"sm",px:"4",py:"1",borderRadius:"l2",borderWidth:"1px",borderStyle:"dashed"}}}),nF=(0,i.i_)({slots:nn.keys(),className:"chakra-alert",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",borderRadius:"l3"},title:{fontWeight:"medium"},description:{display:"inline"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",width:"1em",height:"1em",_icon:{boxSize:"full"}},content:{display:"flex",flex:"1",gap:"1"}},variants:{status:{info:{root:{colorPalette:"blue"}},warning:{root:{colorPalette:"orange"}},success:{root:{colorPalette:"green"}},error:{root:{colorPalette:"red"}},neutral:{root:{colorPalette:"gray"}}},inline:{true:{content:{display:"inline-flex",flexDirection:"row",alignItems:"center"}},false:{content:{display:"flex",flexDirection:"column"}}},variant:{subtle:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg"}},surface:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"},indicator:{color:"colorPalette.contrast"}}},size:{sm:{root:{gap:"2",px:"3",py:"3",textStyle:"xs"},indicator:{textStyle:"lg"}},md:{root:{gap:"3",px:"4",py:"4",textStyle:"sm"},indicator:{textStyle:"xl"}},lg:{root:{gap:"3",px:"4",py:"4",textStyle:"md"},indicator:{textStyle:"2xl"}}}},defaultVariants:{status:"info",variant:"subtle",size:"md",inline:!1}});var nj=n(7072);let nz=(0,i.i_)({slots:nj.MI.keys(),className:"chakra-avatar",base:{root:{display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:"medium",position:"relative",verticalAlign:"top",flexShrink:"0",userSelect:"none",width:"var(--avatar-size)",height:"var(--avatar-size)",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)","&[data-group-item]":{borderWidth:"2px",borderColor:"bg"}},image:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"var(--avatar-radius)"},fallback:{lineHeight:"1",textTransform:"uppercase",fontWeight:"medium",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)"}},variants:{size:{full:{root:{"--avatar-size":"100%","--avatar-font-size":"100%"}},"2xs":{root:{"--avatar-font-size":"fontSizes.2xs","--avatar-size":"sizes.6"}},xs:{root:{"--avatar-font-size":"fontSizes.xs","--avatar-size":"sizes.8"}},sm:{root:{"--avatar-font-size":"fontSizes.sm","--avatar-size":"sizes.9"}},md:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.10"}},lg:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.11"}},xl:{root:{"--avatar-font-size":"fontSizes.lg","--avatar-size":"sizes.12"}},"2xl":{root:{"--avatar-font-size":"fontSizes.xl","--avatar-size":"sizes.16"}}},variant:{solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},subtle:{root:{bg:"colorPalette.muted",color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",borderWidth:"1px",borderColor:"colorPalette.muted"}}},shape:{square:{},rounded:{root:{"--avatar-radius":"radii.l3"}},full:{root:{"--avatar-radius":"radii.full"}}},borderless:{true:{root:{"&[data-group-item]":{borderWidth:"0px"}}}}},defaultVariants:{size:"md",shape:"full",variant:"subtle"}}),nB=(0,i.i_)({className:"chakra-blockquote",slots:ni.keys(),base:{root:{position:"relative",display:"flex",flexDirection:"column",gap:"2"},caption:{textStyle:"sm",color:"fg.muted"},icon:{boxSize:"5"}},variants:{justify:{start:{root:{alignItems:"flex-start",textAlign:"start"}},center:{root:{alignItems:"center",textAlign:"center"}},end:{root:{alignItems:"flex-end",textAlign:"end"}}},variant:{subtle:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.muted"},icon:{color:"colorPalette.fg"}},solid:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.solid"},icon:{color:"colorPalette.solid"}},plain:{root:{paddingX:"5"},icon:{color:"colorPalette.solid"}}}},defaultVariants:{variant:"subtle",justify:"start"}}),nU=(0,i.i_)({className:"chakra-breadcrumb",slots:nr.keys(),base:{list:{display:"flex",alignItems:"center",wordBreak:"break-word",color:"fg.muted",listStyle:"none"},link:{outline:"0",textDecoration:"none",borderRadius:"l1",focusRing:"outside",display:"inline-flex",alignItems:"center",gap:"2"},item:{display:"inline-flex",alignItems:"center"},separator:{color:"fg.muted",opacity:"0.8",_icon:{boxSize:"1em"},_rtl:{rotate:"180deg"}},ellipsis:{display:"inline-flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"1em"}}},variants:{variant:{underline:{link:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"0.2em",textDecorationColor:"colorPalette.muted"},currentLink:{color:"colorPalette.fg"}},plain:{link:{color:"fg.muted",_hover:{color:"fg"}},currentLink:{color:"fg"}}},size:{sm:{list:{gap:"1",textStyle:"xs"}},md:{list:{gap:"1.5",textStyle:"sm"}},lg:{list:{gap:"2",textStyle:"md"}}}},defaultVariants:{variant:"plain",size:"md"}}),nW=(0,i.i_)({className:"chakra-card",slots:no.keys(),base:{root:{display:"flex",flexDirection:"column",position:"relative",minWidth:"0",wordWrap:"break-word",borderRadius:"l3",color:"fg",textAlign:"start"},title:{fontWeight:"semibold"},description:{color:"fg.muted",fontSize:"sm"},header:{paddingInline:"var(--card-padding)",paddingTop:"var(--card-padding)",display:"flex",flexDirection:"column",gap:"1.5"},body:{padding:"var(--card-padding)",flex:"1",display:"flex",flexDirection:"column"},footer:{display:"flex",alignItems:"center",gap:"2",paddingInline:"var(--card-padding)",paddingBottom:"var(--card-padding)"}},variants:{size:{sm:{root:{"--card-padding":"spacing.4"},title:{textStyle:"md"}},md:{root:{"--card-padding":"spacing.6"},title:{textStyle:"lg"}},lg:{root:{"--card-padding":"spacing.7"},title:{textStyle:"xl"}}},variant:{elevated:{root:{bg:"bg.panel",boxShadow:"md"}},outline:{root:{bg:"bg.panel",borderWidth:"1px",borderColor:"border"}},subtle:{root:{bg:"bg.muted"}}}},defaultVariants:{variant:"outline",size:"md"}});var nH=n(3716);let nq=(0,i.i_)({slots:nH.f.keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:k.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:k.variants?.size?.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:k.variants?.size?.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:k.variants?.size?.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:k.variants?.size?.lg}},variant:{outline:{control:k.variants?.variant?.outline},solid:{control:k.variants?.variant?.solid},subtle:{control:k.variants?.variant?.subtle}}},defaultVariants:{variant:"solid",size:"md"}}),n$=(0,i.i_)({slots:na.keys(),className:"chakra-checkbox-card",base:{root:{display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",flex:"1",focusVisibleRing:"outside",_disabled:{opacity:"0.8"},_invalid:{outline:"2px solid",outlineColor:"border.error"}},control:{display:"inline-flex",flex:"1",position:"relative",borderRadius:"inherit",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"},label:{fontWeight:"medium",display:"flex",alignItems:"center",gap:"2",flex:"1",_disabled:{opacity:"0.5"}},description:{opacity:"0.64",textStyle:"sm",_disabled:{opacity:"0.5"}},addon:{_disabled:{opacity:"0.5"}},indicator:k.base,content:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"}},variants:{size:{sm:{root:{textStyle:"sm"},control:{padding:"3",gap:"1.5"},addon:{px:"3",py:"1.5",borderTopWidth:"1px"},indicator:k.variants?.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:k.variants?.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:k.variants?.size.lg}},variant:{surface:{root:{borderWidth:"1px",borderColor:"border",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"},_disabled:{bg:"bg.muted"}},indicator:k.variants?.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:k.variants?.variant.plain},outline:{root:{borderWidth:"1px",borderColor:"border",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},indicator:k.variants?.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:k.variants?.variant.inverted}},justify:{start:{root:{"--checkbox-card-justify":"flex-start"}},end:{root:{"--checkbox-card-justify":"flex-end"}},center:{root:{"--checkbox-card-justify":"center"}}},align:{start:{root:{"--checkbox-card-align":"flex-start"},content:{textAlign:"start"}},end:{root:{"--checkbox-card-align":"flex-end"},content:{textAlign:"end"}},center:{root:{"--checkbox-card-align":"center"},content:{textAlign:"center"}}},orientation:{vertical:{control:{flexDirection:"column"}},horizontal:{control:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}}),nG=(0,i.i_)({slots:nL.keys(),className:"code-block",base:{root:{colorPalette:"gray",rounded:"var(--code-block-radius)",overflow:"hidden",bg:"bg",color:"fg",borderWidth:"1px","--code-block-max-height":"320px","--code-block-bg":"colors.bg","--code-block-fg":"colors.fg","--code-block-obscured-opacity":"0.5","--code-block-obscured-blur":"1px","--code-block-line-number-width":"sizes.3","--code-block-line-number-margin":"spacing.4","--code-block-highlight-bg":"{colors.teal.focusRing/20}","--code-block-highlight-border":"colors.teal.focusRing","--code-block-highlight-added-bg":"{colors.green.focusRing/20}","--code-block-highlight-added-border":"colors.green.focusRing","--code-block-highlight-removed-bg":"{colors.red.focusRing/20}","--code-block-highlight-removed-border":"colors.red.focusRing"},header:{display:"flex",alignItems:"center",gap:"2",position:"relative",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)",mb:"calc(var(--code-block-padding) / 2 * -1)"},title:{display:"inline-flex",alignItems:"center",gap:"1.5",flex:"1",color:"fg.muted"},control:{gap:"1.5",display:"inline-flex",alignItems:"center"},footer:{display:"flex",alignItems:"center",justifyContent:"center",gap:"2",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)"},content:{position:"relative",colorScheme:"dark",overflow:"hidden",borderBottomRadius:"var(--code-block-radius)",maxHeight:"var(--code-block-max-height)","& ::selection":{bg:"blue.500/40"},_expanded:{maxHeight:"unset"}},overlay:{"--bg":"{colors.black/50}",display:"flex",alignItems:"flex-end",justifyContent:"center",padding:"4",bgImage:"linear-gradient(0deg,var(--bg) 25%,transparent 100%)",color:"white",minH:"5rem",pos:"absolute",bottom:"0",insetInline:"0",zIndex:"1",fontWeight:"medium",_expanded:{display:"none"}},code:{fontFamily:"mono",lineHeight:"tall",whiteSpace:"pre",counterReset:"line 0"},codeText:{px:"var(--code-block-padding)",py:"var(--code-block-padding)",position:"relative",display:"block",width:"100%","&[data-has-focused]":{"& [data-line]:not([data-focused])":{transitionProperty:"opacity, filter",transitionDuration:"moderate",transitionTimingFunction:"ease-in-out",opacity:"var(--code-block-obscured-opacity)",filter:"blur(var(--code-block-obscured-blur))"},"&:hover":{"--code-block-obscured-opacity":"1","--code-block-obscured-blur":"0px"}},"&[data-has-line-numbers][data-plaintext]":{paddingInlineStart:"calc(var(--code-block-line-number-width) + var(--code-block-line-number-margin) + var(--code-block-padding))"},"& [data-line]":{position:"relative","--highlight-bg":"var(--code-block-highlight-bg)","--highlight-border":"var(--code-block-highlight-border)","&[data-highlight], &[data-diff]":{display:"inline-block",width:"full","&:after":{content:"''",display:"block",position:"absolute",insetStart:"calc(var(--code-block-padding) * -1)",insetEnd:"0px",width:"calc(100% + var(--code-block-padding) * 2)",height:"100%",bg:"var(--highlight-bg)",borderStartWidth:"2px",borderStartColor:"var(--highlight-border)"}},"&[data-diff='added']":{"--highlight-bg":"var(--code-block-highlight-added-bg)","--highlight-border":"var(--code-block-highlight-added-border)"},"&[data-diff='removed']":{"--highlight-bg":"var(--code-block-highlight-removed-bg)","--highlight-border":"var(--code-block-highlight-removed-border)"}},"&[data-word-wrap]":{"&[data-plaintext], & [data-line]":{whiteSpace:"pre-wrap",wordBreak:"break-all"}},"&[data-has-line-numbers]":{"--content":"counter(line)","& [data-line]:before":{content:"var(--content)",counterIncrement:"line",width:"var(--code-block-line-number-width)",marginRight:"var(--code-block-line-number-margin)",display:"inline-block",textAlign:"end",userSelect:"none",opacity:.4},"& [data-diff='added']:before":{content:"'+'"},"& [data-diff='removed']:before":{content:"'-'"}}}},variants:{size:{sm:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.md","--code-block-header-height":"sizes.8"},title:{textStyle:"xs"},code:{fontSize:"xs"}},md:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.lg","--code-block-header-height":"sizes.10"},title:{textStyle:"xs"},code:{fontSize:"sm"}},lg:{root:{"--code-block-padding":"spacing.5","--code-block-radius":"radii.xl","--code-block-header-height":"sizes.12"},title:{textStyle:"sm"},code:{fontSize:"sm"}}}},defaultVariants:{size:"md"}});var nK=(0,$.y)("collapsible").parts("root","trigger","content","indicator");nK.build();var nY=e=>e.getById((e=>e.ids?.content??`collapsible:${e.id}:content`)(e));(0,em.Op)({initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"closed",context:({bindable:e})=>({size:e(()=>({defaultValue:{height:0,width:0},sync:!0})),initial:e(()=>({defaultValue:!1}))}),refs:()=>({cleanup:void 0,stylesRef:void 0}),watch({track:e,prop:t,action:n}){e([()=>t("open")],()=>{n(["setInitial","computeSize","toggleVisibility"])})},exit:["clearInitial","cleanupNode"],states:{closed:{on:{"controlled.open":{target:"open"},open:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitial","computeSize","invokeOnOpen"]}]}},closing:{effects:["trackExitAnimation"],on:{"controlled.close":{target:"closed"},"controlled.open":{target:"open"},open:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitial","invokeOnOpen"]}],close:[{guard:"isOpenControlled",actions:["invokeOnExitComplete"]},{target:"closed",actions:["setInitial","computeSize","invokeOnExitComplete"]}],"animation.end":{target:"closed",actions:["invokeOnExitComplete","clearInitial"]}}},open:{effects:["trackEnterAnimation"],on:{"controlled.close":{target:"closing"},close:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closing",actions:["setInitial","computeSize","invokeOnClose"]}],"size.measure":{actions:["measureSize"]},"animation.end":{actions:["clearInitial"]}}}},implementations:{guards:{isOpenControlled:({prop:e})=>void 0!=e("open")},effects:{trackEnterAnimation:({send:e,scope:t})=>{let n,r=(0,ep.er)(()=>{let r=nY(t);if(!r)return;let i=(0,ep.L9)(r).animationName;if(!i||"none"===i)return void e({type:"animation.end"});let o=t=>{(0,ep.wt)(t)===r&&e({type:"animation.end"})};r.addEventListener("animationend",o),n=()=>{r.removeEventListener("animationend",o)}});return()=>{r(),n?.()}},trackExitAnimation:({send:e,scope:t})=>{let n,r=(0,ep.er)(()=>{let r=nY(t);if(!r)return;let i=(0,ep.L9)(r).animationName;if(!i||"none"===i)return void e({type:"animation.end"});let o=t=>{(0,ep.wt)(t)===r&&e({type:"animation.end"})};r.addEventListener("animationend",o);let a=(0,ep.eC)(r,{animationFillMode:"forwards"});n=()=>{r.removeEventListener("animationend",o),(0,ep.dY)(()=>a())}});return()=>{r(),n?.()}}},actions:{setInitial:({context:e,flush:t})=>{t(()=>{e.set("initial",!0)})},clearInitial:({context:e})=>{e.set("initial",!1)},cleanupNode:({refs:e})=>{e.set("stylesRef",null)},measureSize:({context:e,scope:t})=>{let n=nY(t);if(!n)return;let{height:r,width:i}=n.getBoundingClientRect();e.set("size",{height:r,width:i})},computeSize:({refs:e,scope:t,context:n})=>{e.get("cleanup")?.();let r=(0,ep.er)(()=>{let e=nY(t);if(!e)return;let r=e.hidden;e.style.animationName="none",e.style.animationDuration="0s",e.hidden=!1;let i=e.getBoundingClientRect();n.set("size",{height:i.height,width:i.width}),n.get("initial")&&(e.style.animationName="",e.style.animationDuration=""),e.hidden=r});e.set("cleanup",r)},invokeOnOpen:({prop:e})=>{e("onOpenChange")?.({open:!0})},invokeOnClose:({prop:e})=>{e("onOpenChange")?.({open:!1})},invokeOnExitComplete:({prop:e})=>{e("onExitComplete")?.()},toggleVisibility:({prop:e,send:t})=>{t({type:e("open")?"controlled.open":"controlled.close"})}}}});var nX=(0,ey.x)()(["dir","disabled","getRootNode","id","ids","onExitComplete","onOpenChange","defaultOpen","open"]);(0,G.PM)(nX);let nQ=(0,i.i_)({slots:nK.keys(),className:"chakra-collapsible",base:{content:{overflow:"hidden",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}),nJ=(0,i.i_)({className:"colorPicker",slots:nM.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5"},label:{color:"fg",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},valueText:{textAlign:"start"},control:{display:"flex",alignItems:"center",flexDirection:"row",gap:"2",position:"relative"},swatchTrigger:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"row",flexShrink:"0",gap:"2",textStyle:"sm",minH:"var(--input-height)",minW:"var(--input-height)",px:"1",rounded:"l2",_disabled:{opacity:"0.5"},"--focus-color":"colors.colorPalette.focusRing","&:focus-visible":{borderColor:"var(--focus-color)",outline:"1px solid var(--focus-color)"},"&[data-fit-content]":{"--input-height":"unset",px:"0",border:"0"}},content:{display:"flex",flexDirection:"column",bg:"bg.panel",borderRadius:"l3",boxShadow:"lg",width:"64",p:"4",gap:"3",zIndex:"dropdown",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},area:{height:"180px",borderRadius:"l2",overflow:"hidden"},areaThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",focusVisibleRing:"mixed",focusRingColor:"white"},areaBackground:{height:"full"},channelSlider:{borderRadius:"l2",flex:"1"},channelSliderTrack:{height:"var(--slider-height)",borderRadius:"inherit",boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"},channelText:{textStyle:"xs",color:"fg.muted",fontWeight:"medium",textTransform:"capitalize"},swatchGroup:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"2"},swatch:{..._.base,borderRadius:"l1"},swatchIndicator:{color:"white",rounded:"full"},channelSliderThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",transform:"translate(-50%, -50%)",focusVisibleRing:"outside",focusRingOffset:"1px"},channelInput:{...A.base,"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0}},formatSelect:{textStyle:"xs",textTransform:"uppercase",borderWidth:"1px",minH:"6",focusRing:"inside",rounded:"l2"},transparencyGrid:{borderRadius:"l2"},view:{display:"flex",flexDirection:"column",gap:"2"}},variants:{size:{"2xs":{channelInput:A.variants?.size?.["2xs"],swatch:{"--swatch-size":"sizes.4.5"},trigger:{"--input-height":"sizes.7"},area:{"--thumb-size":"sizes.3"},channelSlider:{"--slider-height":"sizes.3","--thumb-size":"sizes.3"}},xs:{channelInput:A.variants?.size?.xs,swatch:{"--swatch-size":"sizes.5"},trigger:{"--input-height":"sizes.8"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},sm:{channelInput:A.variants?.size?.sm,swatch:{"--swatch-size":"sizes.6"},trigger:{"--input-height":"sizes.9"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},md:{channelInput:A.variants?.size?.md,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.10"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},lg:{channelInput:A.variants?.size?.lg,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.11"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},xl:{channelInput:A.variants?.size?.xl,swatch:{"--swatch-size":"sizes.8"},trigger:{"--input-height":"sizes.12"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},"2xl":{channelInput:A.variants?.size?.["2xl"],swatch:{"--swatch-size":"sizes.10"},trigger:{"--input-height":"sizes.16"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}}},variant:{outline:{channelInput:A.variants?.variant?.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:A.variants?.variant?.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}}),nZ=(0,i.i_)({className:"chakra-combobox",slots:nE.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},input:{display:"flex",alignItems:"center",justifyContent:"space-between",background:"bg.panel",width:"full",minH:"var(--combobox-input-height)",px:"var(--combobox-input-padding-x)","--input-height":"var(--combobox-input-height)",borderRadius:"l2",outline:0,userSelect:"none",textAlign:"start",_placeholderShown:{color:"fg.muted"},_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},trigger:{display:"inline-flex",alignItems:"center",justifyContent:"center","--input-height":"var(--combobox-input-height)"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"},control:{pos:"relative"},indicatorGroup:{display:"flex",alignItems:"center",justifyContent:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--combobox-input-padding-x)",_icon:{boxSize:"var(--combobox-indicator-size)"},"[data-disabled] &":{opacity:.5}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"0s"},"&[data-empty]:not(:has([data-scope=combobox][data-part=empty]))":{opacity:0}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{boxSize:"var(--combobox-indicator-size)"}},empty:{py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{pb:"var(--combobox-item-padding-y)",_last:{pb:"0"}},itemGroupLabel:{fontWeight:"medium",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"}},variants:{variant:{outline:{input:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"}},subtle:{input:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"}},flushed:{input:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}},indicatorGroup:{px:"0"}}},size:{xs:{root:{"--combobox-input-height":"sizes.8","--combobox-input-padding-x":"spacing.2","--combobox-indicator-size":"sizes.3.5"},input:{textStyle:"xs"},content:{"--combobox-item-padding-x":"spacing.1.5","--combobox-item-padding-y":"spacing.1","--combobox-indicator-size":"sizes.3.5",p:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"}},sm:{root:{"--combobox-input-height":"sizes.9","--combobox-input-padding-x":"spacing.2.5","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"}},md:{root:{"--combobox-input-height":"sizes.10","--combobox-input-padding-x":"spacing.3","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{textStyle:"sm",gap:"2"}},lg:{root:{"--combobox-input-height":"sizes.12","--combobox-input-padding-x":"spacing.4","--combobox-indicator-size":"sizes.5"},input:{textStyle:"md"},content:{"--combobox-item-padding-y":"spacing.2","--combobox-item-padding-x":"spacing.3","--combobox-indicator-size":"sizes.5",p:"1.5",textStyle:"md"},trigger:{textStyle:"md",py:"3",gap:"2"}}}},defaultVariants:{size:"md",variant:"outline"}}),n0=(0,i.i_)({slots:ns.keys(),className:"chakra-data-list",base:{itemLabel:{display:"flex",alignItems:"center",gap:"1"},itemValue:{display:"flex",minWidth:"0",flex:"1"}},variants:{orientation:{horizontal:{root:{display:"flex",flexDirection:"column"},item:{display:"inline-flex",alignItems:"center",gap:"4"},itemLabel:{minWidth:"120px"}},vertical:{root:{display:"flex",flexDirection:"column"},item:{display:"flex",flexDirection:"column",gap:"1"}}},size:{sm:{root:{gap:"3"},item:{textStyle:"xs"}},md:{root:{gap:"4"},item:{textStyle:"sm"}},lg:{root:{gap:"5"},item:{textStyle:"md"}}},variant:{subtle:{itemLabel:{color:"fg.muted"}},bold:{itemLabel:{fontWeight:"medium"},itemValue:{color:"fg.muted"}}}},defaultVariants:{size:"md",orientation:"vertical",variant:"subtle"}}),n1=(0,i.i_)({slots:nl.keys(),className:"chakra-dialog",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",left:0,top:0,w:"100dvw",h:"100dvh",zIndex:"var(--z-index)",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100dvw",height:"100dvh",position:"fixed",left:0,top:0,"--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",justifyContent:"center",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,borderRadius:"l3",textStyle:"sm",my:"var(--dialog-margin, var(--dialog-base-margin))","--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"moderate"},_closed:{animationDuration:"faster"}},header:{display:"flex",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{flex:"1",px:"6",pt:"2",pb:"6"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"2",insetEnd:"2"}},variants:{placement:{center:{positioner:{alignItems:"center"},content:{"--dialog-base-margin":"auto",mx:"auto"}},top:{positioner:{alignItems:"flex-start"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}},bottom:{positioner:{alignItems:"flex-end"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}}},scrollBehavior:{inside:{positioner:{overflow:"hidden"},content:{maxH:"calc(100% - 7.5rem)"},body:{overflow:"auto"}},outside:{positioner:{overflow:"auto",pointerEvents:"auto"}}},size:{xs:{content:{maxW:"sm"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},cover:{positioner:{padding:"10"},content:{width:"100%",height:"100%","--dialog-margin":"0"}},full:{content:{maxW:"100dvw",minH:"100dvh","--dialog-margin":"0",borderRadius:"0"}}},motionPreset:{scale:{content:{_open:{animationName:"scale-in, fade-in"},_closed:{animationName:"scale-out, fade-out"}}},"slide-in-bottom":{content:{_open:{animationName:"slide-from-bottom, fade-in"},_closed:{animationName:"slide-to-bottom, fade-out"}}},"slide-in-top":{content:{_open:{animationName:"slide-from-top, fade-in"},_closed:{animationName:"slide-to-top, fade-out"}}},"slide-in-left":{content:{_open:{animationName:"slide-from-left, fade-in"},_closed:{animationName:"slide-to-left, fade-out"}}},"slide-in-right":{content:{_open:{animationName:"slide-from-right, fade-in"},_closed:{animationName:"slide-to-right, fade-out"}}},none:{}}},defaultVariants:{size:"md",scrollBehavior:"outside",placement:"top",motionPreset:"scale"}}),n2=(0,i.i_)({slots:nu.keys(),className:"chakra-drawer",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",insetInlineStart:0,top:0,w:"100vw",h:"100dvh",zIndex:"overlay",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100vw",height:"100dvh",position:"fixed",insetInlineStart:0,top:0,zIndex:"modal",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,zIndex:"modal",textStyle:"sm",maxH:"100dvh",color:"inherit",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"slowest",animationTimingFunction:"ease-in-smooth"},_closed:{animationDuration:"slower",animationTimingFunction:"ease-in-smooth"}},header:{display:"flex",alignItems:"center",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{px:"6",py:"2",flex:"1",overflow:"auto"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{flex:"1",textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"3",insetEnd:"2"}},variants:{size:{xs:{content:{maxW:"xs"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},full:{content:{maxW:"100vw",h:"100dvh"}}},placement:{start:{positioner:{justifyContent:"flex-start",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-left-full, fade-in",_rtl:"slide-from-right-full, fade-in"}},_closed:{animationName:{base:"slide-to-left-full, fade-out",_rtl:"slide-to-right-full, fade-out"}}}},end:{positioner:{justifyContent:"flex-end",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-right-full, fade-in",_rtl:"slide-from-left-full, fade-in"}},_closed:{animationName:{base:"slide-to-right-full, fade-out",_rtl:"slide-to-left-full, fade-out"}}}},top:{positioner:{justifyContent:"stretch",alignItems:"flex-start"},content:{maxW:"100%",_open:{animationName:"slide-from-top-full, fade-in"},_closed:{animationName:"slide-to-top-full, fade-out"}}},bottom:{positioner:{justifyContent:"stretch",alignItems:"flex-end"},content:{maxW:"100%",_open:{animationName:"slide-from-bottom-full, fade-in"},_closed:{animationName:"slide-to-bottom-full, fade-out"}}}},contained:{true:{positioner:{padding:"4"},content:{borderRadius:"l3"}}}},defaultVariants:{size:"xs",placement:"end"}}),n5=(0,i.H2)({fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"}),n3=(0,i.i_)({slots:nc.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...n5,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"moderate",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...n5,outline:"0",py:"1",px:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",focusVisibleRing:"inside",focusRingWidth:"2px",_placeholder:{opacity:.6}},control:{display:"inline-flex",alignItems:"center",gap:"1.5"}},variants:{size:{sm:{root:{textStyle:"sm"},preview:{minH:"8"},input:{minH:"8"}},md:{root:{textStyle:"sm"},preview:{minH:"9"},input:{minH:"9"}},lg:{root:{textStyle:"md"},preview:{minH:"10"},input:{minH:"10"}}}},defaultVariants:{size:"md"}}),n4=(0,i.i_)({slots:nd.keys(),className:"chakra-empty-state",base:{root:{width:"full"},content:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:"fg.subtle",_icon:{boxSize:"1em"}},title:{fontWeight:"semibold"},description:{textStyle:"sm",color:"fg.muted"}},variants:{size:{sm:{root:{px:"4",py:"6"},title:{textStyle:"md"},content:{gap:"4"},indicator:{textStyle:"2xl"}},md:{root:{px:"8",py:"12"},title:{textStyle:"lg"},content:{gap:"6"},indicator:{textStyle:"4xl"}},lg:{root:{px:"12",py:"16"},title:{textStyle:"xl"},content:{gap:"8"},indicator:{textStyle:"6xl"}}}},defaultVariants:{size:"md"}}),n6=(0,i.i_)({className:"chakra-field",slots:nf.keys(),base:{requiredIndicator:{color:"fg.error",lineHeight:"1"},root:{display:"flex",width:"100%",position:"relative",gap:"1.5"},label:{display:"flex",alignItems:"center",textAlign:"start",textStyle:"sm",fontWeight:"medium",gap:"1",userSelect:"none",_disabled:{opacity:"0.5"}},errorText:{display:"inline-flex",alignItems:"center",fontWeight:"medium",gap:"1",color:"fg.error",textStyle:"xs"},helperText:{color:"fg.muted",textStyle:"xs"}},variants:{orientation:{vertical:{root:{flexDirection:"column",alignItems:"flex-start"}},horizontal:{root:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},label:{flex:"0 0 var(--field-label-width, 80px)"}}}},defaultVariants:{orientation:"vertical"}}),n8=(0,i.i_)({className:"fieldset",slots:nh.keys(),base:{root:{display:"flex",flexDirection:"column",width:"full"},content:{display:"flex",flexDirection:"column",width:"full"},legend:{color:"fg",fontWeight:"medium",_disabled:{opacity:"0.5"}},helperText:{color:"fg.muted",textStyle:"sm"},errorText:{display:"inline-flex",alignItems:"center",color:"fg.error",gap:"2",fontWeight:"medium",textStyle:"sm"}},variants:{size:{sm:{root:{spaceY:"2"},content:{gap:"1.5"},legend:{textStyle:"sm"}},md:{root:{spaceY:"4"},content:{gap:"4"},legend:{textStyle:"sm"}},lg:{root:{spaceY:"6"},content:{gap:"4"},legend:{textStyle:"md"}}}},defaultVariants:{size:"md"}}),n7=(0,i.i_)({className:"chakra-file-upload",slots:np.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"4",width:"100%",alignItems:"flex-start"},label:{fontWeight:"medium",textStyle:"sm"},dropzone:{background:"bg",borderRadius:"l3",borderWidth:"2px",borderStyle:"dashed",display:"flex",alignItems:"center",flexDirection:"column",gap:"4",justifyContent:"center",minHeight:"2xs",px:"3",py:"2",transition:"backgrounds",focusVisibleRing:"outside",_hover:{bg:"bg.subtle"},_dragging:{bg:"colorPalette.subtle",borderStyle:"solid",borderColor:"colorPalette.solid"}},dropzoneContent:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",gap:"1",textStyle:"sm"},item:{pos:"relative",textStyle:"sm",animationName:"fade-in",animationDuration:"moderate",background:"bg",borderRadius:"l2",borderWidth:"1px",width:"100%",display:"flex",alignItems:"center",gap:"3",p:"4"},itemGroup:{width:"100%",display:"flex",flexDirection:"column",gap:"3",_empty:{display:"none"}},itemName:{color:"fg",fontWeight:"medium",lineClamp:"1"},itemContent:{display:"flex",flexDirection:"column",gap:"0.5",flex:"1"},itemSizeText:{color:"fg.muted",textStyle:"xs"},itemDeleteTrigger:{display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"flex-start",boxSize:"5",p:"2px",color:"fg.muted",cursor:"button"},itemPreview:{color:"fg.muted",_icon:{boxSize:"4.5"}}},defaultVariants:{}});var n9=(0,$.y)("hoverCard").parts("arrow","arrowTip","trigger","positioner","content");n9.build();var re=e=>e.getById((e=>e.ids?.trigger??`hover-card:${e.id}:trigger`)(e)),rt=e=>e.getById((e=>e.ids?.positioner??`hover-card:${e.id}:popper`)(e)),{not:rn,and:rr}=(0,em.b6)();(0,em.Op)({props:({props:e})=>({openDelay:700,closeDelay:300,...e,positioning:{placement:"bottom",...e.positioning}}),initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"closed",context:({prop:e,bindable:t})=>({open:t(()=>({defaultValue:e("defaultOpen"),value:e("open"),onChange(t){e("onOpenChange")?.({open:t})}})),currentPlacement:t(()=>({defaultValue:void 0})),isPointer:t(()=>({defaultValue:!1}))}),watch({track:e,context:t,action:n}){e([()=>t.get("open")],()=>{n(["toggleVisibility"])})},states:{closed:{tags:["closed"],entry:["clearIsPointer"],on:{"CONTROLLED.OPEN":{target:"open"},POINTER_ENTER:{target:"opening",actions:["setIsPointer"]},TRIGGER_FOCUS:{target:"opening"},OPEN:{target:"opening"}}},opening:{tags:["closed"],effects:["waitForOpenDelay"],on:{OPEN_DELAY:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed"},POINTER_LEAVE:[{guard:"isOpenControlled",actions:["invokeOnClose","toggleVisibility"]},{target:"closed",actions:["invokeOnClose"]}],TRIGGER_BLUR:[{guard:rr("isOpenControlled",rn("isPointer")),actions:["invokeOnClose","toggleVisibility"]},{guard:rn("isPointer"),target:"closed",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose","toggleVisibility"]},{target:"closed",actions:["invokeOnClose"]}]}},open:{tags:["open"],effects:["trackDismissableElement","trackPositioning"],on:{"CONTROLLED.CLOSE":{target:"closed"},POINTER_ENTER:{actions:["setIsPointer"]},POINTER_LEAVE:{target:"closing"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TRIGGER_BLUR:[{guard:rr("isOpenControlled",rn("isPointer")),actions:["invokeOnClose"]},{guard:rn("isPointer"),target:"closed",actions:["invokeOnClose"]}],"POSITIONING.SET":{actions:["reposition"]}}},closing:{tags:["open"],effects:["trackPositioning","waitForCloseDelay"],on:{CLOSE_DELAY:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"CONTROLLED.CLOSE":{target:"closed"},"CONTROLLED.OPEN":{target:"open"},POINTER_ENTER:{target:"open",actions:["setIsPointer"]}}}},implementations:{guards:{isPointer:({context:e})=>!!e.get("isPointer"),isOpenControlled:({prop:e})=>null!=e("open")},effects:{waitForOpenDelay({send:e,prop:t}){let n=setTimeout(()=>{e({type:"OPEN_DELAY"})},t("openDelay"));return()=>clearTimeout(n)},waitForCloseDelay({send:e,prop:t}){let n=setTimeout(()=>{e({type:"CLOSE_DELAY"})},t("closeDelay"));return()=>clearTimeout(n)},trackPositioning:({context:e,prop:t,scope:n})=>(e.get("currentPlacement")||e.set("currentPlacement",t("positioning").placement),(0,eg.Ox)(re(n),()=>rt(n),{...t("positioning"),defer:!0,onComplete(t){e.set("currentPlacement",t.placement)}})),trackDismissableElement:({send:e,scope:t,prop:n})=>(0,eb.u)(()=>t.getById(t.ids?.content??`hover-card:${t.id}:content`),{defer:!0,exclude:[re(t)],onDismiss(){e({type:"CLOSE",src:"interact-outside"})},onInteractOutside:n("onInteractOutside"),onPointerDownOutside:n("onPointerDownOutside"),onFocusOutside(e){e.preventDefault(),n("onFocusOutside")?.(e)}})},actions:{invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},setIsPointer({context:e}){e.set("isPointer",!0)},clearIsPointer({context:e}){e.set("isPointer",!1)},reposition({context:e,prop:t,scope:n,event:r}){(0,eg.Ox)(re(n),()=>rt(n),{...t("positioning"),...r.options,defer:!0,listeners:!1,onComplete(t){e.set("currentPlacement",t.placement)}})},toggleVisibility({prop:e,event:t,send:n}){queueMicrotask(()=>{n({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:t})})}}}});var ri=(0,ey.x)()(["closeDelay","dir","getRootNode","id","ids","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"]);(0,G.PM)(ri);let ro=(0,i.i_)({className:"chakra-hover-card",slots:n9.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--hovercard-bg":"colors.bg.panel",bg:"var(--hovercard-bg)",boxShadow:"lg",maxWidth:"80",borderRadius:"l3",zIndex:"popover",transformOrigin:"var(--transform-origin)",outline:"0",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--hovercard-bg)"},arrowTip:{borderTopWidth:"0.5px",borderInlineStartWidth:"0.5px"}},variants:{size:{xs:{content:{padding:"3"}},sm:{content:{padding:"4"}},md:{content:{padding:"5"}},lg:{content:{padding:"6"}}}},defaultVariants:{size:"md"}}),ra=(0,i.i_)({className:"chakra-list",slots:ng.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"var(--list-gap)","& :where(ul, ol)":{marginTop:"var(--list-gap)"}},item:{whiteSpace:"normal",display:"list-item"},indicator:{marginEnd:"2",minHeight:"1lh",flexShrink:0,display:"inline-block",verticalAlign:"middle"}},variants:{variant:{marker:{root:{listStyle:"revert"},item:{_marker:{color:"fg.subtle"}}},plain:{item:{alignItems:"flex-start",display:"inline-flex"}}},align:{center:{item:{alignItems:"center"}},start:{item:{alignItems:"flex-start"}},end:{item:{alignItems:"flex-end"}}}},defaultVariants:{variant:"marker"}}),rs=(0,i.i_)({className:"chakra-menu",slots:nv.keys(),base:{content:{outline:0,bg:"bg.panel",boxShadow:"lg",color:"fg",maxHeight:"var(--available-height)","--menu-z-index":"zIndex.dropdown",zIndex:"calc(var(--menu-z-index) + var(--layer-index, 0))",borderRadius:"l2",overflow:"hidden",overflowY:"auto",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},item:{textDecoration:"none",color:"fg",userSelect:"none",borderRadius:"l1",width:"100%",display:"flex",cursor:"menuitem",alignItems:"center",textAlign:"start",position:"relative",flex:"0 0 auto",outline:0,_disabled:{layerStyle:"disabled"},"&[data-type]":{ps:"8"}},itemText:{flex:"1"},itemIndicator:{position:"absolute",insetStart:"2",transform:"translateY(-50%)",top:"50%"},itemGroupLabel:{px:"2",py:"1.5",fontWeight:"semibold",textStyle:"sm"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},itemCommand:{opacity:"0.6",textStyle:"xs",ms:"auto",ps:"4",letterSpacing:"widest",fontFamily:"inherit"},separator:{height:"1px",bg:"bg.muted",my:"1",mx:"-1"}},variants:{variant:{subtle:{item:{_highlighted:{bg:"bg.emphasized/60"}}},solid:{item:{_highlighted:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}}},size:{sm:{content:{minW:"8rem",padding:"1"},item:{gap:"1",textStyle:"xs",py:"1",px:"1.5"}},md:{content:{minW:"8rem",padding:"1.5"},item:{gap:"2",textStyle:"sm",py:"1.5",px:"2"}}}},defaultVariants:{size:"md",variant:"subtle"}}),rl=(0,i.i_)({className:"chakra-select",slots:nS.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},trigger:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"full",minH:"var(--select-trigger-height)","--input-height":"var(--select-trigger-height)",px:"var(--select-trigger-padding-x)",borderRadius:"l2",userSelect:"none",textAlign:"start",focusVisibleRing:"inside",_placeholderShown:{color:"fg.muted/80"},_disabled:{layerStyle:"disabled"},_invalid:{borderColor:"border.error"}},indicatorGroup:{display:"flex",alignItems:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--select-trigger-padding-x)",pointerEvents:"none"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:{base:"fg.muted",_disabled:"fg.subtle",_invalid:"fg.error"}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"fastest"}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{width:"4",height:"4"}},control:{pos:"relative"},itemText:{flex:"1"},itemGroup:{_first:{mt:"0"}},itemGroupLabel:{py:"1",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"}},variants:{variant:{outline:{trigger:{bg:"transparent",borderWidth:"1px",borderColor:"border",_expanded:{borderColor:"border.emphasized"}}},subtle:{trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}},size:{xs:{root:{"--select-trigger-height":"sizes.8","--select-trigger-padding-x":"spacing.2"},content:{p:"1",gap:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"},item:{py:"1",px:"2"},itemGroupLabel:{py:"1",px:"2"},indicator:{_icon:{width:"3.5",height:"3.5"}}},sm:{root:{"--select-trigger-height":"sizes.9","--select-trigger-padding-x":"spacing.2.5"},content:{p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"},indicator:{_icon:{width:"4",height:"4"}},item:{py:"1",px:"1.5"},itemGroup:{mt:"1"},itemGroupLabel:{py:"1",px:"1.5"}},md:{root:{"--select-trigger-height":"sizes.10","--select-trigger-padding-x":"spacing.3"},content:{p:"1",textStyle:"sm"},itemGroup:{mt:"1.5"},item:{py:"1.5",px:"2"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},itemGroupLabel:{py:"1.5",px:"2"},trigger:{textStyle:"sm",gap:"2"},indicator:{_icon:{width:"4",height:"4"}}},lg:{root:{"--select-trigger-height":"sizes.12","--select-trigger-padding-x":"spacing.4"},content:{p:"1.5",textStyle:"md"},itemGroup:{mt:"2"},item:{py:"2",px:"3"},itemGroupLabel:{py:"2",px:"3"},trigger:{textStyle:"md",py:"3",gap:"2"},indicator:{_icon:{width:"5",height:"5"}}}}},defaultVariants:{size:"md",variant:"outline"}}),ru=(0,i.i_)({className:"chakra-native-select",slots:nm.keys(),base:{root:{height:"fit-content",display:"flex",width:"100%",position:"relative"},field:{width:"100%",minWidth:"0",outline:"0",appearance:"none",borderRadius:"l2","--error-color":"colors.border.error","--input-height":"var(--select-field-height)",height:"var(--select-field-height)",_disabled:{layerStyle:"disabled"},_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"},focusVisibleRing:"inside",lineHeight:"normal","& > option, & > optgroup":{bg:"bg"}},indicator:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)",height:"100%",color:"fg.muted",_disabled:{opacity:"0.5"},_invalid:{color:"fg.error"},_icon:{width:"1em",height:"1em"}}},variants:{variant:{outline:{field:rl.variants?.variant.outline.trigger},subtle:{field:rl.variants?.variant.subtle.trigger},plain:{field:{bg:"transparent",color:"fg",focusRingWidth:"2px"}}},size:{xs:{root:{"--select-field-height":"sizes.8"},field:{textStyle:"xs",ps:"2",pe:"6"},indicator:{textStyle:"sm",insetEnd:"1.5"}},sm:{root:{"--select-field-height":"sizes.9"},field:{textStyle:"sm",ps:"2.5",pe:"8"},indicator:{textStyle:"md",insetEnd:"2"}},md:{root:{"--select-field-height":"sizes.10"},field:{textStyle:"sm",ps:"3",pe:"8"},indicator:{textStyle:"lg",insetEnd:"2"}},lg:{root:{"--select-field-height":"sizes.11"},field:{textStyle:"md",ps:"4",pe:"8"},indicator:{textStyle:"xl",insetEnd:"3"}},xl:{root:{"--select-field-height":"sizes.12"},field:{textStyle:"md",ps:"4.5",pe:"10"},indicator:{textStyle:"xl",insetEnd:"3"}}}},defaultVariants:rl.defaultVariants});function rc(e,t){let n={};for(let r in e){let i=t(r,e[r]);n[i[0]]=i[1]}return n}let rd=new Map,rf=!1;try{rf="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch{}let rh=!1;try{rh="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch{}let rp={degree:{narrow:{default:"\xb0","ja-JP":" 度","zh-TW":"度","sl-SI":" \xb0"}}};class rg{format(e){let t="";if(t=rf||null==this.options.signDisplay?this.numberFormatter.format(e):function(e,t,n){if("auto"===t)return e.format(n);{if("never"===t)return e.format(Math.abs(n));let r=!1;if("always"===t?r=n>0||Object.is(n,0):"exceptZero"===t&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),!r)return e.format(n);{let t=e.format(-n),r=e.format(n),i=t.replace(r,"").replace(/\u200e|\u061C/,"");return 1!=[...i].length&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),t.replace(r,"!!!").replace(i,"+").replace("!!!",r)}}}(this.numberFormatter,this.options.signDisplay,e),"unit"===this.options.style&&!rh){var n;let{unit:e,unitDisplay:r="short",locale:i}=this.resolvedOptions();if(!e)return t;let o=null==(n=rp[e])?void 0:n[r];t+=o[i]||o.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.numberFormatter.formatRange)return this.numberFormatter.formatRange(e,t);if(t<e)throw RangeError("End date must be >= start date");return`${this.format(e)} \u{2013} ${this.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.numberFormatter.formatRangeToParts)return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw RangeError("End date must be >= start date");let n=this.numberFormatter.formatToParts(e),r=this.numberFormatter.formatToParts(t);return[...n.map(e=>({...e,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...r.map(e=>({...e,source:"endRange"}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return rf||null==this.options.signDisplay||(e={...e,signDisplay:this.options.signDisplay}),rh||"unit"!==this.options.style||(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=function(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),"unit"===t.style&&!rh){var r;let{unit:e,unitDisplay:n="short"}=t;if(!e)throw Error('unit option must be provided with style: "unit"');if(!(null==(r=rp[e])?void 0:r[n]))throw Error(`Unsupported unit ${e} with unitDisplay = ${n}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(rd.has(i))return rd.get(i);let o=new Intl.NumberFormat(e,t);return rd.set(i,o),o}(e,t),this.options=t}}let rv=RegExp("^.*\\(.*\\).*$"),rm=["latn","arab","hanidec","deva","beng"];class rb{parse(e){return rx(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,n){return rx(this.locale,this.options,e).isValidPartialNumber(e,t,n)}getNumberingSystem(e){return rx(this.locale,this.options,e).options.numberingSystem}constructor(e,t={}){this.locale=e,this.options=t}}let ry=new Map;function rx(e,t,n){let r=rw(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of rm)if(i!==r.options.numberingSystem){let r=rw(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(r.isValidPartialNumber(n))return r}}return r}function rw(e,t){let n=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():""),r=ry.get(n);return r||(r=new rS(e,t),ry.set(n,r)),r}class rS{parse(e){let t=this.sanitize(e);if(this.symbols.group&&(t=rC(t,this.symbols.group,"")),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(t=t.replace(this.symbols.minusSign,"-")),t=t.replace(this.symbols.numeral,this.symbols.index),"percent"===this.options.style){let e=t.indexOf("-"),n=(t=(t=t.replace("-","")).replace("+","")).indexOf(".");-1===n&&(n=t.length),t=t.replace(".",""),t=n-2==0?`0.${t}`:n-2==-1?`0.0${t}`:n-2==-2?"0.00":`${t.slice(0,n-2)}.${t.slice(n-2)}`,e>-1&&(t=`-${t}`)}let n=t?+t:NaN;if(isNaN(n))return NaN;if("percent"===this.options.style){var r,i;let e={...this.options,style:"decimal",minimumFractionDigits:Math.min((null!=(r=this.options.minimumFractionDigits)?r:0)+2,20),maximumFractionDigits:Math.min((null!=(i=this.options.maximumFractionDigits)?i:0)+2,20)};return new rb(this.locale,e).parse(new rg(this.locale,e).format(n))}return"accounting"===this.options.currencySign&&rv.test(e)&&(n*=-1),n}sanitize(e){return e=e.replace(this.symbols.literals,""),this.symbols.minusSign&&(e=e.replace("-",this.symbols.minusSign)),"arab"===this.options.numberingSystem&&(this.symbols.decimal&&(e=(e=e.replace(",",this.symbols.decimal)).replace(String.fromCharCode(1548),this.symbols.decimal)),this.symbols.group&&(e=rC(e,".",this.symbols.group))),"fr-FR"===this.options.locale&&this.symbols.group&&(e=rC(e," ",this.symbols.group),e=rC(e,/\u00A0/g,this.symbols.group)),e}isValidPartialNumber(e,t=-1/0,n=1/0){return e=this.sanitize(e),this.symbols.minusSign&&e.startsWith(this.symbols.minusSign)&&t<0?e=e.slice(this.symbols.minusSign.length):this.symbols.plusSign&&e.startsWith(this.symbols.plusSign)&&n>0&&(e=e.slice(this.symbols.plusSign.length)),!(this.symbols.group&&e.startsWith(this.symbols.group)||this.symbols.decimal&&e.indexOf(this.symbols.decimal)>-1&&0===this.options.maximumFractionDigits)&&(this.symbols.group&&(e=rC(e,this.symbols.group,"")),e=e.replace(this.symbols.numeral,""),this.symbols.decimal&&(e=e.replace(this.symbols.decimal,"")),0===e.length)}constructor(e,t={}){var n,r;this.locale=e,1!==t.roundingIncrement&&null!=t.roundingIncrement&&(null==t.maximumFractionDigits&&null==t.minimumFractionDigits?(t.maximumFractionDigits=0,t.minimumFractionDigits=0):null==t.maximumFractionDigits?t.maximumFractionDigits=t.minimumFractionDigits:null==t.minimumFractionDigits&&(t.minimumFractionDigits=t.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(e,t),this.options=this.formatter.resolvedOptions(),this.symbols=function(e,t,n,r){var i,o,a,s,l;let u=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),c=u.formatToParts(-10000.111),d=u.formatToParts(10000.111),f=rk.map(e=>u.formatToParts(e)),h=null!=(l=null==(i=c.find(e=>"minusSign"===e.type))?void 0:i.value)?l:"-",p=null==(o=d.find(e=>"plusSign"===e.type))?void 0:o.value;p||(null==r?void 0:r.signDisplay)!=="exceptZero"&&(null==r?void 0:r.signDisplay)!=="always"||(p="+");let g=null==(a=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(e=>"decimal"===e.type))?void 0:a.value,v=null==(s=c.find(e=>"group"===e.type))?void 0:s.value,m=[...new Set([...c.filter(e=>!rE.has(e.type)).map(e=>rO(e.value)),...f.flatMap(e=>e.filter(e=>!rE.has(e.type)).map(e=>rO(e.value)))])].sort((e,t)=>t.length-e.length),b=0===m.length?RegExp("[\\p{White_Space}]","gu"):RegExp(`${m.join("|")}|[\\p{White_Space}]`,"gu"),y=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(0x24cb016ea)].reverse(),x=new Map(y.map((e,t)=>[e,t]));return{minusSign:h,plusSign:p,decimal:g,group:v,literals:b,numeral:RegExp(`[${y.join("")}]`,"g"),index:e=>String(x.get(e))}}(e,this.formatter,this.options,t),"percent"===this.options.style&&((null!=(n=this.options.minimumFractionDigits)?n:0)>18||(null!=(r=this.options.maximumFractionDigits)?r:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}let rE=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),rk=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function rC(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function rO(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var rI=(0,$.y)("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber");rI.build();var r_=e=>`number-input:${e.id}:cursor`,rT=e=>e.getById((e=>e.ids?.input??`number-input:${e.id}:input`)(e)),rP=e=>e.getDoc().getElementById(r_(e)),rR=(e,t)=>{let{prop:n,computed:r}=t;return n("formatOptions")?r("parser").parse(String(e)):parseFloat(e)},rA=(e,t)=>{let{prop:n,computed:r}=t;return Number.isNaN(e)?"":n("formatOptions")?r("formatter").format(e):e.toString()},{choose:rN,guards:rM,createMachine:rL}=(0,em.mj)(),{not:rV,and:rD}=rM;rL({props({props:e}){var t,n;let r,i=(t=e.step,n=e.formatOptions,r=void 0===t||Number.isNaN(t)?1:t,n?.style==="percent"&&(void 0===t||Number.isNaN(t))&&(r=.01),r);return{dir:"ltr",locale:"en-US",focusInputOnChange:!0,clampValueOnBlur:!e.allowOverflow,allowOverflow:!1,inputMode:"decimal",pattern:"-?[0-9]*(.[0-9]+)?",defaultValue:"",step:i,min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,spinOnPress:!0,...e,translations:{incrementLabel:"increment value",decrementLabel:"decrease value",...e.translations}}},initialState:()=>"idle",context:({prop:e,bindable:t,getComputed:n})=>({value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(t){let r=rR(t,{computed:n(),prop:e});e("onValueChange")?.({value:t,valueAsNumber:r})}})),hint:t(()=>({defaultValue:null})),scrubberCursorPoint:t(()=>({defaultValue:null,hash:e=>e?`x:${e.x}, y:${e.y}`:""})),fieldsetDisabled:t(()=>({defaultValue:!1}))}),computed:{isRtl:({prop:e})=>"rtl"===e("dir"),valueAsNumber:({context:e,computed:t,prop:n})=>rR(e.get("value"),{computed:t,prop:n}),formattedValue:({computed:e,prop:t})=>rA(e("valueAsNumber"),{computed:e,prop:t}),isAtMin:({computed:e,prop:t})=>(0,G.pY)(e("valueAsNumber"),t("min")),isAtMax:({computed:e,prop:t})=>(0,G.H_)(e("valueAsNumber"),t("max")),isOutOfRange:({computed:e,prop:t})=>!(0,G.s)(e("valueAsNumber"),t("min"),t("max")),isValueEmpty:({context:e})=>""===e.get("value"),isDisabled:({prop:e,context:t})=>!!e("disabled")||t.get("fieldsetDisabled"),canIncrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMax"),canDecrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMin"),valueText:({prop:e,context:t})=>e("translations").valueText?.(t.get("value")),formatter:(0,em.ph)(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>((e,t={})=>new Intl.NumberFormat(e,t))(e,t)),parser:(0,em.ph)(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>((e,t={})=>new rb(e,t))(e,t))},watch({track:e,action:t,context:n,computed:r,prop:i}){e([()=>n.get("value"),()=>i("locale")],()=>{t(["syncInputElement"])}),e([()=>r("isOutOfRange")],()=>{t(["invokeOnInvalid"])}),e([()=>n.hash("scrubberCursorPoint")],()=>{t(["setVirtualCursorPosition"])})},effects:["trackFormControl"],on:{"VALUE.SET":{actions:["setRawValue"]},"VALUE.CLEAR":{actions:["clearValue"]},"VALUE.INCREMENT":{actions:["increment"]},"VALUE.DECREMENT":{actions:["decrement"]}},states:{idle:{on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","invokeOnFocus","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","invokeOnFocus","setHint","setCursorPoint"]},"INPUT.FOCUS":{target:"focused",actions:["focusInput","invokeOnFocus"]}}},focused:{tags:["focus"],effects:["attachWheelListener"],on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","setHint","setCursorPoint"]},"INPUT.ARROW_UP":{actions:["increment"]},"INPUT.ARROW_DOWN":{actions:["decrement"]},"INPUT.HOME":{actions:["decrementToMin"]},"INPUT.END":{actions:["incrementToMax"]},"INPUT.CHANGE":{actions:["setValue","setHint"]},"INPUT.BLUR":[{guard:rD("clampValueOnBlur",rV("isInRange")),target:"idle",actions:["setClampedValue","clearHint","invokeOnBlur"]},{guard:rV("isInRange"),target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnInvalid"]},{target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur"]}],"INPUT.ENTER":{actions:["setFormattedValue","clearHint","invokeOnBlur"]}}},"before:spin":{tags:["focus"],effects:["trackButtonDisabled","waitForChangeDelay"],entry:rN([{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}]),on:{CHANGE_DELAY:{target:"spinning",guard:rD("isInRange","spinOnPress")},"TRIGGER.PRESS_UP":[{guard:"isTouchPointer",target:"focused",actions:["clearHint"]},{target:"focused",actions:["focusInput","clearHint"]}]}},spinning:{tags:["focus"],effects:["trackButtonDisabled","spinValue"],on:{SPIN:[{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}],"TRIGGER.PRESS_UP":{target:"focused",actions:["focusInput","clearHint"]}}},scrubbing:{tags:["focus"],effects:["activatePointerLock","trackMousemove","setupVirtualCursor","preventTextSelection"],on:{"SCRUBBER.POINTER_UP":{target:"focused",actions:["focusInput","clearCursorPoint"]},"SCRUBBER.POINTER_MOVE":[{guard:"isIncrementHint",actions:["increment","setCursorPoint"]},{guard:"isDecrementHint",actions:["decrement","setCursorPoint"]}]}}},implementations:{guards:{clampValueOnBlur:({prop:e})=>e("clampValueOnBlur"),spinOnPress:({prop:e})=>!!e("spinOnPress"),isInRange:({computed:e})=>!e("isOutOfRange"),isDecrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="decrement",isIncrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="increment",isTouchPointer:({event:e})=>"touch"===e.pointerType},effects:{waitForChangeDelay({send:e}){let t=setTimeout(()=>{e({type:"CHANGE_DELAY"})},300);return()=>clearTimeout(t)},spinValue({send:e}){let t=setInterval(()=>{e({type:"SPIN"})},50);return()=>clearInterval(t)},trackFormControl({context:e,scope:t}){let n=rT(t);return(0,ep.$S)(n,{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){e.set("value",e.initial("value"))}})},setupVirtualCursor({context:e,scope:t}){let n=e.get("scrubberCursorPoint");return(0,ep.nr)()?void 0:(((e,t)=>{let n=e.getDoc(),r=n.createElement("div");r.className="scrubber--cursor",r.id=r_(e),Object.assign(r.style,{width:"15px",height:"15px",position:"fixed",pointerEvents:"none",left:"0px",top:"0px",zIndex:ep.hx,transform:t?`translate3d(${t.x}px, ${t.y}px, 0px)`:void 0,willChange:"transform"}),r.innerHTML=`
3
- <svg width="46" height="15" style="left: -15.5px; position: absolute; top: 0; filter: drop-shadow(rgba(0, 0, 0, 0.4) 0px 1px 1.1px);">
4
- <g transform="translate(2 3)">
5
- <path fill-rule="evenodd" d="M 15 4.5L 15 2L 11.5 5.5L 15 9L 15 6.5L 31 6.5L 31 9L 34.5 5.5L 31 2L 31 4.5Z" style="stroke-width: 2px; stroke: white;"></path>
6
- <path fill-rule="evenodd" d="M 15 4.5L 15 2L 11.5 5.5L 15 9L 15 6.5L 31 6.5L 31 9L 34.5 5.5L 31 2L 31 4.5Z"></path>
7
- </g>
8
- </svg>`,n.body.appendChild(r)})(t,n),()=>{rP(t)?.remove()})},preventTextSelection:({scope:e})=>(e=>{let t=e.getDoc(),n=t.documentElement,r=t.body;return r.style.pointerEvents="none",n.style.userSelect="none",n.style.cursor="ew-resize",()=>{r.style.pointerEvents="",n.style.userSelect="",n.style.cursor="",n.style.length||n.removeAttribute("style"),r.style.length||r.removeAttribute("style")}})(e),trackButtonDisabled({context:e,scope:t,send:n}){var r,i;let o,a,s,l=e.get("hint"),u=(o=null,"increment"===l&&(o=(r=t).getById((a=r,a.ids?.incrementTrigger??`number-input:${a.id}:inc`))),"decrement"===l&&(o=(i=t).getById((s=i,s.ids?.decrementTrigger??`number-input:${s.id}:dec`))),o);return(0,ep.mx)(u,{attributes:["disabled"],callback(){n({type:"TRIGGER.PRESS_UP",src:"attr"})}})},attachWheelListener({scope:e,send:t,prop:n}){let r=rT(e);if(r&&e.isActiveElement(r)&&n("allowMouseWheel"))return(0,ep.kn)(r,"wheel",function(e){e.preventDefault();let n=-1*Math.sign(e.deltaY);1===n?t({type:"VALUE.INCREMENT"}):-1===n&&t({type:"VALUE.DECREMENT"})},{passive:!1})},activatePointerLock({scope:e}){if(!(0,ep.nr)())return(0,ep.zn)(e.getDoc())},trackMousemove({scope:e,send:t,context:n,computed:r}){let i=e.getDoc();return(0,G.OK)((0,ep.kn)(i,"mousemove",function(i){let o=((e,t)=>{let{point:n,isRtl:r,event:i}=t,o=e.getWin(),a=(0,G.Gy)(i.movementX,o.devicePixelRatio),s=(0,G.Gy)(i.movementY,o.devicePixelRatio),l=a>0?"increment":a<0?"decrement":null;r&&"increment"===l&&(l="decrement"),r&&"decrement"===l&&(l="increment");let u={x:n.x+a,y:n.y+s},c=o.innerWidth,d=(0,G.Gy)(7.5,o.devicePixelRatio);return u.x=(0,G.LV)(u.x+d,c)-d,{hint:l,point:u}})(e,{point:n.get("scrubberCursorPoint"),isRtl:r("isRtl"),event:i});o.hint&&t({type:"SCRUBBER.POINTER_MOVE",hint:o.hint,point:o.point})},!1),(0,ep.kn)(i,"mouseup",function(){t({type:"SCRUBBER.POINTER_UP"})},!1))}},actions:{focusInput({scope:e,prop:t}){if(!t("focusInputOnChange"))return;let n=rT(e);e.isActiveElement(n)||(0,ep.er)(()=>n?.focus({preventScroll:!0}))},increment({context:e,event:t,prop:n,computed:r}){let i=(0,G.tp)(r("valueAsNumber"),t.step??n("step"));n("allowOverflow")||(i=(0,G.L3)(i,n("min"),n("max"))),e.set("value",rA(i,{computed:r,prop:n}))},decrement({context:e,event:t,prop:n,computed:r}){let i=(0,G.VJ)(r("valueAsNumber"),t.step??n("step"));n("allowOverflow")||(i=(0,G.L3)(i,n("min"),n("max"))),e.set("value",rA(i,{computed:r,prop:n}))},setClampedValue({context:e,prop:t,computed:n}){let r=(0,G.L3)(n("valueAsNumber"),t("min"),t("max"));e.set("value",rA(r,{computed:n,prop:t}))},setRawValue({context:e,event:t,prop:n,computed:r}){let i=rR(t.value,{computed:r,prop:n});n("allowOverflow")||(i=(0,G.L3)(i,n("min"),n("max"))),e.set("value",rA(i,{computed:r,prop:n}))},setValue({context:e,event:t}){let n=t.target?.value??t.value;e.set("value",n)},clearValue({context:e}){e.set("value","")},incrementToMax({context:e,prop:t,computed:n}){let r=rA(t("max"),{computed:n,prop:t});e.set("value",r)},decrementToMin({context:e,prop:t,computed:n}){let r=rA(t("min"),{computed:n,prop:t});e.set("value",r)},setHint({context:e,event:t}){e.set("hint",t.hint)},clearHint({context:e}){e.set("hint",null)},invokeOnFocus({computed:e,prop:t}){t("onFocusChange")?.({focused:!0,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnBlur({computed:e,prop:t}){t("onFocusChange")?.({focused:!1,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnInvalid({computed:e,prop:t,event:n}){if("INPUT.CHANGE"===n.type)return;let r=e("valueAsNumber")>t("max")?"rangeOverflow":"rangeUnderflow";t("onValueInvalid")?.({reason:r,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},syncInputElement({context:e,event:t,computed:n,scope:r}){let i=t.type.endsWith("CHANGE")?e.get("value"):n("formattedValue"),o=rT(r),a=function(e){if(e&&e.ownerDocument.activeElement===e)try{let{selectionStart:t,selectionEnd:n,value:r}=e,i=r.substring(0,t),o=r.substring(n);return{start:t,end:n,value:r,beforeTxt:i,afterTxt:o}}catch{}}(o);(0,ep.er)(()=>{(0,ep.U4)(o,i),function(e,t){if(e&&e.ownerDocument.activeElement===e){if(!t)return e.setSelectionRange(e.value.length,e.value.length);try{let{value:n}=e,{beforeTxt:r="",afterTxt:i="",start:o}=t,a=n.length;if(n.endsWith(i))a=n.length-i.length;else if(n.startsWith(r))a=r.length;else if(null!=o){let e=r[o-1],t=n.indexOf(e,o-1);-1!==t&&(a=t+1)}e.setSelectionRange(a,a)}catch{}}}(o,a)})},setFormattedValue({context:e,computed:t}){e.set("value",t("formattedValue"))},setCursorPoint({context:e,event:t}){e.set("scrubberCursorPoint",t.point)},clearCursorPoint({context:e}){e.set("scrubberCursorPoint",null)},setVirtualCursorPosition({context:e,scope:t}){let n=rP(t),r=e.get("scrubberCursorPoint");n&&r&&(n.style.transform=`translate3d(${r.x}px, ${r.y}px, 0px)`)}}}});var rF=(0,ey.x)()(["allowMouseWheel","allowOverflow","clampValueOnBlur","dir","disabled","focusInputOnChange","form","formatOptions","getRootNode","id","ids","inputMode","invalid","locale","max","min","name","onFocusChange","onValueChange","onValueInvalid","pattern","required","readOnly","spinOnPress","step","translations","value","defaultValue"]);(0,G.PM)(rF);let rj=(0,i.H2)({display:"flex",justifyContent:"center",alignItems:"center",flex:"1",userSelect:"none",cursor:"button",lineHeight:"1",color:"fg.muted","--stepper-base-radius":"radii.l1","--stepper-radius":"calc(var(--stepper-base-radius) + 1px)",_icon:{boxSize:"1em"},_disabled:{opacity:"0.5"},_hover:{bg:"bg.muted"},_active:{bg:"bg.emphasized"}}),rz=(0,i.i_)({className:"chakra-number-input",slots:rI.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...A.base,verticalAlign:"top",pe:"calc(var(--stepper-width) + 0.5rem)"},control:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",width:"var(--stepper-width)",height:"calc(100% - 2px)",zIndex:"1",borderStartWidth:"1px",divideY:"1px"},incrementTrigger:{...rj,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...rj,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:A.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:A.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:A.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:A.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:rc(A.variants.variant,(e,t)=>[e,{input:t}])},defaultVariants:{size:"md",variant:"outline"}});var rB=(0,$.y)("pinInput").parts("root","label","input","control");rB.build();var rU=e=>e.ids?.root??`pin-input:${e.id}`,rW=e=>{let t=CSS.escape(rU(e)),n=`input[data-ownedby=${t}]`;return(0,ep.YG)((e=>e.getById(rU(e)))(e),n)},rH=(e,t)=>rW(e)[t],rq=e=>e.getById((e=>e.ids?.hiddenInput??`pin-input:${e.id}:hidden`)(e)),r$=(e,t)=>{e.value=t,e.setAttribute("value",t)},{choose:rG,createMachine:rK}=(0,em.mj)();function rY(e,t){let n=t;return e[0]===t[0]?n=t[1]:e[0]===t[1]&&(n=t[0]),n.split("")[n.length-1]}function rX(e,t){return Array.from({length:t}).fill("").map((t,n)=>e[n]||t)}rK({props:({props:e})=>({placeholder:"○",otp:!1,type:"numeric",defaultValue:e.count?rX([],e.count):[],...e,translations:{inputLabel:(e,t)=>`pin code ${e+1} of ${t}`,...e.translations}}),initialState:()=>"idle",context:({prop:e,bindable:t})=>({value:t(()=>({value:e("value"),defaultValue:e("defaultValue"),isEqual:G.n4,onChange(t){e("onValueChange")?.({value:t,valueAsString:t.join("")})}})),focusedIndex:t(()=>({sync:!0,defaultValue:-1})),count:t(()=>({defaultValue:e("count")}))}),computed:{_value:({context:e})=>rX(e.get("value"),e.get("count")),valueLength:({computed:e})=>e("_value").length,filledValueLength:({computed:e})=>e("_value").filter(e=>e?.trim()!=="").length,isValueComplete:({computed:e})=>e("valueLength")===e("filledValueLength"),valueAsString:({computed:e})=>e("_value").join(""),focusedValue:({computed:e,context:t})=>e("_value")[t.get("focusedIndex")]||""},entry:rG([{guard:"autoFocus",actions:["setInputCount","setFocusIndexToFirst"]},{actions:["setInputCount"]}]),watch({action:e,track:t,context:n,computed:r}){t([()=>n.get("focusedIndex")],()=>{e(["focusInput","selectInputIfNeeded"])}),t([()=>n.get("value").join(",")],()=>{e(["syncInputElements","dispatchInputEvent"])}),t([()=>r("isValueComplete")],()=>{e(["invokeOnComplete","blurFocusedInputIfNeeded"])})},on:{"VALUE.SET":[{guard:"hasIndex",actions:["setValueAtIndex"]},{actions:["setValue"]}],"VALUE.CLEAR":{actions:["clearValue","setFocusIndexToFirst"]}},states:{idle:{on:{"INPUT.FOCUS":{target:"focused",actions:["setFocusedIndex"]}}},focused:{on:{"INPUT.CHANGE":{actions:["setFocusedValue","syncInputValue","setNextFocusedIndex"]},"INPUT.PASTE":{actions:["setPastedValue","setLastValueFocusIndex"]},"INPUT.FOCUS":{actions:["setFocusedIndex"]},"INPUT.BLUR":{target:"idle",actions:["clearFocusedIndex"]},"INPUT.DELETE":{guard:"hasValue",actions:["clearFocusedValue"]},"INPUT.ARROW_LEFT":{actions:["setPrevFocusedIndex"]},"INPUT.ARROW_RIGHT":{actions:["setNextFocusedIndex"]},"INPUT.BACKSPACE":[{guard:"hasValue",actions:["clearFocusedValue"]},{actions:["setPrevFocusedIndex","clearFocusedValue"]}],"INPUT.ENTER":{guard:"isValueComplete",actions:["requestFormSubmit"]},"VALUE.INVALID":{actions:["invokeOnInvalid"]}}}},implementations:{guards:{autoFocus:({prop:e})=>!!e("autoFocus"),hasValue:({context:e})=>""!==e.get("value")[e.get("focusedIndex")],isValueComplete:({computed:e})=>e("isValueComplete"),hasIndex:({event:e})=>void 0!==e.index},actions:{dispatchInputEvent({computed:e,scope:t}){let n=rq(t);(0,ep.CF)(n,{value:e("valueAsString")})},setInputCount({scope:e,context:t,prop:n}){if(n("count"))return;let r=rW(e);t.set("count",r.length)},focusInput({context:e,scope:t}){let n=e.get("focusedIndex");-1!==n&&rH(t,n)?.focus({preventScroll:!0})},selectInputIfNeeded({context:e,prop:t,scope:n}){let r=e.get("focusedIndex");t("selectOnFocus")&&-1!==r&&(0,ep.er)(()=>{rH(n,r)?.select()})},invokeOnComplete({computed:e,prop:t}){e("isValueComplete")&&t("onValueComplete")?.({value:e("_value"),valueAsString:e("valueAsString")})},invokeOnInvalid({context:e,event:t,prop:n}){n("onValueInvalid")?.({value:t.value,index:e.get("focusedIndex")})},clearFocusedIndex({context:e}){e.set("focusedIndex",-1)},setFocusedIndex({context:e,event:t}){e.set("focusedIndex",t.index)},setValue({context:e,event:t}){let n=rX(t.value,e.get("count"));e.set("value",n)},setFocusedValue({context:e,event:t,computed:n,flush:r}){let i=n("focusedValue"),o=e.get("focusedIndex"),a=rY(i,t.value);r(()=>{e.set("value",(0,G.JT)(n("_value"),o,a))})},revertInputValue({context:e,computed:t,scope:n}){r$(rH(n,e.get("focusedIndex")),t("focusedValue"))},syncInputValue({context:e,event:t,scope:n}){let r=e.get("value");r$(rH(n,t.index),r[t.index])},syncInputElements({context:e,scope:t}){let n=rW(t),r=e.get("value");n.forEach((e,t)=>{r$(e,r[t])})},setPastedValue({context:e,event:t,computed:n,flush:r}){(0,ep.er)(()=>{let i=n("valueAsString"),o=e.get("focusedIndex"),a=n("valueLength"),s=Math.min(o,n("filledValueLength")),l=s>0?i.substring(0,o):"",u=t.value.substring(0,a-s),c=rX(`${l}${u}`.split(""),a);r(()=>{e.set("value",c)})})},setValueAtIndex({context:e,event:t,computed:n}){let r=rY(n("focusedValue"),t.value);e.set("value",(0,G.JT)(n("_value"),t.index,r))},clearValue({context:e}){let t=Array.from({length:e.get("count")}).fill("");e.set("value",t)},clearFocusedValue({context:e,computed:t}){let n=e.get("focusedIndex");-1!==n&&e.set("value",(0,G.JT)(t("_value"),n,""))},setFocusIndexToFirst({context:e}){e.set("focusedIndex",0)},setNextFocusedIndex({context:e,computed:t}){e.set("focusedIndex",Math.min(e.get("focusedIndex")+1,t("valueLength")-1))},setPrevFocusedIndex({context:e}){e.set("focusedIndex",Math.max(e.get("focusedIndex")-1,0))},setLastValueFocusIndex({context:e,computed:t}){(0,ep.er)(()=>{e.set("focusedIndex",Math.min(t("filledValueLength"),t("valueLength")-1))})},blurFocusedInputIfNeeded({context:e,prop:t,scope:n}){t("blurOnComplete")&&(0,ep.er)(()=>{rH(n,e.get("focusedIndex"))?.blur()})},requestFormSubmit({computed:e,prop:t,scope:n}){if(!t("name")||!e("isValueComplete"))return;let r=rq(n);r?.form?.requestSubmit()}}}});var rQ=(0,ey.x)()(["autoFocus","blurOnComplete","count","defaultValue","dir","disabled","form","getRootNode","id","ids","invalid","mask","name","onValueChange","onValueComplete","onValueInvalid","otp","pattern","placeholder","readOnly","required","selectOnFocus","translations","type","value"]);(0,G.PM)(rQ);let{variants:rJ,defaultVariants:rZ}=A,r0=(0,i.i_)({className:"chakra-pin-input",slots:rB.keys(),base:{input:{...A.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:rc(rJ.size,(e,t)=>[e,{input:{...t,px:"1"}}]),variant:rc(rJ.variant,(e,t)=>[e,{input:t}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:rZ}),r1=(0,i.i_)({className:"chakra-popover",slots:nb.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--popover-bg":"colors.bg.panel",bg:"var(--popover-bg)",boxShadow:"lg","--popover-size":"sizes.xs","--popover-mobile-size":"calc(100dvw - 1rem)",width:{base:"min(var(--popover-mobile-size), var(--popover-size))",sm:"var(--popover-size)"},borderRadius:"l3","--popover-z-index":"zIndex.popover",zIndex:"calc(var(--popover-z-index) + var(--layer-index, 0))",outline:"0",transformOrigin:"var(--transform-origin)",maxHeight:"var(--available-height)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"faster"}},header:{paddingInline:"var(--popover-padding)",paddingTop:"var(--popover-padding)"},body:{padding:"var(--popover-padding)",flex:"1"},footer:{display:"flex",alignItems:"center",paddingInline:"var(--popover-padding)",paddingBottom:"var(--popover-padding)"},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--popover-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px"}},variants:{size:{xs:{content:{"--popover-padding":"spacing.3"}},sm:{content:{"--popover-padding":"spacing.4"}},md:{content:{"--popover-padding":"spacing.5"}},lg:{content:{"--popover-padding":"spacing.6"}}}},defaultVariants:{size:"md"}});var r2=n(86244);let r5=(0,i.i_)({slots:r2.MI.keys(),className:"chakra-progress",base:{root:{textStyle:"sm",position:"relative"},track:{overflow:"hidden",position:"relative"},range:{display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"width, height",transitionDuration:"slow",height:"100%",bgColor:"var(--track-color)",_indeterminate:{"--animate-from-x":"-40%","--animate-to-x":"100%",position:"absolute",willChange:"left",minWidth:"50%",animation:"position 1s ease infinite normal none running",backgroundImage:"linear-gradient(to right, transparent 0%, var(--track-color) 50%, transparent 100%)"}},label:{display:"inline-flex",fontWeight:"medium",alignItems:"center",gap:"1"},valueText:{textStyle:"xs",lineHeight:"1",fontWeight:"medium"}},variants:{variant:{outline:{track:{shadow:"inset",bgColor:"bg.muted"},range:{bgColor:"colorPalette.solid"}},subtle:{track:{bgColor:"colorPalette.muted"},range:{bgColor:"colorPalette.solid/72"}}},shape:{square:{},rounded:{track:{borderRadius:"l1"}},full:{track:{borderRadius:"full"}}},striped:{true:{range:{backgroundImage:"linear-gradient(45deg, var(--stripe-color) 25%, transparent 25%, transparent 50%, var(--stripe-color) 50%, var(--stripe-color) 75%, transparent 75%, transparent)",backgroundSize:"var(--stripe-size) var(--stripe-size)","--stripe-size":"1rem","--stripe-color":{_light:"rgba(255, 255, 255, 0.3)",_dark:"rgba(0, 0, 0, 0.3)"}}}},animated:{true:{range:{"--animate-from":"var(--stripe-size)",animation:"bg-position 1s linear infinite"}}},size:{xs:{track:{h:"1.5"}},sm:{track:{h:"2"}},md:{track:{h:"2.5"}},lg:{track:{h:"3"}},xl:{track:{h:"4"}}}},defaultVariants:{variant:"outline",size:"md",shape:"rounded"}}),r3=(0,i.i_)({className:"chakra-progress-circle",slots:r2.MI.keys(),base:{root:{display:"inline-flex",textStyle:"sm",position:"relative"},circle:{_indeterminate:{animation:"spin 2s linear infinite"}},circleTrack:{"--track-color":"colors.colorPalette.muted",stroke:"var(--track-color)"},circleRange:{stroke:"colorPalette.solid",transitionProperty:"stroke-dashoffset, stroke-dasharray",transitionDuration:"0.6s",_indeterminate:{animation:"circular-progress 1.5s linear infinite"}},label:{display:"inline-flex"},valueText:{lineHeight:"1",fontWeight:"medium",letterSpacing:"tight",fontVariantNumeric:"tabular-nums"}},variants:{size:{xs:{circle:{"--size":"24px","--thickness":"4px"},valueText:{textStyle:"2xs"}},sm:{circle:{"--size":"32px","--thickness":"5px"},valueText:{textStyle:"2xs"}},md:{circle:{"--size":"40px","--thickness":"6px"},valueText:{textStyle:"xs"}},lg:{circle:{"--size":"48px","--thickness":"7px"},valueText:{textStyle:"sm"}},xl:{circle:{"--size":"64px","--thickness":"8px"},valueText:{textStyle:"sm"}}}},defaultVariants:{size:"md"}});var r4=(e=>(e[e.Border=-1]="Border",e[e.Data=0]="Data",e[e.Function=1]="Function",e[e.Position=2]="Position",e[e.Timing=3]="Timing",e[e.Alignment=4]="Alignment",e))(r4||{}),r6=Object.defineProperty,r8=(e,t,n)=>(((e,t,n)=>t in e?r6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),n);let r7=[1,0],r9=[2,3],ie=[3,2],it={L:[0,1],M:r7,Q:r9,H:ie},ir=/^[0-9]*$/,ii=/^[A-Z0-9 $%*+.\/:-]*$/,io="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",ia=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],is=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]];class il{constructor(e,t,n,r){if(this.version=e,this.ecc=t,r8(this,"size"),r8(this,"mask"),r8(this,"modules",[]),r8(this,"types",[]),e<1||e>40)throw RangeError("Version value out of range");if(r<-1||r>7)throw RangeError("Mask value out of range");this.size=4*e+17;let i=Array.from({length:this.size},()=>!1);for(let e=0;e<this.size;e++)this.modules.push(i.slice()),this.types.push(i.map(()=>0));this.drawFunctionPatterns();let o=this.addEccAndInterleave(n);if(this.drawCodewords(o),-1===r){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);let n=this.getPenaltyScore();n<e&&(r=t,e=n),this.applyMask(t)}}this.mask=r,this.applyMask(r),this.drawFormatBits(r)}getModule(e,t){return e>=0&&e<this.size&&t>=0&&t<this.size&&this.modules[t][e]}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0,r4.Timing),this.setFunctionModule(e,6,e%2==0,r4.Timing);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);let e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)(0!==n||0!==r)&&(0!==n||r!==t-1)&&(n!==t-1||0!==r)&&this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){let t=this.ecc[1]<<3|e,n=t;for(let e=0;e<10;e++)n=n<<1^(n>>>9)*1335;let r=(t<<10|n)^21522;for(let e=0;e<=5;e++)this.setFunctionModule(8,e,ic(r,e));this.setFunctionModule(8,7,ic(r,6)),this.setFunctionModule(8,8,ic(r,7)),this.setFunctionModule(7,8,ic(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,ic(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,ic(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,ic(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;let t=this.version<<12|e;for(let e=0;e<18;e++){let n=ic(t,e),r=this.size-11+e%3,i=Math.floor(e/3);this.setFunctionModule(r,i,n),this.setFunctionModule(i,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){let i=Math.max(Math.abs(r),Math.abs(n)),o=e+r,a=t+n;o>=0&&o<this.size&&a>=0&&a<this.size&&this.setFunctionModule(o,a,2!==i&&4!==i,r4.Position)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!==Math.max(Math.abs(r),Math.abs(n)),r4.Alignment)}setFunctionModule(e,t,n,r=r4.Function){this.modules[t][e]=n,this.types[t][e]=r}addEccAndInterleave(e){let t=this.version,n=this.ecc;if(e.length!==iy(t,n))throw RangeError("Invalid argument");let r=is[n[0]][t],i=ia[n[0]][t],o=Math.floor(ib(t)/8),a=r-o%r,s=Math.floor(o/r),l=[],u=function(e){if(e<1||e>255)throw RangeError("Degree out of range");let t=[];for(let n=0;n<e-1;n++)t.push(0);t.push(1);let n=1;for(let r=0;r<e;r++){for(let e=0;e<t.length;e++)t[e]=ix(t[e],n),e+1<t.length&&(t[e]^=t[e+1]);n=ix(n,2)}return t}(i);for(let t=0,n=0;t<r;t++){let r=e.slice(n,n+s-i+(t<a?0:1));n+=r.length;let o=function(e,t){let n=t.map(e=>0);for(let r of e){let e=r^n.shift();n.push(0),t.forEach((t,r)=>n[r]^=ix(t,e))}return n}(r,u);t<a&&r.push(0),l.push(r.concat(o))}let c=[];for(let e=0;e<l[0].length;e++)l.forEach((t,n)=>{(e!==s-i||n>=a)&&c.push(t[e])});return c}drawCodewords(e){if(e.length!==Math.floor(ib(this.version)/8))throw RangeError("Invalid argument");let t=0;for(let n=this.size-1;n>=1;n-=2){6===n&&(n=5);for(let r=0;r<this.size;r++)for(let i=0;i<2;i++){let o=n-i,a=(n+1&2)==0?this.size-1-r:r;!this.types[a][o]&&t<8*e.length&&(this.modules[a][o]=ic(e[t>>>3],7-(7&t)),t++)}}}applyMask(e){if(e<0||e>7)throw RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw Error("Unreachable")}!this.types[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let t=0;t<this.size;t++){let n=!1,r=0,i=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[t][o]===n?5==++r?e+=3:r>5&&e++:(this.finderPenaltyAddHistory(r,i),n||(e+=40*this.finderPenaltyCountPatterns(i)),n=this.modules[t][o],r=1);e+=40*this.finderPenaltyTerminateAndCount(n,r,i)}for(let t=0;t<this.size;t++){let n=!1,r=0,i=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[o][t]===n?5==++r?e+=3:r>5&&e++:(this.finderPenaltyAddHistory(r,i),n||(e+=40*this.finderPenaltyCountPatterns(i)),n=this.modules[o][t],r=1);e+=40*this.finderPenaltyTerminateAndCount(n,r,i)}for(let t=0;t<this.size-1;t++)for(let n=0;n<this.size-1;n++){let r=this.modules[t][n];r===this.modules[t][n+1]&&r===this.modules[t+1][n]&&r===this.modules[t+1][n+1]&&(e+=3)}let t=0;for(let e of this.modules)t=e.reduce((e,t)=>e+ +!!t,t);let n=this.size*this.size;return e+(Math.ceil(Math.abs(20*t-10*n)/n)-1)*10}getAlignmentPatternPositions(){if(1===this.version)return[];{let e=Math.floor(this.version/7)+2,t=32===this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2)),n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}finderPenaltyCountPatterns(e){let t=e[1],n=t>0&&e[2]===t&&e[3]===3*t&&e[4]===t&&e[5]===t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0===t[0]&&(e+=this.size),t.pop(),t.unshift(e)}}function iu(e,t,n){if(t<0||t>31||e>>>t!=0)throw RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function ic(e,t){return(e>>>t&1)!=0}class id{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw RangeError("Invalid argument");this.bitData=n.slice()}getData(){return this.bitData.slice()}}let ih=[1,10,12,14],ip=[2,9,11,13],ig=[4,8,16,16];function iv(e,t){return e[Math.floor((t+7)/17)+1]}function im(e){let t=[];for(let n of e)iu(n,8,t);return new id(ig,e.length,t)}function ib(e){if(e<1||e>40)throw RangeError("Version number out of range");let t=(16*e+128)*e+64;if(e>=2){let n=Math.floor(e/7)+2;t-=(25*n-10)*n-55,e>=7&&(t-=36)}return t}function iy(e,t){return Math.floor(ib(e)/8)-ia[t[0]][e]*is[t[0]][e]}function ix(e,t){if(e>>>8!=0||t>>>8!=0)throw RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^(n>>>7)*285^(t>>>r&1)*e;return n}var iw=(0,$.y)("qr-code").parts("root","frame","pattern","overlay","downloadTrigger");iw.build(),(0,em.Op)({props:({props:e})=>({defaultValue:"",pixelSize:10,...e}),initialState:()=>"idle",context:({prop:e,bindable:t})=>({value:t(()=>({value:e("value"),defaultValue:e("defaultValue"),onChange(t){e("onValueChange")?.({value:t})}}))}),computed:{encoded:(0,em.ph)(({context:e,prop:t})=>[e.get("value"),t("encoding")],(e,t)=>(function(e,t){let{ecc:n="L",boostEcc:r=!1,minVersion:i=1,maxVersion:o=40,maskPattern:a=-1,border:s=1}=t||{},l="string"==typeof e?function(e){var t,n;if(""===e)return[];if(t=e,ir.test(t))return[function(e){var t;if(t=e,!ir.test(t))throw RangeError("String contains non-numeric characters");let n=[];for(let t=0;t<e.length;){let r=Math.min(e.length-t,3);iu(Number.parseInt(e.substring(t,t+r),10),3*r+1,n),t+=r}return new id(ih,e.length,n)}(e)];return(n=e,ii.test(n))?[function(e){var t;let n;if(t=e,!ii.test(t))throw RangeError("String contains unencodable characters in alphanumeric mode");let r=[];for(n=0;n+2<=e.length;n+=2){let t=45*io.indexOf(e.charAt(n));iu(t+=io.indexOf(e.charAt(n+1)),11,r)}return n<e.length&&iu(io.indexOf(e.charAt(n)),6,r),new id(ip,e.length,r)}(e)]:[im(function(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!==e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(Number.parseInt(e.substring(n+1,n+3),16)),n+=2);return t}(e))]}(e):Array.isArray(e)?[im(e)]:void 0;if(!l)throw Error(`uqr only supports encoding string and binary data, but got: ${typeof e}`);let u=function(e,t,n=1,r=40,i=-1,o=!0){let a,s;if(!(1<=n&&n<=r&&r<=40)||i<-1||i>7)throw RangeError("Invalid value");for(a=n;;a++){let n=8*iy(a,t),i=function(e,t){let n=0;for(let r of e){let e=iv(r.mode,t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}(e,a);if(i<=n){s=i;break}if(a>=r)throw RangeError("Data too long")}for(let e of[r7,r9,ie])o&&s<=8*iy(a,e)&&(t=e);let l=[];for(let t of e)for(let e of(iu(t.mode[0],4,l),iu(t.numChars,iv(t.mode,a),l),t.getData()))l.push(e);let u=8*iy(a,t);iu(0,Math.min(4,u-l.length),l),iu(0,(8-l.length%8)%8,l);for(let e=236;l.length<u;e^=253)iu(e,8,l);let c=Array.from({length:Math.ceil(l.length/8)},()=>0);return l.forEach((e,t)=>c[t>>>3]|=e<<7-(7&t)),new il(a,t,c,i)}(l,it[n],i,o,a,r),c=function(e,t=1){if(!t)return e;let{size:n}=e,r=n+2*t;e.size=r,e.data.forEach(e=>{for(let n=0;n<t;n++)e.unshift(!1),e.push(!1)});for(let n=0;n<t;n++)e.data.unshift(Array.from({length:r},e=>!1)),e.data.push(Array.from({length:r},e=>!1));let i=r4.Border;e.types.forEach(e=>{for(let n=0;n<t;n++)e.unshift(i),e.push(i)});for(let n=0;n<t;n++)e.types.unshift(Array.from({length:r},e=>i)),e.types.push(Array.from({length:r},e=>i));return e}({version:u.version,maskPattern:u.mask,size:u.size,data:u.modules,types:u.types},s);return t?.invert&&(c.data=c.data.map(e=>e.map(e=>!e))),t?.onEncoded?.(c),c})(e,t))},states:{idle:{on:{"VALUE.SET":{actions:["setValue"]},"DOWNLOAD_TRIGGER.CLICK":{actions:["downloadQrCode"]}}}},implementations:{actions:{setValue({context:e,event:t}){e.set("value",t.value)},downloadQrCode({event:e,scope:t}){let{mimeType:n,quality:r,fileName:i}=e,o=t.getById(t.ids?.frame??`qrcode:${t.id}:frame`),a=t.getDoc();(0,ep.kf)(o,{type:n,quality:r}).then(e=>{let t=a.createElement("a");t.href=e,t.rel="noopener",t.download=i,t.click(),setTimeout(()=>{t.remove()},0)})}}}});var iS=(0,ey.x)()(["ids","defaultValue","value","id","encoding","dir","getRootNode","onValueChange","pixelSize"]);(0,G.PM)(iS);let iE=(0,i.i_)({slots:iw.keys(),className:"chakra-qr-code",base:{root:{position:"relative",width:"fit-content","--qr-code-overlay-size":"calc(var(--qr-code-size) / 3)"},frame:{width:"var(--qr-code-size)",height:"var(--qr-code-size)",fill:"currentColor"},overlay:{display:"flex",alignItems:"center",justifyContent:"center",width:"var(--qr-code-overlay-size)",height:"var(--qr-code-overlay-size)",padding:"1",bg:"bg",rounded:"l1"}},variants:{size:{"2xs":{root:{"--qr-code-size":"40px"}},xs:{root:{"--qr-code-size":"64px"}},sm:{root:{"--qr-code-size":"80px"}},md:{root:{"--qr-code-size":"120px"}},lg:{root:{"--qr-code-size":"160px"}},xl:{root:{"--qr-code-size":"200px"}},"2xl":{root:{"--qr-code-size":"240px"}},full:{root:{"--qr-code-size":"100%"}}}},defaultVariants:{size:"md"}}),ik=(0,i.i_)({className:"chakra-radio-card",slots:nx.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",isolation:"isolate"},item:{flex:"1",display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",_focus:{bg:"colorPalette.muted/20"},_disabled:{opacity:"0.8",borderColor:"border.disabled"},_checked:{zIndex:"1"}},label:{display:"inline-flex",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},itemText:{fontWeight:"medium",flex:"1"},itemDescription:{opacity:"0.64",textStyle:"sm"},itemControl:{display:"inline-flex",flex:"1",pos:"relative",rounded:"inherit",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)",_disabled:{bg:"bg.muted"}},itemIndicator:D.base,itemAddon:{roundedBottom:"inherit",_disabled:{color:"fg.muted"}},itemContent:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)"}},variants:{size:{sm:{item:{textStyle:"sm"},itemControl:{padding:"3",gap:"1.5"},itemAddon:{px:"3",py:"1.5",borderTopWidth:"1px"},itemIndicator:D.variants?.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:D.variants?.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:D.variants?.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:D.variants?.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:D.variants?.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:D.variants?.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemIndicator:D.variants?.variant.inverted}},justify:{start:{item:{"--radio-card-justify":"flex-start"}},end:{item:{"--radio-card-justify":"flex-end"}},center:{item:{"--radio-card-justify":"center"}}},align:{start:{item:{"--radio-card-align":"flex-start"},itemControl:{textAlign:"start"}},end:{item:{"--radio-card-align":"flex-end"},itemControl:{textAlign:"end"}},center:{item:{"--radio-card-align":"center"},itemControl:{textAlign:"center"}}},orientation:{vertical:{itemControl:{flexDirection:"column"}},horizontal:{itemControl:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}}),iC=(0,i.i_)({className:"chakra-radio-group",slots:ny.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:D.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:D.variants?.variant?.outline},subtle:{itemControl:D.variants?.variant?.subtle},solid:{itemControl:D.variants?.variant?.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:D.variants?.size?.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:D.variants?.size?.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:D.variants?.size?.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:D.variants?.size?.lg}}},defaultVariants:{size:"md",variant:"solid"}}),iO=(0,i.i_)({className:"chakra-rating-group",slots:nw.keys(),base:{root:{display:"inline-flex"},control:{display:"inline-flex",alignItems:"center"},item:{display:"inline-flex",alignItems:"center",justifyContent:"center",userSelect:"none"},itemIndicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"1em",height:"1em",position:"relative","--clip-path":{base:"inset(0 50% 0 0)",_rtl:"inset(0 0 0 50%)"},_icon:{stroke:"currentColor",width:"100%",height:"100%",display:"inline-block",flexShrink:0,position:"absolute",left:0,top:0},"& [data-bg]":{color:"bg.emphasized"},"& [data-fg]":{color:"transparent"},"&[data-highlighted]:not([data-half])":{"& [data-fg]":{color:"colorPalette.solid"}},"&[data-half]":{"& [data-fg]":{color:"colorPalette.solid",clipPath:"var(--clip-path)"}}}},variants:{size:{xs:{item:{textStyle:"sm"}},sm:{item:{textStyle:"md"}},md:{item:{textStyle:"xl"}},lg:{item:{textStyle:"2xl"}}}},defaultVariants:{size:"md"}}),iI=tM.MI.rename("segment-group");iI.build();let i_=(0,i.i_)({className:"chakra-segment-group",slots:iI.keys(),base:{root:{"--segment-radius":"radii.l2",borderRadius:"l2",display:"inline-flex",boxShadow:"inset",minW:"max-content",textAlign:"center",position:"relative",isolation:"isolate",bg:"bg.muted",_vertical:{flexDirection:"column"}},item:{display:"flex",alignItems:"center",justifyContent:"center",userSelect:"none",fontSize:"sm",position:"relative",color:"fg",borderRadius:"var(--segment-radius)",_disabled:{opacity:"0.5"},"&:has(input:focus-visible)":{focusRing:"outside"},_before:{content:'""',position:"absolute",bg:"border",transition:"opacity 0.2s"},_horizontal:{_before:{insetInlineStart:0,insetBlock:"1.5",width:"1px"}},_vertical:{_before:{insetBlockStart:0,insetInline:"1.5",height:"1px"}},"& + &[data-state=checked], &[data-state=checked] + &, &:first-of-type":{_before:{opacity:"0"}},"&[data-state=checked][data-ssr]":{shadow:"sm",bg:"bg",borderRadius:"var(--segment-radius)"}},indicator:{shadow:"sm",pos:"absolute",bg:{_light:"bg",_dark:"bg.emphasized"},width:"var(--width)",height:"var(--height)",top:"var(--top)",left:"var(--left)",zIndex:-1,borderRadius:"var(--segment-radius)"}},variants:{size:{xs:{item:{textStyle:"xs",px:"3",gap:"1",height:"6"}},sm:{item:{textStyle:"sm",px:"4",gap:"2",height:"8"}},md:{item:{textStyle:"sm",px:"4",gap:"2",height:"10"}},lg:{item:{textStyle:"md",px:"4.5",gap:"3",height:"11"}}}},defaultVariants:{size:"md"}}),iT=(0,i.i_)({className:"chakra-slider",slots:nk.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",textStyle:"sm",position:"relative",isolation:"isolate",touchAction:"none"},label:{fontWeight:"medium",textStyle:"sm"},control:{display:"inline-flex",alignItems:"center",position:"relative"},track:{overflow:"hidden",borderRadius:"full",flex:"1"},range:{width:"inherit",height:"inherit",_disabled:{bg:"border.emphasized!"}},markerGroup:{position:"absolute!",zIndex:"1"},marker:{"--marker-bg":{base:"white",_underValue:"colors.bg"},display:"flex",alignItems:"center",gap:"calc(var(--slider-thumb-size) / 2)",color:"fg.muted",textStyle:"xs"},markerIndicator:{width:"var(--slider-marker-size)",height:"var(--slider-marker-size)",borderRadius:"full",bg:"var(--marker-bg)"},thumb:{width:"var(--slider-thumb-size)",height:"var(--slider-thumb-size)",display:"flex",alignItems:"center",justifyContent:"center",outline:0,zIndex:"2",borderRadius:"full",_focusVisible:{ring:"2px",ringColor:"colorPalette.focusRing",ringOffset:"2px",ringOffsetColor:"bg"}}},variants:{size:{sm:{root:{"--slider-thumb-size":"sizes.4","--slider-track-size":"sizes.1.5","--slider-marker-center":"6px","--slider-marker-size":"sizes.1","--slider-marker-inset":"3px"}},md:{root:{"--slider-thumb-size":"sizes.5","--slider-track-size":"sizes.2","--slider-marker-center":"8px","--slider-marker-size":"sizes.1","--slider-marker-inset":"4px"}},lg:{root:{"--slider-thumb-size":"sizes.6","--slider-track-size":"sizes.2.5","--slider-marker-center":"9px","--slider-marker-size":"sizes.1.5","--slider-marker-inset":"5px"}}},variant:{outline:{track:{shadow:"inset",bg:"bg.emphasized/72"},range:{bg:"colorPalette.solid"},thumb:{borderWidth:"2px",borderColor:"colorPalette.solid",bg:"bg",_disabled:{bg:"border.emphasized",borderColor:"border.emphasized"}}},solid:{track:{bg:"colorPalette.subtle",_disabled:{bg:"bg.muted"}},range:{bg:"colorPalette.solid"},thumb:{bg:"colorPalette.solid",_disabled:{bg:"border.emphasized"}}}},orientation:{vertical:{root:{display:"inline-flex"},control:{flexDirection:"column",height:"100%",minWidth:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginEnd:"4"}},track:{width:"var(--slider-track-size)"},thumb:{left:"50%",translate:"-50% 0"},markerGroup:{insetStart:"var(--slider-marker-center)",insetBlock:"var(--slider-marker-inset)"},marker:{flexDirection:"row"}},horizontal:{control:{flexDirection:"row",width:"100%",minHeight:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginBottom:"4"}},track:{height:"var(--slider-track-size)"},thumb:{top:"50%",translate:"0 -50%"},markerGroup:{top:"var(--slider-marker-center)",insetInline:"var(--slider-marker-inset)"},marker:{flexDirection:"column"}}}},defaultVariants:{size:"md",variant:"outline",orientation:"horizontal"}}),iP=(0,i.i_)({className:"chakra-stat",slots:nC.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",position:"relative",flex:"1"},label:{display:"inline-flex",gap:"1.5",alignItems:"center",color:"fg.muted",textStyle:"sm"},helpText:{color:"fg.muted",textStyle:"xs"},valueUnit:{color:"fg.muted",textStyle:"xs",fontWeight:"initial",letterSpacing:"initial"},valueText:{verticalAlign:"baseline",fontWeight:"semibold",letterSpacing:"tight",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums",display:"inline-flex",gap:"1"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",marginEnd:1,"& :where(svg)":{w:"1em",h:"1em"},"&[data-type=up]":{color:"fg.success"},"&[data-type=down]":{color:"fg.error"}}},variants:{size:{sm:{valueText:{textStyle:"xl"}},md:{valueText:{textStyle:"2xl"}},lg:{valueText:{textStyle:"3xl"}}}},defaultVariants:{size:"md"}}),iR=(0,i.i_)({className:"chakra-status",slots:nO.keys(),base:{root:{display:"inline-flex",alignItems:"center",gap:"2"},indicator:{width:"0.64em",height:"0.64em",flexShrink:0,borderRadius:"full",forcedColorAdjust:"none",bg:"colorPalette.solid"}},variants:{size:{sm:{root:{textStyle:"xs"}},md:{root:{textStyle:"sm"}},lg:{root:{textStyle:"md"}}}},defaultVariants:{size:"md"}}),iA=(0,i.i_)({className:"chakra-steps",slots:nI.keys(),base:{root:{display:"flex",width:"full"},list:{display:"flex",justifyContent:"space-between","--steps-gutter":"spacing.3","--steps-thickness":"2px"},title:{fontWeight:"medium",color:"fg"},description:{color:"fg.muted"},separator:{bg:"border",flex:"1"},indicator:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0",borderRadius:"full",fontWeight:"medium",width:"var(--steps-size)",height:"var(--steps-size)",_icon:{flexShrink:"0",width:"var(--steps-icon-size)",height:"var(--steps-icon-size)"}},item:{position:"relative",display:"flex",gap:"3",flex:"1 0 0","&:last-of-type":{flex:"initial","& [data-part=separator]":{display:"none"}}},trigger:{display:"flex",alignItems:"center",gap:"3",textAlign:"start",focusVisibleRing:"outside",borderRadius:"l2"},content:{focusVisibleRing:"outside"}},variants:{orientation:{vertical:{root:{flexDirection:"row",height:"100%"},list:{flexDirection:"column",alignItems:"flex-start"},separator:{position:"absolute",width:"var(--steps-thickness)",height:"100%",maxHeight:"calc(100% - var(--steps-size) - var(--steps-gutter) * 2)",top:"calc(var(--steps-size) + var(--steps-gutter))",insetStart:"calc(var(--steps-size) / 2 - 1px)"},item:{alignItems:"flex-start"}},horizontal:{root:{flexDirection:"column",width:"100%"},list:{flexDirection:"row",alignItems:"center"},separator:{width:"100%",height:"var(--steps-thickness)",marginX:"var(--steps-gutter)"},item:{alignItems:"center"}}},variant:{solid:{indicator:{_incomplete:{borderWidth:"var(--steps-thickness)"},_current:{bg:"colorPalette.muted",borderWidth:"var(--steps-thickness)",borderColor:"colorPalette.solid",color:"colorPalette.fg"},_complete:{bg:"colorPalette.solid",borderColor:"colorPalette.solid",color:"colorPalette.contrast"}},separator:{_complete:{bg:"colorPalette.solid"}}},subtle:{indicator:{_incomplete:{bg:"bg.muted"},_current:{bg:"colorPalette.muted",color:"colorPalette.fg"},_complete:{bg:"colorPalette.emphasized",color:"colorPalette.fg"}},separator:{_complete:{bg:"colorPalette.emphasized"}}}},size:{xs:{root:{gap:"2.5"},list:{"--steps-size":"sizes.6","--steps-icon-size":"sizes.3.5",textStyle:"xs"},title:{textStyle:"sm"}},sm:{root:{gap:"3"},list:{"--steps-size":"sizes.8","--steps-icon-size":"sizes.4",textStyle:"xs"},title:{textStyle:"sm"}},md:{root:{gap:"4"},list:{"--steps-size":"sizes.10","--steps-icon-size":"sizes.4",textStyle:"sm"},title:{textStyle:"sm"}},lg:{root:{gap:"6"},list:{"--steps-size":"sizes.11","--steps-icon-size":"sizes.5",textStyle:"md"},title:{textStyle:"md"}}}},defaultVariants:{size:"md",variant:"solid",orientation:"horizontal"}}),iN=(0,i.i_)({slots:n_.keys(),className:"chakra-switch",base:{root:{display:"inline-flex",gap:"2.5",alignItems:"center",position:"relative",verticalAlign:"middle","--switch-diff":"calc(var(--switch-width) - var(--switch-height))","--switch-x":{base:"var(--switch-diff)",_rtl:"calc(var(--switch-diff) * -1)"}},label:{lineHeight:"1",userSelect:"none",fontSize:"sm",fontWeight:"medium",_disabled:{opacity:"0.5"}},indicator:{position:"absolute",height:"var(--switch-height)",width:"var(--switch-height)",fontSize:"var(--switch-indicator-font-size)",fontWeight:"medium",flexShrink:0,userSelect:"none",display:"grid",placeContent:"center",transition:"inset-inline-start 0.12s ease",insetInlineStart:"calc(var(--switch-x) - 2px)",_checked:{insetInlineStart:"2px"}},control:{display:"inline-flex",gap:"0.5rem",flexShrink:0,justifyContent:"flex-start",cursor:"switch",borderRadius:"full",position:"relative",width:"var(--switch-width)",height:"var(--switch-height)",transition:"backgrounds",_disabled:{opacity:"0.5",cursor:"not-allowed"},_invalid:{outline:"2px solid",outlineColor:"border.error",outlineOffset:"2px"}},thumb:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,transitionProperty:"translate",transitionDuration:"fast",borderRadius:"inherit",_checked:{translate:"var(--switch-x) 0"}}},variants:{variant:{solid:{control:{borderRadius:"full",bg:"bg.emphasized",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}},thumb:{bg:"white",width:"var(--switch-height)",height:"var(--switch-height)",scale:"0.8",boxShadow:"sm",_checked:{bg:"colorPalette.contrast"}}},raised:{control:{borderRadius:"full",height:"calc(var(--switch-height) / 2)",bg:"bg.muted",boxShadow:"inset",_checked:{bg:"colorPalette.solid/60"}},thumb:{width:"var(--switch-height)",height:"var(--switch-height)",position:"relative",top:"calc(var(--switch-height) * -0.25)",bg:"white",boxShadow:"xs",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}}}},size:{xs:{root:{"--switch-width":"sizes.6","--switch-height":"sizes.3","--switch-indicator-font-size":"fontSizes.xs"}},sm:{root:{"--switch-width":"sizes.8","--switch-height":"sizes.4","--switch-indicator-font-size":"fontSizes.xs"}},md:{root:{"--switch-width":"sizes.10","--switch-height":"sizes.5","--switch-indicator-font-size":"fontSizes.sm"}},lg:{root:{"--switch-width":"sizes.12","--switch-height":"sizes.6","--switch-indicator-font-size":"fontSizes.md"}}}},defaultVariants:{variant:"solid",size:"md"}}),iM=(0,i.i_)({className:"chakra-table",slots:nT.keys(),base:{root:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full",textAlign:"start",verticalAlign:"top"},row:{_selected:{bg:"colorPalette.subtle"}},cell:{textAlign:"start",alignItems:"center"},columnHeader:{fontWeight:"medium",textAlign:"start",color:"fg"},caption:{fontWeight:"medium",textStyle:"xs"},footer:{fontWeight:"medium"}},variants:{interactive:{true:{body:{"& tr":{_hover:{bg:"colorPalette.subtle"}}}}},stickyHeader:{true:{header:{"& :where(tr)":{top:"var(--table-sticky-offset, 0)",position:"sticky",zIndex:1}}}},striped:{true:{row:{"&:nth-of-type(odd) td":{bg:"bg.muted"}}}},showColumnBorder:{true:{columnHeader:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}},cell:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}}}},variant:{line:{columnHeader:{borderBottomWidth:"1px"},cell:{borderBottomWidth:"1px"},row:{bg:"bg"}},outline:{root:{boxShadow:"0 0 0 1px {colors.border}",overflow:"hidden"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"2",py:"2"},cell:{px:"2",py:"2"}},md:{root:{textStyle:"sm"},columnHeader:{px:"3",py:"3"},cell:{px:"3",py:"3"}},lg:{root:{textStyle:"md"},columnHeader:{px:"4",py:"3"},cell:{px:"4",py:"3"}}}},defaultVariants:{variant:"line",size:"md"}}),iL=(0,i.i_)({slots:nR.keys(),className:"chakra-tabs",base:{root:{"--tabs-trigger-radius":"radii.l2",position:"relative",_horizontal:{display:"block"},_vertical:{display:"flex"}},list:{display:"inline-flex",position:"relative",isolation:"isolate","--tabs-indicator-shadow":"shadows.xs","--tabs-indicator-bg":"colors.bg",minH:"var(--tabs-height)",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"}},trigger:{outline:"0",minW:"var(--tabs-height)",height:"var(--tabs-height)",display:"flex",alignItems:"center",fontWeight:"medium",position:"relative",cursor:"button",gap:"2",_focusVisible:{zIndex:1,outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{cursor:"not-allowed",opacity:.5}},content:{focusVisibleRing:"inside",_horizontal:{width:"100%",pt:"var(--tabs-content-padding)"},_vertical:{height:"100%",ps:"var(--tabs-content-padding)"}},indicator:{width:"var(--width)",height:"var(--height)",borderRadius:"var(--tabs-indicator-radius)",bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",zIndex:-1}},variants:{fitted:{true:{list:{display:"flex"},trigger:{flex:1,textAlign:"center",justifyContent:"center"}}},justify:{start:{list:{justifyContent:"flex-start"}},center:{list:{justifyContent:"center"}},end:{list:{justifyContent:"flex-end"}}},size:{sm:{root:{"--tabs-height":"sizes.9","--tabs-content-padding":"spacing.3"},trigger:{py:"1",px:"3",textStyle:"sm"}},md:{root:{"--tabs-height":"sizes.10","--tabs-content-padding":"spacing.4"},trigger:{py:"2",px:"4",textStyle:"sm"}},lg:{root:{"--tabs-height":"sizes.11","--tabs-content-padding":"spacing.4.5"},trigger:{py:"2",px:"4.5",textStyle:"md"}}},variant:{line:{list:{display:"flex",borderColor:"border",_horizontal:{borderBottomWidth:"1px"},_vertical:{borderEndWidth:"1px"}},trigger:{color:"fg.muted",_disabled:{_active:{bg:"initial"}},_selected:{color:"fg",_horizontal:{layerStyle:"indicator.bottom","--indicator-offset-y":"-1px","--indicator-color":"colors.colorPalette.solid"},_vertical:{layerStyle:"indicator.end","--indicator-offset-x":"-1px"}}}},subtle:{trigger:{borderRadius:"var(--tabs-trigger-radius)",color:"fg.muted",_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}},enclosed:{list:{bg:"bg.muted",padding:"1",borderRadius:"l3",minH:"calc(var(--tabs-height) - 4px)"},trigger:{justifyContent:"center",color:"fg.muted",borderRadius:"var(--tabs-trigger-radius)",_selected:{bg:"bg",color:"colorPalette.fg",shadow:"xs"}}},outline:{list:{"--line-thickness":"1px","--line-offset":"calc(var(--line-thickness) * -1)",borderColor:"border",display:"flex",_horizontal:{_before:{content:'""',position:"absolute",bottom:"0px",width:"100%",borderBottomWidth:"var(--line-thickness)",borderBottomColor:"border"}},_vertical:{_before:{content:'""',position:"absolute",insetInline:"var(--line-offset)",height:"calc(100% - calc(var(--line-thickness) * 2))",borderEndWidth:"var(--line-thickness)",borderEndColor:"border"}}},trigger:{color:"fg.muted",borderWidth:"1px",borderColor:"transparent",_selected:{bg:"currentBg",color:"colorPalette.fg"},_horizontal:{borderTopRadius:"var(--tabs-trigger-radius)",marginBottom:"var(--line-offset)",marginEnd:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderBottomColor:"transparent"}},_vertical:{borderStartRadius:"var(--tabs-trigger-radius)",marginEnd:"var(--line-offset)",marginBottom:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderEndColor:"transparent"}}}},plain:{trigger:{color:"fg.muted",_selected:{color:"colorPalette.fg"},borderRadius:"var(--tabs-trigger-radius)","&[data-selected][data-ssr]":{bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",borderRadius:"var(--tabs-indicator-radius)"}}}}},defaultVariants:{size:"md",variant:"line"}}),iV=S.variants?.variant,iD=(0,i.i_)({slots:nA.keys(),className:"chakra-tag",base:{root:{display:"inline-flex",alignItems:"center",verticalAlign:"top",maxWidth:"100%",userSelect:"none",borderRadius:"l2",focusVisibleRing:"outside"},label:{lineClamp:"1"},closeTrigger:{display:"flex",alignItems:"center",justifyContent:"center",outline:"0",borderRadius:"l1",color:"currentColor",focusVisibleRing:"inside",focusRingWidth:"2px"},startElement:{flexShrink:0,boxSize:"var(--tag-element-size)",ms:"var(--tag-element-offset)","&:has([data-scope=avatar])":{boxSize:"var(--tag-avatar-size)",ms:"calc(var(--tag-element-offset) * 1.5)"},_icon:{boxSize:"100%"}},endElement:{flexShrink:0,boxSize:"var(--tag-element-size)",me:"var(--tag-element-offset)",_icon:{boxSize:"100%"},"&:has(button)":{ms:"calc(var(--tag-element-offset) * -1)"}}},variants:{size:{sm:{root:{px:"1.5",minH:"4.5",gap:"1","--tag-avatar-size":"spacing.3","--tag-element-size":"spacing.3","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},md:{root:{px:"1.5",minH:"5",gap:"1","--tag-avatar-size":"spacing.3.5","--tag-element-size":"spacing.3.5","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},lg:{root:{px:"2",minH:"6",gap:"1.5","--tag-avatar-size":"spacing.4.5","--tag-element-size":"spacing.4","--tag-element-offset":"-3px"},label:{textStyle:"sm"}},xl:{root:{px:"2.5",minH:"8",gap:"1.5","--tag-avatar-size":"spacing.6","--tag-element-size":"spacing.4.5","--tag-element-offset":"-4px"},label:{textStyle:"sm"}}},variant:{subtle:{root:iV?.subtle},solid:{root:iV?.solid},outline:{root:iV?.outline},surface:{root:iV?.surface}}},defaultVariants:{size:"md",variant:"surface"}}),iF=(0,i.i_)({slots:nN.keys(),className:"chakra-timeline",base:{root:{display:"flex",flexDirection:"column",width:"full","--timeline-thickness":"1px","--timeline-gutter":"4px"},item:{display:"flex",position:"relative",alignItems:"flex-start",flexShrink:0,gap:"4",_last:{"& :where(.chakra-timeline__separator)":{display:"none"}}},separator:{position:"absolute",borderStartWidth:"var(--timeline-thickness)",ms:"calc(-1 * var(--timeline-thickness) / 2)",insetInlineStart:"calc(var(--timeline-indicator-size) / 2)",insetBlock:"0",borderColor:"border"},indicator:{outline:"2px solid {colors.bg}",position:"relative",flexShrink:"0",boxSize:"var(--timeline-indicator-size)",fontSize:"var(--timeline-font-size)",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontWeight:"medium"},connector:{alignSelf:"stretch",position:"relative"},content:{pb:"6",display:"flex",flexDirection:"column",width:"full",gap:"2"},title:{display:"flex",fontWeight:"medium",flexWrap:"wrap",gap:"1.5",alignItems:"center",mt:"var(--timeline-margin)"},description:{color:"fg.muted",textStyle:"xs"}},variants:{variant:{subtle:{indicator:{bg:"colorPalette.muted"}},solid:{indicator:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},outline:{indicator:{bg:"currentBg",borderWidth:"1px",borderColor:"colorPalette.muted"}},plain:{}},size:{sm:{root:{"--timeline-indicator-size":"sizes.4","--timeline-font-size":"fontSizes.2xs"},title:{textStyle:"xs"}},md:{root:{"--timeline-indicator-size":"sizes.5","--timeline-font-size":"fontSizes.xs"},title:{textStyle:"sm"}},lg:{root:{"--timeline-indicator-size":"sizes.6","--timeline-font-size":"fontSizes.xs"},title:{mt:"0.5",textStyle:"sm"}},xl:{root:{"--timeline-indicator-size":"sizes.8","--timeline-font-size":"fontSizes.sm"},title:{mt:"1.5",textStyle:"sm"}}}},defaultVariants:{size:"md",variant:"solid"}}),ij=(0,i.i_)({slots:nP.keys(),className:"chakra-toast",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",gap:"3",py:"4",ps:"4",pe:"6",borderRadius:"l2",translate:"var(--x) var(--y)",scale:"var(--scale)",zIndex:"var(--z-index)",height:"var(--height)",opacity:"var(--opacity)",willChange:"translate, opacity, scale",transition:"translate 400ms, scale 400ms, opacity 400ms, height 400ms, box-shadow 200ms",transitionTimingFunction:"cubic-bezier(0.21, 1.02, 0.73, 1)",_closed:{transition:"translate 400ms, scale 400ms, opacity 200ms",transitionTimingFunction:"cubic-bezier(0.06, 0.71, 0.55, 1)"},bg:"bg.panel",color:"fg",boxShadow:"xl","--toast-trigger-bg":"colors.bg.muted","&[data-type=warning]":{bg:"orange.solid",color:"orange.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=success]":{bg:"green.solid",color:"green.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=error]":{bg:"red.solid",color:"red.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"}},title:{fontWeight:"medium",textStyle:"sm",marginEnd:"2"},description:{display:"inline",textStyle:"sm",opacity:"0.8"},indicator:{flexShrink:"0",boxSize:"5"},actionTrigger:{textStyle:"sm",fontWeight:"medium",height:"8",px:"3",borderRadius:"l2",alignSelf:"center",borderWidth:"1px",borderColor:"var(--toast-border-color, inherit)",transition:"background 200ms",_hover:{bg:"var(--toast-trigger-bg)"}},closeTrigger:{position:"absolute",top:"1",insetEnd:"1",padding:"1",display:"inline-flex",alignItems:"center",justifyContent:"center",color:"{currentColor/60}",borderRadius:"l2",textStyle:"md",transition:"background 200ms",_icon:{boxSize:"1em"}}}});var iz=n(63048);let iB=(0,i.i_)({slots:iz.MI.keys(),className:"chakra-tooltip",base:{content:{"--tooltip-bg":"colors.bg.inverted",bg:"var(--tooltip-bg)",color:"fg.inverted",px:"2.5",py:"1",borderRadius:"l2",fontWeight:"medium",textStyle:"xs",boxShadow:"md",maxW:"xs",zIndex:"tooltip",transformOrigin:"var(--transform-origin)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"fast"}},arrow:{"--arrow-size":"sizes.2","--arrow-background":"var(--tooltip-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px",borderColor:"var(--tooltip-bg)"}}});var iU=(0,$.y)("tree-view").parts("branch","branchContent","branchControl","branchIndentGuide","branchIndicator","branchText","branchTrigger","item","itemIndicator","itemText","label","nodeCheckbox","root","tree");iU.build();var iW=e=>new ef(e);iW.empty=()=>new ef({rootNode:{children:[]}});var iH=(e,t)=>{null!=t&&e.getById(((e,t)=>e.ids?.node?.(t)??`tree:${e.id}:node:${t}`)(e,t))?.focus()};function iq(e,t){let{context:n,prop:r,refs:i}=e;if(!r("loadChildren"))return void n.set("expandedValue",e=>(0,G.sb)((0,G.WQ)(e,...t)));let o=n.get("loadingStatus"),[a,s]=(0,G.jB)(t,e=>"loaded"===o[e]);if(a.length>0&&n.set("expandedValue",e=>(0,G.sb)((0,G.WQ)(e,...a))),0===s.length)return;let l=r("collection"),[u,c]=(0,G.jB)(s,e=>{let t=l.findNode(e);return l.getNodeChildren(t).length>0});if(u.length>0&&n.set("expandedValue",e=>(0,G.sb)((0,G.WQ)(e,...u))),0===c.length)return;n.set("loadingStatus",e=>({...e,...c.reduce((e,t)=>({...e,[t]:"loading"}),{})}));let d=c.map(e=>{let t=l.getIndexPath(e),n=l.getValuePath(t),r=l.findNode(e);return{id:e,indexPath:t,valuePath:n,node:r}}),f=i.get("pendingAborts"),h=r("loadChildren");(0,G.D8)(h,()=>"[zag-js/tree-view] `loadChildren` is required for async expansion"),Promise.allSettled(d.map(({id:e,indexPath:t,valuePath:n,node:r})=>{let i=f.get(e);i&&(i.abort(),f.delete(e));let o=new AbortController;return f.set(e,o),h({valuePath:n,indexPath:t,node:r,signal:o.signal})})).then(e=>{let t=[],i=[],o=n.get("loadingStatus"),a=r("collection");e.forEach((e,n)=>{let{id:r,indexPath:s,node:l,valuePath:u}=d[n];"fulfilled"===e.status?(o[r]="loaded",t.push(r),a=a.replace(s,{...l,children:e.value})):(f.delete(r),Reflect.deleteProperty(o,r),i.push({node:l,error:e.reason,indexPath:s,valuePath:u}))}),n.set("loadingStatus",o),t.length&&(n.set("expandedValue",e=>(0,G.sb)((0,G.WQ)(e,...t))),r("onLoadChildrenComplete")?.({collection:a})),i.length&&r("onLoadChildrenError")?.({nodes:i})})}function i$(e){let{prop:t,context:n}=e;return function({indexPath:e}){return t("collection").getValuePath(e).slice(0,-1).some(e=>!n.get("expandedValue").includes(e))}}var{and:iG}=(0,em.b6)();(0,em.Op)({props:({props:e})=>({selectionMode:"single",collection:iW.empty(),typeahead:!0,expandOnClick:!0,defaultExpandedValue:[],defaultSelectedValue:[],...e}),initialState:()=>"idle",context:({prop:e,bindable:t,getContext:n})=>({expandedValue:t(()=>({defaultValue:e("defaultExpandedValue"),value:e("expandedValue"),isEqual:G.n4,onChange(t){let r=n().get("focusedValue");e("onExpandedChange")?.({expandedValue:t,focusedValue:r,get expandedNodes(){return e("collection").findNodes(t)}})}})),selectedValue:t(()=>({defaultValue:e("defaultSelectedValue"),value:e("selectedValue"),isEqual:G.n4,onChange(t){let r=n().get("focusedValue");e("onSelectionChange")?.({selectedValue:t,focusedValue:r,get selectedNodes(){return e("collection").findNodes(t)}})}})),focusedValue:t(()=>({defaultValue:e("defaultFocusedValue")||null,value:e("focusedValue"),onChange(t){e("onFocusChange")?.({focusedValue:t,get focusedNode(){return t?e("collection").findNode(t):null}})}})),loadingStatus:t(()=>({defaultValue:{}})),checkedValue:t(()=>({defaultValue:e("defaultCheckedValue")||[],value:e("checkedValue"),isEqual:G.n4,onChange(t){e("onCheckedChange")?.({checkedValue:t})}}))}),refs:()=>({typeaheadState:{...ep.tt.defaultOptions},pendingAborts:new Map}),computed:{isMultipleSelection:({prop:e})=>"multiple"===e("selectionMode"),isTypingAhead:({refs:e})=>e.get("typeaheadState").keysSoFar.length>0,visibleNodes:({prop:e,context:t})=>{let n=[];return e("collection").visit({skip:i$({prop:e,context:t}),onEnter:(e,t)=>{n.push({node:e,indexPath:t})}}),n}},on:{"EXPANDED.SET":{actions:["setExpanded"]},"EXPANDED.CLEAR":{actions:["clearExpanded"]},"EXPANDED.ALL":{actions:["expandAllBranches"]},"BRANCH.EXPAND":{actions:["expandBranches"]},"BRANCH.COLLAPSE":{actions:["collapseBranches"]},"SELECTED.SET":{actions:["setSelected"]},"SELECTED.ALL":[{guard:iG("isMultipleSelection","moveFocus"),actions:["selectAllNodes","focusTreeLastNode"]},{guard:"isMultipleSelection",actions:["selectAllNodes"]}],"SELECTED.CLEAR":{actions:["clearSelected"]},"NODE.SELECT":{actions:["selectNode"]},"NODE.DESELECT":{actions:["deselectNode"]},"CHECKED.TOGGLE":{actions:["toggleChecked"]},"CHECKED.SET":{actions:["setChecked"]},"CHECKED.CLEAR":{actions:["clearChecked"]}},exit:["clearPendingAborts"],states:{idle:{on:{"NODE.FOCUS":{actions:["setFocusedNode"]},"NODE.ARROW_DOWN":[{guard:iG("isShiftKey","isMultipleSelection"),actions:["focusTreeNextNode","extendSelectionToNextNode"]},{actions:["focusTreeNextNode"]}],"NODE.ARROW_UP":[{guard:iG("isShiftKey","isMultipleSelection"),actions:["focusTreePrevNode","extendSelectionToPrevNode"]},{actions:["focusTreePrevNode"]}],"NODE.ARROW_LEFT":{actions:["focusBranchNode"]},"BRANCH_NODE.ARROW_LEFT":[{guard:"isBranchExpanded",actions:["collapseBranch"]},{actions:["focusBranchNode"]}],"BRANCH_NODE.ARROW_RIGHT":[{guard:iG("isBranchFocused","isBranchExpanded"),actions:["focusBranchFirstNode"]},{actions:["expandBranch"]}],"SIBLINGS.EXPAND":{actions:["expandSiblingBranches"]},"NODE.HOME":[{guard:iG("isShiftKey","isMultipleSelection"),actions:["extendSelectionToFirstNode","focusTreeFirstNode"]},{actions:["focusTreeFirstNode"]}],"NODE.END":[{guard:iG("isShiftKey","isMultipleSelection"),actions:["extendSelectionToLastNode","focusTreeLastNode"]},{actions:["focusTreeLastNode"]}],"NODE.CLICK":[{guard:iG("isCtrlKey","isMultipleSelection"),actions:["toggleNodeSelection"]},{guard:iG("isShiftKey","isMultipleSelection"),actions:["extendSelectionToNode"]},{actions:["selectNode"]}],"BRANCH_NODE.CLICK":[{guard:iG("isCtrlKey","isMultipleSelection"),actions:["toggleNodeSelection"]},{guard:iG("isShiftKey","isMultipleSelection"),actions:["extendSelectionToNode"]},{guard:"expandOnClick",actions:["selectNode","toggleBranchNode"]},{actions:["selectNode"]}],"BRANCH_TOGGLE.CLICK":{actions:["toggleBranchNode"]},"TREE.TYPEAHEAD":{actions:["focusMatchedNode"]}}}},implementations:{guards:{isBranchFocused:({context:e,event:t})=>e.get("focusedValue")===t.id,isBranchExpanded:({context:e,event:t})=>e.get("expandedValue").includes(t.id),isShiftKey:({event:e})=>e.shiftKey,isCtrlKey:({event:e})=>e.ctrlKey,hasSelectedItems:({context:e})=>e.get("selectedValue").length>0,isMultipleSelection:({prop:e})=>"multiple"===e("selectionMode"),moveFocus:({event:e})=>!!e.moveFocus,expandOnClick:({prop:e})=>!!e("expandOnClick")},actions:{selectNode({context:e,event:t}){let n=t.id||t.value;e.set("selectedValue",e=>null==n?e:!t.isTrusted&&(0,G.cy)(n)?e.concat(...n):[(0,G.cy)(n)?(0,G.HV)(n):n].filter(Boolean))},deselectNode({context:e,event:t}){let n=(0,G.$r)(t.id||t.value);e.set("selectedValue",e=>(0,G.TF)(e,...n))},setFocusedNode({context:e,event:t}){e.set("focusedValue",t.id)},clearFocusedNode({context:e}){e.set("focusedValue",null)},clearSelectedItem({context:e}){e.set("selectedValue",[])},toggleBranchNode({context:e,event:t,action:n}){n(e.get("expandedValue").includes(t.id)?["collapseBranch"]:["expandBranch"])},expandBranch(e){let{event:t}=e;iq(e,[t.id])},expandBranches(e){let{context:t,event:n}=e,r=(0,G.$r)(n.value);iq(e,(0,G.Ui)(r,t.get("expandedValue")))},collapseBranch({context:e,event:t}){e.set("expandedValue",e=>(0,G.TF)(e,t.id))},collapseBranches(e){let{context:t,event:n}=e,r=(0,G.$r)(n.value);t.set("expandedValue",e=>(0,G.TF)(e,...r))},setExpanded({context:e,event:t}){(0,G.cy)(t.value)&&e.set("expandedValue",t.value)},clearExpanded({context:e}){e.set("expandedValue",[])},setSelected({context:e,event:t}){(0,G.cy)(t.value)&&e.set("selectedValue",t.value)},clearSelected({context:e}){e.set("selectedValue",[])},focusTreeFirstNode({prop:e,scope:t}){let n=e("collection"),r=n.getFirstNode();iH(t,n.getNodeValue(r))},focusTreeLastNode(e){let{prop:t,scope:n}=e,r=t("collection"),i=r.getLastNode(void 0,{skip:i$(e)});iH(n,r.getNodeValue(i))},focusBranchFirstNode({event:e,prop:t,scope:n}){let r=t("collection"),i=r.findNode(e.id),o=r.getFirstNode(i);iH(n,r.getNodeValue(o))},focusTreeNextNode(e){let{event:t,prop:n,scope:r}=e,i=n("collection"),o=i.getNextNode(t.id,{skip:i$(e)});o&&iH(r,i.getNodeValue(o))},focusTreePrevNode(e){let{event:t,prop:n,scope:r}=e,i=n("collection"),o=i.getPreviousNode(t.id,{skip:i$(e)});o&&iH(r,i.getNodeValue(o))},focusBranchNode({event:e,prop:t,scope:n}){let r=t("collection"),i=r.getParentNode(e.id);iH(n,i?r.getNodeValue(i):void 0)},selectAllNodes({context:e,prop:t}){e.set("selectedValue",t("collection").getValues())},focusMatchedNode(e){let{context:t,prop:n,refs:r,event:i,scope:o,computed:a}=e,s=a("visibleNodes").map(({node:e})=>({textContent:n("collection").stringifyNode(e),id:n("collection").getNodeValue(e)})),l=(0,ep.tt)(s,{state:r.get("typeaheadState"),activeId:t.get("focusedValue"),key:i.key});iH(o,l?.id)},toggleNodeSelection({context:e,event:t}){let n=(0,G.Xx)(e.get("selectedValue"),t.id);e.set("selectedValue",n)},expandAllBranches(e){let{context:t,prop:n}=e,r=n("collection").getBranchValues();iq(e,(0,G.Ui)(r,t.get("expandedValue")))},expandSiblingBranches(e){let{context:t,event:n,prop:r}=e,i=r("collection"),o=i.getIndexPath(n.id);if(!o)return;let a=i.getSiblingNodes(o).map(e=>i.getNodeValue(e));iq(e,(0,G.Ui)(a,t.get("expandedValue")))},extendSelectionToNode(e){let{context:t,event:n,prop:r,computed:i}=e,o=r("collection"),a=(0,G.$1)(t.get("selectedValue"))||o.getNodeValue(o.getFirstNode()),s=n.id,l=[a,s],u=0;i("visibleNodes").forEach(({node:e})=>{let t=o.getNodeValue(e);1===u&&l.push(t),(t===a||t===s)&&u++}),t.set("selectedValue",(0,G.sb)(l))},extendSelectionToNextNode(e){let{context:t,event:n,prop:r}=e,i=r("collection"),o=i.getNextNode(n.id,{skip:i$(e)});if(!o)return;let a=new Set(t.get("selectedValue")),s=i.getNodeValue(o);null!=s&&(a.has(n.id)&&a.has(s)?a.delete(n.id):a.has(s)||a.add(s),t.set("selectedValue",Array.from(a)))},extendSelectionToPrevNode(e){let{context:t,event:n,prop:r}=e,i=r("collection"),o=i.getPreviousNode(n.id,{skip:i$(e)});if(!o)return;let a=new Set(t.get("selectedValue")),s=i.getNodeValue(o);null!=s&&(a.has(n.id)&&a.has(s)?a.delete(n.id):a.has(s)||a.add(s),t.set("selectedValue",Array.from(a)))},extendSelectionToFirstNode(e){let{context:t,prop:n}=e,r=n("collection"),i=(0,G.$1)(t.get("selectedValue")),o=[];r.visit({skip:i$(e),onEnter:e=>{let t=r.getNodeValue(e);if(o.push(t),t===i)return"stop"}}),t.set("selectedValue",o)},extendSelectionToLastNode(e){let{context:t,prop:n}=e,r=n("collection"),i=(0,G.$1)(t.get("selectedValue")),o=[],a=!1;r.visit({skip:i$(e),onEnter:e=>{let t=r.getNodeValue(e);t===i&&(a=!0),a&&o.push(t)}}),t.set("selectedValue",o)},clearPendingAborts({refs:e}){let t=e.get("pendingAborts");t.forEach(e=>e.abort()),t.clear()},toggleChecked({context:e,event:t,prop:n}){let r=n("collection");e.set("checkedValue",e=>t.isBranch?function(e,t,n){let r=e.getDescendantValues(t),i=r.every(e=>n.includes(e));return(0,G.sb)(i?(0,G.TF)(n,...r):(0,G.WQ)(n,...r))}(r,t.value,e):(0,G.Xx)(e,t.value))},setChecked({context:e,event:t}){e.set("checkedValue",t.value)},clearChecked({context:e}){e.set("checkedValue",[])}}}});var iK=(0,ey.x)()(["ids","collection","dir","expandedValue","expandOnClick","defaultFocusedValue","focusedValue","getRootNode","id","onExpandedChange","onFocusChange","onSelectionChange","checkedValue","selectedValue","selectionMode","typeahead","defaultExpandedValue","defaultSelectedValue","defaultCheckedValue","onCheckedChange","onLoadChildrenComplete","onLoadChildrenError","loadChildren"]);(0,G.PM)(iK);var iY=(0,ey.x)()(["node","indexPath"]);(0,G.PM)(iY);let iX=(0,i.H2)({display:"flex",alignItems:"center",gap:"var(--tree-item-gap)",rounded:"l2",userSelect:"none",position:"relative","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-icon-offset":"calc(var(--tree-icon-size) * var(--tree-depth) * 0.5)","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset) + var(--tree-icon-offset))",ps:"var(--tree-offset)",pe:"var(--tree-padding-inline)",py:"var(--tree-padding-block)",focusVisibleRing:"inside",focusRingColor:"border.emphasized",focusRingWidth:"2px","&:hover, &:focus-visible":{bg:"bg.muted"},_disabled:{layerStyle:"disabled"}}),iQ=(0,i.H2)({flex:"1"}),iJ=(0,i.H2)({_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}),iZ=(0,i.H2)({_selected:{layerStyle:"fill.solid"}}),i0=(0,i.i_)({slots:iU.keys(),className:"chakra-tree-view",base:{root:{width:"full",display:"flex",flexDirection:"column",gap:"2"},tree:{display:"flex",flexDirection:"column","--tree-item-gap":"spacing.2",_icon:{boxSize:"var(--tree-icon-size)"}},label:{fontWeight:"medium",textStyle:"sm"},branch:{position:"relative"},branchContent:{position:"relative"},branchIndentGuide:{height:"100%",width:"1px",bg:"border",position:"absolute","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset))","--tree-icon-offset":"calc(var(--tree-icon-size) * 0.5 * var(--depth))",insetInlineStart:"calc(var(--tree-offset) + var(--tree-icon-offset))",zIndex:"1"},branchIndicator:{color:"fg.muted",transformOrigin:"center",transitionDuration:"normal",transitionProperty:"transform",transitionTimingFunction:"default",_open:{transform:"rotate(90deg)"}},branchTrigger:{display:"inline-flex",alignItems:"center",justifyContent:"center"},branchControl:iX,item:iX,itemText:iQ,branchText:iQ,nodeCheckbox:{display:"inline-flex"}},variants:{size:{md:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1.5","--tree-icon-size":"spacing.4"}},sm:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}},xs:{tree:{textStyle:"xs","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.2","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}}},variant:{subtle:{branchControl:iJ,item:iJ},solid:{branchControl:iZ,item:iZ}},animateContent:{true:{branchContent:{_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}},defaultVariants:{size:"md",variant:"subtle"}}),i1=(0,i.RP)({"2xs":{value:{fontSize:"2xs",lineHeight:"0.75rem"}},xs:{value:{fontSize:"xs",lineHeight:"1rem"}},sm:{value:{fontSize:"sm",lineHeight:"1.25rem"}},md:{value:{fontSize:"md",lineHeight:"1.5rem"}},lg:{value:{fontSize:"lg",lineHeight:"1.75rem"}},xl:{value:{fontSize:"xl",lineHeight:"1.875rem"}},"2xl":{value:{fontSize:"2xl",lineHeight:"2rem"}},"3xl":{value:{fontSize:"3xl",lineHeight:"2.375rem"}},"4xl":{value:{fontSize:"4xl",lineHeight:"2.75rem",letterSpacing:"-0.025em"}},"5xl":{value:{fontSize:"5xl",lineHeight:"3.75rem",letterSpacing:"-0.025em"}},"6xl":{value:{fontSize:"6xl",lineHeight:"4.5rem",letterSpacing:"-0.025em"}},"7xl":{value:{fontSize:"7xl",lineHeight:"5.75rem",letterSpacing:"-0.025em"}},none:{value:{}},label:{value:{fontSize:"sm",lineHeight:"1.25rem",fontWeight:"medium"}}}),i2=i.Ok.animations({spin:{value:"spin 1s linear infinite"},ping:{value:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite"},pulse:{value:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"},bounce:{value:"bounce 1s infinite"}}),i5=i.Ok.aspectRatios({square:{value:"1 / 1"},landscape:{value:"4 / 3"},portrait:{value:"3 / 4"},wide:{value:"16 / 9"},ultrawide:{value:"18 / 5"},golden:{value:"1.618 / 1"}}),i3=i.Ok.blurs({none:{value:" "},sm:{value:"4px"},md:{value:"8px"},lg:{value:"12px"},xl:{value:"16px"},"2xl":{value:"24px"},"3xl":{value:"40px"},"4xl":{value:"64px"}}),i4=i.Ok.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),i6=i.Ok.colors({transparent:{value:"transparent"},current:{value:"currentColor"},black:{value:"#09090B"},white:{value:"#FFFFFF"},whiteAlpha:{50:{value:"rgba(255, 255, 255, 0.04)"},100:{value:"rgba(255, 255, 255, 0.06)"},200:{value:"rgba(255, 255, 255, 0.08)"},300:{value:"rgba(255, 255, 255, 0.16)"},400:{value:"rgba(255, 255, 255, 0.24)"},500:{value:"rgba(255, 255, 255, 0.36)"},600:{value:"rgba(255, 255, 255, 0.48)"},700:{value:"rgba(255, 255, 255, 0.64)"},800:{value:"rgba(255, 255, 255, 0.80)"},900:{value:"rgba(255, 255, 255, 0.92)"},950:{value:"rgba(255, 255, 255, 0.95)"}},blackAlpha:{50:{value:"rgba(0, 0, 0, 0.04)"},100:{value:"rgba(0, 0, 0, 0.06)"},200:{value:"rgba(0, 0, 0, 0.08)"},300:{value:"rgba(0, 0, 0, 0.16)"},400:{value:"rgba(0, 0, 0, 0.24)"},500:{value:"rgba(0, 0, 0, 0.36)"},600:{value:"rgba(0, 0, 0, 0.48)"},700:{value:"rgba(0, 0, 0, 0.64)"},800:{value:"rgba(0, 0, 0, 0.80)"},900:{value:"rgba(0, 0, 0, 0.92)"},950:{value:"rgba(0, 0, 0, 0.95)"}},gray:{50:{value:"#fafafa"},100:{value:"#f4f4f5"},200:{value:"#e4e4e7"},300:{value:"#d4d4d8"},400:{value:"#a1a1aa"},500:{value:"#71717a"},600:{value:"#52525b"},700:{value:"#3f3f46"},800:{value:"#27272a"},900:{value:"#18181b"},950:{value:"#111111"}},red:{50:{value:"#fef2f2"},100:{value:"#fee2e2"},200:{value:"#fecaca"},300:{value:"#fca5a5"},400:{value:"#f87171"},500:{value:"#ef4444"},600:{value:"#dc2626"},700:{value:"#991919"},800:{value:"#511111"},900:{value:"#300c0c"},950:{value:"#1f0808"}},orange:{50:{value:"#fff7ed"},100:{value:"#ffedd5"},200:{value:"#fed7aa"},300:{value:"#fdba74"},400:{value:"#fb923c"},500:{value:"#f97316"},600:{value:"#ea580c"},700:{value:"#92310a"},800:{value:"#6c2710"},900:{value:"#3b1106"},950:{value:"#220a04"}},yellow:{50:{value:"#fefce8"},100:{value:"#fef9c3"},200:{value:"#fef08a"},300:{value:"#fde047"},400:{value:"#facc15"},500:{value:"#eab308"},600:{value:"#ca8a04"},700:{value:"#845209"},800:{value:"#713f12"},900:{value:"#422006"},950:{value:"#281304"}},green:{50:{value:"#f0fdf4"},100:{value:"#dcfce7"},200:{value:"#bbf7d0"},300:{value:"#86efac"},400:{value:"#4ade80"},500:{value:"#22c55e"},600:{value:"#16a34a"},700:{value:"#116932"},800:{value:"#124a28"},900:{value:"#042713"},950:{value:"#03190c"}},teal:{50:{value:"#f0fdfa"},100:{value:"#ccfbf1"},200:{value:"#99f6e4"},300:{value:"#5eead4"},400:{value:"#2dd4bf"},500:{value:"#14b8a6"},600:{value:"#0d9488"},700:{value:"#0c5d56"},800:{value:"#114240"},900:{value:"#032726"},950:{value:"#021716"}},blue:{50:{value:"#eff6ff"},100:{value:"#dbeafe"},200:{value:"#bfdbfe"},300:{value:"#a3cfff"},400:{value:"#60a5fa"},500:{value:"#3b82f6"},600:{value:"#2563eb"},700:{value:"#173da6"},800:{value:"#1a3478"},900:{value:"#14204a"},950:{value:"#0c142e"}},cyan:{50:{value:"#ecfeff"},100:{value:"#cffafe"},200:{value:"#a5f3fc"},300:{value:"#67e8f9"},400:{value:"#22d3ee"},500:{value:"#06b6d4"},600:{value:"#0891b2"},700:{value:"#0c5c72"},800:{value:"#134152"},900:{value:"#072a38"},950:{value:"#051b24"}},purple:{50:{value:"#faf5ff"},100:{value:"#f3e8ff"},200:{value:"#e9d5ff"},300:{value:"#d8b4fe"},400:{value:"#c084fc"},500:{value:"#a855f7"},600:{value:"#9333ea"},700:{value:"#641ba3"},800:{value:"#4a1772"},900:{value:"#2f0553"},950:{value:"#1a032e"}},pink:{50:{value:"#fdf2f8"},100:{value:"#fce7f3"},200:{value:"#fbcfe8"},300:{value:"#f9a8d4"},400:{value:"#f472b6"},500:{value:"#ec4899"},600:{value:"#db2777"},700:{value:"#a41752"},800:{value:"#6d0e34"},900:{value:"#45061f"},950:{value:"#2c0514"}}}),i8=i.Ok.cursor({button:{value:"pointer"},checkbox:{value:"default"},disabled:{value:"not-allowed"},menuitem:{value:"default"},option:{value:"default"},radio:{value:"default"},slider:{value:"default"},switch:{value:"pointer"}}),i7=i.Ok.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),i9=i.Ok.easings({"ease-in":{value:"cubic-bezier(0.42, 0, 1, 1)"},"ease-out":{value:"cubic-bezier(0, 0, 0.58, 1)"},"ease-in-out":{value:"cubic-bezier(0.42, 0, 0.58, 1)"},"ease-in-smooth":{value:"cubic-bezier(0.32, 0.72, 0, 1)"}}),oe=i.Ok.fontSizes({"2xs":{value:"0.625rem"},xs:{value:"0.75rem"},sm:{value:"0.875rem"},md:{value:"1rem"},lg:{value:"1.125rem"},xl:{value:"1.25rem"},"2xl":{value:"1.5rem"},"3xl":{value:"1.875rem"},"4xl":{value:"2.25rem"},"5xl":{value:"3rem"},"6xl":{value:"3.75rem"},"7xl":{value:"4.5rem"},"8xl":{value:"6rem"},"9xl":{value:"8rem"}}),ot=i.Ok.fontWeights({thin:{value:"100"},extralight:{value:"200"},light:{value:"300"},normal:{value:"400"},medium:{value:"500"},semibold:{value:"600"},bold:{value:"700"},extrabold:{value:"800"},black:{value:"900"}}),on='-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',or=i.Ok.fonts({heading:{value:`Inter, ${on}`},body:{value:`Inter, ${on}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),oi=(0,i.jC)({spin:{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}},pulse:{"50%":{opacity:"0.5"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}},"bg-position":{from:{backgroundPosition:"var(--animate-from, 1rem) 0"},to:{backgroundPosition:"var(--animate-to, 0) 0"}},position:{from:{insetInlineStart:"var(--animate-from-x)",insetBlockStart:"var(--animate-from-y)"},to:{insetInlineStart:"var(--animate-to-x)",insetBlockStart:"var(--animate-to-y)"}},"circular-progress":{"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100%"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260%"}},"expand-height":{from:{height:"0"},to:{height:"var(--height)"}},"collapse-height":{from:{height:"var(--height)"},to:{height:"0"}},"expand-width":{from:{width:"0"},to:{width:"var(--width)"}},"collapse-width":{from:{height:"var(--width)"},to:{height:"0"}},"fade-in":{from:{opacity:0},to:{opacity:1}},"fade-out":{from:{opacity:1},to:{opacity:0}},"slide-from-left-full":{from:{translate:"-100% 0"},to:{translate:"0 0"}},"slide-from-right-full":{from:{translate:"100% 0"},to:{translate:"0 0"}},"slide-from-top-full":{from:{translate:"0 -100%"},to:{translate:"0 0"}},"slide-from-bottom-full":{from:{translate:"0 100%"},to:{translate:"0 0"}},"slide-to-left-full":{from:{translate:"0 0"},to:{translate:"-100% 0"}},"slide-to-right-full":{from:{translate:"0 0"},to:{translate:"100% 0"}},"slide-to-top-full":{from:{translate:"0 0"},to:{translate:"0 -100%"}},"slide-to-bottom-full":{from:{translate:"0 0"},to:{translate:"0 100%"}},"slide-from-top":{"0%":{translate:"0 -0.5rem"},to:{translate:"0"}},"slide-from-bottom":{"0%":{translate:"0 0.5rem"},to:{translate:"0"}},"slide-from-left":{"0%":{translate:"-0.5rem 0"},to:{translate:"0"}},"slide-from-right":{"0%":{translate:"0.5rem 0"},to:{translate:"0"}},"slide-to-top":{"0%":{translate:"0"},to:{translate:"0 -0.5rem"}},"slide-to-bottom":{"0%":{translate:"0"},to:{translate:"0 0.5rem"}},"slide-to-left":{"0%":{translate:"0"},to:{translate:"-0.5rem 0"}},"slide-to-right":{"0%":{translate:"0"},to:{translate:"0.5rem 0"}},"scale-in":{from:{scale:"0.95"},to:{scale:"1"}},"scale-out":{from:{scale:"1"},to:{scale:"0.95"}}}),oo=i.Ok.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),oa=i.Ok.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),os=i.Ok.radii({none:{value:"0"},"2xs":{value:"0.0625rem"},xs:{value:"0.125rem"},sm:{value:"0.25rem"},md:{value:"0.375rem"},lg:{value:"0.5rem"},xl:{value:"0.75rem"},"2xl":{value:"1rem"},"3xl":{value:"1.5rem"},"4xl":{value:"2rem"},full:{value:"9999px"}}),ol=i.Ok.spacing({.5:{value:"0.125rem"},1:{value:"0.25rem"},1.5:{value:"0.375rem"},2:{value:"0.5rem"},2.5:{value:"0.625rem"},3:{value:"0.75rem"},3.5:{value:"0.875rem"},4:{value:"1rem"},4.5:{value:"1.125rem"},5:{value:"1.25rem"},6:{value:"1.5rem"},7:{value:"1.75rem"},8:{value:"2rem"},9:{value:"2.25rem"},10:{value:"2.5rem"},11:{value:"2.75rem"},12:{value:"3rem"},14:{value:"3.5rem"},16:{value:"4rem"},20:{value:"5rem"},24:{value:"6rem"},28:{value:"7rem"},32:{value:"8rem"},36:{value:"9rem"},40:{value:"10rem"},44:{value:"11rem"},48:{value:"12rem"},52:{value:"13rem"},56:{value:"14rem"},60:{value:"15rem"},64:{value:"16rem"},72:{value:"18rem"},80:{value:"20rem"},96:{value:"24rem"}}),ou=i.Ok.sizes({"3xs":{value:"14rem"},"2xs":{value:"16rem"},xs:{value:"20rem"},sm:{value:"24rem"},md:{value:"28rem"},lg:{value:"32rem"},xl:{value:"36rem"},"2xl":{value:"42rem"},"3xl":{value:"48rem"},"4xl":{value:"56rem"},"5xl":{value:"64rem"},"6xl":{value:"72rem"},"7xl":{value:"80rem"},"8xl":{value:"90rem"}}),oc=i.Ok.sizes({max:{value:"max-content"},min:{value:"min-content"},fit:{value:"fit-content"},prose:{value:"60ch"},full:{value:"100%"},dvh:{value:"100dvh"},svh:{value:"100svh"},lvh:{value:"100lvh"},dvw:{value:"100dvw"},svw:{value:"100svw"},lvw:{value:"100lvw"},vw:{value:"100vw"},vh:{value:"100vh"}}),od=i.Ok.sizes({"1/2":{value:"50%"},"1/3":{value:"33.333333%"},"2/3":{value:"66.666667%"},"1/4":{value:"25%"},"3/4":{value:"75%"},"1/5":{value:"20%"},"2/5":{value:"40%"},"3/5":{value:"60%"},"4/5":{value:"80%"},"1/6":{value:"16.666667%"},"2/6":{value:"33.333333%"},"3/6":{value:"50%"},"4/6":{value:"66.666667%"},"5/6":{value:"83.333333%"},"1/12":{value:"8.333333%"},"2/12":{value:"16.666667%"},"3/12":{value:"25%"},"4/12":{value:"33.333333%"},"5/12":{value:"41.666667%"},"6/12":{value:"50%"},"7/12":{value:"58.333333%"},"8/12":{value:"66.666667%"},"9/12":{value:"75%"},"10/12":{value:"83.333333%"},"11/12":{value:"91.666667%"}}),of=i.Ok.sizes({...ou,...ol,...od,...oc}),oh=i.Ok.zIndex({hide:{value:-1},base:{value:0},docked:{value:10},dropdown:{value:1e3},sticky:{value:1100},banner:{value:1200},overlay:{value:1300},modal:{value:1400},popover:{value:1500},skipNav:{value:1600},toast:{value:1700},tooltip:{value:1800},max:{value:0x7fffffff}}),op=(0,i.C8)({preflight:!0,cssVarsPrefix:"chakra",cssVarsRoot:":where(html, .chakra-theme)",globalCss:y,theme:{breakpoints:{sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},keyframes:oi,tokens:{aspectRatios:i5,animations:i2,blurs:i3,borders:i4,colors:i6,durations:i7,easings:i9,fonts:or,fontSizes:oe,fontWeights:ot,letterSpacings:oo,lineHeights:oa,radii:os,spacing:ol,sizes:of,zIndex:oh,cursor:i8},semanticTokens:{colors:W,shadows:q,radii:H},recipes:{badge:S,button:E,code:I,container:T,heading:P,input:A,inputAddon:N,kbd:M,link:L,mark:V,separator:F,skeleton:j,skipNavLink:z,spinner:B,textarea:U,icon:R,checkmark:k,radiomark:D,colorSwatch:_},slotRecipes:{accordion:nV,actionBar:nD,alert:nF,avatar:nz,blockquote:nB,breadcrumb:nU,card:nW,checkbox:nq,checkboxCard:n$,codeBlock:nG,collapsible:nQ,dataList:n0,dialog:n1,drawer:n2,editable:n3,emptyState:n4,field:n6,fieldset:n8,fileUpload:n7,hoverCard:ro,list:ra,menu:rs,nativeSelect:ru,numberInput:rz,pinInput:r0,popover:r1,progress:r5,progressCircle:r3,radioCard:ik,radioGroup:iC,ratingGroup:iO,segmentGroup:i_,select:rl,combobox:nZ,slider:iT,stat:iP,steps:iA,switch:iN,table:iM,tabs:iL,tag:iD,toast:ij,tooltip:iB,status:iR,timeline:iF,colorPicker:nJ,qrCode:iE,treeView:i0},textStyles:i1,layerStyles:x,animationStyles:w}}),og=(0,i.SV)(g,op);(0,m.m)(og)},92469:(e,t,n)=>{var r=n(22094);e.exports=function(){this.__data__=new r,this.size=0}},92740:(e,t,n)=>{"use strict";function r(e){return function(){return this.matches(e)}}function i(e){return function(t){return t.matches(e)}}n.d(t,{A:()=>r,j:()=>i})},92859:(e,t,n)=>{var r=n(52337);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},92970:e=>{e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return -1}},93006:(e,t,n)=>{var r=n(24376);e.exports=n(77993)(function(e,t){return null==e?{}:r(e,t)})},93600:(e,t,n)=>{"use strict";n.d(t,{Aq:()=>m,MI:()=>u,Ng:()=>g});var r=n(61696),i=n(6280),o=n(83788),a=n(20752),s=n(82136),l=n(77952),u=(0,r.y)("checkbox").parts("root","label","control","indicator"),c=u.build(),d=e=>e.ids?.root??`checkbox:${e.id}`,f=e=>e.ids?.label??`checkbox:${e.id}:label`,h=e=>e.ids?.hiddenInput??`checkbox:${e.id}:input`,p=e=>e.getById(h(e));function g(e,t){let{send:n,context:r,prop:a,computed:s,scope:l}=e,u=a("disabled"),g=a("readOnly"),v=a("invalid"),m=!u&&r.get("focused"),b=!u&&r.get("focusVisible"),y=s("checked"),x=s("indeterminate"),w={"data-active":(0,i.sE)(r.get("active")),"data-focus":(0,i.sE)(m),"data-focus-visible":(0,i.sE)(b),"data-readonly":(0,i.sE)(g),"data-hover":(0,i.sE)(r.get("hovered")),"data-disabled":(0,i.sE)(u),"data-state":x?"indeterminate":y?"checked":"unchecked","data-invalid":(0,i.sE)(v)};return{checked:y,disabled:u,indeterminate:x,focused:m,checkedState:y,setChecked(e){n({type:"CHECKED.SET",checked:e,isTrusted:!1})},toggleChecked(){n({type:"CHECKED.TOGGLE",checked:y,isTrusted:!1})},getRootProps:()=>t.label({...c.root.attrs,...w,dir:a("dir"),id:d(l),htmlFor:h(l),onPointerMove(){u||n({type:"CONTEXT.SET",context:{hovered:!0}})},onPointerLeave(){u||n({type:"CONTEXT.SET",context:{hovered:!1}})},onClick(e){(0,i.wt)(e)===p(l)&&e.stopPropagation()}}),getLabelProps:()=>t.element({...c.label.attrs,...w,dir:a("dir"),id:f(l)}),getControlProps:()=>t.element({...c.control.attrs,...w,dir:a("dir"),id:l.ids?.control??`checkbox:${l.id}:control`,"aria-hidden":!0}),getIndicatorProps:()=>t.element({...c.indicator.attrs,...w,dir:a("dir"),hidden:!x&&!y}),getHiddenInputProps:()=>t.input({id:h(l),type:"checkbox",required:a("required"),defaultChecked:y,disabled:u,"aria-labelledby":f(l),"aria-invalid":v,name:a("name"),form:a("form"),value:a("value"),style:i.fe,onFocus(){n({type:"CONTEXT.SET",context:{focused:!0,focusVisible:(0,o.pP)()}})},onBlur(){n({type:"CONTEXT.SET",context:{focused:!1,focusVisible:!1}})},onClick(e){if(g)return void e.preventDefault();n({type:"CHECKED.SET",checked:e.currentTarget.checked,isTrusted:!0})}})}}var{not:v}=(0,a.b6)(),m=(0,a.Op)({props:({props:e})=>({value:"on",...e,defaultChecked:!!e.defaultChecked}),initialState:()=>"ready",context:({prop:e,bindable:t})=>({checked:t(()=>({defaultValue:e("defaultChecked"),value:e("checked"),onChange(t){e("onCheckedChange")?.({checked:t})}})),fieldsetDisabled:t(()=>({defaultValue:!1})),focusVisible:t(()=>({defaultValue:!1})),active:t(()=>({defaultValue:!1})),focused:t(()=>({defaultValue:!1})),hovered:t(()=>({defaultValue:!1}))}),watch({track:e,context:t,prop:n,action:r}){e([()=>n("disabled")],()=>{r(["removeFocusIfNeeded"])}),e([()=>t.get("checked")],()=>{r(["syncInputElement"])})},effects:["trackFormControlState","trackPressEvent","trackFocusVisible"],on:{"CHECKED.TOGGLE":[{guard:v("isTrusted"),actions:["toggleChecked","dispatchChangeEvent"]},{actions:["toggleChecked"]}],"CHECKED.SET":[{guard:v("isTrusted"),actions:["setChecked","dispatchChangeEvent"]},{actions:["setChecked"]}],"CONTEXT.SET":{actions:["setContext"]}},computed:{indeterminate:({context:e})=>b(e.get("checked")),checked:({context:e})=>(function(e){return!b(e)&&!!e})(e.get("checked")),disabled:({context:e,prop:t})=>!!t("disabled")||e.get("fieldsetDisabled")},states:{ready:{}},implementations:{guards:{isTrusted:({event:e})=>!!e.isTrusted},effects:{trackPressEvent({context:e,computed:t,scope:n}){if(!t("disabled"))return(0,i.ru)({pointerNode:n.getById(d(n)),keyboardNode:p(n),isValidKey:e=>" "===e.key,onPress:()=>e.set("active",!1),onPressStart:()=>e.set("active",!0),onPressEnd:()=>e.set("active",!1)})},trackFocusVisible({computed:e,scope:t}){if(!e("disabled"))return(0,o.Yy)({root:t.getRootNode?.()})},trackFormControlState:({context:e,scope:t})=>(0,i.$S)(p(t),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){e.set("checked",e.initial("checked"))}})},actions:{setContext({context:e,event:t}){for(let n in t.context)e.set(n,t.context[n])},syncInputElement({context:e,computed:t,scope:n}){let r=p(n);r&&((0,i._T)(r,t("checked")),r.indeterminate=b(e.get("checked")))},removeFocusIfNeeded({context:e,prop:t}){t("disabled")&&e.get("focused")&&(e.set("focused",!1),e.set("focusVisible",!1))},setChecked({context:e,event:t}){e.set("checked",t.checked)},toggleChecked({context:e,computed:t}){let n=!!b(t("checked"))||!t("checked");e.set("checked",n)},dispatchChangeEvent({computed:e,scope:t}){queueMicrotask(()=>{let n=p(t);(0,i.uf)(n,{checked:e("checked")})})}}}});function b(e){return"indeterminate"===e}var y=(0,s.x)()(["defaultChecked","checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]);(0,l.PM)(y)},93996:(e,t,n)=>{var r=n(65538),i=n(84988),o=n(24624),a=n(39690),s=n(9348),l=n(36150);e.exports=function(e,t,n){var u=-1,c=i,d=e.length,f=!0,h=[],p=h;if(n)f=!1,c=o;else if(d>=200){var g=t?null:s(e);if(g)return l(g);f=!1,c=a,p=new r}else p=t?[]:h;e:for(;++u<d;){var v=e[u],m=t?t(v):v;if(v=n||0!==v?v:0,f&&m==m){for(var b=p.length;b--;)if(p[b]===m)continue e;t&&p.push(m),h.push(v)}else c(p,m,n)||(p!==h&&p.push(m),h.push(v))}return h}},94022:(e,t,n)=>{var r=n(53215),i=n(12569);e.exports=function(e){return r(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var l=n[r];l&&e(t,l,r,a)}return t})}},94095:(e,t,n)=>{"use strict";var r=n(63780);function i(e){r.forEach(e.nodes(),function(t){o(e.node(t))}),r.forEach(e.edges(),function(t){o(e.edge(t))})}function o(e){var t=e.width;e.width=e.height,e.height=t}function a(e){e.y=-e.y}function s(e){var t=e.x;e.x=e.y,e.y=t}e.exports={adjust:function(e){var t=e.graph().rankdir.toLowerCase();("lr"===t||"rl"===t)&&i(e)},undo:function(e){var t,n,o=e.graph().rankdir.toLowerCase();("bt"===o||"rl"===o)&&(t=e,r.forEach(t.nodes(),function(e){a(t.node(e))}),r.forEach(t.edges(),function(e){var n=t.edge(e);r.forEach(n.points,a),r.has(n,"y")&&a(n)})),("lr"===o||"rl"===o)&&(n=e,r.forEach(n.nodes(),function(e){s(n.node(e))}),r.forEach(n.edges(),function(e){var t=n.edge(e);r.forEach(t.points,s),r.has(t,"x")&&s(t)}),i(e))}}},94241:(e,t,n)=>{"use strict";n.d(t,{I:()=>c});var r=n(9597),i=n(80905),o=n(45008),a=n(12580),s=n(23769);let{useRecipeResult:l,PropsProvider:u}=(0,a.a)({key:"icon"}),c=i.forwardRef(function(e,t){let{styles:n,className:i,props:a}=l({asChild:!e.as,...e});return(0,r.jsx)(s.B.svg,{ref:t,focusable:!1,"aria-hidden":"true",...a,css:[n,e.css],className:(0,o.cx)(i,e.className)})})},94329:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},94372:(e,t,n)=>{"use strict";n.d(t,{B:()=>l});var r=n(9597),i=n(80905),o=n(45008),a=n(23769),s=n(60178);let l=(0,i.forwardRef)(function(e,t){let{direction:n="column",align:l,justify:u,gap:c="0.5rem",wrap:d,children:f,separator:h,className:p,...g}=e,v=(0,i.useMemo)(()=>(function(e){let{gap:t,direction:n}=e,r={column:{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},"column-reverse":{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},row:{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0},"row-reverse":{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0}};return{"&":(0,s.s)(n,e=>r[e])}})({gap:c,direction:n}),[c,n]),m=(0,i.useMemo)(()=>(0,i.isValidElement)(h)?i.Children.toArray(f).filter(e=>(0,i.isValidElement)(e)).map((e,t,n)=>{let o=void 0!==e.key?e.key:t,a=(0,i.cloneElement)(h,{css:[v,h.props.css]});return(0,r.jsxs)(i.Fragment,{children:[e,t===n.length-1?null:a]},o)}):f,[f,h,v]);return(0,r.jsx)(a.B.div,{ref:t,display:"flex",alignItems:l,justifyContent:u,flexDirection:n,flexWrap:d,gap:h?void 0:c,className:(0,o.cx)("chakra-stack",p),...g,children:m})})},94398:(e,t,n)=>{e.exports=n(88854)(Object.getPrototypeOf,Object)},94427:(e,t,n)=>{e.exports=n(83199)(Object,"create")},94599:e=>{e.exports=function(){}},94627:(e,t,n)=>{e=n.nmd(e);var r=n(53252),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},94848:(e,t,n)=>{var r=n(92970),i=n(27404),o=n(97184),a=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return -1;var l=null==n?0:o(n);return l<0&&(l=a(s+l,0)),r(e,i(t,3),l)}},95329:(e,t,n)=>{"use strict";n.d(t,{J:()=>p});var r,i={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=n(20255),a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!=typeof e},c=(0,o.A)(function(e){return l(e)?e:e.replace(a,"-$&").toLowerCase()}),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,function(e,t,n){return r={name:t,styles:n,next:r},t})}return 1===i[e]||l(e)||"number"!=typeof t||0===t?t:t+"px"};function f(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return r={name:n.name,styles:n.styles,next:r},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)r={name:i.name,styles:i.styles,next:r},i=i.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=f(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":u(a)&&(r+=c(o)+":"+d(o,a)+";");else if(Array.isArray(a)&&"string"==typeof a[0]&&(null==t||void 0===t[a[0]]))for(var s=0;s<a.length;s++)u(a[s])&&(r+=c(o)+":"+d(o,a[s])+";");else{var l=f(e,t,a);switch(o){case"animation":case"animationName":r+=c(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}}return r}(e,t,n);case"function":if(void 0!==e){var o=r,a=n(e);return r=o,f(e,t,a)}}if(null==t)return n;var s=t[n];return void 0!==s?s:n}var h=/label:\s*([^\s;{]+)\s*(;|$)/g;function p(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i,o=!0,a="";r=void 0;var s=e[0];null==s||void 0===s.raw?(o=!1,a+=f(n,t,s)):a+=s[0];for(var l=1;l<e.length;l++)a+=f(n,t,e[l]),o&&(a+=s[l]);h.lastIndex=0;for(var u="";null!==(i=h.exec(a));)u+="-"+i[1];return{name:function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*0x5bd1e995+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16)^(65535&n)*0x5bd1e995+((n>>>16)*59797<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*0x5bd1e995+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*0x5bd1e995+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)}(a)+u,styles:a,next:r}}},95362:(e,t,n)=>{"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}n.d(t,{A:()=>r})},95532:e=>{e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},95718:(e,t,n)=>{var r=n(26774),i=n(56625),o=n(95532);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},95816:(e,t,n)=>{var r=n(34884);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},95914:(e,t,n)=>{"use strict";let r;n.d(t,{A:()=>ts});var i,o,a,s={};function l(e,t){return function(){return e.apply(t,arguments)}}n.r(s),n.d(s,{hasBrowserEnv:()=>eh,hasStandardBrowserEnv:()=>eg,hasStandardBrowserWebWorkerEnv:()=>ev,navigator:()=>ep,origin:()=>em});var u=n(97139);let{toString:c}=Object.prototype,{getPrototypeOf:d}=Object,{iterator:f,toStringTag:h}=Symbol,p=(e=>t=>{let n=c.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),g=e=>(e=e.toLowerCase(),t=>p(t)===e),v=e=>t=>typeof t===e,{isArray:m}=Array,b=v("undefined");function y(e){return null!==e&&!b(e)&&null!==e.constructor&&!b(e.constructor)&&S(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let x=g("ArrayBuffer"),w=v("string"),S=v("function"),E=v("number"),k=e=>null!==e&&"object"==typeof e,C=e=>{if("object"!==p(e))return!1;let t=d(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(h in e)&&!(f in e)},O=g("Date"),I=g("File"),_=g("Blob"),T=g("FileList"),P=g("URLSearchParams"),[R,A,N,M]=["ReadableStream","Request","Response","Headers"].map(g);function L(e,t,{allOwnKeys:n=!1}={}){let r,i;if(null!=e)if("object"!=typeof e&&(e=[e]),m(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{let i;if(y(e))return;let o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;for(r=0;r<a;r++)i=o[r],t.call(null,e[i],i,e)}}function V(e,t){let n;if(y(e))return null;t=t.toLowerCase();let r=Object.keys(e),i=r.length;for(;i-- >0;)if(t===(n=r[i]).toLowerCase())return n;return null}let D="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,F=e=>!b(e)&&e!==D,j=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&d(Uint8Array)),z=g("HTMLFormElement"),B=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),U=g("RegExp"),W=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};L(n,(n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)}),Object.defineProperties(e,r)},H=g("AsyncFunction"),q=(i="function"==typeof setImmediate,o=S(D.postMessage),i?setImmediate:o?((e,t)=>(D.addEventListener("message",({source:n,data:r})=>{n===D&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),D.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e)),$="undefined"!=typeof queueMicrotask?queueMicrotask.bind(D):void 0!==u&&u.nextTick||q,G={isArray:m,isArrayBuffer:x,isBuffer:y,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||S(e.append)&&("formdata"===(t=p(e))||"object"===t&&S(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&x(e.buffer)},isString:w,isNumber:E,isBoolean:e=>!0===e||!1===e,isObject:k,isPlainObject:C,isEmptyObject:e=>{if(!k(e)||y(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:R,isRequest:A,isResponse:N,isHeaders:M,isUndefined:b,isDate:O,isFile:I,isBlob:_,isRegExp:U,isFunction:S,isStream:e=>k(e)&&S(e.pipe),isURLSearchParams:P,isTypedArray:j,isFileList:T,forEach:L,merge:function e(){let{caseless:t}=F(this)&&this||{},n={},r=(r,i)=>{let o=t&&V(n,i)||i;C(n[o])&&C(r)?n[o]=e(n[o],r):C(r)?n[o]=e({},r):m(r)?n[o]=r.slice():n[o]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&L(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(L(t,(t,r)=>{n&&S(t)?e[r]=l(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,a,s={};if(t=t||{},null==e)return t;do{for(o=(i=Object.getOwnPropertyNames(e)).length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==n&&d(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:p,kindOfTest:g,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return -1!==r&&r===n},toArray:e=>{if(!e)return null;if(m(e))return e;let t=e.length;if(!E(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{let n,r=(e&&e[f]).call(e);for(;(n=r.next())&&!n.done;){let r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let n,r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:z,hasOwnProperty:B,hasOwnProp:B,reduceDescriptors:W,freezeMethods:e=>{W(e,(t,n)=>{if(S(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;if(S(e[n])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(e,t)=>{let n={};return(m(e)?e:String(e).split(t)).forEach(e=>{n[e]=!0}),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:V,global:D,isContextDefined:F,isSpecCompliantForm:function(e){return!!(e&&S(e.append)&&"FormData"===e[h]&&e[f])},toJSONObject:e=>{let t=Array(10),n=(e,r)=>{if(k(e)){if(t.indexOf(e)>=0)return;if(y(e))return e;if(!("toJSON"in e)){t[r]=e;let i=m(e)?[]:{};return L(e,(e,t)=>{let o=n(e,r+1);b(o)||(i[t]=o)}),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:H,isThenable:e=>e&&(k(e)||S(e))&&S(e.then)&&S(e.catch),setImmediate:q,asap:$,isIterable:e=>null!=e&&S(e[f])};function K(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}G.inherits(K,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:G.toJSONObject(this.config),code:this.code,status:this.status}}});let Y=K.prototype,X={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{X[e]={value:e}}),Object.defineProperties(K,X),Object.defineProperty(Y,"isAxiosError",{value:!0}),K.from=(e,t,n,r,i,o)=>{let a=Object.create(Y);return G.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),K.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};var Q=n(67031).Buffer;function J(e){return G.isPlainObject(e)||G.isArray(e)}function Z(e){return G.endsWith(e,"[]")?e.slice(0,-2):e}function ee(e,t,n){return e?e.concat(t).map(function(e,t){return e=Z(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}let et=G.toFlatObject(G,{},null,function(e){return/^is[A-Z]/.test(e)}),en=function(e,t,n){if(!G.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let r=(n=G.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!G.isUndefined(t[e])})).metaTokens,i=n.visitor||u,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&G.isSpecCompliantForm(t);if(!G.isFunction(i))throw TypeError("visitor must be a function");function l(e){if(null===e)return"";if(G.isDate(e))return e.toISOString();if(G.isBoolean(e))return e.toString();if(!s&&G.isBlob(e))throw new K("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(e)||G.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Q.from(e):e}function u(e,n,i){let s=e;if(e&&!i&&"object"==typeof e)if(G.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else{var u;if(G.isArray(e)&&(u=e,G.isArray(u)&&!u.some(J))||(G.isFileList(e)||G.endsWith(n,"[]"))&&(s=G.toArray(e)))return n=Z(n),s.forEach(function(e,r){G.isUndefined(e)||null===e||t.append(!0===a?ee([n],r,o):null===a?n:n+"[]",l(e))}),!1}return!!J(e)||(t.append(ee(i,n,o),l(e)),!1)}let c=[],d=Object.assign(et,{defaultVisitor:u,convertValue:l,isVisitable:J});if(!G.isObject(e))throw TypeError("data must be an object");return!function e(n,r){if(!G.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),G.forEach(n,function(n,o){!0===(!(G.isUndefined(n)||null===n)&&i.call(t,n,G.isString(o)?o.trim():o,r,d))&&e(n,r?r.concat(o):[o])}),c.pop()}}(e),t};function er(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function ei(e,t){this._pairs=[],e&&en(e,this,t)}let eo=ei.prototype;function ea(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function es(e,t,n){let r;if(!t)return e;let i=n&&n.encode||ea;G.isFunction(n)&&(n={serialize:n});let o=n&&n.serialize;if(r=o?o(t,n):G.isURLSearchParams(t)?t.toString():new ei(t,n).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}eo.append=function(e,t){this._pairs.push([e,t])},eo.toString=function(e){let t=e?function(t){return e.call(this,t,er)}:er;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class el{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){G.forEach(this.handlers,function(t){null!==t&&e(t)})}}let eu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ec="undefined"!=typeof URLSearchParams?URLSearchParams:ei,ed="undefined"!=typeof FormData?FormData:null,ef="undefined"!=typeof Blob?Blob:null,eh="undefined"!=typeof window&&"undefined"!=typeof document,ep="object"==typeof navigator&&navigator||void 0,eg=eh&&(!ep||0>["ReactNative","NativeScript","NS"].indexOf(ep.product)),ev="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,em=eh&&window.location.href||"http://localhost",eb={...s,isBrowser:!0,classes:{URLSearchParams:ec,FormData:ed,Blob:ef},protocols:["http","https","file","blob","url","data"]},ey=function(e){if(G.isFormData(e)&&G.isFunction(e.entries)){let t={};return G.forEachEntry(e,(e,n)=>{!function e(t,n,r,i){let o=t[i++];if("__proto__"===o)return!0;let a=Number.isFinite(+o),s=i>=t.length;return(o=!o&&G.isArray(r)?r.length:o,s)?G.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n:(r[o]&&G.isObject(r[o])||(r[o]=[]),e(t,n,r[o],i)&&G.isArray(r[o])&&(r[o]=function(e){let t,n,r={},i=Object.keys(e),o=i.length;for(t=0;t<o;t++)r[n=i[t]]=e[n];return r}(r[o]))),!a}(G.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0]),n,t,0)}),t}return null},ex={transitional:eu,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let n,r=t.getContentType()||"",i=r.indexOf("application/json")>-1,o=G.isObject(e);if(o&&G.isHTMLForm(e)&&(e=new FormData(e)),G.isFormData(e))return i?JSON.stringify(ey(e)):e;if(G.isArrayBuffer(e)||G.isBuffer(e)||G.isStream(e)||G.isFile(e)||G.isBlob(e)||G.isReadableStream(e))return e;if(G.isArrayBufferView(e))return e.buffer;if(G.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1){var a,s;return(a=e,s=this.formSerializer,en(a,new eb.classes.URLSearchParams,{visitor:function(e,t,n,r){return eb.isNode&&G.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...s})).toString()}if((n=G.isFileList(e))||r.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return en(n?{"files[]":e}:e,t&&new t,this.formSerializer)}}if(o||i){t.setContentType("application/json",!1);var l=e;if(G.isString(l))try{return(0,JSON.parse)(l),G.trim(l)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(l)}return e}],transformResponse:[function(e){let t=this.transitional||ex.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(G.isResponse(e)||G.isReadableStream(e))return e;if(e&&G.isString(e)&&(n&&!this.responseType||r)){let n=t&&t.silentJSONParsing;try{return JSON.parse(e)}catch(e){if(!n&&r){if("SyntaxError"===e.name)throw K.from(e,K.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:eb.classes.FormData,Blob:eb.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};G.forEach(["delete","get","head","post","put","patch"],e=>{ex.headers[e]={}});let ew=G.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),eS=Symbol("internals");function eE(e){return e&&String(e).trim().toLowerCase()}function ek(e){return!1===e||null==e?e:G.isArray(e)?e.map(ek):String(e)}function eC(e,t,n,r,i){if(G.isFunction(r))return r.call(this,t,n);if(i&&(t=n),G.isString(t)){if(G.isString(r))return -1!==t.indexOf(r);if(G.isRegExp(r))return r.test(t)}}class eO{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=eE(t);if(!i)throw Error("header name must be a non-empty string");let o=G.findKey(r,i);o&&void 0!==r[o]&&!0!==n&&(void 0!==n||!1===r[o])||(r[o||t]=ek(e))}let o=(e,t)=>G.forEach(e,(e,n)=>i(e,n,t));if(G.isPlainObject(e)||e instanceof this.constructor)o(e,t);else{let r;if(G.isString(e)&&(e=e.trim())&&(r=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim())))o((e=>{let t,n,r,i={};return e&&e.split("\n").forEach(function(e){r=e.indexOf(":"),t=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim(),!t||i[t]&&ew[t]||("set-cookie"===t?i[t]?i[t].push(n):i[t]=[n]:i[t]=i[t]?i[t]+", "+n:n)}),i})(e),t);else if(G.isObject(e)&&G.isIterable(e)){let n={},r,i;for(let t of e){if(!G.isArray(t))throw TypeError("Object iterator must return a key-value pair");n[i=t[0]]=(r=n[i])?G.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}o(n,t)}else null!=e&&i(t,e,n)}return this}get(e,t){if(e=eE(e)){let n=G.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(!0===t){let t,n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=r.exec(e);)n[t[1]]=t[2];return n}if(G.isFunction(t))return t.call(this,e,n);if(G.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=eE(e)){let n=G.findKey(this,e);return!!(n&&void 0!==this[n]&&(!t||eC(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=eE(e)){let i=G.findKey(n,e);i&&(!t||eC(n,n[i],i,t))&&(delete n[i],r=!0)}}return G.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||eC(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return G.forEach(this,(r,i)=>{let o=G.findKey(n,i);if(o){t[o]=ek(r),delete t[i];return}let a=e?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n):String(i).trim();a!==i&&delete t[i],t[a]=ek(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return G.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&G.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[eS]=this[eS]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=eE(e);if(!t[r]){let i=G.toCamelCase(" "+e);["get","set","has"].forEach(t=>{Object.defineProperty(n,t+i,{value:function(n,r,i){return this[t].call(this,e,n,r,i)},configurable:!0})}),t[r]=!0}}return G.isArray(e)?e.forEach(r):r(e),this}}function eI(e,t){let n=this||ex,r=t||n,i=eO.from(r.headers),o=r.data;return G.forEach(e,function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function e_(e){return!!(e&&e.__CANCEL__)}function eT(e,t,n){K.call(this,null==e?"canceled":e,K.ERR_CANCELED,t,n),this.name="CanceledError"}function eP(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new K("Request failed with status code "+n.status,[K.ERR_BAD_REQUEST,K.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}eO.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),G.reduceDescriptors(eO.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),G.freezeMethods(eO),G.inherits(eT,K,{__CANCEL__:!0});let eR=function(e,t){let n,r=Array(e=e||10),i=Array(e),o=0,a=0;return t=void 0!==t?t:1e3,function(s){let l=Date.now(),u=i[a];n||(n=l),r[o]=s,i[o]=l;let c=a,d=0;for(;c!==o;)d+=r[c++],c%=e;if((o=(o+1)%e)===a&&(a=(a+1)%e),l-n<t)return;let f=u&&l-u;return f?Math.round(1e3*d/f):void 0}},eA=function(e,t){let n,r,i=0,o=1e3/t,a=(t,o=Date.now())=>{i=o,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-i;s>=o?a(e,t):(n=e,r||(r=setTimeout(()=>{r=null,a(n)},o-s)))},()=>n&&a(n)]},eN=(e,t,n=3)=>{let r=0,i=eR(50,250);return eA(n=>{let o=n.loaded,a=n.lengthComputable?n.total:void 0,s=o-r,l=i(s);r=o,e({loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&o<=a?(a-o)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},eM=(e,t)=>{let n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},eL=e=>(...t)=>G.asap(()=>e(...t)),eV=eb.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,eb.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(eb.origin),eb.navigator&&/(msie|trident)/i.test(eb.navigator.userAgent)):()=>!0,eD=eb.hasStandardBrowserEnv?{write(e,t,n,r,i,o){let a=[e+"="+encodeURIComponent(t)];G.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),G.isString(r)&&a.push("path="+r),G.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){let t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function eF(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||!1==n)?t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e:t}let ej=e=>e instanceof eO?{...e}:e;function ez(e,t){t=t||{};let n={};function r(e,t,n,r){return G.isPlainObject(e)&&G.isPlainObject(t)?G.merge.call({caseless:r},e,t):G.isPlainObject(t)?G.merge({},t):G.isArray(t)?t.slice():t}function i(e,t,n,i){return G.isUndefined(t)?G.isUndefined(e)?void 0:r(void 0,e,n,i):r(e,t,n,i)}function o(e,t){if(!G.isUndefined(t))return r(void 0,t)}function a(e,t){return G.isUndefined(t)?G.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void 0}let l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>i(ej(e),ej(t),n,!0)};return G.forEach(Object.keys({...e,...t}),function(r){let o=l[r]||i,a=o(e[r],t[r],r);G.isUndefined(a)&&o!==s||(n[r]=a)}),n}let eB=e=>{let t,n=ez({},e),{data:r,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:l}=n;if(n.headers=s=eO.from(s),n.url=es(eF(n.baseURL,n.url,n.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),G.isFormData(r)){if(eb.hasStandardBrowserEnv||eb.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(t=s.getContentType())){let[e,...n]=t?t.split(";").map(e=>e.trim()).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...n].join("; "))}}if(eb.hasStandardBrowserEnv&&(i&&G.isFunction(i)&&(i=i(n)),i||!1!==i&&eV(n.url))){let e=o&&a&&eD.read(a);e&&s.set(o,e)}return n},eU="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){let r,i,o,a,s,l=eB(e),u=l.data,c=eO.from(l.headers).normalize(),{responseType:d,onUploadProgress:f,onDownloadProgress:h}=l;function p(){a&&a(),s&&s(),l.cancelToken&&l.cancelToken.unsubscribe(r),l.signal&&l.signal.removeEventListener("abort",r)}let g=new XMLHttpRequest;function v(){if(!g)return;let r=eO.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());eP(function(e){t(e),p()},function(e){n(e),p()},{data:d&&"text"!==d&&"json"!==d?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g}),g=null}g.open(l.method.toUpperCase(),l.url,!0),g.timeout=l.timeout,"onloadend"in g?g.onloadend=v:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(v)},g.onabort=function(){g&&(n(new K("Request aborted",K.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new K("Network Error",K.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let t=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded",r=l.transitional||eu;l.timeoutErrorMessage&&(t=l.timeoutErrorMessage),n(new K(t,r.clarifyTimeoutError?K.ETIMEDOUT:K.ECONNABORTED,e,g)),g=null},void 0===u&&c.setContentType(null),"setRequestHeader"in g&&G.forEach(c.toJSON(),function(e,t){g.setRequestHeader(t,e)}),G.isUndefined(l.withCredentials)||(g.withCredentials=!!l.withCredentials),d&&"json"!==d&&(g.responseType=l.responseType),h&&([o,s]=eN(h,!0),g.addEventListener("progress",o)),f&&g.upload&&([i,a]=eN(f),g.upload.addEventListener("progress",i),g.upload.addEventListener("loadend",a)),(l.cancelToken||l.signal)&&(r=t=>{g&&(n(!t||t.type?new eT(null,e,g):t),g.abort(),g=null)},l.cancelToken&&l.cancelToken.subscribe(r),l.signal&&(l.signal.aborted?r():l.signal.addEventListener("abort",r)));let m=function(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(l.url);if(m&&-1===eb.protocols.indexOf(m))return void n(new K("Unsupported protocol "+m+":",K.ERR_BAD_REQUEST,e));g.send(u||null)})},eW=function*(e,t){let n,r=e.byteLength;if(!t||r<t)return void(yield e);let i=0;for(;i<r;)n=i+t,yield e.slice(i,n),i=n},eH=async function*(e,t){for await(let n of eq(e))yield*eW(n,t)},eq=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},e$=(e,t,n,r)=>{let i,o=eH(e,t),a=0,s=e=>{!i&&(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await o.next();if(t){s(),e.close();return}let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},eG="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,eK=eG&&"function"==typeof ReadableStream,eY=eG&&("function"==typeof TextEncoder?(r=new TextEncoder,e=>r.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer())),eX=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},eQ=eK&&eX(()=>{let e=!1,t=new Request(eb.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),eJ=eK&&eX(()=>G.isReadableStream(new Response("").body)),eZ={stream:eJ&&(e=>e.body)};eG&&(a=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{eZ[e]||(eZ[e]=G.isFunction(a[e])?t=>t[e]():(t,n)=>{throw new K(`Response type '${e}' is not supported`,K.ERR_NOT_SUPPORT,n)})}));let e0=async e=>{if(null==e)return 0;if(G.isBlob(e))return e.size;if(G.isSpecCompliantForm(e)){let t=new Request(eb.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return G.isArrayBufferView(e)||G.isArrayBuffer(e)?e.byteLength:(G.isURLSearchParams(e)&&(e+=""),G.isString(e))?(await eY(e)).byteLength:void 0},e1=async(e,t)=>{let n=G.toFiniteNumber(e.getContentLength());return null==n?e0(t):n},e2={http:null,xhr:eU,fetch:eG&&(async e=>{let t,n,{url:r,method:i,data:o,signal:a,cancelToken:s,timeout:l,onDownloadProgress:u,onUploadProgress:c,responseType:d,headers:f,withCredentials:h="same-origin",fetchOptions:p}=eB(e);d=d?(d+"").toLowerCase():"text";let g=((e,t)=>{let{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController,i=function(e){if(!n){n=!0,a();let t=e instanceof Error?e:this.reason;r.abort(t instanceof K?t:new eT(t instanceof Error?t.message:t))}},o=t&&setTimeout(()=>{o=null,i(new K(`timeout ${t} of ms exceeded`,K.ETIMEDOUT))},t),a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>e.addEventListener("abort",i));let{signal:s}=r;return s.unsubscribe=()=>G.asap(a),s}})([a,s&&s.toAbortSignal()],l),v=g&&g.unsubscribe&&(()=>{g.unsubscribe()});try{if(c&&eQ&&"get"!==i&&"head"!==i&&0!==(n=await e1(f,o))){let e,t=new Request(r,{method:"POST",body:o,duplex:"half"});if(G.isFormData(o)&&(e=t.headers.get("content-type"))&&f.setContentType(e),t.body){let[e,r]=eM(n,eN(eL(c)));o=e$(t.body,65536,e,r)}}G.isString(h)||(h=h?"include":"omit");let a="credentials"in Request.prototype;t=new Request(r,{...p,signal:g,method:i.toUpperCase(),headers:f.normalize().toJSON(),body:o,duplex:"half",credentials:a?h:void 0});let s=await fetch(t,p),l=eJ&&("stream"===d||"response"===d);if(eJ&&(u||l&&v)){let e={};["status","statusText","headers"].forEach(t=>{e[t]=s[t]});let t=G.toFiniteNumber(s.headers.get("content-length")),[n,r]=u&&eM(t,eN(eL(u),!0))||[];s=new Response(e$(s.body,65536,n,()=>{r&&r(),v&&v()}),e)}d=d||"text";let m=await eZ[G.findKey(eZ,d)||"text"](s,e);return!l&&v&&v(),await new Promise((n,r)=>{eP(n,r,{data:m,headers:eO.from(s.headers),status:s.status,statusText:s.statusText,config:e,request:t})})}catch(n){if(v&&v(),n&&"TypeError"===n.name&&/Load failed|fetch/i.test(n.message))throw Object.assign(new K("Network Error",K.ERR_NETWORK,e,t),{cause:n.cause||n});throw K.from(n,n&&n.code,e,t)}})};G.forEach(e2,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let e5=e=>`- ${e}`,e3=e=>G.isFunction(e)||null===e||!1===e,e4={getAdapter:e=>{let t,n,{length:r}=e=G.isArray(e)?e:[e],i={};for(let o=0;o<r;o++){let r;if(n=t=e[o],!e3(t)&&void 0===(n=e2[(r=String(t)).toLowerCase()]))throw new K(`Unknown adapter '${r}'`);if(n)break;i[r||"#"+o]=n}if(!n){let e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new K("There is no suitable adapter to dispatch the request "+(r?e.length>1?"since :\n"+e.map(e5).join("\n"):" "+e5(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n}};function e6(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new eT(null,e)}function e8(e){return e6(e),e.headers=eO.from(e.headers),e.data=eI.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),e4.getAdapter(e.adapter||ex.adapter)(e).then(function(t){return e6(e),t.data=eI.call(e,e.transformResponse,t),t.headers=eO.from(t.headers),t},function(t){return!e_(t)&&(e6(e),t&&t.response&&(t.response.data=eI.call(e,e.transformResponse,t.response),t.response.headers=eO.from(t.response.headers))),Promise.reject(t)})}let e7="1.11.0",e9={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{e9[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});let te={};e9.transitional=function(e,t,n){function r(e,t){return"[Axios v"+e7+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new K(r(i," has been removed"+(t?" in "+t:"")),K.ERR_DEPRECATED);return t&&!te[i]&&(te[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}},e9.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};let tt={assertOptions:function(e,t,n){if("object"!=typeof e)throw new K("options must be an object",K.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-- >0;){let o=r[i],a=t[o];if(a){let t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new K("option "+o+" must be "+n,K.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new K("Unknown option "+o,K.ERR_BAD_OPTION)}},validators:e9},tn=tt.validators;class tr{constructor(e){this.defaults=e||{},this.interceptors={request:new el,response:new el}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){let n,r;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:i,paramsSerializer:o,headers:a}=t=ez(this.defaults,t);void 0!==i&&tt.assertOptions(i,{silentJSONParsing:tn.transitional(tn.boolean),forcedJSONParsing:tn.transitional(tn.boolean),clarifyTimeoutError:tn.transitional(tn.boolean)},!1),null!=o&&(G.isFunction(o)?t.paramsSerializer={serialize:o}:tt.assertOptions(o,{encode:tn.function,serialize:tn.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),tt.assertOptions(t,{baseUrl:tn.spelling("baseURL"),withXsrfToken:tn.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=a&&G.merge(a.common,a[t.method]);a&&G.forEach(["delete","get","head","post","put","patch","common"],e=>{delete a[e]}),t.headers=eO.concat(s,a);let l=[],u=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(u=u&&e.synchronous,l.unshift(e.fulfilled,e.rejected))});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let d=0;if(!u){let e=[e8.bind(this),void 0];for(e.unshift(...l),e.push(...c),r=e.length,n=Promise.resolve(t);d<r;)n=n.then(e[d++],e[d++]);return n}r=l.length;let f=t;for(d=0;d<r;){let e=l[d++],t=l[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{n=e8.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,r=c.length;d<r;)n=n.then(c[d++],c[d++]);return n}getUri(e){return es(eF((e=ez(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}G.forEach(["delete","get","head","options"],function(e){tr.prototype[e]=function(t,n){return this.request(ez(n||{},{method:e,url:t,data:(n||{}).data}))}}),G.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,i){return this.request(ez(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}tr.prototype[e]=t(),tr.prototype[e+"Form"]=t(!0)});class ti{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new eT(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason)return void e(this.reason);this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new ti(function(t){e=t}),cancel:e}}}let to={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(to).forEach(([e,t])=>{to[t]=e});let ta=function e(t){let n=new tr(t),r=l(tr.prototype.request,n);return G.extend(r,tr.prototype,n,{allOwnKeys:!0}),G.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(ez(t,n))},r}(ex);ta.Axios=tr,ta.CanceledError=eT,ta.CancelToken=ti,ta.isCancel=e_,ta.VERSION=e7,ta.toFormData=en,ta.AxiosError=K,ta.Cancel=ta.CanceledError,ta.all=function(e){return Promise.all(e)},ta.spread=function(e){return function(t){return e.apply(null,t)}},ta.isAxiosError=function(e){return G.isObject(e)&&!0===e.isAxiosError},ta.mergeConfig=ez,ta.AxiosHeaders=eO,ta.formToJSON=e=>ey(G.isHTMLForm(e)?new FormData(e):e),ta.getAdapter=e4.getAdapter,ta.HttpStatusCode=to,ta.default=ta;let ts=ta},96223:(e,t,n)=>{"use strict";n.d(t,{AH:()=>c,Y:()=>l,i7:()=>d,mL:()=>u});var r=n(31741),i=n(80905),o=n(42162),a=n(39161),s=n(95329);n(11946),n(42722);var l=function(e,t){var n=arguments;if(null==t||!r.h.call(t,"css"))return i.createElement.apply(void 0,n);var o=n.length,a=Array(o);a[0]=r.E,a[1]=(0,r.c)(e,t);for(var s=2;s<o;s++)a[s]=n[s];return i.createElement.apply(null,a)};!function(e){var t;t||(t=e.JSX||(e.JSX={}))}(l||(l={}));var u=(0,r.w)(function(e,t){var n=e.styles,l=(0,s.J)([n],void 0,i.useContext(r.T)),u=i.useRef();return(0,a.i)(function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,i=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==i&&(r=!0,i.setAttribute("data-emotion",e),n.hydrate([i])),u.current=[n,r],function(){n.flush()}},[t]),(0,a.i)(function(){var e=u.current,n=e[0];if(e[1]){e[1]=!1;return}if(void 0!==l.next&&(0,o.sk)(t,l.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",l,n,!1)},[t,l.name]),null});function c(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,s.J)(t)}function d(){var e=c.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},96699:(e,t,n)=>{"use strict";function r(){let e,t,n=new Promise((n,r)=>{e=n,t=r});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch(()=>{}),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}n.d(t,{T:()=>r})},96724:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},96921:(e,t,n)=>{var r=n(79123);e.exports=function(e,t,n){for(var i=-1,o=e.length;++i<o;){var a=e[i],s=t(a);if(null!=s&&(void 0===l?s==s&&!r(s):n(s,l)))var l=s,u=a}return u}},97105:(e,t,n)=>{var r=n(16137);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},97168:(e,t,n)=>{"use strict";n.d(t,{m:()=>ey});var r=new Map("WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,WebkitUserSelect,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,anchorName,anchorScope,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart,animationTimeline,animationTimingFunction,appearance,aspectRatio,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockSize,border,borderBlock,borderBlockColor,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBlockStyle,borderBlockWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineColor,borderInlineEnd,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderInlineStyle,borderInlineWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,clipRule,color,colorInterpolationFilters,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,cx,cy,d,direction,display,dominantBaseline,emptyCells,fieldSizing,fill,fillOpacity,fillRule,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,floodColor,floodOpacity,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontVariationSettings,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,interpolateSize,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lightingColor,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,marker,markerEnd,markerMid,markerStart,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,positionAnchor,positionArea,positionTry,positionTryFallbacks,positionTryOrder,positionVisibility,printColorAdjust,quotes,r,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,rx,ry,scale,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockEnd,scrollPaddingBlockStart,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,scrollbarColor,scrollbarGutter,scrollbarWidth,shapeImageThreshold,shapeMargin,shapeOutside,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,tabSize,tableLayout,textAlign,textAlignLast,textAnchor,textBox,textBoxEdge,textBoxTrim,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textSpacingTrim,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,textWrapMode,textWrapStyle,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,vectorEffect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,x,y,zIndex,zoom,alignmentBaseline,baselineShift,colorInterpolation,colorRendering,glyphOrientationVertical".split(",").concat("".split(",")).map(e=>[e,!0])),i=/&|@/,o=function(e){let t=Object.create(null);return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>r.has(e)||e.startsWith("--")||i.test(e)),a=n(18008),s=n(60178);function l(e,t){let n={};return(0,s.B)(e,(e,t)=>{e&&(n[t.join(".")]=e.value)},{stop:t}),n}var u=n(68479),c=n(22462);let d=e=>{let t=Object.create(null);return function(...n){let r=n.map(e=>c(e)).join("|");return void 0===t[r]&&(t[r]=e(...n)),t[r]}};var f=n(27197),h=n(36006);function p(e=""){let t=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),n=RegExp("px|em|rem"),r=e.match(RegExp(`${t.source}(${n.source})`));return r?.[1]}function g(e=""){if("number"==typeof e)return`${e}px`;let t=p(e);return t&&"px"!==t?"em"===t||"rem"===t?`${16*parseFloat(e)}px`:void 0:e}function v(e=""){let t=p(e);return t&&"rem"!==t?"em"===t?`${parseFloat(e)}rem`:"px"===t?`${parseFloat(e)/16}rem`:void 0:e}function m(e){let t=parseFloat(g(e)??"")-.04;return v(`${t}px`)}function b({min:e,max:t}){return null==e&&null==t?"":["@media screen",e&&`(min-width: ${e})`,t&&`(max-width: ${t})`].filter(Boolean).join(" and ")}var y=n(12342);let x=e=>({minMax:RegExp(`(!?\\(\\s*min(-device-)?-${e})(.|
9
- )+\\(\\s*max(-device)?-${e}`,"i"),min:RegExp(`\\(\\s*min(-device)?-${e}`,"i"),maxMin:RegExp(`(!?\\(\\s*max(-device)?-${e})(.|
10
- )+\\(\\s*min(-device)?-${e}`,"i"),max:RegExp(`\\(\\s*max(-device)?-${e}`,"i")}),w=x("width"),S=x("height"),E=e=>({isMin:L(e.minMax,e.maxMin,e.min),isMax:L(e.maxMin,e.minMax,e.max)}),{isMin:k,isMax:C}=E(w),{isMin:O,isMax:I}=E(S),_=/print/i,T=/^print$/i,P=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,R=/(\d)/,A=Number.MAX_VALUE,N={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function M(e){let t=P.exec(e)||(k(e)||O(e)?R.exec(e):null);return t?"0"===t[0]?0:parseFloat(t[1])*(N[t[2]]||1):A}function L(e,t,n){return r=>e.test(r)||!t.test(r)&&n.test(r)}let V=d((e,t)=>{let n=function(e,t){let n=_.test(e),r=T.test(e),i=_.test(t),o=T.test(t);return n&&i?!r&&o?1:r&&!o?-1:e.localeCompare(t):n?1:i?-1:null}(e,t);if(null!==n)return n;let r=k(e)||O(e),i=C(e)||I(e),o=k(t)||O(t),a=C(t)||I(t);if(r&&a)return -1;if(i&&o)return 1;let s=M(e),l=M(t);return s===A&&l===A?e.localeCompare(t):s===A?1:l===A?-1:s!==l?s>l?i?-1:1:i?1:-1:e.localeCompare(t)});function D(e){return e.sort(([e],[t])=>V(e,t))}let F=/\s*!(important)?/i;function j(e){var t;let{transform:n,conditions:r,normalize:i}=e,o=(t=e,d(function(...e){return(0,f.X)({},...function(e){let n=function(...e){return e.filter(e=>(0,u.Gv)(e)&&Object.keys((0,a.o)(e)).length>0)}(...e);return 1===n.length?n:n.map(e=>t.normalize(e))}(e))}));return d(function(...e){let t=i(o(...e)),a=Object.create(null);return(0,s.B)(t,(e,t)=>{let i,o,l=(i=e,!!(0,u.Kg)(i)&&F.test(i));if(null==e)return;let[c,...d]=r.sort(t).map(r.resolve);l&&(o=e,e=(0,u.Kg)(o)?o.replace(F,"").trim():o);let h=n(c,e)??Object.create(null);h=(0,s.B)(h,e=>(0,u.Kg)(e)&&l?`${e} !important`:e,{getKey:e=>r.expandAtRule(e)}),function(e,t,n){let r=e;for(let e of t)e&&(r[e]||(r[e]=Object.create(null)),r=r[e]);(0,f.X)(r,n)}(a,d.flat(),h)}),function e(t){let n=[],r=[],i={};for(let[o,a]of Object.entries(t))o.startsWith("@media")?n.push([o,a]):o.startsWith("@container")?r.push([o,a]):(0,u.Gv)(a)?i[o]=e(a):i[o]=a;let o=D(n),a=D(r);return{...i,...Object.fromEntries(o),...Object.fromEntries(a)}}(a)})}var z=n(45008),B=n(63258),U=n(84526);let W=e=>({base:{},variants:{},defaultVariants:{},compoundVariants:[],...e}),H={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},q={reset:0,base:1,tokens:2,recipes:3};var $=n(5976);let G=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,K=function(e,t){return t?"\0"===e?"�":"-"===e&&1===e.length?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},Y=e=>(e+"").replace(G,K),X=(e,t)=>{let n="",r=0,i="char",o="",a="",s=[];for(;r<e.length;){let l=e[r];if("{"===l){let i=e.indexOf("}",r);if(-1===i)break;let o=e.slice(r+1,i);n+=t(o)??o,r=i+1;continue}if("token"===i&&","===l){""===e[r]&&r++,i="fallback",s.push(i);let l=t(o);l?.endsWith(")")&&(n+=l.slice(0,-1)),o="",a="";continue}if("fallback"===i&&", var("===a+l){let t=Q(e.slice(r+1))+r+1,o=e.slice(r+1,t);if(-1===t)break;n+=", var("+o+")",r=t+1,i=s.pop()??i,a="";continue}if("token"===i||"fallback"===i){if(r++,")"===l){i=s.pop()??i??"char",a+=l;let e=o?t(o)??Y(o):o;if(a){if(!(a=a.slice(1).trim()).startsWith("token(")&&a.endsWith(")")&&(a=a.slice(0,-1)),a.includes("token(")){let e=X(a,t);e&&(a=e.slice(0,-1))}else if(a){let e=t(a);e&&(a=e)}}let r=n.at(-1);a?r?.trim()?n+=e.slice(0,-1)+", "+a+")":n+=a:n+=e||")",o="",a="",i="char";continue}"token"===i&&(o+=l),"fallback"===i&&(a+=l);continue}let u=e.indexOf("token(",r);if(-1!==u){let t=u+6;n+=e.slice(r,u),r=t,i="token",s.push(i);continue}n+=l,r++}return n},Q=e=>{let t=0,n=["("];for(;t<e.length;){let r=e[t];if("("===r)n.push(r);else if(")"===r&&(n.pop(),0===n.length))break;t++}return t};function J(e){let t={};return e.forEach((e,n)=>{e instanceof Map?t[n]=Object.fromEntries(e):t[n]=e}),t}let Z=/({([^}]*)})/g,ee=/[{}]/g,et=/\w+\.\w+/,en=e=>{if(!(0,u.Kg)(e))return[];let t=e.match(Z);return t?t.map(e=>e.replace(ee,"")).map(e=>e.trim()):[]};function er(e){return(0,u.Gv)(e)&&e.reference?e.reference:String(e)}let ei=(e,...t)=>t.map(er).join(` ${e} `).replace(/calc/g,""),eo=(...e)=>`calc(${ei("+",...e)})`,ea=(...e)=>`calc(${ei("-",...e)})`,es=(...e)=>`calc(${ei("*",...e)})`,el=(...e)=>`calc(${ei("/",...e)})`,eu=e=>{let t=er(e);return null==t||Number.isNaN(parseFloat(t))?es(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},ec=Object.assign(e=>({add:(...t)=>ec(eo(e,...t)),subtract:(...t)=>ec(ea(e,...t)),multiply:(...t)=>ec(es(e,...t)),divide:(...t)=>ec(el(e,...t)),negate:()=>ec(eu(e)),toString:()=>e.toString()}),{add:eo,subtract:ea,multiply:es,divide:el,negate:eu}),ed=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),ef=[{enforce:"pre",transform(e){let{prefix:t,allTokens:n,formatCssVar:r,formatTokenName:i,registerToken:o}=e;n.filter(({extensions:e})=>"spacing"===e.category).forEach(e=>{let n=e.path.slice(),a=r(n,t);if((0,u.Kg)(e.value)&&"0rem"===e.value)return;let s=structuredClone(e);Object.assign(s.extensions,{negative:!0,prop:`-${e.extensions.prop}`,originalPath:n}),s.value=ec.negate(a.ref);let l=s.path[s.path.length-1];null!=l&&(s.path[s.path.length-1]=`-${l}`),s.path&&(s.name=i(s.path)),o(s)})}},{enforce:"post",transform(e){let{allTokens:t,registerToken:n,formatTokenName:r}=e,i=t.filter(({extensions:e})=>"colors"===e.category),o=new Map,a=new Map;i.forEach(e=>{let{colorPalette:t}=e.extensions;t&&(t.keys.forEach(e=>{o.set(r(e),e)}),t.roots.forEach(n=>{let i=r(n),s=a.get(i)||[];if(s.push(e),a.set(i,s),e.extensions.default&&1===n.length){let e=t.keys[0]?.filter(Boolean);if(!e.length)return;let i=n.concat(e);o.set(r(i),[])}}))}),o.forEach(e=>{let t=["colors","colorPalette",...e].filter(Boolean),i=r(t),o=r(t.slice(1));n({name:i,value:i,originalValue:i,path:t,extensions:{condition:"base",originalPath:t,category:"colors",prop:o,virtual:!0}},"pre")})}},{enforce:"post",transform(e){e.allTokens.filter(e=>ed.has(e.extensions.category)&&!e.extensions.negative).forEach(e=>{Object.assign(e.extensions,{pixelValue:g(e.value)})})}},{enforce:"post",transform(e){e.allTokens=e.allTokens.filter(e=>""!==e.value)}}],eh=[{type:"extensions",enforce:"pre",name:"tokens/css-var",transform(e,t){let{prefix:n,formatCssVar:r}=t,{negative:i,originalPath:o}=e.extensions;return{cssVar:r((i?o:e.path).filter(Boolean),n)}}},{enforce:"post",type:"value",name:"tokens/conditionals",transform(e,t){let{prefix:n,formatCssVar:r}=t,i=en(e.value);return i.length&&i.forEach(t=>{let i=r(t.split("."),n);e.value=e.value.replace(`{${i.ref}}`,i)}),e.value}},{type:"extensions",enforce:"pre",name:"tokens/colors/colorPalette",match:e=>"colors"===e.extensions.category&&!e.extensions.virtual,transform(e,t){let n=e.path.slice();if(n.pop(),n.shift(),0===n.length){let t=[...e.path];t.shift(),n=t}if(0===n.length)return{};let r=n.reduce((e,t,n,r)=>{let i=r.slice(0,n+1);return e.push(i),e},[]),i=n[0],o=t.formatTokenName(n),a=e.path.slice(e.path.indexOf(i)+1).reduce((e,t,n,r)=>(e.push(r.slice(n)),e),[]);return 0===a.length&&a.push([""]),{colorPalette:{value:o,roots:r,keys:a}}}}],ep=e=>(0,u.Gv)(e)&&Object.prototype.hasOwnProperty.call(e,"value");function eg(e){return"DEFAULT"===e[0]?e:e.filter(e=>"DEFAULT"!==e)}function ev(e){return e.filter(e=>"base"!==e)}Array.from(new Set(["aspectRatios","zIndex","opacity","colors","fonts","fontSizes","fontWeights","lineHeights","letterSpacings","sizes","shadows","spacing","radii","cursor","borders","borderWidths","borderStyles","durations","easings","animations","blurs","gradients","breakpoints","assets"]));var em=n(78527);let eb={};function ey(...e){let t=(0,y.SV)(...e),{theme:n={},utilities:r={},globalCss:i={},cssVarsRoot:c=":where(:root, :host)",cssVarsPrefix:p="chakra",preflight:g}=t,x=function(e){let t=e.layers??H,n=Object.values(t).sort((e,t)=>q[e]-q[t]);return{names:n,atRule:`@layer ${n.join(", ")};`,wrap(n,r){if(e.disableLayers)return r;let i=t[n];return{[`@layer ${i}`]:r}}}}(t),w=function(e){let{prefix:t="",tokens:n={},semanticTokens:r={},breakpoints:i={}}=e,o=e=>e.join("."),l=[],c=new Map,f=new Map,h=new Map,p=new Map,g=new Map,v=new Map,m=new Map,b=new Map,y=[];function x(e,t){l.push(e),c.set(e.name,e),t&&b.forEach(n=>{n.enforce===t&&T(n,e)})}let w=i?{breakpoints:(0,s.s)(i,e=>({value:e})),sizes:Object.fromEntries(Object.entries(i).map(([e,t])=>[`breakpoint-${e}`,{value:t}]))}:{breakpoints:{},sizes:{}},S=(0,a.o)({...n,breakpoints:w.breakpoints,sizes:{...n.sizes,...w.sizes}});function E(e){return c.get(e)}let k={},C=d((e,t)=>g.get(e)??t),O=d(e=>k[e]||null),I=d(e=>X(e,e=>{if(!e)return;if(e.includes("/")){let t=((e,t)=>{if(!e||"string"!=typeof e)return{invalid:!0,value:e};let[n,r]=e.split("/");if(!n||!r)return{invalid:!0,value:n};let i=t(n),o=E(`opacity.${r}`)?.value;if(!o&&isNaN(Number(r)))return{invalid:!0,value:n};let a=o?100*Number(o)+"%":`${r}%`,s=i??n;return{invalid:!1,color:s,value:`color-mix(in srgb, ${s} ${a}, transparent)`}})(e,e=>C(e));if(t.invalid)throw Error("Invalid color mix at "+e+": "+t.value);return t.value}let t=C(e);return t||(et.test(e)?Y(e):e)})),_={prefix:t,allTokens:l,tokenMap:c,registerToken:x,getByName:E,formatTokenName:o,formatCssVar:(e,t)=>(0,$.V)(e.join("-"),{prefix:t}),flatMap:g,cssVarMap:h,categoryMap:m,colorPaletteMap:p,getVar:C,getCategoryValues:O,expandReferenceInValue:I};function T(e,t){if(t.extensions.references||(0,u.Tn)(e.match)&&!e.match(t))return;let n=e.transform(t,_);switch(!0){case"extensions"===e.type:Object.assign(t.extensions,n);break;case"value"===e.type:t.value=n;break;default:t[e.type]=n}}function P(e){y.forEach(t=>{t.enforce===e&&t.transform(_)})}function R(e){b.forEach(t=>{t.enforce===e&&l.forEach(e=>{T(t,e)})})}return(0,s.B)(S,(e,t)=>{let n=t.includes("DEFAULT"),r=(t=eg(t))[0],i=o(t),a=(0,u.Kg)(e)?{value:e}:e,s={value:a.value,originalValue:a.value,name:i,path:t,extensions:{condition:"base",originalPath:t,category:r,prop:o(t.slice(1))}};n&&(s.extensions.default=!0),x(s)},{stop:ep}),(0,s.B)(r,(e,t)=>{let n=t.includes("DEFAULT"),r=(t=ev(eg(t)))[0],i=o(t),a=(0,u.Kg)(e.value)?{value:{base:e.value}}:e,s={value:a.value.base||"",originalValue:a.value.base||"",name:i,path:t,extensions:{originalPath:t,category:r,conditions:a.value,condition:"base",prop:o(t.slice(1))}};n&&(s.extensions.default=!0),x(s)},{stop:ep}),!function(...e){e.forEach(e=>{b.set(e.name,e)})}(...eh),!function(...e){y.push(...e)}(...ef),P("pre"),R("pre"),l.forEach(e=>{let t=function(e){if(!e.extensions.conditions)return;let{conditions:t}=e.extensions,n=[];return(0,s.B)(t,(t,r)=>{let i=ev(r);if(!i.length)return;let o=structuredClone(e);o.value=t,o.extensions.condition=i.join(":"),n.push(o)}),n}(e);t&&0!==t.length&&t.forEach(e=>{x(e)})}),l.forEach(e=>{let t;if(t=e.value,!Z.test(t))return;let n=en(e.value).map(e=>E(e)).filter(Boolean);e.extensions.references=n.reduce((e,t)=>(e[t.name]=t,e),{})}),l.forEach(e=>{!function e(t){if(!t.extensions?.references)return t.extensions?.cssVar?.ref??t.value;let n=t.extensions.references??{};return t.value=Object.keys(n).reduce((t,r)=>{let i=n[r];if(i.extensions.conditions)return t;let o=e(i);return t.replace(`{${r}}`,o)},t.value),delete t.extensions.references,t.value}(e)}),P("post"),R("post"),l.forEach(e=>{let{condition:t}=e.extensions;t&&(f.has(t)||f.set(t,new Set),f.get(t).add(e));let{category:n,prop:r}=e.extensions;n&&(m.has(n)||m.set(n,new Map),m.get(n).set(r,e));let{condition:i,negative:a,virtual:s,cssVar:l}=e.extensions;!a&&!s&&i&&l&&(h.has(i)||h.set(i,new Map),h.get(i).set(l.var,e.value)),function(e){let{category:t,prop:n,cssVar:r,negative:i}=e.extensions;if(!t)return;v.has(t)||v.set(t,new Map);let o=i?e.extensions.conditions?e.originalValue:e.value:r.ref;v.get(t).set(n,o),g.set([t,n].join("."),o)}(e);let{colorPalette:u,virtual:c,default:d}=e.extensions;u&&!c&&u.roots.forEach(t=>{let n=o(t);p.has(n)||p.set(n,new Map);let r=E(o(function(e,t){let n=e.findIndex((n,r)=>t.every((t,n)=>e[r+n]===t));return -1===n||(e.splice(n,t.length),e.splice(n,0,"colorPalette")),e}([...e.path],[...t])));if(!r||!r.extensions.cssVar)return;let{var:i}=r.extensions.cssVar;if(p.get(n).set(i,e.extensions.cssVar.ref),d&&1===t.length){let n=E(o(["colors","colorPalette"]));if(!n)return;let r=E(o(e.path));if(!r)return;let i=u.keys[0]?.filter(Boolean);if(!i.length)return;let a=o(t.concat(i));p.has(a)||p.set(a,new Map),p.get(a).set(n.extensions.cssVar.var,r.extensions.cssVar.ref)}})}),k=J(v),_}({breakpoints:n.breakpoints,tokens:n.tokens,semanticTokens:n.semanticTokens,prefix:p}),S=function(e){let t=Object.fromEntries(Object.entries(e).sort(([,e],[,t])=>parseInt(e,10)<parseInt(t,10)?-1:1).map(([e,t],n,r)=>{let i=null;return n<=r.length-1&&(i=r[n+1]?.[1]),null!=i&&(i=m(i)),[e,{name:e,min:v(t),max:i}]}));function n(e){return b(t[e])}let r=Object.fromEntries(Object.entries(function(){let e=Object.keys(t),r=function(e){let t=[];return e.forEach((n,r)=>{let i=r,o=e[++i];for(;o;)t.push([n,o]),o=e[++i]}),t}(e);return Object.fromEntries(e.flatMap(e=>{let r=t[e],i=[`${e}Down`,b({max:m(r.min)})];return[[e,b({min:r.min})],[`${e}Only`,n(e)],i]}).filter(([,e])=>""!==e).concat(r.map(([e,n])=>{let r=t[e],i=t[n];return[`${e}To${n.charAt(0).toUpperCase()+n.slice(1)}`,b({min:r.min,max:m(i.min)})]})))}()));return{values:Object.values(t),only:n,keys:function(){return["base",...Object.keys(t)]},conditions:r,getCondition:e=>r[e],up:function(e){return b({min:t[e].min})},down:function(e){return b({max:m(t[e].min)})}}}(n.breakpoints??eb),E=(e=>{let t,{breakpoints:n,conditions:r={}}=e,i=Object.assign({},(t=(e,t)=>[`_${e}`,t],Object.fromEntries(Object.entries(r).map(([e,n])=>t(e,n)))),n.conditions);function o(){return Object.keys(i)}function a(e){return o().includes(e)||/^@|&|&$/.test(e)||e.startsWith("_")}return{keys:o,sort:function(e){return e.filter(e=>"base"!==e).sort((e,t)=>{let n=a(e),r=a(t);return n&&!r?1:!n&&r?-1:0})},has:a,resolve:function(e){return Reflect.get(i,e)||e},breakpoints:n.keys(),expandAtRule:function(e){return e.startsWith("@breakpoint")?n.getCondition(e.replace("@breakpoint ","")):e}}})({conditions:t.conditions??eb,breakpoints:S}),k=function(e){let t=Object.fromEntries(Object.entries(e.config).map(([e,t])=>[e,t])),n=e.tokens,r=new Map,i=new Map;function o(e,n){t[e]=n,a(e,n)}let a=(e,t)=>{let n=c(t);n&&(i.set(e,n),l(e,t))},s=new Map,l=(e,t)=>{if(!t)return;let n=c(t,e=>`type:Tokens["${e}"]`);if("object"==typeof n&&n.type)return void s.set(e,new Set([`type:${n.type}`]));if(n){let t=new Set(Object.keys(n));s.set(e,t)}let r=s.get(e)??new Set;t.property&&s.set(e,r.add(`CssProperties["${t.property}"]`))},c=(e,t)=>{let{values:r}=e,i=e=>{let n=t?.(e);return n?{[n]:n}:void 0};return(0,u.Kg)(r)?i?.(r)??n.getCategoryValues(r)??{}:Array.isArray(r)?r.reduce((e,t)=>(e[t]=t,e),{}):(0,u.Tn)(r)?r(t?i:n.getCategoryValues):r},f=d((e,t)=>({[e]:e.startsWith("--")?n.getVar(t,t):t})),h=Object.assign(n.getVar,{raw:e=>n.getByName(e)}),p=d((e,r)=>{let o=m(e);(0,u.Kg)(r)&&!r.includes("_EMO_")&&(r=n.expandReferenceInValue(r));let a=t[o];if(!a)return f(o,r);let s=i.get(o)?.[r];return a.transform?a.transform(s??r,{raw:r,token:h,utils:{colorMix:e=>(0,em.E)(e,h)}}):f(e,s??r)});for(let[e,n]of Object.entries(t)){let{shorthand:t}=n??{};t&&(Array.isArray(t)?t:[t]).forEach(t=>r.set(t,e))}let g=J(n.colorPaletteMap);for(let[e,n]of(o("colorPalette",{values:Object.keys(g),transform:d(e=>g[e])}),Object.entries(t)))n&&a(e,n);for(let[e,n]of Object.entries(t))n&&l(e,n);let v=r.size>0,m=d(e=>r.get(e)??e);return{keys:()=>[...Array.from(r.keys()),...Object.keys(t)],hasShorthand:v,transform:p,shorthands:r,resolveShorthand:m,register:o,getTypes:()=>{let e=new Map;for(let[t,n]of s.entries()){if(0===n.size){e.set(t,["string"]);continue}let r=Array.from(n).map(e=>e.startsWith("CssProperties")?e:e.startsWith("type:")?e.replace("type:",""):JSON.stringify(e));e.set(t,r)}return e},addPropertyType:(e,t)=>{let n=s.get(e)??new Set;s.set(e,new Set([...n,...t]))}}}({config:r,tokens:w}),{textStyles:C,layerStyles:O,animationStyles:I}=n;for(let[e,t]of Object.entries((0,a.o)({textStyle:C,layerStyle:O,animationStyle:I}))){let n=l(t??eb,ex);k.register(e,{values:Object.keys(n),transform:e=>N(n[e])})}k.addPropertyType("animationName",Object.keys(n.keyframes??eb));let _=new Set(["css",...k.keys(),...E.keys()]),T=d(e=>_.has(e)||o(e)),P=e=>Array.isArray(e)?e.reduce((e,t,n)=>{let r=E.breakpoints[n];return null!=t&&(e[r]=t),e},{}):e,R=function(e){let{utility:t,normalize:n}=e,{hasShorthand:r,resolveShorthand:i}=t;return function(e){return(0,s.B)(e,n,{stop:e=>Array.isArray(e),getKey:r?i:void 0})}}({utility:k,normalize:P}),A=function(e){let{conditions:t,isValidProperty:n}=e;return function(e){return(0,s.B)(e,e=>e,{getKey:(e,r)=>(0,u.Gv)(r)?t.has(e)||n(e)?e:(function(e){let t=[],n=0,r="",i=!1;for(let o=0;o<e.length;o++){let a=e[o];if("\\"===a&&!i){i=!0,r+=a;continue}if(i){i=!1,r+=a;continue}"("===a?n++:")"===a&&n--,","===a&&0===n?(t.push(r.trim()),r=""):r+=a}return r&&t.push(r.trim()),t})(e).map(e=>"&"+e).join(", "):e})}}({conditions:E,isValidProperty:T}),N=j({transform:k.transform,conditions:E,normalize:R}),M=function(e){let{css:t,conditions:n,normalize:r,layers:i}=e;return function o(s={}){let{base:l,variants:u,defaultVariants:c,compoundVariants:d}=W(s),p=j({conditions:n,normalize:r,transform:(e,t)=>u[e]?.[t]}),g=(e={})=>{var n,o;let s,u=r({...c,...(0,a.o)(e)}),h={...l};(0,f.X)(h,p(u));let g=(n=d,o=u,s={},n.forEach(e=>{Object.entries(e).every(([e,t])=>"css"===e||(Array.isArray(t)?t:[t]).some(t=>o[e]===t))&&(s=t(s,e.css))}),s);return i.wrap("recipes",t(h,g))},v=Object.keys(u),m=Object.fromEntries(Object.entries(u).map(([e,t])=>[e,Object.keys(t)]));return Object.assign(e=>t(g(e)),{className:s.className,__cva__:!0,variantMap:m,variantKeys:v,raw:g,config:s,splitVariantProps:e=>{let t=(0,B.c)(e,["recipe"]),[n,r]=(0,h.r)(t,v);return v.includes("colorPalette")||(n.colorPalette=e.colorPalette||c.colorPalette),v.includes("orientation")&&(r.orientation=e.orientation),[n,r]},merge(t){return o((function(e){let{css:t}=e;return function(e,n){let r=W(n.config),i=(0,U.s)(e.variantKeys,Object.keys(n.variants)),o=t(e.base,r.base),a=Object.fromEntries(i.map(n=>[n,t(e.config.variants[n],r.variants[n])])),s=(0,f.X)(e.config.defaultVariants,r.defaultVariants),l=[...e.compoundVariants,...r.compoundVariants];return{className:(0,z.cx)(e.className,n.className),base:o,variants:a,defaultVariants:s,compoundVariants:l}}})(e)(this,t))}})}}({css:N,conditions:E,normalize:R,layers:x}),L=function(e){let{cva:t}=e;return function(e={}){let n=Object.entries(((e={})=>{let t=(e.slots??[]).map(t=>{var n;let r,i;return[t,(n=t,{base:e.base?.[n]??{},variants:{},defaultVariants:e.defaultVariants??{},compoundVariants:e.compoundVariants?(r=e.compoundVariants,i=n,r.filter(e=>e.css[i]).map(e=>({...e,css:e.css[i]}))):[]})]});for(let[n,r]of Object.entries(e.variants??{}))for(let[e,i]of Object.entries(r))t.forEach(([t,r])=>{var o;(o=r.variants)[n]??(o[n]={}),r.variants[n][e]=i[t]??{}});return Object.fromEntries(t)})(e)).map(([e,n])=>[e,t(n)]),r=e.variants??{},i=Object.keys(r),o=Object.fromEntries(Object.entries(r).map(([e,t])=>[e,Object.keys(t)])),a={};return e.className&&(a=Object.fromEntries(e.slots.map(t=>[t,`${e.className}__${t}`]))),Object.assign(function(e){return Object.fromEntries(n.map(([t,n])=>[t,n(e)]))},{variantMap:o,variantKeys:i,splitVariantProps:function(t){let n=(0,B.c)(t,["recipe"]),[r,o]=(0,h.r)(n,i);return i.includes("colorPalette")||(r.colorPalette=t.colorPalette||e.defaultVariants?.colorPalette),i.includes("orientation")&&(o.orientation=t.orientation),[r,o]},classNameMap:a})}}({cva:M});function V(){let e={};for(let[t,n]of w.cssVarMap.entries()){let r=Object.fromEntries(n);if(0===Object.keys(r).length)continue;let i="base"===t?c:E.resolve(t),o=i.startsWith("@"),a=N(A({[i]:o?{[c]:r}:r}));(0,f.X)(e,a)}return x.wrap("tokens",e)}function D(){let e=Object.assign({},Object.fromEntries(Object.entries(n.keyframes??eb).map(([e,t])=>[`@keyframes ${e}`,t])),N(A(i)));return x.wrap("base",e)}function F(){let e=function(e){let{preflight:t}=e;if(!t)return{};let{scope:n="",level:r="parent"}=(0,u.Gv)(t)?t:{},i="";n&&"parent"===r?i=`${n} `:n&&"element"===r&&(i=`&${n}`);let o={"*":{margin:"0px",padding:"0px",font:"inherit",wordWrap:"break-word",WebkitTapHighlightColor:"transparent"},"*, *::before, *::after, *::backdrop":{boxSizing:"border-box",borderWidth:"0px",borderStyle:"solid",borderColor:"var(--global-color-border, currentColor)"},hr:{height:"0px",color:"inherit",borderTopWidth:"1px"},body:{minHeight:"100dvh",position:"relative"},img:{borderStyle:"none"},"img, svg, video, canvas, audio, iframe, embed, object":{display:"block",verticalAlign:"middle"},iframe:{border:"none"},"img, video":{maxWidth:"100%",height:"auto"},"p, h1, h2, h3, h4, h5, h6":{overflowWrap:"break-word"},"ol, ul":{listStyle:"none"},"code, kbd, pre, samp":{fontSize:"1em"},"button, [type='button'], [type='reset'], [type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},"button, input, optgroup, select, textarea":{color:"inherit"},"button, select":{textTransform:"none"},table:{textIndent:"0px",borderColor:"inherit",borderCollapse:"collapse"},"*::placeholder":{opacity:"unset",color:"#9ca3af",userSelect:"none"},textarea:{resize:"vertical"},summary:{display:"list-item"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},dialog:{padding:"0px"},a:{color:"inherit",textDecoration:"inherit"},"abbr:where([title])":{textDecoration:"underline dotted"},"b, strong":{fontWeight:"bolder"},"code, kbd, samp, pre":{fontSize:"1em","--font-mono-fallback":"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New'",fontFamily:"var(--global-font-mono, var(--font-mono-fallback))"},'input[type="text"], input[type="email"], input[type="search"], input[type="password"]':{WebkitAppearance:"none",MozAppearance:"none"},"input[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration, ::-webkit-search-cancel-button":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},'input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button':{height:"auto"},"input[type='number']":{MozAppearance:"textfield"},":-moz-ui-invalid":{boxShadow:"none"},":-moz-focusring":{outline:"auto"},"[hidden]:where(:not([hidden='until-found']))":{display:"none !important"}},a={[n||"html"]:{lineHeight:1.5,"--font-fallback":"ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",WebkitTextSizeAdjust:"100%",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",textRendering:"optimizeLegibility",touchAction:"manipulation",MozTabSize:"4",tabSize:"4",fontFamily:"var(--global-font-body, var(--font-fallback))"}};return"element"===r?Object.assign(a,Object.entries(o).reduce((e,[t,n])=>(e[t]={[i]:n},e),{})):i?a[i]=o:Object.assign(a,o),a}({preflight:g});return x.wrap("reset",e)}let G=function(e){let t=new Map;return e.allTokens.forEach(e=>{let{cssVar:n,virtual:r,conditions:i}=e.extensions,o=i||r?n.ref:e.value;t.set(e.name,{value:o,variable:n.ref})}),t}(w),K=(e,t)=>G.get(e)?.value||t;function Q(e){return Object.hasOwnProperty.call(n.recipes??eb,e)}function ee(e){return Object.hasOwnProperty.call(n.slotRecipes??eb,e)}K.var=(e,t)=>G.get(e)?.variable||t;let er=[F(),D(),V()],ei={layerStyles:ew(n.layerStyles??eb),textStyles:ew(n.textStyles??eb),animationStyles:ew(n.animationStyles??eb),tokens:eS(w,Object.keys(n.tokens??eb),(e,t)=>!e.extensions.conditions&&!t.includes("colorPalette")),semanticTokens:eS(w,Object.keys(n.semanticTokens??eb),e=>!!e.extensions.conditions),keyframes:eE(n.keyframes??eb),breakpoints:eE(n.breakpoints??eb)};return{$$chakra:!0,_config:t,_global:er,breakpoints:S,tokens:w,conditions:E,utility:k,token:K,properties:_,layers:x,isValidProperty:T,splitCssProps:function(e){return(0,h.r)(e,T)},normalizeValue:P,getTokenCss:V,getGlobalCss:D,getPreflightCss:F,css:N,cva:M,sva:L,getRecipe:function(e,t){return n.recipes?.[e]??t},getSlotRecipe:function(e,t){return n.slotRecipes?.[e]??t},hasRecipe:function(e){return Q(e)||ee(e)},isRecipe:Q,isSlotRecipe:ee,query:ei}}let ex=e=>(0,u.Gv)(e)&&"value"in e,ew=e=>({list:()=>Object.keys(l(e,ex)),search(e){return this.list().filter(t=>t.includes(e))}}),eS=(e,t,n)=>({categoryKeys:t,list:t=>Array.from(e.categoryMap.get(t)?.entries()??[]).reduce((e,[t,r])=>(n(r,t)&&e.push(t),e),[]),search(e,t){return this.list(e).filter(e=>e.includes(t))}}),eE=e=>({list:()=>Object.keys(e),search(e){return this.list().filter(t=>t.includes(e))}})},97184:(e,t,n)=>{var r=n(90009);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},97276:(e,t,n)=>{"use strict";n.d(t,{x:()=>d});var r=n(6280),i=n(20752),o=n(82136),a=(0,i.Op)({props:({props:e})=>({...e,present:!!e.present}),initialState:({prop:e})=>e("present")?"mounted":"unmounted",refs:()=>({node:null,styles:null}),context:({bindable:e})=>({unmountAnimationName:e(()=>({defaultValue:null})),prevAnimationName:e(()=>({defaultValue:null})),present:e(()=>({defaultValue:!1})),initial:e(()=>({sync:!0,defaultValue:!1}))}),exit:["clearInitial","cleanupNode"],watch({track:e,action:t,prop:n}){e([()=>n("present")],()=>{t(["setInitial","syncPresence"])})},on:{"NODE.SET":{actions:["setNode","setStyles"]}},states:{mounted:{on:{UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]},"UNMOUNT.SUSPEND":{target:"unmountSuspended"}}},unmountSuspended:{effects:["trackAnimationEvents"],on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]},UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]}}},unmounted:{on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]}}}},implementations:{actions:{setInitial:({context:e})=>{e.get("initial")||queueMicrotask(()=>{e.set("initial",!0)})},clearInitial:({context:e})=>{e.set("initial",!1)},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},invokeOnExitComplete:({prop:e})=>{e("onExitComplete")?.()},setNode:({refs:e,event:t})=>{e.set("node",t.node)},setStyles:({refs:e,event:t})=>{e.set("styles",(0,r.L9)(t.node))},syncPresence:({context:e,refs:t,send:n,prop:i})=>{let o=i("present");if(o)return n({type:"MOUNT",src:"presence.changed"});let a=t.get("node");if(!o&&a?.ownerDocument.visibilityState==="hidden")return n({type:"UNMOUNT",src:"visibilitychange"});(0,r.er)(()=>{let r=s(t.get("styles"));e.set("unmountAnimationName",r),"none"===r||r===e.get("prevAnimationName")||t.get("styles")?.display==="none"||t.get("styles")?.animationDuration==="0s"?n({type:"UNMOUNT",src:"presence.changed"}):n({type:"UNMOUNT.SUSPEND"})})},setPrevAnimationName:({context:e,refs:t})=>{(0,r.er)(()=>{e.set("prevAnimationName",s(t.get("styles")))})},clearPrevAnimationName:({context:e})=>{e.set("prevAnimationName",null)}},effects:{trackAnimationEvents:({context:e,refs:t,send:n})=>{let i=t.get("node");if(!i)return;let o=n=>{(n.composedPath?.()?.[0]??n.target)===i&&e.set("prevAnimationName",s(t.get("styles")))},a=o=>{let a=s(t.get("styles"));(0,r.wt)(o)===i&&a===e.get("unmountAnimationName")&&n({type:"UNMOUNT",src:"animationend"})};i.addEventListener("animationstart",o),i.addEventListener("animationcancel",a),i.addEventListener("animationend",a);let l=(0,r.eC)(i,{animationFillMode:"forwards"});return()=>{i.removeEventListener("animationstart",o),i.removeEventListener("animationcancel",a),i.removeEventListener("animationend",a),(0,r.dY)(()=>l())}}}}});function s(e){return e?.animationName||"none"}(0,o.x)()(["onExitComplete","present","immediate"]);var l=n(35556),u=n(80905),c=n(84937);let d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{lazyMount:t,unmountOnExit:n,present:r,skipAnimationOnMount:i=!1,...o}=e,s=(0,u.useRef)(!1),d={...o,present:r,onExitComplete:(0,c._)(e.onExitComplete)},f=function(e,t){let{state:n,send:r,context:i}=e,o=n.matches("mounted","unmountSuspended");return{skip:!i.get("initial"),present:o,setNode(e){e&&r({type:"NODE.SET",node:e})},unmount(){r({type:"UNMOUNT"})}}}((0,l.zl)(a,d),l._B);f.present&&(s.current=!0);let h=!f.present&&!s.current&&t||n&&!f.present&&s.current;return{ref:f.setNode,getPresenceProps:()=>({"data-state":f.skip&&i?void 0:r?"open":"closed",hidden:!f.present}),present:f.present,unmounted:h}}},97348:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},97524:()=>{},97629:(e,t,n)=>{var r=n(96921),i=n(50761),o=n(52889);e.exports=function(e){return e&&e.length?r(e,o,i):void 0}},98059:e=>{e.exports=function(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}},98873:(e,t,n)=>{var r=n(59433),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},98955:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},99122:(e,t,n)=>{"use strict";n.d(t,{A:()=>i,j:()=>o});var r=n(67610);function i(e,t,n){return arguments.length>1?this.each((null==t?function(e){return function(){this.style.removeProperty(e)}}:"function"==typeof t?function(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}:function(e,t,n){return function(){this.style.setProperty(e,t,n)}})(e,t,null==n?"":n)):o(this.node(),e)}function o(e,t){return e.style.getPropertyValue(t)||(0,r.A)(e).getComputedStyle(e,null).getPropertyValue(t)}},99175:(e,t,n)=>{var r=n(15277),i=n(90563);e.exports=function e(t,n,o,a,s){return t===n||(null!=t&&null!=n&&(i(t)||i(n))?r(t,n,o,a,e,s):t!=t&&n!=n)}},99601:(e,t,n)=>{"use strict";var r=n(63780),i=n(621).Graph;function o(e,t,n,i){var o;do o=r.uniqueId(i);while(e.hasNode(o));return n.dummy=t,e.setNode(o,n),o}function a(e){return r.max(r.map(e.nodes(),function(t){var n=e.node(t).rank;if(!r.isUndefined(n))return n}))}e.exports={addDummyNode:o,simplify:function(e){var t=new i().setGraph(e.graph());return r.forEach(e.nodes(),function(n){t.setNode(n,e.node(n))}),r.forEach(e.edges(),function(n){var r=t.edge(n.v,n.w)||{weight:0,minlen:1},i=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),t},asNonCompoundGraph:function(e){var t=new i({multigraph:e.isMultigraph()}).setGraph(e.graph());return r.forEach(e.nodes(),function(n){e.children(n).length||t.setNode(n,e.node(n))}),r.forEach(e.edges(),function(n){t.setEdge(n,e.edge(n))}),t},successorWeights:function(e){var t=r.map(e.nodes(),function(t){var n={};return r.forEach(e.outEdges(t),function(t){n[t.w]=(n[t.w]||0)+e.edge(t).weight}),n});return r.zipObject(e.nodes(),t)},predecessorWeights:function(e){var t=r.map(e.nodes(),function(t){var n={};return r.forEach(e.inEdges(t),function(t){n[t.v]=(n[t.v]||0)+e.edge(t).weight}),n});return r.zipObject(e.nodes(),t)},intersectRect:function(e,t){var n,r,i=e.x,o=e.y,a=t.x-i,s=t.y-o,l=e.width/2,u=e.height/2;if(!a&&!s)throw Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*l>Math.abs(a)*u?(s<0&&(u=-u),n=u*a/s,r=u):(a<0&&(l=-l),n=l,r=l*s/a),{x:i+n,y:o+r}},buildLayerMatrix:function(e){var t=r.map(r.range(a(e)+1),function(){return[]});return r.forEach(e.nodes(),function(n){var i=e.node(n),o=i.rank;r.isUndefined(o)||(t[o][i.order]=n)}),t},normalizeRanks:function(e){var t=r.min(r.map(e.nodes(),function(t){return e.node(t).rank}));r.forEach(e.nodes(),function(n){var i=e.node(n);r.has(i,"rank")&&(i.rank-=t)})},removeEmptyRanks:function(e){var t=r.min(r.map(e.nodes(),function(t){return e.node(t).rank})),n=[];r.forEach(e.nodes(),function(r){var i=e.node(r).rank-t;n[i]||(n[i]=[]),n[i].push(r)});var i=0,o=e.graph().nodeRankFactor;r.forEach(n,function(t,n){r.isUndefined(t)&&n%o!=0?--i:i&&r.forEach(t,function(t){e.node(t).rank+=i})})},addBorderNode:function(e,t,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),o(e,"border",i,t)},maxRank:a,partition:function(e,t){var n={lhs:[],rhs:[]};return r.forEach(e,function(e){t(e)?n.lhs.push(e):n.rhs.push(e)}),n},time:function(e,t){var n=r.now();try{return t()}finally{console.log(e+" time: "+(r.now()-n)+"ms")}},notime:function(e,t){return t()}}},99634:(e,t,n)=>{var r=n(63780),i=n(99601);function o(e,t,n,r,o,a){var s=o[t][a-1],l=i.addDummyNode(e,"border",{width:0,height:0,rank:a,borderType:t},n);o[t][a]=l,e.setParent(l,r),s&&e.setEdge(s,l,{weight:1})}e.exports=function(e){r.forEach(e.children(),function t(n){var i=e.children(n),a=e.node(n);if(i.length&&r.forEach(i,t),r.has(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var s=a.minRank,l=a.maxRank+1;s<l;++s)o(e,"borderLeft","_bl",n,a,s),o(e,"borderRight","_br",n,a,s)}})}},99648:(e,t,n)=>{"use strict";function r(...e){return t=>{let n=[];for(let r of e)if("function"==typeof r){let e=r(t);"function"==typeof e&&n.push(e)}else r&&(r.current=t);if(n.length)return()=>{for(let e of n)e()}}}n.d(t,{t:()=>r})},99921:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r={value:()=>{}};function i(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw Error("illegal type: "+e);r[e]=[]}return new o(r)}function o(e){this._=e}function a(e,t,n){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=r,e=e.slice(0,i).concat(e.slice(i+1));break}return null!=n&&e.push({name:t,value:n}),e}o.prototype=i.prototype={constructor:o,on:function(e,t){var n,r=this._,i=(e+"").trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw Error("unknown type: "+e);return{type:e,name:t}}),o=-1,s=i.length;if(arguments.length<2){for(;++o<s;)if((n=(e=i[o]).type)&&(n=function(e,t){for(var n,r=0,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}(r[n],e.name)))return n;return}if(null!=t&&"function"!=typeof t)throw Error("invalid callback: "+t);for(;++o<s;)if(n=(e=i[o]).type)r[n]=a(r[n],e.name,t);else if(null==t)for(n in r)r[n]=a(r[n],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new o(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(r=this._[e],o=0,n=r.length;o<n;++o)r[o].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};let s=i}}]);