From 789b670f5135b40cd21d2d4000bab62c3d20a69c Mon Sep 17 00:00:00 2001 From: Remco Date: Wed, 7 Jan 2026 20:31:19 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=86=99=20Forget=20data=20back=20?= =?UTF-8?q?=F0=9F=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Updated_Cms/.editorconfig | 18 + Updated_Cms/.env.example | 128 + Updated_Cms/.env.testing.example | 41 + Updated_Cms/.gitattributes | 11 + Updated_Cms/.github/workflows/laravel.yml | 77 + Updated_Cms/.github/workflows/lint.yml | 38 + Updated_Cms/.gitignore | 25 + Updated_Cms/CODEOWNERS | 4 + Updated_Cms/LICENSE | 21 + Updated_Cms/README.md | 299 + ...woFactorAuthenticatedSessionController.php | 58 + .../app/Actions/Fortify/CreateNewUser.php | 158 + .../DisableTwoFactorAuthentication.php | 16 + .../RedirectIfTwoFactorAuthenticatable.php | 194 + .../Fortify/RedirectIfTwoFactorConfirmed.php | 10 + .../app/Actions/Fortify/ResetUserPassword.php | 28 + .../Fortify/Rules/PasswordValidationRules.php | 16 + .../Actions/Fortify/UpdateUserPassword.php | 31 + .../Fortify/UpdateUserProfileInformation.php | 57 + Updated_Cms/app/Actions/SendCurrency.php | 38 + Updated_Cms/app/Actions/SendFurniture.php | 28 + Updated_Cms/app/Actions/UserActions.php | 34 + .../app/Console/Commands/AtomSetupCommand.php | 148 + .../app/Console/Commands/ImportAdsData.php | 88 + .../app/Console/Commands/ImportBadgeData.php | 94 + Updated_Cms/app/Console/Kernel.php | 29 + Updated_Cms/app/Enums/AchievementCategory.php | 31 + Updated_Cms/app/Enums/CurrencyTypes.php | 49 + Updated_Cms/app/Exceptions/Handler.php | 49 + .../Exceptions/MigrationFailedException.php | 7 + .../Exceptions/RconConnectionException.php | 7 + .../app/Filament/Filters/DateRangeFilter.php | 31 + Updated_Cms/app/Filament/Pages/BadgePage.php | 315 + Updated_Cms/app/Filament/Pages/Dashboard.php | 26 + Updated_Cms/app/Filament/Pages/Login.php | 109 + .../Atom/Articles/ArticleResource.php | 227 + .../Atom/Articles/Pages/CreateArticle.php | 24 + .../Atom/Articles/Pages/EditArticle.php | 19 + .../Atom/Articles/Pages/ListArticles.php | 19 + .../Atom/Articles/Pages/ViewArticle.php | 31 + .../RelationManagers/TagsRelationManager.php | 59 + .../Atom/CameraWebs/CameraWebResource.php | 93 + .../Atom/CameraWebs/Pages/EditCameraWeb.php | 19 + .../Atom/CameraWebs/Pages/ListCameraWeb.php | 19 + .../Atom/CmsSettings/CmsSettingResource.php | 112 + .../CmsSettings/Pages/ManageCmsSettings.php | 24 + .../Pages/CreateHelpQuestionCategory.php | 11 + .../Pages/EditHelpQuestionCategory.php | 19 + .../Pages/ListHelpQuestionCategories.php | 24 + .../Pages/ViewHelpQuestionCategory.php | 11 + .../QuestionsRelationManager.php | 48 + .../Pages/CreateHelpQuestion.php | 11 + .../Pages/EditHelpQuestion.php | 19 + .../Pages/ListHelpQuestions.php | 19 + .../Pages/ViewHelpQuestion.php | 11 + .../CategoriesRelationManager.php | 52 + .../HousekeepingPermissionResource.php | 119 + .../Pages/ListHousekeepingPermissions.php | 19 + .../Pages/CreateNavigation.php | 11 + .../Pages/EditNavigation.php | 19 + .../Pages/ListNavigations.php | 19 + .../SubNavigationsRelationManager.php | 92 + .../Permissions/Pages/CreatePermission.php | 11 + .../Atom/Permissions/Pages/EditPermission.php | 19 + .../Permissions/Pages/ListPermissions.php | 19 + .../Atom/Permissions/Pages/ViewPermission.php | 19 + .../Atom/Permissions/PermissionResource.php | 268 + .../Resources/Atom/Tags/Pages/CreateTag.php | 11 + .../Resources/Atom/Tags/Pages/EditTag.php | 19 + .../Resources/Atom/Tags/Pages/ListTags.php | 19 + .../Resources/Atom/Tags/Pages/ViewTag.php | 11 + .../ArticlesRelationManager.php | 52 + .../Resources/Atom/Tags/TagResource.php | 125 + .../Resources/Atom/Teams/Pages/CreateTeam.php | 11 + .../Resources/Atom/Teams/Pages/EditTeam.php | 19 + .../Resources/Atom/Teams/Pages/ListTeams.php | 19 + .../Resources/Atom/Teams/TeamResource.php | 118 + .../Pages/EditWebsiteDrawBadge.php | 11 + .../Pages/ListWebsiteDrawBadge.php | 11 + .../WebsiteDrawBadgeResource.php | 176 + .../Pages/ManageWriteableBoxes.php | 19 + .../Widgets/LatestOrders.php | 25 + .../Widgets/OrdersAggregateChart.php | 79 + .../Achievements/AchievementResource.php | 176 + .../Achievements/Pages/CreateAchievement.php | 11 + .../Achievements/Pages/EditAchievement.php | 19 + .../Achievements/Pages/ListAchievements.php | 19 + .../Achievements/Pages/ViewAchievement.php | 11 + .../BadgeTextEditorResource.php | 101 + .../Pages/CreateBadgeTextEditor.php | 11 + .../Pages/EditBadgeTextEditor.php | 51 + .../Pages/ListBadgeTextEditors.php | 153 + .../BadgeUploads/BadgeUploadResource.php | 69 + .../BadgeUploads/Pages/ManageBadgeUploads.php | 48 + .../CatalogPages/CatalogPageResource.php | 180 + .../CatalogPages/Pages/CreateCatalogPage.php | 18 + .../CatalogPages/Pages/EditCatalogPage.php | 19 + .../CatalogPages/Pages/ListCatalogPages.php | 19 + .../CatalogItemsRelationManager.php | 467 + .../ChatlogPrivateResource.php | 96 + .../Pages/ManageChatlogPrivates.php | 16 + .../ChatlogRooms/ChatlogRoomResource.php | 109 + .../ChatlogRooms/Pages/ManageChatlogRooms.php | 16 + .../Hotel/CommandLogs/CommandLogResource.php | 80 + .../CommandLogs/Pages/ManageCommandLogs.php | 21 + .../Resources/Hotel/CustomQueryBuilder.php | 21 + .../EmulatorSettingResource.php | 93 + .../Pages/CreateEmulatorSetting.php | 11 + .../Pages/EditEmulatorSetting.php | 19 + .../Pages/ListEmulatorSettings.php | 19 + .../EmulatorTexts/EmulatorTextResource.php | 89 + .../Pages/ManageEmulatorTexts.php | 24 + .../OpenPositions/OpenPositionResource.php | 121 + .../Pages/CreateOpenPosition.php | 11 + .../OpenPositions/Pages/EditOpenPosition.php | 11 + .../OpenPositions/Pages/ListOpenPositions.php | 19 + .../Pages/EditStaffApplication.php | 19 + .../Pages/ListStaffApplications.php | 19 + .../StaffApplicationResource.php | 92 + .../WebsiteAds/Pages/CreateWebsiteAd.php | 11 + .../Hotel/WebsiteAds/Pages/EditWebsiteAd.php | 19 + .../Hotel/WebsiteAds/Pages/ListWebsiteAds.php | 46 + .../Hotel/WebsiteAds/WebsiteAdResource.php | 81 + .../WordFilters/Pages/ManageWordFilters.php | 19 + .../Hotel/WordFilters/WordFilterResource.php | 125 + .../Resources/User/Bans/BanResource.php | 144 + .../Resources/User/Bans/Pages/ManageBans.php | 18 + .../Resources/User/Users/Pages/CreateUser.php | 11 + .../Resources/User/Users/Pages/EditUser.php | 216 + .../Resources/User/Users/Pages/ListUsers.php | 84 + .../Resources/User/Users/Pages/ViewUser.php | 20 + .../BadgesRelationManager.php | 132 + .../ChatLogPrivateRelationManager.php | 26 + .../ChatLogRelationManager.php | 26 + .../SettingsRelationManager.php | 184 + .../Resources/User/Users/UserResource.php | 298 + .../Tables/Columns/HabboBadgeColumn.php | 33 + .../Tables/Columns/UserAvatarColumn.php | 47 + .../Filament/Traits/TranslatableResource.php | 39 + .../Widgets/ArticlesAggregateChart.php | 59 + .../Filament/Widgets/TopDashboardOverview.php | 54 + Updated_Cms/app/Helpers/helper.php | 76 + .../Controllers/Api/HotelApiController.php | 29 + .../Articles/ArticleController.php | 46 + .../WebsiteArticleCommentsController.php | 29 + .../Controllers/Badge/BadgeController.php | 124 + .../Controllers/Client/FlashController.php | 21 + .../Controllers/Client/NitroController.php | 21 + .../Community/LeaderboardController.php | 56 + .../Community/PhotosController.php | 19 + .../Controllers/Community/RoomController.php | 17 + .../Staff/StaffApplicationsController.php | 47 + .../Community/Staff/StaffController.php | 21 + .../Staff/WebsiteTeamsController.php | 21 + .../Community/WebsiteRareValuesController.php | 81 + .../app/Http/Controllers/Controller.php | 12 + .../Controllers/Help/HelpCenterController.php | 16 + .../Controllers/Help/TicketController.php | 120 + .../Help/TicketReplyController.php | 47 + .../Help/WebsiteRulesController.php | 17 + .../Miscellaneous/HomeController.php | 27 + .../Miscellaneous/InstallationController.php | 119 + .../Miscellaneous/LocaleController.php | 24 + .../Miscellaneous/LogoGeneratorController.php | 40 + .../Miscellaneous/MaintenanceController.php | 17 + .../Controllers/Shop/PaypalController.php | 145 + .../Http/Controllers/Shop/ShopController.php | 142 + .../Shop/ShopVoucherController.php | 44 + .../User/AccountSettingsController.php | 69 + .../Controllers/User/BannedController.php | 23 + .../User/ForgotPasswordController.php | 78 + .../Controllers/User/GuestbookController.php | 54 + .../Http/Controllers/User/MeController.php | 21 + .../User/PasswordSettingsController.php | 27 + .../Controllers/User/ProfileController.php | 65 + .../Controllers/User/ReferralController.php | 33 + .../TwoFactorAuthenticationController.php | 42 + .../User/UserReferralController.php | 18 + Updated_Cms/app/Http/Kernel.php | 110 + .../app/Http/Middleware/Authenticate.php | 18 + .../app/Http/Middleware/BannedMiddleware.php | 48 + .../app/Http/Middleware/EncryptCookies.php | 17 + .../Http/Middleware/FindRetrosMiddleware.php | 23 + .../ForceStaffTwoFactorMiddleware.php | 30 + .../Middleware/InstallationMiddleware.php | 159 + .../Middleware/LocalizationMiddleware.php | 50 + .../Http/Middleware/LogViewerMiddleware.php | 24 + .../Http/Middleware/MaintenanceMiddleware.php | 58 + .../PreventRequestsDuringMaintenance.php | 17 + .../Middleware/RealClientIpMiddleware.php | 47 + .../Middleware/RedirectIfAuthenticated.php | 35 + .../Http/Middleware/SetThemeMiddleware.php | 22 + .../app/Http/Middleware/TrimStrings.php | 19 + .../app/Http/Middleware/TrustHosts.php | 21 + .../app/Http/Middleware/TrustProxies.php | 28 + .../Http/Middleware/VPNCheckerMiddleware.php | 81 + .../app/Http/Middleware/ValidateSignature.php | 22 + .../app/Http/Middleware/VerifyCsrfToken.php | 17 + .../Requests/AccountSettingsFormRequest.php | 28 + .../Http/Requests/AccountTopupFormRequest.php | 15 + .../Requests/ArticleCommentFormRequest.php | 21 + .../Http/Requests/GuestbookFormRequest.php | 16 + .../Requests/PasswordSettingsFormRequest.php | 24 + .../Http/Requests/RareSearchFormRequest.php | 20 + .../app/Http/Requests/RegisterFormRequest.php | 38 + .../Http/Requests/ShopVoucherFormRequest.php | 19 + .../Requests/StaffApplicationFormRequest.php | 19 + .../Requests/WebsiteTicketFormRequest.php | 18 + .../WebsiteTicketReplyFormRequest.php | 15 + .../Resources/OnlineUserCountResource.php | 23 + .../Http/Resources/OnlineUsersResource.php | 24 + .../app/Http/Resources/UserResource.php | 23 + Updated_Cms/app/Models/Achievement.php | 23 + Updated_Cms/app/Models/Article.php | 147 + Updated_Cms/app/Models/Articles/Tag.php | 18 + .../app/Models/Articles/WebsiteArticle.php | 65 + .../Models/Articles/WebsiteArticleComment.php | 28 + .../Articles/WebsiteArticleReaction.php | 50 + Updated_Cms/app/Models/ChatlogPrivate.php | 28 + Updated_Cms/app/Models/ChatlogRoom.php | 35 + Updated_Cms/app/Models/CommandLog.php | 31 + .../Community/RareValue/WebsiteRareValue.php | 38 + .../RareValue/WebsiteRareValueCategory.php | 16 + .../Community/Staff/WebsiteOpenPosition.php | 55 + .../Staff/WebsiteStaffApplications.php | 31 + .../Models/Community/Staff/WebsiteTeam.php | 27 + .../app/Models/Compositions/HasBadge.php | 10 + .../Compositions/HasNotificationUrl.php | 11 + Updated_Cms/app/Models/EmulatorSetting.php | 16 + Updated_Cms/app/Models/EmulatorText.php | 19 + .../app/Models/Game/Furniture/CatalogItem.php | 18 + .../app/Models/Game/Furniture/CatalogPage.php | 18 + .../app/Models/Game/Furniture/Item.php | 19 + .../app/Models/Game/Furniture/ItemBase.php | 25 + Updated_Cms/app/Models/Game/Guild/Guild.php | 18 + .../app/Models/Game/Guild/GuildMember.php | 20 + Updated_Cms/app/Models/Game/Permission.php | 43 + .../Game/Player/MessengerFriendship.php | 15 + .../app/Models/Game/Player/UserBadge.php | 23 + .../app/Models/Game/Player/UserCurrency.php | 23 + .../app/Models/Game/Player/UserSetting.php | 21 + .../Models/Game/Player/UserSubscription.php | 19 + Updated_Cms/app/Models/Game/Room.php | 24 + .../Models/Help/WebsiteHelpCenterCategory.php | 12 + .../Models/Help/WebsiteHelpCenterTicket.php | 57 + .../WebsiteHelpCenterTicketCategories.php | 10 + .../Help/WebsiteHelpCenterTicketReply.php | 34 + .../Help/WebsiteHelpCenterTicketStatus.php | 10 + Updated_Cms/app/Models/Help/WebsiteRule.php | 16 + .../app/Models/Help/WebsiteRuleCategory.php | 16 + Updated_Cms/app/Models/ItemDefinition.php | 20 + .../app/Models/Miscellaneous/CameraWeb.php | 70 + .../Models/Miscellaneous/WebsiteBetaCode.php | 17 + .../Miscellaneous/WebsiteInstallation.php | 12 + .../Miscellaneous/WebsiteIpBlacklist.php | 12 + .../Miscellaneous/WebsiteIpWhitelist.php | 12 + .../Models/Miscellaneous/WebsiteLanguage.php | 12 + .../Miscellaneous/WebsiteMaintenanceTask.php | 17 + .../Miscellaneous/WebsitePermission.php | 10 + .../Models/Miscellaneous/WebsiteSetting.php | 12 + .../Miscellaneous/WebsiteWordfilter.php | 12 + Updated_Cms/app/Models/PasswordResetToken.php | 27 + Updated_Cms/app/Models/Room.php | 57 + Updated_Cms/app/Models/Session.php | 12 + .../Models/Shop/WebsitePaypalTransaction.php | 17 + .../app/Models/Shop/WebsiteShopArticle.php | 46 + .../Models/Shop/WebsiteShopArticleFeature.php | 16 + .../app/Models/Shop/WebsiteShopCategory.php | 16 + .../app/Models/Shop/WebsiteShopVoucher.php | 17 + .../Models/Shop/WebsiteUsedShopVoucher.php | 16 + Updated_Cms/app/Models/User.php | 300 + Updated_Cms/app/Models/User/Ban.php | 34 + .../app/Models/User/ClaimedReferralLog.php | 17 + Updated_Cms/app/Models/User/Referral.php | 10 + Updated_Cms/app/Models/User/UserReferral.php | 17 + .../app/Models/User/WebsiteUserGuestbook.php | 22 + Updated_Cms/app/Models/WebsiteAd.php | 67 + Updated_Cms/app/Models/WebsiteBadge.php | 17 + Updated_Cms/app/Models/WebsiteDrawBadge.php | 17 + .../Models/WebsiteHousekeepingPermission.php | 10 + Updated_Cms/app/Models/Wordfilter.php | 29 + Updated_Cms/app/Observers/UserObserver.php | 27 + .../Observers/WebsiteDrawBadgeObserver.php | 69 + .../app/Policies/AchievementPolicy.php | 30 + Updated_Cms/app/Policies/ActivityPolicy.php | 47 + Updated_Cms/app/Policies/BanPolicy.php | 32 + Updated_Cms/app/Policies/CameraPolicy.php | 31 + .../app/Policies/CatalogPagePolicy.php | 36 + .../app/Policies/ChatlogPrivatePolicy.php | 16 + .../app/Policies/ChatlogRoomPolicy.php | 16 + Updated_Cms/app/Policies/CommandLogPolicy.php | 16 + .../app/Policies/EmulatorSettingPolicy.php | 30 + .../app/Policies/EmulatorTextPolicy.php | 30 + .../Policies/HousekeepingPermissionPolicy.php | 31 + Updated_Cms/app/Policies/PermissionPolicy.php | 62 + Updated_Cms/app/Policies/TagPolicy.php | 62 + Updated_Cms/app/Policies/UserPolicy.php | 52 + .../app/Policies/WebsiteArticlePolicy.php | 36 + .../app/Policies/WebsiteSettingPolicy.php | 36 + .../app/Policies/WebsiteTeamPolicy.php | 62 + Updated_Cms/app/Policies/WordfilterPolicy.php | 63 + .../app/Providers/AppServiceProvider.php | 68 + .../app/Providers/AuthServiceProvider.php | 29 + .../Providers/BroadcastServiceProvider.php | 19 + .../app/Providers/EventServiceProvider.php | 43 + .../Filament/AdminFilamentPanelProvider.php | 60 + .../app/Providers/FortifyServiceProvider.php | 95 + .../app/Providers/RouteServiceProvider.php | 47 + Updated_Cms/app/Rules/BetaCodeRule.php | 17 + Updated_Cms/app/Rules/CurrentPasswordRule.php | 21 + Updated_Cms/app/Rules/GoogleRecaptchaRule.php | 38 + Updated_Cms/app/Rules/Password.php | 180 + Updated_Cms/app/Rules/TurnstileCheck.php | 19 + .../app/Rules/ValidateInstallationKeyRule.php | 17 + .../app/Rules/WebsiteWordfilterRule.php | 22 + .../app/Services/Articles/ArticleService.php | 24 + .../app/Services/Articles/CommentService.php | 48 + .../app/Services/Articles/ReactionService.php | 36 + .../app/Services/Community/CameraService.php | 17 + .../RareValues/RareValueCategoriesService.php | 36 + .../RareValues/RareValuesService.php | 5 + .../Community/StaffApplicationService.php | 35 + .../app/Services/Community/StaffService.php | 60 + .../app/Services/Community/TeamService.php | 34 + .../app/Services/FindRetrosService.php | 79 + .../HousekeepingPermissionsService.php | 25 + Updated_Cms/app/Services/IpLookupService.php | 28 + .../app/Services/PermissionsService.php | 28 + Updated_Cms/app/Services/RconService.php | 257 + Updated_Cms/app/Services/SettingsService.php | 34 + .../app/Services/User/SessionService.php | 39 + .../app/Services/User/UserApiService.php | 30 + Updated_Cms/app/Services/User/UserService.php | 14 + Updated_Cms/app/Services/ViteService.php | 17 + Updated_Cms/app/View/Components/AppLayout.php | 17 + .../app/View/Components/GuestLayout.php | 17 + .../View/Components/InstallationLayout.php | 17 + Updated_Cms/artisan | 53 + Updated_Cms/bootstrap/app.php | 55 + Updated_Cms/compose.yaml | 82 + Updated_Cms/composer.json | 89 + Updated_Cms/composer.lock | 14077 ++++++++++++ Updated_Cms/package.json | 40 + Updated_Cms/phpunit.xml | 26 + Updated_Cms/pint.json | 51 + Updated_Cms/postcss.config.cjs | 8 + Updated_Cms/ray.php | 107 + Updated_Cms/rector.php | 33 + .../dusk/views/public/assets/js/client.js | 147 + .../dusk/views/public/assets/js/dusk.js | 21 + .../views/public/assets/js/expressInstall.swf | Bin 0 -> 773 bytes .../public/assets/js/flash_detect_min.js | 145 + .../views/public/assets/js/flashclient.js | 347 + .../views/public/assets/js/jquery-latest.js | 11698 ++++++++++ .../dusk/views/public/assets/js/jquery-ui.js | 18087 ++++++++++++++++ .../dusk/views/public/assets/js/popper.min.js | 1396 ++ .../dusk/views/public/assets/js/swfobject.js | 567 + .../public/assets/js/tippy-bundle.umd.min.js | 1613 ++ .../themes/dusk/views/room/index.blade.php | 94 + .../themes/dusk/views/shop/shop.blade.php | 144 + .../themes/dusk/views/user/me.blade.php | 212 + .../themes/dusk/views/user/profile.blade.php | 209 + .../views/user/settings/account.blade.php | 70 + .../views/user/settings/password.blade.php | 68 + .../user/settings/session-logs.blade.php | 72 + .../views/user/settings/two-factor.blade.php | 107 + .../installation-content-section.blade.php | 22 + .../views/components/currency-box.blade.php | 11 + .../views/components/icons/cart.blade.php | 4 + .../components/icons/chevron-down.blade.php | 4 + .../views/components/icons/eye.blade.php | 5 + .../components/icons/fullscreen.blade.php | 5 + .../views/components/icons/gift.blade.php | 3 + .../views/components/icons/home.blade.php | 6 + .../views/components/icons/moon.blade.php | 4 + .../views/components/icons/reload.blade.php | 5 + .../views/components/icons/user.blade.php | 5 + .../forms/components/ck-editor.blade.php | 230 + .../components/time-line-icon-entry.blade.php | 57 + .../time-line-propertie-entry.blade.php | 7 + .../time-line-repeatable-entry.blade.php | 53 + .../time-line-title-entry.blade.php | 13 + .../views/filament/pages/badge-page.blade.php | 3 + .../filament/pages/logs-manager.blade.php | 93 + .../pages/manage-badge-uploads.blade.php | 14 + .../activity-logs-properties.blade.php | 19 + .../columns/habbo-badge-column.blade.php | 3 + .../tables/columns/user-avatar.blade.php | 3 + .../articles-aggregate-chart.blade.php | 5 + .../widgets/top-dashboard-overview.blade.php | 5 + .../views/installation/index.blade.php | 70 + .../views/installation/step-1.blade.php | 49 + .../views/installation/step-2.blade.php | 57 + .../views/installation/step-3.blade.php | 57 + .../views/installation/step-4.blade.php | 57 + .../views/installation/step-5.blade.php | 76 + .../views/layouts/installation.blade.php | 26 + .../resources/views/vendor/turnstile/.gitkeep | 0 .../components/turnstile-widget.blade.php | 22 + Updated_Cms/routes/api.php | 19 + Updated_Cms/routes/channels.php | 16 + Updated_Cms/routes/console.php | 19 + Updated_Cms/routes/web.php | 211 + Updated_Cms/storage/clockwork/.gitignore | 3 + Updated_Cms/storage/debugbar/.gitignore | 2 + Updated_Cms/tests/CreatesApplication.php | 21 + .../tests/Feature/AuthenticationTest.php | 27 + .../tests/Feature/RegistrationTest.php | 17 + Updated_Cms/tests/Pest.php | 54 + Updated_Cms/tests/TestCase.php | 51 + Updated_Cms/tests/Unit/ExampleTest.php | 5 + Updated_Cms/vite.config.js | 41 + 412 files changed, 66963 insertions(+) create mode 100644 Updated_Cms/.editorconfig create mode 100644 Updated_Cms/.env.example create mode 100644 Updated_Cms/.env.testing.example create mode 100644 Updated_Cms/.gitattributes create mode 100644 Updated_Cms/.github/workflows/laravel.yml create mode 100644 Updated_Cms/.github/workflows/lint.yml create mode 100644 Updated_Cms/.gitignore create mode 100644 Updated_Cms/CODEOWNERS create mode 100644 Updated_Cms/LICENSE create mode 100644 Updated_Cms/README.md create mode 100644 Updated_Cms/app/Actions/Fortify/Controllers/TwoFactorAuthenticatedSessionController.php create mode 100644 Updated_Cms/app/Actions/Fortify/CreateNewUser.php create mode 100644 Updated_Cms/app/Actions/Fortify/DisableTwoFactorAuthentication.php create mode 100644 Updated_Cms/app/Actions/Fortify/RedirectIfTwoFactorAuthenticatable.php create mode 100644 Updated_Cms/app/Actions/Fortify/RedirectIfTwoFactorConfirmed.php create mode 100644 Updated_Cms/app/Actions/Fortify/ResetUserPassword.php create mode 100644 Updated_Cms/app/Actions/Fortify/Rules/PasswordValidationRules.php create mode 100644 Updated_Cms/app/Actions/Fortify/UpdateUserPassword.php create mode 100644 Updated_Cms/app/Actions/Fortify/UpdateUserProfileInformation.php create mode 100644 Updated_Cms/app/Actions/SendCurrency.php create mode 100644 Updated_Cms/app/Actions/SendFurniture.php create mode 100644 Updated_Cms/app/Actions/UserActions.php create mode 100644 Updated_Cms/app/Console/Commands/AtomSetupCommand.php create mode 100644 Updated_Cms/app/Console/Commands/ImportAdsData.php create mode 100644 Updated_Cms/app/Console/Commands/ImportBadgeData.php create mode 100644 Updated_Cms/app/Console/Kernel.php create mode 100644 Updated_Cms/app/Enums/AchievementCategory.php create mode 100644 Updated_Cms/app/Enums/CurrencyTypes.php create mode 100644 Updated_Cms/app/Exceptions/Handler.php create mode 100644 Updated_Cms/app/Exceptions/MigrationFailedException.php create mode 100644 Updated_Cms/app/Exceptions/RconConnectionException.php create mode 100644 Updated_Cms/app/Filament/Filters/DateRangeFilter.php create mode 100644 Updated_Cms/app/Filament/Pages/BadgePage.php create mode 100644 Updated_Cms/app/Filament/Pages/Dashboard.php create mode 100644 Updated_Cms/app/Filament/Pages/Login.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/Articles/ArticleResource.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/Articles/Pages/CreateArticle.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/Articles/Pages/EditArticle.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/Articles/Pages/ListArticles.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/Articles/Pages/ViewArticle.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/Articles/RelationManagers/TagsRelationManager.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/CameraWebs/CameraWebResource.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/CameraWebs/Pages/EditCameraWeb.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/CameraWebs/Pages/ListCameraWeb.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/CmsSettings/CmsSettingResource.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/CmsSettings/Pages/ManageCmsSettings.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/HelpQuestionCategoryResource/Pages/CreateHelpQuestionCategory.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/HelpQuestionCategoryResource/Pages/EditHelpQuestionCategory.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/HelpQuestionCategoryResource/Pages/ListHelpQuestionCategories.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/HelpQuestionCategoryResource/Pages/ViewHelpQuestionCategory.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/HelpQuestionCategoryResource/RelationManagers/QuestionsRelationManager.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/HelpQuestionResource/Pages/CreateHelpQuestion.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/HelpQuestionResource/Pages/EditHelpQuestion.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/HelpQuestionResource/Pages/ListHelpQuestions.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/HelpQuestionResource/Pages/ViewHelpQuestion.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/HelpQuestionResource/RelationManagers/CategoriesRelationManager.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/HousekeepingPermissions/HousekeepingPermissionResource.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/HousekeepingPermissions/Pages/ListHousekeepingPermissions.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/NavigationResource/Pages/CreateNavigation.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/NavigationResource/Pages/EditNavigation.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/NavigationResource/Pages/ListNavigations.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/NavigationResource/RelationManagers/SubNavigationsRelationManager.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/Permissions/Pages/CreatePermission.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/Permissions/Pages/EditPermission.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/Permissions/Pages/ListPermissions.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/Permissions/Pages/ViewPermission.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/Permissions/PermissionResource.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/Tags/Pages/CreateTag.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/Tags/Pages/EditTag.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/Tags/Pages/ListTags.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/Tags/Pages/ViewTag.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/Tags/RelationManagers/ArticlesRelationManager.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/Tags/TagResource.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/Teams/Pages/CreateTeam.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/Teams/Pages/EditTeam.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/Teams/Pages/ListTeams.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/Teams/TeamResource.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/WebsiteDrawBadges/Pages/EditWebsiteDrawBadge.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/WebsiteDrawBadges/Pages/ListWebsiteDrawBadge.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/WebsiteDrawBadges/WebsiteDrawBadgeResource.php create mode 100644 Updated_Cms/app/Filament/Resources/Atom/WriteableBoxResource/Pages/ManageWriteableBoxes.php create mode 100644 Updated_Cms/app/Filament/Resources/DashboardResource/Widgets/LatestOrders.php create mode 100644 Updated_Cms/app/Filament/Resources/DashboardResource/Widgets/OrdersAggregateChart.php create mode 100644 Updated_Cms/app/Filament/Resources/Hotel/Achievements/AchievementResource.php create mode 100644 Updated_Cms/app/Filament/Resources/Hotel/Achievements/Pages/CreateAchievement.php create mode 100644 Updated_Cms/app/Filament/Resources/Hotel/Achievements/Pages/EditAchievement.php create mode 100644 Updated_Cms/app/Filament/Resources/Hotel/Achievements/Pages/ListAchievements.php create mode 100644 Updated_Cms/app/Filament/Resources/Hotel/Achievements/Pages/ViewAchievement.php create mode 100644 Updated_Cms/app/Filament/Resources/Hotel/BadgeTextEditors/BadgeTextEditorResource.php create mode 100644 Updated_Cms/app/Filament/Resources/Hotel/BadgeTextEditors/Pages/CreateBadgeTextEditor.php create mode 100644 Updated_Cms/app/Filament/Resources/Hotel/BadgeTextEditors/Pages/EditBadgeTextEditor.php create mode 100644 Updated_Cms/app/Filament/Resources/Hotel/BadgeTextEditors/Pages/ListBadgeTextEditors.php create mode 100644 Updated_Cms/app/Filament/Resources/Hotel/BadgeUploads/BadgeUploadResource.php create mode 100644 Updated_Cms/app/Filament/Resources/Hotel/BadgeUploads/Pages/ManageBadgeUploads.php create mode 100644 Updated_Cms/app/Filament/Resources/Hotel/CatalogPages/CatalogPageResource.php create mode 100644 Updated_Cms/app/Filament/Resources/Hotel/CatalogPages/Pages/CreateCatalogPage.php create mode 100644 Updated_Cms/app/Filament/Resources/Hotel/CatalogPages/Pages/EditCatalogPage.php create mode 100644 Updated_Cms/app/Filament/Resources/Hotel/CatalogPages/Pages/ListCatalogPages.php create mode 100644 Updated_Cms/app/Filament/Resources/Hotel/CatalogPages/RelationManagers/CatalogItemsRelationManager.php create mode 100644 Updated_Cms/app/Filament/Resources/Hotel/ChatlogPrivates/ChatlogPrivateResource.php create mode 100644 Updated_Cms/app/Filament/Resources/Hotel/ChatlogPrivates/Pages/ManageChatlogPrivates.php create mode 100644 Updated_Cms/app/Filament/Resources/Hotel/ChatlogRooms/ChatlogRoomResource.php create mode 100644 Updated_Cms/app/Filament/Resources/Hotel/ChatlogRooms/Pages/ManageChatlogRooms.php create mode 100644 Updated_Cms/app/Filament/Resources/Hotel/CommandLogs/CommandLogResource.php create mode 100644 Updated_Cms/app/Filament/Resources/Hotel/CommandLogs/Pages/ManageCommandLogs.php create mode 100644 Updated_Cms/app/Filament/Resources/Hotel/CustomQueryBuilder.php create mode 100644 Updated_Cms/app/Filament/Resources/Hotel/EmulatorSettings/EmulatorSettingResource.php create mode 100644 Updated_Cms/app/Filament/Resources/Hotel/EmulatorSettings/Pages/CreateEmulatorSetting.php create mode 100644 Updated_Cms/app/Filament/Resources/Hotel/EmulatorSettings/Pages/EditEmulatorSetting.php create mode 100644 Updated_Cms/app/Filament/Resources/Hotel/EmulatorSettings/Pages/ListEmulatorSettings.php create mode 100644 Updated_Cms/app/Filament/Resources/Hotel/EmulatorTexts/EmulatorTextResource.php create mode 100644 Updated_Cms/app/Filament/Resources/Hotel/EmulatorTexts/Pages/ManageEmulatorTexts.php create mode 100644 Updated_Cms/app/Filament/Resources/Hotel/OpenPositions/OpenPositionResource.php create mode 100644 Updated_Cms/app/Filament/Resources/Hotel/OpenPositions/Pages/CreateOpenPosition.php create mode 100644 Updated_Cms/app/Filament/Resources/Hotel/OpenPositions/Pages/EditOpenPosition.php create mode 100644 Updated_Cms/app/Filament/Resources/Hotel/OpenPositions/Pages/ListOpenPositions.php create mode 100644 Updated_Cms/app/Filament/Resources/Hotel/StaffApplications/Pages/EditStaffApplication.php create mode 100644 Updated_Cms/app/Filament/Resources/Hotel/StaffApplications/Pages/ListStaffApplications.php create mode 100644 Updated_Cms/app/Filament/Resources/Hotel/StaffApplications/StaffApplicationResource.php create mode 100644 Updated_Cms/app/Filament/Resources/Hotel/WebsiteAds/Pages/CreateWebsiteAd.php create mode 100644 Updated_Cms/app/Filament/Resources/Hotel/WebsiteAds/Pages/EditWebsiteAd.php create mode 100644 Updated_Cms/app/Filament/Resources/Hotel/WebsiteAds/Pages/ListWebsiteAds.php create mode 100644 Updated_Cms/app/Filament/Resources/Hotel/WebsiteAds/WebsiteAdResource.php create mode 100644 Updated_Cms/app/Filament/Resources/Hotel/WordFilters/Pages/ManageWordFilters.php create mode 100644 Updated_Cms/app/Filament/Resources/Hotel/WordFilters/WordFilterResource.php create mode 100644 Updated_Cms/app/Filament/Resources/User/Bans/BanResource.php create mode 100644 Updated_Cms/app/Filament/Resources/User/Bans/Pages/ManageBans.php create mode 100644 Updated_Cms/app/Filament/Resources/User/Users/Pages/CreateUser.php create mode 100644 Updated_Cms/app/Filament/Resources/User/Users/Pages/EditUser.php create mode 100644 Updated_Cms/app/Filament/Resources/User/Users/Pages/ListUsers.php create mode 100644 Updated_Cms/app/Filament/Resources/User/Users/Pages/ViewUser.php create mode 100644 Updated_Cms/app/Filament/Resources/User/Users/RelationManagers/BadgesRelationManager.php create mode 100644 Updated_Cms/app/Filament/Resources/User/Users/RelationManagers/ChatLogPrivateRelationManager.php create mode 100644 Updated_Cms/app/Filament/Resources/User/Users/RelationManagers/ChatLogRelationManager.php create mode 100644 Updated_Cms/app/Filament/Resources/User/Users/RelationManagers/SettingsRelationManager.php create mode 100644 Updated_Cms/app/Filament/Resources/User/Users/UserResource.php create mode 100644 Updated_Cms/app/Filament/Tables/Columns/HabboBadgeColumn.php create mode 100644 Updated_Cms/app/Filament/Tables/Columns/UserAvatarColumn.php create mode 100644 Updated_Cms/app/Filament/Traits/TranslatableResource.php create mode 100644 Updated_Cms/app/Filament/Widgets/ArticlesAggregateChart.php create mode 100644 Updated_Cms/app/Filament/Widgets/TopDashboardOverview.php create mode 100644 Updated_Cms/app/Helpers/helper.php create mode 100644 Updated_Cms/app/Http/Controllers/Api/HotelApiController.php create mode 100644 Updated_Cms/app/Http/Controllers/Articles/ArticleController.php create mode 100644 Updated_Cms/app/Http/Controllers/Articles/WebsiteArticleCommentsController.php create mode 100644 Updated_Cms/app/Http/Controllers/Badge/BadgeController.php create mode 100644 Updated_Cms/app/Http/Controllers/Client/FlashController.php create mode 100644 Updated_Cms/app/Http/Controllers/Client/NitroController.php create mode 100644 Updated_Cms/app/Http/Controllers/Community/LeaderboardController.php create mode 100644 Updated_Cms/app/Http/Controllers/Community/PhotosController.php create mode 100644 Updated_Cms/app/Http/Controllers/Community/RoomController.php create mode 100644 Updated_Cms/app/Http/Controllers/Community/Staff/StaffApplicationsController.php create mode 100644 Updated_Cms/app/Http/Controllers/Community/Staff/StaffController.php create mode 100644 Updated_Cms/app/Http/Controllers/Community/Staff/WebsiteTeamsController.php create mode 100644 Updated_Cms/app/Http/Controllers/Community/WebsiteRareValuesController.php create mode 100644 Updated_Cms/app/Http/Controllers/Controller.php create mode 100644 Updated_Cms/app/Http/Controllers/Help/HelpCenterController.php create mode 100644 Updated_Cms/app/Http/Controllers/Help/TicketController.php create mode 100644 Updated_Cms/app/Http/Controllers/Help/TicketReplyController.php create mode 100644 Updated_Cms/app/Http/Controllers/Help/WebsiteRulesController.php create mode 100644 Updated_Cms/app/Http/Controllers/Miscellaneous/HomeController.php create mode 100644 Updated_Cms/app/Http/Controllers/Miscellaneous/InstallationController.php create mode 100644 Updated_Cms/app/Http/Controllers/Miscellaneous/LocaleController.php create mode 100644 Updated_Cms/app/Http/Controllers/Miscellaneous/LogoGeneratorController.php create mode 100644 Updated_Cms/app/Http/Controllers/Miscellaneous/MaintenanceController.php create mode 100644 Updated_Cms/app/Http/Controllers/Shop/PaypalController.php create mode 100644 Updated_Cms/app/Http/Controllers/Shop/ShopController.php create mode 100644 Updated_Cms/app/Http/Controllers/Shop/ShopVoucherController.php create mode 100644 Updated_Cms/app/Http/Controllers/User/AccountSettingsController.php create mode 100644 Updated_Cms/app/Http/Controllers/User/BannedController.php create mode 100644 Updated_Cms/app/Http/Controllers/User/ForgotPasswordController.php create mode 100644 Updated_Cms/app/Http/Controllers/User/GuestbookController.php create mode 100644 Updated_Cms/app/Http/Controllers/User/MeController.php create mode 100644 Updated_Cms/app/Http/Controllers/User/PasswordSettingsController.php create mode 100644 Updated_Cms/app/Http/Controllers/User/ProfileController.php create mode 100644 Updated_Cms/app/Http/Controllers/User/ReferralController.php create mode 100644 Updated_Cms/app/Http/Controllers/User/TwoFactorAuthenticationController.php create mode 100644 Updated_Cms/app/Http/Controllers/User/UserReferralController.php create mode 100644 Updated_Cms/app/Http/Kernel.php create mode 100644 Updated_Cms/app/Http/Middleware/Authenticate.php create mode 100644 Updated_Cms/app/Http/Middleware/BannedMiddleware.php create mode 100644 Updated_Cms/app/Http/Middleware/EncryptCookies.php create mode 100644 Updated_Cms/app/Http/Middleware/FindRetrosMiddleware.php create mode 100644 Updated_Cms/app/Http/Middleware/ForceStaffTwoFactorMiddleware.php create mode 100644 Updated_Cms/app/Http/Middleware/InstallationMiddleware.php create mode 100644 Updated_Cms/app/Http/Middleware/LocalizationMiddleware.php create mode 100644 Updated_Cms/app/Http/Middleware/LogViewerMiddleware.php create mode 100644 Updated_Cms/app/Http/Middleware/MaintenanceMiddleware.php create mode 100644 Updated_Cms/app/Http/Middleware/PreventRequestsDuringMaintenance.php create mode 100644 Updated_Cms/app/Http/Middleware/RealClientIpMiddleware.php create mode 100644 Updated_Cms/app/Http/Middleware/RedirectIfAuthenticated.php create mode 100644 Updated_Cms/app/Http/Middleware/SetThemeMiddleware.php create mode 100644 Updated_Cms/app/Http/Middleware/TrimStrings.php create mode 100644 Updated_Cms/app/Http/Middleware/TrustHosts.php create mode 100644 Updated_Cms/app/Http/Middleware/TrustProxies.php create mode 100644 Updated_Cms/app/Http/Middleware/VPNCheckerMiddleware.php create mode 100644 Updated_Cms/app/Http/Middleware/ValidateSignature.php create mode 100644 Updated_Cms/app/Http/Middleware/VerifyCsrfToken.php create mode 100644 Updated_Cms/app/Http/Requests/AccountSettingsFormRequest.php create mode 100644 Updated_Cms/app/Http/Requests/AccountTopupFormRequest.php create mode 100644 Updated_Cms/app/Http/Requests/ArticleCommentFormRequest.php create mode 100644 Updated_Cms/app/Http/Requests/GuestbookFormRequest.php create mode 100644 Updated_Cms/app/Http/Requests/PasswordSettingsFormRequest.php create mode 100644 Updated_Cms/app/Http/Requests/RareSearchFormRequest.php create mode 100644 Updated_Cms/app/Http/Requests/RegisterFormRequest.php create mode 100644 Updated_Cms/app/Http/Requests/ShopVoucherFormRequest.php create mode 100644 Updated_Cms/app/Http/Requests/StaffApplicationFormRequest.php create mode 100644 Updated_Cms/app/Http/Requests/WebsiteTicketFormRequest.php create mode 100644 Updated_Cms/app/Http/Requests/WebsiteTicketReplyFormRequest.php create mode 100644 Updated_Cms/app/Http/Resources/OnlineUserCountResource.php create mode 100644 Updated_Cms/app/Http/Resources/OnlineUsersResource.php create mode 100644 Updated_Cms/app/Http/Resources/UserResource.php create mode 100644 Updated_Cms/app/Models/Achievement.php create mode 100644 Updated_Cms/app/Models/Article.php create mode 100644 Updated_Cms/app/Models/Articles/Tag.php create mode 100644 Updated_Cms/app/Models/Articles/WebsiteArticle.php create mode 100644 Updated_Cms/app/Models/Articles/WebsiteArticleComment.php create mode 100644 Updated_Cms/app/Models/Articles/WebsiteArticleReaction.php create mode 100644 Updated_Cms/app/Models/ChatlogPrivate.php create mode 100644 Updated_Cms/app/Models/ChatlogRoom.php create mode 100644 Updated_Cms/app/Models/CommandLog.php create mode 100644 Updated_Cms/app/Models/Community/RareValue/WebsiteRareValue.php create mode 100644 Updated_Cms/app/Models/Community/RareValue/WebsiteRareValueCategory.php create mode 100644 Updated_Cms/app/Models/Community/Staff/WebsiteOpenPosition.php create mode 100644 Updated_Cms/app/Models/Community/Staff/WebsiteStaffApplications.php create mode 100644 Updated_Cms/app/Models/Community/Staff/WebsiteTeam.php create mode 100644 Updated_Cms/app/Models/Compositions/HasBadge.php create mode 100644 Updated_Cms/app/Models/Compositions/HasNotificationUrl.php create mode 100644 Updated_Cms/app/Models/EmulatorSetting.php create mode 100644 Updated_Cms/app/Models/EmulatorText.php create mode 100644 Updated_Cms/app/Models/Game/Furniture/CatalogItem.php create mode 100644 Updated_Cms/app/Models/Game/Furniture/CatalogPage.php create mode 100644 Updated_Cms/app/Models/Game/Furniture/Item.php create mode 100644 Updated_Cms/app/Models/Game/Furniture/ItemBase.php create mode 100644 Updated_Cms/app/Models/Game/Guild/Guild.php create mode 100644 Updated_Cms/app/Models/Game/Guild/GuildMember.php create mode 100644 Updated_Cms/app/Models/Game/Permission.php create mode 100644 Updated_Cms/app/Models/Game/Player/MessengerFriendship.php create mode 100644 Updated_Cms/app/Models/Game/Player/UserBadge.php create mode 100644 Updated_Cms/app/Models/Game/Player/UserCurrency.php create mode 100644 Updated_Cms/app/Models/Game/Player/UserSetting.php create mode 100644 Updated_Cms/app/Models/Game/Player/UserSubscription.php create mode 100644 Updated_Cms/app/Models/Game/Room.php create mode 100644 Updated_Cms/app/Models/Help/WebsiteHelpCenterCategory.php create mode 100644 Updated_Cms/app/Models/Help/WebsiteHelpCenterTicket.php create mode 100644 Updated_Cms/app/Models/Help/WebsiteHelpCenterTicketCategories.php create mode 100644 Updated_Cms/app/Models/Help/WebsiteHelpCenterTicketReply.php create mode 100644 Updated_Cms/app/Models/Help/WebsiteHelpCenterTicketStatus.php create mode 100644 Updated_Cms/app/Models/Help/WebsiteRule.php create mode 100644 Updated_Cms/app/Models/Help/WebsiteRuleCategory.php create mode 100644 Updated_Cms/app/Models/ItemDefinition.php create mode 100644 Updated_Cms/app/Models/Miscellaneous/CameraWeb.php create mode 100644 Updated_Cms/app/Models/Miscellaneous/WebsiteBetaCode.php create mode 100644 Updated_Cms/app/Models/Miscellaneous/WebsiteInstallation.php create mode 100644 Updated_Cms/app/Models/Miscellaneous/WebsiteIpBlacklist.php create mode 100644 Updated_Cms/app/Models/Miscellaneous/WebsiteIpWhitelist.php create mode 100644 Updated_Cms/app/Models/Miscellaneous/WebsiteLanguage.php create mode 100644 Updated_Cms/app/Models/Miscellaneous/WebsiteMaintenanceTask.php create mode 100644 Updated_Cms/app/Models/Miscellaneous/WebsitePermission.php create mode 100644 Updated_Cms/app/Models/Miscellaneous/WebsiteSetting.php create mode 100644 Updated_Cms/app/Models/Miscellaneous/WebsiteWordfilter.php create mode 100644 Updated_Cms/app/Models/PasswordResetToken.php create mode 100644 Updated_Cms/app/Models/Room.php create mode 100644 Updated_Cms/app/Models/Session.php create mode 100644 Updated_Cms/app/Models/Shop/WebsitePaypalTransaction.php create mode 100644 Updated_Cms/app/Models/Shop/WebsiteShopArticle.php create mode 100644 Updated_Cms/app/Models/Shop/WebsiteShopArticleFeature.php create mode 100644 Updated_Cms/app/Models/Shop/WebsiteShopCategory.php create mode 100644 Updated_Cms/app/Models/Shop/WebsiteShopVoucher.php create mode 100644 Updated_Cms/app/Models/Shop/WebsiteUsedShopVoucher.php create mode 100644 Updated_Cms/app/Models/User.php create mode 100644 Updated_Cms/app/Models/User/Ban.php create mode 100644 Updated_Cms/app/Models/User/ClaimedReferralLog.php create mode 100644 Updated_Cms/app/Models/User/Referral.php create mode 100644 Updated_Cms/app/Models/User/UserReferral.php create mode 100644 Updated_Cms/app/Models/User/WebsiteUserGuestbook.php create mode 100644 Updated_Cms/app/Models/WebsiteAd.php create mode 100644 Updated_Cms/app/Models/WebsiteBadge.php create mode 100644 Updated_Cms/app/Models/WebsiteDrawBadge.php create mode 100644 Updated_Cms/app/Models/WebsiteHousekeepingPermission.php create mode 100644 Updated_Cms/app/Models/Wordfilter.php create mode 100644 Updated_Cms/app/Observers/UserObserver.php create mode 100644 Updated_Cms/app/Observers/WebsiteDrawBadgeObserver.php create mode 100644 Updated_Cms/app/Policies/AchievementPolicy.php create mode 100644 Updated_Cms/app/Policies/ActivityPolicy.php create mode 100644 Updated_Cms/app/Policies/BanPolicy.php create mode 100644 Updated_Cms/app/Policies/CameraPolicy.php create mode 100644 Updated_Cms/app/Policies/CatalogPagePolicy.php create mode 100644 Updated_Cms/app/Policies/ChatlogPrivatePolicy.php create mode 100644 Updated_Cms/app/Policies/ChatlogRoomPolicy.php create mode 100644 Updated_Cms/app/Policies/CommandLogPolicy.php create mode 100644 Updated_Cms/app/Policies/EmulatorSettingPolicy.php create mode 100644 Updated_Cms/app/Policies/EmulatorTextPolicy.php create mode 100644 Updated_Cms/app/Policies/HousekeepingPermissionPolicy.php create mode 100644 Updated_Cms/app/Policies/PermissionPolicy.php create mode 100644 Updated_Cms/app/Policies/TagPolicy.php create mode 100644 Updated_Cms/app/Policies/UserPolicy.php create mode 100644 Updated_Cms/app/Policies/WebsiteArticlePolicy.php create mode 100644 Updated_Cms/app/Policies/WebsiteSettingPolicy.php create mode 100644 Updated_Cms/app/Policies/WebsiteTeamPolicy.php create mode 100644 Updated_Cms/app/Policies/WordfilterPolicy.php create mode 100644 Updated_Cms/app/Providers/AppServiceProvider.php create mode 100644 Updated_Cms/app/Providers/AuthServiceProvider.php create mode 100644 Updated_Cms/app/Providers/BroadcastServiceProvider.php create mode 100644 Updated_Cms/app/Providers/EventServiceProvider.php create mode 100644 Updated_Cms/app/Providers/Filament/AdminFilamentPanelProvider.php create mode 100644 Updated_Cms/app/Providers/FortifyServiceProvider.php create mode 100644 Updated_Cms/app/Providers/RouteServiceProvider.php create mode 100644 Updated_Cms/app/Rules/BetaCodeRule.php create mode 100644 Updated_Cms/app/Rules/CurrentPasswordRule.php create mode 100644 Updated_Cms/app/Rules/GoogleRecaptchaRule.php create mode 100644 Updated_Cms/app/Rules/Password.php create mode 100644 Updated_Cms/app/Rules/TurnstileCheck.php create mode 100644 Updated_Cms/app/Rules/ValidateInstallationKeyRule.php create mode 100644 Updated_Cms/app/Rules/WebsiteWordfilterRule.php create mode 100644 Updated_Cms/app/Services/Articles/ArticleService.php create mode 100644 Updated_Cms/app/Services/Articles/CommentService.php create mode 100644 Updated_Cms/app/Services/Articles/ReactionService.php create mode 100644 Updated_Cms/app/Services/Community/CameraService.php create mode 100644 Updated_Cms/app/Services/Community/RareValues/RareValueCategoriesService.php create mode 100644 Updated_Cms/app/Services/Community/RareValues/RareValuesService.php create mode 100644 Updated_Cms/app/Services/Community/StaffApplicationService.php create mode 100644 Updated_Cms/app/Services/Community/StaffService.php create mode 100644 Updated_Cms/app/Services/Community/TeamService.php create mode 100644 Updated_Cms/app/Services/FindRetrosService.php create mode 100644 Updated_Cms/app/Services/HousekeepingPermissionsService.php create mode 100644 Updated_Cms/app/Services/IpLookupService.php create mode 100644 Updated_Cms/app/Services/PermissionsService.php create mode 100644 Updated_Cms/app/Services/RconService.php create mode 100644 Updated_Cms/app/Services/SettingsService.php create mode 100644 Updated_Cms/app/Services/User/SessionService.php create mode 100644 Updated_Cms/app/Services/User/UserApiService.php create mode 100644 Updated_Cms/app/Services/User/UserService.php create mode 100644 Updated_Cms/app/Services/ViteService.php create mode 100644 Updated_Cms/app/View/Components/AppLayout.php create mode 100644 Updated_Cms/app/View/Components/GuestLayout.php create mode 100644 Updated_Cms/app/View/Components/InstallationLayout.php create mode 100644 Updated_Cms/artisan create mode 100644 Updated_Cms/bootstrap/app.php create mode 100644 Updated_Cms/compose.yaml create mode 100644 Updated_Cms/composer.json create mode 100644 Updated_Cms/composer.lock create mode 100644 Updated_Cms/package.json create mode 100644 Updated_Cms/phpunit.xml create mode 100644 Updated_Cms/pint.json create mode 100644 Updated_Cms/postcss.config.cjs create mode 100644 Updated_Cms/ray.php create mode 100644 Updated_Cms/rector.php create mode 100644 Updated_Cms/resources/themes/dusk/views/public/assets/js/client.js create mode 100644 Updated_Cms/resources/themes/dusk/views/public/assets/js/dusk.js create mode 100644 Updated_Cms/resources/themes/dusk/views/public/assets/js/expressInstall.swf create mode 100644 Updated_Cms/resources/themes/dusk/views/public/assets/js/flash_detect_min.js create mode 100644 Updated_Cms/resources/themes/dusk/views/public/assets/js/flashclient.js create mode 100644 Updated_Cms/resources/themes/dusk/views/public/assets/js/jquery-latest.js create mode 100644 Updated_Cms/resources/themes/dusk/views/public/assets/js/jquery-ui.js create mode 100644 Updated_Cms/resources/themes/dusk/views/public/assets/js/popper.min.js create mode 100644 Updated_Cms/resources/themes/dusk/views/public/assets/js/swfobject.js create mode 100644 Updated_Cms/resources/themes/dusk/views/public/assets/js/tippy-bundle.umd.min.js create mode 100644 Updated_Cms/resources/themes/dusk/views/room/index.blade.php create mode 100644 Updated_Cms/resources/themes/dusk/views/shop/shop.blade.php create mode 100644 Updated_Cms/resources/themes/dusk/views/user/me.blade.php create mode 100644 Updated_Cms/resources/themes/dusk/views/user/profile.blade.php create mode 100644 Updated_Cms/resources/themes/dusk/views/user/settings/account.blade.php create mode 100644 Updated_Cms/resources/themes/dusk/views/user/settings/password.blade.php create mode 100644 Updated_Cms/resources/themes/dusk/views/user/settings/session-logs.blade.php create mode 100644 Updated_Cms/resources/themes/dusk/views/user/settings/two-factor.blade.php create mode 100644 Updated_Cms/resources/views/components/content/installation-content-section.blade.php create mode 100644 Updated_Cms/resources/views/components/currency-box.blade.php create mode 100644 Updated_Cms/resources/views/components/icons/cart.blade.php create mode 100644 Updated_Cms/resources/views/components/icons/chevron-down.blade.php create mode 100644 Updated_Cms/resources/views/components/icons/eye.blade.php create mode 100644 Updated_Cms/resources/views/components/icons/fullscreen.blade.php create mode 100644 Updated_Cms/resources/views/components/icons/gift.blade.php create mode 100644 Updated_Cms/resources/views/components/icons/home.blade.php create mode 100644 Updated_Cms/resources/views/components/icons/moon.blade.php create mode 100644 Updated_Cms/resources/views/components/icons/reload.blade.php create mode 100644 Updated_Cms/resources/views/components/icons/user.blade.php create mode 100644 Updated_Cms/resources/views/filament/forms/components/ck-editor.blade.php create mode 100644 Updated_Cms/resources/views/filament/infolists/components/time-line-icon-entry.blade.php create mode 100644 Updated_Cms/resources/views/filament/infolists/components/time-line-propertie-entry.blade.php create mode 100644 Updated_Cms/resources/views/filament/infolists/components/time-line-repeatable-entry.blade.php create mode 100644 Updated_Cms/resources/views/filament/infolists/components/time-line-title-entry.blade.php create mode 100644 Updated_Cms/resources/views/filament/pages/badge-page.blade.php create mode 100644 Updated_Cms/resources/views/filament/pages/logs-manager.blade.php create mode 100644 Updated_Cms/resources/views/filament/pages/manage-badge-uploads.blade.php create mode 100644 Updated_Cms/resources/views/filament/tables/columns/activity-logs-properties.blade.php create mode 100644 Updated_Cms/resources/views/filament/tables/columns/habbo-badge-column.blade.php create mode 100644 Updated_Cms/resources/views/filament/tables/columns/user-avatar.blade.php create mode 100644 Updated_Cms/resources/views/filament/widgets/articles-aggregate-chart.blade.php create mode 100644 Updated_Cms/resources/views/filament/widgets/top-dashboard-overview.blade.php create mode 100644 Updated_Cms/resources/views/installation/index.blade.php create mode 100644 Updated_Cms/resources/views/installation/step-1.blade.php create mode 100644 Updated_Cms/resources/views/installation/step-2.blade.php create mode 100644 Updated_Cms/resources/views/installation/step-3.blade.php create mode 100644 Updated_Cms/resources/views/installation/step-4.blade.php create mode 100644 Updated_Cms/resources/views/installation/step-5.blade.php create mode 100644 Updated_Cms/resources/views/layouts/installation.blade.php create mode 100644 Updated_Cms/resources/views/vendor/turnstile/.gitkeep create mode 100644 Updated_Cms/resources/views/vendor/turnstile/components/turnstile-widget.blade.php create mode 100644 Updated_Cms/routes/api.php create mode 100644 Updated_Cms/routes/channels.php create mode 100644 Updated_Cms/routes/console.php create mode 100644 Updated_Cms/routes/web.php create mode 100644 Updated_Cms/storage/clockwork/.gitignore create mode 100644 Updated_Cms/storage/debugbar/.gitignore create mode 100644 Updated_Cms/tests/CreatesApplication.php create mode 100644 Updated_Cms/tests/Feature/AuthenticationTest.php create mode 100644 Updated_Cms/tests/Feature/RegistrationTest.php create mode 100644 Updated_Cms/tests/Pest.php create mode 100644 Updated_Cms/tests/TestCase.php create mode 100644 Updated_Cms/tests/Unit/ExampleTest.php create mode 100644 Updated_Cms/vite.config.js diff --git a/Updated_Cms/.editorconfig b/Updated_Cms/.editorconfig new file mode 100644 index 0000000000..1671c9b9d9 --- /dev/null +++ b/Updated_Cms/.editorconfig @@ -0,0 +1,18 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +indent_style = space +indent_size = 4 +trim_trailing_whitespace = true + +[*.md] +trim_trailing_whitespace = false + +[*.{yml,yaml}] +indent_size = 2 + +[docker-compose.yml] +indent_size = 4 diff --git a/Updated_Cms/.env.example b/Updated_Cms/.env.example new file mode 100644 index 0000000000..016078e5d4 --- /dev/null +++ b/Updated_Cms/.env.example @@ -0,0 +1,128 @@ +APP_NAME=Laravel +APP_ENV=local +APP_KEY= +APP_DEBUG=true +APP_URL=http://localhost + +LOG_CHANNEL=stack +LOG_DEPRECATIONS_CHANNEL=null +LOG_LEVEL=debug + +# Change those to match your database settings +DB_CONNECTION=mysql +DB_HOST=127.0.0.1 +DB_PORT=3306 +DB_DATABASE=atomcms +DB_USERNAME=root +DB_PASSWORD=password + +BROADCAST_DRIVER=log +CACHE_DRIVER=file +FILESYSTEM_DISK=local +QUEUE_CONNECTION=sync +SESSION_DRIVER=database +SESSION_LIFETIME=120 + +MEMCACHED_HOST=127.0.0.1 + +REDIS_HOST=127.0.0.1 +REDIS_PASSWORD=null +REDIS_PORT=6379 + +MAIL_MAILER=smtp +MAIL_HOST=mailhog +MAIL_PORT=1025 +MAIL_USERNAME=null +MAIL_PASSWORD=null +MAIL_ENCRYPTION=null +MAIL_FROM_ADDRESS="hello@example.com" +MAIL_FROM_NAME="${APP_NAME}" + +AWS_ACCESS_KEY_ID= +AWS_SECRET_ACCESS_KEY= +AWS_DEFAULT_REGION=us-east-1 +AWS_BUCKET= +AWS_USE_PATH_STYLE_ENDPOINT=false + +PUSHER_APP_ID= +PUSHER_APP_KEY= +PUSHER_APP_SECRET= +PUSHER_HOST= +PUSHER_PORT=443 +PUSHER_SCHEME=https +PUSHER_APP_CLUSTER=mt1 + +VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}" +VITE_PUSHER_HOST="${PUSHER_HOST}" +VITE_PUSHER_PORT="${PUSHER_PORT}" +VITE_PUSHER_SCHEME="${PUSHER_SCHEME}" +VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" + +## Custom variables +RCON_HOST=127.0.0.1 +RCON_PORT=3001 + +# Find retros settings +FINDRETROS_NAME= +FINDRETROS_ENABLED=false + +# Recaptcha settings +GOOGLE_RECAPTCHA_SITE_KEY= +GOOGLE_RECAPTCHA_SECRET_KEY= + +# Turnstile +TURNSTILE_SITE_KEY= +TURNSTILE_SECRET_KEY= + +# If set to true, Atom will rename any colliding table names when migration the first time around +RENAME_COLLIDING_TABLES=false + +# Flash client settings +FLASH_CLIENT_ENABLED=false +EMULATOR_IP=127.0.0.1 +EMULATOR_PORT=3000 +SWF_BASE_PATH=client/flash +HABBO_SWF=Habbo.swf +PRODUCTION_FOLDER=gordon/PRODUCTION +EXTERNAL_FURNIDATA=gamedata/furnidata.xml +EXTERNAL_FIGUREMAP=gamedata/figuremap.xml +EXTERNAL_FIGUREDATA=gamedata/figuredata.xml +EXTERNAL_PRODUCTDATA=gamedata/productdata.txt +EXTERNAL_TEXTS=gamedata/external_flash_texts.txt +EXTERNAL_VARIABLES=gamedata/external_variables.txt +EXTERNAL_OVERRIDE_TEXTS=gamedata/override/external_flash_override_texts.txt +EXTERNAL_OVERRIDE_VARIABLES=gamedata/override/external_override_variables.txt + +# Only enable if you come from a CMS like RevCMS +# This will only work if your password is hashed using md5 +# By default Atom CMS uses bcrypt, this is purely used to ease the process, when switching from a CMS using md5 +CONVERT_PASSWORDS=false + +# Enable this if your site is running through https, but you're experiencing issues with requests being made to "http" +FORCE_HTTPS=false + +# Default language for the site +APP_LOCALE=en + +# Enter the time in minutes that a password reset token can be valid +PASSWORD_RESET_TOKEN_TIME=15 + +# General paypal options +PAYPAL_MODE='sandbox' +PAYPAL_PAYMENT_ACTION='Order' +PAYPAL_CURRENCY='USD' +PAYPAL_NOTIFY_URL= +PAYPAL_LOCALE='en_US' +PAYPAL_VALIDATE_SSL=true + +#PayPal Setting & API Credentials - sandbox +PAYPAL_SANDBOX_CLIENT_ID= +PAYPAL_SANDBOX_CLIENT_SECRET= +PAYPAL_SANDBOX_APP_ID= + +#PayPal Setting & API Credentials - live +PAYPAL_LIVE_CLIENT_ID= +PAYPAL_LIVE_CLIENT_SECRET= +PAYPAL_LIVE_APP_ID= + +FORTIFY_PREFIX= diff --git a/Updated_Cms/.env.testing.example b/Updated_Cms/.env.testing.example new file mode 100644 index 0000000000..52e0da8ce9 --- /dev/null +++ b/Updated_Cms/.env.testing.example @@ -0,0 +1,41 @@ +APP_NAME=Atom +APP_ENV=testing +APP_KEY=base64:GENERATE_NEW_KEY_HERE +APP_DEBUG=true +APP_URL=http://localhost + +LOG_CHANNEL=stack +LOG_DEPRECATIONS_CHANNEL=null +LOG_LEVEL=debug + +DB_CONNECTION=mariadb +DB_HOST=127.0.0.1 +DB_PORT=3306 +DB_DATABASE=testing +DB_USERNAME=docker +DB_PASSWORD=password + +BROADCAST_DRIVER=log +CACHE_DRIVER=array +FILESYSTEM_DISK=local +QUEUE_CONNECTION=sync +SESSION_DRIVER=array +SESSION_LIFETIME=120 + +MAIL_MAILER=array + +# Testing specific settings +BCRYPT_ROUNDS=4 +TELESCOPE_ENABLED=false + +# Disable CAPTCHA for testing +GOOGLE_RECAPTCHA_ENABLED=0 +CLOUDFLARE_TURNSTILE_ENABLED=0 + +# Cloudflare Turnstile (test keys) +TURNSTILE_SITE_KEY=1x00000000000000000000AA +TURNSTILE_SECRET_KEY=1x0000000000000000000000000000000AA + +# Google reCAPTCHA (dummy values for testing) +GOOGLE_RECAPTCHA_SITE_KEY=dummy_site_key +GOOGLE_RECAPTCHA_SECRET_KEY=dummy_secret_key \ No newline at end of file diff --git a/Updated_Cms/.gitattributes b/Updated_Cms/.gitattributes new file mode 100644 index 0000000000..7dbbf41a4b --- /dev/null +++ b/Updated_Cms/.gitattributes @@ -0,0 +1,11 @@ +* text=auto + +*.blade.php diff=html +*.css diff=css +*.html diff=html +*.md diff=markdown +*.php diff=php + +/.github export-ignore +CHANGELOG.md export-ignore +.styleci.yml export-ignore diff --git a/Updated_Cms/.github/workflows/laravel.yml b/Updated_Cms/.github/workflows/laravel.yml new file mode 100644 index 0000000000..c61a7e0535 --- /dev/null +++ b/Updated_Cms/.github/workflows/laravel.yml @@ -0,0 +1,77 @@ + name: Laravel + + on: + push: + branches: [ "main", "dev" ] + pull_request: + branches: [ "main", "dev" ] + + jobs: + tests: + runs-on: ubuntu-latest + + services: + mariadb: + image: mariadb:11 + env: + MYSQL_ALLOW_EMPTY_PASSWORD: yes + MYSQL_DATABASE: atomcms_testing + ports: + - 3306:3306 + options: --health-cmd="healthcheck.sh --connect --innodb_initialized" --health-interval=10s --health-timeout=5s --health-retries=3 + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 1 + + - name: Cache composer dependencies + uses: actions/cache@v4 + with: + path: vendor + key: composer-${{ hashFiles('**/composer.lock') }} + restore-keys: | + composer- + + - name: Install PHP + uses: shivammathur/setup-php@v2 + with: + php-version: 8.4 + + - name: Install composer dependencies + run: | + composer install --no-scripts + + - name: Install NPM dependencies + run: npm install + + - name: Compile assets + run: npm run build:atom + + - name: Prepare Laravel Application + run: | + cp .env.testing.example .env.testing + # Override database config for GitHub Actions + sed -i 's/DB_USERNAME=docker/DB_USERNAME=root/' .env.testing + sed -i 's/DB_PASSWORD=password/DB_PASSWORD=/' .env.testing + sed -i 's/DB_DATABASE=testing/DB_DATABASE=atomcms_testing/' .env.testing + php artisan key:generate --env=testing + + - name: Debug Laravel Configuration + run: | + php artisan config:cache --env=testing + php artisan route:cache --env=testing + php artisan view:cache --env=testing + + - name: Create storage directories + run: | + mkdir -p storage/app/public + mkdir -p storage/framework/cache + mkdir -p storage/framework/sessions + mkdir -p storage/framework/views + mkdir -p storage/logs + chmod -R 755 storage + + - name: Run Test suite with debug + run: | + php artisan test --env=testing --stop-on-failure diff --git a/Updated_Cms/.github/workflows/lint.yml b/Updated_Cms/.github/workflows/lint.yml new file mode 100644 index 0000000000..65b4e8fb1a --- /dev/null +++ b/Updated_Cms/.github/workflows/lint.yml @@ -0,0 +1,38 @@ +name: Fix Code Style + +on: [push] + +permissions: + contents: write + +jobs: + lint: + runs-on: ubuntu-latest + strategy: + fail-fast: true + matrix: + php: [8.4] + + steps: + - name: Checkout code + uses: actions/checkout@v5 + with: + token: ${{ secrets.GITHUB_TOKEN }} + fetch-depth: 0 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + tools: composer, pint + + - name: Install composer dependencies + run: composer install --prefer-dist --no-interaction --no-progress + + - name: Run Pint + run: pint + + - name: Commit linted files + uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: 'style: fix code style with Laravel Pint' diff --git a/Updated_Cms/.gitignore b/Updated_Cms/.gitignore new file mode 100644 index 0000000000..2beb5534d8 --- /dev/null +++ b/Updated_Cms/.gitignore @@ -0,0 +1,25 @@ +/node_modules +/public/build +/public/hot +/public/client +/public/storage +/storage/*.key +/storage/app/public +/storage/framework/* +/vendor +/public/static +.env +.env.backup +.env.testing +.phpunit.result.cache +Homestead.json +Homestead.yaml +auth.json +npm-debug.log +yarn-error.log +yarn.lock +/.idea +/.vscode +/public/assets/images/generated-logos +CLAUDE.md +.phpunit.cache diff --git a/Updated_Cms/CODEOWNERS b/Updated_Cms/CODEOWNERS new file mode 100644 index 0000000000..43bceaebd7 --- /dev/null +++ b/Updated_Cms/CODEOWNERS @@ -0,0 +1,4 @@ +# These owners will be the default owners for everything in +# the repo. Unless a later match takes precedence, the owners will be requested for +# review when someone opens a pull request. +* @ObjectRetros diff --git a/Updated_Cms/LICENSE b/Updated_Cms/LICENSE new file mode 100644 index 0000000000..924a625a81 --- /dev/null +++ b/Updated_Cms/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright 2023 ObjectRetros + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/Updated_Cms/README.md b/Updated_Cms/README.md new file mode 100644 index 0000000000..cefe530de1 --- /dev/null +++ b/Updated_Cms/README.md @@ -0,0 +1,299 @@ +
+Atom CMS + +A modern, community-driven Retro CMS built with Laravel 12.x + +[![Discord](https://img.shields.io/badge/Discord-Join%20Server-5865F2?style=flat&logo=discord&logoColor=white)](https://discord.gg/pP6HyZedAj) +[![Laravel](https://img.shields.io/badge/Laravel-12.x-FF2D20?style=flat&logo=laravel&logoColor=white)](https://laravel.com) +[![PHP](https://img.shields.io/badge/PHP-8.2+-777BB4?style=flat&logo=php&logoColor=white)](https://php.net) + +[Live Demos](#-live-preview) • [Installation](#-installation) • [Documentation](https://github.com/atom-retros/atomcms/wiki) • [Contributing](#-contributing) + +
+ +>[!NOTE] +>Disclaimer: Educational Use Only +> +> Atom CMS is provided as an educational resource for learning purposes only. The creators and contributors are not responsible for any misuse or unintended consequences arising from its use. By using Atom CMS, you agree to take full responsibility for your actions and ensure compliance with all applicable laws and regulations in your jurisdiction. + + +## 🎯 About + +Atom CMS is a modern, community-driven CMS designed to provide a flexible and user-friendly platform for retro hotel management. Built on Laravel 12.x with a focus on extensibility and ease of use, Atom CMS features a built-in theme system that allows you to use any CSS framework or create fully customized vanilla designs. + +### Built With + +- **[Laravel 12.x](https://laravel.com/docs/11.x)** - Elegant PHP framework powering the backend +- **[Vite](https://vitejs.dev/)** - Next-generation frontend tooling for blazing-fast builds +- **[TailwindCSS](https://tailwindcss.com/)** - Utility-first CSS framework for responsive design + +--- + +## ✨ Features + +- 🎨 **Built-in Theme System** - Use any CSS framework or create custom themes +- 🔐 **Secure Authentication** - Laravel-powered authentication and authorization +- 🌍 **Multi-language Support** - Built-in localization for global audiences +- 📊 **Integrated Housekeeping** - Comprehensive admin panel +- 🔄 **Rcon System** - Real-time server communication +- 📱 **Responsive Design** - Mobile-first approach with TailwindCSS +- 🚀 **Modern Stack** - Latest PHP 8.2+ features + +--- + +## 👀 Live Preview + +Experience Atom CMS with our official themes: + +- **Dusk Theme**: [https://dusk.atomcms.dev](https://dusk.atomcms.dev) +- **Atom Theme**: [https://atom.atomcms.dev](https://atom.atomcms.dev) + +--- + +## 🚧 Requirements + +| Requirement | Version | +|------------|---------| +| PHP | 8.2 or higher | +| MySQL | 8.x or higher | +| MariaDB | 10.x or higher | +| Composer | v2 | +| Node.js | LTS | +| Database | [Arcturus Morningstar](https://github.com/ObjectRetros/retro-hotel-files/blob/main/arcturus-3-5-3-database.sql) | + +### Required PHP Extensions + +Ensure the following extensions are enabled in your `php.ini`: + +```ini +extension=curl +extension=fileinfo +extension=gd +extension=mbstring +extension=openssl +extension=pdo_mysql +extension=sockets +extension=intl +``` + +**Note:** Remove the semicolon (`;`) prefix if the extension is commented out. + +--- + +## 📦 Installation + +### Windows Setup + +```bash +# Clone the repository +git clone https://github.com/ObjectRetros/atomcms.git +cd atomcms + +# Configure environment +copy .env.example .env +# Edit .env and update your database credentials + +# Install dependencies +composer install +npm install + +# Set up database and generate key +php artisan migrate --seed +php artisan key:generate + +# Build assets +npm run build:atom +# For development: npm run dev:atom +``` + +#### IIS Configuration + +Point your IIS site to the `public` folder inside the `atomcms` directory. + +#### Required Permissions + +Grant "Full control" to both `IUSR` and `IIS_IUSRS` for the atomcms folder. + +**Visual guide:** [Permission setup tutorial](https://gyazo.com/7d5f38525a762c1b26bbd7552ca93478) + +#### Troubleshooting cURL SSL Errors + +If you encounter cURL 60 errors: + +1. Download the latest [cacert.pem](https://curl.se/docs/caextract.html) +2. Place it in `C:/` +3. Edit `php.ini` and update: + ```ini + curl.cainfo = "C:/cacert-2025-09-09.pem" + ``` +4. Restart your web server + +#### Complete Windows Tutorial + +New to retro hotel setup? Follow our comprehensive three-part series: + +- [Part 1: Basic Setup](https://devbest.com/threads/how-to-set-up-a-retro-in-2022-iis-nitro-html5-part-1.92532/) +- [Part 2: Configuration](https://devbest.com/threads/how-to-set-up-a-retro-in-2022-iis-nitro-html5-part-2.92533/) +- [Part 3: Finalization](https://devbest.com/threads/how-to-set-up-a-retro-in-2022-iis-nitro-html5-part-3.92543/) + +--- + +### Linux Setup + +```bash +# Clone the repository +git clone https://github.com/ObjectRetros/atomcms.git +cd atomcms + +# Configure environment +cp .env.example .env +# Edit .env and update your database credentials + +# Install dependencies +composer install +npm install + +# Set up database and generate key +php artisan migrate --seed +php artisan key:generate + +# Build assets +npm run build:atom +# For development: npm run dev:atom +``` + +#### Set Permissions + +```bash +sudo chown -R $USER:www-data storage +sudo chown -R $USER:www-data bootstrap/cache +chmod -R 775 storage +chmod -R 775 bootstrap/cache +``` + +#### NGINX Configuration + +For NGINX setup, refer to Laravel's [deployment documentation](https://laravel.com/docs/12.x/deployment#nginx). + +#### Complete Linux Tutorial + +Need help setting up your retro hotel on Linux? Follow our comprehensive Ubuntu tutorial: + +- [Complete Ubuntu Setup Guide](https://git.krews.org/duckietm/ubuntu-tutorial) - Step-by-step instructions for Ubuntu + +--- + +## ⚙️ Configuration + +### Production Environment + +Update these variables in your `.env` file for production: + +```dotenv +APP_ENV=production +APP_DEBUG=false +FORCE_HTTPS=true # If using Cloudflare's "Always use HTTPS" +``` + +### Cloudflare Turnstile Captcha + +Protect your site from bots: + +1. Visit [Cloudflare Turnstile](https://www.cloudflare.com/products/turnstile/) +2. Sign in and select your site +3. Copy the site and secret keys to your `.env` file + +### Important: Disable Rocket Loader + +Atom CMS uses JavaScript that conflicts with Cloudflare's Rocket Loader. To disable: + +1. Go to your Cloudflare dashboard +2. Navigate to **Speed** → **Optimization** +3. Find **Rocket Loader™** and disable it + +### Migrating from Another CMS + +If migrating from Cosmic CMS or similar platforms: + +Set `RENAME_COLLIDING_TABLES=true` in your `.env` file. Atom CMS will automatically handle table conflicts. + +**Note:** We recommend proper manual cleanup, but this feature helps avoid common migration issues. + +--- + +## 🧪 Testing + +Atom CMS includes a growing test suite using Pest. + +### Run Tests + +```bash +# Using Pest +vendor/bin/pest + +# Using Artisan +php artisan test +``` + +--- + +## 📚 Documentation + +For detailed documentation, addons, tips, and tricks, visit our [official wiki](https://github.com/atom-retros/atomcms/wiki). + +### Learning Laravel + +New to Laravel? These free resources will help: +- [Official bootcamp & course](https://learn.laravel.com) - Official Laravel bootcamp & course +- [Laravel 11 from Scratch](https://laracasts.com/series/30-days-to-learn-laravel-11) - Official Laracasts course +--- + +## 🤝 Contributing + +We welcome contributions! To maintain code quality and streamline reviews, please read our [contribution guidelines](https://github.com/ObjectRetros/atomcms/wiki/0.-Contribution-guidelines) before submitting a pull request. + +--- + +## 🏆 Credits + +Atom CMS is made possible by our amazing community: + +### Core Contributors + +- **Kasja** - Design direction, Dusk theme, ideas & graphics +- **INicollas** - Dark mode, Turbolinks, article reactions, user sessions, PT-BR translations, Orion Housekeeping +- **Kani** - Rcon system, FindRetros API, Atom CMS v2 creator/maintainer +- **DuckieTM** - Badge drawer, bugfixes, housekeeping features +- **EntenKoeniq** - Auto language registration, color scheme selection, various page fixes + +### Contributors + +- **Dominic** - Performance improvements, user sessions +- **Beny** - FindRetros API fixes, Cloudflare fixes +- **Live** - French translations, bugfixes +- **MisterDeen** - Custom Discord widget +- **DamienJolly**, **Danbo**, **Diddy/Josh** - Various bugfixes and improvements +- **Sonay** - Material theme inspiration +- **Raizer** - Circinus + +### Translations + +- **Oliver** - Finnish +- **Damue & EntenKoeniq** - German +- **Talion** - Turkish +- **CentralCee, Rille & Tuborgs** - Swedish +- **Yannick** - Dutch +- **Gedomi** - Spanish +- **Lorenzune** - Italian +- **Twana** - Norwegian +- **Plow** - French + +--- + +
+ +**[⬆ Back to Top](#atom-cms)** + +Made with ❤️ by the Atom CMS Community + +
diff --git a/Updated_Cms/app/Actions/Fortify/Controllers/TwoFactorAuthenticatedSessionController.php b/Updated_Cms/app/Actions/Fortify/Controllers/TwoFactorAuthenticatedSessionController.php new file mode 100644 index 0000000000..86beeb01ea --- /dev/null +++ b/Updated_Cms/app/Actions/Fortify/Controllers/TwoFactorAuthenticatedSessionController.php @@ -0,0 +1,58 @@ +guard = $guard; + } + + /** + * Attempt to authenticate a new session using the two factor authentication code. + */ + public function store(TwoFactorLoginRequest $request): TwoFactorLoginResponse + { + $user = $request->challengedUser(); + + if ($code = $request->validRecoveryCode()) { + $user->replaceRecoveryCode($code); + + event(new RecoveryCodeReplaced($user, $code)); + } elseif (! $request->hasValidCode()) { + throw ValidationException::withMessages([ + 'code' => __('Invalid Two Factor Authentication code'), + ]); + } + + $this->guard->login($user, $request->remember()); + + $request->session()->regenerate(); + + $user->update([ + 'ip_current' => $request->ip(), + ]); + + return app(TwoFactorLoginResponse::class); + } +} diff --git a/Updated_Cms/app/Actions/Fortify/CreateNewUser.php b/Updated_Cms/app/Actions/Fortify/CreateNewUser.php new file mode 100644 index 0000000000..2fd1909ad1 --- /dev/null +++ b/Updated_Cms/app/Actions/Fortify/CreateNewUser.php @@ -0,0 +1,158 @@ + __('Registration is disabled.'), + ]); + } + + $ip = request()?->ip(); + if (! filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4 | FILTER_FLAG_IPV6)) { + throw ValidationException::withMessages([ + 'registration' => __('Your IP address seems to be invalid'), + ]); + } + + $matchingIpCount = User::query() + ->where('ip_current', '=', $ip) + ->orWhere('ip_register', '=', $ip) + ->count(); + + if ($matchingIpCount >= (int) (setting('max_accounts_per_ip') ?: 99)) { + throw ValidationException::withMessages([ + 'registration' => __('You have reached the max amount of allowed account'), + ]); + } + + $this->validate($input); + + $user = User::create([ + 'username' => $input['username'], + 'mail' => $input['mail'], + 'password' => Hash::make($input['password']), + 'account_created' => time(), + 'last_login' => time(), + 'motto' => setting('start_motto') ?: 'Welcome to the hotel!', + 'look' => setting('start_look') ?: 'hr-100-61.hd-180-1.ch-210-66.lg-270-110.sh-305-62', + 'credits' => setting('start_credits') ?: 1000, + 'ip_register' => $ip, + 'ip_current' => $ip, + 'auth_ticket' => '', + 'home_room' => (int) (setting('hotel_home_room') ?: 0), + ]); + + $user->update([ + 'referral_code' => sprintf('%s%s', $user->id, Str::random(8)), + ]); + + if (setting('requires_beta_code') !== '' && setting('requires_beta_code') !== '0') { + WebsiteBetaCode::where('code', '=', $input['beta_code'])->update([ + 'user_id' => $user->id, + ]); + } + + // Referral + if (isset($input['referral_code'])) { + $referralUser = User::query() + ->where('referral_code', '=', $input['referral_code']) + ->first(); + + if (is_null($referralUser)) { + return redirect(RouteServiceProvider::HOME); + } + + // If same IP skip referral incrementation + if ($referralUser->ip_current == $user->ip_current || $referralUser->ip_register == $user->ip_register) { + return redirect(RouteServiceProvider::HOME); + } + + $referralUser->referrals()->updateOrCreate(['user_id' => $referralUser->id], [ + 'referrals_total' => $referralUser->referrals != null ? $referralUser->referrals->referrals_total += 1 : 1, + ]); + + $referralUser->userReferrals()->create([ + 'referred_user_id' => $user->id, + 'referred_user_ip' => $ip, + ]); + } + + if (setting('enable_discord_webhook') === '1') { + $this->sendDiscordWebhook($user->username, $user->ip_register, $user->mail); + } + + return $user; + } + + private function validate(array $inputs): array + { + $rules = [ + 'username' => ['required', 'string', sprintf('regex:%s', setting('username_regex') ?: '/^[a-zA-Z0-9_.-]+$/'), 'max:25', Rule::unique('users'), new WebsiteWordfilterRule], + 'mail' => ['required', 'string', 'email', 'max:255', Rule::unique('users')], + 'password' => $this->passwordRules(), + 'beta_code' => ['sometimes', 'string', new BetaCodeRule], + 'terms' => ['required', 'accepted'], + 'g-recaptcha-response' => ['sometimes', 'string', new GoogleRecaptchaRule], + 'cf-turnstile-response' => [app(Turnstile::class)], + ]; + + $messages = [ + 'g-recaptcha-response.required' => __('The Google recaptcha must be completed'), + 'g-recaptcha-response.string' => __('The google recaptcha was submitted with an invalid type'), + ]; + + return Validator::make($inputs, $rules, $messages)->validate(); + } + + private function sendDiscordWebhook(string $username, string $ip, string $email): void + { + if (setting('discord_webhook_url') === '') { + Log::error('Discord webhook url not provided', ['Please provide a discord webhook url before being able to send any webhook requests.']); + + return; + } + + $request = Http::asJson()->post(setting('discord_webhook_url'), [ + 'username' => sprintf('%s Bot', setting('hotel_name')), + 'content' => "User: {$username} has just registered, with the IP: {$ip} and E-mail: {$email}", + ]); + + // Log the error in-case webhook wasn't sent + if (! $request->successful()) { + Log::error('Failed to send Discord webhook notification', [ + 'username' => $username, + 'ip' => $ip, + 'email' => $email, + 'response_status' => $request->status(), + 'response_body' => $request->body(), + ]); + } + } +} diff --git a/Updated_Cms/app/Actions/Fortify/DisableTwoFactorAuthentication.php b/Updated_Cms/app/Actions/Fortify/DisableTwoFactorAuthentication.php new file mode 100644 index 0000000000..274ecf990f --- /dev/null +++ b/Updated_Cms/app/Actions/Fortify/DisableTwoFactorAuthentication.php @@ -0,0 +1,16 @@ +forceFill([ + 'two_factor_secret' => null, + 'two_factor_recovery_codes' => null, + 'two_factor_confirmed' => false, + ])->save(); + } +} diff --git a/Updated_Cms/app/Actions/Fortify/RedirectIfTwoFactorAuthenticatable.php b/Updated_Cms/app/Actions/Fortify/RedirectIfTwoFactorAuthenticatable.php new file mode 100644 index 0000000000..17837dd031 --- /dev/null +++ b/Updated_Cms/app/Actions/Fortify/RedirectIfTwoFactorAuthenticatable.php @@ -0,0 +1,194 @@ +guard = $guard; + $this->limiter = $limiter; + } + + /** + * Handle the incoming request. + * + * @return mixed + */ + public function handle(Request $request, callable $next) + { + $user = $this->validateCredentials($request); + + if (Fortify::confirmsTwoFactorAuthentication()) { + if ($user?->two_factor_secret && + ! is_null($user?->two_factor_confirmed_at) && + in_array(TwoFactorAuthenticatable::class, class_uses_recursive($user))) { + return $this->twoFactorChallengeResponse($request, $user); + } else { + return $next($request); + } + } + + if ($user?->two_factor_secret && + in_array(TwoFactorAuthenticatable::class, class_uses_recursive($user))) { + return $this->twoFactorChallengeResponse($request, $user); + } + + return $next($request); + } + + /** + * Attempt to validate the incoming credentials. + * + * @return mixed + */ + protected function validateCredentials(Request $request) + { + if (Fortify::$authenticateUsingCallback) { + return tap(call_user_func(Fortify::$authenticateUsingCallback, $request), function ($user) use ($request): void { + if (! $user) { + $this->fireFailedEvent($request); + + $this->throwFailedAuthenticationException($request); + } + }); + } + + $model = $this->guard->getProvider()->getModel(); + + return tap($model::where(Fortify::username(), $request->{Fortify::username()})->first(), function ($user) use ($request): void { + // Update the users password to bcrypt, if they previously used md5 + if ($user && config('habbo.site.convert_passwords')) { + $this->convertUserPassword($user, $request->input('password')); + } + + if (! $user || ! $this->guard->getProvider()->validateCredentials($user, ['password' => $request->password])) { + $this->fireFailedEvent($request, $user); + + $this->throwFailedAuthenticationException($request); + } + + $this->validate($request); + + $user = User::select('id', 'password', 'rank') + ->where('username', '=', $request->input('username')) + ->first(); + + if (setting('maintenance_enabled') === '1' && setting('min_maintenance_login_rank') > $user->rank) { + throw ValidationException::withMessages([ + 'username' => __('Only staff can login during maintenance!'), + ]); + } + }); + } + + /** + * Throw a failed authentication validation exception. + * + * + * @throws ValidationException + */ + protected function throwFailedAuthenticationException(Request $request): void + { + $this->limiter->increment($request); + + throw ValidationException::withMessages([ + Fortify::username() => [trans('auth.failed')], + ])->errorBag('login'); + } + + /** + * Fire the failed authentication attempt event with the given arguments. + */ + protected function fireFailedEvent(Request $request, ?Authenticatable $user = null): void + { + event(new Failed(config('fortify.guard'), $user, [ + Fortify::username() => $request->{Fortify::username()}, + 'password' => $request->password, + ])); + } + + /** + * Get the two factor authentication enabled response. + * + * @param mixed $user + */ + protected function twoFactorChallengeResponse(Request $request, $user): Response + { + $request->session()->put([ + 'login.id' => $user->getKey(), + 'login.remember' => $request->filled('remember'), + ]); + + event(new \Laravel\Fortify\Events\TwoFactorAuthenticationChallenged($user)); + + return $request->wantsJson() + ? response()->json(['two_factor' => true]) + : to_route('two-factor.login'); + } + + private function convertUserPassword(User $user, string $password) + { + if ($user->password == md5($password)) { + $user->update([ + 'password' => Hash::make($password), + ]); + } + } + + private function validate(Request $request): array + { + $rules = []; + + if (setting('google_recaptcha_enabled') !== '' && setting('google_recaptcha_enabled') !== '0') { + $rules['g-recaptcha-response'] = ['required', 'string', new GoogleRecaptchaRule]; + } + + if (setting('cloudflare_turnstile_enabled') !== '' && setting('cloudflare_turnstile_enabled') !== '0') { + $rules['cf-turnstile-response'] = ['required', app(Turnstile::class)]; + } + + $messages = [ + 'g-recaptcha-response.required' => __('The Google reCAPTCHA must be completed'), + 'g-recaptcha-response.string' => __('The Google reCAPTCHA was submitted with an invalid type'), + 'cf-turnstile-response.required' => __('The Cloudflare Turnstile response is required'), + ]; + + return Validator::make($request->all(), $rules, $messages)->validate(); + } +} diff --git a/Updated_Cms/app/Actions/Fortify/RedirectIfTwoFactorConfirmed.php b/Updated_Cms/app/Actions/Fortify/RedirectIfTwoFactorConfirmed.php new file mode 100644 index 0000000000..e32b96cc9b --- /dev/null +++ b/Updated_Cms/app/Actions/Fortify/RedirectIfTwoFactorConfirmed.php @@ -0,0 +1,10 @@ + $this->passwordRules(), + ])->validate(); + + $user->forceFill([ + 'password' => Hash::make($input['password']), + ])->save(); + } +} diff --git a/Updated_Cms/app/Actions/Fortify/Rules/PasswordValidationRules.php b/Updated_Cms/app/Actions/Fortify/Rules/PasswordValidationRules.php new file mode 100644 index 0000000000..7e0fac17a6 --- /dev/null +++ b/Updated_Cms/app/Actions/Fortify/Rules/PasswordValidationRules.php @@ -0,0 +1,16 @@ + ['required', 'string', 'current_password:web'], + 'password' => $this->passwordRules(), + ], [ + 'current_password.current_password' => __('The provided password does not match your current password.'), + ])->validateWithBag('updatePassword'); + + $user->forceFill([ + 'password' => Hash::make($input['password']), + ])->save(); + } +} diff --git a/Updated_Cms/app/Actions/Fortify/UpdateUserProfileInformation.php b/Updated_Cms/app/Actions/Fortify/UpdateUserProfileInformation.php new file mode 100644 index 0000000000..d325d3bf6e --- /dev/null +++ b/Updated_Cms/app/Actions/Fortify/UpdateUserProfileInformation.php @@ -0,0 +1,57 @@ + ['required', 'string', 'max:255'], + + 'email' => [ + 'required', + 'string', + 'email', + 'max:255', + Rule::unique('users')->ignore($user->id), + ], + ])->validateWithBag('updateProfileInformation'); + + if ($input['email'] !== $user->email && + $user instanceof MustVerifyEmail) { + $this->updateVerifiedUser($user, $input); + } else { + $user->forceFill([ + 'name' => $input['name'], + 'email' => $input['email'], + ])->save(); + } + } + + /** + * Update the given verified user's profile information. + * + * @param mixed $user + */ + protected function updateVerifiedUser($user, array $input): void + { + $user->forceFill([ + 'name' => $input['name'], + 'email' => $input['email'], + 'email_verified_at' => null, + ])->save(); + + $user->sendEmailVerificationNotification(); + } +} diff --git a/Updated_Cms/app/Actions/SendCurrency.php b/Updated_Cms/app/Actions/SendCurrency.php new file mode 100644 index 0000000000..b500968884 --- /dev/null +++ b/Updated_Cms/app/Actions/SendCurrency.php @@ -0,0 +1,38 @@ +rcon->isConnected) { + match ($type) { + 'credits' => $this->rcon->giveCredits($user, $amount), + 'duckets' => $this->rcon->giveDuckets($user, $amount), + 'diamonds' => $this->rcon->giveDiamonds($user, $amount), + 'points' => $this->rcon->giveGotw($user, $amount), + default => false, + }; + } else { + match ($type) { + 'credits' => $user->increment('credits', $amount), + 'duckets' => $user->currencies()->where('type', CurrencyTypes::Duckets)->increment('amount', $amount), + 'diamonds' => $user->currencies()->where('type', CurrencyTypes::Diamonds)->increment('amount', $amount), + 'points' => $user->currencies()->where('type', CurrencyTypes::Points)->increment('amount', $amount), + default => false, + }; + } + + return null; + } +} diff --git a/Updated_Cms/app/Actions/SendFurniture.php b/Updated_Cms/app/Actions/SendFurniture.php new file mode 100644 index 0000000000..b0a2d565cd --- /dev/null +++ b/Updated_Cms/app/Actions/SendFurniture.php @@ -0,0 +1,28 @@ +rcon->isConnected) { + for ($i = 0; $i < $furni['amount']; $i++) { + $this->rcon->sendGift($user, $furni['item_id'], 'Thank you for supporting ' . setting('hotel_name')); + } + } else { + for ($i = 0; $i < $furni['amount']; $i++) { + $user->items()->create([ + 'item_id' => $furni['item_id'], + ]); + } + } + } + } +} diff --git a/Updated_Cms/app/Actions/UserActions.php b/Updated_Cms/app/Actions/UserActions.php new file mode 100644 index 0000000000..d5756fc00a --- /dev/null +++ b/Updated_Cms/app/Actions/UserActions.php @@ -0,0 +1,34 @@ +update([ + 'username' => $username, + ]); + } + + public function updateEmail($user, $email): void + { + $user->update([ + 'mail' => $email, + ]); + } + + public function updateMotto($user, $motto): void + { + $user->update([ + 'motto' => $motto, + ]); + } + + public function updateField($user, string $field, ?string $value): void + { + $user->update([ + $field => $value, + ]); + } +} diff --git a/Updated_Cms/app/Console/Commands/AtomSetupCommand.php b/Updated_Cms/app/Console/Commands/AtomSetupCommand.php new file mode 100644 index 0000000000..91c9ea02e9 --- /dev/null +++ b/Updated_Cms/app/Console/Commands/AtomSetupCommand.php @@ -0,0 +1,148 @@ +info(sprintf('Step %s/13', $step)); + $this->newLine(); + } + + public function handle(): void + { + Artisan::call('db:seed --class=WebsiteSettingsSeeder'); + + if ($this->option('auto') === 'false') { + $step = 1; + + $this->progressInfo($step); + $step++; + + $hotelName = $this->ask('Enter your hotel name'); + WebsiteSetting::where('key', '=', 'hotel_name')->update([ + 'value' => empty($hotelName) ? 'Hotel' : $hotelName, + ]); + + $this->progressInfo($step); + $step++; + + $colorMode = $this->choice('Enter your preferred CMS color mode', ['light', 'dark'], 0); + WebsiteSetting::where('key', '=', 'cms_color_mode')->update([ + 'value' => $colorMode, + ]); + + $this->progressInfo($step); + $step++; + + $startCredits = $this->ask('Enter the amount of credits new users should start with: (default is 5000)'); + WebsiteSetting::where('key', '=', 'start_credits')->update([ + 'value' => empty($startCredits) ? '5000' : $startCredits, + ]); + + $this->progressInfo($step); + $step++; + + $startDuckets = $this->ask('Enter the amount of credits new users should start with: (default is 5000)'); + WebsiteSetting::where('key', '=', 'start_duckets')->update([ + 'value' => empty($startDuckets) ? '5000' : $startDuckets, + ]); + + $this->progressInfo($step); + $step++; + + $startDiamonds = $this->ask('Enter the amount of diamonds new users should start with: (default is 100)'); + WebsiteSetting::where('key', '=', 'start_diamonds')->update([ + 'value' => empty($startDiamonds) ? '100' : $startDiamonds, + ]); + + $this->progressInfo($step); + $step++; + + $startPoints = $this->ask('Enter the amount of points new users should start with (default is 0)'); + WebsiteSetting::where('key', '=', 'start_points')->update([ + 'value' => empty($startPoints) ? '0' : $startPoints, + ]); + + $this->progressInfo($step); + $step++; + + $maxAccountsPerIP = $this->ask('Enter the amount of accounts a user can register per IP address (default is 2)'); + WebsiteSetting::where('key', '=', 'max_accounts_per_ip')->update([ + 'value' => empty($maxAccountsPerIP) ? '2' : $maxAccountsPerIP, + ]); + + $this->progressInfo($step); + $step++; + + $recaptchaEnabled = $this->choice('Google ReCaptcha enabled: (Do not forget to add your keys to your .env file in-case you set this to 1)', ['0', '1'], 0); + WebsiteSetting::where('key', '=', 'google_recaptcha_enabled')->update([ + 'value' => $recaptchaEnabled, + ]); + + $this->progressInfo($step); + $step++; + + $wordfilterEnabled = $this->choice('CMS wordfilter enabled', ['0', '1'], 1); + WebsiteSetting::where('key', '=', 'website_wordfilter_enabled')->update([ + 'value' => $wordfilterEnabled, + ]); + + $this->progressInfo($step); + $step++; + + $requiredBetaCode = $this->choice('Requires beta code to register', ['0', '1'], 0); + WebsiteSetting::where('key', '=', 'requires_beta_code')->update([ + 'value' => $requiredBetaCode, + ]); + + $this->progressInfo($step); + $step++; + + $registrationDisabled = $this->choice('Disable registration (Can be re-enabled later inside website_settings table if set to 1)', ['0', '1'], 0); + WebsiteSetting::where('key', '=', 'disable_registration')->update([ + 'value' => $registrationDisabled, + ]); + + $this->progressInfo($step); + $step++; + + $giveHC = $this->choice('Give all new users HC automatically', ['0', '1'], 0); + WebsiteSetting::where('key', '=', 'give_hc_on_register')->update([ + 'value' => $giveHC, + ]); + + $this->progressInfo($step); + + $maxCommentArticles = $this->ask('Enter the amount of comments each user can post per article (default is 2)'); + WebsiteSetting::where('key', '=', 'max_comment_per_article')->update([ + 'value' => empty($maxCommentArticles) ? '2' : $maxCommentArticles, + ]); + } + + $seeders = [ + 'WebsiteLanguageSeeder', + 'WebsiteArticleSeeder', + 'WebsitePermissionSeeder', + 'WebsiteWordfilterSeeder', + 'WebsiteTeamSeeder', + 'WebsiteRuleCategorySeeder', + 'WebsiteRuleSeeder', + ]; + + foreach ($seeders as $seeder) { + Artisan::call(sprintf('db:seed --class=%s', $seeder)); + } + + $this->info('The setup was successful!'); + } +} diff --git a/Updated_Cms/app/Console/Commands/ImportAdsData.php b/Updated_Cms/app/Console/Commands/ImportAdsData.php new file mode 100644 index 0000000000..97ae9b10d4 --- /dev/null +++ b/Updated_Cms/app/Console/Commands/ImportAdsData.php @@ -0,0 +1,88 @@ +getOrDefault('ads_path_filesystem'); + + if (! $this->validatePath($adsPath)) { + return; + } + + $files = $this->getImageFiles($adsPath); + + if ($files === []) { + $this->warn('No valid image files found in the ads directory.'); + + return; + } + + $this->processFiles($files); + + $this->info('Ads data import completed successfully.'); + } + + private function validatePath(?string $adsPath): bool + { + if (in_array($adsPath, [null, '', '0'], true)) { + $this->error('Ads path is not configured in website_settings.'); + + return false; + } + + if (! is_dir($adsPath)) { + $this->error("The ads path '{$adsPath}' does not exist in the filesystem."); + + return false; + } + + return true; + } + + private function getImageFiles(string $adsPath): array + { + return array_filter(scandir($adsPath), function ($file) use ($adsPath) { + $filePath = $adsPath . DIRECTORY_SEPARATOR . $file; + + return is_file($filePath) && + in_array(strtolower(pathinfo($file, PATHINFO_EXTENSION)), self::ALLOWED_EXTENSIONS); + }); + } + + private function processFiles(array $files): void + { + // Get existing images to avoid duplicates + $existingImages = WebsiteAd::pluck('image')->toArray(); + + $newFiles = Collection::make($files) + ->filter(fn ($file) => ! in_array($file, $existingImages)) + ->map(fn ($file) => ['image' => $file]) + ->values(); + + $skippedCount = count($files) - $newFiles->count(); + if ($skippedCount > 0) { + $this->warn("Skipped {$skippedCount} existing files."); + } + + $newFiles->chunk(self::CHUNK_SIZE)->each(function ($chunk): void { + WebsiteAd::insert($chunk->toArray()); + $this->info('Processed ' . $chunk->count() . ' files.'); + }); + } +} diff --git a/Updated_Cms/app/Console/Commands/ImportBadgeData.php b/Updated_Cms/app/Console/Commands/ImportBadgeData.php new file mode 100644 index 0000000000..570f107e86 --- /dev/null +++ b/Updated_Cms/app/Console/Commands/ImportBadgeData.php @@ -0,0 +1,94 @@ +settingsService->getOrDefault('nitro_external_texts_file'); + + if (! $this->validateJsonFile($jsonPath)) { + return; + } + + try { + $this->processBadgeData($jsonPath); + $this->info('Badge data imported successfully.'); + } catch (Exception $e) { + Log::error('Failed to import badge data: ' . $e->getMessage()); + $this->error('Failed to import badge data. Check the logs for details.'); + } + } + + private function validateJsonFile(?string $jsonPath): bool + { + if (in_array($jsonPath, [null, '', '0'], true)) { + $this->error('The JSON file path is not configured in the website settings.'); + + return false; + } + + if (! file_exists($jsonPath)) { + $this->error('The JSON file does not exist at the specified path: ' . $jsonPath); + + return false; + } + + return true; + } + + private function processBadgeData(string $jsonPath): void + { + $jsonData = File::json($jsonPath); + + // Extract badge names and descriptions + $badgeNames = Collection::make($jsonData) + ->filter(fn ($value, $key) => str_starts_with((string) $key, 'badge_name_')) + ->mapWithKeys(fn ($value, $key) => [str_replace('badge_name_', '', $key) => $value]); + + $badgeDescriptions = Collection::make($jsonData) + ->filter(fn ($value, $key) => str_starts_with((string) $key, self::BADGE_PREFIX)) + ->mapWithKeys(fn ($value, $key) => [str_replace(self::BADGE_PREFIX, '', $key) => $value]); + + // Combine badge names and descriptions + $badgeData = $badgeNames->map(fn ($name, $key) => [ + 'badge_key' => $key, // Use only the badge name (e.g., 14X12, 14XR1) + 'badge_name' => $name, + 'badge_description' => $badgeDescriptions->get($key, 'No description available'), + ])->values(); + + // Upsert the combined data in chunks + $badgeData->chunk(self::CHUNK_SIZE)->each(function ($chunk): void { + WebsiteBadge::upsert( + $chunk->toArray(), + ['badge_key'], + ['badge_name', 'badge_description'], + ); + + $this->info('Processed ' . $chunk->count() . ' badges.'); + }); + } +} diff --git a/Updated_Cms/app/Console/Kernel.php b/Updated_Cms/app/Console/Kernel.php new file mode 100644 index 0000000000..ab95470bd0 --- /dev/null +++ b/Updated_Cms/app/Console/Kernel.php @@ -0,0 +1,29 @@ +command('inspire')->hourly(); + } + + /** + * Register the commands for the application. + */ + #[\Override] + protected function commands(): void + { + $this->load(__DIR__ . '/Commands'); + + require base_path('routes/console.php'); + } +} diff --git a/Updated_Cms/app/Enums/AchievementCategory.php b/Updated_Cms/app/Enums/AchievementCategory.php new file mode 100644 index 0000000000..d9c6c41390 --- /dev/null +++ b/Updated_Cms/app/Enums/AchievementCategory.php @@ -0,0 +1,31 @@ + self::Credits, + 'duckets' => self::Duckets, + 'diamonds' => self::Diamonds, + 'points' => self::Points, + default => null, + }; + } + + public function getImage(): string + { + return match ($this->value) { + CurrencyTypes::Credits->value => asset('assets/images/currencies/credits.gif'), + CurrencyTypes::Duckets->value => asset('assets/images/currencies/duckets.png'), + CurrencyTypes::Diamonds->value => asset('assets/images/currencies/diamonds.png'), + CurrencyTypes::Points->value => asset('assets/images/currencies/points.png'), + }; + } + + public static function toInput(): array + { + $allCurrencies = self::cases(); + + return array_combine( + array_column($allCurrencies, 'value'), + array_column($allCurrencies, 'name'), + ); + } +} diff --git a/Updated_Cms/app/Exceptions/Handler.php b/Updated_Cms/app/Exceptions/Handler.php new file mode 100644 index 0000000000..28c7d817a4 --- /dev/null +++ b/Updated_Cms/app/Exceptions/Handler.php @@ -0,0 +1,49 @@ +, \Psr\Log\LogLevel::*> + */ + protected $levels = [ + // + ]; + + /** + * A list of the exception types that are not reported. + * + * @var array> + */ + protected $dontReport = [ + // + ]; + + /** + * A list of the inputs that are never flashed to the session on validation exceptions. + * + * @var array + */ + protected $dontFlash = [ + 'current_password', + 'password', + 'password_confirmation', + ]; + + /** + * Register the exception handling callbacks for the application. + */ + #[\Override] + public function register(): void + { + $this->reportable(function (Throwable $e): void { + // + }); + } +} diff --git a/Updated_Cms/app/Exceptions/MigrationFailedException.php b/Updated_Cms/app/Exceptions/MigrationFailedException.php new file mode 100644 index 0000000000..8483ffa54e --- /dev/null +++ b/Updated_Cms/app/Exceptions/MigrationFailedException.php @@ -0,0 +1,7 @@ +schema([ + DatePicker::make("{$name}_from"), + DatePicker::make("{$name}_until"), + ]) + ->query(function (Builder $query, array $data) use (&$name): Builder { + return $query + ->when( + $data["{$name}_from"], + fn (Builder $query, $date): Builder => $query->whereDate($name, '>=', $date), + ) + ->when( + $data["{$name}_until"], + fn (Builder $query, $date): Builder => $query->whereDate($name, '<=', $date), + ); + }); + } +} diff --git a/Updated_Cms/app/Filament/Pages/BadgePage.php b/Updated_Cms/app/Filament/Pages/BadgePage.php new file mode 100644 index 0000000000..9619683800 --- /dev/null +++ b/Updated_Cms/app/Filament/Pages/BadgePage.php @@ -0,0 +1,315 @@ +user()->can('view::admin::' . static::$roleName); + } + + #[\Override] + public function getTitle(): string|Htmlable + { + return __( + sprintf('filament::resources.resources.%s.navigation_label', static::$translateIdentifier), + ); + } + + public function form(Schema $schema): Schema + { + return $schema + ->components([ + Section::make(__('filament::resources.tabs.Main')) + ->schema([ + TextInput::make('code') + ->label(__('filament::resources.inputs.badge_code')) + ->helperText(__('filament::resources.helpers.badge_code_helper')) + ->afterStateUpdated(function (?string $state, Set $set): void { + $set('code', strtoupper($state)); + }) + ->suffixAction(fn (): PageAction => PageAction::make('search')->icon('heroicon-o-magnifying-glass')->action(fn () => $this->searchBadgesByCode()), + ), + + TextInput::make('image') + ->label(__('filament::resources.inputs.badge_image')) + ->placeholder('...') + ->autocomplete() + ->visible(fn (Get $get) => isset($this->data['image']) ?? false) + ->prefixAction( + fn (?string $state): PageAction => PageAction::make('visit') + ->icon('heroicon-s-arrow-top-right-on-square') + ->tooltip(__('filament::resources.common.Open link')) + ->url($state) + ->visible(fn () => ! in_array($state, [null, '', '0'], true)) + ->openUrlInNewTab(), + ), + ]), + + Section::make('Nitro Texts') + ->collapsible() + ->visible(fn () => isset($this->data['nitro']) && ! empty($this->data['nitro'])) + ->schema([ + TextInput::make('nitro.title') + ->label(__('filament::resources.inputs.badge_title')) + ->placeholder('...') + ->visible(fn () => isset($this->data['nitro']['title']) ?? false), + + TextInput::make('nitro.description') + ->label(__('filament::resources.inputs.badge_description')) + ->placeholder('...') + ->visible(fn () => isset($this->data['nitro']['description']) ?? false), + ]), + + Section::make('Flash Texts') + ->collapsible() + ->visible(fn () => isset($this->data['flash']) && ! empty($this->data['flash'])) + ->schema([ + TextInput::make('flash.title') + ->label(__('filament::resources.inputs.badge_title')) + ->placeholder('...') + ->visible(fn () => isset($this->data['flash']['title']) ?? false), + + TextInput::make('flash.description') + ->label(__('filament::resources.inputs.badge_description')) + ->placeholder('...') + ->visible(fn () => isset($this->data['flash']['description']) ?? false), + ]), + ]) + ->statePath('data'); + } + + private function searchBadgesByCode(): void + { + $badgeCode = $this->form->getState()['code'] ?? null; + + if (empty($badgeCode)) { + $this->notify('danger', __('filament::resources.notifications.badge_code_required')); + + return; + } + + $badgeData = app(ExternalTextsParser::class)->getBadgeData($badgeCode); + $this->badgeWasPreviouslyCreated = is_array($badgeData['nitro']) || is_array($badgeData['flash']); + + if ($this->badgeWasPreviouslyCreated) { + Notification::make() + ->icon('heroicon-o-check-circle') + ->iconColor('success') + ->color('success') + ->title(__('filament::resources.notifications.badge_found')) + ->send(); + + $this->data = [ + 'code' => $badgeCode, + ...$this->getDefaultDataBehavior( + $badgeData['image'] ?? null, + $badgeData['nitro']['title'] ?? null, + $badgeData['nitro']['description'] ?? null, + $badgeData['flash']['title'] ?? null, + $badgeData['flash']['description'] ?? null, + ), + ]; + + return; + } + + Notification::make() + ->color('success') + ->icon('heroicon-o-check-circle') + ->iconColor('success') + ->title(__('filament::resources.notifications.create_badge')) + ->send(); + + $this->data = [ + 'code' => $badgeCode, + ...$this->getDefaultDataBehavior(), + ]; + } + + private function getDefaultDataBehavior( + ?string $badgeImageUrl = null, + ?string $nitroTitle = null, + ?string $nitroDesc = null, + ?string $flashTitle = null, + ?string $flashDesc = null, + ): array { + return [ + 'image' => $badgeImageUrl ?? '', + 'nitro' => [ + 'title' => $nitroTitle ?? '', + 'description' => $nitroDesc ?? '', + ], + 'flash' => [ + 'title' => $flashTitle ?? '', + 'description' => $flashDesc ?? '', + ], + ]; + } + + public function create() + { + $nitroEnabled = config('hotel.client.nitro.enabled'); + $flashEnabled = config('hotel.client.flash.enabled'); + + // image and code fields are required when creating a new badge + if (! $this->badgeWasPreviouslyCreated && (empty($this->data['image']) || empty($this->data['code']))) { + $notificationTitle = empty($this->data['image']) ? + __('filament::resources.notifications.badge_image_required') : + __('filament::resources.notifications.badge_code_required'); + + Notification::make() + ->icon('heroicon-o-exclamation-triangle') + ->iconColor('danger') + ->color('danger') + ->title($notificationTitle) + ->send(); + + return; + } + + $externalTextsParser = app(ExternalTextsParser::class); + + if ((empty($this->data['nitro']) && $nitroEnabled) || (empty($this->data['flash']) && $flashEnabled)) { + Notification::make() + ->icon('heroicon-o-exclamation-triangle') + ->iconColor('danger') + ->color('danger') + ->title(__('filament::resources.notifications.badge_texts_required')) + ->send(); + + return; + } + + try { + $this->uploadBadgeImage($externalTextsParser); + + if (! empty($this->data['nitro']) && $nitroEnabled) { + $externalTextsParser->updateNitroBadgeTexts($this->data['code'], ...$this->data['nitro']); + } + if (! empty($this->data['flash']) && $flashEnabled) { + $externalTextsParser->updateFlashBadgeTexts($this->data['code'], ...$this->data['flash']); + } + } catch (Throwable $exception) { + Log::channel('badge')->error('[ORION BADGE RESOURCE] - ERROR: ' . $exception->getMessage()); + + Notification::make() + ->icon('heroicon-o-exclamation-triangle') + ->iconColor('danger') + ->color('danger') + ->title(__('filament::resources.notifications.badge_update_failed')) + ->send(); + + return; + } + + $this->data['image'] = $externalTextsParser->getBadgeImageUrl($this->data['code']); + $this->badgeWasPreviouslyCreated = true; + + Notification::make() + ->icon('heroicon-o-check-circle') + ->iconColor('success') + ->color('success') + ->title(__('filament::resources.notifications.badge_updated')) + ->send(); + } + + protected function uploadBadgeImage(ExternalTextsParser $parser): void + { + if (empty($this->data['image']) || ! filter_var($this->data['image'], FILTER_VALIDATE_URL)) { + return; + } + + if ($this->data['image'] == $parser->getBadgeImageUrl($this->data['code'])) { + return; + } + + $image = Http::get($this->data['image']); + + if (! $image->successful()) { + return; + } + + $contentType = $image->header('content-type'); + + $gdImage = match ($contentType) { + 'image/png' => imagecreatefrompng($this->data['image']), + 'image/gif' => imagecreatefromgif($this->data['image']), + 'image/jpeg' => imagecreatefromjpeg($this->data['image']), + default => false + }; + + if ($gdImage === false) { + Notification::make() + ->icon('heroicon-o-exclamation-triangle') + ->iconColor('danger') + ->color('danger') + ->title(__('filament::resources.notifications.badge_image_upload_failed')) + ->send(); + + return; + } + + $uploadPath = public_path(sprintf('%s%s%s.gif', + rtrim((string) config('hotel.client.flash.relative_files_path'), '\//'), + '/c_images/album1584/', + $this->data['code'], + )); + + imagegif($gdImage, $uploadPath); + } + + /** + * @return array<\Filament\Actions\Action|ActionGroup> + */ + protected function getHeaderActions(): array + { + return [ + PageAction::make('save') + ->label(__('filament::resources.common.Update')) + ->action(fn () => $this->create()) + ->color('primary') + ->visible(fn () => isset($this->data['code']) && $this->badgeWasPreviouslyCreated), + + PageAction::make('create') + ->label(__('filament::resources.common.Create')) + ->action(fn () => $this->create()) + ->color('success') + ->visible(fn () => isset($this->data['code']) && ! $this->badgeWasPreviouslyCreated), + ]; + } +} diff --git a/Updated_Cms/app/Filament/Pages/Dashboard.php b/Updated_Cms/app/Filament/Pages/Dashboard.php new file mode 100644 index 0000000000..b55ba826c7 --- /dev/null +++ b/Updated_Cms/app/Filament/Pages/Dashboard.php @@ -0,0 +1,26 @@ +user()->can('view::admin::' . static::$roleName); + } +} diff --git a/Updated_Cms/app/Filament/Pages/Login.php b/Updated_Cms/app/Filament/Pages/Login.php new file mode 100644 index 0000000000..d3e02bdf06 --- /dev/null +++ b/Updated_Cms/app/Filament/Pages/Login.php @@ -0,0 +1,109 @@ +rateLimit(5); + } catch (TooManyRequestsException $exception) { + Notification::make() + ->title(__('filament-panels::pages/auth/login.notifications.throttled.title', [ + 'seconds' => $exception->secondsUntilAvailable, + 'minutes' => ceil($exception->secondsUntilAvailable / 60), + ])) + ->body(array_key_exists('body', __('filament-panels::pages/auth/login.notifications.throttled') ?: []) ? __('filament-panels::pages/auth/login.notifications.throttled.body', [ + 'seconds' => $exception->secondsUntilAvailable, + 'minutes' => ceil($exception->secondsUntilAvailable / 60), + ]) : null) + ->danger() + ->send(); + + return null; + } + + $data = $this->form->getState(); + + if (! Filament::auth()->attempt($this->getCredentialsFromFormData($data), $data['remember'] ?? false)) { + $this->throwFailureValidationException(); + } + + $user = Filament::auth()->user(); + + if ( + ($user instanceof FilamentUser) && + (! $user->canAccessPanel(Filament::getCurrentOrDefaultPanel())) + ) { + Filament::auth()->logout(); + + $this->throwFailureValidationException(); + } + + session()->regenerate(); + + return app(LoginResponse::class); + } + + protected function throwFailureValidationException(): never + { + throw ValidationException::withMessages([ + 'data.username' => __('filament-panels::pages/auth/login.messages.failed'), + ]); + } + + protected function getFormSchema(): array + { + return [ + TextInput::make('username') + ->label(__('filament::login.fields.username.label')) + ->required() + ->autocomplete(), + TextInput::make('password') + ->label(__('filament::login.fields.password.label')) + ->password() + ->required(), + Checkbox::make('remember') + ->label(__('filament::login.fields.remember.label')), + ]; + } + + #[\Override] + protected function getEmailFormComponent(): Component + { + return TextInput::make('username') + ->label(__('filament::login.fields.username.label')) + ->required() + ->autocomplete() + ->autofocus() + ->extraInputAttributes(['tabindex' => 1]); + } + + /** + * @param array $data + * + * @return array + */ + #[\Override] + protected function getCredentialsFromFormData(array $data): array + { + return [ + 'username' => $data['username'], + 'password' => $data['password'], + ]; + } +} diff --git a/Updated_Cms/app/Filament/Resources/Atom/Articles/ArticleResource.php b/Updated_Cms/app/Filament/Resources/Atom/Articles/ArticleResource.php new file mode 100644 index 0000000000..b0bac48467 --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/Atom/Articles/ArticleResource.php @@ -0,0 +1,227 @@ +components(static::getForm()); + } + + public static function getForm(): array + { + return [ + Tabs::make('Main') + ->tabs([ + Tab::make(__('filament::resources.tabs.Home')) + ->icon('heroicon-o-home') + ->schema([ + TextInput::make('title') + ->label(__('filament::resources.inputs.title')) + ->required() + ->autocomplete() + ->maxLength(255) + ->columnSpan('full'), + + TextInput::make('short_story') + ->label(__('filament::resources.inputs.description')) + ->required() + ->maxLength(255) + ->autocomplete() + ->columnSpan('full'), + + FileUpload::make('image') + ->label(__('filament::resources.inputs.image')) + ->directory('website_news_images') + ->visibility('public'), + + RichEditor::make('full_story') + ->label(__('filament::resources.inputs.content')) + ->required() + ->columnSpan('full'), + + Hidden::make('user_id') + ->default(fn () => auth()->check() ? auth()->user()->id : null), + ]), + + Tab::make(__('filament::resources.tabs.Configurations')) + ->icon('heroicon-o-cog') + ->schema([ + Toggle::make('is_visible') + ->label(__('filament::resources.inputs.visible')) + ->onIcon('heroicon-s-check') + ->offIcon('heroicon-s-x-mark') + ->default(true) + ->live() + ->afterStateUpdated(function (string $operation, $state, $record): void { + if ($operation !== 'edit' || is_null($record)) { + return; + } + + try { + if ($state) { + $record->restore(); + } else { + $record->delete(); + } + } catch (Exception $e) { + report($e); + } + }) + ->formatStateUsing(function ($record) { + if (is_null($record)) { + return true; + } + + return is_null($record->deleted_at); + }), + + Toggle::make('can_comment') + ->onIcon('heroicon-s-check') + ->label(__('filament::resources.inputs.allow_comments')) + ->default(true) + ->offIcon('heroicon-s-x-mark'), + ]), + ])->columnSpanFull(), + ]; + } + + #[\Override] + public static function table(Table $table): Table + { + return $table + ->defaultSort('id', 'desc') + ->poll('60s') + ->columns(static::getTable()) + ->filters([ + TrashedFilter::make(), + ]) + ->recordActions([ + ViewAction::make(), + EditAction::make(), + DeleteAction::make(), + RestoreAction::make(), + ForceDeleteAction::make(), + ]) + ->toolbarActions([ + DeleteBulkAction::make(), + RestoreBulkAction::make(), + ForceDeleteBulkAction::make(), + ]); + } + + public static function getTable(): array + { + return [ + TextColumn::make('id') + ->label(__('filament::resources.columns.id')), + + ImageColumn::make('image') + ->circular() + ->extraAttributes(['style' => 'image-rendering: pixelated']) + ->size(50) + ->label(__('filament::resources.columns.image')), + + TextColumn::make('title') + ->label(__('filament::resources.columns.title')) + ->searchable() + ->limit(50), + + TextColumn::make('user.username') + ->searchable() + ->label(__('filament::resources.columns.by')), + + ToggleColumn::make('is_visible') + ->label(__('filament::resources.columns.visible')) + ->onIcon('heroicon-s-check') + ->toggleable() + ->state(fn ($record) => is_null($record->deleted_at)) + ->disabled(), + + ToggleColumn::make('allow_comments') + ->label(__('filament::resources.columns.allow_comments')) + ->onIcon('heroicon-s-check') + ->toggleable() + ->disabled(), + ]; + } + + #[\Override] + public static function getEloquentQuery(): Builder + { + return parent::getEloquentQuery()->withoutGlobalScopes([ + SoftDeletingScope::class, + ]); + } + + #[\Override] + public static function getRelations(): array + { + return [ + TagsRelationManager::class, + ]; + } + + public static function getPages(): array + { + return [ + 'index' => ListArticles::route('/'), + 'create' => CreateArticle::route('/create'), + 'view' => ViewArticle::route('/{record}'), + 'edit' => EditArticle::route('/{record}/edit'), + ]; + } + + public static function getGlobalSearchEloquentQuery(): Builder + { + return parent::getGlobalSearchEloquentQuery()->withTrashed(); + } +} diff --git a/Updated_Cms/app/Filament/Resources/Atom/Articles/Pages/CreateArticle.php b/Updated_Cms/app/Filament/Resources/Atom/Articles/Pages/CreateArticle.php new file mode 100644 index 0000000000..2020419305 --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/Atom/Articles/Pages/CreateArticle.php @@ -0,0 +1,24 @@ +getRecord(); + + if (! $articleCreated || ! $articleCreated->visible) { + return; + } + + $articleCreated->createFollowersNotification(); + } +} diff --git a/Updated_Cms/app/Filament/Resources/Atom/Articles/Pages/EditArticle.php b/Updated_Cms/app/Filament/Resources/Atom/Articles/Pages/EditArticle.php new file mode 100644 index 0000000000..e06ac4cbce --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/Atom/Articles/Pages/EditArticle.php @@ -0,0 +1,19 @@ +label(__('Send notifications')) + ->color('gray') + ->visible(fn (Model $record) => $record->user_id === Auth::id()) + ->requiresConfirmation() + ->action(function (Model $record): void { + $record->createFollowersNotification(); + }), + + EditAction::make(), + ]; + } +} diff --git a/Updated_Cms/app/Filament/Resources/Atom/Articles/RelationManagers/TagsRelationManager.php b/Updated_Cms/app/Filament/Resources/Atom/Articles/RelationManagers/TagsRelationManager.php new file mode 100644 index 0000000000..e8f87ce20f --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/Atom/Articles/RelationManagers/TagsRelationManager.php @@ -0,0 +1,59 @@ +components([ + TextInput::make('name') + ->required() + ->maxLength(255), + ]); + } + + public function table(Table $table): Table + { + return $table + ->columns(TagResource::getTable()) + ->modifyQueryUsing(fn ($query) => $query->latest()) + ->filters([ + // + ]) + ->headerActions([ + CreateAction::make() + ->schema(TagResource::getForm()), + + AttachAction::make()->preloadRecordSelect(), + ]) + ->recordActions([ + ViewAction::make(), + DetachAction::make(), + ]) + ->toolbarActions([ + DetachBulkAction::make(), + ]); + } +} diff --git a/Updated_Cms/app/Filament/Resources/Atom/CameraWebs/CameraWebResource.php b/Updated_Cms/app/Filament/Resources/Atom/CameraWebs/CameraWebResource.php new file mode 100644 index 0000000000..d180dbbce3 --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/Atom/CameraWebs/CameraWebResource.php @@ -0,0 +1,93 @@ +components([ + Toggle::make('visible') + ->label(__('Visible')) + ->default(true), + ]); + } + + #[\Override] + public static function table(Table $table): Table + { + return $table + ->defaultSort('id', 'desc') + ->columns([ + TextColumn::make('id') + ->label(__('filament::resources.columns.id')) + ->sortable(), + TextColumn::make('user_id') + ->label(__('filament::resources.columns.user_id')), + TextColumn::make('room_id') + ->label(__('filament::resources.columns.room_id')), + TextColumn::make('timestamp') + ->label(__('filament::resources.columns.created_at')) + ->dateTime(), + ImageColumn::make('url') + ->label(__('filament::resources.columns.image')) + ->extraAttributes(['style' => 'image-rendering: pixelated']) + ->size(125), + ToggleColumn::make('visible') + ->label(__('Visible')), + ]) + ->recordActions([ + DeleteAction::make(), + ]) + ->toolbarActions([ + DeleteBulkAction::make(), + ]); + } + + #[\Override] + public static function getRelations(): array + { + return [ + ]; + } + + public static function getPages(): array + { + return [ + 'index' => ListCameraWeb::route('/'), + 'edit' => EditCameraWeb::route('/{record}/edit'), + ]; + } + + public static function canCreate(): bool + { + return false; + } +} diff --git a/Updated_Cms/app/Filament/Resources/Atom/CameraWebs/Pages/EditCameraWeb.php b/Updated_Cms/app/Filament/Resources/Atom/CameraWebs/Pages/EditCameraWeb.php new file mode 100644 index 0000000000..5b4d712298 --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/Atom/CameraWebs/Pages/EditCameraWeb.php @@ -0,0 +1,19 @@ +components([ + Section::make() + ->schema([ + TextInput::make('key') + ->label(__('filament::resources.inputs.key')) + ->maxLength(50) + ->autocomplete() + ->unique(ignoreRecord: true) + ->required(), + + TextInput::make('value') + ->label(__('filament::resources.inputs.value')) + ->required() + ->maxLength(255) + ->autocomplete(), + + TextInput::make('comment') + ->label(__('filament::resources.inputs.comment')) + ->nullable() + ->maxLength(255) + ->autocomplete() + ->columnSpanFull(), + ]) + ->columns([ + 'sm' => 2, + ]), + ]); + } + + #[\Override] + public static function table(Table $table): Table + { + return $table + ->defaultSort('id', 'desc') + ->columns([ + TextColumn::make('key') + ->label(__('filament::resources.columns.key')) + ->searchable(), + + TextColumn::make('value') + ->label(__('filament::resources.columns.value')) + ->searchable() + ->limit(30), + + TextColumn::make('comment') + ->label(__('filament::resources.columns.comment')) + ->toggleable() + ->searchable() + ->tooltip(function (TextColumn $column): ?string { + $state = $column->getState(); + + if (strlen($state) <= $column->getCharacterLimit()) { + return null; + } + + return $state; + }) + ->limit(60), + ]) + ->filters([ + // + ]) + ->recordActions([ + EditAction::make(), + DeleteAction::make(), + ]) + ->toolbarActions([ + // ... + ]); + } + + public static function getPages(): array + { + return [ + 'index' => ManageCmsSettings::route('/'), + ]; + } +} diff --git a/Updated_Cms/app/Filament/Resources/Atom/CmsSettings/Pages/ManageCmsSettings.php b/Updated_Cms/app/Filament/Resources/Atom/CmsSettings/Pages/ManageCmsSettings.php new file mode 100644 index 0000000000..87abb290ec --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/Atom/CmsSettings/Pages/ManageCmsSettings.php @@ -0,0 +1,24 @@ +components(HelpQuestionResource::getForm(true)); + } + + public function table(Table $table): Table + { + return $table->columns(HelpQuestionResource::getTable()) + ->modifyQueryUsing(fn ($query) => $query->latest()) + ->filters([ + // + ]) + ->headerActions([ + AttachAction::make(), + ]) + ->recordActions([ + DetachAction::make(), + ]) + ->toolbarActions([ + DetachBulkAction::make(), + ]); + } +} diff --git a/Updated_Cms/app/Filament/Resources/Atom/HelpQuestionResource/Pages/CreateHelpQuestion.php b/Updated_Cms/app/Filament/Resources/Atom/HelpQuestionResource/Pages/CreateHelpQuestion.php new file mode 100644 index 0000000000..ee3c1da3ff --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/Atom/HelpQuestionResource/Pages/CreateHelpQuestion.php @@ -0,0 +1,11 @@ +components(HelpQuestionCategoryResource::getForm()); + } + + public function table(Table $table): Table + { + return $table->columns(HelpQuestionCategoryResource::getTable()) + ->modifyQueryUsing(fn ($query) => $query->latest('id')) + ->filters([ + // + ]) + ->headerActions([ + CreateAction::make(), + AttachAction::make(), + ]) + ->recordActions([ + EditAction::make(), + DetachAction::make(), + ]) + ->toolbarActions([ + DetachBulkAction::make(), + ]); + } +} diff --git a/Updated_Cms/app/Filament/Resources/Atom/HousekeepingPermissions/HousekeepingPermissionResource.php b/Updated_Cms/app/Filament/Resources/Atom/HousekeepingPermissions/HousekeepingPermissionResource.php new file mode 100644 index 0000000000..1a8acd8aee --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/Atom/HousekeepingPermissions/HousekeepingPermissionResource.php @@ -0,0 +1,119 @@ +components([ + Section::make() + ->schema([ + TextInput::make('permission') + ->label(__('filament::resources.inputs.permission')) + ->maxLength(50) + ->autocomplete() + ->unique(ignoreRecord: true) + ->required(), + + TextInput::make('min_rank') + ->label(__('filament::resources.inputs.min_rank')) + ->required() + ->maxLength(255) + ->autocomplete(), + + TextInput::make('description') + ->label(__('filament::resources.inputs.description')) + ->nullable() + ->maxLength(255) + ->autocomplete() + ->columnSpanFull(), + ]) + ->columns([ + 'sm' => 2, + ]), + ]); + } + + #[\Override] + public static function table(Table $table): Table + { + return $table + ->defaultSort('id', 'asc') + ->columns([ + TextColumn::make('permission') + ->label(__('filament::resources.columns.permission')) + ->searchable(), + + TextColumn::make('min_rank') + ->label(__('filament::resources.columns.min_rank')) + ->searchable() + ->limit(30), + + TextColumn::make('description') + ->label(__('filament::resources.columns.description')) + ->toggleable() + ->searchable() + ->tooltip(function (TextColumn $column): ?string { + $state = $column->getState(); + + if (strlen($state) <= $column->getCharacterLimit()) { + return null; + } + + return $state; + }) + ->limit(60), + ]) + ->filters([ + // + ]) + ->recordActions([ + EditAction::make(), + DeleteAction::make(), + ]) + ->toolbarActions([ + // + ]); + } + + #[\Override] + public static function getRelations(): array + { + return [ + // + ]; + } + + public static function getPages(): array + { + return [ + 'index' => ListHousekeepingPermissions::route('/'), + ]; + } +} diff --git a/Updated_Cms/app/Filament/Resources/Atom/HousekeepingPermissions/Pages/ListHousekeepingPermissions.php b/Updated_Cms/app/Filament/Resources/Atom/HousekeepingPermissions/Pages/ListHousekeepingPermissions.php new file mode 100644 index 0000000000..2e78f3d228 --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/Atom/HousekeepingPermissions/Pages/ListHousekeepingPermissions.php @@ -0,0 +1,19 @@ +components([ + TextInput::make('label') + ->label(__('filament::resources.inputs.label')) + ->columnSpanFull() + ->required() + ->maxLength(255), + + TextInput::make('slug') + ->label(__('filament::resources.inputs.slug')), + + TextInput::make('order') + ->numeric() + ->minValue(0) + ->default(0) + ->label(__('filament::resources.columns.order')), + + Toggle::make('visible') + ->label(__('filament::resources.columns.visible')), + + Toggle::make('new_tab') + ->label(__('filament::resources.columns.new_tab')), + ]) + ->columns([ + 'sm' => 2, + ]); + } + + public function table(Table $table): Table + { + return $table + ->columns([ + TextColumn::make('label'), + + TextColumn::make('slug') + ->label(__('filament::resources.columns.slug')), + + ToggleColumn::make('visible') + ->label(__('filament::resources.columns.visible')), + + ToggleColumn::make('new_tab') + ->label(__('filament::resources.columns.new_tab')), + + TextColumn::make('order') + ->label(__('filament::resources.columns.order')), + ]) + ->reorderable('order') + ->filters([ + // + ]) + ->headerActions([ + CreateAction::make(), + // Tables\Actions\AssociateAction::make(), + ]) + ->recordActions([ + EditAction::make(), + DissociateAction::make(), + DeleteAction::make(), + ]) + ->toolbarActions([ + DissociateBulkAction::make(), + DeleteBulkAction::make(), + ]); + } +} diff --git a/Updated_Cms/app/Filament/Resources/Atom/Permissions/Pages/CreatePermission.php b/Updated_Cms/app/Filament/Resources/Atom/Permissions/Pages/CreatePermission.php new file mode 100644 index 0000000000..a0bfaf85ac --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/Atom/Permissions/Pages/CreatePermission.php @@ -0,0 +1,11 @@ + ToggleButtons::make($name) + ->label(function () use ($name) { + $translationKey = "filament::resources.permissions.{$name}"; + $translation = __($translationKey); + + if ($translationKey == $translation) { + return $name; + } + + return $translation; + }) + ->options(function () use ($needsSecondOption) { + $options = [ + '0' => __('filament::resources.options.no'), + '1' => __('filament::resources.options.yes'), + ]; + + if ($needsSecondOption) { + $options['2'] = __('filament::resources.options.rights'); + } + + return $options; + }) + ->icons(['0' => 'heroicon-o-check', '1' => 'heroicon-o-x-mark', '2' => 'heroicon-o-sparkles']) + ->colors(['0' => 'danger', '1' => 'success']) + ->grouped(); + + return $schema + ->components([ + Tabs::make('Main') + ->tabs([ + Tab::make(__('filament::resources.tabs.General Information')) + ->schema([ + TextInput::make('rank_name') + ->label(__('filament::resources.inputs.name')) + ->maxLength(25) + ->required(), + + TextInput::make('badge') + ->label(__('filament::resources.inputs.badge_code')) + ->maxLength(12) + ->required(), + + TextInput::make('level') + ->label(__('filament::resources.inputs.level')) + ->required(), + + TextInput::make('room_effect') + ->label(__('filament::resources.inputs.room_effect')) + ->required(), + ]), + + Tab::make(__('filament::resources.tabs.In-game Permissions')) + ->schema([ + Section::make(__('filament::resources.sections.permissions.title')) + ->description(new HtmlString(__('filament::resources.sections.permissions.description'))) + ->schema([ + Grid::make() + ->columns([ + 'sm' => 2, + 'md' => 3, + 'lg' => 3, + ]) + ->schema(function () use ($groupedToggleButton) { + $columns = Schema::getColumns('permissions'); + + $arcturusPermissions = collect($columns)->filter(function (array $column) { + $columnName = $column['name'] ?? null; + + if (! $columnName) { + return false; + } + + return str_starts_with($columnName, 'cmd') + || str_starts_with($columnName, 'acc') + || str_ends_with($columnName, 'cmd'); + })->values(); + + return $arcturusPermissions->map(function (array $column) use ($groupedToggleButton) { + $columnName = $column['name']; + $needsSecondOption = $column['type_name'] == 'enum' && str_ends_with((string) $column['type'], "'2')"); + + return $groupedToggleButton($columnName, $needsSecondOption); + })->toArray(); + }), + ]), + + ]), + + Tab::make(__('filament::resources.tabs.Configurations')) + ->schema([ + Grid::make(['default' => 2]) + ->schema([ + Select::make('log_commands') + ->label(__('filament::resources.inputs.log_commands')) + ->columnSpanFull() + ->options([ + '0' => __('filament::resources.options.no'), + '1' => __('filament::resources.options.yes'), + ]), + + TextInput::make('prefix') + ->label(__('filament::resources.inputs.prefix')) + ->maxLength(5) + ->required(), + + ColorPicker::make('prefix_color') + ->label(__('filament::resources.inputs.prefix_color')) + ->required(), + + Toggle::make('hidden_rank') + ->label(__('filament::resources.inputs.is_hidden')) + ->columnSpanFull(), + + Section::make() + ->schema([ + Grid::make() + ->columns([ + 'md' => 2, + ]) + ->schema([ + TextInput::make('auto_credits_amount') + ->columnSpan(1) + ->label(__('filament::resources.inputs.auto_credits_amount')) + ->required(), + + TextInput::make('auto_pixels_amount') + ->label(__('filament::resources.inputs.auto_pixels_amount')) + ->required(), + + TextInput::make('auto_gotw_amount') + ->label(__('filament::resources.inputs.auto_gotw_amount')) + ->required(), + + TextInput::make('auto_points_amount') + ->label(__('filament::resources.inputs.auto_points_amount')) + ->required(), + ]), + ]), + ]), + ]), + ]) + ->columnSpanFull() + ->persistTabInQueryString(), + ]); + } + + #[\Override] + public static function table(Table $table): Table + { + return $table + ->defaultSort('id', 'desc') + ->columns([ + TextColumn::make('id') + ->label(__('filament::resources.columns.id')), + + HabboBadgeColumn::make('badge') + ->alignCenter() + ->label(__('filament::resources.columns.image')), + + TextColumn::make('rank_name') + ->label(__('filament::resources.columns.name')) + ->description(fn (Model $record) => Str::limit($record->description, 40)) + ->tooltip(function (Model $record): ?string { + $description = $record->description; + + if (strlen($description) <= 40) { + return null; + } + + return $description; + }) + ->searchable(), + + TextColumn::make('prefix') + ->label(__('filament::resources.columns.prefix')) + ->description(fn (Model $record) => $record->prefix_color) + ->searchable(), + + ToggleColumn::make('hidden_rank') + ->label(__('filament::resources.columns.is_hidden')), + ]) + ->filters([ + // + ]) + ->recordActions([ + ViewAction::make(), + EditAction::make(), + ]) + ->toolbarActions([ + ]); + } + + #[\Override] + public static function getRelations(): array + { + return [ + // + ]; + } + + public static function getPages(): array + { + return [ + 'index' => ListPermissions::route('/'), + 'create' => CreatePermission::route('/create'), + 'view' => ViewPermission::route('/{record}'), + 'edit' => EditPermission::route('/{record}/edit'), + ]; + } +} diff --git a/Updated_Cms/app/Filament/Resources/Atom/Tags/Pages/CreateTag.php b/Updated_Cms/app/Filament/Resources/Atom/Tags/Pages/CreateTag.php new file mode 100644 index 0000000000..a592136ca6 --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/Atom/Tags/Pages/CreateTag.php @@ -0,0 +1,11 @@ +components(ArticleResource::getForm()); + } + + public function table(Table $table): Table + { + return $table + ->columns(ArticleResource::getTable()) + ->modifyQueryUsing(fn ($query) => $query->latest()) + ->filters([ + // + ]) + ->headerActions([ + AttachAction::make() + ->preloadRecordSelect(), + ]) + ->recordActions([ + ViewAction::make(), + DetachAction::make(), + ]) + ->toolbarActions([ + DetachBulkAction::make(), + ]); + } +} diff --git a/Updated_Cms/app/Filament/Resources/Atom/Tags/TagResource.php b/Updated_Cms/app/Filament/Resources/Atom/Tags/TagResource.php new file mode 100644 index 0000000000..72efa4bf41 --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/Atom/Tags/TagResource.php @@ -0,0 +1,125 @@ +components(static::getForm()); + } + + public static function getForm(): array + { + return [ + Tabs::make('Main') + ->tabs([ + Tab::make(__('filament::resources.tabs.Home')) + ->icon('heroicon-o-home') + ->schema([ + TextInput::make('name') + ->label(__('filament::resources.inputs.name')) + ->required() + ->maxLength(255) + ->autocomplete() + ->columnSpan('full'), + + ColorPicker::make('background_color') + ->label(__('filament::resources.inputs.background_color')) + ->required() + ->columnSpan('full'), + ]), + ])->columnSpanFull(), + ]; + } + + #[\Override] + public static function table(Table $table): Table + { + return $table + ->defaultSort('id', 'desc') + ->columns(static::getTable()) + ->filters([ + // + ]) + ->recordActions([ + ViewAction::make(), + EditAction::make(), + ]) + ->toolbarActions([ + DeleteBulkAction::make(), + ]); + } + + public static function getTable(): array + { + return [ + TextColumn::make('id') + ->label(__('filament::resources.columns.id')), + + TextColumn::make('name') + ->label(__('filament::resources.columns.name')) + ->searchable() + ->limit(50), + + ColorColumn::make('background_color') + ->label(__('filament::resources.columns.background_color')) + ->searchable() + ->copyable() + ->copyMessage(__('filament::resources.common.Sucessfull')) + ->copyMessageDuration(1500), + ]; + } + + #[\Override] + public static function getRelations(): array + { + return [ + ArticlesRelationManager::class, + ]; + } + + public static function getPages(): array + { + return [ + 'index' => ListTags::route('/'), + 'create' => CreateTag::route('/create'), + 'view' => ViewTag::route('/{record}'), + 'edit' => EditTag::route('/{record}/edit'), + ]; + } +} diff --git a/Updated_Cms/app/Filament/Resources/Atom/Teams/Pages/CreateTeam.php b/Updated_Cms/app/Filament/Resources/Atom/Teams/Pages/CreateTeam.php new file mode 100644 index 0000000000..5be49423ae --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/Atom/Teams/Pages/CreateTeam.php @@ -0,0 +1,11 @@ +components([ + Section::make() + ->schema([ + TextInput::make('rank_name') + ->autofocus() + ->maxLength(255) + ->required() + ->label(__('filament::resources.inputs.name')), + + TextInput::make('job_description') + ->maxLength(255) + ->label(__('filament::resources.inputs.description')), + + TextInput::make('badge') + ->maxLength(255) + ->label(__('filament::resources.inputs.badge_code')) + ->required(), + + Toggle::make('hidden_rank') + ->label(__('filament::resources.inputs.is_hidden')), + ]), + ]); + } + + #[\Override] + public static function table(Table $table): Table + { + return $table + ->defaultSort('id', 'desc') + ->columns([ + TextColumn::make('id') + ->label(__('filament::resources.columns.id')), + + HabboBadgeColumn::make('badge') + ->label(__('filament::resources.columns.badge')), + + TextColumn::make('rank_name') + ->label(__('filament::resources.columns.name')), + + TextColumn::make('job_description') + ->label(__('filament::resources.inputs.description')), + + IconColumn::make('hidden_rank') + ->label(__('filament::resources.columns.is_hidden')) + ->icon(fn (Model $record) => $record->hidden_rank ? 'heroicon-o-check-circle' : 'heroicon-o-x-circle') + ->colors([ + 'danger' => false, + 'success' => true, + ]), + ]) + ->filters([ + // + ]) + ->recordActions([ + EditAction::make(), + ]) + ->toolbarActions([ + DeleteBulkAction::make(), + ]); + } + + #[\Override] + public static function getRelations(): array + { + return [ + // + ]; + } + + public static function getPages(): array + { + return [ + 'index' => ListTeams::route('/'), + 'create' => CreateTeam::route('/create'), + 'edit' => EditTeam::route('/{record}/edit'), + ]; + } +} diff --git a/Updated_Cms/app/Filament/Resources/Atom/WebsiteDrawBadges/Pages/EditWebsiteDrawBadge.php b/Updated_Cms/app/Filament/Resources/Atom/WebsiteDrawBadges/Pages/EditWebsiteDrawBadge.php new file mode 100644 index 0000000000..000095b0ba --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/Atom/WebsiteDrawBadges/Pages/EditWebsiteDrawBadge.php @@ -0,0 +1,11 @@ +components([ + TextInput::make('badge_name') + ->label(__('Badge Name')) + ->nullable() + ->maxLength(24) + ->autocomplete(false), + TextInput::make('badge_desc') + ->label(__('Badge Description')) + ->nullable() + ->maxLength(255) + ->autocomplete(false) + ->columnSpanFull(), + Toggle::make('published') + ->label(__('Published')) + ->default(false), + ]); + } + + #[\Override] + public static function table(Table $table): Table + { + return $table + ->defaultSort('id', 'desc') + ->columns([ + TextColumn::make('id') + ->label(__('ID')) + ->sortable(), + TextColumn::make('user_id') + ->label(__('User ID')), + TextColumn::make('user.username') + ->label(__('Username')) + ->sortable() + ->searchable(), + TextColumn::make('badge_name') + ->limit(8) + ->label(__('Badge Name')), + TextColumn::make('badge_desc') + ->label(__('Badge description')) + ->limit(35) + ->tooltip(function (TextColumn $column): ?string { + $state = $column->getState(); + if (strlen($state) <= $column->getCharacterLimit()) { + return null; + } + + return $state; + }), + TextColumn::make('created_at') + ->label(__('Created At')) + ->dateTime(), + ImageColumn::make('badge_url') + ->label(__('Badge')) + ->getStateUsing(fn ($record) => config('app.url') . $record->badge_url) + ->extraAttributes(['style' => 'image-rendering: pixelated']) + ->size(40), + ToggleColumn::make('published') + ->label(__('Published')), + ]) + ->recordActions([ + DeleteAction::make() + ->before(function (DeleteAction $action, WebsiteDrawBadge $record): void { + $badgeCode = pathinfo($record->badge_path, PATHINFO_FILENAME); + + // Remove the badge from any user before deleting it. + if ($record->published) { + DB::table('users_badges') + ->where('user_id', $record->user_id) + ->where('badge_code', $badgeCode) + ->delete(); + } + + // Remove from JSON + $filePath = DB::table('website_settings')->where('key', 'nitro_external_texts_file')->value('value'); + + if ($filePath && file_exists($filePath) && is_writable($filePath)) { + $json = json_decode(file_get_contents($filePath), true); + unset($json["badge_name_{$badgeCode}"]); + unset($json["badge_desc_{$badgeCode}"]); + file_put_contents($filePath, json_encode($json, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES)); + } + + // Delete the badge file from the filesystem + $badgePath = $record->badge_path; + if ($badgePath && file_exists($badgePath)) { + unlink($badgePath); + } + }), + ]) + ->toolbarActions([ + DeleteBulkAction::make() + ->before(function (DeleteBulkAction $action, $records): void { + foreach ($records as $record) { + $badgeCode = pathinfo((string) $record->badge_path, PATHINFO_FILENAME); + + // Remove the badge from any user before deleting it. + if ($record->published) { + DB::table('users_badges') + ->where('user_id', $record->user_id) + ->where('badge_code', $badgeCode) + ->delete(); + } + + $filePath = DB::table('website_settings')->where('key', 'nitro_external_texts_file')->value('value'); + + if ($filePath && file_exists($filePath) && is_writable($filePath)) { + $json = json_decode(file_get_contents($filePath), true); + unset($json["badge_name_{$badgeCode}"]); + unset($json["badge_desc_{$badgeCode}"]); + file_put_contents($filePath, json_encode($json, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES)); + } + + $badgePath = $record->badge_path; + if ($badgePath && file_exists($badgePath)) { + unlink($badgePath); + } + } + }), + ]); + } + + #[\Override] + public static function getRelations(): array + { + return []; + } + + public static function getPages(): array + { + return [ + 'index' => ListWebsiteDrawBadge::route('/'), + 'edit' => EditWebsiteDrawBadge::route('/{record}/edit'), + ]; + } + + public static function canCreate(): bool + { + return false; + } +} diff --git a/Updated_Cms/app/Filament/Resources/Atom/WriteableBoxResource/Pages/ManageWriteableBoxes.php b/Updated_Cms/app/Filament/Resources/Atom/WriteableBoxResource/Pages/ManageWriteableBoxes.php new file mode 100644 index 0000000000..7bf5895f30 --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/Atom/WriteableBoxResource/Pages/ManageWriteableBoxes.php @@ -0,0 +1,19 @@ +query(UserOrder::latest()) + ->paginated([3, 5, 8]) + ->columns(ShopOrderResource::getTable()) + ->recordActions([ + ViewAction::make()->schema(ShopOrderResource::getForm()), + ]); + } +} diff --git a/Updated_Cms/app/Filament/Resources/DashboardResource/Widgets/OrdersAggregateChart.php b/Updated_Cms/app/Filament/Resources/DashboardResource/Widgets/OrdersAggregateChart.php new file mode 100644 index 0000000000..6befbd7a21 --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/DashboardResource/Widgets/OrdersAggregateChart.php @@ -0,0 +1,79 @@ +between(start: now()->startOfMonth(), end: now()->endOfMonth()) + ->perDay() + ->count(); + + $cancelledOrder = Trend::query(UserOrder::cancelled()) + ->between(start: now()->startOfMonth(), end: now()->endOfMonth()) + ->perDay() + ->count(); + + $completedOrder = Trend::query(UserOrder::completed()) + ->between(start: now()->startOfMonth(), end: now()->endOfMonth()) + ->perDay() + ->count(); + + $datasets = [ + $this->getDataset($pendingOrder, __('filament::resources.stats.orders_chart.pending'), '#fbbf24', '#f59e0b'), + $this->getDataset($cancelledOrder, __('filament::resources.stats.orders_chart.cancelled'), '#dc2626', '#b91c1c'), + $this->getDataset($completedOrder, __('filament::resources.stats.orders_chart.completed'), '#10b981', '#059669'), + ]; + + $data = $pendingOrder->map(fn (TrendValue $value) => $value->date)->merge( + $cancelledOrder->map(fn (TrendValue $value) => $value->date), + )->merge( + $completedOrder->map(fn (TrendValue $value) => $value->date), + )->unique()->sort()->flatten(); + + return [ + 'datasets' => $datasets, + 'labels' => $data, + ]; + } + + protected function getDataset($data, $label, string $backgroundColor, string $borderColor): array + { + return [ + 'label' => $label, + 'data' => $data->map(fn (TrendValue $value) => $value->aggregate), + 'backgroundColor' => $backgroundColor, + 'borderColor' => $borderColor, + ]; + } + + protected function getType(): string + { + return 'bar'; + } +} diff --git a/Updated_Cms/app/Filament/Resources/Hotel/Achievements/AchievementResource.php b/Updated_Cms/app/Filament/Resources/Hotel/Achievements/AchievementResource.php new file mode 100644 index 0000000000..50c0fe0ff3 --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/Hotel/Achievements/AchievementResource.php @@ -0,0 +1,176 @@ +components([ + Tabs::make('Main') + ->tabs([ + Tab::make(__('filament::resources.tabs.Home')) + ->icon('heroicon-o-home') + ->schema([ + TextInput::make('name') + ->label(__('filament::resources.inputs.name')) + ->required() + ->maxLength(64) + ->autocomplete() + ->columnSpan('full'), + + TextInput::make('level') + ->label(__('filament::resources.inputs.level')) + ->numeric() + ->required() + ->autocomplete() + ->columnSpan('full'), + + Select::make('category') + ->native(false) + ->label(__('filament::resources.inputs.category')) + ->options(AchievementCategory::toInput()), + ]), + + Tab::make(__('filament::resources.tabs.Configurations')) + ->icon('heroicon-o-cog') + ->schema([ + Select::make('visible') + ->native(false) + ->label(__('filament::resources.inputs.visible')) + ->options([ + '1' => __('filament::resources.common.Yes'), + '0' => __('filament::resources.common.No'), + ]), + + Select::make('reward_type') + ->native(false) + ->label(__('filament::resources.inputs.reward_type')) + ->options(CurrencyTypes::toInput()), + + TextInput::make('reward_amount') + ->label(__('filament::resources.inputs.reward_amount')) + ->numeric() + ->required(), + + TextInput::make('points') + ->label(__('filament::resources.inputs.points')) + ->helperText(__('filament::resources.helpers.achievement_points')) + ->numeric() + ->required(), + + TextInput::make('progress_needed') + ->label(__('filament::resources.inputs.progress_needed')) + ->helperText(__('filament::resources.helpers.achievement_progress_needed')) + ->numeric() + ->required(), + ]), + ])->columnSpanFull(), + ]); + } + + #[\Override] + public static function table(Table $table): Table + { + return $table + ->defaultSort('id', 'desc') + ->columns([ + TextColumn::make('id') + ->label(__('filament::resources.columns.id')), + + HabboBadgeColumn::make('badge') + ->label(__('filament::resources.columns.badge')), + + TextColumn::make('name') + ->label(__('filament::resources.columns.name')) + ->searchable(), + + TextColumn::make('level') + ->label(__('filament::resources.columns.level')), + + TextColumn::make('category') + ->badge() + ->searchable() + ->label(__('filament::resources.columns.category')) + ->toggleable(), + + ToggleColumn::make('visible') + ->label(__('filament::resources.columns.visible')) + ->disabled() + ->toggleable(), + ]) + ->filters([ + SelectFilter::make('visible') + ->options([ + '1' => __('filament::resources.common.Yes'), + '0' => __('filament::resources.common.No'), + ]) + ->label(__('filament::resources.columns.visible')) + ->placeholder(__('filament::resources.common.All')), + + SelectFilter::make('category') + ->options(AchievementCategory::toInput()) + ->label(__('filament::resources.columns.category')) + ->placeholder(__('filament::resources.common.All')), + ]) + ->recordActions([ + ViewAction::make(), + EditAction::make(), + ]) + ->toolbarActions([]); + } + + #[\Override] + public static function getRelations(): array + { + return [ + // + ]; + } + + public static function getPages(): array + { + return [ + 'index' => ListAchievements::route('/'), + 'create' => CreateAchievement::route('/create'), + 'view' => ViewAchievement::route('/{record}'), + 'edit' => EditAchievement::route('/{record}/edit'), + ]; + } +} diff --git a/Updated_Cms/app/Filament/Resources/Hotel/Achievements/Pages/CreateAchievement.php b/Updated_Cms/app/Filament/Resources/Hotel/Achievements/Pages/CreateAchievement.php new file mode 100644 index 0000000000..478e62f84e --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/Hotel/Achievements/Pages/CreateAchievement.php @@ -0,0 +1,11 @@ +components([ + TextInput::make('badge_key') + ->required() + ->label('Badge Key - Expl. ATOM101') + ->placeholder('This is the badge code'), + TextInput::make('badge_name') + ->required() + ->label('Badge Name') + ->placeholder('This is the name of the badge: Expl. The ATOM Badge'), + Textarea::make('badge_description') + ->required() + ->label('Badge Description') + ->placeholder('Please add a description for the badge.'), + ]); + } + + #[\Override] + public static function table(Table $table): Table + { + $settingsService = app(SettingsService::class); + $badgesPath = $settingsService->getOrDefault('badges_path', '/gamedata/c_images/album1584/'); + + return $table + ->columns([ + ImageColumn::make('badge_key') + ->label('Badge Image') + ->getStateUsing(function ($record) use ($badgesPath) { + $badgeName = str_replace('badge_desc_', '', $record->badge_key); + + return asset($badgesPath . $badgeName . '.gif'); + }) + ->width(50) + ->height(50), + TextColumn::make('badge_name') + ->label('Badge Code & Name') + ->formatStateUsing(fn ($record) => $record->badge_key . ' : ' . $record->badge_name) + ->searchable(query: function ($query, $search): void { + $query->where('badge_key', 'like', "%{$search}%") + ->orWhere('badge_name', 'like', "%{$search}%"); + }) + ->sortable(), + TextColumn::make('badge_description') + ->label('Badge Description') + ->getStateUsing(fn ($record) => Str::limit($record->badge_description, 65)) + ->searchable(), + ]) + ->filters([]) + ->defaultSort('badge_key', 'asc') + ->recordActions([ + EditAction::make(), + DeleteAction::make(), + ]); + } + + public static function getPages(): array + { + return [ + 'index' => ListBadgeTextEditors::route('/'), + 'create' => CreateBadgeTextEditor::route('/create'), + 'edit' => EditBadgeTextEditor::route('/{record}/edit'), + ]; + } +} diff --git a/Updated_Cms/app/Filament/Resources/Hotel/BadgeTextEditors/Pages/CreateBadgeTextEditor.php b/Updated_Cms/app/Filament/Resources/Hotel/BadgeTextEditors/Pages/CreateBadgeTextEditor.php new file mode 100644 index 0000000000..01b7500b22 --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/Hotel/BadgeTextEditors/Pages/CreateBadgeTextEditor.php @@ -0,0 +1,11 @@ +getCode() === '23000') { + Log::error('Duplicate badge key error: ' . $e->getMessage()); + + Notification::make() + ->title('Duplicate Badge Key') + ->body('The badge key already exists. Please use a unique badge key.') + ->danger() + ->persistent() + ->send(); + + return $record; + } + throw $e; + } + } +} diff --git a/Updated_Cms/app/Filament/Resources/Hotel/BadgeTextEditors/Pages/ListBadgeTextEditors.php b/Updated_Cms/app/Filament/Resources/Hotel/BadgeTextEditors/Pages/ListBadgeTextEditors.php new file mode 100644 index 0000000000..e267fefe21 --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/Hotel/BadgeTextEditors/Pages/ListBadgeTextEditors.php @@ -0,0 +1,153 @@ +label('Add Badge') + ->color('info') + ->modalHeading('Add a New Badge') + ->modalButton('Create Badge') + ->after(function (): void { + Notification::make() + ->title('Badge Created') + ->body('The badge was successfully created.') + ->success() + ->send(); + }), + Action::make('export') + ->label('Export to ExternalTexts') + ->action('exportToJson'), + Action::make('backup') + ->label('Create Backup of ExternalTexts') + ->color('success') + ->action('createBackup'), + ]; + } + + public function exportToJson(SettingsService $settingsService) + { + $jsonPath = $settingsService->getOrDefault('nitro_external_texts_file'); + + if ($jsonPath === '' || $jsonPath === '0') { + Notification::make() + ->title('Export Failed') + ->body('The JSON file path is not configured in the website settings.') + ->danger() + ->send(); + + return; + } + + if (! file_exists($jsonPath)) { + Notification::make() + ->title('Export Failed') + ->body('The JSON file does not exist at the specified path.') + ->danger() + ->send(); + + return; + } + + $jsonData = json_decode(file_get_contents($jsonPath), true); + + $badges = WebsiteBadge::all(); + $badgeKeys = $badges->pluck('badge_key')->toArray(); + + foreach ($jsonData as $key => $value) { + if ( + (str_starts_with((string) $key, 'badge_desc_') || str_starts_with((string) $key, 'badge_name_')) && + ! in_array(str_replace(['badge_desc_', 'badge_name_'], '', $key), $badgeKeys) + ) { + unset($jsonData[$key]); + } + } + + foreach ($badges as $badge) { + $jsonData['badge_desc_' . $badge->badge_key] = $badge->badge_description; + $jsonData['badge_name_' . $badge->badge_key] = $badge->badge_name; + } + + try { + $result = file_put_contents( + $jsonPath, + json_encode($jsonData, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES), + ); + + if ($result === false) { + throw new Exception('Failed to write to the JSON file.'); + } + + Notification::make() + ->title('Export Successful') + ->body('Badge data exported successfully.') + ->success() + ->send(); + } catch (Exception $e) { + Log::error('Failed to export badge data: ' . $e->getMessage()); + + Notification::make() + ->title('Export Failed') + ->body('Failed to export badge data. Please check file permissions or contact your administrator.') + ->danger() + ->send(); + } + } + + public function createBackup(SettingsService $settingsService) + { + $jsonPath = $settingsService->getOrDefault('nitro_external_texts_file'); + + if ($jsonPath === '' || $jsonPath === '0') { + Notification::make() + ->title('Backup Failed') + ->body('The JSON file path is not configured in the website settings.') + ->danger() + ->send(); + + return; + } + + if (! file_exists($jsonPath)) { + Notification::make() + ->title('Backup Failed') + ->body('The JSON file does not exist at the specified path.') + ->danger() + ->send(); + + return; + } + + $backupPath = dirname($jsonPath) . '/ExternalTexts_' . time() . '.json'; + + if (copy($jsonPath, $backupPath)) { + Notification::make() + ->title('Backup Successful') + ->body('A backup of the JSON file has been created: ' . basename($backupPath)) + ->success() + ->send(); + } else { + Notification::make() + ->title('Backup Failed') + ->body('Failed to create a backup of the JSON file.') + ->danger() + ->send(); + } + } +} diff --git a/Updated_Cms/app/Filament/Resources/Hotel/BadgeUploads/BadgeUploadResource.php b/Updated_Cms/app/Filament/Resources/Hotel/BadgeUploads/BadgeUploadResource.php new file mode 100644 index 0000000000..1b78f84f6d --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/Hotel/BadgeUploads/BadgeUploadResource.php @@ -0,0 +1,69 @@ +components([ + FileUpload::make('badge_file') + ->label('Upload Badge') + ->disk('local') + ->directory(setting('badge_path_filesystem')) + ->required() + ->getUploadedFileNameForStorageUsing( + fn (TemporaryUploadedFile $file): string => strtolower(str_replace([' ', '-', 'æ', 'ø', 'å'], ['_', '_', 'ae', 'oe', 'aa'], $file->getClientOriginalName())), + ), + ]); + } + + #[\Override] + public static function table(Table $table): Table + { + return $table + ->columns([ + TextColumn::make('filename') + ->label('File Name') + ->sortable(), + TextColumn::make('path') + ->label('File Path'), + ]) + ->filters([]); + } + + public static function getPages(): array + { + return [ + 'index' => ManageBadgeUploads::route('/'), + ]; + } + + public static function getFiles(): array + { + $badgePath = env('BadgePath', 'badges'); + $files = Storage::disk('local')->files($badgePath); + + return collect($files)->map(fn ($file) => [ + 'filename' => basename($file), + 'path' => $file, + ])->toArray(); + } +} diff --git a/Updated_Cms/app/Filament/Resources/Hotel/BadgeUploads/Pages/ManageBadgeUploads.php b/Updated_Cms/app/Filament/Resources/Hotel/BadgeUploads/Pages/ManageBadgeUploads.php new file mode 100644 index 0000000000..c9d8dc14ec --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/Hotel/BadgeUploads/Pages/ManageBadgeUploads.php @@ -0,0 +1,48 @@ +form->fill([]); + } + + protected function getFormSchema(): array + { + return [ + FileUpload::make('badge_file') + ->label('Upload Badge') + ->disk('badges') + ->preserveFilenames() + ->acceptedFileTypes(['image/gif']) + ->rules(['mimes:gif']) + ->required(), + ]; + } + + public function save(): void + { + $this->form->getState(); + + Notification::make() + ->title('Badge uploaded successfully!') + ->success() + ->send(); + } +} diff --git a/Updated_Cms/app/Filament/Resources/Hotel/CatalogPages/CatalogPageResource.php b/Updated_Cms/app/Filament/Resources/Hotel/CatalogPages/CatalogPageResource.php new file mode 100644 index 0000000000..5153a4f02c --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/Hotel/CatalogPages/CatalogPageResource.php @@ -0,0 +1,180 @@ +components([ + TextInput::make('parent_id') + ->required() + ->integer(), + + TextInput::make('caption_save') + ->required(), + + TextInput::make('caption') + ->required(), + + TextInput::make('page_layout') + ->required(), + + TextInput::make('icon_color') + ->required() + ->integer(), + + TextInput::make('icon_image') + ->required() + ->integer(), + + TextInput::make('min_rank') + ->required() + ->integer(), + + TextInput::make('order_num') + ->required() + ->integer(), + + TextInput::make('visible') + ->required(), + + TextInput::make('enabled') + ->required(), + + TextInput::make('club_only') + ->required(), + + TextInput::make('vip_only') + ->required(), + + TextInput::make('page_headline') + ->required(), + + TextInput::make('page_teaser') + ->required(), + + TextInput::make('page_special'), + + TextInput::make('page_text1'), + + TextInput::make('page_text2'), + + TextInput::make('page_text_details'), + + TextInput::make('page_text_teaser'), + + TextInput::make('room_id') + ->integer(), + ]); + } + + #[\Override] + public static function table(Table $table): Table + { + return $table + ->columns([ + TextColumn::make('parent_id'), + + TextColumn::make('caption_save'), + + TextColumn::make('caption') + ->searchable() + ->sortable(), + + TextColumn::make('page_layout'), + + TextColumn::make('icon_color'), + + ImageColumn::make('icon_image'), + + TextColumn::make('min_rank'), + + TextColumn::make('order_num'), + + TextColumn::make('visible'), + + TextColumn::make('enabled'), + + TextColumn::make('club_only'), + + TextColumn::make('vip_only'), + + TextColumn::make('page_headline'), + + TextColumn::make('page_teaser'), + + TextColumn::make('page_special'), + + TextColumn::make('page_text1'), + + TextColumn::make('page_text2'), + + TextColumn::make('room_id'), + + TextColumn::make('includes'), + ]) + ->filters([ + // + ]) + ->recordActions([ + EditAction::make(), + DeleteAction::make(), + ]) + ->toolbarActions([ + BulkActionGroup::make([ + DeleteBulkAction::make(), + ]), + ]); + } + + public static function getPages(): array + { + return [ + 'index' => ListCatalogPages::route('/'), + 'create' => CreateCatalogPage::route('/create'), + 'edit' => EditCatalogPage::route('/{record}/edit'), + ]; + } + + #[\Override] + public static function getRelations(): array + { + return [ + CatalogItemsRelationManager::class, + ]; + } + + public static function getGloballySearchableAttributes(): array + { + return ['caption']; + } +} diff --git a/Updated_Cms/app/Filament/Resources/Hotel/CatalogPages/Pages/CreateCatalogPage.php b/Updated_Cms/app/Filament/Resources/Hotel/CatalogPages/Pages/CreateCatalogPage.php new file mode 100644 index 0000000000..2ecb70f4f6 --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/Hotel/CatalogPages/Pages/CreateCatalogPage.php @@ -0,0 +1,18 @@ +components([ + Select::make('item_ids') + ->label('Furniture Item') + ->relationship( + name: 'itemBase', + titleAttribute: 'item_name', + modifyQueryUsing: fn (Builder $query) => $query->orderBy('item_name'), + ) + ->searchable() + ->required() + ->preload() + ->createOptionForm([ + TextInput::make('sprite_id') + ->label('Sprite ID') + ->numeric() + ->default(0), + TextInput::make('public_name') + ->maxLength(56), + TextInput::make('item_name') + ->required() + ->maxLength(70), + TextInput::make('type') + ->default('s') + ->maxLength(3), + Grid::make(3) + ->schema([ + TextInput::make('width') + ->numeric() + ->default(1), + TextInput::make('length') + ->numeric() + ->default(1), + TextInput::make('stack_height') + ->numeric() + ->default(0.00), + ]), + Grid::make(3) + ->schema([ + Toggle::make('allow_stack') + ->default(true), + Toggle::make('allow_sit') + ->default(false), + Toggle::make('allow_lay') + ->default(false), + ]), + Grid::make(3) + ->schema([ + Toggle::make('allow_walk') + ->default(false), + Toggle::make('allow_gift') + ->default(true), + Toggle::make('allow_trade') + ->default(true), + ]), + Grid::make(3) + ->schema([ + Toggle::make('allow_recycle') + ->default(false), + Toggle::make('allow_marketplace_sell') + ->default(false), + Toggle::make('allow_inventory_stack') + ->default(true), + ]), + TextInput::make('interaction_type') + ->default('default') + ->maxLength(500), + Grid::make(2) + ->schema([ + TextInput::make('interaction_modes_count') + ->numeric() + ->default(1), + TextInput::make('vending_ids') + ->default('0') + ->maxLength(255), + ]), + Grid::make(2) + ->schema([ + TextInput::make('multiheight') + ->default('0') + ->maxLength(50), + TextInput::make('customparams') + ->maxLength(256), + ]), + Grid::make(2) + ->schema([ + TextInput::make('effect_id_male') + ->numeric() + ->default(0), + TextInput::make('effect_id_female') + ->numeric() + ->default(0), + ]), + TextInput::make('clothing_on_walk') + ->maxLength(255), + ]) + ->columnSpanFull(), + + TextInput::make('catalog_name') + ->label('Catalog Name') + ->required() + ->maxLength(100) + ->nullable() + ->dehydrateStateUsing(fn ($state) => $state ?? ''), + + Grid::make(2) + ->schema([ + TextInput::make('cost_credits') + ->label('Cost Credits') + ->numeric() + ->nullable() + ->dehydrateStateUsing(fn ($state) => $state ?? '') + ->default(3), + + TextInput::make('cost_points') + ->label('Cost Points') + ->numeric() + ->nullable() + ->dehydrateStateUsing(fn ($state) => $state ?? '') + ->default(0), + ]), + + Grid::make(2) + ->schema([ + TextInput::make('points_type') + ->label('Points Type') + ->numeric() + ->nullable() + ->dehydrateStateUsing(fn ($state) => $state ?? '') + ->default(0), + + TextInput::make('amount') + ->label('Amount') + ->numeric() + ->nullable() + ->dehydrateStateUsing(fn ($state) => $state ?? '') + ->default(1), + ]), + + Grid::make(2) + ->schema([ + Toggle::make('limited_stack') + ->label('Limited Stack') + ->dehydrateStateUsing(fn ($state) => $state ? '1' : '0'), + + Toggle::make('limited_sells') + ->label('Limited Sells') + ->dehydrateStateUsing(fn ($state) => $state ? '1' : '0'), + ]), + + Grid::make(3) + ->schema([ + TextInput::make('order_number') + ->numeric() + ->nullable() + ->dehydrateStateUsing(fn ($state) => $state ?? '') + ->default(1), + + TextInput::make('offer_id') + ->numeric() + ->nullable() + ->dehydrateStateUsing(fn ($state) => $state ?? ''), + + TextInput::make('song_id') + ->numeric() + ->nullable() + ->dehydrateStateUsing(fn ($state) => $state ?? '') + ->default(0), + ]), + + Textarea::make('extradata') + ->label('Extra Data') + ->maxLength(500) + ->nullable() + ->dehydrateStateUsing(fn ($state) => $state ?? ''), + + Grid::make(2) + ->schema([ + Toggle::make('have_offer') + ->label('Have Offer') + ->default(true) + ->dehydrateStateUsing(fn ($state) => $state ? '1' : '0'), + + Toggle::make('club_only') + ->label('Club Only') + ->default(false) + ->dehydrateStateUsing(fn ($state) => $state ? '1' : '0'), + ]), + ]); + } + + public function table(Table $table): Table + { + return $table + ->recordTitleAttribute('catalog_name') + ->columns([ + ImageColumn::make('icon') + ->getStateUsing(fn ($record) => url($record->itemBase?->icon())) + ->size('25px') + + ->label('Icon') + ->circular(), + + TextColumn::make('itemBase.item_name') + ->label('Furniture Name') + ->sortable() + ->searchable(), + + TextColumn::make('catalog_name') + ->label('Catalog Name') + ->sortable() + ->searchable(), + + TextColumn::make('cost_credits') + ->label('Credits') + ->sortable(), + + TextColumn::make('cost_points') + ->label('Points') + ->sortable(), + + IconColumn::make('limited_stack') + ->label('Limited') + ->boolean(), + + IconColumn::make('club_only') + ->label('HC Only') + ->boolean(), + + TextColumn::make('itemBase.type') + ->label('Type') + ->toggleable(isToggledHiddenByDefault: true), + + TextColumn::make('itemBase.width') + ->label('Width') + ->toggleable(isToggledHiddenByDefault: true), + + TextColumn::make('itemBase.length') + ->label('Length') + ->toggleable(isToggledHiddenByDefault: true), + + TextColumn::make('order_number') + ->label('Order') + ->sortable() + ->toggleable(isToggledHiddenByDefault: true), + ]) + ->filters([ + SelectFilter::make('type') + ->query(fn (Builder $query, array $data): Builder => empty($data['values']) + ? $query + : $query->whereHas('itemBase', function (Builder $query) use ($data): void { + $query->whereIn('type', $data['values']); + })) + ->options( + fn () => ItemBase::query() + ->select('type') + ->distinct() + ->orderBy('type') + ->pluck('type', 'type') + ->toArray(), + ) + ->multiple() + ->searchable() + ->preload(), + + TernaryFilter::make('club_only') + ->label('HC Only'), + + TernaryFilter::make('limited_stack') + ->label('Limited'), + ]) + ->defaultSort('order_number') + ->headerActions([ + CreateAction::make(), + ]) + ->recordActions([ + EditAction::make()->label('Edit Catalog Item'), + + Action::make('editItemBase') + ->label('Edit Item base') + ->icon('heroicon-m-cube') + ->modalWidth('3xl') + ->modalHeading('Edit Item Base') + ->fillForm(function ($record) { + $itemBase = $record->itemBase; + if (! $itemBase) { + return []; + } + + return [ + 'sprite_id' => $itemBase->sprite_id, + 'public_name' => $itemBase->public_name, + 'item_name' => $itemBase->item_name, + 'type' => $itemBase->type, + 'width' => $itemBase->width, + 'length' => $itemBase->length, + 'stack_height' => $itemBase->stack_height, + 'allow_stack' => $itemBase->allow_stack, + 'allow_sit' => $itemBase->allow_sit, + 'allow_lay' => $itemBase->allow_lay, + 'allow_walk' => $itemBase->allow_walk, + 'allow_gift' => $itemBase->allow_gift, + 'allow_trade' => $itemBase->allow_trade, + 'allow_recycle' => $itemBase->allow_recycle, + 'allow_marketplace_sell' => $itemBase->allow_marketplace_sell, + 'allow_inventory_stack' => $itemBase->allow_inventory_stack, + 'interaction_type' => $itemBase->interaction_type, + 'interaction_modes_count' => $itemBase->interaction_modes_count, + 'vending_ids' => $itemBase->vending_ids, + 'multiheight' => $itemBase->multiheight, + 'customparams' => $itemBase->customparams, + 'effect_id_male' => $itemBase->effect_id_male, + 'effect_id_female' => $itemBase->effect_id_female, + 'clothing_on_walk' => $itemBase->clothing_on_walk, + ]; + }) + ->schema([ + TextInput::make('sprite_id') + ->label('Sprite ID') + ->numeric() + ->nullable() + ->dehydrateStateUsing(fn ($state) => $state ?? ''), + TextInput::make('public_name') + ->label('Public Name') + ->maxLength(56) + ->nullable() + ->dehydrateStateUsing(fn ($state) => $state ?? ''), + TextInput::make('item_name') + ->label('Item Name') + ->required() + ->maxLength(70), + TextInput::make('type') + ->maxLength(3) + ->nullable() + ->dehydrateStateUsing(fn ($state) => $state ?? ''), + Grid::make(3) + ->schema([ + TextInput::make('width') + ->numeric() + ->nullable() + ->dehydrateStateUsing(fn ($state) => $state ?? ''), + TextInput::make('length') + ->numeric() + ->nullable() + ->dehydrateStateUsing(fn ($state) => $state ?? ''), + TextInput::make('stack_height') + ->numeric() + ->nullable() + ->dehydrateStateUsing(fn ($state) => $state ?? ''), + ]), + Grid::make(3) + ->schema([ + Toggle::make('allow_stack'), + Toggle::make('allow_sit'), + Toggle::make('allow_lay'), + ]), + Grid::make(3) + ->schema([ + Toggle::make('allow_walk'), + Toggle::make('allow_gift'), + Toggle::make('allow_trade'), + ]), + Grid::make(3) + ->schema([ + Toggle::make('allow_recycle'), + Toggle::make('allow_marketplace_sell'), + Toggle::make('allow_inventory_stack'), + ]), + TextInput::make('interaction_type') + ->maxLength(500) + ->nullable() + ->dehydrateStateUsing(fn ($state) => $state ?? ''), + Grid::make(2) + ->schema([ + TextInput::make('interaction_modes_count') + ->numeric() + ->nullable() + ->dehydrateStateUsing(fn ($state) => $state ?? ''), + TextInput::make('vending_ids') + ->maxLength(255) + ->nullable() + ->dehydrateStateUsing(fn ($state) => $state ?? ''), + ]), + Grid::make(2) + ->schema([ + TextInput::make('multiheight') + ->maxLength(50) + ->nullable() + ->dehydrateStateUsing(fn ($state) => $state ?? ''), + TextInput::make('customparams') + ->maxLength(256) + ->nullable() + ->dehydrateStateUsing(fn ($state) => $state ?? ''), + ]), + Grid::make(2) + ->schema([ + TextInput::make('effect_id_male') + ->numeric() + ->nullable() + ->dehydrateStateUsing(fn ($state) => $state ?? ''), + TextInput::make('effect_id_female') + ->numeric() + ->nullable() + ->dehydrateStateUsing(fn ($state) => $state ?? ''), + ]), + TextInput::make('clothing_on_walk') + ->maxLength(255) + ->nullable() + ->dehydrateStateUsing(fn ($state) => $state ?? ''), + ]) + ->action(function (array $data, $record): void { + // Transform any null or empty values to empty strings + $data = collect($data)->map(function ($value) { + if ($value === null || $value === '') { + return ''; + } + if (is_bool($value)) { + return $value ? '1' : '0'; + } + + return $value; + })->toArray(); + + $record->itemBase->forceFill($data)->save(); + }) + ->visible(fn ($record) => $record->itemBase !== null), + DeleteAction::make(), + ]) + ->toolbarActions([ + BulkActionGroup::make([ + DeleteBulkAction::make(), + ]), + ]); + } +} diff --git a/Updated_Cms/app/Filament/Resources/Hotel/ChatlogPrivates/ChatlogPrivateResource.php b/Updated_Cms/app/Filament/Resources/Hotel/ChatlogPrivates/ChatlogPrivateResource.php new file mode 100644 index 0000000000..6ecb5d3fca --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/Hotel/ChatlogPrivates/ChatlogPrivateResource.php @@ -0,0 +1,96 @@ +components([ + TextInput::make('sender') + ->disabled() + ->formatStateUsing(fn ($record) => $record->sender?->username) + ->label(__('filament::resources.inputs.sender')), + + TextInput::make('receiver') + ->disabled() + ->formatStateUsing(fn ($record) => $record->receiver?->username) + ->label(__('filament::resources.inputs.receiver')), + + Textarea::make('message') + ->label(__('filament::resources.inputs.message')) + ->columnSpanFull() + ->disabled(), + ]); + } + + #[\Override] + public static function table(Table $table): Table + { + return $table + ->defaultSort('timestamp', 'desc') + ->columns(self::getTable()) + ->filters([]) + ->recordActions([ + ViewAction::make(), + ]) + ->toolbarActions([]); + } + + public static function getTable(): array + { + return [ + TextColumn::make('sender.username') + ->label(__('filament::resources.columns.sender')) + ->toggleable() + ->searchable(isIndividual: true), + + TextColumn::make('receiver.username') + ->label(__('filament::resources.columns.receiver')) + ->toggleable() + ->searchable(isIndividual: true), + + TextColumn::make('message') + ->label(__('filament::resources.columns.message')) + ->limit(40) + ->searchable(isIndividual: true), + + TextColumn::make('timestamp') + ->label(__('filament::resources.columns.executed_at')) + ->dateTime('Y-m-d H:i') + ->toggleable(), + ]; + } + + public static function getPages(): array + { + return [ + 'index' => ManageChatlogPrivates::route('/'), + ]; + } +} diff --git a/Updated_Cms/app/Filament/Resources/Hotel/ChatlogPrivates/Pages/ManageChatlogPrivates.php b/Updated_Cms/app/Filament/Resources/Hotel/ChatlogPrivates/Pages/ManageChatlogPrivates.php new file mode 100644 index 0000000000..0aaea3e36e --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/Hotel/ChatlogPrivates/Pages/ManageChatlogPrivates.php @@ -0,0 +1,16 @@ +components([ + TextInput::make('room') + ->label(__('filament::resources.inputs.room')) + ->formatStateUsing(fn ($record) => $record->room?->name) + ->columnSpanFull() + ->disabled(), + + TextInput::make('sender') + ->label(__('filament::resources.inputs.sender')) + ->formatStateUsing(fn ($record) => $record->sender?->username) + ->disabled(), + + TextInput::make('receiver') + ->label(__('filament::resources.inputs.receiver')) + ->formatStateUsing(fn ($record) => $record->receiver?->username) + ->disabled(), + + Textarea::make('message') + ->label(__('filament::resources.inputs.message')) + ->columnSpanFull() + ->disabled(), + ]); + } + + #[\Override] + public static function table(Table $table): Table + { + return $table + ->defaultSort('timestamp', 'desc') + ->columns(self::getTable()) + ->filters([ + // + ]) + ->recordActions([ + ViewAction::make(), + ]) + ->toolbarActions([]); + } + + public static function getTable(): array + { + return [ + TextColumn::make('room.name') + ->label(__('filament::resources.columns.room')) + ->toggleable() + ->searchable(isIndividual: true), + + TextColumn::make('sender.username') + ->label(__('filament::resources.columns.sender')) + ->toggleable() + ->searchable(isIndividual: true), + + TextColumn::make('receiver.username') + ->label(__('filament::resources.columns.receiver')) + ->toggleable() + ->searchable(isIndividual: true), + + TextColumn::make('message') + ->label(__('filament::resources.columns.message')) + ->limit(40) + ->searchable(isIndividual: true), + + TextColumn::make('timestamp') + ->label(__('filament::resources.columns.executed_at')) + ->dateTime('Y-m-d H:i') + ->toggleable(), + ]; + } + + public static function getPages(): array + { + return [ + 'index' => ManageChatlogRooms::route('/'), + ]; + } +} diff --git a/Updated_Cms/app/Filament/Resources/Hotel/ChatlogRooms/Pages/ManageChatlogRooms.php b/Updated_Cms/app/Filament/Resources/Hotel/ChatlogRooms/Pages/ManageChatlogRooms.php new file mode 100644 index 0000000000..8ed6c4c707 --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/Hotel/ChatlogRooms/Pages/ManageChatlogRooms.php @@ -0,0 +1,16 @@ +components([]); + } + + #[\Override] + public static function table(Table $table): Table + { + return $table + ->defaultSort('timestamp', 'desc') + ->columns([ + TextColumn::make('user.username') + ->label(__('filament::resources.columns.username')) + ->searchable(), + + TextColumn::make('command') + ->label(__('filament::resources.columns.command')) + ->searchable(), + + TextColumn::make('succes') + ->badge() + ->color(fn (string $state): string => match ($state) { + 'yes' => 'primary', + 'no' => 'warning' + }) + ->label(__('filament::resources.columns.success')) + ->formatStateUsing(fn (string $state): string => __("filament::resources.options.{$state}")), + + TextColumn::make('timestamp') + ->label(__('filament::resources.columns.executed_at')) + ->dateTime('Y-m-d H:i') + ->searchable(), + ]) + ->filters([ + SelectFilter::make('succes') + ->label(__('filament::resources.filters.success')) + ->options([ + 'yes' => __('filament::resources.options.yes'), + 'no' => __('filament::resources.options.no'), + ]), + ]) + ->recordActions([]) + ->toolbarActions([]); + } + + public static function getPages(): array + { + return [ + 'index' => ManageCommandLogs::route('/'), + ]; + } +} diff --git a/Updated_Cms/app/Filament/Resources/Hotel/CommandLogs/Pages/ManageCommandLogs.php b/Updated_Cms/app/Filament/Resources/Hotel/CommandLogs/Pages/ManageCommandLogs.php new file mode 100644 index 0000000000..b076207bb9 --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/Hotel/CommandLogs/Pages/ManageCommandLogs.php @@ -0,0 +1,21 @@ +query()); + } + + #[\Override] + public function get($columns = ['*']): Collection + { + return collect(); // Return an empty collection + } +} diff --git a/Updated_Cms/app/Filament/Resources/Hotel/EmulatorSettings/EmulatorSettingResource.php b/Updated_Cms/app/Filament/Resources/Hotel/EmulatorSettings/EmulatorSettingResource.php new file mode 100644 index 0000000000..ed3f158ad0 --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/Hotel/EmulatorSettings/EmulatorSettingResource.php @@ -0,0 +1,93 @@ +components([ + Section::make() + ->schema([ + TextInput::make('key') + ->label(__('filament::resources.inputs.key')) + ->required() + ->maxLength(100) + ->unique(ignoreRecord: true), + + TextInput::make('value') + ->label(__('filament::resources.inputs.value')) + ->required() + ->maxLength(512), + ]), + ]); + } + + #[\Override] + public static function table(Table $table): Table + { + return $table + ->columns([ + TextColumn::make('key') + ->label(__('filament::resources.columns.key')) + ->searchable(), + + TextColumn::make('value') + ->label(__('filament::resources.columns.value')) + ->searchable(), + ]) + ->filters([ + // + ]) + ->recordActions([ + ViewAction::make(), + EditAction::make(), + ]) + ->toolbarActions([]); + } + + #[\Override] + public static function getRelations(): array + { + return [ + // + ]; + } + + public static function getPages(): array + { + return [ + 'index' => ListEmulatorSettings::route('/'), + 'create' => CreateEmulatorSetting::route('/create'), + 'edit' => EditEmulatorSetting::route('/{record}/edit'), + ]; + } +} diff --git a/Updated_Cms/app/Filament/Resources/Hotel/EmulatorSettings/Pages/CreateEmulatorSetting.php b/Updated_Cms/app/Filament/Resources/Hotel/EmulatorSettings/Pages/CreateEmulatorSetting.php new file mode 100644 index 0000000000..a8513e4a09 --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/Hotel/EmulatorSettings/Pages/CreateEmulatorSetting.php @@ -0,0 +1,11 @@ +components([ + TextInput::make('key') + ->label(__('filament::resources.inputs.key')) + ->required() + ->maxLength(100) + ->unique(ignoreRecord: true), + + TextInput::make('value') + ->label(__('filament::resources.inputs.value')) + ->required() + ->maxLength(512), + ]); + } + + #[\Override] + public static function table(Table $table): Table + { + return $table + ->columns([ + TextColumn::make('key') + ->label(__('filament::resources.columns.key')) + ->searchable(), + + TextColumn::make('value') + ->label(__('filament::resources.columns.value')) + ->searchable(), + ]) + ->filters([ + // + ]) + ->recordActions([ + EditAction::make(), + ]) + ->toolbarActions([ + BulkActionGroup::make([ + DeleteBulkAction::make(), + ]), + ]); + } + + #[\Override] + public static function getRelations(): array + { + return [ + // + ]; + } + + public static function getPages(): array + { + return [ + 'index' => ManageEmulatorTexts::route('/'), + ]; + } +} diff --git a/Updated_Cms/app/Filament/Resources/Hotel/EmulatorTexts/Pages/ManageEmulatorTexts.php b/Updated_Cms/app/Filament/Resources/Hotel/EmulatorTexts/Pages/ManageEmulatorTexts.php new file mode 100644 index 0000000000..a3e1f5da0b --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/Hotel/EmulatorTexts/Pages/ManageEmulatorTexts.php @@ -0,0 +1,24 @@ +components([ + Select::make('permission_id') + ->label('Rank') + ->relationship('permission', 'rank_name') + ->required() + ->searchable() + ->preload() + ->unique(ignoreRecord: true) + ->placeholder('Select a rank'), + Textarea::make('description') + ->label('Position Description') + ->required() + ->maxLength(65535) + ->columnSpanFull(), + DateTimePicker::make('apply_from') + ->label('Application Start Date') + ->nullable(), + DateTimePicker::make('apply_to') + ->label('Application End Date') + ->nullable(), + ]); + } + + #[\Override] + public static function table(Table $table): Table + { + return $table + ->columns([ + TextColumn::make('permission.rank_name') + ->label('Rank') + ->sortable() + ->searchable(), + TextColumn::make('description') + ->label('Description') + ->limit(50) + ->searchable(), + TextColumn::make('apply_from') + ->label('Apply From') + ->dateTime() + ->sortable(), + TextColumn::make('apply_to') + ->label('Apply To') + ->dateTime() + ->sortable(), + TextColumn::make('created_at') + ->label('Created') + ->dateTime() + ->sortable(), + ]) + ->filters([ + ]) + ->recordActions([ + EditAction::make(), + DeleteAction::make() + ->requiresConfirmation() + ->modalHeading('Delete Open Position') + ->modalDescription('This will also delete all related staff applications. Are you sure?') + ->modalSubmitActionLabel('Yes, delete') + ->successNotification( + Notification::make() + ->success() + ->title('Open Position Deleted') + ->body('The open position and its related staff applications have been deleted successfully.'), + ), + ]) + ->toolbarActions([ + DeleteBulkAction::make() + ->requiresConfirmation() + ->modalHeading('Delete Open Positions') + ->modalDescription('This will also delete all related staff applications for the selected positions. Are you sure?') + ->modalSubmitActionLabel('Yes, delete') + ->successNotification( + Notification::make() + ->success() + ->title('Open Positions Deleted') + ->body('The selected open positions and their related staff applications have been deleted successfully.'), + ), + ]); + } + + public static function getPages(): array + { + return [ + 'index' => ListOpenPositions::route('/'), + 'create' => CreateOpenPosition::route('/create'), + 'edit' => EditOpenPosition::route('/{record}/edit'), + ]; + } +} diff --git a/Updated_Cms/app/Filament/Resources/Hotel/OpenPositions/Pages/CreateOpenPosition.php b/Updated_Cms/app/Filament/Resources/Hotel/OpenPositions/Pages/CreateOpenPosition.php new file mode 100644 index 0000000000..532e5b52e1 --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/Hotel/OpenPositions/Pages/CreateOpenPosition.php @@ -0,0 +1,11 @@ +components([ + Select::make('user_id') + ->relationship('user', 'username') + ->required() + ->searchable(), + Select::make('rank_id') + ->relationship('rank', 'rank_name') + ->required() + ->searchable(), + Textarea::make('content') + ->required() + ->columnSpanFull(), + ]); + } + + #[\Override] + public static function table(Table $table): Table + { + return $table + ->columns([ + TextColumn::make('user.username') + ->label('User') + ->sortable() + ->searchable(), + TextColumn::make('rank.rank_name') + ->label('Rank') + ->sortable() + ->searchable(), + TextColumn::make('content') + ->limit(50) + ->sortable(), + TextColumn::make('created_at') + ->dateTime() + ->sortable(), + TextColumn::make('updated_at') + ->dateTime() + ->sortable(), + ]) + ->filters([ + // Add filters if needed + ]) + ->recordActions([ + EditAction::make(), + DeleteAction::make(), + ]) + ->toolbarActions([ + DeleteBulkAction::make(), + ]); + } + + public static function getPages(): array + { + return [ + 'index' => ListStaffApplications::route('/'), + 'edit' => EditStaffApplication::route('/{record}/edit'), + ]; + } +} diff --git a/Updated_Cms/app/Filament/Resources/Hotel/WebsiteAds/Pages/CreateWebsiteAd.php b/Updated_Cms/app/Filament/Resources/Hotel/WebsiteAds/Pages/CreateWebsiteAd.php new file mode 100644 index 0000000000..17365019ac --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/Hotel/WebsiteAds/Pages/CreateWebsiteAd.php @@ -0,0 +1,11 @@ +label('Create new ADS') + ->color('success'), + Action::make('importAdsData') + ->label('Import ADS Images from folder') + ->color('info') + ->action(function (): void { + Artisan::call('import:ads-data'); + session()->flash('success', 'ADS data imported successfully!'); + }) + ->requiresConfirmation() + ->modalHeading('Import ADS Data') + ->modalDescription('Are you sure you want to import ADS data? This action cannot be undone.') + ->modalButton('Yes, import data'), + Action::make('emptyTable') + ->label('Empty Database Table') + ->color('danger') + ->action(function (): void { + WebsiteAd::truncate(); + session()->flash('success', 'The table has been emptied successfully!'); + }) + ->requiresConfirmation() + ->modalHeading('Empty Table') + ->modalDescription('Are you sure you want to empty the table? This action cannot be undone and will delete all records.') + ->modalButton('Yes, empty table'), + ]; + } +} diff --git a/Updated_Cms/app/Filament/Resources/Hotel/WebsiteAds/WebsiteAdResource.php b/Updated_Cms/app/Filament/Resources/Hotel/WebsiteAds/WebsiteAdResource.php new file mode 100644 index 0000000000..100fb401ab --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/Hotel/WebsiteAds/WebsiteAdResource.php @@ -0,0 +1,81 @@ +components([ + FileUpload::make('image') + ->label('Image') + ->disk('ads') + ->preserveFilenames() + ->image() + ->rules(['required', 'image', 'mimes:jpeg,png,jpg,gif']) + ->validationMessages([ + 'required' => 'Please upload an image.', 'image' => 'The file must be a valid image.', 'mimes' => 'Only JPEG, PNG, JPG, and GIF images are allowed.']) + ->required() + ->getUploadedFileNameForStorageUsing( + fn (TemporaryUploadedFile $file): string => strtolower(str_replace([' ', '-', 'æ', 'ø', 'å'], ['_', '_', 'ae', 'oe', 'aa'], $file->getClientOriginalName())), + ), + ]); + } + + #[\Override] + public static function table(Table $table): Table + { + return $table + ->columns([ + Stack::make([ + ImageColumn::make('image_url') + ->label('') + ->extraAttributes(['style' => 'image-rendering: pixelated']) + ->size(125), + TextColumn::make('image') + ->label('') + ->alignCenter() + ->searchable(), + ]), + TextColumn::make('created_at') + ->dateTime(), + ]) + ->filters([ + ]) + ->recordActions([ + DeleteAction::make(), + ]) + ->searchable(); + } + + public static function getPages(): array + { + return [ + 'index' => ListWebsiteAds::route('/'), + 'create' => CreateWebsiteAd::route('/create'), + ]; + } +} diff --git a/Updated_Cms/app/Filament/Resources/Hotel/WordFilters/Pages/ManageWordFilters.php b/Updated_Cms/app/Filament/Resources/Hotel/WordFilters/Pages/ManageWordFilters.php new file mode 100644 index 0000000000..ff960bb2dc --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/Hotel/WordFilters/Pages/ManageWordFilters.php @@ -0,0 +1,19 @@ +components([ + TextInput::make('key') + ->label(__('filament::resources.inputs.key')) + ->maxLength(256) + ->unique('wordfilter', 'key', ignoreRecord: true) + ->required(), + + TextInput::make('replacement') + ->label(__('filament::resources.inputs.replacement')) + ->maxLength(16) + ->required(), + + Select::make('hide') + ->native(false) + ->label(__('filament::resources.inputs.hideable')) + ->default('0') + ->options([ + '0' => __('filament::resources.options.no'), + '1' => __('filament::resources.options.yes'), + ]), + + Select::make('report') + ->native(false) + ->label(__('filament::resources.inputs.reportable')) + ->default('0') + ->options([ + '0' => __('filament::resources.options.no'), + '1' => __('filament::resources.options.yes'), + ]), + + TextInput::make('mute') + ->label(__('filament::resources.inputs.mute_time')) + ->columnSpanFull() + ->default(0), + ]); + } + + #[\Override] + public static function table(Table $table): Table + { + return $table + ->columns([ + TextColumn::make('key') + ->label(__('filament::resources.columns.key')) + ->searchable(), + + TextColumn::make('replacement') + ->label(__('filament::resources.columns.replacement')) + ->searchable(), + + IconColumn::make('hide') + ->label(__('filament::resources.columns.hideable')) + ->icon(fn (string $state): string => $state === '0' ? 'heroicon-o-x-circle' : 'heroicon-o-check-circle') + ->colors([ + 'danger' => '0', + 'success' => '1', + ]), + + IconColumn::make('report') + ->label(__('filament::resources.columns.reportable')) + ->icon(fn (string $state): string => $state === '0' ? 'heroicon-o-x-circle' : 'heroicon-o-check-circle') + ->colors([ + 'danger' => '0', + 'success' => '1', + ]), + + TextColumn::make('mute') + ->label(__('filament::resources.columns.mute_time')) + ->searchable(), + ]) + ->filters([ + + ]) + ->recordActions([ + EditAction::make(), + DeleteAction::make(), + ]) + ->toolbarActions([ + DeleteBulkAction::make(), + ]); + } + + public static function getPages(): array + { + return [ + 'index' => ManageWordFilters::route('/'), + ]; + } +} diff --git a/Updated_Cms/app/Filament/Resources/User/Bans/BanResource.php b/Updated_Cms/app/Filament/Resources/User/Bans/BanResource.php new file mode 100644 index 0000000000..5b919a800d --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/User/Bans/BanResource.php @@ -0,0 +1,144 @@ +components([ + Textarea::make('ban_reason') + ->label(__('filament::resources.inputs.reason')) + ->columnSpanFull(), + + Select::make('type') + ->native(false) + ->label(__('filament::resources.inputs.type')) + ->columnSpanFull() + ->options([ + 'account' => __('filament::resources.common.Account'), + 'ip' => __('filament::resources.common.IP'), + 'machine' => __('filament::resources.common.Machine'), + 'super' => __('filament::resources.common.Super'), + ]), + + DateTimePicker::make('ban_expire') + ->native(false) + ->label(__('filament::resources.inputs.expires_at')) + ->displayFormat('Y-m-d H:i') + ->format('U') + ->columnSpanFull(), + ]); + } + + #[\Override] + public static function table(Table $table): Table + { + return $table + ->defaultSort('id', 'desc') + ->columns([ + TextColumn::make('id') + ->label(__('filament::resources.columns.id')), + + UserAvatarColumn::make('avatar') + ->toggleable() + ->pointer('user.look') + ->label(__('filament::resources.columns.avatar')) + ->options('&size=m&head_direction=3&gesture=sml&headonly=1'), + + TextColumn::make('user.username') + ->label(__('filament::resources.columns.username')) + ->searchable(), + + TextColumn::make('staff.username') + ->label(__('filament::resources.columns.by')) + ->searchable(), + + TextColumn::make('ban_reason') + ->label(__('filament::resources.columns.reason')) + ->tooltip(function (TextColumn $column): ?string { + $state = $column->getState(); + + if (strlen($state) <= $column->getCharacterLimit()) { + return null; + } + + return $state; + }) + ->limit(15) + ->searchable(), + + TextColumn::make('type') + ->badge() + ->label(__('filament::resources.columns.type')) + ->formatStateUsing(fn (string $state): string => match ($state) { + 'account' => __('filament::resources.common.Account'), + 'ip' => __('filament::resources.common.IP'), + 'machine' => __('filament::resources.common.Machine'), + 'super' => __('filament::resources.common.Super'), + }) + ->color(fn (string $state): string => match ($state) { + 'account' => 'primary', + 'ip' => 'success', + 'machine' => 'primary', + 'super' => 'danger', + }), + + TextColumn::make('timestamp') + ->label(__('filament::resources.columns.banned_at')) + ->date('Y-m-d H:i'), + + TextColumn::make('ban_expire') + ->label(__('filament::resources.columns.expires_at')) + ->formatStateUsing(fn (string $state): string => $state == 0 ? __('filament::resources.common.Never') : date('Y-m-d H:i', $state)), + ]) + ->filters([ + // + ]) + ->recordActions([ + EditAction::make(), + DeleteAction::make(), + ]) + ->toolbarActions([ + DeleteBulkAction::make(), + ]); + } + + public static function getPages(): array + { + return [ + 'index' => ManageBans::route('/'), + ]; + } +} diff --git a/Updated_Cms/app/Filament/Resources/User/Bans/Pages/ManageBans.php b/Updated_Cms/app/Filament/Resources/User/Bans/Pages/ManageBans.php new file mode 100644 index 0000000000..9dd64ec062 --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/User/Bans/Pages/ManageBans.php @@ -0,0 +1,18 @@ +getRecord(), + $data, + ); + } + + public static function getEloquentQuery(): Builder + { + return static::getModel()::query()->with(['currencies', 'settings']); + } + + /** + * @throws Halt + */ + protected function beforeSave(): void + { + $user = $this->getRecord(); + $data = $this->form->getState(); + + if ($data['rank'] > auth()->user()->rank) { + Notification::make() + ->danger() + ->title(__('You cannot edit this user!')) + ->body(__('You cannot edit users with a higher rank than yours.')) + ->send(); + + $this->halt(); + } + + $rcon = app(RconService::class); + + if (! $user->online) { + DB::transaction(function () use ($user, $data): void { + $this->treatChangedCurrenciesWithoutRcon($user, $data); + }); + + return; + } + + if ($user->online && ! $rcon->isConnected()) { + Notification::make() + ->danger() + ->title(__('RCON is not enabled!')) + ->body(__('You cannot edit users because RCON is not enabled and the user is online.')) + ->send(); + + $this->halt(); + } + + DB::transaction(function () use ($user, $data, $rcon): void { + if ($data['credits'] != $user->credits) { + $rcon->giveCredits($user, -$user->credits + $data['credits']); + } + + $this->checkUsernameChangedPermission($user, $data, $rcon); + $this->treatChangedCurrencies($user, $data); + $this->treatChangedUserRank($user, $data, $rcon); + $this->treatChangedUserMotto($user, $data, $rcon); + }); + } + + private function treatChangedCurrenciesWithoutRcon(Model $user, array $data): void + { + $user->currencies->each(function (UserCurrency $currency) use ($data, $user): void { + $updatedCurrencyAmount = $data["currency_{$currency->type}"] ?? $currency->amount; + if ($updatedCurrencyAmount == $currency->amount) { + return; + } + + $updated = $user->currencies()->where('type', $currency->type)->update(['amount' => $updatedCurrencyAmount]); + + if ($updated) { + activity() + ->performedOn($currency) + ->withProperties(['old_amount' => $currency->amount, 'new_amount' => $updatedCurrencyAmount, 'user_id' => $user->id, 'type' => $currency->type]) + ->event('updated') + ->log("Currency updated for user {$user->username}"); + + } else { + activity() + ->withProperties(['user_id' => $user->id, 'type' => $currency->type]) + ->event('failed_update') + ->log("Failed to update currency for user {$user->username}"); + } + }); + + $user->settings->update(['can_change_name' => $data['allow_change_username'] ? '1' : '0']); + } + + private function checkUsernameChangedPermission(Model $user, array $data, RconService $rcon): void + { + if ($data['allow_change_username'] == $user->settings->can_change_name) { + return; + } + + if (! $rcon->isConnected()) { + Notification::make() + ->danger() + ->title(__('RCON is not enabled!')) + ->body(__('You cannot edit users because RCON is not enabled and the user is online.')) + ->send(); + + $this->halt(); + } + + $rcon->disconnectUser($user); + $user->settings->update(['can_change_name' => $data['allow_change_username'] ? '1' : '0']); + } + + private function treatChangedCurrencies(Model $user, array $data): void + { + $user->currencies->each(function (UserCurrency $currency) use ($data, $user): void { + $updatedCurrencyAmount = $data["currency_{$currency->type}"] ?? $currency->amount; + $currencyType = match ($currency->type) { + CurrencyTypes::Duckets => 'duckets', + CurrencyTypes::Diamonds => 'diamonds', + CurrencyTypes::Points => 'points', + }; + + if ($updatedCurrencyAmount == $currency->amount) { + return; + } + + app(SendCurrency::class)->execute($user, $currencyType, -$currency->amount + $updatedCurrencyAmount); + }); + } + + private function treatChangedUserRank(Model $user, array $data, RconService $rcon): void + { + if ($data['rank'] == $user->rank) { + return; + } + if ($data['rank'] > auth()->user()->rank) { + return; + } + + if ($user->online && ! $rcon->isConnected()) { + Notification::make() + ->danger() + ->title(__('RCON is not enabled!')) + ->body(__('You cannot edit users because RCON is not enabled and the user is online.')) + ->send(); + + $this->halt(); + } + + if (! $user->online) { + $user->update(['rank' => $data['rank']]); + + return; + } + + $rcon->alertUser($user, __('You have been disconnected because your rank has been changed. Please re-enter the hotel.')); + \Illuminate\Support\Sleep::sleep(2); + + $rcon->disconnectUser($user); + $rcon->setRank($user, $data['rank']); + } + + private function treatChangedUserMotto(Model $user, array $data, RconService $rcon): void + { + if ($data['motto'] == $user->motto) { + return; + } + + if ($user->online && ! $rcon->isConnected()) { + Notification::make() + ->danger() + ->title(__('RCON is not enabled!')) + ->body(__('You cannot edit users because RCON is not enabled and the user is online.')) + ->send(); + + $this->halt(); + } + + if (! $user->online) { + $user->update(['motto' => $data['motto']]); + + return; + } + + $rcon->setMotto($user, $data['motto']); + $rcon->alertUser($user, __('Your motto has been changed by a staff member.')); + } +} diff --git a/Updated_Cms/app/Filament/Resources/User/Users/Pages/ListUsers.php b/Updated_Cms/app/Filament/Resources/User/Users/Pages/ListUsers.php new file mode 100644 index 0000000000..5a3875cb0f --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/User/Users/Pages/ListUsers.php @@ -0,0 +1,84 @@ +modal() + ->color('gray') + ->modalHeading(__('filament::resources.actions.send_notifications')) + ->icon('heroicon-o-bell') + ->schema([ + Select::make('users') + ->label(__('filament::resources.inputs.users')) + ->searchable() + ->getSearchResultsUsing(fn (string $search): array => User::where('username', 'like', "%{$search}%")->limit(50)->pluck('username', 'id')->toArray()) + ->multiple() + ->native(false) + ->nullable(), + + TextInput::make('message') + ->label(__('filament::resources.inputs.message')) + ->maxLength(100) + ->required(), + + TextInput::make('url') + ->label(__('filament::resources.inputs.url')) + ->nullable(), + + Toggle::make('as_staff') + ->label(__('filament::resources.inputs.as_staff')) + ->default(false), + ]) + ->action(function (array $data): void { + $notifications = collect(); + $allUsersId = collect($data['users'])->values(); + $senderId = $data['as_staff'] ? null : auth()->id(); + + if ($allUsersId->isEmpty()) { + $allUsersId = User::select('id')->get()->pluck('id'); + } + + $allUsersId->each(function ($userId) use ($senderId, $data, $notifications): void { + $notifications->push([ + 'sender_id' => $senderId, + 'recipient_id' => $userId, + 'type' => NotificationType::HousekeepingCustomMessage, + 'message' => $data['message'], + 'url' => $data['url'] ?? null, + 'created_at' => now(), + 'updated_at' => now(), + ]); + }); + + UserNotification::insert($notifications->toArray()); + + Notification::make() + ->body(__('Notification sent successfully.')) + ->icon('heroicon-o-check-circle') + ->iconColor('success') + ->send(); + }), + + CreateAction::make(), + ]; + } +} diff --git a/Updated_Cms/app/Filament/Resources/User/Users/Pages/ViewUser.php b/Updated_Cms/app/Filament/Resources/User/Users/Pages/ViewUser.php new file mode 100644 index 0000000000..eadc03b048 --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/User/Users/Pages/ViewUser.php @@ -0,0 +1,20 @@ +getRecord(), + $data, + ); + } +} diff --git a/Updated_Cms/app/Filament/Resources/User/Users/RelationManagers/BadgesRelationManager.php b/Updated_Cms/app/Filament/Resources/User/Users/RelationManagers/BadgesRelationManager.php new file mode 100644 index 0000000000..312bc5ca91 --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/User/Users/RelationManagers/BadgesRelationManager.php @@ -0,0 +1,132 @@ +components([ + TextInput::make('badge_code') + ->label(__('filament::resources.inputs.badge_code')) + ->required() + ->maxLength(255) + ->columnSpanFull(), + ]); + } + + public function table(Table $table): Table + { + return $table + ->modifyQueryUsing(fn ($query) => $query->latest('id')) + ->columns([ + TextColumn::make('id') + ->label(__('filament::resources.columns.id')), + + HabboBadgeColumn::make('badge') + ->alignCenter() + ->label(__('filament::resources.columns.image')), + + TextColumn::make('badge_code') + ->label(__('filament::resources.columns.badge_code')) + ->searchable(), + + IconColumn::make('slot_id') + ->label(__('filament::resources.columns.equipped')) + ->icon(fn ($record) => $record->slot_id > 0 ? 'heroicon-o-check-circle' : 'heroicon-o-x-circle') + ->colors([ + 'success' => fn (string $state) => $state > 0, + 'danger' => fn (string $state) => $state <= 0, + ]), + ]) + ->filters([ + // + ]) + ->headerActions([ + CreateAction::make() + ->before(function (CreateAction $action, RelationManager $livewire): void { + $user = $livewire->getOwnerRecord(); + $hasRconEnabled = config('hotel.rcon.enabled'); + + if (! $user->online) { + return; + } + + if (! $hasRconEnabled) { + Notification::make() + ->danger() + ->title('RCON is not enabled!') + ->body("You can't send badges to online users if RCON is not enabled.") + ->persistent() + ->send(); + } else { + $rcon = app(RconService::class); + $data = $action->getFormData(); + + $rcon->sendSafelyFromDashboard('sendBadge', [$user, $data['badge_code']], 'RCON: Failed to send the badge'); + } + + $action->cancel(); + }), + ]) + ->recordActions([ + DeleteAction::make() + ->before(fn (DeleteAction $action, RelationManager $livewire) => self::onDeleteBadgeAction($action, $livewire)), + ]) + ->toolbarActions([ + DeleteBulkAction::make() + ->before(fn (DeleteBulkAction $action, RelationManager $livewire) => self::onDeleteBadgeAction($action, $livewire)), + ]); + } + + public static function onDeleteBadgeAction(DeleteAction|DeleteBulkAction $action, RelationManager $livewire): void + { + $user = $livewire->getOwnerRecord(); + $hasRconEnabled = config('hotel.rcon.enabled'); + + if (! $user->online) { + return; + } + + if (! $hasRconEnabled) { + Notification::make() + ->danger() + ->title('RCON is not enabled!') + ->body("You can't remove badges to online users if RCON is not enabled.") + ->persistent() + ->send(); + } else { + $rcon = app(RconService::class); + $badge = $action instanceof DeleteAction + ? $action->getRecord()?->badge_code + : $action->getRecords()->map(fn ($record) => $record->badge_code)->join(';'); + + $rcon->sendSafelyFromDashboard('removeBadge', [$user, $badge], 'RCON: Failed to remove the badge'); + } + + $action->cancel(); + } +} diff --git a/Updated_Cms/app/Filament/Resources/User/Users/RelationManagers/ChatLogPrivateRelationManager.php b/Updated_Cms/app/Filament/Resources/User/Users/RelationManagers/ChatLogPrivateRelationManager.php new file mode 100644 index 0000000000..aa03f37f91 --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/User/Users/RelationManagers/ChatLogPrivateRelationManager.php @@ -0,0 +1,26 @@ +columns(ChatlogPrivateResource::getTable()) + ->defaultSort('timestamp', 'desc'); + } +} diff --git a/Updated_Cms/app/Filament/Resources/User/Users/RelationManagers/ChatLogRelationManager.php b/Updated_Cms/app/Filament/Resources/User/Users/RelationManagers/ChatLogRelationManager.php new file mode 100644 index 0000000000..5634076acb --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/User/Users/RelationManagers/ChatLogRelationManager.php @@ -0,0 +1,26 @@ +columns(ChatlogRoomResource::getTable()) + ->defaultSort('timestamp', 'desc'); + } +} diff --git a/Updated_Cms/app/Filament/Resources/User/Users/RelationManagers/SettingsRelationManager.php b/Updated_Cms/app/Filament/Resources/User/Users/RelationManagers/SettingsRelationManager.php new file mode 100644 index 0000000000..20bdc26128 --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/User/Users/RelationManagers/SettingsRelationManager.php @@ -0,0 +1,184 @@ +components([ + Tabs::make('Settings') + ->schema([ + Tab::make(__('filament::resources.tabs.Account Data')) + ->schema([ + TextInput::make('achievement_score') + ->label(__('filament::resources.inputs.achievement_score')) + ->disabled() + ->required(), + + TextInput::make('respects_received') + ->label(__('filament::resources.inputs.respects_received')) + ->disabled() + ->required(), + + Select::make('can_trade') + ->native(false) + ->label(__('filament::resources.inputs.can_trade')) + ->options([ + '0' => __('filament::resources.common.No'), + '1' => __('filament::resources.common.Yes'), + ]) + ->required(), + + Select::make('block_following') + ->native(false) + ->label(__('filament::resources.inputs.block_following')) + ->options([ + '0' => __('filament::resources.common.No'), + '1' => __('filament::resources.common.Yes'), + ]) + ->required(), + + Select::make('block_friendrequests') + ->native(false) + ->label(__('filament::resources.inputs.block_friendrequests')) + ->options([ + '0' => __('filament::resources.common.No'), + '1' => __('filament::resources.common.Yes'), + ]) + ->required(), + + Select::make('block_roominvites') + ->native(false) + ->label(__('filament::resources.inputs.block_roominvites')) + ->options([ + '0' => __('filament::resources.common.No'), + '1' => __('filament::resources.common.Yes'), + ]) + ->required(), + + TextInput::make('max_rooms') + ->label(__('filament::resources.inputs.max_rooms')) + ->numeric() + ->required(), + + TextInput::make('max_friends') + ->label(__('filament::resources.inputs.max_friends')) + ->numeric() + ->required(), + ]) + ->columns(['sm' => 2]), + + Tab::make(__('filament::resources.tabs.Extra Settings')) + ->schema([ + Select::make('old_chat') + ->native(false) + ->label(__('filament::resources.inputs.old_chat')) + ->options([ + '0' => __('filament::resources.common.No'), + '1' => __('filament::resources.common.Yes'), + ]) + ->required(), + + Select::make('block_camera_follow') + ->native(false) + ->label(__('filament::resources.inputs.block_camera_follow')) + ->options([ + '0' => __('filament::resources.common.No'), + '1' => __('filament::resources.common.Yes'), + ]) + ->required(), + + Select::make('ignore_bots') + ->native(false) + ->label(__('filament::resources.inputs.ignore_bots')) + ->options([ + '0' => __('filament::resources.common.No'), + '1' => __('filament::resources.common.Yes'), + ]) + ->required(), + + Select::make('ignore_pets') + ->native(false) + ->label(__('filament::resources.inputs.ignore_pets')) + ->options([ + '0' => __('filament::resources.common.No'), + '1' => __('filament::resources.common.Yes'), + ]) + ->required(), + ])->columns(['sm' => 2]), + ])->columnSpanFull(), + ]); + } + + public function table(Table $table): Table + { + return $table + ->columns([ + TextColumn::make('achievement_score') + ->label(__('filament::resources.columns.achievement_score')) + ->toggleable(), + + TextColumn::make('respects_received') + ->label(__('filament::resources.columns.respects_received')) + ->toggleable(), + + TextColumn::make('online_time') + ->label(__('filament::resources.columns.online_time')) + ->formatStateUsing(fn (string $state) => __(':m minutes', ['m' => round(CarbonInterval::seconds($state)->totalMinutes)])) + ->toggleable(), + + IconColumn::make('can_trade') + ->label(__('filament::resources.columns.can_trade')) + ->icon(fn (string $state) => $state === '1' ? 'heroicon-o-check-circle' : 'heroicon-o-x-circle') + ->colors([ + 'success' => '1', + 'danger' => '0', + ]), + + IconColumn::make('can_change_name') + ->label(__('filament::resources.columns.can_change_name')) + ->icon(fn (string $state) => $state === '1' ? 'heroicon-o-check-circle' : 'heroicon-o-x-circle') + ->colors([ + 'success' => '1', + 'danger' => '0', + ]), + ]) + ->filters([ + // + ]) + ->headerActions([ + Action::make('helper') + ->label('Settings Tip') + ->icon('heroicon-o-exclamation-triangle') + ->tooltip('You can only change the offline user settings.') + ->extraAttributes(['style' => 'cursor: default !important']), + ]) + ->recordActions([ + EditAction::make() + ->disabled(fn (RelationManager $livewire) => $livewire->getOwnerRecord()->online), + ]) + ->toolbarActions([]); + } +} diff --git a/Updated_Cms/app/Filament/Resources/User/Users/UserResource.php b/Updated_Cms/app/Filament/Resources/User/Users/UserResource.php new file mode 100644 index 0000000000..2fe36cc951 --- /dev/null +++ b/Updated_Cms/app/Filament/Resources/User/Users/UserResource.php @@ -0,0 +1,298 @@ +components([ + Tabs::make('Main') + ->tabs([ + Tab::make(__('filament::resources.tabs.General Information')) + ->schema([ + TextInput::make('username') + ->label(__('filament::resources.inputs.username')) + ->required() + ->disabled() + ->unique(ignoreRecord: true) + ->maxLength(25), + + TextInput::make('motto') + ->label(__('filament::resources.inputs.motto')) + ->required() + ->maxLength(127), + + Select::make('gender') + ->native(false) + ->label(__('filament::resources.inputs.gender')) + ->options([ + 'M' => __('filament::resources.common.Male'), + 'F' => __('filament::resources.common.Female'), + ]) + ->required(), + + DateTimePicker::make('account_created') + ->native(false) + ->displayFormat('Y-m-d H:i:s') + ->dehydrateStateUsing(fn (Model $record) => $record->account_created) + ->disabled() + ->label(__('filament::resources.inputs.created_at')), + + DateTimePicker::make('last_login') + ->native(false) + ->displayFormat('Y-m-d H:i:s') + ->dehydrateStateUsing(fn (Model $record) => $record->last_login) + ->disabled() + ->label(__('filament::resources.inputs.last_login')), + + DateTimePicker::make('last_online') + ->native(false) + ->displayFormat('Y-m-d H:i:s') + ->dehydrateStateUsing(fn (Model $record) => $record->last_online) + ->disabled() + ->label(__('filament::resources.inputs.last_online')), + + TextInput::make('ip_register') + ->label(__('filament::resources.inputs.ip_register')) + ->disabled(), + + TextInput::make('ip_current') + ->label(__('filament::resources.inputs.ip_current')) + ->disabled(), + + TextInput::make('referral_code') + ->label(__('filament::resources.inputs.referral_code')) + ->disabled(), + + TextInput::make('referrer_code') + ->label(__('filament::resources.inputs.referrer_code')) + ->nullable() + ->maxLength(15), + + Select::make('team_id') + ->native(false) + ->label(__('filament::resources.inputs.team_id')) + ->options(WebsiteTeam::all()->pluck('rank_name', 'id')) + ->columnSpanFull(), + ])->columns(['sm' => 2]), + + Tab::make(__('filament::resources.tabs.Currencies')) + ->schema([ + TextInput::make('credits') + ->label(__('filament::resources.common.Credits')) + ->numeric() + ->minValue(0) + ->columnSpanFull(), + + TextInput::make('currency_0') + ->label(__('filament::resources.common.Duckets')) + ->numeric() + ->minValue(0) + ->columnSpanFull(), + + TextInput::make('currency_5') + ->label(__('filament::resources.common.Diamonds')) + ->numeric() + ->minValue(0) + ->columnSpanFull(), + + TextInput::make('currency_101') + ->label(__('filament::resources.common.Points')) + ->numeric() + ->minValue(0) + ->columnSpanFull(), + ]) + ->columns(['sm' => 2]), + + Tab::make(__('filament::resources.tabs.Security')) + ->schema([ + Section::make(__('filament::resources.tabs.Change Username')) + ->description(__('filament::resources.helpers.change_username_description')) + ->schema([ + Toggle::make('allow_change_username') + ->label(__('filament::resources.inputs.allow_change_username')), + ])->collapsible()->collapsed(), + + Section::make(__('filament::resources.tabs.Change Email')) + ->schema([ + TextInput::make('mail') + ->label(__('filament::resources.inputs.email')) + ->email() + ->required(), + ])->collapsible()->collapsed(), + + Section::make(__('filament::resources.tabs.Change Password')) + ->description(__('filament::resources.helpers.change_password_description')) + ->schema([ + TextInput::make('password') + ->label(__('filament::resources.inputs.new_password')) + ->dehydrateStateUsing(fn ($state) => Hash::make($state)) + ->dehydrated(fn ($state) => filled($state)) + ->password() + ->confirmed(), + + TextInput::make('password_confirmation') + ->label(__('filament::resources.inputs.new_password_confirmation')) + ->dehydrated(false) + ->password(), + ])->collapsible() + ->columns(['sm' => 2]) + ->collapsed(), + + Section::make(__('filament::resources.tabs.Change Rank')) + ->schema([ + Select::make('rank') + ->native(false) + ->label(__('filament::resources.inputs.rank')) + ->options(Permission::where('id', '<', auth()->user()->rank)->get()->pluck('rank_name', 'id')), + + Toggle::make('is_hidden') + ->label(__('filament::resources.inputs.is_hidden')) + ->default(false), + ])->collapsible() + ->collapsed(), + ]), + ])->columnSpanFull(), + ]); + } + + #[\Override] + public static function getEloquentQuery(): Builder + { + return static::getModel()::query(); + } + + #[\Override] + public static function table(Table $table): Table + { + return $table + ->defaultSort('id', 'desc') + ->columns([ + TextColumn::make('id') + ->label(__('filament::resources.columns.id')) + ->searchable(), + + UserAvatarColumn::make('avatar') + ->toggleable() + ->label(__('filament::resources.columns.avatar')) + ->options('&size=m&head_direction=3&gesture=sml&headonly=1'), + + TextColumn::make('username') + ->label(__('filament::resources.columns.username')) + ->searchable(), + + TextColumn::make('mail') + ->label(__('filament::resources.columns.email')) + ->toggleable() + ->searchable() + ->limit(50), + + TextColumn::make('motto') + ->label(__('filament::resources.columns.motto')) + ->toggleable() + ->limit(30) + ->searchable(), + + IconColumn::make('online') + ->label(__('filament::resources.columns.online')) + ->icon(fn (Model $record) => $record->online ? 'heroicon-o-check-circle' : 'heroicon-o-x-circle') + ->colors([ + 'danger' => false, + 'success' => true, + ]), + + TextColumn::make('account_created') + ->toggleable() + ->date('Y-m-d H:i') + ->label(__('filament::resources.columns.created_at')), + ]) + ->filters([ + // + ]) + ->recordActions([ + ViewAction::make(), + EditAction::make(), + ]) + ->toolbarActions([]); + } + + #[\Override] + public static function getRelations(): array + { + return [ + SettingsRelationManager::class, + BadgesRelationManager::class, + ChatLogRelationManager::class, + ChatLogPrivateRelationManager::class, + ]; + } + + public static function fillWithOutsideData(Model $record, array $formData): array + { + $formData['currency_0'] = $record->currency('duckets'); + $formData['currency_5'] = $record->currency('diamonds'); + $formData['currency_101'] = $record->currency('points'); + + if ($record->settings) { + $formData['allow_change_username'] = $record->settings->can_change_name; + } + + return $formData; + } + + public static function getPages(): array + { + return [ + 'index' => ListUsers::route('/'), + 'create' => CreateUser::route('/create'), + 'view' => ViewUser::route('/{record}'), + 'edit' => EditUser::route('/{record}/edit'), + ]; + } +} diff --git a/Updated_Cms/app/Filament/Tables/Columns/HabboBadgeColumn.php b/Updated_Cms/app/Filament/Tables/Columns/HabboBadgeColumn.php new file mode 100644 index 0000000000..15f15064a3 --- /dev/null +++ b/Updated_Cms/app/Filament/Tables/Columns/HabboBadgeColumn.php @@ -0,0 +1,33 @@ +getRecord(); + + if (! method_exists($record, 'getBadgePath')) { + return ''; + } + + return $record->getBadgePath(); + } + + public function getBadgeName(): string + { + $record = $this->getRecord(); + + if (! method_exists($record, 'getBadgeName')) { + return ''; + } + + return $record->getBadgeName(); + } +} diff --git a/Updated_Cms/app/Filament/Tables/Columns/UserAvatarColumn.php b/Updated_Cms/app/Filament/Tables/Columns/UserAvatarColumn.php new file mode 100644 index 0000000000..af8fdd731e --- /dev/null +++ b/Updated_Cms/app/Filament/Tables/Columns/UserAvatarColumn.php @@ -0,0 +1,47 @@ +getRecord(); + $figureImagerUrl = setting('avatar_imager'); + + if ($figureImagerUrl === '' || $figureImagerUrl === '0') { + return ''; + } + + $figure = $this->figurePointer + ? data_get($record, $this->figurePointer) + : $record->look; + + return "{$figureImagerUrl}{$figure}{$this->avatarOptions}"; + } + + public function options(string $avatarOptions): UserAvatarColumn + { + $this->avatarOptions = $avatarOptions; + + return $this; + } + + /** + * Used to reference the user's figure string through relationships in a Laravel model. By default it will take the look property of the main class. + */ + public function pointer(string $figurePointer): UserAvatarColumn + { + $this->figurePointer = $figurePointer; + + return $this; + } +} diff --git a/Updated_Cms/app/Filament/Traits/TranslatableResource.php b/Updated_Cms/app/Filament/Traits/TranslatableResource.php new file mode 100644 index 0000000000..8d6399702e --- /dev/null +++ b/Updated_Cms/app/Filament/Traits/TranslatableResource.php @@ -0,0 +1,39 @@ +between( + start: now()->startOfMonth(), + end: now()->endOfMonth(), + ) + ->perDay() + ->count(); + + $label = __('filament::resources.stats.articles_chart.label'); + + return [ + 'datasets' => [ + [ + 'label' => $label, + 'data' => $data->map(fn (TrendValue $value) => $value->aggregate), + ], + ], + 'labels' => $data->map(fn (TrendValue $value) => $value->date), + ]; + } + + protected function getType(): string + { + return 'line'; + } +} diff --git a/Updated_Cms/app/Filament/Widgets/TopDashboardOverview.php b/Updated_Cms/app/Filament/Widgets/TopDashboardOverview.php new file mode 100644 index 0000000000..d99588799e --- /dev/null +++ b/Updated_Cms/app/Filament/Widgets/TopDashboardOverview.php @@ -0,0 +1,54 @@ +getLocale())) + ->description(__('filament::resources.stats.users_count.description')) + ->chart([20, 20]) + ->descriptionIcon('heroicon-m-user-group', IconPosition::Before) + ->color('success'), + + Stat::make(__('filament::resources.stats.furniture_count.title'), Number::format(ItemDefinition::count(), '0', '1', app()->getLocale())) + ->description(__('filament::resources.stats.furniture_count.description')) + ->descriptionIcon('heroicon-m-cube', IconPosition::Before) + ->chart([20, 20]) + ->color('success'), + + Stat::make(__('filament::resources.stats.rooms_count.title'), Number::format(Room::count(), '0', '1', app()->getLocale())) + ->description(__('filament::resources.stats.rooms_count.description')) + ->descriptionIcon('heroicon-m-building-storefront', IconPosition::Before) + ->chart([20, 20]) + ->color('success'), + + Stat::make(__('filament::resources.stats.photos_count.title'), Number::format(CameraWeb::count(), '0', '1', app()->getLocale())) + ->description(__('filament::resources.stats.photos_count.description')) + ->descriptionIcon('heroicon-m-camera', IconPosition::Before) + ->chart([20, 20]) + ->color('success'), + + Stat::make(__('filament::resources.stats.badge_count.title'), Number::format(WebsiteBadge::count(), '0', '1', app()->getLocale())) + ->description(__('filament::resources.stats.badge_count.description')) + ->descriptionIcon('heroicon-m-gif', IconPosition::Before) + ->chart([20, 20]) + ->color('success'), + ]; + } +} diff --git a/Updated_Cms/app/Helpers/helper.php b/Updated_Cms/app/Helpers/helper.php new file mode 100644 index 0000000000..19eafa0662 --- /dev/null +++ b/Updated_Cms/app/Helpers/helper.php @@ -0,0 +1,76 @@ +getOrDefault($setting); + } +} + +if (! function_exists('hasPermission')) { + function hasPermission(string $permission): string + { + return app(PermissionsService::class)->getOrDefault($permission); + } +} + +if (! function_exists('hasHousekeepingPermission')) { + function hasHousekeepingPermission(string $permission): string + { + return app(HousekeepingPermissionsService::class)->getOrDefault($permission); + } +} + +if (! function_exists('strLimit')) { + function strLimit(string $string, int $limit, string $replacement = '...'): string + { + return Str::limit($string, $limit, $replacement); + } +} + +if (! function_exists('findMigration')) { + function findMigration(string $tableName): string + { + foreach (glob(database_path('migrations/*.php')) as $filename) { + $content = file_get_contents($filename); + if ($content !== false && str_contains($content, "Schema::create('$tableName'")) { + return basename($filename); + } + } + return ''; + } +} + +if (! function_exists('columnExists')) { + function columnExists(string $table, string $column): bool + { + return Schema::hasColumn($table, $column); + } +} + +if (! function_exists('dropForeignKeyIfExists')) { + function dropForeignKeyIfExists(string $table, string $column): void + { + $connection = Schema::getConnection(); + $tableWithPrefix = $connection->getTablePrefix() . $table; + + $foreignKeys = collect($connection->select('SELECT CONSTRAINT_NAME + FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE + WHERE TABLE_SCHEMA = DATABASE() + AND TABLE_NAME = ? + AND COLUMN_NAME = ?', [$tableWithPrefix, $column])) + ->pluck('CONSTRAINT_NAME'); + + foreach ($foreignKeys as $foreignKey) { + if (! empty($foreignKey)) { + $connection->statement("ALTER TABLE {$table} DROP FOREIGN KEY {$foreignKey}"); + } + } + } +} \ No newline at end of file diff --git a/Updated_Cms/app/Http/Controllers/Api/HotelApiController.php b/Updated_Cms/app/Http/Controllers/Api/HotelApiController.php new file mode 100644 index 0000000000..ef7b3efbdc --- /dev/null +++ b/Updated_Cms/app/Http/Controllers/Api/HotelApiController.php @@ -0,0 +1,29 @@ +userApiService->fetchUser($username, $columns)); + } + + public function onlineUsers($columns = ['username', 'motto', 'look'], bool $randomOrder = true): OnlineUsersResource + { + return new OnlineUsersResource($this->userApiService->onlineUsers($columns, $randomOrder)); + } + + public function onlineUserCount(): OnlineUserCountResource + { + return new OnlineUserCountResource($this->userApiService->onlineUserCount()); + } +} diff --git a/Updated_Cms/app/Http/Controllers/Articles/ArticleController.php b/Updated_Cms/app/Http/Controllers/Articles/ArticleController.php new file mode 100644 index 0000000000..00656d2d7c --- /dev/null +++ b/Updated_Cms/app/Http/Controllers/Articles/ArticleController.php @@ -0,0 +1,46 @@ +articlesService->getArticles(true); + + return view('community.articles', [ + 'articles' => $articles, + ]); + } + + public function show(WebsiteArticle $article): View + { + return view('community.article', [ + 'article' => $article, + 'otherArticles' => WebsiteArticle::whereNot('slug', $article->slug)->latest('id')->take(15)->get(), + 'myReactions' => Auth::check() ? $article->reactions->where('user_id', Auth::id())->pluck('reaction') : [], + 'articleReactions' => collect($article->reactions)->groupBy('reaction', true), + ]); + } + + public function toggleReaction(WebsiteArticle $article, Request $request): JsonResponse + { + $response = $this->reactionService->toggleReaction($article, Auth::user(), $request); + + return response()->json($response); + } +} diff --git a/Updated_Cms/app/Http/Controllers/Articles/WebsiteArticleCommentsController.php b/Updated_Cms/app/Http/Controllers/Articles/WebsiteArticleCommentsController.php new file mode 100644 index 0000000000..7971297ada --- /dev/null +++ b/Updated_Cms/app/Http/Controllers/Articles/WebsiteArticleCommentsController.php @@ -0,0 +1,29 @@ +commentService->store($request->get('comment'), $article); + + return back()->with('success', __('You comment has been posted!')); + } + + public function destroy(WebsiteArticleComment $comment): RedirectResponse + { + $this->commentService->destroy($comment); + + return back()->with('success', __('You comment has been deleted!')); + } +} diff --git a/Updated_Cms/app/Http/Controllers/Badge/BadgeController.php b/Updated_Cms/app/Http/Controllers/Badge/BadgeController.php new file mode 100644 index 0000000000..c6f8920a77 --- /dev/null +++ b/Updated_Cms/app/Http/Controllers/Badge/BadgeController.php @@ -0,0 +1,124 @@ +getOrDefault('drawbadge_currency_value', 150); + $currencyType = $settingsService->getOrDefault('drawbadge_currency_type', 'credits'); + $badgesPath = $settingsService->getOrDefault('badge_path_filesystem'); + + $folderError = false; + $errorMessage = ''; + + if ($badgesPath === '' || $badgesPath === '0') { + $folderError = true; + $errorMessage = 'Badges path not configured.'; + } elseif (! file_exists($badgesPath)) { + $folderError = true; + $errorMessage = 'Badges path not configured.'; + } elseif (! is_writable($badgesPath)) { + $folderError = true; + $errorMessage = 'Badges folder does not have write access.'; + } + + return view('draw-badge', ['cost' => $cost, 'currencyType' => $currencyType, 'folderError' => $folderError, 'errorMessage' => $errorMessage]); + } + + public function buy(Request $request, SendCurrency $sendCurrency, SettingsService $settingsService) + { + $user = Auth::user(); + $cost = (int) $settingsService->getOrDefault('drawbadge_currency_value', 150); + $currencyType = $settingsService->getOrDefault('drawbadge_currency_type', 'credits'); + + $currentAmount = match ($currencyType) { + 'credits' => $user->credits ?? 0, + 'duckets' => $user->currencies()->where('type', CurrencyTypes::Duckets)->value('amount') ?? 0, + 'diamonds' => $user->currencies()->where('type', CurrencyTypes::Diamonds)->value('amount') ?? 0, + 'points' => $user->currencies()->where('type', CurrencyTypes::Points)->value('amount') ?? 0, + default => 0, + }; + + if ($currentAmount < $cost) { + return response()->json(['success' => false, 'message' => 'Insufficient ' . $currencyType . '.'], 400); + } + + $result = $sendCurrency->execute($user, $currencyType, -$cost); + + if ($result === false) { + return response()->json(['success' => false, 'message' => 'Failed to deduct ' . $currencyType . '.'], 500); + } + + $badgeData = $request->input('badge_data'); + if (! $badgeData) { + return response()->json(['success' => false, 'message' => 'No badge data provided.'], 400); + } + + $badgeData = preg_replace('#^data:image/\w+;base64,#i', '', (string) $badgeData); + $decoded = base64_decode((string) $badgeData, true); + + if ($decoded === false) { + return response()->json(['success' => false, 'message' => 'Invalid base64 data.'], 400); + } + + $info = @getimagesizefromstring($decoded); + if ( + $info === false || + $info['mime'] !== 'image/gif' || + $info[0] !== self::BADGE_WIDTH || + $info[1] !== self::BADGE_HEIGHT + ) { + return response()->json(['success' => false, 'message' => 'Invalid GIF image or incorrect dimensions.'], 400); + } + + if (strlen($decoded) > self::MAX_BADGE_SIZE_BYTES) { + return response()->json(['success' => false, 'message' => 'Image file too large.'], 400); + } + + $image = @imagecreatefromstring($decoded); + if ($image === false) { + return response()->json(['success' => false, 'message' => 'Failed to process image.'], 400); + } + + $badgesPath = $settingsService->getOrDefault('badge_path_filesystem'); + if ($badgesPath === '' || $badgesPath === '0') { + return response()->json(['success' => false, 'message' => 'Badges path not configured.'], 500); + } + + $filename = $user->id . '_' . time() . '.gif'; + $fullPath = rtrim($badgesPath, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . $filename; + + if (! imagegif($image, $fullPath)) { + return response()->json(['success' => false, 'message' => 'Failed to save badge file.'], 500); + } + + $baseUrl = $settingsService->getOrDefault('badges_path', '/badges/'); + $badgeUrl = rtrim($baseUrl, '/') . '/' . $filename; + + WebsiteDrawBadge::create([ + 'user_id' => $user->id, + 'badge_path' => $fullPath, + 'badge_url' => $badgeUrl, + 'badge_name' => $request->input('badge_name'), + 'badge_desc' => $request->input('badge_description'), + ]); + + return response()->json(['success' => true, 'badge_path_filesystem' => $fullPath]); + } +} diff --git a/Updated_Cms/app/Http/Controllers/Client/FlashController.php b/Updated_Cms/app/Http/Controllers/Client/FlashController.php new file mode 100644 index 0000000000..da15c4e6b8 --- /dev/null +++ b/Updated_Cms/app/Http/Controllers/Client/FlashController.php @@ -0,0 +1,21 @@ +update([ + 'ip_current' => request()->ip(), + ]); + + return view('client.flash', [ + 'sso' => Auth::user()->ssoTicket(), + ]); + } +} diff --git a/Updated_Cms/app/Http/Controllers/Client/NitroController.php b/Updated_Cms/app/Http/Controllers/Client/NitroController.php new file mode 100644 index 0000000000..8734b01169 --- /dev/null +++ b/Updated_Cms/app/Http/Controllers/Client/NitroController.php @@ -0,0 +1,21 @@ +update([ + 'ip_current' => request()->ip(), + ]); + + return view('client.nitro', [ + 'sso' => Auth::user()->ssoTicket(), + ]); + } +} diff --git a/Updated_Cms/app/Http/Controllers/Community/LeaderboardController.php b/Updated_Cms/app/Http/Controllers/Community/LeaderboardController.php new file mode 100644 index 0000000000..6cbee37b15 --- /dev/null +++ b/Updated_Cms/app/Http/Controllers/Community/LeaderboardController.php @@ -0,0 +1,56 @@ +staffIds = $this->staffService->fetchEmployeeIds(); + } + + public function __invoke(): View + { + $topCredits = User::query() + ->whereNotIn('id', $this->staffIds) + ->orderByDesc('credits') + ->take(9) + ->get(); + + $getUserCurrency = fn ($type) => UserCurrency::query() + ->whereNotIn('user_id', $this->staffIds) + ->where('type', $type) + ->orderByDesc('amount') + ->take(9) + ->with('user:id,username,look') + ->get(); + + return view('leaderboard', [ + 'credits' => $topCredits, + 'duckets' => $getUserCurrency(0), + 'diamonds' => $getUserCurrency(5), + 'mostOnline' => $this->retrieveSettings('online_time'), + 'respectsReceived' => $this->retrieveSettings('respects_received'), + 'achievementScores' => $this->retrieveSettings('achievement_score'), + ]); + } + + private function retrieveSettings($column) + { + return UserSetting::select('user_id', $column) + ->whereNotIn('user_id', $this->staffIds) + ->orderByDesc($column) + ->take(9) + ->with('user:id,username,look') + ->get(); + } +} diff --git a/Updated_Cms/app/Http/Controllers/Community/PhotosController.php b/Updated_Cms/app/Http/Controllers/Community/PhotosController.php new file mode 100644 index 0000000000..a822ce4b13 --- /dev/null +++ b/Updated_Cms/app/Http/Controllers/Community/PhotosController.php @@ -0,0 +1,19 @@ + $this->cameraService->fetchPhotos(true), + ]); + } +} diff --git a/Updated_Cms/app/Http/Controllers/Community/RoomController.php b/Updated_Cms/app/Http/Controllers/Community/RoomController.php new file mode 100644 index 0000000000..f9b10555b9 --- /dev/null +++ b/Updated_Cms/app/Http/Controllers/Community/RoomController.php @@ -0,0 +1,17 @@ + $room->load('owner:id,username,look'), + ]); + } +} diff --git a/Updated_Cms/app/Http/Controllers/Community/Staff/StaffApplicationsController.php b/Updated_Cms/app/Http/Controllers/Community/Staff/StaffApplicationsController.php new file mode 100644 index 0000000000..b0df3752ab --- /dev/null +++ b/Updated_Cms/app/Http/Controllers/Community/Staff/StaffApplicationsController.php @@ -0,0 +1,47 @@ + $this->staffApplicationService->fetchOpenPositions(), + ]); + } + + public function show(WebsiteOpenPosition $position) + { + return view('community.staff-applications-apply', [ + 'position' => $position->load('permission'), + ]); + } + + public function store(WebsiteOpenPosition $position, StaffApplicationFormRequest $request): RedirectResponse + { + if ($this->staffApplicationService->hasUserAppliedForPosition($request->user(), $position->permission->id)) { + return back()->withErrors([ + 'message' => __('You have already applied for this position.'), + ]); + } + + if (! $this->staffApplicationService->isPositionOpenForApplication($position)) { + return back()->withErrors([ + 'message' => __('You cannot apply for this position.'), + ]); + } + + $this->staffApplicationService->storeApplication($request->user(), $position->permission->id, $request->input('content')); + + return to_route('staff-applications.index')->with('success', __('Your application has been submitted!')); + } +} diff --git a/Updated_Cms/app/Http/Controllers/Community/Staff/StaffController.php b/Updated_Cms/app/Http/Controllers/Community/Staff/StaffController.php new file mode 100644 index 0000000000..9baf1226a9 --- /dev/null +++ b/Updated_Cms/app/Http/Controllers/Community/Staff/StaffController.php @@ -0,0 +1,21 @@ +staffService->fetchStaffPositions(); + + return view('community.staff', [ + 'employees' => $employees, + ]); + } +} diff --git a/Updated_Cms/app/Http/Controllers/Community/Staff/WebsiteTeamsController.php b/Updated_Cms/app/Http/Controllers/Community/Staff/WebsiteTeamsController.php new file mode 100644 index 0000000000..be45eb1664 --- /dev/null +++ b/Updated_Cms/app/Http/Controllers/Community/Staff/WebsiteTeamsController.php @@ -0,0 +1,21 @@ +teamService->fetchTeams(); + + return view('community.teams', [ + 'employees' => $employees, + ]); + } +} diff --git a/Updated_Cms/app/Http/Controllers/Community/WebsiteRareValuesController.php b/Updated_Cms/app/Http/Controllers/Community/WebsiteRareValuesController.php new file mode 100644 index 0000000000..1ab1cc2a2c --- /dev/null +++ b/Updated_Cms/app/Http/Controllers/Community/WebsiteRareValuesController.php @@ -0,0 +1,81 @@ + $this->valueCategoriesService->fetchCategoriesByPriority(), + 'categoriesNav' => $this->valueCategoriesService->fetchAllCategories(), + ]); + } + + public function category(int $id): View|RedirectResponse + { + $category = $this->valueCategoriesService->fetchCategoryById($id); + + if (! $category instanceof \App\Models\Community\RareValue\WebsiteRareValueCategory) { + return back()->withErrors([ + 'message' => __('The entered category does not exist'), + ]); + } + + return view('rare-values', [ + 'categories' => $category, + 'categoriesNav' => $this->valueCategoriesService->fetchAllCategories(), + ]); + } + + public function search(RareSearchFormRequest $request): View|RedirectResponse + { + $searchTerm = $request->input('search'); + + $categories = $this->valueCategoriesService->searchCategories($searchTerm); + + if ($categories->isEmpty()) { + return back()->withErrors([ + 'message' => __('It seems like there were no rares matching your search input'), + ]); + } + + return view('rare-values', [ + 'categories' => $categories, + 'categoriesNav' => WebsiteRareValueCategory::has('furniture')->get(), + ]); + } + + public function value(WebsiteRareValue $value): View + { + $items = Item::with(['user:id,username,look']) + ->where('item_id', $value->item_id) + ->get(); + + $itemsPerUser = $items->groupBy('user_id')->map(fn ($group) => [ + 'user' => $group->first()->user, + 'item_count' => $group->count(), + ]); + + if ((bool) setting('enable_caching')) { + Cache::remember('allItems_' . $value->id, setting('cache_timer'), fn () => $items); + } + + return view('value', [ + 'value' => $value, + 'items' => $itemsPerUser, + ]); + } +} diff --git a/Updated_Cms/app/Http/Controllers/Controller.php b/Updated_Cms/app/Http/Controllers/Controller.php new file mode 100644 index 0000000000..77ec359ab4 --- /dev/null +++ b/Updated_Cms/app/Http/Controllers/Controller.php @@ -0,0 +1,12 @@ + WebsiteHelpCenterCategory::orderBy('position')->get(), + ]); + } +} diff --git a/Updated_Cms/app/Http/Controllers/Help/TicketController.php b/Updated_Cms/app/Http/Controllers/Help/TicketController.php new file mode 100644 index 0000000000..8ce4e54152 --- /dev/null +++ b/Updated_Cms/app/Http/Controllers/Help/TicketController.php @@ -0,0 +1,120 @@ +with([ + 'message' => __('You cannot access this page'), + ]); + } + + return view('help-center.tickets.index', [ + 'tickets' => WebsiteHelpCenterTicket::orderBy('open')->with('user:id,username')->paginate(15), + ]); + } + + public function create() + { + return view('help-center.tickets.create', [ + 'categories' => WebsiteHelpCenterCategory::get(), + 'openTickets' => WebsiteHelpCenterTicket::where('open', true)->where('user_id', Auth::id())->get(), + ]); + } + + public function store(WebsiteTicketFormRequest $request) + { + Auth::user()->tickets()->create($request->validated()); + + return back()->with('success', __('Ticket submitted!')); + } + + public function edit(WebsiteHelpCenterTicket $ticket) + { + if (! $ticket->canManageTicket()) { + return back()->with([ + 'message' => __('You cannot manage others tickets.'), + ]); + } + + $ticket->load([ + 'user:id,username,look', + 'category', + 'replies.user:id,username,look', + ]); + + return view('help-center.tickets.edit', [ + 'ticket' => $ticket, + 'categories' => WebsiteHelpCenterCategory::get(), + 'openTickets' => WebsiteHelpCenterTicket::where('open', true)->where('id', '!=', $ticket->id)->where('user_id', Auth::id())->get(), + ]); + } + + public function update(WebsiteHelpCenterTicket $ticket, WebsiteTicketFormRequest $request) + { + if (! $ticket->canManageTicket()) { + return back()->with([ + 'message' => __('You cannot manage others tickets.'), + ]); + } + + $ticket->update($request->validated()); + + return to_route('help-center.ticket.show', $ticket)->with('success', __('Ticket updated!')); + } + + public function show(WebsiteHelpCenterTicket $ticket) + { + if (! $ticket->canManageTicket()) { + return back()->with([ + 'message' => __('You cannot view others tickets.'), + ]); + } + + $ticket->load([ + 'user:id,username,look', + 'category', + 'replies.user:id,username,look', + ]); + + return view('help-center.tickets.show', [ + 'ticket' => $ticket, + 'openTickets' => WebsiteHelpCenterTicket::where('open', true)->where('id', '!=', $ticket->id)->where('user_id', Auth::id())->get(), + ]); + } + + public function destroy(WebsiteHelpCenterTicket $ticket) + { + if (! $ticket->canDeleteTicket()) { + return back()->with([ + 'message' => __('You cannot delete others tickets.'), + ]); + } + + $ticket->delete(); + + return to_route('me.show')->with('success', __('The ticket has been deleted!')); + } + + public function toggleTicketStatus(WebsiteHelpCenterTicket $ticket) + { + if (! $ticket->canManageTicket()) { + return back()->with([ + 'message' => __('You manage others tickets.'), + ]); + } + + $ticket->open ? $ticket->update(['open' => false]) : $ticket->update(['open' => true]); + + return back()->with('success', __('The ticket status has been changed!')); + } +} diff --git a/Updated_Cms/app/Http/Controllers/Help/TicketReplyController.php b/Updated_Cms/app/Http/Controllers/Help/TicketReplyController.php new file mode 100644 index 0000000000..ffcfab4b39 --- /dev/null +++ b/Updated_Cms/app/Http/Controllers/Help/TicketReplyController.php @@ -0,0 +1,47 @@ +isOpen()) { + return back()->with([ + 'message' => __('You cannot reply to the ticket as it has been closed.'), + ]); + } + + if (! $ticket->canManageTicket()) { + return back()->with([ + 'message' => __('You cannot reply to others tickets.'), + ]); + } + + $data = $request->validated(); + $ticket->replies()->create([ + 'user_id' => $request->user()->id, + 'content' => $data['content'], + ]); + + return back()->with('success', __('The reply has been submitted!')); + } + + public function destroy(WebsiteHelpCenterTicketReply $reply) + { + if (! $reply->canDeleteReply()) { + return back()->with([ + 'message' => __('You do not have permission to delete this reply.'), + ]); + } + + $reply->delete(); + + return back()->with('success', __('The reply has been deleted!')); + } +} diff --git a/Updated_Cms/app/Http/Controllers/Help/WebsiteRulesController.php b/Updated_Cms/app/Http/Controllers/Help/WebsiteRulesController.php new file mode 100644 index 0000000000..ca5ce1f1a6 --- /dev/null +++ b/Updated_Cms/app/Http/Controllers/Help/WebsiteRulesController.php @@ -0,0 +1,17 @@ + WebsiteRuleCategory::with('rules')->get(), + ]); + } +} diff --git a/Updated_Cms/app/Http/Controllers/Miscellaneous/HomeController.php b/Updated_Cms/app/Http/Controllers/Miscellaneous/HomeController.php new file mode 100644 index 0000000000..ec22a340ad --- /dev/null +++ b/Updated_Cms/app/Http/Controllers/Miscellaneous/HomeController.php @@ -0,0 +1,27 @@ + WebsiteArticle::latest('id') + ->take(4) + ->has('user') + ->with('user:id,username,look') + ->get(), + 'photos' => CameraWeb::latest('id') + ->take(4) + ->where('visible', true) + ->with('user:id,username,look') + ->get(), + ]); + } +} diff --git a/Updated_Cms/app/Http/Controllers/Miscellaneous/InstallationController.php b/Updated_Cms/app/Http/Controllers/Miscellaneous/InstallationController.php new file mode 100644 index 0000000000..805be24630 --- /dev/null +++ b/Updated_Cms/app/Http/Controllers/Miscellaneous/InstallationController.php @@ -0,0 +1,119 @@ +validate([ + 'installation_key' => ['required', 'string', 'max:255', new ValidateInstallationKeyRule], + ]); + + WebsiteInstallation::first()->update([ + 'step' => 1, + 'user_ip' => $request->ip(), + ]); + + return to_route('installation.show-step', 1); + } + + public function showStep($currentStep) + { + $settings = $this->getSettingsForStep((int) $currentStep); + + return view('installation.step-' . $currentStep, [ + 'settings' => $settings, + ]); + } + + public function saveStepSettings(Request $request) + { + $this->updateSettings($request); + + WebsiteInstallation::increment('step'); + + return to_route('installation.show-step', WebsiteInstallation::first()->step); + } + + public function previousStep() + { + WebsiteInstallation::decrement('step'); + + return to_route('installation.show-step', WebsiteInstallation::first()->step); + } + + public function restartInstallation() + { + WebsiteInstallation::first()->update([ + 'step' => 0, + 'installation_key' => Str::uuid(), + 'user_ip' => null, + ]); + + WebsiteSetting::where('key', 'theme')->update([ + 'value' => 'atom', + ]); + + return to_route('installation.index'); + } + + public function completeInstallation() + { + WebsiteInstallation::latest()->first()->update([ + 'completed' => true, + ]); + + if (Cache::has('website_permissions')) { + Cache::forget('website_permissions'); + } + + if (Cache::has('website_settings')) { + Cache::forget('website_settings'); + } + + return to_route('welcome'); + } + + private function updateSettings(Request $request) + { + foreach ($request->except('_token') as $key => $value) { + WebsiteSetting::where('key', '=', $key)->update([ + 'value' => $value ?? '', + ]); + } + } + + private function getSettingsForStep(int $step) + { + $settingsData = array_chunk(WebsiteSetting::all()->pluck('key')->toArray(), ceil(WebsiteSetting::count() / 4)); + + $settings = match ($step) { + 1 => $settingsData[0] ?? [], + 2 => $settingsData[1] ?? [], + 3 => $settingsData[2] ?? [], + 4 => $settingsData[3] ?? [], + 5 => [], // Completion step has no settings + default => throw new Exception('Step does not exist'), + }; + + return WebsiteSetting::query() + ->whereIn('key', $settings) + ->select(['key', 'value', 'comment']) + ->get(); + } +} diff --git a/Updated_Cms/app/Http/Controllers/Miscellaneous/LocaleController.php b/Updated_Cms/app/Http/Controllers/Miscellaneous/LocaleController.php new file mode 100644 index 0000000000..9cc627594b --- /dev/null +++ b/Updated_Cms/app/Http/Controllers/Miscellaneous/LocaleController.php @@ -0,0 +1,24 @@ +exists()) { + return back()->withErrors(['message' => __('The language selected is not supported')]); + } + + App::setLocale($locale); + Session::put('locale', $locale); + + return back(); + } +} diff --git a/Updated_Cms/app/Http/Controllers/Miscellaneous/LogoGeneratorController.php b/Updated_Cms/app/Http/Controllers/Miscellaneous/LogoGeneratorController.php new file mode 100644 index 0000000000..c6e0cc3151 --- /dev/null +++ b/Updated_Cms/app/Http/Controllers/Miscellaneous/LogoGeneratorController.php @@ -0,0 +1,40 @@ +with([ + 'message' => __('You do not have permission to do this.'), + ]); + } + + return view('logo-generator'); + } + + public function store(Request $request) + { + $request->validate(['logo' => ['required', 'image']]); + $file = $request->file('logo'); + $filename = $file->getClientOriginalName(); + $path = '/assets/images/generated-logos'; + + $file->move(public_path($path), $filename); + + $setting = WebsiteSetting::where('key', 'cms_logo')->first(); + + $setting->update([ + 'value' => sprintf('%s/%s', $path, $filename), + ]); + + return response()->json(['success' => true, 'message' => 'Logo updated!']); + + } +} diff --git a/Updated_Cms/app/Http/Controllers/Miscellaneous/MaintenanceController.php b/Updated_Cms/app/Http/Controllers/Miscellaneous/MaintenanceController.php new file mode 100644 index 0000000000..a725765ade --- /dev/null +++ b/Updated_Cms/app/Http/Controllers/Miscellaneous/MaintenanceController.php @@ -0,0 +1,17 @@ + WebsiteMaintenanceTask::with('user:id,username,look')->simplePaginate(5), + ]); + } +} diff --git a/Updated_Cms/app/Http/Controllers/Shop/PaypalController.php b/Updated_Cms/app/Http/Controllers/Shop/PaypalController.php new file mode 100644 index 0000000000..85ab50ae07 --- /dev/null +++ b/Updated_Cms/app/Http/Controllers/Shop/PaypalController.php @@ -0,0 +1,145 @@ +provider = new PayPalClient; + $this->provider->setApiCredentials(config('habbo.paypal')); + $this->provider->getAccessToken(); + } + + public function process(AccountTopupFormRequest $request): Response|RedirectResponse + { + $amount = $request->integer('amount'); + $orderData = [ + 'intent' => 'CAPTURE', + 'application_context' => [ + 'return_url' => route('paypal.successful-transaction'), + 'cancel_url' => route('paypal.cancelled-transaction'), + 'brand_name' => setting('hotel_name'), + 'landing_page' => 'BILLING', + 'shipping_preference' => 'NO_SHIPPING', + 'user_action' => 'CONTINUE', + ], + 'purchase_units' => [ + 0 => [ + 'amount' => [ + 'currency_code' => config('habbo.paypal.currency'), + 'value' => (string) $amount, + ], + ], + ], + ]; + + $response = $this->provider->createOrder($orderData); + + if (isset($response['id']) === false) { + Log::error('Error creating order', ['response' => $response]); + + return to_route('shop.index')->withErrors( + ['message' => $response['message'] ?? __('Something went wrong')], + ); + } + + foreach ($response['links'] as $links) { + if ($links['rel'] === 'approve') { + $request->user()->transactions()->create([ + 'transaction_id' => $response['id'], + 'amount' => 0, + ]); + + return redirect()->away($links['href']); + } + } + + return to_route('shop.index')->withErrors( + ['message' => $response['message'] ?? __('Something went wrong')], + ); + } + + public function successful(Request $request): Response + { + $request->validate([ + 'token' => ['required'], + ]); + + $user = $request->user(); + + $transaction = $user->transactions()->where('transaction_id', $request['token'])->first(); + if ($transaction === null) { + return to_route('shop.index')->withErrors(['message' => __('Something went wrong, please try again later')]); + } + + $response = $this->provider->capturePaymentOrder($request['token']); + $paymentDetails = $response['purchase_units'][0]['payments']['captures'][0]; + + if (! isset($response['status'], $paymentDetails)) { + Log::error('Invalid response from PayPal', ['response' => $response]); + + return to_route('shop.index')->withErrors(['message' => __('Something went wrong, please try again later')]); + } + + if (($response['status'] ?? null) === null) { + $details = $response['error']['details'][0]; + $transaction->update([ + 'status' => $response['name'], + 'description' => sprintf('%s - %s', $details['issue'], $details['description']), + 'amount' => 0, + ]); + + return to_route('shop.index')->withErrors(['message' => __('Something went wrong, please check your paypal account to make sure nothing was deducted and try again')]); + } + + $paymentDetails = $response['purchase_units'][0]['payments']['captures'][0]; + + $transaction->update([ + 'status' => $paymentDetails['status'], + 'amount' => $paymentDetails['amount']['value'], + 'currency' => $paymentDetails['amount']['currency_code'], + ]); + + if ($response['status'] !== self::STATUS_COMPLETED) { + return to_route('shop.index')->withErrors( + ['message' => $response['message'] ?? __('Something went wrong')], + ); + } + + $user->increment('website_balance', $paymentDetails['amount']['value']); + + return to_route('shop.index')->with('success', __('Transaction successful')); + } + + public function cancelled(Request $request): Response + { + $request->validate([ + 'token' => ['required'], + ]); + + $transaction = $request->user()->transactions()->where('transaction_id', $request['token'])->first(); + if ($transaction !== null) { + $transaction->update([ + 'status' => self::STATUS_CANCELLED, + 'description' => 'The user cancelled the transaction', + ]); + } + + return to_route('shop.index')->withErrors( + ['message' => __('You have canceled the transaction')], + ); + } +} diff --git a/Updated_Cms/app/Http/Controllers/Shop/ShopController.php b/Updated_Cms/app/Http/Controllers/Shop/ShopController.php new file mode 100644 index 0000000000..9d0c518ec5 --- /dev/null +++ b/Updated_Cms/app/Http/Controllers/Shop/ShopController.php @@ -0,0 +1,142 @@ +exists) { + $packages = $category->articles()->orderBy('position'); + } + + return view('shop.shop', [ + 'articles' => $packages->with(['rank:id,rank_name', 'features'])->get(), + 'categories' => WebsiteShopCategory::whereHas('articles')->get(), + ]); + } + + private function giveBadges(User $user, string $badges) + { + $badgeList = explode(';', $badges); + $ownedBadges = $user->badges()->pluck('badge_code')->toArray(); + + foreach ($badgeList as $badge) { + if (in_array($badge, $ownedBadges)) { + continue; + } + + if ($this->rconService->isConnected) { + $this->rconService->giveBadge($user, $badge); + + continue; + } + + $user->badges()->updateOrCreate([ + 'user_id' => $user->id, + 'badge_code' => $badge, + ]); + } + } + + public function purchase(WebsiteShopArticle $package, Request $request, SendCurrency $sendCurrency): Response + { + $user = Auth::user(); + + if ($request->has('receiver')) { + if (! $package->is_giftable) { + return to_route('shop.index')->withErrors( + ['message' => __('This package is not giftable')], + ); + } + + $user = User::where('username', $request->input('receiver'))->first(); + + if (! $user) { + return to_route('shop.index')->withErrors( + ['message' => __('Recipient not found')], + ); + } + + } + + if ($package->give_rank && $user->rank >= $package->give_rank) { + $message = __('You are already this or a higher rank'); + + if ($user->username !== Auth::user()->username) { + $message = __('The recipient is already this or a higher rank'); + } + + return to_route('shop.index')->withErrors( + ['message' => $message], + ); + } + + if (! $this->rconService->isConnected && $user->online === '1') { + return to_route('shop.index')->withErrors( + ['message' => __('Please logout before purchasing a package')], + ); + } + + if (Auth::user()->website_balance < $package->price()) { + return to_route('shop.index')->withErrors( + ['message' => __('You need to top-up your account with another $:amount to purchase this package', ['amount' => ($package->price() - Auth::user()->website_balance)])], + ); + } + + Auth::user()?->decrement('website_balance', $package->price()); + + $sendCurrency->execute($user, 'credits', $package->credits); + $sendCurrency->execute($user, 'duckets', $package->duckets); + $sendCurrency->execute($user, 'diamonds', $package->diamonds); + + if ($package->give_rank) { + if ($this->rconService->isConnected) { + $this->rconService->setRank($user, $package->give_rank); + $this->rconService->disconnectUser($user); + } else { + $user->update([ + 'rank' => $package->give_rank, + ]); + } + } + + if ($package->badges) { + $this->giveBadges($user, $package->badges); + } + + if ($package->furniture) { + $this->handleFurniture(json_decode($package->furniture, true)); + } + + $message = __('You have successfully purchased the package :name', ['name' => $package->name]); + + if ($user->username !== Auth::user()->username) { + $message = __('You have successfully purchased the package :name for :username', ['name' => $package->name, 'username' => $user->username]); + } + + return to_route('shop.index')->with('success', $message); + } + + public function handleFurniture(array $furniture) + { + $sendFurniture = app(SendFurniture::class); + + $sendFurniture->execute(Auth::user(), $furniture); + } +} diff --git a/Updated_Cms/app/Http/Controllers/Shop/ShopVoucherController.php b/Updated_Cms/app/Http/Controllers/Shop/ShopVoucherController.php new file mode 100644 index 0000000000..d5a9f17043 --- /dev/null +++ b/Updated_Cms/app/Http/Controllers/Shop/ShopVoucherController.php @@ -0,0 +1,44 @@ +user(); + $voucher = WebsiteShopVoucher::where('code', $request->string('code'))->first(); + + if (is_null($voucher) || ($voucher->expires_at && $voucher->expires_at->lte(now()))) { + return back()->withErrors([ + 'message' => __('No active voucher with the given code was found'), + ]); + } + + if ($user->usedShopVouchers()->where('voucher_id', $voucher->id)->exists()) { + return back()->withErrors([ + 'message' => __('You can only use each shop voucher once'), + ]); + } + + $user->usedShopVouchers()->create([ + 'voucher_id' => $voucher->id, + ]); + + $user->increment('website_balance', $voucher->amount); + + $voucher->increment('use_count'); + + if ($voucher->max_uses && $voucher->use_count >= $voucher->max_uses) { + $voucher->update([ + 'expires_at' => now(), + ]); + } + + return back()->with('success', __('Your balance has been increased by $:amount', ['amount' => $voucher->amount])); + } +} diff --git a/Updated_Cms/app/Http/Controllers/User/AccountSettingsController.php b/Updated_Cms/app/Http/Controllers/User/AccountSettingsController.php new file mode 100644 index 0000000000..05a035fc1b --- /dev/null +++ b/Updated_Cms/app/Http/Controllers/User/AccountSettingsController.php @@ -0,0 +1,69 @@ + Auth::user()->load('settings:allow_name_change'), + ]); + } + + public function sessionLogs(Request $request): View + { + $sessions = $this->sessionService->fetchSessionLogs($request); + + return view('user.settings.session-logs', [ + 'logs' => $sessions, + ]); + } + + public function update(AccountSettingsFormRequest $request): RedirectResponse + { + $user = Auth::user(); + + if ($user === null) { + return back()->withErrors('User not found'); + } + + // $allowedNameChange = $user->settings?->allow_name_change && $user->username !== $request->input('username'); + + if (! $this->rconService->isConnected() && Auth::user()->online === '1') { + return back()->withErrors('You must be offline to change your account settings'); + } + + /** if ($allowedNameChange) { + $this->rconService->disconnectUser($user); + $this->userService->updateField($user, 'username', $request->input('username')); + } **/ + if ($user->mail !== $request->input('mail')) { + $this->userService->updateField($user, 'mail', $request->input('mail')); + } + + if ($user->motto !== $request->input('motto')) { + $this->rconService->setMotto($user, $request->input('motto')); + $this->userService->updateField($user, 'motto', $request->input('motto')); + } + + return to_route('settings.account.show')->with('success', __('Your account settings has been updated')); + } + + public function twoFactor(): View + { + return view('user.settings.two-factor'); + } +} diff --git a/Updated_Cms/app/Http/Controllers/User/BannedController.php b/Updated_Cms/app/Http/Controllers/User/BannedController.php new file mode 100644 index 0000000000..cbafb8a31b --- /dev/null +++ b/Updated_Cms/app/Http/Controllers/User/BannedController.php @@ -0,0 +1,23 @@ +ip()) + ->where('ban_expire', '>', time()) + ->orderByDesc('id') + ->first(); + + return view('banned', [ + 'ban' => $ipBan ?? Auth::user()->ban, + ]); + } +} diff --git a/Updated_Cms/app/Http/Controllers/User/ForgotPasswordController.php b/Updated_Cms/app/Http/Controllers/User/ForgotPasswordController.php new file mode 100644 index 0000000000..098f900eb3 --- /dev/null +++ b/Updated_Cms/app/Http/Controllers/User/ForgotPasswordController.php @@ -0,0 +1,78 @@ +validate([ + 'mail' => ['required', 'email'], + ]); + + // Do not tell the user that this email does not exist to prevent possible attacks + if (User::where('mail', $request->mail)->exists()) { + $token = Str::uuid(); + PasswordResetToken::create([ + 'email' => $request->mail, + 'token' => $token, + ]); + + Mail::send('email.forgetPassword', ['token' => $token], function ($message) use ($request): void { + $message->to($request->mail); + $message->subject('Reset Password'); + }); + } + + return back()->with('success', __('We have e-mailed your password reset link!')); + } + + public function showResetPassword(Request $request, string $token) + { + $prt = PasswordResetToken::select('token', 'created_at')->where('token', $token)->first(); + if ($prt === null) { + return to_route('forgot.password.get')->withErrors('message', __('This token has expired!')); + } + $tokenExpiration = \Illuminate\Support\Facades\Date::now()->subMinutes(config('habbo.password_reset_token_time')); + if ($prt->created_at->gte($tokenExpiration)) { // gte = greater than or equals + $prt->delete(); + + return to_route('forgot.password.get')->withErrors('message', __('This token has expired!')); + } + + return view('auth.passwords.reset', [ + 'token' => $token, + ]); + } + + public function submitResetPassword(Request $request, string $token) + { + $request->validate([ + 'password' => ['required', 'min:8', 'confirmed'], + 'password_confirmation' => ['required'], + ]); + + $prt = PasswordResetToken::select('email', 'token')->where('token', $token)->first(); + if ($prt === null) { + return to_route('forgot.password.get')->withErrors('message', __('This token has expired!')); + } + + $prt->user->changePassword($request->password); + $prt->delete(); + + return to_route('login')->with('success', __('Your password has been successfully reset!')); + } +} diff --git a/Updated_Cms/app/Http/Controllers/User/GuestbookController.php b/Updated_Cms/app/Http/Controllers/User/GuestbookController.php new file mode 100644 index 0000000000..0ba51d27a2 --- /dev/null +++ b/Updated_Cms/app/Http/Controllers/User/GuestbookController.php @@ -0,0 +1,54 @@ +validateGuestbookPost($user, $request); + + $user->profileGuestbook()->create([ + 'user_id' => Auth::id(), + 'message' => $request->input('message'), + ]); + + return back()->with('success', __('Your message has been posted.')); + } + + public function destroy(User $user, WebsiteUserGuestbook $guestbook) + { + if ($guestbook->user_id !== Auth::id() && $guestbook->profile_id !== $user->id && Auth::user()->rank < (int) setting('min_staff_rank')) { + return back()->withErrors([ + 'message' => __('Do do not have permission to delete this message'), + ]); + } + + $guestbook->delete(); + + return back()->with('success', __('Your message has been deleted.')); + } + + private function validateGuestbookPost(User $user, GuestbookFormRequest $request) + { + if ($user->id === $request->user()->id) { + return $this->redirectWithError(__('You cannot post a message on your own profile.')); + } + + $maxAllowedPostCount = in_array(setting('max_guestbook_posts_per_profile'), ['', '0'], true) ? 3 : (int) setting('max_guestbook_posts_per_profile'); + if ($user->profileGuestbook()->where('user_id', $request->user()->id)->count() >= $maxAllowedPostCount) { + return $this->redirectWithError(__('You have already posted :count messages on this profile.', ['count' => $maxAllowedPostCount])); + } + } + + private function redirectWithError($message) + { + return back()->withErrors(['message' => $message]); + } +} diff --git a/Updated_Cms/app/Http/Controllers/User/MeController.php b/Updated_Cms/app/Http/Controllers/User/MeController.php new file mode 100644 index 0000000000..d2a2bd9522 --- /dev/null +++ b/Updated_Cms/app/Http/Controllers/User/MeController.php @@ -0,0 +1,21 @@ + Auth::user()?->getOnlineFriends(), + 'user' => Auth::user()?->load('permission:id,rank_name'), + 'articles' => WebsiteArticle::whereHas('user')->with('user:id,username,look')->latest()->take(5)->get(), + ]); + } +} diff --git a/Updated_Cms/app/Http/Controllers/User/PasswordSettingsController.php b/Updated_Cms/app/Http/Controllers/User/PasswordSettingsController.php new file mode 100644 index 0000000000..959f71f9b7 --- /dev/null +++ b/Updated_Cms/app/Http/Controllers/User/PasswordSettingsController.php @@ -0,0 +1,27 @@ +update([ + 'password' => Hash::make($request->input('password')), + ]); + + return to_route('settings.password.show')->with('success', __('Your password has been changed!')); + } +} diff --git a/Updated_Cms/app/Http/Controllers/User/ProfileController.php b/Updated_Cms/app/Http/Controllers/User/ProfileController.php new file mode 100644 index 0000000000..eb96489f5b --- /dev/null +++ b/Updated_Cms/app/Http/Controllers/User/ProfileController.php @@ -0,0 +1,65 @@ +loadUserRelations($user); + + $friends = $this->getUserFriends($user->id); + $groups = $this->getUserGroups($user->id); + + return view('user.profile', [ + 'user' => $user, + 'friends' => $friends, + 'groups' => $groups, + 'guestbook' => $user->profileGuestbook()->with('user')->latest()->limit(5)->get(), + 'photos' => $user->photos()->limit(3)->get(), + ]); + } + + private function loadUserRelations(User $user): User + { + return $user->load([ + 'badges' => function ($badges): void { + $badges->where('slot_id', '>', '0') + ->orderBy('slot_id') + ->take(5); + }, + 'rooms' => function ($rooms): void { + $rooms->select('id', 'owner_id', 'name', 'users') + ->orderByDesc('users') + ->orderBy('id'); + }, + ]); + } + + private function getUserFriends(int $userId) + { + return MessengerFriendship::select('user_two_id') + ->where('user_one_id', '=', $userId) + ->whereHas('user') + ->with('user:id,username,look') + ->inRandomOrder() + ->take(12) + ->get(); + } + + private function getUserGroups(int $userId) + { + return GuildMember::query() + ->select(['guilds_members.id', 'guilds_members.guild_id', 'guilds_members.user_id', 'guilds.name', 'guilds.badge']) + ->where('guilds_members.user_id', '=', $userId) + ->join('guilds', 'guilds_members.guild_id', '=', 'guilds.id') + ->inRandomOrder() + ->take(6) + ->get(); + } +} diff --git a/Updated_Cms/app/Http/Controllers/User/ReferralController.php b/Updated_Cms/app/Http/Controllers/User/ReferralController.php new file mode 100644 index 0000000000..bb6d7ae7fd --- /dev/null +++ b/Updated_Cms/app/Http/Controllers/User/ReferralController.php @@ -0,0 +1,33 @@ +referrals || $user->referrals->referrals_total < setting('referrals_needed')) { + return back()->withErrors([ + 'message' => __('You do not have enough referrals to claim your reward'), + ]); + } + + // Decrease the total amount of referrals with the amount needed to claim reward + $user->referrals->decrement('referrals_total', setting('referrals_needed')); + + $rcon->giveDiamonds($user, setting('referral_reward_amount')); + + // Log the claim + $user->claimedReferralLog()->create([ + 'ip_address' => request()->ip(), + ]); + + return back()->with('success', __('Woah! You have successfully claimed your reward - Keep up the good work!')); + } +} diff --git a/Updated_Cms/app/Http/Controllers/User/TwoFactorAuthenticationController.php b/Updated_Cms/app/Http/Controllers/User/TwoFactorAuthenticationController.php new file mode 100644 index 0000000000..05c571e3cf --- /dev/null +++ b/Updated_Cms/app/Http/Controllers/User/TwoFactorAuthenticationController.php @@ -0,0 +1,42 @@ +user()); + + return to_route('settings.two-factor')->with('success', __('Two-factor authentication has been enabled. Please scan the QR code to continue.')); + } + + public function verify(Request $request): RedirectResponse + { + $confirmed = $request->user()->confirmTwoFactorAuthentication($request->input('code')); + if (! $confirmed) { + return back()->withErrors('Invalid Two Factor Authentication code'); + } + + return to_route('settings.two-factor')->with('success', __('Two-factor authentication has been confirmed.')); + } + + public function destroy(Request $request, DisableTwoFactorAuthentication $disable): RedirectResponse + { + $disable($request->user()); + + return to_route('settings.two-factor')->with('success', __('Two-factor authentication has been disabled.')); + } +} diff --git a/Updated_Cms/app/Http/Controllers/User/UserReferralController.php b/Updated_Cms/app/Http/Controllers/User/UserReferralController.php new file mode 100644 index 0000000000..e0a4dcfd30 --- /dev/null +++ b/Updated_Cms/app/Http/Controllers/User/UserReferralController.php @@ -0,0 +1,18 @@ +firstOrFail(); + + return view('auth.register', [ + 'referral_code' => $referralCode, + ]); + } +} diff --git a/Updated_Cms/app/Http/Kernel.php b/Updated_Cms/app/Http/Kernel.php new file mode 100644 index 0000000000..a5cd56bd30 --- /dev/null +++ b/Updated_Cms/app/Http/Kernel.php @@ -0,0 +1,110 @@ + + */ + protected $middleware = [ + // \App\Http\Middleware\TrustHosts::class, + RealClientIpMiddleware::class, + TrustProxies::class, + HandleCors::class, + PreventRequestsDuringMaintenance::class, + ValidatePostSize::class, + TrimStrings::class, + ConvertEmptyStringsToNull::class, + SetThemeMiddleware::class, + InstallationMiddleware::class, + ]; + + /** + * The application's route middleware groups. + * + * @var array> + */ + protected $middlewareGroups = [ + 'web' => [ + EncryptCookies::class, + AddQueuedCookiesToResponse::class, + StartSession::class, + ShareErrorsFromSession::class, + VerifyCsrfToken::class, + SubstituteBindings::class, + LocalizationMiddleware::class, + ], + + 'api' => [ + EnsureFrontendRequestsAreStateful::class, + ThrottleRequests::class . ':api', + SubstituteBindings::class, + ], + ]; + + /** + * The application's middleware aliases. + * + * Aliases may be used to conveniently assign middleware to routes and groups. + * + * @var array + */ + protected $middlewareAliases = [ + 'auth' => Authenticate::class, + 'auth.basic' => AuthenticateWithBasicAuth::class, + 'auth.session' => AuthenticateSession::class, + 'cache.headers' => SetCacheHeaders::class, + 'can' => Authorize::class, + 'guest' => RedirectIfAuthenticated::class, + 'password.confirm' => RequirePassword::class, + 'signed' => ValidateSignature::class, + 'throttle' => ThrottleRequests::class, + 'verified' => EnsureEmailIsVerified::class, + 'maintenance' => MaintenanceMiddleware::class, + 'check.ban' => BannedMiddleware::class, + 'findretros.redirect' => FindRetrosMiddleware::class, + 'vpn.checker' => VPNCheckerMiddleware::class, + 'log.viewer' => LogViewerMiddleware::class, + 'force.staff.2fa' => ForceStaffTwoFactorMiddleware::class, + ]; +} diff --git a/Updated_Cms/app/Http/Middleware/Authenticate.php b/Updated_Cms/app/Http/Middleware/Authenticate.php new file mode 100644 index 0000000000..28d3ce1d4d --- /dev/null +++ b/Updated_Cms/app/Http/Middleware/Authenticate.php @@ -0,0 +1,18 @@ +expectsJson() ? null : route('login'); + } +} diff --git a/Updated_Cms/app/Http/Middleware/BannedMiddleware.php b/Updated_Cms/app/Http/Middleware/BannedMiddleware.php new file mode 100644 index 0000000000..6142dbe8eb --- /dev/null +++ b/Updated_Cms/app/Http/Middleware/BannedMiddleware.php @@ -0,0 +1,48 @@ +ip()) + ->where('ban_expire', '>', time()) + ->whereIn('type', ['ip', 'machine']) + ->orderByDesc('id') + ->exists(); + + if ($request->is('logout')) { + return $next($request); + } + + if (! $authenticated && ! $ipBan && $request->is('banned')) { + return to_route('login'); + } + + if ($ipBan && ! $request->is('banned')) { + return to_route('banned.show'); + } + + if ($authenticated) { + $accountBan = $request->user()?->ban; + + if ($accountBan && ! $request->is('banned')) { + return to_route('banned.show'); + } + + if (! $ipBan && ! $accountBan && $request->is('banned')) { + return to_route('me.show'); + } + } + + return $next($request); + } +} diff --git a/Updated_Cms/app/Http/Middleware/EncryptCookies.php b/Updated_Cms/app/Http/Middleware/EncryptCookies.php new file mode 100644 index 0000000000..867695bdcf --- /dev/null +++ b/Updated_Cms/app/Http/Middleware/EncryptCookies.php @@ -0,0 +1,17 @@ + + */ + protected $except = [ + // + ]; +} diff --git a/Updated_Cms/app/Http/Middleware/FindRetrosMiddleware.php b/Updated_Cms/app/Http/Middleware/FindRetrosMiddleware.php new file mode 100644 index 0000000000..36dd4e9213 --- /dev/null +++ b/Updated_Cms/app/Http/Middleware/FindRetrosMiddleware.php @@ -0,0 +1,23 @@ +checkHasVoted()) { + return redirect($findRetrosService->getRedirectUri()); + } + + return $next($request); + } +} diff --git a/Updated_Cms/app/Http/Middleware/ForceStaffTwoFactorMiddleware.php b/Updated_Cms/app/Http/Middleware/ForceStaffTwoFactorMiddleware.php new file mode 100644 index 0000000000..d1451ac53d --- /dev/null +++ b/Updated_Cms/app/Http/Middleware/ForceStaffTwoFactorMiddleware.php @@ -0,0 +1,30 @@ +user(); + $urls = [ + 'user/settings/two-factor', + 'user/settings/2fa-verify', + ]; + + if (($user->rank >= setting('min_staff_rank') && ! $user->two_factor_confirmed) && ! in_array(request()->path(), $urls)) { + return to_route('settings.two-factor'); + } + + return $next($request); + } +} diff --git a/Updated_Cms/app/Http/Middleware/InstallationMiddleware.php b/Updated_Cms/app/Http/Middleware/InstallationMiddleware.php new file mode 100644 index 0000000000..3a9b581af1 --- /dev/null +++ b/Updated_Cms/app/Http/Middleware/InstallationMiddleware.php @@ -0,0 +1,159 @@ +ensureInstallationTableExists(); + + $installation = $this->getInstallation(); + + if ($installation && $installation->completed && $request->is('installation*')) { + Cache::rememberForever('app_installed', fn () => true); + + return to_route('welcome'); + } + + $isInstallationStepHandled = $this->handleInstallationSteps($request, $installation); + + if (! $isInstallationStepHandled) { + return $this->redirectIfNotCompleted($installation); + } + + return $next($request); + } + + private function ensureInstallationTableExists() + { + if (! Schema::hasTable('website_installation')) { + Artisan::call('migrate', ['--path' => 'database/migrations/' . findMigration('website_installation')]); + + if (! Schema::hasTable('website_installation')) { + throw new MigrationFailedException('website_installation'); + } + } + + if (! Schema::hasTable('sessions')) { + Artisan::call('migrate', ['--path' => 'database/migrations/' . findMigration('sessions')]); + } + } + + private function getInstallation() + { + try { + $installation = WebsiteInstallation::query()->first(); + + if (! $installation) { + return WebsiteInstallation::create([ + 'step' => 0, + 'completed' => false, + 'installation_key' => Str::uuid(), + 'user_ip' => request()?->ip(), + ]); + } + + return $installation; + } catch (Exception $e) { + Log::error('Error fetching or creating WebsiteInstallation: ' . $e->getMessage()); + abort(500, 'An error occurred while setting up the installation.'); + } + } + + private function handleInstallationSteps(Request $request, WebsiteInstallation $installation) + { + if ($installation->completed) { + return true; + } + + if ($this->isWelcomeStep($request, $installation)) { + return true; + } + + if ($this->isRedirectToWelcome($request, $installation)) { + return false; + } + + if ($this->isInvalidAccess($request, $installation)) { + abort(403); + } + + if ($this->isInvalidStep($request)) { + return false; + } + + return ! $this->isMismatchedStep($request, $installation); + } + + private function isWelcomeStep(Request $request, WebsiteInstallation $installation) + { + return $installation->step === 0 && $request->getRequestUri() === '/installation'; + } + + private function isRedirectToWelcome(Request $request, WebsiteInstallation $installation) + { + return $installation->step === 0 && $request->getRequestUri() !== '/installation' && $request->method() !== 'POST'; + } + + private function isInvalidAccess(Request $request, WebsiteInstallation $installation) + { + return $installation->step > 0 && $request->ip() !== $installation->user_ip; + } + + private function isInvalidStep(Request $request) + { + return ! $this->isValidStep($request) && $this->isNonPostRequest($request); + } + + private function isMismatchedStep(Request $request, WebsiteInstallation $installation) + { + return $this->getCurrentStep($request) !== $installation->step && $this->isNonPostRequest($request); + } + + private function isValidStep(Request $request) + { + $step = $this->getCurrentStep($request); + + return filter_var($step, FILTER_VALIDATE_INT) !== false; + } + + private function isNonPostRequest(Request $request) + { + return $request->method() !== 'POST' || $request->is('restart-installation'); + } + + private function getCurrentStep(Request $request) + { + return (int) Str::after($request->path(), 'step/'); + } + + private function redirectToStep(int $step) + { + return to_route('installation.show-step', $step); + } + + protected function redirectIfNotCompleted(WebsiteInstallation $installation) + { + + if ($installation->step === 0) { + return to_route('installation.index'); + } + + return $this->redirectToStep($installation->step ?: 1); + } +} diff --git a/Updated_Cms/app/Http/Middleware/LocalizationMiddleware.php b/Updated_Cms/app/Http/Middleware/LocalizationMiddleware.php new file mode 100644 index 0000000000..66e89a30ac --- /dev/null +++ b/Updated_Cms/app/Http/Middleware/LocalizationMiddleware.php @@ -0,0 +1,50 @@ +doesntExist()) { + $defaultCountry = config('habbo.site.default_language'); + + App::setLocale($defaultCountry); + Session::put('locale', $defaultCountry); + + return $next($request); + } + + // Zet de gedetecteerde taal + App::setLocale($countryCode); + Session::put('locale', $countryCode); + + return $next($request); + } +} \ No newline at end of file diff --git a/Updated_Cms/app/Http/Middleware/LogViewerMiddleware.php b/Updated_Cms/app/Http/Middleware/LogViewerMiddleware.php new file mode 100644 index 0000000000..0b51abc62d --- /dev/null +++ b/Updated_Cms/app/Http/Middleware/LogViewerMiddleware.php @@ -0,0 +1,24 @@ +method() === 'POST'; + $isMaintenanceRequest = $request->is('maintenance'); + $maintenanceEnabled = setting('maintenance_enabled'); + + $fortify2faRoutes = [ + 'two-factor.login', + 'two-factor.confirm', + ]; + + if ($maintenanceEnabled && $isPostRequest && ! Auth::check()) { + return $next($request); + } + + $isFortify2faRoute = in_array($request->route()?->getName(), $fortify2faRoutes, true); + if ($maintenanceEnabled && $isFortify2faRoute) { + return $next($request); + } + + if (Auth::check() && Auth::user()->rank >= setting('min_maintenance_login_rank')) { + if ($isMaintenanceRequest) { + return to_route('me.show'); + } + + return $next($request); + } + + if (Auth::check() && Auth::user()->rank >= setting('min_maintenance_login_rank') && $isMaintenanceRequest) { + return to_route('me.show'); + } + + if ($maintenanceEnabled && ! $isMaintenanceRequest && ! $isPostRequest) { + return to_route('maintenance.show'); + } + + if (! $maintenanceEnabled && $isMaintenanceRequest && ! $isPostRequest) { + return to_route('welcome'); + } + + if ($maintenanceEnabled && ! $isMaintenanceRequest && Auth::check() && Auth::user()->rank < setting('min_maintenance_login_rank')) { + return to_route('maintenance.show'); + } + + return $next($request); + } +} diff --git a/Updated_Cms/app/Http/Middleware/PreventRequestsDuringMaintenance.php b/Updated_Cms/app/Http/Middleware/PreventRequestsDuringMaintenance.php new file mode 100644 index 0000000000..74cbd9a9ea --- /dev/null +++ b/Updated_Cms/app/Http/Middleware/PreventRequestsDuringMaintenance.php @@ -0,0 +1,17 @@ + + */ + protected $except = [ + // + ]; +} diff --git a/Updated_Cms/app/Http/Middleware/RealClientIpMiddleware.php b/Updated_Cms/app/Http/Middleware/RealClientIpMiddleware.php new file mode 100644 index 0000000000..0b89f6eb80 --- /dev/null +++ b/Updated_Cms/app/Http/Middleware/RealClientIpMiddleware.php @@ -0,0 +1,47 @@ +server->set('REMOTE_ADDR', $ip); + break; + } + } + } + + // Special handling for REMOTE_ADDR with multiple IPs + $remoteAddr = \Illuminate\Support\Facades\Request::server('REMOTE_ADDR') ?? ''; + if (! empty($remoteAddr) && str_contains((string) $remoteAddr, ',')) { + [$ip] = explode(',', (string) $remoteAddr); + $ip = trim($ip); + if (filter_var($ip, FILTER_VALIDATE_IP)) { + $request->server->set('REMOTE_ADDR', $ip); + } + } + + return $next($request); + } +} diff --git a/Updated_Cms/app/Http/Middleware/RedirectIfAuthenticated.php b/Updated_Cms/app/Http/Middleware/RedirectIfAuthenticated.php new file mode 100644 index 0000000000..3f9ba02ff7 --- /dev/null +++ b/Updated_Cms/app/Http/Middleware/RedirectIfAuthenticated.php @@ -0,0 +1,35 @@ +check()) { + if ($request->expectsJson()) { + return response()->json(); + } + + return redirect(RouteServiceProvider::HOME); + } + } + + return $next($request); + } +} diff --git a/Updated_Cms/app/Http/Middleware/SetThemeMiddleware.php b/Updated_Cms/app/Http/Middleware/SetThemeMiddleware.php new file mode 100644 index 0000000000..e28a6f78f3 --- /dev/null +++ b/Updated_Cms/app/Http/Middleware/SetThemeMiddleware.php @@ -0,0 +1,22 @@ + + */ + protected $except = [ + 'current_password', + 'password', + 'password_confirmation', + ]; +} diff --git a/Updated_Cms/app/Http/Middleware/TrustHosts.php b/Updated_Cms/app/Http/Middleware/TrustHosts.php new file mode 100644 index 0000000000..398aaca033 --- /dev/null +++ b/Updated_Cms/app/Http/Middleware/TrustHosts.php @@ -0,0 +1,21 @@ + + */ + #[\Override] + public function hosts(): array + { + return [ + $this->allSubdomainsOfApplicationUrl(), + ]; + } +} diff --git a/Updated_Cms/app/Http/Middleware/TrustProxies.php b/Updated_Cms/app/Http/Middleware/TrustProxies.php new file mode 100644 index 0000000000..3391630ecc --- /dev/null +++ b/Updated_Cms/app/Http/Middleware/TrustProxies.php @@ -0,0 +1,28 @@ +|string|null + */ + protected $proxies; + + /** + * The headers that should be used to detect proxies. + * + * @var int + */ + protected $headers = + Request::HEADER_X_FORWARDED_FOR | + Request::HEADER_X_FORWARDED_HOST | + Request::HEADER_X_FORWARDED_PORT | + Request::HEADER_X_FORWARDED_PROTO | + Request::HEADER_X_FORWARDED_AWS_ELB; +} diff --git a/Updated_Cms/app/Http/Middleware/VPNCheckerMiddleware.php b/Updated_Cms/app/Http/Middleware/VPNCheckerMiddleware.php new file mode 100644 index 0000000000..116d048cf3 --- /dev/null +++ b/Updated_Cms/app/Http/Middleware/VPNCheckerMiddleware.php @@ -0,0 +1,81 @@ +ip())->exists()) { + return $next($request); + } + + // Restrict user if IP is blacklisted + if (WebsiteIpBlacklist::where('ip_address', $request->ip())->exists()) { + return to_route('me.show')->withErrors([ + 'message' => __('Your IP have been restricted - If you think this is a mistake, you can contact us on our Discord.'), + ]); + } + + // Instantiate the necessary things to look up the visitor IP + $ipService = new IpLookupService(setting('ipdata_api_key')); + $userIp = $request->ip(); + $apiResponse = $ipService->ipLookup($userIp); + + $asn = $apiResponse['asn']['asn'] ?? ''; + $asnWhitelisted = WebsiteIpWhitelist::where('asn', $asn) + ->where('whitelist_asn', '=', '1') + ->exists(); + + if ($asnWhitelisted) { + return $next($request); + } + + // Fetch all blacklisted ASNs + $asnBlacklisted = WebsiteIpBlacklist::where('asn', $asn) + ->where('blacklist_asn', '=', '1') + ->exists(); + + // Restrict the user if their ASN is within the blacklist table + if ($asnBlacklisted) { + return to_route('me.show')->withErrors([ + 'message' => __('Your IP have been restricted - If you think this is a mistake, you can contact us on our Discord.'), + ]); + } + + if (isset($apiResponse['threat']) && is_array($apiResponse['threat'])) { + $filteredThreats = array_diff_key($apiResponse['threat'], array_flip(['blocklists', 'is_icloud_relay', 'is_datacenter', 'is_tor', 'is_proxy'])); + + if (in_array(true, $filteredThreats, true)) { + WebsiteIpBlacklist::create([ + 'ip_address' => $userIp, + 'asn' => null, + ]); + + return to_route('me.show')->withErrors([ + 'message' => __('Your IP has been restricted - If you think this is a mistake, you can contact us on our Discord.'), + ]); + } + } + + return $next($request); + } +} diff --git a/Updated_Cms/app/Http/Middleware/ValidateSignature.php b/Updated_Cms/app/Http/Middleware/ValidateSignature.php new file mode 100644 index 0000000000..093bf64af8 --- /dev/null +++ b/Updated_Cms/app/Http/Middleware/ValidateSignature.php @@ -0,0 +1,22 @@ + + */ + protected $except = [ + // 'fbclid', + // 'utm_campaign', + // 'utm_content', + // 'utm_medium', + // 'utm_source', + // 'utm_term', + ]; +} diff --git a/Updated_Cms/app/Http/Middleware/VerifyCsrfToken.php b/Updated_Cms/app/Http/Middleware/VerifyCsrfToken.php new file mode 100644 index 0000000000..9e86521722 --- /dev/null +++ b/Updated_Cms/app/Http/Middleware/VerifyCsrfToken.php @@ -0,0 +1,17 @@ + + */ + protected $except = [ + // + ]; +} diff --git a/Updated_Cms/app/Http/Requests/AccountSettingsFormRequest.php b/Updated_Cms/app/Http/Requests/AccountSettingsFormRequest.php new file mode 100644 index 0000000000..a5abff49cd --- /dev/null +++ b/Updated_Cms/app/Http/Requests/AccountSettingsFormRequest.php @@ -0,0 +1,28 @@ + ['sometimes', 'string', sprintf('regex:%s', setting('username_regex')), 'min:3', 'max:25', Rule::unique('users')->ignore($this->user()->id), new WebsiteWordfilterRule], + 'mail' => ['required', 'email', Rule::unique('users')->ignore($this->user()->id), new WebsiteWordfilterRule], + 'motto' => ['nullable', 'string', 'max:127', new WebsiteWordfilterRule], + 'g-recaptcha-response' => [new GoogleRecaptchaRule], + 'cf-turnstile-response' => [app(Turnstile::class)], + ]; + } + + public function authorize(): bool + { + return true; + } +} diff --git a/Updated_Cms/app/Http/Requests/AccountTopupFormRequest.php b/Updated_Cms/app/Http/Requests/AccountTopupFormRequest.php new file mode 100644 index 0000000000..c7b8ad8d59 --- /dev/null +++ b/Updated_Cms/app/Http/Requests/AccountTopupFormRequest.php @@ -0,0 +1,15 @@ + ['required', 'integer', 'min:1', 'max:250'], + ]; + } +} diff --git a/Updated_Cms/app/Http/Requests/ArticleCommentFormRequest.php b/Updated_Cms/app/Http/Requests/ArticleCommentFormRequest.php new file mode 100644 index 0000000000..6c041d55f0 --- /dev/null +++ b/Updated_Cms/app/Http/Requests/ArticleCommentFormRequest.php @@ -0,0 +1,21 @@ + ['required', 'string', 'min:2', 'max:255', new WebsiteWordfilterRule], + ]; + } + + public function authorize(): bool + { + return true; + } +} diff --git a/Updated_Cms/app/Http/Requests/GuestbookFormRequest.php b/Updated_Cms/app/Http/Requests/GuestbookFormRequest.php new file mode 100644 index 0000000000..892fe0309d --- /dev/null +++ b/Updated_Cms/app/Http/Requests/GuestbookFormRequest.php @@ -0,0 +1,16 @@ + ['required', 'string', 'max:32', new WebsiteWordfilterRule], + ]; + } +} diff --git a/Updated_Cms/app/Http/Requests/PasswordSettingsFormRequest.php b/Updated_Cms/app/Http/Requests/PasswordSettingsFormRequest.php new file mode 100644 index 0000000000..c57356df18 --- /dev/null +++ b/Updated_Cms/app/Http/Requests/PasswordSettingsFormRequest.php @@ -0,0 +1,24 @@ + ['required', 'string', new CurrentPasswordRule], + 'password' => $this->passwordRules(), + 'g-recaptcha-response' => [new GoogleRecaptchaRule], + 'cf-turnstile-response' => [app(Turnstile::class)], + ]; + } +} diff --git a/Updated_Cms/app/Http/Requests/RareSearchFormRequest.php b/Updated_Cms/app/Http/Requests/RareSearchFormRequest.php new file mode 100644 index 0000000000..58f21804f3 --- /dev/null +++ b/Updated_Cms/app/Http/Requests/RareSearchFormRequest.php @@ -0,0 +1,20 @@ + ['required', 'string', 'min:1', 'max:255'], + ]; + } + + public function authorize(): bool + { + return true; + } +} diff --git a/Updated_Cms/app/Http/Requests/RegisterFormRequest.php b/Updated_Cms/app/Http/Requests/RegisterFormRequest.php new file mode 100644 index 0000000000..1dae173c81 --- /dev/null +++ b/Updated_Cms/app/Http/Requests/RegisterFormRequest.php @@ -0,0 +1,38 @@ + ['required', 'string', sprintf('regex:%s', setting('username_regex')), 'max:25', Rule::unique('users')], + 'mail' => ['required', 'string', 'email', 'max:255', Rule::unique('users')], + 'password' => ['required', 'string', 'confirmed', 'min:8'], + 'terms' => ['required', 'accepted'], + 'g-recaptcha-response' => [new GoogleRecaptchaRule], + 'cf-turnstile-response' => [app(Turnstile::class)], + ]; + } + + public function authorize(): bool + { + return true; + } + + #[\Override] + public function messages(): array + { + return [ + 'g-recaptcha-response.required' => __('The Google recaptcha must be completed'), + 'g-recaptcha-response.string' => __('The google recaptcha was submitted with an invalid type'), + ]; + } +} diff --git a/Updated_Cms/app/Http/Requests/ShopVoucherFormRequest.php b/Updated_Cms/app/Http/Requests/ShopVoucherFormRequest.php new file mode 100644 index 0000000000..179d67700e --- /dev/null +++ b/Updated_Cms/app/Http/Requests/ShopVoucherFormRequest.php @@ -0,0 +1,19 @@ + ['required', 'string'], + 'g-recaptcha-response' => [new GoogleRecaptchaRule], + 'cf-turnstile-response' => [app(Turnstile::class)], + ]; + } +} diff --git a/Updated_Cms/app/Http/Requests/StaffApplicationFormRequest.php b/Updated_Cms/app/Http/Requests/StaffApplicationFormRequest.php new file mode 100644 index 0000000000..c5c1a80d96 --- /dev/null +++ b/Updated_Cms/app/Http/Requests/StaffApplicationFormRequest.php @@ -0,0 +1,19 @@ + ['required', 'string'], + 'g-recaptcha-response' => [new GoogleRecaptchaRule], + 'cf-turnstile-response' => [app(Turnstile::class)], + ]; + } +} diff --git a/Updated_Cms/app/Http/Requests/WebsiteTicketFormRequest.php b/Updated_Cms/app/Http/Requests/WebsiteTicketFormRequest.php new file mode 100644 index 0000000000..3bee110739 --- /dev/null +++ b/Updated_Cms/app/Http/Requests/WebsiteTicketFormRequest.php @@ -0,0 +1,18 @@ + ['required', 'integer', Rule::exists('website_help_center_categories', 'id')], + 'title' => ['required', 'string', 'min:10', 'max:255'], + 'content' => ['required', 'string', 'min:10', 'max:65000'], + ]; + } +} diff --git a/Updated_Cms/app/Http/Requests/WebsiteTicketReplyFormRequest.php b/Updated_Cms/app/Http/Requests/WebsiteTicketReplyFormRequest.php new file mode 100644 index 0000000000..8b156055a6 --- /dev/null +++ b/Updated_Cms/app/Http/Requests/WebsiteTicketReplyFormRequest.php @@ -0,0 +1,15 @@ + ['required', 'string', 'min:10', 'max:65000'], + ]; + } +} diff --git a/Updated_Cms/app/Http/Resources/OnlineUserCountResource.php b/Updated_Cms/app/Http/Resources/OnlineUserCountResource.php new file mode 100644 index 0000000000..b71d9ef019 --- /dev/null +++ b/Updated_Cms/app/Http/Resources/OnlineUserCountResource.php @@ -0,0 +1,23 @@ + $this->resource, + ]; + } +} diff --git a/Updated_Cms/app/Http/Resources/OnlineUsersResource.php b/Updated_Cms/app/Http/Resources/OnlineUsersResource.php new file mode 100644 index 0000000000..7ced825da2 --- /dev/null +++ b/Updated_Cms/app/Http/Resources/OnlineUsersResource.php @@ -0,0 +1,24 @@ + $this->paginate(10), + ]; + } +} diff --git a/Updated_Cms/app/Http/Resources/UserResource.php b/Updated_Cms/app/Http/Resources/UserResource.php new file mode 100644 index 0000000000..cf8245e4cf --- /dev/null +++ b/Updated_Cms/app/Http/Resources/UserResource.php @@ -0,0 +1,23 @@ + $this->resource ?: 'No user found', + ]; + } +} diff --git a/Updated_Cms/app/Models/Achievement.php b/Updated_Cms/app/Models/Achievement.php new file mode 100644 index 0000000000..51ba7bf76b --- /dev/null +++ b/Updated_Cms/app/Models/Achievement.php @@ -0,0 +1,23 @@ +getBadgeName()); + } + + public function getBadgeName(): string + { + return sprintf('%s%s', $this->name, (string) $this->level); + } +} diff --git a/Updated_Cms/app/Models/Article.php b/Updated_Cms/app/Models/Article.php new file mode 100644 index 0000000000..85d29c6a56 --- /dev/null +++ b/Updated_Cms/app/Models/Article.php @@ -0,0 +1,147 @@ +user_id = Auth::id(); + $article->slug = Str::slug($article->title); + $article->predominant_color = getPredominantImageColor($article->image); + }); + + static::updating(function (Article $article): void { + $article->slug = Str::slug($article->title); + + if ($article->isDirty('image')) { + $article->predominant_color = getPredominantImageColor($article->image); + } + }); + } + + public function syncPaginatedComments(): void + { + $this->setRelation('comments', + $this->comments()->defaultRelationships()->paginate(10)->fragment('comments'), + ); + } + + public static function fromIdAndSlug(string $id, string $slug, bool $withDefaultRelationships = true): Builder + { + return Article::valid() + ->when($withDefaultRelationships, fn ($query) => $query->defaultRelationships()) + ->whereId($id) + ->whereSlug($slug); + } + + public static function getLatestValidArticle(bool $withDefaultRelationships = true): ?Article + { + $article = Article::valid() + ->when($withDefaultRelationships, fn ($query) => $query->defaultRelationships()) + ->latest() + ->first(); + + if (! $article) { + return null; + } + + $article->syncPaginatedComments(); + + return $article; + } + + public static function forIndex(int $limit): Builder + { + return Article::valid() + ->with(['user:id,username,look,avatar_background']) + ->select(['id', 'user_id', 'title', 'slug', 'is_promotion', 'image', 'description', 'promotion_ends_at', 'created_at', 'fixed']) + ->limit($limit) + ->latest(); + } + + #[\Illuminate\Database\Eloquent\Attributes\Scope] + protected function valid(Builder $query): void + { + $query->whereVisible(true); + } + + #[\Illuminate\Database\Eloquent\Attributes\Scope] + protected function defaultRelationships(Builder $query): void + { + $query->with([ + 'user:id,username,look,gender', + 'tags', + 'reactions' => fn ($query) => $query->defaultRelationships(), + 'user.followers', + ]); + } + + public function comments(): HasMany + { + return $this->hasMany(ArticleComment::class)->defaultBehavior(); + } + + public function reactions(): HasMany + { + return $this->hasMany(ArticleReaction::class)->defaultBehavior(); + } + + public function user() + { + return $this->belongsTo(User::class); + } + + public function tags() + { + return $this->morphToMany(Tag::class, 'taggable'); + } + + protected function titleColor(): Attribute + { + return new Attribute( + get: fn () => isDarkColor($this->predominant_color) ? '#fff' : '#000', + ); + } + + public function createFollowersNotification(): void + { + $this->user->followers() + ->with('user:id,username') + ->each(fn (AuthorNotification $follower) => $follower->user->notify($this->user, NotificationType::ArticlePosted, $this->getNotificationUrl()), + ); + } + protected function casts(): array + { + return [ + 'visible' => 'boolean', + 'fixed' => 'boolean', + 'allow_comments' => 'boolean', + 'is_promotion' => 'boolean', + 'promotion_ends_at' => 'datetime', + ]; + } +} diff --git a/Updated_Cms/app/Models/Articles/Tag.php b/Updated_Cms/app/Models/Articles/Tag.php new file mode 100644 index 0000000000..2c5f2e0c6c --- /dev/null +++ b/Updated_Cms/app/Models/Articles/Tag.php @@ -0,0 +1,18 @@ +morphedByMany(WebsiteArticle::class, 'taggable'); + } +} diff --git a/Updated_Cms/app/Models/Articles/WebsiteArticle.php b/Updated_Cms/app/Models/Articles/WebsiteArticle.php new file mode 100644 index 0000000000..5d7e7ebee7 --- /dev/null +++ b/Updated_Cms/app/Models/Articles/WebsiteArticle.php @@ -0,0 +1,65 @@ +generateSlugsFrom('title') + ->saveSlugsTo('slug') + ->usingSeparator('-')->allowDuplicateSlugs(); + } + + public function user(): BelongsTo + { + return $this->belongsTo(User::class); + } + + public function reactions(): HasMany + { + return $this->hasMany(WebsiteArticleReaction::class, 'article_id') + ->whereActive(true); + } + + public function comments(): HasMany + { + return $this->hasMany(WebsiteArticleComment::class, 'article_id'); + } + + public function userHasReachedArticleCommentLimit(): bool + { + return $this->comments()->where('user_id', '=', Auth::id())->count() >= (int) setting('max_comment_per_article'); + } + + #[\Override] + protected static function boot() + { + parent::boot(); + + static::saving(function ($model): void { + if (empty($model->image)) { + $model->image = ''; + } + }); + } + + public function tags() + { + return $this->morphToMany(Tag::class, 'taggable'); + } +} diff --git a/Updated_Cms/app/Models/Articles/WebsiteArticleComment.php b/Updated_Cms/app/Models/Articles/WebsiteArticleComment.php new file mode 100644 index 0000000000..e1c390bf89 --- /dev/null +++ b/Updated_Cms/app/Models/Articles/WebsiteArticleComment.php @@ -0,0 +1,28 @@ +belongsTo(WebsiteArticle::class, 'article_id'); + } + + public function user(): BelongsTo + { + return $this->belongsTo(User::class); + } + + public function canBeDeleted(): bool + { + return $this->user_id === Auth::id() || hasPermission('delete_article_comments'); + } +} diff --git a/Updated_Cms/app/Models/Articles/WebsiteArticleReaction.php b/Updated_Cms/app/Models/Articles/WebsiteArticleReaction.php new file mode 100644 index 0000000000..cf86dfa5fe --- /dev/null +++ b/Updated_Cms/app/Models/Articles/WebsiteArticleReaction.php @@ -0,0 +1,50 @@ +where('article_id', $articleId) + ->where('reaction', $reaction) + ->first(); + } + + #[\Override] + public static function boot() + { + parent::boot(); + + static::creating(function ($model): void { + $model->user_id = auth()->id(); + }); + } + + public function article(): BelongsTo + { + return $this->belongsTo(WebsiteArticle::class, 'article_id'); + } + + public function user(): BelongsTo + { + return $this->belongsTo(User::class); + } +} diff --git a/Updated_Cms/app/Models/ChatlogPrivate.php b/Updated_Cms/app/Models/ChatlogPrivate.php new file mode 100644 index 0000000000..a2d9ded115 --- /dev/null +++ b/Updated_Cms/app/Models/ChatlogPrivate.php @@ -0,0 +1,28 @@ +belongsTo(User::class, 'user_from_id'); + } + + public function receiver(): BelongsTo + { + return $this->belongsTo(User::class, 'user_to_id'); + } +} diff --git a/Updated_Cms/app/Models/ChatlogRoom.php b/Updated_Cms/app/Models/ChatlogRoom.php new file mode 100644 index 0000000000..66b728fcbd --- /dev/null +++ b/Updated_Cms/app/Models/ChatlogRoom.php @@ -0,0 +1,35 @@ +belongsTo(Room::class); + } + + public function sender() + { + return $this->belongsTo(User::class, 'user_from_id'); + } + + public function receiver() + { + return $this->belongsTo(User::class, 'user_to_id'); + } +} diff --git a/Updated_Cms/app/Models/CommandLog.php b/Updated_Cms/app/Models/CommandLog.php new file mode 100644 index 0000000000..80373b49b3 --- /dev/null +++ b/Updated_Cms/app/Models/CommandLog.php @@ -0,0 +1,31 @@ +belongsTo(User::class); + } + protected function casts(): array + { + return [ + 'timestamp' => 'datetime', + ]; + } +} diff --git a/Updated_Cms/app/Models/Community/RareValue/WebsiteRareValue.php b/Updated_Cms/app/Models/Community/RareValue/WebsiteRareValue.php new file mode 100644 index 0000000000..a89c61e3a7 --- /dev/null +++ b/Updated_Cms/app/Models/Community/RareValue/WebsiteRareValue.php @@ -0,0 +1,38 @@ + 'integer', + ]; + } + + public function category(): BelongsTo + { + return $this->belongsTo(WebsiteRareValueCategory::class, 'category_id'); + } + + public function item(): BelongsTo + { + return $this->belongsTo(CatalogItem::class, 'item_id', 'item_ids'); + } + + public function isLimitedEdition(): bool + { + if (is_null($this->item)) { + return false; + } + + return $this->item->limited_stack > 0; + } +} diff --git a/Updated_Cms/app/Models/Community/RareValue/WebsiteRareValueCategory.php b/Updated_Cms/app/Models/Community/RareValue/WebsiteRareValueCategory.php new file mode 100644 index 0000000000..37ca846119 --- /dev/null +++ b/Updated_Cms/app/Models/Community/RareValue/WebsiteRareValueCategory.php @@ -0,0 +1,16 @@ +hasMany(WebsiteRareValue::class, 'category_id'); + } +} diff --git a/Updated_Cms/app/Models/Community/Staff/WebsiteOpenPosition.php b/Updated_Cms/app/Models/Community/Staff/WebsiteOpenPosition.php new file mode 100644 index 0000000000..873cd21123 --- /dev/null +++ b/Updated_Cms/app/Models/Community/Staff/WebsiteOpenPosition.php @@ -0,0 +1,55 @@ +permission_id)->delete(); + }); + } + + public function permission() + { + return $this->belongsTo(Permission::class, 'permission_id', 'id'); + } + + public function applications() + { + return $this->hasMany(WebsiteStaffApplications::class, 'rank_id', 'permission_id'); + } + + #[\Illuminate\Database\Eloquent\Attributes\Scope] + protected function canApply($query) + { + return $query->where('apply_from', '<=', now())->where('apply_to', '>', now()); + } + protected function casts(): array + { + return [ + 'apply_from' => 'datetime', + 'apply_to' => 'datetime', + ]; + } +} diff --git a/Updated_Cms/app/Models/Community/Staff/WebsiteStaffApplications.php b/Updated_Cms/app/Models/Community/Staff/WebsiteStaffApplications.php new file mode 100644 index 0000000000..e6b766875e --- /dev/null +++ b/Updated_Cms/app/Models/Community/Staff/WebsiteStaffApplications.php @@ -0,0 +1,31 @@ +belongsTo(Permission::class, 'rank_id'); + } + + public function user(): BelongsTo + { + return $this->belongsTo(User::class, 'user_id'); + } +} diff --git a/Updated_Cms/app/Models/Community/Staff/WebsiteTeam.php b/Updated_Cms/app/Models/Community/Staff/WebsiteTeam.php new file mode 100644 index 0000000000..bc30a59e9b --- /dev/null +++ b/Updated_Cms/app/Models/Community/Staff/WebsiteTeam.php @@ -0,0 +1,27 @@ +hasMany(User::class, 'team_id', 'id'); + } + + public function getBadgePath(): string + { + return sprintf('%s%s.gif', setting('badges_path'), $this->getBadgeName()); + } + + public function getBadgeName(): string + { + return $this->badge ?: ''; + } +} diff --git a/Updated_Cms/app/Models/Compositions/HasBadge.php b/Updated_Cms/app/Models/Compositions/HasBadge.php new file mode 100644 index 0000000000..a87ebe1d7e --- /dev/null +++ b/Updated_Cms/app/Models/Compositions/HasBadge.php @@ -0,0 +1,10 @@ +id, $this->slug]); + } +} diff --git a/Updated_Cms/app/Models/EmulatorSetting.php b/Updated_Cms/app/Models/EmulatorSetting.php new file mode 100644 index 0000000000..6c1121a4d8 --- /dev/null +++ b/Updated_Cms/app/Models/EmulatorSetting.php @@ -0,0 +1,16 @@ +belongsTo(ItemBase::class, 'item_ids', 'id'); + } +} diff --git a/Updated_Cms/app/Models/Game/Furniture/CatalogPage.php b/Updated_Cms/app/Models/Game/Furniture/CatalogPage.php new file mode 100644 index 0000000000..7959156953 --- /dev/null +++ b/Updated_Cms/app/Models/Game/Furniture/CatalogPage.php @@ -0,0 +1,18 @@ +hasMany(CatalogItem::class, 'page_id'); + } +} diff --git a/Updated_Cms/app/Models/Game/Furniture/Item.php b/Updated_Cms/app/Models/Game/Furniture/Item.php new file mode 100644 index 0000000000..57093ea87d --- /dev/null +++ b/Updated_Cms/app/Models/Game/Furniture/Item.php @@ -0,0 +1,19 @@ +belongsTo(User::class); + } +} diff --git a/Updated_Cms/app/Models/Game/Furniture/ItemBase.php b/Updated_Cms/app/Models/Game/Furniture/ItemBase.php new file mode 100644 index 0000000000..998bc6b2a5 --- /dev/null +++ b/Updated_Cms/app/Models/Game/Furniture/ItemBase.php @@ -0,0 +1,25 @@ +item_name); + } + + public function catalogItems(): HasMany + { + return $this->hasMany(CatalogItem::class, 'item_ids', 'id'); + } +} diff --git a/Updated_Cms/app/Models/Game/Guild/Guild.php b/Updated_Cms/app/Models/Game/Guild/Guild.php new file mode 100644 index 0000000000..169f10571d --- /dev/null +++ b/Updated_Cms/app/Models/Game/Guild/Guild.php @@ -0,0 +1,18 @@ +hasMany(GuildMember::class); + } +} diff --git a/Updated_Cms/app/Models/Game/Guild/GuildMember.php b/Updated_Cms/app/Models/Game/Guild/GuildMember.php new file mode 100644 index 0000000000..6883f8042a --- /dev/null +++ b/Updated_Cms/app/Models/Game/Guild/GuildMember.php @@ -0,0 +1,20 @@ +hasMany(Guild::class); + } +} diff --git a/Updated_Cms/app/Models/Game/Permission.php b/Updated_Cms/app/Models/Game/Permission.php new file mode 100644 index 0000000000..f1c5d5d879 --- /dev/null +++ b/Updated_Cms/app/Models/Game/Permission.php @@ -0,0 +1,43 @@ +hasMany(User::class, 'rank', 'id'); + } + + public function roles(): HasMany + { + return $this->hasMany(PermissionRole::class); + } + + public function staffApplications(): HasMany + { + return $this->hasMany(StaffApplication::class, 'rank_id'); + } + + public function getBadgePath(): string + { + return sprintf('%s%s.gif', setting('badges_path'), $this->getBadgeName()); + } + + public function getBadgeName(): string + { + return $this->badge; + } +} diff --git a/Updated_Cms/app/Models/Game/Player/MessengerFriendship.php b/Updated_Cms/app/Models/Game/Player/MessengerFriendship.php new file mode 100644 index 0000000000..91b851debe --- /dev/null +++ b/Updated_Cms/app/Models/Game/Player/MessengerFriendship.php @@ -0,0 +1,15 @@ +belongsTo(User::class, 'user_two_id', 'id'); + } +} diff --git a/Updated_Cms/app/Models/Game/Player/UserBadge.php b/Updated_Cms/app/Models/Game/Player/UserBadge.php new file mode 100644 index 0000000000..9c3b1b97e2 --- /dev/null +++ b/Updated_Cms/app/Models/Game/Player/UserBadge.php @@ -0,0 +1,23 @@ +belongsTo(User::class, 'id'); + } +} diff --git a/Updated_Cms/app/Models/Game/Player/UserCurrency.php b/Updated_Cms/app/Models/Game/Player/UserCurrency.php new file mode 100644 index 0000000000..33d5df3ee0 --- /dev/null +++ b/Updated_Cms/app/Models/Game/Player/UserCurrency.php @@ -0,0 +1,23 @@ +belongsTo(User::class, 'user_id', 'id'); + } +} diff --git a/Updated_Cms/app/Models/Game/Player/UserSetting.php b/Updated_Cms/app/Models/Game/Player/UserSetting.php new file mode 100644 index 0000000000..9aded77977 --- /dev/null +++ b/Updated_Cms/app/Models/Game/Player/UserSetting.php @@ -0,0 +1,21 @@ +belongsTo(User::class); + } +} diff --git a/Updated_Cms/app/Models/Game/Player/UserSubscription.php b/Updated_Cms/app/Models/Game/Player/UserSubscription.php new file mode 100644 index 0000000000..faaf6e3eff --- /dev/null +++ b/Updated_Cms/app/Models/Game/Player/UserSubscription.php @@ -0,0 +1,19 @@ +belongsTo(User::class); + } +} diff --git a/Updated_Cms/app/Models/Game/Room.php b/Updated_Cms/app/Models/Game/Room.php new file mode 100644 index 0000000000..cd6cc76b1c --- /dev/null +++ b/Updated_Cms/app/Models/Game/Room.php @@ -0,0 +1,24 @@ +hasOne(Guild::class, 'room_id'); + } + + public function owner(): BelongsTo + { + return $this->belongsTo(User::class, 'owner_id', 'id'); + } +} diff --git a/Updated_Cms/app/Models/Help/WebsiteHelpCenterCategory.php b/Updated_Cms/app/Models/Help/WebsiteHelpCenterCategory.php new file mode 100644 index 0000000000..e3a1db4a83 --- /dev/null +++ b/Updated_Cms/app/Models/Help/WebsiteHelpCenterCategory.php @@ -0,0 +1,12 @@ +belongsTo(User::class); + } + + public function category(): BelongsTo + { + return $this->belongsTo(WebsiteHelpCenterCategory::class); + } + + public function replies(): HasMany + { + return $this->hasMany(WebsiteHelpCenterTicketReply::class, 'ticket_id'); + } + + public function canDeleteTicket() + { + return $this->user_id === Auth::id() || hasPermission('delete_website_tickets'); + } + + public function canManageTicket() + { + return $this->user_id === Auth::id() || hasPermission('manage_website_tickets'); + } + + public function canCloseTicket() + { + return $this->user_id === Auth::id() || hasPermission('manage_website_tickets'); + } + + public function isOpen() + { + return $this->open || hasPermission('manage_website_tickets'); + } + + protected function content(): \Illuminate\Database\Eloquent\Casts\Attribute + { + return \Illuminate\Database\Eloquent\Casts\Attribute::make(get: fn($value) => Purify::clean($value)); + } +} diff --git a/Updated_Cms/app/Models/Help/WebsiteHelpCenterTicketCategories.php b/Updated_Cms/app/Models/Help/WebsiteHelpCenterTicketCategories.php new file mode 100644 index 0000000000..b28e8cb1d2 --- /dev/null +++ b/Updated_Cms/app/Models/Help/WebsiteHelpCenterTicketCategories.php @@ -0,0 +1,10 @@ +belongsTo(WebsiteHelpCenterTicket::class, 'ticket_id'); + } + + public function user(): BelongsTo + { + return $this->belongsTo(User::class, 'user_id'); + } + + public function canDeleteReply() + { + return $this->user_id === Auth::id() || hasPermission('delete_website_ticket_replies'); + } + + protected function content(): \Illuminate\Database\Eloquent\Casts\Attribute + { + return \Illuminate\Database\Eloquent\Casts\Attribute::make(get: fn($value) => Purify::clean($value)); + } +} diff --git a/Updated_Cms/app/Models/Help/WebsiteHelpCenterTicketStatus.php b/Updated_Cms/app/Models/Help/WebsiteHelpCenterTicketStatus.php new file mode 100644 index 0000000000..5e2980a9d4 --- /dev/null +++ b/Updated_Cms/app/Models/Help/WebsiteHelpCenterTicketStatus.php @@ -0,0 +1,10 @@ +belongsTo(WebsiteRuleCategory::class, 'category_id'); + } +} diff --git a/Updated_Cms/app/Models/Help/WebsiteRuleCategory.php b/Updated_Cms/app/Models/Help/WebsiteRuleCategory.php new file mode 100644 index 0000000000..9744d5d44b --- /dev/null +++ b/Updated_Cms/app/Models/Help/WebsiteRuleCategory.php @@ -0,0 +1,16 @@ +hasMany(WebsiteRule::class, 'category_id'); + } +} diff --git a/Updated_Cms/app/Models/ItemDefinition.php b/Updated_Cms/app/Models/ItemDefinition.php new file mode 100644 index 0000000000..1abefed77f --- /dev/null +++ b/Updated_Cms/app/Models/ItemDefinition.php @@ -0,0 +1,20 @@ +hasMany(UserItem::class, 'item_id'); + } +} diff --git a/Updated_Cms/app/Models/Miscellaneous/CameraWeb.php b/Updated_Cms/app/Models/Miscellaneous/CameraWeb.php new file mode 100644 index 0000000000..8545804f39 --- /dev/null +++ b/Updated_Cms/app/Models/Miscellaneous/CameraWeb.php @@ -0,0 +1,70 @@ +where('timestamp', '>=', \Illuminate\Support\Facades\Date::today()->timestamp); + } + + if ($period == 'last_week') { + $query->whereBetween('timestamp', [now()->subWeek()->timestamp, now()->timestamp]); + } + + if ($period == 'last_month') { + $query->whereBetween('timestamp', [now()->subMonth()->timestamp, now()->timestamp]); + } + } + + public function user(): BelongsTo + { + return $this->belongsTo(User::class); + } + + public function room(): BelongsTo + { + return $this->belongsTo(Room::class); + } + + public function likes(): HasMany + { + return $this->hasMany(CameraLike::class); + } + + public function views(): HasMany + { + return $this->hasMany(CameraView::class); + } + + protected function formattedDate(): Attribute + { + return new Attribute( + get: fn () => \Illuminate\Support\Facades\Date::parse($this->timestamp)->format('Y-m-d H:i'), + ); + } + protected function casts(): array + { + return [ + 'timestamp' => 'datetime', + ]; + } +} diff --git a/Updated_Cms/app/Models/Miscellaneous/WebsiteBetaCode.php b/Updated_Cms/app/Models/Miscellaneous/WebsiteBetaCode.php new file mode 100644 index 0000000000..b4a90126a8 --- /dev/null +++ b/Updated_Cms/app/Models/Miscellaneous/WebsiteBetaCode.php @@ -0,0 +1,17 @@ +belongsTo(User::class); + } +} diff --git a/Updated_Cms/app/Models/Miscellaneous/WebsiteInstallation.php b/Updated_Cms/app/Models/Miscellaneous/WebsiteInstallation.php new file mode 100644 index 0000000000..eb15de5d94 --- /dev/null +++ b/Updated_Cms/app/Models/Miscellaneous/WebsiteInstallation.php @@ -0,0 +1,12 @@ +belongsTo(User::class); + } +} diff --git a/Updated_Cms/app/Models/Miscellaneous/WebsitePermission.php b/Updated_Cms/app/Models/Miscellaneous/WebsitePermission.php new file mode 100644 index 0000000000..a69a6dc00e --- /dev/null +++ b/Updated_Cms/app/Models/Miscellaneous/WebsitePermission.php @@ -0,0 +1,10 @@ +belongsTo(User::class, 'email', 'mail'); + } + protected function casts(): array + { + return [ + 'created_at' => 'date', + ]; + } +} diff --git a/Updated_Cms/app/Models/Room.php b/Updated_Cms/app/Models/Room.php new file mode 100644 index 0000000000..4442538d23 --- /dev/null +++ b/Updated_Cms/app/Models/Room.php @@ -0,0 +1,57 @@ +belongsTo(User::class, 'owner_id'); + } + + public function items(): HasMany + { + return $this->hasMany(UserItem::class); + } + + public function replicateForUser(User $user): self + { + $replicatedRoom = $this->replicate(); + + $replicatedRoom->owner_id = $user->id; + $replicatedRoom->owner_name = $user->username; + $replicatedRoom->score = 0; + $replicatedRoom->guild_id = 0; + $replicatedRoom->is_public = '0'; + $replicatedRoom->is_staff_picked = '0'; + + $replicatedRoom->save(); + + $items = []; + + foreach ($this->items as $item) { + $replicatedItem = $item->replicate(); + + $replicatedItem->user_id = $user->id; + $replicatedItem->room_id = $replicatedRoom->id; + + $items[] = $replicatedItem; + } + + $replicatedRoom->items()->saveMany($items); + + return $replicatedRoom; + } +} diff --git a/Updated_Cms/app/Models/Session.php b/Updated_Cms/app/Models/Session.php new file mode 100644 index 0000000000..0cf61d206c --- /dev/null +++ b/Updated_Cms/app/Models/Session.php @@ -0,0 +1,12 @@ +belongsTo(User::class); + } +} diff --git a/Updated_Cms/app/Models/Shop/WebsiteShopArticle.php b/Updated_Cms/app/Models/Shop/WebsiteShopArticle.php new file mode 100644 index 0000000000..fe22e6f949 --- /dev/null +++ b/Updated_Cms/app/Models/Shop/WebsiteShopArticle.php @@ -0,0 +1,46 @@ +furniture) { + return collect(); + } + + $furniture = json_decode($this->furniture, true); + $furnitureIds = array_column($furniture, 'item_id'); + + return ItemBase::whereIn('id', $furnitureIds)->get(); + } + + public function rank(): HasOne + { + return $this->hasOne(Permission::class, 'id', 'give_rank'); + } + + public function features(): HasMany + { + return $this->HasMany(WebsiteShopArticleFeature::class, 'article_id', 'id'); + } + + public function price(): float|int + { + if ($this->costs < 100) { + return 1; + } + + return $this->costs / 100; + } +} diff --git a/Updated_Cms/app/Models/Shop/WebsiteShopArticleFeature.php b/Updated_Cms/app/Models/Shop/WebsiteShopArticleFeature.php new file mode 100644 index 0000000000..9551d3adce --- /dev/null +++ b/Updated_Cms/app/Models/Shop/WebsiteShopArticleFeature.php @@ -0,0 +1,16 @@ +belongsTo(WebsiteShopArticle::class, 'article_id', 'id'); + } +} diff --git a/Updated_Cms/app/Models/Shop/WebsiteShopCategory.php b/Updated_Cms/app/Models/Shop/WebsiteShopCategory.php new file mode 100644 index 0000000000..cb5af56dd2 --- /dev/null +++ b/Updated_Cms/app/Models/Shop/WebsiteShopCategory.php @@ -0,0 +1,16 @@ +hasMany(WebsiteShopArticle::class); + } +} diff --git a/Updated_Cms/app/Models/Shop/WebsiteShopVoucher.php b/Updated_Cms/app/Models/Shop/WebsiteShopVoucher.php new file mode 100644 index 0000000000..b4cac193cf --- /dev/null +++ b/Updated_Cms/app/Models/Shop/WebsiteShopVoucher.php @@ -0,0 +1,17 @@ + 'datetime', + ]; + } +} diff --git a/Updated_Cms/app/Models/Shop/WebsiteUsedShopVoucher.php b/Updated_Cms/app/Models/Shop/WebsiteUsedShopVoucher.php new file mode 100644 index 0000000000..83e6ec010b --- /dev/null +++ b/Updated_Cms/app/Models/Shop/WebsiteUsedShopVoucher.php @@ -0,0 +1,16 @@ +hasMany(WebsiteUsedShopVoucher::class, 'voucher_id'); + } +} diff --git a/Updated_Cms/app/Models/User.php b/Updated_Cms/app/Models/User.php new file mode 100644 index 0000000000..7fdfaa28eb --- /dev/null +++ b/Updated_Cms/app/Models/User.php @@ -0,0 +1,300 @@ + 'datetime', + 'password' => 'hashed', + 'hidden_staff' => 'boolean', + 'online' => 'boolean', + ]; + } + + public function currencies(): HasMany + { + return $this->hasMany(UserCurrency::class, 'user_id'); + } + + public function sessions() + { + return $this->hasMany(Session::class); + } + + public function currency(string $currency) + { + if (! $this->relationLoaded('currencies')) { + $this->load('currencies'); + } + + $type = match ($currency) { + 'duckets' => 0, + 'diamonds' => 5, + 'points' => 101, + }; + + return $this->currencies->where('type', $type)->first()->amount ?? 0; + } + + public function permission(): HasOne + { + return $this->hasOne(Permission::class, 'id', 'rank'); + } + + public function articles(): HasMany + { + return $this->hasMany(WebsiteArticle::class); + } + + public function referrals(): HasOne + { + return $this->hasOne(UserReferral::class); + } + + public function userReferrals(): HasMany + { + return $this->hasMany(Referral::class); + } + + public function claimedReferralLog(): HasMany + { + return $this->hasMany(ClaimedReferralLog::class); + } + + public function badges(): HasMany + { + return $this->hasMany(UserBadge::class); + } + + public function rooms(): HasMany + { + return $this->hasMany(Room::class, 'owner_id'); + } + + public function friends(): HasMany + { + return $this->hasMany(MessengerFriendship::class, 'user_one_id'); + } + + public function referralsNeeded() + { + $referrals = 0; + + if (! is_null($this->referrals)) { + $referrals = $this->referrals->referrals_total; + } + + return setting('referrals_needed') - $referrals; + } + + public function ban(): HasOne + { + return $this->hasOne(Ban::class, 'user_id')->where('ban_expire', '>', time())->whereIn('type', ['account', 'super']); + } + + public function settings(): HasOne + { + return $this->hasOne(UserSetting::class); + } + + public function ssoTicket(): string + { + $sso = sprintf('%s-%s', Str::replace(' ', '', setting('hotel_name')), Str::uuid()); + + if (User::where('auth_ticket', $sso)->exists()) { + return $this->ssoTicket(); + } + + $this->update([ + 'auth_ticket' => $sso, + ]); + + return $sso; + } + + public function betaCode(): HasOne + { + return $this->hasOne(WebsiteBetaCode::class); + } + + public function team(): BelongsTo + { + return $this->belongsTo(WebsiteTeam::class, 'team_id'); + } + + public function applications(): HasMany + { + return $this->hasMany(WebsiteStaffApplications::class, 'user_id'); + } + + public function hcSubscription(): HasOne + { + return $this->hasOne(UserSubscription::class); + } + + public function articleComments(): HasMany + { + return $this->hasMany(WebsiteArticleComment::class); + } + + public function transactions(): HasMany + { + return $this->hasMany(WebsitePaypalTransaction::class); + } + + public function usedShopVouchers(): HasMany + { + return $this->hasMany(WebsiteUsedShopVoucher::class); + } + + public function items(): HasMany + { + return $this->hasMany(Item::class, 'user_id'); + } + + public function tickets(): HasMany + { + return $this->hasMany(WebsiteHelpCenterTicket::class); + } + + public function photos(): HasMany + { + return $this->hasMany(CameraWeb::class); + } + + public function profileGuestbook(): HasMany + { + return $this->hasMany(WebsiteUserGuestbook::class, 'profile_id'); + } + + public function guestbook(): HasMany + { + return $this->hasMany(WebsiteUserGuestbook::class, 'user_id'); + } + + public function chatLogs() + { + return $this->hasMany(ChatlogRoom::class, 'user_from_id'); + } + + public function chatLogsPrivate() + { + return $this->hasMany(ChatlogPrivate::class, 'user_from_id'); + } + + public function getOnlineFriends(int $total = 10) + { + return $this->friends() + ->select(['user_two_id', 'users.id', 'users.username', 'users.look', 'users.motto', 'users.last_online']) + ->join('users', 'users.id', '=', 'user_two_id') + ->where('users.online', '1') + ->inRandomOrder() + ->limit($total) + ->get(); + } + + public function confirmTwoFactorAuthentication($code) + { + $codeIsValid = app(TwoFactorAuthenticationProvider::class) + ->verify(decrypt($this->two_factor_secret), $code); + + if (! $codeIsValid) { + return false; + } + + $this->update([ + 'two_factor_confirmed' => true, + ]); + + return true; + } + + public function hasAppliedForPosition(int $rankId) + { + return $this->applications()->where('rank_id', '=', $rankId)->exists(); + } + + public function changePassword(string $newPassword) + { + $this->password = Hash::make($newPassword); + $this->save(); + } + + public function getFilamentName(): string + { + return $this->username ?? 'Guest'; + } + + public function canAccessPanel(Panel $panel): bool + { + return hasHousekeepingPermission('can_access_housekeeping'); + } + + public function getActivitylogOptions(): LogOptions + { + return LogOptions::defaults() + ->logOnly(['id', 'username', 'motto', 'rank', 'credits']) + ->logOnlyDirty() + ->dontSubmitEmptyLogs(); + } + + #[\Override] + public function save(array $options = []) + { + if (! $this->isDirty()) { + return false; + } + + return parent::save($options); + } +} diff --git a/Updated_Cms/app/Models/User/Ban.php b/Updated_Cms/app/Models/User/Ban.php new file mode 100644 index 0000000000..e1e26b0e7d --- /dev/null +++ b/Updated_Cms/app/Models/User/Ban.php @@ -0,0 +1,34 @@ +belongsTo(User::class); + } + + public function staff(): BelongsTo + { + return $this->belongsTo(User::class, 'user_staff_id'); + } + + public function getActivitylogOptions(): LogOptions + { + return LogOptions::defaults() + ->logOnly(['user_id', 'ip', 'ban_expire', 'ban_reason', 'type']); + } +} diff --git a/Updated_Cms/app/Models/User/ClaimedReferralLog.php b/Updated_Cms/app/Models/User/ClaimedReferralLog.php new file mode 100644 index 0000000000..c565341cb2 --- /dev/null +++ b/Updated_Cms/app/Models/User/ClaimedReferralLog.php @@ -0,0 +1,17 @@ +belongsTo(User::class); + } +} diff --git a/Updated_Cms/app/Models/User/Referral.php b/Updated_Cms/app/Models/User/Referral.php new file mode 100644 index 0000000000..95c778df0a --- /dev/null +++ b/Updated_Cms/app/Models/User/Referral.php @@ -0,0 +1,10 @@ +belongsTo(User::class); + } +} diff --git a/Updated_Cms/app/Models/User/WebsiteUserGuestbook.php b/Updated_Cms/app/Models/User/WebsiteUserGuestbook.php new file mode 100644 index 0000000000..5528e42f8a --- /dev/null +++ b/Updated_Cms/app/Models/User/WebsiteUserGuestbook.php @@ -0,0 +1,22 @@ +belongsTo(User::class, 'profile_id'); + } + + public function user(): BelongsTo + { + return $this->belongsTo(User::class, 'user_id'); + } +} diff --git a/Updated_Cms/app/Models/WebsiteAd.php b/Updated_Cms/app/Models/WebsiteAd.php new file mode 100644 index 0000000000..9d7c49f724 --- /dev/null +++ b/Updated_Cms/app/Models/WebsiteAd.php @@ -0,0 +1,67 @@ + $settingsService->getOrDefault('ads_picture_path')); + if (! str_starts_with((string) $adsPicturePath, 'http')) { + $adsPicturePath = rtrim((string) config('app.url'), '/') . '/' . ltrim((string) $adsPicturePath, '/'); + } + return rtrim((string) $adsPicturePath, '/') . '/' . $this->image; + }); + } + + #[\Override] + protected static function booted() + { + static::deleting(function ($websiteAd): void { + try { + $websiteAd->configureAdsDisk(); + + logger()->info('Attempting to delete image file:', ['file' => $websiteAd->image]); + + if ($websiteAd->image && Storage::disk('ads')->exists($websiteAd->image)) { + Storage::disk('ads')->delete($websiteAd->image); + logger()->info('Image file deleted:', ['file' => $websiteAd->image]); + } else { + logger()->warning('Image file not found:', ['file' => $websiteAd->image]); + } + } catch (Exception $e) { + logger()->error('Failed to delete image file:', [ + 'file' => $websiteAd->image, + 'error' => $e->getMessage(), + ]); + } + }); + } + + protected function configureAdsDisk(): void + { + $settingsService = app(SettingsService::class); + + $adsPath = Cache::remember('ads_path_filesystem', 3600, fn () => $settingsService->getOrDefault('ads_path_filesystem')); + + config(['filesystems.disks.ads' => [ + 'driver' => 'local', + 'root' => $adsPath, + ]]); + } +} diff --git a/Updated_Cms/app/Models/WebsiteBadge.php b/Updated_Cms/app/Models/WebsiteBadge.php new file mode 100644 index 0000000000..ac6e646a6b --- /dev/null +++ b/Updated_Cms/app/Models/WebsiteBadge.php @@ -0,0 +1,17 @@ +belongsTo(User::class, 'user_id'); + } +} diff --git a/Updated_Cms/app/Models/WebsiteHousekeepingPermission.php b/Updated_Cms/app/Models/WebsiteHousekeepingPermission.php new file mode 100644 index 0000000000..ea9ee08105 --- /dev/null +++ b/Updated_Cms/app/Models/WebsiteHousekeepingPermission.php @@ -0,0 +1,10 @@ +logAll(); + } +} diff --git a/Updated_Cms/app/Observers/UserObserver.php b/Updated_Cms/app/Observers/UserObserver.php new file mode 100644 index 0000000000..b1d7de948f --- /dev/null +++ b/Updated_Cms/app/Observers/UserObserver.php @@ -0,0 +1,27 @@ +settings()->create([ + 'last_hc_payday' => $isHcEnabled ? now()->addYears(10)->unix() : 0, + ]); + + if ($isHcEnabled) { + $user->hcSubscription()->insert([ + 'user_id' => $user->id, + 'subscription_type' => 'HABBO_CLUB', + 'timestamp_start' => now()->unix(), + 'timestamp_expire' => now()->addYears(10)->unix(), + ]); + } + } +} diff --git a/Updated_Cms/app/Observers/WebsiteDrawBadgeObserver.php b/Updated_Cms/app/Observers/WebsiteDrawBadgeObserver.php new file mode 100644 index 0000000000..17671a303c --- /dev/null +++ b/Updated_Cms/app/Observers/WebsiteDrawBadgeObserver.php @@ -0,0 +1,69 @@ +wasChanged() || ! $websiteDrawBadge->badge_path) { + return; + } + + $badgeCode = pathinfo($websiteDrawBadge->badge_path, PATHINFO_FILENAME); + + if (! $websiteDrawBadge->published) { + DB::table('users_badges') + ->where('user_id', $websiteDrawBadge->user_id) + ->where('badge_code', $badgeCode) + ->delete(); + + // Remove from JSON + $this->updateExternalTexts(false, $badgeCode); + + return; + } + + $exists = DB::table('users_badges') + ->where('user_id', $websiteDrawBadge->user_id) + ->where('badge_code', $badgeCode) + ->exists(); + + if (! $exists) { + DB::table('users_badges')->insert([ + 'user_id' => $websiteDrawBadge->user_id, + 'slot_id' => 0, + 'badge_code' => $badgeCode, + ]); + } + + // Add to JSON + $this->updateExternalTexts(true, $badgeCode, $websiteDrawBadge->badge_name, $websiteDrawBadge->badge_desc); + } + + protected function updateExternalTexts(bool $add, string $badgeCode, ?string $name = null, ?string $desc = null): void + { + $filePath = DB::table('website_settings')->where('key', 'nitro_external_texts_file')->value('value'); + + if (! $filePath || ! file_exists($filePath) || ! is_writable($filePath)) { + return; + } + + $json = json_decode(file_get_contents($filePath), true); + + if ($add) { + $json = array_merge($json, [ + "badge_name_{$badgeCode}" => $name, + "badge_desc_{$badgeCode}" => $desc, + ]); + } else { + unset($json["badge_name_{$badgeCode}"]); + unset($json["badge_desc_{$badgeCode}"]); + } + + file_put_contents($filePath, json_encode($json, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES)); + } +} diff --git a/Updated_Cms/app/Policies/AchievementPolicy.php b/Updated_Cms/app/Policies/AchievementPolicy.php new file mode 100644 index 0000000000..1d5fa946e7 --- /dev/null +++ b/Updated_Cms/app/Policies/AchievementPolicy.php @@ -0,0 +1,30 @@ +app->bind( + Vite::class, + ViteService::class, + ); + + $this->app->singleton( + SettingsService::class, + fn () => new SettingsService, + ); + + $this->app->singleton( + PermissionsService::class, + fn () => new PermissionsService, + ); + + $this->app->singleton( + RconService::class, + fn () => new RconService, + ); + } + + /** + * Bootstrap any application services. + */ + public function boot(): void + { + if (config('habbo.site.force_https')) { + URL::forceScheme('https'); + } + + Table::configureUsing(function (Table $table): void { + $table->paginated([10, 25, 50]); + }); + + $settingsService = app(SettingsService::class); + $badgePath = $settingsService->getOrDefault('badge_path_filesystem', '/var/www/gamedata/c_images/album1584'); + Config::set('filesystems.disks.badges.root', $badgePath); + + $adsPath = $settingsService->getOrDefault('ads_path_filesystem', '/var/www/gamedata/custom'); + Config::set('filesystems.disks.ads.root', $adsPath); + + WebsiteDrawBadge::observe(WebsiteDrawBadgeObserver::class); + } +} diff --git a/Updated_Cms/app/Providers/AuthServiceProvider.php b/Updated_Cms/app/Providers/AuthServiceProvider.php new file mode 100644 index 0000000000..9a46369f64 --- /dev/null +++ b/Updated_Cms/app/Providers/AuthServiceProvider.php @@ -0,0 +1,29 @@ + + */ + protected $policies = [ + // 'App\Models\Model' => 'App\Policies\ModelPolicy', + Activity::class => ActivityPolicy::class, + ]; + + /** + * Register any authentication / authorization services. + */ + public function boot(): void + { + // + } +} diff --git a/Updated_Cms/app/Providers/BroadcastServiceProvider.php b/Updated_Cms/app/Providers/BroadcastServiceProvider.php new file mode 100644 index 0000000000..2be04f5d9d --- /dev/null +++ b/Updated_Cms/app/Providers/BroadcastServiceProvider.php @@ -0,0 +1,19 @@ +> + */ + protected $listen = [ + Registered::class => [ + SendEmailVerificationNotification::class, + ], + ]; + + protected $observers = [ + User::class => [UserObserver::class], + ]; + + /** + * Register any events for your application. + */ + #[\Override] + public function boot(): void {} + + /** + * Determine if events and listeners should be automatically discovered. + */ + #[\Override] + public function shouldDiscoverEvents(): bool + { + return false; + } +} diff --git a/Updated_Cms/app/Providers/Filament/AdminFilamentPanelProvider.php b/Updated_Cms/app/Providers/Filament/AdminFilamentPanelProvider.php new file mode 100644 index 0000000000..3773447779 --- /dev/null +++ b/Updated_Cms/app/Providers/Filament/AdminFilamentPanelProvider.php @@ -0,0 +1,60 @@ +default() + ->id('housekeeping') + ->path('housekeeping') + ->login() + ->colors([ + 'primary' => Color::Amber, + ]) + ->discoverResources(in: app_path('Filament/Resources'), for: 'App\\Filament\\Resources') + ->discoverPages(in: app_path('Filament/Pages'), for: 'App\\Filament\\Pages') + ->pages([ + Dashboard::class, + ]) + ->discoverWidgets(in: app_path('Filament/Widgets'), for: 'App\\Filament\\Widgets') + ->widgets([ + AccountWidget::class, + FilamentInfoWidget::class, + ]) + ->middleware([ + EncryptCookies::class, + AddQueuedCookiesToResponse::class, + StartSession::class, + AuthenticateSession::class, + ShareErrorsFromSession::class, + VerifyCsrfToken::class, + SubstituteBindings::class, + DisableBladeIconComponents::class, + DispatchServingFilamentEvent::class, + ]) + ->authMiddleware([ + Authenticate::class, + ]) + ->plugins([]); + } +} diff --git a/Updated_Cms/app/Providers/FortifyServiceProvider.php b/Updated_Cms/app/Providers/FortifyServiceProvider.php new file mode 100644 index 0000000000..321363a143 --- /dev/null +++ b/Updated_Cms/app/Providers/FortifyServiceProvider.php @@ -0,0 +1,95 @@ +app->singleton( + \Laravel\Fortify\Actions\DisableTwoFactorAuthentication::class, + DisableTwoFactorAuthentication::class, + ); + } + + /** + * Bootstrap any application services. + */ + public function boot(): void + { + Fortify::createUsersUsing(CreateNewUser::class); + + RateLimiter::for('login', fn (Request $request) => Limit::perMinute(5)->by($request->input('username') . $request->ip())); + + RateLimiter::for('two-factor', fn (Request $request) => Limit::perMinute(5)->by($request->session()->get('login.id'))); + + Fortify::loginView(fn () => view(\Illuminate\Auth\Events\Login::class, [ + 'articles' => WebsiteArticle::latest('id') + ->take(4) + ->has('user') + ->with('user:id,username,look') + ->get(), + 'photos' => CameraWeb::latest('id') + ->take(4) + ->with('user:id,username,look') + ->get(), + ])); + + Fortify::registerView(function (Request $request) { + if (setting('disable_registration') === '1') { + return to_route('welcome')->withErrors([ + 'register' => __('Registration is currently disabled.'), + ]); + } + + return view('auth.register', [ + 'referral_code' => $request->route('referral_code'), + 'articles' => WebsiteArticle::latest('id') + ->take(4) + ->has('user') + ->with('user:id,username,look') + ->get(), + 'photos' => CameraWeb::latest('id') + ->take(2) + ->with('user:id,username,look') + ->get(), + ]); + }); + + Fortify::confirmPasswordView(fn () => view('auth.passwords.confirm')); + + Fortify::twoFactorChallengeView(fn () => view('auth.two-factor-challenge')); + + $this->authenticate(); + } + + private function authenticate() + { + Fortify::authenticateThrough(fn () => array_filter([ + config('fortify.limiters.login') ? null : EnsureLoginIsNotThrottled::class, + + Features::enabled(Features::twoFactorAuthentication()) ? RedirectIfTwoFactorConfirmed::class : null, + AttemptToAuthenticate::class, + PrepareAuthenticatedSession::class, + ])); + } +} diff --git a/Updated_Cms/app/Providers/RouteServiceProvider.php b/Updated_Cms/app/Providers/RouteServiceProvider.php new file mode 100644 index 0000000000..f71b6f6a6a --- /dev/null +++ b/Updated_Cms/app/Providers/RouteServiceProvider.php @@ -0,0 +1,47 @@ +configureRateLimiting(); + + $this->routes(function (): void { + Route::middleware('api') + ->prefix('api') + ->group(base_path('routes/api.php')); + + Route::middleware('web') + ->group(base_path('routes/web.php')); + }); + } + + /** + * Configure the rate limiters for the application. + */ + protected function configureRateLimiting(): void + { + RateLimiter::for('api', fn (Request $request) => Limit::perMinute(60)->by($request->user()?->id ?: $request->ip())); + } +} diff --git a/Updated_Cms/app/Rules/BetaCodeRule.php b/Updated_Cms/app/Rules/BetaCodeRule.php new file mode 100644 index 0000000000..c2f02aba61 --- /dev/null +++ b/Updated_Cms/app/Rules/BetaCodeRule.php @@ -0,0 +1,17 @@ +whereNull('user_id')->doesntExist()) { + $fail(__('The beta code is invalid.')); + } + } +} diff --git a/Updated_Cms/app/Rules/CurrentPasswordRule.php b/Updated_Cms/app/Rules/CurrentPasswordRule.php new file mode 100644 index 0000000000..b1e7e4b519 --- /dev/null +++ b/Updated_Cms/app/Rules/CurrentPasswordRule.php @@ -0,0 +1,21 @@ +password)) { + $fail('It seems like your current password is wrong.'); + } + } +} diff --git a/Updated_Cms/app/Rules/GoogleRecaptchaRule.php b/Updated_Cms/app/Rules/GoogleRecaptchaRule.php new file mode 100644 index 0000000000..38a8f8a63b --- /dev/null +++ b/Updated_Cms/app/Rules/GoogleRecaptchaRule.php @@ -0,0 +1,38 @@ +request( + 'POST', 'https://www.google.com/recaptcha/api/siteverify', [ + 'form_params' => [ + 'secret' => config('habbo.site.recaptcha_secret_key'), + 'response' => $value, + 'remoteip' => request()->ip(), + ], + ], + ); + + if ($response->getStatusCode() !== 200) { + $fail(__('The Google recaptcha was not successful.')); + } + + $body = json_decode((string) $response->getBody()); + + return $body->success; + } +} diff --git a/Updated_Cms/app/Rules/Password.php b/Updated_Cms/app/Rules/Password.php new file mode 100644 index 0000000000..4bc10cdc31 --- /dev/null +++ b/Updated_Cms/app/Rules/Password.php @@ -0,0 +1,180 @@ +requireUppercase && Str::lower($value) === $value) { + return false; + } + + if ($this->requireNumeric && ! preg_match('/\d/', $value)) { + return false; + } + + if ($this->requireSpecialCharacter && ! preg_match('/[\W_]/', $value)) { + return false; + } + + return Str::length($value) >= $this->length; + } + + /** + * Get the validation error message. + */ + public function message(): string + { + if ($this->message) { + return $this->message; + } + + return match (true) { + $this->requireUppercase + && ! $this->requireNumeric + && ! $this->requireSpecialCharacter => __( + 'The :attribute must be at least :length characters and contain at least one uppercase character.', + [ + 'length' => $this->length, + ], + ), + $this->requireNumeric + && ! $this->requireUppercase + && ! $this->requireSpecialCharacter => __( + 'The :attribute must be at least :length characters and contain at least one number.', + [ + 'length' => $this->length, + ], + ), + $this->requireSpecialCharacter + && ! $this->requireUppercase + && ! $this->requireNumeric => __( + 'The :attribute must be at least :length characters and contain at least one special character.', + [ + 'length' => $this->length, + ], + ), + $this->requireUppercase + && $this->requireNumeric + && ! $this->requireSpecialCharacter => __( + 'The :attribute must be at least :length characters and contain at least one uppercase character and one number.', + [ + 'length' => $this->length, + ], + ), + $this->requireUppercase + && $this->requireSpecialCharacter + && ! $this->requireNumeric => __( + 'The :attribute must be at least :length characters and contain at least one uppercase character and one special character.', + [ + 'length' => $this->length, + ], + ), + $this->requireUppercase + && $this->requireNumeric + && $this->requireSpecialCharacter => __( + 'The :attribute must be at least :length characters and contain at least one uppercase character, one number, and one special character.', + [ + 'length' => $this->length, + ], + ), + $this->requireNumeric + && $this->requireSpecialCharacter + && ! $this->requireUppercase => __( + 'The :attribute must be at least :length characters and contain at least one special character and one number.', + [ + 'length' => $this->length, + ], + ), + default => __('The :attribute must be at least :length characters.', [ + 'length' => $this->length, + ]), + }; + } + + /** + * Set the minimum length of the password. + */ + public function length(int $length) + { + $this->length = $length; + + return $this; + } + + /** + * Indicate that at least one uppercase character is required. + */ + public function requireUppercase(): static + { + $this->requireUppercase = true; + + return $this; + } + + /** + * Indicate that at least one numeric digit is required. + */ + public function requireNumeric(): static + { + $this->requireNumeric = true; + + return $this; + } + + /** + * Indicate that at least one special character is required. + */ + public function requireSpecialCharacter(): static + { + $this->requireSpecialCharacter = true; + + return $this; + } + + /** + * Set the message that should be used when the rule fails. + */ + public function withMessage(string $message): static + { + $this->message = $message; + + return $this; + } +} diff --git a/Updated_Cms/app/Rules/TurnstileCheck.php b/Updated_Cms/app/Rules/TurnstileCheck.php new file mode 100644 index 0000000000..c546420bec --- /dev/null +++ b/Updated_Cms/app/Rules/TurnstileCheck.php @@ -0,0 +1,19 @@ +installation_key) { + $fail('The :attribute does not match'); + } + } +} diff --git a/Updated_Cms/app/Rules/WebsiteWordfilterRule.php b/Updated_Cms/app/Rules/WebsiteWordfilterRule.php new file mode 100644 index 0000000000..1970129f8f --- /dev/null +++ b/Updated_Cms/app/Rules/WebsiteWordfilterRule.php @@ -0,0 +1,22 @@ +pluck('word') + ->toArray(); + + if (setting('website_wordfilter_enabled') === '1' && in_array(strtolower((string) $value), $words) || Str::contains(strtolower((string) $value), $words)) { + $fail(__('You entered something that is not allowed on :hotel', ['hotel' => setting('hotel_name')])); + } + } +} diff --git a/Updated_Cms/app/Services/Articles/ArticleService.php b/Updated_Cms/app/Services/Articles/ArticleService.php new file mode 100644 index 0000000000..06f9d2a176 --- /dev/null +++ b/Updated_Cms/app/Services/Articles/ArticleService.php @@ -0,0 +1,24 @@ + function ($query): void { + $query->select('id', 'username', 'look'); + }])->orderByDesc('id'); + + return $paginate ? $query->paginate($perPage) : $query->get(); + } + + public function fetchArticle(string $slug): WebsiteArticle + { + return WebsiteArticle::where('slug', '=', $slug)->firstOrFail(); + } +} diff --git a/Updated_Cms/app/Services/Articles/CommentService.php b/Updated_Cms/app/Services/Articles/CommentService.php new file mode 100644 index 0000000000..a6e618784f --- /dev/null +++ b/Updated_Cms/app/Services/Articles/CommentService.php @@ -0,0 +1,48 @@ +userHasReachedArticleCommentLimit()) { + return back()->withErrors([ + 'message' => __('You can only comment :amount times per article', ['amount' => setting('max_comment_per_article')]), + ]); + } + + if (! $article->can_comment) { + return back()->withErrors([ + 'message' => __('This article has been locked from receiving comments'), + ]); + } + + return $article->comments()->create([ + 'user_id' => Auth::id(), + 'comment' => $comment, + ]); + } + + public function destroy(WebsiteArticleComment $comment): bool|RedirectResponse|null + { + if (! $comment->canBeDeleted()) { + return back()->withErrors([ + 'message' => __('You can only delete your own comments'), + ]); + } + + if (! $comment->delete()) { + return back()->withErrors([ + 'message' => __('An error occurred while deleting the comment'), + ]); + } + + return $comment->delete(); + } +} diff --git a/Updated_Cms/app/Services/Articles/ReactionService.php b/Updated_Cms/app/Services/Articles/ReactionService.php new file mode 100644 index 0000000000..1f61410245 --- /dev/null +++ b/Updated_Cms/app/Services/Articles/ReactionService.php @@ -0,0 +1,36 @@ +get('reaction'); + + if (! is_string($reaction) || ! in_array($reaction, config('habbo.reactions'))) { + return ['success' => false]; + } + + $existingReaction = WebsiteArticleReaction::getReaction($article->id, $user->id, $reaction); + + if ($existingReaction instanceof \App\Models\Articles\WebsiteArticleReaction) { + $existingReaction->update(['active' => ! $existingReaction->active]); + } else { + $article->reactions()->create([ + 'reaction' => $reaction, + ]); + } + + return [ + 'success' => true, + 'added' => $existingReaction?->active ?? true, + 'username' => $user->username, + ]; + } +} diff --git a/Updated_Cms/app/Services/Community/CameraService.php b/Updated_Cms/app/Services/Community/CameraService.php new file mode 100644 index 0000000000..7ed67b9937 --- /dev/null +++ b/Updated_Cms/app/Services/Community/CameraService.php @@ -0,0 +1,17 @@ +latest('id') + ->with('user:id,username,look'); + + return $paginate ? $photos->paginate($perPage) : $photos->get(); + } +} diff --git a/Updated_Cms/app/Services/Community/RareValues/RareValueCategoriesService.php b/Updated_Cms/app/Services/Community/RareValues/RareValueCategoriesService.php new file mode 100644 index 0000000000..ba57696532 --- /dev/null +++ b/Updated_Cms/app/Services/Community/RareValues/RareValueCategoriesService.php @@ -0,0 +1,36 @@ +with('furniture')->get(); + } + + public function fetchCategoryById(int $id): ?WebsiteRareValueCategory + { + return WebsiteRareValueCategory::orderBy('priority')->whereId($id)->with('furniture')->first(); + } + + public function searchCategories(string $searchTerm): Collection + { + return WebsiteRareValueCategory::orderBy('priority')->whereHas('furniture', function ($query) use ($searchTerm): void { + $query->where('name', 'like', '%' . $searchTerm . '%'); + }) + ->with(['furniture' => function ($query) use ($searchTerm): void { + $query->where('name', 'like', '%' . $searchTerm . '%'); + }]) + ->get(); + } +} diff --git a/Updated_Cms/app/Services/Community/RareValues/RareValuesService.php b/Updated_Cms/app/Services/Community/RareValues/RareValuesService.php new file mode 100644 index 0000000000..2af5d3296c --- /dev/null +++ b/Updated_Cms/app/Services/Community/RareValues/RareValuesService.php @@ -0,0 +1,5 @@ +applications()->create([ + 'rank_id' => $positionId, + 'content' => $content, + ]); + } + + public function fetchOpenPositions(): Collection + { + return WebsiteOpenPosition::canApply()->with('permission')->get(); + } + + public function hasUserAppliedForPosition($user, $positionId): bool + { + return $user->applications()->where('rank_id', $positionId)->exists(); + } + + public function isPositionOpenForApplication($position): bool + { + $currentTime = now(); + + return $position->apply_from <= $currentTime && $position->apply_to >= $currentTime; + } +} diff --git a/Updated_Cms/app/Services/Community/StaffService.php b/Updated_Cms/app/Services/Community/StaffService.php new file mode 100644 index 0000000000..73cdc31c64 --- /dev/null +++ b/Updated_Cms/app/Services/Community/StaffService.php @@ -0,0 +1,60 @@ +select('id', 'rank_name', 'badge', 'staff_color', 'job_description') + ->when(Auth::user()->rank < (int) setting('min_rank_to_see_hidden_staff'), fn ($query) => $query->where('hidden_rank', false)) + ->where('id', '>=', setting('min_staff_rank')) + ->orderByDesc('id') + ->with(['users' => function ($query): void { + $query->select('id', 'username', 'rank', 'motto', 'look', 'hidden_staff', 'online') + ->when(Auth::user()->rank < (int) setting('min_rank_to_see_hidden_staff'), fn ($query) => $query->where('hidden_staff', false)); + }]) + ->get(); + + if ($cacheEnabled) { + $cacheTimer = (int) setting('cache_timer'); + Cache::put('staff_positions', $employees, now()->addMinutes($cacheTimer)); + } + + return $employees; + } + + public function fetchEmployeeIds(): array + { + $cacheEnabled = setting('enable_caching') === '1'; + + if ($cacheEnabled && Cache::has('staff_ids')) { + return Cache::get('staff_ids'); + } + + $staffIds = User::select('id') + ->where('rank', '>=', setting('min_staff_rank')) + ->get() + ->pluck('id')->toArray(); + + if ($cacheEnabled) { + $cacheTimer = (int) setting('cache_timer'); + Cache::put('staff_ids', $staffIds, now()->addMinutes($cacheTimer)); + } + + return $staffIds; + } +} diff --git a/Updated_Cms/app/Services/Community/TeamService.php b/Updated_Cms/app/Services/Community/TeamService.php new file mode 100644 index 0000000000..862a7a7aa9 --- /dev/null +++ b/Updated_Cms/app/Services/Community/TeamService.php @@ -0,0 +1,34 @@ +where('hidden_rank', false) + ->orderByDesc('id') + ->with(['users' => function ($query): void { + $query->select('id', 'username', 'look', 'motto', 'rank', 'team_id', 'online'); + }]) + ->get(); + + if ($cacheEnabled) { + $cacheTimer = (int) setting('cache_timer'); + Cache::put('hotel_teams', $employees, now()->addMinutes($cacheTimer)); + } + + return $employees; + } +} diff --git a/Updated_Cms/app/Services/FindRetrosService.php b/Updated_Cms/app/Services/FindRetrosService.php new file mode 100644 index 0000000000..fc3f688eb4 --- /dev/null +++ b/Updated_Cms/app/Services/FindRetrosService.php @@ -0,0 +1,79 @@ +client = new Client(['verify' => false]); + } + + /** + * Check the user has voted. + */ + public function checkHasVoted(): bool + { + if (! config('habbo.findretros.enabled')) { + return true; + } + + $cacheKey = sprintf(self::FIND_RETROS_CACHE_KEY, request()->ip()); + if (request()->ip() === '127.0.0.1') { + return true; + } + + if (request()->has('novote')) { + return true; + } + + if (Cache::has($cacheKey)) { + return true; + } + + $uri = sprintf(self::FIND_RETROS_VERIFY_URI, config('habbo.findretros.api'), config('habbo.findretros.name'), request()->ip()); + $request = $this->client->get($uri); + $response = $request->getBody()->getContents(); + + if (in_array($response, ['1', '2'])) { + Cache::put($cacheKey, true, now()->addMinutes(30)); + + return true; + } + + return false; + } + + /** + * Retrieve the find retros redirect url. + */ + public function getRedirectUri(): string + { + return sprintf(self::FIND_RETROS_REDIRECT_URI, config('habbo.findretros.api'), config('habbo.findretros.name')); + } +} diff --git a/Updated_Cms/app/Services/HousekeepingPermissionsService.php b/Updated_Cms/app/Services/HousekeepingPermissionsService.php new file mode 100644 index 0000000000..a8e8948786 --- /dev/null +++ b/Updated_Cms/app/Services/HousekeepingPermissionsService.php @@ -0,0 +1,25 @@ +permissions = WebsiteHousekeepingPermission::all()->pluck('min_rank', 'permission'); + } + + public function getOrDefault(string $permissionName, bool $default = false): bool + { + if (! array_key_exists($permissionName, $this->permissions->toArray())) { + return $default; + } + + return auth()->check() && auth()->user()->rank >= (int) $this->permissions->get($permissionName); + } +} diff --git a/Updated_Cms/app/Services/IpLookupService.php b/Updated_Cms/app/Services/IpLookupService.php new file mode 100644 index 0000000000..7209769a72 --- /dev/null +++ b/Updated_Cms/app/Services/IpLookupService.php @@ -0,0 +1,28 @@ +get(sprintf('%s/%s?api-key=%s', $this->baseUrl, $ip, $this->apiKey)); + + if (! $response->ok()) { + $message = array_key_exists('message', $response->json()) ? $response->json()['message'] : 'Unknown error'; + + return [ + 'message' => $message, + 'status' => $response->status(), + ]; + } + + return $response->json(); + } +} diff --git a/Updated_Cms/app/Services/PermissionsService.php b/Updated_Cms/app/Services/PermissionsService.php new file mode 100644 index 0000000000..fb0c350ece --- /dev/null +++ b/Updated_Cms/app/Services/PermissionsService.php @@ -0,0 +1,28 @@ +addMinutes(30), fn () => WebsitePermission::all()->pluck('min_rank', 'permission')); + + $this->permissions = Cache::get('website_permissions'); + } + + public function getOrDefault(string $permissionName, bool $default = false): bool + { + if (! array_key_exists($permissionName, $this->permissions->toArray())) { + return $default; + } + + return auth()->check() && auth()->user()->rank >= (int) $this->permissions->get($permissionName); + } +} diff --git a/Updated_Cms/app/Services/RconService.php b/Updated_Cms/app/Services/RconService.php new file mode 100644 index 0000000000..b31e95f168 --- /dev/null +++ b/Updated_Cms/app/Services/RconService.php @@ -0,0 +1,257 @@ +config = [ + 'ip' => setting('rcon_ip'), + 'port' => (int) setting('rcon_port'), + ]; + + $this->initialize(); + } + + private function initialize(): void + { + $this->socket = @socket_create(AF_INET, SOCK_STREAM, SOL_TCP); + + if (! $this->socket) { + $error = socket_strerror(socket_last_error()); + Log::error("RCON initialization failed: $error"); + + $this->closeConnection(); + + return; + } + + if (! @socket_connect($this->socket, $this->config['ip'], $this->config['port'])) { + $error = socket_strerror(socket_last_error()); + Log::error("RCON connection failed: $error"); + + $this->closeConnection(); + + return; + } + + $this->isConnected = true; + } + + private function closeConnection(): void + { + if ($this->socket instanceof \Socket) { + socket_close($this->socket); + } + + $this->socket = null; + $this->isConnected = false; + } + + public function isConnected(): bool + { + return $this->isConnected; + } + + /** + * @throws RconConnectionException + * @throws JsonException + */ + public function sendCommand(string $command, ?array $data = null) + { + if (! $this->isConnected) { + $error = 'RCON command failed: Not connected'; + Log::error($error); + + $this->closeConnection(); + + return $this->isConnected; + } + + $payload = json_encode(['key' => $command, 'data' => $data], JSON_THROW_ON_ERROR); + + if (! @socket_write($this->socket, $payload, strlen($payload))) { + $error = socket_strerror(socket_last_error($this->socket)); + Log::error("RCON command ($command) failed: $error"); + + $this->closeConnection(); + + return $this->isConnected; + } + + return $this->isConnected; + } + + /** + * @throws RconConnectionException|JsonException + */ + public function sendGift($user, int $item_id, string $message = 'Here is a gift.'): void + { + $this->sendCommand('sendgift', [ + 'user_id' => $user->id, + 'itemid' => $item_id, + 'message' => $message, + ]); + } + + /** + * @throws RconConnectionException|JsonException + */ + public function giveCredits($user, int $credits): void + { + $this->sendCommand('givecredits', [ + 'user_id' => $user->id, + 'credits' => $credits, + ]); + } + + /** + * @throws RconConnectionException|JsonException + */ + public function giveBadge($user, string $badge): void + { + $this->sendCommand('givebadge', [ + 'user_id' => $user->id, + 'badge' => $badge, + ]); + } + + /** + * @throws RconConnectionException|JsonException + */ + public function setMotto($user, string $motto): void + { + $this->sendCommand('setmotto', [ + 'user_id' => $user->id, + 'motto' => $motto, + ]); + } + + /** + * @throws RconConnectionException|JsonException + */ + public function updateWordFilter(): void + { + $this->sendCommand('updatewordfilter'); + } + + /** + * @throws RconConnectionException|JsonException + */ + public function disconnectUser($user): void + { + $this->sendCommand('disconnect', [ + 'user_id' => $user->id, + 'username' => $user->username, + ]); + } + + /** + * @throws RconConnectionException|JsonException + */ + public function givePoints($user, CurrencyTypes $type, int $amount): void + { + $this->sendCommand('givepoints', [ + 'user_id' => $user->id, + 'points' => $amount, + 'type' => $type, + ]); + } + + /** + * @throws RconConnectionException + * @throws JsonException + */ + public function giveGotw($user, int $amount): void + { + $this->givePoints($user, CurrencyTypes::Points, $amount); + } + + /** + * @throws RconConnectionException + * @throws JsonException + */ + public function giveDiamonds($user, int $amount): void + { + $this->givePoints($user, CurrencyTypes::Diamonds, $amount); + } + + /** + * @throws RconConnectionException + * @throws JsonException + */ + public function giveDuckets($user, int $amount): void + { + $this->givePoints($user, CurrencyTypes::DUCKETS, $amount); + } + + /** + * @throws RconConnectionException + * @throws JsonException + */ + public function setRank($user, int $rank): void + { + $this->sendCommand('setrank', [ + 'user_id' => $user->id, + 'rank' => $rank, + ]); + } + + /** + * @throws RconConnectionException + * @throws JsonException + */ + public function updateCatalog(): void + { + $this->sendCommand('updatecatalog'); + } + + /** + * @throws RconConnectionException + * @throws JsonException + */ + public function alertUser($user, string $message): void + { + $this->sendCommand('alertuser', [ + 'user_id' => $user->id, + 'message' => $message, + ]); + } + + /** + * @throws RconConnectionException + * @throws JsonException + */ + public function forwardUser($user, int $roomId): void + { + $this->sendCommand('forwarduser', [ + 'user_id' => $user->id, + 'room_id' => $roomId, + ]); + } + + /** + * @throws RconConnectionException + * @throws JsonException + */ + public function updateConfig($user, string $command): void + { + $this->sendCommand('executecommand', [ + 'user_id' => $user->id, + 'command' => $command, + ]); + } +} diff --git a/Updated_Cms/app/Services/SettingsService.php b/Updated_Cms/app/Services/SettingsService.php new file mode 100644 index 0000000000..772b9c65d7 --- /dev/null +++ b/Updated_Cms/app/Services/SettingsService.php @@ -0,0 +1,34 @@ +addMinutes(5), fn () => Schema::hasTable('website_settings') ? WebsiteSetting::all()->pluck('value', 'key') : collect()); + + $this->settings = Cache::get('website_settings'); + } catch (Throwable) { + $this->settings = collect(); + } + } + + public function getOrDefault(string $settingName, ?string $default = null): string + { + if (! $this->settings instanceof \Illuminate\Support\Collection) { + return (string) $default; + } + + return (string) $this->settings->get($settingName, $default); + } +} diff --git a/Updated_Cms/app/Services/User/SessionService.php b/Updated_Cms/app/Services/User/SessionService.php new file mode 100644 index 0000000000..9058fc56ee --- /dev/null +++ b/Updated_Cms/app/Services/User/SessionService.php @@ -0,0 +1,39 @@ +sessions, + )->map(function ($session) use ($request) { + $agent = $this->createAgent($session); + + return (object) [ + 'agent' => [ + 'is_desktop' => $agent->isDesktop(), + 'platform' => $agent->platform(), + 'browser' => $agent->browser(), + ], + 'ip_address' => $session->ip_address, + 'is_current_device' => $session->id === $request->session()->getId(), + 'last_active' => \Illuminate\Support\Facades\Date::createFromTimestamp($session->last_activity)->diffForHumans(), + ]; + }); + } + + protected function createAgent($session): Agent + { + return tap(new Agent, function ($agent) use ($session): void { + $agent->setUserAgent($session->user_agent); + }); + } +} diff --git a/Updated_Cms/app/Services/User/UserApiService.php b/Updated_Cms/app/Services/User/UserApiService.php new file mode 100644 index 0000000000..2365ef7b20 --- /dev/null +++ b/Updated_Cms/app/Services/User/UserApiService.php @@ -0,0 +1,30 @@ +where('username', '=', $username)->first(); + } + + public function onlineUsers($columns = ['username', 'motto', 'look'], bool $randomOrder = true): Builder + { + $query = User::select($columns)->where('online', '=', '1'); + + if ($randomOrder) { + $query = $query->inRandomOrder(); + } + + return $query; + } + + public function onlineUserCount(): int + { + return User::where('online', '=', '1')->count(); + } +} diff --git a/Updated_Cms/app/Services/User/UserService.php b/Updated_Cms/app/Services/User/UserService.php new file mode 100644 index 0000000000..e0510d7930 --- /dev/null +++ b/Updated_Cms/app/Services/User/UserService.php @@ -0,0 +1,14 @@ +first(); + } +} diff --git a/Updated_Cms/app/Services/ViteService.php b/Updated_Cms/app/Services/ViteService.php new file mode 100644 index 0000000000..659d249a1c --- /dev/null +++ b/Updated_Cms/app/Services/ViteService.php @@ -0,0 +1,17 @@ +', $url); + } +} diff --git a/Updated_Cms/app/View/Components/AppLayout.php b/Updated_Cms/app/View/Components/AppLayout.php new file mode 100644 index 0000000000..de0d46f58d --- /dev/null +++ b/Updated_Cms/app/View/Components/AppLayout.php @@ -0,0 +1,17 @@ +make(Illuminate\Contracts\Console\Kernel::class); + +$status = $kernel->handle( + $input = new Symfony\Component\Console\Input\ArgvInput, + new Symfony\Component\Console\Output\ConsoleOutput +); + +/* +|-------------------------------------------------------------------------- +| Shutdown The Application +|-------------------------------------------------------------------------- +| +| Once Artisan has finished running, we will fire off the shutdown events +| so that any final work may be done by the application before we shut +| down the process. This is the last thing to happen to the request. +| +*/ + +$kernel->terminate($input, $status); + +exit($status); diff --git a/Updated_Cms/bootstrap/app.php b/Updated_Cms/bootstrap/app.php new file mode 100644 index 0000000000..3d20e6e091 --- /dev/null +++ b/Updated_Cms/bootstrap/app.php @@ -0,0 +1,55 @@ +singleton( + Illuminate\Contracts\Http\Kernel::class, + App\Http\Kernel::class, +); + +$app->singleton( + Illuminate\Contracts\Console\Kernel::class, + App\Console\Kernel::class, +); + +$app->singleton( + Illuminate\Contracts\Debug\ExceptionHandler::class, + App\Exceptions\Handler::class, +); + +/* +|-------------------------------------------------------------------------- +| Return The Application +|-------------------------------------------------------------------------- +| +| This script returns the application instance. The instance is given to +| the calling script so we can separate the building of the instances +| from the actual running of the application and sending responses. +| +*/ + +return $app; diff --git a/Updated_Cms/compose.yaml b/Updated_Cms/compose.yaml new file mode 100644 index 0000000000..eb31de6b09 --- /dev/null +++ b/Updated_Cms/compose.yaml @@ -0,0 +1,82 @@ +services: + laravel.test: + build: + context: './vendor/laravel/sail/runtimes/8.4' + dockerfile: Dockerfile + args: + WWWGROUP: '${WWWGROUP}' + MYSQL_CLIENT: mariadb-client + image: 'sail-8.4/app' + extra_hosts: + - 'host.docker.internal:host-gateway' + ports: + - '${APP_PORT:-80}:80' + - '${VITE_PORT:-5173}:${VITE_PORT:-5173}' + environment: + WWWUSER: '${WWWUSER}' + LARAVEL_SAIL: 1 + XDEBUG_MODE: '${SAIL_XDEBUG_MODE:-off}' + XDEBUG_CONFIG: '${SAIL_XDEBUG_CONFIG:-client_host=host.docker.internal}' + IGNITION_LOCAL_SITES_PATH: '${PWD}' + volumes: + - '.:/var/www/html' + networks: + - sail + depends_on: + - mariadb + - redis + - mailpit + mariadb: + image: 'mariadb:11' + ports: + - '${FORWARD_DB_PORT:-3306}:3306' + environment: + MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}' + MYSQL_ROOT_HOST: '%' + MYSQL_DATABASE: '${DB_DATABASE}' + MYSQL_USER: '${DB_USERNAME}' + MYSQL_PASSWORD: '${DB_PASSWORD}' + MYSQL_ALLOW_EMPTY_PASSWORD: 'yes' + volumes: + - 'sail-mariadb:/var/lib/mysql' + - './vendor/laravel/sail/database/mariadb/create-testing-database.sh:/docker-entrypoint-initdb.d/10-create-testing-database.sh' + networks: + - sail + healthcheck: + test: + - CMD + - healthcheck.sh + - '--connect' + - '--innodb_initialized' + retries: 3 + timeout: 5s + redis: + image: 'redis:alpine' + ports: + - '${FORWARD_REDIS_PORT:-6379}:6379' + volumes: + - 'sail-redis:/data' + networks: + - sail + healthcheck: + test: + - CMD + - redis-cli + - ping + retries: 3 + timeout: 5s + mailpit: + image: 'axllent/mailpit:latest' + ports: + - '${FORWARD_MAILPIT_PORT:-1025}:1025' + - '${FORWARD_MAILPIT_DASHBOARD_PORT:-8025}:8025' + networks: + - sail +networks: + sail: + driver: bridge +volumes: + sail-mariadb: + driver: local + sail-redis: + driver: local diff --git a/Updated_Cms/composer.json b/Updated_Cms/composer.json new file mode 100644 index 0000000000..e74a2f39ba --- /dev/null +++ b/Updated_Cms/composer.json @@ -0,0 +1,89 @@ +{ + "name": "laravel/laravel", + "type": "project", + "description": "The Laravel Framework.", + "keywords": ["framework", "laravel"], + "license": "MIT", + "require": { + "php": "^8.5", + "ext-sockets": "*", + "doctrine/dbal": "^4.0", + "filament/filament": "^4.0", + "flowframe/laravel-trend": "^0.4.0", + "guzzlehttp/guzzle": "^7.9", + "itsgoingd/clockwork": "^5.2", + "jenssegers/agent": "^2.6", + "laravel/fortify": "^1.20", + "laravel/framework": "^12.0", + "laravel/sanctum": "^4.0", + "laravel/tinker": "^2.10", + "opcodesio/log-viewer": "^3.1", + "qirolab/laravel-themer": "^2.0", + "ryangjchandler/laravel-cloudflare-turnstile": "*", + "spatie/laravel-activitylog": "^4.9", + "spatie/laravel-sluggable": "^3.7", + "srmklive/paypal": "~3.0", + "stevebauman/purify": "^6.1" + }, + "require-dev": { + "driftingly/rector-laravel": "^2.1", + "fakerphp/faker": "^1.24", + "filament/upgrade": "^4.0", + "laravel/pint": "^1.18", + "laravel/sail": "^1.30", + "mockery/mockery": "^1.6.12", + "nunomaduro/collision": "^8.5", + "pestphp/pest": "^4.0", + "phpunit/phpunit": "^12.0", + "rector/rector": "^2.2", + "spatie/laravel-ignition": "^2.5", + "spatie/laravel-ray": "^1.37" + }, + "autoload": { + "psr-4": { + "App\\": "app/", + "Database\\Factories\\": "database/factories/", + "Database\\Seeders\\": "database/seeders/" + }, + "files": [ + "app/Helpers/helper.php" + ] + }, + "autoload-dev": { + "psr-4": { + "Tests\\": "tests/" + } + }, + "scripts": { + "post-autoload-dump": [ + "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", + "@php artisan package:discover --ansi", + "@php artisan filament:upgrade" + ], + "post-update-cmd": [ + "@php artisan vendor:publish --tag=laravel-assets --ansi --force" + ], + "post-root-package-install": [ + "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" + ], + "post-create-project-cmd": [ + "@php artisan key:generate --ansi" + ] + }, + "extra": { + "laravel": { + "dont-discover": [] + } + }, + "config": { + "optimize-autoloader": true, + "preferred-install": "dist", + "sort-packages": true, + "allow-plugins": { + "pestphp/pest-plugin": true, + "php-http/discovery": true + } + }, + "minimum-stability": "dev", + "prefer-stable": true +} diff --git a/Updated_Cms/composer.lock b/Updated_Cms/composer.lock new file mode 100644 index 0000000000..cd88e69cc6 --- /dev/null +++ b/Updated_Cms/composer.lock @@ -0,0 +1,14077 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "0e756216f3e8b8de38da5692488cd7ca", + "packages": [ + { + "name": "anourvalar/eloquent-serialize", + "version": "1.3.5", + "source": { + "type": "git", + "url": "https://github.com/AnourValar/eloquent-serialize.git", + "reference": "1a7dead8d532657e5358f8f27c0349373517681e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/AnourValar/eloquent-serialize/zipball/1a7dead8d532657e5358f8f27c0349373517681e", + "reference": "1a7dead8d532657e5358f8f27c0349373517681e", + "shasum": "" + }, + "require": { + "laravel/framework": "^8.0|^9.0|^10.0|^11.0|^12.0", + "php": "^7.4|^8.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^3.26", + "laravel/legacy-factories": "^1.1", + "orchestra/testbench": "^6.0|^7.0|^8.0|^9.0|^10.0", + "phpstan/phpstan": "^2.0", + "phpunit/phpunit": "^9.5|^10.5|^11.0", + "psalm/plugin-laravel": "^2.8|^3.0", + "squizlabs/php_codesniffer": "^3.7" + }, + "type": "library", + "extra": { + "laravel": { + "aliases": { + "EloquentSerialize": "AnourValar\\EloquentSerialize\\Facades\\EloquentSerializeFacade" + } + } + }, + "autoload": { + "psr-4": { + "AnourValar\\EloquentSerialize\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Laravel Query Builder (Eloquent) serialization", + "homepage": "https://github.com/AnourValar/eloquent-serialize", + "keywords": [ + "anourvalar", + "builder", + "copy", + "eloquent", + "job", + "laravel", + "query", + "querybuilder", + "queue", + "serializable", + "serialization", + "serialize" + ], + "support": { + "issues": "https://github.com/AnourValar/eloquent-serialize/issues", + "source": "https://github.com/AnourValar/eloquent-serialize/tree/1.3.5" + }, + "time": "2025-12-04T13:38:21+00:00" + }, + { + "name": "bacon/bacon-qr-code", + "version": "v3.0.3", + "source": { + "type": "git", + "url": "https://github.com/Bacon/BaconQrCode.git", + "reference": "36a1cb2b81493fa5b82e50bf8068bf84d1542563" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Bacon/BaconQrCode/zipball/36a1cb2b81493fa5b82e50bf8068bf84d1542563", + "reference": "36a1cb2b81493fa5b82e50bf8068bf84d1542563", + "shasum": "" + }, + "require": { + "dasprid/enum": "^1.0.3", + "ext-iconv": "*", + "php": "^8.1" + }, + "require-dev": { + "phly/keep-a-changelog": "^2.12", + "phpunit/phpunit": "^10.5.11 || ^11.0.4", + "spatie/phpunit-snapshot-assertions": "^5.1.5", + "spatie/pixelmatch-php": "^1.2.0", + "squizlabs/php_codesniffer": "^3.9" + }, + "suggest": { + "ext-imagick": "to generate QR code images" + }, + "type": "library", + "autoload": { + "psr-4": { + "BaconQrCode\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-2-Clause" + ], + "authors": [ + { + "name": "Ben Scholzen 'DASPRiD'", + "email": "mail@dasprids.de", + "homepage": "https://dasprids.de/", + "role": "Developer" + } + ], + "description": "BaconQrCode is a QR code generator for PHP.", + "homepage": "https://github.com/Bacon/BaconQrCode", + "support": { + "issues": "https://github.com/Bacon/BaconQrCode/issues", + "source": "https://github.com/Bacon/BaconQrCode/tree/v3.0.3" + }, + "time": "2025-11-19T17:15:36+00:00" + }, + { + "name": "blade-ui-kit/blade-heroicons", + "version": "2.6.0", + "source": { + "type": "git", + "url": "https://github.com/driesvints/blade-heroicons.git", + "reference": "4553b2a1f6c76f0ac7f3bc0de4c0cfa06a097d19" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/driesvints/blade-heroicons/zipball/4553b2a1f6c76f0ac7f3bc0de4c0cfa06a097d19", + "reference": "4553b2a1f6c76f0ac7f3bc0de4c0cfa06a097d19", + "shasum": "" + }, + "require": { + "blade-ui-kit/blade-icons": "^1.6", + "illuminate/support": "^9.0|^10.0|^11.0|^12.0", + "php": "^8.0" + }, + "require-dev": { + "orchestra/testbench": "^7.0|^8.0|^9.0|^10.0", + "phpunit/phpunit": "^9.0|^10.5|^11.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "BladeUI\\Heroicons\\BladeHeroiconsServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "BladeUI\\Heroicons\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Dries Vints", + "homepage": "https://driesvints.com" + } + ], + "description": "A package to easily make use of Heroicons in your Laravel Blade views.", + "homepage": "https://github.com/blade-ui-kit/blade-heroicons", + "keywords": [ + "Heroicons", + "blade", + "laravel" + ], + "support": { + "issues": "https://github.com/driesvints/blade-heroicons/issues", + "source": "https://github.com/driesvints/blade-heroicons/tree/2.6.0" + }, + "funding": [ + { + "url": "https://github.com/sponsors/driesvints", + "type": "github" + }, + { + "url": "https://www.paypal.com/paypalme/driesvints", + "type": "paypal" + } + ], + "time": "2025-02-13T20:53:33+00:00" + }, + { + "name": "blade-ui-kit/blade-icons", + "version": "1.8.0", + "source": { + "type": "git", + "url": "https://github.com/driesvints/blade-icons.git", + "reference": "7b743f27476acb2ed04cb518213d78abe096e814" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/driesvints/blade-icons/zipball/7b743f27476acb2ed04cb518213d78abe096e814", + "reference": "7b743f27476acb2ed04cb518213d78abe096e814", + "shasum": "" + }, + "require": { + "illuminate/contracts": "^8.0|^9.0|^10.0|^11.0|^12.0", + "illuminate/filesystem": "^8.0|^9.0|^10.0|^11.0|^12.0", + "illuminate/support": "^8.0|^9.0|^10.0|^11.0|^12.0", + "illuminate/view": "^8.0|^9.0|^10.0|^11.0|^12.0", + "php": "^7.4|^8.0", + "symfony/console": "^5.3|^6.0|^7.0", + "symfony/finder": "^5.3|^6.0|^7.0" + }, + "require-dev": { + "mockery/mockery": "^1.5.1", + "orchestra/testbench": "^6.0|^7.0|^8.0|^9.0|^10.0", + "phpunit/phpunit": "^9.0|^10.5|^11.0" + }, + "bin": [ + "bin/blade-icons-generate" + ], + "type": "library", + "extra": { + "laravel": { + "providers": [ + "BladeUI\\Icons\\BladeIconsServiceProvider" + ] + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "BladeUI\\Icons\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Dries Vints", + "homepage": "https://driesvints.com" + } + ], + "description": "A package to easily make use of icons in your Laravel Blade views.", + "homepage": "https://github.com/blade-ui-kit/blade-icons", + "keywords": [ + "blade", + "icons", + "laravel", + "svg" + ], + "support": { + "issues": "https://github.com/blade-ui-kit/blade-icons/issues", + "source": "https://github.com/blade-ui-kit/blade-icons" + }, + "funding": [ + { + "url": "https://github.com/sponsors/driesvints", + "type": "github" + }, + { + "url": "https://www.paypal.com/paypalme/driesvints", + "type": "paypal" + } + ], + "time": "2025-02-13T20:35:06+00:00" + }, + { + "name": "brick/math", + "version": "0.14.1", + "source": { + "type": "git", + "url": "https://github.com/brick/math.git", + "reference": "f05858549e5f9d7bb45875a75583240a38a281d0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/brick/math/zipball/f05858549e5f9d7bb45875a75583240a38a281d0", + "reference": "f05858549e5f9d7bb45875a75583240a38a281d0", + "shasum": "" + }, + "require": { + "php": "^8.2" + }, + "require-dev": { + "php-coveralls/php-coveralls": "^2.2", + "phpstan/phpstan": "2.1.22", + "phpunit/phpunit": "^11.5" + }, + "type": "library", + "autoload": { + "psr-4": { + "Brick\\Math\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Arbitrary-precision arithmetic library", + "keywords": [ + "Arbitrary-precision", + "BigInteger", + "BigRational", + "arithmetic", + "bigdecimal", + "bignum", + "bignumber", + "brick", + "decimal", + "integer", + "math", + "mathematics", + "rational" + ], + "support": { + "issues": "https://github.com/brick/math/issues", + "source": "https://github.com/brick/math/tree/0.14.1" + }, + "funding": [ + { + "url": "https://github.com/BenMorel", + "type": "github" + } + ], + "time": "2025-11-24T14:40:29+00:00" + }, + { + "name": "carbonphp/carbon-doctrine-types", + "version": "3.2.0", + "source": { + "type": "git", + "url": "https://github.com/CarbonPHP/carbon-doctrine-types.git", + "reference": "18ba5ddfec8976260ead6e866180bd5d2f71aa1d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/CarbonPHP/carbon-doctrine-types/zipball/18ba5ddfec8976260ead6e866180bd5d2f71aa1d", + "reference": "18ba5ddfec8976260ead6e866180bd5d2f71aa1d", + "shasum": "" + }, + "require": { + "php": "^8.1" + }, + "conflict": { + "doctrine/dbal": "<4.0.0 || >=5.0.0" + }, + "require-dev": { + "doctrine/dbal": "^4.0.0", + "nesbot/carbon": "^2.71.0 || ^3.0.0", + "phpunit/phpunit": "^10.3" + }, + "type": "library", + "autoload": { + "psr-4": { + "Carbon\\Doctrine\\": "src/Carbon/Doctrine/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "KyleKatarn", + "email": "kylekatarnls@gmail.com" + } + ], + "description": "Types to use Carbon in Doctrine", + "keywords": [ + "carbon", + "date", + "datetime", + "doctrine", + "time" + ], + "support": { + "issues": "https://github.com/CarbonPHP/carbon-doctrine-types/issues", + "source": "https://github.com/CarbonPHP/carbon-doctrine-types/tree/3.2.0" + }, + "funding": [ + { + "url": "https://github.com/kylekatarnls", + "type": "github" + }, + { + "url": "https://opencollective.com/Carbon", + "type": "open_collective" + }, + { + "url": "https://tidelift.com/funding/github/packagist/nesbot/carbon", + "type": "tidelift" + } + ], + "time": "2024-02-09T16:56:22+00:00" + }, + { + "name": "chillerlan/php-qrcode", + "version": "5.0.5", + "source": { + "type": "git", + "url": "https://github.com/chillerlan/php-qrcode.git", + "reference": "7b66282572fc14075c0507d74d9837dab25b38d6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/chillerlan/php-qrcode/zipball/7b66282572fc14075c0507d74d9837dab25b38d6", + "reference": "7b66282572fc14075c0507d74d9837dab25b38d6", + "shasum": "" + }, + "require": { + "chillerlan/php-settings-container": "^2.1.6 || ^3.2.1", + "ext-mbstring": "*", + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "chillerlan/php-authenticator": "^4.3.1 || ^5.2.1", + "ext-fileinfo": "*", + "phan/phan": "^5.5.2", + "phpcompatibility/php-compatibility": "10.x-dev", + "phpmd/phpmd": "^2.15", + "phpunit/phpunit": "^9.6", + "setasign/fpdf": "^1.8.2", + "slevomat/coding-standard": "^8.23.0", + "squizlabs/php_codesniffer": "^4.0.0" + }, + "suggest": { + "chillerlan/php-authenticator": "Yet another Google authenticator! Also creates URIs for mobile apps.", + "setasign/fpdf": "Required to use the QR FPDF output.", + "simple-icons/simple-icons": "SVG icons that you can use to embed as logos in the QR Code" + }, + "type": "library", + "autoload": { + "psr-4": { + "chillerlan\\QRCode\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT", + "Apache-2.0" + ], + "authors": [ + { + "name": "Kazuhiko Arase", + "homepage": "https://github.com/kazuhikoarase/qrcode-generator" + }, + { + "name": "ZXing Authors", + "homepage": "https://github.com/zxing/zxing" + }, + { + "name": "Ashot Khanamiryan", + "homepage": "https://github.com/khanamiryan/php-qrcode-detector-decoder" + }, + { + "name": "Smiley", + "email": "smiley@chillerlan.net", + "homepage": "https://github.com/codemasher" + }, + { + "name": "Contributors", + "homepage": "https://github.com/chillerlan/php-qrcode/graphs/contributors" + } + ], + "description": "A QR Code generator and reader with a user-friendly API. PHP 7.4+", + "homepage": "https://github.com/chillerlan/php-qrcode", + "keywords": [ + "phpqrcode", + "qr", + "qr code", + "qr-reader", + "qrcode", + "qrcode-generator", + "qrcode-reader" + ], + "support": { + "docs": "https://php-qrcode.readthedocs.io", + "issues": "https://github.com/chillerlan/php-qrcode/issues", + "source": "https://github.com/chillerlan/php-qrcode" + }, + "funding": [ + { + "url": "https://ko-fi.com/codemasher", + "type": "Ko-Fi" + } + ], + "time": "2025-11-23T23:51:44+00:00" + }, + { + "name": "chillerlan/php-settings-container", + "version": "3.2.1", + "source": { + "type": "git", + "url": "https://github.com/chillerlan/php-settings-container.git", + "reference": "95ed3e9676a1d47cab2e3174d19b43f5dbf52681" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/chillerlan/php-settings-container/zipball/95ed3e9676a1d47cab2e3174d19b43f5dbf52681", + "reference": "95ed3e9676a1d47cab2e3174d19b43f5dbf52681", + "shasum": "" + }, + "require": { + "ext-json": "*", + "php": "^8.1" + }, + "require-dev": { + "phpmd/phpmd": "^2.15", + "phpstan/phpstan": "^1.11", + "phpstan/phpstan-deprecation-rules": "^1.2", + "phpunit/phpunit": "^10.5", + "squizlabs/php_codesniffer": "^3.10" + }, + "type": "library", + "autoload": { + "psr-4": { + "chillerlan\\Settings\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Smiley", + "email": "smiley@chillerlan.net", + "homepage": "https://github.com/codemasher" + } + ], + "description": "A container class for immutable settings objects. Not a DI container.", + "homepage": "https://github.com/chillerlan/php-settings-container", + "keywords": [ + "Settings", + "configuration", + "container", + "helper" + ], + "support": { + "issues": "https://github.com/chillerlan/php-settings-container/issues", + "source": "https://github.com/chillerlan/php-settings-container" + }, + "funding": [ + { + "url": "https://www.paypal.com/donate?hosted_button_id=WLYUNAT9ZTJZ4", + "type": "custom" + }, + { + "url": "https://ko-fi.com/codemasher", + "type": "ko_fi" + } + ], + "time": "2024-07-16T11:13:48+00:00" + }, + { + "name": "danharrin/date-format-converter", + "version": "v0.3.1", + "source": { + "type": "git", + "url": "https://github.com/danharrin/date-format-converter.git", + "reference": "7c31171bc981e48726729a5f3a05a2d2b63f0b1e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/danharrin/date-format-converter/zipball/7c31171bc981e48726729a5f3a05a2d2b63f0b1e", + "reference": "7c31171bc981e48726729a5f3a05a2d2b63f0b1e", + "shasum": "" + }, + "require": { + "php": "^7.2|^8.0" + }, + "type": "library", + "autoload": { + "files": [ + "src/helpers.php", + "src/standards.php" + ], + "psr-4": { + "DanHarrin\\DateFormatConverter\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Dan Harrin", + "email": "dan@danharrin.com" + } + ], + "description": "Convert token-based date formats between standards.", + "homepage": "https://github.com/danharrin/date-format-converter", + "support": { + "issues": "https://github.com/danharrin/date-format-converter/issues", + "source": "https://github.com/danharrin/date-format-converter" + }, + "funding": [ + { + "url": "https://github.com/danharrin", + "type": "github" + } + ], + "time": "2024-06-13T09:38:44+00:00" + }, + { + "name": "danharrin/livewire-rate-limiting", + "version": "v2.1.0", + "source": { + "type": "git", + "url": "https://github.com/danharrin/livewire-rate-limiting.git", + "reference": "14dde653a9ae8f38af07a0ba4921dc046235e1a0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/danharrin/livewire-rate-limiting/zipball/14dde653a9ae8f38af07a0ba4921dc046235e1a0", + "reference": "14dde653a9ae8f38af07a0ba4921dc046235e1a0", + "shasum": "" + }, + "require": { + "illuminate/support": "^9.0|^10.0|^11.0|^12.0", + "php": "^8.0" + }, + "require-dev": { + "livewire/livewire": "^3.0", + "livewire/volt": "^1.3", + "orchestra/testbench": "^7.0|^8.0|^9.0|^10.0", + "phpunit/phpunit": "^9.0|^10.0|^11.5.3" + }, + "type": "library", + "autoload": { + "psr-4": { + "DanHarrin\\LivewireRateLimiting\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Dan Harrin", + "email": "dan@danharrin.com" + } + ], + "description": "Apply rate limiters to Laravel Livewire actions.", + "homepage": "https://github.com/danharrin/livewire-rate-limiting", + "support": { + "issues": "https://github.com/danharrin/livewire-rate-limiting/issues", + "source": "https://github.com/danharrin/livewire-rate-limiting" + }, + "funding": [ + { + "url": "https://github.com/danharrin", + "type": "github" + } + ], + "time": "2025-02-21T08:52:11+00:00" + }, + { + "name": "dasprid/enum", + "version": "1.0.7", + "source": { + "type": "git", + "url": "https://github.com/DASPRiD/Enum.git", + "reference": "b5874fa9ed0043116c72162ec7f4fb50e02e7cce" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/DASPRiD/Enum/zipball/b5874fa9ed0043116c72162ec7f4fb50e02e7cce", + "reference": "b5874fa9ed0043116c72162ec7f4fb50e02e7cce", + "shasum": "" + }, + "require": { + "php": ">=7.1 <9.0" + }, + "require-dev": { + "phpunit/phpunit": "^7 || ^8 || ^9 || ^10 || ^11", + "squizlabs/php_codesniffer": "*" + }, + "type": "library", + "autoload": { + "psr-4": { + "DASPRiD\\Enum\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-2-Clause" + ], + "authors": [ + { + "name": "Ben Scholzen 'DASPRiD'", + "email": "mail@dasprids.de", + "homepage": "https://dasprids.de/", + "role": "Developer" + } + ], + "description": "PHP 7.1 enum implementation", + "keywords": [ + "enum", + "map" + ], + "support": { + "issues": "https://github.com/DASPRiD/Enum/issues", + "source": "https://github.com/DASPRiD/Enum/tree/1.0.7" + }, + "time": "2025-09-16T12:23:56+00:00" + }, + { + "name": "dflydev/dot-access-data", + "version": "v3.0.3", + "source": { + "type": "git", + "url": "https://github.com/dflydev/dflydev-dot-access-data.git", + "reference": "a23a2bf4f31d3518f3ecb38660c95715dfead60f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/dflydev/dflydev-dot-access-data/zipball/a23a2bf4f31d3518f3ecb38660c95715dfead60f", + "reference": "a23a2bf4f31d3518f3ecb38660c95715dfead60f", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^0.12.42", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.3", + "scrutinizer/ocular": "1.6.0", + "squizlabs/php_codesniffer": "^3.5", + "vimeo/psalm": "^4.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Dflydev\\DotAccessData\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Dragonfly Development Inc.", + "email": "info@dflydev.com", + "homepage": "http://dflydev.com" + }, + { + "name": "Beau Simensen", + "email": "beau@dflydev.com", + "homepage": "http://beausimensen.com" + }, + { + "name": "Carlos Frutos", + "email": "carlos@kiwing.it", + "homepage": "https://github.com/cfrutos" + }, + { + "name": "Colin O'Dell", + "email": "colinodell@gmail.com", + "homepage": "https://www.colinodell.com" + } + ], + "description": "Given a deep data structure, access data by dot notation.", + "homepage": "https://github.com/dflydev/dflydev-dot-access-data", + "keywords": [ + "access", + "data", + "dot", + "notation" + ], + "support": { + "issues": "https://github.com/dflydev/dflydev-dot-access-data/issues", + "source": "https://github.com/dflydev/dflydev-dot-access-data/tree/v3.0.3" + }, + "time": "2024-07-08T12:26:09+00:00" + }, + { + "name": "doctrine/dbal", + "version": "4.4.1", + "source": { + "type": "git", + "url": "https://github.com/doctrine/dbal.git", + "reference": "3d544473fb93f5c25b483ea4f4ce99f8c4d9d44c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/dbal/zipball/3d544473fb93f5c25b483ea4f4ce99f8c4d9d44c", + "reference": "3d544473fb93f5c25b483ea4f4ce99f8c4d9d44c", + "shasum": "" + }, + "require": { + "doctrine/deprecations": "^1.1.5", + "php": "^8.2", + "psr/cache": "^1|^2|^3", + "psr/log": "^1|^2|^3" + }, + "require-dev": { + "doctrine/coding-standard": "14.0.0", + "fig/log-test": "^1", + "jetbrains/phpstorm-stubs": "2023.2", + "phpstan/phpstan": "2.1.30", + "phpstan/phpstan-phpunit": "2.0.7", + "phpstan/phpstan-strict-rules": "^2", + "phpunit/phpunit": "11.5.23", + "slevomat/coding-standard": "8.24.0", + "squizlabs/php_codesniffer": "4.0.0", + "symfony/cache": "^6.3.8|^7.0|^8.0", + "symfony/console": "^5.4|^6.3|^7.0|^8.0" + }, + "suggest": { + "symfony/console": "For helpful console commands such as SQL execution and import of files." + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\DBAL\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" + } + ], + "description": "Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.", + "homepage": "https://www.doctrine-project.org/projects/dbal.html", + "keywords": [ + "abstraction", + "database", + "db2", + "dbal", + "mariadb", + "mssql", + "mysql", + "oci8", + "oracle", + "pdo", + "pgsql", + "postgresql", + "queryobject", + "sasql", + "sql", + "sqlite", + "sqlserver", + "sqlsrv" + ], + "support": { + "issues": "https://github.com/doctrine/dbal/issues", + "source": "https://github.com/doctrine/dbal/tree/4.4.1" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Fdbal", + "type": "tidelift" + } + ], + "time": "2025-12-04T10:11:03+00:00" + }, + { + "name": "doctrine/deprecations", + "version": "1.1.5", + "source": { + "type": "git", + "url": "https://github.com/doctrine/deprecations.git", + "reference": "459c2f5dd3d6a4633d3b5f46ee2b1c40f57d3f38" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/deprecations/zipball/459c2f5dd3d6a4633d3b5f46ee2b1c40f57d3f38", + "reference": "459c2f5dd3d6a4633d3b5f46ee2b1c40f57d3f38", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "conflict": { + "phpunit/phpunit": "<=7.5 || >=13" + }, + "require-dev": { + "doctrine/coding-standard": "^9 || ^12 || ^13", + "phpstan/phpstan": "1.4.10 || 2.1.11", + "phpstan/phpstan-phpunit": "^1.0 || ^2", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.6 || ^10.5 || ^11.5 || ^12", + "psr/log": "^1 || ^2 || ^3" + }, + "suggest": { + "psr/log": "Allows logging deprecations via PSR-3 logger implementation" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Deprecations\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.", + "homepage": "https://www.doctrine-project.org/", + "support": { + "issues": "https://github.com/doctrine/deprecations/issues", + "source": "https://github.com/doctrine/deprecations/tree/1.1.5" + }, + "time": "2025-04-07T20:06:18+00:00" + }, + { + "name": "doctrine/inflector", + "version": "2.1.0", + "source": { + "type": "git", + "url": "https://github.com/doctrine/inflector.git", + "reference": "6d6c96277ea252fc1304627204c3d5e6e15faa3b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/inflector/zipball/6d6c96277ea252fc1304627204c3d5e6e15faa3b", + "reference": "6d6c96277ea252fc1304627204c3d5e6e15faa3b", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "require-dev": { + "doctrine/coding-standard": "^12.0 || ^13.0", + "phpstan/phpstan": "^1.12 || ^2.0", + "phpstan/phpstan-phpunit": "^1.4 || ^2.0", + "phpstan/phpstan-strict-rules": "^1.6 || ^2.0", + "phpunit/phpunit": "^8.5 || ^12.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Inflector\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" + } + ], + "description": "PHP Doctrine Inflector is a small library that can perform string manipulations with regard to upper/lowercase and singular/plural forms of words.", + "homepage": "https://www.doctrine-project.org/projects/inflector.html", + "keywords": [ + "inflection", + "inflector", + "lowercase", + "manipulation", + "php", + "plural", + "singular", + "strings", + "uppercase", + "words" + ], + "support": { + "issues": "https://github.com/doctrine/inflector/issues", + "source": "https://github.com/doctrine/inflector/tree/2.1.0" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finflector", + "type": "tidelift" + } + ], + "time": "2025-08-10T19:31:58+00:00" + }, + { + "name": "doctrine/lexer", + "version": "3.0.1", + "source": { + "type": "git", + "url": "https://github.com/doctrine/lexer.git", + "reference": "31ad66abc0fc9e1a1f2d9bc6a42668d2fbbcd6dd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/lexer/zipball/31ad66abc0fc9e1a1f2d9bc6a42668d2fbbcd6dd", + "reference": "31ad66abc0fc9e1a1f2d9bc6a42668d2fbbcd6dd", + "shasum": "" + }, + "require": { + "php": "^8.1" + }, + "require-dev": { + "doctrine/coding-standard": "^12", + "phpstan/phpstan": "^1.10", + "phpunit/phpunit": "^10.5", + "psalm/plugin-phpunit": "^0.18.3", + "vimeo/psalm": "^5.21" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Common\\Lexer\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" + } + ], + "description": "PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.", + "homepage": "https://www.doctrine-project.org/projects/lexer.html", + "keywords": [ + "annotations", + "docblock", + "lexer", + "parser", + "php" + ], + "support": { + "issues": "https://github.com/doctrine/lexer/issues", + "source": "https://github.com/doctrine/lexer/tree/3.0.1" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Flexer", + "type": "tidelift" + } + ], + "time": "2024-02-05T11:56:58+00:00" + }, + { + "name": "dragonmantank/cron-expression", + "version": "v3.6.0", + "source": { + "type": "git", + "url": "https://github.com/dragonmantank/cron-expression.git", + "reference": "d61a8a9604ec1f8c3d150d09db6ce98b32675013" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/dragonmantank/cron-expression/zipball/d61a8a9604ec1f8c3d150d09db6ce98b32675013", + "reference": "d61a8a9604ec1f8c3d150d09db6ce98b32675013", + "shasum": "" + }, + "require": { + "php": "^8.2|^8.3|^8.4|^8.5" + }, + "replace": { + "mtdowling/cron-expression": "^1.0" + }, + "require-dev": { + "phpstan/extension-installer": "^1.4.3", + "phpstan/phpstan": "^1.12.32|^2.1.31", + "phpunit/phpunit": "^8.5.48|^9.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Cron\\": "src/Cron/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Chris Tankersley", + "email": "chris@ctankersley.com", + "homepage": "https://github.com/dragonmantank" + } + ], + "description": "CRON for PHP: Calculate the next or previous run date and determine if a CRON expression is due", + "keywords": [ + "cron", + "schedule" + ], + "support": { + "issues": "https://github.com/dragonmantank/cron-expression/issues", + "source": "https://github.com/dragonmantank/cron-expression/tree/v3.6.0" + }, + "funding": [ + { + "url": "https://github.com/dragonmantank", + "type": "github" + } + ], + "time": "2025-10-31T18:51:33+00:00" + }, + { + "name": "egulias/email-validator", + "version": "4.0.4", + "source": { + "type": "git", + "url": "https://github.com/egulias/EmailValidator.git", + "reference": "d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/egulias/EmailValidator/zipball/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa", + "reference": "d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa", + "shasum": "" + }, + "require": { + "doctrine/lexer": "^2.0 || ^3.0", + "php": ">=8.1", + "symfony/polyfill-intl-idn": "^1.26" + }, + "require-dev": { + "phpunit/phpunit": "^10.2", + "vimeo/psalm": "^5.12" + }, + "suggest": { + "ext-intl": "PHP Internationalization Libraries are required to use the SpoofChecking validation" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Egulias\\EmailValidator\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Eduardo Gulias Davis" + } + ], + "description": "A library for validating emails against several RFCs", + "homepage": "https://github.com/egulias/EmailValidator", + "keywords": [ + "email", + "emailvalidation", + "emailvalidator", + "validation", + "validator" + ], + "support": { + "issues": "https://github.com/egulias/EmailValidator/issues", + "source": "https://github.com/egulias/EmailValidator/tree/4.0.4" + }, + "funding": [ + { + "url": "https://github.com/egulias", + "type": "github" + } + ], + "time": "2025-03-06T22:45:56+00:00" + }, + { + "name": "ezyang/htmlpurifier", + "version": "v4.19.0", + "source": { + "type": "git", + "url": "https://github.com/ezyang/htmlpurifier.git", + "reference": "b287d2a16aceffbf6e0295559b39662612b77fcf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ezyang/htmlpurifier/zipball/b287d2a16aceffbf6e0295559b39662612b77fcf", + "reference": "b287d2a16aceffbf6e0295559b39662612b77fcf", + "shasum": "" + }, + "require": { + "php": "~5.6.0 || ~7.0.0 || ~7.1.0 || ~7.2.0 || ~7.3.0 || ~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0" + }, + "require-dev": { + "cerdic/css-tidy": "^1.7 || ^2.0", + "simpletest/simpletest": "dev-master" + }, + "suggest": { + "cerdic/css-tidy": "If you want to use the filter 'Filter.ExtractStyleBlocks'.", + "ext-bcmath": "Used for unit conversion and imagecrash protection", + "ext-iconv": "Converts text to and from non-UTF-8 encodings", + "ext-tidy": "Used for pretty-printing HTML" + }, + "type": "library", + "autoload": { + "files": [ + "library/HTMLPurifier.composer.php" + ], + "psr-0": { + "HTMLPurifier": "library/" + }, + "exclude-from-classmap": [ + "/library/HTMLPurifier/Language/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-2.1-or-later" + ], + "authors": [ + { + "name": "Edward Z. Yang", + "email": "admin@htmlpurifier.org", + "homepage": "http://ezyang.com" + } + ], + "description": "Standards compliant HTML filter written in PHP", + "homepage": "http://htmlpurifier.org/", + "keywords": [ + "html" + ], + "support": { + "issues": "https://github.com/ezyang/htmlpurifier/issues", + "source": "https://github.com/ezyang/htmlpurifier/tree/v4.19.0" + }, + "time": "2025-10-17T16:34:55+00:00" + }, + { + "name": "facade/ignition-contracts", + "version": "1.0.2", + "source": { + "type": "git", + "url": "https://github.com/facade/ignition-contracts.git", + "reference": "3c921a1cdba35b68a7f0ccffc6dffc1995b18267" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/facade/ignition-contracts/zipball/3c921a1cdba35b68a7f0ccffc6dffc1995b18267", + "reference": "3c921a1cdba35b68a7f0ccffc6dffc1995b18267", + "shasum": "" + }, + "require": { + "php": "^7.3|^8.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^v2.15.8", + "phpunit/phpunit": "^9.3.11", + "vimeo/psalm": "^3.17.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "Facade\\IgnitionContracts\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "homepage": "https://flareapp.io", + "role": "Developer" + } + ], + "description": "Solution contracts for Ignition", + "homepage": "https://github.com/facade/ignition-contracts", + "keywords": [ + "contracts", + "flare", + "ignition" + ], + "support": { + "issues": "https://github.com/facade/ignition-contracts/issues", + "source": "https://github.com/facade/ignition-contracts/tree/1.0.2" + }, + "time": "2020-10-16T08:27:54+00:00" + }, + { + "name": "filament/actions", + "version": "v4.5.1", + "source": { + "type": "git", + "url": "https://github.com/filamentphp/actions.git", + "reference": "9498be6d520979e8613b576a96c430aa1e8725db" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/filamentphp/actions/zipball/9498be6d520979e8613b576a96c430aa1e8725db", + "reference": "9498be6d520979e8613b576a96c430aa1e8725db", + "shasum": "" + }, + "require": { + "anourvalar/eloquent-serialize": "^1.2", + "filament/forms": "self.version", + "filament/infolists": "self.version", + "filament/notifications": "self.version", + "filament/support": "self.version", + "league/csv": "^9.27", + "openspout/openspout": "^4.23", + "php": "^8.2" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Filament\\Actions\\ActionsServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Filament\\Actions\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Easily add beautiful action modals to any Livewire component.", + "homepage": "https://github.com/filamentphp/filament", + "support": { + "issues": "https://github.com/filamentphp/filament/issues", + "source": "https://github.com/filamentphp/filament" + }, + "time": "2026-01-07T12:49:20+00:00" + }, + { + "name": "filament/filament", + "version": "v4.5.1", + "source": { + "type": "git", + "url": "https://github.com/filamentphp/panels.git", + "reference": "0b7eb4fdf32c41b6789bfdf60c9ba3056c99de1c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/filamentphp/panels/zipball/0b7eb4fdf32c41b6789bfdf60c9ba3056c99de1c", + "reference": "0b7eb4fdf32c41b6789bfdf60c9ba3056c99de1c", + "shasum": "" + }, + "require": { + "chillerlan/php-qrcode": "^5.0", + "filament/actions": "self.version", + "filament/forms": "self.version", + "filament/infolists": "self.version", + "filament/notifications": "self.version", + "filament/schemas": "self.version", + "filament/support": "self.version", + "filament/tables": "self.version", + "filament/widgets": "self.version", + "php": "^8.2", + "pragmarx/google2fa": "^8.0|^9.0", + "pragmarx/google2fa-qrcode": "^3.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Filament\\FilamentServiceProvider" + ] + } + }, + "autoload": { + "files": [ + "src/global_helpers.php", + "src/helpers.php" + ], + "psr-4": { + "Filament\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A collection of full-stack components for accelerated Laravel app development.", + "homepage": "https://github.com/filamentphp/filament", + "support": { + "issues": "https://github.com/filamentphp/filament/issues", + "source": "https://github.com/filamentphp/filament" + }, + "time": "2026-01-07T12:49:48+00:00" + }, + { + "name": "filament/forms", + "version": "v4.5.1", + "source": { + "type": "git", + "url": "https://github.com/filamentphp/forms.git", + "reference": "6865ac8caa164ea5e274167297bc3bd5335cd5f4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/filamentphp/forms/zipball/6865ac8caa164ea5e274167297bc3bd5335cd5f4", + "reference": "6865ac8caa164ea5e274167297bc3bd5335cd5f4", + "shasum": "" + }, + "require": { + "danharrin/date-format-converter": "^0.3", + "filament/actions": "self.version", + "filament/schemas": "self.version", + "filament/support": "self.version", + "php": "^8.2", + "ueberdosis/tiptap-php": "^2.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Filament\\Forms\\FormsServiceProvider" + ] + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Filament\\Forms\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Easily add beautiful forms to any Livewire component.", + "homepage": "https://github.com/filamentphp/filament", + "support": { + "issues": "https://github.com/filamentphp/filament/issues", + "source": "https://github.com/filamentphp/filament" + }, + "time": "2026-01-07T15:33:24+00:00" + }, + { + "name": "filament/infolists", + "version": "v4.5.1", + "source": { + "type": "git", + "url": "https://github.com/filamentphp/infolists.git", + "reference": "beaa1bc7ec115369b5add11fc6e05fe234259d67" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/filamentphp/infolists/zipball/beaa1bc7ec115369b5add11fc6e05fe234259d67", + "reference": "beaa1bc7ec115369b5add11fc6e05fe234259d67", + "shasum": "" + }, + "require": { + "filament/actions": "self.version", + "filament/schemas": "self.version", + "filament/support": "self.version", + "php": "^8.2" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Filament\\Infolists\\InfolistsServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Filament\\Infolists\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Easily add beautiful read-only infolists to any Livewire component.", + "homepage": "https://github.com/filamentphp/filament", + "support": { + "issues": "https://github.com/filamentphp/filament/issues", + "source": "https://github.com/filamentphp/filament" + }, + "time": "2026-01-07T12:49:18+00:00" + }, + { + "name": "filament/notifications", + "version": "v4.5.1", + "source": { + "type": "git", + "url": "https://github.com/filamentphp/notifications.git", + "reference": "f8657e9b98f549f316daf74cf24a659b85a10e12" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/filamentphp/notifications/zipball/f8657e9b98f549f316daf74cf24a659b85a10e12", + "reference": "f8657e9b98f549f316daf74cf24a659b85a10e12", + "shasum": "" + }, + "require": { + "filament/actions": "self.version", + "filament/support": "self.version", + "php": "^8.2" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Filament\\Notifications\\NotificationsServiceProvider" + ] + } + }, + "autoload": { + "files": [ + "src/Testing/helpers.php" + ], + "psr-4": { + "Filament\\Notifications\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Easily add beautiful notifications to any Livewire app.", + "homepage": "https://github.com/filamentphp/filament", + "support": { + "issues": "https://github.com/filamentphp/filament/issues", + "source": "https://github.com/filamentphp/filament" + }, + "time": "2025-11-28T11:21:34+00:00" + }, + { + "name": "filament/query-builder", + "version": "v4.5.1", + "source": { + "type": "git", + "url": "https://github.com/filamentphp/query-builder.git", + "reference": "d9d3ecf78a87c4fad9dad7959d7280bc73f780ed" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/filamentphp/query-builder/zipball/d9d3ecf78a87c4fad9dad7959d7280bc73f780ed", + "reference": "d9d3ecf78a87c4fad9dad7959d7280bc73f780ed", + "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-12-30T13:02:08+00:00" + }, + { + "name": "filament/schemas", + "version": "v4.5.1", + "source": { + "type": "git", + "url": "https://github.com/filamentphp/schemas.git", + "reference": "ca4af5fe00d460dce3c1547c4021c913d69134e1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/filamentphp/schemas/zipball/ca4af5fe00d460dce3c1547c4021c913d69134e1", + "reference": "ca4af5fe00d460dce3c1547c4021c913d69134e1", + "shasum": "" + }, + "require": { + "danharrin/date-format-converter": "^0.3", + "filament/actions": "self.version", + "filament/support": "self.version", + "php": "^8.2" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Filament\\Schemas\\SchemasServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Filament\\Schemas\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Easily add beautiful UI to any Livewire component.", + "homepage": "https://github.com/filamentphp/filament", + "support": { + "issues": "https://github.com/filamentphp/filament/issues", + "source": "https://github.com/filamentphp/filament" + }, + "time": "2026-01-07T12:50:00+00:00" + }, + { + "name": "filament/support", + "version": "v4.5.1", + "source": { + "type": "git", + "url": "https://github.com/filamentphp/support.git", + "reference": "da8504394555982af3d6d948f7665af6b43b4ff0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/filamentphp/support/zipball/da8504394555982af3d6d948f7665af6b43b4ff0", + "reference": "da8504394555982af3d6d948f7665af6b43b4ff0", + "shasum": "" + }, + "require": { + "blade-ui-kit/blade-heroicons": "^2.5", + "danharrin/livewire-rate-limiting": "^2.0", + "ext-intl": "*", + "illuminate/contracts": "^11.28|^12.0", + "kirschbaum-development/eloquent-power-joins": "^4.0", + "league/uri-components": "^7.0", + "livewire/livewire": "^3.5", + "nette/php-generator": "^4.0", + "php": "^8.2", + "ryangjchandler/blade-capture-directive": "^1.0", + "spatie/invade": "^2.0", + "spatie/laravel-package-tools": "^1.9", + "symfony/console": "^7.0", + "symfony/html-sanitizer": "^7.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Filament\\Support\\SupportServiceProvider" + ] + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Filament\\Support\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Core helper methods and foundation code for all Filament packages.", + "homepage": "https://github.com/filamentphp/filament", + "support": { + "issues": "https://github.com/filamentphp/filament/issues", + "source": "https://github.com/filamentphp/filament" + }, + "time": "2026-01-07T15:35:02+00:00" + }, + { + "name": "filament/tables", + "version": "v4.5.1", + "source": { + "type": "git", + "url": "https://github.com/filamentphp/tables.git", + "reference": "9b6de34dc711b7e16400913463afdf3f43e7e861" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/filamentphp/tables/zipball/9b6de34dc711b7e16400913463afdf3f43e7e861", + "reference": "9b6de34dc711b7e16400913463afdf3f43e7e861", + "shasum": "" + }, + "require": { + "filament/actions": "self.version", + "filament/forms": "self.version", + "filament/query-builder": "self.version", + "filament/support": "self.version", + "php": "^8.2" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Filament\\Tables\\TablesServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Filament\\Tables\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Easily add beautiful tables to any Livewire component.", + "homepage": "https://github.com/filamentphp/filament", + "support": { + "issues": "https://github.com/filamentphp/filament/issues", + "source": "https://github.com/filamentphp/filament" + }, + "time": "2026-01-07T15:33:29+00:00" + }, + { + "name": "filament/widgets", + "version": "v4.5.1", + "source": { + "type": "git", + "url": "https://github.com/filamentphp/widgets.git", + "reference": "a3c154738fe5224ccdd144ddf06068f069bc0917" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/filamentphp/widgets/zipball/a3c154738fe5224ccdd144ddf06068f069bc0917", + "reference": "a3c154738fe5224ccdd144ddf06068f069bc0917", + "shasum": "" + }, + "require": { + "filament/schemas": "self.version", + "filament/support": "self.version", + "php": "^8.2" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Filament\\Widgets\\WidgetsServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Filament\\Widgets\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Easily add beautiful dashboard widgets to any Livewire component.", + "homepage": "https://github.com/filamentphp/filament", + "support": { + "issues": "https://github.com/filamentphp/filament/issues", + "source": "https://github.com/filamentphp/filament" + }, + "time": "2026-01-07T12:49:18+00:00" + }, + { + "name": "flowframe/laravel-trend", + "version": "v0.4.0", + "source": { + "type": "git", + "url": "https://github.com/Flowframe/laravel-trend.git", + "reference": "5ace11d3075932652dc48963faa732c043aeb14d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Flowframe/laravel-trend/zipball/5ace11d3075932652dc48963faa732c043aeb14d", + "reference": "5ace11d3075932652dc48963faa732c043aeb14d", + "shasum": "" + }, + "require": { + "illuminate/contracts": "^8.37|^9|^10.0|^11.0|^12.0", + "php": "^8.2", + "spatie/laravel-package-tools": "^1.4.3" + }, + "require-dev": { + "nunomaduro/collision": "^5.3|^6.1|^8.0", + "orchestra/testbench": "^6.15|^7.0|^8.0|^9.0|^10.0", + "pestphp/pest": "^1.18|^2.34|^3.7", + "pestphp/pest-plugin-laravel": "^1.1|^2.3|^3.1", + "spatie/laravel-ray": "^1.23", + "vimeo/psalm": "^4.8|^5.6|^6.5" + }, + "type": "library", + "extra": { + "laravel": { + "aliases": { + "Trend": "Flowframe\\Trend\\TrendFacade" + }, + "providers": [ + "Flowframe\\Trend\\TrendServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Flowframe\\Trend\\": "src", + "Flowframe\\Trend\\Database\\Factories\\": "database/factories" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Lars Klopstra", + "email": "lars@flowframe.nl", + "role": "Developer" + } + ], + "description": "Easily generate model trends", + "homepage": "https://github.com/flowframe/laravel-trend", + "keywords": [ + "Flowframe", + "laravel", + "laravel-trend" + ], + "support": { + "issues": "https://github.com/Flowframe/laravel-trend/issues", + "source": "https://github.com/Flowframe/laravel-trend/tree/v0.4.0" + }, + "funding": [ + { + "url": "https://github.com/larsklopstra", + "type": "github" + } + ], + "time": "2025-02-25T11:13:23+00:00" + }, + { + "name": "fruitcake/php-cors", + "version": "v1.4.0", + "source": { + "type": "git", + "url": "https://github.com/fruitcake/php-cors.git", + "reference": "38aaa6c3fd4c157ffe2a4d10aa8b9b16ba8de379" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/fruitcake/php-cors/zipball/38aaa6c3fd4c157ffe2a4d10aa8b9b16ba8de379", + "reference": "38aaa6c3fd4c157ffe2a4d10aa8b9b16ba8de379", + "shasum": "" + }, + "require": { + "php": "^8.1", + "symfony/http-foundation": "^5.4|^6.4|^7.3|^8" + }, + "require-dev": { + "phpstan/phpstan": "^2", + "phpunit/phpunit": "^9", + "squizlabs/php_codesniffer": "^4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.3-dev" + } + }, + "autoload": { + "psr-4": { + "Fruitcake\\Cors\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fruitcake", + "homepage": "https://fruitcake.nl" + }, + { + "name": "Barryvdh", + "email": "barryvdh@gmail.com" + } + ], + "description": "Cross-origin resource sharing library for the Symfony HttpFoundation", + "homepage": "https://github.com/fruitcake/php-cors", + "keywords": [ + "cors", + "laravel", + "symfony" + ], + "support": { + "issues": "https://github.com/fruitcake/php-cors/issues", + "source": "https://github.com/fruitcake/php-cors/tree/v1.4.0" + }, + "funding": [ + { + "url": "https://fruitcake.nl", + "type": "custom" + }, + { + "url": "https://github.com/barryvdh", + "type": "github" + } + ], + "time": "2025-12-03T09:33:47+00:00" + }, + { + "name": "graham-campbell/result-type", + "version": "v1.1.4", + "source": { + "type": "git", + "url": "https://github.com/GrahamCampbell/Result-Type.git", + "reference": "e01f4a821471308ba86aa202fed6698b6b695e3b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/GrahamCampbell/Result-Type/zipball/e01f4a821471308ba86aa202fed6698b6b695e3b", + "reference": "e01f4a821471308ba86aa202fed6698b6b695e3b", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0", + "phpoption/phpoption": "^1.9.5" + }, + "require-dev": { + "phpunit/phpunit": "^8.5.41 || ^9.6.22 || ^10.5.45 || ^11.5.7" + }, + "type": "library", + "autoload": { + "psr-4": { + "GrahamCampbell\\ResultType\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + } + ], + "description": "An Implementation Of The Result Type", + "keywords": [ + "Graham Campbell", + "GrahamCampbell", + "Result Type", + "Result-Type", + "result" + ], + "support": { + "issues": "https://github.com/GrahamCampbell/Result-Type/issues", + "source": "https://github.com/GrahamCampbell/Result-Type/tree/v1.1.4" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/graham-campbell/result-type", + "type": "tidelift" + } + ], + "time": "2025-12-27T19:43:20+00:00" + }, + { + "name": "guzzlehttp/guzzle", + "version": "7.10.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/guzzle.git", + "reference": "b51ac707cfa420b7bfd4e4d5e510ba8008e822b4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/b51ac707cfa420b7bfd4e4d5e510ba8008e822b4", + "reference": "b51ac707cfa420b7bfd4e4d5e510ba8008e822b4", + "shasum": "" + }, + "require": { + "ext-json": "*", + "guzzlehttp/promises": "^2.3", + "guzzlehttp/psr7": "^2.8", + "php": "^7.2.5 || ^8.0", + "psr/http-client": "^1.0", + "symfony/deprecation-contracts": "^2.2 || ^3.0" + }, + "provide": { + "psr/http-client-implementation": "1.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "ext-curl": "*", + "guzzle/client-integration-tests": "3.0.2", + "php-http/message-factory": "^1.1", + "phpunit/phpunit": "^8.5.39 || ^9.6.20", + "psr/log": "^1.1 || ^2.0 || ^3.0" + }, + "suggest": { + "ext-curl": "Required for CURL handler support", + "ext-intl": "Required for Internationalized Domain Name (IDN) support", + "psr/log": "Required for using the Log middleware" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, + "autoload": { + "files": [ + "src/functions_include.php" + ], + "psr-4": { + "GuzzleHttp\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Jeremy Lindblom", + "email": "jeremeamia@gmail.com", + "homepage": "https://github.com/jeremeamia" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://github.com/sagikazarmark" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + } + ], + "description": "Guzzle is a PHP HTTP client library", + "keywords": [ + "client", + "curl", + "framework", + "http", + "http client", + "psr-18", + "psr-7", + "rest", + "web service" + ], + "support": { + "issues": "https://github.com/guzzle/guzzle/issues", + "source": "https://github.com/guzzle/guzzle/tree/7.10.0" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/guzzle", + "type": "tidelift" + } + ], + "time": "2025-08-23T22:36:01+00:00" + }, + { + "name": "guzzlehttp/promises", + "version": "2.3.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/promises.git", + "reference": "481557b130ef3790cf82b713667b43030dc9c957" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/promises/zipball/481557b130ef3790cf82b713667b43030dc9c957", + "reference": "481557b130ef3790cf82b713667b43030dc9c957", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "phpunit/phpunit": "^8.5.44 || ^9.6.25" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\Promise\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + } + ], + "description": "Guzzle promises library", + "keywords": [ + "promise" + ], + "support": { + "issues": "https://github.com/guzzle/promises/issues", + "source": "https://github.com/guzzle/promises/tree/2.3.0" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/promises", + "type": "tidelift" + } + ], + "time": "2025-08-22T14:34:08+00:00" + }, + { + "name": "guzzlehttp/psr7", + "version": "2.8.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/psr7.git", + "reference": "21dc724a0583619cd1652f673303492272778051" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/21dc724a0583619cd1652f673303492272778051", + "reference": "21dc724a0583619cd1652f673303492272778051", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0", + "psr/http-factory": "^1.0", + "psr/http-message": "^1.1 || ^2.0", + "ralouphie/getallheaders": "^3.0" + }, + "provide": { + "psr/http-factory-implementation": "1.0", + "psr/http-message-implementation": "1.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "http-interop/http-factory-tests": "0.9.0", + "phpunit/phpunit": "^8.5.44 || ^9.6.25" + }, + "suggest": { + "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\Psr7\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://github.com/sagikazarmark" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://sagikazarmark.hu" + } + ], + "description": "PSR-7 message implementation that also provides common utility methods", + "keywords": [ + "http", + "message", + "psr-7", + "request", + "response", + "stream", + "uri", + "url" + ], + "support": { + "issues": "https://github.com/guzzle/psr7/issues", + "source": "https://github.com/guzzle/psr7/tree/2.8.0" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/psr7", + "type": "tidelift" + } + ], + "time": "2025-08-23T21:21:41+00:00" + }, + { + "name": "guzzlehttp/uri-template", + "version": "v1.0.5", + "source": { + "type": "git", + "url": "https://github.com/guzzle/uri-template.git", + "reference": "4f4bbd4e7172148801e76e3decc1e559bdee34e1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/uri-template/zipball/4f4bbd4e7172148801e76e3decc1e559bdee34e1", + "reference": "4f4bbd4e7172148801e76e3decc1e559bdee34e1", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0", + "symfony/polyfill-php80": "^1.24" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "phpunit/phpunit": "^8.5.44 || ^9.6.25", + "uri-template/tests": "1.0.0" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\UriTemplate\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + } + ], + "description": "A polyfill class for uri_template of PHP", + "keywords": [ + "guzzlehttp", + "uri-template" + ], + "support": { + "issues": "https://github.com/guzzle/uri-template/issues", + "source": "https://github.com/guzzle/uri-template/tree/v1.0.5" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/uri-template", + "type": "tidelift" + } + ], + "time": "2025-08-22T14:27:06+00:00" + }, + { + "name": "itsgoingd/clockwork", + "version": "v5.3.5", + "source": { + "type": "git", + "url": "https://github.com/itsgoingd/clockwork.git", + "reference": "d928483e231f042dbff9258795cb17aadaebc7d0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/itsgoingd/clockwork/zipball/d928483e231f042dbff9258795cb17aadaebc7d0", + "reference": "d928483e231f042dbff9258795cb17aadaebc7d0", + "shasum": "" + }, + "require": { + "ext-json": "*", + "php": ">=7.1" + }, + "suggest": { + "ext-pdo": "Needed in order to use a SQL database for metadata storage", + "ext-pdo_mysql": "Needed in order to use MySQL for metadata storage", + "ext-pdo_postgres": "Needed in order to use Postgres for metadata storage", + "ext-pdo_sqlite": "Needed in order to use a SQLite for metadata storage", + "ext-redis": "Needed in order to use Redis for metadata storage", + "php-http/discovery": "Vanilla integration - required for the middleware zero-configuration setup" + }, + "type": "library", + "extra": { + "laravel": { + "aliases": { + "Clockwork": "Clockwork\\Support\\Laravel\\Facade" + }, + "providers": [ + "Clockwork\\Support\\Laravel\\ClockworkServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Clockwork\\": "Clockwork/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "itsgoingd", + "email": "itsgoingd@luzer.sk", + "homepage": "https://twitter.com/itsgoingd" + } + ], + "description": "php dev tools in your browser", + "homepage": "https://underground.works/clockwork", + "keywords": [ + "Devtools", + "debugging", + "laravel", + "logging", + "lumen", + "profiling", + "slim" + ], + "support": { + "issues": "https://github.com/itsgoingd/clockwork/issues", + "source": "https://github.com/itsgoingd/clockwork/tree/v5.3.5" + }, + "funding": [ + { + "url": "https://github.com/itsgoingd", + "type": "github" + } + ], + "time": "2025-09-14T15:34:49+00:00" + }, + { + "name": "jaybizzle/crawler-detect", + "version": "v1.3.6", + "source": { + "type": "git", + "url": "https://github.com/JayBizzle/Crawler-Detect.git", + "reference": "61f2ef1ad2d0ae922c265931cb0a8032a1ed2813" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/JayBizzle/Crawler-Detect/zipball/61f2ef1ad2d0ae922c265931cb0a8032a1ed2813", + "reference": "61f2ef1ad2d0ae922c265931cb0a8032a1ed2813", + "shasum": "" + }, + "require": { + "php": ">=7.1.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8|^5.5|^6.5|^9.4" + }, + "type": "library", + "autoload": { + "psr-4": { + "Jaybizzle\\CrawlerDetect\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mark Beech", + "email": "m@rkbee.ch", + "role": "Developer" + } + ], + "description": "CrawlerDetect is a PHP class for detecting bots/crawlers/spiders via the user agent", + "homepage": "https://github.com/JayBizzle/Crawler-Detect/", + "keywords": [ + "crawler", + "crawler detect", + "crawler detector", + "crawlerdetect", + "php crawler detect" + ], + "support": { + "issues": "https://github.com/JayBizzle/Crawler-Detect/issues", + "source": "https://github.com/JayBizzle/Crawler-Detect/tree/v1.3.6" + }, + "time": "2025-09-30T16:22:43+00:00" + }, + { + "name": "jenssegers/agent", + "version": "v2.6.4", + "source": { + "type": "git", + "url": "https://github.com/jenssegers/agent.git", + "reference": "daa11c43729510b3700bc34d414664966b03bffe" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/jenssegers/agent/zipball/daa11c43729510b3700bc34d414664966b03bffe", + "reference": "daa11c43729510b3700bc34d414664966b03bffe", + "shasum": "" + }, + "require": { + "jaybizzle/crawler-detect": "^1.2", + "mobiledetect/mobiledetectlib": "^2.7.6", + "php": ">=5.6" + }, + "require-dev": { + "php-coveralls/php-coveralls": "^2.1", + "phpunit/phpunit": "^5.0|^6.0|^7.0" + }, + "suggest": { + "illuminate/support": "Required for laravel service providers" + }, + "type": "library", + "extra": { + "laravel": { + "aliases": { + "Agent": "Jenssegers\\Agent\\Facades\\Agent" + }, + "providers": [ + "Jenssegers\\Agent\\AgentServiceProvider" + ] + }, + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "psr-4": { + "Jenssegers\\Agent\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jens Segers", + "homepage": "https://jenssegers.com" + } + ], + "description": "Desktop/mobile user agent parser with support for Laravel, based on Mobiledetect", + "homepage": "https://github.com/jenssegers/agent", + "keywords": [ + "Agent", + "browser", + "desktop", + "laravel", + "mobile", + "platform", + "user agent", + "useragent" + ], + "support": { + "issues": "https://github.com/jenssegers/agent/issues", + "source": "https://github.com/jenssegers/agent/tree/v2.6.4" + }, + "funding": [ + { + "url": "https://github.com/jenssegers", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/jenssegers/agent", + "type": "tidelift" + } + ], + "time": "2020-06-13T08:05:20+00:00" + }, + { + "name": "kirschbaum-development/eloquent-power-joins", + "version": "4.2.11", + "source": { + "type": "git", + "url": "https://github.com/kirschbaum-development/eloquent-power-joins.git", + "reference": "0e3e3372992e4bf82391b3c7b84b435c3db73588" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/kirschbaum-development/eloquent-power-joins/zipball/0e3e3372992e4bf82391b3c7b84b435c3db73588", + "reference": "0e3e3372992e4bf82391b3c7b84b435c3db73588", + "shasum": "" + }, + "require": { + "illuminate/database": "^11.42|^12.0", + "illuminate/support": "^11.42|^12.0", + "php": "^8.2" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "dev-master", + "laravel/legacy-factories": "^1.0@dev", + "orchestra/testbench": "^9.0|^10.0", + "phpunit/phpunit": "^10.0|^11.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Kirschbaum\\PowerJoins\\PowerJoinsServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Kirschbaum\\PowerJoins\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Luis Dalmolin", + "email": "luis.nh@gmail.com", + "role": "Developer" + } + ], + "description": "The Laravel magic applied to joins.", + "homepage": "https://github.com/kirschbaum-development/eloquent-power-joins", + "keywords": [ + "eloquent", + "join", + "laravel", + "mysql" + ], + "support": { + "issues": "https://github.com/kirschbaum-development/eloquent-power-joins/issues", + "source": "https://github.com/kirschbaum-development/eloquent-power-joins/tree/4.2.11" + }, + "time": "2025-12-17T00:37:48+00:00" + }, + { + "name": "laravel/fortify", + "version": "v1.33.0", + "source": { + "type": "git", + "url": "https://github.com/laravel/fortify.git", + "reference": "e0666dabeec0b6428678af1d51f436dcfb24e3a9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/fortify/zipball/e0666dabeec0b6428678af1d51f436dcfb24e3a9", + "reference": "e0666dabeec0b6428678af1d51f436dcfb24e3a9", + "shasum": "" + }, + "require": { + "bacon/bacon-qr-code": "^3.0", + "ext-json": "*", + "illuminate/support": "^10.0|^11.0|^12.0", + "php": "^8.1", + "pragmarx/google2fa": "^9.0", + "symfony/console": "^6.0|^7.0" + }, + "require-dev": { + "orchestra/testbench": "^8.36|^9.15|^10.8", + "phpstan/phpstan": "^1.10" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Laravel\\Fortify\\FortifyServiceProvider" + ] + }, + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Laravel\\Fortify\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "Backend controllers and scaffolding for Laravel authentication.", + "keywords": [ + "auth", + "laravel" + ], + "support": { + "issues": "https://github.com/laravel/fortify/issues", + "source": "https://github.com/laravel/fortify" + }, + "time": "2025-12-15T14:48:33+00:00" + }, + { + "name": "laravel/framework", + "version": "v12.45.2", + "source": { + "type": "git", + "url": "https://github.com/laravel/framework.git", + "reference": "d644693433290996bf764397b086228ce81781e6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/framework/zipball/d644693433290996bf764397b086228ce81781e6", + "reference": "d644693433290996bf764397b086228ce81781e6", + "shasum": "" + }, + "require": { + "brick/math": "^0.11|^0.12|^0.13|^0.14", + "composer-runtime-api": "^2.2", + "doctrine/inflector": "^2.0.5", + "dragonmantank/cron-expression": "^3.4", + "egulias/email-validator": "^3.2.1|^4.0", + "ext-ctype": "*", + "ext-filter": "*", + "ext-hash": "*", + "ext-mbstring": "*", + "ext-openssl": "*", + "ext-session": "*", + "ext-tokenizer": "*", + "fruitcake/php-cors": "^1.3", + "guzzlehttp/guzzle": "^7.8.2", + "guzzlehttp/uri-template": "^1.0", + "laravel/prompts": "^0.3.0", + "laravel/serializable-closure": "^1.3|^2.0", + "league/commonmark": "^2.7", + "league/flysystem": "^3.25.1", + "league/flysystem-local": "^3.25.1", + "league/uri": "^7.5.1", + "monolog/monolog": "^3.0", + "nesbot/carbon": "^3.8.4", + "nunomaduro/termwind": "^2.0", + "php": "^8.2", + "psr/container": "^1.1.1|^2.0.1", + "psr/log": "^1.0|^2.0|^3.0", + "psr/simple-cache": "^1.0|^2.0|^3.0", + "ramsey/uuid": "^4.7", + "symfony/console": "^7.2.0", + "symfony/error-handler": "^7.2.0", + "symfony/finder": "^7.2.0", + "symfony/http-foundation": "^7.2.0", + "symfony/http-kernel": "^7.2.0", + "symfony/mailer": "^7.2.0", + "symfony/mime": "^7.2.0", + "symfony/polyfill-php83": "^1.33", + "symfony/polyfill-php84": "^1.33", + "symfony/polyfill-php85": "^1.33", + "symfony/process": "^7.2.0", + "symfony/routing": "^7.2.0", + "symfony/uid": "^7.2.0", + "symfony/var-dumper": "^7.2.0", + "tijsverkoyen/css-to-inline-styles": "^2.2.5", + "vlucas/phpdotenv": "^5.6.1", + "voku/portable-ascii": "^2.0.2" + }, + "conflict": { + "tightenco/collect": "<5.5.33" + }, + "provide": { + "psr/container-implementation": "1.1|2.0", + "psr/log-implementation": "1.0|2.0|3.0", + "psr/simple-cache-implementation": "1.0|2.0|3.0" + }, + "replace": { + "illuminate/auth": "self.version", + "illuminate/broadcasting": "self.version", + "illuminate/bus": "self.version", + "illuminate/cache": "self.version", + "illuminate/collections": "self.version", + "illuminate/concurrency": "self.version", + "illuminate/conditionable": "self.version", + "illuminate/config": "self.version", + "illuminate/console": "self.version", + "illuminate/container": "self.version", + "illuminate/contracts": "self.version", + "illuminate/cookie": "self.version", + "illuminate/database": "self.version", + "illuminate/encryption": "self.version", + "illuminate/events": "self.version", + "illuminate/filesystem": "self.version", + "illuminate/hashing": "self.version", + "illuminate/http": "self.version", + "illuminate/json-schema": "self.version", + "illuminate/log": "self.version", + "illuminate/macroable": "self.version", + "illuminate/mail": "self.version", + "illuminate/notifications": "self.version", + "illuminate/pagination": "self.version", + "illuminate/pipeline": "self.version", + "illuminate/process": "self.version", + "illuminate/queue": "self.version", + "illuminate/redis": "self.version", + "illuminate/reflection": "self.version", + "illuminate/routing": "self.version", + "illuminate/session": "self.version", + "illuminate/support": "self.version", + "illuminate/testing": "self.version", + "illuminate/translation": "self.version", + "illuminate/validation": "self.version", + "illuminate/view": "self.version", + "spatie/once": "*" + }, + "require-dev": { + "ably/ably-php": "^1.0", + "aws/aws-sdk-php": "^3.322.9", + "ext-gmp": "*", + "fakerphp/faker": "^1.24", + "guzzlehttp/promises": "^2.0.3", + "guzzlehttp/psr7": "^2.4", + "laravel/pint": "^1.18", + "league/flysystem-aws-s3-v3": "^3.25.1", + "league/flysystem-ftp": "^3.25.1", + "league/flysystem-path-prefixing": "^3.25.1", + "league/flysystem-read-only": "^3.25.1", + "league/flysystem-sftp-v3": "^3.25.1", + "mockery/mockery": "^1.6.10", + "opis/json-schema": "^2.4.1", + "orchestra/testbench-core": "^10.8.1", + "pda/pheanstalk": "^5.0.6|^7.0.0", + "php-http/discovery": "^1.15", + "phpstan/phpstan": "^2.0", + "phpunit/phpunit": "^10.5.35|^11.5.3|^12.0.1", + "predis/predis": "^2.3|^3.0", + "resend/resend-php": "^0.10.0|^1.0", + "symfony/cache": "^7.2.0", + "symfony/http-client": "^7.2.0", + "symfony/psr-http-message-bridge": "^7.2.0", + "symfony/translation": "^7.2.0" + }, + "suggest": { + "ably/ably-php": "Required to use the Ably broadcast driver (^1.0).", + "aws/aws-sdk-php": "Required to use the SQS queue driver, DynamoDb failed job storage, and SES mail driver (^3.322.9).", + "brianium/paratest": "Required to run tests in parallel (^7.0|^8.0).", + "ext-apcu": "Required to use the APC cache driver.", + "ext-fileinfo": "Required to use the Filesystem class.", + "ext-ftp": "Required to use the Flysystem FTP driver.", + "ext-gd": "Required to use Illuminate\\Http\\Testing\\FileFactory::image().", + "ext-memcached": "Required to use the memcache cache driver.", + "ext-pcntl": "Required to use all features of the queue worker and console signal trapping.", + "ext-pdo": "Required to use all database features.", + "ext-posix": "Required to use all features of the queue worker.", + "ext-redis": "Required to use the Redis cache and queue drivers (^4.0|^5.0|^6.0).", + "fakerphp/faker": "Required to generate fake data using the fake() helper (^1.23).", + "filp/whoops": "Required for friendly error pages in development (^2.14.3).", + "laravel/tinker": "Required to use the tinker console command (^2.0).", + "league/flysystem-aws-s3-v3": "Required to use the Flysystem S3 driver (^3.25.1).", + "league/flysystem-ftp": "Required to use the Flysystem FTP driver (^3.25.1).", + "league/flysystem-path-prefixing": "Required to use the scoped driver (^3.25.1).", + "league/flysystem-read-only": "Required to use read-only disks (^3.25.1)", + "league/flysystem-sftp-v3": "Required to use the Flysystem SFTP driver (^3.25.1).", + "mockery/mockery": "Required to use mocking (^1.6).", + "pda/pheanstalk": "Required to use the beanstalk queue driver (^5.0).", + "php-http/discovery": "Required to use PSR-7 bridging features (^1.15).", + "phpunit/phpunit": "Required to use assertions and run tests (^10.5.35|^11.5.3|^12.0.1).", + "predis/predis": "Required to use the predis connector (^2.3|^3.0).", + "psr/http-message": "Required to allow Storage::put to accept a StreamInterface (^1.0).", + "pusher/pusher-php-server": "Required to use the Pusher broadcast driver (^6.0|^7.0).", + "resend/resend-php": "Required to enable support for the Resend mail transport (^0.10.0|^1.0).", + "symfony/cache": "Required to PSR-6 cache bridge (^7.2).", + "symfony/filesystem": "Required to enable support for relative symbolic links (^7.2).", + "symfony/http-client": "Required to enable support for the Symfony API mail transports (^7.2).", + "symfony/mailgun-mailer": "Required to enable support for the Mailgun mail transport (^7.2).", + "symfony/postmark-mailer": "Required to enable support for the Postmark mail transport (^7.2).", + "symfony/psr-http-message-bridge": "Required to use PSR-7 bridging features (^7.2)." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "12.x-dev" + } + }, + "autoload": { + "files": [ + "src/Illuminate/Collections/functions.php", + "src/Illuminate/Collections/helpers.php", + "src/Illuminate/Events/functions.php", + "src/Illuminate/Filesystem/functions.php", + "src/Illuminate/Foundation/helpers.php", + "src/Illuminate/Log/functions.php", + "src/Illuminate/Reflection/helpers.php", + "src/Illuminate/Support/functions.php", + "src/Illuminate/Support/helpers.php" + ], + "psr-4": { + "Illuminate\\": "src/Illuminate/", + "Illuminate\\Support\\": [ + "src/Illuminate/Macroable/", + "src/Illuminate/Collections/", + "src/Illuminate/Conditionable/", + "src/Illuminate/Reflection/" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "The Laravel Framework.", + "homepage": "https://laravel.com", + "keywords": [ + "framework", + "laravel" + ], + "support": { + "issues": "https://github.com/laravel/framework/issues", + "source": "https://github.com/laravel/framework" + }, + "time": "2026-01-07T15:03:01+00:00" + }, + { + "name": "laravel/prompts", + "version": "v0.3.8", + "source": { + "type": "git", + "url": "https://github.com/laravel/prompts.git", + "reference": "096748cdfb81988f60090bbb839ce3205ace0d35" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/prompts/zipball/096748cdfb81988f60090bbb839ce3205ace0d35", + "reference": "096748cdfb81988f60090bbb839ce3205ace0d35", + "shasum": "" + }, + "require": { + "composer-runtime-api": "^2.2", + "ext-mbstring": "*", + "php": "^8.1", + "symfony/console": "^6.2|^7.0" + }, + "conflict": { + "illuminate/console": ">=10.17.0 <10.25.0", + "laravel/framework": ">=10.17.0 <10.25.0" + }, + "require-dev": { + "illuminate/collections": "^10.0|^11.0|^12.0", + "mockery/mockery": "^1.5", + "pestphp/pest": "^2.3|^3.4|^4.0", + "phpstan/phpstan": "^1.12.28", + "phpstan/phpstan-mockery": "^1.1.3" + }, + "suggest": { + "ext-pcntl": "Required for the spinner to be animated." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "0.3.x-dev" + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Laravel\\Prompts\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Add beautiful and user-friendly forms to your command-line applications.", + "support": { + "issues": "https://github.com/laravel/prompts/issues", + "source": "https://github.com/laravel/prompts/tree/v0.3.8" + }, + "time": "2025-11-21T20:52:52+00:00" + }, + { + "name": "laravel/sanctum", + "version": "v4.2.2", + "source": { + "type": "git", + "url": "https://github.com/laravel/sanctum.git", + "reference": "fd447754d2d3f56950d53b930128af2e3b617de9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/sanctum/zipball/fd447754d2d3f56950d53b930128af2e3b617de9", + "reference": "fd447754d2d3f56950d53b930128af2e3b617de9", + "shasum": "" + }, + "require": { + "ext-json": "*", + "illuminate/console": "^11.0|^12.0", + "illuminate/contracts": "^11.0|^12.0", + "illuminate/database": "^11.0|^12.0", + "illuminate/support": "^11.0|^12.0", + "php": "^8.2", + "symfony/console": "^7.0" + }, + "require-dev": { + "mockery/mockery": "^1.6", + "orchestra/testbench": "^9.15|^10.8", + "phpstan/phpstan": "^1.10" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Laravel\\Sanctum\\SanctumServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Laravel\\Sanctum\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "Laravel Sanctum provides a featherweight authentication system for SPAs and simple APIs.", + "keywords": [ + "auth", + "laravel", + "sanctum" + ], + "support": { + "issues": "https://github.com/laravel/sanctum/issues", + "source": "https://github.com/laravel/sanctum" + }, + "time": "2026-01-06T23:11:51+00:00" + }, + { + "name": "laravel/serializable-closure", + "version": "v2.0.7", + "source": { + "type": "git", + "url": "https://github.com/laravel/serializable-closure.git", + "reference": "cb291e4c998ac50637c7eeb58189c14f5de5b9dd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/serializable-closure/zipball/cb291e4c998ac50637c7eeb58189c14f5de5b9dd", + "reference": "cb291e4c998ac50637c7eeb58189c14f5de5b9dd", + "shasum": "" + }, + "require": { + "php": "^8.1" + }, + "require-dev": { + "illuminate/support": "^10.0|^11.0|^12.0", + "nesbot/carbon": "^2.67|^3.0", + "pestphp/pest": "^2.36|^3.0|^4.0", + "phpstan/phpstan": "^2.0", + "symfony/var-dumper": "^6.2.0|^7.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.x-dev" + } + }, + "autoload": { + "psr-4": { + "Laravel\\SerializableClosure\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + }, + { + "name": "Nuno Maduro", + "email": "nuno@laravel.com" + } + ], + "description": "Laravel Serializable Closure provides an easy and secure way to serialize closures in PHP.", + "keywords": [ + "closure", + "laravel", + "serializable" + ], + "support": { + "issues": "https://github.com/laravel/serializable-closure/issues", + "source": "https://github.com/laravel/serializable-closure" + }, + "time": "2025-11-21T20:52:36+00:00" + }, + { + "name": "laravel/tinker", + "version": "v2.11.0", + "source": { + "type": "git", + "url": "https://github.com/laravel/tinker.git", + "reference": "3d34b97c9a1747a81a3fde90482c092bd8b66468" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/tinker/zipball/3d34b97c9a1747a81a3fde90482c092bd8b66468", + "reference": "3d34b97c9a1747a81a3fde90482c092bd8b66468", + "shasum": "" + }, + "require": { + "illuminate/console": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0", + "illuminate/contracts": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0", + "illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0", + "php": "^7.2.5|^8.0", + "psy/psysh": "^0.11.1|^0.12.0", + "symfony/var-dumper": "^4.3.4|^5.0|^6.0|^7.0|^8.0" + }, + "require-dev": { + "mockery/mockery": "~1.3.3|^1.4.2", + "phpstan/phpstan": "^1.10", + "phpunit/phpunit": "^8.5.8|^9.3.3|^10.0" + }, + "suggest": { + "illuminate/database": "The Illuminate Database package (^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0)." + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Laravel\\Tinker\\TinkerServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Laravel\\Tinker\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "Powerful REPL for the Laravel framework.", + "keywords": [ + "REPL", + "Tinker", + "laravel", + "psysh" + ], + "support": { + "issues": "https://github.com/laravel/tinker/issues", + "source": "https://github.com/laravel/tinker/tree/v2.11.0" + }, + "time": "2025-12-19T19:16:45+00:00" + }, + { + "name": "league/commonmark", + "version": "2.8.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/commonmark.git", + "reference": "4efa10c1e56488e658d10adf7b7b7dcd19940bfb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/4efa10c1e56488e658d10adf7b7b7dcd19940bfb", + "reference": "4efa10c1e56488e658d10adf7b7b7dcd19940bfb", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "league/config": "^1.1.1", + "php": "^7.4 || ^8.0", + "psr/event-dispatcher": "^1.0", + "symfony/deprecation-contracts": "^2.1 || ^3.0", + "symfony/polyfill-php80": "^1.16" + }, + "require-dev": { + "cebe/markdown": "^1.0", + "commonmark/cmark": "0.31.1", + "commonmark/commonmark.js": "0.31.1", + "composer/package-versions-deprecated": "^1.8", + "embed/embed": "^4.4", + "erusev/parsedown": "^1.0", + "ext-json": "*", + "github/gfm": "0.29.0", + "michelf/php-markdown": "^1.4 || ^2.0", + "nyholm/psr7": "^1.5", + "phpstan/phpstan": "^1.8.2", + "phpunit/phpunit": "^9.5.21 || ^10.5.9 || ^11.0.0", + "scrutinizer/ocular": "^1.8.1", + "symfony/finder": "^5.3 | ^6.0 | ^7.0", + "symfony/process": "^5.4 | ^6.0 | ^7.0", + "symfony/yaml": "^2.3 | ^3.0 | ^4.0 | ^5.0 | ^6.0 | ^7.0", + "unleashedtech/php-coding-standard": "^3.1.1", + "vimeo/psalm": "^4.24.0 || ^5.0.0 || ^6.0.0" + }, + "suggest": { + "symfony/yaml": "v2.3+ required if using the Front Matter extension" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.9-dev" + } + }, + "autoload": { + "psr-4": { + "League\\CommonMark\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Colin O'Dell", + "email": "colinodell@gmail.com", + "homepage": "https://www.colinodell.com", + "role": "Lead Developer" + } + ], + "description": "Highly-extensible PHP Markdown parser which fully supports the CommonMark spec and GitHub-Flavored Markdown (GFM)", + "homepage": "https://commonmark.thephpleague.com", + "keywords": [ + "commonmark", + "flavored", + "gfm", + "github", + "github-flavored", + "markdown", + "md", + "parser" + ], + "support": { + "docs": "https://commonmark.thephpleague.com/", + "forum": "https://github.com/thephpleague/commonmark/discussions", + "issues": "https://github.com/thephpleague/commonmark/issues", + "rss": "https://github.com/thephpleague/commonmark/releases.atom", + "source": "https://github.com/thephpleague/commonmark" + }, + "funding": [ + { + "url": "https://www.colinodell.com/sponsor", + "type": "custom" + }, + { + "url": "https://www.paypal.me/colinpodell/10.00", + "type": "custom" + }, + { + "url": "https://github.com/colinodell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/league/commonmark", + "type": "tidelift" + } + ], + "time": "2025-11-26T21:48:24+00:00" + }, + { + "name": "league/config", + "version": "v1.2.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/config.git", + "reference": "754b3604fb2984c71f4af4a9cbe7b57f346ec1f3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/config/zipball/754b3604fb2984c71f4af4a9cbe7b57f346ec1f3", + "reference": "754b3604fb2984c71f4af4a9cbe7b57f346ec1f3", + "shasum": "" + }, + "require": { + "dflydev/dot-access-data": "^3.0.1", + "nette/schema": "^1.2", + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^1.8.2", + "phpunit/phpunit": "^9.5.5", + "scrutinizer/ocular": "^1.8.1", + "unleashedtech/php-coding-standard": "^3.1", + "vimeo/psalm": "^4.7.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.2-dev" + } + }, + "autoload": { + "psr-4": { + "League\\Config\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Colin O'Dell", + "email": "colinodell@gmail.com", + "homepage": "https://www.colinodell.com", + "role": "Lead Developer" + } + ], + "description": "Define configuration arrays with strict schemas and access values with dot notation", + "homepage": "https://config.thephpleague.com", + "keywords": [ + "array", + "config", + "configuration", + "dot", + "dot-access", + "nested", + "schema" + ], + "support": { + "docs": "https://config.thephpleague.com/", + "issues": "https://github.com/thephpleague/config/issues", + "rss": "https://github.com/thephpleague/config/releases.atom", + "source": "https://github.com/thephpleague/config" + }, + "funding": [ + { + "url": "https://www.colinodell.com/sponsor", + "type": "custom" + }, + { + "url": "https://www.paypal.me/colinpodell/10.00", + "type": "custom" + }, + { + "url": "https://github.com/colinodell", + "type": "github" + } + ], + "time": "2022-12-11T20:36:23+00:00" + }, + { + "name": "league/csv", + "version": "9.28.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/csv.git", + "reference": "6582ace29ae09ba5b07049d40ea13eb19c8b5073" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/csv/zipball/6582ace29ae09ba5b07049d40ea13eb19c8b5073", + "reference": "6582ace29ae09ba5b07049d40ea13eb19c8b5073", + "shasum": "" + }, + "require": { + "ext-filter": "*", + "php": "^8.1.2" + }, + "require-dev": { + "ext-dom": "*", + "ext-xdebug": "*", + "friendsofphp/php-cs-fixer": "^3.92.3", + "phpbench/phpbench": "^1.4.3", + "phpstan/phpstan": "^1.12.32", + "phpstan/phpstan-deprecation-rules": "^1.2.1", + "phpstan/phpstan-phpunit": "^1.4.2", + "phpstan/phpstan-strict-rules": "^1.6.2", + "phpunit/phpunit": "^10.5.16 || ^11.5.22 || ^12.5.4", + "symfony/var-dumper": "^6.4.8 || ^7.4.0 || ^8.0" + }, + "suggest": { + "ext-dom": "Required to use the XMLConverter and the HTMLConverter classes", + "ext-iconv": "Needed to ease transcoding CSV using iconv stream filters", + "ext-mbstring": "Needed to ease transcoding CSV using mb stream filters", + "ext-mysqli": "Requiered to use the package with the MySQLi extension", + "ext-pdo": "Required to use the package with the PDO extension", + "ext-pgsql": "Requiered to use the package with the PgSQL extension", + "ext-sqlite3": "Required to use the package with the SQLite3 extension" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "9.x-dev" + } + }, + "autoload": { + "files": [ + "src/functions_include.php" + ], + "psr-4": { + "League\\Csv\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ignace Nyamagana Butera", + "email": "nyamsprod@gmail.com", + "homepage": "https://github.com/nyamsprod/", + "role": "Developer" + } + ], + "description": "CSV data manipulation made easy in PHP", + "homepage": "https://csv.thephpleague.com", + "keywords": [ + "convert", + "csv", + "export", + "filter", + "import", + "read", + "transform", + "write" + ], + "support": { + "docs": "https://csv.thephpleague.com", + "issues": "https://github.com/thephpleague/csv/issues", + "rss": "https://github.com/thephpleague/csv/releases.atom", + "source": "https://github.com/thephpleague/csv" + }, + "funding": [ + { + "url": "https://github.com/sponsors/nyamsprod", + "type": "github" + } + ], + "time": "2025-12-27T15:18:42+00:00" + }, + { + "name": "league/flysystem", + "version": "3.30.2", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/flysystem.git", + "reference": "5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277", + "reference": "5966a8ba23e62bdb518dd9e0e665c2dbd4b5b277", + "shasum": "" + }, + "require": { + "league/flysystem-local": "^3.0.0", + "league/mime-type-detection": "^1.0.0", + "php": "^8.0.2" + }, + "conflict": { + "async-aws/core": "<1.19.0", + "async-aws/s3": "<1.14.0", + "aws/aws-sdk-php": "3.209.31 || 3.210.0", + "guzzlehttp/guzzle": "<7.0", + "guzzlehttp/ringphp": "<1.1.1", + "phpseclib/phpseclib": "3.0.15", + "symfony/http-client": "<5.2" + }, + "require-dev": { + "async-aws/s3": "^1.5 || ^2.0", + "async-aws/simple-s3": "^1.1 || ^2.0", + "aws/aws-sdk-php": "^3.295.10", + "composer/semver": "^3.0", + "ext-fileinfo": "*", + "ext-ftp": "*", + "ext-mongodb": "^1.3|^2", + "ext-zip": "*", + "friendsofphp/php-cs-fixer": "^3.5", + "google/cloud-storage": "^1.23", + "guzzlehttp/psr7": "^2.6", + "microsoft/azure-storage-blob": "^1.1", + "mongodb/mongodb": "^1.2|^2", + "phpseclib/phpseclib": "^3.0.36", + "phpstan/phpstan": "^1.10", + "phpunit/phpunit": "^9.5.11|^10.0", + "sabre/dav": "^4.6.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "League\\Flysystem\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Frank de Jonge", + "email": "info@frankdejonge.nl" + } + ], + "description": "File storage abstraction for PHP", + "keywords": [ + "WebDAV", + "aws", + "cloud", + "file", + "files", + "filesystem", + "filesystems", + "ftp", + "s3", + "sftp", + "storage" + ], + "support": { + "issues": "https://github.com/thephpleague/flysystem/issues", + "source": "https://github.com/thephpleague/flysystem/tree/3.30.2" + }, + "time": "2025-11-10T17:13:11+00:00" + }, + { + "name": "league/flysystem-local", + "version": "3.30.2", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/flysystem-local.git", + "reference": "ab4f9d0d672f601b102936aa728801dd1a11968d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/flysystem-local/zipball/ab4f9d0d672f601b102936aa728801dd1a11968d", + "reference": "ab4f9d0d672f601b102936aa728801dd1a11968d", + "shasum": "" + }, + "require": { + "ext-fileinfo": "*", + "league/flysystem": "^3.0.0", + "league/mime-type-detection": "^1.0.0", + "php": "^8.0.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "League\\Flysystem\\Local\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Frank de Jonge", + "email": "info@frankdejonge.nl" + } + ], + "description": "Local filesystem adapter for Flysystem.", + "keywords": [ + "Flysystem", + "file", + "files", + "filesystem", + "local" + ], + "support": { + "source": "https://github.com/thephpleague/flysystem-local/tree/3.30.2" + }, + "time": "2025-11-10T11:23:37+00:00" + }, + { + "name": "league/mime-type-detection", + "version": "1.16.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/mime-type-detection.git", + "reference": "2d6702ff215bf922936ccc1ad31007edc76451b9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/mime-type-detection/zipball/2d6702ff215bf922936ccc1ad31007edc76451b9", + "reference": "2d6702ff215bf922936ccc1ad31007edc76451b9", + "shasum": "" + }, + "require": { + "ext-fileinfo": "*", + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^3.2", + "phpstan/phpstan": "^0.12.68", + "phpunit/phpunit": "^8.5.8 || ^9.3 || ^10.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "League\\MimeTypeDetection\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Frank de Jonge", + "email": "info@frankdejonge.nl" + } + ], + "description": "Mime-type detection for Flysystem", + "support": { + "issues": "https://github.com/thephpleague/mime-type-detection/issues", + "source": "https://github.com/thephpleague/mime-type-detection/tree/1.16.0" + }, + "funding": [ + { + "url": "https://github.com/frankdejonge", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/league/flysystem", + "type": "tidelift" + } + ], + "time": "2024-09-21T08:32:55+00:00" + }, + { + "name": "league/uri", + "version": "7.7.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/uri.git", + "reference": "8d587cddee53490f9b82bf203d3a9aa7ea4f9807" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/uri/zipball/8d587cddee53490f9b82bf203d3a9aa7ea4f9807", + "reference": "8d587cddee53490f9b82bf203d3a9aa7ea4f9807", + "shasum": "" + }, + "require": { + "league/uri-interfaces": "^7.7", + "php": "^8.1", + "psr/http-factory": "^1" + }, + "conflict": { + "league/uri-schemes": "^1.0" + }, + "suggest": { + "ext-bcmath": "to improve IPV4 host parsing", + "ext-dom": "to convert the URI into an HTML anchor tag", + "ext-fileinfo": "to create Data URI from file contennts", + "ext-gmp": "to improve IPV4 host parsing", + "ext-intl": "to handle IDN host with the best performance", + "ext-uri": "to use the PHP native URI class", + "jeremykendall/php-domain-parser": "to resolve Public Suffix and Top Level Domain", + "league/uri-components": "Needed to easily manipulate URI objects components", + "league/uri-polyfill": "Needed to backport the PHP URI extension for older versions of PHP", + "php-64bit": "to improve IPV4 host parsing", + "rowbot/url": "to handle WHATWG URL", + "symfony/polyfill-intl-idn": "to handle IDN host via the Symfony polyfill if ext-intl is not present" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "7.x-dev" + } + }, + "autoload": { + "psr-4": { + "League\\Uri\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ignace Nyamagana Butera", + "email": "nyamsprod@gmail.com", + "homepage": "https://nyamsprod.com" + } + ], + "description": "URI manipulation library", + "homepage": "https://uri.thephpleague.com", + "keywords": [ + "URN", + "data-uri", + "file-uri", + "ftp", + "hostname", + "http", + "https", + "middleware", + "parse_str", + "parse_url", + "psr-7", + "query-string", + "querystring", + "rfc2141", + "rfc3986", + "rfc3987", + "rfc6570", + "rfc8141", + "uri", + "uri-template", + "url", + "ws" + ], + "support": { + "docs": "https://uri.thephpleague.com", + "forum": "https://thephpleague.slack.com", + "issues": "https://github.com/thephpleague/uri-src/issues", + "source": "https://github.com/thephpleague/uri/tree/7.7.0" + }, + "funding": [ + { + "url": "https://github.com/sponsors/nyamsprod", + "type": "github" + } + ], + "time": "2025-12-07T16:02:06+00:00" + }, + { + "name": "league/uri-components", + "version": "7.7.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/uri-components.git", + "reference": "005f8693ce8c1f16f80e88a05cbf08da04c1c374" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/uri-components/zipball/005f8693ce8c1f16f80e88a05cbf08da04c1c374", + "reference": "005f8693ce8c1f16f80e88a05cbf08da04c1c374", + "shasum": "" + }, + "require": { + "league/uri": "^7.7", + "php": "^8.1" + }, + "suggest": { + "bakame/aide-uri": "A polyfill for PHP8.1 until PHP8.4 to add support to PHP Native URI parser", + "ext-bcmath": "to improve IPV4 host parsing", + "ext-fileinfo": "to create Data URI from file contennts", + "ext-gmp": "to improve IPV4 host parsing", + "ext-intl": "to handle IDN host with the best performance", + "ext-mbstring": "to use the sorting algorithm of URLSearchParams", + "jeremykendall/php-domain-parser": "to resolve Public Suffix and Top Level Domain", + "league/uri-polyfill": "Needed to backport the PHP URI extension for older versions of PHP", + "php-64bit": "to improve IPV4 host parsing", + "rowbot/url": "to handle WHATWG URL", + "symfony/polyfill-intl-idn": "to handle IDN host via the Symfony polyfill if ext-intl is not present" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "7.x-dev" + } + }, + "autoload": { + "psr-4": { + "League\\Uri\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ignace Nyamagana Butera", + "email": "nyamsprod@gmail.com", + "homepage": "https://nyamsprod.com" + } + ], + "description": "URI components manipulation library", + "homepage": "http://uri.thephpleague.com", + "keywords": [ + "authority", + "components", + "fragment", + "host", + "middleware", + "modifier", + "path", + "port", + "query", + "rfc3986", + "scheme", + "uri", + "url", + "userinfo" + ], + "support": { + "docs": "https://uri.thephpleague.com", + "forum": "https://thephpleague.slack.com", + "issues": "https://github.com/thephpleague/uri-src/issues", + "source": "https://github.com/thephpleague/uri-components/tree/7.7.0" + }, + "funding": [ + { + "url": "https://github.com/nyamsprod", + "type": "github" + } + ], + "time": "2025-12-07T16:02:56+00:00" + }, + { + "name": "league/uri-interfaces", + "version": "7.7.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/uri-interfaces.git", + "reference": "62ccc1a0435e1c54e10ee6022df28d6c04c2946c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/uri-interfaces/zipball/62ccc1a0435e1c54e10ee6022df28d6c04c2946c", + "reference": "62ccc1a0435e1c54e10ee6022df28d6c04c2946c", + "shasum": "" + }, + "require": { + "ext-filter": "*", + "php": "^8.1", + "psr/http-message": "^1.1 || ^2.0" + }, + "suggest": { + "ext-bcmath": "to improve IPV4 host parsing", + "ext-gmp": "to improve IPV4 host parsing", + "ext-intl": "to handle IDN host with the best performance", + "php-64bit": "to improve IPV4 host parsing", + "rowbot/url": "to handle WHATWG URL", + "symfony/polyfill-intl-idn": "to handle IDN host via the Symfony polyfill if ext-intl is not present" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "7.x-dev" + } + }, + "autoload": { + "psr-4": { + "League\\Uri\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ignace Nyamagana Butera", + "email": "nyamsprod@gmail.com", + "homepage": "https://nyamsprod.com" + } + ], + "description": "Common tools for parsing and resolving RFC3987/RFC3986 URI", + "homepage": "https://uri.thephpleague.com", + "keywords": [ + "data-uri", + "file-uri", + "ftp", + "hostname", + "http", + "https", + "parse_str", + "parse_url", + "psr-7", + "query-string", + "querystring", + "rfc3986", + "rfc3987", + "rfc6570", + "uri", + "url", + "ws" + ], + "support": { + "docs": "https://uri.thephpleague.com", + "forum": "https://thephpleague.slack.com", + "issues": "https://github.com/thephpleague/uri-src/issues", + "source": "https://github.com/thephpleague/uri-interfaces/tree/7.7.0" + }, + "funding": [ + { + "url": "https://github.com/sponsors/nyamsprod", + "type": "github" + } + ], + "time": "2025-12-07T16:03:21+00:00" + }, + { + "name": "livewire/livewire", + "version": "v3.7.3", + "source": { + "type": "git", + "url": "https://github.com/livewire/livewire.git", + "reference": "a5384df9fbd3eaf02e053bc49aabc8ace293fc1c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/livewire/livewire/zipball/a5384df9fbd3eaf02e053bc49aabc8ace293fc1c", + "reference": "a5384df9fbd3eaf02e053bc49aabc8ace293fc1c", + "shasum": "" + }, + "require": { + "illuminate/database": "^10.0|^11.0|^12.0", + "illuminate/routing": "^10.0|^11.0|^12.0", + "illuminate/support": "^10.0|^11.0|^12.0", + "illuminate/validation": "^10.0|^11.0|^12.0", + "laravel/prompts": "^0.1.24|^0.2|^0.3", + "league/mime-type-detection": "^1.9", + "php": "^8.1", + "symfony/console": "^6.0|^7.0", + "symfony/http-kernel": "^6.2|^7.0" + }, + "require-dev": { + "calebporzio/sushi": "^2.1", + "laravel/framework": "^10.15.0|^11.0|^12.0", + "mockery/mockery": "^1.3.1", + "orchestra/testbench": "^8.21.0|^9.0|^10.0", + "orchestra/testbench-dusk": "^8.24|^9.1|^10.0", + "phpunit/phpunit": "^10.4|^11.5", + "psy/psysh": "^0.11.22|^0.12" + }, + "type": "library", + "extra": { + "laravel": { + "aliases": { + "Livewire": "Livewire\\Livewire" + }, + "providers": [ + "Livewire\\LivewireServiceProvider" + ] + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Livewire\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Caleb Porzio", + "email": "calebporzio@gmail.com" + } + ], + "description": "A front-end framework for Laravel.", + "support": { + "issues": "https://github.com/livewire/livewire/issues", + "source": "https://github.com/livewire/livewire/tree/v3.7.3" + }, + "funding": [ + { + "url": "https://github.com/livewire", + "type": "github" + } + ], + "time": "2025-12-19T02:00:29+00:00" + }, + { + "name": "masterminds/html5", + "version": "2.10.0", + "source": { + "type": "git", + "url": "https://github.com/Masterminds/html5-php.git", + "reference": "fcf91eb64359852f00d921887b219479b4f21251" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Masterminds/html5-php/zipball/fcf91eb64359852f00d921887b219479b4f21251", + "reference": "fcf91eb64359852f00d921887b219479b4f21251", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "php": ">=5.3.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35 || ^5.7.21 || ^6 || ^7 || ^8 || ^9" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.7-dev" + } + }, + "autoload": { + "psr-4": { + "Masterminds\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Matt Butcher", + "email": "technosophos@gmail.com" + }, + { + "name": "Matt Farina", + "email": "matt@mattfarina.com" + }, + { + "name": "Asmir Mustafic", + "email": "goetas@gmail.com" + } + ], + "description": "An HTML5 parser and serializer.", + "homepage": "http://masterminds.github.io/html5-php", + "keywords": [ + "HTML5", + "dom", + "html", + "parser", + "querypath", + "serializer", + "xml" + ], + "support": { + "issues": "https://github.com/Masterminds/html5-php/issues", + "source": "https://github.com/Masterminds/html5-php/tree/2.10.0" + }, + "time": "2025-07-25T09:04:22+00:00" + }, + { + "name": "mobiledetect/mobiledetectlib", + "version": "2.8.45", + "source": { + "type": "git", + "url": "https://github.com/serbanghita/Mobile-Detect.git", + "reference": "96aaebcf4f50d3d2692ab81d2c5132e425bca266" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/serbanghita/Mobile-Detect/zipball/96aaebcf4f50d3d2692ab81d2c5132e425bca266", + "reference": "96aaebcf4f50d3d2692ab81d2c5132e425bca266", + "shasum": "" + }, + "require": { + "php": ">=5.0.0" + }, + "require-dev": { + "phpunit/phpunit": "~4.8.36" + }, + "type": "library", + "autoload": { + "psr-0": { + "Detection": "namespaced/" + }, + "classmap": [ + "Mobile_Detect.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Serban Ghita", + "email": "serbanghita@gmail.com", + "homepage": "http://mobiledetect.net", + "role": "Developer" + } + ], + "description": "Mobile_Detect is a lightweight PHP class for detecting mobile devices. It uses the User-Agent string combined with specific HTTP headers to detect the mobile environment.", + "homepage": "https://github.com/serbanghita/Mobile-Detect", + "keywords": [ + "detect mobile devices", + "mobile", + "mobile detect", + "mobile detector", + "php mobile detect" + ], + "support": { + "issues": "https://github.com/serbanghita/Mobile-Detect/issues", + "source": "https://github.com/serbanghita/Mobile-Detect/tree/2.8.45" + }, + "funding": [ + { + "url": "https://github.com/serbanghita", + "type": "github" + } + ], + "time": "2023-11-07T21:57:25+00:00" + }, + { + "name": "monolog/monolog", + "version": "3.10.0", + "source": { + "type": "git", + "url": "https://github.com/Seldaek/monolog.git", + "reference": "b321dd6749f0bf7189444158a3ce785cc16d69b0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/b321dd6749f0bf7189444158a3ce785cc16d69b0", + "reference": "b321dd6749f0bf7189444158a3ce785cc16d69b0", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "psr/log": "^2.0 || ^3.0" + }, + "provide": { + "psr/log-implementation": "3.0.0" + }, + "require-dev": { + "aws/aws-sdk-php": "^3.0", + "doctrine/couchdb": "~1.0@dev", + "elasticsearch/elasticsearch": "^7 || ^8", + "ext-json": "*", + "graylog2/gelf-php": "^1.4.2 || ^2.0", + "guzzlehttp/guzzle": "^7.4.5", + "guzzlehttp/psr7": "^2.2", + "mongodb/mongodb": "^1.8 || ^2.0", + "php-amqplib/php-amqplib": "~2.4 || ^3", + "php-console/php-console": "^3.1.8", + "phpstan/phpstan": "^2", + "phpstan/phpstan-deprecation-rules": "^2", + "phpstan/phpstan-strict-rules": "^2", + "phpunit/phpunit": "^10.5.17 || ^11.0.7", + "predis/predis": "^1.1 || ^2", + "rollbar/rollbar": "^4.0", + "ruflin/elastica": "^7 || ^8", + "symfony/mailer": "^5.4 || ^6", + "symfony/mime": "^5.4 || ^6" + }, + "suggest": { + "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", + "doctrine/couchdb": "Allow sending log messages to a CouchDB server", + "elasticsearch/elasticsearch": "Allow sending log messages to an Elasticsearch server via official client", + "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)", + "ext-curl": "Required to send log messages using the IFTTTHandler, the LogglyHandler, the SendGridHandler, the SlackWebhookHandler or the TelegramBotHandler", + "ext-mbstring": "Allow to work properly with unicode symbols", + "ext-mongodb": "Allow sending log messages to a MongoDB server (via driver)", + "ext-openssl": "Required to send log messages using SSL", + "ext-sockets": "Allow sending log messages to a Syslog server (via UDP driver)", + "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server", + "mongodb/mongodb": "Allow sending log messages to a MongoDB server (via library)", + "php-amqplib/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib", + "rollbar/rollbar": "Allow sending log messages to Rollbar", + "ruflin/elastica": "Allow sending log messages to an Elastic Search server" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Monolog\\": "src/Monolog" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "https://seld.be" + } + ], + "description": "Sends your logs to files, sockets, inboxes, databases and various web services", + "homepage": "https://github.com/Seldaek/monolog", + "keywords": [ + "log", + "logging", + "psr-3" + ], + "support": { + "issues": "https://github.com/Seldaek/monolog/issues", + "source": "https://github.com/Seldaek/monolog/tree/3.10.0" + }, + "funding": [ + { + "url": "https://github.com/Seldaek", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/monolog/monolog", + "type": "tidelift" + } + ], + "time": "2026-01-02T08:56:05+00:00" + }, + { + "name": "nesbot/carbon", + "version": "3.11.0", + "source": { + "type": "git", + "url": "https://github.com/CarbonPHP/carbon.git", + "reference": "bdb375400dcd162624531666db4799b36b64e4a1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/CarbonPHP/carbon/zipball/bdb375400dcd162624531666db4799b36b64e4a1", + "reference": "bdb375400dcd162624531666db4799b36b64e4a1", + "shasum": "" + }, + "require": { + "carbonphp/carbon-doctrine-types": "<100.0", + "ext-json": "*", + "php": "^8.1", + "psr/clock": "^1.0", + "symfony/clock": "^6.3.12 || ^7.0 || ^8.0", + "symfony/polyfill-mbstring": "^1.0", + "symfony/translation": "^4.4.18 || ^5.2.1 || ^6.0 || ^7.0 || ^8.0" + }, + "provide": { + "psr/clock-implementation": "1.0" + }, + "require-dev": { + "doctrine/dbal": "^3.6.3 || ^4.0", + "doctrine/orm": "^2.15.2 || ^3.0", + "friendsofphp/php-cs-fixer": "^v3.87.1", + "kylekatarnls/multi-tester": "^2.5.3", + "phpmd/phpmd": "^2.15.0", + "phpstan/extension-installer": "^1.4.3", + "phpstan/phpstan": "^2.1.22", + "phpunit/phpunit": "^10.5.53", + "squizlabs/php_codesniffer": "^3.13.4" + }, + "bin": [ + "bin/carbon" + ], + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Carbon\\Laravel\\ServiceProvider" + ] + }, + "phpstan": { + "includes": [ + "extension.neon" + ] + }, + "branch-alias": { + "dev-2.x": "2.x-dev", + "dev-master": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Carbon\\": "src/Carbon/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Brian Nesbitt", + "email": "brian@nesbot.com", + "homepage": "https://markido.com" + }, + { + "name": "kylekatarnls", + "homepage": "https://github.com/kylekatarnls" + } + ], + "description": "An API extension for DateTime that supports 281 different languages.", + "homepage": "https://carbon.nesbot.com", + "keywords": [ + "date", + "datetime", + "time" + ], + "support": { + "docs": "https://carbon.nesbot.com/docs", + "issues": "https://github.com/CarbonPHP/carbon/issues", + "source": "https://github.com/CarbonPHP/carbon" + }, + "funding": [ + { + "url": "https://github.com/sponsors/kylekatarnls", + "type": "github" + }, + { + "url": "https://opencollective.com/Carbon#sponsor", + "type": "opencollective" + }, + { + "url": "https://tidelift.com/subscription/pkg/packagist-nesbot-carbon?utm_source=packagist-nesbot-carbon&utm_medium=referral&utm_campaign=readme", + "type": "tidelift" + } + ], + "time": "2025-12-02T21:04:28+00:00" + }, + { + "name": "nette/php-generator", + "version": "v4.2.0", + "source": { + "type": "git", + "url": "https://github.com/nette/php-generator.git", + "reference": "4707546a1f11badd72f5d82af4f8a6bc64bd56ac" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nette/php-generator/zipball/4707546a1f11badd72f5d82af4f8a6bc64bd56ac", + "reference": "4707546a1f11badd72f5d82af4f8a6bc64bd56ac", + "shasum": "" + }, + "require": { + "nette/utils": "^4.0.6", + "php": "8.1 - 8.5" + }, + "require-dev": { + "jetbrains/phpstorm-attributes": "^1.2", + "nette/tester": "^2.4", + "nikic/php-parser": "^5.0", + "phpstan/phpstan-nette": "^2.0@stable", + "tracy/tracy": "^2.8" + }, + "suggest": { + "nikic/php-parser": "to use ClassType::from(withBodies: true) & ClassType::fromCode()" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.2-dev" + } + }, + "autoload": { + "psr-4": { + "Nette\\": "src" + }, + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause", + "GPL-2.0-only", + "GPL-3.0-only" + ], + "authors": [ + { + "name": "David Grudl", + "homepage": "https://davidgrudl.com" + }, + { + "name": "Nette Community", + "homepage": "https://nette.org/contributors" + } + ], + "description": "🐘 Nette PHP Generator: generates neat PHP code for you. Supports new PHP 8.5 features.", + "homepage": "https://nette.org", + "keywords": [ + "code", + "nette", + "php", + "scaffolding" + ], + "support": { + "issues": "https://github.com/nette/php-generator/issues", + "source": "https://github.com/nette/php-generator/tree/v4.2.0" + }, + "time": "2025-08-06T18:24:31+00:00" + }, + { + "name": "nette/schema", + "version": "v1.3.3", + "source": { + "type": "git", + "url": "https://github.com/nette/schema.git", + "reference": "2befc2f42d7c715fd9d95efc31b1081e5d765004" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nette/schema/zipball/2befc2f42d7c715fd9d95efc31b1081e5d765004", + "reference": "2befc2f42d7c715fd9d95efc31b1081e5d765004", + "shasum": "" + }, + "require": { + "nette/utils": "^4.0", + "php": "8.1 - 8.5" + }, + "require-dev": { + "nette/tester": "^2.5.2", + "phpstan/phpstan-nette": "^2.0@stable", + "tracy/tracy": "^2.8" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.3-dev" + } + }, + "autoload": { + "psr-4": { + "Nette\\": "src" + }, + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause", + "GPL-2.0-only", + "GPL-3.0-only" + ], + "authors": [ + { + "name": "David Grudl", + "homepage": "https://davidgrudl.com" + }, + { + "name": "Nette Community", + "homepage": "https://nette.org/contributors" + } + ], + "description": "📐 Nette Schema: validating data structures against a given Schema.", + "homepage": "https://nette.org", + "keywords": [ + "config", + "nette" + ], + "support": { + "issues": "https://github.com/nette/schema/issues", + "source": "https://github.com/nette/schema/tree/v1.3.3" + }, + "time": "2025-10-30T22:57:59+00:00" + }, + { + "name": "nette/utils", + "version": "v4.1.1", + "source": { + "type": "git", + "url": "https://github.com/nette/utils.git", + "reference": "c99059c0315591f1a0db7ad6002000288ab8dc72" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nette/utils/zipball/c99059c0315591f1a0db7ad6002000288ab8dc72", + "reference": "c99059c0315591f1a0db7ad6002000288ab8dc72", + "shasum": "" + }, + "require": { + "php": "8.2 - 8.5" + }, + "conflict": { + "nette/finder": "<3", + "nette/schema": "<1.2.2" + }, + "require-dev": { + "jetbrains/phpstorm-attributes": "^1.2", + "nette/tester": "^2.5", + "phpstan/phpstan-nette": "^2.0@stable", + "tracy/tracy": "^2.9" + }, + "suggest": { + "ext-gd": "to use Image", + "ext-iconv": "to use Strings::webalize(), toAscii(), chr() and reverse()", + "ext-intl": "to use Strings::webalize(), toAscii(), normalize() and compare()", + "ext-json": "to use Nette\\Utils\\Json", + "ext-mbstring": "to use Strings::lower() etc...", + "ext-tokenizer": "to use Nette\\Utils\\Reflection::getUseStatements()" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.1-dev" + } + }, + "autoload": { + "psr-4": { + "Nette\\": "src" + }, + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause", + "GPL-2.0-only", + "GPL-3.0-only" + ], + "authors": [ + { + "name": "David Grudl", + "homepage": "https://davidgrudl.com" + }, + { + "name": "Nette Community", + "homepage": "https://nette.org/contributors" + } + ], + "description": "🛠 Nette Utils: lightweight utilities for string & array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.", + "homepage": "https://nette.org", + "keywords": [ + "array", + "core", + "datetime", + "images", + "json", + "nette", + "paginator", + "password", + "slugify", + "string", + "unicode", + "utf-8", + "utility", + "validation" + ], + "support": { + "issues": "https://github.com/nette/utils/issues", + "source": "https://github.com/nette/utils/tree/v4.1.1" + }, + "time": "2025-12-22T12:14:32+00:00" + }, + { + "name": "nikic/php-parser", + "version": "v5.7.0", + "source": { + "type": "git", + "url": "https://github.com/nikic/PHP-Parser.git", + "reference": "dca41cd15c2ac9d055ad70dbfd011130757d1f82" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/dca41cd15c2ac9d055ad70dbfd011130757d1f82", + "reference": "dca41cd15c2ac9d055ad70dbfd011130757d1f82", + "shasum": "" + }, + "require": { + "ext-ctype": "*", + "ext-json": "*", + "ext-tokenizer": "*", + "php": ">=7.4" + }, + "require-dev": { + "ircmaxell/php-yacc": "^0.0.7", + "phpunit/phpunit": "^9.0" + }, + "bin": [ + "bin/php-parse" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.x-dev" + } + }, + "autoload": { + "psr-4": { + "PhpParser\\": "lib/PhpParser" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Nikita Popov" + } + ], + "description": "A PHP parser written in PHP", + "keywords": [ + "parser", + "php" + ], + "support": { + "issues": "https://github.com/nikic/PHP-Parser/issues", + "source": "https://github.com/nikic/PHP-Parser/tree/v5.7.0" + }, + "time": "2025-12-06T11:56:16+00:00" + }, + { + "name": "nunomaduro/termwind", + "version": "v2.3.3", + "source": { + "type": "git", + "url": "https://github.com/nunomaduro/termwind.git", + "reference": "6fb2a640ff502caace8e05fd7be3b503a7e1c017" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nunomaduro/termwind/zipball/6fb2a640ff502caace8e05fd7be3b503a7e1c017", + "reference": "6fb2a640ff502caace8e05fd7be3b503a7e1c017", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "php": "^8.2", + "symfony/console": "^7.3.6" + }, + "require-dev": { + "illuminate/console": "^11.46.1", + "laravel/pint": "^1.25.1", + "mockery/mockery": "^1.6.12", + "pestphp/pest": "^2.36.0 || ^3.8.4 || ^4.1.3", + "phpstan/phpstan": "^1.12.32", + "phpstan/phpstan-strict-rules": "^1.6.2", + "symfony/var-dumper": "^7.3.5", + "thecodingmachine/phpstan-strict-rules": "^1.0.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Termwind\\Laravel\\TermwindServiceProvider" + ] + }, + "branch-alias": { + "dev-2.x": "2.x-dev" + } + }, + "autoload": { + "files": [ + "src/Functions.php" + ], + "psr-4": { + "Termwind\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" + } + ], + "description": "Its like Tailwind CSS, but for the console.", + "keywords": [ + "cli", + "console", + "css", + "package", + "php", + "style" + ], + "support": { + "issues": "https://github.com/nunomaduro/termwind/issues", + "source": "https://github.com/nunomaduro/termwind/tree/v2.3.3" + }, + "funding": [ + { + "url": "https://www.paypal.com/paypalme/enunomaduro", + "type": "custom" + }, + { + "url": "https://github.com/nunomaduro", + "type": "github" + }, + { + "url": "https://github.com/xiCO2k", + "type": "github" + } + ], + "time": "2025-11-20T02:34:59+00:00" + }, + { + "name": "opcodesio/log-viewer", + "version": "v3.21.1", + "source": { + "type": "git", + "url": "https://github.com/opcodesio/log-viewer.git", + "reference": "6dfa99c3a8c5ae128c6b7f2f0a4f026af7ca055c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/opcodesio/log-viewer/zipball/6dfa99c3a8c5ae128c6b7f2f0a4f026af7ca055c", + "reference": "6dfa99c3a8c5ae128c6b7f2f0a4f026af7ca055c", + "shasum": "" + }, + "require": { + "illuminate/contracts": "^8.0|^9.0|^10.0|^11.0|^12.0", + "opcodesio/mail-parser": "^0.1.6", + "php": "^8.0" + }, + "conflict": { + "arcanedev/log-viewer": "^8.0" + }, + "require-dev": { + "guzzlehttp/guzzle": "^7.2", + "itsgoingd/clockwork": "^5.1", + "laravel/pint": "^1.0", + "nunomaduro/collision": "^7.0|^8.0", + "orchestra/testbench": "^7.6|^8.0|^9.0|^10.0", + "pestphp/pest": "^2.0|^3.7", + "pestphp/pest-plugin-laravel": "^2.0|^3.1", + "spatie/test-time": "^1.3" + }, + "suggest": { + "guzzlehttp/guzzle": "Required for multi-host support. ^7.2" + }, + "type": "library", + "extra": { + "laravel": { + "aliases": { + "LogViewer": "Opcodes\\LogViewer\\Facades\\LogViewer" + }, + "providers": [ + "Opcodes\\LogViewer\\LogViewerServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Opcodes\\LogViewer\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Arunas Skirius", + "email": "arukomp@gmail.com", + "role": "Developer" + } + ], + "description": "Fast and easy-to-use log viewer for your Laravel application", + "homepage": "https://github.com/opcodesio/log-viewer", + "keywords": [ + "arukompas", + "better-log-viewer", + "laravel", + "log viewer", + "logs", + "opcodesio" + ], + "support": { + "issues": "https://github.com/opcodesio/log-viewer/issues", + "source": "https://github.com/opcodesio/log-viewer/tree/v3.21.1" + }, + "funding": [ + { + "url": "https://www.buymeacoffee.com/arunas", + "type": "custom" + }, + { + "url": "https://github.com/arukompas", + "type": "github" + } + ], + "time": "2025-10-23T05:12:09+00:00" + }, + { + "name": "opcodesio/mail-parser", + "version": "v0.1.6", + "source": { + "type": "git", + "url": "https://github.com/opcodesio/mail-parser.git", + "reference": "639ef31cbd146a63416283e75afce152e13233ea" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/opcodesio/mail-parser/zipball/639ef31cbd146a63416283e75afce152e13233ea", + "reference": "639ef31cbd146a63416283e75afce152e13233ea", + "shasum": "" + }, + "require": { + "php": "^8.0" + }, + "require-dev": { + "pestphp/pest": "^2.16", + "symfony/var-dumper": "^6.3" + }, + "type": "library", + "autoload": { + "psr-4": { + "Opcodes\\MailParser\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Arunas Skirius", + "email": "arukomp@gmail.com", + "role": "Developer" + } + ], + "description": "Parse emails without the mailparse extension", + "keywords": [ + "arukompas", + "email", + "email parser", + "mail", + "opcodesio", + "php" + ], + "support": { + "issues": "https://github.com/opcodesio/mail-parser/issues", + "source": "https://github.com/opcodesio/mail-parser/tree/v0.1.6" + }, + "time": "2023-11-19T08:47:43+00:00" + }, + { + "name": "openspout/openspout", + "version": "v4.32.0", + "source": { + "type": "git", + "url": "https://github.com/openspout/openspout.git", + "reference": "41f045c1f632e1474e15d4c7bc3abcb4a153563d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/openspout/openspout/zipball/41f045c1f632e1474e15d4c7bc3abcb4a153563d", + "reference": "41f045c1f632e1474e15d4c7bc3abcb4a153563d", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-fileinfo": "*", + "ext-filter": "*", + "ext-libxml": "*", + "ext-xmlreader": "*", + "ext-zip": "*", + "php": "~8.3.0 || ~8.4.0 || ~8.5.0" + }, + "require-dev": { + "ext-zlib": "*", + "friendsofphp/php-cs-fixer": "^3.86.0", + "infection/infection": "^0.31.2", + "phpbench/phpbench": "^1.4.1", + "phpstan/phpstan": "^2.1.22", + "phpstan/phpstan-phpunit": "^2.0.7", + "phpstan/phpstan-strict-rules": "^2.0.6", + "phpunit/phpunit": "^12.3.7" + }, + "suggest": { + "ext-iconv": "To handle non UTF-8 CSV files (if \"php-mbstring\" is not already installed or is too limited)", + "ext-mbstring": "To handle non UTF-8 CSV files (if \"iconv\" is not already installed)" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.3.x-dev" + } + }, + "autoload": { + "psr-4": { + "OpenSpout\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Adrien Loison", + "email": "adrien@box.com" + } + ], + "description": "PHP Library to read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way", + "homepage": "https://github.com/openspout/openspout", + "keywords": [ + "OOXML", + "csv", + "excel", + "memory", + "odf", + "ods", + "office", + "open", + "php", + "read", + "scale", + "spreadsheet", + "stream", + "write", + "xlsx" + ], + "support": { + "issues": "https://github.com/openspout/openspout/issues", + "source": "https://github.com/openspout/openspout/tree/v4.32.0" + }, + "funding": [ + { + "url": "https://paypal.me/filippotessarotto", + "type": "custom" + }, + { + "url": "https://github.com/Slamdunk", + "type": "github" + } + ], + "time": "2025-09-03T16:03:54+00:00" + }, + { + "name": "paragonie/constant_time_encoding", + "version": "v3.1.3", + "source": { + "type": "git", + "url": "https://github.com/paragonie/constant_time_encoding.git", + "reference": "d5b01a39b3415c2cd581d3bd3a3575c1ebbd8e77" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/paragonie/constant_time_encoding/zipball/d5b01a39b3415c2cd581d3bd3a3575c1ebbd8e77", + "reference": "d5b01a39b3415c2cd581d3bd3a3575c1ebbd8e77", + "shasum": "" + }, + "require": { + "php": "^8" + }, + "require-dev": { + "infection/infection": "^0", + "nikic/php-fuzzer": "^0", + "phpunit/phpunit": "^9|^10|^11", + "vimeo/psalm": "^4|^5|^6" + }, + "type": "library", + "autoload": { + "psr-4": { + "ParagonIE\\ConstantTime\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Paragon Initiative Enterprises", + "email": "security@paragonie.com", + "homepage": "https://paragonie.com", + "role": "Maintainer" + }, + { + "name": "Steve 'Sc00bz' Thomas", + "email": "steve@tobtu.com", + "homepage": "https://www.tobtu.com", + "role": "Original Developer" + } + ], + "description": "Constant-time Implementations of RFC 4648 Encoding (Base-64, Base-32, Base-16)", + "keywords": [ + "base16", + "base32", + "base32_decode", + "base32_encode", + "base64", + "base64_decode", + "base64_encode", + "bin2hex", + "encoding", + "hex", + "hex2bin", + "rfc4648" + ], + "support": { + "email": "info@paragonie.com", + "issues": "https://github.com/paragonie/constant_time_encoding/issues", + "source": "https://github.com/paragonie/constant_time_encoding" + }, + "time": "2025-09-24T15:06:41+00:00" + }, + { + "name": "phpoption/phpoption", + "version": "1.9.5", + "source": { + "type": "git", + "url": "https://github.com/schmittjoh/php-option.git", + "reference": "75365b91986c2405cf5e1e012c5595cd487a98be" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/75365b91986c2405cf5e1e012c5595cd487a98be", + "reference": "75365b91986c2405cf5e1e012c5595cd487a98be", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "phpunit/phpunit": "^8.5.44 || ^9.6.25 || ^10.5.53 || ^11.5.34" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + }, + "branch-alias": { + "dev-master": "1.9-dev" + } + }, + "autoload": { + "psr-4": { + "PhpOption\\": "src/PhpOption/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Johannes M. Schmitt", + "email": "schmittjoh@gmail.com", + "homepage": "https://github.com/schmittjoh" + }, + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + } + ], + "description": "Option Type for PHP", + "keywords": [ + "language", + "option", + "php", + "type" + ], + "support": { + "issues": "https://github.com/schmittjoh/php-option/issues", + "source": "https://github.com/schmittjoh/php-option/tree/1.9.5" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpoption/phpoption", + "type": "tidelift" + } + ], + "time": "2025-12-27T19:41:33+00:00" + }, + { + "name": "pragmarx/google2fa", + "version": "v9.0.0", + "source": { + "type": "git", + "url": "https://github.com/antonioribeiro/google2fa.git", + "reference": "e6bc62dd6ae83acc475f57912e27466019a1f2cf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/antonioribeiro/google2fa/zipball/e6bc62dd6ae83acc475f57912e27466019a1f2cf", + "reference": "e6bc62dd6ae83acc475f57912e27466019a1f2cf", + "shasum": "" + }, + "require": { + "paragonie/constant_time_encoding": "^1.0|^2.0|^3.0", + "php": "^7.1|^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^1.9", + "phpunit/phpunit": "^7.5.15|^8.5|^9.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "PragmaRX\\Google2FA\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Antonio Carlos Ribeiro", + "email": "acr@antoniocarlosribeiro.com", + "role": "Creator & Designer" + } + ], + "description": "A One Time Password Authentication package, compatible with Google Authenticator.", + "keywords": [ + "2fa", + "Authentication", + "Two Factor Authentication", + "google2fa" + ], + "support": { + "issues": "https://github.com/antonioribeiro/google2fa/issues", + "source": "https://github.com/antonioribeiro/google2fa/tree/v9.0.0" + }, + "time": "2025-09-19T22:51:08+00:00" + }, + { + "name": "pragmarx/google2fa-qrcode", + "version": "v3.0.0", + "source": { + "type": "git", + "url": "https://github.com/antonioribeiro/google2fa-qrcode.git", + "reference": "ce4d8a729b6c93741c607cfb2217acfffb5bf76b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/antonioribeiro/google2fa-qrcode/zipball/ce4d8a729b6c93741c607cfb2217acfffb5bf76b", + "reference": "ce4d8a729b6c93741c607cfb2217acfffb5bf76b", + "shasum": "" + }, + "require": { + "php": ">=7.1", + "pragmarx/google2fa": ">=4.0" + }, + "require-dev": { + "bacon/bacon-qr-code": "^2.0", + "chillerlan/php-qrcode": "^1.0|^2.0|^3.0|^4.0", + "khanamiryan/qrcode-detector-decoder": "^1.0", + "phpunit/phpunit": "~4|~5|~6|~7|~8|~9" + }, + "suggest": { + "bacon/bacon-qr-code": "For QR Code generation, requires imagick", + "chillerlan/php-qrcode": "For QR Code generation" + }, + "type": "library", + "extra": { + "component": "package", + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "psr-4": { + "PragmaRX\\Google2FAQRCode\\": "src/", + "PragmaRX\\Google2FAQRCode\\Tests\\": "tests/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Antonio Carlos Ribeiro", + "email": "acr@antoniocarlosribeiro.com", + "role": "Creator & Designer" + } + ], + "description": "QR Code package for Google2FA", + "keywords": [ + "2fa", + "Authentication", + "Two Factor Authentication", + "google2fa", + "qr code", + "qrcode" + ], + "support": { + "issues": "https://github.com/antonioribeiro/google2fa-qrcode/issues", + "source": "https://github.com/antonioribeiro/google2fa-qrcode/tree/v3.0.0" + }, + "time": "2021-08-15T12:53:48+00:00" + }, + { + "name": "psr/cache", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/cache.git", + "reference": "aa5030cfa5405eccfdcb1083ce040c2cb8d253bf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/cache/zipball/aa5030cfa5405eccfdcb1083ce040c2cb8d253bf", + "reference": "aa5030cfa5405eccfdcb1083ce040c2cb8d253bf", + "shasum": "" + }, + "require": { + "php": ">=8.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Cache\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for caching libraries", + "keywords": [ + "cache", + "psr", + "psr-6" + ], + "support": { + "source": "https://github.com/php-fig/cache/tree/3.0.0" + }, + "time": "2021-02-03T23:26:27+00:00" + }, + { + "name": "psr/clock", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/clock.git", + "reference": "e41a24703d4560fd0acb709162f73b8adfc3aa0d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/clock/zipball/e41a24703d4560fd0acb709162f73b8adfc3aa0d", + "reference": "e41a24703d4560fd0acb709162f73b8adfc3aa0d", + "shasum": "" + }, + "require": { + "php": "^7.0 || ^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Psr\\Clock\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for reading the clock.", + "homepage": "https://github.com/php-fig/clock", + "keywords": [ + "clock", + "now", + "psr", + "psr-20", + "time" + ], + "support": { + "issues": "https://github.com/php-fig/clock/issues", + "source": "https://github.com/php-fig/clock/tree/1.0.0" + }, + "time": "2022-11-25T14:36:26+00:00" + }, + { + "name": "psr/container", + "version": "2.0.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/container.git", + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/container/zipball/c71ecc56dfe541dbd90c5360474fbc405f8d5963", + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963", + "shasum": "" + }, + "require": { + "php": ">=7.4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Container\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common Container Interface (PHP FIG PSR-11)", + "homepage": "https://github.com/php-fig/container", + "keywords": [ + "PSR-11", + "container", + "container-interface", + "container-interop", + "psr" + ], + "support": { + "issues": "https://github.com/php-fig/container/issues", + "source": "https://github.com/php-fig/container/tree/2.0.2" + }, + "time": "2021-11-05T16:47:00+00:00" + }, + { + "name": "psr/event-dispatcher", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/event-dispatcher.git", + "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/event-dispatcher/zipball/dbefd12671e8a14ec7f180cab83036ed26714bb0", + "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0", + "shasum": "" + }, + "require": { + "php": ">=7.2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\EventDispatcher\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Standard interfaces for event handling.", + "keywords": [ + "events", + "psr", + "psr-14" + ], + "support": { + "issues": "https://github.com/php-fig/event-dispatcher/issues", + "source": "https://github.com/php-fig/event-dispatcher/tree/1.0.0" + }, + "time": "2019-01-08T18:20:26+00:00" + }, + { + "name": "psr/http-client", + "version": "1.0.3", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-client.git", + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-client/zipball/bb5906edc1c324c9a05aa0873d40117941e5fa90", + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90", + "shasum": "" + }, + "require": { + "php": "^7.0 || ^8.0", + "psr/http-message": "^1.0 || ^2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Client\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP clients", + "homepage": "https://github.com/php-fig/http-client", + "keywords": [ + "http", + "http-client", + "psr", + "psr-18" + ], + "support": { + "source": "https://github.com/php-fig/http-client" + }, + "time": "2023-09-23T14:17:50+00:00" + }, + { + "name": "psr/http-factory", + "version": "1.1.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-factory.git", + "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-factory/zipball/2b4765fddfe3b508ac62f829e852b1501d3f6e8a", + "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a", + "shasum": "" + }, + "require": { + "php": ">=7.1", + "psr/http-message": "^1.0 || ^2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "PSR-17: Common interfaces for PSR-7 HTTP message factories", + "keywords": [ + "factory", + "http", + "message", + "psr", + "psr-17", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-factory" + }, + "time": "2024-04-15T12:06:14+00:00" + }, + { + "name": "psr/http-message", + "version": "2.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-message.git", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP messages", + "homepage": "https://github.com/php-fig/http-message", + "keywords": [ + "http", + "http-message", + "psr", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-message/tree/2.0" + }, + "time": "2023-04-04T09:54:51+00:00" + }, + { + "name": "psr/log", + "version": "3.0.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/log.git", + "reference": "f16e1d5863e37f8d8c2a01719f5b34baa2b714d3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/log/zipball/f16e1d5863e37f8d8c2a01719f5b34baa2b714d3", + "reference": "f16e1d5863e37f8d8c2a01719f5b34baa2b714d3", + "shasum": "" + }, + "require": { + "php": ">=8.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Log\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for logging libraries", + "homepage": "https://github.com/php-fig/log", + "keywords": [ + "log", + "psr", + "psr-3" + ], + "support": { + "source": "https://github.com/php-fig/log/tree/3.0.2" + }, + "time": "2024-09-11T13:17:53+00:00" + }, + { + "name": "psr/simple-cache", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/simple-cache.git", + "reference": "764e0b3939f5ca87cb904f570ef9be2d78a07865" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/simple-cache/zipball/764e0b3939f5ca87cb904f570ef9be2d78a07865", + "reference": "764e0b3939f5ca87cb904f570ef9be2d78a07865", + "shasum": "" + }, + "require": { + "php": ">=8.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\SimpleCache\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interfaces for simple caching", + "keywords": [ + "cache", + "caching", + "psr", + "psr-16", + "simple-cache" + ], + "support": { + "source": "https://github.com/php-fig/simple-cache/tree/3.0.0" + }, + "time": "2021-10-29T13:26:27+00:00" + }, + { + "name": "psy/psysh", + "version": "v0.12.18", + "source": { + "type": "git", + "url": "https://github.com/bobthecow/psysh.git", + "reference": "ddff0ac01beddc251786fe70367cd8bbdb258196" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/bobthecow/psysh/zipball/ddff0ac01beddc251786fe70367cd8bbdb258196", + "reference": "ddff0ac01beddc251786fe70367cd8bbdb258196", + "shasum": "" + }, + "require": { + "ext-json": "*", + "ext-tokenizer": "*", + "nikic/php-parser": "^5.0 || ^4.0", + "php": "^8.0 || ^7.4", + "symfony/console": "^8.0 || ^7.0 || ^6.0 || ^5.0 || ^4.0 || ^3.4", + "symfony/var-dumper": "^8.0 || ^7.0 || ^6.0 || ^5.0 || ^4.0 || ^3.4" + }, + "conflict": { + "symfony/console": "4.4.37 || 5.3.14 || 5.3.15 || 5.4.3 || 5.4.4 || 6.0.3 || 6.0.4" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.2", + "composer/class-map-generator": "^1.6" + }, + "suggest": { + "composer/class-map-generator": "Improved tab completion performance with better class discovery.", + "ext-pcntl": "Enabling the PCNTL extension makes PsySH a lot happier :)", + "ext-posix": "If you have PCNTL, you'll want the POSIX extension as well." + }, + "bin": [ + "bin/psysh" + ], + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": false, + "forward-command": false + }, + "branch-alias": { + "dev-main": "0.12.x-dev" + } + }, + "autoload": { + "files": [ + "src/functions.php" + ], + "psr-4": { + "Psy\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Justin Hileman", + "email": "justin@justinhileman.info" + } + ], + "description": "An interactive shell for modern PHP.", + "homepage": "https://psysh.org", + "keywords": [ + "REPL", + "console", + "interactive", + "shell" + ], + "support": { + "issues": "https://github.com/bobthecow/psysh/issues", + "source": "https://github.com/bobthecow/psysh/tree/v0.12.18" + }, + "time": "2025-12-17T14:35:46+00:00" + }, + { + "name": "qirolab/laravel-themer", + "version": "2.4.0", + "source": { + "type": "git", + "url": "https://github.com/qirolab/laravel-themer.git", + "reference": "7a4345c2508a616ad309812840758f3fc01ababd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/qirolab/laravel-themer/zipball/7a4345c2508a616ad309812840758f3fc01ababd", + "reference": "7a4345c2508a616ad309812840758f3fc01ababd", + "shasum": "" + }, + "require": { + "facade/ignition-contracts": "^1.0", + "illuminate/support": "^9.19|^10.0|^11.0|^12.0", + "php": ">=7.1.0" + }, + "require-dev": { + "orchestra/testbench": "^7.0|^8.0|^9.0|^10.0", + "phpunit/phpunit": "^8.3|^9.0|^10.5|^11.5.3", + "vimeo/psalm": "^4.0|^5.22|^6.7" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Qirolab\\Theme\\ThemeServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Qirolab\\Theme\\": "src", + "Qirolab\\Theme\\Database\\Factories\\": "database/factories" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Harish Kumar", + "email": "harish@qirolab.com", + "homepage": "https://qirolab.com", + "role": "Developer" + } + ], + "description": "A Laravel theme manager, that will help you organize and maintain your themes inside Laravel projects.", + "homepage": "https://qirolab.com", + "keywords": [ + "laravel", + "laravel-theme", + "qirolab", + "theme" + ], + "support": { + "issues": "https://github.com/qirolab/laravel-themer/issues", + "source": "https://github.com/qirolab/laravel-themer/tree/2.4.0" + }, + "funding": [ + { + "url": "https://www.buymeacoffee.com/qirolab", + "type": "other" + } + ], + "time": "2025-02-26T08:51:08+00:00" + }, + { + "name": "ralouphie/getallheaders", + "version": "3.0.3", + "source": { + "type": "git", + "url": "https://github.com/ralouphie/getallheaders.git", + "reference": "120b605dfeb996808c31b6477290a714d356e822" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822", + "reference": "120b605dfeb996808c31b6477290a714d356e822", + "shasum": "" + }, + "require": { + "php": ">=5.6" + }, + "require-dev": { + "php-coveralls/php-coveralls": "^2.1", + "phpunit/phpunit": "^5 || ^6.5" + }, + "type": "library", + "autoload": { + "files": [ + "src/getallheaders.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ralph Khattar", + "email": "ralph.khattar@gmail.com" + } + ], + "description": "A polyfill for getallheaders.", + "support": { + "issues": "https://github.com/ralouphie/getallheaders/issues", + "source": "https://github.com/ralouphie/getallheaders/tree/develop" + }, + "time": "2019-03-08T08:55:37+00:00" + }, + { + "name": "ramsey/collection", + "version": "2.1.1", + "source": { + "type": "git", + "url": "https://github.com/ramsey/collection.git", + "reference": "344572933ad0181accbf4ba763e85a0306a8c5e2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ramsey/collection/zipball/344572933ad0181accbf4ba763e85a0306a8c5e2", + "reference": "344572933ad0181accbf4ba763e85a0306a8c5e2", + "shasum": "" + }, + "require": { + "php": "^8.1" + }, + "require-dev": { + "captainhook/plugin-composer": "^5.3", + "ergebnis/composer-normalize": "^2.45", + "fakerphp/faker": "^1.24", + "hamcrest/hamcrest-php": "^2.0", + "jangregor/phpstan-prophecy": "^2.1", + "mockery/mockery": "^1.6", + "php-parallel-lint/php-console-highlighter": "^1.0", + "php-parallel-lint/php-parallel-lint": "^1.4", + "phpspec/prophecy-phpunit": "^2.3", + "phpstan/extension-installer": "^1.4", + "phpstan/phpstan": "^2.1", + "phpstan/phpstan-mockery": "^2.0", + "phpstan/phpstan-phpunit": "^2.0", + "phpunit/phpunit": "^10.5", + "ramsey/coding-standard": "^2.3", + "ramsey/conventional-commits": "^1.6", + "roave/security-advisories": "dev-latest" + }, + "type": "library", + "extra": { + "captainhook": { + "force-install": true + }, + "ramsey/conventional-commits": { + "configFile": "conventional-commits.json" + } + }, + "autoload": { + "psr-4": { + "Ramsey\\Collection\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ben Ramsey", + "email": "ben@benramsey.com", + "homepage": "https://benramsey.com" + } + ], + "description": "A PHP library for representing and manipulating collections.", + "keywords": [ + "array", + "collection", + "hash", + "map", + "queue", + "set" + ], + "support": { + "issues": "https://github.com/ramsey/collection/issues", + "source": "https://github.com/ramsey/collection/tree/2.1.1" + }, + "time": "2025-03-22T05:38:12+00:00" + }, + { + "name": "ramsey/uuid", + "version": "4.9.2", + "source": { + "type": "git", + "url": "https://github.com/ramsey/uuid.git", + "reference": "8429c78ca35a09f27565311b98101e2826affde0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ramsey/uuid/zipball/8429c78ca35a09f27565311b98101e2826affde0", + "reference": "8429c78ca35a09f27565311b98101e2826affde0", + "shasum": "" + }, + "require": { + "brick/math": "^0.8.16 || ^0.9 || ^0.10 || ^0.11 || ^0.12 || ^0.13 || ^0.14", + "php": "^8.0", + "ramsey/collection": "^1.2 || ^2.0" + }, + "replace": { + "rhumsaa/uuid": "self.version" + }, + "require-dev": { + "captainhook/captainhook": "^5.25", + "captainhook/plugin-composer": "^5.3", + "dealerdirect/phpcodesniffer-composer-installer": "^1.0", + "ergebnis/composer-normalize": "^2.47", + "mockery/mockery": "^1.6", + "paragonie/random-lib": "^2", + "php-mock/php-mock": "^2.6", + "php-mock/php-mock-mockery": "^1.5", + "php-parallel-lint/php-parallel-lint": "^1.4.0", + "phpbench/phpbench": "^1.2.14", + "phpstan/extension-installer": "^1.4", + "phpstan/phpstan": "^2.1", + "phpstan/phpstan-mockery": "^2.0", + "phpstan/phpstan-phpunit": "^2.0", + "phpunit/phpunit": "^9.6", + "slevomat/coding-standard": "^8.18", + "squizlabs/php_codesniffer": "^3.13" + }, + "suggest": { + "ext-bcmath": "Enables faster math with arbitrary-precision integers using BCMath.", + "ext-gmp": "Enables faster math with arbitrary-precision integers using GMP.", + "ext-uuid": "Enables the use of PeclUuidTimeGenerator and PeclUuidRandomGenerator.", + "paragonie/random-lib": "Provides RandomLib for use with the RandomLibAdapter", + "ramsey/uuid-doctrine": "Allows the use of Ramsey\\Uuid\\Uuid as Doctrine field type." + }, + "type": "library", + "extra": { + "captainhook": { + "force-install": true + } + }, + "autoload": { + "files": [ + "src/functions.php" + ], + "psr-4": { + "Ramsey\\Uuid\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A PHP library for generating and working with universally unique identifiers (UUIDs).", + "keywords": [ + "guid", + "identifier", + "uuid" + ], + "support": { + "issues": "https://github.com/ramsey/uuid/issues", + "source": "https://github.com/ramsey/uuid/tree/4.9.2" + }, + "time": "2025-12-14T04:43:48+00:00" + }, + { + "name": "ryangjchandler/blade-capture-directive", + "version": "v1.1.0", + "source": { + "type": "git", + "url": "https://github.com/ryangjchandler/blade-capture-directive.git", + "reference": "bbb1513dfd89eaec87a47fe0c449a7e3d4a1976d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ryangjchandler/blade-capture-directive/zipball/bbb1513dfd89eaec87a47fe0c449a7e3d4a1976d", + "reference": "bbb1513dfd89eaec87a47fe0c449a7e3d4a1976d", + "shasum": "" + }, + "require": { + "illuminate/contracts": "^10.0|^11.0|^12.0", + "php": "^8.1", + "spatie/laravel-package-tools": "^1.9.2" + }, + "require-dev": { + "nunomaduro/collision": "^7.0|^8.0", + "nunomaduro/larastan": "^2.0|^3.0", + "orchestra/testbench": "^8.0|^9.0|^10.0", + "pestphp/pest": "^2.0|^3.7", + "pestphp/pest-plugin-laravel": "^2.0|^3.1", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan-deprecation-rules": "^1.0|^2.0", + "phpstan/phpstan-phpunit": "^1.0|^2.0", + "phpunit/phpunit": "^10.0|^11.5.3", + "spatie/laravel-ray": "^1.26" + }, + "type": "library", + "extra": { + "laravel": { + "aliases": { + "BladeCaptureDirective": "RyanChandler\\BladeCaptureDirective\\Facades\\BladeCaptureDirective" + }, + "providers": [ + "RyanChandler\\BladeCaptureDirective\\BladeCaptureDirectiveServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "RyanChandler\\BladeCaptureDirective\\": "src", + "RyanChandler\\BladeCaptureDirective\\Database\\Factories\\": "database/factories" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ryan Chandler", + "email": "support@ryangjchandler.co.uk", + "role": "Developer" + } + ], + "description": "Create inline partials in your Blade templates with ease.", + "homepage": "https://github.com/ryangjchandler/blade-capture-directive", + "keywords": [ + "blade-capture-directive", + "laravel", + "ryangjchandler" + ], + "support": { + "issues": "https://github.com/ryangjchandler/blade-capture-directive/issues", + "source": "https://github.com/ryangjchandler/blade-capture-directive/tree/v1.1.0" + }, + "funding": [ + { + "url": "https://github.com/ryangjchandler", + "type": "github" + } + ], + "time": "2025-02-25T09:09:36+00:00" + }, + { + "name": "ryangjchandler/laravel-cloudflare-turnstile", + "version": "v3.0.1", + "source": { + "type": "git", + "url": "https://github.com/ryangjchandler/laravel-cloudflare-turnstile.git", + "reference": "c5712e515aa355397159e0b59fe331469bee5a87" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ryangjchandler/laravel-cloudflare-turnstile/zipball/c5712e515aa355397159e0b59fe331469bee5a87", + "reference": "c5712e515aa355397159e0b59fe331469bee5a87", + "shasum": "" + }, + "require": { + "illuminate/contracts": "^11.0|^12.0", + "php": "^8.2", + "spatie/laravel-package-tools": "^1.13.0" + }, + "require-dev": { + "larastan/larastan": "^3.1", + "laravel/pint": "^1.0", + "nunomaduro/collision": "^8.0", + "orchestra/testbench": "^9.0|^10.0", + "pestphp/pest": "^3.7", + "pestphp/pest-plugin-laravel": "^3.1", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan-deprecation-rules": "^1.0|^2.0", + "phpstan/phpstan-phpunit": "^1.0|^2.0", + "phpunit/phpunit": "^10.0|^11.5.3", + "spatie/laravel-ray": "^1.26", + "spatie/pest-plugin-snapshots": "^2.0" + }, + "type": "library", + "extra": { + "laravel": { + "aliases": { + "LaravelCloudflareTurnstile": "RyanChandler\\LaravelCloudflareTurnstile\\Facades\\LaravelCloudflareTurnstile" + }, + "providers": [ + "RyanChandler\\LaravelCloudflareTurnstile\\LaravelCloudflareTurnstileServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "RyanChandler\\LaravelCloudflareTurnstile\\": "src", + "RyanChandler\\LaravelCloudflareTurnstile\\Database\\Factories\\": "database/factories" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ryan Chandler", + "email": "support@ryangjchandler.co.uk", + "role": "Developer" + } + ], + "description": "A simple package to help integrate Cloudflare Turnstile.", + "homepage": "https://github.com/ryangjchandler/laravel-cloudflare-turnstile", + "keywords": [ + "laravel", + "laravel-cloudflare-turnstile", + "ryangjchandler" + ], + "support": { + "issues": "https://github.com/ryangjchandler/laravel-cloudflare-turnstile/issues", + "source": "https://github.com/ryangjchandler/laravel-cloudflare-turnstile/tree/v3.0.1" + }, + "time": "2025-12-16T15:56:01+00:00" + }, + { + "name": "scrivo/highlight.php", + "version": "v9.18.1.10", + "source": { + "type": "git", + "url": "https://github.com/scrivo/highlight.php.git", + "reference": "850f4b44697a2552e892ffe71490ba2733c2fc6e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/scrivo/highlight.php/zipball/850f4b44697a2552e892ffe71490ba2733c2fc6e", + "reference": "850f4b44697a2552e892ffe71490ba2733c2fc6e", + "shasum": "" + }, + "require": { + "ext-json": "*", + "php": ">=5.4" + }, + "require-dev": { + "phpunit/phpunit": "^4.8|^5.7", + "sabberworm/php-css-parser": "^8.3", + "symfony/finder": "^2.8|^3.4|^5.4", + "symfony/var-dumper": "^2.8|^3.4|^5.4" + }, + "suggest": { + "ext-mbstring": "Allows highlighting code with unicode characters and supports language with unicode keywords" + }, + "type": "library", + "autoload": { + "files": [ + "HighlightUtilities/functions.php" + ], + "psr-0": { + "Highlight\\": "", + "HighlightUtilities\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Geert Bergman", + "homepage": "http://www.scrivo.org/", + "role": "Project Author" + }, + { + "name": "Vladimir Jimenez", + "homepage": "https://allejo.io", + "role": "Maintainer" + }, + { + "name": "Martin Folkers", + "homepage": "https://twobrain.io", + "role": "Contributor" + } + ], + "description": "Server side syntax highlighter that supports 185 languages. It's a PHP port of highlight.js", + "keywords": [ + "code", + "highlight", + "highlight.js", + "highlight.php", + "syntax" + ], + "support": { + "issues": "https://github.com/scrivo/highlight.php/issues", + "source": "https://github.com/scrivo/highlight.php" + }, + "funding": [ + { + "url": "https://github.com/allejo", + "type": "github" + } + ], + "time": "2022-12-17T21:53:22+00:00" + }, + { + "name": "spatie/invade", + "version": "2.1.0", + "source": { + "type": "git", + "url": "https://github.com/spatie/invade.git", + "reference": "b920f6411d21df4e8610a138e2e87ae4957d7f63" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/invade/zipball/b920f6411d21df4e8610a138e2e87ae4957d7f63", + "reference": "b920f6411d21df4e8610a138e2e87ae4957d7f63", + "shasum": "" + }, + "require": { + "php": "^8.0" + }, + "require-dev": { + "pestphp/pest": "^1.20", + "phpstan/phpstan": "^1.4", + "spatie/ray": "^1.28" + }, + "type": "library", + "autoload": { + "files": [ + "src/functions.php" + ], + "psr-4": { + "Spatie\\Invade\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "role": "Developer" + } + ], + "description": "A PHP function to work with private properties and methods", + "homepage": "https://github.com/spatie/invade", + "keywords": [ + "invade", + "spatie" + ], + "support": { + "source": "https://github.com/spatie/invade/tree/2.1.0" + }, + "funding": [ + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2024-05-17T09:06:10+00:00" + }, + { + "name": "spatie/laravel-activitylog", + "version": "4.10.2", + "source": { + "type": "git", + "url": "https://github.com/spatie/laravel-activitylog.git", + "reference": "bb879775d487438ed9a99e64f09086b608990c10" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/laravel-activitylog/zipball/bb879775d487438ed9a99e64f09086b608990c10", + "reference": "bb879775d487438ed9a99e64f09086b608990c10", + "shasum": "" + }, + "require": { + "illuminate/config": "^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0", + "illuminate/database": "^8.69 || ^9.27 || ^10.0 || ^11.0 || ^12.0", + "illuminate/support": "^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0", + "php": "^8.1", + "spatie/laravel-package-tools": "^1.6.3" + }, + "require-dev": { + "ext-json": "*", + "orchestra/testbench": "^6.23 || ^7.0 || ^8.0 || ^9.0 || ^10.0", + "pestphp/pest": "^1.20 || ^2.0 || ^3.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Spatie\\Activitylog\\ActivitylogServiceProvider" + ] + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Spatie\\Activitylog\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + }, + { + "name": "Sebastian De Deyne", + "email": "sebastian@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + }, + { + "name": "Tom Witkowski", + "email": "dev.gummibeer@gmail.com", + "homepage": "https://gummibeer.de", + "role": "Developer" + } + ], + "description": "A very simple activity logger to monitor the users of your website or application", + "homepage": "https://github.com/spatie/activitylog", + "keywords": [ + "activity", + "laravel", + "log", + "spatie", + "user" + ], + "support": { + "issues": "https://github.com/spatie/laravel-activitylog/issues", + "source": "https://github.com/spatie/laravel-activitylog/tree/4.10.2" + }, + "funding": [ + { + "url": "https://spatie.be/open-source/support-us", + "type": "custom" + }, + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2025-06-15T06:59:49+00:00" + }, + { + "name": "spatie/laravel-package-tools", + "version": "1.92.7", + "source": { + "type": "git", + "url": "https://github.com/spatie/laravel-package-tools.git", + "reference": "f09a799850b1ed765103a4f0b4355006360c49a5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/laravel-package-tools/zipball/f09a799850b1ed765103a4f0b4355006360c49a5", + "reference": "f09a799850b1ed765103a4f0b4355006360c49a5", + "shasum": "" + }, + "require": { + "illuminate/contracts": "^9.28|^10.0|^11.0|^12.0", + "php": "^8.0" + }, + "require-dev": { + "mockery/mockery": "^1.5", + "orchestra/testbench": "^7.7|^8.0|^9.0|^10.0", + "pestphp/pest": "^1.23|^2.1|^3.1", + "phpunit/php-code-coverage": "^9.0|^10.0|^11.0", + "phpunit/phpunit": "^9.5.24|^10.5|^11.5", + "spatie/pest-plugin-test-time": "^1.1|^2.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\LaravelPackageTools\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "role": "Developer" + } + ], + "description": "Tools for creating Laravel packages", + "homepage": "https://github.com/spatie/laravel-package-tools", + "keywords": [ + "laravel-package-tools", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/laravel-package-tools/issues", + "source": "https://github.com/spatie/laravel-package-tools/tree/1.92.7" + }, + "funding": [ + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2025-07-17T15:46:43+00:00" + }, + { + "name": "spatie/laravel-sluggable", + "version": "3.7.5", + "source": { + "type": "git", + "url": "https://github.com/spatie/laravel-sluggable.git", + "reference": "e4fdd519e043a2af02b52eec2c3be2dd2e262e27" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/laravel-sluggable/zipball/e4fdd519e043a2af02b52eec2c3be2dd2e262e27", + "reference": "e4fdd519e043a2af02b52eec2c3be2dd2e262e27", + "shasum": "" + }, + "require": { + "illuminate/database": "^8.0|^9.0|^10.0|^11.0|^12.0", + "illuminate/support": "^8.0|^9.0|^10.0|^11.0|^12.0", + "php": "^8.0" + }, + "require-dev": { + "orchestra/testbench": "^6.23|^7.0|^8.0|^9.0|^10.0", + "pestphp/pest": "^1.20|^2.0|^3.7", + "spatie/laravel-translatable": "^5.0|^6.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\Sluggable\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "Generate slugs when saving Eloquent models", + "homepage": "https://github.com/spatie/laravel-sluggable", + "keywords": [ + "laravel-sluggable", + "spatie" + ], + "support": { + "source": "https://github.com/spatie/laravel-sluggable/tree/3.7.5" + }, + "funding": [ + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2025-04-24T09:21:00+00:00" + }, + { + "name": "spatie/shiki-php", + "version": "2.3.2", + "source": { + "type": "git", + "url": "https://github.com/spatie/shiki-php.git", + "reference": "a2e78a9ff8a1290b25d550be8fbf8285c13175c5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/shiki-php/zipball/a2e78a9ff8a1290b25d550be8fbf8285c13175c5", + "reference": "a2e78a9ff8a1290b25d550be8fbf8285c13175c5", + "shasum": "" + }, + "require": { + "ext-json": "*", + "php": "^8.0", + "symfony/process": "^5.4|^6.4|^7.1" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^v3.0", + "pestphp/pest": "^1.8", + "phpunit/phpunit": "^9.5", + "spatie/pest-plugin-snapshots": "^1.1", + "spatie/ray": "^1.10" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\ShikiPhp\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Rias Van der Veken", + "email": "rias@spatie.be", + "role": "Developer" + }, + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "role": "Developer" + } + ], + "description": "Highlight code using Shiki in PHP", + "homepage": "https://github.com/spatie/shiki-php", + "keywords": [ + "shiki", + "spatie" + ], + "support": { + "source": "https://github.com/spatie/shiki-php/tree/2.3.2" + }, + "funding": [ + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2025-02-21T14:16:57+00:00" + }, + { + "name": "srmklive/paypal", + "version": "3.0.40", + "source": { + "type": "git", + "url": "https://github.com/srmklive/laravel-paypal.git", + "reference": "1ddc49fd836a4785933ab953452152f3fedbac63" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/srmklive/laravel-paypal/zipball/1ddc49fd836a4785933ab953452152f3fedbac63", + "reference": "1ddc49fd836a4785933ab953452152f3fedbac63", + "shasum": "" + }, + "require": { + "ext-curl": "*", + "guzzlehttp/guzzle": "~7.0", + "illuminate/support": "~6.0|~7.0|~8.0|~9.0|^10.0|^11.0|^12.0", + "nesbot/carbon": "~2.0|^3.0", + "php": ">=7.2|^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^1.10", + "phpunit/phpunit": "^8.0|^9.0|^10.0|^11.0", + "symfony/var-dumper": "~5.0|^6.0|^7.0" + }, + "type": "library", + "extra": { + "laravel": { + "aliases": { + "PayPal": "Srmklive\\PayPal\\Facades\\PayPal" + }, + "providers": [ + "Srmklive\\PayPal\\Providers\\PayPalServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Srmklive\\PayPal\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Raza Mehdi", + "email": "srmk@outlook.com" + } + ], + "description": "Laravel plugin For Processing Payments Through Paypal Express Checkout. Can Be Used Independently With Other Applications.", + "keywords": [ + "http", + "laravel paypal", + "paypal", + "rest", + "web service" + ], + "support": { + "issues": "https://github.com/srmklive/laravel-paypal/issues", + "source": "https://github.com/srmklive/laravel-paypal/tree/3.0.40" + }, + "time": "2025-02-25T21:38:18+00:00" + }, + { + "name": "stevebauman/purify", + "version": "v6.3.1", + "source": { + "type": "git", + "url": "https://github.com/stevebauman/purify.git", + "reference": "3acb5e77904f420ce8aad8fa1c7f394e82daa500" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/stevebauman/purify/zipball/3acb5e77904f420ce8aad8fa1c7f394e82daa500", + "reference": "3acb5e77904f420ce8aad8fa1c7f394e82daa500", + "shasum": "" + }, + "require": { + "ezyang/htmlpurifier": "^4.17", + "illuminate/contracts": "^7.0|^8.0|^9.0|^10.0|^11.0|^12.0", + "illuminate/support": "^7.0|^8.0|^9.0|^10.0|^11.0|^12.0", + "php": ">=7.4" + }, + "require-dev": { + "orchestra/testbench": "^5.0|^6.0|^7.0|^8.0|^9.0|^10.0", + "phpunit/phpunit": "^8.0|^9.0|^10.0|^11.5.3" + }, + "type": "library", + "extra": { + "laravel": { + "aliases": { + "Purify": "Stevebauman\\Purify\\Facades\\Purify" + }, + "providers": [ + "Stevebauman\\Purify\\PurifyServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Stevebauman\\Purify\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Steve Bauman", + "email": "steven_bauman@outlook.com" + } + ], + "description": "An HTML Purifier / Sanitizer for Laravel", + "keywords": [ + "Purifier", + "clean", + "cleaner", + "html", + "laravel", + "purification", + "purify" + ], + "support": { + "issues": "https://github.com/stevebauman/purify/issues", + "source": "https://github.com/stevebauman/purify/tree/v6.3.1" + }, + "time": "2025-05-21T16:53:09+00:00" + }, + { + "name": "symfony/clock", + "version": "v8.0.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/clock.git", + "reference": "832119f9b8dbc6c8e6f65f30c5969eca1e88764f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/clock/zipball/832119f9b8dbc6c8e6f65f30c5969eca1e88764f", + "reference": "832119f9b8dbc6c8e6f65f30c5969eca1e88764f", + "shasum": "" + }, + "require": { + "php": ">=8.4", + "psr/clock": "^1.0" + }, + "provide": { + "psr/clock-implementation": "1.0" + }, + "type": "library", + "autoload": { + "files": [ + "Resources/now.php" + ], + "psr-4": { + "Symfony\\Component\\Clock\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Decouples applications from the system clock", + "homepage": "https://symfony.com", + "keywords": [ + "clock", + "psr20", + "time" + ], + "support": { + "source": "https://github.com/symfony/clock/tree/v8.0.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-11-12T15:46:48+00:00" + }, + { + "name": "symfony/console", + "version": "v7.4.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/console.git", + "reference": "732a9ca6cd9dfd940c639062d5edbde2f6727fb6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/console/zipball/732a9ca6cd9dfd940c639062d5edbde2f6727fb6", + "reference": "732a9ca6cd9dfd940c639062d5edbde2f6727fb6", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/polyfill-mbstring": "~1.0", + "symfony/service-contracts": "^2.5|^3", + "symfony/string": "^7.2|^8.0" + }, + "conflict": { + "symfony/dependency-injection": "<6.4", + "symfony/dotenv": "<6.4", + "symfony/event-dispatcher": "<6.4", + "symfony/lock": "<6.4", + "symfony/process": "<6.4" + }, + "provide": { + "psr/log-implementation": "1.0|2.0|3.0" + }, + "require-dev": { + "psr/log": "^1|^2|^3", + "symfony/config": "^6.4|^7.0|^8.0", + "symfony/dependency-injection": "^6.4|^7.0|^8.0", + "symfony/event-dispatcher": "^6.4|^7.0|^8.0", + "symfony/http-foundation": "^6.4|^7.0|^8.0", + "symfony/http-kernel": "^6.4|^7.0|^8.0", + "symfony/lock": "^6.4|^7.0|^8.0", + "symfony/messenger": "^6.4|^7.0|^8.0", + "symfony/process": "^6.4|^7.0|^8.0", + "symfony/stopwatch": "^6.4|^7.0|^8.0", + "symfony/var-dumper": "^6.4|^7.0|^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Console\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Eases the creation of beautiful and testable command line interfaces", + "homepage": "https://symfony.com", + "keywords": [ + "cli", + "command-line", + "console", + "terminal" + ], + "support": { + "source": "https://github.com/symfony/console/tree/v7.4.3" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-12-23T14:50:43+00:00" + }, + { + "name": "symfony/css-selector", + "version": "v8.0.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/css-selector.git", + "reference": "6225bd458c53ecdee056214cb4a2ffaf58bd592b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/css-selector/zipball/6225bd458c53ecdee056214cb4a2ffaf58bd592b", + "reference": "6225bd458c53ecdee056214cb4a2ffaf58bd592b", + "shasum": "" + }, + "require": { + "php": ">=8.4" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\CssSelector\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Jean-François Simon", + "email": "jeanfrancois.simon@sensiolabs.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Converts CSS selectors to XPath expressions", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/css-selector/tree/v8.0.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-10-30T14:17:19+00:00" + }, + { + "name": "symfony/deprecation-contracts", + "version": "v3.6.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/deprecation-contracts.git", + "reference": "63afe740e99a13ba87ec199bb07bbdee937a5b62" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/63afe740e99a13ba87ec199bb07bbdee937a5b62", + "reference": "63afe740e99a13ba87ec199bb07bbdee937a5b62", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, + "branch-alias": { + "dev-main": "3.6-dev" + } + }, + "autoload": { + "files": [ + "function.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "A generic function and convention to trigger deprecation notices", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.6.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-25T14:21:43+00:00" + }, + { + "name": "symfony/error-handler", + "version": "v7.4.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/error-handler.git", + "reference": "48be2b0653594eea32dcef130cca1c811dcf25c2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/error-handler/zipball/48be2b0653594eea32dcef130cca1c811dcf25c2", + "reference": "48be2b0653594eea32dcef130cca1c811dcf25c2", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "psr/log": "^1|^2|^3", + "symfony/polyfill-php85": "^1.32", + "symfony/var-dumper": "^6.4|^7.0|^8.0" + }, + "conflict": { + "symfony/deprecation-contracts": "<2.5", + "symfony/http-kernel": "<6.4" + }, + "require-dev": { + "symfony/console": "^6.4|^7.0|^8.0", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/http-kernel": "^6.4|^7.0|^8.0", + "symfony/serializer": "^6.4|^7.0|^8.0", + "symfony/webpack-encore-bundle": "^1.0|^2.0" + }, + "bin": [ + "Resources/bin/patch-type-declarations" + ], + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\ErrorHandler\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides tools to manage errors and ease debugging PHP code", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/error-handler/tree/v7.4.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-11-05T14:29:59+00:00" + }, + { + "name": "symfony/event-dispatcher", + "version": "v8.0.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/event-dispatcher.git", + "reference": "573f95783a2ec6e38752979db139f09fec033f03" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/573f95783a2ec6e38752979db139f09fec033f03", + "reference": "573f95783a2ec6e38752979db139f09fec033f03", + "shasum": "" + }, + "require": { + "php": ">=8.4", + "symfony/event-dispatcher-contracts": "^2.5|^3" + }, + "conflict": { + "symfony/security-http": "<7.4", + "symfony/service-contracts": "<2.5" + }, + "provide": { + "psr/event-dispatcher-implementation": "1.0", + "symfony/event-dispatcher-implementation": "2.0|3.0" + }, + "require-dev": { + "psr/log": "^1|^2|^3", + "symfony/config": "^7.4|^8.0", + "symfony/dependency-injection": "^7.4|^8.0", + "symfony/error-handler": "^7.4|^8.0", + "symfony/expression-language": "^7.4|^8.0", + "symfony/framework-bundle": "^7.4|^8.0", + "symfony/http-foundation": "^7.4|^8.0", + "symfony/service-contracts": "^2.5|^3", + "symfony/stopwatch": "^7.4|^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\EventDispatcher\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/event-dispatcher/tree/v8.0.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-10-30T14:17:19+00:00" + }, + { + "name": "symfony/event-dispatcher-contracts", + "version": "v3.6.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/event-dispatcher-contracts.git", + "reference": "59eb412e93815df44f05f342958efa9f46b1e586" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/59eb412e93815df44f05f342958efa9f46b1e586", + "reference": "59eb412e93815df44f05f342958efa9f46b1e586", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "psr/event-dispatcher": "^1" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, + "branch-alias": { + "dev-main": "3.6-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\EventDispatcher\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to dispatching event", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "support": { + "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.6.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-25T14:21:43+00:00" + }, + { + "name": "symfony/finder", + "version": "v7.4.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/finder.git", + "reference": "fffe05569336549b20a1be64250b40516d6e8d06" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/finder/zipball/fffe05569336549b20a1be64250b40516d6e8d06", + "reference": "fffe05569336549b20a1be64250b40516d6e8d06", + "shasum": "" + }, + "require": { + "php": ">=8.2" + }, + "require-dev": { + "symfony/filesystem": "^6.4|^7.0|^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Finder\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Finds files and directories via an intuitive fluent interface", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/finder/tree/v7.4.3" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-12-23T14:50:43+00:00" + }, + { + "name": "symfony/html-sanitizer", + "version": "v7.4.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/html-sanitizer.git", + "reference": "5b0bbcc3600030b535dd0b17a0e8c56243f96d7f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/html-sanitizer/zipball/5b0bbcc3600030b535dd0b17a0e8c56243f96d7f", + "reference": "5b0bbcc3600030b535dd0b17a0e8c56243f96d7f", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "league/uri": "^6.5|^7.0", + "masterminds/html5": "^2.7.2", + "php": ">=8.2", + "symfony/deprecation-contracts": "^2.5|^3" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\HtmlSanitizer\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Titouan Galopin", + "email": "galopintitouan@gmail.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides an object-oriented API to sanitize untrusted HTML input for safe insertion into a document's DOM.", + "homepage": "https://symfony.com", + "keywords": [ + "Purifier", + "html", + "sanitizer" + ], + "support": { + "source": "https://github.com/symfony/html-sanitizer/tree/v7.4.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-10-30T13:39:42+00:00" + }, + { + "name": "symfony/http-foundation", + "version": "v7.4.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/http-foundation.git", + "reference": "a70c745d4cea48dbd609f4075e5f5cbce453bd52" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/a70c745d4cea48dbd609f4075e5f5cbce453bd52", + "reference": "a70c745d4cea48dbd609f4075e5f5cbce453bd52", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/polyfill-mbstring": "^1.1" + }, + "conflict": { + "doctrine/dbal": "<3.6", + "symfony/cache": "<6.4.12|>=7.0,<7.1.5" + }, + "require-dev": { + "doctrine/dbal": "^3.6|^4", + "predis/predis": "^1.1|^2.0", + "symfony/cache": "^6.4.12|^7.1.5|^8.0", + "symfony/clock": "^6.4|^7.0|^8.0", + "symfony/dependency-injection": "^6.4|^7.0|^8.0", + "symfony/expression-language": "^6.4|^7.0|^8.0", + "symfony/http-kernel": "^6.4|^7.0|^8.0", + "symfony/mime": "^6.4|^7.0|^8.0", + "symfony/rate-limiter": "^6.4|^7.0|^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\HttpFoundation\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Defines an object-oriented layer for the HTTP specification", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/http-foundation/tree/v7.4.3" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-12-23T14:23:49+00:00" + }, + { + "name": "symfony/http-kernel", + "version": "v7.4.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/http-kernel.git", + "reference": "885211d4bed3f857b8c964011923528a55702aa5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/885211d4bed3f857b8c964011923528a55702aa5", + "reference": "885211d4bed3f857b8c964011923528a55702aa5", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "psr/log": "^1|^2|^3", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/error-handler": "^6.4|^7.0|^8.0", + "symfony/event-dispatcher": "^7.3|^8.0", + "symfony/http-foundation": "^7.4|^8.0", + "symfony/polyfill-ctype": "^1.8" + }, + "conflict": { + "symfony/browser-kit": "<6.4", + "symfony/cache": "<6.4", + "symfony/config": "<6.4", + "symfony/console": "<6.4", + "symfony/dependency-injection": "<6.4", + "symfony/doctrine-bridge": "<6.4", + "symfony/flex": "<2.10", + "symfony/form": "<6.4", + "symfony/http-client": "<6.4", + "symfony/http-client-contracts": "<2.5", + "symfony/mailer": "<6.4", + "symfony/messenger": "<6.4", + "symfony/translation": "<6.4", + "symfony/translation-contracts": "<2.5", + "symfony/twig-bridge": "<6.4", + "symfony/validator": "<6.4", + "symfony/var-dumper": "<6.4", + "twig/twig": "<3.12" + }, + "provide": { + "psr/log-implementation": "1.0|2.0|3.0" + }, + "require-dev": { + "psr/cache": "^1.0|^2.0|^3.0", + "symfony/browser-kit": "^6.4|^7.0|^8.0", + "symfony/clock": "^6.4|^7.0|^8.0", + "symfony/config": "^6.4|^7.0|^8.0", + "symfony/console": "^6.4|^7.0|^8.0", + "symfony/css-selector": "^6.4|^7.0|^8.0", + "symfony/dependency-injection": "^6.4|^7.0|^8.0", + "symfony/dom-crawler": "^6.4|^7.0|^8.0", + "symfony/expression-language": "^6.4|^7.0|^8.0", + "symfony/finder": "^6.4|^7.0|^8.0", + "symfony/http-client-contracts": "^2.5|^3", + "symfony/process": "^6.4|^7.0|^8.0", + "symfony/property-access": "^7.1|^8.0", + "symfony/routing": "^6.4|^7.0|^8.0", + "symfony/serializer": "^7.1|^8.0", + "symfony/stopwatch": "^6.4|^7.0|^8.0", + "symfony/translation": "^6.4|^7.0|^8.0", + "symfony/translation-contracts": "^2.5|^3", + "symfony/uid": "^6.4|^7.0|^8.0", + "symfony/validator": "^6.4|^7.0|^8.0", + "symfony/var-dumper": "^6.4|^7.0|^8.0", + "symfony/var-exporter": "^6.4|^7.0|^8.0", + "twig/twig": "^3.12" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\HttpKernel\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides a structured process for converting a Request into a Response", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/http-kernel/tree/v7.4.3" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-12-31T08:43:57+00:00" + }, + { + "name": "symfony/mailer", + "version": "v7.4.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/mailer.git", + "reference": "e472d35e230108231ccb7f51eb6b2100cac02ee4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/mailer/zipball/e472d35e230108231ccb7f51eb6b2100cac02ee4", + "reference": "e472d35e230108231ccb7f51eb6b2100cac02ee4", + "shasum": "" + }, + "require": { + "egulias/email-validator": "^2.1.10|^3|^4", + "php": ">=8.2", + "psr/event-dispatcher": "^1", + "psr/log": "^1|^2|^3", + "symfony/event-dispatcher": "^6.4|^7.0|^8.0", + "symfony/mime": "^7.2|^8.0", + "symfony/service-contracts": "^2.5|^3" + }, + "conflict": { + "symfony/http-client-contracts": "<2.5", + "symfony/http-kernel": "<6.4", + "symfony/messenger": "<6.4", + "symfony/mime": "<6.4", + "symfony/twig-bridge": "<6.4" + }, + "require-dev": { + "symfony/console": "^6.4|^7.0|^8.0", + "symfony/http-client": "^6.4|^7.0|^8.0", + "symfony/messenger": "^6.4|^7.0|^8.0", + "symfony/twig-bridge": "^6.4|^7.0|^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Mailer\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Helps sending emails", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/mailer/tree/v7.4.3" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-12-16T08:02:06+00:00" + }, + { + "name": "symfony/mime", + "version": "v7.4.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/mime.git", + "reference": "bdb02729471be5d047a3ac4a69068748f1a6be7a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/mime/zipball/bdb02729471be5d047a3ac4a69068748f1a6be7a", + "reference": "bdb02729471be5d047a3ac4a69068748f1a6be7a", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/polyfill-intl-idn": "^1.10", + "symfony/polyfill-mbstring": "^1.0" + }, + "conflict": { + "egulias/email-validator": "~3.0.0", + "phpdocumentor/reflection-docblock": "<3.2.2", + "phpdocumentor/type-resolver": "<1.4.0", + "symfony/mailer": "<6.4", + "symfony/serializer": "<6.4.3|>7.0,<7.0.3" + }, + "require-dev": { + "egulias/email-validator": "^2.1.10|^3.1|^4", + "league/html-to-markdown": "^5.0", + "phpdocumentor/reflection-docblock": "^3.0|^4.0|^5.0", + "symfony/dependency-injection": "^6.4|^7.0|^8.0", + "symfony/process": "^6.4|^7.0|^8.0", + "symfony/property-access": "^6.4|^7.0|^8.0", + "symfony/property-info": "^6.4|^7.0|^8.0", + "symfony/serializer": "^6.4.3|^7.0.3|^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Mime\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Allows manipulating MIME messages", + "homepage": "https://symfony.com", + "keywords": [ + "mime", + "mime-type" + ], + "support": { + "source": "https://github.com/symfony/mime/tree/v7.4.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-11-16T10:14:42+00:00" + }, + { + "name": "symfony/polyfill-ctype", + "version": "v1.33.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-ctype.git", + "reference": "a3cc8b044a6ea513310cbd48ef7333b384945638" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/a3cc8b044a6ea513310cbd48ef7333b384945638", + "reference": "a3cc8b044a6ea513310cbd48ef7333b384945638", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "provide": { + "ext-ctype": "*" + }, + "suggest": { + "ext-ctype": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Ctype\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Gert de Pagter", + "email": "BackEndTea@gmail.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for ctype functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "ctype", + "polyfill", + "portable" + ], + "support": { + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.33.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-09T11:45:10+00:00" + }, + { + "name": "symfony/polyfill-intl-grapheme", + "version": "v1.33.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-grapheme.git", + "reference": "380872130d3a5dd3ace2f4010d95125fde5d5c70" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/380872130d3a5dd3ace2f4010d95125fde5d5c70", + "reference": "380872130d3a5dd3ace2f4010d95125fde5d5c70", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Intl\\Grapheme\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's grapheme_* functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "grapheme", + "intl", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.33.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-06-27T09:58:17+00:00" + }, + { + "name": "symfony/polyfill-intl-idn", + "version": "v1.33.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-idn.git", + "reference": "9614ac4d8061dc257ecc64cba1b140873dce8ad3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/9614ac4d8061dc257ecc64cba1b140873dce8ad3", + "reference": "9614ac4d8061dc257ecc64cba1b140873dce8ad3", + "shasum": "" + }, + "require": { + "php": ">=7.2", + "symfony/polyfill-intl-normalizer": "^1.10" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Intl\\Idn\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Laurent Bassin", + "email": "laurent@bassin.info" + }, + { + "name": "Trevor Rowbotham", + "email": "trevor.rowbotham@pm.me" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "idn", + "intl", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-intl-idn/tree/v1.33.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-10T14:38:51+00:00" + }, + { + "name": "symfony/polyfill-intl-normalizer", + "version": "v1.33.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-normalizer.git", + "reference": "3833d7255cc303546435cb650316bff708a1c75c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/3833d7255cc303546435cb650316bff708a1c75c", + "reference": "3833d7255cc303546435cb650316bff708a1c75c", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Intl\\Normalizer\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's Normalizer class and related functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "intl", + "normalizer", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.33.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-09T11:45:10+00:00" + }, + { + "name": "symfony/polyfill-mbstring", + "version": "v1.33.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "6d857f4d76bd4b343eac26d6b539585d2bc56493" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/6d857f4d76bd4b343eac26d6b539585d2bc56493", + "reference": "6d857f4d76bd4b343eac26d6b539585d2bc56493", + "shasum": "" + }, + "require": { + "ext-iconv": "*", + "php": ">=7.2" + }, + "provide": { + "ext-mbstring": "*" + }, + "suggest": { + "ext-mbstring": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Mbstring\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for the Mbstring extension", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "mbstring", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.33.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-12-23T08:48:59+00:00" + }, + { + "name": "symfony/polyfill-php80", + "version": "v1.33.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php80.git", + "reference": "0cc9dd0f17f61d8131e7df6b84bd344899fe2608" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/0cc9dd0f17f61d8131e7df6b84bd344899fe2608", + "reference": "0cc9dd0f17f61d8131e7df6b84bd344899fe2608", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php80\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ion Bazan", + "email": "ion.bazan@gmail.com" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php80/tree/v1.33.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-01-02T08:10:11+00:00" + }, + { + "name": "symfony/polyfill-php83", + "version": "v1.33.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php83.git", + "reference": "17f6f9a6b1735c0f163024d959f700cfbc5155e5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php83/zipball/17f6f9a6b1735c0f163024d959f700cfbc5155e5", + "reference": "17f6f9a6b1735c0f163024d959f700cfbc5155e5", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php83\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.3+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php83/tree/v1.33.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-07-08T02:45:35+00:00" + }, + { + "name": "symfony/polyfill-php84", + "version": "v1.33.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php84.git", + "reference": "d8ced4d875142b6a7426000426b8abc631d6b191" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php84/zipball/d8ced4d875142b6a7426000426b8abc631d6b191", + "reference": "d8ced4d875142b6a7426000426b8abc631d6b191", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php84\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.4+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php84/tree/v1.33.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-06-24T13:30:11+00:00" + }, + { + "name": "symfony/polyfill-php85", + "version": "v1.33.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php85.git", + "reference": "d4e5fcd4ab3d998ab16c0db48e6cbb9a01993f91" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php85/zipball/d4e5fcd4ab3d998ab16c0db48e6cbb9a01993f91", + "reference": "d4e5fcd4ab3d998ab16c0db48e6cbb9a01993f91", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php85\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.5+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php85/tree/v1.33.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-06-23T16:12:55+00:00" + }, + { + "name": "symfony/polyfill-uuid", + "version": "v1.33.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-uuid.git", + "reference": "21533be36c24be3f4b1669c4725c7d1d2bab4ae2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-uuid/zipball/21533be36c24be3f4b1669c4725c7d1d2bab4ae2", + "reference": "21533be36c24be3f4b1669c4725c7d1d2bab4ae2", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "provide": { + "ext-uuid": "*" + }, + "suggest": { + "ext-uuid": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Uuid\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Grégoire Pineau", + "email": "lyrixx@lyrixx.info" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for uuid functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "uuid" + ], + "support": { + "source": "https://github.com/symfony/polyfill-uuid/tree/v1.33.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-09T11:45:10+00:00" + }, + { + "name": "symfony/process", + "version": "v7.4.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/process.git", + "reference": "2f8e1a6cdf590ca63715da4d3a7a3327404a523f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/process/zipball/2f8e1a6cdf590ca63715da4d3a7a3327404a523f", + "reference": "2f8e1a6cdf590ca63715da4d3a7a3327404a523f", + "shasum": "" + }, + "require": { + "php": ">=8.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Process\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Executes commands in sub-processes", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/process/tree/v7.4.3" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-12-19T10:00:43+00:00" + }, + { + "name": "symfony/routing", + "version": "v7.4.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/routing.git", + "reference": "5d3fd7adf8896c2fdb54e2f0f35b1bcbd9e45090" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/routing/zipball/5d3fd7adf8896c2fdb54e2f0f35b1bcbd9e45090", + "reference": "5d3fd7adf8896c2fdb54e2f0f35b1bcbd9e45090", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/deprecation-contracts": "^2.5|^3" + }, + "conflict": { + "symfony/config": "<6.4", + "symfony/dependency-injection": "<6.4", + "symfony/yaml": "<6.4" + }, + "require-dev": { + "psr/log": "^1|^2|^3", + "symfony/config": "^6.4|^7.0|^8.0", + "symfony/dependency-injection": "^6.4|^7.0|^8.0", + "symfony/expression-language": "^6.4|^7.0|^8.0", + "symfony/http-foundation": "^6.4|^7.0|^8.0", + "symfony/yaml": "^6.4|^7.0|^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Routing\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Maps an HTTP request to a set of configuration variables", + "homepage": "https://symfony.com", + "keywords": [ + "router", + "routing", + "uri", + "url" + ], + "support": { + "source": "https://github.com/symfony/routing/tree/v7.4.3" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-12-19T10:00:43+00:00" + }, + { + "name": "symfony/service-contracts", + "version": "v3.6.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/service-contracts.git", + "reference": "45112560a3ba2d715666a509a0bc9521d10b6c43" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/45112560a3ba2d715666a509a0bc9521d10b6c43", + "reference": "45112560a3ba2d715666a509a0bc9521d10b6c43", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "psr/container": "^1.1|^2.0", + "symfony/deprecation-contracts": "^2.5|^3" + }, + "conflict": { + "ext-psr": "<1.1|>=2" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, + "branch-alias": { + "dev-main": "3.6-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\Service\\": "" + }, + "exclude-from-classmap": [ + "/Test/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to writing services", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "support": { + "source": "https://github.com/symfony/service-contracts/tree/v3.6.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-07-15T11:30:57+00:00" + }, + { + "name": "symfony/string", + "version": "v8.0.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/string.git", + "reference": "ba65a969ac918ce0cc3edfac6cdde847eba231dc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/string/zipball/ba65a969ac918ce0cc3edfac6cdde847eba231dc", + "reference": "ba65a969ac918ce0cc3edfac6cdde847eba231dc", + "shasum": "" + }, + "require": { + "php": ">=8.4", + "symfony/polyfill-ctype": "^1.8", + "symfony/polyfill-intl-grapheme": "^1.33", + "symfony/polyfill-intl-normalizer": "^1.0", + "symfony/polyfill-mbstring": "^1.0" + }, + "conflict": { + "symfony/translation-contracts": "<2.5" + }, + "require-dev": { + "symfony/emoji": "^7.4|^8.0", + "symfony/http-client": "^7.4|^8.0", + "symfony/intl": "^7.4|^8.0", + "symfony/translation-contracts": "^2.5|^3.0", + "symfony/var-exporter": "^7.4|^8.0" + }, + "type": "library", + "autoload": { + "files": [ + "Resources/functions.php" + ], + "psr-4": { + "Symfony\\Component\\String\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way", + "homepage": "https://symfony.com", + "keywords": [ + "grapheme", + "i18n", + "string", + "unicode", + "utf-8", + "utf8" + ], + "support": { + "source": "https://github.com/symfony/string/tree/v8.0.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-12-01T09:13:36+00:00" + }, + { + "name": "symfony/translation", + "version": "v8.0.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/translation.git", + "reference": "60a8f11f0e15c48f2cc47c4da53873bb5b62135d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/translation/zipball/60a8f11f0e15c48f2cc47c4da53873bb5b62135d", + "reference": "60a8f11f0e15c48f2cc47c4da53873bb5b62135d", + "shasum": "" + }, + "require": { + "php": ">=8.4", + "symfony/polyfill-mbstring": "^1.0", + "symfony/translation-contracts": "^3.6.1" + }, + "conflict": { + "nikic/php-parser": "<5.0", + "symfony/http-client-contracts": "<2.5", + "symfony/service-contracts": "<2.5" + }, + "provide": { + "symfony/translation-implementation": "2.3|3.0" + }, + "require-dev": { + "nikic/php-parser": "^5.0", + "psr/log": "^1|^2|^3", + "symfony/config": "^7.4|^8.0", + "symfony/console": "^7.4|^8.0", + "symfony/dependency-injection": "^7.4|^8.0", + "symfony/finder": "^7.4|^8.0", + "symfony/http-client-contracts": "^2.5|^3.0", + "symfony/http-kernel": "^7.4|^8.0", + "symfony/intl": "^7.4|^8.0", + "symfony/polyfill-intl-icu": "^1.21", + "symfony/routing": "^7.4|^8.0", + "symfony/service-contracts": "^2.5|^3", + "symfony/yaml": "^7.4|^8.0" + }, + "type": "library", + "autoload": { + "files": [ + "Resources/functions.php" + ], + "psr-4": { + "Symfony\\Component\\Translation\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides tools to internationalize your application", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/translation/tree/v8.0.3" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-12-21T10:59:45+00:00" + }, + { + "name": "symfony/translation-contracts", + "version": "v3.6.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/translation-contracts.git", + "reference": "65a8bc82080447fae78373aa10f8d13b38338977" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/65a8bc82080447fae78373aa10f8d13b38338977", + "reference": "65a8bc82080447fae78373aa10f8d13b38338977", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, + "branch-alias": { + "dev-main": "3.6-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\Translation\\": "" + }, + "exclude-from-classmap": [ + "/Test/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to translation", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "support": { + "source": "https://github.com/symfony/translation-contracts/tree/v3.6.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-07-15T13:41:35+00:00" + }, + { + "name": "symfony/uid", + "version": "v7.4.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/uid.git", + "reference": "2498e9f81b7baa206f44de583f2f48350b90142c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/uid/zipball/2498e9f81b7baa206f44de583f2f48350b90142c", + "reference": "2498e9f81b7baa206f44de583f2f48350b90142c", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/polyfill-uuid": "^1.15" + }, + "require-dev": { + "symfony/console": "^6.4|^7.0|^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Uid\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Grégoire Pineau", + "email": "lyrixx@lyrixx.info" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides an object-oriented API to generate and represent UIDs", + "homepage": "https://symfony.com", + "keywords": [ + "UID", + "ulid", + "uuid" + ], + "support": { + "source": "https://github.com/symfony/uid/tree/v7.4.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-09-25T11:02:55+00:00" + }, + { + "name": "symfony/var-dumper", + "version": "v7.4.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/var-dumper.git", + "reference": "7e99bebcb3f90d8721890f2963463280848cba92" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/7e99bebcb3f90d8721890f2963463280848cba92", + "reference": "7e99bebcb3f90d8721890f2963463280848cba92", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/polyfill-mbstring": "~1.0" + }, + "conflict": { + "symfony/console": "<6.4" + }, + "require-dev": { + "symfony/console": "^6.4|^7.0|^8.0", + "symfony/http-kernel": "^6.4|^7.0|^8.0", + "symfony/process": "^6.4|^7.0|^8.0", + "symfony/uid": "^6.4|^7.0|^8.0", + "twig/twig": "^3.12" + }, + "bin": [ + "Resources/bin/var-dump-server" + ], + "type": "library", + "autoload": { + "files": [ + "Resources/functions/dump.php" + ], + "psr-4": { + "Symfony\\Component\\VarDumper\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides mechanisms for walking through any arbitrary PHP variable", + "homepage": "https://symfony.com", + "keywords": [ + "debug", + "dump" + ], + "support": { + "source": "https://github.com/symfony/var-dumper/tree/v7.4.3" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-12-18T07:04:31+00:00" + }, + { + "name": "tijsverkoyen/css-to-inline-styles", + "version": "v2.4.0", + "source": { + "type": "git", + "url": "https://github.com/tijsverkoyen/CssToInlineStyles.git", + "reference": "f0292ccf0ec75843d65027214426b6b163b48b41" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/zipball/f0292ccf0ec75843d65027214426b6b163b48b41", + "reference": "f0292ccf0ec75843d65027214426b6b163b48b41", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-libxml": "*", + "php": "^7.4 || ^8.0", + "symfony/css-selector": "^5.4 || ^6.0 || ^7.0 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^2.0", + "phpstan/phpstan-phpunit": "^2.0", + "phpunit/phpunit": "^8.5.21 || ^9.5.10" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.x-dev" + } + }, + "autoload": { + "psr-4": { + "TijsVerkoyen\\CssToInlineStyles\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Tijs Verkoyen", + "email": "css_to_inline_styles@verkoyen.eu", + "role": "Developer" + } + ], + "description": "CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.", + "homepage": "https://github.com/tijsverkoyen/CssToInlineStyles", + "support": { + "issues": "https://github.com/tijsverkoyen/CssToInlineStyles/issues", + "source": "https://github.com/tijsverkoyen/CssToInlineStyles/tree/v2.4.0" + }, + "time": "2025-12-02T11:56:42+00:00" + }, + { + "name": "ueberdosis/tiptap-php", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/ueberdosis/tiptap-php.git", + "reference": "458194ad0f8b0cf616fecdf451a84f9a6c1f3056" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ueberdosis/tiptap-php/zipball/458194ad0f8b0cf616fecdf451a84f9a6c1f3056", + "reference": "458194ad0f8b0cf616fecdf451a84f9a6c1f3056", + "shasum": "" + }, + "require": { + "php": "^8.0", + "scrivo/highlight.php": "^9.18", + "spatie/shiki-php": "^2.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^3.5", + "pestphp/pest": "^1.21", + "phpunit/phpunit": "^9.5", + "vimeo/psalm": "^4.3" + }, + "type": "library", + "autoload": { + "psr-4": { + "Tiptap\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Hans Pagel", + "email": "humans@tiptap.dev", + "role": "Developer" + } + ], + "description": "A PHP package to work with Tiptap output", + "homepage": "https://github.com/ueberdosis/tiptap-php", + "keywords": [ + "prosemirror", + "tiptap", + "ueberdosis" + ], + "support": { + "issues": "https://github.com/ueberdosis/tiptap-php/issues", + "source": "https://github.com/ueberdosis/tiptap-php/tree/2.0.0" + }, + "funding": [ + { + "url": "https://tiptap.dev/pricing", + "type": "custom" + }, + { + "url": "https://github.com/ueberdosis", + "type": "github" + }, + { + "url": "https://opencollective.com/tiptap", + "type": "open_collective" + } + ], + "time": "2025-06-26T14:11:46+00:00" + }, + { + "name": "vlucas/phpdotenv", + "version": "v5.6.3", + "source": { + "type": "git", + "url": "https://github.com/vlucas/phpdotenv.git", + "reference": "955e7815d677a3eaa7075231212f2110983adecc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/955e7815d677a3eaa7075231212f2110983adecc", + "reference": "955e7815d677a3eaa7075231212f2110983adecc", + "shasum": "" + }, + "require": { + "ext-pcre": "*", + "graham-campbell/result-type": "^1.1.4", + "php": "^7.2.5 || ^8.0", + "phpoption/phpoption": "^1.9.5", + "symfony/polyfill-ctype": "^1.26", + "symfony/polyfill-mbstring": "^1.26", + "symfony/polyfill-php80": "^1.26" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "ext-filter": "*", + "phpunit/phpunit": "^8.5.34 || ^9.6.13 || ^10.4.2" + }, + "suggest": { + "ext-filter": "Required to use the boolean validator." + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + }, + "branch-alias": { + "dev-master": "5.6-dev" + } + }, + "autoload": { + "psr-4": { + "Dotenv\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Vance Lucas", + "email": "vance@vancelucas.com", + "homepage": "https://github.com/vlucas" + } + ], + "description": "Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.", + "keywords": [ + "dotenv", + "env", + "environment" + ], + "support": { + "issues": "https://github.com/vlucas/phpdotenv/issues", + "source": "https://github.com/vlucas/phpdotenv/tree/v5.6.3" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/vlucas/phpdotenv", + "type": "tidelift" + } + ], + "time": "2025-12-27T19:49:13+00:00" + }, + { + "name": "voku/portable-ascii", + "version": "2.0.3", + "source": { + "type": "git", + "url": "https://github.com/voku/portable-ascii.git", + "reference": "b1d923f88091c6bf09699efcd7c8a1b1bfd7351d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/voku/portable-ascii/zipball/b1d923f88091c6bf09699efcd7c8a1b1bfd7351d", + "reference": "b1d923f88091c6bf09699efcd7c8a1b1bfd7351d", + "shasum": "" + }, + "require": { + "php": ">=7.0.0" + }, + "require-dev": { + "phpunit/phpunit": "~6.0 || ~7.0 || ~9.0" + }, + "suggest": { + "ext-intl": "Use Intl for transliterator_transliterate() support" + }, + "type": "library", + "autoload": { + "psr-4": { + "voku\\": "src/voku/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Lars Moelleken", + "homepage": "https://www.moelleken.org/" + } + ], + "description": "Portable ASCII library - performance optimized (ascii) string functions for php.", + "homepage": "https://github.com/voku/portable-ascii", + "keywords": [ + "ascii", + "clean", + "php" + ], + "support": { + "issues": "https://github.com/voku/portable-ascii/issues", + "source": "https://github.com/voku/portable-ascii/tree/2.0.3" + }, + "funding": [ + { + "url": "https://www.paypal.me/moelleken", + "type": "custom" + }, + { + "url": "https://github.com/voku", + "type": "github" + }, + { + "url": "https://opencollective.com/portable-ascii", + "type": "open_collective" + }, + { + "url": "https://www.patreon.com/voku", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/voku/portable-ascii", + "type": "tidelift" + } + ], + "time": "2024-11-21T01:49:47+00:00" + } + ], + "packages-dev": [ + { + "name": "brianium/paratest", + "version": "v7.16.0", + "source": { + "type": "git", + "url": "https://github.com/paratestphp/paratest.git", + "reference": "a10878ed0fe0bbc2f57c980f7a08065338b970b6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/paratestphp/paratest/zipball/a10878ed0fe0bbc2f57c980f7a08065338b970b6", + "reference": "a10878ed0fe0bbc2f57c980f7a08065338b970b6", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-pcre": "*", + "ext-reflection": "*", + "ext-simplexml": "*", + "fidry/cpu-core-counter": "^1.3.0", + "jean85/pretty-package-versions": "^2.1.1", + "php": "~8.3.0 || ~8.4.0 || ~8.5.0", + "phpunit/php-code-coverage": "^12.5.1", + "phpunit/php-file-iterator": "^6", + "phpunit/php-timer": "^8", + "phpunit/phpunit": "^12.5.2", + "sebastian/environment": "^8.0.3", + "symfony/console": "^7.3.4 || ^8.0.0", + "symfony/process": "^7.3.4 || ^8.0.0" + }, + "require-dev": { + "doctrine/coding-standard": "^14.0.0", + "ext-pcntl": "*", + "ext-pcov": "*", + "ext-posix": "*", + "phpstan/phpstan": "^2.1.33", + "phpstan/phpstan-deprecation-rules": "^2.0.3", + "phpstan/phpstan-phpunit": "^2.0.10", + "phpstan/phpstan-strict-rules": "^2.0.7", + "symfony/filesystem": "^7.3.2 || ^8.0.0" + }, + "bin": [ + "bin/paratest", + "bin/paratest_for_phpstorm" + ], + "type": "library", + "autoload": { + "psr-4": { + "ParaTest\\": [ + "src/" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Brian Scaturro", + "email": "scaturrob@gmail.com", + "role": "Developer" + }, + { + "name": "Filippo Tessarotto", + "email": "zoeslam@gmail.com", + "role": "Developer" + } + ], + "description": "Parallel testing for PHP", + "homepage": "https://github.com/paratestphp/paratest", + "keywords": [ + "concurrent", + "parallel", + "phpunit", + "testing" + ], + "support": { + "issues": "https://github.com/paratestphp/paratest/issues", + "source": "https://github.com/paratestphp/paratest/tree/v7.16.0" + }, + "funding": [ + { + "url": "https://github.com/sponsors/Slamdunk", + "type": "github" + }, + { + "url": "https://paypal.me/filippotessarotto", + "type": "paypal" + } + ], + "time": "2025-12-09T20:03:26+00:00" + }, + { + "name": "driftingly/rector-laravel", + "version": "2.1.9", + "source": { + "type": "git", + "url": "https://github.com/driftingly/rector-laravel.git", + "reference": "aee9d4a1d489e7ec484fc79f33137f8ee051b3f7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/driftingly/rector-laravel/zipball/aee9d4a1d489e7ec484fc79f33137f8ee051b3f7", + "reference": "aee9d4a1d489e7ec484fc79f33137f8ee051b3f7", + "shasum": "" + }, + "require": { + "php": "^7.4 || ^8.0", + "rector/rector": "^2.2.7", + "webmozart/assert": "^1.11" + }, + "type": "rector-extension", + "autoload": { + "psr-4": { + "RectorLaravel\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Rector upgrades rules for Laravel Framework", + "support": { + "issues": "https://github.com/driftingly/rector-laravel/issues", + "source": "https://github.com/driftingly/rector-laravel/tree/2.1.9" + }, + "time": "2025-12-25T23:31:36+00:00" + }, + { + "name": "fakerphp/faker", + "version": "v1.24.1", + "source": { + "type": "git", + "url": "https://github.com/FakerPHP/Faker.git", + "reference": "e0ee18eb1e6dc3cda3ce9fd97e5a0689a88a64b5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/FakerPHP/Faker/zipball/e0ee18eb1e6dc3cda3ce9fd97e5a0689a88a64b5", + "reference": "e0ee18eb1e6dc3cda3ce9fd97e5a0689a88a64b5", + "shasum": "" + }, + "require": { + "php": "^7.4 || ^8.0", + "psr/container": "^1.0 || ^2.0", + "symfony/deprecation-contracts": "^2.2 || ^3.0" + }, + "conflict": { + "fzaninotto/faker": "*" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.4.1", + "doctrine/persistence": "^1.3 || ^2.0", + "ext-intl": "*", + "phpunit/phpunit": "^9.5.26", + "symfony/phpunit-bridge": "^5.4.16" + }, + "suggest": { + "doctrine/orm": "Required to use Faker\\ORM\\Doctrine", + "ext-curl": "Required by Faker\\Provider\\Image to download images.", + "ext-dom": "Required by Faker\\Provider\\HtmlLorem for generating random HTML.", + "ext-iconv": "Required by Faker\\Provider\\ru_RU\\Text::realText() for generating real Russian text.", + "ext-mbstring": "Required for multibyte Unicode string functionality." + }, + "type": "library", + "autoload": { + "psr-4": { + "Faker\\": "src/Faker/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "François Zaninotto" + } + ], + "description": "Faker is a PHP library that generates fake data for you.", + "keywords": [ + "data", + "faker", + "fixtures" + ], + "support": { + "issues": "https://github.com/FakerPHP/Faker/issues", + "source": "https://github.com/FakerPHP/Faker/tree/v1.24.1" + }, + "time": "2024-11-21T13:46:39+00:00" + }, + { + "name": "fidry/cpu-core-counter", + "version": "1.3.0", + "source": { + "type": "git", + "url": "https://github.com/theofidry/cpu-core-counter.git", + "reference": "db9508f7b1474469d9d3c53b86f817e344732678" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/theofidry/cpu-core-counter/zipball/db9508f7b1474469d9d3c53b86f817e344732678", + "reference": "db9508f7b1474469d9d3c53b86f817e344732678", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "require-dev": { + "fidry/makefile": "^0.2.0", + "fidry/php-cs-fixer-config": "^1.1.2", + "phpstan/extension-installer": "^1.2.0", + "phpstan/phpstan": "^2.0", + "phpstan/phpstan-deprecation-rules": "^2.0.0", + "phpstan/phpstan-phpunit": "^2.0", + "phpstan/phpstan-strict-rules": "^2.0", + "phpunit/phpunit": "^8.5.31 || ^9.5.26", + "webmozarts/strict-phpunit": "^7.5" + }, + "type": "library", + "autoload": { + "psr-4": { + "Fidry\\CpuCoreCounter\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Théo FIDRY", + "email": "theo.fidry@gmail.com" + } + ], + "description": "Tiny utility to get the number of CPU cores.", + "keywords": [ + "CPU", + "core" + ], + "support": { + "issues": "https://github.com/theofidry/cpu-core-counter/issues", + "source": "https://github.com/theofidry/cpu-core-counter/tree/1.3.0" + }, + "funding": [ + { + "url": "https://github.com/theofidry", + "type": "github" + } + ], + "time": "2025-08-14T07:29:31+00:00" + }, + { + "name": "filament/upgrade", + "version": "v4.5.1", + "source": { + "type": "git", + "url": "https://github.com/filamentphp/upgrade.git", + "reference": "31b03a80a99e203ba0b7bfbfb9566974e0346be7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/filamentphp/upgrade/zipball/31b03a80a99e203ba0b7bfbfb9566974e0346be7", + "reference": "31b03a80a99e203ba0b7bfbfb9566974e0346be7", + "shasum": "" + }, + "require": { + "nunomaduro/termwind": "^2.0", + "php": "^8.2", + "rector/rector": "^2.0" + }, + "bin": [ + "bin/filament-v4" + ], + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Filament\\Upgrade\\UpgradeServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Filament\\Upgrade\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Upgrade Filament v3 code to Filament v4.", + "homepage": "https://github.com/filamentphp/filament", + "support": { + "issues": "https://github.com/filamentphp/filament/issues", + "source": "https://github.com/filamentphp/filament" + }, + "time": "2025-11-28T11:21:29+00:00" + }, + { + "name": "filp/whoops", + "version": "2.18.4", + "source": { + "type": "git", + "url": "https://github.com/filp/whoops.git", + "reference": "d2102955e48b9fd9ab24280a7ad12ed552752c4d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/filp/whoops/zipball/d2102955e48b9fd9ab24280a7ad12ed552752c4d", + "reference": "d2102955e48b9fd9ab24280a7ad12ed552752c4d", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0", + "psr/log": "^1.0.1 || ^2.0 || ^3.0" + }, + "require-dev": { + "mockery/mockery": "^1.0", + "phpunit/phpunit": "^7.5.20 || ^8.5.8 || ^9.3.3", + "symfony/var-dumper": "^4.0 || ^5.0" + }, + "suggest": { + "symfony/var-dumper": "Pretty print complex values better with var-dumper available", + "whoops/soap": "Formats errors as SOAP responses" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.7-dev" + } + }, + "autoload": { + "psr-4": { + "Whoops\\": "src/Whoops/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Filipe Dobreira", + "homepage": "https://github.com/filp", + "role": "Developer" + } + ], + "description": "php error handling for cool kids", + "homepage": "https://filp.github.io/whoops/", + "keywords": [ + "error", + "exception", + "handling", + "library", + "throwable", + "whoops" + ], + "support": { + "issues": "https://github.com/filp/whoops/issues", + "source": "https://github.com/filp/whoops/tree/2.18.4" + }, + "funding": [ + { + "url": "https://github.com/denis-sokolov", + "type": "github" + } + ], + "time": "2025-08-08T12:00:00+00:00" + }, + { + "name": "hamcrest/hamcrest-php", + "version": "v2.1.1", + "source": { + "type": "git", + "url": "https://github.com/hamcrest/hamcrest-php.git", + "reference": "f8b1c0173b22fa6ec77a81fe63e5b01eba7e6487" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/hamcrest/hamcrest-php/zipball/f8b1c0173b22fa6ec77a81fe63e5b01eba7e6487", + "reference": "f8b1c0173b22fa6ec77a81fe63e5b01eba7e6487", + "shasum": "" + }, + "require": { + "php": "^7.4|^8.0" + }, + "replace": { + "cordoval/hamcrest-php": "*", + "davedevelopment/hamcrest-php": "*", + "kodova/hamcrest-php": "*" + }, + "require-dev": { + "phpunit/php-file-iterator": "^1.4 || ^2.0 || ^3.0", + "phpunit/phpunit": "^4.8.36 || ^5.7 || ^6.5 || ^7.0 || ^8.0 || ^9.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.1-dev" + } + }, + "autoload": { + "classmap": [ + "hamcrest" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "description": "This is the PHP port of Hamcrest Matchers", + "keywords": [ + "test" + ], + "support": { + "issues": "https://github.com/hamcrest/hamcrest-php/issues", + "source": "https://github.com/hamcrest/hamcrest-php/tree/v2.1.1" + }, + "time": "2025-04-30T06:54:44+00:00" + }, + { + "name": "jean85/pretty-package-versions", + "version": "2.1.1", + "source": { + "type": "git", + "url": "https://github.com/Jean85/pretty-package-versions.git", + "reference": "4d7aa5dab42e2a76d99559706022885de0e18e1a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Jean85/pretty-package-versions/zipball/4d7aa5dab42e2a76d99559706022885de0e18e1a", + "reference": "4d7aa5dab42e2a76d99559706022885de0e18e1a", + "shasum": "" + }, + "require": { + "composer-runtime-api": "^2.1.0", + "php": "^7.4|^8.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^3.2", + "jean85/composer-provided-replaced-stub-package": "^1.0", + "phpstan/phpstan": "^2.0", + "phpunit/phpunit": "^7.5|^8.5|^9.6", + "rector/rector": "^2.0", + "vimeo/psalm": "^4.3 || ^5.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Jean85\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Alessandro Lai", + "email": "alessandro.lai85@gmail.com" + } + ], + "description": "A library to get pretty versions strings of installed dependencies", + "keywords": [ + "composer", + "package", + "release", + "versions" + ], + "support": { + "issues": "https://github.com/Jean85/pretty-package-versions/issues", + "source": "https://github.com/Jean85/pretty-package-versions/tree/2.1.1" + }, + "time": "2025-03-19T14:43:43+00:00" + }, + { + "name": "laravel/pint", + "version": "v1.27.0", + "source": { + "type": "git", + "url": "https://github.com/laravel/pint.git", + "reference": "c67b4195b75491e4dfc6b00b1c78b68d86f54c90" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/pint/zipball/c67b4195b75491e4dfc6b00b1c78b68d86f54c90", + "reference": "c67b4195b75491e4dfc6b00b1c78b68d86f54c90", + "shasum": "" + }, + "require": { + "ext-json": "*", + "ext-mbstring": "*", + "ext-tokenizer": "*", + "ext-xml": "*", + "php": "^8.2.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^3.92.4", + "illuminate/view": "^12.44.0", + "larastan/larastan": "^3.8.1", + "laravel-zero/framework": "^12.0.4", + "mockery/mockery": "^1.6.12", + "nunomaduro/termwind": "^2.3.3", + "pestphp/pest": "^3.8.4" + }, + "bin": [ + "builds/pint" + ], + "type": "project", + "autoload": { + "psr-4": { + "App\\": "app/", + "Database\\Seeders\\": "database/seeders/", + "Database\\Factories\\": "database/factories/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" + } + ], + "description": "An opinionated code formatter for PHP.", + "homepage": "https://laravel.com", + "keywords": [ + "dev", + "format", + "formatter", + "lint", + "linter", + "php" + ], + "support": { + "issues": "https://github.com/laravel/pint/issues", + "source": "https://github.com/laravel/pint" + }, + "time": "2026-01-05T16:49:17+00:00" + }, + { + "name": "laravel/sail", + "version": "v1.52.0", + "source": { + "type": "git", + "url": "https://github.com/laravel/sail.git", + "reference": "64ac7d8abb2dbcf2b76e61289451bae79066b0b3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/sail/zipball/64ac7d8abb2dbcf2b76e61289451bae79066b0b3", + "reference": "64ac7d8abb2dbcf2b76e61289451bae79066b0b3", + "shasum": "" + }, + "require": { + "illuminate/console": "^9.52.16|^10.0|^11.0|^12.0", + "illuminate/contracts": "^9.52.16|^10.0|^11.0|^12.0", + "illuminate/support": "^9.52.16|^10.0|^11.0|^12.0", + "php": "^8.0", + "symfony/console": "^6.0|^7.0", + "symfony/yaml": "^6.0|^7.0" + }, + "require-dev": { + "orchestra/testbench": "^7.0|^8.0|^9.0|^10.0", + "phpstan/phpstan": "^2.0" + }, + "bin": [ + "bin/sail" + ], + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Laravel\\Sail\\SailServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Laravel\\Sail\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "Docker files for running a basic Laravel application.", + "keywords": [ + "docker", + "laravel" + ], + "support": { + "issues": "https://github.com/laravel/sail/issues", + "source": "https://github.com/laravel/sail" + }, + "time": "2026-01-01T02:46:03+00:00" + }, + { + "name": "mockery/mockery", + "version": "1.6.12", + "source": { + "type": "git", + "url": "https://github.com/mockery/mockery.git", + "reference": "1f4efdd7d3beafe9807b08156dfcb176d18f1699" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/mockery/mockery/zipball/1f4efdd7d3beafe9807b08156dfcb176d18f1699", + "reference": "1f4efdd7d3beafe9807b08156dfcb176d18f1699", + "shasum": "" + }, + "require": { + "hamcrest/hamcrest-php": "^2.0.1", + "lib-pcre": ">=7.0", + "php": ">=7.3" + }, + "conflict": { + "phpunit/phpunit": "<8.0" + }, + "require-dev": { + "phpunit/phpunit": "^8.5 || ^9.6.17", + "symplify/easy-coding-standard": "^12.1.14" + }, + "type": "library", + "autoload": { + "files": [ + "library/helpers.php", + "library/Mockery.php" + ], + "psr-4": { + "Mockery\\": "library/Mockery" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Pádraic Brady", + "email": "padraic.brady@gmail.com", + "homepage": "https://github.com/padraic", + "role": "Author" + }, + { + "name": "Dave Marshall", + "email": "dave.marshall@atstsolutions.co.uk", + "homepage": "https://davedevelopment.co.uk", + "role": "Developer" + }, + { + "name": "Nathanael Esayeas", + "email": "nathanael.esayeas@protonmail.com", + "homepage": "https://github.com/ghostwriter", + "role": "Lead Developer" + } + ], + "description": "Mockery is a simple yet flexible PHP mock object framework", + "homepage": "https://github.com/mockery/mockery", + "keywords": [ + "BDD", + "TDD", + "library", + "mock", + "mock objects", + "mockery", + "stub", + "test", + "test double", + "testing" + ], + "support": { + "docs": "https://docs.mockery.io/", + "issues": "https://github.com/mockery/mockery/issues", + "rss": "https://github.com/mockery/mockery/releases.atom", + "security": "https://github.com/mockery/mockery/security/advisories", + "source": "https://github.com/mockery/mockery" + }, + "time": "2024-05-16T03:13:13+00:00" + }, + { + "name": "myclabs/deep-copy", + "version": "1.13.4", + "source": { + "type": "git", + "url": "https://github.com/myclabs/DeepCopy.git", + "reference": "07d290f0c47959fd5eed98c95ee5602db07e0b6a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/07d290f0c47959fd5eed98c95ee5602db07e0b6a", + "reference": "07d290f0c47959fd5eed98c95ee5602db07e0b6a", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "conflict": { + "doctrine/collections": "<1.6.8", + "doctrine/common": "<2.13.3 || >=3 <3.2.2" + }, + "require-dev": { + "doctrine/collections": "^1.6.8", + "doctrine/common": "^2.13.3 || ^3.2.2", + "phpspec/prophecy": "^1.10", + "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13" + }, + "type": "library", + "autoload": { + "files": [ + "src/DeepCopy/deep_copy.php" + ], + "psr-4": { + "DeepCopy\\": "src/DeepCopy/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Create deep copies (clones) of your objects", + "keywords": [ + "clone", + "copy", + "duplicate", + "object", + "object graph" + ], + "support": { + "issues": "https://github.com/myclabs/DeepCopy/issues", + "source": "https://github.com/myclabs/DeepCopy/tree/1.13.4" + }, + "funding": [ + { + "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", + "type": "tidelift" + } + ], + "time": "2025-08-01T08:46:24+00:00" + }, + { + "name": "nunomaduro/collision", + "version": "v8.8.3", + "source": { + "type": "git", + "url": "https://github.com/nunomaduro/collision.git", + "reference": "1dc9e88d105699d0fee8bb18890f41b274f6b4c4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nunomaduro/collision/zipball/1dc9e88d105699d0fee8bb18890f41b274f6b4c4", + "reference": "1dc9e88d105699d0fee8bb18890f41b274f6b4c4", + "shasum": "" + }, + "require": { + "filp/whoops": "^2.18.1", + "nunomaduro/termwind": "^2.3.1", + "php": "^8.2.0", + "symfony/console": "^7.3.0" + }, + "conflict": { + "laravel/framework": "<11.44.2 || >=13.0.0", + "phpunit/phpunit": "<11.5.15 || >=13.0.0" + }, + "require-dev": { + "brianium/paratest": "^7.8.3", + "larastan/larastan": "^3.4.2", + "laravel/framework": "^11.44.2 || ^12.18", + "laravel/pint": "^1.22.1", + "laravel/sail": "^1.43.1", + "laravel/sanctum": "^4.1.1", + "laravel/tinker": "^2.10.1", + "orchestra/testbench-core": "^9.12.0 || ^10.4", + "pestphp/pest": "^3.8.2 || ^4.0.0", + "sebastian/environment": "^7.2.1 || ^8.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "NunoMaduro\\Collision\\Adapters\\Laravel\\CollisionServiceProvider" + ] + }, + "branch-alias": { + "dev-8.x": "8.x-dev" + } + }, + "autoload": { + "files": [ + "./src/Adapters/Phpunit/Autoload.php" + ], + "psr-4": { + "NunoMaduro\\Collision\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" + } + ], + "description": "Cli error handling for console/command-line PHP applications.", + "keywords": [ + "artisan", + "cli", + "command-line", + "console", + "dev", + "error", + "handling", + "laravel", + "laravel-zero", + "php", + "symfony" + ], + "support": { + "issues": "https://github.com/nunomaduro/collision/issues", + "source": "https://github.com/nunomaduro/collision" + }, + "funding": [ + { + "url": "https://www.paypal.com/paypalme/enunomaduro", + "type": "custom" + }, + { + "url": "https://github.com/nunomaduro", + "type": "github" + }, + { + "url": "https://www.patreon.com/nunomaduro", + "type": "patreon" + } + ], + "time": "2025-11-20T02:55:25+00:00" + }, + { + "name": "pestphp/pest", + "version": "v4.3.1", + "source": { + "type": "git", + "url": "https://github.com/pestphp/pest.git", + "reference": "bc57a84e77afd4544ff9643a6858f68d05aeab96" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/pestphp/pest/zipball/bc57a84e77afd4544ff9643a6858f68d05aeab96", + "reference": "bc57a84e77afd4544ff9643a6858f68d05aeab96", + "shasum": "" + }, + "require": { + "brianium/paratest": "^7.16.0", + "nunomaduro/collision": "^8.8.3", + "nunomaduro/termwind": "^2.3.3", + "pestphp/pest-plugin": "^4.0.0", + "pestphp/pest-plugin-arch": "^4.0.0", + "pestphp/pest-plugin-mutate": "^4.0.1", + "pestphp/pest-plugin-profanity": "^4.2.1", + "php": "^8.3.0", + "phpunit/phpunit": "^12.5.4", + "symfony/process": "^7.4.3|^8.0.0" + }, + "conflict": { + "filp/whoops": "<2.18.3", + "phpunit/phpunit": ">12.5.4", + "sebastian/exporter": "<7.0.0", + "webmozart/assert": "<1.11.0" + }, + "require-dev": { + "pestphp/pest-dev-tools": "^4.0.0", + "pestphp/pest-plugin-browser": "^4.1.1", + "pestphp/pest-plugin-type-coverage": "^4.0.3", + "psy/psysh": "^0.12.18" + }, + "bin": [ + "bin/pest" + ], + "type": "library", + "extra": { + "pest": { + "plugins": [ + "Pest\\Mutate\\Plugins\\Mutate", + "Pest\\Plugins\\Configuration", + "Pest\\Plugins\\Bail", + "Pest\\Plugins\\Cache", + "Pest\\Plugins\\Coverage", + "Pest\\Plugins\\Init", + "Pest\\Plugins\\Environment", + "Pest\\Plugins\\Help", + "Pest\\Plugins\\Memory", + "Pest\\Plugins\\Only", + "Pest\\Plugins\\Printer", + "Pest\\Plugins\\ProcessIsolation", + "Pest\\Plugins\\Profile", + "Pest\\Plugins\\Retry", + "Pest\\Plugins\\Snapshot", + "Pest\\Plugins\\Verbose", + "Pest\\Plugins\\Version", + "Pest\\Plugins\\Shard", + "Pest\\Plugins\\Parallel" + ] + }, + "phpstan": { + "includes": [ + "extension.neon" + ] + } + }, + "autoload": { + "files": [ + "src/Functions.php", + "src/Pest.php" + ], + "psr-4": { + "Pest\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" + } + ], + "description": "The elegant PHP Testing Framework.", + "keywords": [ + "framework", + "pest", + "php", + "test", + "testing", + "unit" + ], + "support": { + "issues": "https://github.com/pestphp/pest/issues", + "source": "https://github.com/pestphp/pest/tree/v4.3.1" + }, + "funding": [ + { + "url": "https://www.paypal.com/paypalme/enunomaduro", + "type": "custom" + }, + { + "url": "https://github.com/nunomaduro", + "type": "github" + } + ], + "time": "2026-01-04T16:29:59+00:00" + }, + { + "name": "pestphp/pest-plugin", + "version": "v4.0.0", + "source": { + "type": "git", + "url": "https://github.com/pestphp/pest-plugin.git", + "reference": "9d4b93d7f73d3f9c3189bb22c220fef271cdf568" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/pestphp/pest-plugin/zipball/9d4b93d7f73d3f9c3189bb22c220fef271cdf568", + "reference": "9d4b93d7f73d3f9c3189bb22c220fef271cdf568", + "shasum": "" + }, + "require": { + "composer-plugin-api": "^2.0.0", + "composer-runtime-api": "^2.2.2", + "php": "^8.3" + }, + "conflict": { + "pestphp/pest": "<4.0.0" + }, + "require-dev": { + "composer/composer": "^2.8.10", + "pestphp/pest": "^4.0.0", + "pestphp/pest-dev-tools": "^4.0.0" + }, + "type": "composer-plugin", + "extra": { + "class": "Pest\\Plugin\\Manager" + }, + "autoload": { + "psr-4": { + "Pest\\Plugin\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "The Pest plugin manager", + "keywords": [ + "framework", + "manager", + "pest", + "php", + "plugin", + "test", + "testing", + "unit" + ], + "support": { + "source": "https://github.com/pestphp/pest-plugin/tree/v4.0.0" + }, + "funding": [ + { + "url": "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=66BYDWAT92N6L", + "type": "custom" + }, + { + "url": "https://github.com/nunomaduro", + "type": "github" + }, + { + "url": "https://www.patreon.com/nunomaduro", + "type": "patreon" + } + ], + "time": "2025-08-20T12:35:58+00:00" + }, + { + "name": "pestphp/pest-plugin-arch", + "version": "v4.0.0", + "source": { + "type": "git", + "url": "https://github.com/pestphp/pest-plugin-arch.git", + "reference": "25bb17e37920ccc35cbbcda3b00d596aadf3e58d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/pestphp/pest-plugin-arch/zipball/25bb17e37920ccc35cbbcda3b00d596aadf3e58d", + "reference": "25bb17e37920ccc35cbbcda3b00d596aadf3e58d", + "shasum": "" + }, + "require": { + "pestphp/pest-plugin": "^4.0.0", + "php": "^8.3", + "ta-tikoma/phpunit-architecture-test": "^0.8.5" + }, + "require-dev": { + "pestphp/pest": "^4.0.0", + "pestphp/pest-dev-tools": "^4.0.0" + }, + "type": "library", + "extra": { + "pest": { + "plugins": [ + "Pest\\Arch\\Plugin" + ] + } + }, + "autoload": { + "files": [ + "src/Autoload.php" + ], + "psr-4": { + "Pest\\Arch\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "The Arch plugin for Pest PHP.", + "keywords": [ + "arch", + "architecture", + "framework", + "pest", + "php", + "plugin", + "test", + "testing", + "unit" + ], + "support": { + "source": "https://github.com/pestphp/pest-plugin-arch/tree/v4.0.0" + }, + "funding": [ + { + "url": "https://www.paypal.com/paypalme/enunomaduro", + "type": "custom" + }, + { + "url": "https://github.com/nunomaduro", + "type": "github" + } + ], + "time": "2025-08-20T13:10:51+00:00" + }, + { + "name": "pestphp/pest-plugin-mutate", + "version": "v4.0.1", + "source": { + "type": "git", + "url": "https://github.com/pestphp/pest-plugin-mutate.git", + "reference": "d9b32b60b2385e1688a68cc227594738ec26d96c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/pestphp/pest-plugin-mutate/zipball/d9b32b60b2385e1688a68cc227594738ec26d96c", + "reference": "d9b32b60b2385e1688a68cc227594738ec26d96c", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^5.6.1", + "pestphp/pest-plugin": "^4.0.0", + "php": "^8.3", + "psr/simple-cache": "^3.0.0" + }, + "require-dev": { + "pestphp/pest": "^4.0.0", + "pestphp/pest-dev-tools": "^4.0.0", + "pestphp/pest-plugin-type-coverage": "^4.0.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Pest\\Mutate\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" + }, + { + "name": "Sandro Gehri", + "email": "sandrogehri@gmail.com" + } + ], + "description": "Mutates your code to find untested cases", + "keywords": [ + "framework", + "mutate", + "mutation", + "pest", + "php", + "plugin", + "test", + "testing", + "unit" + ], + "support": { + "source": "https://github.com/pestphp/pest-plugin-mutate/tree/v4.0.1" + }, + "funding": [ + { + "url": "https://www.paypal.com/paypalme/enunomaduro", + "type": "custom" + }, + { + "url": "https://github.com/gehrisandro", + "type": "github" + }, + { + "url": "https://github.com/nunomaduro", + "type": "github" + } + ], + "time": "2025-08-21T20:19:25+00:00" + }, + { + "name": "pestphp/pest-plugin-profanity", + "version": "v4.2.1", + "source": { + "type": "git", + "url": "https://github.com/pestphp/pest-plugin-profanity.git", + "reference": "343cfa6f3564b7e35df0ebb77b7fa97039f72b27" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/pestphp/pest-plugin-profanity/zipball/343cfa6f3564b7e35df0ebb77b7fa97039f72b27", + "reference": "343cfa6f3564b7e35df0ebb77b7fa97039f72b27", + "shasum": "" + }, + "require": { + "pestphp/pest-plugin": "^4.0.0", + "php": "^8.3" + }, + "require-dev": { + "faissaloux/pest-plugin-inside": "^1.9", + "pestphp/pest": "^4.0.0", + "pestphp/pest-dev-tools": "^4.0.0" + }, + "type": "library", + "extra": { + "pest": { + "plugins": [ + "Pest\\Profanity\\Plugin" + ] + } + }, + "autoload": { + "psr-4": { + "Pest\\Profanity\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "The Pest Profanity Plugin", + "keywords": [ + "framework", + "pest", + "php", + "plugin", + "profanity", + "test", + "testing", + "unit" + ], + "support": { + "source": "https://github.com/pestphp/pest-plugin-profanity/tree/v4.2.1" + }, + "time": "2025-12-08T00:13:17+00:00" + }, + { + "name": "phar-io/manifest", + "version": "2.0.4", + "source": { + "type": "git", + "url": "https://github.com/phar-io/manifest.git", + "reference": "54750ef60c58e43759730615a392c31c80e23176" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/manifest/zipball/54750ef60c58e43759730615a392c31c80e23176", + "reference": "54750ef60c58e43759730615a392c31c80e23176", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-libxml": "*", + "ext-phar": "*", + "ext-xmlwriter": "*", + "phar-io/version": "^3.0.1", + "php": "^7.2 || ^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" + } + ], + "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", + "support": { + "issues": "https://github.com/phar-io/manifest/issues", + "source": "https://github.com/phar-io/manifest/tree/2.0.4" + }, + "funding": [ + { + "url": "https://github.com/theseer", + "type": "github" + } + ], + "time": "2024-03-03T12:33:53+00:00" + }, + { + "name": "phar-io/version", + "version": "3.2.1", + "source": { + "type": "git", + "url": "https://github.com/phar-io/version.git", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/version/zipball/4f7fd7836c6f332bb2933569e566a0d6c4cbed74", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" + } + ], + "description": "Library for handling version information and constraints", + "support": { + "issues": "https://github.com/phar-io/version/issues", + "source": "https://github.com/phar-io/version/tree/3.2.1" + }, + "time": "2022-02-21T01:04:05+00:00" + }, + { + "name": "php-di/invoker", + "version": "2.3.7", + "source": { + "type": "git", + "url": "https://github.com/PHP-DI/Invoker.git", + "reference": "3c1ddfdef181431fbc4be83378f6d036d59e81e1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHP-DI/Invoker/zipball/3c1ddfdef181431fbc4be83378f6d036d59e81e1", + "reference": "3c1ddfdef181431fbc4be83378f6d036d59e81e1", + "shasum": "" + }, + "require": { + "php": ">=7.3", + "psr/container": "^1.0|^2.0" + }, + "require-dev": { + "athletic/athletic": "~0.1.8", + "mnapoli/hard-mode": "~0.3.0", + "phpunit/phpunit": "^9.0 || ^10 || ^11 || ^12" + }, + "type": "library", + "autoload": { + "psr-4": { + "Invoker\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Generic and extensible callable invoker", + "homepage": "https://github.com/PHP-DI/Invoker", + "keywords": [ + "callable", + "dependency", + "dependency-injection", + "injection", + "invoke", + "invoker" + ], + "support": { + "issues": "https://github.com/PHP-DI/Invoker/issues", + "source": "https://github.com/PHP-DI/Invoker/tree/2.3.7" + }, + "funding": [ + { + "url": "https://github.com/mnapoli", + "type": "github" + } + ], + "time": "2025-08-30T10:22:22+00:00" + }, + { + "name": "php-di/php-di", + "version": "7.1.1", + "source": { + "type": "git", + "url": "https://github.com/PHP-DI/PHP-DI.git", + "reference": "f88054cc052e40dbe7b383c8817c19442d480352" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHP-DI/PHP-DI/zipball/f88054cc052e40dbe7b383c8817c19442d480352", + "reference": "f88054cc052e40dbe7b383c8817c19442d480352", + "shasum": "" + }, + "require": { + "laravel/serializable-closure": "^1.0 || ^2.0", + "php": ">=8.0", + "php-di/invoker": "^2.0", + "psr/container": "^1.1 || ^2.0" + }, + "provide": { + "psr/container-implementation": "^1.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^3", + "friendsofphp/proxy-manager-lts": "^1", + "mnapoli/phpunit-easymock": "^1.3", + "phpunit/phpunit": "^9.6 || ^10 || ^11", + "vimeo/psalm": "^5|^6" + }, + "suggest": { + "friendsofphp/proxy-manager-lts": "Install it if you want to use lazy injection (version ^1)" + }, + "type": "library", + "autoload": { + "files": [ + "src/functions.php" + ], + "psr-4": { + "DI\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "The dependency injection container for humans", + "homepage": "https://php-di.org/", + "keywords": [ + "PSR-11", + "container", + "container-interop", + "dependency injection", + "di", + "ioc", + "psr11" + ], + "support": { + "issues": "https://github.com/PHP-DI/PHP-DI/issues", + "source": "https://github.com/PHP-DI/PHP-DI/tree/7.1.1" + }, + "funding": [ + { + "url": "https://github.com/mnapoli", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/php-di/php-di", + "type": "tidelift" + } + ], + "time": "2025-08-16T11:10:48+00:00" + }, + { + "name": "phpdocumentor/reflection-common", + "version": "2.2.0", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/ReflectionCommon.git", + "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/1d01c49d4ed62f25aa84a747ad35d5a16924662b", + "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-2.x": "2.x-dev" + } + }, + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jaap van Otterdijk", + "email": "opensource@ijaap.nl" + } + ], + "description": "Common reflection classes used by phpdocumentor to reflect the code structure", + "homepage": "http://www.phpdoc.org", + "keywords": [ + "FQSEN", + "phpDocumentor", + "phpdoc", + "reflection", + "static analysis" + ], + "support": { + "issues": "https://github.com/phpDocumentor/ReflectionCommon/issues", + "source": "https://github.com/phpDocumentor/ReflectionCommon/tree/2.x" + }, + "time": "2020-06-27T09:03:43+00:00" + }, + { + "name": "phpdocumentor/reflection-docblock", + "version": "5.6.6", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", + "reference": "5cee1d3dfc2d2aa6599834520911d246f656bcb8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/5cee1d3dfc2d2aa6599834520911d246f656bcb8", + "reference": "5cee1d3dfc2d2aa6599834520911d246f656bcb8", + "shasum": "" + }, + "require": { + "doctrine/deprecations": "^1.1", + "ext-filter": "*", + "php": "^7.4 || ^8.0", + "phpdocumentor/reflection-common": "^2.2", + "phpdocumentor/type-resolver": "^1.7", + "phpstan/phpdoc-parser": "^1.7|^2.0", + "webmozart/assert": "^1.9.1 || ^2" + }, + "require-dev": { + "mockery/mockery": "~1.3.5 || ~1.6.0", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan": "^1.8", + "phpstan/phpstan-mockery": "^1.1", + "phpstan/phpstan-webmozart-assert": "^1.2", + "phpunit/phpunit": "^9.5", + "psalm/phar": "^5.26" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.x-dev" + } + }, + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mike van Riel", + "email": "me@mikevanriel.com" + }, + { + "name": "Jaap van Otterdijk", + "email": "opensource@ijaap.nl" + } + ], + "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", + "support": { + "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues", + "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/5.6.6" + }, + "time": "2025-12-22T21:13:58+00:00" + }, + { + "name": "phpdocumentor/type-resolver", + "version": "1.12.0", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/TypeResolver.git", + "reference": "92a98ada2b93d9b201a613cb5a33584dde25f195" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/92a98ada2b93d9b201a613cb5a33584dde25f195", + "reference": "92a98ada2b93d9b201a613cb5a33584dde25f195", + "shasum": "" + }, + "require": { + "doctrine/deprecations": "^1.0", + "php": "^7.3 || ^8.0", + "phpdocumentor/reflection-common": "^2.0", + "phpstan/phpdoc-parser": "^1.18|^2.0" + }, + "require-dev": { + "ext-tokenizer": "*", + "phpbench/phpbench": "^1.2", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan": "^1.8", + "phpstan/phpstan-phpunit": "^1.1", + "phpunit/phpunit": "^9.5", + "rector/rector": "^0.13.9", + "vimeo/psalm": "^4.25" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-1.x": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mike van Riel", + "email": "me@mikevanriel.com" + } + ], + "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", + "support": { + "issues": "https://github.com/phpDocumentor/TypeResolver/issues", + "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.12.0" + }, + "time": "2025-11-21T15:09:14+00:00" + }, + { + "name": "phpstan/phpdoc-parser", + "version": "2.3.0", + "source": { + "type": "git", + "url": "https://github.com/phpstan/phpdoc-parser.git", + "reference": "1e0cd5370df5dd2e556a36b9c62f62e555870495" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/1e0cd5370df5dd2e556a36b9c62f62e555870495", + "reference": "1e0cd5370df5dd2e556a36b9c62f62e555870495", + "shasum": "" + }, + "require": { + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "doctrine/annotations": "^2.0", + "nikic/php-parser": "^5.3.0", + "php-parallel-lint/php-parallel-lint": "^1.2", + "phpstan/extension-installer": "^1.0", + "phpstan/phpstan": "^2.0", + "phpstan/phpstan-phpunit": "^2.0", + "phpstan/phpstan-strict-rules": "^2.0", + "phpunit/phpunit": "^9.6", + "symfony/process": "^5.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "PHPStan\\PhpDocParser\\": [ + "src/" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "PHPDoc parser with support for nullable, intersection and generic types", + "support": { + "issues": "https://github.com/phpstan/phpdoc-parser/issues", + "source": "https://github.com/phpstan/phpdoc-parser/tree/2.3.0" + }, + "time": "2025-08-30T15:50:23+00:00" + }, + { + "name": "phpstan/phpstan", + "version": "2.1.33", + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/9e800e6bee7d5bd02784d4c6069b48032d16224f", + "reference": "9e800e6bee7d5bd02784d4c6069b48032d16224f", + "shasum": "" + }, + "require": { + "php": "^7.4|^8.0" + }, + "conflict": { + "phpstan/phpstan-shim": "*" + }, + "bin": [ + "phpstan", + "phpstan.phar" + ], + "type": "library", + "autoload": { + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "PHPStan - PHP Static Analysis Tool", + "keywords": [ + "dev", + "static analysis" + ], + "support": { + "docs": "https://phpstan.org/user-guide/getting-started", + "forum": "https://github.com/phpstan/phpstan/discussions", + "issues": "https://github.com/phpstan/phpstan/issues", + "security": "https://github.com/phpstan/phpstan/security/policy", + "source": "https://github.com/phpstan/phpstan-src" + }, + "funding": [ + { + "url": "https://github.com/ondrejmirtes", + "type": "github" + }, + { + "url": "https://github.com/phpstan", + "type": "github" + } + ], + "time": "2025-12-05T10:24:31+00:00" + }, + { + "name": "phpunit/php-code-coverage", + "version": "12.5.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "4a9739b51cbcb355f6e95659612f92e282a7077b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/4a9739b51cbcb355f6e95659612f92e282a7077b", + "reference": "4a9739b51cbcb355f6e95659612f92e282a7077b", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-libxml": "*", + "ext-xmlwriter": "*", + "nikic/php-parser": "^5.7.0", + "php": ">=8.3", + "phpunit/php-file-iterator": "^6.0", + "phpunit/php-text-template": "^5.0", + "sebastian/complexity": "^5.0", + "sebastian/environment": "^8.0.3", + "sebastian/lines-of-code": "^4.0", + "sebastian/version": "^6.0", + "theseer/tokenizer": "^2.0.1" + }, + "require-dev": { + "phpunit/phpunit": "^12.5.1" + }, + "suggest": { + "ext-pcov": "PHP extension that provides line coverage", + "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "12.5.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", + "homepage": "https://github.com/sebastianbergmann/php-code-coverage", + "keywords": [ + "coverage", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", + "security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy", + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/12.5.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/php-code-coverage", + "type": "tidelift" + } + ], + "time": "2025-12-24T07:03:04+00:00" + }, + { + "name": "phpunit/php-file-iterator", + "version": "6.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-file-iterator.git", + "reference": "961bc913d42fe24a257bfff826a5068079ac7782" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/961bc913d42fe24a257bfff826a5068079ac7782", + "reference": "961bc913d42fe24a257bfff826a5068079ac7782", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "6.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "FilterIterator implementation that filters files based on a list of suffixes.", + "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", + "keywords": [ + "filesystem", + "iterator" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", + "security": "https://github.com/sebastianbergmann/php-file-iterator/security/policy", + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/6.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:58:37+00:00" + }, + { + "name": "phpunit/php-invoker", + "version": "6.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-invoker.git", + "reference": "12b54e689b07a25a9b41e57736dfab6ec9ae5406" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/12b54e689b07a25a9b41e57736dfab6ec9ae5406", + "reference": "12b54e689b07a25a9b41e57736dfab6ec9ae5406", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "ext-pcntl": "*", + "phpunit/phpunit": "^12.0" + }, + "suggest": { + "ext-pcntl": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "6.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Invoke callables with a timeout", + "homepage": "https://github.com/sebastianbergmann/php-invoker/", + "keywords": [ + "process" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-invoker/issues", + "security": "https://github.com/sebastianbergmann/php-invoker/security/policy", + "source": "https://github.com/sebastianbergmann/php-invoker/tree/6.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:58:58+00:00" + }, + { + "name": "phpunit/php-text-template", + "version": "5.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-text-template.git", + "reference": "e1367a453f0eda562eedb4f659e13aa900d66c53" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/e1367a453f0eda562eedb4f659e13aa900d66c53", + "reference": "e1367a453f0eda562eedb4f659e13aa900d66c53", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Simple template engine.", + "homepage": "https://github.com/sebastianbergmann/php-text-template/", + "keywords": [ + "template" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-text-template/issues", + "security": "https://github.com/sebastianbergmann/php-text-template/security/policy", + "source": "https://github.com/sebastianbergmann/php-text-template/tree/5.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:59:16+00:00" + }, + { + "name": "phpunit/php-timer", + "version": "8.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "f258ce36aa457f3aa3339f9ed4c81fc66dc8c2cc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/f258ce36aa457f3aa3339f9ed4c81fc66dc8c2cc", + "reference": "f258ce36aa457f3aa3339f9ed4c81fc66dc8c2cc", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "8.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Utility class for timing", + "homepage": "https://github.com/sebastianbergmann/php-timer/", + "keywords": [ + "timer" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-timer/issues", + "security": "https://github.com/sebastianbergmann/php-timer/security/policy", + "source": "https://github.com/sebastianbergmann/php-timer/tree/8.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:59:38+00:00" + }, + { + "name": "phpunit/phpunit", + "version": "12.5.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit.git", + "reference": "4ba0e923f9d3fc655de22f9547c01d15a41fc93a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/4ba0e923f9d3fc655de22f9547c01d15a41fc93a", + "reference": "4ba0e923f9d3fc655de22f9547c01d15a41fc93a", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-xml": "*", + "ext-xmlwriter": "*", + "myclabs/deep-copy": "^1.13.4", + "phar-io/manifest": "^2.0.4", + "phar-io/version": "^3.2.1", + "php": ">=8.3", + "phpunit/php-code-coverage": "^12.5.1", + "phpunit/php-file-iterator": "^6.0.0", + "phpunit/php-invoker": "^6.0.0", + "phpunit/php-text-template": "^5.0.0", + "phpunit/php-timer": "^8.0.0", + "sebastian/cli-parser": "^4.2.0", + "sebastian/comparator": "^7.1.3", + "sebastian/diff": "^7.0.0", + "sebastian/environment": "^8.0.3", + "sebastian/exporter": "^7.0.2", + "sebastian/global-state": "^8.0.2", + "sebastian/object-enumerator": "^7.0.0", + "sebastian/type": "^6.0.3", + "sebastian/version": "^6.0.0", + "staabm/side-effects-detector": "^1.0.5" + }, + "bin": [ + "phpunit" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "12.5-dev" + } + }, + "autoload": { + "files": [ + "src/Framework/Assert/Functions.php" + ], + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "The PHP Unit Testing framework.", + "homepage": "https://phpunit.de/", + "keywords": [ + "phpunit", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/phpunit/issues", + "security": "https://github.com/sebastianbergmann/phpunit/security/policy", + "source": "https://github.com/sebastianbergmann/phpunit/tree/12.5.4" + }, + "funding": [ + { + "url": "https://phpunit.de/sponsors.html", + "type": "custom" + }, + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/phpunit", + "type": "tidelift" + } + ], + "time": "2025-12-15T06:05:34+00:00" + }, + { + "name": "rector/rector", + "version": "2.3.0", + "source": { + "type": "git", + "url": "https://github.com/rectorphp/rector.git", + "reference": "f7166355dcf47482f27be59169b0825995f51c7d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/rectorphp/rector/zipball/f7166355dcf47482f27be59169b0825995f51c7d", + "reference": "f7166355dcf47482f27be59169b0825995f51c7d", + "shasum": "" + }, + "require": { + "php": "^7.4|^8.0", + "phpstan/phpstan": "^2.1.33" + }, + "conflict": { + "rector/rector-doctrine": "*", + "rector/rector-downgrade-php": "*", + "rector/rector-phpunit": "*", + "rector/rector-symfony": "*" + }, + "suggest": { + "ext-dom": "To manipulate phpunit.xml via the custom-rule command" + }, + "bin": [ + "bin/rector" + ], + "type": "library", + "autoload": { + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Instant Upgrade and Automated Refactoring of any PHP code", + "homepage": "https://getrector.com/", + "keywords": [ + "automation", + "dev", + "migration", + "refactoring" + ], + "support": { + "issues": "https://github.com/rectorphp/rector/issues", + "source": "https://github.com/rectorphp/rector/tree/2.3.0" + }, + "funding": [ + { + "url": "https://github.com/tomasvotruba", + "type": "github" + } + ], + "time": "2025-12-25T22:00:18+00:00" + }, + { + "name": "sebastian/cli-parser", + "version": "4.2.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/cli-parser.git", + "reference": "90f41072d220e5c40df6e8635f5dafba2d9d4d04" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/90f41072d220e5c40df6e8635f5dafba2d9d4d04", + "reference": "90f41072d220e5c40df6e8635f5dafba2d9d4d04", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "4.2-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for parsing CLI options", + "homepage": "https://github.com/sebastianbergmann/cli-parser", + "support": { + "issues": "https://github.com/sebastianbergmann/cli-parser/issues", + "security": "https://github.com/sebastianbergmann/cli-parser/security/policy", + "source": "https://github.com/sebastianbergmann/cli-parser/tree/4.2.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/cli-parser", + "type": "tidelift" + } + ], + "time": "2025-09-14T09:36:45+00:00" + }, + { + "name": "sebastian/comparator", + "version": "7.1.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/comparator.git", + "reference": "dc904b4bb3ab070865fa4068cd84f3da8b945148" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/dc904b4bb3ab070865fa4068cd84f3da8b945148", + "reference": "dc904b4bb3ab070865fa4068cd84f3da8b945148", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-mbstring": "*", + "php": ">=8.3", + "sebastian/diff": "^7.0", + "sebastian/exporter": "^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^12.2" + }, + "suggest": { + "ext-bcmath": "For comparing BcMath\\Number objects" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "7.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" + } + ], + "description": "Provides the functionality to compare PHP values for equality", + "homepage": "https://github.com/sebastianbergmann/comparator", + "keywords": [ + "comparator", + "compare", + "equality" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/comparator/issues", + "security": "https://github.com/sebastianbergmann/comparator/security/policy", + "source": "https://github.com/sebastianbergmann/comparator/tree/7.1.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/comparator", + "type": "tidelift" + } + ], + "time": "2025-08-20T11:27:00+00:00" + }, + { + "name": "sebastian/complexity", + "version": "5.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/complexity.git", + "reference": "bad4316aba5303d0221f43f8cee37eb58d384bbb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/bad4316aba5303d0221f43f8cee37eb58d384bbb", + "reference": "bad4316aba5303d0221f43f8cee37eb58d384bbb", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^5.0", + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for calculating the complexity of PHP code units", + "homepage": "https://github.com/sebastianbergmann/complexity", + "support": { + "issues": "https://github.com/sebastianbergmann/complexity/issues", + "security": "https://github.com/sebastianbergmann/complexity/security/policy", + "source": "https://github.com/sebastianbergmann/complexity/tree/5.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:55:25+00:00" + }, + { + "name": "sebastian/diff", + "version": "7.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/diff.git", + "reference": "7ab1ea946c012266ca32390913653d844ecd085f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/7ab1ea946c012266ca32390913653d844ecd085f", + "reference": "7ab1ea946c012266ca32390913653d844ecd085f", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0", + "symfony/process": "^7.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "7.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" + } + ], + "description": "Diff implementation", + "homepage": "https://github.com/sebastianbergmann/diff", + "keywords": [ + "diff", + "udiff", + "unidiff", + "unified diff" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/diff/issues", + "security": "https://github.com/sebastianbergmann/diff/security/policy", + "source": "https://github.com/sebastianbergmann/diff/tree/7.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:55:46+00:00" + }, + { + "name": "sebastian/environment", + "version": "8.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/environment.git", + "reference": "24a711b5c916efc6d6e62aa65aa2ec98fef77f68" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/24a711b5c916efc6d6e62aa65aa2ec98fef77f68", + "reference": "24a711b5c916efc6d6e62aa65aa2ec98fef77f68", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "suggest": { + "ext-posix": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "8.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides functionality to handle HHVM/PHP environments", + "homepage": "https://github.com/sebastianbergmann/environment", + "keywords": [ + "Xdebug", + "environment", + "hhvm" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/environment/issues", + "security": "https://github.com/sebastianbergmann/environment/security/policy", + "source": "https://github.com/sebastianbergmann/environment/tree/8.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/environment", + "type": "tidelift" + } + ], + "time": "2025-08-12T14:11:56+00:00" + }, + { + "name": "sebastian/exporter", + "version": "7.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/exporter.git", + "reference": "016951ae10980765e4e7aee491eb288c64e505b7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/016951ae10980765e4e7aee491eb288c64e505b7", + "reference": "016951ae10980765e4e7aee491eb288c64e505b7", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "php": ">=8.3", + "sebastian/recursion-context": "^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "7.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Provides the functionality to export PHP variables for visualization", + "homepage": "https://www.github.com/sebastianbergmann/exporter", + "keywords": [ + "export", + "exporter" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/exporter/issues", + "security": "https://github.com/sebastianbergmann/exporter/security/policy", + "source": "https://github.com/sebastianbergmann/exporter/tree/7.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/exporter", + "type": "tidelift" + } + ], + "time": "2025-09-24T06:16:11+00:00" + }, + { + "name": "sebastian/global-state", + "version": "8.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/global-state.git", + "reference": "ef1377171613d09edd25b7816f05be8313f9115d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/ef1377171613d09edd25b7816f05be8313f9115d", + "reference": "ef1377171613d09edd25b7816f05be8313f9115d", + "shasum": "" + }, + "require": { + "php": ">=8.3", + "sebastian/object-reflector": "^5.0", + "sebastian/recursion-context": "^7.0" + }, + "require-dev": { + "ext-dom": "*", + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "8.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Snapshotting of global state", + "homepage": "https://www.github.com/sebastianbergmann/global-state", + "keywords": [ + "global state" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/global-state/issues", + "security": "https://github.com/sebastianbergmann/global-state/security/policy", + "source": "https://github.com/sebastianbergmann/global-state/tree/8.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/global-state", + "type": "tidelift" + } + ], + "time": "2025-08-29T11:29:25+00:00" + }, + { + "name": "sebastian/lines-of-code", + "version": "4.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/lines-of-code.git", + "reference": "97ffee3bcfb5805568d6af7f0f893678fc076d2f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/97ffee3bcfb5805568d6af7f0f893678fc076d2f", + "reference": "97ffee3bcfb5805568d6af7f0f893678fc076d2f", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^5.0", + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for counting the lines of code in PHP source code", + "homepage": "https://github.com/sebastianbergmann/lines-of-code", + "support": { + "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", + "security": "https://github.com/sebastianbergmann/lines-of-code/security/policy", + "source": "https://github.com/sebastianbergmann/lines-of-code/tree/4.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:57:28+00:00" + }, + { + "name": "sebastian/object-enumerator", + "version": "7.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-enumerator.git", + "reference": "1effe8e9b8e068e9ae228e542d5d11b5d16db894" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/1effe8e9b8e068e9ae228e542d5d11b5d16db894", + "reference": "1effe8e9b8e068e9ae228e542d5d11b5d16db894", + "shasum": "" + }, + "require": { + "php": ">=8.3", + "sebastian/object-reflector": "^5.0", + "sebastian/recursion-context": "^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "7.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Traverses array structures and object graphs to enumerate all referenced objects", + "homepage": "https://github.com/sebastianbergmann/object-enumerator/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", + "security": "https://github.com/sebastianbergmann/object-enumerator/security/policy", + "source": "https://github.com/sebastianbergmann/object-enumerator/tree/7.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:57:48+00:00" + }, + { + "name": "sebastian/object-reflector", + "version": "5.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-reflector.git", + "reference": "4bfa827c969c98be1e527abd576533293c634f6a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/4bfa827c969c98be1e527abd576533293c634f6a", + "reference": "4bfa827c969c98be1e527abd576533293c634f6a", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Allows reflection of object attributes, including inherited and non-public ones", + "homepage": "https://github.com/sebastianbergmann/object-reflector/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-reflector/issues", + "security": "https://github.com/sebastianbergmann/object-reflector/security/policy", + "source": "https://github.com/sebastianbergmann/object-reflector/tree/5.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:58:17+00:00" + }, + { + "name": "sebastian/recursion-context", + "version": "7.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/recursion-context.git", + "reference": "0b01998a7d5b1f122911a66bebcb8d46f0c82d8c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/0b01998a7d5b1f122911a66bebcb8d46f0c82d8c", + "reference": "0b01998a7d5b1f122911a66bebcb8d46f0c82d8c", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "7.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + } + ], + "description": "Provides functionality to recursively process PHP variables", + "homepage": "https://github.com/sebastianbergmann/recursion-context", + "support": { + "issues": "https://github.com/sebastianbergmann/recursion-context/issues", + "security": "https://github.com/sebastianbergmann/recursion-context/security/policy", + "source": "https://github.com/sebastianbergmann/recursion-context/tree/7.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/recursion-context", + "type": "tidelift" + } + ], + "time": "2025-08-13T04:44:59+00:00" + }, + { + "name": "sebastian/type", + "version": "6.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/type.git", + "reference": "e549163b9760b8f71f191651d22acf32d56d6d4d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/e549163b9760b8f71f191651d22acf32d56d6d4d", + "reference": "e549163b9760b8f71f191651d22acf32d56d6d4d", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "6.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Collection of value objects that represent the types of the PHP type system", + "homepage": "https://github.com/sebastianbergmann/type", + "support": { + "issues": "https://github.com/sebastianbergmann/type/issues", + "security": "https://github.com/sebastianbergmann/type/security/policy", + "source": "https://github.com/sebastianbergmann/type/tree/6.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/type", + "type": "tidelift" + } + ], + "time": "2025-08-09T06:57:12+00:00" + }, + { + "name": "sebastian/version", + "version": "6.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/version.git", + "reference": "3e6ccf7657d4f0a59200564b08cead899313b53c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/3e6ccf7657d4f0a59200564b08cead899313b53c", + "reference": "3e6ccf7657d4f0a59200564b08cead899313b53c", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "6.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that helps with managing the version number of Git-hosted PHP projects", + "homepage": "https://github.com/sebastianbergmann/version", + "support": { + "issues": "https://github.com/sebastianbergmann/version/issues", + "security": "https://github.com/sebastianbergmann/version/security/policy", + "source": "https://github.com/sebastianbergmann/version/tree/6.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T05:00:38+00:00" + }, + { + "name": "spatie/backtrace", + "version": "1.8.1", + "source": { + "type": "git", + "url": "https://github.com/spatie/backtrace.git", + "reference": "8c0f16a59ae35ec8c62d85c3c17585158f430110" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/backtrace/zipball/8c0f16a59ae35ec8c62d85c3c17585158f430110", + "reference": "8c0f16a59ae35ec8c62d85c3c17585158f430110", + "shasum": "" + }, + "require": { + "php": "^7.3 || ^8.0" + }, + "require-dev": { + "ext-json": "*", + "laravel/serializable-closure": "^1.3 || ^2.0", + "phpunit/phpunit": "^9.3 || ^11.4.3", + "spatie/phpunit-snapshot-assertions": "^4.2 || ^5.1.6", + "symfony/var-dumper": "^5.1 || ^6.0 || ^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\Backtrace\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van de Herten", + "email": "freek@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "A better backtrace", + "homepage": "https://github.com/spatie/backtrace", + "keywords": [ + "Backtrace", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/backtrace/issues", + "source": "https://github.com/spatie/backtrace/tree/1.8.1" + }, + "funding": [ + { + "url": "https://github.com/sponsors/spatie", + "type": "github" + }, + { + "url": "https://spatie.be/open-source/support-us", + "type": "other" + } + ], + "time": "2025-08-26T08:22:30+00:00" + }, + { + "name": "spatie/error-solutions", + "version": "1.1.3", + "source": { + "type": "git", + "url": "https://github.com/spatie/error-solutions.git", + "reference": "e495d7178ca524f2dd0fe6a1d99a1e608e1c9936" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/error-solutions/zipball/e495d7178ca524f2dd0fe6a1d99a1e608e1c9936", + "reference": "e495d7178ca524f2dd0fe6a1d99a1e608e1c9936", + "shasum": "" + }, + "require": { + "php": "^8.0" + }, + "require-dev": { + "illuminate/broadcasting": "^10.0|^11.0|^12.0", + "illuminate/cache": "^10.0|^11.0|^12.0", + "illuminate/support": "^10.0|^11.0|^12.0", + "livewire/livewire": "^2.11|^3.5.20", + "openai-php/client": "^0.10.1", + "orchestra/testbench": "8.22.3|^9.0|^10.0", + "pestphp/pest": "^2.20|^3.0", + "phpstan/phpstan": "^2.1", + "psr/simple-cache": "^3.0", + "psr/simple-cache-implementation": "^3.0", + "spatie/ray": "^1.28", + "symfony/cache": "^5.4|^6.0|^7.0", + "symfony/process": "^5.4|^6.0|^7.0", + "vlucas/phpdotenv": "^5.5" + }, + "suggest": { + "openai-php/client": "Require get solutions from OpenAI", + "simple-cache-implementation": "To cache solutions from OpenAI" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\Ignition\\": "legacy/ignition", + "Spatie\\ErrorSolutions\\": "src", + "Spatie\\LaravelIgnition\\": "legacy/laravel-ignition" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ruben Van Assche", + "email": "ruben@spatie.be", + "role": "Developer" + } + ], + "description": "This is my package error-solutions", + "homepage": "https://github.com/spatie/error-solutions", + "keywords": [ + "error-solutions", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/error-solutions/issues", + "source": "https://github.com/spatie/error-solutions/tree/1.1.3" + }, + "funding": [ + { + "url": "https://github.com/Spatie", + "type": "github" + } + ], + "time": "2025-02-14T12:29:50+00:00" + }, + { + "name": "spatie/flare-client-php", + "version": "1.10.1", + "source": { + "type": "git", + "url": "https://github.com/spatie/flare-client-php.git", + "reference": "bf1716eb98bd689451b071548ae9e70738dce62f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/flare-client-php/zipball/bf1716eb98bd689451b071548ae9e70738dce62f", + "reference": "bf1716eb98bd689451b071548ae9e70738dce62f", + "shasum": "" + }, + "require": { + "illuminate/pipeline": "^8.0|^9.0|^10.0|^11.0|^12.0", + "php": "^8.0", + "spatie/backtrace": "^1.6.1", + "symfony/http-foundation": "^5.2|^6.0|^7.0", + "symfony/mime": "^5.2|^6.0|^7.0", + "symfony/process": "^5.2|^6.0|^7.0", + "symfony/var-dumper": "^5.2|^6.0|^7.0" + }, + "require-dev": { + "dms/phpunit-arraysubset-asserts": "^0.5.0", + "pestphp/pest": "^1.20|^2.0", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan-deprecation-rules": "^1.0", + "phpstan/phpstan-phpunit": "^1.0", + "spatie/pest-plugin-snapshots": "^1.0|^2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.3.x-dev" + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Spatie\\FlareClient\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Send PHP errors to Flare", + "homepage": "https://github.com/spatie/flare-client-php", + "keywords": [ + "exception", + "flare", + "reporting", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/flare-client-php/issues", + "source": "https://github.com/spatie/flare-client-php/tree/1.10.1" + }, + "funding": [ + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2025-02-14T13:42:06+00:00" + }, + { + "name": "spatie/ignition", + "version": "1.15.1", + "source": { + "type": "git", + "url": "https://github.com/spatie/ignition.git", + "reference": "31f314153020aee5af3537e507fef892ffbf8c85" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/ignition/zipball/31f314153020aee5af3537e507fef892ffbf8c85", + "reference": "31f314153020aee5af3537e507fef892ffbf8c85", + "shasum": "" + }, + "require": { + "ext-json": "*", + "ext-mbstring": "*", + "php": "^8.0", + "spatie/error-solutions": "^1.0", + "spatie/flare-client-php": "^1.7", + "symfony/console": "^5.4|^6.0|^7.0", + "symfony/var-dumper": "^5.4|^6.0|^7.0" + }, + "require-dev": { + "illuminate/cache": "^9.52|^10.0|^11.0|^12.0", + "mockery/mockery": "^1.4", + "pestphp/pest": "^1.20|^2.0", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan-deprecation-rules": "^1.0", + "phpstan/phpstan-phpunit": "^1.0", + "psr/simple-cache-implementation": "*", + "symfony/cache": "^5.4|^6.0|^7.0", + "symfony/process": "^5.4|^6.0|^7.0", + "vlucas/phpdotenv": "^5.5" + }, + "suggest": { + "openai-php/client": "Require get solutions from OpenAI", + "simple-cache-implementation": "To cache solutions from OpenAI" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.5.x-dev" + } + }, + "autoload": { + "psr-4": { + "Spatie\\Ignition\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Spatie", + "email": "info@spatie.be", + "role": "Developer" + } + ], + "description": "A beautiful error page for PHP applications.", + "homepage": "https://flareapp.io/ignition", + "keywords": [ + "error", + "flare", + "laravel", + "page" + ], + "support": { + "docs": "https://flareapp.io/docs/ignition-for-laravel/introduction", + "forum": "https://twitter.com/flareappio", + "issues": "https://github.com/spatie/ignition/issues", + "source": "https://github.com/spatie/ignition" + }, + "funding": [ + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2025-02-21T14:31:39+00:00" + }, + { + "name": "spatie/laravel-ignition", + "version": "2.9.1", + "source": { + "type": "git", + "url": "https://github.com/spatie/laravel-ignition.git", + "reference": "1baee07216d6748ebd3a65ba97381b051838707a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/laravel-ignition/zipball/1baee07216d6748ebd3a65ba97381b051838707a", + "reference": "1baee07216d6748ebd3a65ba97381b051838707a", + "shasum": "" + }, + "require": { + "ext-curl": "*", + "ext-json": "*", + "ext-mbstring": "*", + "illuminate/support": "^10.0|^11.0|^12.0", + "php": "^8.1", + "spatie/ignition": "^1.15", + "symfony/console": "^6.2.3|^7.0", + "symfony/var-dumper": "^6.2.3|^7.0" + }, + "require-dev": { + "livewire/livewire": "^2.11|^3.3.5", + "mockery/mockery": "^1.5.1", + "openai-php/client": "^0.8.1|^0.10", + "orchestra/testbench": "8.22.3|^9.0|^10.0", + "pestphp/pest": "^2.34|^3.7", + "phpstan/extension-installer": "^1.3.1", + "phpstan/phpstan-deprecation-rules": "^1.1.1|^2.0", + "phpstan/phpstan-phpunit": "^1.3.16|^2.0", + "vlucas/phpdotenv": "^5.5" + }, + "suggest": { + "openai-php/client": "Require get solutions from OpenAI", + "psr/simple-cache-implementation": "Needed to cache solutions from OpenAI" + }, + "type": "library", + "extra": { + "laravel": { + "aliases": { + "Flare": "Spatie\\LaravelIgnition\\Facades\\Flare" + }, + "providers": [ + "Spatie\\LaravelIgnition\\IgnitionServiceProvider" + ] + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Spatie\\LaravelIgnition\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Spatie", + "email": "info@spatie.be", + "role": "Developer" + } + ], + "description": "A beautiful error page for Laravel applications.", + "homepage": "https://flareapp.io/ignition", + "keywords": [ + "error", + "flare", + "laravel", + "page" + ], + "support": { + "docs": "https://flareapp.io/docs/ignition-for-laravel/introduction", + "forum": "https://twitter.com/flareappio", + "issues": "https://github.com/spatie/laravel-ignition/issues", + "source": "https://github.com/spatie/laravel-ignition" + }, + "funding": [ + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2025-02-20T13:13:55+00:00" + }, + { + "name": "spatie/laravel-ray", + "version": "1.43.2", + "source": { + "type": "git", + "url": "https://github.com/spatie/laravel-ray.git", + "reference": "6039c5e62118d7b8febc31546d14a5cf9bb63876" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/laravel-ray/zipball/6039c5e62118d7b8febc31546d14a5cf9bb63876", + "reference": "6039c5e62118d7b8febc31546d14a5cf9bb63876", + "shasum": "" + }, + "require": { + "composer-runtime-api": "^2.2", + "ext-json": "*", + "illuminate/contracts": "^7.20|^8.19|^9.0|^10.0|^11.0|^12.0", + "illuminate/database": "^7.20|^8.19|^9.0|^10.0|^11.0|^12.0", + "illuminate/queue": "^7.20|^8.19|^9.0|^10.0|^11.0|^12.0", + "illuminate/support": "^7.20|^8.19|^9.0|^10.0|^11.0|^12.0", + "php": "^7.4|^8.0", + "spatie/backtrace": "^1.7.1", + "spatie/ray": "^1.44.0", + "symfony/stopwatch": "4.2|^5.1|^6.0|^7.0|^8.0", + "zbateson/mail-mime-parser": "^1.3.1|^2.0|^3.0" + }, + "require-dev": { + "guzzlehttp/guzzle": "^7.3", + "laravel/framework": "^7.20|^8.19|^9.0|^10.0|^11.0|^12.0", + "laravel/pint": "^1.26", + "orchestra/testbench-core": "^5.0|^6.0|^7.0|^8.0|^9.0|^10.0", + "pestphp/pest": "^1.22|^2.0|^3.0|^4.0", + "phpstan/phpstan": "^1.10.57|^2.0.2", + "phpunit/phpunit": "^9.3|^10.1|^11.0.10|^12.4", + "rector/rector": "^0.19.2|^1.0.1|^2.0.0", + "spatie/pest-plugin-snapshots": "^1.1|^2.0", + "symfony/var-dumper": "^4.2|^5.1|^6.0|^7.0.3|^8.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Spatie\\LaravelRay\\RayServiceProvider" + ] + }, + "branch-alias": { + "dev-main": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Spatie\\LaravelRay\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "Easily debug Laravel apps", + "homepage": "https://github.com/spatie/laravel-ray", + "keywords": [ + "laravel-ray", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/laravel-ray/issues", + "source": "https://github.com/spatie/laravel-ray/tree/1.43.2" + }, + "funding": [ + { + "url": "https://github.com/sponsors/spatie", + "type": "github" + }, + { + "url": "https://spatie.be/open-source/support-us", + "type": "other" + } + ], + "time": "2025-12-15T09:06:48+00:00" + }, + { + "name": "spatie/macroable", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/spatie/macroable.git", + "reference": "ec2c320f932e730607aff8052c44183cf3ecb072" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/macroable/zipball/ec2c320f932e730607aff8052c44183cf3ecb072", + "reference": "ec2c320f932e730607aff8052c44183cf3ecb072", + "shasum": "" + }, + "require": { + "php": "^8.0" + }, + "require-dev": { + "phpunit/phpunit": "^8.0|^9.3" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\Macroable\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "A trait to dynamically add methods to a class", + "homepage": "https://github.com/spatie/macroable", + "keywords": [ + "macroable", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/macroable/issues", + "source": "https://github.com/spatie/macroable/tree/2.0.0" + }, + "time": "2021-03-26T22:39:02+00:00" + }, + { + "name": "spatie/ray", + "version": "1.44.1", + "source": { + "type": "git", + "url": "https://github.com/spatie/ray.git", + "reference": "588e201dda9bd94ce27af365f5a734b1de706a81" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/ray/zipball/588e201dda9bd94ce27af365f5a734b1de706a81", + "reference": "588e201dda9bd94ce27af365f5a734b1de706a81", + "shasum": "" + }, + "require": { + "ext-curl": "*", + "ext-json": "*", + "php": "^7.4|^8.0", + "ramsey/uuid": "^3.0|^4.1", + "spatie/backtrace": "^1.7.1", + "spatie/macroable": "^1.0|^2.0", + "symfony/stopwatch": "^4.2|^5.1|^6.0|^7.0|^8.0", + "symfony/var-dumper": "^4.2|^5.1|^6.0|^7.0.3|^8.0" + }, + "require-dev": { + "illuminate/support": "^7.20|^8.18|^9.0|^10.0|^11.0|^12.0", + "nesbot/carbon": "^2.63|^3.8.4", + "pestphp/pest": "^1.22", + "phpstan/phpstan": "^1.10.57|^2.0.3", + "phpunit/phpunit": "^9.5", + "rector/rector": "^0.19.2|^1.0.1|^2.0.0", + "spatie/phpunit-snapshot-assertions": "^4.2", + "spatie/test-time": "^1.2" + }, + "bin": [ + "bin/remove-ray.sh" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.x-dev" + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Spatie\\Ray\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "Debug with Ray to fix problems faster", + "homepage": "https://github.com/spatie/ray", + "keywords": [ + "ray", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/ray/issues", + "source": "https://github.com/spatie/ray/tree/1.44.1" + }, + "funding": [ + { + "url": "https://github.com/sponsors/spatie", + "type": "github" + }, + { + "url": "https://spatie.be/open-source/support-us", + "type": "other" + } + ], + "time": "2025-11-21T10:44:03+00:00" + }, + { + "name": "staabm/side-effects-detector", + "version": "1.0.5", + "source": { + "type": "git", + "url": "https://github.com/staabm/side-effects-detector.git", + "reference": "d8334211a140ce329c13726d4a715adbddd0a163" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/staabm/side-effects-detector/zipball/d8334211a140ce329c13726d4a715adbddd0a163", + "reference": "d8334211a140ce329c13726d4a715adbddd0a163", + "shasum": "" + }, + "require": { + "ext-tokenizer": "*", + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "phpstan/extension-installer": "^1.4.3", + "phpstan/phpstan": "^1.12.6", + "phpunit/phpunit": "^9.6.21", + "symfony/var-dumper": "^5.4.43", + "tomasvotruba/type-coverage": "1.0.0", + "tomasvotruba/unused-public": "1.0.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "lib/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A static analysis tool to detect side effects in PHP code", + "keywords": [ + "static analysis" + ], + "support": { + "issues": "https://github.com/staabm/side-effects-detector/issues", + "source": "https://github.com/staabm/side-effects-detector/tree/1.0.5" + }, + "funding": [ + { + "url": "https://github.com/staabm", + "type": "github" + } + ], + "time": "2024-10-20T05:08:20+00:00" + }, + { + "name": "symfony/polyfill-iconv", + "version": "v1.33.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-iconv.git", + "reference": "5f3b930437ae03ae5dff61269024d8ea1b3774aa" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-iconv/zipball/5f3b930437ae03ae5dff61269024d8ea1b3774aa", + "reference": "5f3b930437ae03ae5dff61269024d8ea1b3774aa", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "provide": { + "ext-iconv": "*" + }, + "suggest": { + "ext-iconv": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Iconv\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for the Iconv extension", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "iconv", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-iconv/tree/v1.33.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-17T14:58:18+00:00" + }, + { + "name": "symfony/stopwatch", + "version": "v8.0.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/stopwatch.git", + "reference": "67df1914c6ccd2d7b52f70d40cf2aea02159d942" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/stopwatch/zipball/67df1914c6ccd2d7b52f70d40cf2aea02159d942", + "reference": "67df1914c6ccd2d7b52f70d40cf2aea02159d942", + "shasum": "" + }, + "require": { + "php": ">=8.4", + "symfony/service-contracts": "^2.5|^3" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Stopwatch\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides a way to profile code", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/stopwatch/tree/v8.0.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-08-04T07:36:47+00:00" + }, + { + "name": "symfony/yaml", + "version": "v7.4.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/yaml.git", + "reference": "24dd4de28d2e3988b311751ac49e684d783e2345" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/yaml/zipball/24dd4de28d2e3988b311751ac49e684d783e2345", + "reference": "24dd4de28d2e3988b311751ac49e684d783e2345", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/polyfill-ctype": "^1.8" + }, + "conflict": { + "symfony/console": "<6.4" + }, + "require-dev": { + "symfony/console": "^6.4|^7.0|^8.0" + }, + "bin": [ + "Resources/bin/yaml-lint" + ], + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Yaml\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Loads and dumps YAML files", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/yaml/tree/v7.4.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-12-04T18:11:45+00:00" + }, + { + "name": "ta-tikoma/phpunit-architecture-test", + "version": "0.8.5", + "source": { + "type": "git", + "url": "https://github.com/ta-tikoma/phpunit-architecture-test.git", + "reference": "cf6fb197b676ba716837c886baca842e4db29005" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ta-tikoma/phpunit-architecture-test/zipball/cf6fb197b676ba716837c886baca842e4db29005", + "reference": "cf6fb197b676ba716837c886baca842e4db29005", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^4.18.0 || ^5.0.0", + "php": "^8.1.0", + "phpdocumentor/reflection-docblock": "^5.3.0", + "phpunit/phpunit": "^10.5.5 || ^11.0.0 || ^12.0.0", + "symfony/finder": "^6.4.0 || ^7.0.0" + }, + "require-dev": { + "laravel/pint": "^1.13.7", + "phpstan/phpstan": "^1.10.52" + }, + "type": "library", + "autoload": { + "psr-4": { + "PHPUnit\\Architecture\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ni Shi", + "email": "futik0ma011@gmail.com" + }, + { + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" + } + ], + "description": "Methods for testing application architecture", + "keywords": [ + "architecture", + "phpunit", + "stucture", + "test", + "testing" + ], + "support": { + "issues": "https://github.com/ta-tikoma/phpunit-architecture-test/issues", + "source": "https://github.com/ta-tikoma/phpunit-architecture-test/tree/0.8.5" + }, + "time": "2025-04-20T20:23:40+00:00" + }, + { + "name": "theseer/tokenizer", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/theseer/tokenizer.git", + "reference": "7989e43bf381af0eac72e4f0ca5bcbfa81658be4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/7989e43bf381af0eac72e4f0ca5bcbfa81658be4", + "reference": "7989e43bf381af0eac72e4f0ca5bcbfa81658be4", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-tokenizer": "*", + "ext-xmlwriter": "*", + "php": "^8.1" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + } + ], + "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", + "support": { + "issues": "https://github.com/theseer/tokenizer/issues", + "source": "https://github.com/theseer/tokenizer/tree/2.0.1" + }, + "funding": [ + { + "url": "https://github.com/theseer", + "type": "github" + } + ], + "time": "2025-12-08T11:19:18+00:00" + }, + { + "name": "webmozart/assert", + "version": "1.12.1", + "source": { + "type": "git", + "url": "https://github.com/webmozarts/assert.git", + "reference": "9be6926d8b485f55b9229203f962b51ed377ba68" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/webmozarts/assert/zipball/9be6926d8b485f55b9229203f962b51ed377ba68", + "reference": "9be6926d8b485f55b9229203f962b51ed377ba68", + "shasum": "" + }, + "require": { + "ext-ctype": "*", + "ext-date": "*", + "ext-filter": "*", + "php": "^7.2 || ^8.0" + }, + "suggest": { + "ext-intl": "", + "ext-simplexml": "", + "ext-spl": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.10-dev" + } + }, + "autoload": { + "psr-4": { + "Webmozart\\Assert\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Assertions to validate method input/output with nice error messages.", + "keywords": [ + "assert", + "check", + "validate" + ], + "support": { + "issues": "https://github.com/webmozarts/assert/issues", + "source": "https://github.com/webmozarts/assert/tree/1.12.1" + }, + "time": "2025-10-29T15:56:20+00:00" + }, + { + "name": "zbateson/mail-mime-parser", + "version": "3.0.5", + "source": { + "type": "git", + "url": "https://github.com/zbateson/mail-mime-parser.git", + "reference": "ff054c8e05310c445c2028c6128a4319cc9f6aa8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/zbateson/mail-mime-parser/zipball/ff054c8e05310c445c2028c6128a4319cc9f6aa8", + "reference": "ff054c8e05310c445c2028c6128a4319cc9f6aa8", + "shasum": "" + }, + "require": { + "guzzlehttp/psr7": "^2.5", + "php": ">=8.0", + "php-di/php-di": "^6.0|^7.0", + "psr/log": "^1|^2|^3", + "zbateson/mb-wrapper": "^2.0", + "zbateson/stream-decorators": "^2.1" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "*", + "monolog/monolog": "^2|^3", + "phpstan/phpstan": "*", + "phpunit/phpunit": "^9.6" + }, + "suggest": { + "ext-iconv": "For best support/performance", + "ext-mbstring": "For best support/performance" + }, + "type": "library", + "autoload": { + "psr-4": { + "ZBateson\\MailMimeParser\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-2-Clause" + ], + "authors": [ + { + "name": "Zaahid Bateson" + }, + { + "name": "Contributors", + "homepage": "https://github.com/zbateson/mail-mime-parser/graphs/contributors" + } + ], + "description": "MIME email message parser", + "homepage": "https://mail-mime-parser.org", + "keywords": [ + "MimeMailParser", + "email", + "mail", + "mailparse", + "mime", + "mimeparse", + "parser", + "php-imap" + ], + "support": { + "docs": "https://mail-mime-parser.org/#usage-guide", + "issues": "https://github.com/zbateson/mail-mime-parser/issues", + "source": "https://github.com/zbateson/mail-mime-parser" + }, + "funding": [ + { + "url": "https://github.com/zbateson", + "type": "github" + } + ], + "time": "2025-12-02T00:29:16+00:00" + }, + { + "name": "zbateson/mb-wrapper", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/zbateson/mb-wrapper.git", + "reference": "50a14c0c9537f978a61cde9fdc192a0267cc9cff" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/zbateson/mb-wrapper/zipball/50a14c0c9537f978a61cde9fdc192a0267cc9cff", + "reference": "50a14c0c9537f978a61cde9fdc192a0267cc9cff", + "shasum": "" + }, + "require": { + "php": ">=8.0", + "symfony/polyfill-iconv": "^1.9", + "symfony/polyfill-mbstring": "^1.9" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "*", + "phpstan/phpstan": "*", + "phpunit/phpunit": "^9.6|^10.0" + }, + "suggest": { + "ext-iconv": "For best support/performance", + "ext-mbstring": "For best support/performance" + }, + "type": "library", + "autoload": { + "psr-4": { + "ZBateson\\MbWrapper\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-2-Clause" + ], + "authors": [ + { + "name": "Zaahid Bateson" + } + ], + "description": "Wrapper for mbstring with fallback to iconv for encoding conversion and string manipulation", + "keywords": [ + "charset", + "encoding", + "http", + "iconv", + "mail", + "mb", + "mb_convert_encoding", + "mbstring", + "mime", + "multibyte", + "string" + ], + "support": { + "issues": "https://github.com/zbateson/mb-wrapper/issues", + "source": "https://github.com/zbateson/mb-wrapper/tree/2.0.1" + }, + "funding": [ + { + "url": "https://github.com/zbateson", + "type": "github" + } + ], + "time": "2024-12-20T22:05:33+00:00" + }, + { + "name": "zbateson/stream-decorators", + "version": "2.1.1", + "source": { + "type": "git", + "url": "https://github.com/zbateson/stream-decorators.git", + "reference": "32a2a62fb0f26313395c996ebd658d33c3f9c4e5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/zbateson/stream-decorators/zipball/32a2a62fb0f26313395c996ebd658d33c3f9c4e5", + "reference": "32a2a62fb0f26313395c996ebd658d33c3f9c4e5", + "shasum": "" + }, + "require": { + "guzzlehttp/psr7": "^2.5", + "php": ">=8.0", + "zbateson/mb-wrapper": "^2.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "*", + "phpstan/phpstan": "*", + "phpunit/phpunit": "^9.6|^10.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "ZBateson\\StreamDecorators\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-2-Clause" + ], + "authors": [ + { + "name": "Zaahid Bateson" + } + ], + "description": "PHP psr7 stream decorators for mime message part streams", + "keywords": [ + "base64", + "charset", + "decorators", + "mail", + "mime", + "psr7", + "quoted-printable", + "stream", + "uuencode" + ], + "support": { + "issues": "https://github.com/zbateson/stream-decorators/issues", + "source": "https://github.com/zbateson/stream-decorators/tree/2.1.1" + }, + "funding": [ + { + "url": "https://github.com/zbateson", + "type": "github" + } + ], + "time": "2024-04-29T21:42:39+00:00" + } + ], + "aliases": [], + "minimum-stability": "dev", + "stability-flags": {}, + "prefer-stable": true, + "prefer-lowest": false, + "platform": { + "php": "^8.5", + "ext-sockets": "*" + }, + "platform-dev": {}, + "plugin-api-version": "2.9.0" +} diff --git a/Updated_Cms/package.json b/Updated_Cms/package.json new file mode 100644 index 0000000000..76f7c9b628 --- /dev/null +++ b/Updated_Cms/package.json @@ -0,0 +1,40 @@ +{ + "private": true, + "type": "module", + "scripts": { + "dev:atom": "vite --config resources/themes/atom/vite.config.js", + "build:atom": "vite build --config resources/themes/atom/vite.config.js", + "dev:dusk": "vite --config resources/themes/dusk/vite.config.js", + "build:dusk": "vite build --config resources/themes/dusk/vite.config.js", + "format": "prettier \"resources/**/*.{js,ts,vue,blade}\" --write" + }, + "devDependencies": { + "@alpinejs/focus": "^3.15.3", + "@prettier/plugin-php": "^0.24.0", + "@shufo/prettier-plugin-blade": "^1.16.1", + "@tailwindcss/forms": "^0.5.11", + "@tailwindcss/typography": "^0.5.19", + "alpinejs": "^3.15.3", + "autoprefixer": "^10.4.23", + "axios": "^1.13.2", + "bootstrap": "^5.3.8", + "jquery": "^3.7.1", + "laravel-vite-plugin": "^2.0.1", + "lodash": "^4.17.19", + "popper.js": "^1.16", + "postcss": "^8.4.14", + "postcss-import": "^16.1.1", + "prettier": "^3.0.0", + "sass-loader": "^16.0.6", + "tailwindcss": "^3.1.6", + "turbolinks": "^5.2.0", + "vite": "^7.3.1" + }, + "dependencies": { + "-": "^0.0.1", + "@popperjs/core": "^2.11.8", + "postcss-nesting": "^13.0.2", + "sass": "^1.97.2", + "swiper": "^12.0.3" + } +} diff --git a/Updated_Cms/phpunit.xml b/Updated_Cms/phpunit.xml new file mode 100644 index 0000000000..7471f9c63f --- /dev/null +++ b/Updated_Cms/phpunit.xml @@ -0,0 +1,26 @@ + + + + + ./tests/Unit + + + ./tests/Feature + + + + + + + + + + + + + + + ./app + + + diff --git a/Updated_Cms/pint.json b/Updated_Cms/pint.json new file mode 100644 index 0000000000..706cec34e2 --- /dev/null +++ b/Updated_Cms/pint.json @@ -0,0 +1,51 @@ +{ + "preset": "laravel", + "rules": { + "simplified_null_return": true, + "braces_position": { + "control_structures_opening_brace": "same_line", + "functions_opening_brace": "next_line_unless_newline_at_signature_end", + "anonymous_functions_opening_brace": "same_line", + "classes_opening_brace": "next_line_unless_newline_at_signature_end", + "anonymous_classes_opening_brace": "next_line_unless_newline_at_signature_end", + "allow_single_line_empty_anonymous_classes": false, + "allow_single_line_anonymous_functions": false + }, + "concat_space": { + "spacing": "one" + }, + "method_chaining_indentation": true, + "multiline_whitespace_before_semicolons": { + "strategy": "no_multi_line" + }, + "single_line_after_imports": true, + "no_unused_imports": true, + "ordered_imports": { + "sort_algorithm": "alpha", + "imports_order": ["const", "class", "function"] + }, + "no_superfluous_phpdoc_tags": { + "allow_mixed": true, + "allow_unused_params": false, + "remove_inheritdoc": false + }, + "phpdoc_order": true, + "phpdoc_separation": true, + "phpdoc_trim": true, + "return_type_declaration": { + "space_before": "none" + }, + "trailing_comma_in_multiline": { + "elements": ["arrays", "arguments", "parameters"] + }, + "visibility_required": { + "elements": ["property", "method", "const"] + } + }, + "exclude": [ + "bootstrap/cache", + "storage", + "vendor", + "node_modules" + ] +} \ No newline at end of file diff --git a/Updated_Cms/postcss.config.cjs b/Updated_Cms/postcss.config.cjs new file mode 100644 index 0000000000..e03dc2dfb4 --- /dev/null +++ b/Updated_Cms/postcss.config.cjs @@ -0,0 +1,8 @@ +module.exports = { + plugins: { + 'postcss-import': {}, + 'tailwindcss/nesting': require('postcss-nesting'), + tailwindcss: {}, + autoprefixer: {}, + }, +} diff --git a/Updated_Cms/ray.php b/Updated_Cms/ray.php new file mode 100644 index 0000000000..2b4185a5d6 --- /dev/null +++ b/Updated_Cms/ray.php @@ -0,0 +1,107 @@ + env('RAY_ENABLED', true), + + /* + * When enabled, all cache events will automatically be sent to Ray. + */ + 'send_cache_to_ray' => env('SEND_CACHE_TO_RAY', false), + + /* + * When enabled, all things passed to `dump` or `dd` + * will be sent to Ray as well. + */ + 'send_dumps_to_ray' => env('SEND_DUMPS_TO_RAY', true), + + /* + * When enabled all job events will automatically be sent to Ray. + */ + 'send_jobs_to_ray' => env('SEND_JOBS_TO_RAY', false), + + /* + * When enabled, all things logged to the application log + * will be sent to Ray as well. + */ + 'send_log_calls_to_ray' => env('SEND_LOG_CALLS_TO_RAY', true), + + /* + * When enabled, all queries will automatically be sent to Ray. + */ + 'send_queries_to_ray' => env('SEND_QUERIES_TO_RAY', false), + + /** + * When enabled, all duplicate queries will automatically be sent to Ray. + */ + 'send_duplicate_queries_to_ray' => env('SEND_DUPLICATE_QUERIES_TO_RAY', false), + + /* + * When enabled, slow queries will automatically be sent to Ray. + */ + 'send_slow_queries_to_ray' => env('SEND_SLOW_QUERIES_TO_RAY', false), + + /** + * Queries that are longer than this number of milliseconds will be regarded as slow. + */ + 'slow_query_threshold_in_ms' => env('RAY_SLOW_QUERY_THRESHOLD_IN_MS', 500), + + /* + * When enabled, all requests made to this app will automatically be sent to Ray. + */ + 'send_requests_to_ray' => env('SEND_REQUESTS_TO_RAY', false), + + /** + * When enabled, all Http Client requests made by this app will be automatically sent to Ray. + */ + 'send_http_client_requests_to_ray' => env('SEND_HTTP_CLIENT_REQUESTS_TO_RAY', false), + + /* + * When enabled, all views that are rendered automatically be sent to Ray. + */ + 'send_views_to_ray' => env('SEND_VIEWS_TO_RAY', false), + + /* + * When enabled, all exceptions will be automatically sent to Ray. + */ + 'send_exceptions_to_ray' => env('SEND_EXCEPTIONS_TO_RAY', true), + + /* + * When enabled, all deprecation notices will be automatically sent to Ray. + */ + 'send_deprecated_notices_to_ray' => env('SEND_DEPRECATED_NOTICES_TO_RAY', false), + + /* + * The host used to communicate with the Ray app. + * When using Docker on Mac or Windows, you can replace localhost with 'host.docker.internal' + * When using Homestead with the VirtualBox provider, you can replace localhost with '10.0.2.2' + * When using Homestead with the Parallels provider, you can replace localhost with '10.211.55.2' + */ + 'host' => env('RAY_HOST', 'host.docker.internal'), + + /* + * The port number used to communicate with the Ray app. + */ + 'port' => env('RAY_PORT', 23517), + + /* + * Absolute base path for your sites or projects in Homestead, + * Vagrant, Docker, or another remote development server. + */ + 'remote_path' => env('RAY_REMOTE_PATH', null), + + /* + * Absolute base path for your sites or projects on your local + * computer where your IDE or code editor is running on. + */ + 'local_path' => env('RAY_LOCAL_PATH', null), + + /* + * When this setting is enabled, the package will not try to format values sent to Ray. + */ + 'always_send_raw_values' => false, +]; diff --git a/Updated_Cms/rector.php b/Updated_Cms/rector.php new file mode 100644 index 0000000000..8632e6971a --- /dev/null +++ b/Updated_Cms/rector.php @@ -0,0 +1,33 @@ +withPaths([ + __DIR__ . '/app', + __DIR__ . '/bootstrap', + __DIR__ . '/config', + __DIR__ . '/resources', // Belangrijk voor Blade/Thema logica + __DIR__ . '/routes', + ]) + ->withPhpVersion(PhpVersion::PHP_85) + ->withSets([ + LevelSetList::UP_TO_PHP_85, + // Dit activeert de gratis "Laravel Shift" naar versie 12: + LaravelLevelSetList::UP_TO_LARAVEL_120, + LaravelSetList::LARAVEL_CODE_QUALITY, + SetList::CODE_QUALITY, + SetList::DEAD_CODE, + ]) + ->withSkip([ + __DIR__ . '/lang/vendor', + __DIR__ . '/storage', // Altijd overslaan + ]); \ No newline at end of file diff --git a/Updated_Cms/resources/themes/dusk/views/public/assets/js/client.js b/Updated_Cms/resources/themes/dusk/views/public/assets/js/client.js new file mode 100644 index 0000000000..1c7a23d0d8 --- /dev/null +++ b/Updated_Cms/resources/themes/dusk/views/public/assets/js/client.js @@ -0,0 +1,147 @@ +(function ($) { + $.fn.iframeTracker = function (handler) { + var target = this.get(); + if (handler === null || handler === false) { + $.iframeTracker.untrack(target); + } else if (typeof handler == "object") { + $.iframeTracker.track(target, handler); + } else { + throw new Error( + "Wrong handler type (must be an object, or null|false to untrack)" + ); + } + }; + $.iframeTracker = { + focusRetriever: null, + focusRetrieved: false, + handlersList: [], + isIE8AndOlder: false, + init: function () { + try { + if ($.browser.msie == true && $.browser.version < 9) { + this.isIE8AndOlder = true; + } + } catch (ex) { + try { + var matches = navigator.userAgent.match(/(msie) ([\w.]+)/i); + if (matches[2] < 9) { + this.isIE8AndOlder = true; + } + } catch (ex2) {} + } + $(window).focus(); + $(window).blur(function (e) { + $.iframeTracker.windowLoseFocus(e); + }); + $("body").append( + '
' + ); + this.focusRetriever = $("#focus_retriever"); + this.focusRetrieved = false; + $(document).mousemove(function (e) { + if ( + document.activeElement && + document.activeElement.tagName == "IFRAME" + ) { + $.iframeTracker.focusRetriever.focus(); + $.iframeTracker.focusRetrieved = true; + } + }); + if (this.isIE8AndOlder) { + this.focusRetriever.blur(function (e) { + e.stopPropagation(); + e.preventDefault(); + $.iframeTracker.windowLoseFocus(e); + }); + $("body").click(function (e) { + $(window).focus(); + }); + $("form").click(function (e) { + e.stopPropagation(); + }); + try { + $("body").on("click", "form", function (e) { + e.stopPropagation(); + }); + } catch (ex) { + console.log( + "[iframeTracker] Please update jQuery to 1.7 or newer. (exception: " + + ex.message + + ")" + ); + } + } + }, + track: function (target, handler) { + handler.target = target; + $.iframeTracker.handlersList.push(handler); + $(target) + .bind( + "mouseover", + { handler: handler }, + $.iframeTracker.mouseoverListener + ) + .bind( + "mouseout", + { handler: handler }, + $.iframeTracker.mouseoutListener + ); + }, + untrack: function (target) { + if (typeof Array.prototype.filter != "function") { + console.log( + "Your browser doesn't support Array filter, untrack disabled" + ); + return; + } + $(target).each(function (index) { + $(this) + .unbind("mouseover", $.iframeTracker.mouseoverListener) + .unbind("mouseout", $.iframeTracker.mouseoutListener); + }); + var nullFilter = function (value) { + return value === null ? false : true; + }; + for (var i in this.handlersList) { + for (var j in this.handlersList[i].target) { + if ( + $.inArray(this.handlersList[i].target[j], target) !== -1 + ) { + this.handlersList[i].target[j] = null; + } + } + this.handlersList[i].target = + this.handlersList[i].target.filter(nullFilter); + if (this.handlersList[i].target.length == 0) { + this.handlersList[i] = null; + } + } + this.handlersList = this.handlersList.filter(nullFilter); + }, + mouseoverListener: function (e) { + e.data.handler.over = true; + try { + e.data.handler.overCallback(this); + } catch (ex) {} + }, + mouseoutListener: function (e) { + e.data.handler.over = false; + $.iframeTracker.focusRetriever.focus(); + try { + e.data.handler.outCallback(this); + } catch (ex) {} + }, + windowLoseFocus: function (event) { + for (var i in this.handlersList) { + if (this.handlersList[i].over == true) { + try { + this.handlersList[i].blurCallback(); + } catch (ex) {} + } + } + }, + }; + $(document).ready(function () { + $.iframeTracker.init(); + }); +})(jQuery); diff --git a/Updated_Cms/resources/themes/dusk/views/public/assets/js/dusk.js b/Updated_Cms/resources/themes/dusk/views/public/assets/js/dusk.js new file mode 100644 index 0000000000..f125207e8a --- /dev/null +++ b/Updated_Cms/resources/themes/dusk/views/public/assets/js/dusk.js @@ -0,0 +1,21 @@ +function isTouchDevice() { + return ( + "ontouchstart" in window || + navigator.maxTouchPoints > 0 || + navigator.msMaxTouchPoints > 0 + ); +} + +// Use the isTouchDevice function +document.addEventListener("DOMContentLoaded", function () { + const isTouch = isTouchDevice(); + + // Now you can use the isTouch variable to conditionally handle touch devices + if (isTouch) { + // Handle touch devices here + console.log("This is a touch device."); + } else { + // Handle non-touch devices here + console.log("This is not a touch device."); + } +}); diff --git a/Updated_Cms/resources/themes/dusk/views/public/assets/js/expressInstall.swf b/Updated_Cms/resources/themes/dusk/views/public/assets/js/expressInstall.swf new file mode 100644 index 0000000000000000000000000000000000000000..86958bf3a726d6e946e36fb5d34aaf315c9f0b24 GIT binary patch literal 773 zcmV+g1N!_!S5pQ-1pokeoP|`)Pt-sZ|8;lSEwI4K*P@gUAu&n}HSvZZ1PFwL1zA83 z#=~qoK%v_y{QdanFT+{w@Z$&6T61KWAk)|Bv_e13 zkzQ;4o&u7j&L%&Rbo@gZgY7bt`wO<^ArQVUco)Icx1Iz$4zdt3Vd!_J~za6aTSF^ zv*wWj_qQlBDW*%Qh0S3w+b%KVVDs71dTF1GvFIK}IVLX)XduinxNUQ@0WC30>N}o! zfs~oyyJbqvCJncY%}OA6838v!-x3v2KKE$REi=oZhS;l>^CCrO`0sUmoQT`uOOu;q$6 z<1wpLl5wyqJ7`kX;<6{Fxuz}PE2`~CqyDMTstKsdnp_h_xh7Y--z9J#Qch{r3^Ix| zY?;Y7Ii^WhkbL|$fhUn|CW@qLyV8B;f9`SK)?zc-Ru5WDQM`J@cCFfi%&#QSu{?Cr z+dO47+WT0El2ODo)ND#oJJ!}4Kqmp6SAi}9x(K+2g<_uQx;mdgu9>dfO#WmHmO~fB zwl@V6VL+ECF##orl&8!NIZCpil=6m7F5}+VAx1_(hoWP3OC?`ddg2}8P?yWZU&#pU zyAA|S`>(kLz(c%xfPHqz0>igFF-4=}MthU|rRVb?Scz+2sQcc%_lSyYh1whUsV`!p zKbnU;b*BUBKqL9hX!lleS`s;^YU+TtJS}a8{^W9)Z0I-Gn1C1`i8`)kF72nuKvgp> z7h-#+EfR^Hl= version; + }; + self.minorAtLeast = function (version) { + return self.minor >= version; + }; + self.revisionAtLeast = function (version) { + return self.revision >= version; + }; + self.versionAtLeast = function (major) { + var properties = [self.major, self.minor, self.revision]; + var len = Math.min(properties.length, arguments.length); + for (i = 0; i < len; i++) { + if (properties[i] >= arguments[i]) { + if (i + 1 < len && properties[i] == arguments[i]) { + continue; + } else { + return true; + } + } else { + return false; + } + } + }; + self.FlashDetect = (function () { + if (navigator.plugins && navigator.plugins.length > 0) { + var type = "application/x-shockwave-flash"; + var mimeTypes = navigator.mimeTypes; + if ( + mimeTypes && + mimeTypes[type] && + mimeTypes[type].enabledPlugin && + mimeTypes[type].enabledPlugin.description + ) { + var version = mimeTypes[type].enabledPlugin.description; + var versionObj = parseStandardVersion(version); + self.raw = versionObj.raw; + self.major = versionObj.major; + self.minor = versionObj.minor; + self.revisionStr = versionObj.revisionStr; + self.revision = versionObj.revision; + self.installed = true; + } + } else if ( + navigator.appVersion.indexOf("Mac") == -1 && + window.execScript + ) { + var version = -1; + for ( + var i = 0; + i < activeXDetectRules.length && version == -1; + i++ + ) { + var obj = getActiveXObject(activeXDetectRules[i].name); + if (!obj.activeXError) { + self.installed = true; + version = activeXDetectRules[i].version(obj); + if (version != -1) { + var versionObj = parseActiveXVersion(version); + self.raw = versionObj.raw; + self.major = versionObj.major; + self.minor = versionObj.minor; + self.revision = versionObj.revision; + self.revisionStr = versionObj.revisionStr; + } + } + } + } + })(); +})(); +FlashDetect.JS_RELEASE = "1.0.4"; diff --git a/Updated_Cms/resources/themes/dusk/views/public/assets/js/flashclient.js b/Updated_Cms/resources/themes/dusk/views/public/assets/js/flashclient.js new file mode 100644 index 0000000000..39d9a7e7b8 --- /dev/null +++ b/Updated_Cms/resources/themes/dusk/views/public/assets/js/flashclient.js @@ -0,0 +1,347 @@ +var _33611 = "21421"; +var _26452 = "19895"; +var _89563 = "18563"; +var _54489 = "23541"; +var _48962 = "21535"; +var _99871 = "36421"; +if (typeof deconcept == "undefined") { + var deconcept = new Object(); +} +if (typeof deconcept.util == "undefined") { + deconcept.util = new Object(); +} +if (typeof deconcept.SWFObjectUtil == "undefined") { + deconcept.SWFObjectUtil = new Object(); +} +deconcept.SWFObject = function (_1, id, w, h, _5, c, _7, _8, _9, _a) { + if (!document.getElementById) { + return; + } + this.DETECT_KEY = _a ? _a : "detectflash"; + this.skipDetect = deconcept.util.getRequestParameter(this.DETECT_KEY); + this.params = new Object(); + this.variables = new Object(); + this.attributes = new Array(); + if (_1) { + this.setAttribute("swf", _1); + } + if (id) { + this.setAttribute("id", id); + } + if (w) { + this.setAttribute("width", w); + } + if (h) { + this.setAttribute("height", h); + } + if (_5) { + this.setAttribute( + "version", + new deconcept.PlayerVersion(_5.toString().split(".")) + ); + } + this.installedVer = deconcept.SWFObjectUtil.getPlayerVersion(); + if (!window.opera && document.all && this.installedVer.major > 7) { + deconcept.SWFObject.doPrepUnload = true; + } + if (c) { + this.addParam("bgcolor", c); + } + var q = _7 ? _7 : "high"; + this.addParam("quality", q); + this.setAttribute("useExpressInstall", false); + this.setAttribute("doExpressInstall", false); + var _c = _8 ? _8 : window.location; + this.setAttribute("xiRedirectUrl", _c); + this.setAttribute("redirectUrl", ""); + if (_9) { + this.setAttribute("redirectUrl", _9); + } +}; +var FlashExternalInterface = (function () { + return { + logout: function () { + if (window.opener) { + try { + window.opener.location = FlashExternalInterface.signoutUrl; + window.close(); + } catch (k) { + window.location = FlashExternalInterface.signoutUrl; + } + } else { + window.location = FlashExternalInterface.signoutUrl; + } + }, + getClient: function () { + return document.getElementById("flash-container"); + }, + }; +})(); +deconcept.SWFObject.prototype = { + useExpressInstall: function (_d) { + this.xiSWFPath = !_d ? "expressinstall.swf" : _d; + this.setAttribute("useExpressInstall", true); + }, + setAttribute: function (_e, _f) { + this.attributes[_e] = _f; + }, + getAttribute: function (_10) { + return this.attributes[_10]; + }, + addParam: function (_11, _12) { + this.params[_11] = _12; + }, + getParams: function () { + return this.params; + }, + addVariable: function (_13, _14) { + this.variables[_13] = _14; + }, + getVariable: function (_15) { + return this.variables[_15]; + }, + getVariables: function () { + return this.variables; + }, + getVariablePairs: function () { + var _16 = new Array(); + var key; + var _18 = this.getVariables(); + for (key in _18) { + _16[_16.length] = key + "=" + _18[key]; + } + return _16; + }, + getSWFHTML: function () { + var _19 = ""; + if ( + navigator.plugins && + navigator.mimeTypes && + navigator.mimeTypes.length + ) { + if (this.getAttribute("doExpressInstall")) { + this.addVariable("MMplayerType", "PlugIn"); + this.setAttribute("swf", this.xiSWFPath); + } + _19 = + ' 0) { + _19 += 'flashvars="' + _1c + '"'; + } + _19 += "/>"; + } else { + if (this.getAttribute("doExpressInstall")) { + this.addVariable("MMplayerType", "ActiveX"); + this.setAttribute("swf", this.xiSWFPath); + } + _19 = + ''; + _19 += + ''; + var _1d = this.getParams(); + for (var key in _1d) { + _19 += ''; + } + var _1f = this.getVariablePairs().join("&"); + if (_1f.length > 0) { + _19 += ''; + } + _19 += ""; + } + return _19; + }, + write: function (_20) { + if (this.getAttribute("useExpressInstall")) { + var _21 = new deconcept.PlayerVersion([6, 0, 65]); + if ( + this.installedVer.versionIsValid(_21) && + !this.installedVer.versionIsValid(this.getAttribute("version")) + ) { + this.setAttribute("doExpressInstall", true); + this.addVariable( + "MMredirectURL", + escape(this.getAttribute("xiRedirectUrl")) + ); + document.title = + document.title.slice(0, 47) + + " - Flash Player Installation"; + this.addVariable("MMdoctitle", document.title); + } + } + if ( + this.skipDetect || + this.getAttribute("doExpressInstall") || + this.installedVer.versionIsValid(this.getAttribute("version")) + ) { + var n = typeof _20 == "string" ? document.getElementById(_20) : _20; + n.innerHTML = this.getSWFHTML(); + return true; + } else { + if (this.getAttribute("redirectUrl") != "") { + document.location.replace(this.getAttribute("redirectUrl")); + } + } + return false; + }, +}; +deconcept.SWFObjectUtil.getPlayerVersion = function () { + var _23 = new deconcept.PlayerVersion([0, 0, 0]); + if (navigator.plugins && navigator.mimeTypes.length) { + var x = navigator.plugins["Shockwave Flash"]; + if (x && x.description) { + _23 = new deconcept.PlayerVersion( + x.description + .replace(/([a-zA-Z]|\s)+/, "") + .replace(/(\s+r|\s+b[0-9]+)/, ".") + .split(".") + ); + } + } else { + if ( + navigator.userAgent && + navigator.userAgent.indexOf("Windows CE") >= 0 + ) { + var axo = 1; + var _26 = 3; + while (axo) { + try { + _26++; + axo = new ActiveXObject( + "ShockwaveFlash.ShockwaveFlash." + _26 + ); + _23 = new deconcept.PlayerVersion([_26, 0, 0]); + } catch (e) { + axo = null; + } + } + } else { + try { + var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"); + } catch (e) { + try { + var axo = new ActiveXObject( + "ShockwaveFlash.ShockwaveFlash.6" + ); + _23 = new deconcept.PlayerVersion([6, 0, 21]); + axo.AllowScriptAccess = "always"; + } catch (e) { + if (_23.major == 6) { + return _23; + } + } + try { + axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash"); + } catch (e) {} + } + if (axo != null) { + _23 = new deconcept.PlayerVersion( + axo.GetVariable("$version").split(" ")[1].split(",") + ); + } + } + } + return _23; +}; +deconcept.PlayerVersion = function (_29) { + this.major = _29[0] != null ? parseInt(_29[0]) : 0; + this.minor = _29[1] != null ? parseInt(_29[1]) : 0; + this.rev = _29[2] != null ? parseInt(_29[2]) : 0; +}; +deconcept.PlayerVersion.prototype.versionIsValid = function (fv) { + if (this.major < fv.major) { + return false; + } + if (this.major > fv.major) { + return true; + } + if (this.minor < fv.minor) { + return false; + } + if (this.minor > fv.minor) { + return true; + } + if (this.rev < fv.rev) { + return false; + } + return true; +}; +deconcept.util = { + getRequestParameter: function (_2b) { + var q = document.location.search || document.location.hash; + if (_2b == null) { + return q; + } + if (q) { + var _2d = q.substring(1).split("&"); + for (var i = 0; i < _2d.length; i++) { + if (_2d[i].substring(0, _2d[i].indexOf("=")) == _2b) { + return _2d[i].substring(_2d[i].indexOf("=") + 1); + } + } + } + return ""; + }, +}; +deconcept.SWFObjectUtil.cleanupSWFs = function () { + var _2f = document.getElementsByTagName("OBJECT"); + for (var i = _2f.length - 1; i >= 0; i--) { + _2f[i].style.display = "none"; + for (var x in _2f[i]) { + if (typeof _2f[i][x] == "function") { + _2f[i][x] = function () {}; + } + } + } +}; +if (deconcept.SWFObject.doPrepUnload) { + if (!deconcept.unloadSet) { + deconcept.SWFObjectUtil.prepUnload = function () { + __flash_unloadHandler = function () {}; + __flash_savedUnloadHandler = function () {}; + window.attachEvent("onunload", deconcept.SWFObjectUtil.cleanupSWFs); + }; + window.attachEvent( + "onbeforeunload", + deconcept.SWFObjectUtil.prepUnload + ); + deconcept.unloadSet = true; + } +} +if (!document.getElementById && document.all) { + document.getElementById = function (id) { + return document.all[id]; + }; +} +var _15567 = _48962; +var getQueryParamValue = deconcept.util.getRequestParameter; +var FlashObject = deconcept.SWFObject; +var SWFObject = deconcept.SWFObject; diff --git a/Updated_Cms/resources/themes/dusk/views/public/assets/js/jquery-latest.js b/Updated_Cms/resources/themes/dusk/views/public/assets/js/jquery-latest.js new file mode 100644 index 0000000000..04275c9065 --- /dev/null +++ b/Updated_Cms/resources/themes/dusk/views/public/assets/js/jquery-latest.js @@ -0,0 +1,11698 @@ +/*! + * jQuery JavaScript Library v1.11.1 + * http://jquery.com/ + * + * Includes Sizzle.js + * http://sizzlejs.com/ + * + * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors + * Released under the MIT license + * http://jquery.org/license + * + * Date: 2014-05-01T17:42Z + */ + +(function (global, factory) { + if (typeof module === "object" && typeof module.exports === "object") { + // For CommonJS and CommonJS-like environments where a proper window is present, + // execute the factory and get jQuery + // For environments that do not inherently posses a window with a document + // (such as Node.js), expose a jQuery-making factory as module.exports + // This accentuates the need for the creation of a real window + // e.g. var jQuery = require("jquery")(window); + // See ticket #14549 for more info + module.exports = global.document + ? factory(global, true) + : function (w) { + if (!w.document) { + throw new Error( + "jQuery requires a window with a document" + ); + } + return factory(w); + }; + } else { + factory(global); + } + + // Pass this if window is not defined yet +})(typeof window !== "undefined" ? window : this, function (window, noGlobal) { + // Can't do this because several apps including ASP.NET trace + // the stack via arguments.caller.callee and Firefox dies if + // you try to trace through "use strict" call chains. (#13335) + // Support: Firefox 18+ + // + + var deletedIds = []; + + var slice = deletedIds.slice; + + var concat = deletedIds.concat; + + var push = deletedIds.push; + + var indexOf = deletedIds.indexOf; + + var class2type = {}; + + var toString = class2type.toString; + + var hasOwn = class2type.hasOwnProperty; + + var support = {}; + + var version = "1.11.1", + // Define a local copy of jQuery + jQuery = function (selector, context) { + // The jQuery object is actually just the init constructor 'enhanced' + // Need init if jQuery is called (just allow error to be thrown if not included) + return new jQuery.fn.init(selector, context); + }, + // Support: Android<4.1, IE<9 + // Make sure we trim BOM and NBSP + rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, + // Matches dashed string for camelizing + rmsPrefix = /^-ms-/, + rdashAlpha = /-([\da-z])/gi, + // Used by jQuery.camelCase as callback to replace() + fcamelCase = function (all, letter) { + return letter.toUpperCase(); + }; + + jQuery.fn = jQuery.prototype = { + // The current version of jQuery being used + jquery: version, + + constructor: jQuery, + + // Start with an empty selector + selector: "", + + // The default length of a jQuery object is 0 + length: 0, + + toArray: function () { + return slice.call(this); + }, + + // Get the Nth element in the matched element set OR + // Get the whole matched element set as a clean array + get: function (num) { + return num != null + ? // Return just the one element from the set + num < 0 + ? this[num + this.length] + : this[num] + : // Return all the elements in a clean array + slice.call(this); + }, + + // Take an array of elements and push it onto the stack + // (returning the new matched element set) + pushStack: function (elems) { + // Build a new jQuery matched element set + var ret = jQuery.merge(this.constructor(), elems); + + // Add the old object onto the stack (as a reference) + ret.prevObject = this; + ret.context = this.context; + + // Return the newly-formed element set + return ret; + }, + + // Execute a callback for every element in the matched set. + // (You can seed the arguments with an array of args, but this is + // only used internally.) + each: function (callback, args) { + return jQuery.each(this, callback, args); + }, + + map: function (callback) { + return this.pushStack( + jQuery.map(this, function (elem, i) { + return callback.call(elem, i, elem); + }) + ); + }, + + slice: function () { + return this.pushStack(slice.apply(this, arguments)); + }, + + first: function () { + return this.eq(0); + }, + + last: function () { + return this.eq(-1); + }, + + eq: function (i) { + var len = this.length, + j = +i + (i < 0 ? len : 0); + return this.pushStack(j >= 0 && j < len ? [this[j]] : []); + }, + + end: function () { + return this.prevObject || this.constructor(null); + }, + + // For internal use only. + // Behaves like an Array's method, not like a jQuery method. + push: push, + sort: deletedIds.sort, + splice: deletedIds.splice, + }; + + jQuery.extend = jQuery.fn.extend = function () { + var src, + copyIsArray, + copy, + name, + options, + clone, + target = arguments[0] || {}, + i = 1, + length = arguments.length, + deep = false; + + // Handle a deep copy situation + if (typeof target === "boolean") { + deep = target; + + // skip the boolean and the target + target = arguments[i] || {}; + i++; + } + + // Handle case when target is a string or something (possible in deep copy) + if (typeof target !== "object" && !jQuery.isFunction(target)) { + target = {}; + } + + // extend jQuery itself if only one argument is passed + if (i === length) { + target = this; + i--; + } + + for (; i < length; i++) { + // Only deal with non-null/undefined values + if ((options = arguments[i]) != null) { + // Extend the base object + for (name in options) { + src = target[name]; + copy = options[name]; + + // Prevent never-ending loop + if (target === copy) { + continue; + } + + // Recurse if we're merging plain objects or arrays + if ( + deep && + copy && + (jQuery.isPlainObject(copy) || + (copyIsArray = jQuery.isArray(copy))) + ) { + if (copyIsArray) { + copyIsArray = false; + clone = src && jQuery.isArray(src) ? src : []; + } else { + clone = src && jQuery.isPlainObject(src) ? src : {}; + } + + // Never move original objects, clone them + target[name] = jQuery.extend(deep, clone, copy); + + // Don't bring in undefined values + } else if (copy !== undefined) { + target[name] = copy; + } + } + } + } + + // Return the modified object + return target; + }; + + jQuery.extend({ + // Unique for each copy of jQuery on the page + expando: "jQuery" + (version + Math.random()).replace(/\D/g, ""), + + // Assume jQuery is ready without the ready module + isReady: true, + + error: function (msg) { + throw new Error(msg); + }, + + noop: function () {}, + + // See test/unit/core.js for details concerning isFunction. + // Since version 1.3, DOM methods and functions like alert + // aren't supported. They return false on IE (#2968). + isFunction: function (obj) { + return jQuery.type(obj) === "function"; + }, + + isArray: + Array.isArray || + function (obj) { + return jQuery.type(obj) === "array"; + }, + + isWindow: function (obj) { + /* jshint eqeqeq: false */ + return obj != null && obj == obj.window; + }, + + isNumeric: function (obj) { + // parseFloat NaNs numeric-cast false positives (null|true|false|"") + // ...but misinterprets leading-number strings, particularly hex literals ("0x...") + // subtraction forces infinities to NaN + return !jQuery.isArray(obj) && obj - parseFloat(obj) >= 0; + }, + + isEmptyObject: function (obj) { + var name; + for (name in obj) { + return false; + } + return true; + }, + + isPlainObject: function (obj) { + var key; + + // Must be an Object. + // Because of IE, we also have to check the presence of the constructor property. + // Make sure that DOM nodes and window objects don't pass through, as well + if ( + !obj || + jQuery.type(obj) !== "object" || + obj.nodeType || + jQuery.isWindow(obj) + ) { + return false; + } + + try { + // Not own constructor property must be Object + if ( + obj.constructor && + !hasOwn.call(obj, "constructor") && + !hasOwn.call(obj.constructor.prototype, "isPrototypeOf") + ) { + return false; + } + } catch (e) { + // IE8,9 Will throw exceptions on certain host objects #9897 + return false; + } + + // Support: IE<9 + // Handle iteration over inherited properties before own properties. + if (support.ownLast) { + for (key in obj) { + return hasOwn.call(obj, key); + } + } + + // Own properties are enumerated firstly, so to speed up, + // if last one is own, then all properties are own. + for (key in obj) { + } + + return key === undefined || hasOwn.call(obj, key); + }, + + type: function (obj) { + if (obj == null) { + return obj + ""; + } + return typeof obj === "object" || typeof obj === "function" + ? class2type[toString.call(obj)] || "object" + : typeof obj; + }, + + // Evaluates a script in a global context + // Workarounds based on findings by Jim Driscoll + // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context + globalEval: function (data) { + if (data && jQuery.trim(data)) { + // We use execScript on Internet Explorer + // We use an anonymous function so that context is window + // rather than jQuery in Firefox + ( + window.execScript || + function (data) { + window["eval"].call(window, data); + } + )(data); + } + }, + + // Convert dashed to camelCase; used by the css and data modules + // Microsoft forgot to hump their vendor prefix (#9572) + camelCase: function (string) { + return string + .replace(rmsPrefix, "ms-") + .replace(rdashAlpha, fcamelCase); + }, + + nodeName: function (elem, name) { + return ( + elem.nodeName && + elem.nodeName.toLowerCase() === name.toLowerCase() + ); + }, + + // args is for internal usage only + each: function (obj, callback, args) { + var value, + i = 0, + length = obj.length, + isArray = isArraylike(obj); + + if (args) { + if (isArray) { + for (; i < length; i++) { + value = callback.apply(obj[i], args); + + if (value === false) { + break; + } + } + } else { + for (i in obj) { + value = callback.apply(obj[i], args); + + if (value === false) { + break; + } + } + } + + // A special, fast, case for the most common use of each + } else { + if (isArray) { + for (; i < length; i++) { + value = callback.call(obj[i], i, obj[i]); + + if (value === false) { + break; + } + } + } else { + for (i in obj) { + value = callback.call(obj[i], i, obj[i]); + + if (value === false) { + break; + } + } + } + } + + return obj; + }, + + // Support: Android<4.1, IE<9 + trim: function (text) { + return text == null ? "" : (text + "").replace(rtrim, ""); + }, + + // results is for internal usage only + makeArray: function (arr, results) { + var ret = results || []; + + if (arr != null) { + if (isArraylike(Object(arr))) { + jQuery.merge(ret, typeof arr === "string" ? [arr] : arr); + } else { + push.call(ret, arr); + } + } + + return ret; + }, + + inArray: function (elem, arr, i) { + var len; + + if (arr) { + if (indexOf) { + return indexOf.call(arr, elem, i); + } + + len = arr.length; + i = i ? (i < 0 ? Math.max(0, len + i) : i) : 0; + + for (; i < len; i++) { + // Skip accessing in sparse arrays + if (i in arr && arr[i] === elem) { + return i; + } + } + } + + return -1; + }, + + merge: function (first, second) { + var len = +second.length, + j = 0, + i = first.length; + + while (j < len) { + first[i++] = second[j++]; + } + + // Support: IE<9 + // Workaround casting of .length to NaN on otherwise arraylike objects (e.g., NodeLists) + if (len !== len) { + while (second[j] !== undefined) { + first[i++] = second[j++]; + } + } + + first.length = i; + + return first; + }, + + grep: function (elems, callback, invert) { + var callbackInverse, + matches = [], + i = 0, + length = elems.length, + callbackExpect = !invert; + + // Go through the array, only saving the items + // that pass the validator function + for (; i < length; i++) { + callbackInverse = !callback(elems[i], i); + if (callbackInverse !== callbackExpect) { + matches.push(elems[i]); + } + } + + return matches; + }, + + // arg is for internal usage only + map: function (elems, callback, arg) { + var value, + i = 0, + length = elems.length, + isArray = isArraylike(elems), + ret = []; + + // Go through the array, translating each of the items to their new values + if (isArray) { + for (; i < length; i++) { + value = callback(elems[i], i, arg); + + if (value != null) { + ret.push(value); + } + } + + // Go through every key on the object, + } else { + for (i in elems) { + value = callback(elems[i], i, arg); + + if (value != null) { + ret.push(value); + } + } + } + + // Flatten any nested arrays + return concat.apply([], ret); + }, + + // A global GUID counter for objects + guid: 1, + + // Bind a function to a context, optionally partially applying any + // arguments. + proxy: function (fn, context) { + var args, proxy, tmp; + + if (typeof context === "string") { + tmp = fn[context]; + context = fn; + fn = tmp; + } + + // Quick check to determine if target is callable, in the spec + // this throws a TypeError, but we will just return undefined. + if (!jQuery.isFunction(fn)) { + return undefined; + } + + // Simulated bind + args = slice.call(arguments, 2); + proxy = function () { + return fn.apply( + context || this, + args.concat(slice.call(arguments)) + ); + }; + + // Set the guid of unique handler to the same of original handler, so it can be removed + proxy.guid = fn.guid = fn.guid || jQuery.guid++; + + return proxy; + }, + + now: function () { + return +new Date(); + }, + + // jQuery.support is not used in Core but other projects attach their + // properties to it so it needs to exist. + support: support, + }); + + // Populate the class2type map + jQuery.each( + "Boolean Number String Function Array Date RegExp Object Error".split( + " " + ), + function (i, name) { + class2type["[object " + name + "]"] = name.toLowerCase(); + } + ); + + function isArraylike(obj) { + var length = obj.length, + type = jQuery.type(obj); + + if (type === "function" || jQuery.isWindow(obj)) { + return false; + } + + if (obj.nodeType === 1 && length) { + return true; + } + + return ( + type === "array" || + length === 0 || + (typeof length === "number" && length > 0 && length - 1 in obj) + ); + } + var Sizzle = + /*! + * Sizzle CSS Selector Engine v1.10.19 + * http://sizzlejs.com/ + * + * Copyright 2013 jQuery Foundation, Inc. and other contributors + * Released under the MIT license + * http://jquery.org/license + * + * Date: 2014-04-18 + */ + (function (window) { + var i, + support, + Expr, + getText, + isXML, + tokenize, + compile, + select, + outermostContext, + sortInput, + hasDuplicate, + // Local document vars + setDocument, + document, + docElem, + documentIsHTML, + rbuggyQSA, + rbuggyMatches, + matches, + contains, + // Instance-specific data + expando = "sizzle" + -new Date(), + preferredDoc = window.document, + dirruns = 0, + done = 0, + classCache = createCache(), + tokenCache = createCache(), + compilerCache = createCache(), + sortOrder = function (a, b) { + if (a === b) { + hasDuplicate = true; + } + return 0; + }, + // General-purpose constants + strundefined = typeof undefined, + MAX_NEGATIVE = 1 << 31, + // Instance methods + hasOwn = {}.hasOwnProperty, + arr = [], + pop = arr.pop, + push_native = arr.push, + push = arr.push, + slice = arr.slice, + // Use a stripped-down indexOf if we can't use a native one + indexOf = + arr.indexOf || + function (elem) { + var i = 0, + len = this.length; + for (; i < len; i++) { + if (this[i] === elem) { + return i; + } + } + return -1; + }, + booleans = + "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", + // Regular expressions + + // Whitespace characters http://www.w3.org/TR/css3-selectors/#whitespace + whitespace = "[\\x20\\t\\r\\n\\f]", + // http://www.w3.org/TR/css3-syntax/#characters + characterEncoding = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+", + // Loosely modeled on CSS identifier characters + // An unquoted value should be a CSS identifier http://www.w3.org/TR/css3-selectors/#attribute-selectors + // Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier + identifier = characterEncoding.replace("w", "w#"), + // Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors + attributes = + "\\[" + + whitespace + + "*(" + + characterEncoding + + ")(?:" + + whitespace + + // Operator (capture 2) + "*([*^$|!~]?=)" + + whitespace + + // "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]" + "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + + identifier + + "))|)" + + whitespace + + "*\\]", + pseudos = + ":(" + + characterEncoding + + ")(?:\\((" + + // To reduce the number of selectors needing tokenize in the preFilter, prefer arguments: + // 1. quoted (capture 3; capture 4 or capture 5) + "('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" + + // 2. simple (capture 6) + "((?:\\\\.|[^\\\\()[\\]]|" + + attributes + + ")*)|" + + // 3. anything else (capture 2) + ".*" + + ")\\)|)", + // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter + rtrim = new RegExp( + "^" + + whitespace + + "+|((?:^|[^\\\\])(?:\\\\.)*)" + + whitespace + + "+$", + "g" + ), + rcomma = new RegExp("^" + whitespace + "*," + whitespace + "*"), + rcombinators = new RegExp( + "^" + + whitespace + + "*([>+~]|" + + whitespace + + ")" + + whitespace + + "*" + ), + rattributeQuotes = new RegExp( + "=" + whitespace + "*([^\\]'\"]*?)" + whitespace + "*\\]", + "g" + ), + rpseudo = new RegExp(pseudos), + ridentifier = new RegExp("^" + identifier + "$"), + matchExpr = { + ID: new RegExp("^#(" + characterEncoding + ")"), + CLASS: new RegExp("^\\.(" + characterEncoding + ")"), + TAG: new RegExp( + "^(" + characterEncoding.replace("w", "w*") + ")" + ), + ATTR: new RegExp("^" + attributes), + PSEUDO: new RegExp("^" + pseudos), + CHILD: new RegExp( + "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + + whitespace + + "*(even|odd|(([+-]|)(\\d*)n|)" + + whitespace + + "*(?:([+-]|)" + + whitespace + + "*(\\d+)|))" + + whitespace + + "*\\)|)", + "i" + ), + bool: new RegExp("^(?:" + booleans + ")$", "i"), + // For use in libraries implementing .is() + // We use this for POS matching in `select` + needsContext: new RegExp( + "^" + + whitespace + + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + + whitespace + + "*((?:-\\d)?\\d*)" + + whitespace + + "*\\)|)(?=[^-]|$)", + "i" + ), + }, + rinputs = /^(?:input|select|textarea|button)$/i, + rheader = /^h\d$/i, + rnative = /^[^{]+\{\s*\[native \w/, + // Easily-parseable/retrievable ID or TAG or CLASS selectors + rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, + rsibling = /[+~]/, + rescape = /'|\\/g, + // CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters + runescape = new RegExp( + "\\\\([\\da-f]{1,6}" + + whitespace + + "?|(" + + whitespace + + ")|.)", + "ig" + ), + funescape = function (_, escaped, escapedWhitespace) { + var high = "0x" + escaped - 0x10000; + // NaN means non-codepoint + // Support: Firefox<24 + // Workaround erroneous numeric interpretation of +"0x" + return high !== high || escapedWhitespace + ? escaped + : high < 0 + ? // BMP codepoint + String.fromCharCode(high + 0x10000) + : // Supplemental Plane codepoint (surrogate pair) + String.fromCharCode( + (high >> 10) | 0xd800, + (high & 0x3ff) | 0xdc00 + ); + }; + + // Optimize for push.apply( _, NodeList ) + try { + push.apply( + (arr = slice.call(preferredDoc.childNodes)), + preferredDoc.childNodes + ); + // Support: Android<4.0 + // Detect silently failing push.apply + arr[preferredDoc.childNodes.length].nodeType; + } catch (e) { + push = { + apply: arr.length + ? // Leverage slice if possible + function (target, els) { + push_native.apply(target, slice.call(els)); + } + : // Support: IE<9 + // Otherwise append directly + function (target, els) { + var j = target.length, + i = 0; + // Can't trust NodeList.length + while ((target[j++] = els[i++])) {} + target.length = j - 1; + }, + }; + } + + function Sizzle(selector, context, results, seed) { + var match, + elem, + m, + nodeType, + // QSA vars + i, + groups, + old, + nid, + newContext, + newSelector; + + if ( + (context + ? context.ownerDocument || context + : preferredDoc) !== document + ) { + setDocument(context); + } + + context = context || document; + results = results || []; + + if (!selector || typeof selector !== "string") { + return results; + } + + if ((nodeType = context.nodeType) !== 1 && nodeType !== 9) { + return []; + } + + if (documentIsHTML && !seed) { + // Shortcuts + if ((match = rquickExpr.exec(selector))) { + // Speed-up: Sizzle("#ID") + if ((m = match[1])) { + if (nodeType === 9) { + elem = context.getElementById(m); + // Check parentNode to catch when Blackberry 4.6 returns + // nodes that are no longer in the document (jQuery #6963) + if (elem && elem.parentNode) { + // Handle the case where IE, Opera, and Webkit return items + // by name instead of ID + if (elem.id === m) { + results.push(elem); + return results; + } + } else { + return results; + } + } else { + // Context is not a document + if ( + context.ownerDocument && + (elem = + context.ownerDocument.getElementById( + m + )) && + contains(context, elem) && + elem.id === m + ) { + results.push(elem); + return results; + } + } + + // Speed-up: Sizzle("TAG") + } else if (match[2]) { + push.apply( + results, + context.getElementsByTagName(selector) + ); + return results; + + // Speed-up: Sizzle(".CLASS") + } else if ( + (m = match[3]) && + support.getElementsByClassName && + context.getElementsByClassName + ) { + push.apply( + results, + context.getElementsByClassName(m) + ); + return results; + } + } + + // QSA path + if ( + support.qsa && + (!rbuggyQSA || !rbuggyQSA.test(selector)) + ) { + nid = old = expando; + newContext = context; + newSelector = nodeType === 9 && selector; + + // qSA works strangely on Element-rooted queries + // We can work around this by specifying an extra ID on the root + // and working up from there (Thanks to Andrew Dupont for the technique) + // IE 8 doesn't work on object elements + if ( + nodeType === 1 && + context.nodeName.toLowerCase() !== "object" + ) { + groups = tokenize(selector); + + if ((old = context.getAttribute("id"))) { + nid = old.replace(rescape, "\\$&"); + } else { + context.setAttribute("id", nid); + } + nid = "[id='" + nid + "'] "; + + i = groups.length; + while (i--) { + groups[i] = nid + toSelector(groups[i]); + } + newContext = + (rsibling.test(selector) && + testContext(context.parentNode)) || + context; + newSelector = groups.join(","); + } + + if (newSelector) { + try { + push.apply( + results, + newContext.querySelectorAll(newSelector) + ); + return results; + } catch (qsaError) { + } finally { + if (!old) { + context.removeAttribute("id"); + } + } + } + } + } + + // All others + return select( + selector.replace(rtrim, "$1"), + context, + results, + seed + ); + } + + /** + * Create key-value caches of limited size + * @returns {Function(string, Object)} Returns the Object data after storing it on itself with + * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength) + * deleting the oldest entry + */ + function createCache() { + var keys = []; + + function cache(key, value) { + // Use (key + " ") to avoid collision with native prototype properties (see Issue #157) + if (keys.push(key + " ") > Expr.cacheLength) { + // Only keep the most recent entries + delete cache[keys.shift()]; + } + return (cache[key + " "] = value); + } + return cache; + } + + /** + * Mark a function for special use by Sizzle + * @param {Function} fn The function to mark + */ + function markFunction(fn) { + fn[expando] = true; + return fn; + } + + /** + * Support testing using an element + * @param {Function} fn Passed the created div and expects a boolean result + */ + function assert(fn) { + var div = document.createElement("div"); + + try { + return !!fn(div); + } catch (e) { + return false; + } finally { + // Remove from its parent by default + if (div.parentNode) { + div.parentNode.removeChild(div); + } + // release memory in IE + div = null; + } + } + + /** + * Adds the same handler for all of the specified attrs + * @param {String} attrs Pipe-separated list of attributes + * @param {Function} handler The method that will be applied + */ + function addHandle(attrs, handler) { + var arr = attrs.split("|"), + i = attrs.length; + + while (i--) { + Expr.attrHandle[arr[i]] = handler; + } + } + + /** + * Checks document order of two siblings + * @param {Element} a + * @param {Element} b + * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b + */ + function siblingCheck(a, b) { + var cur = b && a, + diff = + cur && + a.nodeType === 1 && + b.nodeType === 1 && + (~b.sourceIndex || MAX_NEGATIVE) - + (~a.sourceIndex || MAX_NEGATIVE); + + // Use IE sourceIndex if available on both nodes + if (diff) { + return diff; + } + + // Check if b follows a + if (cur) { + while ((cur = cur.nextSibling)) { + if (cur === b) { + return -1; + } + } + } + + return a ? 1 : -1; + } + + /** + * Returns a function to use in pseudos for input types + * @param {String} type + */ + function createInputPseudo(type) { + return function (elem) { + var name = elem.nodeName.toLowerCase(); + return name === "input" && elem.type === type; + }; + } + + /** + * Returns a function to use in pseudos for buttons + * @param {String} type + */ + function createButtonPseudo(type) { + return function (elem) { + var name = elem.nodeName.toLowerCase(); + return ( + (name === "input" || name === "button") && + elem.type === type + ); + }; + } + + /** + * Returns a function to use in pseudos for positionals + * @param {Function} fn + */ + function createPositionalPseudo(fn) { + return markFunction(function (argument) { + argument = +argument; + return markFunction(function (seed, matches) { + var j, + matchIndexes = fn([], seed.length, argument), + i = matchIndexes.length; + + // Match elements found at the specified indexes + while (i--) { + if (seed[(j = matchIndexes[i])]) { + seed[j] = !(matches[j] = seed[j]); + } + } + }); + }); + } + + /** + * Checks a node for validity as a Sizzle context + * @param {Element|Object=} context + * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value + */ + function testContext(context) { + return ( + context && + typeof context.getElementsByTagName !== strundefined && + context + ); + } + + // Expose support vars for convenience + support = Sizzle.support = {}; + + /** + * Detects XML nodes + * @param {Element|Object} elem An element or a document + * @returns {Boolean} True iff elem is a non-HTML XML node + */ + isXML = Sizzle.isXML = function (elem) { + // documentElement is verified for cases where it doesn't yet exist + // (such as loading iframes in IE - #4833) + var documentElement = + elem && (elem.ownerDocument || elem).documentElement; + return documentElement + ? documentElement.nodeName !== "HTML" + : false; + }; + + /** + * Sets document-related variables once based on the current document + * @param {Element|Object} [doc] An element or document object to use to set the document + * @returns {Object} Returns the current document + */ + setDocument = Sizzle.setDocument = function (node) { + var hasCompare, + doc = node ? node.ownerDocument || node : preferredDoc, + parent = doc.defaultView; + + // If no document and documentElement is available, return + if ( + doc === document || + doc.nodeType !== 9 || + !doc.documentElement + ) { + return document; + } + + // Set our document + document = doc; + docElem = doc.documentElement; + + // Support tests + documentIsHTML = !isXML(doc); + + // Support: IE>8 + // If iframe document is assigned to "document" variable and if iframe has been reloaded, + // IE will throw "permission denied" error when accessing "document" variable, see jQuery #13936 + // IE6-8 do not support the defaultView property so parent will be undefined + if (parent && parent !== parent.top) { + // IE11 does not have attachEvent, so all must suffer + if (parent.addEventListener) { + parent.addEventListener( + "unload", + function () { + setDocument(); + }, + false + ); + } else if (parent.attachEvent) { + parent.attachEvent("onunload", function () { + setDocument(); + }); + } + } + + /* Attributes + ---------------------------------------------------------------------- */ + + // Support: IE<8 + // Verify that getAttribute really returns attributes and not properties (excepting IE8 booleans) + support.attributes = assert(function (div) { + div.className = "i"; + return !div.getAttribute("className"); + }); + + /* getElement(s)By* + ---------------------------------------------------------------------- */ + + // Check if getElementsByTagName("*") returns only elements + support.getElementsByTagName = assert(function (div) { + div.appendChild(doc.createComment("")); + return !div.getElementsByTagName("*").length; + }); + + // Check if getElementsByClassName can be trusted + support.getElementsByClassName = + rnative.test(doc.getElementsByClassName) && + assert(function (div) { + div.innerHTML = + "
"; + + // Support: Safari<4 + // Catch class over-caching + div.firstChild.className = "i"; + // Support: Opera<10 + // Catch gEBCN failure to find non-leading classes + return div.getElementsByClassName("i").length === 2; + }); + + // Support: IE<10 + // Check if getElementById returns elements by name + // The broken getElementById methods don't pick up programatically-set names, + // so use a roundabout getElementsByName test + support.getById = assert(function (div) { + docElem.appendChild(div).id = expando; + return ( + !doc.getElementsByName || + !doc.getElementsByName(expando).length + ); + }); + + // ID find and filter + if (support.getById) { + Expr.find["ID"] = function (id, context) { + if ( + typeof context.getElementById !== strundefined && + documentIsHTML + ) { + var m = context.getElementById(id); + // Check parentNode to catch when Blackberry 4.6 returns + // nodes that are no longer in the document #6963 + return m && m.parentNode ? [m] : []; + } + }; + Expr.filter["ID"] = function (id) { + var attrId = id.replace(runescape, funescape); + return function (elem) { + return elem.getAttribute("id") === attrId; + }; + }; + } else { + // Support: IE6/7 + // getElementById is not reliable as a find shortcut + delete Expr.find["ID"]; + + Expr.filter["ID"] = function (id) { + var attrId = id.replace(runescape, funescape); + return function (elem) { + var node = + typeof elem.getAttributeNode !== strundefined && + elem.getAttributeNode("id"); + return node && node.value === attrId; + }; + }; + } + + // Tag + Expr.find["TAG"] = support.getElementsByTagName + ? function (tag, context) { + if ( + typeof context.getElementsByTagName !== + strundefined + ) { + return context.getElementsByTagName(tag); + } + } + : function (tag, context) { + var elem, + tmp = [], + i = 0, + results = context.getElementsByTagName(tag); + + // Filter out possible comments + if (tag === "*") { + while ((elem = results[i++])) { + if (elem.nodeType === 1) { + tmp.push(elem); + } + } + + return tmp; + } + return results; + }; + + // Class + Expr.find["CLASS"] = + support.getElementsByClassName && + function (className, context) { + if ( + typeof context.getElementsByClassName !== + strundefined && + documentIsHTML + ) { + return context.getElementsByClassName(className); + } + }; + + /* QSA/matchesSelector + ---------------------------------------------------------------------- */ + + // QSA and matchesSelector support + + // matchesSelector(:active) reports false when true (IE9/Opera 11.5) + rbuggyMatches = []; + + // qSa(:focus) reports false when true (Chrome 21) + // We allow this because of a bug in IE8/9 that throws an error + // whenever `document.activeElement` is accessed on an iframe + // So, we allow :focus to pass through QSA all the time to avoid the IE error + // See http://bugs.jquery.com/ticket/13378 + rbuggyQSA = []; + + if ((support.qsa = rnative.test(doc.querySelectorAll))) { + // Build QSA regex + // Regex strategy adopted from Diego Perini + assert(function (div) { + // Select is set to empty string on purpose + // This is to test IE's treatment of not explicitly + // setting a boolean content attribute, + // since its presence should be enough + // http://bugs.jquery.com/ticket/12359 + div.innerHTML = + ""; + + // Support: IE8, Opera 11-12.16 + // Nothing should be selected when empty strings follow ^= or $= or *= + // The test attribute must be unknown in Opera but "safe" for WinRT + // http://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section + if (div.querySelectorAll("[msallowclip^='']").length) { + rbuggyQSA.push( + "[*^$]=" + whitespace + "*(?:''|\"\")" + ); + } + + // Support: IE8 + // Boolean attributes and "value" are not treated correctly + if (!div.querySelectorAll("[selected]").length) { + rbuggyQSA.push( + "\\[" + + whitespace + + "*(?:value|" + + booleans + + ")" + ); + } + + // Webkit/Opera - :checked should return selected option elements + // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked + // IE8 throws error here and will not see later tests + if (!div.querySelectorAll(":checked").length) { + rbuggyQSA.push(":checked"); + } + }); + + assert(function (div) { + // Support: Windows 8 Native Apps + // The type and name attributes are restricted during .innerHTML assignment + var input = doc.createElement("input"); + input.setAttribute("type", "hidden"); + div.appendChild(input).setAttribute("name", "D"); + + // Support: IE8 + // Enforce case-sensitivity of name attribute + if (div.querySelectorAll("[name=d]").length) { + rbuggyQSA.push("name" + whitespace + "*[*^$|!~]?="); + } + + // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled) + // IE8 throws error here and will not see later tests + if (!div.querySelectorAll(":enabled").length) { + rbuggyQSA.push(":enabled", ":disabled"); + } + + // Opera 10-11 does not throw on post-comma invalid pseudos + div.querySelectorAll("*,:x"); + rbuggyQSA.push(",.*:"); + }); + } + + if ( + (support.matchesSelector = rnative.test( + (matches = + docElem.matches || + docElem.webkitMatchesSelector || + docElem.mozMatchesSelector || + docElem.oMatchesSelector || + docElem.msMatchesSelector) + )) + ) { + assert(function (div) { + // Check to see if it's possible to do matchesSelector + // on a disconnected node (IE 9) + support.disconnectedMatch = matches.call(div, "div"); + + // This should fail with an exception + // Gecko does not error, returns false instead + matches.call(div, "[s!='']:x"); + rbuggyMatches.push("!=", pseudos); + }); + } + + rbuggyQSA = rbuggyQSA.length && new RegExp(rbuggyQSA.join("|")); + rbuggyMatches = + rbuggyMatches.length && new RegExp(rbuggyMatches.join("|")); + + /* Contains + ---------------------------------------------------------------------- */ + hasCompare = rnative.test(docElem.compareDocumentPosition); + + // Element contains another + // Purposefully does not implement inclusive descendent + // As in, an element does not contain itself + contains = + hasCompare || rnative.test(docElem.contains) + ? function (a, b) { + var adown = + a.nodeType === 9 ? a.documentElement : a, + bup = b && b.parentNode; + return ( + a === bup || + !!( + bup && + bup.nodeType === 1 && + (adown.contains + ? adown.contains(bup) + : a.compareDocumentPosition && + a.compareDocumentPosition(bup) & 16) + ) + ); + } + : function (a, b) { + if (b) { + while ((b = b.parentNode)) { + if (b === a) { + return true; + } + } + } + return false; + }; + + /* Sorting + ---------------------------------------------------------------------- */ + + // Document order sorting + sortOrder = hasCompare + ? function (a, b) { + // Flag for duplicate removal + if (a === b) { + hasDuplicate = true; + return 0; + } + + // Sort on method existence if only one input has compareDocumentPosition + var compare = + !a.compareDocumentPosition - + !b.compareDocumentPosition; + if (compare) { + return compare; + } + + // Calculate position if both inputs belong to the same document + compare = + (a.ownerDocument || a) === (b.ownerDocument || b) + ? a.compareDocumentPosition(b) + : // Otherwise we know they are disconnected + 1; + + // Disconnected nodes + if ( + compare & 1 || + (!support.sortDetached && + b.compareDocumentPosition(a) === compare) + ) { + // Choose the first element that is related to our preferred document + if ( + a === doc || + (a.ownerDocument === preferredDoc && + contains(preferredDoc, a)) + ) { + return -1; + } + if ( + b === doc || + (b.ownerDocument === preferredDoc && + contains(preferredDoc, b)) + ) { + return 1; + } + + // Maintain original order + return sortInput + ? indexOf.call(sortInput, a) - + indexOf.call(sortInput, b) + : 0; + } + + return compare & 4 ? -1 : 1; + } + : function (a, b) { + // Exit early if the nodes are identical + if (a === b) { + hasDuplicate = true; + return 0; + } + + var cur, + i = 0, + aup = a.parentNode, + bup = b.parentNode, + ap = [a], + bp = [b]; + + // Parentless nodes are either documents or disconnected + if (!aup || !bup) { + return a === doc + ? -1 + : b === doc + ? 1 + : aup + ? -1 + : bup + ? 1 + : sortInput + ? indexOf.call(sortInput, a) - + indexOf.call(sortInput, b) + : 0; + + // If the nodes are siblings, we can do a quick check + } else if (aup === bup) { + return siblingCheck(a, b); + } + + // Otherwise we need full lists of their ancestors for comparison + cur = a; + while ((cur = cur.parentNode)) { + ap.unshift(cur); + } + cur = b; + while ((cur = cur.parentNode)) { + bp.unshift(cur); + } + + // Walk down the tree looking for a discrepancy + while (ap[i] === bp[i]) { + i++; + } + + return i + ? // Do a sibling check if the nodes have a common ancestor + siblingCheck(ap[i], bp[i]) + : // Otherwise nodes in our document sort first + ap[i] === preferredDoc + ? -1 + : bp[i] === preferredDoc + ? 1 + : 0; + }; + + return doc; + }; + + Sizzle.matches = function (expr, elements) { + return Sizzle(expr, null, null, elements); + }; + + Sizzle.matchesSelector = function (elem, expr) { + // Set document vars if needed + if ((elem.ownerDocument || elem) !== document) { + setDocument(elem); + } + + // Make sure that attribute selectors are quoted + expr = expr.replace(rattributeQuotes, "='$1']"); + + if ( + support.matchesSelector && + documentIsHTML && + (!rbuggyMatches || !rbuggyMatches.test(expr)) && + (!rbuggyQSA || !rbuggyQSA.test(expr)) + ) { + try { + var ret = matches.call(elem, expr); + + // IE 9's matchesSelector returns false on disconnected nodes + if ( + ret || + support.disconnectedMatch || + // As well, disconnected nodes are said to be in a document + // fragment in IE 9 + (elem.document && elem.document.nodeType !== 11) + ) { + return ret; + } + } catch (e) {} + } + + return Sizzle(expr, document, null, [elem]).length > 0; + }; + + Sizzle.contains = function (context, elem) { + // Set document vars if needed + if ((context.ownerDocument || context) !== document) { + setDocument(context); + } + return contains(context, elem); + }; + + Sizzle.attr = function (elem, name) { + // Set document vars if needed + if ((elem.ownerDocument || elem) !== document) { + setDocument(elem); + } + + var fn = Expr.attrHandle[name.toLowerCase()], + // Don't get fooled by Object.prototype properties (jQuery #13807) + val = + fn && hasOwn.call(Expr.attrHandle, name.toLowerCase()) + ? fn(elem, name, !documentIsHTML) + : undefined; + + return val !== undefined + ? val + : support.attributes || !documentIsHTML + ? elem.getAttribute(name) + : (val = elem.getAttributeNode(name)) && val.specified + ? val.value + : null; + }; + + Sizzle.error = function (msg) { + throw new Error( + "Syntax error, unrecognized expression: " + msg + ); + }; + + /** + * Document sorting and removing duplicates + * @param {ArrayLike} results + */ + Sizzle.uniqueSort = function (results) { + var elem, + duplicates = [], + j = 0, + i = 0; + + // Unless we *know* we can detect duplicates, assume their presence + hasDuplicate = !support.detectDuplicates; + sortInput = !support.sortStable && results.slice(0); + results.sort(sortOrder); + + if (hasDuplicate) { + while ((elem = results[i++])) { + if (elem === results[i]) { + j = duplicates.push(i); + } + } + while (j--) { + results.splice(duplicates[j], 1); + } + } + + // Clear input after sorting to release objects + // See https://github.com/jquery/sizzle/pull/225 + sortInput = null; + + return results; + }; + + /** + * Utility function for retrieving the text value of an array of DOM nodes + * @param {Array|Element} elem + */ + getText = Sizzle.getText = function (elem) { + var node, + ret = "", + i = 0, + nodeType = elem.nodeType; + + if (!nodeType) { + // If no nodeType, this is expected to be an array + while ((node = elem[i++])) { + // Do not traverse comment nodes + ret += getText(node); + } + } else if ( + nodeType === 1 || + nodeType === 9 || + nodeType === 11 + ) { + // Use textContent for elements + // innerText usage removed for consistency of new lines (jQuery #11153) + if (typeof elem.textContent === "string") { + return elem.textContent; + } else { + // Traverse its children + for ( + elem = elem.firstChild; + elem; + elem = elem.nextSibling + ) { + ret += getText(elem); + } + } + } else if (nodeType === 3 || nodeType === 4) { + return elem.nodeValue; + } + // Do not include comment or processing instruction nodes + + return ret; + }; + + Expr = Sizzle.selectors = { + // Can be adjusted by the user + cacheLength: 50, + + createPseudo: markFunction, + + match: matchExpr, + + attrHandle: {}, + + find: {}, + + relative: { + ">": { dir: "parentNode", first: true }, + " ": { dir: "parentNode" }, + "+": { dir: "previousSibling", first: true }, + "~": { dir: "previousSibling" }, + }, + + preFilter: { + ATTR: function (match) { + match[1] = match[1].replace(runescape, funescape); + + // Move the given value to match[3] whether quoted or unquoted + match[3] = ( + match[3] || + match[4] || + match[5] || + "" + ).replace(runescape, funescape); + + if (match[2] === "~=") { + match[3] = " " + match[3] + " "; + } + + return match.slice(0, 4); + }, + + CHILD: function (match) { + /* matches from matchExpr["CHILD"] + 1 type (only|nth|...) + 2 what (child|of-type) + 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...) + 4 xn-component of xn+y argument ([+-]?\d*n|) + 5 sign of xn-component + 6 x of xn-component + 7 sign of y-component + 8 y of y-component + */ + match[1] = match[1].toLowerCase(); + + if (match[1].slice(0, 3) === "nth") { + // nth-* requires argument + if (!match[3]) { + Sizzle.error(match[0]); + } + + // numeric x and y parameters for Expr.filter.CHILD + // remember that false/true cast respectively to 0/1 + match[4] = +(match[4] + ? match[5] + (match[6] || 1) + : 2 * + (match[3] === "even" || match[3] === "odd")); + match[5] = +( + match[7] + match[8] || match[3] === "odd" + ); + + // other types prohibit arguments + } else if (match[3]) { + Sizzle.error(match[0]); + } + + return match; + }, + + PSEUDO: function (match) { + var excess, + unquoted = !match[6] && match[2]; + + if (matchExpr["CHILD"].test(match[0])) { + return null; + } + + // Accept quoted arguments as-is + if (match[3]) { + match[2] = match[4] || match[5] || ""; + + // Strip excess characters from unquoted arguments + } else if ( + unquoted && + rpseudo.test(unquoted) && + // Get excess from tokenize (recursively) + (excess = tokenize(unquoted, true)) && + // advance to the next closing parenthesis + (excess = + unquoted.indexOf( + ")", + unquoted.length - excess + ) - unquoted.length) + ) { + // excess is a negative index + match[0] = match[0].slice(0, excess); + match[2] = unquoted.slice(0, excess); + } + + // Return only captures needed by the pseudo filter method (type and argument) + return match.slice(0, 3); + }, + }, + + filter: { + TAG: function (nodeNameSelector) { + var nodeName = nodeNameSelector + .replace(runescape, funescape) + .toLowerCase(); + return nodeNameSelector === "*" + ? function () { + return true; + } + : function (elem) { + return ( + elem.nodeName && + elem.nodeName.toLowerCase() === nodeName + ); + }; + }, + + CLASS: function (className) { + var pattern = classCache[className + " "]; + + return ( + pattern || + ((pattern = new RegExp( + "(^|" + + whitespace + + ")" + + className + + "(" + + whitespace + + "|$)" + )) && + classCache(className, function (elem) { + return pattern.test( + (typeof elem.className === "string" && + elem.className) || + (typeof elem.getAttribute !== + strundefined && + elem.getAttribute("class")) || + "" + ); + })) + ); + }, + + ATTR: function (name, operator, check) { + return function (elem) { + var result = Sizzle.attr(elem, name); + + if (result == null) { + return operator === "!="; + } + if (!operator) { + return true; + } + + result += ""; + + return operator === "=" + ? result === check + : operator === "!=" + ? result !== check + : operator === "^=" + ? check && result.indexOf(check) === 0 + : operator === "*=" + ? check && result.indexOf(check) > -1 + : operator === "$=" + ? check && result.slice(-check.length) === check + : operator === "~=" + ? (" " + result + " ").indexOf(check) > -1 + : operator === "|=" + ? result === check || + result.slice(0, check.length + 1) === + check + "-" + : false; + }; + }, + + CHILD: function (type, what, argument, first, last) { + var simple = type.slice(0, 3) !== "nth", + forward = type.slice(-4) !== "last", + ofType = what === "of-type"; + + return first === 1 && last === 0 + ? // Shortcut for :nth-*(n) + function (elem) { + return !!elem.parentNode; + } + : function (elem, context, xml) { + var cache, + outerCache, + node, + diff, + nodeIndex, + start, + dir = + simple !== forward + ? "nextSibling" + : "previousSibling", + parent = elem.parentNode, + name = + ofType && elem.nodeName.toLowerCase(), + useCache = !xml && !ofType; + + if (parent) { + // :(first|last|only)-(child|of-type) + if (simple) { + while (dir) { + node = elem; + while ((node = node[dir])) { + if ( + ofType + ? node.nodeName.toLowerCase() === + name + : node.nodeType === 1 + ) { + return false; + } + } + // Reverse direction for :only-* (if we haven't yet done so) + start = dir = + type === "only" && + !start && + "nextSibling"; + } + return true; + } + + start = [ + forward + ? parent.firstChild + : parent.lastChild, + ]; + + // non-xml :nth-child(...) stores cache data on `parent` + if (forward && useCache) { + // Seek `elem` from a previously-cached index + outerCache = + parent[expando] || + (parent[expando] = {}); + cache = outerCache[type] || []; + nodeIndex = + cache[0] === dirruns && cache[1]; + diff = + cache[0] === dirruns && cache[2]; + node = + nodeIndex && + parent.childNodes[nodeIndex]; + + while ( + (node = + (++nodeIndex && + node && + node[dir]) || + // Fallback to seeking `elem` from the start + (diff = nodeIndex = 0) || + start.pop()) + ) { + // When found, cache indexes on `parent` and break + if ( + node.nodeType === 1 && + ++diff && + node === elem + ) { + outerCache[type] = [ + dirruns, + nodeIndex, + diff, + ]; + break; + } + } + + // Use previously-cached element index if available + } else if ( + useCache && + (cache = (elem[expando] || + (elem[expando] = {}))[type]) && + cache[0] === dirruns + ) { + diff = cache[1]; + + // xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...) + } else { + // Use the same loop as above to seek `elem` from the start + while ( + (node = + (++nodeIndex && + node && + node[dir]) || + (diff = nodeIndex = 0) || + start.pop()) + ) { + if ( + (ofType + ? node.nodeName.toLowerCase() === + name + : node.nodeType === 1) && + ++diff + ) { + // Cache the index of each encountered element + if (useCache) { + (node[expando] || + (node[expando] = {}))[ + type + ] = [dirruns, diff]; + } + + if (node === elem) { + break; + } + } + } + } + + // Incorporate the offset, then check against cycle size + diff -= last; + return ( + diff === first || + (diff % first === 0 && + diff / first >= 0) + ); + } + }; + }, + + PSEUDO: function (pseudo, argument) { + // pseudo-class names are case-insensitive + // http://www.w3.org/TR/selectors/#pseudo-classes + // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters + // Remember that setFilters inherits from pseudos + var args, + fn = + Expr.pseudos[pseudo] || + Expr.setFilters[pseudo.toLowerCase()] || + Sizzle.error("unsupported pseudo: " + pseudo); + + // The user may use createPseudo to indicate that + // arguments are needed to create the filter function + // just as Sizzle does + if (fn[expando]) { + return fn(argument); + } + + // But maintain support for old signatures + if (fn.length > 1) { + args = [pseudo, pseudo, "", argument]; + return Expr.setFilters.hasOwnProperty( + pseudo.toLowerCase() + ) + ? markFunction(function (seed, matches) { + var idx, + matched = fn(seed, argument), + i = matched.length; + while (i--) { + idx = indexOf.call(seed, matched[i]); + seed[idx] = !(matches[idx] = + matched[i]); + } + }) + : function (elem) { + return fn(elem, 0, args); + }; + } + + return fn; + }, + }, + + pseudos: { + // Potentially complex pseudos + not: markFunction(function (selector) { + // Trim the selector passed to compile + // to avoid treating leading and trailing + // spaces as combinators + var input = [], + results = [], + matcher = compile(selector.replace(rtrim, "$1")); + + return matcher[expando] + ? markFunction(function ( + seed, + matches, + context, + xml + ) { + var elem, + unmatched = matcher(seed, null, xml, []), + i = seed.length; + + // Match elements unmatched by `matcher` + while (i--) { + if ((elem = unmatched[i])) { + seed[i] = !(matches[i] = elem); + } + } + }) + : function (elem, context, xml) { + input[0] = elem; + matcher(input, null, xml, results); + return !results.pop(); + }; + }), + + has: markFunction(function (selector) { + return function (elem) { + return Sizzle(selector, elem).length > 0; + }; + }), + + contains: markFunction(function (text) { + return function (elem) { + return ( + ( + elem.textContent || + elem.innerText || + getText(elem) + ).indexOf(text) > -1 + ); + }; + }), + + // "Whether an element is represented by a :lang() selector + // is based solely on the element's language value + // being equal to the identifier C, + // or beginning with the identifier C immediately followed by "-". + // The matching of C against the element's language value is performed case-insensitively. + // The identifier C does not have to be a valid language name." + // http://www.w3.org/TR/selectors/#lang-pseudo + lang: markFunction(function (lang) { + // lang value must be a valid identifier + if (!ridentifier.test(lang || "")) { + Sizzle.error("unsupported lang: " + lang); + } + lang = lang.replace(runescape, funescape).toLowerCase(); + return function (elem) { + var elemLang; + do { + if ( + (elemLang = documentIsHTML + ? elem.lang + : elem.getAttribute("xml:lang") || + elem.getAttribute("lang")) + ) { + elemLang = elemLang.toLowerCase(); + return ( + elemLang === lang || + elemLang.indexOf(lang + "-") === 0 + ); + } + } while ((elem = elem.parentNode) && elem.nodeType === 1); + return false; + }; + }), + + // Miscellaneous + target: function (elem) { + var hash = window.location && window.location.hash; + return hash && hash.slice(1) === elem.id; + }, + + root: function (elem) { + return elem === docElem; + }, + + focus: function (elem) { + return ( + elem === document.activeElement && + (!document.hasFocus || document.hasFocus()) && + !!(elem.type || elem.href || ~elem.tabIndex) + ); + }, + + // Boolean properties + enabled: function (elem) { + return elem.disabled === false; + }, + + disabled: function (elem) { + return elem.disabled === true; + }, + + checked: function (elem) { + // In CSS3, :checked should return both checked and selected elements + // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked + var nodeName = elem.nodeName.toLowerCase(); + return ( + (nodeName === "input" && !!elem.checked) || + (nodeName === "option" && !!elem.selected) + ); + }, + + selected: function (elem) { + // Accessing this property makes selected-by-default + // options in Safari work properly + if (elem.parentNode) { + elem.parentNode.selectedIndex; + } + + return elem.selected === true; + }, + + // Contents + empty: function (elem) { + // http://www.w3.org/TR/selectors/#empty-pseudo + // :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5), + // but not by others (comment: 8; processing instruction: 7; etc.) + // nodeType < 6 works because attributes (2) do not appear as children + for ( + elem = elem.firstChild; + elem; + elem = elem.nextSibling + ) { + if (elem.nodeType < 6) { + return false; + } + } + return true; + }, + + parent: function (elem) { + return !Expr.pseudos["empty"](elem); + }, + + // Element/input types + header: function (elem) { + return rheader.test(elem.nodeName); + }, + + input: function (elem) { + return rinputs.test(elem.nodeName); + }, + + button: function (elem) { + var name = elem.nodeName.toLowerCase(); + return ( + (name === "input" && elem.type === "button") || + name === "button" + ); + }, + + text: function (elem) { + var attr; + return ( + elem.nodeName.toLowerCase() === "input" && + elem.type === "text" && + // Support: IE<8 + // New HTML5 attribute values (e.g., "search") appear with elem.type === "text" + ((attr = elem.getAttribute("type")) == null || + attr.toLowerCase() === "text") + ); + }, + + // Position-in-collection + first: createPositionalPseudo(function () { + return [0]; + }), + + last: createPositionalPseudo(function ( + matchIndexes, + length + ) { + return [length - 1]; + }), + + eq: createPositionalPseudo(function ( + matchIndexes, + length, + argument + ) { + return [argument < 0 ? argument + length : argument]; + }), + + even: createPositionalPseudo(function ( + matchIndexes, + length + ) { + var i = 0; + for (; i < length; i += 2) { + matchIndexes.push(i); + } + return matchIndexes; + }), + + odd: createPositionalPseudo(function ( + matchIndexes, + length + ) { + var i = 1; + for (; i < length; i += 2) { + matchIndexes.push(i); + } + return matchIndexes; + }), + + lt: createPositionalPseudo(function ( + matchIndexes, + length, + argument + ) { + var i = argument < 0 ? argument + length : argument; + for (; --i >= 0; ) { + matchIndexes.push(i); + } + return matchIndexes; + }), + + gt: createPositionalPseudo(function ( + matchIndexes, + length, + argument + ) { + var i = argument < 0 ? argument + length : argument; + for (; ++i < length; ) { + matchIndexes.push(i); + } + return matchIndexes; + }), + }, + }; + + Expr.pseudos["nth"] = Expr.pseudos["eq"]; + + // Add button/input type pseudos + for (i in { + radio: true, + checkbox: true, + file: true, + password: true, + image: true, + }) { + Expr.pseudos[i] = createInputPseudo(i); + } + for (i in { submit: true, reset: true }) { + Expr.pseudos[i] = createButtonPseudo(i); + } + + // Easy API for creating new setFilters + function setFilters() {} + setFilters.prototype = Expr.filters = Expr.pseudos; + Expr.setFilters = new setFilters(); + + tokenize = Sizzle.tokenize = function (selector, parseOnly) { + var matched, + match, + tokens, + type, + soFar, + groups, + preFilters, + cached = tokenCache[selector + " "]; + + if (cached) { + return parseOnly ? 0 : cached.slice(0); + } + + soFar = selector; + groups = []; + preFilters = Expr.preFilter; + + while (soFar) { + // Comma and first run + if (!matched || (match = rcomma.exec(soFar))) { + if (match) { + // Don't consume trailing commas as valid + soFar = soFar.slice(match[0].length) || soFar; + } + groups.push((tokens = [])); + } + + matched = false; + + // Combinators + if ((match = rcombinators.exec(soFar))) { + matched = match.shift(); + tokens.push({ + value: matched, + // Cast descendant combinators to space + type: match[0].replace(rtrim, " "), + }); + soFar = soFar.slice(matched.length); + } + + // Filters + for (type in Expr.filter) { + if ( + (match = matchExpr[type].exec(soFar)) && + (!preFilters[type] || + (match = preFilters[type](match))) + ) { + matched = match.shift(); + tokens.push({ + value: matched, + type: type, + matches: match, + }); + soFar = soFar.slice(matched.length); + } + } + + if (!matched) { + break; + } + } + + // Return the length of the invalid excess + // if we're just parsing + // Otherwise, throw an error or return tokens + return parseOnly + ? soFar.length + : soFar + ? Sizzle.error(selector) + : // Cache the tokens + tokenCache(selector, groups).slice(0); + }; + + function toSelector(tokens) { + var i = 0, + len = tokens.length, + selector = ""; + for (; i < len; i++) { + selector += tokens[i].value; + } + return selector; + } + + function addCombinator(matcher, combinator, base) { + var dir = combinator.dir, + checkNonElements = base && dir === "parentNode", + doneName = done++; + + return combinator.first + ? // Check against closest ancestor/preceding element + function (elem, context, xml) { + while ((elem = elem[dir])) { + if (elem.nodeType === 1 || checkNonElements) { + return matcher(elem, context, xml); + } + } + } + : // Check against all ancestor/preceding elements + function (elem, context, xml) { + var oldCache, + outerCache, + newCache = [dirruns, doneName]; + + // We can't set arbitrary data on XML nodes, so they don't benefit from dir caching + if (xml) { + while ((elem = elem[dir])) { + if (elem.nodeType === 1 || checkNonElements) { + if (matcher(elem, context, xml)) { + return true; + } + } + } + } else { + while ((elem = elem[dir])) { + if (elem.nodeType === 1 || checkNonElements) { + outerCache = + elem[expando] || (elem[expando] = {}); + if ( + (oldCache = outerCache[dir]) && + oldCache[0] === dirruns && + oldCache[1] === doneName + ) { + // Assign to newCache so results back-propagate to previous elements + return (newCache[2] = oldCache[2]); + } else { + // Reuse newcache so results back-propagate to previous elements + outerCache[dir] = newCache; + + // A match means we're done; a fail means we have to keep checking + if ( + (newCache[2] = matcher( + elem, + context, + xml + )) + ) { + return true; + } + } + } + } + } + }; + } + + function elementMatcher(matchers) { + return matchers.length > 1 + ? function (elem, context, xml) { + var i = matchers.length; + while (i--) { + if (!matchers[i](elem, context, xml)) { + return false; + } + } + return true; + } + : matchers[0]; + } + + function multipleContexts(selector, contexts, results) { + var i = 0, + len = contexts.length; + for (; i < len; i++) { + Sizzle(selector, contexts[i], results); + } + return results; + } + + function condense(unmatched, map, filter, context, xml) { + var elem, + newUnmatched = [], + i = 0, + len = unmatched.length, + mapped = map != null; + + for (; i < len; i++) { + if ((elem = unmatched[i])) { + if (!filter || filter(elem, context, xml)) { + newUnmatched.push(elem); + if (mapped) { + map.push(i); + } + } + } + } + + return newUnmatched; + } + + function setMatcher( + preFilter, + selector, + matcher, + postFilter, + postFinder, + postSelector + ) { + if (postFilter && !postFilter[expando]) { + postFilter = setMatcher(postFilter); + } + if (postFinder && !postFinder[expando]) { + postFinder = setMatcher(postFinder, postSelector); + } + return markFunction(function (seed, results, context, xml) { + var temp, + i, + elem, + preMap = [], + postMap = [], + preexisting = results.length, + // Get initial elements from seed or context + elems = + seed || + multipleContexts( + selector || "*", + context.nodeType ? [context] : context, + [] + ), + // Prefilter to get matcher input, preserving a map for seed-results synchronization + matcherIn = + preFilter && (seed || !selector) + ? condense( + elems, + preMap, + preFilter, + context, + xml + ) + : elems, + matcherOut = matcher + ? // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results, + postFinder || + (seed ? preFilter : preexisting || postFilter) + ? // ...intermediate processing is necessary + [] + : // ...otherwise use results directly + results + : matcherIn; + + // Find primary matches + if (matcher) { + matcher(matcherIn, matcherOut, context, xml); + } + + // Apply postFilter + if (postFilter) { + temp = condense(matcherOut, postMap); + postFilter(temp, [], context, xml); + + // Un-match failing elements by moving them back to matcherIn + i = temp.length; + while (i--) { + if ((elem = temp[i])) { + matcherOut[postMap[i]] = !(matcherIn[ + postMap[i] + ] = elem); + } + } + } + + if (seed) { + if (postFinder || preFilter) { + if (postFinder) { + // Get the final matcherOut by condensing this intermediate into postFinder contexts + temp = []; + i = matcherOut.length; + while (i--) { + if ((elem = matcherOut[i])) { + // Restore matcherIn since elem is not yet a final match + temp.push((matcherIn[i] = elem)); + } + } + postFinder(null, (matcherOut = []), temp, xml); + } + + // Move matched elements from seed to results to keep them synchronized + i = matcherOut.length; + while (i--) { + if ( + (elem = matcherOut[i]) && + (temp = postFinder + ? indexOf.call(seed, elem) + : preMap[i]) > -1 + ) { + seed[temp] = !(results[temp] = elem); + } + } + } + + // Add elements to results, through postFinder if defined + } else { + matcherOut = condense( + matcherOut === results + ? matcherOut.splice( + preexisting, + matcherOut.length + ) + : matcherOut + ); + if (postFinder) { + postFinder(null, results, matcherOut, xml); + } else { + push.apply(results, matcherOut); + } + } + }); + } + + function matcherFromTokens(tokens) { + var checkContext, + matcher, + j, + len = tokens.length, + leadingRelative = Expr.relative[tokens[0].type], + implicitRelative = leadingRelative || Expr.relative[" "], + i = leadingRelative ? 1 : 0, + // The foundational matcher ensures that elements are reachable from top-level context(s) + matchContext = addCombinator( + function (elem) { + return elem === checkContext; + }, + implicitRelative, + true + ), + matchAnyContext = addCombinator( + function (elem) { + return indexOf.call(checkContext, elem) > -1; + }, + implicitRelative, + true + ), + matchers = [ + function (elem, context, xml) { + return ( + (!leadingRelative && + (xml || context !== outermostContext)) || + ((checkContext = context).nodeType + ? matchContext(elem, context, xml) + : matchAnyContext(elem, context, xml)) + ); + }, + ]; + + for (; i < len; i++) { + if ((matcher = Expr.relative[tokens[i].type])) { + matchers = [ + addCombinator(elementMatcher(matchers), matcher), + ]; + } else { + matcher = Expr.filter[tokens[i].type].apply( + null, + tokens[i].matches + ); + + // Return special upon seeing a positional matcher + if (matcher[expando]) { + // Find the next relative operator (if any) for proper handling + j = ++i; + for (; j < len; j++) { + if (Expr.relative[tokens[j].type]) { + break; + } + } + return setMatcher( + i > 1 && elementMatcher(matchers), + i > 1 && + toSelector( + // If the preceding token was a descendant combinator, insert an implicit any-element `*` + tokens.slice(0, i - 1).concat({ + value: + tokens[i - 2].type === " " + ? "*" + : "", + }) + ).replace(rtrim, "$1"), + matcher, + i < j && matcherFromTokens(tokens.slice(i, j)), + j < len && + matcherFromTokens( + (tokens = tokens.slice(j)) + ), + j < len && toSelector(tokens) + ); + } + matchers.push(matcher); + } + } + + return elementMatcher(matchers); + } + + function matcherFromGroupMatchers(elementMatchers, setMatchers) { + var bySet = setMatchers.length > 0, + byElement = elementMatchers.length > 0, + superMatcher = function ( + seed, + context, + xml, + results, + outermost + ) { + var elem, + j, + matcher, + matchedCount = 0, + i = "0", + unmatched = seed && [], + setMatched = [], + contextBackup = outermostContext, + // We must always have either seed elements or outermost context + elems = + seed || + (byElement && Expr.find["TAG"]("*", outermost)), + // Use integer dirruns iff this is the outermost matcher + dirrunsUnique = (dirruns += + contextBackup == null + ? 1 + : Math.random() || 0.1), + len = elems.length; + + if (outermost) { + outermostContext = context !== document && context; + } + + // Add elements passing elementMatchers directly to results + // Keep `i` a string if there are no elements so `matchedCount` will be "00" below + // Support: IE<9, Safari + // Tolerate NodeList properties (IE: "length"; Safari: ) matching elements by id + for (; i !== len && (elem = elems[i]) != null; i++) { + if (byElement && elem) { + j = 0; + while ((matcher = elementMatchers[j++])) { + if (matcher(elem, context, xml)) { + results.push(elem); + break; + } + } + if (outermost) { + dirruns = dirrunsUnique; + } + } + + // Track unmatched elements for set filters + if (bySet) { + // They will have gone through all possible matchers + if ((elem = !matcher && elem)) { + matchedCount--; + } + + // Lengthen the array for every element, matched or not + if (seed) { + unmatched.push(elem); + } + } + } + + // Apply set filters to unmatched elements + matchedCount += i; + if (bySet && i !== matchedCount) { + j = 0; + while ((matcher = setMatchers[j++])) { + matcher(unmatched, setMatched, context, xml); + } + + if (seed) { + // Reintegrate element matches to eliminate the need for sorting + if (matchedCount > 0) { + while (i--) { + if (!(unmatched[i] || setMatched[i])) { + setMatched[i] = pop.call(results); + } + } + } + + // Discard index placeholder values to get only actual matches + setMatched = condense(setMatched); + } + + // Add matches to results + push.apply(results, setMatched); + + // Seedless set matches succeeding multiple successful matchers stipulate sorting + if ( + outermost && + !seed && + setMatched.length > 0 && + matchedCount + setMatchers.length > 1 + ) { + Sizzle.uniqueSort(results); + } + } + + // Override manipulation of globals by nested matchers + if (outermost) { + dirruns = dirrunsUnique; + outermostContext = contextBackup; + } + + return unmatched; + }; + + return bySet ? markFunction(superMatcher) : superMatcher; + } + + compile = Sizzle.compile = function ( + selector, + match /* Internal Use Only */ + ) { + var i, + setMatchers = [], + elementMatchers = [], + cached = compilerCache[selector + " "]; + + if (!cached) { + // Generate a function of recursive functions that can be used to check each element + if (!match) { + match = tokenize(selector); + } + i = match.length; + while (i--) { + cached = matcherFromTokens(match[i]); + if (cached[expando]) { + setMatchers.push(cached); + } else { + elementMatchers.push(cached); + } + } + + // Cache the compiled function + cached = compilerCache( + selector, + matcherFromGroupMatchers(elementMatchers, setMatchers) + ); + + // Save selector and tokenization + cached.selector = selector; + } + return cached; + }; + + /** + * A low-level selection function that works with Sizzle's compiled + * selector functions + * @param {String|Function} selector A selector or a pre-compiled + * selector function built with Sizzle.compile + * @param {Element} context + * @param {Array} [results] + * @param {Array} [seed] A set of elements to match against + */ + select = Sizzle.select = function ( + selector, + context, + results, + seed + ) { + var i, + tokens, + token, + type, + find, + compiled = typeof selector === "function" && selector, + match = + !seed && + tokenize((selector = compiled.selector || selector)); + + results = results || []; + + // Try to minimize operations if there is no seed and only one group + if (match.length === 1) { + // Take a shortcut and set the context if the root selector is an ID + tokens = match[0] = match[0].slice(0); + if ( + tokens.length > 2 && + (token = tokens[0]).type === "ID" && + support.getById && + context.nodeType === 9 && + documentIsHTML && + Expr.relative[tokens[1].type] + ) { + context = (Expr.find["ID"]( + token.matches[0].replace(runescape, funescape), + context + ) || [])[0]; + if (!context) { + return results; + + // Precompiled matchers will still verify ancestry, so step up a level + } else if (compiled) { + context = context.parentNode; + } + + selector = selector.slice(tokens.shift().value.length); + } + + // Fetch a seed set for right-to-left matching + i = matchExpr["needsContext"].test(selector) + ? 0 + : tokens.length; + while (i--) { + token = tokens[i]; + + // Abort if we hit a combinator + if (Expr.relative[(type = token.type)]) { + break; + } + if ((find = Expr.find[type])) { + // Search, expanding context for leading sibling combinators + if ( + (seed = find( + token.matches[0].replace( + runescape, + funescape + ), + (rsibling.test(tokens[0].type) && + testContext(context.parentNode)) || + context + )) + ) { + // If seed is empty or no tokens remain, we can return early + tokens.splice(i, 1); + selector = seed.length && toSelector(tokens); + if (!selector) { + push.apply(results, seed); + return results; + } + + break; + } + } + } + } + + // Compile and execute a filtering function if one is not provided + // Provide `match` to avoid retokenization if we modified the selector above + (compiled || compile(selector, match))( + seed, + context, + !documentIsHTML, + results, + (rsibling.test(selector) && + testContext(context.parentNode)) || + context + ); + return results; + }; + + // One-time assignments + + // Sort stability + support.sortStable = + expando.split("").sort(sortOrder).join("") === expando; + + // Support: Chrome<14 + // Always assume duplicates if they aren't passed to the comparison function + support.detectDuplicates = !!hasDuplicate; + + // Initialize against the default document + setDocument(); + + // Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27) + // Detached nodes confoundingly follow *each other* + support.sortDetached = assert(function (div1) { + // Should return 1, but returns 4 (following) + return ( + div1.compareDocumentPosition( + document.createElement("div") + ) & 1 + ); + }); + + // Support: IE<8 + // Prevent attribute/property "interpolation" + // http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx + if ( + !assert(function (div) { + div.innerHTML = ""; + return div.firstChild.getAttribute("href") === "#"; + }) + ) { + addHandle( + "type|href|height|width", + function (elem, name, isXML) { + if (!isXML) { + return elem.getAttribute( + name, + name.toLowerCase() === "type" ? 1 : 2 + ); + } + } + ); + } + + // Support: IE<9 + // Use defaultValue in place of getAttribute("value") + if ( + !support.attributes || + !assert(function (div) { + div.innerHTML = ""; + div.firstChild.setAttribute("value", ""); + return div.firstChild.getAttribute("value") === ""; + }) + ) { + addHandle("value", function (elem, name, isXML) { + if (!isXML && elem.nodeName.toLowerCase() === "input") { + return elem.defaultValue; + } + }); + } + + // Support: IE<9 + // Use getAttributeNode to fetch booleans when getAttribute lies + if ( + !assert(function (div) { + return div.getAttribute("disabled") == null; + }) + ) { + addHandle(booleans, function (elem, name, isXML) { + var val; + if (!isXML) { + return elem[name] === true + ? name.toLowerCase() + : (val = elem.getAttributeNode(name)) && + val.specified + ? val.value + : null; + } + }); + } + + return Sizzle; + })(window); + + jQuery.find = Sizzle; + jQuery.expr = Sizzle.selectors; + jQuery.expr[":"] = jQuery.expr.pseudos; + jQuery.unique = Sizzle.uniqueSort; + jQuery.text = Sizzle.getText; + jQuery.isXMLDoc = Sizzle.isXML; + jQuery.contains = Sizzle.contains; + + var rneedsContext = jQuery.expr.match.needsContext; + + var rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>|)$/; + + var risSimple = /^.[^:#\[\.,]*$/; + + // Implement the identical functionality for filter and not + function winnow(elements, qualifier, not) { + if (jQuery.isFunction(qualifier)) { + return jQuery.grep(elements, function (elem, i) { + /* jshint -W018 */ + return !!qualifier.call(elem, i, elem) !== not; + }); + } + + if (qualifier.nodeType) { + return jQuery.grep(elements, function (elem) { + return (elem === qualifier) !== not; + }); + } + + if (typeof qualifier === "string") { + if (risSimple.test(qualifier)) { + return jQuery.filter(qualifier, elements, not); + } + + qualifier = jQuery.filter(qualifier, elements); + } + + return jQuery.grep(elements, function (elem) { + return jQuery.inArray(elem, qualifier) >= 0 !== not; + }); + } + + jQuery.filter = function (expr, elems, not) { + var elem = elems[0]; + + if (not) { + expr = ":not(" + expr + ")"; + } + + return elems.length === 1 && elem.nodeType === 1 + ? jQuery.find.matchesSelector(elem, expr) + ? [elem] + : [] + : jQuery.find.matches( + expr, + jQuery.grep(elems, function (elem) { + return elem.nodeType === 1; + }) + ); + }; + + jQuery.fn.extend({ + find: function (selector) { + var i, + ret = [], + self = this, + len = self.length; + + if (typeof selector !== "string") { + return this.pushStack( + jQuery(selector).filter(function () { + for (i = 0; i < len; i++) { + if (jQuery.contains(self[i], this)) { + return true; + } + } + }) + ); + } + + for (i = 0; i < len; i++) { + jQuery.find(selector, self[i], ret); + } + + // Needed because $( selector, context ) becomes $( context ).find( selector ) + ret = this.pushStack(len > 1 ? jQuery.unique(ret) : ret); + ret.selector = this.selector + ? this.selector + " " + selector + : selector; + return ret; + }, + filter: function (selector) { + return this.pushStack(winnow(this, selector || [], false)); + }, + not: function (selector) { + return this.pushStack(winnow(this, selector || [], true)); + }, + is: function (selector) { + return !!winnow( + this, + + // If this is a positional/relative selector, check membership in the returned set + // so $("p:first").is("p:last") won't return true for a doc with two "p". + typeof selector === "string" && rneedsContext.test(selector) + ? jQuery(selector) + : selector || [], + false + ).length; + }, + }); + + // Initialize a jQuery object + + // A central reference to the root jQuery(document) + var rootjQuery, + // Use the correct document accordingly with window argument (sandbox) + document = window.document, + // A simple way to check for HTML strings + // Prioritize #id over to avoid XSS via location.hash (#9521) + // Strict HTML recognition (#11290: must start with <) + rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/, + init = (jQuery.fn.init = function (selector, context) { + var match, elem; + + // HANDLE: $(""), $(null), $(undefined), $(false) + if (!selector) { + return this; + } + + // Handle HTML strings + if (typeof selector === "string") { + if ( + selector.charAt(0) === "<" && + selector.charAt(selector.length - 1) === ">" && + selector.length >= 3 + ) { + // Assume that strings that start and end with <> are HTML and skip the regex check + match = [null, selector, null]; + } else { + match = rquickExpr.exec(selector); + } + + // Match html or make sure no context is specified for #id + if (match && (match[1] || !context)) { + // HANDLE: $(html) -> $(array) + if (match[1]) { + context = + context instanceof jQuery ? context[0] : context; + + // scripts is true for back-compat + // Intentionally let the error be thrown if parseHTML is not present + jQuery.merge( + this, + jQuery.parseHTML( + match[1], + context && context.nodeType + ? context.ownerDocument || context + : document, + true + ) + ); + + // HANDLE: $(html, props) + if ( + rsingleTag.test(match[1]) && + jQuery.isPlainObject(context) + ) { + for (match in context) { + // Properties of context are called as methods if possible + if (jQuery.isFunction(this[match])) { + this[match](context[match]); + + // ...and otherwise set as attributes + } else { + this.attr(match, context[match]); + } + } + } + + return this; + + // HANDLE: $(#id) + } else { + elem = document.getElementById(match[2]); + + // Check parentNode to catch when Blackberry 4.6 returns + // nodes that are no longer in the document #6963 + if (elem && elem.parentNode) { + // Handle the case where IE and Opera return items + // by name instead of ID + if (elem.id !== match[2]) { + return rootjQuery.find(selector); + } + + // Otherwise, we inject the element directly into the jQuery object + this.length = 1; + this[0] = elem; + } + + this.context = document; + this.selector = selector; + return this; + } + + // HANDLE: $(expr, $(...)) + } else if (!context || context.jquery) { + return (context || rootjQuery).find(selector); + + // HANDLE: $(expr, context) + // (which is just equivalent to: $(context).find(expr) + } else { + return this.constructor(context).find(selector); + } + + // HANDLE: $(DOMElement) + } else if (selector.nodeType) { + this.context = this[0] = selector; + this.length = 1; + return this; + + // HANDLE: $(function) + // Shortcut for document ready + } else if (jQuery.isFunction(selector)) { + return typeof rootjQuery.ready !== "undefined" + ? rootjQuery.ready(selector) + : // Execute immediately if ready is not present + selector(jQuery); + } + + if (selector.selector !== undefined) { + this.selector = selector.selector; + this.context = selector.context; + } + + return jQuery.makeArray(selector, this); + }); + + // Give the init function the jQuery prototype for later instantiation + init.prototype = jQuery.fn; + + // Initialize central reference + rootjQuery = jQuery(document); + + var rparentsprev = /^(?:parents|prev(?:Until|All))/, + // methods guaranteed to produce a unique set when starting from a unique set + guaranteedUnique = { + children: true, + contents: true, + next: true, + prev: true, + }; + + jQuery.extend({ + dir: function (elem, dir, until) { + var matched = [], + cur = elem[dir]; + + while ( + cur && + cur.nodeType !== 9 && + (until === undefined || + cur.nodeType !== 1 || + !jQuery(cur).is(until)) + ) { + if (cur.nodeType === 1) { + matched.push(cur); + } + cur = cur[dir]; + } + return matched; + }, + + sibling: function (n, elem) { + var r = []; + + for (; n; n = n.nextSibling) { + if (n.nodeType === 1 && n !== elem) { + r.push(n); + } + } + + return r; + }, + }); + + jQuery.fn.extend({ + has: function (target) { + var i, + targets = jQuery(target, this), + len = targets.length; + + return this.filter(function () { + for (i = 0; i < len; i++) { + if (jQuery.contains(this, targets[i])) { + return true; + } + } + }); + }, + + closest: function (selectors, context) { + var cur, + i = 0, + l = this.length, + matched = [], + pos = + rneedsContext.test(selectors) || + typeof selectors !== "string" + ? jQuery(selectors, context || this.context) + : 0; + + for (; i < l; i++) { + for ( + cur = this[i]; + cur && cur !== context; + cur = cur.parentNode + ) { + // Always skip document fragments + if ( + cur.nodeType < 11 && + (pos + ? pos.index(cur) > -1 + : // Don't pass non-elements to Sizzle + cur.nodeType === 1 && + jQuery.find.matchesSelector(cur, selectors)) + ) { + matched.push(cur); + break; + } + } + } + + return this.pushStack( + matched.length > 1 ? jQuery.unique(matched) : matched + ); + }, + + // Determine the position of an element within + // the matched set of elements + index: function (elem) { + // No argument, return index in parent + if (!elem) { + return this[0] && this[0].parentNode + ? this.first().prevAll().length + : -1; + } + + // index in selector + if (typeof elem === "string") { + return jQuery.inArray(this[0], jQuery(elem)); + } + + // Locate the position of the desired element + return jQuery.inArray( + // If it receives a jQuery object, the first element is used + elem.jquery ? elem[0] : elem, + this + ); + }, + + add: function (selector, context) { + return this.pushStack( + jQuery.unique( + jQuery.merge(this.get(), jQuery(selector, context)) + ) + ); + }, + + addBack: function (selector) { + return this.add( + selector == null + ? this.prevObject + : this.prevObject.filter(selector) + ); + }, + }); + + function sibling(cur, dir) { + do { + cur = cur[dir]; + } while (cur && cur.nodeType !== 1); + + return cur; + } + + jQuery.each( + { + parent: function (elem) { + var parent = elem.parentNode; + return parent && parent.nodeType !== 11 ? parent : null; + }, + parents: function (elem) { + return jQuery.dir(elem, "parentNode"); + }, + parentsUntil: function (elem, i, until) { + return jQuery.dir(elem, "parentNode", until); + }, + next: function (elem) { + return sibling(elem, "nextSibling"); + }, + prev: function (elem) { + return sibling(elem, "previousSibling"); + }, + nextAll: function (elem) { + return jQuery.dir(elem, "nextSibling"); + }, + prevAll: function (elem) { + return jQuery.dir(elem, "previousSibling"); + }, + nextUntil: function (elem, i, until) { + return jQuery.dir(elem, "nextSibling", until); + }, + prevUntil: function (elem, i, until) { + return jQuery.dir(elem, "previousSibling", until); + }, + siblings: function (elem) { + return jQuery.sibling((elem.parentNode || {}).firstChild, elem); + }, + children: function (elem) { + return jQuery.sibling(elem.firstChild); + }, + contents: function (elem) { + return jQuery.nodeName(elem, "iframe") + ? elem.contentDocument || elem.contentWindow.document + : jQuery.merge([], elem.childNodes); + }, + }, + function (name, fn) { + jQuery.fn[name] = function (until, selector) { + var ret = jQuery.map(this, fn, until); + + if (name.slice(-5) !== "Until") { + selector = until; + } + + if (selector && typeof selector === "string") { + ret = jQuery.filter(selector, ret); + } + + if (this.length > 1) { + // Remove duplicates + if (!guaranteedUnique[name]) { + ret = jQuery.unique(ret); + } + + // Reverse order for parents* and prev-derivatives + if (rparentsprev.test(name)) { + ret = ret.reverse(); + } + } + + return this.pushStack(ret); + }; + } + ); + var rnotwhite = /\S+/g; + + // String to Object options format cache + var optionsCache = {}; + + // Convert String-formatted options into Object-formatted ones and store in cache + function createOptions(options) { + var object = (optionsCache[options] = {}); + jQuery.each(options.match(rnotwhite) || [], function (_, flag) { + object[flag] = true; + }); + return object; + } + + /* + * Create a callback list using the following parameters: + * + * options: an optional list of space-separated options that will change how + * the callback list behaves or a more traditional option object + * + * By default a callback list will act like an event callback list and can be + * "fired" multiple times. + * + * Possible options: + * + * once: will ensure the callback list can only be fired once (like a Deferred) + * + * memory: will keep track of previous values and will call any callback added + * after the list has been fired right away with the latest "memorized" + * values (like a Deferred) + * + * unique: will ensure a callback can only be added once (no duplicate in the list) + * + * stopOnFalse: interrupt callings when a callback returns false + * + */ + jQuery.Callbacks = function (options) { + // Convert options from String-formatted to Object-formatted if needed + // (we check in cache first) + options = + typeof options === "string" + ? optionsCache[options] || createOptions(options) + : jQuery.extend({}, options); + + var // Flag to know if list is currently firing + firing, + // Last fire value (for non-forgettable lists) + memory, + // Flag to know if list was already fired + fired, + // End of the loop when firing + firingLength, + // Index of currently firing callback (modified by remove if needed) + firingIndex, + // First callback to fire (used internally by add and fireWith) + firingStart, + // Actual callback list + list = [], + // Stack of fire calls for repeatable lists + stack = !options.once && [], + // Fire callbacks + fire = function (data) { + memory = options.memory && data; + fired = true; + firingIndex = firingStart || 0; + firingStart = 0; + firingLength = list.length; + firing = true; + for (; list && firingIndex < firingLength; firingIndex++) { + if ( + list[firingIndex].apply(data[0], data[1]) === false && + options.stopOnFalse + ) { + memory = false; // To prevent further calls using add + break; + } + } + firing = false; + if (list) { + if (stack) { + if (stack.length) { + fire(stack.shift()); + } + } else if (memory) { + list = []; + } else { + self.disable(); + } + } + }, + // Actual Callbacks object + self = { + // Add a callback or a collection of callbacks to the list + add: function () { + if (list) { + // First, we save the current length + var start = list.length; + (function add(args) { + jQuery.each(args, function (_, arg) { + var type = jQuery.type(arg); + if (type === "function") { + if (!options.unique || !self.has(arg)) { + list.push(arg); + } + } else if ( + arg && + arg.length && + type !== "string" + ) { + // Inspect recursively + add(arg); + } + }); + })(arguments); + // Do we need to add the callbacks to the + // current firing batch? + if (firing) { + firingLength = list.length; + // With memory, if we're not firing then + // we should call right away + } else if (memory) { + firingStart = start; + fire(memory); + } + } + return this; + }, + // Remove a callback from the list + remove: function () { + if (list) { + jQuery.each(arguments, function (_, arg) { + var index; + while ( + (index = jQuery.inArray(arg, list, index)) > -1 + ) { + list.splice(index, 1); + // Handle firing indexes + if (firing) { + if (index <= firingLength) { + firingLength--; + } + if (index <= firingIndex) { + firingIndex--; + } + } + } + }); + } + return this; + }, + // Check if a given callback is in the list. + // If no argument is given, return whether or not list has callbacks attached. + has: function (fn) { + return fn + ? jQuery.inArray(fn, list) > -1 + : !!(list && list.length); + }, + // Remove all callbacks from the list + empty: function () { + list = []; + firingLength = 0; + return this; + }, + // Have the list do nothing anymore + disable: function () { + list = stack = memory = undefined; + return this; + }, + // Is it disabled? + disabled: function () { + return !list; + }, + // Lock the list in its current state + lock: function () { + stack = undefined; + if (!memory) { + self.disable(); + } + return this; + }, + // Is it locked? + locked: function () { + return !stack; + }, + // Call all callbacks with the given context and arguments + fireWith: function (context, args) { + if (list && (!fired || stack)) { + args = args || []; + args = [context, args.slice ? args.slice() : args]; + if (firing) { + stack.push(args); + } else { + fire(args); + } + } + return this; + }, + // Call all the callbacks with the given arguments + fire: function () { + self.fireWith(this, arguments); + return this; + }, + // To know if the callbacks have already been called at least once + fired: function () { + return !!fired; + }, + }; + + return self; + }; + + jQuery.extend({ + Deferred: function (func) { + var tuples = [ + // action, add listener, listener list, final state + [ + "resolve", + "done", + jQuery.Callbacks("once memory"), + "resolved", + ], + [ + "reject", + "fail", + jQuery.Callbacks("once memory"), + "rejected", + ], + ["notify", "progress", jQuery.Callbacks("memory")], + ], + state = "pending", + promise = { + state: function () { + return state; + }, + always: function () { + deferred.done(arguments).fail(arguments); + return this; + }, + then: function (/* fnDone, fnFail, fnProgress */) { + var fns = arguments; + return jQuery + .Deferred(function (newDefer) { + jQuery.each(tuples, function (i, tuple) { + var fn = + jQuery.isFunction(fns[i]) && fns[i]; + // deferred[ done | fail | progress ] for forwarding actions to newDefer + deferred[tuple[1]](function () { + var returned = + fn && fn.apply(this, arguments); + if ( + returned && + jQuery.isFunction(returned.promise) + ) { + returned + .promise() + .done(newDefer.resolve) + .fail(newDefer.reject) + .progress(newDefer.notify); + } else { + newDefer[tuple[0] + "With"]( + this === promise + ? newDefer.promise() + : this, + fn ? [returned] : arguments + ); + } + }); + }); + fns = null; + }) + .promise(); + }, + // Get a promise for this deferred + // If obj is provided, the promise aspect is added to the object + promise: function (obj) { + return obj != null + ? jQuery.extend(obj, promise) + : promise; + }, + }, + deferred = {}; + + // Keep pipe for back-compat + promise.pipe = promise.then; + + // Add list-specific methods + jQuery.each(tuples, function (i, tuple) { + var list = tuple[2], + stateString = tuple[3]; + + // promise[ done | fail | progress ] = list.add + promise[tuple[1]] = list.add; + + // Handle state + if (stateString) { + list.add( + function () { + // state = [ resolved | rejected ] + state = stateString; + + // [ reject_list | resolve_list ].disable; progress_list.lock + }, + tuples[i ^ 1][2].disable, + tuples[2][2].lock + ); + } + + // deferred[ resolve | reject | notify ] + deferred[tuple[0]] = function () { + deferred[tuple[0] + "With"]( + this === deferred ? promise : this, + arguments + ); + return this; + }; + deferred[tuple[0] + "With"] = list.fireWith; + }); + + // Make the deferred a promise + promise.promise(deferred); + + // Call given func if any + if (func) { + func.call(deferred, deferred); + } + + // All done! + return deferred; + }, + + // Deferred helper + when: function (subordinate /* , ..., subordinateN */) { + var i = 0, + resolveValues = slice.call(arguments), + length = resolveValues.length, + // the count of uncompleted subordinates + remaining = + length !== 1 || + (subordinate && jQuery.isFunction(subordinate.promise)) + ? length + : 0, + // the master Deferred. If resolveValues consist of only a single Deferred, just use that. + deferred = remaining === 1 ? subordinate : jQuery.Deferred(), + // Update function for both resolve and progress values + updateFunc = function (i, contexts, values) { + return function (value) { + contexts[i] = this; + values[i] = + arguments.length > 1 + ? slice.call(arguments) + : value; + if (values === progressValues) { + deferred.notifyWith(contexts, values); + } else if (!--remaining) { + deferred.resolveWith(contexts, values); + } + }; + }, + progressValues, + progressContexts, + resolveContexts; + + // add listeners to Deferred subordinates; treat others as resolved + if (length > 1) { + progressValues = new Array(length); + progressContexts = new Array(length); + resolveContexts = new Array(length); + for (; i < length; i++) { + if ( + resolveValues[i] && + jQuery.isFunction(resolveValues[i].promise) + ) { + resolveValues[i] + .promise() + .done(updateFunc(i, resolveContexts, resolveValues)) + .fail(deferred.reject) + .progress( + updateFunc(i, progressContexts, progressValues) + ); + } else { + --remaining; + } + } + } + + // if we're not waiting on anything, resolve the master + if (!remaining) { + deferred.resolveWith(resolveContexts, resolveValues); + } + + return deferred.promise(); + }, + }); + + // The deferred used on DOM ready + var readyList; + + jQuery.fn.ready = function (fn) { + // Add the callback + jQuery.ready.promise().done(fn); + + return this; + }; + + jQuery.extend({ + // Is the DOM ready to be used? Set to true once it occurs. + isReady: false, + + // A counter to track how many items to wait for before + // the ready event fires. See #6781 + readyWait: 1, + + // Hold (or release) the ready event + holdReady: function (hold) { + if (hold) { + jQuery.readyWait++; + } else { + jQuery.ready(true); + } + }, + + // Handle when the DOM is ready + ready: function (wait) { + // Abort if there are pending holds or we're already ready + if (wait === true ? --jQuery.readyWait : jQuery.isReady) { + return; + } + + // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443). + if (!document.body) { + return setTimeout(jQuery.ready); + } + + // Remember that the DOM is ready + jQuery.isReady = true; + + // If a normal DOM Ready event fired, decrement, and wait if need be + if (wait !== true && --jQuery.readyWait > 0) { + return; + } + + // If there are functions bound, to execute + readyList.resolveWith(document, [jQuery]); + + // Trigger any bound ready events + if (jQuery.fn.triggerHandler) { + jQuery(document).triggerHandler("ready"); + jQuery(document).off("ready"); + } + }, + }); + + /** + * Clean-up method for dom ready events + */ + function detach() { + if (document.addEventListener) { + document.removeEventListener("DOMContentLoaded", completed, false); + window.removeEventListener("load", completed, false); + } else { + document.detachEvent("onreadystatechange", completed); + window.detachEvent("onload", completed); + } + } + + /** + * The ready event handler and self cleanup method + */ + function completed() { + // readyState === "complete" is good enough for us to call the dom ready in oldIE + if ( + document.addEventListener || + event.type === "load" || + document.readyState === "complete" + ) { + detach(); + jQuery.ready(); + } + } + + jQuery.ready.promise = function (obj) { + if (!readyList) { + readyList = jQuery.Deferred(); + + // Catch cases where $(document).ready() is called after the browser event has already occurred. + // we once tried to use readyState "interactive" here, but it caused issues like the one + // discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15 + if (document.readyState === "complete") { + // Handle it asynchronously to allow scripts the opportunity to delay ready + setTimeout(jQuery.ready); + + // Standards-based browsers support DOMContentLoaded + } else if (document.addEventListener) { + // Use the handy event callback + document.addEventListener("DOMContentLoaded", completed, false); + + // A fallback to window.onload, that will always work + window.addEventListener("load", completed, false); + + // If IE event model is used + } else { + // Ensure firing before onload, maybe late but safe also for iframes + document.attachEvent("onreadystatechange", completed); + + // A fallback to window.onload, that will always work + window.attachEvent("onload", completed); + + // If IE and not a frame + // continually check to see if the document is ready + var top = false; + + try { + top = + window.frameElement == null && document.documentElement; + } catch (e) {} + + if (top && top.doScroll) { + (function doScrollCheck() { + if (!jQuery.isReady) { + try { + // Use the trick by Diego Perini + // http://javascript.nwbox.com/IEContentLoaded/ + top.doScroll("left"); + } catch (e) { + return setTimeout(doScrollCheck, 50); + } + + // detach all dom ready events + detach(); + + // and execute any waiting functions + jQuery.ready(); + } + })(); + } + } + } + return readyList.promise(obj); + }; + + var strundefined = typeof undefined; + + // Support: IE<9 + // Iteration over object's inherited properties before its own + var i; + for (i in jQuery(support)) { + break; + } + support.ownLast = i !== "0"; + + // Note: most support tests are defined in their respective modules. + // false until the test is run + support.inlineBlockNeedsLayout = false; + + // Execute ASAP in case we need to set body.style.zoom + jQuery(function () { + // Minified: var a,b,c,d + var val, div, body, container; + + body = document.getElementsByTagName("body")[0]; + if (!body || !body.style) { + // Return for frameset docs that don't have a body + return; + } + + // Setup + div = document.createElement("div"); + container = document.createElement("div"); + container.style.cssText = + "position:absolute;border:0;width:0;height:0;top:0;left:-9999px"; + body.appendChild(container).appendChild(div); + + if (typeof div.style.zoom !== strundefined) { + // Support: IE<8 + // Check if natively block-level elements act like inline-block + // elements when setting their display to 'inline' and giving + // them layout + div.style.cssText = + "display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1"; + + support.inlineBlockNeedsLayout = val = div.offsetWidth === 3; + if (val) { + // Prevent IE 6 from affecting layout for positioned elements #11048 + // Prevent IE from shrinking the body in IE 7 mode #12869 + // Support: IE<8 + body.style.zoom = 1; + } + } + + body.removeChild(container); + }); + + (function () { + var div = document.createElement("div"); + + // Execute the test only if not already executed in another module. + if (support.deleteExpando == null) { + // Support: IE<9 + support.deleteExpando = true; + try { + delete div.test; + } catch (e) { + support.deleteExpando = false; + } + } + + // Null elements to avoid leaks in IE. + div = null; + })(); + + /** + * Determines whether an object can have data + */ + jQuery.acceptData = function (elem) { + var noData = jQuery.noData[(elem.nodeName + " ").toLowerCase()], + nodeType = +elem.nodeType || 1; + + // Do not set data on non-element DOM nodes because it will not be cleared (#8335). + return nodeType !== 1 && nodeType !== 9 + ? false + : // Nodes accept data unless otherwise specified; rejection can be conditional + !noData || + (noData !== true && elem.getAttribute("classid") === noData); + }; + + var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, + rmultiDash = /([A-Z])/g; + + function dataAttr(elem, key, data) { + // If nothing was found internally, try to fetch any + // data from the HTML5 data-* attribute + if (data === undefined && elem.nodeType === 1) { + var name = "data-" + key.replace(rmultiDash, "-$1").toLowerCase(); + + data = elem.getAttribute(name); + + if (typeof data === "string") { + try { + data = + data === "true" + ? true + : data === "false" + ? false + : data === "null" + ? null + : // Only convert to a number if it doesn't change the string + +data + "" === data + ? +data + : rbrace.test(data) + ? jQuery.parseJSON(data) + : data; + } catch (e) {} + + // Make sure we set the data so it isn't changed later + jQuery.data(elem, key, data); + } else { + data = undefined; + } + } + + return data; + } + + // checks a cache object for emptiness + function isEmptyDataObject(obj) { + var name; + for (name in obj) { + // if the public data object is empty, the private is still empty + if (name === "data" && jQuery.isEmptyObject(obj[name])) { + continue; + } + if (name !== "toJSON") { + return false; + } + } + + return true; + } + + function internalData(elem, name, data, pvt /* Internal Use Only */) { + if (!jQuery.acceptData(elem)) { + return; + } + + var ret, + thisCache, + internalKey = jQuery.expando, + // We have to handle DOM nodes and JS objects differently because IE6-7 + // can't GC object references properly across the DOM-JS boundary + isNode = elem.nodeType, + // Only DOM nodes need the global jQuery cache; JS object data is + // attached directly to the object so GC can occur automatically + cache = isNode ? jQuery.cache : elem, + // Only defining an ID for JS objects if its cache already exists allows + // the code to shortcut on the same path as a DOM node with no cache + id = isNode ? elem[internalKey] : elem[internalKey] && internalKey; + + // Avoid doing any more work than we need to when trying to get data on an + // object that has no data at all + if ( + (!id || !cache[id] || (!pvt && !cache[id].data)) && + data === undefined && + typeof name === "string" + ) { + return; + } + + if (!id) { + // Only DOM nodes need a new unique ID for each element since their data + // ends up in the global cache + if (isNode) { + id = elem[internalKey] = deletedIds.pop() || jQuery.guid++; + } else { + id = internalKey; + } + } + + if (!cache[id]) { + // Avoid exposing jQuery metadata on plain JS objects when the object + // is serialized using JSON.stringify + cache[id] = isNode ? {} : { toJSON: jQuery.noop }; + } + + // An object can be passed to jQuery.data instead of a key/value pair; this gets + // shallow copied over onto the existing cache + if (typeof name === "object" || typeof name === "function") { + if (pvt) { + cache[id] = jQuery.extend(cache[id], name); + } else { + cache[id].data = jQuery.extend(cache[id].data, name); + } + } + + thisCache = cache[id]; + + // jQuery data() is stored in a separate object inside the object's internal data + // cache in order to avoid key collisions between internal data and user-defined + // data. + if (!pvt) { + if (!thisCache.data) { + thisCache.data = {}; + } + + thisCache = thisCache.data; + } + + if (data !== undefined) { + thisCache[jQuery.camelCase(name)] = data; + } + + // Check for both converted-to-camel and non-converted data property names + // If a data property was specified + if (typeof name === "string") { + // First Try to find as-is property data + ret = thisCache[name]; + + // Test for null|undefined property data + if (ret == null) { + // Try to find the camelCased property + ret = thisCache[jQuery.camelCase(name)]; + } + } else { + ret = thisCache; + } + + return ret; + } + + function internalRemoveData(elem, name, pvt) { + if (!jQuery.acceptData(elem)) { + return; + } + + var thisCache, + i, + isNode = elem.nodeType, + // See jQuery.data for more information + cache = isNode ? jQuery.cache : elem, + id = isNode ? elem[jQuery.expando] : jQuery.expando; + + // If there is already no cache entry for this object, there is no + // purpose in continuing + if (!cache[id]) { + return; + } + + if (name) { + thisCache = pvt ? cache[id] : cache[id].data; + + if (thisCache) { + // Support array or space separated string names for data keys + if (!jQuery.isArray(name)) { + // try the string as a key before any manipulation + if (name in thisCache) { + name = [name]; + } else { + // split the camel cased version by spaces unless a key with the spaces exists + name = jQuery.camelCase(name); + if (name in thisCache) { + name = [name]; + } else { + name = name.split(" "); + } + } + } else { + // If "name" is an array of keys... + // When data is initially created, via ("key", "val") signature, + // keys will be converted to camelCase. + // Since there is no way to tell _how_ a key was added, remove + // both plain key and camelCase key. #12786 + // This will only penalize the array argument path. + name = name.concat(jQuery.map(name, jQuery.camelCase)); + } + + i = name.length; + while (i--) { + delete thisCache[name[i]]; + } + + // If there is no data left in the cache, we want to continue + // and let the cache object itself get destroyed + if ( + pvt + ? !isEmptyDataObject(thisCache) + : !jQuery.isEmptyObject(thisCache) + ) { + return; + } + } + } + + // See jQuery.data for more information + if (!pvt) { + delete cache[id].data; + + // Don't destroy the parent cache unless the internal data object + // had been the only thing left in it + if (!isEmptyDataObject(cache[id])) { + return; + } + } + + // Destroy the cache + if (isNode) { + jQuery.cleanData([elem], true); + + // Use delete when supported for expandos or `cache` is not a window per isWindow (#10080) + /* jshint eqeqeq: false */ + } else if (support.deleteExpando || cache != cache.window) { + /* jshint eqeqeq: true */ + delete cache[id]; + + // When all else fails, null + } else { + cache[id] = null; + } + } + + jQuery.extend({ + cache: {}, + + // The following elements (space-suffixed to avoid Object.prototype collisions) + // throw uncatchable exceptions if you attempt to set expando properties + noData: { + "applet ": true, + "embed ": true, + // ...but Flash objects (which have this classid) *can* handle expandos + "object ": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000", + }, + + hasData: function (elem) { + elem = elem.nodeType + ? jQuery.cache[elem[jQuery.expando]] + : elem[jQuery.expando]; + return !!elem && !isEmptyDataObject(elem); + }, + + data: function (elem, name, data) { + return internalData(elem, name, data); + }, + + removeData: function (elem, name) { + return internalRemoveData(elem, name); + }, + + // For internal use only. + _data: function (elem, name, data) { + return internalData(elem, name, data, true); + }, + + _removeData: function (elem, name) { + return internalRemoveData(elem, name, true); + }, + }); + + jQuery.fn.extend({ + data: function (key, value) { + var i, + name, + data, + elem = this[0], + attrs = elem && elem.attributes; + + // Special expections of .data basically thwart jQuery.access, + // so implement the relevant behavior ourselves + + // Gets all values + if (key === undefined) { + if (this.length) { + data = jQuery.data(elem); + + if ( + elem.nodeType === 1 && + !jQuery._data(elem, "parsedAttrs") + ) { + i = attrs.length; + while (i--) { + // Support: IE11+ + // The attrs elements can be null (#14894) + if (attrs[i]) { + name = attrs[i].name; + if (name.indexOf("data-") === 0) { + name = jQuery.camelCase(name.slice(5)); + dataAttr(elem, name, data[name]); + } + } + } + jQuery._data(elem, "parsedAttrs", true); + } + } + + return data; + } + + // Sets multiple values + if (typeof key === "object") { + return this.each(function () { + jQuery.data(this, key); + }); + } + + return arguments.length > 1 + ? // Sets one value + this.each(function () { + jQuery.data(this, key, value); + }) + : // Gets one value + // Try to fetch any internally stored data first + elem + ? dataAttr(elem, key, jQuery.data(elem, key)) + : undefined; + }, + + removeData: function (key) { + return this.each(function () { + jQuery.removeData(this, key); + }); + }, + }); + + jQuery.extend({ + queue: function (elem, type, data) { + var queue; + + if (elem) { + type = (type || "fx") + "queue"; + queue = jQuery._data(elem, type); + + // Speed up dequeue by getting out quickly if this is just a lookup + if (data) { + if (!queue || jQuery.isArray(data)) { + queue = jQuery._data( + elem, + type, + jQuery.makeArray(data) + ); + } else { + queue.push(data); + } + } + return queue || []; + } + }, + + dequeue: function (elem, type) { + type = type || "fx"; + + var queue = jQuery.queue(elem, type), + startLength = queue.length, + fn = queue.shift(), + hooks = jQuery._queueHooks(elem, type), + next = function () { + jQuery.dequeue(elem, type); + }; + + // If the fx queue is dequeued, always remove the progress sentinel + if (fn === "inprogress") { + fn = queue.shift(); + startLength--; + } + + if (fn) { + // Add a progress sentinel to prevent the fx queue from being + // automatically dequeued + if (type === "fx") { + queue.unshift("inprogress"); + } + + // clear up the last queue stop function + delete hooks.stop; + fn.call(elem, next, hooks); + } + + if (!startLength && hooks) { + hooks.empty.fire(); + } + }, + + // not intended for public consumption - generates a queueHooks object, or returns the current one + _queueHooks: function (elem, type) { + var key = type + "queueHooks"; + return ( + jQuery._data(elem, key) || + jQuery._data(elem, key, { + empty: jQuery.Callbacks("once memory").add(function () { + jQuery._removeData(elem, type + "queue"); + jQuery._removeData(elem, key); + }), + }) + ); + }, + }); + + jQuery.fn.extend({ + queue: function (type, data) { + var setter = 2; + + if (typeof type !== "string") { + data = type; + type = "fx"; + setter--; + } + + if (arguments.length < setter) { + return jQuery.queue(this[0], type); + } + + return data === undefined + ? this + : this.each(function () { + var queue = jQuery.queue(this, type, data); + + // ensure a hooks for this queue + jQuery._queueHooks(this, type); + + if (type === "fx" && queue[0] !== "inprogress") { + jQuery.dequeue(this, type); + } + }); + }, + dequeue: function (type) { + return this.each(function () { + jQuery.dequeue(this, type); + }); + }, + clearQueue: function (type) { + return this.queue(type || "fx", []); + }, + // Get a promise resolved when queues of a certain type + // are emptied (fx is the type by default) + promise: function (type, obj) { + var tmp, + count = 1, + defer = jQuery.Deferred(), + elements = this, + i = this.length, + resolve = function () { + if (!--count) { + defer.resolveWith(elements, [elements]); + } + }; + + if (typeof type !== "string") { + obj = type; + type = undefined; + } + type = type || "fx"; + + while (i--) { + tmp = jQuery._data(elements[i], type + "queueHooks"); + if (tmp && tmp.empty) { + count++; + tmp.empty.add(resolve); + } + } + resolve(); + return defer.promise(obj); + }, + }); + var pnum = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source; + + var cssExpand = ["Top", "Right", "Bottom", "Left"]; + + var isHidden = function (elem, el) { + // isHidden might be called from jQuery#filter function; + // in that case, element will be second argument + elem = el || elem; + return ( + jQuery.css(elem, "display") === "none" || + !jQuery.contains(elem.ownerDocument, elem) + ); + }; + + // Multifunctional method to get and set values of a collection + // The value/s can optionally be executed if it's a function + var access = (jQuery.access = function ( + elems, + fn, + key, + value, + chainable, + emptyGet, + raw + ) { + var i = 0, + length = elems.length, + bulk = key == null; + + // Sets many values + if (jQuery.type(key) === "object") { + chainable = true; + for (i in key) { + jQuery.access(elems, fn, i, key[i], true, emptyGet, raw); + } + + // Sets one value + } else if (value !== undefined) { + chainable = true; + + if (!jQuery.isFunction(value)) { + raw = true; + } + + if (bulk) { + // Bulk operations run against the entire set + if (raw) { + fn.call(elems, value); + fn = null; + + // ...except when executing function values + } else { + bulk = fn; + fn = function (elem, key, value) { + return bulk.call(jQuery(elem), value); + }; + } + } + + if (fn) { + for (; i < length; i++) { + fn( + elems[i], + key, + raw ? value : value.call(elems[i], i, fn(elems[i], key)) + ); + } + } + } + + return chainable + ? elems + : // Gets + bulk + ? fn.call(elems) + : length + ? fn(elems[0], key) + : emptyGet; + }); + var rcheckableType = /^(?:checkbox|radio)$/i; + + (function () { + // Minified: var a,b,c + var input = document.createElement("input"), + div = document.createElement("div"), + fragment = document.createDocumentFragment(); + + // Setup + div.innerHTML = + "
a"; + + // IE strips leading whitespace when .innerHTML is used + support.leadingWhitespace = div.firstChild.nodeType === 3; + + // Make sure that tbody elements aren't automatically inserted + // IE will insert them into empty tables + support.tbody = !div.getElementsByTagName("tbody").length; + + // Make sure that link elements get serialized correctly by innerHTML + // This requires a wrapper element in IE + support.htmlSerialize = !!div.getElementsByTagName("link").length; + + // Makes sure cloning an html5 element does not cause problems + // Where outerHTML is undefined, this still works + support.html5Clone = + document.createElement("nav").cloneNode(true).outerHTML !== + "<:nav>"; + + // Check if a disconnected checkbox will retain its checked + // value of true after appended to the DOM (IE6/7) + input.type = "checkbox"; + input.checked = true; + fragment.appendChild(input); + support.appendChecked = input.checked; + + // Make sure textarea (and checkbox) defaultValue is properly cloned + // Support: IE6-IE11+ + div.innerHTML = ""; + support.noCloneChecked = !!div.cloneNode(true).lastChild.defaultValue; + + // #11217 - WebKit loses check when the name is after the checked attribute + fragment.appendChild(div); + div.innerHTML = ""; + + // Support: Safari 5.1, iOS 5.1, Android 4.x, Android 2.3 + // old WebKit doesn't clone checked state correctly in fragments + support.checkClone = div + .cloneNode(true) + .cloneNode(true).lastChild.checked; + + // Support: IE<9 + // Opera does not clone events (and typeof div.attachEvent === undefined). + // IE9-10 clones events bound via attachEvent, but they don't trigger with .click() + support.noCloneEvent = true; + if (div.attachEvent) { + div.attachEvent("onclick", function () { + support.noCloneEvent = false; + }); + + div.cloneNode(true).click(); + } + + // Execute the test only if not already executed in another module. + if (support.deleteExpando == null) { + // Support: IE<9 + support.deleteExpando = true; + try { + delete div.test; + } catch (e) { + support.deleteExpando = false; + } + } + })(); + + (function () { + var i, + eventName, + div = document.createElement("div"); + + // Support: IE<9 (lack submit/change bubble), Firefox 23+ (lack focusin event) + for (i in { submit: true, change: true, focusin: true }) { + eventName = "on" + i; + + if (!(support[i + "Bubbles"] = eventName in window)) { + // Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP) + div.setAttribute(eventName, "t"); + support[i + "Bubbles"] = + div.attributes[eventName].expando === false; + } + } + + // Null elements to avoid leaks in IE. + div = null; + })(); + + var rformElems = /^(?:input|select|textarea)$/i, + rkeyEvent = /^key/, + rmouseEvent = /^(?:mouse|pointer|contextmenu)|click/, + rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, + rtypenamespace = /^([^.]*)(?:\.(.+)|)$/; + + function returnTrue() { + return true; + } + + function returnFalse() { + return false; + } + + function safeActiveElement() { + try { + return document.activeElement; + } catch (err) {} + } + + /* + * Helper functions for managing events -- not part of the public interface. + * Props to Dean Edwards' addEvent library for many of the ideas. + */ + jQuery.event = { + global: {}, + + add: function (elem, types, handler, data, selector) { + var tmp, + events, + t, + handleObjIn, + special, + eventHandle, + handleObj, + handlers, + type, + namespaces, + origType, + elemData = jQuery._data(elem); + + // Don't attach events to noData or text/comment nodes (but allow plain objects) + if (!elemData) { + return; + } + + // Caller can pass in an object of custom data in lieu of the handler + if (handler.handler) { + handleObjIn = handler; + handler = handleObjIn.handler; + selector = handleObjIn.selector; + } + + // Make sure that the handler has a unique ID, used to find/remove it later + if (!handler.guid) { + handler.guid = jQuery.guid++; + } + + // Init the element's event structure and main handler, if this is the first + if (!(events = elemData.events)) { + events = elemData.events = {}; + } + if (!(eventHandle = elemData.handle)) { + eventHandle = elemData.handle = function (e) { + // Discard the second event of a jQuery.event.trigger() and + // when an event is called after a page has unloaded + return typeof jQuery !== strundefined && + (!e || jQuery.event.triggered !== e.type) + ? jQuery.event.dispatch.apply( + eventHandle.elem, + arguments + ) + : undefined; + }; + // Add elem as a property of the handle fn to prevent a memory leak with IE non-native events + eventHandle.elem = elem; + } + + // Handle multiple events separated by a space + types = (types || "").match(rnotwhite) || [""]; + t = types.length; + while (t--) { + tmp = rtypenamespace.exec(types[t]) || []; + type = origType = tmp[1]; + namespaces = (tmp[2] || "").split(".").sort(); + + // There *must* be a type, no attaching namespace-only handlers + if (!type) { + continue; + } + + // If event changes its type, use the special event handlers for the changed type + special = jQuery.event.special[type] || {}; + + // If selector defined, determine special event api type, otherwise given type + type = + (selector ? special.delegateType : special.bindType) || + type; + + // Update special based on newly reset type + special = jQuery.event.special[type] || {}; + + // handleObj is passed to all event handlers + handleObj = jQuery.extend( + { + type: type, + origType: origType, + data: data, + handler: handler, + guid: handler.guid, + selector: selector, + needsContext: + selector && + jQuery.expr.match.needsContext.test(selector), + namespace: namespaces.join("."), + }, + handleObjIn + ); + + // Init the event handler queue if we're the first + if (!(handlers = events[type])) { + handlers = events[type] = []; + handlers.delegateCount = 0; + + // Only use addEventListener/attachEvent if the special events handler returns false + if ( + !special.setup || + special.setup.call( + elem, + data, + namespaces, + eventHandle + ) === false + ) { + // Bind the global event handler to the element + if (elem.addEventListener) { + elem.addEventListener(type, eventHandle, false); + } else if (elem.attachEvent) { + elem.attachEvent("on" + type, eventHandle); + } + } + } + + if (special.add) { + special.add.call(elem, handleObj); + + if (!handleObj.handler.guid) { + handleObj.handler.guid = handler.guid; + } + } + + // Add to the element's handler list, delegates in front + if (selector) { + handlers.splice(handlers.delegateCount++, 0, handleObj); + } else { + handlers.push(handleObj); + } + + // Keep track of which events have ever been used, for event optimization + jQuery.event.global[type] = true; + } + + // Nullify elem to prevent memory leaks in IE + elem = null; + }, + + // Detach an event or set of events from an element + remove: function (elem, types, handler, selector, mappedTypes) { + var j, + handleObj, + tmp, + origCount, + t, + events, + special, + handlers, + type, + namespaces, + origType, + elemData = jQuery.hasData(elem) && jQuery._data(elem); + + if (!elemData || !(events = elemData.events)) { + return; + } + + // Once for each type.namespace in types; type may be omitted + types = (types || "").match(rnotwhite) || [""]; + t = types.length; + while (t--) { + tmp = rtypenamespace.exec(types[t]) || []; + type = origType = tmp[1]; + namespaces = (tmp[2] || "").split(".").sort(); + + // Unbind all events (on this namespace, if provided) for the element + if (!type) { + for (type in events) { + jQuery.event.remove( + elem, + type + types[t], + handler, + selector, + true + ); + } + continue; + } + + special = jQuery.event.special[type] || {}; + type = + (selector ? special.delegateType : special.bindType) || + type; + handlers = events[type] || []; + tmp = + tmp[2] && + new RegExp( + "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" + ); + + // Remove matching events + origCount = j = handlers.length; + while (j--) { + handleObj = handlers[j]; + + if ( + (mappedTypes || origType === handleObj.origType) && + (!handler || handler.guid === handleObj.guid) && + (!tmp || tmp.test(handleObj.namespace)) && + (!selector || + selector === handleObj.selector || + (selector === "**" && handleObj.selector)) + ) { + handlers.splice(j, 1); + + if (handleObj.selector) { + handlers.delegateCount--; + } + if (special.remove) { + special.remove.call(elem, handleObj); + } + } + } + + // Remove generic event handler if we removed something and no more handlers exist + // (avoids potential for endless recursion during removal of special event handlers) + if (origCount && !handlers.length) { + if ( + !special.teardown || + special.teardown.call( + elem, + namespaces, + elemData.handle + ) === false + ) { + jQuery.removeEvent(elem, type, elemData.handle); + } + + delete events[type]; + } + } + + // Remove the expando if it's no longer used + if (jQuery.isEmptyObject(events)) { + delete elemData.handle; + + // removeData also checks for emptiness and clears the expando if empty + // so use it instead of delete + jQuery._removeData(elem, "events"); + } + }, + + trigger: function (event, data, elem, onlyHandlers) { + var handle, + ontype, + cur, + bubbleType, + special, + tmp, + i, + eventPath = [elem || document], + type = hasOwn.call(event, "type") ? event.type : event, + namespaces = hasOwn.call(event, "namespace") + ? event.namespace.split(".") + : []; + + cur = tmp = elem = elem || document; + + // Don't do events on text and comment nodes + if (elem.nodeType === 3 || elem.nodeType === 8) { + return; + } + + // focus/blur morphs to focusin/out; ensure we're not firing them right now + if (rfocusMorph.test(type + jQuery.event.triggered)) { + return; + } + + if (type.indexOf(".") >= 0) { + // Namespaced trigger; create a regexp to match event type in handle() + namespaces = type.split("."); + type = namespaces.shift(); + namespaces.sort(); + } + ontype = type.indexOf(":") < 0 && "on" + type; + + // Caller can pass in a jQuery.Event object, Object, or just an event type string + event = event[jQuery.expando] + ? event + : new jQuery.Event(type, typeof event === "object" && event); + + // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true) + event.isTrigger = onlyHandlers ? 2 : 3; + event.namespace = namespaces.join("."); + event.namespace_re = event.namespace + ? new RegExp( + "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" + ) + : null; + + // Clean up the event in case it is being reused + event.result = undefined; + if (!event.target) { + event.target = elem; + } + + // Clone any incoming data and prepend the event, creating the handler arg list + data = data == null ? [event] : jQuery.makeArray(data, [event]); + + // Allow special events to draw outside the lines + special = jQuery.event.special[type] || {}; + if ( + !onlyHandlers && + special.trigger && + special.trigger.apply(elem, data) === false + ) { + return; + } + + // Determine event propagation path in advance, per W3C events spec (#9951) + // Bubble up to document, then to window; watch for a global ownerDocument var (#9724) + if (!onlyHandlers && !special.noBubble && !jQuery.isWindow(elem)) { + bubbleType = special.delegateType || type; + if (!rfocusMorph.test(bubbleType + type)) { + cur = cur.parentNode; + } + for (; cur; cur = cur.parentNode) { + eventPath.push(cur); + tmp = cur; + } + + // Only add window if we got to document (e.g., not plain obj or detached DOM) + if (tmp === (elem.ownerDocument || document)) { + eventPath.push( + tmp.defaultView || tmp.parentWindow || window + ); + } + } + + // Fire handlers on the event path + i = 0; + while ((cur = eventPath[i++]) && !event.isPropagationStopped()) { + event.type = i > 1 ? bubbleType : special.bindType || type; + + // jQuery handler + handle = + (jQuery._data(cur, "events") || {})[event.type] && + jQuery._data(cur, "handle"); + if (handle) { + handle.apply(cur, data); + } + + // Native handler + handle = ontype && cur[ontype]; + if (handle && handle.apply && jQuery.acceptData(cur)) { + event.result = handle.apply(cur, data); + if (event.result === false) { + event.preventDefault(); + } + } + } + event.type = type; + + // If nobody prevented the default action, do it now + if (!onlyHandlers && !event.isDefaultPrevented()) { + if ( + (!special._default || + special._default.apply(eventPath.pop(), data) === + false) && + jQuery.acceptData(elem) + ) { + // Call a native DOM method on the target with the same name name as the event. + // Can't use an .isFunction() check here because IE6/7 fails that test. + // Don't do default actions on window, that's where global variables be (#6170) + if (ontype && elem[type] && !jQuery.isWindow(elem)) { + // Don't re-trigger an onFOO event when we call its FOO() method + tmp = elem[ontype]; + + if (tmp) { + elem[ontype] = null; + } + + // Prevent re-triggering of the same event, since we already bubbled it above + jQuery.event.triggered = type; + try { + elem[type](); + } catch (e) { + // IE<9 dies on focus/blur to hidden element (#1486,#12518) + // only reproducible on winXP IE8 native, not IE9 in IE8 mode + } + jQuery.event.triggered = undefined; + + if (tmp) { + elem[ontype] = tmp; + } + } + } + } + + return event.result; + }, + + dispatch: function (event) { + // Make a writable jQuery.Event from the native event object + event = jQuery.event.fix(event); + + var i, + ret, + handleObj, + matched, + j, + handlerQueue = [], + args = slice.call(arguments), + handlers = + (jQuery._data(this, "events") || {})[event.type] || [], + special = jQuery.event.special[event.type] || {}; + + // Use the fix-ed jQuery.Event rather than the (read-only) native event + args[0] = event; + event.delegateTarget = this; + + // Call the preDispatch hook for the mapped type, and let it bail if desired + if ( + special.preDispatch && + special.preDispatch.call(this, event) === false + ) { + return; + } + + // Determine handlers + handlerQueue = jQuery.event.handlers.call(this, event, handlers); + + // Run delegates first; they may want to stop propagation beneath us + i = 0; + while ( + (matched = handlerQueue[i++]) && + !event.isPropagationStopped() + ) { + event.currentTarget = matched.elem; + + j = 0; + while ( + (handleObj = matched.handlers[j++]) && + !event.isImmediatePropagationStopped() + ) { + // Triggered event must either 1) have no namespace, or + // 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace). + if ( + !event.namespace_re || + event.namespace_re.test(handleObj.namespace) + ) { + event.handleObj = handleObj; + event.data = handleObj.data; + + ret = ( + (jQuery.event.special[handleObj.origType] || {}) + .handle || handleObj.handler + ).apply(matched.elem, args); + + if (ret !== undefined) { + if ((event.result = ret) === false) { + event.preventDefault(); + event.stopPropagation(); + } + } + } + } + } + + // Call the postDispatch hook for the mapped type + if (special.postDispatch) { + special.postDispatch.call(this, event); + } + + return event.result; + }, + + handlers: function (event, handlers) { + var sel, + handleObj, + matches, + i, + handlerQueue = [], + delegateCount = handlers.delegateCount, + cur = event.target; + + // Find delegate handlers + // Black-hole SVG instance trees (#13180) + // Avoid non-left-click bubbling in Firefox (#3861) + if ( + delegateCount && + cur.nodeType && + (!event.button || event.type !== "click") + ) { + /* jshint eqeqeq: false */ + for (; cur != this; cur = cur.parentNode || this) { + /* jshint eqeqeq: true */ + + // Don't check non-elements (#13208) + // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764) + if ( + cur.nodeType === 1 && + (cur.disabled !== true || event.type !== "click") + ) { + matches = []; + for (i = 0; i < delegateCount; i++) { + handleObj = handlers[i]; + + // Don't conflict with Object.prototype properties (#13203) + sel = handleObj.selector + " "; + + if (matches[sel] === undefined) { + matches[sel] = handleObj.needsContext + ? jQuery(sel, this).index(cur) >= 0 + : jQuery.find(sel, this, null, [cur]) + .length; + } + if (matches[sel]) { + matches.push(handleObj); + } + } + if (matches.length) { + handlerQueue.push({ elem: cur, handlers: matches }); + } + } + } + } + + // Add the remaining (directly-bound) handlers + if (delegateCount < handlers.length) { + handlerQueue.push({ + elem: this, + handlers: handlers.slice(delegateCount), + }); + } + + return handlerQueue; + }, + + fix: function (event) { + if (event[jQuery.expando]) { + return event; + } + + // Create a writable copy of the event object and normalize some properties + var i, + prop, + copy, + type = event.type, + originalEvent = event, + fixHook = this.fixHooks[type]; + + if (!fixHook) { + this.fixHooks[type] = fixHook = rmouseEvent.test(type) + ? this.mouseHooks + : rkeyEvent.test(type) + ? this.keyHooks + : {}; + } + copy = fixHook.props + ? this.props.concat(fixHook.props) + : this.props; + + event = new jQuery.Event(originalEvent); + + i = copy.length; + while (i--) { + prop = copy[i]; + event[prop] = originalEvent[prop]; + } + + // Support: IE<9 + // Fix target property (#1925) + if (!event.target) { + event.target = originalEvent.srcElement || document; + } + + // Support: Chrome 23+, Safari? + // Target should not be a text node (#504, #13143) + if (event.target.nodeType === 3) { + event.target = event.target.parentNode; + } + + // Support: IE<9 + // For mouse/key events, metaKey==false if it's undefined (#3368, #11328) + event.metaKey = !!event.metaKey; + + return fixHook.filter + ? fixHook.filter(event, originalEvent) + : event; + }, + + // Includes some event props shared by KeyEvent and MouseEvent + props: "altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split( + " " + ), + + fixHooks: {}, + + keyHooks: { + props: "char charCode key keyCode".split(" "), + filter: function (event, original) { + // Add which for key events + if (event.which == null) { + event.which = + original.charCode != null + ? original.charCode + : original.keyCode; + } + + return event; + }, + }, + + mouseHooks: { + props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split( + " " + ), + filter: function (event, original) { + var body, + eventDoc, + doc, + button = original.button, + fromElement = original.fromElement; + + // Calculate pageX/Y if missing and clientX/Y available + if (event.pageX == null && original.clientX != null) { + eventDoc = event.target.ownerDocument || document; + doc = eventDoc.documentElement; + body = eventDoc.body; + + event.pageX = + original.clientX + + ((doc && doc.scrollLeft) || + (body && body.scrollLeft) || + 0) - + ((doc && doc.clientLeft) || + (body && body.clientLeft) || + 0); + event.pageY = + original.clientY + + ((doc && doc.scrollTop) || + (body && body.scrollTop) || + 0) - + ((doc && doc.clientTop) || + (body && body.clientTop) || + 0); + } + + // Add relatedTarget, if necessary + if (!event.relatedTarget && fromElement) { + event.relatedTarget = + fromElement === event.target + ? original.toElement + : fromElement; + } + + // Add which for click: 1 === left; 2 === middle; 3 === right + // Note: button is not normalized, so don't use it + if (!event.which && button !== undefined) { + event.which = + button & 1 ? 1 : button & 2 ? 3 : button & 4 ? 2 : 0; + } + + return event; + }, + }, + + special: { + load: { + // Prevent triggered image.load events from bubbling to window.load + noBubble: true, + }, + focus: { + // Fire native event if possible so blur/focus sequence is correct + trigger: function () { + if (this !== safeActiveElement() && this.focus) { + try { + this.focus(); + return false; + } catch (e) { + // Support: IE<9 + // If we error on focus to hidden element (#1486, #12518), + // let .trigger() run the handlers + } + } + }, + delegateType: "focusin", + }, + blur: { + trigger: function () { + if (this === safeActiveElement() && this.blur) { + this.blur(); + return false; + } + }, + delegateType: "focusout", + }, + click: { + // For checkbox, fire native event so checked state will be right + trigger: function () { + if ( + jQuery.nodeName(this, "input") && + this.type === "checkbox" && + this.click + ) { + this.click(); + return false; + } + }, + + // For cross-browser consistency, don't fire native .click() on links + _default: function (event) { + return jQuery.nodeName(event.target, "a"); + }, + }, + + beforeunload: { + postDispatch: function (event) { + // Support: Firefox 20+ + // Firefox doesn't alert if the returnValue field is not set. + if (event.result !== undefined && event.originalEvent) { + event.originalEvent.returnValue = event.result; + } + }, + }, + }, + + simulate: function (type, elem, event, bubble) { + // Piggyback on a donor event to simulate a different one. + // Fake originalEvent to avoid donor's stopPropagation, but if the + // simulated event prevents default then we do the same on the donor. + var e = jQuery.extend(new jQuery.Event(), event, { + type: type, + isSimulated: true, + originalEvent: {}, + }); + if (bubble) { + jQuery.event.trigger(e, null, elem); + } else { + jQuery.event.dispatch.call(elem, e); + } + if (e.isDefaultPrevented()) { + event.preventDefault(); + } + }, + }; + + jQuery.removeEvent = document.removeEventListener + ? function (elem, type, handle) { + if (elem.removeEventListener) { + elem.removeEventListener(type, handle, false); + } + } + : function (elem, type, handle) { + var name = "on" + type; + + if (elem.detachEvent) { + // #8545, #7054, preventing memory leaks for custom events in IE6-8 + // detachEvent needed property on element, by name of that event, to properly expose it to GC + if (typeof elem[name] === strundefined) { + elem[name] = null; + } + + elem.detachEvent(name, handle); + } + }; + + jQuery.Event = function (src, props) { + // Allow instantiation without the 'new' keyword + if (!(this instanceof jQuery.Event)) { + return new jQuery.Event(src, props); + } + + // Event object + if (src && src.type) { + this.originalEvent = src; + this.type = src.type; + + // Events bubbling up the document may have been marked as prevented + // by a handler lower down the tree; reflect the correct value. + this.isDefaultPrevented = + src.defaultPrevented || + (src.defaultPrevented === undefined && + // Support: IE < 9, Android < 4.0 + src.returnValue === false) + ? returnTrue + : returnFalse; + + // Event type + } else { + this.type = src; + } + + // Put explicitly provided properties onto the event object + if (props) { + jQuery.extend(this, props); + } + + // Create a timestamp if incoming event doesn't have one + this.timeStamp = (src && src.timeStamp) || jQuery.now(); + + // Mark it as fixed + this[jQuery.expando] = true; + }; + + // jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding + // http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html + jQuery.Event.prototype = { + isDefaultPrevented: returnFalse, + isPropagationStopped: returnFalse, + isImmediatePropagationStopped: returnFalse, + + preventDefault: function () { + var e = this.originalEvent; + + this.isDefaultPrevented = returnTrue; + if (!e) { + return; + } + + // If preventDefault exists, run it on the original event + if (e.preventDefault) { + e.preventDefault(); + + // Support: IE + // Otherwise set the returnValue property of the original event to false + } else { + e.returnValue = false; + } + }, + stopPropagation: function () { + var e = this.originalEvent; + + this.isPropagationStopped = returnTrue; + if (!e) { + return; + } + // If stopPropagation exists, run it on the original event + if (e.stopPropagation) { + e.stopPropagation(); + } + + // Support: IE + // Set the cancelBubble property of the original event to true + e.cancelBubble = true; + }, + stopImmediatePropagation: function () { + var e = this.originalEvent; + + this.isImmediatePropagationStopped = returnTrue; + + if (e && e.stopImmediatePropagation) { + e.stopImmediatePropagation(); + } + + this.stopPropagation(); + }, + }; + + // Create mouseenter/leave events using mouseover/out and event-time checks + jQuery.each( + { + mouseenter: "mouseover", + mouseleave: "mouseout", + pointerenter: "pointerover", + pointerleave: "pointerout", + }, + function (orig, fix) { + jQuery.event.special[orig] = { + delegateType: fix, + bindType: fix, + + handle: function (event) { + var ret, + target = this, + related = event.relatedTarget, + handleObj = event.handleObj; + + // For mousenter/leave call the handler if related is outside the target. + // NB: No relatedTarget if the mouse left/entered the browser window + if ( + !related || + (related !== target && + !jQuery.contains(target, related)) + ) { + event.type = handleObj.origType; + ret = handleObj.handler.apply(this, arguments); + event.type = fix; + } + return ret; + }, + }; + } + ); + + // IE submit delegation + if (!support.submitBubbles) { + jQuery.event.special.submit = { + setup: function () { + // Only need this for delegated form submit events + if (jQuery.nodeName(this, "form")) { + return false; + } + + // Lazy-add a submit handler when a descendant form may potentially be submitted + jQuery.event.add( + this, + "click._submit keypress._submit", + function (e) { + // Node name check avoids a VML-related crash in IE (#9807) + var elem = e.target, + form = + jQuery.nodeName(elem, "input") || + jQuery.nodeName(elem, "button") + ? elem.form + : undefined; + if (form && !jQuery._data(form, "submitBubbles")) { + jQuery.event.add( + form, + "submit._submit", + function (event) { + event._submit_bubble = true; + } + ); + jQuery._data(form, "submitBubbles", true); + } + } + ); + // return undefined since we don't need an event listener + }, + + postDispatch: function (event) { + // If form was submitted by the user, bubble the event up the tree + if (event._submit_bubble) { + delete event._submit_bubble; + if (this.parentNode && !event.isTrigger) { + jQuery.event.simulate( + "submit", + this.parentNode, + event, + true + ); + } + } + }, + + teardown: function () { + // Only need this for delegated form submit events + if (jQuery.nodeName(this, "form")) { + return false; + } + + // Remove delegated handlers; cleanData eventually reaps submit handlers attached above + jQuery.event.remove(this, "._submit"); + }, + }; + } + + // IE change delegation and checkbox/radio fix + if (!support.changeBubbles) { + jQuery.event.special.change = { + setup: function () { + if (rformElems.test(this.nodeName)) { + // IE doesn't fire change on a check/radio until blur; trigger it on click + // after a propertychange. Eat the blur-change in special.change.handle. + // This still fires onchange a second time for check/radio after blur. + if (this.type === "checkbox" || this.type === "radio") { + jQuery.event.add( + this, + "propertychange._change", + function (event) { + if ( + event.originalEvent.propertyName === + "checked" + ) { + this._just_changed = true; + } + } + ); + jQuery.event.add( + this, + "click._change", + function (event) { + if (this._just_changed && !event.isTrigger) { + this._just_changed = false; + } + // Allow triggered, simulated change events (#11500) + jQuery.event.simulate( + "change", + this, + event, + true + ); + } + ); + } + return false; + } + // Delegated event; lazy-add a change handler on descendant inputs + jQuery.event.add(this, "beforeactivate._change", function (e) { + var elem = e.target; + + if ( + rformElems.test(elem.nodeName) && + !jQuery._data(elem, "changeBubbles") + ) { + jQuery.event.add( + elem, + "change._change", + function (event) { + if ( + this.parentNode && + !event.isSimulated && + !event.isTrigger + ) { + jQuery.event.simulate( + "change", + this.parentNode, + event, + true + ); + } + } + ); + jQuery._data(elem, "changeBubbles", true); + } + }); + }, + + handle: function (event) { + var elem = event.target; + + // Swallow native change events from checkbox/radio, we already triggered them above + if ( + this !== elem || + event.isSimulated || + event.isTrigger || + (elem.type !== "radio" && elem.type !== "checkbox") + ) { + return event.handleObj.handler.apply(this, arguments); + } + }, + + teardown: function () { + jQuery.event.remove(this, "._change"); + + return !rformElems.test(this.nodeName); + }, + }; + } + + // Create "bubbling" focus and blur events + if (!support.focusinBubbles) { + jQuery.each( + { focus: "focusin", blur: "focusout" }, + function (orig, fix) { + // Attach a single capturing handler on the document while someone wants focusin/focusout + var handler = function (event) { + jQuery.event.simulate( + fix, + event.target, + jQuery.event.fix(event), + true + ); + }; + + jQuery.event.special[fix] = { + setup: function () { + var doc = this.ownerDocument || this, + attaches = jQuery._data(doc, fix); + + if (!attaches) { + doc.addEventListener(orig, handler, true); + } + jQuery._data(doc, fix, (attaches || 0) + 1); + }, + teardown: function () { + var doc = this.ownerDocument || this, + attaches = jQuery._data(doc, fix) - 1; + + if (!attaches) { + doc.removeEventListener(orig, handler, true); + jQuery._removeData(doc, fix); + } else { + jQuery._data(doc, fix, attaches); + } + }, + }; + } + ); + } + + jQuery.fn.extend({ + on: function (types, selector, data, fn, /*INTERNAL*/ one) { + var type, origFn; + + // Types can be a map of types/handlers + if (typeof types === "object") { + // ( types-Object, selector, data ) + if (typeof selector !== "string") { + // ( types-Object, data ) + data = data || selector; + selector = undefined; + } + for (type in types) { + this.on(type, selector, data, types[type], one); + } + return this; + } + + if (data == null && fn == null) { + // ( types, fn ) + fn = selector; + data = selector = undefined; + } else if (fn == null) { + if (typeof selector === "string") { + // ( types, selector, fn ) + fn = data; + data = undefined; + } else { + // ( types, data, fn ) + fn = data; + data = selector; + selector = undefined; + } + } + if (fn === false) { + fn = returnFalse; + } else if (!fn) { + return this; + } + + if (one === 1) { + origFn = fn; + fn = function (event) { + // Can use an empty set, since event contains the info + jQuery().off(event); + return origFn.apply(this, arguments); + }; + // Use same guid so caller can remove using origFn + fn.guid = origFn.guid || (origFn.guid = jQuery.guid++); + } + return this.each(function () { + jQuery.event.add(this, types, fn, data, selector); + }); + }, + one: function (types, selector, data, fn) { + return this.on(types, selector, data, fn, 1); + }, + off: function (types, selector, fn) { + var handleObj, type; + if (types && types.preventDefault && types.handleObj) { + // ( event ) dispatched jQuery.Event + handleObj = types.handleObj; + jQuery(types.delegateTarget).off( + handleObj.namespace + ? handleObj.origType + "." + handleObj.namespace + : handleObj.origType, + handleObj.selector, + handleObj.handler + ); + return this; + } + if (typeof types === "object") { + // ( types-object [, selector] ) + for (type in types) { + this.off(type, selector, types[type]); + } + return this; + } + if (selector === false || typeof selector === "function") { + // ( types [, fn] ) + fn = selector; + selector = undefined; + } + if (fn === false) { + fn = returnFalse; + } + return this.each(function () { + jQuery.event.remove(this, types, fn, selector); + }); + }, + + trigger: function (type, data) { + return this.each(function () { + jQuery.event.trigger(type, data, this); + }); + }, + triggerHandler: function (type, data) { + var elem = this[0]; + if (elem) { + return jQuery.event.trigger(type, data, elem, true); + } + }, + }); + + function createSafeFragment(document) { + var list = nodeNames.split("|"), + safeFrag = document.createDocumentFragment(); + + if (safeFrag.createElement) { + while (list.length) { + safeFrag.createElement(list.pop()); + } + } + return safeFrag; + } + + var nodeNames = + "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|" + + "header|hgroup|mark|meter|nav|output|progress|section|summary|time|video", + rinlinejQuery = / jQuery\d+="(?:null|\d+)"/g, + rnoshimcache = new RegExp("<(?:" + nodeNames + ")[\\s/>]", "i"), + rleadingWhitespace = /^\s+/, + rxhtmlTag = + /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, + rtagName = /<([\w:]+)/, + rtbody = /\s*$/g, + // We have to close these tags to support XHTML (#13200) + wrapMap = { + option: [1, ""], + legend: [1, "
", "
"], + area: [1, "", ""], + param: [1, "", ""], + thead: [1, "", "
"], + tr: [2, "", "
"], + col: [2, "", "
"], + td: [3, "", "
"], + + // IE6-8 can't serialize link, script, style, or any html5 (NoScope) tags, + // unless wrapped in a div with non-breaking characters in front of it. + _default: support.htmlSerialize + ? [0, "", ""] + : [1, "X
", "
"], + }, + safeFragment = createSafeFragment(document), + fragmentDiv = safeFragment.appendChild(document.createElement("div")); + + wrapMap.optgroup = wrapMap.option; + wrapMap.tbody = + wrapMap.tfoot = + wrapMap.colgroup = + wrapMap.caption = + wrapMap.thead; + wrapMap.th = wrapMap.td; + + function getAll(context, tag) { + var elems, + elem, + i = 0, + found = + typeof context.getElementsByTagName !== strundefined + ? context.getElementsByTagName(tag || "*") + : typeof context.querySelectorAll !== strundefined + ? context.querySelectorAll(tag || "*") + : undefined; + + if (!found) { + for ( + found = [], elems = context.childNodes || context; + (elem = elems[i]) != null; + i++ + ) { + if (!tag || jQuery.nodeName(elem, tag)) { + found.push(elem); + } else { + jQuery.merge(found, getAll(elem, tag)); + } + } + } + + return tag === undefined || (tag && jQuery.nodeName(context, tag)) + ? jQuery.merge([context], found) + : found; + } + + // Used in buildFragment, fixes the defaultChecked property + function fixDefaultChecked(elem) { + if (rcheckableType.test(elem.type)) { + elem.defaultChecked = elem.checked; + } + } + + // Support: IE<8 + // Manipulating tables requires a tbody + function manipulationTarget(elem, content) { + return jQuery.nodeName(elem, "table") && + jQuery.nodeName( + content.nodeType !== 11 ? content : content.firstChild, + "tr" + ) + ? elem.getElementsByTagName("tbody")[0] || + elem.appendChild(elem.ownerDocument.createElement("tbody")) + : elem; + } + + // Replace/restore the type attribute of script elements for safe DOM manipulation + function disableScript(elem) { + elem.type = (jQuery.find.attr(elem, "type") !== null) + "/" + elem.type; + return elem; + } + function restoreScript(elem) { + var match = rscriptTypeMasked.exec(elem.type); + if (match) { + elem.type = match[1]; + } else { + elem.removeAttribute("type"); + } + return elem; + } + + // Mark scripts as having already been evaluated + function setGlobalEval(elems, refElements) { + var elem, + i = 0; + for (; (elem = elems[i]) != null; i++) { + jQuery._data( + elem, + "globalEval", + !refElements || jQuery._data(refElements[i], "globalEval") + ); + } + } + + function cloneCopyEvent(src, dest) { + if (dest.nodeType !== 1 || !jQuery.hasData(src)) { + return; + } + + var type, + i, + l, + oldData = jQuery._data(src), + curData = jQuery._data(dest, oldData), + events = oldData.events; + + if (events) { + delete curData.handle; + curData.events = {}; + + for (type in events) { + for (i = 0, l = events[type].length; i < l; i++) { + jQuery.event.add(dest, type, events[type][i]); + } + } + } + + // make the cloned public data object a copy from the original + if (curData.data) { + curData.data = jQuery.extend({}, curData.data); + } + } + + function fixCloneNodeIssues(src, dest) { + var nodeName, e, data; + + // We do not need to do anything for non-Elements + if (dest.nodeType !== 1) { + return; + } + + nodeName = dest.nodeName.toLowerCase(); + + // IE6-8 copies events bound via attachEvent when using cloneNode. + if (!support.noCloneEvent && dest[jQuery.expando]) { + data = jQuery._data(dest); + + for (e in data.events) { + jQuery.removeEvent(dest, e, data.handle); + } + + // Event data gets referenced instead of copied if the expando gets copied too + dest.removeAttribute(jQuery.expando); + } + + // IE blanks contents when cloning scripts, and tries to evaluate newly-set text + if (nodeName === "script" && dest.text !== src.text) { + disableScript(dest).text = src.text; + restoreScript(dest); + + // IE6-10 improperly clones children of object elements using classid. + // IE10 throws NoModificationAllowedError if parent is null, #12132. + } else if (nodeName === "object") { + if (dest.parentNode) { + dest.outerHTML = src.outerHTML; + } + + // This path appears unavoidable for IE9. When cloning an object + // element in IE9, the outerHTML strategy above is not sufficient. + // If the src has innerHTML and the destination does not, + // copy the src.innerHTML into the dest.innerHTML. #10324 + if ( + support.html5Clone && + src.innerHTML && + !jQuery.trim(dest.innerHTML) + ) { + dest.innerHTML = src.innerHTML; + } + } else if (nodeName === "input" && rcheckableType.test(src.type)) { + // IE6-8 fails to persist the checked state of a cloned checkbox + // or radio button. Worse, IE6-7 fail to give the cloned element + // a checked appearance if the defaultChecked value isn't also set + + dest.defaultChecked = dest.checked = src.checked; + + // IE6-7 get confused and end up setting the value of a cloned + // checkbox/radio button to an empty string instead of "on" + if (dest.value !== src.value) { + dest.value = src.value; + } + + // IE6-8 fails to return the selected option to the default selected + // state when cloning options + } else if (nodeName === "option") { + dest.defaultSelected = dest.selected = src.defaultSelected; + + // IE6-8 fails to set the defaultValue to the correct value when + // cloning other types of input fields + } else if (nodeName === "input" || nodeName === "textarea") { + dest.defaultValue = src.defaultValue; + } + } + + jQuery.extend({ + clone: function (elem, dataAndEvents, deepDataAndEvents) { + var destElements, + node, + clone, + i, + srcElements, + inPage = jQuery.contains(elem.ownerDocument, elem); + + if ( + support.html5Clone || + jQuery.isXMLDoc(elem) || + !rnoshimcache.test("<" + elem.nodeName + ">") + ) { + clone = elem.cloneNode(true); + + // IE<=8 does not properly clone detached, unknown element nodes + } else { + fragmentDiv.innerHTML = elem.outerHTML; + fragmentDiv.removeChild((clone = fragmentDiv.firstChild)); + } + + if ( + (!support.noCloneEvent || !support.noCloneChecked) && + (elem.nodeType === 1 || elem.nodeType === 11) && + !jQuery.isXMLDoc(elem) + ) { + // We eschew Sizzle here for performance reasons: http://jsperf.com/getall-vs-sizzle/2 + destElements = getAll(clone); + srcElements = getAll(elem); + + // Fix all IE cloning issues + for (i = 0; (node = srcElements[i]) != null; ++i) { + // Ensure that the destination node is not null; Fixes #9587 + if (destElements[i]) { + fixCloneNodeIssues(node, destElements[i]); + } + } + } + + // Copy the events from the original to the clone + if (dataAndEvents) { + if (deepDataAndEvents) { + srcElements = srcElements || getAll(elem); + destElements = destElements || getAll(clone); + + for (i = 0; (node = srcElements[i]) != null; i++) { + cloneCopyEvent(node, destElements[i]); + } + } else { + cloneCopyEvent(elem, clone); + } + } + + // Preserve script evaluation history + destElements = getAll(clone, "script"); + if (destElements.length > 0) { + setGlobalEval(destElements, !inPage && getAll(elem, "script")); + } + + destElements = srcElements = node = null; + + // Return the cloned set + return clone; + }, + + buildFragment: function (elems, context, scripts, selection) { + var j, + elem, + contains, + tmp, + tag, + tbody, + wrap, + l = elems.length, + // Ensure a safe fragment + safe = createSafeFragment(context), + nodes = [], + i = 0; + + for (; i < l; i++) { + elem = elems[i]; + + if (elem || elem === 0) { + // Add nodes directly + if (jQuery.type(elem) === "object") { + jQuery.merge(nodes, elem.nodeType ? [elem] : elem); + + // Convert non-html into a text node + } else if (!rhtml.test(elem)) { + nodes.push(context.createTextNode(elem)); + + // Convert html into DOM nodes + } else { + tmp = + tmp || + safe.appendChild(context.createElement("div")); + + // Deserialize a standard representation + tag = (rtagName.exec(elem) || [ + "", + "", + ])[1].toLowerCase(); + wrap = wrapMap[tag] || wrapMap._default; + + tmp.innerHTML = + wrap[1] + + elem.replace(rxhtmlTag, "<$1>") + + wrap[2]; + + // Descend through wrappers to the right content + j = wrap[0]; + while (j--) { + tmp = tmp.lastChild; + } + + // Manually add leading whitespace removed by IE + if ( + !support.leadingWhitespace && + rleadingWhitespace.test(elem) + ) { + nodes.push( + context.createTextNode( + rleadingWhitespace.exec(elem)[0] + ) + ); + } + + // Remove IE's autoinserted from table fragments + if (!support.tbody) { + // String was a , *may* have spurious + elem = + tag === "table" && !rtbody.test(elem) + ? tmp.firstChild + : // String was a bare or + wrap[1] === "
" && !rtbody.test(elem) + ? tmp + : 0; + + j = elem && elem.childNodes.length; + while (j--) { + if ( + jQuery.nodeName( + (tbody = elem.childNodes[j]), + "tbody" + ) && + !tbody.childNodes.length + ) { + elem.removeChild(tbody); + } + } + } + + jQuery.merge(nodes, tmp.childNodes); + + // Fix #12392 for WebKit and IE > 9 + tmp.textContent = ""; + + // Fix #12392 for oldIE + while (tmp.firstChild) { + tmp.removeChild(tmp.firstChild); + } + + // Remember the top-level container for proper cleanup + tmp = safe.lastChild; + } + } + } + + // Fix #11356: Clear elements from fragment + if (tmp) { + safe.removeChild(tmp); + } + + // Reset defaultChecked for any radios and checkboxes + // about to be appended to the DOM in IE 6/7 (#8060) + if (!support.appendChecked) { + jQuery.grep(getAll(nodes, "input"), fixDefaultChecked); + } + + i = 0; + while ((elem = nodes[i++])) { + // #4087 - If origin and destination elements are the same, and this is + // that element, do not do anything + if (selection && jQuery.inArray(elem, selection) !== -1) { + continue; + } + + contains = jQuery.contains(elem.ownerDocument, elem); + + // Append to fragment + tmp = getAll(safe.appendChild(elem), "script"); + + // Preserve script evaluation history + if (contains) { + setGlobalEval(tmp); + } + + // Capture executables + if (scripts) { + j = 0; + while ((elem = tmp[j++])) { + if (rscriptType.test(elem.type || "")) { + scripts.push(elem); + } + } + } + } + + tmp = null; + + return safe; + }, + + cleanData: function (elems, /* internal */ acceptData) { + var elem, + type, + id, + data, + i = 0, + internalKey = jQuery.expando, + cache = jQuery.cache, + deleteExpando = support.deleteExpando, + special = jQuery.event.special; + + for (; (elem = elems[i]) != null; i++) { + if (acceptData || jQuery.acceptData(elem)) { + id = elem[internalKey]; + data = id && cache[id]; + + if (data) { + if (data.events) { + for (type in data.events) { + if (special[type]) { + jQuery.event.remove(elem, type); + + // This is a shortcut to avoid jQuery.event.remove's overhead + } else { + jQuery.removeEvent(elem, type, data.handle); + } + } + } + + // Remove cache only if it was not already removed by jQuery.event.remove + if (cache[id]) { + delete cache[id]; + + // IE does not allow us to delete expando properties from nodes, + // nor does it have a removeAttribute function on Document nodes; + // we must handle all of these cases + if (deleteExpando) { + delete elem[internalKey]; + } else if ( + typeof elem.removeAttribute !== strundefined + ) { + elem.removeAttribute(internalKey); + } else { + elem[internalKey] = null; + } + + deletedIds.push(id); + } + } + } + } + }, + }); + + jQuery.fn.extend({ + text: function (value) { + return access( + this, + function (value) { + return value === undefined + ? jQuery.text(this) + : this.empty().append( + ( + (this[0] && this[0].ownerDocument) || + document + ).createTextNode(value) + ); + }, + null, + value, + arguments.length + ); + }, + + append: function () { + return this.domManip(arguments, function (elem) { + if ( + this.nodeType === 1 || + this.nodeType === 11 || + this.nodeType === 9 + ) { + var target = manipulationTarget(this, elem); + target.appendChild(elem); + } + }); + }, + + prepend: function () { + return this.domManip(arguments, function (elem) { + if ( + this.nodeType === 1 || + this.nodeType === 11 || + this.nodeType === 9 + ) { + var target = manipulationTarget(this, elem); + target.insertBefore(elem, target.firstChild); + } + }); + }, + + before: function () { + return this.domManip(arguments, function (elem) { + if (this.parentNode) { + this.parentNode.insertBefore(elem, this); + } + }); + }, + + after: function () { + return this.domManip(arguments, function (elem) { + if (this.parentNode) { + this.parentNode.insertBefore(elem, this.nextSibling); + } + }); + }, + + remove: function (selector, keepData /* Internal Use Only */) { + var elem, + elems = selector ? jQuery.filter(selector, this) : this, + i = 0; + + for (; (elem = elems[i]) != null; i++) { + if (!keepData && elem.nodeType === 1) { + jQuery.cleanData(getAll(elem)); + } + + if (elem.parentNode) { + if (keepData && jQuery.contains(elem.ownerDocument, elem)) { + setGlobalEval(getAll(elem, "script")); + } + elem.parentNode.removeChild(elem); + } + } + + return this; + }, + + empty: function () { + var elem, + i = 0; + + for (; (elem = this[i]) != null; i++) { + // Remove element nodes and prevent memory leaks + if (elem.nodeType === 1) { + jQuery.cleanData(getAll(elem, false)); + } + + // Remove any remaining nodes + while (elem.firstChild) { + elem.removeChild(elem.firstChild); + } + + // If this is a select, ensure that it displays empty (#12336) + // Support: IE<9 + if (elem.options && jQuery.nodeName(elem, "select")) { + elem.options.length = 0; + } + } + + return this; + }, + + clone: function (dataAndEvents, deepDataAndEvents) { + dataAndEvents = dataAndEvents == null ? false : dataAndEvents; + deepDataAndEvents = + deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; + + return this.map(function () { + return jQuery.clone(this, dataAndEvents, deepDataAndEvents); + }); + }, + + html: function (value) { + return access( + this, + function (value) { + var elem = this[0] || {}, + i = 0, + l = this.length; + + if (value === undefined) { + return elem.nodeType === 1 + ? elem.innerHTML.replace(rinlinejQuery, "") + : undefined; + } + + // See if we can take a shortcut and just use innerHTML + if ( + typeof value === "string" && + !rnoInnerhtml.test(value) && + (support.htmlSerialize || !rnoshimcache.test(value)) && + (support.leadingWhitespace || + !rleadingWhitespace.test(value)) && + !wrapMap[ + (rtagName.exec(value) || ["", ""])[1].toLowerCase() + ] + ) { + value = value.replace(rxhtmlTag, "<$1>"); + + try { + for (; i < l; i++) { + // Remove element nodes and prevent memory leaks + elem = this[i] || {}; + if (elem.nodeType === 1) { + jQuery.cleanData(getAll(elem, false)); + elem.innerHTML = value; + } + } + + elem = 0; + + // If using innerHTML throws an exception, use the fallback method + } catch (e) {} + } + + if (elem) { + this.empty().append(value); + } + }, + null, + value, + arguments.length + ); + }, + + replaceWith: function () { + var arg = arguments[0]; + + // Make the changes, replacing each context element with the new content + this.domManip(arguments, function (elem) { + arg = this.parentNode; + + jQuery.cleanData(getAll(this)); + + if (arg) { + arg.replaceChild(elem, this); + } + }); + + // Force removal if there was no new content (e.g., from empty arguments) + return arg && (arg.length || arg.nodeType) ? this : this.remove(); + }, + + detach: function (selector) { + return this.remove(selector, true); + }, + + domManip: function (args, callback) { + // Flatten any nested arrays + args = concat.apply([], args); + + var first, + node, + hasScripts, + scripts, + doc, + fragment, + i = 0, + l = this.length, + set = this, + iNoClone = l - 1, + value = args[0], + isFunction = jQuery.isFunction(value); + + // We can't cloneNode fragments that contain checked, in WebKit + if ( + isFunction || + (l > 1 && + typeof value === "string" && + !support.checkClone && + rchecked.test(value)) + ) { + return this.each(function (index) { + var self = set.eq(index); + if (isFunction) { + args[0] = value.call(this, index, self.html()); + } + self.domManip(args, callback); + }); + } + + if (l) { + fragment = jQuery.buildFragment( + args, + this[0].ownerDocument, + false, + this + ); + first = fragment.firstChild; + + if (fragment.childNodes.length === 1) { + fragment = first; + } + + if (first) { + scripts = jQuery.map( + getAll(fragment, "script"), + disableScript + ); + hasScripts = scripts.length; + + // Use the original fragment for the last item instead of the first because it can end up + // being emptied incorrectly in certain situations (#8070). + for (; i < l; i++) { + node = fragment; + + if (i !== iNoClone) { + node = jQuery.clone(node, true, true); + + // Keep references to cloned scripts for later restoration + if (hasScripts) { + jQuery.merge(scripts, getAll(node, "script")); + } + } + + callback.call(this[i], node, i); + } + + if (hasScripts) { + doc = scripts[scripts.length - 1].ownerDocument; + + // Reenable scripts + jQuery.map(scripts, restoreScript); + + // Evaluate executable scripts on first document insertion + for (i = 0; i < hasScripts; i++) { + node = scripts[i]; + if ( + rscriptType.test(node.type || "") && + !jQuery._data(node, "globalEval") && + jQuery.contains(doc, node) + ) { + if (node.src) { + // Optional AJAX dependency, but won't run scripts if not present + if (jQuery._evalUrl) { + jQuery._evalUrl(node.src); + } + } else { + jQuery.globalEval( + ( + node.text || + node.textContent || + node.innerHTML || + "" + ).replace(rcleanScript, "") + ); + } + } + } + } + + // Fix #11809: Avoid leaking memory + fragment = first = null; + } + } + + return this; + }, + }); + + jQuery.each( + { + appendTo: "append", + prependTo: "prepend", + insertBefore: "before", + insertAfter: "after", + replaceAll: "replaceWith", + }, + function (name, original) { + jQuery.fn[name] = function (selector) { + var elems, + i = 0, + ret = [], + insert = jQuery(selector), + last = insert.length - 1; + + for (; i <= last; i++) { + elems = i === last ? this : this.clone(true); + jQuery(insert[i])[original](elems); + + // Modern browsers can apply jQuery collections as arrays, but oldIE needs a .get() + push.apply(ret, elems.get()); + } + + return this.pushStack(ret); + }; + } + ); + + var iframe, + elemdisplay = {}; + + /** + * Retrieve the actual display of a element + * @param {String} name nodeName of the element + * @param {Object} doc Document object + */ + // Called only from within defaultDisplay + function actualDisplay(name, doc) { + var style, + elem = jQuery(doc.createElement(name)).appendTo(doc.body), + // getDefaultComputedStyle might be reliably used only on attached element + display = + window.getDefaultComputedStyle && + (style = window.getDefaultComputedStyle(elem[0])) + ? // Use of this method is a temporary fix (more like optmization) until something better comes along, + // since it was removed from specification and supported only in FF + style.display + : jQuery.css(elem[0], "display"); + + // We don't have any data stored on the element, + // so use "detach" method as fast way to get rid of the element + elem.detach(); + + return display; + } + + /** + * Try to determine the default display value of an element + * @param {String} nodeName + */ + function defaultDisplay(nodeName) { + var doc = document, + display = elemdisplay[nodeName]; + + if (!display) { + display = actualDisplay(nodeName, doc); + + // If the simple way fails, read from inside an iframe + if (display === "none" || !display) { + // Use the already-created iframe if possible + iframe = ( + iframe || + jQuery("