@flipdish/portal-library 7.6.0 → 7.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/atoms/Avatar/index.cjs.js +1 -1
- package/dist/components/atoms/Avatar/index.cjs.js.map +1 -1
- package/dist/components/atoms/Avatar/index.d.ts +2 -0
- package/dist/components/atoms/Avatar/index.js +1 -1
- package/dist/components/atoms/Avatar/index.js.map +1 -1
- package/dist/components/atoms/Button/buttonThemeOverrides.cjs.js +1 -1
- package/dist/components/atoms/Button/buttonThemeOverrides.cjs.js.map +1 -1
- package/dist/components/atoms/Button/buttonThemeOverrides.js +1 -1
- package/dist/components/atoms/Button/buttonThemeOverrides.js.map +1 -1
- package/dist/components/atoms/Button/index.cjs.js +1 -1
- package/dist/components/atoms/Button/index.cjs.js.map +1 -1
- package/dist/components/atoms/Button/index.d.ts +1 -1
- package/dist/components/atoms/Button/index.js +1 -1
- package/dist/components/atoms/Button/index.js.map +1 -1
- package/dist/components/atoms/Checkbox/index.cjs.js +1 -1
- package/dist/components/atoms/Checkbox/index.cjs.js.map +1 -1
- package/dist/components/atoms/Checkbox/index.js +1 -1
- package/dist/components/atoms/Checkbox/index.js.map +1 -1
- package/dist/components/atoms/MenuItem/index.cjs.js +1 -1
- package/dist/components/atoms/MenuItem/index.cjs.js.map +1 -1
- package/dist/components/atoms/MenuItem/index.d.ts +45 -13
- package/dist/components/atoms/MenuItem/index.js +1 -1
- package/dist/components/atoms/MenuItem/index.js.map +1 -1
- package/dist/components/molecules/AlertGlobal/index.cjs.js +1 -1
- package/dist/components/molecules/AlertGlobal/index.cjs.js.map +1 -1
- package/dist/components/molecules/AlertGlobal/index.js +1 -1
- package/dist/components/molecules/AlertGlobal/index.js.map +1 -1
- package/dist/components/molecules/CheckboxGroup/index.cjs.js +1 -1
- package/dist/components/molecules/CheckboxGroup/index.cjs.js.map +1 -1
- package/dist/components/molecules/CheckboxGroup/index.d.ts +33 -0
- package/dist/components/molecules/CheckboxGroup/index.js +1 -1
- package/dist/components/molecules/CheckboxGroup/index.js.map +1 -1
- package/dist/components/molecules/DropdownMenu/index.cjs.js +2 -0
- package/dist/components/molecules/DropdownMenu/index.cjs.js.map +1 -0
- package/dist/components/molecules/DropdownMenu/index.d.ts +120 -0
- package/dist/components/molecules/DropdownMenu/index.js +2 -0
- package/dist/components/molecules/DropdownMenu/index.js.map +1 -0
- package/dist/components/organisms/AssetManager/__mocks__/mockAssets.cjs.js +2 -0
- package/dist/components/organisms/AssetManager/__mocks__/mockAssets.cjs.js.map +1 -0
- package/dist/components/organisms/AssetManager/__mocks__/mockAssets.d.ts +21 -0
- package/dist/components/organisms/AssetManager/__mocks__/mockAssets.js +2 -0
- package/dist/components/organisms/AssetManager/__mocks__/mockAssets.js.map +1 -0
- package/dist/components/organisms/AssetManager/hooks/useAssets.cjs.js +2 -0
- package/dist/components/organisms/AssetManager/hooks/useAssets.cjs.js.map +1 -0
- package/dist/components/organisms/AssetManager/hooks/useAssets.d.ts +10 -0
- package/dist/components/organisms/AssetManager/hooks/useAssets.js +2 -0
- package/dist/components/organisms/AssetManager/hooks/useAssets.js.map +1 -0
- package/dist/components/organisms/AssetManager/index.cjs.js +1 -1
- package/dist/components/organisms/AssetManager/index.cjs.js.map +1 -1
- package/dist/components/organisms/AssetManager/index.d.ts +4 -2
- package/dist/components/organisms/AssetManager/index.js +1 -1
- package/dist/components/organisms/AssetManager/index.js.map +1 -1
- package/dist/components/organisms/AssetManager/services/asset.service.cjs.js +2 -0
- package/dist/components/organisms/AssetManager/services/asset.service.cjs.js.map +1 -0
- package/dist/components/organisms/AssetManager/services/asset.service.d.ts +11 -0
- package/dist/components/organisms/AssetManager/services/asset.service.js +2 -0
- package/dist/components/organisms/AssetManager/services/asset.service.js.map +1 -0
- package/dist/mocks/msw/handlers.cjs.js +2 -0
- package/dist/mocks/msw/handlers.cjs.js.map +1 -0
- package/dist/mocks/msw/handlers.d.ts +5 -0
- package/dist/mocks/msw/handlers.js +2 -0
- package/dist/mocks/msw/handlers.js.map +1 -0
- package/dist/mocks/msw/server.cjs.js +2 -0
- package/dist/mocks/msw/server.cjs.js.map +1 -0
- package/dist/mocks/msw/server.d.ts +5 -0
- package/dist/mocks/msw/server.js +2 -0
- package/dist/mocks/msw/server.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/chunk-VYSDLBSS.cjs.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/chunk-VYSDLBSS.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/chunk-VYSDLBSS.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/chunk-VYSDLBSS.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/chunk-Z5TSB3T6.cjs.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/chunk-Z5TSB3T6.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/chunk-Z5TSB3T6.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/chunk-Z5TSB3T6.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.cjs.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.d.d.ts +225 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/BatchInterceptor-cb9a2eee.d.d.ts +25 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/Interceptor-dc0a39b5.d.d.ts +123 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-5UGIB6OX.cjs.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-5UGIB6OX.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-5UGIB6OX.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-5UGIB6OX.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-5V3SIIW2.cjs.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-5V3SIIW2.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-5V3SIIW2.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-5V3SIIW2.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-6HYIRFX2.cjs.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-6HYIRFX2.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-6HYIRFX2.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-6HYIRFX2.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-6YM4PLBI.cjs.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-6YM4PLBI.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-6YM4PLBI.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-6YM4PLBI.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-GKN5RBVR.cjs.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-GKN5RBVR.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-GKN5RBVR.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-GKN5RBVR.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-JXGB54LE.cjs.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-JXGB54LE.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-JXGB54LE.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-JXGB54LE.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-OFW5L5ET.cjs.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-OFW5L5ET.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-OFW5L5ET.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-OFW5L5ET.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-R6T7CL5E.cjs.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-R6T7CL5E.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-R6T7CL5E.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-R6T7CL5E.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-SQ6RHTJR.cjs.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-SQ6RHTJR.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-SQ6RHTJR.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-SQ6RHTJR.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-TX5GBTFY.cjs.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-TX5GBTFY.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-TX5GBTFY.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-TX5GBTFY.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-YWNGXXUQ.cjs.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-YWNGXXUQ.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-YWNGXXUQ.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-YWNGXXUQ.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/index.cjs.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/index.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/index.d.d.ts +26 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/index.js +2 -0
- package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@open-draft_deferred-promise@2.2.0/node_modules/@open-draft/deferred-promise/build/index.cjs.js +2 -0
- package/dist/node_modules/.pnpm/@open-draft_deferred-promise@2.2.0/node_modules/@open-draft/deferred-promise/build/index.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/@open-draft_deferred-promise@2.2.0/node_modules/@open-draft/deferred-promise/build/index.js +2 -0
- package/dist/node_modules/.pnpm/@open-draft_deferred-promise@2.2.0/node_modules/@open-draft/deferred-promise/build/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@open-draft_logger@0.3.0/node_modules/@open-draft/logger/lib/index.cjs.js +2 -0
- package/dist/node_modules/.pnpm/@open-draft_logger@0.3.0/node_modules/@open-draft/logger/lib/index.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/@open-draft_logger@0.3.0/node_modules/@open-draft/logger/lib/index.d.d.ts +52 -0
- package/dist/node_modules/.pnpm/@open-draft_logger@0.3.0/node_modules/@open-draft/logger/lib/index.js +2 -0
- package/dist/node_modules/.pnpm/@open-draft_logger@0.3.0/node_modules/@open-draft/logger/lib/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@open-draft_until@2.1.0/node_modules/@open-draft/until/lib/index.cjs.js +2 -0
- package/dist/node_modules/.pnpm/@open-draft_until@2.1.0/node_modules/@open-draft/until/lib/index.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/@open-draft_until@2.1.0/node_modules/@open-draft/until/lib/index.js +2 -0
- package/dist/node_modules/.pnpm/@open-draft_until@2.1.0/node_modules/@open-draft/until/lib/index.js.map +1 -0
- package/dist/node_modules/.pnpm/headers-polyfill@4.0.3/node_modules/headers-polyfill/lib/index.cjs.js +2 -0
- package/dist/node_modules/.pnpm/headers-polyfill@4.0.3/node_modules/headers-polyfill/lib/index.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/headers-polyfill@4.0.3/node_modules/headers-polyfill/lib/index.js +2 -0
- package/dist/node_modules/.pnpm/headers-polyfill@4.0.3/node_modules/headers-polyfill/lib/index.js.map +1 -0
- package/dist/node_modules/.pnpm/is-node-process@1.2.0/node_modules/is-node-process/lib/index.cjs.js +2 -0
- package/dist/node_modules/.pnpm/is-node-process@1.2.0/node_modules/is-node-process/lib/index.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/is-node-process@1.2.0/node_modules/is-node-process/lib/index.js +2 -0
- package/dist/node_modules/.pnpm/is-node-process@1.2.0/node_modules/is-node-process/lib/index.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/HttpResponse-DC89RDb7.d.d.ts +196 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/HttpResponse.cjs.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/HttpResponse.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/HttpResponse.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/HttpResponse.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/SetupApi.cjs.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/SetupApi.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/SetupApi.d.d.ts +29 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/SetupApi.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/SetupApi.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/handlers/HttpHandler.cjs.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/handlers/HttpHandler.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/handlers/HttpHandler.d.d.ts +60 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/handlers/HttpHandler.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/handlers/HttpHandler.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/handlers/RequestHandler.cjs.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/handlers/RequestHandler.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/handlers/RequestHandler.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/handlers/RequestHandler.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/handlers/WebSocketHandler.d.d.ts +41 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/http.cjs.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/http.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/http.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/http.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/index.cjs.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/index.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/index.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/index.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/isCommonAssetRequest.cjs.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/isCommonAssetRequest.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/isCommonAssetRequest.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/isCommonAssetRequest.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/sharedOptions.d.d.ts +64 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/typeUtils.d.d.ts +8 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/HttpResponse/decorators.cjs.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/HttpResponse/decorators.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/HttpResponse/decorators.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/HttpResponse/decorators.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/cookieStore.cjs.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/cookieStore.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/cookieStore.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/cookieStore.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/executeHandlers.cjs.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/executeHandlers.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/executeHandlers.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/executeHandlers.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/handleRequest.cjs.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/handleRequest.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/handleRequest.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/handleRequest.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/Disposable.cjs.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/Disposable.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/Disposable.d.d.ts +8 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/Disposable.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/Disposable.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/checkGlobals.cjs.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/checkGlobals.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/checkGlobals.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/checkGlobals.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/devUtils.cjs.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/devUtils.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/devUtils.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/devUtils.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/getCallFrame.cjs.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/getCallFrame.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/getCallFrame.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/getCallFrame.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/isHandlerKind.cjs.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/isHandlerKind.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/isHandlerKind.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/isHandlerKind.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/isIterable.cjs.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/isIterable.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/isIterable.d.d.ts +16 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/isIterable.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/isIterable.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/isObject.cjs.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/isObject.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/isObject.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/isObject.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/isStringEqual.cjs.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/isStringEqual.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/isStringEqual.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/isStringEqual.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/jsonParse.cjs.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/jsonParse.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/jsonParse.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/jsonParse.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/mergeRight.cjs.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/mergeRight.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/mergeRight.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/mergeRight.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/pipeEvents.cjs.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/pipeEvents.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/pipeEvents.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/pipeEvents.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/toReadonlyArray.cjs.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/toReadonlyArray.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/toReadonlyArray.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/internal/toReadonlyArray.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.cjs.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/logging/getTimestamp.cjs.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/logging/getTimestamp.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/logging/getTimestamp.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/logging/getTimestamp.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/logging/serializeRequest.cjs.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/logging/serializeRequest.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/logging/serializeRequest.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/logging/serializeRequest.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/logging/serializeResponse.cjs.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/logging/serializeResponse.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/logging/serializeResponse.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/logging/serializeResponse.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/matching/matchRequestUrl.cjs.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/matching/matchRequestUrl.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/matching/matchRequestUrl.d.d.ts +10 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/matching/matchRequestUrl.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/matching/matchRequestUrl.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/matching/normalizePath.cjs.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/matching/normalizePath.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/matching/normalizePath.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/matching/normalizePath.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/request/getRequestCookies.cjs.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/request/getRequestCookies.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/request/getRequestCookies.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/request/getRequestCookies.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/request/onUnhandledRequest.cjs.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/request/onUnhandledRequest.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/request/onUnhandledRequest.d.d.ts +8 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/request/onUnhandledRequest.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/request/onUnhandledRequest.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/request/storeResponseCookies.cjs.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/request/storeResponseCookies.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/request/storeResponseCookies.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/request/storeResponseCookies.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/request/toPublicUrl.cjs.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/request/toPublicUrl.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/request/toPublicUrl.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/request/toPublicUrl.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/url/cleanUrl.cjs.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/url/cleanUrl.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/url/cleanUrl.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/url/cleanUrl.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.cjs.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.cjs.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/ws/handleWebSocketEvent.cjs.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/ws/handleWebSocketEvent.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/ws/handleWebSocketEvent.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/ws/handleWebSocketEvent.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/ws/webSocketInterceptor.cjs.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/ws/webSocketInterceptor.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/ws/webSocketInterceptor.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/core/ws/webSocketInterceptor.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/node/index.cjs.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/node/index.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/node/index.d.d.ts +85 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/node/index.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/node/index.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/shims/cookie.cjs.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/shims/cookie.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/shims/cookie.js +2 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/shims/cookie.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/shims/statuses.cjs.js +12 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/shims/statuses.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/shims/statuses.js +12 -0
- package/dist/node_modules/.pnpm/msw@2.12.3_@types_node@20.19.25_typescript@5.4.5/node_modules/msw/lib/shims/statuses.js.map +1 -0
- package/dist/node_modules/.pnpm/outvariant@1.4.3/node_modules/outvariant/lib/index.cjs.js +2 -0
- package/dist/node_modules/.pnpm/outvariant@1.4.3/node_modules/outvariant/lib/index.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/outvariant@1.4.3/node_modules/outvariant/lib/index.js +2 -0
- package/dist/node_modules/.pnpm/outvariant@1.4.3/node_modules/outvariant/lib/index.js.map +1 -0
- package/dist/node_modules/.pnpm/path-to-regexp@6.3.0/node_modules/path-to-regexp/dist.es2015/index.cjs.js +2 -0
- package/dist/node_modules/.pnpm/path-to-regexp@6.3.0/node_modules/path-to-regexp/dist.es2015/index.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/path-to-regexp@6.3.0/node_modules/path-to-regexp/dist.es2015/index.js +2 -0
- package/dist/node_modules/.pnpm/path-to-regexp@6.3.0/node_modules/path-to-regexp/dist.es2015/index.js.map +1 -0
- package/dist/node_modules/.pnpm/strict-event-emitter@0.5.1/node_modules/strict-event-emitter/lib/index.cjs.js +2 -0
- package/dist/node_modules/.pnpm/strict-event-emitter@0.5.1/node_modules/strict-event-emitter/lib/index.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/strict-event-emitter@0.5.1/node_modules/strict-event-emitter/lib/index.d.d.ts +75 -0
- package/dist/node_modules/.pnpm/strict-event-emitter@0.5.1/node_modules/strict-event-emitter/lib/index.js +2 -0
- package/dist/node_modules/.pnpm/strict-event-emitter@0.5.1/node_modules/strict-event-emitter/lib/index.js.map +1 -0
- package/dist/node_modules/.pnpm/tldts-core@7.0.19/node_modules/tldts-core/dist/es6/src/domain.cjs.js +2 -0
- package/dist/node_modules/.pnpm/tldts-core@7.0.19/node_modules/tldts-core/dist/es6/src/domain.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/tldts-core@7.0.19/node_modules/tldts-core/dist/es6/src/domain.js +2 -0
- package/dist/node_modules/.pnpm/tldts-core@7.0.19/node_modules/tldts-core/dist/es6/src/domain.js.map +1 -0
- package/dist/node_modules/.pnpm/tldts-core@7.0.19/node_modules/tldts-core/dist/es6/src/extract-hostname.cjs.js +2 -0
- package/dist/node_modules/.pnpm/tldts-core@7.0.19/node_modules/tldts-core/dist/es6/src/extract-hostname.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/tldts-core@7.0.19/node_modules/tldts-core/dist/es6/src/extract-hostname.js +2 -0
- package/dist/node_modules/.pnpm/tldts-core@7.0.19/node_modules/tldts-core/dist/es6/src/extract-hostname.js.map +1 -0
- package/dist/node_modules/.pnpm/tldts-core@7.0.19/node_modules/tldts-core/dist/es6/src/factory.cjs.js +2 -0
- package/dist/node_modules/.pnpm/tldts-core@7.0.19/node_modules/tldts-core/dist/es6/src/factory.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/tldts-core@7.0.19/node_modules/tldts-core/dist/es6/src/factory.js +2 -0
- package/dist/node_modules/.pnpm/tldts-core@7.0.19/node_modules/tldts-core/dist/es6/src/factory.js.map +1 -0
- package/dist/node_modules/.pnpm/tldts-core@7.0.19/node_modules/tldts-core/dist/es6/src/is-ip.cjs.js +2 -0
- package/dist/node_modules/.pnpm/tldts-core@7.0.19/node_modules/tldts-core/dist/es6/src/is-ip.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/tldts-core@7.0.19/node_modules/tldts-core/dist/es6/src/is-ip.js +2 -0
- package/dist/node_modules/.pnpm/tldts-core@7.0.19/node_modules/tldts-core/dist/es6/src/is-ip.js.map +1 -0
- package/dist/node_modules/.pnpm/tldts-core@7.0.19/node_modules/tldts-core/dist/es6/src/is-valid.cjs.js +2 -0
- package/dist/node_modules/.pnpm/tldts-core@7.0.19/node_modules/tldts-core/dist/es6/src/is-valid.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/tldts-core@7.0.19/node_modules/tldts-core/dist/es6/src/is-valid.js +2 -0
- package/dist/node_modules/.pnpm/tldts-core@7.0.19/node_modules/tldts-core/dist/es6/src/is-valid.js.map +1 -0
- package/dist/node_modules/.pnpm/tldts-core@7.0.19/node_modules/tldts-core/dist/es6/src/lookup/fast-path.cjs.js +2 -0
- package/dist/node_modules/.pnpm/tldts-core@7.0.19/node_modules/tldts-core/dist/es6/src/lookup/fast-path.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/tldts-core@7.0.19/node_modules/tldts-core/dist/es6/src/lookup/fast-path.js +2 -0
- package/dist/node_modules/.pnpm/tldts-core@7.0.19/node_modules/tldts-core/dist/es6/src/lookup/fast-path.js.map +1 -0
- package/dist/node_modules/.pnpm/tldts-core@7.0.19/node_modules/tldts-core/dist/es6/src/options.cjs.js +2 -0
- package/dist/node_modules/.pnpm/tldts-core@7.0.19/node_modules/tldts-core/dist/es6/src/options.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/tldts-core@7.0.19/node_modules/tldts-core/dist/es6/src/options.js +2 -0
- package/dist/node_modules/.pnpm/tldts-core@7.0.19/node_modules/tldts-core/dist/es6/src/options.js.map +1 -0
- package/dist/node_modules/.pnpm/tldts@7.0.19/node_modules/tldts/dist/es6/index.cjs.js +2 -0
- package/dist/node_modules/.pnpm/tldts@7.0.19/node_modules/tldts/dist/es6/index.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/tldts@7.0.19/node_modules/tldts/dist/es6/index.js +2 -0
- package/dist/node_modules/.pnpm/tldts@7.0.19/node_modules/tldts/dist/es6/index.js.map +1 -0
- package/dist/node_modules/.pnpm/tldts@7.0.19/node_modules/tldts/dist/es6/src/data/trie.cjs.js +2 -0
- package/dist/node_modules/.pnpm/tldts@7.0.19/node_modules/tldts/dist/es6/src/data/trie.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/tldts@7.0.19/node_modules/tldts/dist/es6/src/data/trie.js +2 -0
- package/dist/node_modules/.pnpm/tldts@7.0.19/node_modules/tldts/dist/es6/src/data/trie.js.map +1 -0
- package/dist/node_modules/.pnpm/tldts@7.0.19/node_modules/tldts/dist/es6/src/suffix-trie.cjs.js +2 -0
- package/dist/node_modules/.pnpm/tldts@7.0.19/node_modules/tldts/dist/es6/src/suffix-trie.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/tldts@7.0.19/node_modules/tldts/dist/es6/src/suffix-trie.js +2 -0
- package/dist/node_modules/.pnpm/tldts@7.0.19/node_modules/tldts/dist/es6/src/suffix-trie.js.map +1 -0
- package/dist/node_modules/.pnpm/tough-cookie@6.0.0/node_modules/tough-cookie/dist/index.cjs.js +33 -0
- package/dist/node_modules/.pnpm/tough-cookie@6.0.0/node_modules/tough-cookie/dist/index.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/tough-cookie@6.0.0/node_modules/tough-cookie/dist/index.js +32 -0
- package/dist/node_modules/.pnpm/tough-cookie@6.0.0/node_modules/tough-cookie/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/type-fest@5.2.0/node_modules/type-fest/source/if.d.d.ts +102 -0
- package/dist/node_modules/.pnpm/type-fest@5.2.0/node_modules/type-fest/source/internal/object.d.d.ts +74 -0
- package/dist/node_modules/.pnpm/type-fest@5.2.0/node_modules/type-fest/source/internal/type.d.d.ts +25 -0
- package/dist/node_modules/.pnpm/type-fest@5.2.0/node_modules/type-fest/source/is-any.d.d.ts +31 -0
- package/dist/node_modules/.pnpm/type-fest@5.2.0/node_modules/type-fest/source/is-never.d.d.ts +44 -0
- package/dist/node_modules/.pnpm/type-fest@5.2.0/node_modules/type-fest/source/is-optional-key-of.d.d.ts +51 -0
- package/dist/node_modules/.pnpm/type-fest@5.2.0/node_modules/type-fest/source/merge.d.d.ts +50 -0
- package/dist/node_modules/.pnpm/type-fest@5.2.0/node_modules/type-fest/source/omit-index-signature.d.d.ts +97 -0
- package/dist/node_modules/.pnpm/type-fest@5.2.0/node_modules/type-fest/source/optional-keys-of.d.d.ts +46 -0
- package/dist/node_modules/.pnpm/type-fest@5.2.0/node_modules/type-fest/source/partial-deep.d.d.ts +156 -0
- package/dist/node_modules/.pnpm/type-fest@5.2.0/node_modules/type-fest/source/pick-index-signature.d.d.ts +52 -0
- package/dist/node_modules/.pnpm/type-fest@5.2.0/node_modules/type-fest/source/primitive.d.d.ts +15 -0
- package/dist/node_modules/.pnpm/type-fest@5.2.0/node_modules/type-fest/source/required-keys-of.d.d.ts +32 -0
- package/dist/node_modules/.pnpm/type-fest@5.2.0/node_modules/type-fest/source/simplify.d.d.ts +60 -0
- package/dist/node_modules/.pnpm/until-async@3.0.2/node_modules/until-async/lib/index.cjs.js +2 -0
- package/dist/node_modules/.pnpm/until-async@3.0.2/node_modules/until-async/lib/index.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/until-async@3.0.2/node_modules/until-async/lib/index.js +2 -0
- package/dist/node_modules/.pnpm/until-async@3.0.2/node_modules/until-async/lib/index.js.map +1 -0
- package/dist/themes/flipdishPublicTheme.cjs.js +1 -1
- package/dist/themes/flipdishPublicTheme.cjs.js.map +1 -1
- package/dist/themes/flipdishPublicTheme.js +1 -1
- package/dist/themes/flipdishPublicTheme.js.map +1 -1
- package/dist/themes/overrides/listSubheaderOverrides.cjs.js +2 -0
- package/dist/themes/overrides/listSubheaderOverrides.cjs.js.map +1 -0
- package/dist/themes/overrides/listSubheaderOverrides.d.ts +5 -0
- package/dist/themes/overrides/listSubheaderOverrides.js +2 -0
- package/dist/themes/overrides/listSubheaderOverrides.js.map +1 -0
- package/dist/themes/overrides/menuItemOverrides.cjs.js +1 -1
- package/dist/themes/overrides/menuItemOverrides.cjs.js.map +1 -1
- package/dist/themes/overrides/menuItemOverrides.js +1 -1
- package/dist/themes/overrides/menuItemOverrides.js.map +1 -1
- package/dist/themes/overrides/menuOverrides.cjs.js +1 -1
- package/dist/themes/overrides/menuOverrides.cjs.js.map +1 -1
- package/dist/themes/overrides/menuOverrides.js +1 -1
- package/dist/themes/overrides/menuOverrides.js.map +1 -1
- package/package.json +9 -2
package/dist/node_modules/.pnpm/tldts@7.0.19/node_modules/tldts/dist/es6/src/suffix-trie.cjs.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";require("../../../../../../tldts-core@7.0.19/node_modules/tldts-core/dist/es6/src/options.cjs.js");var i=require("../../../../../../tldts-core@7.0.19/node_modules/tldts-core/dist/es6/src/lookup/fast-path.cjs.js"),e=require("./data/trie.cjs.js");function s(i,e,s,n){let t=null,r=e;for(;void 0!==r&&(0!==(r[0]&n)&&(t={index:s+1,isIcann:1===r[0],isPrivate:2===r[0]}),-1!==s);){const e=r[1];r=Object.prototype.hasOwnProperty.call(e,i[s])?e[i[s]]:e["*"],s-=1}return t}module.exports=function(n,t,r){var l;if(i(n,t,r))return;const o=n.split("."),c=(t.allowPrivateDomains?2:0)|(t.allowIcannDomains?1:0),a=s(o,e.exceptions,o.length-1,c);if(null!==a)return r.isIcann=a.isIcann,r.isPrivate=a.isPrivate,void(r.publicSuffix=o.slice(a.index+1).join("."));const u=s(o,e.rules,o.length-1,c);if(null!==u)return r.isIcann=u.isIcann,r.isPrivate=u.isPrivate,void(r.publicSuffix=o.slice(u.index).join("."));r.isIcann=!1,r.isPrivate=!1,r.publicSuffix=null!==(l=o[o.length-1])&&void 0!==l?l:null};
|
|
2
|
+
//# sourceMappingURL=suffix-trie.cjs.js.map
|
package/dist/node_modules/.pnpm/tldts@7.0.19/node_modules/tldts/dist/es6/src/suffix-trie.cjs.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"suffix-trie.cjs.js","sources":["../../../../../../../../../../../node_modules/.pnpm/tldts@7.0.19/node_modules/tldts/dist/es6/src/suffix-trie.js"],"sourcesContent":["import { fastPathLookup, } from 'tldts-core';\nimport { exceptions, rules } from './data/trie';\n/**\n * Lookup parts of domain in Trie\n */\nfunction lookupInTrie(parts, trie, index, allowedMask) {\n let result = null;\n let node = trie;\n while (node !== undefined) {\n // We have a match!\n if ((node[0] & allowedMask) !== 0) {\n result = {\n index: index + 1,\n isIcann: node[0] === 1 /* RULE_TYPE.ICANN */,\n isPrivate: node[0] === 2 /* RULE_TYPE.PRIVATE */,\n };\n }\n // No more `parts` to look for\n if (index === -1) {\n break;\n }\n const succ = node[1];\n node = Object.prototype.hasOwnProperty.call(succ, parts[index])\n ? succ[parts[index]]\n : succ['*'];\n index -= 1;\n }\n return result;\n}\n/**\n * Check if `hostname` has a valid public suffix in `trie`.\n */\nexport default function suffixLookup(hostname, options, out) {\n var _a;\n if (fastPathLookup(hostname, options, out)) {\n return;\n }\n const hostnameParts = hostname.split('.');\n const allowedMask = (options.allowPrivateDomains ? 2 /* RULE_TYPE.PRIVATE */ : 0) |\n (options.allowIcannDomains ? 1 /* RULE_TYPE.ICANN */ : 0);\n // Look for exceptions\n const exceptionMatch = lookupInTrie(hostnameParts, exceptions, hostnameParts.length - 1, allowedMask);\n if (exceptionMatch !== null) {\n out.isIcann = exceptionMatch.isIcann;\n out.isPrivate = exceptionMatch.isPrivate;\n out.publicSuffix = hostnameParts.slice(exceptionMatch.index + 1).join('.');\n return;\n }\n // Look for a match in rules\n const rulesMatch = lookupInTrie(hostnameParts, rules, hostnameParts.length - 1, allowedMask);\n if (rulesMatch !== null) {\n out.isIcann = rulesMatch.isIcann;\n out.isPrivate = rulesMatch.isPrivate;\n out.publicSuffix = hostnameParts.slice(rulesMatch.index).join('.');\n return;\n }\n // No match found...\n // Prevailing rule is '*' so we consider the top-level domain to be the\n // public suffix of `hostname` (e.g.: 'example.org' => 'org').\n out.isIcann = false;\n out.isPrivate = false;\n out.publicSuffix = (_a = hostnameParts[hostnameParts.length - 1]) !== null && _a !== void 0 ? _a : null;\n}\n//# sourceMappingURL=suffix-trie.js.map"],"names":["lookupInTrie","parts","trie","index","allowedMask","result","node","undefined","isIcann","isPrivate","succ","Object","prototype","hasOwnProperty","call","hostname","options","out","_a","fastPathLookup","hostnameParts","split","allowPrivateDomains","allowIcannDomains","exceptionMatch","exceptions","length","publicSuffix","slice","join","rulesMatch","rules"],"mappings":"kQAKA,SAASA,EAAaC,EAAOC,EAAMC,EAAOC,GACtC,IAAIC,EAAS,KACTC,EAAOJ,EACX,UAAgBK,IAATD,IAE6B,KAA3BA,EAAK,GAAKF,KACXC,EAAS,CACLF,MAAOA,EAAQ,EACfK,QAAqB,IAAZF,EAAK,GACdG,UAAuB,IAAZH,EAAK,MAIV,IAAVH,IAVmB,CAavB,MAAMO,EAAOJ,EAAK,GAClBA,EAAOK,OAAOC,UAAUC,eAAeC,KAAKJ,EAAMT,EAAME,IAClDO,EAAKT,EAAME,IACXO,EAAK,KACXP,GAAS,CACb,CACA,OAAOE,CACX,gBAIe,SAAsBU,EAAUC,EAASC,GACpD,IAAIC,EACJ,GAAIC,EAAeJ,EAAUC,EAASC,GAClC,OAEJ,MAAMG,EAAgBL,EAASM,MAAM,KAC/BjB,GAAeY,EAAQM,oBAAsB,EAA4B,IAC1EN,EAAQO,kBAAoB,EAA0B,GAErDC,EAAiBxB,EAAaoB,EAAeK,EAAAA,WAAYL,EAAcM,OAAS,EAAGtB,GACzF,GAAuB,OAAnBoB,EAIA,OAHAP,EAAIT,QAAUgB,EAAehB,QAC7BS,EAAIR,UAAYe,EAAef,eAC/BQ,EAAIU,aAAeP,EAAcQ,MAAMJ,EAAerB,MAAQ,GAAG0B,KAAK,MAI1E,MAAMC,EAAa9B,EAAaoB,EAAeW,EAAAA,MAAOX,EAAcM,OAAS,EAAGtB,GAChF,GAAmB,OAAf0B,EAIA,OAHAb,EAAIT,QAAUsB,EAAWtB,QACzBS,EAAIR,UAAYqB,EAAWrB,eAC3BQ,EAAIU,aAAeP,EAAcQ,MAAME,EAAW3B,OAAO0B,KAAK,MAMlEZ,EAAIT,SAAU,EACdS,EAAIR,WAAY,EAChBQ,EAAIU,aAAkE,QAAlDT,EAAKE,EAAcA,EAAcM,OAAS,UAAuB,IAAPR,EAAgBA,EAAK,IACvG","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"../../../../../../tldts-core@7.0.19/node_modules/tldts-core/dist/es6/src/options.js";import i from"../../../../../../tldts-core@7.0.19/node_modules/tldts-core/dist/es6/src/lookup/fast-path.js";import{exceptions as t,rules as n}from"./data/trie.js";function s(i,t,n,s){let o=null,e=t;for(;void 0!==e&&(0!==(e[0]&s)&&(o={index:n+1,isIcann:1===e[0],isPrivate:2===e[0]}),-1!==n);){const t=e[1];e=Object.prototype.hasOwnProperty.call(t,i[n])?t[i[n]]:t["*"],n-=1}return o}function o(o,e,l){var r;if(i(o,e,l))return;const a=o.split("."),c=(e.allowPrivateDomains?2:0)|(e.allowIcannDomains?1:0),u=s(a,t,a.length-1,c);if(null!==u)return l.isIcann=u.isIcann,l.isPrivate=u.isPrivate,void(l.publicSuffix=a.slice(u.index+1).join("."));const d=s(a,n,a.length-1,c);if(null!==d)return l.isIcann=d.isIcann,l.isPrivate=d.isPrivate,void(l.publicSuffix=a.slice(d.index).join("."));l.isIcann=!1,l.isPrivate=!1,l.publicSuffix=null!==(r=a[a.length-1])&&void 0!==r?r:null}export{o as default};
|
|
2
|
+
//# sourceMappingURL=suffix-trie.js.map
|
package/dist/node_modules/.pnpm/tldts@7.0.19/node_modules/tldts/dist/es6/src/suffix-trie.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"suffix-trie.js","sources":["../../../../../../../../../../../node_modules/.pnpm/tldts@7.0.19/node_modules/tldts/dist/es6/src/suffix-trie.js"],"sourcesContent":["import { fastPathLookup, } from 'tldts-core';\nimport { exceptions, rules } from './data/trie';\n/**\n * Lookup parts of domain in Trie\n */\nfunction lookupInTrie(parts, trie, index, allowedMask) {\n let result = null;\n let node = trie;\n while (node !== undefined) {\n // We have a match!\n if ((node[0] & allowedMask) !== 0) {\n result = {\n index: index + 1,\n isIcann: node[0] === 1 /* RULE_TYPE.ICANN */,\n isPrivate: node[0] === 2 /* RULE_TYPE.PRIVATE */,\n };\n }\n // No more `parts` to look for\n if (index === -1) {\n break;\n }\n const succ = node[1];\n node = Object.prototype.hasOwnProperty.call(succ, parts[index])\n ? succ[parts[index]]\n : succ['*'];\n index -= 1;\n }\n return result;\n}\n/**\n * Check if `hostname` has a valid public suffix in `trie`.\n */\nexport default function suffixLookup(hostname, options, out) {\n var _a;\n if (fastPathLookup(hostname, options, out)) {\n return;\n }\n const hostnameParts = hostname.split('.');\n const allowedMask = (options.allowPrivateDomains ? 2 /* RULE_TYPE.PRIVATE */ : 0) |\n (options.allowIcannDomains ? 1 /* RULE_TYPE.ICANN */ : 0);\n // Look for exceptions\n const exceptionMatch = lookupInTrie(hostnameParts, exceptions, hostnameParts.length - 1, allowedMask);\n if (exceptionMatch !== null) {\n out.isIcann = exceptionMatch.isIcann;\n out.isPrivate = exceptionMatch.isPrivate;\n out.publicSuffix = hostnameParts.slice(exceptionMatch.index + 1).join('.');\n return;\n }\n // Look for a match in rules\n const rulesMatch = lookupInTrie(hostnameParts, rules, hostnameParts.length - 1, allowedMask);\n if (rulesMatch !== null) {\n out.isIcann = rulesMatch.isIcann;\n out.isPrivate = rulesMatch.isPrivate;\n out.publicSuffix = hostnameParts.slice(rulesMatch.index).join('.');\n return;\n }\n // No match found...\n // Prevailing rule is '*' so we consider the top-level domain to be the\n // public suffix of `hostname` (e.g.: 'example.org' => 'org').\n out.isIcann = false;\n out.isPrivate = false;\n out.publicSuffix = (_a = hostnameParts[hostnameParts.length - 1]) !== null && _a !== void 0 ? _a : null;\n}\n//# sourceMappingURL=suffix-trie.js.map"],"names":["lookupInTrie","parts","trie","index","allowedMask","result","node","undefined","isIcann","isPrivate","succ","Object","prototype","hasOwnProperty","call","suffixLookup","hostname","options","out","_a","fastPathLookup","hostnameParts","split","allowPrivateDomains","allowIcannDomains","exceptionMatch","exceptions","length","publicSuffix","slice","join","rulesMatch","rules"],"mappings":"+PAKA,SAASA,EAAaC,EAAOC,EAAMC,EAAOC,G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";var e=require("../../../../tldts@7.0.19/node_modules/tldts/dist/es6/index.cjs.js");function t(e,t){if(t===e)return!0;if(0===e.indexOf(t)){if("/"===t[t.length-1])return!0;if(e.startsWith(t)&&"/"===e[t.length])return!0}return!1}var i=["local","example","invalid","localhost","test"],n=["localhost","invalid"],o={allowSpecialUseDomain:!1,ignoreError:!1};function r(t,r={}){r={...o,...r};const s=t.split("."),a=s[s.length-1],c=!!r.allowSpecialUseDomain,l=!!r.ignoreError;if(c&&void 0!==a&&i.includes(a)){if(s.length>1){return`${s[s.length-2]}.${a}`}if(n.includes(a))return a}if(!l&&void 0!==a&&i.includes(a))throw new Error(`Cookie has domain set to the public suffix "${a}" which is a special use domain. To allow this, configure your CookieJar with {allowSpecialUseDomain: true, rejectPublicSuffixes: false}.`);const u=e.getDomain(t,{allowIcannDomains:!0,allowPrivateDomains:!0});if(u)return u}function s(e,t){const i=r(e,{allowSpecialUseDomain:t});if(!i)return;if(i==e)return[e];"."==e.slice(-1)&&(e=e.slice(0,-1));const n=e.slice(0,-(i.length+1)).split(".").reverse();let o=i;const s=[o];for(;n.length;){o=`${n.shift()}.${o}`,s.push(o)}return s}var a=class{constructor(){this.synchronous=!1}findCookie(e,t,i,n){throw new Error("findCookie is not implemented")}findCookies(e,t,i=!1,n){throw new Error("findCookies is not implemented")}putCookie(e,t){throw new Error("putCookie is not implemented")}updateCookie(e,t,i){throw new Error("updateCookie is not implemented")}removeCookie(e,t,i,n){throw new Error("removeCookie is not implemented")}removeCookies(e,t,i){throw new Error("removeCookies is not implemented")}removeAllCookies(e){throw new Error("removeAllCookies is not implemented")}getAllCookies(e){throw new Error("getAllCookies is not implemented (therefore jar cannot be serialized)")}},c=e=>Object.prototype.toString.call(e),l=(e,t=new WeakSet)=>"object"!=typeof e||null===e?String(e):"function"==typeof e.toString?Array.isArray(e)?((e,t)=>"function"!=typeof e.join?c(e):(t.add(e),e.map((e=>null==e||t.has(e)?"":l(e,t))).join()))(e,t):String(e):c(e),u=e=>l(e);function d(e){let t,i,n;const o=new Promise(((e,t)=>{i=e,n=t}));return t="function"==typeof e?(t,i)=>{try{t?e(t):e(null,i)}catch(e){n(e instanceof Error?e:new Error)}}:(e,t)=>{try{e?n(e):i(t)}catch(e){n(e instanceof Error?e:new Error)}},{promise:o,callback:t,resolve:e=>(t(null,e),o),reject:e=>(t(e),o)}}function f(e,t){return e in t}var h=class extends a{constructor(){super(),this.synchronous=!0,this.idx=Object.create(null)}findCookie(e,t,i,n){const o=d(n);if(null==e||null==t||null==i)return o.resolve(void 0);const r=this.idx[e]?.[t]?.[i];return o.resolve(r)}findCookies(e,i,n=!1,o){"function"==typeof n&&(o=n,n=!0);const r=[],a=d(o);if(!e)return a.resolve([]);let c;c=i?function(e){for(const n in e)if(t(i,n)){const t=e[n];for(const e in t){const i=t[e];i&&r.push(i)}}}:function(e){for(const t in e){const i=e[t];for(const e in i){const t=i[e];t&&r.push(t)}}};const l=s(e,n)||[e],u=this.idx;return l.forEach((e=>{const t=u[e];t&&c(t)})),a.resolve(r)}putCookie(e,t){const i=d(t),{domain:n,path:o,key:r}=e;if(null==n||null==o||null==r)return i.resolve(void 0);const s=this.idx[n]??Object.create(null);this.idx[n]=s;const a=s[o]??Object.create(null);return s[o]=a,a[r]=e,i.resolve(void 0)}updateCookie(e,t,i){if(!i)return this.putCookie(t);this.putCookie(t,i)}removeCookie(e,t,i,n){const o=d(n);return delete this.idx[e]?.[t]?.[i],o.resolve(void 0)}removeCookies(e,t,i){const n=d(i),o=this.idx[e];return o&&(t?delete o[t]:delete this.idx[e]),n.resolve(void 0)}removeAllCookies(e){const t=d(e);return this.idx=Object.create(null),t.resolve(void 0)}getAllCookies(e){const t=d(e),i=[],n=this.idx;return Object.keys(n).forEach((e=>{const t=n[e]??{};Object.keys(t).forEach((e=>{const n=t[e]??{};Object.keys(n).forEach((e=>{const t=n[e];null!=t&&i.push(t)}))}))})),i.sort(((e,t)=>(e.creationIndex||0)-(t.creationIndex||0))),t.resolve(i)}};function p(e){return y(e)&&""!==e}function m(e){return""===e||e instanceof String&&""===e.toString()}function y(e){return"string"==typeof e||e instanceof String}function x(e){return"[object Object]"===c(e)}function S(e,t,i){if(e)return;const n="function"==typeof t?t:void 0;let o="function"==typeof t?i:t;x(o)||(o="[object Object]");const r=new g(u(o));if(!n)throw r;n(r)}var g=class extends Error{},k="6.0.0",v={SILENT:"silent",STRICT:"strict",DISABLED:"unsafe-disabled"};Object.freeze(v);var C="\n\\[?(?:\n(?:[a-fA-F\\d]{1,4}:){7}(?:[a-fA-F\\d]{1,4}|:)|\n(?:[a-fA-F\\d]{1,4}:){6}(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|:[a-fA-F\\d]{1,4}|:)|\n(?:[a-fA-F\\d]{1,4}:){5}(?::(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-fA-F\\d]{1,4}){1,2}|:)|\n(?:[a-fA-F\\d]{1,4}:){4}(?:(?::[a-fA-F\\d]{1,4}){0,1}:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-fA-F\\d]{1,4}){1,3}|:)|\n(?:[a-fA-F\\d]{1,4}:){3}(?:(?::[a-fA-F\\d]{1,4}){0,2}:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-fA-F\\d]{1,4}){1,4}|:)|\n(?:[a-fA-F\\d]{1,4}:){2}(?:(?::[a-fA-F\\d]{1,4}){0,3}:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-fA-F\\d]{1,4}){1,5}|:)|\n(?:[a-fA-F\\d]{1,4}:){1}(?:(?::[a-fA-F\\d]{1,4}){0,4}:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-fA-F\\d]{1,4}){1,6}|:)|\n(?::(?:(?::[a-fA-F\\d]{1,4}){0,5}:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-fA-F\\d]{1,4}){1,7}|:))\n)(?:%[0-9a-zA-Z]{1,})?\\]?\n".replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),b=new RegExp(`^${C}$`),w=new RegExp("^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$");function A(e){return new URL(`http://${e}`).hostname}function E(e){if(null==e)return;let t=e.trim().replace(/^\./,"");return b.test(t)?(t.startsWith("[")||(t="["+t),t.endsWith("]")||(t+="]"),A(t).slice(1,-1)):/[^\u0001-\u007f]/.test(t)?A(t):t.toLowerCase()}function O(e){return e.toUTCString()}var D=/[\x09\x20-\x2F\x3B-\x40\x5B-\x60\x7B-\x7E]/,I=0,j=1,L=2,$=3,P=4,T=5,U=6,F=7,z=8,_=9,J=10,M=11;function N(e,t,i,n){let o=0;for(;o<e.length;){const t=e.charCodeAt(o);if(t<=47||t>=58)break;o++}if(!(o<t||o>i)&&(n||o==e.length))return parseInt(e.slice(0,o),10)}function R(e){const t=e.split(":"),i=[0,0,0];if(3===t.length){for(let e=0;e<3;e++){const n=2==e,o=t[e];if(void 0===o)return;const r=N(o,1,2,n);if(void 0===r)return;i[e]=r}return i}}function B(e){switch(e=String(e).slice(0,3).toLowerCase()){case"jan":return I;case"feb":return j;case"mar":return L;case"apr":return $;case"may":return P;case"jun":return T;case"jul":return U;case"aug":return F;case"sep":return z;case"oct":return _;case"nov":return J;case"dec":return M;default:return}}function W(e){if(!e)return;const t=e.split(D);let i,n,o,r,s,a;for(let e=0;e<t.length;e++){const c=(t[e]??"").trim();if(c.length){if(void 0===o){const e=R(c);if(e){i=e[0],n=e[1],o=e[2];continue}}if(void 0===r){const e=N(c,1,2,!0);if(void 0!==e){r=e;continue}}if(void 0===s){const e=B(c);if(void 0!==e){s=e;continue}}if(void 0===a){const e=N(c,2,4,!0);void 0!==e&&(a=e,a>=70&&a<=99?a+=1900:a>=0&&a<=69&&(a+=2e3))}}}return void 0===r||void 0===s||void 0===a||void 0===i||void 0===n||void 0===o||r<1||r>31||a<1601||i>23||n>59||o>59?void 0:new Date(Date.UTC(a,s,r,i,n,o))}var H=/^[\x21\x23-\x2B\x2D-\x3A\x3C-\x5B\x5D-\x7E]+$/,q=/[\x20-\x3A\x3C-\x7E]+/,Z=/[\x00-\x1F]/,G=["\n","\r","\0"];function K(e,t){let i,n,o=(e=function(e){if(m(e))return e;for(let t=0;t<G.length;t++){const i=G[t],n=i?e.indexOf(i):-1;-1!==n&&(e=e.slice(0,n))}return e}(e)).indexOf("=");if(t)0===o&&(o=(e=e.substring(1)).indexOf("="));else if(o<=0)return;if(o<=0?(i="",n=e.trim()):(i=e.slice(0,o).trim(),n=e.slice(o+1).trim()),Z.test(i)||Z.test(n))return;const r=new Y;return r.key=i,r.value=n,r}function Q(e){if(!e||m(e))return;let t;if("string"==typeof e)try{t=JSON.parse(e)}catch{return}else t=e;const i=new Y;return Y.serializableProperties.forEach((e=>{if(t&&"object"==typeof t&&f(e,t)){const n=t[e];if(void 0===n)return;if(f(e,V)&&n===V[e])return;switch(e){case"key":case"value":case"sameSite":"string"==typeof n&&(i[e]=n);break;case"expires":case"creation":case"lastAccessed":"number"==typeof n||"string"==typeof n||n instanceof Date?i[e]="Infinity"==t[e]?"Infinity":new Date(n):null===n&&(i[e]=null);break;case"maxAge":"number"!=typeof n&&"Infinity"!==n&&"-Infinity"!==n||(i[e]=n);break;case"domain":case"path":"string"!=typeof n&&null!==n||(i[e]=n);break;case"secure":case"httpOnly":"boolean"==typeof n&&(i[e]=n);break;case"extensions":Array.isArray(n)&&n.every((e=>"string"==typeof e))&&(i[e]=n);break;case"hostOnly":case"pathIsDefault":"boolean"!=typeof n&&null!==n||(i[e]=n)}}})),i}var V={key:"",value:"",expires:"Infinity",maxAge:null,domain:null,path:null,secure:!1,httpOnly:!1,extensions:null,hostOnly:null,pathIsDefault:null,creation:null,lastAccessed:null,sameSite:void 0},X=class e{constructor(t={}){this.key=t.key??V.key,this.value=t.value??V.value,this.expires=t.expires??V.expires,this.maxAge=t.maxAge??V.maxAge,this.domain=t.domain??V.domain,this.path=t.path??V.path,this.secure=t.secure??V.secure,this.httpOnly=t.httpOnly??V.httpOnly,this.extensions=t.extensions??V.extensions,this.creation=t.creation??V.creation,this.hostOnly=t.hostOnly??V.hostOnly,this.pathIsDefault=t.pathIsDefault??V.pathIsDefault,this.lastAccessed=t.lastAccessed??V.lastAccessed,this.sameSite=t.sameSite??V.sameSite,this.creation=t.creation??new Date,Object.defineProperty(this,"creationIndex",{configurable:!1,enumerable:!1,writable:!0,value:++e.cookiesCreated}),this.creationIndex=e.cookiesCreated}[Symbol.for("nodejs.util.inspect.custom")](){const e=Date.now(),t=null!=this.hostOnly?this.hostOnly.toString():"?",i=this.creation&&"Infinity"!==this.creation?`${String(e-this.creation.getTime())}ms`:"?",n=this.lastAccessed&&"Infinity"!==this.lastAccessed?`${String(e-this.lastAccessed.getTime())}ms`:"?";return`Cookie="${this.toString()}; hostOnly=${t}; aAge=${n}; cAge=${i}"`}toJSON(){const t={};for(const i of e.serializableProperties){const e=this[i];if(e!==V[i])switch(i){case"key":case"value":case"sameSite":"string"==typeof e&&(t[i]=e);break;case"expires":case"creation":case"lastAccessed":"number"==typeof e||"string"==typeof e||e instanceof Date?t[i]="Infinity"==e?"Infinity":new Date(e).toISOString():null===e&&(t[i]=null);break;case"maxAge":"number"!=typeof e&&"Infinity"!==e&&"-Infinity"!==e||(t[i]=e);break;case"domain":case"path":"string"!=typeof e&&null!==e||(t[i]=e);break;case"secure":case"httpOnly":"boolean"==typeof e&&(t[i]=e);break;case"extensions":Array.isArray(e)&&(t[i]=e);break;case"hostOnly":case"pathIsDefault":"boolean"!=typeof e&&null!==e||(t[i]=e)}}return t}clone(){return Q(this.toJSON())}validate(){if(!this.value||!H.test(this.value))return!1;if(!("Infinity"==this.expires||this.expires instanceof Date||W(this.expires)))return!1;if(null!=this.maxAge&&"Infinity"!==this.maxAge&&("-Infinity"===this.maxAge||this.maxAge<=0))return!1;if(null!=this.path&&!q.test(this.path))return!1;const e=this.cdomain();if(e){if(e.match(/\.$/))return!1;if(null==r(e))return!1}return!0}setExpires(e){e instanceof Date?this.expires=e:this.expires=W(e)||"Infinity"}setMaxAge(e){this.maxAge=e===1/0?"Infinity":e===-1/0?"-Infinity":e}cookieString(){const e=this.value||"";return this.key?`${this.key}=${e}`:e}toString(){let t=this.cookieString();return"Infinity"!=this.expires&&this.expires instanceof Date&&(t+=`; Expires=${O(this.expires)}`),null!=this.maxAge&&this.maxAge!=1/0&&(t+=`; Max-Age=${String(this.maxAge)}`),this.domain&&!this.hostOnly&&(t+=`; Domain=${this.domain}`),this.path&&(t+=`; Path=${this.path}`),this.secure&&(t+="; Secure"),this.httpOnly&&(t+="; HttpOnly"),this.sameSite&&"none"!==this.sameSite&&(this.sameSite.toLowerCase()===e.sameSiteCanonical.lax.toLowerCase()?t+=`; SameSite=${e.sameSiteCanonical.lax}`:this.sameSite.toLowerCase()===e.sameSiteCanonical.strict.toLowerCase()?t+=`; SameSite=${e.sameSiteCanonical.strict}`:t+=`; SameSite=${this.sameSite}`),this.extensions&&this.extensions.forEach((e=>{t+=`; ${e}`})),t}TTL(e=Date.now()){if(null!=this.maxAge&&"number"==typeof this.maxAge)return this.maxAge<=0?0:1e3*this.maxAge;const t=this.expires;return"Infinity"===t?1/0:(t?.getTime()??e)-(e||Date.now())}expiryTime(e){if(null!=this.maxAge){const t=e||this.lastAccessed||new Date,i="number"==typeof this.maxAge?this.maxAge:-1/0,n=i<=0?-1/0:1e3*i;return"Infinity"===t?1/0:t.getTime()+n}return"Infinity"==this.expires?1/0:this.expires?this.expires.getTime():void 0}expiryDate(e){const t=this.expiryTime(e);return t==1/0?new Date(2147483647e3):t==-1/0?new Date(0):null==t?void 0:new Date(t)}isPersistent(){return null!=this.maxAge||"Infinity"!=this.expires}canonicalizedDomain(){return E(this.domain)}cdomain(){return E(this.domain)}static parse(e,t){return function(e,t){if(m(e)||!y(e))return;const i=(e=e.trim()).indexOf(";"),n=K(-1===i?e:e.slice(0,i),t?.loose??!1);if(!n)return;if(-1===i)return n;const o=e.slice(i+1).trim();if(0===o.length)return n;const r=o.split(";");for(;r.length;){const e=(r.shift()??"").trim();if(0===e.length)continue;const t=e.indexOf("=");let i,o;switch(-1===t?(i=e,o=null):(i=e.slice(0,t),o=e.slice(t+1)),i=i.trim().toLowerCase(),o&&(o=o.trim()),i){case"expires":if(o){const e=W(o);e&&(n.expires=e)}break;case"max-age":if(o&&/^-?[0-9]+$/.test(o)){const e=parseInt(o,10);n.setMaxAge(e)}break;case"domain":if(o){const e=o.trim().replace(/^\./,"");e&&(n.domain=e.toLowerCase())}break;case"path":n.path=o&&"/"===o[0]?o:null;break;case"secure":n.secure=!0;break;case"httponly":n.httpOnly=!0;break;case"samesite":switch(o?o.toLowerCase():""){case"strict":n.sameSite="strict";break;case"lax":n.sameSite="lax";break;case"none":n.sameSite="none";break;default:n.sameSite=void 0}break;default:n.extensions=n.extensions||[],n.extensions.push(e)}}return n}(e,t)}static fromJSON(e){return Q(e)}};X.cookiesCreated=0,X.sameSiteLevel={strict:3,lax:2,none:1},X.sameSiteCanonical={strict:"Strict",lax:"Lax"},X.serializableProperties=["key","value","expires","maxAge","domain","path","secure","httpOnly","extensions","hostOnly","pathIsDefault","creation","lastAccessed","sameSite"];var Y=X,ee=2147483647e3;function te(e,t){let i;const n=e.path?e.path.length:0;if(i=(t.path?t.path.length:0)-n,0!==i)return i;return i=(e.creation&&e.creation instanceof Date?e.creation.getTime():ee)-(t.creation&&t.creation instanceof Date?t.creation.getTime():ee),0!==i||(i=(e.creationIndex||0)-(t.creationIndex||0)),i}function ie(e){if(!e||"/"!==e.slice(0,1))return"/";if("/"===e)return e;const t=e.lastIndexOf("/");return 0===t?"/":e.slice(0,t)}var ne=/(?:^(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}$)|(?:^(?:(?:[a-f\d]{1,4}:){7}(?:[a-f\d]{1,4}|:)|(?:[a-f\d]{1,4}:){6}(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|:[a-f\d]{1,4}|:)|(?:[a-f\d]{1,4}:){5}(?::(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-f\d]{1,4}){1,2}|:)|(?:[a-f\d]{1,4}:){4}(?:(?::[a-f\d]{1,4}){0,1}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-f\d]{1,4}){1,3}|:)|(?:[a-f\d]{1,4}:){3}(?:(?::[a-f\d]{1,4}){0,2}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-f\d]{1,4}){1,4}|:)|(?:[a-f\d]{1,4}:){2}(?:(?::[a-f\d]{1,4}){0,3}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-f\d]{1,4}){1,5}|:)|(?:[a-f\d]{1,4}:){1}(?:(?::[a-f\d]{1,4}){0,4}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-f\d]{1,4}){1,6}|:)|(?::(?:(?::[a-f\d]{1,4}){0,5}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-f\d]{1,4}){1,7}|:)))$)/;function oe(e,t,i){if(null==e||null==t)return;let n,o;if(n=e,o=t,null==n||null==o)return;if(n==o)return!0;const r=n.lastIndexOf(o);return!(r<=0)&&(n.length===o.length+r&&("."===n.substring(r-1,r)&&!ne.test(n)))}function re(e,t=!0){let i;if("string"==typeof e)try{i=new URL(e)}catch{return!1}else i=e;const n=i.protocol.replace(":","").toLowerCase(),o=(r=i.hostname,r.length>=2&&r.startsWith("[")&&r.endsWith("]")?r.substring(1,r.length-1):r).replace(/\.+$/,"");var r;return"https"===n||"wss"===n||!!t&&(w.test(o)?function(e){const t=e.split(".");return 4===t.length&&void 0!==t[0]&&127===parseInt(t[0],10)}(o):b.test(o)?"::1"===o:function(e){const t=e.toLowerCase();return"localhost"===t||function(e){return e.endsWith(".localhost")}(t)}(o))}var se={loose:!1,sameSiteContext:void 0,ignoreError:!1,http:!0},ae={http:!0,expire:!0,allPaths:!1,sameSiteContext:void 0,sort:void 0},ce='Invalid sameSiteContext option for getCookies(); expected one of "strict", "lax", or "none"';function le(e){if(e&&"object"==typeof e&&"hostname"in e&&"string"==typeof e.hostname&&"pathname"in e&&"string"==typeof e.pathname&&"protocol"in e&&"string"==typeof e.protocol)return{hostname:e.hostname,pathname:e.pathname,protocol:e.protocol};if("string"!=typeof e)throw new g("`url` argument is not a string or URL.");try{return new URL(decodeURI(e))}catch{return new URL(e)}}function ue(e){const t=String(e).toLowerCase();return"none"===t||"lax"===t||"strict"===t?t:void 0}function de(e){const t=e.toLowerCase();switch(t){case v.STRICT:case v.SILENT:case v.DISABLED:return t;default:return v.SILENT}}
|
|
2
|
+
/*!
|
|
3
|
+
* Copyright (c) 2015-2020, Salesforce.com, Inc.
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
*
|
|
6
|
+
* Redistribution and use in source and binary forms, with or without
|
|
7
|
+
* modification, are permitted provided that the following conditions are met:
|
|
8
|
+
*
|
|
9
|
+
* 1. Redistributions of source code must retain the above copyright notice,
|
|
10
|
+
* this list of conditions and the following disclaimer.
|
|
11
|
+
*
|
|
12
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
13
|
+
* this list of conditions and the following disclaimer in the documentation
|
|
14
|
+
* and/or other materials provided with the distribution.
|
|
15
|
+
*
|
|
16
|
+
* 3. Neither the name of Salesforce.com nor the names of its contributors may
|
|
17
|
+
* be used to endorse or promote products derived from this software without
|
|
18
|
+
* specific prior written permission.
|
|
19
|
+
*
|
|
20
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
21
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
22
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
23
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
|
24
|
+
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
25
|
+
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
26
|
+
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
27
|
+
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
28
|
+
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
29
|
+
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
30
|
+
* POSSIBILITY OF SUCH DAMAGE.
|
|
31
|
+
*/
|
|
32
|
+
exports.Cookie=Y,exports.CookieJar=class e{constructor(e,t){"boolean"==typeof t&&(t={rejectPublicSuffixes:t}),this.rejectPublicSuffixes=t?.rejectPublicSuffixes??!0,this.enableLooseMode=t?.looseMode??!1,this.allowSpecialUseDomain=t?.allowSpecialUseDomain??!0,this.allowSecureOnLocal=t?.allowSecureOnLocal??!0,this.prefixSecurity=de(t?.prefixSecurity??"silent"),this.store=e??new h}callSync(e){if(!this.store.synchronous)throw new Error("CookieJar store is not synchronous; use async API instead.");let t,i=null;try{e.call(this,((e,n)=>{i=e,t=n}))}catch(e){i=e}if(i)throw i;return t}setCookie(e,t,i,n){"function"==typeof i&&(n=i,i=void 0);const o=d(n),s=o.callback;let a;try{if("string"==typeof t&&S(p(t),n,u(i)),a=le(t),"function"==typeof t)return o.reject(new Error("No URL was specified"));if("function"==typeof i&&(i=se),S("function"==typeof s,s),!p(e)&&!x(e)&&e instanceof String&&0==e.length)return o.resolve(void 0)}catch(e){return o.reject(e)}const c=E(a.hostname)??null,l=i?.loose||this.enableLooseMode;let f=null;if(i?.sameSiteContext&&(f=ue(i.sameSiteContext),!f))return o.reject(new Error(ce));if("string"==typeof e||e instanceof String){const t=Y.parse(e.toString(),{loose:l});if(!t){const e=new Error("Cookie failed to parse");return i?.ignoreError?o.resolve(void 0):o.reject(e)}e=t}else if(!(e instanceof Y)){const e=new Error("First argument to setCookie must be a Cookie object or string");return i?.ignoreError?o.resolve(void 0):o.reject(e)}const h=i?.now||new Date;if(this.rejectPublicSuffixes&&e.domain)try{const t=e.cdomain();if(null==("string"==typeof t?r(t,{allowSpecialUseDomain:this.allowSpecialUseDomain,ignoreError:i?.ignoreError}):null)&&!b.test(e.domain)){const e=new Error("Cookie has domain set to a public suffix");return i?.ignoreError?o.resolve(void 0):o.reject(e)}}catch(e){return i?.ignoreError?o.resolve(void 0):o.reject(e)}if(e.domain){if(!oe(c??void 0,e.cdomain()??void 0)){const t=new Error(`Cookie not in this host's domain. Cookie:${e.cdomain()??"null"} Request:${c??"null"}`);return i?.ignoreError?o.resolve(void 0):o.reject(t)}null==e.hostOnly&&(e.hostOnly=!1)}else e.hostOnly=!0,e.domain=c;if(e.path&&"/"===e.path[0]||(e.path=ie(a.pathname),e.pathIsDefault=!0),!1===i?.http&&e.httpOnly){const e=new Error("Cookie is HttpOnly and this isn't an HTTP API");return i.ignoreError?o.resolve(void 0):o.reject(e)}if("none"!==e.sameSite&&void 0!==e.sameSite&&f&&"none"===f){const e=new Error("Cookie is SameSite but this is a cross-origin request");return i?.ignoreError?o.resolve(void 0):o.reject(e)}const m=this.prefixSecurity===v.SILENT;if(!(this.prefixSecurity===v.DISABLED)){let t,n=!1;if(!function(e){return!("string"==typeof e.key&&e.key.startsWith("__Secure-"))||e.secure}(e)?(n=!0,t="Cookie has __Secure prefix but Secure attribute is not set"):function(e){return!("string"==typeof e.key&&e.key.startsWith("__Host-"))||Boolean(e.secure&&e.hostOnly&&null!=e.path&&"/"===e.path)}(e)||(n=!0,t="Cookie has __Host prefix but either Secure or HostOnly attribute is not set or Path is not '/'"),n)return i?.ignoreError||m?o.resolve(void 0):o.reject(new Error(t))}const y=this.store;y.updateCookie||(y.updateCookie=async function(e,t,i){return this.putCookie(t).then((()=>i?.(null)),(e=>i?.(e)))});return y.findCookie(e.domain,e.path,e.key,(function(t,n){if(t)return void s(t);const o=function(t){t?s(t):s(null,"string"==typeof e?void 0:e)};if(n){if(i&&"http"in i&&!1===i.http&&n.httpOnly)return t=new Error("old Cookie is HttpOnly and this isn't an HTTP API"),void(i.ignoreError?s(null,void 0):s(t));e instanceof Y&&(e.creation=n.creation,e.creationIndex=n.creationIndex,e.lastAccessed=h,y.updateCookie(n,e,o))}else e instanceof Y&&(e.creation=e.lastAccessed=h,y.putCookie(e,o))})),o.promise}setCookieSync(e,t,i){const n=i?this.setCookie.bind(this,e,t,i):this.setCookie.bind(this,e,t);return this.callSync(n)}getCookies(e,i,n){"function"==typeof i?(n=i,i=ae):void 0===i&&(i=ae);const o=d(n),r=o.callback;let s;try{"string"==typeof e&&S(p(e),r,e),s=le(e),S(x(i),r,u(i)),S("function"==typeof r,r)}catch(e){return o.reject(e)}const a=E(s.hostname),c=s.pathname||"/",l=re(e,this.allowSecureOnLocal);let f=0;if(i.sameSiteContext){const e=ue(i.sameSiteContext);if(null==e)return o.reject(new Error(ce));if(f=Y.sameSiteLevel[e],!f)return o.reject(new Error(ce))}const h=i.http??!0,m=Date.now(),y=i.expire??!0,g=i.allPaths??!1,k=this.store;function v(e){if(e.hostOnly){if(e.domain!=a)return!1}else if(!oe(a??void 0,e.domain??void 0))return!1;if(!g&&"string"==typeof e.path&&!t(c,e.path))return!1;if(e.secure&&!l)return!1;if(e.httpOnly&&!h)return!1;if(f){let t;if(t="lax"===e.sameSite?Y.sameSiteLevel.lax:"strict"===e.sameSite?Y.sameSiteLevel.strict:Y.sameSiteLevel.none,t>f)return!1}const i=e.expiryTime();return!(y&&null!=i&&i<=m)||(k.removeCookie(e.domain,e.path,e.key,(()=>{})),!1)}return k.findCookies(a,g?null:c,this.allowSpecialUseDomain,((e,t)=>{if(e)return void r(e);if(null==t)return void r(null,[]);t=t.filter(v),"sort"in i&&!1!==i.sort&&(t=t.sort(te));const n=new Date;for(const e of t)e.lastAccessed=n;r(null,t)})),o.promise}getCookiesSync(e,t){return this.callSync(this.getCookies.bind(this,e,t))??[]}getCookieString(e,t,i){"function"==typeof t&&(i=t,t=void 0);const n=d(i);return this.getCookies(e,t,(function(e,t){e?n.callback(e):n.callback(null,t?.sort(te).map((e=>e.cookieString())).join("; "))})),n.promise}getCookieStringSync(e,t){return this.callSync(t?this.getCookieString.bind(this,e,t):this.getCookieString.bind(this,e))??""}getSetCookieStrings(e,t,i){"function"==typeof t&&(i=t,t=void 0);const n=d(i);return this.getCookies(e,t,(function(e,t){e?n.callback(e):n.callback(null,t?.map((e=>e.toString())))})),n.promise}getSetCookieStringsSync(e,t={}){return this.callSync(this.getSetCookieStrings.bind(this,e,t))??[]}serialize(e){const t=d(e);let i=this.store.constructor.name;x(i)&&(i=null);const n={version:`tough-cookie@${k}`,storeType:i,rejectPublicSuffixes:this.rejectPublicSuffixes,enableLooseMode:this.enableLooseMode,allowSpecialUseDomain:this.allowSpecialUseDomain,prefixSecurity:de(this.prefixSecurity),cookies:[]};return"function"!=typeof this.store.getAllCookies?t.reject(new Error("store does not support getAllCookies and cannot be serialized")):(this.store.getAllCookies(((e,i)=>{e?t.callback(e):null!=i?(n.cookies=i.map((e=>{const t=e.toJSON();return delete t.creationIndex,t})),t.callback(null,n)):t.callback(null,n)})),t.promise)}serializeSync(){return this.callSync((e=>{this.serialize(e)}))}toJSON(){return this.serializeSync()}_importCookies(e,t){let i;if(e&&"object"==typeof e&&f("cookies",e)&&Array.isArray(e.cookies)&&(i=e.cookies),!i)return void t(new Error("serialized jar has no cookies array"),void 0);i=i.slice();const n=e=>{if(e)t(e,void 0);else if(Array.isArray(i)){if(!i.length)return void t(e,this);let o;try{o=Y.fromJSON(i.shift())}catch(e){return void t(e instanceof Error?e:new Error,void 0)}if(void 0===o)return void n(null);this.store.putCookie(o,n)}};n(null)}_importCookiesSync(e){this.callSync(this._importCookies.bind(this,e))}clone(t,i){"function"==typeof t&&(i=t,t=void 0);const n=d(i),o=n.callback;return this.serialize(((i,r)=>i?n.reject(i):e.deserialize(r??"",t,o))),n.promise}_cloneSync(e){const t=e&&"function"!=typeof e?this.clone.bind(this,e):this.clone.bind(this);return this.callSync((e=>{t(e)}))}cloneSync(e){if(!e)return this._cloneSync();if(!e.synchronous)throw new Error("CookieJar clone destination store is not synchronous; use async API instead.");return this._cloneSync(e)}removeAllCookies(e){const t=d(e),i=t.callback,n=this.store;return"function"==typeof n.removeAllCookies&&n.removeAllCookies!==a.prototype.removeAllCookies?(n.removeAllCookies(i),t.promise):(n.getAllCookies(((e,t)=>{if(e)return void i(e);if(t||(t=[]),0===t.length)return void i(null,void 0);let o=0;const r=[],s=function(e){e&&r.push(e),o++,o!==t.length||(r[0]?i(r[0]):i(null,void 0))};t.forEach((e=>{n.removeCookie(e.domain,e.path,e.key,s)}))})),t.promise)}removeAllCookiesSync(){this.callSync((e=>{this.removeAllCookies(e)}))}static deserialize(t,i,n){"function"==typeof i&&(n=i,i=void 0);const o=d(n);let r;if("string"==typeof t)try{r=JSON.parse(t)}catch(e){return o.reject(e instanceof Error?e:new Error)}else r=t;const s=e=>r&&"object"==typeof r&&f(e,r)?r[e]:void 0,a=e=>{const t=s(e);return"boolean"==typeof t?t:void 0},c=new e(i,{rejectPublicSuffixes:a("rejectPublicSuffixes"),looseMode:a("enableLooseMode"),allowSpecialUseDomain:a("allowSpecialUseDomain"),prefixSecurity:de((e=>{const t=s(e);return"string"==typeof t?t:void 0})("prefixSecurity")??"silent")});return c._importCookies(r,(e=>{e?o.callback(e):o.callback(null,c)})),o.promise}static deserializeSync(t,i){const n="string"==typeof t?JSON.parse(t):t,o=e=>n&&"object"==typeof n&&f(e,n)?n[e]:void 0,r=e=>{const t=o(e);return"boolean"==typeof t?t:void 0},s=new e(i,{rejectPublicSuffixes:r("rejectPublicSuffixes"),looseMode:r("enableLooseMode"),allowSpecialUseDomain:r("allowSpecialUseDomain"),prefixSecurity:de((e=>{const t=o(e);return"string"==typeof t?t:void 0})("prefixSecurity")??"silent")});if(!s.store.synchronous)throw new Error("CookieJar store is not synchronous; use async API instead.");return s._importCookiesSync(n),s}static fromJSON(t,i){return e.deserializeSync(t,i)}},exports.MemoryCookieStore=h,exports.ParameterError=g,exports.PrefixSecurityEnum=v,exports.Store=a,exports.canonicalDomain=E,exports.cookieCompare=te,exports.defaultPath=ie,exports.domainMatch=oe,exports.formatDate=O,exports.getPublicSuffix=r,exports.parseDate=W,exports.pathMatch=t,exports.permuteDomain=s,exports.version=k;
|
|
33
|
+
//# sourceMappingURL=index.cjs.js.map
|
package/dist/node_modules/.pnpm/tough-cookie@6.0.0/node_modules/tough-cookie/dist/index.cjs.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../../../../../../../../../node_modules/.pnpm/tough-cookie@6.0.0/node_modules/tough-cookie/dist/index.js"],"sourcesContent":["// lib/pathMatch.ts\nfunction pathMatch(reqPath, cookiePath) {\n if (cookiePath === reqPath) {\n return true;\n }\n const idx = reqPath.indexOf(cookiePath);\n if (idx === 0) {\n if (cookiePath[cookiePath.length - 1] === \"/\") {\n return true;\n }\n if (reqPath.startsWith(cookiePath) && reqPath[cookiePath.length] === \"/\") {\n return true;\n }\n }\n return false;\n}\n\n// lib/getPublicSuffix.ts\nimport { getDomain } from \"tldts\";\nvar SPECIAL_USE_DOMAINS = [\"local\", \"example\", \"invalid\", \"localhost\", \"test\"];\nvar SPECIAL_TREATMENT_DOMAINS = [\"localhost\", \"invalid\"];\nvar defaultGetPublicSuffixOptions = {\n allowSpecialUseDomain: false,\n ignoreError: false\n};\nfunction getPublicSuffix(domain, options = {}) {\n options = { ...defaultGetPublicSuffixOptions, ...options };\n const domainParts = domain.split(\".\");\n const topLevelDomain = domainParts[domainParts.length - 1];\n const allowSpecialUseDomain = !!options.allowSpecialUseDomain;\n const ignoreError = !!options.ignoreError;\n if (allowSpecialUseDomain && topLevelDomain !== void 0 && SPECIAL_USE_DOMAINS.includes(topLevelDomain)) {\n if (domainParts.length > 1) {\n const secondLevelDomain = domainParts[domainParts.length - 2];\n return `${secondLevelDomain}.${topLevelDomain}`;\n } else if (SPECIAL_TREATMENT_DOMAINS.includes(topLevelDomain)) {\n return topLevelDomain;\n }\n }\n if (!ignoreError && topLevelDomain !== void 0 && SPECIAL_USE_DOMAINS.includes(topLevelDomain)) {\n throw new Error(\n `Cookie has domain set to the public suffix \"${topLevelDomain}\" which is a special use domain. To allow this, configure your CookieJar with {allowSpecialUseDomain: true, rejectPublicSuffixes: false}.`\n );\n }\n const publicSuffix = getDomain(domain, {\n allowIcannDomains: true,\n allowPrivateDomains: true\n });\n if (publicSuffix) return publicSuffix;\n}\n\n// lib/permuteDomain.ts\nfunction permuteDomain(domain, allowSpecialUseDomain) {\n const pubSuf = getPublicSuffix(domain, {\n allowSpecialUseDomain\n });\n if (!pubSuf) {\n return void 0;\n }\n if (pubSuf == domain) {\n return [domain];\n }\n if (domain.slice(-1) == \".\") {\n domain = domain.slice(0, -1);\n }\n const prefix = domain.slice(0, -(pubSuf.length + 1));\n const parts = prefix.split(\".\").reverse();\n let cur = pubSuf;\n const permutations = [cur];\n while (parts.length) {\n const part = parts.shift();\n cur = `${part}.${cur}`;\n permutations.push(cur);\n }\n return permutations;\n}\n\n// lib/store.ts\nvar Store = class {\n constructor() {\n this.synchronous = false;\n }\n /**\n * @internal No doc because this is an overload that supports the implementation\n */\n findCookie(_domain, _path, _key, _callback) {\n throw new Error(\"findCookie is not implemented\");\n }\n /**\n * @internal No doc because this is an overload that supports the implementation\n */\n findCookies(_domain, _path, _allowSpecialUseDomain = false, _callback) {\n throw new Error(\"findCookies is not implemented\");\n }\n /**\n * @internal No doc because this is an overload that supports the implementation\n */\n putCookie(_cookie, _callback) {\n throw new Error(\"putCookie is not implemented\");\n }\n /**\n * @internal No doc because this is an overload that supports the implementation\n */\n updateCookie(_oldCookie, _newCookie, _callback) {\n throw new Error(\"updateCookie is not implemented\");\n }\n /**\n * @internal No doc because this is an overload that supports the implementation\n */\n removeCookie(_domain, _path, _key, _callback) {\n throw new Error(\"removeCookie is not implemented\");\n }\n /**\n * @internal No doc because this is an overload that supports the implementation\n */\n removeCookies(_domain, _path, _callback) {\n throw new Error(\"removeCookies is not implemented\");\n }\n /**\n * @internal No doc because this is an overload that supports the implementation\n */\n removeAllCookies(_callback) {\n throw new Error(\"removeAllCookies is not implemented\");\n }\n /**\n * @internal No doc because this is an overload that supports the implementation\n */\n getAllCookies(_callback) {\n throw new Error(\n \"getAllCookies is not implemented (therefore jar cannot be serialized)\"\n );\n }\n};\n\n// lib/utils.ts\nvar objectToString = (obj) => Object.prototype.toString.call(obj);\nvar safeArrayToString = (arr, seenArrays) => {\n if (typeof arr.join !== \"function\") return objectToString(arr);\n seenArrays.add(arr);\n const mapped = arr.map(\n (val) => val === null || val === void 0 || seenArrays.has(val) ? \"\" : safeToStringImpl(val, seenArrays)\n );\n return mapped.join();\n};\nvar safeToStringImpl = (val, seenArrays = /* @__PURE__ */ new WeakSet()) => {\n if (typeof val !== \"object\" || val === null) {\n return String(val);\n } else if (typeof val.toString === \"function\") {\n return Array.isArray(val) ? (\n // Arrays have a weird custom toString that we need to replicate\n safeArrayToString(val, seenArrays)\n ) : (\n // eslint-disable-next-line @typescript-eslint/no-base-to-string\n String(val)\n );\n } else {\n return objectToString(val);\n }\n};\nvar safeToString = (val) => safeToStringImpl(val);\nfunction createPromiseCallback(cb) {\n let callback;\n let resolve;\n let reject;\n const promise = new Promise((_resolve, _reject) => {\n resolve = _resolve;\n reject = _reject;\n });\n if (typeof cb === \"function\") {\n callback = (err, result) => {\n try {\n if (err) cb(err);\n else cb(null, result);\n } catch (e) {\n reject(e instanceof Error ? e : new Error());\n }\n };\n } else {\n callback = (err, result) => {\n try {\n if (err) reject(err);\n else resolve(result);\n } catch (e) {\n reject(e instanceof Error ? e : new Error());\n }\n };\n }\n return {\n promise,\n callback,\n resolve: (value) => {\n callback(null, value);\n return promise;\n },\n reject: (error) => {\n callback(error);\n return promise;\n }\n };\n}\nfunction inOperator(k, o) {\n return k in o;\n}\n\n// lib/memstore.ts\nvar MemoryCookieStore = class extends Store {\n /**\n * Create a new {@link MemoryCookieStore}.\n */\n constructor() {\n super();\n this.synchronous = true;\n this.idx = /* @__PURE__ */ Object.create(null);\n }\n /**\n * @internal No doc because this is an overload that supports the implementation\n */\n findCookie(domain, path, key, callback) {\n const promiseCallback = createPromiseCallback(callback);\n if (domain == null || path == null || key == null) {\n return promiseCallback.resolve(void 0);\n }\n const result = this.idx[domain]?.[path]?.[key];\n return promiseCallback.resolve(result);\n }\n /**\n * @internal No doc because this is an overload that supports the implementation\n */\n findCookies(domain, path, allowSpecialUseDomain = false, callback) {\n if (typeof allowSpecialUseDomain === \"function\") {\n callback = allowSpecialUseDomain;\n allowSpecialUseDomain = true;\n }\n const results = [];\n const promiseCallback = createPromiseCallback(callback);\n if (!domain) {\n return promiseCallback.resolve([]);\n }\n let pathMatcher;\n if (!path) {\n pathMatcher = function matchAll(domainIndex) {\n for (const curPath in domainIndex) {\n const pathIndex = domainIndex[curPath];\n for (const key in pathIndex) {\n const value = pathIndex[key];\n if (value) {\n results.push(value);\n }\n }\n }\n };\n } else {\n pathMatcher = function matchRFC(domainIndex) {\n for (const cookiePath in domainIndex) {\n if (pathMatch(path, cookiePath)) {\n const pathIndex = domainIndex[cookiePath];\n for (const key in pathIndex) {\n const value = pathIndex[key];\n if (value) {\n results.push(value);\n }\n }\n }\n }\n };\n }\n const domains = permuteDomain(domain, allowSpecialUseDomain) || [domain];\n const idx = this.idx;\n domains.forEach((curDomain) => {\n const domainIndex = idx[curDomain];\n if (!domainIndex) {\n return;\n }\n pathMatcher(domainIndex);\n });\n return promiseCallback.resolve(results);\n }\n /**\n * @internal No doc because this is an overload that supports the implementation\n */\n putCookie(cookie, callback) {\n const promiseCallback = createPromiseCallback(callback);\n const { domain, path, key } = cookie;\n if (domain == null || path == null || key == null) {\n return promiseCallback.resolve(void 0);\n }\n const domainEntry = this.idx[domain] ?? /* @__PURE__ */ Object.create(null);\n this.idx[domain] = domainEntry;\n const pathEntry = domainEntry[path] ?? /* @__PURE__ */ Object.create(null);\n domainEntry[path] = pathEntry;\n pathEntry[key] = cookie;\n return promiseCallback.resolve(void 0);\n }\n /**\n * @internal No doc because this is an overload that supports the implementation\n */\n updateCookie(_oldCookie, newCookie, callback) {\n if (callback) this.putCookie(newCookie, callback);\n else return this.putCookie(newCookie);\n }\n /**\n * @internal No doc because this is an overload that supports the implementation\n */\n removeCookie(domain, path, key, callback) {\n const promiseCallback = createPromiseCallback(callback);\n delete this.idx[domain]?.[path]?.[key];\n return promiseCallback.resolve(void 0);\n }\n /**\n * @internal No doc because this is an overload that supports the implementation\n */\n removeCookies(domain, path, callback) {\n const promiseCallback = createPromiseCallback(callback);\n const domainEntry = this.idx[domain];\n if (domainEntry) {\n if (path) {\n delete domainEntry[path];\n } else {\n delete this.idx[domain];\n }\n }\n return promiseCallback.resolve(void 0);\n }\n /**\n * @internal No doc because this is an overload that supports the implementation\n */\n removeAllCookies(callback) {\n const promiseCallback = createPromiseCallback(callback);\n this.idx = /* @__PURE__ */ Object.create(null);\n return promiseCallback.resolve(void 0);\n }\n /**\n * @internal No doc because this is an overload that supports the implementation\n */\n getAllCookies(callback) {\n const promiseCallback = createPromiseCallback(callback);\n const cookies = [];\n const idx = this.idx;\n const domains = Object.keys(idx);\n domains.forEach((domain) => {\n const domainEntry = idx[domain] ?? {};\n const paths = Object.keys(domainEntry);\n paths.forEach((path) => {\n const pathEntry = domainEntry[path] ?? {};\n const keys = Object.keys(pathEntry);\n keys.forEach((key) => {\n const keyEntry = pathEntry[key];\n if (keyEntry != null) {\n cookies.push(keyEntry);\n }\n });\n });\n });\n cookies.sort((a, b) => {\n return (a.creationIndex || 0) - (b.creationIndex || 0);\n });\n return promiseCallback.resolve(cookies);\n }\n};\n\n// lib/validators.ts\nfunction isNonEmptyString(data) {\n return isString(data) && data !== \"\";\n}\nfunction isEmptyString(data) {\n return data === \"\" || data instanceof String && data.toString() === \"\";\n}\nfunction isString(data) {\n return typeof data === \"string\" || data instanceof String;\n}\nfunction isObject(data) {\n return objectToString(data) === \"[object Object]\";\n}\nfunction validate(bool, cbOrMessage, message) {\n if (bool) return;\n const cb = typeof cbOrMessage === \"function\" ? cbOrMessage : void 0;\n let options = typeof cbOrMessage === \"function\" ? message : cbOrMessage;\n if (!isObject(options)) options = \"[object Object]\";\n const err = new ParameterError(safeToString(options));\n if (cb) cb(err);\n else throw err;\n}\nvar ParameterError = class extends Error {\n};\n\n// lib/version.ts\nvar version = \"6.0.0\";\n\n// lib/cookie/constants.ts\nvar PrefixSecurityEnum = {\n SILENT: \"silent\",\n STRICT: \"strict\",\n DISABLED: \"unsafe-disabled\"\n};\nObject.freeze(PrefixSecurityEnum);\nvar IP_V6_REGEX = `\n\\\\[?(?:\n(?:[a-fA-F\\\\d]{1,4}:){7}(?:[a-fA-F\\\\d]{1,4}|:)|\n(?:[a-fA-F\\\\d]{1,4}:){6}(?:(?:25[0-5]|2[0-4]\\\\d|1\\\\d\\\\d|[1-9]\\\\d|\\\\d)(?:\\\\.(?:25[0-5]|2[0-4]\\\\d|1\\\\d\\\\d|[1-9]\\\\d|\\\\d)){3}|:[a-fA-F\\\\d]{1,4}|:)|\n(?:[a-fA-F\\\\d]{1,4}:){5}(?::(?:25[0-5]|2[0-4]\\\\d|1\\\\d\\\\d|[1-9]\\\\d|\\\\d)(?:\\\\.(?:25[0-5]|2[0-4]\\\\d|1\\\\d\\\\d|[1-9]\\\\d|\\\\d)){3}|(?::[a-fA-F\\\\d]{1,4}){1,2}|:)|\n(?:[a-fA-F\\\\d]{1,4}:){4}(?:(?::[a-fA-F\\\\d]{1,4}){0,1}:(?:25[0-5]|2[0-4]\\\\d|1\\\\d\\\\d|[1-9]\\\\d|\\\\d)(?:\\\\.(?:25[0-5]|2[0-4]\\\\d|1\\\\d\\\\d|[1-9]\\\\d|\\\\d)){3}|(?::[a-fA-F\\\\d]{1,4}){1,3}|:)|\n(?:[a-fA-F\\\\d]{1,4}:){3}(?:(?::[a-fA-F\\\\d]{1,4}){0,2}:(?:25[0-5]|2[0-4]\\\\d|1\\\\d\\\\d|[1-9]\\\\d|\\\\d)(?:\\\\.(?:25[0-5]|2[0-4]\\\\d|1\\\\d\\\\d|[1-9]\\\\d|\\\\d)){3}|(?::[a-fA-F\\\\d]{1,4}){1,4}|:)|\n(?:[a-fA-F\\\\d]{1,4}:){2}(?:(?::[a-fA-F\\\\d]{1,4}){0,3}:(?:25[0-5]|2[0-4]\\\\d|1\\\\d\\\\d|[1-9]\\\\d|\\\\d)(?:\\\\.(?:25[0-5]|2[0-4]\\\\d|1\\\\d\\\\d|[1-9]\\\\d|\\\\d)){3}|(?::[a-fA-F\\\\d]{1,4}){1,5}|:)|\n(?:[a-fA-F\\\\d]{1,4}:){1}(?:(?::[a-fA-F\\\\d]{1,4}){0,4}:(?:25[0-5]|2[0-4]\\\\d|1\\\\d\\\\d|[1-9]\\\\d|\\\\d)(?:\\\\.(?:25[0-5]|2[0-4]\\\\d|1\\\\d\\\\d|[1-9]\\\\d|\\\\d)){3}|(?::[a-fA-F\\\\d]{1,4}){1,6}|:)|\n(?::(?:(?::[a-fA-F\\\\d]{1,4}){0,5}:(?:25[0-5]|2[0-4]\\\\d|1\\\\d\\\\d|[1-9]\\\\d|\\\\d)(?:\\\\.(?:25[0-5]|2[0-4]\\\\d|1\\\\d\\\\d|[1-9]\\\\d|\\\\d)){3}|(?::[a-fA-F\\\\d]{1,4}){1,7}|:))\n)(?:%[0-9a-zA-Z]{1,})?\\\\]?\n`.replace(/\\s*\\/\\/.*$/gm, \"\").replace(/\\n/g, \"\").trim();\nvar IP_V6_REGEX_OBJECT = new RegExp(`^${IP_V6_REGEX}$`);\nvar IP_V4_REGEX = `(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])`;\nvar IP_V4_REGEX_OBJECT = new RegExp(`^${IP_V4_REGEX}$`);\n\n// lib/cookie/canonicalDomain.ts\nfunction domainToASCII(domain) {\n return new URL(`http://${domain}`).hostname;\n}\nfunction canonicalDomain(domainName) {\n if (domainName == null) {\n return void 0;\n }\n let str = domainName.trim().replace(/^\\./, \"\");\n if (IP_V6_REGEX_OBJECT.test(str)) {\n if (!str.startsWith(\"[\")) {\n str = \"[\" + str;\n }\n if (!str.endsWith(\"]\")) {\n str = str + \"]\";\n }\n return domainToASCII(str).slice(1, -1);\n }\n if (/[^\\u0001-\\u007f]/.test(str)) {\n return domainToASCII(str);\n }\n return str.toLowerCase();\n}\n\n// lib/cookie/formatDate.ts\nfunction formatDate(date) {\n return date.toUTCString();\n}\n\n// lib/cookie/parseDate.ts\nvar DATE_DELIM = /[\\x09\\x20-\\x2F\\x3B-\\x40\\x5B-\\x60\\x7B-\\x7E]/;\nvar MONTH_TO_NUM = {\n jan: 0,\n feb: 1,\n mar: 2,\n apr: 3,\n may: 4,\n jun: 5,\n jul: 6,\n aug: 7,\n sep: 8,\n oct: 9,\n nov: 10,\n dec: 11\n};\nfunction parseDigits(token, minDigits, maxDigits, trailingOK) {\n let count = 0;\n while (count < token.length) {\n const c = token.charCodeAt(count);\n if (c <= 47 || c >= 58) {\n break;\n }\n count++;\n }\n if (count < minDigits || count > maxDigits) {\n return;\n }\n if (!trailingOK && count != token.length) {\n return;\n }\n return parseInt(token.slice(0, count), 10);\n}\nfunction parseTime(token) {\n const parts = token.split(\":\");\n const result = [0, 0, 0];\n if (parts.length !== 3) {\n return;\n }\n for (let i = 0; i < 3; i++) {\n const trailingOK = i == 2;\n const numPart = parts[i];\n if (numPart === void 0) {\n return;\n }\n const num = parseDigits(numPart, 1, 2, trailingOK);\n if (num === void 0) {\n return;\n }\n result[i] = num;\n }\n return result;\n}\nfunction parseMonth(token) {\n token = String(token).slice(0, 3).toLowerCase();\n switch (token) {\n case \"jan\":\n return MONTH_TO_NUM.jan;\n case \"feb\":\n return MONTH_TO_NUM.feb;\n case \"mar\":\n return MONTH_TO_NUM.mar;\n case \"apr\":\n return MONTH_TO_NUM.apr;\n case \"may\":\n return MONTH_TO_NUM.may;\n case \"jun\":\n return MONTH_TO_NUM.jun;\n case \"jul\":\n return MONTH_TO_NUM.jul;\n case \"aug\":\n return MONTH_TO_NUM.aug;\n case \"sep\":\n return MONTH_TO_NUM.sep;\n case \"oct\":\n return MONTH_TO_NUM.oct;\n case \"nov\":\n return MONTH_TO_NUM.nov;\n case \"dec\":\n return MONTH_TO_NUM.dec;\n default:\n return;\n }\n}\nfunction parseDate(cookieDate) {\n if (!cookieDate) {\n return;\n }\n const tokens = cookieDate.split(DATE_DELIM);\n let hour;\n let minute;\n let second;\n let dayOfMonth;\n let month;\n let year;\n for (let i = 0; i < tokens.length; i++) {\n const token = (tokens[i] ?? \"\").trim();\n if (!token.length) {\n continue;\n }\n if (second === void 0) {\n const result = parseTime(token);\n if (result) {\n hour = result[0];\n minute = result[1];\n second = result[2];\n continue;\n }\n }\n if (dayOfMonth === void 0) {\n const result = parseDigits(token, 1, 2, true);\n if (result !== void 0) {\n dayOfMonth = result;\n continue;\n }\n }\n if (month === void 0) {\n const result = parseMonth(token);\n if (result !== void 0) {\n month = result;\n continue;\n }\n }\n if (year === void 0) {\n const result = parseDigits(token, 2, 4, true);\n if (result !== void 0) {\n year = result;\n if (year >= 70 && year <= 99) {\n year += 1900;\n } else if (year >= 0 && year <= 69) {\n year += 2e3;\n }\n }\n }\n }\n if (dayOfMonth === void 0 || month === void 0 || year === void 0 || hour === void 0 || minute === void 0 || second === void 0 || dayOfMonth < 1 || dayOfMonth > 31 || year < 1601 || hour > 23 || minute > 59 || second > 59) {\n return;\n }\n return new Date(Date.UTC(year, month, dayOfMonth, hour, minute, second));\n}\n\n// lib/cookie/cookie.ts\nvar COOKIE_OCTETS = /^[\\x21\\x23-\\x2B\\x2D-\\x3A\\x3C-\\x5B\\x5D-\\x7E]+$/;\nvar PATH_VALUE = /[\\x20-\\x3A\\x3C-\\x7E]+/;\nvar CONTROL_CHARS = /[\\x00-\\x1F]/;\nvar TERMINATORS = [\"\\n\", \"\\r\", \"\\0\"];\nfunction trimTerminator(str) {\n if (isEmptyString(str)) return str;\n for (let t = 0; t < TERMINATORS.length; t++) {\n const terminator = TERMINATORS[t];\n const terminatorIdx = terminator ? str.indexOf(terminator) : -1;\n if (terminatorIdx !== -1) {\n str = str.slice(0, terminatorIdx);\n }\n }\n return str;\n}\nfunction parseCookiePair(cookiePair, looseMode) {\n cookiePair = trimTerminator(cookiePair);\n let firstEq = cookiePair.indexOf(\"=\");\n if (looseMode) {\n if (firstEq === 0) {\n cookiePair = cookiePair.substring(1);\n firstEq = cookiePair.indexOf(\"=\");\n }\n } else {\n if (firstEq <= 0) {\n return void 0;\n }\n }\n let cookieName, cookieValue;\n if (firstEq <= 0) {\n cookieName = \"\";\n cookieValue = cookiePair.trim();\n } else {\n cookieName = cookiePair.slice(0, firstEq).trim();\n cookieValue = cookiePair.slice(firstEq + 1).trim();\n }\n if (CONTROL_CHARS.test(cookieName) || CONTROL_CHARS.test(cookieValue)) {\n return void 0;\n }\n const c = new Cookie();\n c.key = cookieName;\n c.value = cookieValue;\n return c;\n}\nfunction parse(str, options) {\n if (isEmptyString(str) || !isString(str)) {\n return void 0;\n }\n str = str.trim();\n const firstSemi = str.indexOf(\";\");\n const cookiePair = firstSemi === -1 ? str : str.slice(0, firstSemi);\n const c = parseCookiePair(cookiePair, options?.loose ?? false);\n if (!c) {\n return void 0;\n }\n if (firstSemi === -1) {\n return c;\n }\n const unparsed = str.slice(firstSemi + 1).trim();\n if (unparsed.length === 0) {\n return c;\n }\n const cookie_avs = unparsed.split(\";\");\n while (cookie_avs.length) {\n const av = (cookie_avs.shift() ?? \"\").trim();\n if (av.length === 0) {\n continue;\n }\n const av_sep = av.indexOf(\"=\");\n let av_key, av_value;\n if (av_sep === -1) {\n av_key = av;\n av_value = null;\n } else {\n av_key = av.slice(0, av_sep);\n av_value = av.slice(av_sep + 1);\n }\n av_key = av_key.trim().toLowerCase();\n if (av_value) {\n av_value = av_value.trim();\n }\n switch (av_key) {\n case \"expires\":\n if (av_value) {\n const exp = parseDate(av_value);\n if (exp) {\n c.expires = exp;\n }\n }\n break;\n case \"max-age\":\n if (av_value) {\n if (/^-?[0-9]+$/.test(av_value)) {\n const delta = parseInt(av_value, 10);\n c.setMaxAge(delta);\n }\n }\n break;\n case \"domain\":\n if (av_value) {\n const domain = av_value.trim().replace(/^\\./, \"\");\n if (domain) {\n c.domain = domain.toLowerCase();\n }\n }\n break;\n case \"path\":\n c.path = av_value && av_value[0] === \"/\" ? av_value : null;\n break;\n case \"secure\":\n c.secure = true;\n break;\n case \"httponly\":\n c.httpOnly = true;\n break;\n case \"samesite\":\n switch (av_value ? av_value.toLowerCase() : \"\") {\n case \"strict\":\n c.sameSite = \"strict\";\n break;\n case \"lax\":\n c.sameSite = \"lax\";\n break;\n case \"none\":\n c.sameSite = \"none\";\n break;\n default:\n c.sameSite = void 0;\n break;\n }\n break;\n default:\n c.extensions = c.extensions || [];\n c.extensions.push(av);\n break;\n }\n }\n return c;\n}\nfunction fromJSON(str) {\n if (!str || isEmptyString(str)) {\n return void 0;\n }\n let obj;\n if (typeof str === \"string\") {\n try {\n obj = JSON.parse(str);\n } catch {\n return void 0;\n }\n } else {\n obj = str;\n }\n const c = new Cookie();\n Cookie.serializableProperties.forEach((prop) => {\n if (obj && typeof obj === \"object\" && inOperator(prop, obj)) {\n const val = obj[prop];\n if (val === void 0) {\n return;\n }\n if (inOperator(prop, cookieDefaults) && val === cookieDefaults[prop]) {\n return;\n }\n switch (prop) {\n case \"key\":\n case \"value\":\n case \"sameSite\":\n if (typeof val === \"string\") {\n c[prop] = val;\n }\n break;\n case \"expires\":\n case \"creation\":\n case \"lastAccessed\":\n if (typeof val === \"number\" || typeof val === \"string\" || val instanceof Date) {\n c[prop] = obj[prop] == \"Infinity\" ? \"Infinity\" : new Date(val);\n } else if (val === null) {\n c[prop] = null;\n }\n break;\n case \"maxAge\":\n if (typeof val === \"number\" || val === \"Infinity\" || val === \"-Infinity\") {\n c[prop] = val;\n }\n break;\n case \"domain\":\n case \"path\":\n if (typeof val === \"string\" || val === null) {\n c[prop] = val;\n }\n break;\n case \"secure\":\n case \"httpOnly\":\n if (typeof val === \"boolean\") {\n c[prop] = val;\n }\n break;\n case \"extensions\":\n if (Array.isArray(val) && val.every((item) => typeof item === \"string\")) {\n c[prop] = val;\n }\n break;\n case \"hostOnly\":\n case \"pathIsDefault\":\n if (typeof val === \"boolean\" || val === null) {\n c[prop] = val;\n }\n break;\n }\n }\n });\n return c;\n}\nvar cookieDefaults = {\n // the order in which the RFC has them:\n key: \"\",\n value: \"\",\n expires: \"Infinity\",\n maxAge: null,\n domain: null,\n path: null,\n secure: false,\n httpOnly: false,\n extensions: null,\n // set by the CookieJar:\n hostOnly: null,\n pathIsDefault: null,\n creation: null,\n lastAccessed: null,\n sameSite: void 0\n};\nvar _Cookie = class _Cookie {\n /**\n * Create a new Cookie instance.\n * @public\n * @param options - The attributes to set on the cookie\n */\n constructor(options = {}) {\n this.key = options.key ?? cookieDefaults.key;\n this.value = options.value ?? cookieDefaults.value;\n this.expires = options.expires ?? cookieDefaults.expires;\n this.maxAge = options.maxAge ?? cookieDefaults.maxAge;\n this.domain = options.domain ?? cookieDefaults.domain;\n this.path = options.path ?? cookieDefaults.path;\n this.secure = options.secure ?? cookieDefaults.secure;\n this.httpOnly = options.httpOnly ?? cookieDefaults.httpOnly;\n this.extensions = options.extensions ?? cookieDefaults.extensions;\n this.creation = options.creation ?? cookieDefaults.creation;\n this.hostOnly = options.hostOnly ?? cookieDefaults.hostOnly;\n this.pathIsDefault = options.pathIsDefault ?? cookieDefaults.pathIsDefault;\n this.lastAccessed = options.lastAccessed ?? cookieDefaults.lastAccessed;\n this.sameSite = options.sameSite ?? cookieDefaults.sameSite;\n this.creation = options.creation ?? /* @__PURE__ */ new Date();\n Object.defineProperty(this, \"creationIndex\", {\n configurable: false,\n enumerable: false,\n // important for assert.deepEqual checks\n writable: true,\n value: ++_Cookie.cookiesCreated\n });\n this.creationIndex = _Cookie.cookiesCreated;\n }\n [Symbol.for(\"nodejs.util.inspect.custom\")]() {\n const now = Date.now();\n const hostOnly = this.hostOnly != null ? this.hostOnly.toString() : \"?\";\n const createAge = this.creation && this.creation !== \"Infinity\" ? `${String(now - this.creation.getTime())}ms` : \"?\";\n const accessAge = this.lastAccessed && this.lastAccessed !== \"Infinity\" ? `${String(now - this.lastAccessed.getTime())}ms` : \"?\";\n return `Cookie=\"${this.toString()}; hostOnly=${hostOnly}; aAge=${accessAge}; cAge=${createAge}\"`;\n }\n /**\n * For convenience in using `JSON.stringify(cookie)`. Returns a plain-old Object that can be JSON-serialized.\n *\n * @remarks\n * - Any `Date` properties (such as {@link Cookie.expires}, {@link Cookie.creation}, and {@link Cookie.lastAccessed}) are exported in ISO format (`Date.toISOString()`).\n *\n * - Custom Cookie properties are discarded. In tough-cookie 1.x, since there was no {@link Cookie.toJSON} method explicitly defined, all enumerable properties were captured.\n * If you want a property to be serialized, add the property name to {@link Cookie.serializableProperties}.\n */\n toJSON() {\n const obj = {};\n for (const prop of _Cookie.serializableProperties) {\n const val = this[prop];\n if (val === cookieDefaults[prop]) {\n continue;\n }\n switch (prop) {\n case \"key\":\n case \"value\":\n case \"sameSite\":\n if (typeof val === \"string\") {\n obj[prop] = val;\n }\n break;\n case \"expires\":\n case \"creation\":\n case \"lastAccessed\":\n if (typeof val === \"number\" || typeof val === \"string\" || val instanceof Date) {\n obj[prop] = val == \"Infinity\" ? \"Infinity\" : new Date(val).toISOString();\n } else if (val === null) {\n obj[prop] = null;\n }\n break;\n case \"maxAge\":\n if (typeof val === \"number\" || val === \"Infinity\" || val === \"-Infinity\") {\n obj[prop] = val;\n }\n break;\n case \"domain\":\n case \"path\":\n if (typeof val === \"string\" || val === null) {\n obj[prop] = val;\n }\n break;\n case \"secure\":\n case \"httpOnly\":\n if (typeof val === \"boolean\") {\n obj[prop] = val;\n }\n break;\n case \"extensions\":\n if (Array.isArray(val)) {\n obj[prop] = val;\n }\n break;\n case \"hostOnly\":\n case \"pathIsDefault\":\n if (typeof val === \"boolean\" || val === null) {\n obj[prop] = val;\n }\n break;\n }\n }\n return obj;\n }\n /**\n * Does a deep clone of this cookie, implemented exactly as `Cookie.fromJSON(cookie.toJSON())`.\n * @public\n */\n clone() {\n return fromJSON(this.toJSON());\n }\n /**\n * Validates cookie attributes for semantic correctness. Useful for \"lint\" checking any `Set-Cookie` headers you generate.\n * For now, it returns a boolean, but eventually could return a reason string.\n *\n * @remarks\n * Works for a few things, but is by no means comprehensive.\n *\n * @beta\n */\n validate() {\n if (!this.value || !COOKIE_OCTETS.test(this.value)) {\n return false;\n }\n if (this.expires != \"Infinity\" && !(this.expires instanceof Date) && !parseDate(this.expires)) {\n return false;\n }\n if (this.maxAge != null && this.maxAge !== \"Infinity\" && (this.maxAge === \"-Infinity\" || this.maxAge <= 0)) {\n return false;\n }\n if (this.path != null && !PATH_VALUE.test(this.path)) {\n return false;\n }\n const cdomain = this.cdomain();\n if (cdomain) {\n if (cdomain.match(/\\.$/)) {\n return false;\n }\n const suffix = getPublicSuffix(cdomain);\n if (suffix == null) {\n return false;\n }\n }\n return true;\n }\n /**\n * Sets the 'Expires' attribute on a cookie.\n *\n * @remarks\n * When given a `string` value it will be parsed with {@link parseDate}. If the value can't be parsed as a cookie date\n * then the 'Expires' attribute will be set to `\"Infinity\"`.\n *\n * @param exp - the new value for the 'Expires' attribute of the cookie.\n */\n setExpires(exp) {\n if (exp instanceof Date) {\n this.expires = exp;\n } else {\n this.expires = parseDate(exp) || \"Infinity\";\n }\n }\n /**\n * Sets the 'Max-Age' attribute (in seconds) on a cookie.\n *\n * @remarks\n * Coerces `-Infinity` to `\"-Infinity\"` and `Infinity` to `\"Infinity\"` so it can be serialized to JSON.\n *\n * @param age - the new value for the 'Max-Age' attribute (in seconds).\n */\n setMaxAge(age) {\n if (age === Infinity) {\n this.maxAge = \"Infinity\";\n } else if (age === -Infinity) {\n this.maxAge = \"-Infinity\";\n } else {\n this.maxAge = age;\n }\n }\n /**\n * Encodes to a `Cookie` header value (specifically, the {@link Cookie.key} and {@link Cookie.value} properties joined with \"=\").\n * @public\n */\n cookieString() {\n const val = this.value || \"\";\n if (this.key) {\n return `${this.key}=${val}`;\n }\n return val;\n }\n /**\n * Encodes to a `Set-Cookie header` value.\n * @public\n */\n toString() {\n let str = this.cookieString();\n if (this.expires != \"Infinity\") {\n if (this.expires instanceof Date) {\n str += `; Expires=${formatDate(this.expires)}`;\n }\n }\n if (this.maxAge != null && this.maxAge != Infinity) {\n str += `; Max-Age=${String(this.maxAge)}`;\n }\n if (this.domain && !this.hostOnly) {\n str += `; Domain=${this.domain}`;\n }\n if (this.path) {\n str += `; Path=${this.path}`;\n }\n if (this.secure) {\n str += \"; Secure\";\n }\n if (this.httpOnly) {\n str += \"; HttpOnly\";\n }\n if (this.sameSite && this.sameSite !== \"none\") {\n if (this.sameSite.toLowerCase() === _Cookie.sameSiteCanonical.lax.toLowerCase()) {\n str += `; SameSite=${_Cookie.sameSiteCanonical.lax}`;\n } else if (this.sameSite.toLowerCase() === _Cookie.sameSiteCanonical.strict.toLowerCase()) {\n str += `; SameSite=${_Cookie.sameSiteCanonical.strict}`;\n } else {\n str += `; SameSite=${this.sameSite}`;\n }\n }\n if (this.extensions) {\n this.extensions.forEach((ext) => {\n str += `; ${ext}`;\n });\n }\n return str;\n }\n /**\n * Computes the TTL relative to now (milliseconds).\n *\n * @remarks\n * - `Infinity` is returned for cookies without an explicit expiry\n *\n * - `0` is returned if the cookie is expired.\n *\n * - Otherwise a time-to-live in milliseconds is returned.\n *\n * @param now - passing an explicit value is mostly used for testing purposes since this defaults to the `Date.now()`\n * @public\n */\n TTL(now = Date.now()) {\n if (this.maxAge != null && typeof this.maxAge === \"number\") {\n return this.maxAge <= 0 ? 0 : this.maxAge * 1e3;\n }\n const expires = this.expires;\n if (expires === \"Infinity\") {\n return Infinity;\n }\n return (expires?.getTime() ?? now) - (now || Date.now());\n }\n /**\n * Computes the absolute unix-epoch milliseconds that this cookie expires.\n *\n * The \"Max-Age\" attribute takes precedence over \"Expires\" (as per the RFC). The {@link Cookie.lastAccessed} attribute\n * (or the `now` parameter if given) is used to offset the {@link Cookie.maxAge} attribute.\n *\n * If Expires ({@link Cookie.expires}) is set, that's returned.\n *\n * @param now - can be used to provide a time offset (instead of {@link Cookie.lastAccessed}) to use when calculating the \"Max-Age\" value\n */\n expiryTime(now) {\n if (this.maxAge != null) {\n const relativeTo = now || this.lastAccessed || /* @__PURE__ */ new Date();\n const maxAge = typeof this.maxAge === \"number\" ? this.maxAge : -Infinity;\n const age = maxAge <= 0 ? -Infinity : maxAge * 1e3;\n if (relativeTo === \"Infinity\") {\n return Infinity;\n }\n return relativeTo.getTime() + age;\n }\n if (this.expires == \"Infinity\") {\n return Infinity;\n }\n return this.expires ? this.expires.getTime() : void 0;\n }\n /**\n * Similar to {@link Cookie.expiryTime}, computes the absolute unix-epoch milliseconds that this cookie expires and returns it as a Date.\n *\n * The \"Max-Age\" attribute takes precedence over \"Expires\" (as per the RFC). The {@link Cookie.lastAccessed} attribute\n * (or the `now` parameter if given) is used to offset the {@link Cookie.maxAge} attribute.\n *\n * If Expires ({@link Cookie.expires}) is set, that's returned.\n *\n * @param now - can be used to provide a time offset (instead of {@link Cookie.lastAccessed}) to use when calculating the \"Max-Age\" value\n */\n expiryDate(now) {\n const millisec = this.expiryTime(now);\n if (millisec == Infinity) {\n return /* @__PURE__ */ new Date(2147483647e3);\n } else if (millisec == -Infinity) {\n return /* @__PURE__ */ new Date(0);\n } else {\n return millisec == void 0 ? void 0 : new Date(millisec);\n }\n }\n /**\n * Indicates if the cookie has been persisted to a store or not.\n * @public\n */\n isPersistent() {\n return this.maxAge != null || this.expires != \"Infinity\";\n }\n /**\n * Calls {@link canonicalDomain} with the {@link Cookie.domain} property.\n * @public\n */\n canonicalizedDomain() {\n return canonicalDomain(this.domain);\n }\n /**\n * Alias for {@link Cookie.canonicalizedDomain}\n * @public\n */\n cdomain() {\n return canonicalDomain(this.domain);\n }\n /**\n * Parses a string into a Cookie object.\n *\n * @remarks\n * Note: when parsing a `Cookie` header it must be split by ';' before each Cookie string can be parsed.\n *\n * @example\n * ```\n * // parse a `Set-Cookie` header\n * const setCookieHeader = 'a=bcd; Expires=Tue, 18 Oct 2011 07:05:03 GMT'\n * const cookie = Cookie.parse(setCookieHeader)\n * cookie.key === 'a'\n * cookie.value === 'bcd'\n * cookie.expires === new Date(Date.parse('Tue, 18 Oct 2011 07:05:03 GMT'))\n * ```\n *\n * @example\n * ```\n * // parse a `Cookie` header\n * const cookieHeader = 'name=value; name2=value2; name3=value3'\n * const cookies = cookieHeader.split(';').map(Cookie.parse)\n * cookies[0].name === 'name'\n * cookies[0].value === 'value'\n * cookies[1].name === 'name2'\n * cookies[1].value === 'value2'\n * cookies[2].name === 'name3'\n * cookies[2].value === 'value3'\n * ```\n *\n * @param str - The `Set-Cookie` header or a Cookie string to parse.\n * @param options - Configures `strict` or `loose` mode for cookie parsing\n */\n static parse(str, options) {\n return parse(str, options);\n }\n /**\n * Does the reverse of {@link Cookie.toJSON}.\n *\n * @remarks\n * Any Date properties (such as .expires, .creation, and .lastAccessed) are parsed via Date.parse, not tough-cookie's parseDate, since ISO timestamps are being handled at this layer.\n *\n * @example\n * ```\n * const json = JSON.stringify({\n * key: 'alpha',\n * value: 'beta',\n * domain: 'example.com',\n * path: '/foo',\n * expires: '2038-01-19T03:14:07.000Z',\n * })\n * const cookie = Cookie.fromJSON(json)\n * cookie.key === 'alpha'\n * cookie.value === 'beta'\n * cookie.domain === 'example.com'\n * cookie.path === '/foo'\n * cookie.expires === new Date(Date.parse('2038-01-19T03:14:07.000Z'))\n * ```\n *\n * @param str - An unparsed JSON string or a value that has already been parsed as JSON\n */\n static fromJSON(str) {\n return fromJSON(str);\n }\n};\n_Cookie.cookiesCreated = 0;\n/**\n * @internal\n */\n_Cookie.sameSiteLevel = {\n strict: 3,\n lax: 2,\n none: 1\n};\n/**\n * @internal\n */\n_Cookie.sameSiteCanonical = {\n strict: \"Strict\",\n lax: \"Lax\"\n};\n/**\n * Cookie properties that will be serialized when using {@link Cookie.fromJSON} and {@link Cookie.toJSON}.\n * @public\n */\n_Cookie.serializableProperties = [\n \"key\",\n \"value\",\n \"expires\",\n \"maxAge\",\n \"domain\",\n \"path\",\n \"secure\",\n \"httpOnly\",\n \"extensions\",\n \"hostOnly\",\n \"pathIsDefault\",\n \"creation\",\n \"lastAccessed\",\n \"sameSite\"\n];\nvar Cookie = _Cookie;\n\n// lib/cookie/cookieCompare.ts\nvar MAX_TIME = 2147483647e3;\nfunction cookieCompare(a, b) {\n let cmp;\n const aPathLen = a.path ? a.path.length : 0;\n const bPathLen = b.path ? b.path.length : 0;\n cmp = bPathLen - aPathLen;\n if (cmp !== 0) {\n return cmp;\n }\n const aTime = a.creation && a.creation instanceof Date ? a.creation.getTime() : MAX_TIME;\n const bTime = b.creation && b.creation instanceof Date ? b.creation.getTime() : MAX_TIME;\n cmp = aTime - bTime;\n if (cmp !== 0) {\n return cmp;\n }\n cmp = (a.creationIndex || 0) - (b.creationIndex || 0);\n return cmp;\n}\n\n// lib/cookie/defaultPath.ts\nfunction defaultPath(path) {\n if (!path || path.slice(0, 1) !== \"/\") {\n return \"/\";\n }\n if (path === \"/\") {\n return path;\n }\n const rightSlash = path.lastIndexOf(\"/\");\n if (rightSlash === 0) {\n return \"/\";\n }\n return path.slice(0, rightSlash);\n}\n\n// lib/cookie/domainMatch.ts\nvar IP_REGEX_LOWERCASE = /(?:^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$)|(?:^(?:(?:[a-f\\d]{1,4}:){7}(?:[a-f\\d]{1,4}|:)|(?:[a-f\\d]{1,4}:){6}(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|:[a-f\\d]{1,4}|:)|(?:[a-f\\d]{1,4}:){5}(?::(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-f\\d]{1,4}){1,2}|:)|(?:[a-f\\d]{1,4}:){4}(?:(?::[a-f\\d]{1,4}){0,1}:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-f\\d]{1,4}){1,3}|:)|(?:[a-f\\d]{1,4}:){3}(?:(?::[a-f\\d]{1,4}){0,2}:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-f\\d]{1,4}){1,4}|:)|(?:[a-f\\d]{1,4}:){2}(?:(?::[a-f\\d]{1,4}){0,3}:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-f\\d]{1,4}){1,5}|:)|(?:[a-f\\d]{1,4}:){1}(?:(?::[a-f\\d]{1,4}){0,4}:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-f\\d]{1,4}){1,6}|:)|(?::(?:(?::[a-f\\d]{1,4}){0,5}:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-f\\d]{1,4}){1,7}|:)))$)/;\nfunction domainMatch(domain, cookieDomain, canonicalize) {\n if (domain == null || cookieDomain == null) {\n return void 0;\n }\n let _str;\n let _domStr;\n if (canonicalize !== false) {\n _str = canonicalDomain(domain);\n _domStr = canonicalDomain(cookieDomain);\n } else {\n _str = domain;\n _domStr = cookieDomain;\n }\n if (_str == null || _domStr == null) {\n return void 0;\n }\n if (_str == _domStr) {\n return true;\n }\n const idx = _str.lastIndexOf(_domStr);\n if (idx <= 0) {\n return false;\n }\n if (_str.length !== _domStr.length + idx) {\n return false;\n }\n if (_str.substring(idx - 1, idx) !== \".\") {\n return false;\n }\n return !IP_REGEX_LOWERCASE.test(_str);\n}\n\n// lib/cookie/secureContext.ts\nfunction isLoopbackV4(address) {\n const octets = address.split(\".\");\n return octets.length === 4 && octets[0] !== void 0 && parseInt(octets[0], 10) === 127;\n}\nfunction isLoopbackV6(address) {\n return address === \"::1\";\n}\nfunction isNormalizedLocalhostTLD(lowerHost) {\n return lowerHost.endsWith(\".localhost\");\n}\nfunction isLocalHostname(host) {\n const lowerHost = host.toLowerCase();\n return lowerHost === \"localhost\" || isNormalizedLocalhostTLD(lowerHost);\n}\nfunction hostNoBrackets(host) {\n if (host.length >= 2 && host.startsWith(\"[\") && host.endsWith(\"]\")) {\n return host.substring(1, host.length - 1);\n }\n return host;\n}\nfunction isPotentiallyTrustworthy(inputUrl, allowSecureOnLocal = true) {\n let url;\n if (typeof inputUrl === \"string\") {\n try {\n url = new URL(inputUrl);\n } catch {\n return false;\n }\n } else {\n url = inputUrl;\n }\n const scheme = url.protocol.replace(\":\", \"\").toLowerCase();\n const hostname = hostNoBrackets(url.hostname).replace(/\\.+$/, \"\");\n if (scheme === \"https\" || scheme === \"wss\") {\n return true;\n }\n if (!allowSecureOnLocal) {\n return false;\n }\n if (IP_V4_REGEX_OBJECT.test(hostname)) {\n return isLoopbackV4(hostname);\n }\n if (IP_V6_REGEX_OBJECT.test(hostname)) {\n return isLoopbackV6(hostname);\n }\n return isLocalHostname(hostname);\n}\n\n// lib/cookie/cookieJar.ts\nvar defaultSetCookieOptions = {\n loose: false,\n sameSiteContext: void 0,\n ignoreError: false,\n http: true\n};\nvar defaultGetCookieOptions = {\n http: true,\n expire: true,\n allPaths: false,\n sameSiteContext: void 0,\n sort: void 0\n};\nvar SAME_SITE_CONTEXT_VAL_ERR = 'Invalid sameSiteContext option for getCookies(); expected one of \"strict\", \"lax\", or \"none\"';\nfunction getCookieContext(url) {\n if (url && typeof url === \"object\" && \"hostname\" in url && typeof url.hostname === \"string\" && \"pathname\" in url && typeof url.pathname === \"string\" && \"protocol\" in url && typeof url.protocol === \"string\") {\n return {\n hostname: url.hostname,\n pathname: url.pathname,\n protocol: url.protocol\n };\n } else if (typeof url === \"string\") {\n try {\n return new URL(decodeURI(url));\n } catch {\n return new URL(url);\n }\n } else {\n throw new ParameterError(\"`url` argument is not a string or URL.\");\n }\n}\nfunction checkSameSiteContext(value) {\n const context = String(value).toLowerCase();\n if (context === \"none\" || context === \"lax\" || context === \"strict\") {\n return context;\n } else {\n return void 0;\n }\n}\nfunction isSecurePrefixConditionMet(cookie) {\n const startsWithSecurePrefix = typeof cookie.key === \"string\" && cookie.key.startsWith(\"__Secure-\");\n return !startsWithSecurePrefix || cookie.secure;\n}\nfunction isHostPrefixConditionMet(cookie) {\n const startsWithHostPrefix = typeof cookie.key === \"string\" && cookie.key.startsWith(\"__Host-\");\n return !startsWithHostPrefix || Boolean(\n cookie.secure && cookie.hostOnly && cookie.path != null && cookie.path === \"/\"\n );\n}\nfunction getNormalizedPrefixSecurity(prefixSecurity) {\n const normalizedPrefixSecurity = prefixSecurity.toLowerCase();\n switch (normalizedPrefixSecurity) {\n case PrefixSecurityEnum.STRICT:\n case PrefixSecurityEnum.SILENT:\n case PrefixSecurityEnum.DISABLED:\n return normalizedPrefixSecurity;\n default:\n return PrefixSecurityEnum.SILENT;\n }\n}\nvar CookieJar = class _CookieJar {\n /**\n * Creates a new `CookieJar` instance.\n *\n * @remarks\n * - If a custom store is not passed to the constructor, an in-memory store ({@link MemoryCookieStore} will be created and used.\n * - If a boolean value is passed as the `options` parameter, this is equivalent to passing `{ rejectPublicSuffixes: <value> }`\n *\n * @param store - a custom {@link Store} implementation (defaults to {@link MemoryCookieStore})\n * @param options - configures how cookies are processed by the cookie jar\n */\n constructor(store, options) {\n if (typeof options === \"boolean\") {\n options = { rejectPublicSuffixes: options };\n }\n this.rejectPublicSuffixes = options?.rejectPublicSuffixes ?? true;\n this.enableLooseMode = options?.looseMode ?? false;\n this.allowSpecialUseDomain = options?.allowSpecialUseDomain ?? true;\n this.allowSecureOnLocal = options?.allowSecureOnLocal ?? true;\n this.prefixSecurity = getNormalizedPrefixSecurity(\n options?.prefixSecurity ?? \"silent\"\n );\n this.store = store ?? new MemoryCookieStore();\n }\n callSync(fn) {\n if (!this.store.synchronous) {\n throw new Error(\n \"CookieJar store is not synchronous; use async API instead.\"\n );\n }\n let syncErr = null;\n let syncResult = void 0;\n try {\n fn.call(this, (error, result) => {\n syncErr = error;\n syncResult = result;\n });\n } catch (err) {\n syncErr = err;\n }\n if (syncErr) throw syncErr;\n return syncResult;\n }\n /**\n * @internal No doc because this is the overload implementation\n */\n setCookie(cookie, url, options, callback) {\n if (typeof options === \"function\") {\n callback = options;\n options = void 0;\n }\n const promiseCallback = createPromiseCallback(callback);\n const cb = promiseCallback.callback;\n let context;\n try {\n if (typeof url === \"string\") {\n validate(\n isNonEmptyString(url),\n callback,\n safeToString(options)\n );\n }\n context = getCookieContext(url);\n if (typeof url === \"function\") {\n return promiseCallback.reject(new Error(\"No URL was specified\"));\n }\n if (typeof options === \"function\") {\n options = defaultSetCookieOptions;\n }\n validate(typeof cb === \"function\", cb);\n if (!isNonEmptyString(cookie) && !isObject(cookie) && cookie instanceof String && cookie.length == 0) {\n return promiseCallback.resolve(void 0);\n }\n } catch (err) {\n return promiseCallback.reject(err);\n }\n const host = canonicalDomain(context.hostname) ?? null;\n const loose = options?.loose || this.enableLooseMode;\n let sameSiteContext = null;\n if (options?.sameSiteContext) {\n sameSiteContext = checkSameSiteContext(options.sameSiteContext);\n if (!sameSiteContext) {\n return promiseCallback.reject(new Error(SAME_SITE_CONTEXT_VAL_ERR));\n }\n }\n if (typeof cookie === \"string\" || cookie instanceof String) {\n const parsedCookie = Cookie.parse(cookie.toString(), { loose });\n if (!parsedCookie) {\n const err = new Error(\"Cookie failed to parse\");\n return options?.ignoreError ? promiseCallback.resolve(void 0) : promiseCallback.reject(err);\n }\n cookie = parsedCookie;\n } else if (!(cookie instanceof Cookie)) {\n const err = new Error(\n \"First argument to setCookie must be a Cookie object or string\"\n );\n return options?.ignoreError ? promiseCallback.resolve(void 0) : promiseCallback.reject(err);\n }\n const now = options?.now || /* @__PURE__ */ new Date();\n if (this.rejectPublicSuffixes && cookie.domain) {\n try {\n const cdomain = cookie.cdomain();\n const suffix = typeof cdomain === \"string\" ? getPublicSuffix(cdomain, {\n allowSpecialUseDomain: this.allowSpecialUseDomain,\n ignoreError: options?.ignoreError\n }) : null;\n if (suffix == null && !IP_V6_REGEX_OBJECT.test(cookie.domain)) {\n const err = new Error(\"Cookie has domain set to a public suffix\");\n return options?.ignoreError ? promiseCallback.resolve(void 0) : promiseCallback.reject(err);\n }\n } catch (err) {\n return options?.ignoreError ? promiseCallback.resolve(void 0) : (\n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n promiseCallback.reject(err)\n );\n }\n }\n if (cookie.domain) {\n if (!domainMatch(host ?? void 0, cookie.cdomain() ?? void 0, false)) {\n const err = new Error(\n `Cookie not in this host's domain. Cookie:${cookie.cdomain() ?? \"null\"} Request:${host ?? \"null\"}`\n );\n return options?.ignoreError ? promiseCallback.resolve(void 0) : promiseCallback.reject(err);\n }\n if (cookie.hostOnly == null) {\n cookie.hostOnly = false;\n }\n } else {\n cookie.hostOnly = true;\n cookie.domain = host;\n }\n if (!cookie.path || cookie.path[0] !== \"/\") {\n cookie.path = defaultPath(context.pathname);\n cookie.pathIsDefault = true;\n }\n if (options?.http === false && cookie.httpOnly) {\n const err = new Error(\"Cookie is HttpOnly and this isn't an HTTP API\");\n return options.ignoreError ? promiseCallback.resolve(void 0) : promiseCallback.reject(err);\n }\n if (cookie.sameSite !== \"none\" && cookie.sameSite !== void 0 && sameSiteContext) {\n if (sameSiteContext === \"none\") {\n const err = new Error(\n \"Cookie is SameSite but this is a cross-origin request\"\n );\n return options?.ignoreError ? promiseCallback.resolve(void 0) : promiseCallback.reject(err);\n }\n }\n const ignoreErrorForPrefixSecurity = this.prefixSecurity === PrefixSecurityEnum.SILENT;\n const prefixSecurityDisabled = this.prefixSecurity === PrefixSecurityEnum.DISABLED;\n if (!prefixSecurityDisabled) {\n let errorFound = false;\n let errorMsg;\n if (!isSecurePrefixConditionMet(cookie)) {\n errorFound = true;\n errorMsg = \"Cookie has __Secure prefix but Secure attribute is not set\";\n } else if (!isHostPrefixConditionMet(cookie)) {\n errorFound = true;\n errorMsg = \"Cookie has __Host prefix but either Secure or HostOnly attribute is not set or Path is not '/'\";\n }\n if (errorFound) {\n return options?.ignoreError || ignoreErrorForPrefixSecurity ? promiseCallback.resolve(void 0) : promiseCallback.reject(new Error(errorMsg));\n }\n }\n const store = this.store;\n if (!store.updateCookie) {\n store.updateCookie = async function(_oldCookie, newCookie, cb2) {\n return this.putCookie(newCookie).then(\n () => cb2?.(null),\n (error) => cb2?.(error)\n );\n };\n }\n const withCookie = function withCookie2(err, oldCookie) {\n if (err) {\n cb(err);\n return;\n }\n const next = function(err2) {\n if (err2) {\n cb(err2);\n } else if (typeof cookie === \"string\") {\n cb(null, void 0);\n } else {\n cb(null, cookie);\n }\n };\n if (oldCookie) {\n if (options && \"http\" in options && options.http === false && oldCookie.httpOnly) {\n err = new Error(\"old Cookie is HttpOnly and this isn't an HTTP API\");\n if (options.ignoreError) cb(null, void 0);\n else cb(err);\n return;\n }\n if (cookie instanceof Cookie) {\n cookie.creation = oldCookie.creation;\n cookie.creationIndex = oldCookie.creationIndex;\n cookie.lastAccessed = now;\n store.updateCookie(oldCookie, cookie, next);\n }\n } else {\n if (cookie instanceof Cookie) {\n cookie.creation = cookie.lastAccessed = now;\n store.putCookie(cookie, next);\n }\n }\n };\n store.findCookie(cookie.domain, cookie.path, cookie.key, withCookie);\n return promiseCallback.promise;\n }\n /**\n * Synchronously attempt to set the {@link Cookie} in the {@link CookieJar}.\n *\n * <strong>Note:</strong> Only works if the configured {@link Store} is also synchronous.\n *\n * @remarks\n * - If successfully persisted, the {@link Cookie} will have updated\n * {@link Cookie.creation}, {@link Cookie.lastAccessed} and {@link Cookie.hostOnly}\n * properties.\n *\n * - As per the RFC, the {@link Cookie.hostOnly} flag is set if there was no `Domain={value}`\n * attribute on the cookie string. The {@link Cookie.domain} property is set to the\n * fully-qualified hostname of `currentUrl` in this case. Matching this cookie requires an\n * exact hostname match (not a {@link domainMatch} as per usual)\n *\n * @param cookie - The cookie object or cookie string to store. A string value will be parsed into a cookie using {@link Cookie.parse}.\n * @param url - The domain to store the cookie with.\n * @param options - Configuration settings to use when storing the cookie.\n * @public\n */\n setCookieSync(cookie, url, options) {\n const setCookieFn = options ? this.setCookie.bind(this, cookie, url, options) : this.setCookie.bind(this, cookie, url);\n return this.callSync(setCookieFn);\n }\n /**\n * @internal No doc because this is the overload implementation\n */\n getCookies(url, options, callback) {\n if (typeof options === \"function\") {\n callback = options;\n options = defaultGetCookieOptions;\n } else if (options === void 0) {\n options = defaultGetCookieOptions;\n }\n const promiseCallback = createPromiseCallback(callback);\n const cb = promiseCallback.callback;\n let context;\n try {\n if (typeof url === \"string\") {\n validate(isNonEmptyString(url), cb, url);\n }\n context = getCookieContext(url);\n validate(\n isObject(options),\n cb,\n safeToString(options)\n );\n validate(typeof cb === \"function\", cb);\n } catch (parameterError) {\n return promiseCallback.reject(parameterError);\n }\n const host = canonicalDomain(context.hostname);\n const path = context.pathname || \"/\";\n const potentiallyTrustworthy = isPotentiallyTrustworthy(\n url,\n this.allowSecureOnLocal\n );\n let sameSiteLevel = 0;\n if (options.sameSiteContext) {\n const sameSiteContext = checkSameSiteContext(options.sameSiteContext);\n if (sameSiteContext == null) {\n return promiseCallback.reject(new Error(SAME_SITE_CONTEXT_VAL_ERR));\n }\n sameSiteLevel = Cookie.sameSiteLevel[sameSiteContext];\n if (!sameSiteLevel) {\n return promiseCallback.reject(new Error(SAME_SITE_CONTEXT_VAL_ERR));\n }\n }\n const http = options.http ?? true;\n const now = Date.now();\n const expireCheck = options.expire ?? true;\n const allPaths = options.allPaths ?? false;\n const store = this.store;\n function matchingCookie(c) {\n if (c.hostOnly) {\n if (c.domain != host) {\n return false;\n }\n } else {\n if (!domainMatch(host ?? void 0, c.domain ?? void 0, false)) {\n return false;\n }\n }\n if (!allPaths && typeof c.path === \"string\" && !pathMatch(path, c.path)) {\n return false;\n }\n if (c.secure && !potentiallyTrustworthy) {\n return false;\n }\n if (c.httpOnly && !http) {\n return false;\n }\n if (sameSiteLevel) {\n let cookieLevel;\n if (c.sameSite === \"lax\") {\n cookieLevel = Cookie.sameSiteLevel.lax;\n } else if (c.sameSite === \"strict\") {\n cookieLevel = Cookie.sameSiteLevel.strict;\n } else {\n cookieLevel = Cookie.sameSiteLevel.none;\n }\n if (cookieLevel > sameSiteLevel) {\n return false;\n }\n }\n const expiryTime = c.expiryTime();\n if (expireCheck && expiryTime != void 0 && expiryTime <= now) {\n store.removeCookie(c.domain, c.path, c.key, () => {\n });\n return false;\n }\n return true;\n }\n store.findCookies(\n host,\n allPaths ? null : path,\n this.allowSpecialUseDomain,\n (err, cookies) => {\n if (err) {\n cb(err);\n return;\n }\n if (cookies == null) {\n cb(null, []);\n return;\n }\n cookies = cookies.filter(matchingCookie);\n if (\"sort\" in options && options.sort !== false) {\n cookies = cookies.sort(cookieCompare);\n }\n const now2 = /* @__PURE__ */ new Date();\n for (const cookie of cookies) {\n cookie.lastAccessed = now2;\n }\n cb(null, cookies);\n }\n );\n return promiseCallback.promise;\n }\n /**\n * Synchronously retrieve the list of cookies that can be sent in a Cookie header for the\n * current URL.\n *\n * <strong>Note</strong>: Only works if the configured Store is also synchronous.\n *\n * @remarks\n * - The array of cookies returned will be sorted according to {@link cookieCompare}.\n *\n * - The {@link Cookie.lastAccessed} property will be updated on all returned cookies.\n *\n * @param url - The domain to store the cookie with.\n * @param options - Configuration settings to use when retrieving the cookies.\n */\n getCookiesSync(url, options) {\n return this.callSync(this.getCookies.bind(this, url, options)) ?? [];\n }\n /**\n * @internal No doc because this is the overload implementation\n */\n getCookieString(url, options, callback) {\n if (typeof options === \"function\") {\n callback = options;\n options = void 0;\n }\n const promiseCallback = createPromiseCallback(callback);\n const next = function(err, cookies) {\n if (err) {\n promiseCallback.callback(err);\n } else {\n promiseCallback.callback(\n null,\n cookies?.sort(cookieCompare).map((c) => c.cookieString()).join(\"; \")\n );\n }\n };\n this.getCookies(url, options, next);\n return promiseCallback.promise;\n }\n /**\n * Synchronous version of `.getCookieString()`. Accepts the same options as `.getCookies()` but returns a string suitable for a\n * `Cookie` header rather than an Array.\n *\n * <strong>Note</strong>: Only works if the configured Store is also synchronous.\n *\n * @param url - The domain to store the cookie with.\n * @param options - Configuration settings to use when retrieving the cookies.\n */\n getCookieStringSync(url, options) {\n return this.callSync(\n options ? this.getCookieString.bind(this, url, options) : this.getCookieString.bind(this, url)\n ) ?? \"\";\n }\n /**\n * @internal No doc because this is the overload implementation\n */\n getSetCookieStrings(url, options, callback) {\n if (typeof options === \"function\") {\n callback = options;\n options = void 0;\n }\n const promiseCallback = createPromiseCallback(\n callback\n );\n const next = function(err, cookies) {\n if (err) {\n promiseCallback.callback(err);\n } else {\n promiseCallback.callback(\n null,\n cookies?.map((c) => {\n return c.toString();\n })\n );\n }\n };\n this.getCookies(url, options, next);\n return promiseCallback.promise;\n }\n /**\n * Synchronous version of `.getSetCookieStrings()`. Returns an array of strings suitable for `Set-Cookie` headers.\n * Accepts the same options as `.getCookies()`.\n *\n * <strong>Note</strong>: Only works if the configured Store is also synchronous.\n *\n * @param url - The domain to store the cookie with.\n * @param options - Configuration settings to use when retrieving the cookies.\n */\n getSetCookieStringsSync(url, options = {}) {\n return this.callSync(this.getSetCookieStrings.bind(this, url, options)) ?? [];\n }\n /**\n * @internal No doc because this is the overload implementation\n */\n serialize(callback) {\n const promiseCallback = createPromiseCallback(callback);\n let type = this.store.constructor.name;\n if (isObject(type)) {\n type = null;\n }\n const serialized = {\n // The version of tough-cookie that serialized this jar. Generally a good\n // practice since future versions can make data import decisions based on\n // known past behavior. When/if this matters, use `semver`.\n version: `tough-cookie@${version}`,\n // add the store type, to make humans happy:\n storeType: type,\n // CookieJar configuration:\n rejectPublicSuffixes: this.rejectPublicSuffixes,\n enableLooseMode: this.enableLooseMode,\n allowSpecialUseDomain: this.allowSpecialUseDomain,\n prefixSecurity: getNormalizedPrefixSecurity(this.prefixSecurity),\n // this gets filled from getAllCookies:\n cookies: []\n };\n if (typeof this.store.getAllCookies !== \"function\") {\n return promiseCallback.reject(\n new Error(\n \"store does not support getAllCookies and cannot be serialized\"\n )\n );\n }\n this.store.getAllCookies((err, cookies) => {\n if (err) {\n promiseCallback.callback(err);\n return;\n }\n if (cookies == null) {\n promiseCallback.callback(null, serialized);\n return;\n }\n serialized.cookies = cookies.map((cookie) => {\n const serializedCookie = cookie.toJSON();\n delete serializedCookie.creationIndex;\n return serializedCookie;\n });\n promiseCallback.callback(null, serialized);\n });\n return promiseCallback.promise;\n }\n /**\n * Serialize the CookieJar if the underlying store supports `.getAllCookies`.\n *\n * <strong>Note</strong>: Only works if the configured Store is also synchronous.\n */\n serializeSync() {\n return this.callSync((callback) => {\n this.serialize(callback);\n });\n }\n /**\n * Alias of {@link CookieJar.serializeSync}. Allows the cookie to be serialized\n * with `JSON.stringify(cookieJar)`.\n */\n toJSON() {\n return this.serializeSync();\n }\n /**\n * Use the class method CookieJar.deserialize instead of calling this directly\n * @internal\n */\n _importCookies(serialized, callback) {\n let cookies = void 0;\n if (serialized && typeof serialized === \"object\" && inOperator(\"cookies\", serialized) && Array.isArray(serialized.cookies)) {\n cookies = serialized.cookies;\n }\n if (!cookies) {\n callback(new Error(\"serialized jar has no cookies array\"), void 0);\n return;\n }\n cookies = cookies.slice();\n const putNext = (err) => {\n if (err) {\n callback(err, void 0);\n return;\n }\n if (Array.isArray(cookies)) {\n if (!cookies.length) {\n callback(err, this);\n return;\n }\n let cookie;\n try {\n cookie = Cookie.fromJSON(cookies.shift());\n } catch (e) {\n callback(e instanceof Error ? e : new Error(), void 0);\n return;\n }\n if (cookie === void 0) {\n putNext(null);\n return;\n }\n this.store.putCookie(cookie, putNext);\n }\n };\n putNext(null);\n }\n /**\n * @internal\n */\n _importCookiesSync(serialized) {\n this.callSync(this._importCookies.bind(this, serialized));\n }\n /**\n * @internal No doc because this is the overload implementation\n */\n clone(newStore, callback) {\n if (typeof newStore === \"function\") {\n callback = newStore;\n newStore = void 0;\n }\n const promiseCallback = createPromiseCallback(callback);\n const cb = promiseCallback.callback;\n this.serialize((err, serialized) => {\n if (err) {\n return promiseCallback.reject(err);\n }\n return _CookieJar.deserialize(serialized ?? \"\", newStore, cb);\n });\n return promiseCallback.promise;\n }\n /**\n * @internal\n */\n _cloneSync(newStore) {\n const cloneFn = newStore && typeof newStore !== \"function\" ? this.clone.bind(this, newStore) : this.clone.bind(this);\n return this.callSync((callback) => {\n cloneFn(callback);\n });\n }\n /**\n * Produces a deep clone of this CookieJar. Modifications to the original do\n * not affect the clone, and vice versa.\n *\n * <strong>Note</strong>: Only works if both the configured Store and destination\n * Store are synchronous.\n *\n * @remarks\n * - When no {@link Store} is provided, a new {@link MemoryCookieStore} will be used.\n *\n * - Transferring between store types is supported so long as the source\n * implements `.getAllCookies()` and the destination implements `.putCookie()`.\n *\n * @param newStore - The target {@link Store} to clone cookies into.\n */\n cloneSync(newStore) {\n if (!newStore) {\n return this._cloneSync();\n }\n if (!newStore.synchronous) {\n throw new Error(\n \"CookieJar clone destination store is not synchronous; use async API instead.\"\n );\n }\n return this._cloneSync(newStore);\n }\n /**\n * @internal No doc because this is the overload implementation\n */\n removeAllCookies(callback) {\n const promiseCallback = createPromiseCallback(callback);\n const cb = promiseCallback.callback;\n const store = this.store;\n if (typeof store.removeAllCookies === \"function\" && store.removeAllCookies !== Store.prototype.removeAllCookies) {\n store.removeAllCookies(cb);\n return promiseCallback.promise;\n }\n store.getAllCookies((err, cookies) => {\n if (err) {\n cb(err);\n return;\n }\n if (!cookies) {\n cookies = [];\n }\n if (cookies.length === 0) {\n cb(null, void 0);\n return;\n }\n let completedCount = 0;\n const removeErrors = [];\n const removeCookieCb = function removeCookieCb2(removeErr) {\n if (removeErr) {\n removeErrors.push(removeErr);\n }\n completedCount++;\n if (completedCount === cookies.length) {\n if (removeErrors[0]) cb(removeErrors[0]);\n else cb(null, void 0);\n return;\n }\n };\n cookies.forEach((cookie) => {\n store.removeCookie(\n cookie.domain,\n cookie.path,\n cookie.key,\n removeCookieCb\n );\n });\n });\n return promiseCallback.promise;\n }\n /**\n * Removes all cookies from the CookieJar.\n *\n * <strong>Note</strong>: Only works if the configured Store is also synchronous.\n *\n * @remarks\n * - This is a new backwards-compatible feature of tough-cookie version 2.5,\n * so not all Stores will implement it efficiently. For Stores that do not\n * implement `removeAllCookies`, the fallback is to call `removeCookie` after\n * `getAllCookies`.\n *\n * - If `getAllCookies` fails or isn't implemented in the Store, an error is returned.\n *\n * - If one or more of the `removeCookie` calls fail, only the first error is returned.\n */\n removeAllCookiesSync() {\n this.callSync((callback) => {\n this.removeAllCookies(callback);\n });\n }\n /**\n * @internal No doc because this is the overload implementation\n */\n static deserialize(strOrObj, store, callback) {\n if (typeof store === \"function\") {\n callback = store;\n store = void 0;\n }\n const promiseCallback = createPromiseCallback(callback);\n let serialized;\n if (typeof strOrObj === \"string\") {\n try {\n serialized = JSON.parse(strOrObj);\n } catch (e) {\n return promiseCallback.reject(e instanceof Error ? e : new Error());\n }\n } else {\n serialized = strOrObj;\n }\n const readSerializedProperty = (property) => {\n return serialized && typeof serialized === \"object\" && inOperator(property, serialized) ? serialized[property] : void 0;\n };\n const readSerializedBoolean = (property) => {\n const value = readSerializedProperty(property);\n return typeof value === \"boolean\" ? value : void 0;\n };\n const readSerializedString = (property) => {\n const value = readSerializedProperty(property);\n return typeof value === \"string\" ? value : void 0;\n };\n const jar = new _CookieJar(store, {\n rejectPublicSuffixes: readSerializedBoolean(\"rejectPublicSuffixes\"),\n looseMode: readSerializedBoolean(\"enableLooseMode\"),\n allowSpecialUseDomain: readSerializedBoolean(\"allowSpecialUseDomain\"),\n prefixSecurity: getNormalizedPrefixSecurity(\n readSerializedString(\"prefixSecurity\") ?? \"silent\"\n )\n });\n jar._importCookies(serialized, (err) => {\n if (err) {\n promiseCallback.callback(err);\n return;\n }\n promiseCallback.callback(null, jar);\n });\n return promiseCallback.promise;\n }\n /**\n * A new CookieJar is created and the serialized {@link Cookie} values are added to\n * the underlying store. Each {@link Cookie} is added via `store.putCookie(...)` in\n * the order in which they appear in the serialization.\n *\n * <strong>Note</strong>: Only works if the configured Store is also synchronous.\n *\n * @remarks\n * - When no {@link Store} is provided, a new {@link MemoryCookieStore} will be used.\n *\n * - As a convenience, if `strOrObj` is a string, it is passed through `JSON.parse` first.\n *\n * @param strOrObj - A JSON string or object representing the deserialized cookies.\n * @param store - The underlying store to persist the deserialized cookies into.\n */\n static deserializeSync(strOrObj, store) {\n const serialized = typeof strOrObj === \"string\" ? JSON.parse(strOrObj) : strOrObj;\n const readSerializedProperty = (property) => {\n return serialized && typeof serialized === \"object\" && inOperator(property, serialized) ? serialized[property] : void 0;\n };\n const readSerializedBoolean = (property) => {\n const value = readSerializedProperty(property);\n return typeof value === \"boolean\" ? value : void 0;\n };\n const readSerializedString = (property) => {\n const value = readSerializedProperty(property);\n return typeof value === \"string\" ? value : void 0;\n };\n const jar = new _CookieJar(store, {\n rejectPublicSuffixes: readSerializedBoolean(\"rejectPublicSuffixes\"),\n looseMode: readSerializedBoolean(\"enableLooseMode\"),\n allowSpecialUseDomain: readSerializedBoolean(\"allowSpecialUseDomain\"),\n prefixSecurity: getNormalizedPrefixSecurity(\n readSerializedString(\"prefixSecurity\") ?? \"silent\"\n )\n });\n if (!jar.store.synchronous) {\n throw new Error(\n \"CookieJar store is not synchronous; use async API instead.\"\n );\n }\n jar._importCookiesSync(serialized);\n return jar;\n }\n /**\n * Alias of {@link CookieJar.deserializeSync}.\n *\n * @remarks\n * - When no {@link Store} is provided, a new {@link MemoryCookieStore} will be used.\n *\n * - As a convenience, if `strOrObj` is a string, it is passed through `JSON.parse` first.\n *\n * @param jsonString - A JSON string or object representing the deserialized cookies.\n * @param store - The underlying store to persist the deserialized cookies into.\n */\n static fromJSON(jsonString, store) {\n return _CookieJar.deserializeSync(jsonString, store);\n }\n};\n\n// lib/cookie/permutePath.ts\nfunction permutePath(path) {\n if (path === \"/\") {\n return [\"/\"];\n }\n const permutations = [path];\n while (path.length > 1) {\n const lindex = path.lastIndexOf(\"/\");\n if (lindex === 0) {\n break;\n }\n path = path.slice(0, lindex);\n permutations.push(path);\n }\n permutations.push(\"/\");\n return permutations;\n}\n\n// lib/cookie/index.ts\nfunction parse2(str, options) {\n return Cookie.parse(str, options);\n}\nfunction fromJSON2(str) {\n return Cookie.fromJSON(str);\n}\nexport {\n Cookie,\n CookieJar,\n MemoryCookieStore,\n ParameterError,\n PrefixSecurityEnum,\n Store,\n canonicalDomain,\n cookieCompare,\n defaultPath,\n domainMatch,\n formatDate,\n fromJSON2 as fromJSON,\n getPublicSuffix,\n parse2 as parse,\n parseDate,\n pathMatch,\n permuteDomain,\n permutePath,\n version\n};\n/*!\n * Copyright (c) 2015-2020, Salesforce.com, Inc.\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice,\n * this list of conditions and the following disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n * this list of conditions and the following disclaimer in the documentation\n * and/or other materials provided with the distribution.\n *\n * 3. Neither the name of Salesforce.com nor the names of its contributors may\n * be used to endorse or promote products derived from this software without\n * specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE\n * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n */\n//# sourceMappingURL=index.js.map"],"names":["pathMatch","reqPath","cookiePath","indexOf","length","startsWith","SPECIAL_USE_DOMAINS","SPECIAL_TREATMENT_DOMAINS","defaultGetPublicSuffixOptions","allowSpecialUseDomain","ignoreError","getPublicSuffix","domain","options","domainParts","split","topLevelDomain","includes","Error","publicSuffix","getDomain","allowIcannDomains","allowPrivateDomains","permuteDomain","pubSuf","slice","parts","reverse","cur","permutations","shift","push","Store","constructor","this","synchronous","findCookie","_domain","_path","_key","_callback","findCookies","_allowSpecialUseDomain","putCookie","_cookie","updateCookie","_oldCookie","_newCookie","removeCookie","removeCookies","removeAllCookies","getAllCookies","objectToString","obj","Object","prototype","toString","call","safeToStringImpl","val","seenArrays","WeakSet","String","Array","isArray","arr","join","add","map","has","safeToString","createPromiseCallback","cb","callback","resolve","reject","promise","Promise","_resolve","_reject","err","result","e","value","error","inOperator","k","o","MemoryCookieStore","super","idx","create","path","key","promiseCallback","results","pathMatcher","domainIndex","pathIndex","curPath","domains","forEach","curDomain","cookie","domainEntry","pathEntry","newCookie","cookies","keys","keyEntry","sort","a","b","creationIndex","isNonEmptyString","data","isString","isEmptyString","isObject","validate","bool","cbOrMessage","message","ParameterError","version","PrefixSecurityEnum","SILENT","STRICT","DISABLED","freeze","IP_V6_REGEX","replace","trim","IP_V6_REGEX_OBJECT","RegExp","IP_V4_REGEX_OBJECT","domainToASCII","URL","hostname","canonicalDomain","domainName","str","test","endsWith","toLowerCase","formatDate","date","toUTCString","DATE_DELIM","MONTH_TO_NUM","parseDigits","token","minDigits","maxDigits","trailingOK","count","c","charCodeAt","parseInt","parseTime","i","numPart","num","parseMonth","parseDate","cookieDate","tokens","hour","minute","second","dayOfMonth","month","year","Date","UTC","COOKIE_OCTETS","PATH_VALUE","CONTROL_CHARS","TERMINATORS","parseCookiePair","cookiePair","looseMode","cookieName","cookieValue","firstEq","t","terminator","terminatorIdx","trimTerminator","substring","Cookie","fromJSON","JSON","parse","serializableProperties","prop","cookieDefaults","every","item","expires","maxAge","secure","httpOnly","extensions","hostOnly","pathIsDefault","creation","lastAccessed","sameSite","_Cookie","defineProperty","configurable","enumerable","writable","cookiesCreated","Symbol","for","now","createAge","getTime","accessAge","toJSON","toISOString","clone","cdomain","match","setExpires","exp","setMaxAge","age","Infinity","cookieString","sameSiteCanonical","lax","strict","ext","TTL","expiryTime","relativeTo","expiryDate","millisec","isPersistent","canonicalizedDomain","firstSemi","loose","unparsed","cookie_avs","av","av_sep","av_key","av_value","delta","sameSiteLevel","none","MAX_TIME","cookieCompare","cmp","aPathLen","defaultPath","rightSlash","lastIndexOf","IP_REGEX_LOWERCASE","domainMatch","cookieDomain","canonicalize","_str","_domStr","isPotentiallyTrustworthy","inputUrl","allowSecureOnLocal","url","scheme","protocol","host","address","octets","isLoopbackV4","lowerHost","isNormalizedLocalhostTLD","isLocalHostname","defaultSetCookieOptions","sameSiteContext","http","defaultGetCookieOptions","expire","allPaths","SAME_SITE_CONTEXT_VAL_ERR","getCookieContext","pathname","decodeURI","checkSameSiteContext","context","getNormalizedPrefixSecurity","prefixSecurity","normalizedPrefixSecurity","_CookieJar","store","rejectPublicSuffixes","enableLooseMode","callSync","fn","syncResult","syncErr","setCookie","parsedCookie","ignoreErrorForPrefixSecurity","errorMsg","errorFound","isSecurePrefixConditionMet","Boolean","isHostPrefixConditionMet","async","cb2","then","oldCookie","next","err2","setCookieSync","setCookieFn","bind","getCookies","parameterError","potentiallyTrustworthy","expireCheck","matchingCookie","cookieLevel","filter","now2","getCookiesSync","getCookieString","getCookieStringSync","getSetCookieStrings","getSetCookieStringsSync","serialize","type","name","serialized","storeType","serializedCookie","serializeSync","_importCookies","putNext","_importCookiesSync","newStore","deserialize","_cloneSync","cloneFn","cloneSync","completedCount","removeErrors","removeCookieCb","removeErr","removeAllCookiesSync","strOrObj","readSerializedProperty","property","readSerializedBoolean","jar","readSerializedString","deserializeSync","jsonString"],"mappings":"gGACA,SAASA,EAAUC,EAASC,GAC1B,GAAIA,IAAeD,EACjB,OAAO,EAGT,GAAY,IADAA,EAAQE,QAAQD,GACb,CACb,GAA0C,MAAtCA,EAAWA,EAAWE,OAAS,GACjC,OAAO,EAET,GAAIH,EAAQI,WAAWH,IAA8C,MAA/BD,EAAQC,EAAWE,QACvD,OAAO,CAEX,CACA,OAAO,CACT,CAIA,IAAIE,EAAsB,CAAC,QAAS,UAAW,UAAW,YAAa,QACnEC,EAA4B,CAAC,YAAa,WAC1CC,EAAgC,CAClCC,uBAAuB,EACvBC,aAAa,GAEf,SAASC,EAAgBC,EAAQC,EAAU,IACzCA,EAAU,IAAKL,KAAkCK,GACjD,MAAMC,EAAcF,EAAOG,MAAM,KAC3BC,EAAiBF,EAAYA,EAAYV,OAAS,GAClDK,IAA0BI,EAAQJ,sBAClCC,IAAgBG,EAAQH,YAC9B,GAAID,QAA4C,IAAnBO,GAA6BV,EAAoBW,SAASD,GAAiB,CACtG,GAAIF,EAAYV,OAAS,EAAG,CAE1B,MAAO,GADmBU,EAAYA,EAAYV,OAAS,MAC5BY,GACjC,CAAO,GAAIT,EAA0BU,SAASD,GAC5C,OAAOA,CAEX,CACA,IA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AAwBjK,KAAKC,MAAMgK,GAAYA,EACnEC,EAA0BC,GACvBnB,GAAoC,iBAAfA,GAA2B3P,EAAW8Q,EAAUnB,GAAcA,EAAWmB,QAAY,EAE7GC,EAAyBD,IAC7B,MAAMhR,EAAQ+Q,EAAuBC,GACrC,MAAwB,kBAAVhR,EAAsBA,OAAQ,GAMxCkR,EAAM,IAAI9D,EAAWC,EAAO,CAChCC,qBAAsB2D,EAAsB,wBAC5C/K,UAAW+K,EAAsB,mBACjC3V,sBAAuB2V,EAAsB,yBAC7C/D,eAAgBD,GARW,CAAC+D,IAC5B,MAAMhR,EAAQ+Q,EAAuBC,GACrC,MAAwB,iBAAVhR,EAAqBA,OAAQ,GAOzCmR,CAAqB,mBAAqB,YAG9C,IAAKD,EAAI7D,MAAMrQ,YACb,MAAM,IAAIjB,MACR,8DAIJ,OADAmV,EAAIf,mBAAmBN,GAChBqB,CACT,CAYA,eAAOtK,CAASyK,EAAYhE,GAC1B,OAAOD,EAAWgE,gBAAgBC,EAAYhE,EAChD","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import{getDomain as e}from"../../../../tldts@7.0.19/node_modules/tldts/dist/es6/index.js";function t(e,t){if(t===e)return!0;if(0===e.indexOf(t)){if("/"===t[t.length-1])return!0;if(e.startsWith(t)&&"/"===e[t.length])return!0}return!1}var i=["local","example","invalid","localhost","test"],n=["localhost","invalid"],o={allowSpecialUseDomain:!1,ignoreError:!1};function r(t,r={}){r={...o,...r};const s=t.split("."),a=s[s.length-1],c=!!r.allowSpecialUseDomain,l=!!r.ignoreError;if(c&&void 0!==a&&i.includes(a)){if(s.length>1){return`${s[s.length-2]}.${a}`}if(n.includes(a))return a}if(!l&&void 0!==a&&i.includes(a))throw new Error(`Cookie has domain set to the public suffix "${a}" which is a special use domain. To allow this, configure your CookieJar with {allowSpecialUseDomain: true, rejectPublicSuffixes: false}.`);const u=e(t,{allowIcannDomains:!0,allowPrivateDomains:!0});if(u)return u}function s(e,t){const i=r(e,{allowSpecialUseDomain:t});if(!i)return;if(i==e)return[e];"."==e.slice(-1)&&(e=e.slice(0,-1));const n=e.slice(0,-(i.length+1)).split(".").reverse();let o=i;const s=[o];for(;n.length;){o=`${n.shift()}.${o}`,s.push(o)}return s}var a=class{constructor(){this.synchronous=!1}findCookie(e,t,i,n){throw new Error("findCookie is not implemented")}findCookies(e,t,i=!1,n){throw new Error("findCookies is not implemented")}putCookie(e,t){throw new Error("putCookie is not implemented")}updateCookie(e,t,i){throw new Error("updateCookie is not implemented")}removeCookie(e,t,i,n){throw new Error("removeCookie is not implemented")}removeCookies(e,t,i){throw new Error("removeCookies is not implemented")}removeAllCookies(e){throw new Error("removeAllCookies is not implemented")}getAllCookies(e){throw new Error("getAllCookies is not implemented (therefore jar cannot be serialized)")}},c=e=>Object.prototype.toString.call(e),l=(e,t=new WeakSet)=>"object"!=typeof e||null===e?String(e):"function"==typeof e.toString?Array.isArray(e)?((e,t)=>"function"!=typeof e.join?c(e):(t.add(e),e.map((e=>null==e||t.has(e)?"":l(e,t))).join()))(e,t):String(e):c(e),u=e=>l(e);function d(e){let t,i,n;const o=new Promise(((e,t)=>{i=e,n=t}));return t="function"==typeof e?(t,i)=>{try{t?e(t):e(null,i)}catch(e){n(e instanceof Error?e:new Error)}}:(e,t)=>{try{e?n(e):i(t)}catch(e){n(e instanceof Error?e:new Error)}},{promise:o,callback:t,resolve:e=>(t(null,e),o),reject:e=>(t(e),o)}}function f(e,t){return e in t}var h=class extends a{constructor(){super(),this.synchronous=!0,this.idx=Object.create(null)}findCookie(e,t,i,n){const o=d(n);if(null==e||null==t||null==i)return o.resolve(void 0);const r=this.idx[e]?.[t]?.[i];return o.resolve(r)}findCookies(e,i,n=!1,o){"function"==typeof n&&(o=n,n=!0);const r=[],a=d(o);if(!e)return a.resolve([]);let c;c=i?function(e){for(const n in e)if(t(i,n)){const t=e[n];for(const e in t){const i=t[e];i&&r.push(i)}}}:function(e){for(const t in e){const i=e[t];for(const e in i){const t=i[e];t&&r.push(t)}}};const l=s(e,n)||[e],u=this.idx;return l.forEach((e=>{const t=u[e];t&&c(t)})),a.resolve(r)}putCookie(e,t){const i=d(t),{domain:n,path:o,key:r}=e;if(null==n||null==o||null==r)return i.resolve(void 0);const s=this.idx[n]??Object.create(null);this.idx[n]=s;const a=s[o]??Object.create(null);return s[o]=a,a[r]=e,i.resolve(void 0)}updateCookie(e,t,i){if(!i)return this.putCookie(t);this.putCookie(t,i)}removeCookie(e,t,i,n){const o=d(n);return delete this.idx[e]?.[t]?.[i],o.resolve(void 0)}removeCookies(e,t,i){const n=d(i),o=this.idx[e];return o&&(t?delete o[t]:delete this.idx[e]),n.resolve(void 0)}removeAllCookies(e){const t=d(e);return this.idx=Object.create(null),t.resolve(void 0)}getAllCookies(e){const t=d(e),i=[],n=this.idx;return Object.keys(n).forEach((e=>{const t=n[e]??{};Object.keys(t).forEach((e=>{const n=t[e]??{};Object.keys(n).forEach((e=>{const t=n[e];null!=t&&i.push(t)}))}))})),i.sort(((e,t)=>(e.creationIndex||0)-(t.creationIndex||0))),t.resolve(i)}};function p(e){return y(e)&&""!==e}function m(e){return""===e||e instanceof String&&""===e.toString()}function y(e){return"string"==typeof e||e instanceof String}function x(e){return"[object Object]"===c(e)}function g(e,t,i){if(e)return;const n="function"==typeof t?t:void 0;let o="function"==typeof t?i:t;x(o)||(o="[object Object]");const r=new S(u(o));if(!n)throw r;n(r)}var S=class extends Error{},k="6.0.0",v={SILENT:"silent",STRICT:"strict",DISABLED:"unsafe-disabled"};Object.freeze(v);var C="\n\\[?(?:\n(?:[a-fA-F\\d]{1,4}:){7}(?:[a-fA-F\\d]{1,4}|:)|\n(?:[a-fA-F\\d]{1,4}:){6}(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|:[a-fA-F\\d]{1,4}|:)|\n(?:[a-fA-F\\d]{1,4}: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/\n/g,"").trim(),w=new RegExp(`^${C}$`),b=new RegExp("^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$");function A(e){return new URL(`http://${e}`).hostname}function E(e){if(null==e)return;let t=e.trim().replace(/^\./,"");return w.test(t)?(t.startsWith("[")||(t="["+t),t.endsWith("]")||(t+="]"),A(t).slice(1,-1)):/[^\u0001-\u007f]/.test(t)?A(t):t.toLowerCase()}function O(e){return e.toUTCString()}var I=/[\x09\x20-\x2F\x3B-\x40\x5B-\x60\x7B-\x7E]/,j=0,D=1,L=2,$=3,P=4,T=5,U=6,F=7,z=8,_=9,N=10,J=11;function M(e,t,i,n){let o=0;for(;o<e.length;){const t=e.charCodeAt(o);if(t<=47||t>=58)break;o++}if(!(o<t||o>i)&&(n||o==e.length))return parseInt(e.slice(0,o),10)}function R(e){const t=e.split(":"),i=[0,0,0];if(3===t.length){for(let e=0;e<3;e++){const n=2==e,o=t[e];if(void 0===o)return;const r=M(o,1,2,n);if(void 0===r)return;i[e]=r}return i}}function B(e){switch(e=String(e).slice(0,3).toLowerCase()){case"jan":return j;case"feb":return D;case"mar":return L;case"apr":return $;case"may":return P;case"jun":return T;case"jul":return U;case"aug":return F;case"sep":return z;case"oct":return _;case"nov":return N;case"dec":return J;default:return}}function W(e){if(!e)return;const t=e.split(I);let i,n,o,r,s,a;for(let e=0;e<t.length;e++){const c=(t[e]??"").trim();if(c.length){if(void 0===o){const e=R(c);if(e){i=e[0],n=e[1],o=e[2];continue}}if(void 0===r){const e=M(c,1,2,!0);if(void 0!==e){r=e;continue}}if(void 0===s){const e=B(c);if(void 0!==e){s=e;continue}}if(void 0===a){const e=M(c,2,4,!0);void 0!==e&&(a=e,a>=70&&a<=99?a+=1900:a>=0&&a<=69&&(a+=2e3))}}}return void 0===r||void 0===s||void 0===a||void 0===i||void 0===n||void 0===o||r<1||r>31||a<1601||i>23||n>59||o>59?void 0:new Date(Date.UTC(a,s,r,i,n,o))}var H=/^[\x21\x23-\x2B\x2D-\x3A\x3C-\x5B\x5D-\x7E]+$/,q=/[\x20-\x3A\x3C-\x7E]+/,Z=/[\x00-\x1F]/,G=["\n","\r","\0"];function K(e,t){let i,n,o=(e=function(e){if(m(e))return e;for(let t=0;t<G.length;t++){const i=G[t],n=i?e.indexOf(i):-1;-1!==n&&(e=e.slice(0,n))}return e}(e)).indexOf("=");if(t)0===o&&(o=(e=e.substring(1)).indexOf("="));else if(o<=0)return;if(o<=0?(i="",n=e.trim()):(i=e.slice(0,o).trim(),n=e.slice(o+1).trim()),Z.test(i)||Z.test(n))return;const r=new Y;return r.key=i,r.value=n,r}function Q(e){if(!e||m(e))return;let t;if("string"==typeof e)try{t=JSON.parse(e)}catch{return}else t=e;const i=new Y;return Y.serializableProperties.forEach((e=>{if(t&&"object"==typeof t&&f(e,t)){const n=t[e];if(void 0===n)return;if(f(e,V)&&n===V[e])return;switch(e){case"key":case"value":case"sameSite":"string"==typeof n&&(i[e]=n);break;case"expires":case"creation":case"lastAccessed":"number"==typeof n||"string"==typeof n||n instanceof Date?i[e]="Infinity"==t[e]?"Infinity":new Date(n):null===n&&(i[e]=null);break;case"maxAge":"number"!=typeof n&&"Infinity"!==n&&"-Infinity"!==n||(i[e]=n);break;case"domain":case"path":"string"!=typeof n&&null!==n||(i[e]=n);break;case"secure":case"httpOnly":"boolean"==typeof n&&(i[e]=n);break;case"extensions":Array.isArray(n)&&n.every((e=>"string"==typeof e))&&(i[e]=n);break;case"hostOnly":case"pathIsDefault":"boolean"!=typeof n&&null!==n||(i[e]=n)}}})),i}var V={key:"",value:"",expires:"Infinity",maxAge:null,domain:null,path:null,secure:!1,httpOnly:!1,extensions:null,hostOnly:null,pathIsDefault:null,creation:null,lastAccessed:null,sameSite:void 0},X=class e{constructor(t={}){this.key=t.key??V.key,this.value=t.value??V.value,this.expires=t.expires??V.expires,this.maxAge=t.maxAge??V.maxAge,this.domain=t.domain??V.domain,this.path=t.path??V.path,this.secure=t.secure??V.secure,this.httpOnly=t.httpOnly??V.httpOnly,this.extensions=t.extensions??V.extensions,this.creation=t.creation??V.creation,this.hostOnly=t.hostOnly??V.hostOnly,this.pathIsDefault=t.pathIsDefault??V.pathIsDefault,this.lastAccessed=t.lastAccessed??V.lastAccessed,this.sameSite=t.sameSite??V.sameSite,this.creation=t.creation??new Date,Object.defineProperty(this,"creationIndex",{configurable:!1,enumerable:!1,writable:!0,value:++e.cookiesCreated}),this.creationIndex=e.cookiesCreated}[Symbol.for("nodejs.util.inspect.custom")](){const e=Date.now(),t=null!=this.hostOnly?this.hostOnly.toString():"?",i=this.creation&&"Infinity"!==this.creation?`${String(e-this.creation.getTime())}ms`:"?",n=this.lastAccessed&&"Infinity"!==this.lastAccessed?`${String(e-this.lastAccessed.getTime())}ms`:"?";return`Cookie="${this.toString()}; hostOnly=${t}; aAge=${n}; cAge=${i}"`}toJSON(){const t={};for(const i of e.serializableProperties){const e=this[i];if(e!==V[i])switch(i){case"key":case"value":case"sameSite":"string"==typeof e&&(t[i]=e);break;case"expires":case"creation":case"lastAccessed":"number"==typeof e||"string"==typeof e||e instanceof Date?t[i]="Infinity"==e?"Infinity":new Date(e).toISOString():null===e&&(t[i]=null);break;case"maxAge":"number"!=typeof e&&"Infinity"!==e&&"-Infinity"!==e||(t[i]=e);break;case"domain":case"path":"string"!=typeof e&&null!==e||(t[i]=e);break;case"secure":case"httpOnly":"boolean"==typeof e&&(t[i]=e);break;case"extensions":Array.isArray(e)&&(t[i]=e);break;case"hostOnly":case"pathIsDefault":"boolean"!=typeof e&&null!==e||(t[i]=e)}}return t}clone(){return Q(this.toJSON())}validate(){if(!this.value||!H.test(this.value))return!1;if(!("Infinity"==this.expires||this.expires instanceof Date||W(this.expires)))return!1;if(null!=this.maxAge&&"Infinity"!==this.maxAge&&("-Infinity"===this.maxAge||this.maxAge<=0))return!1;if(null!=this.path&&!q.test(this.path))return!1;const e=this.cdomain();if(e){if(e.match(/\.$/))return!1;if(null==r(e))return!1}return!0}setExpires(e){e instanceof Date?this.expires=e:this.expires=W(e)||"Infinity"}setMaxAge(e){this.maxAge=e===1/0?"Infinity":e===-1/0?"-Infinity":e}cookieString(){const e=this.value||"";return this.key?`${this.key}=${e}`:e}toString(){let t=this.cookieString();return"Infinity"!=this.expires&&this.expires instanceof Date&&(t+=`; Expires=${O(this.expires)}`),null!=this.maxAge&&this.maxAge!=1/0&&(t+=`; Max-Age=${String(this.maxAge)}`),this.domain&&!this.hostOnly&&(t+=`; Domain=${this.domain}`),this.path&&(t+=`; Path=${this.path}`),this.secure&&(t+="; Secure"),this.httpOnly&&(t+="; HttpOnly"),this.sameSite&&"none"!==this.sameSite&&(this.sameSite.toLowerCase()===e.sameSiteCanonical.lax.toLowerCase()?t+=`; SameSite=${e.sameSiteCanonical.lax}`:this.sameSite.toLowerCase()===e.sameSiteCanonical.strict.toLowerCase()?t+=`; SameSite=${e.sameSiteCanonical.strict}`:t+=`; SameSite=${this.sameSite}`),this.extensions&&this.extensions.forEach((e=>{t+=`; ${e}`})),t}TTL(e=Date.now()){if(null!=this.maxAge&&"number"==typeof this.maxAge)return this.maxAge<=0?0:1e3*this.maxAge;const t=this.expires;return"Infinity"===t?1/0:(t?.getTime()??e)-(e||Date.now())}expiryTime(e){if(null!=this.maxAge){const t=e||this.lastAccessed||new Date,i="number"==typeof this.maxAge?this.maxAge:-1/0,n=i<=0?-1/0:1e3*i;return"Infinity"===t?1/0:t.getTime()+n}return"Infinity"==this.expires?1/0:this.expires?this.expires.getTime():void 0}expiryDate(e){const t=this.expiryTime(e);return t==1/0?new Date(2147483647e3):t==-1/0?new Date(0):null==t?void 0:new Date(t)}isPersistent(){return null!=this.maxAge||"Infinity"!=this.expires}canonicalizedDomain(){return E(this.domain)}cdomain(){return E(this.domain)}static parse(e,t){return function(e,t){if(m(e)||!y(e))return;const i=(e=e.trim()).indexOf(";"),n=K(-1===i?e:e.slice(0,i),t?.loose??!1);if(!n)return;if(-1===i)return n;const o=e.slice(i+1).trim();if(0===o.length)return n;const r=o.split(";");for(;r.length;){const e=(r.shift()??"").trim();if(0===e.length)continue;const t=e.indexOf("=");let i,o;switch(-1===t?(i=e,o=null):(i=e.slice(0,t),o=e.slice(t+1)),i=i.trim().toLowerCase(),o&&(o=o.trim()),i){case"expires":if(o){const e=W(o);e&&(n.expires=e)}break;case"max-age":if(o&&/^-?[0-9]+$/.test(o)){const e=parseInt(o,10);n.setMaxAge(e)}break;case"domain":if(o){const e=o.trim().replace(/^\./,"");e&&(n.domain=e.toLowerCase())}break;case"path":n.path=o&&"/"===o[0]?o:null;break;case"secure":n.secure=!0;break;case"httponly":n.httpOnly=!0;break;case"samesite":switch(o?o.toLowerCase():""){case"strict":n.sameSite="strict";break;case"lax":n.sameSite="lax";break;case"none":n.sameSite="none";break;default:n.sameSite=void 0}break;default:n.extensions=n.extensions||[],n.extensions.push(e)}}return n}(e,t)}static fromJSON(e){return Q(e)}};X.cookiesCreated=0,X.sameSiteLevel={strict:3,lax:2,none:1},X.sameSiteCanonical={strict:"Strict",lax:"Lax"},X.serializableProperties=["key","value","expires","maxAge","domain","path","secure","httpOnly","extensions","hostOnly","pathIsDefault","creation","lastAccessed","sameSite"];var Y=X,ee=2147483647e3;function te(e,t){let i;const n=e.path?e.path.length:0;if(i=(t.path?t.path.length:0)-n,0!==i)return i;return i=(e.creation&&e.creation instanceof Date?e.creation.getTime():ee)-(t.creation&&t.creation instanceof Date?t.creation.getTime():ee),0!==i||(i=(e.creationIndex||0)-(t.creationIndex||0)),i}function ie(e){if(!e||"/"!==e.slice(0,1))return"/";if("/"===e)return e;const t=e.lastIndexOf("/");return 0===t?"/":e.slice(0,t)}var ne=/(?:^(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}$)|(?:^(?:(?:[a-f\d]{1,4}:){7}(?:[a-f\d]{1,4}|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;if(n==o)return!0;const r=n.lastIndexOf(o);return!(r<=0)&&(n.length===o.length+r&&("."===n.substring(r-1,r)&&!ne.test(n)))}function re(e,t=!0){let i;if("string"==typeof e)try{i=new URL(e)}catch{return!1}else i=e;const n=i.protocol.replace(":","").toLowerCase(),o=(r=i.hostname,r.length>=2&&r.startsWith("[")&&r.endsWith("]")?r.substring(1,r.length-1):r).replace(/\.+$/,"");var r;return"https"===n||"wss"===n||!!t&&(b.test(o)?function(e){const t=e.split(".");return 4===t.length&&void 0!==t[0]&&127===parseInt(t[0],10)}(o):w.test(o)?"::1"===o:function(e){const t=e.toLowerCase();return"localhost"===t||function(e){return e.endsWith(".localhost")}(t)}(o))}var se={loose:!1,sameSiteContext:void 0,ignoreError:!1,http:!0},ae={http:!0,expire:!0,allPaths:!1,sameSiteContext:void 0,sort:void 0},ce='Invalid sameSiteContext option for getCookies(); expected one of "strict", "lax", or "none"';function le(e){if(e&&"object"==typeof e&&"hostname"in e&&"string"==typeof e.hostname&&"pathname"in e&&"string"==typeof e.pathname&&"protocol"in e&&"string"==typeof e.protocol)return{hostname:e.hostname,pathname:e.pathname,protocol:e.protocol};if("string"!=typeof e)throw new S("`url` argument is not a string or URL.");try{return new URL(decodeURI(e))}catch{return new URL(e)}}function ue(e){const t=String(e).toLowerCase();return"none"===t||"lax"===t||"strict"===t?t:void 0}function de(e){const t=e.toLowerCase();switch(t){case v.STRICT:case v.SILENT:case v.DISABLED:return t;default:return v.SILENT}}var fe=class e{constructor(e,t){"boolean"==typeof t&&(t={rejectPublicSuffixes:t}),this.rejectPublicSuffixes=t?.rejectPublicSuffixes??!0,this.enableLooseMode=t?.looseMode??!1,this.allowSpecialUseDomain=t?.allowSpecialUseDomain??!0,this.allowSecureOnLocal=t?.allowSecureOnLocal??!0,this.prefixSecurity=de(t?.prefixSecurity??"silent"),this.store=e??new h}callSync(e){if(!this.store.synchronous)throw new Error("CookieJar store is not synchronous; use async API instead.");let t,i=null;try{e.call(this,((e,n)=>{i=e,t=n}))}catch(e){i=e}if(i)throw i;return t}setCookie(e,t,i,n){"function"==typeof i&&(n=i,i=void 0);const o=d(n),s=o.callback;let a;try{if("string"==typeof t&&g(p(t),n,u(i)),a=le(t),"function"==typeof t)return o.reject(new Error("No URL was specified"));if("function"==typeof i&&(i=se),g("function"==typeof s,s),!p(e)&&!x(e)&&e instanceof String&&0==e.length)return o.resolve(void 0)}catch(e){return o.reject(e)}const c=E(a.hostname)??null,l=i?.loose||this.enableLooseMode;let f=null;if(i?.sameSiteContext&&(f=ue(i.sameSiteContext),!f))return o.reject(new Error(ce));if("string"==typeof e||e instanceof String){const t=Y.parse(e.toString(),{loose:l});if(!t){const e=new Error("Cookie failed to parse");return i?.ignoreError?o.resolve(void 0):o.reject(e)}e=t}else if(!(e instanceof Y)){const e=new Error("First argument to setCookie must be a Cookie object or string");return i?.ignoreError?o.resolve(void 0):o.reject(e)}const h=i?.now||new Date;if(this.rejectPublicSuffixes&&e.domain)try{const t=e.cdomain();if(null==("string"==typeof t?r(t,{allowSpecialUseDomain:this.allowSpecialUseDomain,ignoreError:i?.ignoreError}):null)&&!w.test(e.domain)){const e=new Error("Cookie has domain set to a public suffix");return i?.ignoreError?o.resolve(void 0):o.reject(e)}}catch(e){return i?.ignoreError?o.resolve(void 0):o.reject(e)}if(e.domain){if(!oe(c??void 0,e.cdomain()??void 0)){const t=new Error(`Cookie not in this host's domain. Cookie:${e.cdomain()??"null"} Request:${c??"null"}`);return i?.ignoreError?o.resolve(void 0):o.reject(t)}null==e.hostOnly&&(e.hostOnly=!1)}else e.hostOnly=!0,e.domain=c;if(e.path&&"/"===e.path[0]||(e.path=ie(a.pathname),e.pathIsDefault=!0),!1===i?.http&&e.httpOnly){const e=new Error("Cookie is HttpOnly and this isn't an HTTP API");return i.ignoreError?o.resolve(void 0):o.reject(e)}if("none"!==e.sameSite&&void 0!==e.sameSite&&f&&"none"===f){const e=new Error("Cookie is SameSite but this is a cross-origin request");return i?.ignoreError?o.resolve(void 0):o.reject(e)}const m=this.prefixSecurity===v.SILENT;if(!(this.prefixSecurity===v.DISABLED)){let t,n=!1;if(!function(e){return!("string"==typeof e.key&&e.key.startsWith("__Secure-"))||e.secure}(e)?(n=!0,t="Cookie has __Secure prefix but Secure attribute is not set"):function(e){return!("string"==typeof e.key&&e.key.startsWith("__Host-"))||Boolean(e.secure&&e.hostOnly&&null!=e.path&&"/"===e.path)}(e)||(n=!0,t="Cookie has __Host prefix but either Secure or HostOnly attribute is not set or Path is not '/'"),n)return i?.ignoreError||m?o.resolve(void 0):o.reject(new Error(t))}const y=this.store;y.updateCookie||(y.updateCookie=async function(e,t,i){return this.putCookie(t).then((()=>i?.(null)),(e=>i?.(e)))});return y.findCookie(e.domain,e.path,e.key,(function(t,n){if(t)return void s(t);const o=function(t){t?s(t):s(null,"string"==typeof e?void 0:e)};if(n){if(i&&"http"in i&&!1===i.http&&n.httpOnly)return t=new Error("old Cookie is HttpOnly and this isn't an HTTP API"),void(i.ignoreError?s(null,void 0):s(t));e instanceof Y&&(e.creation=n.creation,e.creationIndex=n.creationIndex,e.lastAccessed=h,y.updateCookie(n,e,o))}else e instanceof Y&&(e.creation=e.lastAccessed=h,y.putCookie(e,o))})),o.promise}setCookieSync(e,t,i){const n=i?this.setCookie.bind(this,e,t,i):this.setCookie.bind(this,e,t);return this.callSync(n)}getCookies(e,i,n){"function"==typeof i?(n=i,i=ae):void 0===i&&(i=ae);const o=d(n),r=o.callback;let s;try{"string"==typeof e&&g(p(e),r,e),s=le(e),g(x(i),r,u(i)),g("function"==typeof r,r)}catch(e){return o.reject(e)}const a=E(s.hostname),c=s.pathname||"/",l=re(e,this.allowSecureOnLocal);let f=0;if(i.sameSiteContext){const e=ue(i.sameSiteContext);if(null==e)return o.reject(new Error(ce));if(f=Y.sameSiteLevel[e],!f)return o.reject(new Error(ce))}const h=i.http??!0,m=Date.now(),y=i.expire??!0,S=i.allPaths??!1,k=this.store;function v(e){if(e.hostOnly){if(e.domain!=a)return!1}else if(!oe(a??void 0,e.domain??void 0))return!1;if(!S&&"string"==typeof e.path&&!t(c,e.path))return!1;if(e.secure&&!l)return!1;if(e.httpOnly&&!h)return!1;if(f){let t;if(t="lax"===e.sameSite?Y.sameSiteLevel.lax:"strict"===e.sameSite?Y.sameSiteLevel.strict:Y.sameSiteLevel.none,t>f)return!1}const i=e.expiryTime();return!(y&&null!=i&&i<=m)||(k.removeCookie(e.domain,e.path,e.key,(()=>{})),!1)}return k.findCookies(a,S?null:c,this.allowSpecialUseDomain,((e,t)=>{if(e)return void r(e);if(null==t)return void r(null,[]);t=t.filter(v),"sort"in i&&!1!==i.sort&&(t=t.sort(te));const n=new Date;for(const e of t)e.lastAccessed=n;r(null,t)})),o.promise}getCookiesSync(e,t){return this.callSync(this.getCookies.bind(this,e,t))??[]}getCookieString(e,t,i){"function"==typeof t&&(i=t,t=void 0);const n=d(i);return this.getCookies(e,t,(function(e,t){e?n.callback(e):n.callback(null,t?.sort(te).map((e=>e.cookieString())).join("; "))})),n.promise}getCookieStringSync(e,t){return this.callSync(t?this.getCookieString.bind(this,e,t):this.getCookieString.bind(this,e))??""}getSetCookieStrings(e,t,i){"function"==typeof t&&(i=t,t=void 0);const n=d(i);return this.getCookies(e,t,(function(e,t){e?n.callback(e):n.callback(null,t?.map((e=>e.toString())))})),n.promise}getSetCookieStringsSync(e,t={}){return this.callSync(this.getSetCookieStrings.bind(this,e,t))??[]}serialize(e){const t=d(e);let i=this.store.constructor.name;x(i)&&(i=null);const n={version:`tough-cookie@${k}`,storeType:i,rejectPublicSuffixes:this.rejectPublicSuffixes,enableLooseMode:this.enableLooseMode,allowSpecialUseDomain:this.allowSpecialUseDomain,prefixSecurity:de(this.prefixSecurity),cookies:[]};return"function"!=typeof this.store.getAllCookies?t.reject(new Error("store does not support getAllCookies and cannot be serialized")):(this.store.getAllCookies(((e,i)=>{e?t.callback(e):null!=i?(n.cookies=i.map((e=>{const t=e.toJSON();return delete t.creationIndex,t})),t.callback(null,n)):t.callback(null,n)})),t.promise)}serializeSync(){return this.callSync((e=>{this.serialize(e)}))}toJSON(){return this.serializeSync()}_importCookies(e,t){let i;if(e&&"object"==typeof e&&f("cookies",e)&&Array.isArray(e.cookies)&&(i=e.cookies),!i)return void t(new Error("serialized jar has no cookies array"),void 0);i=i.slice();const n=e=>{if(e)t(e,void 0);else if(Array.isArray(i)){if(!i.length)return void t(e,this);let o;try{o=Y.fromJSON(i.shift())}catch(e){return void t(e instanceof Error?e:new Error,void 0)}if(void 0===o)return void n(null);this.store.putCookie(o,n)}};n(null)}_importCookiesSync(e){this.callSync(this._importCookies.bind(this,e))}clone(t,i){"function"==typeof t&&(i=t,t=void 0);const n=d(i),o=n.callback;return this.serialize(((i,r)=>i?n.reject(i):e.deserialize(r??"",t,o))),n.promise}_cloneSync(e){const t=e&&"function"!=typeof e?this.clone.bind(this,e):this.clone.bind(this);return this.callSync((e=>{t(e)}))}cloneSync(e){if(!e)return this._cloneSync();if(!e.synchronous)throw new Error("CookieJar clone destination store is not synchronous; use async API instead.");return this._cloneSync(e)}removeAllCookies(e){const t=d(e),i=t.callback,n=this.store;return"function"==typeof n.removeAllCookies&&n.removeAllCookies!==a.prototype.removeAllCookies?(n.removeAllCookies(i),t.promise):(n.getAllCookies(((e,t)=>{if(e)return void i(e);if(t||(t=[]),0===t.length)return void i(null,void 0);let o=0;const r=[],s=function(e){e&&r.push(e),o++,o!==t.length||(r[0]?i(r[0]):i(null,void 0))};t.forEach((e=>{n.removeCookie(e.domain,e.path,e.key,s)}))})),t.promise)}removeAllCookiesSync(){this.callSync((e=>{this.removeAllCookies(e)}))}static deserialize(t,i,n){"function"==typeof i&&(n=i,i=void 0);const o=d(n);let r;if("string"==typeof t)try{r=JSON.parse(t)}catch(e){return o.reject(e instanceof Error?e:new Error)}else r=t;const s=e=>r&&"object"==typeof r&&f(e,r)?r[e]:void 0,a=e=>{const t=s(e);return"boolean"==typeof t?t:void 0},c=new e(i,{rejectPublicSuffixes:a("rejectPublicSuffixes"),looseMode:a("enableLooseMode"),allowSpecialUseDomain:a("allowSpecialUseDomain"),prefixSecurity:de((e=>{const t=s(e);return"string"==typeof t?t:void 0})("prefixSecurity")??"silent")});return c._importCookies(r,(e=>{e?o.callback(e):o.callback(null,c)})),o.promise}static deserializeSync(t,i){const n="string"==typeof t?JSON.parse(t):t,o=e=>n&&"object"==typeof n&&f(e,n)?n[e]:void 0,r=e=>{const t=o(e);return"boolean"==typeof t?t:void 0},s=new e(i,{rejectPublicSuffixes:r("rejectPublicSuffixes"),looseMode:r("enableLooseMode"),allowSpecialUseDomain:r("allowSpecialUseDomain"),prefixSecurity:de((e=>{const t=o(e);return"string"==typeof t?t:void 0})("prefixSecurity")??"silent")});if(!s.store.synchronous)throw new Error("CookieJar store is not synchronous; use async API instead.");return s._importCookiesSync(n),s}static fromJSON(t,i){return e.deserializeSync(t,i)}};
|
|
2
|
+
/*!
|
|
3
|
+
* Copyright (c) 2015-2020, Salesforce.com, Inc.
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
*
|
|
6
|
+
* Redistribution and use in source and binary forms, with or without
|
|
7
|
+
* modification, are permitted provided that the following conditions are met:
|
|
8
|
+
*
|
|
9
|
+
* 1. Redistributions of source code must retain the above copyright notice,
|
|
10
|
+
* this list of conditions and the following disclaimer.
|
|
11
|
+
*
|
|
12
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
13
|
+
* this list of conditions and the following disclaimer in the documentation
|
|
14
|
+
* and/or other materials provided with the distribution.
|
|
15
|
+
*
|
|
16
|
+
* 3. Neither the name of Salesforce.com nor the names of its contributors may
|
|
17
|
+
* be used to endorse or promote products derived from this software without
|
|
18
|
+
* specific prior written permission.
|
|
19
|
+
*
|
|
20
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
21
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
22
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
23
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
|
24
|
+
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
25
|
+
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
26
|
+
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
27
|
+
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
28
|
+
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
29
|
+
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
30
|
+
* POSSIBILITY OF SUCH DAMAGE.
|
|
31
|
+
*/export{Y as Cookie,fe as CookieJar,h as MemoryCookieStore,S as ParameterError,v as PrefixSecurityEnum,a as Store,E as canonicalDomain,te as cookieCompare,ie as defaultPath,oe as domainMatch,O as formatDate,r as getPublicSuffix,W as parseDate,t as pathMatch,s as permuteDomain,k as version};
|
|
32
|
+
//# sourceMappingURL=index.js.map
|