nextjs-studio 0.3.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/dist/bin/nextjs-studio.js +315 -54
- package/dist/bin/nextjs-studio.js.map +1 -1
- package/dist/cli/ui/.next/BUILD_ID +1 -0
- package/dist/cli/ui/.next/app-path-routes-manifest.json +12 -0
- package/dist/cli/ui/.next/build-manifest.json +20 -0
- package/dist/cli/ui/.next/export-marker.json +6 -0
- package/dist/cli/ui/.next/images-manifest.json +67 -0
- package/dist/cli/ui/.next/next-minimal-server.js.nft.json +1 -0
- package/dist/cli/ui/.next/next-server.js.nft.json +1 -0
- package/dist/cli/ui/.next/package.json +1 -0
- package/dist/cli/ui/.next/prerender-manifest.json +61 -0
- package/dist/cli/ui/.next/react-loadable-manifest.json +286 -0
- package/dist/cli/ui/.next/required-server-files.js +338 -0
- package/dist/cli/ui/.next/required-server-files.json +338 -0
- package/dist/cli/ui/.next/routes-manifest.json +125 -0
- package/dist/cli/ui/.next/server/app/_global-error/page.js +3 -0
- package/dist/cli/ui/.next/server/app/_global-error/page.js.nft.json +1 -0
- package/dist/cli/ui/.next/server/app/_global-error/page_client-reference-manifest.js +1 -0
- package/dist/cli/ui/.next/server/app/_global-error.html +2 -0
- package/dist/cli/ui/.next/server/app/_global-error.meta +16 -0
- package/dist/cli/ui/.next/server/app/_global-error.rsc +12 -0
- package/dist/cli/ui/.next/server/app/_global-error.segments/_full.segment.rsc +12 -0
- package/dist/cli/ui/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +5 -0
- package/dist/cli/ui/.next/server/app/_global-error.segments/_global-error.segment.rsc +4 -0
- package/dist/cli/ui/.next/server/app/_global-error.segments/_head.segment.rsc +5 -0
- package/dist/cli/ui/.next/server/app/_global-error.segments/_index.segment.rsc +4 -0
- package/dist/cli/ui/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -0
- package/dist/cli/ui/.next/server/app/_not-found/page.js +2 -0
- package/dist/cli/ui/.next/server/app/_not-found/page.js.nft.json +1 -0
- package/dist/cli/ui/.next/server/app/_not-found/page_client-reference-manifest.js +1 -0
- package/dist/cli/ui/.next/server/app/_not-found.html +1 -0
- package/dist/cli/ui/.next/server/app/_not-found.meta +16 -0
- package/dist/cli/ui/.next/server/app/_not-found.rsc +15 -0
- package/dist/cli/ui/.next/server/app/_not-found.segments/_full.segment.rsc +15 -0
- package/dist/cli/ui/.next/server/app/_not-found.segments/_head.segment.rsc +5 -0
- package/dist/cli/ui/.next/server/app/_not-found.segments/_index.segment.rsc +7 -0
- package/dist/cli/ui/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +5 -0
- package/dist/cli/ui/.next/server/app/_not-found.segments/_not-found.segment.rsc +4 -0
- package/dist/cli/ui/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -0
- package/dist/cli/ui/.next/server/app/api/media/[collection]/[filename]/route.js +1 -0
- package/dist/cli/ui/.next/server/app/api/media/[collection]/[filename]/route.js.nft.json +1 -0
- package/dist/cli/ui/.next/server/app/api/media/[collection]/[filename]/route_client-reference-manifest.js +1 -0
- package/dist/cli/ui/.next/server/app/api/media/[collection]/route.js +1 -0
- package/dist/cli/ui/.next/server/app/api/media/[collection]/route.js.nft.json +1 -0
- package/dist/cli/ui/.next/server/app/api/media/[collection]/route_client-reference-manifest.js +1 -0
- package/dist/cli/ui/.next/server/app/api/public/[...path]/route.js +1 -0
- package/dist/cli/ui/.next/server/app/api/public/[...path]/route.js.nft.json +1 -0
- package/dist/cli/ui/.next/server/app/api/public/[...path]/route_client-reference-manifest.js +1 -0
- package/dist/cli/ui/.next/server/app/api/sync/[collection]/route.js +1 -0
- package/dist/cli/ui/.next/server/app/api/sync/[collection]/route.js.nft.json +1 -0
- package/dist/cli/ui/.next/server/app/api/sync/[collection]/route_client-reference-manifest.js +1 -0
- package/dist/cli/ui/.next/server/app/api/watch/route.js +3 -0
- package/dist/cli/ui/.next/server/app/api/watch/route.js.nft.json +1 -0
- package/dist/cli/ui/.next/server/app/api/watch/route_client-reference-manifest.js +1 -0
- package/dist/cli/ui/.next/server/app/collection/[name]/[slug]/page.js +99 -0
- package/dist/cli/ui/.next/server/app/collection/[name]/[slug]/page.js.nft.json +1 -0
- package/dist/cli/ui/.next/server/app/collection/[name]/[slug]/page_client-reference-manifest.js +1 -0
- package/dist/cli/ui/.next/server/app/collection/[name]/page.js +5 -0
- package/dist/cli/ui/.next/server/app/collection/[name]/page.js.nft.json +1 -0
- package/dist/cli/ui/.next/server/app/collection/[name]/page_client-reference-manifest.js +1 -0
- package/dist/cli/ui/.next/server/app/page.js +2 -0
- package/dist/cli/ui/.next/server/app/page.js.nft.json +1 -0
- package/dist/cli/ui/.next/server/app/page_client-reference-manifest.js +1 -0
- package/dist/cli/ui/.next/server/app-paths-manifest.json +12 -0
- package/dist/cli/ui/.next/server/chunks/1875.js +1 -0
- package/dist/cli/ui/.next/server/chunks/2198.js +1 -0
- package/dist/cli/ui/.next/server/chunks/2446.js +36 -0
- package/dist/cli/ui/.next/server/chunks/2474.js +148 -0
- package/dist/cli/ui/.next/server/chunks/2490.js +55 -0
- package/dist/cli/ui/.next/server/chunks/2717.js +56 -0
- package/dist/cli/ui/.next/server/chunks/2729.js +166 -0
- package/dist/cli/ui/.next/server/chunks/2774.js +1 -0
- package/dist/cli/ui/.next/server/chunks/2796.js +1 -0
- package/dist/cli/ui/.next/server/chunks/3145.js +1 -0
- package/dist/cli/ui/.next/server/chunks/3186.js +1 -0
- package/dist/cli/ui/.next/server/chunks/3494.js +24 -0
- package/dist/cli/ui/.next/server/chunks/3610.js +1 -0
- package/dist/cli/ui/.next/server/chunks/3659.js +93 -0
- package/dist/cli/ui/.next/server/chunks/3744.js +1 -0
- package/dist/cli/ui/.next/server/chunks/3806.js +136 -0
- package/dist/cli/ui/.next/server/chunks/408.js +1 -0
- package/dist/cli/ui/.next/server/chunks/4189.js +62 -0
- package/dist/cli/ui/.next/server/chunks/4293.js +1 -0
- package/dist/cli/ui/.next/server/chunks/4469.js +4 -0
- package/dist/cli/ui/.next/server/chunks/4484.js +1 -0
- package/dist/cli/ui/.next/server/chunks/449.js +82 -0
- package/dist/cli/ui/.next/server/chunks/4607.js +22 -0
- package/dist/cli/ui/.next/server/chunks/479.js +5 -0
- package/dist/cli/ui/.next/server/chunks/4931.js +63 -0
- package/dist/cli/ui/.next/server/chunks/528.js +1 -0
- package/dist/cli/ui/.next/server/chunks/5341.js +1 -0
- package/dist/cli/ui/.next/server/chunks/5585.js +29 -0
- package/dist/cli/ui/.next/server/chunks/5677.js +1 -0
- package/dist/cli/ui/.next/server/chunks/5724.js +1 -0
- package/dist/cli/ui/.next/server/chunks/5760.js +174 -0
- package/dist/cli/ui/.next/server/chunks/5784.js +24 -0
- package/dist/cli/ui/.next/server/chunks/6.js +262 -0
- package/dist/cli/ui/.next/server/chunks/6040.js +1 -0
- package/dist/cli/ui/.next/server/chunks/6067.js +13 -0
- package/dist/cli/ui/.next/server/chunks/6553.js +1 -0
- package/dist/cli/ui/.next/server/chunks/6656.js +201 -0
- package/dist/cli/ui/.next/server/chunks/6672.js +1 -0
- package/dist/cli/ui/.next/server/chunks/6872.js +1 -0
- package/dist/cli/ui/.next/server/chunks/7146.js +59 -0
- package/dist/cli/ui/.next/server/chunks/7354.js +1 -0
- package/dist/cli/ui/.next/server/chunks/7677.js +1 -0
- package/dist/cli/ui/.next/server/chunks/7781.js +1 -0
- package/dist/cli/ui/.next/server/chunks/8194.js +215 -0
- package/dist/cli/ui/.next/server/chunks/8231.js +1 -0
- package/dist/cli/ui/.next/server/chunks/8319.js +2 -0
- package/dist/cli/ui/.next/server/chunks/8339.js +1 -0
- package/dist/cli/ui/.next/server/chunks/8775.js +1 -0
- package/dist/cli/ui/.next/server/chunks/9503.js +43 -0
- package/dist/cli/ui/.next/server/chunks/958.js +131 -0
- package/dist/cli/ui/.next/server/chunks/9739.js +1 -0
- package/dist/cli/ui/.next/server/functions-config-manifest.json +4 -0
- package/dist/cli/ui/.next/server/interception-route-rewrite-manifest.js +1 -0
- package/dist/cli/ui/.next/server/middleware-build-manifest.js +1 -0
- package/dist/cli/ui/.next/server/middleware-manifest.json +6 -0
- package/dist/cli/ui/.next/server/middleware-react-loadable-manifest.js +1 -0
- package/dist/cli/ui/.next/server/next-font-manifest.js +1 -0
- package/dist/cli/ui/.next/server/next-font-manifest.json +1 -0
- package/dist/cli/ui/.next/server/pages/404.html +1 -0
- package/dist/cli/ui/.next/server/pages/500.html +2 -0
- package/dist/cli/ui/.next/server/pages-manifest.json +4 -0
- package/dist/cli/ui/.next/server/server-reference-manifest.js +1 -0
- package/dist/cli/ui/.next/server/server-reference-manifest.json +1 -0
- package/dist/cli/ui/.next/server/webpack-runtime.js +1 -0
- package/dist/cli/ui/.next/static/chunks/0937d497-2b220e2d0368e918.js +1 -0
- package/dist/cli/ui/.next/static/chunks/1013.5541c1c75688ef6e.js +1 -0
- package/dist/cli/ui/.next/static/chunks/1039.d26ef6a818f26d70.js +4 -0
- package/dist/cli/ui/.next/static/chunks/1325.cb67348b484ce7a0.js +24 -0
- package/dist/cli/ui/.next/static/chunks/1858-d10f8bead2218ad2.js +2 -0
- package/dist/cli/ui/.next/static/chunks/1882.05c68ab6bdcd8c31.js +1 -0
- package/dist/cli/ui/.next/static/chunks/2011.7e73842f1e8e2cde.js +1 -0
- package/dist/cli/ui/.next/static/chunks/2046.73486ea936c9afd2.js +1 -0
- package/dist/cli/ui/.next/static/chunks/2389.b73d3a1286a228d0.js +1 -0
- package/dist/cli/ui/.next/static/chunks/2430.08df5899978ebf26.js +43 -0
- package/dist/cli/ui/.next/static/chunks/2462-4255d8f51dc56f12.js +1 -0
- package/dist/cli/ui/.next/static/chunks/3098-4269da0468edc350.js +1 -0
- package/dist/cli/ui/.next/static/chunks/317.b4fcc40f219152b1.js +1 -0
- package/dist/cli/ui/.next/static/chunks/3197.d2f3398e552228e4.js +1 -0
- package/dist/cli/ui/.next/static/chunks/3212-1a9c9d110d15abab.js +4 -0
- package/dist/cli/ui/.next/static/chunks/3809.8df186de2ff997f8.js +1 -0
- package/dist/cli/ui/.next/static/chunks/3918.caaf4eb4f6450524.js +1 -0
- package/dist/cli/ui/.next/static/chunks/3987-6d3217e36ae5b4dc.js +1 -0
- package/dist/cli/ui/.next/static/chunks/3c774391-ec08594272867fd5.js +79 -0
- package/dist/cli/ui/.next/static/chunks/4075052f.9006147a6182ed95.js +1 -0
- package/dist/cli/ui/.next/static/chunks/4389.e7a3c58aa62118e3.js +82 -0
- package/dist/cli/ui/.next/static/chunks/46bdbe0e-f5103600b23143b8.js +1 -0
- package/dist/cli/ui/.next/static/chunks/4860.2ba51d1d81857c81.js +1 -0
- package/dist/cli/ui/.next/static/chunks/4882.794e2a9231f129e5.js +55 -0
- package/dist/cli/ui/.next/static/chunks/5149.8de9918b9ace58f5.js +166 -0
- package/dist/cli/ui/.next/static/chunks/5230.b7c87400f0d8516f.js +215 -0
- package/dist/cli/ui/.next/static/chunks/5263.7adc3ade53cd4ed3.js +24 -0
- package/dist/cli/ui/.next/static/chunks/5313.1dfcc2126f85a8f8.js +1 -0
- package/dist/cli/ui/.next/static/chunks/5350-17c792e27bf38c77.js +1 -0
- package/dist/cli/ui/.next/static/chunks/5638.e3a2119354708654.js +1 -0
- package/dist/cli/ui/.next/static/chunks/5758.33b45c6c407ecd94.js +1 -0
- package/dist/cli/ui/.next/static/chunks/589.019158de5d02c262.js +1 -0
- package/dist/cli/ui/.next/static/chunks/6013.e33e73569339afee.js +62 -0
- package/dist/cli/ui/.next/static/chunks/6084.7511ad4ebb4f9df5.js +1 -0
- package/dist/cli/ui/.next/static/chunks/612.d3aeebcaaaf06fb2.js +1 -0
- package/dist/cli/ui/.next/static/chunks/6239.6c0cd99ea36222b6.js +5 -0
- package/dist/cli/ui/.next/static/chunks/6299-79a74877b87acf9f.js +1 -0
- package/dist/cli/ui/.next/static/chunks/6484.d38aa531768c3452.js +148 -0
- package/dist/cli/ui/.next/static/chunks/6505.731f74c28b8980b3.js +1 -0
- package/dist/cli/ui/.next/static/chunks/6584.be94a55391bcdcce.js +262 -0
- package/dist/cli/ui/.next/static/chunks/6800.1066ad1f5add7c75.js +1 -0
- package/dist/cli/ui/.next/static/chunks/7052.89e2de773d10ac20.js +131 -0
- package/dist/cli/ui/.next/static/chunks/7127.360abfa43dc4427e.js +36 -0
- package/dist/cli/ui/.next/static/chunks/7430.2b247d9ac6ef694c.js +149 -0
- package/dist/cli/ui/.next/static/chunks/7444.66c4d6bbc19309b3.js +59 -0
- package/dist/cli/ui/.next/static/chunks/7546.4cb4db4685212384.js +63 -0
- package/dist/cli/ui/.next/static/chunks/7564.7b9271fcf06df80c.js +29 -0
- package/dist/cli/ui/.next/static/chunks/7664.8268c156d8988844.js +174 -0
- package/dist/cli/ui/.next/static/chunks/7722-04e64cc1b26cfa65.js +1 -0
- package/dist/cli/ui/.next/static/chunks/8701.3995b58a75e43147.js +56 -0
- package/dist/cli/ui/.next/static/chunks/8800.548c3da26cfebf06.js +1 -0
- package/dist/cli/ui/.next/static/chunks/8814-7b64110c79ce7209.js +15 -0
- package/dist/cli/ui/.next/static/chunks/9058.a195d15265251194.js +1 -0
- package/dist/cli/ui/.next/static/chunks/9211.91144a0d23e4cf6d.js +1 -0
- package/dist/cli/ui/.next/static/chunks/9690.c1f08c02a675b9ce.js +1 -0
- package/dist/cli/ui/.next/static/chunks/9919.1ccc9ca4a749d9b7.js +93 -0
- package/dist/cli/ui/.next/static/chunks/app/_global-error/page-ad53913b77389472.js +1 -0
- package/dist/cli/ui/.next/static/chunks/app/_not-found/page-202c1e16a4b86ac8.js +1 -0
- package/dist/cli/ui/.next/static/chunks/app/api/media/[collection]/[filename]/route-ad53913b77389472.js +1 -0
- package/dist/cli/ui/.next/static/chunks/app/api/media/[collection]/route-ad53913b77389472.js +1 -0
- package/dist/cli/ui/.next/static/chunks/app/api/public/[...path]/route-ad53913b77389472.js +1 -0
- package/dist/cli/ui/.next/static/chunks/app/api/sync/[collection]/route-ad53913b77389472.js +1 -0
- package/dist/cli/ui/.next/static/chunks/app/api/watch/route-ad53913b77389472.js +1 -0
- package/dist/cli/ui/.next/static/chunks/app/collection/[name]/[slug]/page-7ea9eff252374845.js +6 -0
- package/dist/cli/ui/.next/static/chunks/app/collection/[name]/loading-03fc0b653e7060ae.js +1 -0
- package/dist/cli/ui/.next/static/chunks/app/collection/[name]/page-ad5976bebc9820cf.js +1 -0
- package/dist/cli/ui/.next/static/chunks/app/layout-74cd2ebe3fac00e7.js +1 -0
- package/dist/cli/ui/.next/static/chunks/app/page-ed5acadf20146966.js +1 -0
- package/dist/cli/ui/.next/static/chunks/b1767599.6a816b06e55b02a1.js +1 -0
- package/dist/cli/ui/.next/static/chunks/c6164070.3b9741bce302db0f.js +136 -0
- package/dist/cli/ui/.next/static/chunks/fb2ceba8.7fc23e46ca00cfd1.js +53 -0
- package/dist/cli/ui/.next/static/chunks/framework-ada624c9bf38edc6.js +1 -0
- package/dist/cli/ui/.next/static/chunks/main-0513ff42a7f2e1a0.js +5 -0
- package/dist/cli/ui/.next/static/chunks/main-app-b8d23dfb755744e8.js +1 -0
- package/dist/cli/ui/.next/static/chunks/next/dist/client/components/builtin/app-error-ad53913b77389472.js +1 -0
- package/dist/cli/ui/.next/static/chunks/next/dist/client/components/builtin/forbidden-ad53913b77389472.js +1 -0
- package/dist/cli/ui/.next/static/chunks/next/dist/client/components/builtin/global-error-558ee1074f45044b.js +1 -0
- package/dist/cli/ui/.next/static/chunks/next/dist/client/components/builtin/not-found-ad53913b77389472.js +1 -0
- package/dist/cli/ui/.next/static/chunks/next/dist/client/components/builtin/unauthorized-ad53913b77389472.js +1 -0
- package/dist/cli/ui/.next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
- package/dist/cli/ui/.next/static/chunks/webpack-acb903cd88aafa6f.js +1 -0
- package/dist/cli/ui/.next/static/css/e143949aa3f17880.css +3 -0
- package/dist/cli/ui/.next/static/media/034d78ad42e9620c-s.woff2 +0 -0
- package/dist/cli/ui/.next/static/media/0484562807a97172-s.p.woff2 +0 -0
- package/dist/cli/ui/.next/static/media/29a4aea02fdee119-s.woff2 +0 -0
- package/dist/cli/ui/.next/static/media/29e7bbdce9332268-s.woff2 +0 -0
- package/dist/cli/ui/.next/static/media/4c285fdca692ea22-s.p.woff2 +0 -0
- package/dist/cli/ui/.next/static/media/6c177e25b87fd9cd-s.woff2 +0 -0
- package/dist/cli/ui/.next/static/media/6c9a125e97d835e1-s.woff2 +0 -0
- package/dist/cli/ui/.next/static/media/8888a3826f4a3af4-s.p.woff2 +0 -0
- package/dist/cli/ui/.next/static/media/a1386beebedccca4-s.woff2 +0 -0
- package/dist/cli/ui/.next/static/media/b957ea75a84b6ea7-s.p.woff2 +0 -0
- package/dist/cli/ui/.next/static/media/c3bc380753a8436c-s.woff2 +0 -0
- package/dist/cli/ui/.next/static/media/db911767852bc875-s.woff2 +0 -0
- package/dist/cli/ui/.next/static/media/eafabf029ad39a43-s.p.woff2 +0 -0
- package/dist/cli/ui/.next/static/media/f10b8e9d91f3edcb-s.woff2 +0 -0
- package/dist/cli/ui/.next/static/media/fe0777f1195381cb-s.woff2 +0 -0
- package/dist/cli/ui/.next/static/zkOuvkSWApTVHCrj7neNk/_buildManifest.js +1 -0
- package/dist/cli/ui/.next/static/zkOuvkSWApTVHCrj7neNk/_ssgManifest.js +1 -0
- package/dist/cli/ui/next.config.js +1 -0
- package/dist/cli/ui/package.json +4 -0
- package/dist/core/index.d.ts +34 -356
- package/dist/core/index.js +112 -332
- package/dist/core/index.js.map +1 -1
- package/dist/core/server.d.ts +135 -0
- package/dist/core/server.js +707 -0
- package/dist/core/server.js.map +1 -0
- package/dist/query-builder-KXz9cPzF.d.ts +330 -0
- package/package.json +32 -11
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
exports.id=4931,exports.ids=[4931],exports.modules={14432:(a,b,c)=>{"use strict";c.d(b,{m:()=>e});var d=c(19195),e=class{constructor(a){this.init=a,this.records=this.init()}static{(0,d.K2)(this,"ImperativeState")}reset(){this.records=this.init()}}},42458:(a,b,c)=>{"use strict";c.d(b,{diagram:()=>ar});var d=c(85373),e=c(14432),f=c(66860),g=c(99103),h=c(19195),i=c(50449),j=c(44824),k={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},l=g.UI.gitGraph,m=(0,h.K2)(()=>(0,f.$t)({...l,...(0,g.zj)().gitGraph}),"getConfig"),n=new e.m(()=>{let a=m(),b=a.mainBranchName,c=a.mainBranchOrder;return{mainBranchName:b,commits:new Map,head:null,branchConfig:new Map([[b,{name:b,order:c}]]),branches:new Map([[b,null]]),currBranch:b,direction:"LR",seq:0,options:{}}});function o(){return(0,f.yT)({length:7})}function p(a,b){let c=Object.create(null);return a.reduce((a,d)=>{let e=b(d);return c[e]||(c[e]=!0,a.push(d)),a},[])}(0,h.K2)(o,"getID"),(0,h.K2)(p,"uniqBy");var q=(0,h.K2)(function(a){n.records.direction=a},"setDirection"),r=(0,h.K2)(function(a){h.Rm.debug("options str",a),a=(a=a?.trim())||"{}";try{n.records.options=JSON.parse(a)}catch(a){h.Rm.error("error while parsing gitGraph options",a.message)}},"setOptions"),s=(0,h.K2)(function(){return n.records.options},"getOptions"),t=(0,h.K2)(function(a){let b=a.msg,c=a.id,d=a.type,e=a.tags;h.Rm.info("commit",b,c,d,e),h.Rm.debug("Entering commit:",b,c,d,e);let f=m();c=g.Y2.sanitizeText(c,f),b=g.Y2.sanitizeText(b,f),e=e?.map(a=>g.Y2.sanitizeText(a,f));let i={id:c||n.records.seq+"-"+o(),message:b,seq:n.records.seq++,type:d??k.NORMAL,tags:e??[],parents:null==n.records.head?[]:[n.records.head.id],branch:n.records.currBranch};n.records.head=i,h.Rm.info("main branch",f.mainBranchName),n.records.commits.has(i.id)&&h.Rm.warn(`Commit ID ${i.id} already exists`),n.records.commits.set(i.id,i),n.records.branches.set(n.records.currBranch,i.id),h.Rm.debug("in pushCommit "+i.id)},"commit"),u=(0,h.K2)(function(a){let b=a.name,c=a.order;if(b=g.Y2.sanitizeText(b,m()),n.records.branches.has(b))throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${b}")`);n.records.branches.set(b,null!=n.records.head?n.records.head.id:null),n.records.branchConfig.set(b,{name:b,order:c}),x(b),h.Rm.debug("in createBranch")},"branch"),v=(0,h.K2)(a=>{let b=a.branch,c=a.id,d=a.type,e=a.tags,f=m();b=g.Y2.sanitizeText(b,f),c&&(c=g.Y2.sanitizeText(c,f));let i=n.records.branches.get(n.records.currBranch),j=n.records.branches.get(b),l=i?n.records.commits.get(i):void 0,p=j?n.records.commits.get(j):void 0;if(l&&p&&l.branch===b)throw Error(`Cannot merge branch '${b}' into itself.`);if(n.records.currBranch===b){let a=Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw a.hash={text:`merge ${b}`,token:`merge ${b}`,expected:["branch abc"]},a}if(void 0===l||!l){let a=Error(`Incorrect usage of "merge". Current branch (${n.records.currBranch})has no commits`);throw a.hash={text:`merge ${b}`,token:`merge ${b}`,expected:["commit"]},a}if(!n.records.branches.has(b)){let a=Error('Incorrect usage of "merge". Branch to be merged ('+b+") does not exist");throw a.hash={text:`merge ${b}`,token:`merge ${b}`,expected:[`branch ${b}`]},a}if(void 0===p||!p){let a=Error('Incorrect usage of "merge". Branch to be merged ('+b+") has no commits");throw a.hash={text:`merge ${b}`,token:`merge ${b}`,expected:['"commit"']},a}if(l===p){let a=Error('Incorrect usage of "merge". Both branches have same head');throw a.hash={text:`merge ${b}`,token:`merge ${b}`,expected:["branch abc"]},a}if(c&&n.records.commits.has(c)){let a=Error('Incorrect usage of "merge". Commit with id:'+c+" already exists, use different custom id");throw a.hash={text:`merge ${b} ${c} ${d} ${e?.join(" ")}`,token:`merge ${b} ${c} ${d} ${e?.join(" ")}`,expected:[`merge ${b} ${c}_UNIQUE ${d} ${e?.join(" ")}`]},a}let q={id:c||`${n.records.seq}-${o()}`,message:`merged branch ${b} into ${n.records.currBranch}`,seq:n.records.seq++,parents:null==n.records.head?[]:[n.records.head.id,j||""],branch:n.records.currBranch,type:k.MERGE,customType:d,customId:!!c,tags:e??[]};n.records.head=q,n.records.commits.set(q.id,q),n.records.branches.set(n.records.currBranch,q.id),h.Rm.debug(n.records.branches),h.Rm.debug("in mergeBranch")},"merge"),w=(0,h.K2)(function(a){let b=a.id,c=a.targetId,d=a.tags,e=a.parent;h.Rm.debug("Entering cherryPick:",b,c,d);let f=m();if(b=g.Y2.sanitizeText(b,f),c=g.Y2.sanitizeText(c,f),d=d?.map(a=>g.Y2.sanitizeText(a,f)),e=g.Y2.sanitizeText(e,f),!b||!n.records.commits.has(b)){let a=Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw a.hash={text:`cherryPick ${b} ${c}`,token:`cherryPick ${b} ${c}`,expected:["cherry-pick abc"]},a}let i=n.records.commits.get(b);if(void 0===i||!i)throw Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(e&&!(Array.isArray(i.parents)&&i.parents.includes(e)))throw Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let j=i.branch;if(i.type===k.MERGE&&!e)throw Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!c||!n.records.commits.has(c)){if(j===n.records.currBranch){let a=Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw a.hash={text:`cherryPick ${b} ${c}`,token:`cherryPick ${b} ${c}`,expected:["cherry-pick abc"]},a}let a=n.records.branches.get(n.records.currBranch);if(void 0===a||!a){let a=Error(`Incorrect usage of "cherry-pick". Current branch (${n.records.currBranch})has no commits`);throw a.hash={text:`cherryPick ${b} ${c}`,token:`cherryPick ${b} ${c}`,expected:["cherry-pick abc"]},a}let f=n.records.commits.get(a);if(void 0===f||!f){let a=Error(`Incorrect usage of "cherry-pick". Current branch (${n.records.currBranch})has no commits`);throw a.hash={text:`cherryPick ${b} ${c}`,token:`cherryPick ${b} ${c}`,expected:["cherry-pick abc"]},a}let g={id:n.records.seq+"-"+o(),message:`cherry-picked ${i?.message} into ${n.records.currBranch}`,seq:n.records.seq++,parents:null==n.records.head?[]:[n.records.head.id,i.id],branch:n.records.currBranch,type:k.CHERRY_PICK,tags:d?d.filter(Boolean):[`cherry-pick:${i.id}${i.type===k.MERGE?`|parent:${e}`:""}`]};n.records.head=g,n.records.commits.set(g.id,g),n.records.branches.set(n.records.currBranch,g.id),h.Rm.debug(n.records.branches),h.Rm.debug("in cherryPick")}},"cherryPick"),x=(0,h.K2)(function(a){if(a=g.Y2.sanitizeText(a,m()),n.records.branches.has(a)){n.records.currBranch=a;let b=n.records.branches.get(n.records.currBranch);void 0!==b&&b?n.records.head=n.records.commits.get(b)??null:n.records.head=null}else{let b=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${a}")`);throw b.hash={text:`checkout ${a}`,token:`checkout ${a}`,expected:[`branch ${a}`]},b}},"checkout");function y(a,b,c){let d=a.indexOf(b);-1===d?a.push(c):a.splice(d,1,c)}function z(a){let b=a.reduce((a,b)=>a.seq>b.seq?a:b,a[0]),c="";a.forEach(function(a){a===b?c+=" *":c+=" |"});let d=[c,b.id,b.seq];for(let a in n.records.branches)n.records.branches.get(a)===b.id&&d.push(a);if(h.Rm.debug(d.join(" ")),b.parents&&2==b.parents.length&&b.parents[0]&&b.parents[1]){let c=n.records.commits.get(b.parents[0]);y(a,b,c),b.parents[1]&&a.push(n.records.commits.get(b.parents[1]))}else if(0==b.parents.length)return;else if(b.parents[0]){let c=n.records.commits.get(b.parents[0]);y(a,b,c)}z(a=p(a,a=>a.id))}(0,h.K2)(y,"upsert"),(0,h.K2)(z,"prettyPrintCommitHistory");var A=(0,h.K2)(function(){h.Rm.debug(n.records.commits),z([F()[0]])},"prettyPrint"),B=(0,h.K2)(function(){n.reset(),(0,g.IU)()},"clear"),C=(0,h.K2)(function(){return[...n.records.branchConfig.values()].map((a,b)=>null!==a.order&&void 0!==a.order?a:{...a,order:parseFloat(`0.${b}`)}).sort((a,b)=>(a.order??0)-(b.order??0)).map(({name:a})=>({name:a}))},"getBranchesAsObjArray"),D=(0,h.K2)(function(){return n.records.branches},"getBranches"),E=(0,h.K2)(function(){return n.records.commits},"getCommits"),F=(0,h.K2)(function(){let a=[...n.records.commits.values()];return a.forEach(function(a){h.Rm.debug(a.id)}),a.sort((a,b)=>a.seq-b.seq),a},"getCommitsArray"),G={commitType:k,getConfig:m,setDirection:q,setOptions:r,getOptions:s,commit:t,branch:u,merge:v,cherryPick:w,checkout:x,prettyPrint:A,clear:B,getBranchesAsObjArray:C,getBranches:D,getCommits:E,getCommitsArray:F,getCurrentBranch:(0,h.K2)(function(){return n.records.currBranch},"getCurrentBranch"),getDirection:(0,h.K2)(function(){return n.records.direction},"getDirection"),getHead:(0,h.K2)(function(){return n.records.head},"getHead"),setAccTitle:g.SV,getAccTitle:g.iN,getAccDescription:g.m7,setAccDescription:g.EI,setDiagramTitle:g.ke,getDiagramTitle:g.ab},H=(0,h.K2)((a,b)=>{for(let c of((0,d.S)(a,b),a.dir&&b.setDirection(a.dir),a.statements))I(c,b)},"populate"),I=(0,h.K2)((a,b)=>{let c={Commit:(0,h.K2)(a=>b.commit(J(a)),"Commit"),Branch:(0,h.K2)(a=>b.branch(K(a)),"Branch"),Merge:(0,h.K2)(a=>b.merge(L(a)),"Merge"),Checkout:(0,h.K2)(a=>b.checkout(M(a)),"Checkout"),CherryPicking:(0,h.K2)(a=>b.cherryPick(N(a)),"CherryPicking")}[a.$type];c?c(a):h.Rm.error(`Unknown statement type: ${a.$type}`)},"parseStatement"),J=(0,h.K2)(a=>({id:a.id,msg:a.message??"",type:void 0!==a.type?k[a.type]:k.NORMAL,tags:a.tags??void 0}),"parseCommit"),K=(0,h.K2)(a=>({name:a.name,order:a.order??0}),"parseBranch"),L=(0,h.K2)(a=>({branch:a.branch,id:a.id??"",type:void 0!==a.type?k[a.type]:void 0,tags:a.tags??void 0}),"parseMerge"),M=(0,h.K2)(a=>a.branch,"parseCheckout"),N=(0,h.K2)(a=>({id:a.id,targetId:"",tags:a.tags?.length===0?void 0:a.tags,parent:a.parent}),"parseCherryPicking"),O={parse:(0,h.K2)(async a=>{let b=await (0,i.qg)("gitGraph",a);h.Rm.debug(b),H(b,G)},"parse")},P=(0,g.D7)(),Q=P?.gitGraph,R=new Map,S=new Map,T=new Map,U=[],V=0,W="LR",X=(0,h.K2)(()=>{R.clear(),S.clear(),T.clear(),V=0,U=[],W="LR"},"clear"),Y=(0,h.K2)(a=>{let b=document.createElementNS("http://www.w3.org/2000/svg","text");return("string"==typeof a?a.split(/\\n|\n|<br\s*\/?>/gi):a).forEach(a=>{let c=document.createElementNS("http://www.w3.org/2000/svg","tspan");c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),c.setAttribute("dy","1em"),c.setAttribute("x","0"),c.setAttribute("class","row"),c.textContent=a.trim(),b.appendChild(c)}),b},"drawText"),Z=(0,h.K2)(a=>{let b,c,d;return"BT"===W?(c=(0,h.K2)((a,b)=>a<=b,"comparisonFunc"),d=1/0):(c=(0,h.K2)((a,b)=>a>=b,"comparisonFunc"),d=0),a.forEach(a=>{let e="TB"===W||"BT"==W?S.get(a)?.y:S.get(a)?.x;void 0!==e&&c(e,d)&&(b=a,d=e)}),b},"findClosestParent"),$=(0,h.K2)(a=>{let b="",c=1/0;return a.forEach(a=>{let d=S.get(a).y;d<=c&&(b=a,c=d)}),b||void 0},"findClosestParentBT"),_=(0,h.K2)((a,b,c)=>{let d=c,e=c,f=[];a.forEach(a=>{let c=b.get(a);if(!c)throw Error(`Commit not found for key ${a}`);c.parents.length?e=Math.max(d=ab(c),e):f.push(c),ac(c,d)}),d=e,f.forEach(a=>{ad(a,d,c)}),a.forEach(a=>{let c=b.get(a);if(c?.parents.length){let a=$(c.parents);(d=S.get(a).y-40)<=e&&(e=d);let b=R.get(c.branch).pos,f=d-10;S.set(c.id,{x:b,y:f})}})},"setParallelBTPos"),aa=(0,h.K2)(a=>{let b=Z(a.parents.filter(a=>null!==a));if(!b)throw Error(`Closest parent not found for commit ${a.id}`);let c=S.get(b)?.y;if(void 0===c)throw Error(`Closest parent position not found for commit ${a.id}`);return c},"findClosestParentPos"),ab=(0,h.K2)(a=>aa(a)+40,"calculateCommitPosition"),ac=(0,h.K2)((a,b)=>{let c=R.get(a.branch);if(!c)throw Error(`Branch not found for commit ${a.id}`);let d=c.pos,e=b+10;return S.set(a.id,{x:d,y:e}),{x:d,y:e}},"setCommitPosition"),ad=(0,h.K2)((a,b,c)=>{let d=R.get(a.branch);if(!d)throw Error(`Branch not found for commit ${a.id}`);let e=d.pos;S.set(a.id,{x:e,y:b+c})},"setRootPosition"),ae=(0,h.K2)((a,b,c,d,e,f)=>{if(f===k.HIGHLIGHT)a.append("rect").attr("x",c.x-10).attr("y",c.y-10).attr("width",20).attr("height",20).attr("class",`commit ${b.id} commit-highlight${e%8} ${d}-outer`),a.append("rect").attr("x",c.x-6).attr("y",c.y-6).attr("width",12).attr("height",12).attr("class",`commit ${b.id} commit${e%8} ${d}-inner`);else if(f===k.CHERRY_PICK)a.append("circle").attr("cx",c.x).attr("cy",c.y).attr("r",10).attr("class",`commit ${b.id} ${d}`),a.append("circle").attr("cx",c.x-3).attr("cy",c.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${b.id} ${d}`),a.append("circle").attr("cx",c.x+3).attr("cy",c.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${b.id} ${d}`),a.append("line").attr("x1",c.x+3).attr("y1",c.y+1).attr("x2",c.x).attr("y2",c.y-5).attr("stroke","#fff").attr("class",`commit ${b.id} ${d}`),a.append("line").attr("x1",c.x-3).attr("y1",c.y+1).attr("x2",c.x).attr("y2",c.y-5).attr("stroke","#fff").attr("class",`commit ${b.id} ${d}`);else{let g=a.append("circle");if(g.attr("cx",c.x),g.attr("cy",c.y),g.attr("r",b.type===k.MERGE?9:10),g.attr("class",`commit ${b.id} commit${e%8}`),f===k.MERGE){let f=a.append("circle");f.attr("cx",c.x),f.attr("cy",c.y),f.attr("r",6),f.attr("class",`commit ${d} ${b.id} commit${e%8}`)}f===k.REVERSE&&a.append("path").attr("d",`M ${c.x-5},${c.y-5}L${c.x+5},${c.y+5}M${c.x-5},${c.y+5}L${c.x+5},${c.y-5}`).attr("class",`commit ${d} ${b.id} commit${e%8}`)}},"drawCommitBullet"),af=(0,h.K2)((a,b,c,d)=>{if(b.type!==k.CHERRY_PICK&&(b.customId&&b.type===k.MERGE||b.type!==k.MERGE)&&Q?.showCommitLabel){let e=a.append("g"),f=e.insert("rect").attr("class","commit-label-bkg"),g=e.append("text").attr("x",d).attr("y",c.y+25).attr("class","commit-label").text(b.id),h=g.node()?.getBBox();if(h&&(f.attr("x",c.posWithOffset-h.width/2-2).attr("y",c.y+13.5).attr("width",h.width+4).attr("height",h.height+4),"TB"===W||"BT"===W?(f.attr("x",c.x-(h.width+16+5)).attr("y",c.y-12),g.attr("x",c.x-(h.width+16)).attr("y",c.y+h.height-12)):g.attr("x",c.posWithOffset-h.width/2),Q.rotateCommitLabel))if("TB"===W||"BT"===W)g.attr("transform","rotate(-45, "+c.x+", "+c.y+")"),f.attr("transform","rotate(-45, "+c.x+", "+c.y+")");else{let a=-7.5-(h.width+10)/25*9.5,b=10+h.width/25*8.5;e.attr("transform","translate("+a+", "+b+") rotate(-45, "+d+", "+c.y+")")}}},"drawCommitLabel"),ag=(0,h.K2)((a,b,c,d)=>{if(b.tags.length>0){let e=0,f=0,g=0,h=[];for(let d of b.tags.reverse()){let b=a.insert("polygon"),i=a.append("circle"),j=a.append("text").attr("y",c.y-16-e).attr("class","tag-label").text(d),k=j.node()?.getBBox();if(!k)throw Error("Tag bbox not found");f=Math.max(f,k.width),g=Math.max(g,k.height),j.attr("x",c.posWithOffset-k.width/2),h.push({tag:j,hole:i,rect:b,yOffset:e}),e+=20}for(let{tag:a,hole:b,rect:e,yOffset:i}of h){let h=g/2,j=c.y-19.2-i;if(e.attr("class","tag-label-bkg").attr("points",`
|
|
2
|
+
${d-f/2-2},${j+2}
|
|
3
|
+
${d-f/2-2},${j-2}
|
|
4
|
+
${c.posWithOffset-f/2-4},${j-h-2}
|
|
5
|
+
${c.posWithOffset+f/2+4},${j-h-2}
|
|
6
|
+
${c.posWithOffset+f/2+4},${j+h+2}
|
|
7
|
+
${c.posWithOffset-f/2-4},${j+h+2}`),b.attr("cy",j).attr("cx",d-f/2+2).attr("r",1.5).attr("class","tag-hole"),"TB"===W||"BT"===W){let g=d+i;e.attr("class","tag-label-bkg").attr("points",`
|
|
8
|
+
${c.x},${g+2}
|
|
9
|
+
${c.x},${g-2}
|
|
10
|
+
${c.x+10},${g-h-2}
|
|
11
|
+
${c.x+10+f+4},${g-h-2}
|
|
12
|
+
${c.x+10+f+4},${g+h+2}
|
|
13
|
+
${c.x+10},${g+h+2}`).attr("transform","translate(12,12) rotate(45, "+c.x+","+d+")"),b.attr("cx",c.x+2).attr("cy",g).attr("transform","translate(12,12) rotate(45, "+c.x+","+d+")"),a.attr("x",c.x+5).attr("y",g+3).attr("transform","translate(14,14) rotate(45, "+c.x+","+d+")")}}}},"drawCommitTags"),ah=(0,h.K2)(a=>{switch(a.customType??a.type){case k.NORMAL:return"commit-normal";case k.REVERSE:return"commit-reverse";case k.HIGHLIGHT:return"commit-highlight";case k.MERGE:return"commit-merge";case k.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),ai=(0,h.K2)((a,b,c,d)=>{let e={x:0,y:0};if(a.parents.length>0){let c=Z(a.parents);if(c){let f=d.get(c)??e;return"TB"===b?f.y+40:"BT"===b?(d.get(a.id)??e).y-40:f.x+40}}else if("TB"===b)return 30;else if("BT"===b)return(d.get(a.id)??e).y-40;return 0},"calculatePosition"),aj=(0,h.K2)((a,b,c)=>{let d="BT"===W&&c?b:b+10,e="TB"===W||"BT"===W?d:R.get(a.branch)?.pos,f="TB"===W||"BT"===W?R.get(a.branch)?.pos:d;if(void 0===f||void 0===e)throw Error(`Position were undefined for commit ${a.id}`);return{x:f,y:e,posWithOffset:d}},"getCommitPosition"),ak=(0,h.K2)((a,b,c)=>{if(!Q)throw Error("GitGraph config not found");let d=a.append("g").attr("class","commit-bullets"),e=a.append("g").attr("class","commit-labels"),f=30*("TB"===W||"BT"===W),g=[...b.keys()],i=Q?.parallelCommits??!1,j=g.sort((0,h.K2)((a,c)=>{let d=b.get(a)?.seq,e=b.get(c)?.seq;return void 0!==d&&void 0!==e?d-e:0},"sortKeys"));"BT"===W&&(i&&_(j,b,f),j=j.reverse()),j.forEach(a=>{let g=b.get(a);if(!g)throw Error(`Commit not found for key ${a}`);i&&(f=ai(g,W,f,S));let h=aj(g,f,i);if(c){let a=ah(g),b=g.customType??g.type,c=R.get(g.branch)?.index??0;ae(d,g,h,a,c,b),af(e,g,h,f),ag(e,g,h,f)}"TB"===W||"BT"===W?S.set(g.id,{x:h.x,y:h.posWithOffset}):S.set(g.id,{x:h.posWithOffset,y:h.y}),(f="BT"===W&&i?f+40:f+40+10)>V&&(V=f)})},"drawCommits"),al=(0,h.K2)((a,b,c,d,e)=>{let f=("TB"===W||"BT"===W?c.x<d.x:c.y<d.y)?b.branch:a.branch,g=(0,h.K2)(a=>a.branch===f,"isOnBranchToGetCurve"),i=(0,h.K2)(c=>c.seq>a.seq&&c.seq<b.seq,"isBetweenCommits");return[...e.values()].some(a=>i(a)&&g(a))},"shouldRerouteArrow"),am=(0,h.K2)((a,b,c=0)=>{let d=a+Math.abs(a-b)/2;if(c>5)return d;if(U.every(a=>Math.abs(a-d)>=10))return U.push(d),d;let e=Math.abs(a-b);return am(a,b-e/5,c+1)},"findLane"),an=(0,h.K2)((a,b,c,d)=>{let e,f=S.get(b.id),g=S.get(c.id);if(void 0===f||void 0===g)throw Error(`Commit positions not found for commits ${b.id} and ${c.id}`);let h=al(b,c,f,g,d),i="",j="",l=0,m=0,n=R.get(c.branch)?.index;if(c.type===k.MERGE&&b.id!==c.parents[0]&&(n=R.get(b.branch)?.index),h){i="A 10 10, 0, 0, 0,",j="A 10 10, 0, 0, 1,",l=10,m=10;let a=f.y<g.y?am(f.y,g.y):am(g.y,f.y),c=f.x<g.x?am(f.x,g.x):am(g.x,f.x);"TB"===W?f.x<g.x?e=`M ${f.x} ${f.y} L ${c-l} ${f.y} ${j} ${c} ${f.y+m} L ${c} ${g.y-l} ${i} ${c+m} ${g.y} L ${g.x} ${g.y}`:(n=R.get(b.branch)?.index,e=`M ${f.x} ${f.y} L ${c+l} ${f.y} ${i} ${c} ${f.y+m} L ${c} ${g.y-l} ${j} ${c-m} ${g.y} L ${g.x} ${g.y}`):"BT"===W?f.x<g.x?e=`M ${f.x} ${f.y} L ${c-l} ${f.y} ${i} ${c} ${f.y-m} L ${c} ${g.y+l} ${j} ${c+m} ${g.y} L ${g.x} ${g.y}`:(n=R.get(b.branch)?.index,e=`M ${f.x} ${f.y} L ${c+l} ${f.y} ${j} ${c} ${f.y-m} L ${c} ${g.y+l} ${i} ${c-m} ${g.y} L ${g.x} ${g.y}`):f.y<g.y?e=`M ${f.x} ${f.y} L ${f.x} ${a-l} ${i} ${f.x+m} ${a} L ${g.x-l} ${a} ${j} ${g.x} ${a+m} L ${g.x} ${g.y}`:(n=R.get(b.branch)?.index,e=`M ${f.x} ${f.y} L ${f.x} ${a+l} ${j} ${f.x+m} ${a} L ${g.x-l} ${a} ${i} ${g.x} ${a-m} L ${g.x} ${g.y}`)}else i="A 20 20, 0, 0, 0,",j="A 20 20, 0, 0, 1,",l=20,m=20,"TB"===W?(f.x<g.x&&(e=c.type===k.MERGE&&b.id!==c.parents[0]?`M ${f.x} ${f.y} L ${f.x} ${g.y-l} ${i} ${f.x+m} ${g.y} L ${g.x} ${g.y}`:`M ${f.x} ${f.y} L ${g.x-l} ${f.y} ${j} ${g.x} ${f.y+m} L ${g.x} ${g.y}`),f.x>g.x&&(i="A 20 20, 0, 0, 0,",j="A 20 20, 0, 0, 1,",l=20,m=20,e=c.type===k.MERGE&&b.id!==c.parents[0]?`M ${f.x} ${f.y} L ${f.x} ${g.y-l} ${j} ${f.x-m} ${g.y} L ${g.x} ${g.y}`:`M ${f.x} ${f.y} L ${g.x+l} ${f.y} ${i} ${g.x} ${f.y+m} L ${g.x} ${g.y}`),f.x===g.x&&(e=`M ${f.x} ${f.y} L ${g.x} ${g.y}`)):"BT"===W?(f.x<g.x&&(e=c.type===k.MERGE&&b.id!==c.parents[0]?`M ${f.x} ${f.y} L ${f.x} ${g.y+l} ${j} ${f.x+m} ${g.y} L ${g.x} ${g.y}`:`M ${f.x} ${f.y} L ${g.x-l} ${f.y} ${i} ${g.x} ${f.y-m} L ${g.x} ${g.y}`),f.x>g.x&&(i="A 20 20, 0, 0, 0,",j="A 20 20, 0, 0, 1,",l=20,m=20,e=c.type===k.MERGE&&b.id!==c.parents[0]?`M ${f.x} ${f.y} L ${f.x} ${g.y+l} ${i} ${f.x-m} ${g.y} L ${g.x} ${g.y}`:`M ${f.x} ${f.y} L ${g.x-l} ${f.y} ${i} ${g.x} ${f.y-m} L ${g.x} ${g.y}`),f.x===g.x&&(e=`M ${f.x} ${f.y} L ${g.x} ${g.y}`)):(f.y<g.y&&(e=c.type===k.MERGE&&b.id!==c.parents[0]?`M ${f.x} ${f.y} L ${g.x-l} ${f.y} ${j} ${g.x} ${f.y+m} L ${g.x} ${g.y}`:`M ${f.x} ${f.y} L ${f.x} ${g.y-l} ${i} ${f.x+m} ${g.y} L ${g.x} ${g.y}`),f.y>g.y&&(e=c.type===k.MERGE&&b.id!==c.parents[0]?`M ${f.x} ${f.y} L ${g.x-l} ${f.y} ${i} ${g.x} ${f.y-m} L ${g.x} ${g.y}`:`M ${f.x} ${f.y} L ${f.x} ${g.y+l} ${j} ${f.x+m} ${g.y} L ${g.x} ${g.y}`),f.y===g.y&&(e=`M ${f.x} ${f.y} L ${g.x} ${g.y}`));if(void 0===e)throw Error("Line definition not found");a.append("path").attr("d",e).attr("class","arrow arrow"+n%8)},"drawArrow"),ao=(0,h.K2)((a,b)=>{let c=a.append("g").attr("class","commit-arrows");[...b.keys()].forEach(a=>{let d=b.get(a);d.parents&&d.parents.length>0&&d.parents.forEach(a=>{an(c,b.get(a),d,b)})})},"drawArrows"),ap=(0,h.K2)((a,b)=>{let c=a.append("g");b.forEach((a,b)=>{let d=b%8,e=R.get(a.name)?.pos;if(void 0===e)throw Error(`Position not found for branch ${a.name}`);let f=c.append("line");f.attr("x1",0),f.attr("y1",e),f.attr("x2",V),f.attr("y2",e),f.attr("class","branch branch"+d),"TB"===W?(f.attr("y1",30),f.attr("x1",e),f.attr("y2",V),f.attr("x2",e)):"BT"===W&&(f.attr("y1",V),f.attr("x1",e),f.attr("y2",30),f.attr("x2",e)),U.push(e);let g=Y(a.name),h=c.insert("rect"),i=c.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+d);i.node().appendChild(g);let j=g.getBBox();h.attr("class","branchLabelBkg label"+d).attr("rx",4).attr("ry",4).attr("x",-j.width-4-30*(Q?.rotateCommitLabel===!0)).attr("y",-j.height/2+8).attr("width",j.width+18).attr("height",j.height+4),i.attr("transform","translate("+(-j.width-14-30*(Q?.rotateCommitLabel===!0))+", "+(e-j.height/2-1)+")"),"TB"===W?(h.attr("x",e-j.width/2-10).attr("y",0),i.attr("transform","translate("+(e-j.width/2-5)+", 0)")):"BT"===W?(h.attr("x",e-j.width/2-10).attr("y",V),i.attr("transform","translate("+(e-j.width/2-5)+", "+V+")")):h.attr("transform","translate(-19, "+(e-j.height/2)+")")})},"drawBranches"),aq=(0,h.K2)(function(a,b,c,d,e){return R.set(a,{pos:b,index:c}),b+=50+40*!!e+("TB"===W||"BT"===W?d.width/2:0)},"setBranchPosition"),ar={parser:O,db:G,renderer:{draw:(0,h.K2)(function(a,b,c,d){if(X(),h.Rm.debug("in gitgraph renderer",a+"\n","id:",b,c),!Q)throw Error("GitGraph config not found");let e=Q.rotateCommitLabel??!1,i=d.db;T=i.getCommits();let k=i.getBranchesAsObjArray();W=i.getDirection();let l=(0,j.Ltv)(`[id="${b}"]`),m=0;k.forEach((a,b)=>{let c=Y(a.name),d=l.append("g"),f=d.insert("g").attr("class","branchLabel"),g=f.insert("g").attr("class","label branch-label");g.node()?.appendChild(c);let h=c.getBBox();m=aq(a.name,m,b,h,e),g.remove(),f.remove(),d.remove()}),ak(l,T,!1),Q.showBranches&&ap(l,k),ao(l,T),ak(l,T,!0),f._K.insertTitle(l,"gitTitleText",Q.titleTopMargin??0,i.getDiagramTitle()),(0,g.mj)(void 0,l,Q.diagramPadding,Q.useMaxWidth)},"draw")},styles:(0,h.K2)(a=>`
|
|
14
|
+
.commit-id,
|
|
15
|
+
.commit-msg,
|
|
16
|
+
.branch-label {
|
|
17
|
+
fill: lightgrey;
|
|
18
|
+
color: lightgrey;
|
|
19
|
+
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
20
|
+
font-family: var(--mermaid-font-family);
|
|
21
|
+
}
|
|
22
|
+
${[0,1,2,3,4,5,6,7].map(b=>`
|
|
23
|
+
.branch-label${b} { fill: ${a["gitBranchLabel"+b]}; }
|
|
24
|
+
.commit${b} { stroke: ${a["git"+b]}; fill: ${a["git"+b]}; }
|
|
25
|
+
.commit-highlight${b} { stroke: ${a["gitInv"+b]}; fill: ${a["gitInv"+b]}; }
|
|
26
|
+
.label${b} { fill: ${a["git"+b]}; }
|
|
27
|
+
.arrow${b} { stroke: ${a["git"+b]}; }
|
|
28
|
+
`).join("\n")}
|
|
29
|
+
|
|
30
|
+
.branch {
|
|
31
|
+
stroke-width: 1;
|
|
32
|
+
stroke: ${a.lineColor};
|
|
33
|
+
stroke-dasharray: 2;
|
|
34
|
+
}
|
|
35
|
+
.commit-label { font-size: ${a.commitLabelFontSize}; fill: ${a.commitLabelColor};}
|
|
36
|
+
.commit-label-bkg { font-size: ${a.commitLabelFontSize}; fill: ${a.commitLabelBackground}; opacity: 0.5; }
|
|
37
|
+
.tag-label { font-size: ${a.tagLabelFontSize}; fill: ${a.tagLabelColor};}
|
|
38
|
+
.tag-label-bkg { fill: ${a.tagLabelBackground}; stroke: ${a.tagLabelBorder}; }
|
|
39
|
+
.tag-hole { fill: ${a.textColor}; }
|
|
40
|
+
|
|
41
|
+
.commit-merge {
|
|
42
|
+
stroke: ${a.primaryColor};
|
|
43
|
+
fill: ${a.primaryColor};
|
|
44
|
+
}
|
|
45
|
+
.commit-reverse {
|
|
46
|
+
stroke: ${a.primaryColor};
|
|
47
|
+
fill: ${a.primaryColor};
|
|
48
|
+
stroke-width: 3;
|
|
49
|
+
}
|
|
50
|
+
.commit-highlight-outer {
|
|
51
|
+
}
|
|
52
|
+
.commit-highlight-inner {
|
|
53
|
+
stroke: ${a.primaryColor};
|
|
54
|
+
fill: ${a.primaryColor};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.arrow { stroke-width: 8; stroke-linecap: round; fill: none}
|
|
58
|
+
.gitTitleText {
|
|
59
|
+
text-anchor: middle;
|
|
60
|
+
font-size: 18px;
|
|
61
|
+
fill: ${a.textColor};
|
|
62
|
+
}
|
|
63
|
+
`,"getStyles")}},85373:(a,b,c)=>{"use strict";function d(a,b){a.accDescr&&b.setAccDescription?.(a.accDescr),a.accTitle&&b.setAccTitle?.(a.accTitle),a.title&&b.setDiagramTitle?.(a.title)}c.d(b,{S:()=>d}),(0,c(19195).K2)(d,"populateCommonDb")},86012:a=>{function b(a){var b=Error("Cannot find module '"+a+"'");throw b.code="MODULE_NOT_FOUND",b}b.keys=()=>[],b.resolve=b,b.id=86012,a.exports=b}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
exports.id=528,exports.ids=[528],exports.modules={2131:()=>{},2385:(a,b,c)=>{"use strict";c.d(b,{Providers:()=>d});let d=(0,c(34427).registerClientReference)(function(){throw Error("Attempted to call Providers() from the server but Providers is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"E:\\Work\\Personal\\Nextjs-Studio\\src\\cli\\ui\\components\\providers.tsx","Providers")},2428:(a,b,c)=>{"use strict";c.d(b,{$:()=>i});var d=c(40845),e=c(86328),f=c(71354),g=c(55991);let h=(0,f.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),i=e.forwardRef(({className:a,variant:b,size:c,...e},f)=>(0,d.jsx)("button",{className:(0,g.cn)(h({variant:b,size:c,className:a})),ref:f,...e}));i.displayName="Button"},2587:(a,b,c)=>{"use strict";c.d(b,{SidebarCacheWriter:()=>e});var d=c(34427);(0,d.registerClientReference)(function(){throw Error("Attempted to call readSidebarCache() from the server but readSidebarCache is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"E:\\Work\\Personal\\Nextjs-Studio\\src\\cli\\ui\\lib\\sidebar-cache.ts","readSidebarCache");let e=(0,d.registerClientReference)(function(){throw Error("Attempted to call SidebarCacheWriter() from the server but SidebarCacheWriter is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"E:\\Work\\Personal\\Nextjs-Studio\\src\\cli\\ui\\lib\\sidebar-cache.ts","SidebarCacheWriter")},7459:(a,b,c)=>{"use strict";c.d(b,{Toaster:()=>n,o:()=>m});var d=c(40845),e=c(86328),f=c(55991),g=c(66270);let h=[],i=new Set;function j(a){return i.add(a),()=>i.delete(a)}function k(){return h}function l(){for(let a of(h=[...h],i))a()}function m(a,b="default"){let c=Math.random().toString(36).slice(2);h=[...h,{id:c,message:a,variant:b}],l(),setTimeout(()=>{h=h.filter(a=>a.id!==c),l()},4e3)}function n(){let a=(0,e.useSyncExternalStore)(j,k,k);return 0===a.length?null:(0,d.jsx)("div",{className:"fixed bottom-4 right-4 z-50 flex flex-col gap-2",children:a.map(a=>(0,d.jsxs)("div",{className:(0,f.cn)("flex items-center gap-2 rounded-lg border bg-background px-4 py-3 shadow-lg animate-in slide-in-from-bottom-2","error"===a.variant&&"border-destructive/50 text-destructive","success"===a.variant&&"border-green-500/50"),children:[(0,d.jsx)("span",{className:"text-sm",children:a.message}),(0,d.jsx)("button",{type:"button",onClick:()=>{var b;return b=a.id,void(h=h.filter(a=>a.id!==b),l())},className:"ml-2 rounded-sm p-0.5 hover:bg-accent",children:(0,d.jsx)(g.A,{className:"h-3 w-3"})})]},a.id))})}},8001:(a,b,c)=>{"use strict";c.d(b,{UZ:()=>e}),c(73024),c(76760);var d=c(73136);async function e(a){try{let b=(0,d.pathToFileURL)(a).href,c=await import(b),e=c.default??c.config??c;if("object"!=typeof e||null===e||Array.isArray(e))return{};return e}catch{return{}}}c(96496)},14804:(a,b,c)=>{"use strict";c.d(b,{A:()=>e,r:()=>f});var d=c(28079);async function e(a,b,c){await a.writeFile(b,c+"\n")}async function f(a,b){for(let{filePath:c,frontmatter:e,body:f}of b)c&&await a.writeFile(c,(0,d.O)(e,f))}},14864:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>j,metadata:()=>i});var d=c(83163),e=c(30685),f=c.n(e),g=c(2385),h=c(30565);c(53140);let i={title:"Nextjs Studio",description:"A Git-based, local-first CMS for Next.js projects"};function j({children:a}){return(0,d.jsx)("html",{lang:"en",suppressHydrationWarning:!0,children:(0,d.jsx)("body",{className:`${f().variable} font-sans antialiased`,children:(0,d.jsxs)(g.Providers,{children:[(0,d.jsx)("div",{className:"flex h-screen overflow-hidden",children:a}),(0,d.jsx)(h.Toaster,{})]})})})}},15529:(a,b,c)=>{"use strict";c.d(b,{SidebarCacheWriter:()=>e,z:()=>d.z}),c(86328);var d=c(55991);function e({collections:a}){return null}},21510:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{Kb:()=>g});var e=c(94096),f=a([e]);async function g(a,b){let c=new e.g(a);return await c.build(b),c}e=(f.then?(await f)():f)[0],d()}catch(a){d(a)}})},23243:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,2061,23)),Promise.resolve().then(c.t.bind(c,37940,23)),Promise.resolve().then(c.t.bind(c,72858,23)),Promise.resolve().then(c.t.bind(c,55229,23)),Promise.resolve().then(c.t.bind(c,20297,23)),Promise.resolve().then(c.t.bind(c,90747,23)),Promise.resolve().then(c.t.bind(c,60644,23)),Promise.resolve().then(c.bind(c,64393))},25465:(a,b,c)=>{"use strict";c.d(b,{ThemeToggle:()=>j});var d=c(40845),e=c(91092),f=c(86328),g=c(65808),h=c(45421),i=c(2428);function j(){let{theme:a,setTheme:b}=(0,e.D)(),[c,j]=(0,f.useState)(!1);return c?(0,d.jsxs)(i.$,{variant:"ghost",size:"icon",onClick:()=>b("dark"===a?"light":"dark"),children:["dark"===a?(0,d.jsx)(g.A,{className:"h-4 w-4"}):(0,d.jsx)(h.A,{className:"h-4 w-4"}),(0,d.jsx)("span",{className:"sr-only",children:"Toggle theme"})]}):(0,d.jsx)(i.$,{variant:"ghost",size:"icon",disabled:!0,children:(0,d.jsx)(g.A,{className:"h-4 w-4"})})}},27468:(a,b,c)=>{Promise.resolve().then(c.bind(c,2385)),Promise.resolve().then(c.bind(c,30565))},28079:(a,b,c)=>{"use strict";c.d(b,{z:()=>g,O:()=>h});var d=c(51077),e=c.n(d);let f=/\{frontmatter\.([a-zA-Z0-9_.]+)\}/g;function g(a,b){let{data:c,content:d}=e()(a),g=function a(b){let c={};for(let[d,e]of Object.entries(b))e instanceof Date?c[d]=e.toISOString().split("T")[0]:"object"!=typeof e||null===e||Array.isArray(e)?c[d]=e:c[d]=a(e);return c}(c),h=d.trim();return{data:g,body:b?.bindTokens?h.replace(f,(a,b)=>{let c=function(a,b){let c=b.split("."),d=a;for(let a of c){if("object"!=typeof d||null===d)return;d=d[a]}return d}(g,b);return null==c?a:"object"==typeof c?JSON.stringify(c):String(c)}):h}}function h(a,b){return e().stringify(b,a)}},30565:(a,b,c)=>{"use strict";c.d(b,{Toaster:()=>e});var d=c(34427);(0,d.registerClientReference)(function(){throw Error("Attempted to call toast() from the server but toast is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"E:\\Work\\Personal\\Nextjs-Studio\\src\\cli\\ui\\components\\ui\\toast.tsx","toast");let e=(0,d.registerClientReference)(function(){throw Error("Attempted to call Toaster() from the server but Toaster is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"E:\\Work\\Personal\\Nextjs-Studio\\src\\cli\\ui\\components\\ui\\toast.tsx","Toaster")},33548:(a,b,c)=>{Promise.resolve().then(c.bind(c,66771)),Promise.resolve().then(c.bind(c,7459))},36194:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,2061,23))},38321:(a,b,c)=>{"use strict";function d(a){return a.label?a.label:a.name.replace(/[-_](.)/g,(a,b)=>` ${b.toUpperCase()}`).replace(/([A-Z])/g," $1").trim().replace(/\b\w/g,a=>a.toUpperCase())}c.d(b,{b:()=>d})},44055:(a,b,c)=>{"use strict";c.d(b,{An:()=>g,IG:()=>h,Xq:()=>i});var d=c(76760),e=c.n(d),f=c(96496);function g(){return process.env.STUDIO_CONTENTS_DIR??e().resolve(process.cwd(),f.HW)}function h(){return process.env.STUDIO_CONFIG_PATH||void 0}function i(){return process.env.STUDIO_PROJECT_DIR??process.cwd()}},46006:(a,b,c)=>{"use strict";function d(a){let b=a.components;return Array.isArray(b)?b.filter(e):[]}function e(a){return"object"==typeof a&&null!==a&&"string"==typeof a.name&&"string"==typeof a.tagName&&Array.isArray(a.props)}c.d(b,{b:()=>d})},53140:()=>{},55991:(a,b,c)=>{"use strict";c.d(b,{cn:()=>f,m:()=>i,z:()=>h});var d=c(13750),e=c(31370);function f(...a){return(0,e.QP)((0,d.$)(a))}let g="studio:sidebar-collections";function h(){try{let a=localStorage.getItem(g);if(!a)return[];return JSON.parse(a)}catch{return[]}}function i(a){try{localStorage.setItem(g,JSON.stringify(a))}catch{}}},56036:(a,b,c)=>{"use strict";function d(a){let b=JSON.parse(a);if(Array.isArray(b))return{type:"json-array",entries:b};if("object"==typeof b&&null!==b)return{type:"json-object",data:b};throw Error("JSON content must be an array or object")}c.d(b,{q:()=>d})},62236:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{"005b4788ddf03b0f3967b3d0c71271badfa99332f4":()=>e.J0,"00de37b20f6e2a3a5af814b3cb70601eff885260f2":()=>e.qw,"401d4fc3f2e4c29611b3858f484ba729bf121b3d1a":()=>e.Zz,"40cad4d8aa9152752fb7ca0f88d70de82e118b2218":()=>e.RG,"40e650c764f594b1e674e1ddb44467493071cd4c48":()=>e.to,"604f4e90a3fde422e932bcfb8973298550fd47add9":()=>e.qJ,"703fe4e0d6e3f41d46c633874d722710433855519c":()=>e.Qo});var e=c(82905),f=a([e]);e=(f.then?(await f)():f)[0],d()}catch(a){d(a)}})},62379:()=>{},66204:(a,b,c)=>{"use strict";c.d(b,{G:()=>r});var d=c(83163),e=c(37807),f=c.n(e),g=c(91146),h=c(49120),i=c(47001),j=c(47648),k=c(32992),l=c(80660);function m(...a){return(0,l.QP)((0,k.$)(a))}var n=c(94775),o=c(70419),p=c(2587);let q={mdx:g.A,"json-array":h.A,"json-object":i.A};function r({collections:a,activeCollection:b,activeSlug:c}){return(0,d.jsxs)("aside",{className:"flex h-full w-64 shrink-0 flex-col border-r border-sidebar-border bg-sidebar-background",children:[(0,d.jsx)(p.SidebarCacheWriter,{collections:a}),(0,d.jsxs)("div",{className:"flex h-14.5 shrink-0 items-center gap-3 border-b border-sidebar-border px-5",children:[(0,d.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-full bg-sidebar-accent",children:(0,d.jsx)(j.A,{className:"h-4 w-4 text-sidebar-primary"})}),(0,d.jsx)("span",{className:"text-[14px] font-semibold tracking-tight text-sidebar-foreground",children:"Nextjs Studio"})]}),(0,d.jsx)(n.ScrollArea,{className:"flex-1",children:(0,d.jsxs)("div",{className:"py-5",children:[(0,d.jsx)("p",{className:"mb-2 px-5 text-[10px] font-semibold uppercase tracking-[0.14em] text-sidebar-foreground/40",children:"Content"}),(0,d.jsxs)("nav",{className:"flex flex-col gap-1 px-3",children:[0===a.length&&(0,d.jsx)("p",{className:"px-2 py-6 text-xs text-sidebar-foreground/40",children:"No collections found"}),a.map(a=>{let e=q[a.type],g=b===a.name,h=g&&a.entries&&a.entries.length>0;return(0,d.jsxs)("div",{children:[(0,d.jsxs)(f(),{href:`/collection/${a.name}`,className:m("group flex w-full items-center gap-2.5 rounded-lg px-3 py-2 text-[13px] transition-colors duration-100","text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground",g&&!c&&"bg-sidebar-accent text-sidebar-foreground"),children:[(0,d.jsx)(e,{className:m("h-3.75 w-3.75 shrink-0 transition-colors",g&&!c?"text-sidebar-foreground":"text-sidebar-foreground/40 group-hover:text-sidebar-foreground/70")}),(0,d.jsx)("span",{className:"flex-1 truncate capitalize",children:a.name}),(0,d.jsx)("span",{className:m("rounded px-1.5 py-0.5 text-[10px] font-medium tabular-nums",g&&!c?"bg-sidebar-foreground/10 text-sidebar-foreground/60":"text-sidebar-foreground/30"),children:a.sectionCount??a.count})]}),h&&(0,d.jsx)("div",{className:"ml-7 mt-1 flex flex-col gap-0.5 border-l border-sidebar-border pl-3 pb-1",children:a.entries.map(b=>(0,d.jsxs)(f(),{href:`/collection/${a.name}/${b.slug}`,className:m("truncate rounded-md px-2 py-1.5 text-[12px] transition-colors duration-100","text-sidebar-foreground/50 hover:text-sidebar-foreground",c===b.slug&&"text-sidebar-foreground font-medium",b.draft&&"opacity-50"),children:[b.title,b.draft&&(0,d.jsx)("span",{className:"ml-1.5 text-[10px] text-sidebar-foreground/30",children:"draft"})]},b.slug))})]},a.name)})]})]})}),(0,d.jsx)("div",{className:"shrink-0 border-t border-sidebar-border px-4 py-3",children:(0,d.jsxs)("div",{className:"flex items-center justify-between",children:[(0,d.jsx)("span",{className:"text-[11px] text-sidebar-foreground/30 font-medium",children:"v1.0"}),(0,d.jsx)(o.ThemeToggle,{})]})})]})}},66771:(a,b,c)=>{"use strict";c.d(b,{Providers:()=>i});var d=c(40845),e=c(91092),f=c(86328),g=c(86327);function h({children:a}){return(0,g.useRouter)(),(0,f.useRef)(null),(0,d.jsx)(d.Fragment,{children:a})}function i({children:a}){return(0,d.jsx)(e.N,{attribute:"class",defaultTheme:"system",enableSystem:!0,children:(0,d.jsx)(h,{children:a})})}},70419:(a,b,c)=>{"use strict";c.d(b,{ThemeToggle:()=>d});let d=(0,c(34427).registerClientReference)(function(){throw Error("Attempted to call ThemeToggle() from the server but ThemeToggle is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"E:\\Work\\Personal\\Nextjs-Studio\\src\\cli\\ui\\components\\theme-toggle.tsx","ThemeToggle")},78189:(a,b,c)=>{"use strict";c.d(b,{C:()=>f,b:()=>e});let d=/\.([a-z]{2}(?:-[A-Z]{2})?)\.mdx$/;function e(a){let b=d.exec(a);return b?.[1]}function f(a,b){if(!b)return a;let c=`.${b}`;if(a.endsWith(c))return a.slice(0,-c.length);let d=`-${b}`;return a.endsWith(d)?a.slice(0,-d.length):a}},80817:(a,b,c)=>{"use strict";c.d(b,{ScrollArea:()=>g});var d=c(40845),e=c(86328),f=c(55991);let g=e.forwardRef(({className:a,children:b,...c},e)=>(0,d.jsx)("div",{ref:e,className:(0,f.cn)("relative overflow-auto",a),...c,children:b}));g.displayName="ScrollArea"},82905:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{J0:()=>w,Qo:()=>s,RG:()=>v,Zz:()=>u,qJ:()=>t,qw:()=>q,to:()=>r});var e=c(44960),f=c(21510),g=c(8001),h=c(46006),i=c(14804),j=c(97528),k=c(38321),l=c(94722),m=c(44055),n=c(78836),o=a([f]);async function p(){let a=(0,m.IG)();return a?(0,g.UZ)(a):{}}async function q(){try{let a=(0,m.An)(),b=await p(),c=await (0,f.Kb)(new l.D(a),b);return c.getCollections().map(a=>{let b={name:a.name,type:a.type,count:a.count,basePath:a.basePath};if("json-object"===a.type){let d=c.getCollection(a.name)[0]?.data??{};return{...b,sectionCount:function(a){let b=!1,c=0;for(let d of Object.values(a))"object"!=typeof d||null===d||Array.isArray(d)?b=!0:c++;return+!!b+c}(d)}}return b})}catch{return[]}}async function r(a){try{let b=(0,m.An)(),c=await p(),d=await (0,f.Kb)(new l.D(b),c),e=d.getCollections().find(b=>b.name===a);if(!e)return null;let g=d.getCollection(a),h=new l.D(b),i=(await h.listFiles(e.basePath)).find(a=>a.endsWith(".json")),n="",o="";i&&(n=await h.readFile(i),o=i);let q=(e.schema??(0,j._)(g,e.name)).fields.map(a=>({...a,label:(0,k.b)(a)}));return{collection:{name:e.name,type:e.type,count:e.count,basePath:e.basePath,fields:q},entries:g.map(a=>({collection:a.collection,slug:a.slug,path:a.path,filePath:"mdx"===e.type?h.join(e.basePath,a.locale?`${a.slug}.${a.locale}.mdx`:`${a.slug}.mdx`):"",body:a.body,data:a.data,locale:a.locale})),rawJson:n,filePath:o}}catch{return null}}async function s(a,b,c){try{let d=(0,m.An)(),e=await p(),g=await (0,f.Kb)(new l.D(d),e),h=g.getCollection(a).filter(a=>a.slug===b),i=c?h.find(a=>a.locale===c)??h[0]:h.find(a=>void 0===a.locale)??h[0];if(!i)return null;let j=g.getCollections().find(b=>b.name===a);if(!j)return null;let k=new l.D(d),n=i.locale?`${b}.${i.locale}.mdx`:`${b}.mdx`;return{filePath:k.join(j.basePath,n),frontmatter:i.data,body:i.body??""}}catch{return null}}async function t(a,b){try{let c=new l.D((0,m.An)());return await (0,i.A)(c,a,b),{success:!0}}catch(a){return{success:!1,error:String(a)}}}async function u(a){try{let b=new l.D((0,m.An)());return await (0,i.r)(b,a),{success:!0}}catch(a){return{success:!1,error:String(a)}}}async function v(a){try{let b=await p();return b.collections?.[a]?.scripts??{}}catch{return{}}}async function w(){let a=await p();return(0,h.b)(a)}f=(o.then?(await o)():o)[0],(0,n.D)([q,r,s,t,u,v,w]),(0,e.A)(q,"00de37b20f6e2a3a5af814b3cb70601eff885260f2",null),(0,e.A)(r,"40e650c764f594b1e674e1ddb44467493071cd4c48",null),(0,e.A)(s,"703fe4e0d6e3f41d46c633874d722710433855519c",null),(0,e.A)(t,"604f4e90a3fde422e932bcfb8973298550fd47add9",null),(0,e.A)(u,"401d4fc3f2e4c29611b3858f484ba729bf121b3d1a",null),(0,e.A)(v,"40cad4d8aa9152752fb7ca0f88d70de82e118b2218",null),(0,e.A)(w,"005b4788ddf03b0f3967b3d0c71271badfa99332f4",null),d()}catch(a){d(a)}})},86291:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,66039,23)),Promise.resolve().then(c.t.bind(c,76150,23)),Promise.resolve().then(c.t.bind(c,64544,23)),Promise.resolve().then(c.t.bind(c,2599,23)),Promise.resolve().then(c.t.bind(c,77423,23)),Promise.resolve().then(c.t.bind(c,36289,23)),Promise.resolve().then(c.t.bind(c,94286,23)),Promise.resolve().then(c.t.bind(c,16391,23))},94096:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{g:()=>l});var e=c(25921),f=c(96496),g=c(28079),h=c(56036),i=c(97528),j=c(78189),k=a([e]);e=(k.then?(await k)():k)[0];class l{constructor(a){this.entries=new Map,this.collections=new Map,this.fs=a}async build(a){for(let b of(this.clear(),await this.fs.listDirectories("."))){let c=this.fs.basename(b),d=(0,e.default)(c),f=a?.collections?.[d];await this.indexCollection(c,d,f?.schema)}}buildSync(a){for(let b of(this.clear(),this.fs.listDirectoriesSync("."))){let c=this.fs.basename(b),d=(0,e.default)(c),f=a?.collections?.[d];this.indexCollectionSync(c,d,f?.schema)}}getCollection(a){return this.entries.get(a)??[]}getCollections(){return Array.from(this.collections.values())}clear(){this.entries.clear(),this.collections.clear()}updateEntry(a,b){let c=this.entries.get(a)??[],d=c.findIndex(a=>a.slug===b.slug);d>=0?c[d]=b:c.push(b),this.entries.set(a,c),this.updateCollectionMeta(a)}removeEntry(a,b){let c=this.entries.get(a);if(!c)return;let d=c.filter(a=>a.slug!==b);this.entries.set(a,d),this.updateCollectionMeta(a)}updateCollectionMeta(a){let b=this.collections.get(a),c=this.entries.get(a)??[];b&&this.collections.set(a,{...b,count:c.length,type:this.detectCollectionType(c)})}async indexCollection(a,b,c){let d=[];await this.scanDir(a,b,a,d);let e=this.fs.join(a,f.dm),g=await this.readOrdering(e);g&&this.applyOrdering(d,g);let h=c??(0,i._)(d,b);this.entries.set(b,d),this.collections.set(b,{name:b,type:this.detectCollectionType(d),count:d.length,basePath:a,schema:h})}indexCollectionSync(a,b,c){let d=[];this.scanDirSync(a,b,a,d);let e=this.fs.join(a,f.dm),g=this.readOrderingSync(e);g&&this.applyOrdering(d,g);let h=c??(0,i._)(d,b);this.entries.set(b,d),this.collections.set(b,{name:b,type:this.detectCollectionType(d),count:d.length,basePath:a,schema:h})}async scanDir(a,b,c,d){for(let e of(await this.fs.listDirectories(c)))await this.scanDir(a,b,e,d);for(let g of(await this.fs.listFiles(c))){let c=this.fs.basename(g);if(c===f.dm)continue;let h=this.fs.extname(c),i=await this.fs.readFile(g),j=this.fs.relative(a,g),k=this.fs.normalizeSlug(j,h).split("/").map(a=>(0,e.default)(a)).join("/");".mdx"===h?d.push(this.buildMdxEntry(b,k,c,i)):".json"===h&&d.push(...this.buildJsonEntries(b,k,i))}}scanDirSync(a,b,c,d){for(let e of this.fs.listDirectoriesSync(c))this.scanDirSync(a,b,e,d);for(let g of this.fs.listFilesSync(c)){let c=this.fs.basename(g);if(c===f.dm)continue;let h=this.fs.extname(c),i=this.fs.readFileSync(g),j=this.fs.relative(a,g),k=this.fs.normalizeSlug(j,h).split("/").map(a=>(0,e.default)(a)).join("/");".mdx"===h?d.push(this.buildMdxEntry(b,k,c,i)):".json"===h&&d.push(...this.buildJsonEntries(b,k,i))}}buildMdxEntry(a,b,c,d){let e=(0,g.z)(d),f=(0,j.b)(c),h=(0,j.C)(b,f);return{collection:a,slug:h,path:`/${a}/${h}`,body:e.body,data:e.data,...f?{locale:f}:{}}}buildJsonEntries(a,b,c){let d=(0,h.q)(c);return"json-array"===d.type?d.entries.map((c,d)=>{let f="string"==typeof c.slug?(0,e.default)(c.slug):`${b}/${d}`;return{collection:a,slug:f,path:`/${a}/${f}`,data:c}}):[{collection:a,slug:b,path:`/${a}/${b}`,data:d.data}]}async readOrdering(a){if(!await this.fs.exists(a))return null;try{let b=await this.fs.readFile(a),c=JSON.parse(b);if(Array.isArray(c))return c}catch(b){console.warn(`[Nextjs Studio] Failed to parse ordering file: ${a}`,b)}return null}readOrderingSync(a){if(!this.fs.existsSync(a))return null;try{let b=this.fs.readFileSync(a),c=JSON.parse(b);if(Array.isArray(c))return c}catch(b){console.warn(`[Nextjs Studio] Failed to parse ordering file: ${a}`,b)}return null}applyOrdering(a,b){let c=new Map(b.map((a,b)=>[a,b]));a.sort((a,b)=>{let d=c.get(a.slug)??1/0,e=c.get(b.slug)??1/0;return d-e})}detectCollectionType(a){if(0===a.length)return"mdx";let b=a[0];return void 0!==b.body?"mdx":1!==a.length||b.slug.includes("/")?"json-array":"json-object"}}d()}catch(a){d(a)}})},94722:(a,b,c)=>{"use strict";c.d(b,{D:()=>k});var d=c(51455),e=c.n(d),f=c(73024),g=c.n(f),h=c(76760),i=c.n(h),j=c(96496);class k{constructor(a){this.basePath=i().resolve(a)}resolve(...a){return i().resolve(this.basePath,...a)}async readFile(a){return e().readFile(this.resolve(a),"utf-8")}async writeFile(a,b){let c=this.resolve(a);await e().mkdir(i().dirname(c),{recursive:!0}),await e().writeFile(c,b,"utf-8")}async deleteFile(a){await e().unlink(this.resolve(a))}async exists(a){try{return await e().access(this.resolve(a)),!0}catch{return!1}}async getStats(a){let b=this.resolve(a),c=await e().stat(b);return{path:a,size:c.size,modifiedAt:c.mtime}}async listFiles(a,b){let c,d=this.resolve(a),f=b??j.uk;try{c=await e().readdir(d,{withFileTypes:!0})}catch{return[]}return c.filter(a=>a.isFile()&&f.some(b=>a.name.endsWith(b))).map(b=>this.join(a,b.name))}async listDirectories(a){let b,c=this.resolve(a);try{b=await e().readdir(c,{withFileTypes:!0})}catch{return[]}return b.filter(a=>a.isDirectory()).map(b=>this.join(a,b.name))}async readBuffer(a){return e().readFile(this.resolve(a))}async writeBuffer(a,b){let c=this.resolve(a);await e().mkdir(i().dirname(c),{recursive:!0}),await e().writeFile(c,b)}async listAllFiles(a){let b,c=this.resolve(a);try{b=await e().readdir(c,{withFileTypes:!0})}catch{return[]}let d=[];for(let c of b){if(!c.isFile())continue;let b=this.join(a,c.name),f=await e().stat(this.resolve(b));d.push({name:c.name,relativePath:b,size:f.size,modifiedAt:f.mtime})}return d}join(...a){return i().join(...a)}basename(a){return i().basename(a)}extname(a){return i().extname(a)}relative(a,b){return i().relative(a,b)}normalizeSlug(a,b){return a.replace(b,"").split(i().sep).join("/")}readFileSync(a){return g().readFileSync(this.resolve(a),"utf-8")}existsSync(a){return g().existsSync(this.resolve(a))}listFilesSync(a,b){let c,d=this.resolve(a),e=b??j.uk;try{c=g().readdirSync(d,{withFileTypes:!0})}catch{return[]}return c.filter(a=>a.isFile()&&e.some(b=>a.name.endsWith(b))).map(b=>this.join(a,b.name))}listDirectoriesSync(a){let b,c=this.resolve(a);try{b=g().readdirSync(c,{withFileTypes:!0})}catch{return[]}return b.filter(a=>a.isDirectory()).map(b=>this.join(a,b.name))}}},94775:(a,b,c)=>{"use strict";c.d(b,{ScrollArea:()=>d});let d=(0,c(34427).registerClientReference)(function(){throw Error("Attempted to call ScrollArea() from the server but ScrollArea is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"E:\\Work\\Personal\\Nextjs-Studio\\src\\cli\\ui\\components\\ui\\scroll-area.tsx","ScrollArea")},96026:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,66039,23))},96496:(a,b,c)=>{"use strict";c.d(b,{E$:()=>g,HW:()=>d,In:()=>k,Vf:()=>j,dT:()=>h,dm:()=>f,f9:()=>i,uk:()=>e});let d="contents",e=[".mdx",".json"],f="collection.json",g=5e3,h="media",i=[".png",".jpg",".jpeg",".gif",".webp",".svg",".avif"],j=[".mp4",".webm",".ogv"],k=[".mp3",".ogg",".wav",".m4a",".aac",".flac"]},97528:(a,b,c)=>{"use strict";c.d(b,{_:()=>m});let d=/^\d{4}-\d{2}-\d{2}$/,e=/^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(:\d{2}(\.\d+)?)?(Z|[+-]\d{2}:?\d{2})?$/,f=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,g=/^https?:\/\/.+/,h=["description","descriptions","text","content"];function i(a){return d.test(a)}function j(a){return e.test(a)}function k(a){return f.test(a)}function l(a){return g.test(a)}function m(a,b){return{collection:b,fields:function a(b){return Array.from(new Set(b.flatMap(a=>Object.keys(a)))).map(c=>(function(b,c){var d;let e=c.filter(a=>null!=a);return 0===e.length?{name:b,type:"text"}:e.every(a=>"boolean"==typeof a)?{name:b,type:"boolean"}:e.every(a=>"number"==typeof a)?{name:b,type:"number",format:e.every(a=>Number.isInteger(a))?"integer":"decimal"}:e.every(a=>"string"==typeof a)?e.every(k)?{name:b,type:"email"}:e.every(l)?{name:b,type:"url"}:e.every(j)?{name:b,type:"date",includeTime:!0}:e.every(i)?{name:b,type:"date"}:h.includes(b.toLowerCase())?{name:b,type:"long-text"}:{name:b,type:e.some(a=>a.length>200||a.includes("\n"))?"long-text":"text"}:e.every(a=>Array.isArray(a))?0===(d=e.flat()).length?{name:b,type:"array",itemFields:[]}:d.every(a=>"string"==typeof a)?{name:b,type:"multi-select",options:[...new Set(d)].slice(0,50).map(a=>({label:a,value:a}))}:d.every(a=>"object"==typeof a&&null!==a&&!Array.isArray(a))?{name:b,type:"array",itemFields:a(d)}:{name:b,type:"array",itemFields:[]}:e.every(a=>"object"==typeof a&&null!==a&&!Array.isArray(a))?{name:b,type:"object",fields:a(e)}:{name:b,type:"text"}})(c,b.map(a=>a[c])))}(a.map(a=>a.data))}}}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
exports.id=5341,exports.ids=[5341],exports.modules={6420:(a,b,c)=>{"use strict";c.d(b,{A:()=>i});var d=c(86328);let e=(...a)=>a.filter((a,b,c)=>!!a&&""!==a.trim()&&c.indexOf(a)===b).join(" ").trim(),f=a=>{let b=a.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,b,c)=>c?c.toUpperCase():b.toLowerCase());return b.charAt(0).toUpperCase()+b.slice(1)};var g={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let h=(0,d.forwardRef)(({color:a="currentColor",size:b=24,strokeWidth:c=2,absoluteStrokeWidth:f,className:h="",children:i,iconNode:j,...k},l)=>(0,d.createElement)("svg",{ref:l,...g,width:b,height:b,stroke:a,strokeWidth:f?24*Number(c)/Number(b):c,className:e("lucide",h),...!i&&!(a=>{for(let b in a)if(b.startsWith("aria-")||"role"===b||"title"===b)return!0;return!1})(k)&&{"aria-hidden":"true"},...k},[...j.map(([a,b])=>(0,d.createElement)(a,b)),...Array.isArray(i)?i:[i]])),i=(a,b)=>{let c=(0,d.forwardRef)(({className:c,...g},i)=>(0,d.createElement)(h,{ref:i,iconNode:b,className:e(`lucide-${f(a).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${a}`,c),...g}));return c.displayName=f(a),c}},13750:(a,b,c)=>{"use strict";function d(){for(var a,b,c=0,d="",e=arguments.length;c<e;c++)(a=arguments[c])&&(b=function a(b){var c,d,e="";if("string"==typeof b||"number"==typeof b)e+=b;else if("object"==typeof b)if(Array.isArray(b)){var f=b.length;for(c=0;c<f;c++)b[c]&&(d=a(b[c]))&&(e&&(e+=" "),e+=d)}else for(d in b)b[d]&&(e&&(e+=" "),e+=d);return e}(a))&&(d&&(d+=" "),d+=b);return d}c.d(b,{$:()=>d})},30685:a=>{a.exports={style:{fontFamily:"'Poppins', 'Poppins Fallback'",fontStyle:"normal"},className:"__className_51684b",variable:"__variable_51684b"}},31370:(a,b,c)=>{"use strict";c.d(b,{QP:()=>am});let d=(a=new Map,b=null,c)=>({nextPart:a,validators:b,classGroupId:c}),e=[],f=(a,b,c)=>{if(0==a.length-b)return c.classGroupId;let d=a[b],e=c.nextPart.get(d);if(e){let c=f(a,b+1,e);if(c)return c}let g=c.validators;if(null===g)return;let h=0===b?a.join("-"):a.slice(b).join("-"),i=g.length;for(let a=0;a<i;a++){let b=g[a];if(b.validator(h))return b.classGroupId}},g=(a,b)=>{let c=d();for(let d in a)h(a[d],c,d,b);return c},h=(a,b,c,d)=>{let e=a.length;for(let f=0;f<e;f++)i(a[f],b,c,d)},i=(a,b,c,d)=>{"string"==typeof a?j(a,b,c):"function"==typeof a?k(a,b,c,d):l(a,b,c,d)},j=(a,b,c)=>{(""===a?b:m(b,a)).classGroupId=c},k=(a,b,c,d)=>{n(a)?h(a(d),b,c,d):(null===b.validators&&(b.validators=[]),b.validators.push({classGroupId:c,validator:a}))},l=(a,b,c,d)=>{let e=Object.entries(a),f=e.length;for(let a=0;a<f;a++){let[f,g]=e[a];h(g,m(b,f),c,d)}},m=(a,b)=>{let c=a,e=b.split("-"),f=e.length;for(let a=0;a<f;a++){let b=e[a],f=c.nextPart.get(b);f||(f=d(),c.nextPart.set(b,f)),c=f}return c},n=a=>"isThemeGetter"in a&&!0===a.isThemeGetter,o=[],p=(a,b,c,d,e)=>({modifiers:a,hasImportantModifier:b,baseClassName:c,maybePostfixModifierPosition:d,isExternal:e}),q=/\s+/,r=a=>{let b;if("string"==typeof a)return a;let c="";for(let d=0;d<a.length;d++)a[d]&&(b=r(a[d]))&&(c&&(c+=" "),c+=b);return c},s=[],t=a=>{let b=b=>b[a]||s;return b.isThemeGetter=!0,b},u=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,v=/^\((?:(\w[\w-]*):)?(.+)\)$/i,w=/^\d+\/\d+$/,x=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,y=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,z=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,A=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,B=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,C=a=>w.test(a),D=a=>!!a&&!Number.isNaN(Number(a)),E=a=>!!a&&Number.isInteger(Number(a)),F=a=>a.endsWith("%")&&D(a.slice(0,-1)),G=a=>x.test(a),H=()=>!0,I=a=>y.test(a)&&!z.test(a),J=()=>!1,K=a=>A.test(a),L=a=>B.test(a),M=a=>!O(a)&&!W(a),N=a=>ac(a,ag,J),O=a=>u.test(a),P=a=>ac(a,ah,I),Q=a=>ac(a,ai,D),R=a=>ac(a,ak,H),S=a=>ac(a,aj,J),T=a=>ac(a,ae,J),U=a=>ac(a,af,L),V=a=>ac(a,al,K),W=a=>v.test(a),X=a=>ad(a,ah),Y=a=>ad(a,aj),Z=a=>ad(a,ae),$=a=>ad(a,ag),_=a=>ad(a,af),aa=a=>ad(a,al,!0),ab=a=>ad(a,ak,!0),ac=(a,b,c)=>{let d=u.exec(a);return!!d&&(d[1]?b(d[1]):c(d[2]))},ad=(a,b,c=!1)=>{let d=v.exec(a);return!!d&&(d[1]?b(d[1]):c)},ae=a=>"position"===a||"percentage"===a,af=a=>"image"===a||"url"===a,ag=a=>"length"===a||"size"===a||"bg-size"===a,ah=a=>"length"===a,ai=a=>"number"===a,aj=a=>"family-name"===a,ak=a=>"number"===a||"weight"===a,al=a=>"shadow"===a,am=((a,...b)=>{let c,d,h,i,j=a=>{let b=d(a);if(b)return b;let e=((a,b)=>{let{parseClassName:c,getClassGroupId:d,getConflictingClassGroupIds:e,sortModifiers:f}=b,g=[],h=a.trim().split(q),i="";for(let a=h.length-1;a>=0;a-=1){let b=h[a],{isExternal:j,modifiers:k,hasImportantModifier:l,baseClassName:m,maybePostfixModifierPosition:n}=c(b);if(j){i=b+(i.length>0?" "+i:i);continue}let o=!!n,p=d(o?m.substring(0,n):m);if(!p){if(!o||!(p=d(m))){i=b+(i.length>0?" "+i:i);continue}o=!1}let q=0===k.length?"":1===k.length?k[0]:f(k).join(":"),r=l?q+"!":q,s=r+p;if(g.indexOf(s)>-1)continue;g.push(s);let t=e(p,o);for(let a=0;a<t.length;++a){let b=t[a];g.push(r+b)}i=b+(i.length>0?" "+i:i)}return i})(a,c);return h(a,e),e};return i=k=>{var l;let m;return d=(c={cache:(a=>{if(a<1)return{get:()=>void 0,set:()=>{}};let b=0,c=Object.create(null),d=Object.create(null),e=(e,f)=>{c[e]=f,++b>a&&(b=0,d=c,c=Object.create(null))};return{get(a){let b=c[a];return void 0!==b?b:void 0!==(b=d[a])?(e(a,b),b):void 0},set(a,b){a in c?c[a]=b:e(a,b)}}})((l=b.reduce((a,b)=>b(a),a())).cacheSize),parseClassName:(a=>{let{prefix:b,experimentalParseClassName:c}=a,d=a=>{let b,c=[],d=0,e=0,f=0,g=a.length;for(let h=0;h<g;h++){let g=a[h];if(0===d&&0===e){if(":"===g){c.push(a.slice(f,h)),f=h+1;continue}if("/"===g){b=h;continue}}"["===g?d++:"]"===g?d--:"("===g?e++:")"===g&&e--}let h=0===c.length?a:a.slice(f),i=h,j=!1;return h.endsWith("!")?(i=h.slice(0,-1),j=!0):h.startsWith("!")&&(i=h.slice(1),j=!0),p(c,j,i,b&&b>f?b-f:void 0)};if(b){let a=b+":",c=d;d=b=>b.startsWith(a)?c(b.slice(a.length)):p(o,!1,b,void 0,!0)}if(c){let a=d;d=b=>c({className:b,parseClassName:a})}return d})(l),sortModifiers:(m=new Map,l.orderSensitiveModifiers.forEach((a,b)=>{m.set(a,1e6+b)}),a=>{let b=[],c=[];for(let d=0;d<a.length;d++){let e=a[d],f="["===e[0],g=m.has(e);f||g?(c.length>0&&(c.sort(),b.push(...c),c=[]),b.push(e)):c.push(e)}return c.length>0&&(c.sort(),b.push(...c)),b}),...(a=>{let b=(a=>{let{theme:b,classGroups:c}=a;return g(c,b)})(a),{conflictingClassGroups:c,conflictingClassGroupModifiers:d}=a;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]")){var c;let b,d,e;return -1===(c=a).slice(1,-1).indexOf(":")?void 0:(d=(b=c.slice(1,-1)).indexOf(":"),(e=b.slice(0,d))?"arbitrary.."+e:void 0)}let d=a.split("-"),e=+(""===d[0]&&d.length>1);return f(d,e,b)},getConflictingClassGroupIds:(a,b)=>{if(b){let b=d[a],f=c[a];if(b){if(f){let a=Array(f.length+b.length);for(let b=0;b<f.length;b++)a[b]=f[b];for(let c=0;c<b.length;c++)a[f.length+c]=b[c];return a}return b}return f||e}return c[a]||e}}})(l)}).cache.get,h=c.cache.set,i=j,j(k)},(...a)=>i(((...a)=>{let b,c,d=0,e="";for(;d<a.length;)(b=a[d++])&&(c=r(b))&&(e&&(e+=" "),e+=c);return e})(...a))})(()=>{let a=t("color"),b=t("font"),c=t("text"),d=t("font-weight"),e=t("tracking"),f=t("leading"),g=t("breakpoint"),h=t("container"),i=t("spacing"),j=t("radius"),k=t("shadow"),l=t("inset-shadow"),m=t("text-shadow"),n=t("drop-shadow"),o=t("blur"),p=t("perspective"),q=t("aspect"),r=t("ease"),s=t("animate"),u=()=>["auto","avoid","all","avoid-page","page","left","right","column"],v=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...v(),W,O],x=()=>["auto","hidden","clip","visible","scroll"],y=()=>["auto","contain","none"],z=()=>[W,O,i],A=()=>[C,"full","auto",...z()],B=()=>[E,"none","subgrid",W,O],I=()=>["auto",{span:["full",E,W,O]},E,W,O],J=()=>[E,"auto",W,O],K=()=>["auto","min","max","fr",W,O],L=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ac=()=>["start","end","center","stretch","center-safe","end-safe"],ad=()=>["auto",...z()],ae=()=>[C,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...z()],af=()=>[a,W,O],ag=()=>[...v(),Z,T,{position:[W,O]}],ah=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ai=()=>["auto","cover","contain",$,N,{size:[W,O]}],aj=()=>[F,X,P],ak=()=>["","none","full",j,W,O],al=()=>["",D,X,P],am=()=>["solid","dashed","dotted","double"],an=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ao=()=>[D,F,Z,T],ap=()=>["","none",o,W,O],aq=()=>["none",D,W,O],ar=()=>["none",D,W,O],as=()=>[D,W,O],at=()=>[C,"full",...z()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[G],breakpoint:[G],color:[H],container:[G],"drop-shadow":[G],ease:["in","out","in-out"],font:[M],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[G],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[G],shadow:[G],spacing:["px",D],text:[G],"text-shadow":[G],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",C,O,W,q]}],container:["container"],columns:[{columns:[D,O,W,h]}],"break-after":[{"break-after":u()}],"break-before":[{"break-before":u()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:w()}],overflow:[{overflow:x()}],"overflow-x":[{"overflow-x":x()}],"overflow-y":[{"overflow-y":x()}],overscroll:[{overscroll:y()}],"overscroll-x":[{"overscroll-x":y()}],"overscroll-y":[{"overscroll-y":y()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:A()}],"inset-x":[{"inset-x":A()}],"inset-y":[{"inset-y":A()}],start:[{start:A()}],end:[{end:A()}],top:[{top:A()}],right:[{right:A()}],bottom:[{bottom:A()}],left:[{left:A()}],visibility:["visible","invisible","collapse"],z:[{z:[E,"auto",W,O]}],basis:[{basis:[C,"full","auto",h,...z()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[D,C,"auto","initial","none",O]}],grow:[{grow:["",D,W,O]}],shrink:[{shrink:["",D,W,O]}],order:[{order:[E,"first","last","none",W,O]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:I()}],"col-start":[{"col-start":J()}],"col-end":[{"col-end":J()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:I()}],"row-start":[{"row-start":J()}],"row-end":[{"row-end":J()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":K()}],"auto-rows":[{"auto-rows":K()}],gap:[{gap:z()}],"gap-x":[{"gap-x":z()}],"gap-y":[{"gap-y":z()}],"justify-content":[{justify:[...L(),"normal"]}],"justify-items":[{"justify-items":[...ac(),"normal"]}],"justify-self":[{"justify-self":["auto",...ac()]}],"align-content":[{content:["normal",...L()]}],"align-items":[{items:[...ac(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ac(),{baseline:["","last"]}]}],"place-content":[{"place-content":L()}],"place-items":[{"place-items":[...ac(),"baseline"]}],"place-self":[{"place-self":["auto",...ac()]}],p:[{p:z()}],px:[{px:z()}],py:[{py:z()}],ps:[{ps:z()}],pe:[{pe:z()}],pt:[{pt:z()}],pr:[{pr:z()}],pb:[{pb:z()}],pl:[{pl:z()}],m:[{m:ad()}],mx:[{mx:ad()}],my:[{my:ad()}],ms:[{ms:ad()}],me:[{me:ad()}],mt:[{mt:ad()}],mr:[{mr:ad()}],mb:[{mb:ad()}],ml:[{ml:ad()}],"space-x":[{"space-x":z()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":z()}],"space-y-reverse":["space-y-reverse"],size:[{size:ae()}],w:[{w:[h,"screen",...ae()]}],"min-w":[{"min-w":[h,"screen","none",...ae()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[g]},...ae()]}],h:[{h:["screen","lh",...ae()]}],"min-h":[{"min-h":["screen","lh","none",...ae()]}],"max-h":[{"max-h":["screen","lh",...ae()]}],"font-size":[{text:["base",c,X,P]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[d,ab,R]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",F,O]}],"font-family":[{font:[Y,S,b]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[e,W,O]}],"line-clamp":[{"line-clamp":[D,"none",W,Q]}],leading:[{leading:[f,...z()]}],"list-image":[{"list-image":["none",W,O]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",W,O]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:af()}],"text-color":[{text:af()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...am(),"wavy"]}],"text-decoration-thickness":[{decoration:[D,"from-font","auto",W,P]}],"text-decoration-color":[{decoration:af()}],"underline-offset":[{"underline-offset":[D,"auto",W,O]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",W,O]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",W,O]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ag()}],"bg-repeat":[{bg:ah()}],"bg-size":[{bg:ai()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},E,W,O],radial:["",W,O],conic:[E,W,O]},_,U]}],"bg-color":[{bg:af()}],"gradient-from-pos":[{from:aj()}],"gradient-via-pos":[{via:aj()}],"gradient-to-pos":[{to:aj()}],"gradient-from":[{from:af()}],"gradient-via":[{via:af()}],"gradient-to":[{to:af()}],rounded:[{rounded:ak()}],"rounded-s":[{"rounded-s":ak()}],"rounded-e":[{"rounded-e":ak()}],"rounded-t":[{"rounded-t":ak()}],"rounded-r":[{"rounded-r":ak()}],"rounded-b":[{"rounded-b":ak()}],"rounded-l":[{"rounded-l":ak()}],"rounded-ss":[{"rounded-ss":ak()}],"rounded-se":[{"rounded-se":ak()}],"rounded-ee":[{"rounded-ee":ak()}],"rounded-es":[{"rounded-es":ak()}],"rounded-tl":[{"rounded-tl":ak()}],"rounded-tr":[{"rounded-tr":ak()}],"rounded-br":[{"rounded-br":ak()}],"rounded-bl":[{"rounded-bl":ak()}],"border-w":[{border:al()}],"border-w-x":[{"border-x":al()}],"border-w-y":[{"border-y":al()}],"border-w-s":[{"border-s":al()}],"border-w-e":[{"border-e":al()}],"border-w-t":[{"border-t":al()}],"border-w-r":[{"border-r":al()}],"border-w-b":[{"border-b":al()}],"border-w-l":[{"border-l":al()}],"divide-x":[{"divide-x":al()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":al()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...am(),"hidden","none"]}],"divide-style":[{divide:[...am(),"hidden","none"]}],"border-color":[{border:af()}],"border-color-x":[{"border-x":af()}],"border-color-y":[{"border-y":af()}],"border-color-s":[{"border-s":af()}],"border-color-e":[{"border-e":af()}],"border-color-t":[{"border-t":af()}],"border-color-r":[{"border-r":af()}],"border-color-b":[{"border-b":af()}],"border-color-l":[{"border-l":af()}],"divide-color":[{divide:af()}],"outline-style":[{outline:[...am(),"none","hidden"]}],"outline-offset":[{"outline-offset":[D,W,O]}],"outline-w":[{outline:["",D,X,P]}],"outline-color":[{outline:af()}],shadow:[{shadow:["","none",k,aa,V]}],"shadow-color":[{shadow:af()}],"inset-shadow":[{"inset-shadow":["none",l,aa,V]}],"inset-shadow-color":[{"inset-shadow":af()}],"ring-w":[{ring:al()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:af()}],"ring-offset-w":[{"ring-offset":[D,P]}],"ring-offset-color":[{"ring-offset":af()}],"inset-ring-w":[{"inset-ring":al()}],"inset-ring-color":[{"inset-ring":af()}],"text-shadow":[{"text-shadow":["none",m,aa,V]}],"text-shadow-color":[{"text-shadow":af()}],opacity:[{opacity:[D,W,O]}],"mix-blend":[{"mix-blend":[...an(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":an()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[D]}],"mask-image-linear-from-pos":[{"mask-linear-from":ao()}],"mask-image-linear-to-pos":[{"mask-linear-to":ao()}],"mask-image-linear-from-color":[{"mask-linear-from":af()}],"mask-image-linear-to-color":[{"mask-linear-to":af()}],"mask-image-t-from-pos":[{"mask-t-from":ao()}],"mask-image-t-to-pos":[{"mask-t-to":ao()}],"mask-image-t-from-color":[{"mask-t-from":af()}],"mask-image-t-to-color":[{"mask-t-to":af()}],"mask-image-r-from-pos":[{"mask-r-from":ao()}],"mask-image-r-to-pos":[{"mask-r-to":ao()}],"mask-image-r-from-color":[{"mask-r-from":af()}],"mask-image-r-to-color":[{"mask-r-to":af()}],"mask-image-b-from-pos":[{"mask-b-from":ao()}],"mask-image-b-to-pos":[{"mask-b-to":ao()}],"mask-image-b-from-color":[{"mask-b-from":af()}],"mask-image-b-to-color":[{"mask-b-to":af()}],"mask-image-l-from-pos":[{"mask-l-from":ao()}],"mask-image-l-to-pos":[{"mask-l-to":ao()}],"mask-image-l-from-color":[{"mask-l-from":af()}],"mask-image-l-to-color":[{"mask-l-to":af()}],"mask-image-x-from-pos":[{"mask-x-from":ao()}],"mask-image-x-to-pos":[{"mask-x-to":ao()}],"mask-image-x-from-color":[{"mask-x-from":af()}],"mask-image-x-to-color":[{"mask-x-to":af()}],"mask-image-y-from-pos":[{"mask-y-from":ao()}],"mask-image-y-to-pos":[{"mask-y-to":ao()}],"mask-image-y-from-color":[{"mask-y-from":af()}],"mask-image-y-to-color":[{"mask-y-to":af()}],"mask-image-radial":[{"mask-radial":[W,O]}],"mask-image-radial-from-pos":[{"mask-radial-from":ao()}],"mask-image-radial-to-pos":[{"mask-radial-to":ao()}],"mask-image-radial-from-color":[{"mask-radial-from":af()}],"mask-image-radial-to-color":[{"mask-radial-to":af()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":v()}],"mask-image-conic-pos":[{"mask-conic":[D]}],"mask-image-conic-from-pos":[{"mask-conic-from":ao()}],"mask-image-conic-to-pos":[{"mask-conic-to":ao()}],"mask-image-conic-from-color":[{"mask-conic-from":af()}],"mask-image-conic-to-color":[{"mask-conic-to":af()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ag()}],"mask-repeat":[{mask:ah()}],"mask-size":[{mask:ai()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",W,O]}],filter:[{filter:["","none",W,O]}],blur:[{blur:ap()}],brightness:[{brightness:[D,W,O]}],contrast:[{contrast:[D,W,O]}],"drop-shadow":[{"drop-shadow":["","none",n,aa,V]}],"drop-shadow-color":[{"drop-shadow":af()}],grayscale:[{grayscale:["",D,W,O]}],"hue-rotate":[{"hue-rotate":[D,W,O]}],invert:[{invert:["",D,W,O]}],saturate:[{saturate:[D,W,O]}],sepia:[{sepia:["",D,W,O]}],"backdrop-filter":[{"backdrop-filter":["","none",W,O]}],"backdrop-blur":[{"backdrop-blur":ap()}],"backdrop-brightness":[{"backdrop-brightness":[D,W,O]}],"backdrop-contrast":[{"backdrop-contrast":[D,W,O]}],"backdrop-grayscale":[{"backdrop-grayscale":["",D,W,O]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[D,W,O]}],"backdrop-invert":[{"backdrop-invert":["",D,W,O]}],"backdrop-opacity":[{"backdrop-opacity":[D,W,O]}],"backdrop-saturate":[{"backdrop-saturate":[D,W,O]}],"backdrop-sepia":[{"backdrop-sepia":["",D,W,O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":z()}],"border-spacing-x":[{"border-spacing-x":z()}],"border-spacing-y":[{"border-spacing-y":z()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",W,O]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[D,"initial",W,O]}],ease:[{ease:["linear","initial",r,W,O]}],delay:[{delay:[D,W,O]}],animate:[{animate:["none",s,W,O]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[p,W,O]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:aq()}],"rotate-x":[{"rotate-x":aq()}],"rotate-y":[{"rotate-y":aq()}],"rotate-z":[{"rotate-z":aq()}],scale:[{scale:ar()}],"scale-x":[{"scale-x":ar()}],"scale-y":[{"scale-y":ar()}],"scale-z":[{"scale-z":ar()}],"scale-3d":["scale-3d"],skew:[{skew:as()}],"skew-x":[{"skew-x":as()}],"skew-y":[{"skew-y":as()}],transform:[{transform:[W,O,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:at()}],"translate-x":[{"translate-x":at()}],"translate-y":[{"translate-y":at()}],"translate-z":[{"translate-z":at()}],"translate-none":["translate-none"],accent:[{accent:af()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:af()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",W,O]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",W,O]}],fill:[{fill:["none",...af()]}],"stroke-w":[{stroke:[D,X,P,Q]}],stroke:[{stroke:["none",...af()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}})},66270:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(6420).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},86327:(a,b,c)=>{"use strict";var d=c(73267);c.o(d,"useRouter")&&c.d(b,{useRouter:function(){return d.useRouter}})},91092:(a,b,c)=>{"use strict";c.d(b,{D:()=>j,N:()=>k});var d=c(86328),e=(a,b,c,d,e,f,g,h)=>{let i=document.documentElement,j=["light","dark"];function k(b){var c;(Array.isArray(a)?a:[a]).forEach(a=>{let c="class"===a,d=c&&f?e.map(a=>f[a]||a):e;c?(i.classList.remove(...d),i.classList.add(f&&f[b]?f[b]:b)):i.setAttribute(a,b)}),c=b,h&&j.includes(c)&&(i.style.colorScheme=c)}if(d)k(d);else try{let a=localStorage.getItem(b)||c,d=g&&"system"===a?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":a;k(d)}catch(a){}},f=["light","dark"],g="(prefers-color-scheme: dark)",h=d.createContext(void 0),i={setTheme:a=>{},themes:[]},j=()=>{var a;return null!=(a=d.useContext(h))?a:i},k=a=>d.useContext(h)?d.createElement(d.Fragment,null,a.children):d.createElement(m,{...a}),l=["light","dark"],m=({forcedTheme:a,disableTransitionOnChange:b=!1,enableSystem:c=!0,enableColorScheme:e=!0,storageKey:i="theme",themes:j=l,defaultTheme:k=c?"system":"light",attribute:m="data-theme",value:r,children:s,nonce:t,scriptProps:u})=>{let[v,w]=d.useState(()=>o(i,k)),[x,y]=d.useState(()=>"system"===v?q():v),z=r?Object.values(r):j,A=d.useCallback(a=>{let d=a;if(!d)return;"system"===a&&c&&(d=q());let g=r?r[d]:d,h=b?p(t):null,i=document.documentElement,j=a=>{"class"===a?(i.classList.remove(...z),g&&i.classList.add(g)):a.startsWith("data-")&&(g?i.setAttribute(a,g):i.removeAttribute(a))};if(Array.isArray(m)?m.forEach(j):j(m),e){let a=f.includes(k)?k:null,b=f.includes(d)?d:a;i.style.colorScheme=b}null==h||h()},[t]),B=d.useCallback(a=>{let b="function"==typeof a?a(v):a;w(b);try{localStorage.setItem(i,b)}catch(a){}},[v]),C=d.useCallback(b=>{y(q(b)),"system"===v&&c&&!a&&A("system")},[v,a]);d.useEffect(()=>{let a=window.matchMedia(g);return a.addListener(C),C(a),()=>a.removeListener(C)},[C]),d.useEffect(()=>{let a=a=>{a.key===i&&(a.newValue?w(a.newValue):B(k))};return window.addEventListener("storage",a),()=>window.removeEventListener("storage",a)},[B]),d.useEffect(()=>{A(null!=a?a:v)},[a,v]);let D=d.useMemo(()=>({theme:v,setTheme:B,forcedTheme:a,resolvedTheme:"system"===v?x:v,themes:c?[...j,"system"]:j,systemTheme:c?x:void 0}),[v,B,a,x,c,j]);return d.createElement(h.Provider,{value:D},d.createElement(n,{forcedTheme:a,storageKey:i,attribute:m,enableSystem:c,enableColorScheme:e,defaultTheme:k,value:r,themes:j,nonce:t,scriptProps:u}),s)},n=d.memo(({forcedTheme:a,storageKey:b,attribute:c,enableSystem:f,enableColorScheme:g,defaultTheme:h,value:i,themes:j,nonce:k,scriptProps:l})=>{let m=JSON.stringify([c,b,h,a,j,i,f,g]).slice(1,-1);return d.createElement("script",{...l,suppressHydrationWarning:!0,nonce:k,dangerouslySetInnerHTML:{__html:`(${e.toString()})(${m})`}})}),o=(a,b)=>{},p=a=>{let b=document.createElement("style");return a&&b.setAttribute("nonce",a),b.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(b),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(b)},1)}},q=a=>(a||(a=window.matchMedia(g)),a.matches?"dark":"light")},95063:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"default",{enumerable:!0,get:function(){return f}});let d=c(83163),e=c(53199);function f(){return(0,d.jsx)(e.HTTPAccessErrorFallback,{status:404,message:"This page could not be found."})}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)}};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
exports.id=5585,exports.ids=[5585],exports.modules={85373:(a,b,c)=>{"use strict";function d(a,b){a.accDescr&&b.setAccDescription?.(a.accDescr),a.accTitle&&b.setAccTitle?.(a.accTitle),a.title&&b.setDiagramTitle?.(a.title)}c.d(b,{S:()=>d}),(0,c(19195).K2)(d,"populateCommonDb")},86012:a=>{function b(a){var b=Error("Cannot find module '"+a+"'");throw b.code="MODULE_NOT_FOUND",b}b.keys=()=>[],b.resolve=b,b.id=86012,a.exports=b},91502:(a,b,c)=>{"use strict";c.d(b,{diagram:()=>A});var d=c(13504),e=c(85373),f=c(66860),g=c(99103),h=c(19195),i=c(50449),j=c(44824),k=g.UI.pie,l={sections:new Map,showData:!1,config:k},m=l.sections,n=l.showData,o=structuredClone(k),p=(0,h.K2)(()=>structuredClone(o),"getConfig"),q=(0,h.K2)(()=>{m=new Map,n=l.showData,(0,g.IU)()},"clear"),r=(0,h.K2)(({label:a,value:b})=>{if(b<0)throw Error(`"${a}" has invalid value: ${b}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);m.has(a)||(m.set(a,b),h.Rm.debug(`added new section: ${a}, with value: ${b}`))},"addSection"),s=(0,h.K2)(()=>m,"getSections"),t=(0,h.K2)(a=>{n=a},"setShowData"),u=(0,h.K2)(()=>n,"getShowData"),v={getConfig:p,clear:q,setDiagramTitle:g.ke,getDiagramTitle:g.ab,setAccTitle:g.SV,getAccTitle:g.iN,setAccDescription:g.EI,getAccDescription:g.m7,addSection:r,getSections:s,setShowData:t,getShowData:u},w=(0,h.K2)((a,b)=>{(0,e.S)(a,b),b.setShowData(a.showData),a.sections.map(b.addSection)},"populateDb"),x={parse:(0,h.K2)(async a=>{let b=await (0,i.qg)("pie",a);h.Rm.debug(b),w(b,v)},"parse")},y=(0,h.K2)(a=>`
|
|
2
|
+
.pieCircle{
|
|
3
|
+
stroke: ${a.pieStrokeColor};
|
|
4
|
+
stroke-width : ${a.pieStrokeWidth};
|
|
5
|
+
opacity : ${a.pieOpacity};
|
|
6
|
+
}
|
|
7
|
+
.pieOuterCircle{
|
|
8
|
+
stroke: ${a.pieOuterStrokeColor};
|
|
9
|
+
stroke-width: ${a.pieOuterStrokeWidth};
|
|
10
|
+
fill: none;
|
|
11
|
+
}
|
|
12
|
+
.pieTitleText {
|
|
13
|
+
text-anchor: middle;
|
|
14
|
+
font-size: ${a.pieTitleTextSize};
|
|
15
|
+
fill: ${a.pieTitleTextColor};
|
|
16
|
+
font-family: ${a.fontFamily};
|
|
17
|
+
}
|
|
18
|
+
.slice {
|
|
19
|
+
font-family: ${a.fontFamily};
|
|
20
|
+
fill: ${a.pieSectionTextColor};
|
|
21
|
+
font-size:${a.pieSectionTextSize};
|
|
22
|
+
// fill: white;
|
|
23
|
+
}
|
|
24
|
+
.legend text {
|
|
25
|
+
fill: ${a.pieLegendTextColor};
|
|
26
|
+
font-family: ${a.fontFamily};
|
|
27
|
+
font-size: ${a.pieLegendTextSize};
|
|
28
|
+
}
|
|
29
|
+
`,"getStyles"),z=(0,h.K2)(a=>{let b=[...a.values()].reduce((a,b)=>a+b,0),c=[...a.entries()].map(([a,b])=>({label:a,value:b})).filter(a=>a.value/b*100>=1).sort((a,b)=>b.value-a.value);return(0,j.rLf)().value(a=>a.value)(c)},"createPieArcs"),A={parser:x,db:v,renderer:{draw:(0,h.K2)((a,b,c,e)=>{h.Rm.debug("rendering pie chart\n"+a);let i=e.db,k=(0,g.D7)(),l=(0,f.$t)(i.getConfig(),k.pie),m=(0,d.D)(b),n=m.append("g");n.attr("transform","translate(225,225)");let{themeVariables:o}=k,[p]=(0,f.I5)(o.pieOuterStrokeWidth);p??=2;let q=l.textPosition,r=(0,j.JLW)().innerRadius(0).outerRadius(185),s=(0,j.JLW)().innerRadius(185*q).outerRadius(185*q);n.append("circle").attr("cx",0).attr("cy",0).attr("r",185+p/2).attr("class","pieOuterCircle");let t=i.getSections(),u=z(t),v=[o.pie1,o.pie2,o.pie3,o.pie4,o.pie5,o.pie6,o.pie7,o.pie8,o.pie9,o.pie10,o.pie11,o.pie12],w=0;t.forEach(a=>{w+=a});let x=u.filter(a=>"0"!==(a.data.value/w*100).toFixed(0)),y=(0,j.UMr)(v);n.selectAll("mySlices").data(x).enter().append("path").attr("d",r).attr("fill",a=>y(a.data.label)).attr("class","pieCircle"),n.selectAll("mySlices").data(x).enter().append("text").text(a=>(a.data.value/w*100).toFixed(0)+"%").attr("transform",a=>"translate("+s.centroid(a)+")").style("text-anchor","middle").attr("class","slice"),n.append("text").text(i.getDiagramTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");let A=[...t.entries()].map(([a,b])=>({label:a,value:b})),B=n.selectAll(".legend").data(A).enter().append("g").attr("class","legend").attr("transform",(a,b)=>"translate(216,"+(22*b-22*A.length/2)+")");B.append("rect").attr("width",18).attr("height",18).style("fill",a=>y(a.label)).style("stroke",a=>y(a.label)),B.append("text").attr("x",22).attr("y",14).text(a=>i.getShowData()?`${a.label} [${a.value}]`:a.label);let C=512+Math.max(...B.selectAll("text").nodes().map(a=>a?.getBoundingClientRect().width??0));m.attr("viewBox",`0 0 ${C} 450`),(0,g.a$)(m,450,C,l.useMaxWidth)},"draw")},styles:y}}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.id=5677,exports.ids=[5677],exports.modules={85677:(a,b,c)=>{c.d(b,{createPieServices:()=>d.f});var d=c(64406);c(9405)}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.id=5724,exports.ids=[5724],exports.modules={75724:(a,b,c)=>{c.d(b,{diagram:()=>f});var d=c(18194);c(33983),c(74122),c(27771),c(41462),c(82432),c(95716),c(60667),c(25793),c(51862),c(66860),c(99103);var e=c(19195),f={parser:d.Zk,get db(){return new d.u4(2)},renderer:d.q7,styles:d.tM,init:(0,e.K2)(a=>{a.state||(a.state={}),a.state.arrowMarkerAbsolute=a.arrowMarkerAbsolute},"init")}}};
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
"use strict";exports.id=5760,exports.ids=[5760],exports.modules={33983:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(19195),e=c(44824),f=(0,d.K2)((a,b)=>{let c;return"sandbox"===b&&(c=(0,e.Ltv)("#i"+a)),("sandbox"===b?(0,e.Ltv)(c.nodes()[0].contentDocument.body):(0,e.Ltv)("body")).select(`[id="${a}"]`)},"getDiagramElement")},74122:(a,b,c)=>{c.d(b,{P:()=>f});var d=c(99103),e=c(19195),f=(0,e.K2)((a,b,c,f)=>{a.attr("class",c);let{width:i,height:j,x:k,y:l}=g(a,b);(0,d.a$)(a,j,i,f);let m=h(k,l,i,j,b);a.attr("viewBox",m),e.Rm.debug(`viewBox configured: ${m} with padding: ${b}`)},"setupViewPortForSVG"),g=(0,e.K2)((a,b)=>{let c=a.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:c.width+2*b,height:c.height+2*b,x:c.x,y:c.y}},"calculateDimensionsWithPadding"),h=(0,e.K2)((a,b,c,d,e)=>`${a-e} ${b-e} ${c} ${d}`,"createViewBox")},82959:(a,b,c)=>{c.d(b,{o:()=>d});var d=(0,c(19195).K2)(()=>`
|
|
2
|
+
/* Font Awesome icon styling - consolidated */
|
|
3
|
+
.label-icon {
|
|
4
|
+
display: inline-block;
|
|
5
|
+
height: 1em;
|
|
6
|
+
overflow: visible;
|
|
7
|
+
vertical-align: -0.125em;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.node .label-icon path {
|
|
11
|
+
fill: currentColor;
|
|
12
|
+
stroke: revert;
|
|
13
|
+
stroke-width: revert;
|
|
14
|
+
}
|
|
15
|
+
`,"getIconStyles")},95760:(a,b,c)=>{c.d(b,{Lh:()=>v,NM:()=>s,_$:()=>m,tM:()=>t});var d=c(82959),e=c(33983),f=c(74122),g=c(27771),h=c(66860),i=c(99103),j=c(19195),k=c(44824),l=function(){var a=(0,j.K2)(function(a,b,c,d){for(c=c||{},d=a.length;d--;c[a[d]]=b);return c},"o"),b=[1,18],c=[1,19],d=[1,20],e=[1,41],f=[1,42],g=[1,26],h=[1,24],i=[1,25],k=[1,32],l=[1,33],m=[1,34],n=[1,45],o=[1,35],p=[1,36],q=[1,37],r=[1,38],s=[1,27],t=[1,28],u=[1,29],v=[1,30],w=[1,31],x=[1,44],y=[1,46],z=[1,43],A=[1,47],B=[1,9],C=[1,8,9],D=[1,58],E=[1,59],F=[1,60],G=[1,61],H=[1,62],I=[1,63],J=[1,64],K=[1,8,9,41],L=[1,76],M=[1,8,9,12,13,22,39,41,44,68,69,70,71,72,73,74,79,81],N=[1,8,9,12,13,18,20,22,39,41,44,50,60,68,69,70,71,72,73,74,79,81,86,100,102,103],O=[13,60,86,100,102,103],P=[13,60,73,74,86,100,102,103],Q=[13,60,68,69,70,71,72,86,100,102,103],R=[1,100],S=[1,117],T=[1,113],U=[1,109],V=[1,115],W=[1,110],X=[1,111],Y=[1,112],Z=[1,114],$=[1,116],_=[22,48,60,61,82,86,87,88,89,90],aa=[1,8,9,39,41,44],ab=[1,8,9,22],ac=[1,145],ad=[1,8,9,61],ae=[1,8,9,22,48,60,61,82,86,87,88,89,90],af={trace:(0,j.K2)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,CLASS:46,emptyBody:47,SPACE:48,ANNOTATION_START:49,ANNOTATION_END:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"CLASS",48:"SPACE",49:"ANNOTATION_START",50:"ANNOTATION_END",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[43,2],[43,3],[47,0],[47,2],[47,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:(0,j.K2)(function(a,b,c,d,e,f,g){var h=f.length-1;switch(e){case 8:this.$=f[h-1];break;case 9:case 10:case 13:case 15:this.$=f[h];break;case 11:case 14:this.$=f[h-2]+"."+f[h];break;case 12:case 16:case 100:this.$=f[h-1]+f[h];break;case 17:case 18:this.$=f[h-1]+"~"+f[h]+"~";break;case 19:d.addRelation(f[h]);break;case 20:f[h-1].title=d.cleanupLabel(f[h]),d.addRelation(f[h-1]);break;case 31:this.$=f[h].trim(),d.setAccTitle(this.$);break;case 32:case 33:this.$=f[h].trim(),d.setAccDescription(this.$);break;case 34:d.addClassesToNamespace(f[h-3],f[h-1]);break;case 35:d.addClassesToNamespace(f[h-4],f[h-1]);break;case 36:this.$=f[h],d.addNamespace(f[h]);break;case 37:case 51:case 64:case 97:this.$=[f[h]];break;case 38:this.$=[f[h-1]];break;case 39:f[h].unshift(f[h-2]),this.$=f[h];break;case 41:d.setCssClass(f[h-2],f[h]);break;case 42:d.addMembers(f[h-3],f[h-1]);break;case 44:d.setCssClass(f[h-5],f[h-3]),d.addMembers(f[h-5],f[h-1]);break;case 45:this.$=f[h],d.addClass(f[h]);break;case 46:this.$=f[h-1],d.addClass(f[h-1]),d.setClassLabel(f[h-1],f[h]);break;case 50:d.addAnnotation(f[h],f[h-2]);break;case 52:f[h].push(f[h-1]),this.$=f[h];break;case 53:case 55:case 56:break;case 54:d.addMember(f[h-1],d.cleanupLabel(f[h]));break;case 57:this.$={id1:f[h-2],id2:f[h],relation:f[h-1],relationTitle1:"none",relationTitle2:"none"};break;case 58:this.$={id1:f[h-3],id2:f[h],relation:f[h-1],relationTitle1:f[h-2],relationTitle2:"none"};break;case 59:this.$={id1:f[h-3],id2:f[h],relation:f[h-2],relationTitle1:"none",relationTitle2:f[h-1]};break;case 60:this.$={id1:f[h-4],id2:f[h],relation:f[h-2],relationTitle1:f[h-3],relationTitle2:f[h-1]};break;case 61:d.addNote(f[h],f[h-1]);break;case 62:d.addNote(f[h]);break;case 63:this.$=f[h-2],d.defineClass(f[h-1],f[h]);break;case 65:this.$=f[h-2].concat([f[h]]);break;case 66:d.setDirection("TB");break;case 67:d.setDirection("BT");break;case 68:d.setDirection("RL");break;case 69:d.setDirection("LR");break;case 70:this.$={type1:f[h-2],type2:f[h],lineType:f[h-1]};break;case 71:this.$={type1:"none",type2:f[h],lineType:f[h-1]};break;case 72:this.$={type1:f[h-1],type2:"none",lineType:f[h]};break;case 73:this.$={type1:"none",type2:"none",lineType:f[h]};break;case 74:this.$=d.relationType.AGGREGATION;break;case 75:this.$=d.relationType.EXTENSION;break;case 76:this.$=d.relationType.COMPOSITION;break;case 77:this.$=d.relationType.DEPENDENCY;break;case 78:this.$=d.relationType.LOLLIPOP;break;case 79:this.$=d.lineType.LINE;break;case 80:this.$=d.lineType.DOTTED_LINE;break;case 81:case 87:this.$=f[h-2],d.setClickEvent(f[h-1],f[h]);break;case 82:case 88:this.$=f[h-3],d.setClickEvent(f[h-2],f[h-1]),d.setTooltip(f[h-2],f[h]);break;case 83:this.$=f[h-2],d.setLink(f[h-1],f[h]);break;case 84:this.$=f[h-3],d.setLink(f[h-2],f[h-1],f[h]);break;case 85:this.$=f[h-3],d.setLink(f[h-2],f[h-1]),d.setTooltip(f[h-2],f[h]);break;case 86:this.$=f[h-4],d.setLink(f[h-3],f[h-2],f[h]),d.setTooltip(f[h-3],f[h-1]);break;case 89:this.$=f[h-3],d.setClickEvent(f[h-2],f[h-1],f[h]);break;case 90:this.$=f[h-4],d.setClickEvent(f[h-3],f[h-2],f[h-1]),d.setTooltip(f[h-3],f[h]);break;case 91:this.$=f[h-3],d.setLink(f[h-2],f[h]);break;case 92:this.$=f[h-4],d.setLink(f[h-3],f[h-1],f[h]);break;case 93:this.$=f[h-4],d.setLink(f[h-3],f[h-1]),d.setTooltip(f[h-3],f[h]);break;case 94:this.$=f[h-5],d.setLink(f[h-4],f[h-2],f[h]),d.setTooltip(f[h-4],f[h-1]);break;case 95:this.$=f[h-2],d.setCssStyle(f[h-1],f[h]);break;case 96:d.setCssClass(f[h-1],f[h]);break;case 98:f[h-2].push(f[h]),this.$=f[h-2]}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:b,35:c,37:d,38:22,42:e,43:23,46:f,49:g,51:h,52:i,54:k,56:l,57:m,60:n,62:o,63:p,64:q,65:r,75:s,76:t,78:u,82:v,83:w,86:x,100:y,102:z,103:A},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},a(B,[2,5],{8:[1,48]}),{8:[1,49]},a(C,[2,19],{22:[1,50]}),a(C,[2,21]),a(C,[2,22]),a(C,[2,23]),a(C,[2,24]),a(C,[2,25]),a(C,[2,26]),a(C,[2,27]),a(C,[2,28]),a(C,[2,29]),a(C,[2,30]),{34:[1,51]},{36:[1,52]},a(C,[2,33]),a(C,[2,53],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:D,69:E,70:F,71:G,72:H,73:I,74:J}),{39:[1,65]},a(K,[2,40],{39:[1,67],44:[1,66]}),a(C,[2,55]),a(C,[2,56]),{16:68,60:n,86:x,100:y,102:z},{16:39,17:40,19:69,60:n,86:x,100:y,102:z,103:A},{16:39,17:40,19:70,60:n,86:x,100:y,102:z,103:A},{16:39,17:40,19:71,60:n,86:x,100:y,102:z,103:A},{60:[1,72]},{13:[1,73]},{16:39,17:40,19:74,60:n,86:x,100:y,102:z,103:A},{13:L,55:75},{58:77,60:[1,78]},a(C,[2,66]),a(C,[2,67]),a(C,[2,68]),a(C,[2,69]),a(M,[2,13],{16:39,17:40,19:80,18:[1,79],20:[1,81],60:n,86:x,100:y,102:z,103:A}),a(M,[2,15],{20:[1,82]}),{15:83,16:84,17:85,60:n,86:x,100:y,102:z,103:A},{16:39,17:40,19:86,60:n,86:x,100:y,102:z,103:A},a(N,[2,123]),a(N,[2,124]),a(N,[2,125]),a(N,[2,126]),a([1,8,9,12,13,20,22,39,41,44,68,69,70,71,72,73,74,79,81],[2,127]),a(B,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:87,33:b,35:c,37:d,42:e,46:f,49:g,51:h,52:i,54:k,56:l,57:m,60:n,62:o,63:p,64:q,65:r,75:s,76:t,78:u,82:v,83:w,86:x,100:y,102:z,103:A}),{5:88,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:b,35:c,37:d,38:22,42:e,43:23,46:f,49:g,51:h,52:i,54:k,56:l,57:m,60:n,62:o,63:p,64:q,65:r,75:s,76:t,78:u,82:v,83:w,86:x,100:y,102:z,103:A},a(C,[2,20]),a(C,[2,31]),a(C,[2,32]),{13:[1,90],16:39,17:40,19:89,60:n,86:x,100:y,102:z,103:A},{53:91,66:56,67:57,68:D,69:E,70:F,71:G,72:H,73:I,74:J},a(C,[2,54]),{67:92,73:I,74:J},a(O,[2,73],{66:93,68:D,69:E,70:F,71:G,72:H}),a(P,[2,74]),a(P,[2,75]),a(P,[2,76]),a(P,[2,77]),a(P,[2,78]),a(Q,[2,79]),a(Q,[2,80]),{8:[1,95],24:96,40:94,43:23,46:f},{16:97,60:n,86:x,100:y,102:z},{41:[1,99],45:98,51:R},{50:[1,101]},{13:[1,102]},{13:[1,103]},{79:[1,104],81:[1,105]},{22:S,48:T,59:106,60:U,82:V,84:107,85:108,86:W,87:X,88:Y,89:Z,90:$},{60:[1,118]},{13:L,55:119},a(C,[2,62]),a(C,[2,128]),{22:S,48:T,59:120,60:U,61:[1,121],82:V,84:107,85:108,86:W,87:X,88:Y,89:Z,90:$},a(_,[2,64]),{16:39,17:40,19:122,60:n,86:x,100:y,102:z,103:A},a(M,[2,16]),a(M,[2,17]),a(M,[2,18]),{39:[2,36]},{15:124,16:84,17:85,18:[1,123],39:[2,9],60:n,86:x,100:y,102:z,103:A},{39:[2,10]},a(aa,[2,45],{11:125,12:[1,126]}),a(B,[2,7]),{9:[1,127]},a(ab,[2,57]),{16:39,17:40,19:128,60:n,86:x,100:y,102:z,103:A},{13:[1,130],16:39,17:40,19:129,60:n,86:x,100:y,102:z,103:A},a(O,[2,72],{66:131,68:D,69:E,70:F,71:G,72:H}),a(O,[2,71]),{41:[1,132]},{24:96,40:133,43:23,46:f},{8:[1,134],41:[2,37]},a(K,[2,41],{39:[1,135]}),{41:[1,136]},a(K,[2,43]),{41:[2,51],45:137,51:R},{16:39,17:40,19:138,60:n,86:x,100:y,102:z,103:A},a(C,[2,81],{13:[1,139]}),a(C,[2,83],{13:[1,141],77:[1,140]}),a(C,[2,87],{13:[1,142],80:[1,143]}),{13:[1,144]},a(C,[2,95],{61:ac}),a(ad,[2,97],{85:146,22:S,48:T,60:U,82:V,86:W,87:X,88:Y,89:Z,90:$}),a(ae,[2,99]),a(ae,[2,101]),a(ae,[2,102]),a(ae,[2,103]),a(ae,[2,104]),a(ae,[2,105]),a(ae,[2,106]),a(ae,[2,107]),a(ae,[2,108]),a(ae,[2,109]),a(C,[2,96]),a(C,[2,61]),a(C,[2,63],{61:ac}),{60:[1,147]},a(M,[2,14]),{15:148,16:84,17:85,60:n,86:x,100:y,102:z,103:A},{39:[2,12]},a(aa,[2,46]),{13:[1,149]},{1:[2,4]},a(ab,[2,59]),a(ab,[2,58]),{16:39,17:40,19:150,60:n,86:x,100:y,102:z,103:A},a(O,[2,70]),a(C,[2,34]),{41:[1,151]},{24:96,40:152,41:[2,38],43:23,46:f},{45:153,51:R},a(K,[2,42]),{41:[2,52]},a(C,[2,50]),a(C,[2,82]),a(C,[2,84]),a(C,[2,85],{77:[1,154]}),a(C,[2,88]),a(C,[2,89],{13:[1,155]}),a(C,[2,91],{13:[1,157],77:[1,156]}),{22:S,48:T,60:U,82:V,84:158,85:108,86:W,87:X,88:Y,89:Z,90:$},a(ae,[2,100]),a(_,[2,65]),{39:[2,11]},{14:[1,159]},a(ab,[2,60]),a(C,[2,35]),{41:[2,39]},{41:[1,160]},a(C,[2,86]),a(C,[2,90]),a(C,[2,92]),a(C,[2,93],{77:[1,161]}),a(ad,[2,98],{85:146,22:S,48:T,60:U,82:V,86:W,87:X,88:Y,89:Z,90:$}),a(aa,[2,8]),a(K,[2,44]),a(C,[2,94])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],83:[2,36],85:[2,10],124:[2,12],127:[2,4],137:[2,52],148:[2,11],152:[2,39]},parseError:(0,j.K2)(function(a,b){if(b.recoverable)this.trace(a);else{var c=Error(a);throw c.hash=b,c}},"parseError"),parse:(0,j.K2)(function(a){var b=this,c=[0],d=[],e=[null],f=[],g=this.table,h="",i=0,k=0,l=0,m=f.slice.call(arguments,1),n=Object.create(this.lexer),o={};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(o[p]=this.yy[p]);n.setInput(a,o),o.lexer=n,o.parser=this,void 0===n.yylloc&&(n.yylloc={});var q=n.yylloc;f.push(q);var r=n.options&&n.options.ranges;function s(){var a;return"number"!=typeof(a=d.pop()||n.lex()||1)&&(a instanceof Array&&(a=(d=a).pop()),a=b.symbols_[a]||a),a}"function"==typeof o.parseError?this.parseError=o.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,j.K2)(function(a){c.length=c.length-2*a,e.length=e.length-a,f.length=f.length-a},"popStack"),(0,j.K2)(s,"lex");for(var t,u,v,w,x,y,z,A,B,C={};;){if(v=c[c.length-1],this.defaultActions[v]?w=this.defaultActions[v]:(null==t&&(t=s()),w=g[v]&&g[v][t]),void 0===w||!w.length||!w[0]){var D="";for(y in B=[],g[v])this.terminals_[y]&&y>2&&B.push("'"+this.terminals_[y]+"'");D=n.showPosition?"Parse error on line "+(i+1)+":\n"+n.showPosition()+"\nExpecting "+B.join(", ")+", got '"+(this.terminals_[t]||t)+"'":"Parse error on line "+(i+1)+": Unexpected "+(1==t?"end of input":"'"+(this.terminals_[t]||t)+"'"),this.parseError(D,{text:n.match,token:this.terminals_[t]||t,line:n.yylineno,loc:q,expected:B})}if(w[0]instanceof Array&&w.length>1)throw Error("Parse Error: multiple actions possible at state: "+v+", token: "+t);switch(w[0]){case 1:c.push(t),e.push(n.yytext),f.push(n.yylloc),c.push(w[1]),t=null,u?(t=u,u=null):(k=n.yyleng,h=n.yytext,i=n.yylineno,q=n.yylloc,l>0&&l--);break;case 2:if(z=this.productions_[w[1]][1],C.$=e[e.length-z],C._$={first_line:f[f.length-(z||1)].first_line,last_line:f[f.length-1].last_line,first_column:f[f.length-(z||1)].first_column,last_column:f[f.length-1].last_column},r&&(C._$.range=[f[f.length-(z||1)].range[0],f[f.length-1].range[1]]),void 0!==(x=this.performAction.apply(C,[h,k,i,o,w[1],e,f].concat(m))))return x;z&&(c=c.slice(0,-1*z*2),e=e.slice(0,-1*z),f=f.slice(0,-1*z)),c.push(this.productions_[w[1]][0]),e.push(C.$),f.push(C._$),A=g[c[c.length-2]][c[c.length-1]],c.push(A);break;case 3:return!0}}return!0},"parse")};function ag(){this.yy={}}return af.lexer={EOF:1,parseError:(0,j.K2)(function(a,b){if(this.yy.parser)this.yy.parser.parseError(a,b);else throw Error(a)},"parseError"),setInput:(0,j.K2)(function(a,b){return this.yy=b||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,j.K2)(function(){var a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:(0,j.K2)(function(a){var b=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b),this.offset-=b;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var e=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-b]),this.yyleng=this.yytext.length,this},"unput"),more:(0,j.K2)(function(){return this._more=!0,this},"more"),reject:(0,j.K2)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,j.K2)(function(a){this.unput(this.match.slice(a))},"less"),pastInput:(0,j.K2)(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,j.K2)(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,j.K2)(function(){var a=this.pastInput(),b=Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+b+"^"},"showPosition"),test_match:(0,j.K2)(function(a,b){var c,d,e;if(this.options.backtrack_lexer&&(e={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(e.yylloc.range=this.yylloc.range.slice(0))),(d=a[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],c=this.performAction.call(this,this.yy,this,b,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack)for(var f in e)this[f]=e[f];return!1},"test_match"),next:(0,j.K2)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a,b,c,d,e=this._currentRules(),f=0;f<e.length;f++)if((c=this._input.match(this.rules[e[f]]))&&(!b||c[0].length>b[0].length)){if(b=c,d=f,this.options.backtrack_lexer){if(!1!==(a=this.test_match(c,e[f])))return a;if(!this._backtrack)return!1;b=!1;continue}if(!this.options.flex)break}return b?!1!==(a=this.test_match(b,e[d]))&&a:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,j.K2)(function(){var a=this.next();return a||this.lex()},"lex"),begin:(0,j.K2)(function(a){this.conditionStack.push(a)},"begin"),popState:(0,j.K2)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,j.K2)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,j.K2)(function(a){return(a=this.conditionStack.length-1-Math.abs(a||0))>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:(0,j.K2)(function(a){this.begin(a)},"pushState"),stateStackSize:(0,j.K2)(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:(0,j.K2)(function(a,b,c,d){switch(c){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:case 5:case 14:case 31:case 36:case 40:case 47:break;case 6:return this.begin("acc_title"),33;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),35;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 19:case 22:case 24:case 58:case 61:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:case 35:return 8;case 15:case 16:return 7;case 17:case 37:case 45:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 79;case 23:return 80;case 25:return"STR";case 26:this.begin("string");break;case 27:return 82;case 28:return 57;case 29:return this.begin("namespace"),42;case 30:case 39:return this.popState(),8;case 32:return this.begin("namespace-body"),39;case 33:case 43:return this.popState(),41;case 34:case 44:return"EOF_IN_STRUCT";case 38:return this.begin("class"),46;case 41:return this.popState(),this.popState(),41;case 42:return this.begin("class-body"),39;case 46:return"OPEN_IN_STRUCT";case 48:return"MEMBER";case 49:return 83;case 50:return 75;case 51:return 76;case 52:return 78;case 53:return 54;case 54:return 56;case 55:return 49;case 56:return 50;case 57:return 81;case 59:return"GENERICTYPE";case 60:this.begin("generic");break;case 62:return"BQUOTE_STR";case 63:this.begin("bqstring");break;case 64:case 65:case 66:case 67:return 77;case 68:case 69:return 69;case 70:case 71:return 71;case 72:return 70;case 73:return 68;case 74:return 72;case 75:return 73;case 76:return 74;case 77:return 22;case 78:return 44;case 79:return 100;case 80:return 18;case 81:return"PLUS";case 82:return 87;case 83:return 61;case 84:case 85:return 89;case 86:return 90;case 87:case 88:return"EQUALS";case 89:return 60;case 90:return 12;case 91:return 14;case 92:return"PUNCTUATION";case 93:return 86;case 94:return 102;case 95:case 96:return 48;case 97:return 9}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,33,34,35,36,37,38,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},namespace:{rules:[26,29,30,31,32,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},"class-body":{rules:[26,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},class:{rules:[26,39,40,41,42,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_descr:{rules:[9,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_title:{rules:[7,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},callback_args:{rules:[22,23,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},callback_name:{rules:[19,20,21,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},href:{rules:[26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},struct:{rules:[26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},generic:{rules:[26,49,50,51,52,53,54,55,56,57,58,59,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},bqstring:{rules:[26,49,50,51,52,53,54,55,56,57,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},string:{rules:[24,25,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,38,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97],inclusive:!0}}},(0,j.K2)(ag,"Parser"),ag.prototype=af,af.Parser=ag,new ag}();l.parser=l;var m=l,n=["#","+","~","-",""],o=class{static{(0,j.K2)(this,"ClassMember")}constructor(a,b){this.memberType=b,this.visibility="",this.classifier="",this.text="";const c=(0,i.jZ)(a,(0,i.D7)());this.parseMember(c)}getDisplayDetails(){let a=this.visibility+(0,i.QO)(this.id);return"method"===this.memberType&&(a+=`(${(0,i.QO)(this.parameters.trim())})`,this.returnType&&(a+=" : "+(0,i.QO)(this.returnType))),{displayText:a=a.trim(),cssStyle:this.parseClassifier()}}parseMember(a){let b="";if("method"===this.memberType){let c=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(a);if(c){let a=c[1]?c[1].trim():"";if(n.includes(a)&&(this.visibility=a),this.id=c[2],this.parameters=c[3]?c[3].trim():"",b=c[4]?c[4].trim():"",this.returnType=c[5]?c[5].trim():"",""===b){let a=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(a)&&(b=a,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{let c=a.length,d=a.substring(0,1),e=a.substring(c-1);n.includes(d)&&(this.visibility=d),/[$*]/.exec(e)&&(b=e),this.id=a.substring(+(""!==this.visibility),""===b?c:c-1)}this.classifier=b,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();let c=`${this.visibility?"\\"+this.visibility:""}${(0,i.QO)(this.id)}${"method"===this.memberType?`(${(0,i.QO)(this.parameters)})${this.returnType?" : "+(0,i.QO)(this.returnType):""}`:""}`;this.text=c.replaceAll("<","<").replaceAll(">",">"),this.text.startsWith("\\<")&&(this.text=this.text.replace("\\<","~"))}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}},p="classId-",q=0,r=(0,j.K2)(a=>i.Y2.sanitizeText(a,(0,i.D7)()),"sanitizeText"),s=class{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=[],this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=(0,j.K2)(a=>{let b=(0,k.Ltv)(".mermaidTooltip");null===(b._groups||b)[0][0]&&(b=(0,k.Ltv)("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),(0,k.Ltv)(a).select("svg").selectAll("g.node").on("mouseover",a=>{let c=(0,k.Ltv)(a.currentTarget);if(null===c.attr("title"))return;let d=this.getBoundingClientRect();b.transition().duration(200).style("opacity",".9"),b.text(c.attr("title")).style("left",window.scrollX+d.left+(d.right-d.left)/2+"px").style("top",window.scrollY+d.top-14+document.body.scrollTop+"px"),b.html(b.html().replace(/<br\/>/g,"<br/>")),c.classed("hover",!0)}).on("mouseout",a=>{b.transition().duration(500).style("opacity",0),(0,k.Ltv)(a.currentTarget).classed("hover",!1)})},"setupToolTips"),this.direction="TB",this.setAccTitle=i.SV,this.getAccTitle=i.iN,this.setAccDescription=i.EI,this.getAccDescription=i.m7,this.setDiagramTitle=i.ke,this.getDiagramTitle=i.ab,this.getConfig=(0,j.K2)(()=>(0,i.D7)().class,"getConfig"),this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}static{(0,j.K2)(this,"ClassDB")}splitClassNameAndType(a){let b=i.Y2.sanitizeText(a,(0,i.D7)()),c="",d=b;if(b.indexOf("~")>0){let a=b.split("~");d=r(a[0]),c=r(a[1])}return{className:d,type:c}}setClassLabel(a,b){let c=i.Y2.sanitizeText(a,(0,i.D7)());b&&(b=r(b));let{className:d}=this.splitClassNameAndType(c);this.classes.get(d).label=b,this.classes.get(d).text=`${b}${this.classes.get(d).type?`<${this.classes.get(d).type}>`:""}`}addClass(a){let b=i.Y2.sanitizeText(a,(0,i.D7)()),{className:c,type:d}=this.splitClassNameAndType(b);if(this.classes.has(c))return;let e=i.Y2.sanitizeText(c,(0,i.D7)());this.classes.set(e,{id:e,type:d,label:e,text:`${e}${d?`<${d}>`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:p+e+"-"+q}),q++}addInterface(a,b){let c={id:`interface${this.interfaces.length}`,label:a,classId:b};this.interfaces.push(c)}lookUpDomId(a){let b=i.Y2.sanitizeText(a,(0,i.D7)());if(this.classes.has(b))return this.classes.get(b).domId;throw Error("Class not found: "+b)}clear(){this.relations=[],this.classes=new Map,this.notes=[],this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.direction="TB",(0,i.IU)()}getClass(a){return this.classes.get(a)}getClasses(){return this.classes}getRelations(){return this.relations}getNotes(){return this.notes}addRelation(a){j.Rm.debug("Adding relation: "+JSON.stringify(a));let b=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];a.relation.type1!==this.relationType.LOLLIPOP||b.includes(a.relation.type2)?a.relation.type2!==this.relationType.LOLLIPOP||b.includes(a.relation.type1)?(this.addClass(a.id1),this.addClass(a.id2)):(this.addClass(a.id1),this.addInterface(a.id2,a.id1),a.id2=`interface${this.interfaces.length-1}`):(this.addClass(a.id2),this.addInterface(a.id1,a.id2),a.id1=`interface${this.interfaces.length-1}`),a.id1=this.splitClassNameAndType(a.id1).className,a.id2=this.splitClassNameAndType(a.id2).className,a.relationTitle1=i.Y2.sanitizeText(a.relationTitle1.trim(),(0,i.D7)()),a.relationTitle2=i.Y2.sanitizeText(a.relationTitle2.trim(),(0,i.D7)()),this.relations.push(a)}addAnnotation(a,b){let c=this.splitClassNameAndType(a).className;this.classes.get(c).annotations.push(b)}addMember(a,b){this.addClass(a);let c=this.splitClassNameAndType(a).className,d=this.classes.get(c);if("string"==typeof b){let a=b.trim();a.startsWith("<<")&&a.endsWith(">>")?d.annotations.push(r(a.substring(2,a.length-2))):a.indexOf(")")>0?d.methods.push(new o(a,"method")):a&&d.members.push(new o(a,"attribute"))}}addMembers(a,b){Array.isArray(b)&&(b.reverse(),b.forEach(b=>this.addMember(a,b)))}addNote(a,b){let c={id:`note${this.notes.length}`,class:b,text:a};this.notes.push(c)}cleanupLabel(a){return a.startsWith(":")&&(a=a.substring(1)),r(a.trim())}setCssClass(a,b){a.split(",").forEach(a=>{let c=a;/\d/.exec(a[0])&&(c=p+c);let d=this.classes.get(c);d&&(d.cssClasses+=" "+b)})}defineClass(a,b){for(let c of a){let a=this.styleClasses.get(c);void 0===a&&(a={id:c,styles:[],textStyles:[]},this.styleClasses.set(c,a)),b&&b.forEach(b=>{if(/color/.exec(b)){let c=b.replace("fill","bgFill");a.textStyles.push(c)}a.styles.push(b)}),this.classes.forEach(a=>{a.cssClasses.includes(c)&&a.styles.push(...b.flatMap(a=>a.split(",")))})}}setTooltip(a,b){a.split(",").forEach(a=>{void 0!==b&&(this.classes.get(a).tooltip=r(b))})}getTooltip(a,b){return b&&this.namespaces.has(b)?this.namespaces.get(b).classes.get(a).tooltip:this.classes.get(a).tooltip}setLink(a,b,c){let d=(0,i.D7)();a.split(",").forEach(a=>{let e=a;/\d/.exec(a[0])&&(e=p+e);let f=this.classes.get(e);f&&(f.link=h._K.formatUrl(b,d),"sandbox"===d.securityLevel?f.linkTarget="_top":"string"==typeof c?f.linkTarget=r(c):f.linkTarget="_blank")}),this.setCssClass(a,"clickable")}setClickEvent(a,b,c){a.split(",").forEach(a=>{this.setClickFunc(a,b,c),this.classes.get(a).haveCallback=!0}),this.setCssClass(a,"clickable")}setClickFunc(a,b,c){let d=i.Y2.sanitizeText(a,(0,i.D7)());if("loose"===(0,i.D7)().securityLevel&&void 0!==b&&this.classes.has(d)){let a=this.lookUpDomId(d),e=[];if("string"==typeof c){e=c.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let a=0;a<e.length;a++){let b=e[a].trim();b.startsWith('"')&&b.endsWith('"')&&(b=b.substr(1,b.length-2)),e[a]=b}}0===e.length&&e.push(a),this.functions.push(()=>{let c=document.querySelector(`[id="${a}"]`);null!==c&&c.addEventListener("click",()=>{h._K.runFunc(b,...e)},!1)})}}bindFunctions(a){this.functions.forEach(b=>{b(a)})}getDirection(){return this.direction}setDirection(a){this.direction=a}addNamespace(a){!this.namespaces.has(a)&&(this.namespaces.set(a,{id:a,classes:new Map,children:{},domId:p+a+"-"+this.namespaceCounter}),this.namespaceCounter++)}getNamespace(a){return this.namespaces.get(a)}getNamespaces(){return this.namespaces}addClassesToNamespace(a,b){if(this.namespaces.has(a))for(let c of b){let{className:b}=this.splitClassNameAndType(c);this.classes.get(b).parent=a,this.namespaces.get(a).classes.set(b,this.classes.get(b))}}setCssStyle(a,b){let c=this.classes.get(a);if(b&&c)for(let a of b)a.includes(",")?c.styles.push(...a.split(",")):c.styles.push(a)}getArrowMarker(a){let b;switch(a){case 0:b="aggregation";break;case 1:b="extension";break;case 2:b="composition";break;case 3:b="dependency";break;case 4:b="lollipop";break;default:b="none"}return b}getData(){let a=[],b=[],c=(0,i.D7)();for(let b of this.namespaces.keys()){let d=this.namespaces.get(b);if(d){let b={id:d.id,label:d.id,isGroup:!0,padding:c.class.padding??16,shape:"rect",cssStyles:["fill: none","stroke: black"],look:c.look};a.push(b)}}for(let b of this.classes.keys()){let d=this.classes.get(b);d&&(d.parentId=d.parent,d.look=c.look,a.push(d))}let d=0;for(let e of this.notes){d++;let f={id:e.id,label:e.text,isGroup:!1,shape:"note",padding:c.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${c.themeVariables.noteBkgColor}`,`stroke: ${c.themeVariables.noteBorderColor}`],look:c.look};a.push(f);let g=this.classes.get(e.class)?.id??"";if(g){let a={id:`edgeNote${d}`,start:e.id,end:g,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:c.look};b.push(a)}}for(let b of this.interfaces){let d={id:b.id,label:b.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:c.look};a.push(d)}for(let a of(d=0,this.relations)){d++;let e={id:(0,h.rY)(a.id1,a.id2,{prefix:"id",counter:d}),start:a.id1,end:a.id2,type:"normal",label:a.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(a.relation.type1),arrowTypeEnd:this.getArrowMarker(a.relation.type2),startLabelRight:"none"===a.relationTitle1?"":a.relationTitle1,endLabelLeft:"none"===a.relationTitle2?"":a.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:a.style||"",pattern:1==a.relation.lineType?"dashed":"solid",look:c.look};b.push(e)}return{nodes:a,edges:b,other:{},config:c,direction:this.getDirection()}}},t=(0,j.K2)(a=>`g.classGroup text {
|
|
16
|
+
fill: ${a.nodeBorder||a.classText};
|
|
17
|
+
stroke: none;
|
|
18
|
+
font-family: ${a.fontFamily};
|
|
19
|
+
font-size: 10px;
|
|
20
|
+
|
|
21
|
+
.title {
|
|
22
|
+
font-weight: bolder;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.nodeLabel, .edgeLabel {
|
|
28
|
+
color: ${a.classText};
|
|
29
|
+
}
|
|
30
|
+
.edgeLabel .label rect {
|
|
31
|
+
fill: ${a.mainBkg};
|
|
32
|
+
}
|
|
33
|
+
.label text {
|
|
34
|
+
fill: ${a.classText};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.labelBkg {
|
|
38
|
+
background: ${a.mainBkg};
|
|
39
|
+
}
|
|
40
|
+
.edgeLabel .label span {
|
|
41
|
+
background: ${a.mainBkg};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.classTitle {
|
|
45
|
+
font-weight: bolder;
|
|
46
|
+
}
|
|
47
|
+
.node rect,
|
|
48
|
+
.node circle,
|
|
49
|
+
.node ellipse,
|
|
50
|
+
.node polygon,
|
|
51
|
+
.node path {
|
|
52
|
+
fill: ${a.mainBkg};
|
|
53
|
+
stroke: ${a.nodeBorder};
|
|
54
|
+
stroke-width: 1px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
.divider {
|
|
59
|
+
stroke: ${a.nodeBorder};
|
|
60
|
+
stroke-width: 1;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
g.clickable {
|
|
64
|
+
cursor: pointer;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
g.classGroup rect {
|
|
68
|
+
fill: ${a.mainBkg};
|
|
69
|
+
stroke: ${a.nodeBorder};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
g.classGroup line {
|
|
73
|
+
stroke: ${a.nodeBorder};
|
|
74
|
+
stroke-width: 1;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.classLabel .box {
|
|
78
|
+
stroke: none;
|
|
79
|
+
stroke-width: 0;
|
|
80
|
+
fill: ${a.mainBkg};
|
|
81
|
+
opacity: 0.5;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.classLabel .label {
|
|
85
|
+
fill: ${a.nodeBorder};
|
|
86
|
+
font-size: 10px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.relation {
|
|
90
|
+
stroke: ${a.lineColor};
|
|
91
|
+
stroke-width: 1;
|
|
92
|
+
fill: none;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.dashed-line{
|
|
96
|
+
stroke-dasharray: 3;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.dotted-line{
|
|
100
|
+
stroke-dasharray: 1 2;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
#compositionStart, .composition {
|
|
104
|
+
fill: ${a.lineColor} !important;
|
|
105
|
+
stroke: ${a.lineColor} !important;
|
|
106
|
+
stroke-width: 1;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
#compositionEnd, .composition {
|
|
110
|
+
fill: ${a.lineColor} !important;
|
|
111
|
+
stroke: ${a.lineColor} !important;
|
|
112
|
+
stroke-width: 1;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
#dependencyStart, .dependency {
|
|
116
|
+
fill: ${a.lineColor} !important;
|
|
117
|
+
stroke: ${a.lineColor} !important;
|
|
118
|
+
stroke-width: 1;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
#dependencyStart, .dependency {
|
|
122
|
+
fill: ${a.lineColor} !important;
|
|
123
|
+
stroke: ${a.lineColor} !important;
|
|
124
|
+
stroke-width: 1;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
#extensionStart, .extension {
|
|
128
|
+
fill: transparent !important;
|
|
129
|
+
stroke: ${a.lineColor} !important;
|
|
130
|
+
stroke-width: 1;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
#extensionEnd, .extension {
|
|
134
|
+
fill: transparent !important;
|
|
135
|
+
stroke: ${a.lineColor} !important;
|
|
136
|
+
stroke-width: 1;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
#aggregationStart, .aggregation {
|
|
140
|
+
fill: transparent !important;
|
|
141
|
+
stroke: ${a.lineColor} !important;
|
|
142
|
+
stroke-width: 1;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
#aggregationEnd, .aggregation {
|
|
146
|
+
fill: transparent !important;
|
|
147
|
+
stroke: ${a.lineColor} !important;
|
|
148
|
+
stroke-width: 1;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
#lollipopStart, .lollipop {
|
|
152
|
+
fill: ${a.mainBkg} !important;
|
|
153
|
+
stroke: ${a.lineColor} !important;
|
|
154
|
+
stroke-width: 1;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
#lollipopEnd, .lollipop {
|
|
158
|
+
fill: ${a.mainBkg} !important;
|
|
159
|
+
stroke: ${a.lineColor} !important;
|
|
160
|
+
stroke-width: 1;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.edgeTerminals {
|
|
164
|
+
font-size: 11px;
|
|
165
|
+
line-height: initial;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.classTitleText {
|
|
169
|
+
text-anchor: middle;
|
|
170
|
+
font-size: 18px;
|
|
171
|
+
fill: ${a.textColor};
|
|
172
|
+
}
|
|
173
|
+
${(0,d.o)()}
|
|
174
|
+
`,"getStyles"),u=(0,j.K2)((a,b="TB")=>{if(!a.doc)return b;let c=b;for(let b of a.doc)"dir"===b.stmt&&(c=b.value);return c},"getDir"),v={getClasses:(0,j.K2)(function(a,b){return b.db.getClasses()},"getClasses"),draw:(0,j.K2)(async function(a,b,c,d){j.Rm.info("REF0:"),j.Rm.info("Drawing class diagram (v3)",b);let{securityLevel:k,state:l,layout:m}=(0,i.D7)(),n=d.db.getData(),o=(0,e.A)(b,k);n.type=d.type,n.layoutAlgorithm=(0,g.q7)(m),n.nodeSpacing=l?.nodeSpacing||50,n.rankSpacing=l?.rankSpacing||50,n.markers=["aggregation","extension","composition","dependency","lollipop"],n.diagramId=b,await (0,g.XX)(n,o),h._K.insertTitle(o,"classDiagramTitleText",l?.titleTopMargin??25,d.db.getDiagramTitle()),(0,f.P)(o,8,"classDiagram",l?.useMaxWidth??!0)},"draw"),getDir:u}}};
|