@tano.page/workbench 0.14.0 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (248) hide show
  1. package/package.json +50 -16
  2. package/src/App.vue +82 -752
  3. package/src/appearance/appearance.ts +14 -4
  4. package/src/appearance/components/ThemePresetPreview.vue +52 -8
  5. package/src/appearance/interface-font.ts +99 -0
  6. package/src/appearance/theme.ts +26 -10
  7. package/src/appearance/use-interface-font.ts +30 -0
  8. package/src/assets/mail-provider-icons/NOTICE.txt +27 -0
  9. package/src/assets/mail-provider-icons/aliyun-mail.svg +3 -0
  10. package/src/assets/mail-provider-icons/gmail.svg +1 -0
  11. package/src/assets/mail-provider-icons/icloud.svg +12 -0
  12. package/src/assets/mail-provider-icons/netease-126.svg +5 -0
  13. package/src/assets/mail-provider-icons/netease-163.svg +5 -0
  14. package/src/assets/mail-provider-icons/qq.svg +9 -0
  15. package/src/assets/mail-provider-icons/tencent-exmail.svg +4 -0
  16. package/src/assistant/agent-identities.ts +1 -97
  17. package/src/assistant/agent-task-context.ts +1 -54
  18. package/src/assistant/attachments.ts +1 -1
  19. package/src/assistant/completion.ts +1 -61
  20. package/src/assistant/components/AssistantChangeList.vue +98 -21
  21. package/src/assistant/components/AssistantPanel.vue +425 -8
  22. package/src/assistant/components/PluginToolProposalCard.vue +235 -0
  23. package/src/assistant/connection-actions.ts +237 -0
  24. package/src/assistant/document-mentions.ts +1 -33
  25. package/src/assistant/engine.ts +1 -532
  26. package/src/assistant/execution.ts +6 -33
  27. package/src/assistant/files.ts +5 -13
  28. package/src/assistant/hash.ts +1 -4
  29. package/src/assistant/inbox.ts +1 -148
  30. package/src/assistant/language.ts +10 -37
  31. package/src/assistant/mention-autocomplete.ts +69 -0
  32. package/src/assistant/plugin-bridge-builder.ts +146 -0
  33. package/src/assistant/prompts.ts +1 -58
  34. package/src/assistant/proposal-actions.ts +336 -0
  35. package/src/assistant/results.ts +20 -86
  36. package/src/assistant/store.ts +167 -327
  37. package/src/assistant/structures.ts +1 -155
  38. package/src/assistant/tasks.ts +8 -96
  39. package/src/assistant/tool-rules.ts +1 -7
  40. package/src/assistant/workspace-bridge.ts +1 -1
  41. package/src/composables/use-document-actions.ts +38 -20
  42. package/src/composables/use-file-tree-controller.ts +7 -12
  43. package/src/composables/use-workbench-help.ts +177 -0
  44. package/src/composables/use-workbench-history.ts +2 -4
  45. package/src/composables/use-workbench-lifecycle.ts +249 -0
  46. package/src/composables/use-workbench-modals.ts +6 -1
  47. package/src/composables/use-workbench-outline.ts +0 -5
  48. package/src/composables/use-workbench-settings.ts +185 -0
  49. package/src/composables/use-workbench-shortcuts.ts +40 -1021
  50. package/src/composables/use-workbench-views.ts +325 -0
  51. package/src/data-tables/data-tables.ts +1 -2
  52. package/src/documents/components/DocumentActionMenu.vue +279 -0
  53. package/src/documents/components/DocumentHistoryPanel.vue +3 -1
  54. package/src/documents/components/DocumentInspector.vue +168 -0
  55. package/src/documents/components/DocumentPane.vue +482 -0
  56. package/src/documents/description-merge.ts +1 -9
  57. package/src/features.ts +1 -0
  58. package/src/files/components/FileMetadataPanel.vue +49 -15
  59. package/src/fonts/Inter-Latin-Italic.woff2 +0 -0
  60. package/src/fonts/Inter-Latin.woff2 +0 -0
  61. package/src/fonts/TanoUISansSC-Bold.woff2 +0 -0
  62. package/src/fonts/TanoUISansSC-Medium.woff2 +0 -0
  63. package/src/fonts/TanoUISansSC-Regular.woff2 +0 -0
  64. package/src/help/help-milestones.ts +3 -5
  65. package/src/i18n/locale-catalogs.ts +7 -6
  66. package/src/i18n/locale-registry.ts +8 -6
  67. package/src/i18n/locales/de-DE.json +371 -3
  68. package/src/i18n/locales/en-US.json +371 -2
  69. package/src/i18n/locales/es-ES.json +371 -3
  70. package/src/i18n/locales/ja-JP.json +370 -2
  71. package/src/i18n/locales/zh-TW.json +370 -2
  72. package/src/mail/components/MailAccountDialog.vue +450 -0
  73. package/src/mail/components/MailComposerDialog.vue +326 -0
  74. package/src/mail/components/MailProviderIcon.vue +30 -0
  75. package/src/mail/components/MailWorkspaceView.vue +821 -0
  76. package/src/mail/components/SidebarMail.vue +134 -0
  77. package/src/mail/mail-avatar.ts +17 -0
  78. package/src/mail/mail-bridge.ts +68 -0
  79. package/src/mail/mail-calendar.ts +208 -0
  80. package/src/mail/mail-markdown.ts +195 -0
  81. package/src/mail/types.ts +226 -0
  82. package/src/objects/components/ObjectDetailModal.vue +1001 -0
  83. package/src/objects/content-references.ts +6 -56
  84. package/src/objects/wiki-links.ts +1 -48
  85. package/src/objects/workspace-objects.ts +3 -4
  86. package/src/plan-sync/types.ts +6 -3
  87. package/src/plans/calendar-interaction.ts +194 -0
  88. package/src/plans/calendar.ts +65 -9
  89. package/src/plans/components/CalendarAgendaView.vue +165 -0
  90. package/src/plans/components/CalendarDayPopover.vue +172 -39
  91. package/src/plans/components/CalendarFilterBar.vue +128 -0
  92. package/src/plans/components/CalendarMonthView.vue +224 -0
  93. package/src/plans/components/CalendarQuickCreateDialog.vue +269 -0
  94. package/src/plans/components/CalendarTimelineView.vue +517 -0
  95. package/src/plans/components/CalendarTopbarControls.vue +101 -0
  96. package/src/plans/components/CalendarView.vue +264 -748
  97. package/src/plans/components/CalendarYearView.vue +138 -0
  98. package/src/plans/components/PlanArchiveDialog.vue +295 -0
  99. package/src/plans/components/PlanConnectionsDialog.vue +1 -1
  100. package/src/plans/components/PlanDateField.vue +6 -4
  101. package/src/plans/components/PlanDetailPanel.vue +227 -32
  102. package/src/plans/components/PlanEventList.vue +16 -4
  103. package/src/plans/components/SidebarPlan.vue +22 -15
  104. package/src/plans/components/TaskRepeatControls.vue +169 -30
  105. package/src/plans/components/calendar-shared.css +192 -0
  106. package/src/plans/composables/use-calendar-interactions.ts +396 -0
  107. package/src/plans/composables/use-calendar-scroll.ts +420 -0
  108. package/src/plans/local-reminders.ts +149 -0
  109. package/src/plans/personal-plans.ts +10 -1
  110. package/src/plans/plan-date.ts +8 -1
  111. package/src/plans/plan-migration.ts +95 -0
  112. package/src/plans/recurrence.ts +95 -0
  113. package/src/plans/task-repeat.ts +8 -8
  114. package/src/plans/timeline-layout.ts +92 -0
  115. package/src/plugins/assistant-bridge.ts +520 -0
  116. package/src/plugins/attachment-reader.ts +3 -1
  117. package/src/plugins/cache-storage.ts +42 -2
  118. package/src/plugins/components/PluginAutomations.vue +3 -3
  119. package/src/plugins/components/PluginCatalogBrowser.vue +17 -8
  120. package/src/plugins/components/PluginChangeSummary.vue +16 -3
  121. package/src/plugins/components/PluginConnections.vue +1 -1
  122. package/src/plugins/components/PluginCustomView.vue +2 -2
  123. package/src/plugins/components/PluginDetailPage.vue +136 -57
  124. package/src/plugins/components/PluginDeveloperArea.vue +192 -0
  125. package/src/plugins/components/PluginDocumentSlot.vue +63 -0
  126. package/src/plugins/components/PluginExplorer.vue +21 -25
  127. package/src/plugins/components/PluginImportDialog.vue +410 -0
  128. package/src/plugins/components/PluginInstaller.vue +273 -288
  129. package/src/plugins/components/PluginListItem.vue +3 -0
  130. package/src/plugins/components/PluginMaintenance.vue +37 -34
  131. package/src/plugins/components/PluginRepositoryStorage.vue +4 -2
  132. package/src/plugins/components/PluginRuntimePanel.vue +3 -3
  133. package/src/plugins/components/PluginSettingsForm.vue +112 -0
  134. package/src/plugins/components/PluginStatusBar.vue +161 -0
  135. package/src/plugins/components/PluginSurface.vue +18 -6
  136. package/src/plugins/components/PluginUiDialog.vue +452 -0
  137. package/src/plugins/components/PluginsTabPage.vue +61 -0
  138. package/src/plugins/components/plugin-center.css +5 -0
  139. package/src/plugins/data.ts +9 -86
  140. package/src/plugins/editor-plugin-adapters.ts +169 -0
  141. package/src/plugins/excalidraw/bundle.tano-plugin.json +1 -1
  142. package/src/plugins/excalidraw/manifest.json +12 -1
  143. package/src/plugins/host.ts +662 -43
  144. package/src/plugins/native.ts +2 -10
  145. package/src/plugins/overlay-mapping.ts +125 -0
  146. package/src/plugins/packages.ts +73 -1
  147. package/src/plugins/plugin-data.ts +2 -3
  148. package/src/plugins/plugin-permissions.ts +57 -0
  149. package/src/plugins/plugin-rpc-router.ts +558 -0
  150. package/src/plugins/plugin-sdk.ts +1 -94
  151. package/src/plugins/plugin-ui-dialogs.ts +167 -0
  152. package/src/plugins/policy.ts +53 -3
  153. package/src/plugins/presentation-preview/bundle.tano-plugin.json +1 -1
  154. package/src/plugins/presentation-preview/manifest.json +2 -1
  155. package/src/plugins/queries.ts +1 -73
  156. package/src/plugins/sandbox.ts +15 -1
  157. package/src/plugins/use-plugin-actions.ts +67 -20
  158. package/src/plugins/user-plugins.ts +254 -0
  159. package/src/plugins/view-header.ts +2 -7
  160. package/src/plugins/word-preview/bundle.tano-plugin.json +1 -1
  161. package/src/plugins/word-preview/manifest.json +13 -1
  162. package/src/plugins/workbench.ts +175 -2
  163. package/src/plugins/worker.js +105 -8
  164. package/src/plugins/workspace-plugin-runtime.ts +23 -7
  165. package/src/plugins/workspace-plugins.ts +212 -21
  166. package/src/runtime.ts +103 -4
  167. package/src/settings/components/SettingsAppearancePage.vue +46 -0
  168. package/src/settings/components/SettingsDocumentsPage.vue +0 -1
  169. package/src/settings/components/SettingsPanel.vue +8 -3
  170. package/src/settings/components/WorkbenchSettings.vue +20 -7
  171. package/src/settings/components/settings-context.ts +1 -1
  172. package/src/settings/components/settings-search.ts +2 -3
  173. package/src/settings/settings-tab.ts +1 -0
  174. package/src/shell/command-palette.ts +3 -3
  175. package/src/shell/components/EditorToolbar.vue +8 -9
  176. package/src/shell/components/EditorTools.vue +1 -5
  177. package/src/shell/components/PaneTopbar.vue +393 -0
  178. package/src/shell/components/SelectionToolbar.vue +0 -2
  179. package/src/shell/components/SidebarNavigation.vue +22 -2
  180. package/src/shell/components/WorkbenchContextMenus.vue +58 -34
  181. package/src/shell/components/WorkbenchModals.vue +47 -62
  182. package/src/shell/components/WorkbenchPanes.vue +371 -1342
  183. package/src/shell/components/WorkbenchSidebar.vue +486 -0
  184. package/src/shell/components/WorkspaceBreadcrumb.vue +6 -14
  185. package/src/shell/components/WorkspaceViewSwitcher.vue +12 -7
  186. package/src/shell/pane-registry.ts +69 -0
  187. package/src/shell/use-surface-dismissal.ts +219 -0
  188. package/src/shell/use-workbench-commands.ts +599 -0
  189. package/src/shell/use-workbench-keybindings.ts +337 -0
  190. package/src/shell/use-workbench.ts +531 -1153
  191. package/src/shell/workbench-async-components.ts +14 -5
  192. package/src/shell/workbench-context.ts +30 -3
  193. package/src/stores/mail.ts +414 -0
  194. package/src/stores/plan-sync.ts +2 -1
  195. package/src/stores/plans.ts +2 -9
  196. package/src/stores/workspace-document-io.ts +807 -0
  197. package/src/stores/workspace-file-ops.ts +1 -1
  198. package/src/stores/workspace-knowledge.ts +2 -114
  199. package/src/stores/workspace-lifecycle.ts +459 -0
  200. package/src/stores/workspace-plugins-state.ts +254 -259
  201. package/src/stores/workspace-session.ts +287 -0
  202. package/src/stores/workspace-tabs-layout.ts +6 -44
  203. package/src/stores/workspace-types.ts +50 -0
  204. package/src/stores/workspace.ts +184 -1363
  205. package/src/styles/agent-diff-modals.css +0 -7
  206. package/src/styles/dark-theme.css +3 -3
  207. package/src/styles/inspector.css +0 -59
  208. package/src/styles/layout-themes.css +346 -0
  209. package/src/styles/mail.css +1568 -0
  210. package/src/styles/mobile.css +2 -2
  211. package/src/styles/recent-and-media.css +0 -17
  212. package/src/styles/theme-contract.css +3 -3
  213. package/src/styles/workbench-shell.css +110 -17
  214. package/src/styles/workspace-states.css +9 -33
  215. package/src/styles.css +0 -1
  216. package/src/tabs/components/DesktopTabs.vue +19 -14
  217. package/src/tabs/components/NewTabPicker.vue +10 -4
  218. package/src/tabs/tab-label.ts +0 -1
  219. package/src/windows/AuxiliaryWindows.vue +2 -2
  220. package/src/windows/use-window-event-bridge.ts +152 -0
  221. package/src/workspace/components/TemplateLibrary.vue +1 -1
  222. package/src/workspace/components/WorkspaceGeneralSettings.vue +0 -13
  223. package/src/workspace/components/WorkspaceIconPicker.vue +30 -7
  224. package/src/workspace/components/WorkspacePickerMenu.vue +317 -0
  225. package/src/workspace/workspace-comments.ts +11 -151
  226. package/src/workspace/workspace-welcome.ts +1 -1
  227. package/src/assistant/locales/de-DE.json +0 -126
  228. package/src/assistant/locales/en-US.json +0 -126
  229. package/src/assistant/locales/es-ES.json +0 -126
  230. package/src/assistant/locales/ja-JP.json +0 -126
  231. package/src/assistant/locales/zh-CN.json +0 -126
  232. package/src/assistant/locales/zh-TW.json +0 -126
  233. package/src/assistant/task-prompts.json +0 -39
  234. package/src/documents/components/FormulaMenu.vue +0 -50
  235. package/src/files/components/FileDatabasePage.vue +0 -152
  236. package/src/files/components/FolderHomeIcon.vue +0 -12
  237. package/src/objects/components/ObjectDatabasePage.vue +0 -100
  238. package/src/objects/components/ObjectPanel.vue +0 -554
  239. package/src/plans/components/PersonalPlanDialog.vue +0 -105
  240. package/src/shell/components/WorkspaceViewPage.vue +0 -127
  241. package/src/shell/components/WorkspaceViewTab.vue +0 -24
  242. package/src/styles/object-panel.css +0 -163
  243. package/src/workspace/components/GitInspectionPanel.vue +0 -35
  244. package/src/workspace/components/WorkspaceSyncPanel.vue +0 -50
  245. package/src/workspace/welcome-slogans.ts +0 -11
  246. package/src/workspace/workspace-git.ts +0 -35
  247. package/src/workspace/workspace-sync.ts +0 -46
  248. package/src/workspace/workspace-views.ts +0 -48
@@ -1 +1 @@
1
- {"manifest":{"apiVersion":1,"commands":[{"id":"open","label":"演示文稿:打开预览"}],"description":"离线预览 PPT/PPTX,按原始尺寸渲染文字、图片、图形、主题和母版,无需安装 Office。","id":"presentation-preview","manifestVersion":2,"name":"演示文稿预览","nativeCommands":[],"networkOrigins":[],"objectTypes":[],"permissions":["attachments.read","ui"],"relationTypes":[],"version":"1.0.0","views":[{"id":"slides","label":"演示文稿预览","location":"tab"}]},"packageVersion":1,"source":"\"use strict\";\nvar TanoPlugin = (() => {\n var __defProp = Object.defineProperty;\n var __getOwnPropDesc = Object.getOwnPropertyDescriptor;\n var __getOwnPropNames = Object.getOwnPropertyNames;\n var __hasOwnProp = Object.prototype.hasOwnProperty;\n var __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n };\n var __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n };\n var __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n // examples/plugins/presentation-preview/main.ts\n var main_exports = {};\n __export(main_exports, {\n default: () => activate\n });\n async function activate(tano) {\n let generation = 0;\n let current;\n let imported;\n let acknowledgment;\n const header = (title = \"\\u6F14\\u793A\\u6587\\u7A3F\\u9884\\u89C8\", page = 0, count = 0) => tano.views.setHeader(\"slides\", {\n ...count ? { previewInfo: { label: \"\\u9759\\u6001\\u9884\\u89C8\", detail: \"\\u4E0D\\u64AD\\u653E\\u52A8\\u753B\\u548C\\u89C6\\u9891\\uFF1B\\u7F3A\\u5C11\\u5B57\\u4F53\\u6216\\u4E0D\\u652F\\u6301\\u7684\\u5BF9\\u8C61\\u53EF\\u80FD\\u4E0E\\u539F\\u7A3F\\u4E0D\\u540C\\u3002\" } } : {},\n title,\n status: count ? `${page} / ${count}` : \"\",\n statusAfter: \"previous\",\n actions: [\n { id: \"open\", label: \"\\u6253\\u5F00 PPT/PPTX\", icon: \"open\", accept: \".ppt,.pptx\", group: \"\\u6587\\u4EF6\" },\n { id: \"previous\", label: \"\\u4E0A\\u4E00\\u9875\", icon: \"previous\", disabled: page <= 1 },\n { id: \"next\", label: \"\\u4E0B\\u4E00\\u9875\", icon: \"next\", disabled: !count || page >= count },\n { id: \"minus\", label: \"\\u7F29\\u5C0F\", icon: \"minus\", disabled: !count, group: \"\\u9884\\u89C8\\u7F29\\u653E\" },\n { id: \"fit\", label: \"\\u9002\\u5E94\\u5BBD\\u5EA6\", icon: \"fit\", disabled: !count, group: \"\\u9884\\u89C8\\u7F29\\u653E\" },\n { id: \"plus\", label: \"\\u653E\\u5927\", icon: \"plus\", disabled: !count, group: \"\\u9884\\u89C8\\u7F29\\u653E\" },\n { id: \"license\", label: \"\\u5F00\\u6E90\\u8BB8\\u53EF\", icon: \"info\", group: \"\\u8BF4\\u660E\" }\n ]\n });\n await header();\n await tano.views.renderCustom(\"slides\", { idle: true });\n tano.views.onMessage(\"slides\", async (message) => {\n if (!message || typeof message !== \"object\" || Array.isArray(message)) return;\n if (message.type === \"header\") {\n if (message.token !== generation) return;\n await header(String(message.title).slice(0, 200), Number(message.page), Number(message.count));\n return;\n }\n if (message.type === \"received\") {\n if (acknowledgment?.token === message.token && acknowledgment.offset === message.offset) acknowledgment.resolve();\n return;\n }\n if (message.type === \"header-action\") {\n await tano.views.renderCustom(\"slides\", { action: message.action, nonce: Date.now() });\n return;\n }\n if (message.type === \"header-file-start\" && message.action === \"open\" && typeof message.transferId === \"string\") {\n current = void 0;\n imported = { id: message.transferId, token: ++generation, offset: 0 };\n await header(String(message.name).slice(0, 200));\n await tano.views.renderCustom(\"slides\", { loading: true, token: imported.token });\n return;\n }\n if (message.type === \"header-file-error\" && imported?.id === message.transferId) {\n await tano.views.renderCustom(\"slides\", { error: String(message.error), token: imported.token });\n imported = void 0;\n return;\n }\n if (message.type === \"header-file\") {\n if (message.action !== \"open\" || typeof message.chunk !== \"string\" || typeof message.transferId !== \"string\" || typeof message.offset !== \"number\") return;\n if (message.offset === 0 && imported?.id !== message.transferId) {\n current = void 0;\n imported = { id: message.transferId, token: ++generation, offset: 0 };\n }\n const active2 = imported;\n if (!active2 || active2.id !== message.transferId || active2.offset !== message.offset) return;\n const length = atob(message.chunk).length;\n await new Promise((resolve, reject) => {\n const timer = setTimeout(() => {\n acknowledgment = void 0;\n reject(new Error(\"\\u6587\\u4EF6\\u4F20\\u8F93\\u8D85\\u65F6\"));\n }, 1e4);\n acknowledgment = { token: active2.token, offset: active2.offset + length, resolve: () => {\n clearTimeout(timer);\n acknowledgment = void 0;\n resolve();\n } };\n void tano.views.renderCustom(\"slides\", { ...message, path: message.name, token: active2.token, imported: true }).catch((error) => {\n clearTimeout(timer);\n acknowledgment = void 0;\n reject(error);\n });\n });\n active2.offset += length;\n return;\n }\n if (!current || message.token !== current.token) return;\n const active = current;\n try {\n const chunk = await tano.attachments.read(active.fileId, Number(message.offset), active.revision);\n if (current === active) await tano.views.renderCustom(\"slides\", { ...chunk, token: active.token });\n } catch (error) {\n if (current === active) await tano.views.renderCustom(\"slides\", { error: String(error), token: active.token });\n }\n });\n await tano.commands.register(\"open\", async (context) => {\n const token = ++generation;\n current = void 0;\n imported = void 0;\n await header();\n await tano.views.renderCustom(\"slides\", context?.fileId ? { loading: true, token } : { idle: true, token });\n if (!context?.viewAlreadyOpen) await tano.views.open(\"slides\");\n if (!context?.fileId) return;\n try {\n const chunk = await tano.attachments.read(context.fileId);\n if (token !== generation) return;\n if (!/\\.pptx?$/i.test(chunk.path)) throw new Error(\"\\u8BF7\\u9009\\u62E9 PPT \\u6216 PPTX \\u6587\\u4EF6\");\n current = { fileId: context.fileId, revision: chunk.revision, token };\n await tano.views.renderCustom(\"slides\", { ...chunk, token });\n } catch (error) {\n if (token === generation) await tano.views.renderCustom(\"slides\", { error: String(error), token });\n }\n });\n }\n return __toCommonJS(main_exports);\n})();\n\nawait TanoPlugin.default(tano);","ui":{"slides":{"css":"#app{position:relative}.preview-loading{position:absolute;inset:0;z-index:2;overflow:hidden;box-sizing:border-box;padding:24px;background:#f1f2f4;pointer-events:none}.preview-loading[hidden]{display:none}.preview-is-loading>main{visibility:hidden}.preview-is-loading>footer{visibility:hidden}.preview-is-loading>#status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.loading-paper{position:relative;box-sizing:border-box;margin:0 auto 24px;background:#fff;box-shadow:0 2px 8px #0002;overflow:hidden}.preview-loading i{display:block;border-radius:3px;background:linear-gradient(100deg,#e9ecef 20%,#f4f5f6,#e9ecef 60%);background-size:240% 100%;animation:preview-loading-shimmer 1.8s ease-in-out infinite}.preview-loading-presentation .loading-paper{width:100%;max-width:1280px;aspect-ratio:16/9;contain:size;padding:7%}.loading-title{width:55%;height:clamp(10px,2.2vw,28px);margin-bottom:6%}.loading-slide-body{display:grid;grid-template-columns:1fr 1fr;gap:9%;height:65%}.loading-lines{display:flex;flex-direction:column;gap:clamp(5px,1.4vw,17px)}.loading-lines>i{height:clamp(4px,1vw,10px);width:100%}.loading-lines>i:nth-child(2){width:90%}.loading-lines>i:last-child{width:65%}.loading-figure{display:flex;align-items:end;justify-content:center;gap:10%;padding:10%;box-sizing:border-box;background:#f5f6f7;border-radius:4px}.loading-figure>i{width:20%;height:50%}.loading-figure>i:nth-child(2){height:85%}.loading-figure>i:nth-child(3){height:65%}.preview-loading-word .loading-paper{width:100%;max-width:794px;aspect-ratio:210/297;padding:9% 8%;display:flex;flex-direction:column;gap:5%}.preview-loading-word .loading-title{height:clamp(12px,2.4vw,24px);margin:2% 0 0;flex-shrink:0}.preview-loading-word .loading-running-head{width:25%;height:6px;margin-bottom:6%}.preview-loading-word .loading-lines{flex-shrink:0}.loading-table{display:grid;grid-template-columns:repeat(3,1fr);border-left:1px solid #edf0f2;border-top:1px solid #edf0f2}.loading-table>span{padding:14%;border-right:1px solid #edf0f2;border-bottom:1px solid #edf0f2}.loading-table i{height:clamp(4px,.8vw,8px);width:70%}.preview-loading-word .loading-page-number{width:20px;height:6px;margin:auto auto 0}@keyframes preview-loading-shimmer{0%{background-position:100% 0}to{background-position:-100% 0}}@media(prefers-reduced-motion:reduce){.preview-loading i{animation:none}}@media(max-width:600px){.preview-loading{padding:24px}.preview-loading-word .loading-paper{padding:10%}}:root{--scrollbar-size: 12px;--scrollbar-inset: 2px;--scrollbar-radius: 6px;--scrollbar-thumb: var(--control-border, #d3d2ce);--scrollbar-thumb-hover: var(--muted, #787774)}*{scrollbar-width:auto;scrollbar-color:auto}*::-webkit-scrollbar{width:var(--scrollbar-size);height:var(--scrollbar-size)}*::-webkit-scrollbar-track,*::-webkit-scrollbar-corner{background:transparent}*::-webkit-scrollbar-thumb{min-width:24px;min-height:24px;border:var(--scrollbar-inset) solid transparent;border-radius:var(--scrollbar-radius);background:var(--scrollbar-thumb);background-clip:padding-box}*::-webkit-scrollbar-thumb:hover,*::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-hover)}*::-webkit-scrollbar-button{display:none;width:0;height:0}@supports not selector(::-webkit-scrollbar){*{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb) transparent}}@media(forced-colors:active){*{scrollbar-color:auto}*::-webkit-scrollbar-thumb{background-color:ButtonText}}html,body,#app{margin:0;height:100%;font:14px system-ui,sans-serif;color:#24292f;background:#f1f2f4}#app{display:flex;flex-direction:column;overflow:hidden}button{font:inherit;padding:5px 10px;border:1px solid #ddd;border-radius:5px;background:#fff;cursor:pointer}button:disabled{opacity:.45;cursor:default}button:focus-visible{outline:2px solid #387350}#status{margin:0;padding:8px 16px;overflow-wrap:anywhere}main{flex:1;overflow:auto;min-height:0;padding:24px;box-sizing:border-box}#paper{margin:0 auto;background:#fff;box-shadow:0 2px 8px #0002;flex-shrink:0}#paper>svg{display:block}dialog{max-width:85vw;max-height:75vh}pre{white-space:pre-wrap}\n@import '../../../../packages/workbench/src/scrollbars.css';\n\nhtml,body,#app { margin:0; height:100%; font:14px system-ui,sans-serif; color:#24292f; background:#f1f2f4; }\n#app { display:flex; flex-direction:column; overflow:hidden; }\nbutton { font:inherit; padding:5px 10px; border:1px solid #ddd; border-radius:5px; background:white; cursor:pointer; }\nbutton:disabled { opacity:.45; cursor:default; } button:focus-visible { outline:2px solid #387350; }\n#status { margin:0; padding:8px 16px; overflow-wrap:anywhere; }\nmain { flex:1; overflow:auto; min-height:0; padding:24px; box-sizing:border-box; }\n#paper { margin:0 auto; background:white; box-shadow:0 2px 8px #0002; flex-shrink:0; }\n#paper > svg { display:block; }\ndialog { max-width:85vw; max-height:75vh; } pre { white-space:pre-wrap; }\n","html":"","source":"\"use strict\";var TanoPluginView=(()=>{var xo=Object.defineProperty;var Hu=Object.getOwnPropertyDescriptor;var Wu=Object.getOwnPropertyNames;var Vu=Object.prototype.hasOwnProperty;var Gu=(e,t)=>{for(var r in t)xo(e,r,{get:t[r],enumerable:!0})},Xu=(e,t,r,n)=>{if(t&&typeof t==\"object\"||typeof t==\"function\")for(let o of Wu(t))!Vu.call(e,o)&&o!==r&&xo(e,o,{get:()=>t[o],enumerable:!(n=Hu(t,o))||n.enumerable});return e};var Yu=e=>Xu(xo({},\"__esModule\",{value:!0}),e);var Fb={};Gu(Fb,{default:()=>Bu});function Is(e,t){let r=document.createElement(\"div\");r.className=`preview-loading preview-loading-${t}`,r.dataset.previewKind=t,r.setAttribute(\"aria-hidden\",\"true\"),r.hidden=!0;let n='<div class=\"loading-lines\"><i></i><i></i><i></i><i></i></div>',o=t===\"presentation\"?`<div class=\"loading-paper\"><i class=\"loading-title\"></i><div class=\"loading-slide-body\">${n}<div class=\"loading-figure\"><i></i><i></i><i></i></div></div></div>`:`<div class=\"loading-paper\"><i class=\"loading-running-head\"></i><i class=\"loading-title\"></i>${n}<div class=\"loading-table\">${\"<span><i></i></span>\".repeat(9)}</div>${n}<i class=\"loading-page-number\"></i></div>`;return r.innerHTML=o+(t===\"word\"?o:\"\"),e.append(r),{show(){r.hidden=!1,e.classList.add(\"preview-is-loading\"),e.setAttribute(\"aria-busy\",\"true\")},hide(){r.hidden=!0,e.classList.remove(\"preview-is-loading\"),e.setAttribute(\"aria-busy\",\"false\")}}}var Ns=()=>new Promise(e=>requestAnimationFrame(()=>setTimeout(e,0)));var g=e=>Number.isFinite(e)?String(Math.round(e*1e3)/1e3):\"0\",tn=e=>e*Math.PI/180,ke=e=>({d:e,open:!0}),D=(e,t,r)=>(e[t]??r)/1e5,Ft=(e,t,r)=>(e[t]??r)/6e4;function G(e,t=!0){return e.length?\"M \"+e.map(([r,n])=>`${g(r)} ${g(n)}`).join(\" L \")+(t?\" Z\":\"\"):\"\"}function xe(e,t,r,n,o){return[e+r*Math.cos(tn(o)),t+n*Math.sin(tn(o))]}function Re(e,t,r,n,o,i){let s=Math.max(-359.99,Math.min(359.99,i)),[l,a]=xe(e,t,r,n,o+s);return`A ${g(r)} ${g(n)} 0 ${Math.abs(s)>180?1:0} ${s>=0?1:0} ${g(l)} ${g(a)}`}function vo(e,t,r,n,o,i){let[s,l]=xe(e,t,r,n,o);return`M ${g(s)} ${g(l)} ${Re(e,t,r,n,o,i)}`}function Se(e){if(e.length<2)return\"\";let t=e.slice(0,-1).reverse();return\"M \"+[...e,...t].map(([r,n])=>`${g(r)} ${g(n)}`).join(\" L \")}function Rs(e,t,r,n){return we(e,t,r,n)+\" \"+we(e,t,r,n,!0)}function we(e,t,r,n,o=!1){let i=o?-180:180;return`M ${g(e-r)} ${g(t)} ${Re(e,t,r,n,180,i)} ${Re(e,t,r,n,180+i,i)} Z`}function ur(e,t){return(r,n)=>{let o=[];for(let i=0;i<e;i++)o.push(xe(r/2,n/2,r/2,n/2,t+360*i/e));return G(o)}}function gt(e,t){return(r,n,o)=>{let i=o.adj!==void 0?o.adj/1e5:t,s=Math.min(.95,Math.max(.05,i)),l=[];for(let a=0;a<e*2;a++){let c=a%2===0?1:s;l.push(xe(r/2,n/2,r/2*c,n/2*c,-90+a*180/e))}return G(l)}}function Fs(e,t,r,n){let o=[[0,0],[e,0],[e,t],[0,t]],i=[[1,0],[0,1],[-1,0],[0,-1]],s=[];for(let l=0;l<4;l++){let[a,c]=o[l],u=Math.max(0,r[l]),h=i[(l+3)%4],f=i[l],m=[a-h[0]*u,c-h[1]*u],d=[a+f[0]*u,c+f[1]*u];s.push(`${l===0?\"M\":\"L\"} ${g(m[0])} ${g(m[1])}`),u>0&&s.push(n[l]===\"r\"?`A ${g(u)} ${g(u)} 0 0 1 ${g(d[0])} ${g(d[1])}`:`L ${g(d[0])} ${g(d[1])}`)}return s.join(\" \")+\" Z\"}var jt=(e,t,r)=>(n,o,i)=>{let s=t.map((l,a)=>l?Math.min(n,o)*Math.min(D(i,l,r[a]),.5):0);return Fs(n,o,s,e)},js={r:([e,t])=>[e,t],l:([e,t],r)=>[r-e,t],d:([e,t])=>[t,e],u:([e,t],r,n)=>[t,n-e]};function hr(e){return(t,r,n)=>{let o=e===\"r\"||e===\"l\",i=o?t:r,s=o?r:t,l=s*Math.min(D(n,\"adj1\",5e4),1)/2,a=Math.min(i,s*D(n,\"adj2\",5e4)),c=s/2,u=[[0,c-l],[i-a,c-l],[i-a,0],[i,c],[i-a,s],[i-a,c+l],[0,c+l]];return G(u.map(h=>js[e](h,t,r)))}}function fr(e){return(t,r,n)=>{let o=e===\"r\"||e===\"l\",i=o?t:r,s=o?r:t,l=s*D(n,\"adj1\",18515)/2,a=Math.min(i/2,s*D(n,\"adj2\",18515)),c=Math.max(0,i-Math.max(a,i*(1-D(n,\"adj4\",66667)))),u=s/2,h=[[0,0],[c,0],[c,u-l],[i-a,u-l],[i-a,0],[i,u],[i-a,s],[i-a,u+l],[c,u+l],[c,s],[0,s]];return G(h.map(f=>js[e](f,t,r)))}}function yo(e,t,r){return[e/2+e*D(r,\"adj1\",-20833),t/2+t*D(r,\"adj2\",62500)]}function Os(e,t,r){let n=yo(e,t,r),o=n[0]-e/2,i=n[1]-t/2,s=e===0?0:o*t/e,l=Math.abs(i)-Math.abs(s)>0,a=e*(o>0?7:2)/12,c=t*(i>0?7:2)/12;return{x1:a,x2:e*(o>0?10:5)/12,y1:c,y2:t*(i>0?10:5)/12,top:l&&i<=0?n:[a,0],right:!l&&o>0?n:[e,c],bottom:l&&i>0?n:[a,t],left:!l&&o<=0?n:[0,c]}}function qu(e,t,r,n){let o=[[e*.15,t]];return n===1?o.push([e*D(r,\"adj2\",-8333),t+t*D(r,\"adj1\",18750)]):(o.push([e*.05,t*1.2]),o.push([e*D(r,\"adj4\",-16667),t+t*D(r,\"adj3\",44444)]),n>=3&&o.push([e*D(r,\"adj6\",-16667)-e*.12,t+t*D(r,\"adj5\",44444)])),\" \"+Se(o)}function Qe(e,t){return(r,n,o)=>G([[0,0],[r,0],[r,n],[0,n]])+(t?\" \"+Se([[0,0],[0,n]]):\"\")+qu(r,n,o,e)}function wo(e){return(t,r)=>{let n=Math.min(Math.hypot(t,r)/20,Math.min(t,r)/2),o=(i,s,l,a)=>{let[c,u]=[i+l*n,s],[h,f]=[i,s+a*n];if(e===\"s\")return G([[i,s],[c,u],[c,f],[h,f]]);let m=e===\"q\"?l*a>0?1:0:l*a>0?0:1;return`M ${g(i)} ${g(s)} L ${g(c)} ${g(u)} A ${g(n)} ${g(n)} 0 0 ${m} ${g(h)} ${g(f)} Z`};return[o(0,0,1,1),o(t,0,-1,1),o(t,r,-1,-1),o(0,r,1,-1)].join(\" \")}}function dr(e,t,r,n){let o=t/4;return n?`C ${g(t-o)} ${g(e+r)} ${g(o)} ${g(e-r)} 0 ${g(e)}`:`C ${g(o)} ${g(e-r)} ${g(o*3)} ${g(e+r)} ${g(t)} ${g(e)}`}function en(e,t,r,n,o,i,s,l,a=!1){let c=l>=s?1:-1,u=Math.max(1,Math.min(i,Math.min(r,n)-o-1)),h=(r+n)/2-o/2,f=Math.min(Math.abs(l-s)*(a?.35:.6),u/Math.max(h,1)*(180/Math.PI)),m=l-c*f,d=a?s+c*f:s,p=m-d,[b,v]=xe(e,t,r,n,d),[x,M]=xe(e,t,r+u,n+u,m),[S,y]=xe(e,t,r-o/2,n-o/2,l),[$,k]=xe(e,t,r-o-u,n-o-u,m),[A,L]=xe(e,t,r-o,n-o,m),P=\"\";if(a){let[E,T]=xe(e,t,r-o-u,n-o-u,d),[I,O]=xe(e,t,r-o/2,n-o/2,s),[R,z]=xe(e,t,r+u,n+u,d);P=`L ${g(E)} ${g(T)} L ${g(I)} ${g(O)} L ${g(R)} ${g(z)} `}return`M ${g(b)} ${g(v)} ${Re(e,t,r,n,d,p)} L ${g(x)} ${g(M)} L ${g(S)} ${g(y)} L ${g($)} ${g(k)} L ${g(A)} ${g(L)} ${Re(e,t,r-o,n-o,m,-p)} ${P}Z`}function zs(e,t,r){let n=e/2,o=t/2,i=Math.min(e,t)/2,s=i*.78,l=360/r,a=[];for(let c=0;c<r;c++){let u=c*l;a.push(xe(n,o,s,s,u-l*.28)),a.push(xe(n,o,i,i,u-l*.16)),a.push(xe(n,o,i,i,u+l*.16)),a.push(xe(n,o,s,s,u+l*.28))}return G(a)+\" \"+we(n,o,i*.36,i*.36,!0)}function $o(e,t,r){return G([[0,0],[e,0],[e,t],[0,t]])+\" \"+Se([[r,r],[e-r,r],[e-r,t-r],[r,t-r],[r,r]])}function st(e,t,r){let n=Math.min(e,t)*.125;return $o(e,t,n)+\" \"+r(Math.min(e,t)*.24,e/2,t/2)}var dn={rect:(e,t)=>G([[0,0],[e,0],[e,t],[0,t]]),roundRect:jt([\"r\",\"r\",\"r\",\"r\"],[\"adj\",\"adj\",\"adj\",\"adj\"],[16667,16667,16667,16667]),round1Rect:jt([\"n\",\"r\",\"n\",\"n\"],[null,\"adj\",null,null],[0,16667,0,0]),round2SameRect:jt([\"r\",\"r\",\"r\",\"r\"],[\"adj1\",\"adj1\",\"adj2\",\"adj2\"],[16667,16667,0,0]),round2DiagRect:jt([\"r\",\"r\",\"r\",\"r\"],[\"adj1\",\"adj2\",\"adj1\",\"adj2\"],[16667,0,16667,0]),snip1Rect:jt([\"n\",\"s\",\"n\",\"n\"],[null,\"adj\",null,null],[0,16667,0,0]),snip2SameRect:jt([\"s\",\"s\",\"s\",\"s\"],[\"adj1\",\"adj1\",\"adj2\",\"adj2\"],[16667,16667,0,0]),snip2DiagRect:jt([\"s\",\"s\",\"s\",\"s\"],[\"adj1\",\"adj2\",\"adj1\",\"adj2\"],[0,16667,0,16667]),snipRoundRect:jt([\"r\",\"s\",\"n\",\"n\"],[\"adj1\",\"adj2\",null,null],[16667,16667,0,0]),plaque:(e,t,r)=>{let n=Math.min(e,t)*Math.min(D(r,\"adj\",16667),.5);return`M ${g(n)} 0 L ${g(e-n)} 0 A ${g(n)} ${g(n)} 0 0 0 ${g(e)} ${g(n)} L ${g(e)} ${g(t-n)} A ${g(n)} ${g(n)} 0 0 0 ${g(e-n)} ${g(t)} L ${g(n)} ${g(t)} A ${g(n)} ${g(n)} 0 0 0 0 ${g(t-n)} L 0 ${g(n)} A ${g(n)} ${g(n)} 0 0 0 ${g(n)} 0 Z`},bevel:(e,t,r)=>$o(e,t,Math.min(e,t)*Math.min(D(r,\"adj\",12500),.5)),cornerTabs:wo(\"q\"),squareTabs:wo(\"s\"),plaqueTabs:wo(\"c\"),frame:(e,t,r)=>{let n=Math.min(e,t)*Math.min(D(r,\"adj1\",12500),.5);return G([[0,0],[e,0],[e,t],[0,t]])+\" \"+G([[n,n],[n,t-n],[e-n,t-n],[e-n,n]])},halfFrame:(e,t,r)=>{let n=Math.min(e,t)*D(r,\"adj1\",33333),o=Math.min(e,t)*D(r,\"adj2\",33333);return G([[0,0],[e,0],[e-o,n],[o,n],[o,t-n],[0,t]])},corner:(e,t,r)=>{let n=Math.min(e,t)*D(r,\"adj1\",5e4),o=Math.min(e,t)*D(r,\"adj2\",5e4);return G([[0,0],[o,0],[o,t-n],[e,t-n],[e,t],[0,t]])},diagStripe:(e,t,r)=>{let n=Math.min(D(r,\"adj\",5e4),1);return G([[0,t*(1-n)],[e*(1-n),0],[e,0],[0,t]])},foldedCorner:(e,t,r)=>{let n=Math.min(e,t)*D(r,\"adj\",16667);return G([[0,0],[e,0],[e,t-n],[e-n,t],[0,t]])+` M ${g(e-n)} ${g(t)} L ${g(e-n*.72)} ${g(t-n*.72)} L ${g(e)} ${g(t-n)} Z`},ellipse:(e,t)=>we(e/2,t/2,e/2,t/2),triangle:(e,t,r)=>G([[e*D(r,\"adj\",5e4),0],[e,t],[0,t]]),rtTriangle:(e,t)=>G([[0,0],[e,t],[0,t]]),diamond:(e,t)=>G([[e/2,0],[e,t/2],[e/2,t],[0,t/2]]),parallelogram:(e,t,r)=>{let n=Math.min(e,Math.min(e,t)*D(r,\"adj\",25e3));return G([[n,0],[e,0],[e-n,t],[0,t]])},trapezoid:(e,t,r)=>{let n=Math.min(e/2,Math.min(e,t)*D(r,\"adj\",25e3));return G([[n,0],[e-n,0],[e,t],[0,t]])},nonIsoscelesTrapezoid:(e,t,r)=>G([[e*D(r,\"adj1\",25e3),0],[e-e*D(r,\"adj2\",25e3),0],[e,t],[0,t]]),pentagon:ur(5,-90),heptagon:ur(7,-90),decagon:ur(10,-90),dodecagon:ur(12,-90),hexagon:(e,t,r)=>{let n=Math.min(e/2,Math.min(e,t)*D(r,\"adj\",25e3));return G([[n,0],[e-n,0],[e,t/2],[e-n,t],[n,t],[0,t/2]])},octagon:(e,t,r)=>{let n=Math.min(Math.min(e,t)/2,Math.min(e,t)*D(r,\"adj\",29289));return G([[n,0],[e-n,0],[e,n],[e,t-n],[e-n,t],[n,t],[0,t-n],[0,n]])},homePlate:(e,t,r)=>{let n=Math.min(e,Math.min(e,t)*D(r,\"adj\",5e4));return G([[0,0],[e-n,0],[e,t/2],[e-n,t],[0,t]])},chevron:(e,t,r)=>{let n=Math.min(e,Math.min(e,t)*D(r,\"adj\",5e4));return G([[0,0],[e-n,0],[e,t/2],[e-n,t],[0,t],[n,t/2]])},plus:(e,t,r)=>{let n=Math.min(e,t)*Math.min(D(r,\"adj\",25e3),.5);return G([[n,0],[e-n,0],[e-n,n],[e,n],[e,t-n],[e-n,t-n],[e-n,t],[n,t],[n,t-n],[0,t-n],[0,n],[n,n]])},teardrop:(e,t,r)=>{let n=Math.max(0,D(r,\"adj\",1e5)),o=Math.SQRT1_2+n*(1-Math.SQRT1_2),i=e/2,s=t/2;return`M 0 ${g(s)} ${Re(i,s,e/2,t/2,180,90)} L ${g(i+e/2*o)} ${g(s-t/2*o)} L ${g(e)} ${g(s)} ${Re(i,s,e/2,t/2,0,180)} Z`},can:(e,t,r)=>{let n=Math.min(t/2,t*D(r,\"adj\",25e3)/2);return`M 0 ${g(n)} ${Re(e/2,n,e/2,n,180,180)} L ${g(e)} ${g(t-n)} ${Re(e/2,t-n,e/2,n,0,180)} Z `+Rs(e/2,n,e/2,n)},cube:(e,t,r)=>{let n=Math.min(e,t)*Math.min(D(r,\"adj\",25e3),.5);return G([[0,n],[n,0],[e,0],[e,t-n],[e-n,t],[0,t]])+\" \"+Se([[0,n],[e-n,n],[e,0]])+\" \"+Se([[e-n,n],[e-n,t]])},donut:(e,t,r)=>{let n=Math.min(e,t)*Math.min(D(r,\"adj\",25e3),.5);return we(e/2,t/2,e/2,t/2)+\" \"+we(e/2,t/2,e/2-n,t/2-n,!0)},noSmoking:(e,t,r)=>{let n=Math.min(e,t)*Math.min(D(r,\"adj\",18750),.5),o=e/2-n,i=t/2-n,s=e/2,l=t/2,a=n/2,c=Math.cos(tn(-45)),u=Math.sin(tn(-45)),h=-u,f=c,[m,d]=[s-c*o,l-u*i],[p,b]=[s+c*o,l+u*i],v=G([[m+h*a,d+f*a],[p+h*a,b+f*a],[p-h*a,b-f*a],[m-h*a,d-f*a]]);return we(s,l,e/2,t/2)+\" \"+we(s,l,o,i,!0)+\" \"+v},pie:(e,t,r)=>{let n=Ft(r,\"adj1\",0),o=((Ft(r,\"adj2\",270*6e4)-n)%360+360)%360,[i,s]=xe(e/2,t/2,e/2,t/2,n);return`M ${g(e/2)} ${g(t/2)} L ${g(i)} ${g(s)} ${Re(e/2,t/2,e/2,t/2,n,o)} Z`},pieWedge:(e,t)=>`M 0 ${g(t)} ${Re(e,t,e,t,180,90)} L ${g(e)} ${g(t)} Z`,chord:(e,t,r)=>{let n=Ft(r,\"adj1\",27e5),o=((Ft(r,\"adj2\",270*6e4)-n)%360+360)%360;return vo(e/2,t/2,e/2,t/2,n,o)+\" Z\"},arc:(e,t,r)=>{let n=Ft(r,\"adj1\",162e5),o=((Ft(r,\"adj2\",0)-n)%360+360)%360;return ke(vo(e/2,t/2,e/2,t/2,n,o))},blockArc:(e,t,r)=>{let n=Ft(r,\"adj1\",108e5),o=((Ft(r,\"adj2\",0)-n)%360+360)%360,i=Math.min(e,t)*Math.min(D(r,\"adj3\",25e3),.5),[s,l]=xe(e/2,t/2,e/2-i,t/2-i,n+o);return vo(e/2,t/2,e/2,t/2,n,o)+` L ${g(s)} ${g(l)} ${Re(e/2,t/2,e/2-i,t/2-i,n+o,-o)} Z`},cloud:(e,t)=>{let r=i=>i*e,n=i=>i*t,o=(i,s,l,a,c,u)=>`C ${g(r(i))} ${g(n(s))} ${g(r(l))} ${g(n(a))} ${g(r(c))} ${g(n(u))} `;return`M ${g(r(.2))} ${g(n(.79))} `+o(.06,.79,0,.66,.07,.55)+o(0,.43,.1,.31,.22,.34)+o(.25,.16,.44,.09,.56,.19)+o(.65,.05,.86,.09,.88,.26)+o(1,.3,1.01,.48,.92,.56)+o(1,.69,.9,.83,.76,.79)+o(.68,.91,.5,.93,.42,.84)+o(.36,.91,.25,.89,.2,.79)+\"Z\"},heart:(e,t)=>{let r=o=>o*e,n=o=>o*t;return`M ${g(r(.5))} ${g(n(1))} C ${g(r(-.06))} ${g(n(.53))} ${g(r(.08))} ${g(n(-.11))} ${g(r(.5))} ${g(n(.25))} C ${g(r(.92))} ${g(n(-.11))} ${g(r(1.06))} ${g(n(.53))} ${g(r(.5))} ${g(n(1))} Z`},lightningBolt:(e,t)=>G([[.55,0],[1,.55],[.68,.55],[.8,1],[0,.42],[.42,.42]].map(([r,n])=>[r*e,n*t])),sun:(e,t,r)=>{let n=Math.min(D(r,\"adj\",25e3),.45),o=e/2,i=t/2,s=o*(1-n*1.4),l=i*(1-n*1.4),a=[];for(let c=0;c<8;c++){let u=c*45,[h,f]=xe(o,i,s,l,u-9),[m,d]=xe(o,i,o,i,u),[p,b]=xe(o,i,s,l,u+9);a.push(`M ${g(h)} ${g(f)} L ${g(m)} ${g(d)} L ${g(p)} ${g(b)} Z`)}return we(o,i,s,l)+\" \"+a.join(\" \")},moon:(e,t,r)=>{let n=D(r,\"adj\",5e4);return`M ${g(e)} 0 C ${g(e*(1-n*1.6))} ${g(t*.15)} ${g(e*(1-n*1.6))} ${g(t*.85)} ${g(e)} ${g(t)} C ${g(e*.1)} ${g(t*.92)} ${g(e*.1)} ${g(t*.08)} ${g(e)} 0 Z`},smileyFace:(e,t,r)=>{let n=t*D(r,\"adj\",4653)*2;return we(e/2,t/2,e/2,t/2)+\" \"+we(e*.32,t*.35,e*.055,t*.08,!0)+\" \"+we(e*.68,t*.35,e*.055,t*.08,!0)+` M ${g(e*.26)} ${g(t*.63)} Q ${g(e*.5)} ${g(t*.85+n)} ${g(e*.74)} ${g(t*.63)} Q ${g(e*.5)} ${g(t*.85+n)} ${g(e*.26)} ${g(t*.63)}`},irregularSeal1:(e,t)=>G([[.09,.28],[.24,.35],[.13,.09],[.35,.26],[.42,0],[.53,.24],[.72,.06],[.7,.31],[.93,.24],[.81,.45],[1,.53],[.83,.64],[.96,.83],[.73,.79],[.75,1],[.56,.86],[.45,1],[.38,.83],[.19,.94],[.23,.72],[0,.75],[.16,.58],[0,.45]].map(([r,n])=>[r*e,n*t])),irregularSeal2:(e,t)=>G([[.11,.32],[.25,.28],[.15,.11],[.36,.2],[.4,.02],[.55,.17],[.68,0],[.71,.2],[.9,.14],[.85,.36],[1,.42],[.86,.55],[.98,.72],[.79,.72],[.82,.93],[.63,.82],[.55,1],[.44,.85],[.28,.96],[.28,.76],[.06,.8],[.17,.62],[0,.5]].map(([r,n])=>[r*e,n*t])),gear6:(e,t)=>zs(e,t,6),gear9:(e,t)=>zs(e,t,9),funnel:(e,t)=>{let r=t*.1;return`M 0 ${g(r)} ${Re(e/2,r,e/2,r,180,180)} L ${g(e*.56)} ${g(t*.72)} L ${g(e*.56)} ${g(t)} L ${g(e*.44)} ${g(t)} L ${g(e*.44)} ${g(t*.72)} Z`},star4:gt(4,.3),star5:gt(5,.382),star6:gt(6,.577),star7:gt(7,.605),star8:gt(8,.375),star10:gt(10,.618),star12:gt(12,.5),star16:gt(16,.375),star24:gt(24,.375),star32:gt(32,.375),rightArrow:hr(\"r\"),leftArrow:hr(\"l\"),upArrow:hr(\"u\"),downArrow:hr(\"d\"),leftRightArrow:(e,t,r)=>{let n=t*Math.min(D(r,\"adj1\",5e4),1)/2,o=Math.min(e/2,t*D(r,\"adj2\",5e4)),i=t/2;return G([[0,i],[o,0],[o,i-n],[e-o,i-n],[e-o,0],[e,i],[e-o,t],[e-o,i+n],[o,i+n],[o,t]])},upDownArrow:(e,t,r)=>{let n=e*Math.min(D(r,\"adj1\",5e4),1)/2,o=Math.min(t/2,e*D(r,\"adj2\",5e4)),i=e/2;return G([[i,0],[e,o],[i+n,o],[i+n,t-o],[e,t-o],[i,t],[0,t-o],[i-n,t-o],[i-n,o],[0,o]])},quadArrow:(e,t,r)=>{let n=Math.min(e,t)*D(r,\"adj2\",22500)/2,o=Math.min(e,t)*D(r,\"adj3\",25e3),i=e/2,s=t/2;return G([[i,0],[i+o,o],[i+n,o],[i+n,s-n],[e-o,s-n],[e-o,s-o],[e,s],[e-o,s+o],[e-o,s+n],[i+n,s+n],[i+n,t-o],[i+o,t-o],[i,t],[i-o,t-o],[i-n,t-o],[i-n,s+n],[o,s+n],[o,s+o],[0,s],[o,s-o],[o,s-n],[i-n,s-n],[i-n,o],[i-o,o]])},leftRightUpArrow:(e,t,r)=>{let n=Math.min(e,t)*D(r,\"adj2\",22500)/2,o=Math.min(e,t)*D(r,\"adj3\",25e3),i=e/2,s=t-n;return G([[i,0],[i+o,o],[i+n,o],[i+n,s-n],[e-o,s-n],[e-o,s-o],[e,s],[e-o,s+o],[e-o,t],[o,t],[o,s+o],[0,s],[o,s-o],[o,s-n],[i-n,s-n],[i-n,o],[i-o,o]])},bentUpArrow:(e,t,r)=>{let n=Math.min(e,t)*Math.min(D(r,\"adj3\",25e3),.6),o=Math.min(e/2,Math.max(Math.min(e,t)*D(r,\"adj1\",25e3),n*.6)),i=Math.min(t,Math.min(e,t)*D(r,\"adj2\",25e3)),s=e-o;return G([[0,t],[s+n/2,t],[s+n/2,i],[e,i],[s,0],[s-o,i],[s-n/2,i],[s-n/2,t-n],[0,t-n]])},leftUpArrow:(e,t,r)=>{let n=Math.min(e,t),o=n*Math.min(D(r,\"adj1\",25e3),.6),i=Math.min(n/2,Math.max(n*D(r,\"adj2\",25e3),o*.6)),s=Math.min(n,n*D(r,\"adj3\",25e3));return G([[e-i,0],[e,s],[e-i+o/2,s],[e-i+o/2,t],[s,t],[0,t-i],[s,t-2*i],[s,t-i-o/2],[e-i-o/2,t-i-o/2],[e-i-o/2,s],[e-2*i,s]])},bentArrow:(e,t,r)=>{let n=Math.min(e,t)*D(r,\"adj1\",25e3),o=Math.min(Math.min(e,t)*D(r,\"adj2\",25e3),t/2),i=o;return G([[0,t],[0,i-n/2],[e-o,i-n/2],[e-o,i-o],[e,i],[e-o,i+o],[e-o,i+n/2],[n,i+n/2],[n,t]])},uturnArrow:(e,t,r)=>{let n=Math.min(e/3,e*Math.max(D(r,\"adj1\",25e3),.08)),o=n/2,i=Math.min(n*1.1,e/4),s=Math.min(t/3,i*1.6),l=e-i,a=(l+o)/2,c=Math.min(a,t-s-4);return`M 0 ${g(t)} L 0 ${g(c)} A ${g(a)} ${g(c)} 0 0 1 ${g(a*2)} ${g(c)} L ${g(l+o)} ${g(t-s)} L ${g(l+i)} ${g(t-s)} L ${g(l)} ${g(t)} L ${g(l-i)} ${g(t-s)} L ${g(l-o)} ${g(t-s)} L ${g(l-o)} ${g(c)} A ${g(a-n)} ${g(c-n)} 0 0 0 ${g(n)} ${g(c)} L ${g(n)} ${g(t)} Z`},curvedRightArrow:(e,t,r)=>{let n=t*Math.min(D(r,\"adj1\",25e3),.5),o=Math.min(e,t)*Math.min(D(r,\"adj3\",25e3),.4);return en(0,t,e-o,t-o,n,o,270,360)},curvedLeftArrow:(e,t,r)=>{let n=t*Math.min(D(r,\"adj1\",25e3),.5),o=Math.min(e,t)*Math.min(D(r,\"adj3\",25e3),.4);return en(e,t,e-o,t-o,n,o,270,180)},curvedUpArrow:(e,t,r)=>{let n=e*Math.min(D(r,\"adj1\",25e3),.5),o=Math.min(e,t)*Math.min(D(r,\"adj3\",25e3),.4);return en(e,t,e-o,t-o,n,o,180,270)},curvedDownArrow:(e,t,r)=>{let n=e*Math.min(D(r,\"adj1\",25e3),.5),o=Math.min(e,t)*Math.min(D(r,\"adj3\",25e3),.4);return en(e,0,e-o,t-o,n,o,180,90)},stripedRightArrow:(e,t,r)=>{let n=t*Math.min(D(r,\"adj1\",5e4),1)/2,o=Math.min(e,t*D(r,\"adj2\",5e4)),i=t/2,s=e*.05;return G([[s*2.4,i-n],[e-o,i-n],[e-o,0],[e,i],[e-o,t],[e-o,i+n],[s*2.4,i+n]])+\" \"+G([[0,i-n],[s,i-n],[s,i+n],[0,i+n]])+\" \"+G([[s*1.4,i-n],[s*2,i-n],[s*2,i+n],[s*1.4,i+n]])},notchedRightArrow:(e,t,r)=>{let n=t*Math.min(D(r,\"adj1\",5e4),1)/2,o=Math.min(e,t*D(r,\"adj2\",5e4)),i=t/2;return G([[0,i-n],[e-o,i-n],[e-o,0],[e,i],[e-o,t],[e-o,i+n],[0,i+n],[o*.5,i]])},circularArrow:(e,t,r)=>{let n=Math.min(e,t)/2,o=n*Math.min(Math.max(D(r,\"adj1\",12500),.06),.35),i=o*1.6,s=n-i;return en(e/2,t/2,s,s,o,i,200,450)},leftCircularArrow:(e,t,r)=>{let n=Math.min(e,t)/2,o=n*Math.min(Math.max(D(r,\"adj1\",12500),.06),.35),i=o*1.6;return en(e/2,t/2,n-i,n-i,o,i,-20,-270)},leftRightCircularArrow:(e,t,r)=>{let n=Math.min(e,t)/2,o=n*Math.min(Math.max(D(r,\"adj1\",12500),.06),.35),i=o*1.6;return en(e/2,t/2,n-i,n-i,o,i,200,430,!0)},swooshArrow:(e,t,r)=>{let n=Math.min(e,t),o=n*Math.min(Math.max(D(r,\"adj2\",16667),.04),.4),i=n*Math.min(Math.max(D(r,\"adj1\",25e3),.08),.6),s=o*1.6;return`M 0 ${g(t)} Q ${g(e*.65)} ${g(t*.95)} ${g(e-i*1.2)} ${g(i*.1)} L ${g(e)} 0 L ${g(e-i*.1)} ${g(i*1.2)} Q ${g(e*.65-s)} ${g(t*.95-s)} 0 ${g(t)} Z`},rightArrowCallout:fr(\"r\"),leftArrowCallout:fr(\"l\"),upArrowCallout:fr(\"u\"),downArrowCallout:fr(\"d\"),leftRightArrowCallout:(e,t,r)=>{let n=t*D(r,\"adj1\",18515)/2,o=Math.min(e/3,t*D(r,\"adj2\",18515)),i=e*D(r,\"adj4\",48123),s=t/2,l=(e-i)/2,a=(e+i)/2;return G([[0,s],[o,0],[o,s-n],[l,s-n],[l,0],[a,0],[a,s-n],[e-o,s-n],[e-o,0],[e,s],[e-o,t],[e-o,s+n],[a,s+n],[a,t],[l,t],[l,s+n],[o,s+n],[o,t]])},upDownArrowCallout:(e,t,r)=>{let n=e*D(r,\"adj1\",18515)/2,o=Math.min(e/2,n+e*D(r,\"adj2\",18515)),i=Math.min(t*.3,e*D(r,\"adj3\",18515)),s=Math.max(0,Math.min(t*D(r,\"adj4\",48123),t-2.4*i)),l=e/2,a=(t-s)/2,c=(t+s)/2;return G([[l,0],[l+o,i],[l+n,i],[l+n,a],[e,a],[e,c],[l+n,c],[l+n,t-i],[l+o,t-i],[l,t],[l-o,t-i],[l-n,t-i],[l-n,c],[0,c],[0,a],[l-n,a],[l-n,i],[l-o,i]])},quadArrowCallout:(e,t,r)=>{let n=Math.min(e,t),o=n*D(r,\"adj3\",18515),i=n*D(r,\"adj2\",18515)/2,s=Math.min(Math.max(n*D(r,\"adj4\",48123)/2,i*1.2),n/2-o),l=e/2,a=t/2;return G([[l,0],[l+o,o],[l+i,o],[l+i,a-s],[l+s,a-s],[l+s,a-i],[e-o,a-i],[e-o,a-o],[e,a],[e-o,a+o],[e-o,a+i],[l+s,a+i],[l+s,a+s],[l+i,a+s],[l+i,t-o],[l+o,t-o],[l,t],[l-o,t-o],[l-i,t-o],[l-i,a+s],[l-s,a+s],[l-s,a+i],[o,a+i],[o,a+o],[0,a],[o,a-o],[o,a-i],[l-s,a-i],[l-s,a-s],[l-i,a-s],[l-i,o],[l-o,o]])},mathPlus:(e,t,r)=>{let n=Math.min(e,t)*D(r,\"adj1\",23520)/2,o=e/2,i=t/2,s=e*.45,l=t*.45;return G([[o-n,i-l],[o+n,i-l],[o+n,i-n],[o+s,i-n],[o+s,i+n],[o+n,i+n],[o+n,i+l],[o-n,i+l],[o-n,i+n],[o-s,i+n],[o-s,i-n],[o-n,i-n]])},mathMinus:(e,t,r)=>{let n=Math.min(e,t)*D(r,\"adj1\",23520)/2;return G([[e*.05,t/2-n],[e*.95,t/2-n],[e*.95,t/2+n],[e*.05,t/2+n]])},mathMultiply:(e,t,r)=>{let n=Math.min(e,t)*D(r,\"adj1\",23520)/2,o=e/2,i=t/2,s=Math.min(e,t)*.42,l=n*Math.SQRT2;return G([[o-s,i-s+l],[o-s+l,i-s],[o,i-l],[o+s-l,i-s],[o+s,i-s+l],[o+l,i],[o+s,i+s-l],[o+s-l,i+s],[o,i+l],[o-s+l,i+s],[o-s,i+s-l],[o-l,i]])},mathDivide:(e,t,r)=>{let n=Math.min(e,t)*D(r,\"adj1\",23520)/2,o=Math.min(e,t)*.09;return G([[e*.08,t/2-n],[e*.92,t/2-n],[e*.92,t/2+n],[e*.08,t/2+n]])+\" \"+we(e/2,t*.22,o,o)+\" \"+we(e/2,t*.78,o,o)},mathEqual:(e,t,r)=>{let n=Math.min(e,t)*D(r,\"adj1\",23520)/2,o=t*D(r,\"adj2\",11760);return G([[e*.05,t/2-o-n],[e*.95,t/2-o-n],[e*.95,t/2-o+n],[e*.05,t/2-o+n]])+\" \"+G([[e*.05,t/2+o-n],[e*.95,t/2+o-n],[e*.95,t/2+o+n],[e*.05,t/2+o+n]])},mathNotEqual:(e,t,r)=>{let n=Math.min(e,t)*D(r,\"adj1\",23520)/2,o=t*.16;return G([[e*.05,t/2-o-n],[e*.95,t/2-o-n],[e*.95,t/2-o+n],[e*.05,t/2-o+n]])+\" \"+G([[e*.05,t/2+o-n],[e*.95,t/2+o-n],[e*.95,t/2+o+n],[e*.05,t/2+o+n]])+\" \"+G([[e*.42,0],[e*.56,0],[e*.62,t],[e*.48,t]])},leftBracket:(e,t,r)=>{let n=Math.min(t/2,t*D(r,\"adj\",8333));return ke(`M ${g(e)} 0 L ${g(n)} 0 A ${g(n)} ${g(n)} 0 0 0 0 ${g(n)} L 0 ${g(t-n)} A ${g(n)} ${g(n)} 0 0 0 ${g(n)} ${g(t)} L ${g(e)} ${g(t)}`)},rightBracket:(e,t,r)=>{let n=Math.min(t/2,t*D(r,\"adj\",8333));return ke(`M 0 0 L ${g(e-n)} 0 A ${g(n)} ${g(n)} 0 0 1 ${g(e)} ${g(n)} L ${g(e)} ${g(t-n)} A ${g(n)} ${g(n)} 0 0 1 ${g(e-n)} ${g(t)} L 0 ${g(t)}`)},bracketPair:(e,t,r)=>{let n=Math.min(Math.min(e,t)/2,Math.min(e,t)*D(r,\"adj\",16667));return ke(`M ${g(n)} 0 A ${g(n)} ${g(n)} 0 0 0 0 ${g(n)} L 0 ${g(t-n)} A ${g(n)} ${g(n)} 0 0 0 ${g(n)} ${g(t)} M ${g(e-n)} 0 A ${g(n)} ${g(n)} 0 0 1 ${g(e)} ${g(n)} L ${g(e)} ${g(t-n)} A ${g(n)} ${g(n)} 0 0 1 ${g(e-n)} ${g(t)}`)},leftBrace:(e,t,r)=>{let n=Math.min(t/4,t*D(r,\"adj1\",8333)),o=t*D(r,\"adj2\",5e4);return ke(`M ${g(e)} 0 A ${g(e)} ${g(n)} 0 0 0 ${g(e/2)} ${g(n)} L ${g(e/2)} ${g(o-n)} A ${g(e/2)} ${g(n)} 0 0 1 0 ${g(o)} A ${g(e/2)} ${g(n)} 0 0 1 ${g(e/2)} ${g(o+n)} L ${g(e/2)} ${g(t-n)} A ${g(e)} ${g(n)} 0 0 0 ${g(e)} ${g(t)}`)},rightBrace:(e,t,r)=>{let n=Math.min(t/4,t*D(r,\"adj1\",8333)),o=t*D(r,\"adj2\",5e4);return ke(`M 0 0 A ${g(e)} ${g(n)} 0 0 1 ${g(e/2)} ${g(n)} L ${g(e/2)} ${g(o-n)} A ${g(e/2)} ${g(n)} 0 0 0 ${g(e)} ${g(o)} A ${g(e/2)} ${g(n)} 0 0 0 ${g(e/2)} ${g(o+n)} L ${g(e/2)} ${g(t-n)} A ${g(e)} ${g(n)} 0 0 1 0 ${g(t)}`)},bracePair:(e,t,r)=>{let n=Math.min(t/4,t*D(r,\"adj\",8333)),o=e/4;return ke(`M ${g(o)} 0 A ${g(o)} ${g(n)} 0 0 0 ${g(o)} ${g(n)} L ${g(o)} ${g(t/2-n)} A ${g(o)} ${g(n)} 0 0 1 0 ${g(t/2)} A ${g(o)} ${g(n)} 0 0 1 ${g(o)} ${g(t/2+n)} L ${g(o)} ${g(t-n)} A ${g(o)} ${g(n)} 0 0 0 ${g(o)} ${g(t)} M ${g(e-o)} 0 A ${g(o)} ${g(n)} 0 0 1 ${g(e-o)} ${g(n)} L ${g(e-o)} ${g(t/2-n)} A ${g(o)} ${g(n)} 0 0 0 ${g(e)} ${g(t/2)} A ${g(o)} ${g(n)} 0 0 0 ${g(e-o)} ${g(t/2+n)} L ${g(e-o)} ${g(t-n)} A ${g(o)} ${g(n)} 0 0 1 ${g(e-o)} ${g(t)}`)},ribbon:(e,t,r)=>{let n=t*D(r,\"adj1\",16667),o=e*D(r,\"adj2\",5e4)/2,i=e/2,s=[[0,0],[i-o,0],[i-o+n,t*.5],[i-o,t],[0,t],[n,t*.5]],l=[[e,0],[i+o,0],[i+o-n,t*.5],[i+o,t],[e,t],[e-n,t*.5]],a=[[i-o,0],[i+o,0],[i+o,t],[i-o,t]];return G(s)+\" \"+G(l)+\" \"+G(a)},ribbon2:(e,t,r)=>{let n=t*D(r,\"adj1\",16667),o=e*D(r,\"adj2\",5e4)/2,i=e/2,s=[[i-o,t],[i+o,t],[i+o,0],[i-o,0]],l=[[0,t],[i-o,t],[i-o+n,t*.5],[i-o,0],[0,0],[n,t*.5]],a=[[e,t],[i+o,t],[i+o-n,t*.5],[i+o,0],[e,0],[e-n,t*.5]];return G(s)+\" \"+G(l)+\" \"+G(a)},ellipseRibbon:(e,t,r)=>{let n=t*Math.min(D(r,\"adj3\",12500)*2,.5),o=t*Math.min(D(r,\"adj1\",25e3),.35),i=e*Math.min(D(r,\"adj2\",5e4)/2,.3),s=t*.12,l=`M 0 ${g(o)} Q ${g(e/2)} ${g(-o)} ${g(e)} ${g(o)} L ${g(e)} ${g(o+n)} Q ${g(e/2)} ${g(n-o)} 0 ${g(o+n)} Z`,a=c=>G([[c,o+n*.2],[c+i,o+n*.2],[c+i,t],[c+i/2,t-s],[c,t]]);return`${l} ${a(0)} ${a(e-i)}`},ellipseRibbon2:(e,t,r)=>{let n=t*Math.min(D(r,\"adj3\",12500)*2,.5),o=t*Math.min(D(r,\"adj1\",25e3),.35),i=e*Math.min(D(r,\"adj2\",5e4)/2,.3),s=t*.12,l=`M 0 ${g(t-o)} Q ${g(e/2)} ${g(t+o)} ${g(e)} ${g(t-o)} L ${g(e)} ${g(t-o-n)} Q ${g(e/2)} ${g(t+o-n)} 0 ${g(t-o-n)} Z`,a=c=>G([[c,t-o-n*.2],[c+i,t-o-n*.2],[c+i,0],[c+i/2,s],[c,0]]);return`${l} ${a(0)} ${a(e-i)}`},leftRightRibbon:(e,t,r)=>{let n=Math.min(t*Math.min(D(r,\"adj1\",5e4),1)/2,t/4),o=e*Math.min(D(r,\"adj2\",5e4),.9)/2,i=Math.min((e/2-o)*.6,Math.max(t*D(r,\"adj3\",16667)*2,1)),s=n*1.8,l=e/2,a=t/2;return G([[0,a],[i,a-s],[i,a-n],[l-o,a-n],[l-o,0],[l+o,0],[l+o,a-n],[e-i,a-n],[e-i,a-s],[e,a],[e-i,a+s],[e-i,a+n],[l+o,a+n],[l+o,t],[l-o,t],[l-o,a+n],[i,a+n],[i,a+s]])},verticalScroll:(e,t,r)=>{let n=Math.min(e,t)*Math.min(D(r,\"adj\",12500),.25);return`M ${g(n)} ${g(n)} L ${g(n)} ${g(t-n)} A ${g(n)} ${g(n)} 0 0 0 ${g(n*2)} ${g(t)} L ${g(e)} ${g(t)} L ${g(e)} ${g(n)} A ${g(n)} ${g(n)} 0 0 0 ${g(e-n*2)} ${g(n)} Z M ${g(n)} ${g(n)} A ${g(n)} ${g(n)} 0 0 1 ${g(n*2)} 0 L ${g(e-n)} 0 A ${g(n)} ${g(n)} 0 0 1 ${g(e-n*2)} ${g(n)} Z`},horizontalScroll:(e,t,r)=>{let n=Math.min(e,t)*Math.min(D(r,\"adj\",12500),.25);return`M ${g(n)} ${g(n)} L ${g(e-n)} ${g(n)} A ${g(n)} ${g(n)} 0 0 1 ${g(e)} ${g(n*2)} L ${g(e)} ${g(t)} L ${g(n*2)} ${g(t)} A ${g(n)} ${g(n)} 0 0 1 ${g(n)} ${g(t-n*2)} Z M ${g(n)} ${g(n)} A ${g(n)} ${g(n)} 0 0 0 0 ${g(n*2)} L 0 ${g(t-n)} A ${g(n)} ${g(n)} 0 0 0 ${g(n)} ${g(t-n*2)} Z`},wave:(e,t,r)=>{let n=t*Math.min(D(r,\"adj1\",12500),.4);return`M 0 ${g(n)} ${dr(n,e,n,!1)} L ${g(e)} ${g(t-n)} ${dr(t-n,e,n,!0)} Z`},doubleWave:(e,t,r)=>{let n=t*Math.min(D(r,\"adj1\",6250),.25),o=e/8,i=`C ${g(o)} ${g(n-n*2)} ${g(o*3)} ${g(n+n*2)} ${g(e/2)} ${g(n)} C ${g(e/2+o)} ${g(n-n*2)} ${g(e/2+o*3)} ${g(n+n*2)} ${g(e)} ${g(n)}`,s=`C ${g(e-o)} ${g(t-n+n*2)} ${g(e-o*3)} ${g(t-n-n*2)} ${g(e/2)} ${g(t-n)} C ${g(e/2-o)} ${g(t-n+n*2)} ${g(e/2-o*3)} ${g(t-n-n*2)} 0 ${g(t-n)}`;return`M 0 ${g(n)} ${i} L ${g(e)} ${g(t-n)} ${s} Z`},wedgeRectCallout:(e,t,r)=>{let{x1:n,x2:o,y1:i,y2:s,top:l,right:a,bottom:c,left:u}=Os(e,t,r);return G([[0,0],[n,0],l,[o,0],[e,0],[e,i],a,[e,s],[e,t],[o,t],c,[n,t],[0,t],[0,s],u,[0,i]])},wedgeRoundRectCallout:(e,t,r)=>{let{x1:n,x2:o,y1:i,y2:s,top:l,right:a,bottom:c,left:u}=Os(e,t,r),h=Math.min(e,t)*D(r,\"adj3\",16667),f=(d,p)=>`A ${g(h)} ${g(h)} 0 0 1 ${g(d)} ${g(p)}`,m=(...d)=>d.map(([p,b])=>`L ${g(p)} ${g(b)}`).join(\" \");return[`M 0 ${g(h)}`,f(h,0),m([n,0],l,[o,0],[e-h,0]),f(e,h),m([e,i],a,[e,s],[e,t-h]),f(e-h,t),m([o,t],c,[n,t],[h,t]),f(0,t-h),m([0,s],u,[0,i]),\"Z\"].join(\" \")},wedgeEllipseCallout:(e,t,r)=>{let[n,o]=yo(e,t,r),i=e/2,s=t/2,l=Math.atan2(o-s,n-i)*180/Math.PI,[a,c]=xe(i,s,e/2,t/2,l+8);return`M ${g(a)} ${g(c)} ${Re(i,s,e/2,t/2,l+8,344)} L ${g(n)} ${g(o)} Z`},cloudCallout:(e,t,r)=>{let[n,o]=yo(e,t,r);return dn.cloud(e,t*.8,{})+\" \"+we(e*.36,t*.88,e*.045,t*.045)+\" \"+we(n,o,e*.025,t*.025)},borderCallout1:Qe(1,!1),borderCallout2:Qe(2,!1),borderCallout3:Qe(3,!1),callout1:Qe(1,!1),callout2:Qe(2,!1),callout3:Qe(3,!1),accentCallout1:Qe(1,!0),accentCallout2:Qe(2,!0),accentCallout3:Qe(3,!0),accentBorderCallout1:Qe(1,!0),accentBorderCallout2:Qe(2,!0),accentBorderCallout3:Qe(3,!0),flowChartProcess:(e,t)=>G([[0,0],[e,0],[e,t],[0,t]]),flowChartAlternateProcess:(e,t)=>{let r=Math.min(e,t)*.1667;return Fs(e,t,[r,r,r,r],[\"r\",\"r\",\"r\",\"r\"])},flowChartDecision:(e,t)=>G([[e/2,0],[e,t/2],[e/2,t],[0,t/2]]),flowChartInputOutput:(e,t)=>G([[e*.2,0],[e,0],[e*.8,t],[0,t]]),flowChartPredefinedProcess:(e,t)=>G([[0,0],[e,0],[e,t],[0,t]])+\" \"+Se([[e/8,0],[e/8,t]])+\" \"+Se([[e*7/8,0],[e*7/8,t]]),flowChartInternalStorage:(e,t)=>G([[0,0],[e,0],[e,t],[0,t]])+\" \"+Se([[e/8,0],[e/8,t]])+\" \"+Se([[0,t/8],[e,t/8]]),flowChartDocument:(e,t)=>`M 0 0 L ${g(e)} 0 L ${g(e)} ${g(t*.84)} C ${g(e*.75)} ${g(t*1.06)} ${g(e*.25)} ${g(t*.62)} 0 ${g(t*.84)} Z`,flowChartMultidocument:(e,t)=>`M 0 ${g(t*.2)} L ${g(e*.9)} ${g(t*.2)} L ${g(e*.9)} ${g(t*.86)} C ${g(e*.68)} ${g(t*1.04)} ${g(e*.22)} ${g(t*.66)} 0 ${g(t*.86)} Z `+Se([[e*.05,t*.1],[e*.95,t*.1],[e*.95,t*.76]])+\" \"+Se([[e*.1,0],[e,0],[e,t*.66]]),flowChartTerminator:(e,t)=>{let r=Math.min(t/2,e/2);return`M ${g(r)} 0 L ${g(e-r)} 0 A ${g(r)} ${g(t/2)} 0 0 1 ${g(e-r)} ${g(t)} L ${g(r)} ${g(t)} A ${g(r)} ${g(t/2)} 0 0 1 ${g(r)} 0 Z`},flowChartPreparation:(e,t)=>G([[e*.2,0],[e*.8,0],[e,t/2],[e*.8,t],[e*.2,t],[0,t/2]]),flowChartManualInput:(e,t)=>G([[0,t*.2],[e,0],[e,t],[0,t]]),flowChartManualOperation:(e,t)=>G([[0,0],[e,0],[e*.8,t],[e*.2,t]]),flowChartConnector:(e,t)=>we(e/2,t/2,e/2,t/2),flowChartOffpageConnector:(e,t)=>G([[0,0],[e,0],[e,t*.8],[e/2,t],[0,t*.8]]),flowChartPunchedCard:(e,t)=>G([[e*.2,0],[e,0],[e,t],[0,t],[0,t*.2]]),flowChartPunchedTape:(e,t)=>`M 0 ${g(t*.11)} ${dr(t*.11,e,t*.11,!1)} L ${g(e)} ${g(t*.89)} ${dr(t*.89,e,t*.11,!0)} Z`,flowChartSummingJunction:(e,t)=>we(e/2,t/2,e/2,t/2)+\" \"+Se([[e*.1464,t*.1464],[e*(1-.1464),t*(1-.1464)]])+\" \"+Se([[e*(1-.1464),t*.1464],[e*.1464,t*(1-.1464)]]),flowChartOr:(e,t)=>we(e/2,t/2,e/2,t/2)+\" \"+Se([[e/2,0],[e/2,t]])+\" \"+Se([[0,t/2],[e,t/2]]),flowChartCollate:(e,t)=>G([[0,0],[e,0],[e/2,t/2],[e,t],[0,t],[e/2,t/2]]),flowChartSort:(e,t)=>G([[e/2,0],[e,t/2],[e/2,t],[0,t/2]])+\" \"+Se([[0,t/2],[e,t/2]]),flowChartExtract:(e,t)=>G([[e/2,0],[e,t],[0,t]]),flowChartMerge:(e,t)=>G([[0,0],[e,0],[e/2,t]]),flowChartOnlineStorage:(e,t)=>`M ${g(e*.16)} 0 L ${g(e)} 0 A ${g(e*.16)} ${g(t/2)} 0 0 0 ${g(e)} ${g(t)} L ${g(e*.16)} ${g(t)} A ${g(e*.16)} ${g(t/2)} 0 0 1 ${g(e*.16)} 0 Z`,flowChartOfflineStorage:(e,t)=>G([[0,0],[e,0],[e/2,t]])+\" \"+Se([[e*.1,t*.2],[e*.9,t*.2]]),flowChartMagneticTape:(e,t)=>we(e/2,t*.46,e/2,t*.46)+` M ${g(e*.5)} ${g(t*.92)} L ${g(e)} ${g(t*.92)} L ${g(e)} ${g(t)} L ${g(e*.5)} ${g(t)} Z`,flowChartMagneticDisk:(e,t)=>dn.can(e,t,{adj:25e3}),flowChartMagneticDrum:(e,t)=>{let r=Math.min(e/2,e*.125);return`M ${g(r)} 0 L ${g(e-r)} 0 ${Re(e-r,t/2,r,t/2,-90,180)} L ${g(r)} ${g(t)} ${Re(r,t/2,r,t/2,90,180)} Z `+Rs(e-r,t/2,r,t/2)},flowChartDisplay:(e,t)=>`M ${g(e*.16)} 0 L ${g(e*.84)} 0 A ${g(e*.16)} ${g(t/2)} 0 0 1 ${g(e*.84)} ${g(t)} L ${g(e*.16)} ${g(t)} L 0 ${g(t/2)} Z`,flowChartDelay:(e,t)=>`M 0 0 L ${g(e/2)} 0 A ${g(e/2)} ${g(t/2)} 0 0 1 ${g(e/2)} ${g(t)} L 0 ${g(t)} Z`,actionButtonBlank:(e,t)=>$o(e,t,Math.min(e,t)*.125),actionButtonHome:(e,t)=>st(e,t,(r,n,o)=>G([[n,o-r],[n+r,o],[n+r*.6,o],[n+r*.6,o+r],[n-r*.6,o+r],[n-r*.6,o],[n-r,o]])),actionButtonForwardNext:(e,t)=>st(e,t,(r,n,o)=>G([[n-r*.6,o-r],[n+r*.7,o],[n-r*.6,o+r]])),actionButtonBackPrevious:(e,t)=>st(e,t,(r,n,o)=>G([[n+r*.6,o-r],[n-r*.7,o],[n+r*.6,o+r]])),actionButtonBeginning:(e,t)=>st(e,t,(r,n,o)=>G([[n+r*.7,o-r],[n-r*.3,o],[n+r*.7,o+r]])+\" \"+G([[n-r*.7,o-r],[n-r*.45,o-r],[n-r*.45,o+r],[n-r*.7,o+r]])),actionButtonEnd:(e,t)=>st(e,t,(r,n,o)=>G([[n-r*.7,o-r],[n+r*.3,o],[n-r*.7,o+r]])+\" \"+G([[n+r*.45,o-r],[n+r*.7,o-r],[n+r*.7,o+r],[n+r*.45,o+r]])),actionButtonInformation:(e,t)=>st(e,t,(r,n,o)=>we(n,o,r,r)+\" \"+we(n,o-r*.45,r*.16,r*.16)+\" \"+G([[n-r*.16,o-r*.15],[n+r*.16,o-r*.15],[n+r*.16,o+r*.6],[n-r*.16,o+r*.6]])),actionButtonReturn:(e,t)=>st(e,t,(r,n,o)=>`M ${g(n-r*.6)} ${g(o+r*.7)} L ${g(n+r*.2)} ${g(o+r*.7)} A ${g(r*.5)} ${g(r*.5)} 0 0 0 ${g(n+r*.2)} ${g(o-r*.3)} L ${g(n-r*.2)} ${g(o-r*.3)} M ${g(n-r*.2)} ${g(o-r*.6)} L ${g(n-r*.6)} ${g(o-r*.3)} L ${g(n-r*.2)} ${g(o)} Z`),actionButtonDocument:(e,t)=>st(e,t,(r,n,o)=>G([[n-r*.55,o-r*.8],[n+r*.2,o-r*.8],[n+r*.55,o-r*.45],[n+r*.55,o+r*.8],[n-r*.55,o+r*.8]])),actionButtonSound:(e,t)=>st(e,t,(r,n,o)=>G([[n-r*.7,o-r*.3],[n-r*.3,o-r*.3],[n+r*.1,o-r*.8],[n+r*.1,o+r*.8],[n-r*.3,o+r*.3],[n-r*.7,o+r*.3]])+\" \"+Se([[n+r*.35,o-r*.4],[n+r*.75,o-r*.6]])+\" \"+Se([[n+r*.35,o],[n+r*.8,o]])+\" \"+Se([[n+r*.35,o+r*.4],[n+r*.75,o+r*.6]])),actionButtonMovie:(e,t)=>st(e,t,(r,n,o)=>G([[n-r*.8,o-r*.5],[n+r*.35,o-r*.5],[n+r*.35,o-r*.15],[n+r*.8,o-r*.45],[n+r*.8,o+r*.45],[n+r*.35,o+r*.15],[n+r*.35,o+r*.5],[n-r*.8,o+r*.5]])),actionButtonHelp:(e,t)=>st(e,t,(r,n,o)=>`M ${g(n-r*.35)} ${g(o-r*.3)} A ${g(r*.35)} ${g(r*.35)} 0 1 1 ${g(n)} ${g(o+r*.1)} L ${g(n)} ${g(o+r*.35)} `+we(n,o+r*.68,r*.13,r*.13)),chartX:(e,t)=>ke(`M 0 0 L ${g(e)} ${g(t)} M ${g(e)} 0 L 0 ${g(t)}`),chartPlus:(e,t)=>ke(`M ${g(e/2)} 0 L ${g(e/2)} ${g(t)} M 0 ${g(t/2)} L ${g(e)} ${g(t/2)}`),chartStar:(e,t)=>ke(`M 0 0 L ${g(e)} ${g(t)} M ${g(e)} 0 L 0 ${g(t)} M ${g(e/2)} 0 L ${g(e/2)} ${g(t)}`),line:(e,t)=>ke(`M 0 0 L ${g(e)} ${g(t)}`),lineInv:(e,t)=>ke(`M 0 ${g(t)} L ${g(e)} 0`),straightConnector1:(e,t)=>ke(`M 0 0 L ${g(e)} ${g(t)}`),bentConnector2:(e,t)=>ke(`M 0 0 L ${g(e)} 0 L ${g(e)} ${g(t)}`),bentConnector3:(e,t,r)=>{let n=e*D(r,\"adj1\",5e4);return ke(`M 0 0 L ${g(n)} 0 L ${g(n)} ${g(t)} L ${g(e)} ${g(t)}`)},bentConnector4:(e,t,r)=>{let n=e*D(r,\"adj1\",5e4),o=t*D(r,\"adj2\",5e4);return ke(`M 0 0 L ${g(n)} 0 L ${g(n)} ${g(o)} L ${g(e)} ${g(o)} L ${g(e)} ${g(t)}`)},bentConnector5:(e,t,r)=>{let n=e*D(r,\"adj1\",5e4),o=t*D(r,\"adj2\",5e4),i=e*D(r,\"adj3\",5e4);return ke(`M 0 0 L ${g(n)} 0 L ${g(n)} ${g(o)} L ${g(i)} ${g(o)} L ${g(i)} ${g(t)} L ${g(e)} ${g(t)}`)},curvedConnector2:(e,t)=>ke(`M 0 0 Q ${g(e)} 0 ${g(e)} ${g(t)}`),curvedConnector3:(e,t,r)=>{let n=e*D(r,\"adj1\",5e4);return ke(`M 0 0 C ${g(n)} 0 ${g(n)} ${g(t)} ${g(e)} ${g(t)}`)},curvedConnector4:(e,t)=>ke(`M 0 0 C ${g(e*.5)} 0 ${g(e*.5)} ${g(t*.5)} ${g(e*.75)} ${g(t*.5)} S ${g(e)} ${g(t*.75)} ${g(e)} ${g(t)}`),curvedConnector5:(e,t)=>ke(`M 0 0 C ${g(e*.4)} 0 ${g(e*.4)} ${g(t*.5)} ${g(e*.5)} ${g(t*.5)} S ${g(e*.6)} ${g(t)} ${g(e)} ${g(t)}`)};function nn(e,t,r,n){let o=dn[e]??dn.rect,i=Math.max(t,0),s=Math.max(r,0),l;try{let c=o(i,s,n);l=typeof c==\"string\"?{d:c,open:!1}:c}catch{return{d:dn.rect(i,s,{}),open:!1}}let a=Math.max(i,s)*20+1e3;for(let c of l.d.match(/-?\\d+(?:\\.\\d+)?/g)??[])if(Math.abs(Number(c))>a)return{d:dn.rect(i,s,{}),open:!1};return l}var pr=new Map([[\"xml\",\"http://www.w3.org/XML/1998/namespace\"]]),Uo=class{constructor(t){this.namespaceURI=null,this.attributes=[],this.childNodes=[],this.nextElementSibling=null,this.namespaceBindings=pr,this.tagName=t;let r=t.indexOf(\":\");this.prefix=r<0?null:t.slice(0,r),this.localName=r<0?t:t.slice(r+1)}resolveNamespaces(t){let r;for(let n of this.attributes)n.name===\"xmlns\"?(r??(r=new Map(t?.namespaceBindings??pr))).set(\"\",n.value):n.prefix===\"xmlns\"&&(r??(r=new Map(t?.namespaceBindings??pr))).set(n.localName,n.value);this.namespaceBindings=r??t?.namespaceBindings??pr,this.namespaceURI=this.lookupNamespaceURI(this.prefix);for(let n of this.attributes)n.name===\"xmlns\"||n.prefix===\"xmlns\"?n.namespaceURI=\"http://www.w3.org/2000/xmlns/\":n.prefix&&(n.namespaceURI=this.lookupNamespaceURI(n.prefix))}get firstElementChild(){for(let t of this.childNodes)if(typeof t!=\"string\")return t;return null}get children(){return this.childNodes.filter(t=>typeof t!=\"string\")}getAttribute(t){for(let r of this.attributes)if(r.name===t)return r.value;return null}lookupNamespaceURI(t){let r=t??\"\";return this.namespaceBindings.get(r)||null}get textContent(){let t=\"\";for(let r of this.childNodes)t+=typeof r==\"string\"?r:r.textContent;return t}getElementsByTagName(t){let r=[],n=o=>{for(let i of o.children)(t===\"*\"||i.localName===t||i.tagName===t)&&r.push(i),n(i)};return n(this),r}},Zu={amp:\"&\",lt:\"<\",gt:\">\",quot:'\"',apos:\"'\"};function Us(e){return e.indexOf(\"&\")<0?e:e.replace(/&(#x?[0-9a-fA-F]+|[a-zA-Z]+);/g,(t,r)=>{if(r[0]===\"#\"){let n=r[1]===\"x\"||r[1]===\"X\"?parseInt(r.slice(2),16):parseInt(r.slice(1),10);return Number.isFinite(n)&&n>=0?String.fromCodePoint(n):t}return Zu[r]??t})}function _u(e){let t=0,r=e.length,n=[],o=null,i=(s,l)=>{let a=s.children;a.length&&(a[a.length-1].nextElementSibling=l),s.childNodes.push(l)};for(;t<r;){let s=e.indexOf(\"<\",t);if(s<0)break;if(s>t){let p=e.slice(t,s);n.length&&p.trim()?n[n.length-1].childNodes.push(Us(p)):n.length&&p.includes(\" \")&&n[n.length-1].childNodes.push(p)}if(e.startsWith(\"<!--\",s)){let p=e.indexOf(\"-->\",s+4);t=p<0?r:p+3;continue}if(e.startsWith(\"<![CDATA[\",s)){let p=e.indexOf(\"]]>\",s+9),b=e.slice(s+9,p<0?r:p);n.length&&n[n.length-1].childNodes.push(b),t=p<0?r:p+3;continue}if(e.startsWith(\"<?\",s)||e.startsWith(\"<!\",s)){let p=e.indexOf(\">\",s);t=p<0?r:p+1;continue}if(e[s+1]===\"/\"){let p=e.indexOf(\">\",s);if(p<0)break;n.pop(),t=p+1;continue}let l=s+1,a=\"\";for(;l<r;){let p=e[l];if(a)p===a&&(a=\"\");else if(p==='\"'||p===\"'\")a=p;else if(p===\">\")break;l++}if(l>=r)break;let c=e[l-1]===\"/\",u=e.slice(s+1,c?l-1:l),h=0;for(;h<u.length&&!/[\\s/]/.test(u[h]);)h++;let f=new Uo(u.slice(0,h)),m=/([^\\s=/]+)\\s*=\\s*(\"([^\"]*)\"|'([^']*)')/g;m.lastIndex=h;let d;for(;(d=m.exec(u))!==null;){let p=d[1],b=p.indexOf(\":\");f.attributes.push({name:p,localName:b<0?p:p.slice(b+1),prefix:b<0?null:p.slice(0,b),namespaceURI:null,value:Us(d[3]??d[4]??\"\")})}f.resolveNamespaces(n[n.length-1]),n.length?i(n[n.length-1],f):o||(o=f),c||n.push(f),t=l+1}if(!o)throw new Error(\"XML \\u89E3\\u6790\\u5931\\u8D25\\uFF1A\\u672A\\u627E\\u5230\\u6839\\u5143\\u7D20\");return o}var Ds=typeof DOMParser<\"u\"?new DOMParser:null;function Tr(e){if(!Ds)return _u(e);let t=Ds.parseFromString(e,\"application/xml\"),r=t.getElementsByTagName(\"parsererror\")[0];if(r)throw new Error(\"XML \\u89E3\\u6790\\u5931\\u8D25: \"+(r.textContent??\"\").slice(0,200));return t.documentElement}function Q(e,t){let r=[];if(!e)return r;for(let n=e.firstElementChild;n;n=n.nextElementSibling)n.localName===t&&r.push(n);return r}function w(e,t){if(!e)return null;for(let r=e.firstElementChild;r;r=r.nextElementSibling)if(r.localName===t)return r;return null}function ee(e,...t){let r=e;for(let n of t)if(r=w(r,n),!r)return null;return r}function N(e,t){if(!e)return null;if(t.includes(\":\")){for(let o of Array.from(e.attributes))if(o.name===t)return o.value;let n=t.split(\":\")[1];for(let o of Array.from(e.attributes))if(o.localName===n)return o.value;return null}let r=e.getAttribute(t);if(r!==null)return r;for(let n of Array.from(e.attributes))if(n.localName===t)return n.value;return null}function U(e,t){let r=N(e,t);if(r===null||r===\"\")return null;let n=Number(r);return Number.isFinite(n)?n:null}function ye(e,t,r=!1){let n=N(e,t);return n===null?r:n===\"1\"||n===\"true\"}var ie=e=>(e??0)/9525,gn=e=>e/100*(96/72),Ku={window:\"FFFFFF\",windowText:\"000000\"},Qu={black:\"000000\",white:\"FFFFFF\",red:\"FF0000\",green:\"008000\",lime:\"00FF00\",blue:\"0000FF\",yellow:\"FFFF00\",cyan:\"00FFFF\",magenta:\"FF00FF\",gray:\"808080\",ltGray:\"C0C0C0\",dkGray:\"404040\",orange:\"FFA500\",purple:\"800080\",brown:\"A52A2A\"},Ju=[\"srgbClr\",\"schemeClr\",\"sysClr\",\"prstClr\",\"scrgbClr\",\"hslClr\"];function ge(e,t){if(!e)return null;for(let r of Ju){let n=w(e,r);if(n)return ti(n,t)}return null}function ti(e,t){let r=eh(e,t),n=1;for(let l=e.firstElementChild;l;l=l.nextElementSibling){let a=(U(l,\"val\")??0)/1e5;switch(l.localName){case\"alpha\":n=a;break;case\"shade\":r=Bs(r,c=>c*a);break;case\"tint\":r=Bs(r,c=>c*a+(1-a));break;case\"lumMod\":r=Mo(r,(c,u,h)=>[c,u,h*a]);break;case\"lumOff\":r=Mo(r,(c,u,h)=>[c,u,h+a]);break;case\"satMod\":r=Mo(r,(c,u,h)=>[c,u*a,h]);break}}let[o,i,s]=r.map(l=>Math.round(yr(l,0,255)));return n>=1?`rgb(${o},${i},${s})`:`rgba(${o},${i},${s},${Math.round(n*1e3)/1e3})`}function eh(e,t){switch(e.localName){case\"srgbClr\":return Rn(N(e,\"val\")??\"000000\");case\"sysClr\":return Rn(N(e,\"lastClr\")??Ku[N(e,\"val\")??\"\"]??\"000000\");case\"prstClr\":return Rn(Qu[N(e,\"val\")??\"\"]??\"808080\");case\"scrgbClr\":return[(U(e,\"r\")??0)/1e5*255,(U(e,\"g\")??0)/1e5*255,(U(e,\"b\")??0)/1e5*255];case\"hslClr\":return xl((U(e,\"hue\")??0)/6e4/360,(U(e,\"sat\")??0)/1e5,(U(e,\"lum\")??0)/1e5);case\"schemeClr\":{let r=N(e,\"val\")??\"tx1\";if(r===\"phClr\")return t.phClr?bl(t.phClr):[128,128,128];let n=t.clrMap[r]??r;return Rn(t.theme[n]??t.theme[r]??\"000000\")}}return[0,0,0]}function bl(e){let t=e.match(/rgba?\\(([^)]+)\\)/);if(t){let r=t[1].split(\",\").map(n=>Number(n.trim()));return[r[0]||0,r[1]||0,r[2]||0]}return Rn(e)}function Rn(e){let t=e.replace(\"#\",\"\").padStart(6,\"0\");return[parseInt(t.slice(0,2),16)||0,parseInt(t.slice(2,4),16)||0,parseInt(t.slice(4,6),16)||0]}function yr(e,t,r){return Math.min(r,Math.max(t,e))}var th=e=>{let t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4},nh=e=>{let t=yr(e,0,1);return(t<=.0031308?t*12.92:1.055*t**(1/2.4)-.055)*255};function Bs(e,t){return e.map(r=>nh(t(th(r))))}function Mo(e,t){let[r,n,o]=rh(e),[i,s,l]=t(r,n,o);return xl(i,yr(s,0,1),yr(l,0,1))}function rh([e,t,r]){e/=255,t/=255,r/=255;let n=Math.max(e,t,r),o=Math.min(e,t,r),i=(n+o)/2;if(n===o)return[0,0,i];let s=n-o,l=i>.5?s/(2-n-o):s/(n+o),a;return n===e?a=(t-r)/s+(t<r?6:0):n===t?a=(r-e)/s+2:a=(e-t)/s+4,[a/6,l,i]}function xl(e,t,r){if(t===0)return[r*255,r*255,r*255];let n=r<.5?r*(1+t):r+t-r*t,o=2*r-n,i=s=>(s<0&&(s+=1),s>1&&(s-=1),s<1/6?o+(n-o)*6*s:s<1/2?n:s<2/3?o+(n-o)*(2/3-s)*6:o);return[i(e+1/3)*255,i(e)*255,i(e-1/3)*255]}var Pe=Uint8Array,qe=Uint16Array,ni=Int32Array,Lr=new Pe([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Ar=new Pe([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Do=new Pe([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),vl=function(e,t){for(var r=new qe(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];for(var o=new ni(r[30]),n=1;n<30;++n)for(var i=r[n];i<r[n+1];++i)o[i]=i-r[n]<<5|n;return{b:r,r:o}},wl=vl(Lr,2),yl=wl.b,Bo=wl.r;yl[28]=258,Bo[258]=28;var $l=vl(Ar,0),oh=$l.b,Hs=$l.r,Ho=new qe(32768);for(le=0;le<32768;++le)Et=(le&43690)>>1|(le&21845)<<1,Et=(Et&52428)>>2|(Et&13107)<<2,Et=(Et&61680)>>4|(Et&3855)<<4,Ho[le]=((Et&65280)>>8|(Et&255)<<8)>>1;var Et,le,xt=function(e,t,r){for(var n=e.length,o=0,i=new qe(t);o<n;++o)e[o]&&++i[e[o]-1];var s=new qe(t);for(o=1;o<t;++o)s[o]=s[o-1]+i[o-1]<<1;var l;if(r){l=new qe(1<<t);var a=15-t;for(o=0;o<n;++o)if(e[o])for(var c=o<<4|e[o],u=t-e[o],h=s[e[o]-1]++<<u,f=h|(1<<u)-1;h<=f;++h)l[Ho[h]>>a]=c}else for(l=new qe(n),o=0;o<n;++o)e[o]&&(l[o]=Ho[s[e[o]-1]++]>>15-e[o]);return l},Gt=new Pe(288);for(le=0;le<144;++le)Gt[le]=8;var le;for(le=144;le<256;++le)Gt[le]=9;var le;for(le=256;le<280;++le)Gt[le]=7;var le;for(le=280;le<288;++le)Gt[le]=8;var le,jn=new Pe(32);for(le=0;le<32;++le)jn[le]=5;var le,ih=xt(Gt,9,0),sh=xt(Gt,9,1),lh=xt(jn,5,0),ah=xt(jn,5,1),ko=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},lt=function(e,t,r){var n=t/8|0;return(e[n]|e[n+1]<<8)>>(t&7)&r},Co=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},ri=function(e){return(e+7)/8|0},Pr=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new Pe(e.subarray(t,r))},ch=[\"unexpected EOF\",\"invalid block type\",\"invalid length/literal\",\"invalid distance\",\"stream finished\",\"no stream handler\",,\"no callback\",\"invalid UTF-8 data\",\"extra field too long\",\"date not in range 1980-2099\",\"filename too long\",\"stream finishing\",\"invalid zip data\"],He=function(e,t,r){var n=new Error(t||ch[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,He),!r)throw n;return n},Ml=function(e,t,r,n){var o=e.length,i=n?n.length:0;if(!o||t.f&&!t.l)return r||new Pe(0);var s=!r,l=s||t.i!=2,a=t.i;s&&(r=new Pe(o*3));var c=function(mt){var zt=r.length;if(mt>zt){var St=new Pe(Math.max(zt*2,mt));St.set(r),r=St}},u=t.f||0,h=t.p||0,f=t.b||0,m=t.l,d=t.d,p=t.m,b=t.n,v=o*8;do{if(!m){u=lt(e,h,1);var x=lt(e,h+1,3);if(h+=3,x)if(x==1)m=sh,d=ah,p=9,b=5;else if(x==2){var M=lt(e,h,31)+257,S=lt(e,h+10,15)+4,y=M+lt(e,h+5,31)+1;h+=14;for(var $=new Pe(y),k=new Pe(19),A=0;A<S;++A)k[Do[A]]=lt(e,h+A*3,7);h+=S*3;for(var L=ko(k),P=(1<<L)-1,E=xt(k,L,1),A=0;A<y;){var T=E[lt(e,h,P)];h+=T&15;var I=T>>4;if(I<16)$[A++]=I;else{var O=0,R=0;for(I==16?(R=3+lt(e,h,3),h+=2,O=$[A-1]):I==17?(R=3+lt(e,h,7),h+=3):I==18&&(R=11+lt(e,h,127),h+=7);R--;)$[A++]=O}}var z=$.subarray(0,M),j=$.subarray(M);p=ko(z),b=ko(j),m=xt(z,p,1),d=xt(j,b,1)}else He(1);else{var I=ri(h)+4,F=e[I-4]|e[I-3]<<8,W=I+F;if(W>o){a&&He(0);break}l&&c(f+F),r.set(e.subarray(I,W),f),t.b=f+=F,t.p=h=W*8,t.f=u;continue}if(h>v){a&&He(0);break}}l&&c(f+131072);for(var V=(1<<p)-1,B=(1<<b)-1,q=h;;q=h){var O=m[Co(e,h)&V],X=O>>4;if(h+=O&15,h>v){a&&He(0);break}if(O||He(2),X<256)r[f++]=X;else if(X==256){q=h,m=null;break}else{var K=X-254;if(X>264){var A=X-257,Y=Lr[A];K=lt(e,h,(1<<Y)-1)+yl[A],h+=Y}var se=d[Co(e,h)&B],ue=se>>4;se||He(3),h+=se&15;var j=oh[ue];if(ue>3){var Y=Ar[ue];j+=Co(e,h)&(1<<Y)-1,h+=Y}if(h>v){a&&He(0);break}l&&c(f+131072);var fe=f+K;if(f<j){var de=i-j,it=Math.min(j,fe);for(de+f<0&&He(3);f<it;++f)r[f]=n[de+f]}for(;f<fe;++f)r[f]=r[f-j]}}t.l=m,t.p=q,t.b=f,t.f=u,m&&(u=1,t.m=p,t.d=d,t.n=b)}while(!u);return f!=r.length&&s?Pr(r,0,f):r.subarray(0,f)},Tt=function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8},Pn=function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8,e[n+2]|=r>>16},So=function(e,t){for(var r=[],n=0;n<e.length;++n)e[n]&&r.push({s:n,f:e[n]});var o=r.length,i=r.slice();if(!o)return{t:Cl,l:0};if(o==1){var s=new Pe(r[0].s+1);return s[r[0].s]=1,{t:s,l:1}}r.sort(function(y,$){return y.f-$.f}),r.push({s:-1,f:25001});var l=r[0],a=r[1],c=0,u=1,h=2;for(r[0]={s:-1,f:l.f+a.f,l,r:a};u!=o-1;)l=r[r[c].f<r[h].f?c++:h++],a=r[c!=u&&r[c].f<r[h].f?c++:h++],r[u++]={s:-1,f:l.f+a.f,l,r:a};for(var f=i[0].s,n=1;n<o;++n)i[n].s>f&&(f=i[n].s);var m=new qe(f+1),d=Wo(r[u-1],m,0);if(d>t){var n=0,p=0,b=d-t,v=1<<b;for(i.sort(function($,k){return m[k.s]-m[$.s]||$.f-k.f});n<o;++n){var x=i[n].s;if(m[x]>t)p+=v-(1<<d-m[x]),m[x]=t;else break}for(p>>=b;p>0;){var M=i[n].s;m[M]<t?p-=1<<t-m[M]++-1:++n}for(;n>=0&&p;--n){var S=i[n].s;m[S]==t&&(--m[S],++p)}d=t}return{t:new Pe(m),l:d}},Wo=function(e,t,r){return e.s==-1?Math.max(Wo(e.l,t,r+1),Wo(e.r,t,r+1)):t[e.s]=r},Ws=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new qe(++t),n=0,o=e[0],i=1,s=function(a){r[n++]=a},l=1;l<=t;++l)if(e[l]==o&&l!=t)++i;else{if(!o&&i>2){for(;i>138;i-=138)s(32754);i>2&&(s(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(s(o),--i;i>6;i-=6)s(8304);i>2&&(s(i-3<<5|8208),i=0)}for(;i--;)s(o);i=1,o=e[l]}return{c:r.subarray(0,n),n:t}},In=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},kl=function(e,t,r){var n=r.length,o=ri(t+2);e[o]=n&255,e[o+1]=n>>8,e[o+2]=e[o]^255,e[o+3]=e[o+1]^255;for(var i=0;i<n;++i)e[o+i+4]=r[i];return(o+4+n)*8},Vs=function(e,t,r,n,o,i,s,l,a,c,u){Tt(t,u++,r),++o[256];for(var h=So(o,15),f=h.t,m=h.l,d=So(i,15),p=d.t,b=d.l,v=Ws(f),x=v.c,M=v.n,S=Ws(p),y=S.c,$=S.n,k=new qe(19),A=0;A<x.length;++A)++k[x[A]&31];for(var A=0;A<y.length;++A)++k[y[A]&31];for(var L=So(k,7),P=L.t,E=L.l,T=19;T>4&&!P[Do[T-1]];--T);var I=c+5<<3,O=In(o,Gt)+In(i,jn)+s,R=In(o,f)+In(i,p)+s+14+3*T+In(k,P)+2*k[16]+3*k[17]+7*k[18];if(a>=0&&I<=O&&I<=R)return kl(t,u,e.subarray(a,a+c));var z,j,F,W;if(Tt(t,u,1+(R<O)),u+=2,R<O){z=xt(f,m,0),j=f,F=xt(p,b,0),W=p;var V=xt(P,E,0);Tt(t,u,M-257),Tt(t,u+5,$-1),Tt(t,u+10,T-4),u+=14;for(var A=0;A<T;++A)Tt(t,u+3*A,P[Do[A]]);u+=3*T;for(var B=[x,y],q=0;q<2;++q)for(var X=B[q],A=0;A<X.length;++A){var K=X[A]&31;Tt(t,u,V[K]),u+=P[K],K>15&&(Tt(t,u,X[A]>>5&127),u+=X[A]>>12)}}else z=ih,j=Gt,F=lh,W=jn;for(var A=0;A<l;++A){var Y=n[A];if(Y>255){var K=Y>>18&31;Pn(t,u,z[K+257]),u+=j[K+257],K>7&&(Tt(t,u,Y>>23&31),u+=Lr[K]);var se=Y&31;Pn(t,u,F[se]),u+=W[se],se>3&&(Pn(t,u,Y>>5&8191),u+=Ar[se])}else Pn(t,u,z[Y]),u+=j[Y]}return Pn(t,u,z[256]),u+j[256]},uh=new ni([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Cl=new Pe(0),hh=function(e,t,r,n,o,i){var s=i.z||e.length,l=new Pe(n+s+5*(1+Math.ceil(s/7e3))+o),a=l.subarray(n,l.length-o),c=i.l,u=(i.r||0)&7;if(t){u&&(a[0]=i.r>>3);for(var h=uh[t-1],f=h>>13,m=h&8191,d=(1<<r)-1,p=i.p||new qe(32768),b=i.h||new qe(d+1),v=Math.ceil(r/3),x=2*v,M=function(bo){return(e[bo]^e[bo+1]<<v^e[bo+2]<<x)&d},S=new ni(25e3),y=new qe(288),$=new qe(32),k=0,A=0,L=i.i||0,P=0,E=i.w||0,T=0;L+2<s;++L){var I=M(L),O=L&32767,R=b[I];if(p[O]=R,b[I]=O,E<=L){var z=s-L;if((k>7e3||P>24576)&&(z>423||!c)){u=Vs(e,a,0,S,y,$,A,P,T,L-T,u),P=k=A=0,T=L;for(var j=0;j<286;++j)y[j]=0;for(var j=0;j<30;++j)$[j]=0}var F=2,W=0,V=m,B=O-R&32767;if(z>2&&I==M(L-B))for(var q=Math.min(f,z)-1,X=Math.min(32767,L),K=Math.min(258,z);B<=X&&--V&&O!=R;){if(e[L+F]==e[L+F-B]){for(var Y=0;Y<K&&e[L+Y]==e[L+Y-B];++Y);if(Y>F){if(F=Y,W=B,Y>q)break;for(var se=Math.min(B,Y-2),ue=0,j=0;j<se;++j){var fe=L-B+j&32767,de=p[fe],it=fe-de&32767;it>ue&&(ue=it,R=fe)}}}O=R,R=p[O],B+=O-R&32767}if(W){S[P++]=268435456|Bo[F]<<18|Hs[W];var mt=Bo[F]&31,zt=Hs[W]&31;A+=Lr[mt]+Ar[zt],++y[257+mt],++$[zt],E=L+F,++k}else S[P++]=e[L],++y[e[L]]}}for(L=Math.max(L,E);L<s;++L)S[P++]=e[L],++y[e[L]];u=Vs(e,a,c,S,y,$,A,P,T,L-T,u),c||(i.r=u&7|a[u/8|0]<<3,u-=7,i.h=b,i.p=p,i.i=L,i.w=E)}else{for(var L=i.w||0;L<s+c;L+=65535){var St=L+65535;St>=s&&(a[u/8|0]=c,St=s),u=kl(a,u+1,e.subarray(L,St))}i.i=s}return Pr(l,0,n+ri(u)+o)},Sl=function(){var e=1,t=0;return{p:function(r){for(var n=e,o=t,i=r.length|0,s=0;s!=i;){for(var l=Math.min(s+2655,i);s<l;++s)o+=n+=r[s];n=(n&65535)+15*(n>>16),o=(o&65535)+15*(o>>16)}e=n,t=o},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},fh=function(e,t,r,n,o){if(!o&&(o={l:1},t.dictionary)){var i=t.dictionary.subarray(-32768),s=new Pe(i.length+e.length);s.set(i),s.set(e,i.length),e=s,o.w=i.length}return hh(e,t.level==null?6:t.level,t.mem==null?o.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,r,n,o)},bt=function(e,t){return e[t]|e[t+1]<<8},et=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},Eo=function(e,t){return et(e,t)+et(e,t+4)*4294967296},El=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8},dh=function(e,t){var r=t.level,n=r==0?0:r<6?1:r==9?3:2;if(e[0]=120,e[1]=n<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var o=Sl();o.p(t.dictionary),El(e,2,o.d())}},ph=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&He(6,\"invalid zlib data\"),(e[1]>>5&1)==+!t&&He(6,\"invalid zlib data: \"+(e[1]&32?\"need\":\"unexpected\")+\" dictionary\"),(e[1]>>3&4)+2};function oi(e,t){return Ml(e,{i:2},t&&t.out,t&&t.dictionary)}function Tl(e,t){t||(t={});var r=Sl();r.p(e);var n=fh(e,t,t.dictionary?6:2,4);return dh(n,t),El(n,n.length-4,r.d()),n}function Ll(e,t){return Ml(e.subarray(ph(e,t&&t.dictionary),-4),{i:2},t&&t.out,t&&t.dictionary)}var Vo=typeof TextDecoder<\"u\"&&new TextDecoder,mh=0;try{Vo.decode(Cl,{stream:!0}),mh=1}catch{}var gh=function(e){for(var t=\"\",r=0;;){var n=e[r++],o=(n>127)+(n>223)+(n>239);if(r+o>e.length)return{s:t,r:Pr(e,r-1)};o?o==3?(n=((n&15)<<18|(e[r++]&63)<<12|(e[r++]&63)<<6|e[r++]&63)-65536,t+=String.fromCharCode(55296|n>>10,56320|n&1023)):o&1?t+=String.fromCharCode((n&31)<<6|e[r++]&63):t+=String.fromCharCode((n&15)<<12|(e[r++]&63)<<6|e[r++]&63):t+=String.fromCharCode(n)}};function bh(e,t){if(t){for(var r=\"\",n=0;n<e.length;n+=16384)r+=String.fromCharCode.apply(null,e.subarray(n,n+16384));return r}else{if(Vo)return Vo.decode(e);var o=gh(e),i=o.s,r=o.r;return r.length&&He(8),i}}var xh=function(e,t){return t+30+bt(e,t+26)+bt(e,t+28)},vh=function(e,t,r){var n=bt(e,t+28),o=bt(e,t+30),i=bh(e.subarray(t+46,t+46+n),!(bt(e,t+8)&2048)),s=t+46+n,l=wh(e,s,o,r,et(e,t+20),et(e,t+24),et(e,t+42)),a=l[0],c=l[1],u=l[2];return[bt(e,t+10),a,c,i,s+o+bt(e,t+32),u]},wh=function(e,t,r,n,o,i,s){var l=o==4294967295,a=i==4294967295,c=s==4294967295,u=t+r,h=l+a+c;if(n&&h){for(;t+4<u;t+=4+bt(e,t+2))if(bt(e,t)==1)return[l?Eo(e,t+4+8*a):o,a?Eo(e,t+4):i,c?Eo(e,t+4+8*(a+l)):s,1];n<2&&He(13)}return[o,i,s,0]};function Go(e,t){for(var r={},n=e.length-22;et(e,n)!=101010256;--n)(!n||e.length-n>65558)&&He(13);var o=bt(e,n+8);if(!o)return{};var i=et(e,n+16),s=et(e,n-20)==117853008;if(s){var l=et(e,n-12);s=et(e,l)==101075792,s&&(o=et(e,l+32),i=et(e,l+48))}for(var a=t&&t.filter,c=0;c<o;++c){var u=vh(e,i,s),h=u[0],f=u[1],m=u[2],d=u[3],p=u[4],b=u[5],v=xh(e,b);i=p,(!a||a({name:d,size:f,originalSize:m,compression:h}))&&(h?h==8?r[d]=oi(e.subarray(v,v+f),{out:new Pe(m)}):He(14,\"unknown compression type \"+h):r[d]=Pr(e,v,v+f))}return r}var Ae=(e,t,r)=>[...r].every((n,o)=>e[t+o]===n.charCodeAt(0)),Dt=(e,t)=>e[t]*256+e[t+1],at=(e,t)=>e[t]+e[t+1]*256,Gs=(e,t)=>e[t]+e[t+1]*256+e[t+2]*65536,on=(e,t)=>e[t]*16777216+e[t+1]*65536+e[t+2]*256+e[t+3],Lt=(e,t)=>e[t]+e[t+1]*256+e[t+2]*65536+e[t+3]*16777216>>>0,mr=(e,t)=>{let r=Dt(e,t);return r>32767?r-65536:r},gr=(e,t)=>{let r=at(e,t);return r>32767?r-65536:r},Je=(e,t)=>Lt(e,t)|0,Ze=(e,t,r=96,n=96)=>Number.isFinite(e)&&Number.isFinite(t)&&e>0&&t>0?{width:e,height:t,dpiX:r>0?r:96,dpiY:n>0?n:96}:null;function yh(e){if(e.length<24||!Ae(e,1,\"PNG\"))return null;let t=on(e,16),r=on(e,20),n=96,o=96;for(let i=8;i+12<=e.length;){let s=on(e,i);if(s>e.length-i-12)break;Ae(e,i+4,\"pHYs\")&&s===9&&e[i+16]===1&&(n=on(e,i+8)*.0254,o=on(e,i+12)*.0254),i+=s+12}return Ze(t,r,n,o)}var $h=new Set([192,193,194,195,197,198,199,201,202,203,205,206,207]);function Mh(e,t,r){if(t+14>r||!Ae(e,t,\"Exif\\0\\0\"))return null;let n=t+6,o=Ae(e,n,\"II\");if(!o&&!Ae(e,n,\"MM\"))return null;let i=(d,p)=>d>=n&&d+p<=r,s=d=>o?at(e,d):Dt(e,d),l=d=>o?Lt(e,d):on(e,d);if(!i(n,8)||s(n+2)!==42)return null;let a=n+l(n+4);if(!i(a,2))return null;let c=0,u=0,h=2,f=s(a);for(let d=0;d<f;d++){let p=a+2+d*12;if(!i(p,12))break;let b=s(p),v=s(p+2),x=l(p+4),M=0;if(x===1&&v===3)M=s(p+8);else if(x===1&&v===5){let S=n+l(p+8);i(S,8)&&(M=l(S)/Math.max(l(S+4),1))}b===282?c=M:b===283?u=M:b===296&&M&&(h=M)}let m=h===3?2.54:h===2?1:0;return c>0&&m?[c*m,(u||c)*m]:null}function kh(e){if(e.length<12||e[0]!==255||e[1]!==216)return null;let t=0,r=0,n=null,o=null;for(let s=2;s+4<=e.length;){if(e[s++]!==255)continue;for(;e[s]===255;)s++;let l=e[s++];if(l===218||l===217)break;if(l===1||l>=208&&l<=215)continue;if(s+2>e.length)break;let a=Dt(e,s);if(a<2||s+a>e.length)break;let c=s+2;if(l===224&&a>=14&&Ae(e,c,\"JFIF\\0\")){let u=e[c+7],h=u===1?1:u===2?2.54:0;h&&(n=[Dt(e,c+8)*h,Dt(e,c+10)*h])}else l===225&&a>=16?o??(o=Mh(e,c,s+a)):$h.has(l)&&a>=7&&(r=Dt(e,c+1),t=Dt(e,c+3));s+=a}let i=n??o??[96,96];return Ze(t,r,i[0],i[1])}function Ch(e){return e.length<10||!Ae(e,0,\"GIF87a\")&&!Ae(e,0,\"GIF89a\")?null:Ze(at(e,6),at(e,8))}function Sh(e){if(e.length<26||!Ae(e,0,\"BM\"))return null;let t=Lt(e,14);if(t===12)return Ze(at(e,18),at(e,20));if(t<40||e.length<46)return null;let r=Math.abs(Je(e,18)),n=Math.abs(Je(e,22)),o=Je(e,38)*.0254,i=Je(e,42)*.0254;return Ze(r,n,o,i)}function Eh(e){if(e.length<30||!Ae(e,0,\"RIFF\")||!Ae(e,8,\"WEBP\"))return null;for(let t=12;t+8<=e.length;){let r=Lt(e,t+4),n=t+8;if(r>e.length-n)break;if(Ae(e,t,\"VP8X\")&&r>=10)return Ze(Gs(e,n+4)+1,Gs(e,n+7)+1);if(Ae(e,t,\"VP8L\")&&r>=5&&e[n]===47){let o=Lt(e,n+1);return Ze((o&16383)+1,(o>>>14&16383)+1)}if(Ae(e,t,\"VP8 \")&&r>=10&&Ae(e,n+3,\"\\x9D\u0001*\"))return Ze(at(e,n+6)&16383,at(e,n+8)&16383);t=n+r+(r&1)}return null}function Th(e){if(e.length<16)return null;let t=Ae(e,0,\"II\");if(!t&&!Ae(e,0,\"MM\"))return null;let r=c=>t?at(e,c):Dt(e,c),n=c=>t?Lt(e,c):on(e,c);if(r(2)!==42)return null;let o=n(4);if(o+2>e.length)return null;let i=r(o),s=new Map;for(let c=0;c<i;c++){let u=o+2+c*12;if(u+12>e.length)break;let h=r(u),f=r(u+2),m=n(u+4),d=0;if(m===1&&f===3)d=r(u+8);else if(m===1&&f===4)d=n(u+8);else if(m===1&&f===5){let p=n(u+8);p+8<=e.length&&(d=n(p)/Math.max(n(p+4),1))}d&&s.set(h,d)}let l=s.get(296)??2,a=l===3?2.54:l===2?1:0;return Ze(s.get(256)??0,s.get(257)??0,a?(s.get(282)??96)*a:96,a?(s.get(283)??s.get(282)??96)*a:96)}function Lh(e){var t,r;let n=(t=new TextDecoder().decode(e.subarray(0,Math.min(e.length,65536))).match(/<svg\\b[^>]*>/i))==null?void 0:t[0];if(!n)return null;let o=a=>{var c;let u=(c=n.match(new RegExp(`\\\\b${a}\\\\s*=\\\\s*[\"']([^\"']+)[\"']`,\"i\")))==null?void 0:c[1],h=u?.trim().match(/^([0-9]+(?:\\.[0-9]+)?)(px|in|cm|mm|pt|pc)?$/i);if(!h)return null;let f={px:1,in:96,cm:96/2.54,mm:96/25.4,pt:96/72,pc:16};return Number(h[1])*f[(h[2]??\"px\").toLowerCase()]},i=o(\"width\"),s=o(\"height\"),l=(r=n.match(/\\bviewBox\\s*=\\s*[\"']([^\"']+)[\"']/i))==null?void 0:r[1].trim().split(/[ ,]+/).map(Number);return(!i||!s)&&l?.length===4&&l.every(Number.isFinite)&&(i||(i=Math.abs(l[2])),s||(s=Math.abs(l[3]))),Ze(i??0,s??0)}function Ah(e){if(e.length>=44&&Lt(e,0)===1&&Lt(e,40)===1179469088){let t=Math.abs(Je(e,16)-Je(e,8)),r=Math.abs(Je(e,20)-Je(e,12)),n=Math.abs(Je(e,32)-Je(e,24)),o=Math.abs(Je(e,36)-Je(e,28));return Ze(t||n*96/2540,r||o*96/2540,n?t*2540/n:96,o?r*2540/o:96)}if(e.length>=22&&Lt(e,0)===2596720087)return Ze(Math.abs(gr(e,10)-gr(e,6)),Math.abs(gr(e,12)-gr(e,8)),at(e,14),at(e,14));for(let t of[512,0]){if(t+14>e.length)continue;let r=mr(e,t+2),n=mr(e,t+4),o=mr(e,t+6),i=mr(e,t+8);if(i>n&&o>r)return Ze(i-n,o-r,72,72)}return null}function Ph(e){return yh(e)??kh(e)??Ch(e)??Sh(e)??Eh(e)??Th(e)??Lh(e)??Ah(e)}var Al=null,Pl=null,zn=new WeakMap;function Xs(e,t){let r=t?zn.get(t):Pl;r?zn.set(e,r):zn.delete(e)}function Ih(e,t){return zn.has(t)&&/^http:\\/\\/schemas.microsoft.com\\/office\\/drawing\\/(2014|2015\\/9\\/8|2015\\/10\\/21|2016\\/5\\/(9|10|11|12|13|14|15))\\/chartex$/.test(e)}function Il(e){Al=e}function Nh(e=!1,t){return e?t?zn.get(t)??null:Pl:Al}var Xo=null;function Nl(e){Xo=e}function ii(e,t){if(!Xo)return null;let r=null;try{r=Xo(e,t)}catch{return null}if(!r)return null;try{return`data:image/svg+xml;charset=utf-8,${encodeURIComponent(r)}`}catch{return null}}var Rh=new Set([\"emf\",\"wmf\",\"pict\",\"pct\",\"pic\"]),Oh={1:\"appear\",2:\"fly\",3:\"blinds\",4:\"zoom\",5:\"checkerboard\",6:\"circle\",7:\"fly\",8:\"diamond\",9:\"dissolve\",10:\"fade\",11:\"appear\",12:\"fly\",13:\"plus\",14:\"randomBar\",15:\"spin\",16:\"split\",17:\"stretch\",18:\"strips\",19:\"swivel\",20:\"wheel\",21:\"wheel\",22:\"wipe\",23:\"zoom\",24:\"random\",25:\"bounce\",26:\"bounce\",28:\"fade\",29:\"float\",30:\"float\",31:\"grow\",32:\"spin\",33:\"float\",34:\"swivel\",35:\"fly\",36:\"stretch\",37:\"stretch\",38:\"fly\",39:\"float\",40:\"spin\",41:\"swivel\",42:\"float\",43:\"fly\",44:\"spin\",45:\"stretch\",46:\"stretch\",47:\"float\",48:\"zoom\",49:\"fly\",50:\"stretch\",51:\"swivel\",52:\"stretch\",53:\"grow\",59:\"grow\",61:\"spin\",62:\"fade\"},Ys={1:\"u\",2:\"r\",4:\"d\",8:\"l\",3:\"rd\",6:\"ru\",9:\"lu\",12:\"ld\",5:\"horz\",10:\"vert\",16:\"in\",32:\"out\",26:\"in-vert\",42:\"out-vert\",21:\"in-horz\",37:\"out-horz\"},zh={fade:\"fade\",wipe:\"wipe\",barn:\"split\",blinds:\"blinds\",box:\"zoom\",checkerboard:\"checkerboard\",circle:\"circle\",diamond:\"diamond\",dissolve:\"dissolve\",plus:\"plus\",randombar:\"randomBar\",slide:\"fly\",strips:\"strips\",wedge:\"wheel\",wheel:\"wheel\",image:\"fade\"},Fh=new Set([19,26,30,31,62]);function si(e,t,r){let n=Oh[e],o=r?.match(/^([a-zA-Z]+)(?:\\(([^)]*)\\))?/),i=o?.[1].toLowerCase(),s=(o?.[2]??\"\").toLowerCase(),l=i?zh[i]:void 0,a=(Fh.has(e)?n:l??n)??\"fade\";if(i===\"box\")return{effect:\"zoom\",dir:s===\"out\"?\"out\":\"in\"};if(i===\"circle\"||i===\"diamond\"||i===\"plus\")return{effect:a,dir:s===\"in\"?\"in\":\"out\"};if(i===\"barn\")return{effect:a,dir:`${s.startsWith(\"in\")?\"in\":\"out\"}-${s.includes(\"vertical\")?\"vert\":\"horz\"}`};if(i===\"wheel\")return{effect:a,dir:s||String(t||1)};if(i===\"checkerboard\")return{effect:a,dir:s===\"down\"?\"down\":\"across\"};if(i===\"randombar\"||i===\"blinds\")return{effect:a,dir:s.startsWith(\"vert\")?\"vert\":\"horz\"};if(i===\"strips\")return{effect:a,dir:{downleft:\"ld\",upleft:\"lu\",downright:\"rd\",upright:\"ru\"}[s]??Ys[t]};if(i===\"wipe\"||i===\"slide\"){let c=s.includes(\"left\")?\"l\":s.includes(\"right\")?\"r\":s.includes(\"top\")||s.includes(\"up\")?\"u\":s.includes(\"bottom\")||s.includes(\"down\")?\"d\":void 0,u={l:\"r\",r:\"l\",u:\"d\",d:\"u\"};return{effect:a,dir:c&&(s.startsWith(\"from\")?c:u[c])}}return e===23&&!r?{effect:a,dir:void 0}:{effect:a,dir:Ys[t]}}var Rl=\"http://www.w3.org/2003/InkML\",To=(e,t)=>[...e.getElementsByTagName(\"*\")].filter(r=>r.namespaceURI===Rl&&r.localName===t);function jh(e,t){if(e.length>4e6)throw new Error(\"InkML \\u91C7\\u6837\\u6570\\u636E\\u8D85\\u9650\");let r=[],n=[],o=[],i=[],s=t.indexOf(\"X\"),l=t.indexOf(\"Y\");if(s<0||l<0||t.length>32)throw new Error(\"InkML \\u901A\\u9053\\u4E0D\\u652F\\u6301\\u7F16\\u8F91\");for(let a of e.split(\",\")){if(!a.trim())continue;let c=/\\s*([!'\\\"]?)\\s*([+-]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:[eE][+-]?\\d+)?|\\*)/gy,u=0,h=0;for(;u<a.length&&a.slice(u).trim();){c.lastIndex=u;let f=c.exec(a);if(!f||h>=t.length)throw new Error(\"InkML \\u542B\\u65E0\\u6CD5\\u7F16\\u8F91\\u7684\\u91C7\\u6837\\u7F16\\u7801\");u=c.lastIndex;let[,m,d]=f;if(d!==\"*\"){let p=Number(d);if(!Number.isFinite(p))throw new Error(\"InkML \\u975E\\u6709\\u9650\\u91C7\\u6837\\u503C\");let b=r.length&&(m||i[h])||\"!\";i[h]=b,b===\"'\"?(o[h]=p,n[h]=(n[h]??0)+p):b==='\"'?(o[h]=(o[h]??0)+p,n[h]=(n[h]??0)+o[h]):(n[h]=p,o[h]=0)}if(!Number.isFinite(n[h]))throw new Error(\"InkML \\u7F3A\\u5C11\\u9996\\u70B9\\u901A\\u9053\\u503C\");h++}if(!Number.isFinite(n[s])||!Number.isFinite(n[l]))throw new Error(\"InkML \\u7F3A\\u5C11\\u5750\\u6807\");if(r.push({x:n[s],y:n[l],values:n.slice(0,h)}),r.length>1e5)throw new Error(\"InkML \\u7B14\\u753B\\u91C7\\u6837\\u8D85\\u9650\")}return r}function Uh(e){if(e.namespaceURI!==Rl||e.localName!==\"ink\")throw new Error(\"\\u4E0D\\u662F InkML \\u6587\\u6863\");let t=[e,...e.getElementsByTagName(\"*\")],r=new Map,n=new Map;for(let f of t)for(let m of Array.from(f.children))n.set(m,f);let o=(f,m)=>{let d=f;for(;d;){let p=N(d,m);if(p!==null)return p;d=n.get(d)}return null};for(let f of t){let m=N(f,\"xml:id\");if(m){if(r.has(m))throw new Error(\"InkML \\u8EAB\\u4EFD\\u91CD\\u590D\");r.set(m,f)}}let i=f=>f!=null&&f.startsWith(\"#\")?r.get(f.slice(1)):void 0,s=To(e,\"trace\"),l=[];if(s.length>1e3)throw new Error(\"InkML \\u7B14\\u753B\\u6570\\u91CF\\u8D85\\u9650\");let a=w(e,\"traceFormat\")??To(e,\"traceFormat\")[0],c=To(e,\"brush\"),u,h=0;if(s.forEach((f,m)=>{var d;let p=[],b=new Set,v=i(o(f,\"contextRef\"));for(;v;){if(b.has(v)||p.length>32)throw new Error(\"InkML \\u4E0A\\u4E0B\\u6587\\u5F15\\u7528\\u5FAA\\u73AF\");b.add(v),p.push(v),v=i(N(v,\"contextRef\"))}let x=R=>p.map(z=>N(z,R)).find(z=>z!==null)??null,M=R=>p.map(z=>w(z,R)).find(z=>z!==null)??null,S=M(\"inkSource\")??i(x(\"inkSourceRef\")),y=M(\"traceFormat\")??i(x(\"traceFormatRef\"))??w(S??null,\"traceFormat\")??a,$=y?Q(y,\"channel\").map(R=>(N(R,\"name\")??\"\").toUpperCase()):[\"X\",\"Y\"],k=jh(f.textContent??\"\",$);if((h+=k.length)>1e5)throw new Error(\"InkML \\u91C7\\u6837\\u603B\\u91CF\\u8D85\\u9650\");let A=i(o(f,\"brushRef\"))??i(x(\"brushRef\"))??c[0],L=\"#000000\",P=0;for(let R of Q(A??null,\"brushProperty\")){let z=(d=N(R,\"name\"))==null?void 0:d.toLowerCase(),j=N(R,\"value\")??\"\";z===\"color\"?L=/^[\\da-f]{6}$/i.test(j)?\"#\"+j:j:(z===\"width\"||z===\"height\")&&(P=Math.max(P,Number(j)||0))}let E=i(x(\"canvasRef\")),T=w(E??null,\"traceFormat\"),I=Q(T,\"channel\").find(R=>N(R,\"name\")===\"X\"),O=Q(T,\"channel\").find(R=>N(R,\"name\")===\"Y\");if(I&&O&&[\"min\",\"max\"].every(R=>N(I,R)!==null&&N(O,R)!==null)){let R={x:Number(N(I,\"min\")),y:Number(N(O,\"min\")),width:Number(N(I,\"max\"))-Number(N(I,\"min\")),height:Number(N(O,\"max\"))-Number(N(O,\"min\"))};if(Object.values(R).every(Number.isFinite)&&R.width>=0&&R.height>=0){if(u&&JSON.stringify(u)!==JSON.stringify(R))throw new Error(\"InkML \\u591A\\u753B\\u5E03\\u4E0D\\u652F\\u6301\\u5171\\u540C\\u7F16\\u8F91\");u=R}}l.push({id:N(f,\"xml:id\")??`trace-${m+1}`,points:k,channels:$,color:L,width:P})}),!u){let f=1/0,m=1/0,d=-1/0,p=-1/0;for(let b of l)for(let v of b.points)f=Math.min(f,v.x),m=Math.min(m,v.y),d=Math.max(d,v.x),p=Math.max(p,v.y);u=Number.isFinite(f)?{x:f,y:m,width:d-f,height:p-m}:{x:0,y:0,width:1,height:1}}return{strokes:l,bounds:u}}function Dh(e,t,r){var n,o;let i=Uh(e),s=i.strokes.filter(S=>S.points.length>=2).map(S=>({pts:S.points.map(y=>[y.x,y.y]),brush:S}));if(!s.length)return[];let{x:l,y:a,width:c,height:u}=i.bounds,h=l+c,f=a+u,m=h-l,d=f-a,p=Math.min(m>0?t/m:1/0,d>0?r/d:1/0),b=Number.isFinite(p)&&p>0?p:1,v=(t-m*b)/2,x=(r-d*b)/2,M=[];for(let S of s){let y=S.pts.map(([I,O])=>[v+(I-l)*b,x+(O-a)*b]),$=1/0,k=1/0,A=-1/0,L=-1/0;for(let[I,O]of y)I<$&&($=I),O<k&&(k=O),I>A&&(A=I),O>L&&(L=O);let P=I=>String(Math.round(I*100)/100),E=\"M \"+y.map(([I,O])=>`${P(I-$)} ${P(O-k)}`).join(\" L \"),T=Math.max(.75,Math.min((((n=S.brush)==null?void 0:n.width)??0)*b||2,24));M.push({kind:\"shape\",x:$,y:k,w:Math.max(A-$,0),h:Math.max(L-k,0),rot:0,flipH:!1,flipV:!1,path:E,fill:{type:\"none\"},stroke:{color:((o=S.brush)==null?void 0:o.color)??\"rgb(0,0,0)\",width:T,dash:null,cap:\"round\",join:\"round\"},text:null,openGeom:!0})}return M}var Bh=new RegExp(\"[\"+[\"Arabic\",\"Hebrew\",\"Syriac\",\"Thaana\",\"Nko\",\"Thai\",\"Lao\",\"Khmer\",\"Myanmar\",\"Tibetan\",\"Devanagari\",\"Bengali\",\"Gurmukhi\",\"Gujarati\",\"Oriya\",\"Tamil\",\"Telugu\",\"Kannada\",\"Malayalam\",\"Sinhala\"].map(e=>`\\\\p{Script=${e}}`).join(\"\")+\"]\",\"u\");function Hh(e,t){let{latin:r,eastAsian:n,complexScript:o}=e,i=[];return r&&i.push(r),n&&n!==r&&i.push(n),o&&o!==r&&o!==n&&Bh.test(t)&&i.push(o),i}var pn={transform:1,geometry:2,fill:4,stroke:8,effects:16,style:32},Le={b:1,i:2,u:4,strike:8,size:16,fonts:32,color:64,baseline:128,spacing:256,caps:512,outline:1024,gradient:2048,highlight:4096,underlineColor:8192,fontLatin:16384,fontEastAsian:32768,fontComplexScript:65536},Nn={bullet:1,bulletColor:2,bulletFont:4,bulletSize:8,rtl:16};var Ol={title:[\"title\",\"ctrTitle\"],ctrTitle:[\"ctrTitle\",\"title\"],body:[\"body\",\"subTitle\",\"obj\"],subTitle:[\"subTitle\",\"body\"],obj:[\"obj\",\"body\"]};function Wh(e,t,r){let n=r.idx??null;if(n!==null){let i=e.find(s=>{var l;return((l=t(s))==null?void 0:l.idx)===n});if(i)return i}let o=r.type??null;if(o)for(let i of Ol[o]??[o]){let s=e.find(l=>{var a;return((a=t(l))==null?void 0:a.type)===i});if(s)return s}if(!o&&n===null)return e.find(i=>{var s;return((s=t(i))==null?void 0:s.type)===\"body\"})}function vn(e,t){if(!e)return;let r={},n=w(e,\"outerShdw\"),o=w(e,\"innerShdw\"),i=n??o;if(i){let c=ie(U(i,\"dist\")??0),u=(U(i,\"dir\")??0)/6e4*(Math.PI/180);r.shadow={dx:c*Math.cos(u),dy:c*Math.sin(u),blur:ie(U(i,\"blurRad\")??0),color:ge(i,t)??\"rgba(0,0,0,0.4)\",inner:i===o}}let s=w(e,\"glow\");s&&(r.glow={radius:ie(U(s,\"rad\")??0),color:ge(s,t)??\"rgba(0,0,0,0.4)\"});let l=w(e,\"softEdge\");l&&(r.softEdge=ie(U(l,\"rad\")??0));let a=w(e,\"reflection\");return a&&(r.reflection={alpha:(U(a,\"stA\")??5e4)/1e5,size:(U(a,\"endPos\")??35e3)/1e5,distance:ie(U(a,\"dist\")??0)}),Object.keys(r).length||e.localName===\"effectLst\"?r:void 0}var Vh={none:\"none\",triangle:\"triangle\",stealth:\"stealth\",diamond:\"diamond\",oval:\"oval\",arrow:\"arrow\"},qs={sm:2,med:3,lg:5};function Zs(e){if(!e)return;let t=Vh[N(e,\"type\")??\"none\"];if(t)return{type:t,w:qs[N(e,\"w\")??\"med\"]??3,h:qs[N(e,\"len\")??\"med\"]??3}}function Gh(e,t){if(!e)return;let r=w(e,\"sp3d\"),n=w(e,\"scene3d\");if(!r&&!n)return;let o={},i=U(r,\"extrusionH\");i!==null&&(o.extrusion=ie(i));let s=w(r,\"bevelT\");s&&(o.bevelTop=ie(U(s,\"h\")??38100));let l=w(r,\"bevelB\");l&&(o.bevelBottom=ie(U(l,\"h\")??38100));let a=U(r,\"contourW\");a!==null&&(o.contourWidth=ie(a));for(let[M,S]of[[\"extrusionClr\",\"extrusionColor\"],[\"contourClr\",\"contourColor\"]]){let y=ge(w(r,M),t);y&&(o[S]=y)}let c=N(r,\"prstMaterial\");c&&(o.material=c);let u=w(n,\"camera\"),h=N(u,\"prst\");h&&(o.camera=h);let f=U(u,\"fov\"),m=U(u,\"zoom\");f!==null&&(o.fieldOfView=f/6e4),m!==null&&(o.zoom=m/1e5);let d=U(r,\"z\");d!==null&&(o.z=ie(d));let p=w(n,\"lightRig\"),b=N(p,\"rig\"),v=N(p,\"dir\");b&&(o.lightRig=b),v&&(o.lightDirection=v),s&&(o.bevelTopWidth=ie(U(s,\"w\")??76200)),l&&(o.bevelBottomWidth=ie(U(l,\"w\")??76200));let x=w(u,\"rot\");return x&&(o.rotX=(U(x,\"lat\")??0)/6e4,o.rotY=(U(x,\"lon\")??0)/6e4,o.rotZ=(U(x,\"rev\")??0)/6e4),Object.keys(o).length?o:void 0}var zl=Object.freeze({push:\"l\",pull:\"l\",cover:\"l\",wipe:\"l\",split:\"horz-out\",zoom:\"out\",checker:\"horz\",blinds:\"horz\",comb:\"horz\",randomBar:\"horz\",strips:\"lu\",vortex:\"l\",ripple:\"center\",glitter:\"l\",warp:\"out\",flythrough:\"in\",shred:\"in\",reveal:\"l\",pan:\"l\",doors:\"horz\",window:\"horz\",prism:\"l\"}),Gb=Object.freeze({...zl,switch:\"l\",flip:\"l\",ferris:\"l\",gallery:\"l\",conveyor:\"l\"});function Xh(e){return zl[e]}var Vt=\"http://schemas.openxmlformats.org/markup-compatibility/2006\";function Fl(e,t){var r;if(e.namespaceURI!==Vt)return null;let n=null;for(let o=e.firstElementChild;o;o=o.nextElementSibling){if(o.namespaceURI!==Vt||(o.localName===\"Fallback\"&&(n??(n=o)),o.localName!==\"Choice\"))continue;let i=((r=o.getAttribute(\"Requires\"))==null?void 0:r.trim().split(/\\s+/).filter(Boolean))??[];if(i.length&&i.every(s=>{let l=o.lookupNamespaceURI(s);return l!==null&&t.has(l)}))return o}return n}var Fn=\"http://schemas.openxmlformats.org/presentationml/2006/main\",Lo=\"http://schemas.openxmlformats.org/markup-compatibility/2006\",Yh=\"http://www.w3.org/2000/xmlns/\",qh=\"http://www.w3.org/XML/1998/namespace\",jl=4096;function mn(e,t,r){let n=[];for(let o=e?.firstElementChild??null;o;o=o.nextElementSibling)o.namespaceURI===t&&(!r||o.localName===r)&&n.push(o);return n}function Zh(e){if(!e)return{timing:null,readonly:!1};let t=mn(e,Fn,\"timing\"),r=mn(e,Lo,\"AlternateContent\").filter(o=>mn(o,Lo).some(i=>mn(i,Fn,\"timing\").length>0));if(t.length)return{timing:t[0],readonly:t.length>1||r.length>0};if(!r.length)return{timing:null,readonly:!1};let n=mn(r[0],Lo,\"Fallback\")[0]??null;return{timing:mn(n,Fn,\"timing\")[0]??null,readonly:!0}}function _s(e,t){return e.seen.has(t)?!0:(e.seen.add(t),e.nodes++,e.nodes<=jl)}function ct(e,t){if(!_s(t,e))return null;let r=[];for(let n=e.firstElementChild;n;n=n.nextElementSibling){if(!_s(t,n)||n.namespaceURI!==Fn)return null;r.push(n)}return r}function Ee(e,t,r){let n=ct(e,r);return n&&n.length===t.length&&n.every((o,i)=>o.localName===t[i])?n:null}function ce(e,t){let r=new Set(t);return Array.from(e.attributes).every(n=>n.namespaceURI===Yh||n.namespaceURI===qh?!0:n.namespaceURI===null&&r.has(n.localName))}function $r(e,t,r){if(!e||!/^\\d+$/.test(e))return null;let n=Number(e);return Number.isSafeInteger(n)&&n>=t&&n<=r?n:null}function Un(e,t){let r=$r(e.getAttribute(\"id\"),1,2147483647);return r===null||t.ids.has(r)?!1:(t.ids.add(r),!0)}function li(e,t,r){var n;if(e.localName!==\"stCondLst\"||!ce(e,[]))return!1;let o=Ee(e,[\"cond\"],r);return!!o&&ce(o[0],[\"delay\"])&&o[0].getAttribute(\"delay\")===String(t)&&(((n=ct(o[0],r))==null?void 0:n.length)??-1)===0}function _h(e,t){var r;if(e.localName!==\"tgtEl\"||!ce(e,[]))return null;let n=Ee(e,[\"spTgt\"],t);return!n||!ce(n[0],[\"spid\"])||(((r=ct(n[0],t))==null?void 0:r.length)??-1)!==0?null:$r(n[0].getAttribute(\"spid\"),1,2147483647)}function Kh(e,t,r){if(e.localName!==\"attrNameLst\"||!ce(e,[]))return!1;let n=ct(e,r);return!!n&&n.length===t.length&&n.every((o,i)=>{var s;return o.localName===\"attrName\"&&ce(o,[])&&(((s=ct(o,r))==null?void 0:s.length)??-1)===0&&o.textContent===t[i]})}function Dn(e,t,r,n,o){if(e.localName!==\"cBhvr\"||!ce(e,[]))return null;let i=r.length?[\"cTn\",\"tgtEl\",\"attrNameLst\"]:[\"cTn\",\"tgtEl\"],s=Ee(e,i,n);if(!s)return null;let l=s[0];if(!ce(l,[\"id\",\"dur\",\"fill\"])||!Un(l,n)||l.getAttribute(\"dur\")!==String(t)||l.getAttribute(\"fill\")!==\"hold\")return null;let a=ct(l,n);if(!a||(o===void 0?a.length!==0:a.length!==1||!li(a[0],o,n)))return null;let c=_h(s[1],n);return c===null||r.length&&!Kh(s[2],r,n)?null:c}function Ks(e,t,r,n){var o;if(e.localName!==\"set\"||!ce(e,[]))return null;let i=Ee(e,[\"cBhvr\",\"to\"],n),s=i?Dn(i[0],1,[\"style.visibility\"],n,r):null,l=i&&ce(i[1],[])?Ee(i[1],[\"strVal\"],n):null;return s===null||!l||!ce(l[0],[\"val\"])||l[0].getAttribute(\"val\")!==t||(((o=ct(l[0],n))==null?void 0:o.length)??-1)!==0?null:s}var Qh=Object.freeze({2:Object.freeze({8:\"slide(fromLeft)\",2:\"slide(fromRight)\",1:\"slide(fromTop)\",4:\"slide(fromBottom)\"}),22:Object.freeze({8:\"wipe(right)\",2:\"wipe(left)\",1:\"wipe(down)\",4:\"wipe(up)\"}),23:Object.freeze({16:\"box(in)\",32:\"box(out)\"})});function Jh(e,t,r,n,o,i){var s;if(e.localName!==\"animEffect\"||!ce(e,[\"transition\",\"filter\"]))return null;let l=t===\"10\"?\"fade\":t===\"9\"?\"dissolve\":r?(s=Qh[t])==null?void 0:s[r]:void 0;if(!l||e.getAttribute(\"filter\")!==l||e.getAttribute(\"transition\")!==(n===\"exit\"?\"out\":\"in\"))return null;let a=Ee(e,[\"cBhvr\"],i);return a?Dn(a[0],o,[],i):null}function ef(e,t,r,n){var o;if(t===\"61\"){if(e.localName!==\"animRot\"||!ce(e,[\"by\"])||e.getAttribute(\"by\")!==\"21600000\")return null;let s=Ee(e,[\"cBhvr\"],n);return s?Dn(s[0],r,[\"r\"],n):null}if(e.localName!==\"animScale\"||!ce(e,[]))return null;let i=Ee(e,[\"cBhvr\",\"by\"],n);return!i||!ce(i[1],[\"x\",\"y\"])||i[1].getAttribute(\"x\")!==\"125000\"||i[1].getAttribute(\"y\")!==\"125000\"||(((o=ct(i[1],n))==null?void 0:o.length)??-1)!==0?null:Dn(i[0],r,[\"ppt_w\",\"ppt_h\"],n)}function tf(e){if(!e)return!1;let t=e.trim().split(/\\s+/);if(t.length<7||t[0]!==\"M\"||t[t.length-1]!==\"E\")return!1;let r=0;for(let n=0;n<t.length-1;){let o=t[n++];if((r===0?o!==\"M\":o!==\"L\")||n+1>=t.length)return!1;let i=Number(t[n++]),s=Number(t[n++]);if(!Number.isFinite(i)||!Number.isFinite(s)||r===0&&(i!==0||s!==0))return!1;r++}return r>=2&&r<=256}function nf(e,t,r){if(e.localName!==\"animMotion\"||!ce(e,[\"origin\",\"path\",\"pathEditMode\"])||e.getAttribute(\"origin\")!==\"layout\"||e.getAttribute(\"pathEditMode\")!==\"relative\"||!tf(e.getAttribute(\"path\")))return null;let n=Ee(e,[\"cBhvr\"],r);return n?Dn(n[0],t,[\"ppt_x\",\"ppt_y\"],r):null}function rf(e,t){var r,n;if(e.localName!==\"par\"||!ce(e,[]))return null;let o=(r=Ee(e,[\"cTn\"],t))==null?void 0:r[0];if(!o||!ce(o,[\"id\",\"presetID\",\"presetClass\",\"presetSubtype\",\"dur\",\"fill\",\"nodeType\"])||!Un(o,t))return null;let i=o.getAttribute(\"presetID\"),s=o.getAttribute(\"presetClass\"),l=o.getAttribute(\"presetSubtype\"),a=$r(o.getAttribute(\"dur\"),60,1e4),c=o.getAttribute(\"nodeType\");if(!i||!s||a===null||o.getAttribute(\"fill\")!==\"hold\"||![\"clickEffect\",\"withEffect\",\"afterEffect\"].includes(c??\"\"))return null;let u=Ee(o,[\"stCondLst\",\"childTnLst\"],t),h=u?$r(((n=u[0].firstElementChild)==null?void 0:n.getAttribute(\"delay\"))??null,0,3e5):null;if(!u||h===null||!li(u[0],h,t)||!ce(u[1],[]))return null;let f=ct(u[1],t);if(!f)return null;let m=[];if(s===\"path\"&&i===\"0\"&&l===null&&f.length===1)m=[nf(f[0],a,t)];else if(s===\"emph\"&&[\"59\",\"61\"].includes(i)&&l===null&&f.length===1)m=[ef(f[0],i,a,t)];else if([\"entr\",\"exit\"].includes(s)&&[\"1\",\"2\",\"9\",\"10\",\"22\",\"23\"].includes(i)){if([\"2\",\"22\",\"23\"].includes(i)!==(l!==null))return null;let d=s===\"entr\"?\"visible\":\"hidden\",p=s===\"entr\"?0:a;if(i===\"1\"&&f.length===1)m=[Ks(f[0],d,p,t)];else if(f.length===2){let b=s===\"entr\"?1:0,v=1-b;m=[Jh(f[b],i,l,s,a,t),Ks(f[v],d,p,t)]}}return!m.length||m.some(d=>d===null)||m.some(d=>d!==m[0])?null:c}function of(e,t){var r;if(e.localName!==\"par\"||!ce(e,[]))return!1;let n=(r=Ee(e,[\"cTn\"],t))==null?void 0:r[0];if(!n||!ce(n,[\"id\",\"fill\",\"nodeType\"])||!Un(n,t)||n.getAttribute(\"fill\")!==\"hold\"||n.getAttribute(\"nodeType\")!==\"clickEffect\")return!1;let o=Ee(n,[\"stCondLst\",\"childTnLst\"],t);if(!o||!li(o[0],\"indefinite\",t)||!ce(o[1],[]))return!1;let i=ct(o[1],t);if(!(i!=null&&i.length))return!1;let s=i.map(l=>rf(l,t));return s[0]===\"clickEffect\"&&s.slice(1).every(l=>l===\"withEffect\"||l===\"afterEffect\")}function sf(e){var t,r,n,o,i,s,l;let a={nodes:0,ids:new Set,seen:new Set};if(e.namespaceURI!==Fn||e.localName!==\"timing\"||!ce(e,[]))return!1;let c=(t=Ee(e,[\"tnLst\"],a))==null?void 0:t[0];if(!c||!ce(c,[]))return!1;let u=(r=Ee(c,[\"par\"],a))==null?void 0:r[0];if(!u||!ce(u,[]))return!1;let h=(n=Ee(u,[\"cTn\"],a))==null?void 0:n[0];if(!h||!ce(h,[\"id\",\"dur\",\"restart\",\"nodeType\"])||!Un(h,a)||h.getAttribute(\"dur\")!==\"indefinite\"||h.getAttribute(\"restart\")!==\"never\"||h.getAttribute(\"nodeType\")!==\"tmRoot\")return!1;let f=(o=Ee(h,[\"childTnLst\"],a))==null?void 0:o[0];if(!f||!ce(f,[]))return!1;let m=(i=Ee(f,[\"seq\"],a))==null?void 0:i[0];if(!m||!ce(m,[\"concurrent\",\"nextAc\"])||m.getAttribute(\"concurrent\")!==\"1\"||m.getAttribute(\"nextAc\")!==\"seek\")return!1;let d=(s=Ee(m,[\"cTn\"],a))==null?void 0:s[0];if(!d||!ce(d,[\"id\",\"dur\",\"nodeType\"])||!Un(d,a)||d.getAttribute(\"dur\")!==\"indefinite\"||d.getAttribute(\"nodeType\")!==\"mainSeq\")return!1;let p=(l=Ee(d,[\"childTnLst\"],a))==null?void 0:l[0];if(!p||!ce(p,[]))return!1;let b=ct(p,a);return!!(b!=null&&b.length)&&b.every(v=>of(v,a))}function lf(e){return!sf(e)}var af={slow:1e3,med:750,fast:500},Yo=\"http://schemas.openxmlformats.org/presentationml/2006/main\",ai=\"http://schemas.microsoft.com/office/powerpoint/2010/main\",Ul=\"http://schemas.microsoft.com/office/powerpoint/2015/09/main\",cf=new Set([ai,Ul]),uf={fade:\"fade\",cut:\"cut\",push:\"push\",pull:\"pull\",cover:\"cover\",wipe:\"wipe\",split:\"split\",zoom:\"zoom\",dissolve:\"dissolve\",checker:\"checker\",blinds:\"blinds\",comb:\"comb\",wheel:\"wheel\",circle:\"circle\",diamond:\"diamond\",plus:\"plus\",wedge:\"wedge\",newsflash:\"newsflash\",randomBar:\"randomBar\",strips:\"strips\",random:\"dissolve\",fadeThroughBlack:\"fade\",vortex:\"vortex\",switch:\"switch\",flip:\"flip\",ripple:\"ripple\",honeycomb:\"honeycomb\",glitter:\"glitter\",warp:\"warp\",flythrough:\"flythrough\",flash:\"flash\",shred:\"shred\",reveal:\"reveal\",wheelReverse:\"wheelReverse\",ferris:\"ferris\",gallery:\"gallery\",conveyor:\"conveyor\",pan:\"pan\",doors:\"doors\",window:\"window\",prism:\"prism\",morph:\"morph\"},hf=new Set([\"vortex\",\"switch\",\"flip\",\"ripple\",\"honeycomb\",\"glitter\",\"warp\",\"flythrough\",\"flash\",\"shred\",\"reveal\",\"wheelReverse\",\"ferris\",\"gallery\",\"conveyor\",\"pan\",\"doors\",\"window\",\"prism\"]);function ff(e){let t=uf[e.localName];if(!t)return;let r=e.namespaceURI;return e.localName===\"morph\"?r===Ul?t:void 0:hf.has(e.localName)?r===ai?t:void 0:r===Yo?t:void 0}function Ao(e,t,r){let n=Array.from(e.attributes).find(i=>i.localName===t&&i.namespaceURI===r);if(!n||n.value===\"\")return null;let o=Number(n.value);return Number.isFinite(o)?o:null}function Qs(e,t,r){if(!e)return null;for(let n=e.firstElementChild;n;n=n.nextElementSibling)if(n.namespaceURI===t&&n.localName===r)return n;return null}function df(e,t,r){let n=[];if(!e)return n;for(let o=e.firstElementChild;o;o=o.nextElementSibling)o.namespaceURI===t&&o.localName===r&&n.push(o);return n}function qo(e){let t=pf(e);if(!t)return;let r=\"none\",n,o;for(let a=t.firstElementChild;a;a=a.nextElementSibling){let c=ff(a);if(c){if(r=c,n=a.getAttribute(\"dir\")??a.getAttribute(\"orient\")??void 0,a.localName===\"morph\"){let u=a.getAttribute(\"option\");o=u===\"byWord\"||u===\"byChar\"?u:\"byObject\"}if(a.localName===\"split\"){let u=a.getAttribute(\"orient\")??\"horz\",h=a.getAttribute(\"dir\")??\"out\";n=`${u}-${h}`}break}}let i=Ao(t,\"dur\",ai)??Ao(t,\"dur\",null),s=r===\"none\"?0:i??af[t.getAttribute(\"spd\")??\"fast\"]??500,l=Ao(t,\"advTm\",null);return n??(n=Xh(r)),{type:r,dir:n,durationMs:r===\"none\"?0:Math.max(80,Math.min(5e3,s)),advanceAfterMs:l??void 0,morphBy:o}}function pf(e){if(!e)return null;let t=Qs(e,Yo,\"transition\");if(t)return t;for(let r of df(e,Vt,\"AlternateContent\")){let n=Fl(r,cf),o=Qs(n,Yo,\"transition\");if(o)return o}return null}var mf={entr:\"entrance\",exit:\"exit\",emph:\"emphasis\",path:\"motion\",mediacall:\"emphasis\",verb:\"emphasis\"};function gf(e,t,r,n=256){let o=e.match(/[MLCZEmlcze]|-?\\d*\\.?\\d+(?:[eE][-+]?\\d+)?/g);if(!o)return;let i=[],s=[0,0],l=[0,0],a=0,c=()=>{let x=Number(o[a++]);return Number.isFinite(x)?x:0},u=x=>{i.push(x),s=x};for(;a<o.length;)switch(o[a++]){case\"M\":case\"m\":{let x=[c(),c()];l=x,i.length=0,u(x);break}case\"L\":case\"l\":u([c(),c()]);break;case\"C\":case\"c\":{let[x,M,S,y,$,k]=[c(),c(),c(),c(),c(),c()],[A,L]=s;for(let P=1;P<=16;P++){let E=P/16,T=1-E;i.push([T*T*T*A+3*T*T*E*x+3*T*E*E*S+E*E*E*$,T*T*T*L+3*T*T*E*M+3*T*E*E*y+E*E*E*k])}s=[$,k];break}case\"Z\":case\"z\":u([l[0],l[1]]);break;default:a=o.length}if(i.length<2)return;let[h,f]=i[0],m=i.map(([x,M])=>[(x-h)*t,(M-f)*r]);if(m.length<=n)return m;let d=[0];for(let x=1;x<m.length;x++)d.push(d[x-1]+Math.hypot(m[x][0]-m[x-1][0],m[x][1]-m[x-1][1]));let p=d[d.length-1];if(!(p>0))return;let b=[],v=1;for(let x=0;x<n;x++){let M=p*x/(n-1);for(;v<d.length-1&&d[v]<M;)v++;let S=d[v]-d[v-1],y=S>0?(M-d[v-1])/S:0;b.push([m[v-1][0]+(m[v][0]-m[v-1][0])*y,m[v-1][1]+(m[v][1]-m[v-1][1])*y])}return b}function Dl(e,t=8){for(let r=e.firstElementChild;r;r=r.nextElementSibling){if(r.localName===\"animMotion\"){let n=N(r,\"path\");if(n)return n}if(t>0){let n=Dl(r,t-1);if(n)return n}}return null}function Bl(e,t=8){for(let r=e.firstElementChild;r;r=r.nextElementSibling){if(r.localName===\"spTgt\"){let n=U(r,\"spid\");if(n!==null)return n}if(t>0){let n=Bl(r,t-1);if(n!==null)return n}}return null}function Hl(e,t=8){for(let r=e.firstElementChild;r;r=r.nextElementSibling){if(r.localName===\"pRg\"){let n=U(r,\"st\"),o=U(r,\"end\");if(n!==null&&o!==null&&o>=n)return{start:n,end:o}}if(t>0){let n=Hl(r,t-1);if(n)return n}}}var bf=new Set([\"animEffect\",\"anim\",\"animRot\",\"animScale\",\"animClr\",\"animMotion\"]);function Wl(e,t=8,r=!1){let n=null;for(let o=e.firstElementChild;o;o=o.nextElementSibling){let i=r||bf.has(o.localName);if(o.localName===\"cTn\"){let s=N(o,\"dur\");if(s&&s!==\"indefinite\"){let l=Number(s);if(Number.isFinite(l)&&l>1&&r)return l;Number.isFinite(l)&&l>1&&(n===null||l>n)&&(n=l)}}if(t>0){let s=Wl(o,t-1,i);if(s!==null&&i)return s;s!==null&&(n===null||s>n)&&(n=s)}}return n}function Vl(e,t=8){for(let r=e.firstElementChild;r;r=r.nextElementSibling){if(r.localName===\"animEffect\"){let n=N(r,\"filter\");if(n)return n}if(t>0){let n=Vl(r,t-1);if(n)return n}}return null}function Gl(e,t=8){for(let r=e.firstElementChild;r;r=r.nextElementSibling){if(r.localName===\"animScale\"){let n=w(r,\"from\"),o=w(r,\"to\"),i=[U(n,\"x\"),U(n,\"y\"),U(o,\"x\"),U(o,\"y\")];if(i.every(s=>s!==null&&Number.isFinite(s)))return{fromX:i[0]/1e5,fromY:i[1]/1e5,toX:i[2]/1e5,toY:i[3]/1e5}}if(t>0){let n=Gl(r,t-1);if(n)return n}}}function Xl(e,t=8){for(let r=e.firstElementChild;r;r=r.nextElementSibling){if(r.localName===\"animRot\"){let n=U(r,\"from\"),o=U(r,\"to\"),i=U(r,\"by\");if(n!==null||o!==null||i!==null){let s=n??0;return{from:s/6e4,to:(o??s+(i??0))/6e4}}}if(t>0){let n=Xl(r,t-1);if(n)return n}}}function Yl(e,t=8){for(let r=e.firstElementChild;r;r=r.nextElementSibling){if(r.localName===\"cmd\"){if((N(r,\"type\")??\"call\")!==\"call\")return null;let n=N(r,\"cmd\");if(n===\"play\"||n===\"pause\"||n===\"resume\"||n===\"stop\"||n===\"togglePause\")return{action:n};let o=/^playFrom\\((\\d+(?:\\.\\d+)?)\\)$/.exec(n??\"\");if(!o)return null;let i=Number(o[1]);return Number.isFinite(i)?{action:\"play\",fromSeconds:i}:null}if(t>0){let n=Yl(r,t-1);if(n)return n}}return null}function xf(e){let t=w(w(e,\"stCondLst\"),\"cond\"),r=N(t,\"delay\");if(!r||r===\"indefinite\")return 0;let n=Number(r);return Number.isFinite(n)?Math.max(0,n):0}function vf(e){let t=[],r=[],n=[],o={element:e,depth:0,insidePreset:!1},i=0;for(;o;){if(++i>jl)return null;let s=!o.insidePreset&&o.depth<=25&&o.element.localName===\"cTn\"&&!!N(o.element,\"presetClass\");s&&t.push({element:o.element,order:i}),!o.insidePreset&&(o.element.localName===\"audio\"||o.element.localName===\"video\")&&r.push({element:o.element,order:i,kind:o.element.localName});let l=o.insidePreset||s,a=o.element.firstElementChild;if(a){n.push({next:a.nextElementSibling,depth:o.depth+1,insidePreset:l}),o={element:a,depth:o.depth+1,insidePreset:l};continue}for(o=null;n.length&&!o;){let c=n[n.length-1],u=c.next;if(!u){n.pop();continue}c.next=u.nextElementSibling,o={element:u,depth:c.depth,insidePreset:c.insidePreset}}}return{presets:t,medias:r}}function wf(e){let t=w(e.element,\"cMediaNode\")??null;if(!t)return null;let r=U(w(w(t,\"tgtEl\"),\"spTgt\"),\"spid\");if(r===null)return null;let n=U(t,\"vol\")??8e4,o=U(t,\"mute\")===1,i=w(t,\"cTn\");return{spid:r,kind:e.kind,volume:o?0:Math.max(0,Math.min(1,n/1e5)),loop:N(i,\"repeatCount\")===\"indefinite\",clickGroup:0}}function yf(e,t=0,r=0){if(!e)return{readonly:!1};let n=[],o=lf(e),i=vf(e);if(!i)return{readonly:!0};let s=[];for(let{element:h,order:f}of i.presets){let m=Mf(h,t,r);m?s.push({order:f,step:m}):o=!0}if(!s.length&&!i.medias.length)return{readonly:o};let l=i.medias.map(h=>({raw:h,timing:wf(h)})).filter(h=>h.timing!==null),a=[...s.map(h=>({order:h.order,step:h.step})),...l.filter(h=>h.timing).map(h=>({order:h.raw.order,media:h}))].sort((h,f)=>h.order-f.order),c=-1,u=[];for(let h of a)(h.step?h.step.trigger===\"click\"||c<0:c<0||N(w(w(h.media.raw.element,\"cMediaNode\"),\"cTn\"),\"nodeType\")===\"clickEffect\")&&c++,h.step?h.step.clickGroup=c:(h.media.timing.clickGroup=c,u.push(h.media.timing));return n.push(...a.filter(h=>h.step).map(h=>h.step)),{animations:n,media:u,readonly:o}}function $f(e,t=0,r=0){let n=Zh(e),o=yf(n.timing,t,r);return{...o,readonly:n.readonly||o.readonly}}function Mf(e,t,r){let n=Bl(e);if(n===null)return null;let o=N(e,\"presetClass\")??\"entr\",i=o===\"mediacall\"?Yl(e):null;if(o===\"mediacall\"&&!i)return null;let s=mf[o]??\"entrance\",l=U(e,\"presetID\")??10,a=U(e,\"presetSubtype\")??0,c=N(e,\"nodeType\")??\"clickEffect\",u=Vl(e),{effect:h,dir:f}=si(l,a,u??void 0),m=c===\"withEffect\"?\"withPrev\":c===\"afterEffect\"?\"afterPrev\":\"click\",d=U(e,\"dur\")??Wl(e)??500,p=s===\"motion\"?Dl(e):null,b=p&&t>0&&r>0?gf(p,t,r):void 0,v=Hl(e),x=Gl(e),M=Xl(e);return{target:n,effect:h,dir:f,delayMs:xf(e),durationMs:i?Math.max(0,d):Math.max(60,Math.min(1e4,d)),trigger:m,kind:s,motionPath:b,...x?{scale:x}:{},...M?{rotation:M}:{},...i?{mediaCommand:i}:{},...v?{paragraphRange:v}:{}}}var Po=e=>e*Math.PI/180,Ye=6e4;function ql(e,t){let r=Math.min(e,t),n={l:0,t:0,r:e,b:t,w:e,h:t,hc:e/2,vc:t/2,ls:Math.max(e,t),ss:r,cd2:180*Ye,cd4:90*Ye,cd8:45*Ye,\"3cd4\":270*Ye,\"3cd8\":135*Ye,\"5cd8\":225*Ye,\"7cd8\":315*Ye};for(let o of[2,3,4,5,6,8,10,32])n[`hd${o}`]=t/o,n[`wd${o}`]=e/o;for(let o of[2,4,6,8,16,32])n[`ssd${o}`]=r/o;return n}function xr(e,t){if(e===null)return 0;if(Object.prototype.hasOwnProperty.call(t,e))return t[e];let r=Number(e);return Number.isFinite(r)?r:0}function kf(e,t){let[r,...n]=e.trim().split(/\\s+/),o=xr(n[0]??\"0\",t),i=xr(n[1]??\"0\",t),s=xr(n[2]??\"0\",t),l;switch(r){case\"*/\":l=s===0?0:o*i/s;break;case\"+-\":l=o+i-s;break;case\"+/\":l=s===0?0:(o+i)/s;break;case\"?:\":l=o>0?i:s;break;case\"abs\":l=Math.abs(o);break;case\"at2\":l=Math.atan2(i,o)*180*Ye/Math.PI;break;case\"cat2\":l=o*Math.cos(Math.atan2(s,i));break;case\"cos\":l=o*Math.cos(Po(i/Ye));break;case\"max\":l=Math.max(o,i);break;case\"min\":l=Math.min(o,i);break;case\"mod\":l=Math.sqrt(o*o+i*i+s*s);break;case\"pin\":l=i<o?o:i>s?s:i;break;case\"sat2\":l=o*Math.sin(Math.atan2(s,i));break;case\"sin\":l=o*Math.sin(Po(i/Ye));break;case\"sqrt\":l=Math.sqrt(Math.max(o,0));break;case\"tan\":l=o*Math.tan(Po(i/Ye));break;case\"val\":l=o;break;default:l=0}return Number.isFinite(l)?l:0}function Mr(e,t,r=new Set){for(let[n,o]of e)r.has(n)||(t[n]=kf(o,t));return t}function Zo(e){let t={};for(let r of Q(e,\"gd\")){let n=N(r,\"name\"),o=N(r,\"fmla\");if(n&&o!=null&&o.startsWith(\"val \")){let i=Number(o.slice(4));Number.isFinite(i)&&(t[n]=i)}}return t}function kr(e){return Q(e,\"gd\").flatMap(t=>{let r=N(t,\"name\"),n=N(t,\"fmla\");return r&&n?[[r,n]]:[]})}var Js=e=>e.map(([t,r])=>({name:t,formula:r}));function Cf(e,t,r){let n=kr(w(e,\"avLst\")),o=kr(w(e,\"gdLst\")),i=Js(n),s=Js(o),l=Q(w(e,\"pathLst\"),\"path\").map((a,c)=>{let u=U(a,\"w\")||t*9525,h=U(a,\"h\")||r*9525,f=ql(u,h);Mr(n,f),Mr(o,f);let m=x=>{let M=x??\"0\",S=M in f?f[M]:Number(M);return{expression:M,value:Number.isFinite(S)?S:0}},d=(x,M,S)=>({id:M,role:S,x:m(N(x??null,\"x\")),y:m(N(x??null,\"y\"))}),p=[],b=!1,v=[];for(let x=a.firstElementChild;x;x=x.nextElementSibling)[\"moveTo\",\"lnTo\",\"cubicBezTo\",\"quadBezTo\",\"arcTo\",\"close\"].includes(x.localName)&&v.push(x);return v.forEach((x,M)=>{let S=p.length,y=`p${c}-c${S}`,$=Q(x,\"pt\");if(x.localName===\"moveTo\"||x.localName===\"lnTo\"){let k=d($[0],`${y}-a`,\"anchor\");p.push({id:y,type:x.localName===\"moveTo\"?\"move\":\"line\",points:[k]})}else if(x.localName===\"cubicBezTo\"){let k=[d($[0],`${y}-c0`,\"control\"),d($[1],`${y}-c1`,\"control\"),d($[2],`${y}-a`,\"anchor\")];p.push({id:y,type:\"cubic\",points:k})}else if(x.localName===\"quadBezTo\"){let k=[d($[0],`${y}-c0`,\"control\"),d($[1],`${y}-a`,\"anchor\")];p.push({id:y,type:\"quadratic\",points:k})}else x.localName===\"arcTo\"?p.push({id:y,type:\"arc\",points:[],widthRadius:m(N(x,\"wR\")),heightRadius:m(N(x,\"hR\")),startAngle:m(N(x,\"stAng\")),sweepAngle:m(N(x,\"swAng\"))}):x.localName===\"close\"&&(M===v.length-1?b=!0:p.push({id:y,type:\"close\",points:[]}))}),{id:`p${c}`,width:u,height:h,fill:N(a,\"fill\")??\"norm\",stroke:![\"0\",\"false\"].includes(N(a,\"stroke\")??\"1\"),extrusionOk:![\"0\",\"false\"].includes(N(a,\"extrusionOk\")??\"1\"),closed:b,commands:p}});return{adjustments:i,guides:s,paths:l}}function Zl(e,t,r){let n=Q(w(e,\"pathLst\"),\"path\");if(!n.length)return null;let o=kr(w(e,\"avLst\")),i=kr(w(e,\"gdLst\")),s=[],l=!1,a=!1;for(let u of n){let h=U(u,\"w\")||0,f=U(u,\"h\")||0,m=h||t*9525,d=f||r*9525,p=ql(m,d);Mr(o,p),Mr(i,p);let b=m?t/m:1,v=d?r/d:1,x=L=>xr(L,p),M=L=>[x(N(L,\"x\"))*b,x(N(L,\"y\"))*v];(N(u,\"fill\")??\"norm\")!==\"none\"&&(l=!0);let S=N(u,\"stroke\");S!==\"0\"&&S!==\"false\"&&(a=!0);let y=0,$=0,k=0,A=0;for(let L=u.firstElementChild;L;L=L.nextElementSibling){let P=Q(L,\"pt\");switch(L.localName){case\"moveTo\":[y,$]=M(P[0]),[k,A]=[y,$],s.push(`M ${g(y)} ${g($)}`);break;case\"lnTo\":[y,$]=M(P[0]),s.push(`L ${g(y)} ${g($)}`);break;case\"cubicBezTo\":{let[E,T]=M(P[0]),[I,O]=M(P[1]);[y,$]=M(P[2]),s.push(`C ${g(E)} ${g(T)} ${g(I)} ${g(O)} ${g(y)} ${g($)}`);break}case\"quadBezTo\":{let[E,T]=M(P[0]);[y,$]=M(P[1]),s.push(`Q ${g(E)} ${g(T)} ${g(y)} ${g($)}`);break}case\"arcTo\":{let E=x(N(L,\"wR\"))*b,T=x(N(L,\"hR\"))*v,I=x(N(L,\"stAng\"))/Ye,O=x(N(L,\"swAng\"))/Ye,R=y-E*Math.cos(tn(I)),z=$-T*Math.sin(tn(I)),j=Math.max(1,Math.ceil(Math.abs(O)/180));for(let F=0;F<j;F++){let W=O/j,[V,B]=xe(R,z,E,T,I+W*(F+1));s.push(`A ${g(E)} ${g(T)} 0 ${Math.abs(W)>180?1:0} ${W>=0?1:0} ${g(V)} ${g(B)}`),y=V,$=B}break}case\"close\":s.push(\"Z\"),[y,$]=[k,A];break}}}let c=s.join(\" \");return c.trim()?{d:c,open:!l&&a}:null}var el=2048;function ci(e){if(e.length>el||/[\\u0000-\\u001f\\u007f]/.test(e))return null;let t;try{t=new URL(e)}catch{return null}return t.protocol!==\"http:\"&&t.protocol!==\"https:\"&&t.protocol!==\"mailto:\"||t.username||t.password||(t.protocol===\"http:\"||t.protocol===\"https:\")&&!t.hostname?null:t.href.length<=el?t:null}var Sf=[\"dk1\",\"lt1\",\"dk2\",\"lt2\",\"accent1\",\"accent2\",\"accent3\",\"accent4\",\"accent5\",\"accent6\",\"hlink\",\"folHlink\"],tl=1.2,Ef=Object.freeze([\"none\",\"words\",\"sng\",\"dbl\",\"heavy\",\"dotted\",\"dottedHeavy\",\"dash\",\"dashHeavy\",\"dashLong\",\"dashLongHeavy\",\"dotDash\",\"dotDashHeavy\",\"dotDotDash\",\"dotDotDashHeavy\",\"wavy\",\"wavyHeavy\",\"wavyDbl\"]),Tf=Object.freeze([\"noStrike\",\"sngStrike\",\"dblStrike\"]),Xb=Object.freeze([\"none\",\"all\",\"small\"]);function Xe(e,t){let r=w(e,t);return r?N(r,\"val\"):null}function Lf(e){if(!e)return\"\";let t=\"\";for(let r of Q(e,\"t\"))t+=r.textContent??\"\";return t}function vr(e,t=12){let r=\"\";for(let n=e.firstElementChild;n;n=n.nextElementSibling)n.localName===\"t\"?r+=n.textContent??\"\":t>0&&(r+=vr(n,t-1));return r}function me(e,t,r){let n=w(e,t);return n?Bt(n,r):[]}function Bt(e,t){let r=[];for(let n=e.firstElementChild;n;n=n.nextElementSibling){let o=Af(n,t);o&&r.push(...o)}return r}function Af(e,t){if(t<=0){let n=vr(e);return n?[{kind:\"run\",text:n}]:null}let r=t-1;switch(e.localName){case\"r\":{let n=Lf(e);if(!n)return null;let o=Xe(w(e,\"rPr\"),\"sty\");return[{kind:\"run\",text:n,sty:o===\"p\"||o===\"b\"||o===\"bi\"?o:\"i\"}]}case\"f\":{let n=Xe(w(e,\"fPr\"),\"type\");return[{kind:\"frac\",num:me(e,\"num\",r),den:me(e,\"den\",r),type:n===\"noBar\"||n===\"skw\"||n===\"lin\"?n:\"bar\"}]}case\"rad\":{let n=Xe(w(e,\"radPr\"),\"degHide\");return[{kind:\"rad\",deg:n===\"1\"||n===\"on\"||n===\"true\"?[]:me(e,\"deg\",r),base:me(e,\"e\",r)}]}case\"sSup\":return[{kind:\"script\",base:me(e,\"e\",r),sup:me(e,\"sup\",r)}];case\"sSub\":return[{kind:\"script\",base:me(e,\"e\",r),sub:me(e,\"sub\",r)}];case\"sSubSup\":return[{kind:\"script\",base:me(e,\"e\",r),sub:me(e,\"sub\",r),sup:me(e,\"sup\",r)}];case\"sPre\":return[{kind:\"script\",base:[],sub:me(e,\"sub\",r),sup:me(e,\"sup\",r)},...me(e,\"e\",r)];case\"nary\":{let n=w(e,\"naryPr\"),o=Xe(n,\"limLoc\"),i=Xe(n,\"chr\")??\"\\u222B\",s=Xe(n,\"subHide\")===\"1\",l=Xe(n,\"supHide\")===\"1\";return[{kind:\"nary\",chr:i,sub:s?[]:me(e,\"sub\",r),sup:l?[]:me(e,\"sup\",r),base:me(e,\"e\",r),underOver:o?o===\"undOvr\":i!==\"\\u222B\"&&i!==\"\\u222E\"&&i!==\"\\u222C\"&&i!==\"\\u222D\"}]}case\"d\":{let n=w(e,\"dPr\"),o=Q(e,\"e\").map(i=>Bt(i,r));return[{kind:\"delim\",beg:Xe(n,\"begChr\")??\"(\",end:Xe(n,\"endChr\")??\")\",sep:Xe(n,\"sepChr\")??\",\",items:o.length?o:[[]]}]}case\"m\":return[{kind:\"matrix\",rows:Q(e,\"mr\").map(n=>Q(n,\"e\").map(o=>Bt(o,r)))}];case\"acc\":return[{kind:\"acc\",chr:Xe(w(e,\"accPr\"),\"chr\")??\"\\u0302\",base:me(e,\"e\",r)}];case\"bar\":{let n=Xe(w(e,\"barPr\"),\"pos\");return[{kind:\"acc\",chr:\"\\u0305\",base:me(e,\"e\",r),below:n===\"bot\"}]}case\"groupChr\":{let n=w(e,\"groupChrPr\"),o=Xe(n,\"pos\");return[{kind:\"acc\",chr:Xe(n,\"chr\")??\"\\u23DF\",base:me(e,\"e\",r),below:o!==\"top\"}]}case\"limLow\":return[{kind:\"lim\",base:me(e,\"e\",r),limit:me(e,\"lim\",r),below:!0}];case\"limUpp\":return[{kind:\"lim\",base:me(e,\"e\",r),limit:me(e,\"lim\",r),below:!1}];case\"func\":return[...me(e,\"fName\",r),{kind:\"run\",text:\"\\u2009\"},...me(e,\"e\",r)];case\"eqArr\":return[{kind:\"stack\",rows:Q(e,\"e\").map(n=>Bt(n,r))}];case\"box\":case\"borderBox\":case\"e\":case\"oMath\":return Bt(e,r);case\"phant\":return[{kind:\"run\",text:\" \".repeat(Math.max(1,vr(e).length)),sty:\"p\"}];case\"rPr\":case\"ctrlPr\":case\"argPr\":case\"fPr\":case\"radPr\":case\"naryPr\":case\"dPr\":case\"mPr\":case\"accPr\":case\"barPr\":case\"groupChrPr\":case\"limLowPr\":case\"limUppPr\":case\"funcPr\":case\"eqArrPr\":case\"boxPr\":case\"phantPr\":case\"sSupPr\":case\"sSubPr\":case\"sSubSupPr\":case\"sPrePr\":return null;default:{let n=Bt(e,r);if(n.length)return n;let o=vr(e);return o?[{kind:\"run\",text:o}]:null}}}function Pf(e){if(e.localName===\"oMathPara\"){let t=Q(e,\"oMath\").map(r=>Bt(r,16));return t.length>1?[{kind:\"stack\",rows:t}]:t[0]??[]}return Bt(e,16)}function Oe(e){var t,r;let n=\"\";for(let o of e)switch(o.kind){case\"run\":n+=o.text;break;case\"frac\":n+=`${Oe(o.num)}/${Oe(o.den)}`;break;case\"rad\":n+=`\\u221A(${Oe(o.base)})`;break;case\"script\":n+=Oe(o.base),(t=o.sub)!=null&&t.length&&(n+=`_${Oe(o.sub)}`),(r=o.sup)!=null&&r.length&&(n+=`^${Oe(o.sup)}`);break;case\"nary\":n+=o.chr,o.sub.length&&(n+=`_${Oe(o.sub)}`),o.sup.length&&(n+=`^${Oe(o.sup)}`),n+=Oe(o.base);break;case\"delim\":n+=o.beg+o.items.map(i=>Oe(i)).join(o.sep)+o.end;break;case\"matrix\":n+=o.rows.map(i=>i.map(s=>Oe(s)).join(\" \")).join(\"; \");break;case\"acc\":n+=Oe(o.base)+o.chr;break;case\"lim\":n+=`${Oe(o.base)}(${Oe(o.limit)})`;break;case\"stack\":n+=o.rows.map(i=>Oe(i)).join(\" \");break}return n}var If={l:\"left\",ctr:\"center\",r:\"right\",just:\"justify\",dist:\"justify\"};function _o(e,t){let r={...e,...t,rp:{...e.rp,...t.rp}};return t.lnPct!==void 0&&delete r.lnPx,t.lnPx!==void 0&&delete r.lnPct,t.buSizePct!==void 0&&delete r.buSizePts,t.buSizePts!==void 0&&delete r.buSizePct,r}function _l(e,t){let r={rp:{}};for(let n of e){n.def&&(r=_o(r,n.def));let o=n.lvls[t];o&&(r=_o(r,o))}return r}function nl(e,t,r){let n=e.lnPct!==void 0?e.lnPct*tl:null;return n===null&&e.lnPx&&(n=e.lnPx/t),r&&(n=Math.max(.5,(n??tl)-r)),{align:If[e.algn??\"l\"]??\"left\",lineHeight:n,spaceBefore:e.spcBef??0,spaceAfter:e.spcAft??0,marginLeft:e.marL??0,indent:e.indent??0}}function Nf(e){return{...e.lvl!==void 0?{level:!0}:{},...e.algn!==void 0?{align:!0}:{},...e.lnPct!==void 0||e.lnPx!==void 0?{lineHeight:!0}:{},...e.spcBef!==void 0?{spaceBefore:!0}:{},...e.spcAft!==void 0?{spaceAfter:!0}:{},...e.marL!==void 0?{marginLeft:!0}:{},...e.indent!==void 0?{indent:!0}:{}}}function rl(e){let t=\"\",r=e;for(;r>0;)t=String.fromCharCode(65+(r-1)%26)+t,r=Math.floor((r-1)/26);return t}function ol(e){let t=[[1e3,\"M\"],[900,\"CM\"],[500,\"D\"],[400,\"CD\"],[100,\"C\"],[90,\"XC\"],[50,\"L\"],[40,\"XL\"],[10,\"X\"],[9,\"IX\"],[5,\"V\"],[4,\"IV\"],[1,\"I\"]],r=\"\",n=e;for(let[o,i]of t)for(;n>=o;)r+=i,n-=o;return r}function Rf(e,t){let r;return e.startsWith(\"alphaLc\")?r=rl(t).toLowerCase():e.startsWith(\"alphaUc\")?r=rl(t):e.startsWith(\"romanLc\")?r=ol(t).toLowerCase():e.startsWith(\"romanUc\")?r=ol(t):e.startsWith(\"circleNum\")?r=t>=1&&t<=20?String.fromCharCode(9312+t-1):String(t):r=String(t),e.endsWith(\"ParenBoth\")?`(${r})`:e.endsWith(\"ParenR\")?`${r})`:e.endsWith(\"Period\")?`${r}.`:r}var Of={\"\\uF0A7\":\"\\u25AA\",\"\\uF0B7\":\"\\u2022\",\"\\uF0D8\":\"\\u27A2\",\"\\uF0FC\":\"\\u2713\",\"\\uF06C\":\"\\u25CF\",\"\\uF075\":\"\\u25C6\",\"\\uF0A8\":\"\\u25A1\",\"\\uF076\":\"\\u2756\",\"\\xA7\":\"\\u25AA\",n:\"\\u25AA\",l:\"\\u25CF\",u:\"\\u25C6\",p:\"\\u2751\",v:\"\\u2756\",w:\"\\u2666\",\\u00D8:\"\\u27A2\",\\u00FC:\"\\u2713\",F:\"\\u261E\",q:\"\\u2751\"};function zf(e,t,r){return(!e||e.kind!==\"auto\")&&(t.length=r+1,delete t[r]),!e||e.kind===\"none\"||e.kind===\"image\"?null:e.kind===\"char\"?Of[e.char]||(e.font&&/wingdings|webdings|symbol/i.test(e.font)?\"\\u2022\":e.char):(t.length=r+1,t[r]=(t[r]??e.startAt-1)+1,Rf(e.scheme,t[r]))}function il(e,t){let r=e.bullet;if(!r||r.kind===\"none\")return{kind:\"none\"};let n={...e.buColor!==void 0?{color:e.buColor}:{},...e.buFont!==void 0?{font:e.buFont}:{},...e.buSizePts!==void 0?{size:{kind:\"points\",value:e.buSizePts*.75}}:e.buSizePct!==void 0?{size:e.buSizePct===null?null:{kind:\"percent\",value:e.buSizePct}}:{}};return r.kind===\"char\"?{kind:\"char\",char:r.char,...r.font&&n.font===void 0?{font:r.font}:{},...n}:r.kind===\"auto\"?{kind:\"autoNum\",type:r.scheme,startAt:r.startAt,...n}:{kind:\"image\",rid:r.rid,src:t?.(r.rid)??null,...n}}function Ff(e){let t=0;return e.bullet!==void 0&&(t|=Nn.bullet),e.buColor!==void 0&&(t|=Nn.bulletColor),e.buFont!==void 0&&(t|=Nn.bulletFont),(e.buSizePct!==void 0||e.buSizePts!==void 0)&&(t|=Nn.bulletSize),e.rtl!==void 0&&(t|=Nn.rtl),t}function Kl(e){var t,r;let{lvl:n,resolved:o,inherited:i,direct:s,directRun:l,runs:a,counters:c,lnSpcReduction:u,env:h}=e,f=Math.max(...a.map(p=>p.size),1),m=nl(o,f,u),d=((t=o.bullet)==null?void 0:t.kind)===\"image\"&&h.resolveImage?h.resolveImage(o.bullet.rid):null;return{align:m.align,lvl:n,marL:m.marginLeft,indent:m.indent,bullet:zf(o.bullet,c,n),lineHeight:m.lineHeight,spaceBefore:m.spaceBefore,spaceAfter:m.spaceAfter,runs:a,bulletColor:o.buColor??null,bulletFont:o.buFont??null,bulletSize:o.buSizePts!==void 0?o.buSizePts/f:o.buSizePct??null,bulletImage:d,rtl:o.rtl,...h.edit?{editInfo:{inheritedParagraphProps:{level:0,...nl(i,f,u)},directParagraphProps:Nf(s),directRun:l,directLayout:Ff(s),...((r=o.bullet)==null?void 0:r.kind)===\"auto\"?{autoNumbering:{scheme:o.bullet.scheme,startAt:o.bullet.startAt}}:{},bullet:il(o,h.resolveImage),inheritedBullet:il(i,h.resolveImage)}}:{}}}var Ut={anchor:1,insets:2,wrap:4,vert:8,anchorCtr:16,columns:32,columnGap:64,autoFit:128},jf={horz:\"horz\",vert:\"vert\",vert270:\"vert270\",wordArtVert:\"wordArtVert\",eaVert:\"vert\",mongolianVert:\"vert\"};function rn(e,t){for(let r of e){let n=N(r,t);if(n!==null)return n}return null}function Uf(e){for(let t of e){if(!t)continue;let r=w(t,\"noAutofit\")??w(t,\"normAutofit\")??w(t,\"spAutoFit\");if(r)return r}return null}function sl(e){let t=rn(e,\"anchor\")??\"t\",r=(u,h)=>{let f=rn(e,u);return ie(f===null?h:Number(f))},n=Uf(e),o=n?.localName===\"normAutofit\",i=n?.localName===\"spAutoFit\",s=o?U(n,\"fontScale\"):null,l=Number(rn(e,\"numCol\")??\"1\"),a=Number(rn(e,\"spcCol\")??\"0\"),c=jf[rn(e,\"vert\")??\"horz\"];return{anchor:t===\"ctr\"?\"middle\":t===\"b\"?\"bottom\":\"top\",insets:[r(\"tIns\",45720),r(\"rIns\",91440),r(\"bIns\",45720),r(\"lIns\",91440)],wrap:rn(e,\"wrap\")!==\"none\",fontScale:s!=null?s/1e5:1,...o?{autoFitNormal:!0}:{},...o&&s==null?{autoFitCompute:!0}:{},...o&&(U(n,\"lnSpcReduction\")??0)?{lnSpcReduction:(U(n,\"lnSpcReduction\")??0)/1e5}:{},...i?{autoFitShape:!0}:{},...c!==\"horz\"?{vert:c}:{},...rn(e,\"anchorCtr\")===\"1\"?{anchorCtr:!0}:{},...l>1?{columns:l}:{},...Number.isFinite(a)&&a!==0?{columnGap:ie(a)}:{}}}function Df(e){if(!e)return 0;let t=0;return N(e,\"anchor\")!==null&&(t|=Ut.anchor),[\"tIns\",\"rIns\",\"bIns\",\"lIns\"].some(r=>N(e,r)!==null)&&(t|=Ut.insets),N(e,\"wrap\")!==null&&(t|=Ut.wrap),N(e,\"vert\")!==null&&(t|=Ut.vert),N(e,\"anchorCtr\")!==null&&(t|=Ut.anchorCtr),N(e,\"numCol\")!==null&&(t|=Ut.columns),N(e,\"spcCol\")!==null&&(t|=Ut.columnGap),(w(e,\"noAutofit\")||w(e,\"normAutofit\")||w(e,\"spAutoFit\"))&&(t|=Ut.autoFit),t}function Bf(e,t){return{latin:e.latin??t.fonts.minor.latin,eastAsian:e.ea??t.fonts.minor.ea,complexScript:e.cs??t.fonts.minor.cs??null}}function Hf(e){let t=e.u??\"none\",r=e.strike??\"noStrike\";return{u:t!==\"none\",strike:r!==\"noStrike\",...t!==\"none\"?{underline:t}:{},...r!==\"noStrike\"?{strikeType:r}:{}}}function ll(e,t,r){var n;let o=Bf(e,t);return{fontSlots:o,props:{b:e.b??!1,i:e.i??!1,...Hf(e),size:gn(e.sz??1800),color:e.color??t.defaultColor??\"rgb(0,0,0)\",fonts:Hh(o,r),baseline:e.baseline||void 0,spacing:e.spc||void 0,caps:e.caps&&e.caps!==\"none\"?e.caps:void 0,outline:e.outline??null,gradient:e.gradient??null,highlight:e.highlight??null,underlineColor:e.uColor??null,...e.gradientFill!==void 0?{gradientFill:e.gradientFill}:{},...e.shadowEffect!==void 0?{shadow:e.shadow,shadowEffect:e.shadowEffect}:{},...(n=e.generationIssues)!=null&&n.length?{generationIssues:e.generationIssues}:{}}}}function On(e,t,r,n,o=0){let i=ll(t,r,e),s=r.edit&&n?ll(n,r,e):null;return{text:e,...i.props,link:t.link,...s?{editInfo:{inheritedRunProps:s.props,inheritedFontSlots:s.fontSlots,direct:o,fontSlots:i.fontSlots}}:{}}}function Wf(e,t){var r;if(!e)return{};let n={},o=[],i=w(e,\"gradFill\");if(i){(N(i,\"rotWithShape\")===\"0\"||N(i,\"rotWithShape\")===\"false\"||N(i,\"flip\")!==null)&&o.push(\"\\u6587\\u5B57\\u6E10\\u53D8\\u65CB\\u8F6C/\\u7FFB\\u8F6C\");let c=w(i,\"lin\");!c||w(i,\"path\")||w(i,\"tileRect\")?o.push(\"\\u6587\\u5B57\\u6E10\\u53D8\\u8DEF\\u5F84/\\u5E73\\u94FA\\u8303\\u56F4\"):n.gradientFill={angle:(U(c,\"ang\")??0)/6e4,scaled:ye(c,\"scaled\")??!1,stops:Q(w(i,\"gsLst\"),\"gs\").map(u=>({pos:(U(u,\"pos\")??0)/1e5,color:ge(u,t)??\"#000000\"})).sort((u,h)=>u.pos-h.pos)}}else[\"solidFill\",\"noFill\",\"blipFill\",\"pattFill\",\"grpFill\"].some(c=>w(e,c))&&(n.gradientFill=null);for(let c of[\"blipFill\",\"pattFill\",\"grpFill\",\"effectDag\",\"uLn\",\"uLnTx\"])w(e,c)&&o.push(`\\u6587\\u5B57 ${c}`);let s=w(e,\"ln\");if(s){for(let c of Array.from(s.children))[\"solidFill\",\"noFill\"].includes(c.localName)||o.push(`\\u6587\\u5B57\\u63CF\\u8FB9 ${c.localName}`);for(let c of[\"cap\",\"cmpd\",\"algn\"])N(s,c)!==null&&o.push(`\\u6587\\u5B57\\u63CF\\u8FB9 ${c}`)}let l=w(e,\"uFill\");l&&!w(l,\"solidFill\")&&o.push(\"\\u4E0B\\u5212\\u7EBF\\u975E\\u7EAF\\u8272\\u586B\\u5145\");let a=w(e,\"effectLst\");if(a){let c=(r=vn(a,t))==null?void 0:r.shadow;n.shadowEffect=c??null,n.shadow=c?`${c.dx}px ${c.dy}px ${c.blur}px ${c.color}`:null,a.children.length>1&&o.push(\"\\u591A\\u91CD\\u6587\\u5B57\\u6548\\u679C\");for(let u of Array.from(a.children)){u.localName!==\"outerShdw\"&&o.push(`\\u6587\\u5B57\\u6548\\u679C ${u.localName}`);for(let[h,f]of[[\"sx\",\"100000\"],[\"sy\",\"100000\"],[\"kx\",\"0\"],[\"ky\",\"0\"],[\"algn\",\"b\"],[\"rotWithShape\",\"1\"]]){let m=N(u,h);m!==null&&m!==f&&o.push(`\\u6587\\u5B57\\u9634\\u5F71 ${h}`)}}}return o.length&&(n.generationIssues=o),n}var Vf=new Set([\"oMathPara\",\"oMath\",\"r\",\"t\",\"f\",\"num\",\"den\",\"rad\",\"deg\",\"e\",\"sSup\",\"sSub\",\"sSubSup\",\"sup\",\"sub\",\"nary\",\"d\",\"m\",\"mr\",\"acc\",\"bar\",\"groupChr\",\"limLow\",\"limUpp\",\"lim\",\"eqArr\",\"rPr\",\"fPr\",\"radPr\",\"naryPr\",\"dPr\",\"mPr\",\"accPr\",\"barPr\",\"groupChrPr\",\"limLowPr\",\"limUppPr\",\"eqArrPr\",\"sSupPr\",\"sSubPr\",\"sSubSupPr\",\"sty\",\"type\",\"degHide\",\"chr\",\"limLoc\",\"subHide\",\"supHide\",\"begChr\",\"endChr\",\"sepChr\",\"pos\"]),al=\"http://schemas.openxmlformats.org/officeDocument/2006/math\",Gf=new Set([\"sty\",\"type\",\"degHide\",\"chr\",\"limLoc\",\"subHide\",\"supHide\",\"begChr\",\"endChr\",\"sepChr\",\"pos\"]);function Xf(e){let t=new Set,r=(n,o)=>{var i;if(o>16){t.add(\"\\u516C\\u5F0F\\u8D85\\u51FA\\u89E3\\u6790\\u6DF1\\u5EA6\");return}(n.namespaceURI!==al||!Vf.has(n.localName))&&t.add(`\\u516C\\u5F0F ${n.tagName}`);for(let l of Array.from(n.attributes)){let a=l.namespaceURI;a!==\"http://www.w3.org/2000/xmlns/\"&&(n.localName===\"t\"&&l.name===\"xml:space\"||Gf.has(n.localName)&&l.localName===\"val\"&&(!a||a===al)||t.add(`\\u516C\\u5F0F\\u5C5E\\u6027 ${n.tagName}@${l.name}`))}let s=n.localName===\"rad\"?[[\"radPr\",\"degHide\",\"deg\"]]:n.localName===\"nary\"?[[\"naryPr\",\"subHide\",\"sub\"],[\"naryPr\",\"supHide\",\"sup\"]]:[];for(let[l,a,c]of s){let u=w(w(n,l),a);u&&![\"0\",\"false\",\"off\"].includes(N(u,\"val\")??\"\")&&(i=w(n,c))!=null&&i.children.length&&t.add(`\\u516C\\u5F0F\\u9690\\u85CF\\u53C2\\u6570 ${c}`)}for(let l of Array.from(n.children))r(l,o+1)};return r(e,0),[...t]}function Ht(e,t,r){let n={lvls:[]};if(!e)return n;let o=w(e,\"defPPr\");o&&(n.def=cl(o,t,r));for(let i=1;i<=9;i++){let s=w(e,`lvl${i}pPr`);s&&(n.lvls[i-1]=cl(s,t,r))}return n}function cl(e,t,r){return Ql(e,t,r).props}function Ql(e,t,r){let n={rp:{}};if(!e)return{props:n,directRun:0};let o=U(e,\"lvl\");o!==null&&(n.lvl=o);let i=N(e,\"algn\");i&&(n.algn=i);let s=U(e,\"marL\");s!==null&&(n.marL=ie(s));let l=U(e,\"indent\");l!==null&&(n.indent=ie(l)),N(e,\"rtl\")!==null&&(n.rtl=ye(e,\"rtl\"));let a=w(e,\"lnSpc\"),c=U(w(a,\"spcPct\"),\"val\");c!==null&&(n.lnPct=c/1e5);let u=U(w(a,\"spcPts\"),\"val\");u!==null&&(n.lnPx=gn(u));let h=U(w(w(e,\"spcBef\"),\"spcPts\"),\"val\");h!==null&&(n.spcBef=gn(h));let f=U(w(w(e,\"spcAft\"),\"spcPts\"),\"val\");f!==null&&(n.spcAft=gn(f)),w(e,\"buNone\")&&(n.bullet={kind:\"none\"});let m=w(e,\"buChar\");m&&(n.bullet={kind:\"char\",char:N(m,\"char\")??\"\\u2022\",font:N(w(e,\"buFont\"),\"typeface\")});let d=w(e,\"buAutoNum\");d&&(n.bullet={kind:\"auto\",scheme:N(d,\"type\")??\"arabicPeriod\",startAt:U(d,\"startAt\")??1});let p=w(w(e,\"buBlip\"),\"blip\");if(p){let y=N(p,\"r:embed\");y&&(n.bullet={kind:\"image\",rid:y})}let b=w(e,\"buClr\");b?n.buColor=ge(b,t)??null:w(e,\"buClrTx\")&&(n.buColor=null);let v=w(e,\"buFont\");v?n.buFont=N(v,\"typeface\"):w(e,\"buFontTx\")&&(n.buFont=null);let x=U(w(e,\"buSzPct\"),\"val\");if(x!==null)n.buSizePct=x/1e5;else{let y=U(w(e,\"buSzPts\"),\"val\");y!==null?n.buSizePts=gn(y):w(e,\"buSzTx\")&&(n.buSizePct=null)}let M=w(e,\"defRPr\"),S=wr(M,t,r);return n.rp=S.props,{props:n,directRun:S.direct}}function wr(e,t,r){let n={},o=0;if(!e)return{props:n,direct:o};let i=U(e,\"sz\");i!==null&&(n.sz=i,o|=Le.size),N(e,\"b\")!==null&&(n.b=ye(e,\"b\"),o|=Le.b),N(e,\"i\")!==null&&(n.i=ye(e,\"i\"),o|=Le.i);let s=N(e,\"u\");s!==null&&(n.u=Ef.includes(s)?s:\"sng\",o|=Le.u);let l=N(e,\"strike\");l!==null&&(n.strike=Tf.includes(l)?l:\"sngStrike\",o|=Le.strike);let a=U(e,\"baseline\");a!==null&&(n.baseline=a/1e3,o|=Le.baseline);let c=U(e,\"spc\");c!==null&&(n.spc=gn(c),o|=Le.spacing);let u=N(e,\"cap\");u&&(n.caps=u===\"all\"?\"all\":u===\"small\"?\"small\":\"none\",o|=Le.caps);let h=w(e,\"solidFill\"),f=ge(h,t);f&&(n.color=f),h&&(n.gradient=null);let m=w(e,\"gradFill\");if(m){let k=Q(w(m,\"gsLst\"),\"gs\").map(A=>({pos:(U(A,\"pos\")??0)/1e5,color:ge(A,t)??\"#000\"})).sort((A,L)=>A.pos-L.pos);if(k.length){let A=w(m,\"lin\"),L=A?(U(A,\"ang\")??0)/6e4+90:180;n.gradient=`linear-gradient(${Math.round(L)}deg,${k.map(P=>`${P.color} ${Math.round(P.pos*100)}%`).join(\",\")})`,n.color||(n.color=k[0].color)}}w(e,\"noFill\")&&(n.color=\"transparent\",n.gradient=null),(h||m||[\"noFill\",\"blipFill\",\"pattFill\",\"grpFill\"].some(k=>!!w(e,k)))&&(o|=Le.color|Le.gradient),!h&&!m&&[\"blipFill\",\"pattFill\",\"grpFill\"].some(k=>!!w(e,k))&&(n.color=\"transparent\",n.gradient=null);let d=ge(w(e,\"uFill\"),t)??ge(w(w(e,\"uFill\"),\"solidFill\"),t);d&&(n.uColor=d),(w(e,\"uFillTx\")||w(e,\"uFill\")&&!d)&&(n.uColor=null),(w(e,\"uFillTx\")||w(e,\"uFill\"))&&(o|=Le.underlineColor);let p=w(e,\"highlight\");p&&(n.highlight=ge(p,t)??null),p&&(o|=Le.highlight);let b=w(e,\"ln\");if(w(b,\"noFill\"))n.outline=null;else if(b){let k=ge(w(b,\"solidFill\"),t);k?n.outline={color:k,width:ie(U(b,\"w\")??9525)}:n.outline=null}b&&(o|=Le.outline);let v=w(e,\"latin\"),x=Io(N(v,\"typeface\"),r);x&&(n.latin=x),N(v,\"typeface\")!==null&&(o|=Le.fontLatin);let M=w(e,\"ea\"),S=Io(N(M,\"typeface\"),r);S&&(n.ea=S),N(M,\"typeface\")!==null&&(o|=Le.fontEastAsian);let y=w(e,\"cs\"),$=Io(N(y,\"typeface\"),r);return $&&(n.cs=$),N(y,\"typeface\")!==null&&(o|=Le.fontComplexScript),Object.assign(n,Wf(e,t)),{props:n,direct:o}}function Io(e,t){return e?e===\"+mj-lt\"?t.major.latin:e===\"+mj-ea\"?t.major.ea:e===\"+mj-cs\"?t.major.cs??t.major.latin:e===\"+mn-lt\"?t.minor.latin:e===\"+mn-ea\"?t.minor.ea:e===\"+mn-cs\"?t.minor.cs??t.minor.latin:e:null}var No=(e,t)=>({...e,...t});function Yf(e){for(let t of e){let r=w(t,\"prstTxWarp\");if(!r)continue;let n=N(r,\"prst\");if(!n||n===\"textNoShape\")return;let o={},i=[];for(let s of Q(w(r,\"avLst\"),\"gd\")){let l=N(s,\"name\"),a=N(s,\"fmla\")??\"\",c=Number(a.replace(/^val\\s+/,\"\"));l&&Number.isFinite(c)&&(o[l]=c),(!l||!/^val\\s+-?\\d+$/.test(a)||!Number.isSafeInteger(c))&&i.push(`\\u827A\\u672F\\u5B57\\u8C03\\u6574\\u503C ${l??\"(\\u65E0\\u540D)\"}\\uFF1A${a}`)}return{preset:n,adj:o,...i.length?{generationIssues:i}:{}}}}function Wt(e,t,r=!1){if(!e)return null;let n=w(e,\"bodyPr\"),o=[n,...t.bodyPrFallbacks??[]],i=sl(o),s=(t.bodyPrFallbacks??[]).some(Boolean),l=t.edit&&s?sl(o.slice(1)):void 0,a=[],c=[],u=!1;for(let h of Q(e,\"p\")){let f=w(h,\"pPr\"),m=U(f,\"lvl\")??0,d=_l(t.chain,m),p=Ql(f,t.ctx,t.fonts),b=p.props,v=_o(d,b),x=[],M=(S,y)=>{var $;for(let k=S.firstElementChild;k;k=k.nextElementSibling)if(k.localName===\"r\"||k.localName===\"fld\"){let A=w(k,\"rPr\"),L=wr(A,t.ctx,t.fonts),P=No(v.rp,L.props),E=w(A,\"hlinkClick\"),T=!1;if(E&&t.resolveLink){let R=t.resolveLink(N(E,\"r:id\")??\"\",N(E,\"action\"));R?P.link=R:T=!0}let I=(($=w(k,\"t\"))==null?void 0:$.textContent)??\"\";k.localName===\"fld\"&&!I&&(I=Zf(N(k,\"type\"),t));let O=On(I,P,t,v.rp,L.direct);t.edit&&T&&O.editInfo&&(O.editInfo={...O.editInfo,readonlyLink:!0}),x.push(k.localName===\"fld\"?{...O,field:N(k,\"type\")??\"unknown\"}:O),I.trim()&&(u=!0)}else if(k.localName===\"br\"){let A=w(k,\"rPr\"),L=wr(A,t.ctx,t.fonts),P=No(v.rp,L.props);x.push(On(`\n`,P,t,v.rp,L.direct))}else if(k.localName===\"m\"&&k.namespaceURI===\"http://schemas.microsoft.com/office/drawing/2010/main\")y>0&&M(k,y-1);else if(k.localName===\"AlternateContent\"){let A=w(k,\"Choice\")??w(k,\"Fallback\");A&&y>0&&M(A,y-1)}else if(k.localName===\"oMathPara\"||k.localName===\"oMath\"){let A=Pf(k),L=A.length?Oe(A):qf(k),P=Xf(k);if(A.length||L||P.length){let E=On(L,{...v.rp,i:!0},t,v.rp);A.length&&(E.math=A),P.length&&(E.generationIssues=[...E.generationIssues??[],...P]),x.push(E),u=!0}}else y>0&&(k.localName===\"Choice\"||k.localName===\"Fallback\")&&M(k,y-1)};if(M(h,4),x.length===0){let S=w(h,\"endParaRPr\"),y=wr(S,t.ctx,t.fonts);x.push(On(\"\",No(v.rp,y.props),t,v.rp,y.direct))}c.push(Kl({lvl:m,resolved:v,inherited:d,direct:b,directRun:p.directRun,runs:x,counters:a,lnSpcReduction:i.lnSpcReduction??0,env:t}))}return!u&&!r?null:{...i,paragraphs:c,warp:Yf(o),...t.edit?{editInfo:{direct:Df(n),...l?{inherited:l}:{}}}:{}}}function qf(e){let t=[],r=(n,o)=>{for(let i=n.firstElementChild;i;i=i.nextElementSibling)i.localName===\"t\"?t.push(i.textContent??\"\"):o>0&&r(i,o-1)};return r(e,12),t.join(\"\").trim()}function Zf(e,t){return e?e===\"slidenum\"?String(t.slideNum):e.startsWith(\"datetime\")?t.dateText??new Date().toLocaleDateString():e===\"footer\"?t.footerText??\"\":\"\":\"\"}function _f(e){return{...e,runs:e.runs.length?[{...e.runs[e.runs.length-1],text:\"\"}]:[]}}function Jl(e,t,r=!1){let n=new Map;if(r)for(let s of e.paragraphs)n.has(s.lvl)||n.set(s.lvl,_f(s));let o=[],i=Array.from({length:9},(s,l)=>{let a=n.get(l);if(a)return a;let c=_l(t.chain,l),u=On(\"\",c.rp,t,c.rp);return Kl({lvl:l,resolved:c,inherited:c,direct:{rp:{}},directRun:0,runs:[u],counters:o,lnSpcReduction:e.lnSpcReduction??0,env:t})});return{...e,paragraphs:i}}function Kf(e){let t=(N(e,\"uniqueId\")??\"\").toLowerCase();if(/orgchart|hierarchy/.test(t))return\"hierarchy\";if(/pyramid/.test(t))return\"pyramid\";if(/radial|cycle.*matrix/.test(t))return\"radial\";if(/cycle|gear/.test(t))return\"cycle\";if(/matrix|grid/.test(t))return\"snake\";let r=new Set,n=(o,i)=>{if(!(!o||i<0))for(let s=o.firstElementChild;s;s=s.nextElementSibling){if(s.localName===\"alg\"){let l=N(s,\"type\");l&&r.add(l)}n(s,i-1)}};return n(e,12),r.has(\"hierRoot\")||r.has(\"hierChild\")?\"hierarchy\":r.has(\"pyra\")?\"pyramid\":r.has(\"cycle\")?\"cycle\":r.has(\"snake\")?\"snake\":r.has(\"sp\")&&!r.has(\"lin\")?\"radial\":\"linear\"}function Qf(e){let t=(N(e,\"uniqueId\")??\"\").toLowerCase();if(/vlist|vertical|^.*\\/list1$/.test(t))return!0;let r=e?.getElementsByTagName(\"*\");for(let n=0;r&&n<r.length;n++)if(r[n].localName===\"param\"&&N(r[n],\"type\")===\"linDir\")return N(r[n],\"val\")===\"fromT\"||N(r[n],\"val\")===\"fromB\";return!1}function Jf(e){if(!e)return[];let t=e.localName===\"dataModel\"?e:w(e,\"dataModel\"),r=w(t,\"ptLst\"),n=w(t,\"cxnLst\");if(!r)return[];let o=new Map,i=null;for(let c of Q(r,\"pt\")){let u=N(c,\"modelId\");if(!u)continue;let h=N(c,\"type\")??\"node\";h===\"parTrans\"||h===\"sibTrans\"||h===\"pres\"||(h===\"doc\"&&(i=u),o.set(u,{id:u,txBody:w(c,\"t\"),kids:[]}))}for(let c of Q(n,\"cxn\")){if((N(c,\"type\")??\"parOf\")!==\"parOf\")continue;let u=N(c,\"srcId\"),h=N(c,\"destId\");if(!u||!h)continue;let f=o.get(u);!f||!o.has(h)||f.kids.push({id:h,ord:U(c,\"srcOrd\")??0})}let s=new Set,l=(c,u)=>{if(s.has(c)||u>12)return null;s.add(c);let h=o.get(c);return h?(h.kids.sort((f,m)=>f.ord-m.ord),{id:c,text:null,children:h.kids.map(f=>l(f.id,u+1)).filter(f=>f!==null),depth:u}):null};if(i){let c=l(i,-1);return c?c.children:[]}let a=new Set;for(let c of o.values())for(let u of c.kids)a.add(u.id);return[...o.keys()].filter(c=>!a.has(c)).map(c=>l(c,0)).filter(c=>c!==null)}function e0(e,t){let r=e?.localName===\"dataModel\"?e:w(e,\"dataModel\");for(let n of Q(w(r,\"ptLst\"),\"pt\"))if(N(n,\"modelId\")===t)return w(n,\"t\");return null}function t0(e){if(!e)return[];let t=[],r=Q(e,\"styleLbl\"),n=r.find(i=>(N(i,\"name\")??\"\").startsWith(\"node\"))??r[0],o=w(n??null,\"fillClrLst\");for(let i=o?.firstElementChild??null;i;i=i.nextElementSibling){let s=N(i,\"val\");s&&t.push(s)}return t}function n0(e){let t=[],r=n=>{for(let o of n)t.push(o),r(o.children)};return r(e),t}function r0(e,t,r,n){let o=e.length?e:[];if(!o.length)return[];let i=(n?r:t)*.04,s=o.length;if(n){let c=(r-i*(s-1))/s,u=Math.min(t,c*5);return o.map((h,f)=>({x:(t-u)/2,y:f*(c+i),w:u,h:c,pt:h,prst:\"roundRect\",colorIdx:f}))}let l=(t-i*(s-1))/s,a=Math.min(r,l*.8);return o.map((c,u)=>({x:u*(l+i),y:(r-a)/2,w:l,h:a,pt:c,prst:\"roundRect\",colorIdx:u}))}function o0(e,t,r){let n=e.length;if(!n)return[];let o=Math.min(t,r)*(n<=4?.34:.28),i=o*.62,s=(t-o)/2,l=(r-i)/2;return e.map((a,c)=>{let u=-Math.PI/2+c*2*Math.PI/n;return{x:t/2+s*Math.cos(u)-o/2,y:r/2+l*Math.sin(u)-i/2,w:o,h:i,pt:a,prst:\"ellipse\",colorIdx:c}})}function i0(e,t,r){let n=e.length;if(!n)return[];let o=r/n;return e.map((i,s)=>{let l=(s+1)/n*t;return{x:(t-l)/2,y:s*o,w:l,h:o*.94,pt:i,prst:\"trapezoid\",colorIdx:s}})}function s0(e,t,r){let n=e.length;if(!n)return[];let o=Math.ceil(Math.sqrt(n)),i=Math.ceil(n/o),s=t*.03,l=r*.05,a=(t-s*(o-1))/o,c=(r-l*(i-1))/i;return e.map((u,h)=>({x:h%o*(a+s),y:Math.floor(h/o)*(c+l),w:a,h:c,pt:u,prst:\"roundRect\",colorIdx:h}))}function l0(e,t,r){if(!e.length)return[];let[n,...o]=e,i=Math.min(t,r)*.3,s=[{x:(t-i)/2,y:(r-i)/2,w:i,h:i,pt:n,prst:\"ellipse\",colorIdx:0}],l=o.length,a=Math.min(t,r)*.26,c=a*.62;return o.forEach((u,h)=>{let f=-Math.PI/2+h*2*Math.PI/Math.max(l,1);s.push({x:t/2+(t-a)/2*Math.cos(f)-a/2,y:r/2+(r-c)/2*Math.sin(f)-c/2,w:a,h:c,pt:u,prst:\"ellipse\",colorIdx:h+1})}),s}function a0(e,t,r){let n=[],o=(a,c)=>{if(a.length){(n[c]??(n[c]=[])).push(...a);for(let u of a)o(u.children,c+1)}};if(o(e,0),!n.length)return[];let i=r/n.length,s=i*.62,l=[];return n.forEach((a,c)=>{let u=t*.03,h=(t-u*(a.length-1))/a.length;a.forEach((f,m)=>{l.push({x:m*(h+u),y:c*i+(i-s)/2,w:h,h:s,pt:f,prst:\"roundRect\",colorIdx:c})})}),l}var c0={linear:r0,cycle:(e,t,r)=>o0(e,t,r),pyramid:(e,t,r)=>i0(e,t,r),hierarchy:(e,t,r)=>a0(e,t,r),snake:(e,t,r)=>s0(e,t,r),radial:(e,t,r)=>l0(e,t,r)};function u0(e,t,r,n){let o=n.family===\"hierarchy\"?e:n0(e),i=c0[n.family](o,t,r,n.vertical);if(!i.length)return[];let s=[];if(n.family===\"hierarchy\"){let l=new Map(i.map(u=>[u.pt.id,u])),a=(u,h)=>{let f=u.x+u.w/2,m=u.y+u.h,d=h.x+h.w/2,p=h.y,b=(m+p)/2,v=Math.min(f,d),x=Math.min(m,p),M=Math.max(Math.abs(d-f),1),S=Math.max(p-m,1),y=`M ${f-v} 0 L ${f-v} ${b-x} L ${d-v} ${b-x} L ${d-v} ${S}`;s.push({kind:\"shape\",x:v,y:x,w:M,h:S,rot:0,flipH:!1,flipV:!1,path:y,fill:null,stroke:{color:n.colors[0]??\"rgb(68,114,196)\",width:1.5,dash:null},text:null,openGeom:!0,name:\"SmartArt \\u8FDE\\u7EBF\"})},c=u=>{for(let h of u){let f=l.get(h.id);for(let m of h.children){let d=l.get(m.id);f&&d&&a(f,d)}c(h.children)}};c(e)}for(let l of i){let a={type:\"solid\",color:n.colors[l.colorIdx%Math.max(n.colors.length,1)]??\"rgb(68,114,196)\"},c=nn(l.prst,l.w,l.h,{}),u={kind:\"shape\",x:l.x,y:l.y,w:l.w,h:l.h,rot:0,flipH:!1,flipV:!1,path:c.d,fill:a,stroke:null,text:n.textOf(l.pt.id),name:\"SmartArt \\u8282\\u70B9\"};s.push(u)}return s}function h0(e,t){return{kind:\"group\",...t,childX:0,childY:0,scaleX:1,scaleY:1,children:e,name:\"SmartArt\"}}var f0=new Set([\"dt\",\"ftr\",\"sldNum\",\"hdr\"]);function d0(e,t,r,n){return ea(e,t,r,n).flatMap(o=>o.layoutIds)}function ea(e,t,r,n){var o,i;let s=[],l=new Set;for(let a of Q(w(e,\"sldMasterIdLst\"),\"sldMasterId\")){let c=N(a,\"r:id\"),u=c?(o=t[c])==null?void 0:o.target:null;if(!u||l.has(u))continue;l.add(u);let h=u?r(u):null,f=u?n(u):{},m=[];for(let d of Q(w(h,\"sldLayoutIdLst\"),\"sldLayoutId\")){let p=N(d,\"r:id\"),b=p?(i=f[p])==null?void 0:i.target:null;b&&!m.includes(b)&&m.push(b)}s.push({part:u,layoutIds:m})}return s}function p0(e){var t,r;let n=(t=e.editInfo)==null?void 0:t.placeholder;if(!n)return null;if(e.kind!==\"shape\")return e;let o=((r=e.editInfo)==null?void 0:r.textTemplate)??e.text??void 0,i=o?.paragraphs[0],s=o&&i?{...o,paragraphs:[{...i,runs:i.runs.length?[{...i.runs[i.runs.length-1],text:\"\"}]:[]}]}:o;return{...e,text:f0.has(n.type)?e.text:null,editInfo:{...e.editInfo,...s?{textTemplate:s}:{}}}}function ui(e,t,r){if(r!=null&&r.includes(\"nextslide\"))return e.edit?\"slide:next\":`slide:${e.slideNum+1}`;if(r!=null&&r.includes(\"previousslide\"))return e.edit?\"slide:previous\":`slide:${e.slideNum-1}`;if(r!=null&&r.includes(\"firstslide\"))return e.edit?\"slide:first\":\"slide:1\";if(r!=null&&r.includes(\"lastslide\"))return\"slide:last\";let n=e.rels[t];if(!n)return null;if(ci(n.target))return n.target;let o=e.slideIdMap[n.target];return o===void 0?null:e.edit?`slide-part:${encodeURIComponent(n.target)}`:`slide:${o}`}function hi(e,t){let r=w(e,\"hlinkClick\");if(!r)return{unsupported:!1};let n=ui(t,N(r,\"r:id\")??\"\",N(r,\"action\"))??void 0;return{...n?{link:n}:{},unsupported:!n}}var m0=\"rgb(0,0,0)\";function ul(e){let t={};for(let r of Q(e,\"font\")){let n=N(r,\"script\"),o=N(r,\"typeface\");n&&o&&(t[n]=o)}return{latin:N(w(e,\"latin\"),\"typeface\")??\"\",ea:N(w(e,\"ea\"),\"typeface\")??\"\",cs:N(w(e,\"cs\"),\"typeface\")??\"\",scripts:t}}function ta(e,t=\"\"){let r=ee(e,\"themeElements\",\"clrScheme\"),n=Object.fromEntries(Sf.map(s=>{let l=w(w(r,s),\"srgbClr\")??w(w(r,s),\"sysClr\")??w(w(r,s),\"prstClr\")??w(w(r,s),\"scrgbClr\")??w(w(r,s),\"hslClr\");return[s,l?ti(l,{theme:{},clrMap:{}}):m0]})),o=ee(e,\"themeElements\",\"fontScheme\"),i={major:ul(w(o,\"majorFont\")),minor:ul(w(o,\"minorFont\"))};return{id:t,name:N(e,\"name\")??t,colors:n,fonts:i}}function g0(e){return Object.fromEntries(Object.entries(e.colors).map(([t,r])=>{let[n,o,i]=bl(r);return[t,[n,o,i].map(s=>Math.round(s).toString(16).padStart(2,\"0\")).join(\"\").toUpperCase()]}))}function na(e,t,r,n){var o,i;let s=[],l={},a=new Set;for(let c of Q(w(e,\"sldMasterIdLst\"),\"sldMasterId\")){let u=N(c,\"r:id\"),h=u?(o=t[u])==null?void 0:o.target:null;if(!h)continue;let f=(i=Object.values(n(h)).find(m=>m.type.endsWith(\"/theme\")))==null?void 0:i.target;f&&(l[h]=f,!a.has(f)&&(a.add(f),s.push(ta(r(f),f))))}return{themes:s,themeByMaster:l}}function an(e,t){for(let r of Object.values(e))if(r.type.endsWith(t))return r.target;return null}function b0(e){let t=ta(e),r=ee(e,\"themeElements\",\"fmtScheme\"),n=o=>{var i;let s=[];for(let l=((i=w(r,o))==null?void 0:i.firstElementChild)??null;l;l=l.nextElementSibling)s.push(l);return s};return{colors:g0(t),fonts:t.fonts,fillStyles:n(\"fillStyleLst\"),lnStyles:n(\"lnStyleLst\"),effectStyles:n(\"effectStyleLst\"),bgFillStyles:n(\"bgFillStyleLst\")}}function hl(e){let t=[];for(let r of Array.from(e?.children??[]).filter(n=>n.localName===\"sp\")){let n=ee(r,\"nvSpPr\",\"nvPr\",\"ph\");n&&t.push({type:N(n,\"type\"),idx:N(n,\"idx\"),sp:r})}return t}function bn(e,t,r){var n;return((n=Wh(e,o=>o,{type:t,idx:r}))==null?void 0:n.sp)??null}function ra(e,t,r,n,o,i,s,l,a){let c=r?e.xml(r):null,u=r?e.rels(r):{},h=r?an(u,\"/slideMaster\"):null,f=h?e.xml(h):null;return oa(e,t,r,c,h,f,n,o,i,s,l,a)}function x0(e,t,r,n,o,i,s,l){return oa(e,null,null,null,t,e.xml(t),r,n,o,i,s,l)}function oa(e,t,r,n,o,i,s,l,a,c,u,h){let f=o?e.rels(o):{},m=o?an(f,\"/theme\"):null,d=b0(m?e.xml(m):null),p={},b=w(i,\"clrMap\");if(b)for(let O of Array.from(b.attributes))p[O.localName]=O.value;let v=ee(t,\"clrMapOvr\",\"overrideClrMapping\")??ee(n,\"clrMapOvr\",\"overrideClrMapping\");if(v)for(let O of Array.from(v.attributes))p[O.localName]=O.value;let x={theme:d.colors,clrMap:p},M=`${m??\"\"}\\0${Object.entries(p).sort(([O],[R])=>O.localeCompare(R)).map(([O,R])=>`${O}=${R}`).join(\";\")}`,S=h?.get(M);if(!S){S={lvls:[]};let O=Ht(w(s,\"defaultTextStyle\"),x,d.fonts);S.def=O.def,S.lvls=O.lvls,h?.set(M,S)}let y=w(i,\"txStyles\"),$={title:Ht(w(y,\"titleStyle\"),x,d.fonts),body:Ht(w(y,\"bodyStyle\"),x,d.fonts),other:Ht(w(y,\"otherStyle\"),x,d.fonts)},k=ee(i,\"cSld\",\"spTree\"),A=ee(n,\"cSld\",\"spTree\"),L=hl(A),P=hl(k),E=new Set,T=u?new Map:void 0,I=w(n,\"hf\")??w(i,\"hf\");if(I)for(let O of[\"sldNum\",\"ftr\",\"dt\",\"hdr\"])N(I,O)===\"0\"&&E.add(O);return{layoutPath:r,layoutRoot:n,masterPath:o,masterRoot:i,masterTree:k,layoutTree:A,envFor:(O,R)=>({pkg:e,ctx:x,theme:d,rels:O?e.rels(O):{},partPath:O??\"\",docDefaults:S,masterStyles:$,layoutPh:R?L:[],masterPh:R?P:[],slideNum:c,tableStyles:l,hiddenPh:E,slideIdMap:a,edit:u,textLevelTemplateCache:T})}}var v0=20556,w0=4,y0=268435456,fl=null;var $0=(e,t)=>(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0,dl=(e,t)=>(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0,M0=(e,t)=>e[t+1]<<8|e[t];function Ro(e){if(e.length<4)return null;switch($0(e,0)){case 65536:case 1953658213:case 1953784678:return\"font/ttf\";case 1330926671:return\"font/otf\";case 2001684038:return\"font/woff\";case 2001684018:return\"font/woff2\";default:return null}}function k0(e){let t=Ro(e);if(t)return{data:e,mime:t};if(e.length<82||M0(e,34)!==v0)return null;let r=dl(e,12);if(r&w0){if(!fl)return null;let s=null;try{s=fl(e)}catch{return null}return s!=null&&s.length?{data:s,mime:Ro(s)??\"font/ttf\"}:null}let n=dl(e,4);if(!n||n>e.length-82)return null;let o=e.subarray(e.length-n);if(r&y0){o=o.slice();for(let s=0;s<o.length;s++)o[s]^=80}let i=Ro(o);return i?{data:o,mime:i}:null}var Ko=class{constructor(t,r=\"asset:\"){this.publishAssets=t,this.tokenPrefix=r,this.mode=\"blob\",this.deferred=[],this.deferredIndex=new Map,this.urlCache=new Map,this.objectUrls=[],this.packageAssets=Object.create(null)}get published(){return this.packageAssets}store(t,r,n,o){let i;if(this.mode===\"defer\"){let s=this.deferredIndex.get(t);s===void 0&&(s=`${this.tokenPrefix}${this.deferred.length}`,this.deferred.push({mime:n,data:r}),this.deferredIndex.set(t,s)),i=s}else{let s=this.urlCache.get(t);s===void 0&&(s=URL.createObjectURL(new Blob([r.slice().buffer],{type:n})),this.objectUrls.push(s),this.urlCache.set(t,s)),i=s}return this.publishAssets&&(this.packageAssets[i]={mime:n,bytes:r,sourcePart:o}),i}cached(t,r){return this.urlCache.has(t)||this.urlCache.set(t,r()),this.urlCache.get(t)??null}publish(t,r,n,o){this.publishAssets&&(this.packageAssets[t]={mime:n,bytes:r,sourcePart:o})}dispose(){for(let t of this.objectUrls)try{URL.revokeObjectURL(t)}catch{}this.objectUrls=[],this.deferred.length=0,this.deferredIndex.clear(),this.urlCache.clear(),this.packageAssets=Object.create(null)}};function C0(e){return e.endsWith(\"/\")?!1:/\\/(?:media|embeddings)\\//i.test(e)||/^ppt\\/slides\\/(?:_rels\\/)?slide[^/]+$/i.test(e)||/^ppt\\/(?:notesSlides|comments|charts|diagrams)\\//i.test(e)||/^ppt\\/vbaProject/i.test(e)}function S0(e){let t=new Set,r=Go(e,{filter:o=>C0(o.name)?(t.add(o.name),!1):!0});if(t.size===0)return r;let n=o=>{if(Object.prototype.hasOwnProperty.call(r,o))return r[o];if(!t.has(o))return;let i=Go(e,{filter:l=>l.name===o});t.delete(o);let s=i[o];if(s)return r[o]=s,s};return new Proxy(r,{get(o,i,s){return typeof i==\"string\"&&t.has(i)?n(i):Reflect.get(o,i,s)},has(o,i){return Reflect.has(o,i)||typeof i==\"string\"&&t.has(i)}})}var E0=new TextDecoder,T0=new Uint8Array(0),L0={png:\"image/png\",jpg:\"image/jpeg\",jpeg:\"image/jpeg\",gif:\"image/gif\",bmp:\"image/bmp\",webp:\"image/webp\",svg:\"image/svg+xml\",tif:\"image/tiff\",tiff:\"image/tiff\"},A0={emf:\"image/x-emf\",wmf:\"image/x-wmf\",pict:\"image/x-pict\",pct:\"image/x-pict\",pic:\"image/x-pict\"};function P0(e,t){if(t.startsWith(\"/\"))return t.slice(1);let r=[];for(let n of(e+t).split(\"/\"))n===\"..\"?r.pop():n!==\".\"&&n!==\"\"&&r.push(n);return r.join(\"/\")}var Cr=class{constructor(t,r=!1){this.existingAssetUrls=new Map,this.xmlCache=new Map,this.relsCache=new Map,this.imageMetadataCache=new Map,this.cacheTrace=null,this.sourceBytes=null,this.isDisposed=!1;let n=!(t instanceof Uint8Array);if(Xs(this,n?t:void 0),n)this.files=t.parts;else{let o=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);this.files=r?Go(o):S0(o)}if(this.assetStore=new Ko(r,n?\"layout-asset:\":\"asset:\"),n)for(let[o,i]of Object.entries(t.assets??{}))i.sourcePart&&this.existingAssetUrls.set(i.sourcePart,o);else if(r){this.sourceBytes=t;let o=this;this.opcHandle=Object.freeze({format:\"pptx\",get bytes(){return o.sourceBytes??T0},get parts(){return o.files},get assets(){return o.assetStore.published},get disposed(){return o.isDisposed}}),Xs(this.opcHandle,this)}}set assetMode(t){this.assetStore.mode=t}get deferred(){return this.assetStore.deferred}get opcPackage(){return this.opcHandle}xml(t){var r;if((r=this.cacheTrace)==null||r.add(t),!this.xmlCache.has(t)){let n=this.files[t],o=null;if(n)try{o=Tr(E0.decode(n))}catch{o=null}this.xmlCache.set(t,o)}return this.xmlCache.get(t)??null}forgetXml(t){this.xmlCache.delete(t)}forgetPart(t){let r=t.slice(0,t.lastIndexOf(\"/\")+1);this.xmlCache.delete(t),this.relsCache.delete(t),this.xmlCache.delete(`${r}_rels/${t.slice(r.length)}.rels`),this.imageMetadataCache.delete(t)}beginCacheTrace(){if(this.cacheTrace)throw new Error(\"OPC \\u7F13\\u5B58\\u8BBF\\u95EE\\u4F5C\\u7528\\u57DF\\u4E0D\\u80FD\\u5D4C\\u5957\");return this.cacheTrace=new Set,this.cacheTrace}endCacheTrace(t){if(this.cacheTrace!==t)throw new Error(\"OPC \\u7F13\\u5B58\\u8BBF\\u95EE\\u4F5C\\u7528\\u57DF\\u4E0D\\u5339\\u914D\");return this.cacheTrace=null,[...t]}rels(t){var r;if((r=this.cacheTrace)==null||r.add(t),!this.relsCache.has(t)){let n=t.slice(0,t.lastIndexOf(\"/\")+1),o={},i=this.xml(`${n}_rels/${t.slice(n.length)}.rels`);for(let s of Q(i,\"Relationship\")){let l=N(s,\"Id\"),a=N(s,\"Target\");if(!l||!a)continue;let c=N(s,\"TargetMode\")===\"External\";o[l]=c?{type:N(s,\"Type\")??\"\",target:a,external:!0}:{type:N(s,\"Type\")??\"\",target:P0(n,a)}}this.relsCache.set(t,o)}return this.relsCache.get(t)}blobUrl(t,r){let n=this.existingAssetUrls.get(t);if(n)return n;let o=this.files[t];return o?this.assetStore.store(`${r}|${t}`,o,r,t):null}fontUrl(t){let r=this.existingAssetUrls.get(t);if(r)return r;let n=this.files[t];if(!n)return null;let o=k0(n);return o?this.assetStore.store(`font|${t}`,o.data,o.mime,t):null}fontSourceUrl(t){let r=this.files[t];return r?this.assetStore.store(`font-source|${t}`,r,\"application/octet-stream\"):null}dispose(){this.assetStore.dispose(),this.xmlCache.clear(),this.relsCache.clear(),this.imageMetadataCache.clear(),this.files={},this.sourceBytes=null,this.isDisposed=!0}mediaUrl(t){let r=this.existingAssetUrls.get(t);if(r)return r;let n=t.slice(t.lastIndexOf(\".\")+1).toLowerCase();if(Rh.has(n)){let i=`mf|${t}`,s=this.assetStore.cached(i,()=>{let a=this.files[t];return a?ii(a):null}),l=this.files[t];return s&&l&&this.assetStore.publish(s,l,A0[n]??\"application/octet-stream\",t),s}let o=L0[n];return o?this.blobUrl(t,o):null}imageMetadata(t){var r;if((r=this.cacheTrace)==null||r.add(t),!this.imageMetadataCache.has(t)){let n=this.files[t];this.imageMetadataCache.set(t,n?Ph(n):null)}return this.imageMetadataCache.get(t)??null}};function I0(e,t){if(t){t.fill!==void 0&&(e.fill=structuredClone(t.fill));for(let[r,n]of Object.entries(t.borders??{}))e.borders[r]=structuredClone(n)}}function N0(e,t,r,n,o,i){let s={fill:null,borders:{}},{parts:l}=e,a=t.firstRow&&r===0,c=t.lastRow&&r===o-1,u=t.firstCol&&n===0,h=t.lastCol&&n===i-1,f=t.bandRow?t.firstRow?r-1:r:-1,m=t.bandCol?t.firstCol?n-1:n:-1,d=[l.wholeTbl];f>=0&&!a&&!c&&d.push(f%2===0?l.band1H:l.band2H),m>=0&&!u&&!h&&d.push(m%2===0?l.band1V:l.band2V),u&&d.push(l.firstCol),h&&d.push(l.lastCol),a&&d.push(l.firstRow),c&&d.push(l.lastRow),a&&u&&d.push(l.nwCell),a&&h&&d.push(l.neCell),c&&u&&d.push(l.swCell),c&&h&&d.push(l.seCell);let p;for(let b of d)I0(s,b),b!=null&&b.text&&(p={...p,...b.text});return{...s,text:p}}var Sr=\"{5C22544A-7EE6-4342-B048-85BDC9FD1C3A}\",ia=Object.freeze({[Sr]:`<a:tblStyle styleId=\"${Sr}\" styleName=\"Medium Style 2 - Accent 1\">\n<a:wholeTbl><a:tcTxStyle><a:fontRef idx=\"minor\"><a:scrgbClr r=\"0\" g=\"0\" b=\"0\"/></a:fontRef><a:schemeClr val=\"dk1\"/></a:tcTxStyle>\n<a:tcStyle><a:tcBdr>\n<a:left><a:ln w=\"12700\" cmpd=\"sng\"><a:solidFill><a:schemeClr val=\"lt1\"/></a:solidFill></a:ln></a:left>\n<a:right><a:ln w=\"12700\" cmpd=\"sng\"><a:solidFill><a:schemeClr val=\"lt1\"/></a:solidFill></a:ln></a:right>\n<a:top><a:ln w=\"12700\" cmpd=\"sng\"><a:solidFill><a:schemeClr val=\"lt1\"/></a:solidFill></a:ln></a:top>\n<a:bottom><a:ln w=\"12700\" cmpd=\"sng\"><a:solidFill><a:schemeClr val=\"lt1\"/></a:solidFill></a:ln></a:bottom>\n</a:tcBdr><a:fill><a:solidFill><a:schemeClr val=\"accent1\"><a:tint val=\"20000\"/></a:schemeClr></a:solidFill></a:fill></a:tcStyle></a:wholeTbl>\n<a:band1H><a:tcStyle><a:tcBdr/><a:fill><a:solidFill><a:schemeClr val=\"accent1\"><a:tint val=\"40000\"/></a:schemeClr></a:solidFill></a:fill></a:tcStyle></a:band1H>\n<a:band2H><a:tcStyle><a:tcBdr/><a:fill><a:solidFill><a:schemeClr val=\"lt1\"/></a:solidFill></a:fill></a:tcStyle></a:band2H>\n<a:firstRow><a:tcTxStyle b=\"on\"><a:fontRef idx=\"minor\"><a:scrgbClr r=\"0\" g=\"0\" b=\"0\"/></a:fontRef><a:schemeClr val=\"lt1\"/></a:tcTxStyle>\n<a:tcStyle><a:tcBdr><a:bottom><a:ln w=\"38100\" cmpd=\"sng\"><a:solidFill><a:schemeClr val=\"lt1\"/></a:solidFill></a:ln></a:bottom></a:tcBdr>\n<a:fill><a:solidFill><a:schemeClr val=\"accent1\"/></a:solidFill></a:fill></a:tcStyle></a:firstRow>\n</a:tblStyle>`}),R0=Object.freeze([Object.freeze({styleId:Sr,name:\"Medium Style 2 - Accent 1\",markup:ia[Sr]})]);function O0(){return R0}function z0(e){return e?ia[e.toUpperCase()]??null:null}var pl=new Map;function Qo(e){if(!e)return null;let t=e.toUpperCase(),r=pl.get(t);if(r)return r;let n=z0(t);if(!n)return null;let o=Tr(`<root xmlns:a=\"http://schemas.openxmlformats.org/drawingml/2006/main\">${n}</root>`),i=w(o,\"tblStyle\"),s={root:o,style:i};return pl.set(t,s),s}function sa(e,t){let r=Q(e,\"tblStyle\"),n=N(e,\"def\"),o=r.find(a=>{var c;return((c=N(a,\"styleId\"))==null?void 0:c.toUpperCase())===t?.toUpperCase()});if(o&&e)return{style:o,namespaceRoot:e,source:\"document\"};let i=Qo(t);if(i)return{...i,namespaceRoot:i.root,source:\"builtin\"};let s=r.find(a=>{var c;return((c=N(a,\"styleId\"))==null?void 0:c.toUpperCase())===n?.toUpperCase()});if(s&&e)return{style:s,namespaceRoot:e,source:\"document\"};let l=Qo(n);return l?{...l,namespaceRoot:l.root,source:\"builtin\"}:null}function F0(e){return e?{wholeTbl:w(e,\"wholeTbl\"),band1H:w(e,\"band1H\"),band2H:w(e,\"band2H\"),band1V:w(e,\"band1V\"),band2V:w(e,\"band2V\"),firstRow:w(e,\"firstRow\"),lastRow:w(e,\"lastRow\"),firstCol:w(e,\"firstCol\"),lastCol:w(e,\"lastCol\"),nwCell:w(e,\"nwCell\"),neCell:w(e,\"neCell\"),swCell:w(e,\"swCell\"),seCell:w(e,\"seCell\")}:null}var fi=[[\"l\",\"left\",\"lnL\"],[\"r\",\"right\",\"lnR\"],[\"t\",\"top\",\"lnT\"],[\"b\",\"bottom\",\"lnB\"]];function j0(e,t,r){if(!e)return;let n=w(e,\"tcStyle\"),o=r.fill(w(n,\"fill\")??n,t),i={},s=w(n,\"tcBdr\");for(let[h,f]of fi){let m=w(s,f);m&&(i[h]=r.line(w(m,\"ln\"),t,null))}let l=w(e,\"tcTxStyle\"),a=N(l,\"b\"),c=l?ge(l,t.ctx):null,u={...a!==null?{b:a===\"on\"||a===\"1\"||a===\"true\"}:{},...c?{color:c}:{}};return{...o?{fill:o}:{},...Object.keys(i).length?{borders:i}:{},...Object.keys(u).length?{text:u}:{}}}function Oo(e){return e.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\")}function U0(e){return Array.from(e.attributes).filter(t=>t.name===\"xmlns\"||t.name.startsWith(\"xmlns:\")).map(t=>({name:t.name,value:t.value}))}function di(e,t=e.tagName,r=[]){let n=new Set(Array.from(e.attributes).map(l=>l.name)),o=[...r.filter(l=>!n.has(l.name)),...Array.from(e.attributes).map(l=>({name:l.name,value:l.value}))].map(l=>` ${l.name}=\"${Oo(l.value)}\"`).join(\"\"),i=Array.from(e.childNodes);if(!i.length)return`<${t}${o}/>`;let s=i.map(l=>{if(typeof l==\"string\")return Oo(l);let a=l;return a.nodeType===1||a.tagName?di(l):Oo(a.nodeValue??\"\")}).join(\"\");return`<${t}${o}>${s}</${t}>`}var D0=[\"wholeTbl\",\"band1H\",\"band2H\",\"band1V\",\"band2V\",\"firstRow\",\"lastRow\",\"firstCol\",\"lastCol\",\"nwCell\",\"neCell\",\"swCell\",\"seCell\"];function Jo(e,t,r){var n,o;let i=(n=N(e.style,\"styleId\"))==null?void 0:n.trim();if(!i)return null;let s={};for(let l of D0){let a=j0(w(e.style,l),t,r);a&&(s[l]=a)}return{styleId:i,name:((o=N(e.style,\"styleName\"))==null?void 0:o.trim())||e.fallbackName||i,source:e.source,markup:di(e.style,e.style.tagName,U0(e.namespaceRoot)),parts:s}}function pi(e,t,r){let n=[],o=new Set,i=s=>{let l=s?.styleId.toUpperCase();!s||o.has(l)||(o.add(l),n.push(s))};for(let s of Q(e,\"tblStyle\"))i(Jo({style:s,namespaceRoot:e,source:\"document\"},t,r));for(let s of O0()){let l=Qo(s.styleId);i(Jo({style:l.style,namespaceRoot:l.root,source:\"builtin\",fallbackName:s.name},t,r))}return n}function B0(e,t,r){let n=w(e,\"tcPr\"),o=r.fill(n,t),i={};for(let[s,,l]of fi){let a=w(n,l);a&&(i[s]=r.line(a,t,null))}return{fill:o,borders:i}}function la(e,t,r,n,o){var i,s;let l=w(e,\"tblPr\"),a=((s=(i=w(l,\"tableStyleId\"))==null?void 0:i.textContent)==null?void 0:s.trim())??null,c=sa(r.tableStyles,a),u=c?Jo(c,r,n):null,h={styleId:a??u?.styleId??\"\",firstRow:ye(l,\"firstRow\"),lastRow:ye(l,\"lastRow\"),bandRow:ye(l,\"bandRow\"),firstCol:ye(l,\"firstCol\"),lastCol:ye(l,\"lastCol\"),bandCol:ye(l,\"bandCol\")},f=Q(w(e,\"tblGrid\"),\"gridCol\").map(x=>ie(U(x,\"w\"))),m=Q(e,\"tr\"),d=(x,M,S)=>{let y=Q(x,\"tc\");return{height:ie(U(x,\"h\")),cells:y.map(($,k)=>{var A,L,P,E;let T=u?N0(u,h,M,k,S,y.length):{fill:null,borders:{},text:void 0},I=B0($,r,n),O=structuredClone(T.borders);for(let[q,X]of Object.entries(I.borders))O[q]=X;let R=w($,\"txBody\"),z={ctx:r.ctx,fonts:r.theme.fonts,chain:[r.docDefaults],slideNum:r.slideNum,defaultColor:((A=T.text)==null?void 0:A.color)??null,resolveLink:(q,X)=>ui(r,q,X),edit:r.edit},j=Wt(R,z),F=!j&&r.edit?Wt(R,z,!0)??void 0:void 0;if(((L=T.text)==null?void 0:L.b)!==void 0){for(let q of[j,F])if(q)for(let X of q.paragraphs)for(let K of X.runs)((((P=X.editInfo)==null?void 0:P.directRun)??0)|(((E=K.editInfo)==null?void 0:E.direct)??0))&Le.b||(K.b=T.text.b)}let W;if(r.edit){let q={...z,defaultColor:null},X=Wt(R,q),K=X?void 0:Wt(R,q,!0)??void 0;W={fill:I.fill,borders:I.borders,text:X,...K?{textTemplate:K}:{}}}let V=w($,\"tcPr\"),B=(q,X)=>{let K=U(V,q);return ie(K===null?X:K)};return{colSpan:U($,\"gridSpan\")??1,rowSpan:U($,\"rowSpan\")??1,merged:ye($,\"hMerge\")||ye($,\"vMerge\"),fill:I.fill??T.fill,text:j,borders:O,margins:[B(\"marT\",45720),B(\"marR\",91440),B(\"marB\",45720),B(\"marL\",91440)],vAlign:N(V,\"anchor\")===\"ctr\"?\"middle\":N(V,\"anchor\")===\"b\"?\"bottom\":\"top\",vert:N(V,\"vert\")===\"vert\"?\"vert\":N(V,\"vert\")===\"vert270\"?\"vert270\":void 0,...F||W?{editInfo:{...F?{textTemplate:F}:{},...W?{styleBase:W}:{}}}:{}}})}},p=m.map((x,M)=>d(x,M,m.length)),b=r.edit&&a?{tableStyle:h}:void 0,v=m[m.length-1];if(r.edit&&v){let x=m.length;b={...b,tableRowAppend:{...x===1?{previousLast:d(v,0,2)}:{},regular:[d(v,x,x+2),d(v,x+1,x+3)],last:[d(v,x,x+1),d(v,x+1,x+2)]}}}return{kind:\"table\",...t,colWidths:f,rows:p,name:o,...b?{editInfo:b}:{}}}var ml=new WeakMap,gl=null,H0='<a:txBody><a:bodyPr/><a:lstStyle/><a:p><a:endParaRPr lang=\"zh-CN\"/></a:p></a:txBody>',W0='<a:txBody><a:bodyPr/><a:lstStyle/><a:p><a:endParaRPr lang=\"zh-CN\" b=\"0\"><a:solidFill><a:schemeClr val=\"tx1\"/></a:solidFill></a:endParaRPr></a:p></a:txBody>',V0='<a:solidFill><a:schemeClr val=\"tx1\"><a:alpha val=\"25000\"/></a:schemeClr></a:solidFill>';function zo(e,t){let r=[e?.wholeTbl??null,t];return`<a:tcPr>${fi.map(([,n,o])=>{let i=null;for(let s of r){let l=w(w(w(s,\"tcStyle\"),\"tcBdr\"),n);l&&(i=w(l,\"ln\"))}return i?di(i,`a:${o}`):`<a:${o} w=\"9525\">${V0}</a:${o}>`}).join(\"\")}${e?\"\":'<a:solidFill><a:schemeClr val=\"lt1\"/></a:solidFill>'}</a:tcPr>`}function G0(e,t,r){let n=`${t}\\0${e.join(\"\\0\")}`,o=r?ml.get(r):null,i=r?o?.get(n):gl;if(i)return i;let s=c=>`<a:tc>${t}${c}</a:tc>`,l=Tr(`<root xmlns:a=\"http://schemas.openxmlformats.org/drawingml/2006/main\">\n<a:tbl><a:tblPr firstRow=\"1\" bandRow=\"1\"/><a:tblGrid><a:gridCol w=\"9525\"/></a:tblGrid>\n<a:tr h=\"9525\">${s(e[0])}</a:tr>\n<a:tr h=\"9525\">${s(e[1])}</a:tr>\n<a:tr h=\"9525\">${s(e[2])}</a:tr>\n</a:tbl></root>`),a=w(l,\"tbl\");if(r){let c=o??new Map;c.set(n,a),o||ml.set(r,c)}else gl=a;return a}function mi(e,t){var r,n,o,i;let s=(r=N(e.tableStyles,\"def\"))==null?void 0:r.trim(),l=s?sa(e.tableStyles,s):null,a=F0(l?.style??null),c=[zo(a,a?.firstRow??null),zo(a,a?.band1H??null),zo(a,a?.band2H??null)],u=a?H0:W0,h=la(G0(c,u,a?e.tableStyles:null),{x:0,y:0,w:1,h:3,rot:0,flipH:!1,flipV:!1},e,t),[f,m,d]=h.rows.map(p=>p.cells[0]);if(!((n=f?.editInfo)!=null&&n.textTemplate)||!((o=m?.editInfo)!=null&&o.textTemplate)||!((i=d?.editInfo)!=null&&i.textTemplate))throw new Error(\"\\u65E0\\u6CD5\\u6784\\u9020\\u65B0\\u589E\\u8868\\u683C\\u5355\\u5143\\u683C\\u6A21\\u677F\");return{...s?{styleId:s}:{},textBodyMarkup:u,cellPropertiesMarkup:c,firstRow:f,bandRows:[m,d]}}function X0(e){let t=N(e,\"title\"),r=N(e,\"descr\");if(!(t===null&&r===null))return{...t===null?{}:{title:t},...r===null?{}:{descr:r}}}function Y0(e,t){let r=[],n=e.getElementsByTagName(\"*\");for(let o=0;o<n.length;o++)if(n[o].localName===\"sectionLst\"){for(let i of Q(n[o],\"section\")){let s=[],l=[];for(let c of Q(w(i,\"sldIdLst\"),\"sldId\")){let u=U(c,\"id\");if(u===null)continue;s.push(u);let h=t.get(u);h!==void 0&&l.push(h)}let a=N(i,\"id\");r.push({name:N(i,\"name\")??`\\u8282 ${r.length+1}`,slideIds:s,slideIndexes:l,...a===null?{}:{id:a}})}break}return r}var q0=new Set([\"http://schemas.openxmlformats.org/presentationml/2006/main\",\"http://schemas.openxmlformats.org/drawingml/2006/main\",\"http://schemas.openxmlformats.org/officeDocument/2006/math\",\"http://schemas.microsoft.com/office/powerpoint/2010/main\",\"http://schemas.microsoft.com/office/drawing/2010/main\"]);function ei(e){return e.some(t=>t.kind===\"unsupported\"||t.kind===\"group\"&&ei(t.children))}function aa(e){return Array.from(e.children).filter(t=>t.namespaceURI===Vt).flatMap(t=>Array.from(t.children).flatMap(r=>r.namespaceURI===Vt&&r.localName===\"AlternateContent\"?aa(r):[r]))}function Z0(e,t,r,n,o){var i;if(e.namespaceURI!==Vt)return[];let s=Fl(e,{has:c=>q0.has(c)||Ih(c,o)}),l=Q(e,\"Choice\").find(c=>c.namespaceURI===Vt),a=s?t(s):Array.from(l?.children??[]).flatMap(c=>{let u=r(c);return u?[u]:[]});if(s?.localName===\"Choice\"&&ei(a)){let c=Q(e,\"Fallback\").find(h=>h.namespaceURI===Vt),u=c?t(c):[];u.length&&!ei(u)&&(a=u)}if(n){let c=aa(e).some(u=>{var h,f;return(f=(h=r(u))==null?void 0:h.editInfo)==null?void 0:f.moveLocked});for(let u of a)u.editInfo={...u.editInfo,editable:((i=u.editInfo)==null?void 0:i.editable)===\"none\"?\"none\":\"frame\",requiresOriginal:!0,...c?{moveLocked:!0}:{}}}return a}var _0=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\",Er=new WeakMap;function gi(e,t,r){let n=e.files;if(!n)return;let o=Er.get(e);o||Er.set(e,o=new Map);let i=h=>{let f=n[h];f&&o.set(h,{url:`web-ppt-source:${h}`,mime:\"application/octet-stream\",bytes:f})},s=h=>{let f=h.lastIndexOf(\"/\")+1;return`${h.slice(0,f)}_rels/${h.slice(f)}.rels`},l=new Set,a=h=>{if(!(l.has(h)||!n[h])){l.add(h),i(h),i(s(h));for(let f of Object.values(e.rels(h)))a(f.target)}};i(r),i(s(r)),i(\"[Content_Types].xml\");let c=e.rels(r),u=h=>{var f;if(h.localName===\"relIds\"&&(f=h.namespaceURI)!=null&&f.endsWith(\"/diagram\"))for(let m of Object.values(c))m.type.endsWith(\"/diagramDrawing\")&&a(m.target);for(let m of Array.from(h.attributes))if(m.namespaceURI===_0){let d=c[m.value];d&&a(d.target)}for(let m of Array.from(h.children))u(m)};u(t)}function K0(e){var t;return[...((t=Er.get(e))==null?void 0:t.values())??[]]}function Q0(e){Er.delete(e)}var J0={mp4:\"video/mp4\",m4v:\"video/mp4\",mov:\"video/quicktime\",webm:\"video/webm\",ogv:\"video/ogg\",avi:\"video/x-msvideo\",wmv:\"video/x-ms-wmv\",mpg:\"video/mpeg\",mpeg:\"video/mpeg\",mp3:\"audio/mpeg\",m4a:\"audio/mp4\",wav:\"audio/wav\",wma:\"audio/x-ms-wma\",ogg:\"audio/ogg\",oga:\"audio/ogg\",aac:\"audio/aac\",mid:\"audio/midi\",midi:\"audio/midi\"};function vt(e){if(!e)return null;let t=w(e,\"off\"),r=w(e,\"ext\"),n=w(e,\"chOff\"),o=w(e,\"chExt\");return{x:ie(U(t,\"x\")),y:ie(U(t,\"y\")),w:ie(U(r,\"cx\")),h:ie(U(r,\"cy\")),rot:(U(e,\"rot\")??0)/6e4,flipH:ye(e,\"flipH\"),flipV:ye(e,\"flipV\"),chX:ie(U(n,\"x\")),chY:ie(U(n,\"y\")),chW:ie(U(o,\"cx\")),chH:ie(U(o,\"cy\"))}}var ze=e=>({x:e.x,y:e.y,w:e.w,h:e.h,rot:e.rot,flipH:e.flipH,flipV:e.flipV});function sn(e){let t=w(e,\"cNvSpPr\")??w(e,\"cNvCxnSpPr\")??w(e,\"cNvPicPr\")??w(e,\"cNvGrpSpPr\")??w(e,\"cNvGraphicFramePr\"),r=w(t,\"spLocks\")??w(t,\"cxnSpLocks\")??w(t,\"picLocks\")??w(t,\"grpSpLocks\")??w(t,\"graphicFrameLocks\");return ye(r,\"noMove\")}function Xt(e,t,r=null,n,o,i=!1,s=!1,l=0,a){if(!e.edit)return{};let c=U(t,\"id\"),u={};if(c!==null&&(u.origin={part:e.partPath,spid:c}),r){let f=N(r,\"idx\");u.placeholder={type:N(r,\"type\")??\"obj\",...f===null?{}:{idx:f}}}n&&(u.geom=n),a&&(u.customGeometry=a),r&&l&&(u.placeholderDirect=l),o&&(u.editable=o),i&&(u.moveLocked=!0),s&&(u.readonlyLink=!0);let h=X0(t);return h&&(u.altText=h),u.origin||u.placeholder||u.placeholderDirect||u.geom||u.customGeometry||u.editable||u.moveLocked||u.readonlyLink||u.altText?{editInfo:u}:{}}function ca(e,t){return t?{...e,ctx:{...e.ctx,phClr:t}}:e}var ua=[\"noFill\",\"solidFill\",\"gradFill\",\"blipFill\",\"pattFill\",\"grpFill\"];function ha(e,t){let r=0;return w(e,\"xfrm\")&&(r|=pn.transform),(w(e,\"prstGeom\")||w(e,\"custGeom\"))&&(r|=pn.geometry),ua.some(n=>!!w(e,n))&&(r|=pn.fill),w(e,\"ln\")&&(r|=pn.stroke),(w(e,\"effectLst\")||w(e,\"effectDag\"))&&(r|=pn.effects),t&&(r|=pn.style),r}var ed=new Set([\"tl\",\"t\",\"tr\",\"l\",\"ctr\",\"r\",\"bl\",\"b\",\"br\"]);function xn(e,t){if(!e)return null;for(let r of ua){let n=w(e,r);if(n)return bi(n,t)}return null}function bi(e,t){if(!e)return null;switch(e.localName){case\"noFill\":return{type:\"none\"};case\"solidFill\":return{type:\"solid\",color:ge(e,t.ctx)??\"rgb(0,0,0)\"};case\"gradFill\":{let r=Q(w(e,\"gsLst\"),\"gs\").map(o=>({pos:(U(o,\"pos\")??0)/1e5,color:ge(o,t.ctx)??\"rgb(0,0,0)\"})).sort((o,i)=>o.pos-i.pos);if(!r.length)return null;if(w(e,\"path\"))return{type:\"gradient\",angle:0,stops:r,radial:!0};let n=w(e,\"lin\");return{type:\"gradient\",angle:n?(U(n,\"ang\")??0)/6e4:90,stops:r}}case\"blipFill\":{let r=da(e,t);if(!r)return{type:\"none\"};let n=w(e,\"tile\"),o=U(w(w(e,\"blip\"),\"alphaModFix\"),\"amt\"),i=w(e,\"srcRect\"),s=d=>(U(i,d)??0)/1e5,l=!!i&&[\"l\",\"t\",\"r\",\"b\"].some(d=>N(i,d)!==null),a=fa(e,t),c=a&&!/^https?:/i.test(a)?t.pkg.imageMetadata(a):null,u=U(e,\"dpi\")??0,h=c?{sourceWidth:c.width*96/(u>0?u:c.dpiX),sourceHeight:c.height*96/(u>0?u:c.dpiY)}:{},f=N(n,\"algn\"),m=ed.has(f)?f:\"tl\";return{type:\"image\",src:r,alpha:o!==null?o/1e5:void 0,crop:l?{l:s(\"l\"),t:s(\"t\"),r:s(\"r\"),b:s(\"b\")}:void 0,tile:n?{sx:(U(n,\"sx\")??1e5)/1e5,sy:(U(n,\"sy\")??1e5)/1e5,flip:N(n,\"flip\")??\"none\",tx:ie(U(n,\"tx\")??0),ty:ie(U(n,\"ty\")??0),algn:m,...h}:void 0}}case\"pattFill\":return{type:\"pattern\",fg:ge(w(e,\"fgClr\"),t.ctx)??\"rgb(0,0,0)\",bg:ge(w(e,\"bgClr\"),t.ctx)??\"rgba(0,0,0,0)\",preset:N(e,\"prst\")??\"pct50\"};case\"grpFill\":return null}return null}function fa(e,t){var r;let n=w(e,\"blip\"),o=Q(w(n,\"extLst\"),\"ext\").map(s=>w(s,\"svgBlip\")).find(s=>s!==null)??null,i=N(n,\"r:embed\")??N(n,\"r:link\")??N(o,\"r:embed\")??N(o,\"r:link\");return i?((r=t.rels[i])==null?void 0:r.target)??null:null}function da(e,t){let r=fa(e,t);return r?/^https?:/i.test(r)?r:t.pkg.mediaUrl(r):null}function td(e){let t=w(e,\"blip\");if(!t)return;let r=[];w(t,\"grayscl\")&&r.push(\"grayscale(1)\");let n=w(t,\"lum\");if(n){let o=(U(n,\"bright\")??0)/1e5,i=(U(n,\"contrast\")??0)/1e5;o&&r.push(`brightness(${(1+o).toFixed(2)})`),i&&r.push(`contrast(${(1+i).toFixed(2)})`)}return r.length?r.join(\" \"):void 0}var nd={dash:[4,3],dashDot:[4,3,1,3],dot:[1,3],lgDash:[8,3],lgDashDot:[8,3,1,3],lgDashDotDot:[8,3,1,3,1,3],sysDash:[3,3],sysDashDot:[3,3,1,3],sysDashDotDot:[3,3,1,3,1,3],sysDot:[1,1]},rd={flat:\"butt\",rnd:\"round\",sq:\"square\"};function Bn(e,t,r){if(!e)return r;if(w(e,\"noFill\"))return null;let n=U(e,\"w\")!==null?ie(U(e,\"w\")):r?.width??1,o=xn(e,t),i=r?.color??null;if(o?.type===\"solid\"?i=o.color:o?.type===\"gradient\"&&o.stops.length&&(i=o.stops[0].color),!i)return r?{...r,width:n}:null;let s=N(w(e,\"prstDash\"),\"val\"),l=Math.max(n,1),a=s?s===\"solid\"?null:(nd[s]??[4,3]).map(m=>m*l):r?.dash??null,c=Zs(w(e,\"headEnd\"))??r?.head,u=Zs(w(e,\"tailEnd\"))??r?.tail,h=rd[N(e,\"cap\")??\"\"]??r?.cap,f=w(e,\"round\")?\"round\":w(e,\"bevel\")?\"bevel\":w(e,\"miter\")?\"miter\":r?.join;return{color:i,width:n,dash:a,cap:h,join:f,head:c,tail:u,compound:N(e,\"cmpd\")??r?.compound}}function pa(e){return e?[{def:{rp:{color:e}},lvls:[]}]:[]}function ma(e,t){if(!e)return{fill:null,stroke:null,fontColor:null,effects:void 0};let r=(s,l)=>{let a=w(e,s),c=Number(N(a,\"idx\")??\"0\");if(!a||!c)return{el:null,env:t};let u=ge(a,t.ctx);return{el:l[Math.min(c,l.length)-1]??null,env:ca(t,u)}},n=r(\"fillRef\",t.theme.fillStyles),o=r(\"lnRef\",t.theme.lnStyles),i=r(\"effectRef\",t.theme.effectStyles);return{fill:n.el?bi(n.el,n.env):null,stroke:o.el?Bn(o.el,o.env,null):null,fontColor:ge(w(e,\"fontRef\"),t.ctx),effects:i.el?vn(w(i.el,\"effectLst\")??i.el,i.env.ctx):void 0}}var br=null,ga=`<p:style><a:lnRef idx=\"2\"><a:schemeClr val=\"accent1\"><a:shade val=\"50000\"/></a:schemeClr></a:lnRef>\n<a:fillRef idx=\"1\"><a:schemeClr val=\"accent1\"/></a:fillRef><a:effectRef idx=\"0\"><a:schemeClr val=\"accent1\"/></a:effectRef>\n<a:fontRef idx=\"minor\"><a:schemeClr val=\"lt1\"/></a:fontRef></p:style>`,ba='<p:txBody><a:bodyPr anchor=\"ctr\"/><a:lstStyle/><a:p><a:pPr algn=\"ctr\"/><a:endParaRPr lang=\"zh-CN\"/></a:p></p:txBody>';function od(){if(br)return br;let e=Tr(`<root xmlns:a=\"http://schemas.openxmlformats.org/drawingml/2006/main\" xmlns:p=\"http://schemas.openxmlformats.org/presentationml/2006/main\">\n${ga}\n${ba}\n</root>`);return br={style:w(e,\"style\"),text:w(e,\"txBody\")},br}function xi(e){let t=od(),r=ma(t.style,e),n=Wt(t.text,{ctx:e.ctx,fonts:e.theme.fonts,chain:[e.docDefaults,...pa(r.fontColor),Ht(w(t.text,\"lstStyle\"),e.ctx,e.theme.fonts)],defaultColor:r.fontColor,slideNum:e.slideNum,edit:!0},!0);if(!n)throw new Error(\"\\u65E0\\u6CD5\\u6784\\u9020\\u65B0\\u589E\\u5F62\\u72B6\\u6587\\u5B57\\u6A21\\u677F\");return{fill:r.fill,stroke:r.stroke,effects:r.effects,textTemplate:n,styleMarkup:ga,textBodyMarkup:ba}}function wt(e,t,r){let n=[];if(!e)return n;for(let o=e.firstElementChild;o;o=o.nextElementSibling){let i=null;try{i=id(o,t,r)}catch(s){i=xa(o,s,t)}Array.isArray(i)?n.push(...i):i&&n.push(i)}return n}function id(e,t,r){{let n=null;switch(e.localName){case\"sp\":case\"cxnSp\":{let o=e.localName===\"sp\"?\"nvSpPr\":\"nvCxnSpPr\",i=ee(e,o,\"nvPr\",\"ph\");if(r&&i||i&&t.hiddenPh.has(N(i,\"type\")??\"\"))break;n=sd(e,t);break}case\"pic\":n=va(e,t);break;case\"grpSp\":n=fd(e,t,r);break;case\"graphicFrame\":n=dd(e,t);break;case\"contentPart\":n=hd(e,t);break;case\"AlternateContent\":return t.edit&&gi(t.pkg,e,t.partPath),Z0(e,o=>wt(o,t,r),o=>xa(o,\"\\u4E0D\\u652F\\u6301\\u7684\\u517C\\u5BB9\\u5185\\u5BB9\",t),t.edit,t.pkg)}return n}}function xa(e,t,r){let n=w(e,\"nvSpPr\")??w(e,\"nvPicPr\")??w(e,\"nvGrpSpPr\")??w(e,\"nvCxnSpPr\")??w(e,\"nvGraphicFramePr\")??w(e,\"nvContentPartPr\"),o=vt(ee(e,\"spPr\",\"xfrm\")??ee(e,\"grpSpPr\",\"xfrm\")??w(e,\"xfrm\"));if(!o||o.w<=0||o.h<=0)return null;let i=w(n,\"cNvPr\"),s=N(i,\"name\")??e.localName,l=t instanceof Error?t.message:String(t);return{kind:\"unsupported\",...ze(o),id:U(i,\"id\")??void 0,label:`${s}\\uFF08\\u89E3\\u6790\\u5931\\u8D25\\uFF1A${l.slice(0,40)}\\uFF09`,...Xt(r,i,ee(n,\"nvPr\",\"ph\"),void 0,\"frame\",sn(n))}}function sd(e,t){var r,n;let o=e.localName===\"cxnSp\"?\"nvCxnSpPr\":\"nvSpPr\",i=w(e,o),s=w(i,\"cNvPr\"),l=ee(i,\"nvPr\",\"ph\"),a=N(l,\"type\"),c=N(l,\"idx\"),u=w(e,\"spPr\"),h=l?bn(t.layoutPh,a,c):null,f=l?bn(t.masterPh,a,c):null,m=vt(w(u,\"xfrm\"));if(!m&&l&&(m=vt(ee(h,\"spPr\",\"xfrm\"))??vt(ee(f,\"spPr\",\"xfrm\"))),!m)return null;let d=ma(w(e,\"style\"),t),p=u;!w(u,\"prstGeom\")&&!w(u,\"custGeom\")&&l&&(p=ee(h,\"spPr\")??ee(f,\"spPr\")??u);let b=w(p,\"prstGeom\"),v=w(p,\"custGeom\"),x=null,M=!1,S,y;if(b){let z=N(b,\"prst\")??\"rect\",j=Zo(w(b,\"avLst\")),F=nn(z,m.w,m.h,j);x=F.d,M=F.open,t.edit&&(S={preset:z,adj:j})}else if(v){let z=Zl(v,m.w,m.h);z&&(x=z.d,M=z.open),t.edit&&(y=Cf(v,m.w,m.h))}let $=xn(u,t);!$&&l&&($=xn(ee(h,\"spPr\"),t)??xn(ee(f,\"spPr\"),t)),$||($=d.fill),M&&($={type:\"none\"});let k=Bn(w(u,\"ln\"),t,d.stroke);!w(u,\"ln\")&&l&&(k=Bn(ee(h,\"spPr\",\"ln\")??ee(f,\"spPr\",\"ln\"),t,k));let A=vn(w(u,\"effectLst\"),t.ctx)??d.effects,L=t.edit&&!A&&l&&!w(e,\"style\")?vn(ee(h,\"spPr\",\"effectLst\")??ee(f,\"spPr\",\"effectLst\"),t.ctx)??void 0:void 0;!x&&($||k)&&(x=nn(\"rect\",m.w,m.h,{}).d);let P=w(e,\"txBody\"),E=null,T,I;if(P){let z=[t.docDefaults];if(l){let W=a===\"title\"||a===\"ctrTitle\"?\"title\":!a||Ol.body.includes(a)?\"body\":\"other\";z.push(t.masterStyles[W]),z.push(Ht(ee(f,\"txBody\",\"lstStyle\"),t.ctx,t.theme.fonts)),z.push(Ht(ee(h,\"txBody\",\"lstStyle\"),t.ctx,t.theme.fonts))}else z.push(...pa(d.fontColor));z.push(Ht(w(P,\"lstStyle\"),t.ctx,t.theme.fonts));let j={ctx:t.ctx,fonts:t.theme.fonts,chain:z,defaultColor:d.fontColor,slideNum:t.slideNum,bodyPrFallbacks:[ee(h,\"txBody\",\"bodyPr\"),ee(f,\"txBody\",\"bodyPr\")],resolveLink:(W,V)=>ui(t,W,V),resolveImage:W=>{var V;let B=(V=t.rels[W])==null?void 0:V.target;return B?t.pkg.mediaUrl(B):null},edit:t.edit};E=Wt(P,j),!E&&t.edit&&(T=Wt(P,j,!0)??void 0);let F=E??T;if(t.edit&&F){let W=Jl(F,j,t.layoutCatalog===!0),V=JSON.stringify(W);I=((r=t.textLevelTemplateCache)==null?void 0:r.get(V))??W,(n=t.textLevelTemplateCache)==null||n.set(V,I)}}if(!x&&!E&&!T)return null;let O=hi(s,t),R=Xt(t,s,l,S,void 0,sn(i),O.unsupported,ha(u,w(e,\"style\")),y);return R.editInfo&&T&&(R.editInfo.textTemplate=T),R.editInfo&&I&&(R.editInfo.textLevelTemplate=I),R.editInfo&&L&&(R.editInfo.placeholderInheritedEffects=L),{kind:\"shape\",...ze(m),path:x,fill:$,stroke:k,text:E,openGeom:M||void 0,effects:A,scene3d:Gh(u,t.ctx),link:O.link,name:N(s,\"name\")??void 0,id:U(s,\"id\")??void 0,...R}}var ld=new Set([\"videoFile\",\"quickTimeFile\"]),ad=new Set([\"audioFile\",\"wavAudioFile\",\"audioCd\"]),cd=e=>/^[a-z][a-z0-9+.-]*:/i.test(e);function ud(e,t){if(!e)return;let r=null,n=null,o=null,i=e.getElementsByTagName(\"*\");for(let a=0;a<i.length;a++){let c=i[a].localName;!r&&ad.has(c)?r=i[a]:!n&&ld.has(c)?n=i[a]:!o&&c===\"media\"&&(o=i[a])}let s=r?\"audio\":n||o?\"video\":null;if(!s)return;let l=[r??n,o].flatMap(a=>a?[N(a,\"r:link\"),N(a,\"r:embed\")]:[]);for(let a of l){let c=a?t.rels[a]:void 0;if(!c)continue;if(c.external){if(cd(c.target))return{kind:s,src:c.target,external:!0};continue}let u=c.target.slice(c.target.lastIndexOf(\".\")+1).toLowerCase(),h=J0[u]??(s===\"audio\"?\"audio/mpeg\":\"video/mp4\"),f=t.pkg.blobUrl(c.target,h);if(f)return{kind:s,src:f,mime:h}}return{kind:s,src:null}}function va(e,t){var r,n;let o=w(e,\"nvPicPr\"),i=w(e,\"spPr\"),s=ee(o,\"nvPr\",\"ph\"),l=vt(w(i,\"xfrm\"));if(!l&&s){let k=N(s,\"type\"),A=N(s,\"idx\");l=vt(ee(bn(t.layoutPh,k,A),\"spPr\",\"xfrm\"))??vt(ee(bn(t.masterPh,k,A),\"spPr\",\"xfrm\"))}if(!l)return null;let a=w(o,\"cNvPr\"),c=w(e,\"blipFill\"),u=da(c,t),h=N(a,\"name\")??\"\\u56FE\\u7247\",f=ud(w(o,\"nvPr\"),t);f&&(f.spid=U(a,\"id\")??void 0);let m=hi(a,t);if(!u&&!f)return{kind:\"unsupported\",...ze(l),label:`${h}\\uFF08\\u683C\\u5F0F\\u4E0D\\u652F\\u6301\\uFF09`,link:m.link,name:N(a,\"name\")??void 0,id:U(a,\"id\")??void 0,...Xt(t,a,s,void 0,\"frame\",sn(o),m.unsupported)};let d=w(c,\"srcRect\"),p=k=>(U(d,k)??0)/1e5,b=d?{l:p(\"l\"),t:p(\"t\"),r:p(\"r\"),b:p(\"b\")}:null,v=null,x=w(i,\"prstGeom\"),M=w(i,\"custGeom\"),S;if(x){let k=N(x,\"prst\")??\"rect\",A=Zo(w(x,\"avLst\"));k!==\"rect\"&&(v=nn(k,l.w,l.h,A).d),t.edit&&(S={preset:k,adj:A})}else if(M)v=((r=Zl(M,l.w,l.h))==null?void 0:r.d)??null;else if(t.edit&&s){let k=N(s,\"type\"),A=N(s,\"idx\"),L=ee(bn(t.layoutPh,k,A),\"spPr\",\"prstGeom\")??ee(bn(t.masterPh,k,A),\"spPr\",\"prstGeom\");L&&(S={preset:N(L,\"prst\")??\"rect\",adj:Zo(w(L,\"avLst\"))})}let y=U(w(w(c,\"blip\"),\"alphaModFix\"),\"amt\"),$=Array.from(((n=w(w(c,\"blip\"),\"duotone\"))==null?void 0:n.children)??[]).map(k=>ti(k,t.ctx));return{kind:\"image\",...ze(l),src:u??\"\",crop:b,clipPath:v,alpha:y!==null?y/1e5:void 0,filter:td(c),...$.length===2?{duotone:$}:{},stroke:Bn(w(i,\"ln\"),t,null),effects:vn(w(i,\"effectLst\"),t.ctx),link:m.link,name:N(a,\"name\")??void 0,id:U(a,\"id\")??void 0,media:f,...Xt(t,a,s,S,f?\"frame\":void 0,sn(o),m.unsupported,ha(i,null))}}function hd(e,t){var r;let n=vt(w(e,\"xfrm\"));if(!n||n.w<=0||n.h<=0)return null;let o=N(e,\"r:id\"),i=o?(r=t.rels[o])==null?void 0:r.target:null,s=i?t.pkg.xml(i):null;if(!s)throw new Error(\"\\u7F3A\\u5C11 InkML \\u5185\\u5BB9\");let l=Dh(s,n.w,n.h);if(!l.length)throw new Error(\"InkML \\u6CA1\\u6709\\u53EF\\u7528\\u7B14\\u8FF9\");let a=ee(e,\"nvContentPartPr\",\"cNvPr\"),c=Xt(t,a,null,void 0,\"frame\");return t.edit&&(gi(t.pkg,e,t.partPath),c.editInfo={...c.editInfo,requiresOriginal:!0}),{kind:\"group\",...ze(n),childX:0,childY:0,scaleX:1,scaleY:1,children:l,name:N(a,\"name\")??\"\\u58A8\\u8FF9\",id:U(a,\"id\")??void 0,...c}}function fd(e,t,r){let n=w(e,\"nvGrpSpPr\"),o=w(e,\"grpSpPr\"),i=vt(w(o,\"xfrm\"));if(!i)return null;let s=wt(e,t,r);if(!s.length)return null;let l=w(n,\"cNvPr\"),a=hi(l,t);return{kind:\"group\",...ze(i),childX:i.chX,childY:i.chY,scaleX:i.chW?i.w/i.chW:1,scaleY:i.chH?i.h/i.chH:1,children:s,effects:vn(w(o,\"effectLst\"),t.ctx),link:a.link,name:N(l,\"name\")??void 0,id:U(l,\"id\")??void 0,...Xt(t,l,null,void 0,void 0,sn(n),a.unsupported)}}function dd(e,t){let r=w(e,\"nvGraphicFramePr\"),n=vt(w(e,\"xfrm\"));if(!n)return null;let o=ee(e,\"graphic\",\"graphicData\"),i=N(o,\"uri\")??\"\",s=w(r,\"cNvPr\"),l=ee(r,\"nvPr\",\"ph\"),a=N(s,\"name\")??void 0,c=U(s,\"id\")??void 0,u=Xt(t,s,l,void 0,void 0,sn(r)),h=Xt(t,s,l,void 0,\"frame\",sn(r)),f=w(o,\"tbl\");if(f){let d=la(f,ze(n),t,ln,a),p=t.edit?{...d.editInfo,...u.editInfo}:void 0;return{...d,id:c,...u,...p?{editInfo:p}:{}}}if(t.edit&&(gi(t.pkg,e,t.partPath),h.editInfo={...h.editInfo,requiresOriginal:!0}),i.endsWith(\"/chart\")||i===\"http://schemas.microsoft.com/office/drawing/2014/chartex\"){let d=md(o,n,t,i.endsWith(\"/chartex\"));return d?{...d,id:c,...h}:{kind:\"unsupported\",...ze(n),label:\"\\u56FE\\u8868\",name:a,id:c,...h}}if(i.endsWith(\"/diagram\")){let d=gd(o,n,t);return d?{...d,id:c,...h}:{kind:\"unsupported\",...ze(n),label:\"SmartArt\",name:a,id:c,...h}}if(i.endsWith(\"/ole\")||i.includes(\"oleObject\")){let d=w(o,\"oleObj\");if(d){let p=w(d,\"pic\");if(p){let v=va(p,t);if(v&&v.kind===\"image\"&&v.src)return{...v,...ze(n),name:a??v.name,id:c,...h}}let b=pd(d,t);if(b)return{kind:\"image\",...ze(n),src:b,crop:null,name:a,id:c,...h}}return{kind:\"unsupported\",...ze(n),label:\"OLE \\u5BF9\\u8C61\",name:a,id:c,...h}}let m=i.includes(\"/media\")||i.includes(\"video\")?\"\\u5A92\\u4F53\\u5BF9\\u8C61\":\"\\u4E0D\\u652F\\u6301\\u7684\\u5BF9\\u8C61\";return{kind:\"unsupported\",...ze(n),label:m,name:a,id:c,...h}}function pd(e,t){var r;let n=N(e,\"spid\");if(!n)return null;let o=an(t.rels,\"/vmlDrawing\");if(!o)return null;let i=t.pkg.xml(o);if(!i)return null;for(let s of i.getElementsByTagName(\"*\"))if(!(s.localName!==\"shape\"||N(s,\"id\")!==n))for(let l of s.getElementsByTagName(\"*\")){if(l.localName!==\"imagedata\")continue;let a=N(l,\"o:relid\")??N(l,\"r:id\"),c=a?(r=t.pkg.rels(o)[a])==null?void 0:r.target:null;return c?t.pkg.mediaUrl(c):null}return null}function md(e,t,r,n=!1){var o;if(!e)return null;let i=Nh(n,r.pkg),s=N(w(e,\"chart\"),\"r:id\"),l=s?(o=r.rels[s])==null?void 0:o.target:null;if(!i||!l)return null;let a=r.pkg.xml(l);if(!a)return null;let c;try{c=i(a,t.w,t.h,{ctx:r.ctx,fonts:r.theme.fonts,rels:r.pkg.rels(l),...n?{readPart:u=>{var h;return(h=r.pkg.files)==null?void 0:h[u]}}:{}})}catch{return null}return c.length?{kind:\"group\",...ze(t),childX:0,childY:0,scaleX:1,scaleY:1,children:c,name:\"\\u56FE\\u8868\"}:null}function gd(e,t,r){var n;if(!e)return null;let o=w(e,\"relIds\"),i=null,s=N(o,\"r:dm\"),l=s?(n=r.rels[s])==null?void 0:n.target:null;if(l){let f=r.pkg.xml(l),m=f?.getElementsByTagName(\"*\");for(let d=0;m&&d<m.length;d++)if(m[d].localName===\"dataModelExt\"){let p=N(m[d],\"relId\");p&&r.rels[p]&&(i=r.rels[p].target);break}}if(i||(i=an(r.rels,\"/diagramDrawing\")),!i)return Fo(o,t,r);let a=r.pkg.xml(i),c=w(a,\"spTree\");if(!c)return Fo(o,t,r);let u={...r,rels:r.pkg.rels(i),partPath:i,layoutPh:[],masterPh:[]},h=wt(c,u,!1);return h.length?{kind:\"group\",...ze(t),childX:0,childY:0,scaleX:1,scaleY:1,children:h,name:\"SmartArt\"}:Fo(o,t,r)}function Fo(e,t,r){let n=f=>{var m;let d=N(e,f),p=d?(m=r.rels[d])==null?void 0:m.target:null;return p?r.pkg.xml(p):null},o=n(\"r:dm\"),i=Jf(o);if(!i.length)return null;let s=n(\"r:lo\"),l=n(\"r:cs\"),a=t0(l),c=(a.length?a:[\"accent1\",\"accent2\",\"accent3\",\"accent4\",\"accent5\",\"accent6\"]).map(f=>/^[0-9a-fA-F]{6}$/.test(f)?`#${f}`:`#${r.ctx.theme[r.ctx.clrMap[f]??f]??\"4472C4\"}`),u={ctx:r.ctx,fonts:r.theme.fonts,chain:[r.docDefaults,r.masterStyles.other],defaultColor:\"rgb(255,255,255)\",slideNum:r.slideNum},h=u0(i,t.w,t.h,{family:Kf(s),vertical:Qf(s),colors:c,textOf:f=>{let m=Wt(e0(o,f),u);return m?{...m,anchor:\"middle\",paragraphs:m.paragraphs.map(d=>({...d,align:\"center\"}))}:null}});return h.length?h0(h,{...ze(t),name:\"SmartArt\"}):null}var ln={fill:xn,line:Bn};function bd(e){if(!e)return\"\";let t=[],r=e.getElementsByTagName(\"*\");for(let n=0;n<r.length;n++)r[n].localName===\"t\"?t.push(r[n].textContent??\"\"):r[n].localName===\"p\"&&t.length&&t.push(`\n`);return t.join(\"\").replace(/\\n+/g,`\n`).trim()}function xd(e){let t=ee(e,\"cSld\",\"spTree\");for(let r of Q(t,\"sp\")){let n=ee(w(r,\"nvSpPr\"),\"nvPr\",\"ph\");if(N(n,\"type\")!==\"body\")continue;let o=w(r,\"txBody\");return Q(o,\"p\").map(i=>{let s=[],l=i.getElementsByTagName(\"*\");for(let a=0;a<l.length;a++){let c=l[a];c.localName===\"t\"?s.push(c.textContent??\"\"):c.localName===\"br\"?s.push(`\n`):c.localName===\"tab\"&&N(c,\"pos\")===null&&s.push(\"\t\")}return s.join(\"\")}).join(`\n`)}return\"\"}function wa(e,t){let r=new Map;for(let n of Object.values(t)){if(!/\\/(commentAuthors|authors)$/.test(n.type))continue;let o=e.xml(n.target);if(!o)continue;let i=o.getElementsByTagName(\"*\");for(let s=0;s<i.length;s++){let l=i[s];if(l.localName!==\"cmAuthor\"&&l.localName!==\"author\")continue;let a=N(l,\"id\"),c=N(l,\"name\");a===null||!c||r.set(a,{name:c,initials:N(l,\"initials\")||void 0})}}return r}function vd(e,t,r){let n=[];for(let o of Object.values(t)){if(!o.type.endsWith(\"/comments\"))continue;let i=e.xml(o.target);if(i)for(let s of Q(i,\"cm\")){let l=N(s,\"authorId\")??\"\",a=r.get(l),c=w(s,\"pos\"),u=w(s,\"text\"),h=u?.textContent??bd(w(s,\"txBody\")).trim(),f=U(s,\"idx\"),m=Array.from(s.getElementsByTagName(\"*\")).find(d=>d.localName===\"parentCm\"&&d.namespaceURI===\"http://schemas.microsoft.com/office/powerpoint/2012/main\");n.push({id:N(s,\"id\")??`${l}:${f??n.length}`,...m?{parentId:`${N(m,\"authorId\")??\"\"}:${U(m,\"idx\")}`}:{},author:a?.name??(l?`\\u4F5C\\u8005 ${l}`:\"\\u672A\\u77E5\\u4F5C\\u8005\"),initials:a?.initials,date:N(s,\"dt\")??N(s,\"created\")??void 0,text:h,x:ie(U(c,\"x\")),y:ie(U(c,\"y\")),idx:f!==null?f:void 0})}}return n.sort((o,i)=>(o.idx??0)-(i.idx??0)),n}function wd(e,t,r,n,o=!0){var i;let s=[];for(let l of Q(w(t,\"embeddedFontLst\"),\"embeddedFont\")){let a=N(w(l,\"font\"),\"typeface\");if(a)for(let[c,u,h]of[[\"regular\",!1,!1],[\"bold\",!0,!1],[\"italic\",!1,!0],[\"boldItalic\",!0,!0]]){let f=N(w(l,c),\"r:id\"),m=f?(i=r[f])==null?void 0:i.target:null,d=o&&m?e.fontUrl(m):null;d&&s.push({family:a,src:d,bold:u,italic:h});let p=n&&m?e.fontSourceUrl(m):null;p&&n.push({family:a,src:p,bold:u,italic:h})}}return s}function vi(e,t={}){let r=new Cr(e,t.keepPackage===!0);return t.assets===\"defer\"&&(r.assetMode=\"defer\"),yd(r,t)}function yd(e,t){var r;let n=\"ppt/presentation.xml\",o=e.xml(n);if(!o)throw new Error(\"\\u65E0\\u6548\\u7684 .pptx\\uFF1A\\u627E\\u4E0D\\u5230 ppt/presentation.xml\");let i=e.rels(n),s=w(o,\"sldSz\"),l=ie(U(s,\"cx\")??12192e3),a=ie(U(s,\"cy\")??6858e3),c=an(i,\"/tableStyles\"),u=c?e.xml(c):null,h=new Map,f=Q(w(o,\"sldIdLst\"),\"sldId\"),m={},d=new Map;f.forEach((E,T)=>{var I;let O=N(E,\"r:id\"),R=O?(I=i[O])==null?void 0:I.target:null;R&&(m[R]=T+1);let z=U(E,\"id\");z!==null&&d.set(z,T)});let p=wa(e,i),b=[];for(let E of f){let T=N(E,\"r:id\"),I=T?(r=i[T])==null?void 0:r.target:null;I&&b.push(I)}let v=(E,T)=>({background:{type:\"solid\",color:\"rgb(255,255,255)\"},elements:[{kind:\"unsupported\",x:l*.1,y:a*.4,w:l*.8,h:a*.2,rot:0,flipH:!1,flipV:!1,label:`\\u7B2C ${E+1} \\u9875\\u89E3\\u6790\\u5931\\u8D25\\uFF1A${T instanceof Error?T.message:String(T)}`}],...t.edit?{editInfo:{origin:{part:b[E]}}}:{}}),x=E=>{try{return Ma(e,b[E],E+1,o,u,m,p,t.edit===!0,void 0,h)}catch(T){return v(E,T)}},M;t.lazy===!1?M=b.map((E,T)=>x(T)):(M=new Array(b.length),b.forEach((E,T)=>{let I;Object.defineProperty(M,T,{enumerable:!0,configurable:!0,get(){return I===void 0&&(I=x(T)),I},set(O){I=O}})}));let S=Y0(o,d),y=t.edit?na(o,i,E=>e.xml(E),E=>e.rels(E)):void 0,$=y?$a(e,o,i,u,m,y.themeByMaster):void 0,k=y?ya(e,o,i,u,m,y.themeByMaster):void 0,A=e.opcPackage,L=t.edit||t.embeddedFonts===\"source\"?[]:void 0,P=wd(e,o,i,L,t.embeddedFonts!==\"source\");return{width:l,height:a,slides:M,source:\"pptx\",dispose:()=>{Q0(e),e.dispose()},...A?{package:A}:{},embeddedFonts:P,...L!=null&&L.length?{embeddedFontSources:L}:{},sections:S.length?S:void 0,...$&&k?{editInfo:{layouts:$,masters:k,themes:y.themes,get assets(){return K0(e)},...c?{tableStylesPart:c}:{}}}:{}}}function jo(e,t){return Jl({anchor:\"top\",insets:[0,0,0,0],wrap:!0,fontScale:1,paragraphs:[]},{ctx:e.ctx,fonts:e.theme.fonts,chain:[e.docDefaults,e.masterStyles[t]],slideNum:1,edit:!0})}function ya(e,t,r,n,o,i){return ea(t,r,s=>e.xml(s),s=>e.rels(s)).flatMap(({part:s,layoutIds:l})=>{let a=x0(e,s,t,n,o,1,!0);if(!a.masterRoot||a.masterPath!==s)return[];let c=a.envFor(s,!1);return[{id:s,name:N(ee(a.masterRoot,\"cSld\"),\"name\")??s,...i[s]?{themeId:i[s]}:{},layoutIds:[...l],background:wi(a.masterRoot,s,a),elements:wt(a.masterTree,c,!1),textStyles:{title:jo(c,\"title\"),body:jo(c,\"body\"),other:jo(c,\"other\")},defaultShape:xi(c),defaultTable:mi(c,ln),tableStyles:pi(n,c,ln)}]})}function wi(e,t,r){let{layoutRoot:n,layoutPath:o,masterRoot:i,masterPath:s,envFor:l}=r;for(let[a,c]of[[e,t],[n,o],[i,s]]){let u=ee(a,\"cSld\",\"bg\");if(!u||!c)continue;let h=l(c,!1),f=w(u,\"bgPr\");if(f){let S=xn(f,h);if(S)return S;continue}let m=w(u,\"bgRef\");if(!m)continue;let d=Number(N(m,\"idx\")??\"0\"),p=ge(m,h.ctx),b=d>1e3?h.theme.bgFillStyles:h.theme.fillStyles,v=d>1e3?d-1e3:d,x=v>0?b[Math.min(v,b.length)-1]??null:null,M=x?bi(x,ca(h,p)):p?{type:\"solid\",color:p}:null;if(M)return M}return null}function $a(e,t,r,n,o,i){return d0(t,r,s=>e.xml(s),s=>e.rels(s)).flatMap(s=>{let l=ra(e,null,s,t,n,o,1,!0);if(!l.layoutRoot||!l.masterPath)return[];let a=[];ye(l.layoutRoot,\"showMasterSp\",!0)&&a.push(...wt(l.masterTree,l.envFor(l.masterPath,!1),!0)),a.push(...wt(l.layoutTree,l.envFor(s,!1),!0));let c=wt(l.layoutTree,{...l.envFor(s,!0),layoutCatalog:!0},!1).flatMap(h=>{let f=p0(h);return f?[f]:[]}),u=l.envFor(s,!0);return[{id:s,name:N(ee(l.layoutRoot,\"cSld\"),\"name\")??s,origin:{part:s,masterPart:l.masterPath},themeId:i[l.masterPath],background:wi(null,null,l),...ee(l.layoutRoot,\"cSld\",\"bg\")?{directBackground:!0}:{},showMasterShapes:ye(l.layoutRoot,\"showMasterSp\",!0),elements:[...a,...c],transition:qo(l.layoutRoot)??void 0,defaultShape:xi(u),defaultTable:mi(u,ln),tableStyles:pi(n,u,ln)}]})}function Ma(e,t,r,n,o,i,s,l,a,c){let u=e.xml(t),h=e.rels(t),f=a??an(h,\"/slideLayout\"),m=ra(e,u,f,n,o,i,r,l,c),{layoutRoot:d,masterPath:p,masterTree:b,layoutTree:v,envFor:x}=m,M=ee(u,\"cSld\",\"spTree\"),S=[];ye(u,\"showMasterSp\",!0)&&ye(d,\"showMasterSp\",!0)&&p&&S.push(...wt(b,x(p,!1),!0)),S.push(...wt(v,x(f,!1),!0)),S.push(...wt(M,x(t,!0),!1));let y=wi(u,t,m),$=w(n,\"sldSz\"),k=ie(U($,\"cx\")??12192e3),A=ie(U($,\"cy\")??6858e3),L=Object.entries(h).find(([,z])=>z.type.endsWith(\"/notesSlide\")),P=L?.[1].target??null,E=P?xd(e.xml(P)):\"\",T=vd(e,h,s),I=qo(u),O=$f(u,k,A);for(let z of O.media??[]){let j=S.find(F=>{var W;return F.kind===\"image\"&&((W=F.media)==null?void 0:W.spid)===z.spid});j&&j.kind===\"image\"&&j.media&&(j.media.playback={volume:z.volume,loop:z.loop,clickGroup:z.clickGroup})}let R=l?x(t,!0):null;return{background:y,elements:S,notes:E||void 0,comments:T.length?T:void 0,hidden:N(u,\"show\")===\"0\"||void 0,layoutName:N(ee(d,\"cSld\"),\"name\")??void 0,transition:I??qo(d),animations:O.animations,...l?{editInfo:{origin:{part:t},...f?{layoutId:f}:{},...P&&L?{notes:{part:P,relationshipId:L[0]}}:{},...ee(u,\"cSld\",\"bg\")?{directBackground:!0}:{},...I?{directTransition:!0}:{},...O.readonly?{animationSourceReadonly:!0}:{},...ye(u,\"showMasterSp\",!0)?{}:{hideMasterShapes:!0},defaultShape:xi(R),defaultTable:mi(R,ln),tableStyles:pi(o,R,ln)}}:{}}}var Mt=e=>e*96/72,H=e=>{if(!Number.isFinite(e))return\"0\";let t=Math.round(e*100)/100;return Object.is(t,-0)?\"0\":String(t)},be=(e,t,r)=>e<t?t:e>r?r:e,qt=(e,t=0)=>Number.isFinite(e)?e:t;function Ue(e,t,r,n,o,i,s){return{kind:\"shape\",x:qt(e),y:qt(t),w:Math.max(qt(r),0),h:Math.max(qt(n),0),rot:0,flipH:!1,flipV:!1,path:o,fill:i,stroke:s,text:null}}var $d=(e,t)=>`M 0 0 L ${H(e)} 0 L ${H(e)} ${H(t)} L 0 ${H(t)} Z`;function Qn(e,t,r){return Ue(e.x,e.y,e.w,e.h,$d(e.w,e.h),t,r)}function ht(e,t,r,n,o){if(!o||![e,t,r,n].every(Number.isFinite))return null;let i=Math.min(e,r),s=Math.min(t,n);return Ue(i,s,Math.abs(r-e),Math.abs(n-t),`M ${H(e-i)} ${H(t-s)} L ${H(r-i)} ${H(n-s)}`,null,o)}function ns(e,t,r,n){let o=e.map(u=>u.filter(([h,f])=>Number.isFinite(h)&&Number.isFinite(f))).filter(u=>u.length>=3);if(!o.length)return null;let i=1/0,s=1/0,l=-1/0,a=-1/0;for(let u of o)for(let[h,f]of u)i=Math.min(i,h),s=Math.min(s,f),l=Math.max(l,h),a=Math.max(a,f);let c=o.map(u=>\"M \"+u.map(([h,f])=>`${H(h-i)} ${H(f-s)}`).join(\" L \")+\" Z\").join(\" \");return Ue(i,s,l-i,a-s,c,t,r)}var Md=(e,t=.25)=>Ve(e,\"#ffffff\",t),rs=(e,t=.2)=>Ve(e,\"#000000\",t);function pc(e,t,r){return ns([e],t,r)}function nt(e,t,r,n,o,i={}){let s={text:o,b:i.bold??!1,i:!1,u:!1,strike:!1,size:i.size??Mt(10),color:i.color??\"rgb(0,0,0)\",fonts:i.fonts??[]},l={align:i.align??\"center\",lvl:0,marL:0,indent:0,bullet:null,lineHeight:1.15,spaceBefore:0,spaceAfter:0,runs:[s]},a={anchor:i.anchor??\"middle\",insets:[0,0,0,0],wrap:!1,fontScale:1,paragraphs:[l]};return{kind:\"shape\",x:qt(e),y:qt(t),w:Math.max(qt(r),0),h:Math.max(qt(n),0),rot:i.rot??0,flipH:!1,flipV:!1,path:null,fill:null,stroke:null,text:a}}function os(e,t){let r=0;for(let n of e){let o=n.codePointAt(0)??32;o>=4352&&o<=8191||o>=11904&&o<=42191||o>=44032&&o<=55203||o>=63744&&o<=64255||o>=65072&&o<=65376?r+=1:`iljtf.,:;'\"|!I[]()`.includes(n)?r+=.3:\"mwMW@%\".includes(n)?r+=.85:n>=\"A\"&&n<=\"Z\"?r+=.66:r+=.53}return r*t}var Ne=e=>({type:\"solid\",color:e});function mc(e,t){let r=e.clrMap[t]??t,n=(e.theme[r]??e.theme[t]??\"000000\").replace(/^#/,\"\");return\"#\"+(n.length>=6?n.slice(0,6):n.padStart(6,\"0\"))}function ka(e){let t=e.trim();if(t.startsWith(\"#\")){let n=t.slice(1),o=n.length===3?n.split(\"\").map(i=>i+i).join(\"\"):n.padStart(6,\"0\");return[parseInt(o.slice(0,2),16)||0,parseInt(o.slice(2,4),16)||0,parseInt(o.slice(4,6),16)||0]}let r=t.match(/-?[\\d.]+/g);return r&&r.length>=3?[Number(r[0])||0,Number(r[1])||0,Number(r[2])||0]:[0,0,0]}function Ve(e,t,r){let n=ka(e),o=ka(t),i=be(r,0,1),s=n.map((l,a)=>Math.round(l+(o[a]-l)*i));return`rgb(${s[0]},${s[1]},${s[2]})`}function gc(e,t){let r=(t%6+6)%6,n=mc(e,`accent${r+1}`),o=Math.floor(t/6);return o<=0?n:o%2===1?Ve(n,\"#ffffff\",be(.3*Math.ceil(o/2),0,.72)):Ve(n,\"#000000\",be(.22*(o/2),0,.6))}function Kt(e,t){if(!e)return null;if(w(e,\"noFill\"))return{type:\"none\"};let r=w(e,\"solidFill\");if(r)return Ne(ge(r,t)??\"rgb(0,0,0)\");let n=w(e,\"gradFill\");if(n){let i=Q(w(n,\"gsLst\"),\"gs\").map(l=>({pos:(U(l,\"pos\")??0)/1e5,color:ge(l,t)??\"rgb(0,0,0)\"})).sort((l,a)=>l.pos-a.pos);if(!i.length)return null;let s=w(n,\"lin\");return{type:\"gradient\",angle:s?(U(s,\"ang\")??0)/6e4:90,stops:i}}let o=w(e,\"pattFill\");if(o){let i=ge(w(o,\"fgClr\"),t);if(i)return Ne(i)}return null}var kd={dash:[4,3],dashDot:[4,3,1,3],dot:[1,3],lgDash:[8,3],lgDashDot:[8,3,1,3],lgDashDotDot:[8,3,1,3,1,3],sysDash:[3,3],sysDashDot:[3,3,1,3],sysDashDotDot:[3,3,1,3,1,3],sysDot:[1,1]},is={color:null,width:null,dash:null,none:!1,present:!1};function kt(e,t){if(!e)return{...is};let r={color:null,width:null,dash:null,none:!1,present:!0};if(w(e,\"noFill\"))return r.none=!0,r;r.color=ge(w(e,\"solidFill\"),t);let n=U(e,\"w\");n!==null&&(r.width=ie(n));let o=N(w(e,\"prstDash\"),\"val\");return o&&o!==\"solid\"&&(r.dash=(kd[o]??[4,3]).map(i=>i*Math.max(r.width??1,1))),r}function Ge(e,t,r){let n=e??is;if(n.none)return null;let o=n.color??t;if(!o)return null;let i=n.width??r;return i>0?{color:o,width:i,dash:n.dash}:null}function Cd(e){let t=[],r=\"\",n=!1;for(let o=0;o<e.length;o++){let i=e[o];if(i==='\"'){n=!n,r+=i;continue}if(i===\"\\\\\"){r+=i+(e[o+1]??\"\"),o++;continue}if(i===\";\"&&!n){t.push(r),r=\"\";continue}r+=i}return t.push(r),t}var yi=e=>e.replace(/\\\\(.)/g,\"$1\").replace(/\"/g,\"\").replace(/[*_](.)/g,\"\").replace(/@/g,\"\");function Sd(e){if(Number.isInteger(e))return String(e);let t=Math.abs(e);return t!==0&&(t>=1e11||t<1e-4)?e.toExponential(2):String(Math.round(e*1e6)/1e6)}function Ed(e){return e.replace(/\\B(?=(\\d{3})+(?!\\d))/g,\",\")}function $i(e,t){let r=t.replace(/\\[[^\\]]*\\]/g,\"\"),n=e,o=n<0;n=Math.abs(n);let i=(r.match(/%/g)??[]).length;i&&(n*=Math.pow(100,i));let s=r.match(/[#0?][#0?,]*(\\.[#0?]+)?/);if(!s)return(o?\"-\":\"\")+yi(r);let l=s[0],a=s.index??0,c=yi(r.slice(0,a)),u=yi(r.slice(a+l.length)),h=l.indexOf(\".\"),f=h<0?l:l.slice(0,h),m=h<0?\"\":l.slice(h+1),d=f.match(/,+$/);d&&(n/=Math.pow(1e3,d[0].length),f=f.slice(0,-d[0].length));let p=f.includes(\",\"),b=m.length,v=(m.match(/0/g)??[]).length,x=n.toFixed(Math.min(b,20));b>v&&(x=x.replace(/(\\.\\d*?)0+$/,\"$1\").replace(/\\.$/,\"\"),(x.split(\".\")[1]??\"\").length<v&&(x=n.toFixed(v)));let[M,S]=x.split(\".\"),y=(f.match(/0/g)??[]).length;return M.length<y&&(M=M.padStart(y,\"0\")),y===0&&M===\"0\"&&S&&(M=\"\"),p&&(M=Ed(M)),(o?\"-\":\"\")+c+M+(S?\".\"+S:\"\")+u}function _t(e,t){if(!Number.isFinite(e))return\"\";let r=(t??\"\").trim();if(!r||/^general$/i.test(r))return Sd(e);if(/e[+-]/i.test(r))return e.toExponential(2);let n=Cd(r);return e<0&&n.length>1&&n[1].trim()?$i(-e,n[1]):e===0&&n.length>2&&n[2].trim()?$i(0,n[2]):$i(e,n[0]??\"\")}var Yn=e=>Number(e.toPrecision(12));function ss(e,t,r=5){let n=Number.isFinite(e)?e:0,o=Number.isFinite(t)?t:1;if(o<n&&([n,o]=[o,n]),n===o)if(n===0)n=0,o=1;else{let h=Math.abs(n)*.5;n-=h,o+=h}let i=(o-n)/Math.max(1,r),s=Math.pow(10,Math.floor(Math.log10(i))),l=i/s,a=(l<=1?1:l<=2?2:l<=5?5:10)*s,c=Yn(Math.floor(n/a+1e-9)*a),u=Yn(Math.ceil(o/a-1e-9)*a);return u>c||(u=Yn(c+a)),{min:c,max:u,step:a}}function Td(e){let t=[];if(!(e.step>0)||!Number.isFinite(e.min)||!Number.isFinite(e.max))return[e.min];let r=Math.floor((e.max-e.min)/e.step+1e-6),n=Math.min(r,60);for(let i=0;i<=n;i++)t.push(Yn(e.min+i*e.step));let o=t[t.length-1];return o!==void 0&&e.max-o>e.step*1e-6&&t.push(Yn(e.max)),t}var Ld={barChart:\"bar\",bar3DChart:\"bar\",lineChart:\"line\",line3DChart:\"line\",stockChart:\"stock\",pieChart:\"pie\",pie3DChart:\"pie\",ofPieChart:\"ofPie\",doughnutChart:\"doughnut\",areaChart:\"area\",area3DChart:\"area\",scatterChart:\"scatter\",bubbleChart:\"bubble\",radarChart:\"radar\",surfaceChart:\"surface\",surface3DChart:\"surface\"},bc=e=>e===\"scatter\"||e===\"bubble\",je=(e,t,r)=>{let n=w(e,t);return n?ye(n,\"val\",!0):r},$e=(e,t)=>U(w(e,t),\"val\"),Te=(e,t)=>N(w(e,t),\"val\");function xc(e){if(!e)return null;for(let t of[\"numRef\",\"strRef\",\"multiLvlStrRef\"]){let r=w(e,t);if(r)return w(r,\"numCache\")??w(r,\"strCache\")??w(r,\"multiLvlStrCache\")}return w(e,\"numLit\")??w(e,\"strLit\")??null}function vc(e,t){var r;let n=new Array(Math.max(0,Math.min(t,2e4))).fill(\"\");for(let o of Q(e,\"pt\")){let i=U(o,\"idx\")??-1;if(!(i<0||i>2e4)){for(;n.length<=i;)n.push(\"\");n[i]=((r=w(o,\"v\"))==null?void 0:r.textContent)??\"\"}}return n}function Gr(e){var t;let r=xc(e);if(!r)return{vals:[],fmt:null};let n=((t=w(r,\"formatCode\"))==null?void 0:t.textContent)??null;return{vals:vc(r,U(w(r,\"ptCount\"),\"val\")??0).map(o=>{if(o===\"\")return null;let i=Number(o);return Number.isFinite(i)?i:null}),fmt:n}}function Ad(e){let t=xc(e);if(!t)return[];if(t.localName===\"numCache\"||t.localName===\"numLit\"){let{vals:o,fmt:i}=Gr(e);return o.map(s=>s===null?\"\":_t(s,i))}let r=Q(t,\"lvl\"),n=r.length?r[0]:t;return vc(n,U(w(t,\"ptCount\"),\"val\")??0)}function ls(e){var t;let r=w(e,\"rich\");if(r)return Q(r,\"p\").map(i=>{var s;let l=\"\";for(let a=i.firstElementChild;a;a=a.nextElementSibling)a.localName===\"r\"||a.localName===\"fld\"?l+=((s=w(a,\"t\"))==null?void 0:s.textContent)??\"\":a.localName===\"br\"&&(l+=\" \");return l}).join(\" \").trim();let n=w(e,\"strRef\");if(n){let i=w(n,\"strCache\"),s=Q(i,\"pt\")[0];return(((t=w(s,\"v\"))==null?void 0:t.textContent)??\"\").trim()}let o=w(e,\"v\");return(o?.textContent??\"\").trim()}function qn(e,t){let r=ee(e,\"p\",\"pPr\",\"defRPr\")??ee(e,\"rich\",\"p\",\"pPr\",\"defRPr\"),n=ee(e,\"rich\",\"p\",\"r\",\"rPr\"),o=r??n;if(!o)return{size:null,color:null,bold:!1};let i=U(o,\"sz\");return{size:i!==null?Mt(i/100):null,color:ge(w(o,\"solidFill\"),t),bold:ye(o,\"b\",!1)}}var wc={del:!0,showVal:!1,showCat:!1,showSer:!1,showPercent:!1,showSize:!1,fmt:null,pos:null,size:null,color:null};function yc(e,t,r){if(!e)return r;let n=je(e,\"delete\",!1),o=qn(w(e,\"txPr\"),t),i={del:n,showVal:je(e,\"showVal\",r.showVal),showCat:je(e,\"showCatName\",r.showCat),showSer:je(e,\"showSerName\",r.showSer),showPercent:je(e,\"showPercent\",r.showPercent),showSize:je(e,\"showBubbleSize\",r.showSize),fmt:N(w(e,\"numFmt\"),\"formatCode\")??r.fmt,pos:Te(e,\"dLblPos\")??r.pos,size:o.size??r.size,color:o.color??r.color};return n?{...wc,fmt:i.fmt}:i}var ft=e=>!e.del&&(e.showVal||e.showCat||e.showSer||e.showPercent||e.showSize);function Pd(e,t){if(!e)return null;let r=w(e,\"spPr\");return{symbol:Te(e,\"symbol\")??\"auto\",size:$e(e,\"size\")??5,fill:Kt(r,t),ln:kt(w(r,\"ln\"),t)}}function Id(e,t,r,n,o){let i=w(e,\"spPr\"),s=Kt(i,r),l=kt(w(i,\"ln\"),r),a=bc(t),c=w(e,\"val\")??w(e,\"yVal\")??w(e,\"bubbleSize\"),{vals:u,fmt:h}=Gr(c),f=w(e,\"xVal\"),m=a&&f?Gr(f).vals:null,d=t===\"bubble\"?w(e,\"bubbleSize\"):null,p=d?Gr(d):null,b=Ad(w(e,\"cat\")??(a?f:null)),v=new Map;for(let S of Q(e,\"dPt\")){let y=$e(S,\"idx\");if(y===null||y<0)continue;let $=w(S,\"spPr\");v.set(y,{fill:Kt($,r),ln:kt(w($,\"ln\"),r),explosion:$e(S,\"explosion\")??0})}let x=t===\"line\"||t===\"scatter\"||t===\"radar\"||t===\"stock\",M;return s&&s.type===\"solid\"?M=s.color:x&&l.color?M=l.color:M=gc(r,n),{idx:$e(e,\"idx\")??n,order:$e(e,\"order\")??n,name:ls(w(e,\"tx\"))||`\\u7CFB\\u5217 ${n+1}`,cats:b,vals:u,xs:m,sizes:p?p.vals:null,sizeFmt:p?p.fmt:null,fill:s,ln:l,marker:Pd(w(e,\"marker\"),r),smooth:je(e,\"smooth\",!1),fmt:h,dLbls:yc(w(e,\"dLbls\"),r,o),dPts:v,color:M}}var so=e=>e.grouping===\"stacked\"||e.grouping===\"percentStacked\";function Nd(e,t){if(!e)return null;let r=w(e,\"upBars\"),n=w(e,\"downBars\");return{gapWidth:$e(e,\"gapWidth\")??150,upFill:Kt(w(r,\"spPr\"),t),downFill:Kt(w(n,\"spPr\"),t),upLn:kt(ee(r,\"spPr\",\"ln\"),t),downLn:kt(ee(n,\"spPr\",\"ln\"),t)}}function Rd(e){return{type:(Te(e,\"ofPieType\")??\"pie\")===\"bar\"?\"bar\":\"pie\",splitType:Te(e,\"splitType\")??\"auto\",splitPos:$e(e,\"splitPos\"),custSplit:Q(w(e,\"custSplit\"),\"secondPiePt\").map(t=>U(t,\"val\")??-1).filter(t=>t>=0),secondSize:$e(e,\"secondPieSize\")??75,serLines:w(e,\"serLines\")!==null}}function Od(e,t,r,n){let o=Te(e,\"grouping\")??(t===\"bar\"?\"clustered\":\"standard\"),i=yc(w(e,\"dLbls\"),r,wc),s=Q(e,\"ser\").map((a,c)=>Id(a,t,r,n+c,i));s.sort((a,c)=>a.order-c.order);let l=new Map;for(let a of Q(w(e,\"bandFmts\"),\"bandFmt\")){let c=$e(a,\"idx\"),u=Kt(w(a,\"spPr\"),r);c!==null&&c>=0&&u&&l.set(c,u)}return{kind:t,tag:e.localName,is3D:e.localName.endsWith(\"3DChart\"),grouping:o,barDir:(Te(e,\"barDir\")??\"col\")===\"bar\"?\"bar\":\"col\",gapWidth:$e(e,\"gapWidth\")??150,overlap:$e(e,\"overlap\")??(o===\"stacked\"||o===\"percentStacked\"?100:0),holeSize:$e(e,\"holeSize\")??50,firstSliceAng:$e(e,\"firstSliceAng\")??0,varyColors:je(e,\"varyColors\",t===\"pie\"||t===\"doughnut\"||t===\"ofPie\"),showMarker:je(e,\"marker\",!1),radarStyle:Te(e,\"radarStyle\")??\"marker\",scatterStyle:Te(e,\"scatterStyle\")??\"lineMarker\",axIds:Q(e,\"axId\").map(a=>N(a,\"val\")??\"\"),series:s,dLbls:i,bubbleScale:$e(e,\"bubbleScale\")??100,bubbleSizeBy:Te(e,\"sizeRepresents\")??\"area\",upDown:Nd(w(e,\"upDownBars\"),r),hiLowLines:w(e,\"hiLowLines\")?kt(ee(w(e,\"hiLowLines\"),\"spPr\",\"ln\"),r):null,ofPie:t===\"ofPie\"?Rd(e):null,wireframe:je(e,\"wireframe\",!1),bandFills:l}}var zd={catAx:\"cat\",valAx:\"val\",dateAx:\"date\",serAx:\"ser\"};function Yr(e){return{id:\"\",kind:e,del:!1,pos:null,crosses:null,crossAx:\"\",crossBetween:\"between\",min:null,max:null,majorUnit:null,reversed:!1,fmt:null,majorGrid:null,line:{...is},tickLblPos:\"nextTo\",majorTick:\"out\",lblSize:null,lblColor:null,title:null}}function Fd(e,t,r){let n=w(e,\"scaling\"),o=w(e,\"majorGridlines\"),i=qn(w(e,\"txPr\"),r);return{id:Te(e,\"axId\")??\"\",kind:t,del:je(e,\"delete\",!1),pos:Te(e,\"axPos\"),crosses:Te(e,\"crosses\"),crossAx:Te(e,\"crossAx\")??\"\",crossBetween:Te(e,\"crossBetween\")??\"between\",min:$e(n,\"min\"),max:$e(n,\"max\"),majorUnit:$e(e,\"majorUnit\"),reversed:Te(n,\"orientation\")===\"maxMin\",fmt:N(w(e,\"numFmt\"),\"formatCode\"),majorGrid:o?kt(ee(o,\"spPr\",\"ln\"),r):null,line:kt(ee(e,\"spPr\",\"ln\"),r),tickLblPos:Te(e,\"tickLblPos\")??\"nextTo\",majorTick:Te(e,\"majorTickMark\")??\"out\",lblSize:i.size,lblColor:i.color,title:(()=>{let s=w(e,\"title\");return!s||je(e,\"delete\",!1)?null:ls(w(s,\"tx\"))||null})()}}function jd(e){let t=w(e,\"manualLayout\");if(!t)return null;let r=o=>$e(t,o),n={target:Te(t,\"layoutTarget\")??\"outer\",x:r(\"x\"),y:r(\"y\"),w:r(\"w\"),h:r(\"h\")};return n.x===null&&n.y===null&&n.w===null&&n.h===null?null:n}function Ud(e){return e?{rotX:$e(e,\"rotX\")??15,rotY:$e(e,\"rotY\")??20,depthPercent:$e(e,\"depthPercent\")??100}:null}function Dd(e,t){let r=w(e,\"chart\"),n=w(r,\"plotArea\"),o=qn(w(e,\"txPr\"),t),i=[],s=[],l=0;if(n)for(let M=n.firstElementChild;M;M=M.nextElementSibling){let S=Ld[M.localName];if(!S)continue;if(S===\"other\"){s.push(M.localName);continue}let y=Od(M,S,t,l);l+=y.series.length,i.push(y)}let a=[];if(n)for(let M=n.firstElementChild;M;M=M.nextElementSibling){let S=zd[M.localName];S&&a.push(Fd(M,S,t))}let c=w(r,\"title\"),u=je(r,\"autoTitleDeleted\",!1),h=w(c,\"tx\"),f=c&&!je(c,\"delete\",!1)?ls(h):\"\",m=qn(h??w(c,\"txPr\"),t),d=qn(w(c,\"txPr\"),t),p=w(r,\"legend\"),b=new Set;for(let M of Q(p,\"legendEntry\")){let S=$e(M,\"idx\");S!==null&&je(M,\"delete\",!1)&&b.add(S)}let v=w(e,\"spPr\"),x=w(n,\"spPr\");return{title:f&&!u?f:null,titleSize:m.size??d.size??Mt(14),titleColor:m.color??d.color,titleBold:m.bold||d.bold,legendPos:p?Te(p,\"legendPos\")??\"r\":null,legendOverlay:je(p,\"overlay\",!1),legendDeleted:b,groups:i,axes:a,view3D:Ud(w(r,\"view3D\")),fill:Kt(v,t),ln:kt(w(v,\"ln\"),t),plotFill:Kt(x,t),plotLn:kt(w(x,\"ln\"),t),plotLayout:jd(w(n,\"layout\")),textSize:o.size??Mt(10),textColor:o.color??mc(t,\"tx1\"),unsupported:s}}var De=e=>e*1.4,$c=e=>e*2.9,Mc=(e,t)=>os(e,t)+t*.5;function qr(e){let t=0;for(let r of e.labels){let n=Mc(r,e.size);n>t&&(t=n)}return t}var Zr=e=>!e.axis.del&&e.axis.tickLblPos!==\"none\",Bd=.08;function Hd(e,t){let r=Math.max(Math.min(t.h,t.w*1.2)*Bd,6),n=be(e?e.rotX:15,-60,60),o=be(e?e.rotY:20,-90,90),i=be((e?e.depthPercent:100)/100,.2,3),s=r*be(o/20,-2,2)*i,l=-r*be(n/20,-2,2)*i;return Math.abs(s)<1&&Math.abs(l)<1?{dx:r*.5,dy:-r*.4}:{dx:s,dy:l}}function Wd(e,t){let r=Math.abs(t.dx),n=Math.abs(t.dy);return{x:e.x+(t.dx<0?r:0),y:e.y+(t.dy<0?n:0),w:Math.max(e.w-r,8),h:Math.max(e.h-n,8)}}function Vd(e,t,r){let n=[],o=e.x,i=e.x+e.w,s=e.y,l=e.y+e.h,a=Ne(Ve(r,\"#ffffff\",.93)),c=Ne(Ve(r,\"#ffffff\",.86)),u=Ne(Ve(r,\"#ffffff\",.89)),h=(d,p)=>{let b=pc(d,p,null);b&&n.push(b)};h([[o+t.dx,s+t.dy],[i+t.dx,s+t.dy],[i+t.dx,l+t.dy],[o+t.dx,l+t.dy]],a);let f=t.dx>=0?o:i;h([[f,s],[f+t.dx,s+t.dy],[f+t.dx,l+t.dy],[f,l]],u);let m=t.dy<=0?l:s;return h([[o,m],[i,m],[i+t.dx,m+t.dy],[o+t.dx,m+t.dy]],c),n}function kc(e,t){return e>0&&t>0&&e<=t*(5/6)?0:e}function Cc(e){if(e.lo!==e.hi)return e;if(e.lo===0)return{lo:0,hi:1};let t=Math.abs(e.lo)*.2;return{lo:e.lo-t,hi:e.hi+t}}function lo(e){let t=1/0,r=-1/0,n=!1,o=i=>{Number.isFinite(i)&&(i<t&&(t=i),i>r&&(r=i))};for(let i of e)if((i.kind===\"bar\"||i.kind===\"area\")&&(n=!0),i.grouping===\"percentStacked\"){let s=!1,l=!1;for(let a of i.series)for(let c of a.vals)c!==null&&(c<0?s=!0:c>0&&(l=!0));o(0),(l||!s)&&o(1),s&&o(-1)}else if(so(i)){let s=0;for(let l of i.series)s=Math.max(s,l.vals.length);for(let l=0;l<s;l++){let a=0,c=0;for(let u of i.series){let h=u.vals[l];h==null||!Number.isFinite(h)||(h>=0?a+=h:c+=h)}o(a),o(c)}}else for(let s of i.series)for(let l of s.vals)l!==null&&o(l);return t===1/0?{lo:0,hi:1}:(n?(t=Math.min(t,0),r=Math.max(r,0)):t=kc(t,r),Cc({lo:t,hi:r}))}function Gd(e){let t=1/0,r=-1/0;for(let n of e)for(let o of n.series)if(o.xs)for(let i of o.xs)i===null||!Number.isFinite(i)||(i<t&&(t=i),i>r&&(r=i));else o.vals.length&&(t=Math.min(t,1),r=Math.max(r,o.vals.length));return t===1/0?{lo:0,hi:1}:Cc({lo:kc(t,r),hi:r})}function Xd(e,t,r){let n=ss(e.lo,e.hi,r),o=t.min!==null&&Number.isFinite(t.min)?t.min:n.min,i=t.max!==null&&Number.isFinite(t.max)?t.max:n.max;i<o&&([o,i]=[i,o]);let s=t.majorUnit!==null&&Number.isFinite(t.majorUnit)?t.majorUnit:n.step;for(i===o&&(i=o+Math.abs(s)||o+1),s>0||(s=(i-o)/Math.max(1,r)),s>0||(s=1);(i-o)/s>100;)s*=2;return{min:o,max:i,step:s}}var ao=(e,t)=>Math.round(be(e/Math.max(t*3.2,1),2,12));function Sc(e,t,r,n,o,i){let s=Xd(r,e,n),l=Td(s),a=e.fmt??o;return{axis:e,side:t,scale:s,ticks:l,labels:l.map(c=>_t(c,a)),between:!1,catCount:l.length,size:e.lblSize??i.textSize,color:e.lblColor??i.textColor}}function Yd(e,t,r,n,o){return{axis:e,side:t,scale:null,ticks:r.map((i,s)=>s),labels:r.slice(),between:n,catCount:r.length,size:e.lblSize??o.textSize,color:e.lblColor??o.textColor}}function Ca(e,t,r,n){let o=t?e.h:e.w,i=Math.max(r.catCount,1),s=r.between?o/i:i>1?o/(i-1):o,l=r.axis.reversed,a=d=>{let p=l?o-d:d;return t?e.y+e.h-p:e.x+p},c=d=>a(r.between?(d+.5)*s:d*s),u=d=>a(d*s),{at:h,clampValue:f}=Ui(e,t,n),m=(d,p)=>t?[p,d]:[d,p];return{rect:e,horizontal:t,catView:r,valView:n,band:s,cat:c,edge:u,val:h,clampVal:f,zero:h(f(0)),pt:m}}function Ui(e,t,r){let n=r.scale??{min:0,max:1},o=n.max-n.min||1;return{at:i=>{let s=(i-n.min)/o;return Number.isFinite(s)||(s=0),r.axis.reversed&&(s=1-s),t?e.x+s*e.w:e.y+e.h-s*e.h},clampValue:i=>Number.isFinite(i)?be(i,n.min,n.max):n.min}}function qd(e,t,r){let n=Ui(e,!0,t),o=Ui(e,!1,r);return{rect:e,x:n.at,y:o.at,clampX:n.clampValue,clampY:o.clampValue}}function Di(e,t,r,n,o=null){let i=e.textSize*.45,s=De(e.textSize*1.05)+i*.6,l={l:e.textSize*.4,r:e.textSize*.8,t:e.textSize*.8,b:e.textSize*.3},a=(c,u,h,f=!1)=>{Zr(c)&&(l[u]+=(h?f?$c(c.size):De(c.size):qr(c))+i),c.axis.title&&(l[u]+=s)};if(a(r,r.side===\"r\"?\"r\":\"l\",!1),o&&a(o,o.side,o.side===\"t\"||o.side===\"b\"),a(t,t.side===\"t\"?\"t\":\"b\",!0,n),Zr(t)&&t.scale){let c=qr(t)/2;l.l+=c,l.r+=c}return l}function Bi(e,t){let r=e.w*.72,n=e.h*.72,{l:o,r:i,t:s,b:l}=t;if(o+i>r){let a=r/(o+i);o*=a,i*=a}if(s+l>n){let a=n/(s+l);s*=a,l*=a}return{x:e.x+o,y:e.y+s,w:Math.max(e.w-o-i,8),h:Math.max(e.h-s-l,8)}}function Zd(e,t,r,n,o,i){let s=o?o.dx:0,l=o?o.dy:0,a=ht(e+s,t+l,r+s,n+l,i);return a?[a]:[]}function as(e,t,r){let n=[],{rect:o,hAxis:i,vAxis:s}=t,l=Ve(e.textColor,\"#ffffff\",.78),a=Ve(e.textColor,\"#ffffff\",.45),c=e.textSize*.45,u=t.depth;for(let d of[!1,!0]){let p=d?i:s,b=p.axis.majorGrid?Ge(p.axis.majorGrid,l,1):null;if(!b)continue;let v=d?t.hEdge:t.vEdge,x=v??(d?t.hPos:t.vPos),M=v?d?t.hEdgeCount:t.vEdgeCount:p.ticks.length;for(let S=0;S<M;S++){let y=x(S),$=d?y:o.x,k=d?o.y:y;if(n.push(...Zd($,k,d?y:o.x+o.w,d?o.y+o.h:y,u,b)),u&&t.gridWalls!==!1){let A=d?y:u.dx<0?o.x+o.w:o.x,L=d?u.dy>0?o.y:o.y+o.h:y,P=ht(A,L,A+u.dx,L+u.dy,b);P&&n.push(P)}}}let h=[],f=[],m=[];for(let d of[!0,!1]){let p=d?i:s,b=d?t.hPos:t.vPos,v=d?t.hLineAt:t.vLineAt;if(!p.axis.del){let $=Ge(p.axis.line,a,1),k=d?ht(o.x,v,o.x+o.w,v,$):ht(v,o.y,v,o.y+o.h,$);k&&h.push(k)}let x=p.size,M=d&&t.hWrap,S=M?$c(x):De(x),y=0;if(Zr(p)){y=(d?S:qr(p))+c;for(let $=0;$<p.labels.length;$++){let k=p.labels[$];if(!k)continue;let A=M?Math.max(t.hBand*.98,x*2):Mc(k,x),L=d?b($)-A/2:p.side===\"r\"?o.x+o.w+c:o.x-c-A,P=d?p.side===\"t\"?o.y-c-S:o.y+o.h+c:b($)-S/2,E=nt(L,P,A,S,k,{size:x,color:p.color,align:d?\"center\":p.side===\"r\"?\"left\":\"right\",anchor:d?p.side===\"t\"?\"bottom\":\"top\":\"middle\",fonts:r});M&&E.text&&(E.text.wrap=!0),f.push(E)}}if(p.axis.title){let $=e.textSize*1.05,k=De($);if(d){let A=p.side===\"t\"?o.y-y-c-k:o.y+o.h+y+c*.4;m.push(nt(o.x,A,o.w,k,p.axis.title,{size:$,color:e.textColor,align:\"center\",anchor:\"middle\",fonts:r}))}else{let A=p.side===\"r\"?o.x+o.w+y+c*.4+k/2:o.x-y-c*.4-k/2;m.push(nt(A-o.h/2,o.y+o.h/2-k/2,o.h,k,p.axis.title,{size:$,color:e.textColor,align:\"center\",anchor:\"middle\",fonts:r,rot:p.side===\"r\"?90:-90}))}}}return n.push(...h,...f,...m),n}function _d(e,t,r){let n=t.view.side===\"l\"||t.view.side===\"r\",o=t.grid?t.view:{...t.view,axis:{...t.view.axis,majorGrid:null}},i={...o,axis:{...o.axis,del:!0,majorGrid:null,title:null}};return as(e,{rect:t.rect,hAxis:n?i:o,vAxis:n?o:i,hPos:t.pos,vPos:t.pos,hEdge:null,hEdgeCount:0,vEdge:null,vEdgeCount:0,hLineAt:t.at,vLineAt:t.at,hWrap:!1,hBand:0,depth:t.depth,gridWalls:!1},r)}function Kd(e,t){return!Zr(e)||e.scale?!1:qr(e)>t*1.02}var Qt=Math.PI*2,Sa=[\"circle\",\"square\",\"diamond\",\"triangle\",\"x\",\"plus\",\"star\",\"dot\"];function rt(e,t,r,n){let o=t.dPts.get(r),i=e.varyColors?gc(n,r):t.color,s=o?.fill??t.fill??Ne(i);return{fill:s,color:s.type===\"solid\"?s.color:i}}function un(e,t,r,n){let o=e.dPts.get(t);return Ge(o!=null&&o.ln.present?o.ln:e.ln,r,n)}var ve=e=>e==null||!Number.isFinite(e)?null:e;function Qd(e){let t=1/0,r=1/0,n=-1/0,o=-1/0;for(let[i,s]of e)i<t&&(t=i),s<r&&(r=s),i>n&&(n=i),s>o&&(o=s);return{x:t,y:r,w:n-t,h:o-r}}function Jd(e,t,r){let n=e.map(([i,s])=>[i-t,s-r]),o=`M ${H(n[0][0])} ${H(n[0][1])}`;for(let i=0;i<n.length-1;i++){let s=n[i===0?0:i-1],l=n[i],a=n[i+1],c=n[i+2<n.length?i+2:n.length-1],u=[l[0]+(a[0]-s[0])/6,l[1]+(a[1]-s[1])/6],h=[a[0]-(c[0]-l[0])/6,a[1]-(c[1]-l[1])/6];o+=` C ${H(u[0])} ${H(u[1])} ${H(h[0])} ${H(h[1])} ${H(a[0])} ${H(a[1])}`}return o}function cs(e,t,r,n,o){let i=e.map(a=>a.filter(([c,u])=>Number.isFinite(c)&&Number.isFinite(u))).filter(a=>a.length>=(n?3:2));if(!i.length)return null;let s=Qd(i.flat()),l=i.map(a=>(o&&a.length>2?Jd(a,s.x,s.y):\"M \"+a.map(([c,u])=>`${H(c-s.x)} ${H(u-s.y)}`).join(\" L \"))+(n?\" Z\":\"\")).join(\" \");return Ue(s.x,s.y,s.w,s.h,l,t,r)}function Jn(e,t,r){return`M ${H(e-r)} ${H(t)} A ${H(r)} ${H(r)} 0 1 1 ${H(e+r)} ${H(t)} A ${H(r)} ${H(r)} 0 1 1 ${H(e-r)} ${H(t)} Z`}function ep(e,t){let r=t,n=t*2;switch(e){case\"square\":return{d:`M 0 0 L ${H(n)} 0 L ${H(n)} ${H(n)} L 0 ${H(n)} Z`,open:!1};case\"diamond\":return{d:`M ${H(r)} 0 L ${H(n)} ${H(r)} L ${H(r)} ${H(n)} L 0 ${H(r)} Z`,open:!1};case\"triangle\":return{d:`M ${H(r)} 0 L ${H(n)} ${H(n)} L 0 ${H(n)} Z`,open:!1};case\"x\":return{d:`M 0 0 L ${H(n)} ${H(n)} M ${H(n)} 0 L 0 ${H(n)}`,open:!0};case\"plus\":return{d:`M ${H(r)} 0 L ${H(r)} ${H(n)} M 0 ${H(r)} L ${H(n)} ${H(r)}`,open:!0};case\"star\":return{d:`M ${H(r)} 0 L ${H(r)} ${H(n)} M 0 ${H(r)} L ${H(n)} ${H(r)} M 0 0 L ${H(n)} ${H(n)} M ${H(n)} 0 L 0 ${H(n)}`,open:!0};case\"dash\":return{d:`M 0 ${H(r)} L ${H(n)} ${H(r)}`,open:!0};case\"dot\":return{d:Jn(r,r,t*.55),open:!1};default:return{d:Jn(r,r,t),open:!1}}}function co(e,t,r){let n=e.kind===\"scatter\"?e.scatterStyle!==\"line\"&&e.scatterStyle!==\"smooth\":e.showMarker,o=t.marker?t.marker.symbol:n?\"auto\":\"none\";return o===\"auto\"&&(o=n?Sa[r%Sa.length]:\"none\"),o}function uo(e,t,r,n,o){var i,s;if(r===\"none\"||!Number.isFinite(e)||!Number.isFinite(t))return null;let l=Math.max(Mt(be(((i=n.marker)==null?void 0:i.size)??5,2,72))/2,1),{d:a,open:c}=ep(r,l),u=(s=n.marker)==null?void 0:s.fill,h=n.marker?Ge(n.marker.ln,null,0):null;return c?Ue(e-l,t-l,l*2,l*2,a,null,h??{color:o,width:1.25,dash:null}):Ue(e-l,t-l,l*2,l*2,a,u??Ne(o),h)}function It(e,t,r,n,o,i=null,s=o.cats[t]??\"\"){let l=e.dLbls,a=[];return l.showSer&&a.push(e.name),l.showCat&&a.push(s),l.showVal&&a.push(_t(r,l.fmt??e.fmt)),l.showSize&&i!==null&&a.push(_t(i,e.sizeFmt??l.fmt??e.fmt)),l.showPercent&&n!==null&&a.push(_t(n,l.fmt&&l.fmt.includes(\"%\")?l.fmt:\"0%\")),a.filter(c=>c!==\"\").join(\" \")}function Nt(e,t,r,n,o){if(!r||!Number.isFinite(e)||!Number.isFinite(t))return null;let i=n.size??o.size*.92,s=Math.max(r.length*i*.75,i*2),l=De(i);return nt(e-s/2,t-l/2,s,l,r,{size:i,color:n.color??o.color,align:\"center\",anchor:\"middle\",fonts:o.fonts})}function tp(e,t,r,n,o){let i=[],s=e.x,l=e.x+e.w,a=e.y,c=e.y+e.h,u=(m,d)=>{let p=pc(m,Ne(d),o);p&&i.push(p)},h=t.dx>=0?l:s;u([[h,a],[h+t.dx,a+t.dy],[h+t.dx,c+t.dy],[h,c]],rs(n));let f=t.dy<=0?a:c;return u([[s,f],[l,f],[l+t.dx,f+t.dy],[s+t.dx,f+t.dy]],Md(n)),i.push(Ue(e.x,e.y,e.w,e.h,`M 0 0 L ${H(e.w)} 0 L ${H(e.w)} ${H(e.h)} L 0 ${H(e.h)} Z`,r,o)),i}function np(e,t,r,n,o=null){let i=[],s=be(e.gapWidth,0,800)/100,l=be(e.overlap,-100,100)/100,a=Math.max(r.total,1),c=1+(a-1)*(1-l)+s,u=t.band/(c>0?c:1);u>0||(u=t.band*.6),u=Math.min(u,t.band);let h=u*(1+(a-1)*(1-l)),f=u*(1-l),m=so(e),d=e.grouping===\"percentStacked\",p=e.series.reduce((y,$)=>Math.max(y,$.vals.length),0),b=new Array(p).fill(0),v=new Array(p).fill(0),x=new Array(p).fill(0);if(d)for(let y=0;y<p;y++){let $=0;for(let k of e.series)$+=Math.abs(ve(k.vals[y])??0);x[y]=$}let M=[],S=[];if(e.series.forEach((y,$)=>{let k=r.base+(m?0:$),A=t.horizontal?-1:1;for(let L=0;L<p;L++){let P=ve(y.vals[L]);if(P===null)continue;let E=d?x[L]>0?P/x[L]:0:P,T=0;m&&(T=E>=0?b[L]:v[L],E>=0?b[L]+=E:v[L]+=E);let I=t.cat(L)+A*(-h/2+k*f+u/2),O=t.val(t.clampVal(T)),R=t.val(t.clampVal(T+E)),[z,j]=t.pt(I-u/2,O),[F,W]=t.pt(I+u/2,R),V={x:Math.min(z,F),y:Math.min(j,W),w:Math.abs(F-z),h:Math.abs(W-j)},{fill:B,color:q}=rt(e,y,L,n.ctx);if(V.w>.05&&V.h>.05&&S.push({r:V,fill:B,color:q,stroke:un(y,L,null,0),anchor:t.pt(I,O)}),ft(y.dLbls)){let X=It(y,L,P,d&&x[L]>0?Math.abs(P)/x[L]:null,n),K=y.dLbls.size??n.size*.92,Y=De(K)*.6,se=y.dLbls.pos??(m?\"ctr\":\"outEnd\"),ue=(V.x+V.x+V.w)/2,fe=(V.y+V.y+V.h)/2;if(se!==\"ctr\"){let it=se===\"inEnd\"||se===\"inBase\"?-1:1;t.horizontal?ue=(E>=0?V.x+V.w:V.x)+it*(E>=0?Y:-Y):fe=(E>=0?V.y:V.y+V.h)-it*(E>=0?Y:-Y)}let de=Nt(ue,fe,X,y.dLbls,n);de&&M.push(de)}}}),o){let y=$=>$.anchor[0]*o.dx+$.anchor[1]*o.dy;S.sort(($,k)=>y($)-y(k));for(let $ of S)i.push(...tp($.r,o,$.fill,$.color,$.stroke))}else for(let y of S)i.push(Ue(y.r.x,y.r.y,y.r.w,y.r.h,`M 0 0 L ${H(y.r.w)} 0 L ${H(y.r.w)} ${H(y.r.h)} L 0 ${H(y.r.h)} Z`,y.fill,y.stroke));return i.concat(M)}function Ec(e){let t=e.series.reduce((a,c)=>Math.max(a,c.vals.length),0),r=so(e),n=e.grouping===\"percentStacked\",o=new Array(t).fill(0);if(n)for(let a=0;a<t;a++){let c=0;for(let u of e.series)c+=Math.abs(ve(u.vals[a])??0);o[a]=c}let i=new Array(t).fill(0),s=[],l=[];for(let a of e.series){let c=[],u=[];for(let h=0;h<t;h++){let f=ve(a.vals[h]);if(f===null){c.push(null),u.push(null);continue}let m=n?o[h]>0?f/o[h]:0:f;r?(u.push(i[h]),i[h]+=m,c.push(i[h])):(u.push(0),c.push(m))}s.push(c),l.push(u)}return{top:s,bottom:l}}function rp(e,t,r){let n=[],o=[],{top:i}=Ec(e),s=e.grouping===\"percentStacked\";return e.series.forEach((l,a)=>{let c=i[a]??[],u=[],h=[],f=[];for(let b=0;b<c.length;b++){let v=c[b];if(v===null){h.length&&u.push(h),h=[],f.push(null);continue}let x=t.pt(t.cat(b),t.val(t.clampVal(v)));h.push(x),f.push(x)}h.length&&u.push(h);let m=Ge(l.ln,l.color,Mt(2.25)),d=cs(u,null,m,!1,l.smooth);d&&n.push(d);let p=co(e,l,a);for(let b=0;b<f.length;b++){let v=f[b];if(!v)continue;let{color:x}=rt(e,l,b,r.ctx),M=uo(v[0],v[1],p,l,e.varyColors?x:l.color);if(M&&o.push(M),ft(l.dLbls)){let S=ve(l.vals[b])??0,y=It(l,b,S,s?c[b]??0:null,r),$=l.dLbls.size??r.size*.92,k=Nt(v[0],v[1]-De($)*.85,y,l.dLbls,r);k&&o.push(k)}}}),n.concat(o)}function op(e,t,r){let n=[],o=[],{top:i,bottom:s}=Ec(e),l=e.grouping===\"percentStacked\";return e.series.forEach((a,c)=>{let u=i[c]??[],h=s[c]??[],f=[],m=[],d=[],p=()=>{m.length>=2&&f.push(m.concat(d.slice().reverse())),m=[],d=[]};for(let x=0;x<u.length;x++){let M=u[x];if(M===null){p();continue}m.push(t.pt(t.cat(x),t.val(t.clampVal(M)))),d.push(t.pt(t.cat(x),t.val(t.clampVal(h[x]??0))))}p();let{fill:b}=rt(e,a,0,r.ctx),v=cs(f,b,Ge(a.ln,null,0),!0,a.smooth);if(v&&n.push(v),ft(a.dLbls))for(let x=0;x<u.length;x++){let M=u[x];if(M===null)continue;let[S,y]=t.pt(t.cat(x),t.val(t.clampVal(M))),$=ve(a.vals[x])??0,k=a.dLbls.size??r.size*.92,A=Nt(S,y-De(k)*.8,It(a,x,$,l?M:null,r),a.dLbls,r);A&&o.push(A)}}),n.concat(o)}function ip(e,t,r){let n=[],o=[],i=e.scatterStyle!==\"marker\"&&e.scatterStyle!==\"none\";return e.series.forEach((s,l)=>{let a=[],c=[],u=[];for(let f=0;f<s.vals.length;f++){let m=ve(s.vals[f]),d=s.xs?ve(s.xs[f]):f+1;if(m===null||d===null){c.length&&a.push(c),c=[],u.push(null);continue}let p=[t.x(t.clampX(d)),t.y(t.clampY(m))];c.push(p),u.push(p)}if(c.length&&a.push(c),i){let f=Ge(s.ln,s.color,Mt(2.25)),m=cs(a,null,f,!1,s.smooth||e.scatterStyle===\"smoothMarker\");m&&n.push(m)}let h=co(e,s,l);for(let f=0;f<u.length;f++){let m=u[f];if(!m)continue;let{color:d}=rt(e,s,f,r.ctx),p=uo(m[0],m[1],h===\"none\"&&!i?\"circle\":h,s,e.varyColors?d:s.color);if(p&&o.push(p),ft(s.dLbls)){let b=s.dLbls.size??r.size*.92,v=Nt(m[0],m[1]-De(b)*.85,It(s,f,ve(s.vals[f])??0,null,r,null,s.cats[f]??String(f+1)),s.dLbls,r);v&&o.push(v)}}}),n.concat(o)}function sp(e,t,r){let n=be(e.bubbleScale,0,300)/100,o=Math.max(2,Math.min(t.rect.w,t.rect.h)*.13*n),i=0;for(let u of e.series)for(let h of u.sizes??[]){let f=ve(h);f!==null&&(i=Math.max(i,Math.abs(f)))}let s=e.bubbleSizeBy!==\"w\",l=[];for(let u of e.series)for(let h=0;h<u.vals.length;h++){let f=ve(u.vals[h]),m=u.xs?ve(u.xs[h]):h+1;if(f===null||m===null)continue;let d=u.sizes?Math.abs(ve(u.sizes[h])??0):0,p=i>0?d/i:1,b=Math.max(1.5,o*(s?Math.sqrt(p):p)),{fill:v,color:x}=rt(e,u,h,r.ctx),M=e.varyColors?x:u.color;l.push({x:t.x(t.clampX(m)),y:t.y(t.clampY(f)),r:b,fill:e.varyColors?Ne(M):v,color:M,stroke:un(u,h,rs(M,.35),Math.max(1,Mt(.75))),label:ft(u.dLbls)?It(u,h,f,null,r,u.sizes?ve(u.sizes[h]):null,u.cats[h]??String(h+1)):\"\",lblSpec:u})}l.sort((u,h)=>h.r-u.r);let a=[],c=[];for(let u of l)if(a.push(Ue(u.x-u.r,u.y-u.r,u.r*2,u.r*2,Jn(u.r,u.r,u.r),u.fill,u.stroke)),u.label){let h=Nt(u.x,u.y,u.label,u.lblSpec.dLbls,r);h&&c.push(h)}return a.concat(c)}function lp(e,t,r){var n;let o=e.series.length;if(o<3)return[];let i=o>=4?e.series.slice(o-4):e.series,s=o>=4?i[0]:null,l=i[o>=4?1:0],a=i[o>=4?2:1],c=i[o>=4?3:2],u=Ve(r.color,\"rgb(255,255,255)\",.15),h=Ge(e.hiLowLines,u,1)??{color:u,width:1,dash:null},f=Math.max(l.vals.length,a.vals.length,c.vals.length),m=be(((n=e.upDown)==null?void 0:n.gapWidth)??150,0,500)/100,d=Math.max(1.5,Math.min(t.band/(1+m),t.band*.9)),p=Math.max(1.5,d/2),b=[];for(let v=0;v<f;v++){let x=ve(l.vals[v]),M=ve(a.vals[v]),S=ve(c.vals[v]),y=s?ve(s.vals[v]):null;if(x===null||M===null)continue;let $=t.cat(v),k=t.val(t.clampVal(Math.max(x,M))),A=t.val(t.clampVal(Math.min(x,M))),[L,P]=t.pt($,k),[E,T]=t.pt($,A),I=ht(L,P,E,T,h);if(I&&b.push(I),e.upDown&&y!==null&&S!==null){let O=S>=y,R=t.val(t.clampVal(y)),z=t.val(t.clampVal(S)),[j,F]=t.pt($-d/2,Math.min(R,z)),[W,V]=t.pt($+d/2,Math.max(R,z)),B={x:Math.min(j,W),y:Math.min(F,V),w:Math.max(Math.abs(W-j),1),h:Math.max(Math.abs(V-F),1)},q=(O?e.upDown.upFill:e.upDown.downFill)??Ne(O?\"rgb(255,255,255)\":u),X=Ge(O?e.upDown.upLn:e.upDown.downLn,u,1)??{color:u,width:1,dash:null};b.push(Ue(B.x,B.y,B.w,B.h,`M 0 0 L ${H(B.w)} 0 L ${H(B.w)} ${H(B.h)} L 0 ${H(B.h)} Z`,q,X))}else{if(y!==null){let[O,R]=t.pt($,t.val(t.clampVal(y))),z=ht(O-(t.horizontal?0:p),R-(t.horizontal?p:0),O,R,h);z&&b.push(z)}if(S!==null){let[O,R]=t.pt($,t.val(t.clampVal(S))),z=ht(O,R,O+(t.horizontal?0:p),R+(t.horizontal?p:0),h);z&&b.push(z)}}if(ft(c.dLbls)&&S!==null){let[O,R]=t.pt($,t.val(t.clampVal(S))),z=c.dLbls.size??r.size*.92,j=Nt(O+d,R-De(z)*.2,It(c,v,S,null,r),c.dLbls,r);j&&b.push(j)}}return b}function Hi(e,t,r,n,o,i){let s=(c,u)=>`${H(e+c*Math.cos(u))} ${H(t+c*Math.sin(u))}`,l=i-o;if(l>=Qt-1e-6){let c=Jn(e,t,n);return r>.01?`${c} ${Jn(e,t,r)}`:c}let a=l>Math.PI?1:0;return r<=.01?`M ${H(e)} ${H(t)} L ${s(n,o)} A ${H(n)} ${H(n)} 0 ${a} 1 ${s(n,i)} Z`:`M ${s(n,o)} A ${H(n)} ${H(n)} 0 ${a} 1 ${s(n,i)} L ${s(r,i)} A ${H(r)} ${H(r)} 0 ${a} 0 ${s(r,o)} Z`}var Mi=.55,Ea=.17,Tc=(e,t,r,n,o)=>`${H(e+r*Math.cos(o))} ${H(t+n*Math.sin(o))}`;function ap(e,t,r,n,o,i){let s=c=>Tc(e,t,r,n,c),l=i-o;if(l>=Qt-1e-6)return`M ${H(e-r)} ${H(t)} A ${H(r)} ${H(n)} 0 1 1 ${H(e+r)} ${H(t)} A ${H(r)} ${H(n)} 0 1 1 ${H(e-r)} ${H(t)} Z`;let a=l>Math.PI?1:0;return`M ${H(e)} ${H(t)} L ${s(o)} A ${H(r)} ${H(n)} 0 ${a} 1 ${s(i)} Z`}function cp(e,t){let r=[];for(let n=-1;n<=2;n++){let o=Math.max(e,n*Qt),i=Math.min(t,n*Qt+Math.PI);i-o>1e-4&&r.push([o,i])}return r}function up(e,t,r,n,o,i,s){let l=(c,u)=>Tc(e,t+u,r,n,c),a=i-o>Math.PI?1:0;return`M ${l(o,0)} A ${H(r)} ${H(n)} 0 ${a} 1 ${l(i,0)} L ${l(i,s)} A ${H(r)} ${H(n)} 0 ${a} 0 ${l(o,s)} Z`}function hp(e,t,r){var n;let o=e.series[0];if(!o)return[];let i=ft(o.dLbls)?.8:.94,s=Math.min(t.w/2,t.h/(2*Mi+Ea))*i;if(!(s>0))return[];let l=s*Mi,a=s*Ea,c=t.x+t.w/2,u=t.y+(t.h-(2*l+a))/2+l,h=o.vals.map(v=>Math.abs(ve(v)??0)),f=h.reduce((v,x)=>v+x,0);if(!(f>0))return[];let m=[],d=[],p=[],b=(be(e.firstSliceAng,0,360)-90)*(Math.PI/180);for(let v=0;v<h.length;v++){let x=h[v]/f,M=x*Qt;if(!(M>0))continue;let S=b+M,y=b+M/2,$=be(((n=o.dPts.get(v))==null?void 0:n.explosion)??0,0,400)/100*s*.5,k=c+Math.cos(y)*$,A=u+Math.sin(y)*$*Mi,{fill:L,color:P}=rt(e,o,v,r.ctx),E=un(o,v,null,0);for(let[T,I]of cp(b,S)){let O=Ue(k-s,A-l,s*2,l*2+a,up(s,l,s,l,T,I,a),Ne(rs(P)),E);m.push({el:O,depth:Math.sin((T+I)/2)})}if(d.push(Ue(k-s,A-l,s*2,l*2,ap(s,l,s,l,b,S),L,E)),ft(o.dLbls)){let T=o.dLbls.pos===\"outEnd\"||o.dLbls.pos===\"bestFit\",I=T?1.2:.62,O=Math.sin(y),R=O>0?a*(T?1:.5):0,z=It(o,v,ve(o.vals[v])??0,x,r),j=Nt(k+Math.cos(y)*s*I,A+O*l*I+R,z,o.dLbls,r);j&&p.push(j)}b=S}return m.sort((v,x)=>v.depth-x.depth),m.map(v=>v.el).concat(d,p)}function fp(e,t,r){let n=[],o=[],i=e.kind===\"doughnut\"?e.series:e.series.slice(0,1);if(!i.length)return n;let s=i.some(f=>ft(f.dLbls)),l=Math.min(t.w,t.h)/2*(s?.78:.92);if(!(l>0))return n;let a=t.x+t.w/2,c=t.y+t.h/2,u=e.kind===\"doughnut\"?be(e.holeSize,0,90)/100:0,h=l*(1-u)/i.length;return i.forEach((f,m)=>{var d;let p=l*u+m*h,b=p+h,v=f.vals.map(S=>Math.abs(ve(S)??0)),x=v.reduce((S,y)=>S+y,0);if(!(x>0))return;let M=(be(e.firstSliceAng,0,360)-90)*(Math.PI/180);for(let S=0;S<v.length;S++){let y=v[S]/x,$=y*Qt;if(!($>0))continue;let k=M+$/2,A=be(((d=f.dPts.get(S))==null?void 0:d.explosion)??0,0,400)/100*b*.5,L=a+Math.cos(k)*A,P=c+Math.sin(k)*A,{fill:E}=rt(e,f,S,r.ctx);if(n.push(Ue(L-b,P-b,b*2,b*2,Hi(b,b,p,b,M,M+$),E,un(f,S,null,0))),ft(f.dLbls)){let T=f.dLbls.pos===\"outEnd\"||f.dLbls.pos===\"bestFit\"?b*1.16:(p+b)/2+(p>0?0:b*.12),I=It(f,S,ve(f.vals[S])??0,y,r),O=Nt(L+Math.cos(k)*T,P+Math.sin(k)*T,I,f.dLbls,r);O&&o.push(O)}M+=$}}),n.concat(o)}function dp(e,t){let r=e.ofPie,n=new Set;if(!r||!t.length)return n;let o=t.reduce((i,s)=>i+s,0);switch(r.splitType){case\"val\":{let i=r.splitPos??0;t.forEach((s,l)=>{s<i&&n.add(l)});break}case\"percent\":{let i=(r.splitPos??0)/100;t.forEach((s,l)=>{o>0&&s/o<i&&n.add(l)});break}case\"custom\":for(let i of r.custSplit)i>=0&&i<t.length&&n.add(i);break;default:{let i=be(Math.round(r.splitPos??2),1,Math.max(t.length-1,1));for(let s=Math.max(t.length-i,1);s<t.length;s++)n.add(s)}}return n.size>=t.length&&n.delete(0),n}function pp(e,t,r){let n=e.series[0],o=e.ofPie;if(!n||!o)return[];let i=n.vals.map(R=>Math.abs(ve(R)??0)),s=i.reduce((R,z)=>R+z,0);if(!(s>0))return[];let l=dp(e,i),a=i.map((R,z)=>z).filter(R=>!l.has(R)),c=i.map((R,z)=>z).filter(R=>l.has(R)),u=c.reduce((R,z)=>R+i[z],0),h=ft(n.dLbls),f=t.w*.08,m=(t.w-f)/2,d=Math.max(6,Math.min(m*(h?.72:.86),t.h*(h?.38:.46))),p=Math.max(4,Math.min(d*be(o.secondSize,5,200)/100,m*.86,t.h*.46)),b=t.y+t.h/2,v=t.x+m/2,x=t.x+m+f+m/2,M=[],S=[],y=Ve(r.color,\"rgb(255,255,255)\",.55),$=(R,z,j,F)=>{if(!h)return;let W=j===null?`\\u5176\\u4ED6 ${_t(u/s,\"0%\")}`:It(n,j,F,s>0?F/s:null,r),V=Nt(R,z,W,n.dLbls,r);V&&S.push(V)},k=a.map(R=>({idx:R,v:i[R]}));u>0&&k.push({idx:null,v:u});let A=(be(e.firstSliceAng,0,360)-90)*(Math.PI/180),L=0,P=0;for(let R of k){let z=R.v/s*Qt;if(!(z>0))continue;let j=A+z/2,F=R.idx===null?Ne(y):rt(e,n,R.idx,r.ctx).fill,W=R.idx===null?null:un(n,R.idx,null,0);M.push(Ue(v-d,b-d,d*2,d*2,Hi(d,d,0,d,A,A+z),F,W));let V=n.dLbls.pos===\"outEnd\"||n.dLbls.pos===\"bestFit\"?d*1.15:d*.62;$(v+Math.cos(j)*V,b+Math.sin(j)*V,R.idx,R.v),R.idx===null&&(L=A,P=A+z),A+=z}let E=u>0?u:1,T=b-p,I=b+p,O=x-p;if(o.type===\"bar\"){let R=Math.max(8,p*.9),z=Math.max(12,p*2);T=b-z/2,I=b+z/2,O=x-R/2;let j=T;for(let F of c){let W=i[F]/E*z;if(!(W>0))continue;let{fill:V}=rt(e,n,F,r.ctx);M.push(Ue(O,j,R,W,`M 0 0 L ${H(R)} 0 L ${H(R)} ${H(W)} L 0 ${H(W)} Z`,V,un(n,F,null,0))),$(O+R/2,j+W/2,F,i[F]),j+=W}}else{let R=-Math.PI/2;for(let z of c){let j=i[z]/E*Qt;if(!(j>0))continue;let F=R+j/2,{fill:W}=rt(e,n,z,r.ctx);M.push(Ue(x-p,b-p,p*2,p*2,Hi(p,p,0,p,R,R+j),W,un(n,z,null,0)));let V=n.dLbls.pos===\"outEnd\"||n.dLbls.pos===\"bestFit\"?p*1.18:p*.62;$(x+Math.cos(F)*V,b+Math.sin(F)*V,z,i[z]),R+=j}}if(o.serLines!==!1&&u>0){let R={color:Ve(r.color,\"rgb(255,255,255)\",.45),width:1,dash:null},z=[v+Math.cos(L)*d,b+Math.sin(L)*d],j=[v+Math.cos(P)*d,b+Math.sin(P)*d],F=z[1]<=j[1]?z:j,W=z[1]<=j[1]?j:z,V=ht(F[0],F[1],O,T,R),B=ht(W[0],W[1],O,I,R);V&&M.push(V),B&&M.push(B)}return M.concat(S)}var Ir=[\"rgb(49,84,163)\",\"rgb(84,148,200)\",\"rgb(160,208,224)\",\"rgb(224,238,196)\",\"rgb(253,224,144)\",\"rgb(244,146,74)\",\"rgb(200,60,44)\"];function Ta(e){let t=be(e,0,1)*(Ir.length-1),r=Math.min(Math.floor(t),Ir.length-2);return Ve(Ir[r],Ir[r+1],t-r)}function mp(e,t,r){let n=e.series.length,o=e.series.reduce(($,k)=>Math.max($,k.vals.length),0);if(!n||!o)return[];let i=Math.min(t.rect.w*.16,r.size*7),s=Math.min(t.rect.w*.2,Math.max(r.size*4,os(gp(e.series.map($=>$.name)),r.size)+r.size)),l=De(r.size)*1.2,a=t.rect.x+s,c=t.rect.y,u=Math.max(t.rect.w-s-i-r.size,12),h=Math.max(t.rect.h-l,12),f=u/o,m=h/n,d=t.max-t.min||1,p=[],b={color:\"rgba(255,255,255,0.75)\",width:.75,dash:null};e.series.forEach(($,k)=>{let A=c+h-(k+1)*m;for(let L=0;L<o;L++){let P=ve($.vals[L]);if(P===null)continue;let E=(P-t.min)/d,T=be(Math.floor(E*t.bands),0,t.bands-1),I=e.bandFills.get(T)??Ne(Ta(t.bands>1?T/(t.bands-1):E));p.push(Qn({x:a+L*f,y:A,w:f,h:m},I,b))}p.push(nt(t.rect.x,A+m/2-l/2,Math.max(s-r.size*.4,8),l,$.name,{size:r.size,color:r.color,align:\"right\",anchor:\"middle\",fonts:r.fonts}))});for(let $=0;$<o&&$<r.cats.length;$++)p.push(nt(a+$*f,c+h,f,l,r.cats[$],{size:r.size,color:r.color,align:\"center\",anchor:\"middle\",fonts:r.fonts}));let v=Math.min(r.size*1.1,i*.35),x=a+u+r.size*.6,M=h*.9,S=c+(h-M)/2,y=M/t.bands;for(let $=0;$<t.bands;$++){let k=e.bandFills.get($)??Ne(Ta(t.bands>1?$/(t.bands-1):.5));p.push(Qn({x,y:S+M-($+1)*y,w:v,h:y},k,null)),p.push(nt(x+v+r.size*.3,S+M-($+1)*y-De(r.size*.85)/2,i,De(r.size*.85),_t(t.min+($+1)*d/t.bands,t.fmt),{size:r.size*.85,color:r.color,align:\"left\",anchor:\"middle\",fonts:r.fonts}))}return p}var gp=e=>e.reduce((t,r)=>r.length>t.length?r:t,\"\");function Wi(e,t,r){let n=e.angle(t),o=e.radius*e.norm(r);return[e.cx+o*Math.sin(n),e.cy-o*Math.cos(n)]}function bp(e,t,r,n,o,i){let s=[];if(e.count<3)return s;for(let a of t){let c=[];for(let h=0;h<e.count;h++)c.push(Wi(e,h,a));let u=ns([c],null,n);u&&s.push(u)}for(let a=0;a<e.count;a++){let c=e.angle(a),u=ht(e.cx,e.cy,e.cx+e.radius*Math.sin(c),e.cy-e.radius*Math.cos(c),o);u&&s.push(u)}let l=r.size*1.4;for(let a=0;a<e.count&&a<r.cats.length;a++){let c=e.angle(a),u=r.size*.9,h=e.cx+(e.radius+u)*Math.sin(c),f=e.cy-(e.radius+u)*Math.cos(c),m=Math.sin(c),d=m>.2?\"left\":m<-.2?\"right\":\"center\",p=Math.max(r.size*6,30),b=d===\"left\"?h:d===\"right\"?h-p:h-p/2;s.push(nt(b,f-l/2,p,l,r.cats[a],{size:r.size,color:r.color,align:d,fonts:r.fonts}))}for(let a of t){if(a===0)continue;let[c,u]=Wi(e,0,a);s.push(nt(c+2,u-l/2,r.size*5,l,i(a),{size:r.size*.9,color:r.color,align:\"left\",fonts:r.fonts}))}return s}function xp(e,t,r){let n=[],o=[],i=e.radarStyle===\"filled\",s=e.radarStyle===\"marker\";return e.series.forEach((l,a)=>{let{fill:c,color:u}=rt(e,l,0,r.ctx),h=[];for(let p=0;p<t.count;p++){let b=l.vals[p];b==null||!Number.isFinite(b)||h.push(Wi(t,p,b))}if(h.length<2)return;let f=Ge(l.ln,u,2)??{color:u,width:2,dash:null},m=i?c.type===\"solid\"?{type:\"solid\",color:vp(c.color,.45)}:c:null,d=ns([h],m,f);if(d&&n.push(d),s){let p=co(e,l,a);for(let[b,v]of h){let x=uo(b,v,p,l,u);x&&o.push(x)}}}),n.concat(o)}function vp(e,t){let r=e.match(/rgba?\\(([^)]+)\\)/);if(!r)return e;let n=r[1].split(\",\").map(o=>Number(o.trim()));return`rgba(${n[0]||0},${n[1]||0},${n[2]||0},${t})`}function wp(e,t){let r=e.axes.filter(n=>n.kind===\"val\");return t.map(n=>{let o=r.filter(a=>n.axIds.includes(a.id)),i=o.length?o:r,s=i.find(a=>a.pos===\"b\"||a.pos===\"t\")??i[0]??Yr(\"val\"),l=i.find(a=>a!==s)??Yr(\"val\");return{group:n,x:s,y:l}})}function Lc(e,t,r,n=[]){let o=wp(e,t),i=(s,l={lo:0,hi:1})=>{let a=o.filter(f=>f.x===s).map(f=>f.group),c=[...n.filter(f=>s.id&&f.axIds.includes(s.id)),...o.filter(f=>f.y===s).map(f=>f.group)],u=a.length?Gd(a):null,h=c.length?lo(c):null;return u&&h?{lo:Math.min(u.lo,h.lo),hi:Math.max(u.hi,h.hi)}:u??h??l};return{axes:(s=[])=>{let l=new Map(s.map(c=>[c.axis,c])),a=(c,u,h)=>{let f=l.get(c);return f||(f=Sc(c,u?c.pos===\"t\"?\"t\":\"b\":c.pos===\"r\"?\"r\":\"l\",i(c),ao(u?r.w:r.h,e.textSize),u?null:h,e),l.set(c,f)),f};return o.map(({group:c,x:u,y:h})=>{var f;return{group:c,x:a(u,!0,null),y:a(h,!1,((f=c.series.find(m=>m.fmt))==null?void 0:f.fmt)??null)}})},extent:i}}function Vi(e,t,r){let n={...r};for(let o of t){let i=Di(e,o.x,o.y,!1);for(let s of[\"l\",\"r\",\"t\",\"b\"])n[s]=Math.max(n[s],i[s])}return n}function Ac(e,t,r,n,o,i=new Set){let s=[],l=[],a=c=>i.has(c.axis)?{...c,axis:{...c.axis,del:!0,title:null,majorGrid:null}}:(i.add(c.axis),c);for(let{group:c,x:u,y:h}of t){let f=qd(r,u,h);s.push(...as(e,{rect:r,hAxis:a(u),vAxis:a(h),hPos:m=>f.x(u.ticks[m]??0),vPos:m=>f.y(h.ticks[m]??0),hEdge:null,hEdgeCount:0,vEdge:null,vEdgeCount:0,hLineAt:f.y(f.clampY(0)),vLineAt:f.x(f.clampX(0)),hWrap:!1,hBand:0,depth:null},n)),l.push(...c.kind===\"bubble\"?sp(c,f,o):ip(c,f,o))}return{axes:s,plots:l}}function yp(e,t,r,n){let o=Math.max(Number.isFinite(t)?t:0,1),i=Math.max(Number.isFinite(r)?r:0,1);try{return kp(e,o,i,n)}catch{return[us(o,i,\"\\u56FE\\u8868\\u6E32\\u67D3\\u5931\\u8D25\")]}}function us(e,t,r){return{kind:\"unsupported\",x:0,y:0,w:e,h:t,rot:0,flipH:!1,flipV:!1,label:r}}function $p(e,t,r,n){let o=[];if(t.length>0&&t.every(s=>s.kind===\"pie\"||s.kind===\"doughnut\"||s.kind===\"ofPie\")){let s=t[0],l=s.series[0];if(!l)return o;let a=Math.max(l.vals.length,r.length);for(let c=0;c<a;c++){if(e.legendDeleted.has(c))continue;let{fill:u,color:h}=rt(s,l,c,n);o.push({label:r[c]??String(c+1),fill:u,color:h,stroke:null,marker:null,line:!1})}return o}let i=0;for(let s of t)s.series.forEach((l,a)=>{let c=i++;if(e.legendDeleted.has(c))return;let u=s.kind===\"line\"||s.kind===\"scatter\";o.push({label:l.name,fill:u?Ne(l.color):l.fill??Ne(l.color),color:l.color,stroke:u?Ge(l.ln,l.color,Mt(2)):null,marker:u?{sym:co(s,l,a),s:l}:null,line:u})});return o}function Mp(e,t,r,n){let o=[];if(!e.legendPos||!t.length)return{els:o,region:r};let i=e.textSize,s=i*1.2,l=i*.72,a=i*1.75,c=i*.35,u=i*.9,h=t.map(v=>s+c+os(v.label,i)+u),f=e.legendPos,m=f===\"t\"||f===\"b\",d,p=r,b=(v,x,M,S)=>{let y=M+a/2;if(v.line){let $=ht(x,y,x+s,y,v.stroke??{color:v.color,width:Mt(2),dash:null});if($&&o.push($),v.marker&&v.marker.sym!==\"none\"){let k=uo(x+s/2,y,v.marker.sym,v.marker.s,v.color);k&&o.push(k)}}else o.push(Qn({x,y:y-l/2,w:s,h:l},v.fill,null));o.push(nt(x+s+c,M,S,a,v.label,{size:i,color:e.textColor,align:\"left\",anchor:\"middle\",fonts:n}))};if(m){let v=r.w,x=[],M=[],S=0;for(let A=0;A<t.length;A++){let L=Math.min(h[A],v);M.length&&S+L>v&&(x.push(M),M=[],S=0),M.push(A),S+=L}M.length&&x.push(M);let y=Math.max(1,Math.floor(r.h*.4/a)),$=x.slice(0,y),k=$.length*a;d=f===\"t\"?{x:r.x,y:r.y,w:r.w,h:k}:{x:r.x,y:r.y+r.h-k,w:r.w,h:k},e.legendOverlay||(p=f===\"t\"?{x:r.x,y:r.y+k,w:r.w,h:r.h-k}:{x:r.x,y:r.y,w:r.w,h:r.h-k}),$.forEach((A,L)=>{let P=A.reduce((I,O)=>I+Math.min(h[O],v),0),E=d.x+Math.max((d.w-P)/2,0),T=d.y+L*a;for(let I of A){let O=Math.min(h[I],v);b(t[I],E,T,Math.max(O-s-c-u*.5,i)),E+=O}})}else{let v=Math.max(1,Math.floor(r.h/a)),x=Math.max(1,Math.ceil(t.length/v)),M=h.reduce((P,E)=>E>P?E:P,0),S=Math.min(M*x,r.w*.45),y=S/x,$=Math.min(v,Math.ceil(t.length/x)),k=f!==\"l\";d={x:k?r.x+r.w-S:r.x,y:r.y,w:S,h:r.h},e.legendOverlay||(p=k?{x:r.x,y:r.y,w:r.w-S,h:r.h}:{x:r.x+S,y:r.y,w:r.w-S,h:r.h});let A=$*a,L=f===\"tr\"?d.y:d.y+Math.max((d.h-A)/2,0);for(let P=0;P<t.length&&P<$*x;P++){let E=Math.floor(P/$),T=P%$;b(t[P],d.x+E*y,L+T*a,Math.max(y-s-c-i*.2,i))}}return{els:o,region:p}}function Pc(e){let t=[],r=0;for(let i of e)for(let s of i.series)s.vals.length>r&&(r=s.vals.length),s.cats.length>t.length&&(t=s.cats);let n=Math.max(r,t.length),o=[];for(let i=0;i<n;i++)o.push(t[i]??String(i+1));return o}function hn(e,t,r,n){if(!t)return e;let o=t.x!==null?t.x*r:e.x,i=t.y!==null?t.y*n:e.y,s=t.w!==null?t.w*r:e.w,l=t.h!==null?t.h*n:e.h;return!(s>4)||!(l>4)||!Number.isFinite(o)||!Number.isFinite(i)?e:{x:o,y:i,w:s,h:l}}var Ic=e=>{for(let t of e)for(let r of t.series)if(r.fmt)return r.fmt;return null};function kp(e,t,r,n){let o=Dd(e,n.ctx),i=[n.fonts.minor.latin,n.fonts.minor.ea].filter(L=>!!L),s=[],l=o.fill??Ne(\"rgb(255,255,255)\"),a=Ge(o.ln,null,0);(l.type!==\"none\"||a)&&s.push(Qn({x:0,y:0,w:t,h:r},l.type===\"none\"?null:l,a));let c=o.groups.filter(L=>L.series.length>0),u=c.filter(L=>L.kind===\"bar\"||L.kind===\"line\"||L.kind===\"area\"||L.kind===\"stock\"),h=c.filter(L=>bc(L.kind)),f=c.filter(L=>L.kind===\"pie\"||L.kind===\"doughnut\"),m=c.filter(L=>L.kind===\"ofPie\"),d=c.filter(L=>L.kind===\"radar\"),p=c.filter(L=>L.kind===\"surface\"),b=o.unsupported.slice();if(!u.length&&!h.length&&!f.length&&!d.length&&!m.length&&!p.length){let L=b.length?Array.from(new Set(b)).join(\"/\"):\"\\u672A\\u77E5\\u7C7B\\u578B\";return s.concat([us(t,r,`\\u4E0D\\u652F\\u6301\\u7684\\u56FE\\u8868\\u7C7B\\u578B: ${L}`)])}let v=Math.min(o.textSize*.55,Math.min(t,r)*.06),x={x:v,y:v,w:Math.max(t-v*2,8),h:Math.max(r-v*2,8)};if(o.title){let L=o.titleSize,P=Math.min(De(L)+o.textSize*.5,x.h*.3);s.push(nt(x.x,x.y,x.w,P,o.title,{size:L,bold:o.titleBold,color:o.titleColor??o.textColor,align:\"center\",anchor:\"middle\",fonts:i})),x={x:x.x,y:x.y+P,w:x.w,h:Math.max(x.h-P,8)}}let M=u.length?c.filter(L=>u.includes(L)||h.includes(L)):h.length?h:d.length?d:p.length?p:m.length?m:f,S=Pc(u.length?u:M),y=p.length&&p.length===c.length?[]:$p(o,M,S,n.ctx),$=Mp(o,y,x,i);x=$.region,o.plotLayout&&o.plotLayout.target!==\"inner\"&&(x=hn(x,o.plotLayout,t,r));let k={ctx:n.ctx,fonts:i,size:o.textSize,color:o.textColor,cats:S},A=[];if(u.length?A.push(...Ep(o,u,S,x,t,r,i,k,h)):h.length?A.push(...Tp(o,h,x,t,r,i,k)):d.length?A.push(...Pp(o,d,x,t,r,k)):p.length?A.push(...Lp(o,p,x,t,r,k)):m.length?A.push(...Ap(o,m,x,t,r,k)):A.push(...Rp(o,f,x,t,r,k)),s.push(...A,...$.els),b.length){let L=Array.from(new Set(b)).join(\"/\"),P=o.textSize*.9;s.push(nt(x.x,x.y+x.h-De(P),x.w,De(P),`\\u672A\\u6E32\\u67D3: ${L}`,{size:P,color:o.textColor,align:\"right\",anchor:\"middle\",fonts:i}))}return s}function Cp(e,t){return e.crosses===\"max\"?!0:t?e.pos===\"t\":e.pos===\"r\"}function Sp(e,t,r){let n=new Map;for(let f of e.axes)f.id&&n.set(f.id,f);let o=e.axes.find(f=>f.kind===\"cat\"||f.kind===\"date\")??Yr(\"cat\"),i=e.axes.find(f=>f.kind===\"val\")??Yr(\"val\"),s=[],l=new Map;for(let f of t){let m=null,d=null;for(let v of f.axIds){let x=n.get(v);x&&(x.kind===\"val\"?d||(d=x):(x.kind===\"cat\"||x.kind===\"date\")&&(m||(m=x)))}let p=d&&d.id||\"v#\",b=l.get(p);b||(b={cat:m??o,val:d??i,groups:[]},l.set(p,b),s.push(p)),b.groups.push(f)}if(!s.length)return{primary:{cat:o,val:i,groups:t},secondary:null};if(s.length===1)return{primary:l.get(s[0]),secondary:null};let a=s.findIndex(f=>!Cp(l.get(f).val,r));a<0&&(a=0);let c=l.get(s[a]),u=s.filter((f,m)=>m!==a).map(f=>l.get(f)),h={cat:u[0].cat,val:u[0].val,groups:u.flatMap(f=>f.groups)};return{primary:c,secondary:h}}function Ep(e,t,r,n,o,i,s,l,a){let c=t.some(Y=>Y.kind===\"bar\"&&Y.barDir===\"bar\"),{primary:u,secondary:h}=Sp(e,t,c),f=u.cat,m=c?f.pos===\"r\"?\"r\":\"l\":f.pos===\"t\"?\"t\":\"b\",d=c?u.val.pos===\"t\"?\"t\":\"b\":u.val.pos===\"r\"?\"r\":\"l\",p=c?d===\"b\"?\"t\":\"b\":d===\"l\"?\"r\":\"l\",b=c?n.w:n.h,v=ao(b,e.textSize),x=Lc(e,a,n,t),M=(Y,se)=>{let ue=Y.groups.some(fe=>fe.grouping===\"percentStacked\")?\"0%\":Ic(Y.groups);return Sc(Y.val,se,x.extent(Y.val,lo(Y.groups)),v,ue,e)},S=M(u,d),y=h?M(h,p):null,$=t.some(Y=>Y.kind===\"bar\"),k=t.every(Y=>Y.kind===\"area\"),A=$?!0:k?!1:f.crossBetween!==\"midCat\",L=Yd(f,m,r,A,e),P=c?S:L,E=c?L:S,T=x.axes(y?[S,y]:[S]),I=Bi(n,Vi(e,T,Di(e,P,E,!1,y))),O=!1;if(!c&&r.length){let Y=A?I.w/Math.max(r.length,1):I.w/Math.max(r.length-1,1);O=Kd(L,Y),O&&(I=Bi(n,Vi(e,T,Di(e,P,E,!0,y))))}e.plotLayout&&e.plotLayout.target===\"inner\"&&(I=hn(I,e.plotLayout,o,i));let R=t.some(Y=>Y.is3D),z=null;R&&(z=Hd(e.view3D,I),I=Wd(I,z));let j=Ca(I,c,L,S),F=y?Ca(I,c,L,y):null,W=A?r.length+1:r.length,V=c?{rect:I,hAxis:S,vAxis:L,hPos:Y=>j.val(S.ticks[Y]??0),vPos:Y=>j.cat(Y),hEdge:null,hEdgeCount:0,vEdge:Y=>j.edge(Y),vEdgeCount:W,hLineAt:d===\"t\"?I.y:I.y+I.h,vLineAt:j.zero,hWrap:!1,hBand:0,depth:z}:{rect:I,hAxis:L,vAxis:S,hPos:Y=>j.cat(Y),vPos:Y=>j.val(S.ticks[Y]??0),hEdge:Y=>j.edge(Y),hEdgeCount:W,vEdge:null,vEdgeCount:0,hLineAt:j.zero,vLineAt:d===\"r\"?I.x+I.w:I.x,hWrap:O,hBand:j.band,depth:z},B=[];if(B.push(...or(e,I)),z&&B.push(...Vd(I,z,e.textColor)),B.push(...as(e,V,s)),y&&F){let Y=p===\"l\"||p===\"r\";B.push(..._d(e,{rect:I,view:y,pos:se=>F.val(y.ticks[se]??0),at:Y?p===\"r\"?I.x+I.w:I.x:p===\"t\"?I.y:I.y+I.h,grid:!S.axis.majorGrid&&!!y.axis.majorGrid,depth:z},s))}let q=Y=>{let se=new Map,ue=0;for(let fe of Y)se.set(fe,ue),ue+=so(fe)?1:fe.series.length;return fe=>({base:se.get(fe)??0,total:Math.max(ue,1)})},X=(Y,se)=>{let ue=Y.groups.filter(de=>de.kind===\"bar\"),fe=q(ue);for(let de of Y.groups)de.kind===\"area\"&&B.push(...op(de,se,l));for(let de of ue)B.push(...np(de,se,fe(de),l,de.is3D?z:null));for(let de of Y.groups)de.kind===\"line\"&&B.push(...rp(de,se,l));for(let de of Y.groups)de.kind===\"stock\"&&B.push(...lp(de,se,l))},K=Ac(e,T,I,s,l,new Set([u.cat,u.val,...h?[h.val]:[]]));return B.push(...K.axes),X(u,j),h&&F&&X(h,F),B.push(...K.plots),B}function Tp(e,t,r,n,o,i,s){let l=Lc(e,t,r).axes(),a=Bi(r,Vi(e,l,{l:0,r:0,t:0,b:0}));e.plotLayout&&e.plotLayout.target===\"inner\"&&(a=hn(a,e.plotLayout,n,o));let c=Ac(e,l,a,i,s);return[...or(e,a),...c.axes,...c.plots]}function Lp(e,t,r,n,o,i){let s=r;e.plotLayout&&(s=hn(s,e.plotLayout,n,o));let l=lo(t),a=ss(l.lo,l.hi,ao(s.h,e.textSize)),c=Math.max(2,Math.min(Math.round((a.max-a.min)/a.step),12)),u=e.axes.find(m=>m.kind===\"val\"),h={rect:s,min:a.min,max:a.max,bands:c,fmt:u?.fmt??Ic(t)},f=or(e,s);for(let m of t)f.push(...mp(m,h,i));return f}function Ap(e,t,r,n,o,i){let s=r;e.plotLayout&&(s=hn(s,e.plotLayout,n,o));let l=or(e,s);for(let a of t)l.push(...pp(a,s,i));return l}function Pp(e,t,r,n,o,i){var s,l;let a=r;e.plotLayout&&(a=hn(a,e.plotLayout,n,o));let c=Pc(t),u=Math.max(c.length,((l=(s=t[0])==null?void 0:s.series[0])==null?void 0:l.vals.length)??0);if(u<3)return[us(n,o,\"\\u96F7\\u8FBE\\u56FE\\u81F3\\u5C11\\u9700\\u8981 3 \\u4E2A\\u7C7B\\u76EE\")];let h=lo(t),f=ss(Math.min(h.lo,0),h.hi,ao(Math.min(a.w,a.h),e.textSize)),m=f.max-f.min||1,d=e.textSize*4,p=Math.max(Math.min(a.w,a.h)-d,24),b=a.x+a.w/2,v=a.y+a.h/2,x={cx:b,cy:v,radius:p/2,norm:T=>Ip((T-f.min)/m),angle:T=>T*Math.PI*2/u,count:u},M=[];for(let T=f.min;T<=f.max+f.step*.5;T+=f.step)M.push(Np(T));let S=e.axes.find(T=>T.kind===\"val\"),y=e.axes.find(T=>T.kind===\"cat\"),$=Ve(e.textColor,\"rgb(255,255,255)\",.72),k=Ve(e.textColor,\"rgb(255,255,255)\",.55),A=Ge(S?.majorGrid??null,$,1)??{color:$,width:1,dash:null},L=Ge(y?.line??null,k,1)??{color:k,width:1,dash:null},P=S?.fmt??null,E=bp(x,M,i,A,L,T=>_t(T,P));for(let T of t)E.push(...xp(T,x,i));return E}var Ip=e=>Number.isFinite(e)?Math.max(0,Math.min(1,e)):0,Np=e=>Number(e.toPrecision(12));function Rp(e,t,r,n,o,i){let s=r;e.plotLayout&&(s=hn(s,e.plotLayout,n,o));let l=Math.max(Math.min(s.w,s.h),8),a={x:s.x+(s.w-l)/2,y:s.y+(s.h-l)/2,w:l,h:l},c=[];c.push(...or(e,s));for(let u of t)c.push(...u.is3D?hp(u,s,i):fp(u,a,i));return c}function or(e,t){let r=Ge(e.plotLn,null,0),n=e.plotFill&&e.plotFill.type!==\"none\"?e.plotFill:null;return!n&&!r?[]:[Qn(t,n,r)]}var Op=0,zp=e=>`${e}${(++Op).toString(36)}`,_=e=>Number.isFinite(e)?String(Math.round(e*100)/100):\"0\",La=e=>e.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\"),Nc=[1,0,0,1,0,0];function Gi(e,t){let[r,n,o,i,s,l]=e,[a,c,u,h,f,m]=t;return[a*r+u*n,c*r+h*n,a*o+u*i,c*o+h*i,a*s+u*l+f,c*s+h*l+m]}function re(e,t,r){return{x:e[0]*t+e[2]*r+e[4],y:e[1]*t+e[3]*r+e[5]}}function Aa(e){let t=Math.abs(e[0]*e[3]-e[1]*e[2]),r=Math.sqrt(t);return Number.isFinite(r)&&r>1e-9?r:1}function Fp(e){let t=Math.hypot(e[2],e[3]);return Number.isFinite(t)&&t>1e-9?t:1}var Ie=class{constructor(t,r=0,n){this.p=0,this.dv=new DataView(t.buffer,t.byteOffset,t.byteLength),this.end=Math.min(n??t.length,t.length),this.p=r}has(t){return this.p+t<=this.end}get left(){return Math.max(0,this.end-this.p)}skip(t){this.p+=t}seek(t){this.p=t}u8(){return this.has(1)?this.dv.getUint8(this.p++):(this.p+=1,0)}i16(){if(!this.has(2))return this.p+=2,0;let t=this.dv.getInt16(this.p,!0);return this.p+=2,t}u16(){if(!this.has(2))return this.p+=2,0;let t=this.dv.getUint16(this.p,!0);return this.p+=2,t}i32(){if(!this.has(4))return this.p+=4,0;let t=this.dv.getInt32(this.p,!0);return this.p+=4,t}u32(){if(!this.has(4))return this.p+=4,0;let t=this.dv.getUint32(this.p,!0);return this.p+=4,t}f32(){if(!this.has(4))return this.p+=4,0;let t=this.dv.getFloat32(this.p,!0);return this.p+=4,Number.isFinite(t)?t:0}color(){let t=this.u32();return Xi(t&255,t>>8&255,t>>16&255)}ptL(){return{x:this.i32(),y:this.i32()}}pt16(){return{x:this.i16(),y:this.i16()}}rectL(){return{l:this.i32(),t:this.i32(),r:this.i32(),b:this.i32()}}utf16(t){let r=\"\",n=t>>1;for(let o=0;o<n;o++){let i=this.u16();if(i===0){this.skip((n-o-1)*2);break}r+=String.fromCharCode(i)}return r}ansi(t){let r=\"\";for(let n=0;n<t;n++){let o=this.u8();if(o===0){this.skip(t-n-1);break}r+=String.fromCharCode(o)}return r}get pos(){return this.p}get limit(){return this.end}i8(){return this.u8()<<24>>24}i16be(){if(!this.has(2))return this.p+=2,0;let t=this.dv.getInt16(this.p,!1);return this.p+=2,t}u16be(){if(!this.has(2))return this.p+=2,0;let t=this.dv.getUint16(this.p,!1);return this.p+=2,t}u32be(){if(!this.has(4))return this.p+=4,0;let t=this.dv.getUint32(this.p,!1);return this.p+=4,t}take(t){let r=Math.max(0,Math.min(t,this.end-this.p)),n=new Uint8Array(this.dv.buffer,this.dv.byteOffset+this.p,r);return this.p+=t,n}},ki=e=>(e&255).toString(16).padStart(2,\"0\"),Xi=(e,t,r)=>`#${ki(e)}${ki(t)}${ki(r)}`,jp=1,Pa=5,Up=1,Rc=0,Dp=1,Bp=2,Hp=3,Wp=4,$t=5,fn=0,ir=1,Vp=2,Ia=3,Na=5,Zn=()=>({kind:\"pen\",style:Rc,width:1,color:\"#000000\",cap:0,join:0}),Oc=()=>({kind:\"brush\",style:fn,color:\"#ffffff\",hatch:0,href:null}),sr=()=>({kind:\"font\",height:-12,escapement:0,weight:400,italic:!1,underline:!1,strike:!1,face:\"Arial\",charset:0}),Gp=()=>({...Zn(),style:$t}),wn=e=>({kind:\"brush\",style:fn,color:e,hatch:0,href:null});function Xp(e){switch(e&255){case 0:return wn(\"#ffffff\");case 1:return wn(\"#c0c0c0\");case 2:return wn(\"#808080\");case 3:return wn(\"#404040\");case 4:return wn(\"#000000\");case 5:return{...Oc(),style:ir};case 6:return{...Zn(),color:\"#ffffff\"};case 7:return Zn();case 8:return Gp();case 10:case 11:case 12:case 13:case 14:case 16:case 17:return sr();case 18:return wn(\"#ffffff\");case 19:return Zn();default:return null}}var Yi=1,Yp=7,qp=8;function Zp(e){return{...e,pen:{...e.pen},brush:{...e.brush},font:{...e.font},world:[...e.world],winOrg:{...e.winOrg},winExt:{...e.winExt},vpOrg:{...e.vpOrg},vpExt:{...e.vpExt},pos:{...e.pos}}}var _p={2:.1,3:.01,4:25.4/100,5:25.4/1e3,6:25.4/1440},qi=class{constructor(){this.els=[],this.defs=[],this.cache=new Map,this.count=0}add(t){this.els.push(t),this.count++}def(t,r,n){let o=this.cache.get(t);if(o!==void 0)return o;let i=zp(r);return this.defs.push(n(i)),this.cache.set(t,i),i}render(t,r,n){let o=Math.max(1,t.r-t.l),i=Math.max(1,t.b-t.t),s=this.defs.length?`<defs>${this.defs.join(\"\")}</defs>`:\"\";return`<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"${_(r)}\" height=\"${_(n)}\" viewBox=\"${_(t.l)} ${_(t.t)} ${_(o)} ${_(i)}\" preserveAspectRatio=\"xMidYMid meet\">`+s+this.els.join(\"\")+\"</svg>\"}},_n=class{constructor(){this.d=[],this.started=!1}get empty(){return this.d.length===0}get data(){return this.d.join(\"\")}clear(){this.d=[],this.started=!1}move(t){We(t)&&(this.d.push(`M${_(t.x)} ${_(t.y)}`),this.started=!0)}line(t){We(t)&&(this.started?this.d.push(`L${_(t.x)} ${_(t.y)}`):this.move(t))}cubic(t,r,n){!We(t)||!We(r)||!We(n)||(this.started||this.move(t),this.d.push(`C${_(t.x)} ${_(t.y)} ${_(r.x)} ${_(r.y)} ${_(n.x)} ${_(n.y)}`))}close(){this.started&&this.d.push(\"Z\")}},We=e=>Number.isFinite(e.x)&&Number.isFinite(e.y),Kp=.5522847498307936;function yn(e,t,r,n,o,i,s){let l=[],a=i-o,c=Math.max(1,Math.ceil(Math.abs(a)/(Math.PI/2))),u=a/c,h=Kp*Math.abs(u)/(Math.PI/2)*Math.sign(u),f=o;for(let m=0;m<c;m++){let d=f+u,p=Math.cos(f),b=Math.sin(f),v=Math.cos(d),x=Math.sin(d),M={x:e+r*(p-h*b),y:t+n*(b+h*p)},S={x:e+r*(v+h*x),y:t+n*(x-h*v)},y={x:e+r*v,y:t+n*x};l.push([re(s,M.x,M.y),re(s,S.x,S.y),re(s,y.x,y.y)]),f=d}return l}var Ra=(e,t,r,n,o,i)=>re(i,e+r*Math.cos(o),t+n*Math.sin(o));function Oa(e,t,r,n,o,i){let s=r!==0?(o-e)/r:0,l=n!==0?(i-t)/n:0;return s===0&&l===0?0:Math.atan2(l,s)}var er=class{constructor(t){this.stack=[],this.objs=[],this.svg=new qi,this.path=new _n,this.inPath=!1,this.dev=t,this.dc={pen:Zn(),brush:Oc(),font:sr(),textColor:\"#000000\",bkColor:\"#ffffff\",bkMode:2,polyFill:1,textAlign:0,world:[...Nc],mapMode:Yi,winOrg:{x:0,y:0},winExt:{x:1,y:1},vpOrg:{x:0,y:0},vpExt:{x:1,y:1},clip:null,pos:{x:0,y:0}}}get drawn(){return this.svg.count}xf(){let t=this.dc,r,n,o=_p[t.mapMode];if(t.mapMode===Yi)r=1,n=1;else if(o!==void 0)r=o*this.dev.pxPerMmX,n=-o*this.dev.pxPerMmY;else if(r=t.winExt.x!==0?t.vpExt.x/t.winExt.x:1,n=t.winExt.y!==0?t.vpExt.y/t.winExt.y:1,t.mapMode===Yp){let s=Math.min(Math.abs(r),Math.abs(n));r=s*Math.sign(r||1),n=s*Math.sign(n||1)}(!Number.isFinite(r)||r===0)&&(r=1),(!Number.isFinite(n)||n===0)&&(n=1);let i=[r,0,0,n,t.vpOrg.x-t.winOrg.x*r,t.vpOrg.y-t.winOrg.y*n];return Gi(t.world,i)}tp(t,r){return re(this.xf(),t,r)}save(){this.stack.push(Zp(this.dc))}restore(t=-1){if(!this.stack.length)return;let r=t<0?-t:Math.max(1,this.stack.length-t);r=Math.min(r,this.stack.length);let n;for(let o=0;o<r;o++)n=this.stack.pop();n&&(this.dc=n)}putObj(t,r){t<0||t>65535||(this.objs[t]=r)}addObj(t){for(let r=0;r<this.objs.length;r++)if(!this.objs[r]){this.objs[r]=t;return}this.objs.length<65536&&this.objs.push(t)}delObj(t){t>=0&&t<this.objs.length&&(this.objs[t]=null)}selectIdx(t){let r=t&2147483648||(t&4294934528)===32768?Xp(t):this.objs[t]??null;r&&this.select(r)}select(t){t.kind===\"pen\"?this.dc.pen=t:t.kind===\"brush\"?this.dc.brush=t:this.dc.font=t}intersectClip(t){let r=this.xf(),n=[re(r,t.l,t.t),re(r,t.r,t.t),re(r,t.r,t.b),re(r,t.l,t.b)];if(n.some(l=>!We(l)))return;let o=`M${_(n[0].x)} ${_(n[0].y)}L${_(n[1].x)} ${_(n[1].y)}L${_(n[2].x)} ${_(n[2].y)}L${_(n[3].x)} ${_(n[3].y)}Z`,i=this.dc.clip,s=`clip:${o}|${i??\"\"}`;this.dc.clip=this.svg.def(s,\"c\",l=>`<clipPath id=\"${l}\"${i?` clip-path=\"url(#${i})\"`:\"\"}><path d=\"${o}\"/></clipPath>`)}clearClip(){this.dc.clip=null}setClipRects(t,r){let n=this.xf(),o=[];for(let a of t){let c=re(n,a.l,a.t),u=re(n,a.r,a.b);if(!We(c)||!We(u))continue;let h=Math.min(c.x,u.x),f=Math.min(c.y,u.y),m=Math.abs(u.x-c.x),d=Math.abs(u.y-c.y);!(m>0)||!(d>0)||o.push(`<rect x=\"${_(h)}\" y=\"${_(f)}\" width=\"${_(m)}\" height=\"${_(d)}\"/>`)}if(!o.length)return;let i=r?this.dc.clip:null,s=o.join(\"\"),l=`rgn:${s}|${i??\"\"}`;this.dc.clip=this.svg.def(l,\"c\",a=>`<clipPath id=\"${a}\"${i?` clip-path=\"url(#${i})\"`:\"\"}>${s}</clipPath>`)}clipAttr(){return this.dc.clip?` clip-path=\"url(#${this.dc.clip})\"`:\"\"}strokeAttrs(){let t=this.dc.pen;if(t.style===$t)return' stroke=\"none\"';let r=Math.max(t.width,0)*Aa(this.xf()),n=r<.75?.75:r,o=` stroke=\"${t.color}\" stroke-width=\"${_(n)}\"`,i=Qp(t.style,n);return i&&(o+=` stroke-dasharray=\"${i}\"`),i?o+=' stroke-linecap=\"butt\"':t.cap===256?o+=' stroke-linecap=\"square\"':t.cap===512?o+=' stroke-linecap=\"butt\"':t.cap===0&&(o+=' stroke-linecap=\"round\"'),t.join===4096?o+=' stroke-linejoin=\"bevel\"':t.join===8192?o+=' stroke-linejoin=\"miter\"':t.join===0&&(o+=' stroke-linejoin=\"round\"'),o}fillAttrs(){let t=this.dc.brush;if(t.style===ir)return' fill=\"none\"';if(t.style===Vp){let r=this.dc.bkMode===2?this.dc.bkColor:\"none\",n=`h:${t.hatch}:${t.color}:${r}`;return` fill=\"url(#${this.svg.def(n,\"h\",o=>Jp(o,t.hatch,t.color,r))})\"`}if((t.style===Ia||t.style===Na)&&t.href){let r=`p:${t.href.length}:${t.href.slice(-32)}`;return` fill=\"url(#${this.svg.def(r,\"q\",n=>`<pattern id=\"${n}\" width=\"16\" height=\"16\" patternUnits=\"userSpaceOnUse\"><image xlink:href=\"${t.href}\" width=\"16\" height=\"16\" preserveAspectRatio=\"none\"/></pattern>`)})\"`}return t.style===Ia||t.style===Na?` fill=\"${t.color}\"`:` fill=\"${t.color}\"`}ruleAttr(){return this.dc.polyFill===1?' fill-rule=\"evenodd\"':\"\"}emit(t,r){if(!t)return;let n=r===\"stroke\"?' fill=\"none\"':this.fillAttrs()+this.ruleAttr(),o=r===\"fill\"?' stroke=\"none\"':this.strokeAttrs();this.svg.add(`<path d=\"${t}\"${n}${o}${this.clipAttr()}/>`)}draw(t,r){if(this.inPath){t(this.path);return}let n=new _n;t(n),this.emit(n.data,r)}beginPath(){this.path.clear(),this.inPath=!0}endPath(){this.inPath=!1}abortPath(){this.path.clear(),this.inPath=!1}closeFigure(){this.path.close()}finishPath(t){this.inPath=!1,this.emit(this.path.data,t),this.path.clear()}clipToPath(){let t=this.path.data;if(this.inPath=!1,!t)return;let r=this.dc.clip;this.dc.clip=this.svg.def(`clipP:${t}|${r??\"\"}`,\"c\",n=>`<clipPath id=\"${n}\"${r?` clip-path=\"url(#${r})\"`:\"\"}><path d=\"${t}\"/></clipPath>`),this.path.clear()}moveTo(t,r){this.dc.pos={x:t,y:r},this.inPath&&this.path.move(this.tp(t,r))}lineTo(t,r){let n=this.xf(),o=re(n,this.dc.pos.x,this.dc.pos.y),i=re(n,t,r);this.inPath?this.path.line(i):this.emit(`M${_(o.x)} ${_(o.y)}L${_(i.x)} ${_(i.y)}`,\"stroke\"),this.dc.pos={x:t,y:r}}polyline(t,r){if(t.length<2)return;let n=this.xf(),o=t.map(s=>re(n,s.x,s.y));this.draw(s=>{s.move(o[0]);for(let l=1;l<o.length;l++)s.line(o[l]);r&&s.close()},r?\"both\":\"stroke\");let i=t[t.length-1];this.dc.pos={x:i.x,y:i.y}}polylineTo(t){if(!t.length)return;let r=this.xf();if(this.inPath)for(let o of t)this.path.line(re(r,o.x,o.y));else{let o=re(r,this.dc.pos.x,this.dc.pos.y),i=`M${_(o.x)} ${_(o.y)}`;for(let s of t){let l=re(r,s.x,s.y);i+=`L${_(l.x)} ${_(l.y)}`}this.emit(i,\"stroke\")}let n=t[t.length-1];this.dc.pos={x:n.x,y:n.y}}polyBezier(t,r){let n=this.xf(),o=t.map(s=>re(n,s.x,s.y)),i=s=>{let l=0;if(r)this.inPath||s.move(re(n,this.dc.pos.x,this.dc.pos.y));else{if(!o.length)return;s.move(o[0]),l=1}for(;l+2<o.length;l+=3)s.cubic(o[l],o[l+1],o[l+2])};if(this.inPath)i(this.path);else{let s=new _n;i(s),this.emit(s.data,\"stroke\")}if(t.length){let s=t[t.length-1];this.dc.pos={x:s.x,y:s.y}}}polyPoly(t,r){let n=this.xf();this.draw(o=>{for(let i of t)if(!(i.length<2)){o.move(re(n,i[0].x,i[0].y));for(let s=1;s<i.length;s++)o.line(re(n,i[s].x,i[s].y));r&&o.close()}},r?\"both\":\"stroke\")}rect(t){let r=this.xf();if(!this.inPath&&r[1]===0&&r[2]===0){let o=re(r,t.l,t.t),i=re(r,t.r,t.b);if(We(o)&&We(i)){let s=Math.abs(i.x-o.x),l=Math.abs(i.y-o.y);this.svg.add(`<rect x=\"${_(Math.min(o.x,i.x))}\" y=\"${_(Math.min(o.y,i.y))}\" width=\"${_(s)}\" height=\"${_(l)}\"${this.fillAttrs()}${this.strokeAttrs()}${this.clipAttr()}/>`);return}}let n=[re(r,t.l,t.t),re(r,t.r,t.t),re(r,t.r,t.b),re(r,t.l,t.b)];this.draw(o=>{o.move(n[0]),o.line(n[1]),o.line(n[2]),o.line(n[3]),o.close()},\"both\")}ellipse(t){let r=this.xf(),n=(t.l+t.r)/2,o=(t.t+t.b)/2,i=Math.abs(t.r-t.l)/2,s=Math.abs(t.b-t.t)/2;this.draw(l=>{l.move(Ra(n,o,i,s,0,r));for(let a of yn(n,o,i,s,0,Math.PI*2,r))l.cubic(a[0],a[1],a[2]);l.close()},\"both\")}roundRect(t,r,n){let o=this.xf(),i=Math.min(t.l,t.r),s=Math.min(t.t,t.b),l=Math.max(t.l,t.r),a=Math.max(t.t,t.b),c=Math.min(Math.abs(r)/2,(l-i)/2),u=Math.min(Math.abs(n)/2,(a-s)/2);if(c<=0||u<=0){this.rect(t);return}this.draw(h=>{h.move(re(o,i+c,s)),h.line(re(o,l-c,s));for(let f of yn(l-c,s+u,c,u,-Math.PI/2,0,o))h.cubic(f[0],f[1],f[2]);h.line(re(o,l,a-u));for(let f of yn(l-c,a-u,c,u,0,Math.PI/2,o))h.cubic(f[0],f[1],f[2]);h.line(re(o,i+c,a));for(let f of yn(i+c,a-u,c,u,Math.PI/2,Math.PI,o))h.cubic(f[0],f[1],f[2]);h.line(re(o,i,s+u));for(let f of yn(i+c,s+u,c,u,Math.PI,Math.PI*1.5,o))h.cubic(f[0],f[1],f[2]);h.close()},\"both\")}arc(t,r,n,o,i,s,l=!1){let a=this.xf(),c=(t.l+t.r)/2,u=(t.t+t.b)/2,h=Math.abs(t.r-t.l)/2,f=Math.abs(t.b-t.t)/2;if(h<=0||f<=0)return;let m=Oa(c,u,h,f,r,n),d=Oa(c,u,h,f,o,i),p=m-d;for(;p<=0;)p+=Math.PI*2;d=m-p;let b=s===\"arc\"?\"stroke\":\"both\";this.draw(x=>{let M=Ra(c,u,h,f,m,a);s===\"pie\"?(x.move(re(a,c,u)),x.line(M)):l&&this.inPath?x.line(M):x.move(M);for(let S of yn(c,u,h,f,m,d,a))x.cubic(S[0],S[1],S[2]);s!==\"arc\"&&x.close()},b);let v={x:c+h*Math.cos(d),y:u+f*Math.sin(d)};this.dc.pos=v}polyDraw(t,r){let n=this.xf(),o=Math.min(t.length,r.length);this.draw(i=>{for(let s=0;s<o;s++){let l=r[s]&6;l===4&&s+2<o?(i.cubic(re(n,t[s].x,t[s].y),re(n,t[s+1].x,t[s+1].y),re(n,t[s+2].x,t[s+2].y)),s+=2):l===6?i.move(re(n,t[s].x,t[s].y)):i.line(re(n,t[s].x,t[s].y)),r[s]&1&&i.close()}},\"stroke\"),o&&(this.dc.pos={x:t[o-1].x,y:t[o-1].y})}text(t,r,n,o,i){if(!n)return;let s=this.xf(),l=re(s,t,r);if(!We(l))return;let a=this.dc.font,c=(a.height<0?-a.height:a.height*.87)*Fp(s);if(!(c>0)||!Number.isFinite(c))return;if(i&&this.dc.bkMode===2){let d=re(s,i.l,i.t),p=re(s,i.r,i.b);We(d)&&We(p)&&this.svg.add(`<rect x=\"${_(Math.min(d.x,p.x))}\" y=\"${_(Math.min(d.y,p.y))}\" width=\"${_(Math.abs(p.x-d.x))}\" height=\"${_(Math.abs(p.y-d.y))}\" fill=\"${this.dc.bkColor}\"${this.clipAttr()}/>`)}let u=this.dc.textAlign,h=(u&6)===2?\"end\":(u&6)===6?\"middle\":\"start\",f=(u&24)===24?\"\":(u&24)===8?\"text-after-edge\":\"text-before-edge\",m=` x=\"${_(l.x)}\" y=\"${_(l.y)}\"`;if(a.escapement&&(m+=` transform=\"rotate(${_(-a.escapement/10)} ${_(l.x)} ${_(l.y)})\"`),m+=` font-family=\"${La(e1(a.face))}\" font-size=\"${_(c)}\" fill=\"${this.dc.textColor}\"`,a.weight>=600&&(m+=` font-weight=\"${a.weight}\"`),a.italic&&(m+=' font-style=\"italic\"'),a.underline&&a.strike?m+=' text-decoration=\"underline line-through\"':a.underline?m+=' text-decoration=\"underline\"':a.strike&&(m+=' text-decoration=\"line-through\"'),h!==\"start\"&&(m+=` text-anchor=\"${h}\"`),f&&(m+=` dominant-baseline=\"${f}\"`),o&&o.length){let d=0;for(let b of o)d+=b;let p=d*Aa(s);p>0&&Number.isFinite(p)&&(m+=` textLength=\"${_(p)}\" lengthAdjust=\"spacingAndGlyphs\"`)}this.svg.add(`<text${m} xml:space=\"preserve\"${this.clipAttr()}>${La(n)}</text>`)}image(t,r){let n=this.xf(),o=t.r-t.l,i=t.b-t.t,s=re(n,t.l,t.t),l=re(n,t.l+o,t.t+i);if(!We(s)||!We(l))return;let a=Math.min(s.x,l.x),c=Math.min(s.y,l.y),u=Math.abs(l.x-s.x),h=Math.abs(l.y-s.y);!(u>0)||!(h>0)||this.svg.add(`<image x=\"${_(a)}\" y=\"${_(c)}\" width=\"${_(u)}\" height=\"${_(h)}\" preserveAspectRatio=\"none\" xlink:href=\"${r}\"${this.clipAttr()}/>`)}render(t,r,n){return this.svg.render(t,r,n)}};function Qp(e,t){let r=Math.max(t,1);switch(e){case Dp:return`${_(r*6)} ${_(r*3)}`;case Bp:return`${_(r)} ${_(r*3)}`;case Hp:return`${_(r*6)} ${_(r*3)} ${_(r)} ${_(r*3)}`;case Wp:return`${_(r*6)} ${_(r*3)} ${_(r)} ${_(r*3)} ${_(r)} ${_(r*3)}`;default:return\"\"}}var za={0:\"M0 4H8\",1:\"M4 0V8\",2:\"M0 0L8 8\",3:\"M0 8L8 0\",4:\"M0 4H8M4 0V8\",5:\"M0 0L8 8M0 8L8 0\"};function Jp(e,t,r,n){let o=za[t]??za[0],i=n===\"none\"?\"\":`<rect width=\"8\" height=\"8\" fill=\"${n}\"/>`;return`<pattern id=\"${e}\" width=\"8\" height=\"8\" patternUnits=\"userSpaceOnUse\">${i}<path d=\"${o}\" stroke=\"${r}\" stroke-width=\"1\" fill=\"none\"/></pattern>`}var Fa=\", 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif\";function e1(e){let t=e.trim();return t?/^(symbol|wingdings|webdings)/i.test(t)?`'${t}'`:`'${t}'${Fa}`:`Arial${Fa}`}var t1={0:\"windows-1252\",1:\"windows-1252\",2:\"windows-1252\",77:\"macintosh\",128:\"shift_jis\",129:\"euc-kr\",130:\"euc-kr\",134:\"gbk\",136:\"big5\",161:\"windows-1253\",162:\"windows-1254\",163:\"windows-1258\",177:\"windows-1255\",178:\"windows-1256\",186:\"windows-1257\",204:\"windows-1251\",222:\"windows-874\",238:\"windows-1250\"};function Zi(e,t){let r=t1[t];if(r&&typeof TextDecoder<\"u\")try{return new TextDecoder(r,{fatal:!1}).decode(e).replace(/\\0+$/,\"\")}catch{}let n=\"\";for(let o=0;o<e.length&&e[o]!==0;o++)n+=String.fromCharCode(e[o]);return n}var At=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";function tr(e){let t=\"\",r=0;for(;r+2<e.length;r+=3){let o=e[r]<<16|e[r+1]<<8|e[r+2];t+=At[o>>18&63]+At[o>>12&63]+At[o>>6&63]+At[o&63]}let n=e.length-r;if(n===1){let o=e[r]<<16;t+=At[o>>18&63]+At[o>>12&63]+\"==\"}else if(n===2){let o=e[r]<<16|e[r+1]<<8;t+=At[o>>18&63]+At[o>>12&63]+At[o>>6&63]+\"=\"}return t}var Ci=null;function n1(e){if(!Ci){let r=new Int32Array(256);for(let n=0;n<256;n++){let o=n;for(let i=0;i<8;i++)o=o&1?3988292384^o>>>1:o>>>1;r[n]=o}Ci=r}let t=-1;for(let r=0;r<e.length;r++)t=Ci[(t^e[r])&255]^t>>>8;return(t^-1)>>>0}function Si(e,t){let r=new Uint8Array(t.length+12),n=new DataView(r.buffer);n.setUint32(0,t.length);for(let o=0;o<4;o++)r[4+o]=e.charCodeAt(o);return r.set(t,8),n.setUint32(t.length+8,n1(r.subarray(4,t.length+8))),r}function zc(e,t,r){let n=new Uint8Array(r*(t*4+1));for(let u=0;u<r;u++)n[u*(t*4+1)]=0,n.set(e.subarray(u*t*4,(u+1)*t*4),u*(t*4+1)+1);let o=new Uint8Array(13),i=new DataView(o.buffer);i.setUint32(0,t),i.setUint32(4,r),o[8]=8,o[9]=6;let s=[new Uint8Array([137,80,78,71,13,10,26,10]),Si(\"IHDR\",o),Si(\"IDAT\",Tl(n,{level:6})),Si(\"IEND\",new Uint8Array(0))],l=0;for(let u of s)l+=u.length;let a=new Uint8Array(l),c=0;for(let u of s)a.set(u,c),c+=u.length;return a}var r1=8192*8192;function Ei(e){if(!e)return{shift:0,scale:0};let t=0,r=e;for(;!(r&1);)r>>>=1,t++;let n=0;for(;r&1;)r>>>=1,n++;return{shift:t,scale:n>0?255/((1<<n)-1):0}}function o1(e,t,r,n,o,i){if(!(n>0)||!(o>0))return null;let s=new Uint8Array(n*o),l=t,a=Math.min(e.length,t+r),c=0,u=o-1,h=f=>{c>=0&&c<n&&u>=0&&u<o&&(s[u*n+c]=f),c++};for(;l+1<a&&u>=0;){let f=e[l++],m=e[l++];if(f>0){if(i){let d=m>>4&15,p=m&15;for(let b=0;b<f;b++)h(b%2===0?d:p)}else for(let d=0;d<f;d++)h(m);continue}if(m===0){c=0,u--;continue}if(m===1)break;if(m===2){if(l+1>=a)break;c+=e[l++],u-=e[l++];continue}if(i){let d=m+1>>1;if(l+d>a)break;for(let p=0;p<m;p++){let b=e[l+(p>>1)];h(p%2===0?b>>4&15:b&15)}l+=d+(d&1)}else{if(l+m>a)break;for(let d=0;d<m;d++)h(e[l+d]);l+=m+(m&1)}}return s}function i1(e,t,r,n,o){if(t<0||r<12||t+12>e.length)return null;let i=new Ie(e,t,Math.min(e.length,t+Math.max(r,12))),s=i.u32(),l,a,c,u=0,h=0,f=!1;if(s===12)f=!0,l=i.i16(),a=i.i16(),i.u16(),c=i.u16();else if(s>=16)l=i.i32(),a=i.i32(),i.u16(),c=i.u16(),s>=24&&(u=i.u32(),i.u32()),s>=36&&(i.u32(),i.u32(),h=i.u32());else return null;let m=a<0;if(a=Math.abs(a),!(l>0)||!(a>0)||l*a>r1||u===4||u===5)return null;let d=u===1,p=u===2;if(u!==0&&u!==3&&!d&&!p||d&&c!==8||p&&c!==4||![1,4,8,16,24,32].includes(c))return null;let b=0,v=0,x=0;if(u===3){let I=new Ie(e,t+s,e.length);b=I.u32(),v=I.u32(),x=I.u32()}else c===16?(b=31744,v=992,x=31):c===32&&(b=16711680,v=65280,x=255);let M=null;if(c<=8){let I=h>0?Math.min(h,1<<c):1<<c,O=f?3:4,R=t+s+(u===3?12:0);M=new Uint8Array(I*3);let z=new Ie(e,R,e.length);for(let j=0;j<I;j++){let F=z.u8(),W=z.u8(),V=z.u8();O===4&&z.u8(),M[j*3]=V,M[j*3+1]=W,M[j*3+2]=F}}let S=l*c+31>>5<<2,y=n,$=Math.min(o>0?o:e.length-y,e.length-y);if(y<0||y>=e.length)return null;if(d||p){let I=o1(e,y,$,l,a,p);if(!I)return null;let O=new Uint8Array(l*a*4);for(let R=0;R<I.length;R++){let z=I[R]*3,j=R*4;M&&z+2<M.length&&(O[j]=M[z],O[j+1]=M[z+1],O[j+2]=M[z+2]),O[j+3]=255}return{w:l,h:a,rgba:O}}if($<S)return null;let k=Math.min(a,Math.floor($/S));if(k<=0)return null;let A=new Uint8Array(l*a*4),L=Ei(b),P=Ei(v),E=Ei(x),T=!1;for(let I=0;I<k;I++){let O=m?I:a-1-I,R=y+I*S,z=O*l*4;for(let j=0;j<l;j++){let F=0,W=0,V=0,B=255;if(c===24)V=e[R],W=e[R+1],F=e[R+2],R+=3;else if(c===32){let q=e[R]|e[R+1]<<8|e[R+2]<<16|e[R+3]<<24;F=L.scale?((q&b)>>>L.shift)*L.scale:0,W=P.scale?((q&v)>>>P.shift)*P.scale:0,V=E.scale?((q&x)>>>E.shift)*E.scale:0,B=e[R+3],B!==0&&(T=!0),R+=4}else if(c===16){let q=e[R]|e[R+1]<<8;F=((q&b)>>>L.shift)*L.scale,W=((q&v)>>>P.shift)*P.scale,V=((q&x)>>>E.shift)*E.scale,R+=2}else{let q=j*c,X=e[y+I*S+(q>>3)]??0,K=c===8?X:c===4?q%8===0?X>>4:X&15:X>>7-(q&7)&1,Y=K*3;M&&Y+2<M.length?(F=M[Y],W=M[Y+1],V=M[Y+2]):F=W=V=K?255:0}A[z]=F|0,A[z+1]=W|0,A[z+2]=V|0,A[z+3]=B,z+=4}}if(c===32&&!T)for(let I=3;I<A.length;I+=4)A[I]=255;return{w:l,h:a,rgba:A}}function lr(e,t,r,n,o){try{if(t>=0&&t+20<=e.length){let s=new Ie(e,t,e.length);if(s.u32()>=24){s.skip(12);let l=s.u32();if((l===4||l===5)&&o>0&&n+o<=e.length)return`data:${l===4?\"image/jpeg\":\"image/png\"};base64,${tr(e.subarray(n,n+o))}`}}let i=i1(e,t,r,n,o);return i?`data:image/png;base64,${tr(zc(i.rgba,i.w,i.h))}`:null}catch{return null}}function Fc(e,t){if(t+4>e.length)return 0;let r=new Ie(e,t,e.length),n=r.u32();if(n===12){r.skip(4);let l=new Ie(e,t+10,e.length).u16();return 12+(l<=8?(1<<l)*3:0)}if(n<16||n>200)return 0;let o=new Ie(e,t+14,e.length).u16(),i=n>=20?new Ie(e,t+16,e.length).u32():0,s=n>=36?new Ie(e,t+32,e.length).u32():0;return o<=8?s=s>0?Math.min(s,1<<o):1<<o:s=0,n+(i===3?12:0)+s*4}var s1=1179469088,l1=1e5,Z={HEADER:1,POLYBEZIER:2,POLYGON:3,POLYLINE:4,POLYBEZIERTO:5,POLYLINETO:6,POLYPOLYLINE:7,POLYPOLYGON:8,SETWINDOWEXTEX:9,SETWINDOWORGEX:10,SETVIEWPORTEXTEX:11,SETVIEWPORTORGEX:12,EOF:14,SETPIXELV:15,SETMAPMODE:17,SETBKMODE:18,SETPOLYFILLMODE:19,SETTEXTALIGN:22,SETTEXTCOLOR:24,SETBKCOLOR:25,MOVETOEX:27,INTERSECTCLIPRECT:30,SCALEVIEWPORTEXTEX:31,SCALEWINDOWEXTEX:32,SAVEDC:33,RESTOREDC:34,SETWORLDTRANSFORM:35,MODIFYWORLDTRANSFORM:36,SELECTOBJECT:37,CREATEPEN:38,CREATEBRUSHINDIRECT:39,DELETEOBJECT:40,ELLIPSE:42,RECTANGLE:43,ROUNDRECT:44,ARC:45,CHORD:46,PIE:47,LINETO:54,ARCTO:55,POLYDRAW:56,BEGINPATH:59,ENDPATH:60,CLOSEFIGURE:61,FILLPATH:62,STROKEANDFILLPATH:63,STROKEPATH:64,SELECTCLIPPATH:67,ABORTPATH:68,EXTSELECTCLIPRGN:75,BITBLT:76,STRETCHBLT:77,STRETCHDIBITS:81,EXTCREATEFONTINDIRECTW:82,EXTTEXTOUTA:83,EXTTEXTOUTW:84,POLYBEZIER16:85,POLYGON16:86,POLYLINE16:87,POLYBEZIERTO16:88,POLYLINETO16:89,POLYPOLYLINE16:90,POLYPOLYGON16:91,POLYDRAW16:92,CREATEMONOBRUSH:93,CREATEDIBPATTERNBRUSHPT:94,EXTCREATEPEN:95};function jc(e){if(e.length<88)return!1;let t=new DataView(e.buffer,e.byteOffset,e.byteLength);return t.getUint32(0,!0)===1&&t.getUint32(40,!0)===s1}function a1(e,t={}){try{return c1(e,t)}catch{return null}}function c1(e,t){if(!jc(e))return null;let r=new Ie(e,0,e.length);r.skip(8);let n=r.rectL(),o=r.rectL();r.skip(16),r.skip(16);let i=r.i32(),s=r.i32(),l=r.i32(),a=r.i32(),c=l>0&&i>0?i/l:96/25.4,u=a>0&&s>0?s/a:96/25.4,h=new er({pxPerMmX:c,pxPerMmY:u}),f=n;if(!(f.r>f.l)||!(f.b>f.t)){let M=Math.round((o.r-o.l)*c/100),S=Math.round((o.b-o.t)*u/100);f={l:0,t:0,r:M>0?M:1024,b:S>0?S:768}}f={l:f.l,t:f.t,r:f.r+1,b:f.b+1};let m=(o.r-o.l)*96/2540,d=(o.b-o.t)*96/2540,p=t.width??(m>0?m:f.r-f.l),b=t.height??(d>0?d:f.b-f.t);h.dc.mapMode=Yi;let v=0,x=0;for(;v+8<=e.length&&x<l1;){let M=new DataView(e.buffer,e.byteOffset,e.byteLength),S=M.getUint32(v,!0),y=M.getUint32(v+4,!0);if(y<8||y%4!==0||v+y>e.length||S===Z.EOF)break;S!==Z.HEADER&&u1(h,e,S,v,y),v+=y,x++}return h.render(f,p,b)}function u1(e,t,r,n,o){let i=new Ie(t,n+8,n+o);switch(r){case Z.POLYGON:e.polyline(Hn(i),!0);break;case Z.POLYLINE:e.polyline(Hn(i),!1);break;case Z.POLYBEZIER:e.polyBezier(Hn(i),!1);break;case Z.POLYLINETO:e.polylineTo(Hn(i));break;case Z.POLYBEZIERTO:e.polyBezier(Hn(i),!0);break;case Z.POLYGON16:e.polyline(Wn(i),!0);break;case Z.POLYLINE16:e.polyline(Wn(i),!1);break;case Z.POLYBEZIER16:e.polyBezier(Wn(i),!1);break;case Z.POLYLINETO16:e.polylineTo(Wn(i));break;case Z.POLYBEZIERTO16:e.polyBezier(Wn(i),!0);break;case Z.POLYPOLYGON:e.polyPoly(Nr(i,!1),!0);break;case Z.POLYPOLYLINE:e.polyPoly(Nr(i,!1),!1);break;case Z.POLYPOLYGON16:e.polyPoly(Nr(i,!0),!0);break;case Z.POLYPOLYLINE16:e.polyPoly(Nr(i,!0),!1);break;case Z.POLYDRAW:case Z.POLYDRAW16:{i.skip(16);let s=Cn(i.i32()),l=[];for(let c=0;c<s;c++)l.push(r===Z.POLYDRAW?i.ptL():i.pt16());let a=[];for(let c=0;c<s;c++)a.push(i.u8());e.polyDraw(l,a);break}case Z.RECTANGLE:e.rect(i.rectL());break;case Z.ELLIPSE:e.ellipse(i.rectL());break;case Z.ROUNDRECT:{let s=i.rectL();e.roundRect(s,i.i32(),i.i32());break}case Z.ARC:case Z.CHORD:case Z.PIE:case Z.ARCTO:{let s=i.rectL(),l=i.ptL(),a=i.ptL(),c=r===Z.CHORD?\"chord\":r===Z.PIE?\"pie\":\"arc\";e.arc(s,l.x,l.y,a.x,a.y,c,r===Z.ARCTO);break}case Z.MOVETOEX:{let s=i.ptL();e.moveTo(s.x,s.y);break}case Z.LINETO:{let s=i.ptL();e.lineTo(s.x,s.y);break}case Z.SETPIXELV:{let s=i.ptL(),l=i.color();e.dc.brush={kind:\"brush\",style:fn,color:l,hatch:0,href:null},e.dc.pen={...e.dc.pen,style:$t},e.rect({l:s.x,t:s.y,r:s.x+1,b:s.y+1});break}case Z.BEGINPATH:e.beginPath();break;case Z.ENDPATH:e.endPath();break;case Z.CLOSEFIGURE:e.closeFigure();break;case Z.FILLPATH:e.finishPath(\"fill\");break;case Z.STROKEPATH:e.finishPath(\"stroke\");break;case Z.STROKEANDFILLPATH:e.finishPath(\"both\");break;case Z.ABORTPATH:e.abortPath();break;case Z.SELECTCLIPPATH:e.clipToPath();break;case Z.CREATEPEN:{let s=i.i32();e.putObj(s,f1(i));break}case Z.EXTCREATEPEN:{let s=i.i32();e.putObj(s,d1(i));break}case Z.CREATEBRUSHINDIRECT:{let s=i.i32();e.putObj(s,p1(i));break}case Z.CREATEMONOBRUSH:case Z.CREATEDIBPATTERNBRUSHPT:{let s=i.i32();e.putObj(s,m1(i,t,n));break}case Z.EXTCREATEFONTINDIRECTW:{let s=i.i32();e.putObj(s,g1(i));break}case Z.SELECTOBJECT:e.selectIdx(i.u32());break;case Z.DELETEOBJECT:e.delObj(i.u32());break;case Z.SETWORLDTRANSFORM:e.dc.world=ja(i);break;case Z.MODIFYWORLDTRANSFORM:{let s=ja(i),l=i.u32();l===1?e.dc.world=[...Nc]:l===2?e.dc.world=Gi(s,e.dc.world):l===3&&(e.dc.world=Gi(e.dc.world,s));break}case Z.SETWINDOWEXTEX:e.dc.winExt={x:i.i32(),y:i.i32()};break;case Z.SETWINDOWORGEX:e.dc.winOrg=i.ptL();break;case Z.SETVIEWPORTEXTEX:e.dc.vpExt={x:i.i32(),y:i.i32()};break;case Z.SETVIEWPORTORGEX:e.dc.vpOrg=i.ptL();break;case Z.SETMAPMODE:e.dc.mapMode=i.u32();break;case Z.SCALEVIEWPORTEXTEX:{let s=i.i32(),l=i.i32(),a=i.i32(),c=i.i32();l&&(e.dc.vpExt.x=e.dc.vpExt.x*s/l),c&&(e.dc.vpExt.y=e.dc.vpExt.y*a/c);break}case Z.SCALEWINDOWEXTEX:{let s=i.i32(),l=i.i32(),a=i.i32(),c=i.i32();l&&(e.dc.winExt.x=e.dc.winExt.x*s/l),c&&(e.dc.winExt.y=e.dc.winExt.y*a/c);break}case Z.SAVEDC:e.save();break;case Z.RESTOREDC:e.restore(i.i32());break;case Z.SETBKMODE:e.dc.bkMode=i.u32();break;case Z.SETPOLYFILLMODE:e.dc.polyFill=i.u32();break;case Z.SETTEXTALIGN:e.dc.textAlign=i.u32();break;case Z.SETTEXTCOLOR:e.dc.textColor=i.color();break;case Z.SETBKCOLOR:e.dc.bkColor=i.color();break;case Z.INTERSECTCLIPRECT:e.intersectClip(i.rectL());break;case Z.EXTSELECTCLIPRGN:b1(e,i);break;case Z.EXTTEXTOUTW:case Z.EXTTEXTOUTA:x1(e,i,t,n,o,r===Z.EXTTEXTOUTW);break;case Z.STRETCHDIBITS:v1(e,i,t,n);break;case Z.BITBLT:case Z.STRETCHBLT:w1(e,i,t,n,r===Z.STRETCHBLT);break}}var h1=1<<20,Cn=e=>e>0&&e<h1?e|0:0;function Hn(e){e.skip(16);let t=Math.min(Cn(e.i32()),e.left>>3),r=[];for(let n=0;n<t;n++)r.push(e.ptL());return r}function Wn(e){e.skip(16);let t=Math.min(Cn(e.i32()),e.left>>2),r=[];for(let n=0;n<t;n++)r.push(e.pt16());return r}function Nr(e,t){e.skip(16);let r=Cn(e.i32()),n=Cn(e.i32());if(!r||!n||r>n)return[];let o=[],i=0;for(let c=0;c<r;c++){let u=Cn(e.i32());o.push(u),i+=u}if(i>n)return[];let s=t?e.left>>2:e.left>>3,l=[],a=0;for(let c of o){let u=[];for(let h=0;h<c&&a<s;h++,a++)u.push(t?e.pt16():e.ptL());l.push(u)}return l}function f1(e){let t=e.u32(),r=e.i32();return e.i32(),{kind:\"pen\",style:t&15,width:Math.abs(r)||1,color:e.color(),cap:0,join:0}}function d1(e){e.skip(16);let t=e.u32(),r=e.u32(),n=e.u32(),o=e.color();return{kind:\"pen\",style:n===ir?$t:t&15,width:Math.max(r||1,1),color:o,cap:t&3840,join:t&61440}}function p1(e){let t=e.u32(),r=e.color(),n=e.u32();return{kind:\"brush\",style:t,color:r,hatch:n,href:null}}function m1(e,t,r){e.u32();let n=e.u32(),o=e.u32(),i=e.u32(),s=e.u32(),l=o>0?lr(t,r+n,o,r+i,s):null;return{kind:\"brush\",style:l?5:fn,color:\"#808080\",hatch:0,href:l}}function g1(e){let t=e.i32();e.i32();let r=e.i32();e.i32();let n=e.i32(),o=e.u8()!==0,i=e.u8()!==0,s=e.u8()!==0,l=e.u8();e.skip(4);let a=e.utf16(64),c=sr();return{kind:\"font\",height:t||c.height,escapement:r,weight:n>0?n:400,italic:o,underline:i,strike:s,charset:l,face:a||c.face}}function ja(e){return[e.f32(),e.f32(),e.f32(),e.f32(),e.f32(),e.f32()]}function b1(e,t){let r=t.u32(),n=t.u32();if(r===0){n===Pa&&e.clearClip();return}t.u32();let o=t.u32(),i=t.u32();if(t.u32(),t.rectL(),o!==Up||i<=0||i>65536)return;let s=[];for(let l=0;l<i;l++)s.push(t.rectL());n===Pa?e.setClipRects(s,!1):n===jp&&e.setClipRects(s,!0)}function x1(e,t,r,n,o,i){t.skip(16),t.u32();let s=t.f32();t.f32();let l=t.ptL(),a=t.u32(),c=t.u32(),u=t.u32(),h=t.rectL(),f=t.u32();if(!a||a>65536)return;let m=n+c,d=i?a*2:a;if(c<8||m+d>n+o)return;let p=i?new Ie(r,m,m+d).utf16(d):Zi(r.subarray(m,m+d),e.dc.font.charset);if(!p)return;let b=null,v=n+f;if(f>=8&&v+a*4<=n+o){let M=new Ie(r,v,v+a*4);b=[];for(let S=0;S<a;S++)b.push(M.i32());s>0&&s!==1&&Number.isFinite(s)&&(b=b.map(S=>S*s))}let x=u&2?h:null;e.text(l.x,l.y,p,b,x)}function v1(e,t,r,n){t.skip(16);let o=t.i32(),i=t.i32();t.i32(),t.i32(),t.i32(),t.i32();let s=t.u32(),l=t.u32(),a=t.u32(),c=t.u32();t.u32(),t.u32();let u=t.i32(),h=t.i32();if(!l||!c)return;let f=lr(r,n+s,l,n+a,c);f&&e.image({l:o,t:i,r:o+u,b:i+h},f)}function w1(e,t,r,n,o){t.skip(16);let i=t.i32(),s=t.i32(),l=t.i32(),a=t.i32();t.u32(),t.i32(),t.i32(),t.skip(24),t.u32(),t.u32();let c=t.u32(),u=t.u32(),h=t.u32(),f=t.u32();if(o&&(t.i32(),t.i32()),!u||!f)return;let m=lr(r,n+c,u,n+h,f);m&&e.image({l:i,t:s,r:i+l,b:s+a},m)}var Uc=2596720087,y1=1e5,J={EOF:0,SAVEDC:30,SETBKMODE:258,SETMAPMODE:259,SETPOLYFILLMODE:262,RESTOREDC:295,SELECTOBJECT:301,SETTEXTALIGN:302,DELETEOBJECT:496,SETBKCOLOR:513,SETTEXTCOLOR:521,SETWINDOWORG:523,SETWINDOWEXT:524,SETVIEWPORTORG:525,SETVIEWPORTEXT:526,OFFSETWINDOWORG:527,OFFSETVIEWPORTORG:529,LINETO:531,MOVETO:532,CREATEPENINDIRECT:762,CREATEFONTINDIRECT:763,CREATEBRUSHINDIRECT:764,POLYGON:804,POLYLINE:805,SCALEWINDOWEXT:1040,SCALEVIEWPORTEXT:1042,INTERSECTCLIPRECT:1046,ELLIPSE:1048,ARC:2071,RECTANGLE:1051,SETPIXEL:1055,TEXTOUT:1313,POLYPOLYGON:1336,ROUNDRECT:1564,PATBLT:1565,PIE:2074,CHORD:2096,EXTTEXTOUT:2610,DIBBITBLT:2368,DIBSTRETCHBLT:2881,STRETCHDIB:3907,CREATEPALETTE:247,CREATEBRUSH:248,CREATEPATTERNBRUSH:505,DIBCREATEPATTERNBRUSH:322,CREATEREGION:1791,CREATEBITMAP:1790,CREATEBITMAPINDIRECT:765};function Dc(e){if(e.length<20)return!1;let t=new DataView(e.buffer,e.byteOffset,e.byteLength);if(t.getUint32(0,!0)===Uc)return!0;let r=t.getUint16(0,!0),n=t.getUint16(2,!0),o=t.getUint16(4,!0);return(r===1||r===2)&&n===9&&(o===256||o===768)}function $1(e,t={}){try{return M1(e,t)}catch{return null}}function M1(e,t){if(!Dc(e))return null;let r=new DataView(e.buffer,e.byteOffset,e.byteLength),n=0,o=null,i=1440;if(r.getUint32(0,!0)===Uc&&(o={l:r.getInt16(6,!0),t:r.getInt16(8,!0),r:r.getInt16(10,!0),b:r.getInt16(12,!0)},i=r.getUint16(14,!0)||1440,n=22),n+18>e.length)return null;n+=18,(!o||!(o.r>o.l)||!(o.b>o.t))&&(o=k1(e,r,n),i=96);let s=o.r-o.l,l=o.b-o.t,a=i/25.4,c=new er({pxPerMmX:a,pxPerMmY:a});c.dc.mapMode=qp,c.dc.winOrg={x:o.l,y:o.t},c.dc.winExt={x:s,y:l},c.dc.vpOrg={x:o.l,y:o.t},c.dc.vpExt={x:s,y:l};let u=t.width??s/i*96,h=t.height??l/i*96,f=0;for(;n+6<=e.length&&f<y1;){let m=r.getUint32(n,!0),d=r.getUint16(n+4,!0);if(m<3)break;let p=m*2;if(n+p>e.length||d===J.EOF)break;C1(c,e,d,n,p),n+=p,f++}return c.render({l:o.l,t:o.t,r:o.r,b:o.b},u,h)}function k1(e,t,r){let n={x:0,y:0},o=null,i=r,s=0;for(;i+6<=e.length&&s<2e3;){let c=t.getUint32(i,!0),u=t.getUint16(i+4,!0);if(c<3||i+c*2>e.length||u===J.EOF)break;u===J.SETWINDOWORG&&c>=5&&(n={x:t.getInt16(i+8,!0),y:t.getInt16(i+6,!0)}),u===J.SETWINDOWEXT&&c>=5&&!o&&(o={x:t.getInt16(i+8,!0),y:t.getInt16(i+6,!0)}),i+=c*2,s++}let l=o?Math.abs(o.x):0,a=o?Math.abs(o.y):0;return{l:n.x,t:n.y,r:n.x+(l||1024),b:n.y+(a||768)}}function C1(e,t,r,n,o){let i=n+o,s=new Ie(t,n+6,i);switch(r){case J.POLYGON:e.polyline(Ua(s),!0);break;case J.POLYLINE:e.polyline(Ua(s),!1);break;case J.POLYPOLYGON:{let l=s.u16();if(!l||l>16384)break;let a=[];for(let u=0;u<l;u++)a.push(s.u16());let c=[];for(let u of a){let h=[];for(let f=0;f<u&&s.has(4);f++)h.push(s.pt16());c.push(h)}e.polyPoly(c,!0);break}case J.RECTANGLE:e.rect(Vn(s));break;case J.ELLIPSE:e.ellipse(Vn(s));break;case J.ROUNDRECT:{let l=s.i16(),a=s.i16();e.roundRect(Vn(s),a,l);break}case J.ARC:case J.CHORD:case J.PIE:{let l=s.i16(),a=s.i16(),c=s.i16(),u=s.i16(),h=Vn(s);e.arc(h,u,c,a,l,r===J.CHORD?\"chord\":r===J.PIE?\"pie\":\"arc\");break}case J.MOVETO:{let l=s.i16(),a=s.i16();e.moveTo(a,l);break}case J.LINETO:{let l=s.i16(),a=s.i16();e.lineTo(a,l);break}case J.SETPIXEL:{let l=s.color(),a=s.i16(),c=s.i16();e.dc.brush={kind:\"brush\",style:fn,color:l,hatch:0,href:null},e.dc.pen={...e.dc.pen,style:$t},e.rect({l:c,t:a,r:c+1,b:a+1});break}case J.PATBLT:{s.u32();let l=s.i16(),a=s.i16(),c=s.i16(),u=s.i16();e.dc.pen={...e.dc.pen,style:$t},e.rect({l:u,t:c,r:u+a,b:c+l});break}case J.CREATEPENINDIRECT:e.addObj(E1(s));break;case J.CREATEBRUSHINDIRECT:e.addObj(T1(s));break;case J.CREATEFONTINDIRECT:e.addObj(L1(s));break;case J.SELECTOBJECT:e.selectIdx(s.u16());break;case J.DELETEOBJECT:e.delObj(s.u16());break;case J.CREATEPALETTE:case J.CREATEBRUSH:case J.CREATEREGION:case J.CREATEBITMAP:case J.CREATEBITMAPINDIRECT:e.addObj({kind:\"brush\",style:ir,color:\"#000000\",hatch:0,href:null});break;case J.CREATEPATTERNBRUSH:case J.DIBCREATEPATTERNBRUSH:e.addObj(A1(t,n,o,r));break;case J.SETWINDOWORG:{let l=s.i16(),a=s.i16();e.dc.winOrg={x:a,y:l};break}case J.SETWINDOWEXT:{let l=s.i16(),a=s.i16();e.dc.winExt={x:a,y:l};break}case J.SETVIEWPORTORG:{let l=s.i16(),a=s.i16();e.dc.vpOrg={x:a,y:l};break}case J.SETVIEWPORTEXT:{let l=s.i16(),a=s.i16();e.dc.vpExt={x:a,y:l};break}case J.OFFSETWINDOWORG:{let l=s.i16(),a=s.i16();e.dc.winOrg={x:e.dc.winOrg.x+a,y:e.dc.winOrg.y+l};break}case J.OFFSETVIEWPORTORG:{let l=s.i16(),a=s.i16();e.dc.vpOrg={x:e.dc.vpOrg.x+a,y:e.dc.vpOrg.y+l};break}case J.SCALEWINDOWEXT:{let l=s.i16(),a=s.i16(),c=s.i16(),u=s.i16();c&&(e.dc.winExt.x=e.dc.winExt.x*u/c),l&&(e.dc.winExt.y=e.dc.winExt.y*a/l);break}case J.SCALEVIEWPORTEXT:{let l=s.i16(),a=s.i16(),c=s.i16(),u=s.i16();c&&(e.dc.vpExt.x=e.dc.vpExt.x*u/c),l&&(e.dc.vpExt.y=e.dc.vpExt.y*a/l);break}case J.SETMAPMODE:e.dc.mapMode=s.u16();break;case J.SAVEDC:e.save();break;case J.RESTOREDC:e.restore(s.i16());break;case J.SETBKMODE:e.dc.bkMode=s.u16();break;case J.SETBKCOLOR:e.dc.bkColor=s.color();break;case J.SETTEXTCOLOR:e.dc.textColor=s.color();break;case J.SETTEXTALIGN:e.dc.textAlign=s.u16();break;case J.SETPOLYFILLMODE:e.dc.polyFill=s.u16();break;case J.INTERSECTCLIPRECT:e.intersectClip(Vn(s));break;case J.TEXTOUT:{let l=s.u16();if(l>32768)break;let a=s.p,c=l+(l&1);s.skip(c);let u=s.i16(),h=s.i16(),f=Zi(t.subarray(a,Math.min(a+l,i)),e.dc.font.charset);e.text(h,u,f,null,null);break}case J.EXTTEXTOUT:{let l=s.i16(),a=s.i16(),c=s.u16(),u=s.u16();if(c>32768)break;let h=null;if(u&6){let b=s.i16(),v=s.i16(),x=s.i16(),M=s.i16();h={l:b,t:v,r:x,b:M}}let f=s.p,m=c+(c&1);s.skip(m);let d=null;if(s.left>=c*2&&c>0){d=[];for(let b=0;b<c;b++)d.push(s.i16())}let p=Zi(t.subarray(f,Math.min(f+c,i)),e.dc.font.charset);e.text(a,l,p,d,u&2?h:null);break}case J.STRETCHDIB:{s.u32(),s.u16(),s.i16(),s.i16(),s.i16(),s.i16();let l=s.i16(),a=s.i16(),c=s.i16(),u=s.i16();Ti(e,t,s.p,i,u,c,a,l);break}case J.DIBSTRETCHBLT:{let l=o===28;if(s.u32(),s.i16(),s.i16(),s.i16(),s.i16(),l)break;let a=s.i16(),c=s.i16(),u=s.i16(),h=s.i16();Ti(e,t,s.p,i,h,u,c,a);break}case J.DIBBITBLT:{let l=o===24;if(s.u32(),s.i16(),s.i16(),l)break;let a=s.i16(),c=s.i16(),u=s.i16(),h=s.i16();Ti(e,t,s.p,i,h,u,c,a);break}}}function Ti(e,t,r,n,o,i,s,l){if(r>=n||s===0||l===0)return;let a=Fc(t,r);if(!a)return;let c=lr(t,r,a,r+a,n-r-a);c&&e.image({l:o,t:i,r:o+s,b:i+l},c)}var S1=1<<18;function Ua(e){let t=e.u16();if(!t||t>S1)return[];let r=Math.min(t,e.left>>2),n=[];for(let o=0;o<r;o++)n.push(e.pt16());return n}function Vn(e){let t=e.i16(),r=e.i16(),n=e.i16();return{l:e.i16(),t:n,r,b:t}}function E1(e){let t=e.u16(),r=e.i16();return e.i16(),{kind:\"pen\",style:t&15,width:Math.abs(r)||1,color:e.color(),cap:t&3840,join:t&61440}}function T1(e){let t=e.u16(),r=e.color(),n=e.u16();return{kind:\"brush\",style:t,color:r,hatch:n,href:null}}function L1(e){let t=e.i16();e.i16();let r=e.i16();e.i16();let n=e.i16(),o=e.u8()!==0,i=e.u8()!==0,s=e.u8()!==0,l=e.u8();e.skip(4);let a=e.ansi(Math.min(32,e.left)),c=sr();return{kind:\"font\",height:t||c.height,escapement:r,weight:n>0?n:400,italic:o,underline:i,strike:s,charset:l,face:a||c.face}}function A1(e,t,r,n){let o={kind:\"brush\",style:fn,color:\"#808080\",hatch:0,href:null};if(n!==J.DIBCREATEPATTERNBRUSH)return o;let i=t+6+4,s=t+r,l=Fc(e,i);if(!l||i+l>=s)return o;let a=lr(e,i,l,i+l,s-i-l);return a?{kind:\"brush\",style:5,color:\"#808080\",hatch:0,href:a}:o}var Da=2e5,Ba=0,P1=1,I1=2,N1=3,Li=4,R1={0:0,2:8,3:2,4:2,5:2,6:4,7:4,8:2,9:8,10:8,11:4,12:4,13:2,14:4,15:4,16:8,21:2,22:2,23:0,24:0,25:0,26:6,27:6,28:0,29:6,30:0,31:6,35:2,45:6,46:0,47:0,61:0,62:0,63:0,77:0,78:0,79:0,93:0,94:0,95:0,109:12,110:12,111:12,125:0,126:0,127:0,141:0,142:0,143:0};function O1(e){return Bc(e)!==null}function Bc(e){if(!e||e.length<16)return null;for(let t of[512,0]){if(t+12>e.length)continue;let r=new DataView(e.buffer,e.byteOffset+t,e.length-t),n=r.getInt16(2,!1),o=r.getInt16(4,!1),i=r.getInt16(6,!1),s=r.getInt16(8,!1);if(!(s>o)||!(i>n))continue;let l=r.getUint16(10,!1);if(l===17&&r.getUint16(12,!1)===767)return{off:t+14,v2:!0,bounds:{l:o,t:n,r:s,b:i}};if(l>>8===17&&(l&255)===1)return{off:t+12,v2:!1,bounds:{l:o,t:n,r:s,b:i}}}return null}function z1(e,t={}){try{return j1(e,t)}catch{return null}}function F1(){return{fg:\"#000000\",bg:\"#ffffff\",penW:1,penH:1,penSolid:!0,fillSolid:!0,fillColor:\"#000000\",txFont:0,txSize:12,txFace:0,ovalW:0,ovalH:0,origin:{x:0,y:0}}}function j1(e,t){let r=Bc(e);if(!r)return null;let{bounds:n,v2:o}=r,i=n.r-n.l,s=n.b-n.t,l=new er({pxPerMmX:72/25.4,pxPerMmY:72/25.4}),a=new Ie(e,r.off,e.length),c=F1(),u=()=>({kind:\"pen\",style:c.penSolid&&c.penW>0?Rc:$t,width:Math.max(c.penW,c.penH),color:c.fg,cap:0,join:0}),h=(E,T)=>({kind:\"brush\",style:T?fn:ir,color:E,hatch:0,href:null}),f=E=>{switch(E){case Ba:return l.select(u()),l.select(h(\"#000000\",!1)),!0;case P1:case Li:return l.select({...u(),style:$t}),l.select(h(E===Li?c.fillColor:c.fg,E===Li?c.fillSolid:c.penSolid)),!0;case I1:return l.select({...u(),style:$t}),l.select(h(c.bg,!0)),!0;case N1:return l.select({...u(),style:$t}),l.select(h(c.fg,!0)),!0;default:return!1}},m=()=>{let E=a.i16be(),T=a.i16be(),I=a.i16be(),O=a.i16be();return{l:T,t:E,r:O,b:I}},d=()=>{let E=a.i16be();return{x:a.i16be(),y:E}},p=()=>{let E=a.u16be(),T=a.u16be(),I=a.u16be();return Xi(E>>8,T>>8,I>>8)},b=()=>{let E=a.u16be();if(E<10)return a.skip(Math.max(0,E-2)),null;let T=m();return a.skip(E-10),T},v={l:0,t:0,r:0,b:0},x={l:0,t:0,r:0,b:0},M={l:0,t:0,r:0,b:0},S=[],y=null,$={x:0,y:0},k=!1,A=(E,T)=>{if(f(T)){switch(E){case\"rect\":l.rect(v);break;case\"rrect\":l.roundRect(M,c.ovalW,c.ovalH);break;case\"oval\":l.ellipse(x);break;case\"poly\":S.length>1&&l.polyline(S,!0);break;case\"arc\":{if(!y)return;let{rect:I,start:O,ext:R}=y,z=(I.l+I.r)/2,j=(I.t+I.b)/2,F=(I.r-I.l)/2,W=(I.b-I.t)/2,V=X=>{let K=(90-X)*Math.PI/180;return{x:z+F*Math.cos(K),y:j-W*Math.sin(K)}},B=V(O),q=V(O+R);l.arc(I,B.x,B.y,q.x,q.y,T===Ba?\"arc\":\"pie\");break}}k=!0}},L=(E,T,I)=>{if(!I)return;let O={...sr(),height:-Math.max(c.txSize,1),weight:c.txFace&1?700:400,italic:!!(c.txFace&2)};l.select(O),l.dc.textAlign=24,l.dc.textColor=c.fg,l.text(E,T,I,null,null),k=!0},P=0;for(;a.has(o?2:1)&&P++<Da&&(o&&(a.pos-r.off)%2===1&&a.skip(1),!!a.has(o?2:1));){let E=o?a.u16be():a.u8();if(E===255)break;switch(E){case 1:{let T=b();T&&l.intersectClip(T);break}case 7:{let T=d();c.penW=Math.abs(T.x),c.penH=Math.abs(T.y);break}case 9:case 10:{let T=[a.u8(),a.u8(),a.u8(),a.u8(),a.u8(),a.u8(),a.u8(),a.u8()].some(I=>I!==0);E===9?c.penSolid=T:(c.fillSolid=T,c.fillColor=c.fg);break}case 11:{let T=d();c.ovalW=Math.abs(T.x),c.ovalH=Math.abs(T.y);break}case 12:{let T=d();c.origin=T;break}case 13:c.txSize=a.u16be();break;case 3:c.txFont=a.u16be();break;case 4:c.txFace=a.u8(),a.skip(1);break;case 14:case 15:{let T=a.u32be(),I=T===0?\"#000000\":T===30?\"#ffffff\":Xi(T>>16&255,T>>8&255,T&255);E===14?c.fg=I:c.bg=I;break}case 26:c.fg=p();break;case 27:c.bg=p();break;case 32:{let T=d(),I=d();l.select(u()),l.moveTo(T.x,T.y),l.lineTo(I.x,I.y),$=I,k=!0;break}case 33:{let T=d();l.select(u()),l.moveTo($.x,$.y),l.lineTo(T.x,T.y),$=T,k=!0;break}case 34:{let T=d(),I=a.i8(),O=a.i8();l.select(u()),l.moveTo(T.x,T.y),l.lineTo(T.x+I,T.y+O),$={x:T.x+I,y:T.y+O},k=!0;break}case 35:{let T=a.i8(),I=a.i8();l.select(u()),l.moveTo($.x,$.y),l.lineTo($.x+T,$.y+I),$={x:$.x+T,y:$.y+I},k=!0;break}case 40:{let T=d();L(T.x,T.y,a.ansi(a.u8())),$=T;break}case 41:{let T=a.u8(),I=a.ansi(a.u8());$={x:$.x+T,y:$.y},L($.x,$.y,I);break}case 42:{let T=a.u8(),I=a.ansi(a.u8());$={x:$.x,y:$.y+T},L($.x,$.y,I);break}case 43:{let T=a.u8(),I=a.u8(),O=a.ansi(a.u8());$={x:$.x+T,y:$.y+I},L($.x,$.y,O);break}case 44:{let T=a.u16be();a.skip(Math.max(0,T));break}case 48:case 49:case 50:case 51:case 52:v=m(),A(\"rect\",E&7);break;case 56:case 57:case 58:case 59:case 60:A(\"rect\",E&7);break;case 64:case 65:case 66:case 67:case 68:M=m(),A(\"rrect\",E&7);break;case 72:case 73:case 74:case 75:case 76:A(\"rrect\",E&7);break;case 80:case 81:case 82:case 83:case 84:x=m(),A(\"oval\",E&7);break;case 88:case 89:case 90:case 91:case 92:A(\"oval\",E&7);break;case 96:case 97:case 98:case 99:case 100:{let T=m(),I=a.i16be(),O=a.i16be();y={rect:T,start:I,ext:O},A(\"arc\",E&7);break}case 104:case 105:case 106:case 107:case 108:{let T=a.i16be(),I=a.i16be();y&&(y={rect:y.rect,start:T,ext:I}),A(\"arc\",E&7);break}case 112:case 113:case 114:case 115:case 116:{let T=a.u16be(),I=a.pos+T-2;m();let O=[];for(;a.pos+4<=I;)O.push(d());a.seek(I),S=O,A(\"poly\",E&7);break}case 120:case 121:case 122:case 123:case 124:A(\"poly\",E&7);break;case 128:case 129:case 130:case 131:case 132:{let T=b();T&&(v=T,A(\"rect\",E&7));break}case 136:case 137:case 138:case 139:case 140:A(\"rect\",E&7);break;case 144:case 145:case 152:case 153:case 154:case 155:{if(!B1(a,E,l))return null;k=!0;break}case 160:a.skip(2);break;case 161:{a.skip(2);let T=a.u16be();a.skip(T);break}case 3072:a.skip(24);break;case 33280:case 33281:{let T=a.u32be(),I=a.pos+T,O=D1(a,I);O&&(l.image(n,O),k=!0),a.seek(Math.min(I,e.length));break}default:{let T=R1[E];if(T!==void 0){a.skip(T);break}let I=U1(E,a);if(I<0){P=Da;break}a.skip(I)}}}return k?l.render(n,t.width??i,t.height??s):null}function U1(e,t){return e>=256&&e<=32767?(e>>8&255)*2:e>=32768&&e<=33023?0:e>=33024&&t.has(4)?t.u32be():-1}function D1(e,t){let r=e.pos,n=e.take(Math.max(0,Math.min(t,e.limit)-r));e.seek(r);for(let o=0;o+3<n.length;o++){if(n[o]===255&&n[o+1]===216&&n[o+2]===255)return`data:image/jpeg;base64,${tr(n.subarray(o))}`;if(n[o]===137&&n[o+1]===80&&n[o+2]===78&&n[o+3]===71)return`data:image/png;base64,${tr(n.subarray(o))}`}return null}function B1(e,t,r){let n=t===154||t===155,o=t===145||t===153||t===155;n&&e.skip(4);let i=e.u16be()&32767,s=e.i16be(),l=e.i16be(),a=e.i16be(),c=e.i16be()-l,u=a-s;if(c<=0||u<=0||c>2e4||u>2e4)return!1;let h=i>=8,f=1,m=1,d=[];if(n||(i&32768)!==0||t===152||t===153){if(e.skip(2),e.u16be(),e.skip(4),e.skip(8),e.skip(2),f=e.u16be(),m=e.u16be(),e.u16be(),e.skip(4),e.skip(8),!n){e.skip(4),e.skip(2);let y=e.u16be()+1;if(y>0&&y<=256){d=new Array(y);for(let $=0;$<y;$++)e.skip(2),d[$]=[e.u16be()>>8,e.u16be()>>8,e.u16be()>>8]}}}else f=1;e.i16be(),e.i16be(),e.i16be(),e.i16be();let p={t:e.i16be(),l:e.i16be(),b:e.i16be(),r:e.i16be()};if(e.skip(2),o){let y=e.u16be();e.skip(Math.max(0,y-2))}let b=i;if(b*u>64*1024*1024)return!1;let v=new Uint8Array(b*u).fill(255),x=0;for(let y=0;y<u;y++){if(!h){if(!e.has(b))break;v.set(e.take(b),y*b),x++;continue}let $=i>250?e.u16be():e.u8();if($<=0||!e.has($))break;H1(e.take($),v,y*b,b),x++}if(!x)return!1;let M=new Uint8Array(c*u*4);for(let y=0;y<u;y++)for(let $=0;$<c;$++){let k=0,A=0,L=0;if(n&&f===32){let E=y*b,T=m===3?0:c;k=v[E+T+$],A=v[E+T+c+$],L=v[E+T+c*2+$]}else if(n&&f===16){let E=v[y*b+$*2]<<8|v[y*b+$*2+1];k=(E>>10&31)*8,A=(E>>5&31)*8,L=(E&31)*8}else if(f===8){let E=v[y*b+$];[k,A,L]=d[E]??[E,E,E]}else if(f===4){let E=v[y*b+($>>1)],T=$&1?E&15:E>>4;[k,A,L]=d[T]??[0,0,0]}else{let E=v[y*b+($>>3)]>>7-($&7)&1;[k,A,L]=d[E]??(E?[0,0,0]:[255,255,255])}let P=(y*c+$)*4;M[P]=k,M[P+1]=A,M[P+2]=L,M[P+3]=255}let S=`data:image/png;base64,${tr(zc(M,c,u))}`;return r.image({l:p.l,t:p.t,r:p.r,b:p.b},S),!0}function H1(e,t,r,n){let o=0,i=r,s=r+n;for(;o<e.length&&i<s;){let l=e[o++]<<24>>24;if(l>=0){let a=Math.min(l+1,s-i,e.length-o);t.set(e.subarray(o,o+a),i),o+=a,i+=a}else{if(o>=e.length)break;let a=Math.min(1-l,s-i);t.fill(e[o++],i,i+a),i+=a}}}function W1(e){return!e||e.length<20?null:jc(e)?\"emf\":Dc(e)?\"wmf\":O1(e)?\"pict\":null}function V1(e,t){try{let r=W1(e);return r===\"emf\"?a1(e,t):r===\"wmf\"?$1(e,t):r===\"pict\"?z1(e,t):null}catch{return null}}var Rr=4294967294,Or=4294967295,_r=class{constructor(t){if(this.fat=[],this.miniFat=[],this.dir=[],this.miniStream=new Uint8Array(0),t.length<512||t[0]!==208||t[1]!==207)throw new Error(\"\\u4E0D\\u662F\\u6709\\u6548\\u7684 CFB \\u590D\\u5408\\u6587\\u6863\");this.bytes=t,this.view=new DataView(t.buffer,t.byteOffset,t.byteLength),this.sectorSize=1<<this.view.getUint16(30,!0),this.miniSectorSize=1<<this.view.getUint16(32,!0),this.miniCutoff=this.view.getUint32(56,!0),this.readFat(),this.readDirectory(),this.readMiniFat()}offsetOf(t){return(t+1)*this.sectorSize}readFat(){let t=[];for(let i=0;i<109;i++)t.push(this.view.getUint32(76+i*4,!0));let r=this.view.getUint32(68,!0),n=this.sectorSize/4,o=0;for(;r!==Rr&&r!==Or&&o++<1e5;){let i=this.offsetOf(r);if(i+this.sectorSize>this.bytes.length)break;for(let s=0;s<n-1;s++)t.push(this.view.getUint32(i+s*4,!0));r=this.view.getUint32(i+(n-1)*4,!0)}for(let i of t){if(i===Or||i===Rr)continue;let s=this.offsetOf(i);if(!(s+this.sectorSize>this.bytes.length))for(let l=0;l<n;l++)this.fat.push(this.view.getUint32(s+l*4,!0))}}chain(t,r){let n=[],o=t,i=0;for(;o!==Rr&&o!==Or&&o>=0&&o<r.length&&i++<1e6;)n.push(o),o=r[o];return n}readChain(t,r){let n=this.chain(t,this.fat),o=new Uint8Array(n.length*this.sectorSize);return n.forEach((i,s)=>{let l=this.offsetOf(i);o.set(this.bytes.subarray(l,Math.min(l+this.sectorSize,this.bytes.length)),s*this.sectorSize)}),o.subarray(0,r)}readDirectory(){let t=this.view.getUint32(48,!0),r=this.chain(t,this.fat),n=this.readChain(t,r.length*this.sectorSize),o=new DataView(n.buffer,n.byteOffset,n.byteLength);for(let i=0;i+128<=n.length;i+=128){let s=o.getUint16(i+64,!0);if(s===0||s>64)continue;let l=\"\";for(let a=0;a<s-2;a+=2)l+=String.fromCharCode(o.getUint16(i+a,!0));this.dir.push({name:l,type:o.getUint8(i+66),start:o.getUint32(i+116,!0),size:o.getUint32(i+120,!0)})}}readMiniFat(){let t=this.view.getUint32(60,!0);if(t!==Rr&&t!==Or){let n=this.chain(t,this.fat),o=this.readChain(t,n.length*this.sectorSize),i=new DataView(o.buffer,o.byteOffset,o.byteLength);for(let s=0;s+4<=o.length;s+=4)this.miniFat.push(i.getUint32(s,!0))}let r=this.dir.find(n=>n.type===5);r&&(this.miniStream=this.readChain(r.start,r.size))}streamNames(){return this.dir.filter(t=>t.type===2).map(t=>t.name)}stream(t){let r=this.dir.find(i=>i.type===2&&i.name.toLowerCase()===t.toLowerCase());if(!r)return null;if(r.size>=this.miniCutoff)return this.readChain(r.start,r.size);let n=this.chain(r.start,this.miniFat),o=new Uint8Array(n.length*this.miniSectorSize);return n.forEach((i,s)=>{o.set(this.miniStream.subarray(i*this.miniSectorSize,(i+1)*this.miniSectorSize),s*this.miniSectorSize)}),o.subarray(0,r.size)}},Hc=null,Wc=null;function G1(e){Wc=e}function X1(){return Wc}function Y1(e){Hc=e}function q1(){return Hc}function Ai(e,t){return(e<<t|e>>>32-t)>>>0}function hs(e,t,r){let n=e.length*8,o=Math.ceil((e.length+1+r)/t)*t,i=new Uint8Array(o);i.set(e),i[e.length]=128;let s=new DataView(i.buffer);return s.setUint32(o-4,n>>>0,!1),s.setUint32(o-8,Math.floor(n/4294967296),!1),i}function Pt(e){let t=[1732584193,4023233417,2562383102,271733878,3285377520],r=hs(e,64,8),n=new Uint32Array(80),o=new DataView(r.buffer);for(let l=0;l<r.length;l+=64){for(let m=0;m<16;m++)n[m]=o.getUint32(l+m*4,!1);for(let m=16;m<80;m++)n[m]=Ai(n[m-3]^n[m-8]^n[m-14]^n[m-16],1);let[a,c,u,h,f]=t;for(let m=0;m<80;m++){let d,p;m<20?(d=c&u|~c&h,p=1518500249):m<40?(d=c^u^h,p=1859775393):m<60?(d=c&u|c&h|u&h,p=2400959708):(d=c^u^h,p=3395469782);let b=Ai(a,5)+d+f+p+n[m]>>>0;f=h,h=u,u=Ai(c,30),c=a,a=b}t[0]=t[0]+a>>>0,t[1]=t[1]+c>>>0,t[2]=t[2]+u>>>0,t[3]=t[3]+h>>>0,t[4]=t[4]+f>>>0}let i=new Uint8Array(20),s=new DataView(i.buffer);for(let l=0;l<5;l++)s.setUint32(l*4,t[l],!1);return i}var Z1=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function _1(e){let t=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),r=hs(e,64,8),n=new DataView(r.buffer),o=new Uint32Array(64),i=(a,c)=>a>>>c|a<<32-c;for(let a=0;a<r.length;a+=64){for(let x=0;x<16;x++)o[x]=n.getUint32(a+x*4,!1);for(let x=16;x<64;x++){let M=i(o[x-15],7)^i(o[x-15],18)^o[x-15]>>>3,S=i(o[x-2],17)^i(o[x-2],19)^o[x-2]>>>10;o[x]=o[x-16]+M+o[x-7]+S>>>0}let[c,u,h,f,m,d,p,b]=t;for(let x=0;x<64;x++){let M=i(m,6)^i(m,11)^i(m,25),S=m&d^~m&p,y=b+M+S+Z1[x]+o[x]>>>0,$=i(c,2)^i(c,13)^i(c,22),k=c&u^c&h^u&h,A=$+k>>>0;b=p,p=d,d=m,m=f+y>>>0,f=h,h=u,u=c,c=y+A>>>0}let v=[c,u,h,f,m,d,p,b];for(let x=0;x<8;x++)t[x]=t[x]+v[x]>>>0}let s=new Uint8Array(32),l=new DataView(s.buffer);for(let a=0;a<8;a++)l.setUint32(a*4,t[a],!1);return s}var K1=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298,3391569614,3515267271,3940187606,4118630271,116418474,174292421,289380356,460393269,685471733,852142971,1017036298,1126000580,1288033470,1501505948,1607167915,1816402316]),Q1=new Uint32Array([3609767458,602891725,3964484399,2173295548,4081628472,3053834265,2937671579,3664609560,2734883394,1164996542,1323610764,3590304994,4068182383,991336113,633803317,3479774868,2666613458,944711139,2341262773,2007800933,1495990901,1856431235,3175218132,2198950837,3999719339,766784016,2566594879,3203337956,1034457026,2466948901,3758326383,168717936,1188179964,1546045734,1522805485,2643833823,2343527390,1014477480,1206759142,344077627,1290863460,3158454273,3505952657,106217008,3606008344,1432725776,1467031594,851169720,3100823752,1363258195,3750685593,3785050280,3318307427,3812723403,2003034995,3602036899,1575990012,1125592928,2716904306,442776044,593698344,3733110249,2999351573,3815920427,3928383900,566280711,3454069534,4000239992,1914138554,2731055270,3203993006,320620315,587496836,1086792851,365543100,2618297676,3409855158,4234509866,987167468,1246189591]),J1=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],em=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428];function Vc(e,t,r){let n=new Uint32Array(8),o=new Uint32Array(8);for(let p=0;p<8;p++)n[p]=t[p*2],o[p]=t[p*2+1];let i=hs(e,128,16),s=new DataView(i.buffer),l=new Uint32Array(80),a=new Uint32Array(80),c=0,u=0,h=(p,b,v)=>{if(v<32)c=p>>>v|b<<32-v,u=b>>>v|p<<32-v;else if(v===32)c=b,u=p;else{let x=v-32;c=b>>>x|p<<32-x,u=p>>>x|b<<32-x}},f=(p,b,v)=>{v<32?(c=p>>>v,u=b>>>v|p<<32-v):(c=0,u=p>>>v-32)};for(let p=0;p<i.length;p+=128){for(let F=0;F<16;F++)l[F]=s.getUint32(p+F*8,!1),a[F]=s.getUint32(p+F*8+4,!1);for(let F=16;F<80;F++){h(l[F-15],a[F-15],1);let W=c,V=u;h(l[F-15],a[F-15],8),W^=c,V^=u,f(l[F-15],a[F-15],7),W^=c,V^=u,h(l[F-2],a[F-2],19);let B=c,q=u;h(l[F-2],a[F-2],61),B^=c,q^=u,f(l[F-2],a[F-2],6),B^=c,q^=u;let X=(a[F-16]>>>0)+(V>>>0)+(a[F-7]>>>0)+(q>>>0);a[F]=X>>>0,l[F]=l[F-16]+W+l[F-7]+B+Math.floor(X/4294967296)>>>0}let b=n[0],v=o[0],x=n[1],M=o[1],S=n[2],y=o[2],$=n[3],k=o[3],A=n[4],L=o[4],P=n[5],E=o[5],T=n[6],I=o[6],O=n[7],R=o[7];for(let F=0;F<80;F++){h(A,L,14);let W=c,V=u;h(A,L,18),W^=c,V^=u,h(A,L,41),W^=c,V^=u;let B=A&P^~A&T,q=L&E^~L&I,X=(R>>>0)+(V>>>0)+(q>>>0)+Q1[F]+(a[F]>>>0),K=X>>>0,Y=O+W+B+K1[F]+l[F]+Math.floor(X/4294967296)>>>0;h(b,v,28);let se=c,ue=u;h(b,v,34),se^=c,ue^=u,h(b,v,39),se^=c,ue^=u;let fe=b&x^b&S^x&S,de=v&M^v&y^M&y;X=(ue>>>0)+(de>>>0);let it=X>>>0,mt=se+fe+Math.floor(X/4294967296)>>>0;O=T,R=I,T=P,I=E,P=A,E=L,X=(k>>>0)+(K>>>0),L=X>>>0,A=$+Y+Math.floor(X/4294967296)>>>0,$=S,k=y,S=x,y=M,x=b,M=v,X=(K>>>0)+(it>>>0),v=X>>>0,b=Y+mt+Math.floor(X/4294967296)>>>0}let z=[b,x,S,$,A,P,T,O],j=[v,M,y,k,L,E,I,R];for(let F=0;F<8;F++){let W=(o[F]>>>0)+(j[F]>>>0);o[F]=W>>>0,n[F]=n[F]+z[F]+Math.floor(W/4294967296)>>>0}}let m=new Uint8Array(64),d=new DataView(m.buffer);for(let p=0;p<8;p++)d.setUint32(p*8,n[p],!1),d.setUint32(p*8+4,o[p],!1);return m.subarray(0,r)}var tm=e=>Vc(e,J1,64),nm=e=>Vc(e,em,48);function Ha(e){switch(e.toUpperCase().replace(/[-_]/g,\"\")){case\"SHA1\":return Pt;case\"SHA256\":return _1;case\"SHA384\":return nm;case\"SHA512\":return tm;default:return null}}var cn=new Uint8Array(256),Gc=new Uint8Array(256),rm=new Uint8Array([1,2,4,8,16,32,64,128,27,54,108,216,171,77]);(function(){let e=new Uint8Array(256),t=new Uint8Array(256),r=1;for(let n=0;n<256;n++)e[n]=r,t[r]=n,r^=r<<1^(r&128?283:0),r&=255;for(let n=0;n<256;n++){let o=n?e[255-t[n]]:0,i=o;for(let s=0;s<4;s++)o=(o<<1|o>>>7)&255,i^=o;cn[n]=i^99}for(let n=0;n<256;n++)Gc[cn[n]]=n})();function om(e){return(e<<1^(e&128?27:0))&255}function Fe(e,t){let r=0;for(;t;)t&1&&(r^=e),e=om(e),t>>=1;return r&255}function Xc(e){let t=e.length/4,r=t+6,n=[];for(let i=0;i<t;i++)n.push([e[i*4],e[i*4+1],e[i*4+2],e[i*4+3]]);for(let i=t;i<4*(r+1);i++){let s=n[i-1].slice();i%t===0?s=[cn[s[1]]^rm[i/t-1],cn[s[2]],cn[s[3]],cn[s[0]]]:t>6&&i%t===4&&(s=s.map(l=>cn[l])),n.push(s.map((l,a)=>l^n[i-t][a]))}let o=[];for(let i=0;i<=r;i++){let s=new Uint8Array(16);for(let l=0;l<4;l++)for(let a=0;a<4;a++)s[l*4+a]=n[i*4+l][a];o.push(s)}return o}function Yc(e,t,r,n,o){let i=new Uint8Array(16);for(let s=0;s<16;s++)i[s]=t[r+s]^e[e.length-1][s];for(let s=e.length-2;s>=0;s--){let l=i.slice();for(let a=0;a<4;a++)for(let c=0;c<4;c++)i[(a+c)%4*4+c]=l[a*4+c];for(let a=0;a<16;a++)i[a]=Gc[i[a]];for(let a=0;a<16;a++)i[a]^=e[s][a];if(s>0)for(let a=0;a<4;a++){let c=i[a*4],u=i[a*4+1],h=i[a*4+2],f=i[a*4+3];i[a*4]=Fe(c,14)^Fe(u,11)^Fe(h,13)^Fe(f,9),i[a*4+1]=Fe(c,9)^Fe(u,14)^Fe(h,11)^Fe(f,13),i[a*4+2]=Fe(c,13)^Fe(u,9)^Fe(h,14)^Fe(f,11),i[a*4+3]=Fe(c,11)^Fe(u,13)^Fe(h,9)^Fe(f,14)}}n.set(i,o)}function Pi(e,t){let r=Xc(e),n=new Uint8Array(t.length-t.length%16);for(let o=0;o+16<=t.length;o+=16)Yc(r,t,o,n,o);return n}function zr(e,t,r){let n=Xc(e),o=r.length-r.length%16,i=new Uint8Array(o),s=t.subarray(0,16);for(let l=0;l+16<=o;l+=16){Yc(n,r,l,i,l);for(let a=0;a<16;a++)i[l+a]^=s[a];s=r.subarray(l,l+16)}return i}var im=5e4,sm=new Uint8Array([254,167,210,118,59,75,158,121]),lm=new Uint8Array([215,170,15,109,48,97,52,78]),am=new Uint8Array([20,110,11,231,171,172,208,214]),nr=class extends Error{constructor(){super(\"\\u5BC6\\u7801\\u9519\\u8BEF\"),this.name=\"WrongPasswordError\"}},Kr=class extends Error{constructor(){super(\"\\u8BE5\\u6587\\u4EF6\\u5DF2\\u52A0\\u5BC6\\uFF0C\\u9700\\u8981\\u63D0\\u4F9B\\u6253\\u5F00\\u5BC6\\u7801\"),this.name=\"PasswordRequiredError\"}};function En(...e){let t=e.reduce((o,i)=>o+i.length,0),r=new Uint8Array(t),n=0;for(let o of e)r.set(o,n),n+=o.length;return r}function cm(e){let t=new Uint8Array(e.length*2),r=new DataView(t.buffer);for(let n=0;n<e.length;n++)r.setUint16(n*2,e.charCodeAt(n),!0);return t}function fs(e){let t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e>>>0,!0),t}function qc(e,t,r){if(e.length<r||t.length<r)return!1;let n=0;for(let o=0;o<r;o++)n|=e[o]^t[o];return n===0}function Zc(e,t,r,n){let o=e(En(t,cm(r)));for(let i=0;i<n;i++)o=e(En(fs(i),o));return o}function ds(e,t){if(e.length>=t)return e.subarray(0,t);let r=new Uint8Array(t).fill(54);return r.set(e),r}function um(e){let t=new DataView(e.buffer,e.byteOffset,e.byteLength),r=t.getUint32(8,!0);if(r<32||12+r+8>e.length)return null;let n=t.getUint32(28,!0),o=n>=8?n/8:16,i=12+r,s=t.getUint32(i,!0);if(i+=4,s!==16)return null;let l=e.subarray(i,i+16);i+=16;let a=e.subarray(i,i+16);i+=16;let c=t.getUint32(i,!0);if(i+=4,c<20)return null;let u=e.subarray(i,i+32);return{keyBytes:o,salt:l,encryptedVerifier:a,encryptedVerifierHash:u}}function hm(e,t){let r=Zc(Pt,e.salt,t,im),n=Pt(En(r,fs(0))),o=Pt(new Uint8Array(64).map((s,l)=>(l<n.length?n[l]:0)^54)),i=Pt(new Uint8Array(64).map((s,l)=>(l<n.length?n[l]:0)^92));return ds(En(o,i),e.keyBytes)}function fm(e,t,r){let n=um(e);if(!n)throw new Error(\"\\u65E0\\u6CD5\\u89E3\\u6790\\u6807\\u51C6\\u52A0\\u5BC6\\u7684 EncryptionInfo\");let o=hm(n,r),i=Pi(o,n.encryptedVerifier),s=Pi(o,n.encryptedVerifierHash);if(!qc(Pt(i),s,20))throw new nr;let l=Number(new DataView(t.buffer,t.byteOffset,t.byteLength).getBigUint64(0,!0)),a=Pi(o,t.subarray(8));return a.subarray(0,Math.min(l,a.length))}function Gn(e){let t=typeof atob==\"function\"?atob(e):globalThis.Buffer.from(e,\"base64\").toString(\"binary\"),r=new Uint8Array(t.length);for(let n=0;n<t.length;n++)r[n]=t.charCodeAt(n);return r}function dm(e){var t,r;let n=new TextDecoder().decode(e.subarray(8)),o=((t=/<[^>]*keyData\\b[^>]*>/.exec(n))==null?void 0:t[0])??\"\",i=((r=/<[^>]*encryptedKey\\b[^>]*>/.exec(n))==null?void 0:r[0])??\"\";if(!o||!i)return null;let s=(u,h)=>{let f=new RegExp(`\\\\b${h}=\"([^\"]*)\"`).exec(u);return f?f[1]:null},l=Ha(s(o,\"hashAlgorithm\")??\"\"),a=Ha(s(i,\"hashAlgorithm\")??\"\");if(!l||!a||(s(o,\"cipherAlgorithm\")??\"AES\")!==\"AES\")return null;let c=(u,h,f)=>{let m=Number(s(u,h));return Number.isFinite(m)&&m>0?m:f};return{hash:l,hashSize:c(o,\"hashSize\",64),blockSize:c(o,\"blockSize\",16),keyBytes:c(o,\"keyBits\",256)/8,keySalt:Gn(s(o,\"saltValue\")??\"\"),spinCount:c(i,\"spinCount\",1e5),pwSalt:Gn(s(i,\"saltValue\")??\"\"),pwKeyBytes:c(i,\"keyBits\",256)/8,pwHash:a,encryptedKeyValue:Gn(s(i,\"encryptedKeyValue\")??\"\"),encryptedVerifierHashInput:Gn(s(i,\"encryptedVerifierHashInput\")??\"\"),encryptedVerifierHashValue:Gn(s(i,\"encryptedVerifierHashValue\")??\"\")}}function Ii(e,t,r){return ds(e.pwHash(En(t,r)),e.pwKeyBytes)}function pm(e,t,r){let n=dm(e);if(!n)throw new Error(\"\\u65E0\\u6CD5\\u89E3\\u6790\\u654F\\u6377\\u52A0\\u5BC6\\u7684 EncryptionInfo\");let o=Zc(n.pwHash,n.pwSalt,r,n.spinCount),i=zr(Ii(n,o,sm),n.pwSalt,n.encryptedVerifierHashInput),s=zr(Ii(n,o,lm),n.pwSalt,n.encryptedVerifierHashValue);if(!qc(n.pwHash(i.subarray(0,16)),s,Math.min(n.hashSize,s.length)))throw new nr;let l=zr(Ii(n,o,am),n.pwSalt,n.encryptedKeyValue).subarray(0,n.keyBytes),a=Number(new DataView(t.buffer,t.byteOffset,t.byteLength).getBigUint64(0,!0)),c=t.subarray(8),u=4096,h=new Uint8Array(c.length);for(let f=0,m=0;m<c.length;f++,m+=u){let d=ds(n.hash(En(n.keySalt,fs(f))),n.blockSize),p=c.subarray(m,Math.min(m+u,c.length));h.set(zr(l,d,p),m)}return h.subarray(0,Math.min(a,h.length))}function mm(e,t,r){if(e.length<16||t.length<16)throw new Error(\"\\u52A0\\u5BC6\\u6D41\\u4E0D\\u5B8C\\u6574\");let n=new DataView(e.buffer,e.byteOffset,e.byteLength),o=n.getUint16(0,!0),i=n.getUint16(2,!0);if(o===4&&i===4)return pm(e,t,r);if(o===4&&i===3)throw new Error(\"\\u4E0D\\u652F\\u6301\\u6269\\u5C55\\u52A0\\u5BC6\\uFF08\\u81EA\\u5B9A\\u4E49\\u52A0\\u5BC6\\u63D0\\u4F9B\\u7A0B\\u5E8F\\uFF09\");return fm(e,t,r)}var gm=4090610911,bm=4085,xm=6002,vm=12052;function Ni(e,t){let r=new Uint8Array(256);for(let s=0;s<256;s++)r[s]=s;let n=0;for(let s=0;s<256;s++){n=n+r[s]+e[s%e.length]&255;let l=r[s];r[s]=r[n],r[n]=l}let o=new Uint8Array(t.length),i=0;n=0;for(let s=0;s<t.length;s++){i=i+1&255,n=n+r[i]&255;let l=r[i];r[i]=r[n],r[n]=l,o[s]=t[s]^r[r[i]+r[n]&255]}return o}function wm(e){let t=new Uint8Array(e.length*2),r=new DataView(t.buffer);for(let n=0;n<e.length;n++)r.setUint16(n*2,e.charCodeAt(n),!0);return t}function ym(e){let t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e>>>0,!0),t}function _i(e,t){let r=new Uint8Array(e.length+t.length);return r.set(e),r.set(t,e.length),r}function $m(e){return!e||e.length<16?!1:new DataView(e.buffer,e.byteOffset,e.byteLength).getUint32(12,!0)===gm}function Mm(e){if(e.length<40)return null;let t=new DataView(e.buffer,e.byteOffset,e.byteLength),r=t.getUint32(8,!0);if(r<20||12+r+40>e.length)return null;let n=t.getUint32(28,!0)||40,o=12+r,i=t.getUint32(o,!0);if(o+=4,i!==16)return null;let s=e.subarray(o,o+16);o+=16;let l=e.subarray(o,o+16);o+=16;let a=t.getUint32(o,!0);return o+=4,a<20?null:{keyBytes:Math.max(1,Math.floor(n/8)),salt:s,encVerifier:l,encVerifierHash:e.subarray(o,o+20)}}function Ri(e,t,r){let n=Pt(_i(t,ym(r))).subarray(0,e.keyBytes);if(e.keyBytes!==5)return n;let o=new Uint8Array(16);return o.set(n),o}function km(e,t){let r=new DataView(t.buffer,t.byteOffset,t.byteLength),n=new DataView(e.buffer,e.byteOffset,e.byteLength),o=d=>n.getUint32(d+4,!0),i=d=>n.getUint16(d+2,!0),s=[],l=new Map,a=-1,c=r.getUint32(16,!0),u=0;for(;c>0&&c+8<=e.length&&u++<64;){if(i(c)!==bm)return null;let d=o(c);s.push([c,8+d]);let p=c+8,b=n.getUint32(p+8,!0),v=n.getUint32(p+12,!0);if(d>=32&&a<0&&(a=n.getUint32(p+28,!0)),v>0&&v+8<=e.length&&i(v)===xm){let x=o(v);s.push([v,8+x]);let M=v+8,S=Math.min(M+x,e.length);for(;M+4<=S;){let y=n.getUint32(M,!0);M+=4;let $=y&1048575,k=y>>>20;for(let A=0;A<k&&M+4<=S;A++)l.has($+A)||l.set($+A,n.getUint32(M,!0)),M+=4}}c=b}let h=a>=0?l.get(a):void 0;if(h===void 0||h+8>e.length||i(h)!==vm)return null;let f=o(h);s.push([h,8+f]);let m=Mm(e.subarray(h+8,h+8+f));return m?{info:m,persists:[...l.entries()].filter(([d])=>d!==a).map(([d,p])=>({id:d,offset:p})),plain:s}:null}function Cm(e,t,r){let n=km(e,t);if(!n)return null;let{info:o,persists:i,plain:s}=n,l=Pt(_i(o.salt,wm(r))),a=Ri(o,l,0),c=Ni(a,_i(o.encVerifier,o.encVerifierHash)),u=Pt(c.subarray(0,16)),h=0;for(let d=0;d<20;d++)h|=u[d]^c[16+d];if(h!==0)throw new nr;let f=new Uint8Array(e);new DataView(e.buffer,e.byteOffset,e.byteLength);let m=[];for(let{id:d,offset:p}of i){if(p+8>e.length)continue;let b=Ni(Ri(o,l,d),e.subarray(p,p+8)),v=new DataView(b.buffer).getUint32(4,!0),x=Math.min(8+v,e.length-p);!(x>8)||x>e.length||(f.set(Ni(Ri(o,l,d),e.subarray(p,p+x)),p),m.push([p,x]))}if(!m.length)return null;for(let[d,p]of s)d>=0&&d+p<=e.length&&f.set(e.subarray(d,d+p),d);return f}function*Be(e,t,r){let n=t;for(;n+8<=r;){let o=e.getUint16(n,!0),i=e.getUint16(n+2,!0),s=e.getUint32(n+4,!0),l=n+8;if(s<0||l+s>r)return;let a=o&15;yield{type:i,instance:o>>4,version:a,isContainer:a===15,start:l,len:s},n=l+s}}function he(e,t,r,n){for(let o of Be(e,t,r))if(o.type===n)return o;return null}function dt(e,t,r,n){let o=[];for(let i of Be(e,t,r))i.type===n&&o.push(i);return o}function Rt(e,t,r){let n=\"\";for(let o=0;o+2<=r;o+=2)n+=String.fromCharCode(e.getUint16(t+o,!0));return n}function ho(e,t,r){let n=\"\";for(let o=0;o<r;o++)n+=String.fromCharCode(e.getUint8(t+o));return n}function _c(e,t,r){let n=[],o=(i,s,l)=>{for(let a of Be(e,i,s)){if(a.type===te.ProgBinaryTag){let c=\"\";for(let u of Be(e,a.start,a.start+a.len))u.type===te.CString?c=Rt(e,u.start,u.len).replace(/\\0+$/,\"\"):u.type===te.BinaryTagDataBlob&&c===r&&n.push(u);continue}a.isContainer&&l>0&&o(a.start,a.start+a.len,l-1)}};return o(t.start,t.start+t.len,6),n}var te={Document:1e3,DocumentAtom:1001,Slide:1006,SlideAtom:1007,Notes:1008,NotesAtom:1009,MainMaster:1016,SSSlideInfoAtom:1017,SlidePersistAtom:1011,ExObjList:1033,PPDrawing:1036,ColorSchemeAtom:2032,SlideListWithText:4080,TextHeaderAtom:3999,TextCharsAtom:4e3,TextBytesAtom:4008,StyleTextPropAtom:4001,TxMasterStyleAtom:4003,FontEntityAtom:4023,OEPlaceholderAtom:3011,ExHyperlinkAtom:4051,ExHyperlink:4055,CString:4026,TextInteractiveInfoAtom:4063,InteractiveInfo:4082,InteractiveInfoAtom:4083,PersistDirectoryAtom:6002,ProgBinaryTag:5002,BinaryTagDataBlob:5003,StyleTextProp9Atom:4012},ut={ExtTimeNodeContainer:61764,TimeNodeAtom:61735,TimeConditionContainer:61733,TimeConditionAtom:61736,ClientVisualElement:61756,TimePropertyList:61757,TimeVariant:61762,VisualShapeAtom:11003},Me={DgContainer:61442,SpgrContainer:61443,SpContainer:61444,Spgr:61449,Sp:61450,Opt:61451,ClientTextbox:61453,ChildAnchor:61455,ClientAnchor:61456,ClientData:61457},Sm=8388608,Em=16777216,Tm=33554432,Lm=1048576,Am=[[1,2],[2,2],[4,2],[32,2],[64,4],[128,4]],Pm=256;function Im(e,t){let r=[],n=t.start+t.len,o=t.start;for(;o+4<=n;){let i=e.getUint32(o,!0);o+=4,i&Sm&&(o+=2);let s=null;if(i&Tm){if(o+2>n)return[];s=e.getUint16(o,!0)!==0,o+=2}let l=null;if(i&Em){if(o+4>n)return[];l={scheme:e.getUint16(o,!0),startNum:e.getUint16(o+2,!0)||1},o+=4}if(o+4>n)return[];let a=e.getUint32(o,!0);if(o+=4,a&Lm&&(o+=4),o+4>n)return[];let c=e.getUint32(o,!0);o+=4;for(let[u,h]of Am)c&u&&(o+=h);if(c&Pm){if(o+4>n)return[];o+=4+e.getUint32(o,!0)*4}if(o>n)return[];r.push(s===!1?null:l)}return o===n?r:[]}function Kc(e,t){let r=[];for(let n of _c(e,t,\"___PPT9\"))for(let o of dt(e,n.start,n.start+n.len,te.StyleTextProp9Atom))r.push(...Im(e,o));return r}function Nm(e,t){let r=Rm[e]??\"arabic\",n=r===\"alphaLc\"?Wa(t).toLowerCase():r===\"alphaUc\"?Wa(t):r===\"romanLc\"?Va(t).toLowerCase():r===\"romanUc\"?Va(t):r===\"circle\"?zm(t):String(t),o=Om[e]??\"\";return o===\"both\"?`(${n})`:o===\"right\"?`${n})`:o===\"period\"?`${n}.`:o===\"minus\"?`-${n}-`:n}var Rm={0:\"alphaLc\",1:\"alphaUc\",2:\"arabic\",3:\"arabic\",4:\"romanLc\",5:\"romanLc\",6:\"romanLc\",7:\"romanUc\",8:\"alphaLc\",9:\"alphaLc\",10:\"alphaUc\",11:\"alphaUc\",12:\"arabic\",13:\"arabic\",14:\"romanUc\",15:\"romanUc\",16:\"arabic\",17:\"arabic\",18:\"circle\",19:\"circle\",20:\"circle\",21:\"arabic\",22:\"arabic\",23:\"arabic\",24:\"arabic\",25:\"arabic\",26:\"arabic\",27:\"arabic\",28:\"arabic\",29:\"arabic\",30:\"arabic\",31:\"arabic\",32:\"arabic\"},Om={0:\"period\",1:\"period\",2:\"right\",3:\"period\",4:\"both\",5:\"right\",6:\"period\",7:\"period\",8:\"both\",9:\"right\",10:\"both\",11:\"right\",12:\"both\",14:\"both\",15:\"right\",17:\"period\",21:\"period\",23:\"period\",25:\"period\",27:\"period\",29:\"period\",30:\"minus\",31:\"minus\",32:\"minus\"};function Wa(e){let t=\"\",r=e;for(;r>0;)t=String.fromCharCode(65+(r-1)%26)+t,r=Math.floor((r-1)/26);return t||\"A\"}function Va(e){let t=[[1e3,\"M\"],[900,\"CM\"],[500,\"D\"],[400,\"CD\"],[100,\"C\"],[90,\"XC\"],[50,\"L\"],[40,\"XL\"],[10,\"X\"],[9,\"IX\"],[5,\"V\"],[4,\"IV\"],[1,\"I\"]],r=\"\",n=e;for(let[o,i]of t)for(;n>=o;)r+=i,n-=o;return r||\"I\"}var zm=e=>e>=1&&e<=20?String.fromCharCode(9312+e-1):String(e);function ps(e,t){let r=new Map,n=new Map,o=t.instance,i=t.start,s=t.start+Math.min(o*6,t.len),l=[];for(let c=0;c<o&&i+6<=t.start+t.len;c++,i+=6){let u=e.getUint16(i,!0),h=u&16383,f=(u&32768)!==0,m=e.getUint32(i+2,!0);f?l.push({id:h,len:m}):r.set(h,m)}let a=s;for(let c of l){if(a+c.len>t.start+t.len)break;n.set(c.id,{start:a,len:c.len}),a+=c.len}return{simple:r,complex:n}}var ne={rotation:4,tableProperties:927,tableRowProperties:928,lTxid:128,anchorText:135,pib:260,cropFromTop:256,cropFromBottom:257,cropFromLeft:258,cropFromRight:259,wzName:896,geoLeft:320,geoTop:321,geoRight:322,geoBottom:323,pVertices:325,pSegmentInfo:326,adjustValue:327,adjust2Value:328,adjust3Value:329,adjust4Value:330,fillType:384,fillColor:385,fillOpacity:386,fillBackColor:387,fillBackOpacity:388,fillFocus:396,fillBlip:390,fillAngle:395,fillStyleBooleans:447,lineColor:448,lineOpacity:449,lineWidth:459,lineDashing:462,lineStartArrow:464,lineEndArrow:465,lineStyleBooleans:511,shadowColor:513,shadowOpacity:516,shadowOffsetX:517,shadowOffsetY:518,shadowStyleBooleans:575},rr=e=>e>2147483647?e-4294967296:e;function Zt(e,t,r=1){let n=e>>24&255,o,i,s;if(n===8||n===1){let l=e&255,a=t[l]??\"000000\";o=parseInt(a.slice(0,2),16),i=parseInt(a.slice(2,4),16),s=parseInt(a.slice(4,6),16)}else o=e&255,i=e>>8&255,s=e>>16&255;return r>=1?`rgb(${o},${i},${s})`:`rgba(${o},${i},${s},${Math.round(r*1e3)/1e3})`}var ms=(e,t)=>e===void 0||!(e&t<<16)?null:(e&t)!==0;function Fm(e){let t=e.simple.get(ne.fillAngle),r=t===void 0?0:rr(t)/65536,n=r>=0,o=rr(e.simple.get(ne.fillFocus)??0);o===0?n=!n:o<0&&(o=-o,n=!n);let i=o>40&&o<60;i&&(n=!n);let s=90-r;for(;s<0;)s+=360;for(;s>=360;)s-=360;return{angle:Math.round(s*1e3)/1e3,backFirst:!n,axial:i}}function Qc(e,t,r){let n=ms(e.simple.get(ne.fillStyleBooleans),16);if(n===!1)return{type:\"none\"};let o=e.simple.get(ne.fillType)??0,i=(e.simple.get(ne.fillOpacity)??65536)/65536;if(o===3||o===2){let l=e.simple.get(ne.fillBlip)??e.simple.get(ne.pib),a=l!==void 0?r(l):null;if(a)return{type:\"image\",src:a,alpha:i<1?i:void 0}}if(o===4||o===5||o===6||o===7){let l=e.simple.get(ne.fillColor),a=e.simple.get(ne.fillBackColor),c=(e.simple.get(ne.fillBackOpacity)??65536)/65536;if(l!==void 0||a!==void 0){let u=Zt(l??16777215,t,i),h=Zt(a??16777215,t,c);if(o===5||o===6)return{type:\"gradient\",angle:90,stops:[{pos:0,color:u},{pos:1,color:h}]};let f=Fm(e),[m,d]=f.backFirst?[h,u]:[u,h];return{type:\"gradient\",angle:f.angle,stops:f.axial?[{pos:0,color:m},{pos:.5,color:d},{pos:1,color:m}]:[{pos:0,color:m},{pos:1,color:d}]}}}let s=e.simple.get(ne.fillColor);return s===void 0?n===!0?{type:\"solid\",color:Zt(16777215,t)}:null:{type:\"solid\",color:Zt(s,t,i)}}var jm={1:[4,3],2:[1,3],3:[4,3,1,3],4:[4,3,1,3,1,3],5:[8,3],6:[8,3,1,3],7:[8,3,1,3,1,3],8:[1,1],9:[3,3],10:[3,3,1,3]};function Um(e){let t=n=>rr(e.simple.get(n)??0)/65536,r={t:t(ne.cropFromTop),b:t(ne.cropFromBottom),l:t(ne.cropFromLeft),r:t(ne.cropFromRight)};return Object.values(r).some(n=>Math.abs(n)>1e-9)?r:null}var Fr={1:\"triangle\",2:\"stealth\",3:\"diamond\",4:\"oval\",5:\"arrow\"};function Ga(e,t){let r=ms(e.simple.get(ne.lineStyleBooleans),8);if(r===!1)return null;let n=e.simple.get(ne.lineColor);if(n===void 0&&r!==!0)return null;let o=(e.simple.get(ne.lineWidth)??9525)/9525,i=e.simple.get(ne.lineDashing),s=(e.simple.get(ne.lineOpacity)??65536)/65536,l=e.simple.get(ne.lineStartArrow),a=e.simple.get(ne.lineEndArrow);return{color:Zt(n??0,t,s),width:o,dash:i?(jm[i]??[4,3]).map(c=>c*Math.max(o,1)):null,head:l&&Fr[l]?{type:Fr[l],w:3,h:3}:void 0,tail:a&&Fr[a]?{type:Fr[a],w:3,h:3}:void 0}}function Dm(e,t){if(ms(e.simple.get(ne.shadowStyleBooleans),2)!==!0)return;let r=rr(e.simple.get(ne.shadowOffsetX)??25400)/9525,n=rr(e.simple.get(ne.shadowOffsetY)??25400)/9525,o=Math.max(0,Math.min(1,(e.simple.get(ne.shadowOpacity)??65536)/65536)),i=e.simple.get(ne.shadowColor)??8421504;if(!(o<=0||r===0&&n===0))return{dx:r,dy:n,blur:4,color:Zt(i,t,o)}}var Bm={1:\"rect\",2:\"roundRect\",3:\"ellipse\",4:\"diamond\",5:\"triangle\",6:\"rtTriangle\",7:\"parallelogram\",8:\"trapezoid\",9:\"hexagon\",10:\"octagon\",11:\"plus\",12:\"star5\",13:\"rightArrow\",14:\"rightArrow\",15:\"homePlate\",16:\"cube\",17:\"wedgeRoundRectCallout\",18:\"star8\",19:\"arc\",20:\"line\",21:\"plaque\",22:\"can\",23:\"donut\",24:\"rect\",25:\"octagon\",26:\"hexagon\",27:\"rect\",28:\"wave\",29:\"donut\",30:\"rect\",31:\"donut\",32:\"straightConnector1\",33:\"bentConnector2\",34:\"bentConnector3\",35:\"bentConnector4\",36:\"bentConnector5\",37:\"curvedConnector2\",38:\"curvedConnector3\",39:\"curvedConnector4\",40:\"curvedConnector5\",41:\"callout1\",42:\"callout2\",43:\"callout2\",44:\"callout1\",45:\"callout2\",46:\"callout2\",47:\"borderCallout1\",48:\"borderCallout2\",49:\"borderCallout2\",50:\"borderCallout1\",51:\"borderCallout2\",52:\"borderCallout2\",53:\"ribbon\",54:\"ribbon2\",55:\"chevron\",56:\"pentagon\",57:\"noSmoking\",58:\"star8\",59:\"star16\",60:\"star32\",61:\"wedgeRectCallout\",62:\"wedgeRoundRectCallout\",63:\"wedgeEllipseCallout\",64:\"wave\",65:\"foldedCorner\",66:\"leftArrow\",67:\"downArrow\",68:\"upArrow\",69:\"leftRightArrow\",70:\"upDownArrow\",71:\"irregularSeal1\",72:\"irregularSeal2\",73:\"lightningBolt\",74:\"heart\",75:\"rect\",76:\"quadArrow\",77:\"leftArrowCallout\",78:\"rightArrowCallout\",79:\"upArrowCallout\",80:\"downArrowCallout\",81:\"leftRightArrowCallout\",82:\"upArrowCallout\",83:\"quadArrow\",84:\"bevel\",85:\"leftBracket\",86:\"rightBracket\",87:\"leftBrace\",88:\"rightBrace\",89:\"leftRightUpArrow\",90:\"bentArrow\",91:\"bentArrow\",92:\"star24\",93:\"stripedRightArrow\",94:\"notchedRightArrow\",95:\"blockArc\",96:\"smileyFace\",97:\"verticalScroll\",98:\"horizontalScroll\",99:\"circularArrow\",100:\"circularArrow\",101:\"uturnArrow\",102:\"curvedRightArrow\",103:\"curvedLeftArrow\",104:\"curvedUpArrow\",105:\"curvedDownArrow\",106:\"cloudCallout\",107:\"ribbon\",108:\"ribbon2\",109:\"flowChartProcess\",110:\"flowChartDecision\",111:\"flowChartInputOutput\",112:\"flowChartPredefinedProcess\",113:\"flowChartInternalStorage\",114:\"flowChartDocument\",115:\"flowChartMultidocument\",116:\"flowChartTerminator\",117:\"flowChartPreparation\",118:\"flowChartManualInput\",119:\"flowChartManualOperation\",120:\"flowChartConnector\",121:\"flowChartPunchedCard\",122:\"flowChartPunchedTape\",123:\"flowChartSummingJunction\",124:\"flowChartOr\",125:\"flowChartCollate\",126:\"flowChartSort\",127:\"flowChartExtract\",128:\"flowChartMerge\",129:\"flowChartOnlineStorage\",130:\"flowChartOnlineStorage\",131:\"flowChartMagneticTape\",132:\"flowChartMagneticDisk\",133:\"flowChartMagneticDrum\",134:\"flowChartDisplay\",135:\"flowChartDelay\",176:\"flowChartAlternateProcess\",177:\"flowChartOffpageConnector\",178:\"callout1\",179:\"callout1\",180:\"borderCallout1\",181:\"borderCallout1\",182:\"leftRightUpArrow\",183:\"sun\",184:\"moon\",185:\"bracketPair\",186:\"bracePair\",187:\"star4\",188:\"doubleWave\",189:\"actionButtonBlank\",190:\"actionButtonHome\",191:\"actionButtonHelp\",192:\"actionButtonInformation\",193:\"actionButtonForwardNext\",194:\"actionButtonBackPrevious\",195:\"actionButtonEnd\",196:\"actionButtonBeginning\",197:\"actionButtonReturn\",198:\"actionButtonDocument\",199:\"actionButtonSound\",200:\"actionButtonMovie\",202:\"rect\"},Hm=75;function Wm(e){let t=[];if(!e.length)return t;let r=new DataView(e.buffer,e.byteOffset,e.byteLength),n={61469:\"image/jpeg\",61470:\"image/png\",61471:\"image/bmp\",61481:\"image/tiff\",61482:\"image/jpeg\"},o={61466:\"image/emf\",61467:\"image/wmf\",61468:\"image/pict\"};for(let i of Be(r,0,e.length)){let s=i.type in o,l=s?o[i.type]:n[i.type];if(!l)continue;let a=i.start+((i.instance&1)===1?32:16),c=i.start+i.len;if(a>=c)continue;if(!s){t.push({mime:l,data:e.subarray(a+1,c)});continue}if(a+34>c)continue;let u=r.getUint32(a,!0),h=r.getUint8(a+32),f=e.subarray(a+34,c);if(h===0)try{let m=Ll(f,u?{out:new Uint8Array(u)}:void 0);t.push({mime:l,data:m})}catch{try{t.push({mime:l,data:oi(f)})}catch{}}else t.push({mime:l,data:f})}return t}function Vm(e,t){if(t.len<8)return null;let r=e.getInt16(t.start,!0),n=e.getInt16(t.start+2,!0),o=e.getInt16(t.start+4,!0),i=e.getInt16(t.start+6,!0);return{x:n,y:r,w:o-n,h:i-r}}function Gm(e,t){if(t.len<16)return null;let r=e.getInt32(t.start,!0),n=e.getInt32(t.start+4,!0),o=e.getInt32(t.start+8,!0),i=e.getInt32(t.start+12,!0);return{x:r,y:n,w:o-r,h:i-n}}function Xm(e,t){if(t.len<16)return null;let r=e.getInt32(t.start,!0),n=e.getInt32(t.start+4,!0),o=e.getInt32(t.start+8,!0),i=e.getInt32(t.start+12,!0);return{x:r,y:n,w:o-r,h:i-n}}function gs(e,t){return{id:e.getUint32(t.start,!0),flags:e.getUint32(t.start+4,!0)}}var yt={GROUP:1,PATRIARCH:4,DELETED:8,OLE:16,FLIPH:64,FLIPV:128,BACKGROUND:1024};function Ym(e,t,r){let n=t.complex.get(r);return n?Rt(e,n.start,n.len).replace(/\\0+$/,\"\"):null}function qm(e,t){let r=t.complex.get(ne.tableRowProperties);if(!r||r.len<6)return[];let n=e.getUint16(r.start,!0),o=e.getInt16(r.start+4,!0),i=o>0?o:4,s=[];for(let l=0;l<n;l++){let a=r.start+6+l*i;if(a+4>r.start+r.len)break;s.push(e.getInt32(a,!0))}return s}function Zm(e){return e.simple.has(ne.tableProperties)||e.complex.has(ne.tableRowProperties)}var _m={1:\"dissolve\",2:\"blinds\",3:\"checker\",4:\"cover\",5:\"dissolve\",6:\"fade\",7:\"pull\",8:\"randomBar\",9:\"strips\",10:\"wipe\",11:\"zoom\",12:\"zoom\",13:\"split\",17:\"zoom\",18:\"blinds\",19:\"blinds\",20:\"push\",21:\"comb\",22:\"newsflash\",23:\"fade\",26:\"wedge\",27:\"wheel\",28:\"circle\",29:\"diamond\",30:\"plus\"},Km={0:\"l\",1:\"u\",2:\"r\",3:\"d\"},Qm={0:\"horz-out\",1:\"horz-in\",2:\"vert-out\",3:\"vert-in\"},Jm={0:\"out\",1:\"in\"};function e2(e,t){if(e===\"split\")return Qm[t];if(e===\"zoom\"||e===\"circle\"||e===\"diamond\"||e===\"plus\"||e===\"wedge\")return Jm[t];if(e===\"push\"||e===\"pull\"||e===\"cover\"||e===\"wipe\"||e===\"strips\"||e===\"blinds\"||e===\"comb\"||e===\"wheel\"||e===\"randomBar\")return Km[t]}var t2={0:1e3,1:750,2:500},n2=4,r2=1024;function o2(e,t){let r=he(e,t.start,t.start+t.len,te.SSSlideInfoAtom);if(!r||r.len<13)return null;let n=e.getInt32(r.start,!0),o=e.getUint8(r.start+8),i=e.getUint8(r.start+9),s=e.getUint16(r.start+10,!0),l=e.getUint8(r.start+12),a=_m[i],c=a===void 0?void 0:{type:a,dir:e2(a,o),durationMs:t2[l]??750,advanceAfterMs:s&r2&&n>0?n:void 0};return{hidden:(s&n2)!==0,transition:c}}var kn={effectId:9,effectDir:10,effectClass:11,nodeType:20},i2=1,s2=2,l2=3,a2={1:\"entrance\",2:\"exit\",3:\"emphasis\",4:\"motion\",5:\"emphasis\",6:\"emphasis\"};function c2(e,t){if(t.len<5)return null;let r=e.getUint8(t.start);return r!==1&&r!==0?null:r===1?e.getInt32(t.start+1,!0):e.getUint8(t.start+1)}function u2(e,t){return t.len<3||e.getUint8(t.start)!==3?null:Rt(e,t.start+1,t.len-1).replace(/\\0+$/,\"\")}function Jc(e,t){let r=new Map,n=he(e,t.start,t.start+t.len,ut.TimePropertyList);if(!n)return r;for(let o of dt(e,n.start,n.start+n.len,ut.TimeVariant)){let i=c2(e,o);i!==null&&r.set(o.instance,i)}return r}function h2(e,t){for(let r of dt(e,t.start,t.start+t.len,ut.TimeConditionContainer)){if(r.instance!==1)continue;let n=he(e,r.start,r.start+r.len,ut.TimeConditionAtom);if(!n||n.len<16)continue;let o=e.getInt32(n.start+12,!0);return o>0?o:0}return 0}function f2(e,t){let r=he(e,t.start,t.start+t.len,ut.TimeNodeAtom);if(!r||r.len<32)return null;let n=e.getInt32(r.start+24,!0);return n>1?n:null}function eu(e,t,r,n,o=12){for(let i of Be(e,t,r)){if(i.type===ut.ClientVisualElement){let s=he(e,i.start,i.start+i.len,ut.VisualShapeAtom);s&&s.len>=12&&n.target===void 0&&(n.target=e.getUint32(s.start+8,!0));continue}if(i.type===ut.TimeVariant&&n.filter===void 0){let s=u2(e,i);s&&(n.filter=s);continue}if(i.type===ut.TimeNodeAtom&&i.len>=32&&n.duration===void 0){let s=e.getInt32(i.start+24,!0);s>1&&(n.duration=s);continue}i.type===ut.ExtTimeNodeContainer&&Jc(e,i).has(kn.effectId)||i.isContainer&&o>0&&eu(e,i.start,i.start+i.len,n,o-1)}}function d2(e,t){let r=[],n=(i,s,l)=>{for(let a of dt(e,i,s,ut.ExtTimeNodeContainer)){let c=Jc(e,a);if(c.has(kn.effectId)){let u=p2(e,a,c);u&&r.push(u);continue}l>0&&n(a.start,a.start+a.len,l-1)}};for(let i of _c(e,t,\"___PPT10\"))n(i.start,i.start+i.len,16);if(!r.length)return;let o=-1;for(let i of r)(i.trigger===\"click\"||o<0)&&o++,i.clickGroup=o;return r}function p2(e,t,r){let n={};if(eu(e,t.start,t.start+t.len,n),n.target===void 0)return null;let{effect:o,dir:i}=si(r.get(kn.effectId)??10,r.get(kn.effectDir)??0,n.filter),s=r.get(kn.nodeType)??i2,l=n.duration??f2(e,t)??500;return{target:n.target,effect:o,dir:i,delayMs:h2(e,t),durationMs:Math.max(60,Math.min(1e4,l)),trigger:s===s2?\"withPrev\":s===l2?\"afterPrev\":\"click\",kind:a2[r.get(kn.effectClass)??1]??\"entrance\"}}function m2(e,t,r,n){let o=t.complex.get(ne.pVertices),i=t.complex.get(ne.pSegmentInfo);if(!o)return null;let s=(M,S)=>{if(M.len<6||M.start<0||M.start+6>e.byteLength)return[];let y=e.getUint16(M.start,!0),$=e.getInt16(M.start+4,!0),k=$===-4?8:$;if(k<=0)return[];let A=Math.min(M.start+M.len,e.byteLength),L=[];for(let P=0;P<y;P++){let E=M.start+6+P*k;if(E+k>A)break;L.push(S(E))}return L};if(o.len<6||o.start<0||o.start+6>e.byteLength)return null;let l=e.getInt16(o.start+4,!0),a=s(o,M=>l===4?[e.getInt16(M,!0),e.getInt16(M+2,!0)]:[e.getInt32(M,!0),e.getInt32(M+4,!0)]);if(!a.length)return null;let c=t.simple.get(ne.geoLeft)??0,u=t.simple.get(ne.geoTop)??0,h=t.simple.get(ne.geoRight)??21600,f=t.simple.get(ne.geoBottom)??21600,m=r/Math.max(1,h-c),d=n/Math.max(1,f-u),p=M=>`${((M[0]-c)*m).toFixed(2)} ${((M[1]-u)*d).toFixed(2)}`;if(!i)return`M ${a.map(p).join(\" L \")} Z`;let b=s(i,M=>[e.getUint16(M,!0)]),v=[],x=0;for(let[M]of b){let S=M>>13;if(M===16384)v.push(`M ${p(a[x++]??[0,0])}`);else if(M===24577)v.push(\"Z\");else{if(M===32768)break;if(S===1||M===45824){let y=M===45824?1:M&8191;for(let $=0;$<y;$++){let k=a[x++],A=a[x++],L=a[x++];k&&A&&L&&v.push(`C ${p(k)} ${p(A)} ${p(L)}`)}}else if(S===0){let y=M&8191;for(let $=0;$<Math.max(1,y)&&a[x];$++)v.push(`L ${p(a[x++])}`)}}}return v.length?v.join(\" \"):`M ${a.map(p).join(\" L \")} Z`}var tt=e=>{let t=(e??\"000000\").padStart(6,\"0\");return`rgb(${parseInt(t.slice(0,2),16)||0},${parseInt(t.slice(2,4),16)||0},${parseInt(t.slice(4,6),16)||0})`},Xa=(e,t)=>({latin:e,ea:t,cs:\"\",scripts:{}});function g2(e,t){return{id:\"ppt:theme:1\",name:\"PowerPoint 97-2003\",colors:{lt1:tt(e[0]),dk1:tt(e[1]),lt2:tt(e[2]),dk2:tt(e[3]),accent1:tt(e[4]),accent2:tt(e[5]),accent3:tt(e[2]),accent4:tt(e[3]),accent5:tt(e[6]),accent6:tt(e[7]),hlink:tt(e[6]),folHlink:tt(e[7])},fonts:{major:Xa(t.majorLatin,t.majorEa),minor:Xa(t.minorLatin,t.minorEa)}}}var Xr=96/576,bs=[\"FFFFFF\",\"000000\",\"808080\",\"000000\",\"CCFFFF\",\"B2B2B2\",\"3333CC\",\"009999\"],tu=15,nu=1048576,b2=[[tu,2],[128,2],[16,2],[64,2],[32,4],[2048,2],[4096,2],[8192,2],[16384,2],[256,2],[1024,2],[32768,2],[nu,-1],[65536,2],[917504,2],[2097152,2]],x2=[[65535,2],[65536,2],[2097152,2],[4194304,2],[8388608,2],[131072,2],[262144,4],[524288,2]];function ru(e,t,r,n,o){let i=t;for(let[s,l]of b2){if(!(n&s))continue;if(s===nu){if(i+2>r||(i+=2+e.getUint16(i,!0)*4,i>r))return-1;continue}if(i+l>r)return-1;let a=l===2?e.getUint16(i,!0):e.getUint32(i,!0);s===tu?o.hasBullet=(a&1)!==0:s===128?o.bulletChar=String.fromCharCode(a):s===256?o.leftMargin=a:s===1024?o.indent=a:s===2048&&(o.align=a),i+=l}return o.hasBullet===void 0&&n&128&&(o.hasBullet=!0),i}function ou(e,t,r,n,o){let i=t;for(let[s,l]of x2){if(!(n&s))continue;if(i+l>r)return-1;let a=l===2?e.getUint16(i,!0):e.getUint32(i,!0);s===65535?(n&1&&(o.bold=(a&1)!==0),n&2&&(o.italic=(a&2)!==0),n&4&&(o.underline=(a&4)!==0)):s===65536?o.fontIdx=a:s===2097152?o.asianFontIdx=a:s===131072?o.size=a:s===262144&&(o.color=a),i+=l}return i}function iu(e,t,r){let n=[],o=[],i=t.start,s=t.start+t.len,l=r+1,a=0;for(;i+10<=s&&a<l;){let c=e.getUint32(i,!0),u=e.getUint16(i+4,!0),h=e.getUint32(i+6,!0),f={indentLevel:u},m=ru(e,i+10,s,h,f);if(m<0||(i=m,n.push({chars:c,props:f}),a+=c,c===0))break}for(a=0;i+8<=s&&a<l;){let c=e.getUint32(i,!0);if(c>l)break;let u=e.getUint32(i+4,!0),h={},f=ou(e,i+8,s,u,h);if(f<0||(i=f,o.push({chars:c,props:h}),a+=c,c===0))break}return{para:n,char:o}}var pe={TITLE:0,BODY:1,NOTES:2,OTHER:4,CENTER_BODY:5,CENTER_TITLE:6},v2={1:pe.TITLE,2:pe.BODY,3:pe.CENTER_TITLE,4:pe.CENTER_BODY,6:pe.NOTES,12:pe.NOTES,13:pe.TITLE,14:pe.BODY,15:pe.CENTER_TITLE,16:pe.CENTER_BODY,17:pe.TITLE,18:pe.BODY,19:pe.BODY};function su(e,t,r){let n=t.start+t.len,o=t.start;if(o+2>n)return;let i=e.getUint16(o,!0);o+=2;let s=[];for(let l=0;l<i&&(t.instance>=5&&(o+=2),!(o+4>n));l++){let a=e.getUint32(o,!0),c={},u=ru(e,o+4,n,a,c);if(u<0||u+4>n)break;let h=e.getUint32(u,!0),f={};if(u=ou(e,u+4,n,h,f),u<0)break;o=u,s.push({para:c,char:f})}s.length&&r.set(t.instance,s)}var w2={0:\"left\",1:\"center\",2:\"right\",3:\"justify\",4:\"justify\"};function y2(e,t,r){let n=e.text.replace(/\\r\\n?/g,`\n`).replace(/\\v/g,`\n`);if(!n.trim())return null;let o=[],i=0,s=0,l=0,a=p=>{for(;s<e.charProps.length&&l>=e.charProps[s].chars;)l=0,s++;let b=e.charProps[s];if(!b)return{props:{},take:p};let v=Math.max(1,b.chars-l);return{props:b.props,take:Math.min(p,v)}},c=e.links??[],u=p=>{var b;return(b=c.find(v=>p>=v.begin&&p<v.end))==null?void 0:b.link},h=(p,b)=>{let v=b;for(let x of c)x.begin>p&&x.begin-p<v&&(v=x.begin-p),x.end>p&&x.end-p<v&&(v=x.end-p);return Math.max(1,v)},f=e.paraProps.length?e.paraProps:[{chars:n.length+1,props:{}}],m=t.claimAutoNums(f.length),d=[];return f.forEach((p,b)=>{let v=n.slice(i,i+p.chars),x=i;i+=p.chars;let M=v.split(`\n`),S=M.length>1&&M[M.length-1]===\"\",y=S?M.slice(0,-1):M,$=p.props,k=t.levelStyle($.indentLevel??0),A=$.indentLevel??0,L=m?.[b]??null,P=null;L&&(d.length=A+1,d[A]=(d[A]??L.startNum-1)+1,P=Nm(L.scheme,d[A]));let E=x;y.forEach((T,I)=>{let O=[],R=0;for(;R<T.length;){let{props:V,take:B}=a(T.length-R),q=E+R,X=h(q,B),K=T.slice(R,R+X);l+=X,R+=X,O.push(Ya(K,V,k.char,t,u(q)))}if((I<y.length-1||S)&&(l+=1),!O.length){let{props:V}=a(1);O.push(Ya(\"\",V,k.char,t,void 0))}E+=T.length+1;let z=I===0?P:null,j=z!==null||($.hasBullet??k.para.hasBullet??!1),F=$.leftMargin??k.para.leftMargin,W=F!==void 0?F*Xr:j?24:0;o.push({align:w2[$.align??k.para.align??0]??\"left\",lvl:A,marL:W,indent:j?-Math.min(W,24):0,bullet:z??(j?M2($.bulletChar??k.para.bulletChar):null),lineHeight:null,spaceBefore:0,spaceAfter:2,runs:O})})}),o.length?{anchor:r===1||r===5?\"middle\":r===2||r===6?\"bottom\":\"top\",insets:[3.6,7.2,3.6,7.2],wrap:!0,fontScale:1,paragraphs:o}:null}function Ya(e,t,r,n,o){let i=t.color??r.color,s=[];for(let l of[t.fontIdx??r.fontIdx,t.asianFontIdx??r.asianFontIdx]){let a=l!==void 0?n.fonts[l]:void 0;a&&!s.includes(a)&&s.push(a)}return{text:e,b:t.bold??r.bold??!1,i:t.italic??r.italic??!1,u:t.underline??r.underline??!1,strike:!1,size:(t.size??r.size??18)*(96/72),color:i!==void 0?Zt(i,n.scheme):\"rgb(0,0,0)\",fonts:s,link:o}}var $2={108:\"\\u25CF\",110:\"\\u25A0\",109:\"\\u2751\",113:\"\\u2751\",117:\"\\u25C6\",118:\"\\u2756\",167:\"\\u25AA\",168:\"\\u25FB\",183:\"\\u2022\",216:\"\\u27A2\",252:\"\\u2713\",254:\"\\u2611\"};function M2(e){if(!e)return\"\\u2022\";let t=e.charCodeAt(0),r=t>=61440&&t<=61695?t-61440:t,n=$2[r];return n&&(t>=61440||t>127)?n:t>=61440||t<32||t===65533?\"\\u2022\":e}function k2(e,t){let r=e.autoNumCursor;if(t<=0||r+t>e.autoNums.length)return;let n=e.autoNums.slice(r,r+t);if(n.some(o=>o!==null))return e.autoNumCursor=r+t,n}function C2(e,t,r){let n=`${t}:${r}`,o=e.levelCache.get(n);if(o)return o;let i=(a,c)=>{let u=a.get(c);if(!(!u||!u.length))return u[Math.min(r,u.length-1)]},s=[i(e.envStyles,pe.OTHER),i(e.styles,pe.OTHER),i(e.styles,t)],l={para:Object.assign({},...s.map(a=>a?.para??{})),char:Object.assign({},...s.map(a=>a?.char??{}))};return e.levelCache.set(n,l),l}function S2(e,t){return{fonts:e.fonts,scheme:e.scheme,levelStyle:r=>C2(e,t,r),claimAutoNums:r=>k2(e,r)}}function E2(e,t){let{dv:r}=e,n=null,o=null,i,s=[],l;for(let c of Be(r,t.start,t.start+t.len))if(c.type===te.TextCharsAtom)n=Rt(r,c.start,c.len);else if(c.type===te.TextBytesAtom)n=ho(r,c.start,c.len);else if(c.type===te.StyleTextPropAtom)o=c;else if(c.type===te.TextHeaderAtom&&c.len>=4)i=r.getUint32(c.start,!0);else if(c.type===te.InteractiveInfo)l=lu(e,c);else if(c.type===te.TextInteractiveInfoAtom&&c.len>=8){let u=r.getUint32(c.start,!0),h=r.getUint32(c.start+4,!0);l&&h>u&&s.push({begin:u,end:h,link:l}),l=void 0}if(n===null)return null;let a=o?iu(r,o,n.length):{para:[],char:[]};return{text:n,paraProps:a.para,charProps:a.char,textType:i,links:s.length?s:void 0}}function T2(e,t){let{dv:r}=e,n=he(r,t.start,t.start+t.len,Me.ClientData);if(!n)return null;let o=he(r,n.start,n.start+n.len,te.OEPlaceholderAtom);return o&&o.len>=6?r.getUint8(o.start+4):null}var L2={1:(e,t)=>Math.min(e+1,t),2:e=>Math.max(e-1,1),3:()=>1,4:(e,t)=>t};function lu(e,t){let{dv:r}=e,n=he(r,t.start,t.start+t.len,te.InteractiveInfoAtom);if(!n||n.len<16)return;let o=r.getUint32(n.start+4,!0),i=e.links.get(o);if(i)return i;let s=L2[r.getUint8(n.start+10)];return s?`slide:${s(e.slideIndex,e.slideCount)}`:void 0}function A2(e,t){let{dv:r}=e,n=he(r,t.start,t.start+t.len,Me.ClientData);if(!n)return;let o=he(r,n.start,n.start+n.len,te.InteractiveInfo);return o?lu(e,o):void 0}function P2(e,t){let r=new Map,n=he(e,t.start,t.start+t.len,te.ExObjList);if(!n)return r;for(let o of dt(e,n.start,n.start+n.len,te.ExHyperlink)){let i=null,s=null,l=null;for(let c of Be(e,o.start,o.start+o.len))if(c.type===te.ExHyperlinkAtom&&c.len>=4)i=e.getUint32(c.start,!0);else if(c.type===te.CString){let u=Rt(e,c.start,c.len).replace(/\\0+$/,\"\");c.instance===1?s=u:c.instance===0&&(l=u)}let a=s??l;i!==null&&a&&r.set(i,a)}return r}function I2(e,t,r){let n=e.trim();if(!n)return null;let o=n.toLowerCase(),i=/^#?action\\?jump=(.+)$/.exec(o)??/^#action\\?jump=(.+)$/.exec(o);if(i){let l=i[1];if(l===\"firstslide\")return\"slide:1\";if(l===\"lastslide\")return`slide:${r}`;if(l===\"nextslide\")return`slide:${Math.min(t+1,r)}`;if(l===\"previousslide\")return`slide:${Math.max(t-1,1)}`;let a=/(\\d+)/.exec(l);return a?`slide:${a[1]}`:null}let s=/^\\s*\\d+\\s*,\\s*(\\d+)\\s*,/.exec(n);if(s)return`slide:${s[1]}`;if(n.startsWith(\"#\")){let l=/(\\d+)\\s*$/.exec(n);return l?`slide:${l[1]}`:null}return/^[a-z][a-z0-9+.-]*:/.test(o)?n:/^www\\./.test(o)?`https://${n}`:n}function au(e,t,r){let{dv:n}=e,o=he(n,t.start,t.start+t.len,Me.ClientAnchor);if(o){let s=Vm(n,o);if(s)return{x:s.x*e.scale,y:s.y*e.scale,w:s.w*e.scale,h:s.h*e.scale}}let i=he(n,t.start,t.start+t.len,Me.ChildAnchor);if(i){let s=Gm(n,i);if(s)return{x:r.x+s.x*r.sx,y:r.y+s.y*r.sy,w:s.w*r.sx,h:s.h*r.sy}}return null}function cu(e,t,r,n,o){let i=r.simple.get(ne.rotation),s={x:e.x,y:e.y,w:e.w,h:e.h,rot:i!==void 0?i/65536%360:0,flipH:(t.flags&yt.FLIPH)!==0,flipV:(t.flags&yt.FLIPV)!==0,id:t.id};if(o){let a=Ym(o,r,ne.wzName);a&&(s.name=a)}let l=Dm(r,n);return l&&(s.effects={shadow:l}),s}function qa(e,t,r){let{dv:n}=e,o=he(n,t.start,t.start+t.len,Me.Sp);if(!o)return null;let i=gs(n,o);if(i.flags&yt.DELETED||i.flags&(yt.PATRIARCH|yt.GROUP)||i.flags&yt.BACKGROUND)return null;let s=T2(e,t);if(e.masterPass&&s!==null&&s!==0)return null;let l=o.instance,a=he(n,t.start,t.start+t.len,Me.Opt),c=a?ps(n,a):{simple:new Map,complex:new Map},u=au(e,t,r);if(!u||u.w<=0||u.h<=0)return null;let h=cu(u,i,c,e.scheme,n),f=A2(e,t);f&&(h.link=f);let m=L=>e.blobs[L-1]??null,d=c.simple.get(ne.pib),p=d===void 0?null:m(d);if(i.flags&yt.OLE)return{kind:\"unsupported\",...h,label:\"\\u4E0D\\u652F\\u6301\\u7F16\\u8F91\\u7684\\u65E7\\u7248 OLE \\u5BF9\\u8C61\",...p?{preview:p}:{}};if(d!==void 0&&(l===Hm||d>0)&&p)return{kind:\"image\",...h,src:p,crop:Um(c),stroke:Ga(c,e.scheme)};let b=Qc(c,e.scheme,m),v=Ga(c,e.scheme),x=null,M=!1;l===0&&c.complex.has(ne.pVertices)&&(x=m2(n,c,u.w,u.h));let S=Bm[l]??(l===4095?\"rect\":null);if(!x&&!S)return{kind:\"unsupported\",...h,label:`\\u4E0D\\u652F\\u6301\\u7684\\u65E7\\u7248\\u5F62\\u72B6\\uFF08MSOSPT ${l}\\uFF09`};if(!x){let L=R2(c,l),P=nn(S,u.w,u.h,L);x=P.d,M=P.open,e.edit&&(h.editInfo={geom:{preset:S,adj:L}})}let y=he(n,t.start,t.start+t.len,Me.ClientTextbox),$=y?E2(e,y):null;if(!$){let L=c.simple.get(ne.lTxid);L!==void 0&&e.listText[L]&&($=e.listText[L])}let k=$?.textType??(s!==null?v2[s]:void 0)??pe.OTHER,A=$?y2($,S2(e,k),c.simple.get(ne.anchorText)):null;return!A&&(!b||b.type===\"none\")&&!v?null:{kind:\"shape\",...h,path:x,fill:M?{type:\"none\"}:b,stroke:v,text:A,openGeom:M||void 0}}var N2=new Set([19,98,102,103]);function R2(e,t){let r=N2.has(t),n={},o=[[ne.adjustValue,\"adj1\"],[ne.adjust2Value,\"adj2\"],[ne.adjust3Value,\"adj3\"],[ne.adjust4Value,\"adj4\"]];for(let[i,s]of o){let l=e.simple.get(i);if(l===void 0)continue;let a=l>2147483647?l-4294967296:l;if(r){n[s]=a/65536*6e4;continue}Math.abs(a)>21600*4||(n[s]=a/21600*1e5)}return n.adj1!==void 0&&(n.adj=n.adj1),n}var O2=e=>({x:0,y:0,sx:e.scale,sy:e.scale});function uu(e,t,r,n=0){let{dv:o}=e,i=[],s=[...Be(o,t.start,t.start+t.len)],l=s.find(m=>m.type===Me.SpContainer),a=l?z2(e,l,r):null,c=a?.rec??null,u=r;if(a){let m=a.box.w/a.space.w,d=a.box.h/a.space.h;u={x:a.box.x-a.space.x*m,y:a.box.y-a.space.y*d,sx:m,sy:d}}let h=m=>{let d=[];for(let p of s){if(p===c||p.type!==Me.SpContainer)continue;let b=qa(e,p,m);b&&d.push(b)}return d};if(a&&Zm(a.props)){let m=h(u),d=Za(m,qm(o,a.props).map(p=>p*e.scale));return d?[d]:m}if(a&&s.filter(m=>m.type===Me.SpContainer).length>=4){let m=F2(h(u));if(j2(m)){let d=Za(m,[]);if(d)return[d]}}let f=(m,d)=>{for(let p of s)if(p!==c)if(p.type===Me.SpContainer){let b=qa(e,p,m);b&&d.push(b)}else p.type===Me.SpgrContainer&&n<8&&d.push(...uu(e,p,m,n+1))};if(a){let m=[];if(f(O2(e),m),!m.length)return[];let d=a.space.w*e.scale,p=a.space.h*e.scale;return[{kind:\"group\",...cu(a.box,a.sp,a.props,e.scheme,e.dv),childX:a.space.x*e.scale,childY:a.space.y*e.scale,scaleX:a.box.w/d,scaleY:a.box.h/p,children:m}]}return f(u,i),i}function z2(e,t,r){let{dv:n}=e,o=he(n,t.start,t.start+t.len,Me.Spgr),i=he(n,t.start,t.start+t.len,Me.Sp);if(!o||!i)return null;let s=gs(n,i);if(!(s.flags&yt.GROUP)||s.flags&yt.PATRIARCH)return null;let l=Xm(n,o),a=au(e,t,r);if(!l||!a||l.w<=0||l.h<=0||a.w<=0||a.h<=0)return null;let c=he(n,t.start,t.start+t.len,Me.Opt),u=c?ps(n,c):{simple:new Map,complex:new Map};return{rec:t,sp:s,props:u,box:a,space:l}}function F2(e){let t=e.filter(o=>o.kind===\"shape\");if(t.length!==e.length)return e;let r=3,n=[];for(let o of t){let i=n.find(s=>Math.abs(s.x-o.x)<=r&&Math.abs(s.y-o.y)<=r&&Math.abs(s.w-o.w)<=r*2&&Math.abs(s.h-o.h)<=r*2);if(!i){n.push({...o});continue}!i.text&&o.text&&(i.text=o.text),(!i.fill||i.fill.type===\"none\")&&o.fill&&o.fill.type!==\"none\"&&(i.fill=o.fill),!i.stroke&&o.stroke&&(i.stroke=o.stroke)}return n}function j2(e){let t=e.filter(c=>c.kind===\"shape\"&&c.path!==null);if(t.length<4||t.length!==e.length)return!1;let r=2.5,n=c=>{let u=[...c].sort((f,m)=>f-m),h=[];for(let f of u)(!h.length||f-h[h.length-1]>r)&&h.push(f);return h},o=n(t.map(c=>c.x)),i=n(t.map(c=>c.y));if(o.length<2||i.length<2||t.length>o.length*i.length||t.length<o.length*i.length*.5)return!1;let s=(c,u,h)=>{for(let f=0;f+1<c.length;f++)if(!u.some((m,d)=>Math.abs(m-c[f])<=r&&Math.abs(h[d]-c[f+1])<=r*2))return!1;return!0},l=s(o,t.map(c=>c.x),t.map(c=>c.x+c.w)),a=s(i,t.map(c=>c.y),t.map(c=>c.y+c.h));return l&&a}function Za(e,t){var r,n,o;let i=e.filter(y=>y.kind===\"shape\");if(i.length<2)return null;let s=2,l=y=>{let $=[...y].sort((A,L)=>A-L),k=[];for(let A of $)(!k.length||A-k[k.length-1]>s)&&k.push(A);return k},a=l(i.map(y=>y.x)),c=l(i.map(y=>y.y));if(a.length<1||c.length<1)return null;let u=a[0],h=c[0],f=Math.max(...i.map(y=>y.x+y.w)),m=Math.max(...i.map(y=>y.y+y.h)),d=a.map((y,$)=>($+1<a.length?a[$+1]:f)-y),p=c.map((y,$)=>($+1<c.length?c[$+1]:m)-y),b=t.length===c.length?t:p,v=y=>{let $=0;for(let k=0;k<a.length;k++)y>=a[k]-s&&($=k);return $},x=y=>{let $=0;for(let k=0;k<c.length;k++)y>=c[k]-s&&($=k);return $},M=c.map(()=>a.map(()=>null));for(let y of i){let $=x(y.y),k=v(y.x);if(M[$][k])continue;let A=0;for(let P=k;P<a.length&&a[P]<y.x+y.w-s;P++)A++;let L=0;for(let P=$;P<c.length&&c[P]<y.y+y.h-s;P++)L++;M[$][k]={colSpan:Math.max(1,A),rowSpan:Math.max(1,L),merged:!1,fill:y.fill,text:y.text,borders:{l:y.stroke,r:y.stroke,t:y.stroke,b:y.stroke},vAlign:((r=y.text)==null?void 0:r.anchor)===\"middle\"?\"middle\":((n=y.text)==null?void 0:n.anchor)===\"bottom\"?\"bottom\":\"top\"};for(let P=$;P<$+Math.max(1,L);P++)for(let E=k;E<k+Math.max(1,A);E++)P===$&&E===k||((o=M[P])==null?void 0:o[E])===null&&(M[P][E]={colSpan:1,rowSpan:1,merged:!0,fill:null,text:null})}let S=M.map((y,$)=>({height:b[$]??0,cells:y.map(k=>k??{colSpan:1,rowSpan:1,merged:!1,fill:null,text:null})}));return{kind:\"table\",x:u,y:h,w:f-u,h:m-h,rot:0,flipH:!1,flipV:!1,colWidths:d,rows:S,name:\"\\u8868\\u683C\"}}function U2(e,t){let r=new Map;for(let n of Be(e,0,t)){if(n.type!==te.PersistDirectoryAtom)continue;let o=n.start+n.len,i=n.start;for(;i+4<=o;){let s=e.getUint32(i,!0);i+=4;let l=s&1048575,a=s>>>20;for(let c=0;c<a&&i+4<=o;c++,i+=4)r.set(l+c,e.getUint32(i,!0))}}return r}function Oi(e,t,r,n,o,i){let s=[];for(let l of dt(e,t.start,t.start+t.len,te.SlideListWithText))if(l.instance===r)for(let a of dt(e,l.start,l.start+l.len,te.SlidePersistAtom)){if(a.len<16)continue;let c=n.get(e.getUint32(a.start,!0)),u=c!==void 0?o.get(c):void 0;u&&i.includes(u.type)&&s.push({rec:u,slideId:e.getUint32(a.start+12,!0)})}return s}function jr(e,t,r,n){var o,i,s;let l=[(o=t.get(pe.OTHER))==null?void 0:o[0],(i=e?.get(pe.OTHER))==null?void 0:i[0]];for(let c of r)l.push((s=e?.get(c))==null?void 0:s[0]);let a;for(let c of l)c?.char[n]!==void 0&&(a=c.char[n]);return a}function D2(e,t){let r=n=>n===void 0?\"\":t.fonts[n]??\"\";return{majorLatin:r(jr(e?.styles,t.envStyles,[pe.TITLE,pe.CENTER_TITLE],\"fontIdx\")),majorEa:r(jr(e?.styles,t.envStyles,[pe.TITLE,pe.CENTER_TITLE],\"asianFontIdx\")),minorLatin:r(jr(e?.styles,t.envStyles,[pe.BODY,pe.CENTER_BODY],\"fontIdx\")),minorEa:r(jr(e?.styles,t.envStyles,[pe.BODY,pe.CENTER_BODY],\"asianFontIdx\"))}}function Ki(e,t,r){for(let n of dt(e,t.start,t.start+t.len,te.ColorSchemeAtom)){if(n.instance!==r||n.len<32)continue;let o=[];for(let i=0;i<8;i++){let s=e.getUint32(n.start+i*4,!0),l=[s&255,s>>8&255,s>>16&255];o.push(l.map(a=>a.toString(16).padStart(2,\"0\")).join(\"\"))}return o}return null}function hu(e,t,r,n){let o=he(e,t.start,t.start+t.len,Me.DgContainer);if(!o)return null;for(let i of dt(e,o.start,o.start+o.len,Me.SpContainer)){let s=he(e,i.start,i.start+i.len,Me.Sp);if(!s||!(gs(e,s).flags&yt.BACKGROUND))continue;let l=he(e,i.start,i.start+i.len,Me.Opt);if(!l)continue;let a=ps(e,l);if(!a.simple.has(ne.fillColor)&&!a.simple.has(ne.fillType)&&!a.simple.has(ne.fillBlip))continue;let c=Qc(a,r,n);if(c&&c.type!==\"none\")return c}return null}function fu(e,t){let r=[],n=he(e.dv,t.start,t.start+t.len,Me.DgContainer);if(!n)return r;for(let o of dt(e.dv,n.start,n.start+n.len,Me.SpgrContainer))r.push(...uu(e,o,{x:0,y:0,sx:e.scale,sy:e.scale}));return r}function B2(e,t,r){let n=Ki(e,t,1)??Ki(e,t,6)??bs,o=new Map;for(let c of dt(e,t.start,t.start+t.len,te.TxMasterStyleAtom))su(e,c,o);let i=he(e,t.start,t.start+t.len,te.PPDrawing),s=i?hu(e,i,n,c=>r.blobs[c-1]??null):null,l={dv:e,scheme:n,fonts:r.fonts,blobs:r.blobs,listText:[],scale:r.scale,styles:o,envStyles:r.envStyles,links:new Map,masterPass:!0,levelCache:new Map,slideIndex:1,slideCount:1,autoNums:Kc(e,t),autoNumCursor:0,edit:r.edit},a=i?fu(l,i):[];return{scheme:n,styles:o,background:s,elements:a}}function H2(e,t){let r=[],n=-1,o=(i,s,l)=>{for(let a of Be(e,i,s))if(a.type===te.TextHeaderAtom&&a.len>=4)n=e.getUint32(a.start,!0);else if(a.type===te.TextCharsAtom||a.type===te.TextBytesAtom){if(n===pe.NOTES){let c=(a.type===te.TextCharsAtom?Rt(e,a.start,a.len):ho(e,a.start,a.len)).replace(/\\r\\n?/g,`\n`).replace(/\\v/g,`\n`).replace(/\\0/g,\"\").trim();c&&r.push(c)}n=-1}else(a.isContainer||a.type===Me.ClientTextbox)&&l<8&&o(a.start,a.start+a.len,l+1)};return o(t.start,t.start+t.len,0),r.join(`\n`)}function W2(e,t,r=!1){var n;let o=new _r(e);if(o.stream(\"EncryptedPackage\")||o.stream(\"EncryptionInfo\"))throw new Error(\"\\u8BE5\\u6587\\u4EF6\\u662F\\u52A0\\u5BC6\\u7684 OOXML \\u5BB9\\u5668\\uFF0C\\u8BF7\\u7528 parse(input, { password })\");let i=o.stream(\"PowerPoint Document\");if(!i)throw new Error(\"\\u65E0\\u6548\\u7684 .ppt\\uFF1A\\u627E\\u4E0D\\u5230 PowerPoint Document \\u6D41\");let s=o.stream(\"Current User\");if($m(s)&&s){let B=X1();if(!B)throw new Error(\"\\u8BE5 .ppt \\u5DF2\\u52A0\\u5BC6\\uFF0C\\u4F46\\u672A\\u6CE8\\u5165\\u89E3\\u5BC6\\u5668\\uFF08setPptDecryptor\\uFF09\");if(t===void 0)throw new Kr;let q=B(i,s,t);if(!q)throw new Error(\"\\u8BE5 .ppt \\u5DF2\\u52A0\\u5BC6\\uFF0C\\u4F46\\u52A0\\u5BC6\\u7ED3\\u6784\\u65E0\\u6CD5\\u8BC6\\u522B\");i=q}let l=new DataView(i.buffer,i.byteOffset,i.byteLength),a=720*(96/72),c=540*(96/72),u=o.stream(\"Pictures\"),h=u?Wm(u):[],f=h.map(B=>{try{return B.mime===\"image/emf\"||B.mime===\"image/wmf\"||B.mime===\"image/pict\"?ii(B.data):URL.createObjectURL(new Blob([B.data.slice().buffer],{type:B.mime}))}catch{return null}}),m=new Map,d=[];for(let B of Be(l,0,i.length))m.set(B.start-8,B),d.push(B);let p=[],b=new Map,v=he(l,0,i.length,te.Document),x=(B,q,X)=>{for(let K of Be(l,B,q)){if(K.type===te.DocumentAtom&&K.len>=8)a=l.getInt32(K.start,!0)*Xr,c=l.getInt32(K.start+4,!0)*Xr;else if(K.type===te.FontEntityAtom){let Y=Rt(l,K.start,Math.min(K.len,64)).replace(/\\0.*$/,\"\");Y&&(p[K.instance<512?K.instance:p.length]=Y)}else K.type===te.TxMasterStyleAtom&&su(l,K,b);K.isContainer&&X<4&&x(K.start,K.start+K.len,X+1)}};v&&x(v.start,v.start+v.len,0);let M={fonts:p,blobs:f,scale:Xr,envStyles:b,edit:r},S=U2(l,i.length),y=B=>d.filter(q=>q.type===B),$=v?Oi(l,v,0,S,m,[te.Slide]):[];$.length||($=y(te.Slide).map(B=>({rec:B,slideId:0})));let k=v?Oi(l,v,1,S,m,[te.MainMaster,te.Slide]):[],A=v?Oi(l,v,2,S,m,[te.Notes]):[],L=new Map,P=new Map;for(let B of k)P.set(B.slideId,B.rec);let E=((n=k[0])==null?void 0:n.rec)??y(te.MainMaster)[0]??null,T=B=>{let q=P.get(B)??E;if(!q)return null;let X=q.start,K=L.get(X);return K||(K=B2(l,q,M),L.set(X,K)),K},I=new Map;for(let B of A)I.set(B.slideId,B.rec);let O=new Map;for(let B of y(te.Notes)){let q=he(l,B.start,B.start+B.len,te.NotesAtom);q&&q.len>=4&&O.set(l.getUint32(q.start,!0),B)}let R=v?P2(l,v):new Map,z=$.length,j=null,F=$.map((B,q)=>{let X=he(l,B.rec.start,B.rec.start+B.rec.len,te.SlideAtom),K=X&&X.len>=24?l.getUint32(X.start+12,!0):0,Y=X&&X.len>=24?l.getUint32(X.start+16,!0):0,se=X&&X.len>=24?l.getUint16(X.start+20,!0):7,ue=I.get(Y)??O.get(B.slideId)??null,fe=T(K);return j??(j=fe),G2(l,B.rec,M,{master:fe,followMasterObjects:(se&1)!==0,followMasterBackground:(se&4)!==0,notes:ue?H2(l,ue):\"\",hyperlinks:R,index:q+1,count:z})});if(!F.length||F.every(B=>!B.elements.length)){let B=V2(l,i.length,a,c);B.length&&(F=B)}if(!F.length)throw new Error(\".ppt \\u4E2D\\u672A\\u627E\\u5230\\u5E7B\\u706F\\u7247\");let W=r?f.flatMap((B,q)=>{let X=B!=null&&B.startsWith(\"blob:\")?h[q]:void 0;return B&&X?[{url:B,mime:X.mime,bytes:X.data.slice()}]:[]}):[],V=!1;return{width:a,height:c,slides:F,source:\"ppt\",...r?{editInfo:{layouts:[],masters:[],themes:[g2(j?.scheme??bs,D2(j,M))],assets:W}}:{},dispose:()=>{if(!V){V=!0;for(let B of f)if(B!=null&&B.startsWith(\"blob:\"))try{URL.revokeObjectURL(B)}catch{}}}}}function V2(e,t,r,n){let o=(function h(f,m,d){for(let p of Be(e,f,m)){if(p.type===te.SlideListWithText&&p.instance===0)return p;if(p.isContainer&&d<4){let b=h(p.start,p.start+p.len,d+1);if(b)return b}}return null})(0,t,0);if(!o)return[];let i=[],s=null,l=4;for(let h of Be(e,o.start,o.start+o.len))if(h.type===te.SlidePersistAtom)s={titles:[],bodies:[]},i.push(s);else if(h.type===te.TextHeaderAtom&&h.len>=4)l=e.getUint32(h.start,!0);else if(s&&(h.type===te.TextCharsAtom||h.type===te.TextBytesAtom)){let f=h.type===te.TextCharsAtom?Rt(e,h.start,h.len):ho(e,h.start,h.len);(l===0||l===6?s.titles:s.bodies).push(f)}let a=(h,f,m,d)=>({text:h,b:m,i:!1,u:!1,strike:!1,size:f,color:d,fonts:[]}),c=(h,f)=>({align:\"left\",lvl:0,marL:f?24:0,indent:f?-24:0,bullet:f,lineHeight:null,spaceBefore:0,spaceAfter:6,runs:h}),u=h=>h.split(/[\\r\\n\\v]/).map(f=>f.trim()).filter(Boolean);return i.filter(h=>h.titles.length||h.bodies.length).map(h=>{let f=[];return h.titles.length&&f.push({kind:\"shape\",x:r*.06,y:n*.05,w:r*.88,h:n*.16,rot:0,flipH:!1,flipV:!1,path:null,fill:null,stroke:null,text:{anchor:\"middle\",insets:[4,8,4,8],wrap:!0,fontScale:1,paragraphs:h.titles.flatMap(m=>u(m).map(d=>c([a(d,34,!0,\"rgb(30,30,30)\")],null)))}}),h.bodies.length&&f.push({kind:\"shape\",x:r*.06,y:n*.24,w:r*.88,h:n*.68,rot:0,flipH:!1,flipV:!1,path:null,fill:null,stroke:null,text:{anchor:\"top\",insets:[4,8,4,8],wrap:!0,fontScale:1,paragraphs:h.bodies.flatMap(m=>u(m).map(d=>c([a(d,20,!1,\"rgb(50,50,50)\")],\"\\u2022\")))}}),{background:{type:\"solid\",color:\"rgb(255,255,255)\"},elements:f}})}function G2(e,t,r,n){var o,i,s;let l=t.start+t.len,a=Ki(e,t,1)??((o=n.master)==null?void 0:o.scheme)??bs,c=[],u=null,h=null,f,m=()=>{if(h===null)return;let k=u?iu(e,u,h.length):{para:[],char:[]};c.push({text:h,paraProps:k.para,charProps:k.char,textType:f}),h=null,u=null,f=void 0};for(let k of Be(e,t.start,l))k.type===te.TextHeaderAtom?(m(),k.len>=4&&(f=e.getUint32(k.start,!0))):k.type===te.TextCharsAtom?h=Rt(e,k.start,k.len):k.type===te.TextBytesAtom?h=ho(e,k.start,k.len):k.type===te.StyleTextPropAtom&&(u=k);m();let d=new Map;for(let[k,A]of n.hyperlinks){let L=I2(A,n.index,n.count);L&&d.set(k,L)}let p={dv:e,scheme:a,fonts:r.fonts,blobs:r.blobs,listText:c,scale:r.scale,styles:((i=n.master)==null?void 0:i.styles)??new Map,envStyles:r.envStyles,links:d,masterPass:!1,levelCache:new Map,slideIndex:n.index,slideCount:n.count,autoNums:Kc(e,t),autoNumCursor:0,edit:r.edit},b=[];n.master&&n.followMasterObjects&&b.push(...n.master.elements);let v=he(e,t.start,l,te.PPDrawing);v&&b.push(...fu(p,v));let x=v?hu(e,v,a,k=>r.blobs[k-1]??null):null,M=(n.followMasterBackground?((s=n.master)==null?void 0:s.background)??null:null)??x??{type:\"solid\",color:Zt(134217728,a)},S=o2(e,t),y=S?.transition,$=d2(e,t);return{background:M,elements:b,notes:n.notes||void 0,hidden:S!=null&&S.hidden?!0:void 0,transition:y,animations:$}}var X2=/[、。,.:;!?」』】〕)》〉}]”]/,du=/[「『【〔(《〈{[“]/,Sn=e=>du.test(e);function Tn(e){return X2.test(e)||du.test(e)?.5:0}function xs(e){let t=0;for(let r of e)t+=Tn(r);return t}function pu(e,t){let r=e.length,n=new Array(r).fill(0),o=new Array(r).fill(0),i=0;for(let s=0;s<r;s++){let l=Tn(e[s]);!l||!(t||s===0&&Sn(e[s])||s===r-1&&!Sn(e[s])||s>0&&Tn(e[s-1])>0)||(o[s]=l,i+=l,Sn(e[s])?n[s]-=l:s+1<r&&(n[s+1]-=l))}return{dx:n,amount:o,total:i}}function Y2(e){let t=e.codePointAt(0)??0;return t>=4352&&t<=4447||t>=11904&&t<=12350||t>=12353&&t<=13311||t>=13312&&t<=19903||t>=19968&&t<=40959||t>=40960&&t<=42191||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510||t>=131072&&t<=262141}var oe=e=>e.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\"),C=e=>Number.isFinite(e)?String(Math.round(e*100)/100):\"0\";function Qr(e){return e.replace(/['\"\\\\<>&\\u0000-\\u001f\\u007f]/gu,t=>`\\\\${t.codePointAt(0).toString(16)} `)}var q2=\"'Cambria Math','Latin Modern Math','STIX Two Math','Times New Roman',serif\",_a={\"\\u0300\":\"\\u02CB\",\"\\u0301\":\"\\u02CA\",\"\\u0302\":\"\\u02C6\",\"\\u0303\":\"\\u02DC\",\"\\u0306\":\"\\u02D8\",\"\\u0307\":\"\\u02D9\",\"\\u0308\":\"\\xA8\",\"\\u030A\":\"\\u02DA\",\"\\u030C\":\"\\u02C7\",\"\\u20D6\":\"\\u2190\",\"\\u20D7\":\"\\u2192\",\"\\u20E1\":\"\\u2194\",\"\\u20DB\":\"\\u22EF\",\"\\u20DC\":\"\\u22EF\"},Ur=new Set([\"\\u0305\",\"\\u0304\",\"\\u203E\",\"\\xAF\",\"\\u0332\",\"\\u0333\",\"_\"]),Z2=new Set([\"\\u23DE\",\"\\u23DF\",\"\\u23B4\",\"\\u23B5\",\"\\u23DC\",\"\\u23DD\"]),zi=.72,_2=.5,$n=(e,t)=>({...e,size:Math.max(e.size*t,e.size*_2)});function Kn(){return{w:0,h:0,d:0,draw:()=>\"\"}}var Jr=.72,eo=.22;function mu(e,t,r,n,o,i,s=\"\"){let l=`font-family:${q2};font-size:${C(t.size)}px;`+(r?\"font-style:italic;\":\"\")+(n?\"font-weight:700;\":\"\");return s?`<text x=\"0\" y=\"0\" style=\"${l}\" fill=\"${t.color}\" xml:space=\"preserve\" transform=\"${s}\">${oe(e)}</text>`:`<text x=\"${C(o)}\" y=\"${C(i)}\" style=\"${l}\" fill=\"${t.color}\" xml:space=\"preserve\">${oe(e)}</text>`}function Yt(e,t,r,n){return{w:t.measure(e,t.size,r,n),h:t.size*Jr,d:t.size*eo,draw:(o,i)=>mu(e,t,r,n,o,i)}}function Ka(e,t,r,n){let o=Yt(e,t,!1,!1),i=t.size*(Jr+eo),s=r+n;if(s<=i*1.02)return o;let l=s/i,a=(n-r)/2+(Jr-eo)/2*t.size*l;return{w:o.w,h:r,d:n,draw:(c,u)=>mu(e,t,!1,!1,0,0,`translate(${C(c)} ${C(u+a)}) scale(1 ${C(l)})`)}}function K2(e,t,r){return{w:e,h:t,d:0,draw:(n,o)=>`<rect x=\"${C(n)}\" y=\"${C(o-t)}\" width=\"${C(e)}\" height=\"${C(t)}\" fill=\"${r}\"/>`}}function Mn(e){if(!e.length)return Kn();let t=e.reduce((o,i)=>o+i.w,0),r=Math.max(...e.map(o=>o.h)),n=Math.max(...e.map(o=>o.d));return{w:t,h:r,d:n,draw:(o,i)=>{let s=o,l=[];for(let a of e)l.push(a.draw(s,i)),s+=a.w;return l.join(\"\")}}}function Dr(e,t,r){if(!e.length)return Kn();let n=Math.max(...e.map(s=>s.w)),o=0,i=0;return e.forEach((s,l)=>{l<r?o+=s.h+s.d+t:l===r?(o+=s.h,i+=s.d):i+=s.h+s.d+t}),{w:n,h:o,d:i,draw:(s,l)=>{let a=l-o,c=[];for(let u of e)a+=u.h,c.push(u.draw(s+(n-u.w)/2,a)),a+=u.d+t;return c.join(\"\")}}}function Ce(e,t){return Mn(e.map(r=>Q2(r,t)))}function Q2(e,t){var r,n;switch(e.kind){case\"run\":{let o=e.sty??\"i\",i=/^[\\d\\s.,+\\-=<>()[\\]{}|/*]+$/.test(e.text);return Yt(e.text,t,(o===\"i\"||o===\"bi\")&&!i,o===\"b\"||o===\"bi\")}case\"frac\":{if(e.type===\"lin\")return Mn([Ce(e.num,t),Yt(\"/\",t,!1,!1),Ce(e.den,t)]);if(e.type===\"skw\"){let d=$n(t,.85);return Mn([Ce(e.num,d),Yt(\"\\u2044\",t,!1,!1),Ce(e.den,d)])}let o=$n(t,.9),i=Ce(e.num,o),s=Ce(e.den,o),l=t.size*.22,a=Math.max(i.w,s.w)+l*2,c=Math.max(.6,t.size*.055),u=t.size*.28,h=t.size*.18,f=u+c+h+i.h+i.d,m=-u+c+h+s.h+s.d;return{w:a,h:f,d:m,draw:(d,p)=>{let b=p-u,v=[i.draw(d+(a-i.w)/2,b-h-i.d),s.draw(d+(a-s.w)/2,b+c+h+s.h)];return e.type!==\"noBar\"&&v.push(`<rect x=\"${C(d+l*.4)}\" y=\"${C(b)}\" width=\"${C(a-l*.8)}\" height=\"${C(c)}\" fill=\"${t.color}\"/>`),v.join(\"\")}}}case\"rad\":{let o=Ce(e.base,t),i=Math.max(.6,t.size*.05),s=t.size*.12,l=t.size*.55,a=e.deg.length?Ce(e.deg,$n(t,.55)):null,c=a?Math.max(0,a.w-l*.35):0,u=o.h+s+i,h=o.d,f=c+l+o.w+t.size*.12;return{w:f,h:Math.max(u,a?u+a.h*.3:u),d:h,draw:(m,d)=>{let p=m+c,b=d-u,v=d+h,x=[`<path d=\"${`M ${C(p)} ${C(v-(v-b)*.45)} L ${C(p+l*.3)} ${C(v-(v-b)*.3)} L ${C(p+l*.62)} ${C(v)} L ${C(p+l)} ${C(b)} L ${C(m+f)} ${C(b)}`}\" fill=\"none\" stroke=\"${t.color}\" stroke-width=\"${C(i)}\" stroke-linejoin=\"miter\"/>`,o.draw(p+l+t.size*.06,d)];return a&&x.push(a.draw(m,d-(v-b)*.42)),x.join(\"\")}}}case\"script\":{let o=e.base.length?Ce(e.base,t):Kn(),i=$n(t,zi),s=(r=e.sup)!=null&&r.length?Ce(e.sup,i):null,l=(n=e.sub)!=null&&n.length?Ce(e.sub,i):null,a=t.size*.42,c=t.size*.22;return{w:o.w+Math.max(s?.w??0,l?.w??0)+t.size*.04,h:Math.max(o.h,s?a+s.h:0),d:Math.max(o.d,l?c+l.d:0),draw:(u,h)=>{let f=[o.draw(u,h)],m=u+o.w+t.size*.02;return s&&f.push(s.draw(m,h-a)),l&&f.push(l.draw(m,h+c)),f.join(\"\")}}}case\"nary\":{let o={...t,size:t.size*1.45},i=Yt(e.chr,o,!1,!1),s=$n(t,zi),l=e.sup.length?Ce(e.sup,s):null,a=e.sub.length?Ce(e.sub,s):null,c=Ce(e.base,t);if(e.underOver){let d=[];l&&d.push(l),d.push(i),a&&d.push(a);let p=Dr(d,t.size*.08,l?1:0);return Mn([p,{...Kn(),w:t.size*.12},c])}let u=t.size*.55,h=t.size*.45,f=Math.max(l?.w??0,a?.w??0),m={w:i.w+f+t.size*.06,h:Math.max(i.h,l?u+l.h:0),d:Math.max(i.d,a?h+a.d:0),draw:(d,p)=>{let b=[i.draw(d,p)];return l&&b.push(l.draw(d+i.w+t.size*.04,p-u)),a&&b.push(a.draw(d+i.w+t.size*.04,p+h)),b.join(\"\")}};return Mn([m,{...Kn(),w:t.size*.1},c])}case\"delim\":{let o=[];e.items.forEach((f,m)=>{m>0&&e.sep&&o.push(Yt(e.sep,t,!1,!1)),o.push(Ce(f,t))});let i=Mn(o),s=t.size*.06,l=Math.max(i.h+s,t.size*Jr),a=Math.max(i.d+s,t.size*eo),c=e.beg&&e.beg!==\" \"?Ka(e.beg,t,l,a):null,u=e.end&&e.end!==\" \"?Ka(e.end,t,l,a):null,h=[c,i,u].filter(f=>f!==null);return{w:h.reduce((f,m)=>f+m.w,0),h:Math.max(i.h,c?c.h:0),d:Math.max(i.d,c?c.d:0),draw:(f,m)=>{let d=f,p=[];for(let b of h)p.push(b.draw(d,m)),d+=b.w;return p.join(\"\")}}}case\"matrix\":{let o=e.rows.map(d=>d.map(p=>Ce(p,t))),i=Math.max(0,...o.map(d=>d.length)),s=[];for(let d=0;d<i;d++)s.push(Math.max(0,...o.map(p=>{var b;return((b=p[d])==null?void 0:b.w)??0})));let l=t.size*.5,a=t.size*.35,c=o.map(d=>Math.max(t.size*.72,...d.map(p=>p.h))),u=o.map(d=>Math.max(t.size*.22,...d.map(p=>p.d))),h=s.reduce((d,p)=>d+p,0)+l*Math.max(0,i-1),f=c.reduce((d,p,b)=>d+p+u[b],0)+a*Math.max(0,o.length-1),m=t.size*.28;return{w:h,h:f/2+m,d:f/2-m,draw:(d,p)=>{let b=[],v=p-(f/2+m);return o.forEach((x,M)=>{v+=c[M];let S=d;x.forEach((y,$)=>{b.push(y.draw(S+(s[$]-y.w)/2,v)),S+=s[$]+l}),v+=u[M]+a}),b.join(\"\")}}}case\"acc\":{let o=Ce(e.base,t),i=t.size*.9,s=e.chr.trim(),l=Math.max(.6,t.size*.05),a=t.size*(Ur.has(e.chr)||Ur.has(e.chr.trim())?.06:.02),c;if(Ur.has(e.chr)||Ur.has(s))c=K2(o.w,l,t.color);else if(Z2.has(s)){let u=Yt(s,{...t,size:i},!1,!1),h=u.w>0?o.w/u.w:1;c={w:o.w,h:u.h,d:u.d,draw:(f,m)=>`<g transform=\"translate(${C(f)} ${C(m)}) scale(${C(h)} 1)\">${u.draw(0,0)}</g>`}}else{let u=_a[s]??_a[e.chr]??(s||\"^\"),h=Yt(u,{...t,size:i},!1,!1),f=h.w>o.w*1.1&&o.w>0?o.w*1.1/h.w:1;c=f===1?h:{w:h.w*f,h:h.h,d:h.d,draw:(m,d)=>`<g transform=\"translate(${C(m)} ${C(d)}) scale(${C(f)} 1)\">${h.draw(0,0)}</g>`}}return e.below?{w:Math.max(o.w,c.w),h:o.h,d:o.d+a+c.h+c.d,draw:(u,h)=>o.draw(u+(Math.max(o.w,c.w)-o.w)/2,h)+c.draw(u+(Math.max(o.w,c.w)-c.w)/2,h+o.d+a+c.h)}:{w:Math.max(o.w,c.w),h:o.h+a+c.h,d:o.d,draw:(u,h)=>o.draw(u+(Math.max(o.w,c.w)-o.w)/2,h)+c.draw(u+(Math.max(o.w,c.w)-c.w)/2,h-o.h-a)}}case\"lim\":{let o=Ce(e.base,t),i=Ce(e.limit,$n(t,zi));return e.below?Dr([o,i],t.size*.08,0):Dr([i,o],t.size*.08,1)}case\"stack\":{let o=e.rows.map(i=>Ce(i,t));return Dr(o,t.size*.3,Math.floor((o.length-1)/2))}}}function J2(e,t,r,n){let o=Ce(e,{size:t,measure:n,color:r});return{w:o.w,h:o.h,d:o.d,svg:o.draw(0,0)}}var eg=\"'Cambria Math','Latin Modern Math','STIX Two Math','Times New Roman',serif\",Qa=[\"'PingFang SC'\",\"'Hiragino Sans GB'\",\"'Microsoft YaHei'\",\"sans-serif\"],tg={boldSizeAdjust:95.4,underscoreSizeAdjust:74.6},vs=\"WebPPT DengXian Latin\",ng=[`'${vs}'`,\"'Arial'\",\"'Helvetica'\",\"'Arimo'\",\"'Liberation Sans'\"],Ja=[\"Arial\",\"ArialMT\",\"Helvetica\",\"Arimo\",\"Arimo-Regular\",\"Liberation Sans\",\"LiberationSans\"],ec=[\"Arial Bold\",\"Arial-BoldMT\",\"Helvetica Bold\",\"Helvetica-Bold\",\"Arimo Bold\",\"Arimo-Bold\",\"Liberation Sans Bold\",\"LiberationSans-Bold\"];function rg(e){return/^(等线|dengxian)$/i.test(e.fonts[0]??\"\")}function og(){let{boldSizeAdjust:e,underscoreSizeAdjust:t}=tg,r=(n,o,i)=>`@font-face{font-family:'${vs}';src:${n.map(s=>`local('${s}')`).join(\",\")};font-weight:${o};${i}}`;return r(Ja,\"1 599\",\"\")+r(ec,\"600 1000\",`size-adjust:${e}%;`)+r(Ja,\"1 599\",`unicode-range:U+5F;size-adjust:${t}%;`)+r(ec,\"600 1000\",`unicode-range:U+5F;size-adjust:${t}%;`)}var Br=null,tc=!1;function gu(){if(tc)return Br;tc=!0;try{let e=document.createElement(\"canvas\").getContext(\"2d\");Br=e&&typeof e.measureText==\"function\"?e:null}catch{Br=null}return Br}function nc(e,t){let r=[],n=new Set;for(let o of e){let i=o.toLowerCase();o&&!n.has(i)&&(n.add(i),r.push(`'${Qr(o)}'`))}for(let o of t){let i=o.replace(/'/g,\"\").toLowerCase();n.has(i)||(n.add(i),r.push(o))}return r.join(\",\")}function ws(e){let t=rg(e)?[...ng,...Qa]:Qa;return e.fonts.length?nc(e.fonts,t):nc([\"Helvetica\",\"Arial\"],t)}function Jt(e,t){let r=e.size*t;return e.baseline?r*.65:r}function ig(e,t,r,n){let o=gu();return o?(o.font=`${r?\"italic \":\"\"}${n?\"700 \":\"400 \"}${t}px ${eg}`,o.measureText(e).width):e.length*t*.55}var Hr=new Map;function fo(e,t){var r;if(!((r=e.math)!=null&&r.length))return null;let n=e.size*t,o=`${n}|${e.color}|${JSON.stringify(e.math)}`,i=Hr.get(o);return i||(i=J2(e.math,n,e.color,ig),Hr.size>512&&Hr.clear(),Hr.set(o,i)),i}function to(e,t,r,n){var o,i;if(n){let a=n(e,t,r);return Number.isFinite(a)&&a>0?a:0}if((o=t.math)!=null&&o.length)return((i=fo(t,r))==null?void 0:i.w)??0;if(!e)return 0;let s=gu(),l=Jt(t,r);if(!s){let a=0;for(let c of e)a+=Y2(c)?l:l*.55;return a}return s.font=`${t.i?\"italic \":\"\"}${t.b?\"700 \":\"400 \"}${l}px ${ws(t)}`,s.measureText(e).width+(t.spacing??0)*e.length}var sg=e=>e.squeezed?e.width-e.squeeze:e.width;function lg(e){let t=[],r=e.run.text;for(let n=e.from;n<e.to;){let o=r.codePointAt(n),i=String.fromCodePoint(o),s=Math.min(e.to,n+i.length);t.push({from:n,to:s,display:e.run.caps===\"all\"?i.toUpperCase():i}),n=s}return t}function ag(e,t,r,n,o){let i=e.width-(r?e.squeeze:0);if(e.atomic)return[{offset:e.from,x:t},{offset:e.to,x:t+i}];let s=lg(e);if(!s.length)return[{offset:e.from,x:t}];let l=s.map(m=>to(m.display,e.run,n,o)),a=l.reduce((m,d)=>m+d,0),c=a>0?e.width/a:0,u=a>0?0:e.width/s.length,h=t,f=[{offset:s[0].from,x:h}];return s.forEach((m,d)=>{let p=r?Tn(m.display)*Jt(e.run,n):0;p&&Sn(m.display)&&(h-=p,f[f.length-1].x=h),h+=a>0?l[d]*c:u,p&&!Sn(m.display)&&(h-=p),f.push({offset:m.to,x:h})}),f[f.length-1].x=t+i,f}function cg(e,t,r,n,o,i){let s=t,l=e.segs.map(c=>{let u=c.width-(e.squeezed?xs(c.text)*Jt(c.run,r):0),h=[],f=s;if(o&&!c.bullet)for(let d of c.tokens??[]){let p=ag(d,f,e.squeezed,r,i);h.length&&p.length&&h[h.length-1].offset===p[0].offset&&p.shift(),h.push(...p),f+=d.width-(e.squeezed?d.squeeze:0)}let m={runIndex:c.runIndex??-1,from:c.from??0,to:c.to??0,text:c.text,x:s,width:u,naturalWidth:c.width,bullet:c.bullet===!0,atomic:c.atomic===!0,carets:c.bullet?[]:h};return s+=u,m});if(!n)return l;let a=t*2+sg(e);for(let c of l)c.carets.length?(c.carets=c.carets.map(u=>({...u,x:a-u.x})),c.x=Math.min(...c.carets.map(u=>u.x))):c.x=a-c.x-c.width;return l}var ug=new Set([\"textArchUp\",\"textArchDown\",\"textArchUpPour\",\"textArchDownPour\",\"textCircle\",\"textWave1\",\"textWave2\",\"textCurveUp\",\"textCurveDown\",\"textCanUp\",\"textCanDown\",\"textTriangle\",\"textChevron\",\"textInflate\",\"textDeflate\"]),no=e=>!!e&&ug.has(e);function hg(e){return e===\"dbl\"?\"double\":e===\"dotted\"||e===\"dottedHeavy\"?\"dotted\":e.startsWith(\"wavy\")?\"wavy\":e===\"dash\"||e===\"dashHeavy\"||e===\"dashLong\"||e===\"dashLongHeavy\"||e.startsWith(\"dotDash\")||e.startsWith(\"dotDotDash\")?\"dashed\":\"solid\"}var fg=e=>e===\"heavy\"||e.endsWith(\"Heavy\");function dg(e){let t=e.underline??(e.u?\"sng\":\"none\"),r=e.strikeType??(e.strike?\"sngStrike\":\"noStrike\"),n=e.underlineColor?`;text-decoration-color:${e.underlineColor}`:\"\",o=fg(t)?\";text-decoration-thickness:0.12em\":\"\",i=t===\"words\"?\";text-decoration-skip-spaces:all\":\"\";return{...t!==\"none\"?{underline:`text-decoration-line:underline;text-decoration-style:${hg(t)}${n}${o}${i}`}:{},...r!==\"noStrike\"?{strike:`text-decoration-line:line-through;text-decoration-style:${r===\"dblStrike\"?\"double\":\"solid\"}`}:{}}}function bu(e,t,r,n=t.color){let o=dg(t),i=e;return o.strike&&(i=`<${r} style=\"${o.strike}\">${i}</${r}>`),o.underline&&(i=r===\"tspan\"&&t.underlineColor?`<tspan style=\"${o.underline}\" fill=\"${oe(t.underlineColor)}\"><tspan fill=\"${oe(n)}\">${i}</tspan></tspan>`:`<${r} style=\"${o.underline}\">${i}</${r}>`),i}function ys(e){return{text:e.text,b:!1,i:!1,u:!1,strike:!1,size:e.size,color:e.color,fonts:[...e.fonts]}}function pg(e){if(e.caps!==\"all\"){let o=Array.from({length:e.text.length+1},(i,s)=>s);return{text:e.text,starts:o,ends:o}}let t=\"\",r=[0],n=[0];for(let o=0;o<e.text.length;){let i=e.text.codePointAt(o),s=String.fromCodePoint(i),l=o+s.length,a=s.toUpperCase(),c=t.length;t+=a;for(let u=0;u<=a.length;u++)r[c+u]=u===a.length?l:o,n[c+u]=u===0?o:l;o=l}return{text:t,starts:r,ends:n}}function xu(e,t,r){var n;let o=[];for(let i of e){let{run:s,runIndex:l,bullet:a}=i;if((n=s.math)!=null&&n.length){o.push({text:s.text,run:s,runIndex:l,from:0,to:s.text.length,bullet:a,atomic:!0,width:to(s.text,s,t,r),br:!1,space:!1,squeeze:0});continue}let c=pg(s),u=c.text;if(!u)continue;let h=u.matchAll(/\\n|[^\\S\\n]+|[⺀-鿿가-퟿＀-⦆ -〿]|[^\\s⺀-鿿가-퟿＀-⦆ -〿]+/g);for(let f of h){let m=f[0],d=f.index,p=d+m.length;o.push({text:m,run:s,runIndex:l,from:c.starts[d]??0,to:c.ends[p]??s.text.length,bullet:a,atomic:!1,width:m===`\n`?0:to(m,s,t,r),br:m===`\n`,space:/^[^\\S\\n]+$/.test(m),squeeze:xs(m)*Jt(s,t)})}}return o}var mg=e=>e.squeezed?e.width-e.squeeze:e.width-e.baseSqueeze;function gg(e){let t=[],r=[];for(let i of e.segs)for(let s of i.text)t.push(s),r.push(i.run.size);let n=pu(t,!1),o=0;for(let i=0;i<t.length;i++)o+=n.amount[i]*r[i];return o}function bg(e,t){var r;let n=e.segs[e.segs.length-1];n&&n.run===t.run&&n.to===t.from&&n.bullet===t.bullet?(n.text+=t.text,n.width+=t.width,n.to=t.to,n.atomic||(n.atomic=t.atomic),n.tokens.push(t)):e.segs.push({text:t.text,run:t.run,runIndex:t.runIndex,from:t.from,to:t.to,bullet:t.bullet,atomic:t.atomic,tokens:[t],width:t.width}),e.width+=t.width,e.squeeze+=t.squeeze;let o=(r=t.run.math)!=null&&r.length?fo(t.run,1):null;e.size=Math.max(e.size,o?(o.h+o.d)/1.2:t.run.size)}function vu(e,t,r,n){let o=[],i=()=>({segs:[],width:0,size:0,squeeze:0,squeezed:!1,baseSqueeze:0}),s=i(),l=Math.max(1,t-Math.max(0,n)),a=()=>{s.squeezed=s.width>l&&s.width-s.squeeze<=l,s.baseSqueeze=s.squeezed?0:gg(s),o.push(s),s=i(),l=Math.max(1,t)};for(let c of e){if(c.br){a();continue}let u=s.width+c.width-(s.squeeze+c.squeeze)<=l;if(r&&s.width>0&&!u){if(c.space)continue;a()}bg(s,c)}return a(),o}function xg(e,t,r,n,o){if(t<=0||!e.runs.some(s=>xs(s.text)>0))return!1;let i=e.runs.map((s,l)=>({run:s,runIndex:l,bullet:!1}));return vu(xu(i,r,o),t,n,e.indent).some(s=>s.squeezed)}var vg={left:\"start\",center:\"middle\",right:\"end\",justify:\"start\"};function wu(e,t,r,n){return e.paragraphs.map(o=>{let i=o.runs[0],s=o.bullet&&i?ys({...i,text:`${o.bullet} `,size:i.size*(o.bulletSize??1),color:o.bulletColor??i.color}):null,l=[...s?[{run:s,runIndex:-1,bullet:!0}]:[],...o.runs.map((h,f)=>({run:h,runIndex:f,bullet:!1}))],a=Math.max(1,t-Math.max(0,o.marL)),c=vu(xu(l,r,n),a,e.wrap,o.indent),u=c.map(h=>(h.size||i?.size||18)*r*(o.lineHeight??1.2));return{lines:c,para:o,before:o.spaceBefore,after:o.spaceAfter,lineHeights:u}})}function rc(e,t,r,n){return wu(e,t,r,n).reduce((o,i)=>o+i.before+i.after+i.lineHeights.reduce((s,l)=>s+l,0),0)}function wg(e,t,r,n,o={}){let[i,s,l,a]=o.insets??e.insets,c=o.vert??e.vert??\"horz\",u=c===\"vert\"||c===\"wordArtVert\"||c===\"vert270\"?r:t,h=c===\"vert\"||c===\"wordArtVert\"||c===\"vert270\"?t:r,f=Math.max(1,u-a-s),m=Math.max(1,h-i-l);if(rc(e,f,1,n)<=m)return 1;let d=yg,p=1;for(let b=0;b<12;b++){let v=(d+p)/2;rc(e,f,v,n)<=m?d=v:p=v}return d}var yg=.25;function $s(e,t,r,n,o={}){let i=Number.isFinite(e.fontScale)&&e.fontScale>0?e.fontScale:1;return!e.autoFitCompute||e.autoFitShape?i:i*wg(e,t,r,n,o)}function $g(e){let t=[];return e.forEach((r,n)=>{r.lines.forEach((o,i)=>{t.push({lp:r,line:o,paragraphIndex:n,li:i,h:r.lineHeights[i]+(i===0?r.before:0)+(i===r.lines.length-1?r.after:0),padTop:i===0?r.before:0})})}),t}var oc=e=>e.reduce((t,r)=>t+r.h,0);function Ms(e,t,r,n={}){var o,i;let s=n.vert??e.vert??\"horz\",l=Number.isFinite(n.scale)&&n.scale>0?n.scale:$s(e,t,r,n.measureText,{insets:n.insets,vert:n.vert}),a=e.autoFitShape?\"shape\":e.autoFitNormal||e.autoFitCompute?\"normal\":\"none\";if(s===\"vert\"||s===\"wordArtVert\"||s===\"vert270\"){let y=Ms({...e,vert:void 0},r,t,{...n,vert:\"horz\",scale:l}),[,$,,k]=n.insets??e.insets,A=y.lines.some(L=>L.x<k-1e-9||L.x+L.width>r-$+1e-9);return{...y,width:t,height:r,layoutWidth:r,layoutHeight:t,scale:l,autoFit:a,vert:s,transform:s===\"vert270\"?[0,-1,1,0,0,r]:[0,1,-1,0,t,0],unwarped:no((o=e.warp)==null?void 0:o.preset),overflow:y.overflow||A}}let[c,u,h,f]=n.insets??e.insets,m=Math.max(1,t-f-u),d=Math.max(1,Math.min(Math.floor(e.columns??1),16)),p=e.columnGap??0,b=d===1?m:Math.max(1,(m-p*(d-1))/d),v=$g(wu(e,b,l,n.measureText)),x=[[]];if(d===1)x[0].push(...v);else{let y=Math.max(1,r-c-h),$=0;for(let k of v)$>0&&$+k.h>y&&x.length<d&&(x.push([]),$=0),x[x.length-1].push(k),$+=k.h}let M=n.anchor??e.anchor,S=[];return x.forEach((y,$)=>{let k=c,A=oc(y);M===\"middle\"?k=c+Math.max(0,(r-c-h-A)/2):M===\"bottom\"&&(k=Math.max(c,r-h-A));let L=f+$*(b+p);for(let{lp:P,line:E,paragraphIndex:T,li:I,padTop:O}of y){k+=O;let R=P.lineHeights[I],z=k+R*.78,j=I===0?P.para.indent:0,F=L+Math.max(0,P.para.marL)+j,W=vg[P.para.align],V=W===\"middle\"?L+b/2:W===\"end\"?L+b:F,B=mg(E),q=W===\"middle\"?V-B/2:W===\"end\"?V-B:V,X=P.para.rtl===!0;S.push({paragraphIndex:T,lineIndex:I,columnIndex:$,x:q,y:k,width:B,naturalWidth:E.width,height:R,baseline:z,anchorX:V,align:P.para.align,rtl:X,squeezed:E.squeezed,segments:cg(E,q,l,X,n.includeCarets!==!1,n.measureText)}),k+=R+(I===P.lines.length-1?P.after:0)}}),{width:t,height:r,layoutWidth:t,layoutHeight:r,scale:l,autoFit:a,columns:d,vert:s,transform:[1,0,0,1,0,0],unwarped:no((i=e.warp)==null?void 0:i.preset),overflow:x.some(y=>oc(y)>r-c-h+1e-9),lines:S}}function Mg(e){return e.startsWith(\"slide:\")?`data-slide=\"${oe(e.slice(6))}\" tabindex=\"0\" role=\"link\" style=\"cursor:pointer;text-decoration:underline\"`:ci(e)?`href=\"${oe(e)}\" target=\"_blank\" rel=\"noopener noreferrer\"`:`data-unsafe-href=\"${oe(e)}\" aria-disabled=\"true\"`}function po(e,t){return t?`<a ${Mg(t)}>${e}</a>`:e}var kg={top:\"flex-start\",middle:\"center\",bottom:\"flex-end\"},Cg={vert:\"writing-mode:vertical-rl;\",vert270:\"writing-mode:vertical-rl;transform:rotate(180deg);\",wordArtVert:\"writing-mode:vertical-rl;text-orientation:upright;\"},Sg=[\"'PingFang SC'\",\"'Hiragino Sans GB'\",\"'Microsoft YaHei'\",\"sans-serif\"];function Eg(e,t){let r=[],n=new Set;for(let o of e){let i=o.toLowerCase();o&&!n.has(i)&&(n.add(i),r.push(`'${Qr(o)}'`))}for(let o of t){let i=o.replace(/'/g,\"\").toLowerCase();n.has(i)||(n.add(i),r.push(o))}return r.join(\",\")}function Tg(e,t){let r=e.size*t,n=`font-size:${C(r)}px;`;return n+=e.gradient?`background-image:${e.gradient};-webkit-background-clip:text;background-clip:text;color:transparent;`:`color:${e.color};`,e.b&&(n+=\"font-weight:700;\"),e.i&&(n+=\"font-style:italic;\"),e.fonts.length&&(n+=`font-family:${ws(e)};`),e.spacing&&(n+=`letter-spacing:${C(e.spacing)}px;`),e.caps===\"all\"?n+=\"text-transform:uppercase;\":e.caps===\"small\"&&(n+=\"font-variant:small-caps;\"),e.highlight&&(n+=`background-color:${e.highlight};`),e.outline&&(n+=`-webkit-text-stroke:${C(e.outline.width)}px ${e.outline.color};`),e.shadow&&(n+=`text-shadow:${e.shadow};`),e.baseline&&(n+=`vertical-align:${e.baseline>0?\"super\":\"sub\"};font-size:${C(r*.65)}px;`),n}function Lg(e,t){let r=[...e],n=\"\";for(let o=0;o<r.length;o++){let i=r[o];if(i===`\n`){n+=\"<br/>\";continue}let s=Tn(i);if(!s||!(t||o>0&&Tn(r[o-1])>0)){n+=oe(i);continue}n+=`<span style=\"margin-${Sn(i)?\"left\":\"right\"}:-${s}em\">${oe(i)}</span>`}return n}function yu(e,t,r,n){var o;if((o=e.math)!=null&&o.length){let a=fo(e,t);if(a&&a.w>0)return`<svg${n} xmlns=\"http://www.w3.org/2000/svg\" width=\"${C(a.w)}\" height=\"${C(a.h+a.d)}\" viewBox=\"0 ${C(-a.h)} ${C(a.w)} ${C(a.h+a.d)}\" style=\"display:inline-block;vertical-align:${C(-a.d)}px;overflow:visible\">${a.svg}</svg>`}let i=!e.text,s=e.text?Lg(e.text,r):\"&#160;\",l=`<span${n}${n&&i?' data-empty=\"true\"':\"\"} style=\"${oe(Tg(e,t))}\">${bu(s,e,\"span\")}</span>`;return po(l,e.link)}function Ag(e,t,r,n){let o=n.scale,i=Number.isFinite(o)&&o>0?o:$s(e,t,r,n.measureText,{insets:n.insets,vert:n.vert});return i===e.fontScale?e:{...e,fontScale:i}}function ic(e,t,r,n){return` data-r=\"${e}.${t}\" data-from=\"${r}\" data-to=\"${n}\"`}function Fi(e,t,r,n,o,i,s,l=!1){let a=yu({...e,text:t},r,n,o),c=`position:absolute;left:${C(i)}px;top:0;height:${C(s)}px;line-height:${C(s)}px;white-space:pre;`+(l?\"width:0;overflow:hidden;opacity:0;\":\"overflow:visible;\");return`<span data-engine-${l?\"semantic\":\"segment\"}=\"true\" style=\"${oe(c)}\">${a}</span>`}function Pg(e,t,r,n){var o;let i=e.paragraphs[t],s=r.map(p=>({line:p,pieces:[]}));if(!s.length)return`<div data-p=\"${t}\"></div>`;let l=i.runs.map(()=>0),a=i.runs.map(()=>!1),c=0,u=s[0],h=(p,b,v,x,M)=>{let S=i.runs[p],y=!S.text.length;v<=b&&(!y||a[p])||(a[p]||(a[p]=y),x.pieces.push(Fi(S,S.text.slice(b,v),n,x.line.squeezed,ic(t,p,b,v),M-x.line.x,x.line.height,!0)))},f=(p,b,v)=>{let x=i.runs[p];h(p,l[p],x.text.length,b,v),l[p]=x.text.length};for(let p of s){u=p;for(let b of p.line.segments){if(b.bullet){let y=i.runs[0];if(y){let $=ys({...y,text:b.text,size:y.size*(i.bulletSize??1),color:i.bulletColor??y.color});p.pieces.push(Fi($,b.text,n,p.line.squeezed,' data-bullet=\"true\" contenteditable=\"false\"',b.x-p.line.x,p.line.height))}continue}for(;c<b.runIndex;)f(c,p,b.x),c++;let v=i.runs[b.runIndex];if(!v)continue;h(b.runIndex,l[b.runIndex],b.from,p,b.x);let x=!!((o=v.math)!=null&&o.length),M=x?0:b.from,S=x?1:b.to;p.pieces.push(Fi(v,x?v.text:v.text.slice(b.from,b.to),n,p.line.squeezed,ic(t,b.runIndex,M,S),b.x-p.line.x,p.line.height)),l[b.runIndex]=b.to,c=b.runIndex}}let m=u.line.x+u.line.width;for(;c<i.runs.length;)f(c,u,m),c++;let d=s.map(({line:p,pieces:b})=>{let v=`position:absolute;left:${C(p.x)}px;top:${C(p.y)}px;width:${C(Math.max(1,p.width))}px;height:${C(p.height)}px;line-height:${C(p.height)}px;white-space:pre;overflow:visible;`+(p.rtl?\"direction:rtl;unicode-bidi:plaintext;\":\"\");return`<span data-engine-line=\"${t}.${p.lineIndex}\" data-x=\"${C(p.x)}\" data-y=\"${C(p.y)}\" style=\"${oe(v)}\">${b.join(\"\")}</span>`}).join(\"\");return`<div data-p=\"${t}\" style=\"position:absolute;inset:0\">${d}</div>`}function Ig(e,t,r,n){let o=Ms(e,t,r,{insets:n.insets,anchor:n.anchor,vert:n.vert,scale:n.scale,measureText:n.measureText}),i=e.paragraphs.map((d,p)=>o.lines.filter(b=>b.paragraphIndex===p)),s=e.paragraphs.map((d,p)=>Pg(e,p,i[p],o.scale)).join(\"\"),[l,a,c,u,h,f]=o.transform,m=`position:relative;width:${C(o.layoutWidth)}px;height:${C(o.layoutHeight)}px;box-sizing:border-box;white-space:pre;overflow:visible;transform-origin:0 0;transform:matrix(${C(l)},${C(a)},${C(c)},${C(u)},${C(h)},${C(f)});`;return`<div data-layout=\"engine\" data-font-scale=\"${C(o.scale)}\" data-autofit=\"${o.autoFit}\" xmlns=\"http://www.w3.org/1999/xhtml\" style=\"${oe(m)}\">${s}</div>`}function Ng(e,t,r,n={}){if(n.layout===\"engine\")return Ig(e,t,r,n);let o=Ag(e,t,r,n),[i,s,l,a]=n.insets??o.insets,c=o.fontScale,u=n.includeEditMarkers!==!1,h=o.paragraphs.map((b,v)=>{let x=b.runs[0],M=(x?.size??18)*c,S=o.wrap&&xg(b,t-a-s-Math.max(0,b.marL),c,!0,n.measureText),y=b.runs.map((L,P)=>yu(L,c,S,u?` data-r=\"${v}.${P}\"`:\"\")).join(\"\"),$=\"\",k=u?' data-bullet=\"true\" contenteditable=\"false\"':\"\";if(b.bulletImage)$=`<img${k} src=\"${oe(b.bulletImage)}\" style=\"height:${C(M*.8)}px;vertical-align:middle;margin-right:4px\"/>`;else if(b.bullet){let L=M*(b.bulletSize??1),P=b.bulletColor??x?.color??\"#000\",E=b.bulletFont&&!/wingdings|webdings|symbol/i.test(b.bulletFont)?`font-family:${Eg([b.bulletFont],Sg)};`:\"\";$=`<span${k} style=\"${oe(`font-size:${C(L)}px;color:${P};${E}`)}\">${oe(b.bullet)}&#160;</span>`}let A=`margin:${C(b.spaceBefore)}px 0 ${C(b.spaceAfter)}px 0;text-align:${b.align};padding-left:${C(Math.max(0,b.marL))}px;text-indent:${C(b.indent)}px;line-height:${b.lineHeight!==null?C(b.lineHeight):\"1.2\"};`+(b.rtl?\"direction:rtl;\":\"\")+`white-space:${o.wrap?\"pre-wrap\":\"pre\"};word-break:break-word;`;return`<div${u?` data-p=\"${v}\"`:\"\"} style=\"${oe(A)}\">${$}${y}</div>`}).join(\"\"),f=n.anchor??o.anchor,m=n.vert??o.vert,d=`width:${C(t)}px;height:${C(r)}px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:${kg[f]};`+(o.anchorCtr?\"align-items:center;\":\"\")+`padding:${C(i)}px ${C(s)}px ${C(l)}px ${C(a)}px;`+(o.columns?`column-count:${o.columns};column-gap:${C(o.columnGap??0)}px;display:block;`:\"\")+(m?Cg[m]??\"\":\"\")+\"overflow:visible;\",p=o.autoFitShape?\"shape\":e.autoFitNormal||e.autoFitCompute?\"normal\":\"none\";return`<div${u?` data-font-scale=\"${C(c)}\" data-autofit=\"${p}\"`:\"\"} xmlns=\"http://www.w3.org/1999/xhtml\" style=\"${oe(d)}\">${h}</div>`}var $u={left:\"start\",center:\"middle\",right:\"end\",justify:\"start\"},Mu=e=>e===\"start\"?\"end\":e===\"end\"?\"start\":e,Rg=(e,t)=>t.caps===\"all\"?e.toUpperCase():e;function Qi(e,t,r,n,o,i,s=!1,l){var a;if(e.vert===\"vert\"||e.vert===\"wordArtVert\"){let v=Qi({...e,vert:void 0},r,t,n,o,i,s,l);return`<g transform=\"translate(${C(t)} 0) rotate(90)\">${v}</g>`}if(e.vert===\"vert270\"){let v=Qi({...e,vert:void 0},r,t,n,o,i,s,l);return`<g transform=\"translate(0 ${C(r)}) rotate(-90)\">${v}</g>`}let[c,u,h,f]=o??e.insets,m=e.fontScale,d=Dg(e,t,r,n,[c,u,h,f],i??e.anchor,l);if(d)return d;let p=Ms(e,t,r,{insets:o,anchor:i,vert:\"horz\",scale:m,includeCarets:!1,measureText:l}),b=[];for(let v of p.lines){let x=e.paragraphs[v.paragraphIndex],M=x.runs[0],S=v.segments.map(E=>{let T=E.runIndex>=0?x.runs[E.runIndex]:ys({...M,text:`${x.bullet} `,size:M.size*(x.bulletSize??1),color:x.bulletColor??M.color});return{text:E.text,run:T,width:E.naturalWidth,paragraphIndex:v.paragraphIndex,runIndex:E.runIndex,from:E.from,to:E.to}});if(!S.length)continue;let y=[],$=[];for(let E of S){let T=[...E.text];$.push([y.length,y.length+T.length]),y.push(...T)}let k=pu(y,v.squeezed),A=S.map((E,T)=>{let[I,O]=$[T],R=0;for(let z=I;z<O;z++)R+=k.amount[z];return R*Jt(E.run,m)}),L=v.x;for(let[E,T]of S.entries()){if(T.run.highlight){let I=Jt(T.run,m);b.push(`<rect x=\"${C(L)}\" y=\"${C(v.baseline-I*.82)}\" width=\"${C(T.width)}\" height=\"${C(I*1.12)}\" fill=\"${oe(T.run.highlight)}\"/>`)}L+=T.width-A[E]}let P=$u[v.align];if(S.some(E=>{var T;return(T=E.run.math)==null?void 0:T.length})){let E=v.x;for(let[T,I]of S.entries()){let O=(a=I.run.math)!=null&&a.length?fo(I.run,m):null;O?b.push(po(`<g transform=\"translate(${C(E)} ${C(v.baseline)})\">${O.svg}</g>`,I.run.link)):b.push(`<text x=\"${C(E)}\" y=\"${C(v.baseline)}\" text-anchor=\"start\"`+(v.rtl?' direction=\"rtl\" unicode-bidi=\"embed\"':\"\")+` xml:space=\"preserve\">${ro(I,m,n,void 0,s)}</text>`),E+=I.width-A[T]}}else{let E=k.total>0?zg(S,$,k,m,n,s):S.map(T=>ro(T,m,n,void 0,s)).join(\"\");b.push(`<text x=\"${C(v.anchorX)}\" y=\"${C(v.baseline)}\" text-anchor=\"${v.rtl?Mu(P):P}\"`+(v.rtl?' direction=\"rtl\" unicode-bidi=\"embed\"':\"\")+` xml:space=\"preserve\">${E}</text>`)}}return b.join(\"\")}function Og(e,t){var r;let n=(r=e.match(/linear-gradient\\(([^]*)\\)$/))==null?void 0:r[1];if(!n)return null;let o=n.split(/,(?![^(]*\\))/).map(h=>h.trim()),i=o[0].match(/^(-?[\\d.]+)deg$/),s=i?Number(i[1]):180,l=(i?o.slice(1):o).map(h=>{let f=h.match(/^(.*?)\\s+([\\d.]+)%$/);return f?{color:f[1].trim(),pos:Number(f[2])}:{color:h,pos:null}}).map((h,f,m)=>({color:h.color,pos:h.pos??(m.length>1?f/(m.length-1)*100:0)}));if(!l.length)return null;let a=(s-90)*Math.PI/180,c=Math.cos(a)/2,u=Math.sin(a)/2;return`url(#${t(`<linearGradient id=\"__ID__\" x1=\"${C(.5-c)}\" y1=\"${C(.5-u)}\" x2=\"${C(.5+c)}\" y2=\"${C(.5+u)}\">`+l.map(h=>`<stop offset=\"${C(h.pos)}%\" stop-color=\"${oe(h.color)}\"/>`).join(\"\")+\"</linearGradient>\")})`}function zg(e,t,r,n,o,i=!1){return e.map((s,l)=>{let[a,c]=t[l],u=Jt(s.run,n),h=r.dx.slice(a,c).map(m=>m*u),f=h.some(m=>m!==0);return ro(s,n,o,f?h:void 0,i)}).join(\"\")}function ro(e,t,r,n,o=!1){let i=e.run,s=Jt(i,t),l=i.gradient?Og(i.gradient,r):null,a=[`font-size=\"${C(s)}\"`,`font-family=\"${oe(ws(i))}\"`,`fill=\"${oe(l??i.color)}\"`];i.b&&a.push('font-weight=\"700\"'),i.i&&a.push('font-style=\"italic\"'),i.spacing&&a.push(`letter-spacing=\"${C(i.spacing)}\"`),i.caps===\"small\"&&a.push('font-variant=\"small-caps\"'),i.baseline&&a.push(`dy=\"${C(i.baseline>0?-s*.45:s*.25)}\"`),i.outline&&a.push(`stroke=\"${oe(i.outline.color)}\" stroke-width=\"${C(i.outline.width)}\" paint-order=\"stroke\"`),n!=null&&n.some(h=>h!==0)&&a.push(`dx=\"${n.map(h=>C(h)).join(\" \")}\"`);let c=`<tspan${o&&e.runIndex!==void 0&&e.runIndex>=0?` data-r=\"${e.paragraphIndex}.${e.runIndex}\" data-from=\"${e.from}\" data-to=\"${e.to}\"`:\"\"} ${a.join(\" \")}>${bu(oe(e.text),i,\"tspan\",l??i.color)}</tspan>`,u=i.baseline?`${c}<tspan dy=\"${C(i.baseline>0?s*.45:-s*.25)}\"></tspan>`:c;return po(u,i.link)}var Ji=(e,t,r)=>Math.min(r,Math.max(t,e));function sc(e,t,r,n,o,i){let s=f=>{let m=f*Math.PI/180;return[e+r*Math.cos(m),t+n*Math.sin(m)]},[l,a]=s(o),[c,u]=s(i),h=Math.abs(i-o);return{d:`M${C(l)} ${C(a)}A${C(r)} ${C(n)} 0 ${h>180?1:0} ${i>o?1:0} ${C(c)} ${C(u)}`,len:h*Math.PI/180*((r+n)/2),fill:!0}}function lc(e,t,r=28){let n=[];for(let s=0;s<=r;s++)n.push([t*s/r,e(s/r)]);let o=`M${C(n[0][0])} ${C(n[0][1])}`,i=0;for(let s=0;s<r;s++){let l=n[Math.max(0,s-1)],a=n[s],c=n[s+1],u=n[Math.min(r,s+2)];o+=`C${C(a[0]+(c[0]-l[0])/6)} ${C(a[1]+(c[1]-l[1])/6)} ${C(c[0]-(u[0]-a[0])/6)} ${C(c[1]-(u[1]-a[1])/6)} ${C(c[0])} ${C(c[1])}`,i+=Math.hypot(c[0]-a[0],c[1]-a[1])}return{d:o,len:i}}var Fg={textCurveUp:.3,textCurveDown:-.3,textCanUp:.16,textCanDown:-.16,textDeflate:.22,textInflate:-.22,textTriangle:.2,textChevron:.34},jg=new Set([\"textTriangle\",\"textChevron\"]);function Ug(e,t,r,n,o,i){let s=r/2,l=n/2,a=Ji((t.adj??t.adj1??108e5)/6e4,20,350);if(e===\"textCircle\"){let d=Math.max(1,s-o*.3),p=Math.max(1,l-o*.3);return{d:`M${C(s)} ${C(l+p)}A${C(d)} ${C(p)} 0 1 1 ${C(s)} ${C(l-p)}A${C(d)} ${C(p)} 0 1 1 ${C(s)} ${C(l+p)}`,len:Math.PI*(d+p),fill:!0}}if(e.startsWith(\"textArch\")){let d=e.startsWith(\"textArchDown\"),p=e.endsWith(\"Pour\"),b=o*.4,v=Math.max(1,(s-o*.1)*(p?.72:1)),x=Math.max(1,(l-b)*(p?.72:1));return d?sc(s,l-b,v,x,90+a/2,90-a/2):sc(s,l+b,v,x,-90-a/2,-90+a/2)}let c=e===\"textWave1\"?1:e===\"textWave2\"?-1:0,u=i===\"top\"?o*.85:i===\"bottom\"?n-o*.2:l+o*.32;if(c){let d=n*.16*Ji((t.adj1??6250)/6250,.25,3);return lc(p=>u-c*d*Math.sin(2*Math.PI*p),r)}let h=Fg[e];if(h===void 0)return null;let f=h*n,m=jg.has(e)?d=>1-Math.abs(2*d-1):d=>Math.sin(Math.PI*d);return lc(d=>u+f/2-f*m(d),r)}function Dg(e,t,r,n,o,i,s){let l=e.warp;if(!l||!no(l.preset))return null;let[a,c,u,h]=o,f=Math.max(1,t-h-c),m=Math.max(1,r-a-u),d=e.fontScale,p=e.paragraphs.filter(x=>x.runs.some(M=>M.text.trim()));if(!p.length)return null;let b=m/p.length,v=[];return p.forEach((x,M)=>{let S=x.runs.filter(F=>F.text);if(!S.length)return;let y=Math.max(...S.map(F=>F.size),1)*d,$=Ug(l.preset,l.adj,f,b,y,p.length>1?\"middle\":i);if(!$)return;let k=S.map(F=>({text:Rg(F.text,F).replace(/\\n/g,\" \"),run:F,width:to(F.text,F,d,s)})),A=k.reduce((F,W)=>F+W.width,0),L=A>$.len?Math.max(.25,$.len/A):1,P=A*L,E=k.reduce((F,W)=>F+W.text.length,0),T=$.fill&&E>1&&P>0?(P*Ji($.len/P,1,2.2)-P)/E:0,I=n(`<path id=\"__ID__\" fill=\"none\" d=\"${$.d}\"/>`),O=$u[x.align],R=x.rtl===!0,z=O===\"end\"?\"100%\":O===\"middle\"?\"50%\":\"0%\",j=k.map(F=>ro(F,d*L,n)).join(\"\");v.push(`<g transform=\"translate(${C(h)} ${C(a+b*M)})\"><text text-anchor=\"${R?Mu(O):O}\"`+(T>.05?` letter-spacing=\"${C(T)}\"`:\"\")+(R?' direction=\"rtl\" unicode-bidi=\"embed\"':\"\")+` xml:space=\"preserve\"><textPath href=\"#${I}\" xlink:href=\"#${I}\" startOffset=\"${z}\">${j}</textPath></text></g>`)}),v.length?v.join(\"\"):null}var Ln=1/1e5,ac=.01;function Bg(e,t,r,n,o,i,s){let l=e.crop??{l:0,t:0,r:0,b:0},a=n/Math.max(1-l.l-l.r,Ln),c=o/Math.max(1-l.t-l.b,Ln),u=`<image href=\"${oe(e.src)}\" x=\"${C(-l.l*a)}\" y=\"${C(-l.t*c)}\" width=\"${C(a)}\" height=\"${C(c)}\" preserveAspectRatio=\"none\"`+(e.alpha!==void 0?` opacity=\"${C(e.alpha)}\"`:\"\")+\"/>\",h=i||s?`<g transform=\"translate(${C(i?n:0)} ${C(s?o:0)}) scale(${i?-1:1} ${s?-1:1})\">${u}</g>`:u;return`<svg x=\"${C(t)}\" y=\"${C(r)}\" width=\"${C(n)}\" height=\"${C(o)}\" overflow=\"hidden\">${h}</svg>`}function Hg(e){switch(e??\"tl\"){case\"t\":return[.5,0];case\"tr\":return[1,0];case\"l\":return[0,.5];case\"ctr\":return[.5,.5];case\"r\":return[1,.5];case\"bl\":return[0,1];case\"b\":return[.5,1];case\"br\":return[1,1];default:return[0,0]}}function Wg(e,t,r,n,o){let i=e.tile,s=e.crop??{l:0,t:0,r:0,b:0},l=Math.max(1-s.l-s.r,Ln),a=Math.max(1-s.t-s.b,Ln),c=i.sourceWidth??n*.25,u=i.sourceHeight??o*.25,h=Math.max(ac,c*l*i.sx),f=Math.max(ac,u*a*i.sy),[m,d]=Hg(i.algn),p=(n-h)*m+(i.tx??0),b=(o-f)*d+(i.ty??0),v=i.flip===\"x\"||i.flip===\"xy\",x=i.flip===\"y\"||i.flip===\"xy\",M=v?2:1,S=x?2:1,y=\"\";for(let $=0;$<S;$++)for(let k=0;k<M;k++)y+=Bg(e,k*h,$*f,h,f,k===1,$===1);t.defs.push(`<pattern id=\"${r}\" patternUnits=\"userSpaceOnUse\" x=\"${C(p)}\" y=\"${C(b)}\" width=\"${C(h*M)}\" height=\"${C(f*S)}\">${y}</pattern>`)}function Vg(e,t,r,n){let o=t.nextId(\"p\");if(e.tile)Wg(e,t,o,r,n);else if(e.crop&&(e.crop.l||e.crop.t||e.crop.r||e.crop.b)){let i=e.crop,s=r/Math.max(1-i.l-i.r,Ln),l=n/Math.max(1-i.t-i.b,Ln);t.defs.push(`<pattern id=\"${o}\" patternUnits=\"userSpaceOnUse\" width=\"${C(r)}\" height=\"${C(n)}\"><image href=\"${oe(e.src)}\" x=\"${C(-i.l*s)}\" y=\"${C(-i.t*l)}\" width=\"${C(s)}\" height=\"${C(l)}\" preserveAspectRatio=\"none\"`+(e.alpha!==void 0?` opacity=\"${C(e.alpha)}\"`:\"\")+\"/></pattern>\")}else t.defs.push(`<pattern id=\"${o}\" patternUnits=\"userSpaceOnUse\" width=\"${C(r)}\" height=\"${C(n)}\"><image href=\"${oe(e.src)}\" width=\"${C(r)}\" height=\"${C(n)}\" preserveAspectRatio=\"none\"`+(e.alpha!==void 0?` opacity=\"${C(e.alpha)}\"`:\"\")+\"/></pattern>\");return`url(#${o})`}var cc={pct5:\"M0 0h1v1H0z\",pct10:\"M0 0h1v1H0z\",pct20:\"M0 0h2v2H0z\",pct25:\"M0 0h2v2H0z\",pct30:\"M0 0h2v2H0zM2 2h2v2H2z\",pct40:\"M0 0h2v2H0zM2 2h2v2H2z\",pct50:\"M0 0h2v2H0zM2 2h2v2H2z\",pct60:\"M0 0h3v3H0z\",pct70:\"M0 0h3v3H0z\",pct75:\"M0 0h3v3H0z\",pct80:\"M0 0h4v4H0z\",pct90:\"M0 0h4v4H0z\",ltHorz:\"M0 2h8v1H0z\",horz:\"M0 2h8v2H0z\",dkHorz:\"M0 1h8v3H0z\",ltVert:\"M2 0h1v8H0z\",vert:\"M2 0h2v8H2z\",dkVert:\"M1 0h3v8H1z\",ltUpDiag:\"M0 8L8 0M-2 2L2 -2M6 10L10 6\",upDiag:\"M0 8L8 0M-2 2L2 -2M6 10L10 6\",ltDnDiag:\"M0 0L8 8M-2 6L2 10M6 -2L10 2\",dnDiag:\"M0 0L8 8M-2 6L2 10M6 -2L10 2\",smGrid:\"M0 0h8v1H0zM0 0h1v8H0z\",lgGrid:\"M0 0h8v1H0zM0 0h1v8H0z\",cross:\"M0 3h8v2H0zM3 0h2v8H3z\",diagCross:\"M0 0L8 8M8 0L0 8\",trellis:\"M0 0L8 8M8 0L0 8\",wave:\"M0 4Q2 2 4 4T8 4\"},Gg={pct5:8,pct10:6,pct20:5,pct25:4,pct30:4,pct40:4,pct50:4,pct60:4,pct70:4,pct75:4,pct80:5,pct90:5};function ks(e,t,r,n){switch(e.type){case\"none\":return\"none\";case\"solid\":return e.color;case\"gradient\":{let o=t.nextId(\"g\"),i=e.stops.map(s=>`<stop offset=\"${C(Math.max(0,Math.min(1,s.pos))*100)}%\" stop-color=\"${s.color}\"/>`).join(\"\");if(e.radial)t.defs.push(`<radialGradient id=\"${o}\" cx=\"50%\" cy=\"50%\" r=\"70%\">${i}</radialGradient>`);else{let s=e.angle*Math.PI/180,l=Math.cos(s)/2,a=Math.sin(s)/2;t.defs.push(`<linearGradient id=\"${o}\" x1=\"${C(.5-l)}\" y1=\"${C(.5-a)}\" x2=\"${C(.5+l)}\" y2=\"${C(.5+a)}\">${i}</linearGradient>`)}return`url(#${o})`}case\"image\":return Vg(e,t,r,n);case\"pattern\":{let o=t.nextId(\"pt\"),i=Gg[e.preset]??8,s=cc[e.preset]??cc.pct50,l=/^[MLQT].*[ML]/.test(s)&&!s.includes(\"h\")&&!s.includes(\"v\");return t.defs.push(`<pattern id=\"${o}\" patternUnits=\"userSpaceOnUse\" width=\"${i}\" height=\"${i}\"><rect width=\"${i}\" height=\"${i}\" fill=\"${e.bg}\"/><path d=\"${s}\" ${l?`stroke=\"${e.fg}\" stroke-width=\"1\" fill=\"none\"`:`fill=\"${e.fg}\"`}/></pattern>`),`url(#${o})`}}}function Xg(e,t){if(!e)return\"\";let r=[],n=\"SourceGraphic\",o=0,i=a=>{let c=`e${++o}`;r.push(a.replace(/__IN__/g,n).replace(/__OUT__/g,c)),n=c};e.glow&&i(`<feDropShadow in=\"__IN__\" dx=\"0\" dy=\"0\" stdDeviation=\"${C(e.glow.radius/2)}\" flood-color=\"${e.glow.color}\" flood-opacity=\"1\" result=\"__OUT__\"/>`);let s=e.shadow;if(s&&!s.inner&&i(`<feDropShadow in=\"__IN__\" dx=\"${C(s.dx)}\" dy=\"${C(s.dy)}\" stdDeviation=\"${C(s.blur/2)}\" flood-color=\"${s.color}\" result=\"__OUT__\"/>`),s!=null&&s.inner){let a=`is${o}`;r.push(`<feComponentTransfer in=\"SourceAlpha\" result=\"${a}a\"><feFuncA type=\"table\" tableValues=\"1 0\"/></feComponentTransfer><feGaussianBlur in=\"${a}a\" stdDeviation=\"${C(s.blur/2)}\" result=\"${a}b\"/><feOffset in=\"${a}b\" dx=\"${C(s.dx)}\" dy=\"${C(s.dy)}\" result=\"${a}c\"/><feComposite in=\"${a}c\" in2=\"SourceAlpha\" operator=\"in\" result=\"${a}d\"/><feFlood flood-color=\"${s.color}\" result=\"${a}e\"/><feComposite in=\"${a}e\" in2=\"${a}d\" operator=\"in\" result=\"${a}f\"/>`),i(`<feComposite in=\"${a}f\" in2=\"__IN__\" operator=\"over\" result=\"__OUT__\"/>`)}if(e.softEdge&&(r.push(`<feGaussianBlur in=\"SourceAlpha\" stdDeviation=\"${C(e.softEdge/2)}\" result=\"se\"/><feComponentTransfer in=\"se\" result=\"seMask\"><feFuncA type=\"linear\" slope=\"2.2\" intercept=\"-0.6\"/></feComponentTransfer>`),i('<feComposite in=\"__IN__\" in2=\"seMask\" operator=\"in\" result=\"__OUT__\"/>')),!r.length)return\"\";let l=t.nextId(\"f\");return t.defs.push(`<filter id=\"${l}\" x=\"-30%\" y=\"-30%\" width=\"160%\" height=\"160%\">${r.join(\"\")}</filter>`),` filter=\"url(#${l})\"`}function Yg(e,t,r){var n;let o=(n=e.effects)==null?void 0:n.reflection;if(!o)return\"\";let i=Math.max(0,Math.min(1,o.alpha));if(i<=0||e.h<=0)return\"\";let s=Math.max(0,o.distance),l=e.h+s,a=Math.max(1,e.h*Math.max(.02,Math.min(1,o.size))),c=-e.w*.25,u=e.w*1.5,h=r.nextId(\"rg\"),f=r.nextId(\"rm\");return r.defs.push(`<linearGradient id=\"${h}\" gradientUnits=\"userSpaceOnUse\" x1=\"0\" y1=\"${C(l)}\" x2=\"0\" y2=\"${C(l+a)}\"><stop offset=\"0\" stop-color=\"#fff\" stop-opacity=\"${C(i)}\"/><stop offset=\"1\" stop-color=\"#fff\" stop-opacity=\"0\"/></linearGradient>`),r.defs.push(`<mask id=\"${f}\" maskUnits=\"userSpaceOnUse\" x=\"${C(c)}\" y=\"${C(l)}\" width=\"${C(u)}\" height=\"${C(a)}\"><rect x=\"${C(c)}\" y=\"${C(l)}\" width=\"${C(u)}\" height=\"${C(a)}\" fill=\"url(#${h})\"/></mask>`),`<g mask=\"url(#${f})\" aria-hidden=\"true\"><use href=\"#${t}\" xlink:href=\"#${t}\" transform=\"translate(0 ${C(2*e.h+s)}) scale(1 -1)\"/></g>`}var Xn;function es(e){let t=e.match(/rgba?\\(([^)]+)\\)/);if(t){let n=t[1].split(\",\").map(Number);return[n[0]||0,n[1]||0,n[2]||0]}let r=e.replace(\"#\",\"\");return r.length>=6?[parseInt(r.slice(0,2),16),parseInt(r.slice(2,4),16),parseInt(r.slice(4,6),16)]:[128,128,128]}function oo(e,t,r){let n=es(e),o=es(t);return`rgb(${n.map((i,s)=>Math.round(i*(1-r)+o[s]*r)).join(\",\")})`}function qg(e,t,r){let n=Math.min(t.extrusion??0,Math.max(e.w,e.h));if(n<=.5)return\"\";let o=((t.rotY??0)||35)*Math.PI/180,i=Math.cos(o)*n,s=Math.sin(((t.rotX??0)||20)*Math.PI/180)*n,l=t.extrusionColor??oo(r,\"#000\",.32),a=Math.max(2,Math.min(14,Math.round(n))),c=[];for(let u=a;u>=1;u--){let h=u/a;c.push(`<g transform=\"translate(${C(i*h)} ${C(s*h)})\"><path d=\"${e.path}\" fill=\"${l}\" fill-rule=\"nonzero\"/></g>`)}return c.join(\"\")}function Zg(e,t,r,n){let o=t.bevelTop??0;if(o<=.3||!e.path)return\"\";let i=oo(r,\"#fff\",.5),s=oo(r,\"#000\",.25),l=Math.min(o*2,Math.min(e.w,e.h)/3),a=n.nextId(\"bv\");return n.defs.push(`<clipPath id=\"${a}\"><path d=\"${e.path}\"/></clipPath>`),`<g clip-path=\"url(#${a})\"><path d=\"${e.path}\" fill=\"none\" stroke=\"${i}\" stroke-width=\"${C(l)}\" stroke-linejoin=\"round\" opacity=\"0.55\"/><path d=\"${e.path}\" fill=\"none\" stroke=\"${s}\" stroke-width=\"${C(l/3)}\" stroke-linejoin=\"round\" opacity=\"0.35\" transform=\"translate(0 ${C(l/3)})\"/></g>`}function _g(e,t){let[r,n]=e.map(es),o=r.flatMap((i,s)=>[...[.213,.715,.072].map(l=>l*(n[s]-i)/255),0,i/255]);return`<filter id=\"${t}\" color-interpolation-filters=\"sRGB\"><feColorMatrix values=\"${o.join(\" \")} 0 0 0 1 0\"/></filter>`}var ts={m:[\"x\",\"y\"],l:[\"x\",\"y\"],t:[\"x\",\"y\"],h:[\"x\"],v:[\"y\"],c:[\"x\",\"y\",\"x\",\"y\",\"x\",\"y\"],s:[\"x\",\"y\",\"x\",\"y\"],q:[\"x\",\"y\",\"x\",\"y\"],a:[\"rx\",\"ry\",\"angle\",\"flag\",\"flag\",\"x\",\"y\"],z:[]},ji=e=>e===\" \"||e===\"\t\"||e===`\n`||e===\"\\r\"||e===\"\\f\",Wr=e=>e>=\"0\"&&e<=\"9\";function Kg(e){let t=[],r=0,n=l=>new Error(`\\u8DEF\\u5F84\\u6570\\u636E\\u65E0\\u6548\\uFF1A\\u4F4D\\u7F6E ${r} \\u671F\\u671B${l}\\uFF0C\\u5B9E\\u9645\\u4E3A\\u300C${e.slice(r,r+12)}\\u300D\\uFF08${e.slice(0,60)}\\uFF09`),o=()=>{for(;r<e.length&&ji(e[r]);)r++;if(e[r]===\",\")for(r++;r<e.length&&ji(e[r]);)r++},i=()=>{let l=r;(e[r]===\"+\"||e[r]===\"-\")&&r++;let a=0;for(;Wr(e[r]);)r++,a++;if(e[r]===\".\")for(r++;Wr(e[r]);)r++,a++;if(!a)throw r=l,n(\"\\u6570\\u503C\");if(e[r]===\"e\"||e[r]===\"E\"){let c=r;if(r++,(e[r]===\"+\"||e[r]===\"-\")&&r++,!Wr(e[r]))throw r=c,n(\"\\u6307\\u6570\");for(;Wr(e[r]);)r++}return Number(e.slice(l,r))},s=()=>{if(e[r]!==\"0\"&&e[r]!==\"1\")throw n(\"\\u5F27\\u7EBF\\u6807\\u5FD7 0 \\u6216 1\");return Number(e[r++])};for(;r<e.length&&ji(e[r]);)r++;for(;r<e.length;){let l=e[r],a=ts[l.toLowerCase()];if(!a)throw n(\"\\u8DEF\\u5F84\\u547D\\u4EE4\");if(!t.length&&l.toLowerCase()!==\"m\")throw n(\"\\u4EE5 M/m \\u5F00\\u5934\");if(r++,o(),!a.length){t.push({command:l,values:[]});continue}let c=l;do{let u=a.map((h,f)=>(f&&o(),h===\"flag\"?s():i()));t.push({command:c,values:u}),c===\"M\"?c=\"L\":c===\"m\"&&(c=\"l\"),o()}while(r<e.length&&!ts[e[r].toLowerCase()])}return t}function Qg(e,t,r,n,o){e=Math.abs(e),t=Math.abs(t);let i=r*Math.PI/180,s=Math.cos(i),l=Math.sin(i);if(n===o||l===0||s===0){let m=s===0&&l!==0;return[e*(m?o:n),t*(m?n:o),r]}let a=(e*e*s*s+t*t*l*l)*n*n,c=(e*e-t*t)*s*l*n*o,u=(e*e*l*l+t*t*s*s)*o*o,h=(a+u)/2,f=Math.hypot((a-u)/2,c);return[Math.sqrt(h+f),Math.sqrt(Math.max(0,h-f)),Math.atan2(2*c,a-u)/2*180/Math.PI]}function uc(e,t,r){if(!(Number.isFinite(t)&&t>0&&Number.isFinite(r)&&r>0))throw new Error(`\\u8DEF\\u5F84\\u7F29\\u653E\\u6BD4\\u4F8B\\u5FC5\\u987B\\u662F\\u6B63\\u6709\\u9650\\u6570\\uFF1Akx=${t}\\uFF0Cky=${r}`);return Kg(e).map(({command:n,values:o})=>{let i=ts[n.toLowerCase()];if(i.includes(\"rx\")){let[s,l,a]=Qg(o[0],o[1],o[2],t,r);o=[s,l,a,o[3],o[4],o[5]*t,o[6]*r]}else o=o.map((s,l)=>s*(i[l]===\"y\"?r:t));return o.length?`${n} ${o.map(C).join(\" \")}`:n}).join(\" \")}function Jg(e){let t=(e%360+360)%360;return t>=45&&t<135||t>=225&&t<315}function hc(e,t,r){let n=e||1;if(!Number.isFinite(n)||n<=0)throw new Error(`\\u7EC4\\u5408 ${r.name??r.id??\"\"} \\u7684 ${t} \\u7F29\\u653E\\u65E0\\u6548\\uFF1A${e}`);return n}function ku(e,t){let r=hc(e.scaleX,\"scaleX\",e),n=hc(e.scaleY,\"scaleY\",e),o=Jg(t.rot),i=o?n:r,s=o?r:n,l=t.w*i,a=t.h*s;return{x:(t.x+t.w/2-e.childX)*r-l/2,y:(t.y+t.h/2-e.childY)*n-a/2,w:l,h:a,kx:i,ky:s}}function eb(e,t){let{kx:r,ky:n,...o}=ku(e,t);if(r===1&&n===1)return{...t,...o};switch(t.kind){case\"shape\":return{...t,...o,path:t.path&&uc(t.path,r,n)};case\"image\":return{...t,...o,...t.clipPath?{clipPath:uc(t.clipPath,r,n)}:{}};case\"group\":return{...t,...o,scaleX:(t.scaleX||1)*r,scaleY:(t.scaleY||1)*n};case\"table\":return{...t,...o,colWidths:t.colWidths.map(i=>i*r),rows:t.rows.map(i=>({...i,height:i.height*n}))};case\"unsupported\":return{...t,...o}}}var tb=0,nb=e=>`${e}${++tb}`;function rb(e){return e.replace(/^[0-9-]|[^A-Za-z0-9-]/gu,t=>`_u${t.codePointAt(0).toString(16)}_`)}var fc=1/1e5;function ob(e){let t=e.textMode??\"html\",r=0,n=e.idPrefix===void 0?null:rb(e.idPrefix);return{defs:[],nextId:n===null?nb:o=>`${n}${o}${++r}`,textMode:t,measureText:e.measureText,media:e.media===\"player\"&&t===\"html\"?\"player\":\"badge\",hidden:e.hiddenElements&&e.hiddenElements.length?new Set(e.hiddenElements):null,includeEditMarkers:e.includeEditMarkers===!0,resolveLink:o=>o}}function ib(e,t){let r=e.slides.indexOf(t)+1;return n=>{if(!n)return n;if(n.startsWith(\"slide-part:\"))try{let o=decodeURIComponent(n.slice(11)),i=e.slides.findIndex(s=>s.editInfo&&s.editInfo.origin.part===o);return i<0?n:`slide:${i+1}`}catch{return n}return n.startsWith(\"slide:\")?n===\"slide:next\"?`slide:${r+1}`:n===\"slide:previous\"?`slide:${r-1}`:n===\"slide:first\"?\"slide:1\":n===\"slide:last\"?`slide:${e.slides.length}`:n:n}}function Cu(e,t,r={}){let n=ob(r);n.resolveLink=ib(e,t);let o=\"#fff\";try{t.background&&(o=ks(t.background,n,e.width,e.height))}catch{}let i=`<rect width=\"${C(e.width)}\" height=\"${C(e.height)}\" fill=\"${o}\"/>`,s=t.elements.map(u=>Su(u,n)).join(\"\")+(r.showComments?gb(t.comments,e.width,e.height):\"\"),l=(e.embeddedFonts??[]).map(u=>`@font-face{font-family:'${Qr(u.family)}';src:url('${Qr(u.src)}');font-weight:${u.bold?700:400};font-style:${u.italic?\"italic\":\"normal\"};}`).join(\"\")+(s.includes(vs)?og():\"\"),a=l?`<style>${l}</style>`:\"\",c=r.includeNotes&&t.notes?`<desc>${oe(t.notes)}</desc>`:\"\";return`<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 ${C(e.width)} ${C(e.height)}\" font-family=\"Helvetica, Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif\">`+c+`<defs>${a}${n.defs.join(\"\")}</defs>`+i+s+\"</svg>\"}function mo(e,t,r){let n=Xg(e.effects,r);if(!e.effects||!e.effects.reflection)return`<g transform=\"${io(e)}\"${n}>${t}</g>`;let o=r.nextId(\"rc\"),i=`<g id=\"${o}\">${t}</g>`;return`<g transform=\"${io(e)}\">`+Yg(e,o,r)+(n?`<g${n}>${i}</g>`:i)+\"</g>\"}var sb={none:{d:\"\",fill:!1},triangle:{d:\"M0 0 L10 5 L0 10 z\",fill:!0},stealth:{d:\"M0 0 L10 5 L0 10 L3 5 z\",fill:!0},diamond:{d:\"M0 5 L5 0 L10 5 L5 10 z\",fill:!0},oval:{d:\"M0 5 a5 5 0 1 0 10 0 a5 5 0 1 0 -10 0\",fill:!0},arrow:{d:\"M0 0 L10 5 L0 10\",fill:!1}};function dc(e,t,r,n){let o=sb[e.type];if(!o.d)return\"\";let i=r.nextId(\"m\"),s=Math.max(1,e.h),l=Math.max(1,e.w);return r.defs.push(`<marker id=\"${i}\" viewBox=\"0 0 10 10\" refX=\"${n?0:10}\" refY=\"5\" markerWidth=\"${C(s)}\" markerHeight=\"${C(l)}\" markerUnits=\"strokeWidth\" orient=\"${n?\"auto-start-reverse\":\"auto\"}\"><path d=\"${o.d}\" ${o.fill?`fill=\"${t}\"`:`fill=\"none\" stroke=\"${t}\" stroke-width=\"1.6\"`}/></marker>`),`url(#${i})`}function Cs(e,t){if(!e)return\"\";let r=` stroke=\"${e.color}\" stroke-width=\"${C(e.width)}\"`;if(e.dash&&(r+=` stroke-dasharray=\"${e.dash.map(C).join(\" \")}\"`),e.cap&&(r+=` stroke-linecap=\"${e.cap}\"`),e.join&&(r+=` stroke-linejoin=\"${e.join}\"`),e.head){let n=dc(e.head,e.color,t,!0);n&&(r+=` marker-start=\"${n}\"`)}if(e.tail){let n=dc(e.tail,e.color,t,!1);n&&(r+=` marker-end=\"${n}\"`)}return r}function io(e){return`${e.rot?`rotate(${C(e.rot)} ${C(e.x+e.w/2)} ${C(e.y+e.h/2)}) `:\"\"}translate(${C(e.x)} ${C(e.y)})`}function go(e){return!e.flipH&&!e.flipV?\"\":`translate(${C(e.w/2)} ${C(e.h/2)}) scale(${e.flipH?-1:1} ${e.flipV?-1:1}) translate(${C(-e.w/2)} ${C(-e.h/2)})`}function lb(e,t){try{let r=t instanceof Error?t.message:String(t),n=e.name?`${e.kind} \\xB7 ${e.name}`:e.kind;return`<g transform=\"${io(e)}\" data-render-error=\"1\"><title>${oe(n)} \\u6E32\\u67D3\\u5931\\u8D25\\uFF1A${oe(r.slice(0,200))}</title><rect width=\"${C(e.w)}\" height=\"${C(e.h)}\" fill=\"rgba(220,38,38,0.06)\" stroke=\"#dc2626\" stroke-width=\"1\" stroke-dasharray=\"5 4\"/></g>`}catch{return\"\"}}function Su(e,t,r){var n;let o;try{let i=r?eb(r,e):e;switch(i.kind){case\"shape\":o=ab(i,t);break;case\"image\":o=fb(i,t);break;case\"group\":o=db(i,t);break;case\"table\":o=mb(i,t);break;case\"unsupported\":o=bb(i);break}}catch(i){o=lb(r?{...e,...ku(r,e)}:e,i)}if(t.includeEditMarkers!==null&&(e.id!==void 0||t.includeEditMarkers)){let i=e.id!==void 0&&(n=t.hidden)!=null&&n.has(e.id)?\"visibility:hidden;\":\"\";o=`<g data-el=\"${e.id??\"\"}\" style=\"${i}transform-box:fill-box;transform-origin:center\">${o}</g>`}return po(o,t.resolveLink(e.link))}function ab(e,t){var r,n;let o=\"\",i,s=e.scene3d;if(e.path){let l=e.openGeom?\"none\":e.fill?ks(e.fill,t,e.w,e.h):\"none\",a=((r=e.fill)==null?void 0:r.type)===\"solid\"?e.fill.color:((n=e.fill)==null?void 0:n.type)===\"gradient\"&&e.fill.stops.length?e.fill.stops[0].color:\"rgb(128,128,128)\";s&&!Xn&&(o+=qg(e,s,a));let c=s!=null&&s.contourWidth?` stroke=\"${s.contourColor??oo(a,\"#000\",.45)}\" stroke-width=\"${C(s.contourWidth)}\"`:Cs(e.stroke,t);i=`<path d=\"${e.path}\" fill=\"${l}\" fill-rule=\"nonzero\"${c}/>`;let u=go(e);o+=u?`<g transform=\"${u}\">${i}</g>`:i,s&&!Xn&&(o+=Zg(e,s,a,t))}return e.text&&(o+=Tu(e.text,e.w,e.h,s&&Xn?{...t,textMode:\"svg\"}:t)),s&&Xn&&(o=Xn(e,o,t,i)),mo(e,o,t)}function cb(e,t){let r=Math.max(6,Math.min(Math.min(e.w,e.h)*.22,34)),n=e.w/2,o=e.h/2,i=`<circle cx=\"${C(n)}\" cy=\"${C(o)}\" r=\"${C(r)}\" fill=\"rgba(17,17,17,0.55)\" stroke=\"rgba(255,255,255,0.92)\" stroke-width=\"${C(Math.max(1,r*.09))}\"/>`,s;if(t.kind===\"audio\"){let l=r*.42,a=n-l*1.15;s=`<path d=\"M${C(a)} ${C(o-l*.42)} H${C(a+l*.62)} L${C(a+l*1.5)} ${C(o-l)} V${C(o+l)} L${C(a+l*.62)} ${C(o+l*.42)} H${C(a)} Z\" fill=\"#fff\"/><path d=\"M${C(n+l*.65)} ${C(o-l*.6)} A ${C(l*.75)} ${C(l*.75)} 0 0 1 ${C(n+l*.65)} ${C(o+l*.6)}\" fill=\"none\" stroke=\"#fff\" stroke-width=\"${C(Math.max(1,l*.26))}\" stroke-linecap=\"round\"/><path d=\"M${C(n+l*1.15)} ${C(o-l*1.05)} A ${C(l*1.35)} ${C(l*1.35)} 0 0 1 ${C(n+l*1.15)} ${C(o+l*1.05)}\" fill=\"none\" stroke=\"#fff\" stroke-width=\"${C(Math.max(1,l*.26))}\" stroke-linecap=\"round\" opacity=\"0.85\"/>`}else{let l=r*.46;s=`<path d=\"M${C(n-l*.62)} ${C(o-l)} L${C(n+l)} ${C(o)} L${C(n-l*.62)} ${C(o+l)} Z\" fill=\"#fff\"/>`}return`<g aria-hidden=\"true\" pointer-events=\"none\">${Eu(t)}${i}${s}</g>`}function Eu(e){let t=e.kind===\"audio\"?\"\\u97F3\\u9891\":\"\\u89C6\\u9891\",r=e.src?e.external?`${t}\\uFF08\\u5916\\u94FE\\uFF09`:t:`${t}\\uFF08\\u6E90\\u4E0D\\u53EF\\u7528\\uFF09`;return`<title>${oe(r)}</title>`}function ub(e,t){return`<foreignObject x=\"0\" y=\"0\" width=\"${C(e.w)}\" height=\"${C(e.h)}\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"width:100%;height:100%\"><video controls preload=\"metadata\" src=\"${oe(t.src??\"\")}\"`+(e.src?` poster=\"${oe(e.src)}\"`:\"\")+' style=\"width:100%;height:100%;display:block;object-fit:contain;background:#000\"></video></div></foreignObject>'}function hb(e,t){return`<g data-media-toggle=\"\" style=\"cursor:pointer\">${e}<foreignObject width=\"0\" height=\"0\"><div xmlns=\"http://www.w3.org/1999/xhtml\"><audio preload=\"none\" src=\"${oe(t.src??\"\")}\"></audio></div></foreignObject></g>`}function fb(e,t){let r=e.filter??\"\";if(e.duotone){let s=t.nextId(\"dt\");t.defs.push(_g(e.duotone,s)),r=`${r} url(#${s})`.trim()}let n=(e.alpha!==void 0&&e.alpha<1?` opacity=\"${C(e.alpha)}\"`:\"\")+(r?` style=\"filter:${oe(r)}\"`:\"\"),o;if(!e.src)o=`<rect width=\"${C(e.w)}\" height=\"${C(e.h)}\" fill=\"rgb(38,42,48)\"/>`;else if(e.crop&&(e.crop.l||e.crop.t||e.crop.r||e.crop.b)){let s=e.w/Math.max(1-e.crop.l-e.crop.r,fc),l=e.h/Math.max(1-e.crop.t-e.crop.b,fc),a=t.nextId(\"c\");t.defs.push(`<clipPath id=\"${a}\"><rect width=\"${C(e.w)}\" height=\"${C(e.h)}\"/></clipPath>`),o=`<g clip-path=\"url(#${a})\"><image href=\"${oe(e.src)}\" x=\"${C(-e.crop.l*s)}\" y=\"${C(-e.crop.t*l)}\" width=\"${C(s)}\" height=\"${C(l)}\" preserveAspectRatio=\"none\"${n}/></g>`}else o=`<image href=\"${oe(e.src)}\" width=\"${C(e.w)}\" height=\"${C(e.h)}\" preserveAspectRatio=\"none\"${n}/>`;if(e.clipPath){let s=t.nextId(\"cs\");t.defs.push(`<clipPath id=\"${s}\"><path d=\"${e.clipPath}\"/></clipPath>`),o=`<g clip-path=\"url(#${s})\">${o}</g>`}e.stroke&&(o+=`<path d=\"${e.clipPath??`M0 0 H${C(e.w)} V${C(e.h)} H0 Z`}\" fill=\"none\"${Cs(e.stroke,t)}/>`);let i=go(e);if(i&&(o=`<g transform=\"${i}\">${o}</g>`),e.media){let s=t.media===\"player\"&&!!e.media.src;s&&e.media.kind===\"video\"?o+=ub(e,e.media):(o=e.media.kind===\"video\"||!e.src||!e.media.src?o+cb(e,e.media):Eu(e.media)+o,s&&(o=hb(o,e.media)))}return mo(e,o,t)}function db(e,t){let r=t.includeEditMarkers&&e.editInfo&&e.editInfo.editable===\"frame\"?{...t,includeEditMarkers:null}:t,n=e.children.map(s=>Su(s,r,e)).join(\"\"),o=t.includeEditMarkers?' data-edit-group-children=\"1\"':\"\",i=go(e);return mo(e,`<g${o}${i?` transform=\"${i}\"`:\"\"}>${n}</g>`,t)}var pb={color:\"rgba(0,0,0,0.25)\",width:1,dash:null};function Vr(e,t,r,n,o,i){if(e===null)return\"\";let s=e??pb;return`<line x1=\"${C(t)}\" y1=\"${C(r)}\" x2=\"${C(n)}\" y2=\"${C(o)}\"${Cs(s,i)}/>`}function mb(e,t){let r=[],n=[],o=0;e.rows.forEach((s,l)=>{let a=0;s.cells.forEach((c,u)=>{let h=e.colWidths.slice(u,u+c.colSpan).reduce((p,b)=>p+b,0)||e.colWidths[u]||0;if(c.merged){a+=e.colWidths[u]??0;return}let f=e.rows.slice(l,l+c.rowSpan).reduce((p,b)=>p+b.height,0)||s.height,m=c.fill?ks(c.fill,t,h,f):\"none\",d=c.borders??{};r.push(`<g${t.includeEditMarkers?` data-table-cell=\"${l}:${u}\"`:\"\"} transform=\"translate(${C(a)} ${C(o)})\"><rect width=\"${C(h)}\" height=\"${C(f)}\" fill=\"${m}\"${t.includeEditMarkers?' pointer-events=\"visibleFill\"':\"\"}/>`+(c.text?Tu(c.text,h,f,t,c.margins,c.vAlign,c.vert):\"\")+\"</g>\"),n.push(`<g transform=\"translate(${C(a)} ${C(o)})\">`+Vr(d.t,0,0,h,0,t)+Vr(d.b,0,f,h,f,t)+Vr(d.l,0,0,0,f,t)+Vr(d.r,h,0,h,f,t)+\"</g>\"),a+=e.colWidths[u]??0}),o+=s.height});let i=r.join(\"\")+n.join(\"\");return mo(e,e.flipH||e.flipV?`<g transform=\"${go(e)}\">${i}</g>`:i,t)}function gb(e,t,r){if(!(e!=null&&e.length))return\"\";let n=Math.max(14,Math.min(t,r)*.036),o=[];return e.forEach((i,s)=>{let l=Math.max(0,Math.min(Number.isFinite(i.x)?i.x:0,t-n)),a=Math.max(0,Math.min(Number.isFinite(i.y)?i.y:0,r-n)),c=String(i.idx??s+1),u=[i.author,i.date,i.text].filter(Boolean).join(\" \\xB7 \");o.push(`<g class=\"ppt-comment\" data-comment=\"${oe(c)}\" transform=\"translate(${C(l)} ${C(a)})\"><title>${oe(u)}</title><path d=\"M${C(n*.16)} 0 H${C(n*.84)} A ${C(n*.16)} ${C(n*.16)} 0 0 1 ${C(n)} ${C(n*.16)} V${C(n*.62)} A ${C(n*.16)} ${C(n*.16)} 0 0 1 ${C(n*.84)} ${C(n*.78)} H${C(n*.42)} L${C(n*.16)} ${C(n)} V${C(n*.78)} A ${C(n*.16)} ${C(n*.16)} 0 0 1 0 ${C(n*.62)} V${C(n*.16)} A ${C(n*.16)} ${C(n*.16)} 0 0 1 ${C(n*.16)} 0 Z\" fill=\"rgb(255,196,60)\" stroke=\"rgba(120,80,0,0.55)\" stroke-width=\"${C(Math.max(.6,n*.045))}\"/><text x=\"${C(n*.5)}\" y=\"${C(n*.42)}\" text-anchor=\"middle\" dominant-baseline=\"central\" fill=\"rgb(60,40,0)\" font-size=\"${C(n*.52)}\" font-weight=\"700\">${oe(c)}</text></g>`)}),o.join(\"\")}function bb(e){let t=Math.max(10,Math.min(16,e.h/6)),r=e.preview?`<image href=\"${oe(e.preview)}\" width=\"${C(e.w)}\" height=\"${C(e.h)}\" preserveAspectRatio=\"none\"/>`:\"\";return`<g transform=\"${io(e)}\">`+r+`<rect width=\"${C(e.w)}\" height=\"${C(e.h)}\" fill=\"rgba(127,127,127,0.07)\" stroke=\"#aaa\" stroke-dasharray=\"6 4\"/><text x=\"${C(e.w/2)}\" y=\"${C(e.h/2)}\" text-anchor=\"middle\" dominant-baseline=\"middle\" fill=\"#888\" font-size=\"${C(t)}\">${oe(e.label)}</text></g>`}function Tu(e,t,r,n,o,i,s){var l;if(e.paragraphs.some(c=>c.runs.some(u=>{var h;return((h=u.link)==null?void 0:h.startsWith(\"slide-part:\"))||/^slide:(next|previous|first|last)$/.test(u.link??\"\")}))&&(e={...e,paragraphs:e.paragraphs.map(c=>({...c,runs:c.runs.map(u=>{let h=n.resolveLink(u.link);return h===u.link?u:{...u,link:h}})}))}),n.textMode===\"svg\"||no((l=e.warp)==null?void 0:l.preset)){if(e.autoFitCompute&&!e.autoFitShape){let u=$s(e,t,r,n.measureText,{insets:o,vert:s});u!==e.fontScale&&(e={...e,fontScale:u})}let c=u=>{let h=n.nextId(\"tg\");return n.defs.push(u.replace(\"__ID__\",h)),h};return Qi(s&&s!==e.vert?{...e,vert:s}:e,t,r,c,o,i,!!n.includeEditMarkers,n.measureText)}let a=Ng(e,t,r,{insets:o,anchor:i,vert:s,includeEditMarkers:!!n.includeEditMarkers,measureText:n.measureText});return`<foreignObject width=\"${C(t)}\" height=\"${C(r)}\" style=\"overflow:visible\">${a}</foreignObject>`}Il(yp);Nl(V1);Y1(mm);G1(Cm);function xb(e){let t;try{t=new _r(e)}catch{return null}let r=t.stream(\"EncryptedPackage\");return r?{info:t.stream(\"EncryptionInfo\"),pkg:r}:null}async function Lu(e,t={}){let r;if(e instanceof Uint8Array?r=e:e instanceof ArrayBuffer?r=new Uint8Array(e):r=new Uint8Array(await e.arrayBuffer()),r[0]===80&&r[1]===75)return vi(r,t);if(r[0]===208&&r[1]===207){let n=xb(r);if(n){if(!n.info)throw new Error(\"\\u8BE5\\u6587\\u4EF6\\u5DF2\\u52A0\\u5BC6\\uFF0C\\u4F46 EncryptionInfo \\u6D41\\u7F3A\\u5931\\uFF0C\\u6587\\u4EF6\\u53EF\\u80FD\\u5DF2\\u635F\\u574F\");let o=q1();if(!o)throw new Error(\"\\u8BE5\\u6587\\u4EF6\\u5DF2\\u52A0\\u5BC6\\uFF0C\\u4F46\\u672A\\u6CE8\\u5165\\u89E3\\u5BC6\\u5668\\uFF08setDecryptor\\uFF09\");if(t.password===void 0)throw new Kr;return vi(o(n.info,n.pkg,t.password),t)}return W2(r,t.password,t.edit===!0)}throw new Error(\"\\u65E0\\u6CD5\\u8BC6\\u522B\\u7684\\u6587\\u4EF6\\u683C\\u5F0F\\uFF1A\\u65E2\\u4E0D\\u662F .pptx\\uFF08Zip\\uFF09\\u4E5F\\u4E0D\\u662F .ppt\\uFF08CFB\\uFF09\")}var Ke=Uint8Array,An=Uint16Array,vb=Int32Array,Au=new Ke([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Pu=new Ke([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),wb=new Ke([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Iu=function(e,t){for(var r=new An(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];for(var o=new vb(r[30]),n=1;n<30;++n)for(var i=r[n];i<r[n+1];++i)o[i]=i-r[n]<<5|n;return{b:r,r:o}},Nu=Iu(Au,2),Ru=Nu.b,yb=Nu.r;Ru[28]=258,yb[258]=28;var Ou=Iu(Pu,0),$b=Ou.b,Kb=Ou.r,Ls=new An(32768);for(ae=0;ae<32768;++ae)Ot=(ae&43690)>>1|(ae&21845)<<1,Ot=(Ot&52428)>>2|(Ot&13107)<<2,Ot=(Ot&61680)>>4|(Ot&3855)<<4,Ls[ae]=((Ot&65280)>>8|(Ot&255)<<8)>>1;var Ot,ae,ar=(function(e,t,r){for(var n=e.length,o=0,i=new An(t);o<n;++o)e[o]&&++i[e[o]-1];var s=new An(t);for(o=1;o<t;++o)s[o]=s[o-1]+i[o-1]<<1;var l;if(r){l=new An(1<<t);var a=15-t;for(o=0;o<n;++o)if(e[o])for(var c=o<<4|e[o],u=t-e[o],h=s[e[o]-1]++<<u,f=h|(1<<u)-1;h<=f;++h)l[Ls[h]>>a]=c}else for(l=new An(n),o=0;o<n;++o)e[o]&&(l[o]=Ls[s[e[o]-1]++]>>15-e[o]);return l}),cr=new Ke(288);for(ae=0;ae<144;++ae)cr[ae]=8;var ae;for(ae=144;ae<256;++ae)cr[ae]=9;var ae;for(ae=256;ae<280;++ae)cr[ae]=7;var ae;for(ae=280;ae<288;++ae)cr[ae]=8;var ae,zu=new Ke(32);for(ae=0;ae<32;++ae)zu[ae]=5;var ae;var Mb=ar(cr,9,1);var kb=ar(zu,5,1),Ss=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},pt=function(e,t,r){var n=t/8|0;return(e[n]|e[n+1]<<8)>>(t&7)&r},Es=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},Cb=function(e){return(e+7)/8|0},Ps=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new Ke(e.subarray(t,r))};var Sb=[\"unexpected EOF\",\"invalid block type\",\"invalid length/literal\",\"invalid distance\",\"stream finished\",\"no stream handler\",,\"no callback\",\"invalid UTF-8 data\",\"extra field too long\",\"date not in range 1980-2099\",\"filename too long\",\"stream finishing\",\"invalid zip data\"],_e=function(e,t,r){var n=new Error(t||Sb[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,_e),!r)throw n;return n},Eb=function(e,t,r,n){var o=e.length,i=n?n.length:0;if(!o||t.f&&!t.l)return r||new Ke(0);var s=!r,l=s||t.i!=2,a=t.i;s&&(r=new Ke(o*3));var c=function(mt){var zt=r.length;if(mt>zt){var St=new Ke(Math.max(zt*2,mt));St.set(r),r=St}},u=t.f||0,h=t.p||0,f=t.b||0,m=t.l,d=t.d,p=t.m,b=t.n,v=o*8;do{if(!m){u=pt(e,h,1);var x=pt(e,h+1,3);if(h+=3,x)if(x==1)m=Mb,d=kb,p=9,b=5;else if(x==2){var $=pt(e,h,31)+257,k=pt(e,h+10,15)+4,A=$+pt(e,h+5,31)+1;h+=14;for(var L=new Ke(A),P=new Ke(19),E=0;E<k;++E)P[wb[E]]=pt(e,h+E*3,7);h+=k*3;for(var T=Ss(P),I=(1<<T)-1,O=ar(P,T,1),E=0;E<A;){var R=O[pt(e,h,I)];h+=R&15;var M=R>>4;if(M<16)L[E++]=M;else{var z=0,j=0;for(M==16?(j=3+pt(e,h,3),h+=2,z=L[E-1]):M==17?(j=3+pt(e,h,7),h+=3):M==18&&(j=11+pt(e,h,127),h+=7);j--;)L[E++]=z}}var F=L.subarray(0,$),W=L.subarray($);p=Ss(F),b=Ss(W),m=ar(F,p,1),d=ar(W,b,1)}else _e(1);else{var M=Cb(h)+4,S=e[M-4]|e[M-3]<<8,y=M+S;if(y>o){a&&_e(0);break}l&&c(f+S),r.set(e.subarray(M,y),f),t.b=f+=S,t.p=h=y*8,t.f=u;continue}if(h>v){a&&_e(0);break}}l&&c(f+131072);for(var V=(1<<p)-1,B=(1<<b)-1,q=h;;q=h){var z=m[Es(e,h)&V],X=z>>4;if(h+=z&15,h>v){a&&_e(0);break}if(z||_e(2),X<256)r[f++]=X;else if(X==256){q=h,m=null;break}else{var K=X-254;if(X>264){var E=X-257,Y=Au[E];K=pt(e,h,(1<<Y)-1)+Ru[E],h+=Y}var se=d[Es(e,h)&B],ue=se>>4;se||_e(3),h+=se&15;var W=$b[ue];if(ue>3){var Y=Pu[ue];W+=Es(e,h)&(1<<Y)-1,h+=Y}if(h>v){a&&_e(0);break}l&&c(f+131072);var fe=f+K;if(f<W){var de=i-W,it=Math.min(W,fe);for(de+f<0&&_e(3);f<it;++f)r[f]=n[de+f]}for(;f<fe;++f)r[f]=r[f-W]}}t.l=m,t.p=q,t.b=f,t.f=u,m&&(u=1,t.m=p,t.d=d,t.n=b)}while(!u);return f!=r.length&&s?Ps(r,0,f):r.subarray(0,f)};var Tb=new Ke(0);var Ct=function(e,t){return e[t]|e[t+1]<<8},ot=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},Ts=function(e,t){return ot(e,t)+ot(e,t+4)*4294967296};function Lb(e,t){return Eb(e,{i:2},t&&t.out,t&&t.dictionary)}var As=typeof TextDecoder<\"u\"&&new TextDecoder,Ab=0;try{As.decode(Tb,{stream:!0}),Ab=1}catch{}var Pb=function(e){for(var t=\"\",r=0;;){var n=e[r++],o=(n>127)+(n>223)+(n>239);if(r+o>e.length)return{s:t,r:Ps(e,r-1)};o?o==3?(n=((n&15)<<18|(e[r++]&63)<<12|(e[r++]&63)<<6|e[r++]&63)-65536,t+=String.fromCharCode(55296|n>>10,56320|n&1023)):o&1?t+=String.fromCharCode((n&31)<<6|e[r++]&63):t+=String.fromCharCode((n&15)<<12|(e[r++]&63)<<6|e[r++]&63):t+=String.fromCharCode(n)}};function Ib(e,t){if(t){for(var r=\"\",n=0;n<e.length;n+=16384)r+=String.fromCharCode.apply(null,e.subarray(n,n+16384));return r}else{if(As)return As.decode(e);var o=Pb(e),i=o.s,r=o.r;return r.length&&_e(8),i}}var Nb=function(e,t){return t+30+Ct(e,t+26)+Ct(e,t+28)},Rb=function(e,t,r){var n=Ct(e,t+28),o=Ct(e,t+30),i=Ib(e.subarray(t+46,t+46+n),!(Ct(e,t+8)&2048)),s=t+46+n,l=Ob(e,s,o,r,ot(e,t+20),ot(e,t+24),ot(e,t+42)),a=l[0],c=l[1],u=l[2];return[Ct(e,t+10),a,c,i,s+o+Ct(e,t+32),u]},Ob=function(e,t,r,n,o,i,s){var l=o==4294967295,a=i==4294967295,c=s==4294967295,u=t+r,h=l+a+c;if(n&&h){for(;t+4<u;t+=4+Ct(e,t+2))if(Ct(e,t)==1)return[l?Ts(e,t+4+8*a):o,a?Ts(e,t+4):i,c?Ts(e,t+4+8*(a+l)):s,1];n<2&&_e(13)}return[o,i,s,0]};function Fu(e,t){for(var r={},n=e.length-22;ot(e,n)!=101010256;--n)(!n||e.length-n>65558)&&_e(13);var o=Ct(e,n+8);if(!o)return{};var i=ot(e,n+16),s=ot(e,n-20)==117853008;if(s){var l=ot(e,n-12);s=ot(e,l)==101075792,s&&(o=ot(e,l+32),i=ot(e,l+48))}for(var a=t&&t.filter,c=0;c<o;++c){var u=Rb(e,i,s),h=u[0],f=u[1],m=u[2],d=u[3],p=u[4],b=u[5],v=Nb(e,b);i=p,(!a||a({name:d,size:f,originalSize:m,compression:h}))&&(h?h==8?r[d]=Lb(e.subarray(v,v+f),{out:new Ke(m)}):_e(14,\"unknown compression type \"+h):r[d]=Ps(e,v,v+f))}return r}async function ju(e){if(!e.length||e.length>50*1024*1024)throw new Error(\"\\u6F14\\u793A\\u6587\\u7A3F\\u5FC5\\u987B\\u5C0F\\u4E8E 50 MiB\");if(e[0]===80&&e[1]===75){let r=0,n=0;Fu(e,{filter(o){if(++r>2e3||o.originalSize>20*1024*1024||(n+=o.originalSize)>100*1024*1024)throw new Error(\"\\u6F14\\u793A\\u6587\\u7A3F\\u5C55\\u5F00\\u540E\\u8D85\\u8FC7\\u9884\\u89C8\\u9650\\u5236\");if(o.name.startsWith(\"/\")||o.name.includes(\"\\\\\")||o.name.split(\"/\").includes(\"..\"))throw new Error(\"\\u6F14\\u793A\\u6587\\u7A3F\\u8DEF\\u5F84\\u65E0\\u6548\");return!1}})}else if(![208,207,17,224,161,177,26,225].every((r,n)=>e[n]===r))throw new Error(\"\\u4E0D\\u662F\\u6709\\u6548\\u7684 PPT/PPTX \\u6587\\u4EF6\");let t=await Lu(e);if(!t.slides.length||t.slides.length>1e3||!Number.isFinite(t.width)||!Number.isFinite(t.height)||t.width<=0||t.height<=0||t.width>2e4||t.height>2e4)throw t.dispose?.(),new Error(\"\\u5E7B\\u706F\\u7247\\u6570\\u91CF\\u6216\\u5C3A\\u5BF8\\u8D85\\u51FA\\u9884\\u89C8\\u9650\\u5236\");return t}function Uu(e,t){return Cu(e,e.slides[t],{textMode:\"html\",media:\"badge\"})}var Du=`Presentation Preview for Tano \\u2014 MIT\n\n\n@web-ppt/core@0.5.0\nMIT License\n\nCopyright (c) 2026 unStone\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\nfflate@0.8.3\nMIT License\n\nCopyright (c) 2026 Arjun Barrett\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.`;function Bu(e){let t=document.getElementById(\"app\");t.innerHTML='<p id=\"status\" role=\"status\">\\u4ECE\\u6587\\u4EF6\\u6811\\u6253\\u5F00\\u6F14\\u793A\\u6587\\u7A3F\\uFF0C\\u6216\\u9009\\u62E9\\u672C\\u673A\\u6587\\u4EF6\\u3002\\u6587\\u4EF6\\u4EC5\\u5728\\u6B64\\u8BBE\\u5907\\u5904\\u7406\\u3002</p><main tabindex=\"0\" aria-label=\"\\u5E7B\\u706F\\u7247\\u9884\\u89C8\"><div id=\"paper\"></div></main><dialog><button id=\"close\">\\u5173\\u95ED</button><pre></pre></dialog>';let r=Is(t,\"presentation\"),n=P=>t.querySelector(`#${P}`),o=n(\"status\"),i=n(\"paper\"),s=t.querySelector(\"main\"),l,a=0,c=1,u=!0,h=0,f=0,m=\"\\u6F14\\u793A\\u6587\\u7A3F\\u9884\\u89C8\",d=()=>e.postMessage({type:\"header\",title:m,token:f,page:l?a+1:0,count:l?.slides.length??0}),p=P=>{o.textContent=P,o.hidden=!P},b,v=()=>{l?.dispose?.(),l=void 0,i.replaceChildren()};function x(){if(!l)return;let P=u?Math.min(2,Math.max(.05,(s.clientWidth-48)/l.width)):c;i.style.width=`${l.width*P}px`,i.style.height=`${l.height*P}px`;let E=i.firstElementChild;E&&(E.style.width=\"100%\",E.style.height=\"100%\")}function M(){if(!l)return;let P=new DOMParser().parseFromString(Uu(l,a),\"image/svg+xml\");if(P.querySelector(\"parsererror\"))throw new Error(\"\\u65E0\\u6CD5\\u6E32\\u67D3\\u6B64\\u9875\");P.querySelectorAll(\"script,iframe,object,embed,audio,video,animate,set\").forEach(E=>E.remove());for(let E of P.querySelectorAll(\"*\"))for(let T of[...E.attributes])(/^on/i.test(T.name)||/^(href|xlink:href|src)$/i.test(T.name)&&!/^(#|blob:|data:image\\/)/i.test(T.value))&&E.removeAttribute(T.name);i.replaceChildren(document.importNode(P.documentElement,!0)),d(),x()}async function S(P,E){let T=++h;v(),m=E,r.show(),p(`\\u6B63\\u5728\\u6E32\\u67D3 ${E}\\u2026`);try{if(await Ns(),T!==h)return;let I=await ju(P);if(T!==h){I.dispose?.();return}l=I,a=0,u=!0,M(),r.hide(),p(\"\")}catch(I){T===h&&(v(),r.hide(),p(String(I)),d())}}let y=P=>{if(l){a=Math.max(0,Math.min(l.slides.length-1,a+P));try{M()}catch(E){p(String(E))}}};s.onkeydown=P=>{(P.key===\"ArrowRight\"||P.key===\"ArrowLeft\")&&(P.preventDefault(),y(P.key===\"ArrowRight\"?1:-1))};let $=t.querySelector(\"dialog\");$.querySelector(\"pre\").textContent=Du,n(\"close\").onclick=()=>$.close();function k(P){(P===\"previous\"||P===\"next\")&&y(P===\"next\"?1:-1),P===\"fit\"&&(u=!0,x()),(P===\"minus\"||P===\"plus\")&&(l&&u&&(c=i.clientWidth/l.width),u=!1,c=Math.max(.1,Math.min(4,c+(P===\"plus\"?.1:-.1))),x()),P===\"license\"&&!$.open&&$.showModal()}let A=new ResizeObserver(x);A.observe(s);let L=e.onState(async P=>{if(!P||typeof P!=\"object\"||Array.isArray(P))return;if(typeof P.action==\"string\"&&P.chunk===void 0){k(P.action);return}if(typeof P.token==\"number\"&&(f=P.token),P.loading){b=void 0,++h,v(),r.show(),p(\"\\u6B63\\u5728\\u8BFB\\u53D6\\u6587\\u4EF6\\u2026\");return}if(P.idle){b=void 0,++h,v(),m=\"\\u6F14\\u793A\\u6587\\u7A3F\\u9884\\u89C8\",r.hide(),p(\"\\u8BF7\\u9009\\u62E9 PPT/PPTX \\u6587\\u4EF6\"),d();return}if(typeof P.error==\"string\"){b=void 0,++h,v(),r.hide(),p(P.error),d();return}if(typeof P.chunk!=\"string\"||typeof P.token!=\"number\"||typeof P.total!=\"number\"||P.total>50*1024*1024||P.total<0)return;P.offset===0&&(b={token:P.token,bytes:new Uint8Array(P.total),offset:0},++h,v(),r.show(),m=String(P.path),d());let E=b;if(!(!E||E.token!==P.token||P.offset!==E.offset))try{let T=Uint8Array.from(atob(P.chunk),I=>I.charCodeAt(0));if(!T.length||E.offset+T.length>E.bytes.length)throw new Error(\"\\u9644\\u4EF6\\u5206\\u5757\\u65E0\\u6548\");E.bytes.set(T,E.offset),E.offset+=T.length,p(`\\u8BFB\\u53D6\\u6587\\u4EF6 ${Math.round(E.offset/E.bytes.length*100)}%`),P.imported&&await e.postMessage({type:\"received\",token:E.token,offset:E.offset}),E.offset===E.bytes.length?(b=void 0,await S(E.bytes,String(P.path))):P.imported||(await new Promise(I=>setTimeout(I,25)),b===E&&await e.postMessage({offset:E.offset,token:E.token}))}catch(T){b===E&&(b=void 0,r.hide(),p(String(T)))}});addEventListener(\"pagehide\",()=>{++h,b=void 0,v(),A.disconnect(),L()},{once:!0})}return Yu(Fb);})();\n\nawait TanoPluginView.default(tanoView);"}}}
1
+ {"manifest":{"apiVersion":1,"commands":[{"id":"open","label":"演示文稿:打开预览"}],"description":"离线预览 PPT/PPTX,按原始尺寸渲染文字、图片、图形、主题和母版,无需安装 Office。","fileHandlers":[{"command":"open","extensions":[".ppt",".pptx"],"mode":"preview","view":"slides"}],"id":"presentation-preview","manifestVersion":2,"name":"演示文稿预览","nativeCommands":[],"networkOrigins":[],"objectTypes":[],"permissions":["attachments.read","ui"],"relationTypes":[],"version":"1.0.0","views":[{"id":"slides","label":"演示文稿预览","layout":"fill","location":"tab"}]},"packageVersion":1,"source":"\"use strict\";\nvar TanoPlugin = (() => {\n var __defProp = Object.defineProperty;\n var __getOwnPropDesc = Object.getOwnPropertyDescriptor;\n var __getOwnPropNames = Object.getOwnPropertyNames;\n var __hasOwnProp = Object.prototype.hasOwnProperty;\n var __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n };\n var __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n };\n var __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n // examples/plugins/presentation-preview/main.ts\n var main_exports = {};\n __export(main_exports, {\n default: () => activate\n });\n async function activate(tano) {\n let generation = 0;\n let current;\n let imported;\n let acknowledgment;\n const header = (title = \"\\u6F14\\u793A\\u6587\\u7A3F\\u9884\\u89C8\", page = 0, count = 0) => tano.views.setHeader(\"slides\", {\n ...count ? { previewInfo: { label: \"\\u9759\\u6001\\u9884\\u89C8\", detail: \"\\u4E0D\\u64AD\\u653E\\u52A8\\u753B\\u548C\\u89C6\\u9891\\uFF1B\\u7F3A\\u5C11\\u5B57\\u4F53\\u6216\\u4E0D\\u652F\\u6301\\u7684\\u5BF9\\u8C61\\u53EF\\u80FD\\u4E0E\\u539F\\u7A3F\\u4E0D\\u540C\\u3002\" } } : {},\n title,\n status: count ? `${page} / ${count}` : \"\",\n statusAfter: \"previous\",\n actions: [\n { id: \"open\", label: \"\\u6253\\u5F00 PPT/PPTX\", icon: \"open\", accept: \".ppt,.pptx\", group: \"\\u6587\\u4EF6\" },\n { id: \"previous\", label: \"\\u4E0A\\u4E00\\u9875\", icon: \"previous\", disabled: page <= 1 },\n { id: \"next\", label: \"\\u4E0B\\u4E00\\u9875\", icon: \"next\", disabled: !count || page >= count },\n { id: \"minus\", label: \"\\u7F29\\u5C0F\", icon: \"minus\", disabled: !count, group: \"\\u9884\\u89C8\\u7F29\\u653E\" },\n { id: \"fit\", label: \"\\u9002\\u5E94\\u5BBD\\u5EA6\", icon: \"fit\", disabled: !count, group: \"\\u9884\\u89C8\\u7F29\\u653E\" },\n { id: \"plus\", label: \"\\u653E\\u5927\", icon: \"plus\", disabled: !count, group: \"\\u9884\\u89C8\\u7F29\\u653E\" },\n { id: \"license\", label: \"\\u5F00\\u6E90\\u8BB8\\u53EF\", icon: \"info\", group: \"\\u8BF4\\u660E\" }\n ]\n });\n await header();\n await tano.views.renderCustom(\"slides\", { idle: true });\n tano.views.onMessage(\"slides\", async (message) => {\n if (!message || typeof message !== \"object\" || Array.isArray(message)) return;\n if (message.type === \"header\") {\n if (message.token !== generation) return;\n await header(String(message.title).slice(0, 200), Number(message.page), Number(message.count));\n return;\n }\n if (message.type === \"received\") {\n if (acknowledgment?.token === message.token && acknowledgment.offset === message.offset) acknowledgment.resolve();\n return;\n }\n if (message.type === \"header-action\") {\n await tano.views.renderCustom(\"slides\", { action: message.action, nonce: Date.now() });\n return;\n }\n if (message.type === \"header-file-start\" && message.action === \"open\" && typeof message.transferId === \"string\") {\n current = void 0;\n imported = { id: message.transferId, token: ++generation, offset: 0 };\n await header(String(message.name).slice(0, 200));\n await tano.views.renderCustom(\"slides\", { loading: true, token: imported.token });\n return;\n }\n if (message.type === \"header-file-error\" && imported?.id === message.transferId) {\n await tano.views.renderCustom(\"slides\", { error: String(message.error), token: imported.token });\n imported = void 0;\n return;\n }\n if (message.type === \"header-file\") {\n if (message.action !== \"open\" || typeof message.chunk !== \"string\" || typeof message.transferId !== \"string\" || typeof message.offset !== \"number\") return;\n if (message.offset === 0 && imported?.id !== message.transferId) {\n current = void 0;\n imported = { id: message.transferId, token: ++generation, offset: 0 };\n }\n const active2 = imported;\n if (!active2 || active2.id !== message.transferId || active2.offset !== message.offset) return;\n const length = atob(message.chunk).length;\n await new Promise((resolve, reject) => {\n const timer = setTimeout(() => {\n acknowledgment = void 0;\n reject(new Error(\"\\u6587\\u4EF6\\u4F20\\u8F93\\u8D85\\u65F6\"));\n }, 1e4);\n acknowledgment = { token: active2.token, offset: active2.offset + length, resolve: () => {\n clearTimeout(timer);\n acknowledgment = void 0;\n resolve();\n } };\n void tano.views.renderCustom(\"slides\", { ...message, path: message.name, token: active2.token, imported: true }).catch((error) => {\n clearTimeout(timer);\n acknowledgment = void 0;\n reject(error);\n });\n });\n active2.offset += length;\n return;\n }\n if (!current || message.token !== current.token) return;\n const active = current;\n try {\n const chunk = await tano.attachments.read(active.fileId, Number(message.offset), active.revision);\n if (current === active) await tano.views.renderCustom(\"slides\", { ...chunk, token: active.token });\n } catch (error) {\n if (current === active) await tano.views.renderCustom(\"slides\", { error: String(error), token: active.token });\n }\n });\n await tano.commands.register(\"open\", async (context) => {\n const token = ++generation;\n current = void 0;\n imported = void 0;\n await header();\n await tano.views.renderCustom(\"slides\", context?.fileId ? { loading: true, token } : { idle: true, token });\n if (!context?.viewAlreadyOpen) await tano.views.open(\"slides\");\n if (!context?.fileId) return;\n try {\n const chunk = await tano.attachments.read(context.fileId);\n if (token !== generation) return;\n if (!/\\.pptx?$/i.test(chunk.path)) throw new Error(\"\\u8BF7\\u9009\\u62E9 PPT \\u6216 PPTX \\u6587\\u4EF6\");\n current = { fileId: context.fileId, revision: chunk.revision, token };\n await tano.views.renderCustom(\"slides\", { ...chunk, token });\n } catch (error) {\n if (token === generation) await tano.views.renderCustom(\"slides\", { error: String(error), token });\n }\n });\n }\n return __toCommonJS(main_exports);\n})();\n\nawait TanoPlugin.default(tano);","ui":{"slides":{"css":"#app{position:relative}.preview-loading{position:absolute;inset:0;z-index:2;overflow:hidden;box-sizing:border-box;padding:24px;background:#f1f2f4;pointer-events:none}.preview-loading[hidden]{display:none}.preview-is-loading>main{visibility:hidden}.preview-is-loading>footer{visibility:hidden}.preview-is-loading>#status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.loading-paper{position:relative;box-sizing:border-box;margin:0 auto 24px;background:#fff;box-shadow:0 2px 8px #0002;overflow:hidden}.preview-loading i{display:block;border-radius:3px;background:linear-gradient(100deg,#e9ecef 20%,#f4f5f6,#e9ecef 60%);background-size:240% 100%;animation:preview-loading-shimmer 1.8s ease-in-out infinite}.preview-loading-presentation .loading-paper{width:100%;max-width:1280px;aspect-ratio:16/9;contain:size;padding:7%}.loading-title{width:55%;height:clamp(10px,2.2vw,28px);margin-bottom:6%}.loading-slide-body{display:grid;grid-template-columns:1fr 1fr;gap:9%;height:65%}.loading-lines{display:flex;flex-direction:column;gap:clamp(5px,1.4vw,17px)}.loading-lines>i{height:clamp(4px,1vw,10px);width:100%}.loading-lines>i:nth-child(2){width:90%}.loading-lines>i:last-child{width:65%}.loading-figure{display:flex;align-items:end;justify-content:center;gap:10%;padding:10%;box-sizing:border-box;background:#f5f6f7;border-radius:4px}.loading-figure>i{width:20%;height:50%}.loading-figure>i:nth-child(2){height:85%}.loading-figure>i:nth-child(3){height:65%}.preview-loading-word .loading-paper{width:100%;max-width:794px;aspect-ratio:210/297;padding:9% 8%;display:flex;flex-direction:column;gap:5%}.preview-loading-word .loading-title{height:clamp(12px,2.4vw,24px);margin:2% 0 0;flex-shrink:0}.preview-loading-word .loading-running-head{width:25%;height:6px;margin-bottom:6%}.preview-loading-word .loading-lines{flex-shrink:0}.loading-table{display:grid;grid-template-columns:repeat(3,1fr);border-left:1px solid #edf0f2;border-top:1px solid #edf0f2}.loading-table>span{padding:14%;border-right:1px solid #edf0f2;border-bottom:1px solid #edf0f2}.loading-table i{height:clamp(4px,.8vw,8px);width:70%}.preview-loading-word .loading-page-number{width:20px;height:6px;margin:auto auto 0}@keyframes preview-loading-shimmer{0%{background-position:100% 0}to{background-position:-100% 0}}@media(prefers-reduced-motion:reduce){.preview-loading i{animation:none}}@media(max-width:600px){.preview-loading{padding:24px}.preview-loading-word .loading-paper{padding:10%}}:root{--scrollbar-size: 12px;--scrollbar-inset: 2px;--scrollbar-radius: 6px;--scrollbar-thumb: var(--control-border, #d3d2ce);--scrollbar-thumb-hover: var(--muted, #787774)}*{scrollbar-width:auto;scrollbar-color:auto}*::-webkit-scrollbar{width:var(--scrollbar-size);height:var(--scrollbar-size)}*::-webkit-scrollbar-track,*::-webkit-scrollbar-corner{background:transparent}*::-webkit-scrollbar-thumb{min-width:24px;min-height:24px;border:var(--scrollbar-inset) solid transparent;border-radius:var(--scrollbar-radius);background:var(--scrollbar-thumb);background-clip:padding-box}*::-webkit-scrollbar-thumb:hover,*::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-hover)}*::-webkit-scrollbar-button{display:none;width:0;height:0}@supports not selector(::-webkit-scrollbar){*{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb) transparent}}@media(forced-colors:active){*{scrollbar-color:auto}*::-webkit-scrollbar-thumb{background-color:ButtonText}}html,body,#app{margin:0;height:100%;font:14px system-ui,sans-serif;color:#24292f;background:#f1f2f4}#app{display:flex;flex-direction:column;overflow:hidden}button{font:inherit;padding:5px 10px;border:1px solid #ddd;border-radius:5px;background:#fff;cursor:pointer}button:disabled{opacity:.45;cursor:default}button:focus-visible{outline:2px solid #387350}#status{margin:0;padding:8px 16px;overflow-wrap:anywhere}main{flex:1;overflow:auto;min-height:0;padding:24px;box-sizing:border-box}#paper{margin:0 auto;background:#fff;box-shadow:0 2px 8px #0002;flex-shrink:0}#paper>svg{display:block}dialog{max-width:85vw;max-height:75vh}pre{white-space:pre-wrap}\n@import '../../../../packages/workbench/src/styles/scrollbars.css';\n\nhtml,body,#app { margin:0; height:100%; font:14px system-ui,sans-serif; color:#24292f; background:#f1f2f4; }\n#app { display:flex; flex-direction:column; overflow:hidden; }\nbutton { font:inherit; padding:5px 10px; border:1px solid #ddd; border-radius:5px; background:white; cursor:pointer; }\nbutton:disabled { opacity:.45; cursor:default; } button:focus-visible { outline:2px solid #387350; }\n#status { margin:0; padding:8px 16px; overflow-wrap:anywhere; }\nmain { flex:1; overflow:auto; min-height:0; padding:24px; box-sizing:border-box; }\n#paper { margin:0 auto; background:white; box-shadow:0 2px 8px #0002; flex-shrink:0; }\n#paper > svg { display:block; }\ndialog { max-width:85vw; max-height:75vh; } pre { white-space:pre-wrap; }\n","html":"","source":"\"use strict\";var TanoPluginView=(()=>{var xo=Object.defineProperty;var Hu=Object.getOwnPropertyDescriptor;var Wu=Object.getOwnPropertyNames;var Vu=Object.prototype.hasOwnProperty;var Gu=(e,t)=>{for(var r in t)xo(e,r,{get:t[r],enumerable:!0})},Xu=(e,t,r,n)=>{if(t&&typeof t==\"object\"||typeof t==\"function\")for(let o of Wu(t))!Vu.call(e,o)&&o!==r&&xo(e,o,{get:()=>t[o],enumerable:!(n=Hu(t,o))||n.enumerable});return e};var Yu=e=>Xu(xo({},\"__esModule\",{value:!0}),e);var Fb={};Gu(Fb,{default:()=>Bu});function Is(e,t){let r=document.createElement(\"div\");r.className=`preview-loading preview-loading-${t}`,r.dataset.previewKind=t,r.setAttribute(\"aria-hidden\",\"true\"),r.hidden=!0;let n='<div class=\"loading-lines\"><i></i><i></i><i></i><i></i></div>',o=t===\"presentation\"?`<div class=\"loading-paper\"><i class=\"loading-title\"></i><div class=\"loading-slide-body\">${n}<div class=\"loading-figure\"><i></i><i></i><i></i></div></div></div>`:`<div class=\"loading-paper\"><i class=\"loading-running-head\"></i><i class=\"loading-title\"></i>${n}<div class=\"loading-table\">${\"<span><i></i></span>\".repeat(9)}</div>${n}<i class=\"loading-page-number\"></i></div>`;return r.innerHTML=o+(t===\"word\"?o:\"\"),e.append(r),{show(){r.hidden=!1,e.classList.add(\"preview-is-loading\"),e.setAttribute(\"aria-busy\",\"true\")},hide(){r.hidden=!0,e.classList.remove(\"preview-is-loading\"),e.setAttribute(\"aria-busy\",\"false\")}}}var Ns=()=>new Promise(e=>requestAnimationFrame(()=>setTimeout(e,0)));var g=e=>Number.isFinite(e)?String(Math.round(e*1e3)/1e3):\"0\",tn=e=>e*Math.PI/180,ke=e=>({d:e,open:!0}),D=(e,t,r)=>(e[t]??r)/1e5,Ft=(e,t,r)=>(e[t]??r)/6e4;function G(e,t=!0){return e.length?\"M \"+e.map(([r,n])=>`${g(r)} ${g(n)}`).join(\" L \")+(t?\" Z\":\"\"):\"\"}function xe(e,t,r,n,o){return[e+r*Math.cos(tn(o)),t+n*Math.sin(tn(o))]}function Re(e,t,r,n,o,i){let s=Math.max(-359.99,Math.min(359.99,i)),[l,a]=xe(e,t,r,n,o+s);return`A ${g(r)} ${g(n)} 0 ${Math.abs(s)>180?1:0} ${s>=0?1:0} ${g(l)} ${g(a)}`}function vo(e,t,r,n,o,i){let[s,l]=xe(e,t,r,n,o);return`M ${g(s)} ${g(l)} ${Re(e,t,r,n,o,i)}`}function Se(e){if(e.length<2)return\"\";let t=e.slice(0,-1).reverse();return\"M \"+[...e,...t].map(([r,n])=>`${g(r)} ${g(n)}`).join(\" L \")}function Rs(e,t,r,n){return we(e,t,r,n)+\" \"+we(e,t,r,n,!0)}function we(e,t,r,n,o=!1){let i=o?-180:180;return`M ${g(e-r)} ${g(t)} ${Re(e,t,r,n,180,i)} ${Re(e,t,r,n,180+i,i)} Z`}function ur(e,t){return(r,n)=>{let o=[];for(let i=0;i<e;i++)o.push(xe(r/2,n/2,r/2,n/2,t+360*i/e));return G(o)}}function gt(e,t){return(r,n,o)=>{let i=o.adj!==void 0?o.adj/1e5:t,s=Math.min(.95,Math.max(.05,i)),l=[];for(let a=0;a<e*2;a++){let c=a%2===0?1:s;l.push(xe(r/2,n/2,r/2*c,n/2*c,-90+a*180/e))}return G(l)}}function Fs(e,t,r,n){let o=[[0,0],[e,0],[e,t],[0,t]],i=[[1,0],[0,1],[-1,0],[0,-1]],s=[];for(let l=0;l<4;l++){let[a,c]=o[l],u=Math.max(0,r[l]),h=i[(l+3)%4],f=i[l],m=[a-h[0]*u,c-h[1]*u],d=[a+f[0]*u,c+f[1]*u];s.push(`${l===0?\"M\":\"L\"} ${g(m[0])} ${g(m[1])}`),u>0&&s.push(n[l]===\"r\"?`A ${g(u)} ${g(u)} 0 0 1 ${g(d[0])} ${g(d[1])}`:`L ${g(d[0])} ${g(d[1])}`)}return s.join(\" \")+\" Z\"}var jt=(e,t,r)=>(n,o,i)=>{let s=t.map((l,a)=>l?Math.min(n,o)*Math.min(D(i,l,r[a]),.5):0);return Fs(n,o,s,e)},js={r:([e,t])=>[e,t],l:([e,t],r)=>[r-e,t],d:([e,t])=>[t,e],u:([e,t],r,n)=>[t,n-e]};function hr(e){return(t,r,n)=>{let o=e===\"r\"||e===\"l\",i=o?t:r,s=o?r:t,l=s*Math.min(D(n,\"adj1\",5e4),1)/2,a=Math.min(i,s*D(n,\"adj2\",5e4)),c=s/2,u=[[0,c-l],[i-a,c-l],[i-a,0],[i,c],[i-a,s],[i-a,c+l],[0,c+l]];return G(u.map(h=>js[e](h,t,r)))}}function fr(e){return(t,r,n)=>{let o=e===\"r\"||e===\"l\",i=o?t:r,s=o?r:t,l=s*D(n,\"adj1\",18515)/2,a=Math.min(i/2,s*D(n,\"adj2\",18515)),c=Math.max(0,i-Math.max(a,i*(1-D(n,\"adj4\",66667)))),u=s/2,h=[[0,0],[c,0],[c,u-l],[i-a,u-l],[i-a,0],[i,u],[i-a,s],[i-a,u+l],[c,u+l],[c,s],[0,s]];return G(h.map(f=>js[e](f,t,r)))}}function yo(e,t,r){return[e/2+e*D(r,\"adj1\",-20833),t/2+t*D(r,\"adj2\",62500)]}function Os(e,t,r){let n=yo(e,t,r),o=n[0]-e/2,i=n[1]-t/2,s=e===0?0:o*t/e,l=Math.abs(i)-Math.abs(s)>0,a=e*(o>0?7:2)/12,c=t*(i>0?7:2)/12;return{x1:a,x2:e*(o>0?10:5)/12,y1:c,y2:t*(i>0?10:5)/12,top:l&&i<=0?n:[a,0],right:!l&&o>0?n:[e,c],bottom:l&&i>0?n:[a,t],left:!l&&o<=0?n:[0,c]}}function qu(e,t,r,n){let o=[[e*.15,t]];return n===1?o.push([e*D(r,\"adj2\",-8333),t+t*D(r,\"adj1\",18750)]):(o.push([e*.05,t*1.2]),o.push([e*D(r,\"adj4\",-16667),t+t*D(r,\"adj3\",44444)]),n>=3&&o.push([e*D(r,\"adj6\",-16667)-e*.12,t+t*D(r,\"adj5\",44444)])),\" \"+Se(o)}function Qe(e,t){return(r,n,o)=>G([[0,0],[r,0],[r,n],[0,n]])+(t?\" \"+Se([[0,0],[0,n]]):\"\")+qu(r,n,o,e)}function wo(e){return(t,r)=>{let n=Math.min(Math.hypot(t,r)/20,Math.min(t,r)/2),o=(i,s,l,a)=>{let[c,u]=[i+l*n,s],[h,f]=[i,s+a*n];if(e===\"s\")return G([[i,s],[c,u],[c,f],[h,f]]);let m=e===\"q\"?l*a>0?1:0:l*a>0?0:1;return`M ${g(i)} ${g(s)} L ${g(c)} ${g(u)} A ${g(n)} ${g(n)} 0 0 ${m} ${g(h)} ${g(f)} Z`};return[o(0,0,1,1),o(t,0,-1,1),o(t,r,-1,-1),o(0,r,1,-1)].join(\" \")}}function dr(e,t,r,n){let o=t/4;return n?`C ${g(t-o)} ${g(e+r)} ${g(o)} ${g(e-r)} 0 ${g(e)}`:`C ${g(o)} ${g(e-r)} ${g(o*3)} ${g(e+r)} ${g(t)} ${g(e)}`}function en(e,t,r,n,o,i,s,l,a=!1){let c=l>=s?1:-1,u=Math.max(1,Math.min(i,Math.min(r,n)-o-1)),h=(r+n)/2-o/2,f=Math.min(Math.abs(l-s)*(a?.35:.6),u/Math.max(h,1)*(180/Math.PI)),m=l-c*f,d=a?s+c*f:s,p=m-d,[b,v]=xe(e,t,r,n,d),[x,M]=xe(e,t,r+u,n+u,m),[S,y]=xe(e,t,r-o/2,n-o/2,l),[$,k]=xe(e,t,r-o-u,n-o-u,m),[A,L]=xe(e,t,r-o,n-o,m),P=\"\";if(a){let[E,T]=xe(e,t,r-o-u,n-o-u,d),[I,O]=xe(e,t,r-o/2,n-o/2,s),[R,z]=xe(e,t,r+u,n+u,d);P=`L ${g(E)} ${g(T)} L ${g(I)} ${g(O)} L ${g(R)} ${g(z)} `}return`M ${g(b)} ${g(v)} ${Re(e,t,r,n,d,p)} L ${g(x)} ${g(M)} L ${g(S)} ${g(y)} L ${g($)} ${g(k)} L ${g(A)} ${g(L)} ${Re(e,t,r-o,n-o,m,-p)} ${P}Z`}function zs(e,t,r){let n=e/2,o=t/2,i=Math.min(e,t)/2,s=i*.78,l=360/r,a=[];for(let c=0;c<r;c++){let u=c*l;a.push(xe(n,o,s,s,u-l*.28)),a.push(xe(n,o,i,i,u-l*.16)),a.push(xe(n,o,i,i,u+l*.16)),a.push(xe(n,o,s,s,u+l*.28))}return G(a)+\" \"+we(n,o,i*.36,i*.36,!0)}function $o(e,t,r){return G([[0,0],[e,0],[e,t],[0,t]])+\" \"+Se([[r,r],[e-r,r],[e-r,t-r],[r,t-r],[r,r]])}function st(e,t,r){let n=Math.min(e,t)*.125;return $o(e,t,n)+\" \"+r(Math.min(e,t)*.24,e/2,t/2)}var dn={rect:(e,t)=>G([[0,0],[e,0],[e,t],[0,t]]),roundRect:jt([\"r\",\"r\",\"r\",\"r\"],[\"adj\",\"adj\",\"adj\",\"adj\"],[16667,16667,16667,16667]),round1Rect:jt([\"n\",\"r\",\"n\",\"n\"],[null,\"adj\",null,null],[0,16667,0,0]),round2SameRect:jt([\"r\",\"r\",\"r\",\"r\"],[\"adj1\",\"adj1\",\"adj2\",\"adj2\"],[16667,16667,0,0]),round2DiagRect:jt([\"r\",\"r\",\"r\",\"r\"],[\"adj1\",\"adj2\",\"adj1\",\"adj2\"],[16667,0,16667,0]),snip1Rect:jt([\"n\",\"s\",\"n\",\"n\"],[null,\"adj\",null,null],[0,16667,0,0]),snip2SameRect:jt([\"s\",\"s\",\"s\",\"s\"],[\"adj1\",\"adj1\",\"adj2\",\"adj2\"],[16667,16667,0,0]),snip2DiagRect:jt([\"s\",\"s\",\"s\",\"s\"],[\"adj1\",\"adj2\",\"adj1\",\"adj2\"],[0,16667,0,16667]),snipRoundRect:jt([\"r\",\"s\",\"n\",\"n\"],[\"adj1\",\"adj2\",null,null],[16667,16667,0,0]),plaque:(e,t,r)=>{let n=Math.min(e,t)*Math.min(D(r,\"adj\",16667),.5);return`M ${g(n)} 0 L ${g(e-n)} 0 A ${g(n)} ${g(n)} 0 0 0 ${g(e)} ${g(n)} L ${g(e)} ${g(t-n)} A ${g(n)} ${g(n)} 0 0 0 ${g(e-n)} ${g(t)} L ${g(n)} ${g(t)} A ${g(n)} ${g(n)} 0 0 0 0 ${g(t-n)} L 0 ${g(n)} A ${g(n)} ${g(n)} 0 0 0 ${g(n)} 0 Z`},bevel:(e,t,r)=>$o(e,t,Math.min(e,t)*Math.min(D(r,\"adj\",12500),.5)),cornerTabs:wo(\"q\"),squareTabs:wo(\"s\"),plaqueTabs:wo(\"c\"),frame:(e,t,r)=>{let n=Math.min(e,t)*Math.min(D(r,\"adj1\",12500),.5);return G([[0,0],[e,0],[e,t],[0,t]])+\" \"+G([[n,n],[n,t-n],[e-n,t-n],[e-n,n]])},halfFrame:(e,t,r)=>{let n=Math.min(e,t)*D(r,\"adj1\",33333),o=Math.min(e,t)*D(r,\"adj2\",33333);return G([[0,0],[e,0],[e-o,n],[o,n],[o,t-n],[0,t]])},corner:(e,t,r)=>{let n=Math.min(e,t)*D(r,\"adj1\",5e4),o=Math.min(e,t)*D(r,\"adj2\",5e4);return G([[0,0],[o,0],[o,t-n],[e,t-n],[e,t],[0,t]])},diagStripe:(e,t,r)=>{let n=Math.min(D(r,\"adj\",5e4),1);return G([[0,t*(1-n)],[e*(1-n),0],[e,0],[0,t]])},foldedCorner:(e,t,r)=>{let n=Math.min(e,t)*D(r,\"adj\",16667);return G([[0,0],[e,0],[e,t-n],[e-n,t],[0,t]])+` M ${g(e-n)} ${g(t)} L ${g(e-n*.72)} ${g(t-n*.72)} L ${g(e)} ${g(t-n)} Z`},ellipse:(e,t)=>we(e/2,t/2,e/2,t/2),triangle:(e,t,r)=>G([[e*D(r,\"adj\",5e4),0],[e,t],[0,t]]),rtTriangle:(e,t)=>G([[0,0],[e,t],[0,t]]),diamond:(e,t)=>G([[e/2,0],[e,t/2],[e/2,t],[0,t/2]]),parallelogram:(e,t,r)=>{let n=Math.min(e,Math.min(e,t)*D(r,\"adj\",25e3));return G([[n,0],[e,0],[e-n,t],[0,t]])},trapezoid:(e,t,r)=>{let n=Math.min(e/2,Math.min(e,t)*D(r,\"adj\",25e3));return G([[n,0],[e-n,0],[e,t],[0,t]])},nonIsoscelesTrapezoid:(e,t,r)=>G([[e*D(r,\"adj1\",25e3),0],[e-e*D(r,\"adj2\",25e3),0],[e,t],[0,t]]),pentagon:ur(5,-90),heptagon:ur(7,-90),decagon:ur(10,-90),dodecagon:ur(12,-90),hexagon:(e,t,r)=>{let n=Math.min(e/2,Math.min(e,t)*D(r,\"adj\",25e3));return G([[n,0],[e-n,0],[e,t/2],[e-n,t],[n,t],[0,t/2]])},octagon:(e,t,r)=>{let n=Math.min(Math.min(e,t)/2,Math.min(e,t)*D(r,\"adj\",29289));return G([[n,0],[e-n,0],[e,n],[e,t-n],[e-n,t],[n,t],[0,t-n],[0,n]])},homePlate:(e,t,r)=>{let n=Math.min(e,Math.min(e,t)*D(r,\"adj\",5e4));return G([[0,0],[e-n,0],[e,t/2],[e-n,t],[0,t]])},chevron:(e,t,r)=>{let n=Math.min(e,Math.min(e,t)*D(r,\"adj\",5e4));return G([[0,0],[e-n,0],[e,t/2],[e-n,t],[0,t],[n,t/2]])},plus:(e,t,r)=>{let n=Math.min(e,t)*Math.min(D(r,\"adj\",25e3),.5);return G([[n,0],[e-n,0],[e-n,n],[e,n],[e,t-n],[e-n,t-n],[e-n,t],[n,t],[n,t-n],[0,t-n],[0,n],[n,n]])},teardrop:(e,t,r)=>{let n=Math.max(0,D(r,\"adj\",1e5)),o=Math.SQRT1_2+n*(1-Math.SQRT1_2),i=e/2,s=t/2;return`M 0 ${g(s)} ${Re(i,s,e/2,t/2,180,90)} L ${g(i+e/2*o)} ${g(s-t/2*o)} L ${g(e)} ${g(s)} ${Re(i,s,e/2,t/2,0,180)} Z`},can:(e,t,r)=>{let n=Math.min(t/2,t*D(r,\"adj\",25e3)/2);return`M 0 ${g(n)} ${Re(e/2,n,e/2,n,180,180)} L ${g(e)} ${g(t-n)} ${Re(e/2,t-n,e/2,n,0,180)} Z `+Rs(e/2,n,e/2,n)},cube:(e,t,r)=>{let n=Math.min(e,t)*Math.min(D(r,\"adj\",25e3),.5);return G([[0,n],[n,0],[e,0],[e,t-n],[e-n,t],[0,t]])+\" \"+Se([[0,n],[e-n,n],[e,0]])+\" \"+Se([[e-n,n],[e-n,t]])},donut:(e,t,r)=>{let n=Math.min(e,t)*Math.min(D(r,\"adj\",25e3),.5);return we(e/2,t/2,e/2,t/2)+\" \"+we(e/2,t/2,e/2-n,t/2-n,!0)},noSmoking:(e,t,r)=>{let n=Math.min(e,t)*Math.min(D(r,\"adj\",18750),.5),o=e/2-n,i=t/2-n,s=e/2,l=t/2,a=n/2,c=Math.cos(tn(-45)),u=Math.sin(tn(-45)),h=-u,f=c,[m,d]=[s-c*o,l-u*i],[p,b]=[s+c*o,l+u*i],v=G([[m+h*a,d+f*a],[p+h*a,b+f*a],[p-h*a,b-f*a],[m-h*a,d-f*a]]);return we(s,l,e/2,t/2)+\" \"+we(s,l,o,i,!0)+\" \"+v},pie:(e,t,r)=>{let n=Ft(r,\"adj1\",0),o=((Ft(r,\"adj2\",270*6e4)-n)%360+360)%360,[i,s]=xe(e/2,t/2,e/2,t/2,n);return`M ${g(e/2)} ${g(t/2)} L ${g(i)} ${g(s)} ${Re(e/2,t/2,e/2,t/2,n,o)} Z`},pieWedge:(e,t)=>`M 0 ${g(t)} ${Re(e,t,e,t,180,90)} L ${g(e)} ${g(t)} Z`,chord:(e,t,r)=>{let n=Ft(r,\"adj1\",27e5),o=((Ft(r,\"adj2\",270*6e4)-n)%360+360)%360;return vo(e/2,t/2,e/2,t/2,n,o)+\" Z\"},arc:(e,t,r)=>{let n=Ft(r,\"adj1\",162e5),o=((Ft(r,\"adj2\",0)-n)%360+360)%360;return ke(vo(e/2,t/2,e/2,t/2,n,o))},blockArc:(e,t,r)=>{let n=Ft(r,\"adj1\",108e5),o=((Ft(r,\"adj2\",0)-n)%360+360)%360,i=Math.min(e,t)*Math.min(D(r,\"adj3\",25e3),.5),[s,l]=xe(e/2,t/2,e/2-i,t/2-i,n+o);return vo(e/2,t/2,e/2,t/2,n,o)+` L ${g(s)} ${g(l)} ${Re(e/2,t/2,e/2-i,t/2-i,n+o,-o)} Z`},cloud:(e,t)=>{let r=i=>i*e,n=i=>i*t,o=(i,s,l,a,c,u)=>`C ${g(r(i))} ${g(n(s))} ${g(r(l))} ${g(n(a))} ${g(r(c))} ${g(n(u))} `;return`M ${g(r(.2))} ${g(n(.79))} `+o(.06,.79,0,.66,.07,.55)+o(0,.43,.1,.31,.22,.34)+o(.25,.16,.44,.09,.56,.19)+o(.65,.05,.86,.09,.88,.26)+o(1,.3,1.01,.48,.92,.56)+o(1,.69,.9,.83,.76,.79)+o(.68,.91,.5,.93,.42,.84)+o(.36,.91,.25,.89,.2,.79)+\"Z\"},heart:(e,t)=>{let r=o=>o*e,n=o=>o*t;return`M ${g(r(.5))} ${g(n(1))} C ${g(r(-.06))} ${g(n(.53))} ${g(r(.08))} ${g(n(-.11))} ${g(r(.5))} ${g(n(.25))} C ${g(r(.92))} ${g(n(-.11))} ${g(r(1.06))} ${g(n(.53))} ${g(r(.5))} ${g(n(1))} Z`},lightningBolt:(e,t)=>G([[.55,0],[1,.55],[.68,.55],[.8,1],[0,.42],[.42,.42]].map(([r,n])=>[r*e,n*t])),sun:(e,t,r)=>{let n=Math.min(D(r,\"adj\",25e3),.45),o=e/2,i=t/2,s=o*(1-n*1.4),l=i*(1-n*1.4),a=[];for(let c=0;c<8;c++){let u=c*45,[h,f]=xe(o,i,s,l,u-9),[m,d]=xe(o,i,o,i,u),[p,b]=xe(o,i,s,l,u+9);a.push(`M ${g(h)} ${g(f)} L ${g(m)} ${g(d)} L ${g(p)} ${g(b)} Z`)}return we(o,i,s,l)+\" \"+a.join(\" \")},moon:(e,t,r)=>{let n=D(r,\"adj\",5e4);return`M ${g(e)} 0 C ${g(e*(1-n*1.6))} ${g(t*.15)} ${g(e*(1-n*1.6))} ${g(t*.85)} ${g(e)} ${g(t)} C ${g(e*.1)} ${g(t*.92)} ${g(e*.1)} ${g(t*.08)} ${g(e)} 0 Z`},smileyFace:(e,t,r)=>{let n=t*D(r,\"adj\",4653)*2;return we(e/2,t/2,e/2,t/2)+\" \"+we(e*.32,t*.35,e*.055,t*.08,!0)+\" \"+we(e*.68,t*.35,e*.055,t*.08,!0)+` M ${g(e*.26)} ${g(t*.63)} Q ${g(e*.5)} ${g(t*.85+n)} ${g(e*.74)} ${g(t*.63)} Q ${g(e*.5)} ${g(t*.85+n)} ${g(e*.26)} ${g(t*.63)}`},irregularSeal1:(e,t)=>G([[.09,.28],[.24,.35],[.13,.09],[.35,.26],[.42,0],[.53,.24],[.72,.06],[.7,.31],[.93,.24],[.81,.45],[1,.53],[.83,.64],[.96,.83],[.73,.79],[.75,1],[.56,.86],[.45,1],[.38,.83],[.19,.94],[.23,.72],[0,.75],[.16,.58],[0,.45]].map(([r,n])=>[r*e,n*t])),irregularSeal2:(e,t)=>G([[.11,.32],[.25,.28],[.15,.11],[.36,.2],[.4,.02],[.55,.17],[.68,0],[.71,.2],[.9,.14],[.85,.36],[1,.42],[.86,.55],[.98,.72],[.79,.72],[.82,.93],[.63,.82],[.55,1],[.44,.85],[.28,.96],[.28,.76],[.06,.8],[.17,.62],[0,.5]].map(([r,n])=>[r*e,n*t])),gear6:(e,t)=>zs(e,t,6),gear9:(e,t)=>zs(e,t,9),funnel:(e,t)=>{let r=t*.1;return`M 0 ${g(r)} ${Re(e/2,r,e/2,r,180,180)} L ${g(e*.56)} ${g(t*.72)} L ${g(e*.56)} ${g(t)} L ${g(e*.44)} ${g(t)} L ${g(e*.44)} ${g(t*.72)} Z`},star4:gt(4,.3),star5:gt(5,.382),star6:gt(6,.577),star7:gt(7,.605),star8:gt(8,.375),star10:gt(10,.618),star12:gt(12,.5),star16:gt(16,.375),star24:gt(24,.375),star32:gt(32,.375),rightArrow:hr(\"r\"),leftArrow:hr(\"l\"),upArrow:hr(\"u\"),downArrow:hr(\"d\"),leftRightArrow:(e,t,r)=>{let n=t*Math.min(D(r,\"adj1\",5e4),1)/2,o=Math.min(e/2,t*D(r,\"adj2\",5e4)),i=t/2;return G([[0,i],[o,0],[o,i-n],[e-o,i-n],[e-o,0],[e,i],[e-o,t],[e-o,i+n],[o,i+n],[o,t]])},upDownArrow:(e,t,r)=>{let n=e*Math.min(D(r,\"adj1\",5e4),1)/2,o=Math.min(t/2,e*D(r,\"adj2\",5e4)),i=e/2;return G([[i,0],[e,o],[i+n,o],[i+n,t-o],[e,t-o],[i,t],[0,t-o],[i-n,t-o],[i-n,o],[0,o]])},quadArrow:(e,t,r)=>{let n=Math.min(e,t)*D(r,\"adj2\",22500)/2,o=Math.min(e,t)*D(r,\"adj3\",25e3),i=e/2,s=t/2;return G([[i,0],[i+o,o],[i+n,o],[i+n,s-n],[e-o,s-n],[e-o,s-o],[e,s],[e-o,s+o],[e-o,s+n],[i+n,s+n],[i+n,t-o],[i+o,t-o],[i,t],[i-o,t-o],[i-n,t-o],[i-n,s+n],[o,s+n],[o,s+o],[0,s],[o,s-o],[o,s-n],[i-n,s-n],[i-n,o],[i-o,o]])},leftRightUpArrow:(e,t,r)=>{let n=Math.min(e,t)*D(r,\"adj2\",22500)/2,o=Math.min(e,t)*D(r,\"adj3\",25e3),i=e/2,s=t-n;return G([[i,0],[i+o,o],[i+n,o],[i+n,s-n],[e-o,s-n],[e-o,s-o],[e,s],[e-o,s+o],[e-o,t],[o,t],[o,s+o],[0,s],[o,s-o],[o,s-n],[i-n,s-n],[i-n,o],[i-o,o]])},bentUpArrow:(e,t,r)=>{let n=Math.min(e,t)*Math.min(D(r,\"adj3\",25e3),.6),o=Math.min(e/2,Math.max(Math.min(e,t)*D(r,\"adj1\",25e3),n*.6)),i=Math.min(t,Math.min(e,t)*D(r,\"adj2\",25e3)),s=e-o;return G([[0,t],[s+n/2,t],[s+n/2,i],[e,i],[s,0],[s-o,i],[s-n/2,i],[s-n/2,t-n],[0,t-n]])},leftUpArrow:(e,t,r)=>{let n=Math.min(e,t),o=n*Math.min(D(r,\"adj1\",25e3),.6),i=Math.min(n/2,Math.max(n*D(r,\"adj2\",25e3),o*.6)),s=Math.min(n,n*D(r,\"adj3\",25e3));return G([[e-i,0],[e,s],[e-i+o/2,s],[e-i+o/2,t],[s,t],[0,t-i],[s,t-2*i],[s,t-i-o/2],[e-i-o/2,t-i-o/2],[e-i-o/2,s],[e-2*i,s]])},bentArrow:(e,t,r)=>{let n=Math.min(e,t)*D(r,\"adj1\",25e3),o=Math.min(Math.min(e,t)*D(r,\"adj2\",25e3),t/2),i=o;return G([[0,t],[0,i-n/2],[e-o,i-n/2],[e-o,i-o],[e,i],[e-o,i+o],[e-o,i+n/2],[n,i+n/2],[n,t]])},uturnArrow:(e,t,r)=>{let n=Math.min(e/3,e*Math.max(D(r,\"adj1\",25e3),.08)),o=n/2,i=Math.min(n*1.1,e/4),s=Math.min(t/3,i*1.6),l=e-i,a=(l+o)/2,c=Math.min(a,t-s-4);return`M 0 ${g(t)} L 0 ${g(c)} A ${g(a)} ${g(c)} 0 0 1 ${g(a*2)} ${g(c)} L ${g(l+o)} ${g(t-s)} L ${g(l+i)} ${g(t-s)} L ${g(l)} ${g(t)} L ${g(l-i)} ${g(t-s)} L ${g(l-o)} ${g(t-s)} L ${g(l-o)} ${g(c)} A ${g(a-n)} ${g(c-n)} 0 0 0 ${g(n)} ${g(c)} L ${g(n)} ${g(t)} Z`},curvedRightArrow:(e,t,r)=>{let n=t*Math.min(D(r,\"adj1\",25e3),.5),o=Math.min(e,t)*Math.min(D(r,\"adj3\",25e3),.4);return en(0,t,e-o,t-o,n,o,270,360)},curvedLeftArrow:(e,t,r)=>{let n=t*Math.min(D(r,\"adj1\",25e3),.5),o=Math.min(e,t)*Math.min(D(r,\"adj3\",25e3),.4);return en(e,t,e-o,t-o,n,o,270,180)},curvedUpArrow:(e,t,r)=>{let n=e*Math.min(D(r,\"adj1\",25e3),.5),o=Math.min(e,t)*Math.min(D(r,\"adj3\",25e3),.4);return en(e,t,e-o,t-o,n,o,180,270)},curvedDownArrow:(e,t,r)=>{let n=e*Math.min(D(r,\"adj1\",25e3),.5),o=Math.min(e,t)*Math.min(D(r,\"adj3\",25e3),.4);return en(e,0,e-o,t-o,n,o,180,90)},stripedRightArrow:(e,t,r)=>{let n=t*Math.min(D(r,\"adj1\",5e4),1)/2,o=Math.min(e,t*D(r,\"adj2\",5e4)),i=t/2,s=e*.05;return G([[s*2.4,i-n],[e-o,i-n],[e-o,0],[e,i],[e-o,t],[e-o,i+n],[s*2.4,i+n]])+\" \"+G([[0,i-n],[s,i-n],[s,i+n],[0,i+n]])+\" \"+G([[s*1.4,i-n],[s*2,i-n],[s*2,i+n],[s*1.4,i+n]])},notchedRightArrow:(e,t,r)=>{let n=t*Math.min(D(r,\"adj1\",5e4),1)/2,o=Math.min(e,t*D(r,\"adj2\",5e4)),i=t/2;return G([[0,i-n],[e-o,i-n],[e-o,0],[e,i],[e-o,t],[e-o,i+n],[0,i+n],[o*.5,i]])},circularArrow:(e,t,r)=>{let n=Math.min(e,t)/2,o=n*Math.min(Math.max(D(r,\"adj1\",12500),.06),.35),i=o*1.6,s=n-i;return en(e/2,t/2,s,s,o,i,200,450)},leftCircularArrow:(e,t,r)=>{let n=Math.min(e,t)/2,o=n*Math.min(Math.max(D(r,\"adj1\",12500),.06),.35),i=o*1.6;return en(e/2,t/2,n-i,n-i,o,i,-20,-270)},leftRightCircularArrow:(e,t,r)=>{let n=Math.min(e,t)/2,o=n*Math.min(Math.max(D(r,\"adj1\",12500),.06),.35),i=o*1.6;return en(e/2,t/2,n-i,n-i,o,i,200,430,!0)},swooshArrow:(e,t,r)=>{let n=Math.min(e,t),o=n*Math.min(Math.max(D(r,\"adj2\",16667),.04),.4),i=n*Math.min(Math.max(D(r,\"adj1\",25e3),.08),.6),s=o*1.6;return`M 0 ${g(t)} Q ${g(e*.65)} ${g(t*.95)} ${g(e-i*1.2)} ${g(i*.1)} L ${g(e)} 0 L ${g(e-i*.1)} ${g(i*1.2)} Q ${g(e*.65-s)} ${g(t*.95-s)} 0 ${g(t)} Z`},rightArrowCallout:fr(\"r\"),leftArrowCallout:fr(\"l\"),upArrowCallout:fr(\"u\"),downArrowCallout:fr(\"d\"),leftRightArrowCallout:(e,t,r)=>{let n=t*D(r,\"adj1\",18515)/2,o=Math.min(e/3,t*D(r,\"adj2\",18515)),i=e*D(r,\"adj4\",48123),s=t/2,l=(e-i)/2,a=(e+i)/2;return G([[0,s],[o,0],[o,s-n],[l,s-n],[l,0],[a,0],[a,s-n],[e-o,s-n],[e-o,0],[e,s],[e-o,t],[e-o,s+n],[a,s+n],[a,t],[l,t],[l,s+n],[o,s+n],[o,t]])},upDownArrowCallout:(e,t,r)=>{let n=e*D(r,\"adj1\",18515)/2,o=Math.min(e/2,n+e*D(r,\"adj2\",18515)),i=Math.min(t*.3,e*D(r,\"adj3\",18515)),s=Math.max(0,Math.min(t*D(r,\"adj4\",48123),t-2.4*i)),l=e/2,a=(t-s)/2,c=(t+s)/2;return G([[l,0],[l+o,i],[l+n,i],[l+n,a],[e,a],[e,c],[l+n,c],[l+n,t-i],[l+o,t-i],[l,t],[l-o,t-i],[l-n,t-i],[l-n,c],[0,c],[0,a],[l-n,a],[l-n,i],[l-o,i]])},quadArrowCallout:(e,t,r)=>{let n=Math.min(e,t),o=n*D(r,\"adj3\",18515),i=n*D(r,\"adj2\",18515)/2,s=Math.min(Math.max(n*D(r,\"adj4\",48123)/2,i*1.2),n/2-o),l=e/2,a=t/2;return G([[l,0],[l+o,o],[l+i,o],[l+i,a-s],[l+s,a-s],[l+s,a-i],[e-o,a-i],[e-o,a-o],[e,a],[e-o,a+o],[e-o,a+i],[l+s,a+i],[l+s,a+s],[l+i,a+s],[l+i,t-o],[l+o,t-o],[l,t],[l-o,t-o],[l-i,t-o],[l-i,a+s],[l-s,a+s],[l-s,a+i],[o,a+i],[o,a+o],[0,a],[o,a-o],[o,a-i],[l-s,a-i],[l-s,a-s],[l-i,a-s],[l-i,o],[l-o,o]])},mathPlus:(e,t,r)=>{let n=Math.min(e,t)*D(r,\"adj1\",23520)/2,o=e/2,i=t/2,s=e*.45,l=t*.45;return G([[o-n,i-l],[o+n,i-l],[o+n,i-n],[o+s,i-n],[o+s,i+n],[o+n,i+n],[o+n,i+l],[o-n,i+l],[o-n,i+n],[o-s,i+n],[o-s,i-n],[o-n,i-n]])},mathMinus:(e,t,r)=>{let n=Math.min(e,t)*D(r,\"adj1\",23520)/2;return G([[e*.05,t/2-n],[e*.95,t/2-n],[e*.95,t/2+n],[e*.05,t/2+n]])},mathMultiply:(e,t,r)=>{let n=Math.min(e,t)*D(r,\"adj1\",23520)/2,o=e/2,i=t/2,s=Math.min(e,t)*.42,l=n*Math.SQRT2;return G([[o-s,i-s+l],[o-s+l,i-s],[o,i-l],[o+s-l,i-s],[o+s,i-s+l],[o+l,i],[o+s,i+s-l],[o+s-l,i+s],[o,i+l],[o-s+l,i+s],[o-s,i+s-l],[o-l,i]])},mathDivide:(e,t,r)=>{let n=Math.min(e,t)*D(r,\"adj1\",23520)/2,o=Math.min(e,t)*.09;return G([[e*.08,t/2-n],[e*.92,t/2-n],[e*.92,t/2+n],[e*.08,t/2+n]])+\" \"+we(e/2,t*.22,o,o)+\" \"+we(e/2,t*.78,o,o)},mathEqual:(e,t,r)=>{let n=Math.min(e,t)*D(r,\"adj1\",23520)/2,o=t*D(r,\"adj2\",11760);return G([[e*.05,t/2-o-n],[e*.95,t/2-o-n],[e*.95,t/2-o+n],[e*.05,t/2-o+n]])+\" \"+G([[e*.05,t/2+o-n],[e*.95,t/2+o-n],[e*.95,t/2+o+n],[e*.05,t/2+o+n]])},mathNotEqual:(e,t,r)=>{let n=Math.min(e,t)*D(r,\"adj1\",23520)/2,o=t*.16;return G([[e*.05,t/2-o-n],[e*.95,t/2-o-n],[e*.95,t/2-o+n],[e*.05,t/2-o+n]])+\" \"+G([[e*.05,t/2+o-n],[e*.95,t/2+o-n],[e*.95,t/2+o+n],[e*.05,t/2+o+n]])+\" \"+G([[e*.42,0],[e*.56,0],[e*.62,t],[e*.48,t]])},leftBracket:(e,t,r)=>{let n=Math.min(t/2,t*D(r,\"adj\",8333));return ke(`M ${g(e)} 0 L ${g(n)} 0 A ${g(n)} ${g(n)} 0 0 0 0 ${g(n)} L 0 ${g(t-n)} A ${g(n)} ${g(n)} 0 0 0 ${g(n)} ${g(t)} L ${g(e)} ${g(t)}`)},rightBracket:(e,t,r)=>{let n=Math.min(t/2,t*D(r,\"adj\",8333));return ke(`M 0 0 L ${g(e-n)} 0 A ${g(n)} ${g(n)} 0 0 1 ${g(e)} ${g(n)} L ${g(e)} ${g(t-n)} A ${g(n)} ${g(n)} 0 0 1 ${g(e-n)} ${g(t)} L 0 ${g(t)}`)},bracketPair:(e,t,r)=>{let n=Math.min(Math.min(e,t)/2,Math.min(e,t)*D(r,\"adj\",16667));return ke(`M ${g(n)} 0 A ${g(n)} ${g(n)} 0 0 0 0 ${g(n)} L 0 ${g(t-n)} A ${g(n)} ${g(n)} 0 0 0 ${g(n)} ${g(t)} M ${g(e-n)} 0 A ${g(n)} ${g(n)} 0 0 1 ${g(e)} ${g(n)} L ${g(e)} ${g(t-n)} A ${g(n)} ${g(n)} 0 0 1 ${g(e-n)} ${g(t)}`)},leftBrace:(e,t,r)=>{let n=Math.min(t/4,t*D(r,\"adj1\",8333)),o=t*D(r,\"adj2\",5e4);return ke(`M ${g(e)} 0 A ${g(e)} ${g(n)} 0 0 0 ${g(e/2)} ${g(n)} L ${g(e/2)} ${g(o-n)} A ${g(e/2)} ${g(n)} 0 0 1 0 ${g(o)} A ${g(e/2)} ${g(n)} 0 0 1 ${g(e/2)} ${g(o+n)} L ${g(e/2)} ${g(t-n)} A ${g(e)} ${g(n)} 0 0 0 ${g(e)} ${g(t)}`)},rightBrace:(e,t,r)=>{let n=Math.min(t/4,t*D(r,\"adj1\",8333)),o=t*D(r,\"adj2\",5e4);return ke(`M 0 0 A ${g(e)} ${g(n)} 0 0 1 ${g(e/2)} ${g(n)} L ${g(e/2)} ${g(o-n)} A ${g(e/2)} ${g(n)} 0 0 0 ${g(e)} ${g(o)} A ${g(e/2)} ${g(n)} 0 0 0 ${g(e/2)} ${g(o+n)} L ${g(e/2)} ${g(t-n)} A ${g(e)} ${g(n)} 0 0 1 0 ${g(t)}`)},bracePair:(e,t,r)=>{let n=Math.min(t/4,t*D(r,\"adj\",8333)),o=e/4;return ke(`M ${g(o)} 0 A ${g(o)} ${g(n)} 0 0 0 ${g(o)} ${g(n)} L ${g(o)} ${g(t/2-n)} A ${g(o)} ${g(n)} 0 0 1 0 ${g(t/2)} A ${g(o)} ${g(n)} 0 0 1 ${g(o)} ${g(t/2+n)} L ${g(o)} ${g(t-n)} A ${g(o)} ${g(n)} 0 0 0 ${g(o)} ${g(t)} M ${g(e-o)} 0 A ${g(o)} ${g(n)} 0 0 1 ${g(e-o)} ${g(n)} L ${g(e-o)} ${g(t/2-n)} A ${g(o)} ${g(n)} 0 0 0 ${g(e)} ${g(t/2)} A ${g(o)} ${g(n)} 0 0 0 ${g(e-o)} ${g(t/2+n)} L ${g(e-o)} ${g(t-n)} A ${g(o)} ${g(n)} 0 0 1 ${g(e-o)} ${g(t)}`)},ribbon:(e,t,r)=>{let n=t*D(r,\"adj1\",16667),o=e*D(r,\"adj2\",5e4)/2,i=e/2,s=[[0,0],[i-o,0],[i-o+n,t*.5],[i-o,t],[0,t],[n,t*.5]],l=[[e,0],[i+o,0],[i+o-n,t*.5],[i+o,t],[e,t],[e-n,t*.5]],a=[[i-o,0],[i+o,0],[i+o,t],[i-o,t]];return G(s)+\" \"+G(l)+\" \"+G(a)},ribbon2:(e,t,r)=>{let n=t*D(r,\"adj1\",16667),o=e*D(r,\"adj2\",5e4)/2,i=e/2,s=[[i-o,t],[i+o,t],[i+o,0],[i-o,0]],l=[[0,t],[i-o,t],[i-o+n,t*.5],[i-o,0],[0,0],[n,t*.5]],a=[[e,t],[i+o,t],[i+o-n,t*.5],[i+o,0],[e,0],[e-n,t*.5]];return G(s)+\" \"+G(l)+\" \"+G(a)},ellipseRibbon:(e,t,r)=>{let n=t*Math.min(D(r,\"adj3\",12500)*2,.5),o=t*Math.min(D(r,\"adj1\",25e3),.35),i=e*Math.min(D(r,\"adj2\",5e4)/2,.3),s=t*.12,l=`M 0 ${g(o)} Q ${g(e/2)} ${g(-o)} ${g(e)} ${g(o)} L ${g(e)} ${g(o+n)} Q ${g(e/2)} ${g(n-o)} 0 ${g(o+n)} Z`,a=c=>G([[c,o+n*.2],[c+i,o+n*.2],[c+i,t],[c+i/2,t-s],[c,t]]);return`${l} ${a(0)} ${a(e-i)}`},ellipseRibbon2:(e,t,r)=>{let n=t*Math.min(D(r,\"adj3\",12500)*2,.5),o=t*Math.min(D(r,\"adj1\",25e3),.35),i=e*Math.min(D(r,\"adj2\",5e4)/2,.3),s=t*.12,l=`M 0 ${g(t-o)} Q ${g(e/2)} ${g(t+o)} ${g(e)} ${g(t-o)} L ${g(e)} ${g(t-o-n)} Q ${g(e/2)} ${g(t+o-n)} 0 ${g(t-o-n)} Z`,a=c=>G([[c,t-o-n*.2],[c+i,t-o-n*.2],[c+i,0],[c+i/2,s],[c,0]]);return`${l} ${a(0)} ${a(e-i)}`},leftRightRibbon:(e,t,r)=>{let n=Math.min(t*Math.min(D(r,\"adj1\",5e4),1)/2,t/4),o=e*Math.min(D(r,\"adj2\",5e4),.9)/2,i=Math.min((e/2-o)*.6,Math.max(t*D(r,\"adj3\",16667)*2,1)),s=n*1.8,l=e/2,a=t/2;return G([[0,a],[i,a-s],[i,a-n],[l-o,a-n],[l-o,0],[l+o,0],[l+o,a-n],[e-i,a-n],[e-i,a-s],[e,a],[e-i,a+s],[e-i,a+n],[l+o,a+n],[l+o,t],[l-o,t],[l-o,a+n],[i,a+n],[i,a+s]])},verticalScroll:(e,t,r)=>{let n=Math.min(e,t)*Math.min(D(r,\"adj\",12500),.25);return`M ${g(n)} ${g(n)} L ${g(n)} ${g(t-n)} A ${g(n)} ${g(n)} 0 0 0 ${g(n*2)} ${g(t)} L ${g(e)} ${g(t)} L ${g(e)} ${g(n)} A ${g(n)} ${g(n)} 0 0 0 ${g(e-n*2)} ${g(n)} Z M ${g(n)} ${g(n)} A ${g(n)} ${g(n)} 0 0 1 ${g(n*2)} 0 L ${g(e-n)} 0 A ${g(n)} ${g(n)} 0 0 1 ${g(e-n*2)} ${g(n)} Z`},horizontalScroll:(e,t,r)=>{let n=Math.min(e,t)*Math.min(D(r,\"adj\",12500),.25);return`M ${g(n)} ${g(n)} L ${g(e-n)} ${g(n)} A ${g(n)} ${g(n)} 0 0 1 ${g(e)} ${g(n*2)} L ${g(e)} ${g(t)} L ${g(n*2)} ${g(t)} A ${g(n)} ${g(n)} 0 0 1 ${g(n)} ${g(t-n*2)} Z M ${g(n)} ${g(n)} A ${g(n)} ${g(n)} 0 0 0 0 ${g(n*2)} L 0 ${g(t-n)} A ${g(n)} ${g(n)} 0 0 0 ${g(n)} ${g(t-n*2)} Z`},wave:(e,t,r)=>{let n=t*Math.min(D(r,\"adj1\",12500),.4);return`M 0 ${g(n)} ${dr(n,e,n,!1)} L ${g(e)} ${g(t-n)} ${dr(t-n,e,n,!0)} Z`},doubleWave:(e,t,r)=>{let n=t*Math.min(D(r,\"adj1\",6250),.25),o=e/8,i=`C ${g(o)} ${g(n-n*2)} ${g(o*3)} ${g(n+n*2)} ${g(e/2)} ${g(n)} C ${g(e/2+o)} ${g(n-n*2)} ${g(e/2+o*3)} ${g(n+n*2)} ${g(e)} ${g(n)}`,s=`C ${g(e-o)} ${g(t-n+n*2)} ${g(e-o*3)} ${g(t-n-n*2)} ${g(e/2)} ${g(t-n)} C ${g(e/2-o)} ${g(t-n+n*2)} ${g(e/2-o*3)} ${g(t-n-n*2)} 0 ${g(t-n)}`;return`M 0 ${g(n)} ${i} L ${g(e)} ${g(t-n)} ${s} Z`},wedgeRectCallout:(e,t,r)=>{let{x1:n,x2:o,y1:i,y2:s,top:l,right:a,bottom:c,left:u}=Os(e,t,r);return G([[0,0],[n,0],l,[o,0],[e,0],[e,i],a,[e,s],[e,t],[o,t],c,[n,t],[0,t],[0,s],u,[0,i]])},wedgeRoundRectCallout:(e,t,r)=>{let{x1:n,x2:o,y1:i,y2:s,top:l,right:a,bottom:c,left:u}=Os(e,t,r),h=Math.min(e,t)*D(r,\"adj3\",16667),f=(d,p)=>`A ${g(h)} ${g(h)} 0 0 1 ${g(d)} ${g(p)}`,m=(...d)=>d.map(([p,b])=>`L ${g(p)} ${g(b)}`).join(\" \");return[`M 0 ${g(h)}`,f(h,0),m([n,0],l,[o,0],[e-h,0]),f(e,h),m([e,i],a,[e,s],[e,t-h]),f(e-h,t),m([o,t],c,[n,t],[h,t]),f(0,t-h),m([0,s],u,[0,i]),\"Z\"].join(\" \")},wedgeEllipseCallout:(e,t,r)=>{let[n,o]=yo(e,t,r),i=e/2,s=t/2,l=Math.atan2(o-s,n-i)*180/Math.PI,[a,c]=xe(i,s,e/2,t/2,l+8);return`M ${g(a)} ${g(c)} ${Re(i,s,e/2,t/2,l+8,344)} L ${g(n)} ${g(o)} Z`},cloudCallout:(e,t,r)=>{let[n,o]=yo(e,t,r);return dn.cloud(e,t*.8,{})+\" \"+we(e*.36,t*.88,e*.045,t*.045)+\" \"+we(n,o,e*.025,t*.025)},borderCallout1:Qe(1,!1),borderCallout2:Qe(2,!1),borderCallout3:Qe(3,!1),callout1:Qe(1,!1),callout2:Qe(2,!1),callout3:Qe(3,!1),accentCallout1:Qe(1,!0),accentCallout2:Qe(2,!0),accentCallout3:Qe(3,!0),accentBorderCallout1:Qe(1,!0),accentBorderCallout2:Qe(2,!0),accentBorderCallout3:Qe(3,!0),flowChartProcess:(e,t)=>G([[0,0],[e,0],[e,t],[0,t]]),flowChartAlternateProcess:(e,t)=>{let r=Math.min(e,t)*.1667;return Fs(e,t,[r,r,r,r],[\"r\",\"r\",\"r\",\"r\"])},flowChartDecision:(e,t)=>G([[e/2,0],[e,t/2],[e/2,t],[0,t/2]]),flowChartInputOutput:(e,t)=>G([[e*.2,0],[e,0],[e*.8,t],[0,t]]),flowChartPredefinedProcess:(e,t)=>G([[0,0],[e,0],[e,t],[0,t]])+\" \"+Se([[e/8,0],[e/8,t]])+\" \"+Se([[e*7/8,0],[e*7/8,t]]),flowChartInternalStorage:(e,t)=>G([[0,0],[e,0],[e,t],[0,t]])+\" \"+Se([[e/8,0],[e/8,t]])+\" \"+Se([[0,t/8],[e,t/8]]),flowChartDocument:(e,t)=>`M 0 0 L ${g(e)} 0 L ${g(e)} ${g(t*.84)} C ${g(e*.75)} ${g(t*1.06)} ${g(e*.25)} ${g(t*.62)} 0 ${g(t*.84)} Z`,flowChartMultidocument:(e,t)=>`M 0 ${g(t*.2)} L ${g(e*.9)} ${g(t*.2)} L ${g(e*.9)} ${g(t*.86)} C ${g(e*.68)} ${g(t*1.04)} ${g(e*.22)} ${g(t*.66)} 0 ${g(t*.86)} Z `+Se([[e*.05,t*.1],[e*.95,t*.1],[e*.95,t*.76]])+\" \"+Se([[e*.1,0],[e,0],[e,t*.66]]),flowChartTerminator:(e,t)=>{let r=Math.min(t/2,e/2);return`M ${g(r)} 0 L ${g(e-r)} 0 A ${g(r)} ${g(t/2)} 0 0 1 ${g(e-r)} ${g(t)} L ${g(r)} ${g(t)} A ${g(r)} ${g(t/2)} 0 0 1 ${g(r)} 0 Z`},flowChartPreparation:(e,t)=>G([[e*.2,0],[e*.8,0],[e,t/2],[e*.8,t],[e*.2,t],[0,t/2]]),flowChartManualInput:(e,t)=>G([[0,t*.2],[e,0],[e,t],[0,t]]),flowChartManualOperation:(e,t)=>G([[0,0],[e,0],[e*.8,t],[e*.2,t]]),flowChartConnector:(e,t)=>we(e/2,t/2,e/2,t/2),flowChartOffpageConnector:(e,t)=>G([[0,0],[e,0],[e,t*.8],[e/2,t],[0,t*.8]]),flowChartPunchedCard:(e,t)=>G([[e*.2,0],[e,0],[e,t],[0,t],[0,t*.2]]),flowChartPunchedTape:(e,t)=>`M 0 ${g(t*.11)} ${dr(t*.11,e,t*.11,!1)} L ${g(e)} ${g(t*.89)} ${dr(t*.89,e,t*.11,!0)} Z`,flowChartSummingJunction:(e,t)=>we(e/2,t/2,e/2,t/2)+\" \"+Se([[e*.1464,t*.1464],[e*(1-.1464),t*(1-.1464)]])+\" \"+Se([[e*(1-.1464),t*.1464],[e*.1464,t*(1-.1464)]]),flowChartOr:(e,t)=>we(e/2,t/2,e/2,t/2)+\" \"+Se([[e/2,0],[e/2,t]])+\" \"+Se([[0,t/2],[e,t/2]]),flowChartCollate:(e,t)=>G([[0,0],[e,0],[e/2,t/2],[e,t],[0,t],[e/2,t/2]]),flowChartSort:(e,t)=>G([[e/2,0],[e,t/2],[e/2,t],[0,t/2]])+\" \"+Se([[0,t/2],[e,t/2]]),flowChartExtract:(e,t)=>G([[e/2,0],[e,t],[0,t]]),flowChartMerge:(e,t)=>G([[0,0],[e,0],[e/2,t]]),flowChartOnlineStorage:(e,t)=>`M ${g(e*.16)} 0 L ${g(e)} 0 A ${g(e*.16)} ${g(t/2)} 0 0 0 ${g(e)} ${g(t)} L ${g(e*.16)} ${g(t)} A ${g(e*.16)} ${g(t/2)} 0 0 1 ${g(e*.16)} 0 Z`,flowChartOfflineStorage:(e,t)=>G([[0,0],[e,0],[e/2,t]])+\" \"+Se([[e*.1,t*.2],[e*.9,t*.2]]),flowChartMagneticTape:(e,t)=>we(e/2,t*.46,e/2,t*.46)+` M ${g(e*.5)} ${g(t*.92)} L ${g(e)} ${g(t*.92)} L ${g(e)} ${g(t)} L ${g(e*.5)} ${g(t)} Z`,flowChartMagneticDisk:(e,t)=>dn.can(e,t,{adj:25e3}),flowChartMagneticDrum:(e,t)=>{let r=Math.min(e/2,e*.125);return`M ${g(r)} 0 L ${g(e-r)} 0 ${Re(e-r,t/2,r,t/2,-90,180)} L ${g(r)} ${g(t)} ${Re(r,t/2,r,t/2,90,180)} Z `+Rs(e-r,t/2,r,t/2)},flowChartDisplay:(e,t)=>`M ${g(e*.16)} 0 L ${g(e*.84)} 0 A ${g(e*.16)} ${g(t/2)} 0 0 1 ${g(e*.84)} ${g(t)} L ${g(e*.16)} ${g(t)} L 0 ${g(t/2)} Z`,flowChartDelay:(e,t)=>`M 0 0 L ${g(e/2)} 0 A ${g(e/2)} ${g(t/2)} 0 0 1 ${g(e/2)} ${g(t)} L 0 ${g(t)} Z`,actionButtonBlank:(e,t)=>$o(e,t,Math.min(e,t)*.125),actionButtonHome:(e,t)=>st(e,t,(r,n,o)=>G([[n,o-r],[n+r,o],[n+r*.6,o],[n+r*.6,o+r],[n-r*.6,o+r],[n-r*.6,o],[n-r,o]])),actionButtonForwardNext:(e,t)=>st(e,t,(r,n,o)=>G([[n-r*.6,o-r],[n+r*.7,o],[n-r*.6,o+r]])),actionButtonBackPrevious:(e,t)=>st(e,t,(r,n,o)=>G([[n+r*.6,o-r],[n-r*.7,o],[n+r*.6,o+r]])),actionButtonBeginning:(e,t)=>st(e,t,(r,n,o)=>G([[n+r*.7,o-r],[n-r*.3,o],[n+r*.7,o+r]])+\" \"+G([[n-r*.7,o-r],[n-r*.45,o-r],[n-r*.45,o+r],[n-r*.7,o+r]])),actionButtonEnd:(e,t)=>st(e,t,(r,n,o)=>G([[n-r*.7,o-r],[n+r*.3,o],[n-r*.7,o+r]])+\" \"+G([[n+r*.45,o-r],[n+r*.7,o-r],[n+r*.7,o+r],[n+r*.45,o+r]])),actionButtonInformation:(e,t)=>st(e,t,(r,n,o)=>we(n,o,r,r)+\" \"+we(n,o-r*.45,r*.16,r*.16)+\" \"+G([[n-r*.16,o-r*.15],[n+r*.16,o-r*.15],[n+r*.16,o+r*.6],[n-r*.16,o+r*.6]])),actionButtonReturn:(e,t)=>st(e,t,(r,n,o)=>`M ${g(n-r*.6)} ${g(o+r*.7)} L ${g(n+r*.2)} ${g(o+r*.7)} A ${g(r*.5)} ${g(r*.5)} 0 0 0 ${g(n+r*.2)} ${g(o-r*.3)} L ${g(n-r*.2)} ${g(o-r*.3)} M ${g(n-r*.2)} ${g(o-r*.6)} L ${g(n-r*.6)} ${g(o-r*.3)} L ${g(n-r*.2)} ${g(o)} Z`),actionButtonDocument:(e,t)=>st(e,t,(r,n,o)=>G([[n-r*.55,o-r*.8],[n+r*.2,o-r*.8],[n+r*.55,o-r*.45],[n+r*.55,o+r*.8],[n-r*.55,o+r*.8]])),actionButtonSound:(e,t)=>st(e,t,(r,n,o)=>G([[n-r*.7,o-r*.3],[n-r*.3,o-r*.3],[n+r*.1,o-r*.8],[n+r*.1,o+r*.8],[n-r*.3,o+r*.3],[n-r*.7,o+r*.3]])+\" \"+Se([[n+r*.35,o-r*.4],[n+r*.75,o-r*.6]])+\" \"+Se([[n+r*.35,o],[n+r*.8,o]])+\" \"+Se([[n+r*.35,o+r*.4],[n+r*.75,o+r*.6]])),actionButtonMovie:(e,t)=>st(e,t,(r,n,o)=>G([[n-r*.8,o-r*.5],[n+r*.35,o-r*.5],[n+r*.35,o-r*.15],[n+r*.8,o-r*.45],[n+r*.8,o+r*.45],[n+r*.35,o+r*.15],[n+r*.35,o+r*.5],[n-r*.8,o+r*.5]])),actionButtonHelp:(e,t)=>st(e,t,(r,n,o)=>`M ${g(n-r*.35)} ${g(o-r*.3)} A ${g(r*.35)} ${g(r*.35)} 0 1 1 ${g(n)} ${g(o+r*.1)} L ${g(n)} ${g(o+r*.35)} `+we(n,o+r*.68,r*.13,r*.13)),chartX:(e,t)=>ke(`M 0 0 L ${g(e)} ${g(t)} M ${g(e)} 0 L 0 ${g(t)}`),chartPlus:(e,t)=>ke(`M ${g(e/2)} 0 L ${g(e/2)} ${g(t)} M 0 ${g(t/2)} L ${g(e)} ${g(t/2)}`),chartStar:(e,t)=>ke(`M 0 0 L ${g(e)} ${g(t)} M ${g(e)} 0 L 0 ${g(t)} M ${g(e/2)} 0 L ${g(e/2)} ${g(t)}`),line:(e,t)=>ke(`M 0 0 L ${g(e)} ${g(t)}`),lineInv:(e,t)=>ke(`M 0 ${g(t)} L ${g(e)} 0`),straightConnector1:(e,t)=>ke(`M 0 0 L ${g(e)} ${g(t)}`),bentConnector2:(e,t)=>ke(`M 0 0 L ${g(e)} 0 L ${g(e)} ${g(t)}`),bentConnector3:(e,t,r)=>{let n=e*D(r,\"adj1\",5e4);return ke(`M 0 0 L ${g(n)} 0 L ${g(n)} ${g(t)} L ${g(e)} ${g(t)}`)},bentConnector4:(e,t,r)=>{let n=e*D(r,\"adj1\",5e4),o=t*D(r,\"adj2\",5e4);return ke(`M 0 0 L ${g(n)} 0 L ${g(n)} ${g(o)} L ${g(e)} ${g(o)} L ${g(e)} ${g(t)}`)},bentConnector5:(e,t,r)=>{let n=e*D(r,\"adj1\",5e4),o=t*D(r,\"adj2\",5e4),i=e*D(r,\"adj3\",5e4);return ke(`M 0 0 L ${g(n)} 0 L ${g(n)} ${g(o)} L ${g(i)} ${g(o)} L ${g(i)} ${g(t)} L ${g(e)} ${g(t)}`)},curvedConnector2:(e,t)=>ke(`M 0 0 Q ${g(e)} 0 ${g(e)} ${g(t)}`),curvedConnector3:(e,t,r)=>{let n=e*D(r,\"adj1\",5e4);return ke(`M 0 0 C ${g(n)} 0 ${g(n)} ${g(t)} ${g(e)} ${g(t)}`)},curvedConnector4:(e,t)=>ke(`M 0 0 C ${g(e*.5)} 0 ${g(e*.5)} ${g(t*.5)} ${g(e*.75)} ${g(t*.5)} S ${g(e)} ${g(t*.75)} ${g(e)} ${g(t)}`),curvedConnector5:(e,t)=>ke(`M 0 0 C ${g(e*.4)} 0 ${g(e*.4)} ${g(t*.5)} ${g(e*.5)} ${g(t*.5)} S ${g(e*.6)} ${g(t)} ${g(e)} ${g(t)}`)};function nn(e,t,r,n){let o=dn[e]??dn.rect,i=Math.max(t,0),s=Math.max(r,0),l;try{let c=o(i,s,n);l=typeof c==\"string\"?{d:c,open:!1}:c}catch{return{d:dn.rect(i,s,{}),open:!1}}let a=Math.max(i,s)*20+1e3;for(let c of l.d.match(/-?\\d+(?:\\.\\d+)?/g)??[])if(Math.abs(Number(c))>a)return{d:dn.rect(i,s,{}),open:!1};return l}var pr=new Map([[\"xml\",\"http://www.w3.org/XML/1998/namespace\"]]),Uo=class{constructor(t){this.namespaceURI=null,this.attributes=[],this.childNodes=[],this.nextElementSibling=null,this.namespaceBindings=pr,this.tagName=t;let r=t.indexOf(\":\");this.prefix=r<0?null:t.slice(0,r),this.localName=r<0?t:t.slice(r+1)}resolveNamespaces(t){let r;for(let n of this.attributes)n.name===\"xmlns\"?(r??(r=new Map(t?.namespaceBindings??pr))).set(\"\",n.value):n.prefix===\"xmlns\"&&(r??(r=new Map(t?.namespaceBindings??pr))).set(n.localName,n.value);this.namespaceBindings=r??t?.namespaceBindings??pr,this.namespaceURI=this.lookupNamespaceURI(this.prefix);for(let n of this.attributes)n.name===\"xmlns\"||n.prefix===\"xmlns\"?n.namespaceURI=\"http://www.w3.org/2000/xmlns/\":n.prefix&&(n.namespaceURI=this.lookupNamespaceURI(n.prefix))}get firstElementChild(){for(let t of this.childNodes)if(typeof t!=\"string\")return t;return null}get children(){return this.childNodes.filter(t=>typeof t!=\"string\")}getAttribute(t){for(let r of this.attributes)if(r.name===t)return r.value;return null}lookupNamespaceURI(t){let r=t??\"\";return this.namespaceBindings.get(r)||null}get textContent(){let t=\"\";for(let r of this.childNodes)t+=typeof r==\"string\"?r:r.textContent;return t}getElementsByTagName(t){let r=[],n=o=>{for(let i of o.children)(t===\"*\"||i.localName===t||i.tagName===t)&&r.push(i),n(i)};return n(this),r}},Zu={amp:\"&\",lt:\"<\",gt:\">\",quot:'\"',apos:\"'\"};function Us(e){return e.indexOf(\"&\")<0?e:e.replace(/&(#x?[0-9a-fA-F]+|[a-zA-Z]+);/g,(t,r)=>{if(r[0]===\"#\"){let n=r[1]===\"x\"||r[1]===\"X\"?parseInt(r.slice(2),16):parseInt(r.slice(1),10);return Number.isFinite(n)&&n>=0?String.fromCodePoint(n):t}return Zu[r]??t})}function _u(e){let t=0,r=e.length,n=[],o=null,i=(s,l)=>{let a=s.children;a.length&&(a[a.length-1].nextElementSibling=l),s.childNodes.push(l)};for(;t<r;){let s=e.indexOf(\"<\",t);if(s<0)break;if(s>t){let p=e.slice(t,s);n.length&&p.trim()?n[n.length-1].childNodes.push(Us(p)):n.length&&p.includes(\" \")&&n[n.length-1].childNodes.push(p)}if(e.startsWith(\"<!--\",s)){let p=e.indexOf(\"-->\",s+4);t=p<0?r:p+3;continue}if(e.startsWith(\"<![CDATA[\",s)){let p=e.indexOf(\"]]>\",s+9),b=e.slice(s+9,p<0?r:p);n.length&&n[n.length-1].childNodes.push(b),t=p<0?r:p+3;continue}if(e.startsWith(\"<?\",s)||e.startsWith(\"<!\",s)){let p=e.indexOf(\">\",s);t=p<0?r:p+1;continue}if(e[s+1]===\"/\"){let p=e.indexOf(\">\",s);if(p<0)break;n.pop(),t=p+1;continue}let l=s+1,a=\"\";for(;l<r;){let p=e[l];if(a)p===a&&(a=\"\");else if(p==='\"'||p===\"'\")a=p;else if(p===\">\")break;l++}if(l>=r)break;let c=e[l-1]===\"/\",u=e.slice(s+1,c?l-1:l),h=0;for(;h<u.length&&!/[\\s/]/.test(u[h]);)h++;let f=new Uo(u.slice(0,h)),m=/([^\\s=/]+)\\s*=\\s*(\"([^\"]*)\"|'([^']*)')/g;m.lastIndex=h;let d;for(;(d=m.exec(u))!==null;){let p=d[1],b=p.indexOf(\":\");f.attributes.push({name:p,localName:b<0?p:p.slice(b+1),prefix:b<0?null:p.slice(0,b),namespaceURI:null,value:Us(d[3]??d[4]??\"\")})}f.resolveNamespaces(n[n.length-1]),n.length?i(n[n.length-1],f):o||(o=f),c||n.push(f),t=l+1}if(!o)throw new Error(\"XML \\u89E3\\u6790\\u5931\\u8D25\\uFF1A\\u672A\\u627E\\u5230\\u6839\\u5143\\u7D20\");return o}var Ds=typeof DOMParser<\"u\"?new DOMParser:null;function Tr(e){if(!Ds)return _u(e);let t=Ds.parseFromString(e,\"application/xml\"),r=t.getElementsByTagName(\"parsererror\")[0];if(r)throw new Error(\"XML \\u89E3\\u6790\\u5931\\u8D25: \"+(r.textContent??\"\").slice(0,200));return t.documentElement}function Q(e,t){let r=[];if(!e)return r;for(let n=e.firstElementChild;n;n=n.nextElementSibling)n.localName===t&&r.push(n);return r}function w(e,t){if(!e)return null;for(let r=e.firstElementChild;r;r=r.nextElementSibling)if(r.localName===t)return r;return null}function ee(e,...t){let r=e;for(let n of t)if(r=w(r,n),!r)return null;return r}function N(e,t){if(!e)return null;if(t.includes(\":\")){for(let o of Array.from(e.attributes))if(o.name===t)return o.value;let n=t.split(\":\")[1];for(let o of Array.from(e.attributes))if(o.localName===n)return o.value;return null}let r=e.getAttribute(t);if(r!==null)return r;for(let n of Array.from(e.attributes))if(n.localName===t)return n.value;return null}function U(e,t){let r=N(e,t);if(r===null||r===\"\")return null;let n=Number(r);return Number.isFinite(n)?n:null}function ye(e,t,r=!1){let n=N(e,t);return n===null?r:n===\"1\"||n===\"true\"}var ie=e=>(e??0)/9525,gn=e=>e/100*(96/72),Ku={window:\"FFFFFF\",windowText:\"000000\"},Qu={black:\"000000\",white:\"FFFFFF\",red:\"FF0000\",green:\"008000\",lime:\"00FF00\",blue:\"0000FF\",yellow:\"FFFF00\",cyan:\"00FFFF\",magenta:\"FF00FF\",gray:\"808080\",ltGray:\"C0C0C0\",dkGray:\"404040\",orange:\"FFA500\",purple:\"800080\",brown:\"A52A2A\"},Ju=[\"srgbClr\",\"schemeClr\",\"sysClr\",\"prstClr\",\"scrgbClr\",\"hslClr\"];function ge(e,t){if(!e)return null;for(let r of Ju){let n=w(e,r);if(n)return ti(n,t)}return null}function ti(e,t){let r=eh(e,t),n=1;for(let l=e.firstElementChild;l;l=l.nextElementSibling){let a=(U(l,\"val\")??0)/1e5;switch(l.localName){case\"alpha\":n=a;break;case\"shade\":r=Bs(r,c=>c*a);break;case\"tint\":r=Bs(r,c=>c*a+(1-a));break;case\"lumMod\":r=Mo(r,(c,u,h)=>[c,u,h*a]);break;case\"lumOff\":r=Mo(r,(c,u,h)=>[c,u,h+a]);break;case\"satMod\":r=Mo(r,(c,u,h)=>[c,u*a,h]);break}}let[o,i,s]=r.map(l=>Math.round(yr(l,0,255)));return n>=1?`rgb(${o},${i},${s})`:`rgba(${o},${i},${s},${Math.round(n*1e3)/1e3})`}function eh(e,t){switch(e.localName){case\"srgbClr\":return Rn(N(e,\"val\")??\"000000\");case\"sysClr\":return Rn(N(e,\"lastClr\")??Ku[N(e,\"val\")??\"\"]??\"000000\");case\"prstClr\":return Rn(Qu[N(e,\"val\")??\"\"]??\"808080\");case\"scrgbClr\":return[(U(e,\"r\")??0)/1e5*255,(U(e,\"g\")??0)/1e5*255,(U(e,\"b\")??0)/1e5*255];case\"hslClr\":return xl((U(e,\"hue\")??0)/6e4/360,(U(e,\"sat\")??0)/1e5,(U(e,\"lum\")??0)/1e5);case\"schemeClr\":{let r=N(e,\"val\")??\"tx1\";if(r===\"phClr\")return t.phClr?bl(t.phClr):[128,128,128];let n=t.clrMap[r]??r;return Rn(t.theme[n]??t.theme[r]??\"000000\")}}return[0,0,0]}function bl(e){let t=e.match(/rgba?\\(([^)]+)\\)/);if(t){let r=t[1].split(\",\").map(n=>Number(n.trim()));return[r[0]||0,r[1]||0,r[2]||0]}return Rn(e)}function Rn(e){let t=e.replace(\"#\",\"\").padStart(6,\"0\");return[parseInt(t.slice(0,2),16)||0,parseInt(t.slice(2,4),16)||0,parseInt(t.slice(4,6),16)||0]}function yr(e,t,r){return Math.min(r,Math.max(t,e))}var th=e=>{let t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4},nh=e=>{let t=yr(e,0,1);return(t<=.0031308?t*12.92:1.055*t**(1/2.4)-.055)*255};function Bs(e,t){return e.map(r=>nh(t(th(r))))}function Mo(e,t){let[r,n,o]=rh(e),[i,s,l]=t(r,n,o);return xl(i,yr(s,0,1),yr(l,0,1))}function rh([e,t,r]){e/=255,t/=255,r/=255;let n=Math.max(e,t,r),o=Math.min(e,t,r),i=(n+o)/2;if(n===o)return[0,0,i];let s=n-o,l=i>.5?s/(2-n-o):s/(n+o),a;return n===e?a=(t-r)/s+(t<r?6:0):n===t?a=(r-e)/s+2:a=(e-t)/s+4,[a/6,l,i]}function xl(e,t,r){if(t===0)return[r*255,r*255,r*255];let n=r<.5?r*(1+t):r+t-r*t,o=2*r-n,i=s=>(s<0&&(s+=1),s>1&&(s-=1),s<1/6?o+(n-o)*6*s:s<1/2?n:s<2/3?o+(n-o)*(2/3-s)*6:o);return[i(e+1/3)*255,i(e)*255,i(e-1/3)*255]}var Pe=Uint8Array,qe=Uint16Array,ni=Int32Array,Lr=new Pe([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Ar=new Pe([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Do=new Pe([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),vl=function(e,t){for(var r=new qe(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];for(var o=new ni(r[30]),n=1;n<30;++n)for(var i=r[n];i<r[n+1];++i)o[i]=i-r[n]<<5|n;return{b:r,r:o}},wl=vl(Lr,2),yl=wl.b,Bo=wl.r;yl[28]=258,Bo[258]=28;var $l=vl(Ar,0),oh=$l.b,Hs=$l.r,Ho=new qe(32768);for(le=0;le<32768;++le)Et=(le&43690)>>1|(le&21845)<<1,Et=(Et&52428)>>2|(Et&13107)<<2,Et=(Et&61680)>>4|(Et&3855)<<4,Ho[le]=((Et&65280)>>8|(Et&255)<<8)>>1;var Et,le,xt=function(e,t,r){for(var n=e.length,o=0,i=new qe(t);o<n;++o)e[o]&&++i[e[o]-1];var s=new qe(t);for(o=1;o<t;++o)s[o]=s[o-1]+i[o-1]<<1;var l;if(r){l=new qe(1<<t);var a=15-t;for(o=0;o<n;++o)if(e[o])for(var c=o<<4|e[o],u=t-e[o],h=s[e[o]-1]++<<u,f=h|(1<<u)-1;h<=f;++h)l[Ho[h]>>a]=c}else for(l=new qe(n),o=0;o<n;++o)e[o]&&(l[o]=Ho[s[e[o]-1]++]>>15-e[o]);return l},Gt=new Pe(288);for(le=0;le<144;++le)Gt[le]=8;var le;for(le=144;le<256;++le)Gt[le]=9;var le;for(le=256;le<280;++le)Gt[le]=7;var le;for(le=280;le<288;++le)Gt[le]=8;var le,jn=new Pe(32);for(le=0;le<32;++le)jn[le]=5;var le,ih=xt(Gt,9,0),sh=xt(Gt,9,1),lh=xt(jn,5,0),ah=xt(jn,5,1),ko=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},lt=function(e,t,r){var n=t/8|0;return(e[n]|e[n+1]<<8)>>(t&7)&r},Co=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},ri=function(e){return(e+7)/8|0},Pr=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new Pe(e.subarray(t,r))},ch=[\"unexpected EOF\",\"invalid block type\",\"invalid length/literal\",\"invalid distance\",\"stream finished\",\"no stream handler\",,\"no callback\",\"invalid UTF-8 data\",\"extra field too long\",\"date not in range 1980-2099\",\"filename too long\",\"stream finishing\",\"invalid zip data\"],He=function(e,t,r){var n=new Error(t||ch[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,He),!r)throw n;return n},Ml=function(e,t,r,n){var o=e.length,i=n?n.length:0;if(!o||t.f&&!t.l)return r||new Pe(0);var s=!r,l=s||t.i!=2,a=t.i;s&&(r=new Pe(o*3));var c=function(mt){var zt=r.length;if(mt>zt){var St=new Pe(Math.max(zt*2,mt));St.set(r),r=St}},u=t.f||0,h=t.p||0,f=t.b||0,m=t.l,d=t.d,p=t.m,b=t.n,v=o*8;do{if(!m){u=lt(e,h,1);var x=lt(e,h+1,3);if(h+=3,x)if(x==1)m=sh,d=ah,p=9,b=5;else if(x==2){var M=lt(e,h,31)+257,S=lt(e,h+10,15)+4,y=M+lt(e,h+5,31)+1;h+=14;for(var $=new Pe(y),k=new Pe(19),A=0;A<S;++A)k[Do[A]]=lt(e,h+A*3,7);h+=S*3;for(var L=ko(k),P=(1<<L)-1,E=xt(k,L,1),A=0;A<y;){var T=E[lt(e,h,P)];h+=T&15;var I=T>>4;if(I<16)$[A++]=I;else{var O=0,R=0;for(I==16?(R=3+lt(e,h,3),h+=2,O=$[A-1]):I==17?(R=3+lt(e,h,7),h+=3):I==18&&(R=11+lt(e,h,127),h+=7);R--;)$[A++]=O}}var z=$.subarray(0,M),j=$.subarray(M);p=ko(z),b=ko(j),m=xt(z,p,1),d=xt(j,b,1)}else He(1);else{var I=ri(h)+4,F=e[I-4]|e[I-3]<<8,W=I+F;if(W>o){a&&He(0);break}l&&c(f+F),r.set(e.subarray(I,W),f),t.b=f+=F,t.p=h=W*8,t.f=u;continue}if(h>v){a&&He(0);break}}l&&c(f+131072);for(var V=(1<<p)-1,B=(1<<b)-1,q=h;;q=h){var O=m[Co(e,h)&V],X=O>>4;if(h+=O&15,h>v){a&&He(0);break}if(O||He(2),X<256)r[f++]=X;else if(X==256){q=h,m=null;break}else{var K=X-254;if(X>264){var A=X-257,Y=Lr[A];K=lt(e,h,(1<<Y)-1)+yl[A],h+=Y}var se=d[Co(e,h)&B],ue=se>>4;se||He(3),h+=se&15;var j=oh[ue];if(ue>3){var Y=Ar[ue];j+=Co(e,h)&(1<<Y)-1,h+=Y}if(h>v){a&&He(0);break}l&&c(f+131072);var fe=f+K;if(f<j){var de=i-j,it=Math.min(j,fe);for(de+f<0&&He(3);f<it;++f)r[f]=n[de+f]}for(;f<fe;++f)r[f]=r[f-j]}}t.l=m,t.p=q,t.b=f,t.f=u,m&&(u=1,t.m=p,t.d=d,t.n=b)}while(!u);return f!=r.length&&s?Pr(r,0,f):r.subarray(0,f)},Tt=function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8},Pn=function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8,e[n+2]|=r>>16},So=function(e,t){for(var r=[],n=0;n<e.length;++n)e[n]&&r.push({s:n,f:e[n]});var o=r.length,i=r.slice();if(!o)return{t:Cl,l:0};if(o==1){var s=new Pe(r[0].s+1);return s[r[0].s]=1,{t:s,l:1}}r.sort(function(y,$){return y.f-$.f}),r.push({s:-1,f:25001});var l=r[0],a=r[1],c=0,u=1,h=2;for(r[0]={s:-1,f:l.f+a.f,l,r:a};u!=o-1;)l=r[r[c].f<r[h].f?c++:h++],a=r[c!=u&&r[c].f<r[h].f?c++:h++],r[u++]={s:-1,f:l.f+a.f,l,r:a};for(var f=i[0].s,n=1;n<o;++n)i[n].s>f&&(f=i[n].s);var m=new qe(f+1),d=Wo(r[u-1],m,0);if(d>t){var n=0,p=0,b=d-t,v=1<<b;for(i.sort(function($,k){return m[k.s]-m[$.s]||$.f-k.f});n<o;++n){var x=i[n].s;if(m[x]>t)p+=v-(1<<d-m[x]),m[x]=t;else break}for(p>>=b;p>0;){var M=i[n].s;m[M]<t?p-=1<<t-m[M]++-1:++n}for(;n>=0&&p;--n){var S=i[n].s;m[S]==t&&(--m[S],++p)}d=t}return{t:new Pe(m),l:d}},Wo=function(e,t,r){return e.s==-1?Math.max(Wo(e.l,t,r+1),Wo(e.r,t,r+1)):t[e.s]=r},Ws=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new qe(++t),n=0,o=e[0],i=1,s=function(a){r[n++]=a},l=1;l<=t;++l)if(e[l]==o&&l!=t)++i;else{if(!o&&i>2){for(;i>138;i-=138)s(32754);i>2&&(s(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(s(o),--i;i>6;i-=6)s(8304);i>2&&(s(i-3<<5|8208),i=0)}for(;i--;)s(o);i=1,o=e[l]}return{c:r.subarray(0,n),n:t}},In=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},kl=function(e,t,r){var n=r.length,o=ri(t+2);e[o]=n&255,e[o+1]=n>>8,e[o+2]=e[o]^255,e[o+3]=e[o+1]^255;for(var i=0;i<n;++i)e[o+i+4]=r[i];return(o+4+n)*8},Vs=function(e,t,r,n,o,i,s,l,a,c,u){Tt(t,u++,r),++o[256];for(var h=So(o,15),f=h.t,m=h.l,d=So(i,15),p=d.t,b=d.l,v=Ws(f),x=v.c,M=v.n,S=Ws(p),y=S.c,$=S.n,k=new qe(19),A=0;A<x.length;++A)++k[x[A]&31];for(var A=0;A<y.length;++A)++k[y[A]&31];for(var L=So(k,7),P=L.t,E=L.l,T=19;T>4&&!P[Do[T-1]];--T);var I=c+5<<3,O=In(o,Gt)+In(i,jn)+s,R=In(o,f)+In(i,p)+s+14+3*T+In(k,P)+2*k[16]+3*k[17]+7*k[18];if(a>=0&&I<=O&&I<=R)return kl(t,u,e.subarray(a,a+c));var z,j,F,W;if(Tt(t,u,1+(R<O)),u+=2,R<O){z=xt(f,m,0),j=f,F=xt(p,b,0),W=p;var V=xt(P,E,0);Tt(t,u,M-257),Tt(t,u+5,$-1),Tt(t,u+10,T-4),u+=14;for(var A=0;A<T;++A)Tt(t,u+3*A,P[Do[A]]);u+=3*T;for(var B=[x,y],q=0;q<2;++q)for(var X=B[q],A=0;A<X.length;++A){var K=X[A]&31;Tt(t,u,V[K]),u+=P[K],K>15&&(Tt(t,u,X[A]>>5&127),u+=X[A]>>12)}}else z=ih,j=Gt,F=lh,W=jn;for(var A=0;A<l;++A){var Y=n[A];if(Y>255){var K=Y>>18&31;Pn(t,u,z[K+257]),u+=j[K+257],K>7&&(Tt(t,u,Y>>23&31),u+=Lr[K]);var se=Y&31;Pn(t,u,F[se]),u+=W[se],se>3&&(Pn(t,u,Y>>5&8191),u+=Ar[se])}else Pn(t,u,z[Y]),u+=j[Y]}return Pn(t,u,z[256]),u+j[256]},uh=new ni([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Cl=new Pe(0),hh=function(e,t,r,n,o,i){var s=i.z||e.length,l=new Pe(n+s+5*(1+Math.ceil(s/7e3))+o),a=l.subarray(n,l.length-o),c=i.l,u=(i.r||0)&7;if(t){u&&(a[0]=i.r>>3);for(var h=uh[t-1],f=h>>13,m=h&8191,d=(1<<r)-1,p=i.p||new qe(32768),b=i.h||new qe(d+1),v=Math.ceil(r/3),x=2*v,M=function(bo){return(e[bo]^e[bo+1]<<v^e[bo+2]<<x)&d},S=new ni(25e3),y=new qe(288),$=new qe(32),k=0,A=0,L=i.i||0,P=0,E=i.w||0,T=0;L+2<s;++L){var I=M(L),O=L&32767,R=b[I];if(p[O]=R,b[I]=O,E<=L){var z=s-L;if((k>7e3||P>24576)&&(z>423||!c)){u=Vs(e,a,0,S,y,$,A,P,T,L-T,u),P=k=A=0,T=L;for(var j=0;j<286;++j)y[j]=0;for(var j=0;j<30;++j)$[j]=0}var F=2,W=0,V=m,B=O-R&32767;if(z>2&&I==M(L-B))for(var q=Math.min(f,z)-1,X=Math.min(32767,L),K=Math.min(258,z);B<=X&&--V&&O!=R;){if(e[L+F]==e[L+F-B]){for(var Y=0;Y<K&&e[L+Y]==e[L+Y-B];++Y);if(Y>F){if(F=Y,W=B,Y>q)break;for(var se=Math.min(B,Y-2),ue=0,j=0;j<se;++j){var fe=L-B+j&32767,de=p[fe],it=fe-de&32767;it>ue&&(ue=it,R=fe)}}}O=R,R=p[O],B+=O-R&32767}if(W){S[P++]=268435456|Bo[F]<<18|Hs[W];var mt=Bo[F]&31,zt=Hs[W]&31;A+=Lr[mt]+Ar[zt],++y[257+mt],++$[zt],E=L+F,++k}else S[P++]=e[L],++y[e[L]]}}for(L=Math.max(L,E);L<s;++L)S[P++]=e[L],++y[e[L]];u=Vs(e,a,c,S,y,$,A,P,T,L-T,u),c||(i.r=u&7|a[u/8|0]<<3,u-=7,i.h=b,i.p=p,i.i=L,i.w=E)}else{for(var L=i.w||0;L<s+c;L+=65535){var St=L+65535;St>=s&&(a[u/8|0]=c,St=s),u=kl(a,u+1,e.subarray(L,St))}i.i=s}return Pr(l,0,n+ri(u)+o)},Sl=function(){var e=1,t=0;return{p:function(r){for(var n=e,o=t,i=r.length|0,s=0;s!=i;){for(var l=Math.min(s+2655,i);s<l;++s)o+=n+=r[s];n=(n&65535)+15*(n>>16),o=(o&65535)+15*(o>>16)}e=n,t=o},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},fh=function(e,t,r,n,o){if(!o&&(o={l:1},t.dictionary)){var i=t.dictionary.subarray(-32768),s=new Pe(i.length+e.length);s.set(i),s.set(e,i.length),e=s,o.w=i.length}return hh(e,t.level==null?6:t.level,t.mem==null?o.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,r,n,o)},bt=function(e,t){return e[t]|e[t+1]<<8},et=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},Eo=function(e,t){return et(e,t)+et(e,t+4)*4294967296},El=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8},dh=function(e,t){var r=t.level,n=r==0?0:r<6?1:r==9?3:2;if(e[0]=120,e[1]=n<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var o=Sl();o.p(t.dictionary),El(e,2,o.d())}},ph=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&He(6,\"invalid zlib data\"),(e[1]>>5&1)==+!t&&He(6,\"invalid zlib data: \"+(e[1]&32?\"need\":\"unexpected\")+\" dictionary\"),(e[1]>>3&4)+2};function oi(e,t){return Ml(e,{i:2},t&&t.out,t&&t.dictionary)}function Tl(e,t){t||(t={});var r=Sl();r.p(e);var n=fh(e,t,t.dictionary?6:2,4);return dh(n,t),El(n,n.length-4,r.d()),n}function Ll(e,t){return Ml(e.subarray(ph(e,t&&t.dictionary),-4),{i:2},t&&t.out,t&&t.dictionary)}var Vo=typeof TextDecoder<\"u\"&&new TextDecoder,mh=0;try{Vo.decode(Cl,{stream:!0}),mh=1}catch{}var gh=function(e){for(var t=\"\",r=0;;){var n=e[r++],o=(n>127)+(n>223)+(n>239);if(r+o>e.length)return{s:t,r:Pr(e,r-1)};o?o==3?(n=((n&15)<<18|(e[r++]&63)<<12|(e[r++]&63)<<6|e[r++]&63)-65536,t+=String.fromCharCode(55296|n>>10,56320|n&1023)):o&1?t+=String.fromCharCode((n&31)<<6|e[r++]&63):t+=String.fromCharCode((n&15)<<12|(e[r++]&63)<<6|e[r++]&63):t+=String.fromCharCode(n)}};function bh(e,t){if(t){for(var r=\"\",n=0;n<e.length;n+=16384)r+=String.fromCharCode.apply(null,e.subarray(n,n+16384));return r}else{if(Vo)return Vo.decode(e);var o=gh(e),i=o.s,r=o.r;return r.length&&He(8),i}}var xh=function(e,t){return t+30+bt(e,t+26)+bt(e,t+28)},vh=function(e,t,r){var n=bt(e,t+28),o=bt(e,t+30),i=bh(e.subarray(t+46,t+46+n),!(bt(e,t+8)&2048)),s=t+46+n,l=wh(e,s,o,r,et(e,t+20),et(e,t+24),et(e,t+42)),a=l[0],c=l[1],u=l[2];return[bt(e,t+10),a,c,i,s+o+bt(e,t+32),u]},wh=function(e,t,r,n,o,i,s){var l=o==4294967295,a=i==4294967295,c=s==4294967295,u=t+r,h=l+a+c;if(n&&h){for(;t+4<u;t+=4+bt(e,t+2))if(bt(e,t)==1)return[l?Eo(e,t+4+8*a):o,a?Eo(e,t+4):i,c?Eo(e,t+4+8*(a+l)):s,1];n<2&&He(13)}return[o,i,s,0]};function Go(e,t){for(var r={},n=e.length-22;et(e,n)!=101010256;--n)(!n||e.length-n>65558)&&He(13);var o=bt(e,n+8);if(!o)return{};var i=et(e,n+16),s=et(e,n-20)==117853008;if(s){var l=et(e,n-12);s=et(e,l)==101075792,s&&(o=et(e,l+32),i=et(e,l+48))}for(var a=t&&t.filter,c=0;c<o;++c){var u=vh(e,i,s),h=u[0],f=u[1],m=u[2],d=u[3],p=u[4],b=u[5],v=xh(e,b);i=p,(!a||a({name:d,size:f,originalSize:m,compression:h}))&&(h?h==8?r[d]=oi(e.subarray(v,v+f),{out:new Pe(m)}):He(14,\"unknown compression type \"+h):r[d]=Pr(e,v,v+f))}return r}var Ae=(e,t,r)=>[...r].every((n,o)=>e[t+o]===n.charCodeAt(0)),Dt=(e,t)=>e[t]*256+e[t+1],at=(e,t)=>e[t]+e[t+1]*256,Gs=(e,t)=>e[t]+e[t+1]*256+e[t+2]*65536,on=(e,t)=>e[t]*16777216+e[t+1]*65536+e[t+2]*256+e[t+3],Lt=(e,t)=>e[t]+e[t+1]*256+e[t+2]*65536+e[t+3]*16777216>>>0,mr=(e,t)=>{let r=Dt(e,t);return r>32767?r-65536:r},gr=(e,t)=>{let r=at(e,t);return r>32767?r-65536:r},Je=(e,t)=>Lt(e,t)|0,Ze=(e,t,r=96,n=96)=>Number.isFinite(e)&&Number.isFinite(t)&&e>0&&t>0?{width:e,height:t,dpiX:r>0?r:96,dpiY:n>0?n:96}:null;function yh(e){if(e.length<24||!Ae(e,1,\"PNG\"))return null;let t=on(e,16),r=on(e,20),n=96,o=96;for(let i=8;i+12<=e.length;){let s=on(e,i);if(s>e.length-i-12)break;Ae(e,i+4,\"pHYs\")&&s===9&&e[i+16]===1&&(n=on(e,i+8)*.0254,o=on(e,i+12)*.0254),i+=s+12}return Ze(t,r,n,o)}var $h=new Set([192,193,194,195,197,198,199,201,202,203,205,206,207]);function Mh(e,t,r){if(t+14>r||!Ae(e,t,\"Exif\\0\\0\"))return null;let n=t+6,o=Ae(e,n,\"II\");if(!o&&!Ae(e,n,\"MM\"))return null;let i=(d,p)=>d>=n&&d+p<=r,s=d=>o?at(e,d):Dt(e,d),l=d=>o?Lt(e,d):on(e,d);if(!i(n,8)||s(n+2)!==42)return null;let a=n+l(n+4);if(!i(a,2))return null;let c=0,u=0,h=2,f=s(a);for(let d=0;d<f;d++){let p=a+2+d*12;if(!i(p,12))break;let b=s(p),v=s(p+2),x=l(p+4),M=0;if(x===1&&v===3)M=s(p+8);else if(x===1&&v===5){let S=n+l(p+8);i(S,8)&&(M=l(S)/Math.max(l(S+4),1))}b===282?c=M:b===283?u=M:b===296&&M&&(h=M)}let m=h===3?2.54:h===2?1:0;return c>0&&m?[c*m,(u||c)*m]:null}function kh(e){if(e.length<12||e[0]!==255||e[1]!==216)return null;let t=0,r=0,n=null,o=null;for(let s=2;s+4<=e.length;){if(e[s++]!==255)continue;for(;e[s]===255;)s++;let l=e[s++];if(l===218||l===217)break;if(l===1||l>=208&&l<=215)continue;if(s+2>e.length)break;let a=Dt(e,s);if(a<2||s+a>e.length)break;let c=s+2;if(l===224&&a>=14&&Ae(e,c,\"JFIF\\0\")){let u=e[c+7],h=u===1?1:u===2?2.54:0;h&&(n=[Dt(e,c+8)*h,Dt(e,c+10)*h])}else l===225&&a>=16?o??(o=Mh(e,c,s+a)):$h.has(l)&&a>=7&&(r=Dt(e,c+1),t=Dt(e,c+3));s+=a}let i=n??o??[96,96];return Ze(t,r,i[0],i[1])}function Ch(e){return e.length<10||!Ae(e,0,\"GIF87a\")&&!Ae(e,0,\"GIF89a\")?null:Ze(at(e,6),at(e,8))}function Sh(e){if(e.length<26||!Ae(e,0,\"BM\"))return null;let t=Lt(e,14);if(t===12)return Ze(at(e,18),at(e,20));if(t<40||e.length<46)return null;let r=Math.abs(Je(e,18)),n=Math.abs(Je(e,22)),o=Je(e,38)*.0254,i=Je(e,42)*.0254;return Ze(r,n,o,i)}function Eh(e){if(e.length<30||!Ae(e,0,\"RIFF\")||!Ae(e,8,\"WEBP\"))return null;for(let t=12;t+8<=e.length;){let r=Lt(e,t+4),n=t+8;if(r>e.length-n)break;if(Ae(e,t,\"VP8X\")&&r>=10)return Ze(Gs(e,n+4)+1,Gs(e,n+7)+1);if(Ae(e,t,\"VP8L\")&&r>=5&&e[n]===47){let o=Lt(e,n+1);return Ze((o&16383)+1,(o>>>14&16383)+1)}if(Ae(e,t,\"VP8 \")&&r>=10&&Ae(e,n+3,\"\\x9D\u0001*\"))return Ze(at(e,n+6)&16383,at(e,n+8)&16383);t=n+r+(r&1)}return null}function Th(e){if(e.length<16)return null;let t=Ae(e,0,\"II\");if(!t&&!Ae(e,0,\"MM\"))return null;let r=c=>t?at(e,c):Dt(e,c),n=c=>t?Lt(e,c):on(e,c);if(r(2)!==42)return null;let o=n(4);if(o+2>e.length)return null;let i=r(o),s=new Map;for(let c=0;c<i;c++){let u=o+2+c*12;if(u+12>e.length)break;let h=r(u),f=r(u+2),m=n(u+4),d=0;if(m===1&&f===3)d=r(u+8);else if(m===1&&f===4)d=n(u+8);else if(m===1&&f===5){let p=n(u+8);p+8<=e.length&&(d=n(p)/Math.max(n(p+4),1))}d&&s.set(h,d)}let l=s.get(296)??2,a=l===3?2.54:l===2?1:0;return Ze(s.get(256)??0,s.get(257)??0,a?(s.get(282)??96)*a:96,a?(s.get(283)??s.get(282)??96)*a:96)}function Lh(e){var t,r;let n=(t=new TextDecoder().decode(e.subarray(0,Math.min(e.length,65536))).match(/<svg\\b[^>]*>/i))==null?void 0:t[0];if(!n)return null;let o=a=>{var c;let u=(c=n.match(new RegExp(`\\\\b${a}\\\\s*=\\\\s*[\"']([^\"']+)[\"']`,\"i\")))==null?void 0:c[1],h=u?.trim().match(/^([0-9]+(?:\\.[0-9]+)?)(px|in|cm|mm|pt|pc)?$/i);if(!h)return null;let f={px:1,in:96,cm:96/2.54,mm:96/25.4,pt:96/72,pc:16};return Number(h[1])*f[(h[2]??\"px\").toLowerCase()]},i=o(\"width\"),s=o(\"height\"),l=(r=n.match(/\\bviewBox\\s*=\\s*[\"']([^\"']+)[\"']/i))==null?void 0:r[1].trim().split(/[ ,]+/).map(Number);return(!i||!s)&&l?.length===4&&l.every(Number.isFinite)&&(i||(i=Math.abs(l[2])),s||(s=Math.abs(l[3]))),Ze(i??0,s??0)}function Ah(e){if(e.length>=44&&Lt(e,0)===1&&Lt(e,40)===1179469088){let t=Math.abs(Je(e,16)-Je(e,8)),r=Math.abs(Je(e,20)-Je(e,12)),n=Math.abs(Je(e,32)-Je(e,24)),o=Math.abs(Je(e,36)-Je(e,28));return Ze(t||n*96/2540,r||o*96/2540,n?t*2540/n:96,o?r*2540/o:96)}if(e.length>=22&&Lt(e,0)===2596720087)return Ze(Math.abs(gr(e,10)-gr(e,6)),Math.abs(gr(e,12)-gr(e,8)),at(e,14),at(e,14));for(let t of[512,0]){if(t+14>e.length)continue;let r=mr(e,t+2),n=mr(e,t+4),o=mr(e,t+6),i=mr(e,t+8);if(i>n&&o>r)return Ze(i-n,o-r,72,72)}return null}function Ph(e){return yh(e)??kh(e)??Ch(e)??Sh(e)??Eh(e)??Th(e)??Lh(e)??Ah(e)}var Al=null,Pl=null,zn=new WeakMap;function Xs(e,t){let r=t?zn.get(t):Pl;r?zn.set(e,r):zn.delete(e)}function Ih(e,t){return zn.has(t)&&/^http:\\/\\/schemas.microsoft.com\\/office\\/drawing\\/(2014|2015\\/9\\/8|2015\\/10\\/21|2016\\/5\\/(9|10|11|12|13|14|15))\\/chartex$/.test(e)}function Il(e){Al=e}function Nh(e=!1,t){return e?t?zn.get(t)??null:Pl:Al}var Xo=null;function Nl(e){Xo=e}function ii(e,t){if(!Xo)return null;let r=null;try{r=Xo(e,t)}catch{return null}if(!r)return null;try{return`data:image/svg+xml;charset=utf-8,${encodeURIComponent(r)}`}catch{return null}}var Rh=new Set([\"emf\",\"wmf\",\"pict\",\"pct\",\"pic\"]),Oh={1:\"appear\",2:\"fly\",3:\"blinds\",4:\"zoom\",5:\"checkerboard\",6:\"circle\",7:\"fly\",8:\"diamond\",9:\"dissolve\",10:\"fade\",11:\"appear\",12:\"fly\",13:\"plus\",14:\"randomBar\",15:\"spin\",16:\"split\",17:\"stretch\",18:\"strips\",19:\"swivel\",20:\"wheel\",21:\"wheel\",22:\"wipe\",23:\"zoom\",24:\"random\",25:\"bounce\",26:\"bounce\",28:\"fade\",29:\"float\",30:\"float\",31:\"grow\",32:\"spin\",33:\"float\",34:\"swivel\",35:\"fly\",36:\"stretch\",37:\"stretch\",38:\"fly\",39:\"float\",40:\"spin\",41:\"swivel\",42:\"float\",43:\"fly\",44:\"spin\",45:\"stretch\",46:\"stretch\",47:\"float\",48:\"zoom\",49:\"fly\",50:\"stretch\",51:\"swivel\",52:\"stretch\",53:\"grow\",59:\"grow\",61:\"spin\",62:\"fade\"},Ys={1:\"u\",2:\"r\",4:\"d\",8:\"l\",3:\"rd\",6:\"ru\",9:\"lu\",12:\"ld\",5:\"horz\",10:\"vert\",16:\"in\",32:\"out\",26:\"in-vert\",42:\"out-vert\",21:\"in-horz\",37:\"out-horz\"},zh={fade:\"fade\",wipe:\"wipe\",barn:\"split\",blinds:\"blinds\",box:\"zoom\",checkerboard:\"checkerboard\",circle:\"circle\",diamond:\"diamond\",dissolve:\"dissolve\",plus:\"plus\",randombar:\"randomBar\",slide:\"fly\",strips:\"strips\",wedge:\"wheel\",wheel:\"wheel\",image:\"fade\"},Fh=new Set([19,26,30,31,62]);function si(e,t,r){let n=Oh[e],o=r?.match(/^([a-zA-Z]+)(?:\\(([^)]*)\\))?/),i=o?.[1].toLowerCase(),s=(o?.[2]??\"\").toLowerCase(),l=i?zh[i]:void 0,a=(Fh.has(e)?n:l??n)??\"fade\";if(i===\"box\")return{effect:\"zoom\",dir:s===\"out\"?\"out\":\"in\"};if(i===\"circle\"||i===\"diamond\"||i===\"plus\")return{effect:a,dir:s===\"in\"?\"in\":\"out\"};if(i===\"barn\")return{effect:a,dir:`${s.startsWith(\"in\")?\"in\":\"out\"}-${s.includes(\"vertical\")?\"vert\":\"horz\"}`};if(i===\"wheel\")return{effect:a,dir:s||String(t||1)};if(i===\"checkerboard\")return{effect:a,dir:s===\"down\"?\"down\":\"across\"};if(i===\"randombar\"||i===\"blinds\")return{effect:a,dir:s.startsWith(\"vert\")?\"vert\":\"horz\"};if(i===\"strips\")return{effect:a,dir:{downleft:\"ld\",upleft:\"lu\",downright:\"rd\",upright:\"ru\"}[s]??Ys[t]};if(i===\"wipe\"||i===\"slide\"){let c=s.includes(\"left\")?\"l\":s.includes(\"right\")?\"r\":s.includes(\"top\")||s.includes(\"up\")?\"u\":s.includes(\"bottom\")||s.includes(\"down\")?\"d\":void 0,u={l:\"r\",r:\"l\",u:\"d\",d:\"u\"};return{effect:a,dir:c&&(s.startsWith(\"from\")?c:u[c])}}return e===23&&!r?{effect:a,dir:void 0}:{effect:a,dir:Ys[t]}}var Rl=\"http://www.w3.org/2003/InkML\",To=(e,t)=>[...e.getElementsByTagName(\"*\")].filter(r=>r.namespaceURI===Rl&&r.localName===t);function jh(e,t){if(e.length>4e6)throw new Error(\"InkML \\u91C7\\u6837\\u6570\\u636E\\u8D85\\u9650\");let r=[],n=[],o=[],i=[],s=t.indexOf(\"X\"),l=t.indexOf(\"Y\");if(s<0||l<0||t.length>32)throw new Error(\"InkML \\u901A\\u9053\\u4E0D\\u652F\\u6301\\u7F16\\u8F91\");for(let a of e.split(\",\")){if(!a.trim())continue;let c=/\\s*([!'\\\"]?)\\s*([+-]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:[eE][+-]?\\d+)?|\\*)/gy,u=0,h=0;for(;u<a.length&&a.slice(u).trim();){c.lastIndex=u;let f=c.exec(a);if(!f||h>=t.length)throw new Error(\"InkML \\u542B\\u65E0\\u6CD5\\u7F16\\u8F91\\u7684\\u91C7\\u6837\\u7F16\\u7801\");u=c.lastIndex;let[,m,d]=f;if(d!==\"*\"){let p=Number(d);if(!Number.isFinite(p))throw new Error(\"InkML \\u975E\\u6709\\u9650\\u91C7\\u6837\\u503C\");let b=r.length&&(m||i[h])||\"!\";i[h]=b,b===\"'\"?(o[h]=p,n[h]=(n[h]??0)+p):b==='\"'?(o[h]=(o[h]??0)+p,n[h]=(n[h]??0)+o[h]):(n[h]=p,o[h]=0)}if(!Number.isFinite(n[h]))throw new Error(\"InkML \\u7F3A\\u5C11\\u9996\\u70B9\\u901A\\u9053\\u503C\");h++}if(!Number.isFinite(n[s])||!Number.isFinite(n[l]))throw new Error(\"InkML \\u7F3A\\u5C11\\u5750\\u6807\");if(r.push({x:n[s],y:n[l],values:n.slice(0,h)}),r.length>1e5)throw new Error(\"InkML \\u7B14\\u753B\\u91C7\\u6837\\u8D85\\u9650\")}return r}function Uh(e){if(e.namespaceURI!==Rl||e.localName!==\"ink\")throw new Error(\"\\u4E0D\\u662F InkML \\u6587\\u6863\");let t=[e,...e.getElementsByTagName(\"*\")],r=new Map,n=new Map;for(let f of t)for(let m of Array.from(f.children))n.set(m,f);let o=(f,m)=>{let d=f;for(;d;){let p=N(d,m);if(p!==null)return p;d=n.get(d)}return null};for(let f of t){let m=N(f,\"xml:id\");if(m){if(r.has(m))throw new Error(\"InkML \\u8EAB\\u4EFD\\u91CD\\u590D\");r.set(m,f)}}let i=f=>f!=null&&f.startsWith(\"#\")?r.get(f.slice(1)):void 0,s=To(e,\"trace\"),l=[];if(s.length>1e3)throw new Error(\"InkML \\u7B14\\u753B\\u6570\\u91CF\\u8D85\\u9650\");let a=w(e,\"traceFormat\")??To(e,\"traceFormat\")[0],c=To(e,\"brush\"),u,h=0;if(s.forEach((f,m)=>{var d;let p=[],b=new Set,v=i(o(f,\"contextRef\"));for(;v;){if(b.has(v)||p.length>32)throw new Error(\"InkML \\u4E0A\\u4E0B\\u6587\\u5F15\\u7528\\u5FAA\\u73AF\");b.add(v),p.push(v),v=i(N(v,\"contextRef\"))}let x=R=>p.map(z=>N(z,R)).find(z=>z!==null)??null,M=R=>p.map(z=>w(z,R)).find(z=>z!==null)??null,S=M(\"inkSource\")??i(x(\"inkSourceRef\")),y=M(\"traceFormat\")??i(x(\"traceFormatRef\"))??w(S??null,\"traceFormat\")??a,$=y?Q(y,\"channel\").map(R=>(N(R,\"name\")??\"\").toUpperCase()):[\"X\",\"Y\"],k=jh(f.textContent??\"\",$);if((h+=k.length)>1e5)throw new Error(\"InkML \\u91C7\\u6837\\u603B\\u91CF\\u8D85\\u9650\");let A=i(o(f,\"brushRef\"))??i(x(\"brushRef\"))??c[0],L=\"#000000\",P=0;for(let R of Q(A??null,\"brushProperty\")){let z=(d=N(R,\"name\"))==null?void 0:d.toLowerCase(),j=N(R,\"value\")??\"\";z===\"color\"?L=/^[\\da-f]{6}$/i.test(j)?\"#\"+j:j:(z===\"width\"||z===\"height\")&&(P=Math.max(P,Number(j)||0))}let E=i(x(\"canvasRef\")),T=w(E??null,\"traceFormat\"),I=Q(T,\"channel\").find(R=>N(R,\"name\")===\"X\"),O=Q(T,\"channel\").find(R=>N(R,\"name\")===\"Y\");if(I&&O&&[\"min\",\"max\"].every(R=>N(I,R)!==null&&N(O,R)!==null)){let R={x:Number(N(I,\"min\")),y:Number(N(O,\"min\")),width:Number(N(I,\"max\"))-Number(N(I,\"min\")),height:Number(N(O,\"max\"))-Number(N(O,\"min\"))};if(Object.values(R).every(Number.isFinite)&&R.width>=0&&R.height>=0){if(u&&JSON.stringify(u)!==JSON.stringify(R))throw new Error(\"InkML \\u591A\\u753B\\u5E03\\u4E0D\\u652F\\u6301\\u5171\\u540C\\u7F16\\u8F91\");u=R}}l.push({id:N(f,\"xml:id\")??`trace-${m+1}`,points:k,channels:$,color:L,width:P})}),!u){let f=1/0,m=1/0,d=-1/0,p=-1/0;for(let b of l)for(let v of b.points)f=Math.min(f,v.x),m=Math.min(m,v.y),d=Math.max(d,v.x),p=Math.max(p,v.y);u=Number.isFinite(f)?{x:f,y:m,width:d-f,height:p-m}:{x:0,y:0,width:1,height:1}}return{strokes:l,bounds:u}}function Dh(e,t,r){var n,o;let i=Uh(e),s=i.strokes.filter(S=>S.points.length>=2).map(S=>({pts:S.points.map(y=>[y.x,y.y]),brush:S}));if(!s.length)return[];let{x:l,y:a,width:c,height:u}=i.bounds,h=l+c,f=a+u,m=h-l,d=f-a,p=Math.min(m>0?t/m:1/0,d>0?r/d:1/0),b=Number.isFinite(p)&&p>0?p:1,v=(t-m*b)/2,x=(r-d*b)/2,M=[];for(let S of s){let y=S.pts.map(([I,O])=>[v+(I-l)*b,x+(O-a)*b]),$=1/0,k=1/0,A=-1/0,L=-1/0;for(let[I,O]of y)I<$&&($=I),O<k&&(k=O),I>A&&(A=I),O>L&&(L=O);let P=I=>String(Math.round(I*100)/100),E=\"M \"+y.map(([I,O])=>`${P(I-$)} ${P(O-k)}`).join(\" L \"),T=Math.max(.75,Math.min((((n=S.brush)==null?void 0:n.width)??0)*b||2,24));M.push({kind:\"shape\",x:$,y:k,w:Math.max(A-$,0),h:Math.max(L-k,0),rot:0,flipH:!1,flipV:!1,path:E,fill:{type:\"none\"},stroke:{color:((o=S.brush)==null?void 0:o.color)??\"rgb(0,0,0)\",width:T,dash:null,cap:\"round\",join:\"round\"},text:null,openGeom:!0})}return M}var Bh=new RegExp(\"[\"+[\"Arabic\",\"Hebrew\",\"Syriac\",\"Thaana\",\"Nko\",\"Thai\",\"Lao\",\"Khmer\",\"Myanmar\",\"Tibetan\",\"Devanagari\",\"Bengali\",\"Gurmukhi\",\"Gujarati\",\"Oriya\",\"Tamil\",\"Telugu\",\"Kannada\",\"Malayalam\",\"Sinhala\"].map(e=>`\\\\p{Script=${e}}`).join(\"\")+\"]\",\"u\");function Hh(e,t){let{latin:r,eastAsian:n,complexScript:o}=e,i=[];return r&&i.push(r),n&&n!==r&&i.push(n),o&&o!==r&&o!==n&&Bh.test(t)&&i.push(o),i}var pn={transform:1,geometry:2,fill:4,stroke:8,effects:16,style:32},Le={b:1,i:2,u:4,strike:8,size:16,fonts:32,color:64,baseline:128,spacing:256,caps:512,outline:1024,gradient:2048,highlight:4096,underlineColor:8192,fontLatin:16384,fontEastAsian:32768,fontComplexScript:65536},Nn={bullet:1,bulletColor:2,bulletFont:4,bulletSize:8,rtl:16};var Ol={title:[\"title\",\"ctrTitle\"],ctrTitle:[\"ctrTitle\",\"title\"],body:[\"body\",\"subTitle\",\"obj\"],subTitle:[\"subTitle\",\"body\"],obj:[\"obj\",\"body\"]};function Wh(e,t,r){let n=r.idx??null;if(n!==null){let i=e.find(s=>{var l;return((l=t(s))==null?void 0:l.idx)===n});if(i)return i}let o=r.type??null;if(o)for(let i of Ol[o]??[o]){let s=e.find(l=>{var a;return((a=t(l))==null?void 0:a.type)===i});if(s)return s}if(!o&&n===null)return e.find(i=>{var s;return((s=t(i))==null?void 0:s.type)===\"body\"})}function vn(e,t){if(!e)return;let r={},n=w(e,\"outerShdw\"),o=w(e,\"innerShdw\"),i=n??o;if(i){let c=ie(U(i,\"dist\")??0),u=(U(i,\"dir\")??0)/6e4*(Math.PI/180);r.shadow={dx:c*Math.cos(u),dy:c*Math.sin(u),blur:ie(U(i,\"blurRad\")??0),color:ge(i,t)??\"rgba(0,0,0,0.4)\",inner:i===o}}let s=w(e,\"glow\");s&&(r.glow={radius:ie(U(s,\"rad\")??0),color:ge(s,t)??\"rgba(0,0,0,0.4)\"});let l=w(e,\"softEdge\");l&&(r.softEdge=ie(U(l,\"rad\")??0));let a=w(e,\"reflection\");return a&&(r.reflection={alpha:(U(a,\"stA\")??5e4)/1e5,size:(U(a,\"endPos\")??35e3)/1e5,distance:ie(U(a,\"dist\")??0)}),Object.keys(r).length||e.localName===\"effectLst\"?r:void 0}var Vh={none:\"none\",triangle:\"triangle\",stealth:\"stealth\",diamond:\"diamond\",oval:\"oval\",arrow:\"arrow\"},qs={sm:2,med:3,lg:5};function Zs(e){if(!e)return;let t=Vh[N(e,\"type\")??\"none\"];if(t)return{type:t,w:qs[N(e,\"w\")??\"med\"]??3,h:qs[N(e,\"len\")??\"med\"]??3}}function Gh(e,t){if(!e)return;let r=w(e,\"sp3d\"),n=w(e,\"scene3d\");if(!r&&!n)return;let o={},i=U(r,\"extrusionH\");i!==null&&(o.extrusion=ie(i));let s=w(r,\"bevelT\");s&&(o.bevelTop=ie(U(s,\"h\")??38100));let l=w(r,\"bevelB\");l&&(o.bevelBottom=ie(U(l,\"h\")??38100));let a=U(r,\"contourW\");a!==null&&(o.contourWidth=ie(a));for(let[M,S]of[[\"extrusionClr\",\"extrusionColor\"],[\"contourClr\",\"contourColor\"]]){let y=ge(w(r,M),t);y&&(o[S]=y)}let c=N(r,\"prstMaterial\");c&&(o.material=c);let u=w(n,\"camera\"),h=N(u,\"prst\");h&&(o.camera=h);let f=U(u,\"fov\"),m=U(u,\"zoom\");f!==null&&(o.fieldOfView=f/6e4),m!==null&&(o.zoom=m/1e5);let d=U(r,\"z\");d!==null&&(o.z=ie(d));let p=w(n,\"lightRig\"),b=N(p,\"rig\"),v=N(p,\"dir\");b&&(o.lightRig=b),v&&(o.lightDirection=v),s&&(o.bevelTopWidth=ie(U(s,\"w\")??76200)),l&&(o.bevelBottomWidth=ie(U(l,\"w\")??76200));let x=w(u,\"rot\");return x&&(o.rotX=(U(x,\"lat\")??0)/6e4,o.rotY=(U(x,\"lon\")??0)/6e4,o.rotZ=(U(x,\"rev\")??0)/6e4),Object.keys(o).length?o:void 0}var zl=Object.freeze({push:\"l\",pull:\"l\",cover:\"l\",wipe:\"l\",split:\"horz-out\",zoom:\"out\",checker:\"horz\",blinds:\"horz\",comb:\"horz\",randomBar:\"horz\",strips:\"lu\",vortex:\"l\",ripple:\"center\",glitter:\"l\",warp:\"out\",flythrough:\"in\",shred:\"in\",reveal:\"l\",pan:\"l\",doors:\"horz\",window:\"horz\",prism:\"l\"}),Gb=Object.freeze({...zl,switch:\"l\",flip:\"l\",ferris:\"l\",gallery:\"l\",conveyor:\"l\"});function Xh(e){return zl[e]}var Vt=\"http://schemas.openxmlformats.org/markup-compatibility/2006\";function Fl(e,t){var r;if(e.namespaceURI!==Vt)return null;let n=null;for(let o=e.firstElementChild;o;o=o.nextElementSibling){if(o.namespaceURI!==Vt||(o.localName===\"Fallback\"&&(n??(n=o)),o.localName!==\"Choice\"))continue;let i=((r=o.getAttribute(\"Requires\"))==null?void 0:r.trim().split(/\\s+/).filter(Boolean))??[];if(i.length&&i.every(s=>{let l=o.lookupNamespaceURI(s);return l!==null&&t.has(l)}))return o}return n}var Fn=\"http://schemas.openxmlformats.org/presentationml/2006/main\",Lo=\"http://schemas.openxmlformats.org/markup-compatibility/2006\",Yh=\"http://www.w3.org/2000/xmlns/\",qh=\"http://www.w3.org/XML/1998/namespace\",jl=4096;function mn(e,t,r){let n=[];for(let o=e?.firstElementChild??null;o;o=o.nextElementSibling)o.namespaceURI===t&&(!r||o.localName===r)&&n.push(o);return n}function Zh(e){if(!e)return{timing:null,readonly:!1};let t=mn(e,Fn,\"timing\"),r=mn(e,Lo,\"AlternateContent\").filter(o=>mn(o,Lo).some(i=>mn(i,Fn,\"timing\").length>0));if(t.length)return{timing:t[0],readonly:t.length>1||r.length>0};if(!r.length)return{timing:null,readonly:!1};let n=mn(r[0],Lo,\"Fallback\")[0]??null;return{timing:mn(n,Fn,\"timing\")[0]??null,readonly:!0}}function _s(e,t){return e.seen.has(t)?!0:(e.seen.add(t),e.nodes++,e.nodes<=jl)}function ct(e,t){if(!_s(t,e))return null;let r=[];for(let n=e.firstElementChild;n;n=n.nextElementSibling){if(!_s(t,n)||n.namespaceURI!==Fn)return null;r.push(n)}return r}function Ee(e,t,r){let n=ct(e,r);return n&&n.length===t.length&&n.every((o,i)=>o.localName===t[i])?n:null}function ce(e,t){let r=new Set(t);return Array.from(e.attributes).every(n=>n.namespaceURI===Yh||n.namespaceURI===qh?!0:n.namespaceURI===null&&r.has(n.localName))}function $r(e,t,r){if(!e||!/^\\d+$/.test(e))return null;let n=Number(e);return Number.isSafeInteger(n)&&n>=t&&n<=r?n:null}function Un(e,t){let r=$r(e.getAttribute(\"id\"),1,2147483647);return r===null||t.ids.has(r)?!1:(t.ids.add(r),!0)}function li(e,t,r){var n;if(e.localName!==\"stCondLst\"||!ce(e,[]))return!1;let o=Ee(e,[\"cond\"],r);return!!o&&ce(o[0],[\"delay\"])&&o[0].getAttribute(\"delay\")===String(t)&&(((n=ct(o[0],r))==null?void 0:n.length)??-1)===0}function _h(e,t){var r;if(e.localName!==\"tgtEl\"||!ce(e,[]))return null;let n=Ee(e,[\"spTgt\"],t);return!n||!ce(n[0],[\"spid\"])||(((r=ct(n[0],t))==null?void 0:r.length)??-1)!==0?null:$r(n[0].getAttribute(\"spid\"),1,2147483647)}function Kh(e,t,r){if(e.localName!==\"attrNameLst\"||!ce(e,[]))return!1;let n=ct(e,r);return!!n&&n.length===t.length&&n.every((o,i)=>{var s;return o.localName===\"attrName\"&&ce(o,[])&&(((s=ct(o,r))==null?void 0:s.length)??-1)===0&&o.textContent===t[i]})}function Dn(e,t,r,n,o){if(e.localName!==\"cBhvr\"||!ce(e,[]))return null;let i=r.length?[\"cTn\",\"tgtEl\",\"attrNameLst\"]:[\"cTn\",\"tgtEl\"],s=Ee(e,i,n);if(!s)return null;let l=s[0];if(!ce(l,[\"id\",\"dur\",\"fill\"])||!Un(l,n)||l.getAttribute(\"dur\")!==String(t)||l.getAttribute(\"fill\")!==\"hold\")return null;let a=ct(l,n);if(!a||(o===void 0?a.length!==0:a.length!==1||!li(a[0],o,n)))return null;let c=_h(s[1],n);return c===null||r.length&&!Kh(s[2],r,n)?null:c}function Ks(e,t,r,n){var o;if(e.localName!==\"set\"||!ce(e,[]))return null;let i=Ee(e,[\"cBhvr\",\"to\"],n),s=i?Dn(i[0],1,[\"style.visibility\"],n,r):null,l=i&&ce(i[1],[])?Ee(i[1],[\"strVal\"],n):null;return s===null||!l||!ce(l[0],[\"val\"])||l[0].getAttribute(\"val\")!==t||(((o=ct(l[0],n))==null?void 0:o.length)??-1)!==0?null:s}var Qh=Object.freeze({2:Object.freeze({8:\"slide(fromLeft)\",2:\"slide(fromRight)\",1:\"slide(fromTop)\",4:\"slide(fromBottom)\"}),22:Object.freeze({8:\"wipe(right)\",2:\"wipe(left)\",1:\"wipe(down)\",4:\"wipe(up)\"}),23:Object.freeze({16:\"box(in)\",32:\"box(out)\"})});function Jh(e,t,r,n,o,i){var s;if(e.localName!==\"animEffect\"||!ce(e,[\"transition\",\"filter\"]))return null;let l=t===\"10\"?\"fade\":t===\"9\"?\"dissolve\":r?(s=Qh[t])==null?void 0:s[r]:void 0;if(!l||e.getAttribute(\"filter\")!==l||e.getAttribute(\"transition\")!==(n===\"exit\"?\"out\":\"in\"))return null;let a=Ee(e,[\"cBhvr\"],i);return a?Dn(a[0],o,[],i):null}function ef(e,t,r,n){var o;if(t===\"61\"){if(e.localName!==\"animRot\"||!ce(e,[\"by\"])||e.getAttribute(\"by\")!==\"21600000\")return null;let s=Ee(e,[\"cBhvr\"],n);return s?Dn(s[0],r,[\"r\"],n):null}if(e.localName!==\"animScale\"||!ce(e,[]))return null;let i=Ee(e,[\"cBhvr\",\"by\"],n);return!i||!ce(i[1],[\"x\",\"y\"])||i[1].getAttribute(\"x\")!==\"125000\"||i[1].getAttribute(\"y\")!==\"125000\"||(((o=ct(i[1],n))==null?void 0:o.length)??-1)!==0?null:Dn(i[0],r,[\"ppt_w\",\"ppt_h\"],n)}function tf(e){if(!e)return!1;let t=e.trim().split(/\\s+/);if(t.length<7||t[0]!==\"M\"||t[t.length-1]!==\"E\")return!1;let r=0;for(let n=0;n<t.length-1;){let o=t[n++];if((r===0?o!==\"M\":o!==\"L\")||n+1>=t.length)return!1;let i=Number(t[n++]),s=Number(t[n++]);if(!Number.isFinite(i)||!Number.isFinite(s)||r===0&&(i!==0||s!==0))return!1;r++}return r>=2&&r<=256}function nf(e,t,r){if(e.localName!==\"animMotion\"||!ce(e,[\"origin\",\"path\",\"pathEditMode\"])||e.getAttribute(\"origin\")!==\"layout\"||e.getAttribute(\"pathEditMode\")!==\"relative\"||!tf(e.getAttribute(\"path\")))return null;let n=Ee(e,[\"cBhvr\"],r);return n?Dn(n[0],t,[\"ppt_x\",\"ppt_y\"],r):null}function rf(e,t){var r,n;if(e.localName!==\"par\"||!ce(e,[]))return null;let o=(r=Ee(e,[\"cTn\"],t))==null?void 0:r[0];if(!o||!ce(o,[\"id\",\"presetID\",\"presetClass\",\"presetSubtype\",\"dur\",\"fill\",\"nodeType\"])||!Un(o,t))return null;let i=o.getAttribute(\"presetID\"),s=o.getAttribute(\"presetClass\"),l=o.getAttribute(\"presetSubtype\"),a=$r(o.getAttribute(\"dur\"),60,1e4),c=o.getAttribute(\"nodeType\");if(!i||!s||a===null||o.getAttribute(\"fill\")!==\"hold\"||![\"clickEffect\",\"withEffect\",\"afterEffect\"].includes(c??\"\"))return null;let u=Ee(o,[\"stCondLst\",\"childTnLst\"],t),h=u?$r(((n=u[0].firstElementChild)==null?void 0:n.getAttribute(\"delay\"))??null,0,3e5):null;if(!u||h===null||!li(u[0],h,t)||!ce(u[1],[]))return null;let f=ct(u[1],t);if(!f)return null;let m=[];if(s===\"path\"&&i===\"0\"&&l===null&&f.length===1)m=[nf(f[0],a,t)];else if(s===\"emph\"&&[\"59\",\"61\"].includes(i)&&l===null&&f.length===1)m=[ef(f[0],i,a,t)];else if([\"entr\",\"exit\"].includes(s)&&[\"1\",\"2\",\"9\",\"10\",\"22\",\"23\"].includes(i)){if([\"2\",\"22\",\"23\"].includes(i)!==(l!==null))return null;let d=s===\"entr\"?\"visible\":\"hidden\",p=s===\"entr\"?0:a;if(i===\"1\"&&f.length===1)m=[Ks(f[0],d,p,t)];else if(f.length===2){let b=s===\"entr\"?1:0,v=1-b;m=[Jh(f[b],i,l,s,a,t),Ks(f[v],d,p,t)]}}return!m.length||m.some(d=>d===null)||m.some(d=>d!==m[0])?null:c}function of(e,t){var r;if(e.localName!==\"par\"||!ce(e,[]))return!1;let n=(r=Ee(e,[\"cTn\"],t))==null?void 0:r[0];if(!n||!ce(n,[\"id\",\"fill\",\"nodeType\"])||!Un(n,t)||n.getAttribute(\"fill\")!==\"hold\"||n.getAttribute(\"nodeType\")!==\"clickEffect\")return!1;let o=Ee(n,[\"stCondLst\",\"childTnLst\"],t);if(!o||!li(o[0],\"indefinite\",t)||!ce(o[1],[]))return!1;let i=ct(o[1],t);if(!(i!=null&&i.length))return!1;let s=i.map(l=>rf(l,t));return s[0]===\"clickEffect\"&&s.slice(1).every(l=>l===\"withEffect\"||l===\"afterEffect\")}function sf(e){var t,r,n,o,i,s,l;let a={nodes:0,ids:new Set,seen:new Set};if(e.namespaceURI!==Fn||e.localName!==\"timing\"||!ce(e,[]))return!1;let c=(t=Ee(e,[\"tnLst\"],a))==null?void 0:t[0];if(!c||!ce(c,[]))return!1;let u=(r=Ee(c,[\"par\"],a))==null?void 0:r[0];if(!u||!ce(u,[]))return!1;let h=(n=Ee(u,[\"cTn\"],a))==null?void 0:n[0];if(!h||!ce(h,[\"id\",\"dur\",\"restart\",\"nodeType\"])||!Un(h,a)||h.getAttribute(\"dur\")!==\"indefinite\"||h.getAttribute(\"restart\")!==\"never\"||h.getAttribute(\"nodeType\")!==\"tmRoot\")return!1;let f=(o=Ee(h,[\"childTnLst\"],a))==null?void 0:o[0];if(!f||!ce(f,[]))return!1;let m=(i=Ee(f,[\"seq\"],a))==null?void 0:i[0];if(!m||!ce(m,[\"concurrent\",\"nextAc\"])||m.getAttribute(\"concurrent\")!==\"1\"||m.getAttribute(\"nextAc\")!==\"seek\")return!1;let d=(s=Ee(m,[\"cTn\"],a))==null?void 0:s[0];if(!d||!ce(d,[\"id\",\"dur\",\"nodeType\"])||!Un(d,a)||d.getAttribute(\"dur\")!==\"indefinite\"||d.getAttribute(\"nodeType\")!==\"mainSeq\")return!1;let p=(l=Ee(d,[\"childTnLst\"],a))==null?void 0:l[0];if(!p||!ce(p,[]))return!1;let b=ct(p,a);return!!(b!=null&&b.length)&&b.every(v=>of(v,a))}function lf(e){return!sf(e)}var af={slow:1e3,med:750,fast:500},Yo=\"http://schemas.openxmlformats.org/presentationml/2006/main\",ai=\"http://schemas.microsoft.com/office/powerpoint/2010/main\",Ul=\"http://schemas.microsoft.com/office/powerpoint/2015/09/main\",cf=new Set([ai,Ul]),uf={fade:\"fade\",cut:\"cut\",push:\"push\",pull:\"pull\",cover:\"cover\",wipe:\"wipe\",split:\"split\",zoom:\"zoom\",dissolve:\"dissolve\",checker:\"checker\",blinds:\"blinds\",comb:\"comb\",wheel:\"wheel\",circle:\"circle\",diamond:\"diamond\",plus:\"plus\",wedge:\"wedge\",newsflash:\"newsflash\",randomBar:\"randomBar\",strips:\"strips\",random:\"dissolve\",fadeThroughBlack:\"fade\",vortex:\"vortex\",switch:\"switch\",flip:\"flip\",ripple:\"ripple\",honeycomb:\"honeycomb\",glitter:\"glitter\",warp:\"warp\",flythrough:\"flythrough\",flash:\"flash\",shred:\"shred\",reveal:\"reveal\",wheelReverse:\"wheelReverse\",ferris:\"ferris\",gallery:\"gallery\",conveyor:\"conveyor\",pan:\"pan\",doors:\"doors\",window:\"window\",prism:\"prism\",morph:\"morph\"},hf=new Set([\"vortex\",\"switch\",\"flip\",\"ripple\",\"honeycomb\",\"glitter\",\"warp\",\"flythrough\",\"flash\",\"shred\",\"reveal\",\"wheelReverse\",\"ferris\",\"gallery\",\"conveyor\",\"pan\",\"doors\",\"window\",\"prism\"]);function ff(e){let t=uf[e.localName];if(!t)return;let r=e.namespaceURI;return e.localName===\"morph\"?r===Ul?t:void 0:hf.has(e.localName)?r===ai?t:void 0:r===Yo?t:void 0}function Ao(e,t,r){let n=Array.from(e.attributes).find(i=>i.localName===t&&i.namespaceURI===r);if(!n||n.value===\"\")return null;let o=Number(n.value);return Number.isFinite(o)?o:null}function Qs(e,t,r){if(!e)return null;for(let n=e.firstElementChild;n;n=n.nextElementSibling)if(n.namespaceURI===t&&n.localName===r)return n;return null}function df(e,t,r){let n=[];if(!e)return n;for(let o=e.firstElementChild;o;o=o.nextElementSibling)o.namespaceURI===t&&o.localName===r&&n.push(o);return n}function qo(e){let t=pf(e);if(!t)return;let r=\"none\",n,o;for(let a=t.firstElementChild;a;a=a.nextElementSibling){let c=ff(a);if(c){if(r=c,n=a.getAttribute(\"dir\")??a.getAttribute(\"orient\")??void 0,a.localName===\"morph\"){let u=a.getAttribute(\"option\");o=u===\"byWord\"||u===\"byChar\"?u:\"byObject\"}if(a.localName===\"split\"){let u=a.getAttribute(\"orient\")??\"horz\",h=a.getAttribute(\"dir\")??\"out\";n=`${u}-${h}`}break}}let i=Ao(t,\"dur\",ai)??Ao(t,\"dur\",null),s=r===\"none\"?0:i??af[t.getAttribute(\"spd\")??\"fast\"]??500,l=Ao(t,\"advTm\",null);return n??(n=Xh(r)),{type:r,dir:n,durationMs:r===\"none\"?0:Math.max(80,Math.min(5e3,s)),advanceAfterMs:l??void 0,morphBy:o}}function pf(e){if(!e)return null;let t=Qs(e,Yo,\"transition\");if(t)return t;for(let r of df(e,Vt,\"AlternateContent\")){let n=Fl(r,cf),o=Qs(n,Yo,\"transition\");if(o)return o}return null}var mf={entr:\"entrance\",exit:\"exit\",emph:\"emphasis\",path:\"motion\",mediacall:\"emphasis\",verb:\"emphasis\"};function gf(e,t,r,n=256){let o=e.match(/[MLCZEmlcze]|-?\\d*\\.?\\d+(?:[eE][-+]?\\d+)?/g);if(!o)return;let i=[],s=[0,0],l=[0,0],a=0,c=()=>{let x=Number(o[a++]);return Number.isFinite(x)?x:0},u=x=>{i.push(x),s=x};for(;a<o.length;)switch(o[a++]){case\"M\":case\"m\":{let x=[c(),c()];l=x,i.length=0,u(x);break}case\"L\":case\"l\":u([c(),c()]);break;case\"C\":case\"c\":{let[x,M,S,y,$,k]=[c(),c(),c(),c(),c(),c()],[A,L]=s;for(let P=1;P<=16;P++){let E=P/16,T=1-E;i.push([T*T*T*A+3*T*T*E*x+3*T*E*E*S+E*E*E*$,T*T*T*L+3*T*T*E*M+3*T*E*E*y+E*E*E*k])}s=[$,k];break}case\"Z\":case\"z\":u([l[0],l[1]]);break;default:a=o.length}if(i.length<2)return;let[h,f]=i[0],m=i.map(([x,M])=>[(x-h)*t,(M-f)*r]);if(m.length<=n)return m;let d=[0];for(let x=1;x<m.length;x++)d.push(d[x-1]+Math.hypot(m[x][0]-m[x-1][0],m[x][1]-m[x-1][1]));let p=d[d.length-1];if(!(p>0))return;let b=[],v=1;for(let x=0;x<n;x++){let M=p*x/(n-1);for(;v<d.length-1&&d[v]<M;)v++;let S=d[v]-d[v-1],y=S>0?(M-d[v-1])/S:0;b.push([m[v-1][0]+(m[v][0]-m[v-1][0])*y,m[v-1][1]+(m[v][1]-m[v-1][1])*y])}return b}function Dl(e,t=8){for(let r=e.firstElementChild;r;r=r.nextElementSibling){if(r.localName===\"animMotion\"){let n=N(r,\"path\");if(n)return n}if(t>0){let n=Dl(r,t-1);if(n)return n}}return null}function Bl(e,t=8){for(let r=e.firstElementChild;r;r=r.nextElementSibling){if(r.localName===\"spTgt\"){let n=U(r,\"spid\");if(n!==null)return n}if(t>0){let n=Bl(r,t-1);if(n!==null)return n}}return null}function Hl(e,t=8){for(let r=e.firstElementChild;r;r=r.nextElementSibling){if(r.localName===\"pRg\"){let n=U(r,\"st\"),o=U(r,\"end\");if(n!==null&&o!==null&&o>=n)return{start:n,end:o}}if(t>0){let n=Hl(r,t-1);if(n)return n}}}var bf=new Set([\"animEffect\",\"anim\",\"animRot\",\"animScale\",\"animClr\",\"animMotion\"]);function Wl(e,t=8,r=!1){let n=null;for(let o=e.firstElementChild;o;o=o.nextElementSibling){let i=r||bf.has(o.localName);if(o.localName===\"cTn\"){let s=N(o,\"dur\");if(s&&s!==\"indefinite\"){let l=Number(s);if(Number.isFinite(l)&&l>1&&r)return l;Number.isFinite(l)&&l>1&&(n===null||l>n)&&(n=l)}}if(t>0){let s=Wl(o,t-1,i);if(s!==null&&i)return s;s!==null&&(n===null||s>n)&&(n=s)}}return n}function Vl(e,t=8){for(let r=e.firstElementChild;r;r=r.nextElementSibling){if(r.localName===\"animEffect\"){let n=N(r,\"filter\");if(n)return n}if(t>0){let n=Vl(r,t-1);if(n)return n}}return null}function Gl(e,t=8){for(let r=e.firstElementChild;r;r=r.nextElementSibling){if(r.localName===\"animScale\"){let n=w(r,\"from\"),o=w(r,\"to\"),i=[U(n,\"x\"),U(n,\"y\"),U(o,\"x\"),U(o,\"y\")];if(i.every(s=>s!==null&&Number.isFinite(s)))return{fromX:i[0]/1e5,fromY:i[1]/1e5,toX:i[2]/1e5,toY:i[3]/1e5}}if(t>0){let n=Gl(r,t-1);if(n)return n}}}function Xl(e,t=8){for(let r=e.firstElementChild;r;r=r.nextElementSibling){if(r.localName===\"animRot\"){let n=U(r,\"from\"),o=U(r,\"to\"),i=U(r,\"by\");if(n!==null||o!==null||i!==null){let s=n??0;return{from:s/6e4,to:(o??s+(i??0))/6e4}}}if(t>0){let n=Xl(r,t-1);if(n)return n}}}function Yl(e,t=8){for(let r=e.firstElementChild;r;r=r.nextElementSibling){if(r.localName===\"cmd\"){if((N(r,\"type\")??\"call\")!==\"call\")return null;let n=N(r,\"cmd\");if(n===\"play\"||n===\"pause\"||n===\"resume\"||n===\"stop\"||n===\"togglePause\")return{action:n};let o=/^playFrom\\((\\d+(?:\\.\\d+)?)\\)$/.exec(n??\"\");if(!o)return null;let i=Number(o[1]);return Number.isFinite(i)?{action:\"play\",fromSeconds:i}:null}if(t>0){let n=Yl(r,t-1);if(n)return n}}return null}function xf(e){let t=w(w(e,\"stCondLst\"),\"cond\"),r=N(t,\"delay\");if(!r||r===\"indefinite\")return 0;let n=Number(r);return Number.isFinite(n)?Math.max(0,n):0}function vf(e){let t=[],r=[],n=[],o={element:e,depth:0,insidePreset:!1},i=0;for(;o;){if(++i>jl)return null;let s=!o.insidePreset&&o.depth<=25&&o.element.localName===\"cTn\"&&!!N(o.element,\"presetClass\");s&&t.push({element:o.element,order:i}),!o.insidePreset&&(o.element.localName===\"audio\"||o.element.localName===\"video\")&&r.push({element:o.element,order:i,kind:o.element.localName});let l=o.insidePreset||s,a=o.element.firstElementChild;if(a){n.push({next:a.nextElementSibling,depth:o.depth+1,insidePreset:l}),o={element:a,depth:o.depth+1,insidePreset:l};continue}for(o=null;n.length&&!o;){let c=n[n.length-1],u=c.next;if(!u){n.pop();continue}c.next=u.nextElementSibling,o={element:u,depth:c.depth,insidePreset:c.insidePreset}}}return{presets:t,medias:r}}function wf(e){let t=w(e.element,\"cMediaNode\")??null;if(!t)return null;let r=U(w(w(t,\"tgtEl\"),\"spTgt\"),\"spid\");if(r===null)return null;let n=U(t,\"vol\")??8e4,o=U(t,\"mute\")===1,i=w(t,\"cTn\");return{spid:r,kind:e.kind,volume:o?0:Math.max(0,Math.min(1,n/1e5)),loop:N(i,\"repeatCount\")===\"indefinite\",clickGroup:0}}function yf(e,t=0,r=0){if(!e)return{readonly:!1};let n=[],o=lf(e),i=vf(e);if(!i)return{readonly:!0};let s=[];for(let{element:h,order:f}of i.presets){let m=Mf(h,t,r);m?s.push({order:f,step:m}):o=!0}if(!s.length&&!i.medias.length)return{readonly:o};let l=i.medias.map(h=>({raw:h,timing:wf(h)})).filter(h=>h.timing!==null),a=[...s.map(h=>({order:h.order,step:h.step})),...l.filter(h=>h.timing).map(h=>({order:h.raw.order,media:h}))].sort((h,f)=>h.order-f.order),c=-1,u=[];for(let h of a)(h.step?h.step.trigger===\"click\"||c<0:c<0||N(w(w(h.media.raw.element,\"cMediaNode\"),\"cTn\"),\"nodeType\")===\"clickEffect\")&&c++,h.step?h.step.clickGroup=c:(h.media.timing.clickGroup=c,u.push(h.media.timing));return n.push(...a.filter(h=>h.step).map(h=>h.step)),{animations:n,media:u,readonly:o}}function $f(e,t=0,r=0){let n=Zh(e),o=yf(n.timing,t,r);return{...o,readonly:n.readonly||o.readonly}}function Mf(e,t,r){let n=Bl(e);if(n===null)return null;let o=N(e,\"presetClass\")??\"entr\",i=o===\"mediacall\"?Yl(e):null;if(o===\"mediacall\"&&!i)return null;let s=mf[o]??\"entrance\",l=U(e,\"presetID\")??10,a=U(e,\"presetSubtype\")??0,c=N(e,\"nodeType\")??\"clickEffect\",u=Vl(e),{effect:h,dir:f}=si(l,a,u??void 0),m=c===\"withEffect\"?\"withPrev\":c===\"afterEffect\"?\"afterPrev\":\"click\",d=U(e,\"dur\")??Wl(e)??500,p=s===\"motion\"?Dl(e):null,b=p&&t>0&&r>0?gf(p,t,r):void 0,v=Hl(e),x=Gl(e),M=Xl(e);return{target:n,effect:h,dir:f,delayMs:xf(e),durationMs:i?Math.max(0,d):Math.max(60,Math.min(1e4,d)),trigger:m,kind:s,motionPath:b,...x?{scale:x}:{},...M?{rotation:M}:{},...i?{mediaCommand:i}:{},...v?{paragraphRange:v}:{}}}var Po=e=>e*Math.PI/180,Ye=6e4;function ql(e,t){let r=Math.min(e,t),n={l:0,t:0,r:e,b:t,w:e,h:t,hc:e/2,vc:t/2,ls:Math.max(e,t),ss:r,cd2:180*Ye,cd4:90*Ye,cd8:45*Ye,\"3cd4\":270*Ye,\"3cd8\":135*Ye,\"5cd8\":225*Ye,\"7cd8\":315*Ye};for(let o of[2,3,4,5,6,8,10,32])n[`hd${o}`]=t/o,n[`wd${o}`]=e/o;for(let o of[2,4,6,8,16,32])n[`ssd${o}`]=r/o;return n}function xr(e,t){if(e===null)return 0;if(Object.prototype.hasOwnProperty.call(t,e))return t[e];let r=Number(e);return Number.isFinite(r)?r:0}function kf(e,t){let[r,...n]=e.trim().split(/\\s+/),o=xr(n[0]??\"0\",t),i=xr(n[1]??\"0\",t),s=xr(n[2]??\"0\",t),l;switch(r){case\"*/\":l=s===0?0:o*i/s;break;case\"+-\":l=o+i-s;break;case\"+/\":l=s===0?0:(o+i)/s;break;case\"?:\":l=o>0?i:s;break;case\"abs\":l=Math.abs(o);break;case\"at2\":l=Math.atan2(i,o)*180*Ye/Math.PI;break;case\"cat2\":l=o*Math.cos(Math.atan2(s,i));break;case\"cos\":l=o*Math.cos(Po(i/Ye));break;case\"max\":l=Math.max(o,i);break;case\"min\":l=Math.min(o,i);break;case\"mod\":l=Math.sqrt(o*o+i*i+s*s);break;case\"pin\":l=i<o?o:i>s?s:i;break;case\"sat2\":l=o*Math.sin(Math.atan2(s,i));break;case\"sin\":l=o*Math.sin(Po(i/Ye));break;case\"sqrt\":l=Math.sqrt(Math.max(o,0));break;case\"tan\":l=o*Math.tan(Po(i/Ye));break;case\"val\":l=o;break;default:l=0}return Number.isFinite(l)?l:0}function Mr(e,t,r=new Set){for(let[n,o]of e)r.has(n)||(t[n]=kf(o,t));return t}function Zo(e){let t={};for(let r of Q(e,\"gd\")){let n=N(r,\"name\"),o=N(r,\"fmla\");if(n&&o!=null&&o.startsWith(\"val \")){let i=Number(o.slice(4));Number.isFinite(i)&&(t[n]=i)}}return t}function kr(e){return Q(e,\"gd\").flatMap(t=>{let r=N(t,\"name\"),n=N(t,\"fmla\");return r&&n?[[r,n]]:[]})}var Js=e=>e.map(([t,r])=>({name:t,formula:r}));function Cf(e,t,r){let n=kr(w(e,\"avLst\")),o=kr(w(e,\"gdLst\")),i=Js(n),s=Js(o),l=Q(w(e,\"pathLst\"),\"path\").map((a,c)=>{let u=U(a,\"w\")||t*9525,h=U(a,\"h\")||r*9525,f=ql(u,h);Mr(n,f),Mr(o,f);let m=x=>{let M=x??\"0\",S=M in f?f[M]:Number(M);return{expression:M,value:Number.isFinite(S)?S:0}},d=(x,M,S)=>({id:M,role:S,x:m(N(x??null,\"x\")),y:m(N(x??null,\"y\"))}),p=[],b=!1,v=[];for(let x=a.firstElementChild;x;x=x.nextElementSibling)[\"moveTo\",\"lnTo\",\"cubicBezTo\",\"quadBezTo\",\"arcTo\",\"close\"].includes(x.localName)&&v.push(x);return v.forEach((x,M)=>{let S=p.length,y=`p${c}-c${S}`,$=Q(x,\"pt\");if(x.localName===\"moveTo\"||x.localName===\"lnTo\"){let k=d($[0],`${y}-a`,\"anchor\");p.push({id:y,type:x.localName===\"moveTo\"?\"move\":\"line\",points:[k]})}else if(x.localName===\"cubicBezTo\"){let k=[d($[0],`${y}-c0`,\"control\"),d($[1],`${y}-c1`,\"control\"),d($[2],`${y}-a`,\"anchor\")];p.push({id:y,type:\"cubic\",points:k})}else if(x.localName===\"quadBezTo\"){let k=[d($[0],`${y}-c0`,\"control\"),d($[1],`${y}-a`,\"anchor\")];p.push({id:y,type:\"quadratic\",points:k})}else x.localName===\"arcTo\"?p.push({id:y,type:\"arc\",points:[],widthRadius:m(N(x,\"wR\")),heightRadius:m(N(x,\"hR\")),startAngle:m(N(x,\"stAng\")),sweepAngle:m(N(x,\"swAng\"))}):x.localName===\"close\"&&(M===v.length-1?b=!0:p.push({id:y,type:\"close\",points:[]}))}),{id:`p${c}`,width:u,height:h,fill:N(a,\"fill\")??\"norm\",stroke:![\"0\",\"false\"].includes(N(a,\"stroke\")??\"1\"),extrusionOk:![\"0\",\"false\"].includes(N(a,\"extrusionOk\")??\"1\"),closed:b,commands:p}});return{adjustments:i,guides:s,paths:l}}function Zl(e,t,r){let n=Q(w(e,\"pathLst\"),\"path\");if(!n.length)return null;let o=kr(w(e,\"avLst\")),i=kr(w(e,\"gdLst\")),s=[],l=!1,a=!1;for(let u of n){let h=U(u,\"w\")||0,f=U(u,\"h\")||0,m=h||t*9525,d=f||r*9525,p=ql(m,d);Mr(o,p),Mr(i,p);let b=m?t/m:1,v=d?r/d:1,x=L=>xr(L,p),M=L=>[x(N(L,\"x\"))*b,x(N(L,\"y\"))*v];(N(u,\"fill\")??\"norm\")!==\"none\"&&(l=!0);let S=N(u,\"stroke\");S!==\"0\"&&S!==\"false\"&&(a=!0);let y=0,$=0,k=0,A=0;for(let L=u.firstElementChild;L;L=L.nextElementSibling){let P=Q(L,\"pt\");switch(L.localName){case\"moveTo\":[y,$]=M(P[0]),[k,A]=[y,$],s.push(`M ${g(y)} ${g($)}`);break;case\"lnTo\":[y,$]=M(P[0]),s.push(`L ${g(y)} ${g($)}`);break;case\"cubicBezTo\":{let[E,T]=M(P[0]),[I,O]=M(P[1]);[y,$]=M(P[2]),s.push(`C ${g(E)} ${g(T)} ${g(I)} ${g(O)} ${g(y)} ${g($)}`);break}case\"quadBezTo\":{let[E,T]=M(P[0]);[y,$]=M(P[1]),s.push(`Q ${g(E)} ${g(T)} ${g(y)} ${g($)}`);break}case\"arcTo\":{let E=x(N(L,\"wR\"))*b,T=x(N(L,\"hR\"))*v,I=x(N(L,\"stAng\"))/Ye,O=x(N(L,\"swAng\"))/Ye,R=y-E*Math.cos(tn(I)),z=$-T*Math.sin(tn(I)),j=Math.max(1,Math.ceil(Math.abs(O)/180));for(let F=0;F<j;F++){let W=O/j,[V,B]=xe(R,z,E,T,I+W*(F+1));s.push(`A ${g(E)} ${g(T)} 0 ${Math.abs(W)>180?1:0} ${W>=0?1:0} ${g(V)} ${g(B)}`),y=V,$=B}break}case\"close\":s.push(\"Z\"),[y,$]=[k,A];break}}}let c=s.join(\" \");return c.trim()?{d:c,open:!l&&a}:null}var el=2048;function ci(e){if(e.length>el||/[\\u0000-\\u001f\\u007f]/.test(e))return null;let t;try{t=new URL(e)}catch{return null}return t.protocol!==\"http:\"&&t.protocol!==\"https:\"&&t.protocol!==\"mailto:\"||t.username||t.password||(t.protocol===\"http:\"||t.protocol===\"https:\")&&!t.hostname?null:t.href.length<=el?t:null}var Sf=[\"dk1\",\"lt1\",\"dk2\",\"lt2\",\"accent1\",\"accent2\",\"accent3\",\"accent4\",\"accent5\",\"accent6\",\"hlink\",\"folHlink\"],tl=1.2,Ef=Object.freeze([\"none\",\"words\",\"sng\",\"dbl\",\"heavy\",\"dotted\",\"dottedHeavy\",\"dash\",\"dashHeavy\",\"dashLong\",\"dashLongHeavy\",\"dotDash\",\"dotDashHeavy\",\"dotDotDash\",\"dotDotDashHeavy\",\"wavy\",\"wavyHeavy\",\"wavyDbl\"]),Tf=Object.freeze([\"noStrike\",\"sngStrike\",\"dblStrike\"]),Xb=Object.freeze([\"none\",\"all\",\"small\"]);function Xe(e,t){let r=w(e,t);return r?N(r,\"val\"):null}function Lf(e){if(!e)return\"\";let t=\"\";for(let r of Q(e,\"t\"))t+=r.textContent??\"\";return t}function vr(e,t=12){let r=\"\";for(let n=e.firstElementChild;n;n=n.nextElementSibling)n.localName===\"t\"?r+=n.textContent??\"\":t>0&&(r+=vr(n,t-1));return r}function me(e,t,r){let n=w(e,t);return n?Bt(n,r):[]}function Bt(e,t){let r=[];for(let n=e.firstElementChild;n;n=n.nextElementSibling){let o=Af(n,t);o&&r.push(...o)}return r}function Af(e,t){if(t<=0){let n=vr(e);return n?[{kind:\"run\",text:n}]:null}let r=t-1;switch(e.localName){case\"r\":{let n=Lf(e);if(!n)return null;let o=Xe(w(e,\"rPr\"),\"sty\");return[{kind:\"run\",text:n,sty:o===\"p\"||o===\"b\"||o===\"bi\"?o:\"i\"}]}case\"f\":{let n=Xe(w(e,\"fPr\"),\"type\");return[{kind:\"frac\",num:me(e,\"num\",r),den:me(e,\"den\",r),type:n===\"noBar\"||n===\"skw\"||n===\"lin\"?n:\"bar\"}]}case\"rad\":{let n=Xe(w(e,\"radPr\"),\"degHide\");return[{kind:\"rad\",deg:n===\"1\"||n===\"on\"||n===\"true\"?[]:me(e,\"deg\",r),base:me(e,\"e\",r)}]}case\"sSup\":return[{kind:\"script\",base:me(e,\"e\",r),sup:me(e,\"sup\",r)}];case\"sSub\":return[{kind:\"script\",base:me(e,\"e\",r),sub:me(e,\"sub\",r)}];case\"sSubSup\":return[{kind:\"script\",base:me(e,\"e\",r),sub:me(e,\"sub\",r),sup:me(e,\"sup\",r)}];case\"sPre\":return[{kind:\"script\",base:[],sub:me(e,\"sub\",r),sup:me(e,\"sup\",r)},...me(e,\"e\",r)];case\"nary\":{let n=w(e,\"naryPr\"),o=Xe(n,\"limLoc\"),i=Xe(n,\"chr\")??\"\\u222B\",s=Xe(n,\"subHide\")===\"1\",l=Xe(n,\"supHide\")===\"1\";return[{kind:\"nary\",chr:i,sub:s?[]:me(e,\"sub\",r),sup:l?[]:me(e,\"sup\",r),base:me(e,\"e\",r),underOver:o?o===\"undOvr\":i!==\"\\u222B\"&&i!==\"\\u222E\"&&i!==\"\\u222C\"&&i!==\"\\u222D\"}]}case\"d\":{let n=w(e,\"dPr\"),o=Q(e,\"e\").map(i=>Bt(i,r));return[{kind:\"delim\",beg:Xe(n,\"begChr\")??\"(\",end:Xe(n,\"endChr\")??\")\",sep:Xe(n,\"sepChr\")??\",\",items:o.length?o:[[]]}]}case\"m\":return[{kind:\"matrix\",rows:Q(e,\"mr\").map(n=>Q(n,\"e\").map(o=>Bt(o,r)))}];case\"acc\":return[{kind:\"acc\",chr:Xe(w(e,\"accPr\"),\"chr\")??\"\\u0302\",base:me(e,\"e\",r)}];case\"bar\":{let n=Xe(w(e,\"barPr\"),\"pos\");return[{kind:\"acc\",chr:\"\\u0305\",base:me(e,\"e\",r),below:n===\"bot\"}]}case\"groupChr\":{let n=w(e,\"groupChrPr\"),o=Xe(n,\"pos\");return[{kind:\"acc\",chr:Xe(n,\"chr\")??\"\\u23DF\",base:me(e,\"e\",r),below:o!==\"top\"}]}case\"limLow\":return[{kind:\"lim\",base:me(e,\"e\",r),limit:me(e,\"lim\",r),below:!0}];case\"limUpp\":return[{kind:\"lim\",base:me(e,\"e\",r),limit:me(e,\"lim\",r),below:!1}];case\"func\":return[...me(e,\"fName\",r),{kind:\"run\",text:\"\\u2009\"},...me(e,\"e\",r)];case\"eqArr\":return[{kind:\"stack\",rows:Q(e,\"e\").map(n=>Bt(n,r))}];case\"box\":case\"borderBox\":case\"e\":case\"oMath\":return Bt(e,r);case\"phant\":return[{kind:\"run\",text:\" \".repeat(Math.max(1,vr(e).length)),sty:\"p\"}];case\"rPr\":case\"ctrlPr\":case\"argPr\":case\"fPr\":case\"radPr\":case\"naryPr\":case\"dPr\":case\"mPr\":case\"accPr\":case\"barPr\":case\"groupChrPr\":case\"limLowPr\":case\"limUppPr\":case\"funcPr\":case\"eqArrPr\":case\"boxPr\":case\"phantPr\":case\"sSupPr\":case\"sSubPr\":case\"sSubSupPr\":case\"sPrePr\":return null;default:{let n=Bt(e,r);if(n.length)return n;let o=vr(e);return o?[{kind:\"run\",text:o}]:null}}}function Pf(e){if(e.localName===\"oMathPara\"){let t=Q(e,\"oMath\").map(r=>Bt(r,16));return t.length>1?[{kind:\"stack\",rows:t}]:t[0]??[]}return Bt(e,16)}function Oe(e){var t,r;let n=\"\";for(let o of e)switch(o.kind){case\"run\":n+=o.text;break;case\"frac\":n+=`${Oe(o.num)}/${Oe(o.den)}`;break;case\"rad\":n+=`\\u221A(${Oe(o.base)})`;break;case\"script\":n+=Oe(o.base),(t=o.sub)!=null&&t.length&&(n+=`_${Oe(o.sub)}`),(r=o.sup)!=null&&r.length&&(n+=`^${Oe(o.sup)}`);break;case\"nary\":n+=o.chr,o.sub.length&&(n+=`_${Oe(o.sub)}`),o.sup.length&&(n+=`^${Oe(o.sup)}`),n+=Oe(o.base);break;case\"delim\":n+=o.beg+o.items.map(i=>Oe(i)).join(o.sep)+o.end;break;case\"matrix\":n+=o.rows.map(i=>i.map(s=>Oe(s)).join(\" \")).join(\"; \");break;case\"acc\":n+=Oe(o.base)+o.chr;break;case\"lim\":n+=`${Oe(o.base)}(${Oe(o.limit)})`;break;case\"stack\":n+=o.rows.map(i=>Oe(i)).join(\" \");break}return n}var If={l:\"left\",ctr:\"center\",r:\"right\",just:\"justify\",dist:\"justify\"};function _o(e,t){let r={...e,...t,rp:{...e.rp,...t.rp}};return t.lnPct!==void 0&&delete r.lnPx,t.lnPx!==void 0&&delete r.lnPct,t.buSizePct!==void 0&&delete r.buSizePts,t.buSizePts!==void 0&&delete r.buSizePct,r}function _l(e,t){let r={rp:{}};for(let n of e){n.def&&(r=_o(r,n.def));let o=n.lvls[t];o&&(r=_o(r,o))}return r}function nl(e,t,r){let n=e.lnPct!==void 0?e.lnPct*tl:null;return n===null&&e.lnPx&&(n=e.lnPx/t),r&&(n=Math.max(.5,(n??tl)-r)),{align:If[e.algn??\"l\"]??\"left\",lineHeight:n,spaceBefore:e.spcBef??0,spaceAfter:e.spcAft??0,marginLeft:e.marL??0,indent:e.indent??0}}function Nf(e){return{...e.lvl!==void 0?{level:!0}:{},...e.algn!==void 0?{align:!0}:{},...e.lnPct!==void 0||e.lnPx!==void 0?{lineHeight:!0}:{},...e.spcBef!==void 0?{spaceBefore:!0}:{},...e.spcAft!==void 0?{spaceAfter:!0}:{},...e.marL!==void 0?{marginLeft:!0}:{},...e.indent!==void 0?{indent:!0}:{}}}function rl(e){let t=\"\",r=e;for(;r>0;)t=String.fromCharCode(65+(r-1)%26)+t,r=Math.floor((r-1)/26);return t}function ol(e){let t=[[1e3,\"M\"],[900,\"CM\"],[500,\"D\"],[400,\"CD\"],[100,\"C\"],[90,\"XC\"],[50,\"L\"],[40,\"XL\"],[10,\"X\"],[9,\"IX\"],[5,\"V\"],[4,\"IV\"],[1,\"I\"]],r=\"\",n=e;for(let[o,i]of t)for(;n>=o;)r+=i,n-=o;return r}function Rf(e,t){let r;return e.startsWith(\"alphaLc\")?r=rl(t).toLowerCase():e.startsWith(\"alphaUc\")?r=rl(t):e.startsWith(\"romanLc\")?r=ol(t).toLowerCase():e.startsWith(\"romanUc\")?r=ol(t):e.startsWith(\"circleNum\")?r=t>=1&&t<=20?String.fromCharCode(9312+t-1):String(t):r=String(t),e.endsWith(\"ParenBoth\")?`(${r})`:e.endsWith(\"ParenR\")?`${r})`:e.endsWith(\"Period\")?`${r}.`:r}var Of={\"\\uF0A7\":\"\\u25AA\",\"\\uF0B7\":\"\\u2022\",\"\\uF0D8\":\"\\u27A2\",\"\\uF0FC\":\"\\u2713\",\"\\uF06C\":\"\\u25CF\",\"\\uF075\":\"\\u25C6\",\"\\uF0A8\":\"\\u25A1\",\"\\uF076\":\"\\u2756\",\"\\xA7\":\"\\u25AA\",n:\"\\u25AA\",l:\"\\u25CF\",u:\"\\u25C6\",p:\"\\u2751\",v:\"\\u2756\",w:\"\\u2666\",\\u00D8:\"\\u27A2\",\\u00FC:\"\\u2713\",F:\"\\u261E\",q:\"\\u2751\"};function zf(e,t,r){return(!e||e.kind!==\"auto\")&&(t.length=r+1,delete t[r]),!e||e.kind===\"none\"||e.kind===\"image\"?null:e.kind===\"char\"?Of[e.char]||(e.font&&/wingdings|webdings|symbol/i.test(e.font)?\"\\u2022\":e.char):(t.length=r+1,t[r]=(t[r]??e.startAt-1)+1,Rf(e.scheme,t[r]))}function il(e,t){let r=e.bullet;if(!r||r.kind===\"none\")return{kind:\"none\"};let n={...e.buColor!==void 0?{color:e.buColor}:{},...e.buFont!==void 0?{font:e.buFont}:{},...e.buSizePts!==void 0?{size:{kind:\"points\",value:e.buSizePts*.75}}:e.buSizePct!==void 0?{size:e.buSizePct===null?null:{kind:\"percent\",value:e.buSizePct}}:{}};return r.kind===\"char\"?{kind:\"char\",char:r.char,...r.font&&n.font===void 0?{font:r.font}:{},...n}:r.kind===\"auto\"?{kind:\"autoNum\",type:r.scheme,startAt:r.startAt,...n}:{kind:\"image\",rid:r.rid,src:t?.(r.rid)??null,...n}}function Ff(e){let t=0;return e.bullet!==void 0&&(t|=Nn.bullet),e.buColor!==void 0&&(t|=Nn.bulletColor),e.buFont!==void 0&&(t|=Nn.bulletFont),(e.buSizePct!==void 0||e.buSizePts!==void 0)&&(t|=Nn.bulletSize),e.rtl!==void 0&&(t|=Nn.rtl),t}function Kl(e){var t,r;let{lvl:n,resolved:o,inherited:i,direct:s,directRun:l,runs:a,counters:c,lnSpcReduction:u,env:h}=e,f=Math.max(...a.map(p=>p.size),1),m=nl(o,f,u),d=((t=o.bullet)==null?void 0:t.kind)===\"image\"&&h.resolveImage?h.resolveImage(o.bullet.rid):null;return{align:m.align,lvl:n,marL:m.marginLeft,indent:m.indent,bullet:zf(o.bullet,c,n),lineHeight:m.lineHeight,spaceBefore:m.spaceBefore,spaceAfter:m.spaceAfter,runs:a,bulletColor:o.buColor??null,bulletFont:o.buFont??null,bulletSize:o.buSizePts!==void 0?o.buSizePts/f:o.buSizePct??null,bulletImage:d,rtl:o.rtl,...h.edit?{editInfo:{inheritedParagraphProps:{level:0,...nl(i,f,u)},directParagraphProps:Nf(s),directRun:l,directLayout:Ff(s),...((r=o.bullet)==null?void 0:r.kind)===\"auto\"?{autoNumbering:{scheme:o.bullet.scheme,startAt:o.bullet.startAt}}:{},bullet:il(o,h.resolveImage),inheritedBullet:il(i,h.resolveImage)}}:{}}}var Ut={anchor:1,insets:2,wrap:4,vert:8,anchorCtr:16,columns:32,columnGap:64,autoFit:128},jf={horz:\"horz\",vert:\"vert\",vert270:\"vert270\",wordArtVert:\"wordArtVert\",eaVert:\"vert\",mongolianVert:\"vert\"};function rn(e,t){for(let r of e){let n=N(r,t);if(n!==null)return n}return null}function Uf(e){for(let t of e){if(!t)continue;let r=w(t,\"noAutofit\")??w(t,\"normAutofit\")??w(t,\"spAutoFit\");if(r)return r}return null}function sl(e){let t=rn(e,\"anchor\")??\"t\",r=(u,h)=>{let f=rn(e,u);return ie(f===null?h:Number(f))},n=Uf(e),o=n?.localName===\"normAutofit\",i=n?.localName===\"spAutoFit\",s=o?U(n,\"fontScale\"):null,l=Number(rn(e,\"numCol\")??\"1\"),a=Number(rn(e,\"spcCol\")??\"0\"),c=jf[rn(e,\"vert\")??\"horz\"];return{anchor:t===\"ctr\"?\"middle\":t===\"b\"?\"bottom\":\"top\",insets:[r(\"tIns\",45720),r(\"rIns\",91440),r(\"bIns\",45720),r(\"lIns\",91440)],wrap:rn(e,\"wrap\")!==\"none\",fontScale:s!=null?s/1e5:1,...o?{autoFitNormal:!0}:{},...o&&s==null?{autoFitCompute:!0}:{},...o&&(U(n,\"lnSpcReduction\")??0)?{lnSpcReduction:(U(n,\"lnSpcReduction\")??0)/1e5}:{},...i?{autoFitShape:!0}:{},...c!==\"horz\"?{vert:c}:{},...rn(e,\"anchorCtr\")===\"1\"?{anchorCtr:!0}:{},...l>1?{columns:l}:{},...Number.isFinite(a)&&a!==0?{columnGap:ie(a)}:{}}}function Df(e){if(!e)return 0;let t=0;return N(e,\"anchor\")!==null&&(t|=Ut.anchor),[\"tIns\",\"rIns\",\"bIns\",\"lIns\"].some(r=>N(e,r)!==null)&&(t|=Ut.insets),N(e,\"wrap\")!==null&&(t|=Ut.wrap),N(e,\"vert\")!==null&&(t|=Ut.vert),N(e,\"anchorCtr\")!==null&&(t|=Ut.anchorCtr),N(e,\"numCol\")!==null&&(t|=Ut.columns),N(e,\"spcCol\")!==null&&(t|=Ut.columnGap),(w(e,\"noAutofit\")||w(e,\"normAutofit\")||w(e,\"spAutoFit\"))&&(t|=Ut.autoFit),t}function Bf(e,t){return{latin:e.latin??t.fonts.minor.latin,eastAsian:e.ea??t.fonts.minor.ea,complexScript:e.cs??t.fonts.minor.cs??null}}function Hf(e){let t=e.u??\"none\",r=e.strike??\"noStrike\";return{u:t!==\"none\",strike:r!==\"noStrike\",...t!==\"none\"?{underline:t}:{},...r!==\"noStrike\"?{strikeType:r}:{}}}function ll(e,t,r){var n;let o=Bf(e,t);return{fontSlots:o,props:{b:e.b??!1,i:e.i??!1,...Hf(e),size:gn(e.sz??1800),color:e.color??t.defaultColor??\"rgb(0,0,0)\",fonts:Hh(o,r),baseline:e.baseline||void 0,spacing:e.spc||void 0,caps:e.caps&&e.caps!==\"none\"?e.caps:void 0,outline:e.outline??null,gradient:e.gradient??null,highlight:e.highlight??null,underlineColor:e.uColor??null,...e.gradientFill!==void 0?{gradientFill:e.gradientFill}:{},...e.shadowEffect!==void 0?{shadow:e.shadow,shadowEffect:e.shadowEffect}:{},...(n=e.generationIssues)!=null&&n.length?{generationIssues:e.generationIssues}:{}}}}function On(e,t,r,n,o=0){let i=ll(t,r,e),s=r.edit&&n?ll(n,r,e):null;return{text:e,...i.props,link:t.link,...s?{editInfo:{inheritedRunProps:s.props,inheritedFontSlots:s.fontSlots,direct:o,fontSlots:i.fontSlots}}:{}}}function Wf(e,t){var r;if(!e)return{};let n={},o=[],i=w(e,\"gradFill\");if(i){(N(i,\"rotWithShape\")===\"0\"||N(i,\"rotWithShape\")===\"false\"||N(i,\"flip\")!==null)&&o.push(\"\\u6587\\u5B57\\u6E10\\u53D8\\u65CB\\u8F6C/\\u7FFB\\u8F6C\");let c=w(i,\"lin\");!c||w(i,\"path\")||w(i,\"tileRect\")?o.push(\"\\u6587\\u5B57\\u6E10\\u53D8\\u8DEF\\u5F84/\\u5E73\\u94FA\\u8303\\u56F4\"):n.gradientFill={angle:(U(c,\"ang\")??0)/6e4,scaled:ye(c,\"scaled\")??!1,stops:Q(w(i,\"gsLst\"),\"gs\").map(u=>({pos:(U(u,\"pos\")??0)/1e5,color:ge(u,t)??\"#000000\"})).sort((u,h)=>u.pos-h.pos)}}else[\"solidFill\",\"noFill\",\"blipFill\",\"pattFill\",\"grpFill\"].some(c=>w(e,c))&&(n.gradientFill=null);for(let c of[\"blipFill\",\"pattFill\",\"grpFill\",\"effectDag\",\"uLn\",\"uLnTx\"])w(e,c)&&o.push(`\\u6587\\u5B57 ${c}`);let s=w(e,\"ln\");if(s){for(let c of Array.from(s.children))[\"solidFill\",\"noFill\"].includes(c.localName)||o.push(`\\u6587\\u5B57\\u63CF\\u8FB9 ${c.localName}`);for(let c of[\"cap\",\"cmpd\",\"algn\"])N(s,c)!==null&&o.push(`\\u6587\\u5B57\\u63CF\\u8FB9 ${c}`)}let l=w(e,\"uFill\");l&&!w(l,\"solidFill\")&&o.push(\"\\u4E0B\\u5212\\u7EBF\\u975E\\u7EAF\\u8272\\u586B\\u5145\");let a=w(e,\"effectLst\");if(a){let c=(r=vn(a,t))==null?void 0:r.shadow;n.shadowEffect=c??null,n.shadow=c?`${c.dx}px ${c.dy}px ${c.blur}px ${c.color}`:null,a.children.length>1&&o.push(\"\\u591A\\u91CD\\u6587\\u5B57\\u6548\\u679C\");for(let u of Array.from(a.children)){u.localName!==\"outerShdw\"&&o.push(`\\u6587\\u5B57\\u6548\\u679C ${u.localName}`);for(let[h,f]of[[\"sx\",\"100000\"],[\"sy\",\"100000\"],[\"kx\",\"0\"],[\"ky\",\"0\"],[\"algn\",\"b\"],[\"rotWithShape\",\"1\"]]){let m=N(u,h);m!==null&&m!==f&&o.push(`\\u6587\\u5B57\\u9634\\u5F71 ${h}`)}}}return o.length&&(n.generationIssues=o),n}var Vf=new Set([\"oMathPara\",\"oMath\",\"r\",\"t\",\"f\",\"num\",\"den\",\"rad\",\"deg\",\"e\",\"sSup\",\"sSub\",\"sSubSup\",\"sup\",\"sub\",\"nary\",\"d\",\"m\",\"mr\",\"acc\",\"bar\",\"groupChr\",\"limLow\",\"limUpp\",\"lim\",\"eqArr\",\"rPr\",\"fPr\",\"radPr\",\"naryPr\",\"dPr\",\"mPr\",\"accPr\",\"barPr\",\"groupChrPr\",\"limLowPr\",\"limUppPr\",\"eqArrPr\",\"sSupPr\",\"sSubPr\",\"sSubSupPr\",\"sty\",\"type\",\"degHide\",\"chr\",\"limLoc\",\"subHide\",\"supHide\",\"begChr\",\"endChr\",\"sepChr\",\"pos\"]),al=\"http://schemas.openxmlformats.org/officeDocument/2006/math\",Gf=new Set([\"sty\",\"type\",\"degHide\",\"chr\",\"limLoc\",\"subHide\",\"supHide\",\"begChr\",\"endChr\",\"sepChr\",\"pos\"]);function Xf(e){let t=new Set,r=(n,o)=>{var i;if(o>16){t.add(\"\\u516C\\u5F0F\\u8D85\\u51FA\\u89E3\\u6790\\u6DF1\\u5EA6\");return}(n.namespaceURI!==al||!Vf.has(n.localName))&&t.add(`\\u516C\\u5F0F ${n.tagName}`);for(let l of Array.from(n.attributes)){let a=l.namespaceURI;a!==\"http://www.w3.org/2000/xmlns/\"&&(n.localName===\"t\"&&l.name===\"xml:space\"||Gf.has(n.localName)&&l.localName===\"val\"&&(!a||a===al)||t.add(`\\u516C\\u5F0F\\u5C5E\\u6027 ${n.tagName}@${l.name}`))}let s=n.localName===\"rad\"?[[\"radPr\",\"degHide\",\"deg\"]]:n.localName===\"nary\"?[[\"naryPr\",\"subHide\",\"sub\"],[\"naryPr\",\"supHide\",\"sup\"]]:[];for(let[l,a,c]of s){let u=w(w(n,l),a);u&&![\"0\",\"false\",\"off\"].includes(N(u,\"val\")??\"\")&&(i=w(n,c))!=null&&i.children.length&&t.add(`\\u516C\\u5F0F\\u9690\\u85CF\\u53C2\\u6570 ${c}`)}for(let l of Array.from(n.children))r(l,o+1)};return r(e,0),[...t]}function Ht(e,t,r){let n={lvls:[]};if(!e)return n;let o=w(e,\"defPPr\");o&&(n.def=cl(o,t,r));for(let i=1;i<=9;i++){let s=w(e,`lvl${i}pPr`);s&&(n.lvls[i-1]=cl(s,t,r))}return n}function cl(e,t,r){return Ql(e,t,r).props}function Ql(e,t,r){let n={rp:{}};if(!e)return{props:n,directRun:0};let o=U(e,\"lvl\");o!==null&&(n.lvl=o);let i=N(e,\"algn\");i&&(n.algn=i);let s=U(e,\"marL\");s!==null&&(n.marL=ie(s));let l=U(e,\"indent\");l!==null&&(n.indent=ie(l)),N(e,\"rtl\")!==null&&(n.rtl=ye(e,\"rtl\"));let a=w(e,\"lnSpc\"),c=U(w(a,\"spcPct\"),\"val\");c!==null&&(n.lnPct=c/1e5);let u=U(w(a,\"spcPts\"),\"val\");u!==null&&(n.lnPx=gn(u));let h=U(w(w(e,\"spcBef\"),\"spcPts\"),\"val\");h!==null&&(n.spcBef=gn(h));let f=U(w(w(e,\"spcAft\"),\"spcPts\"),\"val\");f!==null&&(n.spcAft=gn(f)),w(e,\"buNone\")&&(n.bullet={kind:\"none\"});let m=w(e,\"buChar\");m&&(n.bullet={kind:\"char\",char:N(m,\"char\")??\"\\u2022\",font:N(w(e,\"buFont\"),\"typeface\")});let d=w(e,\"buAutoNum\");d&&(n.bullet={kind:\"auto\",scheme:N(d,\"type\")??\"arabicPeriod\",startAt:U(d,\"startAt\")??1});let p=w(w(e,\"buBlip\"),\"blip\");if(p){let y=N(p,\"r:embed\");y&&(n.bullet={kind:\"image\",rid:y})}let b=w(e,\"buClr\");b?n.buColor=ge(b,t)??null:w(e,\"buClrTx\")&&(n.buColor=null);let v=w(e,\"buFont\");v?n.buFont=N(v,\"typeface\"):w(e,\"buFontTx\")&&(n.buFont=null);let x=U(w(e,\"buSzPct\"),\"val\");if(x!==null)n.buSizePct=x/1e5;else{let y=U(w(e,\"buSzPts\"),\"val\");y!==null?n.buSizePts=gn(y):w(e,\"buSzTx\")&&(n.buSizePct=null)}let M=w(e,\"defRPr\"),S=wr(M,t,r);return n.rp=S.props,{props:n,directRun:S.direct}}function wr(e,t,r){let n={},o=0;if(!e)return{props:n,direct:o};let i=U(e,\"sz\");i!==null&&(n.sz=i,o|=Le.size),N(e,\"b\")!==null&&(n.b=ye(e,\"b\"),o|=Le.b),N(e,\"i\")!==null&&(n.i=ye(e,\"i\"),o|=Le.i);let s=N(e,\"u\");s!==null&&(n.u=Ef.includes(s)?s:\"sng\",o|=Le.u);let l=N(e,\"strike\");l!==null&&(n.strike=Tf.includes(l)?l:\"sngStrike\",o|=Le.strike);let a=U(e,\"baseline\");a!==null&&(n.baseline=a/1e3,o|=Le.baseline);let c=U(e,\"spc\");c!==null&&(n.spc=gn(c),o|=Le.spacing);let u=N(e,\"cap\");u&&(n.caps=u===\"all\"?\"all\":u===\"small\"?\"small\":\"none\",o|=Le.caps);let h=w(e,\"solidFill\"),f=ge(h,t);f&&(n.color=f),h&&(n.gradient=null);let m=w(e,\"gradFill\");if(m){let k=Q(w(m,\"gsLst\"),\"gs\").map(A=>({pos:(U(A,\"pos\")??0)/1e5,color:ge(A,t)??\"#000\"})).sort((A,L)=>A.pos-L.pos);if(k.length){let A=w(m,\"lin\"),L=A?(U(A,\"ang\")??0)/6e4+90:180;n.gradient=`linear-gradient(${Math.round(L)}deg,${k.map(P=>`${P.color} ${Math.round(P.pos*100)}%`).join(\",\")})`,n.color||(n.color=k[0].color)}}w(e,\"noFill\")&&(n.color=\"transparent\",n.gradient=null),(h||m||[\"noFill\",\"blipFill\",\"pattFill\",\"grpFill\"].some(k=>!!w(e,k)))&&(o|=Le.color|Le.gradient),!h&&!m&&[\"blipFill\",\"pattFill\",\"grpFill\"].some(k=>!!w(e,k))&&(n.color=\"transparent\",n.gradient=null);let d=ge(w(e,\"uFill\"),t)??ge(w(w(e,\"uFill\"),\"solidFill\"),t);d&&(n.uColor=d),(w(e,\"uFillTx\")||w(e,\"uFill\")&&!d)&&(n.uColor=null),(w(e,\"uFillTx\")||w(e,\"uFill\"))&&(o|=Le.underlineColor);let p=w(e,\"highlight\");p&&(n.highlight=ge(p,t)??null),p&&(o|=Le.highlight);let b=w(e,\"ln\");if(w(b,\"noFill\"))n.outline=null;else if(b){let k=ge(w(b,\"solidFill\"),t);k?n.outline={color:k,width:ie(U(b,\"w\")??9525)}:n.outline=null}b&&(o|=Le.outline);let v=w(e,\"latin\"),x=Io(N(v,\"typeface\"),r);x&&(n.latin=x),N(v,\"typeface\")!==null&&(o|=Le.fontLatin);let M=w(e,\"ea\"),S=Io(N(M,\"typeface\"),r);S&&(n.ea=S),N(M,\"typeface\")!==null&&(o|=Le.fontEastAsian);let y=w(e,\"cs\"),$=Io(N(y,\"typeface\"),r);return $&&(n.cs=$),N(y,\"typeface\")!==null&&(o|=Le.fontComplexScript),Object.assign(n,Wf(e,t)),{props:n,direct:o}}function Io(e,t){return e?e===\"+mj-lt\"?t.major.latin:e===\"+mj-ea\"?t.major.ea:e===\"+mj-cs\"?t.major.cs??t.major.latin:e===\"+mn-lt\"?t.minor.latin:e===\"+mn-ea\"?t.minor.ea:e===\"+mn-cs\"?t.minor.cs??t.minor.latin:e:null}var No=(e,t)=>({...e,...t});function Yf(e){for(let t of e){let r=w(t,\"prstTxWarp\");if(!r)continue;let n=N(r,\"prst\");if(!n||n===\"textNoShape\")return;let o={},i=[];for(let s of Q(w(r,\"avLst\"),\"gd\")){let l=N(s,\"name\"),a=N(s,\"fmla\")??\"\",c=Number(a.replace(/^val\\s+/,\"\"));l&&Number.isFinite(c)&&(o[l]=c),(!l||!/^val\\s+-?\\d+$/.test(a)||!Number.isSafeInteger(c))&&i.push(`\\u827A\\u672F\\u5B57\\u8C03\\u6574\\u503C ${l??\"(\\u65E0\\u540D)\"}\\uFF1A${a}`)}return{preset:n,adj:o,...i.length?{generationIssues:i}:{}}}}function Wt(e,t,r=!1){if(!e)return null;let n=w(e,\"bodyPr\"),o=[n,...t.bodyPrFallbacks??[]],i=sl(o),s=(t.bodyPrFallbacks??[]).some(Boolean),l=t.edit&&s?sl(o.slice(1)):void 0,a=[],c=[],u=!1;for(let h of Q(e,\"p\")){let f=w(h,\"pPr\"),m=U(f,\"lvl\")??0,d=_l(t.chain,m),p=Ql(f,t.ctx,t.fonts),b=p.props,v=_o(d,b),x=[],M=(S,y)=>{var $;for(let k=S.firstElementChild;k;k=k.nextElementSibling)if(k.localName===\"r\"||k.localName===\"fld\"){let A=w(k,\"rPr\"),L=wr(A,t.ctx,t.fonts),P=No(v.rp,L.props),E=w(A,\"hlinkClick\"),T=!1;if(E&&t.resolveLink){let R=t.resolveLink(N(E,\"r:id\")??\"\",N(E,\"action\"));R?P.link=R:T=!0}let I=(($=w(k,\"t\"))==null?void 0:$.textContent)??\"\";k.localName===\"fld\"&&!I&&(I=Zf(N(k,\"type\"),t));let O=On(I,P,t,v.rp,L.direct);t.edit&&T&&O.editInfo&&(O.editInfo={...O.editInfo,readonlyLink:!0}),x.push(k.localName===\"fld\"?{...O,field:N(k,\"type\")??\"unknown\"}:O),I.trim()&&(u=!0)}else if(k.localName===\"br\"){let A=w(k,\"rPr\"),L=wr(A,t.ctx,t.fonts),P=No(v.rp,L.props);x.push(On(`\n`,P,t,v.rp,L.direct))}else if(k.localName===\"m\"&&k.namespaceURI===\"http://schemas.microsoft.com/office/drawing/2010/main\")y>0&&M(k,y-1);else if(k.localName===\"AlternateContent\"){let A=w(k,\"Choice\")??w(k,\"Fallback\");A&&y>0&&M(A,y-1)}else if(k.localName===\"oMathPara\"||k.localName===\"oMath\"){let A=Pf(k),L=A.length?Oe(A):qf(k),P=Xf(k);if(A.length||L||P.length){let E=On(L,{...v.rp,i:!0},t,v.rp);A.length&&(E.math=A),P.length&&(E.generationIssues=[...E.generationIssues??[],...P]),x.push(E),u=!0}}else y>0&&(k.localName===\"Choice\"||k.localName===\"Fallback\")&&M(k,y-1)};if(M(h,4),x.length===0){let S=w(h,\"endParaRPr\"),y=wr(S,t.ctx,t.fonts);x.push(On(\"\",No(v.rp,y.props),t,v.rp,y.direct))}c.push(Kl({lvl:m,resolved:v,inherited:d,direct:b,directRun:p.directRun,runs:x,counters:a,lnSpcReduction:i.lnSpcReduction??0,env:t}))}return!u&&!r?null:{...i,paragraphs:c,warp:Yf(o),...t.edit?{editInfo:{direct:Df(n),...l?{inherited:l}:{}}}:{}}}function qf(e){let t=[],r=(n,o)=>{for(let i=n.firstElementChild;i;i=i.nextElementSibling)i.localName===\"t\"?t.push(i.textContent??\"\"):o>0&&r(i,o-1)};return r(e,12),t.join(\"\").trim()}function Zf(e,t){return e?e===\"slidenum\"?String(t.slideNum):e.startsWith(\"datetime\")?t.dateText??new Date().toLocaleDateString():e===\"footer\"?t.footerText??\"\":\"\":\"\"}function _f(e){return{...e,runs:e.runs.length?[{...e.runs[e.runs.length-1],text:\"\"}]:[]}}function Jl(e,t,r=!1){let n=new Map;if(r)for(let s of e.paragraphs)n.has(s.lvl)||n.set(s.lvl,_f(s));let o=[],i=Array.from({length:9},(s,l)=>{let a=n.get(l);if(a)return a;let c=_l(t.chain,l),u=On(\"\",c.rp,t,c.rp);return Kl({lvl:l,resolved:c,inherited:c,direct:{rp:{}},directRun:0,runs:[u],counters:o,lnSpcReduction:e.lnSpcReduction??0,env:t})});return{...e,paragraphs:i}}function Kf(e){let t=(N(e,\"uniqueId\")??\"\").toLowerCase();if(/orgchart|hierarchy/.test(t))return\"hierarchy\";if(/pyramid/.test(t))return\"pyramid\";if(/radial|cycle.*matrix/.test(t))return\"radial\";if(/cycle|gear/.test(t))return\"cycle\";if(/matrix|grid/.test(t))return\"snake\";let r=new Set,n=(o,i)=>{if(!(!o||i<0))for(let s=o.firstElementChild;s;s=s.nextElementSibling){if(s.localName===\"alg\"){let l=N(s,\"type\");l&&r.add(l)}n(s,i-1)}};return n(e,12),r.has(\"hierRoot\")||r.has(\"hierChild\")?\"hierarchy\":r.has(\"pyra\")?\"pyramid\":r.has(\"cycle\")?\"cycle\":r.has(\"snake\")?\"snake\":r.has(\"sp\")&&!r.has(\"lin\")?\"radial\":\"linear\"}function Qf(e){let t=(N(e,\"uniqueId\")??\"\").toLowerCase();if(/vlist|vertical|^.*\\/list1$/.test(t))return!0;let r=e?.getElementsByTagName(\"*\");for(let n=0;r&&n<r.length;n++)if(r[n].localName===\"param\"&&N(r[n],\"type\")===\"linDir\")return N(r[n],\"val\")===\"fromT\"||N(r[n],\"val\")===\"fromB\";return!1}function Jf(e){if(!e)return[];let t=e.localName===\"dataModel\"?e:w(e,\"dataModel\"),r=w(t,\"ptLst\"),n=w(t,\"cxnLst\");if(!r)return[];let o=new Map,i=null;for(let c of Q(r,\"pt\")){let u=N(c,\"modelId\");if(!u)continue;let h=N(c,\"type\")??\"node\";h===\"parTrans\"||h===\"sibTrans\"||h===\"pres\"||(h===\"doc\"&&(i=u),o.set(u,{id:u,txBody:w(c,\"t\"),kids:[]}))}for(let c of Q(n,\"cxn\")){if((N(c,\"type\")??\"parOf\")!==\"parOf\")continue;let u=N(c,\"srcId\"),h=N(c,\"destId\");if(!u||!h)continue;let f=o.get(u);!f||!o.has(h)||f.kids.push({id:h,ord:U(c,\"srcOrd\")??0})}let s=new Set,l=(c,u)=>{if(s.has(c)||u>12)return null;s.add(c);let h=o.get(c);return h?(h.kids.sort((f,m)=>f.ord-m.ord),{id:c,text:null,children:h.kids.map(f=>l(f.id,u+1)).filter(f=>f!==null),depth:u}):null};if(i){let c=l(i,-1);return c?c.children:[]}let a=new Set;for(let c of o.values())for(let u of c.kids)a.add(u.id);return[...o.keys()].filter(c=>!a.has(c)).map(c=>l(c,0)).filter(c=>c!==null)}function e0(e,t){let r=e?.localName===\"dataModel\"?e:w(e,\"dataModel\");for(let n of Q(w(r,\"ptLst\"),\"pt\"))if(N(n,\"modelId\")===t)return w(n,\"t\");return null}function t0(e){if(!e)return[];let t=[],r=Q(e,\"styleLbl\"),n=r.find(i=>(N(i,\"name\")??\"\").startsWith(\"node\"))??r[0],o=w(n??null,\"fillClrLst\");for(let i=o?.firstElementChild??null;i;i=i.nextElementSibling){let s=N(i,\"val\");s&&t.push(s)}return t}function n0(e){let t=[],r=n=>{for(let o of n)t.push(o),r(o.children)};return r(e),t}function r0(e,t,r,n){let o=e.length?e:[];if(!o.length)return[];let i=(n?r:t)*.04,s=o.length;if(n){let c=(r-i*(s-1))/s,u=Math.min(t,c*5);return o.map((h,f)=>({x:(t-u)/2,y:f*(c+i),w:u,h:c,pt:h,prst:\"roundRect\",colorIdx:f}))}let l=(t-i*(s-1))/s,a=Math.min(r,l*.8);return o.map((c,u)=>({x:u*(l+i),y:(r-a)/2,w:l,h:a,pt:c,prst:\"roundRect\",colorIdx:u}))}function o0(e,t,r){let n=e.length;if(!n)return[];let o=Math.min(t,r)*(n<=4?.34:.28),i=o*.62,s=(t-o)/2,l=(r-i)/2;return e.map((a,c)=>{let u=-Math.PI/2+c*2*Math.PI/n;return{x:t/2+s*Math.cos(u)-o/2,y:r/2+l*Math.sin(u)-i/2,w:o,h:i,pt:a,prst:\"ellipse\",colorIdx:c}})}function i0(e,t,r){let n=e.length;if(!n)return[];let o=r/n;return e.map((i,s)=>{let l=(s+1)/n*t;return{x:(t-l)/2,y:s*o,w:l,h:o*.94,pt:i,prst:\"trapezoid\",colorIdx:s}})}function s0(e,t,r){let n=e.length;if(!n)return[];let o=Math.ceil(Math.sqrt(n)),i=Math.ceil(n/o),s=t*.03,l=r*.05,a=(t-s*(o-1))/o,c=(r-l*(i-1))/i;return e.map((u,h)=>({x:h%o*(a+s),y:Math.floor(h/o)*(c+l),w:a,h:c,pt:u,prst:\"roundRect\",colorIdx:h}))}function l0(e,t,r){if(!e.length)return[];let[n,...o]=e,i=Math.min(t,r)*.3,s=[{x:(t-i)/2,y:(r-i)/2,w:i,h:i,pt:n,prst:\"ellipse\",colorIdx:0}],l=o.length,a=Math.min(t,r)*.26,c=a*.62;return o.forEach((u,h)=>{let f=-Math.PI/2+h*2*Math.PI/Math.max(l,1);s.push({x:t/2+(t-a)/2*Math.cos(f)-a/2,y:r/2+(r-c)/2*Math.sin(f)-c/2,w:a,h:c,pt:u,prst:\"ellipse\",colorIdx:h+1})}),s}function a0(e,t,r){let n=[],o=(a,c)=>{if(a.length){(n[c]??(n[c]=[])).push(...a);for(let u of a)o(u.children,c+1)}};if(o(e,0),!n.length)return[];let i=r/n.length,s=i*.62,l=[];return n.forEach((a,c)=>{let u=t*.03,h=(t-u*(a.length-1))/a.length;a.forEach((f,m)=>{l.push({x:m*(h+u),y:c*i+(i-s)/2,w:h,h:s,pt:f,prst:\"roundRect\",colorIdx:c})})}),l}var c0={linear:r0,cycle:(e,t,r)=>o0(e,t,r),pyramid:(e,t,r)=>i0(e,t,r),hierarchy:(e,t,r)=>a0(e,t,r),snake:(e,t,r)=>s0(e,t,r),radial:(e,t,r)=>l0(e,t,r)};function u0(e,t,r,n){let o=n.family===\"hierarchy\"?e:n0(e),i=c0[n.family](o,t,r,n.vertical);if(!i.length)return[];let s=[];if(n.family===\"hierarchy\"){let l=new Map(i.map(u=>[u.pt.id,u])),a=(u,h)=>{let f=u.x+u.w/2,m=u.y+u.h,d=h.x+h.w/2,p=h.y,b=(m+p)/2,v=Math.min(f,d),x=Math.min(m,p),M=Math.max(Math.abs(d-f),1),S=Math.max(p-m,1),y=`M ${f-v} 0 L ${f-v} ${b-x} L ${d-v} ${b-x} L ${d-v} ${S}`;s.push({kind:\"shape\",x:v,y:x,w:M,h:S,rot:0,flipH:!1,flipV:!1,path:y,fill:null,stroke:{color:n.colors[0]??\"rgb(68,114,196)\",width:1.5,dash:null},text:null,openGeom:!0,name:\"SmartArt \\u8FDE\\u7EBF\"})},c=u=>{for(let h of u){let f=l.get(h.id);for(let m of h.children){let d=l.get(m.id);f&&d&&a(f,d)}c(h.children)}};c(e)}for(let l of i){let a={type:\"solid\",color:n.colors[l.colorIdx%Math.max(n.colors.length,1)]??\"rgb(68,114,196)\"},c=nn(l.prst,l.w,l.h,{}),u={kind:\"shape\",x:l.x,y:l.y,w:l.w,h:l.h,rot:0,flipH:!1,flipV:!1,path:c.d,fill:a,stroke:null,text:n.textOf(l.pt.id),name:\"SmartArt \\u8282\\u70B9\"};s.push(u)}return s}function h0(e,t){return{kind:\"group\",...t,childX:0,childY:0,scaleX:1,scaleY:1,children:e,name:\"SmartArt\"}}var f0=new Set([\"dt\",\"ftr\",\"sldNum\",\"hdr\"]);function d0(e,t,r,n){return ea(e,t,r,n).flatMap(o=>o.layoutIds)}function ea(e,t,r,n){var o,i;let s=[],l=new Set;for(let a of Q(w(e,\"sldMasterIdLst\"),\"sldMasterId\")){let c=N(a,\"r:id\"),u=c?(o=t[c])==null?void 0:o.target:null;if(!u||l.has(u))continue;l.add(u);let h=u?r(u):null,f=u?n(u):{},m=[];for(let d of Q(w(h,\"sldLayoutIdLst\"),\"sldLayoutId\")){let p=N(d,\"r:id\"),b=p?(i=f[p])==null?void 0:i.target:null;b&&!m.includes(b)&&m.push(b)}s.push({part:u,layoutIds:m})}return s}function p0(e){var t,r;let n=(t=e.editInfo)==null?void 0:t.placeholder;if(!n)return null;if(e.kind!==\"shape\")return e;let o=((r=e.editInfo)==null?void 0:r.textTemplate)??e.text??void 0,i=o?.paragraphs[0],s=o&&i?{...o,paragraphs:[{...i,runs:i.runs.length?[{...i.runs[i.runs.length-1],text:\"\"}]:[]}]}:o;return{...e,text:f0.has(n.type)?e.text:null,editInfo:{...e.editInfo,...s?{textTemplate:s}:{}}}}function ui(e,t,r){if(r!=null&&r.includes(\"nextslide\"))return e.edit?\"slide:next\":`slide:${e.slideNum+1}`;if(r!=null&&r.includes(\"previousslide\"))return e.edit?\"slide:previous\":`slide:${e.slideNum-1}`;if(r!=null&&r.includes(\"firstslide\"))return e.edit?\"slide:first\":\"slide:1\";if(r!=null&&r.includes(\"lastslide\"))return\"slide:last\";let n=e.rels[t];if(!n)return null;if(ci(n.target))return n.target;let o=e.slideIdMap[n.target];return o===void 0?null:e.edit?`slide-part:${encodeURIComponent(n.target)}`:`slide:${o}`}function hi(e,t){let r=w(e,\"hlinkClick\");if(!r)return{unsupported:!1};let n=ui(t,N(r,\"r:id\")??\"\",N(r,\"action\"))??void 0;return{...n?{link:n}:{},unsupported:!n}}var m0=\"rgb(0,0,0)\";function ul(e){let t={};for(let r of Q(e,\"font\")){let n=N(r,\"script\"),o=N(r,\"typeface\");n&&o&&(t[n]=o)}return{latin:N(w(e,\"latin\"),\"typeface\")??\"\",ea:N(w(e,\"ea\"),\"typeface\")??\"\",cs:N(w(e,\"cs\"),\"typeface\")??\"\",scripts:t}}function ta(e,t=\"\"){let r=ee(e,\"themeElements\",\"clrScheme\"),n=Object.fromEntries(Sf.map(s=>{let l=w(w(r,s),\"srgbClr\")??w(w(r,s),\"sysClr\")??w(w(r,s),\"prstClr\")??w(w(r,s),\"scrgbClr\")??w(w(r,s),\"hslClr\");return[s,l?ti(l,{theme:{},clrMap:{}}):m0]})),o=ee(e,\"themeElements\",\"fontScheme\"),i={major:ul(w(o,\"majorFont\")),minor:ul(w(o,\"minorFont\"))};return{id:t,name:N(e,\"name\")??t,colors:n,fonts:i}}function g0(e){return Object.fromEntries(Object.entries(e.colors).map(([t,r])=>{let[n,o,i]=bl(r);return[t,[n,o,i].map(s=>Math.round(s).toString(16).padStart(2,\"0\")).join(\"\").toUpperCase()]}))}function na(e,t,r,n){var o,i;let s=[],l={},a=new Set;for(let c of Q(w(e,\"sldMasterIdLst\"),\"sldMasterId\")){let u=N(c,\"r:id\"),h=u?(o=t[u])==null?void 0:o.target:null;if(!h)continue;let f=(i=Object.values(n(h)).find(m=>m.type.endsWith(\"/theme\")))==null?void 0:i.target;f&&(l[h]=f,!a.has(f)&&(a.add(f),s.push(ta(r(f),f))))}return{themes:s,themeByMaster:l}}function an(e,t){for(let r of Object.values(e))if(r.type.endsWith(t))return r.target;return null}function b0(e){let t=ta(e),r=ee(e,\"themeElements\",\"fmtScheme\"),n=o=>{var i;let s=[];for(let l=((i=w(r,o))==null?void 0:i.firstElementChild)??null;l;l=l.nextElementSibling)s.push(l);return s};return{colors:g0(t),fonts:t.fonts,fillStyles:n(\"fillStyleLst\"),lnStyles:n(\"lnStyleLst\"),effectStyles:n(\"effectStyleLst\"),bgFillStyles:n(\"bgFillStyleLst\")}}function hl(e){let t=[];for(let r of Array.from(e?.children??[]).filter(n=>n.localName===\"sp\")){let n=ee(r,\"nvSpPr\",\"nvPr\",\"ph\");n&&t.push({type:N(n,\"type\"),idx:N(n,\"idx\"),sp:r})}return t}function bn(e,t,r){var n;return((n=Wh(e,o=>o,{type:t,idx:r}))==null?void 0:n.sp)??null}function ra(e,t,r,n,o,i,s,l,a){let c=r?e.xml(r):null,u=r?e.rels(r):{},h=r?an(u,\"/slideMaster\"):null,f=h?e.xml(h):null;return oa(e,t,r,c,h,f,n,o,i,s,l,a)}function x0(e,t,r,n,o,i,s,l){return oa(e,null,null,null,t,e.xml(t),r,n,o,i,s,l)}function oa(e,t,r,n,o,i,s,l,a,c,u,h){let f=o?e.rels(o):{},m=o?an(f,\"/theme\"):null,d=b0(m?e.xml(m):null),p={},b=w(i,\"clrMap\");if(b)for(let O of Array.from(b.attributes))p[O.localName]=O.value;let v=ee(t,\"clrMapOvr\",\"overrideClrMapping\")??ee(n,\"clrMapOvr\",\"overrideClrMapping\");if(v)for(let O of Array.from(v.attributes))p[O.localName]=O.value;let x={theme:d.colors,clrMap:p},M=`${m??\"\"}\\0${Object.entries(p).sort(([O],[R])=>O.localeCompare(R)).map(([O,R])=>`${O}=${R}`).join(\";\")}`,S=h?.get(M);if(!S){S={lvls:[]};let O=Ht(w(s,\"defaultTextStyle\"),x,d.fonts);S.def=O.def,S.lvls=O.lvls,h?.set(M,S)}let y=w(i,\"txStyles\"),$={title:Ht(w(y,\"titleStyle\"),x,d.fonts),body:Ht(w(y,\"bodyStyle\"),x,d.fonts),other:Ht(w(y,\"otherStyle\"),x,d.fonts)},k=ee(i,\"cSld\",\"spTree\"),A=ee(n,\"cSld\",\"spTree\"),L=hl(A),P=hl(k),E=new Set,T=u?new Map:void 0,I=w(n,\"hf\")??w(i,\"hf\");if(I)for(let O of[\"sldNum\",\"ftr\",\"dt\",\"hdr\"])N(I,O)===\"0\"&&E.add(O);return{layoutPath:r,layoutRoot:n,masterPath:o,masterRoot:i,masterTree:k,layoutTree:A,envFor:(O,R)=>({pkg:e,ctx:x,theme:d,rels:O?e.rels(O):{},partPath:O??\"\",docDefaults:S,masterStyles:$,layoutPh:R?L:[],masterPh:R?P:[],slideNum:c,tableStyles:l,hiddenPh:E,slideIdMap:a,edit:u,textLevelTemplateCache:T})}}var v0=20556,w0=4,y0=268435456,fl=null;var $0=(e,t)=>(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0,dl=(e,t)=>(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0,M0=(e,t)=>e[t+1]<<8|e[t];function Ro(e){if(e.length<4)return null;switch($0(e,0)){case 65536:case 1953658213:case 1953784678:return\"font/ttf\";case 1330926671:return\"font/otf\";case 2001684038:return\"font/woff\";case 2001684018:return\"font/woff2\";default:return null}}function k0(e){let t=Ro(e);if(t)return{data:e,mime:t};if(e.length<82||M0(e,34)!==v0)return null;let r=dl(e,12);if(r&w0){if(!fl)return null;let s=null;try{s=fl(e)}catch{return null}return s!=null&&s.length?{data:s,mime:Ro(s)??\"font/ttf\"}:null}let n=dl(e,4);if(!n||n>e.length-82)return null;let o=e.subarray(e.length-n);if(r&y0){o=o.slice();for(let s=0;s<o.length;s++)o[s]^=80}let i=Ro(o);return i?{data:o,mime:i}:null}var Ko=class{constructor(t,r=\"asset:\"){this.publishAssets=t,this.tokenPrefix=r,this.mode=\"blob\",this.deferred=[],this.deferredIndex=new Map,this.urlCache=new Map,this.objectUrls=[],this.packageAssets=Object.create(null)}get published(){return this.packageAssets}store(t,r,n,o){let i;if(this.mode===\"defer\"){let s=this.deferredIndex.get(t);s===void 0&&(s=`${this.tokenPrefix}${this.deferred.length}`,this.deferred.push({mime:n,data:r}),this.deferredIndex.set(t,s)),i=s}else{let s=this.urlCache.get(t);s===void 0&&(s=URL.createObjectURL(new Blob([r.slice().buffer],{type:n})),this.objectUrls.push(s),this.urlCache.set(t,s)),i=s}return this.publishAssets&&(this.packageAssets[i]={mime:n,bytes:r,sourcePart:o}),i}cached(t,r){return this.urlCache.has(t)||this.urlCache.set(t,r()),this.urlCache.get(t)??null}publish(t,r,n,o){this.publishAssets&&(this.packageAssets[t]={mime:n,bytes:r,sourcePart:o})}dispose(){for(let t of this.objectUrls)try{URL.revokeObjectURL(t)}catch{}this.objectUrls=[],this.deferred.length=0,this.deferredIndex.clear(),this.urlCache.clear(),this.packageAssets=Object.create(null)}};function C0(e){return e.endsWith(\"/\")?!1:/\\/(?:media|embeddings)\\//i.test(e)||/^ppt\\/slides\\/(?:_rels\\/)?slide[^/]+$/i.test(e)||/^ppt\\/(?:notesSlides|comments|charts|diagrams)\\//i.test(e)||/^ppt\\/vbaProject/i.test(e)}function S0(e){let t=new Set,r=Go(e,{filter:o=>C0(o.name)?(t.add(o.name),!1):!0});if(t.size===0)return r;let n=o=>{if(Object.prototype.hasOwnProperty.call(r,o))return r[o];if(!t.has(o))return;let i=Go(e,{filter:l=>l.name===o});t.delete(o);let s=i[o];if(s)return r[o]=s,s};return new Proxy(r,{get(o,i,s){return typeof i==\"string\"&&t.has(i)?n(i):Reflect.get(o,i,s)},has(o,i){return Reflect.has(o,i)||typeof i==\"string\"&&t.has(i)}})}var E0=new TextDecoder,T0=new Uint8Array(0),L0={png:\"image/png\",jpg:\"image/jpeg\",jpeg:\"image/jpeg\",gif:\"image/gif\",bmp:\"image/bmp\",webp:\"image/webp\",svg:\"image/svg+xml\",tif:\"image/tiff\",tiff:\"image/tiff\"},A0={emf:\"image/x-emf\",wmf:\"image/x-wmf\",pict:\"image/x-pict\",pct:\"image/x-pict\",pic:\"image/x-pict\"};function P0(e,t){if(t.startsWith(\"/\"))return t.slice(1);let r=[];for(let n of(e+t).split(\"/\"))n===\"..\"?r.pop():n!==\".\"&&n!==\"\"&&r.push(n);return r.join(\"/\")}var Cr=class{constructor(t,r=!1){this.existingAssetUrls=new Map,this.xmlCache=new Map,this.relsCache=new Map,this.imageMetadataCache=new Map,this.cacheTrace=null,this.sourceBytes=null,this.isDisposed=!1;let n=!(t instanceof Uint8Array);if(Xs(this,n?t:void 0),n)this.files=t.parts;else{let o=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);this.files=r?Go(o):S0(o)}if(this.assetStore=new Ko(r,n?\"layout-asset:\":\"asset:\"),n)for(let[o,i]of Object.entries(t.assets??{}))i.sourcePart&&this.existingAssetUrls.set(i.sourcePart,o);else if(r){this.sourceBytes=t;let o=this;this.opcHandle=Object.freeze({format:\"pptx\",get bytes(){return o.sourceBytes??T0},get parts(){return o.files},get assets(){return o.assetStore.published},get disposed(){return o.isDisposed}}),Xs(this.opcHandle,this)}}set assetMode(t){this.assetStore.mode=t}get deferred(){return this.assetStore.deferred}get opcPackage(){return this.opcHandle}xml(t){var r;if((r=this.cacheTrace)==null||r.add(t),!this.xmlCache.has(t)){let n=this.files[t],o=null;if(n)try{o=Tr(E0.decode(n))}catch{o=null}this.xmlCache.set(t,o)}return this.xmlCache.get(t)??null}forgetXml(t){this.xmlCache.delete(t)}forgetPart(t){let r=t.slice(0,t.lastIndexOf(\"/\")+1);this.xmlCache.delete(t),this.relsCache.delete(t),this.xmlCache.delete(`${r}_rels/${t.slice(r.length)}.rels`),this.imageMetadataCache.delete(t)}beginCacheTrace(){if(this.cacheTrace)throw new Error(\"OPC \\u7F13\\u5B58\\u8BBF\\u95EE\\u4F5C\\u7528\\u57DF\\u4E0D\\u80FD\\u5D4C\\u5957\");return this.cacheTrace=new Set,this.cacheTrace}endCacheTrace(t){if(this.cacheTrace!==t)throw new Error(\"OPC \\u7F13\\u5B58\\u8BBF\\u95EE\\u4F5C\\u7528\\u57DF\\u4E0D\\u5339\\u914D\");return this.cacheTrace=null,[...t]}rels(t){var r;if((r=this.cacheTrace)==null||r.add(t),!this.relsCache.has(t)){let n=t.slice(0,t.lastIndexOf(\"/\")+1),o={},i=this.xml(`${n}_rels/${t.slice(n.length)}.rels`);for(let s of Q(i,\"Relationship\")){let l=N(s,\"Id\"),a=N(s,\"Target\");if(!l||!a)continue;let c=N(s,\"TargetMode\")===\"External\";o[l]=c?{type:N(s,\"Type\")??\"\",target:a,external:!0}:{type:N(s,\"Type\")??\"\",target:P0(n,a)}}this.relsCache.set(t,o)}return this.relsCache.get(t)}blobUrl(t,r){let n=this.existingAssetUrls.get(t);if(n)return n;let o=this.files[t];return o?this.assetStore.store(`${r}|${t}`,o,r,t):null}fontUrl(t){let r=this.existingAssetUrls.get(t);if(r)return r;let n=this.files[t];if(!n)return null;let o=k0(n);return o?this.assetStore.store(`font|${t}`,o.data,o.mime,t):null}fontSourceUrl(t){let r=this.files[t];return r?this.assetStore.store(`font-source|${t}`,r,\"application/octet-stream\"):null}dispose(){this.assetStore.dispose(),this.xmlCache.clear(),this.relsCache.clear(),this.imageMetadataCache.clear(),this.files={},this.sourceBytes=null,this.isDisposed=!0}mediaUrl(t){let r=this.existingAssetUrls.get(t);if(r)return r;let n=t.slice(t.lastIndexOf(\".\")+1).toLowerCase();if(Rh.has(n)){let i=`mf|${t}`,s=this.assetStore.cached(i,()=>{let a=this.files[t];return a?ii(a):null}),l=this.files[t];return s&&l&&this.assetStore.publish(s,l,A0[n]??\"application/octet-stream\",t),s}let o=L0[n];return o?this.blobUrl(t,o):null}imageMetadata(t){var r;if((r=this.cacheTrace)==null||r.add(t),!this.imageMetadataCache.has(t)){let n=this.files[t];this.imageMetadataCache.set(t,n?Ph(n):null)}return this.imageMetadataCache.get(t)??null}};function I0(e,t){if(t){t.fill!==void 0&&(e.fill=structuredClone(t.fill));for(let[r,n]of Object.entries(t.borders??{}))e.borders[r]=structuredClone(n)}}function N0(e,t,r,n,o,i){let s={fill:null,borders:{}},{parts:l}=e,a=t.firstRow&&r===0,c=t.lastRow&&r===o-1,u=t.firstCol&&n===0,h=t.lastCol&&n===i-1,f=t.bandRow?t.firstRow?r-1:r:-1,m=t.bandCol?t.firstCol?n-1:n:-1,d=[l.wholeTbl];f>=0&&!a&&!c&&d.push(f%2===0?l.band1H:l.band2H),m>=0&&!u&&!h&&d.push(m%2===0?l.band1V:l.band2V),u&&d.push(l.firstCol),h&&d.push(l.lastCol),a&&d.push(l.firstRow),c&&d.push(l.lastRow),a&&u&&d.push(l.nwCell),a&&h&&d.push(l.neCell),c&&u&&d.push(l.swCell),c&&h&&d.push(l.seCell);let p;for(let b of d)I0(s,b),b!=null&&b.text&&(p={...p,...b.text});return{...s,text:p}}var Sr=\"{5C22544A-7EE6-4342-B048-85BDC9FD1C3A}\",ia=Object.freeze({[Sr]:`<a:tblStyle styleId=\"${Sr}\" styleName=\"Medium Style 2 - Accent 1\">\n<a:wholeTbl><a:tcTxStyle><a:fontRef idx=\"minor\"><a:scrgbClr r=\"0\" g=\"0\" b=\"0\"/></a:fontRef><a:schemeClr val=\"dk1\"/></a:tcTxStyle>\n<a:tcStyle><a:tcBdr>\n<a:left><a:ln w=\"12700\" cmpd=\"sng\"><a:solidFill><a:schemeClr val=\"lt1\"/></a:solidFill></a:ln></a:left>\n<a:right><a:ln w=\"12700\" cmpd=\"sng\"><a:solidFill><a:schemeClr val=\"lt1\"/></a:solidFill></a:ln></a:right>\n<a:top><a:ln w=\"12700\" cmpd=\"sng\"><a:solidFill><a:schemeClr val=\"lt1\"/></a:solidFill></a:ln></a:top>\n<a:bottom><a:ln w=\"12700\" cmpd=\"sng\"><a:solidFill><a:schemeClr val=\"lt1\"/></a:solidFill></a:ln></a:bottom>\n</a:tcBdr><a:fill><a:solidFill><a:schemeClr val=\"accent1\"><a:tint val=\"20000\"/></a:schemeClr></a:solidFill></a:fill></a:tcStyle></a:wholeTbl>\n<a:band1H><a:tcStyle><a:tcBdr/><a:fill><a:solidFill><a:schemeClr val=\"accent1\"><a:tint val=\"40000\"/></a:schemeClr></a:solidFill></a:fill></a:tcStyle></a:band1H>\n<a:band2H><a:tcStyle><a:tcBdr/><a:fill><a:solidFill><a:schemeClr val=\"lt1\"/></a:solidFill></a:fill></a:tcStyle></a:band2H>\n<a:firstRow><a:tcTxStyle b=\"on\"><a:fontRef idx=\"minor\"><a:scrgbClr r=\"0\" g=\"0\" b=\"0\"/></a:fontRef><a:schemeClr val=\"lt1\"/></a:tcTxStyle>\n<a:tcStyle><a:tcBdr><a:bottom><a:ln w=\"38100\" cmpd=\"sng\"><a:solidFill><a:schemeClr val=\"lt1\"/></a:solidFill></a:ln></a:bottom></a:tcBdr>\n<a:fill><a:solidFill><a:schemeClr val=\"accent1\"/></a:solidFill></a:fill></a:tcStyle></a:firstRow>\n</a:tblStyle>`}),R0=Object.freeze([Object.freeze({styleId:Sr,name:\"Medium Style 2 - Accent 1\",markup:ia[Sr]})]);function O0(){return R0}function z0(e){return e?ia[e.toUpperCase()]??null:null}var pl=new Map;function Qo(e){if(!e)return null;let t=e.toUpperCase(),r=pl.get(t);if(r)return r;let n=z0(t);if(!n)return null;let o=Tr(`<root xmlns:a=\"http://schemas.openxmlformats.org/drawingml/2006/main\">${n}</root>`),i=w(o,\"tblStyle\"),s={root:o,style:i};return pl.set(t,s),s}function sa(e,t){let r=Q(e,\"tblStyle\"),n=N(e,\"def\"),o=r.find(a=>{var c;return((c=N(a,\"styleId\"))==null?void 0:c.toUpperCase())===t?.toUpperCase()});if(o&&e)return{style:o,namespaceRoot:e,source:\"document\"};let i=Qo(t);if(i)return{...i,namespaceRoot:i.root,source:\"builtin\"};let s=r.find(a=>{var c;return((c=N(a,\"styleId\"))==null?void 0:c.toUpperCase())===n?.toUpperCase()});if(s&&e)return{style:s,namespaceRoot:e,source:\"document\"};let l=Qo(n);return l?{...l,namespaceRoot:l.root,source:\"builtin\"}:null}function F0(e){return e?{wholeTbl:w(e,\"wholeTbl\"),band1H:w(e,\"band1H\"),band2H:w(e,\"band2H\"),band1V:w(e,\"band1V\"),band2V:w(e,\"band2V\"),firstRow:w(e,\"firstRow\"),lastRow:w(e,\"lastRow\"),firstCol:w(e,\"firstCol\"),lastCol:w(e,\"lastCol\"),nwCell:w(e,\"nwCell\"),neCell:w(e,\"neCell\"),swCell:w(e,\"swCell\"),seCell:w(e,\"seCell\")}:null}var fi=[[\"l\",\"left\",\"lnL\"],[\"r\",\"right\",\"lnR\"],[\"t\",\"top\",\"lnT\"],[\"b\",\"bottom\",\"lnB\"]];function j0(e,t,r){if(!e)return;let n=w(e,\"tcStyle\"),o=r.fill(w(n,\"fill\")??n,t),i={},s=w(n,\"tcBdr\");for(let[h,f]of fi){let m=w(s,f);m&&(i[h]=r.line(w(m,\"ln\"),t,null))}let l=w(e,\"tcTxStyle\"),a=N(l,\"b\"),c=l?ge(l,t.ctx):null,u={...a!==null?{b:a===\"on\"||a===\"1\"||a===\"true\"}:{},...c?{color:c}:{}};return{...o?{fill:o}:{},...Object.keys(i).length?{borders:i}:{},...Object.keys(u).length?{text:u}:{}}}function Oo(e){return e.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\")}function U0(e){return Array.from(e.attributes).filter(t=>t.name===\"xmlns\"||t.name.startsWith(\"xmlns:\")).map(t=>({name:t.name,value:t.value}))}function di(e,t=e.tagName,r=[]){let n=new Set(Array.from(e.attributes).map(l=>l.name)),o=[...r.filter(l=>!n.has(l.name)),...Array.from(e.attributes).map(l=>({name:l.name,value:l.value}))].map(l=>` ${l.name}=\"${Oo(l.value)}\"`).join(\"\"),i=Array.from(e.childNodes);if(!i.length)return`<${t}${o}/>`;let s=i.map(l=>{if(typeof l==\"string\")return Oo(l);let a=l;return a.nodeType===1||a.tagName?di(l):Oo(a.nodeValue??\"\")}).join(\"\");return`<${t}${o}>${s}</${t}>`}var D0=[\"wholeTbl\",\"band1H\",\"band2H\",\"band1V\",\"band2V\",\"firstRow\",\"lastRow\",\"firstCol\",\"lastCol\",\"nwCell\",\"neCell\",\"swCell\",\"seCell\"];function Jo(e,t,r){var n,o;let i=(n=N(e.style,\"styleId\"))==null?void 0:n.trim();if(!i)return null;let s={};for(let l of D0){let a=j0(w(e.style,l),t,r);a&&(s[l]=a)}return{styleId:i,name:((o=N(e.style,\"styleName\"))==null?void 0:o.trim())||e.fallbackName||i,source:e.source,markup:di(e.style,e.style.tagName,U0(e.namespaceRoot)),parts:s}}function pi(e,t,r){let n=[],o=new Set,i=s=>{let l=s?.styleId.toUpperCase();!s||o.has(l)||(o.add(l),n.push(s))};for(let s of Q(e,\"tblStyle\"))i(Jo({style:s,namespaceRoot:e,source:\"document\"},t,r));for(let s of O0()){let l=Qo(s.styleId);i(Jo({style:l.style,namespaceRoot:l.root,source:\"builtin\",fallbackName:s.name},t,r))}return n}function B0(e,t,r){let n=w(e,\"tcPr\"),o=r.fill(n,t),i={};for(let[s,,l]of fi){let a=w(n,l);a&&(i[s]=r.line(a,t,null))}return{fill:o,borders:i}}function la(e,t,r,n,o){var i,s;let l=w(e,\"tblPr\"),a=((s=(i=w(l,\"tableStyleId\"))==null?void 0:i.textContent)==null?void 0:s.trim())??null,c=sa(r.tableStyles,a),u=c?Jo(c,r,n):null,h={styleId:a??u?.styleId??\"\",firstRow:ye(l,\"firstRow\"),lastRow:ye(l,\"lastRow\"),bandRow:ye(l,\"bandRow\"),firstCol:ye(l,\"firstCol\"),lastCol:ye(l,\"lastCol\"),bandCol:ye(l,\"bandCol\")},f=Q(w(e,\"tblGrid\"),\"gridCol\").map(x=>ie(U(x,\"w\"))),m=Q(e,\"tr\"),d=(x,M,S)=>{let y=Q(x,\"tc\");return{height:ie(U(x,\"h\")),cells:y.map(($,k)=>{var A,L,P,E;let T=u?N0(u,h,M,k,S,y.length):{fill:null,borders:{},text:void 0},I=B0($,r,n),O=structuredClone(T.borders);for(let[q,X]of Object.entries(I.borders))O[q]=X;let R=w($,\"txBody\"),z={ctx:r.ctx,fonts:r.theme.fonts,chain:[r.docDefaults],slideNum:r.slideNum,defaultColor:((A=T.text)==null?void 0:A.color)??null,resolveLink:(q,X)=>ui(r,q,X),edit:r.edit},j=Wt(R,z),F=!j&&r.edit?Wt(R,z,!0)??void 0:void 0;if(((L=T.text)==null?void 0:L.b)!==void 0){for(let q of[j,F])if(q)for(let X of q.paragraphs)for(let K of X.runs)((((P=X.editInfo)==null?void 0:P.directRun)??0)|(((E=K.editInfo)==null?void 0:E.direct)??0))&Le.b||(K.b=T.text.b)}let W;if(r.edit){let q={...z,defaultColor:null},X=Wt(R,q),K=X?void 0:Wt(R,q,!0)??void 0;W={fill:I.fill,borders:I.borders,text:X,...K?{textTemplate:K}:{}}}let V=w($,\"tcPr\"),B=(q,X)=>{let K=U(V,q);return ie(K===null?X:K)};return{colSpan:U($,\"gridSpan\")??1,rowSpan:U($,\"rowSpan\")??1,merged:ye($,\"hMerge\")||ye($,\"vMerge\"),fill:I.fill??T.fill,text:j,borders:O,margins:[B(\"marT\",45720),B(\"marR\",91440),B(\"marB\",45720),B(\"marL\",91440)],vAlign:N(V,\"anchor\")===\"ctr\"?\"middle\":N(V,\"anchor\")===\"b\"?\"bottom\":\"top\",vert:N(V,\"vert\")===\"vert\"?\"vert\":N(V,\"vert\")===\"vert270\"?\"vert270\":void 0,...F||W?{editInfo:{...F?{textTemplate:F}:{},...W?{styleBase:W}:{}}}:{}}})}},p=m.map((x,M)=>d(x,M,m.length)),b=r.edit&&a?{tableStyle:h}:void 0,v=m[m.length-1];if(r.edit&&v){let x=m.length;b={...b,tableRowAppend:{...x===1?{previousLast:d(v,0,2)}:{},regular:[d(v,x,x+2),d(v,x+1,x+3)],last:[d(v,x,x+1),d(v,x+1,x+2)]}}}return{kind:\"table\",...t,colWidths:f,rows:p,name:o,...b?{editInfo:b}:{}}}var ml=new WeakMap,gl=null,H0='<a:txBody><a:bodyPr/><a:lstStyle/><a:p><a:endParaRPr lang=\"zh-CN\"/></a:p></a:txBody>',W0='<a:txBody><a:bodyPr/><a:lstStyle/><a:p><a:endParaRPr lang=\"zh-CN\" b=\"0\"><a:solidFill><a:schemeClr val=\"tx1\"/></a:solidFill></a:endParaRPr></a:p></a:txBody>',V0='<a:solidFill><a:schemeClr val=\"tx1\"><a:alpha val=\"25000\"/></a:schemeClr></a:solidFill>';function zo(e,t){let r=[e?.wholeTbl??null,t];return`<a:tcPr>${fi.map(([,n,o])=>{let i=null;for(let s of r){let l=w(w(w(s,\"tcStyle\"),\"tcBdr\"),n);l&&(i=w(l,\"ln\"))}return i?di(i,`a:${o}`):`<a:${o} w=\"9525\">${V0}</a:${o}>`}).join(\"\")}${e?\"\":'<a:solidFill><a:schemeClr val=\"lt1\"/></a:solidFill>'}</a:tcPr>`}function G0(e,t,r){let n=`${t}\\0${e.join(\"\\0\")}`,o=r?ml.get(r):null,i=r?o?.get(n):gl;if(i)return i;let s=c=>`<a:tc>${t}${c}</a:tc>`,l=Tr(`<root xmlns:a=\"http://schemas.openxmlformats.org/drawingml/2006/main\">\n<a:tbl><a:tblPr firstRow=\"1\" bandRow=\"1\"/><a:tblGrid><a:gridCol w=\"9525\"/></a:tblGrid>\n<a:tr h=\"9525\">${s(e[0])}</a:tr>\n<a:tr h=\"9525\">${s(e[1])}</a:tr>\n<a:tr h=\"9525\">${s(e[2])}</a:tr>\n</a:tbl></root>`),a=w(l,\"tbl\");if(r){let c=o??new Map;c.set(n,a),o||ml.set(r,c)}else gl=a;return a}function mi(e,t){var r,n,o,i;let s=(r=N(e.tableStyles,\"def\"))==null?void 0:r.trim(),l=s?sa(e.tableStyles,s):null,a=F0(l?.style??null),c=[zo(a,a?.firstRow??null),zo(a,a?.band1H??null),zo(a,a?.band2H??null)],u=a?H0:W0,h=la(G0(c,u,a?e.tableStyles:null),{x:0,y:0,w:1,h:3,rot:0,flipH:!1,flipV:!1},e,t),[f,m,d]=h.rows.map(p=>p.cells[0]);if(!((n=f?.editInfo)!=null&&n.textTemplate)||!((o=m?.editInfo)!=null&&o.textTemplate)||!((i=d?.editInfo)!=null&&i.textTemplate))throw new Error(\"\\u65E0\\u6CD5\\u6784\\u9020\\u65B0\\u589E\\u8868\\u683C\\u5355\\u5143\\u683C\\u6A21\\u677F\");return{...s?{styleId:s}:{},textBodyMarkup:u,cellPropertiesMarkup:c,firstRow:f,bandRows:[m,d]}}function X0(e){let t=N(e,\"title\"),r=N(e,\"descr\");if(!(t===null&&r===null))return{...t===null?{}:{title:t},...r===null?{}:{descr:r}}}function Y0(e,t){let r=[],n=e.getElementsByTagName(\"*\");for(let o=0;o<n.length;o++)if(n[o].localName===\"sectionLst\"){for(let i of Q(n[o],\"section\")){let s=[],l=[];for(let c of Q(w(i,\"sldIdLst\"),\"sldId\")){let u=U(c,\"id\");if(u===null)continue;s.push(u);let h=t.get(u);h!==void 0&&l.push(h)}let a=N(i,\"id\");r.push({name:N(i,\"name\")??`\\u8282 ${r.length+1}`,slideIds:s,slideIndexes:l,...a===null?{}:{id:a}})}break}return r}var q0=new Set([\"http://schemas.openxmlformats.org/presentationml/2006/main\",\"http://schemas.openxmlformats.org/drawingml/2006/main\",\"http://schemas.openxmlformats.org/officeDocument/2006/math\",\"http://schemas.microsoft.com/office/powerpoint/2010/main\",\"http://schemas.microsoft.com/office/drawing/2010/main\"]);function ei(e){return e.some(t=>t.kind===\"unsupported\"||t.kind===\"group\"&&ei(t.children))}function aa(e){return Array.from(e.children).filter(t=>t.namespaceURI===Vt).flatMap(t=>Array.from(t.children).flatMap(r=>r.namespaceURI===Vt&&r.localName===\"AlternateContent\"?aa(r):[r]))}function Z0(e,t,r,n,o){var i;if(e.namespaceURI!==Vt)return[];let s=Fl(e,{has:c=>q0.has(c)||Ih(c,o)}),l=Q(e,\"Choice\").find(c=>c.namespaceURI===Vt),a=s?t(s):Array.from(l?.children??[]).flatMap(c=>{let u=r(c);return u?[u]:[]});if(s?.localName===\"Choice\"&&ei(a)){let c=Q(e,\"Fallback\").find(h=>h.namespaceURI===Vt),u=c?t(c):[];u.length&&!ei(u)&&(a=u)}if(n){let c=aa(e).some(u=>{var h,f;return(f=(h=r(u))==null?void 0:h.editInfo)==null?void 0:f.moveLocked});for(let u of a)u.editInfo={...u.editInfo,editable:((i=u.editInfo)==null?void 0:i.editable)===\"none\"?\"none\":\"frame\",requiresOriginal:!0,...c?{moveLocked:!0}:{}}}return a}var _0=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\",Er=new WeakMap;function gi(e,t,r){let n=e.files;if(!n)return;let o=Er.get(e);o||Er.set(e,o=new Map);let i=h=>{let f=n[h];f&&o.set(h,{url:`web-ppt-source:${h}`,mime:\"application/octet-stream\",bytes:f})},s=h=>{let f=h.lastIndexOf(\"/\")+1;return`${h.slice(0,f)}_rels/${h.slice(f)}.rels`},l=new Set,a=h=>{if(!(l.has(h)||!n[h])){l.add(h),i(h),i(s(h));for(let f of Object.values(e.rels(h)))a(f.target)}};i(r),i(s(r)),i(\"[Content_Types].xml\");let c=e.rels(r),u=h=>{var f;if(h.localName===\"relIds\"&&(f=h.namespaceURI)!=null&&f.endsWith(\"/diagram\"))for(let m of Object.values(c))m.type.endsWith(\"/diagramDrawing\")&&a(m.target);for(let m of Array.from(h.attributes))if(m.namespaceURI===_0){let d=c[m.value];d&&a(d.target)}for(let m of Array.from(h.children))u(m)};u(t)}function K0(e){var t;return[...((t=Er.get(e))==null?void 0:t.values())??[]]}function Q0(e){Er.delete(e)}var J0={mp4:\"video/mp4\",m4v:\"video/mp4\",mov:\"video/quicktime\",webm:\"video/webm\",ogv:\"video/ogg\",avi:\"video/x-msvideo\",wmv:\"video/x-ms-wmv\",mpg:\"video/mpeg\",mpeg:\"video/mpeg\",mp3:\"audio/mpeg\",m4a:\"audio/mp4\",wav:\"audio/wav\",wma:\"audio/x-ms-wma\",ogg:\"audio/ogg\",oga:\"audio/ogg\",aac:\"audio/aac\",mid:\"audio/midi\",midi:\"audio/midi\"};function vt(e){if(!e)return null;let t=w(e,\"off\"),r=w(e,\"ext\"),n=w(e,\"chOff\"),o=w(e,\"chExt\");return{x:ie(U(t,\"x\")),y:ie(U(t,\"y\")),w:ie(U(r,\"cx\")),h:ie(U(r,\"cy\")),rot:(U(e,\"rot\")??0)/6e4,flipH:ye(e,\"flipH\"),flipV:ye(e,\"flipV\"),chX:ie(U(n,\"x\")),chY:ie(U(n,\"y\")),chW:ie(U(o,\"cx\")),chH:ie(U(o,\"cy\"))}}var ze=e=>({x:e.x,y:e.y,w:e.w,h:e.h,rot:e.rot,flipH:e.flipH,flipV:e.flipV});function sn(e){let t=w(e,\"cNvSpPr\")??w(e,\"cNvCxnSpPr\")??w(e,\"cNvPicPr\")??w(e,\"cNvGrpSpPr\")??w(e,\"cNvGraphicFramePr\"),r=w(t,\"spLocks\")??w(t,\"cxnSpLocks\")??w(t,\"picLocks\")??w(t,\"grpSpLocks\")??w(t,\"graphicFrameLocks\");return ye(r,\"noMove\")}function Xt(e,t,r=null,n,o,i=!1,s=!1,l=0,a){if(!e.edit)return{};let c=U(t,\"id\"),u={};if(c!==null&&(u.origin={part:e.partPath,spid:c}),r){let f=N(r,\"idx\");u.placeholder={type:N(r,\"type\")??\"obj\",...f===null?{}:{idx:f}}}n&&(u.geom=n),a&&(u.customGeometry=a),r&&l&&(u.placeholderDirect=l),o&&(u.editable=o),i&&(u.moveLocked=!0),s&&(u.readonlyLink=!0);let h=X0(t);return h&&(u.altText=h),u.origin||u.placeholder||u.placeholderDirect||u.geom||u.customGeometry||u.editable||u.moveLocked||u.readonlyLink||u.altText?{editInfo:u}:{}}function ca(e,t){return t?{...e,ctx:{...e.ctx,phClr:t}}:e}var ua=[\"noFill\",\"solidFill\",\"gradFill\",\"blipFill\",\"pattFill\",\"grpFill\"];function ha(e,t){let r=0;return w(e,\"xfrm\")&&(r|=pn.transform),(w(e,\"prstGeom\")||w(e,\"custGeom\"))&&(r|=pn.geometry),ua.some(n=>!!w(e,n))&&(r|=pn.fill),w(e,\"ln\")&&(r|=pn.stroke),(w(e,\"effectLst\")||w(e,\"effectDag\"))&&(r|=pn.effects),t&&(r|=pn.style),r}var ed=new Set([\"tl\",\"t\",\"tr\",\"l\",\"ctr\",\"r\",\"bl\",\"b\",\"br\"]);function xn(e,t){if(!e)return null;for(let r of ua){let n=w(e,r);if(n)return bi(n,t)}return null}function bi(e,t){if(!e)return null;switch(e.localName){case\"noFill\":return{type:\"none\"};case\"solidFill\":return{type:\"solid\",color:ge(e,t.ctx)??\"rgb(0,0,0)\"};case\"gradFill\":{let r=Q(w(e,\"gsLst\"),\"gs\").map(o=>({pos:(U(o,\"pos\")??0)/1e5,color:ge(o,t.ctx)??\"rgb(0,0,0)\"})).sort((o,i)=>o.pos-i.pos);if(!r.length)return null;if(w(e,\"path\"))return{type:\"gradient\",angle:0,stops:r,radial:!0};let n=w(e,\"lin\");return{type:\"gradient\",angle:n?(U(n,\"ang\")??0)/6e4:90,stops:r}}case\"blipFill\":{let r=da(e,t);if(!r)return{type:\"none\"};let n=w(e,\"tile\"),o=U(w(w(e,\"blip\"),\"alphaModFix\"),\"amt\"),i=w(e,\"srcRect\"),s=d=>(U(i,d)??0)/1e5,l=!!i&&[\"l\",\"t\",\"r\",\"b\"].some(d=>N(i,d)!==null),a=fa(e,t),c=a&&!/^https?:/i.test(a)?t.pkg.imageMetadata(a):null,u=U(e,\"dpi\")??0,h=c?{sourceWidth:c.width*96/(u>0?u:c.dpiX),sourceHeight:c.height*96/(u>0?u:c.dpiY)}:{},f=N(n,\"algn\"),m=ed.has(f)?f:\"tl\";return{type:\"image\",src:r,alpha:o!==null?o/1e5:void 0,crop:l?{l:s(\"l\"),t:s(\"t\"),r:s(\"r\"),b:s(\"b\")}:void 0,tile:n?{sx:(U(n,\"sx\")??1e5)/1e5,sy:(U(n,\"sy\")??1e5)/1e5,flip:N(n,\"flip\")??\"none\",tx:ie(U(n,\"tx\")??0),ty:ie(U(n,\"ty\")??0),algn:m,...h}:void 0}}case\"pattFill\":return{type:\"pattern\",fg:ge(w(e,\"fgClr\"),t.ctx)??\"rgb(0,0,0)\",bg:ge(w(e,\"bgClr\"),t.ctx)??\"rgba(0,0,0,0)\",preset:N(e,\"prst\")??\"pct50\"};case\"grpFill\":return null}return null}function fa(e,t){var r;let n=w(e,\"blip\"),o=Q(w(n,\"extLst\"),\"ext\").map(s=>w(s,\"svgBlip\")).find(s=>s!==null)??null,i=N(n,\"r:embed\")??N(n,\"r:link\")??N(o,\"r:embed\")??N(o,\"r:link\");return i?((r=t.rels[i])==null?void 0:r.target)??null:null}function da(e,t){let r=fa(e,t);return r?/^https?:/i.test(r)?r:t.pkg.mediaUrl(r):null}function td(e){let t=w(e,\"blip\");if(!t)return;let r=[];w(t,\"grayscl\")&&r.push(\"grayscale(1)\");let n=w(t,\"lum\");if(n){let o=(U(n,\"bright\")??0)/1e5,i=(U(n,\"contrast\")??0)/1e5;o&&r.push(`brightness(${(1+o).toFixed(2)})`),i&&r.push(`contrast(${(1+i).toFixed(2)})`)}return r.length?r.join(\" \"):void 0}var nd={dash:[4,3],dashDot:[4,3,1,3],dot:[1,3],lgDash:[8,3],lgDashDot:[8,3,1,3],lgDashDotDot:[8,3,1,3,1,3],sysDash:[3,3],sysDashDot:[3,3,1,3],sysDashDotDot:[3,3,1,3,1,3],sysDot:[1,1]},rd={flat:\"butt\",rnd:\"round\",sq:\"square\"};function Bn(e,t,r){if(!e)return r;if(w(e,\"noFill\"))return null;let n=U(e,\"w\")!==null?ie(U(e,\"w\")):r?.width??1,o=xn(e,t),i=r?.color??null;if(o?.type===\"solid\"?i=o.color:o?.type===\"gradient\"&&o.stops.length&&(i=o.stops[0].color),!i)return r?{...r,width:n}:null;let s=N(w(e,\"prstDash\"),\"val\"),l=Math.max(n,1),a=s?s===\"solid\"?null:(nd[s]??[4,3]).map(m=>m*l):r?.dash??null,c=Zs(w(e,\"headEnd\"))??r?.head,u=Zs(w(e,\"tailEnd\"))??r?.tail,h=rd[N(e,\"cap\")??\"\"]??r?.cap,f=w(e,\"round\")?\"round\":w(e,\"bevel\")?\"bevel\":w(e,\"miter\")?\"miter\":r?.join;return{color:i,width:n,dash:a,cap:h,join:f,head:c,tail:u,compound:N(e,\"cmpd\")??r?.compound}}function pa(e){return e?[{def:{rp:{color:e}},lvls:[]}]:[]}function ma(e,t){if(!e)return{fill:null,stroke:null,fontColor:null,effects:void 0};let r=(s,l)=>{let a=w(e,s),c=Number(N(a,\"idx\")??\"0\");if(!a||!c)return{el:null,env:t};let u=ge(a,t.ctx);return{el:l[Math.min(c,l.length)-1]??null,env:ca(t,u)}},n=r(\"fillRef\",t.theme.fillStyles),o=r(\"lnRef\",t.theme.lnStyles),i=r(\"effectRef\",t.theme.effectStyles);return{fill:n.el?bi(n.el,n.env):null,stroke:o.el?Bn(o.el,o.env,null):null,fontColor:ge(w(e,\"fontRef\"),t.ctx),effects:i.el?vn(w(i.el,\"effectLst\")??i.el,i.env.ctx):void 0}}var br=null,ga=`<p:style><a:lnRef idx=\"2\"><a:schemeClr val=\"accent1\"><a:shade val=\"50000\"/></a:schemeClr></a:lnRef>\n<a:fillRef idx=\"1\"><a:schemeClr val=\"accent1\"/></a:fillRef><a:effectRef idx=\"0\"><a:schemeClr val=\"accent1\"/></a:effectRef>\n<a:fontRef idx=\"minor\"><a:schemeClr val=\"lt1\"/></a:fontRef></p:style>`,ba='<p:txBody><a:bodyPr anchor=\"ctr\"/><a:lstStyle/><a:p><a:pPr algn=\"ctr\"/><a:endParaRPr lang=\"zh-CN\"/></a:p></p:txBody>';function od(){if(br)return br;let e=Tr(`<root xmlns:a=\"http://schemas.openxmlformats.org/drawingml/2006/main\" xmlns:p=\"http://schemas.openxmlformats.org/presentationml/2006/main\">\n${ga}\n${ba}\n</root>`);return br={style:w(e,\"style\"),text:w(e,\"txBody\")},br}function xi(e){let t=od(),r=ma(t.style,e),n=Wt(t.text,{ctx:e.ctx,fonts:e.theme.fonts,chain:[e.docDefaults,...pa(r.fontColor),Ht(w(t.text,\"lstStyle\"),e.ctx,e.theme.fonts)],defaultColor:r.fontColor,slideNum:e.slideNum,edit:!0},!0);if(!n)throw new Error(\"\\u65E0\\u6CD5\\u6784\\u9020\\u65B0\\u589E\\u5F62\\u72B6\\u6587\\u5B57\\u6A21\\u677F\");return{fill:r.fill,stroke:r.stroke,effects:r.effects,textTemplate:n,styleMarkup:ga,textBodyMarkup:ba}}function wt(e,t,r){let n=[];if(!e)return n;for(let o=e.firstElementChild;o;o=o.nextElementSibling){let i=null;try{i=id(o,t,r)}catch(s){i=xa(o,s,t)}Array.isArray(i)?n.push(...i):i&&n.push(i)}return n}function id(e,t,r){{let n=null;switch(e.localName){case\"sp\":case\"cxnSp\":{let o=e.localName===\"sp\"?\"nvSpPr\":\"nvCxnSpPr\",i=ee(e,o,\"nvPr\",\"ph\");if(r&&i||i&&t.hiddenPh.has(N(i,\"type\")??\"\"))break;n=sd(e,t);break}case\"pic\":n=va(e,t);break;case\"grpSp\":n=fd(e,t,r);break;case\"graphicFrame\":n=dd(e,t);break;case\"contentPart\":n=hd(e,t);break;case\"AlternateContent\":return t.edit&&gi(t.pkg,e,t.partPath),Z0(e,o=>wt(o,t,r),o=>xa(o,\"\\u4E0D\\u652F\\u6301\\u7684\\u517C\\u5BB9\\u5185\\u5BB9\",t),t.edit,t.pkg)}return n}}function xa(e,t,r){let n=w(e,\"nvSpPr\")??w(e,\"nvPicPr\")??w(e,\"nvGrpSpPr\")??w(e,\"nvCxnSpPr\")??w(e,\"nvGraphicFramePr\")??w(e,\"nvContentPartPr\"),o=vt(ee(e,\"spPr\",\"xfrm\")??ee(e,\"grpSpPr\",\"xfrm\")??w(e,\"xfrm\"));if(!o||o.w<=0||o.h<=0)return null;let i=w(n,\"cNvPr\"),s=N(i,\"name\")??e.localName,l=t instanceof Error?t.message:String(t);return{kind:\"unsupported\",...ze(o),id:U(i,\"id\")??void 0,label:`${s}\\uFF08\\u89E3\\u6790\\u5931\\u8D25\\uFF1A${l.slice(0,40)}\\uFF09`,...Xt(r,i,ee(n,\"nvPr\",\"ph\"),void 0,\"frame\",sn(n))}}function sd(e,t){var r,n;let o=e.localName===\"cxnSp\"?\"nvCxnSpPr\":\"nvSpPr\",i=w(e,o),s=w(i,\"cNvPr\"),l=ee(i,\"nvPr\",\"ph\"),a=N(l,\"type\"),c=N(l,\"idx\"),u=w(e,\"spPr\"),h=l?bn(t.layoutPh,a,c):null,f=l?bn(t.masterPh,a,c):null,m=vt(w(u,\"xfrm\"));if(!m&&l&&(m=vt(ee(h,\"spPr\",\"xfrm\"))??vt(ee(f,\"spPr\",\"xfrm\"))),!m)return null;let d=ma(w(e,\"style\"),t),p=u;!w(u,\"prstGeom\")&&!w(u,\"custGeom\")&&l&&(p=ee(h,\"spPr\")??ee(f,\"spPr\")??u);let b=w(p,\"prstGeom\"),v=w(p,\"custGeom\"),x=null,M=!1,S,y;if(b){let z=N(b,\"prst\")??\"rect\",j=Zo(w(b,\"avLst\")),F=nn(z,m.w,m.h,j);x=F.d,M=F.open,t.edit&&(S={preset:z,adj:j})}else if(v){let z=Zl(v,m.w,m.h);z&&(x=z.d,M=z.open),t.edit&&(y=Cf(v,m.w,m.h))}let $=xn(u,t);!$&&l&&($=xn(ee(h,\"spPr\"),t)??xn(ee(f,\"spPr\"),t)),$||($=d.fill),M&&($={type:\"none\"});let k=Bn(w(u,\"ln\"),t,d.stroke);!w(u,\"ln\")&&l&&(k=Bn(ee(h,\"spPr\",\"ln\")??ee(f,\"spPr\",\"ln\"),t,k));let A=vn(w(u,\"effectLst\"),t.ctx)??d.effects,L=t.edit&&!A&&l&&!w(e,\"style\")?vn(ee(h,\"spPr\",\"effectLst\")??ee(f,\"spPr\",\"effectLst\"),t.ctx)??void 0:void 0;!x&&($||k)&&(x=nn(\"rect\",m.w,m.h,{}).d);let P=w(e,\"txBody\"),E=null,T,I;if(P){let z=[t.docDefaults];if(l){let W=a===\"title\"||a===\"ctrTitle\"?\"title\":!a||Ol.body.includes(a)?\"body\":\"other\";z.push(t.masterStyles[W]),z.push(Ht(ee(f,\"txBody\",\"lstStyle\"),t.ctx,t.theme.fonts)),z.push(Ht(ee(h,\"txBody\",\"lstStyle\"),t.ctx,t.theme.fonts))}else z.push(...pa(d.fontColor));z.push(Ht(w(P,\"lstStyle\"),t.ctx,t.theme.fonts));let j={ctx:t.ctx,fonts:t.theme.fonts,chain:z,defaultColor:d.fontColor,slideNum:t.slideNum,bodyPrFallbacks:[ee(h,\"txBody\",\"bodyPr\"),ee(f,\"txBody\",\"bodyPr\")],resolveLink:(W,V)=>ui(t,W,V),resolveImage:W=>{var V;let B=(V=t.rels[W])==null?void 0:V.target;return B?t.pkg.mediaUrl(B):null},edit:t.edit};E=Wt(P,j),!E&&t.edit&&(T=Wt(P,j,!0)??void 0);let F=E??T;if(t.edit&&F){let W=Jl(F,j,t.layoutCatalog===!0),V=JSON.stringify(W);I=((r=t.textLevelTemplateCache)==null?void 0:r.get(V))??W,(n=t.textLevelTemplateCache)==null||n.set(V,I)}}if(!x&&!E&&!T)return null;let O=hi(s,t),R=Xt(t,s,l,S,void 0,sn(i),O.unsupported,ha(u,w(e,\"style\")),y);return R.editInfo&&T&&(R.editInfo.textTemplate=T),R.editInfo&&I&&(R.editInfo.textLevelTemplate=I),R.editInfo&&L&&(R.editInfo.placeholderInheritedEffects=L),{kind:\"shape\",...ze(m),path:x,fill:$,stroke:k,text:E,openGeom:M||void 0,effects:A,scene3d:Gh(u,t.ctx),link:O.link,name:N(s,\"name\")??void 0,id:U(s,\"id\")??void 0,...R}}var ld=new Set([\"videoFile\",\"quickTimeFile\"]),ad=new Set([\"audioFile\",\"wavAudioFile\",\"audioCd\"]),cd=e=>/^[a-z][a-z0-9+.-]*:/i.test(e);function ud(e,t){if(!e)return;let r=null,n=null,o=null,i=e.getElementsByTagName(\"*\");for(let a=0;a<i.length;a++){let c=i[a].localName;!r&&ad.has(c)?r=i[a]:!n&&ld.has(c)?n=i[a]:!o&&c===\"media\"&&(o=i[a])}let s=r?\"audio\":n||o?\"video\":null;if(!s)return;let l=[r??n,o].flatMap(a=>a?[N(a,\"r:link\"),N(a,\"r:embed\")]:[]);for(let a of l){let c=a?t.rels[a]:void 0;if(!c)continue;if(c.external){if(cd(c.target))return{kind:s,src:c.target,external:!0};continue}let u=c.target.slice(c.target.lastIndexOf(\".\")+1).toLowerCase(),h=J0[u]??(s===\"audio\"?\"audio/mpeg\":\"video/mp4\"),f=t.pkg.blobUrl(c.target,h);if(f)return{kind:s,src:f,mime:h}}return{kind:s,src:null}}function va(e,t){var r,n;let o=w(e,\"nvPicPr\"),i=w(e,\"spPr\"),s=ee(o,\"nvPr\",\"ph\"),l=vt(w(i,\"xfrm\"));if(!l&&s){let k=N(s,\"type\"),A=N(s,\"idx\");l=vt(ee(bn(t.layoutPh,k,A),\"spPr\",\"xfrm\"))??vt(ee(bn(t.masterPh,k,A),\"spPr\",\"xfrm\"))}if(!l)return null;let a=w(o,\"cNvPr\"),c=w(e,\"blipFill\"),u=da(c,t),h=N(a,\"name\")??\"\\u56FE\\u7247\",f=ud(w(o,\"nvPr\"),t);f&&(f.spid=U(a,\"id\")??void 0);let m=hi(a,t);if(!u&&!f)return{kind:\"unsupported\",...ze(l),label:`${h}\\uFF08\\u683C\\u5F0F\\u4E0D\\u652F\\u6301\\uFF09`,link:m.link,name:N(a,\"name\")??void 0,id:U(a,\"id\")??void 0,...Xt(t,a,s,void 0,\"frame\",sn(o),m.unsupported)};let d=w(c,\"srcRect\"),p=k=>(U(d,k)??0)/1e5,b=d?{l:p(\"l\"),t:p(\"t\"),r:p(\"r\"),b:p(\"b\")}:null,v=null,x=w(i,\"prstGeom\"),M=w(i,\"custGeom\"),S;if(x){let k=N(x,\"prst\")??\"rect\",A=Zo(w(x,\"avLst\"));k!==\"rect\"&&(v=nn(k,l.w,l.h,A).d),t.edit&&(S={preset:k,adj:A})}else if(M)v=((r=Zl(M,l.w,l.h))==null?void 0:r.d)??null;else if(t.edit&&s){let k=N(s,\"type\"),A=N(s,\"idx\"),L=ee(bn(t.layoutPh,k,A),\"spPr\",\"prstGeom\")??ee(bn(t.masterPh,k,A),\"spPr\",\"prstGeom\");L&&(S={preset:N(L,\"prst\")??\"rect\",adj:Zo(w(L,\"avLst\"))})}let y=U(w(w(c,\"blip\"),\"alphaModFix\"),\"amt\"),$=Array.from(((n=w(w(c,\"blip\"),\"duotone\"))==null?void 0:n.children)??[]).map(k=>ti(k,t.ctx));return{kind:\"image\",...ze(l),src:u??\"\",crop:b,clipPath:v,alpha:y!==null?y/1e5:void 0,filter:td(c),...$.length===2?{duotone:$}:{},stroke:Bn(w(i,\"ln\"),t,null),effects:vn(w(i,\"effectLst\"),t.ctx),link:m.link,name:N(a,\"name\")??void 0,id:U(a,\"id\")??void 0,media:f,...Xt(t,a,s,S,f?\"frame\":void 0,sn(o),m.unsupported,ha(i,null))}}function hd(e,t){var r;let n=vt(w(e,\"xfrm\"));if(!n||n.w<=0||n.h<=0)return null;let o=N(e,\"r:id\"),i=o?(r=t.rels[o])==null?void 0:r.target:null,s=i?t.pkg.xml(i):null;if(!s)throw new Error(\"\\u7F3A\\u5C11 InkML \\u5185\\u5BB9\");let l=Dh(s,n.w,n.h);if(!l.length)throw new Error(\"InkML \\u6CA1\\u6709\\u53EF\\u7528\\u7B14\\u8FF9\");let a=ee(e,\"nvContentPartPr\",\"cNvPr\"),c=Xt(t,a,null,void 0,\"frame\");return t.edit&&(gi(t.pkg,e,t.partPath),c.editInfo={...c.editInfo,requiresOriginal:!0}),{kind:\"group\",...ze(n),childX:0,childY:0,scaleX:1,scaleY:1,children:l,name:N(a,\"name\")??\"\\u58A8\\u8FF9\",id:U(a,\"id\")??void 0,...c}}function fd(e,t,r){let n=w(e,\"nvGrpSpPr\"),o=w(e,\"grpSpPr\"),i=vt(w(o,\"xfrm\"));if(!i)return null;let s=wt(e,t,r);if(!s.length)return null;let l=w(n,\"cNvPr\"),a=hi(l,t);return{kind:\"group\",...ze(i),childX:i.chX,childY:i.chY,scaleX:i.chW?i.w/i.chW:1,scaleY:i.chH?i.h/i.chH:1,children:s,effects:vn(w(o,\"effectLst\"),t.ctx),link:a.link,name:N(l,\"name\")??void 0,id:U(l,\"id\")??void 0,...Xt(t,l,null,void 0,void 0,sn(n),a.unsupported)}}function dd(e,t){let r=w(e,\"nvGraphicFramePr\"),n=vt(w(e,\"xfrm\"));if(!n)return null;let o=ee(e,\"graphic\",\"graphicData\"),i=N(o,\"uri\")??\"\",s=w(r,\"cNvPr\"),l=ee(r,\"nvPr\",\"ph\"),a=N(s,\"name\")??void 0,c=U(s,\"id\")??void 0,u=Xt(t,s,l,void 0,void 0,sn(r)),h=Xt(t,s,l,void 0,\"frame\",sn(r)),f=w(o,\"tbl\");if(f){let d=la(f,ze(n),t,ln,a),p=t.edit?{...d.editInfo,...u.editInfo}:void 0;return{...d,id:c,...u,...p?{editInfo:p}:{}}}if(t.edit&&(gi(t.pkg,e,t.partPath),h.editInfo={...h.editInfo,requiresOriginal:!0}),i.endsWith(\"/chart\")||i===\"http://schemas.microsoft.com/office/drawing/2014/chartex\"){let d=md(o,n,t,i.endsWith(\"/chartex\"));return d?{...d,id:c,...h}:{kind:\"unsupported\",...ze(n),label:\"\\u56FE\\u8868\",name:a,id:c,...h}}if(i.endsWith(\"/diagram\")){let d=gd(o,n,t);return d?{...d,id:c,...h}:{kind:\"unsupported\",...ze(n),label:\"SmartArt\",name:a,id:c,...h}}if(i.endsWith(\"/ole\")||i.includes(\"oleObject\")){let d=w(o,\"oleObj\");if(d){let p=w(d,\"pic\");if(p){let v=va(p,t);if(v&&v.kind===\"image\"&&v.src)return{...v,...ze(n),name:a??v.name,id:c,...h}}let b=pd(d,t);if(b)return{kind:\"image\",...ze(n),src:b,crop:null,name:a,id:c,...h}}return{kind:\"unsupported\",...ze(n),label:\"OLE \\u5BF9\\u8C61\",name:a,id:c,...h}}let m=i.includes(\"/media\")||i.includes(\"video\")?\"\\u5A92\\u4F53\\u5BF9\\u8C61\":\"\\u4E0D\\u652F\\u6301\\u7684\\u5BF9\\u8C61\";return{kind:\"unsupported\",...ze(n),label:m,name:a,id:c,...h}}function pd(e,t){var r;let n=N(e,\"spid\");if(!n)return null;let o=an(t.rels,\"/vmlDrawing\");if(!o)return null;let i=t.pkg.xml(o);if(!i)return null;for(let s of i.getElementsByTagName(\"*\"))if(!(s.localName!==\"shape\"||N(s,\"id\")!==n))for(let l of s.getElementsByTagName(\"*\")){if(l.localName!==\"imagedata\")continue;let a=N(l,\"o:relid\")??N(l,\"r:id\"),c=a?(r=t.pkg.rels(o)[a])==null?void 0:r.target:null;return c?t.pkg.mediaUrl(c):null}return null}function md(e,t,r,n=!1){var o;if(!e)return null;let i=Nh(n,r.pkg),s=N(w(e,\"chart\"),\"r:id\"),l=s?(o=r.rels[s])==null?void 0:o.target:null;if(!i||!l)return null;let a=r.pkg.xml(l);if(!a)return null;let c;try{c=i(a,t.w,t.h,{ctx:r.ctx,fonts:r.theme.fonts,rels:r.pkg.rels(l),...n?{readPart:u=>{var h;return(h=r.pkg.files)==null?void 0:h[u]}}:{}})}catch{return null}return c.length?{kind:\"group\",...ze(t),childX:0,childY:0,scaleX:1,scaleY:1,children:c,name:\"\\u56FE\\u8868\"}:null}function gd(e,t,r){var n;if(!e)return null;let o=w(e,\"relIds\"),i=null,s=N(o,\"r:dm\"),l=s?(n=r.rels[s])==null?void 0:n.target:null;if(l){let f=r.pkg.xml(l),m=f?.getElementsByTagName(\"*\");for(let d=0;m&&d<m.length;d++)if(m[d].localName===\"dataModelExt\"){let p=N(m[d],\"relId\");p&&r.rels[p]&&(i=r.rels[p].target);break}}if(i||(i=an(r.rels,\"/diagramDrawing\")),!i)return Fo(o,t,r);let a=r.pkg.xml(i),c=w(a,\"spTree\");if(!c)return Fo(o,t,r);let u={...r,rels:r.pkg.rels(i),partPath:i,layoutPh:[],masterPh:[]},h=wt(c,u,!1);return h.length?{kind:\"group\",...ze(t),childX:0,childY:0,scaleX:1,scaleY:1,children:h,name:\"SmartArt\"}:Fo(o,t,r)}function Fo(e,t,r){let n=f=>{var m;let d=N(e,f),p=d?(m=r.rels[d])==null?void 0:m.target:null;return p?r.pkg.xml(p):null},o=n(\"r:dm\"),i=Jf(o);if(!i.length)return null;let s=n(\"r:lo\"),l=n(\"r:cs\"),a=t0(l),c=(a.length?a:[\"accent1\",\"accent2\",\"accent3\",\"accent4\",\"accent5\",\"accent6\"]).map(f=>/^[0-9a-fA-F]{6}$/.test(f)?`#${f}`:`#${r.ctx.theme[r.ctx.clrMap[f]??f]??\"4472C4\"}`),u={ctx:r.ctx,fonts:r.theme.fonts,chain:[r.docDefaults,r.masterStyles.other],defaultColor:\"rgb(255,255,255)\",slideNum:r.slideNum},h=u0(i,t.w,t.h,{family:Kf(s),vertical:Qf(s),colors:c,textOf:f=>{let m=Wt(e0(o,f),u);return m?{...m,anchor:\"middle\",paragraphs:m.paragraphs.map(d=>({...d,align:\"center\"}))}:null}});return h.length?h0(h,{...ze(t),name:\"SmartArt\"}):null}var ln={fill:xn,line:Bn};function bd(e){if(!e)return\"\";let t=[],r=e.getElementsByTagName(\"*\");for(let n=0;n<r.length;n++)r[n].localName===\"t\"?t.push(r[n].textContent??\"\"):r[n].localName===\"p\"&&t.length&&t.push(`\n`);return t.join(\"\").replace(/\\n+/g,`\n`).trim()}function xd(e){let t=ee(e,\"cSld\",\"spTree\");for(let r of Q(t,\"sp\")){let n=ee(w(r,\"nvSpPr\"),\"nvPr\",\"ph\");if(N(n,\"type\")!==\"body\")continue;let o=w(r,\"txBody\");return Q(o,\"p\").map(i=>{let s=[],l=i.getElementsByTagName(\"*\");for(let a=0;a<l.length;a++){let c=l[a];c.localName===\"t\"?s.push(c.textContent??\"\"):c.localName===\"br\"?s.push(`\n`):c.localName===\"tab\"&&N(c,\"pos\")===null&&s.push(\"\t\")}return s.join(\"\")}).join(`\n`)}return\"\"}function wa(e,t){let r=new Map;for(let n of Object.values(t)){if(!/\\/(commentAuthors|authors)$/.test(n.type))continue;let o=e.xml(n.target);if(!o)continue;let i=o.getElementsByTagName(\"*\");for(let s=0;s<i.length;s++){let l=i[s];if(l.localName!==\"cmAuthor\"&&l.localName!==\"author\")continue;let a=N(l,\"id\"),c=N(l,\"name\");a===null||!c||r.set(a,{name:c,initials:N(l,\"initials\")||void 0})}}return r}function vd(e,t,r){let n=[];for(let o of Object.values(t)){if(!o.type.endsWith(\"/comments\"))continue;let i=e.xml(o.target);if(i)for(let s of Q(i,\"cm\")){let l=N(s,\"authorId\")??\"\",a=r.get(l),c=w(s,\"pos\"),u=w(s,\"text\"),h=u?.textContent??bd(w(s,\"txBody\")).trim(),f=U(s,\"idx\"),m=Array.from(s.getElementsByTagName(\"*\")).find(d=>d.localName===\"parentCm\"&&d.namespaceURI===\"http://schemas.microsoft.com/office/powerpoint/2012/main\");n.push({id:N(s,\"id\")??`${l}:${f??n.length}`,...m?{parentId:`${N(m,\"authorId\")??\"\"}:${U(m,\"idx\")}`}:{},author:a?.name??(l?`\\u4F5C\\u8005 ${l}`:\"\\u672A\\u77E5\\u4F5C\\u8005\"),initials:a?.initials,date:N(s,\"dt\")??N(s,\"created\")??void 0,text:h,x:ie(U(c,\"x\")),y:ie(U(c,\"y\")),idx:f!==null?f:void 0})}}return n.sort((o,i)=>(o.idx??0)-(i.idx??0)),n}function wd(e,t,r,n,o=!0){var i;let s=[];for(let l of Q(w(t,\"embeddedFontLst\"),\"embeddedFont\")){let a=N(w(l,\"font\"),\"typeface\");if(a)for(let[c,u,h]of[[\"regular\",!1,!1],[\"bold\",!0,!1],[\"italic\",!1,!0],[\"boldItalic\",!0,!0]]){let f=N(w(l,c),\"r:id\"),m=f?(i=r[f])==null?void 0:i.target:null,d=o&&m?e.fontUrl(m):null;d&&s.push({family:a,src:d,bold:u,italic:h});let p=n&&m?e.fontSourceUrl(m):null;p&&n.push({family:a,src:p,bold:u,italic:h})}}return s}function vi(e,t={}){let r=new Cr(e,t.keepPackage===!0);return t.assets===\"defer\"&&(r.assetMode=\"defer\"),yd(r,t)}function yd(e,t){var r;let n=\"ppt/presentation.xml\",o=e.xml(n);if(!o)throw new Error(\"\\u65E0\\u6548\\u7684 .pptx\\uFF1A\\u627E\\u4E0D\\u5230 ppt/presentation.xml\");let i=e.rels(n),s=w(o,\"sldSz\"),l=ie(U(s,\"cx\")??12192e3),a=ie(U(s,\"cy\")??6858e3),c=an(i,\"/tableStyles\"),u=c?e.xml(c):null,h=new Map,f=Q(w(o,\"sldIdLst\"),\"sldId\"),m={},d=new Map;f.forEach((E,T)=>{var I;let O=N(E,\"r:id\"),R=O?(I=i[O])==null?void 0:I.target:null;R&&(m[R]=T+1);let z=U(E,\"id\");z!==null&&d.set(z,T)});let p=wa(e,i),b=[];for(let E of f){let T=N(E,\"r:id\"),I=T?(r=i[T])==null?void 0:r.target:null;I&&b.push(I)}let v=(E,T)=>({background:{type:\"solid\",color:\"rgb(255,255,255)\"},elements:[{kind:\"unsupported\",x:l*.1,y:a*.4,w:l*.8,h:a*.2,rot:0,flipH:!1,flipV:!1,label:`\\u7B2C ${E+1} \\u9875\\u89E3\\u6790\\u5931\\u8D25\\uFF1A${T instanceof Error?T.message:String(T)}`}],...t.edit?{editInfo:{origin:{part:b[E]}}}:{}}),x=E=>{try{return Ma(e,b[E],E+1,o,u,m,p,t.edit===!0,void 0,h)}catch(T){return v(E,T)}},M;t.lazy===!1?M=b.map((E,T)=>x(T)):(M=new Array(b.length),b.forEach((E,T)=>{let I;Object.defineProperty(M,T,{enumerable:!0,configurable:!0,get(){return I===void 0&&(I=x(T)),I},set(O){I=O}})}));let S=Y0(o,d),y=t.edit?na(o,i,E=>e.xml(E),E=>e.rels(E)):void 0,$=y?$a(e,o,i,u,m,y.themeByMaster):void 0,k=y?ya(e,o,i,u,m,y.themeByMaster):void 0,A=e.opcPackage,L=t.edit||t.embeddedFonts===\"source\"?[]:void 0,P=wd(e,o,i,L,t.embeddedFonts!==\"source\");return{width:l,height:a,slides:M,source:\"pptx\",dispose:()=>{Q0(e),e.dispose()},...A?{package:A}:{},embeddedFonts:P,...L!=null&&L.length?{embeddedFontSources:L}:{},sections:S.length?S:void 0,...$&&k?{editInfo:{layouts:$,masters:k,themes:y.themes,get assets(){return K0(e)},...c?{tableStylesPart:c}:{}}}:{}}}function jo(e,t){return Jl({anchor:\"top\",insets:[0,0,0,0],wrap:!0,fontScale:1,paragraphs:[]},{ctx:e.ctx,fonts:e.theme.fonts,chain:[e.docDefaults,e.masterStyles[t]],slideNum:1,edit:!0})}function ya(e,t,r,n,o,i){return ea(t,r,s=>e.xml(s),s=>e.rels(s)).flatMap(({part:s,layoutIds:l})=>{let a=x0(e,s,t,n,o,1,!0);if(!a.masterRoot||a.masterPath!==s)return[];let c=a.envFor(s,!1);return[{id:s,name:N(ee(a.masterRoot,\"cSld\"),\"name\")??s,...i[s]?{themeId:i[s]}:{},layoutIds:[...l],background:wi(a.masterRoot,s,a),elements:wt(a.masterTree,c,!1),textStyles:{title:jo(c,\"title\"),body:jo(c,\"body\"),other:jo(c,\"other\")},defaultShape:xi(c),defaultTable:mi(c,ln),tableStyles:pi(n,c,ln)}]})}function wi(e,t,r){let{layoutRoot:n,layoutPath:o,masterRoot:i,masterPath:s,envFor:l}=r;for(let[a,c]of[[e,t],[n,o],[i,s]]){let u=ee(a,\"cSld\",\"bg\");if(!u||!c)continue;let h=l(c,!1),f=w(u,\"bgPr\");if(f){let S=xn(f,h);if(S)return S;continue}let m=w(u,\"bgRef\");if(!m)continue;let d=Number(N(m,\"idx\")??\"0\"),p=ge(m,h.ctx),b=d>1e3?h.theme.bgFillStyles:h.theme.fillStyles,v=d>1e3?d-1e3:d,x=v>0?b[Math.min(v,b.length)-1]??null:null,M=x?bi(x,ca(h,p)):p?{type:\"solid\",color:p}:null;if(M)return M}return null}function $a(e,t,r,n,o,i){return d0(t,r,s=>e.xml(s),s=>e.rels(s)).flatMap(s=>{let l=ra(e,null,s,t,n,o,1,!0);if(!l.layoutRoot||!l.masterPath)return[];let a=[];ye(l.layoutRoot,\"showMasterSp\",!0)&&a.push(...wt(l.masterTree,l.envFor(l.masterPath,!1),!0)),a.push(...wt(l.layoutTree,l.envFor(s,!1),!0));let c=wt(l.layoutTree,{...l.envFor(s,!0),layoutCatalog:!0},!1).flatMap(h=>{let f=p0(h);return f?[f]:[]}),u=l.envFor(s,!0);return[{id:s,name:N(ee(l.layoutRoot,\"cSld\"),\"name\")??s,origin:{part:s,masterPart:l.masterPath},themeId:i[l.masterPath],background:wi(null,null,l),...ee(l.layoutRoot,\"cSld\",\"bg\")?{directBackground:!0}:{},showMasterShapes:ye(l.layoutRoot,\"showMasterSp\",!0),elements:[...a,...c],transition:qo(l.layoutRoot)??void 0,defaultShape:xi(u),defaultTable:mi(u,ln),tableStyles:pi(n,u,ln)}]})}function Ma(e,t,r,n,o,i,s,l,a,c){let u=e.xml(t),h=e.rels(t),f=a??an(h,\"/slideLayout\"),m=ra(e,u,f,n,o,i,r,l,c),{layoutRoot:d,masterPath:p,masterTree:b,layoutTree:v,envFor:x}=m,M=ee(u,\"cSld\",\"spTree\"),S=[];ye(u,\"showMasterSp\",!0)&&ye(d,\"showMasterSp\",!0)&&p&&S.push(...wt(b,x(p,!1),!0)),S.push(...wt(v,x(f,!1),!0)),S.push(...wt(M,x(t,!0),!1));let y=wi(u,t,m),$=w(n,\"sldSz\"),k=ie(U($,\"cx\")??12192e3),A=ie(U($,\"cy\")??6858e3),L=Object.entries(h).find(([,z])=>z.type.endsWith(\"/notesSlide\")),P=L?.[1].target??null,E=P?xd(e.xml(P)):\"\",T=vd(e,h,s),I=qo(u),O=$f(u,k,A);for(let z of O.media??[]){let j=S.find(F=>{var W;return F.kind===\"image\"&&((W=F.media)==null?void 0:W.spid)===z.spid});j&&j.kind===\"image\"&&j.media&&(j.media.playback={volume:z.volume,loop:z.loop,clickGroup:z.clickGroup})}let R=l?x(t,!0):null;return{background:y,elements:S,notes:E||void 0,comments:T.length?T:void 0,hidden:N(u,\"show\")===\"0\"||void 0,layoutName:N(ee(d,\"cSld\"),\"name\")??void 0,transition:I??qo(d),animations:O.animations,...l?{editInfo:{origin:{part:t},...f?{layoutId:f}:{},...P&&L?{notes:{part:P,relationshipId:L[0]}}:{},...ee(u,\"cSld\",\"bg\")?{directBackground:!0}:{},...I?{directTransition:!0}:{},...O.readonly?{animationSourceReadonly:!0}:{},...ye(u,\"showMasterSp\",!0)?{}:{hideMasterShapes:!0},defaultShape:xi(R),defaultTable:mi(R,ln),tableStyles:pi(o,R,ln)}}:{}}}var Mt=e=>e*96/72,H=e=>{if(!Number.isFinite(e))return\"0\";let t=Math.round(e*100)/100;return Object.is(t,-0)?\"0\":String(t)},be=(e,t,r)=>e<t?t:e>r?r:e,qt=(e,t=0)=>Number.isFinite(e)?e:t;function Ue(e,t,r,n,o,i,s){return{kind:\"shape\",x:qt(e),y:qt(t),w:Math.max(qt(r),0),h:Math.max(qt(n),0),rot:0,flipH:!1,flipV:!1,path:o,fill:i,stroke:s,text:null}}var $d=(e,t)=>`M 0 0 L ${H(e)} 0 L ${H(e)} ${H(t)} L 0 ${H(t)} Z`;function Qn(e,t,r){return Ue(e.x,e.y,e.w,e.h,$d(e.w,e.h),t,r)}function ht(e,t,r,n,o){if(!o||![e,t,r,n].every(Number.isFinite))return null;let i=Math.min(e,r),s=Math.min(t,n);return Ue(i,s,Math.abs(r-e),Math.abs(n-t),`M ${H(e-i)} ${H(t-s)} L ${H(r-i)} ${H(n-s)}`,null,o)}function ns(e,t,r,n){let o=e.map(u=>u.filter(([h,f])=>Number.isFinite(h)&&Number.isFinite(f))).filter(u=>u.length>=3);if(!o.length)return null;let i=1/0,s=1/0,l=-1/0,a=-1/0;for(let u of o)for(let[h,f]of u)i=Math.min(i,h),s=Math.min(s,f),l=Math.max(l,h),a=Math.max(a,f);let c=o.map(u=>\"M \"+u.map(([h,f])=>`${H(h-i)} ${H(f-s)}`).join(\" L \")+\" Z\").join(\" \");return Ue(i,s,l-i,a-s,c,t,r)}var Md=(e,t=.25)=>Ve(e,\"#ffffff\",t),rs=(e,t=.2)=>Ve(e,\"#000000\",t);function pc(e,t,r){return ns([e],t,r)}function nt(e,t,r,n,o,i={}){let s={text:o,b:i.bold??!1,i:!1,u:!1,strike:!1,size:i.size??Mt(10),color:i.color??\"rgb(0,0,0)\",fonts:i.fonts??[]},l={align:i.align??\"center\",lvl:0,marL:0,indent:0,bullet:null,lineHeight:1.15,spaceBefore:0,spaceAfter:0,runs:[s]},a={anchor:i.anchor??\"middle\",insets:[0,0,0,0],wrap:!1,fontScale:1,paragraphs:[l]};return{kind:\"shape\",x:qt(e),y:qt(t),w:Math.max(qt(r),0),h:Math.max(qt(n),0),rot:i.rot??0,flipH:!1,flipV:!1,path:null,fill:null,stroke:null,text:a}}function os(e,t){let r=0;for(let n of e){let o=n.codePointAt(0)??32;o>=4352&&o<=8191||o>=11904&&o<=42191||o>=44032&&o<=55203||o>=63744&&o<=64255||o>=65072&&o<=65376?r+=1:`iljtf.,:;'\"|!I[]()`.includes(n)?r+=.3:\"mwMW@%\".includes(n)?r+=.85:n>=\"A\"&&n<=\"Z\"?r+=.66:r+=.53}return r*t}var Ne=e=>({type:\"solid\",color:e});function mc(e,t){let r=e.clrMap[t]??t,n=(e.theme[r]??e.theme[t]??\"000000\").replace(/^#/,\"\");return\"#\"+(n.length>=6?n.slice(0,6):n.padStart(6,\"0\"))}function ka(e){let t=e.trim();if(t.startsWith(\"#\")){let n=t.slice(1),o=n.length===3?n.split(\"\").map(i=>i+i).join(\"\"):n.padStart(6,\"0\");return[parseInt(o.slice(0,2),16)||0,parseInt(o.slice(2,4),16)||0,parseInt(o.slice(4,6),16)||0]}let r=t.match(/-?[\\d.]+/g);return r&&r.length>=3?[Number(r[0])||0,Number(r[1])||0,Number(r[2])||0]:[0,0,0]}function Ve(e,t,r){let n=ka(e),o=ka(t),i=be(r,0,1),s=n.map((l,a)=>Math.round(l+(o[a]-l)*i));return`rgb(${s[0]},${s[1]},${s[2]})`}function gc(e,t){let r=(t%6+6)%6,n=mc(e,`accent${r+1}`),o=Math.floor(t/6);return o<=0?n:o%2===1?Ve(n,\"#ffffff\",be(.3*Math.ceil(o/2),0,.72)):Ve(n,\"#000000\",be(.22*(o/2),0,.6))}function Kt(e,t){if(!e)return null;if(w(e,\"noFill\"))return{type:\"none\"};let r=w(e,\"solidFill\");if(r)return Ne(ge(r,t)??\"rgb(0,0,0)\");let n=w(e,\"gradFill\");if(n){let i=Q(w(n,\"gsLst\"),\"gs\").map(l=>({pos:(U(l,\"pos\")??0)/1e5,color:ge(l,t)??\"rgb(0,0,0)\"})).sort((l,a)=>l.pos-a.pos);if(!i.length)return null;let s=w(n,\"lin\");return{type:\"gradient\",angle:s?(U(s,\"ang\")??0)/6e4:90,stops:i}}let o=w(e,\"pattFill\");if(o){let i=ge(w(o,\"fgClr\"),t);if(i)return Ne(i)}return null}var kd={dash:[4,3],dashDot:[4,3,1,3],dot:[1,3],lgDash:[8,3],lgDashDot:[8,3,1,3],lgDashDotDot:[8,3,1,3,1,3],sysDash:[3,3],sysDashDot:[3,3,1,3],sysDashDotDot:[3,3,1,3,1,3],sysDot:[1,1]},is={color:null,width:null,dash:null,none:!1,present:!1};function kt(e,t){if(!e)return{...is};let r={color:null,width:null,dash:null,none:!1,present:!0};if(w(e,\"noFill\"))return r.none=!0,r;r.color=ge(w(e,\"solidFill\"),t);let n=U(e,\"w\");n!==null&&(r.width=ie(n));let o=N(w(e,\"prstDash\"),\"val\");return o&&o!==\"solid\"&&(r.dash=(kd[o]??[4,3]).map(i=>i*Math.max(r.width??1,1))),r}function Ge(e,t,r){let n=e??is;if(n.none)return null;let o=n.color??t;if(!o)return null;let i=n.width??r;return i>0?{color:o,width:i,dash:n.dash}:null}function Cd(e){let t=[],r=\"\",n=!1;for(let o=0;o<e.length;o++){let i=e[o];if(i==='\"'){n=!n,r+=i;continue}if(i===\"\\\\\"){r+=i+(e[o+1]??\"\"),o++;continue}if(i===\";\"&&!n){t.push(r),r=\"\";continue}r+=i}return t.push(r),t}var yi=e=>e.replace(/\\\\(.)/g,\"$1\").replace(/\"/g,\"\").replace(/[*_](.)/g,\"\").replace(/@/g,\"\");function Sd(e){if(Number.isInteger(e))return String(e);let t=Math.abs(e);return t!==0&&(t>=1e11||t<1e-4)?e.toExponential(2):String(Math.round(e*1e6)/1e6)}function Ed(e){return e.replace(/\\B(?=(\\d{3})+(?!\\d))/g,\",\")}function $i(e,t){let r=t.replace(/\\[[^\\]]*\\]/g,\"\"),n=e,o=n<0;n=Math.abs(n);let i=(r.match(/%/g)??[]).length;i&&(n*=Math.pow(100,i));let s=r.match(/[#0?][#0?,]*(\\.[#0?]+)?/);if(!s)return(o?\"-\":\"\")+yi(r);let l=s[0],a=s.index??0,c=yi(r.slice(0,a)),u=yi(r.slice(a+l.length)),h=l.indexOf(\".\"),f=h<0?l:l.slice(0,h),m=h<0?\"\":l.slice(h+1),d=f.match(/,+$/);d&&(n/=Math.pow(1e3,d[0].length),f=f.slice(0,-d[0].length));let p=f.includes(\",\"),b=m.length,v=(m.match(/0/g)??[]).length,x=n.toFixed(Math.min(b,20));b>v&&(x=x.replace(/(\\.\\d*?)0+$/,\"$1\").replace(/\\.$/,\"\"),(x.split(\".\")[1]??\"\").length<v&&(x=n.toFixed(v)));let[M,S]=x.split(\".\"),y=(f.match(/0/g)??[]).length;return M.length<y&&(M=M.padStart(y,\"0\")),y===0&&M===\"0\"&&S&&(M=\"\"),p&&(M=Ed(M)),(o?\"-\":\"\")+c+M+(S?\".\"+S:\"\")+u}function _t(e,t){if(!Number.isFinite(e))return\"\";let r=(t??\"\").trim();if(!r||/^general$/i.test(r))return Sd(e);if(/e[+-]/i.test(r))return e.toExponential(2);let n=Cd(r);return e<0&&n.length>1&&n[1].trim()?$i(-e,n[1]):e===0&&n.length>2&&n[2].trim()?$i(0,n[2]):$i(e,n[0]??\"\")}var Yn=e=>Number(e.toPrecision(12));function ss(e,t,r=5){let n=Number.isFinite(e)?e:0,o=Number.isFinite(t)?t:1;if(o<n&&([n,o]=[o,n]),n===o)if(n===0)n=0,o=1;else{let h=Math.abs(n)*.5;n-=h,o+=h}let i=(o-n)/Math.max(1,r),s=Math.pow(10,Math.floor(Math.log10(i))),l=i/s,a=(l<=1?1:l<=2?2:l<=5?5:10)*s,c=Yn(Math.floor(n/a+1e-9)*a),u=Yn(Math.ceil(o/a-1e-9)*a);return u>c||(u=Yn(c+a)),{min:c,max:u,step:a}}function Td(e){let t=[];if(!(e.step>0)||!Number.isFinite(e.min)||!Number.isFinite(e.max))return[e.min];let r=Math.floor((e.max-e.min)/e.step+1e-6),n=Math.min(r,60);for(let i=0;i<=n;i++)t.push(Yn(e.min+i*e.step));let o=t[t.length-1];return o!==void 0&&e.max-o>e.step*1e-6&&t.push(Yn(e.max)),t}var Ld={barChart:\"bar\",bar3DChart:\"bar\",lineChart:\"line\",line3DChart:\"line\",stockChart:\"stock\",pieChart:\"pie\",pie3DChart:\"pie\",ofPieChart:\"ofPie\",doughnutChart:\"doughnut\",areaChart:\"area\",area3DChart:\"area\",scatterChart:\"scatter\",bubbleChart:\"bubble\",radarChart:\"radar\",surfaceChart:\"surface\",surface3DChart:\"surface\"},bc=e=>e===\"scatter\"||e===\"bubble\",je=(e,t,r)=>{let n=w(e,t);return n?ye(n,\"val\",!0):r},$e=(e,t)=>U(w(e,t),\"val\"),Te=(e,t)=>N(w(e,t),\"val\");function xc(e){if(!e)return null;for(let t of[\"numRef\",\"strRef\",\"multiLvlStrRef\"]){let r=w(e,t);if(r)return w(r,\"numCache\")??w(r,\"strCache\")??w(r,\"multiLvlStrCache\")}return w(e,\"numLit\")??w(e,\"strLit\")??null}function vc(e,t){var r;let n=new Array(Math.max(0,Math.min(t,2e4))).fill(\"\");for(let o of Q(e,\"pt\")){let i=U(o,\"idx\")??-1;if(!(i<0||i>2e4)){for(;n.length<=i;)n.push(\"\");n[i]=((r=w(o,\"v\"))==null?void 0:r.textContent)??\"\"}}return n}function Gr(e){var t;let r=xc(e);if(!r)return{vals:[],fmt:null};let n=((t=w(r,\"formatCode\"))==null?void 0:t.textContent)??null;return{vals:vc(r,U(w(r,\"ptCount\"),\"val\")??0).map(o=>{if(o===\"\")return null;let i=Number(o);return Number.isFinite(i)?i:null}),fmt:n}}function Ad(e){let t=xc(e);if(!t)return[];if(t.localName===\"numCache\"||t.localName===\"numLit\"){let{vals:o,fmt:i}=Gr(e);return o.map(s=>s===null?\"\":_t(s,i))}let r=Q(t,\"lvl\"),n=r.length?r[0]:t;return vc(n,U(w(t,\"ptCount\"),\"val\")??0)}function ls(e){var t;let r=w(e,\"rich\");if(r)return Q(r,\"p\").map(i=>{var s;let l=\"\";for(let a=i.firstElementChild;a;a=a.nextElementSibling)a.localName===\"r\"||a.localName===\"fld\"?l+=((s=w(a,\"t\"))==null?void 0:s.textContent)??\"\":a.localName===\"br\"&&(l+=\" \");return l}).join(\" \").trim();let n=w(e,\"strRef\");if(n){let i=w(n,\"strCache\"),s=Q(i,\"pt\")[0];return(((t=w(s,\"v\"))==null?void 0:t.textContent)??\"\").trim()}let o=w(e,\"v\");return(o?.textContent??\"\").trim()}function qn(e,t){let r=ee(e,\"p\",\"pPr\",\"defRPr\")??ee(e,\"rich\",\"p\",\"pPr\",\"defRPr\"),n=ee(e,\"rich\",\"p\",\"r\",\"rPr\"),o=r??n;if(!o)return{size:null,color:null,bold:!1};let i=U(o,\"sz\");return{size:i!==null?Mt(i/100):null,color:ge(w(o,\"solidFill\"),t),bold:ye(o,\"b\",!1)}}var wc={del:!0,showVal:!1,showCat:!1,showSer:!1,showPercent:!1,showSize:!1,fmt:null,pos:null,size:null,color:null};function yc(e,t,r){if(!e)return r;let n=je(e,\"delete\",!1),o=qn(w(e,\"txPr\"),t),i={del:n,showVal:je(e,\"showVal\",r.showVal),showCat:je(e,\"showCatName\",r.showCat),showSer:je(e,\"showSerName\",r.showSer),showPercent:je(e,\"showPercent\",r.showPercent),showSize:je(e,\"showBubbleSize\",r.showSize),fmt:N(w(e,\"numFmt\"),\"formatCode\")??r.fmt,pos:Te(e,\"dLblPos\")??r.pos,size:o.size??r.size,color:o.color??r.color};return n?{...wc,fmt:i.fmt}:i}var ft=e=>!e.del&&(e.showVal||e.showCat||e.showSer||e.showPercent||e.showSize);function Pd(e,t){if(!e)return null;let r=w(e,\"spPr\");return{symbol:Te(e,\"symbol\")??\"auto\",size:$e(e,\"size\")??5,fill:Kt(r,t),ln:kt(w(r,\"ln\"),t)}}function Id(e,t,r,n,o){let i=w(e,\"spPr\"),s=Kt(i,r),l=kt(w(i,\"ln\"),r),a=bc(t),c=w(e,\"val\")??w(e,\"yVal\")??w(e,\"bubbleSize\"),{vals:u,fmt:h}=Gr(c),f=w(e,\"xVal\"),m=a&&f?Gr(f).vals:null,d=t===\"bubble\"?w(e,\"bubbleSize\"):null,p=d?Gr(d):null,b=Ad(w(e,\"cat\")??(a?f:null)),v=new Map;for(let S of Q(e,\"dPt\")){let y=$e(S,\"idx\");if(y===null||y<0)continue;let $=w(S,\"spPr\");v.set(y,{fill:Kt($,r),ln:kt(w($,\"ln\"),r),explosion:$e(S,\"explosion\")??0})}let x=t===\"line\"||t===\"scatter\"||t===\"radar\"||t===\"stock\",M;return s&&s.type===\"solid\"?M=s.color:x&&l.color?M=l.color:M=gc(r,n),{idx:$e(e,\"idx\")??n,order:$e(e,\"order\")??n,name:ls(w(e,\"tx\"))||`\\u7CFB\\u5217 ${n+1}`,cats:b,vals:u,xs:m,sizes:p?p.vals:null,sizeFmt:p?p.fmt:null,fill:s,ln:l,marker:Pd(w(e,\"marker\"),r),smooth:je(e,\"smooth\",!1),fmt:h,dLbls:yc(w(e,\"dLbls\"),r,o),dPts:v,color:M}}var so=e=>e.grouping===\"stacked\"||e.grouping===\"percentStacked\";function Nd(e,t){if(!e)return null;let r=w(e,\"upBars\"),n=w(e,\"downBars\");return{gapWidth:$e(e,\"gapWidth\")??150,upFill:Kt(w(r,\"spPr\"),t),downFill:Kt(w(n,\"spPr\"),t),upLn:kt(ee(r,\"spPr\",\"ln\"),t),downLn:kt(ee(n,\"spPr\",\"ln\"),t)}}function Rd(e){return{type:(Te(e,\"ofPieType\")??\"pie\")===\"bar\"?\"bar\":\"pie\",splitType:Te(e,\"splitType\")??\"auto\",splitPos:$e(e,\"splitPos\"),custSplit:Q(w(e,\"custSplit\"),\"secondPiePt\").map(t=>U(t,\"val\")??-1).filter(t=>t>=0),secondSize:$e(e,\"secondPieSize\")??75,serLines:w(e,\"serLines\")!==null}}function Od(e,t,r,n){let o=Te(e,\"grouping\")??(t===\"bar\"?\"clustered\":\"standard\"),i=yc(w(e,\"dLbls\"),r,wc),s=Q(e,\"ser\").map((a,c)=>Id(a,t,r,n+c,i));s.sort((a,c)=>a.order-c.order);let l=new Map;for(let a of Q(w(e,\"bandFmts\"),\"bandFmt\")){let c=$e(a,\"idx\"),u=Kt(w(a,\"spPr\"),r);c!==null&&c>=0&&u&&l.set(c,u)}return{kind:t,tag:e.localName,is3D:e.localName.endsWith(\"3DChart\"),grouping:o,barDir:(Te(e,\"barDir\")??\"col\")===\"bar\"?\"bar\":\"col\",gapWidth:$e(e,\"gapWidth\")??150,overlap:$e(e,\"overlap\")??(o===\"stacked\"||o===\"percentStacked\"?100:0),holeSize:$e(e,\"holeSize\")??50,firstSliceAng:$e(e,\"firstSliceAng\")??0,varyColors:je(e,\"varyColors\",t===\"pie\"||t===\"doughnut\"||t===\"ofPie\"),showMarker:je(e,\"marker\",!1),radarStyle:Te(e,\"radarStyle\")??\"marker\",scatterStyle:Te(e,\"scatterStyle\")??\"lineMarker\",axIds:Q(e,\"axId\").map(a=>N(a,\"val\")??\"\"),series:s,dLbls:i,bubbleScale:$e(e,\"bubbleScale\")??100,bubbleSizeBy:Te(e,\"sizeRepresents\")??\"area\",upDown:Nd(w(e,\"upDownBars\"),r),hiLowLines:w(e,\"hiLowLines\")?kt(ee(w(e,\"hiLowLines\"),\"spPr\",\"ln\"),r):null,ofPie:t===\"ofPie\"?Rd(e):null,wireframe:je(e,\"wireframe\",!1),bandFills:l}}var zd={catAx:\"cat\",valAx:\"val\",dateAx:\"date\",serAx:\"ser\"};function Yr(e){return{id:\"\",kind:e,del:!1,pos:null,crosses:null,crossAx:\"\",crossBetween:\"between\",min:null,max:null,majorUnit:null,reversed:!1,fmt:null,majorGrid:null,line:{...is},tickLblPos:\"nextTo\",majorTick:\"out\",lblSize:null,lblColor:null,title:null}}function Fd(e,t,r){let n=w(e,\"scaling\"),o=w(e,\"majorGridlines\"),i=qn(w(e,\"txPr\"),r);return{id:Te(e,\"axId\")??\"\",kind:t,del:je(e,\"delete\",!1),pos:Te(e,\"axPos\"),crosses:Te(e,\"crosses\"),crossAx:Te(e,\"crossAx\")??\"\",crossBetween:Te(e,\"crossBetween\")??\"between\",min:$e(n,\"min\"),max:$e(n,\"max\"),majorUnit:$e(e,\"majorUnit\"),reversed:Te(n,\"orientation\")===\"maxMin\",fmt:N(w(e,\"numFmt\"),\"formatCode\"),majorGrid:o?kt(ee(o,\"spPr\",\"ln\"),r):null,line:kt(ee(e,\"spPr\",\"ln\"),r),tickLblPos:Te(e,\"tickLblPos\")??\"nextTo\",majorTick:Te(e,\"majorTickMark\")??\"out\",lblSize:i.size,lblColor:i.color,title:(()=>{let s=w(e,\"title\");return!s||je(e,\"delete\",!1)?null:ls(w(s,\"tx\"))||null})()}}function jd(e){let t=w(e,\"manualLayout\");if(!t)return null;let r=o=>$e(t,o),n={target:Te(t,\"layoutTarget\")??\"outer\",x:r(\"x\"),y:r(\"y\"),w:r(\"w\"),h:r(\"h\")};return n.x===null&&n.y===null&&n.w===null&&n.h===null?null:n}function Ud(e){return e?{rotX:$e(e,\"rotX\")??15,rotY:$e(e,\"rotY\")??20,depthPercent:$e(e,\"depthPercent\")??100}:null}function Dd(e,t){let r=w(e,\"chart\"),n=w(r,\"plotArea\"),o=qn(w(e,\"txPr\"),t),i=[],s=[],l=0;if(n)for(let M=n.firstElementChild;M;M=M.nextElementSibling){let S=Ld[M.localName];if(!S)continue;if(S===\"other\"){s.push(M.localName);continue}let y=Od(M,S,t,l);l+=y.series.length,i.push(y)}let a=[];if(n)for(let M=n.firstElementChild;M;M=M.nextElementSibling){let S=zd[M.localName];S&&a.push(Fd(M,S,t))}let c=w(r,\"title\"),u=je(r,\"autoTitleDeleted\",!1),h=w(c,\"tx\"),f=c&&!je(c,\"delete\",!1)?ls(h):\"\",m=qn(h??w(c,\"txPr\"),t),d=qn(w(c,\"txPr\"),t),p=w(r,\"legend\"),b=new Set;for(let M of Q(p,\"legendEntry\")){let S=$e(M,\"idx\");S!==null&&je(M,\"delete\",!1)&&b.add(S)}let v=w(e,\"spPr\"),x=w(n,\"spPr\");return{title:f&&!u?f:null,titleSize:m.size??d.size??Mt(14),titleColor:m.color??d.color,titleBold:m.bold||d.bold,legendPos:p?Te(p,\"legendPos\")??\"r\":null,legendOverlay:je(p,\"overlay\",!1),legendDeleted:b,groups:i,axes:a,view3D:Ud(w(r,\"view3D\")),fill:Kt(v,t),ln:kt(w(v,\"ln\"),t),plotFill:Kt(x,t),plotLn:kt(w(x,\"ln\"),t),plotLayout:jd(w(n,\"layout\")),textSize:o.size??Mt(10),textColor:o.color??mc(t,\"tx1\"),unsupported:s}}var De=e=>e*1.4,$c=e=>e*2.9,Mc=(e,t)=>os(e,t)+t*.5;function qr(e){let t=0;for(let r of e.labels){let n=Mc(r,e.size);n>t&&(t=n)}return t}var Zr=e=>!e.axis.del&&e.axis.tickLblPos!==\"none\",Bd=.08;function Hd(e,t){let r=Math.max(Math.min(t.h,t.w*1.2)*Bd,6),n=be(e?e.rotX:15,-60,60),o=be(e?e.rotY:20,-90,90),i=be((e?e.depthPercent:100)/100,.2,3),s=r*be(o/20,-2,2)*i,l=-r*be(n/20,-2,2)*i;return Math.abs(s)<1&&Math.abs(l)<1?{dx:r*.5,dy:-r*.4}:{dx:s,dy:l}}function Wd(e,t){let r=Math.abs(t.dx),n=Math.abs(t.dy);return{x:e.x+(t.dx<0?r:0),y:e.y+(t.dy<0?n:0),w:Math.max(e.w-r,8),h:Math.max(e.h-n,8)}}function Vd(e,t,r){let n=[],o=e.x,i=e.x+e.w,s=e.y,l=e.y+e.h,a=Ne(Ve(r,\"#ffffff\",.93)),c=Ne(Ve(r,\"#ffffff\",.86)),u=Ne(Ve(r,\"#ffffff\",.89)),h=(d,p)=>{let b=pc(d,p,null);b&&n.push(b)};h([[o+t.dx,s+t.dy],[i+t.dx,s+t.dy],[i+t.dx,l+t.dy],[o+t.dx,l+t.dy]],a);let f=t.dx>=0?o:i;h([[f,s],[f+t.dx,s+t.dy],[f+t.dx,l+t.dy],[f,l]],u);let m=t.dy<=0?l:s;return h([[o,m],[i,m],[i+t.dx,m+t.dy],[o+t.dx,m+t.dy]],c),n}function kc(e,t){return e>0&&t>0&&e<=t*(5/6)?0:e}function Cc(e){if(e.lo!==e.hi)return e;if(e.lo===0)return{lo:0,hi:1};let t=Math.abs(e.lo)*.2;return{lo:e.lo-t,hi:e.hi+t}}function lo(e){let t=1/0,r=-1/0,n=!1,o=i=>{Number.isFinite(i)&&(i<t&&(t=i),i>r&&(r=i))};for(let i of e)if((i.kind===\"bar\"||i.kind===\"area\")&&(n=!0),i.grouping===\"percentStacked\"){let s=!1,l=!1;for(let a of i.series)for(let c of a.vals)c!==null&&(c<0?s=!0:c>0&&(l=!0));o(0),(l||!s)&&o(1),s&&o(-1)}else if(so(i)){let s=0;for(let l of i.series)s=Math.max(s,l.vals.length);for(let l=0;l<s;l++){let a=0,c=0;for(let u of i.series){let h=u.vals[l];h==null||!Number.isFinite(h)||(h>=0?a+=h:c+=h)}o(a),o(c)}}else for(let s of i.series)for(let l of s.vals)l!==null&&o(l);return t===1/0?{lo:0,hi:1}:(n?(t=Math.min(t,0),r=Math.max(r,0)):t=kc(t,r),Cc({lo:t,hi:r}))}function Gd(e){let t=1/0,r=-1/0;for(let n of e)for(let o of n.series)if(o.xs)for(let i of o.xs)i===null||!Number.isFinite(i)||(i<t&&(t=i),i>r&&(r=i));else o.vals.length&&(t=Math.min(t,1),r=Math.max(r,o.vals.length));return t===1/0?{lo:0,hi:1}:Cc({lo:kc(t,r),hi:r})}function Xd(e,t,r){let n=ss(e.lo,e.hi,r),o=t.min!==null&&Number.isFinite(t.min)?t.min:n.min,i=t.max!==null&&Number.isFinite(t.max)?t.max:n.max;i<o&&([o,i]=[i,o]);let s=t.majorUnit!==null&&Number.isFinite(t.majorUnit)?t.majorUnit:n.step;for(i===o&&(i=o+Math.abs(s)||o+1),s>0||(s=(i-o)/Math.max(1,r)),s>0||(s=1);(i-o)/s>100;)s*=2;return{min:o,max:i,step:s}}var ao=(e,t)=>Math.round(be(e/Math.max(t*3.2,1),2,12));function Sc(e,t,r,n,o,i){let s=Xd(r,e,n),l=Td(s),a=e.fmt??o;return{axis:e,side:t,scale:s,ticks:l,labels:l.map(c=>_t(c,a)),between:!1,catCount:l.length,size:e.lblSize??i.textSize,color:e.lblColor??i.textColor}}function Yd(e,t,r,n,o){return{axis:e,side:t,scale:null,ticks:r.map((i,s)=>s),labels:r.slice(),between:n,catCount:r.length,size:e.lblSize??o.textSize,color:e.lblColor??o.textColor}}function Ca(e,t,r,n){let o=t?e.h:e.w,i=Math.max(r.catCount,1),s=r.between?o/i:i>1?o/(i-1):o,l=r.axis.reversed,a=d=>{let p=l?o-d:d;return t?e.y+e.h-p:e.x+p},c=d=>a(r.between?(d+.5)*s:d*s),u=d=>a(d*s),{at:h,clampValue:f}=Ui(e,t,n),m=(d,p)=>t?[p,d]:[d,p];return{rect:e,horizontal:t,catView:r,valView:n,band:s,cat:c,edge:u,val:h,clampVal:f,zero:h(f(0)),pt:m}}function Ui(e,t,r){let n=r.scale??{min:0,max:1},o=n.max-n.min||1;return{at:i=>{let s=(i-n.min)/o;return Number.isFinite(s)||(s=0),r.axis.reversed&&(s=1-s),t?e.x+s*e.w:e.y+e.h-s*e.h},clampValue:i=>Number.isFinite(i)?be(i,n.min,n.max):n.min}}function qd(e,t,r){let n=Ui(e,!0,t),o=Ui(e,!1,r);return{rect:e,x:n.at,y:o.at,clampX:n.clampValue,clampY:o.clampValue}}function Di(e,t,r,n,o=null){let i=e.textSize*.45,s=De(e.textSize*1.05)+i*.6,l={l:e.textSize*.4,r:e.textSize*.8,t:e.textSize*.8,b:e.textSize*.3},a=(c,u,h,f=!1)=>{Zr(c)&&(l[u]+=(h?f?$c(c.size):De(c.size):qr(c))+i),c.axis.title&&(l[u]+=s)};if(a(r,r.side===\"r\"?\"r\":\"l\",!1),o&&a(o,o.side,o.side===\"t\"||o.side===\"b\"),a(t,t.side===\"t\"?\"t\":\"b\",!0,n),Zr(t)&&t.scale){let c=qr(t)/2;l.l+=c,l.r+=c}return l}function Bi(e,t){let r=e.w*.72,n=e.h*.72,{l:o,r:i,t:s,b:l}=t;if(o+i>r){let a=r/(o+i);o*=a,i*=a}if(s+l>n){let a=n/(s+l);s*=a,l*=a}return{x:e.x+o,y:e.y+s,w:Math.max(e.w-o-i,8),h:Math.max(e.h-s-l,8)}}function Zd(e,t,r,n,o,i){let s=o?o.dx:0,l=o?o.dy:0,a=ht(e+s,t+l,r+s,n+l,i);return a?[a]:[]}function as(e,t,r){let n=[],{rect:o,hAxis:i,vAxis:s}=t,l=Ve(e.textColor,\"#ffffff\",.78),a=Ve(e.textColor,\"#ffffff\",.45),c=e.textSize*.45,u=t.depth;for(let d of[!1,!0]){let p=d?i:s,b=p.axis.majorGrid?Ge(p.axis.majorGrid,l,1):null;if(!b)continue;let v=d?t.hEdge:t.vEdge,x=v??(d?t.hPos:t.vPos),M=v?d?t.hEdgeCount:t.vEdgeCount:p.ticks.length;for(let S=0;S<M;S++){let y=x(S),$=d?y:o.x,k=d?o.y:y;if(n.push(...Zd($,k,d?y:o.x+o.w,d?o.y+o.h:y,u,b)),u&&t.gridWalls!==!1){let A=d?y:u.dx<0?o.x+o.w:o.x,L=d?u.dy>0?o.y:o.y+o.h:y,P=ht(A,L,A+u.dx,L+u.dy,b);P&&n.push(P)}}}let h=[],f=[],m=[];for(let d of[!0,!1]){let p=d?i:s,b=d?t.hPos:t.vPos,v=d?t.hLineAt:t.vLineAt;if(!p.axis.del){let $=Ge(p.axis.line,a,1),k=d?ht(o.x,v,o.x+o.w,v,$):ht(v,o.y,v,o.y+o.h,$);k&&h.push(k)}let x=p.size,M=d&&t.hWrap,S=M?$c(x):De(x),y=0;if(Zr(p)){y=(d?S:qr(p))+c;for(let $=0;$<p.labels.length;$++){let k=p.labels[$];if(!k)continue;let A=M?Math.max(t.hBand*.98,x*2):Mc(k,x),L=d?b($)-A/2:p.side===\"r\"?o.x+o.w+c:o.x-c-A,P=d?p.side===\"t\"?o.y-c-S:o.y+o.h+c:b($)-S/2,E=nt(L,P,A,S,k,{size:x,color:p.color,align:d?\"center\":p.side===\"r\"?\"left\":\"right\",anchor:d?p.side===\"t\"?\"bottom\":\"top\":\"middle\",fonts:r});M&&E.text&&(E.text.wrap=!0),f.push(E)}}if(p.axis.title){let $=e.textSize*1.05,k=De($);if(d){let A=p.side===\"t\"?o.y-y-c-k:o.y+o.h+y+c*.4;m.push(nt(o.x,A,o.w,k,p.axis.title,{size:$,color:e.textColor,align:\"center\",anchor:\"middle\",fonts:r}))}else{let A=p.side===\"r\"?o.x+o.w+y+c*.4+k/2:o.x-y-c*.4-k/2;m.push(nt(A-o.h/2,o.y+o.h/2-k/2,o.h,k,p.axis.title,{size:$,color:e.textColor,align:\"center\",anchor:\"middle\",fonts:r,rot:p.side===\"r\"?90:-90}))}}}return n.push(...h,...f,...m),n}function _d(e,t,r){let n=t.view.side===\"l\"||t.view.side===\"r\",o=t.grid?t.view:{...t.view,axis:{...t.view.axis,majorGrid:null}},i={...o,axis:{...o.axis,del:!0,majorGrid:null,title:null}};return as(e,{rect:t.rect,hAxis:n?i:o,vAxis:n?o:i,hPos:t.pos,vPos:t.pos,hEdge:null,hEdgeCount:0,vEdge:null,vEdgeCount:0,hLineAt:t.at,vLineAt:t.at,hWrap:!1,hBand:0,depth:t.depth,gridWalls:!1},r)}function Kd(e,t){return!Zr(e)||e.scale?!1:qr(e)>t*1.02}var Qt=Math.PI*2,Sa=[\"circle\",\"square\",\"diamond\",\"triangle\",\"x\",\"plus\",\"star\",\"dot\"];function rt(e,t,r,n){let o=t.dPts.get(r),i=e.varyColors?gc(n,r):t.color,s=o?.fill??t.fill??Ne(i);return{fill:s,color:s.type===\"solid\"?s.color:i}}function un(e,t,r,n){let o=e.dPts.get(t);return Ge(o!=null&&o.ln.present?o.ln:e.ln,r,n)}var ve=e=>e==null||!Number.isFinite(e)?null:e;function Qd(e){let t=1/0,r=1/0,n=-1/0,o=-1/0;for(let[i,s]of e)i<t&&(t=i),s<r&&(r=s),i>n&&(n=i),s>o&&(o=s);return{x:t,y:r,w:n-t,h:o-r}}function Jd(e,t,r){let n=e.map(([i,s])=>[i-t,s-r]),o=`M ${H(n[0][0])} ${H(n[0][1])}`;for(let i=0;i<n.length-1;i++){let s=n[i===0?0:i-1],l=n[i],a=n[i+1],c=n[i+2<n.length?i+2:n.length-1],u=[l[0]+(a[0]-s[0])/6,l[1]+(a[1]-s[1])/6],h=[a[0]-(c[0]-l[0])/6,a[1]-(c[1]-l[1])/6];o+=` C ${H(u[0])} ${H(u[1])} ${H(h[0])} ${H(h[1])} ${H(a[0])} ${H(a[1])}`}return o}function cs(e,t,r,n,o){let i=e.map(a=>a.filter(([c,u])=>Number.isFinite(c)&&Number.isFinite(u))).filter(a=>a.length>=(n?3:2));if(!i.length)return null;let s=Qd(i.flat()),l=i.map(a=>(o&&a.length>2?Jd(a,s.x,s.y):\"M \"+a.map(([c,u])=>`${H(c-s.x)} ${H(u-s.y)}`).join(\" L \"))+(n?\" Z\":\"\")).join(\" \");return Ue(s.x,s.y,s.w,s.h,l,t,r)}function Jn(e,t,r){return`M ${H(e-r)} ${H(t)} A ${H(r)} ${H(r)} 0 1 1 ${H(e+r)} ${H(t)} A ${H(r)} ${H(r)} 0 1 1 ${H(e-r)} ${H(t)} Z`}function ep(e,t){let r=t,n=t*2;switch(e){case\"square\":return{d:`M 0 0 L ${H(n)} 0 L ${H(n)} ${H(n)} L 0 ${H(n)} Z`,open:!1};case\"diamond\":return{d:`M ${H(r)} 0 L ${H(n)} ${H(r)} L ${H(r)} ${H(n)} L 0 ${H(r)} Z`,open:!1};case\"triangle\":return{d:`M ${H(r)} 0 L ${H(n)} ${H(n)} L 0 ${H(n)} Z`,open:!1};case\"x\":return{d:`M 0 0 L ${H(n)} ${H(n)} M ${H(n)} 0 L 0 ${H(n)}`,open:!0};case\"plus\":return{d:`M ${H(r)} 0 L ${H(r)} ${H(n)} M 0 ${H(r)} L ${H(n)} ${H(r)}`,open:!0};case\"star\":return{d:`M ${H(r)} 0 L ${H(r)} ${H(n)} M 0 ${H(r)} L ${H(n)} ${H(r)} M 0 0 L ${H(n)} ${H(n)} M ${H(n)} 0 L 0 ${H(n)}`,open:!0};case\"dash\":return{d:`M 0 ${H(r)} L ${H(n)} ${H(r)}`,open:!0};case\"dot\":return{d:Jn(r,r,t*.55),open:!1};default:return{d:Jn(r,r,t),open:!1}}}function co(e,t,r){let n=e.kind===\"scatter\"?e.scatterStyle!==\"line\"&&e.scatterStyle!==\"smooth\":e.showMarker,o=t.marker?t.marker.symbol:n?\"auto\":\"none\";return o===\"auto\"&&(o=n?Sa[r%Sa.length]:\"none\"),o}function uo(e,t,r,n,o){var i,s;if(r===\"none\"||!Number.isFinite(e)||!Number.isFinite(t))return null;let l=Math.max(Mt(be(((i=n.marker)==null?void 0:i.size)??5,2,72))/2,1),{d:a,open:c}=ep(r,l),u=(s=n.marker)==null?void 0:s.fill,h=n.marker?Ge(n.marker.ln,null,0):null;return c?Ue(e-l,t-l,l*2,l*2,a,null,h??{color:o,width:1.25,dash:null}):Ue(e-l,t-l,l*2,l*2,a,u??Ne(o),h)}function It(e,t,r,n,o,i=null,s=o.cats[t]??\"\"){let l=e.dLbls,a=[];return l.showSer&&a.push(e.name),l.showCat&&a.push(s),l.showVal&&a.push(_t(r,l.fmt??e.fmt)),l.showSize&&i!==null&&a.push(_t(i,e.sizeFmt??l.fmt??e.fmt)),l.showPercent&&n!==null&&a.push(_t(n,l.fmt&&l.fmt.includes(\"%\")?l.fmt:\"0%\")),a.filter(c=>c!==\"\").join(\" \")}function Nt(e,t,r,n,o){if(!r||!Number.isFinite(e)||!Number.isFinite(t))return null;let i=n.size??o.size*.92,s=Math.max(r.length*i*.75,i*2),l=De(i);return nt(e-s/2,t-l/2,s,l,r,{size:i,color:n.color??o.color,align:\"center\",anchor:\"middle\",fonts:o.fonts})}function tp(e,t,r,n,o){let i=[],s=e.x,l=e.x+e.w,a=e.y,c=e.y+e.h,u=(m,d)=>{let p=pc(m,Ne(d),o);p&&i.push(p)},h=t.dx>=0?l:s;u([[h,a],[h+t.dx,a+t.dy],[h+t.dx,c+t.dy],[h,c]],rs(n));let f=t.dy<=0?a:c;return u([[s,f],[l,f],[l+t.dx,f+t.dy],[s+t.dx,f+t.dy]],Md(n)),i.push(Ue(e.x,e.y,e.w,e.h,`M 0 0 L ${H(e.w)} 0 L ${H(e.w)} ${H(e.h)} L 0 ${H(e.h)} Z`,r,o)),i}function np(e,t,r,n,o=null){let i=[],s=be(e.gapWidth,0,800)/100,l=be(e.overlap,-100,100)/100,a=Math.max(r.total,1),c=1+(a-1)*(1-l)+s,u=t.band/(c>0?c:1);u>0||(u=t.band*.6),u=Math.min(u,t.band);let h=u*(1+(a-1)*(1-l)),f=u*(1-l),m=so(e),d=e.grouping===\"percentStacked\",p=e.series.reduce((y,$)=>Math.max(y,$.vals.length),0),b=new Array(p).fill(0),v=new Array(p).fill(0),x=new Array(p).fill(0);if(d)for(let y=0;y<p;y++){let $=0;for(let k of e.series)$+=Math.abs(ve(k.vals[y])??0);x[y]=$}let M=[],S=[];if(e.series.forEach((y,$)=>{let k=r.base+(m?0:$),A=t.horizontal?-1:1;for(let L=0;L<p;L++){let P=ve(y.vals[L]);if(P===null)continue;let E=d?x[L]>0?P/x[L]:0:P,T=0;m&&(T=E>=0?b[L]:v[L],E>=0?b[L]+=E:v[L]+=E);let I=t.cat(L)+A*(-h/2+k*f+u/2),O=t.val(t.clampVal(T)),R=t.val(t.clampVal(T+E)),[z,j]=t.pt(I-u/2,O),[F,W]=t.pt(I+u/2,R),V={x:Math.min(z,F),y:Math.min(j,W),w:Math.abs(F-z),h:Math.abs(W-j)},{fill:B,color:q}=rt(e,y,L,n.ctx);if(V.w>.05&&V.h>.05&&S.push({r:V,fill:B,color:q,stroke:un(y,L,null,0),anchor:t.pt(I,O)}),ft(y.dLbls)){let X=It(y,L,P,d&&x[L]>0?Math.abs(P)/x[L]:null,n),K=y.dLbls.size??n.size*.92,Y=De(K)*.6,se=y.dLbls.pos??(m?\"ctr\":\"outEnd\"),ue=(V.x+V.x+V.w)/2,fe=(V.y+V.y+V.h)/2;if(se!==\"ctr\"){let it=se===\"inEnd\"||se===\"inBase\"?-1:1;t.horizontal?ue=(E>=0?V.x+V.w:V.x)+it*(E>=0?Y:-Y):fe=(E>=0?V.y:V.y+V.h)-it*(E>=0?Y:-Y)}let de=Nt(ue,fe,X,y.dLbls,n);de&&M.push(de)}}}),o){let y=$=>$.anchor[0]*o.dx+$.anchor[1]*o.dy;S.sort(($,k)=>y($)-y(k));for(let $ of S)i.push(...tp($.r,o,$.fill,$.color,$.stroke))}else for(let y of S)i.push(Ue(y.r.x,y.r.y,y.r.w,y.r.h,`M 0 0 L ${H(y.r.w)} 0 L ${H(y.r.w)} ${H(y.r.h)} L 0 ${H(y.r.h)} Z`,y.fill,y.stroke));return i.concat(M)}function Ec(e){let t=e.series.reduce((a,c)=>Math.max(a,c.vals.length),0),r=so(e),n=e.grouping===\"percentStacked\",o=new Array(t).fill(0);if(n)for(let a=0;a<t;a++){let c=0;for(let u of e.series)c+=Math.abs(ve(u.vals[a])??0);o[a]=c}let i=new Array(t).fill(0),s=[],l=[];for(let a of e.series){let c=[],u=[];for(let h=0;h<t;h++){let f=ve(a.vals[h]);if(f===null){c.push(null),u.push(null);continue}let m=n?o[h]>0?f/o[h]:0:f;r?(u.push(i[h]),i[h]+=m,c.push(i[h])):(u.push(0),c.push(m))}s.push(c),l.push(u)}return{top:s,bottom:l}}function rp(e,t,r){let n=[],o=[],{top:i}=Ec(e),s=e.grouping===\"percentStacked\";return e.series.forEach((l,a)=>{let c=i[a]??[],u=[],h=[],f=[];for(let b=0;b<c.length;b++){let v=c[b];if(v===null){h.length&&u.push(h),h=[],f.push(null);continue}let x=t.pt(t.cat(b),t.val(t.clampVal(v)));h.push(x),f.push(x)}h.length&&u.push(h);let m=Ge(l.ln,l.color,Mt(2.25)),d=cs(u,null,m,!1,l.smooth);d&&n.push(d);let p=co(e,l,a);for(let b=0;b<f.length;b++){let v=f[b];if(!v)continue;let{color:x}=rt(e,l,b,r.ctx),M=uo(v[0],v[1],p,l,e.varyColors?x:l.color);if(M&&o.push(M),ft(l.dLbls)){let S=ve(l.vals[b])??0,y=It(l,b,S,s?c[b]??0:null,r),$=l.dLbls.size??r.size*.92,k=Nt(v[0],v[1]-De($)*.85,y,l.dLbls,r);k&&o.push(k)}}}),n.concat(o)}function op(e,t,r){let n=[],o=[],{top:i,bottom:s}=Ec(e),l=e.grouping===\"percentStacked\";return e.series.forEach((a,c)=>{let u=i[c]??[],h=s[c]??[],f=[],m=[],d=[],p=()=>{m.length>=2&&f.push(m.concat(d.slice().reverse())),m=[],d=[]};for(let x=0;x<u.length;x++){let M=u[x];if(M===null){p();continue}m.push(t.pt(t.cat(x),t.val(t.clampVal(M)))),d.push(t.pt(t.cat(x),t.val(t.clampVal(h[x]??0))))}p();let{fill:b}=rt(e,a,0,r.ctx),v=cs(f,b,Ge(a.ln,null,0),!0,a.smooth);if(v&&n.push(v),ft(a.dLbls))for(let x=0;x<u.length;x++){let M=u[x];if(M===null)continue;let[S,y]=t.pt(t.cat(x),t.val(t.clampVal(M))),$=ve(a.vals[x])??0,k=a.dLbls.size??r.size*.92,A=Nt(S,y-De(k)*.8,It(a,x,$,l?M:null,r),a.dLbls,r);A&&o.push(A)}}),n.concat(o)}function ip(e,t,r){let n=[],o=[],i=e.scatterStyle!==\"marker\"&&e.scatterStyle!==\"none\";return e.series.forEach((s,l)=>{let a=[],c=[],u=[];for(let f=0;f<s.vals.length;f++){let m=ve(s.vals[f]),d=s.xs?ve(s.xs[f]):f+1;if(m===null||d===null){c.length&&a.push(c),c=[],u.push(null);continue}let p=[t.x(t.clampX(d)),t.y(t.clampY(m))];c.push(p),u.push(p)}if(c.length&&a.push(c),i){let f=Ge(s.ln,s.color,Mt(2.25)),m=cs(a,null,f,!1,s.smooth||e.scatterStyle===\"smoothMarker\");m&&n.push(m)}let h=co(e,s,l);for(let f=0;f<u.length;f++){let m=u[f];if(!m)continue;let{color:d}=rt(e,s,f,r.ctx),p=uo(m[0],m[1],h===\"none\"&&!i?\"circle\":h,s,e.varyColors?d:s.color);if(p&&o.push(p),ft(s.dLbls)){let b=s.dLbls.size??r.size*.92,v=Nt(m[0],m[1]-De(b)*.85,It(s,f,ve(s.vals[f])??0,null,r,null,s.cats[f]??String(f+1)),s.dLbls,r);v&&o.push(v)}}}),n.concat(o)}function sp(e,t,r){let n=be(e.bubbleScale,0,300)/100,o=Math.max(2,Math.min(t.rect.w,t.rect.h)*.13*n),i=0;for(let u of e.series)for(let h of u.sizes??[]){let f=ve(h);f!==null&&(i=Math.max(i,Math.abs(f)))}let s=e.bubbleSizeBy!==\"w\",l=[];for(let u of e.series)for(let h=0;h<u.vals.length;h++){let f=ve(u.vals[h]),m=u.xs?ve(u.xs[h]):h+1;if(f===null||m===null)continue;let d=u.sizes?Math.abs(ve(u.sizes[h])??0):0,p=i>0?d/i:1,b=Math.max(1.5,o*(s?Math.sqrt(p):p)),{fill:v,color:x}=rt(e,u,h,r.ctx),M=e.varyColors?x:u.color;l.push({x:t.x(t.clampX(m)),y:t.y(t.clampY(f)),r:b,fill:e.varyColors?Ne(M):v,color:M,stroke:un(u,h,rs(M,.35),Math.max(1,Mt(.75))),label:ft(u.dLbls)?It(u,h,f,null,r,u.sizes?ve(u.sizes[h]):null,u.cats[h]??String(h+1)):\"\",lblSpec:u})}l.sort((u,h)=>h.r-u.r);let a=[],c=[];for(let u of l)if(a.push(Ue(u.x-u.r,u.y-u.r,u.r*2,u.r*2,Jn(u.r,u.r,u.r),u.fill,u.stroke)),u.label){let h=Nt(u.x,u.y,u.label,u.lblSpec.dLbls,r);h&&c.push(h)}return a.concat(c)}function lp(e,t,r){var n;let o=e.series.length;if(o<3)return[];let i=o>=4?e.series.slice(o-4):e.series,s=o>=4?i[0]:null,l=i[o>=4?1:0],a=i[o>=4?2:1],c=i[o>=4?3:2],u=Ve(r.color,\"rgb(255,255,255)\",.15),h=Ge(e.hiLowLines,u,1)??{color:u,width:1,dash:null},f=Math.max(l.vals.length,a.vals.length,c.vals.length),m=be(((n=e.upDown)==null?void 0:n.gapWidth)??150,0,500)/100,d=Math.max(1.5,Math.min(t.band/(1+m),t.band*.9)),p=Math.max(1.5,d/2),b=[];for(let v=0;v<f;v++){let x=ve(l.vals[v]),M=ve(a.vals[v]),S=ve(c.vals[v]),y=s?ve(s.vals[v]):null;if(x===null||M===null)continue;let $=t.cat(v),k=t.val(t.clampVal(Math.max(x,M))),A=t.val(t.clampVal(Math.min(x,M))),[L,P]=t.pt($,k),[E,T]=t.pt($,A),I=ht(L,P,E,T,h);if(I&&b.push(I),e.upDown&&y!==null&&S!==null){let O=S>=y,R=t.val(t.clampVal(y)),z=t.val(t.clampVal(S)),[j,F]=t.pt($-d/2,Math.min(R,z)),[W,V]=t.pt($+d/2,Math.max(R,z)),B={x:Math.min(j,W),y:Math.min(F,V),w:Math.max(Math.abs(W-j),1),h:Math.max(Math.abs(V-F),1)},q=(O?e.upDown.upFill:e.upDown.downFill)??Ne(O?\"rgb(255,255,255)\":u),X=Ge(O?e.upDown.upLn:e.upDown.downLn,u,1)??{color:u,width:1,dash:null};b.push(Ue(B.x,B.y,B.w,B.h,`M 0 0 L ${H(B.w)} 0 L ${H(B.w)} ${H(B.h)} L 0 ${H(B.h)} Z`,q,X))}else{if(y!==null){let[O,R]=t.pt($,t.val(t.clampVal(y))),z=ht(O-(t.horizontal?0:p),R-(t.horizontal?p:0),O,R,h);z&&b.push(z)}if(S!==null){let[O,R]=t.pt($,t.val(t.clampVal(S))),z=ht(O,R,O+(t.horizontal?0:p),R+(t.horizontal?p:0),h);z&&b.push(z)}}if(ft(c.dLbls)&&S!==null){let[O,R]=t.pt($,t.val(t.clampVal(S))),z=c.dLbls.size??r.size*.92,j=Nt(O+d,R-De(z)*.2,It(c,v,S,null,r),c.dLbls,r);j&&b.push(j)}}return b}function Hi(e,t,r,n,o,i){let s=(c,u)=>`${H(e+c*Math.cos(u))} ${H(t+c*Math.sin(u))}`,l=i-o;if(l>=Qt-1e-6){let c=Jn(e,t,n);return r>.01?`${c} ${Jn(e,t,r)}`:c}let a=l>Math.PI?1:0;return r<=.01?`M ${H(e)} ${H(t)} L ${s(n,o)} A ${H(n)} ${H(n)} 0 ${a} 1 ${s(n,i)} Z`:`M ${s(n,o)} A ${H(n)} ${H(n)} 0 ${a} 1 ${s(n,i)} L ${s(r,i)} A ${H(r)} ${H(r)} 0 ${a} 0 ${s(r,o)} Z`}var Mi=.55,Ea=.17,Tc=(e,t,r,n,o)=>`${H(e+r*Math.cos(o))} ${H(t+n*Math.sin(o))}`;function ap(e,t,r,n,o,i){let s=c=>Tc(e,t,r,n,c),l=i-o;if(l>=Qt-1e-6)return`M ${H(e-r)} ${H(t)} A ${H(r)} ${H(n)} 0 1 1 ${H(e+r)} ${H(t)} A ${H(r)} ${H(n)} 0 1 1 ${H(e-r)} ${H(t)} Z`;let a=l>Math.PI?1:0;return`M ${H(e)} ${H(t)} L ${s(o)} A ${H(r)} ${H(n)} 0 ${a} 1 ${s(i)} Z`}function cp(e,t){let r=[];for(let n=-1;n<=2;n++){let o=Math.max(e,n*Qt),i=Math.min(t,n*Qt+Math.PI);i-o>1e-4&&r.push([o,i])}return r}function up(e,t,r,n,o,i,s){let l=(c,u)=>Tc(e,t+u,r,n,c),a=i-o>Math.PI?1:0;return`M ${l(o,0)} A ${H(r)} ${H(n)} 0 ${a} 1 ${l(i,0)} L ${l(i,s)} A ${H(r)} ${H(n)} 0 ${a} 0 ${l(o,s)} Z`}function hp(e,t,r){var n;let o=e.series[0];if(!o)return[];let i=ft(o.dLbls)?.8:.94,s=Math.min(t.w/2,t.h/(2*Mi+Ea))*i;if(!(s>0))return[];let l=s*Mi,a=s*Ea,c=t.x+t.w/2,u=t.y+(t.h-(2*l+a))/2+l,h=o.vals.map(v=>Math.abs(ve(v)??0)),f=h.reduce((v,x)=>v+x,0);if(!(f>0))return[];let m=[],d=[],p=[],b=(be(e.firstSliceAng,0,360)-90)*(Math.PI/180);for(let v=0;v<h.length;v++){let x=h[v]/f,M=x*Qt;if(!(M>0))continue;let S=b+M,y=b+M/2,$=be(((n=o.dPts.get(v))==null?void 0:n.explosion)??0,0,400)/100*s*.5,k=c+Math.cos(y)*$,A=u+Math.sin(y)*$*Mi,{fill:L,color:P}=rt(e,o,v,r.ctx),E=un(o,v,null,0);for(let[T,I]of cp(b,S)){let O=Ue(k-s,A-l,s*2,l*2+a,up(s,l,s,l,T,I,a),Ne(rs(P)),E);m.push({el:O,depth:Math.sin((T+I)/2)})}if(d.push(Ue(k-s,A-l,s*2,l*2,ap(s,l,s,l,b,S),L,E)),ft(o.dLbls)){let T=o.dLbls.pos===\"outEnd\"||o.dLbls.pos===\"bestFit\",I=T?1.2:.62,O=Math.sin(y),R=O>0?a*(T?1:.5):0,z=It(o,v,ve(o.vals[v])??0,x,r),j=Nt(k+Math.cos(y)*s*I,A+O*l*I+R,z,o.dLbls,r);j&&p.push(j)}b=S}return m.sort((v,x)=>v.depth-x.depth),m.map(v=>v.el).concat(d,p)}function fp(e,t,r){let n=[],o=[],i=e.kind===\"doughnut\"?e.series:e.series.slice(0,1);if(!i.length)return n;let s=i.some(f=>ft(f.dLbls)),l=Math.min(t.w,t.h)/2*(s?.78:.92);if(!(l>0))return n;let a=t.x+t.w/2,c=t.y+t.h/2,u=e.kind===\"doughnut\"?be(e.holeSize,0,90)/100:0,h=l*(1-u)/i.length;return i.forEach((f,m)=>{var d;let p=l*u+m*h,b=p+h,v=f.vals.map(S=>Math.abs(ve(S)??0)),x=v.reduce((S,y)=>S+y,0);if(!(x>0))return;let M=(be(e.firstSliceAng,0,360)-90)*(Math.PI/180);for(let S=0;S<v.length;S++){let y=v[S]/x,$=y*Qt;if(!($>0))continue;let k=M+$/2,A=be(((d=f.dPts.get(S))==null?void 0:d.explosion)??0,0,400)/100*b*.5,L=a+Math.cos(k)*A,P=c+Math.sin(k)*A,{fill:E}=rt(e,f,S,r.ctx);if(n.push(Ue(L-b,P-b,b*2,b*2,Hi(b,b,p,b,M,M+$),E,un(f,S,null,0))),ft(f.dLbls)){let T=f.dLbls.pos===\"outEnd\"||f.dLbls.pos===\"bestFit\"?b*1.16:(p+b)/2+(p>0?0:b*.12),I=It(f,S,ve(f.vals[S])??0,y,r),O=Nt(L+Math.cos(k)*T,P+Math.sin(k)*T,I,f.dLbls,r);O&&o.push(O)}M+=$}}),n.concat(o)}function dp(e,t){let r=e.ofPie,n=new Set;if(!r||!t.length)return n;let o=t.reduce((i,s)=>i+s,0);switch(r.splitType){case\"val\":{let i=r.splitPos??0;t.forEach((s,l)=>{s<i&&n.add(l)});break}case\"percent\":{let i=(r.splitPos??0)/100;t.forEach((s,l)=>{o>0&&s/o<i&&n.add(l)});break}case\"custom\":for(let i of r.custSplit)i>=0&&i<t.length&&n.add(i);break;default:{let i=be(Math.round(r.splitPos??2),1,Math.max(t.length-1,1));for(let s=Math.max(t.length-i,1);s<t.length;s++)n.add(s)}}return n.size>=t.length&&n.delete(0),n}function pp(e,t,r){let n=e.series[0],o=e.ofPie;if(!n||!o)return[];let i=n.vals.map(R=>Math.abs(ve(R)??0)),s=i.reduce((R,z)=>R+z,0);if(!(s>0))return[];let l=dp(e,i),a=i.map((R,z)=>z).filter(R=>!l.has(R)),c=i.map((R,z)=>z).filter(R=>l.has(R)),u=c.reduce((R,z)=>R+i[z],0),h=ft(n.dLbls),f=t.w*.08,m=(t.w-f)/2,d=Math.max(6,Math.min(m*(h?.72:.86),t.h*(h?.38:.46))),p=Math.max(4,Math.min(d*be(o.secondSize,5,200)/100,m*.86,t.h*.46)),b=t.y+t.h/2,v=t.x+m/2,x=t.x+m+f+m/2,M=[],S=[],y=Ve(r.color,\"rgb(255,255,255)\",.55),$=(R,z,j,F)=>{if(!h)return;let W=j===null?`\\u5176\\u4ED6 ${_t(u/s,\"0%\")}`:It(n,j,F,s>0?F/s:null,r),V=Nt(R,z,W,n.dLbls,r);V&&S.push(V)},k=a.map(R=>({idx:R,v:i[R]}));u>0&&k.push({idx:null,v:u});let A=(be(e.firstSliceAng,0,360)-90)*(Math.PI/180),L=0,P=0;for(let R of k){let z=R.v/s*Qt;if(!(z>0))continue;let j=A+z/2,F=R.idx===null?Ne(y):rt(e,n,R.idx,r.ctx).fill,W=R.idx===null?null:un(n,R.idx,null,0);M.push(Ue(v-d,b-d,d*2,d*2,Hi(d,d,0,d,A,A+z),F,W));let V=n.dLbls.pos===\"outEnd\"||n.dLbls.pos===\"bestFit\"?d*1.15:d*.62;$(v+Math.cos(j)*V,b+Math.sin(j)*V,R.idx,R.v),R.idx===null&&(L=A,P=A+z),A+=z}let E=u>0?u:1,T=b-p,I=b+p,O=x-p;if(o.type===\"bar\"){let R=Math.max(8,p*.9),z=Math.max(12,p*2);T=b-z/2,I=b+z/2,O=x-R/2;let j=T;for(let F of c){let W=i[F]/E*z;if(!(W>0))continue;let{fill:V}=rt(e,n,F,r.ctx);M.push(Ue(O,j,R,W,`M 0 0 L ${H(R)} 0 L ${H(R)} ${H(W)} L 0 ${H(W)} Z`,V,un(n,F,null,0))),$(O+R/2,j+W/2,F,i[F]),j+=W}}else{let R=-Math.PI/2;for(let z of c){let j=i[z]/E*Qt;if(!(j>0))continue;let F=R+j/2,{fill:W}=rt(e,n,z,r.ctx);M.push(Ue(x-p,b-p,p*2,p*2,Hi(p,p,0,p,R,R+j),W,un(n,z,null,0)));let V=n.dLbls.pos===\"outEnd\"||n.dLbls.pos===\"bestFit\"?p*1.18:p*.62;$(x+Math.cos(F)*V,b+Math.sin(F)*V,z,i[z]),R+=j}}if(o.serLines!==!1&&u>0){let R={color:Ve(r.color,\"rgb(255,255,255)\",.45),width:1,dash:null},z=[v+Math.cos(L)*d,b+Math.sin(L)*d],j=[v+Math.cos(P)*d,b+Math.sin(P)*d],F=z[1]<=j[1]?z:j,W=z[1]<=j[1]?j:z,V=ht(F[0],F[1],O,T,R),B=ht(W[0],W[1],O,I,R);V&&M.push(V),B&&M.push(B)}return M.concat(S)}var Ir=[\"rgb(49,84,163)\",\"rgb(84,148,200)\",\"rgb(160,208,224)\",\"rgb(224,238,196)\",\"rgb(253,224,144)\",\"rgb(244,146,74)\",\"rgb(200,60,44)\"];function Ta(e){let t=be(e,0,1)*(Ir.length-1),r=Math.min(Math.floor(t),Ir.length-2);return Ve(Ir[r],Ir[r+1],t-r)}function mp(e,t,r){let n=e.series.length,o=e.series.reduce(($,k)=>Math.max($,k.vals.length),0);if(!n||!o)return[];let i=Math.min(t.rect.w*.16,r.size*7),s=Math.min(t.rect.w*.2,Math.max(r.size*4,os(gp(e.series.map($=>$.name)),r.size)+r.size)),l=De(r.size)*1.2,a=t.rect.x+s,c=t.rect.y,u=Math.max(t.rect.w-s-i-r.size,12),h=Math.max(t.rect.h-l,12),f=u/o,m=h/n,d=t.max-t.min||1,p=[],b={color:\"rgba(255,255,255,0.75)\",width:.75,dash:null};e.series.forEach(($,k)=>{let A=c+h-(k+1)*m;for(let L=0;L<o;L++){let P=ve($.vals[L]);if(P===null)continue;let E=(P-t.min)/d,T=be(Math.floor(E*t.bands),0,t.bands-1),I=e.bandFills.get(T)??Ne(Ta(t.bands>1?T/(t.bands-1):E));p.push(Qn({x:a+L*f,y:A,w:f,h:m},I,b))}p.push(nt(t.rect.x,A+m/2-l/2,Math.max(s-r.size*.4,8),l,$.name,{size:r.size,color:r.color,align:\"right\",anchor:\"middle\",fonts:r.fonts}))});for(let $=0;$<o&&$<r.cats.length;$++)p.push(nt(a+$*f,c+h,f,l,r.cats[$],{size:r.size,color:r.color,align:\"center\",anchor:\"middle\",fonts:r.fonts}));let v=Math.min(r.size*1.1,i*.35),x=a+u+r.size*.6,M=h*.9,S=c+(h-M)/2,y=M/t.bands;for(let $=0;$<t.bands;$++){let k=e.bandFills.get($)??Ne(Ta(t.bands>1?$/(t.bands-1):.5));p.push(Qn({x,y:S+M-($+1)*y,w:v,h:y},k,null)),p.push(nt(x+v+r.size*.3,S+M-($+1)*y-De(r.size*.85)/2,i,De(r.size*.85),_t(t.min+($+1)*d/t.bands,t.fmt),{size:r.size*.85,color:r.color,align:\"left\",anchor:\"middle\",fonts:r.fonts}))}return p}var gp=e=>e.reduce((t,r)=>r.length>t.length?r:t,\"\");function Wi(e,t,r){let n=e.angle(t),o=e.radius*e.norm(r);return[e.cx+o*Math.sin(n),e.cy-o*Math.cos(n)]}function bp(e,t,r,n,o,i){let s=[];if(e.count<3)return s;for(let a of t){let c=[];for(let h=0;h<e.count;h++)c.push(Wi(e,h,a));let u=ns([c],null,n);u&&s.push(u)}for(let a=0;a<e.count;a++){let c=e.angle(a),u=ht(e.cx,e.cy,e.cx+e.radius*Math.sin(c),e.cy-e.radius*Math.cos(c),o);u&&s.push(u)}let l=r.size*1.4;for(let a=0;a<e.count&&a<r.cats.length;a++){let c=e.angle(a),u=r.size*.9,h=e.cx+(e.radius+u)*Math.sin(c),f=e.cy-(e.radius+u)*Math.cos(c),m=Math.sin(c),d=m>.2?\"left\":m<-.2?\"right\":\"center\",p=Math.max(r.size*6,30),b=d===\"left\"?h:d===\"right\"?h-p:h-p/2;s.push(nt(b,f-l/2,p,l,r.cats[a],{size:r.size,color:r.color,align:d,fonts:r.fonts}))}for(let a of t){if(a===0)continue;let[c,u]=Wi(e,0,a);s.push(nt(c+2,u-l/2,r.size*5,l,i(a),{size:r.size*.9,color:r.color,align:\"left\",fonts:r.fonts}))}return s}function xp(e,t,r){let n=[],o=[],i=e.radarStyle===\"filled\",s=e.radarStyle===\"marker\";return e.series.forEach((l,a)=>{let{fill:c,color:u}=rt(e,l,0,r.ctx),h=[];for(let p=0;p<t.count;p++){let b=l.vals[p];b==null||!Number.isFinite(b)||h.push(Wi(t,p,b))}if(h.length<2)return;let f=Ge(l.ln,u,2)??{color:u,width:2,dash:null},m=i?c.type===\"solid\"?{type:\"solid\",color:vp(c.color,.45)}:c:null,d=ns([h],m,f);if(d&&n.push(d),s){let p=co(e,l,a);for(let[b,v]of h){let x=uo(b,v,p,l,u);x&&o.push(x)}}}),n.concat(o)}function vp(e,t){let r=e.match(/rgba?\\(([^)]+)\\)/);if(!r)return e;let n=r[1].split(\",\").map(o=>Number(o.trim()));return`rgba(${n[0]||0},${n[1]||0},${n[2]||0},${t})`}function wp(e,t){let r=e.axes.filter(n=>n.kind===\"val\");return t.map(n=>{let o=r.filter(a=>n.axIds.includes(a.id)),i=o.length?o:r,s=i.find(a=>a.pos===\"b\"||a.pos===\"t\")??i[0]??Yr(\"val\"),l=i.find(a=>a!==s)??Yr(\"val\");return{group:n,x:s,y:l}})}function Lc(e,t,r,n=[]){let o=wp(e,t),i=(s,l={lo:0,hi:1})=>{let a=o.filter(f=>f.x===s).map(f=>f.group),c=[...n.filter(f=>s.id&&f.axIds.includes(s.id)),...o.filter(f=>f.y===s).map(f=>f.group)],u=a.length?Gd(a):null,h=c.length?lo(c):null;return u&&h?{lo:Math.min(u.lo,h.lo),hi:Math.max(u.hi,h.hi)}:u??h??l};return{axes:(s=[])=>{let l=new Map(s.map(c=>[c.axis,c])),a=(c,u,h)=>{let f=l.get(c);return f||(f=Sc(c,u?c.pos===\"t\"?\"t\":\"b\":c.pos===\"r\"?\"r\":\"l\",i(c),ao(u?r.w:r.h,e.textSize),u?null:h,e),l.set(c,f)),f};return o.map(({group:c,x:u,y:h})=>{var f;return{group:c,x:a(u,!0,null),y:a(h,!1,((f=c.series.find(m=>m.fmt))==null?void 0:f.fmt)??null)}})},extent:i}}function Vi(e,t,r){let n={...r};for(let o of t){let i=Di(e,o.x,o.y,!1);for(let s of[\"l\",\"r\",\"t\",\"b\"])n[s]=Math.max(n[s],i[s])}return n}function Ac(e,t,r,n,o,i=new Set){let s=[],l=[],a=c=>i.has(c.axis)?{...c,axis:{...c.axis,del:!0,title:null,majorGrid:null}}:(i.add(c.axis),c);for(let{group:c,x:u,y:h}of t){let f=qd(r,u,h);s.push(...as(e,{rect:r,hAxis:a(u),vAxis:a(h),hPos:m=>f.x(u.ticks[m]??0),vPos:m=>f.y(h.ticks[m]??0),hEdge:null,hEdgeCount:0,vEdge:null,vEdgeCount:0,hLineAt:f.y(f.clampY(0)),vLineAt:f.x(f.clampX(0)),hWrap:!1,hBand:0,depth:null},n)),l.push(...c.kind===\"bubble\"?sp(c,f,o):ip(c,f,o))}return{axes:s,plots:l}}function yp(e,t,r,n){let o=Math.max(Number.isFinite(t)?t:0,1),i=Math.max(Number.isFinite(r)?r:0,1);try{return kp(e,o,i,n)}catch{return[us(o,i,\"\\u56FE\\u8868\\u6E32\\u67D3\\u5931\\u8D25\")]}}function us(e,t,r){return{kind:\"unsupported\",x:0,y:0,w:e,h:t,rot:0,flipH:!1,flipV:!1,label:r}}function $p(e,t,r,n){let o=[];if(t.length>0&&t.every(s=>s.kind===\"pie\"||s.kind===\"doughnut\"||s.kind===\"ofPie\")){let s=t[0],l=s.series[0];if(!l)return o;let a=Math.max(l.vals.length,r.length);for(let c=0;c<a;c++){if(e.legendDeleted.has(c))continue;let{fill:u,color:h}=rt(s,l,c,n);o.push({label:r[c]??String(c+1),fill:u,color:h,stroke:null,marker:null,line:!1})}return o}let i=0;for(let s of t)s.series.forEach((l,a)=>{let c=i++;if(e.legendDeleted.has(c))return;let u=s.kind===\"line\"||s.kind===\"scatter\";o.push({label:l.name,fill:u?Ne(l.color):l.fill??Ne(l.color),color:l.color,stroke:u?Ge(l.ln,l.color,Mt(2)):null,marker:u?{sym:co(s,l,a),s:l}:null,line:u})});return o}function Mp(e,t,r,n){let o=[];if(!e.legendPos||!t.length)return{els:o,region:r};let i=e.textSize,s=i*1.2,l=i*.72,a=i*1.75,c=i*.35,u=i*.9,h=t.map(v=>s+c+os(v.label,i)+u),f=e.legendPos,m=f===\"t\"||f===\"b\",d,p=r,b=(v,x,M,S)=>{let y=M+a/2;if(v.line){let $=ht(x,y,x+s,y,v.stroke??{color:v.color,width:Mt(2),dash:null});if($&&o.push($),v.marker&&v.marker.sym!==\"none\"){let k=uo(x+s/2,y,v.marker.sym,v.marker.s,v.color);k&&o.push(k)}}else o.push(Qn({x,y:y-l/2,w:s,h:l},v.fill,null));o.push(nt(x+s+c,M,S,a,v.label,{size:i,color:e.textColor,align:\"left\",anchor:\"middle\",fonts:n}))};if(m){let v=r.w,x=[],M=[],S=0;for(let A=0;A<t.length;A++){let L=Math.min(h[A],v);M.length&&S+L>v&&(x.push(M),M=[],S=0),M.push(A),S+=L}M.length&&x.push(M);let y=Math.max(1,Math.floor(r.h*.4/a)),$=x.slice(0,y),k=$.length*a;d=f===\"t\"?{x:r.x,y:r.y,w:r.w,h:k}:{x:r.x,y:r.y+r.h-k,w:r.w,h:k},e.legendOverlay||(p=f===\"t\"?{x:r.x,y:r.y+k,w:r.w,h:r.h-k}:{x:r.x,y:r.y,w:r.w,h:r.h-k}),$.forEach((A,L)=>{let P=A.reduce((I,O)=>I+Math.min(h[O],v),0),E=d.x+Math.max((d.w-P)/2,0),T=d.y+L*a;for(let I of A){let O=Math.min(h[I],v);b(t[I],E,T,Math.max(O-s-c-u*.5,i)),E+=O}})}else{let v=Math.max(1,Math.floor(r.h/a)),x=Math.max(1,Math.ceil(t.length/v)),M=h.reduce((P,E)=>E>P?E:P,0),S=Math.min(M*x,r.w*.45),y=S/x,$=Math.min(v,Math.ceil(t.length/x)),k=f!==\"l\";d={x:k?r.x+r.w-S:r.x,y:r.y,w:S,h:r.h},e.legendOverlay||(p=k?{x:r.x,y:r.y,w:r.w-S,h:r.h}:{x:r.x+S,y:r.y,w:r.w-S,h:r.h});let A=$*a,L=f===\"tr\"?d.y:d.y+Math.max((d.h-A)/2,0);for(let P=0;P<t.length&&P<$*x;P++){let E=Math.floor(P/$),T=P%$;b(t[P],d.x+E*y,L+T*a,Math.max(y-s-c-i*.2,i))}}return{els:o,region:p}}function Pc(e){let t=[],r=0;for(let i of e)for(let s of i.series)s.vals.length>r&&(r=s.vals.length),s.cats.length>t.length&&(t=s.cats);let n=Math.max(r,t.length),o=[];for(let i=0;i<n;i++)o.push(t[i]??String(i+1));return o}function hn(e,t,r,n){if(!t)return e;let o=t.x!==null?t.x*r:e.x,i=t.y!==null?t.y*n:e.y,s=t.w!==null?t.w*r:e.w,l=t.h!==null?t.h*n:e.h;return!(s>4)||!(l>4)||!Number.isFinite(o)||!Number.isFinite(i)?e:{x:o,y:i,w:s,h:l}}var Ic=e=>{for(let t of e)for(let r of t.series)if(r.fmt)return r.fmt;return null};function kp(e,t,r,n){let o=Dd(e,n.ctx),i=[n.fonts.minor.latin,n.fonts.minor.ea].filter(L=>!!L),s=[],l=o.fill??Ne(\"rgb(255,255,255)\"),a=Ge(o.ln,null,0);(l.type!==\"none\"||a)&&s.push(Qn({x:0,y:0,w:t,h:r},l.type===\"none\"?null:l,a));let c=o.groups.filter(L=>L.series.length>0),u=c.filter(L=>L.kind===\"bar\"||L.kind===\"line\"||L.kind===\"area\"||L.kind===\"stock\"),h=c.filter(L=>bc(L.kind)),f=c.filter(L=>L.kind===\"pie\"||L.kind===\"doughnut\"),m=c.filter(L=>L.kind===\"ofPie\"),d=c.filter(L=>L.kind===\"radar\"),p=c.filter(L=>L.kind===\"surface\"),b=o.unsupported.slice();if(!u.length&&!h.length&&!f.length&&!d.length&&!m.length&&!p.length){let L=b.length?Array.from(new Set(b)).join(\"/\"):\"\\u672A\\u77E5\\u7C7B\\u578B\";return s.concat([us(t,r,`\\u4E0D\\u652F\\u6301\\u7684\\u56FE\\u8868\\u7C7B\\u578B: ${L}`)])}let v=Math.min(o.textSize*.55,Math.min(t,r)*.06),x={x:v,y:v,w:Math.max(t-v*2,8),h:Math.max(r-v*2,8)};if(o.title){let L=o.titleSize,P=Math.min(De(L)+o.textSize*.5,x.h*.3);s.push(nt(x.x,x.y,x.w,P,o.title,{size:L,bold:o.titleBold,color:o.titleColor??o.textColor,align:\"center\",anchor:\"middle\",fonts:i})),x={x:x.x,y:x.y+P,w:x.w,h:Math.max(x.h-P,8)}}let M=u.length?c.filter(L=>u.includes(L)||h.includes(L)):h.length?h:d.length?d:p.length?p:m.length?m:f,S=Pc(u.length?u:M),y=p.length&&p.length===c.length?[]:$p(o,M,S,n.ctx),$=Mp(o,y,x,i);x=$.region,o.plotLayout&&o.plotLayout.target!==\"inner\"&&(x=hn(x,o.plotLayout,t,r));let k={ctx:n.ctx,fonts:i,size:o.textSize,color:o.textColor,cats:S},A=[];if(u.length?A.push(...Ep(o,u,S,x,t,r,i,k,h)):h.length?A.push(...Tp(o,h,x,t,r,i,k)):d.length?A.push(...Pp(o,d,x,t,r,k)):p.length?A.push(...Lp(o,p,x,t,r,k)):m.length?A.push(...Ap(o,m,x,t,r,k)):A.push(...Rp(o,f,x,t,r,k)),s.push(...A,...$.els),b.length){let L=Array.from(new Set(b)).join(\"/\"),P=o.textSize*.9;s.push(nt(x.x,x.y+x.h-De(P),x.w,De(P),`\\u672A\\u6E32\\u67D3: ${L}`,{size:P,color:o.textColor,align:\"right\",anchor:\"middle\",fonts:i}))}return s}function Cp(e,t){return e.crosses===\"max\"?!0:t?e.pos===\"t\":e.pos===\"r\"}function Sp(e,t,r){let n=new Map;for(let f of e.axes)f.id&&n.set(f.id,f);let o=e.axes.find(f=>f.kind===\"cat\"||f.kind===\"date\")??Yr(\"cat\"),i=e.axes.find(f=>f.kind===\"val\")??Yr(\"val\"),s=[],l=new Map;for(let f of t){let m=null,d=null;for(let v of f.axIds){let x=n.get(v);x&&(x.kind===\"val\"?d||(d=x):(x.kind===\"cat\"||x.kind===\"date\")&&(m||(m=x)))}let p=d&&d.id||\"v#\",b=l.get(p);b||(b={cat:m??o,val:d??i,groups:[]},l.set(p,b),s.push(p)),b.groups.push(f)}if(!s.length)return{primary:{cat:o,val:i,groups:t},secondary:null};if(s.length===1)return{primary:l.get(s[0]),secondary:null};let a=s.findIndex(f=>!Cp(l.get(f).val,r));a<0&&(a=0);let c=l.get(s[a]),u=s.filter((f,m)=>m!==a).map(f=>l.get(f)),h={cat:u[0].cat,val:u[0].val,groups:u.flatMap(f=>f.groups)};return{primary:c,secondary:h}}function Ep(e,t,r,n,o,i,s,l,a){let c=t.some(Y=>Y.kind===\"bar\"&&Y.barDir===\"bar\"),{primary:u,secondary:h}=Sp(e,t,c),f=u.cat,m=c?f.pos===\"r\"?\"r\":\"l\":f.pos===\"t\"?\"t\":\"b\",d=c?u.val.pos===\"t\"?\"t\":\"b\":u.val.pos===\"r\"?\"r\":\"l\",p=c?d===\"b\"?\"t\":\"b\":d===\"l\"?\"r\":\"l\",b=c?n.w:n.h,v=ao(b,e.textSize),x=Lc(e,a,n,t),M=(Y,se)=>{let ue=Y.groups.some(fe=>fe.grouping===\"percentStacked\")?\"0%\":Ic(Y.groups);return Sc(Y.val,se,x.extent(Y.val,lo(Y.groups)),v,ue,e)},S=M(u,d),y=h?M(h,p):null,$=t.some(Y=>Y.kind===\"bar\"),k=t.every(Y=>Y.kind===\"area\"),A=$?!0:k?!1:f.crossBetween!==\"midCat\",L=Yd(f,m,r,A,e),P=c?S:L,E=c?L:S,T=x.axes(y?[S,y]:[S]),I=Bi(n,Vi(e,T,Di(e,P,E,!1,y))),O=!1;if(!c&&r.length){let Y=A?I.w/Math.max(r.length,1):I.w/Math.max(r.length-1,1);O=Kd(L,Y),O&&(I=Bi(n,Vi(e,T,Di(e,P,E,!0,y))))}e.plotLayout&&e.plotLayout.target===\"inner\"&&(I=hn(I,e.plotLayout,o,i));let R=t.some(Y=>Y.is3D),z=null;R&&(z=Hd(e.view3D,I),I=Wd(I,z));let j=Ca(I,c,L,S),F=y?Ca(I,c,L,y):null,W=A?r.length+1:r.length,V=c?{rect:I,hAxis:S,vAxis:L,hPos:Y=>j.val(S.ticks[Y]??0),vPos:Y=>j.cat(Y),hEdge:null,hEdgeCount:0,vEdge:Y=>j.edge(Y),vEdgeCount:W,hLineAt:d===\"t\"?I.y:I.y+I.h,vLineAt:j.zero,hWrap:!1,hBand:0,depth:z}:{rect:I,hAxis:L,vAxis:S,hPos:Y=>j.cat(Y),vPos:Y=>j.val(S.ticks[Y]??0),hEdge:Y=>j.edge(Y),hEdgeCount:W,vEdge:null,vEdgeCount:0,hLineAt:j.zero,vLineAt:d===\"r\"?I.x+I.w:I.x,hWrap:O,hBand:j.band,depth:z},B=[];if(B.push(...or(e,I)),z&&B.push(...Vd(I,z,e.textColor)),B.push(...as(e,V,s)),y&&F){let Y=p===\"l\"||p===\"r\";B.push(..._d(e,{rect:I,view:y,pos:se=>F.val(y.ticks[se]??0),at:Y?p===\"r\"?I.x+I.w:I.x:p===\"t\"?I.y:I.y+I.h,grid:!S.axis.majorGrid&&!!y.axis.majorGrid,depth:z},s))}let q=Y=>{let se=new Map,ue=0;for(let fe of Y)se.set(fe,ue),ue+=so(fe)?1:fe.series.length;return fe=>({base:se.get(fe)??0,total:Math.max(ue,1)})},X=(Y,se)=>{let ue=Y.groups.filter(de=>de.kind===\"bar\"),fe=q(ue);for(let de of Y.groups)de.kind===\"area\"&&B.push(...op(de,se,l));for(let de of ue)B.push(...np(de,se,fe(de),l,de.is3D?z:null));for(let de of Y.groups)de.kind===\"line\"&&B.push(...rp(de,se,l));for(let de of Y.groups)de.kind===\"stock\"&&B.push(...lp(de,se,l))},K=Ac(e,T,I,s,l,new Set([u.cat,u.val,...h?[h.val]:[]]));return B.push(...K.axes),X(u,j),h&&F&&X(h,F),B.push(...K.plots),B}function Tp(e,t,r,n,o,i,s){let l=Lc(e,t,r).axes(),a=Bi(r,Vi(e,l,{l:0,r:0,t:0,b:0}));e.plotLayout&&e.plotLayout.target===\"inner\"&&(a=hn(a,e.plotLayout,n,o));let c=Ac(e,l,a,i,s);return[...or(e,a),...c.axes,...c.plots]}function Lp(e,t,r,n,o,i){let s=r;e.plotLayout&&(s=hn(s,e.plotLayout,n,o));let l=lo(t),a=ss(l.lo,l.hi,ao(s.h,e.textSize)),c=Math.max(2,Math.min(Math.round((a.max-a.min)/a.step),12)),u=e.axes.find(m=>m.kind===\"val\"),h={rect:s,min:a.min,max:a.max,bands:c,fmt:u?.fmt??Ic(t)},f=or(e,s);for(let m of t)f.push(...mp(m,h,i));return f}function Ap(e,t,r,n,o,i){let s=r;e.plotLayout&&(s=hn(s,e.plotLayout,n,o));let l=or(e,s);for(let a of t)l.push(...pp(a,s,i));return l}function Pp(e,t,r,n,o,i){var s,l;let a=r;e.plotLayout&&(a=hn(a,e.plotLayout,n,o));let c=Pc(t),u=Math.max(c.length,((l=(s=t[0])==null?void 0:s.series[0])==null?void 0:l.vals.length)??0);if(u<3)return[us(n,o,\"\\u96F7\\u8FBE\\u56FE\\u81F3\\u5C11\\u9700\\u8981 3 \\u4E2A\\u7C7B\\u76EE\")];let h=lo(t),f=ss(Math.min(h.lo,0),h.hi,ao(Math.min(a.w,a.h),e.textSize)),m=f.max-f.min||1,d=e.textSize*4,p=Math.max(Math.min(a.w,a.h)-d,24),b=a.x+a.w/2,v=a.y+a.h/2,x={cx:b,cy:v,radius:p/2,norm:T=>Ip((T-f.min)/m),angle:T=>T*Math.PI*2/u,count:u},M=[];for(let T=f.min;T<=f.max+f.step*.5;T+=f.step)M.push(Np(T));let S=e.axes.find(T=>T.kind===\"val\"),y=e.axes.find(T=>T.kind===\"cat\"),$=Ve(e.textColor,\"rgb(255,255,255)\",.72),k=Ve(e.textColor,\"rgb(255,255,255)\",.55),A=Ge(S?.majorGrid??null,$,1)??{color:$,width:1,dash:null},L=Ge(y?.line??null,k,1)??{color:k,width:1,dash:null},P=S?.fmt??null,E=bp(x,M,i,A,L,T=>_t(T,P));for(let T of t)E.push(...xp(T,x,i));return E}var Ip=e=>Number.isFinite(e)?Math.max(0,Math.min(1,e)):0,Np=e=>Number(e.toPrecision(12));function Rp(e,t,r,n,o,i){let s=r;e.plotLayout&&(s=hn(s,e.plotLayout,n,o));let l=Math.max(Math.min(s.w,s.h),8),a={x:s.x+(s.w-l)/2,y:s.y+(s.h-l)/2,w:l,h:l},c=[];c.push(...or(e,s));for(let u of t)c.push(...u.is3D?hp(u,s,i):fp(u,a,i));return c}function or(e,t){let r=Ge(e.plotLn,null,0),n=e.plotFill&&e.plotFill.type!==\"none\"?e.plotFill:null;return!n&&!r?[]:[Qn(t,n,r)]}var Op=0,zp=e=>`${e}${(++Op).toString(36)}`,_=e=>Number.isFinite(e)?String(Math.round(e*100)/100):\"0\",La=e=>e.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\"),Nc=[1,0,0,1,0,0];function Gi(e,t){let[r,n,o,i,s,l]=e,[a,c,u,h,f,m]=t;return[a*r+u*n,c*r+h*n,a*o+u*i,c*o+h*i,a*s+u*l+f,c*s+h*l+m]}function re(e,t,r){return{x:e[0]*t+e[2]*r+e[4],y:e[1]*t+e[3]*r+e[5]}}function Aa(e){let t=Math.abs(e[0]*e[3]-e[1]*e[2]),r=Math.sqrt(t);return Number.isFinite(r)&&r>1e-9?r:1}function Fp(e){let t=Math.hypot(e[2],e[3]);return Number.isFinite(t)&&t>1e-9?t:1}var Ie=class{constructor(t,r=0,n){this.p=0,this.dv=new DataView(t.buffer,t.byteOffset,t.byteLength),this.end=Math.min(n??t.length,t.length),this.p=r}has(t){return this.p+t<=this.end}get left(){return Math.max(0,this.end-this.p)}skip(t){this.p+=t}seek(t){this.p=t}u8(){return this.has(1)?this.dv.getUint8(this.p++):(this.p+=1,0)}i16(){if(!this.has(2))return this.p+=2,0;let t=this.dv.getInt16(this.p,!0);return this.p+=2,t}u16(){if(!this.has(2))return this.p+=2,0;let t=this.dv.getUint16(this.p,!0);return this.p+=2,t}i32(){if(!this.has(4))return this.p+=4,0;let t=this.dv.getInt32(this.p,!0);return this.p+=4,t}u32(){if(!this.has(4))return this.p+=4,0;let t=this.dv.getUint32(this.p,!0);return this.p+=4,t}f32(){if(!this.has(4))return this.p+=4,0;let t=this.dv.getFloat32(this.p,!0);return this.p+=4,Number.isFinite(t)?t:0}color(){let t=this.u32();return Xi(t&255,t>>8&255,t>>16&255)}ptL(){return{x:this.i32(),y:this.i32()}}pt16(){return{x:this.i16(),y:this.i16()}}rectL(){return{l:this.i32(),t:this.i32(),r:this.i32(),b:this.i32()}}utf16(t){let r=\"\",n=t>>1;for(let o=0;o<n;o++){let i=this.u16();if(i===0){this.skip((n-o-1)*2);break}r+=String.fromCharCode(i)}return r}ansi(t){let r=\"\";for(let n=0;n<t;n++){let o=this.u8();if(o===0){this.skip(t-n-1);break}r+=String.fromCharCode(o)}return r}get pos(){return this.p}get limit(){return this.end}i8(){return this.u8()<<24>>24}i16be(){if(!this.has(2))return this.p+=2,0;let t=this.dv.getInt16(this.p,!1);return this.p+=2,t}u16be(){if(!this.has(2))return this.p+=2,0;let t=this.dv.getUint16(this.p,!1);return this.p+=2,t}u32be(){if(!this.has(4))return this.p+=4,0;let t=this.dv.getUint32(this.p,!1);return this.p+=4,t}take(t){let r=Math.max(0,Math.min(t,this.end-this.p)),n=new Uint8Array(this.dv.buffer,this.dv.byteOffset+this.p,r);return this.p+=t,n}},ki=e=>(e&255).toString(16).padStart(2,\"0\"),Xi=(e,t,r)=>`#${ki(e)}${ki(t)}${ki(r)}`,jp=1,Pa=5,Up=1,Rc=0,Dp=1,Bp=2,Hp=3,Wp=4,$t=5,fn=0,ir=1,Vp=2,Ia=3,Na=5,Zn=()=>({kind:\"pen\",style:Rc,width:1,color:\"#000000\",cap:0,join:0}),Oc=()=>({kind:\"brush\",style:fn,color:\"#ffffff\",hatch:0,href:null}),sr=()=>({kind:\"font\",height:-12,escapement:0,weight:400,italic:!1,underline:!1,strike:!1,face:\"Arial\",charset:0}),Gp=()=>({...Zn(),style:$t}),wn=e=>({kind:\"brush\",style:fn,color:e,hatch:0,href:null});function Xp(e){switch(e&255){case 0:return wn(\"#ffffff\");case 1:return wn(\"#c0c0c0\");case 2:return wn(\"#808080\");case 3:return wn(\"#404040\");case 4:return wn(\"#000000\");case 5:return{...Oc(),style:ir};case 6:return{...Zn(),color:\"#ffffff\"};case 7:return Zn();case 8:return Gp();case 10:case 11:case 12:case 13:case 14:case 16:case 17:return sr();case 18:return wn(\"#ffffff\");case 19:return Zn();default:return null}}var Yi=1,Yp=7,qp=8;function Zp(e){return{...e,pen:{...e.pen},brush:{...e.brush},font:{...e.font},world:[...e.world],winOrg:{...e.winOrg},winExt:{...e.winExt},vpOrg:{...e.vpOrg},vpExt:{...e.vpExt},pos:{...e.pos}}}var _p={2:.1,3:.01,4:25.4/100,5:25.4/1e3,6:25.4/1440},qi=class{constructor(){this.els=[],this.defs=[],this.cache=new Map,this.count=0}add(t){this.els.push(t),this.count++}def(t,r,n){let o=this.cache.get(t);if(o!==void 0)return o;let i=zp(r);return this.defs.push(n(i)),this.cache.set(t,i),i}render(t,r,n){let o=Math.max(1,t.r-t.l),i=Math.max(1,t.b-t.t),s=this.defs.length?`<defs>${this.defs.join(\"\")}</defs>`:\"\";return`<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"${_(r)}\" height=\"${_(n)}\" viewBox=\"${_(t.l)} ${_(t.t)} ${_(o)} ${_(i)}\" preserveAspectRatio=\"xMidYMid meet\">`+s+this.els.join(\"\")+\"</svg>\"}},_n=class{constructor(){this.d=[],this.started=!1}get empty(){return this.d.length===0}get data(){return this.d.join(\"\")}clear(){this.d=[],this.started=!1}move(t){We(t)&&(this.d.push(`M${_(t.x)} ${_(t.y)}`),this.started=!0)}line(t){We(t)&&(this.started?this.d.push(`L${_(t.x)} ${_(t.y)}`):this.move(t))}cubic(t,r,n){!We(t)||!We(r)||!We(n)||(this.started||this.move(t),this.d.push(`C${_(t.x)} ${_(t.y)} ${_(r.x)} ${_(r.y)} ${_(n.x)} ${_(n.y)}`))}close(){this.started&&this.d.push(\"Z\")}},We=e=>Number.isFinite(e.x)&&Number.isFinite(e.y),Kp=.5522847498307936;function yn(e,t,r,n,o,i,s){let l=[],a=i-o,c=Math.max(1,Math.ceil(Math.abs(a)/(Math.PI/2))),u=a/c,h=Kp*Math.abs(u)/(Math.PI/2)*Math.sign(u),f=o;for(let m=0;m<c;m++){let d=f+u,p=Math.cos(f),b=Math.sin(f),v=Math.cos(d),x=Math.sin(d),M={x:e+r*(p-h*b),y:t+n*(b+h*p)},S={x:e+r*(v+h*x),y:t+n*(x-h*v)},y={x:e+r*v,y:t+n*x};l.push([re(s,M.x,M.y),re(s,S.x,S.y),re(s,y.x,y.y)]),f=d}return l}var Ra=(e,t,r,n,o,i)=>re(i,e+r*Math.cos(o),t+n*Math.sin(o));function Oa(e,t,r,n,o,i){let s=r!==0?(o-e)/r:0,l=n!==0?(i-t)/n:0;return s===0&&l===0?0:Math.atan2(l,s)}var er=class{constructor(t){this.stack=[],this.objs=[],this.svg=new qi,this.path=new _n,this.inPath=!1,this.dev=t,this.dc={pen:Zn(),brush:Oc(),font:sr(),textColor:\"#000000\",bkColor:\"#ffffff\",bkMode:2,polyFill:1,textAlign:0,world:[...Nc],mapMode:Yi,winOrg:{x:0,y:0},winExt:{x:1,y:1},vpOrg:{x:0,y:0},vpExt:{x:1,y:1},clip:null,pos:{x:0,y:0}}}get drawn(){return this.svg.count}xf(){let t=this.dc,r,n,o=_p[t.mapMode];if(t.mapMode===Yi)r=1,n=1;else if(o!==void 0)r=o*this.dev.pxPerMmX,n=-o*this.dev.pxPerMmY;else if(r=t.winExt.x!==0?t.vpExt.x/t.winExt.x:1,n=t.winExt.y!==0?t.vpExt.y/t.winExt.y:1,t.mapMode===Yp){let s=Math.min(Math.abs(r),Math.abs(n));r=s*Math.sign(r||1),n=s*Math.sign(n||1)}(!Number.isFinite(r)||r===0)&&(r=1),(!Number.isFinite(n)||n===0)&&(n=1);let i=[r,0,0,n,t.vpOrg.x-t.winOrg.x*r,t.vpOrg.y-t.winOrg.y*n];return Gi(t.world,i)}tp(t,r){return re(this.xf(),t,r)}save(){this.stack.push(Zp(this.dc))}restore(t=-1){if(!this.stack.length)return;let r=t<0?-t:Math.max(1,this.stack.length-t);r=Math.min(r,this.stack.length);let n;for(let o=0;o<r;o++)n=this.stack.pop();n&&(this.dc=n)}putObj(t,r){t<0||t>65535||(this.objs[t]=r)}addObj(t){for(let r=0;r<this.objs.length;r++)if(!this.objs[r]){this.objs[r]=t;return}this.objs.length<65536&&this.objs.push(t)}delObj(t){t>=0&&t<this.objs.length&&(this.objs[t]=null)}selectIdx(t){let r=t&2147483648||(t&4294934528)===32768?Xp(t):this.objs[t]??null;r&&this.select(r)}select(t){t.kind===\"pen\"?this.dc.pen=t:t.kind===\"brush\"?this.dc.brush=t:this.dc.font=t}intersectClip(t){let r=this.xf(),n=[re(r,t.l,t.t),re(r,t.r,t.t),re(r,t.r,t.b),re(r,t.l,t.b)];if(n.some(l=>!We(l)))return;let o=`M${_(n[0].x)} ${_(n[0].y)}L${_(n[1].x)} ${_(n[1].y)}L${_(n[2].x)} ${_(n[2].y)}L${_(n[3].x)} ${_(n[3].y)}Z`,i=this.dc.clip,s=`clip:${o}|${i??\"\"}`;this.dc.clip=this.svg.def(s,\"c\",l=>`<clipPath id=\"${l}\"${i?` clip-path=\"url(#${i})\"`:\"\"}><path d=\"${o}\"/></clipPath>`)}clearClip(){this.dc.clip=null}setClipRects(t,r){let n=this.xf(),o=[];for(let a of t){let c=re(n,a.l,a.t),u=re(n,a.r,a.b);if(!We(c)||!We(u))continue;let h=Math.min(c.x,u.x),f=Math.min(c.y,u.y),m=Math.abs(u.x-c.x),d=Math.abs(u.y-c.y);!(m>0)||!(d>0)||o.push(`<rect x=\"${_(h)}\" y=\"${_(f)}\" width=\"${_(m)}\" height=\"${_(d)}\"/>`)}if(!o.length)return;let i=r?this.dc.clip:null,s=o.join(\"\"),l=`rgn:${s}|${i??\"\"}`;this.dc.clip=this.svg.def(l,\"c\",a=>`<clipPath id=\"${a}\"${i?` clip-path=\"url(#${i})\"`:\"\"}>${s}</clipPath>`)}clipAttr(){return this.dc.clip?` clip-path=\"url(#${this.dc.clip})\"`:\"\"}strokeAttrs(){let t=this.dc.pen;if(t.style===$t)return' stroke=\"none\"';let r=Math.max(t.width,0)*Aa(this.xf()),n=r<.75?.75:r,o=` stroke=\"${t.color}\" stroke-width=\"${_(n)}\"`,i=Qp(t.style,n);return i&&(o+=` stroke-dasharray=\"${i}\"`),i?o+=' stroke-linecap=\"butt\"':t.cap===256?o+=' stroke-linecap=\"square\"':t.cap===512?o+=' stroke-linecap=\"butt\"':t.cap===0&&(o+=' stroke-linecap=\"round\"'),t.join===4096?o+=' stroke-linejoin=\"bevel\"':t.join===8192?o+=' stroke-linejoin=\"miter\"':t.join===0&&(o+=' stroke-linejoin=\"round\"'),o}fillAttrs(){let t=this.dc.brush;if(t.style===ir)return' fill=\"none\"';if(t.style===Vp){let r=this.dc.bkMode===2?this.dc.bkColor:\"none\",n=`h:${t.hatch}:${t.color}:${r}`;return` fill=\"url(#${this.svg.def(n,\"h\",o=>Jp(o,t.hatch,t.color,r))})\"`}if((t.style===Ia||t.style===Na)&&t.href){let r=`p:${t.href.length}:${t.href.slice(-32)}`;return` fill=\"url(#${this.svg.def(r,\"q\",n=>`<pattern id=\"${n}\" width=\"16\" height=\"16\" patternUnits=\"userSpaceOnUse\"><image xlink:href=\"${t.href}\" width=\"16\" height=\"16\" preserveAspectRatio=\"none\"/></pattern>`)})\"`}return t.style===Ia||t.style===Na?` fill=\"${t.color}\"`:` fill=\"${t.color}\"`}ruleAttr(){return this.dc.polyFill===1?' fill-rule=\"evenodd\"':\"\"}emit(t,r){if(!t)return;let n=r===\"stroke\"?' fill=\"none\"':this.fillAttrs()+this.ruleAttr(),o=r===\"fill\"?' stroke=\"none\"':this.strokeAttrs();this.svg.add(`<path d=\"${t}\"${n}${o}${this.clipAttr()}/>`)}draw(t,r){if(this.inPath){t(this.path);return}let n=new _n;t(n),this.emit(n.data,r)}beginPath(){this.path.clear(),this.inPath=!0}endPath(){this.inPath=!1}abortPath(){this.path.clear(),this.inPath=!1}closeFigure(){this.path.close()}finishPath(t){this.inPath=!1,this.emit(this.path.data,t),this.path.clear()}clipToPath(){let t=this.path.data;if(this.inPath=!1,!t)return;let r=this.dc.clip;this.dc.clip=this.svg.def(`clipP:${t}|${r??\"\"}`,\"c\",n=>`<clipPath id=\"${n}\"${r?` clip-path=\"url(#${r})\"`:\"\"}><path d=\"${t}\"/></clipPath>`),this.path.clear()}moveTo(t,r){this.dc.pos={x:t,y:r},this.inPath&&this.path.move(this.tp(t,r))}lineTo(t,r){let n=this.xf(),o=re(n,this.dc.pos.x,this.dc.pos.y),i=re(n,t,r);this.inPath?this.path.line(i):this.emit(`M${_(o.x)} ${_(o.y)}L${_(i.x)} ${_(i.y)}`,\"stroke\"),this.dc.pos={x:t,y:r}}polyline(t,r){if(t.length<2)return;let n=this.xf(),o=t.map(s=>re(n,s.x,s.y));this.draw(s=>{s.move(o[0]);for(let l=1;l<o.length;l++)s.line(o[l]);r&&s.close()},r?\"both\":\"stroke\");let i=t[t.length-1];this.dc.pos={x:i.x,y:i.y}}polylineTo(t){if(!t.length)return;let r=this.xf();if(this.inPath)for(let o of t)this.path.line(re(r,o.x,o.y));else{let o=re(r,this.dc.pos.x,this.dc.pos.y),i=`M${_(o.x)} ${_(o.y)}`;for(let s of t){let l=re(r,s.x,s.y);i+=`L${_(l.x)} ${_(l.y)}`}this.emit(i,\"stroke\")}let n=t[t.length-1];this.dc.pos={x:n.x,y:n.y}}polyBezier(t,r){let n=this.xf(),o=t.map(s=>re(n,s.x,s.y)),i=s=>{let l=0;if(r)this.inPath||s.move(re(n,this.dc.pos.x,this.dc.pos.y));else{if(!o.length)return;s.move(o[0]),l=1}for(;l+2<o.length;l+=3)s.cubic(o[l],o[l+1],o[l+2])};if(this.inPath)i(this.path);else{let s=new _n;i(s),this.emit(s.data,\"stroke\")}if(t.length){let s=t[t.length-1];this.dc.pos={x:s.x,y:s.y}}}polyPoly(t,r){let n=this.xf();this.draw(o=>{for(let i of t)if(!(i.length<2)){o.move(re(n,i[0].x,i[0].y));for(let s=1;s<i.length;s++)o.line(re(n,i[s].x,i[s].y));r&&o.close()}},r?\"both\":\"stroke\")}rect(t){let r=this.xf();if(!this.inPath&&r[1]===0&&r[2]===0){let o=re(r,t.l,t.t),i=re(r,t.r,t.b);if(We(o)&&We(i)){let s=Math.abs(i.x-o.x),l=Math.abs(i.y-o.y);this.svg.add(`<rect x=\"${_(Math.min(o.x,i.x))}\" y=\"${_(Math.min(o.y,i.y))}\" width=\"${_(s)}\" height=\"${_(l)}\"${this.fillAttrs()}${this.strokeAttrs()}${this.clipAttr()}/>`);return}}let n=[re(r,t.l,t.t),re(r,t.r,t.t),re(r,t.r,t.b),re(r,t.l,t.b)];this.draw(o=>{o.move(n[0]),o.line(n[1]),o.line(n[2]),o.line(n[3]),o.close()},\"both\")}ellipse(t){let r=this.xf(),n=(t.l+t.r)/2,o=(t.t+t.b)/2,i=Math.abs(t.r-t.l)/2,s=Math.abs(t.b-t.t)/2;this.draw(l=>{l.move(Ra(n,o,i,s,0,r));for(let a of yn(n,o,i,s,0,Math.PI*2,r))l.cubic(a[0],a[1],a[2]);l.close()},\"both\")}roundRect(t,r,n){let o=this.xf(),i=Math.min(t.l,t.r),s=Math.min(t.t,t.b),l=Math.max(t.l,t.r),a=Math.max(t.t,t.b),c=Math.min(Math.abs(r)/2,(l-i)/2),u=Math.min(Math.abs(n)/2,(a-s)/2);if(c<=0||u<=0){this.rect(t);return}this.draw(h=>{h.move(re(o,i+c,s)),h.line(re(o,l-c,s));for(let f of yn(l-c,s+u,c,u,-Math.PI/2,0,o))h.cubic(f[0],f[1],f[2]);h.line(re(o,l,a-u));for(let f of yn(l-c,a-u,c,u,0,Math.PI/2,o))h.cubic(f[0],f[1],f[2]);h.line(re(o,i+c,a));for(let f of yn(i+c,a-u,c,u,Math.PI/2,Math.PI,o))h.cubic(f[0],f[1],f[2]);h.line(re(o,i,s+u));for(let f of yn(i+c,s+u,c,u,Math.PI,Math.PI*1.5,o))h.cubic(f[0],f[1],f[2]);h.close()},\"both\")}arc(t,r,n,o,i,s,l=!1){let a=this.xf(),c=(t.l+t.r)/2,u=(t.t+t.b)/2,h=Math.abs(t.r-t.l)/2,f=Math.abs(t.b-t.t)/2;if(h<=0||f<=0)return;let m=Oa(c,u,h,f,r,n),d=Oa(c,u,h,f,o,i),p=m-d;for(;p<=0;)p+=Math.PI*2;d=m-p;let b=s===\"arc\"?\"stroke\":\"both\";this.draw(x=>{let M=Ra(c,u,h,f,m,a);s===\"pie\"?(x.move(re(a,c,u)),x.line(M)):l&&this.inPath?x.line(M):x.move(M);for(let S of yn(c,u,h,f,m,d,a))x.cubic(S[0],S[1],S[2]);s!==\"arc\"&&x.close()},b);let v={x:c+h*Math.cos(d),y:u+f*Math.sin(d)};this.dc.pos=v}polyDraw(t,r){let n=this.xf(),o=Math.min(t.length,r.length);this.draw(i=>{for(let s=0;s<o;s++){let l=r[s]&6;l===4&&s+2<o?(i.cubic(re(n,t[s].x,t[s].y),re(n,t[s+1].x,t[s+1].y),re(n,t[s+2].x,t[s+2].y)),s+=2):l===6?i.move(re(n,t[s].x,t[s].y)):i.line(re(n,t[s].x,t[s].y)),r[s]&1&&i.close()}},\"stroke\"),o&&(this.dc.pos={x:t[o-1].x,y:t[o-1].y})}text(t,r,n,o,i){if(!n)return;let s=this.xf(),l=re(s,t,r);if(!We(l))return;let a=this.dc.font,c=(a.height<0?-a.height:a.height*.87)*Fp(s);if(!(c>0)||!Number.isFinite(c))return;if(i&&this.dc.bkMode===2){let d=re(s,i.l,i.t),p=re(s,i.r,i.b);We(d)&&We(p)&&this.svg.add(`<rect x=\"${_(Math.min(d.x,p.x))}\" y=\"${_(Math.min(d.y,p.y))}\" width=\"${_(Math.abs(p.x-d.x))}\" height=\"${_(Math.abs(p.y-d.y))}\" fill=\"${this.dc.bkColor}\"${this.clipAttr()}/>`)}let u=this.dc.textAlign,h=(u&6)===2?\"end\":(u&6)===6?\"middle\":\"start\",f=(u&24)===24?\"\":(u&24)===8?\"text-after-edge\":\"text-before-edge\",m=` x=\"${_(l.x)}\" y=\"${_(l.y)}\"`;if(a.escapement&&(m+=` transform=\"rotate(${_(-a.escapement/10)} ${_(l.x)} ${_(l.y)})\"`),m+=` font-family=\"${La(e1(a.face))}\" font-size=\"${_(c)}\" fill=\"${this.dc.textColor}\"`,a.weight>=600&&(m+=` font-weight=\"${a.weight}\"`),a.italic&&(m+=' font-style=\"italic\"'),a.underline&&a.strike?m+=' text-decoration=\"underline line-through\"':a.underline?m+=' text-decoration=\"underline\"':a.strike&&(m+=' text-decoration=\"line-through\"'),h!==\"start\"&&(m+=` text-anchor=\"${h}\"`),f&&(m+=` dominant-baseline=\"${f}\"`),o&&o.length){let d=0;for(let b of o)d+=b;let p=d*Aa(s);p>0&&Number.isFinite(p)&&(m+=` textLength=\"${_(p)}\" lengthAdjust=\"spacingAndGlyphs\"`)}this.svg.add(`<text${m} xml:space=\"preserve\"${this.clipAttr()}>${La(n)}</text>`)}image(t,r){let n=this.xf(),o=t.r-t.l,i=t.b-t.t,s=re(n,t.l,t.t),l=re(n,t.l+o,t.t+i);if(!We(s)||!We(l))return;let a=Math.min(s.x,l.x),c=Math.min(s.y,l.y),u=Math.abs(l.x-s.x),h=Math.abs(l.y-s.y);!(u>0)||!(h>0)||this.svg.add(`<image x=\"${_(a)}\" y=\"${_(c)}\" width=\"${_(u)}\" height=\"${_(h)}\" preserveAspectRatio=\"none\" xlink:href=\"${r}\"${this.clipAttr()}/>`)}render(t,r,n){return this.svg.render(t,r,n)}};function Qp(e,t){let r=Math.max(t,1);switch(e){case Dp:return`${_(r*6)} ${_(r*3)}`;case Bp:return`${_(r)} ${_(r*3)}`;case Hp:return`${_(r*6)} ${_(r*3)} ${_(r)} ${_(r*3)}`;case Wp:return`${_(r*6)} ${_(r*3)} ${_(r)} ${_(r*3)} ${_(r)} ${_(r*3)}`;default:return\"\"}}var za={0:\"M0 4H8\",1:\"M4 0V8\",2:\"M0 0L8 8\",3:\"M0 8L8 0\",4:\"M0 4H8M4 0V8\",5:\"M0 0L8 8M0 8L8 0\"};function Jp(e,t,r,n){let o=za[t]??za[0],i=n===\"none\"?\"\":`<rect width=\"8\" height=\"8\" fill=\"${n}\"/>`;return`<pattern id=\"${e}\" width=\"8\" height=\"8\" patternUnits=\"userSpaceOnUse\">${i}<path d=\"${o}\" stroke=\"${r}\" stroke-width=\"1\" fill=\"none\"/></pattern>`}var Fa=\", 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif\";function e1(e){let t=e.trim();return t?/^(symbol|wingdings|webdings)/i.test(t)?`'${t}'`:`'${t}'${Fa}`:`Arial${Fa}`}var t1={0:\"windows-1252\",1:\"windows-1252\",2:\"windows-1252\",77:\"macintosh\",128:\"shift_jis\",129:\"euc-kr\",130:\"euc-kr\",134:\"gbk\",136:\"big5\",161:\"windows-1253\",162:\"windows-1254\",163:\"windows-1258\",177:\"windows-1255\",178:\"windows-1256\",186:\"windows-1257\",204:\"windows-1251\",222:\"windows-874\",238:\"windows-1250\"};function Zi(e,t){let r=t1[t];if(r&&typeof TextDecoder<\"u\")try{return new TextDecoder(r,{fatal:!1}).decode(e).replace(/\\0+$/,\"\")}catch{}let n=\"\";for(let o=0;o<e.length&&e[o]!==0;o++)n+=String.fromCharCode(e[o]);return n}var At=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";function tr(e){let t=\"\",r=0;for(;r+2<e.length;r+=3){let o=e[r]<<16|e[r+1]<<8|e[r+2];t+=At[o>>18&63]+At[o>>12&63]+At[o>>6&63]+At[o&63]}let n=e.length-r;if(n===1){let o=e[r]<<16;t+=At[o>>18&63]+At[o>>12&63]+\"==\"}else if(n===2){let o=e[r]<<16|e[r+1]<<8;t+=At[o>>18&63]+At[o>>12&63]+At[o>>6&63]+\"=\"}return t}var Ci=null;function n1(e){if(!Ci){let r=new Int32Array(256);for(let n=0;n<256;n++){let o=n;for(let i=0;i<8;i++)o=o&1?3988292384^o>>>1:o>>>1;r[n]=o}Ci=r}let t=-1;for(let r=0;r<e.length;r++)t=Ci[(t^e[r])&255]^t>>>8;return(t^-1)>>>0}function Si(e,t){let r=new Uint8Array(t.length+12),n=new DataView(r.buffer);n.setUint32(0,t.length);for(let o=0;o<4;o++)r[4+o]=e.charCodeAt(o);return r.set(t,8),n.setUint32(t.length+8,n1(r.subarray(4,t.length+8))),r}function zc(e,t,r){let n=new Uint8Array(r*(t*4+1));for(let u=0;u<r;u++)n[u*(t*4+1)]=0,n.set(e.subarray(u*t*4,(u+1)*t*4),u*(t*4+1)+1);let o=new Uint8Array(13),i=new DataView(o.buffer);i.setUint32(0,t),i.setUint32(4,r),o[8]=8,o[9]=6;let s=[new Uint8Array([137,80,78,71,13,10,26,10]),Si(\"IHDR\",o),Si(\"IDAT\",Tl(n,{level:6})),Si(\"IEND\",new Uint8Array(0))],l=0;for(let u of s)l+=u.length;let a=new Uint8Array(l),c=0;for(let u of s)a.set(u,c),c+=u.length;return a}var r1=8192*8192;function Ei(e){if(!e)return{shift:0,scale:0};let t=0,r=e;for(;!(r&1);)r>>>=1,t++;let n=0;for(;r&1;)r>>>=1,n++;return{shift:t,scale:n>0?255/((1<<n)-1):0}}function o1(e,t,r,n,o,i){if(!(n>0)||!(o>0))return null;let s=new Uint8Array(n*o),l=t,a=Math.min(e.length,t+r),c=0,u=o-1,h=f=>{c>=0&&c<n&&u>=0&&u<o&&(s[u*n+c]=f),c++};for(;l+1<a&&u>=0;){let f=e[l++],m=e[l++];if(f>0){if(i){let d=m>>4&15,p=m&15;for(let b=0;b<f;b++)h(b%2===0?d:p)}else for(let d=0;d<f;d++)h(m);continue}if(m===0){c=0,u--;continue}if(m===1)break;if(m===2){if(l+1>=a)break;c+=e[l++],u-=e[l++];continue}if(i){let d=m+1>>1;if(l+d>a)break;for(let p=0;p<m;p++){let b=e[l+(p>>1)];h(p%2===0?b>>4&15:b&15)}l+=d+(d&1)}else{if(l+m>a)break;for(let d=0;d<m;d++)h(e[l+d]);l+=m+(m&1)}}return s}function i1(e,t,r,n,o){if(t<0||r<12||t+12>e.length)return null;let i=new Ie(e,t,Math.min(e.length,t+Math.max(r,12))),s=i.u32(),l,a,c,u=0,h=0,f=!1;if(s===12)f=!0,l=i.i16(),a=i.i16(),i.u16(),c=i.u16();else if(s>=16)l=i.i32(),a=i.i32(),i.u16(),c=i.u16(),s>=24&&(u=i.u32(),i.u32()),s>=36&&(i.u32(),i.u32(),h=i.u32());else return null;let m=a<0;if(a=Math.abs(a),!(l>0)||!(a>0)||l*a>r1||u===4||u===5)return null;let d=u===1,p=u===2;if(u!==0&&u!==3&&!d&&!p||d&&c!==8||p&&c!==4||![1,4,8,16,24,32].includes(c))return null;let b=0,v=0,x=0;if(u===3){let I=new Ie(e,t+s,e.length);b=I.u32(),v=I.u32(),x=I.u32()}else c===16?(b=31744,v=992,x=31):c===32&&(b=16711680,v=65280,x=255);let M=null;if(c<=8){let I=h>0?Math.min(h,1<<c):1<<c,O=f?3:4,R=t+s+(u===3?12:0);M=new Uint8Array(I*3);let z=new Ie(e,R,e.length);for(let j=0;j<I;j++){let F=z.u8(),W=z.u8(),V=z.u8();O===4&&z.u8(),M[j*3]=V,M[j*3+1]=W,M[j*3+2]=F}}let S=l*c+31>>5<<2,y=n,$=Math.min(o>0?o:e.length-y,e.length-y);if(y<0||y>=e.length)return null;if(d||p){let I=o1(e,y,$,l,a,p);if(!I)return null;let O=new Uint8Array(l*a*4);for(let R=0;R<I.length;R++){let z=I[R]*3,j=R*4;M&&z+2<M.length&&(O[j]=M[z],O[j+1]=M[z+1],O[j+2]=M[z+2]),O[j+3]=255}return{w:l,h:a,rgba:O}}if($<S)return null;let k=Math.min(a,Math.floor($/S));if(k<=0)return null;let A=new Uint8Array(l*a*4),L=Ei(b),P=Ei(v),E=Ei(x),T=!1;for(let I=0;I<k;I++){let O=m?I:a-1-I,R=y+I*S,z=O*l*4;for(let j=0;j<l;j++){let F=0,W=0,V=0,B=255;if(c===24)V=e[R],W=e[R+1],F=e[R+2],R+=3;else if(c===32){let q=e[R]|e[R+1]<<8|e[R+2]<<16|e[R+3]<<24;F=L.scale?((q&b)>>>L.shift)*L.scale:0,W=P.scale?((q&v)>>>P.shift)*P.scale:0,V=E.scale?((q&x)>>>E.shift)*E.scale:0,B=e[R+3],B!==0&&(T=!0),R+=4}else if(c===16){let q=e[R]|e[R+1]<<8;F=((q&b)>>>L.shift)*L.scale,W=((q&v)>>>P.shift)*P.scale,V=((q&x)>>>E.shift)*E.scale,R+=2}else{let q=j*c,X=e[y+I*S+(q>>3)]??0,K=c===8?X:c===4?q%8===0?X>>4:X&15:X>>7-(q&7)&1,Y=K*3;M&&Y+2<M.length?(F=M[Y],W=M[Y+1],V=M[Y+2]):F=W=V=K?255:0}A[z]=F|0,A[z+1]=W|0,A[z+2]=V|0,A[z+3]=B,z+=4}}if(c===32&&!T)for(let I=3;I<A.length;I+=4)A[I]=255;return{w:l,h:a,rgba:A}}function lr(e,t,r,n,o){try{if(t>=0&&t+20<=e.length){let s=new Ie(e,t,e.length);if(s.u32()>=24){s.skip(12);let l=s.u32();if((l===4||l===5)&&o>0&&n+o<=e.length)return`data:${l===4?\"image/jpeg\":\"image/png\"};base64,${tr(e.subarray(n,n+o))}`}}let i=i1(e,t,r,n,o);return i?`data:image/png;base64,${tr(zc(i.rgba,i.w,i.h))}`:null}catch{return null}}function Fc(e,t){if(t+4>e.length)return 0;let r=new Ie(e,t,e.length),n=r.u32();if(n===12){r.skip(4);let l=new Ie(e,t+10,e.length).u16();return 12+(l<=8?(1<<l)*3:0)}if(n<16||n>200)return 0;let o=new Ie(e,t+14,e.length).u16(),i=n>=20?new Ie(e,t+16,e.length).u32():0,s=n>=36?new Ie(e,t+32,e.length).u32():0;return o<=8?s=s>0?Math.min(s,1<<o):1<<o:s=0,n+(i===3?12:0)+s*4}var s1=1179469088,l1=1e5,Z={HEADER:1,POLYBEZIER:2,POLYGON:3,POLYLINE:4,POLYBEZIERTO:5,POLYLINETO:6,POLYPOLYLINE:7,POLYPOLYGON:8,SETWINDOWEXTEX:9,SETWINDOWORGEX:10,SETVIEWPORTEXTEX:11,SETVIEWPORTORGEX:12,EOF:14,SETPIXELV:15,SETMAPMODE:17,SETBKMODE:18,SETPOLYFILLMODE:19,SETTEXTALIGN:22,SETTEXTCOLOR:24,SETBKCOLOR:25,MOVETOEX:27,INTERSECTCLIPRECT:30,SCALEVIEWPORTEXTEX:31,SCALEWINDOWEXTEX:32,SAVEDC:33,RESTOREDC:34,SETWORLDTRANSFORM:35,MODIFYWORLDTRANSFORM:36,SELECTOBJECT:37,CREATEPEN:38,CREATEBRUSHINDIRECT:39,DELETEOBJECT:40,ELLIPSE:42,RECTANGLE:43,ROUNDRECT:44,ARC:45,CHORD:46,PIE:47,LINETO:54,ARCTO:55,POLYDRAW:56,BEGINPATH:59,ENDPATH:60,CLOSEFIGURE:61,FILLPATH:62,STROKEANDFILLPATH:63,STROKEPATH:64,SELECTCLIPPATH:67,ABORTPATH:68,EXTSELECTCLIPRGN:75,BITBLT:76,STRETCHBLT:77,STRETCHDIBITS:81,EXTCREATEFONTINDIRECTW:82,EXTTEXTOUTA:83,EXTTEXTOUTW:84,POLYBEZIER16:85,POLYGON16:86,POLYLINE16:87,POLYBEZIERTO16:88,POLYLINETO16:89,POLYPOLYLINE16:90,POLYPOLYGON16:91,POLYDRAW16:92,CREATEMONOBRUSH:93,CREATEDIBPATTERNBRUSHPT:94,EXTCREATEPEN:95};function jc(e){if(e.length<88)return!1;let t=new DataView(e.buffer,e.byteOffset,e.byteLength);return t.getUint32(0,!0)===1&&t.getUint32(40,!0)===s1}function a1(e,t={}){try{return c1(e,t)}catch{return null}}function c1(e,t){if(!jc(e))return null;let r=new Ie(e,0,e.length);r.skip(8);let n=r.rectL(),o=r.rectL();r.skip(16),r.skip(16);let i=r.i32(),s=r.i32(),l=r.i32(),a=r.i32(),c=l>0&&i>0?i/l:96/25.4,u=a>0&&s>0?s/a:96/25.4,h=new er({pxPerMmX:c,pxPerMmY:u}),f=n;if(!(f.r>f.l)||!(f.b>f.t)){let M=Math.round((o.r-o.l)*c/100),S=Math.round((o.b-o.t)*u/100);f={l:0,t:0,r:M>0?M:1024,b:S>0?S:768}}f={l:f.l,t:f.t,r:f.r+1,b:f.b+1};let m=(o.r-o.l)*96/2540,d=(o.b-o.t)*96/2540,p=t.width??(m>0?m:f.r-f.l),b=t.height??(d>0?d:f.b-f.t);h.dc.mapMode=Yi;let v=0,x=0;for(;v+8<=e.length&&x<l1;){let M=new DataView(e.buffer,e.byteOffset,e.byteLength),S=M.getUint32(v,!0),y=M.getUint32(v+4,!0);if(y<8||y%4!==0||v+y>e.length||S===Z.EOF)break;S!==Z.HEADER&&u1(h,e,S,v,y),v+=y,x++}return h.render(f,p,b)}function u1(e,t,r,n,o){let i=new Ie(t,n+8,n+o);switch(r){case Z.POLYGON:e.polyline(Hn(i),!0);break;case Z.POLYLINE:e.polyline(Hn(i),!1);break;case Z.POLYBEZIER:e.polyBezier(Hn(i),!1);break;case Z.POLYLINETO:e.polylineTo(Hn(i));break;case Z.POLYBEZIERTO:e.polyBezier(Hn(i),!0);break;case Z.POLYGON16:e.polyline(Wn(i),!0);break;case Z.POLYLINE16:e.polyline(Wn(i),!1);break;case Z.POLYBEZIER16:e.polyBezier(Wn(i),!1);break;case Z.POLYLINETO16:e.polylineTo(Wn(i));break;case Z.POLYBEZIERTO16:e.polyBezier(Wn(i),!0);break;case Z.POLYPOLYGON:e.polyPoly(Nr(i,!1),!0);break;case Z.POLYPOLYLINE:e.polyPoly(Nr(i,!1),!1);break;case Z.POLYPOLYGON16:e.polyPoly(Nr(i,!0),!0);break;case Z.POLYPOLYLINE16:e.polyPoly(Nr(i,!0),!1);break;case Z.POLYDRAW:case Z.POLYDRAW16:{i.skip(16);let s=Cn(i.i32()),l=[];for(let c=0;c<s;c++)l.push(r===Z.POLYDRAW?i.ptL():i.pt16());let a=[];for(let c=0;c<s;c++)a.push(i.u8());e.polyDraw(l,a);break}case Z.RECTANGLE:e.rect(i.rectL());break;case Z.ELLIPSE:e.ellipse(i.rectL());break;case Z.ROUNDRECT:{let s=i.rectL();e.roundRect(s,i.i32(),i.i32());break}case Z.ARC:case Z.CHORD:case Z.PIE:case Z.ARCTO:{let s=i.rectL(),l=i.ptL(),a=i.ptL(),c=r===Z.CHORD?\"chord\":r===Z.PIE?\"pie\":\"arc\";e.arc(s,l.x,l.y,a.x,a.y,c,r===Z.ARCTO);break}case Z.MOVETOEX:{let s=i.ptL();e.moveTo(s.x,s.y);break}case Z.LINETO:{let s=i.ptL();e.lineTo(s.x,s.y);break}case Z.SETPIXELV:{let s=i.ptL(),l=i.color();e.dc.brush={kind:\"brush\",style:fn,color:l,hatch:0,href:null},e.dc.pen={...e.dc.pen,style:$t},e.rect({l:s.x,t:s.y,r:s.x+1,b:s.y+1});break}case Z.BEGINPATH:e.beginPath();break;case Z.ENDPATH:e.endPath();break;case Z.CLOSEFIGURE:e.closeFigure();break;case Z.FILLPATH:e.finishPath(\"fill\");break;case Z.STROKEPATH:e.finishPath(\"stroke\");break;case Z.STROKEANDFILLPATH:e.finishPath(\"both\");break;case Z.ABORTPATH:e.abortPath();break;case Z.SELECTCLIPPATH:e.clipToPath();break;case Z.CREATEPEN:{let s=i.i32();e.putObj(s,f1(i));break}case Z.EXTCREATEPEN:{let s=i.i32();e.putObj(s,d1(i));break}case Z.CREATEBRUSHINDIRECT:{let s=i.i32();e.putObj(s,p1(i));break}case Z.CREATEMONOBRUSH:case Z.CREATEDIBPATTERNBRUSHPT:{let s=i.i32();e.putObj(s,m1(i,t,n));break}case Z.EXTCREATEFONTINDIRECTW:{let s=i.i32();e.putObj(s,g1(i));break}case Z.SELECTOBJECT:e.selectIdx(i.u32());break;case Z.DELETEOBJECT:e.delObj(i.u32());break;case Z.SETWORLDTRANSFORM:e.dc.world=ja(i);break;case Z.MODIFYWORLDTRANSFORM:{let s=ja(i),l=i.u32();l===1?e.dc.world=[...Nc]:l===2?e.dc.world=Gi(s,e.dc.world):l===3&&(e.dc.world=Gi(e.dc.world,s));break}case Z.SETWINDOWEXTEX:e.dc.winExt={x:i.i32(),y:i.i32()};break;case Z.SETWINDOWORGEX:e.dc.winOrg=i.ptL();break;case Z.SETVIEWPORTEXTEX:e.dc.vpExt={x:i.i32(),y:i.i32()};break;case Z.SETVIEWPORTORGEX:e.dc.vpOrg=i.ptL();break;case Z.SETMAPMODE:e.dc.mapMode=i.u32();break;case Z.SCALEVIEWPORTEXTEX:{let s=i.i32(),l=i.i32(),a=i.i32(),c=i.i32();l&&(e.dc.vpExt.x=e.dc.vpExt.x*s/l),c&&(e.dc.vpExt.y=e.dc.vpExt.y*a/c);break}case Z.SCALEWINDOWEXTEX:{let s=i.i32(),l=i.i32(),a=i.i32(),c=i.i32();l&&(e.dc.winExt.x=e.dc.winExt.x*s/l),c&&(e.dc.winExt.y=e.dc.winExt.y*a/c);break}case Z.SAVEDC:e.save();break;case Z.RESTOREDC:e.restore(i.i32());break;case Z.SETBKMODE:e.dc.bkMode=i.u32();break;case Z.SETPOLYFILLMODE:e.dc.polyFill=i.u32();break;case Z.SETTEXTALIGN:e.dc.textAlign=i.u32();break;case Z.SETTEXTCOLOR:e.dc.textColor=i.color();break;case Z.SETBKCOLOR:e.dc.bkColor=i.color();break;case Z.INTERSECTCLIPRECT:e.intersectClip(i.rectL());break;case Z.EXTSELECTCLIPRGN:b1(e,i);break;case Z.EXTTEXTOUTW:case Z.EXTTEXTOUTA:x1(e,i,t,n,o,r===Z.EXTTEXTOUTW);break;case Z.STRETCHDIBITS:v1(e,i,t,n);break;case Z.BITBLT:case Z.STRETCHBLT:w1(e,i,t,n,r===Z.STRETCHBLT);break}}var h1=1<<20,Cn=e=>e>0&&e<h1?e|0:0;function Hn(e){e.skip(16);let t=Math.min(Cn(e.i32()),e.left>>3),r=[];for(let n=0;n<t;n++)r.push(e.ptL());return r}function Wn(e){e.skip(16);let t=Math.min(Cn(e.i32()),e.left>>2),r=[];for(let n=0;n<t;n++)r.push(e.pt16());return r}function Nr(e,t){e.skip(16);let r=Cn(e.i32()),n=Cn(e.i32());if(!r||!n||r>n)return[];let o=[],i=0;for(let c=0;c<r;c++){let u=Cn(e.i32());o.push(u),i+=u}if(i>n)return[];let s=t?e.left>>2:e.left>>3,l=[],a=0;for(let c of o){let u=[];for(let h=0;h<c&&a<s;h++,a++)u.push(t?e.pt16():e.ptL());l.push(u)}return l}function f1(e){let t=e.u32(),r=e.i32();return e.i32(),{kind:\"pen\",style:t&15,width:Math.abs(r)||1,color:e.color(),cap:0,join:0}}function d1(e){e.skip(16);let t=e.u32(),r=e.u32(),n=e.u32(),o=e.color();return{kind:\"pen\",style:n===ir?$t:t&15,width:Math.max(r||1,1),color:o,cap:t&3840,join:t&61440}}function p1(e){let t=e.u32(),r=e.color(),n=e.u32();return{kind:\"brush\",style:t,color:r,hatch:n,href:null}}function m1(e,t,r){e.u32();let n=e.u32(),o=e.u32(),i=e.u32(),s=e.u32(),l=o>0?lr(t,r+n,o,r+i,s):null;return{kind:\"brush\",style:l?5:fn,color:\"#808080\",hatch:0,href:l}}function g1(e){let t=e.i32();e.i32();let r=e.i32();e.i32();let n=e.i32(),o=e.u8()!==0,i=e.u8()!==0,s=e.u8()!==0,l=e.u8();e.skip(4);let a=e.utf16(64),c=sr();return{kind:\"font\",height:t||c.height,escapement:r,weight:n>0?n:400,italic:o,underline:i,strike:s,charset:l,face:a||c.face}}function ja(e){return[e.f32(),e.f32(),e.f32(),e.f32(),e.f32(),e.f32()]}function b1(e,t){let r=t.u32(),n=t.u32();if(r===0){n===Pa&&e.clearClip();return}t.u32();let o=t.u32(),i=t.u32();if(t.u32(),t.rectL(),o!==Up||i<=0||i>65536)return;let s=[];for(let l=0;l<i;l++)s.push(t.rectL());n===Pa?e.setClipRects(s,!1):n===jp&&e.setClipRects(s,!0)}function x1(e,t,r,n,o,i){t.skip(16),t.u32();let s=t.f32();t.f32();let l=t.ptL(),a=t.u32(),c=t.u32(),u=t.u32(),h=t.rectL(),f=t.u32();if(!a||a>65536)return;let m=n+c,d=i?a*2:a;if(c<8||m+d>n+o)return;let p=i?new Ie(r,m,m+d).utf16(d):Zi(r.subarray(m,m+d),e.dc.font.charset);if(!p)return;let b=null,v=n+f;if(f>=8&&v+a*4<=n+o){let M=new Ie(r,v,v+a*4);b=[];for(let S=0;S<a;S++)b.push(M.i32());s>0&&s!==1&&Number.isFinite(s)&&(b=b.map(S=>S*s))}let x=u&2?h:null;e.text(l.x,l.y,p,b,x)}function v1(e,t,r,n){t.skip(16);let o=t.i32(),i=t.i32();t.i32(),t.i32(),t.i32(),t.i32();let s=t.u32(),l=t.u32(),a=t.u32(),c=t.u32();t.u32(),t.u32();let u=t.i32(),h=t.i32();if(!l||!c)return;let f=lr(r,n+s,l,n+a,c);f&&e.image({l:o,t:i,r:o+u,b:i+h},f)}function w1(e,t,r,n,o){t.skip(16);let i=t.i32(),s=t.i32(),l=t.i32(),a=t.i32();t.u32(),t.i32(),t.i32(),t.skip(24),t.u32(),t.u32();let c=t.u32(),u=t.u32(),h=t.u32(),f=t.u32();if(o&&(t.i32(),t.i32()),!u||!f)return;let m=lr(r,n+c,u,n+h,f);m&&e.image({l:i,t:s,r:i+l,b:s+a},m)}var Uc=2596720087,y1=1e5,J={EOF:0,SAVEDC:30,SETBKMODE:258,SETMAPMODE:259,SETPOLYFILLMODE:262,RESTOREDC:295,SELECTOBJECT:301,SETTEXTALIGN:302,DELETEOBJECT:496,SETBKCOLOR:513,SETTEXTCOLOR:521,SETWINDOWORG:523,SETWINDOWEXT:524,SETVIEWPORTORG:525,SETVIEWPORTEXT:526,OFFSETWINDOWORG:527,OFFSETVIEWPORTORG:529,LINETO:531,MOVETO:532,CREATEPENINDIRECT:762,CREATEFONTINDIRECT:763,CREATEBRUSHINDIRECT:764,POLYGON:804,POLYLINE:805,SCALEWINDOWEXT:1040,SCALEVIEWPORTEXT:1042,INTERSECTCLIPRECT:1046,ELLIPSE:1048,ARC:2071,RECTANGLE:1051,SETPIXEL:1055,TEXTOUT:1313,POLYPOLYGON:1336,ROUNDRECT:1564,PATBLT:1565,PIE:2074,CHORD:2096,EXTTEXTOUT:2610,DIBBITBLT:2368,DIBSTRETCHBLT:2881,STRETCHDIB:3907,CREATEPALETTE:247,CREATEBRUSH:248,CREATEPATTERNBRUSH:505,DIBCREATEPATTERNBRUSH:322,CREATEREGION:1791,CREATEBITMAP:1790,CREATEBITMAPINDIRECT:765};function Dc(e){if(e.length<20)return!1;let t=new DataView(e.buffer,e.byteOffset,e.byteLength);if(t.getUint32(0,!0)===Uc)return!0;let r=t.getUint16(0,!0),n=t.getUint16(2,!0),o=t.getUint16(4,!0);return(r===1||r===2)&&n===9&&(o===256||o===768)}function $1(e,t={}){try{return M1(e,t)}catch{return null}}function M1(e,t){if(!Dc(e))return null;let r=new DataView(e.buffer,e.byteOffset,e.byteLength),n=0,o=null,i=1440;if(r.getUint32(0,!0)===Uc&&(o={l:r.getInt16(6,!0),t:r.getInt16(8,!0),r:r.getInt16(10,!0),b:r.getInt16(12,!0)},i=r.getUint16(14,!0)||1440,n=22),n+18>e.length)return null;n+=18,(!o||!(o.r>o.l)||!(o.b>o.t))&&(o=k1(e,r,n),i=96);let s=o.r-o.l,l=o.b-o.t,a=i/25.4,c=new er({pxPerMmX:a,pxPerMmY:a});c.dc.mapMode=qp,c.dc.winOrg={x:o.l,y:o.t},c.dc.winExt={x:s,y:l},c.dc.vpOrg={x:o.l,y:o.t},c.dc.vpExt={x:s,y:l};let u=t.width??s/i*96,h=t.height??l/i*96,f=0;for(;n+6<=e.length&&f<y1;){let m=r.getUint32(n,!0),d=r.getUint16(n+4,!0);if(m<3)break;let p=m*2;if(n+p>e.length||d===J.EOF)break;C1(c,e,d,n,p),n+=p,f++}return c.render({l:o.l,t:o.t,r:o.r,b:o.b},u,h)}function k1(e,t,r){let n={x:0,y:0},o=null,i=r,s=0;for(;i+6<=e.length&&s<2e3;){let c=t.getUint32(i,!0),u=t.getUint16(i+4,!0);if(c<3||i+c*2>e.length||u===J.EOF)break;u===J.SETWINDOWORG&&c>=5&&(n={x:t.getInt16(i+8,!0),y:t.getInt16(i+6,!0)}),u===J.SETWINDOWEXT&&c>=5&&!o&&(o={x:t.getInt16(i+8,!0),y:t.getInt16(i+6,!0)}),i+=c*2,s++}let l=o?Math.abs(o.x):0,a=o?Math.abs(o.y):0;return{l:n.x,t:n.y,r:n.x+(l||1024),b:n.y+(a||768)}}function C1(e,t,r,n,o){let i=n+o,s=new Ie(t,n+6,i);switch(r){case J.POLYGON:e.polyline(Ua(s),!0);break;case J.POLYLINE:e.polyline(Ua(s),!1);break;case J.POLYPOLYGON:{let l=s.u16();if(!l||l>16384)break;let a=[];for(let u=0;u<l;u++)a.push(s.u16());let c=[];for(let u of a){let h=[];for(let f=0;f<u&&s.has(4);f++)h.push(s.pt16());c.push(h)}e.polyPoly(c,!0);break}case J.RECTANGLE:e.rect(Vn(s));break;case J.ELLIPSE:e.ellipse(Vn(s));break;case J.ROUNDRECT:{let l=s.i16(),a=s.i16();e.roundRect(Vn(s),a,l);break}case J.ARC:case J.CHORD:case J.PIE:{let l=s.i16(),a=s.i16(),c=s.i16(),u=s.i16(),h=Vn(s);e.arc(h,u,c,a,l,r===J.CHORD?\"chord\":r===J.PIE?\"pie\":\"arc\");break}case J.MOVETO:{let l=s.i16(),a=s.i16();e.moveTo(a,l);break}case J.LINETO:{let l=s.i16(),a=s.i16();e.lineTo(a,l);break}case J.SETPIXEL:{let l=s.color(),a=s.i16(),c=s.i16();e.dc.brush={kind:\"brush\",style:fn,color:l,hatch:0,href:null},e.dc.pen={...e.dc.pen,style:$t},e.rect({l:c,t:a,r:c+1,b:a+1});break}case J.PATBLT:{s.u32();let l=s.i16(),a=s.i16(),c=s.i16(),u=s.i16();e.dc.pen={...e.dc.pen,style:$t},e.rect({l:u,t:c,r:u+a,b:c+l});break}case J.CREATEPENINDIRECT:e.addObj(E1(s));break;case J.CREATEBRUSHINDIRECT:e.addObj(T1(s));break;case J.CREATEFONTINDIRECT:e.addObj(L1(s));break;case J.SELECTOBJECT:e.selectIdx(s.u16());break;case J.DELETEOBJECT:e.delObj(s.u16());break;case J.CREATEPALETTE:case J.CREATEBRUSH:case J.CREATEREGION:case J.CREATEBITMAP:case J.CREATEBITMAPINDIRECT:e.addObj({kind:\"brush\",style:ir,color:\"#000000\",hatch:0,href:null});break;case J.CREATEPATTERNBRUSH:case J.DIBCREATEPATTERNBRUSH:e.addObj(A1(t,n,o,r));break;case J.SETWINDOWORG:{let l=s.i16(),a=s.i16();e.dc.winOrg={x:a,y:l};break}case J.SETWINDOWEXT:{let l=s.i16(),a=s.i16();e.dc.winExt={x:a,y:l};break}case J.SETVIEWPORTORG:{let l=s.i16(),a=s.i16();e.dc.vpOrg={x:a,y:l};break}case J.SETVIEWPORTEXT:{let l=s.i16(),a=s.i16();e.dc.vpExt={x:a,y:l};break}case J.OFFSETWINDOWORG:{let l=s.i16(),a=s.i16();e.dc.winOrg={x:e.dc.winOrg.x+a,y:e.dc.winOrg.y+l};break}case J.OFFSETVIEWPORTORG:{let l=s.i16(),a=s.i16();e.dc.vpOrg={x:e.dc.vpOrg.x+a,y:e.dc.vpOrg.y+l};break}case J.SCALEWINDOWEXT:{let l=s.i16(),a=s.i16(),c=s.i16(),u=s.i16();c&&(e.dc.winExt.x=e.dc.winExt.x*u/c),l&&(e.dc.winExt.y=e.dc.winExt.y*a/l);break}case J.SCALEVIEWPORTEXT:{let l=s.i16(),a=s.i16(),c=s.i16(),u=s.i16();c&&(e.dc.vpExt.x=e.dc.vpExt.x*u/c),l&&(e.dc.vpExt.y=e.dc.vpExt.y*a/l);break}case J.SETMAPMODE:e.dc.mapMode=s.u16();break;case J.SAVEDC:e.save();break;case J.RESTOREDC:e.restore(s.i16());break;case J.SETBKMODE:e.dc.bkMode=s.u16();break;case J.SETBKCOLOR:e.dc.bkColor=s.color();break;case J.SETTEXTCOLOR:e.dc.textColor=s.color();break;case J.SETTEXTALIGN:e.dc.textAlign=s.u16();break;case J.SETPOLYFILLMODE:e.dc.polyFill=s.u16();break;case J.INTERSECTCLIPRECT:e.intersectClip(Vn(s));break;case J.TEXTOUT:{let l=s.u16();if(l>32768)break;let a=s.p,c=l+(l&1);s.skip(c);let u=s.i16(),h=s.i16(),f=Zi(t.subarray(a,Math.min(a+l,i)),e.dc.font.charset);e.text(h,u,f,null,null);break}case J.EXTTEXTOUT:{let l=s.i16(),a=s.i16(),c=s.u16(),u=s.u16();if(c>32768)break;let h=null;if(u&6){let b=s.i16(),v=s.i16(),x=s.i16(),M=s.i16();h={l:b,t:v,r:x,b:M}}let f=s.p,m=c+(c&1);s.skip(m);let d=null;if(s.left>=c*2&&c>0){d=[];for(let b=0;b<c;b++)d.push(s.i16())}let p=Zi(t.subarray(f,Math.min(f+c,i)),e.dc.font.charset);e.text(a,l,p,d,u&2?h:null);break}case J.STRETCHDIB:{s.u32(),s.u16(),s.i16(),s.i16(),s.i16(),s.i16();let l=s.i16(),a=s.i16(),c=s.i16(),u=s.i16();Ti(e,t,s.p,i,u,c,a,l);break}case J.DIBSTRETCHBLT:{let l=o===28;if(s.u32(),s.i16(),s.i16(),s.i16(),s.i16(),l)break;let a=s.i16(),c=s.i16(),u=s.i16(),h=s.i16();Ti(e,t,s.p,i,h,u,c,a);break}case J.DIBBITBLT:{let l=o===24;if(s.u32(),s.i16(),s.i16(),l)break;let a=s.i16(),c=s.i16(),u=s.i16(),h=s.i16();Ti(e,t,s.p,i,h,u,c,a);break}}}function Ti(e,t,r,n,o,i,s,l){if(r>=n||s===0||l===0)return;let a=Fc(t,r);if(!a)return;let c=lr(t,r,a,r+a,n-r-a);c&&e.image({l:o,t:i,r:o+s,b:i+l},c)}var S1=1<<18;function Ua(e){let t=e.u16();if(!t||t>S1)return[];let r=Math.min(t,e.left>>2),n=[];for(let o=0;o<r;o++)n.push(e.pt16());return n}function Vn(e){let t=e.i16(),r=e.i16(),n=e.i16();return{l:e.i16(),t:n,r,b:t}}function E1(e){let t=e.u16(),r=e.i16();return e.i16(),{kind:\"pen\",style:t&15,width:Math.abs(r)||1,color:e.color(),cap:t&3840,join:t&61440}}function T1(e){let t=e.u16(),r=e.color(),n=e.u16();return{kind:\"brush\",style:t,color:r,hatch:n,href:null}}function L1(e){let t=e.i16();e.i16();let r=e.i16();e.i16();let n=e.i16(),o=e.u8()!==0,i=e.u8()!==0,s=e.u8()!==0,l=e.u8();e.skip(4);let a=e.ansi(Math.min(32,e.left)),c=sr();return{kind:\"font\",height:t||c.height,escapement:r,weight:n>0?n:400,italic:o,underline:i,strike:s,charset:l,face:a||c.face}}function A1(e,t,r,n){let o={kind:\"brush\",style:fn,color:\"#808080\",hatch:0,href:null};if(n!==J.DIBCREATEPATTERNBRUSH)return o;let i=t+6+4,s=t+r,l=Fc(e,i);if(!l||i+l>=s)return o;let a=lr(e,i,l,i+l,s-i-l);return a?{kind:\"brush\",style:5,color:\"#808080\",hatch:0,href:a}:o}var Da=2e5,Ba=0,P1=1,I1=2,N1=3,Li=4,R1={0:0,2:8,3:2,4:2,5:2,6:4,7:4,8:2,9:8,10:8,11:4,12:4,13:2,14:4,15:4,16:8,21:2,22:2,23:0,24:0,25:0,26:6,27:6,28:0,29:6,30:0,31:6,35:2,45:6,46:0,47:0,61:0,62:0,63:0,77:0,78:0,79:0,93:0,94:0,95:0,109:12,110:12,111:12,125:0,126:0,127:0,141:0,142:0,143:0};function O1(e){return Bc(e)!==null}function Bc(e){if(!e||e.length<16)return null;for(let t of[512,0]){if(t+12>e.length)continue;let r=new DataView(e.buffer,e.byteOffset+t,e.length-t),n=r.getInt16(2,!1),o=r.getInt16(4,!1),i=r.getInt16(6,!1),s=r.getInt16(8,!1);if(!(s>o)||!(i>n))continue;let l=r.getUint16(10,!1);if(l===17&&r.getUint16(12,!1)===767)return{off:t+14,v2:!0,bounds:{l:o,t:n,r:s,b:i}};if(l>>8===17&&(l&255)===1)return{off:t+12,v2:!1,bounds:{l:o,t:n,r:s,b:i}}}return null}function z1(e,t={}){try{return j1(e,t)}catch{return null}}function F1(){return{fg:\"#000000\",bg:\"#ffffff\",penW:1,penH:1,penSolid:!0,fillSolid:!0,fillColor:\"#000000\",txFont:0,txSize:12,txFace:0,ovalW:0,ovalH:0,origin:{x:0,y:0}}}function j1(e,t){let r=Bc(e);if(!r)return null;let{bounds:n,v2:o}=r,i=n.r-n.l,s=n.b-n.t,l=new er({pxPerMmX:72/25.4,pxPerMmY:72/25.4}),a=new Ie(e,r.off,e.length),c=F1(),u=()=>({kind:\"pen\",style:c.penSolid&&c.penW>0?Rc:$t,width:Math.max(c.penW,c.penH),color:c.fg,cap:0,join:0}),h=(E,T)=>({kind:\"brush\",style:T?fn:ir,color:E,hatch:0,href:null}),f=E=>{switch(E){case Ba:return l.select(u()),l.select(h(\"#000000\",!1)),!0;case P1:case Li:return l.select({...u(),style:$t}),l.select(h(E===Li?c.fillColor:c.fg,E===Li?c.fillSolid:c.penSolid)),!0;case I1:return l.select({...u(),style:$t}),l.select(h(c.bg,!0)),!0;case N1:return l.select({...u(),style:$t}),l.select(h(c.fg,!0)),!0;default:return!1}},m=()=>{let E=a.i16be(),T=a.i16be(),I=a.i16be(),O=a.i16be();return{l:T,t:E,r:O,b:I}},d=()=>{let E=a.i16be();return{x:a.i16be(),y:E}},p=()=>{let E=a.u16be(),T=a.u16be(),I=a.u16be();return Xi(E>>8,T>>8,I>>8)},b=()=>{let E=a.u16be();if(E<10)return a.skip(Math.max(0,E-2)),null;let T=m();return a.skip(E-10),T},v={l:0,t:0,r:0,b:0},x={l:0,t:0,r:0,b:0},M={l:0,t:0,r:0,b:0},S=[],y=null,$={x:0,y:0},k=!1,A=(E,T)=>{if(f(T)){switch(E){case\"rect\":l.rect(v);break;case\"rrect\":l.roundRect(M,c.ovalW,c.ovalH);break;case\"oval\":l.ellipse(x);break;case\"poly\":S.length>1&&l.polyline(S,!0);break;case\"arc\":{if(!y)return;let{rect:I,start:O,ext:R}=y,z=(I.l+I.r)/2,j=(I.t+I.b)/2,F=(I.r-I.l)/2,W=(I.b-I.t)/2,V=X=>{let K=(90-X)*Math.PI/180;return{x:z+F*Math.cos(K),y:j-W*Math.sin(K)}},B=V(O),q=V(O+R);l.arc(I,B.x,B.y,q.x,q.y,T===Ba?\"arc\":\"pie\");break}}k=!0}},L=(E,T,I)=>{if(!I)return;let O={...sr(),height:-Math.max(c.txSize,1),weight:c.txFace&1?700:400,italic:!!(c.txFace&2)};l.select(O),l.dc.textAlign=24,l.dc.textColor=c.fg,l.text(E,T,I,null,null),k=!0},P=0;for(;a.has(o?2:1)&&P++<Da&&(o&&(a.pos-r.off)%2===1&&a.skip(1),!!a.has(o?2:1));){let E=o?a.u16be():a.u8();if(E===255)break;switch(E){case 1:{let T=b();T&&l.intersectClip(T);break}case 7:{let T=d();c.penW=Math.abs(T.x),c.penH=Math.abs(T.y);break}case 9:case 10:{let T=[a.u8(),a.u8(),a.u8(),a.u8(),a.u8(),a.u8(),a.u8(),a.u8()].some(I=>I!==0);E===9?c.penSolid=T:(c.fillSolid=T,c.fillColor=c.fg);break}case 11:{let T=d();c.ovalW=Math.abs(T.x),c.ovalH=Math.abs(T.y);break}case 12:{let T=d();c.origin=T;break}case 13:c.txSize=a.u16be();break;case 3:c.txFont=a.u16be();break;case 4:c.txFace=a.u8(),a.skip(1);break;case 14:case 15:{let T=a.u32be(),I=T===0?\"#000000\":T===30?\"#ffffff\":Xi(T>>16&255,T>>8&255,T&255);E===14?c.fg=I:c.bg=I;break}case 26:c.fg=p();break;case 27:c.bg=p();break;case 32:{let T=d(),I=d();l.select(u()),l.moveTo(T.x,T.y),l.lineTo(I.x,I.y),$=I,k=!0;break}case 33:{let T=d();l.select(u()),l.moveTo($.x,$.y),l.lineTo(T.x,T.y),$=T,k=!0;break}case 34:{let T=d(),I=a.i8(),O=a.i8();l.select(u()),l.moveTo(T.x,T.y),l.lineTo(T.x+I,T.y+O),$={x:T.x+I,y:T.y+O},k=!0;break}case 35:{let T=a.i8(),I=a.i8();l.select(u()),l.moveTo($.x,$.y),l.lineTo($.x+T,$.y+I),$={x:$.x+T,y:$.y+I},k=!0;break}case 40:{let T=d();L(T.x,T.y,a.ansi(a.u8())),$=T;break}case 41:{let T=a.u8(),I=a.ansi(a.u8());$={x:$.x+T,y:$.y},L($.x,$.y,I);break}case 42:{let T=a.u8(),I=a.ansi(a.u8());$={x:$.x,y:$.y+T},L($.x,$.y,I);break}case 43:{let T=a.u8(),I=a.u8(),O=a.ansi(a.u8());$={x:$.x+T,y:$.y+I},L($.x,$.y,O);break}case 44:{let T=a.u16be();a.skip(Math.max(0,T));break}case 48:case 49:case 50:case 51:case 52:v=m(),A(\"rect\",E&7);break;case 56:case 57:case 58:case 59:case 60:A(\"rect\",E&7);break;case 64:case 65:case 66:case 67:case 68:M=m(),A(\"rrect\",E&7);break;case 72:case 73:case 74:case 75:case 76:A(\"rrect\",E&7);break;case 80:case 81:case 82:case 83:case 84:x=m(),A(\"oval\",E&7);break;case 88:case 89:case 90:case 91:case 92:A(\"oval\",E&7);break;case 96:case 97:case 98:case 99:case 100:{let T=m(),I=a.i16be(),O=a.i16be();y={rect:T,start:I,ext:O},A(\"arc\",E&7);break}case 104:case 105:case 106:case 107:case 108:{let T=a.i16be(),I=a.i16be();y&&(y={rect:y.rect,start:T,ext:I}),A(\"arc\",E&7);break}case 112:case 113:case 114:case 115:case 116:{let T=a.u16be(),I=a.pos+T-2;m();let O=[];for(;a.pos+4<=I;)O.push(d());a.seek(I),S=O,A(\"poly\",E&7);break}case 120:case 121:case 122:case 123:case 124:A(\"poly\",E&7);break;case 128:case 129:case 130:case 131:case 132:{let T=b();T&&(v=T,A(\"rect\",E&7));break}case 136:case 137:case 138:case 139:case 140:A(\"rect\",E&7);break;case 144:case 145:case 152:case 153:case 154:case 155:{if(!B1(a,E,l))return null;k=!0;break}case 160:a.skip(2);break;case 161:{a.skip(2);let T=a.u16be();a.skip(T);break}case 3072:a.skip(24);break;case 33280:case 33281:{let T=a.u32be(),I=a.pos+T,O=D1(a,I);O&&(l.image(n,O),k=!0),a.seek(Math.min(I,e.length));break}default:{let T=R1[E];if(T!==void 0){a.skip(T);break}let I=U1(E,a);if(I<0){P=Da;break}a.skip(I)}}}return k?l.render(n,t.width??i,t.height??s):null}function U1(e,t){return e>=256&&e<=32767?(e>>8&255)*2:e>=32768&&e<=33023?0:e>=33024&&t.has(4)?t.u32be():-1}function D1(e,t){let r=e.pos,n=e.take(Math.max(0,Math.min(t,e.limit)-r));e.seek(r);for(let o=0;o+3<n.length;o++){if(n[o]===255&&n[o+1]===216&&n[o+2]===255)return`data:image/jpeg;base64,${tr(n.subarray(o))}`;if(n[o]===137&&n[o+1]===80&&n[o+2]===78&&n[o+3]===71)return`data:image/png;base64,${tr(n.subarray(o))}`}return null}function B1(e,t,r){let n=t===154||t===155,o=t===145||t===153||t===155;n&&e.skip(4);let i=e.u16be()&32767,s=e.i16be(),l=e.i16be(),a=e.i16be(),c=e.i16be()-l,u=a-s;if(c<=0||u<=0||c>2e4||u>2e4)return!1;let h=i>=8,f=1,m=1,d=[];if(n||(i&32768)!==0||t===152||t===153){if(e.skip(2),e.u16be(),e.skip(4),e.skip(8),e.skip(2),f=e.u16be(),m=e.u16be(),e.u16be(),e.skip(4),e.skip(8),!n){e.skip(4),e.skip(2);let y=e.u16be()+1;if(y>0&&y<=256){d=new Array(y);for(let $=0;$<y;$++)e.skip(2),d[$]=[e.u16be()>>8,e.u16be()>>8,e.u16be()>>8]}}}else f=1;e.i16be(),e.i16be(),e.i16be(),e.i16be();let p={t:e.i16be(),l:e.i16be(),b:e.i16be(),r:e.i16be()};if(e.skip(2),o){let y=e.u16be();e.skip(Math.max(0,y-2))}let b=i;if(b*u>64*1024*1024)return!1;let v=new Uint8Array(b*u).fill(255),x=0;for(let y=0;y<u;y++){if(!h){if(!e.has(b))break;v.set(e.take(b),y*b),x++;continue}let $=i>250?e.u16be():e.u8();if($<=0||!e.has($))break;H1(e.take($),v,y*b,b),x++}if(!x)return!1;let M=new Uint8Array(c*u*4);for(let y=0;y<u;y++)for(let $=0;$<c;$++){let k=0,A=0,L=0;if(n&&f===32){let E=y*b,T=m===3?0:c;k=v[E+T+$],A=v[E+T+c+$],L=v[E+T+c*2+$]}else if(n&&f===16){let E=v[y*b+$*2]<<8|v[y*b+$*2+1];k=(E>>10&31)*8,A=(E>>5&31)*8,L=(E&31)*8}else if(f===8){let E=v[y*b+$];[k,A,L]=d[E]??[E,E,E]}else if(f===4){let E=v[y*b+($>>1)],T=$&1?E&15:E>>4;[k,A,L]=d[T]??[0,0,0]}else{let E=v[y*b+($>>3)]>>7-($&7)&1;[k,A,L]=d[E]??(E?[0,0,0]:[255,255,255])}let P=(y*c+$)*4;M[P]=k,M[P+1]=A,M[P+2]=L,M[P+3]=255}let S=`data:image/png;base64,${tr(zc(M,c,u))}`;return r.image({l:p.l,t:p.t,r:p.r,b:p.b},S),!0}function H1(e,t,r,n){let o=0,i=r,s=r+n;for(;o<e.length&&i<s;){let l=e[o++]<<24>>24;if(l>=0){let a=Math.min(l+1,s-i,e.length-o);t.set(e.subarray(o,o+a),i),o+=a,i+=a}else{if(o>=e.length)break;let a=Math.min(1-l,s-i);t.fill(e[o++],i,i+a),i+=a}}}function W1(e){return!e||e.length<20?null:jc(e)?\"emf\":Dc(e)?\"wmf\":O1(e)?\"pict\":null}function V1(e,t){try{let r=W1(e);return r===\"emf\"?a1(e,t):r===\"wmf\"?$1(e,t):r===\"pict\"?z1(e,t):null}catch{return null}}var Rr=4294967294,Or=4294967295,_r=class{constructor(t){if(this.fat=[],this.miniFat=[],this.dir=[],this.miniStream=new Uint8Array(0),t.length<512||t[0]!==208||t[1]!==207)throw new Error(\"\\u4E0D\\u662F\\u6709\\u6548\\u7684 CFB \\u590D\\u5408\\u6587\\u6863\");this.bytes=t,this.view=new DataView(t.buffer,t.byteOffset,t.byteLength),this.sectorSize=1<<this.view.getUint16(30,!0),this.miniSectorSize=1<<this.view.getUint16(32,!0),this.miniCutoff=this.view.getUint32(56,!0),this.readFat(),this.readDirectory(),this.readMiniFat()}offsetOf(t){return(t+1)*this.sectorSize}readFat(){let t=[];for(let i=0;i<109;i++)t.push(this.view.getUint32(76+i*4,!0));let r=this.view.getUint32(68,!0),n=this.sectorSize/4,o=0;for(;r!==Rr&&r!==Or&&o++<1e5;){let i=this.offsetOf(r);if(i+this.sectorSize>this.bytes.length)break;for(let s=0;s<n-1;s++)t.push(this.view.getUint32(i+s*4,!0));r=this.view.getUint32(i+(n-1)*4,!0)}for(let i of t){if(i===Or||i===Rr)continue;let s=this.offsetOf(i);if(!(s+this.sectorSize>this.bytes.length))for(let l=0;l<n;l++)this.fat.push(this.view.getUint32(s+l*4,!0))}}chain(t,r){let n=[],o=t,i=0;for(;o!==Rr&&o!==Or&&o>=0&&o<r.length&&i++<1e6;)n.push(o),o=r[o];return n}readChain(t,r){let n=this.chain(t,this.fat),o=new Uint8Array(n.length*this.sectorSize);return n.forEach((i,s)=>{let l=this.offsetOf(i);o.set(this.bytes.subarray(l,Math.min(l+this.sectorSize,this.bytes.length)),s*this.sectorSize)}),o.subarray(0,r)}readDirectory(){let t=this.view.getUint32(48,!0),r=this.chain(t,this.fat),n=this.readChain(t,r.length*this.sectorSize),o=new DataView(n.buffer,n.byteOffset,n.byteLength);for(let i=0;i+128<=n.length;i+=128){let s=o.getUint16(i+64,!0);if(s===0||s>64)continue;let l=\"\";for(let a=0;a<s-2;a+=2)l+=String.fromCharCode(o.getUint16(i+a,!0));this.dir.push({name:l,type:o.getUint8(i+66),start:o.getUint32(i+116,!0),size:o.getUint32(i+120,!0)})}}readMiniFat(){let t=this.view.getUint32(60,!0);if(t!==Rr&&t!==Or){let n=this.chain(t,this.fat),o=this.readChain(t,n.length*this.sectorSize),i=new DataView(o.buffer,o.byteOffset,o.byteLength);for(let s=0;s+4<=o.length;s+=4)this.miniFat.push(i.getUint32(s,!0))}let r=this.dir.find(n=>n.type===5);r&&(this.miniStream=this.readChain(r.start,r.size))}streamNames(){return this.dir.filter(t=>t.type===2).map(t=>t.name)}stream(t){let r=this.dir.find(i=>i.type===2&&i.name.toLowerCase()===t.toLowerCase());if(!r)return null;if(r.size>=this.miniCutoff)return this.readChain(r.start,r.size);let n=this.chain(r.start,this.miniFat),o=new Uint8Array(n.length*this.miniSectorSize);return n.forEach((i,s)=>{o.set(this.miniStream.subarray(i*this.miniSectorSize,(i+1)*this.miniSectorSize),s*this.miniSectorSize)}),o.subarray(0,r.size)}},Hc=null,Wc=null;function G1(e){Wc=e}function X1(){return Wc}function Y1(e){Hc=e}function q1(){return Hc}function Ai(e,t){return(e<<t|e>>>32-t)>>>0}function hs(e,t,r){let n=e.length*8,o=Math.ceil((e.length+1+r)/t)*t,i=new Uint8Array(o);i.set(e),i[e.length]=128;let s=new DataView(i.buffer);return s.setUint32(o-4,n>>>0,!1),s.setUint32(o-8,Math.floor(n/4294967296),!1),i}function Pt(e){let t=[1732584193,4023233417,2562383102,271733878,3285377520],r=hs(e,64,8),n=new Uint32Array(80),o=new DataView(r.buffer);for(let l=0;l<r.length;l+=64){for(let m=0;m<16;m++)n[m]=o.getUint32(l+m*4,!1);for(let m=16;m<80;m++)n[m]=Ai(n[m-3]^n[m-8]^n[m-14]^n[m-16],1);let[a,c,u,h,f]=t;for(let m=0;m<80;m++){let d,p;m<20?(d=c&u|~c&h,p=1518500249):m<40?(d=c^u^h,p=1859775393):m<60?(d=c&u|c&h|u&h,p=2400959708):(d=c^u^h,p=3395469782);let b=Ai(a,5)+d+f+p+n[m]>>>0;f=h,h=u,u=Ai(c,30),c=a,a=b}t[0]=t[0]+a>>>0,t[1]=t[1]+c>>>0,t[2]=t[2]+u>>>0,t[3]=t[3]+h>>>0,t[4]=t[4]+f>>>0}let i=new Uint8Array(20),s=new DataView(i.buffer);for(let l=0;l<5;l++)s.setUint32(l*4,t[l],!1);return i}var Z1=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function _1(e){let t=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),r=hs(e,64,8),n=new DataView(r.buffer),o=new Uint32Array(64),i=(a,c)=>a>>>c|a<<32-c;for(let a=0;a<r.length;a+=64){for(let x=0;x<16;x++)o[x]=n.getUint32(a+x*4,!1);for(let x=16;x<64;x++){let M=i(o[x-15],7)^i(o[x-15],18)^o[x-15]>>>3,S=i(o[x-2],17)^i(o[x-2],19)^o[x-2]>>>10;o[x]=o[x-16]+M+o[x-7]+S>>>0}let[c,u,h,f,m,d,p,b]=t;for(let x=0;x<64;x++){let M=i(m,6)^i(m,11)^i(m,25),S=m&d^~m&p,y=b+M+S+Z1[x]+o[x]>>>0,$=i(c,2)^i(c,13)^i(c,22),k=c&u^c&h^u&h,A=$+k>>>0;b=p,p=d,d=m,m=f+y>>>0,f=h,h=u,u=c,c=y+A>>>0}let v=[c,u,h,f,m,d,p,b];for(let x=0;x<8;x++)t[x]=t[x]+v[x]>>>0}let s=new Uint8Array(32),l=new DataView(s.buffer);for(let a=0;a<8;a++)l.setUint32(a*4,t[a],!1);return s}var K1=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298,3391569614,3515267271,3940187606,4118630271,116418474,174292421,289380356,460393269,685471733,852142971,1017036298,1126000580,1288033470,1501505948,1607167915,1816402316]),Q1=new Uint32Array([3609767458,602891725,3964484399,2173295548,4081628472,3053834265,2937671579,3664609560,2734883394,1164996542,1323610764,3590304994,4068182383,991336113,633803317,3479774868,2666613458,944711139,2341262773,2007800933,1495990901,1856431235,3175218132,2198950837,3999719339,766784016,2566594879,3203337956,1034457026,2466948901,3758326383,168717936,1188179964,1546045734,1522805485,2643833823,2343527390,1014477480,1206759142,344077627,1290863460,3158454273,3505952657,106217008,3606008344,1432725776,1467031594,851169720,3100823752,1363258195,3750685593,3785050280,3318307427,3812723403,2003034995,3602036899,1575990012,1125592928,2716904306,442776044,593698344,3733110249,2999351573,3815920427,3928383900,566280711,3454069534,4000239992,1914138554,2731055270,3203993006,320620315,587496836,1086792851,365543100,2618297676,3409855158,4234509866,987167468,1246189591]),J1=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],em=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428];function Vc(e,t,r){let n=new Uint32Array(8),o=new Uint32Array(8);for(let p=0;p<8;p++)n[p]=t[p*2],o[p]=t[p*2+1];let i=hs(e,128,16),s=new DataView(i.buffer),l=new Uint32Array(80),a=new Uint32Array(80),c=0,u=0,h=(p,b,v)=>{if(v<32)c=p>>>v|b<<32-v,u=b>>>v|p<<32-v;else if(v===32)c=b,u=p;else{let x=v-32;c=b>>>x|p<<32-x,u=p>>>x|b<<32-x}},f=(p,b,v)=>{v<32?(c=p>>>v,u=b>>>v|p<<32-v):(c=0,u=p>>>v-32)};for(let p=0;p<i.length;p+=128){for(let F=0;F<16;F++)l[F]=s.getUint32(p+F*8,!1),a[F]=s.getUint32(p+F*8+4,!1);for(let F=16;F<80;F++){h(l[F-15],a[F-15],1);let W=c,V=u;h(l[F-15],a[F-15],8),W^=c,V^=u,f(l[F-15],a[F-15],7),W^=c,V^=u,h(l[F-2],a[F-2],19);let B=c,q=u;h(l[F-2],a[F-2],61),B^=c,q^=u,f(l[F-2],a[F-2],6),B^=c,q^=u;let X=(a[F-16]>>>0)+(V>>>0)+(a[F-7]>>>0)+(q>>>0);a[F]=X>>>0,l[F]=l[F-16]+W+l[F-7]+B+Math.floor(X/4294967296)>>>0}let b=n[0],v=o[0],x=n[1],M=o[1],S=n[2],y=o[2],$=n[3],k=o[3],A=n[4],L=o[4],P=n[5],E=o[5],T=n[6],I=o[6],O=n[7],R=o[7];for(let F=0;F<80;F++){h(A,L,14);let W=c,V=u;h(A,L,18),W^=c,V^=u,h(A,L,41),W^=c,V^=u;let B=A&P^~A&T,q=L&E^~L&I,X=(R>>>0)+(V>>>0)+(q>>>0)+Q1[F]+(a[F]>>>0),K=X>>>0,Y=O+W+B+K1[F]+l[F]+Math.floor(X/4294967296)>>>0;h(b,v,28);let se=c,ue=u;h(b,v,34),se^=c,ue^=u,h(b,v,39),se^=c,ue^=u;let fe=b&x^b&S^x&S,de=v&M^v&y^M&y;X=(ue>>>0)+(de>>>0);let it=X>>>0,mt=se+fe+Math.floor(X/4294967296)>>>0;O=T,R=I,T=P,I=E,P=A,E=L,X=(k>>>0)+(K>>>0),L=X>>>0,A=$+Y+Math.floor(X/4294967296)>>>0,$=S,k=y,S=x,y=M,x=b,M=v,X=(K>>>0)+(it>>>0),v=X>>>0,b=Y+mt+Math.floor(X/4294967296)>>>0}let z=[b,x,S,$,A,P,T,O],j=[v,M,y,k,L,E,I,R];for(let F=0;F<8;F++){let W=(o[F]>>>0)+(j[F]>>>0);o[F]=W>>>0,n[F]=n[F]+z[F]+Math.floor(W/4294967296)>>>0}}let m=new Uint8Array(64),d=new DataView(m.buffer);for(let p=0;p<8;p++)d.setUint32(p*8,n[p],!1),d.setUint32(p*8+4,o[p],!1);return m.subarray(0,r)}var tm=e=>Vc(e,J1,64),nm=e=>Vc(e,em,48);function Ha(e){switch(e.toUpperCase().replace(/[-_]/g,\"\")){case\"SHA1\":return Pt;case\"SHA256\":return _1;case\"SHA384\":return nm;case\"SHA512\":return tm;default:return null}}var cn=new Uint8Array(256),Gc=new Uint8Array(256),rm=new Uint8Array([1,2,4,8,16,32,64,128,27,54,108,216,171,77]);(function(){let e=new Uint8Array(256),t=new Uint8Array(256),r=1;for(let n=0;n<256;n++)e[n]=r,t[r]=n,r^=r<<1^(r&128?283:0),r&=255;for(let n=0;n<256;n++){let o=n?e[255-t[n]]:0,i=o;for(let s=0;s<4;s++)o=(o<<1|o>>>7)&255,i^=o;cn[n]=i^99}for(let n=0;n<256;n++)Gc[cn[n]]=n})();function om(e){return(e<<1^(e&128?27:0))&255}function Fe(e,t){let r=0;for(;t;)t&1&&(r^=e),e=om(e),t>>=1;return r&255}function Xc(e){let t=e.length/4,r=t+6,n=[];for(let i=0;i<t;i++)n.push([e[i*4],e[i*4+1],e[i*4+2],e[i*4+3]]);for(let i=t;i<4*(r+1);i++){let s=n[i-1].slice();i%t===0?s=[cn[s[1]]^rm[i/t-1],cn[s[2]],cn[s[3]],cn[s[0]]]:t>6&&i%t===4&&(s=s.map(l=>cn[l])),n.push(s.map((l,a)=>l^n[i-t][a]))}let o=[];for(let i=0;i<=r;i++){let s=new Uint8Array(16);for(let l=0;l<4;l++)for(let a=0;a<4;a++)s[l*4+a]=n[i*4+l][a];o.push(s)}return o}function Yc(e,t,r,n,o){let i=new Uint8Array(16);for(let s=0;s<16;s++)i[s]=t[r+s]^e[e.length-1][s];for(let s=e.length-2;s>=0;s--){let l=i.slice();for(let a=0;a<4;a++)for(let c=0;c<4;c++)i[(a+c)%4*4+c]=l[a*4+c];for(let a=0;a<16;a++)i[a]=Gc[i[a]];for(let a=0;a<16;a++)i[a]^=e[s][a];if(s>0)for(let a=0;a<4;a++){let c=i[a*4],u=i[a*4+1],h=i[a*4+2],f=i[a*4+3];i[a*4]=Fe(c,14)^Fe(u,11)^Fe(h,13)^Fe(f,9),i[a*4+1]=Fe(c,9)^Fe(u,14)^Fe(h,11)^Fe(f,13),i[a*4+2]=Fe(c,13)^Fe(u,9)^Fe(h,14)^Fe(f,11),i[a*4+3]=Fe(c,11)^Fe(u,13)^Fe(h,9)^Fe(f,14)}}n.set(i,o)}function Pi(e,t){let r=Xc(e),n=new Uint8Array(t.length-t.length%16);for(let o=0;o+16<=t.length;o+=16)Yc(r,t,o,n,o);return n}function zr(e,t,r){let n=Xc(e),o=r.length-r.length%16,i=new Uint8Array(o),s=t.subarray(0,16);for(let l=0;l+16<=o;l+=16){Yc(n,r,l,i,l);for(let a=0;a<16;a++)i[l+a]^=s[a];s=r.subarray(l,l+16)}return i}var im=5e4,sm=new Uint8Array([254,167,210,118,59,75,158,121]),lm=new Uint8Array([215,170,15,109,48,97,52,78]),am=new Uint8Array([20,110,11,231,171,172,208,214]),nr=class extends Error{constructor(){super(\"\\u5BC6\\u7801\\u9519\\u8BEF\"),this.name=\"WrongPasswordError\"}},Kr=class extends Error{constructor(){super(\"\\u8BE5\\u6587\\u4EF6\\u5DF2\\u52A0\\u5BC6\\uFF0C\\u9700\\u8981\\u63D0\\u4F9B\\u6253\\u5F00\\u5BC6\\u7801\"),this.name=\"PasswordRequiredError\"}};function En(...e){let t=e.reduce((o,i)=>o+i.length,0),r=new Uint8Array(t),n=0;for(let o of e)r.set(o,n),n+=o.length;return r}function cm(e){let t=new Uint8Array(e.length*2),r=new DataView(t.buffer);for(let n=0;n<e.length;n++)r.setUint16(n*2,e.charCodeAt(n),!0);return t}function fs(e){let t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e>>>0,!0),t}function qc(e,t,r){if(e.length<r||t.length<r)return!1;let n=0;for(let o=0;o<r;o++)n|=e[o]^t[o];return n===0}function Zc(e,t,r,n){let o=e(En(t,cm(r)));for(let i=0;i<n;i++)o=e(En(fs(i),o));return o}function ds(e,t){if(e.length>=t)return e.subarray(0,t);let r=new Uint8Array(t).fill(54);return r.set(e),r}function um(e){let t=new DataView(e.buffer,e.byteOffset,e.byteLength),r=t.getUint32(8,!0);if(r<32||12+r+8>e.length)return null;let n=t.getUint32(28,!0),o=n>=8?n/8:16,i=12+r,s=t.getUint32(i,!0);if(i+=4,s!==16)return null;let l=e.subarray(i,i+16);i+=16;let a=e.subarray(i,i+16);i+=16;let c=t.getUint32(i,!0);if(i+=4,c<20)return null;let u=e.subarray(i,i+32);return{keyBytes:o,salt:l,encryptedVerifier:a,encryptedVerifierHash:u}}function hm(e,t){let r=Zc(Pt,e.salt,t,im),n=Pt(En(r,fs(0))),o=Pt(new Uint8Array(64).map((s,l)=>(l<n.length?n[l]:0)^54)),i=Pt(new Uint8Array(64).map((s,l)=>(l<n.length?n[l]:0)^92));return ds(En(o,i),e.keyBytes)}function fm(e,t,r){let n=um(e);if(!n)throw new Error(\"\\u65E0\\u6CD5\\u89E3\\u6790\\u6807\\u51C6\\u52A0\\u5BC6\\u7684 EncryptionInfo\");let o=hm(n,r),i=Pi(o,n.encryptedVerifier),s=Pi(o,n.encryptedVerifierHash);if(!qc(Pt(i),s,20))throw new nr;let l=Number(new DataView(t.buffer,t.byteOffset,t.byteLength).getBigUint64(0,!0)),a=Pi(o,t.subarray(8));return a.subarray(0,Math.min(l,a.length))}function Gn(e){let t=typeof atob==\"function\"?atob(e):globalThis.Buffer.from(e,\"base64\").toString(\"binary\"),r=new Uint8Array(t.length);for(let n=0;n<t.length;n++)r[n]=t.charCodeAt(n);return r}function dm(e){var t,r;let n=new TextDecoder().decode(e.subarray(8)),o=((t=/<[^>]*keyData\\b[^>]*>/.exec(n))==null?void 0:t[0])??\"\",i=((r=/<[^>]*encryptedKey\\b[^>]*>/.exec(n))==null?void 0:r[0])??\"\";if(!o||!i)return null;let s=(u,h)=>{let f=new RegExp(`\\\\b${h}=\"([^\"]*)\"`).exec(u);return f?f[1]:null},l=Ha(s(o,\"hashAlgorithm\")??\"\"),a=Ha(s(i,\"hashAlgorithm\")??\"\");if(!l||!a||(s(o,\"cipherAlgorithm\")??\"AES\")!==\"AES\")return null;let c=(u,h,f)=>{let m=Number(s(u,h));return Number.isFinite(m)&&m>0?m:f};return{hash:l,hashSize:c(o,\"hashSize\",64),blockSize:c(o,\"blockSize\",16),keyBytes:c(o,\"keyBits\",256)/8,keySalt:Gn(s(o,\"saltValue\")??\"\"),spinCount:c(i,\"spinCount\",1e5),pwSalt:Gn(s(i,\"saltValue\")??\"\"),pwKeyBytes:c(i,\"keyBits\",256)/8,pwHash:a,encryptedKeyValue:Gn(s(i,\"encryptedKeyValue\")??\"\"),encryptedVerifierHashInput:Gn(s(i,\"encryptedVerifierHashInput\")??\"\"),encryptedVerifierHashValue:Gn(s(i,\"encryptedVerifierHashValue\")??\"\")}}function Ii(e,t,r){return ds(e.pwHash(En(t,r)),e.pwKeyBytes)}function pm(e,t,r){let n=dm(e);if(!n)throw new Error(\"\\u65E0\\u6CD5\\u89E3\\u6790\\u654F\\u6377\\u52A0\\u5BC6\\u7684 EncryptionInfo\");let o=Zc(n.pwHash,n.pwSalt,r,n.spinCount),i=zr(Ii(n,o,sm),n.pwSalt,n.encryptedVerifierHashInput),s=zr(Ii(n,o,lm),n.pwSalt,n.encryptedVerifierHashValue);if(!qc(n.pwHash(i.subarray(0,16)),s,Math.min(n.hashSize,s.length)))throw new nr;let l=zr(Ii(n,o,am),n.pwSalt,n.encryptedKeyValue).subarray(0,n.keyBytes),a=Number(new DataView(t.buffer,t.byteOffset,t.byteLength).getBigUint64(0,!0)),c=t.subarray(8),u=4096,h=new Uint8Array(c.length);for(let f=0,m=0;m<c.length;f++,m+=u){let d=ds(n.hash(En(n.keySalt,fs(f))),n.blockSize),p=c.subarray(m,Math.min(m+u,c.length));h.set(zr(l,d,p),m)}return h.subarray(0,Math.min(a,h.length))}function mm(e,t,r){if(e.length<16||t.length<16)throw new Error(\"\\u52A0\\u5BC6\\u6D41\\u4E0D\\u5B8C\\u6574\");let n=new DataView(e.buffer,e.byteOffset,e.byteLength),o=n.getUint16(0,!0),i=n.getUint16(2,!0);if(o===4&&i===4)return pm(e,t,r);if(o===4&&i===3)throw new Error(\"\\u4E0D\\u652F\\u6301\\u6269\\u5C55\\u52A0\\u5BC6\\uFF08\\u81EA\\u5B9A\\u4E49\\u52A0\\u5BC6\\u63D0\\u4F9B\\u7A0B\\u5E8F\\uFF09\");return fm(e,t,r)}var gm=4090610911,bm=4085,xm=6002,vm=12052;function Ni(e,t){let r=new Uint8Array(256);for(let s=0;s<256;s++)r[s]=s;let n=0;for(let s=0;s<256;s++){n=n+r[s]+e[s%e.length]&255;let l=r[s];r[s]=r[n],r[n]=l}let o=new Uint8Array(t.length),i=0;n=0;for(let s=0;s<t.length;s++){i=i+1&255,n=n+r[i]&255;let l=r[i];r[i]=r[n],r[n]=l,o[s]=t[s]^r[r[i]+r[n]&255]}return o}function wm(e){let t=new Uint8Array(e.length*2),r=new DataView(t.buffer);for(let n=0;n<e.length;n++)r.setUint16(n*2,e.charCodeAt(n),!0);return t}function ym(e){let t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e>>>0,!0),t}function _i(e,t){let r=new Uint8Array(e.length+t.length);return r.set(e),r.set(t,e.length),r}function $m(e){return!e||e.length<16?!1:new DataView(e.buffer,e.byteOffset,e.byteLength).getUint32(12,!0)===gm}function Mm(e){if(e.length<40)return null;let t=new DataView(e.buffer,e.byteOffset,e.byteLength),r=t.getUint32(8,!0);if(r<20||12+r+40>e.length)return null;let n=t.getUint32(28,!0)||40,o=12+r,i=t.getUint32(o,!0);if(o+=4,i!==16)return null;let s=e.subarray(o,o+16);o+=16;let l=e.subarray(o,o+16);o+=16;let a=t.getUint32(o,!0);return o+=4,a<20?null:{keyBytes:Math.max(1,Math.floor(n/8)),salt:s,encVerifier:l,encVerifierHash:e.subarray(o,o+20)}}function Ri(e,t,r){let n=Pt(_i(t,ym(r))).subarray(0,e.keyBytes);if(e.keyBytes!==5)return n;let o=new Uint8Array(16);return o.set(n),o}function km(e,t){let r=new DataView(t.buffer,t.byteOffset,t.byteLength),n=new DataView(e.buffer,e.byteOffset,e.byteLength),o=d=>n.getUint32(d+4,!0),i=d=>n.getUint16(d+2,!0),s=[],l=new Map,a=-1,c=r.getUint32(16,!0),u=0;for(;c>0&&c+8<=e.length&&u++<64;){if(i(c)!==bm)return null;let d=o(c);s.push([c,8+d]);let p=c+8,b=n.getUint32(p+8,!0),v=n.getUint32(p+12,!0);if(d>=32&&a<0&&(a=n.getUint32(p+28,!0)),v>0&&v+8<=e.length&&i(v)===xm){let x=o(v);s.push([v,8+x]);let M=v+8,S=Math.min(M+x,e.length);for(;M+4<=S;){let y=n.getUint32(M,!0);M+=4;let $=y&1048575,k=y>>>20;for(let A=0;A<k&&M+4<=S;A++)l.has($+A)||l.set($+A,n.getUint32(M,!0)),M+=4}}c=b}let h=a>=0?l.get(a):void 0;if(h===void 0||h+8>e.length||i(h)!==vm)return null;let f=o(h);s.push([h,8+f]);let m=Mm(e.subarray(h+8,h+8+f));return m?{info:m,persists:[...l.entries()].filter(([d])=>d!==a).map(([d,p])=>({id:d,offset:p})),plain:s}:null}function Cm(e,t,r){let n=km(e,t);if(!n)return null;let{info:o,persists:i,plain:s}=n,l=Pt(_i(o.salt,wm(r))),a=Ri(o,l,0),c=Ni(a,_i(o.encVerifier,o.encVerifierHash)),u=Pt(c.subarray(0,16)),h=0;for(let d=0;d<20;d++)h|=u[d]^c[16+d];if(h!==0)throw new nr;let f=new Uint8Array(e);new DataView(e.buffer,e.byteOffset,e.byteLength);let m=[];for(let{id:d,offset:p}of i){if(p+8>e.length)continue;let b=Ni(Ri(o,l,d),e.subarray(p,p+8)),v=new DataView(b.buffer).getUint32(4,!0),x=Math.min(8+v,e.length-p);!(x>8)||x>e.length||(f.set(Ni(Ri(o,l,d),e.subarray(p,p+x)),p),m.push([p,x]))}if(!m.length)return null;for(let[d,p]of s)d>=0&&d+p<=e.length&&f.set(e.subarray(d,d+p),d);return f}function*Be(e,t,r){let n=t;for(;n+8<=r;){let o=e.getUint16(n,!0),i=e.getUint16(n+2,!0),s=e.getUint32(n+4,!0),l=n+8;if(s<0||l+s>r)return;let a=o&15;yield{type:i,instance:o>>4,version:a,isContainer:a===15,start:l,len:s},n=l+s}}function he(e,t,r,n){for(let o of Be(e,t,r))if(o.type===n)return o;return null}function dt(e,t,r,n){let o=[];for(let i of Be(e,t,r))i.type===n&&o.push(i);return o}function Rt(e,t,r){let n=\"\";for(let o=0;o+2<=r;o+=2)n+=String.fromCharCode(e.getUint16(t+o,!0));return n}function ho(e,t,r){let n=\"\";for(let o=0;o<r;o++)n+=String.fromCharCode(e.getUint8(t+o));return n}function _c(e,t,r){let n=[],o=(i,s,l)=>{for(let a of Be(e,i,s)){if(a.type===te.ProgBinaryTag){let c=\"\";for(let u of Be(e,a.start,a.start+a.len))u.type===te.CString?c=Rt(e,u.start,u.len).replace(/\\0+$/,\"\"):u.type===te.BinaryTagDataBlob&&c===r&&n.push(u);continue}a.isContainer&&l>0&&o(a.start,a.start+a.len,l-1)}};return o(t.start,t.start+t.len,6),n}var te={Document:1e3,DocumentAtom:1001,Slide:1006,SlideAtom:1007,Notes:1008,NotesAtom:1009,MainMaster:1016,SSSlideInfoAtom:1017,SlidePersistAtom:1011,ExObjList:1033,PPDrawing:1036,ColorSchemeAtom:2032,SlideListWithText:4080,TextHeaderAtom:3999,TextCharsAtom:4e3,TextBytesAtom:4008,StyleTextPropAtom:4001,TxMasterStyleAtom:4003,FontEntityAtom:4023,OEPlaceholderAtom:3011,ExHyperlinkAtom:4051,ExHyperlink:4055,CString:4026,TextInteractiveInfoAtom:4063,InteractiveInfo:4082,InteractiveInfoAtom:4083,PersistDirectoryAtom:6002,ProgBinaryTag:5002,BinaryTagDataBlob:5003,StyleTextProp9Atom:4012},ut={ExtTimeNodeContainer:61764,TimeNodeAtom:61735,TimeConditionContainer:61733,TimeConditionAtom:61736,ClientVisualElement:61756,TimePropertyList:61757,TimeVariant:61762,VisualShapeAtom:11003},Me={DgContainer:61442,SpgrContainer:61443,SpContainer:61444,Spgr:61449,Sp:61450,Opt:61451,ClientTextbox:61453,ChildAnchor:61455,ClientAnchor:61456,ClientData:61457},Sm=8388608,Em=16777216,Tm=33554432,Lm=1048576,Am=[[1,2],[2,2],[4,2],[32,2],[64,4],[128,4]],Pm=256;function Im(e,t){let r=[],n=t.start+t.len,o=t.start;for(;o+4<=n;){let i=e.getUint32(o,!0);o+=4,i&Sm&&(o+=2);let s=null;if(i&Tm){if(o+2>n)return[];s=e.getUint16(o,!0)!==0,o+=2}let l=null;if(i&Em){if(o+4>n)return[];l={scheme:e.getUint16(o,!0),startNum:e.getUint16(o+2,!0)||1},o+=4}if(o+4>n)return[];let a=e.getUint32(o,!0);if(o+=4,a&Lm&&(o+=4),o+4>n)return[];let c=e.getUint32(o,!0);o+=4;for(let[u,h]of Am)c&u&&(o+=h);if(c&Pm){if(o+4>n)return[];o+=4+e.getUint32(o,!0)*4}if(o>n)return[];r.push(s===!1?null:l)}return o===n?r:[]}function Kc(e,t){let r=[];for(let n of _c(e,t,\"___PPT9\"))for(let o of dt(e,n.start,n.start+n.len,te.StyleTextProp9Atom))r.push(...Im(e,o));return r}function Nm(e,t){let r=Rm[e]??\"arabic\",n=r===\"alphaLc\"?Wa(t).toLowerCase():r===\"alphaUc\"?Wa(t):r===\"romanLc\"?Va(t).toLowerCase():r===\"romanUc\"?Va(t):r===\"circle\"?zm(t):String(t),o=Om[e]??\"\";return o===\"both\"?`(${n})`:o===\"right\"?`${n})`:o===\"period\"?`${n}.`:o===\"minus\"?`-${n}-`:n}var Rm={0:\"alphaLc\",1:\"alphaUc\",2:\"arabic\",3:\"arabic\",4:\"romanLc\",5:\"romanLc\",6:\"romanLc\",7:\"romanUc\",8:\"alphaLc\",9:\"alphaLc\",10:\"alphaUc\",11:\"alphaUc\",12:\"arabic\",13:\"arabic\",14:\"romanUc\",15:\"romanUc\",16:\"arabic\",17:\"arabic\",18:\"circle\",19:\"circle\",20:\"circle\",21:\"arabic\",22:\"arabic\",23:\"arabic\",24:\"arabic\",25:\"arabic\",26:\"arabic\",27:\"arabic\",28:\"arabic\",29:\"arabic\",30:\"arabic\",31:\"arabic\",32:\"arabic\"},Om={0:\"period\",1:\"period\",2:\"right\",3:\"period\",4:\"both\",5:\"right\",6:\"period\",7:\"period\",8:\"both\",9:\"right\",10:\"both\",11:\"right\",12:\"both\",14:\"both\",15:\"right\",17:\"period\",21:\"period\",23:\"period\",25:\"period\",27:\"period\",29:\"period\",30:\"minus\",31:\"minus\",32:\"minus\"};function Wa(e){let t=\"\",r=e;for(;r>0;)t=String.fromCharCode(65+(r-1)%26)+t,r=Math.floor((r-1)/26);return t||\"A\"}function Va(e){let t=[[1e3,\"M\"],[900,\"CM\"],[500,\"D\"],[400,\"CD\"],[100,\"C\"],[90,\"XC\"],[50,\"L\"],[40,\"XL\"],[10,\"X\"],[9,\"IX\"],[5,\"V\"],[4,\"IV\"],[1,\"I\"]],r=\"\",n=e;for(let[o,i]of t)for(;n>=o;)r+=i,n-=o;return r||\"I\"}var zm=e=>e>=1&&e<=20?String.fromCharCode(9312+e-1):String(e);function ps(e,t){let r=new Map,n=new Map,o=t.instance,i=t.start,s=t.start+Math.min(o*6,t.len),l=[];for(let c=0;c<o&&i+6<=t.start+t.len;c++,i+=6){let u=e.getUint16(i,!0),h=u&16383,f=(u&32768)!==0,m=e.getUint32(i+2,!0);f?l.push({id:h,len:m}):r.set(h,m)}let a=s;for(let c of l){if(a+c.len>t.start+t.len)break;n.set(c.id,{start:a,len:c.len}),a+=c.len}return{simple:r,complex:n}}var ne={rotation:4,tableProperties:927,tableRowProperties:928,lTxid:128,anchorText:135,pib:260,cropFromTop:256,cropFromBottom:257,cropFromLeft:258,cropFromRight:259,wzName:896,geoLeft:320,geoTop:321,geoRight:322,geoBottom:323,pVertices:325,pSegmentInfo:326,adjustValue:327,adjust2Value:328,adjust3Value:329,adjust4Value:330,fillType:384,fillColor:385,fillOpacity:386,fillBackColor:387,fillBackOpacity:388,fillFocus:396,fillBlip:390,fillAngle:395,fillStyleBooleans:447,lineColor:448,lineOpacity:449,lineWidth:459,lineDashing:462,lineStartArrow:464,lineEndArrow:465,lineStyleBooleans:511,shadowColor:513,shadowOpacity:516,shadowOffsetX:517,shadowOffsetY:518,shadowStyleBooleans:575},rr=e=>e>2147483647?e-4294967296:e;function Zt(e,t,r=1){let n=e>>24&255,o,i,s;if(n===8||n===1){let l=e&255,a=t[l]??\"000000\";o=parseInt(a.slice(0,2),16),i=parseInt(a.slice(2,4),16),s=parseInt(a.slice(4,6),16)}else o=e&255,i=e>>8&255,s=e>>16&255;return r>=1?`rgb(${o},${i},${s})`:`rgba(${o},${i},${s},${Math.round(r*1e3)/1e3})`}var ms=(e,t)=>e===void 0||!(e&t<<16)?null:(e&t)!==0;function Fm(e){let t=e.simple.get(ne.fillAngle),r=t===void 0?0:rr(t)/65536,n=r>=0,o=rr(e.simple.get(ne.fillFocus)??0);o===0?n=!n:o<0&&(o=-o,n=!n);let i=o>40&&o<60;i&&(n=!n);let s=90-r;for(;s<0;)s+=360;for(;s>=360;)s-=360;return{angle:Math.round(s*1e3)/1e3,backFirst:!n,axial:i}}function Qc(e,t,r){let n=ms(e.simple.get(ne.fillStyleBooleans),16);if(n===!1)return{type:\"none\"};let o=e.simple.get(ne.fillType)??0,i=(e.simple.get(ne.fillOpacity)??65536)/65536;if(o===3||o===2){let l=e.simple.get(ne.fillBlip)??e.simple.get(ne.pib),a=l!==void 0?r(l):null;if(a)return{type:\"image\",src:a,alpha:i<1?i:void 0}}if(o===4||o===5||o===6||o===7){let l=e.simple.get(ne.fillColor),a=e.simple.get(ne.fillBackColor),c=(e.simple.get(ne.fillBackOpacity)??65536)/65536;if(l!==void 0||a!==void 0){let u=Zt(l??16777215,t,i),h=Zt(a??16777215,t,c);if(o===5||o===6)return{type:\"gradient\",angle:90,stops:[{pos:0,color:u},{pos:1,color:h}]};let f=Fm(e),[m,d]=f.backFirst?[h,u]:[u,h];return{type:\"gradient\",angle:f.angle,stops:f.axial?[{pos:0,color:m},{pos:.5,color:d},{pos:1,color:m}]:[{pos:0,color:m},{pos:1,color:d}]}}}let s=e.simple.get(ne.fillColor);return s===void 0?n===!0?{type:\"solid\",color:Zt(16777215,t)}:null:{type:\"solid\",color:Zt(s,t,i)}}var jm={1:[4,3],2:[1,3],3:[4,3,1,3],4:[4,3,1,3,1,3],5:[8,3],6:[8,3,1,3],7:[8,3,1,3,1,3],8:[1,1],9:[3,3],10:[3,3,1,3]};function Um(e){let t=n=>rr(e.simple.get(n)??0)/65536,r={t:t(ne.cropFromTop),b:t(ne.cropFromBottom),l:t(ne.cropFromLeft),r:t(ne.cropFromRight)};return Object.values(r).some(n=>Math.abs(n)>1e-9)?r:null}var Fr={1:\"triangle\",2:\"stealth\",3:\"diamond\",4:\"oval\",5:\"arrow\"};function Ga(e,t){let r=ms(e.simple.get(ne.lineStyleBooleans),8);if(r===!1)return null;let n=e.simple.get(ne.lineColor);if(n===void 0&&r!==!0)return null;let o=(e.simple.get(ne.lineWidth)??9525)/9525,i=e.simple.get(ne.lineDashing),s=(e.simple.get(ne.lineOpacity)??65536)/65536,l=e.simple.get(ne.lineStartArrow),a=e.simple.get(ne.lineEndArrow);return{color:Zt(n??0,t,s),width:o,dash:i?(jm[i]??[4,3]).map(c=>c*Math.max(o,1)):null,head:l&&Fr[l]?{type:Fr[l],w:3,h:3}:void 0,tail:a&&Fr[a]?{type:Fr[a],w:3,h:3}:void 0}}function Dm(e,t){if(ms(e.simple.get(ne.shadowStyleBooleans),2)!==!0)return;let r=rr(e.simple.get(ne.shadowOffsetX)??25400)/9525,n=rr(e.simple.get(ne.shadowOffsetY)??25400)/9525,o=Math.max(0,Math.min(1,(e.simple.get(ne.shadowOpacity)??65536)/65536)),i=e.simple.get(ne.shadowColor)??8421504;if(!(o<=0||r===0&&n===0))return{dx:r,dy:n,blur:4,color:Zt(i,t,o)}}var Bm={1:\"rect\",2:\"roundRect\",3:\"ellipse\",4:\"diamond\",5:\"triangle\",6:\"rtTriangle\",7:\"parallelogram\",8:\"trapezoid\",9:\"hexagon\",10:\"octagon\",11:\"plus\",12:\"star5\",13:\"rightArrow\",14:\"rightArrow\",15:\"homePlate\",16:\"cube\",17:\"wedgeRoundRectCallout\",18:\"star8\",19:\"arc\",20:\"line\",21:\"plaque\",22:\"can\",23:\"donut\",24:\"rect\",25:\"octagon\",26:\"hexagon\",27:\"rect\",28:\"wave\",29:\"donut\",30:\"rect\",31:\"donut\",32:\"straightConnector1\",33:\"bentConnector2\",34:\"bentConnector3\",35:\"bentConnector4\",36:\"bentConnector5\",37:\"curvedConnector2\",38:\"curvedConnector3\",39:\"curvedConnector4\",40:\"curvedConnector5\",41:\"callout1\",42:\"callout2\",43:\"callout2\",44:\"callout1\",45:\"callout2\",46:\"callout2\",47:\"borderCallout1\",48:\"borderCallout2\",49:\"borderCallout2\",50:\"borderCallout1\",51:\"borderCallout2\",52:\"borderCallout2\",53:\"ribbon\",54:\"ribbon2\",55:\"chevron\",56:\"pentagon\",57:\"noSmoking\",58:\"star8\",59:\"star16\",60:\"star32\",61:\"wedgeRectCallout\",62:\"wedgeRoundRectCallout\",63:\"wedgeEllipseCallout\",64:\"wave\",65:\"foldedCorner\",66:\"leftArrow\",67:\"downArrow\",68:\"upArrow\",69:\"leftRightArrow\",70:\"upDownArrow\",71:\"irregularSeal1\",72:\"irregularSeal2\",73:\"lightningBolt\",74:\"heart\",75:\"rect\",76:\"quadArrow\",77:\"leftArrowCallout\",78:\"rightArrowCallout\",79:\"upArrowCallout\",80:\"downArrowCallout\",81:\"leftRightArrowCallout\",82:\"upArrowCallout\",83:\"quadArrow\",84:\"bevel\",85:\"leftBracket\",86:\"rightBracket\",87:\"leftBrace\",88:\"rightBrace\",89:\"leftRightUpArrow\",90:\"bentArrow\",91:\"bentArrow\",92:\"star24\",93:\"stripedRightArrow\",94:\"notchedRightArrow\",95:\"blockArc\",96:\"smileyFace\",97:\"verticalScroll\",98:\"horizontalScroll\",99:\"circularArrow\",100:\"circularArrow\",101:\"uturnArrow\",102:\"curvedRightArrow\",103:\"curvedLeftArrow\",104:\"curvedUpArrow\",105:\"curvedDownArrow\",106:\"cloudCallout\",107:\"ribbon\",108:\"ribbon2\",109:\"flowChartProcess\",110:\"flowChartDecision\",111:\"flowChartInputOutput\",112:\"flowChartPredefinedProcess\",113:\"flowChartInternalStorage\",114:\"flowChartDocument\",115:\"flowChartMultidocument\",116:\"flowChartTerminator\",117:\"flowChartPreparation\",118:\"flowChartManualInput\",119:\"flowChartManualOperation\",120:\"flowChartConnector\",121:\"flowChartPunchedCard\",122:\"flowChartPunchedTape\",123:\"flowChartSummingJunction\",124:\"flowChartOr\",125:\"flowChartCollate\",126:\"flowChartSort\",127:\"flowChartExtract\",128:\"flowChartMerge\",129:\"flowChartOnlineStorage\",130:\"flowChartOnlineStorage\",131:\"flowChartMagneticTape\",132:\"flowChartMagneticDisk\",133:\"flowChartMagneticDrum\",134:\"flowChartDisplay\",135:\"flowChartDelay\",176:\"flowChartAlternateProcess\",177:\"flowChartOffpageConnector\",178:\"callout1\",179:\"callout1\",180:\"borderCallout1\",181:\"borderCallout1\",182:\"leftRightUpArrow\",183:\"sun\",184:\"moon\",185:\"bracketPair\",186:\"bracePair\",187:\"star4\",188:\"doubleWave\",189:\"actionButtonBlank\",190:\"actionButtonHome\",191:\"actionButtonHelp\",192:\"actionButtonInformation\",193:\"actionButtonForwardNext\",194:\"actionButtonBackPrevious\",195:\"actionButtonEnd\",196:\"actionButtonBeginning\",197:\"actionButtonReturn\",198:\"actionButtonDocument\",199:\"actionButtonSound\",200:\"actionButtonMovie\",202:\"rect\"},Hm=75;function Wm(e){let t=[];if(!e.length)return t;let r=new DataView(e.buffer,e.byteOffset,e.byteLength),n={61469:\"image/jpeg\",61470:\"image/png\",61471:\"image/bmp\",61481:\"image/tiff\",61482:\"image/jpeg\"},o={61466:\"image/emf\",61467:\"image/wmf\",61468:\"image/pict\"};for(let i of Be(r,0,e.length)){let s=i.type in o,l=s?o[i.type]:n[i.type];if(!l)continue;let a=i.start+((i.instance&1)===1?32:16),c=i.start+i.len;if(a>=c)continue;if(!s){t.push({mime:l,data:e.subarray(a+1,c)});continue}if(a+34>c)continue;let u=r.getUint32(a,!0),h=r.getUint8(a+32),f=e.subarray(a+34,c);if(h===0)try{let m=Ll(f,u?{out:new Uint8Array(u)}:void 0);t.push({mime:l,data:m})}catch{try{t.push({mime:l,data:oi(f)})}catch{}}else t.push({mime:l,data:f})}return t}function Vm(e,t){if(t.len<8)return null;let r=e.getInt16(t.start,!0),n=e.getInt16(t.start+2,!0),o=e.getInt16(t.start+4,!0),i=e.getInt16(t.start+6,!0);return{x:n,y:r,w:o-n,h:i-r}}function Gm(e,t){if(t.len<16)return null;let r=e.getInt32(t.start,!0),n=e.getInt32(t.start+4,!0),o=e.getInt32(t.start+8,!0),i=e.getInt32(t.start+12,!0);return{x:r,y:n,w:o-r,h:i-n}}function Xm(e,t){if(t.len<16)return null;let r=e.getInt32(t.start,!0),n=e.getInt32(t.start+4,!0),o=e.getInt32(t.start+8,!0),i=e.getInt32(t.start+12,!0);return{x:r,y:n,w:o-r,h:i-n}}function gs(e,t){return{id:e.getUint32(t.start,!0),flags:e.getUint32(t.start+4,!0)}}var yt={GROUP:1,PATRIARCH:4,DELETED:8,OLE:16,FLIPH:64,FLIPV:128,BACKGROUND:1024};function Ym(e,t,r){let n=t.complex.get(r);return n?Rt(e,n.start,n.len).replace(/\\0+$/,\"\"):null}function qm(e,t){let r=t.complex.get(ne.tableRowProperties);if(!r||r.len<6)return[];let n=e.getUint16(r.start,!0),o=e.getInt16(r.start+4,!0),i=o>0?o:4,s=[];for(let l=0;l<n;l++){let a=r.start+6+l*i;if(a+4>r.start+r.len)break;s.push(e.getInt32(a,!0))}return s}function Zm(e){return e.simple.has(ne.tableProperties)||e.complex.has(ne.tableRowProperties)}var _m={1:\"dissolve\",2:\"blinds\",3:\"checker\",4:\"cover\",5:\"dissolve\",6:\"fade\",7:\"pull\",8:\"randomBar\",9:\"strips\",10:\"wipe\",11:\"zoom\",12:\"zoom\",13:\"split\",17:\"zoom\",18:\"blinds\",19:\"blinds\",20:\"push\",21:\"comb\",22:\"newsflash\",23:\"fade\",26:\"wedge\",27:\"wheel\",28:\"circle\",29:\"diamond\",30:\"plus\"},Km={0:\"l\",1:\"u\",2:\"r\",3:\"d\"},Qm={0:\"horz-out\",1:\"horz-in\",2:\"vert-out\",3:\"vert-in\"},Jm={0:\"out\",1:\"in\"};function e2(e,t){if(e===\"split\")return Qm[t];if(e===\"zoom\"||e===\"circle\"||e===\"diamond\"||e===\"plus\"||e===\"wedge\")return Jm[t];if(e===\"push\"||e===\"pull\"||e===\"cover\"||e===\"wipe\"||e===\"strips\"||e===\"blinds\"||e===\"comb\"||e===\"wheel\"||e===\"randomBar\")return Km[t]}var t2={0:1e3,1:750,2:500},n2=4,r2=1024;function o2(e,t){let r=he(e,t.start,t.start+t.len,te.SSSlideInfoAtom);if(!r||r.len<13)return null;let n=e.getInt32(r.start,!0),o=e.getUint8(r.start+8),i=e.getUint8(r.start+9),s=e.getUint16(r.start+10,!0),l=e.getUint8(r.start+12),a=_m[i],c=a===void 0?void 0:{type:a,dir:e2(a,o),durationMs:t2[l]??750,advanceAfterMs:s&r2&&n>0?n:void 0};return{hidden:(s&n2)!==0,transition:c}}var kn={effectId:9,effectDir:10,effectClass:11,nodeType:20},i2=1,s2=2,l2=3,a2={1:\"entrance\",2:\"exit\",3:\"emphasis\",4:\"motion\",5:\"emphasis\",6:\"emphasis\"};function c2(e,t){if(t.len<5)return null;let r=e.getUint8(t.start);return r!==1&&r!==0?null:r===1?e.getInt32(t.start+1,!0):e.getUint8(t.start+1)}function u2(e,t){return t.len<3||e.getUint8(t.start)!==3?null:Rt(e,t.start+1,t.len-1).replace(/\\0+$/,\"\")}function Jc(e,t){let r=new Map,n=he(e,t.start,t.start+t.len,ut.TimePropertyList);if(!n)return r;for(let o of dt(e,n.start,n.start+n.len,ut.TimeVariant)){let i=c2(e,o);i!==null&&r.set(o.instance,i)}return r}function h2(e,t){for(let r of dt(e,t.start,t.start+t.len,ut.TimeConditionContainer)){if(r.instance!==1)continue;let n=he(e,r.start,r.start+r.len,ut.TimeConditionAtom);if(!n||n.len<16)continue;let o=e.getInt32(n.start+12,!0);return o>0?o:0}return 0}function f2(e,t){let r=he(e,t.start,t.start+t.len,ut.TimeNodeAtom);if(!r||r.len<32)return null;let n=e.getInt32(r.start+24,!0);return n>1?n:null}function eu(e,t,r,n,o=12){for(let i of Be(e,t,r)){if(i.type===ut.ClientVisualElement){let s=he(e,i.start,i.start+i.len,ut.VisualShapeAtom);s&&s.len>=12&&n.target===void 0&&(n.target=e.getUint32(s.start+8,!0));continue}if(i.type===ut.TimeVariant&&n.filter===void 0){let s=u2(e,i);s&&(n.filter=s);continue}if(i.type===ut.TimeNodeAtom&&i.len>=32&&n.duration===void 0){let s=e.getInt32(i.start+24,!0);s>1&&(n.duration=s);continue}i.type===ut.ExtTimeNodeContainer&&Jc(e,i).has(kn.effectId)||i.isContainer&&o>0&&eu(e,i.start,i.start+i.len,n,o-1)}}function d2(e,t){let r=[],n=(i,s,l)=>{for(let a of dt(e,i,s,ut.ExtTimeNodeContainer)){let c=Jc(e,a);if(c.has(kn.effectId)){let u=p2(e,a,c);u&&r.push(u);continue}l>0&&n(a.start,a.start+a.len,l-1)}};for(let i of _c(e,t,\"___PPT10\"))n(i.start,i.start+i.len,16);if(!r.length)return;let o=-1;for(let i of r)(i.trigger===\"click\"||o<0)&&o++,i.clickGroup=o;return r}function p2(e,t,r){let n={};if(eu(e,t.start,t.start+t.len,n),n.target===void 0)return null;let{effect:o,dir:i}=si(r.get(kn.effectId)??10,r.get(kn.effectDir)??0,n.filter),s=r.get(kn.nodeType)??i2,l=n.duration??f2(e,t)??500;return{target:n.target,effect:o,dir:i,delayMs:h2(e,t),durationMs:Math.max(60,Math.min(1e4,l)),trigger:s===s2?\"withPrev\":s===l2?\"afterPrev\":\"click\",kind:a2[r.get(kn.effectClass)??1]??\"entrance\"}}function m2(e,t,r,n){let o=t.complex.get(ne.pVertices),i=t.complex.get(ne.pSegmentInfo);if(!o)return null;let s=(M,S)=>{if(M.len<6||M.start<0||M.start+6>e.byteLength)return[];let y=e.getUint16(M.start,!0),$=e.getInt16(M.start+4,!0),k=$===-4?8:$;if(k<=0)return[];let A=Math.min(M.start+M.len,e.byteLength),L=[];for(let P=0;P<y;P++){let E=M.start+6+P*k;if(E+k>A)break;L.push(S(E))}return L};if(o.len<6||o.start<0||o.start+6>e.byteLength)return null;let l=e.getInt16(o.start+4,!0),a=s(o,M=>l===4?[e.getInt16(M,!0),e.getInt16(M+2,!0)]:[e.getInt32(M,!0),e.getInt32(M+4,!0)]);if(!a.length)return null;let c=t.simple.get(ne.geoLeft)??0,u=t.simple.get(ne.geoTop)??0,h=t.simple.get(ne.geoRight)??21600,f=t.simple.get(ne.geoBottom)??21600,m=r/Math.max(1,h-c),d=n/Math.max(1,f-u),p=M=>`${((M[0]-c)*m).toFixed(2)} ${((M[1]-u)*d).toFixed(2)}`;if(!i)return`M ${a.map(p).join(\" L \")} Z`;let b=s(i,M=>[e.getUint16(M,!0)]),v=[],x=0;for(let[M]of b){let S=M>>13;if(M===16384)v.push(`M ${p(a[x++]??[0,0])}`);else if(M===24577)v.push(\"Z\");else{if(M===32768)break;if(S===1||M===45824){let y=M===45824?1:M&8191;for(let $=0;$<y;$++){let k=a[x++],A=a[x++],L=a[x++];k&&A&&L&&v.push(`C ${p(k)} ${p(A)} ${p(L)}`)}}else if(S===0){let y=M&8191;for(let $=0;$<Math.max(1,y)&&a[x];$++)v.push(`L ${p(a[x++])}`)}}}return v.length?v.join(\" \"):`M ${a.map(p).join(\" L \")} Z`}var tt=e=>{let t=(e??\"000000\").padStart(6,\"0\");return`rgb(${parseInt(t.slice(0,2),16)||0},${parseInt(t.slice(2,4),16)||0},${parseInt(t.slice(4,6),16)||0})`},Xa=(e,t)=>({latin:e,ea:t,cs:\"\",scripts:{}});function g2(e,t){return{id:\"ppt:theme:1\",name:\"PowerPoint 97-2003\",colors:{lt1:tt(e[0]),dk1:tt(e[1]),lt2:tt(e[2]),dk2:tt(e[3]),accent1:tt(e[4]),accent2:tt(e[5]),accent3:tt(e[2]),accent4:tt(e[3]),accent5:tt(e[6]),accent6:tt(e[7]),hlink:tt(e[6]),folHlink:tt(e[7])},fonts:{major:Xa(t.majorLatin,t.majorEa),minor:Xa(t.minorLatin,t.minorEa)}}}var Xr=96/576,bs=[\"FFFFFF\",\"000000\",\"808080\",\"000000\",\"CCFFFF\",\"B2B2B2\",\"3333CC\",\"009999\"],tu=15,nu=1048576,b2=[[tu,2],[128,2],[16,2],[64,2],[32,4],[2048,2],[4096,2],[8192,2],[16384,2],[256,2],[1024,2],[32768,2],[nu,-1],[65536,2],[917504,2],[2097152,2]],x2=[[65535,2],[65536,2],[2097152,2],[4194304,2],[8388608,2],[131072,2],[262144,4],[524288,2]];function ru(e,t,r,n,o){let i=t;for(let[s,l]of b2){if(!(n&s))continue;if(s===nu){if(i+2>r||(i+=2+e.getUint16(i,!0)*4,i>r))return-1;continue}if(i+l>r)return-1;let a=l===2?e.getUint16(i,!0):e.getUint32(i,!0);s===tu?o.hasBullet=(a&1)!==0:s===128?o.bulletChar=String.fromCharCode(a):s===256?o.leftMargin=a:s===1024?o.indent=a:s===2048&&(o.align=a),i+=l}return o.hasBullet===void 0&&n&128&&(o.hasBullet=!0),i}function ou(e,t,r,n,o){let i=t;for(let[s,l]of x2){if(!(n&s))continue;if(i+l>r)return-1;let a=l===2?e.getUint16(i,!0):e.getUint32(i,!0);s===65535?(n&1&&(o.bold=(a&1)!==0),n&2&&(o.italic=(a&2)!==0),n&4&&(o.underline=(a&4)!==0)):s===65536?o.fontIdx=a:s===2097152?o.asianFontIdx=a:s===131072?o.size=a:s===262144&&(o.color=a),i+=l}return i}function iu(e,t,r){let n=[],o=[],i=t.start,s=t.start+t.len,l=r+1,a=0;for(;i+10<=s&&a<l;){let c=e.getUint32(i,!0),u=e.getUint16(i+4,!0),h=e.getUint32(i+6,!0),f={indentLevel:u},m=ru(e,i+10,s,h,f);if(m<0||(i=m,n.push({chars:c,props:f}),a+=c,c===0))break}for(a=0;i+8<=s&&a<l;){let c=e.getUint32(i,!0);if(c>l)break;let u=e.getUint32(i+4,!0),h={},f=ou(e,i+8,s,u,h);if(f<0||(i=f,o.push({chars:c,props:h}),a+=c,c===0))break}return{para:n,char:o}}var pe={TITLE:0,BODY:1,NOTES:2,OTHER:4,CENTER_BODY:5,CENTER_TITLE:6},v2={1:pe.TITLE,2:pe.BODY,3:pe.CENTER_TITLE,4:pe.CENTER_BODY,6:pe.NOTES,12:pe.NOTES,13:pe.TITLE,14:pe.BODY,15:pe.CENTER_TITLE,16:pe.CENTER_BODY,17:pe.TITLE,18:pe.BODY,19:pe.BODY};function su(e,t,r){let n=t.start+t.len,o=t.start;if(o+2>n)return;let i=e.getUint16(o,!0);o+=2;let s=[];for(let l=0;l<i&&(t.instance>=5&&(o+=2),!(o+4>n));l++){let a=e.getUint32(o,!0),c={},u=ru(e,o+4,n,a,c);if(u<0||u+4>n)break;let h=e.getUint32(u,!0),f={};if(u=ou(e,u+4,n,h,f),u<0)break;o=u,s.push({para:c,char:f})}s.length&&r.set(t.instance,s)}var w2={0:\"left\",1:\"center\",2:\"right\",3:\"justify\",4:\"justify\"};function y2(e,t,r){let n=e.text.replace(/\\r\\n?/g,`\n`).replace(/\\v/g,`\n`);if(!n.trim())return null;let o=[],i=0,s=0,l=0,a=p=>{for(;s<e.charProps.length&&l>=e.charProps[s].chars;)l=0,s++;let b=e.charProps[s];if(!b)return{props:{},take:p};let v=Math.max(1,b.chars-l);return{props:b.props,take:Math.min(p,v)}},c=e.links??[],u=p=>{var b;return(b=c.find(v=>p>=v.begin&&p<v.end))==null?void 0:b.link},h=(p,b)=>{let v=b;for(let x of c)x.begin>p&&x.begin-p<v&&(v=x.begin-p),x.end>p&&x.end-p<v&&(v=x.end-p);return Math.max(1,v)},f=e.paraProps.length?e.paraProps:[{chars:n.length+1,props:{}}],m=t.claimAutoNums(f.length),d=[];return f.forEach((p,b)=>{let v=n.slice(i,i+p.chars),x=i;i+=p.chars;let M=v.split(`\n`),S=M.length>1&&M[M.length-1]===\"\",y=S?M.slice(0,-1):M,$=p.props,k=t.levelStyle($.indentLevel??0),A=$.indentLevel??0,L=m?.[b]??null,P=null;L&&(d.length=A+1,d[A]=(d[A]??L.startNum-1)+1,P=Nm(L.scheme,d[A]));let E=x;y.forEach((T,I)=>{let O=[],R=0;for(;R<T.length;){let{props:V,take:B}=a(T.length-R),q=E+R,X=h(q,B),K=T.slice(R,R+X);l+=X,R+=X,O.push(Ya(K,V,k.char,t,u(q)))}if((I<y.length-1||S)&&(l+=1),!O.length){let{props:V}=a(1);O.push(Ya(\"\",V,k.char,t,void 0))}E+=T.length+1;let z=I===0?P:null,j=z!==null||($.hasBullet??k.para.hasBullet??!1),F=$.leftMargin??k.para.leftMargin,W=F!==void 0?F*Xr:j?24:0;o.push({align:w2[$.align??k.para.align??0]??\"left\",lvl:A,marL:W,indent:j?-Math.min(W,24):0,bullet:z??(j?M2($.bulletChar??k.para.bulletChar):null),lineHeight:null,spaceBefore:0,spaceAfter:2,runs:O})})}),o.length?{anchor:r===1||r===5?\"middle\":r===2||r===6?\"bottom\":\"top\",insets:[3.6,7.2,3.6,7.2],wrap:!0,fontScale:1,paragraphs:o}:null}function Ya(e,t,r,n,o){let i=t.color??r.color,s=[];for(let l of[t.fontIdx??r.fontIdx,t.asianFontIdx??r.asianFontIdx]){let a=l!==void 0?n.fonts[l]:void 0;a&&!s.includes(a)&&s.push(a)}return{text:e,b:t.bold??r.bold??!1,i:t.italic??r.italic??!1,u:t.underline??r.underline??!1,strike:!1,size:(t.size??r.size??18)*(96/72),color:i!==void 0?Zt(i,n.scheme):\"rgb(0,0,0)\",fonts:s,link:o}}var $2={108:\"\\u25CF\",110:\"\\u25A0\",109:\"\\u2751\",113:\"\\u2751\",117:\"\\u25C6\",118:\"\\u2756\",167:\"\\u25AA\",168:\"\\u25FB\",183:\"\\u2022\",216:\"\\u27A2\",252:\"\\u2713\",254:\"\\u2611\"};function M2(e){if(!e)return\"\\u2022\";let t=e.charCodeAt(0),r=t>=61440&&t<=61695?t-61440:t,n=$2[r];return n&&(t>=61440||t>127)?n:t>=61440||t<32||t===65533?\"\\u2022\":e}function k2(e,t){let r=e.autoNumCursor;if(t<=0||r+t>e.autoNums.length)return;let n=e.autoNums.slice(r,r+t);if(n.some(o=>o!==null))return e.autoNumCursor=r+t,n}function C2(e,t,r){let n=`${t}:${r}`,o=e.levelCache.get(n);if(o)return o;let i=(a,c)=>{let u=a.get(c);if(!(!u||!u.length))return u[Math.min(r,u.length-1)]},s=[i(e.envStyles,pe.OTHER),i(e.styles,pe.OTHER),i(e.styles,t)],l={para:Object.assign({},...s.map(a=>a?.para??{})),char:Object.assign({},...s.map(a=>a?.char??{}))};return e.levelCache.set(n,l),l}function S2(e,t){return{fonts:e.fonts,scheme:e.scheme,levelStyle:r=>C2(e,t,r),claimAutoNums:r=>k2(e,r)}}function E2(e,t){let{dv:r}=e,n=null,o=null,i,s=[],l;for(let c of Be(r,t.start,t.start+t.len))if(c.type===te.TextCharsAtom)n=Rt(r,c.start,c.len);else if(c.type===te.TextBytesAtom)n=ho(r,c.start,c.len);else if(c.type===te.StyleTextPropAtom)o=c;else if(c.type===te.TextHeaderAtom&&c.len>=4)i=r.getUint32(c.start,!0);else if(c.type===te.InteractiveInfo)l=lu(e,c);else if(c.type===te.TextInteractiveInfoAtom&&c.len>=8){let u=r.getUint32(c.start,!0),h=r.getUint32(c.start+4,!0);l&&h>u&&s.push({begin:u,end:h,link:l}),l=void 0}if(n===null)return null;let a=o?iu(r,o,n.length):{para:[],char:[]};return{text:n,paraProps:a.para,charProps:a.char,textType:i,links:s.length?s:void 0}}function T2(e,t){let{dv:r}=e,n=he(r,t.start,t.start+t.len,Me.ClientData);if(!n)return null;let o=he(r,n.start,n.start+n.len,te.OEPlaceholderAtom);return o&&o.len>=6?r.getUint8(o.start+4):null}var L2={1:(e,t)=>Math.min(e+1,t),2:e=>Math.max(e-1,1),3:()=>1,4:(e,t)=>t};function lu(e,t){let{dv:r}=e,n=he(r,t.start,t.start+t.len,te.InteractiveInfoAtom);if(!n||n.len<16)return;let o=r.getUint32(n.start+4,!0),i=e.links.get(o);if(i)return i;let s=L2[r.getUint8(n.start+10)];return s?`slide:${s(e.slideIndex,e.slideCount)}`:void 0}function A2(e,t){let{dv:r}=e,n=he(r,t.start,t.start+t.len,Me.ClientData);if(!n)return;let o=he(r,n.start,n.start+n.len,te.InteractiveInfo);return o?lu(e,o):void 0}function P2(e,t){let r=new Map,n=he(e,t.start,t.start+t.len,te.ExObjList);if(!n)return r;for(let o of dt(e,n.start,n.start+n.len,te.ExHyperlink)){let i=null,s=null,l=null;for(let c of Be(e,o.start,o.start+o.len))if(c.type===te.ExHyperlinkAtom&&c.len>=4)i=e.getUint32(c.start,!0);else if(c.type===te.CString){let u=Rt(e,c.start,c.len).replace(/\\0+$/,\"\");c.instance===1?s=u:c.instance===0&&(l=u)}let a=s??l;i!==null&&a&&r.set(i,a)}return r}function I2(e,t,r){let n=e.trim();if(!n)return null;let o=n.toLowerCase(),i=/^#?action\\?jump=(.+)$/.exec(o)??/^#action\\?jump=(.+)$/.exec(o);if(i){let l=i[1];if(l===\"firstslide\")return\"slide:1\";if(l===\"lastslide\")return`slide:${r}`;if(l===\"nextslide\")return`slide:${Math.min(t+1,r)}`;if(l===\"previousslide\")return`slide:${Math.max(t-1,1)}`;let a=/(\\d+)/.exec(l);return a?`slide:${a[1]}`:null}let s=/^\\s*\\d+\\s*,\\s*(\\d+)\\s*,/.exec(n);if(s)return`slide:${s[1]}`;if(n.startsWith(\"#\")){let l=/(\\d+)\\s*$/.exec(n);return l?`slide:${l[1]}`:null}return/^[a-z][a-z0-9+.-]*:/.test(o)?n:/^www\\./.test(o)?`https://${n}`:n}function au(e,t,r){let{dv:n}=e,o=he(n,t.start,t.start+t.len,Me.ClientAnchor);if(o){let s=Vm(n,o);if(s)return{x:s.x*e.scale,y:s.y*e.scale,w:s.w*e.scale,h:s.h*e.scale}}let i=he(n,t.start,t.start+t.len,Me.ChildAnchor);if(i){let s=Gm(n,i);if(s)return{x:r.x+s.x*r.sx,y:r.y+s.y*r.sy,w:s.w*r.sx,h:s.h*r.sy}}return null}function cu(e,t,r,n,o){let i=r.simple.get(ne.rotation),s={x:e.x,y:e.y,w:e.w,h:e.h,rot:i!==void 0?i/65536%360:0,flipH:(t.flags&yt.FLIPH)!==0,flipV:(t.flags&yt.FLIPV)!==0,id:t.id};if(o){let a=Ym(o,r,ne.wzName);a&&(s.name=a)}let l=Dm(r,n);return l&&(s.effects={shadow:l}),s}function qa(e,t,r){let{dv:n}=e,o=he(n,t.start,t.start+t.len,Me.Sp);if(!o)return null;let i=gs(n,o);if(i.flags&yt.DELETED||i.flags&(yt.PATRIARCH|yt.GROUP)||i.flags&yt.BACKGROUND)return null;let s=T2(e,t);if(e.masterPass&&s!==null&&s!==0)return null;let l=o.instance,a=he(n,t.start,t.start+t.len,Me.Opt),c=a?ps(n,a):{simple:new Map,complex:new Map},u=au(e,t,r);if(!u||u.w<=0||u.h<=0)return null;let h=cu(u,i,c,e.scheme,n),f=A2(e,t);f&&(h.link=f);let m=L=>e.blobs[L-1]??null,d=c.simple.get(ne.pib),p=d===void 0?null:m(d);if(i.flags&yt.OLE)return{kind:\"unsupported\",...h,label:\"\\u4E0D\\u652F\\u6301\\u7F16\\u8F91\\u7684\\u65E7\\u7248 OLE \\u5BF9\\u8C61\",...p?{preview:p}:{}};if(d!==void 0&&(l===Hm||d>0)&&p)return{kind:\"image\",...h,src:p,crop:Um(c),stroke:Ga(c,e.scheme)};let b=Qc(c,e.scheme,m),v=Ga(c,e.scheme),x=null,M=!1;l===0&&c.complex.has(ne.pVertices)&&(x=m2(n,c,u.w,u.h));let S=Bm[l]??(l===4095?\"rect\":null);if(!x&&!S)return{kind:\"unsupported\",...h,label:`\\u4E0D\\u652F\\u6301\\u7684\\u65E7\\u7248\\u5F62\\u72B6\\uFF08MSOSPT ${l}\\uFF09`};if(!x){let L=R2(c,l),P=nn(S,u.w,u.h,L);x=P.d,M=P.open,e.edit&&(h.editInfo={geom:{preset:S,adj:L}})}let y=he(n,t.start,t.start+t.len,Me.ClientTextbox),$=y?E2(e,y):null;if(!$){let L=c.simple.get(ne.lTxid);L!==void 0&&e.listText[L]&&($=e.listText[L])}let k=$?.textType??(s!==null?v2[s]:void 0)??pe.OTHER,A=$?y2($,S2(e,k),c.simple.get(ne.anchorText)):null;return!A&&(!b||b.type===\"none\")&&!v?null:{kind:\"shape\",...h,path:x,fill:M?{type:\"none\"}:b,stroke:v,text:A,openGeom:M||void 0}}var N2=new Set([19,98,102,103]);function R2(e,t){let r=N2.has(t),n={},o=[[ne.adjustValue,\"adj1\"],[ne.adjust2Value,\"adj2\"],[ne.adjust3Value,\"adj3\"],[ne.adjust4Value,\"adj4\"]];for(let[i,s]of o){let l=e.simple.get(i);if(l===void 0)continue;let a=l>2147483647?l-4294967296:l;if(r){n[s]=a/65536*6e4;continue}Math.abs(a)>21600*4||(n[s]=a/21600*1e5)}return n.adj1!==void 0&&(n.adj=n.adj1),n}var O2=e=>({x:0,y:0,sx:e.scale,sy:e.scale});function uu(e,t,r,n=0){let{dv:o}=e,i=[],s=[...Be(o,t.start,t.start+t.len)],l=s.find(m=>m.type===Me.SpContainer),a=l?z2(e,l,r):null,c=a?.rec??null,u=r;if(a){let m=a.box.w/a.space.w,d=a.box.h/a.space.h;u={x:a.box.x-a.space.x*m,y:a.box.y-a.space.y*d,sx:m,sy:d}}let h=m=>{let d=[];for(let p of s){if(p===c||p.type!==Me.SpContainer)continue;let b=qa(e,p,m);b&&d.push(b)}return d};if(a&&Zm(a.props)){let m=h(u),d=Za(m,qm(o,a.props).map(p=>p*e.scale));return d?[d]:m}if(a&&s.filter(m=>m.type===Me.SpContainer).length>=4){let m=F2(h(u));if(j2(m)){let d=Za(m,[]);if(d)return[d]}}let f=(m,d)=>{for(let p of s)if(p!==c)if(p.type===Me.SpContainer){let b=qa(e,p,m);b&&d.push(b)}else p.type===Me.SpgrContainer&&n<8&&d.push(...uu(e,p,m,n+1))};if(a){let m=[];if(f(O2(e),m),!m.length)return[];let d=a.space.w*e.scale,p=a.space.h*e.scale;return[{kind:\"group\",...cu(a.box,a.sp,a.props,e.scheme,e.dv),childX:a.space.x*e.scale,childY:a.space.y*e.scale,scaleX:a.box.w/d,scaleY:a.box.h/p,children:m}]}return f(u,i),i}function z2(e,t,r){let{dv:n}=e,o=he(n,t.start,t.start+t.len,Me.Spgr),i=he(n,t.start,t.start+t.len,Me.Sp);if(!o||!i)return null;let s=gs(n,i);if(!(s.flags&yt.GROUP)||s.flags&yt.PATRIARCH)return null;let l=Xm(n,o),a=au(e,t,r);if(!l||!a||l.w<=0||l.h<=0||a.w<=0||a.h<=0)return null;let c=he(n,t.start,t.start+t.len,Me.Opt),u=c?ps(n,c):{simple:new Map,complex:new Map};return{rec:t,sp:s,props:u,box:a,space:l}}function F2(e){let t=e.filter(o=>o.kind===\"shape\");if(t.length!==e.length)return e;let r=3,n=[];for(let o of t){let i=n.find(s=>Math.abs(s.x-o.x)<=r&&Math.abs(s.y-o.y)<=r&&Math.abs(s.w-o.w)<=r*2&&Math.abs(s.h-o.h)<=r*2);if(!i){n.push({...o});continue}!i.text&&o.text&&(i.text=o.text),(!i.fill||i.fill.type===\"none\")&&o.fill&&o.fill.type!==\"none\"&&(i.fill=o.fill),!i.stroke&&o.stroke&&(i.stroke=o.stroke)}return n}function j2(e){let t=e.filter(c=>c.kind===\"shape\"&&c.path!==null);if(t.length<4||t.length!==e.length)return!1;let r=2.5,n=c=>{let u=[...c].sort((f,m)=>f-m),h=[];for(let f of u)(!h.length||f-h[h.length-1]>r)&&h.push(f);return h},o=n(t.map(c=>c.x)),i=n(t.map(c=>c.y));if(o.length<2||i.length<2||t.length>o.length*i.length||t.length<o.length*i.length*.5)return!1;let s=(c,u,h)=>{for(let f=0;f+1<c.length;f++)if(!u.some((m,d)=>Math.abs(m-c[f])<=r&&Math.abs(h[d]-c[f+1])<=r*2))return!1;return!0},l=s(o,t.map(c=>c.x),t.map(c=>c.x+c.w)),a=s(i,t.map(c=>c.y),t.map(c=>c.y+c.h));return l&&a}function Za(e,t){var r,n,o;let i=e.filter(y=>y.kind===\"shape\");if(i.length<2)return null;let s=2,l=y=>{let $=[...y].sort((A,L)=>A-L),k=[];for(let A of $)(!k.length||A-k[k.length-1]>s)&&k.push(A);return k},a=l(i.map(y=>y.x)),c=l(i.map(y=>y.y));if(a.length<1||c.length<1)return null;let u=a[0],h=c[0],f=Math.max(...i.map(y=>y.x+y.w)),m=Math.max(...i.map(y=>y.y+y.h)),d=a.map((y,$)=>($+1<a.length?a[$+1]:f)-y),p=c.map((y,$)=>($+1<c.length?c[$+1]:m)-y),b=t.length===c.length?t:p,v=y=>{let $=0;for(let k=0;k<a.length;k++)y>=a[k]-s&&($=k);return $},x=y=>{let $=0;for(let k=0;k<c.length;k++)y>=c[k]-s&&($=k);return $},M=c.map(()=>a.map(()=>null));for(let y of i){let $=x(y.y),k=v(y.x);if(M[$][k])continue;let A=0;for(let P=k;P<a.length&&a[P]<y.x+y.w-s;P++)A++;let L=0;for(let P=$;P<c.length&&c[P]<y.y+y.h-s;P++)L++;M[$][k]={colSpan:Math.max(1,A),rowSpan:Math.max(1,L),merged:!1,fill:y.fill,text:y.text,borders:{l:y.stroke,r:y.stroke,t:y.stroke,b:y.stroke},vAlign:((r=y.text)==null?void 0:r.anchor)===\"middle\"?\"middle\":((n=y.text)==null?void 0:n.anchor)===\"bottom\"?\"bottom\":\"top\"};for(let P=$;P<$+Math.max(1,L);P++)for(let E=k;E<k+Math.max(1,A);E++)P===$&&E===k||((o=M[P])==null?void 0:o[E])===null&&(M[P][E]={colSpan:1,rowSpan:1,merged:!0,fill:null,text:null})}let S=M.map((y,$)=>({height:b[$]??0,cells:y.map(k=>k??{colSpan:1,rowSpan:1,merged:!1,fill:null,text:null})}));return{kind:\"table\",x:u,y:h,w:f-u,h:m-h,rot:0,flipH:!1,flipV:!1,colWidths:d,rows:S,name:\"\\u8868\\u683C\"}}function U2(e,t){let r=new Map;for(let n of Be(e,0,t)){if(n.type!==te.PersistDirectoryAtom)continue;let o=n.start+n.len,i=n.start;for(;i+4<=o;){let s=e.getUint32(i,!0);i+=4;let l=s&1048575,a=s>>>20;for(let c=0;c<a&&i+4<=o;c++,i+=4)r.set(l+c,e.getUint32(i,!0))}}return r}function Oi(e,t,r,n,o,i){let s=[];for(let l of dt(e,t.start,t.start+t.len,te.SlideListWithText))if(l.instance===r)for(let a of dt(e,l.start,l.start+l.len,te.SlidePersistAtom)){if(a.len<16)continue;let c=n.get(e.getUint32(a.start,!0)),u=c!==void 0?o.get(c):void 0;u&&i.includes(u.type)&&s.push({rec:u,slideId:e.getUint32(a.start+12,!0)})}return s}function jr(e,t,r,n){var o,i,s;let l=[(o=t.get(pe.OTHER))==null?void 0:o[0],(i=e?.get(pe.OTHER))==null?void 0:i[0]];for(let c of r)l.push((s=e?.get(c))==null?void 0:s[0]);let a;for(let c of l)c?.char[n]!==void 0&&(a=c.char[n]);return a}function D2(e,t){let r=n=>n===void 0?\"\":t.fonts[n]??\"\";return{majorLatin:r(jr(e?.styles,t.envStyles,[pe.TITLE,pe.CENTER_TITLE],\"fontIdx\")),majorEa:r(jr(e?.styles,t.envStyles,[pe.TITLE,pe.CENTER_TITLE],\"asianFontIdx\")),minorLatin:r(jr(e?.styles,t.envStyles,[pe.BODY,pe.CENTER_BODY],\"fontIdx\")),minorEa:r(jr(e?.styles,t.envStyles,[pe.BODY,pe.CENTER_BODY],\"asianFontIdx\"))}}function Ki(e,t,r){for(let n of dt(e,t.start,t.start+t.len,te.ColorSchemeAtom)){if(n.instance!==r||n.len<32)continue;let o=[];for(let i=0;i<8;i++){let s=e.getUint32(n.start+i*4,!0),l=[s&255,s>>8&255,s>>16&255];o.push(l.map(a=>a.toString(16).padStart(2,\"0\")).join(\"\"))}return o}return null}function hu(e,t,r,n){let o=he(e,t.start,t.start+t.len,Me.DgContainer);if(!o)return null;for(let i of dt(e,o.start,o.start+o.len,Me.SpContainer)){let s=he(e,i.start,i.start+i.len,Me.Sp);if(!s||!(gs(e,s).flags&yt.BACKGROUND))continue;let l=he(e,i.start,i.start+i.len,Me.Opt);if(!l)continue;let a=ps(e,l);if(!a.simple.has(ne.fillColor)&&!a.simple.has(ne.fillType)&&!a.simple.has(ne.fillBlip))continue;let c=Qc(a,r,n);if(c&&c.type!==\"none\")return c}return null}function fu(e,t){let r=[],n=he(e.dv,t.start,t.start+t.len,Me.DgContainer);if(!n)return r;for(let o of dt(e.dv,n.start,n.start+n.len,Me.SpgrContainer))r.push(...uu(e,o,{x:0,y:0,sx:e.scale,sy:e.scale}));return r}function B2(e,t,r){let n=Ki(e,t,1)??Ki(e,t,6)??bs,o=new Map;for(let c of dt(e,t.start,t.start+t.len,te.TxMasterStyleAtom))su(e,c,o);let i=he(e,t.start,t.start+t.len,te.PPDrawing),s=i?hu(e,i,n,c=>r.blobs[c-1]??null):null,l={dv:e,scheme:n,fonts:r.fonts,blobs:r.blobs,listText:[],scale:r.scale,styles:o,envStyles:r.envStyles,links:new Map,masterPass:!0,levelCache:new Map,slideIndex:1,slideCount:1,autoNums:Kc(e,t),autoNumCursor:0,edit:r.edit},a=i?fu(l,i):[];return{scheme:n,styles:o,background:s,elements:a}}function H2(e,t){let r=[],n=-1,o=(i,s,l)=>{for(let a of Be(e,i,s))if(a.type===te.TextHeaderAtom&&a.len>=4)n=e.getUint32(a.start,!0);else if(a.type===te.TextCharsAtom||a.type===te.TextBytesAtom){if(n===pe.NOTES){let c=(a.type===te.TextCharsAtom?Rt(e,a.start,a.len):ho(e,a.start,a.len)).replace(/\\r\\n?/g,`\n`).replace(/\\v/g,`\n`).replace(/\\0/g,\"\").trim();c&&r.push(c)}n=-1}else(a.isContainer||a.type===Me.ClientTextbox)&&l<8&&o(a.start,a.start+a.len,l+1)};return o(t.start,t.start+t.len,0),r.join(`\n`)}function W2(e,t,r=!1){var n;let o=new _r(e);if(o.stream(\"EncryptedPackage\")||o.stream(\"EncryptionInfo\"))throw new Error(\"\\u8BE5\\u6587\\u4EF6\\u662F\\u52A0\\u5BC6\\u7684 OOXML \\u5BB9\\u5668\\uFF0C\\u8BF7\\u7528 parse(input, { password })\");let i=o.stream(\"PowerPoint Document\");if(!i)throw new Error(\"\\u65E0\\u6548\\u7684 .ppt\\uFF1A\\u627E\\u4E0D\\u5230 PowerPoint Document \\u6D41\");let s=o.stream(\"Current User\");if($m(s)&&s){let B=X1();if(!B)throw new Error(\"\\u8BE5 .ppt \\u5DF2\\u52A0\\u5BC6\\uFF0C\\u4F46\\u672A\\u6CE8\\u5165\\u89E3\\u5BC6\\u5668\\uFF08setPptDecryptor\\uFF09\");if(t===void 0)throw new Kr;let q=B(i,s,t);if(!q)throw new Error(\"\\u8BE5 .ppt \\u5DF2\\u52A0\\u5BC6\\uFF0C\\u4F46\\u52A0\\u5BC6\\u7ED3\\u6784\\u65E0\\u6CD5\\u8BC6\\u522B\");i=q}let l=new DataView(i.buffer,i.byteOffset,i.byteLength),a=720*(96/72),c=540*(96/72),u=o.stream(\"Pictures\"),h=u?Wm(u):[],f=h.map(B=>{try{return B.mime===\"image/emf\"||B.mime===\"image/wmf\"||B.mime===\"image/pict\"?ii(B.data):URL.createObjectURL(new Blob([B.data.slice().buffer],{type:B.mime}))}catch{return null}}),m=new Map,d=[];for(let B of Be(l,0,i.length))m.set(B.start-8,B),d.push(B);let p=[],b=new Map,v=he(l,0,i.length,te.Document),x=(B,q,X)=>{for(let K of Be(l,B,q)){if(K.type===te.DocumentAtom&&K.len>=8)a=l.getInt32(K.start,!0)*Xr,c=l.getInt32(K.start+4,!0)*Xr;else if(K.type===te.FontEntityAtom){let Y=Rt(l,K.start,Math.min(K.len,64)).replace(/\\0.*$/,\"\");Y&&(p[K.instance<512?K.instance:p.length]=Y)}else K.type===te.TxMasterStyleAtom&&su(l,K,b);K.isContainer&&X<4&&x(K.start,K.start+K.len,X+1)}};v&&x(v.start,v.start+v.len,0);let M={fonts:p,blobs:f,scale:Xr,envStyles:b,edit:r},S=U2(l,i.length),y=B=>d.filter(q=>q.type===B),$=v?Oi(l,v,0,S,m,[te.Slide]):[];$.length||($=y(te.Slide).map(B=>({rec:B,slideId:0})));let k=v?Oi(l,v,1,S,m,[te.MainMaster,te.Slide]):[],A=v?Oi(l,v,2,S,m,[te.Notes]):[],L=new Map,P=new Map;for(let B of k)P.set(B.slideId,B.rec);let E=((n=k[0])==null?void 0:n.rec)??y(te.MainMaster)[0]??null,T=B=>{let q=P.get(B)??E;if(!q)return null;let X=q.start,K=L.get(X);return K||(K=B2(l,q,M),L.set(X,K)),K},I=new Map;for(let B of A)I.set(B.slideId,B.rec);let O=new Map;for(let B of y(te.Notes)){let q=he(l,B.start,B.start+B.len,te.NotesAtom);q&&q.len>=4&&O.set(l.getUint32(q.start,!0),B)}let R=v?P2(l,v):new Map,z=$.length,j=null,F=$.map((B,q)=>{let X=he(l,B.rec.start,B.rec.start+B.rec.len,te.SlideAtom),K=X&&X.len>=24?l.getUint32(X.start+12,!0):0,Y=X&&X.len>=24?l.getUint32(X.start+16,!0):0,se=X&&X.len>=24?l.getUint16(X.start+20,!0):7,ue=I.get(Y)??O.get(B.slideId)??null,fe=T(K);return j??(j=fe),G2(l,B.rec,M,{master:fe,followMasterObjects:(se&1)!==0,followMasterBackground:(se&4)!==0,notes:ue?H2(l,ue):\"\",hyperlinks:R,index:q+1,count:z})});if(!F.length||F.every(B=>!B.elements.length)){let B=V2(l,i.length,a,c);B.length&&(F=B)}if(!F.length)throw new Error(\".ppt \\u4E2D\\u672A\\u627E\\u5230\\u5E7B\\u706F\\u7247\");let W=r?f.flatMap((B,q)=>{let X=B!=null&&B.startsWith(\"blob:\")?h[q]:void 0;return B&&X?[{url:B,mime:X.mime,bytes:X.data.slice()}]:[]}):[],V=!1;return{width:a,height:c,slides:F,source:\"ppt\",...r?{editInfo:{layouts:[],masters:[],themes:[g2(j?.scheme??bs,D2(j,M))],assets:W}}:{},dispose:()=>{if(!V){V=!0;for(let B of f)if(B!=null&&B.startsWith(\"blob:\"))try{URL.revokeObjectURL(B)}catch{}}}}}function V2(e,t,r,n){let o=(function h(f,m,d){for(let p of Be(e,f,m)){if(p.type===te.SlideListWithText&&p.instance===0)return p;if(p.isContainer&&d<4){let b=h(p.start,p.start+p.len,d+1);if(b)return b}}return null})(0,t,0);if(!o)return[];let i=[],s=null,l=4;for(let h of Be(e,o.start,o.start+o.len))if(h.type===te.SlidePersistAtom)s={titles:[],bodies:[]},i.push(s);else if(h.type===te.TextHeaderAtom&&h.len>=4)l=e.getUint32(h.start,!0);else if(s&&(h.type===te.TextCharsAtom||h.type===te.TextBytesAtom)){let f=h.type===te.TextCharsAtom?Rt(e,h.start,h.len):ho(e,h.start,h.len);(l===0||l===6?s.titles:s.bodies).push(f)}let a=(h,f,m,d)=>({text:h,b:m,i:!1,u:!1,strike:!1,size:f,color:d,fonts:[]}),c=(h,f)=>({align:\"left\",lvl:0,marL:f?24:0,indent:f?-24:0,bullet:f,lineHeight:null,spaceBefore:0,spaceAfter:6,runs:h}),u=h=>h.split(/[\\r\\n\\v]/).map(f=>f.trim()).filter(Boolean);return i.filter(h=>h.titles.length||h.bodies.length).map(h=>{let f=[];return h.titles.length&&f.push({kind:\"shape\",x:r*.06,y:n*.05,w:r*.88,h:n*.16,rot:0,flipH:!1,flipV:!1,path:null,fill:null,stroke:null,text:{anchor:\"middle\",insets:[4,8,4,8],wrap:!0,fontScale:1,paragraphs:h.titles.flatMap(m=>u(m).map(d=>c([a(d,34,!0,\"rgb(30,30,30)\")],null)))}}),h.bodies.length&&f.push({kind:\"shape\",x:r*.06,y:n*.24,w:r*.88,h:n*.68,rot:0,flipH:!1,flipV:!1,path:null,fill:null,stroke:null,text:{anchor:\"top\",insets:[4,8,4,8],wrap:!0,fontScale:1,paragraphs:h.bodies.flatMap(m=>u(m).map(d=>c([a(d,20,!1,\"rgb(50,50,50)\")],\"\\u2022\")))}}),{background:{type:\"solid\",color:\"rgb(255,255,255)\"},elements:f}})}function G2(e,t,r,n){var o,i,s;let l=t.start+t.len,a=Ki(e,t,1)??((o=n.master)==null?void 0:o.scheme)??bs,c=[],u=null,h=null,f,m=()=>{if(h===null)return;let k=u?iu(e,u,h.length):{para:[],char:[]};c.push({text:h,paraProps:k.para,charProps:k.char,textType:f}),h=null,u=null,f=void 0};for(let k of Be(e,t.start,l))k.type===te.TextHeaderAtom?(m(),k.len>=4&&(f=e.getUint32(k.start,!0))):k.type===te.TextCharsAtom?h=Rt(e,k.start,k.len):k.type===te.TextBytesAtom?h=ho(e,k.start,k.len):k.type===te.StyleTextPropAtom&&(u=k);m();let d=new Map;for(let[k,A]of n.hyperlinks){let L=I2(A,n.index,n.count);L&&d.set(k,L)}let p={dv:e,scheme:a,fonts:r.fonts,blobs:r.blobs,listText:c,scale:r.scale,styles:((i=n.master)==null?void 0:i.styles)??new Map,envStyles:r.envStyles,links:d,masterPass:!1,levelCache:new Map,slideIndex:n.index,slideCount:n.count,autoNums:Kc(e,t),autoNumCursor:0,edit:r.edit},b=[];n.master&&n.followMasterObjects&&b.push(...n.master.elements);let v=he(e,t.start,l,te.PPDrawing);v&&b.push(...fu(p,v));let x=v?hu(e,v,a,k=>r.blobs[k-1]??null):null,M=(n.followMasterBackground?((s=n.master)==null?void 0:s.background)??null:null)??x??{type:\"solid\",color:Zt(134217728,a)},S=o2(e,t),y=S?.transition,$=d2(e,t);return{background:M,elements:b,notes:n.notes||void 0,hidden:S!=null&&S.hidden?!0:void 0,transition:y,animations:$}}var X2=/[、。,.:;!?」』】〕)》〉}]”]/,du=/[「『【〔(《〈{[“]/,Sn=e=>du.test(e);function Tn(e){return X2.test(e)||du.test(e)?.5:0}function xs(e){let t=0;for(let r of e)t+=Tn(r);return t}function pu(e,t){let r=e.length,n=new Array(r).fill(0),o=new Array(r).fill(0),i=0;for(let s=0;s<r;s++){let l=Tn(e[s]);!l||!(t||s===0&&Sn(e[s])||s===r-1&&!Sn(e[s])||s>0&&Tn(e[s-1])>0)||(o[s]=l,i+=l,Sn(e[s])?n[s]-=l:s+1<r&&(n[s+1]-=l))}return{dx:n,amount:o,total:i}}function Y2(e){let t=e.codePointAt(0)??0;return t>=4352&&t<=4447||t>=11904&&t<=12350||t>=12353&&t<=13311||t>=13312&&t<=19903||t>=19968&&t<=40959||t>=40960&&t<=42191||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510||t>=131072&&t<=262141}var oe=e=>e.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/\"/g,\"&quot;\"),C=e=>Number.isFinite(e)?String(Math.round(e*100)/100):\"0\";function Qr(e){return e.replace(/['\"\\\\<>&\\u0000-\\u001f\\u007f]/gu,t=>`\\\\${t.codePointAt(0).toString(16)} `)}var q2=\"'Cambria Math','Latin Modern Math','STIX Two Math','Times New Roman',serif\",_a={\"\\u0300\":\"\\u02CB\",\"\\u0301\":\"\\u02CA\",\"\\u0302\":\"\\u02C6\",\"\\u0303\":\"\\u02DC\",\"\\u0306\":\"\\u02D8\",\"\\u0307\":\"\\u02D9\",\"\\u0308\":\"\\xA8\",\"\\u030A\":\"\\u02DA\",\"\\u030C\":\"\\u02C7\",\"\\u20D6\":\"\\u2190\",\"\\u20D7\":\"\\u2192\",\"\\u20E1\":\"\\u2194\",\"\\u20DB\":\"\\u22EF\",\"\\u20DC\":\"\\u22EF\"},Ur=new Set([\"\\u0305\",\"\\u0304\",\"\\u203E\",\"\\xAF\",\"\\u0332\",\"\\u0333\",\"_\"]),Z2=new Set([\"\\u23DE\",\"\\u23DF\",\"\\u23B4\",\"\\u23B5\",\"\\u23DC\",\"\\u23DD\"]),zi=.72,_2=.5,$n=(e,t)=>({...e,size:Math.max(e.size*t,e.size*_2)});function Kn(){return{w:0,h:0,d:0,draw:()=>\"\"}}var Jr=.72,eo=.22;function mu(e,t,r,n,o,i,s=\"\"){let l=`font-family:${q2};font-size:${C(t.size)}px;`+(r?\"font-style:italic;\":\"\")+(n?\"font-weight:700;\":\"\");return s?`<text x=\"0\" y=\"0\" style=\"${l}\" fill=\"${t.color}\" xml:space=\"preserve\" transform=\"${s}\">${oe(e)}</text>`:`<text x=\"${C(o)}\" y=\"${C(i)}\" style=\"${l}\" fill=\"${t.color}\" xml:space=\"preserve\">${oe(e)}</text>`}function Yt(e,t,r,n){return{w:t.measure(e,t.size,r,n),h:t.size*Jr,d:t.size*eo,draw:(o,i)=>mu(e,t,r,n,o,i)}}function Ka(e,t,r,n){let o=Yt(e,t,!1,!1),i=t.size*(Jr+eo),s=r+n;if(s<=i*1.02)return o;let l=s/i,a=(n-r)/2+(Jr-eo)/2*t.size*l;return{w:o.w,h:r,d:n,draw:(c,u)=>mu(e,t,!1,!1,0,0,`translate(${C(c)} ${C(u+a)}) scale(1 ${C(l)})`)}}function K2(e,t,r){return{w:e,h:t,d:0,draw:(n,o)=>`<rect x=\"${C(n)}\" y=\"${C(o-t)}\" width=\"${C(e)}\" height=\"${C(t)}\" fill=\"${r}\"/>`}}function Mn(e){if(!e.length)return Kn();let t=e.reduce((o,i)=>o+i.w,0),r=Math.max(...e.map(o=>o.h)),n=Math.max(...e.map(o=>o.d));return{w:t,h:r,d:n,draw:(o,i)=>{let s=o,l=[];for(let a of e)l.push(a.draw(s,i)),s+=a.w;return l.join(\"\")}}}function Dr(e,t,r){if(!e.length)return Kn();let n=Math.max(...e.map(s=>s.w)),o=0,i=0;return e.forEach((s,l)=>{l<r?o+=s.h+s.d+t:l===r?(o+=s.h,i+=s.d):i+=s.h+s.d+t}),{w:n,h:o,d:i,draw:(s,l)=>{let a=l-o,c=[];for(let u of e)a+=u.h,c.push(u.draw(s+(n-u.w)/2,a)),a+=u.d+t;return c.join(\"\")}}}function Ce(e,t){return Mn(e.map(r=>Q2(r,t)))}function Q2(e,t){var r,n;switch(e.kind){case\"run\":{let o=e.sty??\"i\",i=/^[\\d\\s.,+\\-=<>()[\\]{}|/*]+$/.test(e.text);return Yt(e.text,t,(o===\"i\"||o===\"bi\")&&!i,o===\"b\"||o===\"bi\")}case\"frac\":{if(e.type===\"lin\")return Mn([Ce(e.num,t),Yt(\"/\",t,!1,!1),Ce(e.den,t)]);if(e.type===\"skw\"){let d=$n(t,.85);return Mn([Ce(e.num,d),Yt(\"\\u2044\",t,!1,!1),Ce(e.den,d)])}let o=$n(t,.9),i=Ce(e.num,o),s=Ce(e.den,o),l=t.size*.22,a=Math.max(i.w,s.w)+l*2,c=Math.max(.6,t.size*.055),u=t.size*.28,h=t.size*.18,f=u+c+h+i.h+i.d,m=-u+c+h+s.h+s.d;return{w:a,h:f,d:m,draw:(d,p)=>{let b=p-u,v=[i.draw(d+(a-i.w)/2,b-h-i.d),s.draw(d+(a-s.w)/2,b+c+h+s.h)];return e.type!==\"noBar\"&&v.push(`<rect x=\"${C(d+l*.4)}\" y=\"${C(b)}\" width=\"${C(a-l*.8)}\" height=\"${C(c)}\" fill=\"${t.color}\"/>`),v.join(\"\")}}}case\"rad\":{let o=Ce(e.base,t),i=Math.max(.6,t.size*.05),s=t.size*.12,l=t.size*.55,a=e.deg.length?Ce(e.deg,$n(t,.55)):null,c=a?Math.max(0,a.w-l*.35):0,u=o.h+s+i,h=o.d,f=c+l+o.w+t.size*.12;return{w:f,h:Math.max(u,a?u+a.h*.3:u),d:h,draw:(m,d)=>{let p=m+c,b=d-u,v=d+h,x=[`<path d=\"${`M ${C(p)} ${C(v-(v-b)*.45)} L ${C(p+l*.3)} ${C(v-(v-b)*.3)} L ${C(p+l*.62)} ${C(v)} L ${C(p+l)} ${C(b)} L ${C(m+f)} ${C(b)}`}\" fill=\"none\" stroke=\"${t.color}\" stroke-width=\"${C(i)}\" stroke-linejoin=\"miter\"/>`,o.draw(p+l+t.size*.06,d)];return a&&x.push(a.draw(m,d-(v-b)*.42)),x.join(\"\")}}}case\"script\":{let o=e.base.length?Ce(e.base,t):Kn(),i=$n(t,zi),s=(r=e.sup)!=null&&r.length?Ce(e.sup,i):null,l=(n=e.sub)!=null&&n.length?Ce(e.sub,i):null,a=t.size*.42,c=t.size*.22;return{w:o.w+Math.max(s?.w??0,l?.w??0)+t.size*.04,h:Math.max(o.h,s?a+s.h:0),d:Math.max(o.d,l?c+l.d:0),draw:(u,h)=>{let f=[o.draw(u,h)],m=u+o.w+t.size*.02;return s&&f.push(s.draw(m,h-a)),l&&f.push(l.draw(m,h+c)),f.join(\"\")}}}case\"nary\":{let o={...t,size:t.size*1.45},i=Yt(e.chr,o,!1,!1),s=$n(t,zi),l=e.sup.length?Ce(e.sup,s):null,a=e.sub.length?Ce(e.sub,s):null,c=Ce(e.base,t);if(e.underOver){let d=[];l&&d.push(l),d.push(i),a&&d.push(a);let p=Dr(d,t.size*.08,l?1:0);return Mn([p,{...Kn(),w:t.size*.12},c])}let u=t.size*.55,h=t.size*.45,f=Math.max(l?.w??0,a?.w??0),m={w:i.w+f+t.size*.06,h:Math.max(i.h,l?u+l.h:0),d:Math.max(i.d,a?h+a.d:0),draw:(d,p)=>{let b=[i.draw(d,p)];return l&&b.push(l.draw(d+i.w+t.size*.04,p-u)),a&&b.push(a.draw(d+i.w+t.size*.04,p+h)),b.join(\"\")}};return Mn([m,{...Kn(),w:t.size*.1},c])}case\"delim\":{let o=[];e.items.forEach((f,m)=>{m>0&&e.sep&&o.push(Yt(e.sep,t,!1,!1)),o.push(Ce(f,t))});let i=Mn(o),s=t.size*.06,l=Math.max(i.h+s,t.size*Jr),a=Math.max(i.d+s,t.size*eo),c=e.beg&&e.beg!==\" \"?Ka(e.beg,t,l,a):null,u=e.end&&e.end!==\" \"?Ka(e.end,t,l,a):null,h=[c,i,u].filter(f=>f!==null);return{w:h.reduce((f,m)=>f+m.w,0),h:Math.max(i.h,c?c.h:0),d:Math.max(i.d,c?c.d:0),draw:(f,m)=>{let d=f,p=[];for(let b of h)p.push(b.draw(d,m)),d+=b.w;return p.join(\"\")}}}case\"matrix\":{let o=e.rows.map(d=>d.map(p=>Ce(p,t))),i=Math.max(0,...o.map(d=>d.length)),s=[];for(let d=0;d<i;d++)s.push(Math.max(0,...o.map(p=>{var b;return((b=p[d])==null?void 0:b.w)??0})));let l=t.size*.5,a=t.size*.35,c=o.map(d=>Math.max(t.size*.72,...d.map(p=>p.h))),u=o.map(d=>Math.max(t.size*.22,...d.map(p=>p.d))),h=s.reduce((d,p)=>d+p,0)+l*Math.max(0,i-1),f=c.reduce((d,p,b)=>d+p+u[b],0)+a*Math.max(0,o.length-1),m=t.size*.28;return{w:h,h:f/2+m,d:f/2-m,draw:(d,p)=>{let b=[],v=p-(f/2+m);return o.forEach((x,M)=>{v+=c[M];let S=d;x.forEach((y,$)=>{b.push(y.draw(S+(s[$]-y.w)/2,v)),S+=s[$]+l}),v+=u[M]+a}),b.join(\"\")}}}case\"acc\":{let o=Ce(e.base,t),i=t.size*.9,s=e.chr.trim(),l=Math.max(.6,t.size*.05),a=t.size*(Ur.has(e.chr)||Ur.has(e.chr.trim())?.06:.02),c;if(Ur.has(e.chr)||Ur.has(s))c=K2(o.w,l,t.color);else if(Z2.has(s)){let u=Yt(s,{...t,size:i},!1,!1),h=u.w>0?o.w/u.w:1;c={w:o.w,h:u.h,d:u.d,draw:(f,m)=>`<g transform=\"translate(${C(f)} ${C(m)}) scale(${C(h)} 1)\">${u.draw(0,0)}</g>`}}else{let u=_a[s]??_a[e.chr]??(s||\"^\"),h=Yt(u,{...t,size:i},!1,!1),f=h.w>o.w*1.1&&o.w>0?o.w*1.1/h.w:1;c=f===1?h:{w:h.w*f,h:h.h,d:h.d,draw:(m,d)=>`<g transform=\"translate(${C(m)} ${C(d)}) scale(${C(f)} 1)\">${h.draw(0,0)}</g>`}}return e.below?{w:Math.max(o.w,c.w),h:o.h,d:o.d+a+c.h+c.d,draw:(u,h)=>o.draw(u+(Math.max(o.w,c.w)-o.w)/2,h)+c.draw(u+(Math.max(o.w,c.w)-c.w)/2,h+o.d+a+c.h)}:{w:Math.max(o.w,c.w),h:o.h+a+c.h,d:o.d,draw:(u,h)=>o.draw(u+(Math.max(o.w,c.w)-o.w)/2,h)+c.draw(u+(Math.max(o.w,c.w)-c.w)/2,h-o.h-a)}}case\"lim\":{let o=Ce(e.base,t),i=Ce(e.limit,$n(t,zi));return e.below?Dr([o,i],t.size*.08,0):Dr([i,o],t.size*.08,1)}case\"stack\":{let o=e.rows.map(i=>Ce(i,t));return Dr(o,t.size*.3,Math.floor((o.length-1)/2))}}}function J2(e,t,r,n){let o=Ce(e,{size:t,measure:n,color:r});return{w:o.w,h:o.h,d:o.d,svg:o.draw(0,0)}}var eg=\"'Cambria Math','Latin Modern Math','STIX Two Math','Times New Roman',serif\",Qa=[\"'PingFang SC'\",\"'Hiragino Sans GB'\",\"'Microsoft YaHei'\",\"sans-serif\"],tg={boldSizeAdjust:95.4,underscoreSizeAdjust:74.6},vs=\"WebPPT DengXian Latin\",ng=[`'${vs}'`,\"'Arial'\",\"'Helvetica'\",\"'Arimo'\",\"'Liberation Sans'\"],Ja=[\"Arial\",\"ArialMT\",\"Helvetica\",\"Arimo\",\"Arimo-Regular\",\"Liberation Sans\",\"LiberationSans\"],ec=[\"Arial Bold\",\"Arial-BoldMT\",\"Helvetica Bold\",\"Helvetica-Bold\",\"Arimo Bold\",\"Arimo-Bold\",\"Liberation Sans Bold\",\"LiberationSans-Bold\"];function rg(e){return/^(等线|dengxian)$/i.test(e.fonts[0]??\"\")}function og(){let{boldSizeAdjust:e,underscoreSizeAdjust:t}=tg,r=(n,o,i)=>`@font-face{font-family:'${vs}';src:${n.map(s=>`local('${s}')`).join(\",\")};font-weight:${o};${i}}`;return r(Ja,\"1 599\",\"\")+r(ec,\"600 1000\",`size-adjust:${e}%;`)+r(Ja,\"1 599\",`unicode-range:U+5F;size-adjust:${t}%;`)+r(ec,\"600 1000\",`unicode-range:U+5F;size-adjust:${t}%;`)}var Br=null,tc=!1;function gu(){if(tc)return Br;tc=!0;try{let e=document.createElement(\"canvas\").getContext(\"2d\");Br=e&&typeof e.measureText==\"function\"?e:null}catch{Br=null}return Br}function nc(e,t){let r=[],n=new Set;for(let o of e){let i=o.toLowerCase();o&&!n.has(i)&&(n.add(i),r.push(`'${Qr(o)}'`))}for(let o of t){let i=o.replace(/'/g,\"\").toLowerCase();n.has(i)||(n.add(i),r.push(o))}return r.join(\",\")}function ws(e){let t=rg(e)?[...ng,...Qa]:Qa;return e.fonts.length?nc(e.fonts,t):nc([\"Helvetica\",\"Arial\"],t)}function Jt(e,t){let r=e.size*t;return e.baseline?r*.65:r}function ig(e,t,r,n){let o=gu();return o?(o.font=`${r?\"italic \":\"\"}${n?\"700 \":\"400 \"}${t}px ${eg}`,o.measureText(e).width):e.length*t*.55}var Hr=new Map;function fo(e,t){var r;if(!((r=e.math)!=null&&r.length))return null;let n=e.size*t,o=`${n}|${e.color}|${JSON.stringify(e.math)}`,i=Hr.get(o);return i||(i=J2(e.math,n,e.color,ig),Hr.size>512&&Hr.clear(),Hr.set(o,i)),i}function to(e,t,r,n){var o,i;if(n){let a=n(e,t,r);return Number.isFinite(a)&&a>0?a:0}if((o=t.math)!=null&&o.length)return((i=fo(t,r))==null?void 0:i.w)??0;if(!e)return 0;let s=gu(),l=Jt(t,r);if(!s){let a=0;for(let c of e)a+=Y2(c)?l:l*.55;return a}return s.font=`${t.i?\"italic \":\"\"}${t.b?\"700 \":\"400 \"}${l}px ${ws(t)}`,s.measureText(e).width+(t.spacing??0)*e.length}var sg=e=>e.squeezed?e.width-e.squeeze:e.width;function lg(e){let t=[],r=e.run.text;for(let n=e.from;n<e.to;){let o=r.codePointAt(n),i=String.fromCodePoint(o),s=Math.min(e.to,n+i.length);t.push({from:n,to:s,display:e.run.caps===\"all\"?i.toUpperCase():i}),n=s}return t}function ag(e,t,r,n,o){let i=e.width-(r?e.squeeze:0);if(e.atomic)return[{offset:e.from,x:t},{offset:e.to,x:t+i}];let s=lg(e);if(!s.length)return[{offset:e.from,x:t}];let l=s.map(m=>to(m.display,e.run,n,o)),a=l.reduce((m,d)=>m+d,0),c=a>0?e.width/a:0,u=a>0?0:e.width/s.length,h=t,f=[{offset:s[0].from,x:h}];return s.forEach((m,d)=>{let p=r?Tn(m.display)*Jt(e.run,n):0;p&&Sn(m.display)&&(h-=p,f[f.length-1].x=h),h+=a>0?l[d]*c:u,p&&!Sn(m.display)&&(h-=p),f.push({offset:m.to,x:h})}),f[f.length-1].x=t+i,f}function cg(e,t,r,n,o,i){let s=t,l=e.segs.map(c=>{let u=c.width-(e.squeezed?xs(c.text)*Jt(c.run,r):0),h=[],f=s;if(o&&!c.bullet)for(let d of c.tokens??[]){let p=ag(d,f,e.squeezed,r,i);h.length&&p.length&&h[h.length-1].offset===p[0].offset&&p.shift(),h.push(...p),f+=d.width-(e.squeezed?d.squeeze:0)}let m={runIndex:c.runIndex??-1,from:c.from??0,to:c.to??0,text:c.text,x:s,width:u,naturalWidth:c.width,bullet:c.bullet===!0,atomic:c.atomic===!0,carets:c.bullet?[]:h};return s+=u,m});if(!n)return l;let a=t*2+sg(e);for(let c of l)c.carets.length?(c.carets=c.carets.map(u=>({...u,x:a-u.x})),c.x=Math.min(...c.carets.map(u=>u.x))):c.x=a-c.x-c.width;return l}var ug=new Set([\"textArchUp\",\"textArchDown\",\"textArchUpPour\",\"textArchDownPour\",\"textCircle\",\"textWave1\",\"textWave2\",\"textCurveUp\",\"textCurveDown\",\"textCanUp\",\"textCanDown\",\"textTriangle\",\"textChevron\",\"textInflate\",\"textDeflate\"]),no=e=>!!e&&ug.has(e);function hg(e){return e===\"dbl\"?\"double\":e===\"dotted\"||e===\"dottedHeavy\"?\"dotted\":e.startsWith(\"wavy\")?\"wavy\":e===\"dash\"||e===\"dashHeavy\"||e===\"dashLong\"||e===\"dashLongHeavy\"||e.startsWith(\"dotDash\")||e.startsWith(\"dotDotDash\")?\"dashed\":\"solid\"}var fg=e=>e===\"heavy\"||e.endsWith(\"Heavy\");function dg(e){let t=e.underline??(e.u?\"sng\":\"none\"),r=e.strikeType??(e.strike?\"sngStrike\":\"noStrike\"),n=e.underlineColor?`;text-decoration-color:${e.underlineColor}`:\"\",o=fg(t)?\";text-decoration-thickness:0.12em\":\"\",i=t===\"words\"?\";text-decoration-skip-spaces:all\":\"\";return{...t!==\"none\"?{underline:`text-decoration-line:underline;text-decoration-style:${hg(t)}${n}${o}${i}`}:{},...r!==\"noStrike\"?{strike:`text-decoration-line:line-through;text-decoration-style:${r===\"dblStrike\"?\"double\":\"solid\"}`}:{}}}function bu(e,t,r,n=t.color){let o=dg(t),i=e;return o.strike&&(i=`<${r} style=\"${o.strike}\">${i}</${r}>`),o.underline&&(i=r===\"tspan\"&&t.underlineColor?`<tspan style=\"${o.underline}\" fill=\"${oe(t.underlineColor)}\"><tspan fill=\"${oe(n)}\">${i}</tspan></tspan>`:`<${r} style=\"${o.underline}\">${i}</${r}>`),i}function ys(e){return{text:e.text,b:!1,i:!1,u:!1,strike:!1,size:e.size,color:e.color,fonts:[...e.fonts]}}function pg(e){if(e.caps!==\"all\"){let o=Array.from({length:e.text.length+1},(i,s)=>s);return{text:e.text,starts:o,ends:o}}let t=\"\",r=[0],n=[0];for(let o=0;o<e.text.length;){let i=e.text.codePointAt(o),s=String.fromCodePoint(i),l=o+s.length,a=s.toUpperCase(),c=t.length;t+=a;for(let u=0;u<=a.length;u++)r[c+u]=u===a.length?l:o,n[c+u]=u===0?o:l;o=l}return{text:t,starts:r,ends:n}}function xu(e,t,r){var n;let o=[];for(let i of e){let{run:s,runIndex:l,bullet:a}=i;if((n=s.math)!=null&&n.length){o.push({text:s.text,run:s,runIndex:l,from:0,to:s.text.length,bullet:a,atomic:!0,width:to(s.text,s,t,r),br:!1,space:!1,squeeze:0});continue}let c=pg(s),u=c.text;if(!u)continue;let h=u.matchAll(/\\n|[^\\S\\n]+|[⺀-鿿가-퟿＀-⦆ -〿]|[^\\s⺀-鿿가-퟿＀-⦆ -〿]+/g);for(let f of h){let m=f[0],d=f.index,p=d+m.length;o.push({text:m,run:s,runIndex:l,from:c.starts[d]??0,to:c.ends[p]??s.text.length,bullet:a,atomic:!1,width:m===`\n`?0:to(m,s,t,r),br:m===`\n`,space:/^[^\\S\\n]+$/.test(m),squeeze:xs(m)*Jt(s,t)})}}return o}var mg=e=>e.squeezed?e.width-e.squeeze:e.width-e.baseSqueeze;function gg(e){let t=[],r=[];for(let i of e.segs)for(let s of i.text)t.push(s),r.push(i.run.size);let n=pu(t,!1),o=0;for(let i=0;i<t.length;i++)o+=n.amount[i]*r[i];return o}function bg(e,t){var r;let n=e.segs[e.segs.length-1];n&&n.run===t.run&&n.to===t.from&&n.bullet===t.bullet?(n.text+=t.text,n.width+=t.width,n.to=t.to,n.atomic||(n.atomic=t.atomic),n.tokens.push(t)):e.segs.push({text:t.text,run:t.run,runIndex:t.runIndex,from:t.from,to:t.to,bullet:t.bullet,atomic:t.atomic,tokens:[t],width:t.width}),e.width+=t.width,e.squeeze+=t.squeeze;let o=(r=t.run.math)!=null&&r.length?fo(t.run,1):null;e.size=Math.max(e.size,o?(o.h+o.d)/1.2:t.run.size)}function vu(e,t,r,n){let o=[],i=()=>({segs:[],width:0,size:0,squeeze:0,squeezed:!1,baseSqueeze:0}),s=i(),l=Math.max(1,t-Math.max(0,n)),a=()=>{s.squeezed=s.width>l&&s.width-s.squeeze<=l,s.baseSqueeze=s.squeezed?0:gg(s),o.push(s),s=i(),l=Math.max(1,t)};for(let c of e){if(c.br){a();continue}let u=s.width+c.width-(s.squeeze+c.squeeze)<=l;if(r&&s.width>0&&!u){if(c.space)continue;a()}bg(s,c)}return a(),o}function xg(e,t,r,n,o){if(t<=0||!e.runs.some(s=>xs(s.text)>0))return!1;let i=e.runs.map((s,l)=>({run:s,runIndex:l,bullet:!1}));return vu(xu(i,r,o),t,n,e.indent).some(s=>s.squeezed)}var vg={left:\"start\",center:\"middle\",right:\"end\",justify:\"start\"};function wu(e,t,r,n){return e.paragraphs.map(o=>{let i=o.runs[0],s=o.bullet&&i?ys({...i,text:`${o.bullet} `,size:i.size*(o.bulletSize??1),color:o.bulletColor??i.color}):null,l=[...s?[{run:s,runIndex:-1,bullet:!0}]:[],...o.runs.map((h,f)=>({run:h,runIndex:f,bullet:!1}))],a=Math.max(1,t-Math.max(0,o.marL)),c=vu(xu(l,r,n),a,e.wrap,o.indent),u=c.map(h=>(h.size||i?.size||18)*r*(o.lineHeight??1.2));return{lines:c,para:o,before:o.spaceBefore,after:o.spaceAfter,lineHeights:u}})}function rc(e,t,r,n){return wu(e,t,r,n).reduce((o,i)=>o+i.before+i.after+i.lineHeights.reduce((s,l)=>s+l,0),0)}function wg(e,t,r,n,o={}){let[i,s,l,a]=o.insets??e.insets,c=o.vert??e.vert??\"horz\",u=c===\"vert\"||c===\"wordArtVert\"||c===\"vert270\"?r:t,h=c===\"vert\"||c===\"wordArtVert\"||c===\"vert270\"?t:r,f=Math.max(1,u-a-s),m=Math.max(1,h-i-l);if(rc(e,f,1,n)<=m)return 1;let d=yg,p=1;for(let b=0;b<12;b++){let v=(d+p)/2;rc(e,f,v,n)<=m?d=v:p=v}return d}var yg=.25;function $s(e,t,r,n,o={}){let i=Number.isFinite(e.fontScale)&&e.fontScale>0?e.fontScale:1;return!e.autoFitCompute||e.autoFitShape?i:i*wg(e,t,r,n,o)}function $g(e){let t=[];return e.forEach((r,n)=>{r.lines.forEach((o,i)=>{t.push({lp:r,line:o,paragraphIndex:n,li:i,h:r.lineHeights[i]+(i===0?r.before:0)+(i===r.lines.length-1?r.after:0),padTop:i===0?r.before:0})})}),t}var oc=e=>e.reduce((t,r)=>t+r.h,0);function Ms(e,t,r,n={}){var o,i;let s=n.vert??e.vert??\"horz\",l=Number.isFinite(n.scale)&&n.scale>0?n.scale:$s(e,t,r,n.measureText,{insets:n.insets,vert:n.vert}),a=e.autoFitShape?\"shape\":e.autoFitNormal||e.autoFitCompute?\"normal\":\"none\";if(s===\"vert\"||s===\"wordArtVert\"||s===\"vert270\"){let y=Ms({...e,vert:void 0},r,t,{...n,vert:\"horz\",scale:l}),[,$,,k]=n.insets??e.insets,A=y.lines.some(L=>L.x<k-1e-9||L.x+L.width>r-$+1e-9);return{...y,width:t,height:r,layoutWidth:r,layoutHeight:t,scale:l,autoFit:a,vert:s,transform:s===\"vert270\"?[0,-1,1,0,0,r]:[0,1,-1,0,t,0],unwarped:no((o=e.warp)==null?void 0:o.preset),overflow:y.overflow||A}}let[c,u,h,f]=n.insets??e.insets,m=Math.max(1,t-f-u),d=Math.max(1,Math.min(Math.floor(e.columns??1),16)),p=e.columnGap??0,b=d===1?m:Math.max(1,(m-p*(d-1))/d),v=$g(wu(e,b,l,n.measureText)),x=[[]];if(d===1)x[0].push(...v);else{let y=Math.max(1,r-c-h),$=0;for(let k of v)$>0&&$+k.h>y&&x.length<d&&(x.push([]),$=0),x[x.length-1].push(k),$+=k.h}let M=n.anchor??e.anchor,S=[];return x.forEach((y,$)=>{let k=c,A=oc(y);M===\"middle\"?k=c+Math.max(0,(r-c-h-A)/2):M===\"bottom\"&&(k=Math.max(c,r-h-A));let L=f+$*(b+p);for(let{lp:P,line:E,paragraphIndex:T,li:I,padTop:O}of y){k+=O;let R=P.lineHeights[I],z=k+R*.78,j=I===0?P.para.indent:0,F=L+Math.max(0,P.para.marL)+j,W=vg[P.para.align],V=W===\"middle\"?L+b/2:W===\"end\"?L+b:F,B=mg(E),q=W===\"middle\"?V-B/2:W===\"end\"?V-B:V,X=P.para.rtl===!0;S.push({paragraphIndex:T,lineIndex:I,columnIndex:$,x:q,y:k,width:B,naturalWidth:E.width,height:R,baseline:z,anchorX:V,align:P.para.align,rtl:X,squeezed:E.squeezed,segments:cg(E,q,l,X,n.includeCarets!==!1,n.measureText)}),k+=R+(I===P.lines.length-1?P.after:0)}}),{width:t,height:r,layoutWidth:t,layoutHeight:r,scale:l,autoFit:a,columns:d,vert:s,transform:[1,0,0,1,0,0],unwarped:no((i=e.warp)==null?void 0:i.preset),overflow:x.some(y=>oc(y)>r-c-h+1e-9),lines:S}}function Mg(e){return e.startsWith(\"slide:\")?`data-slide=\"${oe(e.slice(6))}\" tabindex=\"0\" role=\"link\" style=\"cursor:pointer;text-decoration:underline\"`:ci(e)?`href=\"${oe(e)}\" target=\"_blank\" rel=\"noopener noreferrer\"`:`data-unsafe-href=\"${oe(e)}\" aria-disabled=\"true\"`}function po(e,t){return t?`<a ${Mg(t)}>${e}</a>`:e}var kg={top:\"flex-start\",middle:\"center\",bottom:\"flex-end\"},Cg={vert:\"writing-mode:vertical-rl;\",vert270:\"writing-mode:vertical-rl;transform:rotate(180deg);\",wordArtVert:\"writing-mode:vertical-rl;text-orientation:upright;\"},Sg=[\"'PingFang SC'\",\"'Hiragino Sans GB'\",\"'Microsoft YaHei'\",\"sans-serif\"];function Eg(e,t){let r=[],n=new Set;for(let o of e){let i=o.toLowerCase();o&&!n.has(i)&&(n.add(i),r.push(`'${Qr(o)}'`))}for(let o of t){let i=o.replace(/'/g,\"\").toLowerCase();n.has(i)||(n.add(i),r.push(o))}return r.join(\",\")}function Tg(e,t){let r=e.size*t,n=`font-size:${C(r)}px;`;return n+=e.gradient?`background-image:${e.gradient};-webkit-background-clip:text;background-clip:text;color:transparent;`:`color:${e.color};`,e.b&&(n+=\"font-weight:700;\"),e.i&&(n+=\"font-style:italic;\"),e.fonts.length&&(n+=`font-family:${ws(e)};`),e.spacing&&(n+=`letter-spacing:${C(e.spacing)}px;`),e.caps===\"all\"?n+=\"text-transform:uppercase;\":e.caps===\"small\"&&(n+=\"font-variant:small-caps;\"),e.highlight&&(n+=`background-color:${e.highlight};`),e.outline&&(n+=`-webkit-text-stroke:${C(e.outline.width)}px ${e.outline.color};`),e.shadow&&(n+=`text-shadow:${e.shadow};`),e.baseline&&(n+=`vertical-align:${e.baseline>0?\"super\":\"sub\"};font-size:${C(r*.65)}px;`),n}function Lg(e,t){let r=[...e],n=\"\";for(let o=0;o<r.length;o++){let i=r[o];if(i===`\n`){n+=\"<br/>\";continue}let s=Tn(i);if(!s||!(t||o>0&&Tn(r[o-1])>0)){n+=oe(i);continue}n+=`<span style=\"margin-${Sn(i)?\"left\":\"right\"}:-${s}em\">${oe(i)}</span>`}return n}function yu(e,t,r,n){var o;if((o=e.math)!=null&&o.length){let a=fo(e,t);if(a&&a.w>0)return`<svg${n} xmlns=\"http://www.w3.org/2000/svg\" width=\"${C(a.w)}\" height=\"${C(a.h+a.d)}\" viewBox=\"0 ${C(-a.h)} ${C(a.w)} ${C(a.h+a.d)}\" style=\"display:inline-block;vertical-align:${C(-a.d)}px;overflow:visible\">${a.svg}</svg>`}let i=!e.text,s=e.text?Lg(e.text,r):\"&#160;\",l=`<span${n}${n&&i?' data-empty=\"true\"':\"\"} style=\"${oe(Tg(e,t))}\">${bu(s,e,\"span\")}</span>`;return po(l,e.link)}function Ag(e,t,r,n){let o=n.scale,i=Number.isFinite(o)&&o>0?o:$s(e,t,r,n.measureText,{insets:n.insets,vert:n.vert});return i===e.fontScale?e:{...e,fontScale:i}}function ic(e,t,r,n){return` data-r=\"${e}.${t}\" data-from=\"${r}\" data-to=\"${n}\"`}function Fi(e,t,r,n,o,i,s,l=!1){let a=yu({...e,text:t},r,n,o),c=`position:absolute;left:${C(i)}px;top:0;height:${C(s)}px;line-height:${C(s)}px;white-space:pre;`+(l?\"width:0;overflow:hidden;opacity:0;\":\"overflow:visible;\");return`<span data-engine-${l?\"semantic\":\"segment\"}=\"true\" style=\"${oe(c)}\">${a}</span>`}function Pg(e,t,r,n){var o;let i=e.paragraphs[t],s=r.map(p=>({line:p,pieces:[]}));if(!s.length)return`<div data-p=\"${t}\"></div>`;let l=i.runs.map(()=>0),a=i.runs.map(()=>!1),c=0,u=s[0],h=(p,b,v,x,M)=>{let S=i.runs[p],y=!S.text.length;v<=b&&(!y||a[p])||(a[p]||(a[p]=y),x.pieces.push(Fi(S,S.text.slice(b,v),n,x.line.squeezed,ic(t,p,b,v),M-x.line.x,x.line.height,!0)))},f=(p,b,v)=>{let x=i.runs[p];h(p,l[p],x.text.length,b,v),l[p]=x.text.length};for(let p of s){u=p;for(let b of p.line.segments){if(b.bullet){let y=i.runs[0];if(y){let $=ys({...y,text:b.text,size:y.size*(i.bulletSize??1),color:i.bulletColor??y.color});p.pieces.push(Fi($,b.text,n,p.line.squeezed,' data-bullet=\"true\" contenteditable=\"false\"',b.x-p.line.x,p.line.height))}continue}for(;c<b.runIndex;)f(c,p,b.x),c++;let v=i.runs[b.runIndex];if(!v)continue;h(b.runIndex,l[b.runIndex],b.from,p,b.x);let x=!!((o=v.math)!=null&&o.length),M=x?0:b.from,S=x?1:b.to;p.pieces.push(Fi(v,x?v.text:v.text.slice(b.from,b.to),n,p.line.squeezed,ic(t,b.runIndex,M,S),b.x-p.line.x,p.line.height)),l[b.runIndex]=b.to,c=b.runIndex}}let m=u.line.x+u.line.width;for(;c<i.runs.length;)f(c,u,m),c++;let d=s.map(({line:p,pieces:b})=>{let v=`position:absolute;left:${C(p.x)}px;top:${C(p.y)}px;width:${C(Math.max(1,p.width))}px;height:${C(p.height)}px;line-height:${C(p.height)}px;white-space:pre;overflow:visible;`+(p.rtl?\"direction:rtl;unicode-bidi:plaintext;\":\"\");return`<span data-engine-line=\"${t}.${p.lineIndex}\" data-x=\"${C(p.x)}\" data-y=\"${C(p.y)}\" style=\"${oe(v)}\">${b.join(\"\")}</span>`}).join(\"\");return`<div data-p=\"${t}\" style=\"position:absolute;inset:0\">${d}</div>`}function Ig(e,t,r,n){let o=Ms(e,t,r,{insets:n.insets,anchor:n.anchor,vert:n.vert,scale:n.scale,measureText:n.measureText}),i=e.paragraphs.map((d,p)=>o.lines.filter(b=>b.paragraphIndex===p)),s=e.paragraphs.map((d,p)=>Pg(e,p,i[p],o.scale)).join(\"\"),[l,a,c,u,h,f]=o.transform,m=`position:relative;width:${C(o.layoutWidth)}px;height:${C(o.layoutHeight)}px;box-sizing:border-box;white-space:pre;overflow:visible;transform-origin:0 0;transform:matrix(${C(l)},${C(a)},${C(c)},${C(u)},${C(h)},${C(f)});`;return`<div data-layout=\"engine\" data-font-scale=\"${C(o.scale)}\" data-autofit=\"${o.autoFit}\" xmlns=\"http://www.w3.org/1999/xhtml\" style=\"${oe(m)}\">${s}</div>`}function Ng(e,t,r,n={}){if(n.layout===\"engine\")return Ig(e,t,r,n);let o=Ag(e,t,r,n),[i,s,l,a]=n.insets??o.insets,c=o.fontScale,u=n.includeEditMarkers!==!1,h=o.paragraphs.map((b,v)=>{let x=b.runs[0],M=(x?.size??18)*c,S=o.wrap&&xg(b,t-a-s-Math.max(0,b.marL),c,!0,n.measureText),y=b.runs.map((L,P)=>yu(L,c,S,u?` data-r=\"${v}.${P}\"`:\"\")).join(\"\"),$=\"\",k=u?' data-bullet=\"true\" contenteditable=\"false\"':\"\";if(b.bulletImage)$=`<img${k} src=\"${oe(b.bulletImage)}\" style=\"height:${C(M*.8)}px;vertical-align:middle;margin-right:4px\"/>`;else if(b.bullet){let L=M*(b.bulletSize??1),P=b.bulletColor??x?.color??\"#000\",E=b.bulletFont&&!/wingdings|webdings|symbol/i.test(b.bulletFont)?`font-family:${Eg([b.bulletFont],Sg)};`:\"\";$=`<span${k} style=\"${oe(`font-size:${C(L)}px;color:${P};${E}`)}\">${oe(b.bullet)}&#160;</span>`}let A=`margin:${C(b.spaceBefore)}px 0 ${C(b.spaceAfter)}px 0;text-align:${b.align};padding-left:${C(Math.max(0,b.marL))}px;text-indent:${C(b.indent)}px;line-height:${b.lineHeight!==null?C(b.lineHeight):\"1.2\"};`+(b.rtl?\"direction:rtl;\":\"\")+`white-space:${o.wrap?\"pre-wrap\":\"pre\"};word-break:break-word;`;return`<div${u?` data-p=\"${v}\"`:\"\"} style=\"${oe(A)}\">${$}${y}</div>`}).join(\"\"),f=n.anchor??o.anchor,m=n.vert??o.vert,d=`width:${C(t)}px;height:${C(r)}px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:${kg[f]};`+(o.anchorCtr?\"align-items:center;\":\"\")+`padding:${C(i)}px ${C(s)}px ${C(l)}px ${C(a)}px;`+(o.columns?`column-count:${o.columns};column-gap:${C(o.columnGap??0)}px;display:block;`:\"\")+(m?Cg[m]??\"\":\"\")+\"overflow:visible;\",p=o.autoFitShape?\"shape\":e.autoFitNormal||e.autoFitCompute?\"normal\":\"none\";return`<div${u?` data-font-scale=\"${C(c)}\" data-autofit=\"${p}\"`:\"\"} xmlns=\"http://www.w3.org/1999/xhtml\" style=\"${oe(d)}\">${h}</div>`}var $u={left:\"start\",center:\"middle\",right:\"end\",justify:\"start\"},Mu=e=>e===\"start\"?\"end\":e===\"end\"?\"start\":e,Rg=(e,t)=>t.caps===\"all\"?e.toUpperCase():e;function Qi(e,t,r,n,o,i,s=!1,l){var a;if(e.vert===\"vert\"||e.vert===\"wordArtVert\"){let v=Qi({...e,vert:void 0},r,t,n,o,i,s,l);return`<g transform=\"translate(${C(t)} 0) rotate(90)\">${v}</g>`}if(e.vert===\"vert270\"){let v=Qi({...e,vert:void 0},r,t,n,o,i,s,l);return`<g transform=\"translate(0 ${C(r)}) rotate(-90)\">${v}</g>`}let[c,u,h,f]=o??e.insets,m=e.fontScale,d=Dg(e,t,r,n,[c,u,h,f],i??e.anchor,l);if(d)return d;let p=Ms(e,t,r,{insets:o,anchor:i,vert:\"horz\",scale:m,includeCarets:!1,measureText:l}),b=[];for(let v of p.lines){let x=e.paragraphs[v.paragraphIndex],M=x.runs[0],S=v.segments.map(E=>{let T=E.runIndex>=0?x.runs[E.runIndex]:ys({...M,text:`${x.bullet} `,size:M.size*(x.bulletSize??1),color:x.bulletColor??M.color});return{text:E.text,run:T,width:E.naturalWidth,paragraphIndex:v.paragraphIndex,runIndex:E.runIndex,from:E.from,to:E.to}});if(!S.length)continue;let y=[],$=[];for(let E of S){let T=[...E.text];$.push([y.length,y.length+T.length]),y.push(...T)}let k=pu(y,v.squeezed),A=S.map((E,T)=>{let[I,O]=$[T],R=0;for(let z=I;z<O;z++)R+=k.amount[z];return R*Jt(E.run,m)}),L=v.x;for(let[E,T]of S.entries()){if(T.run.highlight){let I=Jt(T.run,m);b.push(`<rect x=\"${C(L)}\" y=\"${C(v.baseline-I*.82)}\" width=\"${C(T.width)}\" height=\"${C(I*1.12)}\" fill=\"${oe(T.run.highlight)}\"/>`)}L+=T.width-A[E]}let P=$u[v.align];if(S.some(E=>{var T;return(T=E.run.math)==null?void 0:T.length})){let E=v.x;for(let[T,I]of S.entries()){let O=(a=I.run.math)!=null&&a.length?fo(I.run,m):null;O?b.push(po(`<g transform=\"translate(${C(E)} ${C(v.baseline)})\">${O.svg}</g>`,I.run.link)):b.push(`<text x=\"${C(E)}\" y=\"${C(v.baseline)}\" text-anchor=\"start\"`+(v.rtl?' direction=\"rtl\" unicode-bidi=\"embed\"':\"\")+` xml:space=\"preserve\">${ro(I,m,n,void 0,s)}</text>`),E+=I.width-A[T]}}else{let E=k.total>0?zg(S,$,k,m,n,s):S.map(T=>ro(T,m,n,void 0,s)).join(\"\");b.push(`<text x=\"${C(v.anchorX)}\" y=\"${C(v.baseline)}\" text-anchor=\"${v.rtl?Mu(P):P}\"`+(v.rtl?' direction=\"rtl\" unicode-bidi=\"embed\"':\"\")+` xml:space=\"preserve\">${E}</text>`)}}return b.join(\"\")}function Og(e,t){var r;let n=(r=e.match(/linear-gradient\\(([^]*)\\)$/))==null?void 0:r[1];if(!n)return null;let o=n.split(/,(?![^(]*\\))/).map(h=>h.trim()),i=o[0].match(/^(-?[\\d.]+)deg$/),s=i?Number(i[1]):180,l=(i?o.slice(1):o).map(h=>{let f=h.match(/^(.*?)\\s+([\\d.]+)%$/);return f?{color:f[1].trim(),pos:Number(f[2])}:{color:h,pos:null}}).map((h,f,m)=>({color:h.color,pos:h.pos??(m.length>1?f/(m.length-1)*100:0)}));if(!l.length)return null;let a=(s-90)*Math.PI/180,c=Math.cos(a)/2,u=Math.sin(a)/2;return`url(#${t(`<linearGradient id=\"__ID__\" x1=\"${C(.5-c)}\" y1=\"${C(.5-u)}\" x2=\"${C(.5+c)}\" y2=\"${C(.5+u)}\">`+l.map(h=>`<stop offset=\"${C(h.pos)}%\" stop-color=\"${oe(h.color)}\"/>`).join(\"\")+\"</linearGradient>\")})`}function zg(e,t,r,n,o,i=!1){return e.map((s,l)=>{let[a,c]=t[l],u=Jt(s.run,n),h=r.dx.slice(a,c).map(m=>m*u),f=h.some(m=>m!==0);return ro(s,n,o,f?h:void 0,i)}).join(\"\")}function ro(e,t,r,n,o=!1){let i=e.run,s=Jt(i,t),l=i.gradient?Og(i.gradient,r):null,a=[`font-size=\"${C(s)}\"`,`font-family=\"${oe(ws(i))}\"`,`fill=\"${oe(l??i.color)}\"`];i.b&&a.push('font-weight=\"700\"'),i.i&&a.push('font-style=\"italic\"'),i.spacing&&a.push(`letter-spacing=\"${C(i.spacing)}\"`),i.caps===\"small\"&&a.push('font-variant=\"small-caps\"'),i.baseline&&a.push(`dy=\"${C(i.baseline>0?-s*.45:s*.25)}\"`),i.outline&&a.push(`stroke=\"${oe(i.outline.color)}\" stroke-width=\"${C(i.outline.width)}\" paint-order=\"stroke\"`),n!=null&&n.some(h=>h!==0)&&a.push(`dx=\"${n.map(h=>C(h)).join(\" \")}\"`);let c=`<tspan${o&&e.runIndex!==void 0&&e.runIndex>=0?` data-r=\"${e.paragraphIndex}.${e.runIndex}\" data-from=\"${e.from}\" data-to=\"${e.to}\"`:\"\"} ${a.join(\" \")}>${bu(oe(e.text),i,\"tspan\",l??i.color)}</tspan>`,u=i.baseline?`${c}<tspan dy=\"${C(i.baseline>0?s*.45:-s*.25)}\"></tspan>`:c;return po(u,i.link)}var Ji=(e,t,r)=>Math.min(r,Math.max(t,e));function sc(e,t,r,n,o,i){let s=f=>{let m=f*Math.PI/180;return[e+r*Math.cos(m),t+n*Math.sin(m)]},[l,a]=s(o),[c,u]=s(i),h=Math.abs(i-o);return{d:`M${C(l)} ${C(a)}A${C(r)} ${C(n)} 0 ${h>180?1:0} ${i>o?1:0} ${C(c)} ${C(u)}`,len:h*Math.PI/180*((r+n)/2),fill:!0}}function lc(e,t,r=28){let n=[];for(let s=0;s<=r;s++)n.push([t*s/r,e(s/r)]);let o=`M${C(n[0][0])} ${C(n[0][1])}`,i=0;for(let s=0;s<r;s++){let l=n[Math.max(0,s-1)],a=n[s],c=n[s+1],u=n[Math.min(r,s+2)];o+=`C${C(a[0]+(c[0]-l[0])/6)} ${C(a[1]+(c[1]-l[1])/6)} ${C(c[0]-(u[0]-a[0])/6)} ${C(c[1]-(u[1]-a[1])/6)} ${C(c[0])} ${C(c[1])}`,i+=Math.hypot(c[0]-a[0],c[1]-a[1])}return{d:o,len:i}}var Fg={textCurveUp:.3,textCurveDown:-.3,textCanUp:.16,textCanDown:-.16,textDeflate:.22,textInflate:-.22,textTriangle:.2,textChevron:.34},jg=new Set([\"textTriangle\",\"textChevron\"]);function Ug(e,t,r,n,o,i){let s=r/2,l=n/2,a=Ji((t.adj??t.adj1??108e5)/6e4,20,350);if(e===\"textCircle\"){let d=Math.max(1,s-o*.3),p=Math.max(1,l-o*.3);return{d:`M${C(s)} ${C(l+p)}A${C(d)} ${C(p)} 0 1 1 ${C(s)} ${C(l-p)}A${C(d)} ${C(p)} 0 1 1 ${C(s)} ${C(l+p)}`,len:Math.PI*(d+p),fill:!0}}if(e.startsWith(\"textArch\")){let d=e.startsWith(\"textArchDown\"),p=e.endsWith(\"Pour\"),b=o*.4,v=Math.max(1,(s-o*.1)*(p?.72:1)),x=Math.max(1,(l-b)*(p?.72:1));return d?sc(s,l-b,v,x,90+a/2,90-a/2):sc(s,l+b,v,x,-90-a/2,-90+a/2)}let c=e===\"textWave1\"?1:e===\"textWave2\"?-1:0,u=i===\"top\"?o*.85:i===\"bottom\"?n-o*.2:l+o*.32;if(c){let d=n*.16*Ji((t.adj1??6250)/6250,.25,3);return lc(p=>u-c*d*Math.sin(2*Math.PI*p),r)}let h=Fg[e];if(h===void 0)return null;let f=h*n,m=jg.has(e)?d=>1-Math.abs(2*d-1):d=>Math.sin(Math.PI*d);return lc(d=>u+f/2-f*m(d),r)}function Dg(e,t,r,n,o,i,s){let l=e.warp;if(!l||!no(l.preset))return null;let[a,c,u,h]=o,f=Math.max(1,t-h-c),m=Math.max(1,r-a-u),d=e.fontScale,p=e.paragraphs.filter(x=>x.runs.some(M=>M.text.trim()));if(!p.length)return null;let b=m/p.length,v=[];return p.forEach((x,M)=>{let S=x.runs.filter(F=>F.text);if(!S.length)return;let y=Math.max(...S.map(F=>F.size),1)*d,$=Ug(l.preset,l.adj,f,b,y,p.length>1?\"middle\":i);if(!$)return;let k=S.map(F=>({text:Rg(F.text,F).replace(/\\n/g,\" \"),run:F,width:to(F.text,F,d,s)})),A=k.reduce((F,W)=>F+W.width,0),L=A>$.len?Math.max(.25,$.len/A):1,P=A*L,E=k.reduce((F,W)=>F+W.text.length,0),T=$.fill&&E>1&&P>0?(P*Ji($.len/P,1,2.2)-P)/E:0,I=n(`<path id=\"__ID__\" fill=\"none\" d=\"${$.d}\"/>`),O=$u[x.align],R=x.rtl===!0,z=O===\"end\"?\"100%\":O===\"middle\"?\"50%\":\"0%\",j=k.map(F=>ro(F,d*L,n)).join(\"\");v.push(`<g transform=\"translate(${C(h)} ${C(a+b*M)})\"><text text-anchor=\"${R?Mu(O):O}\"`+(T>.05?` letter-spacing=\"${C(T)}\"`:\"\")+(R?' direction=\"rtl\" unicode-bidi=\"embed\"':\"\")+` xml:space=\"preserve\"><textPath href=\"#${I}\" xlink:href=\"#${I}\" startOffset=\"${z}\">${j}</textPath></text></g>`)}),v.length?v.join(\"\"):null}var Ln=1/1e5,ac=.01;function Bg(e,t,r,n,o,i,s){let l=e.crop??{l:0,t:0,r:0,b:0},a=n/Math.max(1-l.l-l.r,Ln),c=o/Math.max(1-l.t-l.b,Ln),u=`<image href=\"${oe(e.src)}\" x=\"${C(-l.l*a)}\" y=\"${C(-l.t*c)}\" width=\"${C(a)}\" height=\"${C(c)}\" preserveAspectRatio=\"none\"`+(e.alpha!==void 0?` opacity=\"${C(e.alpha)}\"`:\"\")+\"/>\",h=i||s?`<g transform=\"translate(${C(i?n:0)} ${C(s?o:0)}) scale(${i?-1:1} ${s?-1:1})\">${u}</g>`:u;return`<svg x=\"${C(t)}\" y=\"${C(r)}\" width=\"${C(n)}\" height=\"${C(o)}\" overflow=\"hidden\">${h}</svg>`}function Hg(e){switch(e??\"tl\"){case\"t\":return[.5,0];case\"tr\":return[1,0];case\"l\":return[0,.5];case\"ctr\":return[.5,.5];case\"r\":return[1,.5];case\"bl\":return[0,1];case\"b\":return[.5,1];case\"br\":return[1,1];default:return[0,0]}}function Wg(e,t,r,n,o){let i=e.tile,s=e.crop??{l:0,t:0,r:0,b:0},l=Math.max(1-s.l-s.r,Ln),a=Math.max(1-s.t-s.b,Ln),c=i.sourceWidth??n*.25,u=i.sourceHeight??o*.25,h=Math.max(ac,c*l*i.sx),f=Math.max(ac,u*a*i.sy),[m,d]=Hg(i.algn),p=(n-h)*m+(i.tx??0),b=(o-f)*d+(i.ty??0),v=i.flip===\"x\"||i.flip===\"xy\",x=i.flip===\"y\"||i.flip===\"xy\",M=v?2:1,S=x?2:1,y=\"\";for(let $=0;$<S;$++)for(let k=0;k<M;k++)y+=Bg(e,k*h,$*f,h,f,k===1,$===1);t.defs.push(`<pattern id=\"${r}\" patternUnits=\"userSpaceOnUse\" x=\"${C(p)}\" y=\"${C(b)}\" width=\"${C(h*M)}\" height=\"${C(f*S)}\">${y}</pattern>`)}function Vg(e,t,r,n){let o=t.nextId(\"p\");if(e.tile)Wg(e,t,o,r,n);else if(e.crop&&(e.crop.l||e.crop.t||e.crop.r||e.crop.b)){let i=e.crop,s=r/Math.max(1-i.l-i.r,Ln),l=n/Math.max(1-i.t-i.b,Ln);t.defs.push(`<pattern id=\"${o}\" patternUnits=\"userSpaceOnUse\" width=\"${C(r)}\" height=\"${C(n)}\"><image href=\"${oe(e.src)}\" x=\"${C(-i.l*s)}\" y=\"${C(-i.t*l)}\" width=\"${C(s)}\" height=\"${C(l)}\" preserveAspectRatio=\"none\"`+(e.alpha!==void 0?` opacity=\"${C(e.alpha)}\"`:\"\")+\"/></pattern>\")}else t.defs.push(`<pattern id=\"${o}\" patternUnits=\"userSpaceOnUse\" width=\"${C(r)}\" height=\"${C(n)}\"><image href=\"${oe(e.src)}\" width=\"${C(r)}\" height=\"${C(n)}\" preserveAspectRatio=\"none\"`+(e.alpha!==void 0?` opacity=\"${C(e.alpha)}\"`:\"\")+\"/></pattern>\");return`url(#${o})`}var cc={pct5:\"M0 0h1v1H0z\",pct10:\"M0 0h1v1H0z\",pct20:\"M0 0h2v2H0z\",pct25:\"M0 0h2v2H0z\",pct30:\"M0 0h2v2H0zM2 2h2v2H2z\",pct40:\"M0 0h2v2H0zM2 2h2v2H2z\",pct50:\"M0 0h2v2H0zM2 2h2v2H2z\",pct60:\"M0 0h3v3H0z\",pct70:\"M0 0h3v3H0z\",pct75:\"M0 0h3v3H0z\",pct80:\"M0 0h4v4H0z\",pct90:\"M0 0h4v4H0z\",ltHorz:\"M0 2h8v1H0z\",horz:\"M0 2h8v2H0z\",dkHorz:\"M0 1h8v3H0z\",ltVert:\"M2 0h1v8H0z\",vert:\"M2 0h2v8H2z\",dkVert:\"M1 0h3v8H1z\",ltUpDiag:\"M0 8L8 0M-2 2L2 -2M6 10L10 6\",upDiag:\"M0 8L8 0M-2 2L2 -2M6 10L10 6\",ltDnDiag:\"M0 0L8 8M-2 6L2 10M6 -2L10 2\",dnDiag:\"M0 0L8 8M-2 6L2 10M6 -2L10 2\",smGrid:\"M0 0h8v1H0zM0 0h1v8H0z\",lgGrid:\"M0 0h8v1H0zM0 0h1v8H0z\",cross:\"M0 3h8v2H0zM3 0h2v8H3z\",diagCross:\"M0 0L8 8M8 0L0 8\",trellis:\"M0 0L8 8M8 0L0 8\",wave:\"M0 4Q2 2 4 4T8 4\"},Gg={pct5:8,pct10:6,pct20:5,pct25:4,pct30:4,pct40:4,pct50:4,pct60:4,pct70:4,pct75:4,pct80:5,pct90:5};function ks(e,t,r,n){switch(e.type){case\"none\":return\"none\";case\"solid\":return e.color;case\"gradient\":{let o=t.nextId(\"g\"),i=e.stops.map(s=>`<stop offset=\"${C(Math.max(0,Math.min(1,s.pos))*100)}%\" stop-color=\"${s.color}\"/>`).join(\"\");if(e.radial)t.defs.push(`<radialGradient id=\"${o}\" cx=\"50%\" cy=\"50%\" r=\"70%\">${i}</radialGradient>`);else{let s=e.angle*Math.PI/180,l=Math.cos(s)/2,a=Math.sin(s)/2;t.defs.push(`<linearGradient id=\"${o}\" x1=\"${C(.5-l)}\" y1=\"${C(.5-a)}\" x2=\"${C(.5+l)}\" y2=\"${C(.5+a)}\">${i}</linearGradient>`)}return`url(#${o})`}case\"image\":return Vg(e,t,r,n);case\"pattern\":{let o=t.nextId(\"pt\"),i=Gg[e.preset]??8,s=cc[e.preset]??cc.pct50,l=/^[MLQT].*[ML]/.test(s)&&!s.includes(\"h\")&&!s.includes(\"v\");return t.defs.push(`<pattern id=\"${o}\" patternUnits=\"userSpaceOnUse\" width=\"${i}\" height=\"${i}\"><rect width=\"${i}\" height=\"${i}\" fill=\"${e.bg}\"/><path d=\"${s}\" ${l?`stroke=\"${e.fg}\" stroke-width=\"1\" fill=\"none\"`:`fill=\"${e.fg}\"`}/></pattern>`),`url(#${o})`}}}function Xg(e,t){if(!e)return\"\";let r=[],n=\"SourceGraphic\",o=0,i=a=>{let c=`e${++o}`;r.push(a.replace(/__IN__/g,n).replace(/__OUT__/g,c)),n=c};e.glow&&i(`<feDropShadow in=\"__IN__\" dx=\"0\" dy=\"0\" stdDeviation=\"${C(e.glow.radius/2)}\" flood-color=\"${e.glow.color}\" flood-opacity=\"1\" result=\"__OUT__\"/>`);let s=e.shadow;if(s&&!s.inner&&i(`<feDropShadow in=\"__IN__\" dx=\"${C(s.dx)}\" dy=\"${C(s.dy)}\" stdDeviation=\"${C(s.blur/2)}\" flood-color=\"${s.color}\" result=\"__OUT__\"/>`),s!=null&&s.inner){let a=`is${o}`;r.push(`<feComponentTransfer in=\"SourceAlpha\" result=\"${a}a\"><feFuncA type=\"table\" tableValues=\"1 0\"/></feComponentTransfer><feGaussianBlur in=\"${a}a\" stdDeviation=\"${C(s.blur/2)}\" result=\"${a}b\"/><feOffset in=\"${a}b\" dx=\"${C(s.dx)}\" dy=\"${C(s.dy)}\" result=\"${a}c\"/><feComposite in=\"${a}c\" in2=\"SourceAlpha\" operator=\"in\" result=\"${a}d\"/><feFlood flood-color=\"${s.color}\" result=\"${a}e\"/><feComposite in=\"${a}e\" in2=\"${a}d\" operator=\"in\" result=\"${a}f\"/>`),i(`<feComposite in=\"${a}f\" in2=\"__IN__\" operator=\"over\" result=\"__OUT__\"/>`)}if(e.softEdge&&(r.push(`<feGaussianBlur in=\"SourceAlpha\" stdDeviation=\"${C(e.softEdge/2)}\" result=\"se\"/><feComponentTransfer in=\"se\" result=\"seMask\"><feFuncA type=\"linear\" slope=\"2.2\" intercept=\"-0.6\"/></feComponentTransfer>`),i('<feComposite in=\"__IN__\" in2=\"seMask\" operator=\"in\" result=\"__OUT__\"/>')),!r.length)return\"\";let l=t.nextId(\"f\");return t.defs.push(`<filter id=\"${l}\" x=\"-30%\" y=\"-30%\" width=\"160%\" height=\"160%\">${r.join(\"\")}</filter>`),` filter=\"url(#${l})\"`}function Yg(e,t,r){var n;let o=(n=e.effects)==null?void 0:n.reflection;if(!o)return\"\";let i=Math.max(0,Math.min(1,o.alpha));if(i<=0||e.h<=0)return\"\";let s=Math.max(0,o.distance),l=e.h+s,a=Math.max(1,e.h*Math.max(.02,Math.min(1,o.size))),c=-e.w*.25,u=e.w*1.5,h=r.nextId(\"rg\"),f=r.nextId(\"rm\");return r.defs.push(`<linearGradient id=\"${h}\" gradientUnits=\"userSpaceOnUse\" x1=\"0\" y1=\"${C(l)}\" x2=\"0\" y2=\"${C(l+a)}\"><stop offset=\"0\" stop-color=\"#fff\" stop-opacity=\"${C(i)}\"/><stop offset=\"1\" stop-color=\"#fff\" stop-opacity=\"0\"/></linearGradient>`),r.defs.push(`<mask id=\"${f}\" maskUnits=\"userSpaceOnUse\" x=\"${C(c)}\" y=\"${C(l)}\" width=\"${C(u)}\" height=\"${C(a)}\"><rect x=\"${C(c)}\" y=\"${C(l)}\" width=\"${C(u)}\" height=\"${C(a)}\" fill=\"url(#${h})\"/></mask>`),`<g mask=\"url(#${f})\" aria-hidden=\"true\"><use href=\"#${t}\" xlink:href=\"#${t}\" transform=\"translate(0 ${C(2*e.h+s)}) scale(1 -1)\"/></g>`}var Xn;function es(e){let t=e.match(/rgba?\\(([^)]+)\\)/);if(t){let n=t[1].split(\",\").map(Number);return[n[0]||0,n[1]||0,n[2]||0]}let r=e.replace(\"#\",\"\");return r.length>=6?[parseInt(r.slice(0,2),16),parseInt(r.slice(2,4),16),parseInt(r.slice(4,6),16)]:[128,128,128]}function oo(e,t,r){let n=es(e),o=es(t);return`rgb(${n.map((i,s)=>Math.round(i*(1-r)+o[s]*r)).join(\",\")})`}function qg(e,t,r){let n=Math.min(t.extrusion??0,Math.max(e.w,e.h));if(n<=.5)return\"\";let o=((t.rotY??0)||35)*Math.PI/180,i=Math.cos(o)*n,s=Math.sin(((t.rotX??0)||20)*Math.PI/180)*n,l=t.extrusionColor??oo(r,\"#000\",.32),a=Math.max(2,Math.min(14,Math.round(n))),c=[];for(let u=a;u>=1;u--){let h=u/a;c.push(`<g transform=\"translate(${C(i*h)} ${C(s*h)})\"><path d=\"${e.path}\" fill=\"${l}\" fill-rule=\"nonzero\"/></g>`)}return c.join(\"\")}function Zg(e,t,r,n){let o=t.bevelTop??0;if(o<=.3||!e.path)return\"\";let i=oo(r,\"#fff\",.5),s=oo(r,\"#000\",.25),l=Math.min(o*2,Math.min(e.w,e.h)/3),a=n.nextId(\"bv\");return n.defs.push(`<clipPath id=\"${a}\"><path d=\"${e.path}\"/></clipPath>`),`<g clip-path=\"url(#${a})\"><path d=\"${e.path}\" fill=\"none\" stroke=\"${i}\" stroke-width=\"${C(l)}\" stroke-linejoin=\"round\" opacity=\"0.55\"/><path d=\"${e.path}\" fill=\"none\" stroke=\"${s}\" stroke-width=\"${C(l/3)}\" stroke-linejoin=\"round\" opacity=\"0.35\" transform=\"translate(0 ${C(l/3)})\"/></g>`}function _g(e,t){let[r,n]=e.map(es),o=r.flatMap((i,s)=>[...[.213,.715,.072].map(l=>l*(n[s]-i)/255),0,i/255]);return`<filter id=\"${t}\" color-interpolation-filters=\"sRGB\"><feColorMatrix values=\"${o.join(\" \")} 0 0 0 1 0\"/></filter>`}var ts={m:[\"x\",\"y\"],l:[\"x\",\"y\"],t:[\"x\",\"y\"],h:[\"x\"],v:[\"y\"],c:[\"x\",\"y\",\"x\",\"y\",\"x\",\"y\"],s:[\"x\",\"y\",\"x\",\"y\"],q:[\"x\",\"y\",\"x\",\"y\"],a:[\"rx\",\"ry\",\"angle\",\"flag\",\"flag\",\"x\",\"y\"],z:[]},ji=e=>e===\" \"||e===\"\t\"||e===`\n`||e===\"\\r\"||e===\"\\f\",Wr=e=>e>=\"0\"&&e<=\"9\";function Kg(e){let t=[],r=0,n=l=>new Error(`\\u8DEF\\u5F84\\u6570\\u636E\\u65E0\\u6548\\uFF1A\\u4F4D\\u7F6E ${r} \\u671F\\u671B${l}\\uFF0C\\u5B9E\\u9645\\u4E3A\\u300C${e.slice(r,r+12)}\\u300D\\uFF08${e.slice(0,60)}\\uFF09`),o=()=>{for(;r<e.length&&ji(e[r]);)r++;if(e[r]===\",\")for(r++;r<e.length&&ji(e[r]);)r++},i=()=>{let l=r;(e[r]===\"+\"||e[r]===\"-\")&&r++;let a=0;for(;Wr(e[r]);)r++,a++;if(e[r]===\".\")for(r++;Wr(e[r]);)r++,a++;if(!a)throw r=l,n(\"\\u6570\\u503C\");if(e[r]===\"e\"||e[r]===\"E\"){let c=r;if(r++,(e[r]===\"+\"||e[r]===\"-\")&&r++,!Wr(e[r]))throw r=c,n(\"\\u6307\\u6570\");for(;Wr(e[r]);)r++}return Number(e.slice(l,r))},s=()=>{if(e[r]!==\"0\"&&e[r]!==\"1\")throw n(\"\\u5F27\\u7EBF\\u6807\\u5FD7 0 \\u6216 1\");return Number(e[r++])};for(;r<e.length&&ji(e[r]);)r++;for(;r<e.length;){let l=e[r],a=ts[l.toLowerCase()];if(!a)throw n(\"\\u8DEF\\u5F84\\u547D\\u4EE4\");if(!t.length&&l.toLowerCase()!==\"m\")throw n(\"\\u4EE5 M/m \\u5F00\\u5934\");if(r++,o(),!a.length){t.push({command:l,values:[]});continue}let c=l;do{let u=a.map((h,f)=>(f&&o(),h===\"flag\"?s():i()));t.push({command:c,values:u}),c===\"M\"?c=\"L\":c===\"m\"&&(c=\"l\"),o()}while(r<e.length&&!ts[e[r].toLowerCase()])}return t}function Qg(e,t,r,n,o){e=Math.abs(e),t=Math.abs(t);let i=r*Math.PI/180,s=Math.cos(i),l=Math.sin(i);if(n===o||l===0||s===0){let m=s===0&&l!==0;return[e*(m?o:n),t*(m?n:o),r]}let a=(e*e*s*s+t*t*l*l)*n*n,c=(e*e-t*t)*s*l*n*o,u=(e*e*l*l+t*t*s*s)*o*o,h=(a+u)/2,f=Math.hypot((a-u)/2,c);return[Math.sqrt(h+f),Math.sqrt(Math.max(0,h-f)),Math.atan2(2*c,a-u)/2*180/Math.PI]}function uc(e,t,r){if(!(Number.isFinite(t)&&t>0&&Number.isFinite(r)&&r>0))throw new Error(`\\u8DEF\\u5F84\\u7F29\\u653E\\u6BD4\\u4F8B\\u5FC5\\u987B\\u662F\\u6B63\\u6709\\u9650\\u6570\\uFF1Akx=${t}\\uFF0Cky=${r}`);return Kg(e).map(({command:n,values:o})=>{let i=ts[n.toLowerCase()];if(i.includes(\"rx\")){let[s,l,a]=Qg(o[0],o[1],o[2],t,r);o=[s,l,a,o[3],o[4],o[5]*t,o[6]*r]}else o=o.map((s,l)=>s*(i[l]===\"y\"?r:t));return o.length?`${n} ${o.map(C).join(\" \")}`:n}).join(\" \")}function Jg(e){let t=(e%360+360)%360;return t>=45&&t<135||t>=225&&t<315}function hc(e,t,r){let n=e||1;if(!Number.isFinite(n)||n<=0)throw new Error(`\\u7EC4\\u5408 ${r.name??r.id??\"\"} \\u7684 ${t} \\u7F29\\u653E\\u65E0\\u6548\\uFF1A${e}`);return n}function ku(e,t){let r=hc(e.scaleX,\"scaleX\",e),n=hc(e.scaleY,\"scaleY\",e),o=Jg(t.rot),i=o?n:r,s=o?r:n,l=t.w*i,a=t.h*s;return{x:(t.x+t.w/2-e.childX)*r-l/2,y:(t.y+t.h/2-e.childY)*n-a/2,w:l,h:a,kx:i,ky:s}}function eb(e,t){let{kx:r,ky:n,...o}=ku(e,t);if(r===1&&n===1)return{...t,...o};switch(t.kind){case\"shape\":return{...t,...o,path:t.path&&uc(t.path,r,n)};case\"image\":return{...t,...o,...t.clipPath?{clipPath:uc(t.clipPath,r,n)}:{}};case\"group\":return{...t,...o,scaleX:(t.scaleX||1)*r,scaleY:(t.scaleY||1)*n};case\"table\":return{...t,...o,colWidths:t.colWidths.map(i=>i*r),rows:t.rows.map(i=>({...i,height:i.height*n}))};case\"unsupported\":return{...t,...o}}}var tb=0,nb=e=>`${e}${++tb}`;function rb(e){return e.replace(/^[0-9-]|[^A-Za-z0-9-]/gu,t=>`_u${t.codePointAt(0).toString(16)}_`)}var fc=1/1e5;function ob(e){let t=e.textMode??\"html\",r=0,n=e.idPrefix===void 0?null:rb(e.idPrefix);return{defs:[],nextId:n===null?nb:o=>`${n}${o}${++r}`,textMode:t,measureText:e.measureText,media:e.media===\"player\"&&t===\"html\"?\"player\":\"badge\",hidden:e.hiddenElements&&e.hiddenElements.length?new Set(e.hiddenElements):null,includeEditMarkers:e.includeEditMarkers===!0,resolveLink:o=>o}}function ib(e,t){let r=e.slides.indexOf(t)+1;return n=>{if(!n)return n;if(n.startsWith(\"slide-part:\"))try{let o=decodeURIComponent(n.slice(11)),i=e.slides.findIndex(s=>s.editInfo&&s.editInfo.origin.part===o);return i<0?n:`slide:${i+1}`}catch{return n}return n.startsWith(\"slide:\")?n===\"slide:next\"?`slide:${r+1}`:n===\"slide:previous\"?`slide:${r-1}`:n===\"slide:first\"?\"slide:1\":n===\"slide:last\"?`slide:${e.slides.length}`:n:n}}function Cu(e,t,r={}){let n=ob(r);n.resolveLink=ib(e,t);let o=\"#fff\";try{t.background&&(o=ks(t.background,n,e.width,e.height))}catch{}let i=`<rect width=\"${C(e.width)}\" height=\"${C(e.height)}\" fill=\"${o}\"/>`,s=t.elements.map(u=>Su(u,n)).join(\"\")+(r.showComments?gb(t.comments,e.width,e.height):\"\"),l=(e.embeddedFonts??[]).map(u=>`@font-face{font-family:'${Qr(u.family)}';src:url('${Qr(u.src)}');font-weight:${u.bold?700:400};font-style:${u.italic?\"italic\":\"normal\"};}`).join(\"\")+(s.includes(vs)?og():\"\"),a=l?`<style>${l}</style>`:\"\",c=r.includeNotes&&t.notes?`<desc>${oe(t.notes)}</desc>`:\"\";return`<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 ${C(e.width)} ${C(e.height)}\" font-family=\"Helvetica, Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif\">`+c+`<defs>${a}${n.defs.join(\"\")}</defs>`+i+s+\"</svg>\"}function mo(e,t,r){let n=Xg(e.effects,r);if(!e.effects||!e.effects.reflection)return`<g transform=\"${io(e)}\"${n}>${t}</g>`;let o=r.nextId(\"rc\"),i=`<g id=\"${o}\">${t}</g>`;return`<g transform=\"${io(e)}\">`+Yg(e,o,r)+(n?`<g${n}>${i}</g>`:i)+\"</g>\"}var sb={none:{d:\"\",fill:!1},triangle:{d:\"M0 0 L10 5 L0 10 z\",fill:!0},stealth:{d:\"M0 0 L10 5 L0 10 L3 5 z\",fill:!0},diamond:{d:\"M0 5 L5 0 L10 5 L5 10 z\",fill:!0},oval:{d:\"M0 5 a5 5 0 1 0 10 0 a5 5 0 1 0 -10 0\",fill:!0},arrow:{d:\"M0 0 L10 5 L0 10\",fill:!1}};function dc(e,t,r,n){let o=sb[e.type];if(!o.d)return\"\";let i=r.nextId(\"m\"),s=Math.max(1,e.h),l=Math.max(1,e.w);return r.defs.push(`<marker id=\"${i}\" viewBox=\"0 0 10 10\" refX=\"${n?0:10}\" refY=\"5\" markerWidth=\"${C(s)}\" markerHeight=\"${C(l)}\" markerUnits=\"strokeWidth\" orient=\"${n?\"auto-start-reverse\":\"auto\"}\"><path d=\"${o.d}\" ${o.fill?`fill=\"${t}\"`:`fill=\"none\" stroke=\"${t}\" stroke-width=\"1.6\"`}/></marker>`),`url(#${i})`}function Cs(e,t){if(!e)return\"\";let r=` stroke=\"${e.color}\" stroke-width=\"${C(e.width)}\"`;if(e.dash&&(r+=` stroke-dasharray=\"${e.dash.map(C).join(\" \")}\"`),e.cap&&(r+=` stroke-linecap=\"${e.cap}\"`),e.join&&(r+=` stroke-linejoin=\"${e.join}\"`),e.head){let n=dc(e.head,e.color,t,!0);n&&(r+=` marker-start=\"${n}\"`)}if(e.tail){let n=dc(e.tail,e.color,t,!1);n&&(r+=` marker-end=\"${n}\"`)}return r}function io(e){return`${e.rot?`rotate(${C(e.rot)} ${C(e.x+e.w/2)} ${C(e.y+e.h/2)}) `:\"\"}translate(${C(e.x)} ${C(e.y)})`}function go(e){return!e.flipH&&!e.flipV?\"\":`translate(${C(e.w/2)} ${C(e.h/2)}) scale(${e.flipH?-1:1} ${e.flipV?-1:1}) translate(${C(-e.w/2)} ${C(-e.h/2)})`}function lb(e,t){try{let r=t instanceof Error?t.message:String(t),n=e.name?`${e.kind} \\xB7 ${e.name}`:e.kind;return`<g transform=\"${io(e)}\" data-render-error=\"1\"><title>${oe(n)} \\u6E32\\u67D3\\u5931\\u8D25\\uFF1A${oe(r.slice(0,200))}</title><rect width=\"${C(e.w)}\" height=\"${C(e.h)}\" fill=\"rgba(220,38,38,0.06)\" stroke=\"#dc2626\" stroke-width=\"1\" stroke-dasharray=\"5 4\"/></g>`}catch{return\"\"}}function Su(e,t,r){var n;let o;try{let i=r?eb(r,e):e;switch(i.kind){case\"shape\":o=ab(i,t);break;case\"image\":o=fb(i,t);break;case\"group\":o=db(i,t);break;case\"table\":o=mb(i,t);break;case\"unsupported\":o=bb(i);break}}catch(i){o=lb(r?{...e,...ku(r,e)}:e,i)}if(t.includeEditMarkers!==null&&(e.id!==void 0||t.includeEditMarkers)){let i=e.id!==void 0&&(n=t.hidden)!=null&&n.has(e.id)?\"visibility:hidden;\":\"\";o=`<g data-el=\"${e.id??\"\"}\" style=\"${i}transform-box:fill-box;transform-origin:center\">${o}</g>`}return po(o,t.resolveLink(e.link))}function ab(e,t){var r,n;let o=\"\",i,s=e.scene3d;if(e.path){let l=e.openGeom?\"none\":e.fill?ks(e.fill,t,e.w,e.h):\"none\",a=((r=e.fill)==null?void 0:r.type)===\"solid\"?e.fill.color:((n=e.fill)==null?void 0:n.type)===\"gradient\"&&e.fill.stops.length?e.fill.stops[0].color:\"rgb(128,128,128)\";s&&!Xn&&(o+=qg(e,s,a));let c=s!=null&&s.contourWidth?` stroke=\"${s.contourColor??oo(a,\"#000\",.45)}\" stroke-width=\"${C(s.contourWidth)}\"`:Cs(e.stroke,t);i=`<path d=\"${e.path}\" fill=\"${l}\" fill-rule=\"nonzero\"${c}/>`;let u=go(e);o+=u?`<g transform=\"${u}\">${i}</g>`:i,s&&!Xn&&(o+=Zg(e,s,a,t))}return e.text&&(o+=Tu(e.text,e.w,e.h,s&&Xn?{...t,textMode:\"svg\"}:t)),s&&Xn&&(o=Xn(e,o,t,i)),mo(e,o,t)}function cb(e,t){let r=Math.max(6,Math.min(Math.min(e.w,e.h)*.22,34)),n=e.w/2,o=e.h/2,i=`<circle cx=\"${C(n)}\" cy=\"${C(o)}\" r=\"${C(r)}\" fill=\"rgba(17,17,17,0.55)\" stroke=\"rgba(255,255,255,0.92)\" stroke-width=\"${C(Math.max(1,r*.09))}\"/>`,s;if(t.kind===\"audio\"){let l=r*.42,a=n-l*1.15;s=`<path d=\"M${C(a)} ${C(o-l*.42)} H${C(a+l*.62)} L${C(a+l*1.5)} ${C(o-l)} V${C(o+l)} L${C(a+l*.62)} ${C(o+l*.42)} H${C(a)} Z\" fill=\"#fff\"/><path d=\"M${C(n+l*.65)} ${C(o-l*.6)} A ${C(l*.75)} ${C(l*.75)} 0 0 1 ${C(n+l*.65)} ${C(o+l*.6)}\" fill=\"none\" stroke=\"#fff\" stroke-width=\"${C(Math.max(1,l*.26))}\" stroke-linecap=\"round\"/><path d=\"M${C(n+l*1.15)} ${C(o-l*1.05)} A ${C(l*1.35)} ${C(l*1.35)} 0 0 1 ${C(n+l*1.15)} ${C(o+l*1.05)}\" fill=\"none\" stroke=\"#fff\" stroke-width=\"${C(Math.max(1,l*.26))}\" stroke-linecap=\"round\" opacity=\"0.85\"/>`}else{let l=r*.46;s=`<path d=\"M${C(n-l*.62)} ${C(o-l)} L${C(n+l)} ${C(o)} L${C(n-l*.62)} ${C(o+l)} Z\" fill=\"#fff\"/>`}return`<g aria-hidden=\"true\" pointer-events=\"none\">${Eu(t)}${i}${s}</g>`}function Eu(e){let t=e.kind===\"audio\"?\"\\u97F3\\u9891\":\"\\u89C6\\u9891\",r=e.src?e.external?`${t}\\uFF08\\u5916\\u94FE\\uFF09`:t:`${t}\\uFF08\\u6E90\\u4E0D\\u53EF\\u7528\\uFF09`;return`<title>${oe(r)}</title>`}function ub(e,t){return`<foreignObject x=\"0\" y=\"0\" width=\"${C(e.w)}\" height=\"${C(e.h)}\"><div xmlns=\"http://www.w3.org/1999/xhtml\" style=\"width:100%;height:100%\"><video controls preload=\"metadata\" src=\"${oe(t.src??\"\")}\"`+(e.src?` poster=\"${oe(e.src)}\"`:\"\")+' style=\"width:100%;height:100%;display:block;object-fit:contain;background:#000\"></video></div></foreignObject>'}function hb(e,t){return`<g data-media-toggle=\"\" style=\"cursor:pointer\">${e}<foreignObject width=\"0\" height=\"0\"><div xmlns=\"http://www.w3.org/1999/xhtml\"><audio preload=\"none\" src=\"${oe(t.src??\"\")}\"></audio></div></foreignObject></g>`}function fb(e,t){let r=e.filter??\"\";if(e.duotone){let s=t.nextId(\"dt\");t.defs.push(_g(e.duotone,s)),r=`${r} url(#${s})`.trim()}let n=(e.alpha!==void 0&&e.alpha<1?` opacity=\"${C(e.alpha)}\"`:\"\")+(r?` style=\"filter:${oe(r)}\"`:\"\"),o;if(!e.src)o=`<rect width=\"${C(e.w)}\" height=\"${C(e.h)}\" fill=\"rgb(38,42,48)\"/>`;else if(e.crop&&(e.crop.l||e.crop.t||e.crop.r||e.crop.b)){let s=e.w/Math.max(1-e.crop.l-e.crop.r,fc),l=e.h/Math.max(1-e.crop.t-e.crop.b,fc),a=t.nextId(\"c\");t.defs.push(`<clipPath id=\"${a}\"><rect width=\"${C(e.w)}\" height=\"${C(e.h)}\"/></clipPath>`),o=`<g clip-path=\"url(#${a})\"><image href=\"${oe(e.src)}\" x=\"${C(-e.crop.l*s)}\" y=\"${C(-e.crop.t*l)}\" width=\"${C(s)}\" height=\"${C(l)}\" preserveAspectRatio=\"none\"${n}/></g>`}else o=`<image href=\"${oe(e.src)}\" width=\"${C(e.w)}\" height=\"${C(e.h)}\" preserveAspectRatio=\"none\"${n}/>`;if(e.clipPath){let s=t.nextId(\"cs\");t.defs.push(`<clipPath id=\"${s}\"><path d=\"${e.clipPath}\"/></clipPath>`),o=`<g clip-path=\"url(#${s})\">${o}</g>`}e.stroke&&(o+=`<path d=\"${e.clipPath??`M0 0 H${C(e.w)} V${C(e.h)} H0 Z`}\" fill=\"none\"${Cs(e.stroke,t)}/>`);let i=go(e);if(i&&(o=`<g transform=\"${i}\">${o}</g>`),e.media){let s=t.media===\"player\"&&!!e.media.src;s&&e.media.kind===\"video\"?o+=ub(e,e.media):(o=e.media.kind===\"video\"||!e.src||!e.media.src?o+cb(e,e.media):Eu(e.media)+o,s&&(o=hb(o,e.media)))}return mo(e,o,t)}function db(e,t){let r=t.includeEditMarkers&&e.editInfo&&e.editInfo.editable===\"frame\"?{...t,includeEditMarkers:null}:t,n=e.children.map(s=>Su(s,r,e)).join(\"\"),o=t.includeEditMarkers?' data-edit-group-children=\"1\"':\"\",i=go(e);return mo(e,`<g${o}${i?` transform=\"${i}\"`:\"\"}>${n}</g>`,t)}var pb={color:\"rgba(0,0,0,0.25)\",width:1,dash:null};function Vr(e,t,r,n,o,i){if(e===null)return\"\";let s=e??pb;return`<line x1=\"${C(t)}\" y1=\"${C(r)}\" x2=\"${C(n)}\" y2=\"${C(o)}\"${Cs(s,i)}/>`}function mb(e,t){let r=[],n=[],o=0;e.rows.forEach((s,l)=>{let a=0;s.cells.forEach((c,u)=>{let h=e.colWidths.slice(u,u+c.colSpan).reduce((p,b)=>p+b,0)||e.colWidths[u]||0;if(c.merged){a+=e.colWidths[u]??0;return}let f=e.rows.slice(l,l+c.rowSpan).reduce((p,b)=>p+b.height,0)||s.height,m=c.fill?ks(c.fill,t,h,f):\"none\",d=c.borders??{};r.push(`<g${t.includeEditMarkers?` data-table-cell=\"${l}:${u}\"`:\"\"} transform=\"translate(${C(a)} ${C(o)})\"><rect width=\"${C(h)}\" height=\"${C(f)}\" fill=\"${m}\"${t.includeEditMarkers?' pointer-events=\"visibleFill\"':\"\"}/>`+(c.text?Tu(c.text,h,f,t,c.margins,c.vAlign,c.vert):\"\")+\"</g>\"),n.push(`<g transform=\"translate(${C(a)} ${C(o)})\">`+Vr(d.t,0,0,h,0,t)+Vr(d.b,0,f,h,f,t)+Vr(d.l,0,0,0,f,t)+Vr(d.r,h,0,h,f,t)+\"</g>\"),a+=e.colWidths[u]??0}),o+=s.height});let i=r.join(\"\")+n.join(\"\");return mo(e,e.flipH||e.flipV?`<g transform=\"${go(e)}\">${i}</g>`:i,t)}function gb(e,t,r){if(!(e!=null&&e.length))return\"\";let n=Math.max(14,Math.min(t,r)*.036),o=[];return e.forEach((i,s)=>{let l=Math.max(0,Math.min(Number.isFinite(i.x)?i.x:0,t-n)),a=Math.max(0,Math.min(Number.isFinite(i.y)?i.y:0,r-n)),c=String(i.idx??s+1),u=[i.author,i.date,i.text].filter(Boolean).join(\" \\xB7 \");o.push(`<g class=\"ppt-comment\" data-comment=\"${oe(c)}\" transform=\"translate(${C(l)} ${C(a)})\"><title>${oe(u)}</title><path d=\"M${C(n*.16)} 0 H${C(n*.84)} A ${C(n*.16)} ${C(n*.16)} 0 0 1 ${C(n)} ${C(n*.16)} V${C(n*.62)} A ${C(n*.16)} ${C(n*.16)} 0 0 1 ${C(n*.84)} ${C(n*.78)} H${C(n*.42)} L${C(n*.16)} ${C(n)} V${C(n*.78)} A ${C(n*.16)} ${C(n*.16)} 0 0 1 0 ${C(n*.62)} V${C(n*.16)} A ${C(n*.16)} ${C(n*.16)} 0 0 1 ${C(n*.16)} 0 Z\" fill=\"rgb(255,196,60)\" stroke=\"rgba(120,80,0,0.55)\" stroke-width=\"${C(Math.max(.6,n*.045))}\"/><text x=\"${C(n*.5)}\" y=\"${C(n*.42)}\" text-anchor=\"middle\" dominant-baseline=\"central\" fill=\"rgb(60,40,0)\" font-size=\"${C(n*.52)}\" font-weight=\"700\">${oe(c)}</text></g>`)}),o.join(\"\")}function bb(e){let t=Math.max(10,Math.min(16,e.h/6)),r=e.preview?`<image href=\"${oe(e.preview)}\" width=\"${C(e.w)}\" height=\"${C(e.h)}\" preserveAspectRatio=\"none\"/>`:\"\";return`<g transform=\"${io(e)}\">`+r+`<rect width=\"${C(e.w)}\" height=\"${C(e.h)}\" fill=\"rgba(127,127,127,0.07)\" stroke=\"#aaa\" stroke-dasharray=\"6 4\"/><text x=\"${C(e.w/2)}\" y=\"${C(e.h/2)}\" text-anchor=\"middle\" dominant-baseline=\"middle\" fill=\"#888\" font-size=\"${C(t)}\">${oe(e.label)}</text></g>`}function Tu(e,t,r,n,o,i,s){var l;if(e.paragraphs.some(c=>c.runs.some(u=>{var h;return((h=u.link)==null?void 0:h.startsWith(\"slide-part:\"))||/^slide:(next|previous|first|last)$/.test(u.link??\"\")}))&&(e={...e,paragraphs:e.paragraphs.map(c=>({...c,runs:c.runs.map(u=>{let h=n.resolveLink(u.link);return h===u.link?u:{...u,link:h}})}))}),n.textMode===\"svg\"||no((l=e.warp)==null?void 0:l.preset)){if(e.autoFitCompute&&!e.autoFitShape){let u=$s(e,t,r,n.measureText,{insets:o,vert:s});u!==e.fontScale&&(e={...e,fontScale:u})}let c=u=>{let h=n.nextId(\"tg\");return n.defs.push(u.replace(\"__ID__\",h)),h};return Qi(s&&s!==e.vert?{...e,vert:s}:e,t,r,c,o,i,!!n.includeEditMarkers,n.measureText)}let a=Ng(e,t,r,{insets:o,anchor:i,vert:s,includeEditMarkers:!!n.includeEditMarkers,measureText:n.measureText});return`<foreignObject width=\"${C(t)}\" height=\"${C(r)}\" style=\"overflow:visible\">${a}</foreignObject>`}Il(yp);Nl(V1);Y1(mm);G1(Cm);function xb(e){let t;try{t=new _r(e)}catch{return null}let r=t.stream(\"EncryptedPackage\");return r?{info:t.stream(\"EncryptionInfo\"),pkg:r}:null}async function Lu(e,t={}){let r;if(e instanceof Uint8Array?r=e:e instanceof ArrayBuffer?r=new Uint8Array(e):r=new Uint8Array(await e.arrayBuffer()),r[0]===80&&r[1]===75)return vi(r,t);if(r[0]===208&&r[1]===207){let n=xb(r);if(n){if(!n.info)throw new Error(\"\\u8BE5\\u6587\\u4EF6\\u5DF2\\u52A0\\u5BC6\\uFF0C\\u4F46 EncryptionInfo \\u6D41\\u7F3A\\u5931\\uFF0C\\u6587\\u4EF6\\u53EF\\u80FD\\u5DF2\\u635F\\u574F\");let o=q1();if(!o)throw new Error(\"\\u8BE5\\u6587\\u4EF6\\u5DF2\\u52A0\\u5BC6\\uFF0C\\u4F46\\u672A\\u6CE8\\u5165\\u89E3\\u5BC6\\u5668\\uFF08setDecryptor\\uFF09\");if(t.password===void 0)throw new Kr;return vi(o(n.info,n.pkg,t.password),t)}return W2(r,t.password,t.edit===!0)}throw new Error(\"\\u65E0\\u6CD5\\u8BC6\\u522B\\u7684\\u6587\\u4EF6\\u683C\\u5F0F\\uFF1A\\u65E2\\u4E0D\\u662F .pptx\\uFF08Zip\\uFF09\\u4E5F\\u4E0D\\u662F .ppt\\uFF08CFB\\uFF09\")}var Ke=Uint8Array,An=Uint16Array,vb=Int32Array,Au=new Ke([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Pu=new Ke([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),wb=new Ke([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Iu=function(e,t){for(var r=new An(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];for(var o=new vb(r[30]),n=1;n<30;++n)for(var i=r[n];i<r[n+1];++i)o[i]=i-r[n]<<5|n;return{b:r,r:o}},Nu=Iu(Au,2),Ru=Nu.b,yb=Nu.r;Ru[28]=258,yb[258]=28;var Ou=Iu(Pu,0),$b=Ou.b,Kb=Ou.r,Ls=new An(32768);for(ae=0;ae<32768;++ae)Ot=(ae&43690)>>1|(ae&21845)<<1,Ot=(Ot&52428)>>2|(Ot&13107)<<2,Ot=(Ot&61680)>>4|(Ot&3855)<<4,Ls[ae]=((Ot&65280)>>8|(Ot&255)<<8)>>1;var Ot,ae,ar=(function(e,t,r){for(var n=e.length,o=0,i=new An(t);o<n;++o)e[o]&&++i[e[o]-1];var s=new An(t);for(o=1;o<t;++o)s[o]=s[o-1]+i[o-1]<<1;var l;if(r){l=new An(1<<t);var a=15-t;for(o=0;o<n;++o)if(e[o])for(var c=o<<4|e[o],u=t-e[o],h=s[e[o]-1]++<<u,f=h|(1<<u)-1;h<=f;++h)l[Ls[h]>>a]=c}else for(l=new An(n),o=0;o<n;++o)e[o]&&(l[o]=Ls[s[e[o]-1]++]>>15-e[o]);return l}),cr=new Ke(288);for(ae=0;ae<144;++ae)cr[ae]=8;var ae;for(ae=144;ae<256;++ae)cr[ae]=9;var ae;for(ae=256;ae<280;++ae)cr[ae]=7;var ae;for(ae=280;ae<288;++ae)cr[ae]=8;var ae,zu=new Ke(32);for(ae=0;ae<32;++ae)zu[ae]=5;var ae;var Mb=ar(cr,9,1);var kb=ar(zu,5,1),Ss=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},pt=function(e,t,r){var n=t/8|0;return(e[n]|e[n+1]<<8)>>(t&7)&r},Es=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},Cb=function(e){return(e+7)/8|0},Ps=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new Ke(e.subarray(t,r))};var Sb=[\"unexpected EOF\",\"invalid block type\",\"invalid length/literal\",\"invalid distance\",\"stream finished\",\"no stream handler\",,\"no callback\",\"invalid UTF-8 data\",\"extra field too long\",\"date not in range 1980-2099\",\"filename too long\",\"stream finishing\",\"invalid zip data\"],_e=function(e,t,r){var n=new Error(t||Sb[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,_e),!r)throw n;return n},Eb=function(e,t,r,n){var o=e.length,i=n?n.length:0;if(!o||t.f&&!t.l)return r||new Ke(0);var s=!r,l=s||t.i!=2,a=t.i;s&&(r=new Ke(o*3));var c=function(mt){var zt=r.length;if(mt>zt){var St=new Ke(Math.max(zt*2,mt));St.set(r),r=St}},u=t.f||0,h=t.p||0,f=t.b||0,m=t.l,d=t.d,p=t.m,b=t.n,v=o*8;do{if(!m){u=pt(e,h,1);var x=pt(e,h+1,3);if(h+=3,x)if(x==1)m=Mb,d=kb,p=9,b=5;else if(x==2){var $=pt(e,h,31)+257,k=pt(e,h+10,15)+4,A=$+pt(e,h+5,31)+1;h+=14;for(var L=new Ke(A),P=new Ke(19),E=0;E<k;++E)P[wb[E]]=pt(e,h+E*3,7);h+=k*3;for(var T=Ss(P),I=(1<<T)-1,O=ar(P,T,1),E=0;E<A;){var R=O[pt(e,h,I)];h+=R&15;var M=R>>4;if(M<16)L[E++]=M;else{var z=0,j=0;for(M==16?(j=3+pt(e,h,3),h+=2,z=L[E-1]):M==17?(j=3+pt(e,h,7),h+=3):M==18&&(j=11+pt(e,h,127),h+=7);j--;)L[E++]=z}}var F=L.subarray(0,$),W=L.subarray($);p=Ss(F),b=Ss(W),m=ar(F,p,1),d=ar(W,b,1)}else _e(1);else{var M=Cb(h)+4,S=e[M-4]|e[M-3]<<8,y=M+S;if(y>o){a&&_e(0);break}l&&c(f+S),r.set(e.subarray(M,y),f),t.b=f+=S,t.p=h=y*8,t.f=u;continue}if(h>v){a&&_e(0);break}}l&&c(f+131072);for(var V=(1<<p)-1,B=(1<<b)-1,q=h;;q=h){var z=m[Es(e,h)&V],X=z>>4;if(h+=z&15,h>v){a&&_e(0);break}if(z||_e(2),X<256)r[f++]=X;else if(X==256){q=h,m=null;break}else{var K=X-254;if(X>264){var E=X-257,Y=Au[E];K=pt(e,h,(1<<Y)-1)+Ru[E],h+=Y}var se=d[Es(e,h)&B],ue=se>>4;se||_e(3),h+=se&15;var W=$b[ue];if(ue>3){var Y=Pu[ue];W+=Es(e,h)&(1<<Y)-1,h+=Y}if(h>v){a&&_e(0);break}l&&c(f+131072);var fe=f+K;if(f<W){var de=i-W,it=Math.min(W,fe);for(de+f<0&&_e(3);f<it;++f)r[f]=n[de+f]}for(;f<fe;++f)r[f]=r[f-W]}}t.l=m,t.p=q,t.b=f,t.f=u,m&&(u=1,t.m=p,t.d=d,t.n=b)}while(!u);return f!=r.length&&s?Ps(r,0,f):r.subarray(0,f)};var Tb=new Ke(0);var Ct=function(e,t){return e[t]|e[t+1]<<8},ot=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},Ts=function(e,t){return ot(e,t)+ot(e,t+4)*4294967296};function Lb(e,t){return Eb(e,{i:2},t&&t.out,t&&t.dictionary)}var As=typeof TextDecoder<\"u\"&&new TextDecoder,Ab=0;try{As.decode(Tb,{stream:!0}),Ab=1}catch{}var Pb=function(e){for(var t=\"\",r=0;;){var n=e[r++],o=(n>127)+(n>223)+(n>239);if(r+o>e.length)return{s:t,r:Ps(e,r-1)};o?o==3?(n=((n&15)<<18|(e[r++]&63)<<12|(e[r++]&63)<<6|e[r++]&63)-65536,t+=String.fromCharCode(55296|n>>10,56320|n&1023)):o&1?t+=String.fromCharCode((n&31)<<6|e[r++]&63):t+=String.fromCharCode((n&15)<<12|(e[r++]&63)<<6|e[r++]&63):t+=String.fromCharCode(n)}};function Ib(e,t){if(t){for(var r=\"\",n=0;n<e.length;n+=16384)r+=String.fromCharCode.apply(null,e.subarray(n,n+16384));return r}else{if(As)return As.decode(e);var o=Pb(e),i=o.s,r=o.r;return r.length&&_e(8),i}}var Nb=function(e,t){return t+30+Ct(e,t+26)+Ct(e,t+28)},Rb=function(e,t,r){var n=Ct(e,t+28),o=Ct(e,t+30),i=Ib(e.subarray(t+46,t+46+n),!(Ct(e,t+8)&2048)),s=t+46+n,l=Ob(e,s,o,r,ot(e,t+20),ot(e,t+24),ot(e,t+42)),a=l[0],c=l[1],u=l[2];return[Ct(e,t+10),a,c,i,s+o+Ct(e,t+32),u]},Ob=function(e,t,r,n,o,i,s){var l=o==4294967295,a=i==4294967295,c=s==4294967295,u=t+r,h=l+a+c;if(n&&h){for(;t+4<u;t+=4+Ct(e,t+2))if(Ct(e,t)==1)return[l?Ts(e,t+4+8*a):o,a?Ts(e,t+4):i,c?Ts(e,t+4+8*(a+l)):s,1];n<2&&_e(13)}return[o,i,s,0]};function Fu(e,t){for(var r={},n=e.length-22;ot(e,n)!=101010256;--n)(!n||e.length-n>65558)&&_e(13);var o=Ct(e,n+8);if(!o)return{};var i=ot(e,n+16),s=ot(e,n-20)==117853008;if(s){var l=ot(e,n-12);s=ot(e,l)==101075792,s&&(o=ot(e,l+32),i=ot(e,l+48))}for(var a=t&&t.filter,c=0;c<o;++c){var u=Rb(e,i,s),h=u[0],f=u[1],m=u[2],d=u[3],p=u[4],b=u[5],v=Nb(e,b);i=p,(!a||a({name:d,size:f,originalSize:m,compression:h}))&&(h?h==8?r[d]=Lb(e.subarray(v,v+f),{out:new Ke(m)}):_e(14,\"unknown compression type \"+h):r[d]=Ps(e,v,v+f))}return r}async function ju(e){if(!e.length||e.length>50*1024*1024)throw new Error(\"\\u6F14\\u793A\\u6587\\u7A3F\\u5FC5\\u987B\\u5C0F\\u4E8E 50 MiB\");if(e[0]===80&&e[1]===75){let r=0,n=0;Fu(e,{filter(o){if(++r>2e3||o.originalSize>20*1024*1024||(n+=o.originalSize)>100*1024*1024)throw new Error(\"\\u6F14\\u793A\\u6587\\u7A3F\\u5C55\\u5F00\\u540E\\u8D85\\u8FC7\\u9884\\u89C8\\u9650\\u5236\");if(o.name.startsWith(\"/\")||o.name.includes(\"\\\\\")||o.name.split(\"/\").includes(\"..\"))throw new Error(\"\\u6F14\\u793A\\u6587\\u7A3F\\u8DEF\\u5F84\\u65E0\\u6548\");return!1}})}else if(![208,207,17,224,161,177,26,225].every((r,n)=>e[n]===r))throw new Error(\"\\u4E0D\\u662F\\u6709\\u6548\\u7684 PPT/PPTX \\u6587\\u4EF6\");let t=await Lu(e);if(!t.slides.length||t.slides.length>1e3||!Number.isFinite(t.width)||!Number.isFinite(t.height)||t.width<=0||t.height<=0||t.width>2e4||t.height>2e4)throw t.dispose?.(),new Error(\"\\u5E7B\\u706F\\u7247\\u6570\\u91CF\\u6216\\u5C3A\\u5BF8\\u8D85\\u51FA\\u9884\\u89C8\\u9650\\u5236\");return t}function Uu(e,t){return Cu(e,e.slides[t],{textMode:\"html\",media:\"badge\"})}var Du=`Presentation Preview for Tano \\u2014 MIT\n\n\n@web-ppt/core@0.5.0\nMIT License\n\nCopyright (c) 2026 unStone\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\nfflate@0.8.3\nMIT License\n\nCopyright (c) 2026 Arjun Barrett\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.`;function Bu(e){let t=document.getElementById(\"app\");t.innerHTML='<p id=\"status\" role=\"status\">\\u4ECE\\u6587\\u4EF6\\u6811\\u6253\\u5F00\\u6F14\\u793A\\u6587\\u7A3F\\uFF0C\\u6216\\u9009\\u62E9\\u672C\\u673A\\u6587\\u4EF6\\u3002\\u6587\\u4EF6\\u4EC5\\u5728\\u6B64\\u8BBE\\u5907\\u5904\\u7406\\u3002</p><main tabindex=\"0\" aria-label=\"\\u5E7B\\u706F\\u7247\\u9884\\u89C8\"><div id=\"paper\"></div></main><dialog><button id=\"close\">\\u5173\\u95ED</button><pre></pre></dialog>';let r=Is(t,\"presentation\"),n=P=>t.querySelector(`#${P}`),o=n(\"status\"),i=n(\"paper\"),s=t.querySelector(\"main\"),l,a=0,c=1,u=!0,h=0,f=0,m=\"\\u6F14\\u793A\\u6587\\u7A3F\\u9884\\u89C8\",d=()=>e.postMessage({type:\"header\",title:m,token:f,page:l?a+1:0,count:l?.slides.length??0}),p=P=>{o.textContent=P,o.hidden=!P},b,v=()=>{l?.dispose?.(),l=void 0,i.replaceChildren()};function x(){if(!l)return;let P=u?Math.min(2,Math.max(.05,(s.clientWidth-48)/l.width)):c;i.style.width=`${l.width*P}px`,i.style.height=`${l.height*P}px`;let E=i.firstElementChild;E&&(E.style.width=\"100%\",E.style.height=\"100%\")}function M(){if(!l)return;let P=new DOMParser().parseFromString(Uu(l,a),\"image/svg+xml\");if(P.querySelector(\"parsererror\"))throw new Error(\"\\u65E0\\u6CD5\\u6E32\\u67D3\\u6B64\\u9875\");P.querySelectorAll(\"script,iframe,object,embed,audio,video,animate,set\").forEach(E=>E.remove());for(let E of P.querySelectorAll(\"*\"))for(let T of[...E.attributes])(/^on/i.test(T.name)||/^(href|xlink:href|src)$/i.test(T.name)&&!/^(#|blob:|data:image\\/)/i.test(T.value))&&E.removeAttribute(T.name);i.replaceChildren(document.importNode(P.documentElement,!0)),d(),x()}async function S(P,E){let T=++h;v(),m=E,r.show(),p(`\\u6B63\\u5728\\u6E32\\u67D3 ${E}\\u2026`);try{if(await Ns(),T!==h)return;let I=await ju(P);if(T!==h){I.dispose?.();return}l=I,a=0,u=!0,M(),r.hide(),p(\"\")}catch(I){T===h&&(v(),r.hide(),p(String(I)),d())}}let y=P=>{if(l){a=Math.max(0,Math.min(l.slides.length-1,a+P));try{M()}catch(E){p(String(E))}}};s.onkeydown=P=>{(P.key===\"ArrowRight\"||P.key===\"ArrowLeft\")&&(P.preventDefault(),y(P.key===\"ArrowRight\"?1:-1))};let $=t.querySelector(\"dialog\");$.querySelector(\"pre\").textContent=Du,n(\"close\").onclick=()=>$.close();function k(P){(P===\"previous\"||P===\"next\")&&y(P===\"next\"?1:-1),P===\"fit\"&&(u=!0,x()),(P===\"minus\"||P===\"plus\")&&(l&&u&&(c=i.clientWidth/l.width),u=!1,c=Math.max(.1,Math.min(4,c+(P===\"plus\"?.1:-.1))),x()),P===\"license\"&&!$.open&&$.showModal()}let A=new ResizeObserver(x);A.observe(s);let L=e.onState(async P=>{if(!P||typeof P!=\"object\"||Array.isArray(P))return;if(typeof P.action==\"string\"&&P.chunk===void 0){k(P.action);return}if(typeof P.token==\"number\"&&(f=P.token),P.loading){b=void 0,++h,v(),r.show(),p(\"\\u6B63\\u5728\\u8BFB\\u53D6\\u6587\\u4EF6\\u2026\");return}if(P.idle){b=void 0,++h,v(),m=\"\\u6F14\\u793A\\u6587\\u7A3F\\u9884\\u89C8\",r.hide(),p(\"\\u8BF7\\u9009\\u62E9 PPT/PPTX \\u6587\\u4EF6\"),d();return}if(typeof P.error==\"string\"){b=void 0,++h,v(),r.hide(),p(P.error),d();return}if(typeof P.chunk!=\"string\"||typeof P.token!=\"number\"||typeof P.total!=\"number\"||P.total>50*1024*1024||P.total<0)return;P.offset===0&&(b={token:P.token,bytes:new Uint8Array(P.total),offset:0},++h,v(),r.show(),m=String(P.path),d());let E=b;if(!(!E||E.token!==P.token||P.offset!==E.offset))try{let T=Uint8Array.from(atob(P.chunk),I=>I.charCodeAt(0));if(!T.length||E.offset+T.length>E.bytes.length)throw new Error(\"\\u9644\\u4EF6\\u5206\\u5757\\u65E0\\u6548\");E.bytes.set(T,E.offset),E.offset+=T.length,p(`\\u8BFB\\u53D6\\u6587\\u4EF6 ${Math.round(E.offset/E.bytes.length*100)}%`),P.imported&&await e.postMessage({type:\"received\",token:E.token,offset:E.offset}),E.offset===E.bytes.length?(b=void 0,await S(E.bytes,String(P.path))):P.imported||(await new Promise(I=>setTimeout(I,25)),b===E&&await e.postMessage({offset:E.offset,token:E.token}))}catch(T){b===E&&(b=void 0,r.hide(),p(String(T)))}});addEventListener(\"pagehide\",()=>{++h,b=void 0,v(),A.disconnect(),L()},{once:!0})}return Yu(Fb);})();\n\nawait TanoPluginView.default(tanoView);"}}}