lkd-web-kit 0.0.7 → 0.0.9
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/index.cjs +1 -0
- package/dist/index.js +59 -6322
- package/dist/index10.cjs +1 -0
- package/dist/index10.js +21 -0
- package/dist/index100.cjs +1 -0
- package/dist/index100.js +4 -0
- package/dist/index101.cjs +1 -0
- package/dist/index101.js +4 -0
- package/dist/index102.cjs +1 -0
- package/dist/index102.js +4 -0
- package/dist/index103.cjs +1 -0
- package/dist/index103.js +4 -0
- package/dist/index104.cjs +1 -0
- package/dist/index104.js +21 -0
- package/dist/index105.cjs +1 -0
- package/dist/index105.js +19 -0
- package/dist/index106.cjs +1 -0
- package/dist/index106.js +4 -0
- package/dist/index107.cjs +1 -0
- package/dist/index107.js +4 -0
- package/dist/index108.cjs +1 -0
- package/dist/index108.js +63 -0
- package/dist/index109.cjs +1 -0
- package/dist/index109.js +4 -0
- package/dist/index11.cjs +1 -0
- package/dist/index11.js +18 -0
- package/dist/index110.cjs +1 -0
- package/dist/index110.js +4 -0
- package/dist/index111.cjs +1 -0
- package/dist/index111.js +4 -0
- package/dist/index112.cjs +1 -0
- package/dist/index112.js +30 -0
- package/dist/index113.cjs +1 -0
- package/dist/index113.js +26 -0
- package/dist/index114.cjs +1 -0
- package/dist/index114.js +4 -0
- package/dist/index115.cjs +1 -0
- package/dist/index115.js +4 -0
- package/dist/index116.cjs +1 -0
- package/dist/index116.js +19 -0
- package/dist/index117.cjs +1 -0
- package/dist/index117.js +4 -0
- package/dist/index118.cjs +1 -0
- package/dist/index118.js +4 -0
- package/dist/index119.cjs +1 -0
- package/dist/index119.js +4 -0
- package/dist/index12.cjs +1 -0
- package/dist/index12.js +9 -0
- package/dist/index120.cjs +1 -0
- package/dist/index120.js +19 -0
- package/dist/index121.cjs +1 -0
- package/dist/index121.js +76 -0
- package/dist/index122.cjs +1 -0
- package/dist/index122.js +4 -0
- package/dist/index123.cjs +1 -0
- package/dist/index123.js +4 -0
- package/dist/index124.cjs +1 -0
- package/dist/index124.js +4 -0
- package/dist/index125.cjs +1 -0
- package/dist/index125.js +4 -0
- package/dist/index126.cjs +1 -0
- package/dist/index126.js +4 -0
- package/dist/index127.cjs +1 -0
- package/dist/index127.js +4 -0
- package/dist/index128.cjs +1 -0
- package/dist/index128.js +20 -0
- package/dist/index129.cjs +1 -0
- package/dist/index129.js +29 -0
- package/dist/index13.cjs +1 -0
- package/dist/index13.js +9 -0
- package/dist/index130.cjs +1 -0
- package/dist/index130.js +4 -0
- package/dist/index131.cjs +1 -0
- package/dist/index131.js +154 -0
- package/dist/index132.cjs +1 -0
- package/dist/index132.js +22 -0
- package/dist/index133.cjs +1 -0
- package/dist/index133.js +4 -0
- package/dist/index134.cjs +1 -0
- package/dist/index134.js +42 -0
- package/dist/index135.cjs +1 -0
- package/dist/index135.js +167 -0
- package/dist/index136.cjs +1 -0
- package/dist/index136.js +4 -0
- package/dist/index137.cjs +1 -0
- package/dist/index137.js +25 -0
- package/dist/index138.cjs +1 -0
- package/dist/index138.js +4 -0
- package/dist/index139.cjs +1 -0
- package/dist/index139.js +4 -0
- package/dist/index14.cjs +1 -0
- package/dist/index14.js +47 -0
- package/dist/index140.cjs +1 -0
- package/dist/index140.js +4 -0
- package/dist/index141.cjs +1 -0
- package/dist/index141.js +37 -0
- package/dist/index142.cjs +1 -0
- package/dist/index142.js +4 -0
- package/dist/index143.cjs +1 -0
- package/dist/index143.js +28 -0
- package/dist/index144.cjs +1 -0
- package/dist/index144.js +4 -0
- package/dist/index145.cjs +1 -0
- package/dist/index145.js +4 -0
- package/dist/index146.cjs +1 -0
- package/dist/index146.js +4 -0
- package/dist/index147.cjs +1 -0
- package/dist/index147.js +19 -0
- package/dist/index148.cjs +1 -0
- package/dist/index148.js +4 -0
- package/dist/index149.cjs +1 -0
- package/dist/index149.js +4 -0
- package/dist/index15.cjs +1 -0
- package/dist/index15.js +20 -0
- package/dist/index150.cjs +1 -0
- package/dist/index150.js +21 -0
- package/dist/index151.cjs +1 -0
- package/dist/index151.js +24 -0
- package/dist/index152.cjs +1 -0
- package/dist/index152.js +4 -0
- package/dist/index153.cjs +1 -0
- package/dist/index153.js +4 -0
- package/dist/index154.cjs +1 -0
- package/dist/index154.js +65 -0
- package/dist/index155.cjs +1 -0
- package/dist/index155.js +4 -0
- package/dist/index156.cjs +1 -0
- package/dist/index156.js +4 -0
- package/dist/index157.cjs +1 -0
- package/dist/index157.js +4 -0
- package/dist/index158.cjs +1 -0
- package/dist/index158.js +4 -0
- package/dist/index159.cjs +1 -0
- package/dist/index159.js +4 -0
- package/dist/index16.cjs +1 -0
- package/dist/index16.js +17 -0
- package/dist/index160.cjs +1 -0
- package/dist/index160.js +4 -0
- package/dist/index161.cjs +1 -0
- package/dist/index161.js +90 -0
- package/dist/index162.cjs +1 -0
- package/dist/index162.js +4 -0
- package/dist/index163.cjs +1 -0
- package/dist/index163.js +4 -0
- package/dist/index164.cjs +1 -0
- package/dist/index164.js +285 -0
- package/dist/index165.cjs +1 -0
- package/dist/index165.js +21 -0
- package/dist/index166.cjs +1 -0
- package/dist/index166.js +4 -0
- package/dist/index167.cjs +1 -0
- package/dist/index167.js +4 -0
- package/dist/index168.cjs +1 -0
- package/dist/index168.js +4 -0
- package/dist/index169.cjs +1 -0
- package/dist/index169.js +4 -0
- package/dist/index17.cjs +1 -0
- package/dist/index17.js +18 -0
- package/dist/index170.cjs +1 -0
- package/dist/index170.js +4 -0
- package/dist/index171.cjs +1 -0
- package/dist/index171.js +4 -0
- package/dist/index172.cjs +1 -0
- package/dist/index172.js +4 -0
- package/dist/index173.cjs +1 -0
- package/dist/index173.js +4 -0
- package/dist/index174.cjs +1 -0
- package/dist/index174.js +39 -0
- package/dist/index175.cjs +1 -0
- package/dist/index175.js +4 -0
- package/dist/index176.cjs +1 -0
- package/dist/index176.js +4 -0
- package/dist/index177.cjs +1 -0
- package/dist/index177.js +4 -0
- package/dist/index178.cjs +1 -0
- package/dist/index178.js +20 -0
- package/dist/index179.cjs +1 -0
- package/dist/index179.js +4 -0
- package/dist/index18.cjs +1 -0
- package/dist/index18.js +5 -0
- package/dist/index180.cjs +1 -0
- package/dist/index180.js +6 -0
- package/dist/index19.cjs +1 -0
- package/dist/index19.js +11 -0
- package/dist/index2.cjs +1 -0
- package/dist/index2.js +36 -0
- package/dist/index20.cjs +1 -0
- package/dist/index20.js +10 -0
- package/dist/index21.cjs +1 -0
- package/dist/index21.js +8 -0
- package/dist/index22.cjs +1 -0
- package/dist/index22.js +5 -0
- package/dist/index23.cjs +1 -0
- package/dist/index23.js +6 -0
- package/dist/index24.cjs +1 -0
- package/dist/index24.js +34 -0
- package/dist/index25.cjs +1 -0
- package/dist/index25.js +13 -0
- package/dist/index26.cjs +1 -0
- package/dist/index26.js +20 -0
- package/dist/index27.cjs +1 -0
- package/dist/index27.js +4 -0
- package/dist/index28.cjs +1 -0
- package/dist/index28.js +54 -0
- package/dist/index29.cjs +1 -0
- package/dist/index29.js +7 -0
- package/dist/index3.cjs +1 -0
- package/dist/index3.js +6 -0
- package/dist/index30.cjs +1 -0
- package/dist/index30.js +8 -0
- package/dist/index31.cjs +8 -0
- package/dist/index31.js +280 -0
- package/dist/index32.cjs +1 -0
- package/dist/index32.js +8 -0
- package/dist/index33.cjs +1 -0
- package/dist/index33.js +133 -0
- package/dist/index34.cjs +1 -0
- package/dist/index34.js +4 -0
- package/dist/index35.cjs +1 -0
- package/dist/index35.js +41 -0
- package/dist/index36.cjs +1 -0
- package/dist/index36.js +33 -0
- package/dist/index37.cjs +1 -0
- package/dist/index37.js +21 -0
- package/dist/index38.cjs +1 -0
- package/dist/index38.js +49 -0
- package/dist/index39.cjs +1 -0
- package/dist/index39.js +75 -0
- package/dist/index4.cjs +1 -0
- package/dist/index4.js +105 -0
- package/dist/index40.cjs +1 -0
- package/dist/index40.js +34 -0
- package/dist/index41.cjs +4 -0
- package/dist/index41.js +346 -0
- package/dist/index42.cjs +1 -0
- package/dist/index42.js +30 -0
- package/dist/index43.cjs +1 -0
- package/dist/index43.js +4 -0
- package/dist/index44.cjs +1 -0
- package/dist/index44.js +30 -0
- package/dist/index45.cjs +1 -0
- package/dist/index45.js +67 -0
- package/dist/index46.cjs +1 -0
- package/dist/index46.js +29 -0
- package/dist/index47.cjs +1 -0
- package/dist/index47.js +57 -0
- package/dist/index48.cjs +1 -0
- package/dist/index48.js +166 -0
- package/dist/index49.cjs +1 -0
- package/dist/index49.js +25 -0
- package/dist/index5.cjs +1 -0
- package/dist/index5.js +35 -0
- package/dist/index50.cjs +1 -0
- package/dist/index50.js +21 -0
- package/dist/index51.cjs +1 -0
- package/dist/index51.js +85 -0
- package/dist/index52.cjs +1 -0
- package/dist/index52.js +33 -0
- package/dist/index53.cjs +1 -0
- package/dist/index53.js +24 -0
- package/dist/index54.cjs +1 -0
- package/dist/index54.js +44 -0
- package/dist/index55.cjs +1 -0
- package/dist/index55.js +25 -0
- package/dist/index56.cjs +1 -0
- package/dist/index56.js +4 -0
- package/dist/index57.cjs +1 -0
- package/dist/index57.js +13 -0
- package/dist/index58.cjs +1 -0
- package/dist/index58.js +4 -0
- package/dist/index59.cjs +1 -0
- package/dist/index59.js +4 -0
- package/dist/index6.cjs +1 -0
- package/dist/index6.js +4 -0
- package/dist/index60.cjs +1 -0
- package/dist/index60.js +4 -0
- package/dist/index61.cjs +1 -0
- package/dist/index61.js +4 -0
- package/dist/index62.cjs +1 -0
- package/dist/index62.js +80 -0
- package/dist/index63.cjs +1 -0
- package/dist/index63.js +41 -0
- package/dist/index64.cjs +1 -0
- package/dist/index64.js +28 -0
- package/dist/index65.cjs +1 -0
- package/dist/index65.js +34 -0
- package/dist/index66.cjs +1 -0
- package/dist/index66.js +34 -0
- package/dist/index67.cjs +1 -0
- package/dist/index67.js +21 -0
- package/dist/index68.cjs +1 -0
- package/dist/index68.js +4 -0
- package/dist/index69.cjs +1 -0
- package/dist/index69.js +4 -0
- package/dist/index7.cjs +1 -0
- package/dist/index7.js +4 -0
- package/dist/index70.cjs +1 -0
- package/dist/index70.js +36 -0
- package/dist/index71.cjs +1 -0
- package/dist/index71.js +36 -0
- package/dist/index72.cjs +1 -0
- package/dist/index72.js +102 -0
- package/dist/index73.cjs +1 -0
- package/dist/index73.js +19 -0
- package/dist/index74.cjs +1 -0
- package/dist/index74.js +62 -0
- package/dist/index75.cjs +1 -0
- package/dist/index75.js +30 -0
- package/dist/index76.cjs +1 -0
- package/dist/index76.js +45 -0
- package/dist/index77.cjs +1 -0
- package/dist/index77.js +4 -0
- package/dist/index78.cjs +1 -0
- package/dist/index78.js +35 -0
- package/dist/index79.cjs +1 -0
- package/dist/index79.js +4 -0
- package/dist/index8.cjs +1 -0
- package/dist/index8.js +47 -0
- package/dist/index80.cjs +1 -0
- package/dist/index80.js +4 -0
- package/dist/index81.cjs +1 -0
- package/dist/index81.js +64 -0
- package/dist/index82.cjs +1 -0
- package/dist/index82.js +23 -0
- package/dist/index83.cjs +1 -0
- package/dist/index83.js +26 -0
- package/dist/index84.cjs +1 -0
- package/dist/index84.js +32 -0
- package/dist/index85.cjs +1 -0
- package/dist/index85.js +49 -0
- package/dist/index86.cjs +1 -0
- package/dist/index86.js +4 -0
- package/dist/index87.cjs +1 -0
- package/dist/index87.js +23 -0
- package/dist/index88.cjs +1 -0
- package/dist/index88.js +4 -0
- package/dist/index89.cjs +1 -0
- package/dist/index89.js +4 -0
- package/dist/index9.cjs +1 -0
- package/dist/index9.js +15 -0
- package/dist/index90.cjs +1 -0
- package/dist/index90.js +4 -0
- package/dist/index91.cjs +1 -0
- package/dist/index91.js +25 -0
- package/dist/index92.cjs +1 -0
- package/dist/index92.js +4 -0
- package/dist/index93.cjs +1 -0
- package/dist/index93.js +4 -0
- package/dist/index94.cjs +1 -0
- package/dist/index94.js +40 -0
- package/dist/index95.cjs +1 -0
- package/dist/index95.js +4 -0
- package/dist/index96.cjs +1 -0
- package/dist/index96.js +23 -0
- package/dist/index97.cjs +1 -0
- package/dist/index97.js +25 -0
- package/dist/index98.cjs +1 -0
- package/dist/index98.js +4 -0
- package/dist/index99.cjs +1 -0
- package/dist/index99.js +25 -0
- package/package.json +11 -10
- package/dist/index.umd.cjs +0 -6354
package/dist/index13.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
package/dist/index130.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index159.cjs");var _;function g(){return _||(_=1,function(d){Object.defineProperty(d,"__esModule",{value:!0});function E(o,t){for(var n in t)Object.defineProperty(o,n,{enumerable:!0,get:t[n]})}E(d,{getSortedRouteObjects:function(){return R},getSortedRoutes:function(){return m}});class l{insert(t){this._insert(t.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(t){t===void 0&&(t="/");const n=[...this.children.keys()].sort();this.slugName!==null&&n.splice(n.indexOf("[]"),1),this.restSlugName!==null&&n.splice(n.indexOf("[...]"),1),this.optionalRestSlugName!==null&&n.splice(n.indexOf("[[...]]"),1);const s=n.map(r=>this.children.get(r)._smoosh(""+t+r+"/")).reduce((r,e)=>[...r,...e],[]);if(this.slugName!==null&&s.push(...this.children.get("[]")._smoosh(t+"["+this.slugName+"]/")),!this.placeholder){const r=t==="/"?"/":t.slice(0,-1);if(this.optionalRestSlugName!=null)throw Object.defineProperty(new Error('You cannot define a route with the same specificity as a optional catch-all route ("'+r+'" and "'+r+"[[..."+this.optionalRestSlugName+']]").'),"__NEXT_ERROR_CODE",{value:"E458",enumerable:!1,configurable:!0});s.unshift(r)}return this.restSlugName!==null&&s.push(...this.children.get("[...]")._smoosh(t+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&s.push(...this.children.get("[[...]]")._smoosh(t+"[[..."+this.optionalRestSlugName+"]]/")),s}_insert(t,n,s){if(t.length===0){this.placeholder=!1;return}if(s)throw Object.defineProperty(new Error("Catch-all must be the last part of the URL."),"__NEXT_ERROR_CODE",{value:"E392",enumerable:!1,configurable:!0});let r=t[0];if(r.startsWith("[")&&r.endsWith("]")){let u=function(h,a){if(h!==null&&h!==a)throw Object.defineProperty(new Error("You cannot use different slug names for the same dynamic path ('"+h+"' !== '"+a+"')."),"__NEXT_ERROR_CODE",{value:"E337",enumerable:!1,configurable:!0});n.forEach(c=>{if(c===a)throw Object.defineProperty(new Error('You cannot have the same slug name "'+a+'" repeat within a single dynamic path'),"__NEXT_ERROR_CODE",{value:"E247",enumerable:!1,configurable:!0});if(c.replace(/\W/g,"")===r.replace(/\W/g,""))throw Object.defineProperty(new Error('You cannot have the slug names "'+c+'" and "'+a+'" differ only by non-word symbols within a single dynamic path'),"__NEXT_ERROR_CODE",{value:"E499",enumerable:!1,configurable:!0})}),n.push(a)},e=r.slice(1,-1),i=!1;if(e.startsWith("[")&&e.endsWith("]")&&(e=e.slice(1,-1),i=!0),e.startsWith("…"))throw Object.defineProperty(new Error("Detected a three-dot character ('…') at ('"+e+"'). Did you mean ('...')?"),"__NEXT_ERROR_CODE",{value:"E147",enumerable:!1,configurable:!0});if(e.startsWith("...")&&(e=e.substring(3),s=!0),e.startsWith("[")||e.endsWith("]"))throw Object.defineProperty(new Error("Segment names may not start or end with extra brackets ('"+e+"')."),"__NEXT_ERROR_CODE",{value:"E421",enumerable:!1,configurable:!0});if(e.startsWith("."))throw Object.defineProperty(new Error("Segment names may not start with erroneous periods ('"+e+"')."),"__NEXT_ERROR_CODE",{value:"E288",enumerable:!1,configurable:!0});if(s)if(i){if(this.restSlugName!=null)throw Object.defineProperty(new Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+t[0]+'" ).'),"__NEXT_ERROR_CODE",{value:"E299",enumerable:!1,configurable:!0});u(this.optionalRestSlugName,e),this.optionalRestSlugName=e,r="[[...]]"}else{if(this.optionalRestSlugName!=null)throw Object.defineProperty(new Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+t[0]+'").'),"__NEXT_ERROR_CODE",{value:"E300",enumerable:!1,configurable:!0});u(this.restSlugName,e),this.restSlugName=e,r="[...]"}else{if(i)throw Object.defineProperty(new Error('Optional route parameters are not yet supported ("'+t[0]+'").'),"__NEXT_ERROR_CODE",{value:"E435",enumerable:!1,configurable:!0});u(this.slugName,e),this.slugName=e,r="[]"}}this.children.has(r)||this.children.set(r,new l),this.children.get(r)._insert(t.slice(1),n,s)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function m(o){const t=new l;return o.forEach(n=>t.insert(n)),t.smoosh()}function R(o,t){const n={},s=[];for(let e=0;e<o.length;e++){const i=t(o[e]);n[i]=e,s[e]=i}return m(s).map(e=>o[n[e]])}}(f.__exports)),f.__exports}exports.__require=g;
|
package/dist/index131.js
ADDED
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { __exports as f } from "./index159.js";
|
|
2
|
+
var _;
|
|
3
|
+
function g() {
|
|
4
|
+
return _ ? f : (_ = 1, function(m) {
|
|
5
|
+
Object.defineProperty(m, "__esModule", {
|
|
6
|
+
value: !0
|
|
7
|
+
});
|
|
8
|
+
function E(o, t) {
|
|
9
|
+
for (var n in t) Object.defineProperty(o, n, {
|
|
10
|
+
enumerable: !0,
|
|
11
|
+
get: t[n]
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
E(m, {
|
|
15
|
+
getSortedRouteObjects: function() {
|
|
16
|
+
return R;
|
|
17
|
+
},
|
|
18
|
+
getSortedRoutes: function() {
|
|
19
|
+
return d;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
class l {
|
|
23
|
+
insert(t) {
|
|
24
|
+
this._insert(t.split("/").filter(Boolean), [], !1);
|
|
25
|
+
}
|
|
26
|
+
smoosh() {
|
|
27
|
+
return this._smoosh();
|
|
28
|
+
}
|
|
29
|
+
_smoosh(t) {
|
|
30
|
+
t === void 0 && (t = "/");
|
|
31
|
+
const n = [
|
|
32
|
+
...this.children.keys()
|
|
33
|
+
].sort();
|
|
34
|
+
this.slugName !== null && n.splice(n.indexOf("[]"), 1), this.restSlugName !== null && n.splice(n.indexOf("[...]"), 1), this.optionalRestSlugName !== null && n.splice(n.indexOf("[[...]]"), 1);
|
|
35
|
+
const s = n.map((r) => this.children.get(r)._smoosh("" + t + r + "/")).reduce((r, e) => [
|
|
36
|
+
...r,
|
|
37
|
+
...e
|
|
38
|
+
], []);
|
|
39
|
+
if (this.slugName !== null && s.push(...this.children.get("[]")._smoosh(t + "[" + this.slugName + "]/")), !this.placeholder) {
|
|
40
|
+
const r = t === "/" ? "/" : t.slice(0, -1);
|
|
41
|
+
if (this.optionalRestSlugName != null)
|
|
42
|
+
throw Object.defineProperty(new Error('You cannot define a route with the same specificity as a optional catch-all route ("' + r + '" and "' + r + "[[..." + this.optionalRestSlugName + ']]").'), "__NEXT_ERROR_CODE", {
|
|
43
|
+
value: "E458",
|
|
44
|
+
enumerable: !1,
|
|
45
|
+
configurable: !0
|
|
46
|
+
});
|
|
47
|
+
s.unshift(r);
|
|
48
|
+
}
|
|
49
|
+
return this.restSlugName !== null && s.push(...this.children.get("[...]")._smoosh(t + "[..." + this.restSlugName + "]/")), this.optionalRestSlugName !== null && s.push(...this.children.get("[[...]]")._smoosh(t + "[[..." + this.optionalRestSlugName + "]]/")), s;
|
|
50
|
+
}
|
|
51
|
+
_insert(t, n, s) {
|
|
52
|
+
if (t.length === 0) {
|
|
53
|
+
this.placeholder = !1;
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
if (s)
|
|
57
|
+
throw Object.defineProperty(new Error("Catch-all must be the last part of the URL."), "__NEXT_ERROR_CODE", {
|
|
58
|
+
value: "E392",
|
|
59
|
+
enumerable: !1,
|
|
60
|
+
configurable: !0
|
|
61
|
+
});
|
|
62
|
+
let r = t[0];
|
|
63
|
+
if (r.startsWith("[") && r.endsWith("]")) {
|
|
64
|
+
let u = function(h, i) {
|
|
65
|
+
if (h !== null && h !== i)
|
|
66
|
+
throw Object.defineProperty(new Error("You cannot use different slug names for the same dynamic path ('" + h + "' !== '" + i + "')."), "__NEXT_ERROR_CODE", {
|
|
67
|
+
value: "E337",
|
|
68
|
+
enumerable: !1,
|
|
69
|
+
configurable: !0
|
|
70
|
+
});
|
|
71
|
+
n.forEach((c) => {
|
|
72
|
+
if (c === i)
|
|
73
|
+
throw Object.defineProperty(new Error('You cannot have the same slug name "' + i + '" repeat within a single dynamic path'), "__NEXT_ERROR_CODE", {
|
|
74
|
+
value: "E247",
|
|
75
|
+
enumerable: !1,
|
|
76
|
+
configurable: !0
|
|
77
|
+
});
|
|
78
|
+
if (c.replace(/\W/g, "") === r.replace(/\W/g, ""))
|
|
79
|
+
throw Object.defineProperty(new Error('You cannot have the slug names "' + c + '" and "' + i + '" differ only by non-word symbols within a single dynamic path'), "__NEXT_ERROR_CODE", {
|
|
80
|
+
value: "E499",
|
|
81
|
+
enumerable: !1,
|
|
82
|
+
configurable: !0
|
|
83
|
+
});
|
|
84
|
+
}), n.push(i);
|
|
85
|
+
}, e = r.slice(1, -1), a = !1;
|
|
86
|
+
if (e.startsWith("[") && e.endsWith("]") && (e = e.slice(1, -1), a = !0), e.startsWith("…"))
|
|
87
|
+
throw Object.defineProperty(new Error("Detected a three-dot character ('…') at ('" + e + "'). Did you mean ('...')?"), "__NEXT_ERROR_CODE", {
|
|
88
|
+
value: "E147",
|
|
89
|
+
enumerable: !1,
|
|
90
|
+
configurable: !0
|
|
91
|
+
});
|
|
92
|
+
if (e.startsWith("...") && (e = e.substring(3), s = !0), e.startsWith("[") || e.endsWith("]"))
|
|
93
|
+
throw Object.defineProperty(new Error("Segment names may not start or end with extra brackets ('" + e + "')."), "__NEXT_ERROR_CODE", {
|
|
94
|
+
value: "E421",
|
|
95
|
+
enumerable: !1,
|
|
96
|
+
configurable: !0
|
|
97
|
+
});
|
|
98
|
+
if (e.startsWith("."))
|
|
99
|
+
throw Object.defineProperty(new Error("Segment names may not start with erroneous periods ('" + e + "')."), "__NEXT_ERROR_CODE", {
|
|
100
|
+
value: "E288",
|
|
101
|
+
enumerable: !1,
|
|
102
|
+
configurable: !0
|
|
103
|
+
});
|
|
104
|
+
if (s)
|
|
105
|
+
if (a) {
|
|
106
|
+
if (this.restSlugName != null)
|
|
107
|
+
throw Object.defineProperty(new Error('You cannot use both an required and optional catch-all route at the same level ("[...' + this.restSlugName + ']" and "' + t[0] + '" ).'), "__NEXT_ERROR_CODE", {
|
|
108
|
+
value: "E299",
|
|
109
|
+
enumerable: !1,
|
|
110
|
+
configurable: !0
|
|
111
|
+
});
|
|
112
|
+
u(this.optionalRestSlugName, e), this.optionalRestSlugName = e, r = "[[...]]";
|
|
113
|
+
} else {
|
|
114
|
+
if (this.optionalRestSlugName != null)
|
|
115
|
+
throw Object.defineProperty(new Error('You cannot use both an optional and required catch-all route at the same level ("[[...' + this.optionalRestSlugName + ']]" and "' + t[0] + '").'), "__NEXT_ERROR_CODE", {
|
|
116
|
+
value: "E300",
|
|
117
|
+
enumerable: !1,
|
|
118
|
+
configurable: !0
|
|
119
|
+
});
|
|
120
|
+
u(this.restSlugName, e), this.restSlugName = e, r = "[...]";
|
|
121
|
+
}
|
|
122
|
+
else {
|
|
123
|
+
if (a)
|
|
124
|
+
throw Object.defineProperty(new Error('Optional route parameters are not yet supported ("' + t[0] + '").'), "__NEXT_ERROR_CODE", {
|
|
125
|
+
value: "E435",
|
|
126
|
+
enumerable: !1,
|
|
127
|
+
configurable: !0
|
|
128
|
+
});
|
|
129
|
+
u(this.slugName, e), this.slugName = e, r = "[]";
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
this.children.has(r) || this.children.set(r, new l()), this.children.get(r)._insert(t.slice(1), n, s);
|
|
133
|
+
}
|
|
134
|
+
constructor() {
|
|
135
|
+
this.placeholder = !0, this.children = /* @__PURE__ */ new Map(), this.slugName = null, this.restSlugName = null, this.optionalRestSlugName = null;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
function d(o) {
|
|
139
|
+
const t = new l();
|
|
140
|
+
return o.forEach((n) => t.insert(n)), t.smoosh();
|
|
141
|
+
}
|
|
142
|
+
function R(o, t) {
|
|
143
|
+
const n = {}, s = [];
|
|
144
|
+
for (let e = 0; e < o.length; e++) {
|
|
145
|
+
const a = t(o[e]);
|
|
146
|
+
n[a] = e, s[e] = a;
|
|
147
|
+
}
|
|
148
|
+
return d(s).map((e) => o[n[e]]);
|
|
149
|
+
}
|
|
150
|
+
}(f), f);
|
|
151
|
+
}
|
|
152
|
+
export {
|
|
153
|
+
g as __require
|
|
154
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index160.cjs"),_=require("./index161.cjs");var o;function a(){return o||(o=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isDynamicRoute",{enumerable:!0,get:function(){return s}});const i=_.__require(),u=/\/[^/]*\[[^/]+\][^/]*(?=\/|$)/,c=/\/\[[^/]+\](?=\/|$)/;function s(e,t){return t===void 0&&(t=!0),(0,i.isInterceptionRouteAppPath)(e)&&(e=(0,i.extractInterceptionRouteInformation)(e).interceptedRoute),t?c.test(e):u.test(e)}}(n.__exports)),n.__exports}exports.__require=a;
|
package/dist/index132.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { __exports as n } from "./index160.js";
|
|
2
|
+
import { __require as a } from "./index161.js";
|
|
3
|
+
var o;
|
|
4
|
+
function _() {
|
|
5
|
+
return o ? n : (o = 1, function(r) {
|
|
6
|
+
Object.defineProperty(r, "__esModule", {
|
|
7
|
+
value: !0
|
|
8
|
+
}), Object.defineProperty(r, "isDynamicRoute", {
|
|
9
|
+
enumerable: !0,
|
|
10
|
+
get: function() {
|
|
11
|
+
return s;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
const i = a(), u = /\/[^/]*\[[^/]+\][^/]*(?=\/|$)/, c = /\/\[[^/]+\](?=\/|$)/;
|
|
15
|
+
function s(e, t) {
|
|
16
|
+
return t === void 0 && (t = !0), (0, i.isInterceptionRouteAppPath)(e) && (e = (0, i.extractInterceptionRouteInformation)(e).interceptedRoute), t ? c.test(e) : u.test(e);
|
|
17
|
+
}
|
|
18
|
+
}(n), n);
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
_ as __require
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
package/dist/index133.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index162.cjs"),b=require("./index48.cjs");var a;function R(){return a||(a=1,function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"getRouteMatcher",{enumerable:!0,get:function(){return f}});const s=b.__require();function f(d){let{re:l,groups:_}=d;return p=>{const c=l.exec(p);if(!c)return!1;const i=e=>{try{return decodeURIComponent(e)}catch{throw Object.defineProperty(new s.DecodeError("failed to decode param"),"__NEXT_ERROR_CODE",{value:"E528",enumerable:!1,configurable:!0})}},r={};for(const[e,t]of Object.entries(_)){const o=c[t.pos];o!==void 0&&(t.repeat?r[e]=o.split("/").map(h=>i(h)):r[e]=i(o))}return r}}}(u.__exports)),u.__exports}exports.__require=R;
|
package/dist/index134.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { __exports as u } from "./index162.js";
|
|
2
|
+
import { __require as h } from "./index48.js";
|
|
3
|
+
var i;
|
|
4
|
+
function M() {
|
|
5
|
+
return i ? u : (i = 1, function(n) {
|
|
6
|
+
Object.defineProperty(n, "__esModule", {
|
|
7
|
+
value: !0
|
|
8
|
+
}), Object.defineProperty(n, "getRouteMatcher", {
|
|
9
|
+
enumerable: !0,
|
|
10
|
+
get: function() {
|
|
11
|
+
return f;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
const s = h();
|
|
15
|
+
function f(d) {
|
|
16
|
+
let { re: p, groups: l } = d;
|
|
17
|
+
return (_) => {
|
|
18
|
+
const c = p.exec(_);
|
|
19
|
+
if (!c) return !1;
|
|
20
|
+
const a = (e) => {
|
|
21
|
+
try {
|
|
22
|
+
return decodeURIComponent(e);
|
|
23
|
+
} catch {
|
|
24
|
+
throw Object.defineProperty(new s.DecodeError("failed to decode param"), "__NEXT_ERROR_CODE", {
|
|
25
|
+
value: "E528",
|
|
26
|
+
enumerable: !1,
|
|
27
|
+
configurable: !0
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}, r = {};
|
|
31
|
+
for (const [e, t] of Object.entries(l)) {
|
|
32
|
+
const o = c[t.pos];
|
|
33
|
+
o !== void 0 && (t.repeat ? r[e] = o.split("/").map((m) => a(m)) : r[e] = a(o));
|
|
34
|
+
}
|
|
35
|
+
return r;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
}(u), u);
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
M as __require
|
|
42
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("./index163.cjs"),b=require("./index164.cjs"),O=require("./index161.cjs"),j=require("./index165.cjs"),z=require("./index128.cjs");var N;function W(){return N||(N=1,function(_){Object.defineProperty(_,"__esModule",{value:!0});function k(r,e){for(var n in e)Object.defineProperty(r,n,{enumerable:!0,get:e[n]})}k(_,{getNamedMiddlewareRegex:function(){return I},getNamedRouteRegex:function(){return v},getRouteRegex:function(){return E},parseParameter:function(){return q}});const m=b.__require(),S=O.__require(),g=j.__require(),y=z.__require(),x=/^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;function q(r){const e=r.match(x);return p(e?e[2]:r)}function p(r){const e=r.startsWith("[")&&r.endsWith("]");e&&(r=r.slice(1,-1));const n=r.startsWith("...");return n&&(r=r.slice(3)),{key:r,repeat:n,optional:e}}function P(r,e,n){const o={};let u=1;const i=[];for(const c of(0,y.removeTrailingSlash)(r).slice(1).split("/")){const a=S.INTERCEPTION_ROUTE_MARKERS.find(f=>c.startsWith(f)),s=c.match(x);if(a&&s&&s[2]){const{key:f,optional:t,repeat:l}=p(s[2]);o[f]={pos:u++,repeat:l,optional:t},i.push("/"+(0,g.escapeStringRegexp)(a)+"([^/]+?)")}else if(s&&s[2]){const{key:f,repeat:t,optional:l}=p(s[2]);o[f]={pos:u++,repeat:t,optional:l},n&&s[1]&&i.push("/"+(0,g.escapeStringRegexp)(s[1]));let R=t?l?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)";n&&s[1]&&(R=R.substring(1)),i.push(R)}else i.push("/"+(0,g.escapeStringRegexp)(c));e&&s&&s[3]&&i.push((0,g.escapeStringRegexp)(s[3]))}return{parameterizedRoute:i.join(""),groups:o}}function E(r,e){let{includeSuffix:n=!1,includePrefix:o=!1,excludeOptionalTrailingSlash:u=!1}=e===void 0?{}:e;const{parameterizedRoute:i,groups:c}=P(r,n,o);let a=i;return u||(a+="(?:/)?"),{re:new RegExp("^"+a+"$"),groups:c}}function A(){let r=0;return()=>{let e="",n=++r;for(;n>0;)e+=String.fromCharCode(97+(n-1)%26),n=Math.floor((n-1)/26);return e}}function T(r){let{interceptionMarker:e,getSafeRouteKey:n,segment:o,routeKeys:u,keyPrefix:i,backreferenceDuplicateKeys:c}=r;const{key:a,optional:s,repeat:f}=p(o);let t=a.replace(/\W/g,"");i&&(t=""+i+t);let l=!1;(t.length===0||t.length>30)&&(l=!0),isNaN(parseInt(t.slice(0,1)))||(l=!0),l&&(t=n());const R=t in u;i?u[t]=""+i+a:u[t]=a;const M=e?(0,g.escapeStringRegexp)(e):"";let d;return R&&c?d="\\k<"+t+">":f?d="(?<"+t+">.+?)":d="(?<"+t+">[^/]+?)",s?"(?:/"+M+d+")?":"/"+M+d}function K(r,e,n,o,u){const i=A(),c={},a=[];for(const s of(0,y.removeTrailingSlash)(r).slice(1).split("/")){const f=S.INTERCEPTION_ROUTE_MARKERS.some(l=>s.startsWith(l)),t=s.match(x);if(f&&t&&t[2])a.push(T({getSafeRouteKey:i,interceptionMarker:t[1],segment:t[2],routeKeys:c,keyPrefix:e?m.NEXT_INTERCEPTION_MARKER_PREFIX:void 0,backreferenceDuplicateKeys:u}));else if(t&&t[2]){o&&t[1]&&a.push("/"+(0,g.escapeStringRegexp)(t[1]));let l=T({getSafeRouteKey:i,segment:t[2],routeKeys:c,keyPrefix:e?m.NEXT_QUERY_PARAM_PREFIX:void 0,backreferenceDuplicateKeys:u});o&&t[1]&&(l=l.substring(1)),a.push(l)}else a.push("/"+(0,g.escapeStringRegexp)(s));n&&t&&t[3]&&a.push((0,g.escapeStringRegexp)(t[3]))}return{namedParameterizedRoute:a.join(""),routeKeys:c}}function v(r,e){var n,o,u;const i=K(r,e.prefixRouteKeys,(n=e.includeSuffix)!=null?n:!1,(o=e.includePrefix)!=null?o:!1,(u=e.backreferenceDuplicateKeys)!=null?u:!1);let c=i.namedParameterizedRoute;return e.excludeOptionalTrailingSlash||(c+="(?:/)?"),{...E(r,e),namedRegex:"^"+c+"$",routeKeys:i.routeKeys}}function I(r,e){const{parameterizedRoute:n}=P(r,!1,!1),{catchAll:o=!0}=e;if(n==="/")return{namedRegex:"^/"+(o?".*":"")+"$"};const{namedParameterizedRoute:u}=K(r,!1,!1,!1,!1);let i=o?"(?:(/.*)?)":"";return{namedRegex:"^"+u+i+"$"}}}(h.__exports)),h.__exports}exports.__require=W;
|
package/dist/index135.js
ADDED
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { __exports as h } from "./index163.js";
|
|
2
|
+
import { __require as O } from "./index164.js";
|
|
3
|
+
import { __require as b } from "./index161.js";
|
|
4
|
+
import { __require as z } from "./index165.js";
|
|
5
|
+
import { __require as C } from "./index128.js";
|
|
6
|
+
var N;
|
|
7
|
+
function F() {
|
|
8
|
+
return N ? h : (N = 1, function(x) {
|
|
9
|
+
Object.defineProperty(x, "__esModule", {
|
|
10
|
+
value: !0
|
|
11
|
+
});
|
|
12
|
+
function k(r, e) {
|
|
13
|
+
for (var n in e) Object.defineProperty(r, n, {
|
|
14
|
+
enumerable: !0,
|
|
15
|
+
get: e[n]
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
k(x, {
|
|
19
|
+
getNamedMiddlewareRegex: function() {
|
|
20
|
+
return v;
|
|
21
|
+
},
|
|
22
|
+
getNamedRouteRegex: function() {
|
|
23
|
+
return q;
|
|
24
|
+
},
|
|
25
|
+
getRouteRegex: function() {
|
|
26
|
+
return E;
|
|
27
|
+
},
|
|
28
|
+
parseParameter: function() {
|
|
29
|
+
return A;
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
const _ = O(), S = b(), g = z(), y = C(), m = /^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;
|
|
33
|
+
function A(r) {
|
|
34
|
+
const e = r.match(m);
|
|
35
|
+
return p(e ? e[2] : r);
|
|
36
|
+
}
|
|
37
|
+
function p(r) {
|
|
38
|
+
const e = r.startsWith("[") && r.endsWith("]");
|
|
39
|
+
e && (r = r.slice(1, -1));
|
|
40
|
+
const n = r.startsWith("...");
|
|
41
|
+
return n && (r = r.slice(3)), {
|
|
42
|
+
key: r,
|
|
43
|
+
repeat: n,
|
|
44
|
+
optional: e
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function P(r, e, n) {
|
|
48
|
+
const o = {};
|
|
49
|
+
let a = 1;
|
|
50
|
+
const i = [];
|
|
51
|
+
for (const c of (0, y.removeTrailingSlash)(r).slice(1).split("/")) {
|
|
52
|
+
const u = S.INTERCEPTION_ROUTE_MARKERS.find((f) => c.startsWith(f)), s = c.match(m);
|
|
53
|
+
if (u && s && s[2]) {
|
|
54
|
+
const { key: f, optional: t, repeat: l } = p(s[2]);
|
|
55
|
+
o[f] = {
|
|
56
|
+
pos: a++,
|
|
57
|
+
repeat: l,
|
|
58
|
+
optional: t
|
|
59
|
+
}, i.push("/" + (0, g.escapeStringRegexp)(u) + "([^/]+?)");
|
|
60
|
+
} else if (s && s[2]) {
|
|
61
|
+
const { key: f, repeat: t, optional: l } = p(s[2]);
|
|
62
|
+
o[f] = {
|
|
63
|
+
pos: a++,
|
|
64
|
+
repeat: t,
|
|
65
|
+
optional: l
|
|
66
|
+
}, n && s[1] && i.push("/" + (0, g.escapeStringRegexp)(s[1]));
|
|
67
|
+
let R = t ? l ? "(?:/(.+?))?" : "/(.+?)" : "/([^/]+?)";
|
|
68
|
+
n && s[1] && (R = R.substring(1)), i.push(R);
|
|
69
|
+
} else
|
|
70
|
+
i.push("/" + (0, g.escapeStringRegexp)(c));
|
|
71
|
+
e && s && s[3] && i.push((0, g.escapeStringRegexp)(s[3]));
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
parameterizedRoute: i.join(""),
|
|
75
|
+
groups: o
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
function E(r, e) {
|
|
79
|
+
let { includeSuffix: n = !1, includePrefix: o = !1, excludeOptionalTrailingSlash: a = !1 } = e === void 0 ? {} : e;
|
|
80
|
+
const { parameterizedRoute: i, groups: c } = P(r, n, o);
|
|
81
|
+
let u = i;
|
|
82
|
+
return a || (u += "(?:/)?"), {
|
|
83
|
+
re: new RegExp("^" + u + "$"),
|
|
84
|
+
groups: c
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
function I() {
|
|
88
|
+
let r = 0;
|
|
89
|
+
return () => {
|
|
90
|
+
let e = "", n = ++r;
|
|
91
|
+
for (; n > 0; )
|
|
92
|
+
e += String.fromCharCode(97 + (n - 1) % 26), n = Math.floor((n - 1) / 26);
|
|
93
|
+
return e;
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
function T(r) {
|
|
97
|
+
let { interceptionMarker: e, getSafeRouteKey: n, segment: o, routeKeys: a, keyPrefix: i, backreferenceDuplicateKeys: c } = r;
|
|
98
|
+
const { key: u, optional: s, repeat: f } = p(o);
|
|
99
|
+
let t = u.replace(/\W/g, "");
|
|
100
|
+
i && (t = "" + i + t);
|
|
101
|
+
let l = !1;
|
|
102
|
+
(t.length === 0 || t.length > 30) && (l = !0), isNaN(parseInt(t.slice(0, 1))) || (l = !0), l && (t = n());
|
|
103
|
+
const R = t in a;
|
|
104
|
+
i ? a[t] = "" + i + u : a[t] = u;
|
|
105
|
+
const M = e ? (0, g.escapeStringRegexp)(e) : "";
|
|
106
|
+
let d;
|
|
107
|
+
return R && c ? d = "\\k<" + t + ">" : f ? d = "(?<" + t + ">.+?)" : d = "(?<" + t + ">[^/]+?)", s ? "(?:/" + M + d + ")?" : "/" + M + d;
|
|
108
|
+
}
|
|
109
|
+
function K(r, e, n, o, a) {
|
|
110
|
+
const i = I(), c = {}, u = [];
|
|
111
|
+
for (const s of (0, y.removeTrailingSlash)(r).slice(1).split("/")) {
|
|
112
|
+
const f = S.INTERCEPTION_ROUTE_MARKERS.some((l) => s.startsWith(l)), t = s.match(m);
|
|
113
|
+
if (f && t && t[2])
|
|
114
|
+
u.push(T({
|
|
115
|
+
getSafeRouteKey: i,
|
|
116
|
+
interceptionMarker: t[1],
|
|
117
|
+
segment: t[2],
|
|
118
|
+
routeKeys: c,
|
|
119
|
+
keyPrefix: e ? _.NEXT_INTERCEPTION_MARKER_PREFIX : void 0,
|
|
120
|
+
backreferenceDuplicateKeys: a
|
|
121
|
+
}));
|
|
122
|
+
else if (t && t[2]) {
|
|
123
|
+
o && t[1] && u.push("/" + (0, g.escapeStringRegexp)(t[1]));
|
|
124
|
+
let l = T({
|
|
125
|
+
getSafeRouteKey: i,
|
|
126
|
+
segment: t[2],
|
|
127
|
+
routeKeys: c,
|
|
128
|
+
keyPrefix: e ? _.NEXT_QUERY_PARAM_PREFIX : void 0,
|
|
129
|
+
backreferenceDuplicateKeys: a
|
|
130
|
+
});
|
|
131
|
+
o && t[1] && (l = l.substring(1)), u.push(l);
|
|
132
|
+
} else
|
|
133
|
+
u.push("/" + (0, g.escapeStringRegexp)(s));
|
|
134
|
+
n && t && t[3] && u.push((0, g.escapeStringRegexp)(t[3]));
|
|
135
|
+
}
|
|
136
|
+
return {
|
|
137
|
+
namedParameterizedRoute: u.join(""),
|
|
138
|
+
routeKeys: c
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
function q(r, e) {
|
|
142
|
+
var n, o, a;
|
|
143
|
+
const i = K(r, e.prefixRouteKeys, (n = e.includeSuffix) != null ? n : !1, (o = e.includePrefix) != null ? o : !1, (a = e.backreferenceDuplicateKeys) != null ? a : !1);
|
|
144
|
+
let c = i.namedParameterizedRoute;
|
|
145
|
+
return e.excludeOptionalTrailingSlash || (c += "(?:/)?"), {
|
|
146
|
+
...E(r, e),
|
|
147
|
+
namedRegex: "^" + c + "$",
|
|
148
|
+
routeKeys: i.routeKeys
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
function v(r, e) {
|
|
152
|
+
const { parameterizedRoute: n } = P(r, !1, !1), { catchAll: o = !0 } = e;
|
|
153
|
+
if (n === "/")
|
|
154
|
+
return {
|
|
155
|
+
namedRegex: "^/" + (o ? ".*" : "") + "$"
|
|
156
|
+
};
|
|
157
|
+
const { namedParameterizedRoute: a } = K(r, !1, !1, !1, !1);
|
|
158
|
+
let i = o ? "(?:(/.*)?)" : "";
|
|
159
|
+
return {
|
|
160
|
+
namedRegex: "^" + a + i + "$"
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
}(h), h);
|
|
164
|
+
}
|
|
165
|
+
export {
|
|
166
|
+
F as __require
|
|
167
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
|
package/dist/index136.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index166.cjs"),o=require("./index129.cjs");var i;function f(){return i||(i=1,function(r){Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"pathHasPrefix",{enumerable:!0,get:function(){return s}});const u=o.__require();function s(t,a){if(typeof t!="string")return!1;const{pathname:n}=(0,u.parsePath)(t);return n===a||n.startsWith(a+"/")}}(e.__exports)),e.__exports}exports.__require=f;
|
package/dist/index137.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { __exports as e } from "./index166.js";
|
|
2
|
+
import { __require as f } from "./index129.js";
|
|
3
|
+
var n;
|
|
4
|
+
function p() {
|
|
5
|
+
return n ? e : (n = 1, function(r) {
|
|
6
|
+
Object.defineProperty(r, "__esModule", {
|
|
7
|
+
value: !0
|
|
8
|
+
}), Object.defineProperty(r, "pathHasPrefix", {
|
|
9
|
+
enumerable: !0,
|
|
10
|
+
get: function() {
|
|
11
|
+
return u;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
const s = f();
|
|
15
|
+
function u(t, a) {
|
|
16
|
+
if (typeof t != "string")
|
|
17
|
+
return !1;
|
|
18
|
+
const { pathname: i } = (0, s.parsePath)(t);
|
|
19
|
+
return i === a || i.startsWith(a + "/");
|
|
20
|
+
}
|
|
21
|
+
}(e), e);
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
p as __require
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
package/dist/index138.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
|
package/dist/index139.js
ADDED
package/dist/index14.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),b=require("react-hook-form");require("@mantine/core");const f=require("./index12.cjs");require("zod");const h=(i,a)=>{const t=e=>{const{validate:l,name:d="",placeholder:s,label:u,description:c,...n}=e;return o.jsx(b.Controller,{name:d,defaultValue:"",rules:{validate:l&&!e.disabled?f.zodValidator(l):void 0},disabled:e.disabled,...a?.(e),render:r=>{const{fieldState:{isTouched:q,error:m}}=r,F={...r,props:{...e,validate:void 0},field:{...r.field,label:u,placeholder:s,description:c,error:m?.message},...n};return o.jsx(i,{...F})}})};return t.displayName=`withForm(${i.displayName})`,t};exports.withForm=h;
|
package/dist/index14.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
3
|
+
import { Controller as h } from "react-hook-form";
|
|
4
|
+
import "@mantine/core";
|
|
5
|
+
import { zodValidator as v } from "./index12.js";
|
|
6
|
+
import "zod";
|
|
7
|
+
const V = (t, d) => {
|
|
8
|
+
const r = (e) => {
|
|
9
|
+
const { validate: l, name: a = "", placeholder: m, label: s, description: c, ...n } = e;
|
|
10
|
+
return /* @__PURE__ */ o(
|
|
11
|
+
h,
|
|
12
|
+
{
|
|
13
|
+
name: a,
|
|
14
|
+
defaultValue: "",
|
|
15
|
+
rules: {
|
|
16
|
+
validate: l && !e.disabled ? v(l) : void 0
|
|
17
|
+
},
|
|
18
|
+
disabled: e.disabled,
|
|
19
|
+
...d?.(e),
|
|
20
|
+
render: (i) => {
|
|
21
|
+
const {
|
|
22
|
+
fieldState: { isTouched: F, error: f }
|
|
23
|
+
} = i, u = {
|
|
24
|
+
...i,
|
|
25
|
+
props: {
|
|
26
|
+
...e,
|
|
27
|
+
validate: void 0
|
|
28
|
+
},
|
|
29
|
+
field: {
|
|
30
|
+
...i.field,
|
|
31
|
+
label: s,
|
|
32
|
+
placeholder: m,
|
|
33
|
+
description: c,
|
|
34
|
+
error: f?.message
|
|
35
|
+
},
|
|
36
|
+
...n
|
|
37
|
+
};
|
|
38
|
+
return /* @__PURE__ */ o(t, { ...u });
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
};
|
|
43
|
+
return r.displayName = `withForm(${t.displayName})`, r;
|
|
44
|
+
};
|
|
45
|
+
export {
|
|
46
|
+
V as withForm
|
|
47
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
|
package/dist/index140.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index167.cjs");var l;function _(){return l||(l=1,function(i){Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"normalizeLocalePath",{enumerable:!0,get:function(){return a}});const u=new WeakMap;function a(e,r){if(!r)return{pathname:e};let t=u.get(r);t||(t=r.map(d=>d.toLowerCase()),u.set(r,t));let o;const c=e.split("/",2);if(!c[1])return{pathname:e};const f=c[1].toLowerCase(),s=t.indexOf(f);return s<0?{pathname:e}:(o=r[s],e=e.slice(o.length+1)||"/",{pathname:e,detectedLocale:o})}}(n.__exports)),n.__exports}exports.__require=_;
|
package/dist/index141.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { __exports as n } from "./index167.js";
|
|
2
|
+
var s;
|
|
3
|
+
function P() {
|
|
4
|
+
return s ? n : (s = 1, function(i) {
|
|
5
|
+
Object.defineProperty(i, "__esModule", {
|
|
6
|
+
value: !0
|
|
7
|
+
}), Object.defineProperty(i, "normalizeLocalePath", {
|
|
8
|
+
enumerable: !0,
|
|
9
|
+
get: function() {
|
|
10
|
+
return f;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
const u = /* @__PURE__ */ new WeakMap();
|
|
14
|
+
function f(e, r) {
|
|
15
|
+
if (!r) return {
|
|
16
|
+
pathname: e
|
|
17
|
+
};
|
|
18
|
+
let t = u.get(r);
|
|
19
|
+
t || (t = r.map((d) => d.toLowerCase()), u.set(r, t));
|
|
20
|
+
let o;
|
|
21
|
+
const c = e.split("/", 2);
|
|
22
|
+
if (!c[1]) return {
|
|
23
|
+
pathname: e
|
|
24
|
+
};
|
|
25
|
+
const l = c[1].toLowerCase(), a = t.indexOf(l);
|
|
26
|
+
return a < 0 ? {
|
|
27
|
+
pathname: e
|
|
28
|
+
} : (o = r[a], e = e.slice(o.length + 1) || "/", {
|
|
29
|
+
pathname: e,
|
|
30
|
+
detectedLocale: o
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
}(n), n);
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
P as __require
|
|
37
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
|
package/dist/index142.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index169.cjs");var a;function m(){return a||(a=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return s}});function s(n,c,e){if(n){e&&(e=e.toLowerCase());for(const o of n){var i,u;const f=(i=o.domain)==null?void 0:i.split(":",1)[0].toLowerCase();if(c===f||e===o.defaultLocale.toLowerCase()||(u=o.locales)!=null&&u.some(l=>l.toLowerCase()===e))return o}}}}(r.__exports)),r.__exports}exports.__require=m;
|
package/dist/index143.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { __exports as r } from "./index169.js";
|
|
2
|
+
var u;
|
|
3
|
+
function D() {
|
|
4
|
+
return u ? r : (u = 1, function(t) {
|
|
5
|
+
Object.defineProperty(t, "__esModule", {
|
|
6
|
+
value: !0
|
|
7
|
+
}), Object.defineProperty(t, "detectDomainLocale", {
|
|
8
|
+
enumerable: !0,
|
|
9
|
+
get: function() {
|
|
10
|
+
return f;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
function f(n, s, e) {
|
|
14
|
+
if (n) {
|
|
15
|
+
e && (e = e.toLowerCase());
|
|
16
|
+
for (const o of n) {
|
|
17
|
+
var i, a;
|
|
18
|
+
const c = (i = o.domain) == null ? void 0 : i.split(":", 1)[0].toLowerCase();
|
|
19
|
+
if (s === c || e === o.defaultLocale.toLowerCase() || (a = o.locales) != null && a.some((l) => l.toLowerCase() === e))
|
|
20
|
+
return o;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}(r), r);
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
D as __require
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|