@nocobase/plugin-ai 2.1.0-beta.14 → 2.1.0-beta.16
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.
- package/dist/ai/ai-employees/atlas/index.d.ts +10 -0
- package/dist/{server/ai-employees/built-in/ai-coding/prompt.js → ai/ai-employees/atlas/index.js} +29 -20
- package/dist/ai/ai-employees/atlas/prompt.md +84 -0
- package/dist/ai/ai-employees/dara.d.ts +10 -0
- package/dist/{server/ai-employees/built-in/data-visualization/prompt.js → ai/ai-employees/dara.js} +21 -13
- package/dist/ai/ai-employees/dex.d.ts +10 -0
- package/dist/{server/ai-employees/built-in/data-organizer/prompt.js → ai/ai-employees/dex.js} +15 -7
- package/dist/ai/ai-employees/ellis.d.ts +10 -0
- package/dist/{server/ai-employees/built-in/email-assistant/prompt.js → ai/ai-employees/ellis.js} +19 -11
- package/dist/ai/ai-employees/lexi.d.ts +10 -0
- package/dist/{server/ai-employees/built-in/translator/prompt.js → ai/ai-employees/lexi.js} +15 -7
- package/dist/ai/ai-employees/vera.d.ts +10 -0
- package/dist/{server/ai-employees/built-in/research-analyst/prompt.js → ai/ai-employees/vera.js} +16 -8
- package/dist/ai/ai-employees/viz.d.ts +10 -0
- package/dist/{server/ai-employees/built-in/insights-analyst/prompt.js → ai/ai-employees/viz.js} +15 -7
- package/dist/ai/skills/business-analysis-report/SKILLS.md +88 -0
- package/dist/{server/ai-employees/built-in/ai-coding/prompt.d.ts → ai/skills/business-analysis-report/tools/businessReportGenerator.d.ts} +1 -3
- package/dist/ai/skills/business-analysis-report/tools/businessReportGenerator.js +98 -0
- package/dist/ai/skills/document-search/SKILLS.md +69 -0
- package/dist/ai/tools/chartGenerator.js +15 -3
- package/dist/ai/tools/formFiller.js +13 -2
- package/dist/{server/ai-employees/built-in/data-modeling/prompt.d.ts → ai/tools/getSkill.d.ts} +1 -3
- package/dist/{server/ai-employees/built-in/data-modeling/index.js → ai/tools/getSkill.js} +39 -32
- package/dist/{server/ai-employees/built-in/data-organizer/prompt.d.ts → ai/tools/knowledge-base-retrieve.d.ts} +1 -3
- package/dist/ai/tools/knowledge-base-retrieve.js +94 -0
- package/dist/{server/ai-employees/built-in/data-visualization/prompt.d.ts → ai/tools/sub-agents/dispatch-sub-agent-task.d.ts} +1 -3
- package/dist/ai/tools/sub-agents/dispatch-sub-agent-task.js +108 -0
- package/dist/ai/tools/sub-agents/get-ai-employee.d.ts +10 -0
- package/dist/{server/ai-employees/built-in/translator/profile.js → ai/tools/sub-agents/get-ai-employee.js} +28 -21
- package/dist/ai/tools/sub-agents/list-ai-employees.d.ts +10 -0
- package/dist/{server/ai-employees/built-in/email-assistant/profile.js → ai/tools/sub-agents/list-ai-employees.js} +25 -21
- package/dist/ai/tools/sub-agents/shared.d.ts +33 -0
- package/dist/ai/tools/sub-agents/shared.js +169 -0
- package/dist/ai/tools/suggestions.js +15 -4
- package/dist/client/170.d98eacdc00d9d527.js +10 -0
- package/dist/client/228.b18148eb1009d2fb.js +10 -0
- package/dist/client/280.029428b83d62155f.js +10 -0
- package/dist/client/290.0888139e33c9b7cb.js +10 -0
- package/dist/client/{524.954f96ec4fc2fd7a.js → 331.d547c95410476a69.js} +1 -1
- package/dist/client/343.83f7d96664e4e038.js +10 -0
- package/dist/client/406.15c09d98faa2ccf1.js +10 -0
- package/dist/client/428.e9f38da3b0d8b498.js +10 -0
- package/dist/client/486.77c26e2e7f8daf28.js +10 -0
- package/dist/client/502.2b4a51e0a8122e52.js +10 -0
- package/dist/client/525.33a9c8ec28be4ec4.js +10 -0
- package/dist/client/559.133d286a0a0a1d93.js +10 -0
- package/dist/client/{91.90e7098b7fbd5d00.js → 561.776886c5308e3c26.js} +1 -1
- package/dist/client/580.e75f97fb883ad042.js +10 -0
- package/dist/client/597.aa363881a325b5c0.js +10 -0
- package/dist/client/604.de96f3ec4d471afd.js +10 -0
- package/dist/client/614.aa766080f6b99aab.js +10 -0
- package/dist/client/646.ef9d7c2ea8641044.js +10 -0
- package/dist/client/687.224e569a99cae4bb.js +10 -0
- package/dist/client/699.57c0a1acb723202a.js +10 -0
- package/dist/client/711.266b8f1c520d467a.js +10 -0
- package/dist/client/758.a9741e81911e53c3.js +10 -0
- package/dist/client/768.973ce32e15099a48.js +10 -0
- package/dist/client/792.ae8ad1fcae9fd974.js +10 -0
- package/dist/client/820.6a26239ea96c075a.js +10 -0
- package/dist/client/832.0cf69e3f43c320b2.js +10 -0
- package/dist/client/927.ff5cd05b14901ae6.js +10 -0
- package/dist/client/ai-employees/admin/SkillSettings.d.ts +7 -5
- package/dist/client/ai-employees/admin/ToolsSettings.d.ts +17 -0
- package/dist/client/ai-employees/admin/mcp/MCPSettings.d.ts +10 -0
- package/dist/client/ai-employees/admin/mcp/MCPToolsList.d.ts +19 -0
- package/dist/client/ai-employees/admin/mcp/context.d.ts +15 -0
- package/dist/client/ai-employees/admin/mcp/schemas.d.ts +1286 -0
- package/dist/client/ai-employees/built-in/utils.d.ts +1 -0
- package/dist/client/ai-employees/business-report/tools/index.d.ts +10 -0
- package/dist/client/ai-employees/business-report/ui/BusinessReportCard.d.ts +12 -0
- package/dist/client/ai-employees/business-report/ui/BusinessReportModal.d.ts +17 -0
- package/dist/client/ai-employees/business-report/ui/report-utils.d.ts +38 -0
- package/dist/client/ai-employees/chatbox/AIEmployeeSwitch.d.ts +3 -2
- package/dist/client/ai-employees/chatbox/HintMessageHeader.d.ts +10 -0
- package/dist/client/ai-employees/chatbox/ModelSwitcher.d.ts +3 -1
- package/dist/client/ai-employees/chatbox/SearchSwitch.d.ts +3 -1
- package/dist/client/ai-employees/chatbox/Upload.d.ts +3 -1
- package/dist/client/ai-employees/chatbox/conversations/ConversationsList.d.ts +27 -0
- package/dist/client/ai-employees/chatbox/conversations/WorkflowTasksList.d.ts +31 -0
- package/dist/client/ai-employees/chatbox/conversations/common.d.ts +43 -0
- package/dist/{server/document-loader/loader.worker.d.ts → client/ai-employees/chatbox/conversations/index.d.ts} +1 -1
- package/dist/client/ai-employees/chatbox/hooks/useChatBoxActions.d.ts +5 -3
- package/dist/client/ai-employees/chatbox/hooks/useWorkflowTasks.d.ts +24 -0
- package/dist/client/ai-employees/chatbox/markdown/ECharts.d.ts +1 -2
- package/dist/client/ai-employees/chatbox/markdown/Markdown.d.ts +1 -1
- package/dist/client/ai-employees/chatbox/roles.d.ts +1 -0
- package/dist/client/ai-employees/chatbox/stores/chat-box.d.ts +8 -0
- package/dist/client/ai-employees/chatbox/stores/chat-conversations.d.ts +4 -0
- package/dist/client/ai-employees/chatbox/stores/chat-messages.d.ts +8 -0
- package/dist/client/ai-employees/chatbox/stores/workflow-tasks.d.ts +41 -0
- package/dist/client/ai-employees/chatbox/utils.d.ts +17 -7
- package/dist/client/ai-employees/sub-agents/tools/index.d.ts +10 -0
- package/dist/client/ai-employees/sub-agents/ui/SubAgentDispatchCard.d.ts +21 -0
- package/dist/client/ai-employees/types.d.ts +24 -4
- package/dist/{server/ai-employees/built-in/ai-coding/document/example/js-filter → client/ai-employees/workflow-tasks/tools}/index.d.ts +2 -7
- package/dist/client/ai-employees/workflow-tasks/ui/WorkflowTaskOutputCard.d.ts +11 -0
- package/dist/client/components/ListCollapse.d.ts +28 -0
- package/dist/client/index.js +7 -7
- package/dist/client/manager/ai-manager.d.ts +4 -23
- package/dist/client/repositories/AIConfigRepository.d.ts +11 -3
- package/dist/client/workflow/nodes/employee/components/AIEmployeeSelect.d.ts +10 -0
- package/dist/client/workflow/nodes/employee/components/assigness.d.ts +11 -0
- package/dist/client/workflow/nodes/employee/components/file-inputs.d.ts +10 -0
- package/dist/client/workflow/nodes/employee/components/message-inputs.d.ts +12 -0
- package/dist/client/workflow/nodes/employee/components/model-options.d.ts +10 -0
- package/dist/client/workflow/nodes/employee/components/skill-settings.d.ts +10 -0
- package/dist/client/workflow/nodes/employee/components/structured-output.d.ts +10 -0
- package/dist/client/workflow/nodes/employee/components/users-select.d.ts +15 -0
- package/dist/client/workflow/nodes/employee/components/web-search-options.d.ts +10 -0
- package/dist/client/workflow/nodes/employee/configuration.d.ts +12 -0
- package/dist/client/workflow/nodes/employee/flow-models/feedback.d.ts +13 -0
- package/dist/client/workflow/nodes/employee/flow-models/task.d.ts +13 -0
- package/dist/client/workflow/nodes/employee/index.d.ts +7 -31
- package/dist/collections/ai-employees.js +2 -1
- package/dist/collections/ai-mcp-clients.d.ts +51 -0
- package/dist/collections/ai-mcp-clients.js +111 -0
- package/dist/externalVersion.js +17 -16
- package/dist/locale/en-US.json +136 -8
- package/dist/locale/zh-CN.json +138 -9
- package/dist/node_modules/fast-glob/out/index.js +8 -8
- package/dist/node_modules/fast-glob/package.json +1 -1
- package/dist/node_modules/flexsearch/dist/flexsearch.bundle.min.js +2 -2
- package/dist/node_modules/flexsearch/package.json +1 -1
- package/dist/node_modules/fs-extra/lib/index.js +1 -1
- package/dist/node_modules/fs-extra/package.json +1 -1
- package/dist/node_modules/nodejs-snowflake/nodejs_snowflake.js +1 -1
- package/dist/node_modules/nodejs-snowflake/package.json +1 -1
- package/dist/node_modules/openai/index.js +1 -1
- package/dist/node_modules/openai/package.json +1 -1
- package/dist/node_modules/zod/index.cjs +1 -1
- package/dist/node_modules/zod/package.json +1 -1
- package/dist/server/ai-employees/ai-conversations.d.ts +70 -0
- package/dist/server/ai-employees/ai-conversations.js +325 -0
- package/dist/server/ai-employees/ai-employee.d.ts +100 -19
- package/dist/server/ai-employees/ai-employee.js +484 -261
- package/dist/server/ai-employees/ai-knowledge-base.d.ts +28 -0
- package/dist/server/ai-employees/ai-knowledge-base.js +167 -0
- package/dist/server/ai-employees/middleware/conversation.d.ts +2 -0
- package/dist/server/ai-employees/middleware/conversation.js +38 -5
- package/dist/server/ai-employees/middleware/index.d.ts +2 -0
- package/dist/server/ai-employees/middleware/index.js +5 -1
- package/dist/server/ai-employees/middleware/skill-tools.d.ts +12 -0
- package/dist/server/ai-employees/middleware/skill-tools.js +88 -0
- package/dist/server/ai-employees/middleware/tools.js +37 -10
- package/dist/server/ai-employees/middleware/workflow-history.d.ts +22 -0
- package/dist/server/ai-employees/middleware/workflow-history.js +173 -0
- package/dist/server/ai-employees/prompts.d.ts +16 -1
- package/dist/server/ai-employees/prompts.js +37 -1
- package/dist/server/ai-employees/sub-agents/dispatcher.d.ts +36 -0
- package/dist/server/ai-employees/sub-agents/dispatcher.js +225 -0
- package/dist/server/ai-employees/sub-agents/index.d.ts +9 -0
- package/dist/server/{migrations/20250923221107-setup-build-in.js → ai-employees/sub-agents/index.js} +9 -13
- package/dist/server/ai-employees/templates/form-assistant.d.ts +2 -2
- package/dist/server/ai-employees/templates/form-assistant.js +2 -2
- package/dist/server/ai-employees/utils.js +2 -2
- package/dist/server/collections/ai-conversations.js +18 -0
- package/dist/server/{ai-employees/built-in/ai-coding/document/example/js-column/js_columns_for_contacts_en.d.ts → collections/ai-mcp-clients.d.ts} +1 -4
- package/dist/server/{ai-employees/built-in/nocobase-assistant/index.js → collections/ai-mcp-clients.js} +12 -13
- package/dist/server/{ai-employees/built-in/ai-coding/document/basic/flow-resource.d.ts → collections/ai-skills.d.ts} +1 -4
- package/dist/server/collections/ai-skills.js +73 -0
- package/dist/server/{ai-employees/built-in/ai-coding/document/example/js-column/js_columns_for_opportunities_en.d.ts → collections/ai-workflow-tasks.d.ts} +1 -4
- package/dist/server/collections/ai-workflow-tasks.js +112 -0
- package/dist/server/{ai-employees/built-in/ai-coding/document/example/js-column/js_columns_for_accounts_en.d.ts → collections/users-ai-workflow-tasks.d.ts} +1 -4
- package/dist/server/collections/users-ai-workflow-tasks.js +44 -0
- package/dist/server/document-loader/constants.d.ts +1 -2
- package/dist/server/document-loader/constants.js +6 -1
- package/dist/server/document-loader/loader.d.ts +0 -1
- package/dist/server/document-loader/loader.js +2 -55
- package/dist/server/document-loader/types.d.ts +0 -1
- package/dist/server/llm-providers/anthropic.d.ts +1 -0
- package/dist/server/llm-providers/anthropic.js +2 -1
- package/dist/server/llm-providers/dashscope.d.ts +1 -0
- package/dist/server/llm-providers/deepseek.d.ts +1 -0
- package/dist/server/llm-providers/google-genai.d.ts +1 -0
- package/dist/server/llm-providers/google-genai.js +2 -1
- package/dist/server/llm-providers/kimi/provider.d.ts +1 -0
- package/dist/server/llm-providers/openai/responses.d.ts +1 -0
- package/dist/server/llm-providers/openai/responses.js +2 -1
- package/dist/server/llm-providers/provider.d.ts +1 -10
- package/dist/server/llm-providers/provider.js +4 -35
- package/dist/server/manager/ai-coding-manager.d.ts +1 -2
- package/dist/server/manager/ai-coding-manager.js +0 -41
- package/dist/server/manager/ai-context-datasource-manager.js +30 -1
- package/dist/server/manager/built-in-manager.d.ts +2 -4
- package/dist/server/manager/built-in-manager.js +8 -118
- package/dist/server/migrations/20260306000001-migrate-skill-settings-tools.js +68 -0
- package/dist/server/migrations/20260319000000-add-ai-conversations-from.d.ts +14 -0
- package/dist/server/migrations/20260319000000-add-ai-conversations-from.js +63 -0
- package/dist/server/migrations/20260424000000-remove-cole-ai-employee.d.ts +14 -0
- package/dist/server/{ai-employees/built-in/email-assistant/index.js → migrations/20260424000000-remove-cole-ai-employee.js} +20 -22
- package/dist/server/plugin.d.ts +6 -1
- package/dist/server/plugin.js +31 -8
- package/dist/server/resource/aiConversations.js +112 -188
- package/dist/server/resource/aiEmployees.js +5 -7
- package/dist/server/resource/aiMcpClients.d.ts +11 -0
- package/dist/server/resource/aiMcpClients.js +78 -0
- package/dist/server/{ai-employees/built-in/ai-coding/document/example/js-column/index.d.ts → resource/aiSkills.d.ts} +3 -7
- package/dist/server/resource/aiSkills.js +71 -0
- package/dist/server/resource/aiTools.js +4 -6
- package/dist/server/resource/aiWorkflowTasks.d.ts +12 -0
- package/dist/server/resource/aiWorkflowTasks.js +290 -0
- package/dist/server/tools/docs.js +4 -3
- package/dist/server/tools/workflow-caller.js +1 -0
- package/dist/server/types/ai-chat-conversation.type.d.ts +8 -2
- package/dist/server/types/ai-message.type.d.ts +7 -0
- package/dist/server/utils.d.ts +3 -0
- package/dist/server/utils.js +28 -3
- package/dist/server/workflow/nodes/employee/files.d.ts +16 -0
- package/dist/server/workflow/nodes/employee/files.js +125 -0
- package/dist/server/workflow/nodes/employee/handler.d.ts +11 -0
- package/dist/server/workflow/nodes/employee/handler.js +107 -0
- package/dist/server/workflow/nodes/employee/index.d.ts +17 -0
- package/dist/server/workflow/nodes/employee/index.js +391 -0
- package/dist/server/workflow/nodes/employee/tools.d.ts +12 -0
- package/dist/server/workflow/nodes/employee/tools.js +133 -0
- package/dist/server/workflow/nodes/employee/types.d.ts +35 -0
- package/dist/server/workflow/nodes/employee/types.js +24 -0
- package/dist/server/workflow/utils.d.ts +14 -0
- package/dist/server/workflow/utils.js +111 -0
- package/package.json +4 -2
- package/dist/client/107.64d9efa24d6b9143.js +0 -10
- package/dist/client/124.768c8aa5d6e6b461.js +0 -10
- package/dist/client/159.d52107c7a34ce2da.js +0 -10
- package/dist/client/192.0419770b69678994.js +0 -10
- package/dist/client/204.91be8cfc54d91a59.js +0 -10
- package/dist/client/238.9f784a7cdb751999.js +0 -10
- package/dist/client/263.6e1dfb1cbb1964f5.js +0 -10
- package/dist/client/35.5ee7503d9c09daa8.js +0 -10
- package/dist/client/47.6bd245f2140efd24.js +0 -10
- package/dist/client/481.03b3d2306d409933.js +0 -10
- package/dist/client/586.6a1510cabaa84f23.js +0 -10
- package/dist/client/650.8871a07b31c307ea.js +0 -10
- package/dist/client/755.e295bbd2b2a1cc21.js +0 -10
- package/dist/client/772.d51f683c55e18dd4.js +0 -10
- package/dist/client/870.84187dcb8c89b4dc.js +0 -10
- package/dist/client/933.baab3aa75f30e020.js +0 -10
- package/dist/client/987.3aee964e7f406939.js +0 -10
- package/dist/server/ai-employees/built-in/ai-coding/document/basic/flow-resource.js +0 -256
- package/dist/server/ai-employees/built-in/ai-coding/document/example/js-column/index.js +0 -48
- package/dist/server/ai-employees/built-in/ai-coding/document/example/js-column/js_columns_for_accounts_en.js +0 -452
- package/dist/server/ai-employees/built-in/ai-coding/document/example/js-column/js_columns_for_contacts_en.js +0 -363
- package/dist/server/ai-employees/built-in/ai-coding/document/example/js-column/js_columns_for_opportunities_en.js +0 -270
- package/dist/server/ai-employees/built-in/ai-coding/document/example/js-column/js_columns_for_quotations_en.d.ts +0 -13
- package/dist/server/ai-employees/built-in/ai-coding/document/example/js-column/js_columns_for_quotations_en.js +0 -219
- package/dist/server/ai-employees/built-in/ai-coding/document/example/js-column/js_columns_for_tickets_en.d.ts +0 -13
- package/dist/server/ai-employees/built-in/ai-coding/document/example/js-column/js_columns_for_tickets_en.js +0 -409
- package/dist/server/ai-employees/built-in/ai-coding/document/example/js-filter/accounts_filter_ant_style.d.ts +0 -13
- package/dist/server/ai-employees/built-in/ai-coding/document/example/js-filter/accounts_filter_ant_style.js +0 -324
- package/dist/server/ai-employees/built-in/ai-coding/document/example/js-filter/contacts_filter_ant_style.d.ts +0 -13
- package/dist/server/ai-employees/built-in/ai-coding/document/example/js-filter/contacts_filter_ant_style.js +0 -309
- package/dist/server/ai-employees/built-in/ai-coding/document/example/js-filter/index.js +0 -50
- package/dist/server/ai-employees/built-in/ai-coding/document/example/js-filter/leads_filter_ant_style.d.ts +0 -13
- package/dist/server/ai-employees/built-in/ai-coding/document/example/js-filter/leads_filter_ant_style.js +0 -345
- package/dist/server/ai-employees/built-in/ai-coding/document/example/js-filter/opportunities_filter_ant_style.d.ts +0 -13
- package/dist/server/ai-employees/built-in/ai-coding/document/example/js-filter/opportunities_filter_ant_style.js +0 -381
- package/dist/server/ai-employees/built-in/ai-coding/document/example/js-filter/product_categories_ant_style.d.ts +0 -13
- package/dist/server/ai-employees/built-in/ai-coding/document/example/js-filter/product_categories_ant_style.js +0 -545
- package/dist/server/ai-employees/built-in/ai-coding/document/example/js-filter/tickets_filter_ant_style.d.ts +0 -13
- package/dist/server/ai-employees/built-in/ai-coding/document/example/js-filter/tickets_filter_ant_style.js +0 -346
- package/dist/server/ai-employees/built-in/ai-coding/document/js-action.d.ts +0 -13
- package/dist/server/ai-employees/built-in/ai-coding/document/js-action.js +0 -102
- package/dist/server/ai-employees/built-in/ai-coding/document/js-block.d.ts +0 -13
- package/dist/server/ai-employees/built-in/ai-coding/document/js-block.js +0 -314
- package/dist/server/ai-employees/built-in/ai-coding/document/js-column.d.ts +0 -13
- package/dist/server/ai-employees/built-in/ai-coding/document/js-column.js +0 -113
- package/dist/server/ai-employees/built-in/ai-coding/document/js-field.d.ts +0 -13
- package/dist/server/ai-employees/built-in/ai-coding/document/js-field.js +0 -498
- package/dist/server/ai-employees/built-in/ai-coding/document/js-item.d.ts +0 -13
- package/dist/server/ai-employees/built-in/ai-coding/document/js-item.js +0 -184
- package/dist/server/ai-employees/built-in/ai-coding/index.d.ts +0 -37
- package/dist/server/ai-employees/built-in/ai-coding/index.js +0 -99
- package/dist/server/ai-employees/built-in/ai-coding/profile.d.ts +0 -27
- package/dist/server/ai-employees/built-in/ai-coding/profile.js +0 -60
- package/dist/server/ai-employees/built-in/ai-coding/prompt_en.md +0 -110
- package/dist/server/ai-employees/built-in/data-modeling/index.d.ts +0 -37
- package/dist/server/ai-employees/built-in/data-modeling/profile.d.ts +0 -27
- package/dist/server/ai-employees/built-in/data-modeling/profile.js +0 -60
- package/dist/server/ai-employees/built-in/data-modeling/prompt.js +0 -283
- package/dist/server/ai-employees/built-in/data-organizer/index.d.ts +0 -37
- package/dist/server/ai-employees/built-in/data-organizer/index.js +0 -63
- package/dist/server/ai-employees/built-in/data-organizer/profile.d.ts +0 -27
- package/dist/server/ai-employees/built-in/data-organizer/profile.js +0 -60
- package/dist/server/ai-employees/built-in/data-visualization/index.d.ts +0 -37
- package/dist/server/ai-employees/built-in/data-visualization/index.js +0 -58
- package/dist/server/ai-employees/built-in/data-visualization/profile.d.ts +0 -27
- package/dist/server/ai-employees/built-in/data-visualization/profile.js +0 -60
- package/dist/server/ai-employees/built-in/email-assistant/index.d.ts +0 -34
- package/dist/server/ai-employees/built-in/email-assistant/profile.d.ts +0 -27
- package/dist/server/ai-employees/built-in/email-assistant/prompt.d.ts +0 -12
- package/dist/server/ai-employees/built-in/insights-analyst/index.d.ts +0 -37
- package/dist/server/ai-employees/built-in/insights-analyst/index.js +0 -63
- package/dist/server/ai-employees/built-in/insights-analyst/profile.d.ts +0 -27
- package/dist/server/ai-employees/built-in/insights-analyst/profile.js +0 -60
- package/dist/server/ai-employees/built-in/insights-analyst/prompt.d.ts +0 -12
- package/dist/server/ai-employees/built-in/nocobase-assistant/index.d.ts +0 -34
- package/dist/server/ai-employees/built-in/nocobase-assistant/profile.d.ts +0 -27
- package/dist/server/ai-employees/built-in/nocobase-assistant/profile.js +0 -60
- package/dist/server/ai-employees/built-in/nocobase-assistant/prompt.d.ts +0 -12
- package/dist/server/ai-employees/built-in/nocobase-assistant/prompt.js +0 -52
- package/dist/server/ai-employees/built-in/research-analyst/index.d.ts +0 -37
- package/dist/server/ai-employees/built-in/research-analyst/index.js +0 -63
- package/dist/server/ai-employees/built-in/research-analyst/profile.d.ts +0 -27
- package/dist/server/ai-employees/built-in/research-analyst/profile.js +0 -60
- package/dist/server/ai-employees/built-in/research-analyst/prompt.d.ts +0 -12
- package/dist/server/ai-employees/built-in/translator/index.d.ts +0 -37
- package/dist/server/ai-employees/built-in/translator/index.js +0 -67
- package/dist/server/ai-employees/built-in/translator/profile.d.ts +0 -27
- package/dist/server/ai-employees/built-in/translator/prompt.d.ts +0 -12
- package/dist/server/document-loader/loader.worker.js +0 -68
- package/dist/server/document-loader/vendor/langchain/document_loaders/fs/text.d.ts +0 -20
- package/dist/server/document-loader/vendor/langchain/document_loaders/fs/text.js +0 -96
- /package/dist/client/ai-employees/chatbox/{Conversations.d.ts → conversations/Conversations.d.ts} +0 -0
- /package/dist/server/migrations/{20250923221107-setup-build-in.d.ts → 20260306000001-migrate-skill-settings-tools.d.ts} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
(
|
|
1
|
+
(()=>{var t={16:function(t,e,i){t=i.nmd(t);
|
|
2
2
|
/**!
|
|
3
3
|
* FlexSearch.js v0.8.212 (Bundle)
|
|
4
4
|
* Author and Copyright: Thomas Wilkerling
|
|
5
5
|
* Licence: Apache-2.0
|
|
6
6
|
* Hosted by Nextapps GmbH
|
|
7
7
|
* https://github.com/nextapps-de/flexsearch
|
|
8
|
-
*/(function _f(e){"use strict";if(true)e=t;else{}e._factory=_f;var n;function H(t,e,i){const n=typeof i,s=typeof t;if(n!=="undefined"){if(s!=="undefined"){if(i){if(s==="function"&&n===s)return function(e){return t(i(e))};e=t.constructor;if(e===i.constructor){if(e===Array)return i.concat(t);if(e===Map){var r=new Map(i);for(var o of t)r.set(o[0],o[1]);return r}if(e===Set){o=new Set(i);for(r of t.values())o.add(r);return o}}}return t}return i}return s==="undefined"?e:t}function aa(t,e){return typeof t==="undefined"?e:t}function I(){return Object.create(null)}function M(t){return typeof t==="string"}function ba(t){return typeof t==="object"}function ca(t,e){if(M(e))t=t[e];else for(let i=0;t&&i<e.length;i++)t=t[e[i]];return t}const s=/[^\p{L}\p{N}]+/u,r=/(\d{3})/g,o=/(\D)(\d{3})/g,l=/(\d{3})(\D)/g,a=/[\u0300-\u036f]/g;function ka(t={}){if(!this||this.constructor!==ka)return new ka(...arguments);if(arguments.length)for(t=0;t<arguments.length;t++)this.assign(arguments[t]);else this.assign(t)}n=ka.prototype;n.assign=function(t){this.normalize=H(t.normalize,!0,this.normalize);let e=t.include,i=e||t.exclude||t.split,n;if(i||i===""){if(typeof i==="object"&&i.constructor!==RegExp){let t="";n=!e;e||(t+="\\p{Z}");i.letter&&(t+="\\p{L}");i.number&&(t+="\\p{N}",n=!!e);i.symbol&&(t+="\\p{S}");i.punctuation&&(t+="\\p{P}");i.control&&(t+="\\p{C}");if(i=i.char)t+=typeof i==="object"?i.join(""):i;try{this.split=new RegExp("["+(e?"^":"")+t+"]+","u")}catch(t){this.split=/\s+/}}else this.split=i,n=i===!1||"a1a".split(i).length<2;this.numeric=H(t.numeric,n)}else{try{this.split=H(this.split,s)}catch(t){this.split=/\s+/}this.numeric=H(t.numeric,H(this.numeric,!0))}this.prepare=H(t.prepare,null,this.prepare);this.finalize=H(t.finalize,null,this.finalize);i=t.filter;this.filter=typeof i==="function"?i:H(i&&new Set(i),null,this.filter);this.dedupe=H(t.dedupe,!0,this.dedupe);this.matcher=H((i=t.matcher)&&new Map(i),null,this.matcher);this.mapper=H((i=t.mapper)&&new Map(i),null,this.mapper);this.stemmer=H((i=t.stemmer)&&new Map(i),null,this.stemmer);this.replacer=H(t.replacer,null,this.replacer);this.minlength=H(t.minlength,1,this.minlength);this.maxlength=H(t.maxlength,1024,this.maxlength);this.rtl=H(t.rtl,!1,this.rtl);if(this.cache=i=H(t.cache,!0,this.cache))this.F=null,this.L=typeof i==="number"?i:2e5,this.B=new Map,this.D=new Map,this.I=this.H=128;this.h="";this.J=null;this.A="";this.K=null;if(this.matcher)for(const t of this.matcher.keys())this.h+=(this.h?"|":"")+t;if(this.stemmer)for(const t of this.stemmer.keys())this.A+=(this.A?"|":"")+t;return this};n.addStemmer=function(t,e){this.stemmer||(this.stemmer=new Map);this.stemmer.set(t,e);this.A+=(this.A?"|":"")+t;this.K=null;this.cache&&Q(this);return this};n.addFilter=function(t){typeof t==="function"?this.filter=t:(this.filter||(this.filter=new Set),this.filter.add(t));this.cache&&Q(this);return this};n.addMapper=function(t,e){if(typeof t==="object")return this.addReplacer(t,e);if(t.length>1)return this.addMatcher(t,e);this.mapper||(this.mapper=new Map);this.mapper.set(t,e);this.cache&&Q(this);return this};n.addMatcher=function(t,e){if(typeof t==="object")return this.addReplacer(t,e);if(t.length<2&&(this.dedupe||this.mapper))return this.addMapper(t,e);this.matcher||(this.matcher=new Map);this.matcher.set(t,e);this.h+=(this.h?"|":"")+t;this.J=null;this.cache&&Q(this);return this};n.addReplacer=function(t,e){if(typeof t==="string")return this.addMatcher(t,e);this.replacer||(this.replacer=[]);this.replacer.push(t,e);this.cache&&Q(this);return this};n.encode=function(t,e){if(this.cache&&t.length<=this.H)if(this.F){if(this.B.has(t))return this.B.get(t)}else this.F=setTimeout(Q,50,this);this.normalize&&(typeof this.normalize==="function"?t=this.normalize(t):t=a?t.normalize("NFKD").replace(a,"").toLowerCase():t.toLowerCase());this.prepare&&(t=this.prepare(t));this.numeric&&t.length>3&&(t=t.replace(o,"$1 $2").replace(l,"$1 $2").replace(r,"$1 "));const i=!(this.dedupe||this.mapper||this.filter||this.matcher||this.stemmer||this.replacer);let n=[],s=I(),c,f,u=this.split||this.split===""?t.split(this.split):[t];for(let t=0,r,o;t<u.length;t++)if((r=o=u[t])&&!(r.length<this.minlength||r.length>this.maxlength)){if(e){if(s[r])continue;s[r]=1}else{if(c===r)continue;c=r}if(i)n.push(r);else if(!this.filter||(typeof this.filter==="function"?this.filter(r):!this.filter.has(r))){if(this.cache&&r.length<=this.I)if(this.F){var g=this.D.get(r);if(g||g===""){g&&n.push(g);continue}}else this.F=setTimeout(Q,50,this);if(this.stemmer){this.K||(this.K=new RegExp("(?!^)("+this.A+")$"));let t;for(;t!==r&&r.length>2;)t=r,r=r.replace(this.K,(t=>this.stemmer.get(t)))}if(r&&(this.mapper||this.dedupe&&r.length>1)){g="";for(let t=0,e="",i,n;t<r.length;t++)i=r.charAt(t),i===e&&this.dedupe||((n=this.mapper&&this.mapper.get(i))||n===""?n===e&&this.dedupe||!(e=n)||(g+=n):g+=e=i);r=g}this.matcher&&r.length>1&&(this.J||(this.J=new RegExp("("+this.h+")","g")),r=r.replace(this.J,(t=>this.matcher.get(t))));if(r&&this.replacer)for(g=0;r&&g<this.replacer.length;g+=2)r=r.replace(this.replacer[g],this.replacer[g+1]);this.cache&&o.length<=this.I&&(this.D.set(o,r),this.D.size>this.L&&(this.D.clear(),this.I=this.I/1.1|0));if(r){if(r!==o)if(e){if(s[r])continue;s[r]=1}else{if(f===r)continue;f=r}n.push(r)}}}this.finalize&&(n=this.finalize(n)||n);this.cache&&t.length<=this.H&&(this.B.set(t,n),this.B.size>this.L&&(this.B.clear(),this.H=this.H/1.1|0));return n};function Q(t){t.F=null;t.B.clear();t.D.clear()}function la(t,e,i){i||(e||typeof t!=="object"?typeof e==="object"&&(i=e,e=0):i=t);i&&(t=i.query||t,e=i.limit||e);let n=""+(e||0);i&&(n+=(i.offset||0)+!!i.context+!!i.suggest+(i.resolve!==!1)+(i.resolution||this.resolution)+(i.boost||0));t=(""+t).toLowerCase();this.cache||(this.cache=new ma);let s=this.cache.get(t+n);if(!s){const r=i&&i.cache;r&&(i.cache=!1);s=this.search(t,e,i);r&&(i.cache=r);this.cache.set(t+n,s)}return s}function ma(t){this.limit=t&&t!==!0?t:1e3;this.cache=new Map;this.h=""}ma.prototype.set=function(t,e){this.cache.set(this.h=t,e);this.cache.size>this.limit&&this.cache.delete(this.cache.keys().next().value)};ma.prototype.get=function(t){const e=this.cache.get(t);e&&this.h!==t&&(this.cache.delete(t),this.cache.set(this.h=t,e));return e};ma.prototype.remove=function(t){for(const e of this.cache){const i=e[0];e[1].includes(t)&&this.cache.delete(i)}};ma.prototype.clear=function(){this.cache.clear();this.h=""};const c={normalize:!1,numeric:!1,dedupe:!1};const f={};const u=new Map([["b","p"],["v","f"],["w","f"],["z","s"],["x","s"],["d","t"],["n","m"],["c","k"],["g","k"],["j","k"],["q","k"],["i","e"],["y","e"],["u","o"]]);const g=new Map([["ae","a"],["oe","o"],["sh","s"],["kh","k"],["th","t"],["ph","f"],["pf","f"]]),d=[/([^aeo])h(.)/g,"$1$2",/([aeo])h([^aeo]|$)/g,"$1$2",/(.)\1+/g,"$1"];const p={a:"",e:"",i:"",o:"",u:"",y:"",b:1,f:1,p:1,v:1,c:2,g:2,j:2,k:2,q:2,s:2,x:2,z:2,"ß":2,d:3,t:3,l:4,m:5,n:5,r:6};var m={Exact:c,Default:f,Normalize:f,LatinBalance:{mapper:u},LatinAdvanced:{mapper:u,matcher:g,replacer:d},LatinExtra:{mapper:u,replacer:d.concat([/(?!^)[aeo]/g,""]),matcher:g},LatinSoundex:{dedupe:!1,include:{letter:!0},finalize:function(t){for(let i=0;i<t.length;i++){var e=t[i];let n=e.charAt(0),s=p[n];for(let t=1,i;t<e.length&&(i=e.charAt(t),i==="h"||i==="w"||!(i=p[i])||i===s||(n+=i,s=i,n.length!==4));t++);t[i]=n}}},CJK:{split:""},LatinExact:c,LatinDefault:f,LatinSimple:f};function wa(t,e,i,n){let s=[];for(let r=0,o;r<t.index.length;r++)if(o=t.index[r],e>=o.length)e-=o.length;else{e=o[n?"splice":"slice"](e,i);const r=e.length;if(r&&(s=s.length?s.concat(e):e,i-=r,n&&(t.length-=r),!i))break;e=0}return s}function xa(t){if(!this||this.constructor!==xa)return new xa(t);this.index=t?[t]:[];this.length=t?t.length:0;const e=this;return new Proxy([],{get(t,i){if(i==="length")return e.length;if(i==="push")return function(t){e.index[e.index.length-1].push(t);e.length++};if(i==="pop")return function(){if(e.length)return e.length--,e.index[e.index.length-1].pop()};if(i==="indexOf")return function(t){let i=0;for(let n=0,s,r;n<e.index.length;n++){s=e.index[n];r=s.indexOf(t);if(r>=0)return i+r;i+=s.length}return-1};if(i==="includes")return function(t){for(let i=0;i<e.index.length;i++)if(e.index[i].includes(t))return!0;return!1};if(i==="slice")return function(t,i){return wa(e,t||0,i||e.length,!1)};if(i==="splice")return function(t,i){return wa(e,t||0,i||e.length,!0)};if(i==="constructor")return Array;if(typeof i!=="symbol")return(t=e.index[i/2**31|0])&&t[i]},set(t,i,n){t=i/2**31|0;(e.index[t]||(e.index[t]=[]))[i]=n;e.length++;return!0}})}xa.prototype.clear=function(){this.index.length=0};xa.prototype.push=function(){};function R(t=8){if(!this||this.constructor!==R)return new R(t);this.index=I();this.h=[];this.size=0;t>32?(this.B=Aa,this.A=BigInt(t)):(this.B=Ba,this.A=t)}R.prototype.get=function(t){const e=this.index[this.B(t)];return e&&e.get(t)};R.prototype.set=function(t,e){var i=this.B(t);let n=this.index[i];n?(i=n.size,n.set(t,e),(i-=n.size)&&this.size++):(this.index[i]=n=new Map([[t,e]]),this.h.push(n),this.size++)};function S(t=8){if(!this||this.constructor!==S)return new S(t);this.index=I();this.h=[];this.size=0;t>32?(this.B=Aa,this.A=BigInt(t)):(this.B=Ba,this.A=t)}S.prototype.add=function(t){var e=this.B(t);let i=this.index[e];i?(e=i.size,i.add(t),(e-=i.size)&&this.size++):(this.index[e]=i=new Set([t]),this.h.push(i),this.size++)};n=R.prototype;n.has=S.prototype.has=function(t){const e=this.index[this.B(t)];return e&&e.has(t)};n.delete=S.prototype.delete=function(t){const e=this.index[this.B(t)];e&&e.delete(t)&&this.size--};n.clear=S.prototype.clear=function(){this.index=I();this.h=[];this.size=0};n.values=S.prototype.values=function*(){for(let t=0;t<this.h.length;t++)for(let e of this.h[t].values())yield e};n.keys=S.prototype.keys=function*(){for(let t=0;t<this.h.length;t++)for(let e of this.h[t].keys())yield e};n.entries=S.prototype.entries=function*(){for(let t=0;t<this.h.length;t++)for(let e of this.h[t].entries())yield e};function Ba(t){let e=2**this.A-1;if(typeof t=="number")return t&e;let i=0,n=this.A+1;for(let s=0;s<t.length;s++)i=(i*n^t.charCodeAt(s))&e;return this.A===32?i+2**31:i}function Aa(t){let e=BigInt(2)**this.A-BigInt(1);var i=typeof t;if(i==="bigint")return t&e;if(i==="number")return BigInt(t)&e;i=BigInt(0);let n=this.A+BigInt(1);for(let s=0;s<t.length;s++)i=(i*n^BigInt(t.charCodeAt(s)))&e;return i}let w,y;async function Ea(t){t=t.data;var i=t.task;const n=t.id;let s=t.args;switch(i){case"init":y=t.options||{};(i=t.factory)?(Function("return "+i)()(e),w=new e.FlexSearch.Index(y),delete e.FlexSearch):w=new T(y);postMessage({id:n});break;default:let r;i==="export"&&(s[1]?(s[0]=y.export,s[2]=0,s[3]=1):s=null);i==="import"?s[0]&&(t=await y.import.call(w,s[0]),w.import(s[0],t)):((r=s&&w[i].apply(w,s))&&r.then&&(r=await r),r&&r.await&&(r=await r.await),i==="search"&&r.result&&(r=r.result));postMessage(i==="search"?{id:n,msg:r}:{id:n})}}function Fa(t){Ga.call(t,"add");Ga.call(t,"append");Ga.call(t,"search");Ga.call(t,"update");Ga.call(t,"remove");Ga.call(t,"searchCache")}let x,k,v;function Ka(){x=v=0}function Ga(t){this[t+"Async"]=function(){const e=arguments;var i=e[e.length-1];let n;typeof i==="function"&&(n=i,delete e[e.length-1]);x?v||(v=Date.now()-k>=this.priority*this.priority*3):(x=setTimeout(Ka,0),k=Date.now());if(v){const i=this;return new Promise((n=>{setTimeout((function(){n(i[t+"Async"].apply(i,e))}),0)}))}const s=this[t].apply(this,e);i=s.then?s:new Promise((t=>t(s)));n&&i.then(n);return i}}let _=0;function La(t={},i){function b(e){function h(t){t=t.data||t;const e=t.id,i=e&&r.h[e];i&&(i(t.msg),delete r.h[e])}this.worker=e;this.h=I();if(this.worker){s?this.worker.on("message",h):this.worker.onmessage=h;if(t.config)return new Promise((function(e){_>1e9&&(_=0);r.h[++_]=function(){e(r)};r.worker.postMessage({id:_,task:"init",factory:n,options:t})}));this.priority=t.priority||4;this.encoder=i||null;this.worker.postMessage({task:"init",factory:n,options:t});return this}}if(!this||this.constructor!==La)return new La(t);let n=typeof e!=="undefined"?e._factory:typeof window!=="undefined"?window._factory:null;n&&(n=n.toString());const s=typeof window==="undefined",r=this,o=Ma(n,s,t.worker);return o.then?o.then((function(t){return b.call(r,t)})):b.call(this,o)}W("add");W("append");W("search");W("update");W("remove");W("clear");W("export");W("import");La.prototype.searchCache=la;Fa(La.prototype);function W(t){La.prototype[t]=function(){const e=this,i=[].slice.call(arguments);var n=i[i.length-1];let s;typeof n==="function"&&(s=n,i.pop());n=new Promise((function(n){t==="export"&&typeof i[0]==="function"&&(i[0]=null);_>1e9&&(_=0);e.h[++_]=n;e.worker.postMessage({task:t,id:_,args:i})}));return s?(n.then(s),this):n}}function Ma(t,e,n){return e?true?new(i(267).Worker)(i.ab+"node.js"):0:t?new window.Worker(URL.createObjectURL(new Blob(["onmessage="+Ea.toString()],{type:"text/javascript"}))):new window.Worker(typeof n==="string"?n:(0,eval)("import.meta.url").replace("/worker.js","/worker/worker.js").replace("flexsearch.bundle.module.min.js","module/worker/worker.js").replace("flexsearch.bundle.module.min.mjs","module/worker/worker.js"),{type:"module"})}Na.prototype.add=function(t,e,i){ba(t)&&(e=t,t=ca(e,this.key));if(e&&(t||t===0)){if(!i&&this.reg.has(t))return this.update(t,e);for(let r=0,o;r<this.field.length;r++){o=this.B[r];var n=this.index.get(this.field[r]);if(typeof o==="function"){var s=o(e);s&&n.add(t,s,i,!0)}else if(s=o.G,!s||s(e))o.constructor===String?o=[""+o]:M(o)&&(o=[o]),Oa(e,o,this.D,0,n,t,o[0],i)}if(this.tag)for(n=0;n<this.A.length;n++){var r=this.A[n];s=this.tag.get(this.F[n]);let l=I();if(typeof r==="function"){if(r=r(e),!r)continue}else{var o=r.G;if(o&&!o(e))continue;r.constructor===String&&(r=""+r);r=ca(e,r)}if(s&&r){M(r)&&(r=[r]);for(let e=0,n,a;e<r.length;e++)if(n=r[e],!l[n]&&(l[n]=1,(o=s.get(n))?a=o:s.set(n,a=[]),!i||!a.includes(t))){if(a.length===2**31-1){o=new xa(a);if(this.fastupdate)for(let t of this.reg.values())t.includes(a)&&(t[t.indexOf(a)]=o);s.set(n,a=o)}a.push(t);this.fastupdate&&((o=this.reg.get(t))?o.push(a):this.reg.set(t,[a]))}}}if(this.store&&(!i||!this.store.has(t))){let n;if(this.h){n=I();for(let t=0,s;t<this.h.length;t++){s=this.h[t];if((i=s.G)&&!i(e))continue;let r;if(typeof s==="function"){r=s(e);if(!r)continue;s=[s.O]}else if(M(s)||s.constructor===String){n[s]=e[s];continue}Ra(e,n,s,0,s[0],r)}}this.store.set(t,n||e)}this.worker&&(this.fastupdate||this.reg.add(t))}return this};function Ra(t,e,i,n,s,r){t=t[s];if(n===i.length-1)e[s]=r||t;else if(t)if(t.constructor===Array)for(e=e[s]=Array(t.length),s=0;s<t.length;s++)Ra(t,e,i,n,s);else e=e[s]||(e[s]=I()),s=i[++n],Ra(t,e,i,n,s)}function Oa(t,e,i,n,s,r,o,l){if(t=t[o])if(n===e.length-1){if(t.constructor===Array){if(i[n]){for(e=0;e<t.length;e++)s.add(r,t[e],!0,!0);return}t=t.join(" ")}s.add(r,t,l,!0)}else if(t.constructor===Array)for(o=0;o<t.length;o++)Oa(t,e,i,n,s,r,o,l);else o=e[++n],Oa(t,e,i,n,s,r,o,l)}function Sa(t,e,i,n){if(!t.length)return t;if(t.length===1)return t=t[0],t=i||t.length>e?t.slice(i,i+e):t,n?Ta.call(this,t):t;let s=[];for(let r=0,o,l;r<t.length;r++)if((o=t[r])&&(l=o.length)){if(i){if(i>=l){i-=l;continue}o=o.slice(i,i+e);l=o.length;i=0}l>e&&(o=o.slice(0,e),l=e);if(!s.length&&l>=e)return n?Ta.call(this,o):o;s.push(o);e-=l;if(!e)break}s=s.length>1?[].concat.apply([],s):s[0];return n?Ta.call(this,s):s}function Ua(t,e,i,n){var s=n[0];if(s[0]&&s[0].query)return t[e].apply(t,s);if(!(e!=="and"&&e!=="not"||t.result.length||t.await||s.suggest))return n.length>1&&(s=n[n.length-1]),(n=s.resolve)?t.await||t.result:t;let r=[],o=0,l=0,a,c,f,u,g;for(e=0;e<n.length;e++)if(s=n[e]){var d=void 0;if(s.constructor===X)d=s.await||s.result;else if(s.then||s.constructor===Array)d=s;else{o=s.limit||0;l=s.offset||0;f=s.suggest;c=s.resolve;a=((u=s.highlight||t.highlight)||s.enrich)&&c;d=s.queue;let i=s.async||d,n=s.index,p=s.query;n?t.index||(t.index=n):n=t.index;if(p||s.tag){const o=s.field||s.pluck;o&&(!p||t.query&&!u||(t.query=p,t.field=o,t.highlight=u),n=n.index.get(o));if(d&&(g||t.await)){g=1;let o;const l=t.C.length,a=new Promise((function(t){o=t}));(function(e,n){a.h=function(){n.index=null;n.resolve=!1;let s=i?e.searchAsync(n):e.search(n);if(s.then)return s.then((function(e){t.C[l]=e=e.result||e;o(e);return e}));s=s.result||s;o(s);return s}})(n,Object.assign({},s));t.C.push(a);r[e]=a;continue}else s.resolve=!1,s.index=null,d=i?n.searchAsync(s):n.search(s),s.resolve=c,s.index=n}else if(s.and)d=Va(s,"and",n);else if(s.or)d=Va(s,"or",n);else if(s.not)d=Va(s,"not",n);else if(s.xor)d=Va(s,"xor",n);else continue}d.await?(g=1,d=d.await):d.then?(g=1,d=d.then((function(t){return t.result||t}))):d=d.result||d;r[e]=d}g&&!t.await&&(t.await=new Promise((function(e){t.return=e})));if(g){const e=Promise.all(r).then((function(n){for(let s=0;s<t.C.length;s++)if(t.C[s]===e){t.C[s]=function(){return i.call(t,n,o,l,a,c,f,u)};break}Wa(t)}));t.C.push(e)}else if(t.await)t.C.push((function(){return i.call(t,r,o,l,a,c,f,u)}));else return i.call(t,r,o,l,a,c,f,u);return c?t.await||t.result:t}function Va(t,e,i){t=t[e];const n=t[0]||t;n.index||(n.index=i);i=new X(n);t.length>1&&(i=i[e].apply(i,t.slice(1)));return i}X.prototype.or=function(){return Ua(this,"or",Xa,arguments)};function Xa(t,e,i,n,s,r,o){t.length&&(this.result.length&&t.push(this.result),t.length<2?this.result=t[0]:(this.result=Ya(t,e,i,!1,this.h),i=0));s&&(this.await=null);return s?this.resolve(e,i,n,o):this}X.prototype.and=function(){return Ua(this,"and",Za,arguments)};function Za(t,e,i,n,s,r,o){if(!r&&!this.result.length)return s?this.result:this;let l;if(t.length)if(this.result.length&&t.unshift(this.result),t.length<2)this.result=t[0];else{let n=0;for(let e=0,i,s;e<t.length;e++)if((i=t[e])&&(s=i.length))n<s&&(n=s);else if(!r){n=0;break}n?(this.result=$a(t,n,e,i,r,this.h,s),l=!0):this.result=[]}else r||(this.result=t);s&&(this.await=null);return s?this.resolve(e,i,n,o,l):this}X.prototype.xor=function(){return Ua(this,"xor",ab,arguments)};function ab(t,e,i,n,s,r,o){if(t.length)if(this.result.length&&t.unshift(this.result),t.length<2)this.result=t[0];else{t:{r=i;var l=this.h;const n=[],o=I();let a=0;for(let e=0,i;e<t.length;e++)if(i=t[e]){a<i.length&&(a=i.length);for(let t=0,e;t<i.length;t++)if(e=i[t])for(let t=0,i;t<e.length;t++)i=e[t],o[i]=o[i]?2:1}for(let i=0,c,f=0;i<a;i++)for(let a=0,u;a<t.length;a++)if(u=t[a])if(c=u[i])for(let u=0,g;u<c.length;u++)if(g=c[u],o[g]===1)if(r)r--;else if(s){if(n.push(g),n.length===e){t=n;break t}}else{const s=i+(a?l:0);n[s]||(n[s]=[]);n[s].push(g);if(++f===e){t=n;break t}}t=n}this.result=t;l=!0}else r||(this.result=t);s&&(this.await=null);return s?this.resolve(e,i,n,o,l):this}X.prototype.not=function(){return Ua(this,"not",bb,arguments)};function bb(t,e,i,n,s,r,o){if(!r&&!this.result.length)return s?this.result:this;if(t.length&&this.result.length){t:{r=i;var l=[];t=new Set(t.flat().flat());for(let i=0,n,o=0;i<this.result.length;i++)if(n=this.result[i])for(let a=0,c;a<n.length;a++)if(c=n[a],!t.has(c))if(r)r--;else if(s){if(l.push(c),l.length===e){t=l;break t}}else if(l[i]||(l[i]=[]),l[i].push(c),++o===e){t=l;break t}t=l}this.result=t;l=!0}s&&(this.await=null);return s?this.resolve(e,i,n,o,l):this}function cb(t,e,i,n,s){let r,o,l;typeof s==="string"?(r=s,s=""):r=s.template;o=r.indexOf("$1");l=r.substring(o+2);o=r.substring(0,o);let a=s&&s.boundary,c=!s||s.clip!==!1,f=s&&s.merge&&l&&o&&new RegExp(l+" "+o,"g");s=s&&s.ellipsis;var u=0;if(typeof s==="object"){var g=s.template;u=g.length-2;s=s.pattern}typeof s!=="string"&&(s=s===!1?"":"...");u&&(s=g.replace("$1",s));g=s.length-u;let d,p;typeof a==="object"&&(d=a.before,d===0&&(d=-1),p=a.after,p===0&&(p=-1),a=a.total||9e5);u=new Map;for(let N=0,$,E,G;N<e.length;N++){let J;if(n)J=e,G=n;else{var m=e[N];G=m.field;if(!G)continue;J=m.result}E=i.get(G);$=E.encoder;m=u.get($);typeof m!=="string"&&(m=$.encode(t),u.set($,m));for(let t=0;t<J.length;t++){var w=J[t].doc;if(!w)continue;w=ca(w,G);if(!w)continue;var y=w.trim().split(/\s+/);if(!y.length)continue;w="";var x=[];let e=[];var k=-1,v=-1,_=0;for(var A=0;A<y.length;A++){var j=y[A],z=$.encode(j);z=z.length>1?z.join(" "):z[0];let t;if(z&&j){var B=j.length,C=($.split?j.replace($.split,""):j).length-z.length,O="",L=0;for(var q=0;q<m.length;q++){var D=m[q];if(D){var F=D.length;F+=C<0?0:C;L&&F<=L||(D=z.indexOf(D),D>-1&&(O=(D?j.substring(0,D):"")+o+j.substring(D,D+F)+l+(D+F<B?j.substring(D+F):""),L=F,t=!0))}}O&&(a&&(k<0&&(k=w.length+(w?1:0)),v=w.length+(w?1:0)+O.length,_+=B,e.push(x.length),x.push({match:O})),w+=(w?" ":"")+O)}if(!t)j=y[A],w+=(w?" ":"")+j,a&&x.push({text:j});else if(a&&_>=a)break}_=e.length*(r.length-2);if(d||p||a&&w.length-_>a)if(_=a+_-g*2,A=v-k,d>0&&(A+=d),p>0&&(A+=p),A<=_)y=d?k-(d>0?d:0):k-((_-A)/2|0),x=p?v+(p>0?p:0):y+_,c||(y>0&&w.charAt(y)!==" "&&w.charAt(y-1)!==" "&&(y=w.indexOf(" ",y),y<0&&(y=0)),x<w.length&&w.charAt(x-1)!==" "&&w.charAt(x)!==" "&&(x=w.lastIndexOf(" ",x),x<v?x=v:++x)),w=(y?s:"")+w.substring(y,x)+(x<w.length?s:"");else{v=[];k={};_={};A={};j={};z={};O=C=B=0;for(q=L=1;;){var P=void 0;for(let t=0,i;t<e.length;t++){i=e[t];if(O)if(C!==O){if(A[t+1])continue;i+=O;if(k[i]){B-=g;_[t+1]=1;A[t+1]=1;continue}if(i>=x.length-1){if(i>=x.length){A[t+1]=1;i>=y.length&&(_[t+1]=1);continue}B-=g}w=x[i].text;if(F=p&&z[t])if(F>0){if(w.length>F)if(A[t+1]=1,c)w=w.substring(0,F);else continue;(F-=w.length)||(F=-1);z[t]=F}else{A[t+1]=1;continue}if(B+w.length+1<=a)w=" "+w,v[t]+=w;else if(c)P=a-B-1,P>0&&(w=" "+w.substring(0,P),v[t]+=w),A[t+1]=1;else{A[t+1]=1;continue}}else{if(A[t])continue;i-=C;if(k[i]){B-=g;A[t]=1;_[t]=1;continue}if(i<=0){if(i<0){A[t]=1;_[t]=1;continue}B-=g}w=x[i].text;if(F=d&&j[t])if(F>0){if(w.length>F)if(A[t]=1,c)w=w.substring(w.length-F);else continue;(F-=w.length)||(F=-1);j[t]=F}else{A[t]=1;continue}if(B+w.length+1<=a)w+=" ",v[t]=w+v[t];else if(c)P=w.length+1-(a-B),P>=0&&P<w.length&&(w=w.substring(P)+" ",v[t]=w+v[t]),A[t]=1;else{A[t]=1;continue}}else{w=x[i].match;d&&(j[t]=d);p&&(z[t]=p);t&&B++;let e;i?!t&&g&&(B+=g):(_[t]=1,A[t]=1);i>=y.length-1?e=1:i<x.length-1&&x[i+1].match?e=1:g&&(B+=g);B-=r.length-2;if(!t||B+w.length<=a)v[t]=w;else{P=L=q=_[t]=0;break}e&&(_[t+1]=1,A[t+1]=1)}B+=w.length;P=k[i]=1}if(P)C===O?O++:C++;else{C===O?L=0:q=0;if(!L&&!q)break;L?(C++,O=C):O++}}w="";for(let t=0,e;t<v.length;t++)e=(_[t]?t?" ":"":(t&&!s?" ":"")+s)+v[t],w+=e;s&&!_[v.length]&&(w+=s)}f&&(w=w.replace(f," "));J[t].highlight=w}if(n)break}return e}function X(t,e){if(!this||this.constructor!==X)return new X(t,e);let i=0,n,s,r,o,l,a;if(t&&t.index){const n=t;e=n.index;i=n.boost||0;if(s=n.query){r=n.field||n.pluck;o=n.highlight;const i=n.resolve;t=n.async||n.queue;n.resolve=!1;n.index=null;t=t?e.searchAsync(n):e.search(n);n.resolve=i;n.index=e;t=t.result||t}else t=[]}if(t&&t.then){const e=this;t=t.then((function(t){e.C[0]=e.result=t.result||t;Wa(e)}));n=[t];t=[];l=new Promise((function(t){a=t}))}this.index=e||null;this.result=t||[];this.h=i;this.C=n||[];this.await=l||null;this.return=a||null;this.highlight=o||null;this.query=s||"";this.field=r||""}n=X.prototype;n.limit=function(t){if(this.await){const e=this;this.C.push((function(){return e.limit(t).result}))}else if(this.result.length){const e=[];for(let i=0,n;i<this.result.length;i++)if(n=this.result[i])if(n.length<=t){if(e[i]=n,t-=n.length,!t)break}else{e[i]=n.slice(0,t);break}this.result=e}return this};n.offset=function(t){if(this.await){const e=this;this.C.push((function(){return e.offset(t).result}))}else if(this.result.length){const e=[];for(let i=0,n;i<this.result.length;i++)if(n=this.result[i])n.length<=t?t-=n.length:(e[i]=n.slice(t),t=0);this.result=e}return this};n.boost=function(t){if(this.await){const e=this;this.C.push((function(){return e.boost(t).result}))}else this.h+=t;return this};function Wa(t,e){let i=t.result;var n=t.await;t.await=null;for(let e=0,s;e<t.C.length;e++)if(s=t.C[e])if(typeof s==="function")i=s(),t.C[e]=i=i.result||i,e--;else if(s.h)i=s.h(),t.C[e]=i=i.result||i,e--;else if(s.then)return t.await=n;n=t.return;t.C=[];t.return=null;e||n(i);return i}n.resolve=function(t,e,i,n,s){let r=this.await?Wa(this,!0):this.result;if(r.then){const o=this;return r.then((function(){return o.resolve(t,e,i,n,s)}))}r.length&&(typeof t==="object"?(n=t.highlight||this.highlight,i=!!n||t.enrich,e=t.offset,t=t.limit):(n=n||this.highlight,i=!!n||i),r=s?i?Ta.call(this.index,r):r:Sa.call(this.index,r,t||100,e,i));return this.finalize(r,n)};n.finalize=function(t,e){if(t.then){const i=this;return t.then((function(t){return i.finalize(t,e)}))}e&&t.length&&this.query&&(t=cb(this.query,t,this.index.index,this.field,e));const i=this.return;this.highlight=this.index=this.result=this.C=this.await=this.return=null;this.query=this.field="";i&&i(t);return t};function $a(t,e,i,n,s,r,o){const l=t.length;let a=[],c,f;c=I();for(let u=0,g,d,p,m;u<e;u++)for(let e=0;e<l;e++)if(p=t[e],u<p.length&&(g=p[u]))for(let t=0;t<g.length;t++){d=g[t];(f=c[d])?c[d]++:(f=0,c[d]=1);m=a[f]||(a[f]=[]);if(!o){let t=u+(e||!s?0:r||0);m=m[t]||(m[t]=[])}m.push(d);if(o&&i&&f===l-1&&m.length-n===i)return n?m.slice(n):m}if(t=a.length)if(s)a=a.length>1?Ya(a,i,n,o,r):(a=a[0])&&i&&a.length>i||n?a.slice(n,i+n):a;else{if(t<l)return[];a=a[t-1];if(i||n)if(o){if(a.length>i||n)a=a.slice(n,i+n)}else{s=[];for(let t=0,e;t<a.length;t++)if(e=a[t])if(n&&e.length>n)n-=e.length;else{if(i&&e.length>i||n)e=e.slice(n,i+n),i-=e.length,n&&(n-=e.length);s.push(e);if(!i)break}a=s}}return a}function Ya(t,e,i,n,s){const r=[],o=I();let l;var a=t.length;let c;if(n)for(s=a-1;s>=0;s--){if(c=(n=t[s])&&n.length)for(a=0;a<c;a++)if(l=n[a],!o[l])if(o[l]=1,i)i--;else if(r.push(l),r.length===e)return r}else for(let f=a-1,u,g=0;f>=0;f--){u=t[f];for(let t=0;t<u.length;t++)if(c=(n=u[t])&&n.length)for(let u=0;u<c;u++)if(l=n[u],!o[l])if(o[l]=1,i)i--;else{let i=(t+(f<a-1?s||0:0))/(f+1)|0;(r[i]||(r[i]=[])).push(l);if(++g===e)return r}}return r}function db(t,e,i,n,s){const r=I(),o=[];for(let t=0,i;t<e.length;t++){i=e[t];for(let t=0;t<i.length;t++)r[i[t]]=1}if(s)for(let e=0,s;e<t.length;e++){if(s=t[e],r[s])if(n)n--;else if(o.push(s),r[s]=0,i&&--i===0)break}else for(let i=0,n,s;i<t.result.length;i++)for(n=t.result[i],e=0;e<n.length;e++)s=n[e],r[s]&&((o[i]||(o[i]=[])).push(s),r[s]=0);return o}I();Na.prototype.search=function(t,e,i,n){i||(!e&&ba(t)?(i=t,t=""):ba(e)&&(i=e,e=0));let s=[];var r=[];let o;let l,a,c,f,u;let g=0,d=!0,p;if(i){i.constructor===Array&&(i={index:i});t=i.query||t;o=i.pluck;l=i.merge;c=i.boost;u=o||i.field||(u=i.index)&&(u.index?null:u);var m=this.tag&&i.tag;a=i.suggest;d=i.resolve!==!1;f=i.cache;p=d&&this.store&&i.highlight;var w=!!p||d&&this.store&&i.enrich;e=i.limit||e;var y=i.offset||0;e||(e=d?100:0);if(m&&(!this.db||!n)){m.constructor!==Array&&(m=[m]);var x=[];for(let t=0,e;t<m.length;t++)if(e=m[t],e.field&&e.tag){var k=e.tag;if(k.constructor===Array)for(var v=0;v<k.length;v++)x.push(e.field,k[v]);else x.push(e.field,k)}else{k=Object.keys(e);for(let t=0,i,n;t<k.length;t++)if(i=k[t],n=e[i],n.constructor===Array)for(v=0;v<n.length;v++)x.push(i,n[v]);else x.push(i,n)}m=x;if(!t){r=[];if(x.length)for(m=0;m<x.length;m+=2){if(this.db){n=this.index.get(x[m]);if(!n)continue;r.push(n=n.db.tag(x[m+1],e,y,w))}else n=eb.call(this,x[m],x[m+1],e,y,w);s.push(d?{field:x[m],tag:x[m+1],result:n}:[n])}if(r.length){const t=this;return Promise.all(r).then((function(e){for(let t=0;t<e.length;t++)d?s[t].result=e[t]:s[t]=e[t];return d?s:new X(s.length>1?$a(s,1,0,0,a,c):s[0],t)}))}return d?s:new X(s.length>1?$a(s,1,0,0,a,c):s[0],this)}}d||o||!(u=u||this.field)||(M(u)?o=u:(u.constructor===Array&&u.length===1&&(u=u[0]),o=u.field||u.index));u&&u.constructor!==Array&&(u=[u])}u||(u=this.field);let _;x=(this.worker||this.db)&&!n&&[];for(let o=0,l,c,j;o<u.length;o++){c=u[o];if(this.db&&this.tag&&!this.B[o])continue;let z;M(c)||(z=c,c=z.field,t=z.query||t,e=aa(z.limit,e),y=aa(z.offset,y),a=aa(z.suggest,a),p=d&&this.store&&aa(z.highlight,p),w=!!p||d&&this.store&&aa(z.enrich,w),f=aa(z.cache,f));if(n)l=n[o];else{k=z||i||{};v=k.enrich;var A=this.index.get(c);m&&(this.db&&(k.tag=m,k.field=u,_=A.db.support_tag_search),!_&&v&&(k.enrich=!1),_||(k.limit=0,k.offset=0));l=f?A.searchCache(t,m&&!_?0:e,k):A.search(t,m&&!_?0:e,k);m&&!_&&(k.limit=e,k.offset=y);v&&(k.enrich=v);if(x){x[o]=l;continue}}j=(l=l.result||l)&&l.length;if(m&&j){k=[];v=0;if(this.db&&n){if(!_)for(A=u.length;A<n.length;A++){let t=n[A];if(t&&t.length)v++,k.push(t);else if(!a)return d?s:new X(s,this)}}else for(let t=0,e,i;t<m.length;t+=2){e=this.tag.get(m[t]);if(!e)if(a)continue;else return d?s:new X(s,this);if(i=(e=e&&e.get(m[t+1]))&&e.length)v++,k.push(e);else if(!a)return d?s:new X(s,this)}if(v){l=db(l,k,e,y,d);j=l.length;if(!j&&!a)return d?l:new X(l,this);v--}}if(j)r[g]=c,s.push(l),g++;else if(u.length===1)return d?s:new X(s,this)}if(x){if(this.db&&m&&m.length&&!_)for(w=0;w<m.length;w+=2){r=this.index.get(m[w]);if(!r)if(a)continue;else return d?s:new X(s,this);x.push(r.db.tag(m[w+1],e,y,!1))}const n=this;return Promise.all(x).then((function(s){i&&(i.resolve=d);s.length&&(s=n.search(t,e,i,s));return s}))}if(!g)return d?s:new X(s,this);if(o&&(!w||!this.store))return s=s[0],d?s:new X(s,this);x=[];for(y=0;y<r.length;y++){m=s[y];w&&m.length&&typeof m[0].doc==="undefined"&&(this.db?x.push(m=this.index.get(this.field[0]).db.enrich(m)):m=Ta.call(this,m));if(o)return d?p?cb(t,m,this.index,o,p):m:new X(m,this);s[y]={field:r[y],result:m}}if(w&&this.db&&x.length){const e=this;return Promise.all(x).then((function(i){for(let t=0;t<i.length;t++)s[t].result=i[t];p&&(s=cb(t,s,e.index,o,p));return l?fb(s):s}))}p&&(s=cb(t,s,this.index,o,p));return l?fb(s):s};function fb(t){const e=[],i=I(),n=I();for(let s=0,r,o,l,a,c,f,u;s<t.length;s++){r=t[s];o=r.field;l=r.result;for(let t=0;t<l.length;t++)if(c=l[t],typeof c!=="object"?c={id:a=c}:a=c.id,(f=i[a])?f.push(o):(c.field=i[a]=[o],e.push(c)),u=c.highlight)f=n[a],f||(n[a]=f={},c.highlight=f),f[o]=u}return e}function eb(t,e,i,n,s){t=this.tag.get(t);if(!t)return[];t=t.get(e);if(!t)return[];e=t.length-n;if(e>0){if(i&&e>i||n)t=t.slice(n,n+i);s&&(t=Ta.call(this,t))}return t}function Ta(t){if(!this||!this.store)return t;if(this.db)return this.index.get(this.field[0]).db.enrich(t);const e=Array(t.length);for(let i=0,n;i<t.length;i++)n=t[i],e[i]={id:n,doc:this.store.get(n)};return e}function Na(t){if(!this||this.constructor!==Na)return new Na(t);const e=t.document||t.doc||t;let i,n;this.B=[];this.field=[];this.D=[];this.key=(i=e.key||e.id)&&hb(i,this.D)||"id";(n=t.keystore||0)&&(this.keystore=n);this.fastupdate=!!t.fastupdate;this.reg=!this.fastupdate||t.worker||t.db?n?new S(n):new Set:n?new R(n):new Map;this.h=(i=e.store||null)&&i&&i!==!0&&[];this.store=i?n?new R(n):new Map:null;this.cache=(i=t.cache||null)&&new ma(i);t.cache=!1;this.worker=t.worker||!1;this.priority=t.priority||4;this.index=ib.call(this,t,e);this.tag=null;if(i=e.tag)if(typeof i==="string"&&(i=[i]),i.length){this.tag=new Map;this.A=[];this.F=[];for(let t=0,e,n;t<i.length;t++){e=i[t];n=e.field||e;if(!n)throw Error("The tag field from the document descriptor is undefined.");e.custom?this.A[t]=e.custom:(this.A[t]=hb(n,this.D),e.filter&&(typeof this.A[t]==="string"&&(this.A[t]=new String(this.A[t])),this.A[t].G=e.filter));this.F[t]=n;this.tag.set(n,new Map)}}if(this.worker){this.fastupdate=!1;t=[];for(const e of this.index.values())e.then&&t.push(e);if(t.length){const e=this;return Promise.all(t).then((function(t){let i=0;for(const n of e.index.entries()){const s=n[0];let r=n[1];r.then&&(r=t[i],e.index.set(s,r),i++)}return e}))}}else t.db&&(this.fastupdate=!1,this.mount(t.db))}n=Na.prototype;n.mount=function(t){let e=this.field;if(this.tag)for(let t=0,n;t<this.F.length;t++){n=this.F[t];var i=void 0;this.index.set(n,i=new T({},this.reg));e===this.field&&(e=e.slice(0));e.push(n);i.tag=this.tag.get(n)}i=[];const n={db:t.db,type:t.type,fastupdate:t.fastupdate};for(let s=0,r,o;s<e.length;s++){n.field=o=e[s];r=this.index.get(o);const l=new t.constructor(t.id,n);l.id=t.id;i[s]=l.mount(r);r.document=!0;s?r.bypass=!0:r.store=this.store}const s=this;return this.db=Promise.all(i).then((function(){s.db=!0}))};n.commit=async function(){const t=[];for(const e of this.index.values())t.push(e.commit());await Promise.all(t);this.reg.clear()};n.destroy=function(){const t=[];for(const e of this.index.values())t.push(e.destroy());return Promise.all(t)};function ib(t,e){const i=new Map;let n=e.index||e.field||e;M(n)&&(n=[n]);for(let e=0,r,o;e<n.length;e++){r=n[e];M(r)||(o=r,r=r.field);o=ba(o)?Object.assign({},t,o):t;if(this.worker){var s=void 0;s=(s=o.encoder)&&s.encode?s:new ka(typeof s==="string"?m[s]:s||{});s=new La(o,s);i.set(r,s)}this.worker||i.set(r,new T(o,this.reg));o.custom?this.B[e]=o.custom:(this.B[e]=hb(r,this.D),o.filter&&(typeof this.B[e]==="string"&&(this.B[e]=new String(this.B[e])),this.B[e].G=o.filter));this.field[e]=r}if(this.h){t=e.store;M(t)&&(t=[t]);for(let e=0,i,n;e<t.length;e++)i=t[e],n=i.field||i,i.custom?(this.h[e]=i.custom,i.custom.O=n):(this.h[e]=hb(n,this.D),i.filter&&(typeof this.h[e]==="string"&&(this.h[e]=new String(this.h[e])),this.h[e].G=i.filter))}return i}function hb(t,e){const i=t.split(":");let n=0;for(let s=0;s<i.length;s++)t=i[s],t[t.length-1]==="]"&&(t=t.substring(0,t.length-2))&&(e[n]=!0),t&&(i[n++]=t);n<i.length&&(i.length=n);return n>1?i:i[0]}n.append=function(t,e){return this.add(t,e,!0)};n.update=function(t,e){return this.remove(t).add(t,e)};n.remove=function(t){ba(t)&&(t=ca(t,this.key));for(var e of this.index.values())e.remove(t,!0);if(this.reg.has(t)){if(this.tag&&!this.fastupdate)for(let i of this.tag.values())for(let n of i){e=n[0];const s=n[1],r=s.indexOf(t);r>-1&&(s.length>1?s.splice(r,1):i.delete(e))}this.store&&this.store.delete(t);this.reg.delete(t)}this.cache&&this.cache.remove(t);return this};n.clear=function(){const t=[];for(const e of this.index.values()){const i=e.clear();i.then&&t.push(i)}if(this.tag)for(const t of this.tag.values())t.clear();this.store&&this.store.clear();this.cache&&this.cache.clear();return t.length?Promise.all(t):this};n.contain=function(t){return this.db?this.index.get(this.field[0]).db.has(t):this.reg.has(t)};n.cleanup=function(){for(const t of this.index.values())t.cleanup();return this};n.get=function(t){return this.db?this.index.get(this.field[0]).db.enrich(t).then((function(t){return t[0]&&t[0].doc||null})):this.store.get(t)||null};n.set=function(t,e){typeof t==="object"&&(e=t,t=ca(e,this.key));this.store.set(t,e);return this};n.searchCache=la;n.export=jb;n.import=kb;Fa(Na.prototype);function lb(t,e=0){let i=[],n=[];e&&(e=25e4/e*5e3|0);for(const s of t.entries())n.push(s),n.length===e&&(i.push(n),n=[]);n.length&&i.push(n);return i}function mb(t,e){e||(e=new Map);for(let i=0,n;i<t.length;i++)n=t[i],e.set(n[0],n[1]);return e}function nb(t,e=0){let i=[],n=[];e&&(e=25e4/e*1e3|0);for(const s of t.entries())n.push([s[0],lb(s[1])[0]||[]]),n.length===e&&(i.push(n),n=[]);n.length&&i.push(n);return i}function ob(t,e){e||(e=new Map);for(let i=0,n,s;i<t.length;i++)n=t[i],s=e.get(n[0]),e.set(n[0],mb(n[1],s));return e}function pb(t){let e=[],i=[];for(const n of t.keys())i.push(n),i.length===25e4&&(e.push(i),i=[]);i.length&&e.push(i);return e}function qb(t,e){e||(e=new Set);for(let i=0;i<t.length;i++)e.add(t[i]);return e}function rb(t,e,i,n,s,r,o=0){const l=n&&n.constructor===Array;var a=l?n.shift():n;if(!a)return this.export(t,e,s,r+1);if((a=t((e?e+".":"")+(o+1)+"."+i,JSON.stringify(a)))&&a.then){const c=this;return a.then((function(){return rb.call(c,t,e,i,l?n:null,s,r,o+1)}))}return rb.call(this,t,e,i,l?n:null,s,r,o+1)}function jb(t,e,i=0,n=0){if(i<this.field.length){const s=this.field[i];if((e=this.index.get(s).export(t,s,i,n=1))&&e.then){const n=this;return e.then((function(){return n.export(t,s,i+1)}))}return this.export(t,s,i+1)}let s,r;switch(n){case 0:s="reg";r=pb(this.reg);e=null;break;case 1:s="tag";r=this.tag&&nb(this.tag,this.reg.size);e=null;break;case 2:s="doc";r=this.store&&lb(this.store);e=null;break;default:return}return rb.call(this,t,e,s,r||null,i,n)}function kb(t,e){var i=t.split(".");i[i.length-1]==="json"&&i.pop();const n=i.length>2?i[0]:"";i=i.length>2?i[2]:i[1];if(this.worker&&n)return this.index.get(n).import(t);if(e){typeof e==="string"&&(e=JSON.parse(e));if(n)return this.index.get(n).import(i,e);switch(i){case"reg":this.fastupdate=!1;this.reg=qb(e,this.reg);for(let t=0,e;t<this.field.length;t++)e=this.index.get(this.field[t]),e.fastupdate=!1,e.reg=this.reg;if(this.worker){e=[];for(const i of this.index.values())e.push(i.import(t));return Promise.all(e)}break;case"tag":this.tag=ob(e,this.tag);break;case"doc":this.store=mb(e,this.store)}}}function sb(t,e){let i="";for(const n of t.entries()){t=n[0];const s=n[1];let r="";for(let t=0,i;t<s.length;t++){i=s[t]||[""];let n="";for(let t=0;t<i.length;t++)n+=(n?",":"")+(e==="string"?'"'+i[t]+'"':i[t]);n="["+n+"]";r+=(r?",":"")+n}r='["'+t+'",['+r+"]]";i+=(i?",":"")+r}return i}T.prototype.remove=function(t,e){const i=this.reg.size&&(this.fastupdate?this.reg.get(t):this.reg.has(t));if(i){if(this.fastupdate)for(let e=0,n,s;e<i.length;e++){if((n=i[e])&&(s=n.length))if(n[s-1]===t)n.pop();else{const e=n.indexOf(t);e>=0&&n.splice(e,1)}}else tb(this.map,t),this.depth&&tb(this.ctx,t);e||this.reg.delete(t)}this.db&&(this.commit_task.push({del:t}),this.M&&ub(this));this.cache&&this.cache.remove(t);return this};function tb(t,e){let i=0;var n=typeof e==="undefined";if(t.constructor===Array)for(let s=0,r,o,l;s<t.length;s++){if((r=t[s])&&r.length){if(n)return 1;o=r.indexOf(e);if(o>=0){if(r.length>1)return r.splice(o,1),1;delete t[s];if(i)return 1;l=1}else{if(l)return 1;i++}}}else for(let s of t.entries())n=s[0],tb(s[1],e)?i++:t.delete(n);return i}const A={memory:{resolution:1},performance:{resolution:3,fastupdate:!0,context:{depth:1,resolution:1}},match:{tokenize:"forward"},score:{resolution:9,context:{depth:2,resolution:3}}};T.prototype.add=function(t,e,i,n){if(e&&(t||t===0)){if(!n&&!i&&this.reg.has(t))return this.update(t,e);n=this.depth;e=this.encoder.encode(e,!n);const c=e.length;if(c){const f=I(),u=I(),g=this.resolution;for(let d=0;d<c;d++){let p=e[this.rtl?c-1-d:d];var s=p.length;if(s&&(n||!u[p])){var r=this.score?this.score(e,p,d,null,0):wb(g,c,d),o="";switch(this.tokenize){case"tolerant":Y(this,u,p,r,t,i);if(s>2){for(let e=1,n,l,a,c;e<s-1;e++)n=p.charAt(e),l=p.charAt(e+1),a=p.substring(0,e)+l,c=p.substring(e+2),o=a+n+c,Y(this,u,o,r,t,i),o=a+c,Y(this,u,o,r,t,i);Y(this,u,p.substring(0,p.length-1),r,t,i)}break;case"full":if(s>2){for(let n=0,a;n<s;n++)for(r=s;r>n;r--){o=p.substring(n,r);a=this.rtl?s-1-n:n;var l=this.score?this.score(e,p,d,o,a):wb(g,c,d,s,a);Y(this,u,o,l,t,i)}break}case"bidirectional":case"reverse":if(s>1){for(l=s-1;l>0;l--){o=p[this.rtl?s-1-l:l]+o;var a=this.score?this.score(e,p,d,o,l):wb(g,c,d,s,l);Y(this,u,o,a,t,i)}o=""}case"forward":if(s>1){for(l=0;l<s;l++)o+=p[this.rtl?s-1-l:l],Y(this,u,o,r,t,i);break}default:if(Y(this,u,p,r,t,i),n&&c>1&&d<c-1)for(s=this.N,o=p,r=Math.min(n+1,this.rtl?d+1:c-d),l=1;l<r;l++){p=e[this.rtl?c-1-d-l:d+l];a=this.bidirectional&&p>o;const n=this.score?this.score(e,o,d,p,l-1):wb(s+(c/2>s?0:1),c,d,r-1,l-1);Y(this,f,a?o:p,n,t,i,a?p:o)}}}}this.fastupdate||this.reg.add(t)}}this.db&&(this.commit_task.push(i?{ins:t}:{del:t}),this.M&&ub(this));return this};function Y(t,e,i,n,s,r,o){let l,a;if(!(l=e[i])||o&&!l[o]){o?(e=l||(e[i]=I()),e[o]=1,a=t.ctx,(l=a.get(o))?a=l:a.set(o,a=t.keystore?new R(t.keystore):new Map)):(a=t.map,e[i]=1);(l=a.get(i))?a=l:a.set(i,a=l=[]);if(r)for(let i=0,r;i<l.length;i++)if((r=l[i])&&r.includes(s)){if(i<=n)return;r.splice(r.indexOf(s),1);t.fastupdate&&(e=t.reg.get(s))&&e.splice(e.indexOf(r),1);break}a=a[n]||(a[n]=[]);a.push(s);if(a.length===2**31-1){e=new xa(a);if(t.fastupdate)for(let i of t.reg.values())i.includes(a)&&(i[i.indexOf(a)]=e);l[n]=a=e}t.fastupdate&&((n=t.reg.get(s))?n.push(a):t.reg.set(s,[a]))}}function wb(t,e,i,n,s){return i&&t>1?e+(n||0)<=t?i+(s||0):(t-1)/(e+(n||0))*(i+(s||0))+1|0:0}T.prototype.search=function(t,e,i){i||(e||typeof t!=="object"?typeof e==="object"&&(i=e,e=0):(i=t,t=""));if(i&&i.cache)return i.cache=!1,t=this.searchCache(t,e,i),i.cache=!0,t;let n=[],s,r,o,l=0,a,c,f,u,g;i&&(t=i.query||t,e=i.limit||e,l=i.offset||0,r=i.context,o=i.suggest,g=(a=i.resolve)&&i.enrich,f=i.boost,u=i.resolution,c=this.db&&i.tag);typeof a==="undefined"&&(a=this.resolve);r=this.depth&&r!==!1;let d=this.encoder.encode(t,!r);s=d.length;e=e||(a?100:0);if(s===1)return xb.call(this,d[0],"",e,l,a,g,c);if(s===2&&r&&!o)return xb.call(this,d[1],d[0],e,l,a,g,c);let p=I(),m=0,w;r&&(w=d[0],m=1);u||u===0||(u=w?this.N:this.resolution);if(this.db){if(this.db.search&&(i=this.db.search(this,d,e,l,o,a,g,c),i!==!1))return i;const t=this;return async function(){for(let e,i;m<s;m++){if((i=d[m])&&!p[i]){p[i]=1;e=await yb(t,i,w,0,0,!1,!1);if(e=zb(e,n,o,u)){n=e;break}w&&(o&&e&&n.length||(w=i))}o&&w&&m===s-1&&!n.length&&(u=t.resolution,w="",m=-1,p=I())}return Ab(n,u,e,l,o,f,a)}()}for(let t,e;m<s;m++){if((e=d[m])&&!p[e]){p[e]=1;t=yb(this,e,w,0,0,!1,!1);if(t=zb(t,n,o,u)){n=t;break}w&&(o&&t&&n.length||(w=e))}o&&w&&m===s-1&&!n.length&&(u=this.resolution,w="",m=-1,p=I())}return Ab(n,u,e,l,o,f,a)};function Ab(t,e,i,n,s,r,o){let l=t.length,a=t;if(l>1)a=$a(t,e,i,n,s,r,o);else if(l===1)return o?Sa.call(null,t[0],i,n):new X(t[0],this);return o?a:new X(a,this)}function xb(t,e,i,n,s,r,o){t=yb(this,t,e,i,n,s,r,o);return this.db?t.then((function(t){return s?t||[]:new X(t,this)})):t&&t.length?s?Sa.call(this,t,i,n):new X(t,this):s?[]:new X([],this)}function zb(t,e,i,n){let s=[];if(t&&t.length){if(t.length<=n){e.push(t);return}for(let e=0,i;e<n;e++)if(i=t[e])s[e]=i;if(s.length){e.push(s);return}}if(!i)return s}function yb(t,e,i,n,s,r,o,l){let a;i&&(a=t.bidirectional&&e>i)&&(a=i,i=e,e=a);if(t.db)return t.db.get(e,i,n,s,r,o,l);t=i?(t=t.ctx.get(i))&&t.get(e):t.map.get(e);return t}function T(t,e){if(!this||this.constructor!==T)return new T(t);if(t){var i=M(t)?t:t.preset;i&&(t=Object.assign({},A[i],t))}else t={};i=t.context;const n=i===!0?{depth:1}:i||{},s=M(t.encoder)?m[t.encoder]:t.encode||t.encoder||{};this.encoder=s.encode?s:typeof s==="object"?new ka(s):{encode:s};this.resolution=t.resolution||9;this.tokenize=i=(i=t.tokenize)&&i!=="default"&&i!=="exact"&&i||"strict";this.depth=i==="strict"&&n.depth||0;this.bidirectional=n.bidirectional!==!1;this.fastupdate=!!t.fastupdate;this.score=t.score||null;(i=t.keystore||0)&&(this.keystore=i);this.map=i?new R(i):new Map;this.ctx=i?new R(i):new Map;this.reg=e||(this.fastupdate?i?new R(i):new Map:i?new S(i):new Set);this.N=n.resolution||3;this.rtl=s.rtl||t.rtl||!1;this.cache=(i=t.cache||null)&&new ma(i);this.resolve=t.resolve!==!1;if(i=t.db)this.db=this.mount(i);this.M=t.commit!==!1;this.commit_task=[];this.commit_timer=null;this.priority=t.priority||4}n=T.prototype;n.mount=function(t){this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null);return t.mount(this)};n.commit=function(){this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null);return this.db.commit(this)};n.destroy=function(){this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null);return this.db.destroy()};function ub(t){t.commit_timer||(t.commit_timer=setTimeout((function(){t.commit_timer=null;t.db.commit(t)}),1))}n.clear=function(){this.map.clear();this.ctx.clear();this.reg.clear();this.cache&&this.cache.clear();return this.db?(this.commit_timer&&clearTimeout(this.commit_timer),this.commit_timer=null,this.commit_task=[],this.db.clear()):this};n.append=function(t,e){return this.add(t,e,!0)};n.contain=function(t){return this.db?this.db.has(t):this.reg.has(t)};n.update=function(t,e){const i=this,n=this.remove(t);return n&&n.then?n.then((()=>i.add(t,e))):this.add(t,e)};n.cleanup=function(){if(!this.fastupdate)return this;tb(this.map);this.depth&&tb(this.ctx);return this};n.searchCache=la;n.export=function(t,e,i=0,n=0){let s,r;switch(n){case 0:s="reg";r=pb(this.reg);break;case 1:s="cfg";r=null;break;case 2:s="map";r=lb(this.map,this.reg.size);break;case 3:s="ctx";r=nb(this.ctx,this.reg.size);break;default:return}return rb.call(this,t,e,s,r,i,n)};n.import=function(t,e){if(e)switch(typeof e==="string"&&(e=JSON.parse(e)),t=t.split("."),t[t.length-1]==="json"&&t.pop(),t.length===3&&t.shift(),t=t.length>1?t[1]:t[0],t){case"reg":this.fastupdate=!1;this.reg=qb(e,this.reg);break;case"map":this.map=mb(e,this.map);break;case"ctx":this.ctx=ob(e,this.ctx)}};n.serialize=function(t=!0){let e="",i="",n="";if(this.reg.size){let t;for(var s of this.reg.keys())t||(t=typeof s),e+=(e?",":"")+(t==="string"?'"'+s+'"':s);e="index.reg=new Set(["+e+"]);";i=sb(this.map,t);i="index.map=new Map(["+i+"]);";for(const e of this.ctx.entries()){s=e[0];let i=sb(e[1],t);i="new Map(["+i+"])";i='["'+s+'",'+i+"]";n+=(n?",":"")+i}n="index.ctx=new Map(["+n+"]);"}return t?"function inject(index){"+e+i+n+"}":e+i+n};Fa(T.prototype);const j=typeof window!=="undefined"&&(window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB),z=["map","ctx","tag","reg","cfg"],B=I();function Eb(t,e={}){if(!this||this.constructor!==Eb)return new Eb(t,e);typeof t==="object"&&(e=t,t=t.name);t||console.info("Default storage space was used, because a name was not passed.");this.id="flexsearch"+(t?":"+t.toLowerCase().replace(/[^a-z0-9_\-]/g,""):"");this.field=e.field?e.field.toLowerCase().replace(/[^a-z0-9_\-]/g,""):"";this.type=e.type;this.fastupdate=this.support_tag_search=!1;this.db=null;this.h={}}n=Eb.prototype;n.mount=function(t){if(t.index)return t.mount(this);t.db=this;return this.open()};n.open=function(){if(this.db)return this.db;let t=this;navigator.storage&&navigator.storage.persist&&navigator.storage.persist();B[t.id]||(B[t.id]=[]);B[t.id].push(t.field);const e=j.open(t.id,1);e.onupgradeneeded=function(){const e=t.db=this.result;for(let i=0,n;i<z.length;i++){n=z[i];for(let i=0,s;i<B[t.id].length;i++)s=B[t.id][i],e.objectStoreNames.contains(n+(n!=="reg"?s?":"+s:"":""))||e.createObjectStore(n+(n!=="reg"?s?":"+s:"":""))}};return t.db=Z(e,(function(e){t.db=e;t.db.onversionchange=function(){t.close()}}))};n.close=function(){this.db&&this.db.close();this.db=null};n.destroy=function(){const t=j.deleteDatabase(this.id);return Z(t)};n.clear=function(){const t=[];for(let e=0,i;e<z.length;e++){i=z[e];for(let e=0,n;e<B[this.id].length;e++)n=B[this.id][e],t.push(i+(i!=="reg"?n?":"+n:"":""))}const e=this.db.transaction(t,"readwrite");for(let i=0;i<t.length;i++)e.objectStore(t[i]).clear();return Z(e)};n.get=function(t,e,i=0,n=0,s=!0,r=!1){t=this.db.transaction((e?"ctx":"map")+(this.field?":"+this.field:""),"readonly").objectStore((e?"ctx":"map")+(this.field?":"+this.field:"")).get(e?e+":"+t:t);const o=this;return Z(t).then((function(t){let e=[];if(!t||!t.length)return e;if(s){if(!i&&!n&&t.length===1)return t[0];for(let s=0,r;s<t.length;s++)if((r=t[s])&&r.length){if(n>=r.length){n-=r.length;continue}const t=i?n+Math.min(r.length-n,i):r.length;for(let i=n;i<t;i++)e.push(r[i]);n=0;if(e.length===i)break}return r?o.enrich(e):e}return t}))};n.tag=function(t,e=0,i=0,n=!1){t=this.db.transaction("tag"+(this.field?":"+this.field:""),"readonly").objectStore("tag"+(this.field?":"+this.field:"")).get(t);const s=this;return Z(t).then((function(t){if(!t||!t.length||i>=t.length)return[];if(!e&&!i)return t;t=t.slice(i,i+e);return n?s.enrich(t):t}))};n.enrich=function(t){typeof t!=="object"&&(t=[t]);const e=this.db.transaction("reg","readonly").objectStore("reg"),i=[];for(let n=0;n<t.length;n++)i[n]=Z(e.get(t[n]));return Promise.all(i).then((function(e){for(let i=0;i<e.length;i++)e[i]={id:t[i],doc:e[i]?JSON.parse(e[i]):null};return e}))};n.has=function(t){t=this.db.transaction("reg","readonly").objectStore("reg").getKey(t);return Z(t).then((function(t){return!!t}))};n.search=null;n.info=function(){};n.transaction=function(t,e,i){t+=t!=="reg"?this.field?":"+this.field:"":"";let n=this.h[t+":"+e];if(n)return i.call(this,n);let s=this.db.transaction(t,e);this.h[t+":"+e]=n=s.objectStore(t);const r=i.call(this,n);this.h[t+":"+e]=null;return Z(s).finally((function(){return r}))};n.commit=async function(t){let e=t.commit_task,i=[];t.commit_task=[];for(let t=0,n;t<e.length;t++)n=e[t],n.del&&i.push(n.del);i.length&&await this.remove(i);t.reg.size&&(await this.transaction("map","readwrite",(function(e){for(const i of t.map){const t=i[0],n=i[1];n.length&&(e.get(t).onsuccess=function(){let i=this.result;var s;if(i&&i.length){const t=Math.max(i.length,n.length);for(let e=0,r,o;e<t;e++)if((o=n[e])&&o.length){if((r=i[e])&&r.length)for(s=0;s<o.length;s++)r.push(o[s]);else i[e]=o;s=1}}else i=n,s=1;s&&e.put(i,t)})}})),await this.transaction("ctx","readwrite",(function(e){for(const i of t.ctx){const t=i[0],n=i[1];for(const i of n){const n=i[0],s=i[1];s.length&&(e.get(t+":"+n).onsuccess=function(){let i=this.result;var r;if(i&&i.length){const t=Math.max(i.length,s.length);for(let e=0,n,o;e<t;e++)if((o=s[e])&&o.length){if((n=i[e])&&n.length)for(r=0;r<o.length;r++)n.push(o[r]);else i[e]=o;r=1}}else i=s,r=1;r&&e.put(i,t+":"+n)})}}})),t.store?await this.transaction("reg","readwrite",(function(e){for(const i of t.store){const t=i[0],n=i[1];e.put(typeof n==="object"?JSON.stringify(n):1,t)}})):t.bypass||await this.transaction("reg","readwrite",(function(e){for(const i of t.reg.keys())e.put(1,i)})),t.tag&&await this.transaction("tag","readwrite",(function(e){for(const i of t.tag){const t=i[0],n=i[1];n.length&&(e.get(t).onsuccess=function(){let i=this.result;i=i&&i.length?i.concat(n):n;e.put(i,t)})}})),t.map.clear(),t.ctx.clear(),t.tag&&t.tag.clear(),t.store&&t.store.clear(),t.document||t.reg.clear())};function Fb(t,e,i){const n=t.value;let s,r=0;for(let t=0,o;t<n.length;t++){if(o=i?n:n[t]){for(let i=0,r,l;i<e.length;i++)if(l=e[i],r=o.indexOf(l),r>=0)if(s=1,o.length>1)o.splice(r,1);else{n[t]=[];break}r+=o.length}if(i)break}r?s&&t.update(n):t.delete();t.continue()}n.remove=function(t){typeof t!=="object"&&(t=[t]);return Promise.all([this.transaction("map","readwrite",(function(e){e.openCursor().onsuccess=function(){const e=this.result;e&&Fb(e,t)}})),this.transaction("ctx","readwrite",(function(e){e.openCursor().onsuccess=function(){const e=this.result;e&&Fb(e,t)}})),this.transaction("tag","readwrite",(function(e){e.openCursor().onsuccess=function(){const e=this.result;e&&Fb(e,t,!0)}})),this.transaction("reg","readwrite",(function(e){for(let i=0;i<t.length;i++)e.delete(t[i])}))])};function Z(t,e){return new Promise(((i,n)=>{t.onsuccess=t.oncomplete=function(){e&&e(this.result);e=null;i(this.result)};t.onerror=t.onblocked=n;t=null}))}const C={Index:T,Charset:m,Encoder:ka,Document:Na,Worker:La,Resolver:X,IndexedDB:Eb,Language:{}},O=typeof e!=="undefined"?e:typeof global!=="undefined"?global:e;let L;(L=O.define)&&L.amd?L([],(function(){return C})):typeof O.exports==="object"?O.exports=C:O.FlexSearch=C})(this||self)},267:function(t){"use strict";t.exports=require("worker_threads")}};var e={};function __nccwpck_require__(i){var n=e[i];if(n!==undefined){return n.exports}var s=e[i]={id:i,loaded:false,exports:{}};var r=true;try{t[i].call(s.exports,s,s.exports,__nccwpck_require__);r=false}finally{if(r)delete e[i]}s.loaded=true;return s.exports}!function(){__nccwpck_require__.nmd=function(t){t.paths=[];if(!t.children)t.children=[];return t}}();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var i=__nccwpck_require__(16);module.exports=i})();
|
|
8
|
+
*/(function _f(e){"use strict";if(true)e=t;else{}e._factory=_f;var n;function H(t,e,i){const n=typeof i,s=typeof t;if(n!=="undefined"){if(s!=="undefined"){if(i){if(s==="function"&&n===s)return function(e){return t(i(e))};e=t.constructor;if(e===i.constructor){if(e===Array)return i.concat(t);if(e===Map){var r=new Map(i);for(var o of t)r.set(o[0],o[1]);return r}if(e===Set){o=new Set(i);for(r of t.values())o.add(r);return o}}}return t}return i}return s==="undefined"?e:t}function aa(t,e){return typeof t==="undefined"?e:t}function I(){return Object.create(null)}function M(t){return typeof t==="string"}function ba(t){return typeof t==="object"}function ca(t,e){if(M(e))t=t[e];else for(let i=0;t&&i<e.length;i++)t=t[e[i]];return t}const s=/[^\p{L}\p{N}]+/u,r=/(\d{3})/g,o=/(\D)(\d{3})/g,l=/(\d{3})(\D)/g,a=/[\u0300-\u036f]/g;function ka(t={}){if(!this||this.constructor!==ka)return new ka(...arguments);if(arguments.length)for(t=0;t<arguments.length;t++)this.assign(arguments[t]);else this.assign(t)}n=ka.prototype;n.assign=function(t){this.normalize=H(t.normalize,!0,this.normalize);let e=t.include,i=e||t.exclude||t.split,n;if(i||i===""){if(typeof i==="object"&&i.constructor!==RegExp){let t="";n=!e;e||(t+="\\p{Z}");i.letter&&(t+="\\p{L}");i.number&&(t+="\\p{N}",n=!!e);i.symbol&&(t+="\\p{S}");i.punctuation&&(t+="\\p{P}");i.control&&(t+="\\p{C}");if(i=i.char)t+=typeof i==="object"?i.join(""):i;try{this.split=new RegExp("["+(e?"^":"")+t+"]+","u")}catch(t){this.split=/\s+/}}else this.split=i,n=i===!1||"a1a".split(i).length<2;this.numeric=H(t.numeric,n)}else{try{this.split=H(this.split,s)}catch(t){this.split=/\s+/}this.numeric=H(t.numeric,H(this.numeric,!0))}this.prepare=H(t.prepare,null,this.prepare);this.finalize=H(t.finalize,null,this.finalize);i=t.filter;this.filter=typeof i==="function"?i:H(i&&new Set(i),null,this.filter);this.dedupe=H(t.dedupe,!0,this.dedupe);this.matcher=H((i=t.matcher)&&new Map(i),null,this.matcher);this.mapper=H((i=t.mapper)&&new Map(i),null,this.mapper);this.stemmer=H((i=t.stemmer)&&new Map(i),null,this.stemmer);this.replacer=H(t.replacer,null,this.replacer);this.minlength=H(t.minlength,1,this.minlength);this.maxlength=H(t.maxlength,1024,this.maxlength);this.rtl=H(t.rtl,!1,this.rtl);if(this.cache=i=H(t.cache,!0,this.cache))this.F=null,this.L=typeof i==="number"?i:2e5,this.B=new Map,this.D=new Map,this.I=this.H=128;this.h="";this.J=null;this.A="";this.K=null;if(this.matcher)for(const t of this.matcher.keys())this.h+=(this.h?"|":"")+t;if(this.stemmer)for(const t of this.stemmer.keys())this.A+=(this.A?"|":"")+t;return this};n.addStemmer=function(t,e){this.stemmer||(this.stemmer=new Map);this.stemmer.set(t,e);this.A+=(this.A?"|":"")+t;this.K=null;this.cache&&Q(this);return this};n.addFilter=function(t){typeof t==="function"?this.filter=t:(this.filter||(this.filter=new Set),this.filter.add(t));this.cache&&Q(this);return this};n.addMapper=function(t,e){if(typeof t==="object")return this.addReplacer(t,e);if(t.length>1)return this.addMatcher(t,e);this.mapper||(this.mapper=new Map);this.mapper.set(t,e);this.cache&&Q(this);return this};n.addMatcher=function(t,e){if(typeof t==="object")return this.addReplacer(t,e);if(t.length<2&&(this.dedupe||this.mapper))return this.addMapper(t,e);this.matcher||(this.matcher=new Map);this.matcher.set(t,e);this.h+=(this.h?"|":"")+t;this.J=null;this.cache&&Q(this);return this};n.addReplacer=function(t,e){if(typeof t==="string")return this.addMatcher(t,e);this.replacer||(this.replacer=[]);this.replacer.push(t,e);this.cache&&Q(this);return this};n.encode=function(t,e){if(this.cache&&t.length<=this.H)if(this.F){if(this.B.has(t))return this.B.get(t)}else this.F=setTimeout(Q,50,this);this.normalize&&(typeof this.normalize==="function"?t=this.normalize(t):t=a?t.normalize("NFKD").replace(a,"").toLowerCase():t.toLowerCase());this.prepare&&(t=this.prepare(t));this.numeric&&t.length>3&&(t=t.replace(o,"$1 $2").replace(l,"$1 $2").replace(r,"$1 "));const i=!(this.dedupe||this.mapper||this.filter||this.matcher||this.stemmer||this.replacer);let n=[],s=I(),c,f,u=this.split||this.split===""?t.split(this.split):[t];for(let t=0,r,o;t<u.length;t++)if((r=o=u[t])&&!(r.length<this.minlength||r.length>this.maxlength)){if(e){if(s[r])continue;s[r]=1}else{if(c===r)continue;c=r}if(i)n.push(r);else if(!this.filter||(typeof this.filter==="function"?this.filter(r):!this.filter.has(r))){if(this.cache&&r.length<=this.I)if(this.F){var g=this.D.get(r);if(g||g===""){g&&n.push(g);continue}}else this.F=setTimeout(Q,50,this);if(this.stemmer){this.K||(this.K=new RegExp("(?!^)("+this.A+")$"));let t;for(;t!==r&&r.length>2;)t=r,r=r.replace(this.K,(t=>this.stemmer.get(t)))}if(r&&(this.mapper||this.dedupe&&r.length>1)){g="";for(let t=0,e="",i,n;t<r.length;t++)i=r.charAt(t),i===e&&this.dedupe||((n=this.mapper&&this.mapper.get(i))||n===""?n===e&&this.dedupe||!(e=n)||(g+=n):g+=e=i);r=g}this.matcher&&r.length>1&&(this.J||(this.J=new RegExp("("+this.h+")","g")),r=r.replace(this.J,(t=>this.matcher.get(t))));if(r&&this.replacer)for(g=0;r&&g<this.replacer.length;g+=2)r=r.replace(this.replacer[g],this.replacer[g+1]);this.cache&&o.length<=this.I&&(this.D.set(o,r),this.D.size>this.L&&(this.D.clear(),this.I=this.I/1.1|0));if(r){if(r!==o)if(e){if(s[r])continue;s[r]=1}else{if(f===r)continue;f=r}n.push(r)}}}this.finalize&&(n=this.finalize(n)||n);this.cache&&t.length<=this.H&&(this.B.set(t,n),this.B.size>this.L&&(this.B.clear(),this.H=this.H/1.1|0));return n};function Q(t){t.F=null;t.B.clear();t.D.clear()}function la(t,e,i){i||(e||typeof t!=="object"?typeof e==="object"&&(i=e,e=0):i=t);i&&(t=i.query||t,e=i.limit||e);let n=""+(e||0);i&&(n+=(i.offset||0)+!!i.context+!!i.suggest+(i.resolve!==!1)+(i.resolution||this.resolution)+(i.boost||0));t=(""+t).toLowerCase();this.cache||(this.cache=new ma);let s=this.cache.get(t+n);if(!s){const r=i&&i.cache;r&&(i.cache=!1);s=this.search(t,e,i);r&&(i.cache=r);this.cache.set(t+n,s)}return s}function ma(t){this.limit=t&&t!==!0?t:1e3;this.cache=new Map;this.h=""}ma.prototype.set=function(t,e){this.cache.set(this.h=t,e);this.cache.size>this.limit&&this.cache.delete(this.cache.keys().next().value)};ma.prototype.get=function(t){const e=this.cache.get(t);e&&this.h!==t&&(this.cache.delete(t),this.cache.set(this.h=t,e));return e};ma.prototype.remove=function(t){for(const e of this.cache){const i=e[0];e[1].includes(t)&&this.cache.delete(i)}};ma.prototype.clear=function(){this.cache.clear();this.h=""};const c={normalize:!1,numeric:!1,dedupe:!1};const f={};const u=new Map([["b","p"],["v","f"],["w","f"],["z","s"],["x","s"],["d","t"],["n","m"],["c","k"],["g","k"],["j","k"],["q","k"],["i","e"],["y","e"],["u","o"]]);const g=new Map([["ae","a"],["oe","o"],["sh","s"],["kh","k"],["th","t"],["ph","f"],["pf","f"]]),d=[/([^aeo])h(.)/g,"$1$2",/([aeo])h([^aeo]|$)/g,"$1$2",/(.)\1+/g,"$1"];const p={a:"",e:"",i:"",o:"",u:"",y:"",b:1,f:1,p:1,v:1,c:2,g:2,j:2,k:2,q:2,s:2,x:2,z:2,"ß":2,d:3,t:3,l:4,m:5,n:5,r:6};var m={Exact:c,Default:f,Normalize:f,LatinBalance:{mapper:u},LatinAdvanced:{mapper:u,matcher:g,replacer:d},LatinExtra:{mapper:u,replacer:d.concat([/(?!^)[aeo]/g,""]),matcher:g},LatinSoundex:{dedupe:!1,include:{letter:!0},finalize:function(t){for(let i=0;i<t.length;i++){var e=t[i];let n=e.charAt(0),s=p[n];for(let t=1,i;t<e.length&&(i=e.charAt(t),i==="h"||i==="w"||!(i=p[i])||i===s||(n+=i,s=i,n.length!==4));t++);t[i]=n}}},CJK:{split:""},LatinExact:c,LatinDefault:f,LatinSimple:f};function wa(t,e,i,n){let s=[];for(let r=0,o;r<t.index.length;r++)if(o=t.index[r],e>=o.length)e-=o.length;else{e=o[n?"splice":"slice"](e,i);const r=e.length;if(r&&(s=s.length?s.concat(e):e,i-=r,n&&(t.length-=r),!i))break;e=0}return s}function xa(t){if(!this||this.constructor!==xa)return new xa(t);this.index=t?[t]:[];this.length=t?t.length:0;const e=this;return new Proxy([],{get(t,i){if(i==="length")return e.length;if(i==="push")return function(t){e.index[e.index.length-1].push(t);e.length++};if(i==="pop")return function(){if(e.length)return e.length--,e.index[e.index.length-1].pop()};if(i==="indexOf")return function(t){let i=0;for(let n=0,s,r;n<e.index.length;n++){s=e.index[n];r=s.indexOf(t);if(r>=0)return i+r;i+=s.length}return-1};if(i==="includes")return function(t){for(let i=0;i<e.index.length;i++)if(e.index[i].includes(t))return!0;return!1};if(i==="slice")return function(t,i){return wa(e,t||0,i||e.length,!1)};if(i==="splice")return function(t,i){return wa(e,t||0,i||e.length,!0)};if(i==="constructor")return Array;if(typeof i!=="symbol")return(t=e.index[i/2**31|0])&&t[i]},set(t,i,n){t=i/2**31|0;(e.index[t]||(e.index[t]=[]))[i]=n;e.length++;return!0}})}xa.prototype.clear=function(){this.index.length=0};xa.prototype.push=function(){};function R(t=8){if(!this||this.constructor!==R)return new R(t);this.index=I();this.h=[];this.size=0;t>32?(this.B=Aa,this.A=BigInt(t)):(this.B=Ba,this.A=t)}R.prototype.get=function(t){const e=this.index[this.B(t)];return e&&e.get(t)};R.prototype.set=function(t,e){var i=this.B(t);let n=this.index[i];n?(i=n.size,n.set(t,e),(i-=n.size)&&this.size++):(this.index[i]=n=new Map([[t,e]]),this.h.push(n),this.size++)};function S(t=8){if(!this||this.constructor!==S)return new S(t);this.index=I();this.h=[];this.size=0;t>32?(this.B=Aa,this.A=BigInt(t)):(this.B=Ba,this.A=t)}S.prototype.add=function(t){var e=this.B(t);let i=this.index[e];i?(e=i.size,i.add(t),(e-=i.size)&&this.size++):(this.index[e]=i=new Set([t]),this.h.push(i),this.size++)};n=R.prototype;n.has=S.prototype.has=function(t){const e=this.index[this.B(t)];return e&&e.has(t)};n.delete=S.prototype.delete=function(t){const e=this.index[this.B(t)];e&&e.delete(t)&&this.size--};n.clear=S.prototype.clear=function(){this.index=I();this.h=[];this.size=0};n.values=S.prototype.values=function*(){for(let t=0;t<this.h.length;t++)for(let e of this.h[t].values())yield e};n.keys=S.prototype.keys=function*(){for(let t=0;t<this.h.length;t++)for(let e of this.h[t].keys())yield e};n.entries=S.prototype.entries=function*(){for(let t=0;t<this.h.length;t++)for(let e of this.h[t].entries())yield e};function Ba(t){let e=2**this.A-1;if(typeof t=="number")return t&e;let i=0,n=this.A+1;for(let s=0;s<t.length;s++)i=(i*n^t.charCodeAt(s))&e;return this.A===32?i+2**31:i}function Aa(t){let e=BigInt(2)**this.A-BigInt(1);var i=typeof t;if(i==="bigint")return t&e;if(i==="number")return BigInt(t)&e;i=BigInt(0);let n=this.A+BigInt(1);for(let s=0;s<t.length;s++)i=(i*n^BigInt(t.charCodeAt(s)))&e;return i}let w,y;async function Ea(t){t=t.data;var i=t.task;const n=t.id;let s=t.args;switch(i){case"init":y=t.options||{};(i=t.factory)?(Function("return "+i)()(e),w=new e.FlexSearch.Index(y),delete e.FlexSearch):w=new T(y);postMessage({id:n});break;default:let r;i==="export"&&(s[1]?(s[0]=y.export,s[2]=0,s[3]=1):s=null);i==="import"?s[0]&&(t=await y.import.call(w,s[0]),w.import(s[0],t)):((r=s&&w[i].apply(w,s))&&r.then&&(r=await r),r&&r.await&&(r=await r.await),i==="search"&&r.result&&(r=r.result));postMessage(i==="search"?{id:n,msg:r}:{id:n})}}function Fa(t){Ga.call(t,"add");Ga.call(t,"append");Ga.call(t,"search");Ga.call(t,"update");Ga.call(t,"remove");Ga.call(t,"searchCache")}let x,k,v;function Ka(){x=v=0}function Ga(t){this[t+"Async"]=function(){const e=arguments;var i=e[e.length-1];let n;typeof i==="function"&&(n=i,delete e[e.length-1]);x?v||(v=Date.now()-k>=this.priority*this.priority*3):(x=setTimeout(Ka,0),k=Date.now());if(v){const i=this;return new Promise((n=>{setTimeout((function(){n(i[t+"Async"].apply(i,e))}),0)}))}const s=this[t].apply(this,e);i=s.then?s:new Promise((t=>t(s)));n&&i.then(n);return i}}let _=0;function La(t={},i){function b(e){function h(t){t=t.data||t;const e=t.id,i=e&&r.h[e];i&&(i(t.msg),delete r.h[e])}this.worker=e;this.h=I();if(this.worker){s?this.worker.on("message",h):this.worker.onmessage=h;if(t.config)return new Promise((function(e){_>1e9&&(_=0);r.h[++_]=function(){e(r)};r.worker.postMessage({id:_,task:"init",factory:n,options:t})}));this.priority=t.priority||4;this.encoder=i||null;this.worker.postMessage({task:"init",factory:n,options:t});return this}}if(!this||this.constructor!==La)return new La(t);let n=typeof e!=="undefined"?e._factory:typeof window!=="undefined"?window._factory:null;n&&(n=n.toString());const s=typeof window==="undefined",r=this,o=Ma(n,s,t.worker);return o.then?o.then((function(t){return b.call(r,t)})):b.call(this,o)}W("add");W("append");W("search");W("update");W("remove");W("clear");W("export");W("import");La.prototype.searchCache=la;Fa(La.prototype);function W(t){La.prototype[t]=function(){const e=this,i=[].slice.call(arguments);var n=i[i.length-1];let s;typeof n==="function"&&(s=n,i.pop());n=new Promise((function(n){t==="export"&&typeof i[0]==="function"&&(i[0]=null);_>1e9&&(_=0);e.h[++_]=n;e.worker.postMessage({task:t,id:_,args:i})}));return s?(n.then(s),this):n}}function Ma(t,e,n){return e?true?new(i(267).Worker)(i.ab+"node.js"):0:t?new window.Worker(URL.createObjectURL(new Blob(["onmessage="+Ea.toString()],{type:"text/javascript"}))):new window.Worker(typeof n==="string"?n:(0,eval)("import.meta.url").replace("/worker.js","/worker/worker.js").replace("flexsearch.bundle.module.min.js","module/worker/worker.js").replace("flexsearch.bundle.module.min.mjs","module/worker/worker.js"),{type:"module"})}Na.prototype.add=function(t,e,i){ba(t)&&(e=t,t=ca(e,this.key));if(e&&(t||t===0)){if(!i&&this.reg.has(t))return this.update(t,e);for(let r=0,o;r<this.field.length;r++){o=this.B[r];var n=this.index.get(this.field[r]);if(typeof o==="function"){var s=o(e);s&&n.add(t,s,i,!0)}else if(s=o.G,!s||s(e))o.constructor===String?o=[""+o]:M(o)&&(o=[o]),Oa(e,o,this.D,0,n,t,o[0],i)}if(this.tag)for(n=0;n<this.A.length;n++){var r=this.A[n];s=this.tag.get(this.F[n]);let l=I();if(typeof r==="function"){if(r=r(e),!r)continue}else{var o=r.G;if(o&&!o(e))continue;r.constructor===String&&(r=""+r);r=ca(e,r)}if(s&&r){M(r)&&(r=[r]);for(let e=0,n,a;e<r.length;e++)if(n=r[e],!l[n]&&(l[n]=1,(o=s.get(n))?a=o:s.set(n,a=[]),!i||!a.includes(t))){if(a.length===2**31-1){o=new xa(a);if(this.fastupdate)for(let t of this.reg.values())t.includes(a)&&(t[t.indexOf(a)]=o);s.set(n,a=o)}a.push(t);this.fastupdate&&((o=this.reg.get(t))?o.push(a):this.reg.set(t,[a]))}}}if(this.store&&(!i||!this.store.has(t))){let n;if(this.h){n=I();for(let t=0,s;t<this.h.length;t++){s=this.h[t];if((i=s.G)&&!i(e))continue;let r;if(typeof s==="function"){r=s(e);if(!r)continue;s=[s.O]}else if(M(s)||s.constructor===String){n[s]=e[s];continue}Ra(e,n,s,0,s[0],r)}}this.store.set(t,n||e)}this.worker&&(this.fastupdate||this.reg.add(t))}return this};function Ra(t,e,i,n,s,r){t=t[s];if(n===i.length-1)e[s]=r||t;else if(t)if(t.constructor===Array)for(e=e[s]=Array(t.length),s=0;s<t.length;s++)Ra(t,e,i,n,s);else e=e[s]||(e[s]=I()),s=i[++n],Ra(t,e,i,n,s)}function Oa(t,e,i,n,s,r,o,l){if(t=t[o])if(n===e.length-1){if(t.constructor===Array){if(i[n]){for(e=0;e<t.length;e++)s.add(r,t[e],!0,!0);return}t=t.join(" ")}s.add(r,t,l,!0)}else if(t.constructor===Array)for(o=0;o<t.length;o++)Oa(t,e,i,n,s,r,o,l);else o=e[++n],Oa(t,e,i,n,s,r,o,l)}function Sa(t,e,i,n){if(!t.length)return t;if(t.length===1)return t=t[0],t=i||t.length>e?t.slice(i,i+e):t,n?Ta.call(this,t):t;let s=[];for(let r=0,o,l;r<t.length;r++)if((o=t[r])&&(l=o.length)){if(i){if(i>=l){i-=l;continue}o=o.slice(i,i+e);l=o.length;i=0}l>e&&(o=o.slice(0,e),l=e);if(!s.length&&l>=e)return n?Ta.call(this,o):o;s.push(o);e-=l;if(!e)break}s=s.length>1?[].concat.apply([],s):s[0];return n?Ta.call(this,s):s}function Ua(t,e,i,n){var s=n[0];if(s[0]&&s[0].query)return t[e].apply(t,s);if(!(e!=="and"&&e!=="not"||t.result.length||t.await||s.suggest))return n.length>1&&(s=n[n.length-1]),(n=s.resolve)?t.await||t.result:t;let r=[],o=0,l=0,a,c,f,u,g;for(e=0;e<n.length;e++)if(s=n[e]){var d=void 0;if(s.constructor===X)d=s.await||s.result;else if(s.then||s.constructor===Array)d=s;else{o=s.limit||0;l=s.offset||0;f=s.suggest;c=s.resolve;a=((u=s.highlight||t.highlight)||s.enrich)&&c;d=s.queue;let i=s.async||d,n=s.index,p=s.query;n?t.index||(t.index=n):n=t.index;if(p||s.tag){const o=s.field||s.pluck;o&&(!p||t.query&&!u||(t.query=p,t.field=o,t.highlight=u),n=n.index.get(o));if(d&&(g||t.await)){g=1;let o;const l=t.C.length,a=new Promise((function(t){o=t}));(function(e,n){a.h=function(){n.index=null;n.resolve=!1;let s=i?e.searchAsync(n):e.search(n);if(s.then)return s.then((function(e){t.C[l]=e=e.result||e;o(e);return e}));s=s.result||s;o(s);return s}})(n,Object.assign({},s));t.C.push(a);r[e]=a;continue}else s.resolve=!1,s.index=null,d=i?n.searchAsync(s):n.search(s),s.resolve=c,s.index=n}else if(s.and)d=Va(s,"and",n);else if(s.or)d=Va(s,"or",n);else if(s.not)d=Va(s,"not",n);else if(s.xor)d=Va(s,"xor",n);else continue}d.await?(g=1,d=d.await):d.then?(g=1,d=d.then((function(t){return t.result||t}))):d=d.result||d;r[e]=d}g&&!t.await&&(t.await=new Promise((function(e){t.return=e})));if(g){const e=Promise.all(r).then((function(n){for(let s=0;s<t.C.length;s++)if(t.C[s]===e){t.C[s]=function(){return i.call(t,n,o,l,a,c,f,u)};break}Wa(t)}));t.C.push(e)}else if(t.await)t.C.push((function(){return i.call(t,r,o,l,a,c,f,u)}));else return i.call(t,r,o,l,a,c,f,u);return c?t.await||t.result:t}function Va(t,e,i){t=t[e];const n=t[0]||t;n.index||(n.index=i);i=new X(n);t.length>1&&(i=i[e].apply(i,t.slice(1)));return i}X.prototype.or=function(){return Ua(this,"or",Xa,arguments)};function Xa(t,e,i,n,s,r,o){t.length&&(this.result.length&&t.push(this.result),t.length<2?this.result=t[0]:(this.result=Ya(t,e,i,!1,this.h),i=0));s&&(this.await=null);return s?this.resolve(e,i,n,o):this}X.prototype.and=function(){return Ua(this,"and",Za,arguments)};function Za(t,e,i,n,s,r,o){if(!r&&!this.result.length)return s?this.result:this;let l;if(t.length)if(this.result.length&&t.unshift(this.result),t.length<2)this.result=t[0];else{let n=0;for(let e=0,i,s;e<t.length;e++)if((i=t[e])&&(s=i.length))n<s&&(n=s);else if(!r){n=0;break}n?(this.result=$a(t,n,e,i,r,this.h,s),l=!0):this.result=[]}else r||(this.result=t);s&&(this.await=null);return s?this.resolve(e,i,n,o,l):this}X.prototype.xor=function(){return Ua(this,"xor",ab,arguments)};function ab(t,e,i,n,s,r,o){if(t.length)if(this.result.length&&t.unshift(this.result),t.length<2)this.result=t[0];else{t:{r=i;var l=this.h;const n=[],o=I();let a=0;for(let e=0,i;e<t.length;e++)if(i=t[e]){a<i.length&&(a=i.length);for(let t=0,e;t<i.length;t++)if(e=i[t])for(let t=0,i;t<e.length;t++)i=e[t],o[i]=o[i]?2:1}for(let i=0,c,f=0;i<a;i++)for(let a=0,u;a<t.length;a++)if(u=t[a])if(c=u[i])for(let u=0,g;u<c.length;u++)if(g=c[u],o[g]===1)if(r)r--;else if(s){if(n.push(g),n.length===e){t=n;break t}}else{const s=i+(a?l:0);n[s]||(n[s]=[]);n[s].push(g);if(++f===e){t=n;break t}}t=n}this.result=t;l=!0}else r||(this.result=t);s&&(this.await=null);return s?this.resolve(e,i,n,o,l):this}X.prototype.not=function(){return Ua(this,"not",bb,arguments)};function bb(t,e,i,n,s,r,o){if(!r&&!this.result.length)return s?this.result:this;if(t.length&&this.result.length){t:{r=i;var l=[];t=new Set(t.flat().flat());for(let i=0,n,o=0;i<this.result.length;i++)if(n=this.result[i])for(let a=0,c;a<n.length;a++)if(c=n[a],!t.has(c))if(r)r--;else if(s){if(l.push(c),l.length===e){t=l;break t}}else if(l[i]||(l[i]=[]),l[i].push(c),++o===e){t=l;break t}t=l}this.result=t;l=!0}s&&(this.await=null);return s?this.resolve(e,i,n,o,l):this}function cb(t,e,i,n,s){let r,o,l;typeof s==="string"?(r=s,s=""):r=s.template;o=r.indexOf("$1");l=r.substring(o+2);o=r.substring(0,o);let a=s&&s.boundary,c=!s||s.clip!==!1,f=s&&s.merge&&l&&o&&new RegExp(l+" "+o,"g");s=s&&s.ellipsis;var u=0;if(typeof s==="object"){var g=s.template;u=g.length-2;s=s.pattern}typeof s!=="string"&&(s=s===!1?"":"...");u&&(s=g.replace("$1",s));g=s.length-u;let d,p;typeof a==="object"&&(d=a.before,d===0&&(d=-1),p=a.after,p===0&&(p=-1),a=a.total||9e5);u=new Map;for(let N=0,$,E,G;N<e.length;N++){let J;if(n)J=e,G=n;else{var m=e[N];G=m.field;if(!G)continue;J=m.result}E=i.get(G);$=E.encoder;m=u.get($);typeof m!=="string"&&(m=$.encode(t),u.set($,m));for(let t=0;t<J.length;t++){var w=J[t].doc;if(!w)continue;w=ca(w,G);if(!w)continue;var y=w.trim().split(/\s+/);if(!y.length)continue;w="";var x=[];let e=[];var k=-1,v=-1,_=0;for(var A=0;A<y.length;A++){var j=y[A],z=$.encode(j);z=z.length>1?z.join(" "):z[0];let t;if(z&&j){var B=j.length,C=($.split?j.replace($.split,""):j).length-z.length,O="",L=0;for(var q=0;q<m.length;q++){var D=m[q];if(D){var F=D.length;F+=C<0?0:C;L&&F<=L||(D=z.indexOf(D),D>-1&&(O=(D?j.substring(0,D):"")+o+j.substring(D,D+F)+l+(D+F<B?j.substring(D+F):""),L=F,t=!0))}}O&&(a&&(k<0&&(k=w.length+(w?1:0)),v=w.length+(w?1:0)+O.length,_+=B,e.push(x.length),x.push({match:O})),w+=(w?" ":"")+O)}if(!t)j=y[A],w+=(w?" ":"")+j,a&&x.push({text:j});else if(a&&_>=a)break}_=e.length*(r.length-2);if(d||p||a&&w.length-_>a)if(_=a+_-g*2,A=v-k,d>0&&(A+=d),p>0&&(A+=p),A<=_)y=d?k-(d>0?d:0):k-((_-A)/2|0),x=p?v+(p>0?p:0):y+_,c||(y>0&&w.charAt(y)!==" "&&w.charAt(y-1)!==" "&&(y=w.indexOf(" ",y),y<0&&(y=0)),x<w.length&&w.charAt(x-1)!==" "&&w.charAt(x)!==" "&&(x=w.lastIndexOf(" ",x),x<v?x=v:++x)),w=(y?s:"")+w.substring(y,x)+(x<w.length?s:"");else{v=[];k={};_={};A={};j={};z={};O=C=B=0;for(q=L=1;;){var P=void 0;for(let t=0,i;t<e.length;t++){i=e[t];if(O)if(C!==O){if(A[t+1])continue;i+=O;if(k[i]){B-=g;_[t+1]=1;A[t+1]=1;continue}if(i>=x.length-1){if(i>=x.length){A[t+1]=1;i>=y.length&&(_[t+1]=1);continue}B-=g}w=x[i].text;if(F=p&&z[t])if(F>0){if(w.length>F)if(A[t+1]=1,c)w=w.substring(0,F);else continue;(F-=w.length)||(F=-1);z[t]=F}else{A[t+1]=1;continue}if(B+w.length+1<=a)w=" "+w,v[t]+=w;else if(c)P=a-B-1,P>0&&(w=" "+w.substring(0,P),v[t]+=w),A[t+1]=1;else{A[t+1]=1;continue}}else{if(A[t])continue;i-=C;if(k[i]){B-=g;A[t]=1;_[t]=1;continue}if(i<=0){if(i<0){A[t]=1;_[t]=1;continue}B-=g}w=x[i].text;if(F=d&&j[t])if(F>0){if(w.length>F)if(A[t]=1,c)w=w.substring(w.length-F);else continue;(F-=w.length)||(F=-1);j[t]=F}else{A[t]=1;continue}if(B+w.length+1<=a)w+=" ",v[t]=w+v[t];else if(c)P=w.length+1-(a-B),P>=0&&P<w.length&&(w=w.substring(P)+" ",v[t]=w+v[t]),A[t]=1;else{A[t]=1;continue}}else{w=x[i].match;d&&(j[t]=d);p&&(z[t]=p);t&&B++;let e;i?!t&&g&&(B+=g):(_[t]=1,A[t]=1);i>=y.length-1?e=1:i<x.length-1&&x[i+1].match?e=1:g&&(B+=g);B-=r.length-2;if(!t||B+w.length<=a)v[t]=w;else{P=L=q=_[t]=0;break}e&&(_[t+1]=1,A[t+1]=1)}B+=w.length;P=k[i]=1}if(P)C===O?O++:C++;else{C===O?L=0:q=0;if(!L&&!q)break;L?(C++,O=C):O++}}w="";for(let t=0,e;t<v.length;t++)e=(_[t]?t?" ":"":(t&&!s?" ":"")+s)+v[t],w+=e;s&&!_[v.length]&&(w+=s)}f&&(w=w.replace(f," "));J[t].highlight=w}if(n)break}return e}function X(t,e){if(!this||this.constructor!==X)return new X(t,e);let i=0,n,s,r,o,l,a;if(t&&t.index){const n=t;e=n.index;i=n.boost||0;if(s=n.query){r=n.field||n.pluck;o=n.highlight;const i=n.resolve;t=n.async||n.queue;n.resolve=!1;n.index=null;t=t?e.searchAsync(n):e.search(n);n.resolve=i;n.index=e;t=t.result||t}else t=[]}if(t&&t.then){const e=this;t=t.then((function(t){e.C[0]=e.result=t.result||t;Wa(e)}));n=[t];t=[];l=new Promise((function(t){a=t}))}this.index=e||null;this.result=t||[];this.h=i;this.C=n||[];this.await=l||null;this.return=a||null;this.highlight=o||null;this.query=s||"";this.field=r||""}n=X.prototype;n.limit=function(t){if(this.await){const e=this;this.C.push((function(){return e.limit(t).result}))}else if(this.result.length){const e=[];for(let i=0,n;i<this.result.length;i++)if(n=this.result[i])if(n.length<=t){if(e[i]=n,t-=n.length,!t)break}else{e[i]=n.slice(0,t);break}this.result=e}return this};n.offset=function(t){if(this.await){const e=this;this.C.push((function(){return e.offset(t).result}))}else if(this.result.length){const e=[];for(let i=0,n;i<this.result.length;i++)if(n=this.result[i])n.length<=t?t-=n.length:(e[i]=n.slice(t),t=0);this.result=e}return this};n.boost=function(t){if(this.await){const e=this;this.C.push((function(){return e.boost(t).result}))}else this.h+=t;return this};function Wa(t,e){let i=t.result;var n=t.await;t.await=null;for(let e=0,s;e<t.C.length;e++)if(s=t.C[e])if(typeof s==="function")i=s(),t.C[e]=i=i.result||i,e--;else if(s.h)i=s.h(),t.C[e]=i=i.result||i,e--;else if(s.then)return t.await=n;n=t.return;t.C=[];t.return=null;e||n(i);return i}n.resolve=function(t,e,i,n,s){let r=this.await?Wa(this,!0):this.result;if(r.then){const o=this;return r.then((function(){return o.resolve(t,e,i,n,s)}))}r.length&&(typeof t==="object"?(n=t.highlight||this.highlight,i=!!n||t.enrich,e=t.offset,t=t.limit):(n=n||this.highlight,i=!!n||i),r=s?i?Ta.call(this.index,r):r:Sa.call(this.index,r,t||100,e,i));return this.finalize(r,n)};n.finalize=function(t,e){if(t.then){const i=this;return t.then((function(t){return i.finalize(t,e)}))}e&&t.length&&this.query&&(t=cb(this.query,t,this.index.index,this.field,e));const i=this.return;this.highlight=this.index=this.result=this.C=this.await=this.return=null;this.query=this.field="";i&&i(t);return t};function $a(t,e,i,n,s,r,o){const l=t.length;let a=[],c,f;c=I();for(let u=0,g,d,p,m;u<e;u++)for(let e=0;e<l;e++)if(p=t[e],u<p.length&&(g=p[u]))for(let t=0;t<g.length;t++){d=g[t];(f=c[d])?c[d]++:(f=0,c[d]=1);m=a[f]||(a[f]=[]);if(!o){let t=u+(e||!s?0:r||0);m=m[t]||(m[t]=[])}m.push(d);if(o&&i&&f===l-1&&m.length-n===i)return n?m.slice(n):m}if(t=a.length)if(s)a=a.length>1?Ya(a,i,n,o,r):(a=a[0])&&i&&a.length>i||n?a.slice(n,i+n):a;else{if(t<l)return[];a=a[t-1];if(i||n)if(o){if(a.length>i||n)a=a.slice(n,i+n)}else{s=[];for(let t=0,e;t<a.length;t++)if(e=a[t])if(n&&e.length>n)n-=e.length;else{if(i&&e.length>i||n)e=e.slice(n,i+n),i-=e.length,n&&(n-=e.length);s.push(e);if(!i)break}a=s}}return a}function Ya(t,e,i,n,s){const r=[],o=I();let l;var a=t.length;let c;if(n)for(s=a-1;s>=0;s--){if(c=(n=t[s])&&n.length)for(a=0;a<c;a++)if(l=n[a],!o[l])if(o[l]=1,i)i--;else if(r.push(l),r.length===e)return r}else for(let f=a-1,u,g=0;f>=0;f--){u=t[f];for(let t=0;t<u.length;t++)if(c=(n=u[t])&&n.length)for(let u=0;u<c;u++)if(l=n[u],!o[l])if(o[l]=1,i)i--;else{let i=(t+(f<a-1?s||0:0))/(f+1)|0;(r[i]||(r[i]=[])).push(l);if(++g===e)return r}}return r}function db(t,e,i,n,s){const r=I(),o=[];for(let t=0,i;t<e.length;t++){i=e[t];for(let t=0;t<i.length;t++)r[i[t]]=1}if(s)for(let e=0,s;e<t.length;e++){if(s=t[e],r[s])if(n)n--;else if(o.push(s),r[s]=0,i&&--i===0)break}else for(let i=0,n,s;i<t.result.length;i++)for(n=t.result[i],e=0;e<n.length;e++)s=n[e],r[s]&&((o[i]||(o[i]=[])).push(s),r[s]=0);return o}I();Na.prototype.search=function(t,e,i,n){i||(!e&&ba(t)?(i=t,t=""):ba(e)&&(i=e,e=0));let s=[];var r=[];let o;let l,a,c,f,u;let g=0,d=!0,p;if(i){i.constructor===Array&&(i={index:i});t=i.query||t;o=i.pluck;l=i.merge;c=i.boost;u=o||i.field||(u=i.index)&&(u.index?null:u);var m=this.tag&&i.tag;a=i.suggest;d=i.resolve!==!1;f=i.cache;p=d&&this.store&&i.highlight;var w=!!p||d&&this.store&&i.enrich;e=i.limit||e;var y=i.offset||0;e||(e=d?100:0);if(m&&(!this.db||!n)){m.constructor!==Array&&(m=[m]);var x=[];for(let t=0,e;t<m.length;t++)if(e=m[t],e.field&&e.tag){var k=e.tag;if(k.constructor===Array)for(var v=0;v<k.length;v++)x.push(e.field,k[v]);else x.push(e.field,k)}else{k=Object.keys(e);for(let t=0,i,n;t<k.length;t++)if(i=k[t],n=e[i],n.constructor===Array)for(v=0;v<n.length;v++)x.push(i,n[v]);else x.push(i,n)}m=x;if(!t){r=[];if(x.length)for(m=0;m<x.length;m+=2){if(this.db){n=this.index.get(x[m]);if(!n)continue;r.push(n=n.db.tag(x[m+1],e,y,w))}else n=eb.call(this,x[m],x[m+1],e,y,w);s.push(d?{field:x[m],tag:x[m+1],result:n}:[n])}if(r.length){const t=this;return Promise.all(r).then((function(e){for(let t=0;t<e.length;t++)d?s[t].result=e[t]:s[t]=e[t];return d?s:new X(s.length>1?$a(s,1,0,0,a,c):s[0],t)}))}return d?s:new X(s.length>1?$a(s,1,0,0,a,c):s[0],this)}}d||o||!(u=u||this.field)||(M(u)?o=u:(u.constructor===Array&&u.length===1&&(u=u[0]),o=u.field||u.index));u&&u.constructor!==Array&&(u=[u])}u||(u=this.field);let _;x=(this.worker||this.db)&&!n&&[];for(let o=0,l,c,j;o<u.length;o++){c=u[o];if(this.db&&this.tag&&!this.B[o])continue;let z;M(c)||(z=c,c=z.field,t=z.query||t,e=aa(z.limit,e),y=aa(z.offset,y),a=aa(z.suggest,a),p=d&&this.store&&aa(z.highlight,p),w=!!p||d&&this.store&&aa(z.enrich,w),f=aa(z.cache,f));if(n)l=n[o];else{k=z||i||{};v=k.enrich;var A=this.index.get(c);m&&(this.db&&(k.tag=m,k.field=u,_=A.db.support_tag_search),!_&&v&&(k.enrich=!1),_||(k.limit=0,k.offset=0));l=f?A.searchCache(t,m&&!_?0:e,k):A.search(t,m&&!_?0:e,k);m&&!_&&(k.limit=e,k.offset=y);v&&(k.enrich=v);if(x){x[o]=l;continue}}j=(l=l.result||l)&&l.length;if(m&&j){k=[];v=0;if(this.db&&n){if(!_)for(A=u.length;A<n.length;A++){let t=n[A];if(t&&t.length)v++,k.push(t);else if(!a)return d?s:new X(s,this)}}else for(let t=0,e,i;t<m.length;t+=2){e=this.tag.get(m[t]);if(!e)if(a)continue;else return d?s:new X(s,this);if(i=(e=e&&e.get(m[t+1]))&&e.length)v++,k.push(e);else if(!a)return d?s:new X(s,this)}if(v){l=db(l,k,e,y,d);j=l.length;if(!j&&!a)return d?l:new X(l,this);v--}}if(j)r[g]=c,s.push(l),g++;else if(u.length===1)return d?s:new X(s,this)}if(x){if(this.db&&m&&m.length&&!_)for(w=0;w<m.length;w+=2){r=this.index.get(m[w]);if(!r)if(a)continue;else return d?s:new X(s,this);x.push(r.db.tag(m[w+1],e,y,!1))}const n=this;return Promise.all(x).then((function(s){i&&(i.resolve=d);s.length&&(s=n.search(t,e,i,s));return s}))}if(!g)return d?s:new X(s,this);if(o&&(!w||!this.store))return s=s[0],d?s:new X(s,this);x=[];for(y=0;y<r.length;y++){m=s[y];w&&m.length&&typeof m[0].doc==="undefined"&&(this.db?x.push(m=this.index.get(this.field[0]).db.enrich(m)):m=Ta.call(this,m));if(o)return d?p?cb(t,m,this.index,o,p):m:new X(m,this);s[y]={field:r[y],result:m}}if(w&&this.db&&x.length){const e=this;return Promise.all(x).then((function(i){for(let t=0;t<i.length;t++)s[t].result=i[t];p&&(s=cb(t,s,e.index,o,p));return l?fb(s):s}))}p&&(s=cb(t,s,this.index,o,p));return l?fb(s):s};function fb(t){const e=[],i=I(),n=I();for(let s=0,r,o,l,a,c,f,u;s<t.length;s++){r=t[s];o=r.field;l=r.result;for(let t=0;t<l.length;t++)if(c=l[t],typeof c!=="object"?c={id:a=c}:a=c.id,(f=i[a])?f.push(o):(c.field=i[a]=[o],e.push(c)),u=c.highlight)f=n[a],f||(n[a]=f={},c.highlight=f),f[o]=u}return e}function eb(t,e,i,n,s){t=this.tag.get(t);if(!t)return[];t=t.get(e);if(!t)return[];e=t.length-n;if(e>0){if(i&&e>i||n)t=t.slice(n,n+i);s&&(t=Ta.call(this,t))}return t}function Ta(t){if(!this||!this.store)return t;if(this.db)return this.index.get(this.field[0]).db.enrich(t);const e=Array(t.length);for(let i=0,n;i<t.length;i++)n=t[i],e[i]={id:n,doc:this.store.get(n)};return e}function Na(t){if(!this||this.constructor!==Na)return new Na(t);const e=t.document||t.doc||t;let i,n;this.B=[];this.field=[];this.D=[];this.key=(i=e.key||e.id)&&hb(i,this.D)||"id";(n=t.keystore||0)&&(this.keystore=n);this.fastupdate=!!t.fastupdate;this.reg=!this.fastupdate||t.worker||t.db?n?new S(n):new Set:n?new R(n):new Map;this.h=(i=e.store||null)&&i&&i!==!0&&[];this.store=i?n?new R(n):new Map:null;this.cache=(i=t.cache||null)&&new ma(i);t.cache=!1;this.worker=t.worker||!1;this.priority=t.priority||4;this.index=ib.call(this,t,e);this.tag=null;if(i=e.tag)if(typeof i==="string"&&(i=[i]),i.length){this.tag=new Map;this.A=[];this.F=[];for(let t=0,e,n;t<i.length;t++){e=i[t];n=e.field||e;if(!n)throw Error("The tag field from the document descriptor is undefined.");e.custom?this.A[t]=e.custom:(this.A[t]=hb(n,this.D),e.filter&&(typeof this.A[t]==="string"&&(this.A[t]=new String(this.A[t])),this.A[t].G=e.filter));this.F[t]=n;this.tag.set(n,new Map)}}if(this.worker){this.fastupdate=!1;t=[];for(const e of this.index.values())e.then&&t.push(e);if(t.length){const e=this;return Promise.all(t).then((function(t){let i=0;for(const n of e.index.entries()){const s=n[0];let r=n[1];r.then&&(r=t[i],e.index.set(s,r),i++)}return e}))}}else t.db&&(this.fastupdate=!1,this.mount(t.db))}n=Na.prototype;n.mount=function(t){let e=this.field;if(this.tag)for(let t=0,n;t<this.F.length;t++){n=this.F[t];var i=void 0;this.index.set(n,i=new T({},this.reg));e===this.field&&(e=e.slice(0));e.push(n);i.tag=this.tag.get(n)}i=[];const n={db:t.db,type:t.type,fastupdate:t.fastupdate};for(let s=0,r,o;s<e.length;s++){n.field=o=e[s];r=this.index.get(o);const l=new t.constructor(t.id,n);l.id=t.id;i[s]=l.mount(r);r.document=!0;s?r.bypass=!0:r.store=this.store}const s=this;return this.db=Promise.all(i).then((function(){s.db=!0}))};n.commit=async function(){const t=[];for(const e of this.index.values())t.push(e.commit());await Promise.all(t);this.reg.clear()};n.destroy=function(){const t=[];for(const e of this.index.values())t.push(e.destroy());return Promise.all(t)};function ib(t,e){const i=new Map;let n=e.index||e.field||e;M(n)&&(n=[n]);for(let e=0,r,o;e<n.length;e++){r=n[e];M(r)||(o=r,r=r.field);o=ba(o)?Object.assign({},t,o):t;if(this.worker){var s=void 0;s=(s=o.encoder)&&s.encode?s:new ka(typeof s==="string"?m[s]:s||{});s=new La(o,s);i.set(r,s)}this.worker||i.set(r,new T(o,this.reg));o.custom?this.B[e]=o.custom:(this.B[e]=hb(r,this.D),o.filter&&(typeof this.B[e]==="string"&&(this.B[e]=new String(this.B[e])),this.B[e].G=o.filter));this.field[e]=r}if(this.h){t=e.store;M(t)&&(t=[t]);for(let e=0,i,n;e<t.length;e++)i=t[e],n=i.field||i,i.custom?(this.h[e]=i.custom,i.custom.O=n):(this.h[e]=hb(n,this.D),i.filter&&(typeof this.h[e]==="string"&&(this.h[e]=new String(this.h[e])),this.h[e].G=i.filter))}return i}function hb(t,e){const i=t.split(":");let n=0;for(let s=0;s<i.length;s++)t=i[s],t[t.length-1]==="]"&&(t=t.substring(0,t.length-2))&&(e[n]=!0),t&&(i[n++]=t);n<i.length&&(i.length=n);return n>1?i:i[0]}n.append=function(t,e){return this.add(t,e,!0)};n.update=function(t,e){return this.remove(t).add(t,e)};n.remove=function(t){ba(t)&&(t=ca(t,this.key));for(var e of this.index.values())e.remove(t,!0);if(this.reg.has(t)){if(this.tag&&!this.fastupdate)for(let i of this.tag.values())for(let n of i){e=n[0];const s=n[1],r=s.indexOf(t);r>-1&&(s.length>1?s.splice(r,1):i.delete(e))}this.store&&this.store.delete(t);this.reg.delete(t)}this.cache&&this.cache.remove(t);return this};n.clear=function(){const t=[];for(const e of this.index.values()){const i=e.clear();i.then&&t.push(i)}if(this.tag)for(const t of this.tag.values())t.clear();this.store&&this.store.clear();this.cache&&this.cache.clear();return t.length?Promise.all(t):this};n.contain=function(t){return this.db?this.index.get(this.field[0]).db.has(t):this.reg.has(t)};n.cleanup=function(){for(const t of this.index.values())t.cleanup();return this};n.get=function(t){return this.db?this.index.get(this.field[0]).db.enrich(t).then((function(t){return t[0]&&t[0].doc||null})):this.store.get(t)||null};n.set=function(t,e){typeof t==="object"&&(e=t,t=ca(e,this.key));this.store.set(t,e);return this};n.searchCache=la;n.export=jb;n.import=kb;Fa(Na.prototype);function lb(t,e=0){let i=[],n=[];e&&(e=25e4/e*5e3|0);for(const s of t.entries())n.push(s),n.length===e&&(i.push(n),n=[]);n.length&&i.push(n);return i}function mb(t,e){e||(e=new Map);for(let i=0,n;i<t.length;i++)n=t[i],e.set(n[0],n[1]);return e}function nb(t,e=0){let i=[],n=[];e&&(e=25e4/e*1e3|0);for(const s of t.entries())n.push([s[0],lb(s[1])[0]||[]]),n.length===e&&(i.push(n),n=[]);n.length&&i.push(n);return i}function ob(t,e){e||(e=new Map);for(let i=0,n,s;i<t.length;i++)n=t[i],s=e.get(n[0]),e.set(n[0],mb(n[1],s));return e}function pb(t){let e=[],i=[];for(const n of t.keys())i.push(n),i.length===25e4&&(e.push(i),i=[]);i.length&&e.push(i);return e}function qb(t,e){e||(e=new Set);for(let i=0;i<t.length;i++)e.add(t[i]);return e}function rb(t,e,i,n,s,r,o=0){const l=n&&n.constructor===Array;var a=l?n.shift():n;if(!a)return this.export(t,e,s,r+1);if((a=t((e?e+".":"")+(o+1)+"."+i,JSON.stringify(a)))&&a.then){const c=this;return a.then((function(){return rb.call(c,t,e,i,l?n:null,s,r,o+1)}))}return rb.call(this,t,e,i,l?n:null,s,r,o+1)}function jb(t,e,i=0,n=0){if(i<this.field.length){const s=this.field[i];if((e=this.index.get(s).export(t,s,i,n=1))&&e.then){const n=this;return e.then((function(){return n.export(t,s,i+1)}))}return this.export(t,s,i+1)}let s,r;switch(n){case 0:s="reg";r=pb(this.reg);e=null;break;case 1:s="tag";r=this.tag&&nb(this.tag,this.reg.size);e=null;break;case 2:s="doc";r=this.store&&lb(this.store);e=null;break;default:return}return rb.call(this,t,e,s,r||null,i,n)}function kb(t,e){var i=t.split(".");i[i.length-1]==="json"&&i.pop();const n=i.length>2?i[0]:"";i=i.length>2?i[2]:i[1];if(this.worker&&n)return this.index.get(n).import(t);if(e){typeof e==="string"&&(e=JSON.parse(e));if(n)return this.index.get(n).import(i,e);switch(i){case"reg":this.fastupdate=!1;this.reg=qb(e,this.reg);for(let t=0,e;t<this.field.length;t++)e=this.index.get(this.field[t]),e.fastupdate=!1,e.reg=this.reg;if(this.worker){e=[];for(const i of this.index.values())e.push(i.import(t));return Promise.all(e)}break;case"tag":this.tag=ob(e,this.tag);break;case"doc":this.store=mb(e,this.store)}}}function sb(t,e){let i="";for(const n of t.entries()){t=n[0];const s=n[1];let r="";for(let t=0,i;t<s.length;t++){i=s[t]||[""];let n="";for(let t=0;t<i.length;t++)n+=(n?",":"")+(e==="string"?'"'+i[t]+'"':i[t]);n="["+n+"]";r+=(r?",":"")+n}r='["'+t+'",['+r+"]]";i+=(i?",":"")+r}return i}T.prototype.remove=function(t,e){const i=this.reg.size&&(this.fastupdate?this.reg.get(t):this.reg.has(t));if(i){if(this.fastupdate)for(let e=0,n,s;e<i.length;e++){if((n=i[e])&&(s=n.length))if(n[s-1]===t)n.pop();else{const e=n.indexOf(t);e>=0&&n.splice(e,1)}}else tb(this.map,t),this.depth&&tb(this.ctx,t);e||this.reg.delete(t)}this.db&&(this.commit_task.push({del:t}),this.M&&ub(this));this.cache&&this.cache.remove(t);return this};function tb(t,e){let i=0;var n=typeof e==="undefined";if(t.constructor===Array)for(let s=0,r,o,l;s<t.length;s++){if((r=t[s])&&r.length){if(n)return 1;o=r.indexOf(e);if(o>=0){if(r.length>1)return r.splice(o,1),1;delete t[s];if(i)return 1;l=1}else{if(l)return 1;i++}}}else for(let s of t.entries())n=s[0],tb(s[1],e)?i++:t.delete(n);return i}const A={memory:{resolution:1},performance:{resolution:3,fastupdate:!0,context:{depth:1,resolution:1}},match:{tokenize:"forward"},score:{resolution:9,context:{depth:2,resolution:3}}};T.prototype.add=function(t,e,i,n){if(e&&(t||t===0)){if(!n&&!i&&this.reg.has(t))return this.update(t,e);n=this.depth;e=this.encoder.encode(e,!n);const c=e.length;if(c){const f=I(),u=I(),g=this.resolution;for(let d=0;d<c;d++){let p=e[this.rtl?c-1-d:d];var s=p.length;if(s&&(n||!u[p])){var r=this.score?this.score(e,p,d,null,0):wb(g,c,d),o="";switch(this.tokenize){case"tolerant":Y(this,u,p,r,t,i);if(s>2){for(let e=1,n,l,a,c;e<s-1;e++)n=p.charAt(e),l=p.charAt(e+1),a=p.substring(0,e)+l,c=p.substring(e+2),o=a+n+c,Y(this,u,o,r,t,i),o=a+c,Y(this,u,o,r,t,i);Y(this,u,p.substring(0,p.length-1),r,t,i)}break;case"full":if(s>2){for(let n=0,a;n<s;n++)for(r=s;r>n;r--){o=p.substring(n,r);a=this.rtl?s-1-n:n;var l=this.score?this.score(e,p,d,o,a):wb(g,c,d,s,a);Y(this,u,o,l,t,i)}break}case"bidirectional":case"reverse":if(s>1){for(l=s-1;l>0;l--){o=p[this.rtl?s-1-l:l]+o;var a=this.score?this.score(e,p,d,o,l):wb(g,c,d,s,l);Y(this,u,o,a,t,i)}o=""}case"forward":if(s>1){for(l=0;l<s;l++)o+=p[this.rtl?s-1-l:l],Y(this,u,o,r,t,i);break}default:if(Y(this,u,p,r,t,i),n&&c>1&&d<c-1)for(s=this.N,o=p,r=Math.min(n+1,this.rtl?d+1:c-d),l=1;l<r;l++){p=e[this.rtl?c-1-d-l:d+l];a=this.bidirectional&&p>o;const n=this.score?this.score(e,o,d,p,l-1):wb(s+(c/2>s?0:1),c,d,r-1,l-1);Y(this,f,a?o:p,n,t,i,a?p:o)}}}}this.fastupdate||this.reg.add(t)}}this.db&&(this.commit_task.push(i?{ins:t}:{del:t}),this.M&&ub(this));return this};function Y(t,e,i,n,s,r,o){let l,a;if(!(l=e[i])||o&&!l[o]){o?(e=l||(e[i]=I()),e[o]=1,a=t.ctx,(l=a.get(o))?a=l:a.set(o,a=t.keystore?new R(t.keystore):new Map)):(a=t.map,e[i]=1);(l=a.get(i))?a=l:a.set(i,a=l=[]);if(r)for(let i=0,r;i<l.length;i++)if((r=l[i])&&r.includes(s)){if(i<=n)return;r.splice(r.indexOf(s),1);t.fastupdate&&(e=t.reg.get(s))&&e.splice(e.indexOf(r),1);break}a=a[n]||(a[n]=[]);a.push(s);if(a.length===2**31-1){e=new xa(a);if(t.fastupdate)for(let i of t.reg.values())i.includes(a)&&(i[i.indexOf(a)]=e);l[n]=a=e}t.fastupdate&&((n=t.reg.get(s))?n.push(a):t.reg.set(s,[a]))}}function wb(t,e,i,n,s){return i&&t>1?e+(n||0)<=t?i+(s||0):(t-1)/(e+(n||0))*(i+(s||0))+1|0:0}T.prototype.search=function(t,e,i){i||(e||typeof t!=="object"?typeof e==="object"&&(i=e,e=0):(i=t,t=""));if(i&&i.cache)return i.cache=!1,t=this.searchCache(t,e,i),i.cache=!0,t;let n=[],s,r,o,l=0,a,c,f,u,g;i&&(t=i.query||t,e=i.limit||e,l=i.offset||0,r=i.context,o=i.suggest,g=(a=i.resolve)&&i.enrich,f=i.boost,u=i.resolution,c=this.db&&i.tag);typeof a==="undefined"&&(a=this.resolve);r=this.depth&&r!==!1;let d=this.encoder.encode(t,!r);s=d.length;e=e||(a?100:0);if(s===1)return xb.call(this,d[0],"",e,l,a,g,c);if(s===2&&r&&!o)return xb.call(this,d[1],d[0],e,l,a,g,c);let p=I(),m=0,w;r&&(w=d[0],m=1);u||u===0||(u=w?this.N:this.resolution);if(this.db){if(this.db.search&&(i=this.db.search(this,d,e,l,o,a,g,c),i!==!1))return i;const t=this;return async function(){for(let e,i;m<s;m++){if((i=d[m])&&!p[i]){p[i]=1;e=await yb(t,i,w,0,0,!1,!1);if(e=zb(e,n,o,u)){n=e;break}w&&(o&&e&&n.length||(w=i))}o&&w&&m===s-1&&!n.length&&(u=t.resolution,w="",m=-1,p=I())}return Ab(n,u,e,l,o,f,a)}()}for(let t,e;m<s;m++){if((e=d[m])&&!p[e]){p[e]=1;t=yb(this,e,w,0,0,!1,!1);if(t=zb(t,n,o,u)){n=t;break}w&&(o&&t&&n.length||(w=e))}o&&w&&m===s-1&&!n.length&&(u=this.resolution,w="",m=-1,p=I())}return Ab(n,u,e,l,o,f,a)};function Ab(t,e,i,n,s,r,o){let l=t.length,a=t;if(l>1)a=$a(t,e,i,n,s,r,o);else if(l===1)return o?Sa.call(null,t[0],i,n):new X(t[0],this);return o?a:new X(a,this)}function xb(t,e,i,n,s,r,o){t=yb(this,t,e,i,n,s,r,o);return this.db?t.then((function(t){return s?t||[]:new X(t,this)})):t&&t.length?s?Sa.call(this,t,i,n):new X(t,this):s?[]:new X([],this)}function zb(t,e,i,n){let s=[];if(t&&t.length){if(t.length<=n){e.push(t);return}for(let e=0,i;e<n;e++)if(i=t[e])s[e]=i;if(s.length){e.push(s);return}}if(!i)return s}function yb(t,e,i,n,s,r,o,l){let a;i&&(a=t.bidirectional&&e>i)&&(a=i,i=e,e=a);if(t.db)return t.db.get(e,i,n,s,r,o,l);t=i?(t=t.ctx.get(i))&&t.get(e):t.map.get(e);return t}function T(t,e){if(!this||this.constructor!==T)return new T(t);if(t){var i=M(t)?t:t.preset;i&&(t=Object.assign({},A[i],t))}else t={};i=t.context;const n=i===!0?{depth:1}:i||{},s=M(t.encoder)?m[t.encoder]:t.encode||t.encoder||{};this.encoder=s.encode?s:typeof s==="object"?new ka(s):{encode:s};this.resolution=t.resolution||9;this.tokenize=i=(i=t.tokenize)&&i!=="default"&&i!=="exact"&&i||"strict";this.depth=i==="strict"&&n.depth||0;this.bidirectional=n.bidirectional!==!1;this.fastupdate=!!t.fastupdate;this.score=t.score||null;(i=t.keystore||0)&&(this.keystore=i);this.map=i?new R(i):new Map;this.ctx=i?new R(i):new Map;this.reg=e||(this.fastupdate?i?new R(i):new Map:i?new S(i):new Set);this.N=n.resolution||3;this.rtl=s.rtl||t.rtl||!1;this.cache=(i=t.cache||null)&&new ma(i);this.resolve=t.resolve!==!1;if(i=t.db)this.db=this.mount(i);this.M=t.commit!==!1;this.commit_task=[];this.commit_timer=null;this.priority=t.priority||4}n=T.prototype;n.mount=function(t){this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null);return t.mount(this)};n.commit=function(){this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null);return this.db.commit(this)};n.destroy=function(){this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null);return this.db.destroy()};function ub(t){t.commit_timer||(t.commit_timer=setTimeout((function(){t.commit_timer=null;t.db.commit(t)}),1))}n.clear=function(){this.map.clear();this.ctx.clear();this.reg.clear();this.cache&&this.cache.clear();return this.db?(this.commit_timer&&clearTimeout(this.commit_timer),this.commit_timer=null,this.commit_task=[],this.db.clear()):this};n.append=function(t,e){return this.add(t,e,!0)};n.contain=function(t){return this.db?this.db.has(t):this.reg.has(t)};n.update=function(t,e){const i=this,n=this.remove(t);return n&&n.then?n.then((()=>i.add(t,e))):this.add(t,e)};n.cleanup=function(){if(!this.fastupdate)return this;tb(this.map);this.depth&&tb(this.ctx);return this};n.searchCache=la;n.export=function(t,e,i=0,n=0){let s,r;switch(n){case 0:s="reg";r=pb(this.reg);break;case 1:s="cfg";r=null;break;case 2:s="map";r=lb(this.map,this.reg.size);break;case 3:s="ctx";r=nb(this.ctx,this.reg.size);break;default:return}return rb.call(this,t,e,s,r,i,n)};n.import=function(t,e){if(e)switch(typeof e==="string"&&(e=JSON.parse(e)),t=t.split("."),t[t.length-1]==="json"&&t.pop(),t.length===3&&t.shift(),t=t.length>1?t[1]:t[0],t){case"reg":this.fastupdate=!1;this.reg=qb(e,this.reg);break;case"map":this.map=mb(e,this.map);break;case"ctx":this.ctx=ob(e,this.ctx)}};n.serialize=function(t=!0){let e="",i="",n="";if(this.reg.size){let t;for(var s of this.reg.keys())t||(t=typeof s),e+=(e?",":"")+(t==="string"?'"'+s+'"':s);e="index.reg=new Set(["+e+"]);";i=sb(this.map,t);i="index.map=new Map(["+i+"]);";for(const e of this.ctx.entries()){s=e[0];let i=sb(e[1],t);i="new Map(["+i+"])";i='["'+s+'",'+i+"]";n+=(n?",":"")+i}n="index.ctx=new Map(["+n+"]);"}return t?"function inject(index){"+e+i+n+"}":e+i+n};Fa(T.prototype);const j=typeof window!=="undefined"&&(window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB),z=["map","ctx","tag","reg","cfg"],B=I();function Eb(t,e={}){if(!this||this.constructor!==Eb)return new Eb(t,e);typeof t==="object"&&(e=t,t=t.name);t||console.info("Default storage space was used, because a name was not passed.");this.id="flexsearch"+(t?":"+t.toLowerCase().replace(/[^a-z0-9_\-]/g,""):"");this.field=e.field?e.field.toLowerCase().replace(/[^a-z0-9_\-]/g,""):"";this.type=e.type;this.fastupdate=this.support_tag_search=!1;this.db=null;this.h={}}n=Eb.prototype;n.mount=function(t){if(t.index)return t.mount(this);t.db=this;return this.open()};n.open=function(){if(this.db)return this.db;let t=this;navigator.storage&&navigator.storage.persist&&navigator.storage.persist();B[t.id]||(B[t.id]=[]);B[t.id].push(t.field);const e=j.open(t.id,1);e.onupgradeneeded=function(){const e=t.db=this.result;for(let i=0,n;i<z.length;i++){n=z[i];for(let i=0,s;i<B[t.id].length;i++)s=B[t.id][i],e.objectStoreNames.contains(n+(n!=="reg"?s?":"+s:"":""))||e.createObjectStore(n+(n!=="reg"?s?":"+s:"":""))}};return t.db=Z(e,(function(e){t.db=e;t.db.onversionchange=function(){t.close()}}))};n.close=function(){this.db&&this.db.close();this.db=null};n.destroy=function(){const t=j.deleteDatabase(this.id);return Z(t)};n.clear=function(){const t=[];for(let e=0,i;e<z.length;e++){i=z[e];for(let e=0,n;e<B[this.id].length;e++)n=B[this.id][e],t.push(i+(i!=="reg"?n?":"+n:"":""))}const e=this.db.transaction(t,"readwrite");for(let i=0;i<t.length;i++)e.objectStore(t[i]).clear();return Z(e)};n.get=function(t,e,i=0,n=0,s=!0,r=!1){t=this.db.transaction((e?"ctx":"map")+(this.field?":"+this.field:""),"readonly").objectStore((e?"ctx":"map")+(this.field?":"+this.field:"")).get(e?e+":"+t:t);const o=this;return Z(t).then((function(t){let e=[];if(!t||!t.length)return e;if(s){if(!i&&!n&&t.length===1)return t[0];for(let s=0,r;s<t.length;s++)if((r=t[s])&&r.length){if(n>=r.length){n-=r.length;continue}const t=i?n+Math.min(r.length-n,i):r.length;for(let i=n;i<t;i++)e.push(r[i]);n=0;if(e.length===i)break}return r?o.enrich(e):e}return t}))};n.tag=function(t,e=0,i=0,n=!1){t=this.db.transaction("tag"+(this.field?":"+this.field:""),"readonly").objectStore("tag"+(this.field?":"+this.field:"")).get(t);const s=this;return Z(t).then((function(t){if(!t||!t.length||i>=t.length)return[];if(!e&&!i)return t;t=t.slice(i,i+e);return n?s.enrich(t):t}))};n.enrich=function(t){typeof t!=="object"&&(t=[t]);const e=this.db.transaction("reg","readonly").objectStore("reg"),i=[];for(let n=0;n<t.length;n++)i[n]=Z(e.get(t[n]));return Promise.all(i).then((function(e){for(let i=0;i<e.length;i++)e[i]={id:t[i],doc:e[i]?JSON.parse(e[i]):null};return e}))};n.has=function(t){t=this.db.transaction("reg","readonly").objectStore("reg").getKey(t);return Z(t).then((function(t){return!!t}))};n.search=null;n.info=function(){};n.transaction=function(t,e,i){t+=t!=="reg"?this.field?":"+this.field:"":"";let n=this.h[t+":"+e];if(n)return i.call(this,n);let s=this.db.transaction(t,e);this.h[t+":"+e]=n=s.objectStore(t);const r=i.call(this,n);this.h[t+":"+e]=null;return Z(s).finally((function(){return r}))};n.commit=async function(t){let e=t.commit_task,i=[];t.commit_task=[];for(let t=0,n;t<e.length;t++)n=e[t],n.del&&i.push(n.del);i.length&&await this.remove(i);t.reg.size&&(await this.transaction("map","readwrite",(function(e){for(const i of t.map){const t=i[0],n=i[1];n.length&&(e.get(t).onsuccess=function(){let i=this.result;var s;if(i&&i.length){const t=Math.max(i.length,n.length);for(let e=0,r,o;e<t;e++)if((o=n[e])&&o.length){if((r=i[e])&&r.length)for(s=0;s<o.length;s++)r.push(o[s]);else i[e]=o;s=1}}else i=n,s=1;s&&e.put(i,t)})}})),await this.transaction("ctx","readwrite",(function(e){for(const i of t.ctx){const t=i[0],n=i[1];for(const i of n){const n=i[0],s=i[1];s.length&&(e.get(t+":"+n).onsuccess=function(){let i=this.result;var r;if(i&&i.length){const t=Math.max(i.length,s.length);for(let e=0,n,o;e<t;e++)if((o=s[e])&&o.length){if((n=i[e])&&n.length)for(r=0;r<o.length;r++)n.push(o[r]);else i[e]=o;r=1}}else i=s,r=1;r&&e.put(i,t+":"+n)})}}})),t.store?await this.transaction("reg","readwrite",(function(e){for(const i of t.store){const t=i[0],n=i[1];e.put(typeof n==="object"?JSON.stringify(n):1,t)}})):t.bypass||await this.transaction("reg","readwrite",(function(e){for(const i of t.reg.keys())e.put(1,i)})),t.tag&&await this.transaction("tag","readwrite",(function(e){for(const i of t.tag){const t=i[0],n=i[1];n.length&&(e.get(t).onsuccess=function(){let i=this.result;i=i&&i.length?i.concat(n):n;e.put(i,t)})}})),t.map.clear(),t.ctx.clear(),t.tag&&t.tag.clear(),t.store&&t.store.clear(),t.document||t.reg.clear())};function Fb(t,e,i){const n=t.value;let s,r=0;for(let t=0,o;t<n.length;t++){if(o=i?n:n[t]){for(let i=0,r,l;i<e.length;i++)if(l=e[i],r=o.indexOf(l),r>=0)if(s=1,o.length>1)o.splice(r,1);else{n[t]=[];break}r+=o.length}if(i)break}r?s&&t.update(n):t.delete();t.continue()}n.remove=function(t){typeof t!=="object"&&(t=[t]);return Promise.all([this.transaction("map","readwrite",(function(e){e.openCursor().onsuccess=function(){const e=this.result;e&&Fb(e,t)}})),this.transaction("ctx","readwrite",(function(e){e.openCursor().onsuccess=function(){const e=this.result;e&&Fb(e,t)}})),this.transaction("tag","readwrite",(function(e){e.openCursor().onsuccess=function(){const e=this.result;e&&Fb(e,t,!0)}})),this.transaction("reg","readwrite",(function(e){for(let i=0;i<t.length;i++)e.delete(t[i])}))])};function Z(t,e){return new Promise(((i,n)=>{t.onsuccess=t.oncomplete=function(){e&&e(this.result);e=null;i(this.result)};t.onerror=t.onblocked=n;t=null}))}const C={Index:T,Charset:m,Encoder:ka,Document:Na,Worker:La,Resolver:X,IndexedDB:Eb,Language:{}},O=typeof e!=="undefined"?e:typeof global!=="undefined"?global:e;let L;(L=O.define)&&L.amd?L([],(function(){return C})):typeof O.exports==="object"?O.exports=C:O.FlexSearch=C})(this||self)},267:t=>{"use strict";t.exports=require("worker_threads")}};var e={};function __nccwpck_require__(i){var n=e[i];if(n!==undefined){return n.exports}var s=e[i]={id:i,loaded:false,exports:{}};var r=true;try{t[i].call(s.exports,s,s.exports,__nccwpck_require__);r=false}finally{if(r)delete e[i]}s.loaded=true;return s.exports}(()=>{__nccwpck_require__.nmd=t=>{t.paths=[];if(!t.children)t.children=[];return t}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var i=__nccwpck_require__(16);module.exports=i})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"public":true,"preferGlobal":false,"name":"flexsearch","version":"0.8.212","description":"Next-Generation full-text search library for Browser and Node.js","homepage":"https://github.com/nextapps-de/flexsearch/","author":"Thomas Wilkerling","copyright":"Nextapps GmbH","license":"Apache-2.0","readme":"README.md","keywords":["fulltext search","elastic search","fastest search","contextual search","document search","fuzzy search","fuzzy match","search engine"],"repository":{"type":"git","url":"https://github.com/nextapps-de/flexsearch.git"},"bugs":{"url":"https://github.com/nextapps-de/flexsearch/issues","email":"info@nextapps.de"},"main":"dist/flexsearch.bundle.min.js","module":"dist/flexsearch.bundle.module.min.mjs","types":"./index.d.ts","exports":{".":{"types":"./index.d.ts","import":"./dist/flexsearch.bundle.module.min.mjs","require":"./dist/flexsearch.bundle.min.js"},"./lang/*":{"import":"./dist/module/lang/*.js","require":"./dist/lang/*.min.js"},"./db/*":{"import":"./dist/module/db/*/index.js","require":"./dist/db/*/index.cjs"},"./debug":{"import":"./dist/flexsearch.bundle.module.debug.mjs","require":"./dist/flexsearch.bundle.debug.js"}},"browser":{"flexsearch":"./dist/flexsearch.bundle.module.min.mjs","flexsearch/debug":"./dist/flexsearch.bundle.module.debug.mjs","dist/flexsearch.bundle.min.js":"./dist/flexsearch.bundle.min.js","dist/flexsearch.bundle.module.min.js":"./dist/flexsearch.bundle.module.min.mjs","dist/flexsearch.bundle.module.min.mjs":"./dist/flexsearch.bundle.module.min.mjs","worker_threads":false,"path":false,"clickhouse":false,"mongodb":false,"pg-promise":false,"redis":false,"sqlite3":false},"scripts":{"build":"npm run build:bundle && npm run build:bundle:debug && exit 0","build:bundle":"node task/build RELEASE=bundle DEBUG=false PROFILER=false SUPPORT_WORKER=true SUPPORT_ENCODER=true SUPPORT_CHARSET=true SUPPORT_CACHE=true SUPPORT_ASYNC=true SUPPORT_STORE=true SUPPORT_TAGS=true SUPPORT_SUGGESTION=true SUPPORT_SERIALIZE=true SUPPORT_DOCUMENT=true POLYFILL=false SUPPORT_PERSISTENT=true SUPPORT_RESOLVER=true SUPPORT_HIGHLIGHTING=true SUPPORT_KEYSTORE=true SUPPORT_COMPRESSION=false","build:bundle:debug":"node task/build RELEASE=bundle DEBUG=true PROFILER=false SUPPORT_WORKER=true SUPPORT_ENCODER=true SUPPORT_CHARSET=true SUPPORT_CACHE=true SUPPORT_ASYNC=true SUPPORT_STORE=true SUPPORT_TAGS=true SUPPORT_SUGGESTION=true SUPPORT_SERIALIZE=true SUPPORT_DOCUMENT=true POLYFILL=false SUPPORT_PERSISTENT=true SUPPORT_RESOLVER=true SUPPORT_HIGHLIGHTING=true SUPPORT_KEYSTORE=true SUPPORT_COMPRESSION=false FORMATTING=PRETTY_PRINT","build:compact":"node task/build RELEASE=compact DEBUG=false PROFILER=false SUPPORT_WORKER=false SUPPORT_ENCODER=true SUPPORT_CHARSET=true SUPPORT_CACHE=true SUPPORT_ASYNC=true SUPPORT_STORE=true SUPPORT_TAGS=true SUPPORT_SUGGESTION=true SUPPORT_SERIALIZE=true SUPPORT_DOCUMENT=true POLYFILL=false SUPPORT_PERSISTENT=false SUPPORT_RESOLVER=false SUPPORT_HIGHLIGHTING=true SUPPORT_KEYSTORE=false SUPPORT_COMPRESSION=false","build:compact:debug":"node task/build RELEASE=compact DEBUG=true PROFILER=false SUPPORT_WORKER=false SUPPORT_ENCODER=true SUPPORT_CHARSET=true SUPPORT_CACHE=true SUPPORT_ASYNC=true SUPPORT_STORE=true SUPPORT_TAGS=true SUPPORT_SUGGESTION=true SUPPORT_SERIALIZE=true SUPPORT_DOCUMENT=true POLYFILL=false SUPPORT_PERSISTENT=false SUPPORT_RESOLVER=false SUPPORT_HIGHLIGHTING=true SUPPORT_KEYSTORE=false SUPPORT_COMPRESSION=false FORMATTING=PRETTY_PRINT","build:light":"node task/build RELEASE=light DEBUG=false PROFILER=false SUPPORT_WORKER=false SUPPORT_ENCODER=true SUPPORT_CHARSET=false SUPPORT_CACHE=false SUPPORT_ASYNC=false SUPPORT_STORE=false SUPPORT_TAGS=false SUPPORT_SUGGESTION=true SUPPORT_SERIALIZE=false SUPPORT_DOCUMENT=false POLYFILL=false SUPPORT_PERSISTENT=false SUPPORT_RESOLVER=false SUPPORT_HIGHLIGHTING=false SUPPORT_KEYSTORE=false SUPPORT_COMPRESSION=false","build:light:debug":"node task/build RELEASE=light DEBUG=true PROFILER=false SUPPORT_WORKER=false SUPPORT_ENCODER=true SUPPORT_CHARSET=false SUPPORT_CACHE=false SUPPORT_ASYNC=false SUPPORT_STORE=false SUPPORT_TAGS=false SUPPORT_SUGGESTION=true SUPPORT_SERIALIZE=false SUPPORT_DOCUMENT=false POLYFILL=false SUPPORT_PERSISTENT=false SUPPORT_RESOLVER=false SUPPORT_HIGHLIGHTING=false SUPPORT_KEYSTORE=false SUPPORT_COMPRESSION=false FORMATTING=PRETTY_PRINT","build:es5":"node task/build RELEASE=es5 DEBUG=false PROFILER=false SUPPORT_WORKER=true SUPPORT_ENCODER=true SUPPORT_CHARSET=true SUPPORT_CACHE=true SUPPORT_ASYNC=true SUPPORT_STORE=true SUPPORT_TAGS=true SUPPORT_SUGGESTION=true SUPPORT_SERIALIZE=true SUPPORT_DOCUMENT=true POLYFILL=true SUPPORT_PERSISTENT=true SUPPORT_RESOLVER=true SUPPORT_HIGHLIGHTING=true SUPPORT_KEYSTORE=true SUPPORT_COMPRESSION=false LANGUAGE_OUT=ECMASCRIPT5_STRICT","build:es5:debug":"node task/build RELEASE=es5 DEBUG=true PROFILER=false SUPPORT_WORKER=true SUPPORT_ENCODER=true SUPPORT_CHARSET=true SUPPORT_CACHE=true SUPPORT_ASYNC=true SUPPORT_STORE=true SUPPORT_TAGS=true SUPPORT_SUGGESTION=true SUPPORT_SERIALIZE=true SUPPORT_DOCUMENT=true POLYFILL=true SUPPORT_PERSISTENT=true SUPPORT_RESOLVER=true SUPPORT_HIGHLIGHTING=true SUPPORT_KEYSTORE=true SUPPORT_COMPRESSION=false FORMATTING=PRETTY_PRINT LANGUAGE_OUT=ECMASCRIPT5_STRICT","build:lang":"node task/build RELEASE=lang","build:db":"npx rollup tmp/db/indexeddb/index.js --file dist/db/indexeddb/index.cjs --format cjs && npx rollup tmp/db/postgres/index.js --file dist/db/postgres/index.cjs --format cjs && npx rollup tmp/db/sqlite/index.js --file dist/db/sqlite/index.cjs --format cjs && npx rollup tmp/db/mongodb/index.js --file dist/db/mongodb/index.cjs --format cjs && npx rollup tmp/db/redis/index.js --file dist/db/redis/index.cjs --format cjs && npx rollup tmp/db/clickhouse/index.js --file dist/db/clickhouse/index.cjs --format cjs","build:module":"node task/babel && exit 0","build:module:debug":"node task/babel DEBUG=true && exit 0","build:module:min":"node task/babel RELEASE=min && exit 0","build:module:bundle":"node task/build RELEASE=bundle.module DEBUG=false PROFILER=false SUPPORT_WORKER=true SUPPORT_ENCODER=true SUPPORT_CHARSET=true SUPPORT_CACHE=true SUPPORT_ASYNC=true SUPPORT_STORE=true SUPPORT_TAGS=true SUPPORT_SUGGESTION=true SUPPORT_SERIALIZE=true SUPPORT_DOCUMENT=true POLYFILL=false SUPPORT_PERSISTENT=true SUPPORT_RESOLVER=true SUPPORT_HIGHLIGHTING=true SUPPORT_KEYSTORE=true SUPPORT_COMPRESSION=false","build:module:bundle:debug":"node task/build RELEASE=bundle.module DEBUG=true PROFILER=false SUPPORT_WORKER=true SUPPORT_ENCODER=true SUPPORT_CHARSET=true SUPPORT_CACHE=true SUPPORT_ASYNC=true SUPPORT_STORE=true SUPPORT_TAGS=true SUPPORT_SUGGESTION=true SUPPORT_SERIALIZE=true SUPPORT_DOCUMENT=true POLYFILL=false SUPPORT_PERSISTENT=true SUPPORT_RESOLVER=true SUPPORT_HIGHLIGHTING=true SUPPORT_KEYSTORE=true SUPPORT_COMPRESSION=false FORMATTING=PRETTY_PRINT","build:module:compact":"node task/build RELEASE=compact.module DEBUG=false PROFILER=false SUPPORT_WORKER=false SUPPORT_ENCODER=true SUPPORT_CHARSET=true SUPPORT_CACHE=true SUPPORT_ASYNC=true SUPPORT_STORE=true SUPPORT_TAGS=true SUPPORT_SUGGESTION=true SUPPORT_SERIALIZE=true SUPPORT_DOCUMENT=true POLYFILL=false SUPPORT_PERSISTENT=false SUPPORT_RESOLVER=false SUPPORT_HIGHLIGHTING=true SUPPORT_KEYSTORE=false SUPPORT_COMPRESSION=false","build:module:compact:debug":"node task/build RELEASE=compact.module DEBUG=true PROFILER=false SUPPORT_WORKER=false SUPPORT_ENCODER=true SUPPORT_CHARSET=true SUPPORT_CACHE=true SUPPORT_ASYNC=true SUPPORT_STORE=true SUPPORT_TAGS=true SUPPORT_SUGGESTION=true SUPPORT_SERIALIZE=true SUPPORT_DOCUMENT=true POLYFILL=false SUPPORT_PERSISTENT=false SUPPORT_RESOLVER=false SUPPORT_HIGHLIGHTING=true SUPPORT_KEYSTORE=false SUPPORT_COMPRESSION=false FORMATTING=PRETTY_PRINT","build:module:light":"node task/build RELEASE=light.module DEBUG=false PROFILER=false SUPPORT_WORKER=false SUPPORT_ENCODER=true SUPPORT_CHARSET=false SUPPORT_CACHE=false SUPPORT_ASYNC=false SUPPORT_STORE=false SUPPORT_TAGS=false SUPPORT_SUGGESTION=true SUPPORT_SERIALIZE=false SUPPORT_DOCUMENT=false POLYFILL=false SUPPORT_PERSISTENT=false SUPPORT_RESOLVER=false SUPPORT_HIGHLIGHTING=false SUPPORT_KEYSTORE=false SUPPORT_COMPRESSION=false","build:module:light:debug":"node task/build RELEASE=light.module DEBUG=true PROFILER=false SUPPORT_WORKER=false SUPPORT_ENCODER=true SUPPORT_CHARSET=false SUPPORT_CACHE=false SUPPORT_ASYNC=false SUPPORT_STORE=false SUPPORT_TAGS=false SUPPORT_SUGGESTION=true SUPPORT_SERIALIZE=false SUPPORT_DOCUMENT=false POLYFILL=false SUPPORT_PERSISTENT=false SUPPORT_RESOLVER=false SUPPORT_HIGHLIGHTING=false SUPPORT_KEYSTORE=false SUPPORT_COMPRESSION=false FORMATTING=PRETTY_PRINT","build:all":"npm run build:bundle && npm run build:bundle:debug && npm run build:light && npm run build:light:debug && npm run build:compact && npm run build:compact:debug && npm run build:module:bundle && npm run build:module:bundle:debug && npm run build:module:light && npm run build:module:light:debug && npm run build:module:compact && npm run build:module:compact:debug && npm run build:es5 && npm run build:es5:debug && npm run build:lang && npm run build:module && npm run build:module:debug && npm run build:module:min && npm run build:db","build:custom":"node task/build RELEASE=custom","test":"mocha test/*.js --exit","test:coverage":"c8 -c test/.c8rc.json mocha test/*.js --exit","test:keystore":"set NODE_OPTIONS=--max-old-space-size=16000 && c8 -c test/.c8rc.json mocha test/keystore.js --exit","test:db":"c8 -c test/.c8rc.json mocha test/persistent.*.js --exit","test:all":"npx mocha test/*.js --exit module/bundle && npx mocha test/*.js --exit module-debug/bundle && npx mocha test/*.js --exit module-min/bundle && npx mocha test/*.js --exit flexsearch.bundle.debug && npx mocha test/*.js --exit flexsearch.bundle.min && npx mocha test/*.js --exit flexsearch.bundle.module.debug && npx mocha test/*.js --exit flexsearch.bundle.module.min && npx mocha test/*.js --exit flexsearch.compact.debug && npx mocha test/*.js --exit flexsearch.compact.min && npx mocha test/*.js --exit flexsearch.compact.module.debug && npx mocha test/*.js --exit flexsearch.compact.module.min && npx mocha test/*.js --exit flexsearch.es5.debug && npx mocha test/*.js --exit flexsearch.es5.min && npx mocha test/*.js --exit flexsearch.light.debug && npx mocha test/*.js --exit flexsearch.light.min && npx mocha test/*.js --exit flexsearch.light.module.debug && npx mocha test/*.js --exit flexsearch.light.module.min","release":"npm version --no-git-tag-version patch && npm run build:all && npm run test:all"},"files":["dist/**","src/**","task/**","index.d.ts","README.md","CHANGELOG.md","LICENSE"],"devDependencies":{"babel-cli":"^6.26.0","babel-plugin-conditional-compile":"^0.0.5","babel-plugin-minify-constant-folding":"^0.5.0","babel-plugin-minify-dead-code-elimination":"^0.5.2","babel-plugin-minify-flip-comparisons":"^0.4.3","babel-plugin-minify-guarded-expressions":"^0.4.4","babel-plugin-minify-infinity":"^0.4.3","babel-plugin-minify-mangle-names":"^0.5.1","babel-plugin-minify-replace":"^0.5.0","babel-plugin-minify-simplify":"^0.5.1","babel-plugin-minify-type-constructors":"^0.4.3","babel-plugin-transform-member-expression-literals":"^6.9.4","babel-plugin-transform-merge-sibling-variables":"^6.9.5","babel-plugin-transform-minify-booleans":"^6.9.4","babel-plugin-transform-property-literals":"^6.9.4","babel-plugin-transform-simplify-comparison-operators":"^6.9.4","babel-plugin-transform-undefined-to-void":"^6.9.4","c8":"^10.1.3","chai":"^5.2.0","clickhouse":"^2.6.0","google-closure-compiler":"^20250520.0.0","mocha":"^11.1.0","mongodb":"^6.13.0","pg-promise":"^11.13.0","redis":"^5.1.0","rollup":"^4.35.0","sqlite3":"^5.1.7"},"funding":[{"type":"github","url":"https://github.com/ts-thomas"},{"type":"paypal","url":"https://www.paypal.com/donate/?hosted_button_id=GEVR88FC9BWRW"},{"type":"opencollective","url":"https://opencollective.com/flexsearch"},{"type":"patreon","url":"https://patreon.com/user?u=96245532"},{"type":"liberapay","url":"https://liberapay.com/ts-thomas"}],"_lastModified":"2026-04-20T09:21:01.989Z"}
|
|
1
|
+
{"public":true,"preferGlobal":false,"name":"flexsearch","version":"0.8.212","description":"Next-Generation full-text search library for Browser and Node.js","homepage":"https://github.com/nextapps-de/flexsearch/","author":"Thomas Wilkerling","copyright":"Nextapps GmbH","license":"Apache-2.0","readme":"README.md","keywords":["fulltext search","elastic search","fastest search","contextual search","document search","fuzzy search","fuzzy match","search engine"],"repository":{"type":"git","url":"https://github.com/nextapps-de/flexsearch.git"},"bugs":{"url":"https://github.com/nextapps-de/flexsearch/issues","email":"info@nextapps.de"},"main":"dist/flexsearch.bundle.min.js","module":"dist/flexsearch.bundle.module.min.mjs","types":"./index.d.ts","exports":{".":{"types":"./index.d.ts","import":"./dist/flexsearch.bundle.module.min.mjs","require":"./dist/flexsearch.bundle.min.js"},"./lang/*":{"import":"./dist/module/lang/*.js","require":"./dist/lang/*.min.js"},"./db/*":{"import":"./dist/module/db/*/index.js","require":"./dist/db/*/index.cjs"},"./debug":{"import":"./dist/flexsearch.bundle.module.debug.mjs","require":"./dist/flexsearch.bundle.debug.js"}},"browser":{"flexsearch":"./dist/flexsearch.bundle.module.min.mjs","flexsearch/debug":"./dist/flexsearch.bundle.module.debug.mjs","dist/flexsearch.bundle.min.js":"./dist/flexsearch.bundle.min.js","dist/flexsearch.bundle.module.min.js":"./dist/flexsearch.bundle.module.min.mjs","dist/flexsearch.bundle.module.min.mjs":"./dist/flexsearch.bundle.module.min.mjs","worker_threads":false,"path":false,"clickhouse":false,"mongodb":false,"pg-promise":false,"redis":false,"sqlite3":false},"scripts":{"build":"npm run build:bundle && npm run build:bundle:debug && exit 0","build:bundle":"node task/build RELEASE=bundle DEBUG=false PROFILER=false SUPPORT_WORKER=true SUPPORT_ENCODER=true SUPPORT_CHARSET=true SUPPORT_CACHE=true SUPPORT_ASYNC=true SUPPORT_STORE=true SUPPORT_TAGS=true SUPPORT_SUGGESTION=true SUPPORT_SERIALIZE=true SUPPORT_DOCUMENT=true POLYFILL=false SUPPORT_PERSISTENT=true SUPPORT_RESOLVER=true SUPPORT_HIGHLIGHTING=true SUPPORT_KEYSTORE=true SUPPORT_COMPRESSION=false","build:bundle:debug":"node task/build RELEASE=bundle DEBUG=true PROFILER=false SUPPORT_WORKER=true SUPPORT_ENCODER=true SUPPORT_CHARSET=true SUPPORT_CACHE=true SUPPORT_ASYNC=true SUPPORT_STORE=true SUPPORT_TAGS=true SUPPORT_SUGGESTION=true SUPPORT_SERIALIZE=true SUPPORT_DOCUMENT=true POLYFILL=false SUPPORT_PERSISTENT=true SUPPORT_RESOLVER=true SUPPORT_HIGHLIGHTING=true SUPPORT_KEYSTORE=true SUPPORT_COMPRESSION=false FORMATTING=PRETTY_PRINT","build:compact":"node task/build RELEASE=compact DEBUG=false PROFILER=false SUPPORT_WORKER=false SUPPORT_ENCODER=true SUPPORT_CHARSET=true SUPPORT_CACHE=true SUPPORT_ASYNC=true SUPPORT_STORE=true SUPPORT_TAGS=true SUPPORT_SUGGESTION=true SUPPORT_SERIALIZE=true SUPPORT_DOCUMENT=true POLYFILL=false SUPPORT_PERSISTENT=false SUPPORT_RESOLVER=false SUPPORT_HIGHLIGHTING=true SUPPORT_KEYSTORE=false SUPPORT_COMPRESSION=false","build:compact:debug":"node task/build RELEASE=compact DEBUG=true PROFILER=false SUPPORT_WORKER=false SUPPORT_ENCODER=true SUPPORT_CHARSET=true SUPPORT_CACHE=true SUPPORT_ASYNC=true SUPPORT_STORE=true SUPPORT_TAGS=true SUPPORT_SUGGESTION=true SUPPORT_SERIALIZE=true SUPPORT_DOCUMENT=true POLYFILL=false SUPPORT_PERSISTENT=false SUPPORT_RESOLVER=false SUPPORT_HIGHLIGHTING=true SUPPORT_KEYSTORE=false SUPPORT_COMPRESSION=false FORMATTING=PRETTY_PRINT","build:light":"node task/build RELEASE=light DEBUG=false PROFILER=false SUPPORT_WORKER=false SUPPORT_ENCODER=true SUPPORT_CHARSET=false SUPPORT_CACHE=false SUPPORT_ASYNC=false SUPPORT_STORE=false SUPPORT_TAGS=false SUPPORT_SUGGESTION=true SUPPORT_SERIALIZE=false SUPPORT_DOCUMENT=false POLYFILL=false SUPPORT_PERSISTENT=false SUPPORT_RESOLVER=false SUPPORT_HIGHLIGHTING=false SUPPORT_KEYSTORE=false SUPPORT_COMPRESSION=false","build:light:debug":"node task/build RELEASE=light DEBUG=true PROFILER=false SUPPORT_WORKER=false SUPPORT_ENCODER=true SUPPORT_CHARSET=false SUPPORT_CACHE=false SUPPORT_ASYNC=false SUPPORT_STORE=false SUPPORT_TAGS=false SUPPORT_SUGGESTION=true SUPPORT_SERIALIZE=false SUPPORT_DOCUMENT=false POLYFILL=false SUPPORT_PERSISTENT=false SUPPORT_RESOLVER=false SUPPORT_HIGHLIGHTING=false SUPPORT_KEYSTORE=false SUPPORT_COMPRESSION=false FORMATTING=PRETTY_PRINT","build:es5":"node task/build RELEASE=es5 DEBUG=false PROFILER=false SUPPORT_WORKER=true SUPPORT_ENCODER=true SUPPORT_CHARSET=true SUPPORT_CACHE=true SUPPORT_ASYNC=true SUPPORT_STORE=true SUPPORT_TAGS=true SUPPORT_SUGGESTION=true SUPPORT_SERIALIZE=true SUPPORT_DOCUMENT=true POLYFILL=true SUPPORT_PERSISTENT=true SUPPORT_RESOLVER=true SUPPORT_HIGHLIGHTING=true SUPPORT_KEYSTORE=true SUPPORT_COMPRESSION=false LANGUAGE_OUT=ECMASCRIPT5_STRICT","build:es5:debug":"node task/build RELEASE=es5 DEBUG=true PROFILER=false SUPPORT_WORKER=true SUPPORT_ENCODER=true SUPPORT_CHARSET=true SUPPORT_CACHE=true SUPPORT_ASYNC=true SUPPORT_STORE=true SUPPORT_TAGS=true SUPPORT_SUGGESTION=true SUPPORT_SERIALIZE=true SUPPORT_DOCUMENT=true POLYFILL=true SUPPORT_PERSISTENT=true SUPPORT_RESOLVER=true SUPPORT_HIGHLIGHTING=true SUPPORT_KEYSTORE=true SUPPORT_COMPRESSION=false FORMATTING=PRETTY_PRINT LANGUAGE_OUT=ECMASCRIPT5_STRICT","build:lang":"node task/build RELEASE=lang","build:db":"npx rollup tmp/db/indexeddb/index.js --file dist/db/indexeddb/index.cjs --format cjs && npx rollup tmp/db/postgres/index.js --file dist/db/postgres/index.cjs --format cjs && npx rollup tmp/db/sqlite/index.js --file dist/db/sqlite/index.cjs --format cjs && npx rollup tmp/db/mongodb/index.js --file dist/db/mongodb/index.cjs --format cjs && npx rollup tmp/db/redis/index.js --file dist/db/redis/index.cjs --format cjs && npx rollup tmp/db/clickhouse/index.js --file dist/db/clickhouse/index.cjs --format cjs","build:module":"node task/babel && exit 0","build:module:debug":"node task/babel DEBUG=true && exit 0","build:module:min":"node task/babel RELEASE=min && exit 0","build:module:bundle":"node task/build RELEASE=bundle.module DEBUG=false PROFILER=false SUPPORT_WORKER=true SUPPORT_ENCODER=true SUPPORT_CHARSET=true SUPPORT_CACHE=true SUPPORT_ASYNC=true SUPPORT_STORE=true SUPPORT_TAGS=true SUPPORT_SUGGESTION=true SUPPORT_SERIALIZE=true SUPPORT_DOCUMENT=true POLYFILL=false SUPPORT_PERSISTENT=true SUPPORT_RESOLVER=true SUPPORT_HIGHLIGHTING=true SUPPORT_KEYSTORE=true SUPPORT_COMPRESSION=false","build:module:bundle:debug":"node task/build RELEASE=bundle.module DEBUG=true PROFILER=false SUPPORT_WORKER=true SUPPORT_ENCODER=true SUPPORT_CHARSET=true SUPPORT_CACHE=true SUPPORT_ASYNC=true SUPPORT_STORE=true SUPPORT_TAGS=true SUPPORT_SUGGESTION=true SUPPORT_SERIALIZE=true SUPPORT_DOCUMENT=true POLYFILL=false SUPPORT_PERSISTENT=true SUPPORT_RESOLVER=true SUPPORT_HIGHLIGHTING=true SUPPORT_KEYSTORE=true SUPPORT_COMPRESSION=false FORMATTING=PRETTY_PRINT","build:module:compact":"node task/build RELEASE=compact.module DEBUG=false PROFILER=false SUPPORT_WORKER=false SUPPORT_ENCODER=true SUPPORT_CHARSET=true SUPPORT_CACHE=true SUPPORT_ASYNC=true SUPPORT_STORE=true SUPPORT_TAGS=true SUPPORT_SUGGESTION=true SUPPORT_SERIALIZE=true SUPPORT_DOCUMENT=true POLYFILL=false SUPPORT_PERSISTENT=false SUPPORT_RESOLVER=false SUPPORT_HIGHLIGHTING=true SUPPORT_KEYSTORE=false SUPPORT_COMPRESSION=false","build:module:compact:debug":"node task/build RELEASE=compact.module DEBUG=true PROFILER=false SUPPORT_WORKER=false SUPPORT_ENCODER=true SUPPORT_CHARSET=true SUPPORT_CACHE=true SUPPORT_ASYNC=true SUPPORT_STORE=true SUPPORT_TAGS=true SUPPORT_SUGGESTION=true SUPPORT_SERIALIZE=true SUPPORT_DOCUMENT=true POLYFILL=false SUPPORT_PERSISTENT=false SUPPORT_RESOLVER=false SUPPORT_HIGHLIGHTING=true SUPPORT_KEYSTORE=false SUPPORT_COMPRESSION=false FORMATTING=PRETTY_PRINT","build:module:light":"node task/build RELEASE=light.module DEBUG=false PROFILER=false SUPPORT_WORKER=false SUPPORT_ENCODER=true SUPPORT_CHARSET=false SUPPORT_CACHE=false SUPPORT_ASYNC=false SUPPORT_STORE=false SUPPORT_TAGS=false SUPPORT_SUGGESTION=true SUPPORT_SERIALIZE=false SUPPORT_DOCUMENT=false POLYFILL=false SUPPORT_PERSISTENT=false SUPPORT_RESOLVER=false SUPPORT_HIGHLIGHTING=false SUPPORT_KEYSTORE=false SUPPORT_COMPRESSION=false","build:module:light:debug":"node task/build RELEASE=light.module DEBUG=true PROFILER=false SUPPORT_WORKER=false SUPPORT_ENCODER=true SUPPORT_CHARSET=false SUPPORT_CACHE=false SUPPORT_ASYNC=false SUPPORT_STORE=false SUPPORT_TAGS=false SUPPORT_SUGGESTION=true SUPPORT_SERIALIZE=false SUPPORT_DOCUMENT=false POLYFILL=false SUPPORT_PERSISTENT=false SUPPORT_RESOLVER=false SUPPORT_HIGHLIGHTING=false SUPPORT_KEYSTORE=false SUPPORT_COMPRESSION=false FORMATTING=PRETTY_PRINT","build:all":"npm run build:bundle && npm run build:bundle:debug && npm run build:light && npm run build:light:debug && npm run build:compact && npm run build:compact:debug && npm run build:module:bundle && npm run build:module:bundle:debug && npm run build:module:light && npm run build:module:light:debug && npm run build:module:compact && npm run build:module:compact:debug && npm run build:es5 && npm run build:es5:debug && npm run build:lang && npm run build:module && npm run build:module:debug && npm run build:module:min && npm run build:db","build:custom":"node task/build RELEASE=custom","test":"mocha test/*.js --exit","test:coverage":"c8 -c test/.c8rc.json mocha test/*.js --exit","test:keystore":"set NODE_OPTIONS=--max-old-space-size=16000 && c8 -c test/.c8rc.json mocha test/keystore.js --exit","test:db":"c8 -c test/.c8rc.json mocha test/persistent.*.js --exit","test:all":"npx mocha test/*.js --exit module/bundle && npx mocha test/*.js --exit module-debug/bundle && npx mocha test/*.js --exit module-min/bundle && npx mocha test/*.js --exit flexsearch.bundle.debug && npx mocha test/*.js --exit flexsearch.bundle.min && npx mocha test/*.js --exit flexsearch.bundle.module.debug && npx mocha test/*.js --exit flexsearch.bundle.module.min && npx mocha test/*.js --exit flexsearch.compact.debug && npx mocha test/*.js --exit flexsearch.compact.min && npx mocha test/*.js --exit flexsearch.compact.module.debug && npx mocha test/*.js --exit flexsearch.compact.module.min && npx mocha test/*.js --exit flexsearch.es5.debug && npx mocha test/*.js --exit flexsearch.es5.min && npx mocha test/*.js --exit flexsearch.light.debug && npx mocha test/*.js --exit flexsearch.light.min && npx mocha test/*.js --exit flexsearch.light.module.debug && npx mocha test/*.js --exit flexsearch.light.module.min","release":"npm version --no-git-tag-version patch && npm run build:all && npm run test:all"},"files":["dist/**","src/**","task/**","index.d.ts","README.md","CHANGELOG.md","LICENSE"],"devDependencies":{"babel-cli":"^6.26.0","babel-plugin-conditional-compile":"^0.0.5","babel-plugin-minify-constant-folding":"^0.5.0","babel-plugin-minify-dead-code-elimination":"^0.5.2","babel-plugin-minify-flip-comparisons":"^0.4.3","babel-plugin-minify-guarded-expressions":"^0.4.4","babel-plugin-minify-infinity":"^0.4.3","babel-plugin-minify-mangle-names":"^0.5.1","babel-plugin-minify-replace":"^0.5.0","babel-plugin-minify-simplify":"^0.5.1","babel-plugin-minify-type-constructors":"^0.4.3","babel-plugin-transform-member-expression-literals":"^6.9.4","babel-plugin-transform-merge-sibling-variables":"^6.9.5","babel-plugin-transform-minify-booleans":"^6.9.4","babel-plugin-transform-property-literals":"^6.9.4","babel-plugin-transform-simplify-comparison-operators":"^6.9.4","babel-plugin-transform-undefined-to-void":"^6.9.4","c8":"^10.1.3","chai":"^5.2.0","clickhouse":"^2.6.0","google-closure-compiler":"^20250520.0.0","mocha":"^11.1.0","mongodb":"^6.13.0","pg-promise":"^11.13.0","redis":"^5.1.0","rollup":"^4.35.0","sqlite3":"^5.1.7"},"funding":[{"type":"github","url":"https://github.com/ts-thomas"},{"type":"paypal","url":"https://www.paypal.com/donate/?hosted_button_id=GEVR88FC9BWRW"},{"type":"opencollective","url":"https://opencollective.com/flexsearch"},{"type":"patreon","url":"https://patreon.com/user?u=96245532"},{"type":"liberapay","url":"https://liberapay.com/ts-thomas"}],"_lastModified":"2026-04-24T10:36:54.223Z"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(){var e={995:function(e){e.exports=e=>{const t=process.versions.node.split(".").map((e=>parseInt(e,10)));e=e.split(".").map((e=>parseInt(e,10)));return t[0]>e[0]||t[0]===e[0]&&(t[1]>e[1]||t[1]===e[1]&&t[2]>=e[2])}},338:function(e,t,r){"use strict";const n=r(758);const i=r(17);const o=r(605).mkdirsSync;const c=r(548).utimesMillisSync;const s=r(901);function copySync(e,t,r){if(typeof r==="function"){r={filter:r}}r=r||{};r.clobber="clobber"in r?!!r.clobber:true;r.overwrite="overwrite"in r?!!r.overwrite:r.clobber;if(r.preserveTimestamps&&process.arch==="ia32"){console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269`)}const{srcStat:n,destStat:i}=s.checkPathsSync(e,t,"copy");s.checkParentPathsSync(e,n,t,"copy");return handleFilterAndCopy(i,e,t,r)}function handleFilterAndCopy(e,t,r,c){if(c.filter&&!c.filter(t,r))return;const s=i.dirname(r);if(!n.existsSync(s))o(s);return startCopy(e,t,r,c)}function startCopy(e,t,r,n){if(n.filter&&!n.filter(t,r))return;return getStats(e,t,r,n)}function getStats(e,t,r,i){const o=i.dereference?n.statSync:n.lstatSync;const c=o(t);if(c.isDirectory())return onDir(c,e,t,r,i);else if(c.isFile()||c.isCharacterDevice()||c.isBlockDevice())return onFile(c,e,t,r,i);else if(c.isSymbolicLink())return onLink(e,t,r,i)}function onFile(e,t,r,n,i){if(!t)return copyFile(e,r,n,i);return mayCopyFile(e,r,n,i)}function mayCopyFile(e,t,r,i){if(i.overwrite){n.unlinkSync(r);return copyFile(e,t,r,i)}else if(i.errorOnExist){throw new Error(`'${r}' already exists`)}}function copyFile(e,t,r,i){n.copyFileSync(t,r);if(i.preserveTimestamps)handleTimestamps(e.mode,t,r);return setDestMode(r,e.mode)}function handleTimestamps(e,t,r){if(fileIsNotWritable(e))makeFileWritable(r,e);return setDestTimestamps(t,r)}function fileIsNotWritable(e){return(e&128)===0}function makeFileWritable(e,t){return setDestMode(e,t|128)}function setDestMode(e,t){return n.chmodSync(e,t)}function setDestTimestamps(e,t){const r=n.statSync(e);return c(t,r.atime,r.mtime)}function onDir(e,t,r,n,i){if(!t)return mkDirAndCopy(e.mode,r,n,i);if(t&&!t.isDirectory()){throw new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`)}return copyDir(r,n,i)}function mkDirAndCopy(e,t,r,i){n.mkdirSync(r);copyDir(t,r,i);return setDestMode(r,e)}function copyDir(e,t,r){n.readdirSync(e).forEach((n=>copyDirItem(n,e,t,r)))}function copyDirItem(e,t,r,n){const o=i.join(t,e);const c=i.join(r,e);const{destStat:u}=s.checkPathsSync(o,c,"copy");return startCopy(u,o,c,n)}function onLink(e,t,r,o){let c=n.readlinkSync(t);if(o.dereference){c=i.resolve(process.cwd(),c)}if(!e){return n.symlinkSync(c,r)}else{let e;try{e=n.readlinkSync(r)}catch(e){if(e.code==="EINVAL"||e.code==="UNKNOWN")return n.symlinkSync(c,r);throw e}if(o.dereference){e=i.resolve(process.cwd(),e)}if(s.isSrcSubdir(c,e)){throw new Error(`Cannot copy '${c}' to a subdirectory of itself, '${e}'.`)}if(n.statSync(r).isDirectory()&&s.isSrcSubdir(e,c)){throw new Error(`Cannot overwrite '${e}' with '${c}'.`)}return copyLink(c,r)}}function copyLink(e,t){n.unlinkSync(t);return n.symlinkSync(e,t)}e.exports=copySync},135:function(e,t,r){"use strict";e.exports={copySync:r(338)}},834:function(e,t,r){"use strict";const n=r(758);const i=r(17);const o=r(605).mkdirs;const c=r(835).pathExists;const s=r(548).utimesMillis;const u=r(901);function copy(e,t,r,n){if(typeof r==="function"&&!n){n=r;r={}}else if(typeof r==="function"){r={filter:r}}n=n||function(){};r=r||{};r.clobber="clobber"in r?!!r.clobber:true;r.overwrite="overwrite"in r?!!r.overwrite:r.clobber;if(r.preserveTimestamps&&process.arch==="ia32"){console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269`)}u.checkPaths(e,t,"copy",((i,o)=>{if(i)return n(i);const{srcStat:c,destStat:s}=o;u.checkParentPaths(e,c,t,"copy",(i=>{if(i)return n(i);if(r.filter)return handleFilter(checkParentDir,s,e,t,r,n);return checkParentDir(s,e,t,r,n)}))}))}function checkParentDir(e,t,r,n,s){const u=i.dirname(r);c(u,((i,c)=>{if(i)return s(i);if(c)return startCopy(e,t,r,n,s);o(u,(i=>{if(i)return s(i);return startCopy(e,t,r,n,s)}))}))}function handleFilter(e,t,r,n,i,o){Promise.resolve(i.filter(r,n)).then((c=>{if(c)return e(t,r,n,i,o);return o()}),(e=>o(e)))}function startCopy(e,t,r,n,i){if(n.filter)return handleFilter(getStats,e,t,r,n,i);return getStats(e,t,r,n,i)}function getStats(e,t,r,i,o){const c=i.dereference?n.stat:n.lstat;c(t,((n,c)=>{if(n)return o(n);if(c.isDirectory())return onDir(c,e,t,r,i,o);else if(c.isFile()||c.isCharacterDevice()||c.isBlockDevice())return onFile(c,e,t,r,i,o);else if(c.isSymbolicLink())return onLink(e,t,r,i,o)}))}function onFile(e,t,r,n,i,o){if(!t)return copyFile(e,r,n,i,o);return mayCopyFile(e,r,n,i,o)}function mayCopyFile(e,t,r,i,o){if(i.overwrite){n.unlink(r,(n=>{if(n)return o(n);return copyFile(e,t,r,i,o)}))}else if(i.errorOnExist){return o(new Error(`'${r}' already exists`))}else return o()}function copyFile(e,t,r,i,o){n.copyFile(t,r,(n=>{if(n)return o(n);if(i.preserveTimestamps)return handleTimestampsAndMode(e.mode,t,r,o);return setDestMode(r,e.mode,o)}))}function handleTimestampsAndMode(e,t,r,n){if(fileIsNotWritable(e)){return makeFileWritable(r,e,(i=>{if(i)return n(i);return setDestTimestampsAndMode(e,t,r,n)}))}return setDestTimestampsAndMode(e,t,r,n)}function fileIsNotWritable(e){return(e&128)===0}function makeFileWritable(e,t,r){return setDestMode(e,t|128,r)}function setDestTimestampsAndMode(e,t,r,n){setDestTimestamps(t,r,(t=>{if(t)return n(t);return setDestMode(r,e,n)}))}function setDestMode(e,t,r){return n.chmod(e,t,r)}function setDestTimestamps(e,t,r){n.stat(e,((e,n)=>{if(e)return r(e);return s(t,n.atime,n.mtime,r)}))}function onDir(e,t,r,n,i,o){if(!t)return mkDirAndCopy(e.mode,r,n,i,o);if(t&&!t.isDirectory()){return o(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`))}return copyDir(r,n,i,o)}function mkDirAndCopy(e,t,r,i,o){n.mkdir(r,(n=>{if(n)return o(n);copyDir(t,r,i,(t=>{if(t)return o(t);return setDestMode(r,e,o)}))}))}function copyDir(e,t,r,i){n.readdir(e,((n,o)=>{if(n)return i(n);return copyDirItems(o,e,t,r,i)}))}function copyDirItems(e,t,r,n,i){const o=e.pop();if(!o)return i();return copyDirItem(e,o,t,r,n,i)}function copyDirItem(e,t,r,n,o,c){const s=i.join(r,t);const a=i.join(n,t);u.checkPaths(s,a,"copy",((t,i)=>{if(t)return c(t);const{destStat:u}=i;startCopy(u,s,a,o,(t=>{if(t)return c(t);return copyDirItems(e,r,n,o,c)}))}))}function onLink(e,t,r,o,c){n.readlink(t,((t,s)=>{if(t)return c(t);if(o.dereference){s=i.resolve(process.cwd(),s)}if(!e){return n.symlink(s,r,c)}else{n.readlink(r,((t,a)=>{if(t){if(t.code==="EINVAL"||t.code==="UNKNOWN")return n.symlink(s,r,c);return c(t)}if(o.dereference){a=i.resolve(process.cwd(),a)}if(u.isSrcSubdir(s,a)){return c(new Error(`Cannot copy '${s}' to a subdirectory of itself, '${a}'.`))}if(e.isDirectory()&&u.isSrcSubdir(a,s)){return c(new Error(`Cannot overwrite '${a}' with '${s}'.`))}return copyLink(s,r,c)}))}}))}function copyLink(e,t,r){n.unlink(t,(i=>{if(i)return r(i);return n.symlink(e,t,r)}))}e.exports=copy},335:function(e,t,r){"use strict";const n=r(46).fromCallback;e.exports={copy:n(r(834))}},970:function(e,t,r){"use strict";const n=r(46).fromCallback;const i=r(758);const o=r(17);const c=r(605);const s=r(357);const u=n((function emptyDir(e,t){t=t||function(){};i.readdir(e,((r,n)=>{if(r)return c.mkdirs(e,t);n=n.map((t=>o.join(e,t)));deleteItem();function deleteItem(){const e=n.pop();if(!e)return t();s.remove(e,(e=>{if(e)return t(e);deleteItem()}))}}))}));function emptyDirSync(e){let t;try{t=i.readdirSync(e)}catch{return c.mkdirsSync(e)}t.forEach((t=>{t=o.join(e,t);s.removeSync(t)}))}e.exports={emptyDirSync:emptyDirSync,emptydirSync:emptyDirSync,emptyDir:u,emptydir:u}},164:function(e,t,r){"use strict";const n=r(46).fromCallback;const i=r(17);const o=r(758);const c=r(605);function createFile(e,t){function makeFile(){o.writeFile(e,"",(e=>{if(e)return t(e);t()}))}o.stat(e,((r,n)=>{if(!r&&n.isFile())return t();const s=i.dirname(e);o.stat(s,((e,r)=>{if(e){if(e.code==="ENOENT"){return c.mkdirs(s,(e=>{if(e)return t(e);makeFile()}))}return t(e)}if(r.isDirectory())makeFile();else{o.readdir(s,(e=>{if(e)return t(e)}))}}))}))}function createFileSync(e){let t;try{t=o.statSync(e)}catch{}if(t&&t.isFile())return;const r=i.dirname(e);try{if(!o.statSync(r).isDirectory()){o.readdirSync(r)}}catch(e){if(e&&e.code==="ENOENT")c.mkdirsSync(r);else throw e}o.writeFileSync(e,"")}e.exports={createFile:n(createFile),createFileSync:createFileSync}},55:function(e,t,r){"use strict";const n=r(164);const i=r(797);const o=r(549);e.exports={createFile:n.createFile,createFileSync:n.createFileSync,ensureFile:n.createFile,ensureFileSync:n.createFileSync,createLink:i.createLink,createLinkSync:i.createLinkSync,ensureLink:i.createLink,ensureLinkSync:i.createLinkSync,createSymlink:o.createSymlink,createSymlinkSync:o.createSymlinkSync,ensureSymlink:o.createSymlink,ensureSymlinkSync:o.createSymlinkSync}},797:function(e,t,r){"use strict";const n=r(46).fromCallback;const i=r(17);const o=r(758);const c=r(605);const s=r(835).pathExists;function createLink(e,t,r){function makeLink(e,t){o.link(e,t,(e=>{if(e)return r(e);r(null)}))}s(t,((n,u)=>{if(n)return r(n);if(u)return r(null);o.lstat(e,(n=>{if(n){n.message=n.message.replace("lstat","ensureLink");return r(n)}const o=i.dirname(t);s(o,((n,i)=>{if(n)return r(n);if(i)return makeLink(e,t);c.mkdirs(o,(n=>{if(n)return r(n);makeLink(e,t)}))}))}))}))}function createLinkSync(e,t){const r=o.existsSync(t);if(r)return undefined;try{o.lstatSync(e)}catch(e){e.message=e.message.replace("lstat","ensureLink");throw e}const n=i.dirname(t);const s=o.existsSync(n);if(s)return o.linkSync(e,t);c.mkdirsSync(n);return o.linkSync(e,t)}e.exports={createLink:n(createLink),createLinkSync:createLinkSync}},727:function(e,t,r){"use strict";const n=r(17);const i=r(758);const o=r(835).pathExists;function symlinkPaths(e,t,r){if(n.isAbsolute(e)){return i.lstat(e,(t=>{if(t){t.message=t.message.replace("lstat","ensureSymlink");return r(t)}return r(null,{toCwd:e,toDst:e})}))}else{const c=n.dirname(t);const s=n.join(c,e);return o(s,((t,o)=>{if(t)return r(t);if(o){return r(null,{toCwd:s,toDst:e})}else{return i.lstat(e,(t=>{if(t){t.message=t.message.replace("lstat","ensureSymlink");return r(t)}return r(null,{toCwd:e,toDst:n.relative(c,e)})}))}}))}}function symlinkPathsSync(e,t){let r;if(n.isAbsolute(e)){r=i.existsSync(e);if(!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{const o=n.dirname(t);const c=n.join(o,e);r=i.existsSync(c);if(r){return{toCwd:c,toDst:e}}else{r=i.existsSync(e);if(!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:n.relative(o,e)}}}}e.exports={symlinkPaths:symlinkPaths,symlinkPathsSync:symlinkPathsSync}},254:function(e,t,r){"use strict";const n=r(758);function symlinkType(e,t,r){r=typeof t==="function"?t:r;t=typeof t==="function"?false:t;if(t)return r(null,t);n.lstat(e,((e,n)=>{if(e)return r(null,"file");t=n&&n.isDirectory()?"dir":"file";r(null,t)}))}function symlinkTypeSync(e,t){let r;if(t)return t;try{r=n.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}e.exports={symlinkType:symlinkType,symlinkTypeSync:symlinkTypeSync}},549:function(e,t,r){"use strict";const n=r(46).fromCallback;const i=r(17);const o=r(758);const c=r(605);const s=c.mkdirs;const u=c.mkdirsSync;const a=r(727);const f=a.symlinkPaths;const l=a.symlinkPathsSync;const y=r(254);const d=y.symlinkType;const m=y.symlinkTypeSync;const p=r(835).pathExists;function createSymlink(e,t,r,n){n=typeof r==="function"?r:n;r=typeof r==="function"?false:r;p(t,((c,u)=>{if(c)return n(c);if(u)return n(null);f(e,t,((c,u)=>{if(c)return n(c);e=u.toDst;d(u.toCwd,r,((r,c)=>{if(r)return n(r);const u=i.dirname(t);p(u,((r,i)=>{if(r)return n(r);if(i)return o.symlink(e,t,c,n);s(u,(r=>{if(r)return n(r);o.symlink(e,t,c,n)}))}))}))}))}))}function createSymlinkSync(e,t,r){const n=o.existsSync(t);if(n)return undefined;const c=l(e,t);e=c.toDst;r=m(c.toCwd,r);const s=i.dirname(t);const a=o.existsSync(s);if(a)return o.symlinkSync(e,t,r);u(s);return o.symlinkSync(e,t,r)}e.exports={createSymlink:n(createSymlink),createSymlinkSync:createSymlinkSync}},176:function(e,t,r){"use strict";const n=r(46).fromCallback;const i=r(758);const o=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter((e=>typeof i[e]==="function"));Object.keys(i).forEach((e=>{if(e==="promises"){return}t[e]=i[e]}));o.forEach((e=>{t[e]=n(i[e])}));t.exists=function(e,t){if(typeof t==="function"){return i.exists(e,t)}return new Promise((t=>i.exists(e,t)))};t.read=function(e,t,r,n,o,c){if(typeof c==="function"){return i.read(e,t,r,n,o,c)}return new Promise(((c,s)=>{i.read(e,t,r,n,o,((e,t,r)=>{if(e)return s(e);c({bytesRead:t,buffer:r})}))}))};t.write=function(e,t,...r){if(typeof r[r.length-1]==="function"){return i.write(e,t,...r)}return new Promise(((n,o)=>{i.write(e,t,...r,((e,t,r)=>{if(e)return o(e);n({bytesWritten:t,buffer:r})}))}))};if(typeof i.writev==="function"){t.writev=function(e,t,...r){if(typeof r[r.length-1]==="function"){return i.writev(e,t,...r)}return new Promise(((n,o)=>{i.writev(e,t,...r,((e,t,r)=>{if(e)return o(e);n({bytesWritten:t,buffers:r})}))}))}}if(typeof i.realpath.native==="function"){t.realpath.native=n(i.realpath.native)}},630:function(e,t,r){"use strict";e.exports={...r(176),...r(135),...r(335),...r(970),...r(55),...r(213),...r(605),...r(665),...r(497),...r(570),...r(835),...r(357)};const n=r(147);if(Object.getOwnPropertyDescriptor(n,"promises")){Object.defineProperty(e.exports,"promises",{get(){return n.promises}})}},213:function(e,t,r){"use strict";const n=r(46).fromPromise;const i=r(544);i.outputJson=n(r(531));i.outputJsonSync=r(421);i.outputJSON=i.outputJson;i.outputJSONSync=i.outputJsonSync;i.writeJSON=i.writeJson;i.writeJSONSync=i.writeJsonSync;i.readJSON=i.readJson;i.readJSONSync=i.readJsonSync;e.exports=i},544:function(e,t,r){"use strict";const n=r(160);e.exports={readJson:n.readFile,readJsonSync:n.readFileSync,writeJson:n.writeFile,writeJsonSync:n.writeFileSync}},421:function(e,t,r){"use strict";const{stringify:n}=r(902);const{outputFileSync:i}=r(570);function outputJsonSync(e,t,r){const o=n(t,r);i(e,o,r)}e.exports=outputJsonSync},531:function(e,t,r){"use strict";const{stringify:n}=r(902);const{outputFile:i}=r(570);async function outputJson(e,t,r={}){const o=n(t,r);await i(e,o,r)}e.exports=outputJson},605:function(e,t,r){"use strict";const n=r(46).fromPromise;const{makeDir:i,makeDirSync:o}=r(751);const c=n(i);e.exports={mkdirs:c,mkdirsSync:o,mkdirp:c,mkdirpSync:o,ensureDir:c,ensureDirSync:o}},751:function(e,t,r){"use strict";const n=r(176);const i=r(17);const o=r(995);const c=o("10.12.0");const checkPath=e=>{if(process.platform==="win32"){const t=/[<>:"|?*]/.test(e.replace(i.parse(e).root,""));if(t){const t=new Error(`Path contains invalid characters: ${e}`);t.code="EINVAL";throw t}}};const processOptions=e=>{const t={mode:511};if(typeof e==="number")e={mode:e};return{...t,...e}};const permissionError=e=>{const t=new Error(`operation not permitted, mkdir '${e}'`);t.code="EPERM";t.errno=-4048;t.path=e;t.syscall="mkdir";return t};e.exports.makeDir=async(e,t)=>{checkPath(e);t=processOptions(t);if(c){const r=i.resolve(e);return n.mkdir(r,{mode:t.mode,recursive:true})}const make=async e=>{try{await n.mkdir(e,t.mode)}catch(t){if(t.code==="EPERM"){throw t}if(t.code==="ENOENT"){if(i.dirname(e)===e){throw permissionError(e)}if(t.message.includes("null bytes")){throw t}await make(i.dirname(e));return make(e)}try{const t=await n.stat(e);if(!t.isDirectory()){throw new Error("The path is not a directory")}}catch{throw t}}};return make(i.resolve(e))};e.exports.makeDirSync=(e,t)=>{checkPath(e);t=processOptions(t);if(c){const r=i.resolve(e);return n.mkdirSync(r,{mode:t.mode,recursive:true})}const make=e=>{try{n.mkdirSync(e,t.mode)}catch(t){if(t.code==="EPERM"){throw t}if(t.code==="ENOENT"){if(i.dirname(e)===e){throw permissionError(e)}if(t.message.includes("null bytes")){throw t}make(i.dirname(e));return make(e)}try{if(!n.statSync(e).isDirectory()){throw new Error("The path is not a directory")}}catch{throw t}}};return make(i.resolve(e))}},665:function(e,t,r){"use strict";e.exports={moveSync:r(445)}},445:function(e,t,r){"use strict";const n=r(758);const i=r(17);const o=r(135).copySync;const c=r(357).removeSync;const s=r(605).mkdirpSync;const u=r(901);function moveSync(e,t,r){r=r||{};const n=r.overwrite||r.clobber||false;const{srcStat:o}=u.checkPathsSync(e,t,"move");u.checkParentPathsSync(e,o,t,"move");s(i.dirname(t));return doRename(e,t,n)}function doRename(e,t,r){if(r){c(t);return rename(e,t,r)}if(n.existsSync(t))throw new Error("dest already exists.");return rename(e,t,r)}function rename(e,t,r){try{n.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return moveAcrossDevice(e,t,r)}}function moveAcrossDevice(e,t,r){const n={overwrite:r,errorOnExist:true};o(e,t,n);return c(e)}e.exports=moveSync},497:function(e,t,r){"use strict";const n=r(46).fromCallback;e.exports={move:n(r(231))}},231:function(e,t,r){"use strict";const n=r(758);const i=r(17);const o=r(335).copy;const c=r(357).remove;const s=r(605).mkdirp;const u=r(835).pathExists;const a=r(901);function move(e,t,r,n){if(typeof r==="function"){n=r;r={}}const o=r.overwrite||r.clobber||false;a.checkPaths(e,t,"move",((r,c)=>{if(r)return n(r);const{srcStat:u}=c;a.checkParentPaths(e,u,t,"move",(r=>{if(r)return n(r);s(i.dirname(t),(r=>{if(r)return n(r);return doRename(e,t,o,n)}))}))}))}function doRename(e,t,r,n){if(r){return c(t,(i=>{if(i)return n(i);return rename(e,t,r,n)}))}u(t,((i,o)=>{if(i)return n(i);if(o)return n(new Error("dest already exists."));return rename(e,t,r,n)}))}function rename(e,t,r,i){n.rename(e,t,(n=>{if(!n)return i();if(n.code!=="EXDEV")return i(n);return moveAcrossDevice(e,t,r,i)}))}function moveAcrossDevice(e,t,r,n){const i={overwrite:r,errorOnExist:true};o(e,t,i,(t=>{if(t)return n(t);return c(e,n)}))}e.exports=move},570:function(e,t,r){"use strict";const n=r(46).fromCallback;const i=r(758);const o=r(17);const c=r(605);const s=r(835).pathExists;function outputFile(e,t,r,n){if(typeof r==="function"){n=r;r="utf8"}const u=o.dirname(e);s(u,((o,s)=>{if(o)return n(o);if(s)return i.writeFile(e,t,r,n);c.mkdirs(u,(o=>{if(o)return n(o);i.writeFile(e,t,r,n)}))}))}function outputFileSync(e,...t){const r=o.dirname(e);if(i.existsSync(r)){return i.writeFileSync(e,...t)}c.mkdirsSync(r);i.writeFileSync(e,...t)}e.exports={outputFile:n(outputFile),outputFileSync:outputFileSync}},835:function(e,t,r){"use strict";const n=r(46).fromPromise;const i=r(176);function pathExists(e){return i.access(e).then((()=>true)).catch((()=>false))}e.exports={pathExists:n(pathExists),pathExistsSync:i.existsSync}},357:function(e,t,r){"use strict";const n=r(46).fromCallback;const i=r(761);e.exports={remove:n(i),removeSync:i.sync}},761:function(e,t,r){"use strict";const n=r(758);const i=r(17);const o=r(491);const c=process.platform==="win32";function defaults(e){const t=["unlink","chmod","stat","lstat","rmdir","readdir"];t.forEach((t=>{e[t]=e[t]||n[t];t=t+"Sync";e[t]=e[t]||n[t]}));e.maxBusyTries=e.maxBusyTries||3}function rimraf(e,t,r){let n=0;if(typeof t==="function"){r=t;t={}}o(e,"rimraf: missing path");o.strictEqual(typeof e,"string","rimraf: path should be a string");o.strictEqual(typeof r,"function","rimraf: callback function required");o(t,"rimraf: invalid options argument provided");o.strictEqual(typeof t,"object","rimraf: options should be object");defaults(t);rimraf_(e,t,(function CB(i){if(i){if((i.code==="EBUSY"||i.code==="ENOTEMPTY"||i.code==="EPERM")&&n<t.maxBusyTries){n++;const r=n*100;return setTimeout((()=>rimraf_(e,t,CB)),r)}if(i.code==="ENOENT")i=null}r(i)}))}function rimraf_(e,t,r){o(e);o(t);o(typeof r==="function");t.lstat(e,((n,i)=>{if(n&&n.code==="ENOENT"){return r(null)}if(n&&n.code==="EPERM"&&c){return fixWinEPERM(e,t,n,r)}if(i&&i.isDirectory()){return rmdir(e,t,n,r)}t.unlink(e,(n=>{if(n){if(n.code==="ENOENT"){return r(null)}if(n.code==="EPERM"){return c?fixWinEPERM(e,t,n,r):rmdir(e,t,n,r)}if(n.code==="EISDIR"){return rmdir(e,t,n,r)}}return r(n)}))}))}function fixWinEPERM(e,t,r,n){o(e);o(t);o(typeof n==="function");t.chmod(e,438,(i=>{if(i){n(i.code==="ENOENT"?null:r)}else{t.stat(e,((i,o)=>{if(i){n(i.code==="ENOENT"?null:r)}else if(o.isDirectory()){rmdir(e,t,r,n)}else{t.unlink(e,n)}}))}}))}function fixWinEPERMSync(e,t,r){let n;o(e);o(t);try{t.chmodSync(e,438)}catch(e){if(e.code==="ENOENT"){return}else{throw r}}try{n=t.statSync(e)}catch(e){if(e.code==="ENOENT"){return}else{throw r}}if(n.isDirectory()){rmdirSync(e,t,r)}else{t.unlinkSync(e)}}function rmdir(e,t,r,n){o(e);o(t);o(typeof n==="function");t.rmdir(e,(i=>{if(i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")){rmkids(e,t,n)}else if(i&&i.code==="ENOTDIR"){n(r)}else{n(i)}}))}function rmkids(e,t,r){o(e);o(t);o(typeof r==="function");t.readdir(e,((n,o)=>{if(n)return r(n);let c=o.length;let s;if(c===0)return t.rmdir(e,r);o.forEach((n=>{rimraf(i.join(e,n),t,(n=>{if(s){return}if(n)return r(s=n);if(--c===0){t.rmdir(e,r)}}))}))}))}function rimrafSync(e,t){let r;t=t||{};defaults(t);o(e,"rimraf: missing path");o.strictEqual(typeof e,"string","rimraf: path should be a string");o(t,"rimraf: missing options");o.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(r){if(r.code==="ENOENT"){return}if(r.code==="EPERM"&&c){fixWinEPERMSync(e,t,r)}}try{if(r&&r.isDirectory()){rmdirSync(e,t,null)}else{t.unlinkSync(e)}}catch(r){if(r.code==="ENOENT"){return}else if(r.code==="EPERM"){return c?fixWinEPERMSync(e,t,r):rmdirSync(e,t,r)}else if(r.code!=="EISDIR"){throw r}rmdirSync(e,t,r)}}function rmdirSync(e,t,r){o(e);o(t);try{t.rmdirSync(e)}catch(n){if(n.code==="ENOTDIR"){throw r}else if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM"){rmkidsSync(e,t)}else if(n.code!=="ENOENT"){throw n}}}function rmkidsSync(e,t){o(e);o(t);t.readdirSync(e).forEach((r=>rimrafSync(i.join(e,r),t)));if(c){const r=Date.now();do{try{const r=t.rmdirSync(e,t);return r}catch{}}while(Date.now()-r<500)}else{const r=t.rmdirSync(e,t);return r}}e.exports=rimraf;rimraf.sync=rimrafSync},901:function(e,t,r){"use strict";const n=r(176);const i=r(17);const o=r(837);const c=r(995);const s=c("10.5.0");const stat=e=>s?n.stat(e,{bigint:true}):n.stat(e);const statSync=e=>s?n.statSync(e,{bigint:true}):n.statSync(e);function getStats(e,t){return Promise.all([stat(e),stat(t).catch((e=>{if(e.code==="ENOENT")return null;throw e}))]).then((([e,t])=>({srcStat:e,destStat:t})))}function getStatsSync(e,t){let r;const n=statSync(e);try{r=statSync(t)}catch(e){if(e.code==="ENOENT")return{srcStat:n,destStat:null};throw e}return{srcStat:n,destStat:r}}function checkPaths(e,t,r,n){o.callbackify(getStats)(e,t,((i,o)=>{if(i)return n(i);const{srcStat:c,destStat:s}=o;if(s&&areIdentical(c,s)){return n(new Error("Source and destination must not be the same."))}if(c.isDirectory()&&isSrcSubdir(e,t)){return n(new Error(errMsg(e,t,r)))}return n(null,{srcStat:c,destStat:s})}))}function checkPathsSync(e,t,r){const{srcStat:n,destStat:i}=getStatsSync(e,t);if(i&&areIdentical(n,i)){throw new Error("Source and destination must not be the same.")}if(n.isDirectory()&&isSrcSubdir(e,t)){throw new Error(errMsg(e,t,r))}return{srcStat:n,destStat:i}}function checkParentPaths(e,t,r,o,c){const u=i.resolve(i.dirname(e));const a=i.resolve(i.dirname(r));if(a===u||a===i.parse(a).root)return c();const callback=(n,i)=>{if(n){if(n.code==="ENOENT")return c();return c(n)}if(areIdentical(t,i)){return c(new Error(errMsg(e,r,o)))}return checkParentPaths(e,t,a,o,c)};if(s)n.stat(a,{bigint:true},callback);else n.stat(a,callback)}function checkParentPathsSync(e,t,r,n){const o=i.resolve(i.dirname(e));const c=i.resolve(i.dirname(r));if(c===o||c===i.parse(c).root)return;let s;try{s=statSync(c)}catch(e){if(e.code==="ENOENT")return;throw e}if(areIdentical(t,s)){throw new Error(errMsg(e,r,n))}return checkParentPathsSync(e,t,c,n)}function areIdentical(e,t){if(t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev){if(s||t.ino<Number.MAX_SAFE_INTEGER){return true}if(t.size===e.size&&t.mode===e.mode&&t.nlink===e.nlink&&t.atimeMs===e.atimeMs&&t.mtimeMs===e.mtimeMs&&t.ctimeMs===e.ctimeMs&&t.birthtimeMs===e.birthtimeMs){return true}}return false}function isSrcSubdir(e,t){const r=i.resolve(e).split(i.sep).filter((e=>e));const n=i.resolve(t).split(i.sep).filter((e=>e));return r.reduce(((e,t,r)=>e&&n[r]===t),true)}function errMsg(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}e.exports={checkPaths:checkPaths,checkPathsSync:checkPathsSync,checkParentPaths:checkParentPaths,checkParentPathsSync:checkParentPathsSync,isSrcSubdir:isSrcSubdir}},548:function(e,t,r){"use strict";const n=r(758);function utimesMillis(e,t,r,i){n.open(e,"r+",((e,o)=>{if(e)return i(e);n.futimes(o,t,r,(e=>{n.close(o,(t=>{if(i)i(e||t)}))}))}))}function utimesMillisSync(e,t,r){const i=n.openSync(e,"r+");n.futimesSync(i,t,r);return n.closeSync(i)}e.exports={utimesMillis:utimesMillis,utimesMillisSync:utimesMillisSync}},356:function(e){"use strict";e.exports=clone;var t=Object.getPrototypeOf||function(e){return e.__proto__};function clone(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var r={__proto__:t(e)};else var r=Object.create(null);Object.getOwnPropertyNames(e).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))}));return r}},758:function(e,t,r){var n=r(147);var i=r(263);var o=r(86);var c=r(356);var s=r(837);var u;var a;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){u=Symbol.for("graceful-fs.queue");a=Symbol.for("graceful-fs.previous")}else{u="___graceful-fs.queue";a="___graceful-fs.previous"}function noop(){}function publishQueue(e,t){Object.defineProperty(e,u,{get:function(){return t}})}var f=noop;if(s.debuglog)f=s.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))f=function(){var e=s.format.apply(s,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: ");console.error(e)};if(!n[u]){var l=global[u]||[];publishQueue(n,l);n.close=function(e){function close(t,r){return e.call(n,t,(function(e){if(!e){resetQueue()}if(typeof r==="function")r.apply(this,arguments)}))}Object.defineProperty(close,a,{value:e});return close}(n.close);n.closeSync=function(e){function closeSync(t){e.apply(n,arguments);resetQueue()}Object.defineProperty(closeSync,a,{value:e});return closeSync}(n.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",(function(){f(n[u]);r(491).equal(n[u].length,0)}))}}if(!global[u]){publishQueue(global,n[u])}e.exports=patch(c(n));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!n.__patched){e.exports=patch(n);n.__patched=true}function patch(e){i(e);e.gracefulify=patch;e.createReadStream=createReadStream;e.createWriteStream=createWriteStream;var t=e.readFile;e.readFile=readFile;function readFile(e,r,n){if(typeof r==="function")n=r,r=null;return go$readFile(e,r,n);function go$readFile(e,r,n,i){return t(e,r,(function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$readFile,[e,r,n],t,i||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}}))}}var r=e.writeFile;e.writeFile=writeFile;function writeFile(e,t,n,i){if(typeof n==="function")i=n,n=null;return go$writeFile(e,t,n,i);function go$writeFile(e,t,n,i,o){return r(e,t,n,(function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$writeFile,[e,t,n,i],r,o||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}var n=e.appendFile;if(n)e.appendFile=appendFile;function appendFile(e,t,r,i){if(typeof r==="function")i=r,r=null;return go$appendFile(e,t,r,i);function go$appendFile(e,t,r,i,o){return n(e,t,r,(function(n){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$appendFile,[e,t,r,i],n,o||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}var c=e.copyFile;if(c)e.copyFile=copyFile;function copyFile(e,t,r,n){if(typeof r==="function"){n=r;r=0}return go$copyFile(e,t,r,n);function go$copyFile(e,t,r,n,i){return c(e,t,r,(function(o){if(o&&(o.code==="EMFILE"||o.code==="ENFILE"))enqueue([go$copyFile,[e,t,r,n],o,i||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}}))}}var s=e.readdir;e.readdir=readdir;var u=/^v[0-5]\./;function readdir(e,t,r){if(typeof t==="function")r=t,t=null;var n=u.test(process.version)?function go$readdir(e,t,r,n){return s(e,fs$readdirCallback(e,t,r,n))}:function go$readdir(e,t,r,n){return s(e,t,fs$readdirCallback(e,t,r,n))};return n(e,t,r);function fs$readdirCallback(e,t,r,i){return function(o,c){if(o&&(o.code==="EMFILE"||o.code==="ENFILE"))enqueue([n,[e,t,r],o,i||Date.now(),Date.now()]);else{if(c&&c.sort)c.sort();if(typeof r==="function")r.call(this,o,c)}}}}if(process.version.substr(0,4)==="v0.8"){var a=o(e);ReadStream=a.ReadStream;WriteStream=a.WriteStream}var f=e.ReadStream;if(f){ReadStream.prototype=Object.create(f.prototype);ReadStream.prototype.open=ReadStream$open}var l=e.WriteStream;if(l){WriteStream.prototype=Object.create(l.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(e,"ReadStream",{get:function(){return ReadStream},set:function(e){ReadStream=e},enumerable:true,configurable:true});Object.defineProperty(e,"WriteStream",{get:function(){return WriteStream},set:function(e){WriteStream=e},enumerable:true,configurable:true});var y=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return y},set:function(e){y=e},enumerable:true,configurable:true});var d=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return d},set:function(e){d=e},enumerable:true,configurable:true});function ReadStream(e,t){if(this instanceof ReadStream)return f.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,r){if(t){if(e.autoClose)e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r);e.read()}}))}function WriteStream(e,t){if(this instanceof WriteStream)return l.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,r){if(t){e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r)}}))}function createReadStream(t,r){return new e.ReadStream(t,r)}function createWriteStream(t,r){return new e.WriteStream(t,r)}var m=e.open;e.open=open;function open(e,t,r,n){if(typeof r==="function")n=r,r=null;return go$open(e,t,r,n);function go$open(e,t,r,n,i){return m(e,t,r,(function(o,c){if(o&&(o.code==="EMFILE"||o.code==="ENFILE"))enqueue([go$open,[e,t,r,n],o,i||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}}))}}return e}function enqueue(e){f("ENQUEUE",e[0].name,e[1]);n[u].push(e);retry()}var y;function resetQueue(){var e=Date.now();for(var t=0;t<n[u].length;++t){if(n[u][t].length>2){n[u][t][3]=e;n[u][t][4]=e}}retry()}function retry(){clearTimeout(y);y=undefined;if(n[u].length===0)return;var e=n[u].shift();var t=e[0];var r=e[1];var i=e[2];var o=e[3];var c=e[4];if(o===undefined){f("RETRY",t.name,r);t.apply(null,r)}else if(Date.now()-o>=6e4){f("TIMEOUT",t.name,r);var s=r.pop();if(typeof s==="function")s.call(null,i)}else{var a=Date.now()-c;var l=Math.max(c-o,1);var d=Math.min(l*1.2,100);if(a>=d){f("RETRY",t.name,r);t.apply(null,r.concat([o]))}else{n[u].push(e)}}if(y===undefined){y=setTimeout(retry,0)}}},86:function(e,t,r){var n=r(781).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(t,r){if(!(this instanceof ReadStream))return new ReadStream(t,r);n.call(this);var i=this;this.path=t;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;r=r||{};var o=Object.keys(r);for(var c=0,s=o.length;c<s;c++){var u=o[c];this[u]=r[u]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.end===undefined){this.end=Infinity}else if("number"!==typeof this.end){throw TypeError("end must be a Number")}if(this.start>this.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick((function(){i._read()}));return}e.open(this.path,this.flags,this.mode,(function(e,t){if(e){i.emit("error",e);i.readable=false;return}i.fd=t;i.emit("open",t);i._read()}))}function WriteStream(t,r){if(!(this instanceof WriteStream))return new WriteStream(t,r);n.call(this);this.path=t;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;r=r||{};var i=Object.keys(r);for(var o=0,c=i.length;o<c;o++){var s=i[o];this[s]=r[s]}if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.start<0){throw new Error("start must be >= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=e.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},263:function(e,t,r){var n=r(57);var i=process.cwd;var o=null;var c=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!o)o=i.call(process);return o};try{process.cwd()}catch(e){}if(typeof process.chdir==="function"){var s=process.chdir;process.chdir=function(e){o=null;s.call(process,e)};if(Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,s)}e.exports=patch;function patch(e){if(n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(e)}if(!e.lutimes){patchLutimes(e)}e.chown=chownFix(e.chown);e.fchown=chownFix(e.fchown);e.lchown=chownFix(e.lchown);e.chmod=chmodFix(e.chmod);e.fchmod=chmodFix(e.fchmod);e.lchmod=chmodFix(e.lchmod);e.chownSync=chownFixSync(e.chownSync);e.fchownSync=chownFixSync(e.fchownSync);e.lchownSync=chownFixSync(e.lchownSync);e.chmodSync=chmodFixSync(e.chmodSync);e.fchmodSync=chmodFixSync(e.fchmodSync);e.lchmodSync=chmodFixSync(e.lchmodSync);e.stat=statFix(e.stat);e.fstat=statFix(e.fstat);e.lstat=statFix(e.lstat);e.statSync=statFixSync(e.statSync);e.fstatSync=statFixSync(e.fstatSync);e.lstatSync=statFixSync(e.lstatSync);if(e.chmod&&!e.lchmod){e.lchmod=function(e,t,r){if(r)process.nextTick(r)};e.lchmodSync=function(){}}if(e.chown&&!e.lchown){e.lchown=function(e,t,r,n){if(n)process.nextTick(n)};e.lchownSync=function(){}}if(c==="win32"){e.rename=typeof e.rename!=="function"?e.rename:function(t){function rename(r,n,i){var o=Date.now();var c=0;t(r,n,(function CB(s){if(s&&(s.code==="EACCES"||s.code==="EPERM"||s.code==="EBUSY")&&Date.now()-o<6e4){setTimeout((function(){e.stat(n,(function(e,o){if(e&&e.code==="ENOENT")t(r,n,CB);else i(s)}))}),c);if(c<100)c+=10;return}if(i)i(s)}))}if(Object.setPrototypeOf)Object.setPrototypeOf(rename,t);return rename}(e.rename)}e.read=typeof e.read!=="function"?e.read:function(t){function read(r,n,i,o,c,s){var u;if(s&&typeof s==="function"){var a=0;u=function(f,l,y){if(f&&f.code==="EAGAIN"&&a<10){a++;return t.call(e,r,n,i,o,c,u)}s.apply(this,arguments)}}return t.call(e,r,n,i,o,c,u)}if(Object.setPrototypeOf)Object.setPrototypeOf(read,t);return read}(e.read);e.readSync=typeof e.readSync!=="function"?e.readSync:function(t){return function(r,n,i,o,c){var s=0;while(true){try{return t.call(e,r,n,i,o,c)}catch(e){if(e.code==="EAGAIN"&&s<10){s++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(t,r,i){e.open(t,n.O_WRONLY|n.O_SYMLINK,r,(function(t,n){if(t){if(i)i(t);return}e.fchmod(n,r,(function(t){e.close(n,(function(e){if(i)i(t||e)}))}))}))};e.lchmodSync=function(t,r){var i=e.openSync(t,n.O_WRONLY|n.O_SYMLINK,r);var o=true;var c;try{c=e.fchmodSync(i,r);o=false}finally{if(o){try{e.closeSync(i)}catch(e){}}else{e.closeSync(i)}}return c}}function patchLutimes(e){if(n.hasOwnProperty("O_SYMLINK")&&e.futimes){e.lutimes=function(t,r,i,o){e.open(t,n.O_SYMLINK,(function(t,n){if(t){if(o)o(t);return}e.futimes(n,r,i,(function(t){e.close(n,(function(e){if(o)o(t||e)}))}))}))};e.lutimesSync=function(t,r,i){var o=e.openSync(t,n.O_SYMLINK);var c;var s=true;try{c=e.futimesSync(o,r,i);s=false}finally{if(s){try{e.closeSync(o)}catch(e){}}else{e.closeSync(o)}}return c}}else if(e.futimes){e.lutimes=function(e,t,r,n){if(n)process.nextTick(n)};e.lutimesSync=function(){}}}function chmodFix(t){if(!t)return t;return function(r,n,i){return t.call(e,r,n,(function(e){if(chownErOk(e))e=null;if(i)i.apply(this,arguments)}))}}function chmodFixSync(t){if(!t)return t;return function(r,n){try{return t.call(e,r,n)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(t){if(!t)return t;return function(r,n,i,o){return t.call(e,r,n,i,(function(e){if(chownErOk(e))e=null;if(o)o.apply(this,arguments)}))}}function chownFixSync(t){if(!t)return t;return function(r,n,i){try{return t.call(e,r,n,i)}catch(e){if(!chownErOk(e))throw e}}}function statFix(t){if(!t)return t;return function(r,n,i){if(typeof n==="function"){i=n;n=null}function callback(e,t){if(t){if(t.uid<0)t.uid+=4294967296;if(t.gid<0)t.gid+=4294967296}if(i)i.apply(this,arguments)}return n?t.call(e,r,n,callback):t.call(e,r,callback)}}function statFixSync(t){if(!t)return t;return function(r,n){var i=n?t.call(e,r,n):t.call(e,r);if(i){if(i.uid<0)i.uid+=4294967296;if(i.gid<0)i.gid+=4294967296}return i}}function chownErOk(e){if(!e)return true;if(e.code==="ENOSYS")return true;var t=!process.getuid||process.getuid()!==0;if(t){if(e.code==="EINVAL"||e.code==="EPERM")return true}return false}}},160:function(e,t,r){let n;try{n=r(758)}catch(e){n=r(147)}const i=r(46);const{stringify:o,stripBom:c}=r(902);async function _readFile(e,t={}){if(typeof t==="string"){t={encoding:t}}const r=t.fs||n;const o="throws"in t?t.throws:true;let s=await i.fromCallback(r.readFile)(e,t);s=c(s);let u;try{u=JSON.parse(s,t?t.reviver:null)}catch(t){if(o){t.message=`${e}: ${t.message}`;throw t}else{return null}}return u}const s=i.fromPromise(_readFile);function readFileSync(e,t={}){if(typeof t==="string"){t={encoding:t}}const r=t.fs||n;const i="throws"in t?t.throws:true;try{let n=r.readFileSync(e,t);n=c(n);return JSON.parse(n,t.reviver)}catch(t){if(i){t.message=`${e}: ${t.message}`;throw t}else{return null}}}async function _writeFile(e,t,r={}){const c=r.fs||n;const s=o(t,r);await i.fromCallback(c.writeFile)(e,s,r)}const u=i.fromPromise(_writeFile);function writeFileSync(e,t,r={}){const i=r.fs||n;const c=o(t,r);return i.writeFileSync(e,c,r)}const a={readFile:s,readFileSync:readFileSync,writeFile:u,writeFileSync:writeFileSync};e.exports=a},902:function(e){function stringify(e,{EOL:t="\n",finalEOL:r=true,replacer:n=null,spaces:i}={}){const o=r?t:"";const c=JSON.stringify(e,n,i);return c.replace(/\n/g,t)+o}function stripBom(e){if(Buffer.isBuffer(e))e=e.toString("utf8");return e.replace(/^\uFEFF/,"")}e.exports={stringify:stringify,stripBom:stripBom}},46:function(e,t){"use strict";t.fromCallback=function(e){return Object.defineProperty((function(...t){if(typeof t[t.length-1]==="function")e.apply(this,t);else{return new Promise(((r,n)=>{t.push(((e,t)=>e!=null?n(e):r(t)));e.apply(this,t)}))}}),"name",{value:e.name})};t.fromPromise=function(e){return Object.defineProperty((function(...t){const r=t[t.length-1];if(typeof r!=="function")return e.apply(this,t);else{t.pop();e.apply(this,t).then((e=>r(null,e)),r)}}),"name",{value:e.name})}},491:function(e){"use strict";e.exports=require("assert")},57:function(e){"use strict";e.exports=require("constants")},147:function(e){"use strict";e.exports=require("fs")},17:function(e){"use strict";e.exports=require("path")},781:function(e){"use strict";e.exports=require("stream")},837:function(e){"use strict";e.exports=require("util")}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var i=t[r]={exports:{}};var o=true;try{e[r](i,i.exports,__nccwpck_require__);o=false}finally{if(o)delete t[r]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(630);module.exports=r})();
|
|
1
|
+
(()=>{var e={995:e=>{e.exports=e=>{const t=process.versions.node.split(".").map((e=>parseInt(e,10)));e=e.split(".").map((e=>parseInt(e,10)));return t[0]>e[0]||t[0]===e[0]&&(t[1]>e[1]||t[1]===e[1]&&t[2]>=e[2])}},338:(e,t,r)=>{"use strict";const n=r(758);const i=r(17);const o=r(605).mkdirsSync;const c=r(548).utimesMillisSync;const s=r(901);function copySync(e,t,r){if(typeof r==="function"){r={filter:r}}r=r||{};r.clobber="clobber"in r?!!r.clobber:true;r.overwrite="overwrite"in r?!!r.overwrite:r.clobber;if(r.preserveTimestamps&&process.arch==="ia32"){console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269`)}const{srcStat:n,destStat:i}=s.checkPathsSync(e,t,"copy");s.checkParentPathsSync(e,n,t,"copy");return handleFilterAndCopy(i,e,t,r)}function handleFilterAndCopy(e,t,r,c){if(c.filter&&!c.filter(t,r))return;const s=i.dirname(r);if(!n.existsSync(s))o(s);return startCopy(e,t,r,c)}function startCopy(e,t,r,n){if(n.filter&&!n.filter(t,r))return;return getStats(e,t,r,n)}function getStats(e,t,r,i){const o=i.dereference?n.statSync:n.lstatSync;const c=o(t);if(c.isDirectory())return onDir(c,e,t,r,i);else if(c.isFile()||c.isCharacterDevice()||c.isBlockDevice())return onFile(c,e,t,r,i);else if(c.isSymbolicLink())return onLink(e,t,r,i)}function onFile(e,t,r,n,i){if(!t)return copyFile(e,r,n,i);return mayCopyFile(e,r,n,i)}function mayCopyFile(e,t,r,i){if(i.overwrite){n.unlinkSync(r);return copyFile(e,t,r,i)}else if(i.errorOnExist){throw new Error(`'${r}' already exists`)}}function copyFile(e,t,r,i){n.copyFileSync(t,r);if(i.preserveTimestamps)handleTimestamps(e.mode,t,r);return setDestMode(r,e.mode)}function handleTimestamps(e,t,r){if(fileIsNotWritable(e))makeFileWritable(r,e);return setDestTimestamps(t,r)}function fileIsNotWritable(e){return(e&128)===0}function makeFileWritable(e,t){return setDestMode(e,t|128)}function setDestMode(e,t){return n.chmodSync(e,t)}function setDestTimestamps(e,t){const r=n.statSync(e);return c(t,r.atime,r.mtime)}function onDir(e,t,r,n,i){if(!t)return mkDirAndCopy(e.mode,r,n,i);if(t&&!t.isDirectory()){throw new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`)}return copyDir(r,n,i)}function mkDirAndCopy(e,t,r,i){n.mkdirSync(r);copyDir(t,r,i);return setDestMode(r,e)}function copyDir(e,t,r){n.readdirSync(e).forEach((n=>copyDirItem(n,e,t,r)))}function copyDirItem(e,t,r,n){const o=i.join(t,e);const c=i.join(r,e);const{destStat:a}=s.checkPathsSync(o,c,"copy");return startCopy(a,o,c,n)}function onLink(e,t,r,o){let c=n.readlinkSync(t);if(o.dereference){c=i.resolve(process.cwd(),c)}if(!e){return n.symlinkSync(c,r)}else{let e;try{e=n.readlinkSync(r)}catch(e){if(e.code==="EINVAL"||e.code==="UNKNOWN")return n.symlinkSync(c,r);throw e}if(o.dereference){e=i.resolve(process.cwd(),e)}if(s.isSrcSubdir(c,e)){throw new Error(`Cannot copy '${c}' to a subdirectory of itself, '${e}'.`)}if(n.statSync(r).isDirectory()&&s.isSrcSubdir(e,c)){throw new Error(`Cannot overwrite '${e}' with '${c}'.`)}return copyLink(c,r)}}function copyLink(e,t){n.unlinkSync(t);return n.symlinkSync(e,t)}e.exports=copySync},135:(e,t,r)=>{"use strict";e.exports={copySync:r(338)}},834:(e,t,r)=>{"use strict";const n=r(758);const i=r(17);const o=r(605).mkdirs;const c=r(835).pathExists;const s=r(548).utimesMillis;const a=r(901);function copy(e,t,r,n){if(typeof r==="function"&&!n){n=r;r={}}else if(typeof r==="function"){r={filter:r}}n=n||function(){};r=r||{};r.clobber="clobber"in r?!!r.clobber:true;r.overwrite="overwrite"in r?!!r.overwrite:r.clobber;if(r.preserveTimestamps&&process.arch==="ia32"){console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269`)}a.checkPaths(e,t,"copy",((i,o)=>{if(i)return n(i);const{srcStat:c,destStat:s}=o;a.checkParentPaths(e,c,t,"copy",(i=>{if(i)return n(i);if(r.filter)return handleFilter(checkParentDir,s,e,t,r,n);return checkParentDir(s,e,t,r,n)}))}))}function checkParentDir(e,t,r,n,s){const a=i.dirname(r);c(a,((i,c)=>{if(i)return s(i);if(c)return startCopy(e,t,r,n,s);o(a,(i=>{if(i)return s(i);return startCopy(e,t,r,n,s)}))}))}function handleFilter(e,t,r,n,i,o){Promise.resolve(i.filter(r,n)).then((c=>{if(c)return e(t,r,n,i,o);return o()}),(e=>o(e)))}function startCopy(e,t,r,n,i){if(n.filter)return handleFilter(getStats,e,t,r,n,i);return getStats(e,t,r,n,i)}function getStats(e,t,r,i,o){const c=i.dereference?n.stat:n.lstat;c(t,((n,c)=>{if(n)return o(n);if(c.isDirectory())return onDir(c,e,t,r,i,o);else if(c.isFile()||c.isCharacterDevice()||c.isBlockDevice())return onFile(c,e,t,r,i,o);else if(c.isSymbolicLink())return onLink(e,t,r,i,o)}))}function onFile(e,t,r,n,i,o){if(!t)return copyFile(e,r,n,i,o);return mayCopyFile(e,r,n,i,o)}function mayCopyFile(e,t,r,i,o){if(i.overwrite){n.unlink(r,(n=>{if(n)return o(n);return copyFile(e,t,r,i,o)}))}else if(i.errorOnExist){return o(new Error(`'${r}' already exists`))}else return o()}function copyFile(e,t,r,i,o){n.copyFile(t,r,(n=>{if(n)return o(n);if(i.preserveTimestamps)return handleTimestampsAndMode(e.mode,t,r,o);return setDestMode(r,e.mode,o)}))}function handleTimestampsAndMode(e,t,r,n){if(fileIsNotWritable(e)){return makeFileWritable(r,e,(i=>{if(i)return n(i);return setDestTimestampsAndMode(e,t,r,n)}))}return setDestTimestampsAndMode(e,t,r,n)}function fileIsNotWritable(e){return(e&128)===0}function makeFileWritable(e,t,r){return setDestMode(e,t|128,r)}function setDestTimestampsAndMode(e,t,r,n){setDestTimestamps(t,r,(t=>{if(t)return n(t);return setDestMode(r,e,n)}))}function setDestMode(e,t,r){return n.chmod(e,t,r)}function setDestTimestamps(e,t,r){n.stat(e,((e,n)=>{if(e)return r(e);return s(t,n.atime,n.mtime,r)}))}function onDir(e,t,r,n,i,o){if(!t)return mkDirAndCopy(e.mode,r,n,i,o);if(t&&!t.isDirectory()){return o(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`))}return copyDir(r,n,i,o)}function mkDirAndCopy(e,t,r,i,o){n.mkdir(r,(n=>{if(n)return o(n);copyDir(t,r,i,(t=>{if(t)return o(t);return setDestMode(r,e,o)}))}))}function copyDir(e,t,r,i){n.readdir(e,((n,o)=>{if(n)return i(n);return copyDirItems(o,e,t,r,i)}))}function copyDirItems(e,t,r,n,i){const o=e.pop();if(!o)return i();return copyDirItem(e,o,t,r,n,i)}function copyDirItem(e,t,r,n,o,c){const s=i.join(r,t);const u=i.join(n,t);a.checkPaths(s,u,"copy",((t,i)=>{if(t)return c(t);const{destStat:a}=i;startCopy(a,s,u,o,(t=>{if(t)return c(t);return copyDirItems(e,r,n,o,c)}))}))}function onLink(e,t,r,o,c){n.readlink(t,((t,s)=>{if(t)return c(t);if(o.dereference){s=i.resolve(process.cwd(),s)}if(!e){return n.symlink(s,r,c)}else{n.readlink(r,((t,u)=>{if(t){if(t.code==="EINVAL"||t.code==="UNKNOWN")return n.symlink(s,r,c);return c(t)}if(o.dereference){u=i.resolve(process.cwd(),u)}if(a.isSrcSubdir(s,u)){return c(new Error(`Cannot copy '${s}' to a subdirectory of itself, '${u}'.`))}if(e.isDirectory()&&a.isSrcSubdir(u,s)){return c(new Error(`Cannot overwrite '${u}' with '${s}'.`))}return copyLink(s,r,c)}))}}))}function copyLink(e,t,r){n.unlink(t,(i=>{if(i)return r(i);return n.symlink(e,t,r)}))}e.exports=copy},335:(e,t,r)=>{"use strict";const n=r(46).fromCallback;e.exports={copy:n(r(834))}},970:(e,t,r)=>{"use strict";const n=r(46).fromCallback;const i=r(758);const o=r(17);const c=r(605);const s=r(357);const a=n((function emptyDir(e,t){t=t||function(){};i.readdir(e,((r,n)=>{if(r)return c.mkdirs(e,t);n=n.map((t=>o.join(e,t)));deleteItem();function deleteItem(){const e=n.pop();if(!e)return t();s.remove(e,(e=>{if(e)return t(e);deleteItem()}))}}))}));function emptyDirSync(e){let t;try{t=i.readdirSync(e)}catch{return c.mkdirsSync(e)}t.forEach((t=>{t=o.join(e,t);s.removeSync(t)}))}e.exports={emptyDirSync:emptyDirSync,emptydirSync:emptyDirSync,emptyDir:a,emptydir:a}},164:(e,t,r)=>{"use strict";const n=r(46).fromCallback;const i=r(17);const o=r(758);const c=r(605);function createFile(e,t){function makeFile(){o.writeFile(e,"",(e=>{if(e)return t(e);t()}))}o.stat(e,((r,n)=>{if(!r&&n.isFile())return t();const s=i.dirname(e);o.stat(s,((e,r)=>{if(e){if(e.code==="ENOENT"){return c.mkdirs(s,(e=>{if(e)return t(e);makeFile()}))}return t(e)}if(r.isDirectory())makeFile();else{o.readdir(s,(e=>{if(e)return t(e)}))}}))}))}function createFileSync(e){let t;try{t=o.statSync(e)}catch{}if(t&&t.isFile())return;const r=i.dirname(e);try{if(!o.statSync(r).isDirectory()){o.readdirSync(r)}}catch(e){if(e&&e.code==="ENOENT")c.mkdirsSync(r);else throw e}o.writeFileSync(e,"")}e.exports={createFile:n(createFile),createFileSync:createFileSync}},55:(e,t,r)=>{"use strict";const n=r(164);const i=r(797);const o=r(549);e.exports={createFile:n.createFile,createFileSync:n.createFileSync,ensureFile:n.createFile,ensureFileSync:n.createFileSync,createLink:i.createLink,createLinkSync:i.createLinkSync,ensureLink:i.createLink,ensureLinkSync:i.createLinkSync,createSymlink:o.createSymlink,createSymlinkSync:o.createSymlinkSync,ensureSymlink:o.createSymlink,ensureSymlinkSync:o.createSymlinkSync}},797:(e,t,r)=>{"use strict";const n=r(46).fromCallback;const i=r(17);const o=r(758);const c=r(605);const s=r(835).pathExists;function createLink(e,t,r){function makeLink(e,t){o.link(e,t,(e=>{if(e)return r(e);r(null)}))}s(t,((n,a)=>{if(n)return r(n);if(a)return r(null);o.lstat(e,(n=>{if(n){n.message=n.message.replace("lstat","ensureLink");return r(n)}const o=i.dirname(t);s(o,((n,i)=>{if(n)return r(n);if(i)return makeLink(e,t);c.mkdirs(o,(n=>{if(n)return r(n);makeLink(e,t)}))}))}))}))}function createLinkSync(e,t){const r=o.existsSync(t);if(r)return undefined;try{o.lstatSync(e)}catch(e){e.message=e.message.replace("lstat","ensureLink");throw e}const n=i.dirname(t);const s=o.existsSync(n);if(s)return o.linkSync(e,t);c.mkdirsSync(n);return o.linkSync(e,t)}e.exports={createLink:n(createLink),createLinkSync:createLinkSync}},727:(e,t,r)=>{"use strict";const n=r(17);const i=r(758);const o=r(835).pathExists;function symlinkPaths(e,t,r){if(n.isAbsolute(e)){return i.lstat(e,(t=>{if(t){t.message=t.message.replace("lstat","ensureSymlink");return r(t)}return r(null,{toCwd:e,toDst:e})}))}else{const c=n.dirname(t);const s=n.join(c,e);return o(s,((t,o)=>{if(t)return r(t);if(o){return r(null,{toCwd:s,toDst:e})}else{return i.lstat(e,(t=>{if(t){t.message=t.message.replace("lstat","ensureSymlink");return r(t)}return r(null,{toCwd:e,toDst:n.relative(c,e)})}))}}))}}function symlinkPathsSync(e,t){let r;if(n.isAbsolute(e)){r=i.existsSync(e);if(!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{const o=n.dirname(t);const c=n.join(o,e);r=i.existsSync(c);if(r){return{toCwd:c,toDst:e}}else{r=i.existsSync(e);if(!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:n.relative(o,e)}}}}e.exports={symlinkPaths:symlinkPaths,symlinkPathsSync:symlinkPathsSync}},254:(e,t,r)=>{"use strict";const n=r(758);function symlinkType(e,t,r){r=typeof t==="function"?t:r;t=typeof t==="function"?false:t;if(t)return r(null,t);n.lstat(e,((e,n)=>{if(e)return r(null,"file");t=n&&n.isDirectory()?"dir":"file";r(null,t)}))}function symlinkTypeSync(e,t){let r;if(t)return t;try{r=n.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}e.exports={symlinkType:symlinkType,symlinkTypeSync:symlinkTypeSync}},549:(e,t,r)=>{"use strict";const n=r(46).fromCallback;const i=r(17);const o=r(758);const c=r(605);const s=c.mkdirs;const a=c.mkdirsSync;const u=r(727);const f=u.symlinkPaths;const l=u.symlinkPathsSync;const y=r(254);const d=y.symlinkType;const m=y.symlinkTypeSync;const p=r(835).pathExists;function createSymlink(e,t,r,n){n=typeof r==="function"?r:n;r=typeof r==="function"?false:r;p(t,((c,a)=>{if(c)return n(c);if(a)return n(null);f(e,t,((c,a)=>{if(c)return n(c);e=a.toDst;d(a.toCwd,r,((r,c)=>{if(r)return n(r);const a=i.dirname(t);p(a,((r,i)=>{if(r)return n(r);if(i)return o.symlink(e,t,c,n);s(a,(r=>{if(r)return n(r);o.symlink(e,t,c,n)}))}))}))}))}))}function createSymlinkSync(e,t,r){const n=o.existsSync(t);if(n)return undefined;const c=l(e,t);e=c.toDst;r=m(c.toCwd,r);const s=i.dirname(t);const u=o.existsSync(s);if(u)return o.symlinkSync(e,t,r);a(s);return o.symlinkSync(e,t,r)}e.exports={createSymlink:n(createSymlink),createSymlinkSync:createSymlinkSync}},176:(e,t,r)=>{"use strict";const n=r(46).fromCallback;const i=r(758);const o=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter((e=>typeof i[e]==="function"));Object.keys(i).forEach((e=>{if(e==="promises"){return}t[e]=i[e]}));o.forEach((e=>{t[e]=n(i[e])}));t.exists=function(e,t){if(typeof t==="function"){return i.exists(e,t)}return new Promise((t=>i.exists(e,t)))};t.read=function(e,t,r,n,o,c){if(typeof c==="function"){return i.read(e,t,r,n,o,c)}return new Promise(((c,s)=>{i.read(e,t,r,n,o,((e,t,r)=>{if(e)return s(e);c({bytesRead:t,buffer:r})}))}))};t.write=function(e,t,...r){if(typeof r[r.length-1]==="function"){return i.write(e,t,...r)}return new Promise(((n,o)=>{i.write(e,t,...r,((e,t,r)=>{if(e)return o(e);n({bytesWritten:t,buffer:r})}))}))};if(typeof i.writev==="function"){t.writev=function(e,t,...r){if(typeof r[r.length-1]==="function"){return i.writev(e,t,...r)}return new Promise(((n,o)=>{i.writev(e,t,...r,((e,t,r)=>{if(e)return o(e);n({bytesWritten:t,buffers:r})}))}))}}if(typeof i.realpath.native==="function"){t.realpath.native=n(i.realpath.native)}},630:(e,t,r)=>{"use strict";e.exports={...r(176),...r(135),...r(335),...r(970),...r(55),...r(213),...r(605),...r(665),...r(497),...r(570),...r(835),...r(357)};const n=r(147);if(Object.getOwnPropertyDescriptor(n,"promises")){Object.defineProperty(e.exports,"promises",{get(){return n.promises}})}},213:(e,t,r)=>{"use strict";const n=r(46).fromPromise;const i=r(544);i.outputJson=n(r(531));i.outputJsonSync=r(421);i.outputJSON=i.outputJson;i.outputJSONSync=i.outputJsonSync;i.writeJSON=i.writeJson;i.writeJSONSync=i.writeJsonSync;i.readJSON=i.readJson;i.readJSONSync=i.readJsonSync;e.exports=i},544:(e,t,r)=>{"use strict";const n=r(160);e.exports={readJson:n.readFile,readJsonSync:n.readFileSync,writeJson:n.writeFile,writeJsonSync:n.writeFileSync}},421:(e,t,r)=>{"use strict";const{stringify:n}=r(902);const{outputFileSync:i}=r(570);function outputJsonSync(e,t,r){const o=n(t,r);i(e,o,r)}e.exports=outputJsonSync},531:(e,t,r)=>{"use strict";const{stringify:n}=r(902);const{outputFile:i}=r(570);async function outputJson(e,t,r={}){const o=n(t,r);await i(e,o,r)}e.exports=outputJson},605:(e,t,r)=>{"use strict";const n=r(46).fromPromise;const{makeDir:i,makeDirSync:o}=r(751);const c=n(i);e.exports={mkdirs:c,mkdirsSync:o,mkdirp:c,mkdirpSync:o,ensureDir:c,ensureDirSync:o}},751:(e,t,r)=>{"use strict";const n=r(176);const i=r(17);const o=r(995);const c=o("10.12.0");const checkPath=e=>{if(process.platform==="win32"){const t=/[<>:"|?*]/.test(e.replace(i.parse(e).root,""));if(t){const t=new Error(`Path contains invalid characters: ${e}`);t.code="EINVAL";throw t}}};const processOptions=e=>{const t={mode:511};if(typeof e==="number")e={mode:e};return{...t,...e}};const permissionError=e=>{const t=new Error(`operation not permitted, mkdir '${e}'`);t.code="EPERM";t.errno=-4048;t.path=e;t.syscall="mkdir";return t};e.exports.makeDir=async(e,t)=>{checkPath(e);t=processOptions(t);if(c){const r=i.resolve(e);return n.mkdir(r,{mode:t.mode,recursive:true})}const make=async e=>{try{await n.mkdir(e,t.mode)}catch(t){if(t.code==="EPERM"){throw t}if(t.code==="ENOENT"){if(i.dirname(e)===e){throw permissionError(e)}if(t.message.includes("null bytes")){throw t}await make(i.dirname(e));return make(e)}try{const t=await n.stat(e);if(!t.isDirectory()){throw new Error("The path is not a directory")}}catch{throw t}}};return make(i.resolve(e))};e.exports.makeDirSync=(e,t)=>{checkPath(e);t=processOptions(t);if(c){const r=i.resolve(e);return n.mkdirSync(r,{mode:t.mode,recursive:true})}const make=e=>{try{n.mkdirSync(e,t.mode)}catch(t){if(t.code==="EPERM"){throw t}if(t.code==="ENOENT"){if(i.dirname(e)===e){throw permissionError(e)}if(t.message.includes("null bytes")){throw t}make(i.dirname(e));return make(e)}try{if(!n.statSync(e).isDirectory()){throw new Error("The path is not a directory")}}catch{throw t}}};return make(i.resolve(e))}},665:(e,t,r)=>{"use strict";e.exports={moveSync:r(445)}},445:(e,t,r)=>{"use strict";const n=r(758);const i=r(17);const o=r(135).copySync;const c=r(357).removeSync;const s=r(605).mkdirpSync;const a=r(901);function moveSync(e,t,r){r=r||{};const n=r.overwrite||r.clobber||false;const{srcStat:o}=a.checkPathsSync(e,t,"move");a.checkParentPathsSync(e,o,t,"move");s(i.dirname(t));return doRename(e,t,n)}function doRename(e,t,r){if(r){c(t);return rename(e,t,r)}if(n.existsSync(t))throw new Error("dest already exists.");return rename(e,t,r)}function rename(e,t,r){try{n.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return moveAcrossDevice(e,t,r)}}function moveAcrossDevice(e,t,r){const n={overwrite:r,errorOnExist:true};o(e,t,n);return c(e)}e.exports=moveSync},497:(e,t,r)=>{"use strict";const n=r(46).fromCallback;e.exports={move:n(r(231))}},231:(e,t,r)=>{"use strict";const n=r(758);const i=r(17);const o=r(335).copy;const c=r(357).remove;const s=r(605).mkdirp;const a=r(835).pathExists;const u=r(901);function move(e,t,r,n){if(typeof r==="function"){n=r;r={}}const o=r.overwrite||r.clobber||false;u.checkPaths(e,t,"move",((r,c)=>{if(r)return n(r);const{srcStat:a}=c;u.checkParentPaths(e,a,t,"move",(r=>{if(r)return n(r);s(i.dirname(t),(r=>{if(r)return n(r);return doRename(e,t,o,n)}))}))}))}function doRename(e,t,r,n){if(r){return c(t,(i=>{if(i)return n(i);return rename(e,t,r,n)}))}a(t,((i,o)=>{if(i)return n(i);if(o)return n(new Error("dest already exists."));return rename(e,t,r,n)}))}function rename(e,t,r,i){n.rename(e,t,(n=>{if(!n)return i();if(n.code!=="EXDEV")return i(n);return moveAcrossDevice(e,t,r,i)}))}function moveAcrossDevice(e,t,r,n){const i={overwrite:r,errorOnExist:true};o(e,t,i,(t=>{if(t)return n(t);return c(e,n)}))}e.exports=move},570:(e,t,r)=>{"use strict";const n=r(46).fromCallback;const i=r(758);const o=r(17);const c=r(605);const s=r(835).pathExists;function outputFile(e,t,r,n){if(typeof r==="function"){n=r;r="utf8"}const a=o.dirname(e);s(a,((o,s)=>{if(o)return n(o);if(s)return i.writeFile(e,t,r,n);c.mkdirs(a,(o=>{if(o)return n(o);i.writeFile(e,t,r,n)}))}))}function outputFileSync(e,...t){const r=o.dirname(e);if(i.existsSync(r)){return i.writeFileSync(e,...t)}c.mkdirsSync(r);i.writeFileSync(e,...t)}e.exports={outputFile:n(outputFile),outputFileSync:outputFileSync}},835:(e,t,r)=>{"use strict";const n=r(46).fromPromise;const i=r(176);function pathExists(e){return i.access(e).then((()=>true)).catch((()=>false))}e.exports={pathExists:n(pathExists),pathExistsSync:i.existsSync}},357:(e,t,r)=>{"use strict";const n=r(46).fromCallback;const i=r(761);e.exports={remove:n(i),removeSync:i.sync}},761:(e,t,r)=>{"use strict";const n=r(758);const i=r(17);const o=r(491);const c=process.platform==="win32";function defaults(e){const t=["unlink","chmod","stat","lstat","rmdir","readdir"];t.forEach((t=>{e[t]=e[t]||n[t];t=t+"Sync";e[t]=e[t]||n[t]}));e.maxBusyTries=e.maxBusyTries||3}function rimraf(e,t,r){let n=0;if(typeof t==="function"){r=t;t={}}o(e,"rimraf: missing path");o.strictEqual(typeof e,"string","rimraf: path should be a string");o.strictEqual(typeof r,"function","rimraf: callback function required");o(t,"rimraf: invalid options argument provided");o.strictEqual(typeof t,"object","rimraf: options should be object");defaults(t);rimraf_(e,t,(function CB(i){if(i){if((i.code==="EBUSY"||i.code==="ENOTEMPTY"||i.code==="EPERM")&&n<t.maxBusyTries){n++;const r=n*100;return setTimeout((()=>rimraf_(e,t,CB)),r)}if(i.code==="ENOENT")i=null}r(i)}))}function rimraf_(e,t,r){o(e);o(t);o(typeof r==="function");t.lstat(e,((n,i)=>{if(n&&n.code==="ENOENT"){return r(null)}if(n&&n.code==="EPERM"&&c){return fixWinEPERM(e,t,n,r)}if(i&&i.isDirectory()){return rmdir(e,t,n,r)}t.unlink(e,(n=>{if(n){if(n.code==="ENOENT"){return r(null)}if(n.code==="EPERM"){return c?fixWinEPERM(e,t,n,r):rmdir(e,t,n,r)}if(n.code==="EISDIR"){return rmdir(e,t,n,r)}}return r(n)}))}))}function fixWinEPERM(e,t,r,n){o(e);o(t);o(typeof n==="function");t.chmod(e,438,(i=>{if(i){n(i.code==="ENOENT"?null:r)}else{t.stat(e,((i,o)=>{if(i){n(i.code==="ENOENT"?null:r)}else if(o.isDirectory()){rmdir(e,t,r,n)}else{t.unlink(e,n)}}))}}))}function fixWinEPERMSync(e,t,r){let n;o(e);o(t);try{t.chmodSync(e,438)}catch(e){if(e.code==="ENOENT"){return}else{throw r}}try{n=t.statSync(e)}catch(e){if(e.code==="ENOENT"){return}else{throw r}}if(n.isDirectory()){rmdirSync(e,t,r)}else{t.unlinkSync(e)}}function rmdir(e,t,r,n){o(e);o(t);o(typeof n==="function");t.rmdir(e,(i=>{if(i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")){rmkids(e,t,n)}else if(i&&i.code==="ENOTDIR"){n(r)}else{n(i)}}))}function rmkids(e,t,r){o(e);o(t);o(typeof r==="function");t.readdir(e,((n,o)=>{if(n)return r(n);let c=o.length;let s;if(c===0)return t.rmdir(e,r);o.forEach((n=>{rimraf(i.join(e,n),t,(n=>{if(s){return}if(n)return r(s=n);if(--c===0){t.rmdir(e,r)}}))}))}))}function rimrafSync(e,t){let r;t=t||{};defaults(t);o(e,"rimraf: missing path");o.strictEqual(typeof e,"string","rimraf: path should be a string");o(t,"rimraf: missing options");o.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(r){if(r.code==="ENOENT"){return}if(r.code==="EPERM"&&c){fixWinEPERMSync(e,t,r)}}try{if(r&&r.isDirectory()){rmdirSync(e,t,null)}else{t.unlinkSync(e)}}catch(r){if(r.code==="ENOENT"){return}else if(r.code==="EPERM"){return c?fixWinEPERMSync(e,t,r):rmdirSync(e,t,r)}else if(r.code!=="EISDIR"){throw r}rmdirSync(e,t,r)}}function rmdirSync(e,t,r){o(e);o(t);try{t.rmdirSync(e)}catch(n){if(n.code==="ENOTDIR"){throw r}else if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM"){rmkidsSync(e,t)}else if(n.code!=="ENOENT"){throw n}}}function rmkidsSync(e,t){o(e);o(t);t.readdirSync(e).forEach((r=>rimrafSync(i.join(e,r),t)));if(c){const r=Date.now();do{try{const r=t.rmdirSync(e,t);return r}catch{}}while(Date.now()-r<500)}else{const r=t.rmdirSync(e,t);return r}}e.exports=rimraf;rimraf.sync=rimrafSync},901:(e,t,r)=>{"use strict";const n=r(176);const i=r(17);const o=r(837);const c=r(995);const s=c("10.5.0");const stat=e=>s?n.stat(e,{bigint:true}):n.stat(e);const statSync=e=>s?n.statSync(e,{bigint:true}):n.statSync(e);function getStats(e,t){return Promise.all([stat(e),stat(t).catch((e=>{if(e.code==="ENOENT")return null;throw e}))]).then((([e,t])=>({srcStat:e,destStat:t})))}function getStatsSync(e,t){let r;const n=statSync(e);try{r=statSync(t)}catch(e){if(e.code==="ENOENT")return{srcStat:n,destStat:null};throw e}return{srcStat:n,destStat:r}}function checkPaths(e,t,r,n){o.callbackify(getStats)(e,t,((i,o)=>{if(i)return n(i);const{srcStat:c,destStat:s}=o;if(s&&areIdentical(c,s)){return n(new Error("Source and destination must not be the same."))}if(c.isDirectory()&&isSrcSubdir(e,t)){return n(new Error(errMsg(e,t,r)))}return n(null,{srcStat:c,destStat:s})}))}function checkPathsSync(e,t,r){const{srcStat:n,destStat:i}=getStatsSync(e,t);if(i&&areIdentical(n,i)){throw new Error("Source and destination must not be the same.")}if(n.isDirectory()&&isSrcSubdir(e,t)){throw new Error(errMsg(e,t,r))}return{srcStat:n,destStat:i}}function checkParentPaths(e,t,r,o,c){const a=i.resolve(i.dirname(e));const u=i.resolve(i.dirname(r));if(u===a||u===i.parse(u).root)return c();const callback=(n,i)=>{if(n){if(n.code==="ENOENT")return c();return c(n)}if(areIdentical(t,i)){return c(new Error(errMsg(e,r,o)))}return checkParentPaths(e,t,u,o,c)};if(s)n.stat(u,{bigint:true},callback);else n.stat(u,callback)}function checkParentPathsSync(e,t,r,n){const o=i.resolve(i.dirname(e));const c=i.resolve(i.dirname(r));if(c===o||c===i.parse(c).root)return;let s;try{s=statSync(c)}catch(e){if(e.code==="ENOENT")return;throw e}if(areIdentical(t,s)){throw new Error(errMsg(e,r,n))}return checkParentPathsSync(e,t,c,n)}function areIdentical(e,t){if(t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev){if(s||t.ino<Number.MAX_SAFE_INTEGER){return true}if(t.size===e.size&&t.mode===e.mode&&t.nlink===e.nlink&&t.atimeMs===e.atimeMs&&t.mtimeMs===e.mtimeMs&&t.ctimeMs===e.ctimeMs&&t.birthtimeMs===e.birthtimeMs){return true}}return false}function isSrcSubdir(e,t){const r=i.resolve(e).split(i.sep).filter((e=>e));const n=i.resolve(t).split(i.sep).filter((e=>e));return r.reduce(((e,t,r)=>e&&n[r]===t),true)}function errMsg(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}e.exports={checkPaths:checkPaths,checkPathsSync:checkPathsSync,checkParentPaths:checkParentPaths,checkParentPathsSync:checkParentPathsSync,isSrcSubdir:isSrcSubdir}},548:(e,t,r)=>{"use strict";const n=r(758);function utimesMillis(e,t,r,i){n.open(e,"r+",((e,o)=>{if(e)return i(e);n.futimes(o,t,r,(e=>{n.close(o,(t=>{if(i)i(e||t)}))}))}))}function utimesMillisSync(e,t,r){const i=n.openSync(e,"r+");n.futimesSync(i,t,r);return n.closeSync(i)}e.exports={utimesMillis:utimesMillis,utimesMillisSync:utimesMillisSync}},356:e=>{"use strict";e.exports=clone;var t=Object.getPrototypeOf||function(e){return e.__proto__};function clone(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var r={__proto__:t(e)};else var r=Object.create(null);Object.getOwnPropertyNames(e).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))}));return r}},758:(e,t,r)=>{var n=r(147);var i=r(263);var o=r(86);var c=r(356);var s=r(837);var a;var u;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){a=Symbol.for("graceful-fs.queue");u=Symbol.for("graceful-fs.previous")}else{a="___graceful-fs.queue";u="___graceful-fs.previous"}function noop(){}function publishQueue(e,t){Object.defineProperty(e,a,{get:function(){return t}})}var f=noop;if(s.debuglog)f=s.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))f=function(){var e=s.format.apply(s,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: ");console.error(e)};if(!n[a]){var l=global[a]||[];publishQueue(n,l);n.close=function(e){function close(t,r){return e.call(n,t,(function(e){if(!e){resetQueue()}if(typeof r==="function")r.apply(this,arguments)}))}Object.defineProperty(close,u,{value:e});return close}(n.close);n.closeSync=function(e){function closeSync(t){e.apply(n,arguments);resetQueue()}Object.defineProperty(closeSync,u,{value:e});return closeSync}(n.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",(function(){f(n[a]);r(491).equal(n[a].length,0)}))}}if(!global[a]){publishQueue(global,n[a])}e.exports=patch(c(n));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!n.__patched){e.exports=patch(n);n.__patched=true}function patch(e){i(e);e.gracefulify=patch;e.createReadStream=createReadStream;e.createWriteStream=createWriteStream;var t=e.readFile;e.readFile=readFile;function readFile(e,r,n){if(typeof r==="function")n=r,r=null;return go$readFile(e,r,n);function go$readFile(e,r,n,i){return t(e,r,(function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$readFile,[e,r,n],t,i||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}}))}}var r=e.writeFile;e.writeFile=writeFile;function writeFile(e,t,n,i){if(typeof n==="function")i=n,n=null;return go$writeFile(e,t,n,i);function go$writeFile(e,t,n,i,o){return r(e,t,n,(function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$writeFile,[e,t,n,i],r,o||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}var n=e.appendFile;if(n)e.appendFile=appendFile;function appendFile(e,t,r,i){if(typeof r==="function")i=r,r=null;return go$appendFile(e,t,r,i);function go$appendFile(e,t,r,i,o){return n(e,t,r,(function(n){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$appendFile,[e,t,r,i],n,o||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}}))}}var c=e.copyFile;if(c)e.copyFile=copyFile;function copyFile(e,t,r,n){if(typeof r==="function"){n=r;r=0}return go$copyFile(e,t,r,n);function go$copyFile(e,t,r,n,i){return c(e,t,r,(function(o){if(o&&(o.code==="EMFILE"||o.code==="ENFILE"))enqueue([go$copyFile,[e,t,r,n],o,i||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}}))}}var s=e.readdir;e.readdir=readdir;var a=/^v[0-5]\./;function readdir(e,t,r){if(typeof t==="function")r=t,t=null;var n=a.test(process.version)?function go$readdir(e,t,r,n){return s(e,fs$readdirCallback(e,t,r,n))}:function go$readdir(e,t,r,n){return s(e,t,fs$readdirCallback(e,t,r,n))};return n(e,t,r);function fs$readdirCallback(e,t,r,i){return function(o,c){if(o&&(o.code==="EMFILE"||o.code==="ENFILE"))enqueue([n,[e,t,r],o,i||Date.now(),Date.now()]);else{if(c&&c.sort)c.sort();if(typeof r==="function")r.call(this,o,c)}}}}if(process.version.substr(0,4)==="v0.8"){var u=o(e);ReadStream=u.ReadStream;WriteStream=u.WriteStream}var f=e.ReadStream;if(f){ReadStream.prototype=Object.create(f.prototype);ReadStream.prototype.open=ReadStream$open}var l=e.WriteStream;if(l){WriteStream.prototype=Object.create(l.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(e,"ReadStream",{get:function(){return ReadStream},set:function(e){ReadStream=e},enumerable:true,configurable:true});Object.defineProperty(e,"WriteStream",{get:function(){return WriteStream},set:function(e){WriteStream=e},enumerable:true,configurable:true});var y=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return y},set:function(e){y=e},enumerable:true,configurable:true});var d=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return d},set:function(e){d=e},enumerable:true,configurable:true});function ReadStream(e,t){if(this instanceof ReadStream)return f.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,r){if(t){if(e.autoClose)e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r);e.read()}}))}function WriteStream(e,t){if(this instanceof WriteStream)return l.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,r){if(t){e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r)}}))}function createReadStream(t,r){return new e.ReadStream(t,r)}function createWriteStream(t,r){return new e.WriteStream(t,r)}var m=e.open;e.open=open;function open(e,t,r,n){if(typeof r==="function")n=r,r=null;return go$open(e,t,r,n);function go$open(e,t,r,n,i){return m(e,t,r,(function(o,c){if(o&&(o.code==="EMFILE"||o.code==="ENFILE"))enqueue([go$open,[e,t,r,n],o,i||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}}))}}return e}function enqueue(e){f("ENQUEUE",e[0].name,e[1]);n[a].push(e);retry()}var y;function resetQueue(){var e=Date.now();for(var t=0;t<n[a].length;++t){if(n[a][t].length>2){n[a][t][3]=e;n[a][t][4]=e}}retry()}function retry(){clearTimeout(y);y=undefined;if(n[a].length===0)return;var e=n[a].shift();var t=e[0];var r=e[1];var i=e[2];var o=e[3];var c=e[4];if(o===undefined){f("RETRY",t.name,r);t.apply(null,r)}else if(Date.now()-o>=6e4){f("TIMEOUT",t.name,r);var s=r.pop();if(typeof s==="function")s.call(null,i)}else{var u=Date.now()-c;var l=Math.max(c-o,1);var d=Math.min(l*1.2,100);if(u>=d){f("RETRY",t.name,r);t.apply(null,r.concat([o]))}else{n[a].push(e)}}if(y===undefined){y=setTimeout(retry,0)}}},86:(e,t,r)=>{var n=r(781).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(t,r){if(!(this instanceof ReadStream))return new ReadStream(t,r);n.call(this);var i=this;this.path=t;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;r=r||{};var o=Object.keys(r);for(var c=0,s=o.length;c<s;c++){var a=o[c];this[a]=r[a]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.end===undefined){this.end=Infinity}else if("number"!==typeof this.end){throw TypeError("end must be a Number")}if(this.start>this.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick((function(){i._read()}));return}e.open(this.path,this.flags,this.mode,(function(e,t){if(e){i.emit("error",e);i.readable=false;return}i.fd=t;i.emit("open",t);i._read()}))}function WriteStream(t,r){if(!(this instanceof WriteStream))return new WriteStream(t,r);n.call(this);this.path=t;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;r=r||{};var i=Object.keys(r);for(var o=0,c=i.length;o<c;o++){var s=i[o];this[s]=r[s]}if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.start<0){throw new Error("start must be >= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=e.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},263:(e,t,r)=>{var n=r(57);var i=process.cwd;var o=null;var c=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!o)o=i.call(process);return o};try{process.cwd()}catch(e){}if(typeof process.chdir==="function"){var s=process.chdir;process.chdir=function(e){o=null;s.call(process,e)};if(Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,s)}e.exports=patch;function patch(e){if(n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(e)}if(!e.lutimes){patchLutimes(e)}e.chown=chownFix(e.chown);e.fchown=chownFix(e.fchown);e.lchown=chownFix(e.lchown);e.chmod=chmodFix(e.chmod);e.fchmod=chmodFix(e.fchmod);e.lchmod=chmodFix(e.lchmod);e.chownSync=chownFixSync(e.chownSync);e.fchownSync=chownFixSync(e.fchownSync);e.lchownSync=chownFixSync(e.lchownSync);e.chmodSync=chmodFixSync(e.chmodSync);e.fchmodSync=chmodFixSync(e.fchmodSync);e.lchmodSync=chmodFixSync(e.lchmodSync);e.stat=statFix(e.stat);e.fstat=statFix(e.fstat);e.lstat=statFix(e.lstat);e.statSync=statFixSync(e.statSync);e.fstatSync=statFixSync(e.fstatSync);e.lstatSync=statFixSync(e.lstatSync);if(e.chmod&&!e.lchmod){e.lchmod=function(e,t,r){if(r)process.nextTick(r)};e.lchmodSync=function(){}}if(e.chown&&!e.lchown){e.lchown=function(e,t,r,n){if(n)process.nextTick(n)};e.lchownSync=function(){}}if(c==="win32"){e.rename=typeof e.rename!=="function"?e.rename:function(t){function rename(r,n,i){var o=Date.now();var c=0;t(r,n,(function CB(s){if(s&&(s.code==="EACCES"||s.code==="EPERM"||s.code==="EBUSY")&&Date.now()-o<6e4){setTimeout((function(){e.stat(n,(function(e,o){if(e&&e.code==="ENOENT")t(r,n,CB);else i(s)}))}),c);if(c<100)c+=10;return}if(i)i(s)}))}if(Object.setPrototypeOf)Object.setPrototypeOf(rename,t);return rename}(e.rename)}e.read=typeof e.read!=="function"?e.read:function(t){function read(r,n,i,o,c,s){var a;if(s&&typeof s==="function"){var u=0;a=function(f,l,y){if(f&&f.code==="EAGAIN"&&u<10){u++;return t.call(e,r,n,i,o,c,a)}s.apply(this,arguments)}}return t.call(e,r,n,i,o,c,a)}if(Object.setPrototypeOf)Object.setPrototypeOf(read,t);return read}(e.read);e.readSync=typeof e.readSync!=="function"?e.readSync:function(t){return function(r,n,i,o,c){var s=0;while(true){try{return t.call(e,r,n,i,o,c)}catch(e){if(e.code==="EAGAIN"&&s<10){s++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(t,r,i){e.open(t,n.O_WRONLY|n.O_SYMLINK,r,(function(t,n){if(t){if(i)i(t);return}e.fchmod(n,r,(function(t){e.close(n,(function(e){if(i)i(t||e)}))}))}))};e.lchmodSync=function(t,r){var i=e.openSync(t,n.O_WRONLY|n.O_SYMLINK,r);var o=true;var c;try{c=e.fchmodSync(i,r);o=false}finally{if(o){try{e.closeSync(i)}catch(e){}}else{e.closeSync(i)}}return c}}function patchLutimes(e){if(n.hasOwnProperty("O_SYMLINK")&&e.futimes){e.lutimes=function(t,r,i,o){e.open(t,n.O_SYMLINK,(function(t,n){if(t){if(o)o(t);return}e.futimes(n,r,i,(function(t){e.close(n,(function(e){if(o)o(t||e)}))}))}))};e.lutimesSync=function(t,r,i){var o=e.openSync(t,n.O_SYMLINK);var c;var s=true;try{c=e.futimesSync(o,r,i);s=false}finally{if(s){try{e.closeSync(o)}catch(e){}}else{e.closeSync(o)}}return c}}else if(e.futimes){e.lutimes=function(e,t,r,n){if(n)process.nextTick(n)};e.lutimesSync=function(){}}}function chmodFix(t){if(!t)return t;return function(r,n,i){return t.call(e,r,n,(function(e){if(chownErOk(e))e=null;if(i)i.apply(this,arguments)}))}}function chmodFixSync(t){if(!t)return t;return function(r,n){try{return t.call(e,r,n)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(t){if(!t)return t;return function(r,n,i,o){return t.call(e,r,n,i,(function(e){if(chownErOk(e))e=null;if(o)o.apply(this,arguments)}))}}function chownFixSync(t){if(!t)return t;return function(r,n,i){try{return t.call(e,r,n,i)}catch(e){if(!chownErOk(e))throw e}}}function statFix(t){if(!t)return t;return function(r,n,i){if(typeof n==="function"){i=n;n=null}function callback(e,t){if(t){if(t.uid<0)t.uid+=4294967296;if(t.gid<0)t.gid+=4294967296}if(i)i.apply(this,arguments)}return n?t.call(e,r,n,callback):t.call(e,r,callback)}}function statFixSync(t){if(!t)return t;return function(r,n){var i=n?t.call(e,r,n):t.call(e,r);if(i){if(i.uid<0)i.uid+=4294967296;if(i.gid<0)i.gid+=4294967296}return i}}function chownErOk(e){if(!e)return true;if(e.code==="ENOSYS")return true;var t=!process.getuid||process.getuid()!==0;if(t){if(e.code==="EINVAL"||e.code==="EPERM")return true}return false}}},160:(e,t,r)=>{let n;try{n=r(758)}catch(e){n=r(147)}const i=r(46);const{stringify:o,stripBom:c}=r(902);async function _readFile(e,t={}){if(typeof t==="string"){t={encoding:t}}const r=t.fs||n;const o="throws"in t?t.throws:true;let s=await i.fromCallback(r.readFile)(e,t);s=c(s);let a;try{a=JSON.parse(s,t?t.reviver:null)}catch(t){if(o){t.message=`${e}: ${t.message}`;throw t}else{return null}}return a}const s=i.fromPromise(_readFile);function readFileSync(e,t={}){if(typeof t==="string"){t={encoding:t}}const r=t.fs||n;const i="throws"in t?t.throws:true;try{let n=r.readFileSync(e,t);n=c(n);return JSON.parse(n,t.reviver)}catch(t){if(i){t.message=`${e}: ${t.message}`;throw t}else{return null}}}async function _writeFile(e,t,r={}){const c=r.fs||n;const s=o(t,r);await i.fromCallback(c.writeFile)(e,s,r)}const a=i.fromPromise(_writeFile);function writeFileSync(e,t,r={}){const i=r.fs||n;const c=o(t,r);return i.writeFileSync(e,c,r)}const u={readFile:s,readFileSync:readFileSync,writeFile:a,writeFileSync:writeFileSync};e.exports=u},902:e=>{function stringify(e,{EOL:t="\n",finalEOL:r=true,replacer:n=null,spaces:i}={}){const o=r?t:"";const c=JSON.stringify(e,n,i);return c.replace(/\n/g,t)+o}function stripBom(e){if(Buffer.isBuffer(e))e=e.toString("utf8");return e.replace(/^\uFEFF/,"")}e.exports={stringify:stringify,stripBom:stripBom}},46:(e,t)=>{"use strict";t.fromCallback=function(e){return Object.defineProperty((function(...t){if(typeof t[t.length-1]==="function")e.apply(this,t);else{return new Promise(((r,n)=>{t.push(((e,t)=>e!=null?n(e):r(t)));e.apply(this,t)}))}}),"name",{value:e.name})};t.fromPromise=function(e){return Object.defineProperty((function(...t){const r=t[t.length-1];if(typeof r!=="function")return e.apply(this,t);else{t.pop();e.apply(this,t).then((e=>r(null,e)),r)}}),"name",{value:e.name})}},491:e=>{"use strict";e.exports=require("assert")},57:e=>{"use strict";e.exports=require("constants")},147:e=>{"use strict";e.exports=require("fs")},17:e=>{"use strict";e.exports=require("path")},781:e=>{"use strict";e.exports=require("stream")},837:e=>{"use strict";e.exports=require("util")}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var i=t[r]={exports:{}};var o=true;try{e[r](i,i.exports,__nccwpck_require__);o=false}finally{if(o)delete t[r]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(630);module.exports=r})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"fs-extra","version":"9.1.0","description":"fs-extra contains methods that aren't included in the vanilla Node.js fs package. Such as recursive mkdir, copy, and remove.","engines":{"node":">=10"},"homepage":"https://github.com/jprichardson/node-fs-extra","repository":{"type":"git","url":"https://github.com/jprichardson/node-fs-extra"},"keywords":["fs","file","file system","copy","directory","extra","mkdirp","mkdir","mkdirs","recursive","json","read","write","extra","delete","remove","touch","create","text","output","move","promise"],"author":"JP Richardson <jprichardson@gmail.com>","license":"MIT","dependencies":{"at-least-node":"^1.0.0","graceful-fs":"^4.2.0","jsonfile":"^6.0.1","universalify":"^2.0.0"},"devDependencies":{"coveralls":"^3.0.0","klaw":"^2.1.1","klaw-sync":"^3.0.2","minimist":"^1.1.1","mocha":"^5.0.5","nyc":"^15.0.0","proxyquire":"^2.0.1","read-dir-files":"^0.1.1","standard":"^14.1.0"},"main":"./lib/index.js","files":["lib/","!lib/**/__tests__/"],"scripts":{"full-ci":"npm run lint && npm run coverage","coverage":"nyc -r lcovonly npm run unit","coveralls":"coveralls < coverage/lcov.info","lint":"standard","test-find":"find ./lib/**/__tests__ -name *.test.js | xargs mocha","test":"npm run lint && npm run unit","unit":"node test.js"},"_lastModified":"2026-04-
|
|
1
|
+
{"name":"fs-extra","version":"9.1.0","description":"fs-extra contains methods that aren't included in the vanilla Node.js fs package. Such as recursive mkdir, copy, and remove.","engines":{"node":">=10"},"homepage":"https://github.com/jprichardson/node-fs-extra","repository":{"type":"git","url":"https://github.com/jprichardson/node-fs-extra"},"keywords":["fs","file","file system","copy","directory","extra","mkdirp","mkdir","mkdirs","recursive","json","read","write","extra","delete","remove","touch","create","text","output","move","promise"],"author":"JP Richardson <jprichardson@gmail.com>","license":"MIT","dependencies":{"at-least-node":"^1.0.0","graceful-fs":"^4.2.0","jsonfile":"^6.0.1","universalify":"^2.0.0"},"devDependencies":{"coveralls":"^3.0.0","klaw":"^2.1.1","klaw-sync":"^3.0.2","minimist":"^1.1.1","mocha":"^5.0.5","nyc":"^15.0.0","proxyquire":"^2.0.1","read-dir-files":"^0.1.1","standard":"^14.1.0"},"main":"./lib/index.js","files":["lib/","!lib/**/__tests__/"],"scripts":{"full-ci":"npm run lint && npm run coverage","coverage":"nyc -r lcovonly npm run unit","coveralls":"coveralls < coverage/lcov.info","lint":"standard","test-find":"find ./lib/**/__tests__ -name *.test.js | xargs mocha","test":"npm run lint && npm run unit","unit":"node test.js"},"_lastModified":"2026-04-24T10:36:53.322Z"}
|