@techdocs/cli 0.0.0-nightly-20260112025641 → 0.0.0-nightly-20260113025009
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/CHANGELOG.md +3 -3
- package/dist/embedded-app/.config-schema.json +107 -107
- package/dist/embedded-app/index.html +1 -1
- package/dist/embedded-app/index.html.tmpl +1 -1
- package/dist/embedded-app/static/{module-remix-run.f9e8eadd.js → module-remix-run.8b5ff4b7.js} +2 -2
- package/dist/embedded-app/static/module-remix-run.8b5ff4b7.js.map +1 -0
- package/dist/embedded-app/static/vendor.55ff2174.js +2 -0
- package/dist/embedded-app/static/vendor.55ff2174.js.map +1 -0
- package/dist/package.json.cjs.js +1 -1
- package/package.json +4 -4
- package/dist/embedded-app/static/module-remix-run.f9e8eadd.js.map +0 -1
- package/dist/embedded-app/static/vendor.13672ffd.js +0 -2
- package/dist/embedded-app/static/vendor.13672ffd.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# @techdocs/cli
|
|
2
2
|
|
|
3
|
-
## 0.0.0-nightly-
|
|
3
|
+
## 0.0.0-nightly-20260113025009
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- Updated dependencies
|
|
8
|
-
- @backstage/backend-defaults@0.0.0-nightly-
|
|
8
|
+
- @backstage/backend-defaults@0.0.0-nightly-20260113025009
|
|
9
9
|
- @backstage/catalog-model@1.7.6
|
|
10
10
|
- @backstage/cli-common@0.1.16
|
|
11
11
|
- @backstage/config@1.3.6
|
|
12
|
-
- @backstage/plugin-techdocs-node@0.0.0-nightly-
|
|
12
|
+
- @backstage/plugin-techdocs-node@0.0.0-nightly-20260113025009
|
|
13
13
|
|
|
14
14
|
## 1.10.4-next.1
|
|
15
15
|
|
|
@@ -131,6 +131,113 @@
|
|
|
131
131
|
},
|
|
132
132
|
"packageName": "@backstage/plugin-permission-common"
|
|
133
133
|
},
|
|
134
|
+
{
|
|
135
|
+
"path": "../core-components/config.d.ts",
|
|
136
|
+
"value": {
|
|
137
|
+
"type": "object",
|
|
138
|
+
"properties": {
|
|
139
|
+
"auth": {
|
|
140
|
+
"type": "object",
|
|
141
|
+
"properties": {
|
|
142
|
+
"autologout": {
|
|
143
|
+
"description": "Autologout feature configuration",
|
|
144
|
+
"type": "object",
|
|
145
|
+
"properties": {
|
|
146
|
+
"enabled": {
|
|
147
|
+
"description": "Enable or disable the autologout feature",
|
|
148
|
+
"visibility": "frontend",
|
|
149
|
+
"type": "boolean"
|
|
150
|
+
},
|
|
151
|
+
"idleTimeoutMinutes": {
|
|
152
|
+
"description": "Number of minutes after which the inactive user is logged out automatically.\nDefault is 60 minutes (1 hour)",
|
|
153
|
+
"visibility": "frontend",
|
|
154
|
+
"type": "number"
|
|
155
|
+
},
|
|
156
|
+
"promptBeforeIdleSeconds": {
|
|
157
|
+
"description": "Number of seconds before the idle timeout where the user will be asked if it's still active.\nA dialog will be shown.\nDefault is 10 seconds.\nSet to 0 seconds to disable the prompt.",
|
|
158
|
+
"visibility": "frontend",
|
|
159
|
+
"type": "number"
|
|
160
|
+
},
|
|
161
|
+
"useWorkerTimers": {
|
|
162
|
+
"description": "Enable/disable the usage of worker thread timers instead of main thread timers.\nDefault is true.\nIf you experience some browser incompatibility, you may try to set this to false.",
|
|
163
|
+
"visibility": "frontend",
|
|
164
|
+
"type": "boolean"
|
|
165
|
+
},
|
|
166
|
+
"logoutIfDisconnected": {
|
|
167
|
+
"description": "Enable/disable the automatic logout also on users that are logged in but with no Backstage tabs open.\nDefault is true.",
|
|
168
|
+
"visibility": "frontend",
|
|
169
|
+
"type": "boolean"
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
177
|
+
},
|
|
178
|
+
"packageName": "@backstage/core-components"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"path": "../../plugins/techdocs/config.d.ts",
|
|
182
|
+
"value": {
|
|
183
|
+
"type": "object",
|
|
184
|
+
"properties": {
|
|
185
|
+
"techdocs": {
|
|
186
|
+
"description": "Configuration options for the techdocs plugin",
|
|
187
|
+
"type": "object",
|
|
188
|
+
"properties": {
|
|
189
|
+
"builder": {
|
|
190
|
+
"description": "Documentation building process depends on the builder attr",
|
|
191
|
+
"visibility": "frontend",
|
|
192
|
+
"enum": [
|
|
193
|
+
"external",
|
|
194
|
+
"local"
|
|
195
|
+
],
|
|
196
|
+
"type": "string"
|
|
197
|
+
},
|
|
198
|
+
"legacyUseCaseSensitiveTripletPaths": {
|
|
199
|
+
"description": "Allows fallback to case-sensitive triplets in case of migration issues.",
|
|
200
|
+
"visibility": "frontend",
|
|
201
|
+
"type": "boolean"
|
|
202
|
+
},
|
|
203
|
+
"sanitizer": {
|
|
204
|
+
"type": "object",
|
|
205
|
+
"properties": {
|
|
206
|
+
"allowedIframeHosts": {
|
|
207
|
+
"description": "Allows iframe tag only for listed hosts\nExample:\n allowedIframeHosts: [\"example.com\"]\n this will allow all iframes with the host `example.com` in the src attribute",
|
|
208
|
+
"visibility": "frontend",
|
|
209
|
+
"type": "array",
|
|
210
|
+
"items": {
|
|
211
|
+
"type": "string"
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
"allowedCustomElementTagNameRegExp": {
|
|
215
|
+
"description": "Allows listed custom element tag name regex\nExample:\n allowedCustomElementTagNameRegExp: '^backstage-'\n this will allow all custom elements with tag name matching `^backstage-` like <backstage-custom-element /> etc.",
|
|
216
|
+
"visibility": "frontend",
|
|
217
|
+
"type": "string"
|
|
218
|
+
},
|
|
219
|
+
"allowedCustomElementAttributeNameRegExp": {
|
|
220
|
+
"description": "Allows listed custom element attribute name regex\nExample:\n allowedCustomElementAttributeNameRegExp: 'attribute1|attribute2'\n this will allow all custom element attributes matching `attribute1` or `attribute2` like <backstage-custom-element attribute1=\"yes\" attribute2/>",
|
|
221
|
+
"visibility": "frontend",
|
|
222
|
+
"type": "string"
|
|
223
|
+
},
|
|
224
|
+
"additionalAllowedURIProtocols": {
|
|
225
|
+
"description": "Allows listed protocols in attributes with URI values\nExample:\n additionalAllowedURIProtocols: ['vscode']\n this will allow all attributes with URI values to have `vscode` protocol like `vscode://some/path` in addition to the default protocols\n matched by DOMPurify's IS_ALLOWED_URI RegExp:",
|
|
226
|
+
"visibility": "frontend",
|
|
227
|
+
"type": "array",
|
|
228
|
+
"items": {
|
|
229
|
+
"type": "string"
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
238
|
+
},
|
|
239
|
+
"packageName": "@backstage/plugin-techdocs"
|
|
240
|
+
},
|
|
134
241
|
{
|
|
135
242
|
"path": "../core-app-api/config.d.ts",
|
|
136
243
|
"value": {
|
|
@@ -358,113 +465,6 @@
|
|
|
358
465
|
},
|
|
359
466
|
"packageName": "@backstage/core-app-api"
|
|
360
467
|
},
|
|
361
|
-
{
|
|
362
|
-
"path": "../core-components/config.d.ts",
|
|
363
|
-
"value": {
|
|
364
|
-
"type": "object",
|
|
365
|
-
"properties": {
|
|
366
|
-
"auth": {
|
|
367
|
-
"type": "object",
|
|
368
|
-
"properties": {
|
|
369
|
-
"autologout": {
|
|
370
|
-
"description": "Autologout feature configuration",
|
|
371
|
-
"type": "object",
|
|
372
|
-
"properties": {
|
|
373
|
-
"enabled": {
|
|
374
|
-
"description": "Enable or disable the autologout feature",
|
|
375
|
-
"visibility": "frontend",
|
|
376
|
-
"type": "boolean"
|
|
377
|
-
},
|
|
378
|
-
"idleTimeoutMinutes": {
|
|
379
|
-
"description": "Number of minutes after which the inactive user is logged out automatically.\nDefault is 60 minutes (1 hour)",
|
|
380
|
-
"visibility": "frontend",
|
|
381
|
-
"type": "number"
|
|
382
|
-
},
|
|
383
|
-
"promptBeforeIdleSeconds": {
|
|
384
|
-
"description": "Number of seconds before the idle timeout where the user will be asked if it's still active.\nA dialog will be shown.\nDefault is 10 seconds.\nSet to 0 seconds to disable the prompt.",
|
|
385
|
-
"visibility": "frontend",
|
|
386
|
-
"type": "number"
|
|
387
|
-
},
|
|
388
|
-
"useWorkerTimers": {
|
|
389
|
-
"description": "Enable/disable the usage of worker thread timers instead of main thread timers.\nDefault is true.\nIf you experience some browser incompatibility, you may try to set this to false.",
|
|
390
|
-
"visibility": "frontend",
|
|
391
|
-
"type": "boolean"
|
|
392
|
-
},
|
|
393
|
-
"logoutIfDisconnected": {
|
|
394
|
-
"description": "Enable/disable the automatic logout also on users that are logged in but with no Backstage tabs open.\nDefault is true.",
|
|
395
|
-
"visibility": "frontend",
|
|
396
|
-
"type": "boolean"
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
},
|
|
403
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
404
|
-
},
|
|
405
|
-
"packageName": "@backstage/core-components"
|
|
406
|
-
},
|
|
407
|
-
{
|
|
408
|
-
"path": "../../plugins/techdocs/config.d.ts",
|
|
409
|
-
"value": {
|
|
410
|
-
"type": "object",
|
|
411
|
-
"properties": {
|
|
412
|
-
"techdocs": {
|
|
413
|
-
"description": "Configuration options for the techdocs plugin",
|
|
414
|
-
"type": "object",
|
|
415
|
-
"properties": {
|
|
416
|
-
"builder": {
|
|
417
|
-
"description": "Documentation building process depends on the builder attr",
|
|
418
|
-
"visibility": "frontend",
|
|
419
|
-
"enum": [
|
|
420
|
-
"external",
|
|
421
|
-
"local"
|
|
422
|
-
],
|
|
423
|
-
"type": "string"
|
|
424
|
-
},
|
|
425
|
-
"legacyUseCaseSensitiveTripletPaths": {
|
|
426
|
-
"description": "Allows fallback to case-sensitive triplets in case of migration issues.",
|
|
427
|
-
"visibility": "frontend",
|
|
428
|
-
"type": "boolean"
|
|
429
|
-
},
|
|
430
|
-
"sanitizer": {
|
|
431
|
-
"type": "object",
|
|
432
|
-
"properties": {
|
|
433
|
-
"allowedIframeHosts": {
|
|
434
|
-
"description": "Allows iframe tag only for listed hosts\nExample:\n allowedIframeHosts: [\"example.com\"]\n this will allow all iframes with the host `example.com` in the src attribute",
|
|
435
|
-
"visibility": "frontend",
|
|
436
|
-
"type": "array",
|
|
437
|
-
"items": {
|
|
438
|
-
"type": "string"
|
|
439
|
-
}
|
|
440
|
-
},
|
|
441
|
-
"allowedCustomElementTagNameRegExp": {
|
|
442
|
-
"description": "Allows listed custom element tag name regex\nExample:\n allowedCustomElementTagNameRegExp: '^backstage-'\n this will allow all custom elements with tag name matching `^backstage-` like <backstage-custom-element /> etc.",
|
|
443
|
-
"visibility": "frontend",
|
|
444
|
-
"type": "string"
|
|
445
|
-
},
|
|
446
|
-
"allowedCustomElementAttributeNameRegExp": {
|
|
447
|
-
"description": "Allows listed custom element attribute name regex\nExample:\n allowedCustomElementAttributeNameRegExp: 'attribute1|attribute2'\n this will allow all custom element attributes matching `attribute1` or `attribute2` like <backstage-custom-element attribute1=\"yes\" attribute2/>",
|
|
448
|
-
"visibility": "frontend",
|
|
449
|
-
"type": "string"
|
|
450
|
-
},
|
|
451
|
-
"additionalAllowedURIProtocols": {
|
|
452
|
-
"description": "Allows listed protocols in attributes with URI values\nExample:\n additionalAllowedURIProtocols: ['vscode']\n this will allow all attributes with URI values to have `vscode` protocol like `vscode://some/path` in addition to the default protocols\n matched by DOMPurify's IS_ALLOWED_URI RegExp:",
|
|
453
|
-
"visibility": "frontend",
|
|
454
|
-
"type": "array",
|
|
455
|
-
"items": {
|
|
456
|
-
"type": "string"
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
}
|
|
463
|
-
},
|
|
464
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
465
|
-
},
|
|
466
|
-
"packageName": "@backstage/plugin-techdocs"
|
|
467
|
-
},
|
|
468
468
|
{
|
|
469
469
|
"path": "../integration/config.d.ts",
|
|
470
470
|
"value": {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="color-scheme" content="light dark"/><meta name="description" content="Backstage is an open source framework for building developer portals"/><link rel="manifest" href="/manifest.json" crossorigin="use-credentials"/><link rel="icon" href="/favicon.ico"/><link rel="shortcut icon" href="/favicon.ico"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"/><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"/><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"/><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"/><title>Techdocs Preview App</title><meta name="backstage-app-mode" content="public"><script defer="defer" src="/static/runtime.47f251b0.js"></script><script defer="defer" src="/static/module-material-ui.9517effb.js"></script><script defer="defer" src="/static/module-lodash.7d4f904e.js"></script><script defer="defer" src="/static/module-date-fns.fe699224.js"></script><script defer="defer" src="/static/module-mui.375d6d62.js"></script><script defer="defer" src="/static/module-material-table.5a3a2d93.js"></script><script defer="defer" src="/static/module-micromark-core-commonmark.909b7d4e.js"></script><script defer="defer" src="/static/module-parse5.94980036.js"></script><script defer="defer" src="/static/module-zod.4600b494.js"></script><script defer="defer" src="/static/module-react-dom.44002a3f.js"></script><script defer="defer" src="/static/module-i18next.685d0b2d.js"></script><script defer="defer" src="/static/module-react-beautiful-dnd.29de0c3a.js"></script><script defer="defer" src="/static/module-remix-run.
|
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="color-scheme" content="light dark"/><meta name="description" content="Backstage is an open source framework for building developer portals"/><link rel="manifest" href="/manifest.json" crossorigin="use-credentials"/><link rel="icon" href="/favicon.ico"/><link rel="shortcut icon" href="/favicon.ico"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"/><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"/><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"/><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"/><title>Techdocs Preview App</title><meta name="backstage-app-mode" content="public"><script defer="defer" src="/static/runtime.47f251b0.js"></script><script defer="defer" src="/static/module-material-ui.9517effb.js"></script><script defer="defer" src="/static/module-lodash.7d4f904e.js"></script><script defer="defer" src="/static/module-date-fns.fe699224.js"></script><script defer="defer" src="/static/module-mui.375d6d62.js"></script><script defer="defer" src="/static/module-material-table.5a3a2d93.js"></script><script defer="defer" src="/static/module-micromark-core-commonmark.909b7d4e.js"></script><script defer="defer" src="/static/module-parse5.94980036.js"></script><script defer="defer" src="/static/module-zod.4600b494.js"></script><script defer="defer" src="/static/module-react-dom.44002a3f.js"></script><script defer="defer" src="/static/module-i18next.685d0b2d.js"></script><script defer="defer" src="/static/module-react-beautiful-dnd.29de0c3a.js"></script><script defer="defer" src="/static/module-remix-run.8b5ff4b7.js"></script><script defer="defer" src="/static/vendor.55ff2174.js"></script><script defer="defer" src="/static/main.48ae5130.js"></script><link href="/static/main.3e4703e1.css" rel="stylesheet"><script type="backstage.io/config">[
|
|
2
2
|
{
|
|
3
3
|
"context": "app-config.yaml",
|
|
4
4
|
"data": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
color="#5bbad5"
|
|
44
44
|
/>
|
|
45
45
|
<title><%= config.getString('app.title') %></title>
|
|
46
|
-
<meta name="backstage-app-mode" content="public"><meta name="backstage-public-path" content="<%= publicPath %>/"><script defer src="<%= publicPath %>/static/runtime.47f251b0.js"></script><script defer src="<%= publicPath %>/static/module-material-ui.9517effb.js"></script><script defer src="<%= publicPath %>/static/module-lodash.7d4f904e.js"></script><script defer src="<%= publicPath %>/static/module-date-fns.fe699224.js"></script><script defer src="<%= publicPath %>/static/module-mui.375d6d62.js"></script><script defer src="<%= publicPath %>/static/module-material-table.5a3a2d93.js"></script><script defer src="<%= publicPath %>/static/module-micromark-core-commonmark.909b7d4e.js"></script><script defer src="<%= publicPath %>/static/module-parse5.94980036.js"></script><script defer src="<%= publicPath %>/static/module-zod.4600b494.js"></script><script defer src="<%= publicPath %>/static/module-react-dom.44002a3f.js"></script><script defer src="<%= publicPath %>/static/module-i18next.685d0b2d.js"></script><script defer src="<%= publicPath %>/static/module-react-beautiful-dnd.29de0c3a.js"></script><script defer src="<%= publicPath %>/static/module-remix-run.
|
|
46
|
+
<meta name="backstage-app-mode" content="public"><meta name="backstage-public-path" content="<%= publicPath %>/"><script defer src="<%= publicPath %>/static/runtime.47f251b0.js"></script><script defer src="<%= publicPath %>/static/module-material-ui.9517effb.js"></script><script defer src="<%= publicPath %>/static/module-lodash.7d4f904e.js"></script><script defer src="<%= publicPath %>/static/module-date-fns.fe699224.js"></script><script defer src="<%= publicPath %>/static/module-mui.375d6d62.js"></script><script defer src="<%= publicPath %>/static/module-material-table.5a3a2d93.js"></script><script defer src="<%= publicPath %>/static/module-micromark-core-commonmark.909b7d4e.js"></script><script defer src="<%= publicPath %>/static/module-parse5.94980036.js"></script><script defer src="<%= publicPath %>/static/module-zod.4600b494.js"></script><script defer src="<%= publicPath %>/static/module-react-dom.44002a3f.js"></script><script defer src="<%= publicPath %>/static/module-i18next.685d0b2d.js"></script><script defer src="<%= publicPath %>/static/module-react-beautiful-dnd.29de0c3a.js"></script><script defer src="<%= publicPath %>/static/module-remix-run.8b5ff4b7.js"></script><script defer src="<%= publicPath %>/static/vendor.55ff2174.js"></script><script defer src="<%= publicPath %>/static/main.48ae5130.js"></script><link href="<%= publicPath %>/static/main.3e4703e1.css" rel="stylesheet"></head>
|
|
47
47
|
<body>
|
|
48
48
|
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
49
49
|
<div id="root"></div>
|
package/dist/embedded-app/static/{module-remix-run.f9e8eadd.js → module-remix-run.8b5ff4b7.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([["183"],{21613(e,t,n){var a,r,l,i;function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}n.d(t,{AO:()=>g,Gh:()=>R,HS:()=>L,Oi:()=>u,Rr:()=>m,o1:()=>x,pX:()=>A,pb:()=>$,rc:()=>a,sC:()=>h,tH:()=>k,tW:()=>w,ue:()=>v,yD:()=>S,zR:()=>c}),(l=a||(a={})).Pop="POP",l.Push="PUSH",l.Replace="REPLACE";let s="popstate";function h(e){let t;void 0===e&&(e={});let{initialEntries:n=["/"],initialIndex:r,v5Compat:l=!1}=e;t=n.map((e,t)=>c(e,"string"==typeof e?null:e.state,0===t?"default":void 0));let i=h(null==r?t.length-1:r),o=a.Pop,s=null;function h(e){return Math.min(Math.max(e,0),t.length-1)}function c(e,n,a){void 0===n&&(n=null);let r=f(t?t[i].pathname:"/",e,n,a);return p("/"===r.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),r}function u(e){return"string"==typeof e?e:g(e)}return{get index(){return i},get action(){return o},get location(){return t[i]},createHref:u,createURL:e=>new URL(u(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?m(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,n){o=a.Push;let r=c(e,n);i+=1,t.splice(i,t.length,r),l&&s&&s({action:o,location:r,delta:1})},replace(e,n){o=a.Replace;let r=c(e,n);t[i]=r,l&&s&&s({action:o,location:r,delta:0})},go(e){o=a.Pop;let n=h(i+e),r=t[n];i=n,s&&s({action:o,location:r,delta:e})},listen:e=>(s=e,()=>{s=null})}}function c(e){return void 0===e&&(e={}),function(e,t,n,r){void 0===r&&(r={});let{window:l=document.defaultView,v5Compat:i=!1}=r,h=l.history,c=a.Pop,p=null,m=v();function v(){return(h.state||{idx:null}).idx}function y(){c=a.Pop;let e=v(),t=null==e?null:e-m;m=e,p&&p({action:c,location:w.location,delta:t})}function b(e){let t="null"!==l.location.origin?l.location.origin:l.location.href,n="string"==typeof e?e:g(e);return u(t,"No window.location.(origin|href) available to create URL for href: "+(n=n.replace(/ $/,"%20"))),new URL(n,t)}null==m&&(m=0,h.replaceState(o({},h.state,{idx:m}),""));let w={get action(){return c},get location(){return e(l,h)},listen(e){if(p)throw Error("A history only accepts one active listener");return l.addEventListener(s,y),p=e,()=>{l.removeEventListener(s,y),p=null}},createHref:e=>t(l,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){c=a.Push;let n=f(w.location,e,t);let r=d(n,m=v()+1),o=w.createHref(n);try{h.pushState(r,"",o)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;l.location.assign(o)}i&&p&&p({action:c,location:w.location,delta:1})},replace:function(e,t){c=a.Replace;let n=f(w.location,e,t);let r=d(n,m=v()),l=w.createHref(n);h.replaceState(r,"",l),i&&p&&p({action:c,location:w.location,delta:0})},go:e=>h.go(e)};return w}(function(e,t){let{pathname:n,search:a,hash:r}=e.location;return f("",{pathname:n,search:a,hash:r},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:g(t)},null,e)}function u(e,t){if(!1===e||null==e)throw Error(t)}function p(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function d(e,t){return{usr:e.state,key:e.key,idx:t}}function f(e,t,n,a){return void 0===n&&(n=null),o({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?m(t):t,{state:n,key:t&&t.key||a||Math.random().toString(36).substr(2,8)})}function g(e){let{pathname:t="/",search:n="",hash:a=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),a&&"#"!==a&&(t+="#"===a.charAt(0)?a:"#"+a),t}function m(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let a=e.indexOf("?");a>=0&&(t.search=e.substr(a),e=e.substr(0,a)),e&&(t.pathname=e)}return t}function v(e,t,n){return void 0===n&&(n="/"),function(e,t,n,a){let r=$(("string"==typeof t?m(t):t).pathname||"/",n);if(null==r)return null;let l=function e(t,n,a,r){void 0===n&&(n=[]),void 0===a&&(a=[]),void 0===r&&(r="");let l=(t,l,i)=>{var o,s;let h,c,p={relativePath:void 0===i?t.path||"":i,caseSensitive:!0===t.caseSensitive,childrenIndex:l,route:t};p.relativePath.startsWith("/")&&(u(p.relativePath.startsWith(r),'Absolute route path "'+p.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),p.relativePath=p.relativePath.slice(r.length));let d=L([r,p.relativePath]),f=a.concat(p);t.children&&t.children.length>0&&(u(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+d+'".'),e(t.children,n,f,d)),(null!=t.path||t.index)&&n.push({path:d,score:(o=d,s=t.index,c=(h=o.split("/")).length,h.some(b)&&(c+=-2),s&&(c+=2),h.filter(e=>!b(e)).reduce((e,t)=>e+(y.test(t)?3:""===t?1:10),c)),routesMeta:f})};return t.forEach((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of function e(t){let n=t.split("/");if(0===n.length)return[];let[a,...r]=n,l=a.endsWith("?"),i=a.replace(/\?$/,"");if(0===r.length)return l?[i,""]:[i];let o=e(r.join("/")),s=[];return s.push(...o.map(e=>""===e?i:[i,e].join("/"))),l&&s.push(...o),s.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))l(e,t,n);else l(e,t)}),n}(e);l.sort((e,t)=>{var n,a;return e.score!==t.score?t.score-e.score:(n=e.routesMeta.map(e=>e.childrenIndex),a=t.routesMeta.map(e=>e.childrenIndex),n.length===a.length&&n.slice(0,-1).every((e,t)=>e===a[t])?n[n.length-1]-a[a.length-1]:0)});let i=null;for(let e=0;null==i&&e<l.length;++e){let t=function(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return p(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}(r);i=function(e,t,n){void 0===n&&(n=!1);let{routesMeta:a}=e,r={},l="/",i=[];for(let e=0;e<a.length;++e){let o=a[e],s=e===a.length-1,h="/"===l?t:t.slice(l.length)||"/",c=P({path:o.relativePath,caseSensitive:o.caseSensitive,end:s},h),u=o.route;if(!c&&s&&n&&!a[a.length-1].route.index&&(c=P({path:o.relativePath,caseSensitive:o.caseSensitive,end:!1},h)),!c)return null;Object.assign(r,c.params),i.push({params:r,pathname:L([l,c.pathname]),pathnameBase:O(L([l,c.pathnameBase])),route:u}),"/"!==c.pathnameBase&&(l=L([l,c.pathnameBase]))}return i}(l[e],t,a)}return i}(e,t,n,!1)}(i=r||(r={})).data="data",i.deferred="deferred",i.redirect="redirect",i.error="error";let y=/^:[\w-]+$/,b=e=>"*"===e;function w(e,t){void 0===t&&(t={});let n=e;n.endsWith("*")&&"*"!==n&&!n.endsWith("/*")&&(p(!1,'Route path "'+n+'" will be treated as if it were "'+n.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+n.replace(/\*$/,"/*")+'".'),n=n.replace(/\*$/,"/*"));let a=n.startsWith("/")?"/":"",r=e=>null==e?"":"string"==typeof e?e:String(e);return a+n.split(/\/+/).map((e,n,a)=>{if(n===a.length-1&&"*"===e)return r(t["*"]);let l=e.match(/^:([\w-]+)(\??)$/);if(l){let[,e,n]=l,a=t[e];return u("?"===n||null!=a,'Missing ":'+e+'" param'),r(a)}return e.replace(/\?$/g,"")}).filter(e=>!!e).join("/")}function P(e,t){var n,a,r;let l,i;"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[o,s]=(n=e.path,a=e.caseSensitive,r=e.end,void 0===a&&(a=!1),void 0===r&&(r=!0),p("*"===n||!n.endsWith("*")||n.endsWith("/*"),'Route path "'+n+'" will be treated as if it were "'+n.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+n.replace(/\*$/,"/*")+'".'),l=[],i="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(l.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")),n.endsWith("*")?(l.push({paramName:"*"}),i+="*"===n||"/*"===n?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":""!==n&&"/"!==n&&(i+="(?:(?=\\/|$))"),[new RegExp(i,a?void 0:"i"),l]),h=t.match(o);if(!h)return null;let c=h[0],u=c.replace(/(.)\/+$/,"$1"),d=h.slice(1);return{params:s.reduce((e,t,n)=>{let{paramName:a,isOptional:r}=t;if("*"===a){let e=d[n]||"";u=c.slice(0,c.length-e.length).replace(/(.)\/+$/,"$1")}let l=d[n];return r&&!l?e[a]=void 0:e[a]=(l||"").replace(/%2F/g,"/"),e},{}),pathname:c,pathnameBase:u,pattern:e}}function $(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,a=e.charAt(n);return a&&"/"!==a?null:e.slice(n)||"/"}function x(e,t){var n;let a;void 0===t&&(t="/");let{pathname:r,search:l="",hash:i=""}="string"==typeof e?m(e):e;return{pathname:r?r.startsWith("/")?r:(n=r,a=t.replace(/\/+$/,"").split("/"),n.split("/").forEach(e=>{".."===e?a.length>1&&a.pop():"."!==e&&a.push(e)}),a.length>1?a.join("/"):"/"):t,search:E(l),hash:j(i)}}function W(e,t,n,a){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field [")+JSON.stringify(a)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function S(e,t){let n=e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0);return t?n.map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase):n.map(e=>e.pathnameBase)}function R(e,t,n,a){let r,l;void 0===a&&(a=!1),"string"==typeof e?r=m(e):(u(!(r=o({},e)).pathname||!r.pathname.includes("?"),W("?","pathname","search",r)),u(!r.pathname||!r.pathname.includes("#"),W("#","pathname","hash",r)),u(!r.search||!r.search.includes("#"),W("#","search","hash",r)));let i=""===e||""===r.pathname,s=i?"/":r.pathname;if(null==s)l=n;else{let e=t.length-1;if(!a&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;r.pathname=t.join("/")}l=e>=0?t[e]:"/"}let h=x(r,l),c=s&&"/"!==s&&s.endsWith("/"),p=(i||"."===s)&&n.endsWith("/");return!h.pathname.endsWith("/")&&(c||p)&&(h.pathname+="/"),h}let L=e=>e.join("/").replace(/\/\/+/g,"/"),O=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),E=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",j=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class k extends Error{}function A(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}Symbol("deferred")}}]);
|
|
2
|
-
//# sourceMappingURL=module-remix-run.
|
|
1
|
+
"use strict";(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([["183"],{21613(e,t,n){var a,r,l,i;function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}n.d(t,{AO:()=>g,Gh:()=>O,HS:()=>E,Oi:()=>u,Rr:()=>m,o1:()=>W,pX:()=>U,pb:()=>$,rc:()=>a,sC:()=>h,tH:()=>C,tW:()=>w,ue:()=>v,yD:()=>L,zR:()=>c}),(l=a||(a={})).Pop="POP",l.Push="PUSH",l.Replace="REPLACE";let s="popstate";function h(e){let t;void 0===e&&(e={});let{initialEntries:n=["/"],initialIndex:r,v5Compat:l=!1}=e;t=n.map((e,t)=>c(e,"string"==typeof e?null:e.state,0===t?"default":void 0));let i=h(null==r?t.length-1:r),o=a.Pop,s=null;function h(e){return Math.min(Math.max(e,0),t.length-1)}function c(e,n,a){void 0===n&&(n=null);let r=f(t?t[i].pathname:"/",e,n,a);return p("/"===r.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),r}function u(e){return"string"==typeof e?e:g(e)}return{get index(){return i},get action(){return o},get location(){return t[i]},createHref:u,createURL:e=>new URL(u(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?m(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,n){o=a.Push;let r=c(e,n);i+=1,t.splice(i,t.length,r),l&&s&&s({action:o,location:r,delta:1})},replace(e,n){o=a.Replace;let r=c(e,n);t[i]=r,l&&s&&s({action:o,location:r,delta:0})},go(e){o=a.Pop;let n=h(i+e),r=t[n];i=n,s&&s({action:o,location:r,delta:e})},listen:e=>(s=e,()=>{s=null})}}function c(e){return void 0===e&&(e={}),function(e,t,n,r){void 0===r&&(r={});let{window:l=document.defaultView,v5Compat:i=!1}=r,h=l.history,c=a.Pop,p=null,m=v();function v(){return(h.state||{idx:null}).idx}function y(){c=a.Pop;let e=v(),t=null==e?null:e-m;m=e,p&&p({action:c,location:w.location,delta:t})}function b(e){let t="null"!==l.location.origin?l.location.origin:l.location.href,n="string"==typeof e?e:g(e);return u(t,"No window.location.(origin|href) available to create URL for href: "+(n=n.replace(/ $/,"%20"))),new URL(n,t)}null==m&&(m=0,h.replaceState(o({},h.state,{idx:m}),""));let w={get action(){return c},get location(){return e(l,h)},listen(e){if(p)throw Error("A history only accepts one active listener");return l.addEventListener(s,y),p=e,()=>{l.removeEventListener(s,y),p=null}},createHref:e=>t(l,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){c=a.Push;let n=f(w.location,e,t);let r=d(n,m=v()+1),o=w.createHref(n);try{h.pushState(r,"",o)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;l.location.assign(o)}i&&p&&p({action:c,location:w.location,delta:1})},replace:function(e,t){c=a.Replace;let n=f(w.location,e,t);let r=d(n,m=v()),l=w.createHref(n);h.replaceState(r,"",l),i&&p&&p({action:c,location:w.location,delta:0})},go:e=>h.go(e)};return w}(function(e,t){let{pathname:n,search:a,hash:r}=e.location;return f("",{pathname:n,search:a,hash:r},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:g(t)},null,e)}function u(e,t){if(!1===e||null==e)throw Error(t)}function p(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function d(e,t){return{usr:e.state,key:e.key,idx:t}}function f(e,t,n,a){return void 0===n&&(n=null),o({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?m(t):t,{state:n,key:t&&t.key||a||Math.random().toString(36).substr(2,8)})}function g(e){let{pathname:t="/",search:n="",hash:a=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),a&&"#"!==a&&(t+="#"===a.charAt(0)?a:"#"+a),t}function m(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let a=e.indexOf("?");a>=0&&(t.search=e.substr(a),e=e.substr(0,a)),e&&(t.pathname=e)}return t}function v(e,t,n){return void 0===n&&(n="/"),function(e,t,n,a){let r=$(("string"==typeof t?m(t):t).pathname||"/",n);if(null==r)return null;let l=function e(t,n,a,r){void 0===n&&(n=[]),void 0===a&&(a=[]),void 0===r&&(r="");let l=(t,l,i)=>{var o,s;let h,c,p={relativePath:void 0===i?t.path||"":i,caseSensitive:!0===t.caseSensitive,childrenIndex:l,route:t};p.relativePath.startsWith("/")&&(u(p.relativePath.startsWith(r),'Absolute route path "'+p.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),p.relativePath=p.relativePath.slice(r.length));let d=E([r,p.relativePath]),f=a.concat(p);t.children&&t.children.length>0&&(u(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+d+'".'),e(t.children,n,f,d)),(null!=t.path||t.index)&&n.push({path:d,score:(o=d,s=t.index,c=(h=o.split("/")).length,h.some(b)&&(c+=-2),s&&(c+=2),h.filter(e=>!b(e)).reduce((e,t)=>e+(y.test(t)?3:""===t?1:10),c)),routesMeta:f})};return t.forEach((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of function e(t){let n=t.split("/");if(0===n.length)return[];let[a,...r]=n,l=a.endsWith("?"),i=a.replace(/\?$/,"");if(0===r.length)return l?[i,""]:[i];let o=e(r.join("/")),s=[];return s.push(...o.map(e=>""===e?i:[i,e].join("/"))),l&&s.push(...o),s.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))l(e,t,n);else l(e,t)}),n}(e);l.sort((e,t)=>{var n,a;return e.score!==t.score?t.score-e.score:(n=e.routesMeta.map(e=>e.childrenIndex),a=t.routesMeta.map(e=>e.childrenIndex),n.length===a.length&&n.slice(0,-1).every((e,t)=>e===a[t])?n[n.length-1]-a[a.length-1]:0)});let i=null;for(let e=0;null==i&&e<l.length;++e){let t=function(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return p(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}(r);i=function(e,t,n){void 0===n&&(n=!1);let{routesMeta:a}=e,r={},l="/",i=[];for(let e=0;e<a.length;++e){let o=a[e],s=e===a.length-1,h="/"===l?t:t.slice(l.length)||"/",c=P({path:o.relativePath,caseSensitive:o.caseSensitive,end:s},h),u=o.route;if(!c&&s&&n&&!a[a.length-1].route.index&&(c=P({path:o.relativePath,caseSensitive:o.caseSensitive,end:!1},h)),!c)return null;Object.assign(r,c.params),i.push({params:r,pathname:E([l,c.pathname]),pathnameBase:j(E([l,c.pathnameBase])),route:u}),"/"!==c.pathnameBase&&(l=E([l,c.pathnameBase]))}return i}(l[e],t,a)}return i}(e,t,n,!1)}(i=r||(r={})).data="data",i.deferred="deferred",i.redirect="redirect",i.error="error";let y=/^:[\w-]+$/,b=e=>"*"===e;function w(e,t){void 0===t&&(t={});let n=e;n.endsWith("*")&&"*"!==n&&!n.endsWith("/*")&&(p(!1,'Route path "'+n+'" will be treated as if it were "'+n.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+n.replace(/\*$/,"/*")+'".'),n=n.replace(/\*$/,"/*"));let a=n.startsWith("/")?"/":"",r=e=>null==e?"":"string"==typeof e?e:String(e);return a+n.split(/\/+/).map((e,n,a)=>{if(n===a.length-1&&"*"===e)return r(t["*"]);let l=e.match(/^:([\w-]+)(\??)$/);if(l){let[,e,n]=l,a=t[e];return u("?"===n||null!=a,'Missing ":'+e+'" param'),r(a)}return e.replace(/\?$/g,"")}).filter(e=>!!e).join("/")}function P(e,t){var n,a,r;let l,i;"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[o,s]=(n=e.path,a=e.caseSensitive,r=e.end,void 0===a&&(a=!1),void 0===r&&(r=!0),p("*"===n||!n.endsWith("*")||n.endsWith("/*"),'Route path "'+n+'" will be treated as if it were "'+n.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+n.replace(/\*$/,"/*")+'".'),l=[],i="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(l.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")),n.endsWith("*")?(l.push({paramName:"*"}),i+="*"===n||"/*"===n?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":""!==n&&"/"!==n&&(i+="(?:(?=\\/|$))"),[new RegExp(i,a?void 0:"i"),l]),h=t.match(o);if(!h)return null;let c=h[0],u=c.replace(/(.)\/+$/,"$1"),d=h.slice(1);return{params:s.reduce((e,t,n)=>{let{paramName:a,isOptional:r}=t;if("*"===a){let e=d[n]||"";u=c.slice(0,c.length-e.length).replace(/(.)\/+$/,"$1")}let l=d[n];return r&&!l?e[a]=void 0:e[a]=(l||"").replace(/%2F/g,"/"),e},{}),pathname:c,pathnameBase:u,pattern:e}}function $(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,a=e.charAt(n);return a&&"/"!==a?null:e.slice(n)||"/"}let x=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function W(e,t){let n;void 0===t&&(t="/");let{pathname:a,search:r="",hash:l=""}="string"==typeof e?m(e):e;if(a){let e;(e=a,x.test(e))?n=a:(a.includes("//")&&p(!1,"Pathnames cannot have embedded double slashes - normalizing "+a+" -> "+(a=a.replace(/\/\/+/g,"/"))),n=a.startsWith("/")?S(a.substring(1),"/"):S(a,t))}else n=t;return{pathname:n,search:k(r),hash:A(l)}}function S(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}function R(e,t,n,a){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field [")+JSON.stringify(a)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function L(e,t){let n=e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0);return t?n.map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase):n.map(e=>e.pathnameBase)}function O(e,t,n,a){let r,l;void 0===a&&(a=!1),"string"==typeof e?r=m(e):(u(!(r=o({},e)).pathname||!r.pathname.includes("?"),R("?","pathname","search",r)),u(!r.pathname||!r.pathname.includes("#"),R("#","pathname","hash",r)),u(!r.search||!r.search.includes("#"),R("#","search","hash",r)));let i=""===e||""===r.pathname,s=i?"/":r.pathname;if(null==s)l=n;else{let e=t.length-1;if(!a&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;r.pathname=t.join("/")}l=e>=0?t[e]:"/"}let h=W(r,l),c=s&&"/"!==s&&s.endsWith("/"),p=(i||"."===s)&&n.endsWith("/");return!h.pathname.endsWith("/")&&(c||p)&&(h.pathname+="/"),h}let E=e=>e.join("/").replace(/\/\/+/g,"/"),j=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),k=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",A=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class C extends Error{}function U(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}Symbol("deferred")}}]);
|
|
2
|
+
//# sourceMappingURL=module-remix-run.8b5ff4b7.js.map
|