libre-webui 0.44.1 → 0.45.0

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 (220) hide show
  1. package/backend/dist/index.d.ts.map +1 -1
  2. package/backend/dist/index.js +2 -0
  3. package/backend/dist/index.js.map +1 -1
  4. package/backend/dist/routes/chat.d.ts.map +1 -1
  5. package/backend/dist/routes/chat.js +10 -2
  6. package/backend/dist/routes/chat.js.map +1 -1
  7. package/backend/dist/routes/decisions.d.ts +3 -0
  8. package/backend/dist/routes/decisions.d.ts.map +1 -0
  9. package/backend/dist/routes/decisions.js +148 -0
  10. package/backend/dist/routes/decisions.js.map +1 -0
  11. package/backend/dist/services/apiTokenService.d.ts.map +1 -1
  12. package/backend/dist/services/apiTokenService.js +2 -0
  13. package/backend/dist/services/apiTokenService.js.map +1 -1
  14. package/backend/dist/services/authorizationService.d.ts +1 -1
  15. package/backend/dist/services/authorizationService.d.ts.map +1 -1
  16. package/backend/dist/services/authorizationService.js +8 -1
  17. package/backend/dist/services/authorizationService.js.map +1 -1
  18. package/backend/dist/services/chatGenerationService.d.ts +24 -2
  19. package/backend/dist/services/chatGenerationService.d.ts.map +1 -1
  20. package/backend/dist/services/chatGenerationService.js +72 -4
  21. package/backend/dist/services/chatGenerationService.js.map +1 -1
  22. package/backend/dist/services/chatRequestService.d.ts +11 -3
  23. package/backend/dist/services/chatRequestService.d.ts.map +1 -1
  24. package/backend/dist/services/chatRequestService.js +19 -3
  25. package/backend/dist/services/chatRequestService.js.map +1 -1
  26. package/backend/dist/services/contextCompactionService.d.ts.map +1 -1
  27. package/backend/dist/services/contextCompactionService.js +8 -0
  28. package/backend/dist/services/contextCompactionService.js.map +1 -1
  29. package/backend/dist/services/decisionAccessService.d.ts +16 -0
  30. package/backend/dist/services/decisionAccessService.d.ts.map +1 -0
  31. package/backend/dist/services/decisionAccessService.js +71 -0
  32. package/backend/dist/services/decisionAccessService.js.map +1 -0
  33. package/backend/dist/services/decisionService.d.ts +128 -0
  34. package/backend/dist/services/decisionService.d.ts.map +1 -0
  35. package/backend/dist/services/decisionService.js +515 -0
  36. package/backend/dist/services/decisionService.js.map +1 -0
  37. package/backend/dist/services/durableChatGenerationService.d.ts.map +1 -1
  38. package/backend/dist/services/durableChatGenerationService.js +13 -2
  39. package/backend/dist/services/durableChatGenerationService.js.map +1 -1
  40. package/backend/dist/services/ollamaService.d.ts +6 -0
  41. package/backend/dist/services/ollamaService.d.ts.map +1 -1
  42. package/backend/dist/services/ollamaService.js +13 -0
  43. package/backend/dist/services/ollamaService.js.map +1 -1
  44. package/backend/dist/types/index.d.ts +38 -1
  45. package/backend/dist/types/index.d.ts.map +1 -1
  46. package/backend/dist/types/index.js.map +1 -1
  47. package/backend/dist/utils/decisionProtocol.d.ts +164 -0
  48. package/backend/dist/utils/decisionProtocol.d.ts.map +1 -0
  49. package/backend/dist/utils/decisionProtocol.js +755 -0
  50. package/backend/dist/utils/decisionProtocol.js.map +1 -0
  51. package/backend/dist/utils/ollamaLibrary.d.ts.map +1 -1
  52. package/backend/dist/utils/ollamaLibrary.js +26 -7
  53. package/backend/dist/utils/ollamaLibrary.js.map +1 -1
  54. package/backend/dist/utils/pluginDefinitionTrust.d.ts.map +1 -1
  55. package/backend/dist/utils/pluginDefinitionTrust.js +51 -7
  56. package/backend/dist/utils/pluginDefinitionTrust.js.map +1 -1
  57. package/backend/dist/utils/pluginModelCatalog.d.ts +4 -2
  58. package/backend/dist/utils/pluginModelCatalog.d.ts.map +1 -1
  59. package/backend/dist/utils/pluginModelCatalog.js +12 -2
  60. package/backend/dist/utils/pluginModelCatalog.js.map +1 -1
  61. package/backend/dist/websocketServer.d.ts.map +1 -1
  62. package/backend/dist/websocketServer.js +23 -6
  63. package/backend/dist/websocketServer.js.map +1 -1
  64. package/backend/package.json +2 -2
  65. package/frontend/dist/artifact-runtime/.build-fingerprint +1 -1
  66. package/frontend/dist/artifact-runtime/babel.js +172 -172
  67. package/frontend/dist/artifact-runtime/framer-motion.js +2 -2
  68. package/frontend/dist/artifact-runtime/lucide-react.js +1 -1
  69. package/frontend/dist/artifact-runtime/papaparse.js +2 -2
  70. package/frontend/dist/artifact-runtime/plotly.js +5 -5
  71. package/frontend/dist/artifact-runtime/tailwind.js +16 -16
  72. package/frontend/dist/assets/index-C2A5Ko4-.js +59 -0
  73. package/frontend/dist/assets/index-FrFgrp5E.css +2 -0
  74. package/frontend/dist/index.html +28 -28
  75. package/frontend/dist/js/{ArtifactContainer-C2PgJwen.js → ArtifactContainer-DCCcjK16.js} +1 -1
  76. package/frontend/dist/js/{ArtifactDemoPage-Dcy-lVrh.js → ArtifactDemoPage-C-1acgxJ.js} +1 -1
  77. package/frontend/dist/js/{ArtifactSandboxFrame-C7gLjHfY.js → ArtifactSandboxFrame-BXWNhmtI.js} +1 -1
  78. package/frontend/dist/js/{ArtifactSlideOutPanel-BKZQ7VwV.js → ArtifactSlideOutPanel-CvfdP_o2.js} +1 -1
  79. package/frontend/dist/js/{AutomationModal-zImHyodn.js → AutomationModal-D7qiRMhj.js} +1 -1
  80. package/frontend/dist/js/{AutomationsPage-BuJ1Y810.js → AutomationsPage-v98Ucl9p.js} +1 -1
  81. package/frontend/dist/js/{AvatarUpload-BECcVNWc.js → AvatarUpload-W41SCHKE.js} +1 -1
  82. package/frontend/dist/js/{Button-BGE6ZJv5.js → Button-D6d7HYoa.js} +1 -1
  83. package/frontend/dist/js/{CalendarPage-hF8Gk80e.js → CalendarPage-DkAa61Pa.js} +1 -1
  84. package/frontend/dist/js/ChannelsPage-0Vnfpgdr.js +1 -0
  85. package/frontend/dist/js/ChatPage-iyMY-uoE.js +14 -0
  86. package/frontend/dist/js/{ConnectModels-DVd2RDUM.js → ConnectModels-CpWO6ALS.js} +1 -1
  87. package/frontend/dist/js/{EvaluationsPage-D_R88N9b.js → EvaluationsPage-C7WHA1MJ.js} +1 -1
  88. package/frontend/dist/js/{FirstTimeSetup-CQQUhpPj.js → FirstTimeSetup-B8wcelBc.js} +1 -1
  89. package/frontend/dist/js/{GalleryPage-BYyAx84l.js → GalleryPage-u7dYKl3q.js} +1 -1
  90. package/frontend/dist/js/{HomePage-BRjiDJZa.js → HomePage-Cjlt3b9n.js} +1 -1
  91. package/frontend/dist/js/{LanguageSwitcher-0vFsK1v-.js → LanguageSwitcher-gbTZY15P.js} +1 -1
  92. package/frontend/dist/js/{Logo-GlNrhpKp.js → Logo-DhV6D_3q.js} +1 -1
  93. package/frontend/dist/js/{LogoMark-rgOHhWo-.js → LogoMark-CmF1lHXT.js} +1 -1
  94. package/frontend/dist/js/{ModelManagerModals-BK0iqnHd.js → ModelManagerModals-12hL-b-U.js} +1 -1
  95. package/frontend/dist/js/{NotesPage-DD6EntAT.js → NotesPage-BQWBA5li.js} +2 -2
  96. package/frontend/dist/js/{PasswordStrengthMeter-DrXjBWiT.js → PasswordStrengthMeter-DdqX0FXA.js} +1 -1
  97. package/frontend/dist/js/PersonasPage-B8mFdWcX.js +13 -0
  98. package/frontend/dist/js/{PluginUsagePage-BBfqotzy.js → PluginUsagePage-Uz6aHPIp.js} +1 -1
  99. package/frontend/dist/js/{RichMessageContent-BcBbr-Q2.js → RichMessageContent-CVk-fp0N.js} +1 -1
  100. package/frontend/dist/js/{RichMessageContent-Cdz4MI7q.js → RichMessageContent-DwMoWuR_.js} +1 -1
  101. package/frontend/dist/js/SettingsModal-CfjxNSmJ.js +19 -0
  102. package/frontend/dist/js/{SettingsToggle-BT6cbOnw.js → SettingsToggle-CNUeo6DO.js} +1 -1
  103. package/frontend/dist/js/{ShareDialog-CTZp6YtI.js → ShareDialog-NwirTDLR.js} +1 -1
  104. package/frontend/dist/js/{StrandsPage-BYY6YV5N.js → StrandsPage-ddHNdb6J.js} +1 -1
  105. package/frontend/dist/js/{SystemPage-DaDG0V07.js → SystemPage-C_1exwI7.js} +1 -1
  106. package/frontend/dist/js/UserManagementPanel-hg7ztEtL.js +1 -0
  107. package/frontend/dist/js/{WhatsNewModal-DgMfeACt.js → WhatsNewModal-yYk7N4KY.js} +1 -1
  108. package/frontend/dist/js/WorkPage-i7yYRAuj.js +7 -0
  109. package/frontend/dist/js/api-BU13N8gU.js +1 -0
  110. package/frontend/dist/js/{api-Bje32kcr.js → api-Dasm8tVY.js} +1 -1
  111. package/frontend/dist/js/{appNavigation-6Vs8h0Iv.js → appNavigation-DqP7fTWU.js} +1 -1
  112. package/frontend/dist/js/{appStore-DmeFFzzj.js → appStore-DCIUnT8X.js} +2 -2
  113. package/frontend/dist/js/appVersion-PJGaVilS.js +1 -0
  114. package/frontend/dist/js/ar-CsCftCVF.js +2 -0
  115. package/frontend/dist/js/authStore-Bp17zKvS.js +1 -0
  116. package/frontend/dist/js/{authStore-DUmjkugT.js → authStore-ac5-hjOH.js} +3 -3
  117. package/frontend/dist/js/babel-C4LPTjCL.js +16 -0
  118. package/frontend/dist/js/bn-CvxUTZ9a.js +2 -0
  119. package/frontend/dist/js/chatStore-GhucyjJu.js +3 -0
  120. package/frontend/dist/js/{client-DIxMEDnJ.js → client-DxPoTB_C.js} +2 -2
  121. package/frontend/dist/js/{config-HBTc75oS.js → config-CQJEcQtz.js} +1 -1
  122. package/frontend/dist/js/cs-BovmMwcD.js +2 -0
  123. package/frontend/dist/js/da-Dof1gmsv.js +2 -0
  124. package/frontend/dist/js/de-CF9CXojW.js +2 -0
  125. package/frontend/dist/js/decisionsApi-BWB64EGn.js +1 -0
  126. package/frontend/dist/js/decisionsApi-CoJtg4PZ.js +1 -0
  127. package/frontend/dist/js/es-BXCt50HZ.js +2 -0
  128. package/frontend/dist/js/estree-DCoUd_wj.js +44 -0
  129. package/frontend/dist/js/{evaluationsApi-CJ9eIoSl.js → evaluationsApi-CBqKkjmI.js} +1 -1
  130. package/frontend/dist/js/fr-B5QcCDIw.js +2 -0
  131. package/frontend/dist/js/hi-BXYwSyKl.js +2 -0
  132. package/frontend/dist/js/html-DMnBrAcs.js +25 -0
  133. package/frontend/dist/js/id-BV3mY5L7.js +2 -0
  134. package/frontend/dist/js/is-BDK4LrQC.js +2 -0
  135. package/frontend/dist/js/it-DAeWl1Fm.js +2 -0
  136. package/frontend/dist/js/ja-DIJV01rA.js +2 -0
  137. package/frontend/dist/js/ko-Btr9-64X.js +2 -0
  138. package/frontend/dist/js/markdown-CQ4enQcD.js +70 -0
  139. package/frontend/dist/js/{messageCodeStyles-C0H1Lad5.js → messageCodeStyles-BugWE4s5.js} +2 -2
  140. package/frontend/dist/js/ms-DgVmv5zF.js +2 -0
  141. package/frontend/dist/js/nl-Dz5HpdLi.js +2 -0
  142. package/frontend/dist/js/pl-CIATY2b0.js +2 -0
  143. package/frontend/dist/js/postcss-CZstCllf.js +62 -0
  144. package/frontend/dist/js/pt-lrDXX76Y.js +2 -0
  145. package/frontend/dist/js/ru-_zovUYcg.js +2 -0
  146. package/frontend/dist/js/standalone-CttwqOis.js +29 -0
  147. package/frontend/dist/js/{strandsApi-Cuqp8JZv.js → strandsApi-Ck7FrcHH.js} +1 -1
  148. package/frontend/dist/js/sv-TkRDWCb8.js +2 -0
  149. package/frontend/dist/js/{teamEventStream-DHeJw2eu.js → teamEventStream-O3qGbUZz.js} +1 -1
  150. package/frontend/dist/js/th-CQyavDiP.js +2 -0
  151. package/frontend/dist/js/tr-CBcFl4_Z.js +2 -0
  152. package/frontend/dist/js/typescript-h2bi7nrV.js +22 -0
  153. package/frontend/dist/js/{ui-BPtWIxXL.js → ui-DxaHE9GD.js} +2 -2
  154. package/frontend/dist/js/{ui-vendor-Bac5e8jE.js → ui-vendor-DsURZnZt.js} +1 -1
  155. package/frontend/dist/js/uk-BNn1cUt8.js +2 -0
  156. package/frontend/dist/js/{useChat-DjRbGblw.js → useChat-1HyAPpCk.js} +1 -1
  157. package/frontend/dist/js/useDictation-B3vNgs5D.js +1 -0
  158. package/frontend/dist/js/{useQuery-DCqz3UJt.js → useQuery-Cs76KYuP.js} +1 -1
  159. package/frontend/dist/js/useTranslation-CKqEdZ8j.js +1 -0
  160. package/frontend/dist/js/utils-BXRzbHJC.js +1 -0
  161. package/frontend/dist/js/{utils-vendor-CsC5rH1J.js → utils-vendor-B4bGLP5p.js} +1 -1
  162. package/frontend/dist/js/vi-Be8GO7e_.js +2 -0
  163. package/frontend/dist/js/{workApi-Dkf48LjA.js → workApi-BNGRSv7q.js} +1 -1
  164. package/frontend/dist/js/workApi-C5jw1ra6.js +1 -0
  165. package/frontend/dist/js/yaml-CBt8G4BX.js +150 -0
  166. package/frontend/dist/js/zh-9CUKyYw5.js +2 -0
  167. package/package.json +4 -4
  168. package/plugins/baseten.json +17 -0
  169. package/plugins/gemini.json +9 -0
  170. package/plugins/llama-cpp.json +13 -0
  171. package/plugins/openai.json +13 -0
  172. package/plugins/openrouter.json +26 -0
  173. package/frontend/dist/assets/index-BM0txgxR.css +0 -2
  174. package/frontend/dist/assets/index-CYJjXpq5.js +0 -34
  175. package/frontend/dist/js/ChannelsPage-Bb7qgmXS.js +0 -1
  176. package/frontend/dist/js/ChatPage-BkMm-S6C.js +0 -14
  177. package/frontend/dist/js/PersonasPage-CkGtixCB.js +0 -13
  178. package/frontend/dist/js/SettingsModal-CKtlOet9.js +0 -19
  179. package/frontend/dist/js/UserManagementPanel-B7SuWPQg.js +0 -1
  180. package/frontend/dist/js/WorkPage-CVcyA61Q.js +0 -7
  181. package/frontend/dist/js/api-BSMl2Tok.js +0 -1
  182. package/frontend/dist/js/appVersion-DWwbhdm2.js +0 -1
  183. package/frontend/dist/js/ar-yKmq_nxn.js +0 -2
  184. package/frontend/dist/js/authStore-DQ-PhUey.js +0 -1
  185. package/frontend/dist/js/babel-BaOs8qJH.js +0 -16
  186. package/frontend/dist/js/bn-DAJjz2xA.js +0 -2
  187. package/frontend/dist/js/chatStore-Di86sm3T.js +0 -3
  188. package/frontend/dist/js/cs-BcctV9SN.js +0 -2
  189. package/frontend/dist/js/da-YtnjzG18.js +0 -2
  190. package/frontend/dist/js/de-BMQofu0d.js +0 -2
  191. package/frontend/dist/js/es-8oFYsnHw.js +0 -2
  192. package/frontend/dist/js/estree-Cw-tQG5d.js +0 -44
  193. package/frontend/dist/js/fr-CnGTnuJK.js +0 -2
  194. package/frontend/dist/js/hi-Ct5Inbp9.js +0 -2
  195. package/frontend/dist/js/html-Drt7kOJE.js +0 -25
  196. package/frontend/dist/js/id-CSqCL3hQ.js +0 -2
  197. package/frontend/dist/js/is-Bg68TmSt.js +0 -2
  198. package/frontend/dist/js/it-ZngXlxOR.js +0 -2
  199. package/frontend/dist/js/ja-DfQEoeFi.js +0 -2
  200. package/frontend/dist/js/ko-IifYVGBy.js +0 -2
  201. package/frontend/dist/js/markdown-C7cnJl_Q.js +0 -70
  202. package/frontend/dist/js/ms-C8jQLzkg.js +0 -2
  203. package/frontend/dist/js/nl-BFEa3rgC.js +0 -2
  204. package/frontend/dist/js/pl-BiPrQGU-.js +0 -2
  205. package/frontend/dist/js/postcss-DB_e0nkW.js +0 -62
  206. package/frontend/dist/js/pt-BziWZm5q.js +0 -2
  207. package/frontend/dist/js/ru-oTAEePGS.js +0 -2
  208. package/frontend/dist/js/standalone-YobQElH8.js +0 -29
  209. package/frontend/dist/js/sv-1_et6OWH.js +0 -2
  210. package/frontend/dist/js/th-DjyLzIKs.js +0 -2
  211. package/frontend/dist/js/tr-CCga9CbK.js +0 -2
  212. package/frontend/dist/js/typescript-2anSzo_N.js +0 -22
  213. package/frontend/dist/js/uk-h80KE68A.js +0 -2
  214. package/frontend/dist/js/useDictation-C31FhomS.js +0 -1
  215. package/frontend/dist/js/useTranslation-D-_KTORQ.js +0 -1
  216. package/frontend/dist/js/utils-DsCVr_wG.js +0 -1
  217. package/frontend/dist/js/vi-CQxzmgwi.js +0 -2
  218. package/frontend/dist/js/workApi-D4JbAtE2.js +0 -1
  219. package/frontend/dist/js/yaml-Breo7DWT.js +0 -154
  220. package/frontend/dist/js/zh-CS3_ndbP.js +0 -2
@@ -5,6 +5,6 @@
5
5
  `:`\r`}}function m(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function h(e){var t=(e||={}).delimiter,n=e.newline,r=e.comments,i=e.step,a=e.preview,c=e.fastMode,l=null,u=!1,d=e.quoteChar==null?`"`:e.quoteChar,f=d;if(e.escapeChar!==void 0&&(f=e.escapeChar),(typeof t!=`string`||-1<o.BAD_DELIMITERS.indexOf(t))&&(t=`,`),r===t)throw Error(`Comment character same as delimiter`);!0===r?r=`#`:(typeof r!=`string`||-1<o.BAD_DELIMITERS.indexOf(r))&&(r=!1),n!==`
6
6
  `&&n!==`\r`&&n!==`\r
7
7
  `&&(n=`
8
- `);var p=0,h=!1;this.parse=function(o,g,_){if(typeof o!=`string`)throw Error(`Input must be a string`);var v=o.length,y=t.length,b=n.length,S=r.length,C=x(i),w=[],T=[],E=[],D=p=0;if(!o)return z();if(c||!1!==c&&o.indexOf(d)===-1){for(var O=o.split(n),k=0;k<O.length;k++){if(E=O[k],p+=E.length,k!==O.length-1)p+=n.length;else if(_)return z();if(!r||E.substring(0,S)!==r){if(C){if(w=[],F(E.split(t)),B(),h)return z()}else F(E.split(t));if(a&&a<=k)return w=w.slice(0,a),z(!0)}}return z()}for(var A=o.indexOf(t,p),j=o.indexOf(n,p),M=new RegExp(m(f)+m(d),`g`),N=o.indexOf(d,p);;)if(o[p]===d)for(N=p,p++;;){if((N=o.indexOf(d,N+1))===-1)return _||T.push({type:`Quotes`,code:`MissingQuotes`,message:`Quoted field unterminated`,row:w.length,index:p}),L();if(N===v-1)return L(o.substring(p,N).replace(M,d));if(d===f&&o[N+1]===f)N++;else if(d===f||N===0||o[N-1]!==f){A!==-1&&A<N+1&&(A=o.indexOf(t,N+1));var P=I((j=j!==-1&&j<N+1?o.indexOf(n,N+1):j)===-1?A:Math.min(A,j));if(o.substr(N+1+P,y)===t){E.push(o.substring(p,N).replace(M,d)),o[p=N+1+P+y]!==d&&(N=o.indexOf(d,p)),A=o.indexOf(t,p),j=o.indexOf(n,p);break}if(P=I(j),o.substring(N+1+P,N+1+P+b)===n){if(E.push(o.substring(p,N).replace(M,d)),R(N+1+P+b),A=o.indexOf(t,p),N=o.indexOf(d,p),C&&(B(),h))return z();if(a&&w.length>=a)return z(!0);break}T.push({type:`Quotes`,code:`InvalidQuotes`,message:`Trailing quote on quoted field is malformed`,row:w.length,index:p}),N++}}else if(r&&E.length===0&&o.substring(p,p+S)===r){if(j===-1)return z();p=j+b,j=o.indexOf(n,p),A=o.indexOf(t,p)}else if(A!==-1&&(A<j||j===-1))E.push(o.substring(p,A)),p=A+y,A=o.indexOf(t,p);else{if(j===-1)break;if(E.push(o.substring(p,j)),R(j+b),C&&(B(),h))return z();if(a&&w.length>=a)return z(!0)}return L();function F(e){w.push(e),D=p}function I(e){var t=0;return t=e!==-1&&(e=o.substring(N+1,e))&&e.trim()===``?e.length:t}function L(e){return _||(e===void 0&&(e=o.substring(p)),E.push(e),p=v,F(E),C&&B()),z()}function R(e){p=e,F(E),E=[],j=o.indexOf(n,p)}function z(r){if(e.header&&!g&&w.length&&!u){var i=w[0],a=Object.create(null),o=new Set(i);let t=!1;for(let n=0;n<i.length;n++){let r=s(i[n]);if(a[r=x(e.transformHeader)?e.transformHeader(r,n):r]){let e,s=a[r];for(;e=r+`_`+s,s++,o.has(e););o.add(e),i[n]=e,a[r]++,t=!0,(l=l===null?{}:l)[e]=r}else a[r]=1,i[n]=r;o.add(r)}t&&console.warn(`Duplicate headers found and renamed.`),u=!0}return{data:w,errors:T,meta:{delimiter:t,linebreak:n,aborted:h,truncated:!!r,cursor:D+(g||0),renamedHeaders:l}}}function B(){i(z()),w=[],T=[]}},this.abort=function(){h=!0},this.getCharIndex=function(){return p}}function g(e){var t=e.data,n=i[t.workerId],r=!1;if(t.error)n.userError(t.error,t.file);else if(t.results&&t.results.data){var a={abort:function(){r=!0,_(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:v,resume:v};if(x(n.userStep)){for(var o=0;o<t.results.data.length&&(n.userStep({data:t.results.data[o],errors:t.results.errors,meta:t.results.meta},a),!r);o++);delete t.results}else x(n.userChunk)&&(n.userChunk(t.results,a,t.file),delete t.results)}t.finished&&!r&&_(t.workerId,t.results)}function _(e,t){var n=i[e];x(n.userComplete)&&n.userComplete(t),n.terminate(),delete i[e]}function v(){throw Error(`Not implemented.`)}function y(e){if(typeof e!=`object`||!e)return e;var t,n=Array.isArray(e)?[]:{};for(t in e)n[t]=y(e[t]);return n}function b(e,t){return function(){e.apply(t,arguments)}}function x(e){return typeof e==`function`}return o.parse=function(n,r){var c=(r||={}).dynamicTyping||!1;if(x(c)&&(r.dynamicTypingFunction=c,c={}),r.dynamicTyping=c,r.transform=!!x(r.transform)&&r.transform,r.downloadTimeout!==void 0){var c=parseInt(r.downloadTimeout);if(isNaN(c))throw Error(`Config downloadTimeout value (`+r.downloadTimeout+`) not parsable by parseInt(val).`);r.downloadTimeout=c}if(!r.worker||!o.WORKERS_SUPPORTED)return c=null,o.NODE_STREAM_INPUT,typeof n==`string`?(n=s(n),c=new(r.download?l:d)(r)):!0===n.readable&&x(n.read)&&x(n.on)?c=new f(r):(t.File&&n instanceof File||n instanceof Object)&&(c=new u(r)),c.stream(n);(c=(()=>{var n;return!!o.WORKERS_SUPPORTED&&(n=(()=>{var n=t.URL||t.webkitURL||null,r=e.toString();return o.BLOB_URL||=n.createObjectURL(new Blob([`var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; `,`(`,r,`)();`],{type:`text/javascript`}))})(),(n=new t.Worker(n)).onmessage=g,n.id=a++,i[n.id]=n)})()).userStep=r.step,c.userChunk=r.chunk,c.userComplete=r.complete,c.userError=r.error,r.step=x(r.step),r.chunk=x(r.chunk),r.complete=x(r.complete),r.error=x(r.error),delete r.worker,c.postMessage({input:n,config:r,workerId:c.id})},o.unparse=function(e,t){var n=!1,r=!0,i=`,`,a=`\r
9
- `,s=`"`,c=s+s,l=!1,u=null,d=!1,f=((()=>{if(typeof t==`object`){if(typeof t.delimiter!=`string`||o.BAD_DELIMITERS.filter(function(e){return t.delimiter.indexOf(e)!==-1}).length||(i=t.delimiter),typeof t.quotes!=`boolean`&&typeof t.quotes!=`function`&&!Array.isArray(t.quotes)||(n=t.quotes),typeof t.skipEmptyLines!=`boolean`&&typeof t.skipEmptyLines!=`string`||(l=t.skipEmptyLines),typeof t.newline==`string`&&(a=t.newline),typeof t.quoteChar==`string`&&(s=t.quoteChar,c=s+s),typeof t.header==`boolean`&&(r=t.header),Array.isArray(t.columns)){if(t.columns.length===0)throw Error(`Option columns is empty`);u=t.columns}t.escapeChar!==void 0&&(c=t.escapeChar+s),t.escapeFormulae instanceof RegExp?d=t.escapeFormulae:typeof t.escapeFormulae==`boolean`&&t.escapeFormulae&&(d=/^[=+\-@\t\r].*$/)}})(),new RegExp(m(s),`g`));if(typeof e==`string`&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return p(null,e,l);if(typeof e[0]==`object`)return p(u||Object.keys(e[0]),e,l)}else if(typeof e==`object`)return typeof e.data==`string`&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||u),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:typeof e.data[0]==`object`?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||typeof e.data[0]==`object`||(e.data=[e.data])),p(e.fields||[],e.data||[],l);throw Error(`Unable to serialize unrecognized input`);function p(e,t,n){var o=``,s=(typeof e==`string`&&(e=JSON.parse(e)),typeof t==`string`&&(t=JSON.parse(t)),Array.isArray(e)&&0<e.length),c=!Array.isArray(t[0]);if(s&&r){for(var l=0;l<e.length;l++)0<l&&(o+=i),o+=h(e[l],l);0<t.length&&(o+=a)}for(var u=0;u<t.length;u++){var d=(s?e:t[u]).length,f=!1,p=s?Object.keys(t[u]).length===0:t[u].length===0;if(n&&!s&&(f=n===`greedy`?t[u].join(``).trim()===``:t[u].length===1&&t[u][0].length===0),n===`greedy`&&s){for(var m=[],g=0;g<d;g++){var _=c?e[g]:g;m.push(t[u][_])}f=m.join(``).trim()===``}if(!f){for(var v=0;v<d;v++){0<v&&!p&&(o+=i);var y=s&&c?e[v]:v;o+=h(t[u][y],v)}u<t.length-1&&(!n||0<d&&!p)&&(o+=a)}}return o}function h(e,t){var r,a,l;return e==null?``:e.constructor===Date?isNaN(e.getTime())?``:e.toISOString():(l=!1,d&&typeof e==`string`&&d.test(e)&&(e=`'`+e,l=!0),a=(r=e.toString()).replace(f,c),(l=l||!0===n||typeof n==`function`&&n(e,t)||Array.isArray(n)&&n[t]||((e,t)=>{for(var n=0;n<t.length;n++)if(-1<e.indexOf(t[n]))return!0;return!1})(a,o.BAD_DELIMITERS)||-1<a.indexOf(i)||-1<r.indexOf(s)||a.charAt(0)===` `||a.charAt(a.length-1)===` `)?s+a+s:a)}},o.RECORD_SEP=``,o.UNIT_SEP=``,o.BYTE_ORDER_MARK=``,o.BAD_DELIMITERS=[`\r`,`
8
+ `);var p=0,h=!1;this.parse=function(o,g,_){if(typeof o!=`string`)throw Error(`Input must be a string`);var v=o.length,y=t.length,b=n.length,S=r.length,C=x(i),w=[],T=[],E=[],D=p=0;if(!o)return z();if(c||!1!==c&&o.indexOf(d)===-1){for(var O=o.split(n),k=0;k<O.length;k++){if(E=O[k],p+=E.length,k!==O.length-1)p+=n.length;else if(_)return z();if(!r||E.substring(0,S)!==r){if(C){if(w=[],F(E.split(t)),B(),h)return z()}else F(E.split(t));if(a&&a<=k)return w=w.slice(0,a),z(!0)}}return z()}for(var A=o.indexOf(t,p),j=o.indexOf(n,p),M=new RegExp(m(f)+m(d),`g`),N=o.indexOf(d,p);;)if(o[p]===d)for(N=p,p++;;){if((N=o.indexOf(d,N+1))===-1)return _||T.push({type:`Quotes`,code:`MissingQuotes`,message:`Quoted field unterminated`,row:w.length,index:p}),L();if(N===v-1)return L(o.substring(p,N).replace(M,d));if(d===f&&o[N+1]===f)N++;else if(d===f||N===0||o[N-1]!==f){A!==-1&&A<N+1&&(A=o.indexOf(t,N+1));var P=I((j=j!==-1&&j<N+1?o.indexOf(n,N+1):j)===-1?A:Math.min(A,j));if(o.substr(N+1+P,y)===t){E.push(o.substring(p,N).replace(M,d)),o[p=N+1+P+y]!==d&&(N=o.indexOf(d,p)),A!==-1&&A<p&&(A=o.indexOf(t,p)),j!==-1&&j<p&&(j=o.indexOf(n,p));break}if(P=I(j),o.substring(N+1+P,N+1+P+b)===n){if(E.push(o.substring(p,N).replace(M,d)),R(N+1+P+b),A!==-1&&A<p&&(A=o.indexOf(t,p)),N=o.indexOf(d,p),C&&(B(),h))return z();if(a&&w.length>=a)return z(!0);break}T.push({type:`Quotes`,code:`InvalidQuotes`,message:`Trailing quote on quoted field is malformed`,row:w.length,index:p}),N++}}else if(r&&E.length===0&&o.substring(p,p+S)===r){if(j===-1)return z();p=j+b,j=o.indexOf(n,p),A!==-1&&A<p&&(A=o.indexOf(t,p))}else if(A!==-1&&(A<j||j===-1))E.push(o.substring(p,A)),p=A+y,A=o.indexOf(t,p);else{if(j===-1)break;if(E.push(o.substring(p,j)),R(j+b),C&&(B(),h))return z();if(a&&w.length>=a)return z(!0)}return L();function F(e){w.push(e),D=p}function I(e){var t=0;return t=e!==-1&&(e=o.substring(N+1,e))&&e.trim()===``?e.length:t}function L(e){return _||(e===void 0&&(e=o.substring(p)),E.push(e),p=v,F(E),C&&B()),z()}function R(e){p=e,F(E),E=[],j=o.indexOf(n,p)}function z(r){if(e.header&&!g&&w.length&&!u){var i=w[0],a=Object.create(null),o=new Set(i);let t=!1;for(let n=0;n<i.length;n++){let r=s(i[n]);if(a[r=x(e.transformHeader)?e.transformHeader(r,n):r]){let e,s=a[r];for(;e=r+`_`+s,s++,o.has(e););o.add(e),i[n]=e,a[r]++,t=!0,(l=l===null?{}:l)[e]=r}else a[r]=1,i[n]=r;o.add(r)}t&&console.warn(`Duplicate headers found and renamed.`),u=!0}return{data:w,errors:T,meta:{delimiter:t,linebreak:n,aborted:h,truncated:!!r,cursor:D+(g||0),renamedHeaders:l}}}function B(){i(z()),w=[],T=[]}},this.abort=function(){h=!0},this.getCharIndex=function(){return p}}function g(e){var t=e.data,n=i[t.workerId],r=!1;if(t.error)n.userError(t.error,t.file);else if(t.results&&t.results.data){var a={abort:function(){r=!0,_(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:v,resume:v};if(x(n.userStep)){for(var o=0;o<t.results.data.length&&(n.userStep({data:t.results.data[o],errors:t.results.errors,meta:t.results.meta},a),!r);o++);delete t.results}else x(n.userChunk)&&(n.userChunk(t.results,a,t.file),delete t.results)}t.finished&&!r&&_(t.workerId,t.results)}function _(e,t){var n=i[e];x(n.userComplete)&&n.userComplete(t),n.terminate(),delete i[e]}function v(){throw Error(`Not implemented.`)}function y(e){if(typeof e!=`object`||!e)return e;var t,n=Array.isArray(e)?[]:{};for(t in e)n[t]=y(e[t]);return n}function b(e,t){return function(){e.apply(t,arguments)}}function x(e){return typeof e==`function`}return o.parse=function(n,r){var c=(r||={}).dynamicTyping||!1;if(x(c)&&(r.dynamicTypingFunction=c,c={}),r.dynamicTyping=c,r.transform=!!x(r.transform)&&r.transform,r.downloadTimeout!==void 0){var c=parseInt(r.downloadTimeout);if(isNaN(c))throw Error(`Config downloadTimeout value (`+r.downloadTimeout+`) not parsable by parseInt(val).`);r.downloadTimeout=c}if(!r.worker||!o.WORKERS_SUPPORTED)return c=null,o.NODE_STREAM_INPUT,typeof n==`string`?(n=s(n),c=new(r.download?l:d)(r)):!0===n.readable&&x(n.read)&&x(n.on)?c=new f(r):(t.File&&n instanceof File||n instanceof Object)&&(c=new u(r)),c.stream(n);(c=(()=>{var n;return!!o.WORKERS_SUPPORTED&&(n=(()=>{var n=t.URL||t.webkitURL||null,r=e.toString();return o.BLOB_URL||=n.createObjectURL(new Blob([`var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; `,`(`,r,`)();`],{type:`text/javascript`}))})(),(n=new t.Worker(n)).onmessage=g,n.id=a++,i[n.id]=n)})()).userStep=r.step,c.userChunk=r.chunk,c.userComplete=r.complete,c.userError=r.error,r.step=x(r.step),r.chunk=x(r.chunk),r.complete=x(r.complete),r.error=x(r.error),delete r.worker,c.postMessage({input:n,config:r,workerId:c.id})},o.unparse=function(e,t){var n=!1,r=!0,i=`,`,a=`\r
9
+ `,s=`"`,c=s+s,l=!1,u=null,d=!1,f=((()=>{if(typeof t==`object`){if(typeof t.delimiter!=`string`||o.BAD_DELIMITERS.filter(function(e){return t.delimiter.indexOf(e)!==-1}).length||(i=t.delimiter),typeof t.quotes!=`boolean`&&typeof t.quotes!=`function`&&!Array.isArray(t.quotes)||(n=t.quotes),typeof t.skipEmptyLines!=`boolean`&&typeof t.skipEmptyLines!=`string`||(l=t.skipEmptyLines),typeof t.newline==`string`&&(a=t.newline),typeof t.quoteChar==`string`&&(s=t.quoteChar,c=s+s),typeof t.header==`boolean`&&(r=t.header),Array.isArray(t.columns)){if(t.columns.length===0)throw Error(`Option columns is empty`);u=t.columns}t.escapeChar!==void 0&&(c=t.escapeChar+s),t.escapeFormulae instanceof RegExp?d=t.escapeFormulae:typeof t.escapeFormulae==`boolean`&&t.escapeFormulae&&(d=/^[=+\-@\t\r].*$/)}})(),new RegExp(m(s),`g`));if(typeof e==`string`&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length)return p(u,e,l);if(Array.isArray(e[0]))return p(null,e,l);if(typeof e[0]==`object`)return p(u||Object.keys(e[0]),e,l)}else if(typeof e==`object`)return typeof e.data==`string`&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||u),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:typeof e.data[0]==`object`?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||typeof e.data[0]==`object`||(e.data=[e.data])),p(e.fields||[],e.data||[],l);throw Error(`Unable to serialize unrecognized input`);function p(e,t,n){var o=``,s=(typeof e==`string`&&(e=JSON.parse(e)),typeof t==`string`&&(t=JSON.parse(t)),Array.isArray(e)&&0<e.length),c=!Array.isArray(t[0]);if(s&&r){for(var l=0;l<e.length;l++)0<l&&(o+=i),o+=h(e[l],l);0<t.length&&(o+=a)}for(var u=0;u<t.length;u++){var d=(s?e:t[u]).length,f=!1,p=s?Object.keys(t[u]).length===0:t[u].length===0;if(n&&!s&&(f=n===`greedy`?t[u].join(``).trim()===``:t[u].length===1&&(t[u][0]==null||t[u][0].length===0)),n===`greedy`&&s){for(var m=[],g=0;g<d;g++){var _=c?e[g]:g;m.push(t[u][_])}f=m.join(``).trim()===``}if(!f){for(var v=0;v<d;v++){0<v&&!p&&(o+=i);var y=s&&c?e[v]:v;o+=h(t[u][y],v)}u<t.length-1&&(!n||0<d&&!p)&&(o+=a)}}return o}function h(e,t){var r,a,l;return e==null?``:e.constructor===Date?isNaN(e.getTime())?``:e.toISOString():(l=!1,r=e.toString(),d&&typeof e!=`number`&&typeof e!=`bigint`&&typeof e!=`boolean`&&d.test(r)&&(e=r=`'`+r,l=!0),a=r.replace(f,c),(l=l||!0===n||typeof n==`function`&&n(e,t)||Array.isArray(n)&&n[t]||((e,t)=>{for(var n=0;n<t.length;n++)if(-1<e.indexOf(t[n]))return!0;return!1})(a,o.BAD_DELIMITERS)||-1<a.indexOf(i)||-1<r.indexOf(s)||a.charAt(0)===` `||a.charAt(a.length-1)===` `)?s+a+s:a)}},o.RECORD_SEP=``,o.UNIT_SEP=``,o.BYTE_ORDER_MARK=``,o.BAD_DELIMITERS=[`\r`,`
10
10
  `,`"`,o.BYTE_ORDER_MARK],o.WORKERS_SUPPORTED=!n&&!!t.Worker,o.NODE_STREAM_INPUT=1,o.LocalChunkSize=10485760,o.RemoteChunkSize=5242880,o.DefaultDelimiter=`,`,o.Parser=h,o.ParserHandle=p,o.NetworkStreamer=l,o.FileStreamer=u,o.StringStreamer=d,o.ReadableStreamStreamer=f,r&&(t.onmessage=function(e){e=e.data,o.WORKER_ID===void 0&&e&&(o.WORKER_ID=e.workerId),typeof e.input==`string`?t.postMessage({workerId:o.WORKER_ID,results:o.parse(e.input,e.config),finished:!0}):(t.File&&e.input instanceof File||e.input instanceof Object)&&(e=o.parse(e.input,e.config))&&t.postMessage({workerId:o.WORKER_ID,results:e,finished:!0})}),(l.prototype=Object.create(c.prototype)).constructor=l,(u.prototype=Object.create(c.prototype)).constructor=u,(d.prototype=Object.create(d.prototype)).constructor=d,(f.prototype=Object.create(c.prototype)).constructor=f,o})}))()),l=window.__libreArtifactRuntime=window.__libreArtifactRuntime||{modules:{},register(e,t){for(let n of e)this.modules[n]=t},require(e){let t=this.modules[e];if(t===void 0)throw Error(`"`+e+`" is not one of the libraries available to artifacts.`);return t}},u=c.default??c;l.register([`papaparse`],u),window.Papa=u})();