init commit
This commit is contained in:
+36
@@ -0,0 +1,36 @@
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
pnpm-debug.log*
|
||||
lerna-debug.log*
|
||||
|
||||
node_modules
|
||||
.DS_Store
|
||||
dist
|
||||
dist-ssr
|
||||
coverage
|
||||
*.local
|
||||
|
||||
/cypress/videos/
|
||||
/cypress/screenshots/
|
||||
|
||||
# Editor directories and files
|
||||
.vscode/*
|
||||
!.vscode/extensions.json
|
||||
.idea
|
||||
*.suo
|
||||
*.ntvs*
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
||||
|
||||
*.tsbuildinfo
|
||||
|
||||
__pycache__
|
||||
|
||||
node.zip
|
||||
|
||||
/js
|
||||
@@ -0,0 +1,29 @@
|
||||
class ComfyUIOpenCut:
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {
|
||||
"required": {
|
||||
},
|
||||
}
|
||||
|
||||
RETURN_TYPES = ()
|
||||
|
||||
FUNCTION = "run"
|
||||
|
||||
OUTPUT_NODE = True
|
||||
|
||||
CATEGORY = "OpenCut"
|
||||
|
||||
def run(self, **kwargs):
|
||||
return None,
|
||||
|
||||
NODE_CLASS_MAPPINGS = {
|
||||
"ComfyUIOpenCut": ComfyUIOpenCut
|
||||
}
|
||||
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {
|
||||
"ComfyUIOpenCut": "OpenCut"
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
(WIP, many features are not implemented yet)
|
||||
|
||||
# ComfyUI-OpenCut
|
||||
This is a ComfyUI plugin that integrated OpenCut into ComfyUI, originally developed by [OpenCut](https://github.com/OpenCut-app/OpenCut)
|
||||

|
||||
|
||||
## Installation
|
||||
1. git clone this repository into your ComfyUI custom_nodes directory:
|
||||
```bash
|
||||
git clone
|
||||
|
||||
## How to access this:
|
||||
### Method 1
|
||||
Access to http://127.0.0.1:8188/opencut/ directly in your browser, or
|
||||
### Method 2:
|
||||
(requires ComfyUI_frontend greater than 1.25.0)
|
||||
open from the ComfyUI, click on the "OpenCut" button
|
||||
+100
@@ -0,0 +1,100 @@
|
||||
from .ComfyUIOpenCut import NODE_CLASS_MAPPINGS
|
||||
import os
|
||||
import nodes
|
||||
from aiohttp import web
|
||||
import importlib
|
||||
import execution
|
||||
import logging
|
||||
from pathlib import Path
|
||||
import uuid
|
||||
import json
|
||||
import datetime
|
||||
|
||||
js_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "js")
|
||||
|
||||
nodes.EXTENSION_WEB_DIRS["ComfyUI-OpenCut"] = js_dir
|
||||
|
||||
__all__ = ['NODE_CLASS_MAPPINGS']
|
||||
|
||||
from server import PromptServer
|
||||
|
||||
routes = PromptServer.instance.routes
|
||||
|
||||
@routes.get('/opencut')
|
||||
async def serve_opencut_index(request):
|
||||
opencut_path = Path(__file__).parent / 'opencut-ui' / 'index.html'
|
||||
if opencut_path.exists():
|
||||
return web.FileResponse(opencut_path)
|
||||
else:
|
||||
return web.Response(text="OpenCut UI not found", status=404)
|
||||
|
||||
@routes.get('/opencut/{path:.*}')
|
||||
async def serve_opencut_static(request):
|
||||
path = request.match_info.get('path', '')
|
||||
|
||||
if '..' in path or path.startswith('/'):
|
||||
return web.Response(text="Invalid path", status=400)
|
||||
|
||||
opencut_path = Path(__file__).parent / 'opencut-ui' / path
|
||||
|
||||
if opencut_path.is_dir():
|
||||
index_path = opencut_path / 'index.html'
|
||||
if index_path.exists():
|
||||
return web.FileResponse(index_path)
|
||||
|
||||
if opencut_path.exists() and opencut_path.is_file():
|
||||
return web.FileResponse(opencut_path)
|
||||
|
||||
if path.startswith('editor/') and '/' in path[7:]:
|
||||
editor_html_path = opencut_path.with_suffix('.html')
|
||||
if editor_html_path.exists() and editor_html_path.is_file():
|
||||
return web.FileResponse(editor_html_path)
|
||||
|
||||
static_extensions = ['.js', '.css', '.png', '.jpg', '.jpeg', '.gif', '.ico', '.txt', '.map', '.woff', '.woff2', '.ttf', '.svg', '.json', '.webp']
|
||||
|
||||
is_route = not any(path.endswith(ext) for ext in static_extensions) and not path.endswith('.html')
|
||||
|
||||
if is_route:
|
||||
index_path = Path(__file__).parent / 'opencut-ui' / 'index.html'
|
||||
if index_path.exists():
|
||||
return web.FileResponse(index_path, headers={
|
||||
'Cache-Control': 'no-cache, no-store, must-revalidate',
|
||||
'Pragma': 'no-cache',
|
||||
'Expires': '0'
|
||||
})
|
||||
|
||||
return web.Response(text="File not found", status=404)
|
||||
|
||||
@routes.post('/opencut/api/projects')
|
||||
async def create_project(request):
|
||||
try:
|
||||
data = await request.json()
|
||||
project_id = str(uuid.uuid4())
|
||||
project = {
|
||||
'id': project_id,
|
||||
'name': data.get('name', 'Untitled Project'),
|
||||
'createdAt': datetime.datetime.now().isoformat(),
|
||||
'updatedAt': datetime.datetime.now().isoformat()
|
||||
}
|
||||
return web.json_response(project)
|
||||
except Exception as e:
|
||||
return web.json_response({'error': str(e)}, status=500)
|
||||
|
||||
@routes.get('/opencut/api/projects/{project_id}')
|
||||
async def get_project(request):
|
||||
project_id = request.match_info['project_id']
|
||||
project = {
|
||||
'id': project_id,
|
||||
'name': 'Sample Project',
|
||||
'createdAt': datetime.datetime.now().isoformat(),
|
||||
'updatedAt': datetime.datetime.now().isoformat()
|
||||
}
|
||||
return web.json_response(project)
|
||||
|
||||
@routes.put('/opencut/api/projects/{project_id}')
|
||||
async def update_project(request):
|
||||
project_id = request.match_info['project_id']
|
||||
try:
|
||||
return web.json_response({'id': project_id, 'updated': True})
|
||||
except Exception as e:
|
||||
return web.json_response({'error': str(e)}, status=500)
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 4.8 MiB |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
self.__BUILD_MANIFEST=function(e,r,t,_){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:12,errorRate:1e-4,numBits:231,numHashes:14,bitArray:[1,1,e,0,e,0,r,r,r,r,r,e,r,r,e,r,e,r,e,e,r,r,r,e,e,e,e,e,r,r,e,e,r,e,r,e,e,e,r,r,r,r,e,r,e,r,e,r,r,e,e,e,e,r,e,r,e,r,r,r,e,r,e,e,r,e,e,e,e,e,e,e,e,e,r,r,e,e,e,r,r,r,e,e,e,e,e,r,r,e,r,r,r,e,r,e,r,e,r,r,r,e,r,r,e,r,e,r,r,r,e,e,r,e,e,r,r,r,e,e,e,e,e,r,e,e,r,r,e,e,r,e,e,e,e,e,e,e,e,e,r,r,r,r,e,e,e,e,r,e,e,r,e,r,r,e,r,r,r,r,e,e,r,e,e,e,r,e,r,e,e,e,e,r,e,e,e,e,e,e,e,r,r,e,r,r,r,r,e,e,r,r,e,r,e,e,r,e,e,e,r,e,r,r,e,r,r,r,r,e,r,e,r,e,r,r,e,r,r,r,e,r,r,r,r,r,r,e,e,r,r]},__routerFilterDynamic:{numItems:2,errorRate:1e-4,numBits:39,numHashes:14,bitArray:[r,e,r,r,r,e,r,e,r,e,r,e,e,r,e,e,e,r,e,r,r,r,e,e,r,e,r,r,e,r,e,e,r,e,e,r,e,r,e]},"/_error":["static/chunks/pages/_error-0bd26428e1130965.js"],sortedPages:["/_app","/_error"]}}(1,0,1e-4,14),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
|
||||
@@ -0,0 +1 @@
|
||||
self.__SSG_MANIFEST=new Set(["\u002Fblog\u002F[slug]","\u002Feditor\u002F[project_id]"]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB()
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,2 @@
|
||||
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[214],{30214:(e,t,l)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});let u=l(78873),n=l(485),a=u._(l(30233)),o=l(84536);async function r(e){let{Component:t,ctx:l}=e;return{pageProps:await (0,o.loadGetInitialProps)(t,l)}}class s extends a.default.Component{render(){let{Component:e,pageProps:t}=this.props;return(0,n.jsx)(e,{...t})}}s.origGetInitialProps=r,s.getInitialProps=r,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}}]);
|
||||
//# sourceMappingURL=214.f4c68eef357f3bfd.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"static/chunks/214.f4c68eef357f3bfd.js","mappings":"oNAiCqBA,qCAjCH,YAWkB,OAcpC,eAAeC,EAAmB,CAGrB,EAHqB,cAChCC,CAAS,KACTC,CAAG,CACQ,CAHqB,EAKhC,MAAO,CAAEC,UADS,MAAMC,CAAAA,EAAAA,EAAAA,mBAAAA,EAAoBH,EAAWC,EACpC,CACrB,CAEe,MAAMH,UAAsCM,EAAAA,OAAK,CAACJ,SAAS,CAOxEK,QAAS,CACP,GAAM,WAAEL,CAAS,WAAEE,CAAS,CAAE,CAAG,IAAI,CAACI,KAAK,CAE3C,MAAO,UAACN,EAAR,CAAmB,GAAGE,CAAS,EACjC,CACF,CAZqBJ,EAIZS,mBAAAA,CAAsBR,EAJVD,EAKZU,eAAAA,CAAkBT","sources":["webpack://_N_E/../../src/pages/_app.tsx"],"sourcesContent":["import React from 'react'\n\nimport type {\n AppContextType,\n AppInitialProps,\n AppPropsType,\n NextWebVitalsMetric,\n AppType,\n} from '../shared/lib/utils'\nimport type { Router } from '../client/router'\n\nimport { loadGetInitialProps } from '../shared/lib/utils'\n\nexport type { AppInitialProps, AppType }\n\nexport type { NextWebVitalsMetric }\n\nexport type AppContext = AppContextType<Router>\n\nexport type AppProps<P = any> = AppPropsType<Router, P>\n\n/**\n * `App` component is used for initialize of pages. It allows for overwriting and full control of the `page` initialization.\n * This allows for keeping state between navigation, custom error handling, injecting additional data.\n */\nasync function appGetInitialProps({\n Component,\n ctx,\n}: AppContext): Promise<AppInitialProps> {\n const pageProps = await loadGetInitialProps(Component, ctx)\n return { pageProps }\n}\n\nexport default class App<P = any, CP = {}, S = {}> extends React.Component<\n P & AppProps<CP>,\n S\n> {\n static origGetInitialProps = appGetInitialProps\n static getInitialProps = appGetInitialProps\n\n render() {\n const { Component, pageProps } = this.props as AppProps<CP>\n\n return <Component {...pageProps} />\n }\n}\n"],"names":["App","appGetInitialProps","Component","ctx","pageProps","loadGetInitialProps","React","render","props","origGetInitialProps","getInitialProps"],"sourceRoot":"","ignoreList":[]}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,2 @@
|
||||
(()=>{var e={92031:e=>{function r(e){return Promise.resolve().then(()=>{var r=Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r})}r.keys=()=>[],r.resolve=r,r.id=92031,e.exports=r}},r={};function t(a){var s=r[a];if(void 0!==s)return s.exports;var E=r[a]={exports:{}},o=!0;try{e[a](E,E.exports,t),o=!1}finally{o&&delete r[a]}return E.exports}t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{"use strict";var e;let r,a="https://unpkg.com/@ffmpeg/core@0.12.9/dist/umd/ffmpeg-core.js";!function(e){e.LOAD="LOAD",e.EXEC="EXEC",e.FFPROBE="FFPROBE",e.WRITE_FILE="WRITE_FILE",e.READ_FILE="READ_FILE",e.DELETE_FILE="DELETE_FILE",e.RENAME="RENAME",e.CREATE_DIR="CREATE_DIR",e.LIST_DIR="LIST_DIR",e.DELETE_DIR="DELETE_DIR",e.ERROR="ERROR",e.DOWNLOAD="DOWNLOAD",e.PROGRESS="PROGRESS",e.LOG="LOG",e.MOUNT="MOUNT",e.UNMOUNT="UNMOUNT"}(e||(e={}));let s=Error("unknown message type"),E=Error("ffmpeg is not loaded, call `await ffmpeg.load()` first");Error("called FFmpeg.terminate()");let o=Error("failed to import ffmpeg-core.js"),l=async({coreURL:s,wasmURL:E,workerURL:l})=>{let i=!r;try{s||(s=a),importScripts(s)}catch{if(s&&s!==a||(s=a.replace("/umd/","/esm/")),self.createFFmpegCore=(await t(92031)(s)).default,!self.createFFmpegCore)throw o}let c=s,n=E||s.replace(/.js$/g,".wasm"),R=l||s.replace(/.js$/g,".worker.js");return(r=await self.createFFmpegCore({mainScriptUrlOrBlob:`${c}#${btoa(JSON.stringify({wasmURL:n,workerURL:R}))}`})).setLogger(r=>self.postMessage({type:e.LOG,data:r})),r.setProgress(r=>self.postMessage({type:e.PROGRESS,data:r})),i};self.onmessage=async({data:{id:t,type:a,data:o}})=>{let i,c=[];try{if(a!==e.LOAD&&!r)throw E;switch(a){case e.LOAD:i=await l(o);break;case e.EXEC:i=(({args:e,timeout:t=-1})=>{r.setTimeout(t),r.exec(...e);let a=r.ret;return r.reset(),a})(o);break;case e.FFPROBE:i=(({args:e,timeout:t=-1})=>{r.setTimeout(t),r.ffprobe(...e);let a=r.ret;return r.reset(),a})(o);break;case e.WRITE_FILE:i=(({path:e,data:t})=>(r.FS.writeFile(e,t),!0))(o);break;case e.READ_FILE:i=(({path:e,encoding:t})=>r.FS.readFile(e,{encoding:t}))(o);break;case e.DELETE_FILE:i=(({path:e})=>(r.FS.unlink(e),!0))(o);break;case e.RENAME:i=(({oldPath:e,newPath:t})=>(r.FS.rename(e,t),!0))(o);break;case e.CREATE_DIR:i=(({path:e})=>(r.FS.mkdir(e),!0))(o);break;case e.LIST_DIR:i=(({path:e})=>{let t=r.FS.readdir(e),a=[];for(let s of t){let t=r.FS.stat(`${e}/${s}`),E=r.FS.isDir(t.mode);a.push({name:s,isDir:E})}return a})(o);break;case e.DELETE_DIR:i=(({path:e})=>(r.FS.rmdir(e),!0))(o);break;case e.MOUNT:i=(({fsType:e,options:t,mountPoint:a})=>{let s=r.FS.filesystems[e];return!!s&&(r.FS.mount(s,t,a),!0)})(o);break;case e.UNMOUNT:i=(({mountPoint:e})=>(r.FS.unmount(e),!0))(o);break;default:throw s}}catch(r){self.postMessage({id:t,type:e.ERROR,data:r.toString()});return}i instanceof Uint8Array&&c.push(i.buffer),self.postMessage({id:t,type:a,data:i},c)}})(),_N_E={}})();
|
||||
//# sourceMappingURL=818.92d6c0498cff915c.js.map
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,2 @@
|
||||
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[340],{81009:(c,a,t)=>{t.d(a,{O4U:()=>r,hL4:()=>e});var h=t(61913);function r(c){return(0,h.k5)({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C39.068,183.651,18.186,294.69,28.43,404.354a2.016,2.016,0,0,0,.765,1.375A487.666,487.666,0,0,0,176.02,479.918a1.9,1.9,0,0,0,2.063-.676A348.2,348.2,0,0,0,208.12,430.4a1.86,1.86,0,0,0-1.019-2.588,321.173,321.173,0,0,1-45.868-21.853,1.885,1.885,0,0,1-.185-3.126c3.082-2.309,6.166-4.711,9.109-7.137a1.819,1.819,0,0,1,1.9-.256c96.229,43.917,200.41,43.917,295.5,0a1.812,1.812,0,0,1,1.924.233c2.944,2.426,6.027,4.851,9.132,7.16a1.884,1.884,0,0,1-.162,3.126,301.407,301.407,0,0,1-45.89,21.83,1.875,1.875,0,0,0-1,2.611,391.055,391.055,0,0,0,30.014,48.815,1.864,1.864,0,0,0,2.063.7A486.048,486.048,0,0,0,610.7,405.729a1.882,1.882,0,0,0,.765-1.352C623.729,277.594,590.933,167.465,524.531,69.836ZM222.491,337.58c-28.972,0-52.844-26.587-52.844-59.239S193.056,219.1,222.491,219.1c29.665,0,53.306,26.82,52.843,59.239C275.334,310.993,251.924,337.58,222.491,337.58Zm195.38,0c-28.971,0-52.843-26.587-52.843-59.239S388.437,219.1,417.871,219.1c29.667,0,53.307,26.82,52.844,59.239C470.715,310.993,447.538,337.58,417.871,337.58Z"},child:[]}]})(c)}function e(c){return(0,h.k5)({tag:"svg",attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"},child:[]}]})(c)}}}]);
|
||||
//# sourceMappingURL=8340eb7d-6d11ac2b571c9b82.js.map
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,2 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[492],{4831:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"styles",{enumerable:!0,get:function(){return l}});let l={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{display:"inline-block"},h1:{display:"inline-block",margin:"0 20px 0 0",padding:"0 23px 0 0",fontSize:24,fontWeight:500,verticalAlign:"top",lineHeight:"49px"},h2:{fontSize:14,fontWeight:400,lineHeight:"49px",margin:0}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},21566:(e,t,l)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=l(28064),n=l(86760),o=function(){return(0,r.jsx)("html",{children:(0,r.jsx)("body",{children:(0,r.jsx)(n.HTTPAccessErrorFallback,{status:404,message:"This page could not be found."})})})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},43799:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_not-found/page",function(){return l(21566)}])},86760:(e,t,l)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HTTPAccessErrorFallback",{enumerable:!0,get:function(){return o}});let r=l(28064),n=l(4831);function o(e){let{status:t,message:l}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:t+": "+l}),(0,r.jsx)("div",{style:n.styles.error,children:(0,r.jsxs)("div",{children:[(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}),(0,r.jsx)("h1",{className:"next-error-h1",style:n.styles.h1,children:t}),(0,r.jsx)("div",{style:n.styles.desc,children:(0,r.jsx)("h2",{style:n.styles.h2,children:l})})]})})]})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}},e=>{e.O(0,[673,650,358],()=>e(e.s=43799)),_N_E=e.O()}]);
|
||||
//# sourceMappingURL=page-f1509f6d9fc05993.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"static/chunks/app/_not-found/page-f1509f6d9fc05993.js","mappings":"2KAAaA,qCAAAA,KAAN,IAAMA,EAA8C,CACzDC,MAAO,CAELC,WACE,8FACFC,OAAQ,QACRC,UAAW,SACXC,QAAS,OACTC,cAAe,SACfC,WAAY,SACZC,eAAgB,QAClB,EAEAC,KAAM,CACJJ,QAAS,cACX,EAEAK,GAAI,CACFL,QAAS,eACTM,OAAQ,aACRC,QAAS,aACTC,SAAU,GACVC,WAAY,IACZC,cAAe,MACfC,WAAY,MACd,EAEAC,GAAI,CACFJ,SAAU,GACVC,WAAY,IACZE,WAAY,OACZL,OAAQ,CACV,CACF,0UClBA,6DAfwC,OAexC,EAbA,SAASO,EACP,MACE,UAACC,OAAAA,UACC,UAACC,OAAAA,UACC,UAACC,EAAAA,uBAAuB,EACtBC,OAAQ,IACRC,QAAS,qCAKnB,0OCZA,4CACA,mBACA,WACA,OAAe,EAAQ,KAA2H,CAClJ,EACA,SAFsB,0HCFNF,qCAAAA,wBAFO,MAEhB,SAASA,EAAwB,CAMvC,EANuC,WACtCC,CAAM,SACNC,CAAO,CAIR,CANuC,EAOtC,MACE,iCAEE,UAACC,QAAAA,UAAUF,EAAO,KAAIC,IAEtB,UAACE,MAAAA,CAAIC,MAAO1B,EAAAA,MAAM,CAACC,KAAK,UACtB,WAACwB,MAAAA,WACC,UAACC,QAAAA,CACCC,wBAAyB,CAcvBC,OAAS,+NACX,IAEF,UAAClB,KAAAA,CAAGmB,UAAU,gBAAgBH,MAAO1B,EAAAA,MAAM,CAACU,EAAE,UAC3CY,IAEH,UAACG,MAAAA,CAAIC,MAAO1B,EAAAA,MAAM,CAACS,IAAI,UACrB,UAACQ,KAAAA,CAAGS,MAAO1B,EAAAA,MAAM,CAACiB,EAAE,UAAGM,aAMnC","sources":["webpack://_N_E/../../../src/client/components/styles/access-error-styles.ts","webpack://_N_E/../../../src/client/components/builtin/global-not-found.tsx","webpack://_N_E/?530c","webpack://_N_E/../../../src/client/components/http-access-fallback/error-fallback.tsx"],"sourcesContent":["export const styles: Record<string, React.CSSProperties> = {\n error: {\n // https://github.com/sindresorhus/modern-normalize/blob/main/modern-normalize.css#L38-L52\n fontFamily:\n 'system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"',\n height: '100vh',\n textAlign: 'center',\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n justifyContent: 'center',\n },\n\n desc: {\n display: 'inline-block',\n },\n\n h1: {\n display: 'inline-block',\n margin: '0 20px 0 0',\n padding: '0 23px 0 0',\n fontSize: 24,\n fontWeight: 500,\n verticalAlign: 'top',\n lineHeight: '49px',\n },\n\n h2: {\n fontSize: 14,\n fontWeight: 400,\n lineHeight: '49px',\n margin: 0,\n },\n}\n","import { HTTPAccessErrorFallback } from '../http-access-fallback/error-fallback'\n\nfunction GlobalNotFound() {\n return (\n <html>\n <body>\n <HTTPAccessErrorFallback\n status={404}\n message={'This page could not be found.'}\n />\n </body>\n </html>\n )\n}\n\nexport default GlobalNotFound\n","\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/_not-found/page\",\n function () {\n return require(\"../../node_modules/.bun/next@15.4.5+6dbf9a050bc9aadb/node_modules/next/dist/client/components/builtin/global-not-found.js\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/_not-found/page\"])\n });\n }\n ","import { styles } from '../styles/access-error-styles'\n\nexport function HTTPAccessErrorFallback({\n status,\n message,\n}: {\n status: number\n message: string\n}) {\n return (\n <>\n {/* <head> */}\n <title>{`${status}: ${message}`}</title>\n {/* </head> */}\n <div style={styles.error}>\n <div>\n <style\n dangerouslySetInnerHTML={{\n /* Minified CSS from\n body { margin: 0; color: #000; background: #fff; }\n .next-error-h1 {\n border-right: 1px solid rgba(0, 0, 0, .3);\n }\n\n @media (prefers-color-scheme: dark) {\n body { color: #fff; background: #000; }\n .next-error-h1 {\n border-right: 1px solid rgba(255, 255, 255, .3);\n }\n }\n */\n __html: `body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}`,\n }}\n />\n <h1 className=\"next-error-h1\" style={styles.h1}>\n {status}\n </h1>\n <div style={styles.desc}>\n <h2 style={styles.h2}>{message}</h2>\n </div>\n </div>\n </div>\n </>\n )\n}\n"],"names":["styles","error","fontFamily","height","textAlign","display","flexDirection","alignItems","justifyContent","desc","h1","margin","padding","fontSize","fontWeight","verticalAlign","lineHeight","h2","GlobalNotFound","html","body","HTTPAccessErrorFallback","status","message","title","div","style","dangerouslySetInnerHTML","__html","className"],"sourceRoot":"","ignoreList":[]}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,475,784],{11640:()=>{}},_=>{_.O(0,[673,650,358],()=>_(_.s=11640)),_N_E=_.O()}]);
|
||||
@@ -0,0 +1,2 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[234],{59182:(e,i,s)=>{Promise.resolve().then(s.bind(s,84340))},84340:(e,i,s)=>{"use strict";s.r(i),s.d(i,{default:()=>j});var l=s(28064),n=s(74188),a=s(59726),c=s(68820),d=s(85877),r=s(31744),t=s(4976),m=s(2688),x=s(18377),h=s(9466),o=s(82337),u=s(8435),z=s(89100),f=s(87819);function j(){let{toolsPanel:e,previewPanel:i,mainContent:s,timeline:j,setToolsPanel:w,setPreviewPanel:S,setMainContent:N,setTimeline:p,propertiesPanel:v,setPropertiesPanel:_}=(0,h.v)(),{activeProject:b,loadProject:R,createNewProject:k,isInvalidProjectId:E,markProjectIdAsInvalid:H}=(0,o.I)(),V=(0,a.useParams)(),g=(0,a.useRouter)(),M=V.project_id;return(0,z.z)(),(0,n.useEffect)(()=>{(async()=>{if(M&&(null==b?void 0:b.id)!==M)try{await R(M)}catch(e){try{let e=await k("Untitled Project");g.replace("/editor/".concat(e))}catch(e){}}})()},[M,b,R,k,g]),(0,l.jsx)(u.z,{children:(0,l.jsxs)("div",{className:"h-screen w-screen flex flex-col bg-background overflow-hidden",children:[(0,l.jsx)(x.X,{}),(0,l.jsx)("div",{className:"flex-1 min-h-0 min-w-0",children:(0,l.jsxs)(c.HK,{direction:"vertical",className:"h-full w-full gap-[0.18rem]",children:[(0,l.jsx)(c.wV,{defaultSize:s,minSize:30,maxSize:85,onResize:N,className:"min-h-0",children:(0,l.jsxs)(c.HK,{direction:"horizontal",className:"h-full w-full gap-[0.19rem] px-3",children:[(0,l.jsx)(c.wV,{defaultSize:e,minSize:15,maxSize:40,onResize:w,className:"min-w-0 rounded-sm",children:(0,l.jsx)(d.l,{})}),(0,l.jsx)(c.WM,{withHandle:!0}),(0,l.jsx)(c.wV,{defaultSize:i,minSize:30,onResize:S,className:"min-w-0 min-h-0 flex-1",children:(0,l.jsx)(m.x,{})}),(0,l.jsx)(c.WM,{withHandle:!0}),(0,l.jsx)(c.wV,{defaultSize:v,minSize:15,maxSize:40,onResize:_,className:"min-w-0 rounded-sm",children:(0,l.jsx)(r.E,{})})]})}),(0,l.jsx)(c.WM,{withHandle:!0}),(0,l.jsx)(c.wV,{defaultSize:j,minSize:15,maxSize:70,onResize:p,className:"min-h-0 px-3 pb-3",children:(0,l.jsx)(t.K,{})})]})}),(0,l.jsx)(f.M,{})]})})}}},e=>{e.O(0,[34,340,602,239,96,876,7,5,653,260,83,119,622,673,650,358],()=>e(e.s=59182)),_N_E=e.O()}]);
|
||||
//# sourceMappingURL=page-e9e7e9ef8e407ff6.js.map
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,2 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[766],{67207:(e,s,i)=>{Promise.resolve().then(i.bind(i,93216))},93216:(e,s,i)=>{"use strict";i.r(s),i.d(s,{default:()=>S});var n=i(28064),l=i(74188),a=i(59726),c=i(68820),r=i(85877),d=i(31744),t=i(4976),x=i(2688),m=i(18377),h=i(9466),u=i(82337),f=i(8435),o=i(89100),j=i(87819),z=i(97215);function w(){let e=(0,a.useSearchParams)();(0,a.useRouter)();let s=e.get("project"),{toolsPanel:i,previewPanel:w,mainContent:S,timeline:v,setToolsPanel:N,setPreviewPanel:p,setMainContent:b,setTimeline:g,propertiesPanel:k,setPropertiesPanel:R}=(0,h.v)(),{activeProject:_,loadProject:E,createNewProject:H}=(0,u.I)();return(0,o.z)(),(0,l.useEffect)(()=>{(async()=>{if(!s)return(0,z.vv)();if((null==_?void 0:_.id)!==s)try{await E(s)}catch(e){(0,z.vv)()}})()},[s,_,E]),(0,n.jsx)(f.z,{children:(0,n.jsxs)("div",{className:"h-screen w-screen flex flex-col bg-background overflow-hidden",children:[(0,n.jsx)(m.X,{}),(0,n.jsx)("div",{className:"flex-1 min-h-0 min-w-0",children:(0,n.jsxs)(c.HK,{direction:"vertical",className:"h-full w-full gap-[0.18rem]",children:[(0,n.jsx)(c.wV,{defaultSize:S,minSize:30,maxSize:85,onResize:b,className:"min-h-0",children:(0,n.jsxs)(c.HK,{direction:"horizontal",className:"h-full w-full gap-[0.19rem] px-3",children:[(0,n.jsx)(c.wV,{defaultSize:i,minSize:15,maxSize:40,onResize:N,className:"min-w-0 rounded-sm",children:(0,n.jsx)(r.l,{})}),(0,n.jsx)(c.WM,{withHandle:!0}),(0,n.jsx)(c.wV,{defaultSize:w,minSize:30,onResize:p,className:"min-w-0 min-h-0 flex-1",children:(0,n.jsx)(x.x,{})}),(0,n.jsx)(c.WM,{withHandle:!0}),(0,n.jsx)(c.wV,{defaultSize:k,minSize:15,maxSize:40,onResize:R,className:"min-w-0",children:(0,n.jsx)(d.E,{})})]})}),(0,n.jsx)(c.WM,{withHandle:!0}),(0,n.jsx)(c.wV,{defaultSize:v,minSize:15,maxSize:70,onResize:g,className:"min-h-0 px-3 pb-3",children:(0,n.jsx)(t.K,{})})]})}),(0,n.jsx)(j.M,{})]})})}function S(){return(0,n.jsx)(l.Suspense,{fallback:(0,n.jsx)("div",{className:"h-screen w-screen flex items-center justify-center bg-background",children:(0,n.jsx)("div",{className:"text-muted-foreground",children:"Loading editor..."})}),children:(0,n.jsx)(w,{})})}}},e=>{e.O(0,[34,340,602,239,96,876,7,5,653,260,83,119,622,673,650,358],()=>e(e.s=67207)),_N_E=e.O()}]);
|
||||
//# sourceMappingURL=page-2afaedc8b13858d7.js.map
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,2 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[177],{28887:(e,t,o)=>{"use strict";o.d(t,{StorageProvider:()=>l});var r=o(28064),s=o(74188),i=o(82337),a=o(19439),n=o(61557);let d=(0,s.createContext)(null);function l(e){let{children:t}=e,[o,l]=(0,s.useState)({isInitialized:!1,isLoading:!0,hasSupport:!1,error:null}),u=(0,i.I)(e=>e.loadAllProjects);return(0,s.useEffect)(()=>{(async()=>{l(e=>({...e,isLoading:!0}));try{let e=a.P.isFullySupported();e||n.oR.warning("Storage not fully supported. Some features may not work."),await u(),l({isInitialized:!0,isLoading:!1,hasSupport:e,error:null})}catch(e){l({isInitialized:!1,isLoading:!1,hasSupport:a.P.isFullySupported(),error:e instanceof Error?e.message:"Unknown error"})}})()},[u]),(0,r.jsx)(d.Provider,{value:o,children:t})}},46438:(e,t,o)=>{"use strict";o.d(t,{TooltipProvider:()=>n,ZI:()=>u,k$:()=>l,m_:()=>d});var r=o(28064),s=o(74188),i=o(1005),a=o(93146);let n=i.Provider,d=i.Root,l=i.Trigger,u=s.forwardRef((e,t)=>{let{className:o,sideOffset:s=4,...n}=e;return(0,r.jsx)(i.Portal,{children:(0,r.jsx)(i.Content,{ref:t,sideOffset:s,className:(0,a.cn)("z-50 overflow-hidden rounded-md bg-foreground px-3 py-1.5 text-xs text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o),...n})})});u.displayName=i.Content.displayName},60913:()=>{},84434:(e,t,o)=>{Promise.resolve().then(o.t.bind(o,60913,23)),Promise.resolve().then(o.bind(o,28887)),Promise.resolve().then(o.bind(o,93826)),Promise.resolve().then(o.bind(o,46438)),Promise.resolve().then(o.bind(o,60331)),Promise.resolve().then(o.t.bind(o,54152,23)),Promise.resolve().then(o.t.bind(o,13746,23)),Promise.resolve().then(o.t.bind(o,19947,23)),Promise.resolve().then(o.t.bind(o,82189,23)),Promise.resolve().then(o.t.bind(o,93237,23)),Promise.resolve().then(o.t.bind(o,53322,23))},93826:(e,t,o)=>{"use strict";o.d(t,{Toaster:()=>a});var r=o(28064),s=o(60331),i=o(61557);let a=e=>{let{...t}=e,{theme:o="system"}=(0,s.D)();return(0,r.jsx)(i.l$,{theme:o,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...t})}}},e=>{e.O(0,[734,34,602,96,7,5,772,83,673,650,358],()=>e(e.s=84434)),_N_E=e.O()}]);
|
||||
//# sourceMappingURL=layout-59bc59dfb3cec660.js.map
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,475,784],{11640:()=>{}},_=>{_.O(0,[673,650,358],()=>_(_.s=11640)),_N_E=_.O()}]);
|
||||
@@ -0,0 +1 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,475,784],{11640:()=>{}},_=>{_.O(0,[673,650,358],()=>_(_.s=11640)),_N_E=_.O()}]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,2 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[102],{6686:(e,t,r)=>{Promise.resolve().then(r.bind(r,27591))},15467:(e,t,r)=>{"use strict";r.d(t,{H:()=>i});var n=r(28064),s=r(93146);function i(e){let{leftContent:t,centerContent:r,rightContent:i,className:a,children:o}=e;return o?(0,n.jsx)("header",{className:(0,s.cn)("px-6 h-16 flex items-center",a),children:o}):(0,n.jsxs)("header",{className:(0,s.cn)("px-6 h-14 flex justify-between items-center",a),children:[t&&(0,n.jsx)("div",{className:"flex items-center",children:t}),r&&(0,n.jsx)("div",{className:"flex items-center",children:r}),i&&(0,n.jsx)("div",{className:"flex items-center",children:i})]})}},15700:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(88077).A)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},27591:(e,t,r)=>{"use strict";r.d(t,{Header:()=>l});var n=r(28064),s=r(35021),i=r.n(s),a=r(61309),o=r(15700),c=r(15467),d=r(30461);function l(){let e=(0,n.jsxs)(i(),{href:"/",className:"flex items-center gap-3",children:[(0,n.jsx)(d.default,{src:"/opencut/logo.svg",alt:"OpenCut Logo",width:32,height:32}),(0,n.jsx)("span",{className:"text-xl font-medium hidden md:block",children:"OpenCut"})]}),t=(0,n.jsxs)("nav",{className:"flex items-center gap-1",children:[(0,n.jsxs)("div",{className:"flex items-center gap-4",children:[(0,n.jsx)(i(),{href:"/blog",children:(0,n.jsx)(a.$,{variant:"text",className:"text-sm p-0",children:"Blog"})}),(0,n.jsx)(i(),{href:"/contributors",children:(0,n.jsx)(a.$,{variant:"text",className:"text-sm p-0",children:"Contributors"})})]}),(0,n.jsx)(i(),{href:"/projects",children:(0,n.jsxs)(a.$,{size:"sm",className:"text-sm ml-4",children:["Projects",(0,n.jsx)(o.A,{className:"h-4 w-4"})]})})]});return(0,n.jsx)("div",{className:"mx-4 md:mx-0",children:(0,n.jsx)(c.H,{className:"bg-accent border rounded-2xl max-w-3xl mx-auto mt-4 pl-4 pr-[14px]",leftContent:e,rightContent:t})})}},61309:(e,t,r)=>{"use strict";r.d(t,{$:()=>d});var n=r(28064),s=r(74188),i=r(8059),a=r(24827),o=r(93146);let c=(0,a.F)("inline-flex items-center cursor-pointer justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-hidden 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-foreground text-background shadow-sm hover:bg-foreground/90",primary:"bg-primary text-primary-foreground shadow-sm hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90",outline:"border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",text:"bg-transparent p-0 rounded-none opacity-100 hover:opacity-50 transition-opacity",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-sm px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-7 w-7"}},defaultVariants:{variant:"default",size:"default"}}),d=s.forwardRef((e,t)=>{let{className:r,variant:s,size:a,asChild:d=!1,...l}=e,u=d?i.DX:"button";return(0,n.jsx)(u,{className:(0,o.cn)(c({variant:s,size:a,className:r})),ref:t,...l})});d.displayName="Button"},93146:(e,t,r)=>{"use strict";r.d(t,{C7:()=>l,Fe:()=>o,bT:()=>u,cn:()=>i,lg:()=>d,lk:()=>a,mr:()=>c});var n=r(54083),s=r(14234);function i(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,s.QP)((0,n.$)(t))}function a(){if("undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID)return crypto.randomUUID();let e=new Uint8Array(16);crypto.getRandomValues(e),e[6]=15&e[6]|64,e[8]=63&e[8]|128;let t=[...e].map(e=>e.toString(16).padStart(2,"0"));return t.slice(0,4).join("")+"-"+t.slice(4,6).join("")+"-"+t.slice(6,8).join("")+"-"+t.slice(8,10).join("")+"-"+t.slice(10,16).join("")}function o(e){return!!e&&(e instanceof Element||e instanceof HTMLElement)}function c(e){return!!e.isContentEditable||("INPUT"===e.tagName||"TEXTAREA"===e.tagName)&&!e.disabled}function d(){return/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)}function l(){return d()?"⌘":"Ctrl"}function u(){return d()?"⌥":"Alt"}}},e=>{e.O(0,[602,239,673,650,358],()=>e(e.s=6686)),_N_E=e.O()}]);
|
||||
//# sourceMappingURL=page-bbef0120e4bda5de.js.map
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,2 @@
|
||||
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[558],{52057:(C,t,r)=>{r.d(t,{r53:()=>l,rCx:()=>c});var a=r(61913);function l(C){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M19.3034 5.33716C17.9344 4.71103 16.4805 4.2547 14.9629 4C14.7719 4.32899 14.5596 4.77471 14.411 5.12492C12.7969 4.89144 11.1944 4.89144 9.60255 5.12492C9.45397 4.77471 9.2311 4.32899 9.05068 4C7.52251 4.2547 6.06861 4.71103 4.70915 5.33716C1.96053 9.39111 1.21766 13.3495 1.5891 17.2549C3.41443 18.5815 5.17612 19.388 6.90701 19.9187C7.33151 19.3456 7.71356 18.73 8.04255 18.0827C7.41641 17.8492 6.82211 17.5627 6.24904 17.2231C6.39762 17.117 6.5462 17.0003 6.68416 16.8835C10.1438 18.4648 13.8911 18.4648 17.3082 16.8835C17.4568 17.0003 17.5948 17.117 17.7434 17.2231C17.1703 17.5627 16.576 17.8492 15.9499 18.0827C16.2789 18.73 16.6609 19.3456 17.0854 19.9187C18.8152 19.388 20.5875 18.5815 22.4033 17.2549C22.8596 12.7341 21.6806 8.80747 19.3034 5.33716ZM8.5201 14.8459C7.48007 14.8459 6.63107 13.9014 6.63107 12.7447C6.63107 11.5879 7.45884 10.6434 8.5201 10.6434C9.57071 10.6434 10.4303 11.5879 10.4091 12.7447C10.4091 13.9014 9.57071 14.8459 8.5201 14.8459ZM15.4936 14.8459C14.4535 14.8459 13.6034 13.9014 13.6034 12.7447C13.6034 11.5879 14.4323 10.6434 15.4936 10.6434C16.5442 10.6434 17.4038 11.5879 17.3825 12.7447C17.3825 13.9014 16.5548 14.8459 15.4936 14.8459Z"},child:[]}]})(C)}function c(C){return(0,a.k5)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M10.4883 14.651L15.25 21H22.25L14.3917 10.5223L20.9308 3H18.2808L13.1643 8.88578L8.75 3H1.75L9.26086 13.0145L2.31915 21H4.96917L10.4883 14.651ZM16.25 19L5.75 5H7.75L18.25 19H16.25Z"},child:[]}]})(C)}}}]);
|
||||
//# sourceMappingURL=d07cf561-49f9e4cc1070f44c.js.map
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,2 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[358],{30497:(e,s,n)=>{Promise.resolve().then(n.t.bind(n,74376,23)),Promise.resolve().then(n.t.bind(n,90729,23)),Promise.resolve().then(n.t.bind(n,44211,23)),Promise.resolve().then(n.t.bind(n,23752,23)),Promise.resolve().then(n.t.bind(n,23116,23)),Promise.resolve().then(n.t.bind(n,25524,23)),Promise.resolve().then(n.t.bind(n,54876,23)),Promise.resolve().then(n.t.bind(n,78074,23)),Promise.resolve().then(n.bind(n,45484))},96536:()=>{}},e=>{var s=s=>e(e.s=s);e.O(0,[673,650],()=>(s(65840),s(30497))),_N_E=e.O()}]);
|
||||
//# sourceMappingURL=main-app-9cf00707c1133573.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"static/chunks/main-app-9cf00707c1133573.js","mappings":"+EAAA,4CAA0K,CAE1K,4CAAgK,CAEhK,4CAAmK,CAEnK,4CAAyL,CAEzL,4CAAkK,CAElK,4CAA6K,CAE7K,4CAAgL,CAEhL,4CAAiL,CAEjL,uCAAmK","sources":["webpack://_N_E/?bf8d","webpack://_N_E/ignored|I:\\OpenCut\\node_modules\\.bun\\next@15.4.5+6dbf9a050bc9aadb\\node_modules\\next\\dist\\lib|private-next-instrumentation-client"],"sourcesContent":["import(/* webpackMode: \"eager\" */ \"I:\\\\OpenCut\\\\node_modules\\\\.bun\\\\next@15.4.5+6dbf9a050bc9aadb\\\\node_modules\\\\next\\\\dist\\\\client\\\\components\\\\builtin\\\\global-error.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"I:\\\\OpenCut\\\\node_modules\\\\.bun\\\\next@15.4.5+6dbf9a050bc9aadb\\\\node_modules\\\\next\\\\dist\\\\client\\\\components\\\\client-page.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"I:\\\\OpenCut\\\\node_modules\\\\.bun\\\\next@15.4.5+6dbf9a050bc9aadb\\\\node_modules\\\\next\\\\dist\\\\client\\\\components\\\\client-segment.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"I:\\\\OpenCut\\\\node_modules\\\\.bun\\\\next@15.4.5+6dbf9a050bc9aadb\\\\node_modules\\\\next\\\\dist\\\\client\\\\components\\\\http-access-fallback\\\\error-boundary.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"I:\\\\OpenCut\\\\node_modules\\\\.bun\\\\next@15.4.5+6dbf9a050bc9aadb\\\\node_modules\\\\next\\\\dist\\\\client\\\\components\\\\layout-router.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"I:\\\\OpenCut\\\\node_modules\\\\.bun\\\\next@15.4.5+6dbf9a050bc9aadb\\\\node_modules\\\\next\\\\dist\\\\client\\\\components\\\\metadata\\\\async-metadata.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"I:\\\\OpenCut\\\\node_modules\\\\.bun\\\\next@15.4.5+6dbf9a050bc9aadb\\\\node_modules\\\\next\\\\dist\\\\client\\\\components\\\\metadata\\\\metadata-boundary.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"I:\\\\OpenCut\\\\node_modules\\\\.bun\\\\next@15.4.5+6dbf9a050bc9aadb\\\\node_modules\\\\next\\\\dist\\\\client\\\\components\\\\render-from-template-context.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"I:\\\\OpenCut\\\\node_modules\\\\.bun\\\\next@15.4.5+6dbf9a050bc9aadb\\\\node_modules\\\\next\\\\dist\\\\lib\\\\metadata\\\\generate\\\\icon-mark.js\");\n","/* (ignored) */"],"names":[],"sourceRoot":"","ignoreList":[1]}
|
||||
@@ -0,0 +1,2 @@
|
||||
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[214,636],{30214:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});let u=n(78873),l=n(485),a=u._(n(30233)),o=n(84536);async function r(e){let{Component:t,ctx:n}=e;return{pageProps:await (0,o.loadGetInitialProps)(t,n)}}class s extends a.default.Component{render(){let{Component:e,pageProps:t}=this.props;return(0,l.jsx)(e,{...t})}}s.origGetInitialProps=r,s.getInitialProps=r,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},56553:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(30214)}])}},e=>{var t=t=>e(e.s=t);e.O(0,[593,792],()=>(t(56553),t(35984))),_N_E=e.O()}]);
|
||||
//# sourceMappingURL=_app-858a79f1b24d6a31.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"static/chunks/pages/_app-858a79f1b24d6a31.js","mappings":"wNAiCqBA,qCAjCH,YAWkB,OAcpC,eAAeC,EAAmB,CAGrB,EAHqB,cAChCC,CAAS,KACTC,CAAG,CACQ,CAHqB,EAKhC,MAAO,CAAEC,UADS,MAAMC,CAAAA,EAAAA,EAAAA,mBAAAA,EAAoBH,EAAWC,EACpC,CACrB,CAEe,MAAMH,UAAsCM,EAAAA,OAAK,CAACJ,SAAS,CAOxEK,QAAS,CACP,GAAM,WAAEL,CAAS,CAAEE,WAAS,CAAE,CAAG,IAAI,CAACI,KAAK,CAE3C,MAAO,UAACN,EAAAA,CAAW,GAAGE,CAAS,EACjC,CACF,CAZqBJ,EAIZS,mBAAAA,CAAsBR,EAJVD,EAKZU,eAAAA,CAAkBT,0OCrC3B,4CACA,QACA,WACA,OAAe,EAAQ,KAAsB,CAC7C,EACA,SAFsB","sources":["webpack://_N_E/../../src/pages/_app.tsx","webpack://_N_E/"],"sourcesContent":["import React from 'react'\n\nimport type {\n AppContextType,\n AppInitialProps,\n AppPropsType,\n NextWebVitalsMetric,\n AppType,\n} from '../shared/lib/utils'\nimport type { Router } from '../client/router'\n\nimport { loadGetInitialProps } from '../shared/lib/utils'\n\nexport type { AppInitialProps, AppType }\n\nexport type { NextWebVitalsMetric }\n\nexport type AppContext = AppContextType<Router>\n\nexport type AppProps<P = any> = AppPropsType<Router, P>\n\n/**\n * `App` component is used for initialize of pages. It allows for overwriting and full control of the `page` initialization.\n * This allows for keeping state between navigation, custom error handling, injecting additional data.\n */\nasync function appGetInitialProps({\n Component,\n ctx,\n}: AppContext): Promise<AppInitialProps> {\n const pageProps = await loadGetInitialProps(Component, ctx)\n return { pageProps }\n}\n\nexport default class App<P = any, CP = {}, S = {}> extends React.Component<\n P & AppProps<CP>,\n S\n> {\n static origGetInitialProps = appGetInitialProps\n static getInitialProps = appGetInitialProps\n\n render() {\n const { Component, pageProps } = this.props as AppProps<CP>\n\n return <Component {...pageProps} />\n }\n}\n","\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/_app\",\n function () {\n return require(\"next/dist/pages/_app\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/_app\"])\n });\n }\n "],"names":["App","appGetInitialProps","Component","ctx","pageProps","loadGetInitialProps","React","render","props","origGetInitialProps","getInitialProps"],"sourceRoot":"","ignoreList":[]}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,2 @@
|
||||
(()=>{"use strict";var e={},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var a=t[o]={exports:{}},i=!0;try{e[o].call(a.exports,a,a.exports,r),i=!1}finally{i&&delete t[o]}return a.exports}r.m=e,(()=>{var e=[];r.O=(t,o,n,a)=>{if(o){a=a||0;for(var i=e.length;i>0&&e[i-1][2]>a;i--)e[i]=e[i-1];e[i]=[o,n,a];return}for(var u=1/0,i=0;i<e.length;i++){for(var[o,n,a]=e[i],l=!0,c=0;c<o.length;c++)(!1&a||u>=a)&&Object.keys(r.O).every(e=>r.O[e](o[c]))?o.splice(c--,1):(l=!1,a<u&&(u=a));if(l){e.splice(i--,1);var d=n();void 0!==d&&(t=d)}}return t}})(),r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;r.t=function(o,n){if(1&n&&(o=this(o)),8&n||"object"==typeof o&&o&&(4&n&&o.__esModule||16&n&&"function"==typeof o.then))return o;var a=Object.create(null);r.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var u=2&n&&o;"object"==typeof u&&!~e.indexOf(u);u=t(u))Object.getOwnPropertyNames(u).forEach(e=>i[e]=()=>o[e]);return i.default=()=>o,r.d(a,i),a}})(),r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((t,o)=>(r.f[o](e,t),t),[])),r.u=e=>"static/chunks/"+e+"."+({214:"f4c68eef357f3bfd",787:"68226320d86b7d57",818:"92d6c0498cff915c"})[e]+".js",r.miniCssF=e=>{},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="_N_E:";r.l=(o,n,a,i)=>{if(e[o])return void e[o].push(n);if(void 0!==a)for(var u,l,c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var f=c[d];if(f.getAttribute("src")==o||f.getAttribute("data-webpack")==t+a){u=f;break}}u||(l=!0,(u=document.createElement("script")).charset="utf-8",u.timeout=120,r.nc&&u.setAttribute("nonce",r.nc),u.setAttribute("data-webpack",t+a),u.src=r.tu(o)),e[o]=[n];var s=(t,r)=>{u.onerror=u.onload=null,clearTimeout(p);var n=e[o];if(delete e[o],u.parentNode&&u.parentNode.removeChild(u),n&&n.forEach(e=>e(r)),t)return t(r)},p=setTimeout(s.bind(null,void 0,{type:"timeout",target:u}),12e4);u.onerror=s.bind(null,u.onerror),u.onload=s.bind(null,u.onload),l&&document.head.appendChild(u)}})(),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:e=>e},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("nextjs#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="/opencut/_next/",(()=>{r.b=document.baseURI||self.location.href;var e={68:0,734:0,34:0};r.f.j=(t,o)=>{var n=r.o(e,t)?e[t]:void 0;if(0!==n)if(n)o.push(n[2]);else if(/^((|7)34|68)$/.test(t))e[t]=0;else{var a=new Promise((r,o)=>n=e[t]=[r,o]);o.push(n[2]=a);var i=r.p+r.u(t),u=Error();r.l(i,o=>{if(r.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var a=o&&("load"===o.type?"missing":o.type),i=o&&o.target&&o.target.src;u.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",u.name="ChunkLoadError",u.type=a,u.request=i,n[1](u)}},"chunk-"+t,t)}},r.O.j=t=>0===e[t];var t=(t,o)=>{var n,a,[i,u,l]=o,c=0;if(i.some(t=>0!==e[t])){for(n in u)r.o(u,n)&&(r.m[n]=u[n]);if(l)var d=l(r)}for(t&&t(o);c<i.length;c++)a=i[c],r.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return r.O(d)},o=self.webpackChunk_N_E=self.webpackChunk_N_E||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})(),r.nc=void 0})();
|
||||
//# sourceMappingURL=webpack-24f21815d9be6e3d.js.map
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user