big change Inhaltstabelle und PDF

This commit is contained in:
salam committed 2025-11-03 18:14:46 +01:00
1 parent 2f6ae7e4a1
commit d5d1f743bb
58 files changed
+1244 -922

No files matched your search

@@ -17,12 +17,7 @@ class CreateProjektInhaltsverzeichnis
foreach ($inhaltsverzeichnis as $key => $value) { foreach ($inhaltsverzeichnis as $key => $value) {
$key++; $key++;
$text = Textblock::where('id', $value->textblock_id)->first();
$textblock = '';
if ($value->textblock_id > 0) {
$textblock = Textblock::where('id', $value->textblock_id)->pluck('textblock')->first();
}
$inhalt = new ProjektInhaltsverzeichnis; $inhalt = new ProjektInhaltsverzeichnis;
$inhalt->projekte_id = $record->id; $inhalt->projekte_id = $record->id;
$inhalt->sort = $key; $inhalt->sort = $key;
@@ -30,14 +25,15 @@ class CreateProjektInhaltsverzeichnis
$inhalt->name = $value->name; $inhalt->name = $value->name;
$inhalt->name2 = $value->name2; $inhalt->name2 = $value->name2;
$inhalt->ueberschrift_anzeigen = $value->ueberschrift_anzeigen; $inhalt->ueberschrift_anzeigen = $value->ueberschrift_anzeigen;
$inhalt->tabellen_id = $value->tabellen_id; $inhalt->inhaltselement_id = $value->inhaltselement_id;
$inhalt->textblock_id = $value->textblock_id;
$inhalt->part = $value->part; $inhalt->part = $value->part;
$inhalt->seite = $value->seite; $inhalt->seite = $value->seite;
$inhalt->neue_seite = $value->neue_seite; $inhalt->neue_seite = $value->neue_seite;
$inhalt->seitenzahl_anzeige = $value->seitenzahl_anzeige; $inhalt->seitenzahl_anzeige = $value->seitenzahl_anzeige;
$inhalt->no_edit = $value->no_edit; $inhalt->no_edit = $value->no_edit;
$inhalt->textblock = $textblock; $inhalt->textblock_name = $text->name ?? '';
$inhalt->textblock = $text->textblock ?? '';
$inhalt->textblock2 = $text->textblock2 ?? '';
$inhalt->save(); $inhalt->save();
} }
+34 -32
View File
@@ -100,39 +100,41 @@ class Pdf
$textblock = Format::fix_str($textblock); $textblock = Format::fix_str($textblock);
} }
$html = Ueberschrift::create($inhalt); $html = '';
// $html = Ueberschrift::load($inhalt);
if ($inhalt->name == 'DECKBLATT') { switch ($inhalt->inhaltselement_id) {
$html .= Deckblatt::create($textblock); case '9':
} elseif ($inhalt->name == 'INHALTSVERZEICHNIS') { $html .= Deckblatt::load($inhalt, $textblock);
$html .= Inhalt::create($projekte_id); break;
} else { // case '1':
// $html .= Inhalt::load($projekte_id);
if ($inhalt->textblock) { // break;
$html .= $textblock; // case '3':
} // $html .= Paragraph6::load($projekte_id);
// break;
switch ($inhalt->tabellen_id) { // case '4':
case '3': // $html .= Allgemeinflaechen::load($projekte_id);
$html .= Paragraph6::load($projekte_id); // break;
break; // case '5':
case '4': // $html .= ZuUndAbschlaege::load($projekte_id);
$html .= Allgemeinflaechen::load($projekte_id); // break;
break; // case '7':
case '5': // $html .= Zusammenstellung::load($projekte_id);
$html .= ZuUndAbschlaege::load($projekte_id); // break;
break; // case '8':
case '7': // $str = RichContentRenderer::make(self::$auftraggeber->referenz_formatting)->toHtml();
$html .= Zusammenstellung::load($projekte_id); // $html .= Format::fix_str($str);
break; // break;
case '8': // case '11':
$str = RichContentRenderer::make(self::$auftraggeber->referenz_formatting)->toHtml(); // $html .= DigitaleSignatur::load($projekte_id);
$html .= Format::fix_str($str); // break;
break; // default:
case '11': // $html = Ueberschrift::load($inhalt);
$html .= DigitaleSignatur::load($projekte_id); // if ($inhalt->textblock) {
break; // $html .= $textblock;
} // }
// break;
} }
if ($inhalt->seitenzahl_anzeige == 1) { if ($inhalt->seitenzahl_anzeige == 1) {
+8 -7
View File
@@ -8,7 +8,7 @@ use Filament\Forms\Components\RichEditor\RichContentRenderer;
class Deckblatt class Deckblatt
{ {
public static function create($textblock) public static function load($inhalt, $textblock)
{ {
// GUTACHTER // GUTACHTER
$html = '<div id="deckblatt-gutachter">'; $html = '<div id="deckblatt-gutachter">';
@@ -22,15 +22,15 @@ class Deckblatt
$html .= '</div>'; $html .= '</div>';
// PROJEKT // PROJEKT
$html .= '<div id="deckblatt-gutachten">'; $html .= '<div id="deckblatt-projekt">';
$html .= '<h1 style="font-size:28px;">Gutachten</h1>'; $html .= '<h1>'.trim($inhalt->name).'</h1>';
$html .= '<div class="base ml-1">'.trim(Pdf::$projekt->interner_name).'</div>'; $html .= '<p>'.trim(Pdf::$projekt->interner_name).'</p>';
$html .= '</div>'; $html .= '</div>';
$html .= '<div id="deckblatt-festsetzung">'; $html .= '<div id="deckblatt-festsetzung">';
$html .= '<h2>ZUR FESTSETZUNG DER NUTZWERTE</h2>'; $html .= '<h3>ZUR FESTSETZUNG DER NUTZWERTE</h3>';
$html .= '<div class="base">'.trim(Pdf::$projekt->offizieller_name).'</div>'; $html .= '<p>'.trim(Pdf::$projekt->offizieller_name).'</p>';
$html .= '<div class="base">'.trim($textblock).'</div>'; $html .= '<p>'.trim($textblock).'</p>';
$html .= '</div>'; $html .= '</div>';
// AUFTRAGGEBER // AUFTRAGGEBER
@@ -38,6 +38,7 @@ class Deckblatt
if (Pdf::$auftraggeber->logo && Pdf::$auftraggeber->logo_anzeigen) { if (Pdf::$auftraggeber->logo && Pdf::$auftraggeber->logo_anzeigen) {
$html .= '<div id="deckblatt-logo-auftraggeber" style="background-image: url(\''.public_path().'/storage/'.Pdf::$auftraggeber->logo.'\');"></div>'; $html .= '<div id="deckblatt-logo-auftraggeber" style="background-image: url(\''.public_path().'/storage/'.Pdf::$auftraggeber->logo.'\');"></div>';
} }
if (Pdf::$auftraggeber->referenz_formatting && Pdf::$auftraggeber->text_anzeigen) { if (Pdf::$auftraggeber->referenz_formatting && Pdf::$auftraggeber->text_anzeigen) {
$str = RichContentRenderer::make(Pdf::$auftraggeber->referenz_formatting)->toHtml(); $str = RichContentRenderer::make(Pdf::$auftraggeber->referenz_formatting)->toHtml();
$html .= Format::fix_str($str); $html .= Format::fix_str($str);
+1 -1
View File
@@ -8,7 +8,7 @@ use App\Models\ProjektInhaltsverzeichnis;
class Inhalt class Inhalt
{ {
public static function create($projekte_id) public static function load($projekte_id)
{ {
$html = '<table class="inhalt">'; $html = '<table class="inhalt">';
$inhalte = ProjektInhaltsverzeichnis::where('projekte_id', $projekte_id)->orderBy('sort')->get(); $inhalte = ProjektInhaltsverzeichnis::where('projekte_id', $projekte_id)->orderBy('sort')->get();
+1 -1
View File
@@ -6,7 +6,7 @@ use App\Actions\Generate\Utilities\Format;
class Ueberschrift class Ueberschrift
{ {
public static function create($inhalt) public static function load($inhalt)
{ {
if ($inhalt->ueberschrift_anzeigen) { if ($inhalt->ueberschrift_anzeigen) {
if ($inhalt->ordnungszahl * 1 > 0) { if ($inhalt->ordnungszahl * 1 > 0) {
@@ -2,13 +2,14 @@
namespace App\Filament\Resources\Inhaltsverzeichnis\Schemas; namespace App\Filament\Resources\Inhaltsverzeichnis\Schemas;
use App\Models\Tabellen; use App\Models\Inhaltselement;
use App\Models\Textblock; use App\Models\Textblock;
use Filament\Forms\Components\Checkbox; use Filament\Forms\Components\Checkbox;
use Filament\Forms\Components\Select; use Filament\Forms\Components\Select;
use Filament\Forms\Components\Textarea; use Filament\Forms\Components\Textarea;
use Filament\Forms\Components\TextInput; use Filament\Forms\Components\TextInput;
use Filament\Schemas\Components\Section; use Filament\Schemas\Components\Tabs;
use Filament\Schemas\Components\Tabs\Tab;
use Filament\Schemas\Schema; use Filament\Schemas\Schema;
class InhaltsverzeichnisForm class InhaltsverzeichnisForm
@@ -17,72 +18,75 @@ class InhaltsverzeichnisForm
{ {
return $schema return $schema
->components([ ->components([
Section::make('Überschrift') Tabs::make('Überschrift')
->schema([ ->tabs([
Checkbox::make('neue_seite') Tab::make('Überschrift')
->label('Start neuer Seite'), ->schema([
Checkbox::make('ueberschrift_anzeigen') Checkbox::make('neue_seite')
->label('Überschrift angezeigen'), ->label('Start neuer Seite'),
Textarea::make('name') Checkbox::make('ueberschrift_anzeigen')
->required() ->label('Überschrift angezeigen'),
->label('Überschrift in der Inhaltsangabe') Textarea::make('name')
->columnSpan(3), ->required()
Textarea::make('name2') ->label('Überschrift')
->label('Überschrift im Dokument') ->columnSpan(3),
->belowContent([ ]),
'Bei abweichender Überschrift im Dokument', Tab::make('Kapitel Index')
]) ->schema([
->columnSpan(3), TextInput::make('ordnungszahl')
TextInput::make('ordnungszahl') ->label('Kapitel Index')
->label('Kapitel Index') ->placeholder('3.21')
->placeholder('3.21') ->numeric()
->numeric() ->default(0)
->default(0) ->belowContent([
->belowContent([ 'Bei "0" wird der Index im Inhaltsverzeichnis und bei der Überschrift im Dokument nicht angezeigt.',
'Bei "0" wird der Index im PDF nicht angezeigt', ])
]) ->columnSpan(1),
->columnSpan(1), ])->columnSpanFull(),
TextInput::make('seite') Tab::make('Seitenzahl')
->label('Seitenzahl') ->schema([
->numeric() Checkbox::make('seitenzahl_anzeige')
->default(0) ->label('Seitenzahl angezeigen'),
->belowContent([ TextInput::make('seite')
'Bei "0" wird die Seitenzahl automatisch generiert', ->label('Seitenzahl')
]) ->numeric()
->columnSpan(1), ->default(0)
Checkbox::make('seitenzahl_anzeige') ->belowContent([
->label('Seitenzahl angezeigen'), 'Bei "0" wird die Seitenzahl automatisch generiert',
])->columnSpanFull(), ])
Section::make('Textblock und Tabelle') ->columnSpan(1),
->hiddenLabel() ])->columnSpanFull(),
->description('Ausgabe Textblock vor Tabelle') Tab::make('Inhaltselement')
->schema([ ->hiddenLabel()
Select::make('textblock_id')->label('Textblock') ->schema([
->prefixIcon('phosphor-article') Select::make('inhaltselement_id')
->prefixIconColor( ->label('Inhaltselement')
fn ($record): string => $record->textblock_id == 0 ? 'gray' : 'primary' ->prefixIcon('phosphor-table')
) ->default(0)
->default(0) ->options(function () {
->options(function () { $res = Inhaltselement::all()->pluck('name', 'id')->toArray();
$res = Textblock::all()->pluck('name', 'id')->toArray(); array_push($res, 'Ohne');
array_unshift($res, 'Ohne Textblock');
return $res; return $res;
}), }),
Select::make('tabellen_id')->label('Tabelle')
->prefixIcon('phosphor-table')
->prefixIconColor(
fn ($record): string => $record->tabellen_id == 0 ? 'gray' : 'primary'
)
->default(0)
->options(function () {
$res = Tabellen::all()->pluck('name', 'id')->toArray();
array_unshift($res, 'Ohne Tabelle');
return $res; ]),
}), Tab::make('Textblock')
->hiddenLabel()
->schema([
Select::make('textblock_id')
->label('Textblock')
// ->description('Ausgabe Textblock vor Tabelle')
->prefixIcon('phosphor-article')
->default(0)
->options(function () {
$res = Textblock::all()->pluck('name', 'id')->toArray();
array_push($res, 'Ohne');
])->columnSpanFull(), return $res;
}),
]),
])->vertical()->columnSpanFull(),
]); ]);
} }
} }
@@ -9,7 +9,6 @@ use Filament\Tables\Columns\TextColumn;
use Filament\Tables\Enums\FiltersLayout; use Filament\Tables\Enums\FiltersLayout;
use Filament\Tables\Filters\SelectFilter; use Filament\Tables\Filters\SelectFilter;
use Filament\Tables\Table; use Filament\Tables\Table;
use Illuminate\Support\HtmlString;
class InhaltsverzeichnisTable class InhaltsverzeichnisTable
{ {
@@ -18,40 +17,27 @@ class InhaltsverzeichnisTable
return $table return $table
->heading('Inhaltsverzeichnis') ->heading('Inhaltsverzeichnis')
->description('Generische Vorlage beim Erstellen neuer Projekte.') ->description('Generische Vorlage beim Erstellen neuer Projekte.')
// ->recordClasses(fn ($record) => $record->part == 'gutachten' ? 'border-l-4' : 'border-l-4')
->columns([ ->columns([
TextColumn::make('ordnungszahl') TextColumn::make('ordnungszahl')
->label('Index') ->label('Index')
->alignRight()
->getStateUsing(fn ($record): string => $record->ordnungszahl == '0' ? '' : number_format($record->ordnungszahl, 2)), ->getStateUsing(fn ($record): string => $record->ordnungszahl == '0' ? '' : number_format($record->ordnungszahl, 2)),
IconColumn::make('neue_seite') IconColumn::make('neue_seite')
->tooltip('Start neue Seite') ->tooltip('Start neue Seite')
->color('primary') ->color('primary')
->alignCenter()
->label('Start') ->label('Start')
->icon(fn (string $state): string => match ($state) { ->icon(fn (string $state): string => match ($state) {
'1' => 'phosphor-file-plus', '1' => 'phosphor-file-plus',
default => '' default => ''
}), }),
TextColumn::make('name') TextColumn::make('name')
->color('primary')
->label('Überschrift') ->label('Überschrift')
->wrap(), ->wrap(),
IconColumn::make('ueberschrift_anzeigen') TextColumn::make('inhaltselement.name')
->label('Anzeigen') ->label('Element')
->alignCenter() ->wrap(),
->tooltip('Überschrift anzeigen') TextColumn::make('textblock.name')
->color(fn ($state): string => $state ? 'primary' : 'gray') ->wrap(),
->icon(fn ($state): string => $state ? 'phosphor-article-ny-times' : ''),
IconColumn::make('textblock')
->color('primary')
->alignCenter()
->icon('phosphor-article')
->tooltip(fn ($record): HtmlString => new HtmlString($record->name)),
IconColumn::make('tabellen')
->color('primary')
->alignCenter()
->icon('phosphor-table')
->tooltip(fn ($record): HtmlString => new HtmlString($record->name)),
TextColumn::make('seite') TextColumn::make('seite')
->alignCenter() ->alignCenter()
->badge() ->badge()
@@ -21,7 +21,7 @@ class PermissionResource extends Resource
protected static ?int $navigationSort = 2; protected static ?int $navigationSort = 2;
protected static string|UnitEnum|null $navigationGroup = 'Kunden'; protected static string|UnitEnum|null $navigationGroup = 'Benutzer';
protected static string|BackedEnum|null $navigationIcon = 'lucide-key-square'; protected static string|BackedEnum|null $navigationIcon = 'lucide-key-square';
@@ -1,11 +0,0 @@
<?php
namespace App\Filament\Resources\Plans\Pages;
use App\Filament\Resources\Plans\PlanResource;
use Filament\Resources\Pages\CreateRecord;
class CreatePlan extends CreateRecord
{
protected static string $resource = PlanResource::class;
}
@@ -1,19 +0,0 @@
<?php
namespace App\Filament\Resources\Plans\Pages;
use App\Filament\Resources\Plans\PlanResource;
use Filament\Actions\DeleteAction;
use Filament\Resources\Pages\EditRecord;
class EditPlan extends EditRecord
{
protected static string $resource = PlanResource::class;
protected function getHeaderActions(): array
{
return [
DeleteAction::make(),
];
}
}
@@ -1,21 +0,0 @@
<?php
namespace App\Filament\Resources\Plans\Pages;
use App\Filament\Resources\Plans\PlanResource;
use Filament\Actions\CreateAction;
use Filament\Resources\Pages\ListRecords;
class ListPlans extends ListRecords
{
protected static string $resource = PlanResource::class;
protected function getHeaderActions(): array
{
return [
// CreateAction::make()
// ->icon('phosphor-file-plus')
// ->createAnother(false),
];
}
}
@@ -1,55 +0,0 @@
<?php
namespace App\Filament\Resources\Plans;
use App\Filament\Clusters\Administration\AdministrationCluster;
use App\Filament\Resources\Plans\Pages\ListPlans;
use App\Filament\Resources\Plans\Schemas\PlanForm;
use App\Filament\Resources\Plans\Tables\PlansTable;
use App\Models\Plan;
use BackedEnum;
use Filament\Resources\Resource;
use Filament\Schemas\Schema;
use Filament\Tables\Table;
use UnitEnum;
class PlanResource extends Resource
{
protected static ?string $model = Plan::class;
protected static string|BackedEnum|null $navigationIcon = 'heroicon-o-banknotes';
protected static ?string $cluster = AdministrationCluster::class;
protected static string|UnitEnum|null $navigationGroup = 'Kunden';
protected static ?int $navigationSort = 1;
protected static ?string $navigationLabel = 'Zahlungsplan';
protected static ?string $modelLabel = 'Zahlungsplan';
protected static ?string $pluralModelLabel = 'Zahlungspläne';
public static function form(Schema $schema): Schema
{
return PlanForm::configure($schema);
}
public static function table(Table $table): Table
{
return PlansTable::configure($table);
}
public static function getPages(): array
{
return [
'index' => ListPlans::route('/'),
];
}
public static function getNavigationBadge(): ?string
{
return parent::getEloquentQuery()->count();
}
}
@@ -1,24 +0,0 @@
<?php
namespace App\Filament\Resources\Plans\Schemas;
use Filament\Forms\Components\Textarea;
use Filament\Forms\Components\TextInput;
use Filament\Schemas\Schema;
class PlanForm
{
public static function configure(Schema $schema): Schema
{
return $schema
->components([
TextInput::make('name')->required(),
TextInput::make('payment')->label('Zahlung')->required(),
Textarea::make('description')->label('Beschreibung')->required(),
TextInput::make('preis')->required()->numeric(),
TextInput::make('limit_user')->required()->label('Anzahl Benutzer')->numeric(),
TextInput::make('limit_gutachter')->required()->label('Anzahl Gutachter')->numeric(),
TextInput::make('icon'),
])->inlineLabel()->columns(1);
}
}
@@ -1,34 +0,0 @@
<?php
namespace App\Filament\Resources\Plans\Tables;
use Filament\Actions\EditAction;
use Filament\Support\Enums\IconSize;
use Filament\Tables\Columns\IconColumn;
use Filament\Tables\Columns\TextColumn;
use Filament\Tables\Table;
class PlansTable
{
public static function configure(Table $table): Table
{
return $table
->columns([
IconColumn::make('icon')
->label('')
->size(IconSize::TwoExtraLarge)
->color('primary')
->icon(fn (string $state): string => $state),
TextColumn::make('name')
->description(fn ($record): string => $record->description)
->wrap(),
TextColumn::make('payment')->label('Plan'),
TextColumn::make('limit_user')->label('Benutzer')->badge(),
TextColumn::make('limit_gutachter')->label('Gutachter')->badge(),
TextColumn::make('preis')->money('EUR'),
])
->recordActions([
EditAction::make()->iconButton(),
]);
}
}
@@ -105,6 +105,7 @@ class EditProjekte extends EditRecord
*/ */
Action::make('freischalten') Action::make('freischalten')
->hidden(fn ($record): bool => $record->bezahlt_am ? true : false) ->hidden(fn ($record): bool => $record->bezahlt_am ? true : false)
->color('warning')
->visible(fn (): bool => auth()->user()->konto->guthaben) ->visible(fn (): bool => auth()->user()->konto->guthaben)
->requiresConfirmation() ->requiresConfirmation()
->modalHeading('Gutachten freischalten?') ->modalHeading('Gutachten freischalten?')
@@ -3,9 +3,9 @@
namespace App\Filament\Resources\Projektes\RelationManagers; namespace App\Filament\Resources\Projektes\RelationManagers;
use App\Actions\Create\CreateProjektInhaltsverzeichnis; use App\Actions\Create\CreateProjektInhaltsverzeichnis;
use App\Models\Inhaltselement;
use App\Models\KontoTextblock; use App\Models\KontoTextblock;
use App\Models\ProjektInhaltsverzeichnis; use App\Models\ProjektInhaltsverzeichnis;
use App\Models\Tabellen;
use Filament\Actions\Action; use Filament\Actions\Action;
use Filament\Actions\BulkActionGroup; use Filament\Actions\BulkActionGroup;
use Filament\Actions\CreateAction; use Filament\Actions\CreateAction;
@@ -29,7 +29,6 @@ use Filament\Tables\Columns\IconColumn;
use Filament\Tables\Columns\TextColumn; use Filament\Tables\Columns\TextColumn;
use Filament\Tables\Filters\SelectFilter; use Filament\Tables\Filters\SelectFilter;
use Filament\Tables\Table; use Filament\Tables\Table;
use Illuminate\Support\HtmlString;
class ProjektInhaltsverzeichnisRelationManager extends RelationManager class ProjektInhaltsverzeichnisRelationManager extends RelationManager
{ {
@@ -50,23 +49,19 @@ class ProjektInhaltsverzeichnisRelationManager extends RelationManager
Tabs::make('Tabs') Tabs::make('Tabs')
->tabs([ ->tabs([
Tab::make('Überschrift') Tab::make('Überschrift')
->hidden(fn ($record) => $record?->name == 'DECKBLATT' ? true : false) // ->hidden(fn ($record) => $record?->name == 'DECKBLATT' ? true : false)
->schema([ ->schema([
Checkbox::make('neue_seite') Checkbox::make('neue_seite')
->label('Start neuer Seite'), ->label('Start neuer Seite'),
Checkbox::make('ueberschrift_anzeigen') // Checkbox::make('ueberschrift_anzeigen')
->label('Überschrift angezeigen'), // ->label('Überschrift angezeigen'),
Textarea::make('name') Textarea::make('name')
->required() ->required()
->label('Überschrift in der Inhaltsangabe') ->label('Überschrift')
->columnSpan(2), ->columnSpan(2),
Textarea::make('name2') ]),
->label('Überschrift im Dokument') Tab::make('Kapitel Index')
->belowContent([ ->schema([
'Bei abweichender Überschrift im Dokument',
])
->columnSpan(2),
TextInput::make('ordnungszahl') TextInput::make('ordnungszahl')
->label('Kapitel Index') ->label('Kapitel Index')
->placeholder('3.21') ->placeholder('3.21')
@@ -76,6 +71,11 @@ class ProjektInhaltsverzeichnisRelationManager extends RelationManager
'Bei "0" wird der Index im PDF nicht angezeigt', 'Bei "0" wird der Index im PDF nicht angezeigt',
]) ])
->columnSpan(1), ->columnSpan(1),
]),
Tab::make('Seitenzahl')
->schema([
Checkbox::make('seitenzahl_anzeige')
->label('Seitenzahl angezeigen'),
TextInput::make('seite') TextInput::make('seite')
->label('Seitenzahl') ->label('Seitenzahl')
->numeric() ->numeric()
@@ -85,16 +85,18 @@ class ProjektInhaltsverzeichnisRelationManager extends RelationManager
]) ])
->columnSpan(1), ->columnSpan(1),
]), ]),
Tab::make('Textblock') Tab::make('Textblock Abschnitt A')
->hidden(fn ($record) => in_array($record?->name, ['INHALTSVERZEICHNIS']) ? true : false)
->schema([ ->schema([
Grid::make() Grid::make()
->columns(6) ->columns(6)
->schema([ ->schema([
TextInput::make('textblock_name')
->columnSpan(5)
->label('Textblock Name'),
TextInput::make('konto_textblock_id')->hidden(), TextInput::make('konto_textblock_id')->hidden(),
RichEditor::make('textblock') RichEditor::make('textblock')
->hiddenLabel() ->hiddenLabel()
->aboveLabel(fn ($record): string => $record?->tabellen_id != 0 ? 'Ausgabe Textblock vor Tabelle' : '') ->aboveLabel(fn ($record): string => $record?->inhaltselement_id != 0 ? 'Ausgabe Textblock vor Tabelle' : '')
->columnSpan(5) ->columnSpan(5)
->extraInputAttributes(['style' => 'min-height: 20rem; max-height: 50vh; overflow-y: auto;']) ->extraInputAttributes(['style' => 'min-height: 20rem; max-height: 50vh; overflow-y: auto;'])
->toolbarButtons([ ->toolbarButtons([
@@ -186,23 +188,120 @@ class ProjektInhaltsverzeichnisRelationManager extends RelationManager
])->columns(1), ])->columns(1),
]), ]),
]), ]),
Tab::make('Tabellen') Tab::make('Inhalts Elemente')
->hidden(fn ($record) => in_array($record?->name, ['DECKBLATT']) ? true : false)
->schema([ ->schema([
Select::make('tabellen_id')->label('Tabelle') Select::make('inhaltselement_id')->label('Inhalts Element')
->prefixIcon('phosphor-table') ->prefixIcon('phosphor-table')
->prefixIconColor(
fn ($record): string => $record?->tabellen_id == 0 ? 'gray' : 'primary'
)
->default(0) ->default(0)
->options(function () { ->options(function () {
$res = Tabellen::all()->pluck('name', 'id')->toArray(); $res = Inhaltselement::all()->pluck('name', 'id')->toArray();
array_unshift($res, 'Ohne Tabelle'); array_push($res, 'Ohne');
return $res; return $res;
}), }),
]), ]),
])->columnSpanFull(), Tab::make('Textblock Abschnitt B')
->schema([
Grid::make()
->columns(6)
->schema([
TextInput::make('konto_textblock_id')->hidden(),
RichEditor::make('textblock2')
->hiddenLabel()
->aboveLabel(fn ($record): string => $record?->inhaltselement_id != 0 ? 'Ausgabe Textblock vor Tabelle' : '')
->columnSpan(5)
->extraInputAttributes(['style' => 'min-height: 20rem; max-height: 50vh; overflow-y: auto;'])
->toolbarButtons([
['bold', 'italic', 'underline', 'strike', 'subscript', 'superscript', 'horizontalRule', 'table'],
])->floatingToolbars([
'paragraph' => [
'bold', 'italic', 'underline', 'strike', 'subscript', 'superscript',
],
'heading' => [
'h1', 'h2', 'h3',
],
'table' => [
'tableAddColumnBefore', 'tableAddColumnAfter', 'tableDeleteColumn',
'tableAddRowBefore', 'tableAddRowAfter', 'tableDeleteRow',
'tableMergeCells', 'tableSplitCell',
'tableToggleHeaderRow',
'tableDelete',
],
]),
Fieldset::make('')
->contained(false)
->schema([
Action::make('sichern')
->iconButton()
->tooltip('Änderungen in der Vorlage speichern')
->icon('phosphor-floppy-disk')
->schema([
TextInput::make('name')->required()
->label('Ändern sie gegebeben Falls den Namen')
->default(function ($record) {
return KontoTextblock::where('id', $record?->konto_textblock_id)->pluck('name')->first();
}),
])
->hidden(function ($record) {
return (bool) ! $record?->konto_textblock_id;
})
->action(function (array $mountedActions, array $data) {
$record = $mountedActions[0]->getRawData();
KontoTextblock::where('id', $record['konto_textblock_id'])
->update(['name' => $data['name'], 'textblock' => RichContentRenderer::make($record['textblock'])->toHtml()]);
}),
Action::make('neu')
->iconButton()
->icon('phosphor-file-plus')
->schema([
TextInput::make('name')->required()
->label('Geben sie der Vorlage einen eindeutigen Namen')
->default(function ($record) {
return $record?->name;
}),
])
->modalSubmitActionLabel('Sichern')
->tooltip('Neue Vorlage erstellen')
->action(function (array $mountedActions, array $data) {
$record = $mountedActions[0]->getRawData();
$block = new KontoTextblock;
$block->konto_id = auth()->user()->konto_id;
$block->name = $data['name'];
$block->textblock = RichContentRenderer::make($record['textblock'])->toHtml();
$block->save();
ProjektInhaltsverzeichnis::where('id', $record['id'])->update(['konto_textblock_id' => $block->id]);
}),
Action::make('laden')
->iconButton()
->icon('phosphor-article')
->schema([
Select::make('konto_textblock_id')
->hiddenLabel()
->searchable()
->options(KontoTextblock::where('konto_id', auth()->user()->konto_id)->pluck('name', 'id'))
->belowLabel([
'Bitte eine Vorlage auswählen',
]),
])
->modalSubmitActionLabel('Einsetzen')
->tooltip('Vorlage laden.')
->action(function (Set $set, array $mountedActions, array $data) {
$record = $mountedActions[0]->getRawData();
ProjektInhaltsverzeichnis::where('id', $record['id'])->update(['konto_textblock_id' => $data['konto_textblock_id']]);
$set('konto_textblock_id', $data['konto_textblock_id']);
$set('textblock', KontoTextblock::where('id', $data['konto_textblock_id'])->pluck('textblock')->first());
}),
])->columns(1),
]),
]),
])->vertical()->columnSpanFull(),
]); ]);
} }
@@ -230,27 +329,15 @@ class ProjektInhaltsverzeichnisRelationManager extends RelationManager
default => '' default => ''
}), }),
TextColumn::make('name') TextColumn::make('name')
->color('primary')
->wrap() ->wrap()
->searchable() ->searchable(),
->description(fn ($record): string => $record->textblock_kennung->name ?? ''),
IconColumn::make('ueberschrift_anzeigen') TextColumn::make('textblock_name')
->label('Anzeigen') ->label('Textblock')
->alignCenter() ->wrap(),
->tooltip('Überschrift anzeigen') TextColumn::make('inhaltselement.name')
->color(fn ($state): string => $state ? 'primary' : 'gray') ->label('Inhalts Element'),
->icon(fn ($state): string => $state ? 'phosphor-article-ny-times' : ''),
IconColumn::make('textblock')
->color('primary')
->alignCenter()
->icon('phosphor-article')
->tooltip(fn ($record): HtmlString => new HtmlString($record->textblock)),
IconColumn::make('tabellen')
->label('Tabelle')
->color('primary')
->alignCenter()
->icon('phosphor-table')
->tooltip(fn ($record): HtmlString => new HtmlString($record->name)),
TextColumn::make('seite') TextColumn::make('seite')
->alignCenter() ->alignCenter()
->badge() ->badge()
@@ -579,6 +579,6 @@ class ProjektObjekteRelationManager extends RelationManager
} }
} }
return round($sum); return $sum;
} }
} }
@@ -30,8 +30,18 @@ class ProjekteForm
->tabs([ ->tabs([
Tab::make('Benennung') Tab::make('Benennung')
->schema([ ->schema([
TextInput::make('offizieller_name')->label('Offizieller Name')->required(), TextInput::make('offizieller_name')
TextInput::make('interner_name')->label('Interner Name')->required(), ->label('Offizieller Name')
->required()
->belowContent([
'Kann mit "###OFFIZIELLER_NAME###" im Text verwendet werden.',
]),
TextInput::make('interner_name')
->label('Interner Name')
->required()
->belowContent([
'Kann mit "###INTERNER_NAME###" im Text verwendet werden.',
]),
TextInput::make('ort')->required()->suffix('am'), TextInput::make('ort')->required()->suffix('am'),
DatePicker::make('erstellung')->helperText('Datum am Gutachten')->required(), DatePicker::make('erstellung')->helperText('Datum am Gutachten')->required(),
])->columns(2), ])->columns(2),
@@ -3,7 +3,6 @@
namespace App\Filament\Resources\Textblocks\Schemas; namespace App\Filament\Resources\Textblocks\Schemas;
use Filament\Forms\Components\RichEditor; use Filament\Forms\Components\RichEditor;
use Filament\Forms\Components\Textarea;
use Filament\Forms\Components\TextInput; use Filament\Forms\Components\TextInput;
use Filament\Schemas\Schema; use Filament\Schemas\Schema;
@@ -15,11 +14,27 @@ class TextblockForm
->components([ ->components([
TextInput::make('name') TextInput::make('name')
->required(), ->required(),
Textarea::make('beschreibung')
->afterLabel('Bei gleichen Textblockarten kann hier der Unterschied kurz angerissen werden.'),
RichEditor::make('textblock') RichEditor::make('textblock')
->extraInputAttributes(['style' => 'min-height: 20rem; max-height: 50vh; overflow-y: auto;']) ->label('Abschnitt A')
->toolbarButtons([
['bold', 'italic', 'underline', 'strike', 'subscript', 'superscript', 'horizontalRule', 'table'],
])->floatingToolbars([
'paragraph' => [
'bold', 'italic', 'underline', 'strike', 'subscript', 'superscript',
],
'heading' => [
'h1', 'h2', 'h3',
],
'table' => [
'tableAddColumnBefore', 'tableAddColumnAfter', 'tableDeleteColumn',
'tableAddRowBefore', 'tableAddRowAfter', 'tableDeleteRow',
'tableMergeCells', 'tableSplitCell',
'tableToggleHeaderRow',
'tableDelete',
],
]),
RichEditor::make('textblock2')
->label('Abschnitt B')
->toolbarButtons([ ->toolbarButtons([
['bold', 'italic', 'underline', 'strike', 'subscript', 'superscript', 'horizontalRule', 'table'], ['bold', 'italic', 'underline', 'strike', 'subscript', 'superscript', 'horizontalRule', 'table'],
])->floatingToolbars([ ])->floatingToolbars([
@@ -2,12 +2,13 @@
namespace App\Filament\Resources\Textblocks\Tables; namespace App\Filament\Resources\Textblocks\Tables;
use App\Models\Textblock;
use Filament\Actions\DeleteAction; use Filament\Actions\DeleteAction;
use Filament\Actions\EditAction; use Filament\Actions\EditAction;
use Filament\Support\Enums\FontWeight;
use Filament\Tables\Columns\TextColumn; use Filament\Tables\Columns\TextColumn;
use Filament\Tables\Enums\FiltersLayout;
use Filament\Tables\Filters\SelectFilter;
use Filament\Tables\Table; use Filament\Tables\Table;
use Illuminate\Support\HtmlString;
class TextblocksTable class TextblocksTable
{ {
@@ -17,13 +18,23 @@ class TextblocksTable
->defaultPaginationPageOption(5) ->defaultPaginationPageOption(5)
->columns([ ->columns([
TextColumn::make('name') TextColumn::make('name')
->weight(FontWeight::Bold)
->wrap()
->description(function ($record) { ->description(function ($record) {
return new HtmlString($record->textblock); return view('pages.textblock')->with('record', $record);
}) })
->html(), ->html(),
]) ])
->deferFilters(false)
->filtersFormColumns(3)
->filters([
SelectFilter::make('id')
->label('Textblock')
->preload()
->default(1)
->options(function (): array {
return Textblock::pluck('name', 'id')->toArray();
}),
], layout: FiltersLayout::AboveContent)
->paginated(false)
->recordActions([ ->recordActions([
EditAction::make()->iconButton(), EditAction::make()->iconButton(),
DeleteAction::make()->iconButton(), DeleteAction::make()->iconButton(),
+12
View File
@@ -0,0 +1,12 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Inhaltselement extends Model
{
protected $fillable = [
'name',
];
}
+3 -3
View File
@@ -9,7 +9,7 @@ class Inhaltsverzeichnis extends Model
protected $fillable = [ protected $fillable = [
'name', 'name',
'ueberschrift_anzeigen', 'ueberschrift_anzeigen',
'tabellen_id', 'inhaltselement_id',
'textblock_id', 'textblock_id',
'sort', 'sort',
'ordnungszahl', 'ordnungszahl',
@@ -35,8 +35,8 @@ class Inhaltsverzeichnis extends Model
return $this->hasMany(Textblock::class, 'id', 'textblock_id'); return $this->hasMany(Textblock::class, 'id', 'textblock_id');
} }
public function tabellen() public function inhaltselement()
{ {
return $this->hasMany(Tabellen::class, 'id', 'tabellen_id'); return $this->hasMany(Inhaltselement::class, 'id', 'inhaltselement_id');
} }
} }
-42
View File
@@ -1,42 +0,0 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\HtmlString;
class Plan extends Model
{
/**
* The attributes that are mass assignable.
*
* @var list<string>
*/
protected $fillable = [
'name',
'payment',
'description',
'preis',
'limit_user',
'limit_auftraggeber',
'limit_gutachter',
'limit_gutachten',
'icon',
];
public static function options()
{
$arr = Plan::all()->toArray();
foreach ($arr as $key => $value) {
$str = '<div class="text-primary-500 text-lg">'.$value['payment'].'</div>';
$str .= '<div class="text-xl font-black">'.number_format($value['preis'], 2).'€</div>';
$str .= '<ol class="font-light text-xs leading-3 m-0 p-3">';
$str .= '<li>'.$value['limit_user'].' Benutzer</li>';
$str .= '<li>'.$value['limit_gutachter'].' Gutachter</li>';
$str .= '</ol>';
$arr[$key + 1] = new HtmlString($str);
}
return $arr;
}
}
+5 -9
View File
@@ -10,24 +10,20 @@ class ProjektInhaltsverzeichnis extends Model
'projekte_id', 'projekte_id',
'name', 'name',
'ueberschrift_anzeigen', 'ueberschrift_anzeigen',
'tabellen_id', 'inhaltselement_id',
'textblock_id',
'sort', 'sort',
'ordnungszahl', 'ordnungszahl',
'part', 'part',
'seite', 'seite',
'neue_seite', 'neue_seite',
'seitenzahl_anzeige', 'seitenzahl_anzeige',
'textblock_name',
'textblock', 'textblock',
'textblock2',
]; ];
public function textblock() public function inhaltselement()
{ {
return $this->hasMany(Textblock::class, 'id', 'textblock_id'); return $this->hasOne(Inhaltselement::class, 'id', 'inhaltselement_id');
}
public function tabellen()
{
return $this->hasMany(Tabellen::class, 'id', 'tabellen_id');
} }
} }
-10
View File
@@ -1,10 +0,0 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Tabellen extends Model
{
//
}
+1
View File
@@ -10,5 +10,6 @@ class Textblock extends Model
'name', 'name',
'beschreibung', 'beschreibung',
'textblock', 'textblock',
'textblock2',
]; ];
} }
+5 -5
View File
@@ -1,7 +1,7 @@
<?php return array ( <?php return array (
'default' => 'default' =>
array ( array (
'/Users/salam/Sites/nutzwerte_fi4/resources/svg' => '/Users/hermanntelser/Sites/nutzwerte_fi4/resources/svg' =>
array ( array (
0 => 'excel', 0 => 'excel',
1 => 'logo', 1 => 'logo',
@@ -11,7 +11,7 @@
), ),
'heroicons' => 'heroicons' =>
array ( array (
'/Users/salam/Sites/nutzwerte_fi4/vendor/blade-ui-kit/blade-heroicons/src/../resources/svg' => '/Users/hermanntelser/Sites/nutzwerte_fi4/vendor/blade-ui-kit/blade-heroicons/src/../resources/svg' =>
array ( array (
0 => 'c-academic-cap', 0 => 'c-academic-cap',
1 => 'c-adjustments-horizontal', 1 => 'c-adjustments-horizontal',
@@ -1305,7 +1305,7 @@
), ),
'phosphor-icons' => 'phosphor-icons' =>
array ( array (
'/Users/salam/Sites/nutzwerte_fi4/vendor/codeat3/blade-phosphor-icons/src/../resources/svg' => '/Users/hermanntelser/Sites/nutzwerte_fi4/vendor/codeat3/blade-phosphor-icons/src/../resources/svg' =>
array ( array (
0 => 'acorn-bold', 0 => 'acorn-bold',
1 => 'acorn-duotone', 1 => 'acorn-duotone',
@@ -10383,7 +10383,7 @@
), ),
'filament' => 'filament' =>
array ( array (
'/Users/salam/Sites/nutzwerte_fi4/vendor/filament/support/src/../resources/svg' => '/Users/hermanntelser/Sites/nutzwerte_fi4/vendor/filament/support/src/../resources/svg' =>
array ( array (
0 => 'o-align-center', 0 => 'o-align-center',
1 => 'o-align-end', 1 => 'o-align-end',
@@ -10420,7 +10420,7 @@
), ),
'lucide' => 'lucide' =>
array ( array (
'/Users/salam/Sites/nutzwerte_fi4/vendor/mallardduck/blade-lucide-icons/src/../resources/svg' => '/Users/hermanntelser/Sites/nutzwerte_fi4/vendor/mallardduck/blade-lucide-icons/src/../resources/svg' =>
array ( array (
0 => 'a-arrow-down', 0 => 'a-arrow-down',
1 => 'a-arrow-up', 1 => 'a-arrow-up',
+18 -18
View File
@@ -81,9 +81,9 @@
array ( array (
'paths' => 'paths' =>
array ( array (
0 => '/Users/salam/Sites/nutzwerte_fi4/resources/views', 0 => '/Users/hermanntelser/Sites/nutzwerte_fi4/resources/views',
), ),
'compiled' => '/Users/salam/Sites/nutzwerte_fi4/storage/framework/views', 'compiled' => '/Users/hermanntelser/Sites/nutzwerte_fi4/storage/framework/views',
), ),
'cors' => 'cors' =>
array ( array (
@@ -126,7 +126,7 @@
'fallback_locale' => 'en', 'fallback_locale' => 'en',
'faker_locale' => 'de_AT', 'faker_locale' => 'de_AT',
'cipher' => 'AES-256-CBC', 'cipher' => 'AES-256-CBC',
'key' => 'base64:zrVnUcBmUGjEV/EoAKnZCm/1FWplKu79kYBvevE2/ek=', 'key' => 'base64:3uv/ppXplpqmYtiZ5ZyILnoOTmKfZAz27bfsnR1qmaE=',
'previous_keys' => 'previous_keys' =>
array ( array (
), ),
@@ -301,8 +301,8 @@
'file' => 'file' =>
array ( array (
'driver' => 'file', 'driver' => 'file',
'path' => '/Users/salam/Sites/nutzwerte_fi4/storage/framework/cache/data', 'path' => '/Users/hermanntelser/Sites/nutzwerte_fi4/storage/framework/cache/data',
'lock_path' => '/Users/salam/Sites/nutzwerte_fi4/storage/framework/cache/data', 'lock_path' => '/Users/hermanntelser/Sites/nutzwerte_fi4/storage/framework/cache/data',
), ),
'memcached' => 'memcached' =>
array ( array (
@@ -522,7 +522,7 @@
), ),
'policies' => 'policies' =>
array ( array (
'path' => '/Users/salam/Sites/nutzwerte_fi4/app/Policies', 'path' => '/Users/hermanntelser/Sites/nutzwerte_fi4/app/Policies',
'merge' => true, 'merge' => true,
'generate' => true, 'generate' => true,
'methods' => 'methods' =>
@@ -610,7 +610,7 @@
'local' => 'local' =>
array ( array (
'driver' => 'local', 'driver' => 'local',
'root' => '/Users/salam/Sites/nutzwerte_fi4/storage/app/private', 'root' => '/Users/hermanntelser/Sites/nutzwerte_fi4/storage/app/private',
'serve' => true, 'serve' => true,
'throw' => false, 'throw' => false,
'report' => false, 'report' => false,
@@ -618,7 +618,7 @@
'public' => 'public' =>
array ( array (
'driver' => 'local', 'driver' => 'local',
'root' => '/Users/salam/Sites/nutzwerte_fi4/storage/app/public', 'root' => '/Users/hermanntelser/Sites/nutzwerte_fi4/storage/app/public',
'url' => 'http://nutzwerte_fi4.test/storage', 'url' => 'http://nutzwerte_fi4.test/storage',
'visibility' => 'public', 'visibility' => 'public',
'throw' => false, 'throw' => false,
@@ -640,7 +640,7 @@
'promotion' => 'promotion' =>
array ( array (
'driver' => 'local', 'driver' => 'local',
'root' => '/Users/salam/Sites/nutzwerte_fi4/storage/app/public/promotion', 'root' => '/Users/hermanntelser/Sites/nutzwerte_fi4/storage/app/public/promotion',
'url' => 'http://nutzwerte_fi4.test/storage/promotion', 'url' => 'http://nutzwerte_fi4.test/storage/promotion',
'visibility' => 'public', 'visibility' => 'public',
'throw' => false, 'throw' => false,
@@ -648,7 +648,7 @@
), ),
'links' => 'links' =>
array ( array (
'/Users/salam/Sites/nutzwerte_fi4/public/storage' => '/Users/salam/Sites/nutzwerte_fi4/storage/app/public', '/Users/hermanntelser/Sites/nutzwerte_fi4/public/storage' => '/Users/hermanntelser/Sites/nutzwerte_fi4/storage/app/public',
), ),
), ),
'logging' => 'logging' =>
@@ -673,14 +673,14 @@
'single' => 'single' =>
array ( array (
'driver' => 'single', 'driver' => 'single',
'path' => '/Users/salam/Sites/nutzwerte_fi4/storage/logs/laravel.log', 'path' => '/Users/hermanntelser/Sites/nutzwerte_fi4/storage/logs/laravel.log',
'level' => 'debug', 'level' => 'debug',
'replace_placeholders' => true, 'replace_placeholders' => true,
), ),
'daily' => 'daily' =>
array ( array (
'driver' => 'daily', 'driver' => 'daily',
'path' => '/Users/salam/Sites/nutzwerte_fi4/storage/logs/laravel.log', 'path' => '/Users/hermanntelser/Sites/nutzwerte_fi4/storage/logs/laravel.log',
'level' => 'debug', 'level' => 'debug',
'days' => 14, 'days' => 14,
'replace_placeholders' => true, 'replace_placeholders' => true,
@@ -745,7 +745,7 @@
), ),
'emergency' => 'emergency' =>
array ( array (
'path' => '/Users/salam/Sites/nutzwerte_fi4/storage/logs/laravel.log', 'path' => '/Users/hermanntelser/Sites/nutzwerte_fi4/storage/logs/laravel.log',
), ),
), ),
), ),
@@ -844,7 +844,7 @@
'theme' => 'default', 'theme' => 'default',
'paths' => 'paths' =>
array ( array (
0 => '/Users/salam/Sites/nutzwerte_fi4/resources/views/vendor/mail', 0 => '/Users/hermanntelser/Sites/nutzwerte_fi4/resources/views/vendor/mail',
), ),
), ),
), ),
@@ -931,7 +931,7 @@
), ),
'queue' => 'queue' =>
array ( array (
'default' => 'sync', 'default' => 'database',
'connections' => 'connections' =>
array ( array (
'sync' => 'sync' =>
@@ -1033,7 +1033,7 @@
'lifetime' => 120, 'lifetime' => 120,
'expire_on_close' => false, 'expire_on_close' => false,
'encrypt' => false, 'encrypt' => false,
'files' => '/Users/salam/Sites/nutzwerte_fi4/storage/framework/sessions', 'files' => '/Users/hermanntelser/Sites/nutzwerte_fi4/storage/framework/sessions',
'connection' => NULL, 'connection' => NULL,
'table' => 'sessions', 'table' => 'sessions',
'store' => NULL, 'store' => NULL,
@@ -1081,7 +1081,7 @@
), ),
'default_filesystem_disk' => 'local', 'default_filesystem_disk' => 'local',
'assets_path' => NULL, 'assets_path' => NULL,
'cache_path' => '/Users/salam/Sites/nutzwerte_fi4/bootstrap/cache/filament', 'cache_path' => '/Users/hermanntelser/Sites/nutzwerte_fi4/bootstrap/cache/filament',
'livewire_loading_delay' => 'default', 'livewire_loading_delay' => 'default',
'file_generation' => 'file_generation' =>
array ( array (
@@ -1094,7 +1094,7 @@
'livewire' => 'livewire' =>
array ( array (
'class_namespace' => 'App\\Livewire', 'class_namespace' => 'App\\Livewire',
'view_path' => '/Users/salam/Sites/nutzwerte_fi4/resources/views/livewire', 'view_path' => '/Users/hermanntelser/Sites/nutzwerte_fi4/resources/views/livewire',
'layout' => 'components.layouts.app', 'layout' => 'components.layouts.app',
'lazy_placeholder' => NULL, 'lazy_placeholder' => NULL,
'temporary_file_upload' => 'temporary_file_upload' =>
+23 -28
View File
@@ -25,9 +25,6 @@
'app.filament.resources.permissions.pages.create-permission' => 'App\\Filament\\Resources\\Permissions\\Pages\\CreatePermission', 'app.filament.resources.permissions.pages.create-permission' => 'App\\Filament\\Resources\\Permissions\\Pages\\CreatePermission',
'app.filament.resources.permissions.pages.edit-permission' => 'App\\Filament\\Resources\\Permissions\\Pages\\EditPermission', 'app.filament.resources.permissions.pages.edit-permission' => 'App\\Filament\\Resources\\Permissions\\Pages\\EditPermission',
'app.filament.resources.permissions.pages.list-permissions' => 'App\\Filament\\Resources\\Permissions\\Pages\\ListPermissions', 'app.filament.resources.permissions.pages.list-permissions' => 'App\\Filament\\Resources\\Permissions\\Pages\\ListPermissions',
'app.filament.resources.plans.pages.create-plan' => 'App\\Filament\\Resources\\Plans\\Pages\\CreatePlan',
'app.filament.resources.plans.pages.edit-plan' => 'App\\Filament\\Resources\\Plans\\Pages\\EditPlan',
'app.filament.resources.plans.pages.list-plans' => 'App\\Filament\\Resources\\Plans\\Pages\\ListPlans',
'app.filament.resources.projektes.pages.create-projekte' => 'App\\Filament\\Resources\\Projektes\\Pages\\CreateProjekte', 'app.filament.resources.projektes.pages.create-projekte' => 'App\\Filament\\Resources\\Projektes\\Pages\\CreateProjekte',
'app.filament.resources.projektes.pages.edit-projekte' => 'App\\Filament\\Resources\\Projektes\\Pages\\EditProjekte', 'app.filament.resources.projektes.pages.edit-projekte' => 'App\\Filament\\Resources\\Projektes\\Pages\\EditProjekte',
'app.filament.resources.projektes.pages.list-projektes' => 'App\\Filament\\Resources\\Projektes\\Pages\\ListProjektes', 'app.filament.resources.projektes.pages.list-projektes' => 'App\\Filament\\Resources\\Projektes\\Pages\\ListProjektes',
@@ -70,9 +67,9 @@
), ),
'clusters' => 'clusters' =>
array ( array (
'/Users/salam/Sites/nutzwerte_fi4/app/Filament/Clusters/Administration/AdministrationCluster.php' => 'App\\Filament\\Clusters\\Administration\\AdministrationCluster', '/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Clusters/Administration/AdministrationCluster.php' => 'App\\Filament\\Clusters\\Administration\\AdministrationCluster',
'/Users/salam/Sites/nutzwerte_fi4/app/Filament/Clusters/Projekte/ProjekteCluster.php' => 'App\\Filament\\Clusters\\Projekte\\ProjekteCluster', '/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Clusters/Projekte/ProjekteCluster.php' => 'App\\Filament\\Clusters\\Projekte\\ProjekteCluster',
'/Users/salam/Sites/nutzwerte_fi4/app/Filament/Clusters/Verwaltung/VerwaltungCluster.php' => 'App\\Filament\\Clusters\\Verwaltung\\VerwaltungCluster', '/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Clusters/Verwaltung/VerwaltungCluster.php' => 'App\\Filament\\Clusters\\Verwaltung\\VerwaltungCluster',
), ),
'clusteredComponents' => 'clusteredComponents' =>
array ( array (
@@ -90,14 +87,13 @@
1 => 'App\\Filament\\Resources\\Methodes\\MethodeResource', 1 => 'App\\Filament\\Resources\\Methodes\\MethodeResource',
2 => 'App\\Filament\\Resources\\Orientierungs\\OrientierungResource', 2 => 'App\\Filament\\Resources\\Orientierungs\\OrientierungResource',
3 => 'App\\Filament\\Resources\\Permissions\\PermissionResource', 3 => 'App\\Filament\\Resources\\Permissions\\PermissionResource',
4 => 'App\\Filament\\Resources\\Plans\\PlanResource', 4 => 'App\\Filament\\Resources\\Textblocks\\TextblockResource',
5 => 'App\\Filament\\Resources\\Textblocks\\TextblockResource', 5 => 'BezhanSalleh\\FilamentShield\\Resources\\Roles\\RoleResource',
6 => 'BezhanSalleh\\FilamentShield\\Resources\\Roles\\RoleResource',
), ),
), ),
'clusterDirectories' => 'clusterDirectories' =>
array ( array (
0 => '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Clusters', 0 => '/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Clusters',
), ),
'clusterNamespaces' => 'clusterNamespaces' =>
array ( array (
@@ -105,14 +101,14 @@
), ),
'pages' => 'pages' =>
array ( array (
'/Users/salam/Sites/nutzwerte_fi4/app/Filament/Clusters/Administration/AdministrationCluster.php' => 'App\\Filament\\Clusters\\Administration\\AdministrationCluster', '/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Clusters/Administration/AdministrationCluster.php' => 'App\\Filament\\Clusters\\Administration\\AdministrationCluster',
'/Users/salam/Sites/nutzwerte_fi4/app/Filament/Clusters/Projekte/ProjekteCluster.php' => 'App\\Filament\\Clusters\\Projekte\\ProjekteCluster', '/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Clusters/Projekte/ProjekteCluster.php' => 'App\\Filament\\Clusters\\Projekte\\ProjekteCluster',
'/Users/salam/Sites/nutzwerte_fi4/app/Filament/Clusters/Verwaltung/VerwaltungCluster.php' => 'App\\Filament\\Clusters\\Verwaltung\\VerwaltungCluster', '/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Clusters/Verwaltung/VerwaltungCluster.php' => 'App\\Filament\\Clusters\\Verwaltung\\VerwaltungCluster',
0 => 'Filament\\Pages\\Dashboard', 0 => 'Filament\\Pages\\Dashboard',
), ),
'pageDirectories' => 'pageDirectories' =>
array ( array (
0 => '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Pages', 0 => '/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Pages',
), ),
'pageNamespaces' => 'pageNamespaces' =>
array ( array (
@@ -120,23 +116,22 @@
), ),
'resources' => 'resources' =>
array ( array (
'/Users/salam/Sites/nutzwerte_fi4/app/Filament/Resources/Auftraggebers/AuftraggeberResource.php' => 'App\\Filament\\Resources\\Auftraggebers\\AuftraggeberResource', '/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Resources/Auftraggebers/AuftraggeberResource.php' => 'App\\Filament\\Resources\\Auftraggebers\\AuftraggeberResource',
'/Users/salam/Sites/nutzwerte_fi4/app/Filament/Resources/Gutachters/GutachterResource.php' => 'App\\Filament\\Resources\\Gutachters\\GutachterResource', '/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Resources/Gutachters/GutachterResource.php' => 'App\\Filament\\Resources\\Gutachters\\GutachterResource',
'/Users/salam/Sites/nutzwerte_fi4/app/Filament/Resources/Inhaltsverzeichnis/InhaltsverzeichnisResource.php' => 'App\\Filament\\Resources\\Inhaltsverzeichnis\\InhaltsverzeichnisResource', '/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Resources/Inhaltsverzeichnis/InhaltsverzeichnisResource.php' => 'App\\Filament\\Resources\\Inhaltsverzeichnis\\InhaltsverzeichnisResource',
'/Users/salam/Sites/nutzwerte_fi4/app/Filament/Resources/KontoTextblocks/KontoTextblockResource.php' => 'App\\Filament\\Resources\\KontoTextblocks\\KontoTextblockResource', '/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Resources/KontoTextblocks/KontoTextblockResource.php' => 'App\\Filament\\Resources\\KontoTextblocks\\KontoTextblockResource',
'/Users/salam/Sites/nutzwerte_fi4/app/Filament/Resources/Kontos/KontoResource.php' => 'App\\Filament\\Resources\\Kontos\\KontoResource', '/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Resources/Kontos/KontoResource.php' => 'App\\Filament\\Resources\\Kontos\\KontoResource',
'/Users/salam/Sites/nutzwerte_fi4/app/Filament/Resources/Methodes/MethodeResource.php' => 'App\\Filament\\Resources\\Methodes\\MethodeResource', '/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Resources/Methodes/MethodeResource.php' => 'App\\Filament\\Resources\\Methodes\\MethodeResource',
'/Users/salam/Sites/nutzwerte_fi4/app/Filament/Resources/Orientierungs/OrientierungResource.php' => 'App\\Filament\\Resources\\Orientierungs\\OrientierungResource', '/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Resources/Orientierungs/OrientierungResource.php' => 'App\\Filament\\Resources\\Orientierungs\\OrientierungResource',
'/Users/salam/Sites/nutzwerte_fi4/app/Filament/Resources/Permissions/PermissionResource.php' => 'App\\Filament\\Resources\\Permissions\\PermissionResource', '/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Resources/Permissions/PermissionResource.php' => 'App\\Filament\\Resources\\Permissions\\PermissionResource',
'/Users/salam/Sites/nutzwerte_fi4/app/Filament/Resources/Plans/PlanResource.php' => 'App\\Filament\\Resources\\Plans\\PlanResource', '/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Resources/Projektes/ProjekteResource.php' => 'App\\Filament\\Resources\\Projektes\\ProjekteResource',
'/Users/salam/Sites/nutzwerte_fi4/app/Filament/Resources/Projektes/ProjekteResource.php' => 'App\\Filament\\Resources\\Projektes\\ProjekteResource', '/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Resources/Textblocks/TextblockResource.php' => 'App\\Filament\\Resources\\Textblocks\\TextblockResource',
'/Users/salam/Sites/nutzwerte_fi4/app/Filament/Resources/Textblocks/TextblockResource.php' => 'App\\Filament\\Resources\\Textblocks\\TextblockResource', '/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Resources/Users/UserResource.php' => 'App\\Filament\\Resources\\Users\\UserResource',
'/Users/salam/Sites/nutzwerte_fi4/app/Filament/Resources/Users/UserResource.php' => 'App\\Filament\\Resources\\Users\\UserResource',
0 => 'BezhanSalleh\\FilamentShield\\Resources\\Roles\\RoleResource', 0 => 'BezhanSalleh\\FilamentShield\\Resources\\Roles\\RoleResource',
), ),
'resourceDirectories' => 'resourceDirectories' =>
array ( array (
0 => '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Resources', 0 => '/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Resources',
), ),
'resourceNamespaces' => 'resourceNamespaces' =>
array ( array (
@@ -149,7 +144,7 @@
), ),
'widgetDirectories' => 'widgetDirectories' =>
array ( array (
0 => '/Users/salam/Sites/nutzwerte_fi4/app/Filament/Widgets', 0 => '/Users/hermanntelser/Sites/nutzwerte_fi4/app/Filament/Widgets',
), ),
'widgetNamespaces' => 'widgetNamespaces' =>
array ( array (
+7
View File
@@ -105,6 +105,13 @@
0 => 'Filament\\Notifications\\NotificationsServiceProvider', 0 => 'Filament\\Notifications\\NotificationsServiceProvider',
), ),
), ),
'filament/query-builder' =>
array (
'providers' =>
array (
0 => 'Filament\\QueryBuilder\\QueryBuilderServiceProvider',
),
),
'filament/schemas' => 'filament/schemas' =>
array ( array (
'providers' => 'providers' =>
+30 -103
View File
@@ -386,26 +386,6 @@ app('router')->setCompiledRoutes(
6 => NULL, 6 => NULL,
), ),
), ),
'/app/administration/plans' =>
array (
0 =>
array (
0 =>
array (
'_route' => 'filament.admin.administration.resources.plans.index',
),
1 => NULL,
2 =>
array (
'GET' => 0,
'HEAD' => 1,
),
3 => NULL,
4 => false,
5 => false,
6 => NULL,
),
),
'/app/projektes' => '/app/projektes' =>
array ( array (
0 => 0 =>
@@ -531,7 +511,7 @@ app('router')->setCompiledRoutes(
array ( array (
0 => 0 =>
array ( array (
'_route' => 'generated::39jgXf3VCd6UPHeq', '_route' => 'generated::uxMO19Mf3hr2Toum',
), ),
1 => NULL, 1 => NULL,
2 => 2 =>
@@ -551,7 +531,7 @@ app('router')->setCompiledRoutes(
array ( array (
0 => 0 =>
array ( array (
'_route' => 'generated::q2zRuHusTIPWmIV9', '_route' => 'generated::m3A5XjwvEkaNup5t',
), ),
1 => NULL, 1 => NULL,
2 => 2 =>
@@ -609,7 +589,7 @@ app('router')->setCompiledRoutes(
array ( array (
0 => 0 =>
array ( array (
'_route' => 'generated::mNwNaxL8mbBZ6eaR', '_route' => 'generated::Z41wyr5qM9oP9CJ6',
), ),
1 => NULL, 1 => NULL,
2 => 2 =>
@@ -629,7 +609,7 @@ app('router')->setCompiledRoutes(
array ( array (
0 => 0 =>
array ( array (
'_route' => 'generated::h3I4iJnQ2L4JGDMS', '_route' => 'generated::3MJVV9ddPhOupseg',
), ),
1 => NULL, 1 => NULL,
2 => 2 =>
@@ -649,7 +629,7 @@ app('router')->setCompiledRoutes(
array ( array (
0 => 0 =>
array ( array (
'_route' => 'generated::Nd4GUXT5WtrSYQgB', '_route' => 'generated::YkGuSf17Op2or928',
), ),
1 => NULL, 1 => NULL,
2 => 2 =>
@@ -669,7 +649,7 @@ app('router')->setCompiledRoutes(
array ( array (
0 => 0 =>
array ( array (
'_route' => 'generated::eZzyqJvyyb5SfD0x', '_route' => 'generated::5ZuRBmvrxtRNgNDz',
), ),
1 => NULL, 1 => NULL,
2 => 2 =>
@@ -689,7 +669,7 @@ app('router')->setCompiledRoutes(
array ( array (
0 => 0 =>
array ( array (
'_route' => 'generated::qiVmm2O3sFvwBq1k', '_route' => 'generated::F65hG3LXDMJPIoKt',
), ),
1 => NULL, 1 => NULL,
2 => 2 =>
@@ -2209,59 +2189,6 @@ app('router')->setCompiledRoutes(
'waitSeconds' => NULL, 'waitSeconds' => NULL,
'withTrashed' => false, 'withTrashed' => false,
), ),
'filament.admin.administration.resources.plans.index' =>
array (
'methods' =>
array (
0 => 'GET',
1 => 'HEAD',
),
'uri' => 'app/administration/plans',
'action' =>
array (
'domain' => NULL,
'middleware' =>
array (
0 => 'panel:admin',
1 => 'Illuminate\\Cookie\\Middleware\\EncryptCookies',
2 => 'Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse',
3 => 'Illuminate\\Session\\Middleware\\StartSession',
4 => 'Filament\\Http\\Middleware\\AuthenticateSession',
5 => 'Illuminate\\View\\Middleware\\ShareErrorsFromSession',
6 => 'Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken',
7 => 'Illuminate\\Routing\\Middleware\\SubstituteBindings',
8 => 'Filament\\Http\\Middleware\\DisableBladeIconComponents',
9 => 'Filament\\Http\\Middleware\\DispatchServingFilamentEvent',
10 => 'App\\Http\\Middleware\\AppUserAGBMiddleware',
11 => 'Filament\\Http\\Middleware\\Authenticate',
12 => 'verified:filament.admin.auth.email-verification.prompt',
),
'excluded_middleware' =>
array (
),
'uses' => 'App\\Filament\\Resources\\Plans\\Pages\\ListPlans@__invoke',
'controller' => 'App\\Filament\\Resources\\Plans\\Pages\\ListPlans',
'as' => 'filament.admin.administration.resources.plans.index',
'namespace' => NULL,
'prefix' => 'app/administration/plans',
'where' =>
array (
),
),
'fallback' => false,
'defaults' =>
array (
),
'wheres' =>
array (
),
'bindingFields' =>
array (
),
'lockSeconds' => NULL,
'waitSeconds' => NULL,
'withTrashed' => false,
),
'filament.admin.resources.projektes.index' => 'filament.admin.resources.projektes.index' =>
array ( array (
'methods' => 'methods' =>
@@ -2717,7 +2644,7 @@ app('router')->setCompiledRoutes(
'waitSeconds' => NULL, 'waitSeconds' => NULL,
'withTrashed' => false, 'withTrashed' => false,
), ),
'generated::39jgXf3VCd6UPHeq' => 'generated::uxMO19Mf3hr2Toum' =>
array ( array (
'methods' => 'methods' =>
array ( array (
@@ -2729,7 +2656,7 @@ app('router')->setCompiledRoutes(
array ( array (
'uses' => 'Livewire\\Mechanisms\\FrontendAssets\\FrontendAssets@returnJavaScriptAsFile', 'uses' => 'Livewire\\Mechanisms\\FrontendAssets\\FrontendAssets@returnJavaScriptAsFile',
'controller' => 'Livewire\\Mechanisms\\FrontendAssets\\FrontendAssets@returnJavaScriptAsFile', 'controller' => 'Livewire\\Mechanisms\\FrontendAssets\\FrontendAssets@returnJavaScriptAsFile',
'as' => 'generated::39jgXf3VCd6UPHeq', 'as' => 'generated::uxMO19Mf3hr2Toum',
), ),
'fallback' => false, 'fallback' => false,
'defaults' => 'defaults' =>
@@ -2745,7 +2672,7 @@ app('router')->setCompiledRoutes(
'waitSeconds' => NULL, 'waitSeconds' => NULL,
'withTrashed' => false, 'withTrashed' => false,
), ),
'generated::q2zRuHusTIPWmIV9' => 'generated::m3A5XjwvEkaNup5t' =>
array ( array (
'methods' => 'methods' =>
array ( array (
@@ -2757,7 +2684,7 @@ app('router')->setCompiledRoutes(
array ( array (
'uses' => 'Livewire\\Mechanisms\\FrontendAssets\\FrontendAssets@maps', 'uses' => 'Livewire\\Mechanisms\\FrontendAssets\\FrontendAssets@maps',
'controller' => 'Livewire\\Mechanisms\\FrontendAssets\\FrontendAssets@maps', 'controller' => 'Livewire\\Mechanisms\\FrontendAssets\\FrontendAssets@maps',
'as' => 'generated::q2zRuHusTIPWmIV9', 'as' => 'generated::m3A5XjwvEkaNup5t',
), ),
'fallback' => false, 'fallback' => false,
'defaults' => 'defaults' =>
@@ -2859,7 +2786,7 @@ app('router')->setCompiledRoutes(
'waitSeconds' => NULL, 'waitSeconds' => NULL,
'withTrashed' => false, 'withTrashed' => false,
), ),
'generated::mNwNaxL8mbBZ6eaR' => 'generated::Z41wyr5qM9oP9CJ6' =>
array ( array (
'methods' => 'methods' =>
array ( array (
@@ -2869,7 +2796,7 @@ app('router')->setCompiledRoutes(
'uri' => 'up', 'uri' => 'up',
'action' => 'action' =>
array ( array (
'uses' => 'O:55:"Laravel\\SerializableClosure\\UnsignedSerializableClosure":1:{s:12:"serializable";O:46:"Laravel\\SerializableClosure\\Serializers\\Native":5:{s:3:"use";a:0:{}s:8:"function";s:826:"function () { 'uses' => 'O:55:"Laravel\\SerializableClosure\\UnsignedSerializableClosure":1:{s:12:"serializable";O:46:"Laravel\\SerializableClosure\\Serializers\\Native":5:{s:3:"use";a:0:{}s:8:"function";s:834:"function () {
$exception = null; $exception = null;
try { try {
@@ -2884,11 +2811,11 @@ app('router')->setCompiledRoutes(
$exception = $e->getMessage(); $exception = $e->getMessage();
} }
return response(\\Illuminate\\Support\\Facades\\View::file(\'/Users/salam/Sites/nutzwerte_fi4/vendor/laravel/framework/src/Illuminate/Foundation/Configuration\'.\'/../resources/health-up.blade.php\', [ return response(\\Illuminate\\Support\\Facades\\View::file(\'/Users/hermanntelser/Sites/nutzwerte_fi4/vendor/laravel/framework/src/Illuminate/Foundation/Configuration\'.\'/../resources/health-up.blade.php\', [
\'exception\' => $exception, \'exception\' => $exception,
]), status: $exception ? 500 : 200); ]), status: $exception ? 500 : 200);
}";s:5:"scope";s:54:"Illuminate\\Foundation\\Configuration\\ApplicationBuilder";s:4:"this";N;s:4:"self";s:32:"0000000000000f400000000000000000";}}', }";s:5:"scope";s:54:"Illuminate\\Foundation\\Configuration\\ApplicationBuilder";s:4:"this";N;s:4:"self";s:32:"0000000000000f430000000000000000";}}',
'as' => 'generated::mNwNaxL8mbBZ6eaR', 'as' => 'generated::Z41wyr5qM9oP9CJ6',
), ),
'fallback' => false, 'fallback' => false,
'defaults' => 'defaults' =>
@@ -2904,7 +2831,7 @@ app('router')->setCompiledRoutes(
'waitSeconds' => NULL, 'waitSeconds' => NULL,
'withTrashed' => false, 'withTrashed' => false,
), ),
'generated::h3I4iJnQ2L4JGDMS' => 'generated::3MJVV9ddPhOupseg' =>
array ( array (
'methods' => 'methods' =>
array ( array (
@@ -2920,13 +2847,13 @@ app('router')->setCompiledRoutes(
), ),
'uses' => 'O:55:"Laravel\\SerializableClosure\\UnsignedSerializableClosure":1:{s:12:"serializable";O:46:"Laravel\\SerializableClosure\\Serializers\\Native":5:{s:3:"use";a:0:{}s:8:"function";s:50:"function () { 'uses' => 'O:55:"Laravel\\SerializableClosure\\UnsignedSerializableClosure":1:{s:12:"serializable";O:46:"Laravel\\SerializableClosure\\Serializers\\Native":5:{s:3:"use";a:0:{}s:8:"function";s:50:"function () {
return \\view(\'pages.welcome\'); return \\view(\'pages.welcome\');
}";s:5:"scope";s:37:"Illuminate\\Routing\\RouteFileRegistrar";s:4:"this";N;s:4:"self";s:32:"0000000000000f470000000000000000";}}', }";s:5:"scope";s:37:"Illuminate\\Routing\\RouteFileRegistrar";s:4:"this";N;s:4:"self";s:32:"0000000000000f4a0000000000000000";}}',
'namespace' => NULL, 'namespace' => NULL,
'prefix' => '', 'prefix' => '',
'where' => 'where' =>
array ( array (
), ),
'as' => 'generated::h3I4iJnQ2L4JGDMS', 'as' => 'generated::3MJVV9ddPhOupseg',
), ),
'fallback' => false, 'fallback' => false,
'defaults' => 'defaults' =>
@@ -2942,7 +2869,7 @@ app('router')->setCompiledRoutes(
'waitSeconds' => NULL, 'waitSeconds' => NULL,
'withTrashed' => false, 'withTrashed' => false,
), ),
'generated::Nd4GUXT5WtrSYQgB' => 'generated::YkGuSf17Op2or928' =>
array ( array (
'methods' => 'methods' =>
array ( array (
@@ -2958,13 +2885,13 @@ app('router')->setCompiledRoutes(
), ),
'uses' => 'O:55:"Laravel\\SerializableClosure\\UnsignedSerializableClosure":1:{s:12:"serializable";O:46:"Laravel\\SerializableClosure\\Serializers\\Native":5:{s:3:"use";a:0:{}s:8:"function";s:52:"function () { 'uses' => 'O:55:"Laravel\\SerializableClosure\\UnsignedSerializableClosure":1:{s:12:"serializable";O:46:"Laravel\\SerializableClosure\\Serializers\\Native":5:{s:3:"use";a:0:{}s:8:"function";s:52:"function () {
return \\view(\'pages.nutzwerte\'); return \\view(\'pages.nutzwerte\');
}";s:5:"scope";s:37:"Illuminate\\Routing\\RouteFileRegistrar";s:4:"this";N;s:4:"self";s:32:"0000000000000f490000000000000000";}}', }";s:5:"scope";s:37:"Illuminate\\Routing\\RouteFileRegistrar";s:4:"this";N;s:4:"self";s:32:"0000000000000f4c0000000000000000";}}',
'namespace' => NULL, 'namespace' => NULL,
'prefix' => '', 'prefix' => '',
'where' => 'where' =>
array ( array (
), ),
'as' => 'generated::Nd4GUXT5WtrSYQgB', 'as' => 'generated::YkGuSf17Op2or928',
), ),
'fallback' => false, 'fallback' => false,
'defaults' => 'defaults' =>
@@ -2980,7 +2907,7 @@ app('router')->setCompiledRoutes(
'waitSeconds' => NULL, 'waitSeconds' => NULL,
'withTrashed' => false, 'withTrashed' => false,
), ),
'generated::eZzyqJvyyb5SfD0x' => 'generated::5ZuRBmvrxtRNgNDz' =>
array ( array (
'methods' => 'methods' =>
array ( array (
@@ -2996,13 +2923,13 @@ app('router')->setCompiledRoutes(
), ),
'uses' => 'O:55:"Laravel\\SerializableClosure\\UnsignedSerializableClosure":1:{s:12:"serializable";O:46:"Laravel\\SerializableClosure\\Serializers\\Native":5:{s:3:"use";a:0:{}s:8:"function";s:51:"function () { 'uses' => 'O:55:"Laravel\\SerializableClosure\\UnsignedSerializableClosure":1:{s:12:"serializable";O:46:"Laravel\\SerializableClosure\\Serializers\\Native":5:{s:3:"use";a:0:{}s:8:"function";s:51:"function () {
return \\view(\'pages.programm\'); return \\view(\'pages.programm\');
}";s:5:"scope";s:37:"Illuminate\\Routing\\RouteFileRegistrar";s:4:"this";N;s:4:"self";s:32:"0000000000000f4b0000000000000000";}}', }";s:5:"scope";s:37:"Illuminate\\Routing\\RouteFileRegistrar";s:4:"this";N;s:4:"self";s:32:"0000000000000f4e0000000000000000";}}',
'namespace' => NULL, 'namespace' => NULL,
'prefix' => '', 'prefix' => '',
'where' => 'where' =>
array ( array (
), ),
'as' => 'generated::eZzyqJvyyb5SfD0x', 'as' => 'generated::5ZuRBmvrxtRNgNDz',
), ),
'fallback' => false, 'fallback' => false,
'defaults' => 'defaults' =>
@@ -3018,7 +2945,7 @@ app('router')->setCompiledRoutes(
'waitSeconds' => NULL, 'waitSeconds' => NULL,
'withTrashed' => false, 'withTrashed' => false,
), ),
'generated::qiVmm2O3sFvwBq1k' => 'generated::F65hG3LXDMJPIoKt' =>
array ( array (
'methods' => 'methods' =>
array ( array (
@@ -3034,13 +2961,13 @@ app('router')->setCompiledRoutes(
), ),
'uses' => 'O:55:"Laravel\\SerializableClosure\\UnsignedSerializableClosure":1:{s:12:"serializable";O:46:"Laravel\\SerializableClosure\\Serializers\\Native":5:{s:3:"use";a:0:{}s:8:"function";s:52:"function () { 'uses' => 'O:55:"Laravel\\SerializableClosure\\UnsignedSerializableClosure":1:{s:12:"serializable";O:46:"Laravel\\SerializableClosure\\Serializers\\Native":5:{s:3:"use";a:0:{}s:8:"function";s:52:"function () {
return \\view(\'pages.impressum\'); return \\view(\'pages.impressum\');
}";s:5:"scope";s:37:"Illuminate\\Routing\\RouteFileRegistrar";s:4:"this";N;s:4:"self";s:32:"0000000000000f4d0000000000000000";}}', }";s:5:"scope";s:37:"Illuminate\\Routing\\RouteFileRegistrar";s:4:"this";N;s:4:"self";s:32:"0000000000000f500000000000000000";}}',
'namespace' => NULL, 'namespace' => NULL,
'prefix' => '', 'prefix' => '',
'where' => 'where' =>
array ( array (
), ),
'as' => 'generated::qiVmm2O3sFvwBq1k', 'as' => 'generated::F65hG3LXDMJPIoKt',
), ),
'fallback' => false, 'fallback' => false,
'defaults' => 'defaults' =>
@@ -3142,13 +3069,13 @@ app('router')->setCompiledRoutes(
'uri' => 'storage/{path}', 'uri' => 'storage/{path}',
'action' => 'action' =>
array ( array (
'uses' => 'O:55:"Laravel\\SerializableClosure\\UnsignedSerializableClosure":1:{s:12:"serializable";O:46:"Laravel\\SerializableClosure\\Serializers\\Native":5:{s:3:"use";a:3:{s:4:"disk";s:5:"local";s:6:"config";a:5:{s:6:"driver";s:5:"local";s:4:"root";s:52:"/Users/salam/Sites/nutzwerte_fi4/storage/app/private";s:5:"serve";b:1;s:5:"throw";b:0;s:6:"report";b:0;}s:12:"isProduction";b:0;}s:8:"function";s:323:"function (\\Illuminate\\Http\\Request $request, string $path) use ($disk, $config, $isProduction) { 'uses' => 'O:55:"Laravel\\SerializableClosure\\UnsignedSerializableClosure":1:{s:12:"serializable";O:46:"Laravel\\SerializableClosure\\Serializers\\Native":5:{s:3:"use";a:3:{s:4:"disk";s:5:"local";s:6:"config";a:5:{s:6:"driver";s:5:"local";s:4:"root";s:60:"/Users/hermanntelser/Sites/nutzwerte_fi4/storage/app/private";s:5:"serve";b:1;s:5:"throw";b:0;s:6:"report";b:0;}s:12:"isProduction";b:0;}s:8:"function";s:323:"function (\\Illuminate\\Http\\Request $request, string $path) use ($disk, $config, $isProduction) {
return (new \\Illuminate\\Filesystem\\ServeFile( return (new \\Illuminate\\Filesystem\\ServeFile(
$disk, $disk,
$config, $config,
$isProduction $isProduction
))($request, $path); ))($request, $path);
}";s:5:"scope";s:47:"Illuminate\\Filesystem\\FilesystemServiceProvider";s:4:"this";N;s:4:"self";s:32:"0000000000000f520000000000000000";}}', }";s:5:"scope";s:47:"Illuminate\\Filesystem\\FilesystemServiceProvider";s:4:"this";N;s:4:"self";s:32:"0000000000000f550000000000000000";}}',
'as' => 'storage.local', 'as' => 'storage.local',
), ),
'fallback' => false, 'fallback' => false,
+46 -44
View File
@@ -37,29 +37,30 @@
33 => 'Filament\\Forms\\FormsServiceProvider', 33 => 'Filament\\Forms\\FormsServiceProvider',
34 => 'Filament\\Infolists\\InfolistsServiceProvider', 34 => 'Filament\\Infolists\\InfolistsServiceProvider',
35 => 'Filament\\Notifications\\NotificationsServiceProvider', 35 => 'Filament\\Notifications\\NotificationsServiceProvider',
36 => 'Filament\\Schemas\\SchemasServiceProvider', 36 => 'Filament\\QueryBuilder\\QueryBuilderServiceProvider',
37 => 'Filament\\Support\\SupportServiceProvider', 37 => 'Filament\\Schemas\\SchemasServiceProvider',
38 => 'Filament\\Tables\\TablesServiceProvider', 38 => 'Filament\\Support\\SupportServiceProvider',
39 => 'Filament\\Widgets\\WidgetsServiceProvider', 39 => 'Filament\\Tables\\TablesServiceProvider',
40 => 'JaOcero\\RadioDeck\\RadioDeckServiceProvider', 40 => 'Filament\\Widgets\\WidgetsServiceProvider',
41 => 'Kirschbaum\\PowerJoins\\PowerJoinsServiceProvider', 41 => 'JaOcero\\RadioDeck\\RadioDeckServiceProvider',
42 => 'Laravel\\Pail\\PailServiceProvider', 42 => 'Kirschbaum\\PowerJoins\\PowerJoinsServiceProvider',
43 => 'Laravel\\Sail\\SailServiceProvider', 43 => 'Laravel\\Pail\\PailServiceProvider',
44 => 'Laravel\\Tinker\\TinkerServiceProvider', 44 => 'Laravel\\Sail\\SailServiceProvider',
45 => 'Livewire\\LivewireServiceProvider', 45 => 'Laravel\\Tinker\\TinkerServiceProvider',
46 => 'MallardDuck\\LucideIcons\\BladeLucideIconsServiceProvider', 46 => 'Livewire\\LivewireServiceProvider',
47 => 'Carbon\\Laravel\\ServiceProvider', 47 => 'MallardDuck\\LucideIcons\\BladeLucideIconsServiceProvider',
48 => 'NunoMaduro\\Collision\\Adapters\\Laravel\\CollisionServiceProvider', 48 => 'Carbon\\Laravel\\ServiceProvider',
49 => 'Termwind\\Laravel\\TermwindServiceProvider', 49 => 'NunoMaduro\\Collision\\Adapters\\Laravel\\CollisionServiceProvider',
50 => 'Pest\\Laravel\\PestServiceProvider', 50 => 'Termwind\\Laravel\\TermwindServiceProvider',
51 => 'Propaganistas\\LaravelPhone\\PhoneServiceProvider', 51 => 'Pest\\Laravel\\PestServiceProvider',
52 => 'RyanChandler\\BladeCaptureDirective\\BladeCaptureDirectiveServiceProvider', 52 => 'Propaganistas\\LaravelPhone\\PhoneServiceProvider',
53 => 'Spatie\\LoginLink\\LoginLinkServiceProvider', 53 => 'RyanChandler\\BladeCaptureDirective\\BladeCaptureDirectiveServiceProvider',
54 => 'Spatie\\Permission\\PermissionServiceProvider', 54 => 'Spatie\\LoginLink\\LoginLinkServiceProvider',
55 => 'Swis\\Filament\\Backgrounds\\FilamentBackgroundsServiceProvider', 55 => 'Spatie\\Permission\\PermissionServiceProvider',
56 => 'Ysfkaya\\FilamentPhoneInput\\FilamentPhoneInputServiceProvider', 56 => 'Swis\\Filament\\Backgrounds\\FilamentBackgroundsServiceProvider',
57 => 'App\\Providers\\AppServiceProvider', 57 => 'Ysfkaya\\FilamentPhoneInput\\FilamentPhoneInputServiceProvider',
58 => 'App\\Providers\\Filament\\AdminPanelProvider', 58 => 'App\\Providers\\AppServiceProvider',
59 => 'App\\Providers\\Filament\\AdminPanelProvider',
), ),
'eager' => 'eager' =>
array ( array (
@@ -86,27 +87,28 @@
20 => 'Filament\\Forms\\FormsServiceProvider', 20 => 'Filament\\Forms\\FormsServiceProvider',
21 => 'Filament\\Infolists\\InfolistsServiceProvider', 21 => 'Filament\\Infolists\\InfolistsServiceProvider',
22 => 'Filament\\Notifications\\NotificationsServiceProvider', 22 => 'Filament\\Notifications\\NotificationsServiceProvider',
23 => 'Filament\\Schemas\\SchemasServiceProvider', 23 => 'Filament\\QueryBuilder\\QueryBuilderServiceProvider',
24 => 'Filament\\Support\\SupportServiceProvider', 24 => 'Filament\\Schemas\\SchemasServiceProvider',
25 => 'Filament\\Tables\\TablesServiceProvider', 25 => 'Filament\\Support\\SupportServiceProvider',
26 => 'Filament\\Widgets\\WidgetsServiceProvider', 26 => 'Filament\\Tables\\TablesServiceProvider',
27 => 'JaOcero\\RadioDeck\\RadioDeckServiceProvider', 27 => 'Filament\\Widgets\\WidgetsServiceProvider',
28 => 'Kirschbaum\\PowerJoins\\PowerJoinsServiceProvider', 28 => 'JaOcero\\RadioDeck\\RadioDeckServiceProvider',
29 => 'Laravel\\Pail\\PailServiceProvider', 29 => 'Kirschbaum\\PowerJoins\\PowerJoinsServiceProvider',
30 => 'Livewire\\LivewireServiceProvider', 30 => 'Laravel\\Pail\\PailServiceProvider',
31 => 'MallardDuck\\LucideIcons\\BladeLucideIconsServiceProvider', 31 => 'Livewire\\LivewireServiceProvider',
32 => 'Carbon\\Laravel\\ServiceProvider', 32 => 'MallardDuck\\LucideIcons\\BladeLucideIconsServiceProvider',
33 => 'NunoMaduro\\Collision\\Adapters\\Laravel\\CollisionServiceProvider', 33 => 'Carbon\\Laravel\\ServiceProvider',
34 => 'Termwind\\Laravel\\TermwindServiceProvider', 34 => 'NunoMaduro\\Collision\\Adapters\\Laravel\\CollisionServiceProvider',
35 => 'Pest\\Laravel\\PestServiceProvider', 35 => 'Termwind\\Laravel\\TermwindServiceProvider',
36 => 'Propaganistas\\LaravelPhone\\PhoneServiceProvider', 36 => 'Pest\\Laravel\\PestServiceProvider',
37 => 'RyanChandler\\BladeCaptureDirective\\BladeCaptureDirectiveServiceProvider', 37 => 'Propaganistas\\LaravelPhone\\PhoneServiceProvider',
38 => 'Spatie\\LoginLink\\LoginLinkServiceProvider', 38 => 'RyanChandler\\BladeCaptureDirective\\BladeCaptureDirectiveServiceProvider',
39 => 'Spatie\\Permission\\PermissionServiceProvider', 39 => 'Spatie\\LoginLink\\LoginLinkServiceProvider',
40 => 'Swis\\Filament\\Backgrounds\\FilamentBackgroundsServiceProvider', 40 => 'Spatie\\Permission\\PermissionServiceProvider',
41 => 'Ysfkaya\\FilamentPhoneInput\\FilamentPhoneInputServiceProvider', 41 => 'Swis\\Filament\\Backgrounds\\FilamentBackgroundsServiceProvider',
42 => 'App\\Providers\\AppServiceProvider', 42 => 'Ysfkaya\\FilamentPhoneInput\\FilamentPhoneInputServiceProvider',
43 => 'App\\Providers\\Filament\\AdminPanelProvider', 43 => 'App\\Providers\\AppServiceProvider',
44 => 'App\\Providers\\Filament\\AdminPanelProvider',
), ),
'deferred' => 'deferred' =>
array ( array (
Generated
+87 -40
View File
@@ -1461,16 +1461,16 @@
}, },
{ {
"name": "filament/actions", "name": "filament/actions",
"version": "v4.1.10", "version": "v4.2.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/filamentphp/actions.git", "url": "https://github.com/filamentphp/actions.git",
"reference": "9f774e58957650a21095075c423c526b8e2e4bc4" "reference": "63058c9123407559a3066f7877147a556753b0f3"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/filamentphp/actions/zipball/9f774e58957650a21095075c423c526b8e2e4bc4", "url": "https://api.github.com/repos/filamentphp/actions/zipball/63058c9123407559a3066f7877147a556753b0f3",
"reference": "9f774e58957650a21095075c423c526b8e2e4bc4", "reference": "63058c9123407559a3066f7877147a556753b0f3",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -1479,7 +1479,7 @@
"filament/infolists": "self.version", "filament/infolists": "self.version",
"filament/notifications": "self.version", "filament/notifications": "self.version",
"filament/support": "self.version", "filament/support": "self.version",
"league/csv": "^9.16", "league/csv": "^9.27",
"openspout/openspout": "^4.23", "openspout/openspout": "^4.23",
"php": "^8.2" "php": "^8.2"
}, },
@@ -1506,20 +1506,20 @@
"issues": "https://github.com/filamentphp/filament/issues", "issues": "https://github.com/filamentphp/filament/issues",
"source": "https://github.com/filamentphp/filament" "source": "https://github.com/filamentphp/filament"
}, },
"time": "2025-10-21T10:01:43+00:00" "time": "2025-11-02T17:19:49+00:00"
}, },
{ {
"name": "filament/filament", "name": "filament/filament",
"version": "v4.1.10", "version": "v4.2.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/filamentphp/panels.git", "url": "https://github.com/filamentphp/panels.git",
"reference": "6b04c1e0cfe20c4b06d97d8ce97c3e3b95a85668" "reference": "0877be87a523a469544f4e9c866ac1ead0e206ab"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/filamentphp/panels/zipball/6b04c1e0cfe20c4b06d97d8ce97c3e3b95a85668", "url": "https://api.github.com/repos/filamentphp/panels/zipball/0877be87a523a469544f4e9c866ac1ead0e206ab",
"reference": "6b04c1e0cfe20c4b06d97d8ce97c3e3b95a85668", "reference": "0877be87a523a469544f4e9c866ac1ead0e206ab",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -1563,20 +1563,20 @@
"issues": "https://github.com/filamentphp/filament/issues", "issues": "https://github.com/filamentphp/filament/issues",
"source": "https://github.com/filamentphp/filament" "source": "https://github.com/filamentphp/filament"
}, },
"time": "2025-10-21T10:01:17+00:00" "time": "2025-11-02T17:20:20+00:00"
}, },
{ {
"name": "filament/forms", "name": "filament/forms",
"version": "v4.1.10", "version": "v4.2.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/filamentphp/forms.git", "url": "https://github.com/filamentphp/forms.git",
"reference": "4abc8c0376e8801e58d28bab619eff3068bb1b57" "reference": "aa46c3985d2c5d6f1a415618b7f095bacf812a95"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/filamentphp/forms/zipball/4abc8c0376e8801e58d28bab619eff3068bb1b57", "url": "https://api.github.com/repos/filamentphp/forms/zipball/aa46c3985d2c5d6f1a415618b7f095bacf812a95",
"reference": "4abc8c0376e8801e58d28bab619eff3068bb1b57", "reference": "aa46c3985d2c5d6f1a415618b7f095bacf812a95",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -1613,11 +1613,11 @@
"issues": "https://github.com/filamentphp/filament/issues", "issues": "https://github.com/filamentphp/filament/issues",
"source": "https://github.com/filamentphp/filament" "source": "https://github.com/filamentphp/filament"
}, },
"time": "2025-10-21T10:01:30+00:00" "time": "2025-11-02T17:19:59+00:00"
}, },
{ {
"name": "filament/infolists", "name": "filament/infolists",
"version": "v4.1.10", "version": "v4.2.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/filamentphp/infolists.git", "url": "https://github.com/filamentphp/infolists.git",
@@ -1662,16 +1662,16 @@
}, },
{ {
"name": "filament/notifications", "name": "filament/notifications",
"version": "v4.1.10", "version": "v4.2.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/filamentphp/notifications.git", "url": "https://github.com/filamentphp/notifications.git",
"reference": "9e606c9566084032f6645ea633ce954b5dd6d113" "reference": "3d7fc952a2610b78d4f95c6a6688674d4f1d4098"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/filamentphp/notifications/zipball/9e606c9566084032f6645ea633ce954b5dd6d113", "url": "https://api.github.com/repos/filamentphp/notifications/zipball/3d7fc952a2610b78d4f95c6a6688674d4f1d4098",
"reference": "9e606c9566084032f6645ea633ce954b5dd6d113", "reference": "3d7fc952a2610b78d4f95c6a6688674d4f1d4098",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -1705,20 +1705,66 @@
"issues": "https://github.com/filamentphp/filament/issues", "issues": "https://github.com/filamentphp/filament/issues",
"source": "https://github.com/filamentphp/filament" "source": "https://github.com/filamentphp/filament"
}, },
"time": "2025-10-14T15:22:44+00:00" "time": "2025-11-02T17:19:40+00:00"
}, },
{ {
"name": "filament/schemas", "name": "filament/query-builder",
"version": "v4.1.10", "version": "v4.2.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/filamentphp/schemas.git", "url": "https://github.com/filamentphp/query-builder.git",
"reference": "6c1a5d817981fd2f72c4746d3d89e4da6aa2519d" "reference": "9304ff5fbe7480e7ed06269aa0168dfac716b8a2"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/filamentphp/schemas/zipball/6c1a5d817981fd2f72c4746d3d89e4da6aa2519d", "url": "https://api.github.com/repos/filamentphp/query-builder/zipball/9304ff5fbe7480e7ed06269aa0168dfac716b8a2",
"reference": "6c1a5d817981fd2f72c4746d3d89e4da6aa2519d", "reference": "9304ff5fbe7480e7ed06269aa0168dfac716b8a2",
"shasum": ""
},
"require": {
"filament/actions": "self.version",
"filament/forms": "self.version",
"filament/schemas": "self.version",
"filament/support": "self.version",
"php": "^8.2"
},
"type": "library",
"extra": {
"laravel": {
"providers": [
"Filament\\QueryBuilder\\QueryBuilderServiceProvider"
]
}
},
"autoload": {
"psr-4": {
"Filament\\QueryBuilder\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"description": "A powerful query builder component for Filament.",
"homepage": "https://github.com/filamentphp/filament",
"support": {
"issues": "https://github.com/filamentphp/filament/issues",
"source": "https://github.com/filamentphp/filament"
},
"time": "2025-11-02T16:56:49+00:00"
},
{
"name": "filament/schemas",
"version": "v4.2.0",
"source": {
"type": "git",
"url": "https://github.com/filamentphp/schemas.git",
"reference": "157e01ad569225b304e5b28ea3bde8f8cc6d2192"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/filamentphp/schemas/zipball/157e01ad569225b304e5b28ea3bde8f8cc6d2192",
"reference": "157e01ad569225b304e5b28ea3bde8f8cc6d2192",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -1750,20 +1796,20 @@
"issues": "https://github.com/filamentphp/filament/issues", "issues": "https://github.com/filamentphp/filament/issues",
"source": "https://github.com/filamentphp/filament" "source": "https://github.com/filamentphp/filament"
}, },
"time": "2025-10-21T10:02:16+00:00" "time": "2025-11-02T17:20:05+00:00"
}, },
{ {
"name": "filament/support", "name": "filament/support",
"version": "v4.1.10", "version": "v4.2.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/filamentphp/support.git", "url": "https://github.com/filamentphp/support.git",
"reference": "acafe9386c9c3ce662c46f9ed9d5410b5b04edf1" "reference": "06bafcfc604fe4acc5494cd5193909b51911aeeb"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/filamentphp/support/zipball/acafe9386c9c3ce662c46f9ed9d5410b5b04edf1", "url": "https://api.github.com/repos/filamentphp/support/zipball/06bafcfc604fe4acc5494cd5193909b51911aeeb",
"reference": "acafe9386c9c3ce662c46f9ed9d5410b5b04edf1", "reference": "06bafcfc604fe4acc5494cd5193909b51911aeeb",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -1808,25 +1854,26 @@
"issues": "https://github.com/filamentphp/filament/issues", "issues": "https://github.com/filamentphp/filament/issues",
"source": "https://github.com/filamentphp/filament" "source": "https://github.com/filamentphp/filament"
}, },
"time": "2025-10-21T10:01:59+00:00" "time": "2025-11-02T17:20:06+00:00"
}, },
{ {
"name": "filament/tables", "name": "filament/tables",
"version": "v4.1.10", "version": "v4.2.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/filamentphp/tables.git", "url": "https://github.com/filamentphp/tables.git",
"reference": "7d06cedca92948533173d2a62593c8c28dae055c" "reference": "8ff5191cc7a33db20856600cd5b1f5f137847111"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/filamentphp/tables/zipball/7d06cedca92948533173d2a62593c8c28dae055c", "url": "https://api.github.com/repos/filamentphp/tables/zipball/8ff5191cc7a33db20856600cd5b1f5f137847111",
"reference": "7d06cedca92948533173d2a62593c8c28dae055c", "reference": "8ff5191cc7a33db20856600cd5b1f5f137847111",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"filament/actions": "self.version", "filament/actions": "self.version",
"filament/forms": "self.version", "filament/forms": "self.version",
"filament/query-builder": "self.version",
"filament/support": "self.version", "filament/support": "self.version",
"php": "^8.2" "php": "^8.2"
}, },
@@ -1853,11 +1900,11 @@
"issues": "https://github.com/filamentphp/filament/issues", "issues": "https://github.com/filamentphp/filament/issues",
"source": "https://github.com/filamentphp/filament" "source": "https://github.com/filamentphp/filament"
}, },
"time": "2025-10-21T10:02:11+00:00" "time": "2025-11-02T17:20:05+00:00"
}, },
{ {
"name": "filament/widgets", "name": "filament/widgets",
"version": "v4.1.10", "version": "v4.2.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/filamentphp/widgets.git", "url": "https://github.com/filamentphp/widgets.git",
@@ -1,34 +0,0 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('plans', function (Blueprint $table) {
$table->id();
$table->string('icon')->nullable();
$table->string('name')->nullable();
$table->string('payment')->nullable();
$table->string('description')->nullable();
$table->integer('preis')->default(0);
$table->integer('limit_user')->default(1);
$table->integer('limit_gutachter')->default(1);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('plans');
}
};
@@ -14,8 +14,8 @@ return new class extends Migration
Schema::create('textblocks', function (Blueprint $table) { Schema::create('textblocks', function (Blueprint $table) {
$table->id(); $table->id();
$table->string('name'); $table->string('name');
$table->string('beschreibung')->nullable(); $table->text('textblock')->nullable();
$table->text('textblock'); $table->text('textblock2')->nullable();
$table->timestamps(); $table->timestamps();
}); });
} }
@@ -19,7 +19,7 @@ return new class extends Migration
$table->string('name2')->nullable(); $table->string('name2')->nullable();
$table->string('part')->nullable(); $table->string('part')->nullable();
$table->boolean('ueberschrift_anzeigen')->default(0)->nullable(); $table->boolean('ueberschrift_anzeigen')->default(0)->nullable();
$table->integer('tabellen_id')->default(0)->nullable(); $table->integer('inhaltselement_id')->default(0)->nullable();
$table->integer('textblock_id')->default(0)->nullable(); $table->integer('textblock_id')->default(0)->nullable();
$table->integer('seite')->default(0); $table->integer('seite')->default(0);
$table->integer('neue_seite')->default(0); $table->integer('neue_seite')->default(0);
@@ -19,7 +19,7 @@ return new class extends Migration
$table->string('top_nummer')->nullable(); $table->string('top_nummer')->nullable();
$table->string('type')->nullable(); $table->string('type')->nullable();
$table->string('geschoss')->nullable(); $table->string('geschoss')->nullable();
$table->integer('nutzwert')->default(0)->nullable(); $table->decimal('nutzwert', 5, 2)->default(0)->nullable();
// 10 Zusatzfelder // 10 Zusatzfelder
$table->decimal('a', 5, 2)->default(0); $table->decimal('a', 5, 2)->default(0);
$table->decimal('b', 5, 2)->default(0); $table->decimal('b', 5, 2)->default(0);
@@ -20,14 +20,16 @@ return new class extends Migration
$table->string('name2')->nullable(); $table->string('name2')->nullable();
$table->string('part')->nullable(); $table->string('part')->nullable();
$table->boolean('ueberschrift_anzeigen')->default(0)->nullable(); $table->boolean('ueberschrift_anzeigen')->default(0)->nullable();
$table->integer('tabellen_id')->default(0)->nullable(); $table->integer('inhaltselement_id')->default(0)->nullable();
$table->integer('textblock_id')->default(0)->nullable(); $table->integer('textblock_id')->default(0)->nullable();
$table->integer('konto_textblock_id')->default(0)->nullable(); $table->integer('konto_textblock_id')->default(0)->nullable();
$table->integer('seite')->default(0); $table->integer('seite')->default(0);
$table->integer('neue_seite')->default(0); $table->integer('neue_seite')->default(0);
$table->integer('seitenzahl_anzeige')->default(0); $table->integer('seitenzahl_anzeige')->default(0);
$table->boolean('no_edit')->default(0)->nullable(); $table->boolean('no_edit')->default(0)->nullable();
$table->string('textblock_name')->nullable();
$table->text('textblock')->nullable(); $table->text('textblock')->nullable();
$table->text('textblock2')->nullable();
$table->timestamps(); $table->timestamps();
}); });
} }
@@ -11,7 +11,7 @@ return new class extends Migration
*/ */
public function up(): void public function up(): void
{ {
Schema::create('tabellens', function (Blueprint $table) { Schema::create('inhaltselements', function (Blueprint $table) {
$table->id(); $table->id();
$table->text('name')->nullable(); $table->text('name')->nullable();
$table->timestamps(); $table->timestamps();
@@ -23,6 +23,6 @@ return new class extends Migration
*/ */
public function down(): void public function down(): void
{ {
Schema::dropIfExists('tabellens'); Schema::dropIfExists('inhaltselements');
} }
}; };
+1 -2
View File
@@ -18,8 +18,7 @@ class DatabaseSeeder extends Seeder
$this->call([ $this->call([
MethodeSeeder::class, MethodeSeeder::class,
OrientierungenSeeder::class, OrientierungenSeeder::class,
PlansSeeder::class, InhaltselementSeeder::class,
TabellenSeeder::class,
TextblockSeeder::class, TextblockSeeder::class,
InhaltsverzeichnisSeeder::class, InhaltsverzeichnisSeeder::class,
KontoSeeder::class, KontoSeeder::class,
@@ -5,14 +5,14 @@ namespace Database\Seeders;
use Illuminate\Database\Seeder; use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\DB;
class TabellenSeeder extends Seeder class InhaltselementSeeder extends Seeder
{ {
/** /**
* Run the database seeds. * Run the database seeds.
*/ */
public function run(): void public function run(): void
{ {
$sql = "INSERT INTO `tabellens` (`id`, `name`, `created_at`, `updated_at`) $sql = "INSERT INTO `inhaltselements` (`id`, `name`, `created_at`, `updated_at`)
VALUES VALUES
('1', 'INHALTSVERZEICHNIS', NULL, NULL), ('1', 'INHALTSVERZEICHNIS', NULL, NULL),
('2', 'GRUNDBUCHSTAND', NULL, NULL), ('2', 'GRUNDBUCHSTAND', NULL, NULL),
@@ -21,7 +21,8 @@ class TabellenSeeder extends Seeder
('5', 'ZU UND ABSCHLÄGE', NULL, NULL), ('5', 'ZU UND ABSCHLÄGE', NULL, NULL),
('6', 'NUTZWERTBERECHNUNG', NULL, NULL), ('6', 'NUTZWERTBERECHNUNG', NULL, NULL),
('7', 'ZUSAMMENSTELLUNG', NULL, NULL), ('7', 'ZUSAMMENSTELLUNG', NULL, NULL),
('8', 'AUFTRAGGEBER', NULL, NULL); ('8', 'AUFTRAGGEBER', NULL, NULL),
('9', 'DECKBLATT', NULL, NULL);
"; ";
DB::unprepared($sql); DB::unprepared($sql);
} }
@@ -12,9 +12,9 @@ class InhaltsverzeichnisSeeder extends Seeder
*/ */
public function run(): void public function run(): void
{ {
$sql = "INSERT INTO `inhaltsverzeichnis` (`id`, `name`, `name2`, `part`, `ueberschrift_anzeigen`, `tabellen_id`, `textblock_id`, `sort`, `ordnungszahl`, `seite`, `neue_seite`, `seitenzahl_anzeige`, `no_edit`, `created_at`, `updated_at`) $sql = "INSERT INTO `inhaltsverzeichnis` (`id`, `name`, `name2`, `part`, `ueberschrift_anzeigen`, `inhaltselement_id`, `textblock_id`, `sort`, `ordnungszahl`, `seite`, `neue_seite`, `seitenzahl_anzeige`, `no_edit`, `created_at`, `updated_at`)
VALUES VALUES
('1', 'DECKBLATT', NULL, 'standard', '0', '0', '11', '1', '0', '0', '1', '0', '0', NULL, '2025-10-19 08:13:53'), ('1', 'DECKBLATT', NULL, 'standard', '0', '9', '11', '1', '0', '0', '1', '0', '0', NULL, '2025-10-19 08:13:53'),
('2', 'INHALTSVERZEICHNIS', NULL, 'standard', '1', '1', '0', '3', '0', '0', '1', '0', '0', NULL, '2025-10-19 08:13:53'), ('2', 'INHALTSVERZEICHNIS', NULL, 'standard', '1', '1', '0', '3', '0', '0', '1', '0', '0', NULL, '2025-10-19 08:13:53'),
('3', 'ALLGEMEINE ANGABEN', NULL, 'standard', '1', '0', '0', '4', '1', '3', '1', '1', '0', NULL, '2025-10-19 08:13:53'), ('3', 'ALLGEMEINE ANGABEN', NULL, 'standard', '1', '0', '0', '4', '1', '3', '1', '1', '0', NULL, '2025-10-19 08:13:53'),
('4', 'AUFTRAGGEBER', NULL, 'standard', '1', '8', '0', '5', '1.1', '3', '0', '1', '0', NULL, '2025-10-19 08:13:53'), ('4', 'AUFTRAGGEBER', NULL, 'standard', '1', '8', '0', '5', '1.1', '3', '0', '1', '0', NULL, '2025-10-19 08:13:53'),
+364 -91
View File
@@ -14,7 +14,8 @@ class TestProjektSeeder extends Seeder
{ {
$sql = "INSERT INTO `projektes` (`id`, `konto_id`, `auftraggeber_id`, `gutachter_id`, `interner_name`, `offizieller_name`, `ort`, `beschreibung`, `erstellung`, `status`, `pdf_nutzwerte_name`, `pdf_nutzwerte_status`, `evaluation_gutachten`, `bezahlt_am`, `created_at`, `updated_at`, `deleted_at`) $sql = "INSERT INTO `projektes` (`id`, `konto_id`, `auftraggeber_id`, `gutachter_id`, `interner_name`, `offizieller_name`, `ort`, `beschreibung`, `erstellung`, `status`, `pdf_nutzwerte_name`, `pdf_nutzwerte_status`, `evaluation_gutachten`, `bezahlt_am`, `created_at`, `updated_at`, `deleted_at`)
VALUES VALUES
('1', '1', '1', '1', 'P310 nht GE03 08 EF PLUS', 'P310 nht Gerlos Haus 2', 'Innsbruck', '<p>KOPIE! KOPIE! K4: lt. Änderungseinreichung<br>keine gravierenden unterschiede zu k2+<br>KOPIE VON EF!!<br>ÄNDERUNG - TAUSCH TOP 1+2 !!!<br><br><strong>ACHTUNG FÜR ENDFASSUNG </strong><br>gibt <strong>Änderung DER GARTENFLÄCHE bei Gartenwohnung W04 </strong>wegen neuem Weg über die Böschung zwichen Haus 2 und 3, ist <strong>noch nicht eingearbeitet</strong>, warten auf OK von nht - sh mail vom 19.09.2025 von studio 23<br>ansich würde sich an den Nutzwerten nichts verändern! 2NW für Garten G04<br><br><strong>GARTENÄNDERUNG AM 24.09.25 ERLEDIGT! EF SEPTEMBER 2025</strong></p>', '2025-10-22', 'entwurf', '', '0', '1', '2025-10-29 11:24:24', '2025-10-21 04:03:25', '2025-10-31 10:43:08', NULL); ('1', '1', '1', '1', 'P310 nht GE03 08 EF PLUS', 'P310 nht Gerlos Haus 2', 'Innsbruck', '<p>KOPIE! KOPIE! K4: lt. Änderungseinreichung<br>keine gravierenden unterschiede zu k2+<br>KOPIE VON EF!!<br>ÄNDERUNG - TAUSCH TOP 1+2 !!!<br><br><strong>ACHTUNG FÜR ENDFASSUNG </strong><br>gibt <strong>Änderung DER GARTENFLÄCHE bei Gartenwohnung W04 </strong>wegen neuem Weg über die Böschung zwichen Haus 2 und 3, ist <strong>noch nicht eingearbeitet</strong>, warten auf OK von nht - sh mail vom 19.09.2025 von studio 23<br>ansich würde sich an den Nutzwerten nichts verändern! 2NW für Garten G04<br><br><strong>GARTENÄNDERUNG AM 24.09.25 ERLEDIGT! EF SEPTEMBER 2025</strong></p>', '2025-10-22', 'entwurf', '', '0', '1', '2025-10-29 11:24:24', '2025-10-21 04:03:25', '2025-10-31 10:43:08', NULL),
('2', '1', '1', '1', 'P386 nht BH01 test neu', 'Wohnanlage Bad Häring', 'Innsbruck', '<p>Übermittlung pln von scharmer wurnig - zuständig klaus mayr am 12.9.2022<br>gibt einen Baubescheid vom 14.6.2022<br>wird aber eine Änderungseineichung geben.<br><br><u>Flächenwidmung</u><br>VW - Vorbehaltsfläche für geförderten Wohnbau §52a<br>geplante örtliche Strasse an der Nordwestlichen Grundstücksgrenze (lt Mayr - Rad-&amp;Gehweg)§53(1) UND nördlichen Grundstücksgrenze (Strassenverbreiterung zukünftig)<br><u><br>örtliches Raumordnungskonzept</u><br>Verkehrsweg -  Erforderlicher Neubau - an nordwestlicher Grundstücksgrenze</p>', '2025-07-25', 'entwurf', NULL, '0', '1', '2025-11-03 10:35:09', '2025-11-03 10:33:17', '2025-11-03 11:23:10', NULL);
"; ";
DB::unprepared($sql); DB::unprepared($sql);
@@ -65,7 +66,43 @@ class TestProjektSeeder extends Seeder
('42', '1', 'UG', 'Stiegenhaus UG', '9.36', '2025-10-27 05:43:15', '2025-10-27 05:43:15'), ('42', '1', 'UG', 'Stiegenhaus UG', '9.36', '2025-10-27 05:43:15', '2025-10-27 05:43:15'),
('43', '1', 'UG', 'Technik', '29.14', '2025-10-27 05:43:15', '2025-10-27 05:43:15'), ('43', '1', 'UG', 'Technik', '29.14', '2025-10-27 05:43:15', '2025-10-27 05:43:15'),
('44', '1', 'UG', 'Tiefgarage', '484.03', '2025-10-27 05:43:15', '2025-10-27 05:43:15'), ('44', '1', 'UG', 'Tiefgarage', '484.03', '2025-10-27 05:43:15', '2025-10-27 05:43:15'),
('45', '1', 'UG', 'Trockenraum', '7.64', '2025-10-27 05:43:15', '2025-10-27 05:43:15'); ('45', '1', 'UG', 'Trockenraum', '7.64', '2025-10-27 05:43:15', '2025-10-27 05:43:15'),
('46', '2', 'EG', 'Böschung O', '9.87', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('47', '2', 'EG', 'Böschung S', '11.55', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('48', '2', 'EG', 'Böschung W', '6.81', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('49', '2', 'EG', 'Erschließung EG', '51.32', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('50', '2', 'EG', 'Freifläche W', '39.93', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('51', '2', 'EG', 'Gemeinschaftsgarten', '53.50', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('52', '2', 'EG', 'Gemeinschaftsraum', '50.58', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('53', '2', 'EG', 'Rampe', '35.21', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('54', '2', 'EG', 'Spielplatz', '130.59', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('55', '2', 'EG', 'Stellplatz Besucher B01H', '21.68', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('56', '2', 'EG', 'Stellplatz Besucher B02H', '16.92', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('57', '2', 'EG', 'Stellplatz Besucher B03', '13.80', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('58', '2', 'EG', 'Stellplatz Besucher B04', '13.82', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('59', '2', 'EG', 'Straße', '38.09', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('60', '2', 'EG', 'Technik', '11.00', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('61', '2', 'EG', 'Terrasse', '13.27', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('62', '2', 'EG', 'Vorplatz/Begegnungszone', '51.18', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('63', '2', 'EG', 'WC', '3.55', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('64', '2', 'EG', 'Zufahrt', '49.42', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('65', '2', 'EG', 'Zugang', '34.72', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('66', '2', 'OG1', 'Erschließung OG1', '51.65', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('67', '2', 'OG2', 'Erschließung OG2', '38.90', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('68', '2', 'UG', 'Böschung S', '53.36', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('69', '2', 'UG', 'ELO', '7.22', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('70', '2', 'UG', 'Erschließung UG', '25.28', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('71', '2', 'UG', 'Fahrräder / Sportger. / KIWA', '51.96', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('72', '2', 'UG', 'Gang KA', '32.11', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('73', '2', 'UG', 'Hausmeister', '12.46', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('74', '2', 'UG', 'Müllraum', '20.44', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('75', '2', 'UG', 'Rampe', '96.07', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('76', '2', 'UG', 'Stellplatz APG18 / 600', '12.68', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('77', '2', 'UG', 'Stellplatz APG19 / 601', '13.18', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('78', '2', 'UG', 'Stellplatz APG20 / 602', '13.18', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('79', '2', 'UG', 'Stgh.', '10.90', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('80', '2', 'UG', 'Technik', '13.40', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('81', '2', 'UG', 'Tiefgarage', '208.45', '2025-11-03 10:43:37', '2025-11-03 10:43:37');
"; ";
DB::unprepared($sql); DB::unprepared($sql);
@@ -155,66 +192,132 @@ class TestProjektSeeder extends Seeder
('81', '1', '1', NULL, 'KA10', '0.00', '2025-10-27 08:18:00', '2025-10-27 08:18:58'), ('81', '1', '1', NULL, 'KA10', '0.00', '2025-10-27 08:18:00', '2025-10-27 08:18:58'),
('82', '1', '1', NULL, 'KA11', '0.00', '2025-10-27 08:18:00', '2025-10-27 08:18:58'), ('82', '1', '1', NULL, 'KA11', '0.00', '2025-10-27 08:18:00', '2025-10-27 08:18:58'),
('83', '1', '1', NULL, 'KA12', '0.00', '2025-10-27 08:18:00', '2025-10-27 08:18:58'), ('83', '1', '1', NULL, 'KA12', '0.00', '2025-10-27 08:18:00', '2025-10-27 08:18:58'),
('84', '1', '1', NULL, 'KA13', '0.00', '2025-10-27 08:18:00', '2025-10-27 08:18:58'); ('84', '1', '1', NULL, 'KA13', '0.00', '2025-10-27 08:18:00', '2025-10-27 08:18:58'),
('85', '2', '5', NULL, 'Stellplatz', '0.50', '2025-11-03 11:04:08', '2025-11-03 11:06:13'),
('86', '2', '5', NULL, 'Stellplatz+', '0.55', '2025-11-03 11:04:08', '2025-11-03 11:06:18'),
('87', '2', '1', NULL, 'Bad', '0.00', '2025-11-03 11:04:08', '2025-11-03 11:09:19'),
('88', '2', '4', NULL, 'Garten G01', '0.50', '2025-11-03 11:04:08', '2025-11-03 11:08:53'),
('89', '2', '4', NULL, 'Keller KA01', '0.15', '2025-11-03 11:04:08', '2025-11-03 11:05:33'),
('90', '2', '3', NULL, 'Terrasse', '0.25', '2025-11-03 11:04:08', '2025-11-03 11:06:44'),
('91', '2', '1', NULL, 'Vorraum', '0.00', '2025-11-03 11:04:08', '2025-11-03 11:09:19'),
('92', '2', '4', NULL, 'Wohnen/Kochen', '0.00', '2025-11-03 11:04:08', '2025-11-03 11:09:23'),
('93', '2', '1', NULL, 'Zimmer', '0.00', '2025-11-03 11:04:08', '2025-11-03 11:09:19'),
('94', '2', '4', NULL, 'Garten G02', '0.50', '2025-11-03 11:04:08', '2025-11-03 11:08:54'),
('95', '2', '4', NULL, 'Keller KA02', '0.15', '2025-11-03 11:04:08', '2025-11-03 11:05:33'),
('96', '2', '4', NULL, 'Garten G03', '0.50', '2025-11-03 11:04:08', '2025-11-03 11:08:55'),
('97', '2', '4', NULL, 'Keller KA03', '0.15', '2025-11-03 11:04:08', '2025-11-03 11:05:33'),
('98', '2', '4', NULL, 'Garten G04', '0.50', '2025-11-03 11:04:08', '2025-11-03 11:08:55'),
('99', '2', '4', NULL, 'Keller KA04', '0.15', '2025-11-03 11:04:08', '2025-11-03 11:05:33'),
('100', '2', '4', NULL, 'Garten G05', '0.50', '2025-11-03 11:04:08', '2025-11-03 11:08:56'),
('101', '2', '4', NULL, 'KellerKA05', '0.15', '2025-11-03 11:04:08', '2025-11-03 11:05:33'),
('102', '2', '3', NULL, 'Balkon', '0.25', '2025-11-03 11:04:08', '2025-11-03 11:07:23'),
('103', '2', '4', NULL, 'Keller KA06', '0.15', '2025-11-03 11:04:08', '2025-11-03 11:05:33'),
('104', '2', '1', NULL, 'Vorraum/Gang', '0.00', '2025-11-03 11:04:08', '2025-11-03 11:09:19'),
('105', '2', '4', NULL, 'Keller KA07', '0.15', '2025-11-03 11:04:08', '2025-11-03 11:05:33'),
('106', '2', '4', NULL, 'Keller KA08', '0.15', '2025-11-03 11:04:08', '2025-11-03 11:05:33'),
('107', '2', '4', NULL, 'Keller KA09', '0.15', '2025-11-03 11:04:08', '2025-11-03 11:05:33'),
('108', '2', '4', NULL, 'Keller KA10', '0.15', '2025-11-03 11:04:08', '2025-11-03 11:05:33'),
('109', '2', '4', NULL, 'KellerKA11', '0.15', '2025-11-03 11:04:08', '2025-11-03 11:05:33'),
('110', '2', '2', NULL, 'Loggia', '0.40', '2025-11-03 11:04:08', '2025-11-03 11:07:38'),
('111', '2', '4', NULL, 'Keller KA12', '0.15', '2025-11-03 11:04:08', '2025-11-03 11:05:33'),
('112', '2', '4', NULL, 'Keller KA13', '0.15', '2025-11-03 11:04:08', '2025-11-03 11:05:33'),
('113', '2', '4', NULL, 'Keller KA14', '0.15', '2025-11-03 11:04:08', '2025-11-03 11:05:33'),
('114', '2', '4', NULL, 'Keller KA15', '0.15', '2025-11-03 11:04:08', '2025-11-03 11:05:33'),
('115', '2', '4', NULL, 'Keller KA16', '0.15', '2025-11-03 11:04:08', '2025-11-03 11:05:33'),
('116', '2', '1', NULL, 'AR', '0.00', '2025-11-03 11:04:08', '2025-11-03 11:09:19'),
('117', '2', '4', NULL, 'Keller KA17', '0.15', '2025-11-03 11:04:08', '2025-11-03 11:05:33');
"; ";
DB::unprepared($sql); DB::unprepared($sql);
$sql = "INSERT INTO `projekt_objektes` (`id`, `projekte_id`, `orientierung_id`, `nicht_in_orientierung`, `top_nummer`, `type`, `geschoss`, `nutzwert`, `a`, `b`, `c`, `d`, `e`, `f`, `g`, `h`, `i`, `j`, `created_at`, `updated_at`) $sql = "INSERT INTO `projekt_objektes` (`id`, `projekte_id`, `orientierung_id`, `nicht_in_orientierung`, `top_nummer`, `type`, `geschoss`, `nutzwert`, `a`, `b`, `c`, `d`, `e`, `f`, `g`, `h`, `i`, `j`, `created_at`, `updated_at`)
VALUES VALUES
('1', '1', '0', '1', 'KG', NULL, NULL, '0', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:28'), ('1', '1', '0', '1', 'KG', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:28'),
('2', '1', '0', '1', 'KG/KK', NULL, NULL, '0', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:28'), ('2', '1', '0', '1', 'KG/KK', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:28'),
('3', '1', '0', '1', 'KK', NULL, NULL, '0', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:28'), ('3', '1', '0', '1', 'KK', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:28'),
('4', '1', '0', '1', 'P01', NULL, NULL, '0', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:28'), ('4', '1', '0', '1', 'P01', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:28'),
('5', '1', '0', '1', 'P02', NULL, NULL, '0', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:28'), ('5', '1', '0', '1', 'P02', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:28'),
('6', '1', '0', '1', 'P03', NULL, NULL, '0', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:28'), ('6', '1', '0', '1', 'P03', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:28'),
('7', '1', '0', '1', 'P04', NULL, NULL, '0', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:28'), ('7', '1', '0', '1', 'P04', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:28'),
('8', '1', '0', '1', 'P05', NULL, NULL, '0', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:28'), ('8', '1', '0', '1', 'P05', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:28'),
('9', '1', '0', '1', 'P06', NULL, NULL, '0', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:28'), ('9', '1', '0', '1', 'P06', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:28'),
('10', '1', '0', '1', 'P07', NULL, NULL, '0', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:28'), ('10', '1', '0', '1', 'P07', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:28'),
('11', '1', '0', '1', 'P08', NULL, NULL, '0', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:41'), ('11', '1', '0', '1', 'P08', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:41'),
('12', '1', '0', '1', 'P09', NULL, NULL, '0', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:41'), ('12', '1', '0', '1', 'P09', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:41'),
('13', '1', '0', '1', 'P10', NULL, NULL, '0', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:41'), ('13', '1', '0', '1', 'P10', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:41'),
('14', '1', '0', '1', 'P11', NULL, NULL, '0', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:41'), ('14', '1', '0', '1', 'P11', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:41'),
('15', '1', '0', '1', 'P12', NULL, NULL, '0', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:41'), ('15', '1', '0', '1', 'P12', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:41'),
('16', '1', '0', '1', 'P13', NULL, NULL, '0', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:41'), ('16', '1', '0', '1', 'P13', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:41'),
('17', '1', '0', '1', 'P14', NULL, NULL, '0', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:41'), ('17', '1', '0', '1', 'P14', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:41'),
('18', '1', '0', '1', 'P15', NULL, NULL, '0', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:41'), ('18', '1', '0', '1', 'P15', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:41'),
('19', '1', '0', '1', 'P16', NULL, NULL, '0', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:41'), ('19', '1', '0', '1', 'P16', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:41'),
('20', '1', '0', '1', 'P17', NULL, NULL, '0', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:41'), ('20', '1', '0', '1', 'P17', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:41'),
('21', '1', '0', '1', 'P18', NULL, NULL, '0', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:47'), ('21', '1', '0', '1', 'P18', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:47'),
('22', '1', '0', '1', 'P19', NULL, NULL, '0', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:47'), ('22', '1', '0', '1', 'P19', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:47'),
('23', '1', '0', '1', 'P20', NULL, NULL, '0', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:47'), ('23', '1', '0', '1', 'P20', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:47'),
('24', '1', '0', '1', 'P21', NULL, NULL, '0', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:47'), ('24', '1', '0', '1', 'P21', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:47'),
('25', '1', '0', '1', 'P22', NULL, NULL, '0', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:47'), ('25', '1', '0', '1', 'P22', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:47'),
('26', '1', '0', '1', 'P23', NULL, NULL, '0', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:47'), ('26', '1', '0', '1', 'P23', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:47'),
('27', '1', '0', '1', 'P24', NULL, NULL, '0', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:47'), ('27', '1', '0', '1', 'P24', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:47'),
('28', '1', '0', '1', 'P25', NULL, NULL, '0', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:47'), ('28', '1', '0', '1', 'P25', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:47'),
('29', '1', '0', '1', 'P26', NULL, NULL, '0', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:47'), ('29', '1', '0', '1', 'P26', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:47'),
('30', '1', '0', '1', 'P27', NULL, NULL, '0', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:47'), ('30', '1', '0', '1', 'P27', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:47'),
('31', '1', '0', '1', 'P28', NULL, NULL, '0', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:59'), ('31', '1', '0', '1', 'P28', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:59'),
('32', '1', '0', '1', 'P29', NULL, NULL, '0', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:59'), ('32', '1', '0', '1', 'P29', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:59'),
('33', '1', '0', '1', 'P30', NULL, NULL, '0', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:59'), ('33', '1', '0', '1', 'P30', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:59'),
('34', '1', '0', '1', 'P31', NULL, NULL, '0', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:59'), ('34', '1', '0', '1', 'P31', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:59'),
('35', '1', '0', '1', 'P32', NULL, NULL, '0', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:59'), ('35', '1', '0', '1', 'P32', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:59'),
('36', '1', '0', '1', 'P33', NULL, NULL, '0', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:59'), ('36', '1', '0', '1', 'P33', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:59'),
('37', '1', '0', '1', 'P34', NULL, NULL, '0', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:59'), ('37', '1', '0', '1', 'P34', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:59'),
('38', '1', '0', '1', 'P35', NULL, NULL, '0', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:59'), ('38', '1', '0', '1', 'P35', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:59'),
('39', '1', '0', '1', 'P36', NULL, NULL, '0', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:59'), ('39', '1', '0', '1', 'P36', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:14:59'),
('40', '1', '0', '1', 'VL', NULL, NULL, '0', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:15:14'), ('40', '1', '0', '1', 'VL', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:15:14'),
('41', '1', '14', '0', 'W01', '2-Zi', NULL, '2', '2.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:16:29'), ('41', '1', '14', '0', 'W01', '2-Zi', NULL, '2.00', '2.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:16:29'),
('42', '1', '14', '0', 'W02', '2-Zi', NULL, '-1', '2.00', '-3.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:16:37'), ('42', '1', '14', '0', 'W02', '2-Zi', NULL, '-1.00', '2.00', '-3.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:16:37'),
('43', '1', '14', '0', 'W03', '2-Zi', NULL, '2', '2.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:16:29'), ('43', '1', '14', '0', 'W03', '2-Zi', NULL, '2.00', '2.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:16:29'),
('44', '1', '14', '0', 'W04', '2-Zi', NULL, '-1', '2.00', '-3.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:16:38'), ('44', '1', '14', '0', 'W04', '2-Zi', NULL, '-1.00', '2.00', '-3.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:16:38'),
('45', '1', '14', '0', 'W05', '2-Zi', NULL, '2', '2.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:16:29'), ('45', '1', '14', '0', 'W05', '2-Zi', NULL, '2.00', '2.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:16:29'),
('46', '1', '14', '0', 'W06', '2-Zi', NULL, '-1', '2.00', '-3.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:16:40'), ('46', '1', '14', '0', 'W06', '2-Zi', NULL, '-1.00', '2.00', '-3.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:16:40'),
('47', '1', '14', '0', 'W07', '2-Zi', NULL, '2', '2.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:16:29'), ('47', '1', '14', '0', 'W07', '2-Zi', NULL, '2.00', '2.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:16:29'),
('48', '1', '14', '0', 'W08', '2-Zi', NULL, '2', '2.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:16:29'), ('48', '1', '14', '0', 'W08', '2-Zi', NULL, '2.00', '2.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:16:29'),
('49', '1', '14', '0', 'W09', '2-Zi', NULL, '-1', '2.00', '-3.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:16:42'), ('49', '1', '14', '0', 'W09', '2-Zi', NULL, '-1.00', '2.00', '-3.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:16:42'),
('50', '1', '14', '0', 'W10', '2-Zi', NULL, '2', '2.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:16:29'), ('50', '1', '14', '0', 'W10', '2-Zi', NULL, '2.00', '2.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:16:29'),
('51', '1', '14', '0', 'W11', '2-Zi', NULL, '2', '2.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:16:29'), ('51', '1', '14', '0', 'W11', '2-Zi', NULL, '2.00', '2.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:16:29'),
('52', '1', '14', '0', 'W12', '2-Zi', NULL, '-1', '2.00', '-3.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:16:44'), ('52', '1', '14', '0', 'W12', '2-Zi', NULL, '-1.00', '2.00', '-3.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:16:44'),
('53', '1', '14', '0', 'W13', '2-Zi', NULL, '-1', '2.00', '-3.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:16:45'); ('53', '1', '14', '0', 'W13', '2-Zi', NULL, '-1.00', '2.00', '-3.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-10-27 05:44:34', '2025-10-27 08:16:45'),
('54', '2', '0', '1', 'APG02', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-11-03 10:43:37', '2025-11-03 10:44:18'),
('55', '2', '0', '1', 'APG03', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-11-03 10:43:37', '2025-11-03 10:44:18'),
('56', '2', '0', '1', 'APG04', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-11-03 10:43:37', '2025-11-03 10:44:18'),
('57', '2', '0', '1', 'APG05', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-11-03 10:43:37', '2025-11-03 10:44:18'),
('58', '2', '0', '1', 'APG06', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-11-03 10:43:37', '2025-11-03 10:44:18'),
('59', '2', '0', '1', 'APG07', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-11-03 10:43:37', '2025-11-03 10:44:18'),
('60', '2', '0', '1', 'APG08', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-11-03 10:43:37', '2025-11-03 10:44:18'),
('61', '2', '0', '1', 'APG09', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-11-03 10:43:37', '2025-11-03 10:44:18'),
('62', '2', '0', '1', 'APG10', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-11-03 10:43:37', '2025-11-03 10:44:18'),
('63', '2', '0', '1', 'APG11', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-11-03 10:43:37', '2025-11-03 10:44:18'),
('64', '2', '0', '1', 'APG12', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-11-03 10:43:37', '2025-11-03 10:44:18'),
('65', '2', '0', '1', 'APG13', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-11-03 10:43:37', '2025-11-03 10:44:18'),
('66', '2', '0', '1', 'APG14', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-11-03 10:43:37', '2025-11-03 10:44:18'),
('67', '2', '0', '1', 'APG15', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-11-03 10:43:37', '2025-11-03 10:44:18'),
('68', '2', '0', '1', 'APG16', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-11-03 10:43:37', '2025-11-03 10:44:18'),
('69', '2', '0', '1', 'APG17', NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-11-03 10:43:37', '2025-11-03 10:44:18'),
('70', '2', '8', '0', 'W01', '2-ZI-Whg', NULL, '-7.50', '-2.50', '-2.50', '-2.50', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-11-03 10:43:37', '2025-11-03 10:57:10'),
('71', '2', '18', '0', 'W02', '2-ZI-Whg', NULL, '-7.50', '-2.50', '0.00', '-5.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-11-03 10:43:37', '2025-11-03 10:57:13'),
('72', '2', '22', '0', 'W03', '2-ZI-Whg', NULL, '-3.00', '-2.50', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-11-03 10:43:37', '2025-11-03 10:49:57'),
('73', '2', '8', '0', 'W04', '2-ZI-Whg', NULL, '-5.00', '-2.50', '-2.50', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-11-03 10:43:37', '2025-11-03 10:55:11'),
('74', '2', '8', '0', 'W05', '2-ZI-Whg', NULL, '-5.00', '-2.50', '-2.50', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-11-03 10:43:37', '2025-11-03 10:55:11'),
('75', '2', '8', '0', 'W06', '2-ZI-Whg', NULL, '-2.50', '0.00', '-2.50', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-11-03 10:43:37', '2025-11-03 10:55:11'),
('76', '2', '18', '0', 'W07', '2-ZI-Whg', NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-11-03 10:43:37', '2025-11-03 10:47:26'),
('77', '2', '31', '0', 'W08', '2-ZI-Whg', NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-11-03 10:43:37', '2025-11-03 10:47:36'),
('78', '2', '22', '0', 'W09', '2-ZI-Whg', NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-11-03 10:43:37', '2025-11-03 10:47:44'),
('79', '2', '8', '0', 'W10', '2-ZI-Whg', NULL, '-2.50', '0.00', '-2.50', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-11-03 10:43:37', '2025-11-03 10:55:11'),
('80', '2', '8', '0', 'W11', '2-ZI-Whg', NULL, '-2.50', '0.00', '-2.50', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-11-03 10:43:37', '2025-11-03 10:55:11'),
('81', '2', '8', '0', 'W12', '2-ZI-Whg', NULL, '-2.50', '0.00', '-2.50', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-11-03 10:43:37', '2025-11-03 10:55:11'),
('82', '2', '18', '0', 'W13', '2-ZI-Whg', NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-11-03 10:43:37', '2025-11-03 10:47:54'),
('83', '2', '31', '0', 'W14', '2-ZI-Whg', NULL, '2.50', '2.50', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-11-03 10:43:37', '2025-11-03 10:58:09'),
('84', '2', '22', '0', 'W15', '2-ZI-Whg', NULL, '2.50', '2.50', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-11-03 10:43:37', '2025-11-03 10:58:17'),
('85', '2', '8', '0', 'W16', '2-ZI-Whg', NULL, '0.00', '2.50', '-2.50', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-11-03 10:43:37', '2025-11-03 10:55:11'),
('86', '2', '18', '0', 'W17', '2-ZI-Whg', NULL, '2.50', '2.50', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '2025-11-03 10:43:37', '2025-11-03 10:58:29');
"; ";
DB::unprepared($sql); DB::unprepared($sql);
@@ -403,7 +506,132 @@ class TestProjektSeeder extends Seeder
('180', '1', '53', 'OG2', 'Schlafzimmer', '0.5', '11.56', '6', '2025-10-27 05:44:34', '2025-10-27 08:17:48'), ('180', '1', '53', 'OG2', 'Schlafzimmer', '0.5', '11.56', '6', '2025-10-27 05:44:34', '2025-10-27 08:17:48'),
('181', '1', '53', 'OG2', 'Terrasse', '0.5', '15.09', '8', '2025-10-27 05:44:34', '2025-10-27 08:17:48'), ('181', '1', '53', 'OG2', 'Terrasse', '0.5', '15.09', '8', '2025-10-27 05:44:34', '2025-10-27 08:17:48'),
('182', '1', '53', 'OG2', 'Wohnen', '0.5', '26.58', '13', '2025-10-27 05:44:34', '2025-10-27 08:17:48'), ('182', '1', '53', 'OG2', 'Wohnen', '0.5', '26.58', '13', '2025-10-27 05:44:34', '2025-10-27 08:17:48'),
('183', '1', '53', 'UG', 'KA13', '0.5', '4.31', '2', '2025-10-27 05:44:34', '2025-10-27 08:17:48'); ('183', '1', '53', 'UG', 'KA13', '0.5', '4.31', '2', '2025-10-27 05:44:34', '2025-10-27 08:17:48'),
('184', '2', '54', 'UG', 'Stellplatz', '0.5', '13', '7', '2025-11-03 10:43:37', '2025-11-03 11:01:01'),
('185', '2', '55', 'UG', 'Stellplatz+', '0.5', '16.2', '8', '2025-11-03 10:43:37', '2025-11-03 11:01:01'),
('186', '2', '56', 'UG', 'Stellplatz', '0.5', '13', '7', '2025-11-03 10:43:37', '2025-11-03 11:01:01'),
('187', '2', '57', 'UG', 'Stellplatz', '0.5', '13', '7', '2025-11-03 10:43:37', '2025-11-03 11:01:01'),
('188', '2', '58', 'UG', 'Stellplatz', '0.5', '13', '7', '2025-11-03 10:43:37', '2025-11-03 11:01:01'),
('189', '2', '59', 'UG', 'Stellplatz+', '0.5', '14.25', '7', '2025-11-03 10:43:37', '2025-11-03 11:01:01'),
('190', '2', '60', 'UG', 'Stellplatz+', '0.5', '14.25', '7', '2025-11-03 10:43:37', '2025-11-03 11:01:01'),
('191', '2', '61', 'UG', 'Stellplatz', '0.5', '13.3', '7', '2025-11-03 10:43:37', '2025-11-03 11:01:01'),
('192', '2', '62', 'UG', 'Stellplatz+', '0.5', '14.04', '7', '2025-11-03 10:43:37', '2025-11-03 11:01:01'),
('193', '2', '63', 'UG', 'Stellplatz', '0.5', '13', '7', '2025-11-03 10:43:37', '2025-11-03 11:01:01'),
('194', '2', '64', 'UG', 'Stellplatz+', '0.5', '14.25', '7', '2025-11-03 10:43:37', '2025-11-03 11:01:01'),
('195', '2', '65', 'UG', 'Stellplatz', '0.5', '13', '7', '2025-11-03 10:43:37', '2025-11-03 11:01:01'),
('196', '2', '66', 'UG', 'Stellplatz', '0.5', '13', '7', '2025-11-03 10:43:37', '2025-11-03 11:01:01'),
('197', '2', '67', 'UG', 'Stellplatz', '0.5', '12.5', '6', '2025-11-03 10:43:37', '2025-11-03 11:01:01'),
('198', '2', '68', 'UG', 'Stellplatz+', '0.5', '14.25', '7', '2025-11-03 10:43:37', '2025-11-03 11:01:01'),
('199', '2', '69', 'UG', 'Stellplatz+', '0.5', '14.45', '7', '2025-11-03 10:43:37', '2025-11-03 11:01:01'),
('200', '2', '70', 'UG', 'Bad', NULL, '5.99', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('201', '2', '70', 'UG', 'Garten G01', '0.5', '31.93', '16', '2025-11-03 10:43:37', '2025-11-03 11:01:42'),
('202', '2', '70', 'UG', 'Keller KA01', '0.15', '3.5', '1', '2025-11-03 10:43:37', '2025-11-03 11:02:37'),
('203', '2', '70', 'UG', 'Terrasse', '0.25', '7.59', '2', '2025-11-03 10:43:37', '2025-11-03 11:02:08'),
('204', '2', '70', 'UG', 'Vorraum', NULL, '4.21', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('205', '2', '70', 'UG', 'Wohnen/Kochen', NULL, '31.61', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('206', '2', '70', 'UG', 'Zimmer', NULL, '12.36', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('207', '2', '71', 'UG', 'Bad', NULL, '5.99', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('208', '2', '71', 'UG', 'Garten G02', '0.5', '58.73', '29', '2025-11-03 10:43:37', '2025-11-03 11:01:42'),
('209', '2', '71', 'UG', 'Keller KA02', '0.15', '3.5', '1', '2025-11-03 10:43:37', '2025-11-03 11:02:37'),
('210', '2', '71', 'UG', 'Terrasse', '0.25', '16.32', '4', '2025-11-03 10:43:37', '2025-11-03 11:02:08'),
('211', '2', '71', 'UG', 'Vorraum', NULL, '9.53', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('212', '2', '71', 'UG', 'Wohnen/Kochen', NULL, '26.59', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('213', '2', '71', 'UG', 'Zimmer', NULL, '12.29', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('214', '2', '72', 'EG', 'Bad', NULL, '5.78', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('215', '2', '72', 'EG', 'Garten G03', '0.5', '114.69', '57', '2025-11-03 10:43:37', '2025-11-03 11:01:42'),
('216', '2', '72', 'EG', 'Terrasse', '0.25', '16.96', '4', '2025-11-03 10:43:37', '2025-11-03 11:02:08'),
('217', '2', '72', 'EG', 'Vorraum', NULL, '8.34', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('218', '2', '72', 'EG', 'Wohnen/Kochen', NULL, '25.3', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('219', '2', '72', 'EG', 'Zimmer', NULL, '13.3', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('220', '2', '72', 'UG', 'Keller KA03', '0.15', '3.5', '1', '2025-11-03 10:43:37', '2025-11-03 11:02:37'),
('221', '2', '73', 'EG', 'Bad', NULL, '5.8', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('222', '2', '73', 'EG', 'Garten G04', '0.5', '40.34', '20', '2025-11-03 10:43:37', '2025-11-03 11:01:42'),
('223', '2', '73', 'EG', 'Terrasse', '0.25', '11.37', '3', '2025-11-03 10:43:37', '2025-11-03 11:02:08'),
('224', '2', '73', 'EG', 'Vorraum', NULL, '4.21', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('225', '2', '73', 'EG', 'Wohnen/Kochen', NULL, '25.06', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('226', '2', '73', 'EG', 'Zimmer', NULL, '17.1', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('227', '2', '73', 'UG', 'Keller KA04', '0.15', '3.47', '1', '2025-11-03 10:43:37', '2025-11-03 11:02:37'),
('228', '2', '74', 'EG', 'Bad', NULL, '5.8', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('229', '2', '74', 'EG', 'Garten G05', '0.5', '79.84', '40', '2025-11-03 10:43:37', '2025-11-03 11:01:42'),
('230', '2', '74', 'EG', 'Terrasse', '0.25', '8.05', '2', '2025-11-03 10:43:37', '2025-11-03 11:02:08'),
('231', '2', '74', 'EG', 'Vorraum', NULL, '4.21', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('232', '2', '74', 'EG', 'Wohnen/Kochen', NULL, '31.7', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('233', '2', '74', 'EG', 'Zimmer', NULL, '12.53', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('234', '2', '74', 'UG', 'KellerKA05', '0.15', '3.67', '1', '2025-11-03 10:43:37', '2025-11-03 11:02:37'),
('235', '2', '75', 'EG', 'Bad', NULL, '5.96', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('236', '2', '75', 'EG', 'Balkon', NULL, '6.37', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('237', '2', '75', 'EG', 'Vorraum', NULL, '4.21', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('238', '2', '75', 'EG', 'Wohnen/Kochen', NULL, '31.73', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('239', '2', '75', 'EG', 'Zimmer', NULL, '12.51', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('240', '2', '75', 'UG', 'Keller KA06', '0.15', '3.52', '1', '2025-11-03 10:43:37', '2025-11-03 11:02:37'),
('241', '2', '76', 'EG', 'Bad', NULL, '5.99', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('242', '2', '76', 'EG', 'Balkon', NULL, '18.68', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('243', '2', '76', 'EG', 'Vorraum/Gang', NULL, '9.53', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('244', '2', '76', 'EG', 'Wohnen/Kochen', NULL, '26.75', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('245', '2', '76', 'EG', 'Zimmer', NULL, '12.44', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('246', '2', '76', 'UG', 'Keller KA07', '0.15', '3.52', '1', '2025-11-03 10:43:37', '2025-11-03 11:02:37'),
('247', '2', '77', 'OG1', 'Bad', NULL, '5.99', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('248', '2', '77', 'OG1', 'Balkon', NULL, '11.73', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('249', '2', '77', 'OG1', 'Vorraum/Gang', NULL, '9.81', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('250', '2', '77', 'OG1', 'Wohnen/Kochen', NULL, '35.8', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('251', '2', '77', 'OG1', 'Zimmer', NULL, '13.39', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('252', '2', '77', 'UG', 'Keller KA08', '0.15', '3.52', '1', '2025-11-03 10:43:37', '2025-11-03 11:02:37'),
('253', '2', '78', 'OG1', 'Bad', NULL, '5.78', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('254', '2', '78', 'OG1', 'Balkon', NULL, '17.42', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('255', '2', '78', 'OG1', 'Vorraum', NULL, '8.34', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('256', '2', '78', 'OG1', 'Wohnen/Kochen', NULL, '25.3', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('257', '2', '78', 'OG1', 'Zimmer', NULL, '13.3', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('258', '2', '78', 'UG', 'Keller KA09', '0.15', '3.47', '1', '2025-11-03 10:43:37', '2025-11-03 11:02:37'),
('259', '2', '79', 'OG1', 'Bad', NULL, '5.99', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('260', '2', '79', 'OG1', 'Balkon', NULL, '6.45', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('261', '2', '79', 'OG1', 'Vorraum', NULL, '4.21', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('262', '2', '79', 'OG1', 'Wohnen/Kochen', NULL, '31.68', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('263', '2', '79', 'OG1', 'Zimmer', NULL, '12.5', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('264', '2', '79', 'UG', 'Keller KA10', '0.15', '3.65', '1', '2025-11-03 10:43:37', '2025-11-03 11:02:37'),
('265', '2', '80', 'OG1', 'Bad', NULL, '5.99', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('266', '2', '80', 'OG1', 'Balkon', NULL, '6.2', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('267', '2', '80', 'OG1', 'Vorraum', NULL, '4.21', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('268', '2', '80', 'OG1', 'Wohnen/Kochen', NULL, '31.58', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('269', '2', '80', 'OG1', 'Zimmer', NULL, '12.53', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('270', '2', '80', 'UG', 'KellerKA11', '0.15', '3.62', '1', '2025-11-03 10:43:37', '2025-11-03 11:02:37'),
('271', '2', '81', 'OG1', 'Bad', NULL, '5.99', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('272', '2', '81', 'OG1', 'Balkon', NULL, '1.55', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('273', '2', '81', 'OG1', 'Loggia', NULL, '6.48', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('274', '2', '81', 'OG1', 'Vorraum', NULL, '4.21', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('275', '2', '81', 'OG1', 'Wohnen/Kochen', NULL, '25.1', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('276', '2', '81', 'OG1', 'Zimmer', NULL, '17.13', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('277', '2', '81', 'UG', 'Keller KA12', '0.15', '2.89', '0', '2025-11-03 10:43:37', '2025-11-03 11:02:37'),
('278', '2', '82', 'OG1', 'Bad', NULL, '5.99', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('279', '2', '82', 'OG1', 'Balkon', NULL, '18.68', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('280', '2', '82', 'OG1', 'Vorraum/Gang', NULL, '9.53', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('281', '2', '82', 'OG1', 'Wohnen/Kochen', NULL, '26.75', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('282', '2', '82', 'OG1', 'Zimmer', NULL, '12.44', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('283', '2', '82', 'UG', 'Keller KA13', '0.15', '2.89', '0', '2025-11-03 10:43:37', '2025-11-03 11:02:37'),
('284', '2', '83', 'OG2', 'Bad', NULL, '5.99', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('285', '2', '83', 'OG2', 'Balkon', NULL, '11.73', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('286', '2', '83', 'OG2', 'Vorraum/Gang', NULL, '9.81', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('287', '2', '83', 'OG2', 'Wohnen/Kochen', NULL, '35.8', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('288', '2', '83', 'OG2', 'Zimmer', NULL, '13.39', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('289', '2', '83', 'UG', 'Keller KA14', '0.15', '2.89', '0', '2025-11-03 10:43:37', '2025-11-03 11:02:37'),
('290', '2', '84', 'OG2', 'Bad', NULL, '5.78', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('291', '2', '84', 'OG2', 'Balkon', NULL, '17.42', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('292', '2', '84', 'OG2', 'Vorraum', NULL, '8.34', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('293', '2', '84', 'OG2', 'Wohnen/Kochen', NULL, '25.3', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('294', '2', '84', 'OG2', 'Zimmer', NULL, '13.3', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('295', '2', '84', 'UG', 'Keller KA15', '0.15', '2.82', '0', '2025-11-03 10:43:37', '2025-11-03 11:02:37'),
('296', '2', '85', 'OG2', 'Bad', NULL, '5.99', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('297', '2', '85', 'OG2', 'Balkon', NULL, '6.45', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('298', '2', '85', 'OG2', 'Vorraum', NULL, '4.21', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('299', '2', '85', 'OG2', 'Wohnen/Kochen', NULL, '31.68', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('300', '2', '85', 'OG2', 'Zimmer', NULL, '12.5', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('301', '2', '85', 'UG', 'Keller KA16', '0.15', '3.01', '0', '2025-11-03 10:43:37', '2025-11-03 11:02:37'),
('302', '2', '86', 'OG2', 'AR', NULL, '1.91', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('303', '2', '86', 'OG2', 'Bad', NULL, '5.99', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('304', '2', '86', 'OG2', 'Terrasse', '0.25', '23.41', '6', '2025-11-03 10:43:37', '2025-11-03 11:02:08'),
('305', '2', '86', 'OG2', 'Vorraum', NULL, '4.29', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('306', '2', '86', 'OG2', 'Wohnen/Kochen', NULL, '26.56', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('307', '2', '86', 'OG2', 'Zimmer', NULL, '14.88', '0', '2025-11-03 10:43:37', '2025-11-03 10:43:37'),
('308', '2', '86', 'UG', 'Keller KA17', '0.15', '3.74', '1', '2025-11-03 10:43:37', '2025-11-03 11:02:37');
"; ";
DB::unprepared($sql); DB::unprepared($sql);
@@ -412,7 +640,10 @@ class TestProjektSeeder extends Seeder
VALUES VALUES
('1', '1', 'a', 'Stockwerkslage', '2025-10-28 07:07:44', '2025-10-28 07:07:44'), ('1', '1', 'a', 'Stockwerkslage', '2025-10-28 07:07:44', '2025-10-28 07:07:44'),
('2', '1', 'b', 'Orientation', '2025-10-28 07:07:52', '2025-10-28 07:07:52'), ('2', '1', 'b', 'Orientation', '2025-10-28 07:07:52', '2025-10-28 07:07:52'),
('3', '1', 'c', 'Grünflächen', '2025-10-28 07:11:48', '2025-10-28 07:11:48'); ('3', '1', 'c', 'Grünflächen', '2025-10-28 07:11:48', '2025-10-28 07:11:48'),
('4', '2', 'a', 'Stockwerkslage', '2025-11-03 10:48:49', '2025-11-03 10:48:49'),
('5', '2', 'b', 'Ausrichtung / Orientierung', '2025-11-03 10:48:55', '2025-11-03 10:48:55'),
('6', '2', 'c', 'sonstige Beeinträchtigungen', '2025-11-03 10:49:02', '2025-11-03 10:49:02');
"; ";
DB::unprepared($sql); DB::unprepared($sql);
@@ -427,44 +658,86 @@ class TestProjektSeeder extends Seeder
('7', '1', '###LIEGENSCHAFTSADRESSE###', 'Schönwerth-Park 1', '0', '2025-10-27 08:18:27', '2025-10-27 08:21:44'), ('7', '1', '###LIEGENSCHAFTSADRESSE###', 'Schönwerth-Park 1', '0', '2025-10-27 08:18:27', '2025-10-27 08:21:44'),
('8', '1', '###GSTNR###', '23/8', '0', '2025-10-27 08:18:27', '2025-10-27 08:21:28'), ('8', '1', '###GSTNR###', '23/8', '0', '2025-10-27 08:18:27', '2025-10-27 08:21:28'),
('9', '1', '###BEZIRKSGERICHT###', 'Hall in Tirol', '0', '2025-10-27 08:18:27', '2025-10-27 08:21:17'), ('9', '1', '###BEZIRKSGERICHT###', 'Hall in Tirol', '0', '2025-10-27 08:18:27', '2025-10-27 08:21:17'),
('10', '1', '###BESCHEIDGEMEINDE###', 'Volders', '0', '2025-10-27 08:18:27', '2025-10-27 08:23:05'); ('10', '1', '###BESCHEIDGEMEINDE###', 'Volders', '0', '2025-10-27 08:18:27', '2025-10-27 08:23:05'),
('11', '2', '###GUTACHTEN_P_NR###', '386', '0', '2025-11-03 11:09:32', '2025-11-03 11:20:49'),
('12', '2', '###EINLAGEZAHL###', '355', '0', '2025-11-03 11:09:32', '2025-11-03 11:20:53'),
('13', '2', '###GRUNDBUCH###', '83006 Häring', '0', '2025-11-03 11:09:32', '2025-11-03 11:21:00'),
('14', '2', '###ORTSBESICHTIGUNG###', '12.03.2024', '0', '2025-11-03 11:09:32', '2025-11-03 11:21:04'),
('15', '2', '###BAUBESCHEID###', '131-9/47-2021 vom 14.06.2022 sowie Benützungsbewilligung Bescheid vom 29.11.2024', '0', '2025-11-03 11:09:32', '2025-11-03 11:21:12'),
('16', '2', '###PLANUNTERLAGEN###', 'Änderungseinreichung des Architekten vom 06.02.2023 sowie Polierplanung vom 09.10.2024', '0', '2025-11-03 11:09:32', '2025-11-03 11:21:24'),
('17', '2', '###LIEGENSCHAFTSADRESSE###', 'Rettenbachstraße 7 in 6323 Bad Häring', '0', '2025-11-03 11:09:32', '2025-11-03 11:21:31'),
('18', '2', '###GSTNR###', '117/5', '0', '2025-11-03 11:09:32', '2025-11-03 11:21:38'),
('19', '2', '###BEZIRKSGERICHT###', 'Kufstein', '0', '2025-11-03 11:09:32', '2025-11-03 11:21:45'),
('20', '2', '###BESCHEIDGEMEINDE###', 'Bad Häring', '0', '2025-11-03 11:09:32', '2025-11-03 11:21:50');
"; ";
DB::unprepared($sql); DB::unprepared($sql);
$sql = "INSERT INTO `projekt_inhaltsverzeichnis` (`id`, `projekte_id`, `name`, `name2`, `part`, `ueberschrift_anzeigen`, `tabellen_id`, `textblock_id`, `konto_textblock_id`, `sort`, `ordnungszahl`, `seite`, `neue_seite`, `seitenzahl_anzeige`, `no_edit`, `textblock`, `created_at`, `updated_at`) $sql = "INSERT INTO `projekt_inhaltsverzeichnis` (`id`, `projekte_id`, `sort`, `ordnungszahl`, `name`, `name2`, `part`, `ueberschrift_anzeigen`, `inhaltselement_id`, `konto_textblock_id`, `seite`, `neue_seite`, `seitenzahl_anzeige`, `no_edit`, `textblock_name`, `textblock`, `textblock2`, `created_at`, `updated_at`)
VALUES VALUES
('1', '1', 'DECKBLATT', NULL, 'standard', '0', '0', '11', '0', '1', '0', '0', '1', '0', '0', '<p>P ###GUTACHTEN_P_NR### WEG 2002</p><p>EZ ###EINLAGEZAHL### des GB ###GRUNDBUCH###</p>', '2025-10-27 08:18:22', '2025-10-27 08:18:22'), ('1', '1', '1', '0', 'GUTACHTEN - VERTEILUNGSSCHLÜSSEL', NULL, 'standard', '0', '9', '0', '0', '1', '0', '0', NULL, '<p>P ###GUTACHTEN_P_NR### WEG 2002</p><p>EZ ###EINLAGEZAHL### des GB ###GRUNDBUCH###</p>', NULL, '2025-10-27 08:18:22', '2025-10-27 08:18:22'),
('2', '1', 'INHALTSVERZEICHNIS', NULL, 'standard', '1', '1', '0', '0', '3', '0', '0', '1', '0', '0', '', '2025-10-27 08:18:22', '2025-10-27 08:18:22'), ('2', '1', '3', '0', 'INHALTSVERZEICHNIS', NULL, 'standard', '1', '1', '0', '0', '1', '0', '0', NULL, '', NULL, '2025-10-27 08:18:22', '2025-10-27 08:18:22'),
('3', '1', 'ALLGEMEINE ANGABEN', NULL, 'standard', '1', '0', '0', '0', '4', '1', '3', '1', '1', '0', '', '2025-10-27 08:18:22', '2025-10-27 08:18:22'), ('3', '1', '4', '1', 'ALLGEMEINE ANGABEN', NULL, 'standard', '1', '0', '0', '3', '1', '1', '0', NULL, '', NULL, '2025-10-27 08:18:22', '2025-10-27 08:18:22'),
('4', '1', 'AUFTRAGGEBER', NULL, 'standard', '1', '8', '0', '0', '5', '1.1', '3', '0', '1', '0', '', '2025-10-27 08:18:22', '2025-10-27 08:18:22'), ('4', '1', '5', '1.1', 'AUFTRAGGEBER', NULL, 'standard', '1', '8', '0', '3', '0', '1', '0', NULL, '', NULL, '2025-10-27 08:18:22', '2025-10-27 08:18:22'),
('5', '1', 'ZWECK UND GEGENSTAND DES GUTACHTENS', NULL, 'standard', '1', '0', '1', '0', '6', '1.2', '3', '0', '1', '0', '<p>Ermittlung der Nutzwerte und Mindestanteile der Wohnungseigentumsobjekte der Liegenschaft EZ ###EINLAGEZAHL###, GB ###GRUNDBUCH###, zum Zwecke der Begründung von Wohnungseigentum im Sinne des Wohnungseigentumsgesetzes 2002 in der geltenden Fassung.<br><br>Ermittlung der Nutzwerte und Mindestanteile der Wohnungseigentumsobjekte der Liegenschaft EZ ###EINLAGEZAHL###, GB ###GRUNDBUCH###, zum Zwecke eines abweichenden Verteilungsschlüssels gemäß §16 Absatz 3 des WGG1979.<br>Dieses Gutachten ist nicht als Grundlage für die Begründung von Wohnungseigentum heranzuziehen.</p>', '2025-10-27 08:18:22', '2025-10-27 08:18:22'), ('5', '1', '6', '1.2', 'ZWECK UND GEGENSTAND DES GUTACHTENS', NULL, 'standard', '1', '0', '0', '3', '0', '1', '0', NULL, '<p>Ermittlung der Nutzwerte und Mindestanteile der Wohnungseigentumsobjekte der Liegenschaft EZ ###EINLAGEZAHL###, GB ###GRUNDBUCH###, zum Zwecke der Begründung von Wohnungseigentum im Sinne des Wohnungseigentumsgesetzes 2002 in der geltenden Fassung.<br><br>Ermittlung der Nutzwerte und Mindestanteile der Wohnungseigentumsobjekte der Liegenschaft EZ ###EINLAGEZAHL###, GB ###GRUNDBUCH###, zum Zwecke eines abweichenden Verteilungsschlüssels gemäß §16 Absatz 3 des WGG1979.<br>Dieses Gutachten ist nicht als Grundlage für die Begründung von Wohnungseigentum heranzuziehen.</p>', NULL, '2025-10-27 08:18:22', '2025-10-27 08:18:22'),
('6', '1', 'ORTSBESICHTIGUNG', NULL, 'standard', '1', '0', '2', '0', '7', '1.3', '3', '0', '1', '0', '<p>Am ###ORTSBESICHTIGUNG###</p>', '2025-10-27 08:18:22', '2025-10-27 08:18:22'), ('6', '1', '7', '1.3', 'ORTSBESICHTIGUNG', NULL, 'standard', '1', '0', '0', '3', '0', '1', '0', NULL, '<p>Am ###ORTSBESICHTIGUNG###</p>', NULL, '2025-10-27 08:18:22', '2025-10-27 08:18:22'),
('7', '1', 'UNTERLAGEN', NULL, 'standard', '1', '0', '3', '0', '8', '1.4', '3', '0', '1', '0', '<table><tbody><tr><td rowspan=\"1\" colspan=\"1\"><p>Grundbuchsauszug:</p></td><td rowspan=\"1\" colspan=\"1\"><p>###EINLAGEZAHL###</p></td></tr><tr><td rowspan=\"1\" colspan=\"1\"><p>Baubescheid Zl.:</p></td><td rowspan=\"1\" colspan=\"1\"><p>###BAUBESCHEID###</p></td></tr><tr><td rowspan=\"1\" colspan=\"1\"><p>Planunterlagen:</p></td><td rowspan=\"1\" colspan=\"1\"><p>###PLANUNTERLAGEN###</p></td></tr></tbody></table><p>Auflistung Widmung Abstellplätze (als Anhang zum email vom XX.XX.XXXX, von nht)</p>', '2025-10-27 08:18:22', '2025-10-27 08:18:22'), ('7', '1', '8', '1.4', 'UNTERLAGEN', NULL, 'standard', '1', '0', '0', '3', '0', '1', '0', NULL, '<table><tbody><tr><td rowspan=\"1\" colspan=\"1\"><p>Grundbuchsauszug:</p></td><td rowspan=\"1\" colspan=\"1\"><p>###EINLAGEZAHL###</p></td></tr><tr><td rowspan=\"1\" colspan=\"1\"><p>Baubescheid Zl.:</p></td><td rowspan=\"1\" colspan=\"1\"><p>###BAUBESCHEID###</p></td></tr><tr><td rowspan=\"1\" colspan=\"1\"><p>Planunterlagen:</p></td><td rowspan=\"1\" colspan=\"1\"><p>###PLANUNTERLAGEN###</p></td></tr></tbody></table><p>Auflistung Widmung Abstellplätze (als Anhang zum email vom XX.XX.XXXX, von nht)</p>', NULL, '2025-10-27 08:18:22', '2025-10-27 08:18:22'),
('8', '1', 'BEFUND', NULL, 'standard', '1', '0', '0', '0', '9', '2', '4', '1', '1', '0', '', '2025-10-27 08:18:22', '2025-10-27 08:18:22'), ('8', '1', '9', '2', 'BEFUND', NULL, 'standard', '1', '0', '0', '4', '1', '1', '0', NULL, '', NULL, '2025-10-27 08:18:22', '2025-10-27 08:18:22'),
('9', '1', 'GRUNDBUCHSTAND', NULL, 'standard', '1', '0', '4', '0', '10', '2.1', '4', '0', '1', '0', '<table><tbody><tr><td rowspan=\"1\" colspan=\"1\"><p>Liegenschaftsadresse</p></td><td rowspan=\"1\" colspan=\"1\"><p>###LIEGENSCHAFTSADRESSE###</p></td></tr><tr><td rowspan=\"1\" colspan=\"1\"><p>Grundbuch</p></td><td rowspan=\"1\" colspan=\"1\"><p>###GRUNDBUCH###</p></td></tr><tr><td rowspan=\"1\" colspan=\"1\"><p>Einlagezahl</p></td><td rowspan=\"1\" colspan=\"1\"><p>###EINLAGEZAHL###</p></td></tr><tr><td rowspan=\"1\" colspan=\"1\"><p>Grundstücksnummer</p></td><td rowspan=\"1\" colspan=\"1\"><p>###GSTNR###</p></td></tr><tr><td rowspan=\"1\" colspan=\"1\"><p>Bezirksgericht</p></td><td rowspan=\"1\" colspan=\"1\"><p>###BEZIRKSGERICHT###</p></td></tr></tbody></table>', '2025-10-27 08:18:22', '2025-10-27 08:18:22'), ('9', '1', '10', '2.1', 'GRUNDBUCHSTAND', NULL, 'standard', '1', '0', '0', '4', '0', '1', '0', NULL, '<table><tbody><tr><td rowspan=\"1\" colspan=\"1\"><p>Liegenschaftsadresse</p></td><td rowspan=\"1\" colspan=\"1\"><p>###LIEGENSCHAFTSADRESSE###</p></td></tr><tr><td rowspan=\"1\" colspan=\"1\"><p>Grundbuch</p></td><td rowspan=\"1\" colspan=\"1\"><p>###GRUNDBUCH###</p></td></tr><tr><td rowspan=\"1\" colspan=\"1\"><p>Einlagezahl</p></td><td rowspan=\"1\" colspan=\"1\"><p>###EINLAGEZAHL###</p></td></tr><tr><td rowspan=\"1\" colspan=\"1\"><p>Grundstücksnummer</p></td><td rowspan=\"1\" colspan=\"1\"><p>###GSTNR###</p></td></tr><tr><td rowspan=\"1\" colspan=\"1\"><p>Bezirksgericht</p></td><td rowspan=\"1\" colspan=\"1\"><p>###BEZIRKSGERICHT###</p></td></tr></tbody></table>', NULL, '2025-10-27 08:18:22', '2025-10-27 08:18:22'),
('10', '1', 'BESCHREIBUNG DER LIEGENSCHAFT', NULL, 'standard', '1', '0', '5', '0', '11', '2.2', '4', '0', '1', '0', '<p>Auf der Liegenschaft EZ ###EINLAGEZAHL###, GB ###GRUNDBUCH### wurde durch den Baubescheid Zl. ###BAUBESCHEID### der Gemeinde ###BESCHEIDGEMEINDE### der Neubau einer Wohnanlage bewilligt. Der vorzitierte Baubewilligungsbescheid ist in Rechtskraft erwachsen.</p><p><br>Das gegenständliche &quot;Haus 7&quot; bildet den 4.Bauabschnitt der Wohnhausanlage &quot;Südtiroler Siedlung&quot; in Zams.</p><p>Aus städtebaulicher Sicht wird die typische, hauptsächlich aus Einzelhäusern bestehende Bebauungsstruktur des Ortsteils aufgenommen.<br>Die Wohngebäude sind als Vier- bzw. Fünfspänner mit eingeschobener Erschließungs- und Balkonstruktur konzipiert. Die Wohnbereiche sind in je zwei kompakten Kuben untergebracht. <br>Die an der Südwestseite eingeschobene und vorgelagerte Balkonstruktur besteht aus einer Metallrahmenkonstruktion mit eingelegten Bodenelementen aus Holz. <br><br>Die ersten drei  Baustufen beinhalten je zwei Baukörper mit zwölf bzw. fünfzehn Wohneinheiten. Die zugehörige Tiefgarage wird über eine einspurige Rampe im Norden erschlossen. <br><br>Die vierte Baustufe (&quot;Haus 7&quot;) beinhaltet 15 Wohneinheiten und liegt im Südwesten der Gesamtanlage,  wobei sich auch die Fahrradräume, Müllraum, Spielplatz und unterirdische Stellplätze im Bereich der ersten drei Baustufen befinden.<br><br>Freiparkplätze befinden sich nordwestlich des Haus 7 und bilden einen Teil der Allgemeinfläche.</p>', '2025-10-27 08:18:22', '2025-10-27 08:18:22'), ('10', '1', '11', '2.2', 'BESCHREIBUNG DER LIEGENSCHAFT', NULL, 'standard', '1', '0', '0', '4', '0', '1', '0', NULL, '<p>Auf der Liegenschaft EZ ###EINLAGEZAHL###, GB ###GRUNDBUCH### wurde durch den Baubescheid Zl. ###BAUBESCHEID### der Gemeinde ###BESCHEIDGEMEINDE### der Neubau einer Wohnanlage bewilligt. Der vorzitierte Baubewilligungsbescheid ist in Rechtskraft erwachsen.</p><p><br>Das gegenständliche &quot;Haus 7&quot; bildet den 4.Bauabschnitt der Wohnhausanlage &quot;Südtiroler Siedlung&quot; in Zams.</p><p>Aus städtebaulicher Sicht wird die typische, hauptsächlich aus Einzelhäusern bestehende Bebauungsstruktur des Ortsteils aufgenommen.<br>Die Wohngebäude sind als Vier- bzw. Fünfspänner mit eingeschobener Erschließungs- und Balkonstruktur konzipiert. Die Wohnbereiche sind in je zwei kompakten Kuben untergebracht. <br>Die an der Südwestseite eingeschobene und vorgelagerte Balkonstruktur besteht aus einer Metallrahmenkonstruktion mit eingelegten Bodenelementen aus Holz. <br><br>Die ersten drei  Baustufen beinhalten je zwei Baukörper mit zwölf bzw. fünfzehn Wohneinheiten. Die zugehörige Tiefgarage wird über eine einspurige Rampe im Norden erschlossen. <br><br>Die vierte Baustufe (&quot;Haus 7&quot;) beinhaltet 15 Wohneinheiten und liegt im Südwesten der Gesamtanlage,  wobei sich auch die Fahrradräume, Müllraum, Spielplatz und unterirdische Stellplätze im Bereich der ersten drei Baustufen befinden.<br><br>Freiparkplätze befinden sich nordwestlich des Haus 7 und bilden einen Teil der Allgemeinfläche.</p>', NULL, '2025-10-27 08:18:22', '2025-10-27 08:18:22'),
('11', '1', 'Tabelle § 6', 'ANZAHL DER SELBSTÄNDIGEN EINHEITEN § 6 WEG 2002', 'standard', '1', '3', '6', '0', '12', '2.3', '5', '0', '1', '0', '<p>Es wird bestätigt, dass die Wohnanlage (Gst-Nr. ###GSTNR### In EZ ###EINLAGEZAHL###) folgende Einheiten umfasst, an welchen Wohnungseigentum begründet wird:<br>Grundlage ist die Einreichplanung mit dem Baubescheid Zl. ###BAUBESCHEID### <em>sowie die Werkplanung</em>.<br><br>XX Wohnungen (mit vorangestelltem &quot;W&quot;) samt Zubehör.<br>XX Kfz-Stellplätze in der Tiefgarage (mit vorangestelltem &quot;P&quot;)<br><br>Weitere XX Stellplätze in der Tiefgarage sowie XX freie Stellplätze verbleiben laut Widmung zur allgemeinen Benützung.</p>', '2025-10-27 08:18:22', '2025-10-27 08:18:22'), ('11', '1', '12', '2.3', 'Tabelle § 6', 'ANZAHL DER SELBSTÄNDIGEN EINHEITEN § 6 WEG 2002', 'standard', '1', '3', '0', '5', '0', '1', '0', NULL, '<p>Es wird bestätigt, dass die Wohnanlage (Gst-Nr. ###GSTNR### In EZ ###EINLAGEZAHL###) folgende Einheiten umfasst, an welchen Wohnungseigentum begründet wird:<br>Grundlage ist die Einreichplanung mit dem Baubescheid Zl. ###BAUBESCHEID### <em>sowie die Werkplanung</em>.<br><br>XX Wohnungen (mit vorangestelltem &quot;W&quot;) samt Zubehör.<br>XX Kfz-Stellplätze in der Tiefgarage (mit vorangestelltem &quot;P&quot;)<br><br>Weitere XX Stellplätze in der Tiefgarage sowie XX freie Stellplätze verbleiben laut Widmung zur allgemeinen Benützung.</p>', NULL, '2025-10-27 08:18:22', '2025-10-27 08:18:22'),
('13', '1', '§ 6 Teil 2', NULL, 'standard', '1', '0', '7', '0', '14', '2.3', '5', '0', '1', '0', '<p>Weiters wird bescheinigt, dass sich auf der Liegenschaft keine Wohnungen befinden, an denen nicht Wohnungseigentum begründet werden kann.<br>Die im folgenden aufgelisteten Teile der Liegenschaft dienen der allgemeinen Benützung oder haben eine Zweckbestimmung, die einer ausschließlichen Benützung entgegensteht.<br>Die Widmung als allgemein nutzbare Fläche erfolgte durch den Auftraggeber/Eigentümer.</p>', '2025-10-27 08:18:22', '2025-10-27 08:18:22'), ('13', '1', '14', '2.3', '§ 6 Teil 2', NULL, 'standard', '1', '0', '0', '5', '0', '1', '0', NULL, '<p>Weiters wird bescheinigt, dass sich auf der Liegenschaft keine Wohnungen befinden, an denen nicht Wohnungseigentum begründet werden kann.<br>Die im folgenden aufgelisteten Teile der Liegenschaft dienen der allgemeinen Benützung oder haben eine Zweckbestimmung, die einer ausschließlichen Benützung entgegensteht.<br>Die Widmung als allgemein nutzbare Fläche erfolgte durch den Auftraggeber/Eigentümer.</p>', NULL, '2025-10-27 08:18:22', '2025-10-27 08:18:22'),
('15', '1', 'GUTACHTEN', NULL, 'standard', '1', '0', '0', '0', '16', '3', '0', '1', '1', '0', '', '2025-10-27 08:18:22', '2025-10-27 08:18:22'), ('14', '1', '24', '3.5', 'ALLGEMEINFLÄCHEN', NULL, 'nutzwerte', '1', '4', '0', '0', '0', '1', '0', NULL, '', NULL, '2025-10-27 08:18:22', '2025-10-27 08:18:22'),
('16', '1', 'ALLGEMEINE GRUNDSÄTZE', NULL, 'standard', '1', '0', '8', '0', '17', '3.1', '0', '0', '1', '0', '<p>Wohnungseigentum ist das dem Miteigentümer einer Liegenschaft oder einer Eigentümerpartnerschaft eingeräumte dingliche Recht, ein Wohnungseigentumsobjekt ausschließlich zu nutzen und allein darüber zu verfügen. (Auszug §2 (1))<br><br>Wohnungseigentumsobjekte sind Wohnungen, sonstige selbständige Räumlichkeiten und Abstellplätze für Kraftfahrzeuge (wohnungseigentumstaugliche Objekte), an denen Wohnungseigentum begründet wurde. (Auszug §2 (2))<br><br>Eine Wohnung ist ein baulich abgeschlossener, nach der Verkehrsauffassung selbständiger Teil eines Gebäudes, der nach seiner Art und Größe geeignet ist, der Befriedigung eines individuellen Wohnbedürfnisses von Menschen zu dienen. Eine sonstige selbständige Räumlichkeit ist ein baulich abgeschlossener, nach der Verkehrsauffassung selbständiger Teil eines Gebäudes, dem nach seiner Art und Größe eine erhebliche wirtschaftliche Bedeutung zukommt, ein Abstellplatz für ein Kraftfahrzeug ist eine - etwa durch Bodenmarkierung - deutlich abgegrenzte Bodenfläche, die ausschließlich zum Abstellen eines Kraftfahrzeugs gewidmet und dazu nach ihrer Größe, Lage und Beschaffenheit geeignet ist. (Auszug §2 (2))<br><br>Zubehör-Wohnungseigentum ist das mit dem Wohnungseigentum verbundene Recht, andere, mit dem Wohnungseigentumsobjekt baulich nicht verbundene Teile der Liegenschaft, wie etwa Keller- oder Dachbodenräume, Hausgärten oder Lagerplätze, ausschließlich zu nutzen. (Auszug §2 (3))<br><br>Allgemeine Teile der Liegenschaft sind solche, die der allgemeinen Benützung dienen oder deren Zweckbestimmung einer ausschließlichen Benützung entgegensteht. (Auszug §2 (4))<br><br>Der Nutzwert ist die Maßzahl, mit der der Wert eines Wohnungseigentumsobjekts im Verhältnis zu den Werten der anderen Wohnungseigentumsobjekte der Liegenschaft bezeichnet wird. Er ergibt sich aus der Nutzfläche des Objekts und aus Zuschlägen oder Abstrichen für werterhöhende oder wertvermindernde Eigenschaften desselben. (Auszug §2 (8))<br><br>Der Mindestanteil ist jener Miteigentumsanteil an der Liegenschaft, der zum Erwerb von Wohnungseigentum an einem Wohnungseigentumsobjekt erforderlich ist. Er entspricht dem Verhältnis des Nutzwerts des Objekts zur Summe der Nutzwerte aller Wohnungseigentumsobjekte der Liegenschaft. (Auszug §2 (9))<br><br>Der Nutzwert ist in einer ganzen Zahl auszudrücken, wobei Teilbeträge unter 0,5 abgerundet und ab 0,5 aufgerundet werden. Er ist aus der Nutzfläche und aus Zuschlägen oder Abstrichen für Umstände zu berechnen, die nach der Verkehrsauffassung den Wert des Wohnungseigentumsobjekts erhöhen oder vermindern, wie etwa dessen Zweckbestimmung, Stockwerkslage, Lage innerhalb eines Stockwerks oder dessen Ausstattung mit offenen Balkonen, Terrassen und Zubehörobjekten (Auszug §8 (1))<br><br>Zuschläge für die Ausstattung mit Zubehörobjekten sowie mit offenen Balkonen und Terrassen sind in einer ganzen Zahl auszudrücken; der Zuschlag ist jedoch mindestens mit der Zahl Eins anzusetzen. (Auszug §8 (2))<br><br>Die Wohnungsobjekte erhalten den Buchstaben &quot;W&quot; der Nummer vorangestellt. Die Kfz-Stellplätze erhalten den Buchstaben &quot;P&quot; der Nummer vorangestellt.<br>Bei den Zubehörobjekten sind die Keller mit einem vorangestellten &quot;K&quot; gekennzeichnet, die Gärten mit einem &quot;G&quot;.</p>', '2025-10-27 08:18:22', '2025-10-27 08:18:22'), ('15', '1', '16', '3', 'GUTACHTEN', NULL, 'standard', '1', '0', '0', '0', '1', '1', '0', NULL, '', NULL, '2025-10-27 08:18:22', '2025-10-27 08:18:22'),
('17', '1', 'ERMITTLUNG DER NUTZWERTE – ZUBEHÖRBEWERTUNG', NULL, 'standard', '1', '0', '9', '0', '18', '3.2', '0', '0', '1', '0', '<p>Es wird vorgeschlagen, die Nutzwerte wie folgt zu bestimmen:<br><br>Die Wohnung W07 ist eine Dreizimmerwohnung, liegt im ersten Obergeschoß und ihre Haupträume sind nach Westen orientiert. Diese Wohnung erhält den Regelnutzwert von 1,00.<br><br>Folgende Kriterien werden für die Nutzwertberechnung berücksichtigt:<br><br>Erdgeschoßlage:<br><br>Die Lage im Erdgeschoß führt zu einer Beeinträchtigung durch Einsehbarkeit von den direkt angrenzenden Allgemeinflächen (Zugänge, Wege). Weiters erfolgen Beeinträchtigungen durch den Geländeverlauf, wenn im Nahbereich der Einheit eine nach oben führenden Böschung die Aussicht beeinträchtigt und auch durch das auf dem Bauplatz befindliche Zweitgebäude.<br><br>Die Einheit W01 wird durch den direkt im Osten vorbeiführenden Zugangsbereich beeinträchtigt und um -2,5% abgewertet.<br><br>Die Einheit W02 wird durch die südlich bzw. südöstlich liegende Böschung sowie durch den Fußweg beeinträchtigt und um -5,0% abgewertet.<br><br>Die Einheit W03 orientiert sich mit dem Hauptraum direkt auf das nebenan errichtete Haus B, was an dieser Stelle drei oberirdische Geschoße aufweist. Diese Einheit wird daher um -5,0% abgewertet.<br><br>Die Wohnung W11 wird durch den direkt im Osten vorbeiführenden Zugangsbereich beeinträchtigt und um -2,5% abgewertet.<br><br>Die Wohneinheit W12 wird durch die südliche Böschung und im Osten durch den Zugangsweg beeinträchtigt und somit um -5,0% abgewertet.<br><br>Die Einheit W13 wird durch die im Süden und Westen angelegte Böschung beeinträchtigt und daher um -5,0% abgewertet.<br><br>Lage im letzten Geschoß:<br><br>Die Wohnungen im letzten Geschoß (Durch den Geländeverlauf betrifft das beim Haus A das 2. Obergeschoß und beim Haus B das 3.) werden aufgrund der günstigeren Aussichts- und Besonnungsmöglichkeit um 2,5% aufgewertet.<br><br>Außer die Wohnung W20: Hier ist durch die gute dreiseitige Orientierung nach Süden, Osten und Westen ein Zuschlag von insgesamt 5,0% gerechtfertigt.<br><br>KFZ-Abstellplätze:<br>Die Stellplätze in der Tiefgarage werden mit 55% des Regelnutzwertes bewertet.<br>Jene in der Tiefgarage, welche eine Übergröße aufweisen mit 50%.<br><br>Die Balkon- und Terrassenflächen werden mit 25% des Regelnutzwertes in Ansatz gebracht.<br><br>Hinweis: Einige Wohnungen werden insgesamt um 2,5% auf- bzw. abgewertet. Unter dem Punkt 3.30 Nutzwertberechnung wird dies für die einzelnen Wohnungen nachvollziehbar dargestellt. Hier wird der Faktor auf zwei Stellen gerundet angeschrieben, jedoch richtigerweise mit 97,5% bzw. 102,5% berechnet.<br><br>Bemerkung: Nach Rücksprache mit dem Auftraggeber (Freigabe am 29.09.2014) wurden folgende Flächen wie im aktuellen Außenanlagenplan (Eingang 25.09.2014, vom Architekten) dargestellt in Ansatz gebracht:<br>Die Terrasse W02 wurde nach Westen hin verschoben. Der Garten G02 wurde aufgrund des Fußweges verändert. Die Gärten der Wohnungen W12 und W13 werden in ihrem Flächenausmaß so wie in den Verkaufsunterlagen dargestellt in Ansatz gebracht.</p>', '2025-10-27 08:18:22', '2025-10-27 08:18:22'), ('16', '1', '17', '3.1', 'ALLGEMEINE GRUNDSÄTZE', NULL, 'standard', '1', '0', '0', '0', '0', '1', '0', NULL, '<p>Wohnungseigentum ist das dem Miteigentümer einer Liegenschaft oder einer Eigentümerpartnerschaft eingeräumte dingliche Recht, ein Wohnungseigentumsobjekt ausschließlich zu nutzen und allein darüber zu verfügen. (Auszug §2 (1))<br><br>Wohnungseigentumsobjekte sind Wohnungen, sonstige selbständige Räumlichkeiten und Abstellplätze für Kraftfahrzeuge (wohnungseigentumstaugliche Objekte), an denen Wohnungseigentum begründet wurde. (Auszug §2 (2))<br><br>Eine Wohnung ist ein baulich abgeschlossener, nach der Verkehrsauffassung selbständiger Teil eines Gebäudes, der nach seiner Art und Größe geeignet ist, der Befriedigung eines individuellen Wohnbedürfnisses von Menschen zu dienen. Eine sonstige selbständige Räumlichkeit ist ein baulich abgeschlossener, nach der Verkehrsauffassung selbständiger Teil eines Gebäudes, dem nach seiner Art und Größe eine erhebliche wirtschaftliche Bedeutung zukommt, ein Abstellplatz für ein Kraftfahrzeug ist eine - etwa durch Bodenmarkierung - deutlich abgegrenzte Bodenfläche, die ausschließlich zum Abstellen eines Kraftfahrzeugs gewidmet und dazu nach ihrer Größe, Lage und Beschaffenheit geeignet ist. (Auszug §2 (2))<br><br>Zubehör-Wohnungseigentum ist das mit dem Wohnungseigentum verbundene Recht, andere, mit dem Wohnungseigentumsobjekt baulich nicht verbundene Teile der Liegenschaft, wie etwa Keller- oder Dachbodenräume, Hausgärten oder Lagerplätze, ausschließlich zu nutzen. (Auszug §2 (3))<br><br>Allgemeine Teile der Liegenschaft sind solche, die der allgemeinen Benützung dienen oder deren Zweckbestimmung einer ausschließlichen Benützung entgegensteht. (Auszug §2 (4))<br><br>Der Nutzwert ist die Maßzahl, mit der der Wert eines Wohnungseigentumsobjekts im Verhältnis zu den Werten der anderen Wohnungseigentumsobjekte der Liegenschaft bezeichnet wird. Er ergibt sich aus der Nutzfläche des Objekts und aus Zuschlägen oder Abstrichen für werterhöhende oder wertvermindernde Eigenschaften desselben. (Auszug §2 (8))<br><br>Der Mindestanteil ist jener Miteigentumsanteil an der Liegenschaft, der zum Erwerb von Wohnungseigentum an einem Wohnungseigentumsobjekt erforderlich ist. Er entspricht dem Verhältnis des Nutzwerts des Objekts zur Summe der Nutzwerte aller Wohnungseigentumsobjekte der Liegenschaft. (Auszug §2 (9))<br><br>Der Nutzwert ist in einer ganzen Zahl auszudrücken, wobei Teilbeträge unter 0,5 abgerundet und ab 0,5 aufgerundet werden. Er ist aus der Nutzfläche und aus Zuschlägen oder Abstrichen für Umstände zu berechnen, die nach der Verkehrsauffassung den Wert des Wohnungseigentumsobjekts erhöhen oder vermindern, wie etwa dessen Zweckbestimmung, Stockwerkslage, Lage innerhalb eines Stockwerks oder dessen Ausstattung mit offenen Balkonen, Terrassen und Zubehörobjekten (Auszug §8 (1))<br><br>Zuschläge für die Ausstattung mit Zubehörobjekten sowie mit offenen Balkonen und Terrassen sind in einer ganzen Zahl auszudrücken; der Zuschlag ist jedoch mindestens mit der Zahl Eins anzusetzen. (Auszug §8 (2))<br><br>Die Wohnungsobjekte erhalten den Buchstaben &quot;W&quot; der Nummer vorangestellt. Die Kfz-Stellplätze erhalten den Buchstaben &quot;P&quot; der Nummer vorangestellt.<br>Bei den Zubehörobjekten sind die Keller mit einem vorangestellten &quot;K&quot; gekennzeichnet, die Gärten mit einem &quot;G&quot;.</p>', NULL, '2025-10-27 08:18:22', '2025-10-27 08:18:22'),
('18', '1', 'ZUBEHÖR', NULL, 'standard', '1', '0', '10', '0', '19', '0', '0', '0', '1', '0', '<p>Die Gartenflächen werden mit 5% ihres Flächenausmaßes in Ansatz gebracht.<br><br>Die Kellerabteile (Lattenverschlag) werden mit 15% ihrer Fläche berechnet.</p>', '2025-10-27 08:18:22', '2025-10-27 08:18:22'), ('17', '1', '18', '3.2', 'ERMITTLUNG DER NUTZWERTE – ZUBEHÖRBEWERTUNG', NULL, 'standard', '1', '0', '0', '0', '0', '1', '0', NULL, '<p>Es wird vorgeschlagen, die Nutzwerte wie folgt zu bestimmen:<br><br>Die Wohnung W07 ist eine Dreizimmerwohnung, liegt im ersten Obergeschoß und ihre Haupträume sind nach Westen orientiert. Diese Wohnung erhält den Regelnutzwert von 1,00.<br><br>Folgende Kriterien werden für die Nutzwertberechnung berücksichtigt:<br><br>Erdgeschoßlage:<br><br>Die Lage im Erdgeschoß führt zu einer Beeinträchtigung durch Einsehbarkeit von den direkt angrenzenden Allgemeinflächen (Zugänge, Wege). Weiters erfolgen Beeinträchtigungen durch den Geländeverlauf, wenn im Nahbereich der Einheit eine nach oben führenden Böschung die Aussicht beeinträchtigt und auch durch das auf dem Bauplatz befindliche Zweitgebäude.<br><br>Die Einheit W01 wird durch den direkt im Osten vorbeiführenden Zugangsbereich beeinträchtigt und um -2,5% abgewertet.<br><br>Die Einheit W02 wird durch die südlich bzw. südöstlich liegende Böschung sowie durch den Fußweg beeinträchtigt und um -5,0% abgewertet.<br><br>Die Einheit W03 orientiert sich mit dem Hauptraum direkt auf das nebenan errichtete Haus B, was an dieser Stelle drei oberirdische Geschoße aufweist. Diese Einheit wird daher um -5,0% abgewertet.<br><br>Die Wohnung W11 wird durch den direkt im Osten vorbeiführenden Zugangsbereich beeinträchtigt und um -2,5% abgewertet.<br><br>Die Wohneinheit W12 wird durch die südliche Böschung und im Osten durch den Zugangsweg beeinträchtigt und somit um -5,0% abgewertet.<br><br>Die Einheit W13 wird durch die im Süden und Westen angelegte Böschung beeinträchtigt und daher um -5,0% abgewertet.<br><br>Lage im letzten Geschoß:<br><br>Die Wohnungen im letzten Geschoß (Durch den Geländeverlauf betrifft das beim Haus A das 2. Obergeschoß und beim Haus B das 3.) werden aufgrund der günstigeren Aussichts- und Besonnungsmöglichkeit um 2,5% aufgewertet.<br><br>Außer die Wohnung W20: Hier ist durch die gute dreiseitige Orientierung nach Süden, Osten und Westen ein Zuschlag von insgesamt 5,0% gerechtfertigt.<br><br>KFZ-Abstellplätze:<br>Die Stellplätze in der Tiefgarage werden mit 55% des Regelnutzwertes bewertet.<br>Jene in der Tiefgarage, welche eine Übergröße aufweisen mit 50%.<br><br>Die Balkon- und Terrassenflächen werden mit 25% des Regelnutzwertes in Ansatz gebracht.<br><br>Hinweis: Einige Wohnungen werden insgesamt um 2,5% auf- bzw. abgewertet. Unter dem Punkt 3.30 Nutzwertberechnung wird dies für die einzelnen Wohnungen nachvollziehbar dargestellt. Hier wird der Faktor auf zwei Stellen gerundet angeschrieben, jedoch richtigerweise mit 97,5% bzw. 102,5% berechnet.<br><br>Bemerkung: Nach Rücksprache mit dem Auftraggeber (Freigabe am 29.09.2014) wurden folgende Flächen wie im aktuellen Außenanlagenplan (Eingang 25.09.2014, vom Architekten) dargestellt in Ansatz gebracht:<br>Die Terrasse W02 wurde nach Westen hin verschoben. Der Garten G02 wurde aufgrund des Fußweges verändert. Die Gärten der Wohnungen W12 und W13 werden in ihrem Flächenausmaß so wie in den Verkaufsunterlagen dargestellt in Ansatz gebracht.</p>', NULL, '2025-10-27 08:18:22', '2025-10-27 08:18:22'),
('19', '1', 'TABELLE ZU + ABSCHLÄGE', NULL, 'nutzwerte', '1', '5', '0', '0', '20', '3.21', '0', '1', '1', '0', '', '2025-10-27 08:18:22', '2025-10-27 08:18:22'), ('18', '1', '19', '0', 'ZUBEHÖR', NULL, 'standard', '1', '0', '0', '0', '0', '1', '0', NULL, '<p>Die Gartenflächen werden mit 5% ihres Flächenausmaßes in Ansatz gebracht.<br><br>Die Kellerabteile (Lattenverschlag) werden mit 15% ihrer Fläche berechnet.</p>', NULL, '2025-10-27 08:18:22', '2025-10-27 08:18:22'),
('20', '1', 'NUTZWERTBERECHNUNG', NULL, 'nutzwerte', '1', '6', '0', '0', '21', '3.3', '0', '0', '1', '0', '', '2025-10-27 08:18:22', '2025-10-27 08:18:22'), ('19', '1', '20', '3.21', 'TABELLE ZU + ABSCHLÄGE', NULL, 'nutzwerte', '1', '5', '0', '0', '1', '1', '0', NULL, '', NULL, '2025-10-27 08:18:22', '2025-10-27 08:18:22'),
('21', '1', 'ZUSAMMENSTELLUNG', NULL, 'nutzwerte', '1', '7', '0', '0', '22', '3.4', '0', '0', '1', '0', '', '2025-10-27 08:18:22', '2025-10-27 08:18:22'), ('20', '1', '21', '3.3', 'NUTZWERTBERECHNUNG', NULL, 'nutzwerte', '1', '6', '0', '0', '0', '1', '0', NULL, '', NULL, '2025-10-27 08:18:22', '2025-10-27 08:18:22'),
('22', '1', 'DIGITALE SIGNATUR', NULL, 'nutzwerte', '1', '0', '0', '0', '23', '3.41', '0', '0', '1', '0', '', '2025-10-27 08:18:22', '2025-10-27 08:18:22'), ('21', '1', '22', '3.4', 'ZUSAMMENSTELLUNG', NULL, 'nutzwerte', '1', '7', '0', '0', '0', '1', '0', NULL, '', NULL, '2025-10-27 08:18:22', '2025-10-27 08:18:22'),
('14', '1', 'ALLGEMEINFLÄCHEN', NULL, 'nutzwerte', '1', '4', '0', '0', '24', '3.5', '0', '0', '1', '0', '', '2025-10-27 08:18:22', '2025-10-27 08:18:22'), ('22', '1', '23', '3.41', 'DIGITALE SIGNATUR', NULL, 'nutzwerte', '1', '0', '0', '0', '0', '1', '0', NULL, '', NULL, '2025-10-27 08:18:22', '2025-10-27 08:18:22'),
('23', '1', 'PARIFIZIERUNGSPLÄNE ', NULL, 'nutzwerte', '1', '0', '0', '0', '25', '4', '0', '0', '1', '0', '', '2025-10-27 08:18:22', '2025-10-27 08:18:22'), ('23', '1', '25', '4', 'PARIFIZIERUNGSPLÄNE ', NULL, 'nutzwerte', '1', '0', '0', '0', '0', '1', '0', NULL, '', NULL, '2025-10-27 08:18:22', '2025-10-27 08:18:22'),
('24', '1', 'ANHANG', NULL, 'nutzwerte', '1', '0', '0', '0', '26', '5', '0', '0', '1', '0', '', '2025-10-27 08:18:22', '2025-10-27 08:18:22'), ('24', '1', '26', '5', 'ANHANG', NULL, 'nutzwerte', '1', '0', '0', '0', '0', '1', '0', NULL, '', NULL, '2025-10-27 08:18:22', '2025-10-27 08:18:22'),
('25', '1', 'GRUNDBUCHAUSZUG ', NULL, 'nutzwerte', '1', '0', '0', '0', '27', '0', '0', '0', '0', '0', '', '2025-10-27 08:18:22', '2025-10-27 08:18:22'), ('25', '1', '27', '0', 'GRUNDBUCHAUSZUG ', NULL, 'nutzwerte', '1', '0', '0', '0', '0', '0', '0', NULL, '', NULL, '2025-10-27 08:18:22', '2025-10-27 08:18:22'),
('26', '1', 'BAUBESCHEID', NULL, 'nutzwerte', '1', '0', '0', '0', '28', '0', '0', '0', '1', '0', '', '2025-10-27 08:18:22', '2025-10-27 08:18:22'), ('26', '1', '28', '0', 'BAUBESCHEID', NULL, 'nutzwerte', '1', '0', '0', '0', '0', '1', '0', NULL, '', NULL, '2025-10-27 08:18:22', '2025-10-27 08:18:22'),
('27', '1', 'HAUSTECHNISCHE BESCHREIBUNG', NULL, 'nutzwerte', '1', '0', '0', '0', '29', '0', '0', '0', '1', '0', '', '2025-10-27 08:18:22', '2025-10-27 08:18:22'), ('27', '1', '29', '0', 'HAUSTECHNISCHE BESCHREIBUNG', NULL, 'nutzwerte', '1', '0', '0', '0', '0', '1', '0', NULL, '', NULL, '2025-10-27 08:18:22', '2025-10-27 08:18:22'),
('28', '1', 'NUTZFLÄCHENERMITTLUNGEN', NULL, 'nutzwerte', '1', '0', '0', '0', '30', '0', '0', '0', '1', '0', '', '2025-10-27 08:18:22', '2025-10-27 08:18:22'), ('28', '1', '30', '0', 'NUTZFLÄCHENERMITTLUNGEN', NULL, 'nutzwerte', '1', '0', '0', '0', '0', '1', '0', NULL, '', NULL, '2025-10-27 08:18:22', '2025-10-27 08:18:22'),
('29', '1', 'DECKBLATT', NULL, 'paragraph', '0', '0', '11', '0', '40', '0', '0', '1', '0', '0', '<p>P ###GUTACHTEN_P_NR### WEG 2002</p><p>EZ ###EINLAGEZAHL### des GB ###GRUNDBUCH###</p>', '2025-10-27 08:18:22', '2025-10-27 08:18:22'), ('29', '1', '40', '0', 'DECKBLATT', NULL, 'paragraph', '0', '0', '0', '0', '1', '0', '0', NULL, '<p>P ###GUTACHTEN_P_NR### WEG 2002</p><p>EZ ###EINLAGEZAHL### des GB ###GRUNDBUCH###</p>', NULL, '2025-10-27 08:18:22', '2025-10-27 08:18:22'),
('30', '1', 'Tabelle § 6', NULL, 'paragraph', '0', '3', '6', '0', '41', '0', '0', '1', '0', '0', '', '2025-10-27 08:18:22', '2025-10-27 08:18:22'), ('30', '1', '41', '0', 'Tabelle § 6', NULL, 'paragraph', '0', '3', '0', '0', '1', '0', '0', NULL, '', NULL, '2025-10-27 08:18:22', '2025-10-27 08:18:22'),
('31', '1', '§ 6 Teil 2', NULL, 'paragraph', '0', '0', '7', '0', '42', '0', '5', '0', '0', '0', '<p>Weiters wird bescheinigt, dass sich auf der Liegenschaft keine Wohnungen befinden, an denen nicht Wohnungseigentum begründet werden kann.<br>Die im folgenden aufgelisteten Teile der Liegenschaft dienen der allgemeinen Benützung oder haben eine Zweckbestimmung, die einer ausschließlichen Benützung entgegensteht.<br>Die Widmung als allgemein nutzbare Fläche erfolgte durch den Auftraggeber/Eigentümer.</p>', '2025-10-27 08:18:22', '2025-10-27 08:18:22'), ('31', '1', '42', '0', '§ 6 Teil 2', NULL, 'paragraph', '0', '0', '0', '5', '0', '0', '0', NULL, '<p>Weiters wird bescheinigt, dass sich auf der Liegenschaft keine Wohnungen befinden, an denen nicht Wohnungseigentum begründet werden kann.<br>Die im folgenden aufgelisteten Teile der Liegenschaft dienen der allgemeinen Benützung oder haben eine Zweckbestimmung, die einer ausschließlichen Benützung entgegensteht.<br>Die Widmung als allgemein nutzbare Fläche erfolgte durch den Auftraggeber/Eigentümer.</p>', NULL, '2025-10-27 08:18:22', '2025-10-27 08:18:22'),
('32', '1', 'DIGITALE SIGNATUR', NULL, 'paragraph', '1', '0', '0', '0', '43', '0', '0', '0', '0', '0', '<p></p>', '2025-10-27 08:18:22', '2025-10-31 10:11:20'); ('32', '1', '43', '0', 'DIGITALE SIGNATUR', NULL, 'paragraph', '1', '0', '0', '0', '0', '0', '0', NULL, '<p></p>', NULL, '2025-10-27 08:18:22', '2025-10-31 10:11:20'),
('97', '2', '1', '0', 'GUTACHTEN - VERTEILUNGSSCHLÜSSEL', NULL, 'standard', '0', '9', '0', '0', '1', '0', '0', 'DECKBLATT', '<p>P ###GUTACHTEN_P_NR### WEG 2002</p>', '<p>###OFFIZIELLER_NAME###</p><p>EZ ###EINLAGEZAHL### des GB ###GRUNDBUCH###</p>', '2025-11-03 16:43:30', '2025-11-03 16:43:30'),
('98', '2', '2', '0', 'INHALTSVERZEICHNIS', NULL, 'standard', '1', '1', '0', '0', '1', '0', '0', '', '', '', '2025-11-03 16:43:30', '2025-11-03 16:43:30'),
('99', '2', '3', '1', 'ALLGEMEINE ANGABEN', NULL, 'standard', '1', '0', '0', '3', '1', '1', '0', '', '', '', '2025-11-03 16:43:30', '2025-11-03 16:43:30'),
('100', '2', '4', '1.1', 'AUFTRAGGEBER', NULL, 'standard', '1', '8', '0', '3', '0', '1', '0', '', '', '', '2025-11-03 16:43:30', '2025-11-03 16:43:30'),
('101', '2', '5', '1.2', 'ZWECK UND GEGENSTAND DES GUTACHTENS', NULL, 'standard', '1', '0', '0', '3', '0', '1', '0', 'ZWECK UND GEGENSTAND DES GUTACHTENS', '<p>Ermittlung der Nutzwerte und Mindestanteile der Wohnungseigentumsobjekte der Liegenschaft EZ ###EINLAGEZAHL###, GB ###GRUNDBUCH###, zum Zwecke der Begründung von Wohnungseigentum im Sinne des Wohnungseigentumsgesetzes 2002 in der geltenden Fassung.<br><br>Ermittlung der Nutzwerte und Mindestanteile der Wohnungseigentumsobjekte der Liegenschaft EZ ###EINLAGEZAHL###, GB ###GRUNDBUCH###, zum Zwecke eines abweichenden Verteilungsschlüssels gemäß §16 Absatz 3 des WGG1979.<br>Dieses Gutachten ist nicht als Grundlage für die Begründung von Wohnungseigentum heranzuziehen.</p>', '', '2025-11-03 16:43:30', '2025-11-03 16:43:30'),
('102', '2', '6', '1.3', 'ORTSBESICHTIGUNG', NULL, 'standard', '1', '0', '0', '3', '0', '1', '0', 'ORTSBESICHTIGUNG', '<p>Am ###ORTSBESICHTIGUNG###</p>', '', '2025-11-03 16:43:30', '2025-11-03 16:43:30'),
('103', '2', '7', '1.4', 'UNTERLAGEN', NULL, 'standard', '1', '0', '0', '3', '0', '1', '0', 'UNTERLAGEN', '<table><tbody><tr><td rowspan=\"1\" colspan=\"1\"><p>Grundbuchsauszug:</p></td><td rowspan=\"1\" colspan=\"1\"><p>###EINLAGEZAHL###</p></td></tr><tr><td rowspan=\"1\" colspan=\"1\"><p>Baubescheid Zl.:</p></td><td rowspan=\"1\" colspan=\"1\"><p>###BAUBESCHEID###</p></td></tr><tr><td rowspan=\"1\" colspan=\"1\"><p>Planunterlagen:</p></td><td rowspan=\"1\" colspan=\"1\"><p>###PLANUNTERLAGEN###</p></td></tr></tbody></table>', '<p>Auflistung Widmung Abstellplätze (als Anhang zum email vom XX.XX.XXXX, von nht)</p>', '2025-11-03 16:43:30', '2025-11-03 16:43:30'),
('104', '2', '8', '2', 'BEFUND', NULL, 'standard', '1', '0', '0', '4', '1', '1', '0', '', '', '', '2025-11-03 16:43:30', '2025-11-03 16:43:30'),
('105', '2', '9', '2.1', 'GRUNDBUCHSTAND', NULL, 'standard', '1', '0', '0', '4', '0', '1', '0', 'GRUNDBUCHSTAND', '<table><tbody><tr><td rowspan=\"1\" colspan=\"1\"><p>Liegenschaftsadresse</p></td><td rowspan=\"1\" colspan=\"1\"><p>###LIEGENSCHAFTSADRESSE###</p></td></tr><tr><td rowspan=\"1\" colspan=\"1\"><p>Grundbuch</p></td><td rowspan=\"1\" colspan=\"1\"><p>###GRUNDBUCH###</p></td></tr><tr><td rowspan=\"1\" colspan=\"1\"><p>Einlagezahl</p></td><td rowspan=\"1\" colspan=\"1\"><p>###EINLAGEZAHL###</p></td></tr><tr><td rowspan=\"1\" colspan=\"1\"><p>Grundstücksnummer</p></td><td rowspan=\"1\" colspan=\"1\"><p>###GSTNR###</p></td></tr><tr><td rowspan=\"1\" colspan=\"1\"><p>Bezirksgericht</p></td><td rowspan=\"1\" colspan=\"1\"><p>###BEZIRKSGERICHT###</p></td></tr></tbody></table>', '', '2025-11-03 16:43:30', '2025-11-03 16:43:30'),
('106', '2', '10', '2.2', 'BESCHREIBUNG DER LIEGENSCHAFT', NULL, 'standard', '1', '0', '0', '4', '0', '1', '0', 'BESCHREIBUNG DER LIEGENSCHAFT', '<p>Auf der Liegenschaft EZ ###EINLAGEZAHL###, GB ###GRUNDBUCH### wurde durch den Baubescheid Zl. ###BAUBESCHEID### der Gemeinde ###BESCHEIDGEMEINDE### der Neubau einer Wohnanlage bewilligt. Der vorzitierte Baubewilligungsbescheid ist in Rechtskraft erwachsen.</p><p><br>Das gegenständliche &quot;Haus 7&quot; bildet den 4.Bauabschnitt der Wohnhausanlage &quot;Südtiroler Siedlung&quot; in Zams.</p><p>Aus städtebaulicher Sicht wird die typische, hauptsächlich aus Einzelhäusern bestehende Bebauungsstruktur des Ortsteils aufgenommen.<br>Die Wohngebäude sind als Vier- bzw. Fünfspänner mit eingeschobener Erschließungs- und Balkonstruktur konzipiert. Die Wohnbereiche sind in je zwei kompakten Kuben untergebracht. <br>Die an der Südwestseite eingeschobene und vorgelagerte Balkonstruktur besteht aus einer Metallrahmenkonstruktion mit eingelegten Bodenelementen aus Holz. <br><br>Die ersten drei  Baustufen beinhalten je zwei Baukörper mit zwölf bzw. fünfzehn Wohneinheiten. Die zugehörige Tiefgarage wird über eine einspurige Rampe im Norden erschlossen. <br><br>Die vierte Baustufe (&quot;Haus 7&quot;) beinhaltet 15 Wohneinheiten und liegt im Südwesten der Gesamtanlage,  wobei sich auch die Fahrradräume, Müllraum, Spielplatz und unterirdische Stellplätze im Bereich der ersten drei Baustufen befinden.<br><br>Freiparkplätze befinden sich nordwestlich des Haus 7 und bilden einen Teil der Allgemeinfläche.</p>', '', '2025-11-03 16:43:30', '2025-11-03 16:43:30'),
('107', '2', '11', '2.3', 'Tabelle § 6', 'ANZAHL DER SELBSTÄNDIGEN EINHEITEN § 6 WEG 2002', 'standard', '1', '3', '0', '5', '0', '1', '0', 'PARAGRAPH 6', '<p>Es wird bestätigt, dass die Wohnanlage (Gst-Nr. ###GSTNR### In EZ ###EINLAGEZAHL###) folgende Einheiten umfasst, an welchen Wohnungseigentum begründet wird:<br>Grundlage ist die Einreichplanung mit dem Baubescheid Zl. ###BAUBESCHEID### <em>sowie die Werkplanung</em>.<br><br>XX Wohnungen (mit vorangestelltem &quot;W&quot;) samt Zubehör.<br>XX Kfz-Stellplätze in der Tiefgarage (mit vorangestelltem &quot;P&quot;)<br><br>Weitere XX Stellplätze in der Tiefgarage sowie XX freie Stellplätze verbleiben laut Widmung zur allgemeinen Benützung.</p>', '<p>Weiters wird bescheinigt, dass sich auf der Liegenschaft keine Wohnungen befinden, an denen nicht Wohnungseigentum begründet werden kann.<br>Die im folgenden aufgelisteten Teile der Liegenschaft dienen der allgemeinen Benützung oder haben eine Zweckbestimmung, die einer ausschließlichen Benützung entgegensteht.<br>Die Widmung als allgemein nutzbare Fläche erfolgte durch den Auftraggeber/Eigentümer.</p>', '2025-11-03 16:43:30', '2025-11-03 16:43:30'),
('108', '2', '12', '2.3', '§ 6 Teil 2', NULL, 'standard', '1', '0', '0', '5', '0', '1', '0', '', '', '', '2025-11-03 16:43:30', '2025-11-03 16:43:30'),
('109', '2', '13', '0', 'ALLGEMEINFLÄCHEN', NULL, 'standard', '1', '4', '0', '0', '0', '1', '0', '', '', '', '2025-11-03 16:43:30', '2025-11-03 16:43:30'),
('110', '2', '14', '3', 'GUTACHTEN', NULL, 'standard', '1', '0', '0', '0', '1', '1', '0', '', '', '', '2025-11-03 16:43:30', '2025-11-03 16:43:30'),
('111', '2', '15', '3.1', 'ALLGEMEINE GRUNDSÄTZE', NULL, 'standard', '1', '0', '0', '0', '0', '1', '0', 'ALLGEMEINE GRUNDSÄTZE', '<p>Wohnungseigentum ist das dem Miteigentümer einer Liegenschaft oder einer Eigentümerpartnerschaft eingeräumte dingliche Recht, ein Wohnungseigentumsobjekt ausschließlich zu nutzen und allein darüber zu verfügen. (Auszug §2 (1))<br><br>Wohnungseigentumsobjekte sind Wohnungen, sonstige selbständige Räumlichkeiten und Abstellplätze für Kraftfahrzeuge (wohnungseigentumstaugliche Objekte), an denen Wohnungseigentum begründet wurde. (Auszug §2 (2))<br><br>Eine Wohnung ist ein baulich abgeschlossener, nach der Verkehrsauffassung selbständiger Teil eines Gebäudes, der nach seiner Art und Größe geeignet ist, der Befriedigung eines individuellen Wohnbedürfnisses von Menschen zu dienen. Eine sonstige selbständige Räumlichkeit ist ein baulich abgeschlossener, nach der Verkehrsauffassung selbständiger Teil eines Gebäudes, dem nach seiner Art und Größe eine erhebliche wirtschaftliche Bedeutung zukommt, ein Abstellplatz für ein Kraftfahrzeug ist eine - etwa durch Bodenmarkierung - deutlich abgegrenzte Bodenfläche, die ausschließlich zum Abstellen eines Kraftfahrzeugs gewidmet und dazu nach ihrer Größe, Lage und Beschaffenheit geeignet ist. (Auszug §2 (2))<br><br>Zubehör-Wohnungseigentum ist das mit dem Wohnungseigentum verbundene Recht, andere, mit dem Wohnungseigentumsobjekt baulich nicht verbundene Teile der Liegenschaft, wie etwa Keller- oder Dachbodenräume, Hausgärten oder Lagerplätze, ausschließlich zu nutzen. (Auszug §2 (3))<br><br>Allgemeine Teile der Liegenschaft sind solche, die der allgemeinen Benützung dienen oder deren Zweckbestimmung einer ausschließlichen Benützung entgegensteht. (Auszug §2 (4))<br><br>Der Nutzwert ist die Maßzahl, mit der der Wert eines Wohnungseigentumsobjekts im Verhältnis zu den Werten der anderen Wohnungseigentumsobjekte der Liegenschaft bezeichnet wird. Er ergibt sich aus der Nutzfläche des Objekts und aus Zuschlägen oder Abstrichen für werterhöhende oder wertvermindernde Eigenschaften desselben. (Auszug §2 (8))<br><br>Der Mindestanteil ist jener Miteigentumsanteil an der Liegenschaft, der zum Erwerb von Wohnungseigentum an einem Wohnungseigentumsobjekt erforderlich ist. Er entspricht dem Verhältnis des Nutzwerts des Objekts zur Summe der Nutzwerte aller Wohnungseigentumsobjekte der Liegenschaft. (Auszug §2 (9))<br><br>Der Nutzwert ist in einer ganzen Zahl auszudrücken, wobei Teilbeträge unter 0,5 abgerundet und ab 0,5 aufgerundet werden. Er ist aus der Nutzfläche und aus Zuschlägen oder Abstrichen für Umstände zu berechnen, die nach der Verkehrsauffassung den Wert des Wohnungseigentumsobjekts erhöhen oder vermindern, wie etwa dessen Zweckbestimmung, Stockwerkslage, Lage innerhalb eines Stockwerks oder dessen Ausstattung mit offenen Balkonen, Terrassen und Zubehörobjekten (Auszug §8 (1))<br><br>Zuschläge für die Ausstattung mit Zubehörobjekten sowie mit offenen Balkonen und Terrassen sind in einer ganzen Zahl auszudrücken; der Zuschlag ist jedoch mindestens mit der Zahl Eins anzusetzen. (Auszug §8 (2))<br><br>Die Wohnungsobjekte erhalten den Buchstaben &quot;W&quot; der Nummer vorangestellt. Die Kfz-Stellplätze erhalten den Buchstaben &quot;P&quot; der Nummer vorangestellt.<br>Bei den Zubehörobjekten sind die Keller mit einem vorangestellten &quot;K&quot; gekennzeichnet, die Gärten mit einem &quot;G&quot;.</p>', '', '2025-11-03 16:43:30', '2025-11-03 16:43:30'),
('112', '2', '16', '3.2', 'ERMITTLUNG DER NUTZWERTE – ZUBEHÖRBEWERTUNG', NULL, 'standard', '1', '0', '0', '0', '0', '1', '0', 'ERMITTLUNG DER NUTZWERTE - ZUBEHÖRBEWERTUNG', '<p>Es wird vorgeschlagen, die Nutzwerte wie folgt zu bestimmen:<br><br>Die Wohnung W07 ist eine Dreizimmerwohnung, liegt im ersten Obergeschoß und ihre Haupträume sind nach Westen orientiert. Diese Wohnung erhält den Regelnutzwert von 1,00.<br><br>Folgende Kriterien werden für die Nutzwertberechnung berücksichtigt:<br><br>Erdgeschoßlage:<br><br>Die Lage im Erdgeschoß führt zu einer Beeinträchtigung durch Einsehbarkeit von den direkt angrenzenden Allgemeinflächen (Zugänge, Wege). Weiters erfolgen Beeinträchtigungen durch den Geländeverlauf, wenn im Nahbereich der Einheit eine nach oben führenden Böschung die Aussicht beeinträchtigt und auch durch das auf dem Bauplatz befindliche Zweitgebäude.<br><br>Die Einheit W01 wird durch den direkt im Osten vorbeiführenden Zugangsbereich beeinträchtigt und um -2,5% abgewertet.<br><br>Die Einheit W02 wird durch die südlich bzw. südöstlich liegende Böschung sowie durch den Fußweg beeinträchtigt und um -5,0% abgewertet.<br><br>Die Einheit W03 orientiert sich mit dem Hauptraum direkt auf das nebenan errichtete Haus B, was an dieser Stelle drei oberirdische Geschoße aufweist. Diese Einheit wird daher um -5,0% abgewertet.<br><br>Die Wohnung W11 wird durch den direkt im Osten vorbeiführenden Zugangsbereich beeinträchtigt und um -2,5% abgewertet.<br><br>Die Wohneinheit W12 wird durch die südliche Böschung und im Osten durch den Zugangsweg beeinträchtigt und somit um -5,0% abgewertet.<br><br>Die Einheit W13 wird durch die im Süden und Westen angelegte Böschung beeinträchtigt und daher um -5,0% abgewertet.<br><br>Lage im letzten Geschoß:<br><br>Die Wohnungen im letzten Geschoß (Durch den Geländeverlauf betrifft das beim Haus A das 2. Obergeschoß und beim Haus B das 3.) werden aufgrund der günstigeren Aussichts- und Besonnungsmöglichkeit um 2,5% aufgewertet.<br><br>Außer die Wohnung W20: Hier ist durch die gute dreiseitige Orientierung nach Süden, Osten und Westen ein Zuschlag von insgesamt 5,0% gerechtfertigt.<br><br>KFZ-Abstellplätze:<br>Die Stellplätze in der Tiefgarage werden mit 55% des Regelnutzwertes bewertet.<br>Jene in der Tiefgarage, welche eine Übergröße aufweisen mit 50%.<br><br>Die Balkon- und Terrassenflächen werden mit 25% des Regelnutzwertes in Ansatz gebracht.<br><br>Hinweis: Einige Wohnungen werden insgesamt um 2,5% auf- bzw. abgewertet. Unter dem Punkt 3.30 Nutzwertberechnung wird dies für die einzelnen Wohnungen nachvollziehbar dargestellt. Hier wird der Faktor auf zwei Stellen gerundet angeschrieben, jedoch richtigerweise mit 97,5% bzw. 102,5% berechnet.<br><br>Bemerkung: Nach Rücksprache mit dem Auftraggeber (Freigabe am 29.09.2014) wurden folgende Flächen wie im aktuellen Außenanlagenplan (Eingang 25.09.2014, vom Architekten) dargestellt in Ansatz gebracht:<br>Die Terrasse W02 wurde nach Westen hin verschoben. Der Garten G02 wurde aufgrund des Fußweges verändert. Die Gärten der Wohnungen W12 und W13 werden in ihrem Flächenausmaß so wie in den Verkaufsunterlagen dargestellt in Ansatz gebracht.</p>', '', '2025-11-03 16:43:30', '2025-11-03 16:43:30'),
('113', '2', '17', '0', 'ZUBEHÖR', NULL, 'standard', '1', '0', '0', '0', '0', '1', '0', 'ZUBEHÖR', '<p>Die Gartenflächen werden mit 5% ihres Flächenausmaßes in Ansatz gebracht.<br><br>Die Kellerabteile (Lattenverschlag) werden mit 15% ihrer Fläche berechnet.</p>', '', '2025-11-03 16:43:30', '2025-11-03 16:43:30'),
('114', '2', '18', '3.21', 'TABELLE ZU + ABSCHLÄGE', NULL, 'nutzwerte', '1', '5', '0', '0', '1', '1', '0', '', '', '', '2025-11-03 16:43:30', '2025-11-03 16:43:30'),
('115', '2', '19', '3.3', 'NUTZWERTBERECHNUNG', NULL, 'nutzwerte', '1', '6', '0', '0', '0', '1', '0', '', '', '', '2025-11-03 16:43:30', '2025-11-03 16:43:30'),
('116', '2', '20', '3.4', 'ZUSAMMENSTELLUNG', NULL, 'nutzwerte', '1', '7', '0', '0', '0', '1', '0', '', '', '', '2025-11-03 16:43:30', '2025-11-03 16:43:30'),
('117', '2', '21', '3.41', 'DIGITALE SIGNATUR', NULL, 'nutzwerte', '1', '0', '0', '0', '0', '1', '0', '', '', '', '2025-11-03 16:43:30', '2025-11-03 16:43:30'),
('118', '2', '22', '3.5', 'ALLGEMEINFLÄCHEN', NULL, 'nutzwerte', '1', '4', '0', '0', '0', '1', '0', '', '', '', '2025-11-03 16:43:30', '2025-11-03 16:43:30'),
('119', '2', '23', '4', 'PARIFIZIERUNGSPLÄNE ', NULL, 'nutzwerte', '1', '0', '0', '0', '0', '1', '0', '', '', '', '2025-11-03 16:43:30', '2025-11-03 16:43:30'),
('120', '2', '24', '5', 'ANHANG', NULL, 'nutzwerte', '1', '0', '0', '0', '0', '1', '0', '', '', '', '2025-11-03 16:43:30', '2025-11-03 16:43:30'),
('121', '2', '25', '0', 'GRUNDBUCHAUSZUG ', NULL, 'nutzwerte', '1', '0', '0', '0', '0', '0', '0', '', '', '', '2025-11-03 16:43:30', '2025-11-03 16:43:30'),
('122', '2', '26', '0', 'BAUBESCHEID', NULL, 'nutzwerte', '1', '0', '0', '0', '0', '1', '0', '', '', '', '2025-11-03 16:43:30', '2025-11-03 16:43:30'),
('123', '2', '27', '0', 'HAUSTECHNISCHE BESCHREIBUNG', NULL, 'nutzwerte', '1', '0', '0', '0', '0', '1', '0', '', '', '', '2025-11-03 16:43:30', '2025-11-03 16:43:30'),
('124', '2', '28', '0', 'NUTZFLÄCHENERMITTLUNGEN', NULL, 'nutzwerte', '1', '0', '0', '0', '0', '1', '0', '', '', '', '2025-11-03 16:43:30', '2025-11-03 16:43:30'),
('125', '2', '29', '0', 'DECKBLATT', NULL, 'paragraph', '0', '0', '0', '0', '1', '0', '0', 'DECKBLATT', '<p>P ###GUTACHTEN_P_NR### WEG 2002</p>', '<p>###OFFIZIELLER_NAME###</p><p>EZ ###EINLAGEZAHL### des GB ###GRUNDBUCH###</p>', '2025-11-03 16:43:30', '2025-11-03 16:43:30'),
('126', '2', '30', '0', 'Tabelle § 6', NULL, 'paragraph', '0', '3', '0', '0', '1', '0', '0', 'PARAGRAPH 6', '<p>Es wird bestätigt, dass die Wohnanlage (Gst-Nr. ###GSTNR### In EZ ###EINLAGEZAHL###) folgende Einheiten umfasst, an welchen Wohnungseigentum begründet wird:<br>Grundlage ist die Einreichplanung mit dem Baubescheid Zl. ###BAUBESCHEID### <em>sowie die Werkplanung</em>.<br><br>XX Wohnungen (mit vorangestelltem &quot;W&quot;) samt Zubehör.<br>XX Kfz-Stellplätze in der Tiefgarage (mit vorangestelltem &quot;P&quot;)<br><br>Weitere XX Stellplätze in der Tiefgarage sowie XX freie Stellplätze verbleiben laut Widmung zur allgemeinen Benützung.</p>', '<p>Weiters wird bescheinigt, dass sich auf der Liegenschaft keine Wohnungen befinden, an denen nicht Wohnungseigentum begründet werden kann.<br>Die im folgenden aufgelisteten Teile der Liegenschaft dienen der allgemeinen Benützung oder haben eine Zweckbestimmung, die einer ausschließlichen Benützung entgegensteht.<br>Die Widmung als allgemein nutzbare Fläche erfolgte durch den Auftraggeber/Eigentümer.</p>', '2025-11-03 16:43:30', '2025-11-03 16:43:30'),
('127', '2', '31', '0', '§ 6 Teil 2', NULL, 'paragraph', '0', '0', '0', '0', '0', '0', '0', '', '', '', '2025-11-03 16:43:30', '2025-11-03 16:43:30'),
('128', '2', '32', '0', 'DIGITALE SIGNATUR', NULL, 'paragraph', '1', '0', '0', '0', '0', '0', '0', '', '', '', '2025-11-03 16:43:30', '2025-11-03 16:43:30');
"; ";
DB::unprepared($sql); DB::unprepared($sql);
+12 -13
View File
@@ -12,20 +12,19 @@ class TextblockSeeder extends Seeder
*/ */
public function run(): void public function run(): void
{ {
$sql = "INSERT INTO `textblocks` (`id`, `name`, `beschreibung`, `textblock`, `created_at`, `updated_at`) $sql = "INSERT INTO `textblocks` (`id`, `name`, `textblock`, `textblock2`, `created_at`, `updated_at`)
VALUES VALUES
('1', 'ZWECK UND GEGENSTAND DES GUTACHTENS', NULL, '<p>Ermittlung der Nutzwerte und Mindestanteile der Wohnungseigentumsobjekte der Liegenschaft EZ ###EINLAGEZAHL###, GB ###GRUNDBUCH###, zum Zwecke der Begründung von Wohnungseigentum im Sinne des Wohnungseigentumsgesetzes 2002 in der geltenden Fassung.<br><br>Ermittlung der Nutzwerte und Mindestanteile der Wohnungseigentumsobjekte der Liegenschaft EZ ###EINLAGEZAHL###, GB ###GRUNDBUCH###, zum Zwecke eines abweichenden Verteilungsschlüssels gemäß §16 Absatz 3 des WGG1979.<br>Dieses Gutachten ist nicht als Grundlage für die Begründung von Wohnungseigentum heranzuziehen.</p>', NULL, '2025-10-21 15:06:30'), ('1', 'ZWECK UND GEGENSTAND DES GUTACHTENS','<p>Ermittlung der Nutzwerte und Mindestanteile der Wohnungseigentumsobjekte der Liegenschaft EZ ###EINLAGEZAHL###, GB ###GRUNDBUCH###, zum Zwecke der Begründung von Wohnungseigentum im Sinne des Wohnungseigentumsgesetzes 2002 in der geltenden Fassung.<br><br>Ermittlung der Nutzwerte und Mindestanteile der Wohnungseigentumsobjekte der Liegenschaft EZ ###EINLAGEZAHL###, GB ###GRUNDBUCH###, zum Zwecke eines abweichenden Verteilungsschlüssels gemäß §16 Absatz 3 des WGG1979.<br>Dieses Gutachten ist nicht als Grundlage für die Begründung von Wohnungseigentum heranzuziehen.</p>', '', NULL, '2025-10-21 15:06:30'),
('2', 'ORTSBESICHTIGUNG', NULL, '<p>Am ###ORTSBESICHTIGUNG###</p>', NULL, NULL), ('2', 'ORTSBESICHTIGUNG', '<p>Am ###ORTSBESICHTIGUNG###</p>', '', NULL, NULL),
('3', 'UNTERLAGEN', NULL, '<table><tbody><tr><td rowspan=\"1\" colspan=\"1\"><p>Grundbuchsauszug:</p></td><td rowspan=\"1\" colspan=\"1\"><p>###EINLAGEZAHL###</p></td></tr><tr><td rowspan=\"1\" colspan=\"1\"><p>Baubescheid Zl.:</p></td><td rowspan=\"1\" colspan=\"1\"><p>###BAUBESCHEID###</p></td></tr><tr><td rowspan=\"1\" colspan=\"1\"><p>Planunterlagen:</p></td><td rowspan=\"1\" colspan=\"1\"><p>###PLANUNTERLAGEN###</p></td></tr></tbody></table><p>Auflistung Widmung Abstellplätze (als Anhang zum email vom XX.XX.XXXX, von nht)</p>', NULL, '2025-10-21 15:13:15'), ('3', 'UNTERLAGEN', '<table><tbody><tr><td rowspan=\"1\" colspan=\"1\"><p>Grundbuchsauszug:</p></td><td rowspan=\"1\" colspan=\"1\"><p>###EINLAGEZAHL###</p></td></tr><tr><td rowspan=\"1\" colspan=\"1\"><p>Baubescheid Zl.:</p></td><td rowspan=\"1\" colspan=\"1\"><p>###BAUBESCHEID###</p></td></tr><tr><td rowspan=\"1\" colspan=\"1\"><p>Planunterlagen:</p></td><td rowspan=\"1\" colspan=\"1\"><p>###PLANUNTERLAGEN###</p></td></tr></tbody></table>', '<p>Auflistung Widmung Abstellplätze (als Anhang zum email vom XX.XX.XXXX, von nht)</p>', NULL, '2025-11-03 15:30:45'),
('4', 'GRUNDBUCHSTAND', NULL, '<table><tbody><tr><td rowspan=\"1\" colspan=\"1\"><p>Liegenschaftsadresse</p></td><td rowspan=\"1\" colspan=\"1\"><p>###LIEGENSCHAFTSADRESSE###</p></td></tr><tr><td rowspan=\"1\" colspan=\"1\"><p>Grundbuch</p></td><td rowspan=\"1\" colspan=\"1\"><p>###GRUNDBUCH###</p></td></tr><tr><td rowspan=\"1\" colspan=\"1\"><p>Einlagezahl</p></td><td rowspan=\"1\" colspan=\"1\"><p>###EINLAGEZAHL###</p></td></tr><tr><td rowspan=\"1\" colspan=\"1\"><p>Grundstücksnummer</p></td><td rowspan=\"1\" colspan=\"1\"><p>###GSTNR###</p></td></tr><tr><td rowspan=\"1\" colspan=\"1\"><p>Bezirksgericht</p></td><td rowspan=\"1\" colspan=\"1\"><p>###BEZIRKSGERICHT###</p></td></tr></tbody></table>', NULL, '2025-10-21 15:11:19'), ('4', 'GRUNDBUCHSTAND', '<table><tbody><tr><td rowspan=\"1\" colspan=\"1\"><p>Liegenschaftsadresse</p></td><td rowspan=\"1\" colspan=\"1\"><p>###LIEGENSCHAFTSADRESSE###</p></td></tr><tr><td rowspan=\"1\" colspan=\"1\"><p>Grundbuch</p></td><td rowspan=\"1\" colspan=\"1\"><p>###GRUNDBUCH###</p></td></tr><tr><td rowspan=\"1\" colspan=\"1\"><p>Einlagezahl</p></td><td rowspan=\"1\" colspan=\"1\"><p>###EINLAGEZAHL###</p></td></tr><tr><td rowspan=\"1\" colspan=\"1\"><p>Grundstücksnummer</p></td><td rowspan=\"1\" colspan=\"1\"><p>###GSTNR###</p></td></tr><tr><td rowspan=\"1\" colspan=\"1\"><p>Bezirksgericht</p></td><td rowspan=\"1\" colspan=\"1\"><p>###BEZIRKSGERICHT###</p></td></tr></tbody></table>', '', NULL, '2025-10-21 15:11:19'),
('5', 'BESCHREIBUNG DER LIEGENSCHAFT', NULL, '<p>Auf der Liegenschaft EZ ###EINLAGEZAHL###, GB ###GRUNDBUCH### wurde durch den Baubescheid Zl. ###BAUBESCHEID### der Gemeinde ###BESCHEIDGEMEINDE### der Neubau einer Wohnanlage bewilligt. Der vorzitierte Baubewilligungsbescheid ist in Rechtskraft erwachsen.</p><p><br>Das gegenständliche &quot;Haus 7&quot; bildet den 4.Bauabschnitt der Wohnhausanlage &quot;Südtiroler Siedlung&quot; in Zams.</p><p>Aus städtebaulicher Sicht wird die typische, hauptsächlich aus Einzelhäusern bestehende Bebauungsstruktur des Ortsteils aufgenommen.<br>Die Wohngebäude sind als Vier- bzw. Fünfspänner mit eingeschobener Erschließungs- und Balkonstruktur konzipiert. Die Wohnbereiche sind in je zwei kompakten Kuben untergebracht. <br>Die an der Südwestseite eingeschobene und vorgelagerte Balkonstruktur besteht aus einer Metallrahmenkonstruktion mit eingelegten Bodenelementen aus Holz. <br><br>Die ersten drei  Baustufen beinhalten je zwei Baukörper mit zwölf bzw. fünfzehn Wohneinheiten. Die zugehörige Tiefgarage wird über eine einspurige Rampe im Norden erschlossen. <br><br>Die vierte Baustufe (&quot;Haus 7&quot;) beinhaltet 15 Wohneinheiten und liegt im Südwesten der Gesamtanlage,  wobei sich auch die Fahrradräume, Müllraum, Spielplatz und unterirdische Stellplätze im Bereich der ersten drei Baustufen befinden.<br><br>Freiparkplätze befinden sich nordwestlich des Haus 7 und bilden einen Teil der Allgemeinfläche.</p>', NULL, '2025-10-21 15:14:32'), ('5', 'BESCHREIBUNG DER LIEGENSCHAFT', '<p>Auf der Liegenschaft EZ ###EINLAGEZAHL###, GB ###GRUNDBUCH### wurde durch den Baubescheid Zl. ###BAUBESCHEID### der Gemeinde ###BESCHEIDGEMEINDE### der Neubau einer Wohnanlage bewilligt. Der vorzitierte Baubewilligungsbescheid ist in Rechtskraft erwachsen.</p><p><br>Das gegenständliche &quot;Haus 7&quot; bildet den 4.Bauabschnitt der Wohnhausanlage &quot;Südtiroler Siedlung&quot; in Zams.</p><p>Aus städtebaulicher Sicht wird die typische, hauptsächlich aus Einzelhäusern bestehende Bebauungsstruktur des Ortsteils aufgenommen.<br>Die Wohngebäude sind als Vier- bzw. Fünfspänner mit eingeschobener Erschließungs- und Balkonstruktur konzipiert. Die Wohnbereiche sind in je zwei kompakten Kuben untergebracht. <br>Die an der Südwestseite eingeschobene und vorgelagerte Balkonstruktur besteht aus einer Metallrahmenkonstruktion mit eingelegten Bodenelementen aus Holz. <br><br>Die ersten drei  Baustufen beinhalten je zwei Baukörper mit zwölf bzw. fünfzehn Wohneinheiten. Die zugehörige Tiefgarage wird über eine einspurige Rampe im Norden erschlossen. <br><br>Die vierte Baustufe (&quot;Haus 7&quot;) beinhaltet 15 Wohneinheiten und liegt im Südwesten der Gesamtanlage,  wobei sich auch die Fahrradräume, Müllraum, Spielplatz und unterirdische Stellplätze im Bereich der ersten drei Baustufen befinden.<br><br>Freiparkplätze befinden sich nordwestlich des Haus 7 und bilden einen Teil der Allgemeinfläche.</p>', '', NULL, '2025-10-21 15:14:32'),
('6', '§ 6 Teil 1', NULL, '<p>Es wird bestätigt, dass die Wohnanlage (Gst-Nr. ###GSTNR### In EZ ###EINLAGEZAHL###) folgende Einheiten umfasst, an welchen Wohnungseigentum begründet wird:<br>Grundlage ist die Einreichplanung mit dem Baubescheid Zl. ###BAUBESCHEID### <em>sowie die Werkplanung</em>.<br><br>XX Wohnungen (mit vorangestelltem &quot;W&quot;) samt Zubehör.<br>XX Kfz-Stellplätze in der Tiefgarage (mit vorangestelltem &quot;P&quot;)<br><br>Weitere XX Stellplätze in der Tiefgarage sowie XX freie Stellplätze verbleiben laut Widmung zur allgemeinen Benützung.</p>', NULL, '2025-10-21 15:14:46'), ('6', 'PARAGRAPH 6', '<p>Es wird bestätigt, dass die Wohnanlage (Gst-Nr. ###GSTNR### In EZ ###EINLAGEZAHL###) folgende Einheiten umfasst, an welchen Wohnungseigentum begründet wird:<br>Grundlage ist die Einreichplanung mit dem Baubescheid Zl. ###BAUBESCHEID### <em>sowie die Werkplanung</em>.<br><br>XX Wohnungen (mit vorangestelltem &quot;W&quot;) samt Zubehör.<br>XX Kfz-Stellplätze in der Tiefgarage (mit vorangestelltem &quot;P&quot;)<br><br>Weitere XX Stellplätze in der Tiefgarage sowie XX freie Stellplätze verbleiben laut Widmung zur allgemeinen Benützung.</p>', '<p>Weiters wird bescheinigt, dass sich auf der Liegenschaft keine Wohnungen befinden, an denen nicht Wohnungseigentum begründet werden kann.<br>Die im folgenden aufgelisteten Teile der Liegenschaft dienen der allgemeinen Benützung oder haben eine Zweckbestimmung, die einer ausschließlichen Benützung entgegensteht.<br>Die Widmung als allgemein nutzbare Fläche erfolgte durch den Auftraggeber/Eigentümer.</p>', NULL, '2025-10-21 15:14:46'),
('7', '§ 6 Teil 2', NULL, '<p>Weiters wird bescheinigt, dass sich auf der Liegenschaft keine Wohnungen befinden, an denen nicht Wohnungseigentum begründet werden kann.<br>Die im folgenden aufgelisteten Teile der Liegenschaft dienen der allgemeinen Benützung oder haben eine Zweckbestimmung, die einer ausschließlichen Benützung entgegensteht.<br>Die Widmung als allgemein nutzbare Fläche erfolgte durch den Auftraggeber/Eigentümer.</p>', NULL, '2025-10-21 15:14:49'), ('8', 'ALLGEMEINE GRUNDSÄTZE', '<p>Wohnungseigentum ist das dem Miteigentümer einer Liegenschaft oder einer Eigentümerpartnerschaft eingeräumte dingliche Recht, ein Wohnungseigentumsobjekt ausschließlich zu nutzen und allein darüber zu verfügen. (Auszug §2 (1))<br><br>Wohnungseigentumsobjekte sind Wohnungen, sonstige selbständige Räumlichkeiten und Abstellplätze für Kraftfahrzeuge (wohnungseigentumstaugliche Objekte), an denen Wohnungseigentum begründet wurde. (Auszug §2 (2))<br><br>Eine Wohnung ist ein baulich abgeschlossener, nach der Verkehrsauffassung selbständiger Teil eines Gebäudes, der nach seiner Art und Größe geeignet ist, der Befriedigung eines individuellen Wohnbedürfnisses von Menschen zu dienen. Eine sonstige selbständige Räumlichkeit ist ein baulich abgeschlossener, nach der Verkehrsauffassung selbständiger Teil eines Gebäudes, dem nach seiner Art und Größe eine erhebliche wirtschaftliche Bedeutung zukommt, ein Abstellplatz für ein Kraftfahrzeug ist eine - etwa durch Bodenmarkierung - deutlich abgegrenzte Bodenfläche, die ausschließlich zum Abstellen eines Kraftfahrzeugs gewidmet und dazu nach ihrer Größe, Lage und Beschaffenheit geeignet ist. (Auszug §2 (2))<br><br>Zubehör-Wohnungseigentum ist das mit dem Wohnungseigentum verbundene Recht, andere, mit dem Wohnungseigentumsobjekt baulich nicht verbundene Teile der Liegenschaft, wie etwa Keller- oder Dachbodenräume, Hausgärten oder Lagerplätze, ausschließlich zu nutzen. (Auszug §2 (3))<br><br>Allgemeine Teile der Liegenschaft sind solche, die der allgemeinen Benützung dienen oder deren Zweckbestimmung einer ausschließlichen Benützung entgegensteht. (Auszug §2 (4))<br><br>Der Nutzwert ist die Maßzahl, mit der der Wert eines Wohnungseigentumsobjekts im Verhältnis zu den Werten der anderen Wohnungseigentumsobjekte der Liegenschaft bezeichnet wird. Er ergibt sich aus der Nutzfläche des Objekts und aus Zuschlägen oder Abstrichen für werterhöhende oder wertvermindernde Eigenschaften desselben. (Auszug §2 (8))<br><br>Der Mindestanteil ist jener Miteigentumsanteil an der Liegenschaft, der zum Erwerb von Wohnungseigentum an einem Wohnungseigentumsobjekt erforderlich ist. Er entspricht dem Verhältnis des Nutzwerts des Objekts zur Summe der Nutzwerte aller Wohnungseigentumsobjekte der Liegenschaft. (Auszug §2 (9))<br><br>Der Nutzwert ist in einer ganzen Zahl auszudrücken, wobei Teilbeträge unter 0,5 abgerundet und ab 0,5 aufgerundet werden. Er ist aus der Nutzfläche und aus Zuschlägen oder Abstrichen für Umstände zu berechnen, die nach der Verkehrsauffassung den Wert des Wohnungseigentumsobjekts erhöhen oder vermindern, wie etwa dessen Zweckbestimmung, Stockwerkslage, Lage innerhalb eines Stockwerks oder dessen Ausstattung mit offenen Balkonen, Terrassen und Zubehörobjekten (Auszug §8 (1))<br><br>Zuschläge für die Ausstattung mit Zubehörobjekten sowie mit offenen Balkonen und Terrassen sind in einer ganzen Zahl auszudrücken; der Zuschlag ist jedoch mindestens mit der Zahl Eins anzusetzen. (Auszug §8 (2))<br><br>Die Wohnungsobjekte erhalten den Buchstaben &quot;W&quot; der Nummer vorangestellt. Die Kfz-Stellplätze erhalten den Buchstaben &quot;P&quot; der Nummer vorangestellt.<br>Bei den Zubehörobjekten sind die Keller mit einem vorangestellten &quot;K&quot; gekennzeichnet, die Gärten mit einem &quot;G&quot;.</p>', '', NULL, '2025-10-21 15:14:53'),
('8', 'ALLGEMEINE GRUNDSÄTZE', NULL, '<p>Wohnungseigentum ist das dem Miteigentümer einer Liegenschaft oder einer Eigentümerpartnerschaft eingeräumte dingliche Recht, ein Wohnungseigentumsobjekt ausschließlich zu nutzen und allein darüber zu verfügen. (Auszug §2 (1))<br><br>Wohnungseigentumsobjekte sind Wohnungen, sonstige selbständige Räumlichkeiten und Abstellplätze für Kraftfahrzeuge (wohnungseigentumstaugliche Objekte), an denen Wohnungseigentum begründet wurde. (Auszug §2 (2))<br><br>Eine Wohnung ist ein baulich abgeschlossener, nach der Verkehrsauffassung selbständiger Teil eines Gebäudes, der nach seiner Art und Größe geeignet ist, der Befriedigung eines individuellen Wohnbedürfnisses von Menschen zu dienen. Eine sonstige selbständige Räumlichkeit ist ein baulich abgeschlossener, nach der Verkehrsauffassung selbständiger Teil eines Gebäudes, dem nach seiner Art und Größe eine erhebliche wirtschaftliche Bedeutung zukommt, ein Abstellplatz für ein Kraftfahrzeug ist eine - etwa durch Bodenmarkierung - deutlich abgegrenzte Bodenfläche, die ausschließlich zum Abstellen eines Kraftfahrzeugs gewidmet und dazu nach ihrer Größe, Lage und Beschaffenheit geeignet ist. (Auszug §2 (2))<br><br>Zubehör-Wohnungseigentum ist das mit dem Wohnungseigentum verbundene Recht, andere, mit dem Wohnungseigentumsobjekt baulich nicht verbundene Teile der Liegenschaft, wie etwa Keller- oder Dachbodenräume, Hausgärten oder Lagerplätze, ausschließlich zu nutzen. (Auszug §2 (3))<br><br>Allgemeine Teile der Liegenschaft sind solche, die der allgemeinen Benützung dienen oder deren Zweckbestimmung einer ausschließlichen Benützung entgegensteht. (Auszug §2 (4))<br><br>Der Nutzwert ist die Maßzahl, mit der der Wert eines Wohnungseigentumsobjekts im Verhältnis zu den Werten der anderen Wohnungseigentumsobjekte der Liegenschaft bezeichnet wird. Er ergibt sich aus der Nutzfläche des Objekts und aus Zuschlägen oder Abstrichen für werterhöhende oder wertvermindernde Eigenschaften desselben. (Auszug §2 (8))<br><br>Der Mindestanteil ist jener Miteigentumsanteil an der Liegenschaft, der zum Erwerb von Wohnungseigentum an einem Wohnungseigentumsobjekt erforderlich ist. Er entspricht dem Verhältnis des Nutzwerts des Objekts zur Summe der Nutzwerte aller Wohnungseigentumsobjekte der Liegenschaft. (Auszug §2 (9))<br><br>Der Nutzwert ist in einer ganzen Zahl auszudrücken, wobei Teilbeträge unter 0,5 abgerundet und ab 0,5 aufgerundet werden. Er ist aus der Nutzfläche und aus Zuschlägen oder Abstrichen für Umstände zu berechnen, die nach der Verkehrsauffassung den Wert des Wohnungseigentumsobjekts erhöhen oder vermindern, wie etwa dessen Zweckbestimmung, Stockwerkslage, Lage innerhalb eines Stockwerks oder dessen Ausstattung mit offenen Balkonen, Terrassen und Zubehörobjekten (Auszug §8 (1))<br><br>Zuschläge für die Ausstattung mit Zubehörobjekten sowie mit offenen Balkonen und Terrassen sind in einer ganzen Zahl auszudrücken; der Zuschlag ist jedoch mindestens mit der Zahl Eins anzusetzen. (Auszug §8 (2))<br><br>Die Wohnungsobjekte erhalten den Buchstaben &quot;W&quot; der Nummer vorangestellt. Die Kfz-Stellplätze erhalten den Buchstaben &quot;P&quot; der Nummer vorangestellt.<br>Bei den Zubehörobjekten sind die Keller mit einem vorangestellten &quot;K&quot; gekennzeichnet, die Gärten mit einem &quot;G&quot;.</p>', NULL, '2025-10-21 15:14:53'), ('9', 'ERMITTLUNG DER NUTZWERTE - ZUBEHÖRBEWERTUNG', '<p>Es wird vorgeschlagen, die Nutzwerte wie folgt zu bestimmen:<br><br>Die Wohnung W07 ist eine Dreizimmerwohnung, liegt im ersten Obergeschoß und ihre Haupträume sind nach Westen orientiert. Diese Wohnung erhält den Regelnutzwert von 1,00.<br><br>Folgende Kriterien werden für die Nutzwertberechnung berücksichtigt:<br><br>Erdgeschoßlage:<br><br>Die Lage im Erdgeschoß führt zu einer Beeinträchtigung durch Einsehbarkeit von den direkt angrenzenden Allgemeinflächen (Zugänge, Wege). Weiters erfolgen Beeinträchtigungen durch den Geländeverlauf, wenn im Nahbereich der Einheit eine nach oben führenden Böschung die Aussicht beeinträchtigt und auch durch das auf dem Bauplatz befindliche Zweitgebäude.<br><br>Die Einheit W01 wird durch den direkt im Osten vorbeiführenden Zugangsbereich beeinträchtigt und um -2,5% abgewertet.<br><br>Die Einheit W02 wird durch die südlich bzw. südöstlich liegende Böschung sowie durch den Fußweg beeinträchtigt und um -5,0% abgewertet.<br><br>Die Einheit W03 orientiert sich mit dem Hauptraum direkt auf das nebenan errichtete Haus B, was an dieser Stelle drei oberirdische Geschoße aufweist. Diese Einheit wird daher um -5,0% abgewertet.<br><br>Die Wohnung W11 wird durch den direkt im Osten vorbeiführenden Zugangsbereich beeinträchtigt und um -2,5% abgewertet.<br><br>Die Wohneinheit W12 wird durch die südliche Böschung und im Osten durch den Zugangsweg beeinträchtigt und somit um -5,0% abgewertet.<br><br>Die Einheit W13 wird durch die im Süden und Westen angelegte Böschung beeinträchtigt und daher um -5,0% abgewertet.<br><br>Lage im letzten Geschoß:<br><br>Die Wohnungen im letzten Geschoß (Durch den Geländeverlauf betrifft das beim Haus A das 2. Obergeschoß und beim Haus B das 3.) werden aufgrund der günstigeren Aussichts- und Besonnungsmöglichkeit um 2,5% aufgewertet.<br><br>Außer die Wohnung W20: Hier ist durch die gute dreiseitige Orientierung nach Süden, Osten und Westen ein Zuschlag von insgesamt 5,0% gerechtfertigt.<br><br>KFZ-Abstellplätze:<br>Die Stellplätze in der Tiefgarage werden mit 55% des Regelnutzwertes bewertet.<br>Jene in der Tiefgarage, welche eine Übergröße aufweisen mit 50%.<br><br>Die Balkon- und Terrassenflächen werden mit 25% des Regelnutzwertes in Ansatz gebracht.<br><br>Hinweis: Einige Wohnungen werden insgesamt um 2,5% auf- bzw. abgewertet. Unter dem Punkt 3.30 Nutzwertberechnung wird dies für die einzelnen Wohnungen nachvollziehbar dargestellt. Hier wird der Faktor auf zwei Stellen gerundet angeschrieben, jedoch richtigerweise mit 97,5% bzw. 102,5% berechnet.<br><br>Bemerkung: Nach Rücksprache mit dem Auftraggeber (Freigabe am 29.09.2014) wurden folgende Flächen wie im aktuellen Außenanlagenplan (Eingang 25.09.2014, vom Architekten) dargestellt in Ansatz gebracht:<br>Die Terrasse W02 wurde nach Westen hin verschoben. Der Garten G02 wurde aufgrund des Fußweges verändert. Die Gärten der Wohnungen W12 und W13 werden in ihrem Flächenausmaß so wie in den Verkaufsunterlagen dargestellt in Ansatz gebracht.</p>', '', NULL, '2025-10-21 15:15:00'),
('9', 'ERMITTLUNG DER NUTZWERTE - ZUBEHÖRBEWERTUNG', NULL, '<p>Es wird vorgeschlagen, die Nutzwerte wie folgt zu bestimmen:<br><br>Die Wohnung W07 ist eine Dreizimmerwohnung, liegt im ersten Obergeschoß und ihre Haupträume sind nach Westen orientiert. Diese Wohnung erhält den Regelnutzwert von 1,00.<br><br>Folgende Kriterien werden für die Nutzwertberechnung berücksichtigt:<br><br>Erdgeschoßlage:<br><br>Die Lage im Erdgeschoß führt zu einer Beeinträchtigung durch Einsehbarkeit von den direkt angrenzenden Allgemeinflächen (Zugänge, Wege). Weiters erfolgen Beeinträchtigungen durch den Geländeverlauf, wenn im Nahbereich der Einheit eine nach oben führenden Böschung die Aussicht beeinträchtigt und auch durch das auf dem Bauplatz befindliche Zweitgebäude.<br><br>Die Einheit W01 wird durch den direkt im Osten vorbeiführenden Zugangsbereich beeinträchtigt und um -2,5% abgewertet.<br><br>Die Einheit W02 wird durch die südlich bzw. südöstlich liegende Böschung sowie durch den Fußweg beeinträchtigt und um -5,0% abgewertet.<br><br>Die Einheit W03 orientiert sich mit dem Hauptraum direkt auf das nebenan errichtete Haus B, was an dieser Stelle drei oberirdische Geschoße aufweist. Diese Einheit wird daher um -5,0% abgewertet.<br><br>Die Wohnung W11 wird durch den direkt im Osten vorbeiführenden Zugangsbereich beeinträchtigt und um -2,5% abgewertet.<br><br>Die Wohneinheit W12 wird durch die südliche Böschung und im Osten durch den Zugangsweg beeinträchtigt und somit um -5,0% abgewertet.<br><br>Die Einheit W13 wird durch die im Süden und Westen angelegte Böschung beeinträchtigt und daher um -5,0% abgewertet.<br><br>Lage im letzten Geschoß:<br><br>Die Wohnungen im letzten Geschoß (Durch den Geländeverlauf betrifft das beim Haus A das 2. Obergeschoß und beim Haus B das 3.) werden aufgrund der günstigeren Aussichts- und Besonnungsmöglichkeit um 2,5% aufgewertet.<br><br>Außer die Wohnung W20: Hier ist durch die gute dreiseitige Orientierung nach Süden, Osten und Westen ein Zuschlag von insgesamt 5,0% gerechtfertigt.<br><br>KFZ-Abstellplätze:<br>Die Stellplätze in der Tiefgarage werden mit 55% des Regelnutzwertes bewertet.<br>Jene in der Tiefgarage, welche eine Übergröße aufweisen mit 50%.<br><br>Die Balkon- und Terrassenflächen werden mit 25% des Regelnutzwertes in Ansatz gebracht.<br><br>Hinweis: Einige Wohnungen werden insgesamt um 2,5% auf- bzw. abgewertet. Unter dem Punkt 3.30 Nutzwertberechnung wird dies für die einzelnen Wohnungen nachvollziehbar dargestellt. Hier wird der Faktor auf zwei Stellen gerundet angeschrieben, jedoch richtigerweise mit 97,5% bzw. 102,5% berechnet.<br><br>Bemerkung: Nach Rücksprache mit dem Auftraggeber (Freigabe am 29.09.2014) wurden folgende Flächen wie im aktuellen Außenanlagenplan (Eingang 25.09.2014, vom Architekten) dargestellt in Ansatz gebracht:<br>Die Terrasse W02 wurde nach Westen hin verschoben. Der Garten G02 wurde aufgrund des Fußweges verändert. Die Gärten der Wohnungen W12 und W13 werden in ihrem Flächenausmaß so wie in den Verkaufsunterlagen dargestellt in Ansatz gebracht.</p>', NULL, '2025-10-21 15:15:00'), ('10', 'ZUBEHÖR', '<p>Die Gartenflächen werden mit 5% ihres Flächenausmaßes in Ansatz gebracht.<br><br>Die Kellerabteile (Lattenverschlag) werden mit 15% ihrer Fläche berechnet.</p>', '', NULL, '2025-10-21 15:15:04'),
('10', 'ZUBEHÖR', NULL, '<p>Die Gartenflächen werden mit 5% ihres Flächenausmaßes in Ansatz gebracht.<br><br>Die Kellerabteile (Lattenverschlag) werden mit 15% ihrer Fläche berechnet.</p>', NULL, '2025-10-21 15:15:04'), ('11', 'DECKBLATT', '<p>P ###GUTACHTEN_P_NR### WEG 2002</p>', '<p>###OFFIZIELLER_NAME###</p><p>EZ ###EINLAGEZAHL### des GB ###GRUNDBUCH###</p>', NULL, '2025-11-03 15:49:41'),
('11', 'DECKBLATT', NULL, '<p>P ###GUTACHTEN_P_NR### WEG 2002</p><p>EZ ###EINLAGEZAHL### des GB ###GRUNDBUCH###</p>', NULL, '2025-10-21 15:15:46'), ('12', 'EIGENER TEXTBLOCK', '<p>EIGENER TEXTBLOCK</p>', '', NULL, NULL);
('12', 'EIGENER TEXTBLOCK', NULL, '<p>EIGENER TEXTBLOCK</p>', NULL, NULL);
"; ";
DB::unprepared($sql); DB::unprepared($sql);
} }
+1 -1
View File
@@ -31,7 +31,7 @@ return [
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
*/ */
'nav.group' => 'Kunden', 'nav.group' => 'Benutzer',
'nav.role.icon' => 'heroicon-o-shield-check', 'nav.role.icon' => 'heroicon-o-shield-check',
'nav.role.label' => 'Rollen', 'nav.role.label' => 'Rollen',
'resource.label.role' => 'Rolle', 'resource.label.role' => 'Rolle',
+2 -2
View File
@@ -1,2 +1,2 @@
/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */ /*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-tracking:initial;--tw-duration:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-ease:initial;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-divide-x-reverse:0;--tw-content:"";--tw-outline-style:solid;--tw-space-x-reverse:0}}}@layer theme{:root,:host{--font-mono:var(--mono-font-family),ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-sky-400:oklch(74.6% .16 232.661);--color-gray-100:var(--gray-100);--color-gray-200:var(--gray-200);--color-gray-300:var(--gray-300);--color-gray-400:var(--gray-400);--color-gray-500:var(--gray-500);--color-gray-600:var(--gray-600);--color-gray-700:var(--gray-700);--color-gray-900:var(--gray-900);--color-gray-950:var(--gray-950);--color-black:#000;--color-white:#fff;--spacing:.25rem;--breakpoint-sm:40rem;--breakpoint-md:48rem;--breakpoint-lg:64rem;--breakpoint-xl:80rem;--breakpoint-2xl:96rem;--container-3xs:16rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--container-5xl:64rem;--container-6xl:72rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height:calc(1.5/1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25/1.875);--font-weight-thin:100;--font-weight-extralight:200;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-tighter:-.05em;--tracking-tight:-.025em;--leading-loose:2;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-family),ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--default-mono-font-family:var(--mono-font-family),ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-primary-400:var(--primary-400)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;heLine truncated @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-tracking:initial;--tw-duration:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-ease:initial;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-divide-x-reverse:0;--tw-content:"";--tw-outline-style:solid;--tw-space-x-reverse:0}}}@layer theme{:root,:host{--font-mono:var(--mono-font-family),ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-sky-400:oklch(74.6% .16 232.661);--color-gray-100:var(--gray-100);--color-gray-200:var(--gray-200);--color-gray-300:var(--gray-300);--color-gray-400:var(--gray-400);--color-gray-500:var(--gray-500);--color-gray-600:var(--gray-600);--color-gray-700:var(--gray-700);--color-gray-900:var(--gray-900);--color-gray-950:var(--gray-950);--color-black:#000;--color-white:#fff;--spacing:.25rem;--breakpoint-sm:40rem;--breakpoint-md:48rem;--breakpoint-lg:64rem;--breakpoint-xl:80rem;--breakpoint-2xl:96rem;--container-3xs:16rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--container-5xl:64rem;--container-6xl:72rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height:calc(1.5/1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25/1.875);--font-weight-thin:100;--font-weight-extralight:200;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-tighter:-.05em;--tracking-tight:-.025em;--leading-loose:2;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-family),ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--default-mono-font-family:var(--mono-font-family),ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-primary-400:var(--primary-400)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;heLine truncated
@@ -1 +1 @@
function c({livewireId:s}){return{areAllCheckboxesChecked:!1,checkboxListOptions:[],search:"",visibleCheckboxListOptions:[],init(){this.checkboxListOptions=Array.from(this.$root.querySelectorAll(".fi-fo-checkbox-list-option")),this.updateVisibleCheckboxListOptions(),this.$nextTick(()=>{this.checkIfAllCheckboxesAreChecked()}),Livewire.hook("commit",({component:e,commit:t,succeed:i,fail:o,respond:h})=>{i(({snapshot:r,effect:l})=>{this.$nextTick(()=>{e.id===s&&(this.checkboxListOptions=Array.from(this.$root.querySelectorAll(".fi-fo-checkbox-list-option")),this.updateVisibleCheckboxListOptions(),this.checkIfAllCheckboxesAreChecked())})})}),this.$watch("search",()=>{this.updateVisibleCheckboxListOptions(),this.checkIfAllCheckboxesAreChecked()})},checkIfAllCheckboxesAreChecked(){this.areAllCheckboxesChecked=this.visibleCheckboxListOptions.length===this.visibleCheckboxListOptions.filter(e=>e.querySelector("input[type=checkbox]:checked, input[type=checkbox]:disabled")).length},toggleAllCheckboxes(){this.checkIfAllCheckboxesAreChecked();let e=!this.areAllCheckboxesChecked;this.visibleCheckboxListOptions.forEach(t=>{let i=t.querySelector("input[type=checkbox]");i.disabled||(i.checked=e,i.dispatchEvent(new Event("change")))}),this.areAllCheckboxesChecked=e},updateVisibleCheckboxListOptions(){this.visibleCheckboxListOptions=this.checkboxListOptions.filter(e=>["",null,void 0].includes(this.search)||e.querySelector(".fi-fo-checkbox-list-option-label")?.innerText.toLowerCase().includes(this.search.toLowerCase())?!0:e.querySelector(".fi-fo-checkbox-list-option-description")?.innerText.toLowerCase().includes(this.search.toLowerCase()))}}}export{c as default}; function c({livewireId:s}){return{areAllCheckboxesChecked:!1,checkboxListOptions:[],search:"",visibleCheckboxListOptions:[],init(){this.checkboxListOptions=Array.from(this.$root.querySelectorAll(".fi-fo-checkbox-list-option")),this.updateVisibleCheckboxListOptions(),this.$nextTick(()=>{this.checkIfAllCheckboxesAreChecked()}),Livewire.hook("commit",({component:e,commit:t,succeed:i,fail:o,respond:h})=>{i(({snapshot:r,effect:l})=>{this.$nextTick(()=>{e.id===s&&(this.checkboxListOptions=Array.from(this.$root.querySelectorAll(".fi-fo-checkbox-list-option")),this.updateVisibleCheckboxListOptions(),this.checkIfAllCheckboxesAreChecked())})})}),this.$watch("search",()=>{this.updateVisibleCheckboxListOptions(),this.checkIfAllCheckboxesAreChecked()})},checkIfAllCheckboxesAreChecked(){this.areAllCheckboxesChecked=this.visibleCheckboxListOptions.length===this.visibleCheckboxListOptions.filter(e=>e.querySelector("input[type=checkbox]:checked, input[type=checkbox]:disabled")).length},toggleAllCheckboxes(){this.checkIfAllCheckboxesAreChecked();let e=!this.areAllCheckboxesChecked;this.visibleCheckboxListOptions.forEach(t=>{let i=t.querySelector("input[type=checkbox]");i.disabled||i.checked!==e&&(i.checked=e,i.dispatchEvent(new Event("change")))}),this.areAllCheckboxesChecked=e},updateVisibleCheckboxListOptions(){this.visibleCheckboxListOptions=this.checkboxListOptions.filter(e=>["",null,void 0].includes(this.search)||e.querySelector(".fi-fo-checkbox-list-option-label")?.innerText.toLowerCase().includes(this.search.toLowerCase())?!0:e.querySelector(".fi-fo-checkbox-list-option-description")?.innerText.toLowerCase().includes(this.search.toLowerCase()))}}}export{c as default};
@@ -1,21 +1,21 @@
var Gs=[],hh=[];(()=>{let O="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e<O.length;e++)(e%2?hh:Gs).push(t=t+O[e])})();function _g(O){if(O<768)return!1;for(let e=0,t=Gs.length;;){let i=e+t>>1;if(O<Gs[i])t=i;else if(O>=hh[i])e=i+1;else return!0;if(e==t)return!1}}function oh(O){return O>=127462&&O<=127487}var lh=8205;function fh(O,e,t=!0,i=!0){return(t?dh:Vg)(O,e,i)}function dh(O,e,t){if(e==O.length)return e;e&&uh(O.charCodeAt(e))&&Qh(O.charCodeAt(e-1))&&e--;let i=Cs(O,e);for(e+=ch(i);e<O.length;){let r=Cs(O,e);if(i==lh||r==lh||t&&_g(r))e+=ch(r),i=r;else if(oh(r)){let n=0,s=e-2;for(;s>=0&&oh(Cs(O,s));)n++,s-=2;if(n%2==0)break;e+=2}else break}return e}function Vg(O,e,t){for(;e>0;){let i=dh(O,e-2,t);if(i<e)return i;e--}return 0}function Cs(O,e){let t=O.charCodeAt(e);if(!Qh(t)||e+1==O.length)return t;let i=O.charCodeAt(e+1);return uh(i)?(t-55296<<10)+(i-56320)+65536:t}function uh(O){return O>=56320&&O<57344}function Qh(O){return O>=55296&&O<56320}function ch(O){return O<65536?1:2}var G=class O{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){[e,t]=IO(this,e,t);let r=[];return this.decompose(0,e,r,2),i.length&&i.decompose(0,i.length,r,3),this.decompose(t,this.length,r,1),LO.from(r,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=IO(this,e,t);let i=[];return this.decompose(e,t,i,0),LO.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),r=new uO(this),n=new uO(e);for(let s=t,a=t;;){if(r.next(s),n.next(s),s=0,r.lineBreak!=n.lineBreak||r.done!=n.done||r.value!=n.value)return!1;if(a+=r.value.length,r.done||a>=i)return!0}}iter(e=1){return new uO(this,e)}iterRange(e,t=this.length){return new Lr(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let r=this.line(e).from;i=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new Mr(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?O.empty:e.length<=32?new Le(e):LO.from(Le.split(e,[]))}},Le=class O extends G{constructor(e,t=qg(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,r){for(let n=0;;n++){let s=this.text[n],a=r+s.length;if((t?i:a)>=e)return new As(r,a,i,s);r=a+1,i++}}decompose(e,t,i,r){let n=e<=0&&t>=this.length?this:new O($h(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(r&1){let s=i.pop(),a=Ar(n.text,s.text.slice(),0,n.length);if(a.length<=32)i.push(new O(a,s.length+n.length));else{let o=a.length>>1;i.push(new O(a.slice(0,o)),new O(a.slice(o)))}}else i.push(n)}replace(e,t,i){if(!(i instanceof O))return super.replace(e,t,i);[e,t]=IO(this,e,t);let r=Ar(this.text,Ar(i.text,$h(this.text,0,e)),t),n=this.length+i.length-(t-e);return r.length<=32?new O(r,n):LO.from(O.split(r,[]),n)}sliceString(e,t=this.length,i=` var Gs=[],hh=[];(()=>{let O="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e<O.length;e++)(e%2?hh:Gs).push(t=t+O[e])})();function _g(O){if(O<768)return!1;for(let e=0,t=Gs.length;;){let i=e+t>>1;if(O<Gs[i])t=i;else if(O>=hh[i])e=i+1;else return!0;if(e==t)return!1}}function oh(O){return O>=127462&&O<=127487}var lh=8205;function fh(O,e,t=!0,i=!0){return(t?dh:Vg)(O,e,i)}function dh(O,e,t){if(e==O.length)return e;e&&uh(O.charCodeAt(e))&&Qh(O.charCodeAt(e-1))&&e--;let i=Cs(O,e);for(e+=ch(i);e<O.length;){let r=Cs(O,e);if(i==lh||r==lh||t&&_g(r))e+=ch(r),i=r;else if(oh(r)){let n=0,s=e-2;for(;s>=0&&oh(Cs(O,s));)n++,s-=2;if(n%2==0)break;e+=2}else break}return e}function Vg(O,e,t){for(;e>0;){let i=dh(O,e-2,t);if(i<e)return i;e--}return 0}function Cs(O,e){let t=O.charCodeAt(e);if(!Qh(t)||e+1==O.length)return t;let i=O.charCodeAt(e+1);return uh(i)?(t-55296<<10)+(i-56320)+65536:t}function uh(O){return O>=56320&&O<57344}function Qh(O){return O>=55296&&O<56320}function ch(O){return O<65536?1:2}var G=class O{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){[e,t]=BO(this,e,t);let r=[];return this.decompose(0,e,r,2),i.length&&i.decompose(0,i.length,r,3),this.decompose(t,this.length,r,1),MO.from(r,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=BO(this,e,t);let i=[];return this.decompose(e,t,i,0),MO.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),r=new uO(this),n=new uO(e);for(let s=t,a=t;;){if(r.next(s),n.next(s),s=0,r.lineBreak!=n.lineBreak||r.done!=n.done||r.value!=n.value)return!1;if(a+=r.value.length,r.done||a>=i)return!0}}iter(e=1){return new uO(this,e)}iterRange(e,t=this.length){return new Lr(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let r=this.line(e).from;i=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new Mr(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?O.empty:e.length<=32?new Le(e):MO.from(Le.split(e,[]))}},Le=class O extends G{constructor(e,t=qg(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,r){for(let n=0;;n++){let s=this.text[n],a=r+s.length;if((t?i:a)>=e)return new As(r,a,i,s);r=a+1,i++}}decompose(e,t,i,r){let n=e<=0&&t>=this.length?this:new O($h(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(r&1){let s=i.pop(),a=Ar(n.text,s.text.slice(),0,n.length);if(a.length<=32)i.push(new O(a,s.length+n.length));else{let o=a.length>>1;i.push(new O(a.slice(0,o)),new O(a.slice(o)))}}else i.push(n)}replace(e,t,i){if(!(i instanceof O))return super.replace(e,t,i);[e,t]=BO(this,e,t);let r=Ar(this.text,Ar(i.text,$h(this.text,0,e)),t),n=this.length+i.length-(t-e);return r.length<=32?new O(r,n):MO.from(O.split(r,[]),n)}sliceString(e,t=this.length,i=`
`){[e,t]=IO(this,e,t);let r="";for(let n=0,s=0;n<=t&&s<this.text.length;s++){let a=this.text[s],o=n+a.length;n>e&&s&&(r+=i),e<o&&t>n&&(r+=a.slice(Math.max(0,e-n),t-n)),n=o+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let i=[],r=-1;for(let n of e)i.push(n),r+=n.length+1,i.length==32&&(t.push(new O(i,r)),i=[],r=-1);return r>-1&&t.push(new O(i,r)),t}},LO=class O extends G{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,t,i,r){for(let n=0;;n++){let s=this.children[n],a=r+s.length,o=i+s.lines-1;if((t?o:a)>=e)return s.lineInner(e,t,i,r);r=a+1,i=o+1}}decompose(e,t,i,r){for(let n=0,s=0;s<=t&&n<this.children.length;n++){let a=this.children[n],o=s+a.length;if(e<=o&&t>=s){let c=r&((s<=e?1:0)|(o>=t?2:0));s>=e&&o<=t&&!c?i.push(a):a.decompose(e-s,t-s,i,c)}s=o+1}}replace(e,t,i){if([e,t]=IO(this,e,t),i.lines<this.lines)for(let r=0,n=0;r<this.children.length;r++){let s=this.children[r],a=n+s.length;if(e>=n&&t<=a){let o=s.replace(e-n,t-n,i),c=this.lines-s.lines+o.lines;if(o.lines<c>>4&&o.lines>c>>6){let l=this.children.slice();return l[r]=o,new O(l,this.length-(t-e)+i.length)}return super.replace(n,a,o)}n=a+1}return super.replace(e,t,i)}sliceString(e,t=this.length,i=` `){[e,t]=BO(this,e,t);let r="";for(let n=0,s=0;n<=t&&s<this.text.length;s++){let a=this.text[s],o=n+a.length;n>e&&s&&(r+=i),e<o&&t>n&&(r+=a.slice(Math.max(0,e-n),t-n)),n=o+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let i=[],r=-1;for(let n of e)i.push(n),r+=n.length+1,i.length==32&&(t.push(new O(i,r)),i=[],r=-1);return r>-1&&t.push(new O(i,r)),t}},MO=class O extends G{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,t,i,r){for(let n=0;;n++){let s=this.children[n],a=r+s.length,o=i+s.lines-1;if((t?o:a)>=e)return s.lineInner(e,t,i,r);r=a+1,i=o+1}}decompose(e,t,i,r){for(let n=0,s=0;s<=t&&n<this.children.length;n++){let a=this.children[n],o=s+a.length;if(e<=o&&t>=s){let l=r&((s<=e?1:0)|(o>=t?2:0));s>=e&&o<=t&&!l?i.push(a):a.decompose(e-s,t-s,i,l)}s=o+1}}replace(e,t,i){if([e,t]=BO(this,e,t),i.lines<this.lines)for(let r=0,n=0;r<this.children.length;r++){let s=this.children[r],a=n+s.length;if(e>=n&&t<=a){let o=s.replace(e-n,t-n,i),l=this.lines-s.lines+o.lines;if(o.lines<l>>4&&o.lines>l>>6){let c=this.children.slice();return c[r]=o,new O(c,this.length-(t-e)+i.length)}return super.replace(n,a,o)}n=a+1}return super.replace(e,t,i)}sliceString(e,t=this.length,i=`
`){[e,t]=IO(this,e,t);let r="";for(let n=0,s=0;n<this.children.length&&s<=t;n++){let a=this.children[n],o=s+a.length;s>e&&n&&(r+=i),e<o&&t>s&&(r+=a.sliceString(e-s,t-s,i)),s=o+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof O))return 0;let i=0,[r,n,s,a]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,n+=t){if(r==s||n==a)return i;let o=this.children[r],c=e.children[n];if(o!=c)return i+o.scanIdentical(c,t);i+=o.length+1}}static from(e,t=e.reduce((i,r)=>i+r.length+1,-1)){let i=0;for(let u of e)i+=u.lines;if(i<32){let u=[];for(let Q of e)Q.flatten(u);return new Le(u,t)}let r=Math.max(32,i>>5),n=r<<1,s=r>>1,a=[],o=0,c=-1,l=[];function h(u){let Q;if(u.lines>n&&u instanceof O)for(let $ of u.children)h($);else u.lines>s&&(o>s||!o)?(f(),a.push(u)):u instanceof Le&&o&&(Q=l[l.length-1])instanceof Le&&u.lines+Q.lines<=32?(o+=u.lines,c+=u.length+1,l[l.length-1]=new Le(Q.text.concat(u.text),Q.length+1+u.length)):(o+u.lines>r&&f(),o+=u.lines,c+=u.length+1,l.push(u))}function f(){o!=0&&(a.push(l.length==1?l[0]:O.from(l,c)),c=-1,o=l.length=0)}for(let u of e)h(u);return f(),a.length==1?a[0]:new O(a,t)}};G.empty=new Le([""],0);function qg(O){let e=-1;for(let t of O)e+=t.length+1;return e}function Ar(O,e,t=0,i=1e9){for(let r=0,n=0,s=!0;n<O.length&&r<=i;n++){let a=O[n],o=r+a.length;o>=t&&(o>i&&(a=a.slice(0,i-r)),r<t&&(a=a.slice(t-r)),s?(e[e.length-1]+=a,s=!1):e.push(a)),r=o+1}return e}function $h(O,e,t){return Ar(O,[""],e,t)}var uO=class{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof Le?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,r=this.nodes[i],n=this.offsets[i],s=n>>1,a=r instanceof Le?r.text.length:r.children.length;if(s==(t>0?a:0)){if(i==0)return this.done=!0,this.value="",this;t>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((n&1)==(t>0?0:1)){if(this.offsets[i]+=t,e==0)return this.lineBreak=!0,this.value=` `){[e,t]=BO(this,e,t);let r="";for(let n=0,s=0;n<this.children.length&&s<=t;n++){let a=this.children[n],o=s+a.length;s>e&&n&&(r+=i),e<o&&t>s&&(r+=a.sliceString(e-s,t-s,i)),s=o+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof O))return 0;let i=0,[r,n,s,a]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,n+=t){if(r==s||n==a)return i;let o=this.children[r],l=e.children[n];if(o!=l)return i+o.scanIdentical(l,t);i+=o.length+1}}static from(e,t=e.reduce((i,r)=>i+r.length+1,-1)){let i=0;for(let u of e)i+=u.lines;if(i<32){let u=[];for(let Q of e)Q.flatten(u);return new Le(u,t)}let r=Math.max(32,i>>5),n=r<<1,s=r>>1,a=[],o=0,l=-1,c=[];function h(u){let Q;if(u.lines>n&&u instanceof O)for(let $ of u.children)h($);else u.lines>s&&(o>s||!o)?(f(),a.push(u)):u instanceof Le&&o&&(Q=c[c.length-1])instanceof Le&&u.lines+Q.lines<=32?(o+=u.lines,l+=u.length+1,c[c.length-1]=new Le(Q.text.concat(u.text),Q.length+1+u.length)):(o+u.lines>r&&f(),o+=u.lines,l+=u.length+1,c.push(u))}function f(){o!=0&&(a.push(c.length==1?c[0]:O.from(c,l)),l=-1,o=c.length=0)}for(let u of e)h(u);return f(),a.length==1?a[0]:new O(a,t)}};G.empty=new Le([""],0);function qg(O){let e=-1;for(let t of O)e+=t.length+1;return e}function Ar(O,e,t=0,i=1e9){for(let r=0,n=0,s=!0;n<O.length&&r<=i;n++){let a=O[n],o=r+a.length;o>=t&&(o>i&&(a=a.slice(0,i-r)),r<t&&(a=a.slice(t-r)),s?(e[e.length-1]+=a,s=!1):e.push(a)),r=o+1}return e}function $h(O,e,t){return Ar(O,[""],e,t)}var uO=class{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof Le?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,r=this.nodes[i],n=this.offsets[i],s=n>>1,a=r instanceof Le?r.text.length:r.children.length;if(s==(t>0?a:0)){if(i==0)return this.done=!0,this.value="",this;t>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((n&1)==(t>0?0:1)){if(this.offsets[i]+=t,e==0)return this.lineBreak=!0,this.value=`
`,this;e--}else if(r instanceof Le){let o=r.text[s+(t<0?-1:0)];if(this.offsets[i]+=t,o.length>Math.max(0,e))return this.value=e==0?o:t>0?o.slice(e):o.slice(0,o.length-e),this;e-=o.length}else{let o=r.children[s+(t<0?-1:0)];e>o.length?(e-=o.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(o),this.offsets.push(t>0?1:(o instanceof Le?o.text.length:o.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}},Lr=class{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new uO(e,t>i?-1:1),this.pos=t>i?e.length:0,this.from=Math.min(t,i),this.to=Math.max(t,i)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let i=t<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=i?r:t<0?r.slice(r.length-i):r.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}},Mr=class{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:i,value:r}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}};typeof Symbol<"u"&&(G.prototype[Symbol.iterator]=function(){return this.iter()},uO.prototype[Symbol.iterator]=Lr.prototype[Symbol.iterator]=Mr.prototype[Symbol.iterator]=function(){return this});var As=class{constructor(e,t,i,r){this.from=e,this.to=t,this.number=i,this.text=r}get length(){return this.to-this.from}};function IO(O,e,t){return e=Math.max(0,Math.min(O.length,e)),[e,Math.max(e,Math.min(O.length,t))]}function Qe(O,e,t=!0,i=!0){return fh(O,e,t,i)}function zg(O){return O>=56320&&O<57344}function Wg(O){return O>=55296&&O<56320}function Se(O,e){let t=O.charCodeAt(e);if(!Wg(t)||e+1==O.length)return t;let i=O.charCodeAt(e+1);return zg(i)?(t-55296<<10)+(i-56320)+65536:t}function ki(O){return O<=65535?String.fromCharCode(O):(O-=65536,String.fromCharCode((O>>10)+55296,(O&1023)+56320))}function De(O){return O<65536?1:2}var Ls=/\r\n?|\n/,pe=(function(O){return O[O.Simple=0]="Simple",O[O.TrackDel=1]="TrackDel",O[O.TrackBefore=2]="TrackBefore",O[O.TrackAfter=3]="TrackAfter",O})(pe||(pe={})),Zt=class O{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t+1];e+=i<0?this.sections[t]:i}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,i=0,r=0;t<this.sections.length;){let n=this.sections[t++],s=this.sections[t++];s<0?(e(i,r,n),r+=n):r+=s,i+=n}}iterChangedRanges(e,t=!1){Ms(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let i=this.sections[t++],r=this.sections[t++];r<0?e.push(i,r):e.push(r,i)}return new O(e)}composeDesc(e){return this.empty?e:e.empty?this:Sh(this,e)}mapDesc(e,t=!1){return e.empty?this:Ds(this,e,t)}mapPos(e,t=-1,i=pe.Simple){let r=0,n=0;for(let s=0;s<this.sections.length;){let a=this.sections[s++],o=this.sections[s++],c=r+a;if(o<0){if(c>e)return n+(e-r);n+=a}else{if(i!=pe.Simple&&c>=e&&(i==pe.TrackDel&&r<e&&c>e||i==pe.TrackBefore&&r<e||i==pe.TrackAfter&&c>e))return null;if(c>e||c==e&&t<0&&!a)return e==r||t<0?n:n+o;n+=o}r=c}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return n}touchesRange(e,t=e){for(let i=0,r=0;i<this.sections.length&&r<=t;){let n=this.sections[i++],s=this.sections[i++],a=r+n;if(s>=0&&r<=t&&a>=e)return r<e&&a>t?"cover":!0;r=a}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let i=this.sections[t++],r=this.sections[t++];e+=(e?" ":"")+i+(r>=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new O(e)}static create(e){return new O(e)}},ve=class O extends Zt{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return Ms(this,(t,i,r,n,s)=>e=e.replace(r,r+(i-t),s),!1),e}mapDesc(e,t=!1){return Ds(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let r=0,n=0;r<t.length;r+=2){let s=t[r],a=t[r+1];if(a>=0){t[r]=a,t[r+1]=s;let o=r>>1;for(;i.length<o;)i.push(G.empty);i.push(s?e.slice(n,n+s):G.empty)}n+=s}return new O(t,i)}compose(e){return this.empty?e:e.empty?this:Sh(this,e,!0)}map(e,t=!1){return e.empty?this:Ds(this,e,t,!0)}iterChanges(e,t=!1){Ms(this,e,t)}get desc(){return Zt Line truncated `,this;e--}else if(r instanceof Le){let o=r.text[s+(t<0?-1:0)];if(this.offsets[i]+=t,o.length>Math.max(0,e))return this.value=e==0?o:t>0?o.slice(e):o.slice(0,o.length-e),this;e-=o.length}else{let o=r.children[s+(t<0?-1:0)];e>o.length?(e-=o.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(o),this.offsets.push(t>0?1:(o instanceof Le?o.text.length:o.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}},Lr=class{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new uO(e,t>i?-1:1),this.pos=t>i?e.length:0,this.from=Math.min(t,i),this.to=Math.max(t,i)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let i=t<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=i?r:t<0?r.slice(r.length-i):r.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}},Mr=class{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:i,value:r}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}};typeof Symbol<"u"&&(G.prototype[Symbol.iterator]=function(){return this.iter()},uO.prototype[Symbol.iterator]=Lr.prototype[Symbol.iterator]=Mr.prototype[Symbol.iterator]=function(){return this});var As=class{constructor(e,t,i,r){this.from=e,this.to=t,this.number=i,this.text=r}get length(){return this.to-this.from}};function BO(O,e,t){return e=Math.max(0,Math.min(O.length,e)),[e,Math.max(e,Math.min(O.length,t))]}function Qe(O,e,t=!0,i=!0){return fh(O,e,t,i)}function zg(O){return O>=56320&&O<57344}function Wg(O){return O>=55296&&O<56320}function Se(O,e){let t=O.charCodeAt(e);if(!Wg(t)||e+1==O.length)return t;let i=O.charCodeAt(e+1);return zg(i)?(t-55296<<10)+(i-56320)+65536:t}function ki(O){return O<=65535?String.fromCharCode(O):(O-=65536,String.fromCharCode((O>>10)+55296,(O&1023)+56320))}function De(O){return O<65536?1:2}var Ls=/\r\n?|\n/,pe=(function(O){return O[O.Simple=0]="Simple",O[O.TrackDel=1]="TrackDel",O[O.TrackBefore=2]="TrackBefore",O[O.TrackAfter=3]="TrackAfter",O})(pe||(pe={})),Zt=class O{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t+1];e+=i<0?this.sections[t]:i}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,i=0,r=0;t<this.sections.length;){let n=this.sections[t++],s=this.sections[t++];s<0?(e(i,r,n),r+=n):r+=s,i+=n}}iterChangedRanges(e,t=!1){Ms(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let i=this.sections[t++],r=this.sections[t++];r<0?e.push(i,r):e.push(r,i)}return new O(e)}composeDesc(e){return this.empty?e:e.empty?this:Sh(this,e)}mapDesc(e,t=!1){return e.empty?this:Ds(this,e,t)}mapPos(e,t=-1,i=pe.Simple){let r=0,n=0;for(let s=0;s<this.sections.length;){let a=this.sections[s++],o=this.sections[s++],l=r+a;if(o<0){if(l>e)return n+(e-r);n+=a}else{if(i!=pe.Simple&&l>=e&&(i==pe.TrackDel&&r<e&&l>e||i==pe.TrackBefore&&r<e||i==pe.TrackAfter&&l>e))return null;if(l>e||l==e&&t<0&&!a)return e==r||t<0?n:n+o;n+=o}r=l}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return n}touchesRange(e,t=e){for(let i=0,r=0;i<this.sections.length&&r<=t;){let n=this.sections[i++],s=this.sections[i++],a=r+n;if(s>=0&&r<=t&&a>=e)return r<e&&a>t?"cover":!0;r=a}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let i=this.sections[t++],r=this.sections[t++];e+=(e?" ":"")+i+(r>=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new O(e)}static create(e){return new O(e)}},ve=class O extends Zt{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return Ms(this,(t,i,r,n,s)=>e=e.replace(r,r+(i-t),s),!1),e}mapDesc(e,t=!1){return Ds(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let r=0,n=0;r<t.length;r+=2){let s=t[r],a=t[r+1];if(a>=0){t[r]=a,t[r+1]=s;let o=r>>1;for(;i.length<o;)i.push(G.empty);i.push(s?e.slice(n,n+s):G.empty)}n+=s}return new O(t,i)}compose(e){return this.empty?e:e.empty?this:Sh(this,e,!0)}map(e,t=!1){return e.empty?this:Ds(this,e,t,!0)}iterChanges(e,t=!1){Ms(this,e,t)}get desc(){return Zt Line truncated
`}get readOnly(){return this.facet(kh)}phrase(e,...t){for(let i of this.facet(O.phrases))if(Object.prototype.hasOwnProperty.call(i,e)){e=i[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(i,r)=>{if(r=="$")return"$";let n=+(r||1);return!n||n>t.length?i:t[n-1]})),e}languageDataAt(e,t,i=-1){let r=[];for(let n of this.facet(Th))for(let s of n(this,t,i))Object.prototype.hasOwnProperty.call(s,e)&&r.push(s[e]);return r}charCategorizer(e){return Dg(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:i,length:r}=this.doc.lineAt(e),n=this.charCategorizer(e),s=e-i,a=e-i;for(;s>0;){let o=Qe(t,s,!1);if(n(t.slice(o,s))!=J.Word)break;s=o}for(;a<r;){let o=Qe(t,a);if(n(t.slice(a,o))!=J.Word)break;a=o}return s==a?null:P.range(s+i,a+i)}};M.allowMultipleSelections=Bs;M.tabSize=v.define({combine:O=>O.length?O[0]:4});M.lineSeparator=yh;M.readOnly=kh;M.phrases=v.define({compare(O,e){let t=Object.keys(O),i=Object.keys(e);return t.length==i.length&&t.every(r=>O[r]==e[r])}});M.languageData=Th;M.changeFilter=bh;M.transactionFilter=xh;M.transactionExtender=wh;BO.reconfigure=V.define();function xe(O,e,t={}){let i={};for(let r of O)for(let n of Object.keys(r)){let s=r[n],a=i[n];if(a===void 0)i[n]=s;else if(!(a===s||s===void 0))if(Object.hasOwnProperty.call(t,n))i[n]=t[n](a,s);else throw new Error("Config merge conflict for field "+n)}for(let r in e)i[r]===void 0&&(i[r]=e[r]);return i}var ot=class{eq(e){return this==e}range(e,t=e){return xi.create(e,t,this)}};ot.prototype.startSide=ot.prototype.endSide=0;ot.prototype.point=!1;ot.prototype.mapMode=pe.TrackDel;var xi=class O{constructor(e,t,i){this.from=e,this.to=t,this.value=i}static create(e,t,i){return new O(e,t,i)}};function Js(O,e){return O.from-e.from||O.value.startSide-e.value.startSide}var ea=class O{constructor(e,t,i,r){this.from=e,this.to=t,this.value=i,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,t,i,r=0){let n=i?this.to:this.from;for(let s=r,a=n.length;;){if(s==a)return s;let o=s+a>>1,c=n[o]-e||(i?this.value[o].endSide:this.value[o].startSide)-t;if(o==s)return c>=0?s:a;c>=0?a=o:s=o+1}}between(e,t,i,r){for(let n=this.findIndex(t,-1e9,!0),s=this.findIndex(i,1e9,!1,n);n<s;n++)if(r(this.from[n]+e,this.to[n]+e,this.value[n])===!1)return!1}map(e,t){let i=[],r=[],n=[],s=-1,a=-1;for(let o=0;o<this.value.length;o++){let c=this.value[o],l=this.from[o]+e,h=this.to[o]+e,f,u;if(l==h){let Q=t.mapPos(l,c.startSide,c.mapMode);if(Q==null||(f=u=Q,c.startSide!=c.endSide&&(u=t.mapPos(l,c.endSide),u<f)))continue}else if(f=t.mapPos(l,c.startSide),u=t.mapPos(h,c.endSide),f>u||f==u&&c.startSide>0&&c.endSide<=0)continue;(u-f||c.endSide-c.startSide)<0||(s<0&&(s=f),c.point&&(a=Math.max(a,u-f)),i.push(c),r.push(f-s),n.push(u-s))}return{mapped:i.length?new O(r,n,i,a):null,pos:s}}},F=class O{constructor(e,t,i,r){this.chunkPos=e,this.chunk=t,this.nextLayer=i,this.maxPoint=r}static create(e,t,i,r){return new O(e,t,i,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:i=!1,filterFrom:r=0,filterTo:n=this.length}=e,s=e.filter;if(t.length==0&&!s)return this;if(i&&(t=t.slice().sort(Js)),this.isEmpty)return t.length?O.of(t):this;let a=new Nr(this,null,-1).goto(0),o=0,c=[],l=new Me;for(;a.value||o<t.length;)if(o<t.length&&(a.from-t[o].from||a.startSide-t[o].value.startSide)>=0){let h=t[o++];l.addInner(h.from,h.to,h.value)||c.push(h)}else a.rangeIndex==1&&a.chunkIndex<this.chunk.length&&(o==t.length||this.chunkEnd(a.chunkIndex)<t[o].from)&&(!s||r>this.chunkEnd(a.chunkIndex)||n<this.chunkPos[a.chunkIndex])&&l.addChunk(this.chunkPos[a.chunkIndex],this.chunk[a.chunkIndex])?a.nextChunk():((!s||r>a.to||n<a.from||s(a.from,a.to,a.value))&&(l.addInner(a.from,a.to,a.value)||c.push(xi.create(a.from,a.to,a.value))),a.next());return l.finishInner(this.nextLayer.isEmpty&&!c.length?O.empty:this.nextLayer.update({add:c,filter:s,filterFrom:r,filterTo:n}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],i=[],r=-1;for(let s=0;s<this.chunk.length;s++){let a=this.chunkPos[s],o=this.chunk[s],c=e.touchesRange(a,a+o.length);if(c===!1)r=Math.max(r,o.maxPoint),t.push(o),i.push(e.mapPos(a));else if(c===!0){let{mapped:l,pos:h}=o.map(a,e);l&&(r=Math.max(r,l.maxPoint),t.push(l),i.push(h))}}let n=this.nextLayer.map(e);return t.length==0?n:new O(i,t,n||O.empty,r)}between(e,t,i){if(!this.isEmpty){for(let r=0;r<this.chunk.length;r++){let n=this.chunkPos[r],s=this.chunk[r];if(t>=n&&e<=n+s.length&&s.between(n,e-n,t-n,i)===!1)return}this.nextLayer.between(e,t,i)}}iter(e=0){return wi.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return wi.from(e).goto(t)}static compare(e,t,i,r,n=-1){let s=e.filter(h=>h.maxPoint>0||!h.isEmpty&&h.maxPoint>=n),a=t.filter(h=>h.maxPoint>0||!h.isEmpty&&h.maxPoint>=n),o=mh(s,a,i),c=new dO Line truncated `}get readOnly(){return this.facet(kh)}phrase(e,...t){for(let i of this.facet(O.phrases))if(Object.prototype.hasOwnProperty.call(i,e)){e=i[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(i,r)=>{if(r=="$")return"$";let n=+(r||1);return!n||n>t.length?i:t[n-1]})),e}languageDataAt(e,t,i=-1){let r=[];for(let n of this.facet(Th))for(let s of n(this,t,i))Object.prototype.hasOwnProperty.call(s,e)&&r.push(s[e]);return r}charCategorizer(e){return Dg(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:i,length:r}=this.doc.lineAt(e),n=this.charCategorizer(e),s=e-i,a=e-i;for(;s>0;){let o=Qe(t,s,!1);if(n(t.slice(o,s))!=J.Word)break;s=o}for(;a<r;){let o=Qe(t,a);if(n(t.slice(a,o))!=J.Word)break;a=o}return s==a?null:S.range(s+i,a+i)}};M.allowMultipleSelections=Bs;M.tabSize=v.define({combine:O=>O.length?O[0]:4});M.lineSeparator=yh;M.readOnly=kh;M.phrases=v.define({compare(O,e){let t=Object.keys(O),i=Object.keys(e);return t.length==i.length&&t.every(r=>O[r]==e[r])}});M.languageData=Th;M.changeFilter=bh;M.transactionFilter=xh;M.transactionExtender=wh;NO.reconfigure=V.define();function xe(O,e,t={}){let i={};for(let r of O)for(let n of Object.keys(r)){let s=r[n],a=i[n];if(a===void 0)i[n]=s;else if(!(a===s||s===void 0))if(Object.hasOwnProperty.call(t,n))i[n]=t[n](a,s);else throw new Error("Config merge conflict for field "+n)}for(let r in e)i[r]===void 0&&(i[r]=e[r]);return i}var ot=class{eq(e){return this==e}range(e,t=e){return xi.create(e,t,this)}};ot.prototype.startSide=ot.prototype.endSide=0;ot.prototype.point=!1;ot.prototype.mapMode=pe.TrackDel;var xi=class O{constructor(e,t,i){this.from=e,this.to=t,this.value=i}static create(e,t,i){return new O(e,t,i)}};function Js(O,e){return O.from-e.from||O.value.startSide-e.value.startSide}var ea=class O{constructor(e,t,i,r){this.from=e,this.to=t,this.value=i,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,t,i,r=0){let n=i?this.to:this.from;for(let s=r,a=n.length;;){if(s==a)return s;let o=s+a>>1,l=n[o]-e||(i?this.value[o].endSide:this.value[o].startSide)-t;if(o==s)return l>=0?s:a;l>=0?a=o:s=o+1}}between(e,t,i,r){for(let n=this.findIndex(t,-1e9,!0),s=this.findIndex(i,1e9,!1,n);n<s;n++)if(r(this.from[n]+e,this.to[n]+e,this.value[n])===!1)return!1}map(e,t){let i=[],r=[],n=[],s=-1,a=-1;for(let o=0;o<this.value.length;o++){let l=this.value[o],c=this.from[o]+e,h=this.to[o]+e,f,u;if(c==h){let Q=t.mapPos(c,l.startSide,l.mapMode);if(Q==null||(f=u=Q,l.startSide!=l.endSide&&(u=t.mapPos(c,l.endSide),u<f)))continue}else if(f=t.mapPos(c,l.startSide),u=t.mapPos(h,l.endSide),f>u||f==u&&l.startSide>0&&l.endSide<=0)continue;(u-f||l.endSide-l.startSide)<0||(s<0&&(s=f),l.point&&(a=Math.max(a,u-f)),i.push(l),r.push(f-s),n.push(u-s))}return{mapped:i.length?new O(r,n,i,a):null,pos:s}}},F=class O{constructor(e,t,i,r){this.chunkPos=e,this.chunk=t,this.nextLayer=i,this.maxPoint=r}static create(e,t,i,r){return new O(e,t,i,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:i=!1,filterFrom:r=0,filterTo:n=this.length}=e,s=e.filter;if(t.length==0&&!s)return this;if(i&&(t=t.slice().sort(Js)),this.isEmpty)return t.length?O.of(t):this;let a=new Nr(this,null,-1).goto(0),o=0,l=[],c=new Me;for(;a.value||o<t.length;)if(o<t.length&&(a.from-t[o].from||a.startSide-t[o].value.startSide)>=0){let h=t[o++];c.addInner(h.from,h.to,h.value)||l.push(h)}else a.rangeIndex==1&&a.chunkIndex<this.chunk.length&&(o==t.length||this.chunkEnd(a.chunkIndex)<t[o].from)&&(!s||r>this.chunkEnd(a.chunkIndex)||n<this.chunkPos[a.chunkIndex])&&c.addChunk(this.chunkPos[a.chunkIndex],this.chunk[a.chunkIndex])?a.nextChunk():((!s||r>a.to||n<a.from||s(a.from,a.to,a.value))&&(c.addInner(a.from,a.to,a.value)||l.push(xi.create(a.from,a.to,a.value))),a.next());return c.finishInner(this.nextLayer.isEmpty&&!l.length?O.empty:this.nextLayer.update({add:l,filter:s,filterFrom:r,filterTo:n}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],i=[],r=-1;for(let s=0;s<this.chunk.length;s++){let a=this.chunkPos[s],o=this.chunk[s],l=e.touchesRange(a,a+o.length);if(l===!1)r=Math.max(r,o.maxPoint),t.push(o),i.push(e.mapPos(a));else if(l===!0){let{mapped:c,pos:h}=o.map(a,e);c&&(r=Math.max(r,c.maxPoint),t.push(c),i.push(h))}}let n=this.nextLayer.map(e);return t.length==0?n:new O(i,t,n||O.empty,r)}between(e,t,i){if(!this.isEmpty){for(let r=0;r<this.chunk.length;r++){let n=this.chunkPos[r],s=this.chunk[r];if(t>=n&&e<=n+s.length&&s.between(n,e-n,t-n,i)===!1)return}this.nextLayer.between(e,t,i)}}iter(e=0){return wi.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return wi.from(e).goto(t)}static compare(e,t,i,r,n=-1){let s=e.filter(h=>h.maxPoint>0||!h.isEmpty&&h.maxPoint>=n),a=t.filter(h=>h.maxPoint>0||!h.isEmpty&&h.maxPoint>=n),o=mh(s,a,i),l=new dO Line truncated
`)}static newName(){let e=Rh[Zh]||1;return Rh[Zh]=e+1,"\u037C"+e.toString(36)}static mount(e,t,i){let r=e[ra],n=i&&i.nonce;r?n&&r.setNonce(n):r=new na(e,n),r.mount(Array.isArray(t)?t:[t],e)}},_h=new Map,na=class{constructor(e,t){let i=e.ownerDocument||e,r=i.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let n=_h.get(i);if(n)return e[ra]=n;this.sheet=new r.CSSStyleSheet,_h.set(i,this)}else this.styleTag=i.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[ra]=this}mount(e,t){let i=this.sheet,r=0,n=0;for(let s=0;s<e.length;s++){let a=e[s],o=this.modules.indexOf(a);if(o<n&&o>-1&&(this.modules.splice(o,1),n--,o=-1),o==-1){if(this.modules.splice(n++,0,a),i)for(let c=0;c<a.rules.length;c++)i.insertRule(a.rules[c],r++)}else{for(;n<o;)r+=this.modules[n++].rules.length;r+=a.rules.length,n++}}if(i)t.adoptedStyleSheets.indexOf(this.sheet)<0&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{let s="";for(let o=0;o<this.modules.length;o++)s+=this.modules[o].getRules()+` `)}static newName(){let e=Rh[Zh]||1;return Rh[Zh]=e+1,"\u037C"+e.toString(36)}static mount(e,t,i){let r=e[ra],n=i&&i.nonce;r?n&&r.setNonce(n):r=new na(e,n),r.mount(Array.isArray(t)?t:[t],e)}},_h=new Map,na=class{constructor(e,t){let i=e.ownerDocument||e,r=i.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let n=_h.get(i);if(n)return e[ra]=n;this.sheet=new r.CSSStyleSheet,_h.set(i,this)}else this.styleTag=i.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[ra]=this}mount(e,t){let i=this.sheet,r=0,n=0;for(let s=0;s<e.length;s++){let a=e[s],o=this.modules.indexOf(a);if(o<n&&o>-1&&(this.modules.splice(o,1),n--,o=-1),o==-1){if(this.modules.splice(n++,0,a),i)for(let l=0;l<a.rules.length;l++)i.insertRule(a.rules[l],r++)}else{for(;n<o;)r+=this.modules[n++].rules.length;r+=a.rules.length,n++}}if(i)t.adoptedStyleSheets.indexOf(this.sheet)<0&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{let s="";for(let o=0;o<this.modules.length;o++)s+=this.modules[o].getRules()+`
`;this.styleTag.textContent=s;let a=t.head||t;this.styleTag.parentNode!=a&&a.insertBefore(this.styleTag,a.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}};var Rt={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},NO={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Bg=typeof navigator<"u"&&/Mac/.test(navigator.platform),Ng=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for($e=0;$e<10;$e++)Rt[48+$e]=Rt[96+$e]=String($e);var $e;for($e=1;$e<=24;$e++)Rt[$e+111]="F"+$e;var $e;for($e=65;$e<=90;$e++)Rt[$e]=String.fromCharCode($e+32),NO[$e]=String.fromCharCode($e);var $e;for(Hr in Rt)NO.hasOwnProperty(Hr)||(NO[Hr]=Rt[Hr]);var Hr;function Vh(O){var e=Bg&&O.metaKey&&O.shiftKey&&!O.ctrlKey&&!O.altKey||Ng&&O.shiftKey&&O.key&&O.key.length==1||O.key=="Unidentified",t=!e&&O.key||(O.shiftKey?NO:Rt)[O.keyCode]||O.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}function B(){var O=arguments[0];typeof O=="string"&&(O=document.createElement(O));var e=1,t=arguments[1];if(t&&typeof t=="object"&&t.nodeType==null&&!Array.isArray(t)){for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var r=t[i];typeof r=="string"?O.setAttribute(i,r):r!=null&&(O[i]=r)}e++}for(;e<arguments.length;e++)qh(O,arguments[e]);return O}function qh(O,e){if(typeof e=="string")O.appendChild(document.createTextNode(e));else if(e!=null)if(e.nodeType!=null)O.appendChild(e);else if(Array.isArray(e))for(var t=0;t<e.length;t++)qh(O,e[t]);else throw new RangeError("Unsupported child node: "+e)}var Ze=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},da=typeof document<"u"?document:{documentElement:{style:{}}},ua=/Edge\/(\d+)/.exec(Ze.userAgent),bf=/MSIE \d/.test(Ze.userAgent),Qa=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ze.userAgent),vn=!!(bf||Qa||ua),zh=!vn&&/gecko\/(\d+)/i.test(Ze.userAgent),sa=!vn&&/Chrome\/(\d+)/.exec(Ze.userAgent),Wh="webkitFontSmoothing"in da.documentElement.style,$a=!vn&&/Apple Computer/.test(Ze.vendor),Uh=$a&&(/Mobile\/\w+/.test(Ze.userAgent)||Ze.maxTouchPoints>2),Y={mac:Uh||/Mac/.test(Ze.platform),windows:/Win/.test(Ze.platform),linux:/Linux|X11/.test(Ze.platform),ie:vn,ie_version:bf?da.documentMode||6:Qa?+Qa[1]:ua?+ua[1]:0,gecko:zh,gecko_version:zh?+(/Firefox\/(\d+)/.exec(Ze.userAgent)||[0,0])[1]:0,chrome:!!sa,chrome_version:sa?+sa[1]:0,ios:Uh,android:/Android\b/.test(Ze.userAgent),webkit:Wh,webkit_version:Wh?+(/\bAppleWebKit\/(\d+)/.exec(Ze.userAgent)||[0,0])[1]:0,safari:$a,safari_version:$a?+(/\bVersion\/(\d+(\.\d+)?)/.exec(Ze.userAgent)||[0,0])[1]:0,tabSize:da.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};function Ei(O){let e;return O.nodeType==11?e=O.getSelection?O:O.ownerDocument:e=O,e.getSelection()}function pa(O,e){return e?O==e||O.contains(e.nodeType!=1?e.parentNode:e):!1}function on(O,e){if(!e.anchorNode)return!1;try{return pa(O,e.anchorNode)}catch{return!1}}function Ai(O){return O.nodeType==3?gO(O,0,O.nodeValue.length).getClientRects():O.nodeType==1?O.getClientRects():[]}function Vi(O,e,t,i){return t?jh(O,e,t,i,-1)||jh(O,e,t,i,1):!1}function mO(O){for(var e=0;;e++)if(O=O.previousSibling,!O)return e}function un(O){return O.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(O.nodeName)}function jh(O,e,t,i,r){for(;;){if(O==t&&e==i)return!0;if(e==(r<0?0:St(O))){if(O.nodeName=="DIV")return!1;let n=O.parentNode;if(!n||n.nodeType!=1)return!1;e=mO(O)+(r<0?0:1),O=n}else if(O.nodeType==1){if(O=O.childNodes[e+(r<0?-1:0)],O.nodeType==1&&O.contentEditable=="false")return!1;e=r<0?St(O):0}else return!1}}function St(O){return O.nodeType==3?O.nodeValue.length:O.childNodes.length}function Yn(O,e){let t=e?O.left:O.right;return{left:t,right:t,top:O.top,bottom:O.bottom}}function Fg(O){let e=O.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:O.innerWidth,top:0,bottom:O.innerHeight}}function xf(O,e){let t=e.width/O.offsetWidth,i=e.height/O.offsetHeight;return(t>.995&&t<1.005||!isFinite(t)||Math.abs(e.width-O.offsetWidth)<1)&&(t=1),(i>.995&&i<1.005||!isFinite(i)||Math.abs(e.height-O.offsetHeight)<1)&&(i=1),{scaleX:t,scaleY:i}}function Hg(O,e,t,i,r,n,s,a){let o=O.ownerDocument,c=o.defaLine truncated `;this.styleTag.textContent=s;let a=t.head||t;this.styleTag.parentNode!=a&&a.insertBefore(this.styleTag,a.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}};var Rt={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},FO={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Bg=typeof navigator<"u"&&/Mac/.test(navigator.platform),Ng=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for($e=0;$e<10;$e++)Rt[48+$e]=Rt[96+$e]=String($e);var $e;for($e=1;$e<=24;$e++)Rt[$e+111]="F"+$e;var $e;for($e=65;$e<=90;$e++)Rt[$e]=String.fromCharCode($e+32),FO[$e]=String.fromCharCode($e);var $e;for(Hr in Rt)FO.hasOwnProperty(Hr)||(FO[Hr]=Rt[Hr]);var Hr;function Vh(O){var e=Bg&&O.metaKey&&O.shiftKey&&!O.ctrlKey&&!O.altKey||Ng&&O.shiftKey&&O.key&&O.key.length==1||O.key=="Unidentified",t=!e&&O.key||(O.shiftKey?FO:Rt)[O.keyCode]||O.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}function B(){var O=arguments[0];typeof O=="string"&&(O=document.createElement(O));var e=1,t=arguments[1];if(t&&typeof t=="object"&&t.nodeType==null&&!Array.isArray(t)){for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var r=t[i];typeof r=="string"?O.setAttribute(i,r):r!=null&&(O[i]=r)}e++}for(;e<arguments.length;e++)qh(O,arguments[e]);return O}function qh(O,e){if(typeof e=="string")O.appendChild(document.createTextNode(e));else if(e!=null)if(e.nodeType!=null)O.appendChild(e);else if(Array.isArray(e))for(var t=0;t<e.length;t++)qh(O,e[t]);else throw new RangeError("Unsupported child node: "+e)}var Ze=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},da=typeof document<"u"?document:{documentElement:{style:{}}},ua=/Edge\/(\d+)/.exec(Ze.userAgent),bf=/MSIE \d/.test(Ze.userAgent),Qa=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ze.userAgent),vn=!!(bf||Qa||ua),zh=!vn&&/gecko\/(\d+)/i.test(Ze.userAgent),sa=!vn&&/Chrome\/(\d+)/.exec(Ze.userAgent),Wh="webkitFontSmoothing"in da.documentElement.style,$a=!vn&&/Apple Computer/.test(Ze.vendor),Uh=$a&&(/Mobile\/\w+/.test(Ze.userAgent)||Ze.maxTouchPoints>2),Y={mac:Uh||/Mac/.test(Ze.platform),windows:/Win/.test(Ze.platform),linux:/Linux|X11/.test(Ze.platform),ie:vn,ie_version:bf?da.documentMode||6:Qa?+Qa[1]:ua?+ua[1]:0,gecko:zh,gecko_version:zh?+(/Firefox\/(\d+)/.exec(Ze.userAgent)||[0,0])[1]:0,chrome:!!sa,chrome_version:sa?+sa[1]:0,ios:Uh,android:/Android\b/.test(Ze.userAgent),webkit:Wh,webkit_version:Wh?+(/\bAppleWebKit\/(\d+)/.exec(Ze.userAgent)||[0,0])[1]:0,safari:$a,safari_version:$a?+(/\bVersion\/(\d+(\.\d+)?)/.exec(Ze.userAgent)||[0,0])[1]:0,tabSize:da.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};function Ei(O){let e;return O.nodeType==11?e=O.getSelection?O:O.ownerDocument:e=O,e.getSelection()}function pa(O,e){return e?O==e||O.contains(e.nodeType!=1?e.parentNode:e):!1}function on(O,e){if(!e.anchorNode)return!1;try{return pa(O,e.anchorNode)}catch{return!1}}function Ai(O){return O.nodeType==3?gO(O,0,O.nodeValue.length).getClientRects():O.nodeType==1?O.getClientRects():[]}function Vi(O,e,t,i){return t?jh(O,e,t,i,-1)||jh(O,e,t,i,1):!1}function mO(O){for(var e=0;;e++)if(O=O.previousSibling,!O)return e}function un(O){return O.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(O.nodeName)}function jh(O,e,t,i,r){for(;;){if(O==t&&e==i)return!0;if(e==(r<0?0:St(O))){if(O.nodeName=="DIV")return!1;let n=O.parentNode;if(!n||n.nodeType!=1)return!1;e=mO(O)+(r<0?0:1),O=n}else if(O.nodeType==1){if(O=O.childNodes[e+(r<0?-1:0)],O.nodeType==1&&O.contentEditable=="false")return!1;e=r<0?St(O):0}else return!1}}function St(O){return O.nodeType==3?O.nodeValue.length:O.childNodes.length}function Yn(O,e){let t=e?O.left:O.right;return{left:t,right:t,top:O.top,bottom:O.bottom}}function Fg(O){let e=O.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:O.innerWidth,top:0,bottom:O.innerHeight}}function xf(O,e){let t=e.width/O.offsetWidth,i=e.height/O.offsetHeight;return(t>.995&&t<1.005||!isFinite(t)||Math.abs(e.width-O.offsetWidth)<1)&&(t=1),(i>.995&&i<1.005||!isFinite(i)||Math.abs(e.height-O.offsetHeight)<1)&&(i=1),{scaleX:t,scaleY:i}}function Hg(O,e,t,i,r,n,s,a){let o=O.ownerDocument,l=o.defaLine truncated
`,r=O.state.doc.line(r.number+(t?1:-1)),n=O.bidiSpans(r),c=O.visualLineSide(r,!t)}if(o){if(!o(l))return a}else{if(!i)return c;o=i(l)}a=c}}function YP(O,e,t){let i=O.state.charCategorizer(e),r=i(t);return n=>{let s=i(n);return r==J.Space&&(r=s),r==s}}function ZP(O,e,t,i){let r=e.head,n=t?1:-1;if(r==(t?O.state.doc.length:0))return P.cursor(r,e.assoc);let s=e.goalColumn,a,o=O.contentDOM.getBoundingClientRect(),c=O.coordsAtPos(r,e.assoc||-1),l=O.documentTop;if(c)s==null&&(s=c.left-o.left),a=n<0?c.top:c.bottom;else{let u=O.viewState.lineBlockAt(r);s==null&&(s=Math.min(o.right-o.left,O.defaultCharacterWidth*(r-u.from))),a=(n<0?u.top:u.bottom)+l}let h=o.left+s,f=i??O.viewState.heightOracle.textHeight>>1;for(let u=0;;u+=10){let Q=a+(f+u)*n,$=rd(O,{x:h,y:Q},!1,n);if(Q<o.top||Q>o.bottom||(n<0?$<r:$>r)){let p=O.docView.coordsForChar($),m=!p||Q<p.top?-1:1;return P.cursor($,m,void 0,s)}}}function Ui(O,e,t){for(;;){let i=0;for(let r of O)r.between(e-1,e+1,(n,s,a)=>{if(e>n&&e<s){let o=i||t||(e-n<s-e?-1:1);e=o<0?n:s,i=o}});if(!i)return e}}function sd(O,e){let t=null;for(let i=0;i<e.ranges.length;i++){let r=e.ranges[i],n=null;if(r.empty){let s=Ui(O,r.from,0);s!=r.from&&(n=P.cursor(s,-1))}else{let s=Ui(O,r.from,-1),a=Ui(O,r.to,1);(s!=r.from||a!=r.to)&&(n=P.range(r.from==r.anchor?s:a,r.from==r.head?s:a))}n&&(t||(t=e.ranges.slice()),t[i]=n)}return t?P.create(t,e.mainIndex):e}function oa(O,e,t){let i=Ui(O.state.facet(Ki).map(r=>r(O)),t.from,e.head>t.from?-1:1);return i==t.from?t:P.cursor(i,i<t.from?1:-1)}var Zi="\uFFFF",wa=class{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(M.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=Zi}readRange(e,t){if(!e)return this;let i=e.parentNode;for(let r=e;;){this.findPointBefore(i,r);let n=this.text.length;this.readNode(r);let s=r.nextSibling;if(s==t)break;let a=ne.get(r),o=ne.get(s);(a&&o?a.breakAfter:(a?a.breakAfter:un(r))||un(s)&&(r.nodeName!="BR"||r.cmIgnore)&&this.text.length>n)&&!_P(s,t)&&this.lineBreak(),r=s}return this.findPointBefore(i,t),this}readTextNode(e){let t=e.nodeValue;for(let i of this.points)i.node==e&&(i.pos=this.text.length+Math.min(i.offset,t.length));for(let i=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let n=-1,s=1,a;if(this.lineSeparator?(n=t.indexOf(this.lineSeparator,i),s=this.lineSeparator.length):(a=r.exec(t))&&(n=a.index,s=a[0].length),this.append(t.slice(i,n<0?t.length:n)),n<0)break;if(this.lineBreak(),s>1)for(let o of this.points)o.node==e&&o.pos>this.text.length&&(o.pos-=s-1);i=n+s}}readNode(e){if(e.cmIgnore)return;let t=ne.get(e),i=t&&t.overrideDOMText;if(i!=null){this.findPointInside(e,i.length);for(let r=i.iter();!r.next().done;)r.lineBreak?this.lineBreak():this.append(r.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let i of this.points)i.node==e&&e.childNodes[i.offset]==t&&(i.pos=this.text.length)}findPointInside(e,t){for(let i of this.points)(e.nodeType==3?i.node==e:e.contains(i.node))&&(i.pos=this.text.length+(RP(e,i.node,i.offset)?t:0))}};function RP(O,e,t){for(;;){if(!e||t<St(e))return!1;if(e==O)return!0;t=mO(e)+1,e=e.parentNode}}function _P(O,e){let t;for(;!(O==e||!O);O=O.nextSibling){let i=ne.get(O);if(!(i?.isWidget||O.cmIgnore))return!1;i&&(t||(t=[])).push(i)}if(t)for(let i of t){let r=i.overrideDOMText;if(r?.length)return!1}return!0}var gn=class{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}},ka=class{constructor(e,t,i,r){this.typeOver=r,this.bounds=null,this.text="",this.domChanged=t>-1;let{impreciseHead:n,impreciseAnchor:s}=e.docView;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,i,0))){let a=n||s?[]:qP(e),o=new wa(a,e.state);o.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=o.text,this.newSel=zP(a,this.bounds.from)}else{let a=e.observer.selectionRange,o=n&&n.node==a.focusNode&&n.offset==a.focusOffset||!pa(e.contentDOM,a.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(a.focusNode,a.focusOffset),c=s&&s.node==a.anchorNode&&s.offset==a.anchorOffset||!pa(e.contentDOM,a.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(a.anchorNode,a.anchorOffset),l=e.viewport;if((Y.ios||Y.chrome)&&e.state.selection.main.empty&&o!=c&&(l.from>0||l.to<e.state.doc.length)){let h=Math.min(o,c),f=Math.max(o,c),u=l.from-h,Q=l.to-f;(u==0||u==1||h==0)&&(Q==0||Q==-1||f==e.state.doc.length)&&(o=0,c=e.state.doc.length)}this.newSel=P.single(c,o)}}};function ad(O,e){let t,{newSel:i}=e,r=O.state.selection.main,n=O.inputState.lastKeyTime>Date.now()-100?O.inputState.lastKeyCode:-1;if(e.bounds){let{from:s,to:a}=e.bounds,o=r.from,c=null;(n===8||Y.android&&e.text.length<a-s)&&(o=r.to,c="end");let l=od(O.state.doc.sliceString(s,a,Zi),e.text,o-s,c);l&&(Y.chrome&&n==13&&l.toB==l.from+2&&e.text.slice(l.from,l.toB)==Zi+Zi&&l.toB--,t={from:s+l.from,to:s+l.toA,insert:G.of(e.text.slice(l.from,l.toB).split(Zi))})}else i&&(!O.hasFocus&&O.state Line truncated `,r=O.state.doc.line(r.number+(t?1:-1)),n=O.bidiSpans(r),l=O.visualLineSide(r,!t)}if(o){if(!o(c))return a}else{if(!i)return l;o=i(c)}a=l}}function YP(O,e,t){let i=O.state.charCategorizer(e),r=i(t);return n=>{let s=i(n);return r==J.Space&&(r=s),r==s}}function ZP(O,e,t,i){let r=e.head,n=t?1:-1;if(r==(t?O.state.doc.length:0))return S.cursor(r,e.assoc);let s=e.goalColumn,a,o=O.contentDOM.getBoundingClientRect(),l=O.coordsAtPos(r,e.assoc||-1),c=O.documentTop;if(l)s==null&&(s=l.left-o.left),a=n<0?l.top:l.bottom;else{let u=O.viewState.lineBlockAt(r);s==null&&(s=Math.min(o.right-o.left,O.defaultCharacterWidth*(r-u.from))),a=(n<0?u.top:u.bottom)+c}let h=o.left+s,f=i??O.viewState.heightOracle.textHeight>>1;for(let u=0;;u+=10){let Q=a+(f+u)*n,$=rd(O,{x:h,y:Q},!1,n);if(Q<o.top||Q>o.bottom||(n<0?$<r:$>r)){let p=O.docView.coordsForChar($),m=!p||Q<p.top?-1:1;return S.cursor($,m,void 0,s)}}}function Ui(O,e,t){for(;;){let i=0;for(let r of O)r.between(e-1,e+1,(n,s,a)=>{if(e>n&&e<s){let o=i||t||(e-n<s-e?-1:1);e=o<0?n:s,i=o}});if(!i)return e}}function sd(O,e){let t=null;for(let i=0;i<e.ranges.length;i++){let r=e.ranges[i],n=null;if(r.empty){let s=Ui(O,r.from,0);s!=r.from&&(n=S.cursor(s,-1))}else{let s=Ui(O,r.from,-1),a=Ui(O,r.to,1);(s!=r.from||a!=r.to)&&(n=S.range(r.from==r.anchor?s:a,r.from==r.head?s:a))}n&&(t||(t=e.ranges.slice()),t[i]=n)}return t?S.create(t,e.mainIndex):e}function oa(O,e,t){let i=Ui(O.state.facet(Ki).map(r=>r(O)),t.from,e.head>t.from?-1:1);return i==t.from?t:S.cursor(i,i<t.from?1:-1)}var Zi="\uFFFF",wa=class{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(M.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=Zi}readRange(e,t){if(!e)return this;let i=e.parentNode;for(let r=e;;){this.findPointBefore(i,r);let n=this.text.length;this.readNode(r);let s=r.nextSibling;if(s==t)break;let a=ne.get(r),o=ne.get(s);(a&&o?a.breakAfter:(a?a.breakAfter:un(r))||un(s)&&(r.nodeName!="BR"||r.cmIgnore)&&this.text.length>n)&&!_P(s,t)&&this.lineBreak(),r=s}return this.findPointBefore(i,t),this}readTextNode(e){let t=e.nodeValue;for(let i of this.points)i.node==e&&(i.pos=this.text.length+Math.min(i.offset,t.length));for(let i=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let n=-1,s=1,a;if(this.lineSeparator?(n=t.indexOf(this.lineSeparator,i),s=this.lineSeparator.length):(a=r.exec(t))&&(n=a.index,s=a[0].length),this.append(t.slice(i,n<0?t.length:n)),n<0)break;if(this.lineBreak(),s>1)for(let o of this.points)o.node==e&&o.pos>this.text.length&&(o.pos-=s-1);i=n+s}}readNode(e){if(e.cmIgnore)return;let t=ne.get(e),i=t&&t.overrideDOMText;if(i!=null){this.findPointInside(e,i.length);for(let r=i.iter();!r.next().done;)r.lineBreak?this.lineBreak():this.append(r.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let i of this.points)i.node==e&&e.childNodes[i.offset]==t&&(i.pos=this.text.length)}findPointInside(e,t){for(let i of this.points)(e.nodeType==3?i.node==e:e.contains(i.node))&&(i.pos=this.text.length+(RP(e,i.node,i.offset)?t:0))}};function RP(O,e,t){for(;;){if(!e||t<St(e))return!1;if(e==O)return!0;t=mO(e)+1,e=e.parentNode}}function _P(O,e){let t;for(;!(O==e||!O);O=O.nextSibling){let i=ne.get(O);if(!(i?.isWidget||O.cmIgnore))return!1;i&&(t||(t=[])).push(i)}if(t)for(let i of t){let r=i.overrideDOMText;if(r?.length)return!1}return!0}var gn=class{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}},ka=class{constructor(e,t,i,r){this.typeOver=r,this.bounds=null,this.text="",this.domChanged=t>-1;let{impreciseHead:n,impreciseAnchor:s}=e.docView;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,i,0))){let a=n||s?[]:qP(e),o=new wa(a,e.state);o.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=o.text,this.newSel=zP(a,this.bounds.from)}else{let a=e.observer.selectionRange,o=n&&n.node==a.focusNode&&n.offset==a.focusOffset||!pa(e.contentDOM,a.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(a.focusNode,a.focusOffset),l=s&&s.node==a.anchorNode&&s.offset==a.anchorOffset||!pa(e.contentDOM,a.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(a.anchorNode,a.anchorOffset),c=e.viewport;if((Y.ios||Y.chrome)&&e.state.selection.main.empty&&o!=l&&(c.from>0||c.to<e.state.doc.length)){let h=Math.min(o,l),f=Math.max(o,l),u=c.from-h,Q=c.to-f;(u==0||u==1||h==0)&&(Q==0||Q==-1||f==e.state.doc.length)&&(o=0,l=e.state.doc.length)}this.newSel=S.single(l,o)}}};function ad(O,e){let t,{newSel:i}=e,r=O.state.selection.main,n=O.inputState.lastKeyTime>Date.now()-100?O.inputState.lastKeyCode:-1;if(e.bounds){let{from:s,to:a}=e.bounds,o=r.from,l=null;(n===8||Y.android&&e.text.length<a-s)&&(o=r.to,l="end");let c=od(O.state.doc.sliceString(s,a,Zi),e.text,o-s,l);c&&(Y.chrome&&n==13&&c.toB==c.from+2&&e.text.slice(c.from,c.toB)==Zi+Zi&&c.toB--,t={from:s+c.from,to:s+c.toA,insert:G.of(e.text.slice(c.from,c.toB).split(Zi))})}else i&&(!O.hasFocus&&O.state Line truncated
`&&O.lineWrapping&&(i&&(i=P.single(i.main.anchor-1,i.main.head-1)),t={from:r.from,to:r.to,insert:G.of([" "])}),t)return ao(O,t,i,n);if(i&&!i.main.eq(r)){let s=!1,a="select";return O.inputState.lastSelectionTime>Date.now()-50&&(O.inputState.lastSelectionOrigin=="select"&&(s=!0),a=O.inputState.lastSelectionOrigin,a=="select.pointer"&&(i=sd(O.state.facet(Ki).map(o=>o(O)),i))),O.dispatch({selection:i,scrollIntoView:s,userEvent:a}),!0}else return!1}function ao(O,e,t,i=-1){if(Y.ios&&O.inputState.flushIOSKey(e))return!0;let r=O.state.selection.main;if(Y.android&&(e.to==r.to&&(e.from==r.from||e.from==r.from-1&&O.state.sliceDoc(e.from,r.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&ei(O.contentDOM,"Enter",13)||(e.from==r.from-1&&e.to==r.to&&e.insert.length==0||i==8&&e.insert.length<e.to-e.from&&e.to>r.head)&&ei(O.contentDOM,"Backspace",8)||e.from==r.from&&e.to==r.to+1&&e.insert.length==0&&ei(O.contentDOM,"Delete",46)))return!0;let n=e.insert.toString();O.inputState.composing>=0&&O.inputState.composing++;let s,a=()=>s||(s=VP(O,e,t));return O.state.facet(If).some(o=>o(O,e.from,e.to,n,a))||O.dispatch(a()),!0}function VP(O,e,t){let i,r=O.state,n=r.selection.main,s=-1;if(e.from==e.to&&e.from<n.from||e.from>n.to){let o=e.from<n.from?-1:1,c=o<0?n.from:n.to,l=Ui(r.facet(Ki).map(h=>h(O)),c,o);e.from==l&&(s=l)}if(s>-1)i={changes:e,selection:P.cursor(e.from+e.insert.length,-1)};else if(e.from>=n.from&&e.to<=n.to&&e.to-e.from>=(n.to-n.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&O.inputState.composing<0){let o=n.from<e.from?r.sliceDoc(n.from,e.from):"",c=n.to>e.to?r.sliceDoc(e.to,n.to):"";i=r.replaceSelection(O.state.toText(o+e.insert.sliceString(0,void 0,O.state.lineBreak)+c))}else{let o=r.changes(e),c=t&&t.main.to<=o.newLength?t.main:void 0;if(r.selection.ranges.length>1&&O.inputState.composing>=0&&e.to<=n.to&&e.to>=n.to-10){let l=O.state.sliceDoc(e.from,e.to),h,f=t&&id(O,t.main.head);if(f){let $=e.insert.length-(e.to-e.from);h={from:f.from,to:f.to-$}}else h=O.state.doc.lineAt(n.head);let u=n.to-e.to,Q=n.to-n.from;i=r.changeByRange($=>{if($.from==n.from&&$.to==n.to)return{changes:o,range:c||$.map(o)};let p=$.to-u,m=p-l.length;if($.to-$.from!=Q||O.state.sliceDoc(m,p)!=l||$.to>=h.from&&$.from<=h.to)return{range:$};let g=r.changes({from:m,to:p,insert:e.insert}),X=$.to-n.to;return{changes:g,range:c?P.range(Math.max(0,c.anchor+X),Math.max(0,c.head+X)):$.map(g)}})}else i={changes:o,selection:c&&r.selection.replaceRange(c)}}let a="input.type";return(O.composing||O.inputState.compositionPendingChange&&O.inputState.compositionEndedAt>Date.now()-50)&&(O.inputState.compositionPendingChange=!1,a+=".compose",O.inputState.compositionFirstChange&&(a+=".start",O.inputState.compositionFirstChange=!1)),r.update(i,{userEvent:a,scrollIntoView:!0})}function od(O,e,t,i){let r=Math.min(O.length,e.length),n=0;for(;n<r&&O.charCodeAt(n)==e.charCodeAt(n);)n++;if(n==r&&O.length==e.length)return null;let s=O.length,a=e.length;for(;s>0&&a>0&&O.charCodeAt(s-1)==e.charCodeAt(a-1);)s--,a--;if(i=="end"){let o=Math.max(0,n-Math.min(s,a));t-=s+o-n}if(s<n&&O.length<e.length){let o=t<=n&&t>=s?n-t:0;n-=o,a=n+(a-s),s=n}else if(a<n){let o=t<=n&&t>=a?n-t:0;n-=o,s=n+(s-a),a=n}return{from:n,toA:s,toB:a}}function qP(O){let e=[];if(O.root.activeElement!=O.contentDOM)return e;let{anchorNode:t,anchorOffset:i,focusNode:r,focusOffset:n}=O.observer.selectionRange;return t&&(e.push(new gn(t,i)),(r!=t||n!=i)&&e.push(new gn(r,n))),e}function zP(O,e){if(O.length==0)return null;let t=O[0].pos,i=O.length==2?O[1].pos:t;return t>-1&&i>-1?P.single(t+e,i+e):null}var va=class{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,Y.safari&&e.contentDOM.addEventListener("input",()=>null),Y.gecko&&HP(e.contentDOM.ownerDocument)}handleEvent(e){!AP(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||(this.view.updateState!=0?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e))}runHandlers(e,t){let i=this.handlers[e];if(i){for(let r of i.observers)r(this.view,t);for(let r of i.handlers){if(t.defaultPrevented)break;if(r(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=WP(e),i=this.handlers,r=this.view.contentDOM;for(let n in t)if(n!="scroll"){let s=!t[n].handlers.length,a=i[n];a&&s!=!a.handlers.length&&(r.removeEventListener(n,this.handleEvent),a=null),a||r.addEventListene Line truncated `&&O.lineWrapping&&(i&&(i=S.single(i.main.anchor-1,i.main.head-1)),t={from:r.from,to:r.to,insert:G.of([" "])}),t)return ao(O,t,i,n);if(i&&!i.main.eq(r)){let s=!1,a="select";return O.inputState.lastSelectionTime>Date.now()-50&&(O.inputState.lastSelectionOrigin=="select"&&(s=!0),a=O.inputState.lastSelectionOrigin,a=="select.pointer"&&(i=sd(O.state.facet(Ki).map(o=>o(O)),i))),O.dispatch({selection:i,scrollIntoView:s,userEvent:a}),!0}else return!1}function ao(O,e,t,i=-1){if(Y.ios&&O.inputState.flushIOSKey(e))return!0;let r=O.state.selection.main;if(Y.android&&(e.to==r.to&&(e.from==r.from||e.from==r.from-1&&O.state.sliceDoc(e.from,r.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&ti(O.contentDOM,"Enter",13)||(e.from==r.from-1&&e.to==r.to&&e.insert.length==0||i==8&&e.insert.length<e.to-e.from&&e.to>r.head)&&ti(O.contentDOM,"Backspace",8)||e.from==r.from&&e.to==r.to+1&&e.insert.length==0&&ti(O.contentDOM,"Delete",46)))return!0;let n=e.insert.toString();O.inputState.composing>=0&&O.inputState.composing++;let s,a=()=>s||(s=VP(O,e,t));return O.state.facet(If).some(o=>o(O,e.from,e.to,n,a))||O.dispatch(a()),!0}function VP(O,e,t){let i,r=O.state,n=r.selection.main,s=-1;if(e.from==e.to&&e.from<n.from||e.from>n.to){let o=e.from<n.from?-1:1,l=o<0?n.from:n.to,c=Ui(r.facet(Ki).map(h=>h(O)),l,o);e.from==c&&(s=c)}if(s>-1)i={changes:e,selection:S.cursor(e.from+e.insert.length,-1)};else if(e.from>=n.from&&e.to<=n.to&&e.to-e.from>=(n.to-n.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&O.inputState.composing<0){let o=n.from<e.from?r.sliceDoc(n.from,e.from):"",l=n.to>e.to?r.sliceDoc(e.to,n.to):"";i=r.replaceSelection(O.state.toText(o+e.insert.sliceString(0,void 0,O.state.lineBreak)+l))}else{let o=r.changes(e),l=t&&t.main.to<=o.newLength?t.main:void 0;if(r.selection.ranges.length>1&&O.inputState.composing>=0&&e.to<=n.to&&e.to>=n.to-10){let c=O.state.sliceDoc(e.from,e.to),h,f=t&&id(O,t.main.head);if(f){let $=e.insert.length-(e.to-e.from);h={from:f.from,to:f.to-$}}else h=O.state.doc.lineAt(n.head);let u=n.to-e.to,Q=n.to-n.from;i=r.changeByRange($=>{if($.from==n.from&&$.to==n.to)return{changes:o,range:l||$.map(o)};let p=$.to-u,m=p-c.length;if($.to-$.from!=Q||O.state.sliceDoc(m,p)!=c||$.to>=h.from&&$.from<=h.to)return{range:$};let g=r.changes({from:m,to:p,insert:e.insert}),P=$.to-n.to;return{changes:g,range:l?S.range(Math.max(0,l.anchor+P),Math.max(0,l.head+P)):$.map(g)}})}else i={changes:o,selection:l&&r.selection.replaceRange(l)}}let a="input.type";return(O.composing||O.inputState.compositionPendingChange&&O.inputState.compositionEndedAt>Date.now()-50)&&(O.inputState.compositionPendingChange=!1,a+=".compose",O.inputState.compositionFirstChange&&(a+=".start",O.inputState.compositionFirstChange=!1)),r.update(i,{userEvent:a,scrollIntoView:!0})}function od(O,e,t,i){let r=Math.min(O.length,e.length),n=0;for(;n<r&&O.charCodeAt(n)==e.charCodeAt(n);)n++;if(n==r&&O.length==e.length)return null;let s=O.length,a=e.length;for(;s>0&&a>0&&O.charCodeAt(s-1)==e.charCodeAt(a-1);)s--,a--;if(i=="end"){let o=Math.max(0,n-Math.min(s,a));t-=s+o-n}if(s<n&&O.length<e.length){let o=t<=n&&t>=s?n-t:0;n-=o,a=n+(a-s),s=n}else if(a<n){let o=t<=n&&t>=a?n-t:0;n-=o,s=n+(s-a),a=n}return{from:n,toA:s,toB:a}}function qP(O){let e=[];if(O.root.activeElement!=O.contentDOM)return e;let{anchorNode:t,anchorOffset:i,focusNode:r,focusOffset:n}=O.observer.selectionRange;return t&&(e.push(new gn(t,i)),(r!=t||n!=i)&&e.push(new gn(r,n))),e}function zP(O,e){if(O.length==0)return null;let t=O[0].pos,i=O.length==2?O[1].pos:t;return t>-1&&i>-1?S.single(t+e,i+e):null}var va=class{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,Y.safari&&e.contentDOM.addEventListener("input",()=>null),Y.gecko&&HP(e.contentDOM.ownerDocument)}handleEvent(e){!AP(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||(this.view.updateState!=0?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e))}runHandlers(e,t){let i=this.handlers[e];if(i){for(let r of i.observers)r(this.view,t);for(let r of i.handlers){if(t.defaultPrevented)break;if(r(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=WP(e),i=this.handlers,r=this.view.contentDOM;for(let n in t)if(n!="scroll"){let s=!t[n].handlers.length,a=i[n];a&&s!=!a.handlers.length&&(r.removeEventListener(n,this.handleEvent),a=null),a||r.addEventListene Line truncated
`))};if((Y.mac||Y.android)&&h.from==s-1&&/^\. ?$/.test(i.text)&&e.contentDOM.getAttribute("autocorrect")=="off"&&(h={from:a,to:o,insert:G.of([i.text.replace("."," ")])}),this.pendingContextChange=h,!e.state.readOnly){let f=this.to-this.from+(h.to-h.from+h.insert.length);ao(e,h,P.single(this.toEditorPos(i.selectionStart,f),this.toEditorPos(i.selectionEnd,f)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)),h.from<h.to&&!h.insert.length&&e.inputState.composing>=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(t.text.slice(Math.max(0,i.updateRangeStart-1),Math.min(t.text.length,i.updateRangeStart+1)))&&this.handlers.compositionend(i)},this.handlers.characterboundsupdate=i=>{let r=[],n=null;for(let s=this.toEditorPos(i.rangeStart),a=this.toEditorPos(i.rangeEnd);s<a;s++){let o=e.coordsForChar(s);n=o&&new DOMRect(o.left,o.top,o.right-o.left,o.bottom-o.top)||n||new DOMRect,r.push(n)}t.updateCharacterBounds(i.rangeStart,r)},this.handlers.textformatupdate=i=>{let r=[];for(let n of i.getTextFormats()){let s=n.underlineStyle,a=n.underlineThickness;if(!/none/i.test(s)&&!/none/i.test(a)){let o=this.toEditorPos(n.rangeStart),c=this.toEditorPos(n.rangeEnd);if(o<c){let l=`text-decoration: underline ${/^[a-z]/.test(s)?s+" ":s=="Dashed"?"dashed ":s=="Squiggle"?"wavy ":""}${/thin/i.test(a)?1:2}px`;r.push(Z.mark({attributes:{style:l}}).range(o,c))}}}e.dispatch({effects:Kf.of(Z.set(r))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:i}=this.composing;this.composing=null,i&&this.reset(e.state)}};for(let i in this.handlers)t.addEventListener(i,this.handlers[i]);this.measureReq={read:i=>{this.editContext.updateControlBounds(i.contentDOM.getBoundingClientRect());let r=Ei(i.root);r&&r.rangeCount&&this.editContext.updateSelectionBounds(r.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,i=!1,r=this.pendingContextChange;return e.changes.iterChanges((n,s,a,o,c)=>{if(i)return;let l=c.length-(s-n);if(r&&s>=r.to)if(r.from==n&&r.to==s&&r.insert.eq(c)){r=this.pendingContextChange=null,t+=l,this.to+=l;return}else r=null,this.revertPending(e.state);if(n+=t,s+=t,s<=this.from)this.from+=l,this.to+=l;else if(n<this.to){if(n<this.from||s>this.to||this.to-this.from+c.length>3e4){i=!0;return}this.editContext.updateText(this.toContextPos(n),this.toContextPos(s),c.toString()),this.to+=l}t+=l}),r&&!i&&this.revertPending(e.state),!i}update(e){let t=this.pendingContextChange,i=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(i.from,i.to)&&e.transactions.some(r=>!r.isUserEvent("input.type")&&r.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.reset(e.state)):(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,i=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),r=this.toContextPos(t.head);(this.editContext.selectionStart!=i||this.editContext.selectionEnd!=r)&&this.editContext.updateSelection(i,r)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to<e.doc.length&&this.to-t<500||this.to-this.from>1e4*3)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let i=this.composing;return i&&i.drifted?i.editorBase+(e-i.contextBase):e+this.from}toContextPos(e){let t=this.composing;return t&&t.drifted?t.contextBase+(e-t.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}},y=class O{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var t;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRe Line truncated `))};if((Y.mac||Y.android)&&h.from==s-1&&/^\. ?$/.test(i.text)&&e.contentDOM.getAttribute("autocorrect")=="off"&&(h={from:a,to:o,insert:G.of([i.text.replace("."," ")])}),this.pendingContextChange=h,!e.state.readOnly){let f=this.to-this.from+(h.to-h.from+h.insert.length);ao(e,h,S.single(this.toEditorPos(i.selectionStart,f),this.toEditorPos(i.selectionEnd,f)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)),h.from<h.to&&!h.insert.length&&e.inputState.composing>=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(t.text.slice(Math.max(0,i.updateRangeStart-1),Math.min(t.text.length,i.updateRangeStart+1)))&&this.handlers.compositionend(i)},this.handlers.characterboundsupdate=i=>{let r=[],n=null;for(let s=this.toEditorPos(i.rangeStart),a=this.toEditorPos(i.rangeEnd);s<a;s++){let o=e.coordsForChar(s);n=o&&new DOMRect(o.left,o.top,o.right-o.left,o.bottom-o.top)||n||new DOMRect,r.push(n)}t.updateCharacterBounds(i.rangeStart,r)},this.handlers.textformatupdate=i=>{let r=[];for(let n of i.getTextFormats()){let s=n.underlineStyle,a=n.underlineThickness;if(!/none/i.test(s)&&!/none/i.test(a)){let o=this.toEditorPos(n.rangeStart),l=this.toEditorPos(n.rangeEnd);if(o<l){let c=`text-decoration: underline ${/^[a-z]/.test(s)?s+" ":s=="Dashed"?"dashed ":s=="Squiggle"?"wavy ":""}${/thin/i.test(a)?1:2}px`;r.push(Z.mark({attributes:{style:c}}).range(o,l))}}}e.dispatch({effects:Kf.of(Z.set(r))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:i}=this.composing;this.composing=null,i&&this.reset(e.state)}};for(let i in this.handlers)t.addEventListener(i,this.handlers[i]);this.measureReq={read:i=>{this.editContext.updateControlBounds(i.contentDOM.getBoundingClientRect());let r=Ei(i.root);r&&r.rangeCount&&this.editContext.updateSelectionBounds(r.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,i=!1,r=this.pendingContextChange;return e.changes.iterChanges((n,s,a,o,l)=>{if(i)return;let c=l.length-(s-n);if(r&&s>=r.to)if(r.from==n&&r.to==s&&r.insert.eq(l)){r=this.pendingContextChange=null,t+=c,this.to+=c;return}else r=null,this.revertPending(e.state);if(n+=t,s+=t,s<=this.from)this.from+=c,this.to+=c;else if(n<this.to){if(n<this.from||s>this.to||this.to-this.from+l.length>3e4){i=!0;return}this.editContext.updateText(this.toContextPos(n),this.toContextPos(s),l.toString()),this.to+=c}t+=c}),r&&!i&&this.revertPending(e.state),!i}update(e){let t=this.pendingContextChange,i=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(i.from,i.to)&&e.transactions.some(r=>!r.isUserEvent("input.type")&&r.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.reset(e.state)):(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,i=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),r=this.toContextPos(t.head);(this.editContext.selectionStart!=i||this.editContext.selectionEnd!=r)&&this.editContext.updateSelection(i,r)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to<e.doc.length&&this.to-t<500||this.to-this.from>1e4*3)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let i=this.composing;return i&&i.drifted?i.editorBase+(e-i.contextBase):e+this.from}toContextPos(e){let t=this.composing;return t&&t.drifted?t.contextBase+(e-t.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}},y=class O{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var t;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRe Line truncated
-\x7F-\x9F\xAD\u061C\u200B\u200E\u200F\u2028\u2029\u202D\u202E\u2066\u2067\u2069\uFEFF\uFFF9-\uFFFC]`,Ia),XS={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"},ca=null;function TS(){var O;if(ca==null&&typeof document<"u"&&document.body){let e=document.body.style;ca=((O=e.tabSize)!==null&&O!==void 0?O:e.MozTabSize)!=null}return ca||!1}var fn=v.define({combine(O){let e=xe(O,{render:null,specialChars:SS,addSpecialChars:null});return(e.replaceTabs=!TS())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,Ia)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,Ia)),e}});function vd(O={}){return[fn.of(O),yS()]}var pf=null;function yS(){return pf||(pf=fe.fromClass(class{constructor(O){this.view=O,this.decorations=Z.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(O.state.facet(fn)),this.decorations=this.decorator.createDeco(O)}makeDecorator(O){return new Da({regexp:O.specialChars,decoration:(e,t,i)=>{let{doc:r}=t.state,n=Se(e[0],0);if(n==9){let s=r.lineAt(i),a=t.state.tabSize,o=Ye(s.text,a,i-s.from);return Z.replace({widget:new Na((a-o%a)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[n]||(this.decorationCache[n]=Z.replace({widget:new Ba(O,n)}))},boundary:O.replaceTabs?void 0:/[^]/})}update(O){let e=O.state.facet(fn);O.startState.facet(fn)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(O.view)):this.decorations=this.decorator.updateDeco(O,this.decorations)}},{decorations:O=>O.decorations}))}var bS="\u2022";function xS(O){return O>=32?bS:O==10?"\u2424":String.fromCharCode(9216+O)}var Ba=class extends We{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=xS(this.code),i=e.state.phrase("Control character")+" "+(XS[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,i,t);if(r)return r;let n=document.createElement("span");return n.textContent=t,n.title=i,n.setAttribute("aria-label",i),n.className="cm-specialChar",n}ignoreEvent(){return!1}},Na=class extends We{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}};function Yd(){return kS}var wS=Z.line({class:"cm-activeLine"}),kS=fe.fromClass(class{constructor(O){this.decorations=this.getDeco(O)}update(O){(O.docChanged||O.selectionSet)&&(this.decorations=this.getDeco(O.view))}getDeco(O){let e=-1,t=[];for(let i of O.state.selection.ranges){let r=O.lineBlockAt(i.head);r.from>e&&(t.push(wS.range(r.from)),e=r.from)}return Z.set(t)}},{decorations:O=>O.decorations});var Fa=2e3;function vS(O,e,t){let i=Math.min(e.line,t.line),r=Math.max(e.line,t.line),n=[];if(e.off>Fa||t.off>Fa||e.col<0||t.col<0){let s=Math.min(e.off,t.off),a=Math.max(e.off,t.off);for(let o=i;o<=r;o++){let c=O.doc.line(o);c.length<=a&&n.push(P.range(c.from+s,c.to+a))}}else{let s=Math.min(e.col,t.col),a=Math.max(e.col,t.col);for(let o=i;o<=r;o++){let c=O.doc.line(o),l=Fr(c.text,s,O.tabSize,!0);if(l<0)n.push(P.cursor(c.to));else{let h=Fr(c.text,a,O.tabSize);n.push(P.range(c.from+l,c.from+h))}}}return n}function YS(O,e){let t=O.coordsAtPos(O.viewport.from);return t?Math.round(Math.abs((t.left-e)/O.defaultCharacterWidth)):-1}function mf(O,e){let t=O.posAtCoords({x:e.clientX,y:e.clientY},!1),i=O.state.doc.lineAt(t),r=t-i.from,n=r>Fa?-1:r==i.length?YS(O,e.clientX):Ye(i.text,O.state.tabSize,t-i.from);return{line:i.number,col:n,off:r}}function ZS(O,e){let t=mf(O,e),i=O.state.selection;return t?{update(r){if(r.docChanged){let n=r.changes.mapPos(r.startState.doc.line(t.line).from),s=r.state.doc.lineAt(n);t={line:s.number,col:t.col,off:Math.min(t.off,s.length)},i=i.map(r.changes)}},get(r,n,s){let a=mf(O,r);if(!a)return i;let o=vS(O.state,t,a);return o.length?s?P.create(o.concat(i.ranges)):P.create(o):i}}:null}function Zd(O){let e=O?.eventFilter||(t=>t.altKey&&t.button==0);return y.mouseSelectionStyle.of((t,i)=>e(i)?ZS(t,i):null)}var RS={Alt:[18,O=>!!O.altKey],Control:[17,O=>!!O.ctrlKey],Shift:[16,O=>!!O.shiftKey],Meta:[91,O=>!!O.metaKey]},_S={style:"cursor: crosshair"};function Rd(O={}){let[e,t]=RS[O.key||"Alt"],i=fe.fromClass(class{constructor(r){this.view=r,this.isDown=!1}set(r){this.isDown!=r&&(this.isDown=r,this.view.update([]))}},{eventObservers:{keydown(r){this.set(r.keyCode==e||t(r))},keyup(r){(r.keyCode==e||!t(r))&&this.set(!1)},mousemove(r){this.set(t(r))}}});return[i,y.contentAttributes.o Line truncated -\x7F-\x9F\xAD\u061C\u200B\u200E\u200F\u2028\u2029\u202D\u202E\u2066\u2067\u2069\uFEFF\uFFF9-\uFFFC]`,Ia),XS={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"},ca=null;function TS(){var O;if(ca==null&&typeof document<"u"&&document.body){let e=document.body.style;ca=((O=e.tabSize)!==null&&O!==void 0?O:e.MozTabSize)!=null}return ca||!1}var fn=v.define({combine(O){let e=xe(O,{render:null,specialChars:SS,addSpecialChars:null});return(e.replaceTabs=!TS())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,Ia)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,Ia)),e}});function vd(O={}){return[fn.of(O),yS()]}var pf=null;function yS(){return pf||(pf=fe.fromClass(class{constructor(O){this.view=O,this.decorations=Z.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(O.state.facet(fn)),this.decorations=this.decorator.createDeco(O)}makeDecorator(O){return new Da({regexp:O.specialChars,decoration:(e,t,i)=>{let{doc:r}=t.state,n=Se(e[0],0);if(n==9){let s=r.lineAt(i),a=t.state.tabSize,o=Ye(s.text,a,i-s.from);return Z.replace({widget:new Na((a-o%a)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[n]||(this.decorationCache[n]=Z.replace({widget:new Ba(O,n)}))},boundary:O.replaceTabs?void 0:/[^]/})}update(O){let e=O.state.facet(fn);O.startState.facet(fn)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(O.view)):this.decorations=this.decorator.updateDeco(O,this.decorations)}},{decorations:O=>O.decorations}))}var bS="\u2022";function xS(O){return O>=32?bS:O==10?"\u2424":String.fromCharCode(9216+O)}var Ba=class extends Ue{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=xS(this.code),i=e.state.phrase("Control character")+" "+(XS[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,i,t);if(r)return r;let n=document.createElement("span");return n.textContent=t,n.title=i,n.setAttribute("aria-label",i),n.className="cm-specialChar",n}ignoreEvent(){return!1}},Na=class extends Ue{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}};function Yd(){return kS}var wS=Z.line({class:"cm-activeLine"}),kS=fe.fromClass(class{constructor(O){this.decorations=this.getDeco(O)}update(O){(O.docChanged||O.selectionSet)&&(this.decorations=this.getDeco(O.view))}getDeco(O){let e=-1,t=[];for(let i of O.state.selection.ranges){let r=O.lineBlockAt(i.head);r.from>e&&(t.push(wS.range(r.from)),e=r.from)}return Z.set(t)}},{decorations:O=>O.decorations});var Fa=2e3;function vS(O,e,t){let i=Math.min(e.line,t.line),r=Math.max(e.line,t.line),n=[];if(e.off>Fa||t.off>Fa||e.col<0||t.col<0){let s=Math.min(e.off,t.off),a=Math.max(e.off,t.off);for(let o=i;o<=r;o++){let l=O.doc.line(o);l.length<=a&&n.push(S.range(l.from+s,l.to+a))}}else{let s=Math.min(e.col,t.col),a=Math.max(e.col,t.col);for(let o=i;o<=r;o++){let l=O.doc.line(o),c=Fr(l.text,s,O.tabSize,!0);if(c<0)n.push(S.cursor(l.to));else{let h=Fr(l.text,a,O.tabSize);n.push(S.range(l.from+c,l.from+h))}}}return n}function YS(O,e){let t=O.coordsAtPos(O.viewport.from);return t?Math.round(Math.abs((t.left-e)/O.defaultCharacterWidth)):-1}function mf(O,e){let t=O.posAtCoords({x:e.clientX,y:e.clientY},!1),i=O.state.doc.lineAt(t),r=t-i.from,n=r>Fa?-1:r==i.length?YS(O,e.clientX):Ye(i.text,O.state.tabSize,t-i.from);return{line:i.number,col:n,off:r}}function ZS(O,e){let t=mf(O,e),i=O.state.selection;return t?{update(r){if(r.docChanged){let n=r.changes.mapPos(r.startState.doc.line(t.line).from),s=r.state.doc.lineAt(n);t={line:s.number,col:t.col,off:Math.min(t.off,s.length)},i=i.map(r.changes)}},get(r,n,s){let a=mf(O,r);if(!a)return i;let o=vS(O.state,t,a);return o.length?s?S.create(o.concat(i.ranges)):S.create(o):i}}:null}function Zd(O){let e=O?.eventFilter||(t=>t.altKey&&t.button==0);return y.mouseSelectionStyle.of((t,i)=>e(i)?ZS(t,i):null)}var RS={Alt:[18,O=>!!O.altKey],Control:[17,O=>!!O.ctrlKey],Shift:[16,O=>!!O.shiftKey],Meta:[91,O=>!!O.metaKey]},_S={style:"cursor: crosshair"};function Rd(O={}){let[e,t]=RS[O.key||"Alt"],i=fe.fromClass(class{constructor(r){this.view=r,this.isDown=!1}set(r){this.isDown!=r&&(this.isDown=r,this.view.update([]))}},{eventObservers:{keydown(r){this.set(r.keyCode==e||t(r))},keyup(r){(r.keyCode==e||!t(r))&&this.set(!1)},mousemove(r){this.set(t(r))}}});return[i,y.contentAttributes.o Line truncated
`:i=="r"?"\r":i=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new Ho(this):new Fo(this)}getCursor(e,t=0,i){let r=e.doc?e:M.create({doc:e});return i==null&&(i=r.doc.length),this.regexp?oi(this,r,t,i):ai(this,r,t,i)}},ss=class{constructor(e){this.spec=e}};function ai(O,e,t,i){return new oO(e.doc,O.unquoted,t,i,O.caseSensitive?void 0:r=>r.toLowerCase(),O.wholeWord?aT(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function aT(O,e){return(t,i,r,n)=>((n>t||n+r.length<i)&&(n=Math.max(0,t-2),r=O.sliceString(n,Math.min(O.length,i+2))),(e(as(r,t-n))!=J.Word||e(os(r,t-n))!=J.Word)&&(e(os(r,i-n))!=J.Word||e(as(r,i-n))!=J.Word))}var Fo=class extends ss{constructor(e){super(e)}nextMatch(e,t,i){let r=ai(this.spec,e,i,e.doc.length).nextOverlapping();if(r.done){let n=Math.min(e.doc.length,t+this.spec.unquoted.length);r=ai(this.spec,e,0,n).nextOverlapping()}return r.done||r.value.from==t&&r.value.to==i?null:r.value}prevMatchInRange(e,t,i){for(let r=i;;){let n=Math.max(t,r-1e4-this.spec.unquoted.length),s=ai(this.spec,e,n,r),a=null;for(;!s.nextOverlapping().done;)a=s.value;if(a)return a;if(n==t)return null;r-=1e4}}prevMatch(e,t,i){let r=this.prevMatchInRange(e,0,t);return r||(r=this.prevMatchInRange(e,Math.max(0,i-this.spec.unquoted.length),e.doc.length)),r&&(r.from!=t||r.to!=i)?r:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let i=ai(this.spec,e,0,e.doc.length),r=[];for(;!i.next().done;){if(r.length>=t)return null;r.push(i.value)}return r}highlight(e,t,i,r){let n=ai(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(i+this.spec.unquoted.length,e.doc.length));for(;!n.next().done;)r(n.value.from,n.value.to)}};function oi(O,e,t,i){return new ts(e.doc,O.search,{ignoreCase:!O.caseSensitive,test:O.wholeWord?oT(e.charCategorizer(e.selection.main.head)):void 0},t,i)}function as(O,e){return O.slice(Qe(O,e,!1),e)}function os(O,e){return O.slice(e,Qe(O,e))}function oT(O){return(e,t,i)=>!i[0].length||(O(as(i.input,i.index))!=J.Word||O(os(i.input,i.index))!=J.Word)&&(O(os(i.input,i.index+i[0].length))!=J.Word||O(as(i.input,i.index+i[0].length))!=J.Word)}var Ho=class extends ss{nextMatch(e,t,i){let r=oi(this.spec,e,i,e.doc.length).next();return r.done&&(r=oi(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,i){for(let r=1;;r++){let n=Math.max(t,i-r*1e4),s=oi(this.spec,e,n,i),a=null;for(;!s.next().done;)a=s.value;if(a&&(n==t||a.from>n+10))return a;if(n==t)return null}}prevMatch(e,t,i){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,i,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,i)=>{if(i=="&")return e.match[0];if(i=="$")return"$";for(let r=i.length;r>0;r--){let n=+i.slice(0,r);if(n>0&&n<e.match.length)return e.match[n]+i.slice(r)}return t})}matchAll(e,t){let i=oi(this.spec,e,0,e.doc.length),r=[];for(;!i.next().done;){if(r.length>=t)return null;r.push(i.value)}return r}highlight(e,t,i,r){let n=oi(this.spec,e,Math.max(0,t-250),Math.min(i+250,e.doc.length));for(;!n.next().done;)r(n.value.from,n.value.to)}},Qr=V.define(),tl=V.define(),aO=he.define({create(O){return new ur(Ko(O).create(),null)},update(O,e){for(let t of e.effects)t.is(Qr)?O=new ur(t.value.create(),O.panel):t.is(tl)&&(O=new ur(O.query,t.value?Ol:null));return O},provide:O=>SO.from(O,e=>e.panel)});var ur=class{constructor(e,t){this.query=e,this.panel=t}},lT=Z.mark({class:"cm-searchMatch"}),cT=Z.mark({class:"cm-searchMatch cm-searchMatch-selected"}),hT=fe.fromClass(class{constructor(O){this.view=O,this.decorations=this.highlight(O.state.field(aO))}update(O){let e=O.state.field(aO);(e!=O.startState.field(aO)||O.docChanged||O.selectionSet||O.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:O,panel:e}){if(!e||!O.spec.valid)return Z.none;let{view:t}=this,i=new Me;for(let r=0,n=t.visibleRanges,s=n.length;r<s;r++){let{from:a,to:o}=n[r];for(;r<s-1&&o>n[r+1].from-500;)o=n[++r].to;O.highlight(t.state,a,o,(c,l)=>{let h=t.state.selection.ranges.some(f=>f.from==c&&f.to==l);i.add(c,l,h?cT:lT)})}return i.finish()}},{decorations:O=>O.decorations});function $r(O){return e=>{let t=e.state.field(aO,!1);return t&&t.query.spec.valid?O(e,t):XQ(e)}}var ls=$r((O,{query:e})=>{let{to:t}=O.state.selection.main,i=e.nextMatch(O.state,t,t);if(!i)return!1;let r=P.single(i.from,i.to),n=O.state.facet(li);return O.dispatch({selection:r,effects:[il(O,i),n.scrollToMatch(r.main,O)],userEvent:"select.search"}),SQ(O),!0}),cs=$r((O,{query:e})=>{let{state:t}=O,{from:i}=t.selection.main,r=e.prevMatch(t,i,i);if(!r)return!1;let n=P.single(r.from,r.to),s=O.state.facet(li);return O.dispatch({selection:n,effects:[il(O,r),s.scrollToMatch(n.main,O)],userEvent:"select.search"}),SQ(O),!0}),fT=$r((O,{query:e})=>{let t=e.matchAll(O.state,1e3);return!t||!t.length?!1:(O.dispatch({selection:P.create(t.map(i=>P.range(i.from,i.to))) Line truncated `:i=="r"?"\r":i=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new Ho(this):new Fo(this)}getCursor(e,t=0,i){let r=e.doc?e:M.create({doc:e});return i==null&&(i=r.doc.length),this.regexp?oi(this,r,t,i):ai(this,r,t,i)}},ss=class{constructor(e){this.spec=e}};function ai(O,e,t,i){return new oO(e.doc,O.unquoted,t,i,O.caseSensitive?void 0:r=>r.toLowerCase(),O.wholeWord?aT(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function aT(O,e){return(t,i,r,n)=>((n>t||n+r.length<i)&&(n=Math.max(0,t-2),r=O.sliceString(n,Math.min(O.length,i+2))),(e(as(r,t-n))!=J.Word||e(os(r,t-n))!=J.Word)&&(e(os(r,i-n))!=J.Word||e(as(r,i-n))!=J.Word))}var Fo=class extends ss{constructor(e){super(e)}nextMatch(e,t,i){let r=ai(this.spec,e,i,e.doc.length).nextOverlapping();if(r.done){let n=Math.min(e.doc.length,t+this.spec.unquoted.length);r=ai(this.spec,e,0,n).nextOverlapping()}return r.done||r.value.from==t&&r.value.to==i?null:r.value}prevMatchInRange(e,t,i){for(let r=i;;){let n=Math.max(t,r-1e4-this.spec.unquoted.length),s=ai(this.spec,e,n,r),a=null;for(;!s.nextOverlapping().done;)a=s.value;if(a)return a;if(n==t)return null;r-=1e4}}prevMatch(e,t,i){let r=this.prevMatchInRange(e,0,t);return r||(r=this.prevMatchInRange(e,Math.max(0,i-this.spec.unquoted.length),e.doc.length)),r&&(r.from!=t||r.to!=i)?r:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let i=ai(this.spec,e,0,e.doc.length),r=[];for(;!i.next().done;){if(r.length>=t)return null;r.push(i.value)}return r}highlight(e,t,i,r){let n=ai(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(i+this.spec.unquoted.length,e.doc.length));for(;!n.next().done;)r(n.value.from,n.value.to)}};function oi(O,e,t,i){return new ts(e.doc,O.search,{ignoreCase:!O.caseSensitive,test:O.wholeWord?oT(e.charCategorizer(e.selection.main.head)):void 0},t,i)}function as(O,e){return O.slice(Qe(O,e,!1),e)}function os(O,e){return O.slice(e,Qe(O,e))}function oT(O){return(e,t,i)=>!i[0].length||(O(as(i.input,i.index))!=J.Word||O(os(i.input,i.index))!=J.Word)&&(O(os(i.input,i.index+i[0].length))!=J.Word||O(as(i.input,i.index+i[0].length))!=J.Word)}var Ho=class extends ss{nextMatch(e,t,i){let r=oi(this.spec,e,i,e.doc.length).next();return r.done&&(r=oi(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,i){for(let r=1;;r++){let n=Math.max(t,i-r*1e4),s=oi(this.spec,e,n,i),a=null;for(;!s.next().done;)a=s.value;if(a&&(n==t||a.from>n+10))return a;if(n==t)return null}}prevMatch(e,t,i){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,i,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,i)=>{if(i=="&")return e.match[0];if(i=="$")return"$";for(let r=i.length;r>0;r--){let n=+i.slice(0,r);if(n>0&&n<e.match.length)return e.match[n]+i.slice(r)}return t})}matchAll(e,t){let i=oi(this.spec,e,0,e.doc.length),r=[];for(;!i.next().done;){if(r.length>=t)return null;r.push(i.value)}return r}highlight(e,t,i,r){let n=oi(this.spec,e,Math.max(0,t-250),Math.min(i+250,e.doc.length));for(;!n.next().done;)r(n.value.from,n.value.to)}},Qr=V.define(),tl=V.define(),aO=he.define({create(O){return new ur(Ko(O).create(),null)},update(O,e){for(let t of e.effects)t.is(Qr)?O=new ur(t.value.create(),O.panel):t.is(tl)&&(O=new ur(O.query,t.value?Ol:null));return O},provide:O=>SO.from(O,e=>e.panel)});var ur=class{constructor(e,t){this.query=e,this.panel=t}},lT=Z.mark({class:"cm-searchMatch"}),cT=Z.mark({class:"cm-searchMatch cm-searchMatch-selected"}),hT=fe.fromClass(class{constructor(O){this.view=O,this.decorations=this.highlight(O.state.field(aO))}update(O){let e=O.state.field(aO);(e!=O.startState.field(aO)||O.docChanged||O.selectionSet||O.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:O,panel:e}){if(!e||!O.spec.valid)return Z.none;let{view:t}=this,i=new Me;for(let r=0,n=t.visibleRanges,s=n.length;r<s;r++){let{from:a,to:o}=n[r];for(;r<s-1&&o>n[r+1].from-500;)o=n[++r].to;O.highlight(t.state,a,o,(l,c)=>{let h=t.state.selection.ranges.some(f=>f.from==l&&f.to==c);i.add(l,c,h?cT:lT)})}return i.finish()}},{decorations:O=>O.decorations});function $r(O){return e=>{let t=e.state.field(aO,!1);return t&&t.query.spec.valid?O(e,t):XQ(e)}}var ls=$r((O,{query:e})=>{let{to:t}=O.state.selection.main,i=e.nextMatch(O.state,t,t);if(!i)return!1;let r=S.single(i.from,i.to),n=O.state.facet(li);return O.dispatch({selection:r,effects:[il(O,i),n.scrollToMatch(r.main,O)],userEvent:"select.search"}),SQ(O),!0}),cs=$r((O,{query:e})=>{let{state:t}=O,{from:i}=t.selection.main,r=e.prevMatch(t,i,i);if(!r)return!1;let n=S.single(r.from,r.to),s=O.state.facet(li);return O.dispatch({selection:n,effects:[il(O,r),s.scrollToMatch(n.main,O)],userEvent:"select.search"}),SQ(O),!0}),fT=$r((O,{query:e})=>{let t=e.matchAll(O.state,1e3);return!t||!t.length?!1:(O.dispatch({selection:S.create(t.map(i=>S.range(i.from,i.to))) Line truncated
\${} \${}
}`,{label:"select",detail:"statement",type:"keyword"}),U("case ${}:\n${}",{label:"case",type:"keyword"}),U("switch ${} {\n ${}\n}",{label:"switch",detail:"statement",type:"keyword"}),U("switch ${}.(${type}) {\n ${}\n}",{label:"switch",detail:"type statement",type:"keyword"}),U("if ${} {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),U(`if \${} { }`,{label:"select",detail:"statement",type:"keyword"}),U("case ${}:\n${}",{label:"case",type:"keyword"}),U("switch ${} {\n ${}\n}",{label:"switch",detail:"statement",type:"keyword"}),U("switch ${}.(${type}) {\n ${}\n}",{label:"switch",detail:"type statement",type:"keyword"}),U("if ${} {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),U(`if \${} {
\${} \${}
} else { } else {
\${} \${}
}`,{label:"if",detail:"/ else block",type:"keyword"}),U('import ${name} "${module}"\n${}',{label:"import",detail:"declaration",type:"keyword"})],Y$=new yt,R$=new Set(["SourceFile","Block","FunctionDecl","MethodDecl","FunctionLiteral","ForStatement","SwitchStatement","TypeSwitchStatement","IfStatement"]);function ui(O,e){return(t,i)=>{e:for(let r=t.node.firstChild,n=0,s=null;;){for(;!r;){if(!n)break e;n--,r=s.nextSibling,s=s.parent}e&&r.name==e||r.name=="SpecList"?(n++,s=r,r=r.firstChild):(r.name=="DefName"&&i(r,O),r=r.nextSibling)}return!0}}var Ob={FunctionDecl:ui("function"),VarDecl:ui("var","VarSpec"),ConstDecl:ui("constant","ConstSpec"),TypeDecl:ui("type","TypeSpec"),ImportDecl:ui("constant","ImportSpec"),Parameter:ui("var"),__proto__:null};function _$(O,e){let t=Y$.get(e);if(t)return t;let i=[],r=!0;function n(s,a){let o=O.sliceString(s.from,s.to);i.push({label:o,type:a})}return e.cursor(A.IncludeAnonymous).iterate(s=>{if(r)r=!1;else if(s.name){let a=Ob[s.name];if(a&&a(s,n)||R$.has(s.name))return!1}else if(s.to-s.from>8192){for(let a of _$(O,s.node))i.push(a);return!1}}),Y$.set(e,i),i}var Z$=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,V$=["String","LineComment","BlockComment","DefName","LabelName","FieldName",".","?."],ib=O=>{let e=W(O.state).resolveInner(O.pos,-1);if(V$.indexOf(e.name)>-1)return null;let t=e.name=="VariableName"||e.to-e.from<20&&Z$.test(O.state.sliceDoc(e.from,e.to));if(!t&&!O.explicit)return null;let i=[];for(let r=e;r;r=r.parent)R$.has(r.name)&&(i=i.concat(_$(O.state.doc,r)));return{options:i,from:t?e.from:O.pos,validFor:Z$}},Cl=se.define({name:"go",parser:v$.configure({props:[ae.add({IfStatement:le({except:/^\s*({|else\b)/}),LabeledStatement:nO,"SwitchBlock SelectBlock":O=>{let e=O.textAfter,t=/^\s*\}/.test(e),i=/^\s*(case|default)\b/.test(e);return O.baseIndent+(t||i?0:O.unit)},Block:ye({closing:"}"}),BlockComment:()=>null,Statement:le({except:/^{/})}),te.add({"Block SwitchBlock SelectBlock LiteralValue InterfaceType StructType SpecList":me,BlockComment(O){return{from:O.from+2,to:O.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case\b|default\b|\})$/}}),rb=O=>({label:O,type:"keyword"}),nb="interface struct chan map package go return break continue goto fallthrough else defer range true false nil".split(" ").map(rb);function q$(){let O=tb.concat(nb);return new K(Cl,[Cl.data.of({autocomplete:lO(V$,zt(O))}),Cl.data.of({autocomplete:ib})])}var sb=55,ab=1,ob=56,lb=2,cb=57,hb=3,z$=4,fb=5,Ml=6,L$=7,M$=8,D$=9,I$=10,db=11,ub=12,Qb=13,Gl=58,$b=14,pb=15,W$=59,B$=21,mb=23,N$=24,gb=25,Al=27,F$=28,Pb=29,Sb=32,Xb=35,Tb=37,yb=38,bb=0,xb=1,wb={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},kb={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},U$={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function vb(O){return O==45||O==46||O==58||O>=65&&O<=90||O==95||O>=97&&O<=122||O>=161}var j$=null,C$=null,G$=0;function Ll(O,e){let t=O.pos+e;if(G$==t&&C$==O)return j$;let i=O.peek(e),r="";for(;vb(i);)r+=String.fromCharCode(i),i=O.peek(++e);return C$=O,G$=t,j$=r?r.toLowerCase():i==Yb||i==Zb?void 0:null}var H$=60,Ts=62,Dl=47,Yb=63,Zb=33,Rb=45;function E$(O,e){this.name=O,this.parent=e}var _b=[Ml,I$,L$,M$,D$],Vb=new Ge({start:null,shift(O,e,t,i){return _b.indexOf(e)>-1?new E$(Ll(i,1)||"",O):O},reduce(O,e){return e==B$&&O?O.parent:O},reuse(O,e,t,i){let r=e.type.id;return r==Ml||r==Tb?new E$(Ll(i,1)||"",O):O},strict:!1}),qb=new z((O,e)=>{if(O.next!=H$){O.next<0&&e.context&&O.acceptToken(Gl);return}O.advance();let t=O.next==Dl;t&&O.advance();let i=Ll(O,0);if(i===void 0)return;if(!i)return O.acceptToken(t?pb:$b);let r=e.context?e.context.name:null;if(t){if(i==r)return O.acceptToken(db);if(r&&kb[r])return O.acceptToken(Gl,-2);if(e.dialectEnabled(bb))return O.acceptToken(ub);for(let n=e.context;n;n=n.parent)if(n.name==i)return;O.acceptToken(Qb)}else{if(i=="script")return O.acceptToken(L$);if(i=="style")return O.acceptToken(M$);if(i=="textarea")return O.acceptToken(D$);if(wb.hasOwnProperty(i))return O.acceptToken(I$);r&&U$[r]&&U$[r][i]?O.acceptToken(Gl,-1):O.acceptToken(Ml)}},{contextual:!0}),zb=new z(O=>{for(let e=0,t=0;;t++){if(O.next<0){t&&O.acceptToken(W$);break}if(O.next==Rb)e++;else if(O.next==Ts&&e>=2){t>=3&&O.acceptToken(W$,-2);break}else e=0;O.advance()}});function Wb(O){for(;O;O=O.parent)if(O.name=="svg"||O.name=="math")return!0;return!1}var Ub=new z(( Line truncated }`,{label:"if",detail:"/ else block",type:"keyword"}),U('import ${name} "${module}"\n${}',{label:"import",detail:"declaration",type:"keyword"})],Y$=new yt,R$=new Set(["SourceFile","Block","FunctionDecl","MethodDecl","FunctionLiteral","ForStatement","SwitchStatement","TypeSwitchStatement","IfStatement"]);function ui(O,e){return(t,i)=>{e:for(let r=t.node.firstChild,n=0,s=null;;){for(;!r;){if(!n)break e;n--,r=s.nextSibling,s=s.parent}e&&r.name==e||r.name=="SpecList"?(n++,s=r,r=r.firstChild):(r.name=="DefName"&&i(r,O),r=r.nextSibling)}return!0}}var Ob={FunctionDecl:ui("function"),VarDecl:ui("var","VarSpec"),ConstDecl:ui("constant","ConstSpec"),TypeDecl:ui("type","TypeSpec"),ImportDecl:ui("constant","ImportSpec"),Parameter:ui("var"),__proto__:null};function _$(O,e){let t=Y$.get(e);if(t)return t;let i=[],r=!0;function n(s,a){let o=O.sliceString(s.from,s.to);i.push({label:o,type:a})}return e.cursor(A.IncludeAnonymous).iterate(s=>{if(r)r=!1;else if(s.name){let a=Ob[s.name];if(a&&a(s,n)||R$.has(s.name))return!1}else if(s.to-s.from>8192){for(let a of _$(O,s.node))i.push(a);return!1}}),Y$.set(e,i),i}var Z$=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,V$=["String","LineComment","BlockComment","DefName","LabelName","FieldName",".","?."],ib=O=>{let e=W(O.state).resolveInner(O.pos,-1);if(V$.indexOf(e.name)>-1)return null;let t=e.name=="VariableName"||e.to-e.from<20&&Z$.test(O.state.sliceDoc(e.from,e.to));if(!t&&!O.explicit)return null;let i=[];for(let r=e;r;r=r.parent)R$.has(r.name)&&(i=i.concat(_$(O.state.doc,r)));return{options:i,from:t?e.from:O.pos,validFor:Z$}},Cl=se.define({name:"go",parser:v$.configure({props:[ae.add({IfStatement:le({except:/^\s*({|else\b)/}),LabeledStatement:nO,"SwitchBlock SelectBlock":O=>{let e=O.textAfter,t=/^\s*\}/.test(e),i=/^\s*(case|default)\b/.test(e);return O.baseIndent+(t||i?0:O.unit)},Block:ye({closing:"}"}),BlockComment:()=>null,Statement:le({except:/^{/})}),te.add({"Block SwitchBlock SelectBlock LiteralValue InterfaceType StructType SpecList":me,BlockComment(O){return{from:O.from+2,to:O.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case\b|default\b|\})$/}}),rb=O=>({label:O,type:"keyword"}),nb="interface struct chan map package go return break continue goto fallthrough else defer range true false nil".split(" ").map(rb);function q$(){let O=tb.concat(nb);return new K(Cl,[Cl.data.of({autocomplete:lO(V$,zt(O))}),Cl.data.of({autocomplete:ib})])}var sb=55,ab=1,ob=56,lb=2,cb=57,hb=3,z$=4,fb=5,Ml=6,L$=7,M$=8,D$=9,I$=10,db=11,ub=12,Qb=13,Gl=58,$b=14,pb=15,W$=59,B$=21,mb=23,N$=24,gb=25,Al=27,F$=28,Pb=29,Sb=32,Xb=35,Tb=37,yb=38,bb=0,xb=1,wb={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},kb={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},U$={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function vb(O){return O==45||O==46||O==58||O>=65&&O<=90||O==95||O>=97&&O<=122||O>=161}var j$=null,C$=null,G$=0;function Ll(O,e){let t=O.pos+e;if(G$==t&&C$==O)return j$;let i=O.peek(e),r="";for(;vb(i);)r+=String.fromCharCode(i),i=O.peek(++e);return C$=O,G$=t,j$=r?r.toLowerCase():i==Yb||i==Zb?void 0:null}var H$=60,Ts=62,Dl=47,Yb=63,Zb=33,Rb=45;function E$(O,e){this.name=O,this.parent=e}var _b=[Ml,I$,L$,M$,D$],Vb=new Ee({start:null,shift(O,e,t,i){return _b.indexOf(e)>-1?new E$(Ll(i,1)||"",O):O},reduce(O,e){return e==B$&&O?O.parent:O},reuse(O,e,t,i){let r=e.type.id;return r==Ml||r==Tb?new E$(Ll(i,1)||"",O):O},strict:!1}),qb=new z((O,e)=>{if(O.next!=H$){O.next<0&&e.context&&O.acceptToken(Gl);return}O.advance();let t=O.next==Dl;t&&O.advance();let i=Ll(O,0);if(i===void 0)return;if(!i)return O.acceptToken(t?pb:$b);let r=e.context?e.context.name:null;if(t){if(i==r)return O.acceptToken(db);if(r&&kb[r])return O.acceptToken(Gl,-2);if(e.dialectEnabled(bb))return O.acceptToken(ub);for(let n=e.context;n;n=n.parent)if(n.name==i)return;O.acceptToken(Qb)}else{if(i=="script")return O.acceptToken(L$);if(i=="style")return O.acceptToken(M$);if(i=="textarea")return O.acceptToken(D$);if(wb.hasOwnProperty(i))return O.acceptToken(I$);r&&U$[r]&&U$[r][i]?O.acceptToken(Gl,-1):O.acceptToken(Ml)}},{contextual:!0}),zb=new z(O=>{for(let e=0,t=0;;t++){if(O.next<0){t&&O.acceptToken(W$);break}if(O.next==Rb)e++;else if(O.next==Ts&&e>=2){t>=3&&O.acceptToken(W$,-2);break}else e=0;O.advance()}});function Wb(O){for(;O;O=O.parent)if(O.name=="svg"||O.name=="math")return!0;return!1}var Ub=new z(( Line truncated
\${} \${}
} catch (\${error}) { } catch (\${error}) {
\${} \${}
@@ -27,12 +27,12 @@ var Gs=[],hh=[];(()=>{let O="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,
constructor(\${params}) { constructor(\${params}) {
\${} \${}
} }
}`,{label:"class",detail:"definition",type:"keyword"}),U('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),U('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],gx=sp.concat([U("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),U("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),U("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),ip=new yt,ap=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function xr(O){return(e,t)=>{let i=e.node.getChild("VariableDefinition");return i&&t(i,O),!0}}var Px=["FunctionDeclaration"],Sx={FunctionDeclaration:xr("function"),ClassDeclaration:xr("class"),ClassExpression:()=>!0,EnumDeclaration:xr("constant"),TypeAliasDeclaration:xr("type"),NamespaceDeclaration:xr("namespace"),VariableDefinition(O,e){O.matchContext(Px)||e(O,"variable")},TypeDefinition(O,e){e(O,"type")},__proto__:null};function op(O,e){let t=ip.get(e);if(t)return t;let i=[],r=!0;function n(s,a){let o=O.sliceString(s.from,s.to);i.push({label:o,type:a})}return e.cursor(A.IncludeAnonymous).iterate(s=>{if(r)r=!1;else if(s.name){let a=Sx[s.name];if(a&&a(s,n)||ap.has(s.name))return!1}else if(s.to-s.from>8192){for(let a of op(O,s.node))i.push(a);return!1}}),ip.set(e,i),i}var rp=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,lp=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function Xx(O){let e=W(O.state).resolveInner(O.pos,-1);if(lp.indexOf(e.name)>-1)return null;let t=e.name=="VariableName"||e.to-e.from<20&&rp.test(O.state.sliceDoc(e.from,e.to));if(!t&&!O.explicit)return null;let i=[];for(let r=e;r;r=r.parent)ap.has(r.name)&&(i=i.concat(op(O.state.doc,r)));return{options:i,from:t?e.from:O.pos,validFor:rp}}var ut=se.define({name:"javascript",parser:Op.configure({props:[ae.add({IfStatement:le({except:/^\s*({|else\b)/}),TryStatement:le({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:nO,SwitchBody:O=>{let e=O.textAfter,t=/^\s*\}/.test(e),i=/^\s*(case|default)\b/.test(e);return O.baseIndent+(t?0:i?1:2)*O.unit},Block:ye({closing:"}"}),ArrowFunction:O=>O.baseIndent+O.unit,"TemplateString BlockComment":()=>null,"Statement Property":le({except:/^\s*{/}),JSXElement(O){let e=/^\s*<\//.test(O.textAfter);return O.lineIndent(O.node.from)+(e?0:O.unit)},JSXEscape(O){let e=/\s*\}/.test(O.textAfter);return O.lineIndent(O.node.from)+(e?0:O.unit)},"JSXOpenTag JSXSelfClosingTag"(O){return O.column(O.node.from)+O.unit}}),te.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":me,BlockComment(O){return{from:O.from+2,to:O.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),cp={test:O=>/^JSX/.test(O.name),facet:ar({commentTokens:{block:{open:"{/*",close:"*/}"}}})},Kl=ut.configure({dialect:"ts"},"typescript"),Jl=ut.configure({dialect:"jsx",props:[An.add(O=>O.isTop?[cp]:void 0)]}),ec=ut.configure({dialect:"jsx ts",props:[An.add(O=>O.isTop?[cp]:void 0)]},"typescript"),hp=O=>({label:O,type:"keyword"}),fp="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(hp),Tx=fp.concat(["declare","implements","private","protected","public"].map(hp));function ys(O={}){let e=O.jsx?O.typescript?ec:Jl:O.typescript?Kl:ut,t=O.typescript?gx.concat(Tx):sp.concat(fp);return new K(e,[ut.data.of({autocomplete:lO(lp,zt(t))}),ut.data.of({autocomplete:Xx}),O.jsx?xx:[]])}function yx(O){for(;;){if(O.name=="JSXOpenTag"||O.name=="JSXSelfClosingTag"||O.name=="JSXFragmentTag")return O;if(O.name=="JSXEscape"||!O.parent)return null;O=O.parent}}function np(O,e,t=O.length){for(let i=e?.firstChild;i;i=i.nextSibling)if(i.name=="JSXIdentifier"||i.name=="JSXBuiltin"||i.name=="JSXNamespacedName"||i.name=="JSXMemberExpression")return O.sliceString(i.from,Math.min(i.to,t));return""}var bx=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),xx=y.inputHandler.of((O,e,t,i,r)=>{if((bx?O.composing:O.compositionStarted)||O.state.readOnly||e!=t||i!=">"&&i!="/"||!ut.isActiveAt(O.state,e,-1))return!1;let n=r(),{state:s}=n,a=s.changeByRange(o=>{var c;let{head:l}=o,h=W(s).resolveInner(l-1,-1),f;if(h.name=="JSXStartTag"&&(h=h.parent),!(s.doc.sliceString(l-1,l)!=i||h.name=="JSXAttributeValue"&&h.to>l)){if(i==">"&&h.name=="JSXFragmentTag")return{range:o,changes:{from:l,insert:"</>"}};if(i=="/"&&h.name=="JSXStartCloseTag"){let u=h.parent,Q=u.parent;if(Q&&u.from==l-2&&((f=np(s.doc,Q.firstChild,l))||((c=Q.firstChild)===null||c===void 0? Line truncated }`,{label:"class",detail:"definition",type:"keyword"}),U('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),U('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],gx=sp.concat([U("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),U("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),U("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),ip=new yt,ap=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function xr(O){return(e,t)=>{let i=e.node.getChild("VariableDefinition");return i&&t(i,O),!0}}var Px=["FunctionDeclaration"],Sx={FunctionDeclaration:xr("function"),ClassDeclaration:xr("class"),ClassExpression:()=>!0,EnumDeclaration:xr("constant"),TypeAliasDeclaration:xr("type"),NamespaceDeclaration:xr("namespace"),VariableDefinition(O,e){O.matchContext(Px)||e(O,"variable")},TypeDefinition(O,e){e(O,"type")},__proto__:null};function op(O,e){let t=ip.get(e);if(t)return t;let i=[],r=!0;function n(s,a){let o=O.sliceString(s.from,s.to);i.push({label:o,type:a})}return e.cursor(A.IncludeAnonymous).iterate(s=>{if(r)r=!1;else if(s.name){let a=Sx[s.name];if(a&&a(s,n)||ap.has(s.name))return!1}else if(s.to-s.from>8192){for(let a of op(O,s.node))i.push(a);return!1}}),ip.set(e,i),i}var rp=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,lp=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function Xx(O){let e=W(O.state).resolveInner(O.pos,-1);if(lp.indexOf(e.name)>-1)return null;let t=e.name=="VariableName"||e.to-e.from<20&&rp.test(O.state.sliceDoc(e.from,e.to));if(!t&&!O.explicit)return null;let i=[];for(let r=e;r;r=r.parent)ap.has(r.name)&&(i=i.concat(op(O.state.doc,r)));return{options:i,from:t?e.from:O.pos,validFor:rp}}var ut=se.define({name:"javascript",parser:Op.configure({props:[ae.add({IfStatement:le({except:/^\s*({|else\b)/}),TryStatement:le({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:nO,SwitchBody:O=>{let e=O.textAfter,t=/^\s*\}/.test(e),i=/^\s*(case|default)\b/.test(e);return O.baseIndent+(t?0:i?1:2)*O.unit},Block:ye({closing:"}"}),ArrowFunction:O=>O.baseIndent+O.unit,"TemplateString BlockComment":()=>null,"Statement Property":le({except:/^\s*{/}),JSXElement(O){let e=/^\s*<\//.test(O.textAfter);return O.lineIndent(O.node.from)+(e?0:O.unit)},JSXEscape(O){let e=/\s*\}/.test(O.textAfter);return O.lineIndent(O.node.from)+(e?0:O.unit)},"JSXOpenTag JSXSelfClosingTag"(O){return O.column(O.node.from)+O.unit}}),te.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":me,BlockComment(O){return{from:O.from+2,to:O.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),cp={test:O=>/^JSX/.test(O.name),facet:ar({commentTokens:{block:{open:"{/*",close:"*/}"}}})},Kl=ut.configure({dialect:"ts"},"typescript"),Jl=ut.configure({dialect:"jsx",props:[An.add(O=>O.isTop?[cp]:void 0)]}),ec=ut.configure({dialect:"jsx ts",props:[An.add(O=>O.isTop?[cp]:void 0)]},"typescript"),hp=O=>({label:O,type:"keyword"}),fp="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(hp),Tx=fp.concat(["declare","implements","private","protected","public"].map(hp));function ys(O={}){let e=O.jsx?O.typescript?ec:Jl:O.typescript?Kl:ut,t=O.typescript?gx.concat(Tx):sp.concat(fp);return new K(e,[ut.data.of({autocomplete:lO(lp,zt(t))}),ut.data.of({autocomplete:Xx}),O.jsx?xx:[]])}function yx(O){for(;;){if(O.name=="JSXOpenTag"||O.name=="JSXSelfClosingTag"||O.name=="JSXFragmentTag")return O;if(O.name=="JSXEscape"||!O.parent)return null;O=O.parent}}function np(O,e,t=O.length){for(let i=e?.firstChild;i;i=i.nextSibling)if(i.name=="JSXIdentifier"||i.name=="JSXBuiltin"||i.name=="JSXNamespacedName"||i.name=="JSXMemberExpression")return O.sliceString(i.from,Math.min(i.to,t));return""}var bx=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),xx=y.inputHandler.of((O,e,t,i,r)=>{if((bx?O.composing:O.compositionStarted)||O.state.readOnly||e!=t||i!=">"&&i!="/"||!ut.isActiveAt(O.state,e,-1))return!1;let n=r(),{state:s}=n,a=s.changeByRange(o=>{var l;let{head:c}=o,h=W(s).resolveInner(c-1,-1),f;if(h.name=="JSXStartTag"&&(h=h.parent),!(s.doc.sliceString(c-1,c)!=i||h.name=="JSXAttributeValue"&&h.to>c)){if(i==">"&&h.name=="JSXFragmentTag")return{range:o,changes:{from:c,insert:"</>"}};if(i=="/"&&h.name=="JSXStartCloseTag"){let u=h.parent,Q=u.parent;if(Q&&u.from==c-2&&((f=np(s.doc,Q.firstChild,c))||((l=Q.firstChild)===null||l===void 0? Line truncated
`+t.scrub(),n=this.advance(r);return n>-1&&n<r.length?this.complete(e,i,n):!1}finish(e,t){return(this.stage==2||this.stage==3)&&vr(t.content,this.pos)==t.content.length?this.complete(e,t,t.content.length):!1}complete(e,t,i){return e.addLeafElement(t,L(b.LinkReference,this.start,this.start+i,this.elts)),!0}nextStage(e){return e?(this.pos=e.to-this.start,this.elts.push(e),this.stage++,!0):(e===!1&&(this.stage=-1),!1)}advance(e){for(;;){if(this.stage==-1)return-1;if(this.stage==0){if(!this.nextStage(Om(e,this.pos,this.start,!0)))return-1;if(e.charCodeAt(this.pos)!=58)return this.stage=-1;this.elts.push(L(b.LinkMark,this.pos+this.start,this.pos+this.start+1)),this.pos++}else if(this.stage==1){if(!this.nextStage(em(e,vr(e,this.pos),this.start)))return-1}else if(this.stage==2){let t=vr(e,this.pos),i=0;if(t>this.pos){let r=tm(e,t,this.start);if(r){let n=nc(e,r.to-this.start);n>0&&(this.nextStage(r),i=n)}}return i||(i=nc(e,this.pos)),i>0&&i<e.length?i:-1}else return nc(e,this.pos)}}};function nc(O,e){for(;e<O.length;e++){let t=O.charCodeAt(e);if(t==10)break;if(!at(t))return-1}return e}var fc=class{nextLine(e,t,i){let r=t.depth<e.stack.length?-1:Mp(t),n=t.next;if(r<0)return!1;let s=L(b.HeaderMark,e.lineStart+t.pos,e.lineStart+r);return e.nextLine(),e.addLeafElement(i,L(n==61?b.SetextHeading1:b.SetextHeading2,i.start,e.prevLineEnd(),[...e.parser.parseInline(i.content,i.start),s])),!0}finish(){return!1}},Np={LinkReference(O,e){return e.content.charCodeAt(0)==91?new hc(e):null},SetextHeading(){return new fc}},jx=[(O,e)=>Lp(e)>=0,(O,e)=>Gp(e)>=0,(O,e)=>Ep(e)>=0,(O,e)=>Sc(e,O,!0)>=0,(O,e)=>Xc(e,O,!0)>=0,(O,e)=>Pc(e,O,!0)>=0,(O,e)=>Bp(e,O,!0)>=0],Cx={text:"",end:0},dc=class{constructor(e,t,i,r){this.parser=e,this.input=t,this.ranges=r,this.line=new oc,this.atEnd=!1,this.reusePlaceholders=new Map,this.stoppedAt=null,this.rangeI=0,this.to=r[r.length-1].to,this.lineStart=this.absoluteLineStart=this.absoluteLineEnd=r[0].from,this.block=ks.create(b.Document,0,this.lineStart,0,0),this.stack=[this.block],this.fragments=i.length?new mc(i,t):null,this.readLine()}get parsedPos(){return this.absoluteLineStart}advance(){if(this.stoppedAt!=null&&this.absoluteLineStart>this.stoppedAt)return this.finish();let{line:e}=this;for(;;){for(let i=0;;){let r=e.depth<this.stack.length?this.stack[this.stack.length-1]:null;for(;i<e.markers.length&&(!r||e.markers[i].from<r.end);){let n=e.markers[i++];this.addNode(n.type,n.from,n.to)}if(!r)break;this.finishContext()}if(e.pos<e.text.length)break;if(!this.nextLine())return this.finish()}if(this.fragments&&this.reuseFragment(e.basePos))return null;e:for(;;){for(let i of this.parser.blockParsers)if(i){let r=i(this,e);if(r!=!1){if(r==!0)return null;e.forward();continue e}}break}let t=new ac(this.lineStart+e.pos,e.text.slice(e.pos));for(let i of this.parser.leafBlockParsers)if(i){let r=i(this,t);r&&t.parsers.push(r)}e:for(;this.nextLine()&&e.pos!=e.text.length;){if(e.indent<e.baseIndent+4){for(let i of this.parser.endLeafBlock)if(i(this,e,t))break e}for(let i of t.parsers)if(i.nextLine(this,e,t))return null;t.content+=` `+t.scrub(),n=this.advance(r);return n>-1&&n<r.length?this.complete(e,i,n):!1}finish(e,t){return(this.stage==2||this.stage==3)&&vr(t.content,this.pos)==t.content.length?this.complete(e,t,t.content.length):!1}complete(e,t,i){return e.addLeafElement(t,L(b.LinkReference,this.start,this.start+i,this.elts)),!0}nextStage(e){return e?(this.pos=e.to-this.start,this.elts.push(e),this.stage++,!0):(e===!1&&(this.stage=-1),!1)}advance(e){for(;;){if(this.stage==-1)return-1;if(this.stage==0){if(!this.nextStage(Om(e,this.pos,this.start,!0)))return-1;if(e.charCodeAt(this.pos)!=58)return this.stage=-1;this.elts.push(L(b.LinkMark,this.pos+this.start,this.pos+this.start+1)),this.pos++}else if(this.stage==1){if(!this.nextStage(em(e,vr(e,this.pos),this.start)))return-1}else if(this.stage==2){let t=vr(e,this.pos),i=0;if(t>this.pos){let r=tm(e,t,this.start);if(r){let n=nc(e,r.to-this.start);n>0&&(this.nextStage(r),i=n)}}return i||(i=nc(e,this.pos)),i>0&&i<e.length?i:-1}else return nc(e,this.pos)}}};function nc(O,e){for(;e<O.length;e++){let t=O.charCodeAt(e);if(t==10)break;if(!at(t))return-1}return e}var fc=class{nextLine(e,t,i){let r=t.depth<e.stack.length?-1:Mp(t),n=t.next;if(r<0)return!1;let s=L(b.HeaderMark,e.lineStart+t.pos,e.lineStart+r);return e.nextLine(),e.addLeafElement(i,L(n==61?b.SetextHeading1:b.SetextHeading2,i.start,e.prevLineEnd(),[...e.parser.parseInline(i.content,i.start),s])),!0}finish(){return!1}},Np={LinkReference(O,e){return e.content.charCodeAt(0)==91?new hc(e):null},SetextHeading(){return new fc}},jx=[(O,e)=>Lp(e)>=0,(O,e)=>Gp(e)>=0,(O,e)=>Ep(e)>=0,(O,e)=>Sc(e,O,!0)>=0,(O,e)=>Xc(e,O,!0)>=0,(O,e)=>Pc(e,O,!0)>=0,(O,e)=>Bp(e,O,!0)>=0],Cx={text:"",end:0},dc=class{constructor(e,t,i,r){this.parser=e,this.input=t,this.ranges=r,this.line=new oc,this.atEnd=!1,this.reusePlaceholders=new Map,this.stoppedAt=null,this.rangeI=0,this.to=r[r.length-1].to,this.lineStart=this.absoluteLineStart=this.absoluteLineEnd=r[0].from,this.block=ks.create(b.Document,0,this.lineStart,0,0),this.stack=[this.block],this.fragments=i.length?new mc(i,t):null,this.readLine()}get parsedPos(){return this.absoluteLineStart}advance(){if(this.stoppedAt!=null&&this.absoluteLineStart>this.stoppedAt)return this.finish();let{line:e}=this;for(;;){for(let i=0;;){let r=e.depth<this.stack.length?this.stack[this.stack.length-1]:null;for(;i<e.markers.length&&(!r||e.markers[i].from<r.end);){let n=e.markers[i++];this.addNode(n.type,n.from,n.to)}if(!r)break;this.finishContext()}if(e.pos<e.text.length)break;if(!this.nextLine())return this.finish()}if(this.fragments&&this.reuseFragment(e.basePos))return null;e:for(;;){for(let i of this.parser.blockParsers)if(i){let r=i(this,e);if(r!=!1){if(r==!0)return null;e.forward();continue e}}break}let t=new ac(this.lineStart+e.pos,e.text.slice(e.pos));for(let i of this.parser.leafBlockParsers)if(i){let r=i(this,t);r&&t.parsers.push(r)}e:for(;this.nextLine()&&e.pos!=e.text.length;){if(e.indent<e.baseIndent+4){for(let i of this.parser.endLeafBlock)if(i(this,e,t))break e}for(let i of t.parsers)if(i.nextLine(this,e,t))return null;t.content+=`
`+e.scrub();for(let i of e.markers)t.marks.push(i)}return this.finishLeaf(t),null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}reuseFragment(e){if(!this.fragments.moveTo(this.absoluteLineStart+e,this.absoluteLineStart)||!this.fragments.matches(this.block.hash))return!1;let t=this.fragments.takeNodes(this);return t?(this.absoluteLineStart+=t,this.lineStart=im(this.absoluteLineStart,this.ranges),this.moveRangeI(),this.absoluteLineStart<this.to?(this.lineStart++,this.absoluteLineStart++,this.readLine()):(this.atEnd=!0,this.readLine()),!0):!1}get depth(){return this.stack.length}parentType(e=this.depth-1){return this.parser.nodeSet.types[this.stack[e].type]}nextLine(){return this.lineStart+=this.line.text.length,this.absoluteLineEnd>=this.to?(this.absoluteLineStart=this.absoluteLineEnd,this.atEnd=!0,this.readLine(),!1):(this.lineStart++,this.absoluteLineStart=this.absoluteLineEnd+1,this.moveRangeI(),this.readLine(),!0)}peekLine(){return this.scanLine(this.absoluteLineEnd+1).text}moveRangeI(){for(;this.rangeI<this.ranges.length-1&&this.absoluteLineStart>=this.ranges[this.rangeI].to;)this.rangeI++,this.absoluteLineStart=Math.max(this.absoluteLineStart,this.ranges[this.rangeI].from)}scanLine(e){let t=Cx;if(t.end=e,e>=this.to)t.text="";else if(t.text=this.lineChunkAt(e),t.end+=t.text.length,this.ranges.length>1){let i=this.absoluteLineStart,r=this.rangeI;for(;this.ranges[r].to<t.end;){r++;let n=this.ranges[r].from,s=this.lineChunkAt(n);t.end=n+s.length,t.text=t.text.slice(0,this.ranges[r-1].to-i)+s,i=t.end-t.text.length}}return t}readLine(){let{line:e}=this,{text:t,end:i}=this.scanLine(this.absoluteLineStart);for(this.absoluteLineEnd=i,e.reset(t);e.depth<this.stack.length;e.depth++){let r=this.stack[e.depth],n=this.parser.skipContextMarkup[r.type];if(!n)throw new Error("Unhandled block context "+b[r.type]);if(!n(r,this,e))break;e.forward()}}lineChunkAt(e){let t=this.input.chunk(e),i;if(this.input.lineChunks)i=t==` `+e.scrub();for(let i of e.markers)t.marks.push(i)}return this.finishLeaf(t),null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}reuseFragment(e){if(!this.fragments.moveTo(this.absoluteLineStart+e,this.absoluteLineStart)||!this.fragments.matches(this.block.hash))return!1;let t=this.fragments.takeNodes(this);return t?(this.absoluteLineStart+=t,this.lineStart=im(this.absoluteLineStart,this.ranges),this.moveRangeI(),this.absoluteLineStart<this.to?(this.lineStart++,this.absoluteLineStart++,this.readLine()):(this.atEnd=!0,this.readLine()),!0):!1}get depth(){return this.stack.length}parentType(e=this.depth-1){return this.parser.nodeSet.types[this.stack[e].type]}nextLine(){return this.lineStart+=this.line.text.length,this.absoluteLineEnd>=this.to?(this.absoluteLineStart=this.absoluteLineEnd,this.atEnd=!0,this.readLine(),!1):(this.lineStart++,this.absoluteLineStart=this.absoluteLineEnd+1,this.moveRangeI(),this.readLine(),!0)}peekLine(){return this.scanLine(this.absoluteLineEnd+1).text}moveRangeI(){for(;this.rangeI<this.ranges.length-1&&this.absoluteLineStart>=this.ranges[this.rangeI].to;)this.rangeI++,this.absoluteLineStart=Math.max(this.absoluteLineStart,this.ranges[this.rangeI].from)}scanLine(e){let t=Cx;if(t.end=e,e>=this.to)t.text="";else if(t.text=this.lineChunkAt(e),t.end+=t.text.length,this.ranges.length>1){let i=this.absoluteLineStart,r=this.rangeI;for(;this.ranges[r].to<t.end;){r++;let n=this.ranges[r].from,s=this.lineChunkAt(n);t.end=n+s.length,t.text=t.text.slice(0,this.ranges[r-1].to-i)+s,i=t.end-t.text.length}}return t}readLine(){let{line:e}=this,{text:t,end:i}=this.scanLine(this.absoluteLineStart);for(this.absoluteLineEnd=i,e.reset(t);e.depth<this.stack.length;e.depth++){let r=this.stack[e.depth],n=this.parser.skipContextMarkup[r.type];if(!n)throw new Error("Unhandled block context "+b[r.type]);if(!n(r,this,e))break;e.forward()}}lineChunkAt(e){let t=this.input.chunk(e),i;if(this.input.lineChunks)i=t==`
`?"":t;else{let r=t.indexOf(` `?"":t;else{let r=t.indexOf(`
`);i=r<0?t:t.slice(0,r)}return e+i.length>this.to?i.slice(0,this.to-e):i}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(e,t,i=0){this.block=ks.create(e,i,this.lineStart+t,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(e,t,i=0){this.startContext(this.parser.getNodeType(e),t,i)}addNode(e,t,i){typeof e=="number"&&(e=new D(this.parser.nodeSet.types[e],gi,gi,(i??this.prevLineEnd())-t)),this.block.addChild(e,t-this.block.from)}addElement(e){this.block.addChild(e.toTree(this.parser.nodeSet),e.from-this.block.from)}addLeafElement(e,t){this.addNode(this.buffer.writeElements(pc(t.children,e.marks),-t.from).finish(t.type,t.to-t.from),t.from)}finishContext(){let e=this.stack.pop(),t=this.stack[this.stack.length-1];t.addChild(e.toTree(this.parser.nodeSet),e.from-t.from),this.block=t}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(e){return this.ranges.length>1?Fp(this.ranges,0,e.topNode,this.ranges[0].from,this.reusePlaceholders):e}finishLeaf(e){for(let i of e.parsers)if(i.finish(this,e))return;let t=pc(this.parser.parseInline(e.content,e.start),e.marks);this.addNode(this.buffer.writeElements(t,-e.start).finish(b.Paragraph,e.content.length),e.start)}elt(e,t,i,r){return typeof e=="string"?L(this.parser.getNodeType(e),t,i,r):new Ys(e,t)}get buffer(){return new vs(this.parser.nodeSet)}};function Fp(O,e,t,i,r){let n=O[e].to,s=[],a=[],o=t.from+i;function c(l,h){for(;h?l>=n:l>n;){let f=O[e+1].from-n;i+=f,l+=f,e++,n=O[e].to}}for(let l=t.firstChild;l;l=l.nextSibling){c(l.from+i,!0);let h=l.from+i,f,u=r.get(l.tree);u?f=u:l.to+i>n?(f=Fp(O,e,l,i,r),c(l.to+i,!1)):f=l.toTree(),s.push(f),a.push(h-o)}return c(t.to+i,!1),new D(t.type,s,a,t.to+i-o,t.tree?t.tree.propValues:void 0)}var Zr=class O extends Jt{constructor(e,t,i,r,n,s,a,o,c){super(),this.nodeSet=e,this.blockParsers=t,this.leafBlockParsers=i,this.blockNames=r,this.endLeafBlock=n,this.skipContextMarkup=s,this.inlineParsers=a,this.inlineNames=o,this.wrappers=c,this.nodeTypes=Object.create(null);for(let l of e.types)this.nodeTypes[l.name]=l.id}createParse(e,t,i){let r=new dc(this,e,t,i);for(let n of this.wrappers)r=n(r,e,t,i);return r}configure(e){let t=uc(e);if(!t)return this;let{nodeSet:i,skipContextMarkup:r}=this,n=this.blockParsers.slice(),s=this.leafBlockParsers.slice(),a=this.blockNames.slice(),o=this.inlineParsers.slice(),c=this.inlineNames.slice(),l=this.endLeafBlock.slice(),h=this.wrappers;if(kr(t.defineNodes)){r=Object.assign({},r);let f=i.types.slice(),u;for(let Q of t.defineNodes){let{name:$,block:p,composite:m,style:g}=typeof Q=="string"?{name:Q}:Q;if(f.some(S=>S.name==$))continue;m&&(r[f.length]=(S,x,w)=>m(x,w,S.value));let X=f.length,T=m?["Block","BlockContext"]:p?X>=b.ATXHeading1&&X<=b.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;f.push(de.define({id:X,name:$,props:T&&[[_.group,T]]})),g&&(u||(u={}),Array.isArray(g)||g instanceof Ne?u[$]=g:Object.assign(u,g))}i=new Ht(f),u&&(i=i.extend(N(u)))}if(kr(t.props)&&(i=i.extend(...t.props)),kr(t.remove))for(let f of t.remove){let u=this.blockNames.indexOf(f),Q=this.inlineNames.indexOf(f);u>-1&&(n[u]=s[u]=void 0),Q>-1&&(o[Q]=void 0)}if(kr(t.parseBlock))for(let f of t.parseBlock){let u=a.indexOf(f.name);if(u>-1)n[u]=f.parse,s[u]=f.leaf;else{let Q=f.before?ws(a,f.before):f.after?ws(a,f.after)+1:a.length-1;n.splice(Q,0,f.parse),s.splice(Q,0,f.leaf),a.splice(Q,0,f.name)}f.endLeaf&&l.push(f.endLeaf)}if(kr(t.parseInline))for(let f of t.parseInline){let u=c.indexOf(f.name);if(u>-1)o[u]=f.parse;else{let Q=f.before?ws(c,f.before):f.after?ws(c,f.after)+1:c.length-1;o.splice(Q,0,f.parse),c.splice(Q,0,f.name)}}return t.wrap&&(h=h.concat(t.wrap)),new O(i,n,s,a,l,r,o,c,h)}getNodeType(e){let t=this.nodeTypes[e];if(t==null)throw new RangeError(`Unknown node type '${e}'`);return t}parseInline(e,t){let i=new $c(this,e,t);e:for(let r=t;r<i.end;){let n=i.char(r);for(let s of this.inlineParsers)if(s){let a=s(i,n,r);if(a>=0){r=a;continue e}}r++}return i.resolveMarkers(0)}};function kr(O){return O!=null&&O.length>0}function uc(O){if(!Array.isArray(O))return O;if(O.length==0)return null;let e=uc(O[0]);if(O.length==1)return e;let t=uc(O.slice(1));if(!t||!e)return e||t;let i=(s,a)=>(s||gi).concat(a||gi),r=e.wrap,n=t.wrap;return{props:i(e.props,t.props),defineNodes:i(e.defineNodes,t.defineNodes),parseBlock:i(e.parseBlock,t.parseBlock),parseInline:i(e.parseInline,t.parseInline),remove:i(e.remove,t.remove),wrap:r?n?(s,a,o,c)=>r(n(s,a,o,c),a,o,c):r:n}}function ws(O,e){let t=O.indexOf(e);if(t<0)throw new RangeError(`Position specified relative to unknown parser ${e}`);return t}var Hp=[de.none];for(let O=1,e;e=b[O];O++)Hp[O]=de.define({id:O,name:e,props:O>=b.Escape?[]:[[_.group,O in Cp?["Block","BlockContext"]:["Block","LeafBlock"]]],top:e=="Document"});var gi=[],vs=class{constructor(e){this.nodeSet=e,this.content=[],this.nodes=[]}write(e,t,i,r=0){return t Line truncated `);i=r<0?t:t.slice(0,r)}return e+i.length>this.to?i.slice(0,this.to-e):i}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(e,t,i=0){this.block=ks.create(e,i,this.lineStart+t,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(e,t,i=0){this.startContext(this.parser.getNodeType(e),t,i)}addNode(e,t,i){typeof e=="number"&&(e=new D(this.parser.nodeSet.types[e],gi,gi,(i??this.prevLineEnd())-t)),this.block.addChild(e,t-this.block.from)}addElement(e){this.block.addChild(e.toTree(this.parser.nodeSet),e.from-this.block.from)}addLeafElement(e,t){this.addNode(this.buffer.writeElements(pc(t.children,e.marks),-t.from).finish(t.type,t.to-t.from),t.from)}finishContext(){let e=this.stack.pop(),t=this.stack[this.stack.length-1];t.addChild(e.toTree(this.parser.nodeSet),e.from-t.from),this.block=t}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(e){return this.ranges.length>1?Fp(this.ranges,0,e.topNode,this.ranges[0].from,this.reusePlaceholders):e}finishLeaf(e){for(let i of e.parsers)if(i.finish(this,e))return;let t=pc(this.parser.parseInline(e.content,e.start),e.marks);this.addNode(this.buffer.writeElements(t,-e.start).finish(b.Paragraph,e.content.length),e.start)}elt(e,t,i,r){return typeof e=="string"?L(this.parser.getNodeType(e),t,i,r):new Ys(e,t)}get buffer(){return new vs(this.parser.nodeSet)}};function Fp(O,e,t,i,r){let n=O[e].to,s=[],a=[],o=t.from+i;function l(c,h){for(;h?c>=n:c>n;){let f=O[e+1].from-n;i+=f,c+=f,e++,n=O[e].to}}for(let c=t.firstChild;c;c=c.nextSibling){l(c.from+i,!0);let h=c.from+i,f,u=r.get(c.tree);u?f=u:c.to+i>n?(f=Fp(O,e,c,i,r),l(c.to+i,!1)):f=c.toTree(),s.push(f),a.push(h-o)}return l(t.to+i,!1),new D(t.type,s,a,t.to+i-o,t.tree?t.tree.propValues:void 0)}var Zr=class O extends Jt{constructor(e,t,i,r,n,s,a,o,l){super(),this.nodeSet=e,this.blockParsers=t,this.leafBlockParsers=i,this.blockNames=r,this.endLeafBlock=n,this.skipContextMarkup=s,this.inlineParsers=a,this.inlineNames=o,this.wrappers=l,this.nodeTypes=Object.create(null);for(let c of e.types)this.nodeTypes[c.name]=c.id}createParse(e,t,i){let r=new dc(this,e,t,i);for(let n of this.wrappers)r=n(r,e,t,i);return r}configure(e){let t=uc(e);if(!t)return this;let{nodeSet:i,skipContextMarkup:r}=this,n=this.blockParsers.slice(),s=this.leafBlockParsers.slice(),a=this.blockNames.slice(),o=this.inlineParsers.slice(),l=this.inlineNames.slice(),c=this.endLeafBlock.slice(),h=this.wrappers;if(kr(t.defineNodes)){r=Object.assign({},r);let f=i.types.slice(),u;for(let Q of t.defineNodes){let{name:$,block:p,composite:m,style:g}=typeof Q=="string"?{name:Q}:Q;if(f.some(X=>X.name==$))continue;m&&(r[f.length]=(X,x,w)=>m(x,w,X.value));let P=f.length,T=m?["Block","BlockContext"]:p?P>=b.ATXHeading1&&P<=b.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;f.push(de.define({id:P,name:$,props:T&&[[_.group,T]]})),g&&(u||(u={}),Array.isArray(g)||g instanceof Ne?u[$]=g:Object.assign(u,g))}i=new Ht(f),u&&(i=i.extend(N(u)))}if(kr(t.props)&&(i=i.extend(...t.props)),kr(t.remove))for(let f of t.remove){let u=this.blockNames.indexOf(f),Q=this.inlineNames.indexOf(f);u>-1&&(n[u]=s[u]=void 0),Q>-1&&(o[Q]=void 0)}if(kr(t.parseBlock))for(let f of t.parseBlock){let u=a.indexOf(f.name);if(u>-1)n[u]=f.parse,s[u]=f.leaf;else{let Q=f.before?ws(a,f.before):f.after?ws(a,f.after)+1:a.length-1;n.splice(Q,0,f.parse),s.splice(Q,0,f.leaf),a.splice(Q,0,f.name)}f.endLeaf&&c.push(f.endLeaf)}if(kr(t.parseInline))for(let f of t.parseInline){let u=l.indexOf(f.name);if(u>-1)o[u]=f.parse;else{let Q=f.before?ws(l,f.before):f.after?ws(l,f.after)+1:l.length-1;o.splice(Q,0,f.parse),l.splice(Q,0,f.name)}}return t.wrap&&(h=h.concat(t.wrap)),new O(i,n,s,a,c,r,o,l,h)}getNodeType(e){let t=this.nodeTypes[e];if(t==null)throw new RangeError(`Unknown node type '${e}'`);return t}parseInline(e,t){let i=new $c(this,e,t);e:for(let r=t;r<i.end;){let n=i.char(r);for(let s of this.inlineParsers)if(s){let a=s(i,n,r);if(a>=0){r=a;continue e}}r++}return i.resolveMarkers(0)}};function kr(O){return O!=null&&O.length>0}function uc(O){if(!Array.isArray(O))return O;if(O.length==0)return null;let e=uc(O[0]);if(O.length==1)return e;let t=uc(O.slice(1));if(!t||!e)return e||t;let i=(s,a)=>(s||gi).concat(a||gi),r=e.wrap,n=t.wrap;return{props:i(e.props,t.props),defineNodes:i(e.defineNodes,t.defineNodes),parseBlock:i(e.parseBlock,t.parseBlock),parseInline:i(e.parseInline,t.parseInline),remove:i(e.remove,t.remove),wrap:r?n?(s,a,o,l)=>r(n(s,a,o,l),a,o,l):r:n}}function ws(O,e){let t=O.indexOf(e);if(t<0)throw new RangeError(`Position specified relative to unknown parser ${e}`);return t}var Hp=[de.none];for(let O=1,e;e=b[O];O++)Hp[O]=de.define({id:O,name:e,props:O>=b.Escape?[]:[[_.group,O in Cp?["Block","BlockContext"]:["Block","LeafBlock"]]],top:e=="Document"});var gi=[],vs=class{constructor(e){this.nodeSet=e,this.content=[],this.nodes=[]}write(e,t,i,r=0){return t Line truncated
`;)n--;this.fragmentEnd=n?n-1:0}let i=this.cursor;i||(i=this.cursor=this.fragment.tree.cursor(),i.firstChild());let r=e+this.fragment.offset;for(;i.to<=r;)if(!i.parent())return!1;for(;;){if(i.from>=r)return this.fragment.from<=t;if(!i.childAfter(r))return!1}}matches(e){let t=this.cursor.tree;return t&&t.prop(_.contextHash)==e}takeNodes(e){let t=this.cursor,i=this.fragment.offset,r=this.fragmentEnd-(this.fragment.openEnd?1:0),n=e.absoluteLineStart,s=n,a=e.block.children.length,o=s,c=a;for(;;){if(t.to-i>r){if(t.type.isAnonymous&&t.firstChild())continue;break}let l=im(t.from-i,e.ranges);if(t.to-i<=e.ranges[e.rangeI].to)e.addNode(t.tree,l);else{let h=new D(e.parser.nodeSet.types[b.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(h,t.tree),e.addNode(h,l)}if(t.type.is("Block")&&(Ex.indexOf(t.type.id)<0?(s=t.to-i,a=e.block.children.length):(s=o,a=c,o=t.to-i,c=e.block.children.length)),!t.nextSibling())break}for(;e.block.children.length>a;)e.block.children.pop(),e.block.positions.pop();return s-n}};function im(O,e){let t=O;for(let i=1;i<e.length;i++){let r=e[i-1].to,n=e[i].from;r<O&&(t-=n-r)}return t}var Ax=N({"Blockquote/...":d.quote,HorizontalRule:d.contentSeparator,"ATXHeading1/... SetextHeading1/...":d.heading1,"ATXHeading2/... SetextHeading2/...":d.heading2,"ATXHeading3/...":d.heading3,"ATXHeading4/...":d.heading4,"ATXHeading5/...":d.heading5,"ATXHeading6/...":d.heading6,"Comment CommentBlock":d.comment,Escape:d.escape,Entity:d.character,"Emphasis/...":d.emphasis,"StrongEmphasis/...":d.strong,"Link/... Image/...":d.link,"OrderedList/... BulletList/...":d.list,"BlockQuote/...":d.quote,"InlineCode CodeText":d.monospace,"URL Autolink":d.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":d.processingInstruction,"CodeInfo LinkLabel":d.labelName,LinkTitle:d.string,Paragraph:d.content}),rm=new Zr(new Ht(Hp).extend(Ax),Object.keys(xs).map(O=>xs[O]),Object.keys(xs).map(O=>Np[O]),Object.keys(xs),jx,Cp,Object.keys(sc).map(O=>sc[O]),Object.keys(sc),[]);function Lx(O,e,t){let i=[];for(let r=O.firstChild,n=e;;r=r.nextSibling){let s=r?r.from:t;if(s>n&&i.push({from:n,to:s}),!r)break;n=r.to}return i}function nm(O){let{codeParser:e,htmlParser:t}=O;return{wrap:bO((r,n)=>{let s=r.type.id;if(e&&(s==b.CodeBlock||s==b.FencedCode)){let a="";if(s==b.FencedCode){let c=r.node.getChild(b.CodeInfo);c&&(a=n.read(c.from,c.to))}let o=e(a);if(o)return{parser:o,overlay:c=>c.type.id==b.CodeText}}else if(t&&(s==b.HTMLBlock||s==b.HTMLTag||s==b.CommentBlock))return{parser:t,overlay:Lx(r.node,r.from,r.to)};return null})}}var Mx={resolve:"Strikethrough",mark:"StrikethroughMark"},Dx={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":d.strikethrough}},{name:"StrikethroughMark",style:d.processingInstruction}],parseInline:[{name:"Strikethrough",parse(O,e,t){if(e!=126||O.char(t+1)!=126||O.char(t+2)==126)return-1;let i=O.slice(t-1,t),r=O.slice(t+2,t+3),n=/\s|^$/.test(i),s=/\s|^$/.test(r),a=Rr.test(i),o=Rr.test(r);return O.addDelimiter(Mx,t,t+2,!s&&(!o||n||a),!n&&(!a||s||o))},after:"Emphasis"}]};function Yr(O,e,t=0,i,r=0){let n=0,s=!0,a=-1,o=-1,c=!1,l=()=>{i.push(O.elt("TableCell",r+a,r+o,O.parser.parseInline(e.slice(a,o),r+a)))};for(let h=t;h<e.length;h++){let f=e.charCodeAt(h);f==124&&!c?((!s||a>-1)&&n++,s=!1,i&&(a>-1&&l(),i.push(O.elt("TableDelimiter",h+r,h+r+1))),a=o=-1):(c||f!=32&&f!=9)&&(a<0&&(a=h),o=h+1),c=!c&&f==92}return a>-1&&(n++,i&&l()),n}function _p(O,e){for(let t=e;t<O.length;t++){let i=O.charCodeAt(t);if(i==124)return!0;i==92&&t++}return!1}var sm=/^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/,Zs=class{constructor(){this.rows=null}nextLine(e,t,i){if(this.rows==null){this.rows=!1;let r;if((t.next==45||t.next==58||t.next==124)&&sm.test(r=t.text.slice(t.pos))){let n=[];Yr(e,i.content,0,n,i.start)==Yr(e,r,t.pos)&&(this.rows=[e.elt("TableHeader",i.start,i.start+i.content.length,n),e.elt("TableDelimiter",e.lineStart+t.pos,e.lineStart+t.text.length)])}}else if(this.rows){let r=[];Yr(e,t.text,t.pos,r,e.lineStart),this.rows.push(e.elt("TableRow",e.lineStart+t.pos,e.lineStart+t.text.length,r))}return!1}finish(e,t){return this.rows?(e.addLeafElement(t,e.elt("Table",t.start,t.start+t.content.length,this.rows)),!0):!1}},Ix={defineNodes:[{name:"Table",block:!0},{name:"TableHeader",style:{"TableHeader/...":d.heading}},"TableRow",{name:"TableCell",style:d.content},{name:"TableDelimiter",style:d.processingInstruction}],parseBlock:[{name:"Table",leaf(O,e){return _p(e.content,0)?new Zs:null},endLeaf(O,e,t){if(t.parsers.some(r=>r instanceof Zs)||!_p(e.text,e.basePos))return!1;let i=O.peekLine();return sm.test(i)&&Yr(O,e.text,e.basePos)==Yr(O,i,e.basePos)},before:"SetextHeading"}]},gc=class{nextLine(){return!1}finish(e,t){return e.addLeafElement(t,e.elt("Task",t.start,t.start+t.content.length,[e.elt("TaskMarker",t.start,t.start+3),...e.parser.parseInline(t.content.slice(3),t.start+3)])),!0}},Bx={defineNodes:[{name:"Task",block:!0,style:d.list},{name:"TaskMarker",style:d.atom}],parseBlock:[{name:"TaskList",leaf(O,e){retu Line truncated `;)n--;this.fragmentEnd=n?n-1:0}let i=this.cursor;i||(i=this.cursor=this.fragment.tree.cursor(),i.firstChild());let r=e+this.fragment.offset;for(;i.to<=r;)if(!i.parent())return!1;for(;;){if(i.from>=r)return this.fragment.from<=t;if(!i.childAfter(r))return!1}}matches(e){let t=this.cursor.tree;return t&&t.prop(_.contextHash)==e}takeNodes(e){let t=this.cursor,i=this.fragment.offset,r=this.fragmentEnd-(this.fragment.openEnd?1:0),n=e.absoluteLineStart,s=n,a=e.block.children.length,o=s,l=a;for(;;){if(t.to-i>r){if(t.type.isAnonymous&&t.firstChild())continue;break}let c=im(t.from-i,e.ranges);if(t.to-i<=e.ranges[e.rangeI].to)e.addNode(t.tree,c);else{let h=new D(e.parser.nodeSet.types[b.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(h,t.tree),e.addNode(h,c)}if(t.type.is("Block")&&(Ex.indexOf(t.type.id)<0?(s=t.to-i,a=e.block.children.length):(s=o,a=l,o=t.to-i,l=e.block.children.length)),!t.nextSibling())break}for(;e.block.children.length>a;)e.block.children.pop(),e.block.positions.pop();return s-n}};function im(O,e){let t=O;for(let i=1;i<e.length;i++){let r=e[i-1].to,n=e[i].from;r<O&&(t-=n-r)}return t}var Ax=N({"Blockquote/...":d.quote,HorizontalRule:d.contentSeparator,"ATXHeading1/... SetextHeading1/...":d.heading1,"ATXHeading2/... SetextHeading2/...":d.heading2,"ATXHeading3/...":d.heading3,"ATXHeading4/...":d.heading4,"ATXHeading5/...":d.heading5,"ATXHeading6/...":d.heading6,"Comment CommentBlock":d.comment,Escape:d.escape,Entity:d.character,"Emphasis/...":d.emphasis,"StrongEmphasis/...":d.strong,"Link/... Image/...":d.link,"OrderedList/... BulletList/...":d.list,"BlockQuote/...":d.quote,"InlineCode CodeText":d.monospace,"URL Autolink":d.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":d.processingInstruction,"CodeInfo LinkLabel":d.labelName,LinkTitle:d.string,Paragraph:d.content}),rm=new Zr(new Ht(Hp).extend(Ax),Object.keys(xs).map(O=>xs[O]),Object.keys(xs).map(O=>Np[O]),Object.keys(xs),jx,Cp,Object.keys(sc).map(O=>sc[O]),Object.keys(sc),[]);function Lx(O,e,t){let i=[];for(let r=O.firstChild,n=e;;r=r.nextSibling){let s=r?r.from:t;if(s>n&&i.push({from:n,to:s}),!r)break;n=r.to}return i}function nm(O){let{codeParser:e,htmlParser:t}=O;return{wrap:bO((r,n)=>{let s=r.type.id;if(e&&(s==b.CodeBlock||s==b.FencedCode)){let a="";if(s==b.FencedCode){let l=r.node.getChild(b.CodeInfo);l&&(a=n.read(l.from,l.to))}let o=e(a);if(o)return{parser:o,overlay:l=>l.type.id==b.CodeText}}else if(t&&(s==b.HTMLBlock||s==b.HTMLTag||s==b.CommentBlock))return{parser:t,overlay:Lx(r.node,r.from,r.to)};return null})}}var Mx={resolve:"Strikethrough",mark:"StrikethroughMark"},Dx={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":d.strikethrough}},{name:"StrikethroughMark",style:d.processingInstruction}],parseInline:[{name:"Strikethrough",parse(O,e,t){if(e!=126||O.char(t+1)!=126||O.char(t+2)==126)return-1;let i=O.slice(t-1,t),r=O.slice(t+2,t+3),n=/\s|^$/.test(i),s=/\s|^$/.test(r),a=Rr.test(i),o=Rr.test(r);return O.addDelimiter(Mx,t,t+2,!s&&(!o||n||a),!n&&(!a||s||o))},after:"Emphasis"}]};function Yr(O,e,t=0,i,r=0){let n=0,s=!0,a=-1,o=-1,l=!1,c=()=>{i.push(O.elt("TableCell",r+a,r+o,O.parser.parseInline(e.slice(a,o),r+a)))};for(let h=t;h<e.length;h++){let f=e.charCodeAt(h);f==124&&!l?((!s||a>-1)&&n++,s=!1,i&&(a>-1&&c(),i.push(O.elt("TableDelimiter",h+r,h+r+1))),a=o=-1):(l||f!=32&&f!=9)&&(a<0&&(a=h),o=h+1),l=!l&&f==92}return a>-1&&(n++,i&&c()),n}function _p(O,e){for(let t=e;t<O.length;t++){let i=O.charCodeAt(t);if(i==124)return!0;i==92&&t++}return!1}var sm=/^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/,Zs=class{constructor(){this.rows=null}nextLine(e,t,i){if(this.rows==null){this.rows=!1;let r;if((t.next==45||t.next==58||t.next==124)&&sm.test(r=t.text.slice(t.pos))){let n=[];Yr(e,i.content,0,n,i.start)==Yr(e,r,t.pos)&&(this.rows=[e.elt("TableHeader",i.start,i.start+i.content.length,n),e.elt("TableDelimiter",e.lineStart+t.pos,e.lineStart+t.text.length)])}}else if(this.rows){let r=[];Yr(e,t.text,t.pos,r,e.lineStart),this.rows.push(e.elt("TableRow",e.lineStart+t.pos,e.lineStart+t.text.length,r))}return!1}finish(e,t){return this.rows?(e.addLeafElement(t,e.elt("Table",t.start,t.start+t.content.length,this.rows)),!0):!1}},Ix={defineNodes:[{name:"Table",block:!0},{name:"TableHeader",style:{"TableHeader/...":d.heading}},"TableRow",{name:"TableCell",style:d.content},{name:"TableDelimiter",style:d.processingInstruction}],parseBlock:[{name:"Table",leaf(O,e){return _p(e.content,0)?new Zs:null},endLeaf(O,e,t){if(t.parsers.some(r=>r instanceof Zs)||!_p(e.text,e.basePos))return!1;let i=O.peekLine();return sm.test(i)&&Yr(O,e.text,e.basePos)==Yr(O,i,e.basePos)},before:"SetextHeading"}]},gc=class{nextLine(){return!1}finish(e,t){return e.addLeafElement(t,e.elt("Task",t.start,t.start+t.content.length,[e.elt("TaskMarker",t.start,t.start+3),...e.parser.parseInline(t.content.slice(3),t.start+3)])),!0}},Bx={defineNodes:[{name:"Task",block:!0,style:d.list},{name:"TaskMarker",style:d.atom}],parseBlock:[{name:"TaskList",leaf(O,e){retu Line truncated
`,{label:"if",detail:"block",type:"keyword"}),U("if ${}:\n ${}\nelse:\n ${}",{label:"if",detail:"/ else block",type:"keyword"}),U("class ${name}:\n def __init__(self, ${params}):\n ${}",{label:"class",detail:"definition",type:"keyword"}),U("import ${module}",{label:"import",detail:"statement",type:"keyword"}),U("from ${module} import ${names}",{label:"from",detail:"import",type:"keyword"})],Nv=lO(Mm,zt(Iv.concat(Bv)));function qc(O){let{node:e,pos:t}=O,i=O.lineIndent(t,-1),r=null;for(;;){let n=e.childBefore(t);if(n)if(n.name=="Comment")t=n.from;else if(n.name=="Body"||n.name=="MatchBody")O.baseIndentFor(n)+O.unit<=i&&(r=n),e=n;else if(n.name=="MatchClause")e=n;else if(n.type.is("Statement"))e=n;else break;else break}return r}function zc(O,e){let t=O.baseIndentFor(e),i=O.lineAt(O.pos,-1),r=i.from+i.text.length;return/^\s*($|#)/.test(i.text)&&O.node.to<r+100&&!/\S/.test(O.state.sliceDoc(r,O.node.to))&&O.lineIndent(O.pos,-1)<=t||/^\s*(else:|elif |except |finally:|case\s+[^=:]+:)/.test(O.textAfter)&&O.lineIndent(O.pos,-1)>t?null:t+O.unit}var Wc=se.define({name:"python",parser:Cm.configure({props:[ae.add({Body:O=>{var e;let t=/^\s*(#|$)/.test(O.textAfter)&&qc(O)||O.node;return(e=zc(O,t))!==null&&e!==void 0?e:O.continue()},MatchBody:O=>{var e;let t=qc(O);return(e=zc(O,t||O.node))!==null&&e!==void 0?e:O.continue()},IfStatement:O=>/^\s*(else:|elif )/.test(O.textAfter)?O.baseIndent:O.continue(),"ForStatement WhileStatement":O=>/^\s*else:/.test(O.textAfter)?O.baseIndent:O.continue(),TryStatement:O=>/^\s*(except[ :]|finally:|else:)/.test(O.textAfter)?O.baseIndent:O.continue(),MatchStatement:O=>/^\s*case /.test(O.textAfter)?O.baseIndent+O.unit:O.continue(),"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression":ye({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":ye({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":ye({closing:"]"}),MemberExpression:O=>O.baseIndent+O.unit,"String FormatString":()=>null,Script:O=>{var e;let t=qc(O);return(e=t&&zc(O,t))!==null&&e!==void 0?e:O.continue()}}),te.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":me,Body:(O,e)=>({from:O.from+1,to:O.to-(O.to==e.doc.length?0:1)}),"String FormatString":(O,e)=>({from:e.doc.lineAt(O.from).to,to:O.to})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""'],stringPrefixes:["f","fr","rf","r","u","b","br","rb","F","FR","RF","R","U","B","BR","RB"]},commentTokens:{line:"#"},indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:|case\s+[^:]*:?)$/}});function Dm(){return new K(Wc,[Wc.data.of({autocomplete:Dv}),Wc.data.of({autocomplete:Nv})])}var Fv=36,Im=1,Hv=2,Pi=3,Uc=4,Kv=5,Jv=6,eY=7,tY=8,OY=9,iY=10,rY=11,nY=12,sY=13,aY=14,oY=15,lY=16,cY=17,Bm=18,hY=19,Og=20,ig=21,Nm=22,fY=23,dY=24;function Cc(O){return O>=65&&O<=90||O>=97&&O<=122||O>=48&&O<=57}function uY(O){return O>=48&&O<=57||O>=97&&O<=102||O>=65&&O<=70}function UO(O,e,t){for(let i=!1;;){if(O.next<0)return;if(O.next==e&&!i){O.advance();return}i=t&&!i&&O.next==92,O.advance()}}function QY(O,e){e:for(;;){if(O.next<0)return;if(O.next==36){O.advance();for(let t=0;t<e.length;t++){if(O.next!=e.charCodeAt(t))continue e;O.advance()}if(O.next==36){O.advance();return}}else O.advance()}}function $Y(O,e){let t="[{<(".indexOf(String.fromCharCode(e)),i=t<0?e:"]}>)".charCodeAt(t);for(;;){if(O.next<0)return;if(O.next==i&&O.peek(1)==39){O.advance(2);return}O.advance()}}function Gc(O,e){for(;!(O.next!=95&&!Cc(O.next));)e!=null&&(e+=String.fromCharCode(O.next)),O.advance();return e}function pY(O){if(O.next==39||O.next==34||O.next==96){let e=O.next;O.advance(),UO(O,e,!1)}else Gc(O)}function Fm(O,e){for(;O.next==48||O.next==49;)O.advance();e&&O.next==e&&O.advance()}function Hm(O,e){for(;;){if(O.next==46){if(e)break;e=!0}else if(O.next<48||O.next>57)break;O.advance()}if(O.next==69||O.next==101)for(O.advance(),(O.next==43||O.next==45)&&O.advance();O.next>=48&&O.next<=57;)O.advance()}function Km(O){for(;!(O.next<0||O.next==10);)O.advance()}function WO(O,e){for(let t=0;t<e.length;t++)if(e.charCodeAt(t)==O)return!0;return!1}var jc=` \r `,{label:"if",detail:"block",type:"keyword"}),U("if ${}:\n ${}\nelse:\n ${}",{label:"if",detail:"/ else block",type:"keyword"}),U("class ${name}:\n def __init__(self, ${params}):\n ${}",{label:"class",detail:"definition",type:"keyword"}),U("import ${module}",{label:"import",detail:"statement",type:"keyword"}),U("from ${module} import ${names}",{label:"from",detail:"import",type:"keyword"})],Fv=lO(Mm,zt(Bv.concat(Nv)));function qc(O){let{node:e,pos:t}=O,i=O.lineIndent(t,-1),r=null;for(;;){let n=e.childBefore(t);if(n)if(n.name=="Comment")t=n.from;else if(n.name=="Body"||n.name=="MatchBody")O.baseIndentFor(n)+O.unit<=i&&(r=n),e=n;else if(n.name=="MatchClause")e=n;else if(n.type.is("Statement"))e=n;else break;else break}return r}function zc(O,e){let t=O.baseIndentFor(e),i=O.lineAt(O.pos,-1),r=i.from+i.text.length;return/^\s*($|#)/.test(i.text)&&O.node.to<r+100&&!/\S/.test(O.state.sliceDoc(r,O.node.to))&&O.lineIndent(O.pos,-1)<=t||/^\s*(else:|elif |except |finally:|case\s+[^=:]+:)/.test(O.textAfter)&&O.lineIndent(O.pos,-1)>t?null:t+O.unit}var Wc=se.define({name:"python",parser:Cm.configure({props:[ae.add({Body:O=>{var e;let t=/^\s*(#|$)/.test(O.textAfter)&&qc(O)||O.node;return(e=zc(O,t))!==null&&e!==void 0?e:O.continue()},MatchBody:O=>{var e;let t=qc(O);return(e=zc(O,t||O.node))!==null&&e!==void 0?e:O.continue()},IfStatement:O=>/^\s*(else:|elif )/.test(O.textAfter)?O.baseIndent:O.continue(),"ForStatement WhileStatement":O=>/^\s*else:/.test(O.textAfter)?O.baseIndent:O.continue(),TryStatement:O=>/^\s*(except[ :]|finally:|else:)/.test(O.textAfter)?O.baseIndent:O.continue(),MatchStatement:O=>/^\s*case /.test(O.textAfter)?O.baseIndent+O.unit:O.continue(),"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression":ye({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":ye({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":ye({closing:"]"}),MemberExpression:O=>O.baseIndent+O.unit,"String FormatString":()=>null,Script:O=>{var e;let t=qc(O);return(e=t&&zc(O,t))!==null&&e!==void 0?e:O.continue()}}),te.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":me,Body:(O,e)=>({from:O.from+1,to:O.to-(O.to==e.doc.length?0:1)}),"String FormatString":(O,e)=>({from:e.doc.lineAt(O.from).to,to:O.to})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""'],stringPrefixes:["f","fr","rf","r","u","b","br","rb","F","FR","RF","R","U","B","BR","RB"]},commentTokens:{line:"#"},indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:|case\s+[^:]*:?)$/}});function Dm(){return new K(Wc,[Wc.data.of({autocomplete:Iv}),Wc.data.of({autocomplete:Fv})])}var Hv=36,Im=1,Kv=2,Pi=3,Uc=4,Jv=5,eY=6,tY=7,OY=8,iY=9,rY=10,nY=11,sY=12,aY=13,oY=14,lY=15,cY=16,hY=17,Bm=18,fY=19,Og=20,ig=21,Nm=22,dY=23,uY=24;function Cc(O){return O>=65&&O<=90||O>=97&&O<=122||O>=48&&O<=57}function QY(O){return O>=48&&O<=57||O>=97&&O<=102||O>=65&&O<=70}function jO(O,e,t){for(let i=!1;;){if(O.next<0)return;if(O.next==e&&!i){O.advance();return}i=t&&!i&&O.next==92,O.advance()}}function $Y(O,e){e:for(;;){if(O.next<0)return;if(O.next==36){O.advance();for(let t=0;t<e.length;t++){if(O.next!=e.charCodeAt(t))continue e;O.advance()}if(O.next==36){O.advance();return}}else O.advance()}}function pY(O,e){let t="[{<(".indexOf(String.fromCharCode(e)),i=t<0?e:"]}>)".charCodeAt(t);for(;;){if(O.next<0)return;if(O.next==i&&O.peek(1)==39){O.advance(2);return}O.advance()}}function Gc(O,e){for(;!(O.next!=95&&!Cc(O.next));)e!=null&&(e+=String.fromCharCode(O.next)),O.advance();return e}function mY(O){if(O.next==39||O.next==34||O.next==96){let e=O.next;O.advance(),jO(O,e,!1)}else Gc(O)}function Fm(O,e){for(;O.next==48||O.next==49;)O.advance();e&&O.next==e&&O.advance()}function Hm(O,e){for(;;){if(O.next==46){if(e)break;e=!0}else if(O.next<48||O.next>57)break;O.advance()}if(O.next==69||O.next==101)for(O.advance(),(O.next==43||O.next==45)&&O.advance();O.next>=48&&O.next<=57;)O.advance()}function Km(O){for(;!(O.next<0||O.next==10);)O.advance()}function UO(O,e){for(let t=0;t<e.length;t++)if(e.charCodeAt(t)==O)return!0;return!1}var jc=` \r
`;function rg(O,e,t){let i=Object.create(null);i.true=i.false=Kv,i.null=i.unknown=Jv;for(let r of O.split(" "))r&&(i[r]=Og);for(let r of e.split(" "))r&&(i[r]=ig);for(let r of(t||"").split(" "))r&&(i[r]=dY);return i}var jO="array binary bit boolean char character clob date decimal double float int integer interval large national nchar nclob numeric object precision real smallint time timestamp varchar varying ",CO="absolute action add after all allocate alter and any are as asc assertion at authorization before begin between both breadth by call cascade cascaded case cast catalog check close collate collation column commit condition connect connection constraint constraints constructor continue corresponding count create cross cube current current_date current_default_transform_group current_transform_group_for_type current_path current_role current_time current_timestamp current_user cursor cycle data day deallocate declare default deferrable deferred delete depth deref desc describe descriptor deterministic diagnostics disconnect distinct do domain drop dynamic each else elseif end end-exec equals escape except exception exec execute exists exit external fetch first for foreign found from free full function general get global go goto grant group grouping handle having hold hour identity if immediate in indicator initially inner inout input insert intersect into is isolation join key language last lateral leading leave left level like limit local localtime localtimestamp locator loop map match method minute modifies module month names natural nesting new next no none not of old on only open option or order ordinality out outer output overlaps pad parameter partial path prepare preserve primary prior privileges procedure public read reads recursive redo ref references referencing relative release repeat resignal restrict result return returns revoke right role rollback rollup routine row rows savepoint schema scroll search second section select session session_user set sets signal similar size some space specific specifictype sql sqlexception sqlstate sqlwarning start state static system_user table temporary then timezone_hour timezone_minute to trailing transaction translation treat trigger under undo union unique unnest until update usage user using value values view when whenever where while with without work write year zone ",Ec={backslashEscapes:!1,hashComments:!1,spaceAfterDashes:!1,slashComments:!1,doubleQuotedStrings:!1,doubleDollarQuotedStrings:!1,unquotedBitLiterals:!1,treatBitsAsBytes:!1,charSetCasts:!1,plsqlQuotingMechanism:!1,operatorChars:"*+-%<>!=&|~^/",specialVar:"?",identifierQuotes:'"',caseInsensitiveIdentifiers:!1,words:rg(CO,jO)};function mY(O,e,t,i){let r={};for(let n in Ec)r[n]=(O.hasOwnProperty(n)?O:Ec)[n];return e&&(r.words=rg(e,t||"",i)),r}function ng(O){return new z(e=>{var t;let{next:i}=e;if(e.advance(),WO(i,jc)){for(;WO(e.next,jc);)e.advance();e.acceptToken(Fv)}else if(i==36&&O.doubleDollarQuotedStrings){let r=Gc(e,"");e.next==36&&(e.advance(),QY(e,r),e.acceptToken(Pi))}else if(i==39||i==34&&O.doubleQuotedStrings)UO(e,i,O.backslashEscapes),e.acceptToken(Pi);else if(i==35&&O.hashComments||i==47&&e.next==47&&O.slashComments)Km(e),e.acceptToken(Im);else if(i==45&&e.next==45&&(!O.spaceAfterDashes||e.peek(1)==32))Km(e),e.acceptToken(Im);else if(i==47&&e.next==42){e.advance();for(let r=1;;){let n=e.next;if(e.next<0)break;if(e.advance(),n==42&&e.next==47){if(r--,e.advance(),!r)break}else n==47&&e.next==42&&(r++,e.advance())}e.acceptToken(Hv)}else if((i==101||i==69)&&e.next==39)e.advance(),UO(e,39,!0),e.acceptToken(Pi);else if((i==110||i==78)&&e.next==39&&O.charSetCasts)e.advance(),UO(e,39,O.backslashEscapes),e.acceptToken(Pi);else if(i==95&&O.charSetCasts)for(let r=0;;r++){if(e.next==39&&r>1){e.advance(),UO(e,39,O.backslashEscapes),e.acceptToken(Pi);break}if(!Cc(e.next))break;e.advance()}else if(O.plsqlQuotingMechanism&&(i==113||i==81)&&e.next==39&&e.peek(1)>0&&!WO(e.peek(1),jc)){let r=e.peek(1);e.advance(2),$Y(e,r),e.acceptToken(Pi)}else if(WO(i,O.identifierQuotes)){let r=i==91?93:i;UO(e,r,!1),e.acceptToken(hY)}else if(i==40)e.acceptToken(eY);else if(i==41)e.acceptToken(tY);else if(i==123)e.acceptToken(OY);else if(i==125)e.acceptToken(iY);else if(i==91)e.acceptToken(rY);else if(i==93)e.acceptToken(nY);else if(i==59)e.acceptToken(sY);else if(O.unquotedBitLiterals&&i==48&&e.next==98)e.advance(),Fm(e),e.acceptToken(Nm);else if((i==98||i==66)&&(e.next==39||e.next==34)){let r=e.next;e.advance(),O.treatBitsAsBytes?(UO(e,r,O.backslashEscapes),e.acceptToken(fY)):(Fm(e,r),e.acceptToken(Nm))}else if(i==48&&(e.next==120||e.next==88)||(i==120||i==88)&&e.next==39){let r=e.next==39;for(e.advance();uY(e.next);)e.advance();r&&e.next==39&&e.advance(),e.acceptToken(Uc)}else if(i==46&&e.next>=48&&e.next<=57)Hm(e,!0),e.acceptToken(Uc);else if(i==46)e.acceptToken(aY);else if(i>=48&&i<=57)Hm(e,!1),e.acceptToken(Uc);else if(WO(i,O.operatorChars)){for(;WO(e.next,O.operatorChars);)e.advance();e.acceptToken(oY Line truncated `;function rg(O,e,t){let i=Object.create(null);i.true=i.false=Jv,i.null=i.unknown=eY;for(let r of O.split(" "))r&&(i[r]=Og);for(let r of e.split(" "))r&&(i[r]=ig);for(let r of(t||"").split(" "))r&&(i[r]=uY);return i}var CO="array binary bit boolean char character clob date decimal double float int integer interval large national nchar nclob numeric object precision real smallint time timestamp varchar varying ",GO="absolute action add after all allocate alter and any are as asc assertion at authorization before begin between both breadth by call cascade cascaded case cast catalog check close collate collation column commit condition connect connection constraint constraints constructor continue corresponding count create cross cube current current_date current_default_transform_group current_transform_group_for_type current_path current_role current_time current_timestamp current_user cursor cycle data day deallocate declare default deferrable deferred delete depth deref desc describe descriptor deterministic diagnostics disconnect distinct do domain drop dynamic each else elseif end end-exec equals escape except exception exec execute exists exit external fetch first for foreign found from free full function general get global go goto grant group grouping handle having hold hour identity if immediate in indicator initially inner inout input insert intersect into is isolation join key language last lateral leading leave left level like limit local localtime localtimestamp locator loop map match method minute modifies module month names natural nesting new next no none not of old on only open option or order ordinality out outer output overlaps pad parameter partial path prepare preserve primary prior privileges procedure public read reads recursive redo ref references referencing relative release repeat resignal restrict result return returns revoke right role rollback rollup routine row rows savepoint schema scroll search second section select session session_user set sets signal similar size some space specific specifictype sql sqlexception sqlstate sqlwarning start state static system_user table temporary then timezone_hour timezone_minute to trailing transaction translation treat trigger under undo union unique unnest until update usage user using value values view when whenever where while with without work write year zone ",Ec={backslashEscapes:!1,hashComments:!1,spaceAfterDashes:!1,slashComments:!1,doubleQuotedStrings:!1,doubleDollarQuotedStrings:!1,unquotedBitLiterals:!1,treatBitsAsBytes:!1,charSetCasts:!1,plsqlQuotingMechanism:!1,operatorChars:"*+-%<>!=&|~^/",specialVar:"?",identifierQuotes:'"',caseInsensitiveIdentifiers:!1,words:rg(GO,CO)};function gY(O,e,t,i){let r={};for(let n in Ec)r[n]=(O.hasOwnProperty(n)?O:Ec)[n];return e&&(r.words=rg(e,t||"",i)),r}function ng(O){return new z(e=>{var t;let{next:i}=e;if(e.advance(),UO(i,jc)){for(;UO(e.next,jc);)e.advance();e.acceptToken(Hv)}else if(i==36&&O.doubleDollarQuotedStrings){let r=Gc(e,"");e.next==36&&(e.advance(),$Y(e,r),e.acceptToken(Pi))}else if(i==39||i==34&&O.doubleQuotedStrings)jO(e,i,O.backslashEscapes),e.acceptToken(Pi);else if(i==35&&O.hashComments||i==47&&e.next==47&&O.slashComments)Km(e),e.acceptToken(Im);else if(i==45&&e.next==45&&(!O.spaceAfterDashes||e.peek(1)==32))Km(e),e.acceptToken(Im);else if(i==47&&e.next==42){e.advance();for(let r=1;;){let n=e.next;if(e.next<0)break;if(e.advance(),n==42&&e.next==47){if(r--,e.advance(),!r)break}else n==47&&e.next==42&&(r++,e.advance())}e.acceptToken(Kv)}else if((i==101||i==69)&&e.next==39)e.advance(),jO(e,39,!0),e.acceptToken(Pi);else if((i==110||i==78)&&e.next==39&&O.charSetCasts)e.advance(),jO(e,39,O.backslashEscapes),e.acceptToken(Pi);else if(i==95&&O.charSetCasts)for(let r=0;;r++){if(e.next==39&&r>1){e.advance(),jO(e,39,O.backslashEscapes),e.acceptToken(Pi);break}if(!Cc(e.next))break;e.advance()}else if(O.plsqlQuotingMechanism&&(i==113||i==81)&&e.next==39&&e.peek(1)>0&&!UO(e.peek(1),jc)){let r=e.peek(1);e.advance(2),pY(e,r),e.acceptToken(Pi)}else if(UO(i,O.identifierQuotes)){let r=i==91?93:i;jO(e,r,!1),e.acceptToken(fY)}else if(i==40)e.acceptToken(tY);else if(i==41)e.acceptToken(OY);else if(i==123)e.acceptToken(iY);else if(i==125)e.acceptToken(rY);else if(i==91)e.acceptToken(nY);else if(i==93)e.acceptToken(sY);else if(i==59)e.acceptToken(aY);else if(O.unquotedBitLiterals&&i==48&&e.next==98)e.advance(),Fm(e),e.acceptToken(Nm);else if((i==98||i==66)&&(e.next==39||e.next==34)){let r=e.next;e.advance(),O.treatBitsAsBytes?(jO(e,r,O.backslashEscapes),e.acceptToken(dY)):(Fm(e,r),e.acceptToken(Nm))}else if(i==48&&(e.next==120||e.next==88)||(i==120||i==88)&&e.next==39){let r=e.next==39;for(e.advance();QY(e.next);)e.advance();r&&e.next==39&&e.advance(),e.acceptToken(Uc)}else if(i==46&&e.next>=48&&e.next<=57)Hm(e,!0),e.acceptToken(Uc);else if(i==46)e.acceptToken(oY);else if(i>=48&&i<=57)Hm(e,!1),e.acceptToken(Uc);else if(UO(i,O.operatorChars)){for(;UO(e.next,O.operatorChars);)e.advance();e.acceptToken(lY Line truncated
@@ -1 +1 @@
var Ui=Object.create;var Sn=Object.defineProperty;var Wi=Object.getOwnPropertyDescriptor;var Pi=Object.getOwnPropertyNames;var Gi=Object.getPrototypeOf,Ri=Object.prototype.hasOwnProperty;var g=(n,t)=>()=>(t||n((t={exports:{}}).exports,t),t.exports);var Zi=(n,t,a,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of Pi(t))!Ri.call(n,e)&&e!==a&&Sn(n,e,{get:()=>t[e],enumerable:!(i=Wi(t,e))||i.enumerable});return n};var de=(n,t,a)=>(a=n!=null?Ui(Gi(n)):{},Zi(t||!n||!n.__esModule?Sn(a,"default",{value:n,enumerable:!0}):a,n));var Nn=g((je,He)=>{(function(n,t){typeof je=="object"&&typeof He<"u"?He.exports=t():typeof define=="function"&&define.amd?define(t):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_advancedFormat=t()})(je,(function(){"use strict";return function(n,t){var a=t.prototype,i=a.format;a.format=function(e){var r=this,s=this.$locale();if(!this.isValid())return i.bind(this)(e);var d=this.$utils(),o=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(u){switch(u){case"Q":return Math.ceil((r.$M+1)/3);case"Do":return s.ordinal(r.$D);case"gggg":return r.weekYear();case"GGGG":return r.isoWeekYear();case"wo":return s.ordinal(r.week(),"W");case"w":case"ww":return d.s(r.week(),u==="w"?1:2,"0");case"W":case"WW":return d.s(r.isoWeek(),u==="W"?1:2,"0");case"k":case"kk":return d.s(String(r.$H===0?24:r.$H),u==="k"?1:2,"0");case"X":return Math.floor(r.$d.getTime()/1e3);case"x":return r.$d.getTime();case"z":return"["+r.offsetName()+"]";case"zzz":return"["+r.offsetName("long")+"]";default:return u}}));return i.bind(this)(o)}}}))});var Fn=g((Te,we)=>{(function(n,t){typeof Te=="object"&&typeof we<"u"?we.exports=t():typeof define=="function"&&define.amd?define(t):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_customParseFormat=t()})(Te,(function(){"use strict";var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,i=/\d\d/,e=/\d\d?/,r=/\d*[^-_:/,()\s\d]+/,s={},d=function(m){return(m=+m)+(m>68?1900:2e3)},o=function(m){return function(Y){this[m]=+Y}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=(function(Y){if(!Y||Y==="Z")return 0;var D=Y.match(/([+-]|\d\d)/g),L=60*D[1]+(+D[2]||0);return L===0?0:D[0]==="+"?-L:L})(m)}],_=function(m){var Y=s[m];return Y&&(Y.indexOf?Y:Y.s.concat(Y.f))},h=function(m,Y){var D,L=s.meridiem;if(L){for(var w=1;w<=24;w+=1)if(m.indexOf(L(w,0,Y))>-1){D=w>12;break}}else D=m===(Y?"pm":"PM");return D},l={A:[r,function(m){this.afternoon=h(m,!1)}],a:[r,function(m){this.afternoon=h(m,!0)}],Q:[a,function(m){this.month=3*(m-1)+1}],S:[a,function(m){this.milliseconds=100*+m}],SS:[i,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[e,o("seconds")],ss:[e,o("seconds")],m:[e,o("minutes")],mm:[e,o("minutes")],H:[e,o("hours")],h:[e,o("hours")],HH:[e,o("hours")],hh:[e,o("hours")],D:[e,o("day")],DD:[i,o("day")],Do:[r,function(m){var Y=s.ordinal,D=m.match(/\d+/);if(this.day=D[0],Y)for(var L=1;L<=31;L+=1)Y(L).replace(/\[|\]/g,"")===m&&(this.day=L)}],w:[e,o("week")],ww:[i,o("week")],M:[e,o("month")],MM:[i,o("month")],MMM:[r,function(m){var Y=_("months"),D=(_("monthsShort")||Y.map((function(L){return L.slice(0,3)}))).indexOf(m)+1;if(D<1)throw new Error;this.month=D%12||D}],MMMM:[r,function(m){var Y=_("months").indexOf(m)+1;if(Y<1)throw new Error;this.month=Y%12||Y}],Y:[/[+-]?\d+/,o("year")],YY:[i,function(m){this.year=d(m)}],YYYY:[/\d{4}/,o("year")],Z:u,ZZ:u};function f(m){var Y,D;Y=m,D=s&&s.formats;for(var L=(m=Y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function($,H,U){var W=U&&U.toUpperCase();return H||D[U]||n[U]||D[W].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(v,M,c){return M||c.slice(1)}))}))).match(t),w=L.length,b=0;b<w;b+=1){var C=L[b],A=l[C],I=A&&A[0],x=A&&A[1];L[b]=x?{regex:I,parser:x}:C.replace(/^\[|\]$/g,"")}return function($){for(var H={},U=0,W=0;U<w;U+=1){var v=L[U];if(typeof v=="string")W+=v.length;else{var M=v.regex,c=v.parser,p=$.slice(W),y=M.exec(p)[0];c.call(H,y),$=$.replace(y,"")}}return(function(S){var j=S.afternoon;if(j!==void 0){var T=S.hours;j?T<12&&(S.hours+=12):T===12&&(S.hours=0),delete S.afternoon}})(H),H}}return function(m,Y,D){D.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(d=m.parseTwoDigitYear);var L=Y.prototype,w=L.parse;L.parse=function(b){var C=b.date,A=b.utc,I=b.args;this.$u=A;var x=I[1];if(typeof x=="string"){var $=I[2]===!0,H=I[3]===!0,U=$||H,W=I[2];H&&(W=I[2]),s=this.$locale(),!$&&W&&(s=D.Ls[W]),this.$d=(function(p,y,S,j){try{if(["x","X"].indexOf(y)>-1)return new Date((y==="X"?1e3:1)*p);var T=f(y)(p),q=T.year,N=T.month,F=T.day,P=T.hours,B=T.minutes,Q=T.seconds,ae=T.milliseconds,Z=T.zone,J=T.week,R=new Date,X=F||(q||N?1:R.getDate()),ee=q||R.getFullYear(),fe=0;q&&!N||(fe=N>0?N-1:R.getMonth());var me,pe=P||0,Le=B||0,De=Q||0,ve=ae||0;return Z?new DaLine truncated var Ui=Object.create;var Sn=Object.defineProperty;var Wi=Object.getOwnPropertyDescriptor;var Pi=Object.getOwnPropertyNames;var Gi=Object.getPrototypeOf,Ri=Object.prototype.hasOwnProperty;var g=(n,t)=>()=>(t||n((t={exports:{}}).exports,t),t.exports);var Zi=(n,t,a,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of Pi(t))!Ri.call(n,e)&&e!==a&&Sn(n,e,{get:()=>t[e],enumerable:!(i=Wi(t,e))||i.enumerable});return n};var de=(n,t,a)=>(a=n!=null?Ui(Gi(n)):{},Zi(t||!n||!n.__esModule?Sn(a,"default",{value:n,enumerable:!0}):a,n));var Nn=g((je,He)=>{(function(n,t){typeof je=="object"&&typeof He<"u"?He.exports=t():typeof define=="function"&&define.amd?define(t):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_advancedFormat=t()})(je,(function(){"use strict";return function(n,t){var a=t.prototype,i=a.format;a.format=function(e){var r=this,u=this.$locale();if(!this.isValid())return i.bind(this)(e);var _=this.$utils(),o=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(s){switch(s){case"Q":return Math.ceil((r.$M+1)/3);case"Do":return u.ordinal(r.$D);case"gggg":return r.weekYear();case"GGGG":return r.isoWeekYear();case"wo":return u.ordinal(r.week(),"W");case"w":case"ww":return _.s(r.week(),s==="w"?1:2,"0");case"W":case"WW":return _.s(r.isoWeek(),s==="W"?1:2,"0");case"k":case"kk":return _.s(String(r.$H===0?24:r.$H),s==="k"?1:2,"0");case"X":return Math.floor(r.$d.getTime()/1e3);case"x":return r.$d.getTime();case"z":return"["+r.offsetName()+"]";case"zzz":return"["+r.offsetName("long")+"]";default:return s}}));return i.bind(this)(o)}}}))});var Fn=g((Te,we)=>{(function(n,t){typeof Te=="object"&&typeof we<"u"?we.exports=t():typeof define=="function"&&define.amd?define(t):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_customParseFormat=t()})(Te,(function(){"use strict";var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,i=/\d\d/,e=/\d\d?/,r=/\d*[^-_:/,()\s\d]+/,u={},_=function(c){return(c=+c)+(c>68?1900:2e3)},o=function(c){return function(Y){this[c]=+Y}},s=[/[+-]\d\d:?(\d\d)?|Z/,function(c){(this.zone||(this.zone={})).offset=(function(Y){if(!Y||Y==="Z")return 0;var D=Y.match(/([+-]|\d\d)/g),L=60*D[1]+(+D[2]||0);return L===0?0:D[0]==="+"?-L:L})(c)}],d=function(c){var Y=u[c];return Y&&(Y.indexOf?Y:Y.s.concat(Y.f))},f=function(c,Y){var D,L=u.meridiem;if(L){for(var w=1;w<=24;w+=1)if(c.indexOf(L(w,0,Y))>-1){D=w>12;break}}else D=c===(Y?"pm":"PM");return D},l={A:[r,function(c){this.afternoon=f(c,!1)}],a:[r,function(c){this.afternoon=f(c,!0)}],Q:[a,function(c){this.month=3*(c-1)+1}],S:[a,function(c){this.milliseconds=100*+c}],SS:[i,function(c){this.milliseconds=10*+c}],SSS:[/\d{3}/,function(c){this.milliseconds=+c}],s:[e,o("seconds")],ss:[e,o("seconds")],m:[e,o("minutes")],mm:[e,o("minutes")],H:[e,o("hours")],h:[e,o("hours")],HH:[e,o("hours")],hh:[e,o("hours")],D:[e,o("day")],DD:[i,o("day")],Do:[r,function(c){var Y=u.ordinal,D=c.match(/\d+/);if(this.day=D[0],Y)for(var L=1;L<=31;L+=1)Y(L).replace(/\[|\]/g,"")===c&&(this.day=L)}],w:[e,o("week")],ww:[i,o("week")],M:[e,o("month")],MM:[i,o("month")],MMM:[r,function(c){var Y=d("months"),D=(d("monthsShort")||Y.map((function(L){return L.slice(0,3)}))).indexOf(c)+1;if(D<1)throw new Error;this.month=D%12||D}],MMMM:[r,function(c){var Y=d("months").indexOf(c)+1;if(Y<1)throw new Error;this.month=Y%12||Y}],Y:[/[+-]?\d+/,o("year")],YY:[i,function(c){this.year=_(c)}],YYYY:[/\d{4}/,o("year")],Z:s,ZZ:s};function m(c){var Y,D;Y=c,D=u&&u.formats;for(var L=(c=Y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function($,H,U){var W=U&&U.toUpperCase();return H||D[U]||n[U]||D[W].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(v,M,h){return M||h.slice(1)}))}))).match(t),w=L.length,b=0;b<w;b+=1){var C=L[b],A=l[C],I=A&&A[0],x=A&&A[1];L[b]=x?{regex:I,parser:x}:C.replace(/^\[|\]$/g,"")}return function($){for(var H={},U=0,W=0;U<w;U+=1){var v=L[U];if(typeof v=="string")W+=v.length;else{var M=v.regex,h=v.parser,p=$.slice(W),y=M.exec(p)[0];h.call(H,y),$=$.replace(y,"")}}return(function(S){var j=S.afternoon;if(j!==void 0){var T=S.hours;j?T<12&&(S.hours+=12):T===12&&(S.hours=0),delete S.afternoon}})(H),H}}return function(c,Y,D){D.p.customParseFormat=!0,c&&c.parseTwoDigitYear&&(_=c.parseTwoDigitYear);var L=Y.prototype,w=L.parse;L.parse=function(b){var C=b.date,A=b.utc,I=b.args;this.$u=A;var x=I[1];if(typeof x=="string"){var $=I[2]===!0,H=I[3]===!0,U=$||H,W=I[2];H&&(W=I[2]),u=this.$locale(),!$&&W&&(u=D.Ls[W]),this.$d=(function(p,y,S,j){try{if(["x","X"].indexOf(y)>-1)return new Date((y==="X"?1e3:1)*p);var T=m(y)(p),q=T.year,N=T.month,F=T.day,P=T.hours,B=T.minutes,Q=T.seconds,ae=T.milliseconds,Z=T.zone,J=T.week,R=new Date,X=F||(q||N?1:R.getDate()),ee=q||R.getFullYear(),fe=0;q&&!N||(fe=N>0?N-1:R.getMonth());var me,pe=P||0,Le=B||0,De=Q||0,ve=ae||0;return Z?new DaLine truncated
@@ -1,6 +1,6 @@
var fr=Object.defineProperty;var hr=(e,t)=>{for(var i in t)fr(e,i,{get:t[i],enumerable:!0})};var na={};hr(na,{FileOrigin:()=>Ct,FileStatus:()=>Et,OptionTypes:()=>Gi,Status:()=>nl,create:()=>gt,destroy:()=>ft,find:()=>Wi,getOptions:()=>Hi,parse:()=>Ui,registerPlugin:()=>ve,setOptions:()=>Ot,supported:()=>Vi});var br=e=>e instanceof HTMLElement,Er=(e,t=[],i=[])=>{let a={...e},n=[],l=[],o=()=>({...a}),r=()=>{let g=[...n];return n.length=0,g},s=()=>{let g=[...l];l.length=0,g.forEach(({type:f,data:h})=>{p(f,h)})},p=(g,f,h)=>{if(h&&!document.hidden){l.push({type:g,data:f});return}u[g]&&u[g](f),n.push({type:g,data:f})},c=(g,...f)=>m[g]?m[g](...f):null,d={getState:o,processActionQueue:r,processDispatchQueue:s,dispatch:p,query:c},m={};t.forEach(g=>{m={...g(a),...m}});let u={};return i.forEach(g=>{u={...g(p,c,a),...u}}),d},Tr=(e,t,i)=>{if(typeof i=="function"){e[t]=i;return}Object.defineProperty(e,t,{...i})},te=(e,t)=>{for(let i in e)e.hasOwnProperty(i)&&t(i,e[i])},We=e=>{let t={};return te(e,i=>{Tr(t,i,e[i])}),t},se=(e,t,i=null)=>{if(i===null)return e.getAttribute(t)||e.hasAttribute(t);e.setAttribute(t,i)},Ir="http://www.w3.org/2000/svg",vr=["svg","path"],Pa=e=>vr.includes(e),li=(e,t,i={})=>{typeof t=="object"&&(i=t,t=null);let a=Pa(e)?document.createElementNS(Ir,e):document.createElement(e);return t&&(Pa(e)?se(a,"class",t):a.className=t),te(i,(n,l)=>{se(a,n,l)}),a},xr=e=>(t,i)=>{typeof i<"u"&&e.children[i]?e.insertBefore(t,e.children[i]):e.appendChild(t)},yr=(e,t)=>(i,a)=>(typeof a<"u"?t.splice(a,0,i):t.push(i),i),Rr=(e,t)=>i=>(t.splice(t.indexOf(i),1),i.element.parentNode&&e.removeChild(i.element),i),Sr=typeof window<"u"&&typeof window.document<"u",bn=()=>Sr,_r=bn()?li("svg"):{},wr="children"in _r?e=>e.children.length:e=>e.childNodes.length,En=(e,t,i,a)=>{let n=i[0]||e.left,l=i[1]||e.top,o=n+e.width,r=l+e.height*(a[1]||1),s={element:{...e},inner:{left:e.left,top:e.top,right:e.right,bottom:e.bottom},outer:{left:n,top:l,right:o,bottom:r}};return t.filter(p=>!p.isRectIgnored()).map(p=>p.rect).forEach(p=>{za(s.inner,{...p.inner}),za(s.outer,{...p.outer})}),Fa(s.inner),s.outer.bottom+=s.element.marginBottom,s.outer.right+=s.element.marginRight,Fa(s.outer),s},za=(e,t)=>{t.top+=e.top,t.right+=e.left,t.bottom+=e.top,t.left+=e.left,t.bottom>e.bottom&&(e.bottom=t.bottom),t.right>e.right&&(e.right=t.right)},Fa=e=>{e.width=e.right-e.left,e.height=e.bottom-e.top},$e=e=>typeof e=="number",Lr=(e,t,i,a=.001)=>Math.abs(e-t)<a&&Math.abs(i)<a,Mr=({stiffness:e=.5,damping:t=.75,mass:i=10}={})=>{let a=null,n=null,l=0,o=!1,p=We({interpolate:(c,d)=>{if(o)return;if(!($e(a)&&$e(n))){o=!0,l=0;return}let m=-(n-a)*e;l+=m/i,n+=l,l*=t,Lr(n,a,l)||d?(n=a,l=0,o=!0,p.onupdate(n),p.oncomplete(n)):p.onupdate(n)},target:{set:c=>{if($e(c)&&!$e(n)&&(n=c),a===null&&(a=c,n=c),a=c,n===a||typeof a>"u"){o=!0,l=0,p.onupdate(n),p.oncomplete(n);return}o=!1},get:()=>a},resting:{get:()=>o},onupdate:c=>{},oncomplete:c=>{}});return p};var Ar=e=>e<.5?2*e*e:-1+(4-2*e)*e,Pr=({duration:e=500,easing:t=Ar,delay:i=0}={})=>{let a=null,n,l,o=!0,r=!1,s=null,c=We({interpolate:(d,m)=>{o||s===null||(a===null&&(a=d),!(d-a<i)&&(n=d-a-i,n>=e||m?(n=1,l=r?0:1,c.onupdate(l*s),c.oncomplete(l*s),o=!0):(l=n/e,c.onupdate((n>=0?t(r?1-l:l):0)*s))))},target:{get:()=>r?0:s,set:d=>{if(s===null){s=d,c.onupdate(d),c.oncomplete(d);return}d<s?(s=1,r=!0):(r=!1,s=d),o=!1,a=null}},resting:{get:()=>o},onupdate:d=>{},oncomplete:d=>{}});return c},Oa={spring:Mr,tween:Pr},zr=(e,t,i)=>{let a=e[t]&&typeof e[t][i]=="object"?e[t][i]:e[t]||e,n=typeof a=="string"?a:a.type,l=typeof a=="object"?{...a}:{};return Oa[n]?Oa[n](l):null},ji=(e,t,i,a=!1)=>{t=Array.isArray(t)?t:[t],t.forEach(n=>{e.forEach(l=>{let o=l,r=()=>i[l],s=p=>i[l]=p;typeof l=="object"&&(o=l.key,r=l.getter||r,s=l.setter||s),!(n[o]&&!a)&&(n[o]={get:r,set:s})})})},Fr=({mixinConfig:e,viewProps:t,viewInternalAPI:i,viewExternalAPI:a})=>{let n={...t},l=[];return te(e,(o,r)=>{let s=zr(r);if(!s)return;s.onupdate=c=>{t[o]=c},s.target=n[o],ji([{key:o,setter:c=>{s.target!==c&&(s.target=c)},getter:()=>t[o]}],[i,a],t,!0),l.push(s)}),{write:o=>{let r=document.hidden,s=!0;return l.forEach(p=>{p.resting||(s=!1),p.interpolate(o,r)}),s},destroy:()=>{}}},Or=e=>(t,i)=>{e.addEventListener(t,i)},Dr=e=>(t,i)=>{e.removeEventListener(t,i)},Cr=({mixinConfig:e,viewProps:t,viewInternalAPI:i,viewExternalAPI:a,viewState:n,view:l})=>{let o=[],r=Or(l.element),s=Dr(l.element);return a.on=(p,c)=>{o.push({type:p,fn:c}),r(p,c)},a.off=(p,c)=>{o.splice(o.findIndex(d=>d.type===p&&d.fn===c),1),s(p,c)},{write:()=>!0,destroy:()=>{o.forEach(p=>{s(p.type,p.fn)})}}},Br=({mixinConfig:e,viewProps:t,viewExternalAPI:i})=>{ji(e,i,t)},ue=e=>e!=null,Nr={opacity:1,scaleX:1,scaleY:1,translateX:0,translateY:0,rotateX:0,rotateY:0,rotateZ:0,originX:0,originY:0},kr=({mixinConfig:e,viewProps:t,viewInternalAPI:i,viewExternalAPI:a,view:n})=>{let l={...t},o={};ji(e,[i,a],t);let r=()=>[t.translateX||0,t.translateY||0],s=()=>[t.scaleX||0,t.scaleY||0],p=()=>n.rect?En(n.rect,n.childViews,r(),s()):null;return i.Line truncated var hr=Object.defineProperty;var br=(e,t)=>{for(var i in t)hr(e,i,{get:t[i],enumerable:!0})};var na={};br(na,{FileOrigin:()=>Ct,FileStatus:()=>Et,OptionTypes:()=>Gi,Status:()=>nl,create:()=>gt,destroy:()=>ft,find:()=>Wi,getOptions:()=>Hi,parse:()=>Ui,registerPlugin:()=>ve,setOptions:()=>Ot,supported:()=>Vi});var Er=e=>e instanceof HTMLElement,Tr=(e,t=[],i=[])=>{let a={...e},n=[],l=[],o=()=>({...a}),r=()=>{let g=[...n];return n.length=0,g},s=()=>{let g=[...l];l.length=0,g.forEach(({type:f,data:h})=>{p(f,h)})},p=(g,f,h)=>{if(h&&!document.hidden){l.push({type:g,data:f});return}u[g]&&u[g](f),n.push({type:g,data:f})},c=(g,...f)=>m[g]?m[g](...f):null,d={getState:o,processActionQueue:r,processDispatchQueue:s,dispatch:p,query:c},m={};t.forEach(g=>{m={...g(a),...m}});let u={};return i.forEach(g=>{u={...g(p,c,a),...u}}),d},Ir=(e,t,i)=>{if(typeof i=="function"){e[t]=i;return}Object.defineProperty(e,t,{...i})},te=(e,t)=>{for(let i in e)e.hasOwnProperty(i)&&t(i,e[i])},We=e=>{let t={};return te(e,i=>{Ir(t,i,e[i])}),t},se=(e,t,i=null)=>{if(i===null)return e.getAttribute(t)||e.hasAttribute(t);e.setAttribute(t,i)},vr="http://www.w3.org/2000/svg",xr=["svg","path"],za=e=>xr.includes(e),li=(e,t,i={})=>{typeof t=="object"&&(i=t,t=null);let a=za(e)?document.createElementNS(vr,e):document.createElement(e);return t&&(za(e)?se(a,"class",t):a.className=t),te(i,(n,l)=>{se(a,n,l)}),a},yr=e=>(t,i)=>{typeof i<"u"&&e.children[i]?e.insertBefore(t,e.children[i]):e.appendChild(t)},Rr=(e,t)=>(i,a)=>(typeof a<"u"?t.splice(a,0,i):t.push(i),i),Sr=(e,t)=>i=>(t.splice(t.indexOf(i),1),i.element.parentNode&&e.removeChild(i.element),i),_r=typeof window<"u"&&typeof window.document<"u",bn=()=>_r,wr=bn()?li("svg"):{},Lr="children"in wr?e=>e.children.length:e=>e.childNodes.length,En=(e,t,i,a)=>{let n=i[0]||e.left,l=i[1]||e.top,o=n+e.width,r=l+e.height*(a[1]||1),s={element:{...e},inner:{left:e.left,top:e.top,right:e.right,bottom:e.bottom},outer:{left:n,top:l,right:o,bottom:r}};return t.filter(p=>!p.isRectIgnored()).map(p=>p.rect).forEach(p=>{Pa(s.inner,{...p.inner}),Pa(s.outer,{...p.outer})}),Fa(s.inner),s.outer.bottom+=s.element.marginBottom,s.outer.right+=s.element.marginRight,Fa(s.outer),s},Pa=(e,t)=>{t.top+=e.top,t.right+=e.left,t.bottom+=e.top,t.left+=e.left,t.bottom>e.bottom&&(e.bottom=t.bottom),t.right>e.right&&(e.right=t.right)},Fa=e=>{e.width=e.right-e.left,e.height=e.bottom-e.top},$e=e=>typeof e=="number",Mr=(e,t,i,a=.001)=>Math.abs(e-t)<a&&Math.abs(i)<a,Ar=({stiffness:e=.5,damping:t=.75,mass:i=10}={})=>{let a=null,n=null,l=0,o=!1,p=We({interpolate:(c,d)=>{if(o)return;if(!($e(a)&&$e(n))){o=!0,l=0;return}let m=-(n-a)*e;l+=m/i,n+=l,l*=t,Mr(n,a,l)||d?(n=a,l=0,o=!0,p.onupdate(n),p.oncomplete(n)):p.onupdate(n)},target:{set:c=>{if($e(c)&&!$e(n)&&(n=c),a===null&&(a=c,n=c),a=c,n===a||typeof a>"u"){o=!0,l=0,p.onupdate(n),p.oncomplete(n);return}o=!1},get:()=>a},resting:{get:()=>o},onupdate:c=>{},oncomplete:c=>{}});return p};var zr=e=>e<.5?2*e*e:-1+(4-2*e)*e,Pr=({duration:e=500,easing:t=zr,delay:i=0}={})=>{let a=null,n,l,o=!0,r=!1,s=null,c=We({interpolate:(d,m)=>{o||s===null||(a===null&&(a=d),!(d-a<i)&&(n=d-a-i,n>=e||m?(n=1,l=r?0:1,c.onupdate(l*s),c.oncomplete(l*s),o=!0):(l=n/e,c.onupdate((n>=0?t(r?1-l:l):0)*s))))},target:{get:()=>r?0:s,set:d=>{if(s===null){s=d,c.onupdate(d),c.oncomplete(d);return}d<s?(s=1,r=!0):(r=!1,s=d),o=!1,a=null}},resting:{get:()=>o},onupdate:d=>{},oncomplete:d=>{}});return c},Oa={spring:Ar,tween:Pr},Fr=(e,t,i)=>{let a=e[t]&&typeof e[t][i]=="object"?e[t][i]:e[t]||e,n=typeof a=="string"?a:a.type,l=typeof a=="object"?{...a}:{};return Oa[n]?Oa[n](l):null},ji=(e,t,i,a=!1)=>{t=Array.isArray(t)?t:[t],t.forEach(n=>{e.forEach(l=>{let o=l,r=()=>i[l],s=p=>i[l]=p;typeof l=="object"&&(o=l.key,r=l.getter||r,s=l.setter||s),!(n[o]&&!a)&&(n[o]={get:r,set:s})})})},Or=({mixinConfig:e,viewProps:t,viewInternalAPI:i,viewExternalAPI:a})=>{let n={...t},l=[];return te(e,(o,r)=>{let s=Fr(r);if(!s)return;s.onupdate=c=>{t[o]=c},s.target=n[o],ji([{key:o,setter:c=>{s.target!==c&&(s.target=c)},getter:()=>t[o]}],[i,a],t,!0),l.push(s)}),{write:o=>{let r=document.hidden,s=!0;return l.forEach(p=>{p.resting||(s=!1),p.interpolate(o,r)}),s},destroy:()=>{}}},Dr=e=>(t,i)=>{e.addEventListener(t,i)},Cr=e=>(t,i)=>{e.removeEventListener(t,i)},Br=({mixinConfig:e,viewProps:t,viewInternalAPI:i,viewExternalAPI:a,viewState:n,view:l})=>{let o=[],r=Dr(l.element),s=Cr(l.element);return a.on=(p,c)=>{o.push({type:p,fn:c}),r(p,c)},a.off=(p,c)=>{o.splice(o.findIndex(d=>d.type===p&&d.fn===c),1),s(p,c)},{write:()=>!0,destroy:()=>{o.forEach(p=>{s(p.type,p.fn)})}}},kr=({mixinConfig:e,viewProps:t,viewExternalAPI:i})=>{ji(e,i,t)},ue=e=>e!=null,Nr={opacity:1,scaleX:1,scaleY:1,translateX:0,translateY:0,rotateX:0,rotateY:0,rotateZ:0,originX:0,originY:0},Vr=({mixinConfig:e,viewProps:t,viewInternalAPI:i,viewExternalAPI:a,view:n})=>{let l={...t},o={};ji(e,[i,a],t);let r=()=>[t.translateX||0,t.translateY||0],s=()=>[t.scaleX||0,t.scaleY||0],p=()=>n.rect?En(n.rect,n.childViews,r(),s()):null;return i.Line truncated
`);for(let a of i){let n=zs(a);if(n){t.name=n;continue}let l=Fs(a);if(l){t.size=l;continue}let o=Os(a);if(o){t.source=o;continue}}return t},Ds=e=>{let t={source:null,complete:!1,progress:0,size:null,timestamp:null,duration:0,request:null},i=()=>t.progress,a=()=>{t.request&&t.request.abort&&t.request.abort()},n=()=>{let r=t.source;o.fire("init",r),r instanceof File?o.fire("load",r):r instanceof Blob?o.fire("load",ht(r,r.name)):Fi(r)?o.fire("load",Ps(r)):l(r)},l=r=>{if(!e){o.fire("error",{type:"error",body:"Can't load URL",code:400});return}t.timestamp=Date.now(),t.request=e(r,s=>{t.duration=Date.now()-t.timestamp,t.complete=!0,s instanceof Blob&&(s=ht(s,s.name||Dt(r))),o.fire("load",s instanceof Blob?s:s?s.body:null)},s=>{o.fire("error",typeof s=="string"?{type:"error",code:0,body:s}:s)},(s,p,c)=>{if(c&&(t.size=c),t.duration=Date.now()-t.timestamp,!s){t.progress=null;return}t.progress=p/c,o.fire("progress",t.progress)},()=>{o.fire("abort")},s=>{let p=Xi(typeof s=="string"?s:s.headers);o.fire("meta",{size:t.size||p.size,filename:p.name,source:p.source})})},o={...mi(),setSource:r=>t.source=r,getProgress:i,abort:a,load:n};return o},Ua=e=>/GET|HEAD/.test(e),Qe=(e,t,i)=>{let a={onheaders:()=>{},onprogress:()=>{},onload:()=>{},ontimeout:()=>{},onerror:()=>{},onabort:()=>{},abort:()=>{n=!0,o.abort()}},n=!1,l=!1;i={method:"POST",headers:{},withCredentials:!1,...i},t=encodeURI(t),Ua(i.method)&&e&&(t=`${t}${encodeURIComponent(typeof e=="string"?e:JSON.stringify(e))}`);let o=new XMLHttpRequest,r=Ua(i.method)?o:o.upload;return r.onprogress=s=>{n||a.onprogress(s.lengthComputable,s.loaded,s.total)},o.onreadystatechange=()=>{o.readyState<2||o.readyState===4&&o.status===0||l||(l=!0,a.onheaders(o))},o.onload=()=>{o.status>=200&&o.status<300?a.onload(o):a.onerror(o)},o.onerror=()=>a.onerror(o),o.onabort=()=>{n=!0,a.onabort()},o.ontimeout=()=>a.ontimeout(o),o.open(i.method,t,!0),bt(i.timeout)&&(o.timeout=i.timeout),Object.keys(i.headers).forEach(s=>{let p=unescape(encodeURIComponent(i.headers[s]));o.setRequestHeader(s,p)}),i.responseType&&(o.responseType=i.responseType),i.withCredentials&&(o.withCredentials=!0),o.send(e),a},ie=(e,t,i,a)=>({type:e,code:t,body:i,headers:a}),Ze=e=>t=>{e(ie("error",0,"Timeout",t.getAllResponseHeaders()))},Wa=e=>/\?/.test(e),Ft=(...e)=>{let t="";return e.forEach(i=>{t+=Wa(t)&&Wa(i)?i.replace(/\?/,"&"):i}),t},_i=(e="",t)=>{if(typeof t=="function")return t;if(!t||!ge(t.url))return null;let i=t.onload||(n=>n),a=t.onerror||(n=>null);return(n,l,o,r,s,p)=>{let c=Qe(n,Ft(e,t.url),{...t,responseType:"blob"});return c.onload=d=>{let m=d.getAllResponseHeaders(),u=Xi(m).name||Dt(n);l(ie("load",d.status,t.method==="HEAD"?null:ht(i(d.response),u),m))},c.onerror=d=>{o(ie("error",d.status,a(d.response)||d.statusText,d.getAllResponseHeaders()))},c.onheaders=d=>{p(ie("headers",d.status,null,d.getAllResponseHeaders()))},c.ontimeout=Ze(o),c.onprogress=r,c.onabort=s,c}},xe={QUEUED:0,COMPLETE:1,PROCESSING:2,ERROR:3,WAITING:4},Cs=(e,t,i,a,n,l,o,r,s,p,c)=>{let d=[],{chunkTransferId:m,chunkServer:u,chunkSize:g,chunkRetryDelays:f}=c,h={serverId:m,aborted:!1},I=t.ondata||(w=>w),b=t.onload||((w,F)=>F==="HEAD"?w.getResponseHeader("Upload-Offset"):w.response),T=t.onerror||(w=>null),v=w=>{let F=new FormData;ce(n)&&F.append(i,JSON.stringify(n));let S=typeof t.headers=="function"?t.headers(a,n):{...t.headers,"Upload-Length":a.size},L={...t,headers:S},D=Qe(I(F),Ft(e,t.url),L);D.onload=O=>w(b(O,L.method)),D.onerror=O=>o(ie("error",O.status,T(O.response)||O.statusText,O.getAllResponseHeaders())),D.ontimeout=Ze(o)},y=w=>{let F=Ft(e,u.url,h.serverId),L={headers:typeof t.headers=="function"?t.headers(h.serverId):{...t.headers},method:"HEAD"},D=Qe(null,F,L);D.onload=O=>w(b(O,L.method)),D.onerror=O=>o(ie("error",O.status,T(O.response)||O.statusText,O.getAllResponseHeaders())),D.ontimeout=Ze(o)},E=Math.floor(a.size/g);for(let w=0;w<=E;w++){let F=w*g,S=a.slice(F,F+g,"application/offset+octet-stream");d[w]={index:w,size:S.size,offset:F,data:S,file:a,progress:0,retries:[...f],status:xe.QUEUED,error:null,request:null,timeout:null}}let _=()=>l(h.serverId),x=w=>w.status===xe.QUEUED||w.status===xe.ERROR,R=w=>{if(h.aborted)return;if(w=w||d.find(x),!w){d.every(C=>C.status===xe.COMPLETE)&&_();return}w.status=xe.PROCESSING,w.progress=null;let F=u.ondata||(C=>C),S=u.onerror||(C=>null),L=u.onload||(()=>{}),D=Ft(e,u.url,h.serverId),O=typeof u.headers=="function"?u.headers(w):{...u.headers,"Content-Type":"application/offset+octet-stream","Upload-Offset":w.offset,"Upload-Length":a.size,"Upload-Name":a.name},G=w.request=Qe(F(w.data),D,{...u,headers:O});G.onload=C=>{L(C,w.index,d.length),w.status=xe.COMPLETE,w.request=null,A()},G.onprogress=(C,q,$)=>{w.progress=C?q:null,P()},G.onerror=C=>{w.status=xe.ERROR,w.request=null,w.error=S(C.response)||C.statusText,z(w)||o(ie("error",C.status,S(C.response)||C.statusText,C.getAllResponseHeaders()))},G.ontimeout=C=>{w.status=xe.ERROR,w.request=null,z(w)||Ze(o)(C)},G.onabort=()=>{w.status=xe.QUEUED,w.request=null,s() Line truncated `);for(let a of i){let n=Fs(a);if(n){t.name=n;continue}let l=Os(a);if(l){t.size=l;continue}let o=Ds(a);if(o){t.source=o;continue}}return t},Cs=e=>{let t={source:null,complete:!1,progress:0,size:null,timestamp:null,duration:0,request:null},i=()=>t.progress,a=()=>{t.request&&t.request.abort&&t.request.abort()},n=()=>{let r=t.source;o.fire("init",r),r instanceof File?o.fire("load",r):r instanceof Blob?o.fire("load",ht(r,r.name)):Fi(r)?o.fire("load",Ps(r)):l(r)},l=r=>{if(!e){o.fire("error",{type:"error",body:"Can't load URL",code:400});return}t.timestamp=Date.now(),t.request=e(r,s=>{t.duration=Date.now()-t.timestamp,t.complete=!0,s instanceof Blob&&(s=ht(s,s.name||Dt(r))),o.fire("load",s instanceof Blob?s:s?s.body:null)},s=>{o.fire("error",typeof s=="string"?{type:"error",code:0,body:s}:s)},(s,p,c)=>{if(c&&(t.size=c),t.duration=Date.now()-t.timestamp,!s){t.progress=null;return}t.progress=p/c,o.fire("progress",t.progress)},()=>{o.fire("abort")},s=>{let p=Xi(typeof s=="string"?s:s.headers);o.fire("meta",{size:t.size||p.size,filename:p.name,source:p.source})})},o={...mi(),setSource:r=>t.source=r,getProgress:i,abort:a,load:n};return o},Ua=e=>/GET|HEAD/.test(e),Ze=(e,t,i)=>{let a={onheaders:()=>{},onprogress:()=>{},onload:()=>{},ontimeout:()=>{},onerror:()=>{},onabort:()=>{},abort:()=>{n=!0,o.abort()}},n=!1,l=!1;i={method:"POST",headers:{},withCredentials:!1,...i},t=encodeURI(t),Ua(i.method)&&e&&(t=`${t}${encodeURIComponent(typeof e=="string"?e:JSON.stringify(e))}`);let o=new XMLHttpRequest,r=Ua(i.method)?o:o.upload;return r.onprogress=s=>{n||a.onprogress(s.lengthComputable,s.loaded,s.total)},o.onreadystatechange=()=>{o.readyState<2||o.readyState===4&&o.status===0||l||(l=!0,a.onheaders(o))},o.onload=()=>{o.status>=200&&o.status<300?a.onload(o):a.onerror(o)},o.onerror=()=>a.onerror(o),o.onabort=()=>{n=!0,a.onabort()},o.ontimeout=()=>a.ontimeout(o),o.open(i.method,t,!0),bt(i.timeout)&&(o.timeout=i.timeout),Object.keys(i.headers).forEach(s=>{let p=unescape(encodeURIComponent(i.headers[s]));o.setRequestHeader(s,p)}),i.responseType&&(o.responseType=i.responseType),i.withCredentials&&(o.withCredentials=!0),o.send(e),a},ie=(e,t,i,a)=>({type:e,code:t,body:i,headers:a}),Qe=e=>t=>{e(ie("error",0,"Timeout",t.getAllResponseHeaders()))},Wa=e=>/\?/.test(e),Ft=(...e)=>{let t="";return e.forEach(i=>{t+=Wa(t)&&Wa(i)?i.replace(/\?/,"&"):i}),t},_i=(e="",t)=>{if(typeof t=="function")return t;if(!t||!ge(t.url))return null;let i=t.onload||(n=>n),a=t.onerror||(n=>null);return(n,l,o,r,s,p)=>{let c=Ze(n,Ft(e,t.url),{...t,responseType:"blob"});return c.onload=d=>{let m=d.getAllResponseHeaders(),u=Xi(m).name||Dt(n);l(ie("load",d.status,t.method==="HEAD"?null:ht(i(d.response),u),m))},c.onerror=d=>{o(ie("error",d.status,a(d.response)||d.statusText,d.getAllResponseHeaders()))},c.onheaders=d=>{p(ie("headers",d.status,null,d.getAllResponseHeaders()))},c.ontimeout=Qe(o),c.onprogress=r,c.onabort=s,c}},xe={QUEUED:0,COMPLETE:1,PROCESSING:2,ERROR:3,WAITING:4},Bs=(e,t,i,a,n,l,o,r,s,p,c)=>{let d=[],{chunkTransferId:m,chunkServer:u,chunkSize:g,chunkRetryDelays:f}=c,h={serverId:m,aborted:!1},I=t.ondata||(w=>w),b=t.onload||((w,F)=>F==="HEAD"?w.getResponseHeader("Upload-Offset"):w.response),T=t.onerror||(w=>null),v=w=>{let F=new FormData;ce(n)&&F.append(i,JSON.stringify(n));let S=typeof t.headers=="function"?t.headers(a,n):{...t.headers,"Upload-Length":a.size},L={...t,headers:S},D=Ze(I(F),Ft(e,t.url),L);D.onload=O=>w(b(O,L.method)),D.onerror=O=>o(ie("error",O.status,T(O.response)||O.statusText,O.getAllResponseHeaders())),D.ontimeout=Qe(o)},y=w=>{let F=Ft(e,u.url,h.serverId),L={headers:typeof t.headers=="function"?t.headers(h.serverId):{...t.headers},method:"HEAD"},D=Ze(null,F,L);D.onload=O=>w(b(O,L.method)),D.onerror=O=>o(ie("error",O.status,T(O.response)||O.statusText,O.getAllResponseHeaders())),D.ontimeout=Qe(o)},E=Math.floor(a.size/g);for(let w=0;w<=E;w++){let F=w*g,S=a.slice(F,F+g,"application/offset+octet-stream");d[w]={index:w,size:S.size,offset:F,data:S,file:a,progress:0,retries:[...f],status:xe.QUEUED,error:null,request:null,timeout:null}}let _=()=>l(h.serverId),x=w=>w.status===xe.QUEUED||w.status===xe.ERROR,R=w=>{if(h.aborted)return;if(w=w||d.find(x),!w){d.every(C=>C.status===xe.COMPLETE)&&_();return}w.status=xe.PROCESSING,w.progress=null;let F=u.ondata||(C=>C),S=u.onerror||(C=>null),L=u.onload||(()=>{}),D=Ft(e,u.url,h.serverId),O=typeof u.headers=="function"?u.headers(w):{...u.headers,"Content-Type":"application/offset+octet-stream","Upload-Offset":w.offset,"Upload-Length":a.size,"Upload-Name":a.name},G=w.request=Ze(F(w.data),D,{...u,headers:O});G.onload=C=>{L(C,w.index,d.length),w.status=xe.COMPLETE,w.request=null,A()},G.onprogress=(C,q,$)=>{w.progress=C?q:null,z()},G.onerror=C=>{w.status=xe.ERROR,w.request=null,w.error=S(C.response)||C.statusText,P(w)||o(ie("error",C.status,S(C.response)||C.statusText,C.getAllResponseHeaders()))},G.ontimeout=C=>{w.status=xe.ERROR,w.request=null,P(w)||Qe(o)(C)},G.onabort=()=>{w.status=xe.QUEUED,w.request=null,s() Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ti=typeof window<"u"&&typeof window.document<"u",De=Ti?window:{},ba=Ti&&De.document.documentElement?"ontouchstart"in De.document.documentElement:!1,Ea=Ti?"PointerEvent"in De:!1,Z="cropper",Ta="all",Rl="crop",Sl="move",_l="zoom",at="e",nt="w",Tt="s",He="n",Bt="ne",Nt="nw",kt="se",Vt="sw",ca="".concat(Z,"-crop"),rl="".concat(Z,"-disabled"),Ee="".concat(Z,"-hidden"),sl="".concat(Z,"-hide"),Ap="".concat(Z,"-invisible"),Ei="".concat(Z,"-modal"),da="".concat(Z,"-move"),Ut="".concat(Z,"Action"),hi="".concat(Z,"Preview"),Ia="crop",wl="move",Ll="none",pa="crop",ma="cropend",ua="cropmove",ga="cropstart",cl="dblclick",Pp=ba?"touchstart":"mousedown",zp=ba?"touchmove":"mousemove",Fp=ba?"touchend touchcancel":"mouseup",dl=Ea?"pointerdown":Pp,pl=Ea?"pointermove":zp,ml=Ea?"pointerup pointercancel":Fp,ul="ready",gl="resize",fl="wheel",fa="zoom",hl="image/jpeg",Op=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,Dp=/^data:/,Cp=/^data:image\/jpeg;base64,/,Bp=/^img|canvas$/i,Ml=200,Al=100,bl={viewMode:0,dragMode:Ia,initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:Ml,minContainerHeight:Al,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},Np='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>',kp=Number.isNaN||De.isNaN;function j(e){return typeof e=="number"&&!kp(e)}var El=function(t){return t>0&&t<1/0};function la(e){return typeof e>"u"}function lt(e){return ra(e)==="object"&&e!==null}var Vp=Object.prototype.hasOwnProperty;function It(e){if(!lt(e))return!1;try{var t=e.constructor,i=t.prototype;return t&&i&&Vp.call(i,"isPrototypeOf")}catch{return!1}}function be(e){return typeof e=="function"}var Gp=Array.prototype.slice;function Pl(e){return Array.from?Array.from(e):Gp.call(e)}function le(e,t){return e&&be(t)&&(Array.isArray(e)||j(e.length)?Pl(e).forEach(function(i,a){t.call(e,i,a,e)}):lt(e)&&Object.keys(e).forEach(function(i){t.call(e,e[i],i,e)})),e}var J=Object.assign||function(t){for(var i=arguments.length,a=new Array(i>1?i-1:0),n=1;n<i;n++)a[n-1]=arguments[n];return lt(t)&&a.length>0&&a.forEach(function(l){lt(l)&&Object.keys(l).forEach(function(o){t[o]=l[o]})}),t},Up=/\.\d*(?:0|9){12}\d*$/;function xt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return Up.test(e)?Math.round(e*t)/t:e}var Wp=/^width|height|left|top|marginLeft|marginTop$/;function je(e,t){var i=e.style;le(t,function(a,n){Wp.test(n)&&j(a)&&(a="".concat(a,"px")),i[n]=a})}function Hp(e,t){return e.classList?e.classList.contains(t):e.className.indexOf(t)>-1}function de(e,t){if(t){if(j(e.length)){le(e,function(a){de(a,t)});return}if(e.classList){e.classList.add(t);return}var i=e.className.trim();i?i.indexOf(t)<0&&(e.className="".concat(i," ").concat(t)):e.className=t}}function Oe(e,t){if(t){if(j(e.length)){le(e,function(i){Oe(i,t)});return}if(e.classList){e.classList.remove(t);return}e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,""))}}function vt(e,t,i){if(t){if(j(e.length)){le(e,function(a){vt(a,t,i)});return}i?de(e,t):Oe(e,t)}}var jp=/([a-z\d])([A-Z])/g;function va(e){return e.replace(jp,"$1-$2").toLowerCase()}function ha(e,t){return lt(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(va(t)))}function Wt(e,t,i){lt(i)?e[t]=i:e.dataset?e.dataset[t]=i:e.setAttribute("data-".concat(va(t)),i)}function Yp(e,t){if(lt(e[t]))try{delete e[t]}catch{e[t]=void 0}else if(e.dataset)try{ Line truncated In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ti=typeof window<"u"&&typeof window.document<"u",De=Ti?window:{},ba=Ti&&De.document.documentElement?"ontouchstart"in De.document.documentElement:!1,Ea=Ti?"PointerEvent"in De:!1,Q="cropper",Ta="all",Rl="crop",Sl="move",_l="zoom",at="e",nt="w",Tt="s",He="n",Bt="ne",kt="nw",Nt="se",Vt="sw",ca="".concat(Q,"-crop"),rl="".concat(Q,"-disabled"),Ee="".concat(Q,"-hidden"),sl="".concat(Q,"-hide"),zp="".concat(Q,"-invisible"),Ei="".concat(Q,"-modal"),da="".concat(Q,"-move"),Ut="".concat(Q,"Action"),hi="".concat(Q,"Preview"),Ia="crop",wl="move",Ll="none",pa="crop",ma="cropend",ua="cropmove",ga="cropstart",cl="dblclick",Pp=ba?"touchstart":"mousedown",Fp=ba?"touchmove":"mousemove",Op=ba?"touchend touchcancel":"mouseup",dl=Ea?"pointerdown":Pp,pl=Ea?"pointermove":Fp,ml=Ea?"pointerup pointercancel":Op,ul="ready",gl="resize",fl="wheel",fa="zoom",hl="image/jpeg",Dp=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,Cp=/^data:/,Bp=/^data:image\/jpeg;base64,/,kp=/^img|canvas$/i,Ml=200,Al=100,bl={viewMode:0,dragMode:Ia,initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:Ml,minContainerHeight:Al,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},Np='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>',Vp=Number.isNaN||De.isNaN;function j(e){return typeof e=="number"&&!Vp(e)}var El=function(t){return t>0&&t<1/0};function la(e){return typeof e>"u"}function lt(e){return ra(e)==="object"&&e!==null}var Gp=Object.prototype.hasOwnProperty;function It(e){if(!lt(e))return!1;try{var t=e.constructor,i=t.prototype;return t&&i&&Gp.call(i,"isPrototypeOf")}catch{return!1}}function be(e){return typeof e=="function"}var Up=Array.prototype.slice;function zl(e){return Array.from?Array.from(e):Up.call(e)}function le(e,t){return e&&be(t)&&(Array.isArray(e)||j(e.length)?zl(e).forEach(function(i,a){t.call(e,i,a,e)}):lt(e)&&Object.keys(e).forEach(function(i){t.call(e,e[i],i,e)})),e}var J=Object.assign||function(t){for(var i=arguments.length,a=new Array(i>1?i-1:0),n=1;n<i;n++)a[n-1]=arguments[n];return lt(t)&&a.length>0&&a.forEach(function(l){lt(l)&&Object.keys(l).forEach(function(o){t[o]=l[o]})}),t},Wp=/\.\d*(?:0|9){12}\d*$/;function xt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return Wp.test(e)?Math.round(e*t)/t:e}var Hp=/^width|height|left|top|marginLeft|marginTop$/;function je(e,t){var i=e.style;le(t,function(a,n){Hp.test(n)&&j(a)&&(a="".concat(a,"px")),i[n]=a})}function jp(e,t){return e.classList?e.classList.contains(t):e.className.indexOf(t)>-1}function de(e,t){if(t){if(j(e.length)){le(e,function(a){de(a,t)});return}if(e.classList){e.classList.add(t);return}var i=e.className.trim();i?i.indexOf(t)<0&&(e.className="".concat(i," ").concat(t)):e.className=t}}function Oe(e,t){if(t){if(j(e.length)){le(e,function(i){Oe(i,t)});return}if(e.classList){e.classList.remove(t);return}e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,""))}}function vt(e,t,i){if(t){if(j(e.length)){le(e,function(a){vt(a,t,i)});return}i?de(e,t):Oe(e,t)}}var Yp=/([a-z\d])([A-Z])/g;function va(e){return e.replace(Yp,"$1-$2").toLowerCase()}function ha(e,t){return lt(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(va(t)))}function Wt(e,t,i){lt(i)?e[t]=i:e.dataset?e.dataset[t]=i:e.setAttribute("data-".concat(va(t)),i)}function qp(e,t){if(lt(e[t]))try{delete e[t]}catch{e[t]=void 0}else if(e.dataset)try{ Line truncated
<defs> <defs>
<radialGradient id="gradient-__UID__" cx=".5" cy="1.25" r="1.15"> <radialGradient id="gradient-__UID__" cx=".5" cy="1.25" r="1.15">
<stop offset='50%' stop-color='#000000'/> <stop offset='50%' stop-color='#000000'/>
@@ -18,15 +18,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
</mask> </mask>
</defs> </defs>
<rect x="0" width="500" height="200" fill="currentColor" mask="url(#mask-__UID__)"></rect> <rect x="0" width="500" height="200" fill="currentColor" mask="url(#mask-__UID__)"></rect>
</svg>`,lo=0,au=e=>e.utils.createView({name:"image-preview-overlay",tag:"div",ignoreRect:!0,create:({root:t,props:i})=>{let a=iu;if(document.querySelector("base")){let n=new URL(window.location.href.replace(window.location.hash,"")).href;a=a.replace(/url\(\#/g,"url("+n+"#")}lo++,t.element.classList.add(`filepond--image-preview-overlay-${i.status}`),t.element.innerHTML=a.replace(/__UID__/g,lo)},mixins:{styles:["opacity"],animations:{opacity:{type:"spring",mass:25}}}}),nu=function(){self.onmessage=e=>{createImageBitmap(e.data.message.file).then(t=>{self.postMessage({id:e.data.id,message:t},[t])})}},lu=function(){self.onmessage=e=>{let t=e.data.message.imageData,i=e.data.message.colorMatrix,a=t.data,n=a.length,l=i[0],o=i[1],r=i[2],s=i[3],p=i[4],c=i[5],d=i[6],m=i[7],u=i[8],g=i[9],f=i[10],h=i[11],I=i[12],b=i[13],T=i[14],v=i[15],y=i[16],E=i[17],_=i[18],x=i[19],R=0,z=0,P=0,A=0,B=0;for(;R<n;R+=4)z=a[R]/255,P=a[R+1]/255,A=a[R+2]/255,B=a[R+3]/255,a[R]=Math.max(0,Math.min((z*l+P*o+A*r+B*s+p)*255,255)),a[R+1]=Math.max(0,Math.min((z*c+P*d+A*m+B*u+g)*255,255)),a[R+2]=Math.max(0,Math.min((z*f+P*h+A*I+B*b+T)*255,255)),a[R+3]=Math.max(0,Math.min((z*v+P*y+A*E+B*_+x)*255,255));self.postMessage({id:e.data.id,message:t},[t.data.buffer])}},ou=(e,t)=>{let i=new Image;i.onload=()=>{let a=i.naturalWidth,n=i.naturalHeight;i=null,t(a,n)},i.src=e},ru={1:()=>[1,0,0,1,0,0],2:e=>[-1,0,0,1,e,0],3:(e,t)=>[-1,0,0,-1,e,t],4:(e,t)=>[1,0,0,-1,0,t],5:()=>[0,1,1,0,0,0],6:(e,t)=>[0,1,-1,0,t,0],7:(e,t)=>[0,-1,-1,0,t,e],8:e=>[0,-1,1,0,0,e]},su=(e,t,i,a)=>{a!==-1&&e.transform.apply(e,ru[a](t,i))},cu=(e,t,i,a)=>{t=Math.round(t),i=Math.round(i);let n=document.createElement("canvas");n.width=t,n.height=i;let l=n.getContext("2d");return a>=5&&a<=8&&([t,i]=[i,t]),su(l,t,i,a),l.drawImage(e,0,0,t,i),n},so=e=>/^image/.test(e.type)&&!/svg/.test(e.type),du=10,pu=10,mu=e=>{let t=Math.min(du/e.width,pu/e.height),i=document.createElement("canvas"),a=i.getContext("2d"),n=i.width=Math.ceil(e.width*t),l=i.height=Math.ceil(e.height*t);a.drawImage(e,0,0,n,l);let o=null;try{o=a.getImageData(0,0,n,l).data}catch{return null}let r=o.length,s=0,p=0,c=0,d=0;for(;d<r;d+=4)s+=o[d]*o[d],p+=o[d+1]*o[d+1],c+=o[d+2]*o[d+2];return s=_a(s,r),p=_a(p,r),c=_a(c,r),{r:s,g:p,b:c}},_a=(e,t)=>Math.floor(Math.sqrt(e/(t/4))),uu=(e,t)=>(t=t||document.createElement("canvas"),t.width=e.width,t.height=e.height,t.getContext("2d").drawImage(e,0,0),t),gu=e=>{let t;try{t=new ImageData(e.width,e.height)}catch{t=document.createElement("canvas").getContext("2d").createImageData(e.width,e.height)}return t.data.set(new Uint8ClampedArray(e.data)),t},fu=e=>new Promise((t,i)=>{let a=new Image;a.crossOrigin="Anonymous",a.onload=()=>{t(a)},a.onerror=n=>{i(n)},a.src=e}),hu=e=>{let t=au(e),i=tu(e),{createWorker:a}=e.utils,n=(b,T,v)=>new Promise(y=>{b.ref.imageData||(b.ref.imageData=v.getContext("2d").getImageData(0,0,v.width,v.height));let E=gu(b.ref.imageData);if(!T||T.length!==20)return v.getContext("2d").putImageData(E,0,0),y();let _=a(lu);_.post({imageData:E,colorMatrix:T},x=>{v.getContext("2d").putImageData(x,0,0),_.terminate(),y()},[E.data.buffer])}),l=(b,T)=>{b.removeChildView(T),T.image.width=1,T.image.height=1,T._destroy()},o=({root:b})=>{let T=b.ref.images.shift();return T.opacity=0,T.translateY=-15,b.ref.imageViewBin.push(T),T},r=({root:b,props:T,image:v})=>{let y=T.id,E=b.query("GET_ITEM",{id:y});if(!E)return;let _=E.getMetadata("crop")||{center:{x:.5,y:.5},flip:{horizontal:!1,vertical:!1},zoom:1,rotation:0,aspectRatio:null},x=b.query("GET_IMAGE_TRANSFORM_CANVAS_BACKGROUND_COLOR"),R,z,P=!1;b.query("GET_IMAGE_PREVIEW_MARKUP_SHOW")&&(R=E.getMetadata("markup")||[],z=E.getMetadata("resize"),P=!0);let A=b.appendChildView(b.createChildView(i,{id:y,image:v,crop:_,resize:z,markup:R,dirty:P,background:x,opacity:0,scaleX:1.15,scaleY:1.15,translateY:15}),b.childViews.length);b.ref.images.push(A),A.opacity=1,A.scaleX=1,A.scaleY=1,A.translateY=0,setTimeout(()=>{b.dispatch("DID_IMAGE_PREVIEW_SHOW",{id:y})},250)},s=({root:b,props:T})=>{let v=b.query("GET_ITEM",{id:T.id});if(!v)return;let y=b.ref.images[b.ref.images.length-1];y.crop=v.getMetadata("crop"),y.background=b.query("GET_IMAGE_TRANSFORM_CANVAS_BACKGROUND_COLOR"),b.query("GET_IMAGE_PREVIEW_MARKUP_SHOW")&&(y.dirty=!0,y.resize=v.getMetadata("resize"),y.markup=v.getMetadata("markup"))},p=({root:b,props:T,action:v})=>{if(!/crop|filter|markup|resize/.test(v.change.key)||!b.ref.images.length)return;let y=b.query("GET_ITEM",{id:T.id});if(y){if(/filter/.test(v.change.key)){let E=b.ref.images[b.ref.images.length-1];n(b,v.change.value,E.image);return}if(/crop|markup|resize/.test(v.change.key)){let E=y.getMetadata("crop"),_=b.ref.images[b.ref.images.length-1];if(E&&E.aspectRatio&&_.crop&&_.crop.aspectRatio&&Math.abs(E.aspectRatio-_.crop.aspectRatio)>1e-5){let x=o({root:b});r({root:b,props:T,image:uu(x.image)})}else s({root:b,props:T})}}},c=b=>{let v=window.navigator.userAgent.match(/Firefox\/([0-9]+)\./),y=v?parseInt(v[1]):null;return y!==null&&y<=58?!1:"createImagLine truncated </svg>`,lo=0,nu=e=>e.utils.createView({name:"image-preview-overlay",tag:"div",ignoreRect:!0,create:({root:t,props:i})=>{let a=au;if(document.querySelector("base")){let n=new URL(window.location.href.replace(window.location.hash,"")).href;a=a.replace(/url\(\#/g,"url("+n+"#")}lo++,t.element.classList.add(`filepond--image-preview-overlay-${i.status}`),t.element.innerHTML=a.replace(/__UID__/g,lo)},mixins:{styles:["opacity"],animations:{opacity:{type:"spring",mass:25}}}}),lu=function(){self.onmessage=e=>{createImageBitmap(e.data.message.file).then(t=>{self.postMessage({id:e.data.id,message:t},[t])})}},ou=function(){self.onmessage=e=>{let t=e.data.message.imageData,i=e.data.message.colorMatrix,a=t.data,n=a.length,l=i[0],o=i[1],r=i[2],s=i[3],p=i[4],c=i[5],d=i[6],m=i[7],u=i[8],g=i[9],f=i[10],h=i[11],I=i[12],b=i[13],T=i[14],v=i[15],y=i[16],E=i[17],_=i[18],x=i[19],R=0,P=0,z=0,A=0,B=0;for(;R<n;R+=4)P=a[R]/255,z=a[R+1]/255,A=a[R+2]/255,B=a[R+3]/255,a[R]=Math.max(0,Math.min((P*l+z*o+A*r+B*s+p)*255,255)),a[R+1]=Math.max(0,Math.min((P*c+z*d+A*m+B*u+g)*255,255)),a[R+2]=Math.max(0,Math.min((P*f+z*h+A*I+B*b+T)*255,255)),a[R+3]=Math.max(0,Math.min((P*v+z*y+A*E+B*_+x)*255,255));self.postMessage({id:e.data.id,message:t},[t.data.buffer])}},ru=(e,t)=>{let i=new Image;i.onload=()=>{let a=i.naturalWidth,n=i.naturalHeight;i=null,t(a,n)},i.src=e},su={1:()=>[1,0,0,1,0,0],2:e=>[-1,0,0,1,e,0],3:(e,t)=>[-1,0,0,-1,e,t],4:(e,t)=>[1,0,0,-1,0,t],5:()=>[0,1,1,0,0,0],6:(e,t)=>[0,1,-1,0,t,0],7:(e,t)=>[0,-1,-1,0,t,e],8:e=>[0,-1,1,0,0,e]},cu=(e,t,i,a)=>{a!==-1&&e.transform.apply(e,su[a](t,i))},du=(e,t,i,a)=>{t=Math.round(t),i=Math.round(i);let n=document.createElement("canvas");n.width=t,n.height=i;let l=n.getContext("2d");return a>=5&&a<=8&&([t,i]=[i,t]),cu(l,t,i,a),l.drawImage(e,0,0,t,i),n},so=e=>/^image/.test(e.type)&&!/svg/.test(e.type),pu=10,mu=10,uu=e=>{let t=Math.min(pu/e.width,mu/e.height),i=document.createElement("canvas"),a=i.getContext("2d"),n=i.width=Math.ceil(e.width*t),l=i.height=Math.ceil(e.height*t);a.drawImage(e,0,0,n,l);let o=null;try{o=a.getImageData(0,0,n,l).data}catch{return null}let r=o.length,s=0,p=0,c=0,d=0;for(;d<r;d+=4)s+=o[d]*o[d],p+=o[d+1]*o[d+1],c+=o[d+2]*o[d+2];return s=_a(s,r),p=_a(p,r),c=_a(c,r),{r:s,g:p,b:c}},_a=(e,t)=>Math.floor(Math.sqrt(e/(t/4))),gu=(e,t)=>(t=t||document.createElement("canvas"),t.width=e.width,t.height=e.height,t.getContext("2d").drawImage(e,0,0),t),fu=e=>{let t;try{t=new ImageData(e.width,e.height)}catch{t=document.createElement("canvas").getContext("2d").createImageData(e.width,e.height)}return t.data.set(new Uint8ClampedArray(e.data)),t},hu=e=>new Promise((t,i)=>{let a=new Image;a.crossOrigin="Anonymous",a.onload=()=>{t(a)},a.onerror=n=>{i(n)},a.src=e}),bu=e=>{let t=nu(e),i=iu(e),{createWorker:a}=e.utils,n=(b,T,v)=>new Promise(y=>{b.ref.imageData||(b.ref.imageData=v.getContext("2d").getImageData(0,0,v.width,v.height));let E=fu(b.ref.imageData);if(!T||T.length!==20)return v.getContext("2d").putImageData(E,0,0),y();let _=a(ou);_.post({imageData:E,colorMatrix:T},x=>{v.getContext("2d").putImageData(x,0,0),_.terminate(),y()},[E.data.buffer])}),l=(b,T)=>{b.removeChildView(T),T.image.width=1,T.image.height=1,T._destroy()},o=({root:b})=>{let T=b.ref.images.shift();return T.opacity=0,T.translateY=-15,b.ref.imageViewBin.push(T),T},r=({root:b,props:T,image:v})=>{let y=T.id,E=b.query("GET_ITEM",{id:y});if(!E)return;let _=E.getMetadata("crop")||{center:{x:.5,y:.5},flip:{horizontal:!1,vertical:!1},zoom:1,rotation:0,aspectRatio:null},x=b.query("GET_IMAGE_TRANSFORM_CANVAS_BACKGROUND_COLOR"),R,P,z=!1;b.query("GET_IMAGE_PREVIEW_MARKUP_SHOW")&&(R=E.getMetadata("markup")||[],P=E.getMetadata("resize"),z=!0);let A=b.appendChildView(b.createChildView(i,{id:y,image:v,crop:_,resize:P,markup:R,dirty:z,background:x,opacity:0,scaleX:1.15,scaleY:1.15,translateY:15}),b.childViews.length);b.ref.images.push(A),A.opacity=1,A.scaleX=1,A.scaleY=1,A.translateY=0,setTimeout(()=>{b.dispatch("DID_IMAGE_PREVIEW_SHOW",{id:y})},250)},s=({root:b,props:T})=>{let v=b.query("GET_ITEM",{id:T.id});if(!v)return;let y=b.ref.images[b.ref.images.length-1];y.crop=v.getMetadata("crop"),y.background=b.query("GET_IMAGE_TRANSFORM_CANVAS_BACKGROUND_COLOR"),b.query("GET_IMAGE_PREVIEW_MARKUP_SHOW")&&(y.dirty=!0,y.resize=v.getMetadata("resize"),y.markup=v.getMetadata("markup"))},p=({root:b,props:T,action:v})=>{if(!/crop|filter|markup|resize/.test(v.change.key)||!b.ref.images.length)return;let y=b.query("GET_ITEM",{id:T.id});if(y){if(/filter/.test(v.change.key)){let E=b.ref.images[b.ref.images.length-1];n(b,v.change.value,E.image);return}if(/crop|markup|resize/.test(v.change.key)){let E=y.getMetadata("crop"),_=b.ref.images[b.ref.images.length-1];if(E&&E.aspectRatio&&_.crop&&_.crop.aspectRatio&&Math.abs(E.aspectRatio-_.crop.aspectRatio)>1e-5){let x=o({root:b});r({root:b,props:T,image:gu(x.image)})}else s({root:b,props:T})}}},c=b=>{let v=window.navigator.userAgent.match(/Firefox\/([0-9]+)\./),y=v?parseInt(v[1]):null;return y!==null&&y<=58?!1:"createImagLine truncated
`+H.outerHTML+` `+H.outerHTML+`
`},""),_=` `},""),_=`
<g>${_.replace(/&nbsp;/g," ")}</g> <g>${_.replace(/&nbsp;/g," ")}</g>
`}let x=t.aspectRatio||E/y,R=y,z=R*x,P=typeof t.scaleToFit>"u"||t.scaleToFit,A=t.center?t.center.x:.5,B=t.center?t.center.y:.5,w=To({width:y,height:E},Io({width:R,height:z},x),t.rotation,P?{x:A,y:B}:{x:.5,y:.5}),F=t.zoom*w,S=t.rotation*(180/Math.PI),L={x:R*.5,y:z*.5},D={x:L.x-y*A,y:L.y-E*B},O=[`rotate(${S} ${L.x} ${L.y})`,`translate(${L.x} ${L.y})`,`scale(${F})`,`translate(${-L.x} ${-L.y})`,`translate(${D.x} ${D.y})`],G=t.flip&&t.flip.horizontal,C=t.flip&&t.flip.vertical,q=[`scale(${G?-1:1} ${C?-1:1})`,`translate(${G?-y:0} ${C?-E:0})`],$=`<?xml version="1.0" encoding="UTF-8"?> `}let x=t.aspectRatio||E/y,R=y,P=R*x,z=typeof t.scaleToFit>"u"||t.scaleToFit,A=t.center?t.center.x:.5,B=t.center?t.center.y:.5,w=To({width:y,height:E},Io({width:R,height:P},x),t.rotation,z?{x:A,y:B}:{x:.5,y:.5}),F=t.zoom*w,S=t.rotation*(180/Math.PI),L={x:R*.5,y:P*.5},D={x:L.x-y*A,y:L.y-E*B},O=[`rotate(${S} ${L.x} ${L.y})`,`translate(${L.x} ${L.y})`,`scale(${F})`,`translate(${-L.x} ${-L.y})`,`translate(${D.x} ${D.y})`],G=t.flip&&t.flip.horizontal,C=t.flip&&t.flip.vertical,q=[`scale(${G?-1:1} ${C?-1:1})`,`translate(${G?-y:0} ${C?-E:0})`],$=`<?xml version="1.0" encoding="UTF-8"?>
<svg width="${R}${I}" height="${z}${b}" <svg width="${R}${I}" height="${P}${b}"
viewBox="0 0 ${R} ${z}" ${l?'style="background:'+l+'" ':""} viewBox="0 0 ${R} ${P}" ${l?'style="background:'+l+'" ':""}
preserveAspectRatio="xMinYMin" preserveAspectRatio="xMinYMin"
xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/2000/svg"> xmlns="http://www.w3.org/2000/svg">
@@ -37,12 +37,12 @@ xmlns="http://www.w3.org/2000/svg">
${p.outerHTML}${_} ${p.outerHTML}${_}
</g> </g>
</g> </g>
</svg>`;n($)},o.readAsText(e)}),Ju=e=>{let t;try{t=new ImageData(e.width,e.height)}catch{t=document.createElement("canvas").getContext("2d").createImageData(e.width,e.height)}return t.data.set(e.data),t},eg=()=>{let e={resize:c,filter:p},t=(d,m)=>(d.forEach(u=>{m=e[u.type](m,u.data)}),m),i=(d,m)=>{let u=d.transforms,g=null;if(u.forEach(f=>{f.type==="filter"&&(g=f)}),g){let f=null;u.forEach(h=>{h.type==="resize"&&(f=h)}),f&&(f.data.matrix=g.data,u=u.filter(h=>h.type!=="filter"))}m(t(u,d.imageData))};self.onmessage=d=>{i(d.data.message,m=>{self.postMessage({id:d.data.id,message:m},[m.data.buffer])})};let a=1,n=1,l=1;function o(d,m,u){let g=m[d]/255,f=m[d+1]/255,h=m[d+2]/255,I=m[d+3]/255,b=g*u[0]+f*u[1]+h*u[2]+I*u[3]+u[4],T=g*u[5]+f*u[6]+h*u[7]+I*u[8]+u[9],v=g*u[10]+f*u[11]+h*u[12]+I*u[13]+u[14],y=g*u[15]+f*u[16]+h*u[17]+I*u[18]+u[19],E=Math.max(0,b*y)+a*(1-y),_=Math.max(0,T*y)+n*(1-y),x=Math.max(0,v*y)+l*(1-y);m[d]=Math.max(0,Math.min(1,E))*255,m[d+1]=Math.max(0,Math.min(1,_))*255,m[d+2]=Math.max(0,Math.min(1,x))*255}let r=self.JSON.stringify([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]);function s(d){return self.JSON.stringify(d||[])===r}function p(d,m){if(!m||s(m))return d;let u=d.data,g=u.length,f=m[0],h=m[1],I=m[2],b=m[3],T=m[4],v=m[5],y=m[6],E=m[7],_=m[8],x=m[9],R=m[10],z=m[11],P=m[12],A=m[13],B=m[14],w=m[15],F=m[16],S=m[17],L=m[18],D=m[19],O=0,G=0,C=0,q=0,$=0,K=0,pe=0,k=0,H=0,Y=0,oe=0,ee=0;for(;O<g;O+=4)G=u[O]/255,C=u[O+1]/255,q=u[O+2]/255,$=u[O+3]/255,K=G*f+C*h+q*I+$*b+T,pe=G*v+C*y+q*E+$*_+x,k=G*R+C*z+q*P+$*A+B,H=G*w+C*F+q*S+$*L+D,Y=Math.max(0,K*H)+a*(1-H),oe=Math.max(0,pe*H)+n*(1-H),ee=Math.max(0,k*H)+l*(1-H),u[O]=Math.max(0,Math.min(1,Y))*255,u[O+1]=Math.max(0,Math.min(1,oe))*255,u[O+2]=Math.max(0,Math.min(1,ee))*255;return d}function c(d,m){let{mode:u="contain",upscale:g=!1,width:f,height:h,matrix:I}=m;if(I=!I||s(I)?null:I,!f&&!h)return p(d,I);if(f===null?f=h:h===null&&(h=f),u!=="force"){let A=f/d.width,B=h/d.height,w=1;if(u==="cover"?w=Math.max(A,B):u==="contain"&&(w=Math.min(A,B)),w>1&&g===!1)return p(d,I);f=d.width*w,h=d.height*w}let b=d.width,T=d.height,v=Math.round(f),y=Math.round(h),E=d.data,_=new Uint8ClampedArray(v*y*4),x=b/v,R=T/y,z=Math.ceil(x*.5),P=Math.ceil(R*.5);for(let A=0;A<y;A++)for(let B=0;B<v;B++){let w=(B+A*v)*4,F=0,S=0,L=0,D=0,O=0,G=0,C=0,q=(A+.5)*R;for(let $=Math.floor(A*R);$<(A+1)*R;$++){let K=Math.abs(q-($+.5))/P,pe=(B+.5)*x,k=K*K;for(let H=Math.floor(B*x);H<(B+1)*x;H++){let Y=Math.abs(pe-(H+.5))/z,oe=Math.sqrt(k+Y*Y);if(oe>=-1&&oe<=1&&(F=2*oe*oe*oe-3*oe*oe+1,F>0)){Y=4*(H+$*b);let ee=E[Y+3];C+=F*ee,L+=F,ee<255&&(F=F*ee/250),D+=F*E[Y],O+=F*E[Y+1],G+=F*E[Y+2],S+=F}}}_[w]=D/S,_[w+1]=O/S,_[w+2]=G/S,_[w+3]=C/L,I&&o(w,_,I)}return{data:_,width:v,height:y}}},tg=(e,t)=>{if(e.getUint32(t+4,!1)!==1165519206)return;t+=4;let i=e.getUint16(t+=6,!1)===18761;t+=e.getUint32(t+4,i);let a=e.getUint16(t,i);t+=2;for(let n=0;n<a;n++)if(e.getUint16(t+n*12,i)===274)return e.setUint16(t+n*12+8,1,i),!0;return!1},ig=e=>{let t=new DataView(e);if(t.getUint16(0)!==65496)return null;let i=2,a,n,l=!1;for(;i<t.byteLength&&(a=t.getUint16(i,!1),n=t.getUint16(i+2,!1)+2,!(!(a>=65504&&a<=65519||a===65534)||(l||(l=tg(t,i,n)),i+n>t.byteLength)));)i+=n;return e.slice(0,i)},ag=e=>new Promise(t=>{let i=new FileReader;i.onload=()=>t(ig(i.result)||null),i.readAsArrayBuffer(e.slice(0,256*1024))}),ng=()=>window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,lg=(e,t)=>{let i=ng();if(i){let a=new i;return a.append(e),a.getBlob(t)}return new Blob([e],{type:t})},og=()=>Math.random().toString(36).substr(2,9),rg=e=>{let t=new Blob(["(",e.toString(),")()"],{type:"application/javascript"}),i=URL.createObjectURL(t),a=new Worker(i),n=[];return{transfer:()=>{},post:(l,o,r)=>{let s=og();n[s]=o,a.onmessage=p=>{let c=n[p.data.id];c&&(c(p.data.message),delete n[p.data.id])},a.postMessage({id:s,message:l},r)},terminate:()=>{a.terminate(),URL.revokeObjectURL(i)}}},sg=e=>new Promise((t,i)=>{let a=new Image;a.onload=()=>{t(a)},a.onerror=n=>{i(n)},a.src=e}),cg=e=>e.reduce((t,i)=>t.then(a=>i().then(Array.prototype.concat.bind(a))),Promise.resolve([])),dg=(e,t)=>new Promise(i=>{let a={width:e.width,height:e.height},n=e.getContext("2d"),l=t.sort(yo).map(o=>()=>new Promise(r=>{bg[o[0]](n,a,o[1],r)&&r()}));cg(l).then(()=>i(e))}),Lt=(e,t)=>{e.beginPath(),e.lineCap=t["stroke-linecap"],e.lineJoin=t["stroke-linejoin"],e.lineWidth=t["stroke-width"],t["stroke-dasharray"].length&&e.setLineDash(t["stroke-dasharray"].split(",")),e.fillStyle=t.fill,e.strokeStyle=t.stroke,e.globalAlpha=t.opacity||1},Mt=e=>{e.fill(),e.stroke(),e.globalAlpha=1},pg=(e,t,i)=>{let a=wt(i,t),n=ct(i,t);return Lt(e,n),e.rect(a.x,a.y,a.width,a.height),Mt(e,n),!0},mg=(e,t,i)=>{let a=wt(i,t),n=ct(i,t);Lt(e,n);let l=a.x,o=a.y,r=a.width,s=a.height,p=.5522848,c=r/2*p,d=s/2*p,m=l+r,u=o+s,g=l+r/2,f=o+s/2;return e.moveTo(l,f),e.bezierCurveTo(l,f-d,g-c,o,g,o),e.bezierCurveTo(g+c,o,m,f-d,m,f),e.bezierCurveTo(m,f+d,g+c,u,g,u),e.bezierCurveTo(Line truncated </svg>`;n($)},o.readAsText(e)}),eg=e=>{let t;try{t=new ImageData(e.width,e.height)}catch{t=document.createElement("canvas").getContext("2d").createImageData(e.width,e.height)}return t.data.set(e.data),t},tg=()=>{let e={resize:c,filter:p},t=(d,m)=>(d.forEach(u=>{m=e[u.type](m,u.data)}),m),i=(d,m)=>{let u=d.transforms,g=null;if(u.forEach(f=>{f.type==="filter"&&(g=f)}),g){let f=null;u.forEach(h=>{h.type==="resize"&&(f=h)}),f&&(f.data.matrix=g.data,u=u.filter(h=>h.type!=="filter"))}m(t(u,d.imageData))};self.onmessage=d=>{i(d.data.message,m=>{self.postMessage({id:d.data.id,message:m},[m.data.buffer])})};let a=1,n=1,l=1;function o(d,m,u){let g=m[d]/255,f=m[d+1]/255,h=m[d+2]/255,I=m[d+3]/255,b=g*u[0]+f*u[1]+h*u[2]+I*u[3]+u[4],T=g*u[5]+f*u[6]+h*u[7]+I*u[8]+u[9],v=g*u[10]+f*u[11]+h*u[12]+I*u[13]+u[14],y=g*u[15]+f*u[16]+h*u[17]+I*u[18]+u[19],E=Math.max(0,b*y)+a*(1-y),_=Math.max(0,T*y)+n*(1-y),x=Math.max(0,v*y)+l*(1-y);m[d]=Math.max(0,Math.min(1,E))*255,m[d+1]=Math.max(0,Math.min(1,_))*255,m[d+2]=Math.max(0,Math.min(1,x))*255}let r=self.JSON.stringify([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]);function s(d){return self.JSON.stringify(d||[])===r}function p(d,m){if(!m||s(m))return d;let u=d.data,g=u.length,f=m[0],h=m[1],I=m[2],b=m[3],T=m[4],v=m[5],y=m[6],E=m[7],_=m[8],x=m[9],R=m[10],P=m[11],z=m[12],A=m[13],B=m[14],w=m[15],F=m[16],S=m[17],L=m[18],D=m[19],O=0,G=0,C=0,q=0,$=0,K=0,pe=0,N=0,H=0,Y=0,oe=0,ee=0;for(;O<g;O+=4)G=u[O]/255,C=u[O+1]/255,q=u[O+2]/255,$=u[O+3]/255,K=G*f+C*h+q*I+$*b+T,pe=G*v+C*y+q*E+$*_+x,N=G*R+C*P+q*z+$*A+B,H=G*w+C*F+q*S+$*L+D,Y=Math.max(0,K*H)+a*(1-H),oe=Math.max(0,pe*H)+n*(1-H),ee=Math.max(0,N*H)+l*(1-H),u[O]=Math.max(0,Math.min(1,Y))*255,u[O+1]=Math.max(0,Math.min(1,oe))*255,u[O+2]=Math.max(0,Math.min(1,ee))*255;return d}function c(d,m){let{mode:u="contain",upscale:g=!1,width:f,height:h,matrix:I}=m;if(I=!I||s(I)?null:I,!f&&!h)return p(d,I);if(f===null?f=h:h===null&&(h=f),u!=="force"){let A=f/d.width,B=h/d.height,w=1;if(u==="cover"?w=Math.max(A,B):u==="contain"&&(w=Math.min(A,B)),w>1&&g===!1)return p(d,I);f=d.width*w,h=d.height*w}let b=d.width,T=d.height,v=Math.round(f),y=Math.round(h),E=d.data,_=new Uint8ClampedArray(v*y*4),x=b/v,R=T/y,P=Math.ceil(x*.5),z=Math.ceil(R*.5);for(let A=0;A<y;A++)for(let B=0;B<v;B++){let w=(B+A*v)*4,F=0,S=0,L=0,D=0,O=0,G=0,C=0,q=(A+.5)*R;for(let $=Math.floor(A*R);$<(A+1)*R;$++){let K=Math.abs(q-($+.5))/z,pe=(B+.5)*x,N=K*K;for(let H=Math.floor(B*x);H<(B+1)*x;H++){let Y=Math.abs(pe-(H+.5))/P,oe=Math.sqrt(N+Y*Y);if(oe>=-1&&oe<=1&&(F=2*oe*oe*oe-3*oe*oe+1,F>0)){Y=4*(H+$*b);let ee=E[Y+3];C+=F*ee,L+=F,ee<255&&(F=F*ee/250),D+=F*E[Y],O+=F*E[Y+1],G+=F*E[Y+2],S+=F}}}_[w]=D/S,_[w+1]=O/S,_[w+2]=G/S,_[w+3]=C/L,I&&o(w,_,I)}return{data:_,width:v,height:y}}},ig=(e,t)=>{if(e.getUint32(t+4,!1)!==1165519206)return;t+=4;let i=e.getUint16(t+=6,!1)===18761;t+=e.getUint32(t+4,i);let a=e.getUint16(t,i);t+=2;for(let n=0;n<a;n++)if(e.getUint16(t+n*12,i)===274)return e.setUint16(t+n*12+8,1,i),!0;return!1},ag=e=>{let t=new DataView(e);if(t.getUint16(0)!==65496)return null;let i=2,a,n,l=!1;for(;i<t.byteLength&&(a=t.getUint16(i,!1),n=t.getUint16(i+2,!1)+2,!(!(a>=65504&&a<=65519||a===65534)||(l||(l=ig(t,i,n)),i+n>t.byteLength)));)i+=n;return e.slice(0,i)},ng=e=>new Promise(t=>{let i=new FileReader;i.onload=()=>t(ag(i.result)||null),i.readAsArrayBuffer(e.slice(0,256*1024))}),lg=()=>window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,og=(e,t)=>{let i=lg();if(i){let a=new i;return a.append(e),a.getBlob(t)}return new Blob([e],{type:t})},rg=()=>Math.random().toString(36).substr(2,9),sg=e=>{let t=new Blob(["(",e.toString(),")()"],{type:"application/javascript"}),i=URL.createObjectURL(t),a=new Worker(i),n=[];return{transfer:()=>{},post:(l,o,r)=>{let s=rg();n[s]=o,a.onmessage=p=>{let c=n[p.data.id];c&&(c(p.data.message),delete n[p.data.id])},a.postMessage({id:s,message:l},r)},terminate:()=>{a.terminate(),URL.revokeObjectURL(i)}}},cg=e=>new Promise((t,i)=>{let a=new Image;a.onload=()=>{t(a)},a.onerror=n=>{i(n)},a.src=e}),dg=e=>e.reduce((t,i)=>t.then(a=>i().then(Array.prototype.concat.bind(a))),Promise.resolve([])),pg=(e,t)=>new Promise(i=>{let a={width:e.width,height:e.height},n=e.getContext("2d"),l=t.sort(yo).map(o=>()=>new Promise(r=>{Eg[o[0]](n,a,o[1],r)&&r()}));dg(l).then(()=>i(e))}),Lt=(e,t)=>{e.beginPath(),e.lineCap=t["stroke-linecap"],e.lineJoin=t["stroke-linejoin"],e.lineWidth=t["stroke-width"],t["stroke-dasharray"].length&&e.setLineDash(t["stroke-dasharray"].split(",")),e.fillStyle=t.fill,e.strokeStyle=t.stroke,e.globalAlpha=t.opacity||1},Mt=e=>{e.fill(),e.stroke(),e.globalAlpha=1},mg=(e,t,i)=>{let a=wt(i,t),n=ct(i,t);return Lt(e,n),e.rect(a.x,a.y,a.width,a.height),Mt(e,n),!0},ug=(e,t,i)=>{let a=wt(i,t),n=ct(i,t);Lt(e,n);let l=a.x,o=a.y,r=a.width,s=a.height,p=.5522848,c=r/2*p,d=s/2*p,m=l+r,u=o+s,g=l+r/2,f=o+s/2;return e.moveTo(l,f),e.bezierCurveTo(l,f-d,g-c,o,g,o),e.bezierCurveTo(g+c,o,m,f-d,m,f),e.bezierCurveTo(m,f+d,g+c,u,g,u),e.bezierCurveTo(Line truncated
/*! Bundled license information: /*! Bundled license information:
filepond/dist/filepond.esm.js: filepond/dist/filepond.esm.js:
(*! (*!
* FilePond 4.32.9 * FilePond 4.32.10
* Licensed under MIT, https://opensource.org/licenses/MIT/ * Licensed under MIT, https://opensource.org/licenses/MIT/
* Please visit https://pqina.nl/filepond/ for details. * Please visit https://pqina.nl/filepond/ for details.
*) *)
@@ -1,16 +1,16 @@
function he(t){this.content=t}he.prototype={constructor:he,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var r=n&&n!=t?this.remove(n):this,o=r.find(t),i=r.content.slice();return o==-1?i.push(n||t,e):(i[o+1]=e,n&&(i[o]=n)),new he(i)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new he(n)},addToStart:function(t,e){return new he([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new he(n)},addBefore:function(t,e,n){var r=this.remove(e),o=r.content.slice(),i=r.find(t);return o.splice(i==-1?o.length:i,0,e,n),new he(o)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=he.from(t),t.size?new he(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=he.from(t),t.size?new he(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=he.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}};he.from=function(t){if(t instanceof he)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new he(e)};var Ci=he;function ya(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let o=t.child(r),i=e.child(r);if(o==i){n+=o.nodeSize;continue}if(!o.sameMarkup(i))return n;if(o.isText&&o.text!=i.text){for(let s=0;o.text[s]==i.text[s];s++)n++;return n}if(o.content.size||i.content.size){let s=ya(o.content,i.content,n+1);if(s!=null)return s}n+=o.nodeSize}}function ba(t,e,n,r){for(let o=t.childCount,i=e.childCount;;){if(o==0||i==0)return o==i?null:{a:n,b:r};let s=t.child(--o),l=e.child(--i),a=s.nodeSize;if(s==l){n-=a,r-=a;continue}if(!s.sameMarkup(l))return{a:n,b:r};if(s.isText&&s.text!=l.text){let c=0,d=Math.min(s.text.length,l.text.length);for(;c<d&&s.text[s.text.length-c-1]==l.text[l.text.length-c-1];)c++,n--,r--;return{a:n,b:r}}if(s.content.size||l.content.size){let c=ba(s.content,l.content,n-1,r-1);if(c)return c}n-=a,r-=a}}var C=class t{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,n,r,o=0,i){for(let s=0,l=0;l<n;s++){let a=this.content[s],c=l+a.nodeSize;if(c>e&&r(a,o+l,i||null,s)!==!1&&a.content.size){let d=l+1;a.nodesBetween(Math.max(0,e-d),Math.min(a.content.size,n-d),r,o+d)}l=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,o){let i="",s=!0;return this.nodesBetween(e,n,(l,a)=>{let c=l.isText?l.text.slice(Math.max(e,a)-a,n-a):l.isLeaf?o?typeof o=="function"?o(l):o:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&c||l.isTextblock)&&r&&(s?s=!1:i+=r),i+=c},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,o=this.content.slice(),i=0;for(n.isText&&n.sameMarkup(r)&&(o[o.length-1]=n.withText(n.text+r.text),i=1);i<e.content.length;i++)o.push(e.content[i]);return new t(o,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let r=[],o=0;if(n>e)for(let i=0,s=0;s<n;i++){let l=this.content[i],a=s+l.nodeSize;a>e&&((s<e||a>n)&&(l.isText?l=l.cut(Math.max(0,e-s),Math.min(l.text.length,n-s)):l=l.cut(Math.max(0,e-s-1),Math.min(l.content.size,n-s-1))),r.push(l),o+=l.nodeSize),s=a}return new t(r,o)}cutByIndex(e,n){return e==n?t.empty:e==0&&n==this.content.length?this:new t(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let o=this.content.slice(),i=this.size+n.nodeSize-r.nodeSize;return o[e]=n,new t(o,i)}addToStart(e){return new t([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new t(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,r=0;n<this.content.length;n++){let o=this.content[n];e(o,r,n),r+=o.nodeSize}}findDiffStart(e,n=0){return ya(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return ba(this,e,n,r)}findIndex(e){if(e==0)return Cr(0,e);if(e==this.size)return Cr(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let o=this.child(n),i=r+o.nodeSize;if(i>=e)return i==e?Cr(n+1,i):Cr(n,r);r=i}}toString(){return"<"+this.toStringInner()+">"}toStringILine truncated function he(t){this.content=t}he.prototype={constructor:he,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var r=n&&n!=t?this.remove(n):this,o=r.find(t),i=r.content.slice();return o==-1?i.push(n||t,e):(i[o+1]=e,n&&(i[o]=n)),new he(i)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new he(n)},addToStart:function(t,e){return new he([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new he(n)},addBefore:function(t,e,n){var r=this.remove(e),o=r.content.slice(),i=r.find(t);return o.splice(i==-1?o.length:i,0,e,n),new he(o)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=he.from(t),t.size?new he(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=he.from(t),t.size?new he(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=he.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}};he.from=function(t){if(t instanceof he)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new he(e)};var Ci=he;function ya(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let o=t.child(r),i=e.child(r);if(o==i){n+=o.nodeSize;continue}if(!o.sameMarkup(i))return n;if(o.isText&&o.text!=i.text){for(let s=0;o.text[s]==i.text[s];s++)n++;return n}if(o.content.size||i.content.size){let s=ya(o.content,i.content,n+1);if(s!=null)return s}n+=o.nodeSize}}function ba(t,e,n,r){for(let o=t.childCount,i=e.childCount;;){if(o==0||i==0)return o==i?null:{a:n,b:r};let s=t.child(--o),l=e.child(--i),a=s.nodeSize;if(s==l){n-=a,r-=a;continue}if(!s.sameMarkup(l))return{a:n,b:r};if(s.isText&&s.text!=l.text){let c=0,d=Math.min(s.text.length,l.text.length);for(;c<d&&s.text[s.text.length-c-1]==l.text[l.text.length-c-1];)c++,n--,r--;return{a:n,b:r}}if(s.content.size||l.content.size){let c=ba(s.content,l.content,n-1,r-1);if(c)return c}n-=a,r-=a}}var C=class t{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,n,r,o=0,i){for(let s=0,l=0;l<n;s++){let a=this.content[s],c=l+a.nodeSize;if(c>e&&r(a,o+l,i||null,s)!==!1&&a.content.size){let d=l+1;a.nodesBetween(Math.max(0,e-d),Math.min(a.content.size,n-d),r,o+d)}l=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,o){let i="",s=!0;return this.nodesBetween(e,n,(l,a)=>{let c=l.isText?l.text.slice(Math.max(e,a)-a,n-a):l.isLeaf?o?typeof o=="function"?o(l):o:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&c||l.isTextblock)&&r&&(s?s=!1:i+=r),i+=c},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,o=this.content.slice(),i=0;for(n.isText&&n.sameMarkup(r)&&(o[o.length-1]=n.withText(n.text+r.text),i=1);i<e.content.length;i++)o.push(e.content[i]);return new t(o,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let r=[],o=0;if(n>e)for(let i=0,s=0;s<n;i++){let l=this.content[i],a=s+l.nodeSize;a>e&&((s<e||a>n)&&(l.isText?l=l.cut(Math.max(0,e-s),Math.min(l.text.length,n-s)):l=l.cut(Math.max(0,e-s-1),Math.min(l.content.size,n-s-1))),r.push(l),o+=l.nodeSize),s=a}return new t(r,o)}cutByIndex(e,n){return e==n?t.empty:e==0&&n==this.content.length?this:new t(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let o=this.content.slice(),i=this.size+n.nodeSize-r.nodeSize;return o[e]=n,new t(o,i)}addToStart(e){return new t([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new t(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,r=0;n<this.content.length;n++){let o=this.content[n];e(o,r,n),r+=o.nodeSize}}findDiffStart(e,n=0){return ya(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return ba(this,e,n,r)}findIndex(e){if(e==0)return Cr(0,e);if(e==this.size)return Cr(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let o=this.child(n),i=r+o.nodeSize;if(i>=e)return i==e?Cr(n+1,i):Cr(n,r);r=i}}toString(){return"<"+this.toStringInner()+">"}toStringILine truncated
`)}};$t.empty=new $t(!0);var Oi=class{constructor(e,n){this.string=e,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}};function va(t){let e=[];do e.push(ep(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function ep(t){let e=[];do e.push(tp(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function tp(t){let e=op(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=np(t,e);else break;return e}function ca(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function np(t,e){let n=ca(t),r=n;return t.eat(",")&&(t.next!="}"?r=ca(t):r=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function rp(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let o=[];for(let i in n){let s=n[i];s.isInGroup(e)&&o.push(s)}return o.length==0&&t.err("No node type or group '"+e+"' found"),o}function op(t){if(t.eat("(")){let e=va(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=rp(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function ip(t){let e=[[]];return o(i(t,0),n()),e;function n(){return e.push([])-1}function r(s,l,a){let c={term:a,to:l};return e[s].push(c),c}function o(s,l){s.forEach(a=>a.to=l)}function i(s,l){if(s.type=="choice")return s.exprs.reduce((a,c)=>a.concat(i(c,l)),[]);if(s.type=="seq")for(let a=0;;a++){let c=i(s.exprs[a],l);if(a==s.exprs.length-1)return c;o(c,l=n())}else if(s.type=="star"){let a=n();return r(l,a),o(i(s.expr,a),a),[r(a)]}else if(s.type=="plus"){let a=n();return o(i(s.expr,l),a),o(i(s.expr,a),a),[r(a)]}else{if(s.type=="opt")return[r(l)].concat(i(s.expr,l));if(s.type=="range"){let a=l;for(let c=0;c<s.min;c++){let d=n();o(i(s.expr,a),d),a=d}if(s.max==-1)o(i(s.expr,a),a);else for(let c=s.min;c<s.max;c++){let d=n();r(a,d),o(i(s.expr,a),d),a=d}return[r(a)]}else{if(s.type=="name")return[r(l,void 0,s.value)];throw new Error("Unknown expr type")}}}}function Ta(t,e){return e-t}function da(t,e){let n=[];return r(e),n.sort(Ta);function r(o){let i=t[o];if(i.length==1&&!i[0].term)return r(i[0].to);n.push(o);for(let s=0;s<i.length;s++){let{term:l,to:a}=i[s];!l&&n.indexOf(a)==-1&&r(a)}}}function sp(t){let e=Object.create(null);return n(da(t,0));function n(r){let o=[];r.forEach(s=>{t[s].forEach(({term:l,to:a})=>{if(!l)return;let c;for(let d=0;d<o.length;d++)o[d][0]==l&&(c=o[d][1]);da(t,a).forEach(d=>{c||o.push([l,c=[]]),c.indexOf(d)==-1&&c.push(d)})})});let i=e[r.join(",")]=new $t(r.indexOf(t.length-1)>-1);for(let s=0;s<o.length;s++){let l=o[s][1].sort(Ta);i.next.push({type:o[s][0],next:e[l.join(",")]||n(l)})}return i}}function lp(t,e){for(let n=0,r=[t];n<r.length;n++){let o=r[n],i=!o.validEnd,s=[];for(let l=0;l<o.next.length;l++){let{type:a,next:c}=o.next[l];s.push(a.name),i&&!(a.isText||a.hasRequiredAttrs())&&(i=!1),r.indexOf(c)==-1&&r.push(c)}i&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function Aa(t){let e=Object.create(null);for(let n in t){let r=t[n];if(!r.hasDefault)return null;e[n]=r.default}return e}function Ea(t,e){let n=Object.create(null);for(let r in t){let o=e&&e[r];if(o===void 0){let i=t[r];if(i.hasDefault)o=i.default;else throw new RangeError("No value supplied for attribute "+r)}n[r]=o}return n}function Oa(t,e,n,r){for(let o in e)if(!(o in t))throw new RangeError(`Unsupported attribute ${o} for ${n} of type ${o}`);for(let o in t){let i=t[o];i.validate&&i.validate(e[o])}}function Na(t,e){let n=Object.create(null);if(e)for(let r in e)n[r]=new Ni(t,r,e[r]);return n}var Er=class t{constructor(e,n,r){this.name=e,this.schema=n,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=Na(e,r.attrs),this.defaultAttrs=Aa(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==$t.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.def Line truncated `)}};$t.empty=new $t(!0);var Ni=class{constructor(e,n){this.string=e,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}};function Ma(t){let e=[];do e.push(np(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function np(t){let e=[];do e.push(rp(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function rp(t){let e=sp(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=op(t,e);else break;return e}function ca(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function op(t,e){let n=ca(t),r=n;return t.eat(",")&&(t.next!="}"?r=ca(t):r=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function ip(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let o=[];for(let i in n){let s=n[i];s.isInGroup(e)&&o.push(s)}return o.length==0&&t.err("No node type or group '"+e+"' found"),o}function sp(t){if(t.eat("(")){let e=Ma(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=ip(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function lp(t){let e=[[]];return o(i(t,0),n()),e;function n(){return e.push([])-1}function r(s,l,a){let c={term:a,to:l};return e[s].push(c),c}function o(s,l){s.forEach(a=>a.to=l)}function i(s,l){if(s.type=="choice")return s.exprs.reduce((a,c)=>a.concat(i(c,l)),[]);if(s.type=="seq")for(let a=0;;a++){let c=i(s.exprs[a],l);if(a==s.exprs.length-1)return c;o(c,l=n())}else if(s.type=="star"){let a=n();return r(l,a),o(i(s.expr,a),a),[r(a)]}else if(s.type=="plus"){let a=n();return o(i(s.expr,l),a),o(i(s.expr,a),a),[r(a)]}else{if(s.type=="opt")return[r(l)].concat(i(s.expr,l));if(s.type=="range"){let a=l;for(let c=0;c<s.min;c++){let d=n();o(i(s.expr,a),d),a=d}if(s.max==-1)o(i(s.expr,a),a);else for(let c=s.min;c<s.max;c++){let d=n();r(a,d),o(i(s.expr,a),d),a=d}return[r(a)]}else{if(s.type=="name")return[r(l,void 0,s.value)];throw new Error("Unknown expr type")}}}}function Ta(t,e){return e-t}function da(t,e){let n=[];return r(e),n.sort(Ta);function r(o){let i=t[o];if(i.length==1&&!i[0].term)return r(i[0].to);n.push(o);for(let s=0;s<i.length;s++){let{term:l,to:a}=i[s];!l&&n.indexOf(a)==-1&&r(a)}}}function ap(t){let e=Object.create(null);return n(da(t,0));function n(r){let o=[];r.forEach(s=>{t[s].forEach(({term:l,to:a})=>{if(!l)return;let c;for(let d=0;d<o.length;d++)o[d][0]==l&&(c=o[d][1]);da(t,a).forEach(d=>{c||o.push([l,c=[]]),c.indexOf(d)==-1&&c.push(d)})})});let i=e[r.join(",")]=new $t(r.indexOf(t.length-1)>-1);for(let s=0;s<o.length;s++){let l=o[s][1].sort(Ta);i.next.push({type:o[s][0],next:e[l.join(",")]||n(l)})}return i}}function cp(t,e){for(let n=0,r=[t];n<r.length;n++){let o=r[n],i=!o.validEnd,s=[];for(let l=0;l<o.next.length;l++){let{type:a,next:c}=o.next[l];s.push(a.name),i&&!(a.isText||a.hasRequiredAttrs())&&(i=!1),r.indexOf(c)==-1&&r.push(c)}i&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function Aa(t){let e=Object.create(null);for(let n in t){let r=t[n];if(!r.hasDefault)return null;e[n]=r.default}return e}function Ea(t,e){let n=Object.create(null);for(let r in t){let o=e&&e[r];if(o===void 0){let i=t[r];if(i.hasDefault)o=i.default;else throw new RangeError("No value supplied for attribute "+r)}n[r]=o}return n}function Na(t,e,n,r){for(let o in e)if(!(o in t))throw new RangeError(`Unsupported attribute ${o} for ${n} of type ${o}`);for(let o in t){let i=t[o];i.validate&&i.validate(e[o])}}function Oa(t,e){let n=Object.create(null);if(e)for(let r in e)n[r]=new Oi(t,r,e[r]);return n}var Er=class t{constructor(e,n,r){this.name=e,this.schema=n,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=Oa(e,r.attrs),this.defaultAttrs=Aa(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==$t.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.def Line truncated
`);else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let s=o.content[o.content.length-1],l=e.previousSibling;(!s||l&&l.nodeName=="BR"||s.isText&&/[ \t\r\n\u000c]$/.test(s.text))&&(r=r.slice(1))}r&&this.insertNode(this.parser.schema.text(r),n,!/\S/.test(r)),this.findInText(e)}else this.findInside(e)}addElement(e,n,r){let o=this.localPreserveWS,i=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let s=e.nodeName.toLowerCase(),l;Da.hasOwnProperty(s)&&this.parser.normalizeLists&&fp(e);let a=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(l=this.parser.matchTag(e,this,r));e:if(a?a.ignore:up.hasOwnProperty(s))this.findInside(e),this.ignoreFallback(e,n);else if(!a||a.skip||a.closeParent){a&&a.closeParent?this.open=Math.max(0,this.open-1):a&&a.skip.nodeType&&(e=a.skip);let c,d=this.needsBlock;if(Ra.hasOwnProperty(s))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),c=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,n);break e}let u=a&&a.skip?n:this.readStyles(e,n);u&&this.addAll(e,u),c&&this.sync(i),this.needsBlock=d}else{let c=this.readStyles(e,n);c&&this.addElementByRule(e,a,c,a.consuming===!1?l:void 0)}this.localPreserveWS=o}leafFallback(e,n){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(` `);else if(s.linebreakReplacement&&/[\r\n]/.test(r)&&this.top.findWrapping(s.linebreakReplacement.create())){let l=r.split(/\r?\n|\r/);for(let a=0;a<l.length;a++)a&&this.insertNode(s.linebreakReplacement.create(),n,!0),l[a]&&this.insertNode(s.text(l[a]),n,!/\S/.test(l[a]));r=""}else r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let l=o.content[o.content.length-1],a=e.previousSibling;(!l||a&&a.nodeName=="BR"||l.isText&&/[ \t\r\n\u000c]$/.test(l.text))&&(r=r.slice(1))}r&&this.insertNode(s.text(r),n,!/\S/.test(r)),this.findInText(e)}else this.findInside(e)}addElement(e,n,r){let o=this.localPreserveWS,i=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let s=e.nodeName.toLowerCase(),l;Da.hasOwnProperty(s)&&this.parser.normalizeLists&&pp(e);let a=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(l=this.parser.matchTag(e,this,r));e:if(a?a.ignore:hp.hasOwnProperty(s))this.findInside(e),this.ignoreFallback(e,n);else if(!a||a.skip||a.closeParent){a&&a.closeParent?this.open=Math.max(0,this.open-1):a&&a.skip.nodeType&&(e=a.skip);let c,d=this.needsBlock;if(Ra.hasOwnProperty(s))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),c=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,n);break e}let u=a&&a.skip?n:this.readStyles(e,n);u&&this.addAll(e,u),c&&this.sync(i),this.needsBlock=d}else{let c=this.readStyles(e,n);c&&this.addElementByRule(e,a,c,a.consuming===!1?l:void 0)}this.localPreserveWS=o}leafFallback(e,n){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
`),n)}ignoreFallback(e,n){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n,!0)}readStyles(e,n){let r=e.style;if(r&&r.length)for(let o=0;o<this.parser.matchedStyles.length;o++){let i=this.parser.matchedStyles[o],s=r.getPropertyValue(i);if(s)for(let l=void 0;;){let a=this.parser.matchStyle(i,s,this,l);if(!a)break;if(a.ignore)return null;if(a.clearMark?n=n.filter(c=>!a.clearMark(c)):n=n.concat(this.parser.schema.marks[a.mark].create(a.attrs)),a.consuming===!1)l=a;else break}}return n}addElementByRule(e,n,r,o){let i,s;if(n.node)if(s=this.parser.schema.nodes[n.node],s.isLeaf)this.insertNode(s.create(n.attrs),r,e.nodeName=="BR")||this.leafFallback(e,r);else{let a=this.enter(s,n.attrs||null,r,n.preserveWhitespace);a&&(i=!0,r=a)}else{let a=this.parser.schema.marks[n.mark];r=r.concat(a.create(n.attrs))}let l=this.top;if(s&&s.isLeaf)this.findInside(e);else if(o)this.addElement(e,r,o);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(a=>this.insertNode(a,r,!1));else{let a=e;typeof n.contentElement=="string"?a=e.querySelector(n.contentElement):typeof n.contentElement=="function"?a=n.contentElement(e):n.contentElement&&(a=n.contentElement),this.findAround(e,a,!0),this.addAll(a,r),this.findAround(e,a,!1)}i&&this.sync(l)&&this.open--}addAll(e,n,r,o){let i=r||0;for(let s=r?e.childNodes[r]:e.firstChild,l=o==null?null:e.childNodes[o];s!=l;s=s.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(s,n);this.findAtPoint(e,i)}findPlace(e,n,r){let o,i;for(let s=this.open,l=0;s>=0;s--){let a=this.nodes[s],c=a.findWrapping(e);if(c&&(!o||o.length>c.length+l)&&(o=c,i=a,!c.length))break;if(a.solid){if(r)break;l+=2}}if(!o)return null;this.sync(i);for(let s=0;s<o.length;s++)n=this.enterInner(o[s],null,n,!1);return n}insertNode(e,n,r){if(e.isInline&&this.needsBlock&&!this.top.type){let i=this.textblockFromContext();i&&(n=this.enterInner(i,null,n))}let o=this.findPlace(e,n,r);if(o){this.closeExtra();let i=this.top;i.match&&(i.match=i.match.matchType(e.type));let s=U.none;for(let l of o.concat(e.marks))(i.type?i.type.allowsMarkType(l.type):pa(l.type,e.type))&&(s=l.addToSet(s));return i.content.push(e.mark(s)),!0}return!1}enter(e,n,r,o){let i=this.findPlace(e.create(n),r,!1);return i&&(i=this.enterInner(e,n,r,!0,o)),i}enterInner(e,n,r,o=!1,i){this.closeExtra();let s=this.top;s.match=s.match&&s.match.matchType(e);let l=fa(e,i,s.options);s.options&Dn&&s.content.length==0&&(l|=Dn);let a=U.none;return r=r.filter(c=>(s.type?s.type.allowsMarkType(c.type):pa(c.type,e))?(a=c.addToSet(a),!1):!0),this.nodes.push(new ln(e,n,a,o,null,l)),this.open++,r}closeExtra(e=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let n=this.open;n>=0;n--){if(this.nodes[n]==e)return this.open=n,!0;this.localPreserveWS&&(this.nodes[n].options|=Pn)}return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let o=r.length-1;o>=0;o--)e+=r[o].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==n&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&e.nodeType==1&&e.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(e,n,r){if(e!=n&&this.find)for(let o=0;o<this.find.length;o++)this.find[o].pos==null&&e.nodeType==1&&e.contains(this.find[o].node)&&n.compareDocumentPosition(this.find[o].node)&(r?2:4)&&(this.find[o].pos=this.currentPos)}findInText(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&(this.find[n].pos=this.currentPos-(e.nodeValue.length-this.find[n].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),r=this.options.context,o=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),i=-(r?r.depth+1:0)+(o?0:1),s=(l,a)=>{for(;l>=0;l--){let c=n[l];if(c==""){if(l==n.length-1||l==0)continue;for(;a>=i;a--)if(s(l-1,a))return!0;return!1}else{let d=a>0||a==0&&o?this.nodes[a].type:r&&a>=i?r.node(a-i).type:null;if(!d||d.name!=c&&!d.isInGroup(c))return!1;a--}}return!0};return s(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}};function fp(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&Da.hasOwnProperty(r)&&n?(n.appendChild(e),e=n):r=="li"?n=e:r&&(n=null)}}function hp(t,e){return(t.matches||t.msMatchesSelector||t.webkitM Line truncated `),n)}ignoreFallback(e,n){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n,!0)}readStyles(e,n){let r=e.style;if(r&&r.length)for(let o=0;o<this.parser.matchedStyles.length;o++){let i=this.parser.matchedStyles[o],s=r.getPropertyValue(i);if(s)for(let l=void 0;;){let a=this.parser.matchStyle(i,s,this,l);if(!a)break;if(a.ignore)return null;if(a.clearMark?n=n.filter(c=>!a.clearMark(c)):n=n.concat(this.parser.schema.marks[a.mark].create(a.attrs)),a.consuming===!1)l=a;else break}}return n}addElementByRule(e,n,r,o){let i,s;if(n.node)if(s=this.parser.schema.nodes[n.node],s.isLeaf)this.insertNode(s.create(n.attrs),r,e.nodeName=="BR")||this.leafFallback(e,r);else{let a=this.enter(s,n.attrs||null,r,n.preserveWhitespace);a&&(i=!0,r=a)}else{let a=this.parser.schema.marks[n.mark];r=r.concat(a.create(n.attrs))}let l=this.top;if(s&&s.isLeaf)this.findInside(e);else if(o)this.addElement(e,r,o);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(a=>this.insertNode(a,r,!1));else{let a=e;typeof n.contentElement=="string"?a=e.querySelector(n.contentElement):typeof n.contentElement=="function"?a=n.contentElement(e):n.contentElement&&(a=n.contentElement),this.findAround(e,a,!0),this.addAll(a,r),this.findAround(e,a,!1)}i&&this.sync(l)&&this.open--}addAll(e,n,r,o){let i=r||0;for(let s=r?e.childNodes[r]:e.firstChild,l=o==null?null:e.childNodes[o];s!=l;s=s.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(s,n);this.findAtPoint(e,i)}findPlace(e,n,r){let o,i;for(let s=this.open,l=0;s>=0;s--){let a=this.nodes[s],c=a.findWrapping(e);if(c&&(!o||o.length>c.length+l)&&(o=c,i=a,!c.length))break;if(a.solid){if(r)break;l+=2}}if(!o)return null;this.sync(i);for(let s=0;s<o.length;s++)n=this.enterInner(o[s],null,n,!1);return n}insertNode(e,n,r){if(e.isInline&&this.needsBlock&&!this.top.type){let i=this.textblockFromContext();i&&(n=this.enterInner(i,null,n))}let o=this.findPlace(e,n,r);if(o){this.closeExtra();let i=this.top;i.match&&(i.match=i.match.matchType(e.type));let s=q.none;for(let l of o.concat(e.marks))(i.type?i.type.allowsMarkType(l.type):pa(l.type,e.type))&&(s=l.addToSet(s));return i.content.push(e.mark(s)),!0}return!1}enter(e,n,r,o){let i=this.findPlace(e.create(n),r,!1);return i&&(i=this.enterInner(e,n,r,!0,o)),i}enterInner(e,n,r,o=!1,i){this.closeExtra();let s=this.top;s.match=s.match&&s.match.matchType(e);let l=fa(e,i,s.options);s.options&Dn&&s.content.length==0&&(l|=Dn);let a=q.none;return r=r.filter(c=>(s.type?s.type.allowsMarkType(c.type):pa(c.type,e))?(a=c.addToSet(a),!1):!0),this.nodes.push(new ln(e,n,a,o,null,l)),this.open++,r}closeExtra(e=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let n=this.open;n>=0;n--){if(this.nodes[n]==e)return this.open=n,!0;this.localPreserveWS&&(this.nodes[n].options|=Pn)}return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let o=r.length-1;o>=0;o--)e+=r[o].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==n&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&e.nodeType==1&&e.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(e,n,r){if(e!=n&&this.find)for(let o=0;o<this.find.length;o++)this.find[o].pos==null&&e.nodeType==1&&e.contains(this.find[o].node)&&n.compareDocumentPosition(this.find[o].node)&(r?2:4)&&(this.find[o].pos=this.currentPos)}findInText(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&(this.find[n].pos=this.currentPos-(e.nodeValue.length-this.find[n].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),r=this.options.context,o=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),i=-(r?r.depth+1:0)+(o?0:1),s=(l,a)=>{for(;l>=0;l--){let c=n[l];if(c==""){if(l==n.length-1||l==0)continue;for(;a>=i;a--)if(s(l-1,a))return!0;return!1}else{let d=a>0||a==0&&o?this.nodes[a].type:r&&a>=i?r.node(a-i).type:null;if(!d||d.name!=c&&!d.isInGroup(c))return!1;a--}}return!0};return s(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}};function pp(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&Da.hasOwnProperty(r)&&n?(n.appendChild(e),e=n):r=="li"?n=e:r&&(n=null)}}function mp(t,e){return(t.matches||t.msMatchesSelector||t.webkitM Line truncated
`))}})}function Tp(t,e,n){let r=t.resolve(e),o=r.index();return r.parent.canReplaceWith(o,o+1,n)}function Ap(t,e,n,r,o){let i=t.doc.nodeAt(e);if(!i)throw new RangeError("No node at given position");n||(n=i.type);let s=n.create(r,null,o||i.marks);if(i.isLeaf)return t.replaceWith(e,e+i.nodeSize,s);if(!n.validContent(i.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new re(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new O(C.from(s),0,0),1,!0))}function Ae(t,e,n=1,r){let o=t.resolve(e),i=o.depth-n,s=r&&r[r.length-1]||o.parent;if(i<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!s.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let c=o.depth-1,d=n-2;c>i;c--,d--){let u=o.node(c),f=o.index(c);if(u.type.spec.isolating)return!1;let h=u.content.cutByIndex(f,u.childCount),p=r&&r[d+1];p&&(h=h.replaceChild(0,p.type.create(p.attrs)));let m=r&&r[d]||u;if(!u.canReplace(f+1,u.childCount)||!m.type.validContent(h))return!1}let l=o.indexAfter(i),a=r&&r[0];return o.node(i).canReplaceWith(l,l,a?a.type:o.node(i+1).type)}function Ep(t,e,n=1,r){let o=t.doc.resolve(e),i=C.empty,s=C.empty;for(let l=o.depth,a=o.depth-n,c=n-1;l>a;l--,c--){i=C.from(o.node(l).copy(i));let d=r&&r[c];s=C.from(d?d.type.create(d.attrs,s):o.node(l).copy(s))}t.step(new pe(e,e,new O(i.append(s),n,n),!0))}function Ne(t,e){let n=t.resolve(e),r=n.index();return Va(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function Op(t,e){e.content.size||t.type.compatibleContent(e.type);let n=t.contentMatchAt(t.childCount),{linebreakReplacement:r}=t.type.schema;for(let o=0;o<e.childCount;o++){let i=e.child(o),s=i.type==r?t.type.schema.nodes.text:i.type;if(n=n.matchType(s),!n||!t.type.allowsMarks(i.marks))return!1}return n.validEnd}function Va(t,e){return!!(t&&e&&!t.isLeaf&&Op(t,e))}function Ft(t,e,n=-1){let r=t.resolve(e);for(let o=r.depth;;o--){let i,s,l=r.index(o);if(o==r.depth?(i=r.nodeBefore,s=r.nodeAfter):n>0?(i=r.node(o+1),l++,s=r.node(o).maybeChild(l)):(i=r.node(o).maybeChild(l-1),s=r.node(o+1)),i&&!i.isTextblock&&Va(i,s)&&r.node(o).canReplace(l,l+1))return e;if(o==0)break;e=n<0?r.before(o):r.after(o)}}function Np(t,e,n){let r=null,{linebreakReplacement:o}=t.doc.type.schema,i=t.doc.resolve(e-n),s=i.node().type;if(o&&s.inlineContent){let d=s.whitespace=="pre",u=!!s.contentMatch.matchType(o);d&&!u?r=!1:!d&&u&&(r=!0)}let l=t.steps.length;if(r===!1){let d=t.doc.resolve(e+n);_a(t,d.node(),d.before(),l)}s.inlineContent&&Hi(t,e+n-1,s,i.node().contentMatchAt(i.index()),r==null);let a=t.mapping.slice(l),c=a.map(e-n);if(t.step(new pe(c,a.map(e+n,-1),O.empty,!0)),r===!0){let d=t.doc.resolve(c);Fa(t,d.node(),d.before(),t.steps.length)}return t}function Rp(t,e,n){let r=t.resolve(e);if(r.parent.canReplaceWith(r.index(),r.index(),n))return e;if(r.parentOffset==0)for(let o=r.depth-1;o>=0;o--){let i=r.index(o);if(r.node(o).canReplaceWith(i,i,n))return r.before(o+1);if(i>0)return null}if(r.parentOffset==r.parent.content.size)for(let o=r.depth-1;o>=0;o--){let i=r.indexAfter(o);if(r.node(o).canReplaceWith(i,i,n))return r.after(o+1);if(i<r.node(o).childCount)return null}return null}function Ir(t,e,n){let r=t.resolve(e);if(!n.content.size)return e;let o=n.content;for(let i=0;i<n.openStart;i++)o=o.firstChild.content;for(let i=1;i<=(n.openStart==0&&n.size?2:1);i++)for(let s=r.depth;s>=0;s--){let l=s==r.depth?0:r.pos<=(r.start(s+1)+r.end(s+1))/2?-1:1,a=r.index(s)+(l>0?1:0),c=r.node(s),d=!1;if(i==1)d=c.canReplace(a,a,o);else{let u=c.contentMatchAt(a).findWrapping(o.firstChild.type);d=u&&c.canReplaceWith(a,a,u[0])}if(d)return l==0?r.pos:l<0?r.before(s+1):r.after(s+1)}return null}function _n(t,e,n=e,r=O.empty){if(e==n&&!r.size)return null;let o=t.resolve(e),i=t.resolve(n);return Wa(o,i,r)?new pe(e,n,r):new Bi(o,i,r).fit()}function Wa(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}var Bi=class{constructor(e,n,r){this.$from=e,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=C.empty;for(let o=0;o<=e.depth;o++){let i=e.node(o);this.frontier.push({type:i.type,match:i.contentMatchAt(e.indexAfter(o))})}for(let o=e.depth;o>0;o--)this.placed=C.from(e.node(o).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,o=this.close(e<0?this.$to:r.doc.resolve(e));if(!o)return null;let i=this.placed,s=r.depth,l=o.depth;for(;s&&l&&i.childCount==1;)i=i.firstChild.content,s--,l--;let a=new O(i,s,l);return e>-1?new re(r.pos,e,this.$to.pos,this.$to.end(),a,n):a.size||r.pos!=this.$to.pos?new pe(r.pos,o.pos,a):null}findFittable(){let e=this.unplaced.openStart;for(let n=this.unplaced.content,r=0,o=this.unplaced.openEnd;r<e;r++){let i=n.firstChild;if(n.childCount>1&&(o=0),i.type.spec.isolating&&o<=r){e=r;break}n=i.content}for(let n=1;n<=2;n++ Line truncated `))}})}function Ep(t,e,n){let r=t.resolve(e),o=r.index();return r.parent.canReplaceWith(o,o+1,n)}function Np(t,e,n,r,o){let i=t.doc.nodeAt(e);if(!i)throw new RangeError("No node at given position");n||(n=i.type);let s=n.create(r,null,o||i.marks);if(i.isLeaf)return t.replaceWith(e,e+i.nodeSize,s);if(!n.validContent(i.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new re(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new E(C.from(s),0,0),1,!0))}function Ae(t,e,n=1,r){let o=t.resolve(e),i=o.depth-n,s=r&&r[r.length-1]||o.parent;if(i<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!s.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let c=o.depth-1,d=n-2;c>i;c--,d--){let u=o.node(c),f=o.index(c);if(u.type.spec.isolating)return!1;let h=u.content.cutByIndex(f,u.childCount),p=r&&r[d+1];p&&(h=h.replaceChild(0,p.type.create(p.attrs)));let m=r&&r[d]||u;if(!u.canReplace(f+1,u.childCount)||!m.type.validContent(h))return!1}let l=o.indexAfter(i),a=r&&r[0];return o.node(i).canReplaceWith(l,l,a?a.type:o.node(i+1).type)}function Op(t,e,n=1,r){let o=t.doc.resolve(e),i=C.empty,s=C.empty;for(let l=o.depth,a=o.depth-n,c=n-1;l>a;l--,c--){i=C.from(o.node(l).copy(i));let d=r&&r[c];s=C.from(d?d.type.create(d.attrs,s):o.node(l).copy(s))}t.step(new pe(e,e,new E(i.append(s),n,n),!0))}function Oe(t,e){let n=t.resolve(e),r=n.index();return Va(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function Rp(t,e){e.content.size||t.type.compatibleContent(e.type);let n=t.contentMatchAt(t.childCount),{linebreakReplacement:r}=t.type.schema;for(let o=0;o<e.childCount;o++){let i=e.child(o),s=i.type==r?t.type.schema.nodes.text:i.type;if(n=n.matchType(s),!n||!t.type.allowsMarks(i.marks))return!1}return n.validEnd}function Va(t,e){return!!(t&&e&&!t.isLeaf&&Rp(t,e))}function Ft(t,e,n=-1){let r=t.resolve(e);for(let o=r.depth;;o--){let i,s,l=r.index(o);if(o==r.depth?(i=r.nodeBefore,s=r.nodeAfter):n>0?(i=r.node(o+1),l++,s=r.node(o).maybeChild(l)):(i=r.node(o).maybeChild(l-1),s=r.node(o+1)),i&&!i.isTextblock&&Va(i,s)&&r.node(o).canReplace(l,l+1))return e;if(o==0)break;e=n<0?r.before(o):r.after(o)}}function Dp(t,e,n){let r=null,{linebreakReplacement:o}=t.doc.type.schema,i=t.doc.resolve(e-n),s=i.node().type;if(o&&s.inlineContent){let d=s.whitespace=="pre",u=!!s.contentMatch.matchType(o);d&&!u?r=!1:!d&&u&&(r=!0)}let l=t.steps.length;if(r===!1){let d=t.doc.resolve(e+n);_a(t,d.node(),d.before(),l)}s.inlineContent&&Hi(t,e+n-1,s,i.node().contentMatchAt(i.index()),r==null);let a=t.mapping.slice(l),c=a.map(e-n);if(t.step(new pe(c,a.map(e+n,-1),E.empty,!0)),r===!0){let d=t.doc.resolve(c);Fa(t,d.node(),d.before(),t.steps.length)}return t}function Ip(t,e,n){let r=t.resolve(e);if(r.parent.canReplaceWith(r.index(),r.index(),n))return e;if(r.parentOffset==0)for(let o=r.depth-1;o>=0;o--){let i=r.index(o);if(r.node(o).canReplaceWith(i,i,n))return r.before(o+1);if(i>0)return null}if(r.parentOffset==r.parent.content.size)for(let o=r.depth-1;o>=0;o--){let i=r.indexAfter(o);if(r.node(o).canReplaceWith(i,i,n))return r.after(o+1);if(i<r.node(o).childCount)return null}return null}function Ir(t,e,n){let r=t.resolve(e);if(!n.content.size)return e;let o=n.content;for(let i=0;i<n.openStart;i++)o=o.firstChild.content;for(let i=1;i<=(n.openStart==0&&n.size?2:1);i++)for(let s=r.depth;s>=0;s--){let l=s==r.depth?0:r.pos<=(r.start(s+1)+r.end(s+1))/2?-1:1,a=r.index(s)+(l>0?1:0),c=r.node(s),d=!1;if(i==1)d=c.canReplace(a,a,o);else{let u=c.contentMatchAt(a).findWrapping(o.firstChild.type);d=u&&c.canReplaceWith(a,a,u[0])}if(d)return l==0?r.pos:l<0?r.before(s+1):r.after(s+1)}return null}function _n(t,e,n=e,r=E.empty){if(e==n&&!r.size)return null;let o=t.resolve(e),i=t.resolve(n);return Wa(o,i,r)?new pe(e,n,r):new zi(o,i,r).fit()}function Wa(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}var zi=class{constructor(e,n,r){this.$from=e,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=C.empty;for(let o=0;o<=e.depth;o++){let i=e.node(o);this.frontier.push({type:i.type,match:i.contentMatchAt(e.indexAfter(o))})}for(let o=e.depth;o>0;o--)this.placed=C.from(e.node(o).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,o=this.close(e<0?this.$to:r.doc.resolve(e));if(!o)return null;let i=this.placed,s=r.depth,l=o.depth;for(;s&&l&&i.childCount==1;)i=i.firstChild.content,s--,l--;let a=new E(i,s,l);return e>-1?new re(r.pos,e,this.$to.pos,this.$to.end(),a,n):a.size||r.pos!=this.$to.pos?new pe(r.pos,o.pos,a):null}findFittable(){let e=this.unplaced.openStart;for(let n=this.unplaced.content,r=0,o=this.unplaced.openEnd;r<e;r++){let i=n.firstChild;if(n.childCount>1&&(o=0),i.type.spec.isolating&&o<=r){e=r;break}n=i.content}for(let n=1;n<=2;n++ Line truncated
`).scrollIntoView()),!0)};function Yi(t){for(let e=0;e<t.edgeCount;e++){let{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}var Qi=(t,e)=>{let{$head:n,$anchor:r}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let o=n.node(-1),i=n.indexAfter(-1),s=Yi(o.contentMatchAt(i));if(!s||!o.canReplaceWith(i,i,s))return!1;if(e){let l=n.after(),a=t.tr.replaceWith(l,l,s.createAndFill());a.setSelection(D.near(a.doc.resolve(l),1)),e(a.scrollIntoView())}return!0},Zi=(t,e)=>{let n=t.selection,{$from:r,$to:o}=n;if(n instanceof be||r.parent.inlineContent||o.parent.inlineContent)return!1;let i=Yi(o.parent.contentMatchAt(o.indexAfter()));if(!i||!i.isTextblock)return!1;if(e){let s=(!r.parentOffset&&o.index()<o.parent.childCount?r:o).pos,l=t.tr.insert(s,i.createAndFill());l.setSelection(R.create(l.doc,s+1)),e(l.scrollIntoView())}return!0},es=(t,e)=>{let{$cursor:n}=t.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let i=n.before();if(Ae(t.doc,i))return e&&e(t.tr.split(i).scrollIntoView()),!0}let r=n.blockRange(),o=r&&at(r);return o==null?!1:(e&&e(t.tr.lift(r,o).scrollIntoView()),!0)};function $p(t){return(e,n)=>{let{$from:r,$to:o}=e.selection;if(e.selection instanceof P&&e.selection.node.isBlock)return!r.parentOffset||!Ae(e.doc,r.pos)?!1:(n&&n(e.tr.split(r.pos).scrollIntoView()),!0);if(!r.depth)return!1;let i=[],s,l,a=!1,c=!1;for(let h=r.depth;;h--)if(r.node(h).isBlock){a=r.end(h)==r.pos+(r.depth-h),c=r.start(h)==r.pos-(r.depth-h),l=Yi(r.node(h-1).contentMatchAt(r.indexAfter(h-1)));let m=t&&t(o.parent,a,r);i.unshift(m||(a&&l?{type:l}:null)),s=h;break}else{if(h==1)return!1;i.unshift(null)}let d=e.tr;(e.selection instanceof R||e.selection instanceof be)&&d.deleteSelection();let u=d.mapping.map(r.pos),f=Ae(d.doc,u,i.length,i);if(f||(i[0]=l?{type:l}:null,f=Ae(d.doc,u,i.length,i)),!f)return!1;if(d.split(u,i.length,i),!a&&c&&r.node(s).type!=l){let h=d.mapping.map(r.before(s)),p=d.doc.resolve(h);l&&r.node(s-1).canReplaceWith(p.index(),p.index()+1,l)&&d.setNodeMarkup(d.mapping.map(r.before(s)),l)}return n&&n(d.scrollIntoView()),!0}}var Fp=$p();var dc=(t,e)=>{let{$from:n,to:r}=t.selection,o,i=n.sharedDepth(r);return i==0?!1:(o=n.before(i),e&&e(t.tr.setSelection(P.create(t.doc,o))),!0)},_p=(t,e)=>(e&&e(t.tr.setSelection(new be(t.doc))),!0);function Vp(t,e,n){let r=e.nodeBefore,o=e.nodeAfter,i=e.index();return!r||!o||!r.type.compatibleContent(o.type)?!1:!r.content.size&&e.parent.canReplace(i-1,i)?(n&&n(t.tr.delete(e.pos-r.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(i,i+1)||!(o.isTextblock||Ne(t.doc,e.pos))?!1:(n&&n(t.tr.join(e.pos).scrollIntoView()),!0)}function uc(t,e,n,r){let o=e.nodeBefore,i=e.nodeAfter,s,l,a=o.type.spec.isolating||i.type.spec.isolating;if(!a&&Vp(t,e,n))return!0;let c=!a&&e.parent.canReplace(e.index(),e.index()+1);if(c&&(s=(l=o.contentMatchAt(o.childCount)).findWrapping(i.type))&&l.matchType(s[0]||i.type).validEnd){if(n){let h=e.pos+i.nodeSize,p=C.empty;for(let y=s.length-1;y>=0;y--)p=C.from(s[y].create(null,p));p=C.from(o.copy(p));let m=t.tr.step(new re(e.pos-1,h,e.pos,h,new O(p,1,0),s.length,!0)),g=m.doc.resolve(h+2*s.length);g.nodeAfter&&g.nodeAfter.type==o.type&&Ne(m.doc,g.pos)&&m.join(g.pos),n(m.scrollIntoView())}return!0}let d=i.type.spec.isolating||r>0&&a?null:D.findFrom(e,1),u=d&&d.$from.blockRange(d.$to),f=u&&at(u);if(f!=null&&f>=e.depth)return n&&n(t.tr.lift(u,f).scrollIntoView()),!0;if(c&&pn(i,"start",!0)&&pn(o,"end")){let h=o,p=[];for(;p.push(h),!h.isTextblock;)h=h.lastChild;let m=i,g=1;for(;!m.isTextblock;m=m.firstChild)g++;if(h.canReplace(h.childCount,h.childCount,m.content)){if(n){let y=C.empty;for(let k=p.length-1;k>=0;k--)y=C.from(p[k].copy(y));let b=t.tr.step(new re(e.pos-p.length,e.pos+i.nodeSize,e.pos+g,e.pos+i.nodeSize-g,new O(y,p.length,0),0,!0));n(b.scrollIntoView())}return!0}}return!1}function fc(t){return function(e,n){let r=e.selection,o=t<0?r.$from:r.$to,i=o.depth;for(;o.node(i).isInline;){if(!i)return!1;i--}return o.node(i).isTextblock?(n&&n(e.tr.setSelection(R.create(e.doc,t<0?o.start(i):o.end(i)))),!0):!1}}var ts=fc(-1),ns=fc(1);function hc(t,e=null){return function(n,r){let{$from:o,$to:i}=n.selection,s=o.blockRange(i),l=s&&un(s,t,e);return l?(r&&r(n.tr.wrap(s,l).scrollIntoView()),!0):!1}}function rs(t,e=null){return function(n,r){let o=!1;for(let i=0;i<n.selection.ranges.length&&!o;i++){let{$from:{pos:s},$to:{pos:l}}=n.selection.ranges[i];n.doc.nodesBetween(s,l,(a,c)=>{if(o)return!1;if(!(!a.isTextblock||a.hasMarkup(t,e)))if(a.type==t)o=!0;else{let d=n.doc.resolve(c),u=d.index();o=d.parent.canReplaceWith(u,u+1,t)}})}if(!o)return!1;if(r){let i=n.tr;for(let s=0;s<n.selection.ranges.length;s++){let{$from:{pos:l},$to:{pos:a}}=n.selection.ranges[s];i.setBlockType(l,a,t,e)}r(i.scrollIntoView())}return!0}}function is(...t){return function(e,n,r){for(let o=0;o<t.length;o++)if(t[o](e,n,r))return!0;return!1}}var Wi=is(zr,ji,Ki),tc=is(zr,qi,Ji),Ct={Enter:is(Xi,Zi,es,Fp),"Mod-Enter":Qi,Backspace:Wi,"Mod- Line truncated `).scrollIntoView()),!0)};function Yi(t){for(let e=0;e<t.edgeCount;e++){let{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}var Qi=(t,e)=>{let{$head:n,$anchor:r}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let o=n.node(-1),i=n.indexAfter(-1),s=Yi(o.contentMatchAt(i));if(!s||!o.canReplaceWith(i,i,s))return!1;if(e){let l=n.after(),a=t.tr.replaceWith(l,l,s.createAndFill());a.setSelection(I.near(a.doc.resolve(l),1)),e(a.scrollIntoView())}return!0},Zi=(t,e)=>{let n=t.selection,{$from:r,$to:o}=n;if(n instanceof be||r.parent.inlineContent||o.parent.inlineContent)return!1;let i=Yi(o.parent.contentMatchAt(o.indexAfter()));if(!i||!i.isTextblock)return!1;if(e){let s=(!r.parentOffset&&o.index()<o.parent.childCount?r:o).pos,l=t.tr.insert(s,i.createAndFill());l.setSelection(R.create(l.doc,s+1)),e(l.scrollIntoView())}return!0},es=(t,e)=>{let{$cursor:n}=t.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let i=n.before();if(Ae(t.doc,i))return e&&e(t.tr.split(i).scrollIntoView()),!0}let r=n.blockRange(),o=r&&at(r);return o==null?!1:(e&&e(t.tr.lift(r,o).scrollIntoView()),!0)};function _p(t){return(e,n)=>{let{$from:r,$to:o}=e.selection;if(e.selection instanceof P&&e.selection.node.isBlock)return!r.parentOffset||!Ae(e.doc,r.pos)?!1:(n&&n(e.tr.split(r.pos).scrollIntoView()),!0);if(!r.depth)return!1;let i=[],s,l,a=!1,c=!1;for(let h=r.depth;;h--)if(r.node(h).isBlock){a=r.end(h)==r.pos+(r.depth-h),c=r.start(h)==r.pos-(r.depth-h),l=Yi(r.node(h-1).contentMatchAt(r.indexAfter(h-1)));let m=t&&t(o.parent,a,r);i.unshift(m||(a&&l?{type:l}:null)),s=h;break}else{if(h==1)return!1;i.unshift(null)}let d=e.tr;(e.selection instanceof R||e.selection instanceof be)&&d.deleteSelection();let u=d.mapping.map(r.pos),f=Ae(d.doc,u,i.length,i);if(f||(i[0]=l?{type:l}:null,f=Ae(d.doc,u,i.length,i)),!f)return!1;if(d.split(u,i.length,i),!a&&c&&r.node(s).type!=l){let h=d.mapping.map(r.before(s)),p=d.doc.resolve(h);l&&r.node(s-1).canReplaceWith(p.index(),p.index()+1,l)&&d.setNodeMarkup(d.mapping.map(r.before(s)),l)}return n&&n(d.scrollIntoView()),!0}}var Vp=_p();var dc=(t,e)=>{let{$from:n,to:r}=t.selection,o,i=n.sharedDepth(r);return i==0?!1:(o=n.before(i),e&&e(t.tr.setSelection(P.create(t.doc,o))),!0)},Wp=(t,e)=>(e&&e(t.tr.setSelection(new be(t.doc))),!0);function jp(t,e,n){let r=e.nodeBefore,o=e.nodeAfter,i=e.index();return!r||!o||!r.type.compatibleContent(o.type)?!1:!r.content.size&&e.parent.canReplace(i-1,i)?(n&&n(t.tr.delete(e.pos-r.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(i,i+1)||!(o.isTextblock||Oe(t.doc,e.pos))?!1:(n&&n(t.tr.join(e.pos).scrollIntoView()),!0)}function uc(t,e,n,r){let o=e.nodeBefore,i=e.nodeAfter,s,l,a=o.type.spec.isolating||i.type.spec.isolating;if(!a&&jp(t,e,n))return!0;let c=!a&&e.parent.canReplace(e.index(),e.index()+1);if(c&&(s=(l=o.contentMatchAt(o.childCount)).findWrapping(i.type))&&l.matchType(s[0]||i.type).validEnd){if(n){let h=e.pos+i.nodeSize,p=C.empty;for(let y=s.length-1;y>=0;y--)p=C.from(s[y].create(null,p));p=C.from(o.copy(p));let m=t.tr.step(new re(e.pos-1,h,e.pos,h,new E(p,1,0),s.length,!0)),g=m.doc.resolve(h+2*s.length);g.nodeAfter&&g.nodeAfter.type==o.type&&Oe(m.doc,g.pos)&&m.join(g.pos),n(m.scrollIntoView())}return!0}let d=i.type.spec.isolating||r>0&&a?null:I.findFrom(e,1),u=d&&d.$from.blockRange(d.$to),f=u&&at(u);if(f!=null&&f>=e.depth)return n&&n(t.tr.lift(u,f).scrollIntoView()),!0;if(c&&pn(i,"start",!0)&&pn(o,"end")){let h=o,p=[];for(;p.push(h),!h.isTextblock;)h=h.lastChild;let m=i,g=1;for(;!m.isTextblock;m=m.firstChild)g++;if(h.canReplace(h.childCount,h.childCount,m.content)){if(n){let y=C.empty;for(let k=p.length-1;k>=0;k--)y=C.from(p[k].copy(y));let b=t.tr.step(new re(e.pos-p.length,e.pos+i.nodeSize,e.pos+g,e.pos+i.nodeSize-g,new E(y,p.length,0),0,!0));n(b.scrollIntoView())}return!0}}return!1}function fc(t){return function(e,n){let r=e.selection,o=t<0?r.$from:r.$to,i=o.depth;for(;o.node(i).isInline;){if(!i)return!1;i--}return o.node(i).isTextblock?(n&&n(e.tr.setSelection(R.create(e.doc,t<0?o.start(i):o.end(i)))),!0):!1}}var ts=fc(-1),ns=fc(1);function hc(t,e=null){return function(n,r){let{$from:o,$to:i}=n.selection,s=o.blockRange(i),l=s&&un(s,t,e);return l?(r&&r(n.tr.wrap(s,l).scrollIntoView()),!0):!1}}function rs(t,e=null){return function(n,r){let o=!1;for(let i=0;i<n.selection.ranges.length&&!o;i++){let{$from:{pos:s},$to:{pos:l}}=n.selection.ranges[i];n.doc.nodesBetween(s,l,(a,c)=>{if(o)return!1;if(!(!a.isTextblock||a.hasMarkup(t,e)))if(a.type==t)o=!0;else{let d=n.doc.resolve(c),u=d.index();o=d.parent.canReplaceWith(u,u+1,t)}})}if(!o)return!1;if(r){let i=n.tr;for(let s=0;s<n.selection.ranges.length;s++){let{$from:{pos:l},$to:{pos:a}}=n.selection.ranges[s];i.setBlockType(l,a,t,e)}r(i.scrollIntoView())}return!0}}function is(...t){return function(e,n,r){for(let o=0;o<t.length;o++)if(t[o](e,n,r))return!0;return!1}}var Wi=is(Br,ji,Ki),tc=is(Br,qi,Ji),Ct={Enter:is(Xi,Zi,es,Vp),"Mod-Enter":Qi,Backspace:Wi,"Mod- Line truncated
`),u&&p==h.nodeValue.length)for(let m=h,g;m;m=m.parentNode){if(g=m.nextSibling){g.nodeName=="BR"&&(l=a={node:g.parentNode,offset:de(g)+1});break}let y=m.pmViewDesc;if(y&&y.node&&y.node.isBlock)break}}else{let m=h.childNodes[p-1];u=m&&(m.nodeName=="BR"||m.contentEditable=="false")}}if(Ie&&d.focusNode&&d.focusNode!=a.node&&d.focusNode.nodeType==1){let h=d.focusNode.childNodes[d.focusOffset];h&&h.contentEditable=="false"&&(o=!0)}if(!(o||u&&xe)&&Jt(l.node,l.offset,d.anchorNode,d.anchorOffset)&&Jt(a.node,a.offset,d.focusNode,d.focusOffset))return;let f=!1;if((c.extend||e==n)&&!(u&&Ie)){c.collapse(l.node,l.offset);try{e!=n&&c.extend(a.node,a.offset),f=!0}catch{}}if(!f){if(e>n){let p=l;l=a,a=p}let h=document.createRange();h.setEnd(a.node,a.offset),h.setStart(l.node,l.offset),c.removeAllRanges(),c.addRange(h)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,n){for(let r=0,o=0;o<this.children.length;o++){let i=this.children[o],s=r+i.size;if(r==s?e<=s&&n>=r:e<s&&n>r){let l=r+i.border,a=s-i.border;if(e>=l&&n<=a){this.dirty=e==r||n==s?Wt:Mc,e==l&&n==a&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=Je:i.markDirty(e-l,n-l);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?Wt:Je}r=s}this.dirty=Wt}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let r=e==1?Wt:Mc;n.dirty<r&&(n.dirty=r)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}},Hr=class extends Gt{constructor(e,n,r,o){let i,s=n.type.toDOM;if(typeof s=="function"&&(s=s(r,()=>{if(!i)return o;if(i.parent)return i.parent.posBeforeChild(i)})),!n.type.spec.raw){if(s.nodeType!=1){let l=document.createElement("span");l.appendChild(s),s=l}s.contentEditable="false",s.classList.add("ProseMirror-widget")}super(e,[],s,null),this.widget=n,this.widget=n,i=this}matchesWidget(e){return this.dirty==Pe&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let n=this.widget.spec.stopEvent;return n?n(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}},ms=class extends Gt{constructor(e,n,r,o){super(e,[],n,null),this.textDOM=r,this.text=o}get size(){return this.text.length}localPosFromDOM(e,n){return e!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}},kn=class t extends Gt{constructor(e,n,r,o,i){super(e,[],r,o),this.mark=n,this.spec=i}static create(e,n,r,o){let i=o.nodeViews[n.type.name],s=i&&i(n,o,r);return(!s||!s.dom)&&(s=it.renderSpec(document,n.type.spec.toDOM(n,r),null,n.attrs)),new t(e,n,s.dom,s.contentDOM||s.dom,s)}parseRule(){return this.dirty&Je||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=Je&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=Pe){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty<this.dirty&&(r.dirty=this.dirty),this.dirty=Pe}}slice(e,n,r){let o=t.create(this.parent,this.mark,!0,r),i=this.children,s=this.size;n<s&&(i=xs(i,n,s,r)),e>0&&(i=xs(i,0,e,r));for(let l=0;l<i.length;l++)i[l].parent=o;return o.children=i,o}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}},Et=class t extends Gt{constructor(e,n,r,o,i,s,l,a,c){super(e,[],i,s),this.node=n,this.outerDeco=r,this.innerDeco=o,this.nodeDOM=l}static create(e,n,r,o,i,s){let l=i.nodeViews[n.type.name],a,c=l&&l(n,i,()=>{if(!a)return s;if(a.parent)return a.parent.posBeforeChild(a)},r,o),d=c&&c.dom,u=c&&c.contentDOM;if(n.isText){if(!d)d=document.createTextNode(n.text);else if(d.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else d||({dom:d,contentDOM:u}=it.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!u&&!n.isText&&d.nodeName!="BR"&&(d.hasAttribute("contenteditable")||(d.contentEditable="false"),n.type.spec.draggable&&(d.draggable=!0));let f=d;return d=sd(d,r,n),c?a=new gs(e,n,r,o,d,u||null,f,c,i,s+1):n.isText?new $r(e,n,r,o,d,f,i):new t(e,n,r,o,d,u||null,f,i,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let r=this.children[n];if(this.dom.contains(r.dom.parentNode)){e.contentElement=r.dom.parentNode;b Line truncated `),u&&p==h.nodeValue.length)for(let m=h,g;m;m=m.parentNode){if(g=m.nextSibling){g.nodeName=="BR"&&(l=a={node:g.parentNode,offset:de(g)+1});break}let y=m.pmViewDesc;if(y&&y.node&&y.node.isBlock)break}}else{let m=h.childNodes[p-1];u=m&&(m.nodeName=="BR"||m.contentEditable=="false")}}if(Ie&&d.focusNode&&d.focusNode!=a.node&&d.focusNode.nodeType==1){let h=d.focusNode.childNodes[d.focusOffset];h&&h.contentEditable=="false"&&(o=!0)}if(!(o||u&&we)&&Jt(l.node,l.offset,d.anchorNode,d.anchorOffset)&&Jt(a.node,a.offset,d.focusNode,d.focusOffset))return;let f=!1;if((c.extend||e==n)&&!(u&&Ie)){c.collapse(l.node,l.offset);try{e!=n&&c.extend(a.node,a.offset),f=!0}catch{}}if(!f){if(e>n){let p=l;l=a,a=p}let h=document.createRange();h.setEnd(a.node,a.offset),h.setStart(l.node,l.offset),c.removeAllRanges(),c.addRange(h)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,n){for(let r=0,o=0;o<this.children.length;o++){let i=this.children[o],s=r+i.size;if(r==s?e<=s&&n>=r:e<s&&n>r){let l=r+i.border,a=s-i.border;if(e>=l&&n<=a){this.dirty=e==r||n==s?Wt:vc,e==l&&n==a&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=Je:i.markDirty(e-l,n-l);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?Wt:Je}r=s}this.dirty=Wt}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let r=e==1?Wt:vc;n.dirty<r&&(n.dirty=r)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}},Hr=class extends Gt{constructor(e,n,r,o){let i,s=n.type.toDOM;if(typeof s=="function"&&(s=s(r,()=>{if(!i)return o;if(i.parent)return i.parent.posBeforeChild(i)})),!n.type.spec.raw){if(s.nodeType!=1){let l=document.createElement("span");l.appendChild(s),s=l}s.contentEditable="false",s.classList.add("ProseMirror-widget")}super(e,[],s,null),this.widget=n,this.widget=n,i=this}matchesWidget(e){return this.dirty==Pe&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let n=this.widget.spec.stopEvent;return n?n(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}},ms=class extends Gt{constructor(e,n,r,o){super(e,[],n,null),this.textDOM=r,this.text=o}get size(){return this.text.length}localPosFromDOM(e,n){return e!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}},kn=class t extends Gt{constructor(e,n,r,o,i){super(e,[],r,o),this.mark=n,this.spec=i}static create(e,n,r,o){let i=o.nodeViews[n.type.name],s=i&&i(n,o,r);return(!s||!s.dom)&&(s=it.renderSpec(document,n.type.spec.toDOM(n,r),null,n.attrs)),new t(e,n,s.dom,s.contentDOM||s.dom,s)}parseRule(){return this.dirty&Je||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=Je&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=Pe){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty<this.dirty&&(r.dirty=this.dirty),this.dirty=Pe}}slice(e,n,r){let o=t.create(this.parent,this.mark,!0,r),i=this.children,s=this.size;n<s&&(i=ws(i,n,s,r)),e>0&&(i=ws(i,0,e,r));for(let l=0;l<i.length;l++)i[l].parent=o;return o.children=i,o}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}},Et=class t extends Gt{constructor(e,n,r,o,i,s,l,a,c){super(e,[],i,s),this.node=n,this.outerDeco=r,this.innerDeco=o,this.nodeDOM=l}static create(e,n,r,o,i,s){let l=i.nodeViews[n.type.name],a,c=l&&l(n,i,()=>{if(!a)return s;if(a.parent)return a.parent.posBeforeChild(a)},r,o),d=c&&c.dom,u=c&&c.contentDOM;if(n.isText){if(!d)d=document.createTextNode(n.text);else if(d.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else d||({dom:d,contentDOM:u}=it.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!u&&!n.isText&&d.nodeName!="BR"&&(d.hasAttribute("contenteditable")||(d.contentEditable="false"),n.type.spec.draggable&&(d.draggable=!0));let f=d;return d=sd(d,r,n),c?a=new gs(e,n,r,o,d,u||null,f,c,i,s+1):n.isText?new $r(e,n,r,o,d,f,i):new t(e,n,r,o,d,u||null,f,i,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let r=this.children[n];if(this.dom.contains(r.dom.parentNode)){e.contentElement=r.dom.parentNode;b Line truncated
`);return{dom:a,text:f,slice:e}}function ud(t,e,n,r,o){let i=o.parent.type.spec.code,s,l;if(!n&&!e)return null;let a=!!e&&(r||i||!n);if(a){if(t.someProp("transformPastedText",f=>{e=f(e,i||r,t)}),i)return l=new O(C.from(t.state.schema.text(e.replace(/\r\n?/g,` `);return{dom:a,text:f,slice:e}}function ud(t,e,n,r,o){let i=o.parent.type.spec.code,s,l;if(!n&&!e)return null;let a=!!e&&(r||i||!n);if(a){if(t.someProp("transformPastedText",f=>{e=f(e,i||r,t)}),i)return l=new E(C.from(t.state.schema.text(e.replace(/\r\n?/g,`
`))),0,0),t.someProp("transformPasted",f=>{l=f(l,t,!0)}),l;let u=t.someProp("clipboardTextParser",f=>f(e,o,r,t));if(u)l=u;else{let f=o.marks(),{schema:h}=t.state,p=it.fromSchema(h);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(m=>{let g=s.appendChild(document.createElement("p"));m&&g.appendChild(p.serializeNode(h.text(m,f)))})}}else t.someProp("transformPastedHTML",u=>{n=u(n,t)}),s=zm(n),Yn&&Hm(s);let c=s&&s.querySelector("[data-pm-slice]"),d=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(d&&d[3])for(let u=+d[3];u>0;u--){let f=s.firstChild;for(;f&&f.nodeType!=1;)f=f.nextSibling;if(!f)break;s=f}if(l||(l=(t.someProp("clipboardParser")||t.someProp("domParser")||Ue.fromSchema(t.state.schema)).parseSlice(s,{preserveWhitespace:!!(a||d),context:o,ruleFromNode(f){return f.nodeName=="BR"&&!f.nextSibling&&f.parentNode&&!Pm.test(f.parentNode.nodeName)?{ignore:!0}:null}})),d)l=$m(zc(l,+d[1],+d[2]),d[4]);else if(l=O.maxOpen(Lm(l.content,o),!0),l.openStart||l.openEnd){let u=0,f=0;for(let h=l.content.firstChild;u<l.openStart&&!h.type.spec.isolating;u++,h=h.firstChild);for(let h=l.content.lastChild;f<l.openEnd&&!h.type.spec.isolating;f++,h=h.lastChild);l=zc(l,u,f)}return t.someProp("transformPasted",u=>{l=u(l,t,a)}),l}var Pm=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function Lm(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let o=e.node(n).contentMatchAt(e.index(n)),i,s=[];if(t.forEach(l=>{if(!s)return;let a=o.findWrapping(l.type),c;if(!a)return s=null;if(c=s.length&&i.length&&hd(a,i,l,s[s.length-1],0))s[s.length-1]=c;else{s.length&&(s[s.length-1]=pd(s[s.length-1],i.length));let d=fd(l,a);s.push(d),o=o.matchType(d.type),i=a}}),s)return C.from(s)}return t}function fd(t,e,n=0){for(let r=e.length-1;r>=n;r--)t=e[r].create(null,C.from(t));return t}function hd(t,e,n,r,o){if(o<t.length&&o<e.length&&t[o]==e[o]){let i=hd(t,e,n,r.lastChild,o+1);if(i)return r.copy(r.content.replaceChild(r.childCount-1,i));if(r.contentMatchAt(r.childCount).matchType(o==t.length-1?n.type:t[o+1]))return r.copy(r.content.append(C.from(fd(n,t,o+1))))}}function pd(t,e){if(e==0)return t;let n=t.content.replaceChild(t.childCount-1,pd(t.lastChild,e-1)),r=t.contentMatchAt(t.childCount).fillBefore(C.empty,!0);return t.copy(n.append(r))}function Ss(t,e,n,r,o,i){let s=e<0?t.firstChild:t.lastChild,l=s.content;return t.childCount>1&&(i=0),o<r-1&&(l=Ss(l,e,n,r,o+1,i)),o>=n&&(l=e<0?s.contentMatchAt(0).fillBefore(l,i<=o).append(l):l.append(s.contentMatchAt(s.childCount).fillBefore(C.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,s.copy(l))}function zc(t,e,n){return e<t.openStart&&(t=new O(Ss(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new O(Ss(t.content,1,n,t.openEnd,0,0),t.openStart,n)),t}var md={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]},Hc=null;function gd(){return Hc||(Hc=document.implementation.createHTMLDocument("title"))}var as=null;function Bm(t){let e=window.trustedTypes;return e?(as||(as=e.defaultPolicy||e.createPolicy("ProseMirrorClipboard",{createHTML:n=>n})),as.createHTML(t)):t}function zm(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=gd().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(t),o;if((o=r&&md[r[1].toLowerCase()])&&(t=o.map(i=>"<"+i+">").join("")+t+o.map(i=>"</"+i+">").reverse().join("")),n.innerHTML=Bm(t),o)for(let i=0;i<o.length;i++)n=n.querySelector(o[i])||n;return n}function Hm(t){let e=t.querySelectorAll(ge?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<e.length;n++){let r=e[n];r.childNodes.length==1&&r.textContent=="\xA0"&&r.parentNode&&r.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),r)}}function $m(t,e){if(!t.size)return t;let n=t.content.firstChild.type.schema,r;try{r=JSON.parse(e)}catch{return t}let{content:o,openStart:i,openEnd:s}=t;for(let l=r.length-2;l>=0;l-=2){let a=n.nodes[r[l]];if(!a||a.hasRequiredAttrs())break;o=C.from(a.create(r[l+1],o)),i++,s++}return new O(o,i,s)}var we={},ke={},Fm={touchstart:!0,touchmove:!0},Cs=class{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}};function _m(t){for(let e in we){let n=we[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=r=>{Wm(t,r)&&!Is(t,r)&&(t.editable||!(r.type in ke))&&n(t,r)},Fm[e]?{passive: Line truncated `))),0,0),t.someProp("transformPasted",f=>{l=f(l,t,!0)}),l;let u=t.someProp("clipboardTextParser",f=>f(e,o,r,t));if(u)l=u;else{let f=o.marks(),{schema:h}=t.state,p=it.fromSchema(h);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(m=>{let g=s.appendChild(document.createElement("p"));m&&g.appendChild(p.serializeNode(h.text(m,f)))})}}else t.someProp("transformPastedHTML",u=>{n=u(n,t)}),s=$m(n),Yn&&Fm(s);let c=s&&s.querySelector("[data-pm-slice]"),d=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(d&&d[3])for(let u=+d[3];u>0;u--){let f=s.firstChild;for(;f&&f.nodeType!=1;)f=f.nextSibling;if(!f)break;s=f}if(l||(l=(t.someProp("clipboardParser")||t.someProp("domParser")||Ue.fromSchema(t.state.schema)).parseSlice(s,{preserveWhitespace:!!(a||d),context:o,ruleFromNode(f){return f.nodeName=="BR"&&!f.nextSibling&&f.parentNode&&!zm.test(f.parentNode.nodeName)?{ignore:!0}:null}})),d)l=_m(Bc(l,+d[1],+d[2]),d[4]);else if(l=E.maxOpen(Bm(l.content,o),!0),l.openStart||l.openEnd){let u=0,f=0;for(let h=l.content.firstChild;u<l.openStart&&!h.type.spec.isolating;u++,h=h.firstChild);for(let h=l.content.lastChild;f<l.openEnd&&!h.type.spec.isolating;f++,h=h.lastChild);l=Bc(l,u,f)}return t.someProp("transformPasted",u=>{l=u(l,t,a)}),l}var zm=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function Bm(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let o=e.node(n).contentMatchAt(e.index(n)),i,s=[];if(t.forEach(l=>{if(!s)return;let a=o.findWrapping(l.type),c;if(!a)return s=null;if(c=s.length&&i.length&&hd(a,i,l,s[s.length-1],0))s[s.length-1]=c;else{s.length&&(s[s.length-1]=pd(s[s.length-1],i.length));let d=fd(l,a);s.push(d),o=o.matchType(d.type),i=a}}),s)return C.from(s)}return t}function fd(t,e,n=0){for(let r=e.length-1;r>=n;r--)t=e[r].create(null,C.from(t));return t}function hd(t,e,n,r,o){if(o<t.length&&o<e.length&&t[o]==e[o]){let i=hd(t,e,n,r.lastChild,o+1);if(i)return r.copy(r.content.replaceChild(r.childCount-1,i));if(r.contentMatchAt(r.childCount).matchType(o==t.length-1?n.type:t[o+1]))return r.copy(r.content.append(C.from(fd(n,t,o+1))))}}function pd(t,e){if(e==0)return t;let n=t.content.replaceChild(t.childCount-1,pd(t.lastChild,e-1)),r=t.contentMatchAt(t.childCount).fillBefore(C.empty,!0);return t.copy(n.append(r))}function Ss(t,e,n,r,o,i){let s=e<0?t.firstChild:t.lastChild,l=s.content;return t.childCount>1&&(i=0),o<r-1&&(l=Ss(l,e,n,r,o+1,i)),o>=n&&(l=e<0?s.contentMatchAt(0).fillBefore(l,i<=o).append(l):l.append(s.contentMatchAt(s.childCount).fillBefore(C.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,s.copy(l))}function Bc(t,e,n){return e<t.openStart&&(t=new E(Ss(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new E(Ss(t.content,1,n,t.openEnd,0,0),t.openStart,n)),t}var md={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]},Hc=null;function gd(){return Hc||(Hc=document.implementation.createHTMLDocument("title"))}var as=null;function Hm(t){let e=window.trustedTypes;return e?(as||(as=e.defaultPolicy||e.createPolicy("ProseMirrorClipboard",{createHTML:n=>n})),as.createHTML(t)):t}function $m(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=gd().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(t),o;if((o=r&&md[r[1].toLowerCase()])&&(t=o.map(i=>"<"+i+">").join("")+t+o.map(i=>"</"+i+">").reverse().join("")),n.innerHTML=Hm(t),o)for(let i=0;i<o.length;i++)n=n.querySelector(o[i])||n;return n}function Fm(t){let e=t.querySelectorAll(ge?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<e.length;n++){let r=e[n];r.childNodes.length==1&&r.textContent=="\xA0"&&r.parentNode&&r.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),r)}}function _m(t,e){if(!t.size)return t;let n=t.content.firstChild.type.schema,r;try{r=JSON.parse(e)}catch{return t}let{content:o,openStart:i,openEnd:s}=t;for(let l=r.length-2;l>=0;l-=2){let a=n.nodes[r[l]];if(!a||a.hasRequiredAttrs())break;o=C.from(a.create(r[l+1],o)),i++,s++}return new E(o,i,s)}var xe={},ke={},Vm={touchstart:!0,touchmove:!0},Cs=class{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}};function Wm(t){for(let e in xe){let n=xe[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=r=>{Km(t,r)&&!Is(t,r)&&(t.editable||!(r.type in ke))&&n(t,r)},Vm[e]?{passive: Line truncated
`,textSerializers:s={}}=n||{},l="";return t.nodesBetween(r,o,(a,c,d,u)=>{var f;a.isBlock&&c>r&&(l+=i);let h=s?.[a.type.name];if(h)return d&&(l+=h({node:a,pos:c,parent:d,index:u,range:e})),!1;a.isText&&(l+=(f=a?.text)==null?void 0:f.slice(Math.max(r,c)-c,o-c))}),l}function Sy(t,e){let n={from:0,to:t.content.size};return Kd(t,n,e)}function Ud(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,n])=>[e,n.spec.toText]))}function Cy(t,e){let n=ee(e,t.schema),{from:r,to:o}=t.selection,i=[];t.doc.nodesBetween(r,o,l=>{i.push(l)});let s=i.reverse().find(l=>l.type.name===n.name);return s?{...s.attrs}:{}}function Qs(t,e){let n=ao(typeof e=="string"?e:e.name,t.schema);return n==="node"?Cy(t,e):n==="mark"?Fd(t,e):{}}function My(t,e=JSON.stringify){let n={};return t.filter(r=>{let o=e(r);return Object.prototype.hasOwnProperty.call(n,o)?!1:n[o]=!0})}function vy(t){let e=My(t);return e.length===1?e:e.filter((n,r)=>!e.filter((i,s)=>s!==r).some(i=>n.oldRange.from>=i.oldRange.from&&n.oldRange.to<=i.oldRange.to&&n.newRange.from>=i.newRange.from&&n.newRange.to<=i.newRange.to))}function Zs(t){let{mapping:e,steps:n}=t,r=[];return e.maps.forEach((o,i)=>{let s=[];if(o.ranges.length)o.forEach((l,a)=>{s.push({from:l,to:a})});else{let{from:l,to:a}=n[i];if(l===void 0||a===void 0)return;s.push({from:l,to:a})}s.forEach(({from:l,to:a})=>{let c=e.slice(i).map(l,-1),d=e.slice(i).map(a),u=e.invert().map(c,-1),f=e.invert().map(d);r.push({oldRange:{from:u,to:f},newRange:{from:c,to:d}})})}),vy(r)}function co(t,e,n){let r=[];return t===e?n.resolve(t).marks().forEach(o=>{let i=n.resolve(t),s=Ks(i,o.type);s&&r.push({mark:o,...s})}):n.nodesBetween(t,e,(o,i)=>{!o||o?.nodeSize===void 0||r.push(...o.marks.map(s=>({from:i,to:i+o.nodeSize,mark:s})))}),r}var qd=(t,e,n,r=20)=>{let o=t.doc.resolve(n),i=r,s=null;for(;i>0&&s===null;){let l=o.node(i);l?.type.name===e?s=l:i-=1}return[s,i]};function Hs(t,e){return e.nodes[t]||e.marks[t]||null}function no(t,e,n){return Object.fromEntries(Object.entries(n).filter(([r])=>{let o=t.find(i=>i.type===e&&i.name===r);return o?o.attribute.keepOnSplit:!1}))}var Ty=(t,e=500)=>{let n="",r=t.parentOffset;return t.parent.nodesBetween(Math.max(0,r-e),r,(o,i,s,l)=>{var a,c;let d=((c=(a=o.type.spec).toText)==null?void 0:c.call(a,{node:o,pos:i,parent:s,index:l}))||o.textContent||"%leaf%";n+=o.isAtom&&!o.isText?d:d.slice(0,Math.max(0,r-i))}),n};function Vs(t,e,n={}){let{empty:r,ranges:o}=t.selection,i=e?mt(e,t.schema):null;if(r)return!!(t.storedMarks||t.selection.$from.marks()).filter(u=>i?i.name===u.type.name:!0).find(u=>ro(u.attrs,n,{strict:!1}));let s=0,l=[];if(o.forEach(({$from:u,$to:f})=>{let h=u.pos,p=f.pos;t.doc.nodesBetween(h,p,(m,g)=>{if(!m.isText&&!m.marks.length)return;let y=Math.max(h,g),b=Math.min(p,g+m.nodeSize),k=b-y;s+=k,l.push(...m.marks.map(M=>({mark:M,from:y,to:b})))})}),s===0)return!1;let a=l.filter(u=>i?i.name===u.mark.type.name:!0).filter(u=>ro(u.mark.attrs,n,{strict:!1})).reduce((u,f)=>u+f.to-f.from,0),c=l.filter(u=>i?u.mark.type!==i&&u.mark.type.excludes(i):!0).reduce((u,f)=>u+f.to-f.from,0);return(a>0?a+c:a)>=s}function el(t,e,n={}){if(!e)return Ge(t,null,n)||Vs(t,null,n);let r=ao(e,t.schema);return r==="node"?Ge(t,e,n):r==="mark"?Vs(t,e,n):!1}var Jd=(t,e)=>{let{$from:n,$to:r,$anchor:o}=t.selection;if(e){let i=Xe(l=>l.type.name===e)(t.selection);if(!i)return!1;let s=t.doc.resolve(i.pos+1);return o.pos+1===s.end()}return!(r.parentOffset<r.parent.nodeSize-2||n.pos!==r.pos)},Gd=t=>{let{$from:e,$to:n}=t.selection;return!(e.parentOffset>0||e.pos!==n.pos)};function Dd(t,e){return Array.isArray(e)?e.some(n=>(typeof n=="string"?n:n.name)===t.name):e}function Id(t,e){let{nodeExtensions:n}=er(e),r=n.find(s=>s.name===t);if(!r)return!1;let o={name:r.name,options:r.options,storage:r.storage},i=q(B(r,"group",o));return typeof i!="string"?!1:i.split(" ").includes("list")}function nr(t,{checkChildren:e=!0,ignoreWhitespace:n=!1}={}){var r;if(n){if(t.type.name==="hardBreak")return!0;if(t.isText)return/^\s*$/m.test((r=t.text)!=null?r:"")}if(t.isText)return!t.text;if(t.isAtom||t.isLeaf)return!1;if(t.content.childCount===0)return!0;if(e){let o=!0;return t.content.forEach(i=>{o!==!1&&(nr(i,{ignoreWhitespace:n,checkChildren:e})||(o=!1))}),o}return!1}function uo(t){return t instanceof P}function Xd(t,e,n){let o=t.state.doc.content.size,i=pt(e,0,o),s=pt(n,0,o),l=t.coordsAtPos(i),a=t.coordsAtPos(s,-1),c=Math.min(l.top,a.top),d=Math.max(l.bottom,a.bottom),u=Math.min(l.left,a.left),f=Math.max(l.right,a.right),h=f-u,p=d-c,y={top:c,bottom:d,left:u,right:f,width:h,height:p,x:u,y:c};return{...y,toJSON:()=>y}}function Ay(t,e,n){var r;let{selection:o}=e,i=null;if(lo(o)&&(i=o.$cursor),i){let l=(r=t.storedMarks)!=null?r:i.marks();return i.parent.type.allowsMarkType(n)&&(!!n.isInSet(l)||!l.some(c=>c.type.excludes(n)))}let{ranges:s}=o;return s.some(({$from:l,$to:a})=>{let c=l.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(n):!1;return t.doc.nodesBetween(l.pos,a.pos,(d,u,f)=>{if(c)return!1;if(d. Line truncated `,textSerializers:s={}}=n||{},l="";return t.nodesBetween(r,o,(a,c,d,u)=>{var f;a.isBlock&&c>r&&(l+=i);let h=s?.[a.type.name];if(h)return d&&(l+=h({node:a,pos:c,parent:d,index:u,range:e})),!1;a.isText&&(l+=(f=a?.text)==null?void 0:f.slice(Math.max(r,c)-c,o-c))}),l}function vy(t,e){let n={from:0,to:t.content.size};return Kd(t,n,e)}function Ud(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,n])=>[e,n.spec.toText]))}function My(t,e){let n=ee(e,t.schema),{from:r,to:o}=t.selection,i=[];t.doc.nodesBetween(r,o,l=>{i.push(l)});let s=i.reverse().find(l=>l.type.name===n.name);return s?{...s.attrs}:{}}function Qs(t,e){let n=ao(typeof e=="string"?e:e.name,t.schema);return n==="node"?My(t,e):n==="mark"?Fd(t,e):{}}function Ty(t,e=JSON.stringify){let n={};return t.filter(r=>{let o=e(r);return Object.prototype.hasOwnProperty.call(n,o)?!1:n[o]=!0})}function Ay(t){let e=Ty(t);return e.length===1?e:e.filter((n,r)=>!e.filter((i,s)=>s!==r).some(i=>n.oldRange.from>=i.oldRange.from&&n.oldRange.to<=i.oldRange.to&&n.newRange.from>=i.newRange.from&&n.newRange.to<=i.newRange.to))}function Zs(t){let{mapping:e,steps:n}=t,r=[];return e.maps.forEach((o,i)=>{let s=[];if(o.ranges.length)o.forEach((l,a)=>{s.push({from:l,to:a})});else{let{from:l,to:a}=n[i];if(l===void 0||a===void 0)return;s.push({from:l,to:a})}s.forEach(({from:l,to:a})=>{let c=e.slice(i).map(l,-1),d=e.slice(i).map(a),u=e.invert().map(c,-1),f=e.invert().map(d);r.push({oldRange:{from:u,to:f},newRange:{from:c,to:d}})})}),Ay(r)}function co(t,e,n){let r=[];return t===e?n.resolve(t).marks().forEach(o=>{let i=n.resolve(t),s=Ks(i,o.type);s&&r.push({mark:o,...s})}):n.nodesBetween(t,e,(o,i)=>{!o||o?.nodeSize===void 0||r.push(...o.marks.map(s=>({from:i,to:i+o.nodeSize,mark:s})))}),r}var qd=(t,e,n,r=20)=>{let o=t.doc.resolve(n),i=r,s=null;for(;i>0&&s===null;){let l=o.node(i);l?.type.name===e?s=l:i-=1}return[s,i]};function Hs(t,e){return e.nodes[t]||e.marks[t]||null}function no(t,e,n){return Object.fromEntries(Object.entries(n).filter(([r])=>{let o=t.find(i=>i.type===e&&i.name===r);return o?o.attribute.keepOnSplit:!1}))}var Ey=(t,e=500)=>{let n="",r=t.parentOffset;return t.parent.nodesBetween(Math.max(0,r-e),r,(o,i,s,l)=>{var a,c;let d=((c=(a=o.type.spec).toText)==null?void 0:c.call(a,{node:o,pos:i,parent:s,index:l}))||o.textContent||"%leaf%";n+=o.isAtom&&!o.isText?d:d.slice(0,Math.max(0,r-i))}),n};function Vs(t,e,n={}){let{empty:r,ranges:o}=t.selection,i=e?mt(e,t.schema):null;if(r)return!!(t.storedMarks||t.selection.$from.marks()).filter(u=>i?i.name===u.type.name:!0).find(u=>ro(u.attrs,n,{strict:!1}));let s=0,l=[];if(o.forEach(({$from:u,$to:f})=>{let h=u.pos,p=f.pos;t.doc.nodesBetween(h,p,(m,g)=>{if(!m.isText&&!m.marks.length)return;let y=Math.max(h,g),b=Math.min(p,g+m.nodeSize),k=b-y;s+=k,l.push(...m.marks.map(v=>({mark:v,from:y,to:b})))})}),s===0)return!1;let a=l.filter(u=>i?i.name===u.mark.type.name:!0).filter(u=>ro(u.mark.attrs,n,{strict:!1})).reduce((u,f)=>u+f.to-f.from,0),c=l.filter(u=>i?u.mark.type!==i&&u.mark.type.excludes(i):!0).reduce((u,f)=>u+f.to-f.from,0);return(a>0?a+c:a)>=s}function el(t,e,n={}){if(!e)return Ge(t,null,n)||Vs(t,null,n);let r=ao(e,t.schema);return r==="node"?Ge(t,e,n):r==="mark"?Vs(t,e,n):!1}var Jd=(t,e)=>{let{$from:n,$to:r,$anchor:o}=t.selection;if(e){let i=Xe(l=>l.type.name===e)(t.selection);if(!i)return!1;let s=t.doc.resolve(i.pos+1);return o.pos+1===s.end()}return!(r.parentOffset<r.parent.nodeSize-2||n.pos!==r.pos)},Gd=t=>{let{$from:e,$to:n}=t.selection;return!(e.parentOffset>0||e.pos!==n.pos)};function Dd(t,e){return Array.isArray(e)?e.some(n=>(typeof n=="string"?n:n.name)===t.name):e}function Id(t,e){let{nodeExtensions:n}=er(e),r=n.find(s=>s.name===t);if(!r)return!1;let o={name:r.name,options:r.options,storage:r.storage},i=J(z(r,"group",o));return typeof i!="string"?!1:i.split(" ").includes("list")}function nr(t,{checkChildren:e=!0,ignoreWhitespace:n=!1}={}){var r;if(n){if(t.type.name==="hardBreak")return!0;if(t.isText)return/^\s*$/m.test((r=t.text)!=null?r:"")}if(t.isText)return!t.text;if(t.isAtom||t.isLeaf)return!1;if(t.content.childCount===0)return!0;if(e){let o=!0;return t.content.forEach(i=>{o!==!1&&(nr(i,{ignoreWhitespace:n,checkChildren:e})||(o=!1))}),o}return!1}function uo(t){return t instanceof P}function Xd(t,e,n){let o=t.state.doc.content.size,i=pt(e,0,o),s=pt(n,0,o),l=t.coordsAtPos(i),a=t.coordsAtPos(s,-1),c=Math.min(l.top,a.top),d=Math.max(l.bottom,a.bottom),u=Math.min(l.left,a.left),f=Math.max(l.right,a.right),h=f-u,p=d-c,y={top:c,bottom:d,left:u,right:f,width:h,height:p,x:u,y:c};return{...y,toJSON:()=>y}}function Ny(t,e,n){var r;let{selection:o}=e,i=null;if(lo(o)&&(i=o.$cursor),i){let l=(r=t.storedMarks)!=null?r:i.marks();return i.parent.type.allowsMarkType(n)&&(!!n.isInSet(l)||!l.some(c=>c.type.excludes(n)))}let{ranges:s}=o;return s.some(({$from:l,$to:a})=>{let c=l.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(n):!1;return t.doc.nodesBetween(l.pos,a.pos,(d,u,f)=>{if(c)return!1;if(d. Line truncated
`,rules:n,plugin:r}):!1}},isInputRules:!0});return r}function Gy(t){return Object.prototype.toString.call(t).slice(8,-1)}function eo(t){return Gy(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function Yd(t,e){let n={...t};return eo(t)&&eo(e)&&Object.keys(e).forEach(r=>{eo(e[r])&&eo(t[r])?n[r]=Yd(t[r],e[r]):n[r]=e[r]}),n}var tl=class{constructor(t={}){this.type="extendable",this.parent=null,this.child=null,this.name="",this.config={name:this.name},this.config={...this.config,...t},this.name=this.config.name}get options(){return{...q(B(this,"addOptions",{name:this.name}))||{}}}get storage(){return{...q(B(this,"addStorage",{name:this.name,options:this.options}))||{}}}configure(t={}){let e=this.extend({...this.config,addOptions:()=>Yd(this.options,t)});return e.name=this.name,e.parent=this.parent,e}extend(t={}){let e=new this.constructor({...this.config,...t});return e.parent=this,this.child=e,e.name="name"in t?t.name:e.parent.name,e}},Z=class Qd extends tl{constructor(){super(...arguments),this.type="mark"}static create(e={}){let n=typeof e=="function"?e():e;return new Qd(n)}static handleExit({editor:e,mark:n}){let{tr:r}=e.state,o=e.state.selection.$from;if(o.pos===o.end()){let s=o.marks();if(!!!s.find(c=>c?.type.name===n.name))return!1;let a=s.find(c=>c?.type.name===n.name);return a&&r.removeStoredMark(a),r.insertText(" ",o.pos),e.view.dispatch(r),!0}return!1}configure(e){return super.configure(e)}extend(e){let n=typeof e=="function"?e():e;return super.extend(n)}};function Xy(t){return typeof t=="number"}var Yy=class{constructor(t){this.find=t.find,this.handler=t.handler}},Qy=(t,e,n)=>{if(js(e))return[...t.matchAll(e)];let r=e(t,n);return r?r.map(o=>{let i=[o.text];return i.index=o.index,i.input=t,i.data=o.data,o.replaceWith&&(o.text.includes(o.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),i.push(o.replaceWith)),i}):[]};function Zy(t){let{editor:e,state:n,from:r,to:o,rule:i,pasteEvent:s,dropEvent:l}=t,{commands:a,chain:c,can:d}=new so({editor:e,state:n}),u=[];return n.doc.nodesBetween(r,o,(h,p)=>{var m,g,y,b,k;if((g=(m=h.type)==null?void 0:m.spec)!=null&&g.code||!(h.isText||h.isTextblock||h.isInline))return;let M=(k=(b=(y=h.content)==null?void 0:y.size)!=null?b:h.nodeSize)!=null?k:0,w=Math.max(r,p),S=Math.min(o,p+M);if(w>=S)return;let x=h.isText?h.text||"":h.textBetween(w-p,S-p,void 0,"\uFFFC");Qy(x,i.find,s).forEach(v=>{if(v.index===void 0)return;let E=w+v.index+1,$=E+v[0].length,V={from:n.tr.mapping.map(E),to:n.tr.mapping.map($)},J=i.handler({state:n,range:V,match:v,commands:a,chain:c,can:d,pasteEvent:s,dropEvent:l});u.push(J)})}),u.every(h=>h!==null)}var to=null,e0=t=>{var e;let n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(e=n.clipboardData)==null||e.setData("text/html",t),n};function t0(t){let{editor:e,rules:n}=t,r=null,o=!1,i=!1,s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,l;try{l=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{l=null}let a=({state:d,from:u,to:f,rule:h,pasteEvt:p})=>{let m=d.tr,g=io({state:d,transaction:m});if(!(!Zy({editor:e,state:g,from:Math.max(u-1,0),to:f.b-1,rule:h,pasteEvent:p,dropEvent:l})||!m.steps.length)){try{l=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{l=null}return s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,m}};return n.map(d=>new L({view(u){let f=p=>{var m;r=(m=u.dom.parentElement)!=null&&m.contains(p.target)?u.dom.parentElement:null,r&&(to=e)},h=()=>{to&&(to=null)};return window.addEventListener("dragstart",f),window.addEventListener("dragend",h),{destroy(){window.removeEventListener("dragstart",f),window.removeEventListener("dragend",h)}}},props:{handleDOMEvents:{drop:(u,f)=>{if(i=r===u.dom.parentElement,l=f,!i){let h=to;h?.isEditable&&setTimeout(()=>{let p=h.state.selection;p&&h.commands.deleteRange({from:p.from,to:p.to})},10)}return!1},paste:(u,f)=>{var h;let p=(h=f.clipboardData)==null?void 0:h.getData("text/html");return s=f,o=!!p?.includes("data-pm-slice"),!1}}},appendTransaction:(u,f,h)=>{let p=u[0],m=p.getMeta("uiEvent")==="paste"&&!o,g=p.getMeta("uiEvent")==="drop"&&!i,y=p.getMeta("applyPasteRules"),b=!!y;if(!m&&!g&&!b)return;if(b){let{text:w}=y;typeof w=="string"?w=w:w=Xs(C.from(w),h.schema);let{from:S}=y,x=S+w.length,A=e0(w);return a({rule:d,state:h,from:S,to:{b:x},pasteEvt:A})}let k=f.doc.content.findDiffStart(h.doc.content),M=f.doc.content.findDiffEnd(h.doc.content);if(!(!Xy(k)||!M||k===M.b))return a({rule:d,state:h,from:k,to:M,pasteEvt:s})}}))}var ho=class{constructor(t,e){this.splittableMarks=[],this.editor=e,this.baseExtensions=t,this.extensions=jd(t),this.schema=wy(this.extensions,e),this.setupExtensions()}get commands(){return this.extensions.reduce((t,e)=>{let n={name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:this.editor,type:Hs(e.name,this.schema)},r=B(e,"addCommands",n);return r?{...t,...r()}:t},{})}get plugins(){let{editor:t}=this;return Line truncated `,rules:n,plugin:r}):!1}},isInputRules:!0});return r}function Yy(t){return Object.prototype.toString.call(t).slice(8,-1)}function eo(t){return Yy(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function Yd(t,e){let n={...t};return eo(t)&&eo(e)&&Object.keys(e).forEach(r=>{eo(e[r])&&eo(t[r])?n[r]=Yd(t[r],e[r]):n[r]=e[r]}),n}var tl=class{constructor(t={}){this.type="extendable",this.parent=null,this.child=null,this.name="",this.config={name:this.name},this.config={...this.config,...t},this.name=this.config.name}get options(){return{...J(z(this,"addOptions",{name:this.name}))||{}}}get storage(){return{...J(z(this,"addStorage",{name:this.name,options:this.options}))||{}}}configure(t={}){let e=this.extend({...this.config,addOptions:()=>Yd(this.options,t)});return e.name=this.name,e.parent=this.parent,e}extend(t={}){let e=new this.constructor({...this.config,...t});return e.parent=this,this.child=e,e.name="name"in t?t.name:e.parent.name,e}},Z=class Qd extends tl{constructor(){super(...arguments),this.type="mark"}static create(e={}){let n=typeof e=="function"?e():e;return new Qd(n)}static handleExit({editor:e,mark:n}){let{tr:r}=e.state,o=e.state.selection.$from;if(o.pos===o.end()){let s=o.marks();if(!!!s.find(c=>c?.type.name===n.name))return!1;let a=s.find(c=>c?.type.name===n.name);return a&&r.removeStoredMark(a),r.insertText(" ",o.pos),e.view.dispatch(r),!0}return!1}configure(e){return super.configure(e)}extend(e){let n=typeof e=="function"?e():e;return super.extend(n)}};function Qy(t){return typeof t=="number"}var Zy=class{constructor(t){this.find=t.find,this.handler=t.handler}},e0=(t,e,n)=>{if(js(e))return[...t.matchAll(e)];let r=e(t,n);return r?r.map(o=>{let i=[o.text];return i.index=o.index,i.input=t,i.data=o.data,o.replaceWith&&(o.text.includes(o.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),i.push(o.replaceWith)),i}):[]};function t0(t){let{editor:e,state:n,from:r,to:o,rule:i,pasteEvent:s,dropEvent:l}=t,{commands:a,chain:c,can:d}=new so({editor:e,state:n}),u=[];return n.doc.nodesBetween(r,o,(h,p)=>{var m,g,y,b,k;if((g=(m=h.type)==null?void 0:m.spec)!=null&&g.code||!(h.isText||h.isTextblock||h.isInline))return;let v=(k=(b=(y=h.content)==null?void 0:y.size)!=null?b:h.nodeSize)!=null?k:0,x=Math.max(r,p),S=Math.min(o,p+v);if(x>=S)return;let w=h.isText?h.text||"":h.textBetween(x-p,S-p,void 0,"\uFFFC");e0(w,i.find,s).forEach(D=>{if(D.index===void 0)return;let M=x+D.index+1,B=M+D[0].length,F={from:n.tr.mapping.map(M),to:n.tr.mapping.map(B)},K=i.handler({state:n,range:F,match:D,commands:a,chain:c,can:d,pasteEvent:s,dropEvent:l});u.push(K)})}),u.every(h=>h!==null)}var to=null,n0=t=>{var e;let n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(e=n.clipboardData)==null||e.setData("text/html",t),n};function r0(t){let{editor:e,rules:n}=t,r=null,o=!1,i=!1,s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,l;try{l=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{l=null}let a=({state:d,from:u,to:f,rule:h,pasteEvt:p})=>{let m=d.tr,g=io({state:d,transaction:m});if(!(!t0({editor:e,state:g,from:Math.max(u-1,0),to:f.b-1,rule:h,pasteEvent:p,dropEvent:l})||!m.steps.length)){try{l=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{l=null}return s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,m}};return n.map(d=>new L({view(u){let f=p=>{var m;r=(m=u.dom.parentElement)!=null&&m.contains(p.target)?u.dom.parentElement:null,r&&(to=e)},h=()=>{to&&(to=null)};return window.addEventListener("dragstart",f),window.addEventListener("dragend",h),{destroy(){window.removeEventListener("dragstart",f),window.removeEventListener("dragend",h)}}},props:{handleDOMEvents:{drop:(u,f)=>{if(i=r===u.dom.parentElement,l=f,!i){let h=to;h?.isEditable&&setTimeout(()=>{let p=h.state.selection;p&&h.commands.deleteRange({from:p.from,to:p.to})},10)}return!1},paste:(u,f)=>{var h;let p=(h=f.clipboardData)==null?void 0:h.getData("text/html");return s=f,o=!!p?.includes("data-pm-slice"),!1}}},appendTransaction:(u,f,h)=>{let p=u[0],m=p.getMeta("uiEvent")==="paste"&&!o,g=p.getMeta("uiEvent")==="drop"&&!i,y=p.getMeta("applyPasteRules"),b=!!y;if(!m&&!g&&!b)return;if(b){let{text:x}=y;typeof x=="string"?x=x:x=Xs(C.from(x),h.schema);let{from:S}=y,w=S+x.length,N=n0(x);return a({rule:d,state:h,from:S,to:{b:w},pasteEvt:N})}let k=f.doc.content.findDiffStart(h.doc.content),v=f.doc.content.findDiffEnd(h.doc.content);if(!(!Qy(k)||!v||k===v.b))return a({rule:d,state:h,from:k,to:v,pasteEvt:s})}}))}var ho=class{constructor(t,e){this.splittableMarks=[],this.editor=e,this.baseExtensions=t,this.extensions=jd(t),this.schema=Sy(this.extensions,e),this.setupExtensions()}get commands(){return this.extensions.reduce((t,e)=>{let n={name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:this.editor,type:Hs(e.name,this.schema)},r=z(e,"addCommands",n);return r?{...t,...r()}:t},{})}get plugins(){let{editor:t}=this;return Line truncated
position: relative; position: relative;
} }
@@ -80,26 +80,26 @@ img.ProseMirror-separator {
.ProseMirror-focused .ProseMirror-gapcursor { .ProseMirror-focused .ProseMirror-gapcursor {
display: block; display: block;
}`;function i0(t,e,n){let r=document.querySelector(`style[data-tiptap-style${n?`-${n}`:""}]`);if(r!==null)return r;let o=document.createElement("style");return e&&o.setAttribute("nonce",e),o.setAttribute(`data-tiptap-style${n?`-${n}`:""}`,""),o.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(o),o}var du=class extends Uy{constructor(t={}){super(),this.css=null,this.editorView=null,this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.instanceId=Math.random().toString(36).slice(2,9),this.options={element:typeof document<"u"?document.createElement("div"):null,content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onMount:()=>null,onUnmount:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:r})=>{throw r},onPaste:()=>null,onDrop:()=>null,onDelete:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(t),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("mount",this.options.onMount),this.on("unmount",this.options.onUnmount),this.on("contentError",this.options.onContentError),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:r,slice:o,moved:i})=>this.options.onDrop(r,o,i)),this.on("paste",({event:r,slice:o})=>this.options.onPaste(r,o)),this.on("delete",this.options.onDelete);let e=this.createDoc(),n=zd(e,this.options.autofocus);this.editorState=Br.create({doc:e,schema:this.schema,selection:n||void 0}),this.options.element&&this.mount(this.options.element)}mount(t){if(typeof document>"u")throw new Error("[tiptap error]: The editor cannot be mounted because there is no 'document' defined in this environment.");this.createView(t),this.emit("mount",{editor:this}),this.css&&!document.head.contains(this.css)&&document.head.appendChild(this.css),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}unmount(){if(this.editorView){let t=this.editorView.dom;t?.editor&&delete t.editor,this.editorView.destroy()}if(this.editorView=null,this.isInitialized=!1,this.css)try{typeof this.css.remove=="function"?this.css.remove():this.css.parentNode&&this.css.parentNode.removeChild(this.css)}catch(t){console.warn("Failed to remove CSS element:",t)}this.css=null,this.emit("unmount",{editor:this})}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&typeof document<"u"&&(this.css=i0(o0,this.options.injectNonce))}setOptions(t={}){this.options={...this.options,...t},!(!this.editorView||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(t,e=!0){this.setOptions({editable:t}),e&&this.emit("update",{editor:this,transaction:this.state.tr,appendedTransactions:[]})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get view(){return this.editorView?this.editorView:new Proxy({state:this.editorState,updateState:t=>{this.editorState=t},dispatch:t=>{this.dispatchTransaction(t)},composing:!1,dragging:null,editable:!0,isDestroyed:!1},{get:(t,e)=>{if(this.editorView)return this.editorView[e];if(e==="state")return this.editorState;if(e in t)return Reflect.get(t,e);throw new Error(`[tiptap error]: The editor view is not available. Cannot access view['${e}']. The editor may not be mounted yet.`)}})}get state(){return this.editorView&&(this.editorState=this.view.state),this.editorState}registerPlugin(t,e){let n=Vd(e)?e(t,[...this.state.plugins]):[...this.state.plugins,t],r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}unregisterPlugin(t){if(this.isDestroyed)return;let e=this.state.plugins,n=e;if([].concat(t).forEach(o=>{let i=typeof o=="string"?`${o}$`:o.key;n=n.filter(s=>!s.key.startsWith(i))}),e.length===n.length)return;let r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}createExtensionManager(){var t,e;let r=[...this.options.enableCoreExtensions?[ou,eu.configure({blockSeparator:(e=(t=this.options.coreExtensionOptions)==null?void 0:t.clipboardTextSerializer)==null?void 0:e.blockSeparator}),tu,su,lu,cu,ru,au,nu].filter(o=>typeof this.options.enableCor Line truncated }`;function l0(t,e,n){let r=document.querySelector(`style[data-tiptap-style${n?`-${n}`:""}]`);if(r!==null)return r;let o=document.createElement("style");return e&&o.setAttribute("nonce",e),o.setAttribute(`data-tiptap-style${n?`-${n}`:""}`,""),o.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(o),o}var du=class extends Jy{constructor(t={}){super(),this.css=null,this.className="tiptap",this.editorView=null,this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.instanceId=Math.random().toString(36).slice(2,9),this.options={element:typeof document<"u"?document.createElement("div"):null,content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onMount:()=>null,onUnmount:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:r})=>{throw r},onPaste:()=>null,onDrop:()=>null,onDelete:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(t),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("mount",this.options.onMount),this.on("unmount",this.options.onUnmount),this.on("contentError",this.options.onContentError),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:r,slice:o,moved:i})=>this.options.onDrop(r,o,i)),this.on("paste",({event:r,slice:o})=>this.options.onPaste(r,o)),this.on("delete",this.options.onDelete);let e=this.createDoc(),n=Bd(e,this.options.autofocus);this.editorState=zr.create({doc:e,schema:this.schema,selection:n||void 0}),this.options.element&&this.mount(this.options.element)}mount(t){if(typeof document>"u")throw new Error("[tiptap error]: The editor cannot be mounted because there is no 'document' defined in this environment.");this.createView(t),this.emit("mount",{editor:this}),this.css&&!document.head.contains(this.css)&&document.head.appendChild(this.css),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}unmount(){if(this.editorView){let t=this.editorView.dom;t?.editor&&delete t.editor,this.editorView.destroy()}if(this.editorView=null,this.isInitialized=!1,this.css&&!document.querySelectorAll(`.${this.className}`).length)try{typeof this.css.remove=="function"?this.css.remove():this.css.parentNode&&this.css.parentNode.removeChild(this.css)}catch(t){console.warn("Failed to remove CSS element:",t)}this.css=null,this.emit("unmount",{editor:this})}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&typeof document<"u"&&(this.css=l0(s0,this.options.injectNonce))}setOptions(t={}){this.options={...this.options,...t},!(!this.editorView||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(t,e=!0){this.setOptions({editable:t}),e&&this.emit("update",{editor:this,transaction:this.state.tr,appendedTransactions:[]})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get view(){return this.editorView?this.editorView:new Proxy({state:this.editorState,updateState:t=>{this.editorState=t},dispatch:t=>{this.dispatchTransaction(t)},composing:!1,dragging:null,editable:!0,isDestroyed:!1},{get:(t,e)=>{if(this.editorView)return this.editorView[e];if(e==="state")return this.editorState;if(e in t)return Reflect.get(t,e);throw new Error(`[tiptap error]: The editor view is not available. Cannot access view['${e}']. The editor may not be mounted yet.`)}})}get state(){return this.editorView&&(this.editorState=this.view.state),this.editorState}registerPlugin(t,e){let n=Vd(e)?e(t,[...this.state.plugins]):[...this.state.plugins,t],r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}unregisterPlugin(t){if(this.isDestroyed)return;let e=this.state.plugins,n=e;if([].concat(t).forEach(o=>{let i=typeof o=="string"?`${o}$`:o.key;n=n.filter(s=>!s.key.startsWith(i))}),e.length===n.length)return;let r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}createExtensionManager(){var t,e;let r=[...this.options.enableCoreExtensions?[ou,eu.configure({blockSeparator:(e=(t=this.options.coreExtensionOptions)==null?void 0:t.clipboardTextSerializer)==null?void 0 Line truncated
`,textSerializers:n={}}=t||{};return Sy(this.state.doc,{blockSeparator:e,textSerializers:{...Ud(this.schema),...n}})}get isEmpty(){return nr(this.state.doc)}destroy(){this.emit("destroy"),this.unmount(),this.removeAllListeners()}get isDestroyed(){var t,e;return(e=(t=this.editorView)==null?void 0:t.isDestroyed)!=null?e:!0}$node(t,e){var n;return((n=this.$doc)==null?void 0:n.querySelector(t,e))||null}$nodes(t,e){var n;return((n=this.$doc)==null?void 0:n.querySelectorAll(t,e))||null}$pos(t){let e=this.state.doc.resolve(t);return new r0(e,this)}get $doc(){return this.$pos(0)}};function Le(t){return new fo({find:t.find,handler:({state:e,range:n,match:r})=>{let o=q(t.getAttributes,void 0,r);if(o===!1||o===null)return null;let{tr:i}=e,s=r[r.length-1],l=r[0];if(s){let a=l.search(/\S/),c=n.from+l.indexOf(s),d=c+s.length;if(co(n.from,n.to,e.doc).filter(h=>h.mark.type.excluded.find(m=>m===t.type&&m!==h.mark.type)).filter(h=>h.to>c).length)return null;d<n.to&&i.delete(d,n.to),c>n.from&&i.delete(n.from+a,c);let f=n.from+a+s.length;i.addMark(n.from+a,f,t.type.create(o||{})),i.removeStoredMark(t.type)}},undoable:t.undoable})}function po(t){return new fo({find:t.find,handler:({state:e,range:n,match:r})=>{let o=q(t.getAttributes,void 0,r)||{},{tr:i}=e,s=n.from,l=n.to,a=t.type.create(o);if(r[1]){let c=r[0].lastIndexOf(r[1]),d=s+c;d>l?d=l:l=d+r[1].length;let u=r[0][r[0].length-1];i.insertText(u,s+r[0].length-1),i.replaceWith(d,l,a)}else if(r[0]){let c=t.type.isInline?s:s-1;i.insert(c,t.type.create(o)).delete(i.mapping.map(s),i.mapping.map(l))}i.scrollIntoView()},undoable:t.undoable})}function rr(t){return new fo({find:t.find,handler:({state:e,range:n,match:r})=>{let o=e.doc.resolve(n.from),i=q(t.getAttributes,void 0,r)||{};if(!o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),t.type))return null;e.tr.delete(n.from,n.to).setBlockType(n.from,n.from,t.type,i)},undoable:t.undoable})}function Ye(t){return new fo({find:t.find,handler:({state:e,range:n,match:r,chain:o})=>{let i=q(t.getAttributes,void 0,r)||{},s=e.tr.delete(n.from,n.to),a=s.doc.resolve(n.from).blockRange(),c=a&&un(a,t.type,i);if(!c)return null;if(s.wrap(a,c),t.keepMarks&&t.editor){let{selection:u,storedMarks:f}=e,{splittableMarks:h}=t.editor.extensionManager,p=f||u.$to.parentOffset&&u.$from.marks();if(p){let m=p.filter(g=>h.includes(g.type.name));s.ensureMarks(m)}}if(t.keepAttributes){let u=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";o().updateAttributes(u,i).run()}let d=s.doc.resolve(n.from-1).nodeBefore;d&&d.type===t.type&&Ne(s.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(r,d))&&s.join(n.from-1)},undoable:t.undoable})}function uu(t,e){let{selection:n}=t,{$from:r}=n;if(n instanceof P){let i=r.index();return r.parent.canReplaceWith(i,i+1,e)}let o=r.depth;for(;o>=0;){let i=r.index(o);if(r.node(o).contentMatchAt(i).matchType(e))return!0;o-=1}return!1}function fu(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}var s0={};Ws(s0,{createAtomBlockMarkdownSpec:()=>l0,createBlockMarkdownSpec:()=>Xt,createInlineMarkdownSpec:()=>d0,parseAttributes:()=>nl,parseIndentedBlocks:()=>mo,renderNestedMarkdownContent:()=>or,serializeAttributes:()=>rl});function nl(t){if(!t?.trim())return{};let e={},n=[],r=t.replace(/["']([^"']*)["']/g,c=>(n.push(c),`__QUOTED_${n.length-1}__`)),o=r.match(/(?:^|\s)\.([a-zA-Z][\w-]*)/g);if(o){let c=o.map(d=>d.trim().slice(1));e.class=c.join(" ")}let i=r.match(/(?:^|\s)#([a-zA-Z][\w-]*)/);i&&(e.id=i[1]);let s=/([a-zA-Z][\w-]*)\s*=\s*(__QUOTED_\d+__)/g;Array.from(r.matchAll(s)).forEach(([,c,d])=>{var u;let f=parseInt(((u=d.match(/__QUOTED_(\d+)__/))==null?void 0:u[1])||"0",10),h=n[f];h&&(e[c]=h.slice(1,-1))});let a=r.replace(/(?:^|\s)\.([a-zA-Z][\w-]*)/g,"").replace(/(?:^|\s)#([a-zA-Z][\w-]*)/g,"").replace(/([a-zA-Z][\w-]*)\s*=\s*__QUOTED_\d+__/g,"").trim();return a&&a.split(/\s+/).filter(Boolean).forEach(d=>{d.match(/^[a-zA-Z][\w-]*$/)&&(e[d]=!0)}),e}function rl(t){if(!t||Object.keys(t).length===0)return"";let e=[];return t.class&&String(t.class).split(/\s+/).filter(Boolean).forEach(r=>e.push(`.${r}`)),t.id&&e.push(`#${t.id}`),Object.entries(t).forEach(([n,r])=>{n==="class"||n==="id"||(r===!0?e.push(n):r!==!1&&r!=null&&e.push(`${n}="${String(r)}"`))}),e.join(" ")}function l0(t){let{nodeName:e,name:n,parseAttributes:r=nl,serializeAttributes:o=rl,defaultAttributes:i={},requiredAttributes:s=[],allowedAttributes:l}=t,a=n||e,c=d=>{if(!l)return d;let u={};return l.forEach(f=>{f in d&&(u[f]=d[f])}),u};return{parseMarkdown:(d,u)=>{let f={...i,...d.attributes};return u.createNode(e,f,[])},markdownTokenizer:{name:e,level:"block",start(d){var u;let f=new RegExp(`^:::${a}(?:\\s|$)`,"m"),h=(u=d.match(f))==null?void 0:u.index;return h!==void 0?h:-1},tokenize(d,u,f){let h=new RegExp(`^:::${a}(?:\\s+\\{([^}]*)\\})?\\s*:::(?:\\n|$)`),p=d.match(h);if(!p)return;let m=p[1]||"",g=r(m);if(!s.find(b=>!(b in g)))return{type:e,raw:p[0],attributes:g}}},renderMarkdown:d=>{let u=c(d.attrs||{}),f=o(u),h=f?` {${f}}`:"";return`:::${a}${h} :Line truncated `,textSerializers:n={}}=t||{};return vy(this.state.doc,{blockSeparator:e,textSerializers:{...Ud(this.schema),...n}})}get isEmpty(){return nr(this.state.doc)}destroy(){this.emit("destroy"),this.unmount(),this.removeAllListeners()}get isDestroyed(){var t,e;return(e=(t=this.editorView)==null?void 0:t.isDestroyed)!=null?e:!0}$node(t,e){var n;return((n=this.$doc)==null?void 0:n.querySelector(t,e))||null}$nodes(t,e){var n;return((n=this.$doc)==null?void 0:n.querySelectorAll(t,e))||null}$pos(t){let e=this.state.doc.resolve(t);return new i0(e,this)}get $doc(){return this.$pos(0)}};function Le(t){return new fo({find:t.find,handler:({state:e,range:n,match:r})=>{let o=J(t.getAttributes,void 0,r);if(o===!1||o===null)return null;let{tr:i}=e,s=r[r.length-1],l=r[0];if(s){let a=l.search(/\S/),c=n.from+l.indexOf(s),d=c+s.length;if(co(n.from,n.to,e.doc).filter(h=>h.mark.type.excluded.find(m=>m===t.type&&m!==h.mark.type)).filter(h=>h.to>c).length)return null;d<n.to&&i.delete(d,n.to),c>n.from&&i.delete(n.from+a,c);let f=n.from+a+s.length;i.addMark(n.from+a,f,t.type.create(o||{})),i.removeStoredMark(t.type)}},undoable:t.undoable})}function po(t){return new fo({find:t.find,handler:({state:e,range:n,match:r})=>{let o=J(t.getAttributes,void 0,r)||{},{tr:i}=e,s=n.from,l=n.to,a=t.type.create(o);if(r[1]){let c=r[0].lastIndexOf(r[1]),d=s+c;d>l?d=l:l=d+r[1].length;let u=r[0][r[0].length-1];i.insertText(u,s+r[0].length-1),i.replaceWith(d,l,a)}else if(r[0]){let c=t.type.isInline?s:s-1;i.insert(c,t.type.create(o)).delete(i.mapping.map(s),i.mapping.map(l))}i.scrollIntoView()},undoable:t.undoable})}function rr(t){return new fo({find:t.find,handler:({state:e,range:n,match:r})=>{let o=e.doc.resolve(n.from),i=J(t.getAttributes,void 0,r)||{};if(!o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),t.type))return null;e.tr.delete(n.from,n.to).setBlockType(n.from,n.from,t.type,i)},undoable:t.undoable})}function Ye(t){return new fo({find:t.find,handler:({state:e,range:n,match:r,chain:o})=>{let i=J(t.getAttributes,void 0,r)||{},s=e.tr.delete(n.from,n.to),a=s.doc.resolve(n.from).blockRange(),c=a&&un(a,t.type,i);if(!c)return null;if(s.wrap(a,c),t.keepMarks&&t.editor){let{selection:u,storedMarks:f}=e,{splittableMarks:h}=t.editor.extensionManager,p=f||u.$to.parentOffset&&u.$from.marks();if(p){let m=p.filter(g=>h.includes(g.type.name));s.ensureMarks(m)}}if(t.keepAttributes){let u=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";o().updateAttributes(u,i).run()}let d=s.doc.resolve(n.from-1).nodeBefore;d&&d.type===t.type&&Oe(s.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(r,d))&&s.join(n.from-1)},undoable:t.undoable})}var a0=t=>"touches"in t,uu=class{constructor(t){this.directions=["bottom-left","bottom-right","top-left","top-right"],this.minSize={height:8,width:8},this.preserveAspectRatio=!1,this.classNames={container:"",wrapper:"",handle:"",resizing:""},this.initialWidth=0,this.initialHeight=0,this.aspectRatio=1,this.isResizing=!1,this.activeHandle=null,this.startX=0,this.startY=0,this.startWidth=0,this.startHeight=0,this.isShiftKeyPressed=!1,this.handleMouseMove=s=>{if(!this.isResizing||!this.activeHandle)return;let l=s.clientX-this.startX,a=s.clientY-this.startY;this.handleResize(l,a)},this.handleTouchMove=s=>{if(!this.isResizing||!this.activeHandle)return;let l=s.touches[0];if(!l)return;let a=l.clientX-this.startX,c=l.clientY-this.startY;this.handleResize(a,c)},this.handleMouseUp=()=>{if(!this.isResizing)return;let s=this.element.offsetWidth,l=this.element.offsetHeight;this.onCommit(s,l),this.isResizing=!1,this.activeHandle=null,this.container.dataset.resizeState="false",this.classNames.resizing&&this.container.classList.remove(this.classNames.resizing),document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)},this.handleKeyDown=s=>{s.key==="Shift"&&(this.isShiftKeyPressed=!0)},this.handleKeyUp=s=>{s.key==="Shift"&&(this.isShiftKeyPressed=!1)};var e,n,r,o,i;this.node=t.node,this.element=t.element,this.contentElement=t.contentElement,this.getPos=t.getPos,this.onResize=t.onResize,this.onCommit=t.onCommit,this.onUpdate=t.onUpdate,(e=t.options)!=null&&e.min&&(this.minSize={...this.minSize,...t.options.min}),(n=t.options)!=null&&n.max&&(this.maxSize=t.options.max),(r=t?.options)!=null&&r.directions&&(this.directions=t.options.directions),(o=t.options)!=null&&o.preserveAspectRatio&&(this.preserveAspectRatio=t.options.preserveAspectRatio),(i=t.options)!=null&&i.className&&(this.classNames={container:t.options.className.container||"",wrapper:t.options.className.wrapper||"",handle:t.options.className.handle||"",resizing:t.options.className.resizing||""}),this.wrapper=this.createWrapper(),this.container=this.createContainer(),this.applyInitialSize(),this.attachHandles()}get dom(){return this.container}get contentDOM(){return this.contentElement}updat Line truncated
`);return`:::${c}${m} `);return`:::${c}${m}
${g} ${g}
:::`}}}function a0(t){if(!t.trim())return{};let e={},n=/(\w+)=(?:"([^"]*)"|'([^']*)')/g,r=n.exec(t);for(;r!==null;){let[,o,i,s]=r;e[o]=i||s,r=n.exec(t)}return e}function c0(t){return Object.entries(t).filter(([,e])=>e!=null).map(([e,n])=>`${e}="${n}"`).join(" ")}function d0(t){let{nodeName:e,name:n,getContent:r,parseAttributes:o=a0,serializeAttributes:i=c0,defaultAttributes:s={},selfClosing:l=!1,allowedAttributes:a}=t,c=n||e,d=f=>{if(!a)return f;let h={};return a.forEach(p=>{p in f&&(h[p]=f[p])}),h},u=c.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return{parseMarkdown:(f,h)=>{let p={...s,...f.attributes};if(l)return h.createNode(e,p);let m=r?r(f):f.content||"";return m?h.createNode(e,p,[h.createTextNode(m)]):h.createNode(e,p,[])},markdownTokenizer:{name:e,level:"inline",start(f){let h=l?new RegExp(`\\[${u}\\s*[^\\]]*\\]`):new RegExp(`\\[${u}\\s*[^\\]]*\\][\\s\\S]*?\\[\\/${u}\\]`),p=f.match(h),m=p?.index;return m!==void 0?m:-1},tokenize(f,h,p){let m=l?new RegExp(`^\\[${u}\\s*([^\\]]*)\\]`):new RegExp(`^\\[${u}\\s*([^\\]]*)\\]([\\s\\S]*?)\\[\\/${u}\\]`),g=f.match(m);if(!g)return;let y="",b="";if(l){let[,M]=g;b=M}else{let[,M,w]=g;b=M,y=w||""}let k=o(b.trim());return{type:e,raw:g[0],content:y.trim(),attributes:k}}},renderMarkdown:f=>{let h="";r?h=r(f):f.content&&f.content.length>0&&(h=f.content.filter(y=>y.type==="text").map(y=>y.text).join(""));let p=d(f.attrs||{}),m=i(p),g=m?` ${m}`:"";return l?`[${c}${g}]`:`[${c}${g}]${h}[/${c}]`}}}function mo(t,e,n){var r,o,i,s;let l=t.split(` :::`}}}function u0(t){if(!t.trim())return{};let e={},n=/(\w+)=(?:"([^"]*)"|'([^']*)')/g,r=n.exec(t);for(;r!==null;){let[,o,i,s]=r;e[o]=i||s,r=n.exec(t)}return e}function f0(t){return Object.entries(t).filter(([,e])=>e!=null).map(([e,n])=>`${e}="${n}"`).join(" ")}function h0(t){let{nodeName:e,name:n,getContent:r,parseAttributes:o=u0,serializeAttributes:i=f0,defaultAttributes:s={},selfClosing:l=!1,allowedAttributes:a}=t,c=n||e,d=f=>{if(!a)return f;let h={};return a.forEach(p=>{p in f&&(h[p]=f[p])}),h},u=c.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return{parseMarkdown:(f,h)=>{let p={...s,...f.attributes};if(l)return h.createNode(e,p);let m=r?r(f):f.content||"";return m?h.createNode(e,p,[h.createTextNode(m)]):h.createNode(e,p,[])},markdownTokenizer:{name:e,level:"inline",start(f){let h=l?new RegExp(`\\[${u}\\s*[^\\]]*\\]`):new RegExp(`\\[${u}\\s*[^\\]]*\\][\\s\\S]*?\\[\\/${u}\\]`),p=f.match(h),m=p?.index;return m!==void 0?m:-1},tokenize(f,h,p){let m=l?new RegExp(`^\\[${u}\\s*([^\\]]*)\\]`):new RegExp(`^\\[${u}\\s*([^\\]]*)\\]([\\s\\S]*?)\\[\\/${u}\\]`),g=f.match(m);if(!g)return;let y="",b="";if(l){let[,v]=g;b=v}else{let[,v,x]=g;b=v,y=x||""}let k=o(b.trim());return{type:e,raw:g[0],content:y.trim(),attributes:k}}},renderMarkdown:f=>{let h="";r?h=r(f):f.content&&f.content.length>0&&(h=f.content.filter(y=>y.type==="text").map(y=>y.text).join(""));let p=d(f.attrs||{}),m=i(p),g=m?` ${m}`:"";return l?`[${c}${g}]`:`[${c}${g}]${h}[/${c}]`}}}function mo(t,e,n){var r,o,i,s;let l=t.split(`
`),a=[],c="",d=0,u=e.baseIndentSize||2;for(;d<l.length;){let f=l[d],h=f.match(e.itemPattern);if(!h){if(a.length>0)break;if(f.trim()===""){d+=1;continue}else return}let p=e.extractItemData(h),{indentLevel:m,mainContent:g}=p;c=`${c}${f} `),a=[],c="",d=0,u=e.baseIndentSize||2;for(;d<l.length;){let f=l[d],h=f.match(e.itemPattern);if(!h){if(a.length>0)break;if(f.trim()===""){d+=1;continue}else return}let p=e.extractItemData(h),{indentLevel:m,mainContent:g}=p;c=`${c}${f}
`;let y=[g];for(d+=1;d<l.length;){let w=l[d];if(w.trim()===""){let x=l.slice(d+1).findIndex(E=>E.trim()!=="");if(x===-1)break;if((((o=(r=l[d+1+x].match(/^(\s*)/))==null?void 0:r[1])==null?void 0:o.length)||0)>m){y.push(w),c=`${c}${w} `;let y=[g];for(d+=1;d<l.length;){let x=l[d];if(x.trim()===""){let w=l.slice(d+1).findIndex(M=>M.trim()!=="");if(w===-1)break;if((((o=(r=l[d+1+w].match(/^(\s*)/))==null?void 0:r[1])==null?void 0:o.length)||0)>m){y.push(x),c=`${c}${x}
`,d+=1;continue}else break}if((((s=(i=w.match(/^(\s*)/))==null?void 0:i[1])==null?void 0:s.length)||0)>m)y.push(w),c=`${c}${w} `,d+=1;continue}else break}if((((s=(i=x.match(/^(\s*)/))==null?void 0:i[1])==null?void 0:s.length)||0)>m)y.push(x),c=`${c}${x}
`,d+=1;else break}let b,k=y.slice(1);if(k.length>0){let w=k.map(S=>S.slice(m+u)).join(` `,d+=1;else break}let b,k=y.slice(1);if(k.length>0){let x=k.map(S=>S.slice(m+u)).join(`
`);w.trim()&&(e.customNestedParser?b=e.customNestedParser(w):b=n.blockTokens(w))}let M=e.createToken(p,b);a.push(M)}if(a.length!==0)return{items:a,raw:c.trim()}}function or(t,e,n,r){if(!t||!Array.isArray(t.content))return"";let o=typeof n=="function"?n(r):n,[i,...s]=t.content,l=e.renderChildren([i]),a=[`${o}${l}`];return s&&s.length>0&&s.forEach(c=>{let d=e.renderChildren([c]);if(d){let u=d.split(` `);x.trim()&&(e.customNestedParser?b=e.customNestedParser(x):b=n.blockTokens(x))}let v=e.createToken(p,b);a.push(v)}if(a.length!==0)return{items:a,raw:c.trim()}}function or(t,e,n,r){if(!t||!Array.isArray(t.content))return"";let o=typeof n=="function"?n(r):n,[i,...s]=t.content,l=e.renderChildren([i]),a=[`${o}${l}`];return s&&s.length>0&&s.forEach(c=>{let d=e.renderChildren([c]);if(d){let u=d.split(`
`).map(f=>f?e.indent(f):"").join(` `).map(f=>f?e.indent(f):"").join(`
`);a.push(u)}}),a.join(` `);a.push(u)}}),a.join(`
`)}function u0(t,e,n={}){let{state:r}=e,{doc:o,tr:i}=r,s=t;o.descendants((l,a)=>{let c=i.mapping.map(a),d=i.mapping.map(a)+l.nodeSize,u=null;if(l.marks.forEach(h=>{if(h!==s)return!1;u=h}),!u)return;let f=!1;if(Object.keys(n).forEach(h=>{n[h]!==u.attrs[h]&&(f=!0)}),f){let h=t.type.create({...t.attrs,...n});i.removeMark(c,d,t.type),i.addMark(c,d,h)}}),i.docChanged&&e.view.dispatch(i)}var H=class hu extends tl{constructor(){super(...arguments),this.type="node"}static create(e={}){let n=typeof e=="function"?e():e;return new hu(n)}configure(e){return super.configure(e)}extend(e){let n=typeof e=="function"?e():e;return super.extend(n)}};function Ce(t){return new Yy({find:t.find,handler:({state:e,range:n,match:r,pasteEvent:o})=>{let i=q(t.getAttributes,void 0,r,o);if(i===!1||i===null)return null;let{tr:s}=e,l=r[r.length-1],a=r[0],c=n.to;if(l){let d=a.search(/\S/),u=n.from+a.indexOf(l),f=u+l.length;if(co(n.from,n.to,e.doc).filter(p=>p.mark.type.excluded.find(g=>g===t.type&&g!==p.mark.type)).filter(p=>p.to>u).length)return null;f<n.to&&s.delete(f,n.to),u>n.from&&s.delete(n.from+d,u),c=n.from+d+l.length,s.addMark(n.from+d,c,t.type.create(i||{})),s.removeStoredMark(t.type)}}})}function pu(t={}){return new L({view(e){return new ol(e,t)}})}var ol=class{constructor(e,n){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(o=>{let i=s=>{this[o](s)};return e.dom.addEventListener(o,i),{name:o,handler:i}})}destroy(){this.handlers.forEach(({name:e,handler:n})=>this.editorView.dom.removeEventListener(e,n))}update(e,n){this.cursorPos!=null&&n.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),n=!e.parent.inlineContent,r,o=this.editorView.dom,i=o.getBoundingClientRect(),s=i.width/o.offsetWidth,l=i.height/o.offsetHeight;if(n){let u=e.nodeBefore,f=e.nodeAfter;if(u||f){let h=this.editorView.nodeDOM(this.cursorPos-(u?u.nodeSize:0));if(h){let p=h.getBoundingClientRect(),m=u?p.bottom:p.top;u&&f&&(m=(m+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let g=this.width/2*l;r={left:p.left,right:p.right,top:m-g,bottom:m+g}}}}if(!r){let u=this.editorView.coordsAtPos(this.cursorPos),f=this.width/2*s;r={left:u.left-f,right:u.left+f,top:u.top,bottom:u.bottom}}let a=this.editorView.dom.offsetParent;this.element||(this.element=a.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let c,d;if(!a||a==document.body&&getComputedStyle(a).position=="static")c=-pageXOffset,d=-pageYOffset;else{let u=a.getBoundingClientRect(),f=u.width/a.offsetWidth,h=u.height/a.offsetHeight;c=u.left-a.scrollLeft*f,d=u.top-a.scrollTop*h}this.element.style.left=(r.left-c)/s+"px",this.element.style.top=(r.top-d)/l+"px",this.element.style.width=(r.right-r.left)/s+"px",this.element.style.height=(r.bottom-r.top)/l+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),o=r&&r.type.spec.disableDropCursor,i=typeof o=="function"?o(this.editorView,n,e):o;if(n&&!i){let s=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let l=Ir(this.editorView.state.doc,s,this.editorView.dragging.slice);l!=null&&(s=l)}this.setCursor(s),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}};var se=class t extends D{constructor(e){super(e,e)}map(e,n){let r=e.resolve(n.map(this.head));return t.valid(r)?new t(r):D.near(r)}content(){return O.empty}eq(e){return e instanceof t&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new t(e.resolve(n.pos))}getBookmark(){return new il(this.anchor)}static valid(e){let n=e.parent;if(n.isTextblock||!f0(e)||!h0(e))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let o=n.contentMatchAt(e.index()).defaultType;return o&&o.isTextblock}static findGapCursorFrom(e,n,r=!1){e:for(;;){if(!r&&t.valid(e))return e;let o=e.pos,i=null;for(let s=e.depth;;s--){let l=e.node(s);if(n>0?e.indexAft Line truncated `)}function p0(t,e,n={}){let{state:r}=e,{doc:o,tr:i}=r,s=t;o.descendants((l,a)=>{let c=i.mapping.map(a),d=i.mapping.map(a)+l.nodeSize,u=null;if(l.marks.forEach(h=>{if(h!==s)return!1;u=h}),!u)return;let f=!1;if(Object.keys(n).forEach(h=>{n[h]!==u.attrs[h]&&(f=!0)}),f){let h=t.type.create({...t.attrs,...n});i.removeMark(c,d,t.type),i.addMark(c,d,h)}}),i.docChanged&&e.view.dispatch(i)}var $=class pu extends tl{constructor(){super(...arguments),this.type="node"}static create(e={}){let n=typeof e=="function"?e():e;return new pu(n)}configure(e){return super.configure(e)}extend(e){let n=typeof e=="function"?e():e;return super.extend(n)}};function Ce(t){return new Zy({find:t.find,handler:({state:e,range:n,match:r,pasteEvent:o})=>{let i=J(t.getAttributes,void 0,r,o);if(i===!1||i===null)return null;let{tr:s}=e,l=r[r.length-1],a=r[0],c=n.to;if(l){let d=a.search(/\S/),u=n.from+a.indexOf(l),f=u+l.length;if(co(n.from,n.to,e.doc).filter(p=>p.mark.type.excluded.find(g=>g===t.type&&g!==p.mark.type)).filter(p=>p.to>u).length)return null;f<n.to&&s.delete(f,n.to),u>n.from&&s.delete(n.from+d,u),c=n.from+d+l.length,s.addMark(n.from+d,c,t.type.create(i||{})),s.removeStoredMark(t.type)}}})}function mu(t={}){return new L({view(e){return new ol(e,t)}})}var ol=class{constructor(e,n){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(o=>{let i=s=>{this[o](s)};return e.dom.addEventListener(o,i),{name:o,handler:i}})}destroy(){this.handlers.forEach(({name:e,handler:n})=>this.editorView.dom.removeEventListener(e,n))}update(e,n){this.cursorPos!=null&&n.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),n=!e.parent.inlineContent,r,o=this.editorView.dom,i=o.getBoundingClientRect(),s=i.width/o.offsetWidth,l=i.height/o.offsetHeight;if(n){let u=e.nodeBefore,f=e.nodeAfter;if(u||f){let h=this.editorView.nodeDOM(this.cursorPos-(u?u.nodeSize:0));if(h){let p=h.getBoundingClientRect(),m=u?p.bottom:p.top;u&&f&&(m=(m+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let g=this.width/2*l;r={left:p.left,right:p.right,top:m-g,bottom:m+g}}}}if(!r){let u=this.editorView.coordsAtPos(this.cursorPos),f=this.width/2*s;r={left:u.left-f,right:u.left+f,top:u.top,bottom:u.bottom}}let a=this.editorView.dom.offsetParent;this.element||(this.element=a.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let c,d;if(!a||a==document.body&&getComputedStyle(a).position=="static")c=-pageXOffset,d=-pageYOffset;else{let u=a.getBoundingClientRect(),f=u.width/a.offsetWidth,h=u.height/a.offsetHeight;c=u.left-a.scrollLeft*f,d=u.top-a.scrollTop*h}this.element.style.left=(r.left-c)/s+"px",this.element.style.top=(r.top-d)/l+"px",this.element.style.width=(r.right-r.left)/s+"px",this.element.style.height=(r.bottom-r.top)/l+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),o=r&&r.type.spec.disableDropCursor,i=typeof o=="function"?o(this.editorView,n,e):o;if(n&&!i){let s=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let l=Ir(this.editorView.state.doc,s,this.editorView.dragging.slice);l!=null&&(s=l)}this.setCursor(s),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}};var se=class t extends I{constructor(e){super(e,e)}map(e,n){let r=e.resolve(n.map(this.head));return t.valid(r)?new t(r):I.near(r)}content(){return E.empty}eq(e){return e instanceof t&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new t(e.resolve(n.pos))}getBookmark(){return new il(this.anchor)}static valid(e){let n=e.parent;if(n.isTextblock||!m0(e)||!g0(e))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let o=n.contentMatchAt(e.index()).defaultType;return o&&o.isTextblock}static findGapCursorFrom(e,n,r=!1){e:for(;;){if(!r&&t.valid(e))return e;let o=e.pos,i=null;for(let s=e.depth;;s--){let l=e.node(s);if(n>0?e.indexAft Line truncated
`).map(l=>`> ${l}`).join(` `).map(l=>`> ${l}`).join(`
`);n.push(s)}),n.flatMap(o=>[o,"> "]).slice(0,-1).join(` `);n.push(s)}),n.flatMap(o=>[o,"> "]).slice(0,-1).join(`
`)},addCommands(){return{setBlockquote:()=>({commands:t})=>t.wrapIn(this.name),toggleBlockquote:()=>({commands:t})=>t.toggleWrap(this.name),unsetBlockquote:()=>({commands:t})=>t.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[Ye({find:T0,type:this.type})]}}),Mu=A0;var E0=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,O0=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,N0=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,R0=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,D0=Z.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:t=>t.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:t=>t.type.name===this.name},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}]},renderHTML({HTMLAttributes:t}){return Mn("strong",{...N(this.options.HTMLAttributes,t),children:Mn("slot",{})})},markdownTokenName:"strong",parseMarkdown:(t,e)=>e.applyMark("bold",e.parseInline(t.tokens||[])),renderMarkdown:(t,e)=>`**${e.renderChildren(t)}**`,addCommands(){return{setBold:()=>({commands:t})=>t.setMark(this.name),toggleBold:()=>({commands:t})=>t.toggleMark(this.name),unsetBold:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[Le({find:E0,type:this.type}),Le({find:N0,type:this.type})]},addPasteRules(){return[Ce({find:O0,type:this.type}),Ce({find:R0,type:this.type})]}}),vu=D0;var I0=/(^|[^`])`([^`]+)`(?!`)$/,P0=/(^|[^`])`([^`]+)`(?!`)/g,L0=Z.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:t}){return["code",N(this.options.HTMLAttributes,t),0]},markdownTokenName:"codespan",parseMarkdown:(t,e)=>e.applyMark("code",[{type:"text",text:t.text||""}]),renderMarkdown:(t,e)=>t.content?`\`${e.renderChildren(t.content)}\``:"",addCommands(){return{setCode:()=>({commands:t})=>t.setMark(this.name),toggleCode:()=>({commands:t})=>t.toggleMark(this.name),unsetCode:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[Le({find:I0,type:this.type})]},addPasteRules(){return[Ce({find:P0,type:this.type})]}}),Tu=L0;var fl=4,B0=/^```([a-z]+)?[\s\n]$/,z0=/^~~~([a-z]+)?[\s\n]$/,H0=H.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:fl,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:t=>{var e;let{languageClassPrefix:n}=this.options;if(!n)return null;let i=[...((e=t.firstElementChild)==null?void 0:e.classList)||[]].filter(s=>s.startsWith(n)).map(s=>s.replace(n,""))[0];return i||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:t,HTMLAttributes:e}){return["pre",N(this.options.HTMLAttributes,e),["code",{class:t.attrs.language?this.options.languageClassPrefix+t.attrs.language:null},0]]},markdownTokenName:"code",parseMarkdown:(t,e)=>{var n;return((n=t.raw)==null?void 0:n.startsWith("```"))===!1&&t.codeBlockStyle!=="indented"?[]:e.createNode("codeBlock",{language:t.lang||null},t.text?[e.createTextNode(t.text)]:[])},renderMarkdown:(t,e)=>{var n;let r="",o=((n=t.attrs)==null?void 0:n.language)||"";return t.content?r=[`\`\`\`${o}`,e.renderChildren(t.content),"```"].join(` `)},addCommands(){return{setBlockquote:()=>({commands:t})=>t.wrapIn(this.name),toggleBlockquote:()=>({commands:t})=>t.toggleWrap(this.name),unsetBlockquote:()=>({commands:t})=>t.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[Ye({find:N0,type:this.type})]}}),Tu=O0;var R0=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,D0=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,I0=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,P0=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,L0=Z.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:t=>t.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:t=>t.type.name===this.name},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}]},renderHTML({HTMLAttributes:t}){return vn("strong",{...O(this.options.HTMLAttributes,t),children:vn("slot",{})})},markdownTokenName:"strong",parseMarkdown:(t,e)=>e.applyMark("bold",e.parseInline(t.tokens||[])),renderMarkdown:(t,e)=>`**${e.renderChildren(t)}**`,addCommands(){return{setBold:()=>({commands:t})=>t.setMark(this.name),toggleBold:()=>({commands:t})=>t.toggleMark(this.name),unsetBold:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[Le({find:R0,type:this.type}),Le({find:I0,type:this.type})]},addPasteRules(){return[Ce({find:D0,type:this.type}),Ce({find:P0,type:this.type})]}}),Au=L0;var z0=/(^|[^`])`([^`]+)`(?!`)$/,B0=/(^|[^`])`([^`]+)`(?!`)/g,H0=Z.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:t}){return["code",O(this.options.HTMLAttributes,t),0]},markdownTokenName:"codespan",parseMarkdown:(t,e)=>e.applyMark("code",[{type:"text",text:t.text||""}]),renderMarkdown:(t,e)=>t.content?`\`${e.renderChildren(t.content)}\``:"",addCommands(){return{setCode:()=>({commands:t})=>t.setMark(this.name),toggleCode:()=>({commands:t})=>t.toggleMark(this.name),unsetCode:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[Le({find:z0,type:this.type})]},addPasteRules(){return[Ce({find:B0,type:this.type})]}}),Eu=H0;var fl=4,$0=/^```([a-z]+)?[\s\n]$/,F0=/^~~~([a-z]+)?[\s\n]$/,_0=$.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:fl,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:t=>{var e;let{languageClassPrefix:n}=this.options;if(!n)return null;let i=[...((e=t.firstElementChild)==null?void 0:e.classList)||[]].filter(s=>s.startsWith(n)).map(s=>s.replace(n,""))[0];return i||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:t,HTMLAttributes:e}){return["pre",O(this.options.HTMLAttributes,e),["code",{class:t.attrs.language?this.options.languageClassPrefix+t.attrs.language:null},0]]},markdownTokenName:"code",parseMarkdown:(t,e)=>{var n;return((n=t.raw)==null?void 0:n.startsWith("```"))===!1&&t.codeBlockStyle!=="indented"?[]:e.createNode("codeBlock",{language:t.lang||null},t.text?[e.createTextNode(t.text)]:[])},renderMarkdown:(t,e)=>{var n;let r="",o=((n=t.attrs)==null?void 0:n.language)||"";return t.content?r=[`\`\`\`${o}`,e.renderChildren(t.content),"```"].join(`
`):r=`\`\`\`${o} `):r=`\`\`\`${o}
\`\`\``,r},addCommands(){return{setCodeBlock:t=>({commands:e})=>e.setNode(this.name,t),toggleCodeBlock:t=>({commands:e})=>e.toggleNode(this.name,"paragraph",t)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{let{empty:t,$anchor:e}=this.editor.state.selection,n=e.pos===1;return!t||e.parent.type.name!==this.name?!1:n||!e.parent.textContent.length?this.editor.commands.clearNodes():!1},Tab:({editor:t})=>{var e;if(!this.options.enableTabIndentation)return!1;let n=(e=this.options.tabSize)!=null?e:fl,{state:r}=t,{selection:o}=r,{$from:i,empty:s}=o;if(i.parent.type!==this.type)return!1;let l=" ".repeat(n);return s?t.commands.insertContent(l):t.commands.command(({tr:a})=>{let{from:c,to:d}=o,h=r.doc.textBetween(c,d,` \`\`\``,r},addCommands(){return{setCodeBlock:t=>({commands:e})=>e.setNode(this.name,t),toggleCodeBlock:t=>({commands:e})=>e.toggleNode(this.name,"paragraph",t)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{let{empty:t,$anchor:e}=this.editor.state.selection,n=e.pos===1;return!t||e.parent.type.name!==this.name?!1:n||!e.parent.textContent.length?this.editor.commands.clearNodes():!1},Tab:({editor:t})=>{var e;if(!this.options.enableTabIndentation)return!1;let n=(e=this.options.tabSize)!=null?e:fl,{state:r}=t,{selection:o}=r,{$from:i,empty:s}=o;if(i.parent.type!==this.type)return!1;let l=" ".repeat(n);return s?t.commands.insertContent(l):t.commands.command(({tr:a})=>{let{from:c,to:d}=o,h=r.doc.textBetween(c,d,`
@@ -109,34 +109,34 @@ ${g}
`);return a.replaceWith(c,d,r.schema.text(h)),!0})},"Shift-Tab":({editor:t})=>{var e;if(!this.options.enableTabIndentation)return!1;let n=(e=this.options.tabSize)!=null?e:fl,{state:r}=t,{selection:o}=r,{$from:i,empty:s}=o;return i.parent.type!==this.type?!1:s?t.commands.command(({tr:l})=>{var a;let{pos:c}=i,d=i.start(),u=i.end(),h=r.doc.textBetween(d,u,` `);return a.replaceWith(c,d,r.schema.text(h)),!0})},"Shift-Tab":({editor:t})=>{var e;if(!this.options.enableTabIndentation)return!1;let n=(e=this.options.tabSize)!=null?e:fl,{state:r}=t,{selection:o}=r,{$from:i,empty:s}=o;return i.parent.type!==this.type?!1:s?t.commands.command(({tr:l})=>{var a;let{pos:c}=i,d=i.start(),u=i.end(),h=r.doc.textBetween(d,u,`
`,` `,`
`).split(` `).split(`
`),p=0,m=0,g=c-d;for(let S=0;S<h.length;S+=1){if(m+h[S].length>=g){p=S;break}m+=h[S].length+1}let b=((a=h[p].match(/^ */))==null?void 0:a[0])||"",k=Math.min(b.length,n);if(k===0)return!0;let M=d;for(let S=0;S<p;S+=1)M+=h[S].length+1;return l.delete(M,M+k),c-M<=k&&l.setSelection(R.create(l.doc,M)),!0}):t.commands.command(({tr:l})=>{let{from:a,to:c}=o,f=r.doc.textBetween(a,c,` `),p=0,m=0,g=c-d;for(let S=0;S<h.length;S+=1){if(m+h[S].length>=g){p=S;break}m+=h[S].length+1}let b=((a=h[p].match(/^ */))==null?void 0:a[0])||"",k=Math.min(b.length,n);if(k===0)return!0;let v=d;for(let S=0;S<p;S+=1)v+=h[S].length+1;return l.delete(v,v+k),c-v<=k&&l.setSelection(R.create(l.doc,v)),!0}):t.commands.command(({tr:l})=>{let{from:a,to:c}=o,f=r.doc.textBetween(a,c,`
`,` `,`
`).split(` `).split(`
`).map(h=>{var p;let m=((p=h.match(/^ */))==null?void 0:p[0])||"",g=Math.min(m.length,n);return h.slice(g)}).join(` `).map(h=>{var p;let m=((p=h.match(/^ */))==null?void 0:p[0])||"",g=Math.min(m.length,n);return h.slice(g)}).join(`
`);return l.replaceWith(a,c,r.schema.text(f)),!0})},Enter:({editor:t})=>{if(!this.options.exitOnTripleEnter)return!1;let{state:e}=t,{selection:n}=e,{$from:r,empty:o}=n;if(!o||r.parent.type!==this.type)return!1;let i=r.parentOffset===r.parent.nodeSize-2,s=r.parent.textContent.endsWith(` `);return l.replaceWith(a,c,r.schema.text(f)),!0})},Enter:({editor:t})=>{if(!this.options.exitOnTripleEnter)return!1;let{state:e}=t,{selection:n}=e,{$from:r,empty:o}=n;if(!o||r.parent.type!==this.type)return!1;let i=r.parentOffset===r.parent.nodeSize-2,s=r.parent.textContent.endsWith(`
`);return!i||!s?!1:t.chain().command(({tr:l})=>(l.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:t})=>{if(!this.options.exitOnArrowDown)return!1;let{state:e}=t,{selection:n,doc:r}=e,{$from:o,empty:i}=n;if(!i||o.parent.type!==this.type||!(o.parentOffset===o.parent.nodeSize-2))return!1;let l=o.after();return l===void 0?!1:r.nodeAt(l)?t.commands.command(({tr:c})=>(c.setSelection(D.near(r.resolve(l))),!0)):t.commands.exitCode()}}},addInputRules(){return[rr({find:B0,type:this.type,getAttributes:t=>({language:t[1]})}),rr({find:z0,type:this.type,getAttributes:t=>({language:t[1]})})]},addProseMirrorPlugins(){return[new L({key:new z("codeBlockVSCodeHandler"),props:{handlePaste:(t,e)=>{if(!e.clipboardData||this.editor.isActive(this.type.name))return!1;let n=e.clipboardData.getData("text/plain"),r=e.clipboardData.getData("vscode-editor-data"),o=r?JSON.parse(r):void 0,i=o?.mode;if(!n||!i)return!1;let{tr:s,schema:l}=t.state,a=l.text(n.replace(/\r\n?/g,` `);return!i||!s?!1:t.chain().command(({tr:l})=>(l.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:t})=>{if(!this.options.exitOnArrowDown)return!1;let{state:e}=t,{selection:n,doc:r}=e,{$from:o,empty:i}=n;if(!i||o.parent.type!==this.type||!(o.parentOffset===o.parent.nodeSize-2))return!1;let l=o.after();return l===void 0?!1:r.nodeAt(l)?t.commands.command(({tr:c})=>(c.setSelection(I.near(r.resolve(l))),!0)):t.commands.exitCode()}}},addInputRules(){return[rr({find:$0,type:this.type,getAttributes:t=>({language:t[1]})}),rr({find:F0,type:this.type,getAttributes:t=>({language:t[1]})})]},addProseMirrorPlugins(){return[new L({key:new H("codeBlockVSCodeHandler"),props:{handlePaste:(t,e)=>{if(!e.clipboardData||this.editor.isActive(this.type.name))return!1;let n=e.clipboardData.getData("text/plain"),r=e.clipboardData.getData("vscode-editor-data"),o=r?JSON.parse(r):void 0,i=o?.mode;if(!n||!i)return!1;let{tr:s,schema:l}=t.state,a=l.text(n.replace(/\r\n?/g,`
`));return s.replaceSelectionWith(this.type.create({language:i},a)),s.selection.$from.parent.type!==this.type&&s.setSelection(R.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.setMeta("paste",!0),t.dispatch(s),!0}}})]}}),Au=H0;var Eu=H.create({name:"customBlock",group:"block",atom:!0,defining:!0,draggable:!0,selectable:!0,isolating:!0,allowGapCursor:!0,inline:!1,addNodeView(){return({editor:t,node:e,getPos:n,HTMLAttributes:r,decorations:o,extension:i})=>{let s=document.createElement("div");s.setAttribute("data-config",e.attrs.config),s.setAttribute("data-id",e.attrs.id),s.setAttribute("data-type","customBlock");let l=document.createElement("div");if(l.className="fi-fo-rich-editor-custom-block-header fi-not-prose",s.appendChild(l),t.isEditable&&typeof e.attrs.config=="object"&&e.attrs.config!==null&&Object.keys(e.attrs.config).length>0){let c=document.createElement("div");c.className="fi-fo-rich-editor-custom-block-edit-btn-ctn",l.appendChild(c);let d=document.createElement("button");d.className="fi-icon-btn",d.type="button",d.innerHTML=i.options.editCustomBlockButtonIconHtml,d.addEventListener("click",()=>i.options.editCustomBlockUsing(e.attrs.id,e.attrs.config)),c.appendChild(d)}let a=document.createElement("p");if(a.className="fi-fo-rich-editor-custom-block-heading",a.textContent=e.attrs.label,l.appendChild(a),t.isEditable){let c=document.createElement("div");c.className="fi-fo-rich-editor-custom-block-delete-btn-ctn",l.appendChild(c);let d=document.createElement("button");d.className="fi-icon-btn",d.type="button",d.innerHTML=i.options.deleteCustomBlockButtonIconHtml,d.addEventListener("click",()=>t.chain().setNodeSelection(n()).deleteSelection().run()),c.appendChild(d)}if(e.attrs.preview){let c=document.createElement("div");c.className="fi-fo-rich-editor-custom-block-preview fi-not-prose",c.innerHTML=new TextDecoder().decode(Uint8Array.from(atob(e.attrs.preview),d=>d.charCodeAt(0))),s.appendChild(c)}return{dom:s}}},addOptions(){return{deleteCustomBlockButtonIconHtml:null,editCustomBlockButtonIconHtml:null,editCustomBlockUsing:()=>{},insertCustomBlockUsing:()=>{}}},addAttributes(){return{config:{default:null,parseHTML:t=>JSON.parse(t.getAttribute("data-config"))},id:{default:null,parseHTML:t=>t.getAttribute("data-id"),renderHTML:t=>t.id?{"data-id":t.id}:{}},label:{default:null,parseHTML:t=>t.getAttribute("data-label"),rendered:!1},preview:{default:null,parseHTML:t=>t.getAttribute("data-preview"),rendered:!1}}},parseHTML(){return[{tag:`div[data-type="${this.name}"]`}]},renderHTML({HTMLAttributes:t}){return["div",N(t)]},addKeyboardShortcuts(){return{Backspace:()=>this.editor.commands.command(({tr:t,state:e})=>{let n=!1,{selection:r}=e,{empty:o,anchor:i}=r;if(!o)return!1;let s=new le,l=0;return e.doc.nodesBetween(i-1,i,(a,c)=>{if(a.type.name===this.name)return n=!0,s=a,l=c,!1}),n})}},addProseMirrorPlugins(){let{insertCustomBlockUsing:t}=this.options;return[new L({props:{handleDrop(e,n){if(!n||(n.preventDefault(),!n.dataTransfer.getData("customBlock")))return!1;let r=n.dataTransfer.getData("customBlock");return t(r,e.posAtCoords({left:n.clientX,top:n.clientY}).pos),!1}}})]}});var wo=(t,e)=>e.view.domAtPos(t).node.offsetParent!==null,$0=(t,e,n)=>{for(let r=t.depth;r>0;r-=1){let o=t.node(r),i=e(o),s=wo(t.start(r),n);if(i&&s)return{pos:r>0?t.before(r):0,start:t.start(r),depth:r,node:o}}},Ou=(t,e)=>{let{state:n,view:r,extensionManager:o}=t,{schema:i,selection:s}=n,{empty:l,$anchor:a}=s,c=!!o.extensions.find(y=>y.name==="gapCursor");if(!l||a.parent.type!==i.nodes.detailsSummary||!c||e==="right"&&a.parentOffset!==a.parent.nodeSize-2)return!1;let d=Xe(y=>y.type===i.nodes.details)(s);if(!d)return!1;let u=Cn(d.node,y=>y.type===i.nodes.detailsContent);if(!u.length||wo(d.start+u[0].pos+1,t))return!1;let h=n.doc.resolve(d.pos+d.node.nodeSize),p=se.findFrom(h,1,!1);if(!p)return!1;let{tr:m}=n,g=new se(p);return m.setSelection(g),m.scrollIntoView(),r.dispatch(m),!0},Nu=H.create({name:"details",content:"detailsSummary detailsContent",group:"block",defining:!0,isolating:!0,allowGapCursor:!1,addOptions(){return{persist:!1,openClassName:"is-open",HTMLAttributes:{}}},addAttributes(){return this.options.persist?{open:{default:!1,parseHTML:t=>t.hasAttribute("open"),renderHTML:({open:t})=>t?{open:""}:{}}}:[]},parseHTML(){return[{tag:"details"}]},renderHTML({HTMLAttributes:t}){return["details",N(this.options.HTMLAttributes,t),0]},...Xt({nodeName:"details",content:"block"}),addNodeView(){return({editor:t,getPos:e,node:n,HTMLAttributes:r})=>{let o=document.createElement("div"),i=N(this.options.HTMLAttributes,r,{"data-type":this.name});Object.entries(i).forEach(([c,d])=>o.setAttribute(c,d));let s=document.createElement("button");s.type="button",o.append(s);let l=document.createElement("div");o.append(l);let a=c=>{if(c!==void 0)if(c){if(o.classList.contains(this.options.openClassName))return;o.classList.add(this.options.openClassName)}else{if(!o.classList.contains(this.options.openClassName))return;o.classList.remove(this.option Line truncated `));return s.replaceSelectionWith(this.type.create({language:i},a)),s.selection.$from.parent.type!==this.type&&s.setSelection(R.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.setMeta("paste",!0),t.dispatch(s),!0}}})]}}),Nu=_0;var Ou=$.create({name:"customBlock",group:"block",atom:!0,defining:!0,draggable:!0,selectable:!0,isolating:!0,allowGapCursor:!0,inline:!1,addNodeView(){return({editor:t,node:e,getPos:n,HTMLAttributes:r,decorations:o,extension:i})=>{let s=document.createElement("div");s.setAttribute("data-config",e.attrs.config),s.setAttribute("data-id",e.attrs.id),s.setAttribute("data-type","customBlock");let l=document.createElement("div");if(l.className="fi-fo-rich-editor-custom-block-header fi-not-prose",s.appendChild(l),t.isEditable&&typeof e.attrs.config=="object"&&e.attrs.config!==null&&Object.keys(e.attrs.config).length>0){let c=document.createElement("div");c.className="fi-fo-rich-editor-custom-block-edit-btn-ctn",l.appendChild(c);let d=document.createElement("button");d.className="fi-icon-btn",d.type="button",d.innerHTML=i.options.editCustomBlockButtonIconHtml,d.addEventListener("click",()=>i.options.editCustomBlockUsing(e.attrs.id,e.attrs.config)),c.appendChild(d)}let a=document.createElement("p");if(a.className="fi-fo-rich-editor-custom-block-heading",a.textContent=e.attrs.label,l.appendChild(a),t.isEditable){let c=document.createElement("div");c.className="fi-fo-rich-editor-custom-block-delete-btn-ctn",l.appendChild(c);let d=document.createElement("button");d.className="fi-icon-btn",d.type="button",d.innerHTML=i.options.deleteCustomBlockButtonIconHtml,d.addEventListener("click",()=>t.chain().setNodeSelection(n()).deleteSelection().run()),c.appendChild(d)}if(e.attrs.preview){let c=document.createElement("div");c.className="fi-fo-rich-editor-custom-block-preview fi-not-prose",c.innerHTML=new TextDecoder().decode(Uint8Array.from(atob(e.attrs.preview),d=>d.charCodeAt(0))),s.appendChild(c)}return{dom:s}}},addOptions(){return{deleteCustomBlockButtonIconHtml:null,editCustomBlockButtonIconHtml:null,editCustomBlockUsing:()=>{},insertCustomBlockUsing:()=>{}}},addAttributes(){return{config:{default:null,parseHTML:t=>JSON.parse(t.getAttribute("data-config"))},id:{default:null,parseHTML:t=>t.getAttribute("data-id"),renderHTML:t=>t.id?{"data-id":t.id}:{}},label:{default:null,parseHTML:t=>t.getAttribute("data-label"),rendered:!1},preview:{default:null,parseHTML:t=>t.getAttribute("data-preview"),rendered:!1}}},parseHTML(){return[{tag:`div[data-type="${this.name}"]`}]},renderHTML({HTMLAttributes:t}){return["div",O(t)]},addKeyboardShortcuts(){return{Backspace:()=>this.editor.commands.command(({tr:t,state:e})=>{let n=!1,{selection:r}=e,{empty:o,anchor:i}=r;if(!o)return!1;let s=new le,l=0;return e.doc.nodesBetween(i-1,i,(a,c)=>{if(a.type.name===this.name)return n=!0,s=a,l=c,!1}),n})}},addProseMirrorPlugins(){let{insertCustomBlockUsing:t}=this.options;return[new L({props:{handleDrop(e,n){if(!n||(n.preventDefault(),!n.dataTransfer.getData("customBlock")))return!1;let r=n.dataTransfer.getData("customBlock");return t(r,e.posAtCoords({left:n.clientX,top:n.clientY}).pos),!1}}})]}});var xo=(t,e)=>e.view.domAtPos(t).node.offsetParent!==null,V0=(t,e,n)=>{for(let r=t.depth;r>0;r-=1){let o=t.node(r),i=e(o),s=xo(t.start(r),n);if(i&&s)return{pos:r>0?t.before(r):0,start:t.start(r),depth:r,node:o}}},Ru=(t,e)=>{let{state:n,view:r,extensionManager:o}=t,{schema:i,selection:s}=n,{empty:l,$anchor:a}=s,c=!!o.extensions.find(y=>y.name==="gapCursor");if(!l||a.parent.type!==i.nodes.detailsSummary||!c||e==="right"&&a.parentOffset!==a.parent.nodeSize-2)return!1;let d=Xe(y=>y.type===i.nodes.details)(s);if(!d)return!1;let u=Cn(d.node,y=>y.type===i.nodes.detailsContent);if(!u.length||xo(d.start+u[0].pos+1,t))return!1;let h=n.doc.resolve(d.pos+d.node.nodeSize),p=se.findFrom(h,1,!1);if(!p)return!1;let{tr:m}=n,g=new se(p);return m.setSelection(g),m.scrollIntoView(),r.dispatch(m),!0},Du=$.create({name:"details",content:"detailsSummary detailsContent",group:"block",defining:!0,isolating:!0,allowGapCursor:!1,addOptions(){return{persist:!1,openClassName:"is-open",HTMLAttributes:{}}},addAttributes(){return this.options.persist?{open:{default:!1,parseHTML:t=>t.hasAttribute("open"),renderHTML:({open:t})=>t?{open:""}:{}}}:[]},parseHTML(){return[{tag:"details"}]},renderHTML({HTMLAttributes:t}){return["details",O(this.options.HTMLAttributes,t),0]},...Xt({nodeName:"details",content:"block"}),addNodeView(){return({editor:t,getPos:e,node:n,HTMLAttributes:r})=>{let o=document.createElement("div"),i=O(this.options.HTMLAttributes,r,{"data-type":this.name});Object.entries(i).forEach(([c,d])=>o.setAttribute(c,d));let s=document.createElement("button");s.type="button",o.append(s);let l=document.createElement("div");o.append(l);let a=c=>{if(c!==void 0)if(c){if(o.classList.contains(this.options.openClassName))return;o.classList.add(this.options.openClassName)}else{if(!o.classList.contains(this.options.openClassName))return;o.classList.remove(this.option Line truncated
`):""}),Iu=F0;var Pu=H.create({name:"grid",group:"block",defining:!0,isolating:!0,allowGapCursor:!1,content:"gridColumn+",addOptions(){return{HTMLAttributes:{class:"grid-layout"}}},addAttributes(){return{"data-cols":{default:2,parseHTML:t=>t.getAttribute("data-cols")},"data-from-breakpoint":{default:"md",parseHTML:t=>t.getAttribute("data-from-breakpoint")},style:{default:null,parseHTML:t=>t.getAttribute("style"),renderHTML:t=>({style:`grid-template-columns: repeat(${t["data-cols"]}, 1fr)`})}}},parseHTML(){return[{tag:"div",getAttrs:t=>t.classList.contains("grid-layout")&&null}]},renderHTML({HTMLAttributes:t}){return["div",N(this.options.HTMLAttributes,t),0]},addCommands(){return{insertGrid:({columns:t=[1,1],fromBreakpoint:e,coordinates:n=null}={})=>({tr:r,dispatch:o,editor:i})=>{let s=i.schema.nodes.gridColumn,l=Array.isArray(t)&&t.length?t:[1,1],a=[];for(let u=0;u<l.length;u+=1)a.push(s.createAndFill({"data-col-span":Number(l[u]??1)||1}));let c=l.map(u=>Number(u)||1).reduce((u,f)=>u+f,0),d=i.schema.nodes.grid.createChecked({"data-cols":c,"data-from-breakpoint":e},a);if(o){let u=r.selection.anchor+1;[null,void 0].includes(n?.from)?r.replaceSelectionWith(d).scrollIntoView().setSelection(R.near(r.doc.resolve(u))):r.replaceRangeWith(n.from,n.to,d).scrollIntoView().setSelection(R.near(r.doc.resolve(n.from)))}return!0}}}});var Lu=H.create({name:"gridColumn",content:"block+",isolating:!0,addOptions(){return{HTMLAttributes:{class:"grid-layout-col"}}},addAttributes(){return{"data-col-span":{default:1,parseHTML:t=>t.getAttribute("data-col-span"),renderHTML:t=>({"data-col-span":t["data-col-span"]??1})},style:{default:null,parseHTML:t=>t.getAttribute("style"),renderHTML:t=>({style:`grid-column: span ${t["data-col-span"]??1};`})}}},parseHTML(){return[{tag:"div",getAttrs:t=>t.classList.contains("grid-layout-col")&&null}]},renderHTML({HTMLAttributes:t}){return["div",N(this.options.HTMLAttributes,t),0]}});var _0=H.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",N(this.options.HTMLAttributes,t)]},renderText(){return` `):""}),Lu=W0;var zu=$.create({name:"grid",group:"block",defining:!0,isolating:!0,allowGapCursor:!1,content:"gridColumn+",addOptions(){return{HTMLAttributes:{class:"grid-layout"}}},addAttributes(){return{"data-cols":{default:2,parseHTML:t=>t.getAttribute("data-cols")},"data-from-breakpoint":{default:"md",parseHTML:t=>t.getAttribute("data-from-breakpoint")},style:{default:null,parseHTML:t=>t.getAttribute("style"),renderHTML:t=>({style:`grid-template-columns: repeat(${t["data-cols"]}, 1fr)`})}}},parseHTML(){return[{tag:"div",getAttrs:t=>t.classList.contains("grid-layout")&&null}]},renderHTML({HTMLAttributes:t}){return["div",O(this.options.HTMLAttributes,t),0]},addCommands(){return{insertGrid:({columns:t=[1,1],fromBreakpoint:e,coordinates:n=null}={})=>({tr:r,dispatch:o,editor:i})=>{let s=i.schema.nodes.gridColumn,l=Array.isArray(t)&&t.length?t:[1,1],a=[];for(let u=0;u<l.length;u+=1)a.push(s.createAndFill({"data-col-span":Number(l[u]??1)||1}));let c=l.map(u=>Number(u)||1).reduce((u,f)=>u+f,0),d=i.schema.nodes.grid.createChecked({"data-cols":c,"data-from-breakpoint":e},a);if(o){let u=r.selection.anchor+1;[null,void 0].includes(n?.from)?r.replaceSelectionWith(d).scrollIntoView().setSelection(R.near(r.doc.resolve(u))):r.replaceRangeWith(n.from,n.to,d).scrollIntoView().setSelection(R.near(r.doc.resolve(n.from)))}return!0}}}});var Bu=$.create({name:"gridColumn",content:"block+",isolating:!0,addOptions(){return{HTMLAttributes:{class:"grid-layout-col"}}},addAttributes(){return{"data-col-span":{default:1,parseHTML:t=>t.getAttribute("data-col-span"),renderHTML:t=>({"data-col-span":t["data-col-span"]??1})},style:{default:null,parseHTML:t=>t.getAttribute("style"),renderHTML:t=>({style:`grid-column: span ${t["data-col-span"]??1};`})}}},parseHTML(){return[{tag:"div",getAttrs:t=>t.classList.contains("grid-layout-col")&&null}]},renderHTML({HTMLAttributes:t}){return["div",O(this.options.HTMLAttributes,t),0]}});var j0=$.create({name:"hardBreak",markdownTokenName:"br",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",O(this.options.HTMLAttributes,t)]},renderText(){return`
`},renderMarkdown:(t,e)=>e.indent(` `},renderMarkdown:(t,e)=>e.indent(`
`),addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:n,editor:r})=>t.first([()=>t.exitCode(),()=>t.command(()=>{let{selection:o,storedMarks:i}=n;if(o.$from.parent.type.spec.isolating)return!1;let{keepMarks:s}=this.options,{splittableMarks:l}=r.extensionManager,a=i||o.$to.parentOffset&&o.$from.marks();return e().insertContent({type:this.name}).command(({tr:c,dispatch:d})=>{if(d&&a&&s){let u=a.filter(f=>l.includes(f.type.name));c.ensureMarks(u)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),Bu=_0;var V0=H.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(t=>({tag:`h${t}`,attrs:{level:t}}))},renderHTML({node:t,HTMLAttributes:e}){return[`h${this.options.levels.includes(t.attrs.level)?t.attrs.level:this.options.levels[0]}`,N(this.options.HTMLAttributes,e),0]},parseMarkdown:(t,e)=>e.createNode("heading",{level:t.depth||1},e.parseInline(t.tokens||[])),renderMarkdown:(t,e)=>{var n;let r=(n=t.attrs)!=null&&n.level?parseInt(t.attrs.level,10):1,o="#".repeat(r);return t.content?`${o} ${e.renderChildren(t.content)}`:""},addCommands(){return{setHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.setNode(this.name,t):!1,toggleHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.toggleNode(this.name,"paragraph",t):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((t,e)=>({...t,[`Mod-Alt-${e}`]:()=>this.editor.commands.toggleHeading({level:e})}),{})},addInputRules(){return this.options.levels.map(t=>rr({find:new RegExp(`^(#{${Math.min(...this.options.levels)},${t}})\\s$`),type:this.type,getAttributes:{level:t}}))}}),zu=V0;var W0=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/,j0=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g,K0=Z.create({name:"highlight",addOptions(){return{multicolor:!1,HTMLAttributes:{}}},addAttributes(){return this.options.multicolor?{color:{default:null,parseHTML:t=>t.getAttribute("data-color")||t.style.backgroundColor,renderHTML:t=>t.color?{"data-color":t.color,style:`background-color: ${t.color}; color: inherit`}:{}}}:{}},parseHTML(){return[{tag:"mark"}]},renderHTML({HTMLAttributes:t}){return["mark",N(this.options.HTMLAttributes,t),0]},renderMarkdown:(t,e)=>`==${e.renderChildren(t)}==`,parseMarkdown:(t,e)=>e.applyMark("highlight",e.parseInline(t.tokens||[])),markdownTokenizer:{name:"highlight",level:"inline",start:t=>t.indexOf("=="),tokenize(t,e,n){let o=/^(==)([^=]+)(==)/.exec(t);if(o){let i=o[2].trim(),s=n.inlineTokens(i);return{type:"highlight",raw:o[0],text:i,tokens:s}}}},addCommands(){return{setHighlight:t=>({commands:e})=>e.setMark(this.name,t),toggleHighlight:t=>({commands:e})=>e.toggleMark(this.name,t),unsetHighlight:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-h":()=>this.editor.commands.toggleHighlight()}},addInputRules(){return[Le({find:W0,type:this.type})]},addPasteRules(){return[Ce({find:j0,type:this.type})]}}),Hu=K0;var U0=H.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{},nextNodeType:"paragraph"}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:t}){return["hr",N(this.options.HTMLAttributes,t)]},markdownTokenName:"hr",parseMarkdown:(t,e)=>e.createNode("horizontalRule"),renderMarkdown:()=>"---",addCommands(){return{setHorizontalRule:()=>({chain:t,state:e})=>{if(!uu(e,e.schema.nodes[this.name]))return!1;let{selection:n}=e,{$to:r}=n,o=t();return uo(n)?o.insertContentAt(r.pos,{type:this.name}):o.insertContent({type:this.name}),o.command(({state:i,tr:s,dispatch:l})=>{if(l){let{$to:a}=s.selection,c=a.end();if(a.nodeAfter)a.nodeAfter.isTextblock?s.setSelection(R.create(s.doc,a.pos+1)):a.nodeAfter.isBlock?s.setSelection(P.create(s.doc,a.pos)):s.setSelection(R.create(s.doc,a.pos));else{let d=i.schema.nodes[this.options.nextNodeType]||a.parent.type.contentMatch.defaultType,u=d?.create();u&&(s.insert(c,u),s.setSelection(R.create(s.doc,c+1)))}s.scrollIntoView()}return!0}).run()}}},addInputRules(){return[po({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),$u=U0;var q0=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,J0=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,G0=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,X0=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,Y0=Z.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:t=>t.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:t=>t.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:t}){return["em",N(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>({commands:t})=>t.setMark(this.name),toggleItalic:()=>({commands:t})=>t.toggleMark(this.name),unsetItalic:()=>({commands:t})=>t.unsetMark(this.name)}},markdo Line truncated `),parseMarkdown:()=>({type:"hardBreak"}),addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:n,editor:r})=>t.first([()=>t.exitCode(),()=>t.command(()=>{let{selection:o,storedMarks:i}=n;if(o.$from.parent.type.spec.isolating)return!1;let{keepMarks:s}=this.options,{splittableMarks:l}=r.extensionManager,a=i||o.$to.parentOffset&&o.$from.marks();return e().insertContent({type:this.name}).command(({tr:c,dispatch:d})=>{if(d&&a&&s){let u=a.filter(f=>l.includes(f.type.name));c.ensureMarks(u)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),Hu=j0;var K0=$.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(t=>({tag:`h${t}`,attrs:{level:t}}))},renderHTML({node:t,HTMLAttributes:e}){return[`h${this.options.levels.includes(t.attrs.level)?t.attrs.level:this.options.levels[0]}`,O(this.options.HTMLAttributes,e),0]},parseMarkdown:(t,e)=>e.createNode("heading",{level:t.depth||1},e.parseInline(t.tokens||[])),renderMarkdown:(t,e)=>{var n;let r=(n=t.attrs)!=null&&n.level?parseInt(t.attrs.level,10):1,o="#".repeat(r);return t.content?`${o} ${e.renderChildren(t.content)}`:""},addCommands(){return{setHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.setNode(this.name,t):!1,toggleHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.toggleNode(this.name,"paragraph",t):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((t,e)=>({...t,[`Mod-Alt-${e}`]:()=>this.editor.commands.toggleHeading({level:e})}),{})},addInputRules(){return this.options.levels.map(t=>rr({find:new RegExp(`^(#{${Math.min(...this.options.levels)},${t}})\\s$`),type:this.type,getAttributes:{level:t}}))}}),$u=K0;var U0=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/,q0=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g,J0=Z.create({name:"highlight",addOptions(){return{multicolor:!1,HTMLAttributes:{}}},addAttributes(){return this.options.multicolor?{color:{default:null,parseHTML:t=>t.getAttribute("data-color")||t.style.backgroundColor,renderHTML:t=>t.color?{"data-color":t.color,style:`background-color: ${t.color}; color: inherit`}:{}}}:{}},parseHTML(){return[{tag:"mark"}]},renderHTML({HTMLAttributes:t}){return["mark",O(this.options.HTMLAttributes,t),0]},renderMarkdown:(t,e)=>`==${e.renderChildren(t)}==`,parseMarkdown:(t,e)=>e.applyMark("highlight",e.parseInline(t.tokens||[])),markdownTokenizer:{name:"highlight",level:"inline",start:t=>t.indexOf("=="),tokenize(t,e,n){let o=/^(==)([^=]+)(==)/.exec(t);if(o){let i=o[2].trim(),s=n.inlineTokens(i);return{type:"highlight",raw:o[0],text:i,tokens:s}}}},addCommands(){return{setHighlight:t=>({commands:e})=>e.setMark(this.name,t),toggleHighlight:t=>({commands:e})=>e.toggleMark(this.name,t),unsetHighlight:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-h":()=>this.editor.commands.toggleHighlight()}},addInputRules(){return[Le({find:U0,type:this.type})]},addPasteRules(){return[Ce({find:q0,type:this.type})]}}),Fu=J0;var G0=$.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{},nextNodeType:"paragraph"}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:t}){return["hr",O(this.options.HTMLAttributes,t)]},markdownTokenName:"hr",parseMarkdown:(t,e)=>e.createNode("horizontalRule"),renderMarkdown:()=>"---",addCommands(){return{setHorizontalRule:()=>({chain:t,state:e})=>{if(!fu(e,e.schema.nodes[this.name]))return!1;let{selection:n}=e,{$to:r}=n,o=t();return uo(n)?o.insertContentAt(r.pos,{type:this.name}):o.insertContent({type:this.name}),o.command(({state:i,tr:s,dispatch:l})=>{if(l){let{$to:a}=s.selection,c=a.end();if(a.nodeAfter)a.nodeAfter.isTextblock?s.setSelection(R.create(s.doc,a.pos+1)):a.nodeAfter.isBlock?s.setSelection(P.create(s.doc,a.pos)):s.setSelection(R.create(s.doc,a.pos));else{let d=i.schema.nodes[this.options.nextNodeType]||a.parent.type.contentMatch.defaultType,u=d?.create();u&&(s.insert(c,u),s.setSelection(R.create(s.doc,c+1)))}s.scrollIntoView()}return!0}).run()}}},addInputRules(){return[po({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),_u=G0;var X0=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,Y0=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,Q0=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,Z0=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,eb=Z.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:t=>t.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:t=>t.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:t}){return["em",O(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>({commands:t})=>t.setMark(this.name),toggleItalic:()=>({commands:t})=>t.toggleMark(this.name),unsetItalic:()=>({comman Line truncated
`,sb="\uFE0F",lb="\u200D",yl="\uFFFC",ko=null,So=null;function ab(t=[]){let e={};Me.groups=e;let n=new Me;ko==null&&(ko=Uu(eb)),So==null&&(So=Uu(tb)),T(n,"'",Fo),T(n,"{",ar),T(n,"}",cr),T(n,"[",vo),T(n,"]",To),T(n,"(",Ao),T(n,")",Eo),T(n,"<",Oo),T(n,">",No),T(n,"\uFF08",Ro),T(n,"\uFF09",Do),T(n,"\u300C",Io),T(n,"\u300D",Po),T(n,"\u300E",Lo),T(n,"\u300F",Bo),T(n,"\uFF1C",zo),T(n,"\uFF1E",Ho),T(n,"&",$o),T(n,"*",_o),T(n,"@",Rt),T(n,"`",Wo),T(n,"^",jo),T(n,":",Dt),T(n,",",Ol),T(n,"$",Ko),T(n,".",et),T(n,"=",Uo),T(n,"!",Nl),T(n,"-",ze),T(n,"%",dr),T(n,"|",qo),T(n,"+",Jo),T(n,"#",Go),T(n,"?",ur),T(n,'"',Rl),T(n,"/",tt),T(n,";",Dl),T(n,"~",fr),T(n,"_",Xo),T(n,"\\",Vo),T(n,"\u30FB",Zu);let r=te(n,yt,Al,{[xl]:!0});te(r,yt,r);let o=te(r,gt,Yu,{[lr]:!0}),i=te(r,ir,Qu,{[sr]:!0}),s=te(n,gt,bt,{[wl]:!0});te(s,yt,o),te(s,gt,s),te(o,yt,o),te(o,gt,o);let l=te(n,ir,Cl,{[kl]:!0});te(l,gt),te(l,yt,i),te(l,ir,l),te(i,yt,i),te(i,gt),te(i,ir,i);let a=T(n,gl,El,{[hl]:!0}),c=T(n,Ku,Tl,{[hl]:!0}),d=te(n,ml,Tl,{[hl]:!0});T(n,yl,d),T(c,gl,a),T(c,yl,d),te(c,ml,d),T(d,Ku),T(d,gl),te(d,ml,d),T(d,yl,d);let u=te(n,pl,ef,{[Xu]:!0});T(u,"#"),te(u,pl,u),T(u,sb,u);let f=T(u,lb);T(f,"#"),te(f,pl,u);let h=[[gt,s],[yt,o]],p=[[gt,null],[ir,l],[yt,i]];for(let m=0;m<ko.length;m++)Nt(n,ko[m],Ml,bt,h);for(let m=0;m<So.length;m++)Nt(n,So[m],vl,Cl,p);Zt(Ml,{tld:!0,ascii:!0},e),Zt(vl,{utld:!0,alpha:!0},e),Nt(n,"file",Mo,bt,h),Nt(n,"mailto",Mo,bt,h),Nt(n,"http",vn,bt,h),Nt(n,"https",vn,bt,h),Nt(n,"ftp",vn,bt,h),Nt(n,"ftps",vn,bt,h),Zt(Mo,{scheme:!0,ascii:!0},e),Zt(vn,{slashscheme:!0,ascii:!0},e),t=t.sort((m,g)=>m[0]>g[0]?1:-1);for(let m=0;m<t.length;m++){let g=t[m][0],b=t[m][1]?{[nb]:!0}:{[rb]:!0};g.indexOf("-")>=0?b[Sl]=!0:gt.test(g)?yt.test(g)?b[lr]=!0:b[wl]=!0:b[xl]=!0,ju(n,g,g,b)}return ju(n,"localhost",hr,{ascii:!0}),n.jd=new Me(Yo),{start:n,tokens:Object.assign({groups:e},tf)}}function nf(t,e){let n=cb(e.replace(/[A-Z]/g,l=>l.toLowerCase())),r=n.length,o=[],i=0,s=0;for(;s<r;){let l=t,a=null,c=0,d=null,u=-1,f=-1;for(;s<r&&(a=l.go(n[s]));)l=a,l.accepts()?(u=0,f=0,d=l):u>=0&&(u+=n[s].length,f++),c+=n[s].length,i+=n[s].length,s++;i-=u,s-=f,c-=u,o.push({t:d.t,v:e.slice(i-c,i),s:i-c,e:i})}return o}function cb(t){let e=[],n=t.length,r=0;for(;r<n;){let o=t.charCodeAt(r),i,s=o<55296||o>56319||r+1===n||(i=t.charCodeAt(r+1))<56320||i>57343?t[r]:t.slice(r,r+2);e.push(s),r+=s.length}return e}function Nt(t,e,n,r,o){let i,s=e.length;for(let l=0;l<s-1;l++){let a=e[l];t.j[a]?i=t.j[a]:(i=new Me(r),i.jr=o.slice(),t.j[a]=i),t=i}return i=new Me(n),i.jr=o.slice(),t.j[e[s-1]]=i,i}function Uu(t){let e=[],n=[],r=0,o="0123456789";for(;r<t.length;){let i=0;for(;o.indexOf(t[r+i])>=0;)i++;if(i>0){e.push(n.join(""));for(let s=parseInt(t.substring(r,r+i),10);s>0;s--)n.pop();r+=i}else n.push(t[r]),r++}return e}var pr={defaultProtocol:"http",events:null,format:qu,formatHref:qu,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function Il(t,e=null){let n=Object.assign({},pr);t&&(n=Object.assign(n,t instanceof Il?t.o:t));let r=n.ignoreTags,o=[];for(let i=0;i<r.length;i++)o.push(r[i].toUpperCase());this.o=n,e&&(this.defaultRender=e),this.ignoreTags=o}Il.prototype={o:pr,ignoreTags:[],defaultRender(t){return t},check(t){return this.get("validate",t.toString(),t)},get(t,e,n){let r=e!=null,o=this.o[t];return o&&(typeof o=="object"?(o=n.t in o?o[n.t]:pr[t],typeof o=="function"&&r&&(o=o(e,n))):typeof o=="function"&&r&&(o=o(e,n.t,n)),o)},getObj(t,e,n){let r=this.o[t];return typeof r=="function"&&e!=null&&(r=r(e,n.t,n)),r},render(t){let e=t.render(this);return(this.get("render",null,t)||this.defaultRender)(e,t.t,t)}};function qu(t){return t}function rf(t,e){this.t="token",this.v=t,this.tk=e}rf.prototype={isLink:!1,toString(){return this.v},toHref(t){return this.toString()},toFormattedString(t){let e=this.toString(),n=t.get("truncate",e,this),r=t.get("format",e,this);return n&&r.length>n?r.substring(0,n)+"\u2026":r},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t=pr.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){let e=this,n=this.toHref(t.get("defaultProtocol")),r=t.get("formatHref",n,this),o=t.get("tagName",n,e),i=this.toFormattedString(t),s={},l=t.get("className",n,e),a=t.get("target",n,e),c=t.get("rel",n,e),d=t.getObj("attributes",n,e),u=t.getObj("events",n,e);return s.href=r,l&&(s.class=l),a&&(s.target=a),c&&(s.rel=c),d&&Object.assign(s,d),{tagName:o,attributes:s,content:i,eventListeners:u}}};function Qo(t,e){class n extends rf{constructor(o,i){super(o,i),thLine truncated `,cb="\uFE0F",db="\u200D",yl="\uFFFC",ko=null,So=null;function ub(t=[]){let e={};ve.groups=e;let n=new ve;ko==null&&(ko=Ju(rb)),So==null&&(So=Ju(ob)),A(n,"'",Fo),A(n,"{",ar),A(n,"}",cr),A(n,"[",Mo),A(n,"]",To),A(n,"(",Ao),A(n,")",Eo),A(n,"<",No),A(n,">",Oo),A(n,"\uFF08",Ro),A(n,"\uFF09",Do),A(n,"\u300C",Io),A(n,"\u300D",Po),A(n,"\u300E",Lo),A(n,"\u300F",zo),A(n,"\uFF1C",Bo),A(n,"\uFF1E",Ho),A(n,"&",$o),A(n,"*",_o),A(n,"@",Rt),A(n,"`",Wo),A(n,"^",jo),A(n,":",Dt),A(n,",",Nl),A(n,"$",Ko),A(n,".",et),A(n,"=",Uo),A(n,"!",Ol),A(n,"-",Be),A(n,"%",dr),A(n,"|",qo),A(n,"+",Jo),A(n,"#",Go),A(n,"?",ur),A(n,'"',Rl),A(n,"/",tt),A(n,";",Dl),A(n,"~",fr),A(n,"_",Xo),A(n,"\\",Vo),A(n,"\u30FB",tf);let r=te(n,yt,Al,{[wl]:!0});te(r,yt,r);let o=te(r,gt,Zu,{[lr]:!0}),i=te(r,ir,ef,{[sr]:!0}),s=te(n,gt,bt,{[xl]:!0});te(s,yt,o),te(s,gt,s),te(o,yt,o),te(o,gt,o);let l=te(n,ir,Cl,{[kl]:!0});te(l,gt),te(l,yt,i),te(l,ir,l),te(i,yt,i),te(i,gt),te(i,ir,i);let a=A(n,gl,El,{[hl]:!0}),c=A(n,qu,Tl,{[hl]:!0}),d=te(n,ml,Tl,{[hl]:!0});A(n,yl,d),A(c,gl,a),A(c,yl,d),te(c,ml,d),A(d,qu),A(d,gl),te(d,ml,d),A(d,yl,d);let u=te(n,pl,nf,{[Qu]:!0});A(u,"#"),te(u,pl,u),A(u,cb,u);let f=A(u,db);A(f,"#"),te(f,pl,u);let h=[[gt,s],[yt,o]],p=[[gt,null],[ir,l],[yt,i]];for(let m=0;m<ko.length;m++)Ot(n,ko[m],vl,bt,h);for(let m=0;m<So.length;m++)Ot(n,So[m],Ml,Cl,p);Zt(vl,{tld:!0,ascii:!0},e),Zt(Ml,{utld:!0,alpha:!0},e),Ot(n,"file",vo,bt,h),Ot(n,"mailto",vo,bt,h),Ot(n,"http",Mn,bt,h),Ot(n,"https",Mn,bt,h),Ot(n,"ftp",Mn,bt,h),Ot(n,"ftps",Mn,bt,h),Zt(vo,{scheme:!0,ascii:!0},e),Zt(Mn,{slashscheme:!0,ascii:!0},e),t=t.sort((m,g)=>m[0]>g[0]?1:-1);for(let m=0;m<t.length;m++){let g=t[m][0],b=t[m][1]?{[ib]:!0}:{[sb]:!0};g.indexOf("-")>=0?b[Sl]=!0:gt.test(g)?yt.test(g)?b[lr]=!0:b[xl]=!0:b[wl]=!0,Uu(n,g,g,b)}return Uu(n,"localhost",hr,{ascii:!0}),n.jd=new ve(Yo),{start:n,tokens:Object.assign({groups:e},rf)}}function of(t,e){let n=fb(e.replace(/[A-Z]/g,l=>l.toLowerCase())),r=n.length,o=[],i=0,s=0;for(;s<r;){let l=t,a=null,c=0,d=null,u=-1,f=-1;for(;s<r&&(a=l.go(n[s]));)l=a,l.accepts()?(u=0,f=0,d=l):u>=0&&(u+=n[s].length,f++),c+=n[s].length,i+=n[s].length,s++;i-=u,s-=f,c-=u,o.push({t:d.t,v:e.slice(i-c,i),s:i-c,e:i})}return o}function fb(t){let e=[],n=t.length,r=0;for(;r<n;){let o=t.charCodeAt(r),i,s=o<55296||o>56319||r+1===n||(i=t.charCodeAt(r+1))<56320||i>57343?t[r]:t.slice(r,r+2);e.push(s),r+=s.length}return e}function Ot(t,e,n,r,o){let i,s=e.length;for(let l=0;l<s-1;l++){let a=e[l];t.j[a]?i=t.j[a]:(i=new ve(r),i.jr=o.slice(),t.j[a]=i),t=i}return i=new ve(n),i.jr=o.slice(),t.j[e[s-1]]=i,i}function Ju(t){let e=[],n=[],r=0,o="0123456789";for(;r<t.length;){let i=0;for(;o.indexOf(t[r+i])>=0;)i++;if(i>0){e.push(n.join(""));for(let s=parseInt(t.substring(r,r+i),10);s>0;s--)n.pop();r+=i}else n.push(t[r]),r++}return e}var pr={defaultProtocol:"http",events:null,format:Gu,formatHref:Gu,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function Il(t,e=null){let n=Object.assign({},pr);t&&(n=Object.assign(n,t instanceof Il?t.o:t));let r=n.ignoreTags,o=[];for(let i=0;i<r.length;i++)o.push(r[i].toUpperCase());this.o=n,e&&(this.defaultRender=e),this.ignoreTags=o}Il.prototype={o:pr,ignoreTags:[],defaultRender(t){return t},check(t){return this.get("validate",t.toString(),t)},get(t,e,n){let r=e!=null,o=this.o[t];return o&&(typeof o=="object"?(o=n.t in o?o[n.t]:pr[t],typeof o=="function"&&r&&(o=o(e,n))):typeof o=="function"&&r&&(o=o(e,n.t,n)),o)},getObj(t,e,n){let r=this.o[t];return typeof r=="function"&&e!=null&&(r=r(e,n.t,n)),r},render(t){let e=t.render(this);return(this.get("render",null,t)||this.defaultRender)(e,t.t,t)}};function Gu(t){return t}function sf(t,e){this.t="token",this.v=t,this.tk=e}sf.prototype={isLink:!1,toString(){return this.v},toHref(t){return this.toString()},toFormattedString(t){let e=this.toString(),n=t.get("truncate",e,this),r=t.get("format",e,this);return n&&r.length>n?r.substring(0,n)+"\u2026":r},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t=pr.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){let e=this,n=this.toHref(t.get("defaultProtocol")),r=t.get("formatHref",n,this),o=t.get("tagName",n,e),i=this.toFormattedString(t),s={},l=t.get("className",n,e),a=t.get("target",n,e),c=t.get("rel",n,e),d=t.getObj("attributes",n,e),u=t.getObj("events",n,e);return s.href=r,l&&(s.class=l),a&&(s.target=a),c&&(s.rel=c),d&&Object.assign(s,d),{tagName:o,attributes:s,content:i,eventListeners:u}}};function Qo(t,e){class n extends sf{constructor(o,i){super(o,i),thLine truncated
1. Must only contain digits, lowercase ASCII letters or "-" 1. Must only contain digits, lowercase ASCII letters or "-"
2. Cannot start or end with "-" 2. Cannot start or end with "-"
3. "-" cannot repeat`);Y.customSchemes.push([t,e])}function mb(){Y.scanner=ab(Y.customSchemes);for(let t=0;t<Y.tokenQueue.length;t++)Y.tokenQueue[t][1]({scanner:Y.scanner});Y.parser=ub(Y.scanner.tokens);for(let t=0;t<Y.pluginQueue.length;t++)Y.pluginQueue[t][1]({scanner:Y.scanner,parser:Y.parser});return Y.initialized=!0,Y}function Zo(t){return Y.initialized||mb(),fb(Y.parser.start,t,nf(Y.scanner.start,t))}Zo.scan=nf;function ei(t,e=null,n=null){if(e&&typeof e=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);n=e,e=null}let r=new Il(n),o=Zo(t),i=[];for(let s=0;s<o.length;s++){let l=o[s];l.isLink&&(!e||l.t===e)&&r.check(l)&&i.push(l.toFormattedObject(r))}return i}var Ll="[\0- \xA0\u1680\u180E\u2000-\u2029\u205F\u3000]",gb=new RegExp(Ll),yb=new RegExp(`${Ll}$`),bb=new RegExp(Ll,"g");function xb(t){return t.length===1?t[0].isLink:t.length===3&&t[1].isLink?["()","[]"].includes(t[0].value+t[2].value):!1}function wb(t){return new L({key:new z("autolink"),appendTransaction:(e,n,r)=>{let o=e.some(c=>c.docChanged)&&!n.doc.eq(r.doc),i=e.some(c=>c.getMeta("preventAutolink"));if(!o||i)return;let{tr:s}=r,l=qs(n.doc,[...e]);if(Zs(l).forEach(({newRange:c})=>{let d=_d(r.doc,c,h=>h.isTextblock),u,f;if(d.length>1)u=d[0],f=r.doc.textBetween(u.pos,u.pos+u.node.nodeSize,void 0," ");else if(d.length){let h=r.doc.textBetween(c.from,c.to," "," ");if(!yb.test(h))return;u=d[0],f=r.doc.textBetween(u.pos,c.to,void 0," ")}if(u&&f){let h=f.split(gb).filter(Boolean);if(h.length<=0)return!1;let p=h[h.length-1],m=u.pos+f.lastIndexOf(p);if(!p)return!1;let g=Zo(p).map(y=>y.toObject(t.defaultProtocol));if(!xb(g))return!1;g.filter(y=>y.isLink).map(y=>({...y,from:m+y.start+1,to:m+y.end+1})).filter(y=>r.schema.marks.code?!r.doc.rangeHasMark(y.from,y.to,r.schema.marks.code):!0).filter(y=>t.validate(y.value)).filter(y=>t.shouldAutoLink(y.value)).forEach(y=>{co(y.from,y.to,r.doc).some(b=>b.mark.type===t.type)||s.addMark(y.from,y.to,t.type.create({href:y.href}))})}}),!!s.steps.length)return s}})}function kb(t){return new L({key:new z("handleClickLink"),props:{handleClick:(e,n,r)=>{var o,i;if(r.button!==0||!e.editable)return!1;let s=null;if(r.target instanceof HTMLAnchorElement)s=r.target;else{let d=r.target,u=[];for(;d.nodeName!=="DIV";)u.push(d),d=d.parentNode;s=u.find(f=>f.nodeName==="A")}if(!s)return!1;let l=Qs(e.state,t.type.name),a=(o=s?.href)!=null?o:l.href,c=(i=s?.target)!=null?i:l.target;return t.enableClickSelection&&t.editor.commands.extendMarkRange(t.type.name),s&&a?(window.open(a,c),!0):!1}}})}function Sb(t){return new L({key:new z("handlePasteLink"),props:{handlePaste:(e,n,r)=>{let{shouldAutoLink:o}=t,{state:i}=e,{selection:s}=i,{empty:l}=s;if(l)return!1;let a="";r.content.forEach(d=>{a+=d.textContent});let c=ei(a,{defaultProtocol:t.defaultProtocol}).find(d=>d.isLink&&d.value===a);return!a||!c||o!==void 0&&!o(c.href)?!1:t.editor.commands.setMark(t.type,{href:c.href})}}})}function en(t,e){let n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return e&&e.forEach(r=>{let o=typeof r=="string"?r:r.scheme;o&&n.push(o)}),!t||t.replace(bb,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}var Cb=Z.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(t=>{if(typeof t=="string"){Pl(t);return}Pl(t.scheme,t.optionalSlashes)})},onDestroy(){of()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(t,e)=>!!en(t,e.protocols),validate:t=>!!t,shouldAutoLink:t=>!!t}},addAttributes(){return{href:{default:null,parseHTML(t){return t.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:t=>{let e=t.getAttribute("href");return!e||!this.options.isAllowedUri(e,{defaultValidate:n=>!!en(n,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:t}){return this.options.isAllowedUri(t.href,{defaultValidate:e=>!!en(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",N(this.options.HTMLAttributes,t),0]:["a",N(this.options.HTMLAttributes,{...t,href:""}),0]},markdownTokenName:"link",parseMarkdown:(t,e)=>e.applyMark("link",e.parseInline(t.tokens||[]),{href:t.href,title:t.title||null}),renderMarkdown:(t,e)=>{var n;let r=((n=t.attrs)==null?void 0:n.href)||"";return`[${e.renderChildren(t)}](${r})`},addCommands(){return{setLink: Line truncated 3. "-" cannot repeat`);Y.customSchemes.push([t,e])}function bb(){Y.scanner=ub(Y.customSchemes);for(let t=0;t<Y.tokenQueue.length;t++)Y.tokenQueue[t][1]({scanner:Y.scanner});Y.parser=pb(Y.scanner.tokens);for(let t=0;t<Y.pluginQueue.length;t++)Y.pluginQueue[t][1]({scanner:Y.scanner,parser:Y.parser});return Y.initialized=!0,Y}function Zo(t){return Y.initialized||bb(),mb(Y.parser.start,t,of(Y.scanner.start,t))}Zo.scan=of;function ei(t,e=null,n=null){if(e&&typeof e=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);n=e,e=null}let r=new Il(n),o=Zo(t),i=[];for(let s=0;s<o.length;s++){let l=o[s];l.isLink&&(!e||l.t===e)&&r.check(l)&&i.push(l.toFormattedObject(r))}return i}var Ll="[\0- \xA0\u1680\u180E\u2000-\u2029\u205F\u3000]",wb=new RegExp(Ll),xb=new RegExp(`${Ll}$`),kb=new RegExp(Ll,"g");function Sb(t){return t.length===1?t[0].isLink:t.length===3&&t[1].isLink?["()","[]"].includes(t[0].value+t[2].value):!1}function Cb(t){return new L({key:new H("autolink"),appendTransaction:(e,n,r)=>{let o=e.some(c=>c.docChanged)&&!n.doc.eq(r.doc),i=e.some(c=>c.getMeta("preventAutolink"));if(!o||i)return;let{tr:s}=r,l=qs(n.doc,[...e]);if(Zs(l).forEach(({newRange:c})=>{let d=_d(r.doc,c,h=>h.isTextblock),u,f;if(d.length>1)u=d[0],f=r.doc.textBetween(u.pos,u.pos+u.node.nodeSize,void 0," ");else if(d.length){let h=r.doc.textBetween(c.from,c.to," "," ");if(!xb.test(h))return;u=d[0],f=r.doc.textBetween(u.pos,c.to,void 0," ")}if(u&&f){let h=f.split(wb).filter(Boolean);if(h.length<=0)return!1;let p=h[h.length-1],m=u.pos+f.lastIndexOf(p);if(!p)return!1;let g=Zo(p).map(y=>y.toObject(t.defaultProtocol));if(!Sb(g))return!1;g.filter(y=>y.isLink).map(y=>({...y,from:m+y.start+1,to:m+y.end+1})).filter(y=>r.schema.marks.code?!r.doc.rangeHasMark(y.from,y.to,r.schema.marks.code):!0).filter(y=>t.validate(y.value)).filter(y=>t.shouldAutoLink(y.value)).forEach(y=>{co(y.from,y.to,r.doc).some(b=>b.mark.type===t.type)||s.addMark(y.from,y.to,t.type.create({href:y.href}))})}}),!!s.steps.length)return s}})}function vb(t){return new L({key:new H("handleClickLink"),props:{handleClick:(e,n,r)=>{var o,i;if(r.button!==0||!e.editable)return!1;let s=null;if(r.target instanceof HTMLAnchorElement)s=r.target;else{let d=r.target,u=[];for(;d.nodeName!=="DIV";)u.push(d),d=d.parentNode;s=u.find(f=>f.nodeName==="A")}if(!s)return!1;let l=Qs(e.state,t.type.name),a=(o=s?.href)!=null?o:l.href,c=(i=s?.target)!=null?i:l.target;return t.enableClickSelection&&t.editor.commands.extendMarkRange(t.type.name),s&&a?(window.open(a,c),!0):!1}}})}function Mb(t){return new L({key:new H("handlePasteLink"),props:{handlePaste:(e,n,r)=>{let{shouldAutoLink:o}=t,{state:i}=e,{selection:s}=i,{empty:l}=s;if(l)return!1;let a="";r.content.forEach(d=>{a+=d.textContent});let c=ei(a,{defaultProtocol:t.defaultProtocol}).find(d=>d.isLink&&d.value===a);return!a||!c||o!==void 0&&!o(c.href)?!1:t.editor.commands.setMark(t.type,{href:c.href})}}})}function en(t,e){let n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return e&&e.forEach(r=>{let o=typeof r=="string"?r:r.scheme;o&&n.push(o)}),!t||t.replace(kb,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}var Tb=Z.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(t=>{if(typeof t=="string"){Pl(t);return}Pl(t.scheme,t.optionalSlashes)})},onDestroy(){lf()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(t,e)=>!!en(t,e.protocols),validate:t=>!!t,shouldAutoLink:t=>!!t}},addAttributes(){return{href:{default:null,parseHTML(t){return t.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:t=>{let e=t.getAttribute("href");return!e||!this.options.isAllowedUri(e,{defaultValidate:n=>!!en(n,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:t}){return this.options.isAllowedUri(t.href,{defaultValidate:e=>!!en(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",O(this.options.HTMLAttributes,t),0]:["a",O(this.options.HTMLAttributes,{...t,href:""}),0]},markdownTokenName:"link",parseMarkdown:(t,e)=>e.applyMark("link",e.parseInline(t.tokens||[]),{href:t.href,title:t.title||null}),renderMarkdown:(t,e)=>{var n;let r=((n=t.attrs)==null?void 0:n.href)||"";return`[${e.renderChildren(t)}](${r})`},addCommands(){return{setLink: Line truncated
`):"",markdownOptions:{indentsContent:!0},addCommands(){return{toggleBulletList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(Tb,this.editor.getAttributes(lf)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=Ye({find:af,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=Ye({find:af,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(lf),editor:this.editor})),[t]}}),$l=H.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",N(this.options.HTMLAttributes,t),0]},markdownTokenName:"list_item",parseMarkdown:(t,e)=>{if(t.type!=="list_item")return[];let n=[];if(t.tokens&&t.tokens.length>0)if(t.tokens.some(o=>o.type==="paragraph"))n=e.parseChildren(t.tokens);else{let o=t.tokens[0];if(o&&o.type==="text"&&o.tokens&&o.tokens.length>0){if(n=[{type:"paragraph",content:e.parseInline(o.tokens)}],t.tokens.length>1){let s=t.tokens.slice(1),l=e.parseChildren(s);n.push(...l)}}else n=e.parseChildren(t.tokens)}return n.length===0&&(n=[{type:"paragraph",content:[]}]),{type:"listItem",content:n}},renderMarkdown:(t,e,n)=>or(t,e,r=>r.parentType==="bulletList"?"- ":r.parentType==="orderedList"?`${r.index+1}. `:"- ",n),addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),Ab={};vb(Ab,{findListItemPos:()=>mr,getNextListDepth:()=>Fl,handleBackspace:()=>Bl,handleDelete:()=>zl,hasListBefore:()=>ff,hasListItemAfter:()=>Eb,hasListItemBefore:()=>hf,listItemHasSubList:()=>pf,nextListIsDeeper:()=>mf,nextListIsHigher:()=>gf});var mr=(t,e)=>{let{$from:n}=e.selection,r=ee(t,e.schema),o=null,i=n.depth,s=n.pos,l=null;for(;i>0&&l===null;)o=n.node(i),o.type===r?l=i:(i-=1,s-=1);return l===null?null:{$pos:e.doc.resolve(s),depth:l}},Fl=(t,e)=>{let n=mr(t,e);if(!n)return!1;let[,r]=qd(e,t,n.$pos.pos+4);return r},ff=(t,e,n)=>{let{$anchor:r}=t.selection,o=Math.max(0,r.pos-2),i=t.doc.resolve(o).node();return!(!i||!n.includes(i.type.name))},hf=(t,e)=>{var n;let{$anchor:r}=e.selection,o=e.doc.resolve(r.pos-2);return!(o.index()===0||((n=o.nodeBefore)==null?void 0:n.type.name)!==t)},pf=(t,e,n)=>{if(!n)return!1;let r=ee(t,e.schema),o=!1;return n.descendants(i=>{i.type===r&&(o=!0)}),o},Bl=(t,e,n)=>{if(t.commands.undoInputRule())return!0;if(t.state.selection.from!==t.state.selection.to)return!1;if(!Ge(t.state,e)&&ff(t.state,e,n)){let{$anchor:l}=t.state.selection,a=t.state.doc.resolve(l.before()-1),c=[];a.node().descendants((f,h)=>{f.type.name===e&&c.push({node:f,pos:h})});let d=c.at(-1);if(!d)return!1;let u=t.state.doc.resolve(a.start()+d.pos+1);return t.chain().cut({from:l.start()-1,to:l.end()+1},u.end()).joinForward().run()}if(!Ge(t.state,e)||!Gd(t.state))return!1;let r=mr(e,t.state);if(!r)return!1;let i=t.state.doc.resolve(r.$pos.pos-2).node(r.depth),s=pf(e,t.state,i);return hf(e,t.state)&&!s?t.commands.joinItemBackward():t.chain().liftListItem(e).run()},mf=(t,e)=>{let n=Fl(t,e),r=mr(t,e);return!r||!n?!1:n>r.depth},gf=(t,e)=>{let n=Fl(t,e),r=mr(t,e);return!r||!n?!1:n<r.depth},zl=(t,e)=>{if(!Ge(t.state,e)||!Jd(t.state,e))return!1;let{selection:n}=t.state,{$from:r,$to:o}=n;return!n.empty&&r.sameParent(o)?!1:mf(e,t.state)?t.chain().focus(t.state.selection.from+4).lift(e).joinBackward().run():gf(e,t.state)?t.chain().joinForward().joinBackward().run():t.commands.joinItemForward()},Eb=(t,e)=>{var n;let{$anchor:r}=e.selection,o=e.doc.resolve(r.pos-r.parentOffset-2);return!(o.index()===o.parent.childCount-1||((n=o.nodeAfter)==null?void 0:n.type.name)!==t)},Ob=W.create({name:"listKeymap",addOptions(){return{listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}},addKeyboardShortcuts(){return{Delete:({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:n})=>{t.state.schema.nodes[n]!==void 0&&zl(t,n)&&(e=!0)}),e},"Mod-Delete":({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:n})=>{t.state.schema.nodes[n]!==void 0&&zl(t,n)&&(e=!0)}),e},Backspace:({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{t.state.schema.nodes[n]!==void 0&&Bl(t,n,r)&&(e=!0)}),e},"Mod-Backspace":({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{t.state.schema.nodes[n]!==void 0&&Bl(t,n,r)&&(e=!0)}),e}}}}),cf=/^(\s*)(\d+)\.\s+(.*)$/,Nb=/^\s/;function Rb(t){let e=[],n=0,r=0;for(;n<t.length;){let o=t[n],i=o.match(cf);if(!i Line truncated `):"",markdownOptions:{indentsContent:!0},addCommands(){return{toggleBulletList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(Nb,this.editor.getAttributes(cf)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=Ye({find:df,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=Ye({find:df,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(cf),editor:this.editor})),[t]}}),$l=$.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",O(this.options.HTMLAttributes,t),0]},markdownTokenName:"list_item",parseMarkdown:(t,e)=>{if(t.type!=="list_item")return[];let n=[];if(t.tokens&&t.tokens.length>0)if(t.tokens.some(o=>o.type==="paragraph"))n=e.parseChildren(t.tokens);else{let o=t.tokens[0];if(o&&o.type==="text"&&o.tokens&&o.tokens.length>0){if(n=[{type:"paragraph",content:e.parseInline(o.tokens)}],t.tokens.length>1){let s=t.tokens.slice(1),l=e.parseChildren(s);n.push(...l)}}else n=e.parseChildren(t.tokens)}return n.length===0&&(n=[{type:"paragraph",content:[]}]),{type:"listItem",content:n}},renderMarkdown:(t,e,n)=>or(t,e,r=>r.parentType==="bulletList"?"- ":r.parentType==="orderedList"?`${r.index+1}. `:"- ",n),addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),Ob={};Eb(Ob,{findListItemPos:()=>mr,getNextListDepth:()=>Fl,handleBackspace:()=>zl,handleDelete:()=>Bl,hasListBefore:()=>pf,hasListItemAfter:()=>Rb,hasListItemBefore:()=>mf,listItemHasSubList:()=>gf,nextListIsDeeper:()=>yf,nextListIsHigher:()=>bf});var mr=(t,e)=>{let{$from:n}=e.selection,r=ee(t,e.schema),o=null,i=n.depth,s=n.pos,l=null;for(;i>0&&l===null;)o=n.node(i),o.type===r?l=i:(i-=1,s-=1);return l===null?null:{$pos:e.doc.resolve(s),depth:l}},Fl=(t,e)=>{let n=mr(t,e);if(!n)return!1;let[,r]=qd(e,t,n.$pos.pos+4);return r},pf=(t,e,n)=>{let{$anchor:r}=t.selection,o=Math.max(0,r.pos-2),i=t.doc.resolve(o).node();return!(!i||!n.includes(i.type.name))},mf=(t,e)=>{var n;let{$anchor:r}=e.selection,o=e.doc.resolve(r.pos-2);return!(o.index()===0||((n=o.nodeBefore)==null?void 0:n.type.name)!==t)},gf=(t,e,n)=>{if(!n)return!1;let r=ee(t,e.schema),o=!1;return n.descendants(i=>{i.type===r&&(o=!0)}),o},zl=(t,e,n)=>{if(t.commands.undoInputRule())return!0;if(t.state.selection.from!==t.state.selection.to)return!1;if(!Ge(t.state,e)&&pf(t.state,e,n)){let{$anchor:l}=t.state.selection,a=t.state.doc.resolve(l.before()-1),c=[];a.node().descendants((f,h)=>{f.type.name===e&&c.push({node:f,pos:h})});let d=c.at(-1);if(!d)return!1;let u=t.state.doc.resolve(a.start()+d.pos+1);return t.chain().cut({from:l.start()-1,to:l.end()+1},u.end()).joinForward().run()}if(!Ge(t.state,e)||!Gd(t.state))return!1;let r=mr(e,t.state);if(!r)return!1;let i=t.state.doc.resolve(r.$pos.pos-2).node(r.depth),s=gf(e,t.state,i);return mf(e,t.state)&&!s?t.commands.joinItemBackward():t.chain().liftListItem(e).run()},yf=(t,e)=>{let n=Fl(t,e),r=mr(t,e);return!r||!n?!1:n>r.depth},bf=(t,e)=>{let n=Fl(t,e),r=mr(t,e);return!r||!n?!1:n<r.depth},Bl=(t,e)=>{if(!Ge(t.state,e)||!Jd(t.state,e))return!1;let{selection:n}=t.state,{$from:r,$to:o}=n;return!n.empty&&r.sameParent(o)?!1:yf(e,t.state)?t.chain().focus(t.state.selection.from+4).lift(e).joinBackward().run():bf(e,t.state)?t.chain().joinForward().joinBackward().run():t.commands.joinItemForward()},Rb=(t,e)=>{var n;let{$anchor:r}=e.selection,o=e.doc.resolve(r.pos-r.parentOffset-2);return!(o.index()===o.parent.childCount-1||((n=o.nodeAfter)==null?void 0:n.type.name)!==t)},Db=j.create({name:"listKeymap",addOptions(){return{listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}},addKeyboardShortcuts(){return{Delete:({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:n})=>{t.state.schema.nodes[n]!==void 0&&Bl(t,n)&&(e=!0)}),e},"Mod-Delete":({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:n})=>{t.state.schema.nodes[n]!==void 0&&Bl(t,n)&&(e=!0)}),e},Backspace:({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{t.state.schema.nodes[n]!==void 0&&zl(t,n,r)&&(e=!0)}),e},"Mod-Backspace":({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{t.state.schema.nodes[n]!==void 0&&zl(t,n,r)&&(e=!0)}),e}}}}),uf=/^(\s*)(\d+)\.\s+(.*)$/,Ib=/^\s/;function Pb(t){let e=[],n=0,r=0;for(;n<t.length;){let o=t[n],i=o.match(uf);if(!i Line truncated
`,u+=1;else if(h.match(Nb))f.push(h),d+=` `,u+=1;else if(h.match(Ib))f.push(h),d+=`
${h.slice(c+2)}`,u+=1;else break}e.push({indent:c,number:parseInt(l,10),content:d.trim(),raw:f.join(` ${h.slice(c+2)}`,u+=1;else break}e.push({indent:c,number:parseInt(l,10),content:d.trim(),raw:f.join(`
`)}),r=u,n=u}return[e,r]}function yf(t,e,n){var r;let o=[],i=0;for(;i<t.length;){let s=t[i];if(s.indent===e){let l=s.content.split(` `)}),r=u,n=u}return[e,r]}function wf(t,e,n){var r;let o=[],i=0;for(;i<t.length;){let s=t[i];if(s.indent===e){let l=s.content.split(`
`),a=((r=l[0])==null?void 0:r.trim())||"",c=[];a&&c.push({type:"paragraph",raw:a,tokens:n.inlineTokens(a)});let d=l.slice(1).join(` `),a=((r=l[0])==null?void 0:r.trim())||"",c=[];a&&c.push({type:"paragraph",raw:a,tokens:n.inlineTokens(a)});let d=l.slice(1).join(`
`).trim();if(d){let h=n.blockTokens(d);c.push(...h)}let u=i+1,f=[];for(;u<t.length&&t[u].indent>e;)f.push(t[u]),u+=1;if(f.length>0){let h=Math.min(...f.map(m=>m.indent)),p=yf(f,h,n);c.push({type:"list",ordered:!0,start:f[0].number,items:p,raw:f.map(m=>m.raw).join(` `).trim();if(d){let h=n.blockTokens(d);c.push(...h)}let u=i+1,f=[];for(;u<t.length&&t[u].indent>e;)f.push(t[u]),u+=1;if(f.length>0){let h=Math.min(...f.map(m=>m.indent)),p=wf(f,h,n);c.push({type:"list",ordered:!0,start:f[0].number,items:p,raw:f.map(m=>m.raw).join(`
`)})}o.push({type:"list_item",raw:s.raw,tokens:c}),i=u}else i+=1}return o}function Db(t,e){return t.map(n=>{if(n.type!=="list_item")return e.parseChildren([n])[0];let r=[];return n.tokens&&n.tokens.length>0&&n.tokens.forEach(o=>{if(o.type==="paragraph"||o.type==="list"||o.type==="blockquote"||o.type==="code")r.push(...e.parseChildren([o]));else if(o.type==="text"&&o.tokens){let i=e.parseChildren([o]);r.push({type:"paragraph",content:i})}else{let i=e.parseChildren([o]);i.length>0&&r.push(...i)}}),{type:"listItem",content:r}})}var Ib="listItem",df="textStyle",uf=/^(\d+)\.\s$/,_l=H.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:t=>t.hasAttribute("start")?parseInt(t.getAttribute("start")||"",10):1},type:{default:null,parseHTML:t=>t.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:t}){let{start:e,...n}=t;return e===1?["ol",N(this.options.HTMLAttributes,n),0]:["ol",N(this.options.HTMLAttributes,t),0]},markdownTokenName:"list",parseMarkdown:(t,e)=>{if(t.type!=="list"||!t.ordered)return[];let n=t.start||1,r=t.items?Db(t.items,e):[];return n!==1?{type:"orderedList",attrs:{start:n},content:r}:{type:"orderedList",content:r}},renderMarkdown:(t,e)=>t.content?e.renderChildren(t.content,` `)})}o.push({type:"list_item",raw:s.raw,tokens:c}),i=u}else i+=1}return o}function Lb(t,e){return t.map(n=>{if(n.type!=="list_item")return e.parseChildren([n])[0];let r=[];return n.tokens&&n.tokens.length>0&&n.tokens.forEach(o=>{if(o.type==="paragraph"||o.type==="list"||o.type==="blockquote"||o.type==="code")r.push(...e.parseChildren([o]));else if(o.type==="text"&&o.tokens){let i=e.parseChildren([o]);r.push({type:"paragraph",content:i})}else{let i=e.parseChildren([o]);i.length>0&&r.push(...i)}}),{type:"listItem",content:r}})}var zb="listItem",ff="textStyle",hf=/^(\d+)\.\s$/,_l=$.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:t=>t.hasAttribute("start")?parseInt(t.getAttribute("start")||"",10):1},type:{default:null,parseHTML:t=>t.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:t}){let{start:e,...n}=t;return e===1?["ol",O(this.options.HTMLAttributes,n),0]:["ol",O(this.options.HTMLAttributes,t),0]},markdownTokenName:"list",parseMarkdown:(t,e)=>{if(t.type!=="list"||!t.ordered)return[];let n=t.start||1,r=t.items?Lb(t.items,e):[];return n!==1?{type:"orderedList",attrs:{start:n},content:r}:{type:"orderedList",content:r}},renderMarkdown:(t,e)=>t.content?e.renderChildren(t.content,`
`):"",markdownTokenizer:{name:"orderedList",level:"block",start:t=>{let e=t.match(/^(\s*)(\d+)\.\s+/),n=e?.index;return n!==void 0?n:-1},tokenize:(t,e,n)=>{var r;let o=t.split(` `):"",markdownTokenizer:{name:"orderedList",level:"block",start:t=>{let e=t.match(/^(\s*)(\d+)\.\s+/),n=e?.index;return n!==void 0?n:-1},tokenize:(t,e,n)=>{var r;let o=t.split(`
`),[i,s]=Rb(o);if(i.length===0)return;let l=yf(i,0,n);return l.length===0?void 0:{type:"list",ordered:!0,start:((r=i[0])==null?void 0:r.number)||1,items:l,raw:o.slice(0,s).join(` `),[i,s]=Pb(o);if(i.length===0)return;let l=wf(i,0,n);return l.length===0?void 0:{type:"list",ordered:!0,start:((r=i[0])==null?void 0:r.number)||1,items:l,raw:o.slice(0,s).join(`
`)}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(Ib,this.editor.getAttributes(df)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=Ye({find:uf,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=Ye({find:uf,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(df)}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1],editor:this.editor})),[t]}}),Pb=/^\s*(\[([( |x])?\])\s$/,Lb=H.create({name:"taskItem",addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}},content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:t=>{let e=t.getAttribute("data-checked");return e===""||e==="true"},renderHTML:t=>({"data-checked":t.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:t,HTMLAttributes:e}){return["li",N(this.options.HTMLAttributes,e,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:t.attrs.checked?"checked":null}],["span"]],["div",0]]},parseMarkdown:(t,e)=>{let n=[];if(t.tokens&&t.tokens.length>0?n.push(e.createNode("paragraph",{},e.parseInline(t.tokens))):t.text?n.push(e.createNode("paragraph",{},[e.createNode("text",{text:t.text})])):n.push(e.createNode("paragraph",{},[])),t.nestedTokens&&t.nestedTokens.length>0){let r=e.parseChildren(t.nestedTokens);n.push(...r)}return e.createNode("taskItem",{checked:t.checked||!1},n)},renderMarkdown:(t,e)=>{var n;let o=`- [${(n=t.attrs)!=null&&n.checked?"x":" "}] `;return or(t,e,o)},addKeyboardShortcuts(){let t={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...t,Tab:()=>this.editor.commands.sinkListItem(this.name)}:t},addNodeView(){return({node:t,HTMLAttributes:e,getPos:n,editor:r})=>{let o=document.createElement("li"),i=document.createElement("label"),s=document.createElement("span"),l=document.createElement("input"),a=document.createElement("div"),c=d=>{var u,f;l.ariaLabel=((f=(u=this.options.a11y)==null?void 0:u.checkboxLabel)==null?void 0:f.call(u,d,l.checked))||`Task item checkbox for ${d.textContent||"empty task item"}`};return c(t),i.contentEditable="false",l.type="checkbox",l.addEventListener("mousedown",d=>d.preventDefault()),l.addEventListener("change",d=>{if(!r.isEditable&&!this.options.onReadOnlyChecked){l.checked=!l.checked;return}let{checked:u}=d.target;r.isEditable&&typeof n=="function"&&r.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:f})=>{let h=n();if(typeof h!="number")return!1;let p=f.doc.nodeAt(h);return f.setNodeMarkup(h,void 0,{...p?.attrs,checked:u}),!0}).run(),!r.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(t,u)||(l.checked=!l.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([d,u])=>{o.setAttribute(d,u)}),o.dataset.checked=t.attrs.checked,l.checked=t.attrs.checked,i.append(l,s),o.append(i,a),Object.entries(e).forEach(([d,u])=>{o.setAttribute(d,u)}),{dom:o,contentDOM:a,update:d=>d.type!==this.type?!1:(o.dataset.checked=d.attrs.checked,l.checked=d.attrs.checked,c(d),!0)}}},addInputRules(){return[Ye({find:Pb,type:this.type,getAttributes:t=>({checked:t[t.length-1]==="x"})})]}}),Bb=H.create({name:"taskList",addOptions(){return{itemTypeName:"taskItem",HTMLAttributes:{}}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:t}){return["ul",N(this.options.HTMLAttributes,t,{"data-type":this.name}),0]},parseMarkdown:(t,e)=>e.createNode("taskList",{},e.parseChildren(t.items||[])),renderMarkdown:(t,e)=>t.content?e.renderChildren(t.content,` `)}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(zb,this.editor.getAttributes(ff)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=Ye({find:hf,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=Ye({find:hf,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(ff)}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1],editor:this.editor})),[t]}}),Bb=/^\s*(\[([( |x])?\])\s$/,Hb=$.create({name:"taskItem",addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}},content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:t=>{let e=t.getAttribute("data-checked");return e===""||e==="true"},renderHTML:t=>({"data-checked":t.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:t,HTMLAttributes:e}){return["li",O(this.options.HTMLAttributes,e,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:t.attrs.checked?"checked":null}],["span"]],["div",0]]},parseMarkdown:(t,e)=>{let n=[];if(t.tokens&&t.tokens.length>0?n.push(e.createNode("paragraph",{},e.parseInline(t.tokens))):t.text?n.push(e.createNode("paragraph",{},[e.createNode("text",{text:t.text})])):n.push(e.createNode("paragraph",{},[])),t.nestedTokens&&t.nestedTokens.length>0){let r=e.parseChildren(t.nestedTokens);n.push(...r)}return e.createNode("taskItem",{checked:t.checked||!1},n)},renderMarkdown:(t,e)=>{var n;let o=`- [${(n=t.attrs)!=null&&n.checked?"x":" "}] `;return or(t,e,o)},addKeyboardShortcuts(){let t={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...t,Tab:()=>this.editor.commands.sinkListItem(this.name)}:t},addNodeView(){return({node:t,HTMLAttributes:e,getPos:n,editor:r})=>{let o=document.createElement("li"),i=document.createElement("label"),s=document.createElement("span"),l=document.createElement("input"),a=document.createElement("div"),c=d=>{var u,f;l.ariaLabel=((f=(u=this.options.a11y)==null?void 0:u.checkboxLabel)==null?void 0:f.call(u,d,l.checked))||`Task item checkbox for ${d.textContent||"empty task item"}`};return c(t),i.contentEditable="false",l.type="checkbox",l.addEventListener("mousedown",d=>d.preventDefault()),l.addEventListener("change",d=>{if(!r.isEditable&&!this.options.onReadOnlyChecked){l.checked=!l.checked;return}let{checked:u}=d.target;r.isEditable&&typeof n=="function"&&r.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:f})=>{let h=n();if(typeof h!="number")return!1;let p=f.doc.nodeAt(h);return f.setNodeMarkup(h,void 0,{...p?.attrs,checked:u}),!0}).run(),!r.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(t,u)||(l.checked=!l.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([d,u])=>{o.setAttribute(d,u)}),o.dataset.checked=t.attrs.checked,l.checked=t.attrs.checked,i.append(l,s),o.append(i,a),Object.entries(e).forEach(([d,u])=>{o.setAttribute(d,u)}),{dom:o,contentDOM:a,update:d=>d.type!==this.type?!1:(o.dataset.checked=d.attrs.checked,l.checked=d.attrs.checked,c(d),!0)}}},addInputRules(){return[Ye({find:Bb,type:this.type,getAttributes:t=>({checked:t[t.length-1]==="x"})})]}}),$b=$.create({name:"taskList",addOptions(){return{itemTypeName:"taskItem",HTMLAttributes:{}}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:t}){return["ul",O(this.options.HTMLAttributes,t,{"data-type":this.name}),0]},parseMarkdown:(t,e)=>e.createNode("taskList",{},e.parseChildren(t.items||[])),renderMarkdown:(t,e)=>t.content?e.renderChildren(t.content,`
`):"",markdownTokenizer:{name:"taskList",level:"block",start(t){var e;let n=(e=t.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))==null?void 0:e.index;return n!==void 0?n:-1},tokenize(t,e,n){let r=i=>{let s=mo(i,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:l=>({indentLevel:l[1].length,mainContent:l[4],checked:l[3].toLowerCase()==="x"}),createToken:(l,a)=>({type:"taskItem",raw:"",mainContent:l.mainContent,indentLevel:l.indentLevel,checked:l.checked,text:l.mainContent,tokens:n.inlineTokens(l.mainContent),nestedTokens:a}),customNestedParser:r},n);return s?[{type:"taskList",raw:s.raw,items:s.items}]:n.blockTokens(i)},o=mo(t,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:i=>({indentLevel:i[1].length,mainContent:i[4],checked:i[3].toLowerCase()==="x"}),createToken:(i,s)=>({type:"taskItem",raw:"",mainContent:i.mainContent,indentLevel:i.indentLevel,checked:i.checked,text:i.mainContent,tokens:n.inlineTokens(i.mainContent),nestedTokens:s}),customNestedParser:r},n);if(o)return{type:"taskList",raw:o.raw,items:o.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:t})=>t.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}}),KC=W.create({name:"listKit",addExtensions(){let t=[];return this.options.bulletList!==!1&&t.push(Hl.configure(this.options.bulletList)),this.options.listItem!==!1&&t.push($l.configure(this.options.listItem)),this.options.listKeymap!==!1&&t.push(Ob.configure(this.options.listKeymap)),this.options.orderedList!==!1&&t.push(_l.configure(this.options.orderedList)),this.options.taskItem!==!1&&t.push(Lb.configure(this.options.taskItem)),this.options.taskList!==!1&&t.push(Bb.configure(this.options.taskList)),t}});var ti=(t,e,n={})=>{t.dom.closest("form")?.dispatchEvent(new CustomEvent(e,{composed:!0,cancelable:!0,detail:n}))},bf=({files:t,acceptedTypes:e,acceptedTypesValidationMessage:n,maxSize:r,maxSizeValidationMessage:o})=>{for(let i of t){if(e&&!e.includes(i.type))return n;if(r&&i.size>+r*1024)return o}return null},zb=({editor:t,acceptedTypes:e,acceptedTypesValidationMessage:n,get$WireUsing:r,key:o,maxSize:i,maxSizeValidationMessage:s,statePath:l,uploadingMessage:a})=>{let c=d=>r().callSchemaComponentMethod(o,"getUploadedFileAttachmentTemporaryUrl",{attachment:d});return new L({key:new z("localFiles"),props:{handleDrop(d,u){if(!u.dataTransfer?.files.length)return!1;let f=Array.from(u.dataTransfer.files),h=bf({files:f,acceptedTypes:e,acceptedTypesValidationMessage:n,maxSize:i,maxSizeValidationMessage:s});if(h)return d.dom.dispatchEvent(new CustomEvent("rich-editor-file-validation-message",{bubbles:!0,detail:{key:o,livewireId:r().id,validationMessage:h}})),!1;if(!f.length)return!1;ti(d,"form-processing-started",{message:a}),u.preventDefault(),u.stopPropagation();let p=d.posAtCoords({left:u.clientX,top:u.clientY});return f.forEach((m,g)=>{t.setEditable(!1),d.dom.dispatchEvent(new CustomEvent("rich-editor-uploading-file",{bubbles:!0,detail:{key:o,livewireId:r().id}}));let y=("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,b=>(b^crypto.getRandomValues(new Uint8Array(1))[0]&15>>b/4).toString(16));r().upload(`componentFileAttachments.${l}.${y}`,m,()=>{c(y).then(b=>{b&&(t.chain().insertContentAt(p?.pos??0,{type:"image",attrs:{id:y,src:b}}).run(),t.setEditable(!0),d.dom.dispatchEvent(new CustomEvent("rich-editor-uploaded-file",{bubbles:!0,detail:{key:o,livewireId:r().id}})),g===f.length-1&&ti(d,"form-processing-finished"))})})}),!0},handlePaste(d,u){if(!u.clipboardData?.files.length||u.clipboardData?.getData("text").length)return!1;let f=Array.from(u.clipboardData.files),h=bf({files:f,acceptedTypes:e,acceptedTypesValidationMessage:n,maxSize:i,maxSizeValidationMessage:s});return h?(d.dom.dispatchEvent(new CustomEvent("rich-editor-file-validation-message",{bubbles:!0,detail:{key:o,livewireId:r().id,validationMessage:h}})),!1):f.length?(u.preventDefault(),u.stopPropagation(),ti(d,"form-processing-started",{message:a}),f.forEach((p,m)=>{t.setEditable(!1),d.dom.dispatchEvent(new CustomEvent("rich-editor-uploading-file",{bubbles:!0,detail:{key:o,livewireId:r().id}}));let g=("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,y=>(y^crypto.getRandomValues(new Uint8Array(1))[0]&15>>y/4).toString(16));r().upload(`componentFileAttachments.${l}.${g}`,p,()=>{c(g).then(y=>{y&&(t.chain().insertContentAt(t.state.selection.anchor,{type:"image",attrs:{id:g,src:y}}).run(),t.setEditable(!0),d.dom.dispatchEvent(new CustomEvent("rich-editor-uploaded-file",{bubbles:!0,detail:{key:o,livewireId:r().id}})),m===f.length-1&&ti(d,"form-processing-finished"))})})}),!0):!1}}})},xf=W.create({name:"localFiles",addOptions(){return{acceptedTypes:[],acceptedTypesValidationMessage:null,key:null,maxSize:null,maxSizeValidationMessage:null,statePath:null,uploadingMessage:null,get$WireUsing:null}},addProseMirrorPlugins(){return[zb({editor:this.editor,...this.options})]}});function Hb(t){var e;let{ Line truncated `):"",markdownTokenizer:{name:"taskList",level:"block",start(t){var e;let n=(e=t.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))==null?void 0:e.index;return n!==void 0?n:-1},tokenize(t,e,n){let r=i=>{let s=mo(i,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:l=>({indentLevel:l[1].length,mainContent:l[4],checked:l[3].toLowerCase()==="x"}),createToken:(l,a)=>({type:"taskItem",raw:"",mainContent:l.mainContent,indentLevel:l.indentLevel,checked:l.checked,text:l.mainContent,tokens:n.inlineTokens(l.mainContent),nestedTokens:a}),customNestedParser:r},n);return s?[{type:"taskList",raw:s.raw,items:s.items}]:n.blockTokens(i)},o=mo(t,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:i=>({indentLevel:i[1].length,mainContent:i[4],checked:i[3].toLowerCase()==="x"}),createToken:(i,s)=>({type:"taskItem",raw:"",mainContent:i.mainContent,indentLevel:i.indentLevel,checked:i.checked,text:i.mainContent,tokens:n.inlineTokens(i.mainContent),nestedTokens:s}),customNestedParser:r},n);if(o)return{type:"taskList",raw:o.raw,items:o.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:t})=>t.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}}),GC=j.create({name:"listKit",addExtensions(){let t=[];return this.options.bulletList!==!1&&t.push(Hl.configure(this.options.bulletList)),this.options.listItem!==!1&&t.push($l.configure(this.options.listItem)),this.options.listKeymap!==!1&&t.push(Db.configure(this.options.listKeymap)),this.options.orderedList!==!1&&t.push(_l.configure(this.options.orderedList)),this.options.taskItem!==!1&&t.push(Hb.configure(this.options.taskItem)),this.options.taskList!==!1&&t.push($b.configure(this.options.taskList)),t}});var ti=(t,e,n={})=>{t.dom.closest("form")?.dispatchEvent(new CustomEvent(e,{composed:!0,cancelable:!0,detail:n}))},xf=({files:t,acceptedTypes:e,acceptedTypesValidationMessage:n,maxSize:r,maxSizeValidationMessage:o})=>{for(let i of t){if(e&&!e.includes(i.type))return n;if(r&&i.size>+r*1024)return o}return null},Fb=({editor:t,acceptedTypes:e,acceptedTypesValidationMessage:n,get$WireUsing:r,key:o,maxSize:i,maxSizeValidationMessage:s,statePath:l,uploadingMessage:a})=>{let c=d=>r().callSchemaComponentMethod(o,"getUploadedFileAttachmentTemporaryUrl",{attachment:d});return new L({key:new H("localFiles"),props:{handleDrop(d,u){if(!u.dataTransfer?.files.length)return!1;let f=Array.from(u.dataTransfer.files),h=xf({files:f,acceptedTypes:e,acceptedTypesValidationMessage:n,maxSize:i,maxSizeValidationMessage:s});if(h)return d.dom.dispatchEvent(new CustomEvent("rich-editor-file-validation-message",{bubbles:!0,detail:{key:o,livewireId:r().id,validationMessage:h}})),!1;if(!f.length)return!1;ti(d,"form-processing-started",{message:a}),u.preventDefault(),u.stopPropagation();let p=d.posAtCoords({left:u.clientX,top:u.clientY});return f.forEach((m,g)=>{t.setEditable(!1),d.dom.dispatchEvent(new CustomEvent("rich-editor-uploading-file",{bubbles:!0,detail:{key:o,livewireId:r().id}}));let y=("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,b=>(b^crypto.getRandomValues(new Uint8Array(1))[0]&15>>b/4).toString(16));r().upload(`componentFileAttachments.${l}.${y}`,m,()=>{c(y).then(b=>{b&&(t.chain().insertContentAt(p?.pos??0,{type:"image",attrs:{id:y,src:b}}).run(),t.setEditable(!0),d.dom.dispatchEvent(new CustomEvent("rich-editor-uploaded-file",{bubbles:!0,detail:{key:o,livewireId:r().id}})),g===f.length-1&&ti(d,"form-processing-finished"))})})}),!0},handlePaste(d,u){if(!u.clipboardData?.files.length||u.clipboardData?.getData("text").length)return!1;let f=Array.from(u.clipboardData.files),h=xf({files:f,acceptedTypes:e,acceptedTypesValidationMessage:n,maxSize:i,maxSizeValidationMessage:s});return h?(d.dom.dispatchEvent(new CustomEvent("rich-editor-file-validation-message",{bubbles:!0,detail:{key:o,livewireId:r().id,validationMessage:h}})),!1):f.length?(u.preventDefault(),u.stopPropagation(),ti(d,"form-processing-started",{message:a}),f.forEach((p,m)=>{t.setEditable(!1),d.dom.dispatchEvent(new CustomEvent("rich-editor-uploading-file",{bubbles:!0,detail:{key:o,livewireId:r().id}}));let g=("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,y=>(y^crypto.getRandomValues(new Uint8Array(1))[0]&15>>y/4).toString(16));r().upload(`componentFileAttachments.${l}.${g}`,p,()=>{c(g).then(y=>{y&&(t.chain().insertContentAt(t.state.selection.anchor,{type:"image",attrs:{id:g,src:y}}).run(),t.setEditable(!0),d.dom.dispatchEvent(new CustomEvent("rich-editor-uploaded-file",{bubbles:!0,detail:{key:o,livewireId:r().id}})),m===f.length-1&&ti(d,"form-processing-finished"))})})}),!0):!1}}})},kf=j.create({name:"localFiles",addOptions(){return{acceptedTypes:[],acceptedTypesValidationMessage:null,key:null,maxSize:null,maxSizeValidationMessage:null,statePath:null,uploadingMessage:null,get$WireUsing:null}},addProseMirrorPlugins(){return[Fb({editor:this.editor,...this.options})]}});function _b(t){var e;let{ Line truncated
`,f=new Array(s).fill(0).map((p,m)=>d&&c[m]&&c[m].text||"");return u+=`| ${f.map((p,m)=>a(p,l[m])).join(" | ")} | `,f=new Array(s).fill(0).map((p,m)=>d&&c[m]&&c[m].text||"");return u+=`| ${f.map((p,m)=>a(p,l[m])).join(" | ")} |
`,u+=`| ${l.map(p=>"-".repeat(Math.max(3,p))).join(" | ")} | `,u+=`| ${l.map(p=>"-".repeat(Math.max(3,p))).join(" | ")} |
`,(d?i.slice(1):i).forEach(p=>{u+=`| ${new Array(s).fill(0).map((m,g)=>a(p[g]&&p[g].text||"",l[g])).join(" | ")} | `,(d?i.slice(1):i).forEach(p=>{u+=`| ${new Array(s).fill(0).map((m,g)=>a(p[g]&&p[g].text||"",l[g])).join(" | ")} |
`}),u}var Kx=jx,Ux=H.create({name:"table",addOptions(){return{HTMLAttributes:{},resizable:!1,handleWidth:5,cellMinWidth:25,View:zx,lastColumnResizable:!0,allowTableNodeSelection:!1}},content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML(){return[{tag:"table"}]},renderHTML({node:t,HTMLAttributes:e}){let{colgroup:n,tableWidth:r,tableMinWidth:o}=Hx(t,this.options.cellMinWidth);return["table",N(this.options.HTMLAttributes,e,{style:r?`width: ${r}`:`min-width: ${o}`}),n,["tbody",0]]},parseMarkdown:(t,e)=>{let n=[];if(t.header){let r=[];t.header.forEach(o=>{r.push(e.createNode("tableHeader",{},[{type:"paragraph",content:e.parseInline(o.tokens)}]))}),n.push(e.createNode("tableRow",{},r))}return t.rows&&t.rows.forEach(r=>{let o=[];r.forEach(i=>{o.push(e.createNode("tableCell",{},[{type:"paragraph",content:e.parseInline(i.tokens)}]))}),n.push(e.createNode("tableRow",{},o))}),e.createNode("table",void 0,n)},renderMarkdown:(t,e)=>Kx(t,e),addCommands(){return{insertTable:({rows:t=3,cols:e=3,withHeaderRow:n=!0}={})=>({tr:r,dispatch:o,editor:i})=>{let s=Fx(i.schema,t,e,n);if(o){let l=r.selection.from+1;r.replaceSelectionWith(s).scrollIntoView().setSelection(R.near(r.doc.resolve(l)))}return!0},addColumnBefore:()=>({state:t,dispatch:e})=>Vf(t,e),addColumnAfter:()=>({state:t,dispatch:e})=>Wf(t,e),deleteColumn:()=>({state:t,dispatch:e})=>jf(t,e),addRowBefore:()=>({state:t,dispatch:e})=>Uf(t,e),addRowAfter:()=>({state:t,dispatch:e})=>qf(t,e),deleteRow:()=>({state:t,dispatch:e})=>Jf(t,e),deleteTable:()=>({state:t,dispatch:e})=>Yf(t,e),mergeCells:()=>({state:t,dispatch:e})=>Yl(t,e),splitCell:()=>({state:t,dispatch:e})=>Ql(t,e),toggleHeaderColumn:()=>({state:t,dispatch:e})=>An("column")(t,e),toggleHeaderRow:()=>({state:t,dispatch:e})=>An("row")(t,e),toggleHeaderCell:()=>({state:t,dispatch:e})=>Xf(t,e),mergeOrSplit:()=>({state:t,dispatch:e})=>Yl(t,e)?!0:Ql(t,e),setCellAttribute:(t,e)=>({state:n,dispatch:r})=>Gf(t,e)(n,r),goToNextCell:()=>({state:t,dispatch:e})=>Zl(1)(t,e),goToPreviousCell:()=>({state:t,dispatch:e})=>Zl(-1)(t,e),fixTables:()=>({state:t,dispatch:e})=>(e&&Xl(t),!0),setCellSelection:t=>({tr:e,dispatch:n})=>{if(n){let r=G.create(e.doc,t.anchorCell,t.headCell);e.setSelection(r)}return!0}}},addKeyboardShortcuts(){return{Tab:()=>this.editor.commands.goToNextCell()?!0:this.editor.can().addRowAfter()?this.editor.chain().addRowAfter().goToNextCell().run():!1,"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:ai,"Mod-Backspace":ai,Delete:ai,"Mod-Delete":ai}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[Zf({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,defaultCellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],th({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema(t){let e={name:t.name,options:t.options,storage:t.storage};return{tableRole:q(B(t,"tableRole",e))}}}),oh=W.create({name:"tableKit",addExtensions(){let t=[];return this.options.table!==!1&&t.push(Ux.configure(this.options.table)),this.options.tableCell!==!1&&t.push(Px.configure(this.options.tableCell)),this.options.tableHeader!==!1&&t.push(Lx.configure(this.options.tableHeader)),this.options.tableRow!==!1&&t.push(Bx.configure(this.options.tableRow)),t}});var qx=H.create({name:"text",group:"inline",parseMarkdown:t=>({type:"text",text:t.text||""}),renderMarkdown:t=>t.text||""}),ih=qx;var Jx=W.create({name:"textAlign",addOptions(){return{types:[],alignments:["left","center","right","justify"],defaultAlignment:null}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:t=>{let e=t.style.textAlign;return this.options.alignments.includes(e)?e:this.options.defaultAlignment},renderHTML:t=>t.textAlign?{style:`text-align: ${t.textAlign}`}:{}}}}]},addCommands(){return{setTextAlign:t=>({commands:e})=>this.options.alignments.includes(t)?this.options.types.map(n=>e.updateAttributes(n,{textAlign:t})).every(n=>n):!1,unsetTextAlign:()=>({commands:t})=>this.options.types.map(e=>t.resetAttributes(e,"textAlign")).every(e=>e),toggleTextAlign:t=>({editor:e,commands:n})=>this.options.alignments.includes(t)?e.isActive({textAlign:t})?n.unsetTextAlign():n.setTextAlign(t):!1}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}}),sh=Jx;var Gx=Z.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["u",N(this.options.HTMLAttributes,t),0]},parseMarkdown(t,e){return e.applyMark(this.name||"underline",e.parseInline(t.tokens||[]))},renderMarkdown(t Line truncated `}),u}var Jw=qw,Gw=$.create({name:"table",addOptions(){return{HTMLAttributes:{},resizable:!1,renderWrapper:!1,handleWidth:5,cellMinWidth:25,View:Fw,lastColumnResizable:!0,allowTableNodeSelection:!1}},content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML(){return[{tag:"table"}]},renderHTML({node:t,HTMLAttributes:e}){let{colgroup:n,tableWidth:r,tableMinWidth:o}=_w(t,this.options.cellMinWidth),i=["table",O(this.options.HTMLAttributes,e,{style:r?`width: ${r}`:`min-width: ${o}`}),n,["tbody",0]];return this.options.renderWrapper?["div",{class:"tableWrapper"},i]:i},parseMarkdown:(t,e)=>{let n=[];if(t.header){let r=[];t.header.forEach(o=>{r.push(e.createNode("tableHeader",{},[{type:"paragraph",content:e.parseInline(o.tokens)}]))}),n.push(e.createNode("tableRow",{},r))}return t.rows&&t.rows.forEach(r=>{let o=[];r.forEach(i=>{o.push(e.createNode("tableCell",{},[{type:"paragraph",content:e.parseInline(i.tokens)}]))}),n.push(e.createNode("tableRow",{},o))}),e.createNode("table",void 0,n)},renderMarkdown:(t,e)=>Jw(t,e),addCommands(){return{insertTable:({rows:t=3,cols:e=3,withHeaderRow:n=!0}={})=>({tr:r,dispatch:o,editor:i})=>{let s=Ww(i.schema,t,e,n);if(o){let l=r.selection.from+1;r.replaceSelectionWith(s).scrollIntoView().setSelection(R.near(r.doc.resolve(l)))}return!0},addColumnBefore:()=>({state:t,dispatch:e})=>jf(t,e),addColumnAfter:()=>({state:t,dispatch:e})=>Kf(t,e),deleteColumn:()=>({state:t,dispatch:e})=>Uf(t,e),addRowBefore:()=>({state:t,dispatch:e})=>Jf(t,e),addRowAfter:()=>({state:t,dispatch:e})=>Gf(t,e),deleteRow:()=>({state:t,dispatch:e})=>Xf(t,e),deleteTable:()=>({state:t,dispatch:e})=>Zf(t,e),mergeCells:()=>({state:t,dispatch:e})=>Yl(t,e),splitCell:()=>({state:t,dispatch:e})=>Ql(t,e),toggleHeaderColumn:()=>({state:t,dispatch:e})=>An("column")(t,e),toggleHeaderRow:()=>({state:t,dispatch:e})=>An("row")(t,e),toggleHeaderCell:()=>({state:t,dispatch:e})=>Qf(t,e),mergeOrSplit:()=>({state:t,dispatch:e})=>Yl(t,e)?!0:Ql(t,e),setCellAttribute:(t,e)=>({state:n,dispatch:r})=>Yf(t,e)(n,r),goToNextCell:()=>({state:t,dispatch:e})=>Zl(1)(t,e),goToPreviousCell:()=>({state:t,dispatch:e})=>Zl(-1)(t,e),fixTables:()=>({state:t,dispatch:e})=>(e&&Xl(t),!0),setCellSelection:t=>({tr:e,dispatch:n})=>{if(n){let r=G.create(e.doc,t.anchorCell,t.headCell);e.setSelection(r)}return!0}}},addKeyboardShortcuts(){return{Tab:()=>this.editor.commands.goToNextCell()?!0:this.editor.can().addRowAfter()?this.editor.chain().addRowAfter().goToNextCell().run():!1,"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:ai,"Mod-Backspace":ai,Delete:ai,"Mod-Delete":ai}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[th({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,defaultCellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],rh({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema(t){let e={name:t.name,options:t.options,storage:t.storage};return{tableRole:J(z(t,"tableRole",e))}}}),sh=j.create({name:"tableKit",addExtensions(){let t=[];return this.options.table!==!1&&t.push(Gw.configure(this.options.table)),this.options.tableCell!==!1&&t.push(Bw.configure(this.options.tableCell)),this.options.tableHeader!==!1&&t.push(Hw.configure(this.options.tableHeader)),this.options.tableRow!==!1&&t.push($w.configure(this.options.tableRow)),t}});var Xw=$.create({name:"text",group:"inline",parseMarkdown:t=>({type:"text",text:t.text||""}),renderMarkdown:t=>t.text||""}),lh=Xw;var Yw=j.create({name:"textAlign",addOptions(){return{types:[],alignments:["left","center","right","justify"],defaultAlignment:null}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:t=>{let e=t.style.textAlign;return this.options.alignments.includes(e)?e:this.options.defaultAlignment},renderHTML:t=>t.textAlign?{style:`text-align: ${t.textAlign}`}:{}}}}]},addCommands(){return{setTextAlign:t=>({commands:e})=>this.options.alignments.includes(t)?this.options.types.map(n=>e.updateAttributes(n,{textAlign:t})).every(n=>n):!1,unsetTextAlign:()=>({commands:t})=>this.options.types.map(e=>t.resetAttributes(e,"textAlign")).every(e=>e),toggleTextAlign:t=>({editor:e,commands:n})=>this.options.alignments.includes(t)?e.isActive({textAlign:t})?n.unsetTextAlign():n.setTextAlign(t):!1}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}}),ah=Yw;var Qw=Z.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["u",O(this.options.HTMLAttributes,t),0]},parseMarkdown(t,e){return Line truncated
+26 -36
View File
@@ -1,45 +1,42 @@
body, body {
.base { font-family: Verdana, Tahoma, sans-serif;
font-family: Helvetica, Arial, sans-serif; font-size: 9pt;
font-size: 12px; font-weight: normal;
font-weight: 100; line-height: 13pt;
line-height: 18px;
margin: 0;
} }
/** POSITION FIXED */ /** POSITION FIXED */
#deckblatt-gutachter { #deckblatt-gutachter {
position: absolute; position: absolute;
top: 12mm; top: 12mm;
width: 185mm; width: 190mm;
} }
#deckblatt-logo-gutachter { #deckblatt-logo-gutachter {
width: 185mm; width: 190mm;
height: 12mm; height: 12mm;
background-size: contain; background-size: contain;
background-repeat: no-repeat; background-repeat: no-repeat;
margin-bottom: 1mm; margin-bottom: 1mm;
} }
#deckblatt-gutachten { #deckblatt-projekt {
position: absolute; position: absolute;
font-size: 24px;
top: 90mm; top: 90mm;
width: 185mm; width: 190mm;
} }
#deckblatt-festsetzung { #deckblatt-festsetzung {
position: absolute; position: absolute;
text-align: right; text-align: right;
top: 130mm; top: 170mm;
width: 185mm; width: 190mm;
} }
#deckblatt-auftraggeber { #deckblatt-auftraggeber {
position: absolute; position: absolute;
top: 250mm; top: 250mm;
width: 185mm; width: 190mm;
text-align: right; text-align: right;
} }
@@ -58,36 +55,29 @@ body,
.header { .header {
padding: 1.3mm 3mm; padding: 1.3mm 3mm;
margin: 9mm 0 5mm; margin: 9mm 0 5mm;
font-size: 1.5rem; font-size: 14px;
border: 0.5px solid #e5e7eb; border: 0.5px solid #e5e7eb;
background-color: #eff6ff; background-color: #eff6ff;
} }
h1 { /* h1 {
font-size: 22px; font-size: 22pt;
line-height: 28px; line-height: 26pt;
padding-left: 5px;
margin: 0;
} }
h2 { h2 {
font-size: 16px; font-size: 18pt;
line-height: 22px; line-height: 20pt;
padding-left: 5px;
margin: 0;
} }
h3 { h3 {
font-size: 14px; font-size: 14pt;
line-height: 18px; line-height: auto;
padding-left: 5px; } */
margin: 0;
}
.small { .small {
font-size: 10px; font-size: 7pt;
line-height: 14px; line-height: 9pt;
margin: 0;
} }
a { a {
@@ -132,7 +122,7 @@ a {
LAYOUT LAYOUT
*/ */
p { p {
margin: auto 5px; padding-top: 1mm;
} }
@@ -184,11 +174,11 @@ table {
} }
td { td {
padding: 0.5rem; padding: 3px;
} }
th { th {
padding: 0.5rem auto 1rem; padding: 3px auto 6px;
} }
.wp10 { .wp10 {
+10 -7
View File
@@ -15,7 +15,8 @@
<x-slot name="heading"> <x-slot name="heading">
2. Vertragsgegenstand 2. Vertragsgegenstand
</x-slot> </x-slot>
Der Anbieter stellt dem Kunden eine webbasierte Software zur Verfügung, mit der der Kunde die Nutzwertberechnung Der Anbieter stellt dem Benutzer eine webbasierte Software zur Verfügung, mit der der Kunde die
Nutzwertberechnung
für Bauprojekte durchführen kann. Die Software wird als Software-as-a-Service (SaaS) angeboten, die über das für Bauprojekte durchführen kann. Die Software wird als Software-as-a-Service (SaaS) angeboten, die über das
Internet zugänglich ist. Internet zugänglich ist.
</x-filament::section> </x-filament::section>
@@ -25,7 +26,7 @@
</x-slot> </x-slot>
<ol class="list-[lower-alpha]"> <ol class="list-[lower-alpha]">
<li> <li>
Der Anbieter gewährt dem Kunden ein nicht-exklusives, nicht übertragbares, zeitlich begrenztes Recht Der Anbieter gewährt dem Benutzer ein nicht-exklusives, nicht übertragbares, zeitlich begrenztes Recht
zur Nutzung zur Nutzung
der Software gemäß den Bestimmungen dieses Vertrages. der Software gemäß den Bestimmungen dieses Vertrages.
</li> </li>
@@ -81,7 +82,7 @@
Der Anbieter verpflichtet sich zu einer Verfügbarkeit der Software von 99% pro Jahr, mit Ausnahme Der Anbieter verpflichtet sich zu einer Verfügbarkeit der Software von 99% pro Jahr, mit Ausnahme
geplanter geplanter
Wartungsfenster und unvorhergesehener technischer Störungen. Der Anbieter wird sich bemühen, geplante Wartungsfenster und unvorhergesehener technischer Störungen. Der Anbieter wird sich bemühen, geplante
Wartungsarbeiten außerhalb der üblichen Arbeitszeiten durchzuführen und diese dem Kunden im Voraus Wartungsarbeiten außerhalb der üblichen Arbeitszeiten durchzuführen und diese dem Benutzer im Voraus
mitzuteilen. mitzuteilen.
</li> </li>
<li> <li>
@@ -140,9 +141,10 @@
verarbeiten. verarbeiten.
</li> </li>
<li> <li>
Der Anbieter verpflichtet sich, die Daten des Kunden vertraulich zu behandeln und nur im Einklang mit Der Anbieter verpflichtet sich, die Daten des Benutzer vertraulich zu behandeln und nur im Einklang mit
den den
geltenden Datenschutzgesetzen zu verwenden. Der Anbieter wird die Daten nicht ohne Zustimmung des Kunden geltenden Datenschutzgesetzen zu verwenden. Der Anbieter wird die Daten nicht ohne Zustimmung des
Benutzer
an Dritte an Dritte
weitergeben, es sei denn, dies ist gesetzlich erforderlich. weitergeben, es sei denn, dies ist gesetzlich erforderlich.
</li> </li>
@@ -167,7 +169,7 @@
</li> </li>
<li> <li>
Der Anbieter übernimmt keine Haftung für Schäden, die durch unsachgemäße Nutzung der Software durch den Der Anbieter übernimmt keine Haftung für Schäden, die durch unsachgemäße Nutzung der Software durch den
Kunden Benutzer
entstehen. entstehen.
</li> </li>
</ol> </ol>
@@ -212,7 +214,8 @@
</x-slot> </x-slot>
<ol class="list-[lower-alpha]"> <ol class="list-[lower-alpha]">
<li> <li>
Der Anbieter behält sich das Recht vor, diese AGB jederzeit zu ändern. Änderungen werden dem Kunden per Der Anbieter behält sich das Recht vor, diese AGB jederzeit zu ändern. Änderungen werden dem Benutzer
per
E-Mail E-Mail
oder über die Software selbst mitgeteilt. oder über die Software selbst mitgeteilt.
</li> </li>
+42
View File
@@ -0,0 +1,42 @@
<?php
use Filament\Forms\Components\RichEditor\RichContentRenderer;
use Illuminate\Support\HtmlString;
?>
<style>
td {
padding: 2mm 7mm;
}
</style>
<x-filament::fieldset style="text-wrap: wrap;">
<x-slot name="label">
@if ($record->id == 11)
<span class="text-blue-600 dark:text-blue-400">Textblock unter Title am Deckblatt</span>
@elseif ($record->id == 6)
<span class="text-blue-600 dark:text-blue-400">Textblock vor der Tabelle</span>
@elseif($record->textblock2 != '')
<span class="text-blue-600 dark:text-blue-400">Textblock Abschnitt A</span>
@else
<span class="text-blue-600 dark:text-blue-400">Textblock</span>
@endif
</x-slot>
{{ new HtmlString(RichContentRenderer::make($record->textblock)->toHtml()) }}
</x-filament::fieldset>
<?php
if($record->textblock2 != ""){
?>
<x-filament::fieldset style="text-wrap: wrap;">
<x-slot name="label">
@if ($record->id == 11)
<span class="text-blue-600 dark:text-blue-400">Textblock unter Feststellung am Deckblatt</span>
@elseif ($record->id == 6)
<span class="text-blue-600 dark:text-blue-400">Textblock nach der Tabelle</span>
@else
<span class="text-blue-600 dark:text-blue-400">Textblock Abschnitt B</span>
@endif
</x-slot>
{{ new HtmlString(RichContentRenderer::make($record->textblock2)->toHtml()) }}
</x-filament::fieldset>
<?php
}
?>
Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

+37
View File
@@ -0,0 +1,37 @@
"EG","Böschung N","76,83"
"EG","Böschung O"," 9,87"
"EG","Böschung S","11,55"
"EG","Böschung W"," 6,81"
"EG","Erschließung EG","51,32"
"EG","Freifläche W","39,93"
"EG","Gemeinschaftsgarten","53,50"
"EG","Gemeinschaftsraum ","50,58"
"EG","Rampe ","35,21"
"EG","Spielplatz","130,59"
"EG","Stellplatz Besucher B01H","21,68"
"EG","Stellplatz Besucher B02H","16,92"
"EG","Stellplatz Besucher B03 ","13,80"
"EG","Stellplatz Besucher B04 ","13,82"
"EG","Straße ","38,09"
"EG","Technik","11,00"
"EG","Terrasse ","13,27"
"EG","Vorplatz/Begegnungszone ","51,18"
"EG","WC "," 3,55"
"EG","Zufahrt","49,42"
"EG","Zugang ","34,72"
"OG1","Erschließung OG1","51,65"
"OG2","Erschließung OG2","38,90"
"UG","Böschung S","53,36"
"UG","ELO "," 7,22"
"UG","Erschließung UG","25,28"
"UG","Fahrräder / Sportger. / KIWA ","51,96"
"UG","Gang KA","32,11"
"UG","Hausmeister ","12,46"
"UG","Müllraum ","20,44"
"UG","Rampe ","96,07"
"UG","Stellplatz APG18 / 600 ","12,68"
"UG","Stellplatz APG19 / 601 ","13,18"
"UG","Stellplatz APG20 / 602 ","13,18"
"UG","Stgh. ","10,90"
"UG","Technik","13,40"
"UG","Tiefgarage","208,45"
+126
View File
@@ -0,0 +1,126 @@
"APG01 ","UG","Stellplatz+","14,25"
"APG02 ","UG","Stellplatz ","13,00"
"APG03 ","UG","Stellplatz+","16,20"
"APG04 ","UG","Stellplatz ","13,00"
"APG05 ","UG","Stellplatz ","13,00"
"APG06 ","UG","Stellplatz ","13,00"
"APG07 ","UG","Stellplatz+","14,25"
"APG08 ","UG","Stellplatz+","14,25"
"APG09 ","UG","Stellplatz ","13,30"
"APG10 ","UG","Stellplatz+","14,04"
"APG11 ","UG","Stellplatz ","13,00"
"APG12 ","UG","Stellplatz+","14,25"
"APG13 ","UG","Stellplatz ","13,00"
"APG14 ","UG","Stellplatz ","13,00"
"APG15 ","UG","Stellplatz ","12,50"
"APG16 ","UG","Stellplatz+","14,25"
"APG17 ","UG","Stellplatz+","14,45"
"W01 ","UG","Bad"," 5,99"
"W01 ","UG","Garten G01 ","31,93"
"W01 ","UG","Keller KA01"," 3,50"
"W01 ","UG","Terrasse "," 7,59"
"W01 ","UG","Vorraum"," 4,21"
"W01 ","UG","Wohnen/Kochen","31,61"
"W01 ","UG","Zimmer ","12,36"
"W02 ","UG","Bad"," 5,99"
"W02 ","UG","Garten G02 ","58,73"
"W02 ","UG","Keller KA02"," 3,50"
"W02 ","UG","Terrasse ","16,32"
"W02 ","UG","Vorraum"," 9,53"
"W02 ","UG","Wohnen/Kochen","26,59"
"W02 ","UG","Zimmer ","12,29"
"W03 ","EG","Bad"," 5,78"
"W03 ","EG","Garten G03 "," 114,69"
"W03 ","EG","Terrasse ","16,96"
"W03 ","EG","Vorraum"," 8,34"
"W03 ","EG","Wohnen/Kochen","25,30"
"W03 ","EG","Zimmer ","13,30"
"W03 ","UG","Keller KA03"," 3,50"
"W04 ","EG","Bad"," 5,80"
"W04 ","EG","Garten G04 ","40,34"
"W04 ","EG","Terrasse ","11,37"
"W04 ","EG","Vorraum"," 4,21"
"W04 ","EG","Wohnen/Kochen","25,06"
"W04 ","EG","Zimmer ","17,10"
"W04 ","UG","Keller KA04"," 3,47"
"W05 ","EG","Bad"," 5,80"
"W05 ","EG","Garten G05 ","79,84"
"W05 ","EG","Terrasse "," 8,05"
"W05 ","EG","Vorraum"," 4,21"
"W05 ","EG","Wohnen/Kochen","31,70"
"W05 ","EG","Zimmer ","12,53"
"W05 ","UG","KellerKA05 "," 3,67"
"W06 ","EG","Bad"," 5,96"
"W06 ","EG","Balkon "," 6,37"
"W06 ","EG","Vorraum"," 4,21"
"W06 ","EG","Wohnen/Kochen","31,73"
"W06 ","EG","Zimmer ","12,51"
"W06 ","UG","Keller KA06"," 3,52"
"W07 ","EG","Bad"," 5,99"
"W07 ","EG","Balkon ","18,68"
"W07 ","EG","Vorraum/Gang "," 9,53"
"W07 ","EG","Wohnen/Kochen","26,75"
"W07 ","EG","Zimmer ","12,44"
"W07 ","UG","Keller KA07"," 3,52"
"W08 ","OG1 ","Bad"," 5,99"
"W08 ","OG1 ","Balkon ","11,73"
"W08 ","OG1 ","Vorraum/Gang "," 9,81"
"W08 ","OG1 ","Wohnen/Kochen","35,80"
"W08 ","OG1 ","Zimmer ","13,39"
"W08 ","UG","Keller KA08"," 3,52"
"W09 ","OG1 ","Bad"," 5,78"
"W09 ","OG1 ","Balkon ","17,42"
"W09 ","OG1 ","Vorraum"," 8,34"
"W09 ","OG1 ","Wohnen/Kochen","25,30"
"W09 ","OG1 ","Zimmer ","13,30"
"W09 ","UG","Keller KA09"," 3,47"
"W10 ","OG1 ","Bad"," 5,99"
"W10 ","OG1 ","Balkon "," 6,45"
"W10 ","OG1 ","Vorraum"," 4,21"
"W10 ","OG1 ","Wohnen/Kochen","31,68"
"W10 ","OG1 ","Zimmer ","12,50"
"W10 ","UG","Keller KA10"," 3,65"
"W11 ","OG1 ","Bad"," 5,99"
"W11 ","OG1 ","Balkon "," 6,20"
"W11 ","OG1 ","Vorraum"," 4,21"
"W11 ","OG1 ","Wohnen/Kochen","31,58"
"W11 ","OG1 ","Zimmer ","12,53"
"W11 ","UG","KellerKA11 "," 3,62"
"W12 ","OG1 ","Bad"," 5,99"
"W12 ","OG1 ","Balkon "," 1,55"
"W12 ","OG1 ","Loggia "," 6,48"
"W12 ","OG1 ","Vorraum"," 4,21"
"W12 ","OG1 ","Wohnen/Kochen","25,10"
"W12 ","OG1 ","Zimmer ","17,13"
"W12 ","UG","Keller KA12"," 2,89"
"W13 ","OG1 ","Bad"," 5,99"
"W13 ","OG1 ","Balkon ","18,68"
"W13 ","OG1 ","Vorraum/Gang "," 9,53"
"W13 ","OG1 ","Wohnen/Kochen","26,75"
"W13 ","OG1 ","Zimmer ","12,44"
"W13 ","UG","Keller KA13"," 2,89"
"W14 ","OG2 ","Bad"," 5,99"
"W14 ","OG2 ","Balkon ","11,73"
"W14 ","OG2 ","Vorraum/Gang "," 9,81"
"W14 ","OG2 ","Wohnen/Kochen","35,80"
"W14 ","OG2 ","Zimmer ","13,39"
"W14 ","UG","Keller KA14"," 2,89"
"W15 ","OG2 ","Bad"," 5,78"
"W15 ","OG2 ","Balkon ","17,42"
"W15 ","OG2 ","Vorraum"," 8,34"
"W15 ","OG2 ","Wohnen/Kochen","25,30"
"W15 ","OG2 ","Zimmer ","13,30"
"W15 ","UG","Keller KA15"," 2,82"
"W16 ","OG2 ","Bad"," 5,99"
"W16 ","OG2 ","Balkon "," 6,45"
"W16 ","OG2 ","Vorraum"," 4,21"
"W16 ","OG2 ","Wohnen/Kochen","31,68"
"W16 ","OG2 ","Zimmer ","12,50"
"W16 ","UG","Keller KA16"," 3,01"
"W17 ","OG2 ","AR "," 1,91"
"W17 ","OG2 ","Bad"," 5,99"
"W17 ","OG2 ","Terrasse ","23,41"
"W17 ","OG2 ","Vorraum"," 4,29"
"W17 ","OG2 ","Wohnen/Kochen","26,56"
"W17 ","OG2 ","Zimmer ","14,88"
"W17 ","UG","Keller KA17"," 3,74"