@payloadcms/plugin-redirects 3.0.0-canary.ee6d727 → 3.0.0-canary.f13d413

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.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/exports/types.ts"],"sourcesContent":["export type { RedirectsPluginConfig } from '../types.js'\n"],"names":[],"rangeMappings":"","mappings":"AAAA,WAAwD"}
1
+ {"version":3,"sources":["../../src/exports/types.ts"],"sourcesContent":["export type { RedirectsPluginConfig } from '../types.js'\n"],"names":[],"mappings":"AAAA,WAAwD"}
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Config } from 'payload/config';
1
+ import type { Config } from 'payload';
2
2
  import type { RedirectsPluginConfig } from './types.js';
3
3
  export declare const redirectsPlugin: (pluginConfig: RedirectsPluginConfig) => (incomingConfig: Config) => Config;
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAE5C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAIvD,eAAO,MAAM,eAAe,iBACX,qBAAqB,sBACnB,MAAM,KAAG,MAuExB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,MAAM,EAAS,MAAM,SAAS,CAAA;AAE9D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAEvD,eAAO,MAAM,eAAe,iBACX,qBAAqB,sBACnB,MAAM,KAAG,MA6EzB,CAAA"}
package/dist/index.js CHANGED
@@ -1,76 +1,84 @@
1
- import deepMerge from './deepMerge.js';
2
- export const redirectsPlugin = (pluginConfig)=>(incomingConfig)=>({
3
- ...incomingConfig,
4
- collections: [
5
- ...incomingConfig?.collections || [],
6
- deepMerge({
7
- slug: 'redirects',
8
- access: {
9
- read: ()=>true
10
- },
11
- admin: {
12
- defaultColumns: [
13
- 'from',
14
- 'to.type',
15
- 'createdAt'
1
+ export const redirectsPlugin = (pluginConfig)=>(incomingConfig)=>{
2
+ const defaultFields = [
3
+ {
4
+ name: 'from',
5
+ type: 'text',
6
+ index: true,
7
+ label: 'From URL',
8
+ required: true
9
+ },
10
+ {
11
+ name: 'to',
12
+ type: 'group',
13
+ fields: [
14
+ {
15
+ name: 'type',
16
+ type: 'radio',
17
+ admin: {
18
+ layout: 'horizontal'
19
+ },
20
+ defaultValue: 'reference',
21
+ label: 'To URL Type',
22
+ options: [
23
+ {
24
+ label: 'Internal link',
25
+ value: 'reference'
26
+ },
27
+ {
28
+ label: 'Custom URL',
29
+ value: 'custom'
30
+ }
16
31
  ]
17
32
  },
18
- fields: [
19
- {
20
- name: 'from',
21
- type: 'text',
22
- index: true,
23
- label: 'From URL',
24
- required: true
33
+ {
34
+ name: 'reference',
35
+ type: 'relationship',
36
+ admin: {
37
+ condition: (_, siblingData)=>siblingData?.type === 'reference'
25
38
  },
26
- {
27
- name: 'to',
28
- type: 'group',
29
- fields: [
30
- {
31
- name: 'type',
32
- type: 'radio',
33
- admin: {
34
- layout: 'horizontal'
35
- },
36
- defaultValue: 'reference',
37
- label: 'To URL Type',
38
- options: [
39
- {
40
- label: 'Internal link',
41
- value: 'reference'
42
- },
43
- {
44
- label: 'Custom URL',
45
- value: 'custom'
46
- }
47
- ]
48
- },
49
- {
50
- name: 'reference',
51
- type: 'relationship',
52
- admin: {
53
- condition: (_, siblingData)=>siblingData?.type === 'reference'
54
- },
55
- label: 'Document to redirect to',
56
- relationTo: pluginConfig?.collections || [],
57
- required: true
58
- },
59
- {
60
- name: 'url',
61
- type: 'text',
62
- admin: {
63
- condition: (_, siblingData)=>siblingData?.type === 'custom'
64
- },
65
- label: 'Custom URL',
66
- required: true
67
- }
68
- ],
69
- label: false
70
- }
71
- ]
72
- }, pluginConfig?.overrides || {})
39
+ label: 'Document to redirect to',
40
+ relationTo: pluginConfig?.collections || [],
41
+ required: true
42
+ },
43
+ {
44
+ name: 'url',
45
+ type: 'text',
46
+ admin: {
47
+ condition: (_, siblingData)=>siblingData?.type === 'custom'
48
+ },
49
+ label: 'Custom URL',
50
+ required: true
51
+ }
52
+ ],
53
+ label: false
54
+ }
55
+ ];
56
+ const redirectsCollection = {
57
+ ...pluginConfig?.overrides || {},
58
+ slug: pluginConfig?.overrides?.slug || 'redirects',
59
+ access: {
60
+ read: ()=>true,
61
+ ...pluginConfig?.overrides?.access || {}
62
+ },
63
+ admin: {
64
+ defaultColumns: [
65
+ 'from',
66
+ 'to.type',
67
+ 'createdAt'
68
+ ],
69
+ ...pluginConfig?.overrides?.admin || {}
70
+ },
71
+ fields: pluginConfig?.overrides?.fields && typeof pluginConfig?.overrides?.fields === 'function' ? pluginConfig?.overrides.fields({
72
+ defaultFields
73
+ }) : defaultFields
74
+ };
75
+ return {
76
+ ...incomingConfig,
77
+ collections: [
78
+ ...incomingConfig?.collections || [],
79
+ redirectsCollection
73
80
  ]
74
- });
81
+ };
82
+ };
75
83
 
76
84
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["import type { Config } from 'payload/config'\n\nimport type { RedirectsPluginConfig } from './types.js'\n\nimport deepMerge from './deepMerge.js'\n\nexport const redirectsPlugin =\n (pluginConfig: RedirectsPluginConfig) =>\n (incomingConfig: Config): Config => ({\n ...incomingConfig,\n collections: [\n ...(incomingConfig?.collections || []),\n deepMerge(\n {\n slug: 'redirects',\n access: {\n read: (): boolean => true,\n },\n admin: {\n defaultColumns: ['from', 'to.type', 'createdAt'],\n },\n fields: [\n {\n name: 'from',\n type: 'text',\n index: true,\n label: 'From URL',\n required: true,\n },\n {\n name: 'to',\n type: 'group',\n fields: [\n {\n name: 'type',\n type: 'radio',\n admin: {\n layout: 'horizontal',\n },\n defaultValue: 'reference',\n label: 'To URL Type',\n options: [\n {\n label: 'Internal link',\n value: 'reference',\n },\n {\n label: 'Custom URL',\n value: 'custom',\n },\n ],\n },\n {\n name: 'reference',\n type: 'relationship',\n admin: {\n condition: (_, siblingData) => siblingData?.type === 'reference',\n },\n label: 'Document to redirect to',\n relationTo: pluginConfig?.collections || [],\n required: true,\n },\n {\n name: 'url',\n type: 'text',\n admin: {\n condition: (_, siblingData) => siblingData?.type === 'custom',\n },\n label: 'Custom URL',\n required: true,\n },\n ],\n label: false,\n },\n ],\n },\n pluginConfig?.overrides || {},\n ),\n ],\n })\n"],"names":["deepMerge","redirectsPlugin","pluginConfig","incomingConfig","collections","slug","access","read","admin","defaultColumns","fields","name","type","index","label","required","layout","defaultValue","options","value","condition","_","siblingData","relationTo","overrides"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAIA,OAAOA,eAAe,iBAAgB;AAEtC,OAAO,MAAMC,kBACX,CAACC,eACD,CAACC,iBAAoC,CAAA;YACnC,GAAGA,cAAc;YACjBC,aAAa;mBACPD,gBAAgBC,eAAe,EAAE;gBACrCJ,UACE;oBACEK,MAAM;oBACNC,QAAQ;wBACNC,MAAM,IAAe;oBACvB;oBACAC,OAAO;wBACLC,gBAAgB;4BAAC;4BAAQ;4BAAW;yBAAY;oBAClD;oBACAC,QAAQ;wBACN;4BACEC,MAAM;4BACNC,MAAM;4BACNC,OAAO;4BACPC,OAAO;4BACPC,UAAU;wBACZ;wBACA;4BACEJ,MAAM;4BACNC,MAAM;4BACNF,QAAQ;gCACN;oCACEC,MAAM;oCACNC,MAAM;oCACNJ,OAAO;wCACLQ,QAAQ;oCACV;oCACAC,cAAc;oCACdH,OAAO;oCACPI,SAAS;wCACP;4CACEJ,OAAO;4CACPK,OAAO;wCACT;wCACA;4CACEL,OAAO;4CACPK,OAAO;wCACT;qCACD;gCACH;gCACA;oCACER,MAAM;oCACNC,MAAM;oCACNJ,OAAO;wCACLY,WAAW,CAACC,GAAGC,cAAgBA,aAAaV,SAAS;oCACvD;oCACAE,OAAO;oCACPS,YAAYrB,cAAcE,eAAe,EAAE;oCAC3CW,UAAU;gCACZ;gCACA;oCACEJ,MAAM;oCACNC,MAAM;oCACNJ,OAAO;wCACLY,WAAW,CAACC,GAAGC,cAAgBA,aAAaV,SAAS;oCACvD;oCACAE,OAAO;oCACPC,UAAU;gCACZ;6BACD;4BACDD,OAAO;wBACT;qBACD;gBACH,GACAZ,cAAcsB,aAAa,CAAC;aAE/B;QACH,CAAA,EAAE"}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["import type { CollectionConfig, Config, Field } from 'payload'\n\nimport type { RedirectsPluginConfig } from './types.js'\n\nexport const redirectsPlugin =\n (pluginConfig: RedirectsPluginConfig) =>\n (incomingConfig: Config): Config => {\n const defaultFields: Field[] = [\n {\n name: 'from',\n type: 'text',\n index: true,\n label: 'From URL',\n required: true,\n },\n {\n name: 'to',\n type: 'group',\n fields: [\n {\n name: 'type',\n type: 'radio',\n admin: {\n layout: 'horizontal',\n },\n defaultValue: 'reference',\n label: 'To URL Type',\n options: [\n {\n label: 'Internal link',\n value: 'reference',\n },\n {\n label: 'Custom URL',\n value: 'custom',\n },\n ],\n },\n {\n name: 'reference',\n type: 'relationship',\n admin: {\n condition: (_, siblingData) => siblingData?.type === 'reference',\n },\n label: 'Document to redirect to',\n relationTo: pluginConfig?.collections || [],\n required: true,\n },\n {\n name: 'url',\n type: 'text',\n admin: {\n condition: (_, siblingData) => siblingData?.type === 'custom',\n },\n label: 'Custom URL',\n required: true,\n },\n ],\n label: false,\n },\n ]\n\n const redirectsCollection: CollectionConfig = {\n ...(pluginConfig?.overrides || {}),\n slug: pluginConfig?.overrides?.slug || 'redirects',\n access: {\n read: () => true,\n ...(pluginConfig?.overrides?.access || {}),\n },\n admin: {\n defaultColumns: ['from', 'to.type', 'createdAt'],\n ...(pluginConfig?.overrides?.admin || {}),\n },\n fields:\n pluginConfig?.overrides?.fields && typeof pluginConfig?.overrides?.fields === 'function'\n ? pluginConfig?.overrides.fields({ defaultFields })\n : defaultFields,\n }\n\n return {\n ...incomingConfig,\n collections: [...(incomingConfig?.collections || []), redirectsCollection],\n }\n }\n"],"names":["redirectsPlugin","pluginConfig","incomingConfig","defaultFields","name","type","index","label","required","fields","admin","layout","defaultValue","options","value","condition","_","siblingData","relationTo","collections","redirectsCollection","overrides","slug","access","read","defaultColumns"],"mappings":"AAIA,OAAO,MAAMA,kBACX,CAACC,eACD,CAACC;QACC,MAAMC,gBAAyB;YAC7B;gBACEC,MAAM;gBACNC,MAAM;gBACNC,OAAO;gBACPC,OAAO;gBACPC,UAAU;YACZ;YACA;gBACEJ,MAAM;gBACNC,MAAM;gBACNI,QAAQ;oBACN;wBACEL,MAAM;wBACNC,MAAM;wBACNK,OAAO;4BACLC,QAAQ;wBACV;wBACAC,cAAc;wBACdL,OAAO;wBACPM,SAAS;4BACP;gCACEN,OAAO;gCACPO,OAAO;4BACT;4BACA;gCACEP,OAAO;gCACPO,OAAO;4BACT;yBACD;oBACH;oBACA;wBACEV,MAAM;wBACNC,MAAM;wBACNK,OAAO;4BACLK,WAAW,CAACC,GAAGC,cAAgBA,aAAaZ,SAAS;wBACvD;wBACAE,OAAO;wBACPW,YAAYjB,cAAckB,eAAe,EAAE;wBAC3CX,UAAU;oBACZ;oBACA;wBACEJ,MAAM;wBACNC,MAAM;wBACNK,OAAO;4BACLK,WAAW,CAACC,GAAGC,cAAgBA,aAAaZ,SAAS;wBACvD;wBACAE,OAAO;wBACPC,UAAU;oBACZ;iBACD;gBACDD,OAAO;YACT;SACD;QAED,MAAMa,sBAAwC;YAC5C,GAAInB,cAAcoB,aAAa,CAAC,CAAC;YACjCC,MAAMrB,cAAcoB,WAAWC,QAAQ;YACvCC,QAAQ;gBACNC,MAAM,IAAM;gBACZ,GAAIvB,cAAcoB,WAAWE,UAAU,CAAC,CAAC;YAC3C;YACAb,OAAO;gBACLe,gBAAgB;oBAAC;oBAAQ;oBAAW;iBAAY;gBAChD,GAAIxB,cAAcoB,WAAWX,SAAS,CAAC,CAAC;YAC1C;YACAD,QACER,cAAcoB,WAAWZ,UAAU,OAAOR,cAAcoB,WAAWZ,WAAW,aAC1ER,cAAcoB,UAAUZ,OAAO;gBAAEN;YAAc,KAC/CA;QACR;QAEA,OAAO;YACL,GAAGD,cAAc;YACjBiB,aAAa;mBAAKjB,gBAAgBiB,eAAe,EAAE;gBAAGC;aAAoB;QAC5E;IACF,EAAC"}
package/dist/types.d.ts CHANGED
@@ -1,6 +1,11 @@
1
- import type { CollectionConfig } from 'payload/types';
1
+ import type { CollectionConfig, Field } from 'payload';
2
+ export type FieldsOverride = (args: {
3
+ defaultFields: Field[];
4
+ }) => Field[];
2
5
  export type RedirectsPluginConfig = {
3
6
  collections?: string[];
4
- overrides?: Partial<CollectionConfig>;
7
+ overrides?: {
8
+ fields?: FieldsOverride;
9
+ } & Partial<Omit<CollectionConfig, 'fields'>>;
5
10
  };
6
11
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAErD,MAAM,MAAM,qBAAqB,GAAG;IAClC,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAA;CACtC,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAEtD,MAAM,MAAM,cAAc,GAAG,CAAC,IAAI,EAAE;IAAE,aAAa,EAAE,KAAK,EAAE,CAAA;CAAE,KAAK,KAAK,EAAE,CAAA;AAE1E,MAAM,MAAM,qBAAqB,GAAG;IAClC,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;IACtB,SAAS,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,cAAc,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAC,CAAA;CACpF,CAAA"}
package/dist/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/types.ts"],"sourcesContent":["import type { CollectionConfig } from 'payload/types'\n\nexport type RedirectsPluginConfig = {\n collections?: string[]\n overrides?: Partial<CollectionConfig>\n}\n"],"names":[],"rangeMappings":"","mappings":"AAEA,WAGC"}
1
+ {"version":3,"sources":["../src/types.ts"],"sourcesContent":["import type { CollectionConfig, Field } from 'payload'\n\nexport type FieldsOverride = (args: { defaultFields: Field[] }) => Field[]\n\nexport type RedirectsPluginConfig = {\n collections?: string[]\n overrides?: { fields?: FieldsOverride } & Partial<Omit<CollectionConfig, 'fields'>>\n}\n"],"names":[],"mappings":"AAIA,WAGC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payloadcms/plugin-redirects",
3
- "version": "3.0.0-canary.ee6d727",
3
+ "version": "3.0.0-canary.f13d413",
4
4
  "description": "Redirects plugin for Payload",
5
5
  "keywords": [
6
6
  "payload",
@@ -22,13 +22,13 @@
22
22
  "exports": {
23
23
  ".": {
24
24
  "import": "./dist/index.js",
25
- "require": "./dist/index.js",
26
- "types": "./dist/index.d.ts"
25
+ "types": "./dist/index.d.ts",
26
+ "default": "./dist/index.js"
27
27
  },
28
- "./*": {
29
- "import": "./dist/exports/*.js",
30
- "require": "./dist/exports/*.js",
31
- "types": "./dist/exports/*.d.ts"
28
+ "./types": {
29
+ "import": "./dist/exports/types.js",
30
+ "types": "./dist/exports/types.d.ts",
31
+ "default": "./dist/exports/types.js"
32
32
  }
33
33
  },
34
34
  "main": "./dist/index.js",
@@ -40,22 +40,22 @@
40
40
  ],
41
41
  "devDependencies": {
42
42
  "@types/express": "^4.17.9",
43
- "@types/react": "npm:types-react@19.0.0-beta.2",
44
- "@types/react-dom": "npm:types-react-dom@19.0.0-beta.2",
45
- "@payloadcms/eslint-config": "1.1.1",
46
- "payload": "3.0.0-canary.ee6d727"
43
+ "@types/react": "npm:types-react@19.0.0-rc.0",
44
+ "@types/react-dom": "npm:types-react-dom@19.0.0-rc.0",
45
+ "@payloadcms/eslint-config": "3.0.0-beta.59",
46
+ "payload": "3.0.0-canary.f13d413"
47
47
  },
48
48
  "peerDependencies": {
49
- "payload": "3.0.0-canary.ee6d727"
49
+ "payload": "3.0.0-canary.f13d413"
50
50
  },
51
51
  "homepage:": "https://payloadcms.com",
52
52
  "overrides": {
53
- "@types/react": "npm:types-react@19.0.0-beta.2",
54
- "@types/react-dom": "npm:types-react-dom@19.0.0-beta.2"
53
+ "@types/react": "npm:types-react@19.0.0-rc.0",
54
+ "@types/react-dom": "npm:types-react-dom@19.0.0-rc.0"
55
55
  },
56
56
  "scripts": {
57
- "build": "pnpm copyfiles && pnpm build:swc && pnpm build:types",
58
- "build:swc": "swc ./src -d ./dist --config-file .swcrc",
57
+ "build": "pnpm copyfiles && pnpm build:types && pnpm build:swc",
58
+ "build:swc": "swc ./src -d ./dist --config-file .swcrc --strip-leading-paths",
59
59
  "build:types": "tsc --emitDeclarationOnly --outDir dist",
60
60
  "clean": "rimraf {dist,*.tsbuildinfo}",
61
61
  "copyfiles": "copyfiles -u 1 \"src/**/*.{html,css,scss,ttf,woff,woff2,eot,svg,jpg,png,json}\" dist/"
@@ -1,13 +0,0 @@
1
- /**
2
- * Simple object check.
3
- * @param item
4
- * @returns {boolean}
5
- */
6
- export declare function isObject(item: unknown): boolean;
7
- /**
8
- * Deep merge two objects.
9
- * @param target
10
- * @param ...sources
11
- */
12
- export default function deepMerge<T, R>(target: T, source: R): T;
13
- //# sourceMappingURL=deepMerge.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deepMerge.d.ts","sourceRoot":"","sources":["../src/deepMerge.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAE/C;AAED;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAiB/D"}
package/dist/deepMerge.js DELETED
@@ -1,37 +0,0 @@
1
- // @ts-nocheck
2
- /**
3
- * Simple object check.
4
- * @param item
5
- * @returns {boolean}
6
- */ export function isObject(item) {
7
- return item && typeof item === 'object' && !Array.isArray(item);
8
- }
9
- /**
10
- * Deep merge two objects.
11
- * @param target
12
- * @param ...sources
13
- */ export default function deepMerge(target, source) {
14
- const output = {
15
- ...target
16
- };
17
- if (isObject(target) && isObject(source)) {
18
- Object.keys(source).forEach((key)=>{
19
- if (isObject(source[key])) {
20
- if (!(key in target)) {
21
- Object.assign(output, {
22
- [key]: source[key]
23
- });
24
- } else {
25
- output[key] = deepMerge(target[key], source[key]);
26
- }
27
- } else {
28
- Object.assign(output, {
29
- [key]: source[key]
30
- });
31
- }
32
- });
33
- }
34
- return output;
35
- }
36
-
37
- //# sourceMappingURL=deepMerge.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/deepMerge.ts"],"sourcesContent":["// @ts-nocheck\n\n/**\n * Simple object check.\n * @param item\n * @returns {boolean}\n */\nexport function isObject(item: unknown): boolean {\n return item && typeof item === 'object' && !Array.isArray(item)\n}\n\n/**\n * Deep merge two objects.\n * @param target\n * @param ...sources\n */\nexport default function deepMerge<T, R>(target: T, source: R): T {\n const output = { ...target }\n if (isObject(target) && isObject(source)) {\n Object.keys(source).forEach((key) => {\n if (isObject(source[key])) {\n if (!(key in target)) {\n Object.assign(output, { [key]: source[key] })\n } else {\n output[key] = deepMerge(target[key], source[key])\n }\n } else {\n Object.assign(output, { [key]: source[key] })\n }\n })\n }\n\n return output\n}\n"],"names":["isObject","item","Array","isArray","deepMerge","target","source","output","Object","keys","forEach","key","assign"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,cAAc;AAEd;;;;CAIC,GACD,OAAO,SAASA,SAASC,IAAa;IACpC,OAAOA,QAAQ,OAAOA,SAAS,YAAY,CAACC,MAAMC,OAAO,CAACF;AAC5D;AAEA;;;;CAIC,GACD,eAAe,SAASG,UAAgBC,MAAS,EAAEC,MAAS;IAC1D,MAAMC,SAAS;QAAE,GAAGF,MAAM;IAAC;IAC3B,IAAIL,SAASK,WAAWL,SAASM,SAAS;QACxCE,OAAOC,IAAI,CAACH,QAAQI,OAAO,CAAC,CAACC;YAC3B,IAAIX,SAASM,MAAM,CAACK,IAAI,GAAG;gBACzB,IAAI,CAAEA,CAAAA,OAAON,MAAK,GAAI;oBACpBG,OAAOI,MAAM,CAACL,QAAQ;wBAAE,CAACI,IAAI,EAAEL,MAAM,CAACK,IAAI;oBAAC;gBAC7C,OAAO;oBACLJ,MAAM,CAACI,IAAI,GAAGP,UAAUC,MAAM,CAACM,IAAI,EAAEL,MAAM,CAACK,IAAI;gBAClD;YACF,OAAO;gBACLH,OAAOI,MAAM,CAACL,QAAQ;oBAAE,CAACI,IAAI,EAAEL,MAAM,CAACK,IAAI;gBAAC;YAC7C;QACF;IACF;IAEA,OAAOJ;AACT"}