@lensjs/core 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (197) hide show
  1. package/dist/abstracts/adapter.cjs +8 -0
  2. package/dist/abstracts/adapter.d.cts +19 -0
  3. package/dist/abstracts/adapter.d.ts +19 -0
  4. package/dist/abstracts/adapter.js +8 -0
  5. package/dist/abstracts/store.cjs +7 -0
  6. package/dist/abstracts/store.d.cts +23 -0
  7. package/dist/abstracts/store.d.ts +23 -0
  8. package/dist/abstracts/store.js +7 -0
  9. package/dist/chunk-2HRVJRKV.cjs +10 -0
  10. package/dist/chunk-3R5QARPT.cjs +14 -0
  11. package/{src/watchers/request_watcher.ts → dist/chunk-4HLDYZJA.js} +18 -11
  12. package/dist/chunk-5PYQWLAZ.js +129 -0
  13. package/dist/chunk-75ZPJI57.cjs +9 -0
  14. package/dist/chunk-7EKM5HB5.cjs +1 -0
  15. package/dist/chunk-AUDSBNLF.cjs +122 -0
  16. package/dist/chunk-BFFOUTTE.cjs +32 -0
  17. package/dist/chunk-BL4Z6JFH.cjs +34 -0
  18. package/dist/chunk-CQ2Z4TCR.js +7 -0
  19. package/dist/chunk-EHOWCXZV.cjs +7 -0
  20. package/{src/utils/index.ts → dist/chunk-EJ5BW35V.js} +69 -86
  21. package/dist/chunk-EKG3FVLV.cjs +7 -0
  22. package/dist/chunk-FCMQ3WE3.cjs +129 -0
  23. package/dist/chunk-FKMBNWX4.js +7 -0
  24. package/dist/chunk-FLOVBBFU.js +10 -0
  25. package/dist/chunk-GI7SJDNQ.cjs +38 -0
  26. package/dist/chunk-IPMTMCFP.js +122 -0
  27. package/dist/chunk-JZ2JLQXL.cjs +87 -0
  28. package/dist/chunk-MLKGABMK.js +9 -0
  29. package/dist/chunk-QRZUNYF6.cjs +16 -0
  30. package/dist/chunk-RMZ4UAQ2.js +14 -0
  31. package/dist/chunk-SJXZARBJ.cjs +22 -0
  32. package/dist/chunk-TJDE6AZM.js +87 -0
  33. package/dist/chunk-TPUVRGYT.js +32 -0
  34. package/dist/chunk-UF5HFNMI.js +22 -0
  35. package/dist/chunk-VD5IMUWL.js +0 -0
  36. package/dist/chunk-WU6IZUEV.cjs +159 -0
  37. package/dist/chunk-XXYRWHSQ.js +0 -0
  38. package/dist/chunk-XYXPHWEI.js +16 -0
  39. package/dist/chunk-XZFXXD3A.cjs +1 -0
  40. package/dist/chunk-YC6T4XWI.js +38 -0
  41. package/dist/context/container.cjs +7 -0
  42. package/dist/context/container.d.cts +28 -0
  43. package/dist/context/container.d.ts +28 -0
  44. package/dist/context/container.js +7 -0
  45. package/dist/context/context.cjs +10 -0
  46. package/dist/context/context.d.cts +15 -0
  47. package/dist/context/context.d.ts +15 -0
  48. package/dist/context/context.js +10 -0
  49. package/dist/core/api_controller.cjs +10 -0
  50. package/dist/core/api_controller.d.cts +25 -0
  51. package/dist/core/api_controller.d.ts +25 -0
  52. package/dist/core/api_controller.js +10 -0
  53. package/dist/core/lens.cjs +15 -0
  54. package/dist/core/lens.d.cts +24 -0
  55. package/dist/core/lens.d.ts +24 -0
  56. package/dist/core/lens.js +15 -0
  57. package/dist/core/watcher.cjs +7 -0
  58. package/dist/core/watcher.d.cts +9 -0
  59. package/dist/core/watcher.d.ts +9 -0
  60. package/dist/core/watcher.js +7 -0
  61. package/dist/index-D0Vszdac.d.cts +49 -0
  62. package/dist/index-D0Vszdac.d.ts +49 -0
  63. package/dist/index.cjs +55 -0
  64. package/dist/index.d.cts +16 -0
  65. package/dist/index.d.ts +16 -0
  66. package/dist/index.js +55 -0
  67. package/dist/stores/better_sqlite.cjs +10 -0
  68. package/dist/stores/better_sqlite.d.cts +51 -0
  69. package/dist/stores/better_sqlite.d.ts +51 -0
  70. package/dist/stores/better_sqlite.js +10 -0
  71. package/dist/stores/index.cjs +11 -0
  72. package/dist/stores/index.d.cts +5 -0
  73. package/dist/stores/index.d.ts +5 -0
  74. package/dist/stores/index.js +11 -0
  75. package/dist/types/index.cjs +7 -0
  76. package/dist/types/index.d.cts +91 -0
  77. package/dist/types/index.d.ts +91 -0
  78. package/dist/types/index.js +7 -0
  79. package/dist/ui/assets/QueriesContainer-Bxr99HkT.js +2 -0
  80. package/dist/ui/assets/QueryDetailsContainer-BcbxQyxT.js +48 -0
  81. package/dist/ui/assets/QueryTable-Dx1MyXwe.js +1 -0
  82. package/dist/ui/assets/RequestDetails-B9rQn1tY.js +1 -0
  83. package/dist/ui/assets/RequestDetailsContainer-C0sOvaO2.js +2 -0
  84. package/dist/ui/assets/RequestsContainer-DYNNLt6S.js +2 -0
  85. package/dist/ui/assets/RequetsTable-BN-1fud-.js +1 -0
  86. package/dist/ui/assets/StatusCode-ByIHR7Pe.js +1 -0
  87. package/dist/ui/assets/TabbedDataViewer-CoLeLuBm.js +1 -0
  88. package/dist/ui/assets/Table-CXg4Wfwf.js +6 -0
  89. package/dist/ui/assets/date-BXZFS9Wq.js +1 -0
  90. package/dist/ui/assets/index-BPTSPdZM.css +1 -0
  91. package/dist/ui/assets/index-C3XpMOuU.js +114 -0
  92. package/dist/ui/assets/useLensApi-BlL4RwJa.js +1 -0
  93. package/dist/ui/assets/useLoadMore-BqF649Mm.js +1 -0
  94. package/dist/ui/assets/useQueries-Iwl8o-Xk.js +1 -0
  95. package/dist/ui/favicon.ico +0 -0
  96. package/dist/ui/index.html +14 -0
  97. package/dist/utils/event_emitter.cjs +11 -0
  98. package/dist/utils/event_emitter.d.cts +16 -0
  99. package/dist/utils/event_emitter.d.ts +16 -0
  100. package/dist/utils/event_emitter.js +11 -0
  101. package/dist/utils/index.cjs +31 -0
  102. package/dist/utils/index.d.cts +3 -0
  103. package/dist/utils/index.d.ts +3 -0
  104. package/dist/utils/index.js +31 -0
  105. package/dist/watchers/index.cjs +16 -0
  106. package/dist/watchers/index.d.cts +5 -0
  107. package/dist/watchers/index.d.ts +5 -0
  108. package/dist/watchers/index.js +16 -0
  109. package/dist/watchers/query_watcher.cjs +11 -0
  110. package/dist/watchers/query_watcher.d.cts +10 -0
  111. package/dist/watchers/query_watcher.d.ts +10 -0
  112. package/dist/watchers/query_watcher.js +11 -0
  113. package/dist/watchers/request_watcher.cjs +11 -0
  114. package/dist/watchers/request_watcher.d.cts +10 -0
  115. package/dist/watchers/request_watcher.d.ts +10 -0
  116. package/dist/watchers/request_watcher.js +11 -0
  117. package/package.json +4 -1
  118. package/copy-front-build.cjs +0 -16
  119. package/src/abstracts/adapter.ts +0 -41
  120. package/src/abstracts/store.ts +0 -36
  121. package/src/context/container.ts +0 -67
  122. package/src/context/context.ts +0 -9
  123. package/src/core/api_controller.ts +0 -116
  124. package/src/core/lens.ts +0 -147
  125. package/src/core/watcher.ts +0 -6
  126. package/src/index.ts +0 -11
  127. package/src/stores/better_sqlite.ts +0 -176
  128. package/src/stores/index.ts +0 -1
  129. package/src/types/index.ts +0 -103
  130. package/src/ui/README.md +0 -69
  131. package/src/ui/bun.lock +0 -750
  132. package/src/ui/eslint.config.js +0 -27
  133. package/src/ui/index.html +0 -13
  134. package/src/ui/package-lock.json +0 -2953
  135. package/src/ui/package.json +0 -40
  136. package/src/ui/src/App.tsx +0 -40
  137. package/src/ui/src/components/DetailPanel.tsx +0 -70
  138. package/src/ui/src/components/JsonViewer.tsx +0 -232
  139. package/src/ui/src/components/LoadMore.tsx +0 -25
  140. package/src/ui/src/components/MethodBadge.tsx +0 -19
  141. package/src/ui/src/components/Modal.tsx +0 -48
  142. package/src/ui/src/components/StatusCode.tsx +0 -20
  143. package/src/ui/src/components/Table.tsx +0 -127
  144. package/src/ui/src/components/layout/DeleteButton.tsx +0 -60
  145. package/src/ui/src/components/layout/Footer.tsx +0 -12
  146. package/src/ui/src/components/layout/Header.tsx +0 -40
  147. package/src/ui/src/components/layout/Layout.tsx +0 -49
  148. package/src/ui/src/components/layout/LoadingScreen.tsx +0 -14
  149. package/src/ui/src/components/layout/Sidebar.tsx +0 -67
  150. package/src/ui/src/components/queryFormatters/MongoViewer.tsx +0 -92
  151. package/src/ui/src/components/queryFormatters/QueryViewer.tsx +0 -18
  152. package/src/ui/src/components/queryFormatters/SqlViewer.tsx +0 -105
  153. package/src/ui/src/components/table/NoData.tsx +0 -26
  154. package/src/ui/src/components/tabs/TabbedDataViewer.tsx +0 -77
  155. package/src/ui/src/containers/queries/QueriesContainer.tsx +0 -21
  156. package/src/ui/src/containers/queries/QueryDetailsContainer.tsx +0 -15
  157. package/src/ui/src/containers/requests/RequestDetailsContainer.tsx +0 -16
  158. package/src/ui/src/containers/requests/RequestsContainer.tsx +0 -22
  159. package/src/ui/src/hooks/useLensApi.ts +0 -92
  160. package/src/ui/src/hooks/useLoadMore.ts +0 -48
  161. package/src/ui/src/hooks/useQueries.ts +0 -58
  162. package/src/ui/src/hooks/useRequests.ts +0 -79
  163. package/src/ui/src/hooks/useTanstackApi.ts +0 -126
  164. package/src/ui/src/index.css +0 -78
  165. package/src/ui/src/interfaces/index.ts +0 -10
  166. package/src/ui/src/main.tsx +0 -33
  167. package/src/ui/src/router/Router.ts +0 -11
  168. package/src/ui/src/router/routes/Loading.tsx +0 -5
  169. package/src/ui/src/router/routes/index.tsx +0 -85
  170. package/src/ui/src/types/index.ts +0 -95
  171. package/src/ui/src/utils/api.ts +0 -7
  172. package/src/ui/src/utils/context.ts +0 -24
  173. package/src/ui/src/utils/date.ts +0 -36
  174. package/src/ui/src/views/queries/QueryDetails.tsx +0 -58
  175. package/src/ui/src/views/queries/QueryTable.tsx +0 -21
  176. package/src/ui/src/views/queries/columns.tsx +0 -83
  177. package/src/ui/src/views/requests/BasicRequestDetails.tsx +0 -82
  178. package/src/ui/src/views/requests/RequestDetails.tsx +0 -70
  179. package/src/ui/src/views/requests/RequetsTable.tsx +0 -19
  180. package/src/ui/src/views/requests/columns.tsx +0 -62
  181. package/src/ui/src/vite-env.d.ts +0 -1
  182. package/src/ui/tsconfig.app.json +0 -27
  183. package/src/ui/tsconfig.json +0 -7
  184. package/src/ui/tsconfig.node.json +0 -25
  185. package/src/ui/vite.config.ts +0 -9
  186. package/src/utils/event_emitter.ts +0 -13
  187. package/src/watchers/index.ts +0 -2
  188. package/src/watchers/query_watcher.ts +0 -15
  189. package/tests/core/lens.test.ts +0 -89
  190. package/tests/stores/better_sqlite.test.ts +0 -168
  191. package/tests/utils/index.test.ts +0 -182
  192. package/tests/watchers/query_watcher.test.ts +0 -35
  193. package/tests/watchers/request_watcher.test.ts +0 -59
  194. package/tsconfig.json +0 -3
  195. package/tsup.config.ts +0 -15
  196. package/vitest.config.ts +0 -9
  197. /package/{src/ui/public/favicon.ico → dist/ui/assets/favicon-D0UnoCWN.ico} +0 -0
@@ -0,0 +1,48 @@
1
+ import{o as zt,r as D,j as N,q as Ht,L as Jt,v as Zt,k as te,m as ee}from"./index-C3XpMOuU.js";import{u as ie}from"./useQueries-Iwl8o-Xk.js";import{D as se,T as ne}from"./TabbedDataViewer-CoLeLuBm.js";import{f as _e}from"./date-BXZFS9Wq.js";import"./useLensApi-BlL4RwJa.js";/**
2
+ * @license lucide-react v0.541.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const ae=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],qt=zt("check",ae);/**
7
+ * @license lucide-react v0.541.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */const re=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],$t=zt("copy",re),ue=["SELECT","FROM","WHERE","JOIN","INNER","LEFT","RIGHT","OUTER","FULL","ON","AND","OR","NOT","IN","EXISTS","BETWEEN","LIKE","IS","NULL","INSERT","INTO","VALUES","UPDATE","SET","DELETE","CREATE","TABLE","ALTER","DROP","INDEX","PRIMARY","KEY","FOREIGN","REFERENCES","CONSTRAINT","UNIQUE","CHECK","DEFAULT","AUTO_INCREMENT","IDENTITY","GROUP","BY","HAVING","ORDER","ASC","DESC","LIMIT","OFFSET","UNION","ALL","DISTINCT","COUNT","SUM","AVG","MIN","MAX","CASE","WHEN","THEN","ELSE","END","IF","IFNULL","COALESCE","CAST","CONVERT","SUBSTRING","LENGTH","UPPER","LOWER","TRIM"],oe=["NOW","CURRENT_TIMESTAMP","CURRENT_DATE","CURRENT_TIME","DATE","TIME","YEAR","MONTH","DAY","HOUR","MINUTE","SECOND"],le=["VARCHAR","CHAR","TEXT","INT","INTEGER","BIGINT","SMALLINT","TINYINT","DECIMAL","NUMERIC","FLOAT","DOUBLE","REAL","BIT","BOOLEAN","BOOL","DATE","TIME","DATETIME","TIMESTAMP","YEAR","BINARY","VARBINARY","BLOB","CLOB","JSON","UUID"];function he(p){return p.split(/(\s+|[(),;]|'[^']*'|"[^"]*"|\b\d+\.?\d*\b|--[^\n]*|\/\*[\s\S]*?\*\/)/).map((s,e)=>{const n=s.trim();return n?s.startsWith("'")&&s.endsWith("'")||s.startsWith('"')&&s.endsWith('"')?N.jsx("span",{className:"text-green-600 dark:text-green-400",children:s},e):/^\d+\.?\d*$/.test(n)?N.jsx("span",{className:"text-orange-600 dark:text-orange-400",children:s},e):s.startsWith("--")||s.startsWith("/*")&&s.endsWith("*/")?N.jsx("span",{className:"text-neutral-500 dark:text-neutral-400",children:s},e):ue.some(_=>_.toLowerCase()===n.toLowerCase())?N.jsx("span",{className:"text-blue-600 dark:text-blue-400 font-semibold",children:s.toUpperCase()},e):oe.some(_=>_.toLowerCase()===n.toLowerCase())?N.jsx("span",{className:"text-purple-600 dark:text-purple-400",children:s.toUpperCase()},e):le.some(_=>_.toLowerCase()===n.toLowerCase())?N.jsx("span",{className:"text-indigo-600 dark:text-indigo-400",children:s.toUpperCase()},e):N.jsx("span",{children:s},e):N.jsx("span",{children:s},e)})}const pe=({sql:p})=>{const[h,s]=D.useState(!1),e=async()=>{try{await navigator.clipboard.writeText(p),s(!0),setTimeout(()=>s(!1),2e3)}catch(_){console.error("Failed to copy: ",_)}},n=D.useMemo(()=>he(p),[p]);return N.jsxs("div",{className:"bg-neutral-50 dark:bg-slate-900 rounded-lg p-4 font-mono text-sm overflow-x-auto relative",children:[N.jsx("button",{onClick:e,className:`absolute top-3 right-3 p-2 rounded-md transition-colors ${h?"bg-green-100 text-green-600 dark:bg-green-900/30 dark:text-green-400":"bg-white text-neutral-500 hover:text-neutral-700 hover:bg-neutral-100 dark:bg-slate-800 dark:text-neutral-400 dark:hover:text-neutral-300 dark:hover:bg-slate-700"}`,title:h?"Copied!":"Copy to clipboard",children:h?N.jsx(qt,{size:16}):N.jsx($t,{size:16})}),N.jsx("pre",{className:"whitespace-pre-wrap pr-12 text-neutral-800 dark:text-neutral-200",children:n})]})};var Q={exports:{}},M={},U={exports:{}},Y={},H={},mt;function ht(){if(mt)return H;mt=1;function p(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}p.prototype.clone_empty=function(){var e=new p(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e},p.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},p.prototype.has_match=function(e){for(var n=this.__items.length-1;n>=0;n--)if(this.__items[n].match(e))return!0;return!1},p.prototype.set_indent=function(e,n){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=n||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},p.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},p.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},p.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,e.__items[0]===" "&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},p.prototype.is_empty=function(){return this.__items.length===0},p.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},p.prototype.push=function(e){this.__items.push(e);var n=e.lastIndexOf(`
12
+ `);n!==-1?this.__character_count=e.length-n:this.__character_count+=e.length},p.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},p.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},p.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},p.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},p.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e};function h(e,n){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),n=n||"",e.indent_level>0&&(n=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=n,this.__base_string_length=n.length}h.prototype.get_indent_size=function(e,n){var _=this.__base_string_length;return n=n||0,e<0&&(_=0),_+=e*this.__indent_size,_+=n,_},h.prototype.get_indent_string=function(e,n){var _=this.__base_string;return n=n||0,e<0&&(e=0,_=""),n+=e*this.__indent_size,this.__ensure_cache(n),_+=this.__cache[n],_},h.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()},h.prototype.__add_column=function(){var e=this.__cache.length,n=0,_="";this.__indent_size&&e>=this.__indent_size&&(n=Math.floor(e/this.__indent_size),e-=n*this.__indent_size,_=new Array(n+1).join(this.__indent_string)),e&&(_+=new Array(e+1).join(" ")),this.__cache.push(_)};function s(e,n){this.__indent_cache=new h(e,n),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new p(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}return s.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},s.prototype.get_line_number=function(){return this.__lines.length},s.prototype.get_indent_string=function(e,n){return this.__indent_cache.get_indent_string(e,n)},s.prototype.get_indent_size=function(e,n){return this.__indent_cache.get_indent_size(e,n)},s.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},s.prototype.add_new_line=function(e){return this.is_empty()||!e&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},s.prototype.get_code=function(e){this.trim(!0);var n=this.current_line.pop();n&&(n[n.length-1]===`
13
+ `&&(n=n.replace(/\n+$/g,"")),this.current_line.push(n)),this._end_with_newline&&this.__add_outputline();var _=this.__lines.join(`
14
+ `);return e!==`
15
+ `&&(_=_.replace(/[\n]/g,e)),_},s.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},s.prototype.set_indent=function(e,n){return e=e||0,n=n||0,this.next_line.set_indent(e,n),this.__lines.length>1?(this.current_line.set_indent(e,n),!0):(this.current_line.set_indent(),!1)},s.prototype.add_raw_token=function(e){for(var n=0;n<e.newlines;n++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},s.prototype.add_token=function(e){this.__add_space_before_token(),this.current_line.push(e),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},s.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},s.prototype.remove_indent=function(e){for(var n=this.__lines.length;e<n;)this.__lines[e]._remove_indent(),e++;this.current_line._remove_wrap_indent()},s.prototype.trim=function(e){for(e=e===void 0?!1:e,this.current_line.trim();e&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},s.prototype.just_added_newline=function(){return this.current_line.is_empty()},s.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},s.prototype.ensure_empty_line_above=function(e,n){for(var _=this.__lines.length-2;_>=0;){var c=this.__lines[_];if(c.is_empty())break;if(c.item(0).indexOf(e)!==0&&c.item(-1)!==n){this.__lines.splice(_+1,0,new p(this)),this.previous_line=this.__lines[this.__lines.length-2];break}_--}},H.Output=s,H}var J={},bt;function Ft(){if(bt)return J;bt=1;function p(h,s,e,n){this.type=h,this.text=s,this.comments_before=null,this.newlines=e||0,this.whitespace_before=n||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}return J.Token=p,J}var Z={},vt;function Xt(){return vt||(vt=1,function(p){var h="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",s="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",e="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",n="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",_="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",c="(?:"+_+"|["+h+e+"])",a="(?:"+_+"|["+s+e+n+"])*";p.identifier=new RegExp(c+a,"g"),p.identifierStart=new RegExp(c),p.identifierMatch=new RegExp("(?:"+_+"|["+s+e+n+"])+"),p.newline=/[\n\r\u2028\u2029]/,p.lineBreak=new RegExp(`\r
16
+ |`+p.newline.source),p.allLineBreaks=new RegExp(p.lineBreak.source,"g")}(Z)),Z}var tt={},B={},yt;function pt(){if(yt)return B;yt=1;function p(e,n){this.raw_options=h(e,n),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}p.prototype._get_array=function(e,n){var _=this.raw_options[e],c=n||[];return typeof _=="object"?_!==null&&typeof _.concat=="function"&&(c=_.concat()):typeof _=="string"&&(c=_.split(/[^a-zA-Z0-9_\/\-]+/)),c},p.prototype._get_boolean=function(e,n){var _=this.raw_options[e],c=_===void 0?!!n:!!_;return c},p.prototype._get_characters=function(e,n){var _=this.raw_options[e],c=n||"";return typeof _=="string"&&(c=_.replace(/\\r/,"\r").replace(/\\n/,`
17
+ `).replace(/\\t/," ")),c},p.prototype._get_number=function(e,n){var _=this.raw_options[e];n=parseInt(n,10),isNaN(n)&&(n=0);var c=parseInt(_,10);return isNaN(c)&&(c=n),c},p.prototype._get_selection=function(e,n,_){var c=this._get_selection_list(e,n,_);if(c.length!==1)throw new Error("Invalid Option Value: The option '"+e+`' can only be one of the following values:
18
+ `+n+`
19
+ You passed in: '`+this.raw_options[e]+"'");return c[0]},p.prototype._get_selection_list=function(e,n,_){if(!n||n.length===0)throw new Error("Selection list cannot be empty.");if(_=_||[n[0]],!this._is_valid_selection(_,n))throw new Error("Invalid Default Value!");var c=this._get_array(e,_);if(!this._is_valid_selection(c,n))throw new Error("Invalid Option Value: The option '"+e+`' can contain only the following values:
20
+ `+n+`
21
+ You passed in: '`+this.raw_options[e]+"'");return c},p.prototype._is_valid_selection=function(e,n){return e.length&&n.length&&!e.some(function(_){return n.indexOf(_)===-1})};function h(e,n){var _={};e=s(e);var c;for(c in e)c!==n&&(_[c]=e[c]);if(n&&e[n])for(c in e[n])_[c]=e[n][c];return _}function s(e){var n={},_;for(_ in e){var c=_.replace(/-/g,"_");n[c]=e[_]}return n}return B.Options=p,B.normalizeOpts=s,B.mergeOpts=h,B}var wt;function Vt(){if(wt)return tt;wt=1;var p=pt().Options,h=["before-newline","after-newline","preserve-newline"];function s(e){p.call(this,e,"js");var n=this.raw_options.brace_style||null;n==="expand-strict"?this.raw_options.brace_style="expand":n==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var _=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var c=0;c<_.length;c++)_[c]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=_[c];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",h),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}return s.prototype=new p,tt.Options=s,tt}var P={},et={},xt;function ft(){if(xt)return et;xt=1;var p=RegExp.prototype.hasOwnProperty("sticky");function h(s){this.__input=s||"",this.__input_length=this.__input.length,this.__position=0}return h.prototype.restart=function(){this.__position=0},h.prototype.back=function(){this.__position>0&&(this.__position-=1)},h.prototype.hasNext=function(){return this.__position<this.__input_length},h.prototype.next=function(){var s=null;return this.hasNext()&&(s=this.__input.charAt(this.__position),this.__position+=1),s},h.prototype.peek=function(s){var e=null;return s=s||0,s+=this.__position,s>=0&&s<this.__input_length&&(e=this.__input.charAt(s)),e},h.prototype.__match=function(s,e){s.lastIndex=e;var n=s.exec(this.__input);return n&&!(p&&s.sticky)&&n.index!==e&&(n=null),n},h.prototype.test=function(s,e){return e=e||0,e+=this.__position,e>=0&&e<this.__input_length?!!this.__match(s,e):!1},h.prototype.testChar=function(s,e){var n=this.peek(e);return s.lastIndex=0,n!==null&&s.test(n)},h.prototype.match=function(s){var e=this.__match(s,this.__position);return e?this.__position+=e[0].length:e=null,e},h.prototype.read=function(s,e,n){var _="",c;return s&&(c=this.match(s),c&&(_+=c[0])),e&&(c||!s)&&(_+=this.readUntil(e,n)),_},h.prototype.readUntil=function(s,e){var n="",_=this.__position;s.lastIndex=this.__position;var c=s.exec(this.__input);return c?(_=c.index,e&&(_+=c[0].length)):_=this.__input_length,n=this.__input.substring(this.__position,_),this.__position=_,n},h.prototype.readUntilAfter=function(s){return this.readUntil(s,!0)},h.prototype.get_regexp=function(s,e){var n=null,_="g";return e&&p&&(_="y"),typeof s=="string"&&s!==""?n=new RegExp(s,_):s&&(n=new RegExp(s.source,_)),n},h.prototype.get_literal_regexp=function(s){return RegExp(s.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},h.prototype.peekUntilAfter=function(s){var e=this.__position,n=this.readUntilAfter(s);return this.__position=e,n},h.prototype.lookBack=function(s){var e=this.__position-1;return e>=s.length&&this.__input.substring(e-s.length,e).toLowerCase()===s},et.InputScanner=h,et}var K={},it={},Et;function fe(){if(Et)return it;Et=1;function p(h){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=h}return p.prototype.restart=function(){this.__position=0},p.prototype.isEmpty=function(){return this.__tokens_length===0},p.prototype.hasNext=function(){return this.__position<this.__tokens_length},p.prototype.next=function(){var h=null;return this.hasNext()&&(h=this.__tokens[this.__position],this.__position+=1),h},p.prototype.peek=function(h){var s=null;return h=h||0,h+=this.__position,h>=0&&h<this.__tokens_length&&(s=this.__tokens[h]),s},p.prototype.add=function(h){this.__parent_token&&(h.parent=this.__parent_token),this.__tokens.push(h),this.__tokens_length+=1},it.TokenStream=p,it}var st={},nt={},Ot;function V(){if(Ot)return nt;Ot=1;function p(h,s){this._input=h,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,s&&(this._starting_pattern=this._input.get_regexp(s._starting_pattern,!0),this._match_pattern=this._input.get_regexp(s._match_pattern,!0),this._until_pattern=this._input.get_regexp(s._until_pattern),this._until_after=s._until_after)}return p.prototype.read=function(){var h=this._input.read(this._starting_pattern);return(!this._starting_pattern||h)&&(h+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),h},p.prototype.read_match=function(){return this._input.match(this._match_pattern)},p.prototype.until_after=function(h){var s=this._create();return s._until_after=!0,s._until_pattern=this._input.get_regexp(h),s._update(),s},p.prototype.until=function(h){var s=this._create();return s._until_after=!1,s._until_pattern=this._input.get_regexp(h),s._update(),s},p.prototype.starting_with=function(h){var s=this._create();return s._starting_pattern=this._input.get_regexp(h,!0),s._update(),s},p.prototype.matching=function(h){var s=this._create();return s._match_pattern=this._input.get_regexp(h,!0),s._update(),s},p.prototype._create=function(){return new p(this._input,this)},p.prototype._update=function(){},nt.Pattern=p,nt}var Tt;function ce(){if(Tt)return st;Tt=1;var p=V().Pattern;function h(s,e){p.call(this,s,e),e?this._line_regexp=this._input.get_regexp(e._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}return h.prototype=new p,h.prototype.__set_whitespace_patterns=function(s,e){s+="\\t ",e+="\\n\\r",this._match_pattern=this._input.get_regexp("["+s+e+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+e+"]")},h.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var s=this._input.read(this._match_pattern);if(s===" ")this.whitespace_before_token=" ";else if(s){var e=this.__split(this._newline_regexp,s);this.newline_count=e.length-1,this.whitespace_before_token=e[this.newline_count]}return s},h.prototype.matching=function(s,e){var n=this._create();return n.__set_whitespace_patterns(s,e),n._update(),n},h.prototype._create=function(){return new h(this._input,this)},h.prototype.__split=function(s,e){s.lastIndex=0;for(var n=0,_=[],c=s.exec(e);c;)_.push(e.substring(n,c.index)),n=c.index+c[0].length,c=s.exec(e);return n<e.length?_.push(e.substring(n,e.length)):_.push(""),_},st.WhitespacePattern=h,st}var Rt;function X(){if(Rt)return K;Rt=1;var p=ft().InputScanner,h=Ft().Token,s=fe().TokenStream,e=ce().WhitespacePattern,n={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},_=function(c,a){this._input=new p(c),this._options=a||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new e(this._input)};return _.prototype.tokenize=function(){this._input.restart(),this.__tokens=new s,this._reset();for(var c,a=new h(n.START,""),u=null,E=[],b=new s;a.type!==n.EOF;){for(c=this._get_next_token(a,u);this._is_comment(c);)b.add(c),c=this._get_next_token(a,u);b.isEmpty()||(c.comments_before=b,b=new s),c.parent=u,this._is_opening(c)?(E.push(u),u=c):u&&this._is_closing(c,u)&&(c.opened=u,u.closed=c,u=E.pop(),c.parent=u),c.previous=a,a.next=c,this.__tokens.add(c),a=c}return this.__tokens},_.prototype._is_first_token=function(){return this.__tokens.isEmpty()},_.prototype._reset=function(){},_.prototype._get_next_token=function(c,a){this._readWhitespace();var u=this._input.read(/.+/g);return u?this._create_token(n.RAW,u):this._create_token(n.EOF,"")},_.prototype._is_comment=function(c){return!1},_.prototype._is_opening=function(c){return!1},_.prototype._is_closing=function(c,a){return!1},_.prototype._create_token=function(c,a){var u=new h(c,a,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return u},_.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},K.Tokenizer=_,K.TOKEN=n,K}var _t={},kt;function ct(){if(kt)return _t;kt=1;function p(h,s){h=typeof h=="string"?h:h.source,s=typeof s=="string"?s:s.source,this.__directives_block_pattern=new RegExp(h+/ beautify( \w+[:]\w+)+ /.source+s,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(h+/\sbeautify\signore:end\s/.source+s,"g")}return p.prototype.get_directives=function(h){if(!h.match(this.__directives_block_pattern))return null;var s={};this.__directive_pattern.lastIndex=0;for(var e=this.__directive_pattern.exec(h);e;)s[e[1]]=e[2],e=this.__directive_pattern.exec(h);return s},p.prototype.readIgnored=function(h){return h.readUntilAfter(this.__directives_end_ignore_pattern)},_t.Directives=p,_t}var at={},Nt;function Gt(){if(Nt)return at;Nt=1;var p=V().Pattern,h={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function s(e,n){p.call(this,e,n),this.__template_pattern=null,this._disabled=Object.assign({},h),this._excluded=Object.assign({},h),n&&(this.__template_pattern=this._input.get_regexp(n.__template_pattern),this._excluded=Object.assign(this._excluded,n._excluded),this._disabled=Object.assign(this._disabled,n._disabled));var _=new p(e);this.__patterns={handlebars_comment:_.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:_.starting_with(/{{{/).until_after(/}}}/),handlebars:_.starting_with(/{{/).until_after(/}}/),php:_.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:_.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:_.starting_with(/{%/).until_after(/%}/),django_value:_.starting_with(/{{/).until_after(/}}/),django_comment:_.starting_with(/{#/).until_after(/#}/),smarty:_.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:_.starting_with(/{\*/).until_after(/\*}/),smarty_literal:_.starting_with(/{literal}/).until_after(/{\/literal}/)}}return s.prototype=new p,s.prototype._create=function(){return new s(this._input,this)},s.prototype._update=function(){this.__set_templated_pattern()},s.prototype.disable=function(e){var n=this._create();return n._disabled[e]=!0,n._update(),n},s.prototype.read_options=function(e){var n=this._create();for(var _ in h)n._disabled[_]=e.templating.indexOf(_)===-1;return n._update(),n},s.prototype.exclude=function(e){var n=this._create();return n._excluded[e]=!0,n._update(),n},s.prototype.read=function(){var e="";this._match_pattern?e=this._input.read(this._starting_pattern):e=this._input.read(this._starting_pattern,this.__template_pattern);for(var n=this._read_template();n;)this._match_pattern?n+=this._input.read(this._match_pattern):n+=this._input.readUntil(this.__template_pattern),e+=n,n=this._read_template();return this._until_after&&(e+=this._input.readUntilAfter(this._until_pattern)),e},s.prototype.__set_templated_pattern=function(){var e=[];this._disabled.php||e.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||e.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(e.push(this.__patterns.django._starting_pattern.source),e.push(this.__patterns.django_value._starting_pattern.source),e.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||e.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&e.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+e.join("|")+")")},s.prototype._read_template=function(){var e="",n=this._input.peek();if(n==="<"){var _=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&_==="?"&&(e=e||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&_==="%"&&(e=e||this.__patterns.erb.read())}else n==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(e=e||this.__patterns.handlebars_comment.read(),e=e||this.__patterns.handlebars_unescaped.read(),e=e||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(e=e||this.__patterns.django_value.read()),this._excluded.django||(e=e||this.__patterns.django_comment.read(),e=e||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(e=e||this.__patterns.smarty_comment.read(),e=e||this.__patterns.smarty_literal.read(),e=e||this.__patterns.smarty.read()));return e},at.TemplatablePattern=s,at}var St;function z(){if(St)return P;St=1;var p=ft().InputScanner,h=X().Tokenizer,s=X().TOKEN,e=ct().Directives,n=Xt(),_=V().Pattern,c=Gt().TemplatablePattern;function a(f,m){return m.indexOf(f)!==-1}var u={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:s.START,RAW:s.RAW,EOF:s.EOF},E=new e(/\/\*/,/\*\//),b=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,v=/[0-9]/,y=/[^\d\.]/,S=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),A=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";A=A.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),A="\\?\\.(?!\\d) "+A,A=A.replace(/ /g,"|");var L=new RegExp(A),r="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),i=r.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),o=new RegExp("^(?:"+i.join("|")+")$"),O,w=function(f,m){h.call(this,f,m),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var l=new _(this._input),x=new c(this._input).read_options(this._options);this.__patterns={template:x,identifier:x.starting_with(n.identifier).matching(n.identifierMatch),number:l.matching(b),punct:l.matching(L),comment:l.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:l.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:l.matching(/<!--/),html_comment_end:l.matching(/-->/),include:l.starting_with(/#include/).until_after(n.lineBreak),shebang:l.starting_with(/#!/).until_after(n.lineBreak),xml:l.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:x.until(/['\\\n\r\u2028\u2029]/),double_quote:x.until(/["\\\n\r\u2028\u2029]/),template_text:x.until(/[`\\$]/),template_expression:x.until(/[`}\\]/)}};w.prototype=new h,w.prototype._is_comment=function(f){return f.type===u.COMMENT||f.type===u.BLOCK_COMMENT||f.type===u.UNKNOWN},w.prototype._is_opening=function(f){return f.type===u.START_BLOCK||f.type===u.START_EXPR},w.prototype._is_closing=function(f,m){return(f.type===u.END_BLOCK||f.type===u.END_EXPR)&&m&&(f.text==="]"&&m.text==="["||f.text===")"&&m.text==="("||f.text==="}"&&m.text==="{")},w.prototype._reset=function(){O=!1},w.prototype._get_next_token=function(f,m){var l=null;this._readWhitespace();var x=this._input.peek();return x===null?this._create_token(u.EOF,""):(l=l||this._read_non_javascript(x),l=l||this._read_string(x),l=l||this._read_pair(x,this._input.peek(1)),l=l||this._read_word(f),l=l||this._read_singles(x),l=l||this._read_comment(x),l=l||this._read_regexp(x,f),l=l||this._read_xml(x,f),l=l||this._read_punctuation(),l=l||this._create_token(u.UNKNOWN,this._input.next()),l)},w.prototype._read_word=function(f){var m;if(m=this.__patterns.identifier.read(),m!=="")return m=m.replace(n.allLineBreaks,`
22
+ `),!(f.type===u.DOT||f.type===u.RESERVED&&(f.text==="set"||f.text==="get"))&&o.test(m)?(m==="in"||m==="of")&&(f.type===u.WORD||f.type===u.STRING)?this._create_token(u.OPERATOR,m):this._create_token(u.RESERVED,m):this._create_token(u.WORD,m);if(m=this.__patterns.number.read(),m!=="")return this._create_token(u.WORD,m)},w.prototype._read_singles=function(f){var m=null;return f==="("||f==="["?m=this._create_token(u.START_EXPR,f):f===")"||f==="]"?m=this._create_token(u.END_EXPR,f):f==="{"?m=this._create_token(u.START_BLOCK,f):f==="}"?m=this._create_token(u.END_BLOCK,f):f===";"?m=this._create_token(u.SEMICOLON,f):f==="."&&y.test(this._input.peek(1))?m=this._create_token(u.DOT,f):f===","&&(m=this._create_token(u.COMMA,f)),m&&this._input.next(),m},w.prototype._read_pair=function(f,m){var l=null;return f==="#"&&m==="{"&&(l=this._create_token(u.START_BLOCK,f+m)),l&&(this._input.next(),this._input.next()),l},w.prototype._read_punctuation=function(){var f=this.__patterns.punct.read();if(f!=="")return f==="="?this._create_token(u.EQUALS,f):f==="?."?this._create_token(u.DOT,f):this._create_token(u.OPERATOR,f)},w.prototype._read_non_javascript=function(f){var m="";if(f==="#"){if(this._is_first_token()&&(m=this.__patterns.shebang.read(),m))return this._create_token(u.UNKNOWN,m.trim()+`
23
+ `);if(m=this.__patterns.include.read(),m)return this._create_token(u.UNKNOWN,m.trim()+`
24
+ `);f=this._input.next();var l="#";if(this._input.hasNext()&&this._input.testChar(v)){do f=this._input.next(),l+=f;while(this._input.hasNext()&&f!=="#"&&f!=="=");return f==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(l+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(l+="{}",this._input.next(),this._input.next())),this._create_token(u.WORD,l)}this._input.back()}else if(f==="<"&&this._is_first_token()){if(m=this.__patterns.html_comment_start.read(),m){for(;this._input.hasNext()&&!this._input.testChar(n.newline);)m+=this._input.next();return O=!0,this._create_token(u.COMMENT,m)}}else if(O&&f==="-"&&(m=this.__patterns.html_comment_end.read(),m))return O=!1,this._create_token(u.COMMENT,m);return null},w.prototype._read_comment=function(f){var m=null;if(f==="/"){var l="";if(this._input.peek(1)==="*"){l=this.__patterns.block_comment.read();var x=E.get_directives(l);x&&x.ignore==="start"&&(l+=E.readIgnored(this._input)),l=l.replace(n.allLineBreaks,`
25
+ `),m=this._create_token(u.BLOCK_COMMENT,l),m.directives=x}else this._input.peek(1)==="/"&&(l=this.__patterns.comment.read(),m=this._create_token(u.COMMENT,l))}return m},w.prototype._read_string=function(f){if(f==="`"||f==="'"||f==='"'){var m=this._input.next();return this.has_char_escapes=!1,f==="`"?m+=this._read_string_recursive("`",!0,"${"):m+=this._read_string_recursive(f),this.has_char_escapes&&this._options.unescape_strings&&(m=R(m)),this._input.peek()===f&&(m+=this._input.next()),m=m.replace(n.allLineBreaks,`
26
+ `),this._create_token(u.STRING,m)}return null},w.prototype._allow_regexp_or_xml=function(f){return f.type===u.RESERVED&&a(f.text,["return","case","throw","else","do","typeof","yield"])||f.type===u.END_EXPR&&f.text===")"&&f.opened.previous.type===u.RESERVED&&a(f.opened.previous.text,["if","while","for"])||a(f.type,[u.COMMENT,u.START_EXPR,u.START_BLOCK,u.START,u.END_BLOCK,u.OPERATOR,u.EQUALS,u.EOF,u.SEMICOLON,u.COMMA])},w.prototype._read_regexp=function(f,m){if(f==="/"&&this._allow_regexp_or_xml(m)){for(var l=this._input.next(),x=!1,t=!1;this._input.hasNext()&&(x||t||this._input.peek()!==f)&&!this._input.testChar(n.newline);)l+=this._input.peek(),x?x=!1:(x=this._input.peek()==="\\",this._input.peek()==="["?t=!0:this._input.peek()==="]"&&(t=!1)),this._input.next();return this._input.peek()===f&&(l+=this._input.next(),l+=this._input.read(n.identifier)),this._create_token(u.STRING,l)}return null},w.prototype._read_xml=function(f,m){if(this._options.e4x&&f==="<"&&this._allow_regexp_or_xml(m)){var l="",x=this.__patterns.xml.read_match();if(x){for(var t=x[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),d=t.indexOf("{")===0,g=0;x;){var T=!!x[1],k=x[2],C=!!x[x.length-1]||k.slice(0,8)==="![CDATA[";if(!C&&(k===t||d&&k.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(T?--g:++g),l+=x[0],g<=0)break;x=this.__patterns.xml.read_match()}return x||(l+=this._input.match(/[\s\S]*/g)[0]),l=l.replace(n.allLineBreaks,`
27
+ `),this._create_token(u.STRING,l)}}return null};function R(f){for(var m="",l=0,x=new p(f),t=null;x.hasNext();)if(t=x.match(/([\s]|[^\\]|\\\\)+/g),t&&(m+=t[0]),x.peek()==="\\"){if(x.next(),x.peek()==="x")t=x.match(/x([0-9A-Fa-f]{2})/g);else if(x.peek()==="u")t=x.match(/u([0-9A-Fa-f]{4})/g),t||(t=x.match(/u\{([0-9A-Fa-f]+)\}/g));else{m+="\\",x.hasNext()&&(m+=x.next());continue}if(!t||(l=parseInt(t[1],16),l>126&&l<=255&&t[0].indexOf("x")===0))return f;l>=0&&l<32||l>1114111?m+="\\"+t[0]:l===34||l===39||l===92?m+="\\"+String.fromCharCode(l):m+=String.fromCharCode(l)}return m}return w.prototype._read_string_recursive=function(f,m,l){var x,t;f==="'"?t=this.__patterns.single_quote:f==='"'?t=this.__patterns.double_quote:f==="`"?t=this.__patterns.template_text:f==="}"&&(t=this.__patterns.template_expression);for(var d=t.read(),g="";this._input.hasNext();){if(g=this._input.next(),g===f||!m&&n.newline.test(g)){this._input.back();break}else g==="\\"&&this._input.hasNext()?(x=this._input.peek(),x==="x"||x==="u"?this.has_char_escapes=!0:x==="\r"&&this._input.peek(1)===`
28
+ `&&this._input.next(),g+=this._input.next()):l&&(l==="${"&&g==="$"&&this._input.peek()==="{"&&(g+=this._input.next()),l===g&&(f==="`"?g+=this._read_string_recursive("}",m,"`"):g+=this._read_string_recursive("`",m,"${"),this._input.hasNext()&&(g+=this._input.next())));g+=t.read(),d+=g}return d},P.Tokenizer=w,P.TOKEN=u,P.positionable_operators=S.slice(),P.line_starters=r.slice(),P}var At;function de(){if(At)return Y;At=1;var p=ht().Output,h=Ft().Token,s=Xt(),e=Vt().Options,n=z().Tokenizer,_=z().line_starters,c=z().positionable_operators,a=z().TOKEN;function u(t,d){return d.indexOf(t)!==-1}function E(t){return t.replace(/^\s+/g,"")}function b(t){for(var d={},g=0;g<t.length;g++)d[t[g].replace(/-/g,"_")]=t[g];return d}function v(t,d){return t&&t.type===a.RESERVED&&t.text===d}function y(t,d){return t&&t.type===a.RESERVED&&u(t.text,d)}var S=["case","return","do","if","throw","else","await","break","continue","async"],A=["before-newline","after-newline","preserve-newline"],L=b(A),r=[L.before_newline,L.preserve_newline],i={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function o(t,d){d.multiline_frame||d.mode===i.ForInitializer||d.mode===i.Conditional||t.remove_indent(d.start_line_index)}function O(t){t=t.replace(s.allLineBreaks,`
29
+ `);for(var d=[],g=t.indexOf(`
30
+ `);g!==-1;)d.push(t.substring(0,g)),t=t.substring(g+1),g=t.indexOf(`
31
+ `);return t.length&&d.push(t),d}function w(t){return t===i.ArrayLiteral}function R(t){return u(t,[i.Expression,i.ForInitializer,i.Conditional])}function f(t,d){for(var g=0;g<t.length;g++){var T=t[g].trim();if(T.charAt(0)!==d)return!1}return!0}function m(t,d){for(var g=0,T=t.length,k;g<T;g++)if(k=t[g],k&&k.indexOf(d)!==0)return!1;return!0}function l(t,d){d=d||{},this._source_text=t||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new e(d)}l.prototype.create_flags=function(t,d){var g=0;t&&(g=t.indentation_level,!this._output.just_added_newline()&&t.line_indent_level>g&&(g=t.line_indent_level));var T={mode:d,parent:t,last_token:t?t.last_token:new h(a.START_BLOCK,""),last_word:t?t.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:g,alignment:0,line_indent_level:t?t.line_indent_level:g,start_line_index:this._output.get_line_number(),ternary_depth:0};return T},l.prototype._reset=function(t){var d=t.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new p(this._options,d),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(i.BlockStatement);var g=new n(t,this._options);return this._tokens=g.tokenize(),t},l.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var t,d=this._reset(this._source_text),g=this._options.eol;this._options.eol==="auto"&&(g=`
32
+ `,d&&s.lineBreak.test(d||"")&&(g=d.match(s.lineBreak)[0]));for(var T=this._tokens.next();T;)this.handle_token(T),this._last_last_text=this._flags.last_token.text,this._flags.last_token=T,T=this._tokens.next();return t=this._output.get_code(g),t},l.prototype.handle_token=function(t,d){t.type===a.START_EXPR?this.handle_start_expr(t):t.type===a.END_EXPR?this.handle_end_expr(t):t.type===a.START_BLOCK?this.handle_start_block(t):t.type===a.END_BLOCK?this.handle_end_block(t):t.type===a.WORD?this.handle_word(t):t.type===a.RESERVED?this.handle_word(t):t.type===a.SEMICOLON?this.handle_semicolon(t):t.type===a.STRING?this.handle_string(t):t.type===a.EQUALS?this.handle_equals(t):t.type===a.OPERATOR?this.handle_operator(t):t.type===a.COMMA?this.handle_comma(t):t.type===a.BLOCK_COMMENT?this.handle_block_comment(t,d):t.type===a.COMMENT?this.handle_comment(t,d):t.type===a.DOT?this.handle_dot(t):t.type===a.EOF?this.handle_eof(t):t.type===a.UNKNOWN?this.handle_unknown(t,d):this.handle_unknown(t,d)},l.prototype.handle_whitespace_and_comments=function(t,d){var g=t.newlines,T=this._options.keep_array_indentation&&w(this._flags.mode);if(t.comments_before)for(var k=t.comments_before.next();k;)this.handle_whitespace_and_comments(k,d),this.handle_token(k,d),k=t.comments_before.next();if(T)for(var C=0;C<g;C+=1)this.print_newline(C>0,d);else if(this._options.max_preserve_newlines&&g>this._options.max_preserve_newlines&&(g=this._options.max_preserve_newlines),this._options.preserve_newlines&&g>1){this.print_newline(!1,d);for(var I=1;I<g;I+=1)this.print_newline(!0,d)}};var x=["async","break","continue","return","throw","yield"];return l.prototype.allow_wrap_or_preserved_newline=function(t,d){if(d=d===void 0?!1:d,!this._output.just_added_newline()){var g=this._options.preserve_newlines&&t.newlines||d,T=u(this._flags.last_token.text,c)||u(t.text,c);if(T){var k=u(this._flags.last_token.text,c)&&u(this._options.operator_position,r)||u(t.text,c);g=g&&k}if(g)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(y(this._flags.last_token,x))return;this._output.set_wrap_point()}}},l.prototype.print_newline=function(t,d){if(!d&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==a.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var g=this._tokens.peek();this._flags.mode===i.Statement&&!(this._flags.if_block&&v(g,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(t)&&(this._flags.multiline_frame=!0)},l.prototype.print_token_line_indentation=function(t){this._output.just_added_newline()&&(this._options.keep_array_indentation&&t.newlines&&(t.text==="["||w(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(t.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},l.prototype.print_token=function(t){if(this._output.raw){this._output.add_raw_token(t);return}if(this._options.comma_first&&t.previous&&t.previous.type===a.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var d=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(d),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(t),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(t),this._output.non_breaking_space=!0,this._output.add_token(t.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},l.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},l.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},l.prototype.set_mode=function(t){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,t),this._flags=this.create_flags(this._previous_flags,t),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},l.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===i.Statement&&o(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},l.prototype.start_of_object_property=function(){return this._flags.parent.mode===i.ObjectLiteral&&this._flags.mode===i.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||y(this._flags.last_token,["get","set"]))},l.prototype.start_of_statement=function(t){var d=!1;return d=d||y(this._flags.last_token,["var","let","const"])&&t.type===a.WORD,d=d||v(this._flags.last_token,"do"),d=d||!(this._flags.parent.mode===i.ObjectLiteral&&this._flags.mode===i.Statement)&&y(this._flags.last_token,x)&&!t.newlines,d=d||v(this._flags.last_token,"else")&&!(v(t,"if")&&!t.comments_before),d=d||this._flags.last_token.type===a.END_EXPR&&(this._previous_flags.mode===i.ForInitializer||this._previous_flags.mode===i.Conditional),d=d||this._flags.last_token.type===a.WORD&&this._flags.mode===i.BlockStatement&&!this._flags.in_case&&!(t.text==="--"||t.text==="++")&&this._last_last_text!=="function"&&t.type!==a.WORD&&t.type!==a.RESERVED,d=d||this._flags.mode===i.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||y(this._flags.last_token,["get","set"])),d?(this.set_mode(i.Statement),this.indent(),this.handle_whitespace_and_comments(t,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t,y(t,["do","for","if","while"])),!0):!1},l.prototype.handle_start_expr=function(t){this.start_of_statement(t)||this.handle_whitespace_and_comments(t);var d=i.Expression;if(t.text==="["){if(this._flags.last_token.type===a.WORD||this._flags.last_token.text===")"){y(this._flags.last_token,_)&&(this._output.space_before_token=!0),this.print_token(t),this.set_mode(d),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}d=i.ArrayLiteral,w(this._flags.mode)&&(this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline()),u(this._flags.last_token.type,[a.START_EXPR,a.END_EXPR,a.WORD,a.OPERATOR,a.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===a.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,d=i.ForInitializer):u(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,d=i.Conditional):u(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&t.whitespace_before===""?this._output.space_before_token=!1:(u(this._flags.last_token.text,_)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===a.EQUALS||this._flags.last_token.type===a.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t);else if(this._flags.last_token.type===a.WORD){this._output.space_before_token=!1;var g=this._tokens.peek(-3);if(this._options.space_after_named_function&&g){var T=this._tokens.peek(-4);y(g,["async","function"])||g.text==="*"&&y(T,["async","function"])?this._output.space_before_token=!0:this._flags.mode===i.ObjectLiteral?(g.text==="{"||g.text===","||g.text==="*"&&(T.text==="{"||T.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(t);(this._flags.last_token.type===a.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(u(this._last_last_text,["function","yield"])||this._flags.mode===i.ObjectLiteral&&u(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===a.START_BLOCK?this.print_newline():(this._flags.last_token.type===a.END_EXPR||this._flags.last_token.type===a.START_EXPR||this._flags.last_token.type===a.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===a.COMMA)&&this.allow_wrap_or_preserved_newline(t,t.newlines),this.print_token(t),this.set_mode(d),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},l.prototype.handle_end_expr=function(t){for(;this._flags.mode===i.Statement;)this.restore_mode();this.handle_whitespace_and_comments(t),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(t,t.text==="]"&&w(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===a.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(t),this.restore_mode(),o(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===i.Conditional&&(this._previous_flags.mode=i.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},l.prototype.handle_start_block=function(t){this.handle_whitespace_and_comments(t);var d=this._tokens.peek(),g=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===a.END_EXPR?(this.set_mode(i.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(i.BlockStatement):g&&(u(g.text,[":",","])&&u(d.type,[a.STRING,a.WORD,a.RESERVED])||u(d.text,["get","set","..."])&&u(g.type,[a.WORD,a.RESERVED]))?u(this._last_last_text,["class","interface"])&&!u(g.text,[":",","])?this.set_mode(i.BlockStatement):this.set_mode(i.ObjectLiteral):this._flags.last_token.type===a.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(i.BlockStatement):u(this._flags.last_token.type,[a.EQUALS,a.START_EXPR,a.COMMA,a.OPERATOR])||y(this._flags.last_token,["return","throw","import","default"])?this.set_mode(i.ObjectLiteral):this.set_mode(i.BlockStatement),this._flags.last_token&&y(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var T=!d.comments_before&&d.text==="}",k=T&&this._flags.last_word==="function"&&this._flags.last_token.type===a.END_EXPR;if(this._options.brace_preserve_inline){var C=0,I=null;this._flags.inline_frame=!0;do if(C+=1,I=this._tokens.peek(C-1),I.newlines){this._flags.inline_frame=!1;break}while(I.type!==a.EOF&&!(I.type===a.END_BLOCK&&I.opened===t))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&t.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==a.OPERATOR&&(k||this._flags.last_token.type===a.EQUALS||y(this._flags.last_token,S)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(w(this._previous_flags.mode)&&(this._flags.last_token.type===a.START_EXPR||this._flags.last_token.type===a.COMMA)&&((this._flags.last_token.type===a.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===a.COMMA||this._flags.last_token.type===a.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(t),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==a.OPERATOR&&this._flags.last_token.type!==a.START_EXPR&&(u(this._flags.last_token.type,[a.START_BLOCK,a.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(t),this.indent(),!T&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},l.prototype.handle_end_block=function(t){for(this.handle_whitespace_and_comments(t);this._flags.mode===i.Statement;)this.restore_mode();var d=this._flags.last_token.type===a.START_BLOCK;this._flags.inline_frame&&!d?this._output.space_before_token=!0:this._options.brace_style==="expand"?d||this.print_newline():d||(w(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(t)},l.prototype.handle_word=function(t){if(t.type===a.RESERVED){if(u(t.text,["set","get"])&&this._flags.mode!==i.ObjectLiteral)t.type=a.WORD;else if(t.text==="import"&&u(this._tokens.peek().text,["(","."]))t.type=a.WORD;else if(u(t.text,["as","from"])&&!this._flags.import_block)t.type=a.WORD;else if(this._flags.mode===i.ObjectLiteral){var d=this._tokens.peek();d.text===":"&&(t.type=a.WORD)}}if(this.start_of_statement(t)?y(this._flags.last_token,["var","let","const"])&&t.type===a.WORD&&(this._flags.declaration_statement=!0):t.newlines&&!R(this._flags.mode)&&(this._flags.last_token.type!==a.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==a.EQUALS&&(this._options.preserve_newlines||!y(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(t),this.print_newline()):this.handle_whitespace_and_comments(t),this._flags.do_block&&!this._flags.do_while)if(v(t,"while")){this._output.space_before_token=!0,this.print_token(t),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&v(t,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===i.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&y(t,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(t),this._flags.in_case=!0;return}if((this._flags.last_token.type===a.COMMA||this._flags.last_token.type===a.START_EXPR||this._flags.last_token.type===a.EQUALS||this._flags.last_token.type===a.OPERATOR)&&!this.start_of_object_property()&&!(u(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===i.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(t),v(t,"function")){(u(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(u(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===a.OPERATOR))&&!this._output.just_added_blankline()&&!t.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===a.RESERVED||this._flags.last_token.type===a.WORD?y(this._flags.last_token,["get","set","new","export"])||y(this._flags.last_token,x)?this._output.space_before_token=!0:v(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===a.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(R(this._flags.mode)||w(this._flags.mode))||this.print_newline(),this.print_token(t),this._flags.last_word=t.text;return}var g="NONE";if(this._flags.last_token.type===a.END_BLOCK?this._previous_flags.inline_frame?g="SPACE":y(t,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&t.newlines?g="NEWLINE":(g="SPACE",this._output.space_before_token=!0):g="NEWLINE":this._flags.last_token.type===a.SEMICOLON&&this._flags.mode===i.BlockStatement?g="NEWLINE":this._flags.last_token.type===a.SEMICOLON&&R(this._flags.mode)?g="SPACE":this._flags.last_token.type===a.STRING?g="NEWLINE":this._flags.last_token.type===a.RESERVED||this._flags.last_token.type===a.WORD||this._flags.last_token.text==="*"&&(u(this._last_last_text,["function","yield"])||this._flags.mode===i.ObjectLiteral&&u(this._last_last_text,["{",","]))?g="SPACE":this._flags.last_token.type===a.START_BLOCK?this._flags.inline_frame?g="SPACE":g="NEWLINE":this._flags.last_token.type===a.END_EXPR&&(this._output.space_before_token=!0,g="NEWLINE"),y(t,_)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?g="SPACE":g="NEWLINE"),y(t,["else","catch","finally"]))if((!(this._flags.last_token.type===a.END_BLOCK&&this._previous_flags.mode===i.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&t.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var T=this._output.current_line;T.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else g==="NEWLINE"?y(this._flags.last_token,S)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&y(t,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==a.END_EXPR?(this._flags.last_token.type!==a.START_EXPR||!y(t,["var","let","const"]))&&this._flags.last_token.text!==":"&&(v(t,"if")&&v(t.previous,"else")?this._output.space_before_token=!0:this.print_newline()):y(t,_)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&w(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():g==="SPACE"&&(this._output.space_before_token=!0);t.previous&&(t.previous.type===a.WORD||t.previous.type===a.RESERVED)&&(this._output.space_before_token=!0),this.print_token(t),this._flags.last_word=t.text,t.type===a.RESERVED&&(t.text==="do"?this._flags.do_block=!0:t.text==="if"?this._flags.if_block=!0:t.text==="import"?this._flags.import_block=!0:this._flags.import_block&&v(t,"from")&&(this._flags.import_block=!1))},l.prototype.handle_semicolon=function(t){this.start_of_statement(t)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(t);for(var d=this._tokens.peek();this._flags.mode===i.Statement&&!(this._flags.if_block&&v(d,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(t)},l.prototype.handle_string=function(t){t.text.startsWith("`")&&t.newlines===0&&t.whitespace_before===""&&(t.previous.text===")"||this._flags.last_token.type===a.WORD)||(this.start_of_statement(t)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(t),this._flags.last_token.type===a.RESERVED||this._flags.last_token.type===a.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===a.COMMA||this._flags.last_token.type===a.START_EXPR||this._flags.last_token.type===a.EQUALS||this._flags.last_token.type===a.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t):t.text.startsWith("`")&&this._flags.last_token.type===a.END_EXPR&&(t.previous.text==="]"||t.previous.text===")")&&t.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(t)},l.prototype.handle_equals=function(t){this.start_of_statement(t)||this.handle_whitespace_and_comments(t),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(t),this._output.space_before_token=!0},l.prototype.handle_comma=function(t){this.handle_whitespace_and_comments(t,!0),this.print_token(t),this._output.space_before_token=!0,this._flags.declaration_statement?(R(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(t)):this._flags.mode===i.ObjectLiteral||this._flags.mode===i.Statement&&this._flags.parent.mode===i.ObjectLiteral?(this._flags.mode===i.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(t)},l.prototype.handle_operator=function(t){var d=t.text==="*"&&(y(this._flags.last_token,["function","yield"])||u(this._flags.last_token.type,[a.START_BLOCK,a.COMMA,a.END_BLOCK,a.SEMICOLON])),g=u(t.text,["-","+"])&&(u(this._flags.last_token.type,[a.START_BLOCK,a.START_EXPR,a.EQUALS,a.OPERATOR])||u(this._flags.last_token.text,_)||this._flags.last_token.text===",");if(!this.start_of_statement(t)){var T=!d;this.handle_whitespace_and_comments(t,T)}if(t.text==="*"&&this._flags.last_token.type===a.DOT){this.print_token(t);return}if(t.text==="::"){this.print_token(t);return}if(u(t.text,["-","+"])&&this.start_of_object_property()){this.print_token(t);return}if(this._flags.last_token.type===a.OPERATOR&&u(this._options.operator_position,r)&&this.allow_wrap_or_preserved_newline(t),t.text===":"&&this._flags.in_case){this.print_token(t),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==a.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var k=!0,C=!0,I=!1;if(t.text===":"?this._flags.ternary_depth===0?k=!1:(this._flags.ternary_depth-=1,I=!0):t.text==="?"&&(this._flags.ternary_depth+=1),!g&&!d&&this._options.preserve_newlines&&u(t.text,c)){var j=t.text===":",W=j&&I,G=j&&!I;switch(this._options.operator_position){case L.before_newline:this._output.space_before_token=!G,this.print_token(t),(!j||W)&&this.allow_wrap_or_preserved_newline(t),this._output.space_before_token=!0;return;case L.after_newline:this._output.space_before_token=!0,!j||W?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(t):this._output.space_before_token=!1,this.print_token(t),this._output.space_before_token=!0;return;case L.preserve_newline:G||this.allow_wrap_or_preserved_newline(t),k=!(this._output.just_added_newline()||G),this._output.space_before_token=k,this.print_token(t),this._output.space_before_token=!0;return}}if(d){this.allow_wrap_or_preserved_newline(t),k=!1;var dt=this._tokens.peek();C=dt&&u(dt.type,[a.WORD,a.RESERVED])}else if(t.text==="...")this.allow_wrap_or_preserved_newline(t),k=this._flags.last_token.type===a.START_BLOCK,C=!1;else if(u(t.text,["--","++","!","~"])||g){if((this._flags.last_token.type===a.COMMA||this._flags.last_token.type===a.START_EXPR)&&this.allow_wrap_or_preserved_newline(t),k=!1,C=!1,t.newlines&&(t.text==="--"||t.text==="++"||t.text==="~")){var gt=y(this._flags.last_token,S)&&t.newlines;gt&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(gt,!0)}this._flags.last_token.text===";"&&R(this._flags.mode)&&(k=!0),this._flags.last_token.type===a.RESERVED?k=!0:this._flags.last_token.type===a.END_EXPR?k=!(this._flags.last_token.text==="]"&&(t.text==="--"||t.text==="++")):this._flags.last_token.type===a.OPERATOR&&(k=u(t.text,["--","-","++","+"])&&u(this._flags.last_token.text,["--","-","++","+"]),u(t.text,["+","-"])&&u(this._flags.last_token.text,["--","++"])&&(C=!0)),(this._flags.mode===i.BlockStatement&&!this._flags.inline_frame||this._flags.mode===i.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||k,this.print_token(t),this._output.space_before_token=C},l.prototype.handle_block_comment=function(t,d){if(this._output.raw){this._output.add_raw_token(t),t.directives&&t.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(t.directives){this.print_newline(!1,d),this.print_token(t),t.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!s.newline.test(t.text)&&!t.newlines){this._output.space_before_token=!0,this.print_token(t),this._output.space_before_token=!0;return}else this.print_block_commment(t,d)},l.prototype.print_block_commment=function(t,d){var g=O(t.text),T,k=!1,C=!1,I=t.whitespace_before,j=I.length;if(this.print_newline(!1,d),this.print_token_line_indentation(t),this._output.add_token(g[0]),this.print_newline(!1,d),g.length>1){for(g=g.slice(1),k=f(g,"*"),C=m(g,I),k&&(this._flags.alignment=1),T=0;T<g.length;T++)k?(this.print_token_line_indentation(t),this._output.add_token(E(g[T]))):C&&g[T]?(this.print_token_line_indentation(t),this._output.add_token(g[T].substring(j))):(this._output.current_line.set_indent(-1),this._output.add_token(g[T])),this.print_newline(!1,d);this._flags.alignment=0}},l.prototype.handle_comment=function(t,d){t.newlines?this.print_newline(!1,d):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(t),this.print_newline(!1,d)},l.prototype.handle_dot=function(t){this.start_of_statement(t)||this.handle_whitespace_and_comments(t,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),y(this._flags.last_token,S)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(t,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(t)},l.prototype.handle_unknown=function(t,d){this.print_token(t),t.text[t.text.length-1]===`
33
+ `&&this.print_newline(!1,d)},l.prototype.handle_eof=function(t){for(;this._flags.mode===i.Statement;)this.restore_mode();this.handle_whitespace_and_comments(t)},Y.Beautifier=l,Y}var Lt;function ge(){if(Lt)return U.exports;Lt=1;var p=de().Beautifier,h=Vt().Options;function s(e,n){var _=new p(e,n);return _.beautify()}return U.exports=s,U.exports.defaultOptions=function(){return new h},U.exports}var q={exports:{}},rt={},ut={},Ct;function Qt(){if(Ct)return ut;Ct=1;var p=pt().Options;function h(s){p.call(this,s,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var e=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||e;var n=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var _=0;_<n.length;_++)n[_]!=="expand"?this.brace_style="collapse":this.brace_style=n[_]}return h.prototype=new p,ut.Options=h,ut}var It;function me(){if(It)return rt;It=1;var p=Qt().Options,h=ht().Output,s=ft().InputScanner,e=ct().Directives,n=new e(/\/\*/,/\*\//),_=/\r\n|[\r\n]/,c=/\r\n|[\r\n]/g,a=/\s/,u=/(?:\s|\n)+/g,E=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,b=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function v(y,S){this._source_text=y||"",this._options=new p(S),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}return v.prototype.eatString=function(y){var S="";for(this._ch=this._input.next();this._ch;){if(S+=this._ch,this._ch==="\\")S+=this._input.next();else if(y.indexOf(this._ch)!==-1||this._ch===`
34
+ `)break;this._ch=this._input.next()}return S},v.prototype.eatWhitespace=function(y){for(var S=a.test(this._input.peek()),A=0;a.test(this._input.peek());)this._ch=this._input.next(),y&&this._ch===`
35
+ `&&(A===0||A<this._options.max_preserve_newlines)&&(A++,this._output.add_new_line(!0));return S},v.prototype.foundNestedPseudoClass=function(){for(var y=0,S=1,A=this._input.peek(S);A;){if(A==="{")return!0;if(A==="(")y+=1;else if(A===")"){if(y===0)return!1;y-=1}else if(A===";"||A==="}")return!1;S++,A=this._input.peek(S)}return!1},v.prototype.print_string=function(y){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(y)},v.prototype.preserveSingleSpace=function(y){y&&(this._output.space_before_token=!0)},v.prototype.indent=function(){this._indentLevel++},v.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},v.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var y=this._source_text,S=this._options.eol;S==="auto"&&(S=`
36
+ `,y&&_.test(y||"")&&(S=y.match(_)[0])),y=y.replace(c,`
37
+ `);var A=y.match(/^[\t ]*/)[0];this._output=new h(this._options,A),this._input=new s(y),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var L=0,r=!1,i=!1,o=!1,O=!1,w=!1,R=this._ch,f=!1,m,l,x;m=this._input.read(u),l=m!=="",x=R,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),R=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var t=this._input.read(E),d=n.get_directives(t);d&&d.ignore==="start"&&(t+=n.readIgnored(this._input)),this.print_string(t),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(b)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(l),this.print_string(this._ch);var g=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);g.match(/[ :]$/)&&(g=this.eatString(": ").replace(/\s+$/,""),this.print_string(g),this._output.space_before_token=!0),L===0&&g.indexOf(":")!==-1&&(i=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(l),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var T=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);T.match(/[ :]$/)&&(T=this.eatString(": ").replace(/\s+$/,""),this.print_string(T),this._output.space_before_token=!0),L===0&&T.indexOf(":")!==-1?(i=!0,this.indent()):T in this.NESTED_AT_RULE?(this._nestedLevel+=1,T in this.CONDITIONAL_GROUP_RULE&&(o=!0)):L===0&&!i&&(O=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(l),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")i&&(i=!1,this.outdent()),O=!1,o?(o=!1,r=this._indentLevel>=this._nestedLevel):r=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&r&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(x==="("?this._output.space_before_token=!1:x!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),x==="{"&&this._output.trim(!0),i&&(this.outdent(),i=!1),this.print_string(this._ch),r=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var k=0;k<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;k++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[k])){f=!0;break}(r||o)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!O&&L===0?(this.print_string(":"),i||(i=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var C=x==='"'||x==="'";this.preserveSingleSpace(C||l),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")f=!1,L===0?(i&&(this.outdent(),i=!1),O=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),L++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),L&&(L--,this.outdent()));else{var I=!1;this._input.lookBack("with")&&(I=!0),this.preserveSingleSpace(l||I),this.print_string(this._ch),i&&x==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),w=!0):(this.eatWhitespace(),L++,this.indent())}else if(this._ch===")")L&&(L--,this.outdent()),w&&this._input.peek()===";"&&this._options.selector_separator_newline&&(w=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!i||w)&&L===0&&!O?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!i&&L===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&a.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(l),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),a.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var j=x==='"'||x==="'";this.preserveSingleSpace(j||l),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
38
+ `&&f&&this._output.add_new_line()}var W=this._output.get_code(S);return W},rt.Beautifier=v,rt}var jt;function be(){if(jt)return q.exports;jt=1;var p=me().Beautifier,h=Qt().Options;function s(e,n){var _=new p(e,n);return _.beautify()}return q.exports=s,q.exports.defaultOptions=function(){return new h},q.exports}var $={exports:{}},ot={},lt={},Pt;function Yt(){if(Pt)return lt;Pt=1;var p=pt().Options;function h(s){p.call(this,s,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}return h.prototype=new p,lt.Options=h,lt}var F={},Dt;function Mt(){if(Dt)return F;Dt=1;var p=X().Tokenizer,h=X().TOKEN,s=ct().Directives,e=Gt().TemplatablePattern,n=V().Pattern,_={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:h.START,RAW:h.RAW,EOF:h.EOF},c=new s(/<\!--/,/-->/),a=function(u,E){p.call(this,u,E),this._current_tag_name="";var b=new e(this._input).read_options(this._options),v=new n(this._input);if(this.__patterns={word:b.until(/[\n\r\t <]/),word_control_flow_close_excluded:b.until(/[\n\r\t <}]/),single_quote:b.until_after(/'/),double_quote:b.until_after(/"/),attribute:b.until(/[\n\r\t =>]|\/>/),element_name:b.until(/[\n\r\t >\/]/),angular_control_flow_start:v.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:v.starting_with(/{{!--/).until_after(/--}}/),handlebars:v.starting_with(/{{/).until_after(/}}/),handlebars_open:v.until(/[\n\r\t }]/),handlebars_raw_close:v.until(/}}/),comment:v.starting_with(/<!--/).until_after(/-->/),cdata:v.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:v.starting_with(/<!\[/).until_after(/]>/),processing:v.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var y=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=v.matching(y).until_after(y)}};return a.prototype=new p,a.prototype._is_comment=function(u){return!1},a.prototype._is_opening=function(u){return u.type===_.TAG_OPEN||u.type===_.CONTROL_FLOW_OPEN},a.prototype._is_closing=function(u,E){return u.type===_.TAG_CLOSE&&E&&((u.text===">"||u.text==="/>")&&E.text[0]==="<"||u.text==="}}"&&E.text[0]==="{"&&E.text[1]==="{")||u.type===_.CONTROL_FLOW_CLOSE&&u.text==="}"&&E.text.endsWith("{")},a.prototype._reset=function(){this._current_tag_name=""},a.prototype._get_next_token=function(u,E){var b=null;this._readWhitespace();var v=this._input.peek();return v===null?this._create_token(_.EOF,""):(b=b||this._read_open_handlebars(v,E),b=b||this._read_attribute(v,u,E),b=b||this._read_close(v,E),b=b||this._read_script_and_style(v,u),b=b||this._read_control_flows(v,E),b=b||this._read_raw_content(v,u,E),b=b||this._read_content_word(v,E),b=b||this._read_comment_or_cdata(v),b=b||this._read_processing(v),b=b||this._read_open(v,E),b=b||this._create_token(_.UNKNOWN,this._input.next()),b)},a.prototype._read_comment_or_cdata=function(u){var E=null,b=null,v=null;if(u==="<"){var y=this._input.peek(1);y==="!"&&(b=this.__patterns.comment.read(),b?(v=c.get_directives(b),v&&v.ignore==="start"&&(b+=c.readIgnored(this._input))):b=this.__patterns.cdata.read()),b&&(E=this._create_token(_.COMMENT,b),E.directives=v)}return E},a.prototype._read_processing=function(u){var E=null,b=null,v=null;if(u==="<"){var y=this._input.peek(1);(y==="!"||y==="?")&&(b=this.__patterns.conditional_comment.read(),b=b||this.__patterns.processing.read()),b&&(E=this._create_token(_.COMMENT,b),E.directives=v)}return E},a.prototype._read_open=function(u,E){var b=null,v=null;return(!E||E.type===_.CONTROL_FLOW_OPEN)&&u==="<"&&(b=this._input.next(),this._input.peek()==="/"&&(b+=this._input.next()),b+=this.__patterns.element_name.read(),v=this._create_token(_.TAG_OPEN,b)),v},a.prototype._read_open_handlebars=function(u,E){var b=null,v=null;return(!E||E.type===_.CONTROL_FLOW_OPEN)&&(this._options.templating.includes("angular")||this._options.indent_handlebars)&&u==="{"&&this._input.peek(1)==="{"&&(this._options.indent_handlebars&&this._input.peek(2)==="!"?(b=this.__patterns.handlebars_comment.read(),b=b||this.__patterns.handlebars.read(),v=this._create_token(_.COMMENT,b)):(b=this.__patterns.handlebars_open.read(),v=this._create_token(_.TAG_OPEN,b))),v},a.prototype._read_control_flows=function(u,E){var b="",v=null;if(!this._options.templating.includes("angular"))return v;if(u==="@"){if(b=this.__patterns.angular_control_flow_start.read(),b==="")return v;for(var y=b.endsWith("(")?1:0,S=0;!(b.endsWith("{")&&y===S);){var A=this._input.next();if(A===null)break;A==="("?y++:A===")"&&S++,b+=A}v=this._create_token(_.CONTROL_FLOW_OPEN,b)}else u==="}"&&E&&E.type===_.CONTROL_FLOW_OPEN&&(b=this._input.next(),v=this._create_token(_.CONTROL_FLOW_CLOSE,b));return v},a.prototype._read_close=function(u,E){var b=null,v=null;return E&&E.type===_.TAG_OPEN&&(E.text[0]==="<"&&(u===">"||u==="/"&&this._input.peek(1)===">")?(b=this._input.next(),u==="/"&&(b+=this._input.next()),v=this._create_token(_.TAG_CLOSE,b)):E.text[0]==="{"&&u==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),v=this._create_token(_.TAG_CLOSE,"}}"))),v},a.prototype._read_attribute=function(u,E,b){var v=null,y="";if(b&&b.text[0]==="<")if(u==="=")v=this._create_token(_.EQUALS,this._input.next());else if(u==='"'||u==="'"){var S=this._input.next();u==='"'?S+=this.__patterns.double_quote.read():S+=this.__patterns.single_quote.read(),v=this._create_token(_.VALUE,S)}else y=this.__patterns.attribute.read(),y&&(E.type===_.EQUALS?v=this._create_token(_.VALUE,y):v=this._create_token(_.ATTRIBUTE,y));return v},a.prototype._is_content_unformatted=function(u){return this._options.void_elements.indexOf(u)===-1&&(this._options.content_unformatted.indexOf(u)!==-1||this._options.unformatted.indexOf(u)!==-1)},a.prototype._read_raw_content=function(u,E,b){var v="";if(b&&b.text[0]==="{")v=this.__patterns.handlebars_raw_close.read();else if(E.type===_.TAG_CLOSE&&E.opened.text[0]==="<"&&E.text[0]!=="/"){var y=E.opened.text.substr(1).toLowerCase();this._is_content_unformatted(y)&&(v=this._input.readUntil(new RegExp("</"+y+"[\\n\\r\\t ]*?>","ig")))}return v?this._create_token(_.TEXT,v):null},a.prototype._read_script_and_style=function(u,E){if(E.type===_.TAG_CLOSE&&E.opened.text[0]==="<"&&E.text[0]!=="/"){var b=E.opened.text.substr(1).toLowerCase();if(b==="script"||b==="style"){var v=this._read_comment_or_cdata(u);if(v)return v.type=_.TEXT,v;var y=this._input.readUntil(new RegExp("</"+b+"[\\n\\r\\t ]*?>","ig"));if(y)return this._create_token(_.TEXT,y)}}return null},a.prototype._read_content_word=function(u,E){var b="";return this._options.unformatted_content_delimiter&&u===this._options.unformatted_content_delimiter[0]&&(b=this.__patterns.unformatted_content_delimiter.read()),b||(b=E&&E.type===_.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),b?this._create_token(_.TEXT,b):null},F.Tokenizer=a,F.TOKEN=_,F}var Bt;function ve(){if(Bt)return ot;Bt=1;var p=Yt().Options,h=ht().Output,s=Mt().Tokenizer,e=Mt().TOKEN,n=/\r\n|[\r\n]/,_=/\r\n|[\r\n]/g,c=function(r,i){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=r.max_preserve_newlines,this.preserve_newlines=r.preserve_newlines,this._output=new h(r,i)};c.prototype.current_line_has_match=function(r){return this._output.current_line.has_match(r)},c.prototype.set_space_before_token=function(r,i){this._output.space_before_token=r,this._output.non_breaking_space=i},c.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},c.prototype.add_raw_token=function(r){this._output.add_raw_token(r)},c.prototype.print_preserved_newlines=function(r){var i=0;r.type!==e.TEXT&&r.previous.type!==e.TEXT&&(i=r.newlines?1:0),this.preserve_newlines&&(i=r.newlines<this.max_preserve_newlines+1?r.newlines:this.max_preserve_newlines+1);for(var o=0;o<i;o++)this.print_newline(o>0);return i!==0},c.prototype.traverse_whitespace=function(r){return r.whitespace_before||r.newlines?(this.print_preserved_newlines(r)||(this._output.space_before_token=!0),!0):!1},c.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},c.prototype.print_newline=function(r){this._output.add_new_line(r)},c.prototype.print_token=function(r){r.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(r.text))},c.prototype.indent=function(){this.indent_level++},c.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},c.prototype.get_full_indent=function(r){return r=this.indent_level+(r||0),r<1?"":this._output.get_indent_string(r)};var a=function(r){for(var i=null,o=r.next;o.type!==e.EOF&&r.closed!==o;){if(o.type===e.ATTRIBUTE&&o.text==="type"){o.next&&o.next.type===e.EQUALS&&o.next.next&&o.next.next.type===e.VALUE&&(i=o.next.next.text);break}o=o.next}return i},u=function(r,i){var o=null,O=null;return i.closed?(r==="script"?o="text/javascript":r==="style"&&(o="text/css"),o=a(i)||o,o.search("text/css")>-1?O="css":o.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?O="javascript":o.search(/(text|application|dojo)\/(x-)?(html)/)>-1?O="html":o.search(/test\/null/)>-1&&(O="null"),O):null};function E(r,i){return i.indexOf(r)!==-1}function b(r,i,o){this.parent=r||null,this.tag=i?i.tag_name:"",this.indent_level=o||0,this.parser_token=i||null}function v(r){this._printer=r,this._current_frame=null}v.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},v.prototype.record_tag=function(r){var i=new b(this._current_frame,r,this._printer.indent_level);this._current_frame=i},v.prototype._try_pop_frame=function(r){var i=null;return r&&(i=r.parser_token,this._printer.indent_level=r.indent_level,this._current_frame=r.parent),i},v.prototype._get_frame=function(r,i){for(var o=this._current_frame;o&&r.indexOf(o.tag)===-1;){if(i&&i.indexOf(o.tag)!==-1){o=null;break}o=o.parent}return o},v.prototype.try_pop=function(r,i){var o=this._get_frame([r],i);return this._try_pop_frame(o)},v.prototype.indent_to_tag=function(r){var i=this._get_frame(r);i&&(this._printer.indent_level=i.indent_level)};function y(r,i,o,O){this._source_text=r||"",i=i||{},this._js_beautify=o,this._css_beautify=O,this._tag_stack=null;var w=new p(i,"html");this._options=w,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,5)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,8)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}y.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var r=this._source_text,i=this._options.eol;this._options.eol==="auto"&&(i=`
39
+ `,r&&n.test(r)&&(i=r.match(n)[0])),r=r.replace(_,`
40
+ `);var o=r.match(/^[\t ]*/)[0],O={text:"",type:""},w=new S(this._options),R=new c(this._options,o),f=new s(r,this._options).tokenize();this._tag_stack=new v(R);for(var m=null,l=f.next();l.type!==e.EOF;)l.type===e.TAG_OPEN||l.type===e.COMMENT?(m=this._handle_tag_open(R,l,w,O,f),w=m):l.type===e.ATTRIBUTE||l.type===e.EQUALS||l.type===e.VALUE||l.type===e.TEXT&&!w.tag_complete?m=this._handle_inside_tag(R,l,w,O):l.type===e.TAG_CLOSE?m=this._handle_tag_close(R,l,w):l.type===e.TEXT?m=this._handle_text(R,l,w):l.type===e.CONTROL_FLOW_OPEN?m=this._handle_control_flow_open(R,l):l.type===e.CONTROL_FLOW_CLOSE?m=this._handle_control_flow_close(R,l):R.add_raw_token(l),O=m,l=f.next();var x=R._output.get_code(i);return x},y.prototype._handle_control_flow_open=function(r,i){var o={text:i.text,type:i.type};return r.set_space_before_token(i.newlines||i.whitespace_before!=="",!0),i.newlines?r.print_preserved_newlines(i):r.set_space_before_token(i.newlines||i.whitespace_before!=="",!0),r.print_token(i),r.indent(),o},y.prototype._handle_control_flow_close=function(r,i){var o={text:i.text,type:i.type};return r.deindent(),i.newlines?r.print_preserved_newlines(i):r.set_space_before_token(i.newlines||i.whitespace_before!=="",!0),r.print_token(i),o},y.prototype._handle_tag_close=function(r,i,o){var O={text:i.text,type:i.type};return r.alignment_size=0,o.tag_complete=!0,r.set_space_before_token(i.newlines||i.whitespace_before!=="",!0),o.is_unformatted?r.add_raw_token(i):(o.tag_start_char==="<"&&(r.set_space_before_token(i.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&o.has_wrapped_attrs&&r.print_newline(!1)),r.print_token(i)),o.indent_content&&!(o.is_unformatted||o.is_content_unformatted)&&(r.indent(),o.indent_content=!1),!o.is_inline_element&&!(o.is_unformatted||o.is_content_unformatted)&&r.set_wrap_point(),O},y.prototype._handle_inside_tag=function(r,i,o,O){var w=o.has_wrapped_attrs,R={text:i.text,type:i.type};return r.set_space_before_token(i.newlines||i.whitespace_before!=="",!0),o.is_unformatted?r.add_raw_token(i):o.tag_start_char==="{"&&i.type===e.TEXT?r.print_preserved_newlines(i)?(i.newlines=0,r.add_raw_token(i)):r.print_token(i):(i.type===e.ATTRIBUTE?r.set_space_before_token(!0):(i.type===e.EQUALS||i.type===e.VALUE&&i.previous.type===e.EQUALS)&&r.set_space_before_token(!1),i.type===e.ATTRIBUTE&&o.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(r.traverse_whitespace(i),w=w||i.newlines!==0),this._is_wrap_attributes_force&&o.attr_count>=this._options.wrap_attributes_min_attrs&&(O.type!==e.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(r.print_newline(!1),w=!0)),r.print_token(i),w=w||r.previous_token_wrapped(),o.has_wrapped_attrs=w),R},y.prototype._handle_text=function(r,i,o){var O={text:i.text,type:"TK_CONTENT"};return o.custom_beautifier_name?this._print_custom_beatifier_text(r,i,o):o.is_unformatted||o.is_content_unformatted?r.add_raw_token(i):(r.traverse_whitespace(i),r.print_token(i)),O},y.prototype._print_custom_beatifier_text=function(r,i,o){var O=this;if(i.text!==""){var w=i.text,R,f=1,m="",l="";o.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?R=this._js_beautify:o.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?R=this._css_beautify:o.custom_beautifier_name==="html"&&(R=function(k,C){var I=new y(k,C,O._js_beautify,O._css_beautify);return I.beautify()}),this._options.indent_scripts==="keep"?f=0:this._options.indent_scripts==="separate"&&(f=-r.indent_level);var x=r.get_full_indent(f);if(w=w.replace(/\n[ \t]*$/,""),o.custom_beautifier_name!=="html"&&w[0]==="<"&&w.match(/^(<!--|<!\[CDATA\[)/)){var t=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(w);if(!t){r.add_raw_token(i);return}m=x+t[1]+`
41
+ `,w=t[4],t[5]&&(l=x+t[5]),w=w.replace(/\n[ \t]*$/,""),(t[2]||t[3].indexOf(`
42
+ `)!==-1)&&(t=t[3].match(/[ \t]+$/),t&&(i.whitespace_before=t[0]))}if(w)if(R){var d=function(){this.eol=`
43
+ `};d.prototype=this._options.raw_options;var g=new d;w=R(x+w,g)}else{var T=i.whitespace_before;T&&(w=w.replace(new RegExp(`
44
+ (`+T+")?","g"),`
45
+ `)),w=x+w.replace(/\n/g,`
46
+ `+x)}m&&(w?w=m+w+`
47
+ `+l:w=m+l),r.print_newline(!1),w&&(i.text=w,i.whitespace_before="",i.newlines=0,r.add_raw_token(i),r.print_newline(!0))}},y.prototype._handle_tag_open=function(r,i,o,O,w){var R=this._get_tag_open_token(i);if((o.is_unformatted||o.is_content_unformatted)&&!o.is_empty_element&&i.type===e.TAG_OPEN&&!R.is_start_tag?(r.add_raw_token(i),R.start_tag_token=this._tag_stack.try_pop(R.tag_name)):(r.traverse_whitespace(i),this._set_tag_position(r,i,R,o,O),R.is_inline_element||r.set_wrap_point(),r.print_token(i)),R.is_start_tag&&this._is_wrap_attributes_force){var f=0,m;do m=w.peek(f),m.type===e.ATTRIBUTE&&(R.attr_count+=1),f+=1;while(m.type!==e.EOF&&m.type!==e.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(R.alignment_size=i.text.length+1),!R.tag_complete&&!R.is_unformatted&&(r.alignment_size=R.alignment_size),R};var S=function(r,i,o){if(this.parent=i||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!o)this.tag_complete=!0;else{var O;this.tag_start_char=o.text[0],this.text=o.text,this.tag_start_char==="<"?(O=o.text.match(/^<([^\s>]*)/),this.tag_check=O?O[1]:""):(O=o.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=O?O[1]:"",(o.text.startsWith("{{#>")||o.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&o.next!==null?this.tag_check=o.next.text.split(" ")[0]:this.tag_check=o.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),o.type===e.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||o.closed&&o.closed.text==="/>";var w=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(w=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(!r.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(w)))}};y.prototype._get_tag_open_token=function(r){var i=new S(this._options,this._tag_stack.get_parser_token(),r);return i.alignment_size=this._options.wrap_attributes_indent_size,i.is_end_tag=i.is_end_tag||E(i.tag_check,this._options.void_elements),i.is_empty_element=i.tag_complete||i.is_start_tag&&i.is_end_tag,i.is_unformatted=!i.tag_complete&&E(i.tag_check,this._options.unformatted),i.is_content_unformatted=!i.is_empty_element&&E(i.tag_check,this._options.content_unformatted),i.is_inline_element=E(i.tag_name,this._options.inline)||this._options.inline_custom_elements&&i.tag_name.includes("-")||i.tag_start_char==="{",i},y.prototype._set_tag_position=function(r,i,o,O,w){if(o.is_empty_element||(o.is_end_tag?o.start_tag_token=this._tag_stack.try_pop(o.tag_name):(this._do_optional_end_element(o)&&(o.is_inline_element||r.print_newline(!1)),this._tag_stack.record_tag(o),(o.tag_name==="script"||o.tag_name==="style")&&!(o.is_unformatted||o.is_content_unformatted)&&(o.custom_beautifier_name=u(o.tag_check,i)))),E(o.tag_check,this._options.extra_liners)&&(r.print_newline(!1),r._output.just_added_blankline()||r.print_newline(!0)),o.is_empty_element){if(o.tag_start_char==="{"&&o.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),o.indent_content=!0;var R=r.current_line_has_match(/{{#if/);R||r.print_newline(!1)}o.tag_name==="!--"&&w.type===e.TAG_CLOSE&&O.is_end_tag&&o.text.indexOf(`
48
+ `)===-1||(o.is_inline_element||o.is_unformatted||r.print_newline(!1),this._calcluate_parent_multiline(r,o))}else if(o.is_end_tag){var f=!1;f=o.start_tag_token&&o.start_tag_token.multiline_content,f=f||!o.is_inline_element&&!(O.is_inline_element||O.is_unformatted)&&!(w.type===e.TAG_CLOSE&&o.start_tag_token===O)&&w.type!=="TK_CONTENT",(o.is_content_unformatted||o.is_unformatted)&&(f=!1),f&&r.print_newline(!1)}else o.indent_content=!o.custom_beautifier_name,o.tag_start_char==="<"&&(o.tag_name==="html"?o.indent_content=this._options.indent_inner_html:o.tag_name==="head"?o.indent_content=this._options.indent_head_inner_html:o.tag_name==="body"&&(o.indent_content=this._options.indent_body_inner_html)),!(o.is_inline_element||o.is_unformatted)&&(w.type!=="TK_CONTENT"||o.is_content_unformatted)&&r.print_newline(!1),this._calcluate_parent_multiline(r,o)},y.prototype._calcluate_parent_multiline=function(r,i){i.parent&&r._output.just_added_newline()&&!((i.is_inline_element||i.is_unformatted)&&i.parent.is_inline_element)&&(i.parent.multiline_content=!0)};var A=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],L=["a","audio","del","ins","map","noscript","video"];return y.prototype._do_optional_end_element=function(r){var i=null;if(!(r.is_empty_element||!r.is_start_tag||!r.parent)){if(r.tag_name==="body")i=i||this._tag_stack.try_pop("head");else if(r.tag_name==="li")i=i||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(r.tag_name==="dd"||r.tag_name==="dt")i=i||this._tag_stack.try_pop("dt",["dl"]),i=i||this._tag_stack.try_pop("dd",["dl"]);else if(r.parent.tag_name==="p"&&A.indexOf(r.tag_name)!==-1){var o=r.parent.parent;(!o||L.indexOf(o.tag_name)===-1)&&(i=i||this._tag_stack.try_pop("p"))}else r.tag_name==="rp"||r.tag_name==="rt"?(i=i||this._tag_stack.try_pop("rt",["ruby","rtc"]),i=i||this._tag_stack.try_pop("rp",["ruby","rtc"])):r.tag_name==="optgroup"?i=i||this._tag_stack.try_pop("optgroup",["select"]):r.tag_name==="option"?i=i||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):r.tag_name==="colgroup"?i=i||this._tag_stack.try_pop("caption",["table"]):r.tag_name==="thead"?(i=i||this._tag_stack.try_pop("caption",["table"]),i=i||this._tag_stack.try_pop("colgroup",["table"])):r.tag_name==="tbody"||r.tag_name==="tfoot"?(i=i||this._tag_stack.try_pop("caption",["table"]),i=i||this._tag_stack.try_pop("colgroup",["table"]),i=i||this._tag_stack.try_pop("thead",["table"]),i=i||this._tag_stack.try_pop("tbody",["table"])):r.tag_name==="tr"?(i=i||this._tag_stack.try_pop("caption",["table"]),i=i||this._tag_stack.try_pop("colgroup",["table"]),i=i||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(r.tag_name==="th"||r.tag_name==="td")&&(i=i||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),i=i||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return r.parent=this._tag_stack.get_parser_token(),i}},ot.Beautifier=y,ot}var Wt;function ye(){if(Wt)return $.exports;Wt=1;var p=ve().Beautifier,h=Yt().Options;function s(e,n,_,c){var a=new p(e,n,_,c);return a.beautify()}return $.exports=s,$.exports.defaultOptions=function(){return new h},$.exports}var Ut;function we(){if(Ut)return M;Ut=1;var p=ge(),h=be(),s=ye();function e(n,_,c,a){return c=c||p,a=a||h,s(n,_,c,a)}return e.defaultOptions=s.defaultOptions,M.js=p,M.css=h,M.html=e,M}var Kt;function xe(){return Kt||(Kt=1,function(p){function h(s,e,n){var _=function(c,a){return s.js_beautify(c,a)};return _.js=s.js_beautify,_.css=e.css_beautify,_.html=n.html_beautify,_.js_beautify=s.js_beautify,_.css_beautify=e.css_beautify,_.html_beautify=n.html_beautify,_}(function(s){var e=we();e.js_beautify=e.js,e.css_beautify=e.css,e.html_beautify=e.html,s.exports=h(e,e,e)})(p)}(Q)),Q.exports}var Ee=xe();const Oe=Ht(Ee),Te=["db","find","insertOne","insertMany","updateOne","updateMany","deleteOne","deleteMany","aggregate","project","match","group","sort","limit","skip","$match","$project","$group","$sort","$limit","$skip","$and","$or","$eq","$ne","$in","$nin"];function Re(p){return p.split(/(\s+|[{}[\]()=,:])/).map((s,e)=>s.trim()?/^['"`].*['"`]$/.test(s)?N.jsx("span",{className:"text-green-600 dark:text-green-400",children:s},e):/^\d+\.?\d*$/.test(s)?N.jsx("span",{className:"text-orange-600 dark:text-orange-400",children:s},e):Te.includes(s)?N.jsx("span",{className:"text-blue-600 dark:text-blue-400 font-semibold",children:s},e):N.jsx("span",{children:s},e):N.jsx("span",{children:s},e))}function ke({query:p}){const[h,s]=D.useState(!1),e=D.useMemo(()=>{try{return Oe.js(p,{indent_size:2,space_in_empty_paren:!0,max_preserve_newlines:2})}catch{return p}},[p]),n=async()=>{try{await navigator.clipboard.writeText(e),s(!0),setTimeout(()=>s(!1),2e3)}catch(c){console.error("Failed to copy: ",c)}},_=D.useMemo(()=>Re(e),[e]);return N.jsxs("div",{className:"bg-neutral-50 dark:bg-slate-900 rounded-lg p-4 font-mono text-sm overflow-x-auto relative",children:[N.jsx("button",{onClick:n,className:`absolute top-3 right-3 p-2 rounded-md transition-colors ${h?"bg-green-100 text-green-600 dark:bg-green-900/30 dark:text-green-400":"bg-white text-neutral-500 hover:text-neutral-700 hover:bg-neutral-100 dark:bg-slate-800 dark:text-neutral-400 dark:hover:text-neutral-300 dark:hover:bg-slate-700"}`,title:h?"Copied!":"Copy to clipboard",children:h?N.jsx(qt,{size:16}):N.jsx($t,{size:16})}),N.jsx("pre",{className:"whitespace-pre-wrap pr-12 text-neutral-800 dark:text-neutral-200",children:_})]})}const Ne=({queryPayload:p})=>{switch(p.type){case"mongodb":return N.jsx(ke,{query:p.query});default:return N.jsx(pe,{sql:p.query})}};function Se({query:p}){const h=[p.lens_entry_id&&{label:"Request",value:N.jsx(Jt,{to:`${Zt(te()).REQUESTS}/${p.lens_entry_id}`,className:"text-blue-600 hover:underline font-semibold",children:"View Request"}),className:"text-gray-900 dark:text-gray-100"},{label:"Time",value:N.jsx("span",{children:_e(p.created_at)}),className:"text-gray-900 dark:text-gray-100"},{label:"Duration",value:N.jsx("span",{children:p.data.duration}),className:"text-gray-900 dark:text-gray-100"},{label:"Provider",value:N.jsx("span",{children:p.data.type}),className:"text-gray-900 dark:text-gray-100"}].filter(s=>!!s);return N.jsxs("div",{className:"flex flex-col gap-4",children:[" ",N.jsx(se,{title:"Request Details",items:h}),N.jsx(ne,{tabs:[{id:"query",data:["query"],label:"Query",content:N.jsx(Ne,{queryPayload:p.data})}],defaultActiveTab:"query"})]})}const Pe=()=>{const{query:p,fetchQuery:h}=ie(),{id:s}=ee();return D.useEffect(()=>{s&&h(s)},[s]),N.jsx("div",{children:p&&N.jsx(Se,{query:p})})};export{Pe as default};
@@ -0,0 +1 @@
1
+ import{v as r,k as o,j as e,L as i}from"./index-C3XpMOuU.js";import{C as l,T as d,L as c}from"./Table-CXg4Wfwf.js";import{h as m}from"./date-BXZFS9Wq.js";function x(a){return e.jsx("span",{className:"text-red-600 dark:text-red-400 font-mono",children:a})}const u=()=>{const a=r(o());return[{name:"Query",render:t=>e.jsx("div",{className:"col-span-5",children:e.jsx("code",{className:"text-sm font-mono text-slate-800 dark:text-slate-300 leading-relaxed line-clamp-1",title:t.data.query,children:x(t.data.query)})})},{name:"Duration",render:t=>e.jsx("div",{className:"col-span-1 text-right",children:e.jsx("span",{className:"text-sm text-slate-600 dark:text-slate-400 font-mono",children:t.data.duration})})},{name:"Provider",render:t=>e.jsx("div",{className:"col-span-2 text-right",children:e.jsx("span",{className:"text-sm text-slate-600 dark:text-slate-400 font-mono",children:t.data.type})})},{name:"Happened",render:t=>{const{label:s,exact:n}=m(t.data.createdAt);return e.jsx("span",{className:"text-nowrap",title:n,children:s})},position:"end",class:"min-w-32"},{name:"Actions",render:t=>e.jsx(i,{to:`${a.QUERIES}/${t.id}`,className:"transition-colors duration-100 hover:text-white",children:e.jsx(l,{size:20})}),position:"end"}]},f=({hasMoreObject:a})=>e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"overflow-x-auto",children:e.jsx(d,{columns:u(),data:a.data})}),e.jsx(c,{paginatedPage:a})]});export{f as default};
@@ -0,0 +1 @@
1
+ import{r as l,j as t}from"./index-C3XpMOuU.js";import{D as d,T as o}from"./TabbedDataViewer-CoLeLuBm.js";import{f as m}from"./date-BXZFS9Wq.js";import{M as i,S as n}from"./StatusCode-ByIHR7Pe.js";const x=({request:a})=>{const e=l.useMemo(()=>m(a?.data?.createdAt),[a?.data?.createdAt]);if(!a||!a.data)return t.jsx(d,{title:"Request Details",items:[],emptyMessage:"No request data available"});const s=()=>a?.data?.headers?.host||"Unknown",r=l.useMemo(()=>[{label:"Time",value:e,className:"text-gray-900 dark:text-gray-100"},{label:"Hostname",value:s(),className:"text-gray-900 dark:text-gray-100 font-mono"},{label:"Method",value:a.data.method?t.jsx(i,{method:a.data.method}):"Unknown"},{label:"Request ID",value:a.data.id||"N/A",className:"text-gray-700 dark:text-gray-300 font-mono text-sm"},{label:"Path",value:a.data.path||"N/A",className:"text-gray-900 dark:text-gray-100 font-mono"},{label:"Status",value:a.data.status?t.jsx(n,{status:a.data.status}):"N/A"},{label:"Duration",value:a.data.duration||"N/A",className:"text-gray-900 dark:text-gray-100 font-medium"},{label:"IP Address",value:a.data.ip||"N/A",className:"text-gray-900 dark:text-gray-100 font-mono"}],[a.data,e]);return t.jsx(d,{title:"Request Details",items:r})},u=({request:a})=>{const e=[{id:"payload",label:"Payload",data:a.data.body},{id:"headers",label:"Headers",data:a.data.headers}],s=[{id:"response-body",label:"Body",data:a.data.response.json},{id:"response-headers",label:"Headers",data:a.data.response.headers}];return t.jsxs("div",{className:"flex flex-col gap-3",children:[t.jsx(x,{request:a}),a.data.user&&t.jsx(d,{title:"User",items:[{label:"ID",value:a?.data?.user?.id},{label:"Email",value:a?.data?.user?.email},{label:"Name",value:a?.data?.user?.name}]}),t.jsx(o,{tabs:e,title:"Request Data",defaultActiveTab:"payload"}),t.jsx(o,{tabs:s,title:"Response Data",defaultActiveTab:"response-body"})]})};export{u as default};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./RequestDetails-B9rQn1tY.js","./index-C3XpMOuU.js","./index-BPTSPdZM.css","./TabbedDataViewer-CoLeLuBm.js","./date-BXZFS9Wq.js","./StatusCode-ByIHR7Pe.js"])))=>i.map(i=>d[i]);
2
+ import{S as V,p as M,a as l,s as w,b as m,n as x,i as I,c as L,t as W,f as $,d as K,e as j,g as H,r as p,h as N,u as J,k as G,l as X,m as Y,j as T,_ as Z}from"./index-C3XpMOuU.js";var tt=class extends V{constructor(t,e){super(),this.options=e,this.#s=t,this.#i=null,this.#r=M(),this.options.experimental_prefetchInRender||this.#r.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(e)}#s;#t=void 0;#p=void 0;#e=void 0;#n;#c;#r;#i;#R;#l;#d;#o;#h;#a;#f=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),A(this.#t,this.options)?this.#u():this.updateResult(),this.#m())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Q(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Q(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#g(),this.#C(),this.#t.removeObserver(this)}setOptions(t){const e=this.options,s=this.#t;if(this.options=this.#s.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof l(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#O(),this.#t.setOptions(this.options),e._defaulted&&!w(this.options,e)&&this.#s.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&B(this.#t,s,this.options,e)&&this.#u(),this.updateResult(),r&&(this.#t!==s||l(this.options.enabled,this.#t)!==l(e.enabled,this.#t)||m(this.options.staleTime,this.#t)!==m(e.staleTime,this.#t))&&this.#b();const a=this.#v();r&&(this.#t!==s||l(this.options.enabled,this.#t)!==l(e.enabled,this.#t)||a!==this.#a)&&this.#y(a)}getOptimisticResult(t){const e=this.#s.getQueryCache().build(this.#s,t),s=this.createResult(e,t);return st(this,s)&&(this.#e=s,this.#c=this.options,this.#n=this.#t.state),s}getCurrentResult(){return this.#e}trackResult(t,e){return new Proxy(t,{get:(s,r)=>(this.trackProp(r),e?.(r),Reflect.get(s,r))})}trackProp(t){this.#f.add(t)}getCurrentQuery(){return this.#t}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=this.#s.defaultQueryOptions(t),s=this.#s.getQueryCache().build(this.#s,e);return s.fetch().then(()=>this.createResult(s,e))}fetch(t){return this.#u({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#e))}#u(t){this.#O();let e=this.#t.fetch(this.options,t);return t?.throwOnError||(e=e.catch(x)),e}#b(){this.#g();const t=m(this.options.staleTime,this.#t);if(I||this.#e.isStale||!L(t))return;const s=W(this.#e.dataUpdatedAt,t)+1;this.#o=setTimeout(()=>{this.#e.isStale||this.updateResult()},s)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(t){this.#C(),this.#a=t,!(I||l(this.options.enabled,this.#t)===!1||!L(this.#a)||this.#a===0)&&(this.#h=setInterval(()=>{(this.options.refetchIntervalInBackground||$.isFocused())&&this.#u()},this.#a))}#m(){this.#b(),this.#y(this.#v())}#g(){this.#o&&(clearTimeout(this.#o),this.#o=void 0)}#C(){this.#h&&(clearInterval(this.#h),this.#h=void 0)}createResult(t,e){const s=this.#t,r=this.options,a=this.#e,u=this.#n,i=this.#c,o=t!==s?t.state:this.#p,{state:d}=t;let n={...d},y=!1,h;if(e._optimisticResults){const c=this.hasListeners(),g=!c&&A(t,e),v=c&&B(t,s,e,r);(g||v)&&(n={...n,...K(d.data,t.options)}),e._optimisticResults==="isRestoring"&&(n.fetchStatus="idle")}let{error:_,errorUpdatedAt:P,status:R}=n;h=n.data;let D=!1;if(e.placeholderData!==void 0&&h===void 0&&R==="pending"){let c;a?.isPlaceholderData&&e.placeholderData===i?.placeholderData?(c=a.data,D=!0):c=typeof e.placeholderData=="function"?e.placeholderData(this.#d?.state.data,this.#d):e.placeholderData,c!==void 0&&(R="success",h=j(a?.data,c,e),y=!0)}if(e.select&&h!==void 0&&!D)if(a&&h===u?.data&&e.select===this.#R)h=this.#l;else try{this.#R=e.select,h=e.select(h),h=j(a?.data,h,e),this.#l=h,this.#i=null}catch(c){this.#i=c}this.#i&&(_=this.#i,h=this.#l,P=Date.now(),R="error");const O=n.fetchStatus==="fetching",S=R==="pending",E=R==="error",U=S&&O,k=h!==void 0,f={status:R,fetchStatus:n.fetchStatus,isPending:S,isSuccess:R==="success",isError:E,isInitialLoading:U,isLoading:U,data:h,dataUpdatedAt:n.dataUpdatedAt,error:_,errorUpdatedAt:P,failureCount:n.fetchFailureCount,failureReason:n.fetchFailureReason,errorUpdateCount:n.errorUpdateCount,isFetched:n.dataUpdateCount>0||n.errorUpdateCount>0,isFetchedAfterMount:n.dataUpdateCount>o.dataUpdateCount||n.errorUpdateCount>o.errorUpdateCount,isFetching:O,isRefetching:O&&!S,isLoadingError:E&&!k,isPaused:n.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:E&&k,isStale:F(t,e),refetch:this.refetch,promise:this.#r,isEnabled:l(e.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const c=C=>{f.status==="error"?C.reject(f.error):f.data!==void 0&&C.resolve(f.data)},g=()=>{const C=this.#r=f.promise=M();c(C)},v=this.#r;switch(v.status){case"pending":t.queryHash===s.queryHash&&c(v);break;case"fulfilled":(f.status==="error"||f.data!==v.value)&&g();break;case"rejected":(f.status!=="error"||f.error!==v.reason)&&g();break}}return f}updateResult(){const t=this.#e,e=this.createResult(this.#t,this.options);if(this.#n=this.#t.state,this.#c=this.options,this.#n.data!==void 0&&(this.#d=this.#t),w(e,t))return;this.#e=e;const s=()=>{if(!t)return!0;const{notifyOnChangeProps:r}=this.options,a=typeof r=="function"?r():r;if(a==="all"||!a&&!this.#f.size)return!0;const u=new Set(a??this.#f);return this.options.throwOnError&&u.add("error"),Object.keys(this.#e).some(i=>{const b=i;return this.#e[b]!==t[b]&&u.has(b)})};this.#S({listeners:s()})}#O(){const t=this.#s.getQueryCache().build(this.#s,this.options);if(t===this.#t)return;const e=this.#t;this.#t=t,this.#p=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#m()}#S(t){H.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(this.#e)}),this.#s.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function et(t,e){return l(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function A(t,e){return et(t,e)||t.state.data!==void 0&&Q(t,e,e.refetchOnMount)}function Q(t,e,s){if(l(e.enabled,t)!==!1&&m(e.staleTime,t)!=="static"){const r=typeof s=="function"?s(t):s;return r==="always"||r!==!1&&F(t,e)}return!1}function B(t,e,s,r){return(t!==e||l(r.enabled,t)===!1)&&(!s.suspense||t.state.status!=="error")&&F(t,s)}function F(t,e){return l(e.enabled,t)!==!1&&t.isStaleByTime(m(e.staleTime,t))}function st(t,e){return!w(t.getCurrentResult(),e)}var z=p.createContext(!1),rt=()=>p.useContext(z);z.Provider;function it(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var at=p.createContext(it()),nt=()=>p.useContext(at),ot=(t,e)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(e.isReset()||(t.retryOnMount=!1))},ht=t=>{p.useEffect(()=>{t.clearReset()},[t])},ut=({result:t,errorResetBoundary:e,throwOnError:s,query:r,suspense:a})=>t.isError&&!e.isReset()&&!t.isFetching&&r&&(a&&t.data===void 0||N(s,[t.error,r])),ct=t=>{if(t.suspense){const e=r=>r==="static"?r:Math.max(r??1e3,1e3),s=t.staleTime;t.staleTime=typeof s=="function"?(...r)=>e(s(...r)):e(s),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},lt=(t,e)=>t.isLoading&&t.isFetching&&!e,dt=(t,e)=>t?.suspense&&e.isPending,q=(t,e,s)=>e.fetchOptimistic(t).catch(()=>{s.clearReset()});function ft(t,e,s){const r=rt(),a=nt(),u=J(),i=u.defaultQueryOptions(t);u.getDefaultOptions().queries?._experimental_beforeQuery?.(i),i._optimisticResults=r?"isRestoring":"optimistic",ct(i),ot(i,a),ht(a);const b=!u.getQueryCache().get(i.queryHash),[o]=p.useState(()=>new e(u,i)),d=o.getOptimisticResult(i),n=!r&&t.subscribed!==!1;if(p.useSyncExternalStore(p.useCallback(y=>{const h=n?o.subscribe(H.batchCalls(y)):x;return o.updateResult(),h},[o,n]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),p.useEffect(()=>{o.setOptions(i)},[i,o]),dt(i,d))throw q(i,o,a);if(ut({result:d,errorResetBoundary:a,throwOnError:i.throwOnError,query:u.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw d.error;return u.getDefaultOptions().queries?._experimental_afterQuery?.(i,d),i.experimental_prefetchInRender&&!I&&lt(d,r)&&(b?q(i,o,a):u.getQueryCache().get(i.queryHash)?.promise)?.catch(x).finally(()=>{o.updateResult()}),i.notifyOnChangeProps?d:o.trackResult(d)}function pt(t,e){return ft(t,tt)}async function Rt(t,e){const s=await fetch(t,{headers:{"Content-Type":"application/json"},...e});if(!s.ok)throw new Error(`Failed to fetch: ${t}`);return s.json()}function bt(t,e){const s=G();return pt({queryKey:["request",t],queryFn:async()=>await Rt(X(`${s.api.requests}/${t}`)),enabled:!!t,...e})}const vt=p.lazy(()=>Z(()=>import("./RequestDetails-B9rQn1tY.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url)),gt=()=>{const{id:t}=Y(),{data:e}=bt(t);return T.jsx(T.Fragment,{children:e?.data&&T.jsx(vt,{request:e?.data})})};export{gt as default};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./RequetsTable-BN-1fud-.js","./index-C3XpMOuU.js","./index-BPTSPdZM.css","./Table-CXg4Wfwf.js","./StatusCode-ByIHR7Pe.js","./date-BXZFS9Wq.js"])))=>i.map(i=>d[i]);
2
+ import{r as e,j as m,_ as p}from"./index-C3XpMOuU.js";import{D as _,u as h}from"./useLensApi-BlL4RwJa.js";import{u as y}from"./useLoadMore-BqF649Mm.js";const E={created_at:"",data:{body:{},createdAt:"",duration:"",headers:{},id:"",ip:"",method:"GET",path:"",response:{headers:{},json:{}},status:0,user:null},id:"",lens_entry_id:null,type:"request"};function M(){const[t,u]=e.useState([]),[n,i]=e.useState(E),[l,s]=e.useState(!1),[c,f]=e.useState(_),{getAllRequests:a,getRequestById:d}=h(),q=e.useCallback(async r=>{s(!0),d(r).then(o=>{i(o.data)}).finally(()=>{s(!1)})},[d]),R=e.useCallback(async r=>{s(!0),a(r).then(o=>{u(o.data),f(o.meta)}).finally(()=>{s(!1)})},[a]);return{loadMoreRequests:e.useMemo(()=>({initialData:t,meta:c,loading:l,fetchRawPage:a}),[t,c,l,a]),fetchRequests:R,fetchRequest:q,request:n}}const g=e.lazy(()=>p(()=>import("./RequetsTable-BN-1fud-.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url)),L=()=>{const{loadMoreRequests:t,fetchRequests:u}=M(),n=y({paginatedPage:t});return e.useEffect(()=>{u()},[]),m.jsx(g,{hasMoreObject:n})};export{L as default};
@@ -0,0 +1 @@
1
+ import{v as o,k as d,j as t,L as s}from"./index-C3XpMOuU.js";import{C as i,T as m,L as l}from"./Table-CXg4Wfwf.js";import{M as u,S as x}from"./StatusCode-ByIHR7Pe.js";import{h as c}from"./date-BXZFS9Wq.js";const h=()=>{const a=o(d());return[{name:"Verb",render:e=>t.jsx(u,{method:e.data.method})},{name:"Path",render:e=>t.jsx(s,{to:`${a.REQUESTS}/${e.id}`,className:"line-clamp-2 max-w-80 min-w-40 text-base text-blue-600 dark:text-neutral-200 hover:underline",children:e.data.path})},{name:"Status",render:e=>t.jsx(x,{status:e.data.status})},{name:"Duration",value:e=>e.data.duration},{name:"Happened",render:e=>{const{label:n,exact:r}=c(e.data.createdAt);return t.jsx("span",{title:r,children:n})},position:"end",class:"min-w-32"},{name:"Actions",render:e=>t.jsx(s,{to:`${a.REQUESTS}/${e.id}`,className:"transition-colors duration-100 hover:text-white",children:t.jsx(i,{size:20})}),position:"end"}]},S=({hasMoreObject:a})=>t.jsxs("div",{children:[t.jsx(m,{columns:h(),data:a.data}),t.jsx(l,{paginatedPage:a})]});export{S as default};
@@ -0,0 +1 @@
1
+ import{j as r}from"./index-C3XpMOuU.js";function g({method:e}){const t={GET:"bg-gray-100 text-gray-800 dark:bg-gray-600 dark:text-white",POST:"bg-blue-100 text-blue-800 dark:bg-blue-600 dark:text-white",PUT:"bg-yellow-100 text-yellow-800 dark:bg-yellow-600 dark:text-white",DELETE:"bg-red-100 text-red-800 dark:bg-red-600 dark:text-white"};return r.jsx("span",{className:`rounded px-2 py-1 text-sm font-semibold ${t[e.toUpperCase()]||"bg-gray-100 text-gray-800 dark:bg-gray-600 dark:text-white"}`,children:e})}const d=e=>e>=200&&e<300?"bg-green-100 text-green-800 dark:bg-green-700 dark:text-green-100":e>=300&&e<400?"bg-blue-100 text-blue-800 dark:bg-blue-700 dark:text-blue-100":e>=400&&e<500?"bg-yellow-100 text-yellow-800 dark:bg-yellow-700 dark:text-yellow-100":e>=500?"bg-red-100 text-red-800 dark:bg-red-700 dark:text-red-100":"bg-gray-100 text-gray-800 dark:bg-neutral-700 dark:text-neutral-200",l=({status:e})=>r.jsx("span",{className:`rounded-lg px-2 py-1 text-sm font-semibold ${d(e)}`,children:e});export{g as M,l as S};
@@ -0,0 +1 @@
1
+ import{j as e,r as b}from"./index-C3XpMOuU.js";const N=({title:n,items:l,emptyMessage:c="No data available"})=>!l||l.length===0||l.every(s=>!s.value)?e.jsxs("div",{className:"bg-white dark:bg-neutral-800 border border-gray-200 dark:border-neutral-700 rounded-lg shadow-sm p-6",children:[e.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-gray-100",children:n})," ",e.jsx("p",{className:"text-center text-gray-500 dark:text-gray-400",children:c})]}):e.jsxs("div",{className:"bg-white dark:bg-neutral-800 border border-gray-200 dark:border-neutral-700 rounded-lg shadow-sm",children:[e.jsx("div",{className:"px-6 py-4 border-b border-gray-200 dark:border-neutral-700 bg-gray-50 dark:bg-neutral-900",children:e.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-gray-100",children:n})}),e.jsx("div",{className:"px-6 py-4",children:e.jsx("div",{className:"space-y-4",children:l.map((s,i)=>e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-start gap-2",children:[e.jsx("div",{className:"w-full sm:w-32 flex-shrink-0",children:e.jsx("span",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:s.label})}),e.jsx("div",{className:"flex-1",children:typeof s.value=="string"?e.jsx("span",{className:`text-sm ${s.className||""}`,children:s.value}):s.value})]},i))})})]});function t(n="key"){return n+"-"+Math.random().toString(36).substr(2,9)}const k=({data:n})=>{const[l,c]=b.useState(!1),s=async()=>{try{await navigator.clipboard.writeText(JSON.stringify(n,null,2)),c(!0),setTimeout(()=>c(!1),2e3)}catch(d){console.error("Failed to copy: ",d)}},i=()=>e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),e.jsx("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})]}),a=()=>e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"M20 6 9 17l-5-5"})}),h=(d,p=0)=>{const r=[],x=" ".repeat(p);if(Array.isArray(d))r.push(e.jsx("span",{className:"text-neutral-600 dark:text-neutral-400",children:"["},t("open-bracket"))),d.forEach((u,m)=>{r.push(e.jsx("br",{},t("br"))),r.push(e.jsxs("span",{className:"text-transparent",children:[x," "]},t("indent"))),r.push(...h(u,p+1)),m<d.length-1&&r.push(e.jsx("span",{className:"text-neutral-600 dark:text-neutral-400",children:","},t("comma")))}),r.push(e.jsx("br",{},t("br-close"))),r.push(e.jsx("span",{className:"text-transparent",children:x},t("indent-close"))),r.push(e.jsx("span",{className:"text-neutral-600 dark:text-neutral-400",children:"]"},t("close-bracket")));else if(typeof d=="object"&&d!==null){r.push(e.jsx("span",{className:"text-neutral-600 dark:text-neutral-400",children:"{"},t("open-brace")));const u=Object.entries(d);u.forEach(([m,o],g)=>{r.push(e.jsx("br",{},t("br"))),r.push(e.jsxs("span",{className:"text-transparent",children:[x," "]},t("indent"))),r.push(e.jsxs("span",{className:"text-blue-600 dark:text-blue-400",children:['"',m,'"']},t("key"))),r.push(e.jsxs("span",{className:"text-neutral-600 dark:text-neutral-400",children:[":"," "]},t("colon"))),typeof o=="string"?r.push(e.jsxs("span",{className:"text-green-600 dark:text-green-400",children:['"',o,'"']},t("value-string"))):typeof o=="number"?r.push(e.jsx("span",{className:"text-orange-600 dark:text-orange-400",children:o},t("value-number"))):typeof o=="boolean"?r.push(e.jsx("span",{className:"text-purple-600 dark:text-purple-400",children:o.toString()},t("value-boolean"))):o===null?r.push(e.jsx("span",{className:"text-neutral-500 dark:text-neutral-400",children:"null"},t("value-null"))):r.push(...h(o,p+1)),g<u.length-1&&r.push(e.jsx("span",{className:"text-neutral-600 dark:text-neutral-400",children:","},t("comma")))}),r.push(e.jsx("br",{},t("br-close"))),r.push(e.jsx("span",{className:"text-transparent",children:x},t("indent-close"))),r.push(e.jsx("span",{className:"text-neutral-600 dark:text-neutral-400",children:"}"},t("close-brace")))}return r};return e.jsxs("div",{className:"bg-neutral-50 dark:bg-slate-900 rounded-lg p-4 font-mono text-sm overflow-x-auto relative",children:[e.jsx("button",{onClick:s,className:`absolute top-3 right-3 p-2 rounded-md transition-colors ${l?"bg-green-100 text-green-600 dark:bg-green-900/30 dark:text-green-400":"bg-white text-neutral-500 hover:text-neutral-700 hover:bg-neutral-100 dark:bg-slate-800 dark:text-neutral-400 dark:hover:text-neutral-300 dark:hover:bg-slate-700"}`,title:l?"Copied!":"Copy to clipboard",children:l?e.jsx(a,{}):e.jsx(i,{})}),e.jsx("pre",{className:"whitespace-pre-wrap pr-12 text-neutral-800 dark:text-neutral-200",children:h(n)})]})},f=({tabs:n,title:l,defaultActiveTab:c})=>{const[s,i]=b.useState(c||n[0]?.id||"");return e.jsxs("div",{className:"border border-neutral-200 dark:border-neutral-700 rounded-[15px] shadow-sm",children:[l&&e.jsx("div",{className:"px-6 py-4 rounded-t-[15px] border-b border-neutral-200 dark:border-neutral-700 bg-neutral-50 dark:bg-neutral-900",children:e.jsx("h2",{className:"text-lg font-semibold text-neutral-900 dark:text-neutral-100",children:l})}),e.jsx("div",{className:"border-b rounded-[15px] border-neutral-200 dark:border-neutral-700",children:e.jsx("nav",{className:"flex space-x-8 px-6","aria-label":"Tabs",children:n.map(a=>e.jsx("button",{onClick:()=>i(a.id),className:`py-4 px-1 border-b-2 font-medium text-sm transition-colors duration-200 ${s===a.id?"border-blue-500 text-blue-600 dark:text-blue-400":"border-transparent text-neutral-500 dark:text-neutral-400 hover:text-neutral-700 dark:hover:text-neutral-300 hover:border-neutral-300 dark:hover:border-neutral-600"}`,children:a.label},a.id))})}),e.jsx("div",{className:"p-6 ",children:n.map(a=>e.jsx("div",{className:s===a.id?"block":"hidden",children:a.content?e.jsx("div",{children:a.content}):e.jsx(e.Fragment,{children:a.data&&e.jsx(k,{data:a.data})})},a.id))})]})};export{N as D,f as T};
@@ -0,0 +1,6 @@
1
+ import{o as je,j as w}from"./index-C3XpMOuU.js";/**
2
+ * @license lucide-react v0.541.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const Pe=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m12 16 4-4-4-4",key:"1i9zcv"}],["path",{d:"M8 12h8",key:"1wcyev"}]],ur=je("circle-arrow-right",Pe),ie="-",Ge=e=>{const a=Te(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{const u=l.split(ie);return u[0]===""&&u.length!==1&&u.shift(),ke(u,a)||Ne(l)},getConflictingClassGroupIds:(l,u)=>{const p=s[l]||[];return u&&r[l]?[...p,...r[l]]:p}}},ke=(e,a)=>{if(e.length===0)return a.classGroupId;const s=e[0],r=a.nextPart.get(s),c=r?ke(e.slice(1),r):void 0;if(c)return c;if(a.validators.length===0)return;const n=e.join(ie);return a.validators.find(({validator:l})=>l(n))?.classGroupId},be=/^\[(.+)\]$/,Ne=e=>{if(be.test(e)){const a=be.exec(e)[1],s=a?.substring(0,a.indexOf(":"));if(s)return"arbitrary.."+s}},Te=e=>{const{theme:a,classGroups:s}=e,r={nextPart:new Map,validators:[]};for(const c in s)se(s[c],r,c,a);return r},se=(e,a,s,r)=>{e.forEach(c=>{if(typeof c=="string"){const n=c===""?a:he(a,c);n.classGroupId=s;return}if(typeof c=="function"){if(Ee(c)){se(c(r),a,s,r);return}a.validators.push({validator:c,classGroupId:s});return}Object.entries(c).forEach(([n,l])=>{se(l,he(a,n),s,r)})})},he=(e,a)=>{let s=e;return a.split(ie).forEach(r=>{s.nextPart.has(r)||s.nextPart.set(r,{nextPart:new Map,validators:[]}),s=s.nextPart.get(r)}),s},Ee=e=>e.isThemeGetter,Le=e=>{if(e<1)return{get:()=>{},set:()=>{}};let a=0,s=new Map,r=new Map;const c=(n,l)=>{s.set(n,l),a++,a>e&&(a=0,r=s,s=new Map)};return{get(n){let l=s.get(n);if(l!==void 0)return l;if((l=r.get(n))!==void 0)return c(n,l),l},set(n,l){s.has(n)?s.set(n,l):c(n,l)}}},ne="!",ae=":",Ve=ae.length,_e=e=>{const{prefix:a,experimentalParseClassName:s}=e;let r=c=>{const n=[];let l=0,u=0,p=0,b;for(let k=0;k<c.length;k++){let v=c[k];if(l===0&&u===0){if(v===ae){n.push(c.slice(p,k)),p=k+Ve;continue}if(v==="/"){b=k;continue}}v==="["?l++:v==="]"?l--:v==="("?u++:v===")"&&u--}const h=n.length===0?c:c.substring(p),S=Oe(h),O=S!==h,F=b&&b>p?b-p:void 0;return{modifiers:n,hasImportantModifier:O,baseClassName:S,maybePostfixModifierPosition:F}};if(a){const c=a+ae,n=r;r=l=>l.startsWith(c)?n(l.substring(c.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:l,maybePostfixModifierPosition:void 0}}if(s){const c=r;r=n=>s({className:n,parseClassName:c})}return r},Oe=e=>e.endsWith(ne)?e.substring(0,e.length-1):e.startsWith(ne)?e.substring(1):e,Fe=e=>{const a=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const c=[];let n=[];return r.forEach(l=>{l[0]==="["||a[l]?(c.push(...n.sort(),l),n=[]):n.push(l)}),c.push(...n.sort()),c}},Be=e=>({cache:Le(e.cacheSize),parseClassName:_e(e),sortModifiers:Fe(e),...Ge(e)}),We=/\s+/,$e=(e,a)=>{const{parseClassName:s,getClassGroupId:r,getConflictingClassGroupIds:c,sortModifiers:n}=a,l=[],u=e.trim().split(We);let p="";for(let b=u.length-1;b>=0;b-=1){const h=u[b],{isExternal:S,modifiers:O,hasImportantModifier:F,baseClassName:k,maybePostfixModifierPosition:v}=s(h);if(S){p=h+(p.length>0?" "+p:p);continue}let G=!!v,R=r(G?k.substring(0,v):k);if(!R){if(!G){p=h+(p.length>0?" "+p:p);continue}if(R=r(k),!R){p=h+(p.length>0?" "+p:p);continue}G=!1}const q=n(O).join(":"),B=F?q+ne:q,N=B+R;if(l.includes(N))continue;l.push(N);const T=c(R,G);for(let I=0;I<T.length;++I){const W=T[I];l.push(B+W)}p=h+(p.length>0?" "+p:p)}return p};function Ue(){let e=0,a,s,r="";for(;e<arguments.length;)(a=arguments[e++])&&(s=we(a))&&(r&&(r+=" "),r+=s);return r}const we=e=>{if(typeof e=="string")return e;let a,s="";for(let r=0;r<e.length;r++)e[r]&&(a=we(e[r]))&&(s&&(s+=" "),s+=a);return s};function qe(e,...a){let s,r,c,n=l;function l(p){const b=a.reduce((h,S)=>S(h),e());return s=Be(b),r=s.cache.get,c=s.cache.set,n=u,u(p)}function u(p){const b=r(p);if(b)return b;const h=$e(p,s);return c(p,h),h}return function(){return n(Ue.apply(null,arguments))}}const f=e=>{const a=s=>s[e]||[];return a.isThemeGetter=!0,a},ve=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ze=/^\((?:(\w[\w-]*):)?(.+)\)$/i,He=/^\d+\/\d+$/,Je=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Xe=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,De=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ke=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Qe=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,L=e=>He.test(e),m=e=>!!e&&!Number.isNaN(Number(e)),A=e=>!!e&&Number.isInteger(Number(e)),oe=e=>e.endsWith("%")&&m(e.slice(0,-1)),M=e=>Je.test(e),Ye=()=>!0,Ze=e=>Xe.test(e)&&!De.test(e),Ce=()=>!1,er=e=>Ke.test(e),rr=e=>Qe.test(e),or=e=>!o(e)&&!t(e),tr=e=>V(e,Ae,Ce),o=e=>ve.test(e),P=e=>V(e,Re,Ze),te=e=>V(e,lr,m),xe=e=>V(e,Me,Ce),sr=e=>V(e,Se,rr),Q=e=>V(e,Ie,er),t=e=>ze.test(e),$=e=>_(e,Re),nr=e=>_(e,cr),ye=e=>_(e,Me),ar=e=>_(e,Ae),ir=e=>_(e,Se),Y=e=>_(e,Ie,!0),V=(e,a,s)=>{const r=ve.exec(e);return r?r[1]?a(r[1]):s(r[2]):!1},_=(e,a,s=!1)=>{const r=ze.exec(e);return r?r[1]?a(r[1]):s:!1},Me=e=>e==="position"||e==="percentage",Se=e=>e==="image"||e==="url",Ae=e=>e==="length"||e==="size"||e==="bg-size",Re=e=>e==="length",lr=e=>e==="number",cr=e=>e==="family-name",Ie=e=>e==="shadow",dr=()=>{const e=f("color"),a=f("font"),s=f("text"),r=f("font-weight"),c=f("tracking"),n=f("leading"),l=f("breakpoint"),u=f("container"),p=f("spacing"),b=f("radius"),h=f("shadow"),S=f("inset-shadow"),O=f("text-shadow"),F=f("drop-shadow"),k=f("blur"),v=f("perspective"),G=f("aspect"),R=f("ease"),q=f("animate"),B=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],T=()=>[...N(),t,o],I=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto","contain","none"],d=()=>[t,o,p],z=()=>[L,"full","auto",...d()],le=()=>[A,"none","subgrid",t,o],ce=()=>["auto",{span:["full",A,t,o]},A,t,o],H=()=>[A,"auto",t,o],de=()=>["auto","min","max","fr",t,o],Z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],E=()=>["start","end","center","stretch","center-safe","end-safe"],C=()=>["auto",...d()],j=()=>[L,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...d()],i=()=>[e,t,o],me=()=>[...N(),ye,xe,{position:[t,o]}],pe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ue=()=>["auto","cover","contain",ar,tr,{size:[t,o]}],ee=()=>[oe,$,P],x=()=>["","none","full",b,t,o],y=()=>["",m,$,P],J=()=>["solid","dashed","dotted","double"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],g=()=>[m,oe,ye,xe],ge=()=>["","none",k,t,o],X=()=>["none",m,t,o],D=()=>["none",m,t,o],re=()=>[m,t,o],K=()=>[L,"full",...d()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[M],breakpoint:[M],color:[Ye],container:[M],"drop-shadow":[M],ease:["in","out","in-out"],font:[or],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[M],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[M],shadow:[M],spacing:["px",m],text:[M],"text-shadow":[M],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",L,o,t,G]}],container:["container"],columns:[{columns:[m,o,t,u]}],"break-after":[{"break-after":B()}],"break-before":[{"break-before":B()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:T()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{start:z()}],end:[{end:z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[A,"auto",t,o]}],basis:[{basis:[L,"full","auto",u,...d()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[m,L,"auto","initial","none",o]}],grow:[{grow:["",m,t,o]}],shrink:[{shrink:["",m,t,o]}],order:[{order:[A,"first","last","none",t,o]}],"grid-cols":[{"grid-cols":le()}],"col-start-end":[{col:ce()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":le()}],"row-start-end":[{row:ce()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":de()}],"auto-rows":[{"auto-rows":de()}],gap:[{gap:d()}],"gap-x":[{"gap-x":d()}],"gap-y":[{"gap-y":d()}],"justify-content":[{justify:[...Z(),"normal"]}],"justify-items":[{"justify-items":[...E(),"normal"]}],"justify-self":[{"justify-self":["auto",...E()]}],"align-content":[{content:["normal",...Z()]}],"align-items":[{items:[...E(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...E(),{baseline:["","last"]}]}],"place-content":[{"place-content":Z()}],"place-items":[{"place-items":[...E(),"baseline"]}],"place-self":[{"place-self":["auto",...E()]}],p:[{p:d()}],px:[{px:d()}],py:[{py:d()}],ps:[{ps:d()}],pe:[{pe:d()}],pt:[{pt:d()}],pr:[{pr:d()}],pb:[{pb:d()}],pl:[{pl:d()}],m:[{m:C()}],mx:[{mx:C()}],my:[{my:C()}],ms:[{ms:C()}],me:[{me:C()}],mt:[{mt:C()}],mr:[{mr:C()}],mb:[{mb:C()}],ml:[{ml:C()}],"space-x":[{"space-x":d()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":d()}],"space-y-reverse":["space-y-reverse"],size:[{size:j()}],w:[{w:[u,"screen",...j()]}],"min-w":[{"min-w":[u,"screen","none",...j()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[l]},...j()]}],h:[{h:["screen","lh",...j()]}],"min-h":[{"min-h":["screen","lh","none",...j()]}],"max-h":[{"max-h":["screen","lh",...j()]}],"font-size":[{text:["base",s,$,P]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,t,te]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",oe,o]}],"font-family":[{font:[nr,o,a]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[c,t,o]}],"line-clamp":[{"line-clamp":[m,"none",t,te]}],leading:[{leading:[n,...d()]}],"list-image":[{"list-image":["none",t,o]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",t,o]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:i()}],"text-color":[{text:i()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:[m,"from-font","auto",t,P]}],"text-decoration-color":[{decoration:i()}],"underline-offset":[{"underline-offset":[m,"auto",t,o]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:d()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",t,o]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",t,o]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:me()}],"bg-repeat":[{bg:pe()}],"bg-size":[{bg:ue()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},A,t,o],radial:["",t,o],conic:[A,t,o]},ir,sr]}],"bg-color":[{bg:i()}],"gradient-from-pos":[{from:ee()}],"gradient-via-pos":[{via:ee()}],"gradient-to-pos":[{to:ee()}],"gradient-from":[{from:i()}],"gradient-via":[{via:i()}],"gradient-to":[{to:i()}],rounded:[{rounded:x()}],"rounded-s":[{"rounded-s":x()}],"rounded-e":[{"rounded-e":x()}],"rounded-t":[{"rounded-t":x()}],"rounded-r":[{"rounded-r":x()}],"rounded-b":[{"rounded-b":x()}],"rounded-l":[{"rounded-l":x()}],"rounded-ss":[{"rounded-ss":x()}],"rounded-se":[{"rounded-se":x()}],"rounded-ee":[{"rounded-ee":x()}],"rounded-es":[{"rounded-es":x()}],"rounded-tl":[{"rounded-tl":x()}],"rounded-tr":[{"rounded-tr":x()}],"rounded-br":[{"rounded-br":x()}],"rounded-bl":[{"rounded-bl":x()}],"border-w":[{border:y()}],"border-w-x":[{"border-x":y()}],"border-w-y":[{"border-y":y()}],"border-w-s":[{"border-s":y()}],"border-w-e":[{"border-e":y()}],"border-w-t":[{"border-t":y()}],"border-w-r":[{"border-r":y()}],"border-w-b":[{"border-b":y()}],"border-w-l":[{"border-l":y()}],"divide-x":[{"divide-x":y()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":y()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...J(),"hidden","none"]}],"divide-style":[{divide:[...J(),"hidden","none"]}],"border-color":[{border:i()}],"border-color-x":[{"border-x":i()}],"border-color-y":[{"border-y":i()}],"border-color-s":[{"border-s":i()}],"border-color-e":[{"border-e":i()}],"border-color-t":[{"border-t":i()}],"border-color-r":[{"border-r":i()}],"border-color-b":[{"border-b":i()}],"border-color-l":[{"border-l":i()}],"divide-color":[{divide:i()}],"outline-style":[{outline:[...J(),"none","hidden"]}],"outline-offset":[{"outline-offset":[m,t,o]}],"outline-w":[{outline:["",m,$,P]}],"outline-color":[{outline:i()}],shadow:[{shadow:["","none",h,Y,Q]}],"shadow-color":[{shadow:i()}],"inset-shadow":[{"inset-shadow":["none",S,Y,Q]}],"inset-shadow-color":[{"inset-shadow":i()}],"ring-w":[{ring:y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:i()}],"ring-offset-w":[{"ring-offset":[m,P]}],"ring-offset-color":[{"ring-offset":i()}],"inset-ring-w":[{"inset-ring":y()}],"inset-ring-color":[{"inset-ring":i()}],"text-shadow":[{"text-shadow":["none",O,Y,Q]}],"text-shadow-color":[{"text-shadow":i()}],opacity:[{opacity:[m,t,o]}],"mix-blend":[{"mix-blend":[...fe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":fe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[m]}],"mask-image-linear-from-pos":[{"mask-linear-from":g()}],"mask-image-linear-to-pos":[{"mask-linear-to":g()}],"mask-image-linear-from-color":[{"mask-linear-from":i()}],"mask-image-linear-to-color":[{"mask-linear-to":i()}],"mask-image-t-from-pos":[{"mask-t-from":g()}],"mask-image-t-to-pos":[{"mask-t-to":g()}],"mask-image-t-from-color":[{"mask-t-from":i()}],"mask-image-t-to-color":[{"mask-t-to":i()}],"mask-image-r-from-pos":[{"mask-r-from":g()}],"mask-image-r-to-pos":[{"mask-r-to":g()}],"mask-image-r-from-color":[{"mask-r-from":i()}],"mask-image-r-to-color":[{"mask-r-to":i()}],"mask-image-b-from-pos":[{"mask-b-from":g()}],"mask-image-b-to-pos":[{"mask-b-to":g()}],"mask-image-b-from-color":[{"mask-b-from":i()}],"mask-image-b-to-color":[{"mask-b-to":i()}],"mask-image-l-from-pos":[{"mask-l-from":g()}],"mask-image-l-to-pos":[{"mask-l-to":g()}],"mask-image-l-from-color":[{"mask-l-from":i()}],"mask-image-l-to-color":[{"mask-l-to":i()}],"mask-image-x-from-pos":[{"mask-x-from":g()}],"mask-image-x-to-pos":[{"mask-x-to":g()}],"mask-image-x-from-color":[{"mask-x-from":i()}],"mask-image-x-to-color":[{"mask-x-to":i()}],"mask-image-y-from-pos":[{"mask-y-from":g()}],"mask-image-y-to-pos":[{"mask-y-to":g()}],"mask-image-y-from-color":[{"mask-y-from":i()}],"mask-image-y-to-color":[{"mask-y-to":i()}],"mask-image-radial":[{"mask-radial":[t,o]}],"mask-image-radial-from-pos":[{"mask-radial-from":g()}],"mask-image-radial-to-pos":[{"mask-radial-to":g()}],"mask-image-radial-from-color":[{"mask-radial-from":i()}],"mask-image-radial-to-color":[{"mask-radial-to":i()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":N()}],"mask-image-conic-pos":[{"mask-conic":[m]}],"mask-image-conic-from-pos":[{"mask-conic-from":g()}],"mask-image-conic-to-pos":[{"mask-conic-to":g()}],"mask-image-conic-from-color":[{"mask-conic-from":i()}],"mask-image-conic-to-color":[{"mask-conic-to":i()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:me()}],"mask-repeat":[{mask:pe()}],"mask-size":[{mask:ue()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",t,o]}],filter:[{filter:["","none",t,o]}],blur:[{blur:ge()}],brightness:[{brightness:[m,t,o]}],contrast:[{contrast:[m,t,o]}],"drop-shadow":[{"drop-shadow":["","none",F,Y,Q]}],"drop-shadow-color":[{"drop-shadow":i()}],grayscale:[{grayscale:["",m,t,o]}],"hue-rotate":[{"hue-rotate":[m,t,o]}],invert:[{invert:["",m,t,o]}],saturate:[{saturate:[m,t,o]}],sepia:[{sepia:["",m,t,o]}],"backdrop-filter":[{"backdrop-filter":["","none",t,o]}],"backdrop-blur":[{"backdrop-blur":ge()}],"backdrop-brightness":[{"backdrop-brightness":[m,t,o]}],"backdrop-contrast":[{"backdrop-contrast":[m,t,o]}],"backdrop-grayscale":[{"backdrop-grayscale":["",m,t,o]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m,t,o]}],"backdrop-invert":[{"backdrop-invert":["",m,t,o]}],"backdrop-opacity":[{"backdrop-opacity":[m,t,o]}],"backdrop-saturate":[{"backdrop-saturate":[m,t,o]}],"backdrop-sepia":[{"backdrop-sepia":["",m,t,o]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":d()}],"border-spacing-x":[{"border-spacing-x":d()}],"border-spacing-y":[{"border-spacing-y":d()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",t,o]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[m,"initial",t,o]}],ease:[{ease:["linear","initial",R,t,o]}],delay:[{delay:[m,t,o]}],animate:[{animate:["none",q,t,o]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,t,o]}],"perspective-origin":[{"perspective-origin":T()}],rotate:[{rotate:X()}],"rotate-x":[{"rotate-x":X()}],"rotate-y":[{"rotate-y":X()}],"rotate-z":[{"rotate-z":X()}],scale:[{scale:D()}],"scale-x":[{"scale-x":D()}],"scale-y":[{"scale-y":D()}],"scale-z":[{"scale-z":D()}],"scale-3d":["scale-3d"],skew:[{skew:re()}],"skew-x":[{"skew-x":re()}],"skew-y":[{"skew-y":re()}],transform:[{transform:[t,o,"","none","gpu","cpu"]}],"transform-origin":[{origin:T()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:K()}],"translate-x":[{"translate-x":K()}],"translate-y":[{"translate-y":K()}],"translate-z":[{"translate-z":K()}],"translate-none":["translate-none"],accent:[{accent:i()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:i()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",t,o]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":d()}],"scroll-mx":[{"scroll-mx":d()}],"scroll-my":[{"scroll-my":d()}],"scroll-ms":[{"scroll-ms":d()}],"scroll-me":[{"scroll-me":d()}],"scroll-mt":[{"scroll-mt":d()}],"scroll-mr":[{"scroll-mr":d()}],"scroll-mb":[{"scroll-mb":d()}],"scroll-ml":[{"scroll-ml":d()}],"scroll-p":[{"scroll-p":d()}],"scroll-px":[{"scroll-px":d()}],"scroll-py":[{"scroll-py":d()}],"scroll-ps":[{"scroll-ps":d()}],"scroll-pe":[{"scroll-pe":d()}],"scroll-pt":[{"scroll-pt":d()}],"scroll-pr":[{"scroll-pr":d()}],"scroll-pb":[{"scroll-pb":d()}],"scroll-pl":[{"scroll-pl":d()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",t,o]}],fill:[{fill:["none",...i()]}],"stroke-w":[{stroke:[m,$,P,te]}],stroke:[{stroke:["none",...i()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},U=qe(dr);function fr({paginatedPage:e}){return e.hasMore?w.jsx("div",{className:"flex justify-center p-4",children:w.jsx("button",{onClick:e.loadMore,disabled:e.loading,className:U("px-4 py-2 rounded-md bg-gray-200 text-gray-800 dark:bg-neutral-800 dark:text-white text-sm hover:bg-gray-300 dark:hover:bg-neutral-700 transition-colors",e.loading&&"opacity-50 cursor-not-allowed"),children:e.loading?"Loading...":"Load More"})}):null}function mr(e,a){return a.trim()?a.split(".").reduce((s,r)=>{if(typeof s=="object"&&s!==null&&r in s)return s[r]},e):e}function gr({columns:e,data:a}){const s=e.filter(r=>!r.hidden);return w.jsx("div",{className:"relative overflow-x-auto",children:w.jsxs("table",{className:"w-full text-start",children:[w.jsx("thead",{children:w.jsx("tr",{children:s.map((r,c)=>w.jsx("th",{scope:"col",className:U("min-w-32 bg-gray-50 dark:bg-neutral-900 p-5 text-sm font-semibold text-gray-900 dark:text-neutral-200 first:rounded-s-lg last:rounded-e-lg",r.position==="end"?"text-end":""),children:w.jsxs("div",{className:U("flex items-center gap-2",r.position==="end"?"justify-end":"justify-start"),children:[r.headPrefix&&r.headPrefix(),r.name]})},c))})}),w.jsx("tbody",{children:a.map((r,c)=>w.jsx("tr",{className:"max-h-none overflow-hidden rounded-lg text-sm font-medium text-gray-800 dark:text-neutral-400 even:[&_td]:bg-gray-25 dark:even:[&_td]:bg-neutral-950 transition-colors",children:s.map((n,l)=>w.jsx("td",{className:U("p-5 first:rounded-s-lg last:rounded-e-lg bg-white dark:bg-transparent",n.position==="end"?"text-end":"text-start"),children:w.jsxs("div",{className:U("flex items-center gap-1",l<s.length-1&&n.position!=="end"&&"pe-8",n.class,n.position==="end"?"justify-end":"justify-start"),children:[n.icon&&n.icon(r),n.prefix&&n.prefix(r),n.render?n.render(r):n.key?String(mr(r,n.key)??"-"):n.value?n.value(r):"-",n.suffix&&n.suffix(r)]})},l))},c))})]})})}export{ur as C,fr as L,gr as T};
@@ -0,0 +1 @@
1
+ import{w as o}from"./index-C3XpMOuU.js";function a(){return o.tz.guess()}function n(t){return o.utc(t).tz(a())}const s=t=>{const r=n(t);return{label:r.fromNow(),exact:r.format("YYYY-MM-DD HH:mm:ss")}};function i(t,r="en"){if(!t)return"N/A";const e=n(t);return e.isValid()?`${e.locale(r).format("MMMM D, YYYY h:mm A")} (${e.fromNow()})`:"N/A"}export{i as f,s as h};
@@ -0,0 +1 @@
1
+ /*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--color-red-100:oklch(93.6% .032 17.717);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-800:oklch(44.4% .177 26.899);--color-orange-400:oklch(75% .183 55.934);--color-orange-600:oklch(64.6% .222 41.116);--color-yellow-100:oklch(97.3% .071 103.193);--color-yellow-600:oklch(68.1% .162 75.834);--color-yellow-700:oklch(55.4% .135 66.442);--color-yellow-800:oklch(47.6% .114 61.907);--color-green-100:oklch(96.2% .044 156.743);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-green-800:oklch(44.8% .119 151.328);--color-green-900:oklch(39.3% .095 152.535);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-indigo-400:oklch(67.3% .182 276.935);--color-indigo-600:oklch(51.1% .262 276.966);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-600:oklch(55.8% .288 302.321);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-300:oklch(86.9% .022 252.894);--color-slate-400:oklch(70.4% .04 256.788);--color-slate-600:oklch(44.6% .043 257.281);--color-slate-700:oklch(37.2% .044 257.287);--color-slate-800:oklch(27.9% .041 260.031);--color-slate-900:oklch(20.8% .042 265.755);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-neutral-50:oklch(98.5% 0 0);--color-neutral-100:oklch(97% 0 0);--color-neutral-200:oklch(92.2% 0 0);--color-neutral-300:oklch(87% 0 0);--color-neutral-400:oklch(70.8% 0 0);--color-neutral-500:oklch(55.6% 0 0);--color-neutral-600:oklch(43.9% 0 0);--color-neutral-700:oklch(37.1% 0 0);--color-neutral-800:oklch(26.9% 0 0);--color-neutral-900:oklch(20.5% 0 0);--color-neutral-950:oklch(14.5% 0 0);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--leading-relaxed:1.625;--radius-2xl:1rem;--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-geist-sans);--default-mono-font-family:var(--font-geist-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}:root{--bg-primary:0 0 0;--bg-secondary:15 15 15;--text-primary:248 250 252;--text-secondary:148 163 184}body{background-color:rgb(var(--bg-primary));color:rgb(var(--text-primary));transition:background-color .3s,color .3s}button{cursor:pointer}}@layer components;@layer utilities{.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.top-1\/2{top:50%}.top-3{top:calc(var(--spacing)*3)}.right-3{right:calc(var(--spacing)*3)}.left-1\/2{left:50%}.z-10{z-index:10}.z-20{z-index:20}.z-\[99\]{z-index:99}.z-\[100\]{z-index:100}.col-span-1{grid-column:span 1/span 1}.col-span-2{grid-column:span 2/span 2}.col-span-5{grid-column:span 5/span 5}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.my-5{margin-block:calc(var(--spacing)*5)}.my-6{margin-block:calc(var(--spacing)*6)}.mt-1{margin-top:calc(var(--spacing)*1)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.hidden{display:none}.h-5{height:calc(var(--spacing)*5)}.h-16{height:calc(var(--spacing)*16)}.h-20{height:calc(var(--spacing)*20)}.h-32{height:calc(var(--spacing)*32)}.h-full{height:100%}.h-screen{height:100vh}.max-h-none{max-height:none}.min-h-\[88vh\]{min-height:88vh}.min-h-screen{min-height:100vh}.w-3\/4{width:75%}.w-5{width:calc(var(--spacing)*5)}.w-16{width:calc(var(--spacing)*16)}.w-20{width:calc(var(--spacing)*20)}.w-32{width:calc(var(--spacing)*32)}.w-full{width:100%}.max-w-80{max-width:calc(var(--spacing)*80)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-32{min-width:calc(var(--spacing)*32)}.min-w-40{min-width:calc(var(--spacing)*40)}.min-w-60{min-width:calc(var(--spacing)*60)}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-\[120\%\]{--tw-translate-x: -120% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-0{--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.cursor-not-allowed{cursor:not-allowed}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-8{gap:calc(var(--spacing)*8)}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-x-8>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*8)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-x-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-\[10px\]{border-radius:10px}.rounded-\[15px\]{border-radius:15px}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-t-\[15px\]{border-top-left-radius:15px;border-top-right-radius:15px}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t-4{border-top-style:var(--tw-border-style);border-top-width:4px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-b-4{border-bottom-style:var(--tw-border-style);border-bottom-width:4px}.border-blue-500{border-color:var(--color-blue-500)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-900{border-color:var(--color-gray-900)}.border-green-500{border-color:var(--color-green-500)}.border-neutral-200{border-color:var(--color-neutral-200)}.border-neutral-800{border-color:var(--color-neutral-800)}.border-transparent{border-color:#0000}.bg-black\/40{background-color:#0006}@supports (color:color-mix(in lab,red,red)){.bg-black\/40{background-color:color-mix(in oklab,var(--color-black)40%,transparent)}}.bg-blue-100{background-color:var(--color-blue-100)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-900{background-color:var(--color-gray-900)}.bg-green-100{background-color:var(--color-green-100)}.bg-neutral-50{background-color:var(--color-neutral-50)}.bg-neutral-900{background-color:var(--color-neutral-900)}.bg-red-100{background-color:var(--color-red-100)}.bg-red-500{background-color:var(--color-red-500)}.bg-white{background-color:var(--color-white)}.bg-yellow-100{background-color:var(--color-yellow-100)}.p-2{padding:calc(var(--spacing)*2)}.p-2\.5{padding:calc(var(--spacing)*2.5)}.p-4{padding:calc(var(--spacing)*4)}.p-5{padding:calc(var(--spacing)*5)}.p-6{padding:calc(var(--spacing)*6)}.p-12{padding:calc(var(--spacing)*12)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-4{padding-block:calc(var(--spacing)*4)}.pe-8{padding-inline-end:calc(var(--spacing)*8)}.pr-12{padding-right:calc(var(--spacing)*12)}.pb-5{padding-bottom:calc(var(--spacing)*5)}.text-center{text-align:center}.text-end{text-align:end}.text-right{text-align:right}.text-start{text-align:start}.font-mono{font-family:var(--font-geist-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-nowrap{text-wrap:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-blue-600{color:var(--color-blue-600)}.text-blue-800{color:var(--color-blue-800)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-green-600{color:var(--color-green-600)}.text-green-800{color:var(--color-green-800)}.text-indigo-600{color:var(--color-indigo-600)}.text-neutral-500{color:var(--color-neutral-500)}.text-neutral-600{color:var(--color-neutral-600)}.text-neutral-800{color:var(--color-neutral-800)}.text-neutral-900{color:var(--color-neutral-900)}.text-orange-600{color:var(--color-orange-600)}.text-purple-600{color:var(--color-purple-600)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-800{color:var(--color-red-800)}.text-slate-300{color:var(--color-slate-300)}.text-slate-600{color:var(--color-slate-600)}.text-slate-800{color:var(--color-slate-800)}.text-slate-900{color:var(--color-slate-900)}.text-transparent{color:#0000}.text-white{color:var(--color-white)}.text-yellow-800{color:var(--color-yellow-800)}.opacity-50{opacity:.5}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.backdrop-blur-\[3px\]{--tw-backdrop-blur:blur(3px);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}@media (hover:hover){.group-hover\:text-red-400:is(:where(.group):hover *){color:var(--color-red-400)}}.first\:rounded-s-lg:first-child{border-start-start-radius:var(--radius);border-end-start-radius:var(--radius)}.last\:rounded-e-lg:last-child{border-start-end-radius:var(--radius);border-end-end-radius:var(--radius)}@media (hover:hover){.hover\:border-neutral-300:hover{border-color:var(--color-neutral-300)}.hover\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\:bg-gray-300:hover{background-color:var(--color-gray-300)}.hover\:bg-gray-800:hover{background-color:var(--color-gray-800)}.hover\:bg-neutral-100:hover{background-color:var(--color-neutral-100)}.hover\:bg-red-600:hover{background-color:var(--color-red-600)}.hover\:text-neutral-700:hover{color:var(--color-neutral-700)}.hover\:text-white:hover{color:var(--color-white)}.hover\:underline:hover{text-decoration-line:underline}.hover\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}@media (min-width:40rem){.sm\:w-32{width:calc(var(--spacing)*32)}.sm\:w-64{width:calc(var(--spacing)*64)}.sm\:flex-row{flex-direction:row}.sm\:items-start{align-items:flex-start}.sm\:p-12{padding:calc(var(--spacing)*12)}}@media (min-width:64rem){.lg\:sticky{position:sticky}.lg\:z-0{z-index:0}.lg\:hidden{display:none}.lg\:h-auto{height:auto}.lg\:w-auto{width:auto}.lg\:translate-x-0{--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.lg\:flex-row{flex-direction:row}.lg\:bg-transparent{background-color:#0000}.lg\:p-0{padding:calc(var(--spacing)*0)}}@media (prefers-color-scheme:dark){.dark\:border-neutral-700{border-color:var(--color-neutral-700)}.dark\:bg-blue-600{background-color:var(--color-blue-600)}.dark\:bg-blue-700{background-color:var(--color-blue-700)}.dark\:bg-gray-600{background-color:var(--color-gray-600)}.dark\:bg-green-700{background-color:var(--color-green-700)}.dark\:bg-green-900\/30{background-color:#0d542b4d}@supports (color:color-mix(in lab,red,red)){.dark\:bg-green-900\/30{background-color:color-mix(in oklab,var(--color-green-900)30%,transparent)}}.dark\:bg-neutral-700{background-color:var(--color-neutral-700)}.dark\:bg-neutral-800{background-color:var(--color-neutral-800)}.dark\:bg-neutral-900{background-color:var(--color-neutral-900)}.dark\:bg-red-600{background-color:var(--color-red-600)}.dark\:bg-red-700{background-color:var(--color-red-700)}.dark\:bg-slate-800{background-color:var(--color-slate-800)}.dark\:bg-slate-900{background-color:var(--color-slate-900)}.dark\:bg-transparent{background-color:#0000}.dark\:bg-yellow-600{background-color:var(--color-yellow-600)}.dark\:bg-yellow-700{background-color:var(--color-yellow-700)}.dark\:text-blue-100{color:var(--color-blue-100)}.dark\:text-blue-400{color:var(--color-blue-400)}.dark\:text-gray-100{color:var(--color-gray-100)}.dark\:text-gray-300{color:var(--color-gray-300)}.dark\:text-gray-400{color:var(--color-gray-400)}.dark\:text-gray-500{color:var(--color-gray-500)}.dark\:text-green-100{color:var(--color-green-100)}.dark\:text-green-400{color:var(--color-green-400)}.dark\:text-indigo-400{color:var(--color-indigo-400)}.dark\:text-neutral-100{color:var(--color-neutral-100)}.dark\:text-neutral-200{color:var(--color-neutral-200)}.dark\:text-neutral-300{color:var(--color-neutral-300)}.dark\:text-neutral-400{color:var(--color-neutral-400)}.dark\:text-orange-400{color:var(--color-orange-400)}.dark\:text-purple-400{color:var(--color-purple-400)}.dark\:text-red-100{color:var(--color-red-100)}.dark\:text-red-400{color:var(--color-red-400)}.dark\:text-slate-200{color:var(--color-slate-200)}.dark\:text-slate-300{color:var(--color-slate-300)}.dark\:text-slate-400{color:var(--color-slate-400)}.dark\:text-slate-600{color:var(--color-slate-600)}.dark\:text-white{color:var(--color-white)}.dark\:text-yellow-100{color:var(--color-yellow-100)}@media (hover:hover){.dark\:hover\:border-neutral-600:hover{border-color:var(--color-neutral-600)}.dark\:hover\:bg-neutral-700:hover{background-color:var(--color-neutral-700)}.dark\:hover\:bg-neutral-800\/50:hover{background-color:#26262680}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-neutral-800\/50:hover{background-color:color-mix(in oklab,var(--color-neutral-800)50%,transparent)}}.dark\:hover\:bg-slate-700:hover{background-color:var(--color-slate-700)}.dark\:hover\:text-neutral-300:hover{color:var(--color-neutral-300)}}.dark\:even\:\[\&_td\]\:bg-neutral-950:nth-child(2n) td{background-color:var(--color-neutral-950)}}.container{margin-inline:auto;padding-inline:10px}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}