@feedmepos/mf-inventory-portal 1.3.7 → 1.3.8-dev.1

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 (132) hide show
  1. package/dist/{App-D1-fT3jF.js → App-Dl97lAmD.js} +3 -3
  2. package/dist/ApprovalView-RePEhbhl.js +241 -0
  3. package/dist/{BindingsDialog-DeavyPY-.js → BindingsDialog-8QVbtnnq.js} +5 -5
  4. package/dist/{BindingsPicker-BGzhKq8G.js → BindingsPicker-D9yuDGcq.js} +3 -3
  5. package/dist/{BindingsTable-Dr9hWkE1.js → BindingsTable-DAYhI-6V.js} +5 -5
  6. package/dist/{ClosingDraftView-6gwWEWWB.js → ClosingDraftView-D_VtBfFG.js} +57 -57
  7. package/dist/{ClosingHistoryView-D4rNnlsq.js → ClosingHistoryView-ClUnxQS2.js} +4 -4
  8. package/dist/{ClosingTemplateView-DxCLH1GH.js → ClosingTemplateView-0a_isyyx.js} +16 -16
  9. package/dist/{DeliveryOrderPrintPreview-D-XeZX-z.js → DeliveryOrderPrintPreview-DovAi6j-.js} +17 -17
  10. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DeoaPLQm.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DjNZ0m13.js} +14 -14
  11. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BMhSHZ3Z.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-4vZH2hLF.js} +2 -2
  12. package/dist/{FmMultiselectDialog-DJFi54mG.js → FmMultiselectDialog-B5-aK-b2.js} +1 -1
  13. package/dist/{FmMultiselectDialog-BQZmTWDb.js → FmMultiselectDialog-Z49kK96R.js} +2 -2
  14. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DAivpdPp.js → FmUnitInput.vue_vue_type_script_setup_true_lang-zP1nS7bp.js} +4 -4
  15. package/dist/{ImportView-DPQY0ELT.js → ImportView-Dba8fJry.js} +6 -6
  16. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DeVYXEzb.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DHITBIhp.js} +1 -1
  17. package/dist/{IngredientGroupView-5AuPbMDz.js → IngredientGroupView-CHi5_A4T.js} +7 -7
  18. package/dist/{IngredientsView-qMotWYnL.js → IngredientsView-DWk27PJg.js} +17 -17
  19. package/dist/IntegrationExplorerView-CixgHWVb.js +22254 -0
  20. package/dist/{IntegrationView-CVdwhNTA.js → IntegrationView-fttszvyC.js} +13 -13
  21. package/dist/{InventoryBindingForm-B5KUYKIu.js → InventoryBindingForm-DDcM2paa.js} +1 -1
  22. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-pbyMU879.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DOHrtdbl.js} +5 -5
  23. package/dist/{InventoryBindingSummary-Bm3A2kmC.js → InventoryBindingSummary-BERshnpd.js} +1 -1
  24. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-NnoVkA8W.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D4u0MM_k.js} +1 -1
  25. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Dp4gFbs5.js → PremiumBadge.vue_vue_type_script_setup_true_lang-eFb-84g2.js} +1 -1
  26. package/dist/{PublishView-DOIiAeDK.js → PublishView-COGdnDHP.js} +3 -3
  27. package/dist/{PurchaseOrderPrintPreview-BE-8EJFv.js → PurchaseOrderPrintPreview-COJVgeTm.js} +12 -12
  28. package/dist/ReceiveRequestView-DvC12_QK.js +2817 -0
  29. package/dist/{RecipeView-CM-BrVSe.js → RecipeView-BKlVCFPR.js} +22 -21
  30. package/dist/SettingsView-DbXva8_D.js +695 -0
  31. package/dist/{StockView-DDqlms0m.js → StockView-Hri6SSjn.js} +21 -20
  32. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CcQ6bBWG.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DiRfjFmz.js} +1 -1
  33. package/dist/{SupplierView-CM2PrtHi.js → SupplierView-DCMW5muk.js} +14 -14
  34. package/dist/{SurchargeView-q2NfASMH.js → SurchargeView-DRh5EAi8.js} +8 -8
  35. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-BbZQZQTQ.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-BHNIS7Pp.js} +2 -2
  36. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Bp3joqMK.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BVyoZ2a4.js} +1 -1
  37. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CMSKhz6_.js +3790 -0
  38. package/dist/{TransferTemplateView-B26H_T9Q.js → TransferTemplateView-71XY525Q.js} +20 -19
  39. package/dist/{UnitCostHistoryView-BzumRVdx.js → UnitCostHistoryView-CjEaekfJ.js} +4 -4
  40. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-CfWpv2Mv.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-B8dRQhZi.js} +4 -4
  41. package/dist/{UnitView-Cxfg--TU.js → UnitView-D06txpBT.js} +9 -9
  42. package/dist/{WarehouseView-CvoafTrd.js → WarehouseView-DQluGq0D.js} +7 -7
  43. package/dist/{WastageTemplateView-Bqd4Wp3d.js → WastageTemplateView-Bqmd_r_Y.js} +16 -16
  44. package/dist/api/integration-sync-log.d.ts +47 -0
  45. package/dist/api/netsuite-explorer.d.ts +51 -0
  46. package/dist/{app-CrrDFeMj.js → app-B5-QVzib.js} +4711 -4557
  47. package/dist/app.d.ts +32 -0
  48. package/dist/app.js +2 -2
  49. package/dist/{closing-template-Ew74NLQj.js → closing-template-C3ClR8Pj.js} +1 -1
  50. package/dist/{component-DpCUABT3.js → component-kqxARxvM.js} +30 -21
  51. package/dist/components/row-action.enum.d.ts +3 -0
  52. package/dist/{date2-Bklbk2g-.js → date2-CQCX7jCE.js} +4 -4
  53. package/dist/{dayjs.min-B463GIlc.js → dayjs.min-Dhp0BWSV.js} +1 -1
  54. package/dist/{decimal-Dm2vbfDq.js → decimal-98G--u_X.js} +2 -2
  55. package/dist/defineDeepModel-BmHs4vdS.js +19 -0
  56. package/dist/{duplicate-template-CR79OmLy.js → duplicate-template-UzmArmcM.js} +1 -1
  57. package/dist/{export-CQJcxfPC.js → export-Bdxro0GT.js} +1 -1
  58. package/dist/feature-DyfUPR3b.js +1081 -0
  59. package/dist/{format-time-from-id-61ydd8RS.js → format-time-from-id-uRCD3JxF.js} +1 -1
  60. package/dist/{format-unit-display-BLtW28yU.js → format-unit-display-C-_85vuL.js} +13 -13
  61. package/dist/{import-export.helper-uhFwjH6X.js → import-export.helper-N1BqiTub.js} +6 -6
  62. package/dist/{index-Dx5HvWR_.js → index-B1RZtqz-.js} +1 -1
  63. package/dist/{index-uA6bkf1x.js → index-CaREZ_vQ.js} +3 -3
  64. package/dist/{index-CouegIcG.js → index-CwqHa5AY.js} +1 -1
  65. package/dist/{feature-CZHvliez.js → inventory-core-dart.default-BK8f9n8e.js} +322 -1395
  66. package/dist/{lodash-CjyamSgJ.js → lodash-B9tHF9A4.js} +1 -1
  67. package/dist/{lz-string-BbZdMrTL.js → lz-string-BSMjlcH9.js} +1 -1
  68. package/dist/modules/print-template/api/print-template.d.ts +29 -0
  69. package/dist/modules/print-template/components/BlockConfigPanel.vue.d.ts +19 -0
  70. package/dist/modules/print-template/components/CustomPrintTemplatePreview.vue.d.ts +25 -0
  71. package/dist/modules/print-template/components/PrintTemplateEditorDialog.vue.d.ts +45 -0
  72. package/dist/modules/print-template/components/TemplatePreview.vue.d.ts +22 -0
  73. package/dist/modules/print-template/composables/print-po-with-template.d.ts +25 -0
  74. package/dist/modules/print-template/definitions/block-definitions.d.ts +88 -0
  75. package/dist/modules/print-template/definitions/predefined-templates.d.ts +22 -0
  76. package/dist/modules/print-template/definitions/template-renderer.d.ts +17 -0
  77. package/dist/modules/print-template/index.d.ts +11 -0
  78. package/dist/modules/print-template/store/print-template.d.ts +170 -0
  79. package/dist/modules/print-template/types/print-data.d.ts +52 -0
  80. package/dist/modules/print-template/utils/sanitize-html.d.ts +32 -0
  81. package/dist/{netsuite-2v3F8ILe.js → netsuite-D4KHhWWu.js} +60 -9
  82. package/dist/{number-BYbxsJHr.js → number-DmqVo28f.js} +3 -3
  83. package/dist/predefined-templates-Dy5hYXMM.js +4542 -0
  84. package/dist/{purchase-order-template-s1AiueV_.js → purchase-order-template-BT3tF_gn.js} +1 -1
  85. package/dist/router/name.d.ts +2 -0
  86. package/dist/{row-action.enum-BcW_L_nE.js → row-action.enum-Co_O4qD9.js} +11 -3
  87. package/dist/{rules-C7L-LFOd.js → rules-CbJ7idQa.js} +2 -2
  88. package/dist/{stock-D2s88pz1.js → stock-C9RXv-3_.js} +1 -1
  89. package/dist/{stock-CvYOcgWb.js → stock-YXoLCE8o.js} +3 -3
  90. package/dist/stores/feature.d.ts +2 -0
  91. package/dist/stores/integration/netsuite.d.ts +1 -1
  92. package/dist/style.css +1 -1
  93. package/dist/{supplier-DmobM7mD.js → supplier-Duiacdig.js} +2 -2
  94. package/dist/{surcharge-BdZOVfi0.js → surcharge-CkDK4P_6.js} +1 -1
  95. package/dist/tsconfig.app.tsbuildinfo +1 -1
  96. package/dist/{use-ingredient-select-dialog-BUCJBHjV.js → use-ingredient-select-dialog-C7uVeT1M.js} +2 -2
  97. package/dist/{use-inventory-binding-dialog-DiN1hBIm.js → use-inventory-binding-dialog-BIo9Fi-9.js} +2 -2
  98. package/dist/{use-template-enabled-locations-CmH6I2cy.js → use-template-enabled-locations-BtbfLc0y.js} +2 -2
  99. package/dist/views/integration/components/IntegrationSyncLogTab.vue.d.ts +15 -0
  100. package/dist/views/integration/composables/use-integration-sync-log.d.ts +45 -0
  101. package/dist/views/integration-explorer/IntegrationExplorerView.vue.d.ts +2 -0
  102. package/dist/views/integration-explorer/composables/use-explorer-tab.d.ts +126 -0
  103. package/dist/views/integration-explorer/netsuite/ExplorerRecordSyncLog.vue.d.ts +17 -0
  104. package/dist/views/integration-explorer/netsuite/ExplorerRecordToolbar.vue.d.ts +201 -0
  105. package/dist/views/integration-explorer/netsuite/ExplorerSystemNote.vue.d.ts +15 -0
  106. package/dist/views/integration-explorer/netsuite/JsonViewer.vue.d.ts +15 -0
  107. package/dist/views/integration-explorer/netsuite/NetSuiteExplorerView.vue.d.ts +2 -0
  108. package/dist/views/integration-explorer/netsuite/inventoryTransfer/InventoryTransferSideSheet.vue.d.ts +7 -0
  109. package/dist/views/integration-explorer/netsuite/inventoryTransfer/InventoryTransferView.vue.d.ts +39 -0
  110. package/dist/views/integration-explorer/netsuite/items/AssemblyItemSideSheet.vue.d.ts +7 -0
  111. package/dist/views/integration-explorer/netsuite/items/InventoryItemSideSheet.vue.d.ts +7 -0
  112. package/dist/views/integration-explorer/netsuite/items/ItemsView.vue.d.ts +2 -0
  113. package/dist/views/integration-explorer/netsuite/items/ServiceItemSideSheet.vue.d.ts +7 -0
  114. package/dist/views/integration-explorer/netsuite/orders/ExplorerOrderDetailSideSheet.vue.d.ts +7 -0
  115. package/dist/views/integration-explorer/netsuite/orders/OrdersView.vue.d.ts +39 -0
  116. package/dist/views/integration-explorer/netsuite/orders/PurchaseOrderSideSheet.vue.d.ts +7 -0
  117. package/dist/views/integration-explorer/netsuite/orders/SyncNetsuiteButton.vue.d.ts +29 -0
  118. package/dist/views/integration-explorer/netsuite/orders/TransferOrderSideSheet.vue.d.ts +7 -0
  119. package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +21 -21
  120. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +21 -21
  121. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +129 -129
  122. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +154 -150
  123. package/dist/views/settings/SettingsView.vue.d.ts +2 -0
  124. package/dist/vue-i18n-D1JHIbLE.js +2365 -0
  125. package/dist/{xlsx-D4PML26z.js → xlsx-BEbkruI_.js} +398 -398
  126. package/dist/{xlsx.util-BWLcCmO_.js → xlsx.util-BMTXqfxw.js} +1 -1
  127. package/package.json +9 -4
  128. package/dist/ApprovalView-0FbsslVD.js +0 -226
  129. package/dist/ReceiveRequestView-ur3OeHuv.js +0 -2802
  130. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-GhRFdMoW.js +0 -3521
  131. package/dist/defineDeepModel-SD5OUepJ.js +0 -19
  132. package/dist/vue-i18n-D0Q6LFcu.js +0 -2365
@@ -0,0 +1,4542 @@
1
+ import { o as qn, j as Wn, A as zn } from "./app-B5-QVzib.js";
2
+ import { defineStore as Vn } from "pinia";
3
+ import { ref as mt, computed as Kn } from "vue";
4
+ import { useCoreStore as Yn } from "@feedmepos/mf-common";
5
+ import { useSnackbar as Xn } from "@feedmepos/ui-library";
6
+ const Jn = qn((t, e) => {
7
+ const i = Yn(), c = Xn();
8
+ return e.onError(async (h) => {
9
+ if (h instanceof Wn)
10
+ throw c == null || c.open({
11
+ title: h.title,
12
+ message: h.message,
13
+ type: "error"
14
+ }), h;
15
+ }), {
16
+ async browse() {
17
+ var p;
18
+ const h = ((p = i.currentBusiness.value) == null ? void 0 : p._id) ?? "", f = `${t.inventoryBackendUrl}/${h}/print-template`;
19
+ return await e.get(f);
20
+ },
21
+ async read(h) {
22
+ var l;
23
+ const f = ((l = i.currentBusiness.value) == null ? void 0 : l._id) ?? "", p = `${t.inventoryBackendUrl}/${f}/print-template/${h}`;
24
+ return await e.get(p);
25
+ },
26
+ async create(h) {
27
+ var l;
28
+ const f = ((l = i.currentBusiness.value) == null ? void 0 : l._id) ?? "", p = `${t.inventoryBackendUrl}/${f}/print-template`;
29
+ return await e.post(p, h);
30
+ },
31
+ async update(h, f) {
32
+ var o;
33
+ const p = ((o = i.currentBusiness.value) == null ? void 0 : o._id) ?? "", l = `${t.inventoryBackendUrl}/${p}/print-template/${h}`;
34
+ return await e.put(l, f);
35
+ },
36
+ async delete(h) {
37
+ var l;
38
+ const f = ((l = i.currentBusiness.value) == null ? void 0 : l._id) ?? "", p = `${t.inventoryBackendUrl}/${f}/print-template/${h}`;
39
+ return await e.delete(p);
40
+ },
41
+ urls: t
42
+ };
43
+ });
44
+ function Br(t) {
45
+ return Object.fromEntries(t.map((e) => [e.key, e.value]));
46
+ }
47
+ const sr = {
48
+ header: {
49
+ tag: "header",
50
+ label: "Header",
51
+ icon: "title",
52
+ initialConfigFields: () => [
53
+ { key: "showTitle", label: "Show Title", type: "toggle", value: !0 },
54
+ {
55
+ key: "customTitle",
56
+ label: "Custom Title (leave empty for auto)",
57
+ type: "text",
58
+ value: ""
59
+ },
60
+ { key: "showOrderNumber", label: "Show Order Number", type: "toggle", value: !0 },
61
+ { key: "showCreatedAt", label: "Show Date", type: "toggle", value: !0 },
62
+ { key: "showRef", label: "Show Reference", type: "toggle", value: !0 },
63
+ { key: "showStatus", label: "Show Status", type: "toggle", value: !0 }
64
+ ],
65
+ template: `
66
+ <table style="width:100%;border-spacing:unset;line-height:inherit;">
67
+ <tr valign="bottom">
68
+ <td style="padding:3px 5px;vertical-align:top;">
69
+ {{#if config.showTitle}}
70
+ <div style="font-size:30px;color:#333;">{{#if config.customTitle}}{{config.customTitle}}{{else}}{{title}}{{/if}}</div>
71
+ {{/if}}
72
+ {{#if config.showRef}}
73
+ <div>Ref: {{ref}}</div>
74
+ {{/if}}
75
+ {{#if config.showStatus}}
76
+ <div style="color:{{statusColor}};">{{status}}</div>
77
+ {{/if}}
78
+ </td>
79
+ <td style="padding:3px 5px;vertical-align:top;text-align:right;">
80
+ {{#if config.showOrderNumber}}
81
+ <div style="font-weight:600;color:#333;">ORD #{{orderNumber}}</div>
82
+ {{/if}}
83
+ {{#if config.showCreatedAt}}
84
+ <div>{{createdAt}}</div>
85
+ {{/if}}
86
+ </td>
87
+ </tr>
88
+ </table>`
89
+ },
90
+ contactInfo: {
91
+ tag: "contactInfo",
92
+ label: "Supplier & Delivery To",
93
+ icon: "contacts",
94
+ initialConfigFields: () => [
95
+ { key: "supplierLabel", label: "Supplier Section Label", type: "text", value: "Supplier" },
96
+ { key: "showSupplierName", label: "Show Supplier Name", type: "toggle", value: !0 },
97
+ { key: "showSupplierRegNo", label: "Show Supplier Reg. No.", type: "toggle", value: !0 },
98
+ {
99
+ key: "showSupplierAddress",
100
+ label: "Show Supplier Address",
101
+ type: "toggle",
102
+ value: !0
103
+ },
104
+ { key: "buyerLabel", label: "Buyer Section Label", type: "text", value: "Delivery To" },
105
+ { key: "showBuyerName", label: "Show Buyer Name", type: "toggle", value: !0 },
106
+ { key: "showBuyerLegalName", label: "Show Buyer Legal Name", type: "toggle", value: !0 },
107
+ { key: "showBuyerRegNo", label: "Show Buyer Reg. No.", type: "toggle", value: !0 },
108
+ { key: "showBuyerAddress", label: "Show Buyer Address", type: "toggle", value: !0 }
109
+ ],
110
+ template: `
111
+ <table style="width:100%;border-spacing:unset;line-height:inherit;">
112
+ <tr>
113
+ <td style="padding:3px 5px;vertical-align:top;">
114
+ <div style="font-weight:600;color:#333;">{{config.supplierLabel}}</div>
115
+ {{#if config.showSupplierName}}
116
+ <div style="font-size:18px;color:#333;">{{supplier.name}}</div>
117
+ {{/if}}
118
+ {{#if config.showSupplierRegNo}}
119
+ <div style="font-size:14px;color:#666;">{{supplier.registrationNumber}}</div>
120
+ {{/if}}
121
+ {{#if config.showSupplierAddress}}
122
+ <div style="font-size:16px;line-height:1.2;color:#666;">
123
+ {{supplier.line1}}<br/>
124
+ {{#if supplier.line2}}{{supplier.line2}}<br/>{{/if}}
125
+ {{supplier.postcode}} {{supplier.city}}<br/>
126
+ {{supplier.state}} {{supplier.country}}<br/>
127
+ </div>
128
+ {{/if}}
129
+ </td>
130
+ <td style="padding:3px 5px;vertical-align:top;text-align:right;">
131
+ <div style="font-weight:600;color:#333;">{{config.buyerLabel}}</div>
132
+ {{#if config.showBuyerLegalName}}
133
+ {{#if buyer.legalName}}
134
+ <div style="font-size:18px;color:#333;">{{buyer.legalName}}</div>
135
+ {{/if}}
136
+ {{/if}}
137
+ {{#if config.showBuyerName}}
138
+ <div style="font-size:18px;color:#333;">{{buyer.name}}</div>
139
+ {{/if}}
140
+ {{#if config.showBuyerRegNo}}
141
+ <div style="font-size:14px;color:#666;">{{buyer.registrationNumber}}</div>
142
+ {{/if}}
143
+ {{#if config.showBuyerAddress}}
144
+ <div style="font-size:16px;line-height:1.2;color:#666;">
145
+ {{buyer.line1}}<br/>
146
+ {{#if buyer.line2}}{{buyer.line2}}<br/>{{/if}}
147
+ {{buyer.postcode}} {{buyer.city}}<br/>
148
+ {{buyer.state}} {{buyer.country}}<br/>
149
+ </div>
150
+ {{/if}}
151
+ </td>
152
+ </tr>
153
+ </table>`
154
+ },
155
+ itemsTable: {
156
+ tag: "itemsTable",
157
+ label: "Items Table",
158
+ icon: "table_chart",
159
+ initialConfigFields: () => [
160
+ { key: "showCode", label: "Show Code Column", type: "toggle", value: !0 },
161
+ { key: "codeLabel", label: "Code Column Label", type: "text", value: "Code" },
162
+ { key: "showDescription", label: "Show Description Column", type: "toggle", value: !0 },
163
+ {
164
+ key: "descriptionLabel",
165
+ label: "Description Column Label",
166
+ type: "text",
167
+ value: "Description"
168
+ },
169
+ { key: "showQuantity", label: "Show Quantity Column", type: "toggle", value: !0 },
170
+ { key: "quantityLabel", label: "Quantity Column Label", type: "text", value: "Quantity" },
171
+ { key: "showUnit", label: "Show Unit Column", type: "toggle", value: !0 },
172
+ { key: "unitLabel", label: "Unit Column Label", type: "text", value: "Unit" },
173
+ { key: "showUnitCost", label: "Show Unit Cost Column", type: "toggle", value: !0 },
174
+ { key: "unitCostLabel", label: "Unit Cost Column Label", type: "text", value: "Unit Cost" },
175
+ { key: "showCost", label: "Show Cost Column", type: "toggle", value: !0 },
176
+ { key: "costLabel", label: "Cost Column Label", type: "text", value: "Cost" }
177
+ ],
178
+ template: `
179
+ <div style="margin-top:30px;">
180
+ <table style="width:100%;border-spacing:unset;line-height:inherit;">
181
+ <thead>
182
+ <tr style="background:#ccc;color:#444;">
183
+ {{#if config.showCode}}<th style="text-align:left;padding:3px 5px;width:20%;">{{config.codeLabel}}</th>{{/if}}
184
+ {{#if config.showDescription}}<th style="text-align:left;padding:3px 5px;">{{config.descriptionLabel}}</th>{{/if}}
185
+ {{#if config.showQuantity}}<th style="text-align:right;padding:3px 5px;width:10%;">{{config.quantityLabel}}</th>{{/if}}
186
+ {{#if config.showUnit}}<th style="text-align:right;padding:3px 5px;width:15%;">{{config.unitLabel}}</th>{{/if}}
187
+ {{#if config.showUnitCost}}<th style="text-align:right;padding:3px 5px;width:15%;">{{config.unitCostLabel}}</th>{{/if}}
188
+ {{#if config.showCost}}<th style="text-align:right;padding:3px 5px;width:15%;">{{config.costLabel}}</th>{{/if}}
189
+ </tr>
190
+ </thead>
191
+ <tbody>
192
+ {{#each items}}
193
+ <tr>
194
+ {{#if ../config.showCode}}<td style="text-align:left;padding:3px 5px;">{{this.code}}</td>{{/if}}
195
+ {{#if ../config.showDescription}}<td style="text-align:left;padding:3px 5px;">{{this.description}}</td>{{/if}}
196
+ {{#if ../config.showQuantity}}<td style="text-align:right;padding:3px 5px;">{{this.quantity}}</td>{{/if}}
197
+ {{#if ../config.showUnit}}<td style="text-align:right;padding:3px 5px;">{{this.unit}}</td>{{/if}}
198
+ {{#if ../config.showUnitCost}}<td style="text-align:right;padding:3px 5px;">{{costOrNA this.unitCost}}</td>{{/if}}
199
+ {{#if ../config.showCost}}<td style="text-align:right;padding:3px 5px;">{{costOrNA this.cost}}</td>{{/if}}
200
+ </tr>
201
+ {{/each}}
202
+ </tbody>
203
+ </table>
204
+ </div>`
205
+ },
206
+ deliveryHistory: {
207
+ tag: "deliveryHistory",
208
+ label: "Delivery History",
209
+ icon: "history",
210
+ initialConfigFields: () => [
211
+ { key: "headerLabel", label: "Section Label", type: "text", value: "Delivery History" },
212
+ { key: "showRef", label: "Show Reference", type: "toggle", value: !0 },
213
+ { key: "showDate", label: "Show Date", type: "toggle", value: !0 },
214
+ { key: "showRemark", label: "Show Remark", type: "toggle", value: !0 },
215
+ { key: "showItems", label: "Show Items", type: "toggle", value: !0 }
216
+ ],
217
+ template: `
218
+ <div style="padding-top:30px;">
219
+ <hr style="background:#888;height:2px;border:0;"/>
220
+ {{config.headerLabel}}:
221
+ {{#each deliveryOrders}}
222
+ <div style="padding:10px 30px;">
223
+ <table style="width:100%;border-spacing:unset;line-height:inherit;">
224
+ <tr valign="bottom">
225
+ <td style="padding:3px 5px;vertical-align:top;">
226
+ {{#if ../config.showRef}}<div style="font-weight:600;color:#333;">Ref: {{this.ref}}</div>{{/if}}
227
+ {{#if ../config.showDate}}<div style="font-size:14px;color:#666;">{{this.createdAt}}</div>{{/if}}
228
+ {{#if ../config.showRemark}}<div>Remark: {{this.remark}}</div>{{/if}}
229
+ </td>
230
+ </tr>
231
+ </table>
232
+ {{#if ../config.showItems}}
233
+ <div>
234
+ <table style="width:100%;border-spacing:unset;line-height:inherit;">
235
+ <tbody>
236
+ {{#each this.items}}
237
+ <tr>
238
+ <td style="text-align:left;padding:3px 5px;width:20%;">{{this.code}}</td>
239
+ <td style="text-align:left;padding:3px 5px;">{{this.description}}</td>
240
+ <td style="text-align:right;padding:3px 5px;width:15%;">{{this.quantity}}</td>
241
+ <td style="text-align:right;padding:3px 5px;width:15%;">{{this.unit}}</td>
242
+ </tr>
243
+ {{/each}}
244
+ </tbody>
245
+ </table>
246
+ </div>
247
+ {{/if}}
248
+ </div>
249
+ {{/each}}
250
+ </div>`
251
+ },
252
+ remark: {
253
+ tag: "remark",
254
+ label: "Remark",
255
+ icon: "notes",
256
+ initialConfigFields: () => [
257
+ { key: "label", label: "Label Text", type: "text", value: "Remark" }
258
+ ],
259
+ template: `
260
+ <div>{{config.label}}: {{remark}}</div>`
261
+ },
262
+ customText: {
263
+ tag: "customText",
264
+ label: "Custom Text / HTML",
265
+ icon: "code",
266
+ initialConfigFields: () => [
267
+ {
268
+ key: "content",
269
+ label: "HTML Content (supports Handlebars variables)",
270
+ type: "textarea",
271
+ value: "<div>Custom content here</div>",
272
+ rows: 8
273
+ }
274
+ ],
275
+ template: "{{{config.content}}}"
276
+ },
277
+ separator: {
278
+ tag: "separator",
279
+ label: "Separator Line",
280
+ icon: "horizontal_rule",
281
+ initialConfigFields: () => [
282
+ { key: "thickness", label: "Thickness (px)", type: "number", value: 2, min: 1, max: 10 },
283
+ { key: "color", label: "Color", type: "color", value: "#888888" }
284
+ ],
285
+ template: `
286
+ <hr style="background:{{config.color}};height:{{config.thickness}}px;border:0;"/>`
287
+ }
288
+ };
289
+ function Qn(t, e) {
290
+ const i = sr[t];
291
+ return i ? i.template : "";
292
+ }
293
+ function pe(t) {
294
+ const i = sr[t].initialConfigFields(), c = Qn(t);
295
+ return { configFields: i, templateHtml: c };
296
+ }
297
+ function Ke() {
298
+ return [
299
+ { id: "block_1", tag: "header", config: pe("header") },
300
+ { id: "block_2", tag: "separator", config: pe("separator") },
301
+ { id: "block_3", tag: "contactInfo", config: pe("contactInfo") },
302
+ { id: "block_4", tag: "itemsTable", config: pe("itemsTable") },
303
+ { id: "block_5", tag: "separator", config: pe("separator") },
304
+ { id: "block_6", tag: "remark", config: pe("remark") },
305
+ { id: "block_7", tag: "deliveryHistory", config: pe("deliveryHistory") }
306
+ ];
307
+ }
308
+ function xs() {
309
+ return `block_${Date.now()}_${Math.random().toString(36).substring(2, 7)}`;
310
+ }
311
+ function Ps(t) {
312
+ return {
313
+ title: {
314
+ purchaseOrder: "Purchase Order",
315
+ transferOrder: "Inventory Transfer Note",
316
+ goodsReceivedNote: "Goods Received Note",
317
+ deliveryOrder: "Delivery Order"
318
+ }[t ?? "purchaseOrder"] ?? "Purchase Order",
319
+ orderNumber: "00123",
320
+ createdAt: "10 Feb 2026",
321
+ ref: "PO-2026-001",
322
+ remark: "Please deliver before 5pm",
323
+ supplier: {
324
+ name: "ABC Supplies Sdn Bhd",
325
+ registrationNumber: "123456-A",
326
+ line1: "123, Jalan Example",
327
+ line2: "Taman Sample",
328
+ postcode: "50000",
329
+ city: "Kuala Lumpur",
330
+ state: "Wilayah Persekutuan",
331
+ country: "Malaysia"
332
+ },
333
+ buyer: {
334
+ name: "My Restaurant",
335
+ legalName: "My Restaurant Sdn Bhd",
336
+ registrationNumber: "789012-B",
337
+ line1: "456, Jalan Buyer",
338
+ postcode: "40000",
339
+ city: "Shah Alam",
340
+ state: "Selangor",
341
+ country: "Malaysia"
342
+ },
343
+ items: [
344
+ {
345
+ code: "SKU001",
346
+ description: "Chicken Breast (1kg)",
347
+ quantity: "10",
348
+ unit: "kg",
349
+ received: "10",
350
+ unitCost: "MYR 15.00",
351
+ cost: "MYR 150.00"
352
+ },
353
+ {
354
+ code: "SKU002",
355
+ description: "Olive Oil (500ml)",
356
+ quantity: "5",
357
+ unit: "btl",
358
+ received: "3",
359
+ unitCost: "MYR 15.00",
360
+ cost: "MYR 75.00"
361
+ },
362
+ { code: "SKU003", description: "Salt (1kg)", quantity: "20", unit: "pkt", received: "0" }
363
+ ],
364
+ status: "RECEIVING",
365
+ deliveryOrders: [
366
+ {
367
+ createdAt: "08 Feb 2026",
368
+ ref: "DO-001",
369
+ remark: "Partial delivery",
370
+ items: [
371
+ { code: "SKU001", description: "Chicken Breast (1kg)", quantity: "10", unit: "kg" },
372
+ { code: "SKU002", description: "Olive Oil (500ml)", quantity: "3", unit: "btl" }
373
+ ]
374
+ }
375
+ ]
376
+ };
377
+ }
378
+ /*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */
379
+ const {
380
+ entries: cn,
381
+ setPrototypeOf: Hr,
382
+ isFrozen: Zn,
383
+ getPrototypeOf: jn,
384
+ getOwnPropertyDescriptor: $n
385
+ } = Object;
386
+ let {
387
+ freeze: W,
388
+ seal: K,
389
+ create: Mt
390
+ } = Object, {
391
+ apply: Nt,
392
+ construct: Rt
393
+ } = typeof Reflect < "u" && Reflect;
394
+ W || (W = function(e) {
395
+ return e;
396
+ });
397
+ K || (K = function(e) {
398
+ return e;
399
+ });
400
+ Nt || (Nt = function(e, i) {
401
+ for (var c = arguments.length, h = new Array(c > 2 ? c - 2 : 0), f = 2; f < c; f++)
402
+ h[f - 2] = arguments[f];
403
+ return e.apply(i, h);
404
+ });
405
+ Rt || (Rt = function(e) {
406
+ for (var i = arguments.length, c = new Array(i > 1 ? i - 1 : 0), h = 1; h < i; h++)
407
+ c[h - 1] = arguments[h];
408
+ return new e(...c);
409
+ });
410
+ const Ye = z(Array.prototype.forEach), ei = z(Array.prototype.lastIndexOf), Fr = z(Array.prototype.pop), Ae = z(Array.prototype.push), ti = z(Array.prototype.splice), Ze = z(String.prototype.toLowerCase), vt = z(String.prototype.toString), _t = z(String.prototype.match), we = z(String.prototype.replace), ri = z(String.prototype.indexOf), ni = z(String.prototype.trim), J = z(Object.prototype.hasOwnProperty), q = z(RegExp.prototype.test), Le = ii(TypeError);
411
+ function z(t) {
412
+ return function(e) {
413
+ e instanceof RegExp && (e.lastIndex = 0);
414
+ for (var i = arguments.length, c = new Array(i > 1 ? i - 1 : 0), h = 1; h < i; h++)
415
+ c[h - 1] = arguments[h];
416
+ return Nt(t, e, c);
417
+ };
418
+ }
419
+ function ii(t) {
420
+ return function() {
421
+ for (var e = arguments.length, i = new Array(e), c = 0; c < e; c++)
422
+ i[c] = arguments[c];
423
+ return Rt(t, i);
424
+ };
425
+ }
426
+ function P(t, e) {
427
+ let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Ze;
428
+ Hr && Hr(t, null);
429
+ let c = e.length;
430
+ for (; c--; ) {
431
+ let h = e[c];
432
+ if (typeof h == "string") {
433
+ const f = i(h);
434
+ f !== h && (Zn(e) || (e[c] = f), h = f);
435
+ }
436
+ t[h] = !0;
437
+ }
438
+ return t;
439
+ }
440
+ function oi(t) {
441
+ for (let e = 0; e < t.length; e++)
442
+ J(t, e) || (t[e] = null);
443
+ return t;
444
+ }
445
+ function te(t) {
446
+ const e = Mt(null);
447
+ for (const [i, c] of cn(t))
448
+ J(t, i) && (Array.isArray(c) ? e[i] = oi(c) : c && typeof c == "object" && c.constructor === Object ? e[i] = te(c) : e[i] = c);
449
+ return e;
450
+ }
451
+ function xe(t, e) {
452
+ for (; t !== null; ) {
453
+ const c = $n(t, e);
454
+ if (c) {
455
+ if (c.get)
456
+ return z(c.get);
457
+ if (typeof c.value == "function")
458
+ return z(c.value);
459
+ }
460
+ t = jn(t);
461
+ }
462
+ function i() {
463
+ return null;
464
+ }
465
+ return i;
466
+ }
467
+ const Ur = W(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), yt = W(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), St = W(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), si = W(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), bt = W(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), ai = W(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Gr = W(["#text"]), qr = W(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Et = W(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Wr = W(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Xe = W(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), li = K(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ui = K(/<%[\w\W]*|[\w\W]*%>/gm), ci = K(/\$\{[\w\W]*/gm), pi = K(/^data-[\-\w.\u00B7-\uFFFF]+$/), hi = K(/^aria-[\-\w]+$/), pn = K(
468
+ /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
469
+ // eslint-disable-line no-useless-escape
470
+ ), fi = K(/^(?:\w+script|data):/i), di = K(
471
+ /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
472
+ // eslint-disable-line no-control-regex
473
+ ), hn = K(/^html$/i), gi = K(/^[a-z][.\w]*(-[.\w]+)+$/i);
474
+ var zr = /* @__PURE__ */ Object.freeze({
475
+ __proto__: null,
476
+ ARIA_ATTR: hi,
477
+ ATTR_WHITESPACE: di,
478
+ CUSTOM_ELEMENT: gi,
479
+ DATA_ATTR: pi,
480
+ DOCTYPE_NAME: hn,
481
+ ERB_EXPR: ui,
482
+ IS_ALLOWED_URI: pn,
483
+ IS_SCRIPT_OR_DATA: fi,
484
+ MUSTACHE_EXPR: li,
485
+ TMPLIT_EXPR: ci
486
+ });
487
+ const Pe = {
488
+ element: 1,
489
+ attribute: 2,
490
+ text: 3,
491
+ cdataSection: 4,
492
+ entityReference: 5,
493
+ // Deprecated
494
+ entityNode: 6,
495
+ // Deprecated
496
+ progressingInstruction: 7,
497
+ comment: 8,
498
+ document: 9,
499
+ documentType: 10,
500
+ documentFragment: 11,
501
+ notation: 12
502
+ // Deprecated
503
+ }, mi = function() {
504
+ return typeof window > "u" ? null : window;
505
+ }, vi = function(e, i) {
506
+ if (typeof e != "object" || typeof e.createPolicy != "function")
507
+ return null;
508
+ let c = null;
509
+ const h = "data-tt-policy-suffix";
510
+ i && i.hasAttribute(h) && (c = i.getAttribute(h));
511
+ const f = "dompurify" + (c ? "#" + c : "");
512
+ try {
513
+ return e.createPolicy(f, {
514
+ createHTML(p) {
515
+ return p;
516
+ },
517
+ createScriptURL(p) {
518
+ return p;
519
+ }
520
+ });
521
+ } catch {
522
+ return console.warn("TrustedTypes policy " + f + " could not be created."), null;
523
+ }
524
+ }, Vr = function() {
525
+ return {
526
+ afterSanitizeAttributes: [],
527
+ afterSanitizeElements: [],
528
+ afterSanitizeShadowDOM: [],
529
+ beforeSanitizeAttributes: [],
530
+ beforeSanitizeElements: [],
531
+ beforeSanitizeShadowDOM: [],
532
+ uponSanitizeAttribute: [],
533
+ uponSanitizeElement: [],
534
+ uponSanitizeShadowNode: []
535
+ };
536
+ };
537
+ function fn() {
538
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : mi();
539
+ const e = (L) => fn(L);
540
+ if (e.version = "3.3.1", e.removed = [], !t || !t.document || t.document.nodeType !== Pe.document || !t.Element)
541
+ return e.isSupported = !1, e;
542
+ let {
543
+ document: i
544
+ } = t;
545
+ const c = i, h = c.currentScript, {
546
+ DocumentFragment: f,
547
+ HTMLTemplateElement: p,
548
+ Node: l,
549
+ Element: o,
550
+ NodeFilter: u,
551
+ NamedNodeMap: s = t.NamedNodeMap || t.MozNamedAttrMap,
552
+ HTMLFormElement: d,
553
+ DOMParser: r,
554
+ trustedTypes: a
555
+ } = t, n = o.prototype, v = xe(n, "cloneNode"), _ = xe(n, "remove"), b = xe(n, "nextSibling"), y = xe(n, "childNodes"), E = xe(n, "parentNode");
556
+ if (typeof p == "function") {
557
+ const L = i.createElement("template");
558
+ L.content && L.content.ownerDocument && (i = L.content.ownerDocument);
559
+ }
560
+ let g, S = "";
561
+ const {
562
+ implementation: A,
563
+ createNodeIterator: k,
564
+ createDocumentFragment: x,
565
+ getElementsByTagName: N
566
+ } = i, {
567
+ importNode: O
568
+ } = c;
569
+ let T = Vr();
570
+ e.isSupported = typeof cn == "function" && typeof E == "function" && A && A.createHTMLDocument !== void 0;
571
+ const {
572
+ MUSTACHE_EXPR: Z,
573
+ ERB_EXPR: j,
574
+ TMPLIT_EXPR: nt,
575
+ DATA_ATTR: Tn,
576
+ ARIA_ATTR: On,
577
+ IS_SCRIPT_OR_DATA: Mn,
578
+ ATTR_WHITESPACE: fr,
579
+ CUSTOM_ELEMENT: Nn
580
+ } = zr;
581
+ let {
582
+ IS_ALLOWED_URI: dr
583
+ } = zr, H = null;
584
+ const gr = P({}, [...Ur, ...yt, ...St, ...bt, ...Gr]);
585
+ let F = null;
586
+ const mr = P({}, [...qr, ...Et, ...Wr, ...Xe]);
587
+ let I = Object.seal(Mt(null, {
588
+ tagNameCheck: {
589
+ writable: !0,
590
+ configurable: !1,
591
+ enumerable: !0,
592
+ value: null
593
+ },
594
+ attributeNameCheck: {
595
+ writable: !0,
596
+ configurable: !1,
597
+ enumerable: !0,
598
+ value: null
599
+ },
600
+ allowCustomizedBuiltInElements: {
601
+ writable: !0,
602
+ configurable: !1,
603
+ enumerable: !0,
604
+ value: !1
605
+ }
606
+ })), Ee = null, it = null;
607
+ const de = Object.seal(Mt(null, {
608
+ tagCheck: {
609
+ writable: !0,
610
+ configurable: !1,
611
+ enumerable: !0,
612
+ value: null
613
+ },
614
+ attributeCheck: {
615
+ writable: !0,
616
+ configurable: !1,
617
+ enumerable: !0,
618
+ value: null
619
+ }
620
+ }));
621
+ let vr = !0, ot = !0, _r = !1, yr = !0, ge = !1, Fe = !0, ue = !1, st = !1, at = !1, me = !1, Ue = !1, Ge = !1, Sr = !0, br = !1;
622
+ const Rn = "user-content-";
623
+ let lt = !0, ke = !1, ve = {}, $ = null;
624
+ const ut = P({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
625
+ let Er = null;
626
+ const kr = P({}, ["audio", "video", "img", "source", "image", "track"]);
627
+ let ct = null;
628
+ const Cr = P({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), qe = "http://www.w3.org/1998/Math/MathML", We = "http://www.w3.org/2000/svg", re = "http://www.w3.org/1999/xhtml";
629
+ let _e = re, pt = !1, ht = null;
630
+ const In = P({}, [qe, We, re], vt);
631
+ let ze = P({}, ["mi", "mo", "mn", "ms", "mtext"]), Ve = P({}, ["annotation-xml"]);
632
+ const Dn = P({}, ["title", "style", "font", "a", "script"]);
633
+ let Ce = null;
634
+ const Bn = ["application/xhtml+xml", "text/html"], Hn = "text/html";
635
+ let B = null, ye = null;
636
+ const Fn = i.createElement("form"), Ar = function(m) {
637
+ return m instanceof RegExp || m instanceof Function;
638
+ }, ft = function() {
639
+ let m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
640
+ if (!(ye && ye === m)) {
641
+ if ((!m || typeof m != "object") && (m = {}), m = te(m), Ce = // eslint-disable-next-line unicorn/prefer-includes
642
+ Bn.indexOf(m.PARSER_MEDIA_TYPE) === -1 ? Hn : m.PARSER_MEDIA_TYPE, B = Ce === "application/xhtml+xml" ? vt : Ze, H = J(m, "ALLOWED_TAGS") ? P({}, m.ALLOWED_TAGS, B) : gr, F = J(m, "ALLOWED_ATTR") ? P({}, m.ALLOWED_ATTR, B) : mr, ht = J(m, "ALLOWED_NAMESPACES") ? P({}, m.ALLOWED_NAMESPACES, vt) : In, ct = J(m, "ADD_URI_SAFE_ATTR") ? P(te(Cr), m.ADD_URI_SAFE_ATTR, B) : Cr, Er = J(m, "ADD_DATA_URI_TAGS") ? P(te(kr), m.ADD_DATA_URI_TAGS, B) : kr, $ = J(m, "FORBID_CONTENTS") ? P({}, m.FORBID_CONTENTS, B) : ut, Ee = J(m, "FORBID_TAGS") ? P({}, m.FORBID_TAGS, B) : te({}), it = J(m, "FORBID_ATTR") ? P({}, m.FORBID_ATTR, B) : te({}), ve = J(m, "USE_PROFILES") ? m.USE_PROFILES : !1, vr = m.ALLOW_ARIA_ATTR !== !1, ot = m.ALLOW_DATA_ATTR !== !1, _r = m.ALLOW_UNKNOWN_PROTOCOLS || !1, yr = m.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ge = m.SAFE_FOR_TEMPLATES || !1, Fe = m.SAFE_FOR_XML !== !1, ue = m.WHOLE_DOCUMENT || !1, me = m.RETURN_DOM || !1, Ue = m.RETURN_DOM_FRAGMENT || !1, Ge = m.RETURN_TRUSTED_TYPE || !1, at = m.FORCE_BODY || !1, Sr = m.SANITIZE_DOM !== !1, br = m.SANITIZE_NAMED_PROPS || !1, lt = m.KEEP_CONTENT !== !1, ke = m.IN_PLACE || !1, dr = m.ALLOWED_URI_REGEXP || pn, _e = m.NAMESPACE || re, ze = m.MATHML_TEXT_INTEGRATION_POINTS || ze, Ve = m.HTML_INTEGRATION_POINTS || Ve, I = m.CUSTOM_ELEMENT_HANDLING || {}, m.CUSTOM_ELEMENT_HANDLING && Ar(m.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (I.tagNameCheck = m.CUSTOM_ELEMENT_HANDLING.tagNameCheck), m.CUSTOM_ELEMENT_HANDLING && Ar(m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (I.attributeNameCheck = m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), m.CUSTOM_ELEMENT_HANDLING && typeof m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (I.allowCustomizedBuiltInElements = m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ge && (ot = !1), Ue && (me = !0), ve && (H = P({}, Gr), F = [], ve.html === !0 && (P(H, Ur), P(F, qr)), ve.svg === !0 && (P(H, yt), P(F, Et), P(F, Xe)), ve.svgFilters === !0 && (P(H, St), P(F, Et), P(F, Xe)), ve.mathMl === !0 && (P(H, bt), P(F, Wr), P(F, Xe))), m.ADD_TAGS && (typeof m.ADD_TAGS == "function" ? de.tagCheck = m.ADD_TAGS : (H === gr && (H = te(H)), P(H, m.ADD_TAGS, B))), m.ADD_ATTR && (typeof m.ADD_ATTR == "function" ? de.attributeCheck = m.ADD_ATTR : (F === mr && (F = te(F)), P(F, m.ADD_ATTR, B))), m.ADD_URI_SAFE_ATTR && P(ct, m.ADD_URI_SAFE_ATTR, B), m.FORBID_CONTENTS && ($ === ut && ($ = te($)), P($, m.FORBID_CONTENTS, B)), m.ADD_FORBID_CONTENTS && ($ === ut && ($ = te($)), P($, m.ADD_FORBID_CONTENTS, B)), lt && (H["#text"] = !0), ue && P(H, ["html", "head", "body"]), H.table && (P(H, ["tbody"]), delete Ee.tbody), m.TRUSTED_TYPES_POLICY) {
643
+ if (typeof m.TRUSTED_TYPES_POLICY.createHTML != "function")
644
+ throw Le('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
645
+ if (typeof m.TRUSTED_TYPES_POLICY.createScriptURL != "function")
646
+ throw Le('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
647
+ g = m.TRUSTED_TYPES_POLICY, S = g.createHTML("");
648
+ } else
649
+ g === void 0 && (g = vi(a, h)), g !== null && typeof S == "string" && (S = g.createHTML(""));
650
+ W && W(m), ye = m;
651
+ }
652
+ }, wr = P({}, [...yt, ...St, ...si]), Lr = P({}, [...bt, ...ai]), Un = function(m) {
653
+ let C = E(m);
654
+ (!C || !C.tagName) && (C = {
655
+ namespaceURI: _e,
656
+ tagName: "template"
657
+ });
658
+ const w = Ze(m.tagName), R = Ze(C.tagName);
659
+ return ht[m.namespaceURI] ? m.namespaceURI === We ? C.namespaceURI === re ? w === "svg" : C.namespaceURI === qe ? w === "svg" && (R === "annotation-xml" || ze[R]) : !!wr[w] : m.namespaceURI === qe ? C.namespaceURI === re ? w === "math" : C.namespaceURI === We ? w === "math" && Ve[R] : !!Lr[w] : m.namespaceURI === re ? C.namespaceURI === We && !Ve[R] || C.namespaceURI === qe && !ze[R] ? !1 : !Lr[w] && (Dn[w] || !wr[w]) : !!(Ce === "application/xhtml+xml" && ht[m.namespaceURI]) : !1;
660
+ }, ee = function(m) {
661
+ Ae(e.removed, {
662
+ element: m
663
+ });
664
+ try {
665
+ E(m).removeChild(m);
666
+ } catch {
667
+ _(m);
668
+ }
669
+ }, ce = function(m, C) {
670
+ try {
671
+ Ae(e.removed, {
672
+ attribute: C.getAttributeNode(m),
673
+ from: C
674
+ });
675
+ } catch {
676
+ Ae(e.removed, {
677
+ attribute: null,
678
+ from: C
679
+ });
680
+ }
681
+ if (C.removeAttribute(m), m === "is")
682
+ if (me || Ue)
683
+ try {
684
+ ee(C);
685
+ } catch {
686
+ }
687
+ else
688
+ try {
689
+ C.setAttribute(m, "");
690
+ } catch {
691
+ }
692
+ }, xr = function(m) {
693
+ let C = null, w = null;
694
+ if (at)
695
+ m = "<remove></remove>" + m;
696
+ else {
697
+ const D = _t(m, /^[\r\n\t ]+/);
698
+ w = D && D[0];
699
+ }
700
+ Ce === "application/xhtml+xml" && _e === re && (m = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + m + "</body></html>");
701
+ const R = g ? g.createHTML(m) : m;
702
+ if (_e === re)
703
+ try {
704
+ C = new r().parseFromString(R, Ce);
705
+ } catch {
706
+ }
707
+ if (!C || !C.documentElement) {
708
+ C = A.createDocument(_e, "template", null);
709
+ try {
710
+ C.documentElement.innerHTML = pt ? S : R;
711
+ } catch {
712
+ }
713
+ }
714
+ const G = C.body || C.documentElement;
715
+ return m && w && G.insertBefore(i.createTextNode(w), G.childNodes[0] || null), _e === re ? N.call(C, ue ? "html" : "body")[0] : ue ? C.documentElement : G;
716
+ }, Pr = function(m) {
717
+ return k.call(
718
+ m.ownerDocument || m,
719
+ m,
720
+ // eslint-disable-next-line no-bitwise
721
+ u.SHOW_ELEMENT | u.SHOW_COMMENT | u.SHOW_TEXT | u.SHOW_PROCESSING_INSTRUCTION | u.SHOW_CDATA_SECTION,
722
+ null
723
+ );
724
+ }, dt = function(m) {
725
+ return m instanceof d && (typeof m.nodeName != "string" || typeof m.textContent != "string" || typeof m.removeChild != "function" || !(m.attributes instanceof s) || typeof m.removeAttribute != "function" || typeof m.setAttribute != "function" || typeof m.namespaceURI != "string" || typeof m.insertBefore != "function" || typeof m.hasChildNodes != "function");
726
+ }, Tr = function(m) {
727
+ return typeof l == "function" && m instanceof l;
728
+ };
729
+ function ne(L, m, C) {
730
+ Ye(L, (w) => {
731
+ w.call(e, m, C, ye);
732
+ });
733
+ }
734
+ const Or = function(m) {
735
+ let C = null;
736
+ if (ne(T.beforeSanitizeElements, m, null), dt(m))
737
+ return ee(m), !0;
738
+ const w = B(m.nodeName);
739
+ if (ne(T.uponSanitizeElement, m, {
740
+ tagName: w,
741
+ allowedTags: H
742
+ }), Fe && m.hasChildNodes() && !Tr(m.firstElementChild) && q(/<[/\w!]/g, m.innerHTML) && q(/<[/\w!]/g, m.textContent) || m.nodeType === Pe.progressingInstruction || Fe && m.nodeType === Pe.comment && q(/<[/\w]/g, m.data))
743
+ return ee(m), !0;
744
+ if (!(de.tagCheck instanceof Function && de.tagCheck(w)) && (!H[w] || Ee[w])) {
745
+ if (!Ee[w] && Nr(w) && (I.tagNameCheck instanceof RegExp && q(I.tagNameCheck, w) || I.tagNameCheck instanceof Function && I.tagNameCheck(w)))
746
+ return !1;
747
+ if (lt && !$[w]) {
748
+ const R = E(m) || m.parentNode, G = y(m) || m.childNodes;
749
+ if (G && R) {
750
+ const D = G.length;
751
+ for (let V = D - 1; V >= 0; --V) {
752
+ const ie = v(G[V], !0);
753
+ ie.__removalCount = (m.__removalCount || 0) + 1, R.insertBefore(ie, b(m));
754
+ }
755
+ }
756
+ }
757
+ return ee(m), !0;
758
+ }
759
+ return m instanceof o && !Un(m) || (w === "noscript" || w === "noembed" || w === "noframes") && q(/<\/no(script|embed|frames)/i, m.innerHTML) ? (ee(m), !0) : (ge && m.nodeType === Pe.text && (C = m.textContent, Ye([Z, j, nt], (R) => {
760
+ C = we(C, R, " ");
761
+ }), m.textContent !== C && (Ae(e.removed, {
762
+ element: m.cloneNode()
763
+ }), m.textContent = C)), ne(T.afterSanitizeElements, m, null), !1);
764
+ }, Mr = function(m, C, w) {
765
+ if (Sr && (C === "id" || C === "name") && (w in i || w in Fn))
766
+ return !1;
767
+ if (!(ot && !it[C] && q(Tn, C))) {
768
+ if (!(vr && q(On, C))) {
769
+ if (!(de.attributeCheck instanceof Function && de.attributeCheck(C, m))) {
770
+ if (!F[C] || it[C]) {
771
+ if (
772
+ // First condition does a very basic check if a) it's basically a valid custom element tagname AND
773
+ // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
774
+ // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
775
+ !(Nr(m) && (I.tagNameCheck instanceof RegExp && q(I.tagNameCheck, m) || I.tagNameCheck instanceof Function && I.tagNameCheck(m)) && (I.attributeNameCheck instanceof RegExp && q(I.attributeNameCheck, C) || I.attributeNameCheck instanceof Function && I.attributeNameCheck(C, m)) || // Alternative, second condition checks if it's an `is`-attribute, AND
776
+ // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
777
+ C === "is" && I.allowCustomizedBuiltInElements && (I.tagNameCheck instanceof RegExp && q(I.tagNameCheck, w) || I.tagNameCheck instanceof Function && I.tagNameCheck(w)))
778
+ ) return !1;
779
+ } else if (!ct[C]) {
780
+ if (!q(dr, we(w, fr, ""))) {
781
+ if (!((C === "src" || C === "xlink:href" || C === "href") && m !== "script" && ri(w, "data:") === 0 && Er[m])) {
782
+ if (!(_r && !q(Mn, we(w, fr, "")))) {
783
+ if (w)
784
+ return !1;
785
+ }
786
+ }
787
+ }
788
+ }
789
+ }
790
+ }
791
+ }
792
+ return !0;
793
+ }, Nr = function(m) {
794
+ return m !== "annotation-xml" && _t(m, Nn);
795
+ }, Rr = function(m) {
796
+ ne(T.beforeSanitizeAttributes, m, null);
797
+ const {
798
+ attributes: C
799
+ } = m;
800
+ if (!C || dt(m))
801
+ return;
802
+ const w = {
803
+ attrName: "",
804
+ attrValue: "",
805
+ keepAttr: !0,
806
+ allowedAttributes: F,
807
+ forceKeepAttr: void 0
808
+ };
809
+ let R = C.length;
810
+ for (; R--; ) {
811
+ const G = C[R], {
812
+ name: D,
813
+ namespaceURI: V,
814
+ value: ie
815
+ } = G, Se = B(D), gt = ie;
816
+ let U = D === "value" ? gt : ni(gt);
817
+ if (w.attrName = Se, w.attrValue = U, w.keepAttr = !0, w.forceKeepAttr = void 0, ne(T.uponSanitizeAttribute, m, w), U = w.attrValue, br && (Se === "id" || Se === "name") && (ce(D, m), U = Rn + U), Fe && q(/((--!?|])>)|<\/(style|title|textarea)/i, U)) {
818
+ ce(D, m);
819
+ continue;
820
+ }
821
+ if (Se === "attributename" && _t(U, "href")) {
822
+ ce(D, m);
823
+ continue;
824
+ }
825
+ if (w.forceKeepAttr)
826
+ continue;
827
+ if (!w.keepAttr) {
828
+ ce(D, m);
829
+ continue;
830
+ }
831
+ if (!yr && q(/\/>/i, U)) {
832
+ ce(D, m);
833
+ continue;
834
+ }
835
+ ge && Ye([Z, j, nt], (Dr) => {
836
+ U = we(U, Dr, " ");
837
+ });
838
+ const Ir = B(m.nodeName);
839
+ if (!Mr(Ir, Se, U)) {
840
+ ce(D, m);
841
+ continue;
842
+ }
843
+ if (g && typeof a == "object" && typeof a.getAttributeType == "function" && !V)
844
+ switch (a.getAttributeType(Ir, Se)) {
845
+ case "TrustedHTML": {
846
+ U = g.createHTML(U);
847
+ break;
848
+ }
849
+ case "TrustedScriptURL": {
850
+ U = g.createScriptURL(U);
851
+ break;
852
+ }
853
+ }
854
+ if (U !== gt)
855
+ try {
856
+ V ? m.setAttributeNS(V, D, U) : m.setAttribute(D, U), dt(m) ? ee(m) : Fr(e.removed);
857
+ } catch {
858
+ ce(D, m);
859
+ }
860
+ }
861
+ ne(T.afterSanitizeAttributes, m, null);
862
+ }, Gn = function L(m) {
863
+ let C = null;
864
+ const w = Pr(m);
865
+ for (ne(T.beforeSanitizeShadowDOM, m, null); C = w.nextNode(); )
866
+ ne(T.uponSanitizeShadowNode, C, null), Or(C), Rr(C), C.content instanceof f && L(C.content);
867
+ ne(T.afterSanitizeShadowDOM, m, null);
868
+ };
869
+ return e.sanitize = function(L) {
870
+ let m = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, C = null, w = null, R = null, G = null;
871
+ if (pt = !L, pt && (L = "<!-->"), typeof L != "string" && !Tr(L))
872
+ if (typeof L.toString == "function") {
873
+ if (L = L.toString(), typeof L != "string")
874
+ throw Le("dirty is not a string, aborting");
875
+ } else
876
+ throw Le("toString is not a function");
877
+ if (!e.isSupported)
878
+ return L;
879
+ if (st || ft(m), e.removed = [], typeof L == "string" && (ke = !1), ke) {
880
+ if (L.nodeName) {
881
+ const ie = B(L.nodeName);
882
+ if (!H[ie] || Ee[ie])
883
+ throw Le("root node is forbidden and cannot be sanitized in-place");
884
+ }
885
+ } else if (L instanceof l)
886
+ C = xr("<!---->"), w = C.ownerDocument.importNode(L, !0), w.nodeType === Pe.element && w.nodeName === "BODY" || w.nodeName === "HTML" ? C = w : C.appendChild(w);
887
+ else {
888
+ if (!me && !ge && !ue && // eslint-disable-next-line unicorn/prefer-includes
889
+ L.indexOf("<") === -1)
890
+ return g && Ge ? g.createHTML(L) : L;
891
+ if (C = xr(L), !C)
892
+ return me ? null : Ge ? S : "";
893
+ }
894
+ C && at && ee(C.firstChild);
895
+ const D = Pr(ke ? L : C);
896
+ for (; R = D.nextNode(); )
897
+ Or(R), Rr(R), R.content instanceof f && Gn(R.content);
898
+ if (ke)
899
+ return L;
900
+ if (me) {
901
+ if (Ue)
902
+ for (G = x.call(C.ownerDocument); C.firstChild; )
903
+ G.appendChild(C.firstChild);
904
+ else
905
+ G = C;
906
+ return (F.shadowroot || F.shadowrootmode) && (G = O.call(c, G, !0)), G;
907
+ }
908
+ let V = ue ? C.outerHTML : C.innerHTML;
909
+ return ue && H["!doctype"] && C.ownerDocument && C.ownerDocument.doctype && C.ownerDocument.doctype.name && q(hn, C.ownerDocument.doctype.name) && (V = "<!DOCTYPE " + C.ownerDocument.doctype.name + `>
910
+ ` + V), ge && Ye([Z, j, nt], (ie) => {
911
+ V = we(V, ie, " ");
912
+ }), g && Ge ? g.createHTML(V) : V;
913
+ }, e.setConfig = function() {
914
+ let L = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
915
+ ft(L), st = !0;
916
+ }, e.clearConfig = function() {
917
+ ye = null, st = !1;
918
+ }, e.isValidAttribute = function(L, m, C) {
919
+ ye || ft({});
920
+ const w = B(L), R = B(m);
921
+ return Mr(w, R, C);
922
+ }, e.addHook = function(L, m) {
923
+ typeof m == "function" && Ae(T[L], m);
924
+ }, e.removeHook = function(L, m) {
925
+ if (m !== void 0) {
926
+ const C = ei(T[L], m);
927
+ return C === -1 ? void 0 : ti(T[L], C, 1)[0];
928
+ }
929
+ return Fr(T[L]);
930
+ }, e.removeHooks = function(L) {
931
+ T[L] = [];
932
+ }, e.removeAllHooks = function() {
933
+ T = Vr();
934
+ }, e;
935
+ }
936
+ var _i = fn();
937
+ function je(t) {
938
+ return _i.sanitize(t, {
939
+ ALLOWED_TAGS: [
940
+ // Structure
941
+ "div",
942
+ "span",
943
+ "section",
944
+ "article",
945
+ "header",
946
+ "footer",
947
+ "main",
948
+ // Typography
949
+ "p",
950
+ "h1",
951
+ "h2",
952
+ "h3",
953
+ "h4",
954
+ "h5",
955
+ "h6",
956
+ "strong",
957
+ "em",
958
+ "b",
959
+ "i",
960
+ "u",
961
+ "small",
962
+ "br",
963
+ "hr",
964
+ // Tables
965
+ "table",
966
+ "tbody",
967
+ "thead",
968
+ "tfoot",
969
+ "tr",
970
+ "td",
971
+ "th",
972
+ "caption",
973
+ // Lists
974
+ "ul",
975
+ "ol",
976
+ "li",
977
+ "dl",
978
+ "dt",
979
+ "dd",
980
+ // Media
981
+ "img",
982
+ // Styling (needed for print templates)
983
+ "style"
984
+ ],
985
+ ALLOWED_ATTR: [
986
+ "class",
987
+ "style",
988
+ "id",
989
+ "src",
990
+ "alt",
991
+ "width",
992
+ "height",
993
+ "colspan",
994
+ "rowspan",
995
+ "data-block-id"
996
+ // Used for block highlighting in preview
997
+ ],
998
+ FORBID_TAGS: [
999
+ "script",
1000
+ "iframe",
1001
+ "object",
1002
+ "embed",
1003
+ "applet",
1004
+ "form",
1005
+ "input",
1006
+ "button",
1007
+ "textarea",
1008
+ "select",
1009
+ "link",
1010
+ "meta",
1011
+ "base"
1012
+ ],
1013
+ FORBID_ATTR: [
1014
+ "onerror",
1015
+ "onload",
1016
+ "onclick",
1017
+ "onmouseover",
1018
+ "onmouseout",
1019
+ "onfocus",
1020
+ "onblur",
1021
+ "onchange",
1022
+ "onsubmit"
1023
+ ],
1024
+ ALLOW_DATA_ATTR: !0,
1025
+ // Allow data-* attributes (e.g., data-block-id for highlighting)
1026
+ ADD_DATA_URI_TAGS: ["img"],
1027
+ // Allow data URIs only for images
1028
+ ALLOW_UNKNOWN_PROTOCOLS: !1,
1029
+ ALLOWED_URI_REGEXP: /^(?:(?:(?:f|ht)tps?|mailto|tel|data):)/i
1030
+ });
1031
+ }
1032
+ function yi(t, e) {
1033
+ return e !== "customText" ? t : t.map((i) => i.key === "content" && (i.type === "text" || i.type === "textarea") ? {
1034
+ ...i,
1035
+ value: je(i.value)
1036
+ } : i);
1037
+ }
1038
+ function Ts(t) {
1039
+ return t.map((e) => e.config ? {
1040
+ ...e,
1041
+ config: {
1042
+ ...e.config,
1043
+ configFields: yi(e.config.configFields || [], e.tag),
1044
+ templateHtml: e.config.templateHtml
1045
+ }
1046
+ } : e);
1047
+ }
1048
+ var It = { exports: {} }, Dt = { exports: {} }, Y = {}, M = {};
1049
+ M.__esModule = !0;
1050
+ M.extend = dn;
1051
+ M.indexOf = Ci;
1052
+ M.escapeExpression = Ai;
1053
+ M.isEmpty = wi;
1054
+ M.createFrame = Li;
1055
+ M.blockParams = xi;
1056
+ M.appendContextPath = Pi;
1057
+ var Si = {
1058
+ "&": "&amp;",
1059
+ "<": "&lt;",
1060
+ ">": "&gt;",
1061
+ '"': "&quot;",
1062
+ "'": "&#x27;",
1063
+ "`": "&#x60;",
1064
+ "=": "&#x3D;"
1065
+ }, bi = /[&<>"'`=]/g, Ei = /[&<>"'`=]/;
1066
+ function ki(t) {
1067
+ return Si[t];
1068
+ }
1069
+ function dn(t) {
1070
+ for (var e = 1; e < arguments.length; e++)
1071
+ for (var i in arguments[e])
1072
+ Object.prototype.hasOwnProperty.call(arguments[e], i) && (t[i] = arguments[e][i]);
1073
+ return t;
1074
+ }
1075
+ var ar = Object.prototype.toString;
1076
+ M.toString = ar;
1077
+ var Bt = function(e) {
1078
+ return typeof e == "function";
1079
+ };
1080
+ Bt(/x/) && (M.isFunction = Bt = function(t) {
1081
+ return typeof t == "function" && ar.call(t) === "[object Function]";
1082
+ });
1083
+ M.isFunction = Bt;
1084
+ var gn = Array.isArray || function(t) {
1085
+ return t && typeof t == "object" ? ar.call(t) === "[object Array]" : !1;
1086
+ };
1087
+ M.isArray = gn;
1088
+ function Ci(t, e) {
1089
+ for (var i = 0, c = t.length; i < c; i++)
1090
+ if (t[i] === e)
1091
+ return i;
1092
+ return -1;
1093
+ }
1094
+ function Ai(t) {
1095
+ if (typeof t != "string") {
1096
+ if (t && t.toHTML)
1097
+ return t.toHTML();
1098
+ if (t == null)
1099
+ return "";
1100
+ if (!t)
1101
+ return t + "";
1102
+ t = "" + t;
1103
+ }
1104
+ return Ei.test(t) ? t.replace(bi, ki) : t;
1105
+ }
1106
+ function wi(t) {
1107
+ return !t && t !== 0 ? !0 : !!(gn(t) && t.length === 0);
1108
+ }
1109
+ function Li(t) {
1110
+ var e = dn({}, t);
1111
+ return e._parent = t, e;
1112
+ }
1113
+ function xi(t, e) {
1114
+ return t.path = e, t;
1115
+ }
1116
+ function Pi(t, e) {
1117
+ return (t ? t + "." : "") + e;
1118
+ }
1119
+ var Ht = { exports: {} };
1120
+ (function(t, e) {
1121
+ e.__esModule = !0;
1122
+ var i = ["description", "fileName", "lineNumber", "endLineNumber", "message", "name", "number", "stack"];
1123
+ function c(h, f) {
1124
+ var p = f && f.loc, l = void 0, o = void 0, u = void 0, s = void 0;
1125
+ p && (l = p.start.line, o = p.end.line, u = p.start.column, s = p.end.column, h += " - " + l + ":" + u);
1126
+ for (var d = Error.prototype.constructor.call(this, h), r = 0; r < i.length; r++)
1127
+ this[i[r]] = d[i[r]];
1128
+ Error.captureStackTrace && Error.captureStackTrace(this, c);
1129
+ try {
1130
+ p && (this.lineNumber = l, this.endLineNumber = o, Object.defineProperty ? (Object.defineProperty(this, "column", {
1131
+ value: u,
1132
+ enumerable: !0
1133
+ }), Object.defineProperty(this, "endColumn", {
1134
+ value: s,
1135
+ enumerable: !0
1136
+ })) : (this.column = u, this.endColumn = s));
1137
+ } catch {
1138
+ }
1139
+ }
1140
+ c.prototype = new Error(), e.default = c, t.exports = e.default;
1141
+ })(Ht, Ht.exports);
1142
+ var Q = Ht.exports, Ie = {}, Ft = { exports: {} };
1143
+ (function(t, e) {
1144
+ e.__esModule = !0;
1145
+ var i = M;
1146
+ e.default = function(c) {
1147
+ c.registerHelper("blockHelperMissing", function(h, f) {
1148
+ var p = f.inverse, l = f.fn;
1149
+ if (h === !0)
1150
+ return l(this);
1151
+ if (h === !1 || h == null)
1152
+ return p(this);
1153
+ if (i.isArray(h))
1154
+ return h.length > 0 ? (f.ids && (f.ids = [f.name]), c.helpers.each(h, f)) : p(this);
1155
+ if (f.data && f.ids) {
1156
+ var o = i.createFrame(f.data);
1157
+ o.contextPath = i.appendContextPath(f.data.contextPath, f.name), f = { data: o };
1158
+ }
1159
+ return l(h, f);
1160
+ });
1161
+ }, t.exports = e.default;
1162
+ })(Ft, Ft.exports);
1163
+ var Ti = Ft.exports, Ut = { exports: {} };
1164
+ (function(t, e) {
1165
+ e.__esModule = !0;
1166
+ function i(p) {
1167
+ return p && p.__esModule ? p : { default: p };
1168
+ }
1169
+ var c = M, h = Q, f = i(h);
1170
+ e.default = function(p) {
1171
+ p.registerHelper("each", function(l, o) {
1172
+ if (!o)
1173
+ throw new f.default("Must pass iterator to #each");
1174
+ var u = o.fn, s = o.inverse, d = 0, r = "", a = void 0, n = void 0;
1175
+ o.data && o.ids && (n = c.appendContextPath(o.data.contextPath, o.ids[0]) + "."), c.isFunction(l) && (l = l.call(this)), o.data && (a = c.createFrame(o.data));
1176
+ function v(g, S, A) {
1177
+ a && (a.key = g, a.index = S, a.first = S === 0, a.last = !!A, n && (a.contextPath = n + g)), r = r + u(l[g], {
1178
+ data: a,
1179
+ blockParams: c.blockParams([l[g], g], [n + g, null])
1180
+ });
1181
+ }
1182
+ if (l && typeof l == "object")
1183
+ if (c.isArray(l))
1184
+ for (var _ = l.length; d < _; d++)
1185
+ d in l && v(d, d, d === l.length - 1);
1186
+ else if (typeof Symbol == "function" && l[Symbol.iterator]) {
1187
+ for (var b = [], y = l[Symbol.iterator](), E = y.next(); !E.done; E = y.next())
1188
+ b.push(E.value);
1189
+ l = b;
1190
+ for (var _ = l.length; d < _; d++)
1191
+ v(d, d, d === l.length - 1);
1192
+ } else
1193
+ (function() {
1194
+ var g = void 0;
1195
+ Object.keys(l).forEach(function(S) {
1196
+ g !== void 0 && v(g, d - 1), g = S, d++;
1197
+ }), g !== void 0 && v(g, d - 1, !0);
1198
+ })();
1199
+ return d === 0 && (r = s(this)), r;
1200
+ });
1201
+ }, t.exports = e.default;
1202
+ })(Ut, Ut.exports);
1203
+ var Oi = Ut.exports, Gt = { exports: {} };
1204
+ (function(t, e) {
1205
+ e.__esModule = !0;
1206
+ function i(f) {
1207
+ return f && f.__esModule ? f : { default: f };
1208
+ }
1209
+ var c = Q, h = i(c);
1210
+ e.default = function(f) {
1211
+ f.registerHelper("helperMissing", function() {
1212
+ if (arguments.length !== 1)
1213
+ throw new h.default('Missing helper: "' + arguments[arguments.length - 1].name + '"');
1214
+ });
1215
+ }, t.exports = e.default;
1216
+ })(Gt, Gt.exports);
1217
+ var Mi = Gt.exports, qt = { exports: {} };
1218
+ (function(t, e) {
1219
+ e.__esModule = !0;
1220
+ function i(p) {
1221
+ return p && p.__esModule ? p : { default: p };
1222
+ }
1223
+ var c = M, h = Q, f = i(h);
1224
+ e.default = function(p) {
1225
+ p.registerHelper("if", function(l, o) {
1226
+ if (arguments.length != 2)
1227
+ throw new f.default("#if requires exactly one argument");
1228
+ return c.isFunction(l) && (l = l.call(this)), !o.hash.includeZero && !l || c.isEmpty(l) ? o.inverse(this) : o.fn(this);
1229
+ }), p.registerHelper("unless", function(l, o) {
1230
+ if (arguments.length != 2)
1231
+ throw new f.default("#unless requires exactly one argument");
1232
+ return p.helpers.if.call(this, l, {
1233
+ fn: o.inverse,
1234
+ inverse: o.fn,
1235
+ hash: o.hash
1236
+ });
1237
+ });
1238
+ }, t.exports = e.default;
1239
+ })(qt, qt.exports);
1240
+ var Ni = qt.exports, Wt = { exports: {} };
1241
+ (function(t, e) {
1242
+ e.__esModule = !0, e.default = function(i) {
1243
+ i.registerHelper("log", function() {
1244
+ for (var c = [void 0], h = arguments[arguments.length - 1], f = 0; f < arguments.length - 1; f++)
1245
+ c.push(arguments[f]);
1246
+ var p = 1;
1247
+ h.hash.level != null ? p = h.hash.level : h.data && h.data.level != null && (p = h.data.level), c[0] = p, i.log.apply(i, c);
1248
+ });
1249
+ }, t.exports = e.default;
1250
+ })(Wt, Wt.exports);
1251
+ var Ri = Wt.exports, zt = { exports: {} };
1252
+ (function(t, e) {
1253
+ e.__esModule = !0, e.default = function(i) {
1254
+ i.registerHelper("lookup", function(c, h, f) {
1255
+ return c && f.lookupProperty(c, h);
1256
+ });
1257
+ }, t.exports = e.default;
1258
+ })(zt, zt.exports);
1259
+ var Ii = zt.exports, Vt = { exports: {} };
1260
+ (function(t, e) {
1261
+ e.__esModule = !0;
1262
+ function i(p) {
1263
+ return p && p.__esModule ? p : { default: p };
1264
+ }
1265
+ var c = M, h = Q, f = i(h);
1266
+ e.default = function(p) {
1267
+ p.registerHelper("with", function(l, o) {
1268
+ if (arguments.length != 2)
1269
+ throw new f.default("#with requires exactly one argument");
1270
+ c.isFunction(l) && (l = l.call(this));
1271
+ var u = o.fn;
1272
+ if (c.isEmpty(l))
1273
+ return o.inverse(this);
1274
+ var s = o.data;
1275
+ return o.data && o.ids && (s = c.createFrame(o.data), s.contextPath = c.appendContextPath(o.data.contextPath, o.ids[0])), u(l, {
1276
+ data: s,
1277
+ blockParams: c.blockParams([l], [s && s.contextPath])
1278
+ });
1279
+ });
1280
+ }, t.exports = e.default;
1281
+ })(Vt, Vt.exports);
1282
+ var Di = Vt.exports;
1283
+ Ie.__esModule = !0;
1284
+ Ie.registerDefaultHelpers = Zi;
1285
+ Ie.moveHelperToHooks = ji;
1286
+ function fe(t) {
1287
+ return t && t.__esModule ? t : { default: t };
1288
+ }
1289
+ var Bi = Ti, Hi = fe(Bi), Fi = Oi, Ui = fe(Fi), Gi = Mi, qi = fe(Gi), Wi = Ni, zi = fe(Wi), Vi = Ri, Ki = fe(Vi), Yi = Ii, Xi = fe(Yi), Ji = Di, Qi = fe(Ji);
1290
+ function Zi(t) {
1291
+ Hi.default(t), Ui.default(t), qi.default(t), zi.default(t), Ki.default(t), Xi.default(t), Qi.default(t);
1292
+ }
1293
+ function ji(t, e, i) {
1294
+ t.helpers[e] && (t.hooks[e] = t.helpers[e], i || delete t.helpers[e]);
1295
+ }
1296
+ var lr = {}, Kt = { exports: {} };
1297
+ (function(t, e) {
1298
+ e.__esModule = !0;
1299
+ var i = M;
1300
+ e.default = function(c) {
1301
+ c.registerDecorator("inline", function(h, f, p, l) {
1302
+ var o = h;
1303
+ return f.partials || (f.partials = {}, o = function(u, s) {
1304
+ var d = p.partials;
1305
+ p.partials = i.extend({}, d, f.partials);
1306
+ var r = h(u, s);
1307
+ return p.partials = d, r;
1308
+ }), f.partials[l.args[0]] = l.fn, o;
1309
+ });
1310
+ }, t.exports = e.default;
1311
+ })(Kt, Kt.exports);
1312
+ var $i = Kt.exports;
1313
+ lr.__esModule = !0;
1314
+ lr.registerDefaultDecorators = no;
1315
+ function eo(t) {
1316
+ return t && t.__esModule ? t : { default: t };
1317
+ }
1318
+ var to = $i, ro = eo(to);
1319
+ function no(t) {
1320
+ ro.default(t);
1321
+ }
1322
+ var Yt = { exports: {} };
1323
+ (function(t, e) {
1324
+ e.__esModule = !0;
1325
+ var i = M, c = {
1326
+ methodMap: ["debug", "info", "warn", "error"],
1327
+ level: "info",
1328
+ // Maps a given level value to the `methodMap` indexes above.
1329
+ lookupLevel: function(f) {
1330
+ if (typeof f == "string") {
1331
+ var p = i.indexOf(c.methodMap, f.toLowerCase());
1332
+ p >= 0 ? f = p : f = parseInt(f, 10);
1333
+ }
1334
+ return f;
1335
+ },
1336
+ // Can be overridden in the host environment
1337
+ log: function(f) {
1338
+ if (f = c.lookupLevel(f), typeof console < "u" && c.lookupLevel(c.level) <= f) {
1339
+ var p = c.methodMap[f];
1340
+ console[p] || (p = "log");
1341
+ for (var l = arguments.length, o = Array(l > 1 ? l - 1 : 0), u = 1; u < l; u++)
1342
+ o[u - 1] = arguments[u];
1343
+ console[p].apply(console, o);
1344
+ }
1345
+ }
1346
+ };
1347
+ e.default = c, t.exports = e.default;
1348
+ })(Yt, Yt.exports);
1349
+ var mn = Yt.exports, be = {}, ur = {};
1350
+ ur.__esModule = !0;
1351
+ ur.createNewLookupObject = oo;
1352
+ var io = M;
1353
+ function oo() {
1354
+ for (var t = arguments.length, e = Array(t), i = 0; i < t; i++)
1355
+ e[i] = arguments[i];
1356
+ return io.extend.apply(void 0, [/* @__PURE__ */ Object.create(null)].concat(e));
1357
+ }
1358
+ be.__esModule = !0;
1359
+ be.createProtoAccessControl = uo;
1360
+ be.resultIsAllowed = co;
1361
+ be.resetLoggedProperties = ho;
1362
+ function so(t) {
1363
+ return t && t.__esModule ? t : { default: t };
1364
+ }
1365
+ var Kr = ur, ao = mn, lo = so(ao), tt = /* @__PURE__ */ Object.create(null);
1366
+ function uo(t) {
1367
+ var e = /* @__PURE__ */ Object.create(null);
1368
+ e.constructor = !1, e.__defineGetter__ = !1, e.__defineSetter__ = !1, e.__lookupGetter__ = !1;
1369
+ var i = /* @__PURE__ */ Object.create(null);
1370
+ return i.__proto__ = !1, {
1371
+ properties: {
1372
+ whitelist: Kr.createNewLookupObject(i, t.allowedProtoProperties),
1373
+ defaultValue: t.allowProtoPropertiesByDefault
1374
+ },
1375
+ methods: {
1376
+ whitelist: Kr.createNewLookupObject(e, t.allowedProtoMethods),
1377
+ defaultValue: t.allowProtoMethodsByDefault
1378
+ }
1379
+ };
1380
+ }
1381
+ function co(t, e, i) {
1382
+ return Yr(typeof t == "function" ? e.methods : e.properties, i);
1383
+ }
1384
+ function Yr(t, e) {
1385
+ return t.whitelist[e] !== void 0 ? t.whitelist[e] === !0 : t.defaultValue !== void 0 ? t.defaultValue : (po(e), !1);
1386
+ }
1387
+ function po(t) {
1388
+ tt[t] !== !0 && (tt[t] = !0, lo.default.log("error", 'Handlebars: Access has been denied to resolve the property "' + t + `" because it is not an "own property" of its parent.
1389
+ You can add a runtime option to disable the check or this warning:
1390
+ See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`));
1391
+ }
1392
+ function ho() {
1393
+ Object.keys(tt).forEach(function(t) {
1394
+ delete tt[t];
1395
+ });
1396
+ }
1397
+ Y.__esModule = !0;
1398
+ Y.HandlebarsEnvironment = Xt;
1399
+ function vn(t) {
1400
+ return t && t.__esModule ? t : { default: t };
1401
+ }
1402
+ var he = M, fo = Q, kt = vn(fo), go = Ie, mo = lr, vo = mn, rt = vn(vo), _o = be, yo = "4.7.8";
1403
+ Y.VERSION = yo;
1404
+ var So = 8;
1405
+ Y.COMPILER_REVISION = So;
1406
+ var bo = 7;
1407
+ Y.LAST_COMPATIBLE_COMPILER_REVISION = bo;
1408
+ var Eo = {
1409
+ 1: "<= 1.0.rc.2",
1410
+ // 1.0.rc.2 is actually rev2 but doesn't report it
1411
+ 2: "== 1.0.0-rc.3",
1412
+ 3: "== 1.0.0-rc.4",
1413
+ 4: "== 1.x.x",
1414
+ 5: "== 2.0.0-alpha.x",
1415
+ 6: ">= 2.0.0-beta.1",
1416
+ 7: ">= 4.0.0 <4.3.0",
1417
+ 8: ">= 4.3.0"
1418
+ };
1419
+ Y.REVISION_CHANGES = Eo;
1420
+ var Ct = "[object Object]";
1421
+ function Xt(t, e, i) {
1422
+ this.helpers = t || {}, this.partials = e || {}, this.decorators = i || {}, go.registerDefaultHelpers(this), mo.registerDefaultDecorators(this);
1423
+ }
1424
+ Xt.prototype = {
1425
+ constructor: Xt,
1426
+ logger: rt.default,
1427
+ log: rt.default.log,
1428
+ registerHelper: function(e, i) {
1429
+ if (he.toString.call(e) === Ct) {
1430
+ if (i)
1431
+ throw new kt.default("Arg not supported with multiple helpers");
1432
+ he.extend(this.helpers, e);
1433
+ } else
1434
+ this.helpers[e] = i;
1435
+ },
1436
+ unregisterHelper: function(e) {
1437
+ delete this.helpers[e];
1438
+ },
1439
+ registerPartial: function(e, i) {
1440
+ if (he.toString.call(e) === Ct)
1441
+ he.extend(this.partials, e);
1442
+ else {
1443
+ if (typeof i > "u")
1444
+ throw new kt.default('Attempting to register a partial called "' + e + '" as undefined');
1445
+ this.partials[e] = i;
1446
+ }
1447
+ },
1448
+ unregisterPartial: function(e) {
1449
+ delete this.partials[e];
1450
+ },
1451
+ registerDecorator: function(e, i) {
1452
+ if (he.toString.call(e) === Ct) {
1453
+ if (i)
1454
+ throw new kt.default("Arg not supported with multiple decorators");
1455
+ he.extend(this.decorators, e);
1456
+ } else
1457
+ this.decorators[e] = i;
1458
+ },
1459
+ unregisterDecorator: function(e) {
1460
+ delete this.decorators[e];
1461
+ },
1462
+ /**
1463
+ * Reset the memory of illegal property accesses that have already been logged.
1464
+ * @deprecated should only be used in handlebars test-cases
1465
+ */
1466
+ resetLoggedPropertyAccesses: function() {
1467
+ _o.resetLoggedProperties();
1468
+ }
1469
+ };
1470
+ var ko = rt.default.log;
1471
+ Y.log = ko;
1472
+ Y.createFrame = he.createFrame;
1473
+ Y.logger = rt.default;
1474
+ var Jt = { exports: {} };
1475
+ (function(t, e) {
1476
+ e.__esModule = !0;
1477
+ function i(c) {
1478
+ this.string = c;
1479
+ }
1480
+ i.prototype.toString = i.prototype.toHTML = function() {
1481
+ return "" + this.string;
1482
+ }, e.default = i, t.exports = e.default;
1483
+ })(Jt, Jt.exports);
1484
+ var Co = Jt.exports, le = {}, cr = {};
1485
+ cr.__esModule = !0;
1486
+ cr.wrapHelper = Ao;
1487
+ function Ao(t, e) {
1488
+ if (typeof t != "function")
1489
+ return t;
1490
+ var i = function() {
1491
+ var h = arguments[arguments.length - 1];
1492
+ return arguments[arguments.length - 1] = e(h), t.apply(this, arguments);
1493
+ };
1494
+ return i;
1495
+ }
1496
+ le.__esModule = !0;
1497
+ le.checkRevision = Oo;
1498
+ le.template = Mo;
1499
+ le.wrapProgram = $e;
1500
+ le.resolvePartial = No;
1501
+ le.invokePartial = Ro;
1502
+ le.noop = _n;
1503
+ function wo(t) {
1504
+ return t && t.__esModule ? t : { default: t };
1505
+ }
1506
+ function Lo(t) {
1507
+ if (t && t.__esModule)
1508
+ return t;
1509
+ var e = {};
1510
+ if (t != null)
1511
+ for (var i in t)
1512
+ Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
1513
+ return e.default = t, e;
1514
+ }
1515
+ var xo = M, oe = Lo(xo), Po = Q, se = wo(Po), ae = Y, Xr = Ie, To = cr, Jr = be;
1516
+ function Oo(t) {
1517
+ var e = t && t[0] || 1, i = ae.COMPILER_REVISION;
1518
+ if (!(e >= ae.LAST_COMPATIBLE_COMPILER_REVISION && e <= ae.COMPILER_REVISION))
1519
+ if (e < ae.LAST_COMPATIBLE_COMPILER_REVISION) {
1520
+ var c = ae.REVISION_CHANGES[i], h = ae.REVISION_CHANGES[e];
1521
+ throw new se.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version (" + c + ") or downgrade your runtime to an older version (" + h + ").");
1522
+ } else
1523
+ throw new se.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version (" + t[1] + ").");
1524
+ }
1525
+ function Mo(t, e) {
1526
+ if (!e)
1527
+ throw new se.default("No environment passed to template");
1528
+ if (!t || !t.main)
1529
+ throw new se.default("Unknown template object: " + typeof t);
1530
+ t.main.decorator = t.main_d, e.VM.checkRevision(t.compiler);
1531
+ var i = t.compiler && t.compiler[0] === 7;
1532
+ function c(p, l, o) {
1533
+ o.hash && (l = oe.extend({}, l, o.hash), o.ids && (o.ids[0] = !0)), p = e.VM.resolvePartial.call(this, p, l, o);
1534
+ var u = oe.extend({}, o, {
1535
+ hooks: this.hooks,
1536
+ protoAccessControl: this.protoAccessControl
1537
+ }), s = e.VM.invokePartial.call(this, p, l, u);
1538
+ if (s == null && e.compile && (o.partials[o.name] = e.compile(p, t.compilerOptions, e), s = o.partials[o.name](l, u)), s != null) {
1539
+ if (o.indent) {
1540
+ for (var d = s.split(`
1541
+ `), r = 0, a = d.length; r < a && !(!d[r] && r + 1 === a); r++)
1542
+ d[r] = o.indent + d[r];
1543
+ s = d.join(`
1544
+ `);
1545
+ }
1546
+ return s;
1547
+ } else
1548
+ throw new se.default("The partial " + o.name + " could not be compiled when running in runtime-only mode");
1549
+ }
1550
+ var h = {
1551
+ strict: function(l, o, u) {
1552
+ if (!l || !(o in l))
1553
+ throw new se.default('"' + o + '" not defined in ' + l, {
1554
+ loc: u
1555
+ });
1556
+ return h.lookupProperty(l, o);
1557
+ },
1558
+ lookupProperty: function(l, o) {
1559
+ var u = l[o];
1560
+ if (u == null || Object.prototype.hasOwnProperty.call(l, o) || Jr.resultIsAllowed(u, h.protoAccessControl, o))
1561
+ return u;
1562
+ },
1563
+ lookup: function(l, o) {
1564
+ for (var u = l.length, s = 0; s < u; s++) {
1565
+ var d = l[s] && h.lookupProperty(l[s], o);
1566
+ if (d != null)
1567
+ return l[s][o];
1568
+ }
1569
+ },
1570
+ lambda: function(l, o) {
1571
+ return typeof l == "function" ? l.call(o) : l;
1572
+ },
1573
+ escapeExpression: oe.escapeExpression,
1574
+ invokePartial: c,
1575
+ fn: function(l) {
1576
+ var o = t[l];
1577
+ return o.decorator = t[l + "_d"], o;
1578
+ },
1579
+ programs: [],
1580
+ program: function(l, o, u, s, d) {
1581
+ var r = this.programs[l], a = this.fn(l);
1582
+ return o || d || s || u ? r = $e(this, l, a, o, u, s, d) : r || (r = this.programs[l] = $e(this, l, a)), r;
1583
+ },
1584
+ data: function(l, o) {
1585
+ for (; l && o--; )
1586
+ l = l._parent;
1587
+ return l;
1588
+ },
1589
+ mergeIfNeeded: function(l, o) {
1590
+ var u = l || o;
1591
+ return l && o && l !== o && (u = oe.extend({}, o, l)), u;
1592
+ },
1593
+ // An empty object to use as replacement for null-contexts
1594
+ nullContext: Object.seal({}),
1595
+ noop: e.VM.noop,
1596
+ compilerInfo: t.compiler
1597
+ };
1598
+ function f(p) {
1599
+ var l = arguments.length <= 1 || arguments[1] === void 0 ? {} : arguments[1], o = l.data;
1600
+ f._setup(l), !l.partial && t.useData && (o = Io(p, o));
1601
+ var u = void 0, s = t.useBlockParams ? [] : void 0;
1602
+ t.useDepths && (l.depths ? u = p != l.depths[0] ? [p].concat(l.depths) : l.depths : u = [p]);
1603
+ function d(r) {
1604
+ return "" + t.main(h, r, h.helpers, h.partials, o, s, u);
1605
+ }
1606
+ return d = yn(t.main, d, h, l.depths || [], o, s), d(p, l);
1607
+ }
1608
+ return f.isTop = !0, f._setup = function(p) {
1609
+ if (p.partial)
1610
+ h.protoAccessControl = p.protoAccessControl, h.helpers = p.helpers, h.partials = p.partials, h.decorators = p.decorators, h.hooks = p.hooks;
1611
+ else {
1612
+ var l = oe.extend({}, e.helpers, p.helpers);
1613
+ Do(l, h), h.helpers = l, t.usePartial && (h.partials = h.mergeIfNeeded(p.partials, e.partials)), (t.usePartial || t.useDecorators) && (h.decorators = oe.extend({}, e.decorators, p.decorators)), h.hooks = {}, h.protoAccessControl = Jr.createProtoAccessControl(p);
1614
+ var o = p.allowCallsToHelperMissing || i;
1615
+ Xr.moveHelperToHooks(h, "helperMissing", o), Xr.moveHelperToHooks(h, "blockHelperMissing", o);
1616
+ }
1617
+ }, f._child = function(p, l, o, u) {
1618
+ if (t.useBlockParams && !o)
1619
+ throw new se.default("must pass block params");
1620
+ if (t.useDepths && !u)
1621
+ throw new se.default("must pass parent depths");
1622
+ return $e(h, p, t[p], l, 0, o, u);
1623
+ }, f;
1624
+ }
1625
+ function $e(t, e, i, c, h, f, p) {
1626
+ function l(o) {
1627
+ var u = arguments.length <= 1 || arguments[1] === void 0 ? {} : arguments[1], s = p;
1628
+ return p && o != p[0] && !(o === t.nullContext && p[0] === null) && (s = [o].concat(p)), i(t, o, t.helpers, t.partials, u.data || c, f && [u.blockParams].concat(f), s);
1629
+ }
1630
+ return l = yn(i, l, t, p, c, f), l.program = e, l.depth = p ? p.length : 0, l.blockParams = h || 0, l;
1631
+ }
1632
+ function No(t, e, i) {
1633
+ return t ? !t.call && !i.name && (i.name = t, t = i.partials[t]) : i.name === "@partial-block" ? t = i.data["partial-block"] : t = i.partials[i.name], t;
1634
+ }
1635
+ function Ro(t, e, i) {
1636
+ var c = i.data && i.data["partial-block"];
1637
+ i.partial = !0, i.ids && (i.data.contextPath = i.ids[0] || i.data.contextPath);
1638
+ var h = void 0;
1639
+ if (i.fn && i.fn !== _n && function() {
1640
+ i.data = ae.createFrame(i.data);
1641
+ var f = i.fn;
1642
+ h = i.data["partial-block"] = function(l) {
1643
+ var o = arguments.length <= 1 || arguments[1] === void 0 ? {} : arguments[1];
1644
+ return o.data = ae.createFrame(o.data), o.data["partial-block"] = c, f(l, o);
1645
+ }, f.partials && (i.partials = oe.extend({}, i.partials, f.partials));
1646
+ }(), t === void 0 && h && (t = h), t === void 0)
1647
+ throw new se.default("The partial " + i.name + " could not be found");
1648
+ if (t instanceof Function)
1649
+ return t(e, i);
1650
+ }
1651
+ function _n() {
1652
+ return "";
1653
+ }
1654
+ function Io(t, e) {
1655
+ return (!e || !("root" in e)) && (e = e ? ae.createFrame(e) : {}, e.root = t), e;
1656
+ }
1657
+ function yn(t, e, i, c, h, f) {
1658
+ if (t.decorator) {
1659
+ var p = {};
1660
+ e = t.decorator(e, p, i, c && c[0], h, f, c), oe.extend(e, p);
1661
+ }
1662
+ return e;
1663
+ }
1664
+ function Do(t, e) {
1665
+ Object.keys(t).forEach(function(i) {
1666
+ var c = t[i];
1667
+ t[i] = Bo(c, e);
1668
+ });
1669
+ }
1670
+ function Bo(t, e) {
1671
+ var i = e.lookupProperty;
1672
+ return To.wrapHelper(t, function(c) {
1673
+ return oe.extend({ lookupProperty: i }, c);
1674
+ });
1675
+ }
1676
+ var Qt = { exports: {} };
1677
+ (function(t, e) {
1678
+ e.__esModule = !0, e.default = function(i) {
1679
+ (function() {
1680
+ typeof globalThis != "object" && (Object.prototype.__defineGetter__("__magic__", function() {
1681
+ return this;
1682
+ }), __magic__.globalThis = __magic__, delete Object.prototype.__magic__);
1683
+ })();
1684
+ var c = globalThis.Handlebars;
1685
+ i.noConflict = function() {
1686
+ return globalThis.Handlebars === i && (globalThis.Handlebars = c), i;
1687
+ };
1688
+ }, t.exports = e.default;
1689
+ })(Qt, Qt.exports);
1690
+ var Sn = Qt.exports;
1691
+ (function(t, e) {
1692
+ e.__esModule = !0;
1693
+ function i(y) {
1694
+ return y && y.__esModule ? y : { default: y };
1695
+ }
1696
+ function c(y) {
1697
+ if (y && y.__esModule)
1698
+ return y;
1699
+ var E = {};
1700
+ if (y != null)
1701
+ for (var g in y)
1702
+ Object.prototype.hasOwnProperty.call(y, g) && (E[g] = y[g]);
1703
+ return E.default = y, E;
1704
+ }
1705
+ var h = Y, f = c(h), p = Co, l = i(p), o = Q, u = i(o), s = M, d = c(s), r = le, a = c(r), n = Sn, v = i(n);
1706
+ function _() {
1707
+ var y = new f.HandlebarsEnvironment();
1708
+ return d.extend(y, f), y.SafeString = l.default, y.Exception = u.default, y.Utils = d, y.escapeExpression = d.escapeExpression, y.VM = a, y.template = function(E) {
1709
+ return a.template(E, y);
1710
+ }, y;
1711
+ }
1712
+ var b = _();
1713
+ b.create = _, v.default(b), b.default = b, e.default = b, t.exports = e.default;
1714
+ })(Dt, Dt.exports);
1715
+ var Ho = Dt.exports, Zt = { exports: {} };
1716
+ (function(t, e) {
1717
+ e.__esModule = !0;
1718
+ var i = {
1719
+ // Public API used to evaluate derived attributes regarding AST nodes
1720
+ helpers: {
1721
+ // a mustache is definitely a helper if:
1722
+ // * it is an eligible helper, and
1723
+ // * it has at least one parameter or hash segment
1724
+ helperExpression: function(h) {
1725
+ return h.type === "SubExpression" || (h.type === "MustacheStatement" || h.type === "BlockStatement") && !!(h.params && h.params.length || h.hash);
1726
+ },
1727
+ scopedId: function(h) {
1728
+ return /^\.|this\b/.test(h.original);
1729
+ },
1730
+ // an ID is simple if it only has one part, and that part is not
1731
+ // `..` or `this`.
1732
+ simpleId: function(h) {
1733
+ return h.parts.length === 1 && !i.helpers.scopedId(h) && !h.depth;
1734
+ }
1735
+ }
1736
+ };
1737
+ e.default = i, t.exports = e.default;
1738
+ })(Zt, Zt.exports);
1739
+ var bn = Zt.exports, De = {}, jt = { exports: {} };
1740
+ (function(t, e) {
1741
+ e.__esModule = !0;
1742
+ var i = function() {
1743
+ var c = {
1744
+ trace: function() {
1745
+ },
1746
+ yy: {},
1747
+ symbols_: { error: 2, root: 3, program: 4, EOF: 5, program_repetition0: 6, statement: 7, mustache: 8, block: 9, rawBlock: 10, partial: 11, partialBlock: 12, content: 13, COMMENT: 14, CONTENT: 15, openRawBlock: 16, rawBlock_repetition0: 17, END_RAW_BLOCK: 18, OPEN_RAW_BLOCK: 19, helperName: 20, openRawBlock_repetition0: 21, openRawBlock_option0: 22, CLOSE_RAW_BLOCK: 23, openBlock: 24, block_option0: 25, closeBlock: 26, openInverse: 27, block_option1: 28, OPEN_BLOCK: 29, openBlock_repetition0: 30, openBlock_option0: 31, openBlock_option1: 32, CLOSE: 33, OPEN_INVERSE: 34, openInverse_repetition0: 35, openInverse_option0: 36, openInverse_option1: 37, openInverseChain: 38, OPEN_INVERSE_CHAIN: 39, openInverseChain_repetition0: 40, openInverseChain_option0: 41, openInverseChain_option1: 42, inverseAndProgram: 43, INVERSE: 44, inverseChain: 45, inverseChain_option0: 46, OPEN_ENDBLOCK: 47, OPEN: 48, mustache_repetition0: 49, mustache_option0: 50, OPEN_UNESCAPED: 51, mustache_repetition1: 52, mustache_option1: 53, CLOSE_UNESCAPED: 54, OPEN_PARTIAL: 55, partialName: 56, partial_repetition0: 57, partial_option0: 58, openPartialBlock: 59, OPEN_PARTIAL_BLOCK: 60, openPartialBlock_repetition0: 61, openPartialBlock_option0: 62, param: 63, sexpr: 64, OPEN_SEXPR: 65, sexpr_repetition0: 66, sexpr_option0: 67, CLOSE_SEXPR: 68, hash: 69, hash_repetition_plus0: 70, hashSegment: 71, ID: 72, EQUALS: 73, blockParams: 74, OPEN_BLOCK_PARAMS: 75, blockParams_repetition_plus0: 76, CLOSE_BLOCK_PARAMS: 77, path: 78, dataName: 79, STRING: 80, NUMBER: 81, BOOLEAN: 82, UNDEFINED: 83, NULL: 84, DATA: 85, pathSegments: 86, SEP: 87, $accept: 0, $end: 1 },
1748
+ terminals_: { 2: "error", 5: "EOF", 14: "COMMENT", 15: "CONTENT", 18: "END_RAW_BLOCK", 19: "OPEN_RAW_BLOCK", 23: "CLOSE_RAW_BLOCK", 29: "OPEN_BLOCK", 33: "CLOSE", 34: "OPEN_INVERSE", 39: "OPEN_INVERSE_CHAIN", 44: "INVERSE", 47: "OPEN_ENDBLOCK", 48: "OPEN", 51: "OPEN_UNESCAPED", 54: "CLOSE_UNESCAPED", 55: "OPEN_PARTIAL", 60: "OPEN_PARTIAL_BLOCK", 65: "OPEN_SEXPR", 68: "CLOSE_SEXPR", 72: "ID", 73: "EQUALS", 75: "OPEN_BLOCK_PARAMS", 77: "CLOSE_BLOCK_PARAMS", 80: "STRING", 81: "NUMBER", 82: "BOOLEAN", 83: "UNDEFINED", 84: "NULL", 85: "DATA", 87: "SEP" },
1749
+ productions_: [0, [3, 2], [4, 1], [7, 1], [7, 1], [7, 1], [7, 1], [7, 1], [7, 1], [7, 1], [13, 1], [10, 3], [16, 5], [9, 4], [9, 4], [24, 6], [27, 6], [38, 6], [43, 2], [45, 3], [45, 1], [26, 3], [8, 5], [8, 5], [11, 5], [12, 3], [59, 5], [63, 1], [63, 1], [64, 5], [69, 1], [71, 3], [74, 3], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [56, 1], [56, 1], [79, 2], [78, 1], [86, 3], [86, 1], [6, 0], [6, 2], [17, 0], [17, 2], [21, 0], [21, 2], [22, 0], [22, 1], [25, 0], [25, 1], [28, 0], [28, 1], [30, 0], [30, 2], [31, 0], [31, 1], [32, 0], [32, 1], [35, 0], [35, 2], [36, 0], [36, 1], [37, 0], [37, 1], [40, 0], [40, 2], [41, 0], [41, 1], [42, 0], [42, 1], [46, 0], [46, 1], [49, 0], [49, 2], [50, 0], [50, 1], [52, 0], [52, 2], [53, 0], [53, 1], [57, 0], [57, 2], [58, 0], [58, 1], [61, 0], [61, 2], [62, 0], [62, 1], [66, 0], [66, 2], [67, 0], [67, 1], [70, 1], [70, 2], [76, 1], [76, 2]],
1750
+ performAction: function(l, o, u, s, d, r, a) {
1751
+ var n = r.length - 1;
1752
+ switch (d) {
1753
+ case 1:
1754
+ return r[n - 1];
1755
+ case 2:
1756
+ this.$ = s.prepareProgram(r[n]);
1757
+ break;
1758
+ case 3:
1759
+ this.$ = r[n];
1760
+ break;
1761
+ case 4:
1762
+ this.$ = r[n];
1763
+ break;
1764
+ case 5:
1765
+ this.$ = r[n];
1766
+ break;
1767
+ case 6:
1768
+ this.$ = r[n];
1769
+ break;
1770
+ case 7:
1771
+ this.$ = r[n];
1772
+ break;
1773
+ case 8:
1774
+ this.$ = r[n];
1775
+ break;
1776
+ case 9:
1777
+ this.$ = {
1778
+ type: "CommentStatement",
1779
+ value: s.stripComment(r[n]),
1780
+ strip: s.stripFlags(r[n], r[n]),
1781
+ loc: s.locInfo(this._$)
1782
+ };
1783
+ break;
1784
+ case 10:
1785
+ this.$ = {
1786
+ type: "ContentStatement",
1787
+ original: r[n],
1788
+ value: r[n],
1789
+ loc: s.locInfo(this._$)
1790
+ };
1791
+ break;
1792
+ case 11:
1793
+ this.$ = s.prepareRawBlock(r[n - 2], r[n - 1], r[n], this._$);
1794
+ break;
1795
+ case 12:
1796
+ this.$ = { path: r[n - 3], params: r[n - 2], hash: r[n - 1] };
1797
+ break;
1798
+ case 13:
1799
+ this.$ = s.prepareBlock(r[n - 3], r[n - 2], r[n - 1], r[n], !1, this._$);
1800
+ break;
1801
+ case 14:
1802
+ this.$ = s.prepareBlock(r[n - 3], r[n - 2], r[n - 1], r[n], !0, this._$);
1803
+ break;
1804
+ case 15:
1805
+ this.$ = { open: r[n - 5], path: r[n - 4], params: r[n - 3], hash: r[n - 2], blockParams: r[n - 1], strip: s.stripFlags(r[n - 5], r[n]) };
1806
+ break;
1807
+ case 16:
1808
+ this.$ = { path: r[n - 4], params: r[n - 3], hash: r[n - 2], blockParams: r[n - 1], strip: s.stripFlags(r[n - 5], r[n]) };
1809
+ break;
1810
+ case 17:
1811
+ this.$ = { path: r[n - 4], params: r[n - 3], hash: r[n - 2], blockParams: r[n - 1], strip: s.stripFlags(r[n - 5], r[n]) };
1812
+ break;
1813
+ case 18:
1814
+ this.$ = { strip: s.stripFlags(r[n - 1], r[n - 1]), program: r[n] };
1815
+ break;
1816
+ case 19:
1817
+ var v = s.prepareBlock(r[n - 2], r[n - 1], r[n], r[n], !1, this._$), _ = s.prepareProgram([v], r[n - 1].loc);
1818
+ _.chained = !0, this.$ = { strip: r[n - 2].strip, program: _, chain: !0 };
1819
+ break;
1820
+ case 20:
1821
+ this.$ = r[n];
1822
+ break;
1823
+ case 21:
1824
+ this.$ = { path: r[n - 1], strip: s.stripFlags(r[n - 2], r[n]) };
1825
+ break;
1826
+ case 22:
1827
+ this.$ = s.prepareMustache(r[n - 3], r[n - 2], r[n - 1], r[n - 4], s.stripFlags(r[n - 4], r[n]), this._$);
1828
+ break;
1829
+ case 23:
1830
+ this.$ = s.prepareMustache(r[n - 3], r[n - 2], r[n - 1], r[n - 4], s.stripFlags(r[n - 4], r[n]), this._$);
1831
+ break;
1832
+ case 24:
1833
+ this.$ = {
1834
+ type: "PartialStatement",
1835
+ name: r[n - 3],
1836
+ params: r[n - 2],
1837
+ hash: r[n - 1],
1838
+ indent: "",
1839
+ strip: s.stripFlags(r[n - 4], r[n]),
1840
+ loc: s.locInfo(this._$)
1841
+ };
1842
+ break;
1843
+ case 25:
1844
+ this.$ = s.preparePartialBlock(r[n - 2], r[n - 1], r[n], this._$);
1845
+ break;
1846
+ case 26:
1847
+ this.$ = { path: r[n - 3], params: r[n - 2], hash: r[n - 1], strip: s.stripFlags(r[n - 4], r[n]) };
1848
+ break;
1849
+ case 27:
1850
+ this.$ = r[n];
1851
+ break;
1852
+ case 28:
1853
+ this.$ = r[n];
1854
+ break;
1855
+ case 29:
1856
+ this.$ = {
1857
+ type: "SubExpression",
1858
+ path: r[n - 3],
1859
+ params: r[n - 2],
1860
+ hash: r[n - 1],
1861
+ loc: s.locInfo(this._$)
1862
+ };
1863
+ break;
1864
+ case 30:
1865
+ this.$ = { type: "Hash", pairs: r[n], loc: s.locInfo(this._$) };
1866
+ break;
1867
+ case 31:
1868
+ this.$ = { type: "HashPair", key: s.id(r[n - 2]), value: r[n], loc: s.locInfo(this._$) };
1869
+ break;
1870
+ case 32:
1871
+ this.$ = s.id(r[n - 1]);
1872
+ break;
1873
+ case 33:
1874
+ this.$ = r[n];
1875
+ break;
1876
+ case 34:
1877
+ this.$ = r[n];
1878
+ break;
1879
+ case 35:
1880
+ this.$ = { type: "StringLiteral", value: r[n], original: r[n], loc: s.locInfo(this._$) };
1881
+ break;
1882
+ case 36:
1883
+ this.$ = { type: "NumberLiteral", value: Number(r[n]), original: Number(r[n]), loc: s.locInfo(this._$) };
1884
+ break;
1885
+ case 37:
1886
+ this.$ = { type: "BooleanLiteral", value: r[n] === "true", original: r[n] === "true", loc: s.locInfo(this._$) };
1887
+ break;
1888
+ case 38:
1889
+ this.$ = { type: "UndefinedLiteral", original: void 0, value: void 0, loc: s.locInfo(this._$) };
1890
+ break;
1891
+ case 39:
1892
+ this.$ = { type: "NullLiteral", original: null, value: null, loc: s.locInfo(this._$) };
1893
+ break;
1894
+ case 40:
1895
+ this.$ = r[n];
1896
+ break;
1897
+ case 41:
1898
+ this.$ = r[n];
1899
+ break;
1900
+ case 42:
1901
+ this.$ = s.preparePath(!0, r[n], this._$);
1902
+ break;
1903
+ case 43:
1904
+ this.$ = s.preparePath(!1, r[n], this._$);
1905
+ break;
1906
+ case 44:
1907
+ r[n - 2].push({ part: s.id(r[n]), original: r[n], separator: r[n - 1] }), this.$ = r[n - 2];
1908
+ break;
1909
+ case 45:
1910
+ this.$ = [{ part: s.id(r[n]), original: r[n] }];
1911
+ break;
1912
+ case 46:
1913
+ this.$ = [];
1914
+ break;
1915
+ case 47:
1916
+ r[n - 1].push(r[n]);
1917
+ break;
1918
+ case 48:
1919
+ this.$ = [];
1920
+ break;
1921
+ case 49:
1922
+ r[n - 1].push(r[n]);
1923
+ break;
1924
+ case 50:
1925
+ this.$ = [];
1926
+ break;
1927
+ case 51:
1928
+ r[n - 1].push(r[n]);
1929
+ break;
1930
+ case 58:
1931
+ this.$ = [];
1932
+ break;
1933
+ case 59:
1934
+ r[n - 1].push(r[n]);
1935
+ break;
1936
+ case 64:
1937
+ this.$ = [];
1938
+ break;
1939
+ case 65:
1940
+ r[n - 1].push(r[n]);
1941
+ break;
1942
+ case 70:
1943
+ this.$ = [];
1944
+ break;
1945
+ case 71:
1946
+ r[n - 1].push(r[n]);
1947
+ break;
1948
+ case 78:
1949
+ this.$ = [];
1950
+ break;
1951
+ case 79:
1952
+ r[n - 1].push(r[n]);
1953
+ break;
1954
+ case 82:
1955
+ this.$ = [];
1956
+ break;
1957
+ case 83:
1958
+ r[n - 1].push(r[n]);
1959
+ break;
1960
+ case 86:
1961
+ this.$ = [];
1962
+ break;
1963
+ case 87:
1964
+ r[n - 1].push(r[n]);
1965
+ break;
1966
+ case 90:
1967
+ this.$ = [];
1968
+ break;
1969
+ case 91:
1970
+ r[n - 1].push(r[n]);
1971
+ break;
1972
+ case 94:
1973
+ this.$ = [];
1974
+ break;
1975
+ case 95:
1976
+ r[n - 1].push(r[n]);
1977
+ break;
1978
+ case 98:
1979
+ this.$ = [r[n]];
1980
+ break;
1981
+ case 99:
1982
+ r[n - 1].push(r[n]);
1983
+ break;
1984
+ case 100:
1985
+ this.$ = [r[n]];
1986
+ break;
1987
+ case 101:
1988
+ r[n - 1].push(r[n]);
1989
+ break;
1990
+ }
1991
+ },
1992
+ table: [{ 3: 1, 4: 2, 5: [2, 46], 6: 3, 14: [2, 46], 15: [2, 46], 19: [2, 46], 29: [2, 46], 34: [2, 46], 48: [2, 46], 51: [2, 46], 55: [2, 46], 60: [2, 46] }, { 1: [3] }, { 5: [1, 4] }, { 5: [2, 2], 7: 5, 8: 6, 9: 7, 10: 8, 11: 9, 12: 10, 13: 11, 14: [1, 12], 15: [1, 20], 16: 17, 19: [1, 23], 24: 15, 27: 16, 29: [1, 21], 34: [1, 22], 39: [2, 2], 44: [2, 2], 47: [2, 2], 48: [1, 13], 51: [1, 14], 55: [1, 18], 59: 19, 60: [1, 24] }, { 1: [2, 1] }, { 5: [2, 47], 14: [2, 47], 15: [2, 47], 19: [2, 47], 29: [2, 47], 34: [2, 47], 39: [2, 47], 44: [2, 47], 47: [2, 47], 48: [2, 47], 51: [2, 47], 55: [2, 47], 60: [2, 47] }, { 5: [2, 3], 14: [2, 3], 15: [2, 3], 19: [2, 3], 29: [2, 3], 34: [2, 3], 39: [2, 3], 44: [2, 3], 47: [2, 3], 48: [2, 3], 51: [2, 3], 55: [2, 3], 60: [2, 3] }, { 5: [2, 4], 14: [2, 4], 15: [2, 4], 19: [2, 4], 29: [2, 4], 34: [2, 4], 39: [2, 4], 44: [2, 4], 47: [2, 4], 48: [2, 4], 51: [2, 4], 55: [2, 4], 60: [2, 4] }, { 5: [2, 5], 14: [2, 5], 15: [2, 5], 19: [2, 5], 29: [2, 5], 34: [2, 5], 39: [2, 5], 44: [2, 5], 47: [2, 5], 48: [2, 5], 51: [2, 5], 55: [2, 5], 60: [2, 5] }, { 5: [2, 6], 14: [2, 6], 15: [2, 6], 19: [2, 6], 29: [2, 6], 34: [2, 6], 39: [2, 6], 44: [2, 6], 47: [2, 6], 48: [2, 6], 51: [2, 6], 55: [2, 6], 60: [2, 6] }, { 5: [2, 7], 14: [2, 7], 15: [2, 7], 19: [2, 7], 29: [2, 7], 34: [2, 7], 39: [2, 7], 44: [2, 7], 47: [2, 7], 48: [2, 7], 51: [2, 7], 55: [2, 7], 60: [2, 7] }, { 5: [2, 8], 14: [2, 8], 15: [2, 8], 19: [2, 8], 29: [2, 8], 34: [2, 8], 39: [2, 8], 44: [2, 8], 47: [2, 8], 48: [2, 8], 51: [2, 8], 55: [2, 8], 60: [2, 8] }, { 5: [2, 9], 14: [2, 9], 15: [2, 9], 19: [2, 9], 29: [2, 9], 34: [2, 9], 39: [2, 9], 44: [2, 9], 47: [2, 9], 48: [2, 9], 51: [2, 9], 55: [2, 9], 60: [2, 9] }, { 20: 25, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 20: 36, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 4: 37, 6: 3, 14: [2, 46], 15: [2, 46], 19: [2, 46], 29: [2, 46], 34: [2, 46], 39: [2, 46], 44: [2, 46], 47: [2, 46], 48: [2, 46], 51: [2, 46], 55: [2, 46], 60: [2, 46] }, { 4: 38, 6: 3, 14: [2, 46], 15: [2, 46], 19: [2, 46], 29: [2, 46], 34: [2, 46], 44: [2, 46], 47: [2, 46], 48: [2, 46], 51: [2, 46], 55: [2, 46], 60: [2, 46] }, { 15: [2, 48], 17: 39, 18: [2, 48] }, { 20: 41, 56: 40, 64: 42, 65: [1, 43], 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 4: 44, 6: 3, 14: [2, 46], 15: [2, 46], 19: [2, 46], 29: [2, 46], 34: [2, 46], 47: [2, 46], 48: [2, 46], 51: [2, 46], 55: [2, 46], 60: [2, 46] }, { 5: [2, 10], 14: [2, 10], 15: [2, 10], 18: [2, 10], 19: [2, 10], 29: [2, 10], 34: [2, 10], 39: [2, 10], 44: [2, 10], 47: [2, 10], 48: [2, 10], 51: [2, 10], 55: [2, 10], 60: [2, 10] }, { 20: 45, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 20: 46, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 20: 47, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 20: 41, 56: 48, 64: 42, 65: [1, 43], 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 33: [2, 78], 49: 49, 65: [2, 78], 72: [2, 78], 80: [2, 78], 81: [2, 78], 82: [2, 78], 83: [2, 78], 84: [2, 78], 85: [2, 78] }, { 23: [2, 33], 33: [2, 33], 54: [2, 33], 65: [2, 33], 68: [2, 33], 72: [2, 33], 75: [2, 33], 80: [2, 33], 81: [2, 33], 82: [2, 33], 83: [2, 33], 84: [2, 33], 85: [2, 33] }, { 23: [2, 34], 33: [2, 34], 54: [2, 34], 65: [2, 34], 68: [2, 34], 72: [2, 34], 75: [2, 34], 80: [2, 34], 81: [2, 34], 82: [2, 34], 83: [2, 34], 84: [2, 34], 85: [2, 34] }, { 23: [2, 35], 33: [2, 35], 54: [2, 35], 65: [2, 35], 68: [2, 35], 72: [2, 35], 75: [2, 35], 80: [2, 35], 81: [2, 35], 82: [2, 35], 83: [2, 35], 84: [2, 35], 85: [2, 35] }, { 23: [2, 36], 33: [2, 36], 54: [2, 36], 65: [2, 36], 68: [2, 36], 72: [2, 36], 75: [2, 36], 80: [2, 36], 81: [2, 36], 82: [2, 36], 83: [2, 36], 84: [2, 36], 85: [2, 36] }, { 23: [2, 37], 33: [2, 37], 54: [2, 37], 65: [2, 37], 68: [2, 37], 72: [2, 37], 75: [2, 37], 80: [2, 37], 81: [2, 37], 82: [2, 37], 83: [2, 37], 84: [2, 37], 85: [2, 37] }, { 23: [2, 38], 33: [2, 38], 54: [2, 38], 65: [2, 38], 68: [2, 38], 72: [2, 38], 75: [2, 38], 80: [2, 38], 81: [2, 38], 82: [2, 38], 83: [2, 38], 84: [2, 38], 85: [2, 38] }, { 23: [2, 39], 33: [2, 39], 54: [2, 39], 65: [2, 39], 68: [2, 39], 72: [2, 39], 75: [2, 39], 80: [2, 39], 81: [2, 39], 82: [2, 39], 83: [2, 39], 84: [2, 39], 85: [2, 39] }, { 23: [2, 43], 33: [2, 43], 54: [2, 43], 65: [2, 43], 68: [2, 43], 72: [2, 43], 75: [2, 43], 80: [2, 43], 81: [2, 43], 82: [2, 43], 83: [2, 43], 84: [2, 43], 85: [2, 43], 87: [1, 50] }, { 72: [1, 35], 86: 51 }, { 23: [2, 45], 33: [2, 45], 54: [2, 45], 65: [2, 45], 68: [2, 45], 72: [2, 45], 75: [2, 45], 80: [2, 45], 81: [2, 45], 82: [2, 45], 83: [2, 45], 84: [2, 45], 85: [2, 45], 87: [2, 45] }, { 52: 52, 54: [2, 82], 65: [2, 82], 72: [2, 82], 80: [2, 82], 81: [2, 82], 82: [2, 82], 83: [2, 82], 84: [2, 82], 85: [2, 82] }, { 25: 53, 38: 55, 39: [1, 57], 43: 56, 44: [1, 58], 45: 54, 47: [2, 54] }, { 28: 59, 43: 60, 44: [1, 58], 47: [2, 56] }, { 13: 62, 15: [1, 20], 18: [1, 61] }, { 33: [2, 86], 57: 63, 65: [2, 86], 72: [2, 86], 80: [2, 86], 81: [2, 86], 82: [2, 86], 83: [2, 86], 84: [2, 86], 85: [2, 86] }, { 33: [2, 40], 65: [2, 40], 72: [2, 40], 80: [2, 40], 81: [2, 40], 82: [2, 40], 83: [2, 40], 84: [2, 40], 85: [2, 40] }, { 33: [2, 41], 65: [2, 41], 72: [2, 41], 80: [2, 41], 81: [2, 41], 82: [2, 41], 83: [2, 41], 84: [2, 41], 85: [2, 41] }, { 20: 64, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 26: 65, 47: [1, 66] }, { 30: 67, 33: [2, 58], 65: [2, 58], 72: [2, 58], 75: [2, 58], 80: [2, 58], 81: [2, 58], 82: [2, 58], 83: [2, 58], 84: [2, 58], 85: [2, 58] }, { 33: [2, 64], 35: 68, 65: [2, 64], 72: [2, 64], 75: [2, 64], 80: [2, 64], 81: [2, 64], 82: [2, 64], 83: [2, 64], 84: [2, 64], 85: [2, 64] }, { 21: 69, 23: [2, 50], 65: [2, 50], 72: [2, 50], 80: [2, 50], 81: [2, 50], 82: [2, 50], 83: [2, 50], 84: [2, 50], 85: [2, 50] }, { 33: [2, 90], 61: 70, 65: [2, 90], 72: [2, 90], 80: [2, 90], 81: [2, 90], 82: [2, 90], 83: [2, 90], 84: [2, 90], 85: [2, 90] }, { 20: 74, 33: [2, 80], 50: 71, 63: 72, 64: 75, 65: [1, 43], 69: 73, 70: 76, 71: 77, 72: [1, 78], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 72: [1, 79] }, { 23: [2, 42], 33: [2, 42], 54: [2, 42], 65: [2, 42], 68: [2, 42], 72: [2, 42], 75: [2, 42], 80: [2, 42], 81: [2, 42], 82: [2, 42], 83: [2, 42], 84: [2, 42], 85: [2, 42], 87: [1, 50] }, { 20: 74, 53: 80, 54: [2, 84], 63: 81, 64: 75, 65: [1, 43], 69: 82, 70: 76, 71: 77, 72: [1, 78], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 26: 83, 47: [1, 66] }, { 47: [2, 55] }, { 4: 84, 6: 3, 14: [2, 46], 15: [2, 46], 19: [2, 46], 29: [2, 46], 34: [2, 46], 39: [2, 46], 44: [2, 46], 47: [2, 46], 48: [2, 46], 51: [2, 46], 55: [2, 46], 60: [2, 46] }, { 47: [2, 20] }, { 20: 85, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 4: 86, 6: 3, 14: [2, 46], 15: [2, 46], 19: [2, 46], 29: [2, 46], 34: [2, 46], 47: [2, 46], 48: [2, 46], 51: [2, 46], 55: [2, 46], 60: [2, 46] }, { 26: 87, 47: [1, 66] }, { 47: [2, 57] }, { 5: [2, 11], 14: [2, 11], 15: [2, 11], 19: [2, 11], 29: [2, 11], 34: [2, 11], 39: [2, 11], 44: [2, 11], 47: [2, 11], 48: [2, 11], 51: [2, 11], 55: [2, 11], 60: [2, 11] }, { 15: [2, 49], 18: [2, 49] }, { 20: 74, 33: [2, 88], 58: 88, 63: 89, 64: 75, 65: [1, 43], 69: 90, 70: 76, 71: 77, 72: [1, 78], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 65: [2, 94], 66: 91, 68: [2, 94], 72: [2, 94], 80: [2, 94], 81: [2, 94], 82: [2, 94], 83: [2, 94], 84: [2, 94], 85: [2, 94] }, { 5: [2, 25], 14: [2, 25], 15: [2, 25], 19: [2, 25], 29: [2, 25], 34: [2, 25], 39: [2, 25], 44: [2, 25], 47: [2, 25], 48: [2, 25], 51: [2, 25], 55: [2, 25], 60: [2, 25] }, { 20: 92, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 20: 74, 31: 93, 33: [2, 60], 63: 94, 64: 75, 65: [1, 43], 69: 95, 70: 76, 71: 77, 72: [1, 78], 75: [2, 60], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 20: 74, 33: [2, 66], 36: 96, 63: 97, 64: 75, 65: [1, 43], 69: 98, 70: 76, 71: 77, 72: [1, 78], 75: [2, 66], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 20: 74, 22: 99, 23: [2, 52], 63: 100, 64: 75, 65: [1, 43], 69: 101, 70: 76, 71: 77, 72: [1, 78], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 20: 74, 33: [2, 92], 62: 102, 63: 103, 64: 75, 65: [1, 43], 69: 104, 70: 76, 71: 77, 72: [1, 78], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 33: [1, 105] }, { 33: [2, 79], 65: [2, 79], 72: [2, 79], 80: [2, 79], 81: [2, 79], 82: [2, 79], 83: [2, 79], 84: [2, 79], 85: [2, 79] }, { 33: [2, 81] }, { 23: [2, 27], 33: [2, 27], 54: [2, 27], 65: [2, 27], 68: [2, 27], 72: [2, 27], 75: [2, 27], 80: [2, 27], 81: [2, 27], 82: [2, 27], 83: [2, 27], 84: [2, 27], 85: [2, 27] }, { 23: [2, 28], 33: [2, 28], 54: [2, 28], 65: [2, 28], 68: [2, 28], 72: [2, 28], 75: [2, 28], 80: [2, 28], 81: [2, 28], 82: [2, 28], 83: [2, 28], 84: [2, 28], 85: [2, 28] }, { 23: [2, 30], 33: [2, 30], 54: [2, 30], 68: [2, 30], 71: 106, 72: [1, 107], 75: [2, 30] }, { 23: [2, 98], 33: [2, 98], 54: [2, 98], 68: [2, 98], 72: [2, 98], 75: [2, 98] }, { 23: [2, 45], 33: [2, 45], 54: [2, 45], 65: [2, 45], 68: [2, 45], 72: [2, 45], 73: [1, 108], 75: [2, 45], 80: [2, 45], 81: [2, 45], 82: [2, 45], 83: [2, 45], 84: [2, 45], 85: [2, 45], 87: [2, 45] }, { 23: [2, 44], 33: [2, 44], 54: [2, 44], 65: [2, 44], 68: [2, 44], 72: [2, 44], 75: [2, 44], 80: [2, 44], 81: [2, 44], 82: [2, 44], 83: [2, 44], 84: [2, 44], 85: [2, 44], 87: [2, 44] }, { 54: [1, 109] }, { 54: [2, 83], 65: [2, 83], 72: [2, 83], 80: [2, 83], 81: [2, 83], 82: [2, 83], 83: [2, 83], 84: [2, 83], 85: [2, 83] }, { 54: [2, 85] }, { 5: [2, 13], 14: [2, 13], 15: [2, 13], 19: [2, 13], 29: [2, 13], 34: [2, 13], 39: [2, 13], 44: [2, 13], 47: [2, 13], 48: [2, 13], 51: [2, 13], 55: [2, 13], 60: [2, 13] }, { 38: 55, 39: [1, 57], 43: 56, 44: [1, 58], 45: 111, 46: 110, 47: [2, 76] }, { 33: [2, 70], 40: 112, 65: [2, 70], 72: [2, 70], 75: [2, 70], 80: [2, 70], 81: [2, 70], 82: [2, 70], 83: [2, 70], 84: [2, 70], 85: [2, 70] }, { 47: [2, 18] }, { 5: [2, 14], 14: [2, 14], 15: [2, 14], 19: [2, 14], 29: [2, 14], 34: [2, 14], 39: [2, 14], 44: [2, 14], 47: [2, 14], 48: [2, 14], 51: [2, 14], 55: [2, 14], 60: [2, 14] }, { 33: [1, 113] }, { 33: [2, 87], 65: [2, 87], 72: [2, 87], 80: [2, 87], 81: [2, 87], 82: [2, 87], 83: [2, 87], 84: [2, 87], 85: [2, 87] }, { 33: [2, 89] }, { 20: 74, 63: 115, 64: 75, 65: [1, 43], 67: 114, 68: [2, 96], 69: 116, 70: 76, 71: 77, 72: [1, 78], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 33: [1, 117] }, { 32: 118, 33: [2, 62], 74: 119, 75: [1, 120] }, { 33: [2, 59], 65: [2, 59], 72: [2, 59], 75: [2, 59], 80: [2, 59], 81: [2, 59], 82: [2, 59], 83: [2, 59], 84: [2, 59], 85: [2, 59] }, { 33: [2, 61], 75: [2, 61] }, { 33: [2, 68], 37: 121, 74: 122, 75: [1, 120] }, { 33: [2, 65], 65: [2, 65], 72: [2, 65], 75: [2, 65], 80: [2, 65], 81: [2, 65], 82: [2, 65], 83: [2, 65], 84: [2, 65], 85: [2, 65] }, { 33: [2, 67], 75: [2, 67] }, { 23: [1, 123] }, { 23: [2, 51], 65: [2, 51], 72: [2, 51], 80: [2, 51], 81: [2, 51], 82: [2, 51], 83: [2, 51], 84: [2, 51], 85: [2, 51] }, { 23: [2, 53] }, { 33: [1, 124] }, { 33: [2, 91], 65: [2, 91], 72: [2, 91], 80: [2, 91], 81: [2, 91], 82: [2, 91], 83: [2, 91], 84: [2, 91], 85: [2, 91] }, { 33: [2, 93] }, { 5: [2, 22], 14: [2, 22], 15: [2, 22], 19: [2, 22], 29: [2, 22], 34: [2, 22], 39: [2, 22], 44: [2, 22], 47: [2, 22], 48: [2, 22], 51: [2, 22], 55: [2, 22], 60: [2, 22] }, { 23: [2, 99], 33: [2, 99], 54: [2, 99], 68: [2, 99], 72: [2, 99], 75: [2, 99] }, { 73: [1, 108] }, { 20: 74, 63: 125, 64: 75, 65: [1, 43], 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 5: [2, 23], 14: [2, 23], 15: [2, 23], 19: [2, 23], 29: [2, 23], 34: [2, 23], 39: [2, 23], 44: [2, 23], 47: [2, 23], 48: [2, 23], 51: [2, 23], 55: [2, 23], 60: [2, 23] }, { 47: [2, 19] }, { 47: [2, 77] }, { 20: 74, 33: [2, 72], 41: 126, 63: 127, 64: 75, 65: [1, 43], 69: 128, 70: 76, 71: 77, 72: [1, 78], 75: [2, 72], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33 }, { 5: [2, 24], 14: [2, 24], 15: [2, 24], 19: [2, 24], 29: [2, 24], 34: [2, 24], 39: [2, 24], 44: [2, 24], 47: [2, 24], 48: [2, 24], 51: [2, 24], 55: [2, 24], 60: [2, 24] }, { 68: [1, 129] }, { 65: [2, 95], 68: [2, 95], 72: [2, 95], 80: [2, 95], 81: [2, 95], 82: [2, 95], 83: [2, 95], 84: [2, 95], 85: [2, 95] }, { 68: [2, 97] }, { 5: [2, 21], 14: [2, 21], 15: [2, 21], 19: [2, 21], 29: [2, 21], 34: [2, 21], 39: [2, 21], 44: [2, 21], 47: [2, 21], 48: [2, 21], 51: [2, 21], 55: [2, 21], 60: [2, 21] }, { 33: [1, 130] }, { 33: [2, 63] }, { 72: [1, 132], 76: 131 }, { 33: [1, 133] }, { 33: [2, 69] }, { 15: [2, 12], 18: [2, 12] }, { 14: [2, 26], 15: [2, 26], 19: [2, 26], 29: [2, 26], 34: [2, 26], 47: [2, 26], 48: [2, 26], 51: [2, 26], 55: [2, 26], 60: [2, 26] }, { 23: [2, 31], 33: [2, 31], 54: [2, 31], 68: [2, 31], 72: [2, 31], 75: [2, 31] }, { 33: [2, 74], 42: 134, 74: 135, 75: [1, 120] }, { 33: [2, 71], 65: [2, 71], 72: [2, 71], 75: [2, 71], 80: [2, 71], 81: [2, 71], 82: [2, 71], 83: [2, 71], 84: [2, 71], 85: [2, 71] }, { 33: [2, 73], 75: [2, 73] }, { 23: [2, 29], 33: [2, 29], 54: [2, 29], 65: [2, 29], 68: [2, 29], 72: [2, 29], 75: [2, 29], 80: [2, 29], 81: [2, 29], 82: [2, 29], 83: [2, 29], 84: [2, 29], 85: [2, 29] }, { 14: [2, 15], 15: [2, 15], 19: [2, 15], 29: [2, 15], 34: [2, 15], 39: [2, 15], 44: [2, 15], 47: [2, 15], 48: [2, 15], 51: [2, 15], 55: [2, 15], 60: [2, 15] }, { 72: [1, 137], 77: [1, 136] }, { 72: [2, 100], 77: [2, 100] }, { 14: [2, 16], 15: [2, 16], 19: [2, 16], 29: [2, 16], 34: [2, 16], 44: [2, 16], 47: [2, 16], 48: [2, 16], 51: [2, 16], 55: [2, 16], 60: [2, 16] }, { 33: [1, 138] }, { 33: [2, 75] }, { 33: [2, 32] }, { 72: [2, 101], 77: [2, 101] }, { 14: [2, 17], 15: [2, 17], 19: [2, 17], 29: [2, 17], 34: [2, 17], 39: [2, 17], 44: [2, 17], 47: [2, 17], 48: [2, 17], 51: [2, 17], 55: [2, 17], 60: [2, 17] }],
1993
+ defaultActions: { 4: [2, 1], 54: [2, 55], 56: [2, 20], 60: [2, 57], 73: [2, 81], 82: [2, 85], 86: [2, 18], 90: [2, 89], 101: [2, 53], 104: [2, 93], 110: [2, 19], 111: [2, 77], 116: [2, 97], 119: [2, 63], 122: [2, 69], 135: [2, 75], 136: [2, 32] },
1994
+ parseError: function(l, o) {
1995
+ throw new Error(l);
1996
+ },
1997
+ parse: function(l) {
1998
+ var o = this, u = [0], s = [null], d = [], r = this.table, a = "", n = 0, v = 0;
1999
+ this.lexer.setInput(l), this.lexer.yy = this.yy, this.yy.lexer = this.lexer, this.yy.parser = this, typeof this.lexer.yylloc > "u" && (this.lexer.yylloc = {});
2000
+ var _ = this.lexer.yylloc;
2001
+ d.push(_);
2002
+ var b = this.lexer.options && this.lexer.options.ranges;
2003
+ typeof this.yy.parseError == "function" && (this.parseError = this.yy.parseError);
2004
+ function y() {
2005
+ var j;
2006
+ return j = o.lexer.lex() || 1, typeof j != "number" && (j = o.symbols_[j] || j), j;
2007
+ }
2008
+ for (var E, g, S, A, k = {}, x, N, O, T; ; ) {
2009
+ if (g = u[u.length - 1], this.defaultActions[g] ? S = this.defaultActions[g] : ((E === null || typeof E > "u") && (E = y()), S = r[g] && r[g][E]), typeof S > "u" || !S.length || !S[0]) {
2010
+ var Z = "";
2011
+ {
2012
+ T = [];
2013
+ for (x in r[g]) this.terminals_[x] && x > 2 && T.push("'" + this.terminals_[x] + "'");
2014
+ this.lexer.showPosition ? Z = "Parse error on line " + (n + 1) + `:
2015
+ ` + this.lexer.showPosition() + `
2016
+ Expecting ` + T.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Z = "Parse error on line " + (n + 1) + ": Unexpected " + (E == 1 ? "end of input" : "'" + (this.terminals_[E] || E) + "'"), this.parseError(Z, { text: this.lexer.match, token: this.terminals_[E] || E, line: this.lexer.yylineno, loc: _, expected: T });
2017
+ }
2018
+ }
2019
+ if (S[0] instanceof Array && S.length > 1)
2020
+ throw new Error("Parse Error: multiple actions possible at state: " + g + ", token: " + E);
2021
+ switch (S[0]) {
2022
+ case 1:
2023
+ u.push(E), s.push(this.lexer.yytext), d.push(this.lexer.yylloc), u.push(S[1]), E = null, v = this.lexer.yyleng, a = this.lexer.yytext, n = this.lexer.yylineno, _ = this.lexer.yylloc;
2024
+ break;
2025
+ case 2:
2026
+ if (N = this.productions_[S[1]][1], k.$ = s[s.length - N], k._$ = { first_line: d[d.length - (N || 1)].first_line, last_line: d[d.length - 1].last_line, first_column: d[d.length - (N || 1)].first_column, last_column: d[d.length - 1].last_column }, b && (k._$.range = [d[d.length - (N || 1)].range[0], d[d.length - 1].range[1]]), A = this.performAction.call(k, a, v, n, this.yy, S[1], s, d), typeof A < "u")
2027
+ return A;
2028
+ N && (u = u.slice(0, -1 * N * 2), s = s.slice(0, -1 * N), d = d.slice(0, -1 * N)), u.push(this.productions_[S[1]][0]), s.push(k.$), d.push(k._$), O = r[u[u.length - 2]][u[u.length - 1]], u.push(O);
2029
+ break;
2030
+ case 3:
2031
+ return !0;
2032
+ }
2033
+ }
2034
+ return !0;
2035
+ }
2036
+ }, h = function() {
2037
+ var p = {
2038
+ EOF: 1,
2039
+ parseError: function(o, u) {
2040
+ if (this.yy.parser)
2041
+ this.yy.parser.parseError(o, u);
2042
+ else
2043
+ throw new Error(o);
2044
+ },
2045
+ setInput: function(o) {
2046
+ return this._input = o, this._more = this._less = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = { first_line: 1, first_column: 0, last_line: 1, last_column: 0 }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
2047
+ },
2048
+ input: function() {
2049
+ var o = this._input[0];
2050
+ this.yytext += o, this.yyleng++, this.offset++, this.match += o, this.matched += o;
2051
+ var u = o.match(/(?:\r\n?|\n).*/g);
2052
+ return u ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), o;
2053
+ },
2054
+ unput: function(o) {
2055
+ var u = o.length, s = o.split(/(?:\r\n?|\n)/g);
2056
+ this._input = o + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - u - 1), this.offset -= u;
2057
+ var d = this.match.split(/(?:\r\n?|\n)/g);
2058
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), s.length - 1 && (this.yylineno -= s.length - 1);
2059
+ var r = this.yylloc.range;
2060
+ return this.yylloc = {
2061
+ first_line: this.yylloc.first_line,
2062
+ last_line: this.yylineno + 1,
2063
+ first_column: this.yylloc.first_column,
2064
+ last_column: s ? (s.length === d.length ? this.yylloc.first_column : 0) + d[d.length - s.length].length - s[0].length : this.yylloc.first_column - u
2065
+ }, this.options.ranges && (this.yylloc.range = [r[0], r[0] + this.yyleng - u]), this;
2066
+ },
2067
+ more: function() {
2068
+ return this._more = !0, this;
2069
+ },
2070
+ less: function(o) {
2071
+ this.unput(this.match.slice(o));
2072
+ },
2073
+ pastInput: function() {
2074
+ var o = this.matched.substr(0, this.matched.length - this.match.length);
2075
+ return (o.length > 20 ? "..." : "") + o.substr(-20).replace(/\n/g, "");
2076
+ },
2077
+ upcomingInput: function() {
2078
+ var o = this.match;
2079
+ return o.length < 20 && (o += this._input.substr(0, 20 - o.length)), (o.substr(0, 20) + (o.length > 20 ? "..." : "")).replace(/\n/g, "");
2080
+ },
2081
+ showPosition: function() {
2082
+ var o = this.pastInput(), u = new Array(o.length + 1).join("-");
2083
+ return o + this.upcomingInput() + `
2084
+ ` + u + "^";
2085
+ },
2086
+ next: function() {
2087
+ if (this.done)
2088
+ return this.EOF;
2089
+ this._input || (this.done = !0);
2090
+ var o, u, s, d, r;
2091
+ this._more || (this.yytext = "", this.match = "");
2092
+ for (var a = this._currentRules(), n = 0; n < a.length && (s = this._input.match(this.rules[a[n]]), !(s && (!u || s[0].length > u[0].length) && (u = s, d = n, !this.options.flex))); n++)
2093
+ ;
2094
+ return u ? (r = u[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
2095
+ first_line: this.yylloc.last_line,
2096
+ last_line: this.yylineno + 1,
2097
+ first_column: this.yylloc.last_column,
2098
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + u[0].length
2099
+ }, this.yytext += u[0], this.match += u[0], this.matches = u, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._input = this._input.slice(u[0].length), this.matched += u[0], o = this.performAction.call(this, this.yy, this, a[d], this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), o || void 0) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
2100
+ ` + this.showPosition(), { text: "", token: null, line: this.yylineno });
2101
+ },
2102
+ lex: function() {
2103
+ var o = this.next();
2104
+ return typeof o < "u" ? o : this.lex();
2105
+ },
2106
+ begin: function(o) {
2107
+ this.conditionStack.push(o);
2108
+ },
2109
+ popState: function() {
2110
+ return this.conditionStack.pop();
2111
+ },
2112
+ _currentRules: function() {
2113
+ return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
2114
+ },
2115
+ topState: function() {
2116
+ return this.conditionStack[this.conditionStack.length - 2];
2117
+ },
2118
+ pushState: function(o) {
2119
+ this.begin(o);
2120
+ }
2121
+ };
2122
+ return p.options = {}, p.performAction = function(o, u, s, d) {
2123
+ function r(a, n) {
2124
+ return u.yytext = u.yytext.substring(a, u.yyleng - n + a);
2125
+ }
2126
+ switch (s) {
2127
+ case 0:
2128
+ if (u.yytext.slice(-2) === "\\\\" ? (r(0, 1), this.begin("mu")) : u.yytext.slice(-1) === "\\" ? (r(0, 1), this.begin("emu")) : this.begin("mu"), u.yytext) return 15;
2129
+ break;
2130
+ case 1:
2131
+ return 15;
2132
+ case 2:
2133
+ return this.popState(), 15;
2134
+ case 3:
2135
+ return this.begin("raw"), 15;
2136
+ case 4:
2137
+ return this.popState(), this.conditionStack[this.conditionStack.length - 1] === "raw" ? 15 : (r(5, 9), "END_RAW_BLOCK");
2138
+ case 5:
2139
+ return 15;
2140
+ case 6:
2141
+ return this.popState(), 14;
2142
+ case 7:
2143
+ return 65;
2144
+ case 8:
2145
+ return 68;
2146
+ case 9:
2147
+ return 19;
2148
+ case 10:
2149
+ return this.popState(), this.begin("raw"), 23;
2150
+ case 11:
2151
+ return 55;
2152
+ case 12:
2153
+ return 60;
2154
+ case 13:
2155
+ return 29;
2156
+ case 14:
2157
+ return 47;
2158
+ case 15:
2159
+ return this.popState(), 44;
2160
+ case 16:
2161
+ return this.popState(), 44;
2162
+ case 17:
2163
+ return 34;
2164
+ case 18:
2165
+ return 39;
2166
+ case 19:
2167
+ return 51;
2168
+ case 20:
2169
+ return 48;
2170
+ case 21:
2171
+ this.unput(u.yytext), this.popState(), this.begin("com");
2172
+ break;
2173
+ case 22:
2174
+ return this.popState(), 14;
2175
+ case 23:
2176
+ return 48;
2177
+ case 24:
2178
+ return 73;
2179
+ case 25:
2180
+ return 72;
2181
+ case 26:
2182
+ return 72;
2183
+ case 27:
2184
+ return 87;
2185
+ case 28:
2186
+ break;
2187
+ case 29:
2188
+ return this.popState(), 54;
2189
+ case 30:
2190
+ return this.popState(), 33;
2191
+ case 31:
2192
+ return u.yytext = r(1, 2).replace(/\\"/g, '"'), 80;
2193
+ case 32:
2194
+ return u.yytext = r(1, 2).replace(/\\'/g, "'"), 80;
2195
+ case 33:
2196
+ return 85;
2197
+ case 34:
2198
+ return 82;
2199
+ case 35:
2200
+ return 82;
2201
+ case 36:
2202
+ return 83;
2203
+ case 37:
2204
+ return 84;
2205
+ case 38:
2206
+ return 81;
2207
+ case 39:
2208
+ return 75;
2209
+ case 40:
2210
+ return 77;
2211
+ case 41:
2212
+ return 72;
2213
+ case 42:
2214
+ return u.yytext = u.yytext.replace(/\\([\\\]])/g, "$1"), 72;
2215
+ case 43:
2216
+ return "INVALID";
2217
+ case 44:
2218
+ return 5;
2219
+ }
2220
+ }, p.rules = [/^(?:[^\x00]*?(?=(\{\{)))/, /^(?:[^\x00]+)/, /^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/, /^(?:\{\{\{\{(?=[^/]))/, /^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/, /^(?:[^\x00]+?(?=(\{\{\{\{)))/, /^(?:[\s\S]*?--(~)?\}\})/, /^(?:\()/, /^(?:\))/, /^(?:\{\{\{\{)/, /^(?:\}\}\}\})/, /^(?:\{\{(~)?>)/, /^(?:\{\{(~)?#>)/, /^(?:\{\{(~)?#\*?)/, /^(?:\{\{(~)?\/)/, /^(?:\{\{(~)?\^\s*(~)?\}\})/, /^(?:\{\{(~)?\s*else\s*(~)?\}\})/, /^(?:\{\{(~)?\^)/, /^(?:\{\{(~)?\s*else\b)/, /^(?:\{\{(~)?\{)/, /^(?:\{\{(~)?&)/, /^(?:\{\{(~)?!--)/, /^(?:\{\{(~)?![\s\S]*?\}\})/, /^(?:\{\{(~)?\*?)/, /^(?:=)/, /^(?:\.\.)/, /^(?:\.(?=([=~}\s\/.)|])))/, /^(?:[\/.])/, /^(?:\s+)/, /^(?:\}(~)?\}\})/, /^(?:(~)?\}\})/, /^(?:"(\\["]|[^"])*")/, /^(?:'(\\[']|[^'])*')/, /^(?:@)/, /^(?:true(?=([~}\s)])))/, /^(?:false(?=([~}\s)])))/, /^(?:undefined(?=([~}\s)])))/, /^(?:null(?=([~}\s)])))/, /^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/, /^(?:as\s+\|)/, /^(?:\|)/, /^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/, /^(?:\[(\\\]|[^\]])*\])/, /^(?:.)/, /^(?:$)/], p.conditions = { mu: { rules: [7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44], inclusive: !1 }, emu: { rules: [2], inclusive: !1 }, com: { rules: [6], inclusive: !1 }, raw: { rules: [3, 4, 5], inclusive: !1 }, INITIAL: { rules: [0, 1, 44], inclusive: !0 } }, p;
2221
+ }();
2222
+ c.lexer = h;
2223
+ function f() {
2224
+ this.yy = {};
2225
+ }
2226
+ return f.prototype = c, c.Parser = f, new f();
2227
+ }();
2228
+ e.default = i, t.exports = e.default;
2229
+ })(jt, jt.exports);
2230
+ var Fo = jt.exports, $t = { exports: {} }, er = { exports: {} };
2231
+ (function(t, e) {
2232
+ e.__esModule = !0;
2233
+ function i(u) {
2234
+ return u && u.__esModule ? u : { default: u };
2235
+ }
2236
+ var c = Q, h = i(c);
2237
+ function f() {
2238
+ this.parents = [];
2239
+ }
2240
+ f.prototype = {
2241
+ constructor: f,
2242
+ mutating: !1,
2243
+ // Visits a given value. If mutating, will replace the value if necessary.
2244
+ acceptKey: function(s, d) {
2245
+ var r = this.accept(s[d]);
2246
+ if (this.mutating) {
2247
+ if (r && !f.prototype[r.type])
2248
+ throw new h.default('Unexpected node type "' + r.type + '" found when accepting ' + d + " on " + s.type);
2249
+ s[d] = r;
2250
+ }
2251
+ },
2252
+ // Performs an accept operation with added sanity check to ensure
2253
+ // required keys are not removed.
2254
+ acceptRequired: function(s, d) {
2255
+ if (this.acceptKey(s, d), !s[d])
2256
+ throw new h.default(s.type + " requires " + d);
2257
+ },
2258
+ // Traverses a given array. If mutating, empty respnses will be removed
2259
+ // for child elements.
2260
+ acceptArray: function(s) {
2261
+ for (var d = 0, r = s.length; d < r; d++)
2262
+ this.acceptKey(s, d), s[d] || (s.splice(d, 1), d--, r--);
2263
+ },
2264
+ accept: function(s) {
2265
+ if (s) {
2266
+ if (!this[s.type])
2267
+ throw new h.default("Unknown type: " + s.type, s);
2268
+ this.current && this.parents.unshift(this.current), this.current = s;
2269
+ var d = this[s.type](s);
2270
+ if (this.current = this.parents.shift(), !this.mutating || d)
2271
+ return d;
2272
+ if (d !== !1)
2273
+ return s;
2274
+ }
2275
+ },
2276
+ Program: function(s) {
2277
+ this.acceptArray(s.body);
2278
+ },
2279
+ MustacheStatement: p,
2280
+ Decorator: p,
2281
+ BlockStatement: l,
2282
+ DecoratorBlock: l,
2283
+ PartialStatement: o,
2284
+ PartialBlockStatement: function(s) {
2285
+ o.call(this, s), this.acceptKey(s, "program");
2286
+ },
2287
+ ContentStatement: function() {
2288
+ },
2289
+ CommentStatement: function() {
2290
+ },
2291
+ SubExpression: p,
2292
+ PathExpression: function() {
2293
+ },
2294
+ StringLiteral: function() {
2295
+ },
2296
+ NumberLiteral: function() {
2297
+ },
2298
+ BooleanLiteral: function() {
2299
+ },
2300
+ UndefinedLiteral: function() {
2301
+ },
2302
+ NullLiteral: function() {
2303
+ },
2304
+ Hash: function(s) {
2305
+ this.acceptArray(s.pairs);
2306
+ },
2307
+ HashPair: function(s) {
2308
+ this.acceptRequired(s, "value");
2309
+ }
2310
+ };
2311
+ function p(u) {
2312
+ this.acceptRequired(u, "path"), this.acceptArray(u.params), this.acceptKey(u, "hash");
2313
+ }
2314
+ function l(u) {
2315
+ p.call(this, u), this.acceptKey(u, "program"), this.acceptKey(u, "inverse");
2316
+ }
2317
+ function o(u) {
2318
+ this.acceptRequired(u, "name"), this.acceptArray(u.params), this.acceptKey(u, "hash");
2319
+ }
2320
+ e.default = f, t.exports = e.default;
2321
+ })(er, er.exports);
2322
+ var En = er.exports;
2323
+ (function(t, e) {
2324
+ e.__esModule = !0;
2325
+ function i(s) {
2326
+ return s && s.__esModule ? s : { default: s };
2327
+ }
2328
+ var c = En, h = i(c);
2329
+ function f() {
2330
+ var s = arguments.length <= 0 || arguments[0] === void 0 ? {} : arguments[0];
2331
+ this.options = s;
2332
+ }
2333
+ f.prototype = new h.default(), f.prototype.Program = function(s) {
2334
+ var d = !this.options.ignoreStandalone, r = !this.isRootSeen;
2335
+ this.isRootSeen = !0;
2336
+ for (var a = s.body, n = 0, v = a.length; n < v; n++) {
2337
+ var _ = a[n], b = this.accept(_);
2338
+ if (b) {
2339
+ var y = p(a, n, r), E = l(a, n, r), g = b.openStandalone && y, S = b.closeStandalone && E, A = b.inlineStandalone && y && E;
2340
+ b.close && o(a, n, !0), b.open && u(a, n, !0), d && A && (o(a, n), u(a, n) && _.type === "PartialStatement" && (_.indent = /([ \t]+$)/.exec(a[n - 1].original)[1])), d && g && (o((_.program || _.inverse).body), u(a, n)), d && S && (o(a, n), u((_.inverse || _.program).body));
2341
+ }
2342
+ }
2343
+ return s;
2344
+ }, f.prototype.BlockStatement = f.prototype.DecoratorBlock = f.prototype.PartialBlockStatement = function(s) {
2345
+ this.accept(s.program), this.accept(s.inverse);
2346
+ var d = s.program || s.inverse, r = s.program && s.inverse, a = r, n = r;
2347
+ if (r && r.chained)
2348
+ for (a = r.body[0].program; n.chained; )
2349
+ n = n.body[n.body.length - 1].program;
2350
+ var v = {
2351
+ open: s.openStrip.open,
2352
+ close: s.closeStrip.close,
2353
+ // Determine the standalone candiacy. Basically flag our content as being possibly standalone
2354
+ // so our parent can determine if we actually are standalone
2355
+ openStandalone: l(d.body),
2356
+ closeStandalone: p((a || d).body)
2357
+ };
2358
+ if (s.openStrip.close && o(d.body, null, !0), r) {
2359
+ var _ = s.inverseStrip;
2360
+ _.open && u(d.body, null, !0), _.close && o(a.body, null, !0), s.closeStrip.open && u(n.body, null, !0), !this.options.ignoreStandalone && p(d.body) && l(a.body) && (u(d.body), o(a.body));
2361
+ } else s.closeStrip.open && u(d.body, null, !0);
2362
+ return v;
2363
+ }, f.prototype.Decorator = f.prototype.MustacheStatement = function(s) {
2364
+ return s.strip;
2365
+ }, f.prototype.PartialStatement = f.prototype.CommentStatement = function(s) {
2366
+ var d = s.strip || {};
2367
+ return {
2368
+ inlineStandalone: !0,
2369
+ open: d.open,
2370
+ close: d.close
2371
+ };
2372
+ };
2373
+ function p(s, d, r) {
2374
+ d === void 0 && (d = s.length);
2375
+ var a = s[d - 1], n = s[d - 2];
2376
+ if (!a)
2377
+ return r;
2378
+ if (a.type === "ContentStatement")
2379
+ return (n || !r ? /\r?\n\s*?$/ : /(^|\r?\n)\s*?$/).test(a.original);
2380
+ }
2381
+ function l(s, d, r) {
2382
+ d === void 0 && (d = -1);
2383
+ var a = s[d + 1], n = s[d + 2];
2384
+ if (!a)
2385
+ return r;
2386
+ if (a.type === "ContentStatement")
2387
+ return (n || !r ? /^\s*?\r?\n/ : /^\s*?(\r?\n|$)/).test(a.original);
2388
+ }
2389
+ function o(s, d, r) {
2390
+ var a = s[d == null ? 0 : d + 1];
2391
+ if (!(!a || a.type !== "ContentStatement" || !r && a.rightStripped)) {
2392
+ var n = a.value;
2393
+ a.value = a.value.replace(r ? /^\s+/ : /^[ \t]*\r?\n?/, ""), a.rightStripped = a.value !== n;
2394
+ }
2395
+ }
2396
+ function u(s, d, r) {
2397
+ var a = s[d == null ? s.length - 1 : d - 1];
2398
+ if (!(!a || a.type !== "ContentStatement" || !r && a.leftStripped)) {
2399
+ var n = a.value;
2400
+ return a.value = a.value.replace(r ? /\s+$/ : /[ \t]+$/, ""), a.leftStripped = a.value !== n, a.leftStripped;
2401
+ }
2402
+ }
2403
+ e.default = f, t.exports = e.default;
2404
+ })($t, $t.exports);
2405
+ var Uo = $t.exports, X = {};
2406
+ X.__esModule = !0;
2407
+ X.SourceLocation = Wo;
2408
+ X.id = zo;
2409
+ X.stripFlags = Vo;
2410
+ X.stripComment = Ko;
2411
+ X.preparePath = Yo;
2412
+ X.prepareMustache = Xo;
2413
+ X.prepareRawBlock = Jo;
2414
+ X.prepareBlock = Qo;
2415
+ X.prepareProgram = Zo;
2416
+ X.preparePartialBlock = jo;
2417
+ function Go(t) {
2418
+ return t && t.__esModule ? t : { default: t };
2419
+ }
2420
+ var qo = Q, pr = Go(qo);
2421
+ function hr(t, e) {
2422
+ if (e = e.path ? e.path.original : e, t.path.original !== e) {
2423
+ var i = { loc: t.path.loc };
2424
+ throw new pr.default(t.path.original + " doesn't match " + e, i);
2425
+ }
2426
+ }
2427
+ function Wo(t, e) {
2428
+ this.source = t, this.start = {
2429
+ line: e.first_line,
2430
+ column: e.first_column
2431
+ }, this.end = {
2432
+ line: e.last_line,
2433
+ column: e.last_column
2434
+ };
2435
+ }
2436
+ function zo(t) {
2437
+ return /^\[.*\]$/.test(t) ? t.substring(1, t.length - 1) : t;
2438
+ }
2439
+ function Vo(t, e) {
2440
+ return {
2441
+ open: t.charAt(2) === "~",
2442
+ close: e.charAt(e.length - 3) === "~"
2443
+ };
2444
+ }
2445
+ function Ko(t) {
2446
+ return t.replace(/^\{\{~?!-?-?/, "").replace(/-?-?~?\}\}$/, "");
2447
+ }
2448
+ function Yo(t, e, i) {
2449
+ i = this.locInfo(i);
2450
+ for (var c = t ? "@" : "", h = [], f = 0, p = 0, l = e.length; p < l; p++) {
2451
+ var o = e[p].part, u = e[p].original !== o;
2452
+ if (c += (e[p].separator || "") + o, !u && (o === ".." || o === "." || o === "this")) {
2453
+ if (h.length > 0)
2454
+ throw new pr.default("Invalid path: " + c, { loc: i });
2455
+ o === ".." && f++;
2456
+ } else
2457
+ h.push(o);
2458
+ }
2459
+ return {
2460
+ type: "PathExpression",
2461
+ data: t,
2462
+ depth: f,
2463
+ parts: h,
2464
+ original: c,
2465
+ loc: i
2466
+ };
2467
+ }
2468
+ function Xo(t, e, i, c, h, f) {
2469
+ var p = c.charAt(3) || c.charAt(2), l = p !== "{" && p !== "&", o = /\*/.test(c);
2470
+ return {
2471
+ type: o ? "Decorator" : "MustacheStatement",
2472
+ path: t,
2473
+ params: e,
2474
+ hash: i,
2475
+ escaped: l,
2476
+ strip: h,
2477
+ loc: this.locInfo(f)
2478
+ };
2479
+ }
2480
+ function Jo(t, e, i, c) {
2481
+ hr(t, i), c = this.locInfo(c);
2482
+ var h = {
2483
+ type: "Program",
2484
+ body: e,
2485
+ strip: {},
2486
+ loc: c
2487
+ };
2488
+ return {
2489
+ type: "BlockStatement",
2490
+ path: t.path,
2491
+ params: t.params,
2492
+ hash: t.hash,
2493
+ program: h,
2494
+ openStrip: {},
2495
+ inverseStrip: {},
2496
+ closeStrip: {},
2497
+ loc: c
2498
+ };
2499
+ }
2500
+ function Qo(t, e, i, c, h, f) {
2501
+ c && c.path && hr(t, c);
2502
+ var p = /\*/.test(t.open);
2503
+ e.blockParams = t.blockParams;
2504
+ var l = void 0, o = void 0;
2505
+ if (i) {
2506
+ if (p)
2507
+ throw new pr.default("Unexpected inverse block on decorator", i);
2508
+ i.chain && (i.program.body[0].closeStrip = c.strip), o = i.strip, l = i.program;
2509
+ }
2510
+ return h && (h = l, l = e, e = h), {
2511
+ type: p ? "DecoratorBlock" : "BlockStatement",
2512
+ path: t.path,
2513
+ params: t.params,
2514
+ hash: t.hash,
2515
+ program: e,
2516
+ inverse: l,
2517
+ openStrip: t.strip,
2518
+ inverseStrip: o,
2519
+ closeStrip: c && c.strip,
2520
+ loc: this.locInfo(f)
2521
+ };
2522
+ }
2523
+ function Zo(t, e) {
2524
+ if (!e && t.length) {
2525
+ var i = t[0].loc, c = t[t.length - 1].loc;
2526
+ i && c && (e = {
2527
+ source: i.source,
2528
+ start: {
2529
+ line: i.start.line,
2530
+ column: i.start.column
2531
+ },
2532
+ end: {
2533
+ line: c.end.line,
2534
+ column: c.end.column
2535
+ }
2536
+ });
2537
+ }
2538
+ return {
2539
+ type: "Program",
2540
+ body: t,
2541
+ strip: {},
2542
+ loc: e
2543
+ };
2544
+ }
2545
+ function jo(t, e, i, c) {
2546
+ return hr(t, i), {
2547
+ type: "PartialBlockStatement",
2548
+ name: t.path,
2549
+ params: t.params,
2550
+ hash: t.hash,
2551
+ program: e,
2552
+ openStrip: t.strip,
2553
+ closeStrip: i && i.strip,
2554
+ loc: this.locInfo(c)
2555
+ };
2556
+ }
2557
+ De.__esModule = !0;
2558
+ De.parseWithoutProcessing = Cn;
2559
+ De.parse = ss;
2560
+ function $o(t) {
2561
+ if (t && t.__esModule)
2562
+ return t;
2563
+ var e = {};
2564
+ if (t != null)
2565
+ for (var i in t)
2566
+ Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
2567
+ return e.default = t, e;
2568
+ }
2569
+ function kn(t) {
2570
+ return t && t.__esModule ? t : { default: t };
2571
+ }
2572
+ var es = Fo, tr = kn(es), ts = Uo, rs = kn(ts), ns = X, is = $o(ns), os = M;
2573
+ De.parser = tr.default;
2574
+ var et = {};
2575
+ os.extend(et, is);
2576
+ function Cn(t, e) {
2577
+ if (t.type === "Program")
2578
+ return t;
2579
+ tr.default.yy = et, et.locInfo = function(c) {
2580
+ return new et.SourceLocation(e && e.srcName, c);
2581
+ };
2582
+ var i = tr.default.parse(t);
2583
+ return i;
2584
+ }
2585
+ function ss(t, e) {
2586
+ var i = Cn(t, e), c = new rs.default(e);
2587
+ return c.accept(i);
2588
+ }
2589
+ var Be = {};
2590
+ Be.__esModule = !0;
2591
+ Be.Compiler = rr;
2592
+ Be.precompile = cs;
2593
+ Be.compile = ps;
2594
+ function An(t) {
2595
+ return t && t.__esModule ? t : { default: t };
2596
+ }
2597
+ var as = Q, Ne = An(as), Re = M, ls = bn, Te = An(ls), us = [].slice;
2598
+ function rr() {
2599
+ }
2600
+ rr.prototype = {
2601
+ compiler: rr,
2602
+ equals: function(e) {
2603
+ var i = this.opcodes.length;
2604
+ if (e.opcodes.length !== i)
2605
+ return !1;
2606
+ for (var c = 0; c < i; c++) {
2607
+ var h = this.opcodes[c], f = e.opcodes[c];
2608
+ if (h.opcode !== f.opcode || !wn(h.args, f.args))
2609
+ return !1;
2610
+ }
2611
+ i = this.children.length;
2612
+ for (var c = 0; c < i; c++)
2613
+ if (!this.children[c].equals(e.children[c]))
2614
+ return !1;
2615
+ return !0;
2616
+ },
2617
+ guid: 0,
2618
+ compile: function(e, i) {
2619
+ return this.sourceNode = [], this.opcodes = [], this.children = [], this.options = i, this.stringParams = i.stringParams, this.trackIds = i.trackIds, i.blockParams = i.blockParams || [], i.knownHelpers = Re.extend(/* @__PURE__ */ Object.create(null), {
2620
+ helperMissing: !0,
2621
+ blockHelperMissing: !0,
2622
+ each: !0,
2623
+ if: !0,
2624
+ unless: !0,
2625
+ with: !0,
2626
+ log: !0,
2627
+ lookup: !0
2628
+ }, i.knownHelpers), this.accept(e);
2629
+ },
2630
+ compileProgram: function(e) {
2631
+ var i = new this.compiler(), c = i.compile(e, this.options), h = this.guid++;
2632
+ return this.usePartial = this.usePartial || c.usePartial, this.children[h] = c, this.useDepths = this.useDepths || c.useDepths, h;
2633
+ },
2634
+ accept: function(e) {
2635
+ if (!this[e.type])
2636
+ throw new Ne.default("Unknown type: " + e.type, e);
2637
+ this.sourceNode.unshift(e);
2638
+ var i = this[e.type](e);
2639
+ return this.sourceNode.shift(), i;
2640
+ },
2641
+ Program: function(e) {
2642
+ this.options.blockParams.unshift(e.blockParams);
2643
+ for (var i = e.body, c = i.length, h = 0; h < c; h++)
2644
+ this.accept(i[h]);
2645
+ return this.options.blockParams.shift(), this.isSimple = c === 1, this.blockParams = e.blockParams ? e.blockParams.length : 0, this;
2646
+ },
2647
+ BlockStatement: function(e) {
2648
+ Qr(e);
2649
+ var i = e.program, c = e.inverse;
2650
+ i = i && this.compileProgram(i), c = c && this.compileProgram(c);
2651
+ var h = this.classifySexpr(e);
2652
+ h === "helper" ? this.helperSexpr(e, i, c) : h === "simple" ? (this.simpleSexpr(e), this.opcode("pushProgram", i), this.opcode("pushProgram", c), this.opcode("emptyHash"), this.opcode("blockValue", e.path.original)) : (this.ambiguousSexpr(e, i, c), this.opcode("pushProgram", i), this.opcode("pushProgram", c), this.opcode("emptyHash"), this.opcode("ambiguousBlockValue")), this.opcode("append");
2653
+ },
2654
+ DecoratorBlock: function(e) {
2655
+ var i = e.program && this.compileProgram(e.program), c = this.setupFullMustacheParams(e, i, void 0), h = e.path;
2656
+ this.useDecorators = !0, this.opcode("registerDecorator", c.length, h.original);
2657
+ },
2658
+ PartialStatement: function(e) {
2659
+ this.usePartial = !0;
2660
+ var i = e.program;
2661
+ i && (i = this.compileProgram(e.program));
2662
+ var c = e.params;
2663
+ if (c.length > 1)
2664
+ throw new Ne.default("Unsupported number of partial arguments: " + c.length, e);
2665
+ c.length || (this.options.explicitPartialContext ? this.opcode("pushLiteral", "undefined") : c.push({ type: "PathExpression", parts: [], depth: 0 }));
2666
+ var h = e.name.original, f = e.name.type === "SubExpression";
2667
+ f && this.accept(e.name), this.setupFullMustacheParams(e, i, void 0, !0);
2668
+ var p = e.indent || "";
2669
+ this.options.preventIndent && p && (this.opcode("appendContent", p), p = ""), this.opcode("invokePartial", f, h, p), this.opcode("append");
2670
+ },
2671
+ PartialBlockStatement: function(e) {
2672
+ this.PartialStatement(e);
2673
+ },
2674
+ MustacheStatement: function(e) {
2675
+ this.SubExpression(e), e.escaped && !this.options.noEscape ? this.opcode("appendEscaped") : this.opcode("append");
2676
+ },
2677
+ Decorator: function(e) {
2678
+ this.DecoratorBlock(e);
2679
+ },
2680
+ ContentStatement: function(e) {
2681
+ e.value && this.opcode("appendContent", e.value);
2682
+ },
2683
+ CommentStatement: function() {
2684
+ },
2685
+ SubExpression: function(e) {
2686
+ Qr(e);
2687
+ var i = this.classifySexpr(e);
2688
+ i === "simple" ? this.simpleSexpr(e) : i === "helper" ? this.helperSexpr(e) : this.ambiguousSexpr(e);
2689
+ },
2690
+ ambiguousSexpr: function(e, i, c) {
2691
+ var h = e.path, f = h.parts[0], p = i != null || c != null;
2692
+ this.opcode("getContext", h.depth), this.opcode("pushProgram", i), this.opcode("pushProgram", c), h.strict = !0, this.accept(h), this.opcode("invokeAmbiguous", f, p);
2693
+ },
2694
+ simpleSexpr: function(e) {
2695
+ var i = e.path;
2696
+ i.strict = !0, this.accept(i), this.opcode("resolvePossibleLambda");
2697
+ },
2698
+ helperSexpr: function(e, i, c) {
2699
+ var h = this.setupFullMustacheParams(e, i, c), f = e.path, p = f.parts[0];
2700
+ if (this.options.knownHelpers[p])
2701
+ this.opcode("invokeKnownHelper", h.length, p);
2702
+ else {
2703
+ if (this.options.knownHelpersOnly)
2704
+ throw new Ne.default("You specified knownHelpersOnly, but used the unknown helper " + p, e);
2705
+ f.strict = !0, f.falsy = !0, this.accept(f), this.opcode("invokeHelper", h.length, f.original, Te.default.helpers.simpleId(f));
2706
+ }
2707
+ },
2708
+ PathExpression: function(e) {
2709
+ this.addDepth(e.depth), this.opcode("getContext", e.depth);
2710
+ var i = e.parts[0], c = Te.default.helpers.scopedId(e), h = !e.depth && !c && this.blockParamIndex(i);
2711
+ h ? this.opcode("lookupBlockParam", h, e.parts) : i ? e.data ? (this.options.data = !0, this.opcode("lookupData", e.depth, e.parts, e.strict)) : this.opcode("lookupOnContext", e.parts, e.falsy, e.strict, c) : this.opcode("pushContext");
2712
+ },
2713
+ StringLiteral: function(e) {
2714
+ this.opcode("pushString", e.value);
2715
+ },
2716
+ NumberLiteral: function(e) {
2717
+ this.opcode("pushLiteral", e.value);
2718
+ },
2719
+ BooleanLiteral: function(e) {
2720
+ this.opcode("pushLiteral", e.value);
2721
+ },
2722
+ UndefinedLiteral: function() {
2723
+ this.opcode("pushLiteral", "undefined");
2724
+ },
2725
+ NullLiteral: function() {
2726
+ this.opcode("pushLiteral", "null");
2727
+ },
2728
+ Hash: function(e) {
2729
+ var i = e.pairs, c = 0, h = i.length;
2730
+ for (this.opcode("pushHash"); c < h; c++)
2731
+ this.pushParam(i[c].value);
2732
+ for (; c--; )
2733
+ this.opcode("assignToHash", i[c].key);
2734
+ this.opcode("popHash");
2735
+ },
2736
+ // HELPERS
2737
+ opcode: function(e) {
2738
+ this.opcodes.push({
2739
+ opcode: e,
2740
+ args: us.call(arguments, 1),
2741
+ loc: this.sourceNode[0].loc
2742
+ });
2743
+ },
2744
+ addDepth: function(e) {
2745
+ e && (this.useDepths = !0);
2746
+ },
2747
+ classifySexpr: function(e) {
2748
+ var i = Te.default.helpers.simpleId(e.path), c = i && !!this.blockParamIndex(e.path.parts[0]), h = !c && Te.default.helpers.helperExpression(e), f = !c && (h || i);
2749
+ if (f && !h) {
2750
+ var p = e.path.parts[0], l = this.options;
2751
+ l.knownHelpers[p] ? h = !0 : l.knownHelpersOnly && (f = !1);
2752
+ }
2753
+ return h ? "helper" : f ? "ambiguous" : "simple";
2754
+ },
2755
+ pushParams: function(e) {
2756
+ for (var i = 0, c = e.length; i < c; i++)
2757
+ this.pushParam(e[i]);
2758
+ },
2759
+ pushParam: function(e) {
2760
+ var i = e.value != null ? e.value : e.original || "";
2761
+ if (this.stringParams)
2762
+ i.replace && (i = i.replace(/^(\.?\.\/)*/g, "").replace(/\//g, ".")), e.depth && this.addDepth(e.depth), this.opcode("getContext", e.depth || 0), this.opcode("pushStringParam", i, e.type), e.type === "SubExpression" && this.accept(e);
2763
+ else {
2764
+ if (this.trackIds) {
2765
+ var c = void 0;
2766
+ if (e.parts && !Te.default.helpers.scopedId(e) && !e.depth && (c = this.blockParamIndex(e.parts[0])), c) {
2767
+ var h = e.parts.slice(1).join(".");
2768
+ this.opcode("pushId", "BlockParam", c, h);
2769
+ } else
2770
+ i = e.original || i, i.replace && (i = i.replace(/^this(?:\.|$)/, "").replace(/^\.\//, "").replace(/^\.$/, "")), this.opcode("pushId", e.type, i);
2771
+ }
2772
+ this.accept(e);
2773
+ }
2774
+ },
2775
+ setupFullMustacheParams: function(e, i, c, h) {
2776
+ var f = e.params;
2777
+ return this.pushParams(f), this.opcode("pushProgram", i), this.opcode("pushProgram", c), e.hash ? this.accept(e.hash) : this.opcode("emptyHash", h), f;
2778
+ },
2779
+ blockParamIndex: function(e) {
2780
+ for (var i = 0, c = this.options.blockParams.length; i < c; i++) {
2781
+ var h = this.options.blockParams[i], f = h && Re.indexOf(h, e);
2782
+ if (h && f >= 0)
2783
+ return [i, f];
2784
+ }
2785
+ }
2786
+ };
2787
+ function cs(t, e, i) {
2788
+ if (t == null || typeof t != "string" && t.type !== "Program")
2789
+ throw new Ne.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed " + t);
2790
+ e = e || {}, "data" in e || (e.data = !0), e.compat && (e.useDepths = !0);
2791
+ var c = i.parse(t, e), h = new i.Compiler().compile(c, e);
2792
+ return new i.JavaScriptCompiler().compile(h, e);
2793
+ }
2794
+ function ps(t, e, i) {
2795
+ if (e === void 0 && (e = {}), t == null || typeof t != "string" && t.type !== "Program")
2796
+ throw new Ne.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed " + t);
2797
+ e = Re.extend({}, e), "data" in e || (e.data = !0), e.compat && (e.useDepths = !0);
2798
+ var c = void 0;
2799
+ function h() {
2800
+ var p = i.parse(t, e), l = new i.Compiler().compile(p, e), o = new i.JavaScriptCompiler().compile(l, e, void 0, !0);
2801
+ return i.template(o);
2802
+ }
2803
+ function f(p, l) {
2804
+ return c || (c = h()), c.call(this, p, l);
2805
+ }
2806
+ return f._setup = function(p) {
2807
+ return c || (c = h()), c._setup(p);
2808
+ }, f._child = function(p, l, o, u) {
2809
+ return c || (c = h()), c._child(p, l, o, u);
2810
+ }, f;
2811
+ }
2812
+ function wn(t, e) {
2813
+ if (t === e)
2814
+ return !0;
2815
+ if (Re.isArray(t) && Re.isArray(e) && t.length === e.length) {
2816
+ for (var i = 0; i < t.length; i++)
2817
+ if (!wn(t[i], e[i]))
2818
+ return !1;
2819
+ return !0;
2820
+ }
2821
+ }
2822
+ function Qr(t) {
2823
+ if (!t.path.parts) {
2824
+ var e = t.path;
2825
+ t.path = {
2826
+ type: "PathExpression",
2827
+ data: !1,
2828
+ depth: 0,
2829
+ parts: [e.original + ""],
2830
+ original: e.original + "",
2831
+ loc: e.loc
2832
+ };
2833
+ }
2834
+ }
2835
+ var nr = { exports: {} }, ir = { exports: {} }, Oe = {}, At = {}, Je = {}, Qe = {}, Zr;
2836
+ function hs() {
2837
+ if (Zr) return Qe;
2838
+ Zr = 1;
2839
+ var t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");
2840
+ return Qe.encode = function(e) {
2841
+ if (0 <= e && e < t.length)
2842
+ return t[e];
2843
+ throw new TypeError("Must be between 0 and 63: " + e);
2844
+ }, Qe.decode = function(e) {
2845
+ var i = 65, c = 90, h = 97, f = 122, p = 48, l = 57, o = 43, u = 47, s = 26, d = 52;
2846
+ return i <= e && e <= c ? e - i : h <= e && e <= f ? e - h + s : p <= e && e <= l ? e - p + d : e == o ? 62 : e == u ? 63 : -1;
2847
+ }, Qe;
2848
+ }
2849
+ var jr;
2850
+ function Ln() {
2851
+ if (jr) return Je;
2852
+ jr = 1;
2853
+ var t = hs(), e = 5, i = 1 << e, c = i - 1, h = i;
2854
+ function f(l) {
2855
+ return l < 0 ? (-l << 1) + 1 : (l << 1) + 0;
2856
+ }
2857
+ function p(l) {
2858
+ var o = (l & 1) === 1, u = l >> 1;
2859
+ return o ? -u : u;
2860
+ }
2861
+ return Je.encode = function(o) {
2862
+ var u = "", s, d = f(o);
2863
+ do
2864
+ s = d & c, d >>>= e, d > 0 && (s |= h), u += t.encode(s);
2865
+ while (d > 0);
2866
+ return u;
2867
+ }, Je.decode = function(o, u, s) {
2868
+ var d = o.length, r = 0, a = 0, n, v;
2869
+ do {
2870
+ if (u >= d)
2871
+ throw new Error("Expected more digits in base 64 VLQ value.");
2872
+ if (v = t.decode(o.charCodeAt(u++)), v === -1)
2873
+ throw new Error("Invalid base64 digit: " + o.charAt(u - 1));
2874
+ n = !!(v & h), v &= c, r = r + (v << a), a += e;
2875
+ } while (n);
2876
+ s.value = p(r), s.rest = u;
2877
+ }, Je;
2878
+ }
2879
+ var wt = {}, $r;
2880
+ function He() {
2881
+ return $r || ($r = 1, function(t) {
2882
+ function e(g, S, A) {
2883
+ if (S in g)
2884
+ return g[S];
2885
+ if (arguments.length === 3)
2886
+ return A;
2887
+ throw new Error('"' + S + '" is a required argument.');
2888
+ }
2889
+ t.getArg = e;
2890
+ var i = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/, c = /^data:.+\,.+$/;
2891
+ function h(g) {
2892
+ var S = g.match(i);
2893
+ return S ? {
2894
+ scheme: S[1],
2895
+ auth: S[2],
2896
+ host: S[3],
2897
+ port: S[4],
2898
+ path: S[5]
2899
+ } : null;
2900
+ }
2901
+ t.urlParse = h;
2902
+ function f(g) {
2903
+ var S = "";
2904
+ return g.scheme && (S += g.scheme + ":"), S += "//", g.auth && (S += g.auth + "@"), g.host && (S += g.host), g.port && (S += ":" + g.port), g.path && (S += g.path), S;
2905
+ }
2906
+ t.urlGenerate = f;
2907
+ function p(g) {
2908
+ var S = g, A = h(g);
2909
+ if (A) {
2910
+ if (!A.path)
2911
+ return g;
2912
+ S = A.path;
2913
+ }
2914
+ for (var k = t.isAbsolute(S), x = S.split(/\/+/), N, O = 0, T = x.length - 1; T >= 0; T--)
2915
+ N = x[T], N === "." ? x.splice(T, 1) : N === ".." ? O++ : O > 0 && (N === "" ? (x.splice(T + 1, O), O = 0) : (x.splice(T, 2), O--));
2916
+ return S = x.join("/"), S === "" && (S = k ? "/" : "."), A ? (A.path = S, f(A)) : S;
2917
+ }
2918
+ t.normalize = p;
2919
+ function l(g, S) {
2920
+ g === "" && (g = "."), S === "" && (S = ".");
2921
+ var A = h(S), k = h(g);
2922
+ if (k && (g = k.path || "/"), A && !A.scheme)
2923
+ return k && (A.scheme = k.scheme), f(A);
2924
+ if (A || S.match(c))
2925
+ return S;
2926
+ if (k && !k.host && !k.path)
2927
+ return k.host = S, f(k);
2928
+ var x = S.charAt(0) === "/" ? S : p(g.replace(/\/+$/, "") + "/" + S);
2929
+ return k ? (k.path = x, f(k)) : x;
2930
+ }
2931
+ t.join = l, t.isAbsolute = function(g) {
2932
+ return g.charAt(0) === "/" || i.test(g);
2933
+ };
2934
+ function o(g, S) {
2935
+ g === "" && (g = "."), g = g.replace(/\/$/, "");
2936
+ for (var A = 0; S.indexOf(g + "/") !== 0; ) {
2937
+ var k = g.lastIndexOf("/");
2938
+ if (k < 0 || (g = g.slice(0, k), g.match(/^([^\/]+:\/)?\/*$/)))
2939
+ return S;
2940
+ ++A;
2941
+ }
2942
+ return Array(A + 1).join("../") + S.substr(g.length + 1);
2943
+ }
2944
+ t.relative = o;
2945
+ var u = function() {
2946
+ var g = /* @__PURE__ */ Object.create(null);
2947
+ return !("__proto__" in g);
2948
+ }();
2949
+ function s(g) {
2950
+ return g;
2951
+ }
2952
+ function d(g) {
2953
+ return a(g) ? "$" + g : g;
2954
+ }
2955
+ t.toSetString = u ? s : d;
2956
+ function r(g) {
2957
+ return a(g) ? g.slice(1) : g;
2958
+ }
2959
+ t.fromSetString = u ? s : r;
2960
+ function a(g) {
2961
+ if (!g)
2962
+ return !1;
2963
+ var S = g.length;
2964
+ if (S < 9 || g.charCodeAt(S - 1) !== 95 || g.charCodeAt(S - 2) !== 95 || g.charCodeAt(S - 3) !== 111 || g.charCodeAt(S - 4) !== 116 || g.charCodeAt(S - 5) !== 111 || g.charCodeAt(S - 6) !== 114 || g.charCodeAt(S - 7) !== 112 || g.charCodeAt(S - 8) !== 95 || g.charCodeAt(S - 9) !== 95)
2965
+ return !1;
2966
+ for (var A = S - 10; A >= 0; A--)
2967
+ if (g.charCodeAt(A) !== 36)
2968
+ return !1;
2969
+ return !0;
2970
+ }
2971
+ function n(g, S, A) {
2972
+ var k = _(g.source, S.source);
2973
+ return k !== 0 || (k = g.originalLine - S.originalLine, k !== 0) || (k = g.originalColumn - S.originalColumn, k !== 0 || A) || (k = g.generatedColumn - S.generatedColumn, k !== 0) || (k = g.generatedLine - S.generatedLine, k !== 0) ? k : _(g.name, S.name);
2974
+ }
2975
+ t.compareByOriginalPositions = n;
2976
+ function v(g, S, A) {
2977
+ var k = g.generatedLine - S.generatedLine;
2978
+ return k !== 0 || (k = g.generatedColumn - S.generatedColumn, k !== 0 || A) || (k = _(g.source, S.source), k !== 0) || (k = g.originalLine - S.originalLine, k !== 0) || (k = g.originalColumn - S.originalColumn, k !== 0) ? k : _(g.name, S.name);
2979
+ }
2980
+ t.compareByGeneratedPositionsDeflated = v;
2981
+ function _(g, S) {
2982
+ return g === S ? 0 : g === null ? 1 : S === null ? -1 : g > S ? 1 : -1;
2983
+ }
2984
+ function b(g, S) {
2985
+ var A = g.generatedLine - S.generatedLine;
2986
+ return A !== 0 || (A = g.generatedColumn - S.generatedColumn, A !== 0) || (A = _(g.source, S.source), A !== 0) || (A = g.originalLine - S.originalLine, A !== 0) || (A = g.originalColumn - S.originalColumn, A !== 0) ? A : _(g.name, S.name);
2987
+ }
2988
+ t.compareByGeneratedPositionsInflated = b;
2989
+ function y(g) {
2990
+ return JSON.parse(g.replace(/^\)]}'[^\n]*\n/, ""));
2991
+ }
2992
+ t.parseSourceMapInput = y;
2993
+ function E(g, S, A) {
2994
+ if (S = S || "", g && (g[g.length - 1] !== "/" && S[0] !== "/" && (g += "/"), S = g + S), A) {
2995
+ var k = h(A);
2996
+ if (!k)
2997
+ throw new Error("sourceMapURL could not be parsed");
2998
+ if (k.path) {
2999
+ var x = k.path.lastIndexOf("/");
3000
+ x >= 0 && (k.path = k.path.substring(0, x + 1));
3001
+ }
3002
+ S = l(f(k), S);
3003
+ }
3004
+ return p(S);
3005
+ }
3006
+ t.computeSourceURL = E;
3007
+ }(wt)), wt;
3008
+ }
3009
+ var Lt = {}, en;
3010
+ function xn() {
3011
+ if (en) return Lt;
3012
+ en = 1;
3013
+ var t = He(), e = Object.prototype.hasOwnProperty, i = typeof Map < "u";
3014
+ function c() {
3015
+ this._array = [], this._set = i ? /* @__PURE__ */ new Map() : /* @__PURE__ */ Object.create(null);
3016
+ }
3017
+ return c.fromArray = function(f, p) {
3018
+ for (var l = new c(), o = 0, u = f.length; o < u; o++)
3019
+ l.add(f[o], p);
3020
+ return l;
3021
+ }, c.prototype.size = function() {
3022
+ return i ? this._set.size : Object.getOwnPropertyNames(this._set).length;
3023
+ }, c.prototype.add = function(f, p) {
3024
+ var l = i ? f : t.toSetString(f), o = i ? this.has(f) : e.call(this._set, l), u = this._array.length;
3025
+ (!o || p) && this._array.push(f), o || (i ? this._set.set(f, u) : this._set[l] = u);
3026
+ }, c.prototype.has = function(f) {
3027
+ if (i)
3028
+ return this._set.has(f);
3029
+ var p = t.toSetString(f);
3030
+ return e.call(this._set, p);
3031
+ }, c.prototype.indexOf = function(f) {
3032
+ if (i) {
3033
+ var p = this._set.get(f);
3034
+ if (p >= 0)
3035
+ return p;
3036
+ } else {
3037
+ var l = t.toSetString(f);
3038
+ if (e.call(this._set, l))
3039
+ return this._set[l];
3040
+ }
3041
+ throw new Error('"' + f + '" is not in the set.');
3042
+ }, c.prototype.at = function(f) {
3043
+ if (f >= 0 && f < this._array.length)
3044
+ return this._array[f];
3045
+ throw new Error("No element indexed by " + f);
3046
+ }, c.prototype.toArray = function() {
3047
+ return this._array.slice();
3048
+ }, Lt.ArraySet = c, Lt;
3049
+ }
3050
+ var xt = {}, tn;
3051
+ function fs() {
3052
+ if (tn) return xt;
3053
+ tn = 1;
3054
+ var t = He();
3055
+ function e(c, h) {
3056
+ var f = c.generatedLine, p = h.generatedLine, l = c.generatedColumn, o = h.generatedColumn;
3057
+ return p > f || p == f && o >= l || t.compareByGeneratedPositionsInflated(c, h) <= 0;
3058
+ }
3059
+ function i() {
3060
+ this._array = [], this._sorted = !0, this._last = { generatedLine: -1, generatedColumn: 0 };
3061
+ }
3062
+ return i.prototype.unsortedForEach = function(h, f) {
3063
+ this._array.forEach(h, f);
3064
+ }, i.prototype.add = function(h) {
3065
+ e(this._last, h) ? (this._last = h, this._array.push(h)) : (this._sorted = !1, this._array.push(h));
3066
+ }, i.prototype.toArray = function() {
3067
+ return this._sorted || (this._array.sort(t.compareByGeneratedPositionsInflated), this._sorted = !0), this._array;
3068
+ }, xt.MappingList = i, xt;
3069
+ }
3070
+ var rn;
3071
+ function Pn() {
3072
+ if (rn) return At;
3073
+ rn = 1;
3074
+ var t = Ln(), e = He(), i = xn().ArraySet, c = fs().MappingList;
3075
+ function h(f) {
3076
+ f || (f = {}), this._file = e.getArg(f, "file", null), this._sourceRoot = e.getArg(f, "sourceRoot", null), this._skipValidation = e.getArg(f, "skipValidation", !1), this._sources = new i(), this._names = new i(), this._mappings = new c(), this._sourcesContents = null;
3077
+ }
3078
+ return h.prototype._version = 3, h.fromSourceMap = function(p) {
3079
+ var l = p.sourceRoot, o = new h({
3080
+ file: p.file,
3081
+ sourceRoot: l
3082
+ });
3083
+ return p.eachMapping(function(u) {
3084
+ var s = {
3085
+ generated: {
3086
+ line: u.generatedLine,
3087
+ column: u.generatedColumn
3088
+ }
3089
+ };
3090
+ u.source != null && (s.source = u.source, l != null && (s.source = e.relative(l, s.source)), s.original = {
3091
+ line: u.originalLine,
3092
+ column: u.originalColumn
3093
+ }, u.name != null && (s.name = u.name)), o.addMapping(s);
3094
+ }), p.sources.forEach(function(u) {
3095
+ var s = u;
3096
+ l !== null && (s = e.relative(l, u)), o._sources.has(s) || o._sources.add(s);
3097
+ var d = p.sourceContentFor(u);
3098
+ d != null && o.setSourceContent(u, d);
3099
+ }), o;
3100
+ }, h.prototype.addMapping = function(p) {
3101
+ var l = e.getArg(p, "generated"), o = e.getArg(p, "original", null), u = e.getArg(p, "source", null), s = e.getArg(p, "name", null);
3102
+ this._skipValidation || this._validateMapping(l, o, u, s), u != null && (u = String(u), this._sources.has(u) || this._sources.add(u)), s != null && (s = String(s), this._names.has(s) || this._names.add(s)), this._mappings.add({
3103
+ generatedLine: l.line,
3104
+ generatedColumn: l.column,
3105
+ originalLine: o != null && o.line,
3106
+ originalColumn: o != null && o.column,
3107
+ source: u,
3108
+ name: s
3109
+ });
3110
+ }, h.prototype.setSourceContent = function(p, l) {
3111
+ var o = p;
3112
+ this._sourceRoot != null && (o = e.relative(this._sourceRoot, o)), l != null ? (this._sourcesContents || (this._sourcesContents = /* @__PURE__ */ Object.create(null)), this._sourcesContents[e.toSetString(o)] = l) : this._sourcesContents && (delete this._sourcesContents[e.toSetString(o)], Object.keys(this._sourcesContents).length === 0 && (this._sourcesContents = null));
3113
+ }, h.prototype.applySourceMap = function(p, l, o) {
3114
+ var u = l;
3115
+ if (l == null) {
3116
+ if (p.file == null)
3117
+ throw new Error(
3118
+ `SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`
3119
+ );
3120
+ u = p.file;
3121
+ }
3122
+ var s = this._sourceRoot;
3123
+ s != null && (u = e.relative(s, u));
3124
+ var d = new i(), r = new i();
3125
+ this._mappings.unsortedForEach(function(a) {
3126
+ if (a.source === u && a.originalLine != null) {
3127
+ var n = p.originalPositionFor({
3128
+ line: a.originalLine,
3129
+ column: a.originalColumn
3130
+ });
3131
+ n.source != null && (a.source = n.source, o != null && (a.source = e.join(o, a.source)), s != null && (a.source = e.relative(s, a.source)), a.originalLine = n.line, a.originalColumn = n.column, n.name != null && (a.name = n.name));
3132
+ }
3133
+ var v = a.source;
3134
+ v != null && !d.has(v) && d.add(v);
3135
+ var _ = a.name;
3136
+ _ != null && !r.has(_) && r.add(_);
3137
+ }, this), this._sources = d, this._names = r, p.sources.forEach(function(a) {
3138
+ var n = p.sourceContentFor(a);
3139
+ n != null && (o != null && (a = e.join(o, a)), s != null && (a = e.relative(s, a)), this.setSourceContent(a, n));
3140
+ }, this);
3141
+ }, h.prototype._validateMapping = function(p, l, o, u) {
3142
+ if (l && typeof l.line != "number" && typeof l.column != "number")
3143
+ throw new Error(
3144
+ "original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values."
3145
+ );
3146
+ if (!(p && "line" in p && "column" in p && p.line > 0 && p.column >= 0 && !l && !o && !u)) {
3147
+ if (p && "line" in p && "column" in p && l && "line" in l && "column" in l && p.line > 0 && p.column >= 0 && l.line > 0 && l.column >= 0 && o)
3148
+ return;
3149
+ throw new Error("Invalid mapping: " + JSON.stringify({
3150
+ generated: p,
3151
+ source: o,
3152
+ original: l,
3153
+ name: u
3154
+ }));
3155
+ }
3156
+ }, h.prototype._serializeMappings = function() {
3157
+ for (var p = 0, l = 1, o = 0, u = 0, s = 0, d = 0, r = "", a, n, v, _, b = this._mappings.toArray(), y = 0, E = b.length; y < E; y++) {
3158
+ if (n = b[y], a = "", n.generatedLine !== l)
3159
+ for (p = 0; n.generatedLine !== l; )
3160
+ a += ";", l++;
3161
+ else if (y > 0) {
3162
+ if (!e.compareByGeneratedPositionsInflated(n, b[y - 1]))
3163
+ continue;
3164
+ a += ",";
3165
+ }
3166
+ a += t.encode(n.generatedColumn - p), p = n.generatedColumn, n.source != null && (_ = this._sources.indexOf(n.source), a += t.encode(_ - d), d = _, a += t.encode(n.originalLine - 1 - u), u = n.originalLine - 1, a += t.encode(n.originalColumn - o), o = n.originalColumn, n.name != null && (v = this._names.indexOf(n.name), a += t.encode(v - s), s = v)), r += a;
3167
+ }
3168
+ return r;
3169
+ }, h.prototype._generateSourcesContent = function(p, l) {
3170
+ return p.map(function(o) {
3171
+ if (!this._sourcesContents)
3172
+ return null;
3173
+ l != null && (o = e.relative(l, o));
3174
+ var u = e.toSetString(o);
3175
+ return Object.prototype.hasOwnProperty.call(this._sourcesContents, u) ? this._sourcesContents[u] : null;
3176
+ }, this);
3177
+ }, h.prototype.toJSON = function() {
3178
+ var p = {
3179
+ version: this._version,
3180
+ sources: this._sources.toArray(),
3181
+ names: this._names.toArray(),
3182
+ mappings: this._serializeMappings()
3183
+ };
3184
+ return this._file != null && (p.file = this._file), this._sourceRoot != null && (p.sourceRoot = this._sourceRoot), this._sourcesContents && (p.sourcesContent = this._generateSourcesContent(p.sources, p.sourceRoot)), p;
3185
+ }, h.prototype.toString = function() {
3186
+ return JSON.stringify(this.toJSON());
3187
+ }, At.SourceMapGenerator = h, At;
3188
+ }
3189
+ var Me = {}, Pt = {}, nn;
3190
+ function ds() {
3191
+ return nn || (nn = 1, function(t) {
3192
+ t.GREATEST_LOWER_BOUND = 1, t.LEAST_UPPER_BOUND = 2;
3193
+ function e(i, c, h, f, p, l) {
3194
+ var o = Math.floor((c - i) / 2) + i, u = p(h, f[o], !0);
3195
+ return u === 0 ? o : u > 0 ? c - o > 1 ? e(o, c, h, f, p, l) : l == t.LEAST_UPPER_BOUND ? c < f.length ? c : -1 : o : o - i > 1 ? e(i, o, h, f, p, l) : l == t.LEAST_UPPER_BOUND ? o : i < 0 ? -1 : i;
3196
+ }
3197
+ t.search = function(c, h, f, p) {
3198
+ if (h.length === 0)
3199
+ return -1;
3200
+ var l = e(
3201
+ -1,
3202
+ h.length,
3203
+ c,
3204
+ h,
3205
+ f,
3206
+ p || t.GREATEST_LOWER_BOUND
3207
+ );
3208
+ if (l < 0)
3209
+ return -1;
3210
+ for (; l - 1 >= 0 && f(h[l], h[l - 1], !0) === 0; )
3211
+ --l;
3212
+ return l;
3213
+ };
3214
+ }(Pt)), Pt;
3215
+ }
3216
+ var Tt = {}, on;
3217
+ function gs() {
3218
+ if (on) return Tt;
3219
+ on = 1;
3220
+ function t(c, h, f) {
3221
+ var p = c[h];
3222
+ c[h] = c[f], c[f] = p;
3223
+ }
3224
+ function e(c, h) {
3225
+ return Math.round(c + Math.random() * (h - c));
3226
+ }
3227
+ function i(c, h, f, p) {
3228
+ if (f < p) {
3229
+ var l = e(f, p), o = f - 1;
3230
+ t(c, l, p);
3231
+ for (var u = c[p], s = f; s < p; s++)
3232
+ h(c[s], u) <= 0 && (o += 1, t(c, o, s));
3233
+ t(c, o + 1, s);
3234
+ var d = o + 1;
3235
+ i(c, h, f, d - 1), i(c, h, d + 1, p);
3236
+ }
3237
+ }
3238
+ return Tt.quickSort = function(c, h) {
3239
+ i(c, h, 0, c.length - 1);
3240
+ }, Tt;
3241
+ }
3242
+ var sn;
3243
+ function ms() {
3244
+ if (sn) return Me;
3245
+ sn = 1;
3246
+ var t = He(), e = ds(), i = xn().ArraySet, c = Ln(), h = gs().quickSort;
3247
+ function f(u, s) {
3248
+ var d = u;
3249
+ return typeof u == "string" && (d = t.parseSourceMapInput(u)), d.sections != null ? new o(d, s) : new p(d, s);
3250
+ }
3251
+ f.fromSourceMap = function(u, s) {
3252
+ return p.fromSourceMap(u, s);
3253
+ }, f.prototype._version = 3, f.prototype.__generatedMappings = null, Object.defineProperty(f.prototype, "_generatedMappings", {
3254
+ configurable: !0,
3255
+ enumerable: !0,
3256
+ get: function() {
3257
+ return this.__generatedMappings || this._parseMappings(this._mappings, this.sourceRoot), this.__generatedMappings;
3258
+ }
3259
+ }), f.prototype.__originalMappings = null, Object.defineProperty(f.prototype, "_originalMappings", {
3260
+ configurable: !0,
3261
+ enumerable: !0,
3262
+ get: function() {
3263
+ return this.__originalMappings || this._parseMappings(this._mappings, this.sourceRoot), this.__originalMappings;
3264
+ }
3265
+ }), f.prototype._charIsMappingSeparator = function(s, d) {
3266
+ var r = s.charAt(d);
3267
+ return r === ";" || r === ",";
3268
+ }, f.prototype._parseMappings = function(s, d) {
3269
+ throw new Error("Subclasses must implement _parseMappings");
3270
+ }, f.GENERATED_ORDER = 1, f.ORIGINAL_ORDER = 2, f.GREATEST_LOWER_BOUND = 1, f.LEAST_UPPER_BOUND = 2, f.prototype.eachMapping = function(s, d, r) {
3271
+ var a = d || null, n = r || f.GENERATED_ORDER, v;
3272
+ switch (n) {
3273
+ case f.GENERATED_ORDER:
3274
+ v = this._generatedMappings;
3275
+ break;
3276
+ case f.ORIGINAL_ORDER:
3277
+ v = this._originalMappings;
3278
+ break;
3279
+ default:
3280
+ throw new Error("Unknown order of iteration.");
3281
+ }
3282
+ var _ = this.sourceRoot;
3283
+ v.map(function(b) {
3284
+ var y = b.source === null ? null : this._sources.at(b.source);
3285
+ return y = t.computeSourceURL(_, y, this._sourceMapURL), {
3286
+ source: y,
3287
+ generatedLine: b.generatedLine,
3288
+ generatedColumn: b.generatedColumn,
3289
+ originalLine: b.originalLine,
3290
+ originalColumn: b.originalColumn,
3291
+ name: b.name === null ? null : this._names.at(b.name)
3292
+ };
3293
+ }, this).forEach(s, a);
3294
+ }, f.prototype.allGeneratedPositionsFor = function(s) {
3295
+ var d = t.getArg(s, "line"), r = {
3296
+ source: t.getArg(s, "source"),
3297
+ originalLine: d,
3298
+ originalColumn: t.getArg(s, "column", 0)
3299
+ };
3300
+ if (r.source = this._findSourceIndex(r.source), r.source < 0)
3301
+ return [];
3302
+ var a = [], n = this._findMapping(
3303
+ r,
3304
+ this._originalMappings,
3305
+ "originalLine",
3306
+ "originalColumn",
3307
+ t.compareByOriginalPositions,
3308
+ e.LEAST_UPPER_BOUND
3309
+ );
3310
+ if (n >= 0) {
3311
+ var v = this._originalMappings[n];
3312
+ if (s.column === void 0)
3313
+ for (var _ = v.originalLine; v && v.originalLine === _; )
3314
+ a.push({
3315
+ line: t.getArg(v, "generatedLine", null),
3316
+ column: t.getArg(v, "generatedColumn", null),
3317
+ lastColumn: t.getArg(v, "lastGeneratedColumn", null)
3318
+ }), v = this._originalMappings[++n];
3319
+ else
3320
+ for (var b = v.originalColumn; v && v.originalLine === d && v.originalColumn == b; )
3321
+ a.push({
3322
+ line: t.getArg(v, "generatedLine", null),
3323
+ column: t.getArg(v, "generatedColumn", null),
3324
+ lastColumn: t.getArg(v, "lastGeneratedColumn", null)
3325
+ }), v = this._originalMappings[++n];
3326
+ }
3327
+ return a;
3328
+ }, Me.SourceMapConsumer = f;
3329
+ function p(u, s) {
3330
+ var d = u;
3331
+ typeof u == "string" && (d = t.parseSourceMapInput(u));
3332
+ var r = t.getArg(d, "version"), a = t.getArg(d, "sources"), n = t.getArg(d, "names", []), v = t.getArg(d, "sourceRoot", null), _ = t.getArg(d, "sourcesContent", null), b = t.getArg(d, "mappings"), y = t.getArg(d, "file", null);
3333
+ if (r != this._version)
3334
+ throw new Error("Unsupported version: " + r);
3335
+ v && (v = t.normalize(v)), a = a.map(String).map(t.normalize).map(function(E) {
3336
+ return v && t.isAbsolute(v) && t.isAbsolute(E) ? t.relative(v, E) : E;
3337
+ }), this._names = i.fromArray(n.map(String), !0), this._sources = i.fromArray(a, !0), this._absoluteSources = this._sources.toArray().map(function(E) {
3338
+ return t.computeSourceURL(v, E, s);
3339
+ }), this.sourceRoot = v, this.sourcesContent = _, this._mappings = b, this._sourceMapURL = s, this.file = y;
3340
+ }
3341
+ p.prototype = Object.create(f.prototype), p.prototype.consumer = f, p.prototype._findSourceIndex = function(u) {
3342
+ var s = u;
3343
+ if (this.sourceRoot != null && (s = t.relative(this.sourceRoot, s)), this._sources.has(s))
3344
+ return this._sources.indexOf(s);
3345
+ var d;
3346
+ for (d = 0; d < this._absoluteSources.length; ++d)
3347
+ if (this._absoluteSources[d] == u)
3348
+ return d;
3349
+ return -1;
3350
+ }, p.fromSourceMap = function(s, d) {
3351
+ var r = Object.create(p.prototype), a = r._names = i.fromArray(s._names.toArray(), !0), n = r._sources = i.fromArray(s._sources.toArray(), !0);
3352
+ r.sourceRoot = s._sourceRoot, r.sourcesContent = s._generateSourcesContent(
3353
+ r._sources.toArray(),
3354
+ r.sourceRoot
3355
+ ), r.file = s._file, r._sourceMapURL = d, r._absoluteSources = r._sources.toArray().map(function(A) {
3356
+ return t.computeSourceURL(r.sourceRoot, A, d);
3357
+ });
3358
+ for (var v = s._mappings.toArray().slice(), _ = r.__generatedMappings = [], b = r.__originalMappings = [], y = 0, E = v.length; y < E; y++) {
3359
+ var g = v[y], S = new l();
3360
+ S.generatedLine = g.generatedLine, S.generatedColumn = g.generatedColumn, g.source && (S.source = n.indexOf(g.source), S.originalLine = g.originalLine, S.originalColumn = g.originalColumn, g.name && (S.name = a.indexOf(g.name)), b.push(S)), _.push(S);
3361
+ }
3362
+ return h(r.__originalMappings, t.compareByOriginalPositions), r;
3363
+ }, p.prototype._version = 3, Object.defineProperty(p.prototype, "sources", {
3364
+ get: function() {
3365
+ return this._absoluteSources.slice();
3366
+ }
3367
+ });
3368
+ function l() {
3369
+ this.generatedLine = 0, this.generatedColumn = 0, this.source = null, this.originalLine = null, this.originalColumn = null, this.name = null;
3370
+ }
3371
+ p.prototype._parseMappings = function(s, d) {
3372
+ for (var r = 1, a = 0, n = 0, v = 0, _ = 0, b = 0, y = s.length, E = 0, g = {}, S = {}, A = [], k = [], x, N, O, T, Z; E < y; )
3373
+ if (s.charAt(E) === ";")
3374
+ r++, E++, a = 0;
3375
+ else if (s.charAt(E) === ",")
3376
+ E++;
3377
+ else {
3378
+ for (x = new l(), x.generatedLine = r, T = E; T < y && !this._charIsMappingSeparator(s, T); T++)
3379
+ ;
3380
+ if (N = s.slice(E, T), O = g[N], O)
3381
+ E += N.length;
3382
+ else {
3383
+ for (O = []; E < T; )
3384
+ c.decode(s, E, S), Z = S.value, E = S.rest, O.push(Z);
3385
+ if (O.length === 2)
3386
+ throw new Error("Found a source, but no line and column");
3387
+ if (O.length === 3)
3388
+ throw new Error("Found a source and line, but no column");
3389
+ g[N] = O;
3390
+ }
3391
+ x.generatedColumn = a + O[0], a = x.generatedColumn, O.length > 1 && (x.source = _ + O[1], _ += O[1], x.originalLine = n + O[2], n = x.originalLine, x.originalLine += 1, x.originalColumn = v + O[3], v = x.originalColumn, O.length > 4 && (x.name = b + O[4], b += O[4])), k.push(x), typeof x.originalLine == "number" && A.push(x);
3392
+ }
3393
+ h(k, t.compareByGeneratedPositionsDeflated), this.__generatedMappings = k, h(A, t.compareByOriginalPositions), this.__originalMappings = A;
3394
+ }, p.prototype._findMapping = function(s, d, r, a, n, v) {
3395
+ if (s[r] <= 0)
3396
+ throw new TypeError("Line must be greater than or equal to 1, got " + s[r]);
3397
+ if (s[a] < 0)
3398
+ throw new TypeError("Column must be greater than or equal to 0, got " + s[a]);
3399
+ return e.search(s, d, n, v);
3400
+ }, p.prototype.computeColumnSpans = function() {
3401
+ for (var s = 0; s < this._generatedMappings.length; ++s) {
3402
+ var d = this._generatedMappings[s];
3403
+ if (s + 1 < this._generatedMappings.length) {
3404
+ var r = this._generatedMappings[s + 1];
3405
+ if (d.generatedLine === r.generatedLine) {
3406
+ d.lastGeneratedColumn = r.generatedColumn - 1;
3407
+ continue;
3408
+ }
3409
+ }
3410
+ d.lastGeneratedColumn = 1 / 0;
3411
+ }
3412
+ }, p.prototype.originalPositionFor = function(s) {
3413
+ var d = {
3414
+ generatedLine: t.getArg(s, "line"),
3415
+ generatedColumn: t.getArg(s, "column")
3416
+ }, r = this._findMapping(
3417
+ d,
3418
+ this._generatedMappings,
3419
+ "generatedLine",
3420
+ "generatedColumn",
3421
+ t.compareByGeneratedPositionsDeflated,
3422
+ t.getArg(s, "bias", f.GREATEST_LOWER_BOUND)
3423
+ );
3424
+ if (r >= 0) {
3425
+ var a = this._generatedMappings[r];
3426
+ if (a.generatedLine === d.generatedLine) {
3427
+ var n = t.getArg(a, "source", null);
3428
+ n !== null && (n = this._sources.at(n), n = t.computeSourceURL(this.sourceRoot, n, this._sourceMapURL));
3429
+ var v = t.getArg(a, "name", null);
3430
+ return v !== null && (v = this._names.at(v)), {
3431
+ source: n,
3432
+ line: t.getArg(a, "originalLine", null),
3433
+ column: t.getArg(a, "originalColumn", null),
3434
+ name: v
3435
+ };
3436
+ }
3437
+ }
3438
+ return {
3439
+ source: null,
3440
+ line: null,
3441
+ column: null,
3442
+ name: null
3443
+ };
3444
+ }, p.prototype.hasContentsOfAllSources = function() {
3445
+ return this.sourcesContent ? this.sourcesContent.length >= this._sources.size() && !this.sourcesContent.some(function(s) {
3446
+ return s == null;
3447
+ }) : !1;
3448
+ }, p.prototype.sourceContentFor = function(s, d) {
3449
+ if (!this.sourcesContent)
3450
+ return null;
3451
+ var r = this._findSourceIndex(s);
3452
+ if (r >= 0)
3453
+ return this.sourcesContent[r];
3454
+ var a = s;
3455
+ this.sourceRoot != null && (a = t.relative(this.sourceRoot, a));
3456
+ var n;
3457
+ if (this.sourceRoot != null && (n = t.urlParse(this.sourceRoot))) {
3458
+ var v = a.replace(/^file:\/\//, "");
3459
+ if (n.scheme == "file" && this._sources.has(v))
3460
+ return this.sourcesContent[this._sources.indexOf(v)];
3461
+ if ((!n.path || n.path == "/") && this._sources.has("/" + a))
3462
+ return this.sourcesContent[this._sources.indexOf("/" + a)];
3463
+ }
3464
+ if (d)
3465
+ return null;
3466
+ throw new Error('"' + a + '" is not in the SourceMap.');
3467
+ }, p.prototype.generatedPositionFor = function(s) {
3468
+ var d = t.getArg(s, "source");
3469
+ if (d = this._findSourceIndex(d), d < 0)
3470
+ return {
3471
+ line: null,
3472
+ column: null,
3473
+ lastColumn: null
3474
+ };
3475
+ var r = {
3476
+ source: d,
3477
+ originalLine: t.getArg(s, "line"),
3478
+ originalColumn: t.getArg(s, "column")
3479
+ }, a = this._findMapping(
3480
+ r,
3481
+ this._originalMappings,
3482
+ "originalLine",
3483
+ "originalColumn",
3484
+ t.compareByOriginalPositions,
3485
+ t.getArg(s, "bias", f.GREATEST_LOWER_BOUND)
3486
+ );
3487
+ if (a >= 0) {
3488
+ var n = this._originalMappings[a];
3489
+ if (n.source === r.source)
3490
+ return {
3491
+ line: t.getArg(n, "generatedLine", null),
3492
+ column: t.getArg(n, "generatedColumn", null),
3493
+ lastColumn: t.getArg(n, "lastGeneratedColumn", null)
3494
+ };
3495
+ }
3496
+ return {
3497
+ line: null,
3498
+ column: null,
3499
+ lastColumn: null
3500
+ };
3501
+ }, Me.BasicSourceMapConsumer = p;
3502
+ function o(u, s) {
3503
+ var d = u;
3504
+ typeof u == "string" && (d = t.parseSourceMapInput(u));
3505
+ var r = t.getArg(d, "version"), a = t.getArg(d, "sections");
3506
+ if (r != this._version)
3507
+ throw new Error("Unsupported version: " + r);
3508
+ this._sources = new i(), this._names = new i();
3509
+ var n = {
3510
+ line: -1,
3511
+ column: 0
3512
+ };
3513
+ this._sections = a.map(function(v) {
3514
+ if (v.url)
3515
+ throw new Error("Support for url field in sections not implemented.");
3516
+ var _ = t.getArg(v, "offset"), b = t.getArg(_, "line"), y = t.getArg(_, "column");
3517
+ if (b < n.line || b === n.line && y < n.column)
3518
+ throw new Error("Section offsets must be ordered and non-overlapping.");
3519
+ return n = _, {
3520
+ generatedOffset: {
3521
+ // The offset fields are 0-based, but we use 1-based indices when
3522
+ // encoding/decoding from VLQ.
3523
+ generatedLine: b + 1,
3524
+ generatedColumn: y + 1
3525
+ },
3526
+ consumer: new f(t.getArg(v, "map"), s)
3527
+ };
3528
+ });
3529
+ }
3530
+ return o.prototype = Object.create(f.prototype), o.prototype.constructor = f, o.prototype._version = 3, Object.defineProperty(o.prototype, "sources", {
3531
+ get: function() {
3532
+ for (var u = [], s = 0; s < this._sections.length; s++)
3533
+ for (var d = 0; d < this._sections[s].consumer.sources.length; d++)
3534
+ u.push(this._sections[s].consumer.sources[d]);
3535
+ return u;
3536
+ }
3537
+ }), o.prototype.originalPositionFor = function(s) {
3538
+ var d = {
3539
+ generatedLine: t.getArg(s, "line"),
3540
+ generatedColumn: t.getArg(s, "column")
3541
+ }, r = e.search(
3542
+ d,
3543
+ this._sections,
3544
+ function(n, v) {
3545
+ var _ = n.generatedLine - v.generatedOffset.generatedLine;
3546
+ return _ || n.generatedColumn - v.generatedOffset.generatedColumn;
3547
+ }
3548
+ ), a = this._sections[r];
3549
+ return a ? a.consumer.originalPositionFor({
3550
+ line: d.generatedLine - (a.generatedOffset.generatedLine - 1),
3551
+ column: d.generatedColumn - (a.generatedOffset.generatedLine === d.generatedLine ? a.generatedOffset.generatedColumn - 1 : 0),
3552
+ bias: s.bias
3553
+ }) : {
3554
+ source: null,
3555
+ line: null,
3556
+ column: null,
3557
+ name: null
3558
+ };
3559
+ }, o.prototype.hasContentsOfAllSources = function() {
3560
+ return this._sections.every(function(s) {
3561
+ return s.consumer.hasContentsOfAllSources();
3562
+ });
3563
+ }, o.prototype.sourceContentFor = function(s, d) {
3564
+ for (var r = 0; r < this._sections.length; r++) {
3565
+ var a = this._sections[r], n = a.consumer.sourceContentFor(s, !0);
3566
+ if (n)
3567
+ return n;
3568
+ }
3569
+ if (d)
3570
+ return null;
3571
+ throw new Error('"' + s + '" is not in the SourceMap.');
3572
+ }, o.prototype.generatedPositionFor = function(s) {
3573
+ for (var d = 0; d < this._sections.length; d++) {
3574
+ var r = this._sections[d];
3575
+ if (r.consumer._findSourceIndex(t.getArg(s, "source")) !== -1) {
3576
+ var a = r.consumer.generatedPositionFor(s);
3577
+ if (a) {
3578
+ var n = {
3579
+ line: a.line + (r.generatedOffset.generatedLine - 1),
3580
+ column: a.column + (r.generatedOffset.generatedLine === a.line ? r.generatedOffset.generatedColumn - 1 : 0)
3581
+ };
3582
+ return n;
3583
+ }
3584
+ }
3585
+ }
3586
+ return {
3587
+ line: null,
3588
+ column: null
3589
+ };
3590
+ }, o.prototype._parseMappings = function(s, d) {
3591
+ this.__generatedMappings = [], this.__originalMappings = [];
3592
+ for (var r = 0; r < this._sections.length; r++)
3593
+ for (var a = this._sections[r], n = a.consumer._generatedMappings, v = 0; v < n.length; v++) {
3594
+ var _ = n[v], b = a.consumer._sources.at(_.source);
3595
+ b = t.computeSourceURL(a.consumer.sourceRoot, b, this._sourceMapURL), this._sources.add(b), b = this._sources.indexOf(b);
3596
+ var y = null;
3597
+ _.name && (y = a.consumer._names.at(_.name), this._names.add(y), y = this._names.indexOf(y));
3598
+ var E = {
3599
+ source: b,
3600
+ generatedLine: _.generatedLine + (a.generatedOffset.generatedLine - 1),
3601
+ generatedColumn: _.generatedColumn + (a.generatedOffset.generatedLine === _.generatedLine ? a.generatedOffset.generatedColumn - 1 : 0),
3602
+ originalLine: _.originalLine,
3603
+ originalColumn: _.originalColumn,
3604
+ name: y
3605
+ };
3606
+ this.__generatedMappings.push(E), typeof E.originalLine == "number" && this.__originalMappings.push(E);
3607
+ }
3608
+ h(this.__generatedMappings, t.compareByGeneratedPositionsDeflated), h(this.__originalMappings, t.compareByOriginalPositions);
3609
+ }, Me.IndexedSourceMapConsumer = o, Me;
3610
+ }
3611
+ var Ot = {}, an;
3612
+ function vs() {
3613
+ if (an) return Ot;
3614
+ an = 1;
3615
+ var t = Pn().SourceMapGenerator, e = He(), i = /(\r?\n)/, c = 10, h = "$$$isSourceNode$$$";
3616
+ function f(p, l, o, u, s) {
3617
+ this.children = [], this.sourceContents = {}, this.line = p ?? null, this.column = l ?? null, this.source = o ?? null, this.name = s ?? null, this[h] = !0, u != null && this.add(u);
3618
+ }
3619
+ return f.fromStringWithSourceMap = function(l, o, u) {
3620
+ var s = new f(), d = l.split(i), r = 0, a = function() {
3621
+ var y = g(), E = g() || "";
3622
+ return y + E;
3623
+ function g() {
3624
+ return r < d.length ? d[r++] : void 0;
3625
+ }
3626
+ }, n = 1, v = 0, _ = null;
3627
+ return o.eachMapping(function(y) {
3628
+ if (_ !== null)
3629
+ if (n < y.generatedLine)
3630
+ b(_, a()), n++, v = 0;
3631
+ else {
3632
+ var E = d[r] || "", g = E.substr(0, y.generatedColumn - v);
3633
+ d[r] = E.substr(y.generatedColumn - v), v = y.generatedColumn, b(_, g), _ = y;
3634
+ return;
3635
+ }
3636
+ for (; n < y.generatedLine; )
3637
+ s.add(a()), n++;
3638
+ if (v < y.generatedColumn) {
3639
+ var E = d[r] || "";
3640
+ s.add(E.substr(0, y.generatedColumn)), d[r] = E.substr(y.generatedColumn), v = y.generatedColumn;
3641
+ }
3642
+ _ = y;
3643
+ }, this), r < d.length && (_ && b(_, a()), s.add(d.splice(r).join(""))), o.sources.forEach(function(y) {
3644
+ var E = o.sourceContentFor(y);
3645
+ E != null && (u != null && (y = e.join(u, y)), s.setSourceContent(y, E));
3646
+ }), s;
3647
+ function b(y, E) {
3648
+ if (y === null || y.source === void 0)
3649
+ s.add(E);
3650
+ else {
3651
+ var g = u ? e.join(u, y.source) : y.source;
3652
+ s.add(new f(
3653
+ y.originalLine,
3654
+ y.originalColumn,
3655
+ g,
3656
+ E,
3657
+ y.name
3658
+ ));
3659
+ }
3660
+ }
3661
+ }, f.prototype.add = function(l) {
3662
+ if (Array.isArray(l))
3663
+ l.forEach(function(o) {
3664
+ this.add(o);
3665
+ }, this);
3666
+ else if (l[h] || typeof l == "string")
3667
+ l && this.children.push(l);
3668
+ else
3669
+ throw new TypeError(
3670
+ "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + l
3671
+ );
3672
+ return this;
3673
+ }, f.prototype.prepend = function(l) {
3674
+ if (Array.isArray(l))
3675
+ for (var o = l.length - 1; o >= 0; o--)
3676
+ this.prepend(l[o]);
3677
+ else if (l[h] || typeof l == "string")
3678
+ this.children.unshift(l);
3679
+ else
3680
+ throw new TypeError(
3681
+ "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + l
3682
+ );
3683
+ return this;
3684
+ }, f.prototype.walk = function(l) {
3685
+ for (var o, u = 0, s = this.children.length; u < s; u++)
3686
+ o = this.children[u], o[h] ? o.walk(l) : o !== "" && l(o, {
3687
+ source: this.source,
3688
+ line: this.line,
3689
+ column: this.column,
3690
+ name: this.name
3691
+ });
3692
+ }, f.prototype.join = function(l) {
3693
+ var o, u, s = this.children.length;
3694
+ if (s > 0) {
3695
+ for (o = [], u = 0; u < s - 1; u++)
3696
+ o.push(this.children[u]), o.push(l);
3697
+ o.push(this.children[u]), this.children = o;
3698
+ }
3699
+ return this;
3700
+ }, f.prototype.replaceRight = function(l, o) {
3701
+ var u = this.children[this.children.length - 1];
3702
+ return u[h] ? u.replaceRight(l, o) : typeof u == "string" ? this.children[this.children.length - 1] = u.replace(l, o) : this.children.push("".replace(l, o)), this;
3703
+ }, f.prototype.setSourceContent = function(l, o) {
3704
+ this.sourceContents[e.toSetString(l)] = o;
3705
+ }, f.prototype.walkSourceContents = function(l) {
3706
+ for (var o = 0, u = this.children.length; o < u; o++)
3707
+ this.children[o][h] && this.children[o].walkSourceContents(l);
3708
+ for (var s = Object.keys(this.sourceContents), o = 0, u = s.length; o < u; o++)
3709
+ l(e.fromSetString(s[o]), this.sourceContents[s[o]]);
3710
+ }, f.prototype.toString = function() {
3711
+ var l = "";
3712
+ return this.walk(function(o) {
3713
+ l += o;
3714
+ }), l;
3715
+ }, f.prototype.toStringWithSourceMap = function(l) {
3716
+ var o = {
3717
+ code: "",
3718
+ line: 1,
3719
+ column: 0
3720
+ }, u = new t(l), s = !1, d = null, r = null, a = null, n = null;
3721
+ return this.walk(function(v, _) {
3722
+ o.code += v, _.source !== null && _.line !== null && _.column !== null ? ((d !== _.source || r !== _.line || a !== _.column || n !== _.name) && u.addMapping({
3723
+ source: _.source,
3724
+ original: {
3725
+ line: _.line,
3726
+ column: _.column
3727
+ },
3728
+ generated: {
3729
+ line: o.line,
3730
+ column: o.column
3731
+ },
3732
+ name: _.name
3733
+ }), d = _.source, r = _.line, a = _.column, n = _.name, s = !0) : s && (u.addMapping({
3734
+ generated: {
3735
+ line: o.line,
3736
+ column: o.column
3737
+ }
3738
+ }), d = null, s = !1);
3739
+ for (var b = 0, y = v.length; b < y; b++)
3740
+ v.charCodeAt(b) === c ? (o.line++, o.column = 0, b + 1 === y ? (d = null, s = !1) : s && u.addMapping({
3741
+ source: _.source,
3742
+ original: {
3743
+ line: _.line,
3744
+ column: _.column
3745
+ },
3746
+ generated: {
3747
+ line: o.line,
3748
+ column: o.column
3749
+ },
3750
+ name: _.name
3751
+ })) : o.column++;
3752
+ }), this.walkSourceContents(function(v, _) {
3753
+ u.setSourceContent(v, _);
3754
+ }), { code: o.code, map: u };
3755
+ }, Ot.SourceNode = f, Ot;
3756
+ }
3757
+ var ln;
3758
+ function _s() {
3759
+ return ln || (ln = 1, Oe.SourceMapGenerator = Pn().SourceMapGenerator, Oe.SourceMapConsumer = ms().SourceMapConsumer, Oe.SourceNode = vs().SourceNode), Oe;
3760
+ }
3761
+ (function(t, e) {
3762
+ e.__esModule = !0;
3763
+ var i = M, c = void 0;
3764
+ try {
3765
+ var h = _s();
3766
+ c = h.SourceNode;
3767
+ } catch {
3768
+ }
3769
+ c || (c = function(l, o, u, s) {
3770
+ this.src = "", s && this.add(s);
3771
+ }, c.prototype = {
3772
+ add: function(o) {
3773
+ i.isArray(o) && (o = o.join("")), this.src += o;
3774
+ },
3775
+ prepend: function(o) {
3776
+ i.isArray(o) && (o = o.join("")), this.src = o + this.src;
3777
+ },
3778
+ toStringWithSourceMap: function() {
3779
+ return { code: this.toString() };
3780
+ },
3781
+ toString: function() {
3782
+ return this.src;
3783
+ }
3784
+ });
3785
+ function f(l, o, u) {
3786
+ if (i.isArray(l)) {
3787
+ for (var s = [], d = 0, r = l.length; d < r; d++)
3788
+ s.push(o.wrap(l[d], u));
3789
+ return s;
3790
+ } else if (typeof l == "boolean" || typeof l == "number")
3791
+ return l + "";
3792
+ return l;
3793
+ }
3794
+ function p(l) {
3795
+ this.srcFile = l, this.source = [];
3796
+ }
3797
+ p.prototype = {
3798
+ isEmpty: function() {
3799
+ return !this.source.length;
3800
+ },
3801
+ prepend: function(o, u) {
3802
+ this.source.unshift(this.wrap(o, u));
3803
+ },
3804
+ push: function(o, u) {
3805
+ this.source.push(this.wrap(o, u));
3806
+ },
3807
+ merge: function() {
3808
+ var o = this.empty();
3809
+ return this.each(function(u) {
3810
+ o.add([" ", u, `
3811
+ `]);
3812
+ }), o;
3813
+ },
3814
+ each: function(o) {
3815
+ for (var u = 0, s = this.source.length; u < s; u++)
3816
+ o(this.source[u]);
3817
+ },
3818
+ empty: function() {
3819
+ var o = this.currentLocation || { start: {} };
3820
+ return new c(o.start.line, o.start.column, this.srcFile);
3821
+ },
3822
+ wrap: function(o) {
3823
+ var u = arguments.length <= 1 || arguments[1] === void 0 ? this.currentLocation || { start: {} } : arguments[1];
3824
+ return o instanceof c ? o : (o = f(o, this, u), new c(u.start.line, u.start.column, this.srcFile, o));
3825
+ },
3826
+ functionCall: function(o, u, s) {
3827
+ return s = this.generateList(s), this.wrap([o, u ? "." + u + "(" : "(", s, ")"]);
3828
+ },
3829
+ quotedString: function(o) {
3830
+ return '"' + (o + "").replace(/\\/g, "\\\\").replace(/"/g, '\\"').replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029") + '"';
3831
+ },
3832
+ objectLiteral: function(o) {
3833
+ var u = this, s = [];
3834
+ Object.keys(o).forEach(function(r) {
3835
+ var a = f(o[r], u);
3836
+ a !== "undefined" && s.push([u.quotedString(r), ":", a]);
3837
+ });
3838
+ var d = this.generateList(s);
3839
+ return d.prepend("{"), d.add("}"), d;
3840
+ },
3841
+ generateList: function(o) {
3842
+ for (var u = this.empty(), s = 0, d = o.length; s < d; s++)
3843
+ s && u.add(","), u.add(f(o[s], this));
3844
+ return u;
3845
+ },
3846
+ generateArray: function(o) {
3847
+ var u = this.generateList(o);
3848
+ return u.prepend("["), u.add("]"), u;
3849
+ }
3850
+ }, e.default = p, t.exports = e.default;
3851
+ })(ir, ir.exports);
3852
+ var ys = ir.exports;
3853
+ (function(t, e) {
3854
+ e.__esModule = !0;
3855
+ function i(r) {
3856
+ return r && r.__esModule ? r : { default: r };
3857
+ }
3858
+ var c = Y, h = Q, f = i(h), p = M, l = ys, o = i(l);
3859
+ function u(r) {
3860
+ this.value = r;
3861
+ }
3862
+ function s() {
3863
+ }
3864
+ s.prototype = {
3865
+ // PUBLIC API: You can override these methods in a subclass to provide
3866
+ // alternative compiled forms for name lookup and buffering semantics
3867
+ nameLookup: function(a, n) {
3868
+ return this.internalNameLookup(a, n);
3869
+ },
3870
+ depthedLookup: function(a) {
3871
+ return [this.aliasable("container.lookup"), "(depths, ", JSON.stringify(a), ")"];
3872
+ },
3873
+ compilerInfo: function() {
3874
+ var a = c.COMPILER_REVISION, n = c.REVISION_CHANGES[a];
3875
+ return [a, n];
3876
+ },
3877
+ appendToBuffer: function(a, n, v) {
3878
+ return p.isArray(a) || (a = [a]), a = this.source.wrap(a, n), this.environment.isSimple ? ["return ", a, ";"] : v ? ["buffer += ", a, ";"] : (a.appendToBuffer = !0, a);
3879
+ },
3880
+ initializeBuffer: function() {
3881
+ return this.quotedString("");
3882
+ },
3883
+ // END PUBLIC API
3884
+ internalNameLookup: function(a, n) {
3885
+ return this.lookupPropertyFunctionIsUsed = !0, ["lookupProperty(", a, ",", JSON.stringify(n), ")"];
3886
+ },
3887
+ lookupPropertyFunctionIsUsed: !1,
3888
+ compile: function(a, n, v, _) {
3889
+ this.environment = a, this.options = n, this.stringParams = this.options.stringParams, this.trackIds = this.options.trackIds, this.precompile = !_, this.name = this.environment.name, this.isChild = !!v, this.context = v || {
3890
+ decorators: [],
3891
+ programs: [],
3892
+ environments: []
3893
+ }, this.preamble(), this.stackSlot = 0, this.stackVars = [], this.aliases = {}, this.registers = { list: [] }, this.hashes = [], this.compileStack = [], this.inlineStack = [], this.blockParams = [], this.compileChildren(a, n), this.useDepths = this.useDepths || a.useDepths || a.useDecorators || this.options.compat, this.useBlockParams = this.useBlockParams || a.useBlockParams;
3894
+ var b = a.opcodes, y = void 0, E = void 0, g = void 0, S = void 0;
3895
+ for (g = 0, S = b.length; g < S; g++)
3896
+ y = b[g], this.source.currentLocation = y.loc, E = E || y.loc, this[y.opcode].apply(this, y.args);
3897
+ if (this.source.currentLocation = E, this.pushSource(""), this.stackSlot || this.inlineStack.length || this.compileStack.length)
3898
+ throw new f.default("Compile completed with content left on stack");
3899
+ this.decorators.isEmpty() ? this.decorators = void 0 : (this.useDecorators = !0, this.decorators.prepend(["var decorators = container.decorators, ", this.lookupPropertyFunctionVarDeclaration(), `;
3900
+ `]), this.decorators.push("return fn;"), _ ? this.decorators = Function.apply(this, ["fn", "props", "container", "depth0", "data", "blockParams", "depths", this.decorators.merge()]) : (this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
3901
+ `), this.decorators.push(`}
3902
+ `), this.decorators = this.decorators.merge()));
3903
+ var A = this.createFunctionContext(_);
3904
+ if (this.isChild)
3905
+ return A;
3906
+ var k = {
3907
+ compiler: this.compilerInfo(),
3908
+ main: A
3909
+ };
3910
+ this.decorators && (k.main_d = this.decorators, k.useDecorators = !0);
3911
+ var x = this.context, N = x.programs, O = x.decorators;
3912
+ for (g = 0, S = N.length; g < S; g++)
3913
+ N[g] && (k[g] = N[g], O[g] && (k[g + "_d"] = O[g], k.useDecorators = !0));
3914
+ return this.environment.usePartial && (k.usePartial = !0), this.options.data && (k.useData = !0), this.useDepths && (k.useDepths = !0), this.useBlockParams && (k.useBlockParams = !0), this.options.compat && (k.compat = !0), _ ? k.compilerOptions = this.options : (k.compiler = JSON.stringify(k.compiler), this.source.currentLocation = { start: { line: 1, column: 0 } }, k = this.objectLiteral(k), n.srcName ? (k = k.toStringWithSourceMap({ file: n.destName }), k.map = k.map && k.map.toString()) : k = k.toString()), k;
3915
+ },
3916
+ preamble: function() {
3917
+ this.lastContext = 0, this.source = new o.default(this.options.srcName), this.decorators = new o.default(this.options.srcName);
3918
+ },
3919
+ createFunctionContext: function(a) {
3920
+ var n = this, v = "", _ = this.stackVars.concat(this.registers.list);
3921
+ _.length > 0 && (v += ", " + _.join(", "));
3922
+ var b = 0;
3923
+ Object.keys(this.aliases).forEach(function(g) {
3924
+ var S = n.aliases[g];
3925
+ S.children && S.referenceCount > 1 && (v += ", alias" + ++b + "=" + g, S.children[0] = "alias" + b);
3926
+ }), this.lookupPropertyFunctionIsUsed && (v += ", " + this.lookupPropertyFunctionVarDeclaration());
3927
+ var y = ["container", "depth0", "helpers", "partials", "data"];
3928
+ (this.useBlockParams || this.useDepths) && y.push("blockParams"), this.useDepths && y.push("depths");
3929
+ var E = this.mergeSource(v);
3930
+ return a ? (y.push(E), Function.apply(this, y)) : this.source.wrap(["function(", y.join(","), `) {
3931
+ `, E, "}"]);
3932
+ },
3933
+ mergeSource: function(a) {
3934
+ var n = this.environment.isSimple, v = !this.forceBuffer, _ = void 0, b = void 0, y = void 0, E = void 0;
3935
+ return this.source.each(function(g) {
3936
+ g.appendToBuffer ? (y ? g.prepend(" + ") : y = g, E = g) : (y && (b ? y.prepend("buffer += ") : _ = !0, E.add(";"), y = E = void 0), b = !0, n || (v = !1));
3937
+ }), v ? y ? (y.prepend("return "), E.add(";")) : b || this.source.push('return "";') : (a += ", buffer = " + (_ ? "" : this.initializeBuffer()), y ? (y.prepend("return buffer + "), E.add(";")) : this.source.push("return buffer;")), a && this.source.prepend("var " + a.substring(2) + (_ ? "" : `;
3938
+ `)), this.source.merge();
3939
+ },
3940
+ lookupPropertyFunctionVarDeclaration: function() {
3941
+ return `
3942
+ lookupProperty = container.lookupProperty || function(parent, propertyName) {
3943
+ if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
3944
+ return parent[propertyName];
3945
+ }
3946
+ return undefined
3947
+ }
3948
+ `.trim();
3949
+ },
3950
+ // [blockValue]
3951
+ //
3952
+ // On stack, before: hash, inverse, program, value
3953
+ // On stack, after: return value of blockHelperMissing
3954
+ //
3955
+ // The purpose of this opcode is to take a block of the form
3956
+ // `{{#this.foo}}...{{/this.foo}}`, resolve the value of `foo`, and
3957
+ // replace it on the stack with the result of properly
3958
+ // invoking blockHelperMissing.
3959
+ blockValue: function(a) {
3960
+ var n = this.aliasable("container.hooks.blockHelperMissing"), v = [this.contextName(0)];
3961
+ this.setupHelperArgs(a, 0, v);
3962
+ var _ = this.popStack();
3963
+ v.splice(1, 0, _), this.push(this.source.functionCall(n, "call", v));
3964
+ },
3965
+ // [ambiguousBlockValue]
3966
+ //
3967
+ // On stack, before: hash, inverse, program, value
3968
+ // Compiler value, before: lastHelper=value of last found helper, if any
3969
+ // On stack, after, if no lastHelper: same as [blockValue]
3970
+ // On stack, after, if lastHelper: value
3971
+ ambiguousBlockValue: function() {
3972
+ var a = this.aliasable("container.hooks.blockHelperMissing"), n = [this.contextName(0)];
3973
+ this.setupHelperArgs("", 0, n, !0), this.flushInline();
3974
+ var v = this.topStack();
3975
+ n.splice(1, 0, v), this.pushSource(["if (!", this.lastHelper, ") { ", v, " = ", this.source.functionCall(a, "call", n), "}"]);
3976
+ },
3977
+ // [appendContent]
3978
+ //
3979
+ // On stack, before: ...
3980
+ // On stack, after: ...
3981
+ //
3982
+ // Appends the string value of `content` to the current buffer
3983
+ appendContent: function(a) {
3984
+ this.pendingContent ? a = this.pendingContent + a : this.pendingLocation = this.source.currentLocation, this.pendingContent = a;
3985
+ },
3986
+ // [append]
3987
+ //
3988
+ // On stack, before: value, ...
3989
+ // On stack, after: ...
3990
+ //
3991
+ // Coerces `value` to a String and appends it to the current buffer.
3992
+ //
3993
+ // If `value` is truthy, or 0, it is coerced into a string and appended
3994
+ // Otherwise, the empty string is appended
3995
+ append: function() {
3996
+ if (this.isInline())
3997
+ this.replaceStack(function(n) {
3998
+ return [" != null ? ", n, ' : ""'];
3999
+ }), this.pushSource(this.appendToBuffer(this.popStack()));
4000
+ else {
4001
+ var a = this.popStack();
4002
+ this.pushSource(["if (", a, " != null) { ", this.appendToBuffer(a, void 0, !0), " }"]), this.environment.isSimple && this.pushSource(["else { ", this.appendToBuffer("''", void 0, !0), " }"]);
4003
+ }
4004
+ },
4005
+ // [appendEscaped]
4006
+ //
4007
+ // On stack, before: value, ...
4008
+ // On stack, after: ...
4009
+ //
4010
+ // Escape `value` and append it to the buffer
4011
+ appendEscaped: function() {
4012
+ this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"), "(", this.popStack(), ")"]));
4013
+ },
4014
+ // [getContext]
4015
+ //
4016
+ // On stack, before: ...
4017
+ // On stack, after: ...
4018
+ // Compiler value, after: lastContext=depth
4019
+ //
4020
+ // Set the value of the `lastContext` compiler value to the depth
4021
+ getContext: function(a) {
4022
+ this.lastContext = a;
4023
+ },
4024
+ // [pushContext]
4025
+ //
4026
+ // On stack, before: ...
4027
+ // On stack, after: currentContext, ...
4028
+ //
4029
+ // Pushes the value of the current context onto the stack.
4030
+ pushContext: function() {
4031
+ this.pushStackLiteral(this.contextName(this.lastContext));
4032
+ },
4033
+ // [lookupOnContext]
4034
+ //
4035
+ // On stack, before: ...
4036
+ // On stack, after: currentContext[name], ...
4037
+ //
4038
+ // Looks up the value of `name` on the current context and pushes
4039
+ // it onto the stack.
4040
+ lookupOnContext: function(a, n, v, _) {
4041
+ var b = 0;
4042
+ !_ && this.options.compat && !this.lastContext ? this.push(this.depthedLookup(a[b++])) : this.pushContext(), this.resolvePath("context", a, b, n, v);
4043
+ },
4044
+ // [lookupBlockParam]
4045
+ //
4046
+ // On stack, before: ...
4047
+ // On stack, after: blockParam[name], ...
4048
+ //
4049
+ // Looks up the value of `parts` on the given block param and pushes
4050
+ // it onto the stack.
4051
+ lookupBlockParam: function(a, n) {
4052
+ this.useBlockParams = !0, this.push(["blockParams[", a[0], "][", a[1], "]"]), this.resolvePath("context", n, 1);
4053
+ },
4054
+ // [lookupData]
4055
+ //
4056
+ // On stack, before: ...
4057
+ // On stack, after: data, ...
4058
+ //
4059
+ // Push the data lookup operator
4060
+ lookupData: function(a, n, v) {
4061
+ a ? this.pushStackLiteral("container.data(data, " + a + ")") : this.pushStackLiteral("data"), this.resolvePath("data", n, 0, !0, v);
4062
+ },
4063
+ resolvePath: function(a, n, v, _, b) {
4064
+ var y = this;
4065
+ if (this.options.strict || this.options.assumeObjects) {
4066
+ this.push(d(this.options.strict && b, this, n, v, a));
4067
+ return;
4068
+ }
4069
+ for (var E = n.length; v < E; v++)
4070
+ this.replaceStack(function(g) {
4071
+ var S = y.nameLookup(g, n[v], a);
4072
+ return _ ? [" && ", S] : [" != null ? ", S, " : ", g];
4073
+ });
4074
+ },
4075
+ // [resolvePossibleLambda]
4076
+ //
4077
+ // On stack, before: value, ...
4078
+ // On stack, after: resolved value, ...
4079
+ //
4080
+ // If the `value` is a lambda, replace it on the stack by
4081
+ // the return value of the lambda
4082
+ resolvePossibleLambda: function() {
4083
+ this.push([this.aliasable("container.lambda"), "(", this.popStack(), ", ", this.contextName(0), ")"]);
4084
+ },
4085
+ // [pushStringParam]
4086
+ //
4087
+ // On stack, before: ...
4088
+ // On stack, after: string, currentContext, ...
4089
+ //
4090
+ // This opcode is designed for use in string mode, which
4091
+ // provides the string value of a parameter along with its
4092
+ // depth rather than resolving it immediately.
4093
+ pushStringParam: function(a, n) {
4094
+ this.pushContext(), this.pushString(n), n !== "SubExpression" && (typeof a == "string" ? this.pushString(a) : this.pushStackLiteral(a));
4095
+ },
4096
+ emptyHash: function(a) {
4097
+ this.trackIds && this.push("{}"), this.stringParams && (this.push("{}"), this.push("{}")), this.pushStackLiteral(a ? "undefined" : "{}");
4098
+ },
4099
+ pushHash: function() {
4100
+ this.hash && this.hashes.push(this.hash), this.hash = { values: {}, types: [], contexts: [], ids: [] };
4101
+ },
4102
+ popHash: function() {
4103
+ var a = this.hash;
4104
+ this.hash = this.hashes.pop(), this.trackIds && this.push(this.objectLiteral(a.ids)), this.stringParams && (this.push(this.objectLiteral(a.contexts)), this.push(this.objectLiteral(a.types))), this.push(this.objectLiteral(a.values));
4105
+ },
4106
+ // [pushString]
4107
+ //
4108
+ // On stack, before: ...
4109
+ // On stack, after: quotedString(string), ...
4110
+ //
4111
+ // Push a quoted version of `string` onto the stack
4112
+ pushString: function(a) {
4113
+ this.pushStackLiteral(this.quotedString(a));
4114
+ },
4115
+ // [pushLiteral]
4116
+ //
4117
+ // On stack, before: ...
4118
+ // On stack, after: value, ...
4119
+ //
4120
+ // Pushes a value onto the stack. This operation prevents
4121
+ // the compiler from creating a temporary variable to hold
4122
+ // it.
4123
+ pushLiteral: function(a) {
4124
+ this.pushStackLiteral(a);
4125
+ },
4126
+ // [pushProgram]
4127
+ //
4128
+ // On stack, before: ...
4129
+ // On stack, after: program(guid), ...
4130
+ //
4131
+ // Push a program expression onto the stack. This takes
4132
+ // a compile-time guid and converts it into a runtime-accessible
4133
+ // expression.
4134
+ pushProgram: function(a) {
4135
+ a != null ? this.pushStackLiteral(this.programExpression(a)) : this.pushStackLiteral(null);
4136
+ },
4137
+ // [registerDecorator]
4138
+ //
4139
+ // On stack, before: hash, program, params..., ...
4140
+ // On stack, after: ...
4141
+ //
4142
+ // Pops off the decorator's parameters, invokes the decorator,
4143
+ // and inserts the decorator into the decorators list.
4144
+ registerDecorator: function(a, n) {
4145
+ var v = this.nameLookup("decorators", n, "decorator"), _ = this.setupHelperArgs(n, a);
4146
+ this.decorators.push(["fn = ", this.decorators.functionCall(v, "", ["fn", "props", "container", _]), " || fn;"]);
4147
+ },
4148
+ // [invokeHelper]
4149
+ //
4150
+ // On stack, before: hash, inverse, program, params..., ...
4151
+ // On stack, after: result of helper invocation
4152
+ //
4153
+ // Pops off the helper's parameters, invokes the helper,
4154
+ // and pushes the helper's return value onto the stack.
4155
+ //
4156
+ // If the helper is not found, `helperMissing` is called.
4157
+ invokeHelper: function(a, n, v) {
4158
+ var _ = this.popStack(), b = this.setupHelper(a, n), y = [];
4159
+ v && y.push(b.name), y.push(_), this.options.strict || y.push(this.aliasable("container.hooks.helperMissing"));
4160
+ var E = ["(", this.itemsSeparatedBy(y, "||"), ")"], g = this.source.functionCall(E, "call", b.callParams);
4161
+ this.push(g);
4162
+ },
4163
+ itemsSeparatedBy: function(a, n) {
4164
+ var v = [];
4165
+ v.push(a[0]);
4166
+ for (var _ = 1; _ < a.length; _++)
4167
+ v.push(n, a[_]);
4168
+ return v;
4169
+ },
4170
+ // [invokeKnownHelper]
4171
+ //
4172
+ // On stack, before: hash, inverse, program, params..., ...
4173
+ // On stack, after: result of helper invocation
4174
+ //
4175
+ // This operation is used when the helper is known to exist,
4176
+ // so a `helperMissing` fallback is not required.
4177
+ invokeKnownHelper: function(a, n) {
4178
+ var v = this.setupHelper(a, n);
4179
+ this.push(this.source.functionCall(v.name, "call", v.callParams));
4180
+ },
4181
+ // [invokeAmbiguous]
4182
+ //
4183
+ // On stack, before: hash, inverse, program, params..., ...
4184
+ // On stack, after: result of disambiguation
4185
+ //
4186
+ // This operation is used when an expression like `{{foo}}`
4187
+ // is provided, but we don't know at compile-time whether it
4188
+ // is a helper or a path.
4189
+ //
4190
+ // This operation emits more code than the other options,
4191
+ // and can be avoided by passing the `knownHelpers` and
4192
+ // `knownHelpersOnly` flags at compile-time.
4193
+ invokeAmbiguous: function(a, n) {
4194
+ this.useRegister("helper");
4195
+ var v = this.popStack();
4196
+ this.emptyHash();
4197
+ var _ = this.setupHelper(0, a, n), b = this.lastHelper = this.nameLookup("helpers", a, "helper"), y = ["(", "(helper = ", b, " || ", v, ")"];
4198
+ this.options.strict || (y[0] = "(helper = ", y.push(" != null ? helper : ", this.aliasable("container.hooks.helperMissing"))), this.push(["(", y, _.paramsInit ? ["),(", _.paramsInit] : [], "),", "(typeof helper === ", this.aliasable('"function"'), " ? ", this.source.functionCall("helper", "call", _.callParams), " : helper))"]);
4199
+ },
4200
+ // [invokePartial]
4201
+ //
4202
+ // On stack, before: context, ...
4203
+ // On stack after: result of partial invocation
4204
+ //
4205
+ // This operation pops off a context, invokes a partial with that context,
4206
+ // and pushes the result of the invocation back.
4207
+ invokePartial: function(a, n, v) {
4208
+ var _ = [], b = this.setupParams(n, 1, _);
4209
+ a && (n = this.popStack(), delete b.name), v && (b.indent = JSON.stringify(v)), b.helpers = "helpers", b.partials = "partials", b.decorators = "container.decorators", a ? _.unshift(n) : _.unshift(this.nameLookup("partials", n, "partial")), this.options.compat && (b.depths = "depths"), b = this.objectLiteral(b), _.push(b), this.push(this.source.functionCall("container.invokePartial", "", _));
4210
+ },
4211
+ // [assignToHash]
4212
+ //
4213
+ // On stack, before: value, ..., hash, ...
4214
+ // On stack, after: ..., hash, ...
4215
+ //
4216
+ // Pops a value off the stack and assigns it to the current hash
4217
+ assignToHash: function(a) {
4218
+ var n = this.popStack(), v = void 0, _ = void 0, b = void 0;
4219
+ this.trackIds && (b = this.popStack()), this.stringParams && (_ = this.popStack(), v = this.popStack());
4220
+ var y = this.hash;
4221
+ v && (y.contexts[a] = v), _ && (y.types[a] = _), b && (y.ids[a] = b), y.values[a] = n;
4222
+ },
4223
+ pushId: function(a, n, v) {
4224
+ a === "BlockParam" ? this.pushStackLiteral("blockParams[" + n[0] + "].path[" + n[1] + "]" + (v ? " + " + JSON.stringify("." + v) : "")) : a === "PathExpression" ? this.pushString(n) : a === "SubExpression" ? this.pushStackLiteral("true") : this.pushStackLiteral("null");
4225
+ },
4226
+ // HELPERS
4227
+ compiler: s,
4228
+ compileChildren: function(a, n) {
4229
+ for (var v = a.children, _ = void 0, b = void 0, y = 0, E = v.length; y < E; y++) {
4230
+ _ = v[y], b = new this.compiler();
4231
+ var g = this.matchExistingProgram(_);
4232
+ if (g == null) {
4233
+ this.context.programs.push("");
4234
+ var S = this.context.programs.length;
4235
+ _.index = S, _.name = "program" + S, this.context.programs[S] = b.compile(_, n, this.context, !this.precompile), this.context.decorators[S] = b.decorators, this.context.environments[S] = _, this.useDepths = this.useDepths || b.useDepths, this.useBlockParams = this.useBlockParams || b.useBlockParams, _.useDepths = this.useDepths, _.useBlockParams = this.useBlockParams;
4236
+ } else
4237
+ _.index = g.index, _.name = "program" + g.index, this.useDepths = this.useDepths || g.useDepths, this.useBlockParams = this.useBlockParams || g.useBlockParams;
4238
+ }
4239
+ },
4240
+ matchExistingProgram: function(a) {
4241
+ for (var n = 0, v = this.context.environments.length; n < v; n++) {
4242
+ var _ = this.context.environments[n];
4243
+ if (_ && _.equals(a))
4244
+ return _;
4245
+ }
4246
+ },
4247
+ programExpression: function(a) {
4248
+ var n = this.environment.children[a], v = [n.index, "data", n.blockParams];
4249
+ return (this.useBlockParams || this.useDepths) && v.push("blockParams"), this.useDepths && v.push("depths"), "container.program(" + v.join(", ") + ")";
4250
+ },
4251
+ useRegister: function(a) {
4252
+ this.registers[a] || (this.registers[a] = !0, this.registers.list.push(a));
4253
+ },
4254
+ push: function(a) {
4255
+ return a instanceof u || (a = this.source.wrap(a)), this.inlineStack.push(a), a;
4256
+ },
4257
+ pushStackLiteral: function(a) {
4258
+ this.push(new u(a));
4259
+ },
4260
+ pushSource: function(a) {
4261
+ this.pendingContent && (this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent), this.pendingLocation)), this.pendingContent = void 0), a && this.source.push(a);
4262
+ },
4263
+ replaceStack: function(a) {
4264
+ var n = ["("], v = void 0, _ = void 0, b = void 0;
4265
+ if (!this.isInline())
4266
+ throw new f.default("replaceStack on non-inline");
4267
+ var y = this.popStack(!0);
4268
+ if (y instanceof u)
4269
+ v = [y.value], n = ["(", v], b = !0;
4270
+ else {
4271
+ _ = !0;
4272
+ var E = this.incrStack();
4273
+ n = ["((", this.push(E), " = ", y, ")"], v = this.topStack();
4274
+ }
4275
+ var g = a.call(this, v);
4276
+ b || this.popStack(), _ && this.stackSlot--, this.push(n.concat(g, ")"));
4277
+ },
4278
+ incrStack: function() {
4279
+ return this.stackSlot++, this.stackSlot > this.stackVars.length && this.stackVars.push("stack" + this.stackSlot), this.topStackName();
4280
+ },
4281
+ topStackName: function() {
4282
+ return "stack" + this.stackSlot;
4283
+ },
4284
+ flushInline: function() {
4285
+ var a = this.inlineStack;
4286
+ this.inlineStack = [];
4287
+ for (var n = 0, v = a.length; n < v; n++) {
4288
+ var _ = a[n];
4289
+ if (_ instanceof u)
4290
+ this.compileStack.push(_);
4291
+ else {
4292
+ var b = this.incrStack();
4293
+ this.pushSource([b, " = ", _, ";"]), this.compileStack.push(b);
4294
+ }
4295
+ }
4296
+ },
4297
+ isInline: function() {
4298
+ return this.inlineStack.length;
4299
+ },
4300
+ popStack: function(a) {
4301
+ var n = this.isInline(), v = (n ? this.inlineStack : this.compileStack).pop();
4302
+ if (!a && v instanceof u)
4303
+ return v.value;
4304
+ if (!n) {
4305
+ if (!this.stackSlot)
4306
+ throw new f.default("Invalid stack pop");
4307
+ this.stackSlot--;
4308
+ }
4309
+ return v;
4310
+ },
4311
+ topStack: function() {
4312
+ var a = this.isInline() ? this.inlineStack : this.compileStack, n = a[a.length - 1];
4313
+ return n instanceof u ? n.value : n;
4314
+ },
4315
+ contextName: function(a) {
4316
+ return this.useDepths && a ? "depths[" + a + "]" : "depth" + a;
4317
+ },
4318
+ quotedString: function(a) {
4319
+ return this.source.quotedString(a);
4320
+ },
4321
+ objectLiteral: function(a) {
4322
+ return this.source.objectLiteral(a);
4323
+ },
4324
+ aliasable: function(a) {
4325
+ var n = this.aliases[a];
4326
+ return n ? (n.referenceCount++, n) : (n = this.aliases[a] = this.source.wrap(a), n.aliasable = !0, n.referenceCount = 1, n);
4327
+ },
4328
+ setupHelper: function(a, n, v) {
4329
+ var _ = [], b = this.setupHelperArgs(n, a, _, v), y = this.nameLookup("helpers", n, "helper"), E = this.aliasable(this.contextName(0) + " != null ? " + this.contextName(0) + " : (container.nullContext || {})");
4330
+ return {
4331
+ params: _,
4332
+ paramsInit: b,
4333
+ name: y,
4334
+ callParams: [E].concat(_)
4335
+ };
4336
+ },
4337
+ setupParams: function(a, n, v) {
4338
+ var _ = {}, b = [], y = [], E = [], g = !v, S = void 0;
4339
+ g && (v = []), _.name = this.quotedString(a), _.hash = this.popStack(), this.trackIds && (_.hashIds = this.popStack()), this.stringParams && (_.hashTypes = this.popStack(), _.hashContexts = this.popStack());
4340
+ var A = this.popStack(), k = this.popStack();
4341
+ (k || A) && (_.fn = k || "container.noop", _.inverse = A || "container.noop");
4342
+ for (var x = n; x--; )
4343
+ S = this.popStack(), v[x] = S, this.trackIds && (E[x] = this.popStack()), this.stringParams && (y[x] = this.popStack(), b[x] = this.popStack());
4344
+ return g && (_.args = this.source.generateArray(v)), this.trackIds && (_.ids = this.source.generateArray(E)), this.stringParams && (_.types = this.source.generateArray(y), _.contexts = this.source.generateArray(b)), this.options.data && (_.data = "data"), this.useBlockParams && (_.blockParams = "blockParams"), _;
4345
+ },
4346
+ setupHelperArgs: function(a, n, v, _) {
4347
+ var b = this.setupParams(a, n, v);
4348
+ return b.loc = JSON.stringify(this.source.currentLocation), b = this.objectLiteral(b), _ ? (this.useRegister("options"), v.push("options"), ["options=", b]) : v ? (v.push(b), "") : b;
4349
+ }
4350
+ }, function() {
4351
+ for (var r = "break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "), a = s.RESERVED_WORDS = {}, n = 0, v = r.length; n < v; n++)
4352
+ a[r[n]] = !0;
4353
+ }(), s.isValidJavaScriptVariableName = function(r) {
4354
+ return !s.RESERVED_WORDS[r] && /^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(r);
4355
+ };
4356
+ function d(r, a, n, v, _) {
4357
+ var b = a.popStack(), y = n.length;
4358
+ for (r && y--; v < y; v++)
4359
+ b = a.nameLookup(b, n[v], _);
4360
+ return r ? [a.aliasable("container.strict"), "(", b, ", ", a.quotedString(n[v]), ", ", JSON.stringify(a.source.currentLocation), " )"] : b;
4361
+ }
4362
+ e.default = s, t.exports = e.default;
4363
+ })(nr, nr.exports);
4364
+ var Ss = nr.exports;
4365
+ (function(t, e) {
4366
+ e.__esModule = !0;
4367
+ function i(y) {
4368
+ return y && y.__esModule ? y : { default: y };
4369
+ }
4370
+ var c = Ho, h = i(c), f = bn, p = i(f), l = De, o = Be, u = Ss, s = i(u), d = En, r = i(d), a = Sn, n = i(a), v = h.default.create;
4371
+ function _() {
4372
+ var y = v();
4373
+ return y.compile = function(E, g) {
4374
+ return o.compile(E, g, y);
4375
+ }, y.precompile = function(E, g) {
4376
+ return o.precompile(E, g, y);
4377
+ }, y.AST = p.default, y.Compiler = o.Compiler, y.JavaScriptCompiler = s.default, y.Parser = l.parser, y.parse = l.parse, y.parseWithoutProcessing = l.parseWithoutProcessing, y;
4378
+ }
4379
+ var b = _();
4380
+ b.create = _, n.default(b), b.Visitor = r.default, b.default = b, e.default = b, t.exports = e.default;
4381
+ })(It, It.exports);
4382
+ var bs = It.exports;
4383
+ const or = /* @__PURE__ */ zn(bs);
4384
+ or.registerHelper("costOrNA", (t) => t || "N/A");
4385
+ function un(t) {
4386
+ switch (t) {
4387
+ case "CANCEL":
4388
+ return "#FF0000";
4389
+ case "COMPLETE":
4390
+ return "#00D065";
4391
+ default:
4392
+ return "#7A7A7A";
4393
+ }
4394
+ }
4395
+ function Os(t, e) {
4396
+ const i = t.map((h) => {
4397
+ var f;
4398
+ try {
4399
+ let p, l;
4400
+ if ((f = h.config) != null && f.templateHtml) {
4401
+ p = h.config.templateHtml;
4402
+ const s = h.config.configFields || [];
4403
+ l = Br(s);
4404
+ } else {
4405
+ const s = sr[h.tag];
4406
+ if (!s) return "";
4407
+ p = s.template;
4408
+ const d = s.initialConfigFields();
4409
+ l = { ...Br(d), ...h.config || {} };
4410
+ }
4411
+ if (h.tag === "customText" && l.content)
4412
+ try {
4413
+ const d = or.compile(l.content)({
4414
+ ...e,
4415
+ statusColor: un(e.status)
4416
+ });
4417
+ l.content = d;
4418
+ } catch {
4419
+ }
4420
+ const u = or.compile(p)({
4421
+ ...e,
4422
+ config: l,
4423
+ statusColor: un(e.status),
4424
+ title: e.title ?? "Inventory Order"
4425
+ });
4426
+ return je(`<div data-block-id="${h.id}">${u}</div>`);
4427
+ } catch {
4428
+ return je(
4429
+ `<div data-block-id="${h.id}" style="color:#d32f2f; border:2px solid #d32f2f; padding:12px; margin:8px 0; border-radius:4px; font-family:sans-serif; font-size:14px;">Template error in block &quot;${h.tag}&quot;. Please recreate this template.</div>`
4430
+ );
4431
+ }
4432
+ });
4433
+ return `
4434
+ <div style="max-width:800px; margin:auto; padding:30px; font-size:16px; line-height:1.5; font-family:'Helvetica Neue','Helvetica',Helvetica,Arial,sans-serif; color:#555;">
4435
+ ${je(i.join(`
4436
+ `))}
4437
+ </div>
4438
+ <style>
4439
+ [data-block-id] {
4440
+ transition: outline 0.2s, background 0.2s;
4441
+ outline: 2px solid transparent;
4442
+ outline-offset: 2px;
4443
+ }
4444
+ [data-block-id].highlight {
4445
+ outline: 2px solid #1976d2;
4446
+ background: rgba(25, 118, 210, 0.04);
4447
+ border-radius: 4px;
4448
+ }
4449
+ @media print {
4450
+ [data-block-id].highlight {
4451
+ outline: none;
4452
+ background: none;
4453
+ }
4454
+ }
4455
+ </style>`;
4456
+ }
4457
+ const Ms = Vn("printTemplate", () => {
4458
+ const t = mt([]), e = mt(!1), i = mt(!1), c = Kn(() => {
4459
+ const l = {};
4460
+ for (const o of t.value)
4461
+ l[o.type] = o;
4462
+ return l;
4463
+ });
4464
+ async function h() {
4465
+ if (!e.value) {
4466
+ e.value = !0;
4467
+ try {
4468
+ const l = Jn();
4469
+ t.value = await l.browse(), i.value = !0;
4470
+ } catch {
4471
+ t.value = [];
4472
+ } finally {
4473
+ e.value = !1;
4474
+ }
4475
+ }
4476
+ }
4477
+ function f(l) {
4478
+ return c.value[l];
4479
+ }
4480
+ function p() {
4481
+ i.value = !1, t.value = [];
4482
+ }
4483
+ return {
4484
+ templates: t,
4485
+ loading: e,
4486
+ fetched: i,
4487
+ templateByType: c,
4488
+ fetchTemplates: h,
4489
+ getTemplateByType: f,
4490
+ invalidate: p
4491
+ };
4492
+ }), Es = {
4493
+ purchaseOrder: [
4494
+ {
4495
+ id: "standard-po",
4496
+ name: "Standard Purchase Order",
4497
+ description: "Default layout with header, supplier/buyer info, items table, remark, and delivery history.",
4498
+ blocks: Ke()
4499
+ }
4500
+ ],
4501
+ transferOrder: [
4502
+ {
4503
+ id: "standard-to",
4504
+ name: "Standard Transfer Order",
4505
+ description: "Default layout with header, supplier/buyer info, items table, remark, and delivery history.",
4506
+ blocks: Ke()
4507
+ }
4508
+ ],
4509
+ goodsReceivedNote: [
4510
+ {
4511
+ id: "standard-grn",
4512
+ name: "Standard Goods Received Note",
4513
+ description: "Default layout with header, supplier/buyer info, items table, remark, and delivery history.",
4514
+ blocks: Ke()
4515
+ }
4516
+ ],
4517
+ deliveryOrder: [
4518
+ {
4519
+ id: "standard-do",
4520
+ name: "Standard Delivery Order",
4521
+ description: "Default layout with header, supplier/buyer info, items table, remark, and delivery history.",
4522
+ blocks: Ke()
4523
+ }
4524
+ ]
4525
+ };
4526
+ function Ns(t) {
4527
+ return Es[t][0];
4528
+ }
4529
+ export {
4530
+ sr as B,
4531
+ Ke as a,
4532
+ xs as b,
4533
+ pe as c,
4534
+ Qn as d,
4535
+ Ts as e,
4536
+ Ms as f,
4537
+ Ps as g,
4538
+ Ns as h,
4539
+ Os as r,
4540
+ je as s,
4541
+ Jn as u
4542
+ };