File manager - Edit - /home/opticamezl/www/newok/theme-joomla.tar
Back
config/theme.json 0000644 00000003103 15175047507 0010016 0 ustar 00 { "defaults": { "menu": { "positions": { "navbar": { "menu": "mainmenu" }, "dialog-mobile": { "menu": "mainmenu" } } }, "post": { "width": "default", "padding": "", "content_width": "", "image_align": "top", "image_margin": "medium", "image_width": "", "image_height": "", "header_align": 0, "title_margin": "default", "meta_margin": "default", "meta_style": "sentence", "content_margin": "medium", "content_dropcap": 0 }, "blog": { "width": "default", "padding": "", "grid_column_gap": "", "grid_row_gap": "", "grid_breakpoint": "m", "image_align": "top", "image_margin": "medium", "image_width": "", "image_height": "", "header_align": 0, "title_style": "", "title_margin": "default", "meta_margin": "default", "content_excerpt": 0, "content_length": "", "content_margin": "medium", "content_align": 0, "button_style": "default", "button_margin": "medium", "navigation": "pagination" }, "media_folder": "yootheme", "search_module": "mod_search", "bootstrap": true, "fontawesome": true } } config/customizer.json 0000644 00000146662 15175047507 0011142 0 ustar 00 { "id": "${theme.id}", "title": "${theme.title}", "cookie": "${theme.cookie}", "default": "${theme.default}", "template": "${theme.template}", "admin": "${app.isAdmin}", "root": "${req.baseUrl}", "site": "${req.rootUrl}/index.php", "token": "${session.token}", "sections": { "layout": { "help": [ { "title": "Using the Sidebar", "src": "https://www.youtube-nocookie.com/watch?v=nZm-qEyGaP4&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "0:55", "documentation": "support/yootheme-pro/joomla/customizer#save,-cancel-and-close", "support": "support/search?tags=125&q=customizer%20save" }, { "title": "Using the Contextual Help", "src": "https://www.youtube-nocookie.com/watch?v=BGgRZvlJVXI&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "0:37", "documentation": "support/yootheme-pro/joomla/customizer#contextual-help", "support": "support/search?tags=125&q=contextual%20help" }, { "title": "Using the Device Preview Buttons", "src": "https://www.youtube-nocookie.com/watch?v=hGErRJcl9ts&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "0:42", "documentation": "support/yootheme-pro/joomla/customizer#device-preview-buttons", "support": "support/search?tags=125&q=customizer%20device%20preview" }, { "title": "Hide and Adjust the Sidebar", "src": "https://www.youtube-nocookie.com/watch?v=xzc6tuF500w&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "0:34", "documentation": "support/yootheme-pro/joomla/customizer#hide-and-adjust-sidebar", "support": "support/search?tags=125&q=customizer%20hide%20sidebar" } ] }, "builder-pages": { "help": { "Pages": [ { "title": "Managing Pages", "src": "https://www.youtube-nocookie.com/watch?v=o20CQhzLP1k&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "1:57", "documentation": "support/yootheme-pro/joomla/pages", "support": "support/search?tags=125&q=pages%20builder" }, { "title": "Adding a New Page", "src": "https://www.youtube-nocookie.com/watch?v=0VbdT8usYvY&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "1:25", "documentation": "support/yootheme-pro/joomla/pages#add-a-new-page", "support": "support/search?tags=125&q=page%20builder" }, { "title": "Creating Individual Post Layouts", "src": "https://www.youtube-nocookie.com/watch?v=Fr7dXusK9xI&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "2:22", "documentation": "support/yootheme-pro/joomla/pages#individual-post-layout", "support": "support/search?tags=125&q=post%20builder" } ], "Customizer": [ { "title": "Using the Sidebar", "src": "https://www.youtube-nocookie.com/watch?v=nZm-qEyGaP4&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "0:55", "documentation": "support/yootheme-pro/joomla/customizer#save,-cancel-and-close", "support": "support/search?tags=125&q=customizer%20save" }, { "title": "Using the Contextual Help", "src": "https://www.youtube-nocookie.com/watch?v=BGgRZvlJVXI&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "0:37", "documentation": "support/yootheme-pro/joomla/customizer#contextual-help", "support": "support/search?tags=125&q=contextual%20help" }, { "title": "Using the Device Preview Buttons", "src": "https://www.youtube-nocookie.com/watch?v=hGErRJcl9ts&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "0:42", "documentation": "support/yootheme-pro/joomla/customizer#device-preview-buttons", "support": "support/search?tags=125&q=customizer%20device%20preview" }, { "title": "Hide and Adjust the Sidebar", "src": "https://www.youtube-nocookie.com/watch?v=xzc6tuF500w&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "0:34", "documentation": "support/yootheme-pro/joomla/customizer#hide-and-adjust-sidebar", "support": "support/search?tags=125&q=customizer%20hide%20sidebar" } ] } }, "builder-templates": { "help": { "Templates": [ { "title": "Managing Templates", "src": "https://www.youtube-nocookie.com/watch?v=tNpo1YYWWas&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "1:46", "documentation": "support/yootheme-pro/joomla/templates", "support": "support/search?tags=125&q=templates" }, { "title": "Assigning Templates to Pages", "src": "https://www.youtube-nocookie.com/watch?v=d2WX0hGXsDE&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "4:38", "documentation": "support/yootheme-pro/joomla/templates#page-assignment", "support": "support/search?tags=125&q=template%20page%20assigment" }, { "title": "Setting the Template Loading Priority", "src": "https://www.youtube-nocookie.com/watch?v=03aUKEABQNQ&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "1:41", "documentation": "support/yootheme-pro/joomla/templates#loading-priority", "support": "support/search?tags=125&q=template%20priority" }, { "title": "Setting the Template Status", "src": "https://www.youtube-nocookie.com/watch?v=VxuDCh-NE_U&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "1:02", "documentation": "support/yootheme-pro/joomla/templates#status", "support": "support/search?tags=125&q=template%20status" } ] } }, "settings": { "help": [ { "title": "Using the Sidebar", "src": "https://www.youtube-nocookie.com/watch?v=nZm-qEyGaP4&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "0:55", "documentation": "support/yootheme-pro/joomla/customizer#save,-cancel-and-close", "support": "support/search?tags=125&q=customizer%20save" }, { "title": "Using the Contextual Help", "src": "https://www.youtube-nocookie.com/watch?v=BGgRZvlJVXI&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "0:37", "documentation": "support/yootheme-pro/joomla/customizer#contextual-help", "support": "support/search?tags=125&q=contextual%20help" }, { "title": "Using the Device Preview Buttons", "src": "https://www.youtube-nocookie.com/watch?v=hGErRJcl9ts&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "0:42", "documentation": "support/yootheme-pro/joomla/customizer#device-preview-buttons", "support": "support/search?tags=125&q=customizer%20device%20preview" }, { "title": "Hide and Adjust the Sidebar", "src": "https://www.youtube-nocookie.com/watch?v=xzc6tuF500w&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "0:34", "documentation": "support/yootheme-pro/joomla/customizer#hide-and-adjust-sidebar", "support": "support/search?tags=125&q=customizer%20hide%20sidebar" } ] } }, "panels": { "site": { "help": { "Site": [ { "title": "Adding the Logo", "src": "https://www.youtube-nocookie.com/watch?v=UItCS_pSAXA&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "2:25", "documentation": "support/yootheme-pro/joomla/site-and-logo#logo", "support": "support/search?tags=125&q=logo" }, { "title": "Setting the Page Layout", "src": "https://www.youtube-nocookie.com/watch?v=ScYJ-bVJ94s&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "1:35", "documentation": "support/yootheme-pro/joomla/site-and-logo#layout", "support": "support/search?tags=125&q=site%20layout" }, { "title": "Using the Toolbar", "src": "https://www.youtube-nocookie.com/watch?v=uigKZP3xu-4&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "0:58", "documentation": "support/yootheme-pro/joomla/site-and-logo#toolbar", "support": "support/search?tags=125&q=toolbar" }, { "title": "Displaying the Breadcrumbs", "src": "https://www.youtube-nocookie.com/watch?v=Eiw_1rf3hHE&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "1:04", "documentation": "support/yootheme-pro/joomla/site-and-logo#breadcrumbs", "support": "support/search?tags=125&q=breadcrumbs" }, { "title": "Setting the Main Section Height", "src": "https://www.youtube-nocookie.com/watch?v=CDeYl5TIfZQ&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "0:46", "documentation": "support/yootheme-pro/joomla/site-and-logo#main-section", "support": "support/search?tags=125&q=main%20section" } ], "Image Field": [ { "title": "Using Images", "src": "https://www.youtube-nocookie.com/watch?v=NHpFpn4UiUM&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "4:37", "documentation": "support/yootheme-pro/joomla/files-and-images#images", "support": "support/search?tags=125&q=image%20field" }, { "title": "Using the Media Manager", "src": "https://www.youtube-nocookie.com/watch?v=2Sgp4BBMTc8&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "1:32", "documentation": "support/yootheme-pro/joomla/files-and-images#media-manager", "support": "support/search?tags=125&q=media%20manager" }, { "title": "Using the Unsplash Library", "src": "https://www.youtube-nocookie.com/watch?v=6piYezAI4dU&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "1:50", "documentation": "support/yootheme-pro/joomla/files-and-images#unsplash-library", "support": "support/search?tags=125&q=unsplash" } ] } }, "header": { "help": [ { "title": "Setting the Header Layout", "src": "https://www.youtube-nocookie.com/watch?v=5KazxjAM_TA&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "3:51", "documentation": "support/yootheme-pro/joomla/header-and-navbar#header-layout", "support": "support/search?tags=125&q=header%20layout" }, { "title": "Setting the Navbar", "src": "https://www.youtube-nocookie.com/watch?v=oQ1ja29Tl1Y&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "1:09", "documentation": "support/yootheme-pro/joomla/header-and-navbar#navbar", "support": "support/search?tags=125&q=navbar" }, { "title": "Using the Dropdown Menu", "src": "https://www.youtube-nocookie.com/watch?v=98MdMe3CVFM&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "1:12", "documentation": "support/yootheme-pro/joomla/header-and-navbar#dropdown", "support": "support/search?tags=125&q=navbar%20dropdown" }, { "title": "Setting the Dialog Layout", "src": "https://www.youtube-nocookie.com/watch?v=UFx8UeiZv04&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "5:07", "documentation": "support/yootheme-pro/joomla/header-and-navbar#dialog-layouts", "support": "support/search?tags=125&q=dialog%20layout" }, { "title": "Adding the Search", "src": "https://www.youtube-nocookie.com/watch?v=rxmuuMeWWoo&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "1:12", "documentation": "support/yootheme-pro/joomla/header-and-navbar#search", "support": "support/search?tags=125&q=header%20search" }, { "title": "Adding the Social Icons", "src": "https://www.youtube-nocookie.com/watch?v=dlZA9cGlsOg&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "1:55", "documentation": "support/yootheme-pro/joomla/header-and-navbar#social-icons", "support": "support/search?tags=125&q=header%20social" } ] }, "mobile": { "help": [ { "title": "Displaying the Mobile Header", "src": "https://www.youtube-nocookie.com/watch?v=CDmPjGek9gU&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "0:59", "documentation": "support/yootheme-pro/joomla/mobile-header#visibility", "support": "support/search?tags=125&q=mobile%20header%20visibility" }, { "title": "Setting the Mobile Header Layout", "src": "https://www.youtube-nocookie.com/watch?v=M7lmXtclWaI&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "1:43", "documentation": "support/yootheme-pro/joomla/mobile-header#header-layout", "support": "support/search?tags=125&q=mobile%20header%20layout" }, { "title": "Setting the Mobile Navbar", "src": "https://www.youtube-nocookie.com/watch?v=LfmHQnco4_s&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "0:58", "documentation": "support/yootheme-pro/joomla/mobile-header#navbar", "support": "support/search?tags=125&q=mobile%20header%20navbar" }, { "title": "Setting the Mobile Dialog Layout", "src": "https://www.youtube-nocookie.com/watch?v=dkbYQgttefg&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "4:23", "documentation": "support/yootheme-pro/joomla/mobile-header#dialog-layout", "support": "support/search?tags=125&q=mobile%20dialog%20layouts" }, { "title": "Setting the Mobile Search", "src": "https://www.youtube-nocookie.com/watch?v=KDbITztgtTE&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "0:59", "documentation": "support/yootheme-pro/joomla/mobile-header#search", "support": "support/search?tags=125&q=mobile%20search" }, { "title": "Adding the Social Icons", "src": "https://www.youtube-nocookie.com/watch?v=uVSjfP4kNqM&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "1:29", "documentation": "support/yootheme-pro/joomla/mobile-header#social-icons", "support": "support/search?tags=125&q=mobile%20social%20icons" } ] }, "top": { "help": { "Top and Bottom": [ { "title": "Setting the Top and Bottom Positions", "src": "https://www.youtube-nocookie.com/watch?v=aTsFHYaS9Z8&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "1:42", "documentation": "support/yootheme-pro/joomla/top-bottom-and-sidebar#top-and-bottom", "support": "support/search?tags=125&q=top%20bottom%20position%20settings" } ], "Image Field": [ { "title": "Using Images", "src": "https://www.youtube-nocookie.com/watch?v=NHpFpn4UiUM&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "4:37", "documentation": "support/yootheme-pro/joomla/files-and-images#images", "support": "support/search?tags=125&q=image%20field" }, { "title": "Using the Media Manager", "src": "https://www.youtube-nocookie.com/watch?v=2Sgp4BBMTc8&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "1:32", "documentation": "support/yootheme-pro/joomla/files-and-images#media-manager", "support": "support/search?tags=125&q=media%20manager" }, { "title": "Using the Unsplash Library", "src": "https://www.youtube-nocookie.com/watch?v=6piYezAI4dU&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "1:50", "documentation": "support/yootheme-pro/joomla/files-and-images#unsplash-library", "support": "support/search?tags=125&q=unsplash" } ], "Builder": [ { "title": "The Position Element", "src": "https://www.youtube-nocookie.com/watch?v=DsFY9zkG7Vk&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "1:55", "documentation": "support/yootheme-pro/joomla/system-elements#position-element", "support": "support/search?tags=125&q=position%20element" }, { "title": "Collapsing Layouts", "src": "https://www.youtube-nocookie.com/watch?v=UT6PODf7p3o&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "1:44", "documentation": "support/yootheme-pro/joomla/collapsing-layouts", "support": "support/search?tags=125&q=collapsing" } ] } }, "sidebar": { "help": { "Sidebar": [ { "title": "Setting the Sidebar Position", "src": "https://www.youtube-nocookie.com/watch?v=_U5BgaiM4RI&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "1:31", "documentation": "support/yootheme-pro/joomla/top-bottom-and-sidebar#sidebar", "support": "support/search?tags=125&q=sidebar%20position%20settings" } ], "Builder": [ { "title": "The Position Element", "src": "https://www.youtube-nocookie.com/watch?v=DsFY9zkG7Vk&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "1:55", "documentation": "support/yootheme-pro/joomla/system-elements#position-element", "support": "support/search?tags=125&q=position%20element" }, { "title": "Collapsing Layouts", "src": "https://www.youtube-nocookie.com/watch?v=UT6PODf7p3o&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "1:44", "documentation": "support/yootheme-pro/joomla/collapsing-layouts", "support": "support/search?tags=125&q=collapsing" } ] } }, "bottom": { "help": { "Top and Bottom": [ { "title": "Setting the Top and Bottom Positions", "src": "https://www.youtube-nocookie.com/watch?v=aTsFHYaS9Z8&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "1:42", "documentation": "support/yootheme-pro/joomla/top-bottom-and-sidebar#top-and-bottom", "support": "support/search?tags=125&q=top%20bottom%20position%20settings" } ], "Image Field": [ { "title": "Using Images", "src": "https://www.youtube-nocookie.com/watch?v=NHpFpn4UiUM&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "4:37", "documentation": "support/yootheme-pro/joomla/files-and-images#images", "support": "support/search?tags=125&q=image%20field" }, { "title": "Using the Media Manager", "src": "https://www.youtube-nocookie.com/watch?v=2Sgp4BBMTc8&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "1:32", "documentation": "support/yootheme-pro/joomla/files-and-images#media-manager", "support": "support/search?tags=125&q=media%20manager" }, { "title": "Using the Unsplash Library", "src": "https://www.youtube-nocookie.com/watch?v=6piYezAI4dU&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "1:50", "documentation": "support/yootheme-pro/joomla/files-and-images#unsplash-library", "support": "support/search?tags=125&q=unsplash" } ], "Builder": [ { "title": "The Position Element", "src": "https://www.youtube-nocookie.com/watch?v=DsFY9zkG7Vk&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "1:55", "documentation": "support/yootheme-pro/joomla/system-elements#position-element", "support": "support/search?tags=125&q=position%20element" }, { "title": "Collapsing Layouts", "src": "https://www.youtube-nocookie.com/watch?v=UT6PODf7p3o&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "1:44", "documentation": "support/yootheme-pro/joomla/collapsing-layouts", "support": "support/search?tags=125&q=collapsing" } ] } }, "footer-builder": { "help": { "Footer Builder": [ { "title": "Using the Footer Builder", "src": "https://www.youtube-nocookie.com/watch?v=vcfQUk7uDlQ&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "0:59", "documentation": "support/yootheme-pro/joomla/footer-builder", "support": "support/search?tags=125&q=footer%20builder" } ], "Builder Module": [ { "title": "Using the Builder Module", "src": "https://www.youtube-nocookie.com/watch?v=msRBkqxnZ18&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "1:58", "documentation": "support/yootheme-pro/joomla/widgets-and-modules#builder-module", "support": "support/search?tags=125&q=builder%20module" }, { "title": "Creating Advanced Module Layouts", "src": "https://www.youtube-nocookie.com/watch?v=jr09mnXDbIA&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "4:16", "documentation": "support/yootheme-pro/joomla/widgets-and-modules#advanced-layouts", "support": "support/search?tags=125&q=builder%20module" } ] } }, "api-key": { "help": [ { "title": "Updating YOOtheme Pro", "src": "https://www.youtube-nocookie.com/watch?v=ErgFc1Zq9j4&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "1:20", "documentation": "support/yootheme-pro/joomla/updating", "support": "support/search?tags=125&q=update%20yootheme%20pro" }, { "title": "Setting the Minimum Stability", "src": "https://www.youtube-nocookie.com/watch?v=MOc5vLImCLw&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "0:47", "documentation": "support/yootheme-pro/joomla/updating#minimum-stability", "support": "support/search?tags=125&q=minimum%20stability" } ] }, "advanced": { "fields": { "child_theme": { "label": "Child Theme", "description": "Select a child theme. Note that different template files will be loaded, and theme settings will be updated respectively. To create a child theme, add a new folder <code>yootheme_NAME</code> in the templates directory, for example <code>yootheme_mytheme</code>.", "type": "select", "options": "${theme.child_themes}" }, "media_folder": { "label": "Media Folder", "description": "This folder stores images that you download when using layouts from the YOOtheme Pro library. It's located inside the Joomla images folder." }, "page_category": { "label": "Page Category", "description": "By default, only uncategorized articles are referred as pages. Alternatively, define articles from a specific category as pages.", "type": "select", "options": [ { "text": "None", "value": "" }, { "evaluate": "yootheme.builder.categories" } ] }, "search_module": { "label": "Search Component", "description": "Select whether the default Search or Smart Search is used by the search module and builder element.", "type": "select", "options": { "Search": "mod_search", "Smart Search": "mod_finder" } }, "com_finder_filter": { "label": "Search Filter", "description": "Select the smart search filter.", "type": "select", "options": [ { "text": "None", "value": "" }, { "evaluate": "yootheme.builder['com_finder.filters']" } ] }, "bootstrap": { "label": "System Assets", "text": "Load Bootstrap", "type": "checkbox" }, "fontawesome": { "text": "Load Font Awesome", "type": "checkbox" }, "jquery": { "description": "Bootstrap is only required when default Joomla template files are loaded, for example for the Joomla frontend editing. Load jQuery to write custom code based on the jQuery JavaScript library.", "text": "Load jQuery", "type": "checkbox" } } }, "about": { "help": [ { "title": "Opening the Changelog", "src": "https://www.youtube-nocookie.com/watch?v=qK4D2RsfBY4&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "1:05", "documentation": "support/yootheme-pro/joomla/updating#changelog", "support": "support/search?tags=125&q=changelog" } ] }, "system-post": { "title": "Post", "width": 400, "fields": { "post.width": { "label": "Width", "description": "Set the post width. The image and content can't expand beyond this width.", "type": "select", "options": { "X-Small": "xsmall", "Small": "small", "Default": "default", "Large": "large", "X-Large": "xlarge", "Expand": "expand", "None": "" } }, "post.padding": { "label": "Padding", "description": "Set the vertical padding.", "type": "select", "options": { "Default": "", "X-Small": "xsmall", "Small": "small", "Large": "large", "X-Large": "xlarge" } }, "post.padding_remove": { "type": "checkbox", "text": "Remove top padding" }, "post.content_width": { "label": "Content Width", "description": "Set an optional content width which doesn't affect the image.", "type": "select", "options": { "Auto": "", "X-Small": "xsmall", "Small": "small" }, "enable": "post.width != 'xsmall'" }, "post.image_align": { "label": "Image Alignment", "description": "Align the image to the top or place it between the title and the content.", "type": "select", "options": { "Top": "top", "Between": "between" } }, "post.image_margin": { "label": "Image Margin", "description": "Set the top margin if the image is aligned between the title and the content.", "type": "select", "options": { "Small": "small", "Default": "default", "Medium": "medium", "Large": "large", "X-Large": "xlarge", "None": "remove" }, "enable": "post.image_align == 'between'" }, "post.image_dimension": { "type": "grid", "description": "Setting just one value preserves the original proportions. The image will be resized and cropped automatically, and where possible, high resolution images will be auto-generated.", "fields": { "post.image_width": { "label": "Image Width", "width": "1-2", "attrs": { "placeholder": "auto", "lazy": true } }, "post.image_height": { "label": "Image Height", "width": "1-2", "attrs": { "placeholder": "auto", "lazy": true } } } }, "post.header_align": { "label": "Alignment", "description": "Align the title and meta text.", "type": "checkbox", "text": "Center the title and meta text" }, "post.title_margin": { "label": "Title Margin", "description": "Set the top margin.", "type": "select", "options": { "Small": "small", "Default": "default", "Medium": "medium", "Large": "large", "X-Large": "xlarge", "None": "remove" } }, "post.meta_margin": { "label": "Meta Margin", "description": "Set the top margin.", "type": "select", "options": { "Small": "small", "Default": "default", "Medium": "medium", "Large": "large", "X-Large": "xlarge", "None": "remove" } }, "post.meta_style": { "label": "Meta Style", "description": "Display the meta text in a sentence or a horizontal list.", "type": "select", "options": { "List": "list", "Sentence": "sentence" } }, "post.content_margin": { "label": "Content Margin", "description": "Set the top margin.", "type": "select", "options": { "Small": "small", "Default": "default", "Medium": "medium", "Large": "large", "X-Large": "xlarge", "None": "remove" } }, "post.content_dropcap": { "label": "Drop Cap", "description": "Set a large initial letter that drops below the first line of the first paragraph.", "type": "checkbox", "text": "Show drop cap" } }, "help": { "Post": [ { "title": "Setting the Post Layout", "src": "https://www.youtube-nocookie.com/watch?v=pb9MCdJOz7U&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "0:48", "documentation": "support/yootheme-pro/joomla/blog-and-post#post-layout", "support": "support/search?tags=125&q=post" }, { "title": "Setting the Post Image", "src": "https://www.youtube-nocookie.com/watch?v=6EZtYya-gEY&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "0:54", "documentation": "support/yootheme-pro/joomla/blog-and-post#post-image", "support": "support/search?tags=125&q=post" }, { "title": "Setting the Post Content", "src": "https://www.youtube-nocookie.com/watch?v=R-d6cuP0l9Y&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "0:50", "documentation": "support/yootheme-pro/joomla/blog-and-post#post-content", "support": "support/search?tags=125&q=post" } ], "Creating Individual Post Layouts": [ { "title": "Creating Individual Post Layouts", "src": "https://www.youtube-nocookie.com/watch?v=Fr7dXusK9xI&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "2:22", "documentation": "support/yootheme-pro/joomla/pages#individual-post-layout", "support": "support/search?tags=125&q=builder" } ] } }, "system-blog": { "title": "Blog", "width": 400, "fields": { "blog.width": { "label": "Width", "description": "Set the blog width.", "type": "select", "options": { "Default": "default", "Small": "small", "Large": "large", "X-Large": "xlarge", "Expand": "expand" } }, "blog.padding": { "label": "Padding", "description": "Set the vertical padding.", "type": "select", "options": { "Default": "", "X-Small": "xsmall", "Small": "small", "Large": "large", "X-Large": "xlarge" } }, "blog.grid_column_gap": { "label": "Column Gap", "description": "Set the size of the gap between the grid columns. Define the number of columns in the <a href=\"index.php?option=com_config&view=component&component=com_content#blog_default_parameters\">Blog/Featured Layout</a> settings in Joomla.", "type": "select", "options": { "Small": "small", "Medium": "medium", "Default": "", "Large": "large", "None": "collapse" } }, "blog.grid_row_gap": { "label": "Row Gap", "description": "Set the size of the gap between the grid rows.", "type": "select", "options": { "Small": "small", "Medium": "medium", "Default": "", "Large": "large", "None": "collapse" } }, "blog.grid_breakpoint": { "label": "Breakpoint", "description": "Set the breakpoint from which grid items will stack.", "type": "select", "options": { "Small (Phone Landscape)": "s", "Medium (Tablet Landscape)": "m", "Large (Desktop)": "l", "X-Large (Large Screens)": "xl" } }, "blog.grid_masonry": { "label": "Masonry", "description": "The masonry effect creates a layout free of gaps even if grid items have different heights. ", "type": "checkbox", "text": "Enable masonry effect" }, "blog.grid_parallax": { "label": "Parallax", "description": "The parallax animation moves single grid columns at different speeds while scrolling. Define the vertical parallax offset in pixels.", "type": "range", "attrs": { "min": 0, "max": 600, "step": 10 } }, "blog.image_align": { "label": "Image Alignment", "description": "Align the image to the top or place it between the title and the content.", "type": "select", "options": { "Top": "top", "Between": "between" } }, "blog.image_margin": { "label": "Image Margin", "description": "Set the top margin if the image is aligned between the title and the content.", "type": "select", "options": { "Small": "small", "Default": "default", "Medium": "medium", "Large": "large", "X-Large": "xlarge", "None": "remove" }, "enable": "blog.image_align == 'between'" }, "blog.image_dimension": { "type": "grid", "description": "Setting just one value preserves the original proportions. The image will be resized and cropped automatically, and where possible, high resolution images will be auto-generated.", "fields": { "blog.image_width": { "label": "Image Width", "width": "1-2", "attrs": { "placeholder": "auto", "lazy": true } }, "blog.image_height": { "label": "Image Height", "width": "1-2", "attrs": { "placeholder": "auto", "lazy": true } } } }, "blog.header_align": { "label": "Alignment", "description": "Align the title and meta text as well as the continue reading button.", "type": "checkbox", "text": "Center the title, meta text and button" }, "blog.title_style": { "label": "Title Style", "description": "Title styles differ in font-size but may also come with a predefined color, size and font.", "type": "select", "options": { "None": "", "H1": "h1", "H2": "h2", "H3": "h3", "H4": "h4" } }, "blog.title_margin": { "label": "Title Margin", "description": "Set the top margin.", "type": "select", "options": { "Small": "small", "Default": "default", "Medium": "medium", "Large": "large", "X-Large": "xlarge", "None": "remove" } }, "blog.meta_margin": { "label": "Meta Margin", "description": "Set the top margin.", "type": "select", "options": { "Small": "small", "Default": "default", "Medium": "medium", "Large": "large", "X-Large": "xlarge", "None": "remove" } }, "blog.content_length": { "label": "Content Length", "description": "Limit the content length to a number of characters. All HTML elements will be stripped.", "type": "number", "attrs": { "placeholder": "No limit." } }, "blog.content_margin": { "label": "Content Margin", "description": "Set the top margin.", "type": "select", "options": { "Small": "small", "Default": "default", "Medium": "medium", "Large": "large", "X-Large": "xlarge", "None": "remove" } }, "blog.content_align": { "label": "Content Alignment", "type": "checkbox", "text": "Center the content" }, "blog.button_style": { "label": "Button", "description": "Select a style for the continue reading button.", "type": "select", "options": { "Default": "default", "Primary": "primary", "Secondary": "secondary", "Danger": "danger", "Text": "text" } }, "blog.button_margin": { "label": "Button Margin", "description": "Set the top margin.", "type": "select", "options": { "Small": "small", "Default": "default", "Medium": "medium", "Large": "large", "X-Large": "xlarge", "None": "remove" } }, "blog.navigation": { "label": "Navigation", "description": "Use a numeric pagination or previous/next links to move between blog pages.", "type": "select", "options": { "Pagination": "pagination", "Previous/Next": "previous/next" } }, "blog.pagination_startend": { "type": "checkbox", "text": "Show Start/End links", "show": "blog.navigation == 'pagination'" } }, "help": { "Blog": [ { "title": "Setting the Blog Layout", "src": "https://www.youtube-nocookie.com/watch?v=ZFRieS43jv8&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "2:14", "documentation": "support/yootheme-pro/joomla/blog-and-post#blog-layout", "support": "support/search?tags=125&q=blog" }, { "title": "Setting the Blog Image", "src": "https://www.youtube-nocookie.com/watch?v=vCx5khrkzuc&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "0:54", "documentation": "support/yootheme-pro/joomla/blog-and-post#blog-image", "support": "support/search?tags=125&q=blog" }, { "title": "Setting the Blog Content", "src": "https://www.youtube-nocookie.com/watch?v=h6zX_rMe1K4&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "1:05", "documentation": "support/yootheme-pro/joomla/blog-and-post#blog-content", "support": "support/search?tags=125&q=blog" }, { "title": "Setting the Blog Navigation", "src": "https://www.youtube-nocookie.com/watch?v=mT0hItNR4C8&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "0:18", "documentation": "support/yootheme-pro/joomla/blog-and-post#blog-navigation", "support": "support/search?tags=125&q=navigation" }, { "title": "Displaying the Excerpt", "src": "https://www.youtube-nocookie.com/watch?v=96pqkDnG74g&list=PLrqT0WH0HPdPfykSwhMt6Jl2_RgJ6ixU-", "duration": "1:14", "documentation": "support/yootheme-pro/joomla/blog-and-post#excerpt", "support": "support/search?tags=125&q=excerpt" } ] } } } } bootstrap.php 0000644 00000010351 15175047507 0007305 0 ustar 00 <?php namespace YOOtheme\Theme\Joomla; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Version; use YOOtheme\Config; use YOOtheme\Theme\SystemCheck as BaseSystemCheck; use YOOtheme\Theme\Updater; use YOOtheme\Theme\ViewHelper as BaseViewHelper; use YOOtheme\View; return [ 'theme' => function (Config $config) { $config->set('theme.styles.vars.@internal-joomla-version', (string) Version::MAJOR_VERSION); return $config->loadFile(__DIR__ . '/config/theme.json'); }, 'routes' => [ ['get', '/customizer', [CustomizerController::class, 'index'], ['customizer' => true]], ['post', '/customizer', [CustomizerController::class, 'save']], ], 'events' => [ 'app.request' => [Listener\CheckUserPermission::class => '@handle'], 'url.resolve' => [Listener\AddCustomizeParameter::class => '@handle'], 'theme.head' => [ Listener\LoadThemeI18n::class => '@handle', Listener\LoadFontAwesome::class => '@handle', ], 'theme.init' => [ Listener\LoadViewsObject::class => ['@handle', 20], Listener\AddPageCategory::class => ['@handle', 10], Listener\LoadChildTheme::class => ['@handle', -10], Listener\LoadCustomizerSession::class => ['@handle', -20], ], 'customizer.init' => [ Listener\LoadCustomizer::class => ['@handle', 10], Listener\LoadCustomizerScript::class => ['@handle', 30], Listener\LoadChildThemeNames::class => ['@handle', 20], ], 'config.save' => [ Listener\AlterParamsColumnType::class => '@handle', Listener\SaveInstallerApiKey::class => '@handle', ], 'styler.imports' => [Listener\LoadStylerImports::class => '@handle'], // Joomla 3.x only (see ViewsObject) 'view.init' => [ Listener\LoadTemplate::class => ['@handle', -10], Listener\LoadChildThemeTemplate::class => '@handle', ], ], 'actions' => [ 'onAfterRoute' => [ThemeLoader::class => ['initTheme', 50]], 'onBeforeDisplay' => [ Listener\LoadTemplate::class => ['@handle', -10], Listener\LoadChildThemeTemplate::class => '@handle', ], 'onLoadTemplate' => [ Listener\AddPageLayout::class => '@handle', Listener\LoadAssets::class => ['@handle', -20], Listener\LoadConfigCache::class => ['@handle', -20], ], 'onAfterDispatch' => [ Listener\LoadConfigCache::class => '@load', Listener\LoadThemeHead::class => '@handle', Listener\LoadChildThemeConfig::class => '@handle', ], 'onBeforeCompileHead' => [Listener\LoadCustomizerData::class => '@handle'], 'onContentPrepareData' => [Listener\LoadCustomizerContext::class => '@handle'], 'onAfterCleanModuleList' => [ Listener\AddSiteUrl::class => '@handle', Listener\LoadChildThemeModules::class => ['@handle', -5], ], ], 'extend' => [ View::class => function (View $view, $app) { $view->addLoader([UrlLoader::class, 'resolveRelativeUrl']); $view->addLoader($app(PositionLoader::class), '~theme/templates/position'); $view->addFunction('trans', [Text::class, '_']); $view->addFunction( 'formatBytes', fn($bytes, $precision = 0) => HTMLHelper::_( 'number.bytes', $bytes, 'auto', $precision, ), ); // cleanImageURL shim for Joomla 3.x if (version_compare(JVERSION, '4.0', '<')) { HTMLHelper::register('cleanImageURL', fn($url) => (object) ['url' => $url]); } }, Updater::class => function (Updater $updater) { $updater->add(__DIR__ . '/updates.php'); }, ], 'services' => [ ThemeLoader::class => '', BaseViewHelper::class => ViewHelper::class, BaseSystemCheck::class => SystemCheck::class, Listener\AddCustomizeParameter::class => '', ], 'loaders' => [ 'theme' => [ThemeLoader::class, 'load'], ], ]; updates.php 0000644 00000006156 15175047507 0006745 0 ustar 00 <?php namespace YOOtheme; use Joomla\Database\DatabaseDriver; return [ '3.0.0-beta.1.5' => function ($config) { /** @var DatabaseDriver $db */ $db = app(DatabaseDriver::class); $modules = $db->setQuery('SELECT id, params FROM `#__modules`')->loadObjectList(); foreach ($modules as $module) { $params = json_decode($module->params); if (empty($params->yoo_config)) { continue; } $conf = json_decode($params->yoo_config, true); Arr::updateKeys($conf, ['menu_style' => 'menu_type']); $params->yoo_config = json_encode($conf); $module->params = json_encode($params); $db->updateObject('#__modules', $module, 'id'); } return $config; }, '2.8.0-beta.0.4' => function ($config) { Arr::updateKeys($config, ['menu.positions.mobile' => 'menu.positions.dialog-mobile']); /** @var DatabaseDriver $db */ $db = app(DatabaseDriver::class); $db->setQuery( "UPDATE `#__modules` SET position = {$db->quote( 'dialog-mobile', )} WHERE client_id=0 AND position = {$db->quote('mobile')}", )->execute(); return $config; }, '2.8.0-beta.0.1' => function ($config, array $params) { if (preg_match('/(offcanvas|modal)/', Arr::get($params['config'], 'header.layout'))) { Arr::updateKeys($config, ['menu.positions.navbar' => 'menu.positions.dialog']); // Ensure empty instead of default value Arr::set($config, 'menu.positions.navbar', ''); /** @var DatabaseDriver $db */ $db = app(DatabaseDriver::class); $db->setQuery( "UPDATE `#__modules` SET position = {$db->quote( 'dialog', )} WHERE client_id=0 AND position = {$db->quote('navbar')}", )->execute(); } // Check child theme's "theme.js" for jQuery if ( !empty($config['child_theme']) && !isset($config['jquery']) && ($contents = @file_get_contents( $params['app'](Config::class)->get('theme.rootDir') . "_{$config['child_theme']}/js/theme.js", )) && str_contains($contents, 'jQuery') ) { $config['jquery'] = true; } return $config; }, '1.20.0-beta.6' => function ($config) { // Deprecated Blog settings if (!Arr::has($config, 'post.image_margin')) { Arr::set($config, 'post.title_margin', 'large'); Arr::set($config, 'blog.title_margin', 'large'); if (Arr::get($config, 'post.content_width') === true) { Arr::set($config, 'post.content_width', 'small'); } if (Arr::get($config, 'post.content_width') === false) { Arr::set($config, 'post.content_width', ''); } if (Arr::get($config, 'post.header_align') === true) { Arr::set($config, 'blog.header_align', 1); } } return $config; }, ]; src/ThemeLoader.php 0000644 00000010463 15175047507 0010254 0 ustar 00 <?php namespace YOOtheme\Theme\Joomla; use Joomla\CMS\Application\CMSApplication; use Joomla\Database\DatabaseDriver; use Joomla\Registry\Registry; use YOOtheme\Application; use YOOtheme\Arr; use YOOtheme\Config; use YOOtheme\Container; use YOOtheme\Event; use YOOtheme\Path; use YOOtheme\Theme\Updater; class ThemeLoader { protected static $configs = []; /** * Load theme configurations. */ public static function load(Container $container, array $configs) { static::$configs = array_merge(static::$configs, $configs); } /** * Initialize current theme. */ public static function initTheme(Application $app, Config $config) { $template = static::getTemplate($app); // is template active? if (!empty($template->params['yootheme'])) { static::loadConfiguration($app, $config, $template); Event::emit('theme.init'); } } protected static function loadConfiguration(Application $app, Config $config, object $template) { // get theme config $themeConfig = $template->params->get('config', ''); $themeConfig = json_decode($themeConfig, true) ?: []; // load child theme config if (!empty($themeConfig['child_theme'])) { $app->load( Path::get( "~/templates/{$template->template}_{$themeConfig['child_theme']}/config.php", ), ); } // add configurations $config->add('theme', [ 'id' => $template->id, 'active' => true, 'default' => !empty($template->home), 'template' => $template->template, ]); foreach (static::$configs as $conf) { if ($conf instanceof \Closure) { $conf = $conf($config, $app); } $config->add('theme', (array) $conf); } // handle empty config if (empty($themeConfig)) { $themeConfig['version'] = $config('theme.version'); } // merge defaults with configuration $config->set( '~theme', Arr::merge( $config('theme.defaults', []), static::updateConfig($app, $template, $themeConfig), ), ); } /** * Gets the current template. * * @return object|null */ protected static function getTemplate(Application $app) { /** @var CMSApplication $joomla */ $joomla = $app(CMSApplication::class); $template = $joomla->getTemplate(true); // get site template if ($joomla->isClient('administrator')) { $view = $joomla->input->getCmd('view') === 'style'; $option = $joomla->input->getCmd('option') === 'com_templates'; $style = $joomla->input->getInt($view && $option ? 'id' : 'templateStyle'); /** @var DatabaseDriver $db */ $db = $app(DatabaseDriver::class); $query = 'SELECT * FROM #__template_styles WHERE ' . ($style ? "id = {$style}" : "client_id = 0 AND home = '1'"); if ($template = $db->setQuery($query)->loadObject()) { $template->params = new Registry($template->params); } } return $template; } protected static function updateConfig(Application $app, object $template, array $themeConfig) { /** @var Updater $updater */ $updater = $app(Updater::class); $version = $themeConfig['version'] ?? null; $themeConfig = $updater->update($themeConfig, ['app' => $app, 'config' => $themeConfig]); if (empty($version) || $version !== $themeConfig['version']) { $style = (object) [ 'id' => $template->id, 'params' => json_encode( [ 'config' => json_encode( $themeConfig, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES, ), ] + $template->params->toArray(), ), ]; /** @var DatabaseDriver $db */ $db = $app(DatabaseDriver::class); $db->updateObject('#__template_styles', $style, 'id'); } return $themeConfig; } } src/StreamWrapper.php 0000644 00000010620 15175047507 0010652 0 ustar 00 <?php namespace YOOtheme\Theme\Joomla; class StreamWrapper { /** * @var resource|null * @link https://github.com/phpspec/phpspec/pull/1435 */ public $context; /** * @var array|false */ protected $stat; /** * @var int */ protected $length; /** * @var int */ protected $position; /** * @var string */ protected $output; /** * @var string[] */ protected static $outputs = []; /** * @var callable[] */ protected static $objects = []; /** * Retrieve information about a file. */ public function url_stat($path) { if (is_callable($object = static::getObject($path))) { static::setOutput($path, $object($path)); } if (is_string($output = static::getOutput($path))) { return static::getStat($output); } return false; } /** * Function to open file or url */ public function stream_open($path) { if (!is_string($output = static::getOutput($path))) { return false; } $this->stat = static::getStat($output); $this->length = strlen($output); $this->position = 0; $this->output = $output; return true; } /** * Read stream */ public function stream_read($count) { $result = substr($this->output, $this->position, $count); $this->position += $count; return $result; } /** * Retrieve information about a file resource */ public function stream_stat() { return $this->stat; } /** * Function to get the current position of the stream */ public function stream_tell() { return $this->position; } /** * Function to test for end of file pointer */ public function stream_eof() { return $this->position >= $this->length; } /** * The read write position updates in response to $offset and $whence */ public function stream_seek($offset, $whence) { switch ($whence) { case \SEEK_SET: if ($offset < $this->length && $offset >= 0) { $this->position = $offset; return true; } break; case \SEEK_CUR: if ($offset >= 0) { $this->position += $offset; return true; } break; case \SEEK_END: if ($this->length + $offset >= 0) { $this->position = $this->length + $offset; return true; } break; } return false; } /** * Change stream options */ public function stream_set_option() { return true; } /** * Sets a object */ public static function setObject($object) { $key = spl_object_hash($object); static::$objects[$key] = $object; return $key; } /** * Gets an object */ protected static function getObject($path) { $path = substr($path, strpos($path, '://') + 3); foreach (static::$objects as $key => $object) { if (str_starts_with($path, $key)) { return $object; } } return null; } /** * Sets an output */ protected static function setOutput($path, $output) { if (is_string($output)) { $output = var_export($output, true); $output = "<?php echo $output;"; } static::$outputs[$path] = $output; } /** * Gets an output */ protected static function getOutput($path) { return static::$outputs[$path] ?? null; } /** * Retrieve file information for a string */ protected static function getStat($string) { $time = time(); $length = strlen($string); return [ 'dev' => 0, 'ino' => 0, 'mode' => 0, 'nlink' => 1, 'uid' => 0, 'gid' => 0, 'rdev' => 0, 'size' => $length, 'atime' => $time, 'mtime' => $time, 'ctime' => $time, 'blksize' => '512', 'blocks' => ceil($length / 512), ]; } } src/PositionLoader.php 0000644 00000001430 15175047507 0011010 0 ustar 00 <?php namespace YOOtheme\Theme\Joomla; use Joomla\CMS\Factory; use YOOtheme\Application; use YOOtheme\Config; use YOOtheme\Joomla\Platform; class PositionLoader { public Application $app; public Config $config; public function __construct(Application $app, Config $config) { $this->app = $app; $this->config = $config; } /** * Add assets for Joomla progressive caching. */ public function __invoke(string $name, array $parameters, callable $next) { $result = $next($name, $parameters); // Make assets cacheable (e.g. maps.min.js) if ((int) Factory::getApplication()->get('caching', 0) === 2) { $this->app->call([Platform::class, 'registerAssets']); } return $result; } } src/SystemCheck.php 0000644 00000004475 15175047507 0010313 0 ustar 00 <?php namespace YOOtheme\Theme\Joomla; use Joomla\CMS\Component\ComponentHelper; use Joomla\Database\DatabaseDriver; use YOOtheme\Theme\SystemCheck as BaseSystemCheck; use function YOOtheme\trans; class SystemCheck extends BaseSystemCheck { protected ApiKey $apiKey; protected DatabaseDriver $db; /** * Constructor. */ public function __construct(DatabaseDriver $db, ApiKey $apiKey) { $this->db = $db; $this->apiKey = $apiKey; } /** * @inheritdoc */ public function getRequirements() { $res = []; // Check for debug mode if (constant('JDEBUG')) { $res[] = trans( 'The System debug mode generates too much session data which can lead to unexpected behavior. Disable the debug mode.', ); } // Check for SEBLOD Plugin and setting $components = ComponentHelper::getComponents(); $cck = $components['com_cck'] ?? false; if ($cck && $cck->enabled == 1) { if ($cck->getParams()->get('hide_edit_icon')) { $res[] = trans( 'The SEBLOD plugin causes the builder to be unavailable. Disable the feature <em>Hide Edit Icon</em> in the <a href="index.php?option=com_config&view=component&component=com_cck" target="_blank">SEBLOD configuration</a>.', ); } } try { // Check for RSFirewall settings @TODO check if enabled? $rsfw = $this->db ->setQuery( sprintf( 'SELECT value FROM #__rsfirewall_configuration WHERE name = %s', $this->db->quote('verify_emails'), ), ) ->loadResult(); if ($rsfw == 1) { $res[] = trans( 'The RSFirewall plugin corrupts the builder content. Disable the feature <em>Convert email addresses from plain text to images</em> in the <a href="index.php?option=com_rsfirewall&view=configuration" target="_blank">RSFirewall configuration</a>.', ); } } catch (\Exception $e) { } return array_merge($res, parent::getRequirements()); } protected function hasApiKey() { return $this->apiKey->get(); } } src/CustomizerController.php 0000644 00000005364 15175047507 0012277 0 ustar 00 <?php namespace YOOtheme\Theme\Joomla; use Joomla\CMS\Application\CMSApplication; use Joomla\CMS\Document\Document; use Joomla\CMS\Document\HtmlDocument; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\User\User; use Joomla\Database\DatabaseDriver; use YOOtheme\Config; use YOOtheme\Event; use YOOtheme\Http\Request; use YOOtheme\Path; use YOOtheme\Url; class CustomizerController { public static function index( Request $request, User $user, Config $config, Document $document, CMSApplication $joomla ) { $request->abortIf(!$document instanceof HtmlDocument, 400, 'Bad Request'); HTMLHelper::_('behavior.keepalive'); // init customizer Event::emit('customizer.init'); // init config $config->add('customizer', [ 'config' => $config('~theme'), 'return' => $request->getQueryParam('return') ?: Url::to('administrator/index.php'), ]); // api key editable? if ( !$user->authorise('core.edit', 'com_installer') || !$user->authorise('core.manage', 'com_installer') ) { $config->del('customizer.sections.settings.fields.settings.items.api-key'); } // set system template $joomla->set('theme', 'system'); $joomla->input->set('tmpl', 'component'); // set document title/icon $document->setTitle("Website Builder - {$joomla->get('sitename')}"); $document->addFavicon(Url::to(Path::get('../assets/images/favicon.png', __DIR__))); $document->setBuffer('<div id="customizer"></div>', [ 'type' => 'component', 'name' => null, 'title' => null, ]); } public static function save(Request $request, User $user, Config $config, DatabaseDriver $db) { $request->abortIf( !$user->authorise('core.edit', 'com_templates'), 403, 'Insufficient User Rights.', ); // get config values $values = Event::emit('config.save|filter', $request->getParam('config', [])); // fetch current style params $params = $db ->setQuery( sprintf('SELECT params FROM #__template_styles WHERE id = %d', $config('theme.id')), ) ->loadResult(); // prepare style params $params = ['config' => json_encode($values, JSON_UNESCAPED_SLASHES)] + (json_decode($params, true) ?: []); // update style params $style = (object) [ 'id' => $config('theme.id'), 'params' => json_encode($params, JSON_UNESCAPED_SLASHES), ]; $db->updateObject('#__template_styles', $style, 'id'); return 'success'; } } src/ViewsObject.php 0000644 00000002266 15175047507 0010311 0 ustar 00 <?php namespace YOOtheme\Theme\Joomla; use Joomla\CMS\MVC\Controller\BaseController; use Joomla\Event\Event as JoomlaEvent; use YOOtheme\Event; /** * Only needed for Joomla 3.x because it has no "onBeforeDisplay" event. */ class ViewsObject extends \ArrayObject { /** * Returns the value at the specified index. * * @param string $index * * @return mixed */ #[\ReturnTypeWillChange] public function offsetGet($index) { if (!$this->offsetExists($index)) { $this->offsetSet($index, new \ArrayObject()); } $views = parent::offsetGet($index); foreach ($views['html'] ?? [] as $view) { Event::emit('view.init', new JoomlaEvent('onBeforeDisplay', ['subject' => $view])); } return $views; } /** * Register views object as cache array. * * @return void */ public static function register() { $class = new \ReflectionClass(BaseController::class); if ($class->hasProperty('views')) { $views = $class->getProperty('views'); $views->setAccessible(true); $views->setValue(new self()); } } } src/ApiKey.php 0000644 00000003446 15175047507 0007250 0 ustar 00 <?php namespace YOOtheme\Theme\Joomla; use Joomla\Database\DatabaseDriver; class ApiKey { public const ELEMENT = 'pkg_yootheme'; protected DatabaseDriver $db; /** * Constructor. */ public function __construct(DatabaseDriver $db) { $this->db = $db; } public function get(): string { $updateSite = $this->getUpdateSite(static::ELEMENT); parse_str($updateSite->extra_query ?? '', $params); return $params['key'] ?? ''; } public function set($key): void { $key = "key={$key}"; $updateSite = $this->getUpdateSite(static::ELEMENT); if ($updateSite && $updateSite->extra_query !== $key) { $query = $this->db ->getQuery(true) ->update('#__update_sites') ->set("extra_query = {$this->db->quote($key)}") ->where("update_site_id = {$updateSite->update_site_id}"); $this->db->setQuery($query)->execute(); } } protected function getUpdateSite( $element, $type = 'package', $folder = '', $clientId = 0 ): ?object { $query = $this->db ->getQuery(true) ->select(['us.update_site_id', 'us.extra_query']) ->from('#__extensions AS e') ->innerJoin('#__update_sites_extensions AS se ON e.extension_id = se.extension_id') ->innerJoin('#__update_sites AS us ON se.update_site_id = us.update_site_id') ->where([ "e.type = {$this->db->quote($type)}", "e.folder = {$this->db->quote($folder)}", "e.element = {$this->db->quote($element)}", "e.client_id = {$clientId}", ]); return $this->db->setQuery($query)->loadObject(); } } src/Listener/LoadFontAwesome.php 0000644 00000001237 15175047507 0012676 0 ustar 00 <?php namespace YOOtheme\Theme\Joomla\Listener; use YOOtheme\Config; use YOOtheme\Metadata; class LoadFontAwesome { public Config $config; public Metadata $metadata; public function __construct(Config $config, Metadata $metadata) { $this->config = $config; $this->metadata = $metadata; } public function handle(): void { if (version_compare(JVERSION, '4.0', '<') || !$this->config->get('~theme.fontawesome')) { return; } $this->metadata->set('style:fontawesome', [ 'href' => '~/media/system/css/joomla-fontawesome.min.css', 'defer' => true, ]); } } src/Listener/AlterParamsColumnType.php 0000644 00000001712 15175047507 0014100 0 ustar 00 <?php namespace YOOtheme\Theme\Joomla\Listener; use Joomla\Database\DatabaseDriver; class AlterParamsColumnType { protected DatabaseDriver $db; /** * Constructor. */ public function __construct(DatabaseDriver $db) { $this->db = $db; } /** * Alter params type to MEDIUMTEXT only in MySQL database */ public function handle(array $values): array { if (!str_contains($this->db->getName(), 'mysql')) { return $values; } if ( $this->db ->setQuery( "SHOW FIELDS FROM #__template_styles WHERE Field = 'params' AND Type = 'text'", ) ->loadRow() ) { $this->db ->setQuery( 'ALTER TABLE #__template_styles CHANGE `params` `params` MEDIUMTEXT NOT NULL', ) ->execute(); } return $values; } } src/Listener/LoadViewsObject.php 0000644 00000001307 15175047507 0012671 0 ustar 00 <?php namespace YOOtheme\Theme\Joomla\Listener; use Joomla\CMS\Component\ComponentHelper; use YOOtheme\Config; use YOOtheme\Theme\Joomla\ViewsObject; class LoadViewsObject { public Config $config; public function __construct(Config $config) { $this->config = $config; } public function handle(): void { // register views cache array if (version_compare(JVERSION, '4.0', '<') && $this->config->get('app.isSite')) { ViewsObject::register(); } // Joomla 4 does not distribute com_search if (!ComponentHelper::isEnabled('com_search')) { $this->config->set('~theme.search_module', 'mod_finder'); } } } src/Listener/AddCustomizeParameter.php 0000644 00000001260 15175047507 0014077 0 ustar 00 <?php namespace YOOtheme\Theme\Joomla\Listener; use YOOtheme\Config; use YOOtheme\Http\Uri; class AddCustomizeParameter { public Config $config; public function __construct(Config $config) { $this->config = $config; } public function handle($path, $parameters, $secure, callable $next) { /** @var Uri $uri */ $uri = $next($path, $parameters, $secure); if (str_starts_with((string) $uri->getQueryParam('p'), 'theme/')) { $query = $uri->getQueryParams(); $query['templateStyle'] = $this->config->get('theme.id'); $uri = $uri->withQueryParams($query); } return $uri; } } src/Listener/LoadConfigCache.php 0000644 00000002765 15175047507 0012607 0 ustar 00 <?php namespace YOOtheme\Theme\Joomla\Listener; use Joomla\CMS\Application\CMSApplication; use Joomla\CMS\Document\Document; use Joomla\CMS\Document\HtmlDocument; use YOOtheme\Config; class LoadConfigCache { public array $keys = [ 'app.isBuilder', 'app.template.type', '~theme.page_layout', 'header.section.transparent', ]; public bool $caching; public Config $config; public ?HtmlDocument $document; public function __construct(Config $config, CMSApplication $joomla, ?Document $document) { $this->config = $config; $this->document = $document instanceof HtmlDocument ? $document : null; $this->caching = $this->document && $joomla->get('caching'); } /** * Add to Joomla caching. */ public function handle(): void { if (!$this->caching) { return; } foreach ($this->keys as $key) { $value = $this->config->get($key); if (isset($value)) { $this->document->_custom[$key] = $value; } } } /** * Load from Joomla caching. */ public function load(): void { if (!$this->caching) { return; } foreach ($this->keys as $key) { $value = $this->document->_custom[$key] ?? null; if (isset($value)) { $this->config->set($key, $value); unset($this->document->_custom[$key]); } } } } src/Listener/LoadStylerImports.php 0000644 00000001352 15175047507 0013305 0 ustar 00 <?php namespace YOOtheme\Theme\Joomla\Listener; use YOOtheme\Path; use YOOtheme\Theme\Styler\Styler; class LoadStylerImports { public Styler $styler; public function __construct(Styler $styler) { $this->styler = $styler; } public function handle(array $imports): array { if (version_compare(JVERSION, '4.0', '<')) { $bootstrap = Path::get( '~theme/packages/theme-joomla/assets/less/bootstrap-joomla3/bootstrap.less', ); foreach ($this->styler->resolveImports($bootstrap) as $file => $content) { $imports[str_replace('/bootstrap-joomla3/', '/bootstrap/', $file)] = $content; } } return $imports; } } src/Listener/LoadAssets.php 0000644 00000001347 15175047507 0011713 0 ustar 00 <?php namespace YOOtheme\Theme\Joomla\Listener; use Joomla\CMS\Application\CMSApplication; use Joomla\CMS\Document\HtmlDocument; use YOOtheme\Application; use YOOtheme\Joomla\Platform; class LoadAssets { public Application $app; public CMSApplication $joomla; public function __construct(Application $app, CMSApplication $joomla) { $this->app = $app; $this->joomla = $joomla; } /** * Make assets cacheable (e.g. maps.min.js). */ public function handle(): void { $document = $this->joomla->getDocument(); if ($document instanceof HtmlDocument && $this->joomla->get('caching')) { $this->app->call([Platform::class, 'registerAssets']); } } } src/Listener/LoadChildTheme.php 0000644 00000001461 15175047507 0012454 0 ustar 00 <?php namespace YOOtheme\Theme\Joomla\Listener; use YOOtheme\Config; use YOOtheme\Event; use YOOtheme\File; class LoadChildTheme { public Config $config; public function __construct(Config $config) { $this->config = $config; } public function handle(): void { if (empty(($child = $this->config->get('~theme.child_theme')))) { return; } if (!file_exists($childDir = "{$this->config->get('theme.rootDir')}_{$child}")) { return; } // add childDir to config $this->config->set('theme.childDir', $childDir); // add ~theme alias resolver Event::on( 'path ~theme', fn($path, $file) => $file && File::find($childDir . $file) ? $childDir . $file : $path, ); } } src/Listener/LoadChildThemeConfig.php 0000644 00000002307 15175047507 0013602 0 ustar 00 <?php namespace YOOtheme\Theme\Joomla\Listener; use Joomla\CMS\Factory; use YOOtheme\Config; class LoadChildThemeConfig { public Config $config; public function __construct(Config $config) { $this->config = $config; } public function handle(): void { if ( !$this->config->get('app.isAdmin') && ($childDir = $this->config->get('theme.childDir')) && ($themeFile = $this->getThemeFile()) && file_exists($file = "{$childDir}/{$themeFile}") ) { Factory::getApplication()->set('theme', basename(dirname($file))); } } /** * @see SiteApplication::render */ protected function getThemeFile(): ?string { $joomla = Factory::getApplication(); if ($joomla->getDocument()->getType() === 'feed') { return null; } $file = $joomla->input->get('tmpl', 'index'); if ($file === 'offline' && !$joomla->get('offline')) { return 'index.php'; } if ($joomla->get('offline') && !Factory::getUser()->authorise('core.login.offline')) { return 'offline.php'; } return "{$file}.php"; } } src/Listener/LoadCustomizer.php 0000644 00000001741 15175047507 0012613 0 ustar 00 <?php namespace YOOtheme\Theme\Joomla\Listener; use Joomla\CMS\Component\ComponentHelper; use Joomla\CMS\User\User; use YOOtheme\Config; use YOOtheme\Path; use YOOtheme\Theme\Joomla\ApiKey; class LoadCustomizer { public User $user; public Config $config; public ApiKey $apiKey; public function __construct(Config $config, ApiKey $apiKey, User $user) { $this->user = $user; $this->config = $config; $this->apiKey = $apiKey; } public function handle(): void { $this->config->addFile('customizer', Path::get('../../config/customizer.json', __DIR__)); $this->config->add('customizer', [ 'config' => ['yootheme_apikey' => $this->apiKey->get()], 'user_id' => $this->user->id, ]); // Joomla 4 does not distribute com_search if (!ComponentHelper::isEnabled('com_search')) { $this->config->del('customizer.panels.advanced.fields.search_module'); } } } src/Listener/LoadTemplate.php 0000644 00000003002 15175047507 0012212 0 ustar 00 <?php namespace YOOtheme\Theme\Joomla\Listener; use Joomla\CMS\Factory; use YOOtheme\Config; use YOOtheme\Theme\Joomla\StreamWrapper; class LoadTemplate { public Config $config; public function __construct(Config $config) { $this->config = $config; } public function handle($event): void { if ($this->config->get('app.isAdmin') || !$this->config->get('theme.active')) { return; } $view = $event->getArgument('subject'); // loader callback for template event $loader = function ($path) use ($view) { // Clone view to avoid mutations on the original view $copy = clone $view; $copy->set('_output', null); $copy->set('context', basename($copy->get('_basePath')) . ".{$copy->getName()}"); $tpl = substr(basename($path, '.php'), strlen($copy->getLayout()) + 1) ?: null; Factory::getApplication()->triggerEvent('onLoadTemplate', [$copy, $tpl]); return $copy->get('_output'); }; // register the stream wrapper if (!in_array('views', stream_get_wrappers())) { stream_wrapper_register('views', StreamWrapper::class); } // add loader using a stream reference // check if path is available (StackIdeas com_payplan) if ($path = $view->get('_path')) { array_unshift($path['template'], 'views://' . StreamWrapper::setObject($loader)); $view->set('_path', $path); } } } src/Listener/LoadThemeHead.php 0000644 00000005522 15175047507 0012274 0 ustar 00 <?php namespace YOOtheme\Theme\Joomla\Listener; use Joomla\CMS\Application\SiteApplication; use Joomla\CMS\Document\Document; use Joomla\CMS\Document\HtmlDocument; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Language; use Joomla\CMS\Plugin\PluginHelper; use YOOtheme\Config; use YOOtheme\Event; class LoadThemeHead { public Config $config; public Document $document; public Language $language; public ?SiteApplication $joomla; public function __construct( Config $config, Document $document, Language $language, ?SiteApplication $joomla ) { $this->config = $config; $this->joomla = $joomla; $this->document = $document; $this->language = $language; } public function handle(): void { if (!$this->isThemeActive()) { return; } $this->language->load('tpl_yootheme', $this->config->get('theme.rootDir')); $this->config->add('~theme', [ 'direction' => $this->document->getDirection(), 'page_class' => $this->joomla->getParams()->get('pageclass_sfx'), ]); if ( version_compare(JVERSION, '4.0', '<') && PluginHelper::isEnabled('content', 'emailcloak') ) { $this->fixEmailCloak($this->document); } $custom = $this->config->get('~theme.custom_js', ''); if ($custom && $this->document instanceof HtmlDocument) { $this->addCustomScript($this->document, $custom); } if ($this->config->get('~theme.jquery') || str_contains($custom, 'jQuery')) { HTMLHelper::_('jquery.framework'); } Event::emit('theme.head'); } protected function isThemeActive(): bool { return isset($this->joomla) && $this->joomla->input->getCmd('tmpl') !== 'component' && $this->joomla->input->getCmd('option') !== 'com_ajax' && $this->config->get('theme.active'); } protected function fixEmailCloak(Document $document): void { $document->addScriptDeclaration("document.addEventListener('DOMContentLoaded', function() { Array.prototype.slice.call(document.querySelectorAll('a span[id^=\"cloak\"]')).forEach(function(span) { span.innerText = span.textContent; }); });"); } protected function addCustomScript(HtmlDocument $document, $script): void { $script = trim($script); // Check for </script> for backwards compatibility (Will be dropped in the future) if (!str_starts_with($script, '<') || str_starts_with($script, '</script>')) { $attrs = $this->config->get('app.isCustomizer') ? ' data-preview="diff"' : ''; $script = "<script{$attrs}>{$script}</script>"; } $document->addCustomTag($script); } } src/Listener/CheckUserPermission.php 0000644 00000004704 15175047507 0013576 0 ustar 00 <?php namespace YOOtheme\Theme\Joomla\Listener; use Joomla\CMS\Router\Route; use Joomla\CMS\User\User; use YOOtheme\Config; use YOOtheme\Http\Request; use YOOtheme\Http\Response; use function YOOtheme\app; class CheckUserPermission { public User $user; public Config $config; public static array $themeRoutes = [ '/builder/template' => ['GET', 'POST', 'DELETE'], '/builder/template/reorder' => ['POST'], '/cache' => ['GET'], '/cache/clear' => ['POST'], '/import' => ['POST'], '/styler/library' => ['GET', 'POST', 'DELETE'], '/systemcheck' => ['GET'], '/theme/style' => ['GET', 'POST'], '/theme/styles' => ['GET'], ]; public function __construct(Config $config, User $user) { $this->user = $user; $this->config = $config; } /** * Check permission of current user. * * @param Request $request * @param callable $next */ public function handle($request, callable $next): Response { if (!$request->getAttribute('allowed') && !$this->hasPermission($request)) { // redirect guest user to user login if ( $this->user->guest && str_contains($request->getHeaderLine('Accept'), 'text/html') ) { $url = Route::_( $this->config->get('app.isAdmin') ? 'index.php?option=com_login' : 'index.php?option=com_users&view=login', false, ); return app(Response::class)->withRedirect($url); } $request->abort(403, 'Insufficient User Rights.'); } return $next($request); } protected function hasPermission($request): bool { if ($this->user->authorise('core.edit', 'com_templates')) { return true; } $route = $request->getAttribute('route'); if (in_array($request->getMethod(), static::$themeRoutes[$route->getPath()] ?? [])) { return false; } if ( $request->getAttribute('customizer') && $request->getQueryParam('section') !== 'builder' ) { return false; } return $this->user->authorise('core.edit', 'com_content') || $this->user->authorise('core.edit.own', 'com_content') || $this->user->authorise('core.edit', 'com_modules'); } } src/Listener/LoadCustomizerSession.php 0000644 00000003644 15175047507 0014163 0 ustar 00 <?php namespace YOOtheme\Theme\Joomla\Listener; use Joomla\CMS\Application\CMSApplication; use Joomla\CMS\Session\Session; use YOOtheme\Arr; use YOOtheme\Config; class LoadCustomizerSession { public Config $config; public Session $session; public CMSApplication $joomla; public function __construct(Config $config, CMSApplication $joomla, Session $session) { $this->config = $config; $this->joomla = $joomla; $this->session = $session; } public function handle(): void { $cookie = hash_hmac( 'md5', $this->config->get('theme.template'), $this->config->get('app.secret'), ); // If not customizer route if ($this->joomla->input->get('p') !== 'customizer') { // Is frontend request and has customizer cookie if (!$this->config->get('app.isSite') || !$this->joomla->input->cookie->get($cookie)) { return; } // Get params from frontend session $params = $this->session->get($cookie) ?: []; // Get customizer config from request if ($custom = $this->joomla->input->getBase64('customizer')) { $params = array_replace($params, json_decode(base64_decode($custom), true)); $this->session->set($cookie, Arr::pick($params, ['config', 'admin', 'user_id'])); } // Override theme config if (isset($params['config'])) { $this->config->set('~theme', $params['config']); } // Pass through e.g. page, modules and template params $this->config->add('req.customizer', $params); } $this->joomla->set('caching', 0); $this->config->set('app.isCustomizer', true); $this->config->set('theme.cookie', $cookie); $this->config->set('customizer.id', $this->config->get('theme.id')); } } src/Listener/LoadCustomizerData.php 0000644 00000001771 15175047507 0013410 0 ustar 00 <?php namespace YOOtheme\Theme\Joomla\Listener; use Joomla\CMS\Application\CMSApplication; use YOOtheme\Config; use YOOtheme\Metadata; class LoadCustomizerData { public Config $config; public Metadata $metadata; public CMSApplication $joomla; public function __construct(Config $config, CMSApplication $joomla, Metadata $metadata) { $this->config = $config; $this->joomla = $joomla; $this->metadata = $metadata; } public function handle(): void { if ( $this->joomla->get('themeFile') !== 'offline.php' && ($data = $this->config->get('customizer')) ) { $this->metadata->set( 'script:customizer-data', sprintf( 'window.yootheme ||= {}; var $customizer = yootheme.customizer = JSON.parse(atob("%s"));', base64_encode(json_encode($data)), ), ['id' => 'customizer-data'], ); } } } src/Listener/LoadChildThemeModules.php 0000644 00000001701 15175047507 0014002 0 ustar 00 <?php namespace YOOtheme\Theme\Joomla\Listener; use YOOtheme\Config; class LoadChildThemeModules { public Config $config; public function __construct(Config $config) { $this->config = $config; } public function handle($event): void { $childDir = $this->config->get('theme.childDir'); if (!$childDir || $this->config->get('app.isAdmin')) { return; } $modules = $event->getArgument('modules'); foreach ($modules as $module) { $params = json_decode($module->params ?? '{}'); $layout = is_string($params->layout ?? null) ? str_replace('_:', '', $params->layout) : 'default'; if (file_exists("{$childDir}/html/{$module->module}/{$layout}.php")) { $params->layout = basename($childDir) . ":{$layout}"; $module->params = json_encode($params); } } } } src/Listener/AddSiteUrl.php 0000644 00000001750 15175047507 0011647 0 ustar 00 <?php namespace YOOtheme\Theme\Joomla\Listener; use Joomla\CMS\Application\SiteApplication; use Joomla\CMS\Router\Route; use YOOtheme\Config; class AddSiteUrl { public Config $config; public ?SiteApplication $joomla; public function __construct(Config $config, ?SiteApplication $joomla) { $this->config = $config; $this->joomla = $joomla; } public function handle(): void { if (!$this->isThemeActive()) { return; } $itemId = ($item = $this->joomla->getMenu()->getDefault()) ? $item->id : 0; $siteUrl = Route::_("index.php?Itemid={$itemId}", false, 0, true); $this->config->set('~theme.site_url', $siteUrl); } protected function isThemeActive(): bool { return isset($this->joomla) && $this->joomla->input->getCmd('tmpl') !== 'component' && $this->joomla->input->getCmd('option') !== 'com_ajax' && $this->config->get('theme.active'); } } src/Listener/AddPageCategory.php 0000644 00000001433 15175047507 0012630 0 ustar 00 <?php namespace YOOtheme\Theme\Joomla\Listener; use Joomla\Database\DatabaseDriver; use YOOtheme\Config; class AddPageCategory { public Config $config; public DatabaseDriver $db; public function __construct(Config $config, DatabaseDriver $db) { $this->db = $db; $this->config = $config; } public function handle(): void { $catid = $this->config->get('~theme.page_category'); if ($catid === '' || is_numeric($catid)) { return; } $result = $this->db ->setQuery( "SELECT id FROM #__categories WHERE alias = 'uncategorised' AND extension = 'com_content'", ) ->loadResult(); $this->config->set('~theme.page_category', strval($result)); } } src/Listener/LoadThemeI18n.php 0000644 00000003552 15175047507 0012153 0 ustar 00 <?php namespace YOOtheme\Theme\Joomla\Listener; use Joomla\CMS\Language\Text; use YOOtheme\Config; class LoadThemeI18n { public Config $config; public function __construct(Config $config) { $this->config = $config; } public function handle(): void { $this->config->add('theme.data.i18n', [ 'close' => ['label' => Text::_('TPL_YOOTHEME_CLOSE')], 'totop' => ['label' => Text::_('TPL_YOOTHEME_BACK_TO_TOP')], 'marker' => ['label' => Text::_('TPL_YOOTHEME_OPEN')], 'navbarToggleIcon' => ['label' => Text::_('TPL_YOOTHEME_OPEN_MENU')], 'paginationPrevious' => ['label' => Text::_('TPL_YOOTHEME_PREVIOUS_PAGE')], 'paginationNext' => ['label' => Text::_('TPL_YOOTHEME_NEXT_PAGE')], 'searchIcon' => [ 'toggle' => Text::_('TPL_YOOTHEME_OPEN_SEARCH'), 'submit' => Text::_('TPL_YOOTHEME_SUBMIT_SEARCH'), ], 'slider' => [ 'next' => Text::_('TPL_YOOTHEME_NEXT_SLIDE'), 'previous' => Text::_('TPL_YOOTHEME_PREVIOUS_SLIDE'), 'slideX' => Text::_('TPL_YOOTHEME_SLIDE_%S'), 'slideLabel' => Text::_('TPL_YOOTHEME_%S_OF_%S'), ], 'slideshow' => [ 'next' => Text::_('TPL_YOOTHEME_NEXT_SLIDE'), 'previous' => Text::_('TPL_YOOTHEME_PREVIOUS_SLIDE'), 'slideX' => Text::_('TPL_YOOTHEME_SLIDE_%S'), 'slideLabel' => Text::_('TPL_YOOTHEME_%S_OF_%S'), ], 'lightboxPanel' => [ 'next' => Text::_('TPL_YOOTHEME_NEXT_SLIDE'), 'previous' => Text::_('TPL_YOOTHEME_PREVIOUS_SLIDE'), 'slideLabel' => Text::_('TPL_YOOTHEME_%S_OF_%S'), 'close' => Text::_('TPL_YOOTHEME_CLOSE'), ], ]); } } src/Listener/LoadChildThemeTemplate.php 0000644 00000001713 15175047507 0014150 0 ustar 00 <?php namespace YOOtheme\Theme\Joomla\Listener; use YOOtheme\Config; class LoadChildThemeTemplate { public Config $config; public function __construct(Config $config) { $this->config = $config; } public function handle($event): void { $childDir = $this->config->get('theme.childDir'); if (!$childDir || $this->config->get('app.isAdmin')) { return; } $view = $event->getArgument('subject'); $paths = $view->get('_path'); if ($path = $paths['template'][0] ?? false) { $theme = $this->config->get('theme.template'); if (str_contains($path, DIRECTORY_SEPARATOR . $theme . DIRECTORY_SEPARATOR)) { array_unshift( $paths['template'], preg_replace("/({$theme}(?!.*{$theme}.*))/", basename($childDir), $path), ); } } $view->set('_path', $paths); } } src/Listener/AddPageLayout.php 0000644 00000001524 15175047507 0012331 0 ustar 00 <?php namespace YOOtheme\Theme\Joomla\Listener; use YOOtheme\Config; class AddPageLayout { public Config $config; public function __construct(Config $config) { $this->config = $config; } public function handle($event): void { [$view] = $event->getArguments(); $layout = $view->getLayout(); $context = $view->get('context'); if (in_array($context, ['com_content.category', 'com_content.featured', 'com_tags.tag'])) { $this->config->set('~theme.page_layout', 'blog'); } if ($context === 'com_content.article' && $layout === 'default') { $item = $view->get('item'); if ($this->config->get('~theme.page_category') != $item->catid) { $this->config->set('~theme.page_layout', 'post'); } } } } src/Listener/LoadChildThemeNames.php 0000644 00000001534 15175047507 0013441 0 ustar 00 <?php namespace YOOtheme\Theme\Joomla\Listener; use YOOtheme\Config; class LoadChildThemeNames { public Config $config; public function __construct(Config $config) { $this->config = $config; } public function handle(): void { $this->config->set( 'theme.child_themes', array_merge( ['None' => ''], $this->getChildThemes($this->config->get('theme.rootDir', '')), ), ); } protected function getChildThemes(string $root): array { $dir = dirname($root); $name = basename($root); $themes = []; foreach (glob("{$dir}/{$name}_*") as $child) { $child = str_replace("{$name}_", '', basename($child)); $themes[ucfirst($child)] = $child; } return $themes; } } src/Listener/SaveInstallerApiKey.php 0000644 00000001410 15175047507 0013517 0 ustar 00 <?php namespace YOOtheme\Theme\Joomla\Listener; use Joomla\CMS\User\User; use YOOtheme\Theme\Joomla\ApiKey; class SaveInstallerApiKey { public User $user; public ApiKey $apiKey; public function __construct(User $user, ApiKey $apiKey) { $this->user = $user; $this->apiKey = $apiKey; } public function handle(array $values): array { if (!isset($values['yootheme_apikey'])) { return $values; } if ( $this->user->authorise('core.edit', 'com_installer') && $this->user->authorise('core.manage', 'com_installer') ) { $this->apiKey->set($values['yootheme_apikey']); } unset($values['yootheme_apikey']); return $values; } } src/Listener/LoadCustomizerScript.php 0000644 00000001136 15175047507 0013776 0 ustar 00 <?php namespace YOOtheme\Theme\Joomla\Listener; use YOOtheme\Metadata; use YOOtheme\Path; class LoadCustomizerScript { public Metadata $metadata; public function __construct(Metadata $metadata) { $this->metadata = $metadata; } public function handle(): void { $this->metadata->set('style:customizer', [ 'href' => Path::get('../../assets/css/admin.css', __DIR__), ]); $this->metadata->set('script:customizer', [ 'src' => Path::get('../../app/customizer.min.js', __DIR__), 'defer' => true, ]); } } src/Listener/LoadCustomizerContext.php 0000644 00000001543 15175047507 0014160 0 ustar 00 <?php namespace YOOtheme\Theme\Joomla\Listener; use YOOtheme\Config; use YOOtheme\Theme\Joomla\ApiKey; use YOOtheme\Url; class LoadCustomizerContext { public Config $config; public ApiKey $apiKey; public function __construct(Config $config, ApiKey $apiKey) { $this->config = $config; $this->apiKey = $apiKey; } public function handle($event): void { $context = $event->getArgument('context'); $data = $event->getArgument('data'); if ($context !== 'com_templates.style') { return; } $this->config->add('customizer', [ 'context' => $context, 'apikey' => $this->apiKey->get(), 'url' => Url::route('customizer', [ 'templateStyle' => $data->id, 'format' => 'html', ]), ]); } } src/ViewHelper.php 0000644 00000001745 15175047507 0010140 0 ustar 00 <?php namespace YOOtheme\Theme\Joomla; use Joomla\CMS\HTML\HTMLHelper; use YOOtheme\Theme\ViewHelper as BaseViewHelper; class ViewHelper extends BaseViewHelper { /** * @inheritdoc */ public function image($url, array $attrs = []) { $url = (array) $url; $url[0] = $this->cleanImageUrl($url[0]); return parent::image($url, $attrs); } /** * @inheritdoc */ public function bgImage($url, array $params = []) { return parent::bgImage($this->cleanImageUrl($url), $params); } /** * @inheritdoc */ public function comImage($element, array $params = []) { if (!empty($element->attrs['src'])) { $element->attrs['src'] = $this->cleanImageUrl($element->attrs['src']); } parent::comImage($element, $params); } protected function cleanImageUrl($url) { return $this->isAbsolute($url) ? $url : HTMLHelper::_('cleanImageURL', $url)->url; } } src/UrlLoader.php 0000644 00000002700 15175047507 0007747 0 ustar 00 <?php namespace YOOtheme\Theme\Joomla; use YOOtheme\Url; class UrlLoader { public const REGEX_URL = '/ \s # match a space (?<attr>(?:data-)?(?:src|poster))= # match the attribute (["\']) # start with a single or double quote (?!\/|\#|[a-z0-9-.]+:) # make sure it is a relative path (?<url>[^"\'>]+) # match the actual src value \2 # match the previous quote /xiU'; public static function resolveRelativeUrl($name, $parameters, callable $next) { if (!is_string($content = $next($name, $parameters))) { return $content; } // Apply to root template view only if (empty($parameters['_root'])) { return $content; } // Ignore rendering builder with context 'content' if (isset($parameters['builder']) && ($parameters['context'] ?? '') === 'content') { return $content; } return preg_replace_callback( static::REGEX_URL, fn($matches) => sprintf( ' %s="%s"', $matches['attr'], htmlentities(Url::to(html_entity_decode($matches['url']))), ), $content, ); } } app/customizer.min.js 0000644 00003762207 15175047507 0010704 0 ustar 00 /*! YOOtheme Pro v4.5.33 | https://yootheme.com */ var CQ=ke=>{throw TypeError(ke)};var Im=(ke,nr,Yc)=>nr.has(ke)?CQ("Cannot add the same private member more than once"):nr instanceof WeakSet?nr.add(ke):nr.set(ke,Yc);(function(ke,nr){"use strict";var Rp,Dp;const Yc="application/json",Lm="Content-Type",La=Symbol(),Rm=Symbol();function Dm(t={}){var e;const r=t instanceof Array?Object.fromEntries(t):t;return(e=Object.entries(r).find(([n])=>n.toLowerCase()===Lm.toLowerCase()))===null||e===void 0?void 0:e[1]}function Mm(t){return/^application\/.*json.*/.test(t)}const qi=function(t,e,r=!1){return Object.entries(e).reduce((n,[a,o])=>{const c=t[a];return Array.isArray(c)&&Array.isArray(o)?n[a]=r?[...c,...o]:o:typeof c=="object"&&typeof o=="object"?n[a]=qi(c,o,r):n[a]=o,n},{...t})},Ra={options:{},errorType:"text",polyfills:{},polyfill(t,e=!0,r=!1,...n){const a=this.polyfills[t]||(typeof self<"u"?self[t]:null)||(typeof global<"u"?global[t]:null);if(e&&!a)throw new Error(t+" is not defined");return r&&a?new a(...n):a}};function EC(t,e=!1){Ra.options=e?t:qi(Ra.options,t)}function TC(t,e=!1){Ra.polyfills=e?t:qi(Ra.polyfills,t)}function CC(t){Ra.errorType=t}const wC=t=>e=>t.reduceRight((r,n)=>n(r),e)||e;class $m extends Error{}const SC=t=>{const e=Object.create(null);t=t._addons.reduce((S,P)=>P.beforeRequest&&P.beforeRequest(S,t._options,e)||S,t);const{_url:r,_options:n,_config:a,_catchers:o,_resolvers:c,_middlewares:d,_addons:p}=t,v=new Map(o),b=qi(a.options,n);let C=r;const T=wC(d)((S,P)=>(C=S,a.polyfill("fetch")(S,P)))(r,b),A=new Error,F=T.catch(S=>{throw{[La]:S}}).then(S=>{var P;if(!S.ok){const R=new $m;if(R.cause=A,R.stack=R.stack+` CAUSE: `+A.stack,R.response=S,R.status=S.status,R.url=C,S.type==="opaque")throw R;const B=a.errorType==="json"||((P=S.headers.get("Content-Type"))===null||P===void 0?void 0:P.split(";")[0])==="application/json";return(a.errorType?B?S.text():S[a.errorType]():Promise.resolve(S.body)).then(le=>{throw R.message=typeof le=="string"?le:S.statusText,le&&(B&&typeof le=="string"?(R.text=le,R.json=JSON.parse(le)):R[a.errorType]=le),R})}return S}),G=S=>S.catch(P=>{const R=Object.prototype.hasOwnProperty.call(P,La),B=R?P[La]:P,q=B?.status&&v.get(B.status)||v.get(B?.name)||R&&v.has(La)&&v.get(La);if(q)return q(B,t);const le=v.get(Rm);if(le)return le(B,t);throw B}),j=S=>P=>G(S?F.then(R=>R&&R[S]()).then(R=>P?P(R):R):F.then(R=>P?P(R):R)),O={_wretchReq:t,_fetchReq:T,_sharedState:e,res:j(null),json:j("json"),blob:j("blob"),formData:j("formData"),arrayBuffer:j("arrayBuffer"),text:j("text"),error(S,P){return v.set(S,P),this},badRequest(S){return this.error(400,S)},unauthorized(S){return this.error(401,S)},forbidden(S){return this.error(403,S)},notFound(S){return this.error(404,S)},timeout(S){return this.error(408,S)},internalError(S){return this.error(500,S)},fetchError(S){return this.error(La,S)}},x=p.reduce((S,P)=>({...S,...typeof P.resolver=="function"?P.resolver(S):P.resolver}),O);return c.reduce((S,P)=>P(S,t),x)},xC={_url:"",_options:{},_config:Ra,_catchers:new Map,_resolvers:[],_deferred:[],_middlewares:[],_addons:[],addon(t){return{...this,_addons:[...this._addons,t],...t.wretch}},errorType(t){return{...this,_config:{...this._config,errorType:t}}},polyfills(t,e=!1){return{...this,_config:{...this._config,polyfills:e?t:qi(this._config.polyfills,t)}}},url(t,e=!1){if(e)return{...this,_url:t};const r=this._url.split("?");return{...this,_url:r.length>1?r[0]+t+"?"+r[1]:this._url+t}},options(t,e=!1){return{...this,_options:e?t:qi(this._options,t)}},headers(t){const e=t?Array.isArray(t)?Object.fromEntries(t):"entries"in t?Object.fromEntries(t.entries()):t:{};return{...this,_options:qi(this._options,{headers:e})}},accept(t){return this.headers({Accept:t})},content(t){return this.headers({[Lm]:t})},auth(t){return this.headers({Authorization:t})},catcher(t,e){const r=new Map(this._catchers);return r.set(t,e),{...this,_catchers:r}},catcherFallback(t){return this.catcher(Rm,t)},resolve(t,e=!1){return{...this,_resolvers:e?[t]:[...this._resolvers,t]}},defer(t,e=!1){return{...this,_deferred:e?[t]:[...this._deferred,t]}},middlewares(t,e=!1){return{...this,_middlewares:e?t:[...this._middlewares,...t]}},fetch(t=this._options.method,e="",r=null){let n=this.url(e).options({method:t});const a=Dm(n._options.headers),o=this._config.polyfill("FormData",!1),c=typeof r=="object"&&!(o&&r instanceof o)&&(!n._options.headers||!a||Mm(a));return n=r?c?n.json(r,a):n.body(r):n,SC(n._deferred.reduce((d,p)=>p(d,d._url,d._options),n))},get(t=""){return this.fetch("GET",t)},delete(t=""){return this.fetch("DELETE",t)},put(t,e=""){return this.fetch("PUT",e,t)},post(t,e=""){return this.fetch("POST",e,t)},patch(t,e=""){return this.fetch("PATCH",e,t)},head(t=""){return this.fetch("HEAD",t)},opts(t=""){return this.fetch("OPTIONS",t)},body(t){return{...this,_options:{...this._options,body:t}}},json(t,e){const r=Dm(this._options.headers);return this.content(e||Mm(r)&&r||Yc).body(JSON.stringify(t))}};function Yi(t="",e={}){return{...xC,_url:t,_options:e}}Yi.default=Yi,Yi.options=EC,Yi.errorType=CC,Yi.polyfills=TC,Yi.WretchError=$m;const AC=()=>({beforeRequest(t,e,r){const n=t._config.polyfill("AbortController",!1,!0);!e.signal&&n&&(e.signal=n.signal);const a={ref:null,clear(){a.ref&&(clearTimeout(a.ref),a.ref=null)}};return r.abort={timeout:a,fetchController:n},t},wretch:{signal(t){return{...this,_options:{...this._options,signal:t.signal}}}},resolver:{setTimeout(t,e=this._sharedState.abort.fetchController){const{timeout:r}=this._sharedState.abort;return r.clear(),r.ref=setTimeout(()=>e.abort(),t),this},controller(){return[this._sharedState.abort.fetchController,this]},onAbort(t){return this.error("AbortError",t)}}});function Fm(t,e=!1,r,n=r.polyfill("FormData",!0,!0),a=[]){return Object.entries(t).forEach(([o,c])=>{let d=a.reduce((p,v)=>p?`${p}[${v}]`:v,null);if(d=d?`${d}[${o}]`:o,c instanceof Array||globalThis.FileList&&c instanceof FileList)for(const p of c)n.append(d,p);else e&&typeof c=="object"&&(!(e instanceof Array)||!e.includes(o))?c!==null&&Fm(c,e,r,n,[...a,o]):n.append(d,c)}),n}const OC={wretch:{formData(t,e=!1){return this.body(Fm(t,e,this._config))}}};function Bm(t,e){return encodeURIComponent(t)+"="+encodeURIComponent(typeof e=="object"?JSON.stringify(e):""+e)}function NC(t){return Object.keys(t).map(e=>{const r=t[e];return r instanceof Array?r.map(n=>Bm(e,n)).join("&"):Bm(e,r)}).join("&")}const PC={wretch:{formUrl(t){return this.body(typeof t=="string"?t:NC(t)).content("application/x-www-form-urlencoded")}}};var Lu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Da(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function IC(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var r=function n(){var a=!1;try{a=this instanceof n}catch{}return a?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var a=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return t[n]}})}),r}var Ru={exports:{}},LC=Ru.exports,Hm;function RC(){return Hm||(Hm=1,(function(t,e){(function(r,n){t.exports=n()})(LC,function(){return function(r){return r===void 0&&(r=""),r.replace(/(\b|\B)\s+(\b|\B)/gm," ").replace(/(\B)\s+(\B)|(\b)\s+(\B)|(\B)\s+(\b)/gm,"").trim()}})})(Ru)),Ru.exports}RC();function DC(t){const e=/^(query|mutation|fragment)\s+(\w+)/,r={};for(const n of t){const a=n.match(e);if(a){const[,o,c]=a;r[o]={...r[o],[c]:n}}}return r}function MC({query:t,mutation:e,fragment:r}){const n={};for(const[a,o]of Object.entries({...t,...e}))n[a]=[o,...Object.values(Um(o,r))].join(" ");return n}function Um(t,e={}){const r={};for(const[n,a]of Object.entries(e))t.match(new RegExp(`\\.{3}${n}[\\s}]`))&&Object.assign(r,{[n]:a},Um(a,e));return r}function $C(t,{wretch:e,resolver:r}){return function(n){return e.post({query:t,variables:n}).json(r)}}class FC{constructor(e,r){for(const[n,a]of Object.entries(MC(DC(e))))this[n]=$C(a,r)}}const BC={wretch:{graphql(t,e){return new FC(t,{...e,wretch:this})}}},HC=(t,e,r,n)=>{let a;if(typeof e=="string")a=e;else{const c=n.polyfill("URLSearchParams",!0,!0);for(const[d,p]of Object.entries(e))if(Array.isArray(p))for(const v of p)c.append(`${d}[]`,v??"");else if(typeof p=="object"&&p!==null)for(const[v,b]of Object.entries(p))c.append(`${d}[${v}]`,b??"");else c.append(d,p??"");a=c.toString()}const o=t.split("?");return a?r||o.length<2?o[0]+"?"+a:t+"&"+a:r?o[0]:t},UC={wretch:{query(t,e=!1){return{...this,_url:HC(this._url,t,e,this._config)}}}};function Ks(t,e){return[...Ks.addons,AC(),OC,PC,UC,BC].reduce((r,n)=>r.addon(n),Yi(t,{...Ks.options,...e}))}var Ue=Object.assign(Ks,{addons:[],options:{}});function Du(t){"@babel/helpers - typeof";return Du=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Du(t)}var jC=/^\s+/,WC=/\s+$/;function Ne(t,e){if(t=t||"",e=e||{},t instanceof Ne)return t;if(!(this instanceof Ne))return new Ne(t,e);var r=GC(t);this._originalInput=t,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||r.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}Ne.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var e=this.toRgb(),r,n,a,o,c,d;return r=e.r/255,n=e.g/255,a=e.b/255,r<=.03928?o=r/12.92:o=Math.pow((r+.055)/1.055,2.4),n<=.03928?c=n/12.92:c=Math.pow((n+.055)/1.055,2.4),a<=.03928?d=a/12.92:d=Math.pow((a+.055)/1.055,2.4),.2126*o+.7152*c+.0722*d},setAlpha:function(e){return this._a=Ym(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=Wm(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=Wm(this._r,this._g,this._b),r=Math.round(e.h*360),n=Math.round(e.s*100),a=Math.round(e.v*100);return this._a==1?"hsv("+r+", "+n+"%, "+a+"%)":"hsva("+r+", "+n+"%, "+a+"%, "+this._roundA+")"},toHsl:function(){var e=jm(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=jm(this._r,this._g,this._b),r=Math.round(e.h*360),n=Math.round(e.s*100),a=Math.round(e.l*100);return this._a==1?"hsl("+r+", "+n+"%, "+a+"%)":"hsla("+r+", "+n+"%, "+a+"%, "+this._roundA+")"},toHex:function(e){return Gm(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return KC(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Tt(this._r,255)*100)+"%",g:Math.round(Tt(this._g,255)*100)+"%",b:Math.round(Tt(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Tt(this._r,255)*100)+"%, "+Math.round(Tt(this._g,255)*100)+"%, "+Math.round(Tt(this._b,255)*100)+"%)":"rgba("+Math.round(Tt(this._r,255)*100)+"%, "+Math.round(Tt(this._g,255)*100)+"%, "+Math.round(Tt(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:sw[Gm(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var r="#"+zm(this._r,this._g,this._b,this._a),n=r,a=this._gradientType?"GradientType = 1, ":"";if(e){var o=Ne(e);n="#"+zm(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+a+"startColorstr="+r+",endColorstr="+n+")"},toString:function(e){var r=!!e;e=e||this._format;var n=!1,a=this._a<1&&this._a>=0,o=!r&&a&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return o?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(n=this.toRgbString()),e==="prgb"&&(n=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(n=this.toHexString()),e==="hex3"&&(n=this.toHexString(!0)),e==="hex4"&&(n=this.toHex8String(!0)),e==="hex8"&&(n=this.toHex8String()),e==="name"&&(n=this.toName()),e==="hsl"&&(n=this.toHslString()),e==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return Ne(this.toString())},_applyModification:function(e,r){var n=e.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(JC,arguments)},brighten:function(){return this._applyModification(ZC,arguments)},darken:function(){return this._applyModification(ew,arguments)},desaturate:function(){return this._applyModification(XC,arguments)},saturate:function(){return this._applyModification(VC,arguments)},greyscale:function(){return this._applyModification(QC,arguments)},spin:function(){return this._applyModification(tw,arguments)},_applyCombination:function(e,r){return e.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(iw,arguments)},complement:function(){return this._applyCombination(rw,arguments)},monochromatic:function(){return this._applyCombination(aw,arguments)},splitcomplement:function(){return this._applyCombination(nw,arguments)},triad:function(){return this._applyCombination(qm,[3])},tetrad:function(){return this._applyCombination(qm,[4])}},Ne.fromRatio=function(t,e){if(Du(t)=="object"){var r={};for(var n in t)t.hasOwnProperty(n)&&(n==="a"?r[n]=t[n]:r[n]=Xs(t[n]));t=r}return Ne(t,e)};function GC(t){var e={r:0,g:0,b:0},r=1,n=null,a=null,o=null,c=!1,d=!1;return typeof t=="string"&&(t=cw(t)),Du(t)=="object"&&($n(t.r)&&$n(t.g)&&$n(t.b)?(e=zC(t.r,t.g,t.b),c=!0,d=String(t.r).substr(-1)==="%"?"prgb":"rgb"):$n(t.h)&&$n(t.s)&&$n(t.v)?(n=Xs(t.s),a=Xs(t.v),e=YC(t.h,n,a),c=!0,d="hsv"):$n(t.h)&&$n(t.s)&&$n(t.l)&&(n=Xs(t.s),o=Xs(t.l),e=qC(t.h,n,o),c=!0,d="hsl"),t.hasOwnProperty("a")&&(r=t.a)),r=Ym(r),{ok:c,format:t.format||d,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:r}}function zC(t,e,r){return{r:Tt(t,255)*255,g:Tt(e,255)*255,b:Tt(r,255)*255}}function jm(t,e,r){t=Tt(t,255),e=Tt(e,255),r=Tt(r,255);var n=Math.max(t,e,r),a=Math.min(t,e,r),o,c,d=(n+a)/2;if(n==a)o=c=0;else{var p=n-a;switch(c=d>.5?p/(2-n-a):p/(n+a),n){case t:o=(e-r)/p+(e<r?6:0);break;case e:o=(r-t)/p+2;break;case r:o=(t-e)/p+4;break}o/=6}return{h:o,s:c,l:d}}function qC(t,e,r){var n,a,o;t=Tt(t,360),e=Tt(e,100),r=Tt(r,100);function c(v,b,C){return C<0&&(C+=1),C>1&&(C-=1),C<1/6?v+(b-v)*6*C:C<1/2?b:C<2/3?v+(b-v)*(2/3-C)*6:v}if(e===0)n=a=o=r;else{var d=r<.5?r*(1+e):r+e-r*e,p=2*r-d;n=c(p,d,t+1/3),a=c(p,d,t),o=c(p,d,t-1/3)}return{r:n*255,g:a*255,b:o*255}}function Wm(t,e,r){t=Tt(t,255),e=Tt(e,255),r=Tt(r,255);var n=Math.max(t,e,r),a=Math.min(t,e,r),o,c,d=n,p=n-a;if(c=n===0?0:p/n,n==a)o=0;else{switch(n){case t:o=(e-r)/p+(e<r?6:0);break;case e:o=(r-t)/p+2;break;case r:o=(t-e)/p+4;break}o/=6}return{h:o,s:c,v:d}}function YC(t,e,r){t=Tt(t,360)*6,e=Tt(e,100),r=Tt(r,100);var n=Math.floor(t),a=t-n,o=r*(1-e),c=r*(1-a*e),d=r*(1-(1-a)*e),p=n%6,v=[r,c,o,o,d,r][p],b=[d,r,r,c,o,o][p],C=[o,o,d,r,r,c][p];return{r:v*255,g:b*255,b:C*255}}function Gm(t,e,r,n){var a=[en(Math.round(t).toString(16)),en(Math.round(e).toString(16)),en(Math.round(r).toString(16))];return n&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function KC(t,e,r,n,a){var o=[en(Math.round(t).toString(16)),en(Math.round(e).toString(16)),en(Math.round(r).toString(16)),en(Km(n))];return a&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function zm(t,e,r,n){var a=[en(Km(n)),en(Math.round(t).toString(16)),en(Math.round(e).toString(16)),en(Math.round(r).toString(16))];return a.join("")}Ne.equals=function(t,e){return!t||!e?!1:Ne(t).toRgbString()==Ne(e).toRgbString()},Ne.random=function(){return Ne.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function XC(t,e){e=e===0?0:e||10;var r=Ne(t).toHsl();return r.s-=e/100,r.s=Mu(r.s),Ne(r)}function VC(t,e){e=e===0?0:e||10;var r=Ne(t).toHsl();return r.s+=e/100,r.s=Mu(r.s),Ne(r)}function QC(t){return Ne(t).desaturate(100)}function JC(t,e){e=e===0?0:e||10;var r=Ne(t).toHsl();return r.l+=e/100,r.l=Mu(r.l),Ne(r)}function ZC(t,e){e=e===0?0:e||10;var r=Ne(t).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(e/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(e/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(e/100)))),Ne(r)}function ew(t,e){e=e===0?0:e||10;var r=Ne(t).toHsl();return r.l-=e/100,r.l=Mu(r.l),Ne(r)}function tw(t,e){var r=Ne(t).toHsl(),n=(r.h+e)%360;return r.h=n<0?360+n:n,Ne(r)}function rw(t){var e=Ne(t).toHsl();return e.h=(e.h+180)%360,Ne(e)}function qm(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var r=Ne(t).toHsl(),n=[Ne(t)],a=360/e,o=1;o<e;o++)n.push(Ne({h:(r.h+o*a)%360,s:r.s,l:r.l}));return n}function nw(t){var e=Ne(t).toHsl(),r=e.h;return[Ne(t),Ne({h:(r+72)%360,s:e.s,l:e.l}),Ne({h:(r+216)%360,s:e.s,l:e.l})]}function iw(t,e,r){e=e||6,r=r||30;var n=Ne(t).toHsl(),a=360/r,o=[Ne(t)];for(n.h=(n.h-(a*e>>1)+720)%360;--e;)n.h=(n.h+a)%360,o.push(Ne(n));return o}function aw(t,e){e=e||6;for(var r=Ne(t).toHsv(),n=r.h,a=r.s,o=r.v,c=[],d=1/e;e--;)c.push(Ne({h:n,s:a,v:o})),o=(o+d)%1;return c}Ne.mix=function(t,e,r){r=r===0?0:r||50;var n=Ne(t).toRgb(),a=Ne(e).toRgb(),o=r/100,c={r:(a.r-n.r)*o+n.r,g:(a.g-n.g)*o+n.g,b:(a.b-n.b)*o+n.b,a:(a.a-n.a)*o+n.a};return Ne(c)},Ne.readability=function(t,e){var r=Ne(t),n=Ne(e);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},Ne.isReadable=function(t,e,r){var n=Ne.readability(t,e),a,o;switch(o=!1,a=fw(r),a.level+a.size){case"AAsmall":case"AAAlarge":o=n>=4.5;break;case"AAlarge":o=n>=3;break;case"AAAsmall":o=n>=7;break}return o},Ne.mostReadable=function(t,e,r){var n=null,a=0,o,c,d,p;r=r||{},c=r.includeFallbackColors,d=r.level,p=r.size;for(var v=0;v<e.length;v++)o=Ne.readability(t,e[v]),o>a&&(a=o,n=Ne(e[v]));return Ne.isReadable(t,n,{level:d,size:p})||!c?n:(r.includeFallbackColors=!1,Ne.mostReadable(t,["#fff","#000"],r))};var Kc=Ne.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},sw=Ne.hexNames=ow(Kc);function ow(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}function Ym(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Tt(t,e){uw(t)&&(t="100%");var r=lw(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function Mu(t){return Math.min(1,Math.max(0,t))}function Fr(t){return parseInt(t,16)}function uw(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function lw(t){return typeof t=="string"&&t.indexOf("%")!=-1}function en(t){return t.length==1?"0"+t:""+t}function Xs(t){return t<=1&&(t=t*100+"%"),t}function Km(t){return Math.round(parseFloat(t)*255).toString(16)}function Xm(t){return Fr(t)/255}var tn=(function(){var t="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",r="(?:"+e+")|(?:"+t+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",a="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function $n(t){return!!tn.CSS_UNIT.exec(t)}function cw(t){t=t.replace(jC,"").replace(WC,"").toLowerCase();var e=!1;if(Kc[t])t=Kc[t],e=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=tn.rgb.exec(t))?{r:r[1],g:r[2],b:r[3]}:(r=tn.rgba.exec(t))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=tn.hsl.exec(t))?{h:r[1],s:r[2],l:r[3]}:(r=tn.hsla.exec(t))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=tn.hsv.exec(t))?{h:r[1],s:r[2],v:r[3]}:(r=tn.hsva.exec(t))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=tn.hex8.exec(t))?{r:Fr(r[1]),g:Fr(r[2]),b:Fr(r[3]),a:Xm(r[4]),format:e?"name":"hex8"}:(r=tn.hex6.exec(t))?{r:Fr(r[1]),g:Fr(r[2]),b:Fr(r[3]),format:e?"name":"hex"}:(r=tn.hex4.exec(t))?{r:Fr(r[1]+""+r[1]),g:Fr(r[2]+""+r[2]),b:Fr(r[3]+""+r[3]),a:Xm(r[4]+""+r[4]),format:e?"name":"hex8"}:(r=tn.hex3.exec(t))?{r:Fr(r[1]+""+r[1]),g:Fr(r[2]+""+r[2]),b:Fr(r[3]+""+r[3]),format:e?"name":"hex"}:!1}function fw(t){var e,r;return t=t||{level:"AA",size:"small"},e=(t.level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),e!=="AA"&&e!=="AAA"&&(e="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:e,size:r}}function Ma(t,e){e===void 0&&(e={});var r=e.insertAt;if(!(!t||typeof document>"u")){var n=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",r==="top"&&n.firstChild?n.insertBefore(a,n.firstChild):n.appendChild(a),a.styleSheet?a.styleSheet.cssText=t:a.appendChild(document.createTextNode(t))}}var dw=".vc-checkerboard{background-size:contain;bottom:0;left:0;position:absolute;right:0;top:0}";Ma(dw);function Q(t,e,r,n,a,o,c,d){var p=typeof t=="function"?t.options:t;return e&&(p.render=e,p.staticRenderFns=r,p._compiled=!0),n&&(p.functional=!0),{exports:t,options:p}}let Xc={};const hw={name:"Checkboard",props:{size:{type:[Number,String],default:8},white:{type:String,default:"#fff"},grey:{type:String,default:"#e6e6e6"}},computed:{bgStyle(){return{"background-image":"url("+mw(this.white,this.grey,this.size)+")"}}}};function pw(t,e,r){if(typeof document>"u")return null;var n=document.createElement("canvas");n.width=n.height=r*2;var a=n.getContext("2d");return a?(a.fillStyle=t,a.fillRect(0,0,n.width,n.height),a.fillStyle=e,a.fillRect(0,0,r,r),a.translate(r,r),a.fillRect(0,0,r,r),n.toDataURL()):null}function mw(t,e,r){var n=t+","+e+","+r;if(Xc[n])return Xc[n];var a=pw(t,e,r);return Xc[n]=a,a}var vw=function(){var e=this,r=e._self._c;return r("div",{staticClass:"vc-checkerboard",style:e.bgStyle})},gw=[],_w=Q(hw,vw,gw,!1),Vm=_w.exports,bw=".vc-alpha,.vc-alpha-checkboard-wrap{bottom:0;left:0;position:absolute;right:0;top:0}.vc-alpha-checkboard-wrap{overflow:hidden}.vc-alpha-gradient{bottom:0;left:0;position:absolute;right:0;top:0}.vc-alpha-container{cursor:pointer;height:100%;margin:0 3px;position:relative;z-index:2}.vc-alpha-pointer{position:absolute;z-index:2}.vc-alpha-picker{background:#fff;border-radius:1px;box-shadow:0 0 2px rgba(0,0,0,.6);cursor:pointer;height:8px;margin-top:1px;transform:translateX(-2px);width:4px}";Ma(bw);const yw={name:"Alpha",props:{value:Object,onChange:Function},components:{checkboard:Vm},computed:{colors(){return this.value},gradientColor(){var t=this.colors.rgba,e=[t.r,t.g,t.b].join(",");return"linear-gradient(to right, rgba("+e+", 0) 0%, rgba("+e+", 1) 100%)"}},methods:{handleChange(t,e){!e&&t.preventDefault();var r=this.$refs.container;if(r){var n=r.clientWidth,a=r.getBoundingClientRect().left+window.pageXOffset,o=t.pageX||(t.touches?t.touches[0].pageX:0),c=o-a,d;c<0?d=0:c>n?d=1:d=Math.round(c*100/n)/100,this.colors.a!==d&&this.$emit("change",{h:this.colors.hsl.h,s:this.colors.hsl.s,l:this.colors.hsl.l,a:d,source:"rgba"})}},handleMouseDown(t){this.handleChange(t,!0),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp(){this.unbindEventListeners()},unbindEventListeners(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}};var kw=function(){var e=this,r=e._self._c;return r("div",{staticClass:"vc-alpha"},[r("div",{staticClass:"vc-alpha-checkboard-wrap"},[r("checkboard")],1),e._v(" "),r("div",{staticClass:"vc-alpha-gradient",style:{background:e.gradientColor}}),e._v(" "),r("div",{ref:"container",staticClass:"vc-alpha-container",on:{mousedown:e.handleMouseDown,touchmove:e.handleChange,touchstart:e.handleChange}},[r("div",{staticClass:"vc-alpha-pointer",style:{left:e.colors.a*100+"%"}},[r("div",{staticClass:"vc-alpha-picker"})])])])},Ew=[],Tw=Q(yw,kw,Ew,!1),Cw=Tw.exports,ww=".vc-editable-input{position:relative}.vc-input__input{border:0;outline:none;padding:0}.vc-input__label{text-transform:capitalize}";Ma(ww);const Sw={name:"editableInput",props:{label:String,labelText:String,desc:String,value:[String,Number],max:Number,min:Number,arrowOffset:{type:Number,default:1}},computed:{val:{get(){return this.value},set(t){if(this.max!==void 0&&+t>this.max)this.$refs.input.value=this.max;else return t}},labelId(){return`input__label__${this.label}__${Math.random().toString().slice(2,5)}`},labelSpanText(){return this.labelText||this.label}},methods:{update(t){this.handleChange(t.target.value)},handleChange(t){let e={};e[this.label]=t,e.hex===void 0&&e["#"]===void 0?this.$emit("change",e):t.length>5&&this.$emit("change",e)},handleKeyDown(t){let e=this.val,r=Number(e);if(r){let n=this.arrowOffset||1;t.keyCode===38&&(e=r+n,this.handleChange(e),t.preventDefault()),t.keyCode===40&&(e=r-n,this.handleChange(e),t.preventDefault())}}}};var xw=function(){var e=this,r=e._self._c;return r("div",{staticClass:"vc-editable-input"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.val,expression:"val"}],ref:"input",staticClass:"vc-input__input",attrs:{"aria-labelledby":e.labelId},domProps:{value:e.val},on:{keydown:e.handleKeyDown,input:[function(n){n.target.composing||(e.val=n.target.value)},e.update]}}),e._v(" "),r("span",{staticClass:"vc-input__label",attrs:{for:e.label,id:e.labelId}},[e._v(e._s(e.labelSpanText))]),e._v(" "),r("span",{staticClass:"vc-input__desc"},[e._v(e._s(e.desc))])])},Aw=[],Ow=Q(Sw,xw,Aw,!1),Nw=Ow.exports,Pw=".vc-hue{border-radius:2px;bottom:0;left:0;position:absolute;right:0;top:0}.vc-hue--horizontal{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.vc-hue--vertical{background:linear-gradient(0deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.vc-hue-container{cursor:pointer;height:100%;margin:0 2px;position:relative}.vc-hue-pointer{position:absolute;z-index:2}.vc-hue-picker{background:#fff;border-radius:1px;box-shadow:0 0 2px rgba(0,0,0,.6);cursor:pointer;height:8px;margin-top:1px;transform:translateX(-2px);width:4px}";Ma(Pw);const Iw={name:"Hue",props:{value:Object,direction:{type:String,default:"horizontal"}},data(){return{oldHue:0,pullDirection:""}},computed:{colors(){const t=this.value.hsl.h;return t!==0&&t-this.oldHue>0&&(this.pullDirection="right"),t!==0&&t-this.oldHue<0&&(this.pullDirection="left"),this.oldHue=t,this.value},directionClass(){return{"vc-hue--horizontal":this.direction==="horizontal","vc-hue--vertical":this.direction==="vertical"}},pointerTop(){return this.direction==="vertical"?this.colors.hsl.h===0&&this.pullDirection==="right"?0:-(this.colors.hsl.h*100/360)+100+"%":0},pointerLeft(){return this.direction==="vertical"?0:this.colors.hsl.h===0&&this.pullDirection==="right"?"100%":this.colors.hsl.h*100/360+"%"}},methods:{handleChange(t,e){!e&&t.preventDefault();var r=this.$refs.container;if(r){var n=r.clientWidth,a=r.clientHeight,o=r.getBoundingClientRect().left+window.pageXOffset,c=r.getBoundingClientRect().top+window.pageYOffset,d=t.pageX||(t.touches?t.touches[0].pageX:0),p=t.pageY||(t.touches?t.touches[0].pageY:0),v=d-o,b=p-c,C,T;this.direction==="vertical"?(b<0?C=360:b>a?C=0:(T=-(b*100/a)+100,C=360*T/100),this.colors.hsl.h!==C&&this.$emit("change",{h:C,s:this.colors.hsl.s,l:this.colors.hsl.l,a:this.colors.hsl.a,source:"hsl"})):(v<0?C=0:v>n?C=360:(T=v*100/n,C=360*T/100),this.colors.hsl.h!==C&&this.$emit("change",{h:C,s:this.colors.hsl.s,l:this.colors.hsl.l,a:this.colors.hsl.a,source:"hsl"}))}},handleMouseDown(t){this.handleChange(t,!0),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp(t){this.unbindEventListeners()},unbindEventListeners(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}};var Lw=function(){var e=this,r=e._self._c;return r("div",{class:["vc-hue",e.directionClass]},[r("div",{ref:"container",staticClass:"vc-hue-container",attrs:{role:"slider","aria-valuenow":e.colors.hsl.h,"aria-valuemin":"0","aria-valuemax":"360"},on:{mousedown:e.handleMouseDown,touchmove:e.handleChange,touchstart:e.handleChange}},[r("div",{staticClass:"vc-hue-pointer",style:{top:e.pointerTop,left:e.pointerLeft},attrs:{role:"presentation"}},[r("div",{staticClass:"vc-hue-picker"})])])])},Rw=[],Dw=Q(Iw,Lw,Rw,!1),Mw=Dw.exports,Vc,Qm;function $w(){if(Qm)return Vc;Qm=1,Vc=t;function t(e,r,n){return r<n?e<r?r:e>n?n:e:e<n?n:e>r?r:e}return Vc}var Fw=$w(),Qc=Da(Fw),Jc,Jm;function Bw(){if(Jm)return Jc;Jm=1;var t="Expected a function",e=NaN,r="[object Symbol]",n=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt,p=typeof Lu=="object"&&Lu&&Lu.Object===Object&&Lu,v=typeof self=="object"&&self&&self.Object===Object&&self,b=p||v||Function("return this")(),C=Object.prototype,T=C.toString,A=Math.max,F=Math.min,G=function(){return b.Date.now()};function j(B,q,le){var ae,Z,ne,U,N,W,E=0,ee=!1,V=!1,fe=!0;if(typeof B!="function")throw new TypeError(t);q=R(q)||0,x(le)&&(ee=!!le.leading,V="maxWait"in le,ne=V?A(R(le.maxWait)||0,q):ne,fe="trailing"in le?!!le.trailing:fe);function he(Se){var Le=ae,xe=Z;return ae=Z=void 0,E=Se,U=B.apply(xe,Le),U}function Ie(Se){return E=Se,N=setTimeout(We,q),ee?he(Se):U}function Ge(Se){var Le=Se-W,xe=Se-E,Ee=q-Le;return V?F(Ee,ne-xe):Ee}function He(Se){var Le=Se-W,xe=Se-E;return W===void 0||Le>=q||Le<0||V&&xe>=ne}function We(){var Se=G();if(He(Se))return at(Se);N=setTimeout(We,Ge(Se))}function at(Se){return N=void 0,fe&&ae?he(Se):(ae=Z=void 0,U)}function Ve(){N!==void 0&&clearTimeout(N),E=0,ae=W=Z=N=void 0}function Pe(){return N===void 0?U:at(G())}function Te(){var Se=G(),Le=He(Se);if(ae=arguments,Z=this,W=Se,Le){if(N===void 0)return Ie(W);if(V)return N=setTimeout(We,q),he(W)}return N===void 0&&(N=setTimeout(We,q)),U}return Te.cancel=Ve,Te.flush=Pe,Te}function O(B,q,le){var ae=!0,Z=!0;if(typeof B!="function")throw new TypeError(t);return x(le)&&(ae="leading"in le?!!le.leading:ae,Z="trailing"in le?!!le.trailing:Z),j(B,q,{leading:ae,maxWait:q,trailing:Z})}function x(B){var q=typeof B;return!!B&&(q=="object"||q=="function")}function S(B){return!!B&&typeof B=="object"}function P(B){return typeof B=="symbol"||S(B)&&T.call(B)==r}function R(B){if(typeof B=="number")return B;if(P(B))return e;if(x(B)){var q=typeof B.valueOf=="function"?B.valueOf():B;B=x(q)?q+"":q}if(typeof B!="string")return B===0?B:+B;B=B.replace(n,"");var le=o.test(B);return le||c.test(B)?d(B.slice(2),le?2:8):a.test(B)?e:+B}return Jc=O,Jc}var Hw=Bw(),Uw=Da(Hw),jw=".vc-saturation,.vc-saturation--black,.vc-saturation--white{bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0}.vc-saturation--white{background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.vc-saturation--black{background:linear-gradient(0deg,#000,transparent)}.vc-saturation-pointer{cursor:pointer;position:absolute}.vc-saturation-circle{border-radius:50%;box-shadow:0 0 0 1.6px #fff,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);cursor:pointer;height:4px;transform:translate(-2px,-2px);width:4px}";Ma(jw);const Ww={name:"Saturation",props:{value:Object},computed:{colors(){return this.value},bgColor(){return`hsl(${this.colors.hsv.h}, 100%, 50%)`},pointerTop(){return-(this.colors.hsv.v*100)+1+100+"%"},pointerLeft(){return this.colors.hsv.s*100+"%"}},beforeDestroy(){this.unbindEventListeners()},methods:{throttle:Uw((t,e)=>{t(e)},20,{leading:!0,trailing:!1}),handleChange(t,e){!e&&t.preventDefault();var r=this.$refs.container;if(r){var n=r.clientWidth,a=r.clientHeight,o=r.getBoundingClientRect().left+window.pageXOffset,c=r.getBoundingClientRect().top+window.pageYOffset,d=t.pageX||(t.touches?t.touches[0].pageX:0),p=t.pageY||(t.touches?t.touches[0].pageY:0),v=Qc(d-o,0,n),b=Qc(p-c,0,a),C=v/n,T=Qc(-(b/a)+1,0,1);this.throttle(this.onChange,{h:this.colors.hsv.h,s:C,v:T,a:this.colors.hsv.a,source:"hsva"})}},onChange(t){this.$emit("change",t)},handleMouseDown(t){window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp(t){this.unbindEventListeners()},unbindEventListeners(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}};var Gw=function(){var e=this,r=e._self._c;return r("div",{ref:"container",staticClass:"vc-saturation",style:{background:e.bgColor},on:{mousedown:e.handleMouseDown,touchmove:e.handleChange,touchstart:e.handleChange}},[r("div",{staticClass:"vc-saturation--white"}),e._v(" "),r("div",{staticClass:"vc-saturation--black"}),e._v(" "),r("div",{staticClass:"vc-saturation-pointer",style:{top:e.pointerTop,left:e.pointerLeft}},[r("div",{staticClass:"vc-saturation-circle"})])])},zw=[],qw=Q(Ww,Gw,zw,!1),Yw=qw.exports;function Zc(t,e){var r=t&&t.a,n;t&&t.hsl?n=Ne(t.hsl):t&&t.hex&&t.hex.length>0?n=Ne(t.hex):t&&t.hsv?n=Ne(t.hsv):t&&t.rgba?n=Ne(t.rgba):t&&t.rgb?n=Ne(t.rgb):n=Ne(t),n&&(n._a===void 0||n._a===null)&&n.setAlpha(r||1);var a=n.toHsl(),o=n.toHsv();return a.s===0&&(o.h=a.h=t.h||t.hsl&&t.hsl.h||e||0),{hsl:a,hex:n.toHexString().toUpperCase(),hex8:n.toHex8String().toUpperCase(),rgba:n.toRgb(),hsv:o,oldHue:t.h||e||a.h,source:t.source,a:t.a||n.getAlpha()}}var Kw={props:["value"],data(){return{val:Zc(this.value)}},computed:{colors:{get(){return this.val},set(t){this.val=t,this.$emit("input",t)}}},watch:{value(t){this.val=Zc(t)}},methods:{colorChange(t,e){this.oldHue=this.colors.hsl.h,this.colors=Zc(t,e||this.oldHue)},isValidHex(t){return Ne(t).isValid()},simpleCheckForValidColor(t){for(var e=["r","g","b","a","h","s","l","v"],r=0,n=0,a=0;a<e.length;a++){var o=e[a];t[o]&&(r++,isNaN(t[o])||n++)}if(r===n)return t},paletteUpperCase(t){return t.map(e=>e.toUpperCase())},isTransparent(t){return Ne(t).getAlpha()===0}}};const Xw={name:"ColorPicker",components:{Saturation:Yw,Hue:Mw,Alpha:Cw,EditableInput:Nw,Checkboard:Vm},mixins:[{...Kw,computed:{colors:{get(){return this.val},set(t){if(this.val=t,this.disableSaturation&&t.source==="hsl"&&(t.hsl.s!==1||t.hsl.l!==.5)){this.colorChange({h:t.hsl.h,s:1,l:.5,source:"hsl"});return}const e=Zm(this.keywordField)===t.hex8;e&&!tS(this.keywordField)?this.$emit("input",this.keywordField):this.$emit("input",Vw(t,this.index)),e||(this.keywordField=t.a<1?t.hex8:t.hex)}}}}],props:{value:{type:String,default:""},allowEmpty:{type:Boolean,default:!0},disableAlpha:{type:Boolean,default:!1},disableFields:{type:Boolean,default:!1},disableSaturation:{type:Boolean,default:!1}},data:({value:t})=>({index:Qw(t),keywordField:ev(t)||tv(t)?eS(t)?Zm(t):Zw(t):t}),computed:{hsl(){const{h:t,s:e,l:r}=this.colors.hsl;return{h:t.toFixed(),s:`${(e*100).toFixed()}%`,l:`${(r*100).toFixed()}%`}},isValidColor(){return Ki(this.value)||""}},created(){this.current=this.value},mounted(){ke.on(this.$el,"pointerdown",t=>t.target.setPointerCapture(t.pointerId)),ke.on(this.$el,"pointerup pointercancel",t=>t.target.releasePointerCapture(t.pointerId))},methods:{toRgb:Jw,inputChange(t){if(t.r||t.g||t.b||t.a)this.colorChange({r:t.r||this.colors.rgba.r,g:t.g||this.colors.rgba.g,b:t.b||this.colors.rgba.b,a:t.a||this.colors.rgba.a,source:"rgba"});else if(t.h||t.s||t.l){const e=t.s?t.s.replace("%","")/100:this.colors.hsl.s,r=t.l?t.l.replace("%","")/100:this.colors.hsl.l;this.colorChange({h:t.h||this.colors.hsl.h,s:e,l:r,source:"hsl"})}},keywordChange({target:{value:t}}){this.keywordField=t,this.colorChange(t)},setEmpty(){this.$emit("input",void 0),this.keywordField=""}}};function Vw(t,e){return t=Ne(t.hsv),e===0&&t.getAlpha()===1?t.toHexString().toUpperCase():e<2?t.toRgbString():t.toHslString()}function Qw(t){if(t&&Ki(t)){if(tv(t))return 2;if(ev(t))return 1}return 0}function Jw(t){return Ne(t).toRgbString()}function Zw(t){return Ne(t).toHexString().toUpperCase()}function Zm(t){return Ne(t).toHex8String().toUpperCase()}function Ki(t){return Ne(t).isValid()}function eS(t){return Ki(t)&&Ne(t).getAlpha()<1}function tS(t){return Ki(t)&&t.match(/^#(([\da-f]{2}){2,4}|[\da-f]{3})$/i)}function ev(t){return Ki(t)&&t.match(/^rgb/i)}function tv(t){return Ki(t)&&t.match(/^hsl/i)}var rS=function(){var e=this,r=e._self._c;return r("div",{class:["vc-yootheme"]},[e.disableSaturation?e._e():r("div",{staticClass:"vc-yootheme-saturation-wrap"},[r("Saturation",{attrs:{value:e.colors},on:{change:e.colorChange}})],1),e._v(" "),r("div",{staticClass:"vc-yootheme-controls"},[r("div",{staticClass:"vc-yootheme-sliders"},[r("div",{staticClass:"vc-yootheme-hue-wrap"},[r("Hue",{attrs:{value:e.colors},on:{change:e.colorChange}})],1),e._v(" "),e.disableAlpha?e._e():r("div",{staticClass:"vc-yootheme-alpha-wrap"},[r("Alpha",{attrs:{value:e.colors},on:{change:e.colorChange}})],1)]),e._v(" "),r("div",{staticClass:"vc-yootheme-color-wrap"},[r("div",{staticClass:"vc-yootheme-active-color",class:{"vc-yootheme-nocolor":!e.isValidColor},style:{backgroundColor:e.toRgb(e.colors.hex8)}}),e._v(" "),r("div",{staticClass:"vc-yootheme-previous-color",class:{"vc-yootheme-nocolor":!e.current},style:{backgroundColor:e.toRgb(e.current)},on:{click:function(n){e.current?e.colorChange(e.current):e.setEmpty()}}}),e._v(" "),r("Checkboard")],1),e._v(" "),e.allowEmpty&&e.disableFields?r("div",{staticClass:"vc-yootheme-nocolor-box vc-yootheme-nocolor",on:{click:e.setEmpty}}):e._e()]),e._v(" "),e.disableFields?e._e():r("div",{staticClass:"vc-yootheme-fields",on:{keypress:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:e.$emit("resolve")}}},[e.index===0?[r("div",{staticClass:"vc-yootheme-field",on:{"!input":function(n){return e.keywordChange.apply(null,arguments)}}},[r("EditableInput",{attrs:{value:e.keywordField,label:e.$t("hex / keyword")}})],1)]:e._e(),e._v(" "),e.index===1?[r("div",{staticClass:"vc-yootheme-field"},[r("EditableInput",{attrs:{value:e.isValidColor&&e.colors.rgba.r,label:e.$t("r")},on:{change:e.inputChange}})],1),e._v(" "),r("div",{staticClass:"vc-yootheme-field"},[r("EditableInput",{attrs:{value:e.isValidColor&&e.colors.rgba.g,label:e.$t("g")},on:{change:e.inputChange}})],1),e._v(" "),r("div",{staticClass:"vc-yootheme-field"},[r("EditableInput",{attrs:{value:e.isValidColor&&e.colors.rgba.b,label:e.$t("b")},on:{change:e.inputChange}})],1),e._v(" "),e.disableAlpha?e._e():r("div",{staticClass:"vc-yootheme-field"},[r("EditableInput",{attrs:{value:e.isValidColor&&e.colors.a,"arrow-offset":.01,max:1,label:e.$t("a")},on:{change:e.inputChange}})],1)]:e._e(),e._v(" "),e.index===2?[r("div",{staticClass:"vc-yootheme-field"},[r("EditableInput",{attrs:{value:e.isValidColor&&e.hsl.h,label:e.$t("h")},on:{change:e.inputChange}})],1),e._v(" "),r("div",{staticClass:"vc-yootheme-field"},[r("EditableInput",{attrs:{value:e.isValidColor&&e.hsl.s,label:e.$t("s")},on:{change:e.inputChange}})],1),e._v(" "),r("div",{staticClass:"vc-yootheme-field"},[r("EditableInput",{attrs:{value:e.isValidColor&&e.hsl.l,label:e.$t("l")},on:{change:e.inputChange}})],1),e._v(" "),e.disableAlpha?e._e():r("div",{staticClass:"vc-yootheme-field"},[r("EditableInput",{attrs:{value:e.isValidColor&&e.colors.a,"arrow-offset":.01,max:1,label:e.$t("a")},on:{change:e.inputChange}})],1)]:e._e(),e._v(" "),r("div",{on:{click:function(n){n.preventDefault(),e.index=(e.index+1)%3}}},[r("div",{staticClass:"vc-yootheme-toggle-icon"},[r("svg",{attrs:{width:"10",height:"18",viewbox:"0 0 10 18"}},[r("path",{attrs:{fill:"#333",d:"M5,15.17 L1.83,12 L0.42,13.41 L5,18 L9.59,13.41 L8.17,12 L5,15.17 Z M5,2.83 L8.17,6 L9.58,4.59 L5,0 L0.41,4.59 L1.83,6 L5,2.83 Z"}})])])]),e._v(" "),e.allowEmpty?r("div",{staticClass:"vc-yootheme-nocolor-box vc-yootheme-nocolor",on:{click:e.setEmpty}}):e._e()],2)])},nS=[],iS=Q(Xw,rS,nS,!1),ef=iS.exports;const $u={none:"",inset:"",offsetX:"1px",offsetY:"1px",blur:"0",spread:"0",color:""},aS={components:{ColorPicker:ef},props:{value:{type:String,default:""},fields:{type:Array,default:()=>["inset","offsetX","offsetY","blur","spread","color"]}},computed:{shadow(){return rv(this.value)}},methods:{hasField(t){return this.fields.includes(t)},input(){this.$emit("input",this.shadow.color&&this.fields.map(t=>this.shadow[t]||$u[t]).join(" ").trim()||"none")}}};function rv(t=""){const e={...$u},r=t.split(/,(?![^(]*\))/)[0].split(/ +(?![^(]*\))/);return r[0]==="none"&&(e.none=r.shift()),r[0]==="inset"&&(e.inset=r.shift()),e.color=r.pop()||$u.color,["offsetX","offsetY","blur","spread"].forEach(n=>e[n]=r.shift()||$u[n]),e}var sS=function(){var e=this,r=e._self._c;return r("div",[r("div",{staticClass:"uk-form-stacked uk-grid uk-grid-small uk-child-width-expand uk-flex-nowrap uk-margin-small-bottom yo-colorpicker-boxshadow"},[e.hasField("offsetX")?r("div",[r("div",{staticClass:"uk-panel"},[r("label",{staticClass:"uk-form-label",attrs:{for:"form-boxshadow-offset-x"}},[e._v(e._s(e.$t("X")))]),e._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:e.shadow.offsetX,expression:"shadow.offsetX"}],staticClass:"uk-input uk-form-small",attrs:{id:"form-boxshadow-offset-x",type:"text"},domProps:{value:e.shadow.offsetX},on:{input:[function(n){n.target.composing||e.$set(e.shadow,"offsetX",n.target.value)},e.input]}})])]):e._e(),e._v(" "),e.hasField("offsetY")?r("div",[r("div",{staticClass:"uk-panel"},[r("label",{staticClass:"uk-form-label",attrs:{for:"form-boxshadow-offset-y"}},[e._v(e._s(e.$t("Y")))]),e._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:e.shadow.offsetY,expression:"shadow.offsetY"}],staticClass:"uk-input uk-form-small",attrs:{id:"form-boxshadow-offset-y",type:"text"},domProps:{value:e.shadow.offsetY},on:{input:[function(n){n.target.composing||e.$set(e.shadow,"offsetY",n.target.value)},e.input]}})])]):e._e(),e._v(" "),e.hasField("blur")?r("div",[r("div",{staticClass:"uk-panel"},[r("label",{staticClass:"uk-form-label",attrs:{for:"form-boxshadow-blur"}},[e._v(e._s(e.$t("Blur")))]),e._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:e.shadow.blur,expression:"shadow.blur"}],staticClass:"uk-input uk-form-small",attrs:{id:"form-boxshadow-blur",type:"text"},domProps:{value:e.shadow.blur},on:{input:[function(n){n.target.composing||e.$set(e.shadow,"blur",n.target.value)},e.input]}})])]):e._e(),e._v(" "),e.hasField("spread")?r("div",[r("div",{staticClass:"uk-panel"},[r("label",{staticClass:"uk-form-label",attrs:{for:"form-boxshadow-spread"}},[e._v(e._s(e.$t("Spread")))]),e._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:e.shadow.spread,expression:"shadow.spread"}],staticClass:"uk-input uk-form-small",attrs:{id:"form-boxshadow-spread",type:"text"},domProps:{value:e.shadow.spread},on:{input:[function(n){n.target.composing||e.$set(e.shadow,"spread",n.target.value)},e.input]}})])]):e._e(),e._v(" "),e.hasField("inset")?r("div",[r("div",{staticClass:"uk-panel uk-text-center"},[r("label",{staticClass:"uk-form-label",attrs:{for:"form-boxshadow-inset"}},[e._v(e._s(e.$t("Inset")))]),e._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:e.shadow.inset,expression:"shadow.inset"}],staticClass:"uk-checkbox uk-margin-remove",attrs:{id:"form-boxshadow-inset","true-value":"inset","false-value":"",type:"checkbox"},domProps:{checked:Array.isArray(e.shadow.inset)?e._i(e.shadow.inset,null)>-1:e._q(e.shadow.inset,"inset")},on:{change:[function(n){var a=e.shadow.inset,o=n.target,c=o.checked?"inset":"";if(Array.isArray(a)){var d=null,p=e._i(a,d);o.checked?p<0&&e.$set(e.shadow,"inset",a.concat([d])):p>-1&&e.$set(e.shadow,"inset",a.slice(0,p).concat(a.slice(p+1)))}else e.$set(e.shadow,"inset",c)},e.input]}})])]):e._e()]),e._v(" "),e.hasField("color")?r("ColorPicker",{on:{input:e.input},model:{value:e.shadow.color,callback:function(n){e.$set(e.shadow,"color",n)},expression:"shadow.color"}}):e._e()],1)},oS=[],uS=Q(aS,sS,oS,!1),nv=uS.exports;const lS={data:()=>({hover:!1})};var cS=function(){var e=this,r=e._self._c;return r("div",{class:{"uk-dragover":e.hover},on:{dragenter:function(n){n.stopPropagation(),n.preventDefault()},dragover:function(n){n.stopPropagation(),n.preventDefault(),e.hover=!0},dragleave:function(n){n.stopPropagation(),n.preventDefault(),e.hover=!1},drop:function(n){n.stopPropagation(),n.preventDefault(),e.$emit("drop",n),e.hover=!1}}},[e._t("default")],2)},fS=[],dS=Q(lS,cS,fS,!1),tf=dS.exports;const hS={name:"Dropdown",provide(){return{Dropdown:this}},props:{component:{type:Function,required:!0},props:{type:Object,required:!0}},data:()=>({classes:""}),beforeDestroy(){this.dropdown?.$destroy(!0)},methods:{show(t,e={}){return ke.hasClass(t.nextElementSibling,"uk-dropdown")?(ke.trigger(t.nextElementSibling,"toggle"),Promise.resolve()):(this.classes=`uk-open ${e.classes??""}`,this.dropdown=nr.drop(ke.after(t,this.$el),{toggle:!1,mode:"click",animation:!1,stretch:"x",boundaryX:t,autoUpdate:!1,target:t,...e}),this.dropdown.targetEl=t,this.dropdown.show(),new Promise((r,n)=>{this.promise={resolve:r,reject:n}}))},hide(){return this.dropdown?.hide(!1)},hidden(){this.promise.resolve(),this.$nextTick(this.$destroy)},resolve(t){this.promise.resolve(t),this.hide()},reject(t){this.promise.reject(t),this.hide()}}};var pS=function(){var e=this,r=e._self._c;return r("div",{class:["uk-dropdown","uk-drop",e.classes],on:{show:function(n){return n.target!==n.currentTarget?null:e.$emit("show")},hide:function(n){return n.target!==n.currentTarget?null:e.$emit("hide")},hidden:function(n){return n.target!==n.currentTarget?null:e.hidden.apply(null,arguments)}}},[r(e.component,e._b({tag:"component",on:{resolve:e.resolve,reject:e.reject}},"component",e.props,!1))],1)},mS=[],vS=Q(hS,pS,mS,!1),iv=vS.exports,av={exports:{}},Fu={exports:{}},gS=Fu.exports,sv;function En(){return sv||(sv=1,(function(t,e){(function(r,n){t.exports=n()})(gS,(function(){var r=navigator.userAgent,n=navigator.platform,a=/gecko\/\d/i.test(r),o=/MSIE \d/.test(r),c=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),d=/Edge\/(\d+)/.exec(r),p=o||c||d,v=p&&(o?document.documentMode||6:+(d||c)[1]),b=!d&&/WebKit\//.test(r),C=b&&/Qt\/\d+\.\d+/.test(r),T=!d&&/Chrome\/(\d+)/.exec(r),A=T&&+T[1],F=/Opera\//.test(r),G=/Apple Computer/.test(navigator.vendor),j=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),O=/PhantomJS/.test(r),x=G&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),S=/Android/.test(r),P=x||S||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),R=x||/Mac/.test(n),B=/\bCrOS\b/.test(r),q=/win/i.test(n),le=F&&r.match(/Version\/(\d*\.\d*)/);le&&(le=Number(le[1])),le&&le>=15&&(F=!1,b=!0);var ae=R&&(C||F&&(le==null||le<12.11)),Z=a||p&&v>=9;function ne(i){return new RegExp("(^|\\s)"+i+"(?:$|\\s)\\s*")}var U=function(i,s){var l=i.className,u=ne(s).exec(l);if(u){var f=l.slice(u.index+u[0].length);i.className=l.slice(0,u.index)+(f?u[1]+f:"")}};function N(i){for(var s=i.childNodes.length;s>0;--s)i.removeChild(i.firstChild);return i}function W(i,s){return N(i).appendChild(s)}function E(i,s,l,u){var f=document.createElement(i);if(l&&(f.className=l),u&&(f.style.cssText=u),typeof s=="string")f.appendChild(document.createTextNode(s));else if(s)for(var h=0;h<s.length;++h)f.appendChild(s[h]);return f}function ee(i,s,l,u){var f=E(i,s,l,u);return f.setAttribute("role","presentation"),f}var V;document.createRange?V=function(i,s,l,u){var f=document.createRange();return f.setEnd(u||i,l),f.setStart(i,s),f}:V=function(i,s,l){var u=document.body.createTextRange();try{u.moveToElementText(i.parentNode)}catch{return u}return u.collapse(!0),u.moveEnd("character",l),u.moveStart("character",s),u};function fe(i,s){if(s.nodeType==3&&(s=s.parentNode),i.contains)return i.contains(s);do if(s.nodeType==11&&(s=s.host),s==i)return!0;while(s=s.parentNode)}function he(i){var s=i.ownerDocument||i,l;try{l=i.activeElement}catch{l=s.body||null}for(;l&&l.shadowRoot&&l.shadowRoot.activeElement;)l=l.shadowRoot.activeElement;return l}function Ie(i,s){var l=i.className;ne(s).test(l)||(i.className+=(l?" ":"")+s)}function Ge(i,s){for(var l=i.split(" "),u=0;u<l.length;u++)l[u]&&!ne(l[u]).test(s)&&(s+=" "+l[u]);return s}var He=function(i){i.select()};x?He=function(i){i.selectionStart=0,i.selectionEnd=i.value.length}:p&&(He=function(i){try{i.select()}catch{}});function We(i){return i.display.wrapper.ownerDocument}function at(i){return Ve(i.display.wrapper)}function Ve(i){return i.getRootNode?i.getRootNode():i.ownerDocument}function Pe(i){return We(i).defaultView}function Te(i){var s=Array.prototype.slice.call(arguments,1);return function(){return i.apply(null,s)}}function Se(i,s,l){s||(s={});for(var u in i)i.hasOwnProperty(u)&&(l!==!1||!s.hasOwnProperty(u))&&(s[u]=i[u]);return s}function Le(i,s,l,u,f){s==null&&(s=i.search(/[^\s\u00a0]/),s==-1&&(s=i.length));for(var h=u||0,g=f||0;;){var _=i.indexOf(" ",h);if(_<0||_>=s)return g+(s-h);g+=_-h,g+=l-g%l,h=_+1}}var xe=function(){this.id=null,this.f=null,this.time=0,this.handler=Te(this.onTimeout,this)};xe.prototype.onTimeout=function(i){i.id=0,i.time<=+new Date?i.f():setTimeout(i.handler,i.time-+new Date)},xe.prototype.set=function(i,s){this.f=s;var l=+new Date+i;(!this.id||l<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,i),this.time=l)};function Ee(i,s){for(var l=0;l<i.length;++l)if(i[l]==s)return l;return-1}var Qe=50,ut={toString:function(){return"CodeMirror.Pass"}},dt={scroll:!1},Nt={origin:"*mouse"},ze={origin:"+move"};function tt(i,s,l){for(var u=0,f=0;;){var h=i.indexOf(" ",u);h==-1&&(h=i.length);var g=h-u;if(h==i.length||f+g>=s)return u+Math.min(g,s-f);if(f+=h-u,f+=l-f%l,u=h+1,f>=s)return u}}var lt=[""];function $t(i){for(;lt.length<=i;)lt.push(Ye(lt)+" ");return lt[i]}function Ye(i){return i[i.length-1]}function rt(i,s){for(var l=[],u=0;u<i.length;u++)l[u]=s(i[u],u);return l}function X(i,s,l){for(var u=0,f=l(s);u<i.length&&l(i[u])<=f;)u++;i.splice(u,0,s)}function me(){}function ie(i,s){var l;return Object.create?l=Object.create(i):(me.prototype=i,l=new me),s&&Se(s,l),l}var it=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ir(i){return/\w/.test(i)||i>"\x80"&&(i.toUpperCase()!=i.toLowerCase()||it.test(i))}function ei(i,s){return s?s.source.indexOf("\\w")>-1&&ir(i)?!0:s.test(i):ir(i)}function hc(i){for(var s in i)if(i.hasOwnProperty(s)&&i[s])return!1;return!0}var ti=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Ft(i){return i.charCodeAt(0)>=768&&ti.test(i)}function Ni(i,s,l){for(;(l<0?s>0:s<i.length)&&Ft(i.charAt(s));)s+=l;return s}function Pn(i,s,l){for(var u=s>l?-1:1;;){if(s==l)return s;var f=(s+l)/2,h=u<0?Math.ceil(f):Math.floor(f);if(h==s)return i(h)?s:l;i(h)?l=h:s=h+u}}function Pi(i,s,l,u){if(!i)return u(s,l,"ltr",0);for(var f=!1,h=0;h<i.length;++h){var g=i[h];(g.from<l&&g.to>s||s==l&&g.to==s)&&(u(Math.max(g.from,s),Math.min(g.to,l),g.level==1?"rtl":"ltr",h),f=!0)}f||u(s,l,"ltr")}var ka=null;function Ii(i,s,l){var u;ka=null;for(var f=0;f<i.length;++f){var h=i[f];if(h.from<s&&h.to>s)return f;h.to==s&&(h.from!=h.to&&l=="before"?u=f:ka=f),h.from==s&&(h.from!=h.to&&l!="before"?u=f:ka=f)}return u??ka}var Mp=(function(){var i="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",s="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function l(k){return k<=247?i.charAt(k):1424<=k&&k<=1524?"R":1536<=k&&k<=1785?s.charAt(k-1536):1774<=k&&k<=2220?"r":8192<=k&&k<=8203?"w":k==8204?"b":"L"}var u=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,f=/[stwN]/,h=/[LRr]/,g=/[Lb1n]/,_=/[1n]/;function y(k,L,$){this.level=k,this.from=L,this.to=$}return function(k,L){var $=L=="ltr"?"L":"R";if(k.length==0||L=="ltr"&&!u.test(k))return!1;for(var Y=k.length,z=[],te=0;te<Y;++te)z.push(l(k.charCodeAt(te)));for(var de=0,ge=$;de<Y;++de){var be=z[de];be=="m"?z[de]=ge:ge=be}for(var we=0,ye=$;we<Y;++we){var Oe=z[we];Oe=="1"&&ye=="r"?z[we]="n":h.test(Oe)&&(ye=Oe,Oe=="r"&&(z[we]="R"))}for(var Fe=1,De=z[0];Fe<Y-1;++Fe){var Je=z[Fe];Je=="+"&&De=="1"&&z[Fe+1]=="1"?z[Fe]="1":Je==","&&De==z[Fe+1]&&(De=="1"||De=="n")&&(z[Fe]=De),De=Je}for(var vt=0;vt<Y;++vt){var Vt=z[vt];if(Vt==",")z[vt]="N";else if(Vt=="%"){var At=void 0;for(At=vt+1;At<Y&&z[At]=="%";++At);for(var $r=vt&&z[vt-1]=="!"||At<Y&&z[At]=="1"?"1":"N",Sr=vt;Sr<At;++Sr)z[Sr]=$r;vt=At-1}}for(var Bt=0,xr=$;Bt<Y;++Bt){var rr=z[Bt];xr=="L"&&rr=="1"?z[Bt]="L":h.test(rr)&&(xr=rr)}for(var jt=0;jt<Y;++jt)if(f.test(z[jt])){var Ht=void 0;for(Ht=jt+1;Ht<Y&&f.test(z[Ht]);++Ht);for(var Rt=(jt?z[jt-1]:$)=="L",Ar=(Ht<Y?z[Ht]:$)=="L",qs=Rt==Ar?Rt?"L":"R":$,zi=jt;zi<Ht;++zi)z[zi]=qs;jt=Ht-1}for(var ur=[],Mn,Qt=0;Qt<Y;)if(g.test(z[Qt])){var Nm=Qt;for(++Qt;Qt<Y&&g.test(z[Qt]);++Qt);ur.push(new y(0,Nm,Qt))}else{var li=Qt,Pa=ur.length,Ia=L=="rtl"?1:0;for(++Qt;Qt<Y&&z[Qt]!="L";++Qt);for(var mr=li;mr<Qt;)if(_.test(z[mr])){li<mr&&(ur.splice(Pa,0,new y(1,li,mr)),Pa+=Ia);var Ys=mr;for(++mr;mr<Qt&&_.test(z[mr]);++mr);ur.splice(Pa,0,new y(2,Ys,mr)),Pa+=Ia,li=mr}else++mr;li<Qt&&ur.splice(Pa,0,new y(1,li,Qt))}return L=="ltr"&&(ur[0].level==1&&(Mn=k.match(/^\s+/))&&(ur[0].from=Mn[0].length,ur.unshift(new y(0,0,Mn[0].length))),Ye(ur).level==1&&(Mn=k.match(/\s+$/))&&(Ye(ur).to-=Mn[0].length,ur.push(new y(0,Y-Mn[0].length,Y)))),L=="rtl"?ur.reverse():ur}})();function nt(i,s){var l=i.order;return l==null&&(l=i.order=Mp(i.text,s)),l}var pc=[],$e=function(i,s,l){if(i.addEventListener)i.addEventListener(s,l,!1);else if(i.attachEvent)i.attachEvent("on"+s,l);else{var u=i._handlers||(i._handlers={});u[s]=(u[s]||pc).concat(l)}};function ri(i,s){return i._handlers&&i._handlers[s]||pc}function ar(i,s,l){if(i.removeEventListener)i.removeEventListener(s,l,!1);else if(i.detachEvent)i.detachEvent("on"+s,l);else{var u=i._handlers,f=u&&u[s];if(f){var h=Ee(f,l);h>-1&&(u[s]=f.slice(0,h).concat(f.slice(h+1)))}}}function Pt(i,s){var l=ri(i,s);if(l.length)for(var u=Array.prototype.slice.call(arguments,2),f=0;f<l.length;++f)l[f].apply(null,u)}function It(i,s,l){return typeof s=="string"&&(s={type:s,preventDefault:function(){this.defaultPrevented=!0}}),Pt(i,l||s.type,i,s),Er(s)||s.codemirrorIgnore}function Jr(i){var s=i._handlers&&i._handlers.cursorActivity;if(s)for(var l=i.curOp.cursorActivityHandlers||(i.curOp.cursorActivityHandlers=[]),u=0;u<s.length;++u)Ee(l,s[u])==-1&&l.push(s[u])}function Dr(i,s){return ri(i,s).length>0}function hn(i){i.prototype.on=function(s,l){$e(this,s,l)},i.prototype.off=function(s,l){ar(this,s,l)}}function sr(i){i.preventDefault?i.preventDefault():i.returnValue=!1}function ks(i){i.stopPropagation?i.stopPropagation():i.cancelBubble=!0}function Er(i){return i.defaultPrevented!=null?i.defaultPrevented:i.returnValue==!1}function Li(i){sr(i),ks(i)}function ru(i){return i.target||i.srcElement}function pn(i){var s=i.which;return s==null&&(i.button&1?s=1:i.button&2?s=3:i.button&4&&(s=2)),R&&i.ctrlKey&&s==1&&(s=3),s}var $p=(function(){if(p&&v<9)return!1;var i=E("div");return"draggable"in i||"dragDrop"in i})(),Es;function mc(i){if(Es==null){var s=E("span","\u200B");W(i,E("span",[s,document.createTextNode("x")])),i.firstChild.offsetHeight!=0&&(Es=s.offsetWidth<=1&&s.offsetHeight>2&&!(p&&v<8))}var l=Es?E("span","\u200B"):E("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return l.setAttribute("cm-text",""),l}var nu;function Ri(i){if(nu!=null)return nu;var s=W(i,document.createTextNode("A\u062EA")),l=V(s,0,1).getBoundingClientRect(),u=V(s,1,2).getBoundingClientRect();return N(i),!l||l.left==l.right?!1:nu=u.right-l.right<3}var Zr=` b`.split(/\n/).length!=3?function(i){for(var s=0,l=[],u=i.length;s<=u;){var f=i.indexOf(` `,s);f==-1&&(f=i.length);var h=i.slice(s,i.charAt(f-1)=="\r"?f-1:f),g=h.indexOf("\r");g!=-1?(l.push(h.slice(0,g)),s+=g+1):(l.push(h),s=f+1)}return l}:function(i){return i.split(/\r\n?|\n/)},Di=window.getSelection?function(i){try{return i.selectionStart!=i.selectionEnd}catch{return!1}}:function(i){var s;try{s=i.ownerDocument.selection.createRange()}catch{}return!s||s.parentElement()!=i?!1:s.compareEndPoints("StartToEnd",s)!=0},vc=(function(){var i=E("div");return"oncopy"in i?!0:(i.setAttribute("oncopy","return;"),typeof i.oncopy=="function")})(),mn=null;function Fp(i){if(mn!=null)return mn;var s=W(i,E("span","x")),l=s.getBoundingClientRect(),u=V(s,0,1).getBoundingClientRect();return mn=Math.abs(l.left-u.left)>1}var Ts={},vn={};function gn(i,s){arguments.length>2&&(s.dependencies=Array.prototype.slice.call(arguments,2)),Ts[i]=s}function Ea(i,s){vn[i]=s}function Cs(i){if(typeof i=="string"&&vn.hasOwnProperty(i))i=vn[i];else if(i&&typeof i.name=="string"&&vn.hasOwnProperty(i.name)){var s=vn[i.name];typeof s=="string"&&(s={name:s}),i=ie(s,i),i.name=s.name}else{if(typeof i=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(i))return Cs("application/xml");if(typeof i=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(i))return Cs("application/json")}return typeof i=="string"?{name:i}:i||{name:"null"}}function ws(i,s){s=Cs(s);var l=Ts[s.name];if(!l)return ws(i,"text/plain");var u=l(i,s);if(Mi.hasOwnProperty(s.name)){var f=Mi[s.name];for(var h in f)f.hasOwnProperty(h)&&(u.hasOwnProperty(h)&&(u["_"+h]=u[h]),u[h]=f[h])}if(u.name=s.name,s.helperType&&(u.helperType=s.helperType),s.modeProps)for(var g in s.modeProps)u[g]=s.modeProps[g];return u}var Mi={};function Ss(i,s){var l=Mi.hasOwnProperty(i)?Mi[i]:Mi[i]={};Se(s,l)}function In(i,s){if(s===!0)return s;if(i.copyState)return i.copyState(s);var l={};for(var u in s){var f=s[u];f instanceof Array&&(f=f.concat([])),l[u]=f}return l}function iu(i,s){for(var l;i.innerMode&&(l=i.innerMode(s),!(!l||l.mode==i));)s=l.state,i=l.mode;return l||{mode:i,state:s}}function xs(i,s,l){return i.startState?i.startState(s,l):!0}var Lt=function(i,s,l){this.pos=this.start=0,this.string=i,this.tabSize=s||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=l};Lt.prototype.eol=function(){return this.pos>=this.string.length},Lt.prototype.sol=function(){return this.pos==this.lineStart},Lt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Lt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Lt.prototype.eat=function(i){var s=this.string.charAt(this.pos),l;if(typeof i=="string"?l=s==i:l=s&&(i.test?i.test(s):i(s)),l)return++this.pos,s},Lt.prototype.eatWhile=function(i){for(var s=this.pos;this.eat(i););return this.pos>s},Lt.prototype.eatSpace=function(){for(var i=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>i},Lt.prototype.skipToEnd=function(){this.pos=this.string.length},Lt.prototype.skipTo=function(i){var s=this.string.indexOf(i,this.pos);if(s>-1)return this.pos=s,!0},Lt.prototype.backUp=function(i){this.pos-=i},Lt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Le(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Le(this.string,this.lineStart,this.tabSize):0)},Lt.prototype.indentation=function(){return Le(this.string,null,this.tabSize)-(this.lineStart?Le(this.string,this.lineStart,this.tabSize):0)},Lt.prototype.match=function(i,s,l){if(typeof i=="string"){var u=function(g){return l?g.toLowerCase():g},f=this.string.substr(this.pos,i.length);if(u(f)==u(i))return s!==!1&&(this.pos+=i.length),!0}else{var h=this.string.slice(this.pos).match(i);return h&&h.index>0?null:(h&&s!==!1&&(this.pos+=h[0].length),h)}},Lt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Lt.prototype.hideFirstChars=function(i,s){this.lineStart+=i;try{return s()}finally{this.lineStart-=i}},Lt.prototype.lookAhead=function(i){var s=this.lineOracle;return s&&s.lookAhead(i)},Lt.prototype.baseToken=function(){var i=this.lineOracle;return i&&i.baseToken(this.pos)};function Re(i,s){if(s-=i.first,s<0||s>=i.size)throw new Error("There is no line "+(s+i.first)+" in the document.");for(var l=i;!l.lines;)for(var u=0;;++u){var f=l.children[u],h=f.chunkSize();if(s<h){l=f;break}s-=h}return l.lines[s]}function ni(i,s,l){var u=[],f=s.line;return i.iter(s.line,l.line+1,function(h){var g=h.text;f==l.line&&(g=g.slice(0,l.ch)),f==s.line&&(g=g.slice(s.ch)),u.push(g),++f}),u}function au(i,s,l){var u=[];return i.iter(s,l,function(f){u.push(f.text)}),u}function Gr(i,s){var l=s-i.height;if(l)for(var u=i;u;u=u.parent)u.height+=l}function w(i){if(i.parent==null)return null;for(var s=i.parent,l=Ee(s.lines,i),u=s.parent;u;s=u,u=u.parent)for(var f=0;u.children[f]!=s;++f)l+=u.children[f].chunkSize();return l+s.first}function M(i,s){var l=i.first;e:do{for(var u=0;u<i.children.length;++u){var f=i.children[u],h=f.height;if(s<h){i=f;continue e}s-=h,l+=f.chunkSize()}return l}while(!i.lines);for(var g=0;g<i.lines.length;++g){var _=i.lines[g],y=_.height;if(s<y)break;s-=y}return l+g}function ce(i,s){return s>=i.first&&s<i.first+i.size}function ve(i,s){return String(i.lineNumberFormatter(s+i.firstLineNumber))}function J(i,s,l){if(l===void 0&&(l=null),!(this instanceof J))return new J(i,s,l);this.line=i,this.ch=s,this.sticky=l}function Ce(i,s){return i.line-s.line||i.ch-s.ch}function ct(i,s){return i.sticky==s.sticky&&Ce(i,s)==0}function qt(i){return J(i.line,i.ch)}function Tr(i,s){return Ce(i,s)<0?s:i}function As(i,s){return Ce(i,s)<0?i:s}function TE(i,s){return Math.max(i.first,Math.min(s,i.first+i.size-1))}function Ke(i,s){if(s.line<i.first)return J(i.first,0);var l=i.first+i.size-1;return s.line>l?J(l,Re(i,l).text.length):wX(s,Re(i,s.line).text.length)}function wX(i,s){var l=i.ch;return l==null||l>s?J(i.line,s):l<0?J(i.line,0):i}function CE(i,s){for(var l=[],u=0;u<s.length;u++)l[u]=Ke(i,s[u]);return l}var gc=function(i,s){this.state=i,this.lookAhead=s},Ln=function(i,s,l,u){this.state=s,this.doc=i,this.line=l,this.maxLookAhead=u||0,this.baseTokens=null,this.baseTokenPos=1};Ln.prototype.lookAhead=function(i){var s=this.doc.getLine(this.line+i);return s!=null&&i>this.maxLookAhead&&(this.maxLookAhead=i),s},Ln.prototype.baseToken=function(i){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=i;)this.baseTokenPos+=2;var s=this.baseTokens[this.baseTokenPos+1];return{type:s&&s.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-i}},Ln.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Ln.fromSaved=function(i,s,l){return s instanceof gc?new Ln(i,In(i.mode,s.state),l,s.lookAhead):new Ln(i,In(i.mode,s),l)},Ln.prototype.save=function(i){var s=i!==!1?In(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new gc(s,this.maxLookAhead):s};function wE(i,s,l,u){var f=[i.state.modeGen],h={};PE(i,s.text,i.doc.mode,l,function(k,L){return f.push(k,L)},h,u);for(var g=l.state,_=function(k){l.baseTokens=f;var L=i.state.overlays[k],$=1,Y=0;l.state=!0,PE(i,s.text,L.mode,l,function(z,te){for(var de=$;Y<z;){var ge=f[$];ge>z&&f.splice($,1,z,f[$+1],ge),$+=2,Y=Math.min(z,ge)}if(te)if(L.opaque)f.splice(de,$-de,z,"overlay "+te),$=de+2;else for(;de<$;de+=2){var be=f[de+1];f[de+1]=(be?be+" ":"")+"overlay "+te}},h),l.state=g,l.baseTokens=null,l.baseTokenPos=1},y=0;y<i.state.overlays.length;++y)_(y);return{styles:f,classes:h.bgClass||h.textClass?h:null}}function SE(i,s,l){if(!s.styles||s.styles[0]!=i.state.modeGen){var u=su(i,w(s)),f=s.text.length>i.options.maxHighlightLength&&In(i.doc.mode,u.state),h=wE(i,s,u);f&&(u.state=f),s.stateAfter=u.save(!f),s.styles=h.styles,h.classes?s.styleClasses=h.classes:s.styleClasses&&(s.styleClasses=null),l===i.doc.highlightFrontier&&(i.doc.modeFrontier=Math.max(i.doc.modeFrontier,++i.doc.highlightFrontier))}return s.styles}function su(i,s,l){var u=i.doc,f=i.display;if(!u.mode.startState)return new Ln(u,!0,s);var h=SX(i,s,l),g=h>u.first&&Re(u,h-1).stateAfter,_=g?Ln.fromSaved(u,g,h):new Ln(u,xs(u.mode),h);return u.iter(h,s,function(y){Bp(i,y.text,_);var k=_.line;y.stateAfter=k==s-1||k%5==0||k>=f.viewFrom&&k<f.viewTo?_.save():null,_.nextLine()}),l&&(u.modeFrontier=_.line),_}function Bp(i,s,l,u){var f=i.doc.mode,h=new Lt(s,i.options.tabSize,l);for(h.start=h.pos=u||0,s==""&&xE(f,l.state);!h.eol();)Hp(f,h,l.state),h.start=h.pos}function xE(i,s){if(i.blankLine)return i.blankLine(s);if(i.innerMode){var l=iu(i,s);if(l.mode.blankLine)return l.mode.blankLine(l.state)}}function Hp(i,s,l,u){for(var f=0;f<10;f++){u&&(u[0]=iu(i,l).mode);var h=i.token(s,l);if(s.pos>s.start)return h}throw new Error("Mode "+i.name+" failed to advance stream.")}var AE=function(i,s,l){this.start=i.start,this.end=i.pos,this.string=i.current(),this.type=s||null,this.state=l};function OE(i,s,l,u){var f=i.doc,h=f.mode,g;s=Ke(f,s);var _=Re(f,s.line),y=su(i,s.line,l),k=new Lt(_.text,i.options.tabSize,y),L;for(u&&(L=[]);(u||k.pos<s.ch)&&!k.eol();)k.start=k.pos,g=Hp(h,k,y.state),u&&L.push(new AE(k,g,In(f.mode,y.state)));return u?L:new AE(k,g,y.state)}function NE(i,s){if(i)for(;;){var l=i.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!l)break;i=i.slice(0,l.index)+i.slice(l.index+l[0].length);var u=l[1]?"bgClass":"textClass";s[u]==null?s[u]=l[2]:new RegExp("(?:^|\\s)"+l[2]+"(?:$|\\s)").test(s[u])||(s[u]+=" "+l[2])}return i}function PE(i,s,l,u,f,h,g){var _=l.flattenSpans;_==null&&(_=i.options.flattenSpans);var y=0,k=null,L=new Lt(s,i.options.tabSize,u),$,Y=i.options.addModeClass&&[null];for(s==""&&NE(xE(l,u.state),h);!L.eol();){if(L.pos>i.options.maxHighlightLength?(_=!1,g&&Bp(i,s,u,L.pos),L.pos=s.length,$=null):$=NE(Hp(l,L,u.state,Y),h),Y){var z=Y[0].name;z&&($="m-"+($?z+" "+$:z))}if(!_||k!=$){for(;y<L.start;)y=Math.min(L.start,y+5e3),f(y,k);k=$}L.start=L.pos}for(;y<L.pos;){var te=Math.min(L.pos,y+5e3);f(te,k),y=te}}function SX(i,s,l){for(var u,f,h=i.doc,g=l?-1:s-(i.doc.mode.innerMode?1e3:100),_=s;_>g;--_){if(_<=h.first)return h.first;var y=Re(h,_-1),k=y.stateAfter;if(k&&(!l||_+(k instanceof gc?k.lookAhead:0)<=h.modeFrontier))return _;var L=Le(y.text,null,i.options.tabSize);(f==null||u>L)&&(f=_-1,u=L)}return f}function xX(i,s){if(i.modeFrontier=Math.min(i.modeFrontier,s),!(i.highlightFrontier<s-10)){for(var l=i.first,u=s-1;u>l;u--){var f=Re(i,u).stateAfter;if(f&&(!(f instanceof gc)||u+f.lookAhead<s)){l=u+1;break}}i.highlightFrontier=Math.min(i.highlightFrontier,l)}}var IE=!1,ii=!1;function AX(){IE=!0}function OX(){ii=!0}function _c(i,s,l){this.marker=i,this.from=s,this.to=l}function ou(i,s){if(i)for(var l=0;l<i.length;++l){var u=i[l];if(u.marker==s)return u}}function NX(i,s){for(var l,u=0;u<i.length;++u)i[u]!=s&&(l||(l=[])).push(i[u]);return l}function PX(i,s,l){var u=l&&window.WeakSet&&(l.markedSpans||(l.markedSpans=new WeakSet));u&&i.markedSpans&&u.has(i.markedSpans)?i.markedSpans.push(s):(i.markedSpans=i.markedSpans?i.markedSpans.concat([s]):[s],u&&u.add(i.markedSpans)),s.marker.attachLine(i)}function IX(i,s,l){var u;if(i)for(var f=0;f<i.length;++f){var h=i[f],g=h.marker,_=h.from==null||(g.inclusiveLeft?h.from<=s:h.from<s);if(_||h.from==s&&g.type=="bookmark"&&(!l||!h.marker.insertLeft)){var y=h.to==null||(g.inclusiveRight?h.to>=s:h.to>s);(u||(u=[])).push(new _c(g,h.from,y?null:h.to))}}return u}function LX(i,s,l){var u;if(i)for(var f=0;f<i.length;++f){var h=i[f],g=h.marker,_=h.to==null||(g.inclusiveRight?h.to>=s:h.to>s);if(_||h.from==s&&g.type=="bookmark"&&(!l||h.marker.insertLeft)){var y=h.from==null||(g.inclusiveLeft?h.from<=s:h.from<s);(u||(u=[])).push(new _c(g,y?null:h.from-s,h.to==null?null:h.to-s))}}return u}function Up(i,s){if(s.full)return null;var l=ce(i,s.from.line)&&Re(i,s.from.line).markedSpans,u=ce(i,s.to.line)&&Re(i,s.to.line).markedSpans;if(!l&&!u)return null;var f=s.from.ch,h=s.to.ch,g=Ce(s.from,s.to)==0,_=IX(l,f,g),y=LX(u,h,g),k=s.text.length==1,L=Ye(s.text).length+(k?f:0);if(_)for(var $=0;$<_.length;++$){var Y=_[$];if(Y.to==null){var z=ou(y,Y.marker);z?k&&(Y.to=z.to==null?null:z.to+L):Y.to=f}}if(y)for(var te=0;te<y.length;++te){var de=y[te];if(de.to!=null&&(de.to+=L),de.from==null){var ge=ou(_,de.marker);ge||(de.from=L,k&&(_||(_=[])).push(de))}else de.from+=L,k&&(_||(_=[])).push(de)}_&&(_=LE(_)),y&&y!=_&&(y=LE(y));var be=[_];if(!k){var we=s.text.length-2,ye;if(we>0&&_)for(var Oe=0;Oe<_.length;++Oe)_[Oe].to==null&&(ye||(ye=[])).push(new _c(_[Oe].marker,null,null));for(var Fe=0;Fe<we;++Fe)be.push(ye);be.push(y)}return be}function LE(i){for(var s=0;s<i.length;++s){var l=i[s];l.from!=null&&l.from==l.to&&l.marker.clearWhenEmpty!==!1&&i.splice(s--,1)}return i.length?i:null}function RX(i,s,l){var u=null;if(i.iter(s.line,l.line+1,function(z){if(z.markedSpans)for(var te=0;te<z.markedSpans.length;++te){var de=z.markedSpans[te].marker;de.readOnly&&(!u||Ee(u,de)==-1)&&(u||(u=[])).push(de)}}),!u)return null;for(var f=[{from:s,to:l}],h=0;h<u.length;++h)for(var g=u[h],_=g.find(0),y=0;y<f.length;++y){var k=f[y];if(!(Ce(k.to,_.from)<0||Ce(k.from,_.to)>0)){var L=[y,1],$=Ce(k.from,_.from),Y=Ce(k.to,_.to);($<0||!g.inclusiveLeft&&!$)&&L.push({from:k.from,to:_.from}),(Y>0||!g.inclusiveRight&&!Y)&&L.push({from:_.to,to:k.to}),f.splice.apply(f,L),y+=L.length-3}}return f}function RE(i){var s=i.markedSpans;if(s){for(var l=0;l<s.length;++l)s[l].marker.detachLine(i);i.markedSpans=null}}function DE(i,s){if(s){for(var l=0;l<s.length;++l)s[l].marker.attachLine(i);i.markedSpans=s}}function bc(i){return i.inclusiveLeft?-1:0}function yc(i){return i.inclusiveRight?1:0}function jp(i,s){var l=i.lines.length-s.lines.length;if(l!=0)return l;var u=i.find(),f=s.find(),h=Ce(u.from,f.from)||bc(i)-bc(s);if(h)return-h;var g=Ce(u.to,f.to)||yc(i)-yc(s);return g||s.id-i.id}function ME(i,s){var l=ii&&i.markedSpans,u;if(l)for(var f=void 0,h=0;h<l.length;++h)f=l[h],f.marker.collapsed&&(s?f.from:f.to)==null&&(!u||jp(u,f.marker)<0)&&(u=f.marker);return u}function $E(i){return ME(i,!0)}function kc(i){return ME(i,!1)}function DX(i,s){var l=ii&&i.markedSpans,u;if(l)for(var f=0;f<l.length;++f){var h=l[f];h.marker.collapsed&&(h.from==null||h.from<s)&&(h.to==null||h.to>s)&&(!u||jp(u,h.marker)<0)&&(u=h.marker)}return u}function FE(i,s,l,u,f){var h=Re(i,s),g=ii&&h.markedSpans;if(g)for(var _=0;_<g.length;++_){var y=g[_];if(y.marker.collapsed){var k=y.marker.find(0),L=Ce(k.from,l)||bc(y.marker)-bc(f),$=Ce(k.to,u)||yc(y.marker)-yc(f);if(!(L>=0&&$<=0||L<=0&&$>=0)&&(L<=0&&(y.marker.inclusiveRight&&f.inclusiveLeft?Ce(k.to,l)>=0:Ce(k.to,l)>0)||L>=0&&(y.marker.inclusiveRight&&f.inclusiveLeft?Ce(k.from,u)<=0:Ce(k.from,u)<0)))return!0}}}function _n(i){for(var s;s=$E(i);)i=s.find(-1,!0).line;return i}function MX(i){for(var s;s=kc(i);)i=s.find(1,!0).line;return i}function $X(i){for(var s,l;s=kc(i);)i=s.find(1,!0).line,(l||(l=[])).push(i);return l}function Wp(i,s){var l=Re(i,s),u=_n(l);return l==u?s:w(u)}function BE(i,s){if(s>i.lastLine())return s;var l=Re(i,s),u;if(!$i(i,l))return s;for(;u=kc(l);)l=u.find(1,!0).line;return w(l)+1}function $i(i,s){var l=ii&&s.markedSpans;if(l){for(var u=void 0,f=0;f<l.length;++f)if(u=l[f],!!u.marker.collapsed){if(u.from==null)return!0;if(!u.marker.widgetNode&&u.from==0&&u.marker.inclusiveLeft&&Gp(i,s,u))return!0}}}function Gp(i,s,l){if(l.to==null){var u=l.marker.find(1,!0);return Gp(i,u.line,ou(u.line.markedSpans,l.marker))}if(l.marker.inclusiveRight&&l.to==s.text.length)return!0;for(var f=void 0,h=0;h<s.markedSpans.length;++h)if(f=s.markedSpans[h],f.marker.collapsed&&!f.marker.widgetNode&&f.from==l.to&&(f.to==null||f.to!=l.from)&&(f.marker.inclusiveLeft||l.marker.inclusiveRight)&&Gp(i,s,f))return!0}function ai(i){i=_n(i);for(var s=0,l=i.parent,u=0;u<l.lines.length;++u){var f=l.lines[u];if(f==i)break;s+=f.height}for(var h=l.parent;h;l=h,h=l.parent)for(var g=0;g<h.children.length;++g){var _=h.children[g];if(_==l)break;s+=_.height}return s}function Ec(i){if(i.height==0)return 0;for(var s=i.text.length,l,u=i;l=$E(u);){var f=l.find(0,!0);u=f.from.line,s+=f.from.ch-f.to.ch}for(u=i;l=kc(u);){var h=l.find(0,!0);s-=u.text.length-h.from.ch,u=h.to.line,s+=u.text.length-h.to.ch}return s}function zp(i){var s=i.display,l=i.doc;s.maxLine=Re(l,l.first),s.maxLineLength=Ec(s.maxLine),s.maxLineChanged=!0,l.iter(function(u){var f=Ec(u);f>s.maxLineLength&&(s.maxLineLength=f,s.maxLine=u)})}var Os=function(i,s,l){this.text=i,DE(this,s),this.height=l?l(this):1};Os.prototype.lineNo=function(){return w(this)},hn(Os);function FX(i,s,l,u){i.text=s,i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null),i.order!=null&&(i.order=null),RE(i),DE(i,l);var f=u?u(i):1;f!=i.height&&Gr(i,f)}function BX(i){i.parent=null,RE(i)}var HX={},UX={};function HE(i,s){if(!i||/^\s*$/.test(i))return null;var l=s.addModeClass?UX:HX;return l[i]||(l[i]=i.replace(/\S+/g,"cm-$&"))}function UE(i,s){var l=ee("span",null,null,b?"padding-right: .1px":null),u={pre:ee("pre",[l],"CodeMirror-line"),content:l,col:0,pos:0,cm:i,trailingSpace:!1,splitSpaces:i.getOption("lineWrapping")};s.measure={};for(var f=0;f<=(s.rest?s.rest.length:0);f++){var h=f?s.rest[f-1]:s.line,g=void 0;u.pos=0,u.addToken=WX,Ri(i.display.measure)&&(g=nt(h,i.doc.direction))&&(u.addToken=zX(u.addToken,g)),u.map=[];var _=s!=i.display.externalMeasured&&w(h);qX(h,u,SE(i,h,_)),h.styleClasses&&(h.styleClasses.bgClass&&(u.bgClass=Ge(h.styleClasses.bgClass,u.bgClass||"")),h.styleClasses.textClass&&(u.textClass=Ge(h.styleClasses.textClass,u.textClass||""))),u.map.length==0&&u.map.push(0,0,u.content.appendChild(mc(i.display.measure))),f==0?(s.measure.map=u.map,s.measure.cache={}):((s.measure.maps||(s.measure.maps=[])).push(u.map),(s.measure.caches||(s.measure.caches=[])).push({}))}if(b){var y=u.content.lastChild;(/\bcm-tab\b/.test(y.className)||y.querySelector&&y.querySelector(".cm-tab"))&&(u.content.className="cm-tab-wrap-hack")}return Pt(i,"renderLine",i,s.line,u.pre),u.pre.className&&(u.textClass=Ge(u.pre.className,u.textClass||"")),u}function jX(i){var s=E("span","\u2022","cm-invalidchar");return s.title="\\u"+i.charCodeAt(0).toString(16),s.setAttribute("aria-label",s.title),s}function WX(i,s,l,u,f,h,g){if(s){var _=i.splitSpaces?GX(s,i.trailingSpace):s,y=i.cm.state.specialChars,k=!1,L;if(!y.test(s))i.col+=s.length,L=document.createTextNode(_),i.map.push(i.pos,i.pos+s.length,L),p&&v<9&&(k=!0),i.pos+=s.length;else{L=document.createDocumentFragment();for(var $=0;;){y.lastIndex=$;var Y=y.exec(s),z=Y?Y.index-$:s.length-$;if(z){var te=document.createTextNode(_.slice($,$+z));p&&v<9?L.appendChild(E("span",[te])):L.appendChild(te),i.map.push(i.pos,i.pos+z,te),i.col+=z,i.pos+=z}if(!Y)break;$+=z+1;var de=void 0;if(Y[0]==" "){var ge=i.cm.options.tabSize,be=ge-i.col%ge;de=L.appendChild(E("span",$t(be),"cm-tab")),de.setAttribute("role","presentation"),de.setAttribute("cm-text"," "),i.col+=be}else Y[0]=="\r"||Y[0]==` `?(de=L.appendChild(E("span",Y[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),de.setAttribute("cm-text",Y[0]),i.col+=1):(de=i.cm.options.specialCharPlaceholder(Y[0]),de.setAttribute("cm-text",Y[0]),p&&v<9?L.appendChild(E("span",[de])):L.appendChild(de),i.col+=1);i.map.push(i.pos,i.pos+1,de),i.pos++}}if(i.trailingSpace=_.charCodeAt(s.length-1)==32,l||u||f||k||h||g){var we=l||"";u&&(we+=u),f&&(we+=f);var ye=E("span",[L],we,h);if(g)for(var Oe in g)g.hasOwnProperty(Oe)&&Oe!="style"&&Oe!="class"&&ye.setAttribute(Oe,g[Oe]);return i.content.appendChild(ye)}i.content.appendChild(L)}}function GX(i,s){if(i.length>1&&!/ /.test(i))return i;for(var l=s,u="",f=0;f<i.length;f++){var h=i.charAt(f);h==" "&&l&&(f==i.length-1||i.charCodeAt(f+1)==32)&&(h="\xA0"),u+=h,l=h==" "}return u}function zX(i,s){return function(l,u,f,h,g,_,y){f=f?f+" cm-force-border":"cm-force-border";for(var k=l.pos,L=k+u.length;;){for(var $=void 0,Y=0;Y<s.length&&($=s[Y],!($.to>k&&$.from<=k));Y++);if($.to>=L)return i(l,u,f,h,g,_,y);i(l,u.slice(0,$.to-k),f,h,null,_,y),h=null,u=u.slice($.to-k),k=$.to}}}function jE(i,s,l,u){var f=!u&&l.widgetNode;f&&i.map.push(i.pos,i.pos+s,f),!u&&i.cm.display.input.needsContentAttribute&&(f||(f=i.content.appendChild(document.createElement("span"))),f.setAttribute("cm-marker",l.id)),f&&(i.cm.display.input.setUneditable(f),i.content.appendChild(f)),i.pos+=s,i.trailingSpace=!1}function qX(i,s,l){var u=i.markedSpans,f=i.text,h=0;if(!u){for(var g=1;g<l.length;g+=2)s.addToken(s,f.slice(h,h=l[g]),HE(l[g+1],s.cm.options));return}for(var _=f.length,y=0,k=1,L="",$,Y,z=0,te,de,ge,be,we;;){if(z==y){te=de=ge=Y="",we=null,be=null,z=1/0;for(var ye=[],Oe=void 0,Fe=0;Fe<u.length;++Fe){var De=u[Fe],Je=De.marker;if(Je.type=="bookmark"&&De.from==y&&Je.widgetNode)ye.push(Je);else if(De.from<=y&&(De.to==null||De.to>y||Je.collapsed&&De.to==y&&De.from==y)){if(De.to!=null&&De.to!=y&&z>De.to&&(z=De.to,de=""),Je.className&&(te+=" "+Je.className),Je.css&&(Y=(Y?Y+";":"")+Je.css),Je.startStyle&&De.from==y&&(ge+=" "+Je.startStyle),Je.endStyle&&De.to==z&&(Oe||(Oe=[])).push(Je.endStyle,De.to),Je.title&&((we||(we={})).title=Je.title),Je.attributes)for(var vt in Je.attributes)(we||(we={}))[vt]=Je.attributes[vt];Je.collapsed&&(!be||jp(be.marker,Je)<0)&&(be=De)}else De.from>y&&z>De.from&&(z=De.from)}if(Oe)for(var Vt=0;Vt<Oe.length;Vt+=2)Oe[Vt+1]==z&&(de+=" "+Oe[Vt]);if(!be||be.from==y)for(var At=0;At<ye.length;++At)jE(s,0,ye[At]);if(be&&(be.from||0)==y){if(jE(s,(be.to==null?_+1:be.to)-y,be.marker,be.from==null),be.to==null)return;be.to==y&&(be=!1)}}if(y>=_)break;for(var $r=Math.min(_,z);;){if(L){var Sr=y+L.length;if(!be){var Bt=Sr>$r?L.slice(0,$r-y):L;s.addToken(s,Bt,$?$+te:te,ge,y+Bt.length==z?de:"",Y,we)}if(Sr>=$r){L=L.slice($r-y),y=$r;break}y=Sr,ge=""}L=f.slice(h,h=l[k++]),$=HE(l[k++],s.cm.options)}}}function WE(i,s,l){this.line=s,this.rest=$X(s),this.size=this.rest?w(Ye(this.rest))-l+1:1,this.node=this.text=null,this.hidden=$i(i,s)}function Tc(i,s,l){for(var u=[],f,h=s;h<l;h=f){var g=new WE(i.doc,Re(i.doc,h),h);f=h+g.size,u.push(g)}return u}var Ns=null;function YX(i){Ns?Ns.ops.push(i):i.ownsGroup=Ns={ops:[i],delayedCallbacks:[]}}function KX(i){var s=i.delayedCallbacks,l=0;do{for(;l<s.length;l++)s[l].call(null);for(var u=0;u<i.ops.length;u++){var f=i.ops[u];if(f.cursorActivityHandlers)for(;f.cursorActivityCalled<f.cursorActivityHandlers.length;)f.cursorActivityHandlers[f.cursorActivityCalled++].call(null,f.cm)}}while(l<s.length)}function XX(i,s){var l=i.ownsGroup;if(l)try{KX(l)}finally{Ns=null,s(l)}}var uu=null;function Yt(i,s){var l=ri(i,s);if(l.length){var u=Array.prototype.slice.call(arguments,2),f;Ns?f=Ns.delayedCallbacks:uu?f=uu:(f=uu=[],setTimeout(VX,0));for(var h=function(_){f.push(function(){return l[_].apply(null,u)})},g=0;g<l.length;++g)h(g)}}function VX(){var i=uu;uu=null;for(var s=0;s<i.length;++s)i[s]()}function GE(i,s,l,u){for(var f=0;f<s.changes.length;f++){var h=s.changes[f];h=="text"?JX(i,s):h=="gutter"?qE(i,s,l,u):h=="class"?qp(i,s):h=="widget"&&ZX(i,s,u)}s.changes=null}function lu(i){return i.node==i.text&&(i.node=E("div",null,null,"position: relative"),i.text.parentNode&&i.text.parentNode.replaceChild(i.node,i.text),i.node.appendChild(i.text),p&&v<8&&(i.node.style.zIndex=2)),i.node}function QX(i,s){var l=s.bgClass?s.bgClass+" "+(s.line.bgClass||""):s.line.bgClass;if(l&&(l+=" CodeMirror-linebackground"),s.background)l?s.background.className=l:(s.background.parentNode.removeChild(s.background),s.background=null);else if(l){var u=lu(s);s.background=u.insertBefore(E("div",null,l),u.firstChild),i.display.input.setUneditable(s.background)}}function zE(i,s){var l=i.display.externalMeasured;return l&&l.line==s.line?(i.display.externalMeasured=null,s.measure=l.measure,l.built):UE(i,s)}function JX(i,s){var l=s.text.className,u=zE(i,s);s.text==s.node&&(s.node=u.pre),s.text.parentNode.replaceChild(u.pre,s.text),s.text=u.pre,u.bgClass!=s.bgClass||u.textClass!=s.textClass?(s.bgClass=u.bgClass,s.textClass=u.textClass,qp(i,s)):l&&(s.text.className=l)}function qp(i,s){QX(i,s),s.line.wrapClass?lu(s).className=s.line.wrapClass:s.node!=s.text&&(s.node.className="");var l=s.textClass?s.textClass+" "+(s.line.textClass||""):s.line.textClass;s.text.className=l||""}function qE(i,s,l,u){if(s.gutter&&(s.node.removeChild(s.gutter),s.gutter=null),s.gutterBackground&&(s.node.removeChild(s.gutterBackground),s.gutterBackground=null),s.line.gutterClass){var f=lu(s);s.gutterBackground=E("div",null,"CodeMirror-gutter-background "+s.line.gutterClass,"left: "+(i.options.fixedGutter?u.fixedPos:-u.gutterTotalWidth)+"px; width: "+u.gutterTotalWidth+"px"),i.display.input.setUneditable(s.gutterBackground),f.insertBefore(s.gutterBackground,s.text)}var h=s.line.gutterMarkers;if(i.options.lineNumbers||h){var g=lu(s),_=s.gutter=E("div",null,"CodeMirror-gutter-wrapper","left: "+(i.options.fixedGutter?u.fixedPos:-u.gutterTotalWidth)+"px");if(_.setAttribute("aria-hidden","true"),i.display.input.setUneditable(_),g.insertBefore(_,s.text),s.line.gutterClass&&(_.className+=" "+s.line.gutterClass),i.options.lineNumbers&&(!h||!h["CodeMirror-linenumbers"])&&(s.lineNumber=_.appendChild(E("div",ve(i.options,l),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+u.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+i.display.lineNumInnerWidth+"px"))),h)for(var y=0;y<i.display.gutterSpecs.length;++y){var k=i.display.gutterSpecs[y].className,L=h.hasOwnProperty(k)&&h[k];L&&_.appendChild(E("div",[L],"CodeMirror-gutter-elt","left: "+u.gutterLeft[k]+"px; width: "+u.gutterWidth[k]+"px"))}}}function ZX(i,s,l){s.alignable&&(s.alignable=null);for(var u=ne("CodeMirror-linewidget"),f=s.node.firstChild,h=void 0;f;f=h)h=f.nextSibling,u.test(f.className)&&s.node.removeChild(f);YE(i,s,l)}function eV(i,s,l,u){var f=zE(i,s);return s.text=s.node=f.pre,f.bgClass&&(s.bgClass=f.bgClass),f.textClass&&(s.textClass=f.textClass),qp(i,s),qE(i,s,l,u),YE(i,s,u),s.node}function YE(i,s,l){if(KE(i,s.line,s,l,!0),s.rest)for(var u=0;u<s.rest.length;u++)KE(i,s.rest[u],s,l,!1)}function KE(i,s,l,u,f){if(s.widgets)for(var h=lu(l),g=0,_=s.widgets;g<_.length;++g){var y=_[g],k=E("div",[y.node],"CodeMirror-linewidget"+(y.className?" "+y.className:""));y.handleMouseEvents||k.setAttribute("cm-ignore-events","true"),tV(y,k,l,u),i.display.input.setUneditable(k),f&&y.above?h.insertBefore(k,l.gutter||l.text):h.appendChild(k),Yt(y,"redraw")}}function tV(i,s,l,u){if(i.noHScroll){(l.alignable||(l.alignable=[])).push(s);var f=u.wrapperWidth;s.style.left=u.fixedPos+"px",i.coverGutter||(f-=u.gutterTotalWidth,s.style.paddingLeft=u.gutterTotalWidth+"px"),s.style.width=f+"px"}i.coverGutter&&(s.style.zIndex=5,s.style.position="relative",i.noHScroll||(s.style.marginLeft=-u.gutterTotalWidth+"px"))}function cu(i){if(i.height!=null)return i.height;var s=i.doc.cm;if(!s)return 0;if(!fe(document.body,i.node)){var l="position: relative;";i.coverGutter&&(l+="margin-left: -"+s.display.gutters.offsetWidth+"px;"),i.noHScroll&&(l+="width: "+s.display.wrapper.clientWidth+"px;"),W(s.display.measure,E("div",[i.node],null,l))}return i.height=i.node.parentNode.offsetHeight}function si(i,s){for(var l=ru(s);l!=i.wrapper;l=l.parentNode)if(!l||l.nodeType==1&&l.getAttribute("cm-ignore-events")=="true"||l.parentNode==i.sizer&&l!=i.mover)return!0}function Cc(i){return i.lineSpace.offsetTop}function Yp(i){return i.mover.offsetHeight-i.lineSpace.offsetHeight}function XE(i){if(i.cachedPaddingH)return i.cachedPaddingH;var s=W(i.measure,E("pre","x","CodeMirror-line-like")),l=window.getComputedStyle?window.getComputedStyle(s):s.currentStyle,u={left:parseInt(l.paddingLeft),right:parseInt(l.paddingRight)};return!isNaN(u.left)&&!isNaN(u.right)&&(i.cachedPaddingH=u),u}function Rn(i){return Qe-i.display.nativeBarWidth}function Ta(i){return i.display.scroller.clientWidth-Rn(i)-i.display.barWidth}function Kp(i){return i.display.scroller.clientHeight-Rn(i)-i.display.barHeight}function rV(i,s,l){var u=i.options.lineWrapping,f=u&&Ta(i);if(!s.measure.heights||u&&s.measure.width!=f){var h=s.measure.heights=[];if(u){s.measure.width=f;for(var g=s.text.firstChild.getClientRects(),_=0;_<g.length-1;_++){var y=g[_],k=g[_+1];Math.abs(y.bottom-k.bottom)>2&&h.push((y.bottom+k.top)/2-l.top)}}h.push(l.bottom-l.top)}}function VE(i,s,l){if(i.line==s)return{map:i.measure.map,cache:i.measure.cache};if(i.rest){for(var u=0;u<i.rest.length;u++)if(i.rest[u]==s)return{map:i.measure.maps[u],cache:i.measure.caches[u]};for(var f=0;f<i.rest.length;f++)if(w(i.rest[f])>l)return{map:i.measure.maps[f],cache:i.measure.caches[f],before:!0}}}function nV(i,s){s=_n(s);var l=w(s),u=i.display.externalMeasured=new WE(i.doc,s,l);u.lineN=l;var f=u.built=UE(i,u);return u.text=f.pre,W(i.display.lineMeasure,f.pre),u}function QE(i,s,l,u){return Dn(i,Ps(i,s),l,u)}function Xp(i,s){if(s>=i.display.viewFrom&&s<i.display.viewTo)return i.display.view[Sa(i,s)];var l=i.display.externalMeasured;if(l&&s>=l.lineN&&s<l.lineN+l.size)return l}function Ps(i,s){var l=w(s),u=Xp(i,l);u&&!u.text?u=null:u&&u.changes&&(GE(i,u,l,em(i)),i.curOp.forceUpdate=!0),u||(u=nV(i,s));var f=VE(u,s,l);return{line:s,view:u,rect:null,map:f.map,cache:f.cache,before:f.before,hasHeights:!1}}function Dn(i,s,l,u,f){s.before&&(l=-1);var h=l+(u||""),g;return s.cache.hasOwnProperty(h)?g=s.cache[h]:(s.rect||(s.rect=s.view.text.getBoundingClientRect()),s.hasHeights||(rV(i,s.view,s.rect),s.hasHeights=!0),g=aV(i,s,l,u),g.bogus||(s.cache[h]=g)),{left:g.left,right:g.right,top:f?g.rtop:g.top,bottom:f?g.rbottom:g.bottom}}var JE={left:0,right:0,top:0,bottom:0};function ZE(i,s,l){for(var u,f,h,g,_,y,k=0;k<i.length;k+=3)if(_=i[k],y=i[k+1],s<_?(f=0,h=1,g="left"):s<y?(f=s-_,h=f+1):(k==i.length-3||s==y&&i[k+3]>s)&&(h=y-_,f=h-1,s>=y&&(g="right")),f!=null){if(u=i[k+2],_==y&&l==(u.insertLeft?"left":"right")&&(g=l),l=="left"&&f==0)for(;k&&i[k-2]==i[k-3]&&i[k-1].insertLeft;)u=i[(k-=3)+2],g="left";if(l=="right"&&f==y-_)for(;k<i.length-3&&i[k+3]==i[k+4]&&!i[k+5].insertLeft;)u=i[(k+=3)+2],g="right";break}return{node:u,start:f,end:h,collapse:g,coverStart:_,coverEnd:y}}function iV(i,s){var l=JE;if(s=="left")for(var u=0;u<i.length&&(l=i[u]).left==l.right;u++);else for(var f=i.length-1;f>=0&&(l=i[f]).left==l.right;f--);return l}function aV(i,s,l,u){var f=ZE(s.map,l,u),h=f.node,g=f.start,_=f.end,y=f.collapse,k;if(h.nodeType==3){for(var L=0;L<4;L++){for(;g&&Ft(s.line.text.charAt(f.coverStart+g));)--g;for(;f.coverStart+_<f.coverEnd&&Ft(s.line.text.charAt(f.coverStart+_));)++_;if(p&&v<9&&g==0&&_==f.coverEnd-f.coverStart?k=h.parentNode.getBoundingClientRect():k=iV(V(h,g,_).getClientRects(),u),k.left||k.right||g==0)break;_=g,g=g-1,y="right"}p&&v<11&&(k=sV(i.display.measure,k))}else{g>0&&(y=u="right");var $;i.options.lineWrapping&&($=h.getClientRects()).length>1?k=$[u=="right"?$.length-1:0]:k=h.getBoundingClientRect()}if(p&&v<9&&!g&&(!k||!k.left&&!k.right)){var Y=h.parentNode.getClientRects()[0];Y?k={left:Y.left,right:Y.left+Ls(i.display),top:Y.top,bottom:Y.bottom}:k=JE}for(var z=k.top-s.rect.top,te=k.bottom-s.rect.top,de=(z+te)/2,ge=s.view.measure.heights,be=0;be<ge.length-1&&!(de<ge[be]);be++);var we=be?ge[be-1]:0,ye=ge[be],Oe={left:(y=="right"?k.right:k.left)-s.rect.left,right:(y=="left"?k.left:k.right)-s.rect.left,top:we,bottom:ye};return!k.left&&!k.right&&(Oe.bogus=!0),i.options.singleCursorHeightPerLine||(Oe.rtop=z,Oe.rbottom=te),Oe}function sV(i,s){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Fp(i))return s;var l=screen.logicalXDPI/screen.deviceXDPI,u=screen.logicalYDPI/screen.deviceYDPI;return{left:s.left*l,right:s.right*l,top:s.top*u,bottom:s.bottom*u}}function eT(i){if(i.measure&&(i.measure.cache={},i.measure.heights=null,i.rest))for(var s=0;s<i.rest.length;s++)i.measure.caches[s]={}}function tT(i){i.display.externalMeasure=null,N(i.display.lineMeasure);for(var s=0;s<i.display.view.length;s++)eT(i.display.view[s])}function fu(i){tT(i),i.display.cachedCharWidth=i.display.cachedTextHeight=i.display.cachedPaddingH=null,i.options.lineWrapping||(i.display.maxLineChanged=!0),i.display.lineNumChars=null}function rT(i){return T&&S?-(i.body.getBoundingClientRect().left-parseInt(getComputedStyle(i.body).marginLeft)):i.defaultView.pageXOffset||(i.documentElement||i.body).scrollLeft}function nT(i){return T&&S?-(i.body.getBoundingClientRect().top-parseInt(getComputedStyle(i.body).marginTop)):i.defaultView.pageYOffset||(i.documentElement||i.body).scrollTop}function Vp(i){var s=_n(i),l=s.widgets,u=0;if(l)for(var f=0;f<l.length;++f)l[f].above&&(u+=cu(l[f]));return u}function wc(i,s,l,u,f){if(!f){var h=Vp(s);l.top+=h,l.bottom+=h}if(u=="line")return l;u||(u="local");var g=ai(s);if(u=="local"?g+=Cc(i.display):g-=i.display.viewOffset,u=="page"||u=="window"){var _=i.display.lineSpace.getBoundingClientRect();g+=_.top+(u=="window"?0:nT(We(i)));var y=_.left+(u=="window"?0:rT(We(i)));l.left+=y,l.right+=y}return l.top+=g,l.bottom+=g,l}function iT(i,s,l){if(l=="div")return s;var u=s.left,f=s.top;if(l=="page")u-=rT(We(i)),f-=nT(We(i));else if(l=="local"||!l){var h=i.display.sizer.getBoundingClientRect();u+=h.left,f+=h.top}var g=i.display.lineSpace.getBoundingClientRect();return{left:u-g.left,top:f-g.top}}function Sc(i,s,l,u,f){return u||(u=Re(i.doc,s.line)),wc(i,u,QE(i,u,s.ch,f),l)}function bn(i,s,l,u,f,h){u=u||Re(i.doc,s.line),f||(f=Ps(i,u));function g(te,de){var ge=Dn(i,f,te,de?"right":"left",h);return de?ge.left=ge.right:ge.right=ge.left,wc(i,u,ge,l)}var _=nt(u,i.doc.direction),y=s.ch,k=s.sticky;if(y>=u.text.length?(y=u.text.length,k="before"):y<=0&&(y=0,k="after"),!_)return g(k=="before"?y-1:y,k=="before");function L(te,de,ge){var be=_[de],we=be.level==1;return g(ge?te-1:te,we!=ge)}var $=Ii(_,y,k),Y=ka,z=L(y,$,k=="before");return Y!=null&&(z.other=L(y,Y,k!="before")),z}function aT(i,s){var l=0;s=Ke(i.doc,s),i.options.lineWrapping||(l=Ls(i.display)*s.ch);var u=Re(i.doc,s.line),f=ai(u)+Cc(i.display);return{left:l,right:l,top:f,bottom:f+u.height}}function Qp(i,s,l,u,f){var h=J(i,s,l);return h.xRel=f,u&&(h.outside=u),h}function Jp(i,s,l){var u=i.doc;if(l+=i.display.viewOffset,l<0)return Qp(u.first,0,null,-1,-1);var f=M(u,l),h=u.first+u.size-1;if(f>h)return Qp(u.first+u.size-1,Re(u,h).text.length,null,1,1);s<0&&(s=0);for(var g=Re(u,f);;){var _=oV(i,g,f,s,l),y=DX(g,_.ch+(_.xRel>0||_.outside>0?1:0));if(!y)return _;var k=y.find(1);if(k.line==f)return k;g=Re(u,f=k.line)}}function sT(i,s,l,u){u-=Vp(s);var f=s.text.length,h=Pn(function(g){return Dn(i,l,g-1).bottom<=u},f,0);return f=Pn(function(g){return Dn(i,l,g).top>u},h,f),{begin:h,end:f}}function oT(i,s,l,u){l||(l=Ps(i,s));var f=wc(i,s,Dn(i,l,u),"line").top;return sT(i,s,l,f)}function Zp(i,s,l,u){return i.bottom<=l?!1:i.top>l?!0:(u?i.left:i.right)>s}function oV(i,s,l,u,f){f-=ai(s);var h=Ps(i,s),g=Vp(s),_=0,y=s.text.length,k=!0,L=nt(s,i.doc.direction);if(L){var $=(i.options.lineWrapping?lV:uV)(i,s,l,h,L,u,f);k=$.level!=1,_=k?$.from:$.to-1,y=k?$.to:$.from-1}var Y=null,z=null,te=Pn(function(Fe){var De=Dn(i,h,Fe);return De.top+=g,De.bottom+=g,Zp(De,u,f,!1)?(De.top<=f&&De.left<=u&&(Y=Fe,z=De),!0):!1},_,y),de,ge,be=!1;if(z){var we=u-z.left<z.right-u,ye=we==k;te=Y+(ye?0:1),ge=ye?"after":"before",de=we?z.left:z.right}else{!k&&(te==y||te==_)&&te++,ge=te==0?"after":te==s.text.length?"before":Dn(i,h,te-(k?1:0)).bottom+g<=f==k?"after":"before";var Oe=bn(i,J(l,te,ge),"line",s,h);de=Oe.left,be=f<Oe.top?-1:f>=Oe.bottom?1:0}return te=Ni(s.text,te,1),Qp(l,te,ge,be,u-de)}function uV(i,s,l,u,f,h,g){var _=Pn(function($){var Y=f[$],z=Y.level!=1;return Zp(bn(i,J(l,z?Y.to:Y.from,z?"before":"after"),"line",s,u),h,g,!0)},0,f.length-1),y=f[_];if(_>0){var k=y.level!=1,L=bn(i,J(l,k?y.from:y.to,k?"after":"before"),"line",s,u);Zp(L,h,g,!0)&&L.top>g&&(y=f[_-1])}return y}function lV(i,s,l,u,f,h,g){var _=sT(i,s,u,g),y=_.begin,k=_.end;/\s/.test(s.text.charAt(k-1))&&k--;for(var L=null,$=null,Y=0;Y<f.length;Y++){var z=f[Y];if(!(z.from>=k||z.to<=y)){var te=z.level!=1,de=Dn(i,u,te?Math.min(k,z.to)-1:Math.max(y,z.from)).right,ge=de<h?h-de+1e9:de-h;(!L||$>ge)&&(L=z,$=ge)}}return L||(L=f[f.length-1]),L.from<y&&(L={from:y,to:L.to,level:L.level}),L.to>k&&(L={from:L.from,to:k,level:L.level}),L}var Ca;function Is(i){if(i.cachedTextHeight!=null)return i.cachedTextHeight;if(Ca==null){Ca=E("pre",null,"CodeMirror-line-like");for(var s=0;s<49;++s)Ca.appendChild(document.createTextNode("x")),Ca.appendChild(E("br"));Ca.appendChild(document.createTextNode("x"))}W(i.measure,Ca);var l=Ca.offsetHeight/50;return l>3&&(i.cachedTextHeight=l),N(i.measure),l||1}function Ls(i){if(i.cachedCharWidth!=null)return i.cachedCharWidth;var s=E("span","xxxxxxxxxx"),l=E("pre",[s],"CodeMirror-line-like");W(i.measure,l);var u=s.getBoundingClientRect(),f=(u.right-u.left)/10;return f>2&&(i.cachedCharWidth=f),f||10}function em(i){for(var s=i.display,l={},u={},f=s.gutters.clientLeft,h=s.gutters.firstChild,g=0;h;h=h.nextSibling,++g){var _=i.display.gutterSpecs[g].className;l[_]=h.offsetLeft+h.clientLeft+f,u[_]=h.clientWidth}return{fixedPos:tm(s),gutterTotalWidth:s.gutters.offsetWidth,gutterLeft:l,gutterWidth:u,wrapperWidth:s.wrapper.clientWidth}}function tm(i){return i.scroller.getBoundingClientRect().left-i.sizer.getBoundingClientRect().left}function uT(i){var s=Is(i.display),l=i.options.lineWrapping,u=l&&Math.max(5,i.display.scroller.clientWidth/Ls(i.display)-3);return function(f){if($i(i.doc,f))return 0;var h=0;if(f.widgets)for(var g=0;g<f.widgets.length;g++)f.widgets[g].height&&(h+=f.widgets[g].height);return l?h+(Math.ceil(f.text.length/u)||1)*s:h+s}}function rm(i){var s=i.doc,l=uT(i);s.iter(function(u){var f=l(u);f!=u.height&&Gr(u,f)})}function wa(i,s,l,u){var f=i.display;if(!l&&ru(s).getAttribute("cm-not-content")=="true")return null;var h,g,_=f.lineSpace.getBoundingClientRect();try{h=s.clientX-_.left,g=s.clientY-_.top}catch{return null}var y=Jp(i,h,g),k;if(u&&y.xRel>0&&(k=Re(i.doc,y.line).text).length==y.ch){var L=Le(k,k.length,i.options.tabSize)-k.length;y=J(y.line,Math.max(0,Math.round((h-XE(i.display).left)/Ls(i.display))-L))}return y}function Sa(i,s){if(s>=i.display.viewTo||(s-=i.display.viewFrom,s<0))return null;for(var l=i.display.view,u=0;u<l.length;u++)if(s-=l[u].size,s<0)return u}function Cr(i,s,l,u){s==null&&(s=i.doc.first),l==null&&(l=i.doc.first+i.doc.size),u||(u=0);var f=i.display;if(u&&l<f.viewTo&&(f.updateLineNumbers==null||f.updateLineNumbers>s)&&(f.updateLineNumbers=s),i.curOp.viewChanged=!0,s>=f.viewTo)ii&&Wp(i.doc,s)<f.viewTo&&Bi(i);else if(l<=f.viewFrom)ii&&BE(i.doc,l+u)>f.viewFrom?Bi(i):(f.viewFrom+=u,f.viewTo+=u);else if(s<=f.viewFrom&&l>=f.viewTo)Bi(i);else if(s<=f.viewFrom){var h=xc(i,l,l+u,1);h?(f.view=f.view.slice(h.index),f.viewFrom=h.lineN,f.viewTo+=u):Bi(i)}else if(l>=f.viewTo){var g=xc(i,s,s,-1);g?(f.view=f.view.slice(0,g.index),f.viewTo=g.lineN):Bi(i)}else{var _=xc(i,s,s,-1),y=xc(i,l,l+u,1);_&&y?(f.view=f.view.slice(0,_.index).concat(Tc(i,_.lineN,y.lineN)).concat(f.view.slice(y.index)),f.viewTo+=u):Bi(i)}var k=f.externalMeasured;k&&(l<k.lineN?k.lineN+=u:s<k.lineN+k.size&&(f.externalMeasured=null))}function Fi(i,s,l){i.curOp.viewChanged=!0;var u=i.display,f=i.display.externalMeasured;if(f&&s>=f.lineN&&s<f.lineN+f.size&&(u.externalMeasured=null),!(s<u.viewFrom||s>=u.viewTo)){var h=u.view[Sa(i,s)];if(h.node!=null){var g=h.changes||(h.changes=[]);Ee(g,l)==-1&&g.push(l)}}}function Bi(i){i.display.viewFrom=i.display.viewTo=i.doc.first,i.display.view=[],i.display.viewOffset=0}function xc(i,s,l,u){var f=Sa(i,s),h,g=i.display.view;if(!ii||l==i.doc.first+i.doc.size)return{index:f,lineN:l};for(var _=i.display.viewFrom,y=0;y<f;y++)_+=g[y].size;if(_!=s){if(u>0){if(f==g.length-1)return null;h=_+g[f].size-s,f++}else h=_-s;s+=h,l+=h}for(;Wp(i.doc,l)!=l;){if(f==(u<0?0:g.length-1))return null;l+=u*g[f-(u<0?1:0)].size,f+=u}return{index:f,lineN:l}}function cV(i,s,l){var u=i.display,f=u.view;f.length==0||s>=u.viewTo||l<=u.viewFrom?(u.view=Tc(i,s,l),u.viewFrom=s):(u.viewFrom>s?u.view=Tc(i,s,u.viewFrom).concat(u.view):u.viewFrom<s&&(u.view=u.view.slice(Sa(i,s))),u.viewFrom=s,u.viewTo<l?u.view=u.view.concat(Tc(i,u.viewTo,l)):u.viewTo>l&&(u.view=u.view.slice(0,Sa(i,l)))),u.viewTo=l}function lT(i){for(var s=i.display.view,l=0,u=0;u<s.length;u++){var f=s[u];!f.hidden&&(!f.node||f.changes)&&++l}return l}function du(i){i.display.input.showSelection(i.display.input.prepareSelection())}function cT(i,s){s===void 0&&(s=!0);var l=i.doc,u={},f=u.cursors=document.createDocumentFragment(),h=u.selection=document.createDocumentFragment(),g=i.options.$customCursor;g&&(s=!0);for(var _=0;_<l.sel.ranges.length;_++)if(!(!s&&_==l.sel.primIndex)){var y=l.sel.ranges[_];if(!(y.from().line>=i.display.viewTo||y.to().line<i.display.viewFrom)){var k=y.empty();if(g){var L=g(i,y);L&&nm(i,L,f)}else(k||i.options.showCursorWhenSelecting)&&nm(i,y.head,f);k||fV(i,y,h)}}return u}function nm(i,s,l){var u=bn(i,s,"div",null,null,!i.options.singleCursorHeightPerLine),f=l.appendChild(E("div","\xA0","CodeMirror-cursor"));if(f.style.left=u.left+"px",f.style.top=u.top+"px",f.style.height=Math.max(0,u.bottom-u.top)*i.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(i.getWrapperElement().className)){var h=Sc(i,s,"div",null,null),g=h.right-h.left;f.style.width=(g>0?g:i.defaultCharWidth())+"px"}if(u.other){var _=l.appendChild(E("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));_.style.display="",_.style.left=u.other.left+"px",_.style.top=u.other.top+"px",_.style.height=(u.other.bottom-u.other.top)*.85+"px"}}function Ac(i,s){return i.top-s.top||i.left-s.left}function fV(i,s,l){var u=i.display,f=i.doc,h=document.createDocumentFragment(),g=XE(i.display),_=g.left,y=Math.max(u.sizerWidth,Ta(i)-u.sizer.offsetLeft)-g.right,k=f.direction=="ltr";function L(ye,Oe,Fe,De){Oe<0&&(Oe=0),Oe=Math.round(Oe),De=Math.round(De),h.appendChild(E("div",null,"CodeMirror-selected","position: absolute; left: "+ye+`px; top: `+Oe+"px; width: "+(Fe??y-ye)+`px; height: `+(De-Oe)+"px"))}function $(ye,Oe,Fe){var De=Re(f,ye),Je=De.text.length,vt,Vt;function At(Bt,xr){return Sc(i,J(ye,Bt),"div",De,xr)}function $r(Bt,xr,rr){var jt=oT(i,De,null,Bt),Ht=xr=="ltr"==(rr=="after")?"left":"right",Rt=rr=="after"?jt.begin:jt.end-(/\s/.test(De.text.charAt(jt.end-1))?2:1);return At(Rt,Ht)[Ht]}var Sr=nt(De,f.direction);return Pi(Sr,Oe||0,Fe??Je,function(Bt,xr,rr,jt){var Ht=rr=="ltr",Rt=At(Bt,Ht?"left":"right"),Ar=At(xr-1,Ht?"right":"left"),qs=Oe==null&&Bt==0,zi=Fe==null&&xr==Je,ur=jt==0,Mn=!Sr||jt==Sr.length-1;if(Ar.top-Rt.top<=3){var Qt=(k?qs:zi)&&ur,Nm=(k?zi:qs)&&Mn,li=Qt?_:(Ht?Rt:Ar).left,Pa=Nm?y:(Ht?Ar:Rt).right;L(li,Rt.top,Pa-li,Rt.bottom)}else{var Ia,mr,Ys,Pm;Ht?(Ia=k&&qs&&ur?_:Rt.left,mr=k?y:$r(Bt,rr,"before"),Ys=k?_:$r(xr,rr,"after"),Pm=k&&zi&&Mn?y:Ar.right):(Ia=k?$r(Bt,rr,"before"):_,mr=!k&&qs&&ur?y:Rt.right,Ys=!k&&zi&&Mn?_:Ar.left,Pm=k?$r(xr,rr,"after"):y),L(Ia,Rt.top,mr-Ia,Rt.bottom),Rt.bottom<Ar.top&&L(_,Rt.bottom,null,Ar.top),L(Ys,Ar.top,Pm-Ys,Ar.bottom)}(!vt||Ac(Rt,vt)<0)&&(vt=Rt),Ac(Ar,vt)<0&&(vt=Ar),(!Vt||Ac(Rt,Vt)<0)&&(Vt=Rt),Ac(Ar,Vt)<0&&(Vt=Ar)}),{start:vt,end:Vt}}var Y=s.from(),z=s.to();if(Y.line==z.line)$(Y.line,Y.ch,z.ch);else{var te=Re(f,Y.line),de=Re(f,z.line),ge=_n(te)==_n(de),be=$(Y.line,Y.ch,ge?te.text.length+1:null).end,we=$(z.line,ge?0:null,z.ch).start;ge&&(be.top<we.top-2?(L(be.right,be.top,null,be.bottom),L(_,we.top,we.left,we.bottom)):L(be.right,be.top,we.left-be.right,be.bottom)),be.bottom<we.top&&L(_,be.bottom,null,we.top)}l.appendChild(h)}function im(i){if(i.state.focused){var s=i.display;clearInterval(s.blinker);var l=!0;s.cursorDiv.style.visibility="",i.options.cursorBlinkRate>0?s.blinker=setInterval(function(){i.hasFocus()||Rs(i),s.cursorDiv.style.visibility=(l=!l)?"":"hidden"},i.options.cursorBlinkRate):i.options.cursorBlinkRate<0&&(s.cursorDiv.style.visibility="hidden")}}function fT(i){i.hasFocus()||(i.display.input.focus(),i.state.focused||sm(i))}function am(i){i.state.delayingBlurEvent=!0,setTimeout(function(){i.state.delayingBlurEvent&&(i.state.delayingBlurEvent=!1,i.state.focused&&Rs(i))},100)}function sm(i,s){i.state.delayingBlurEvent&&!i.state.draggingText&&(i.state.delayingBlurEvent=!1),i.options.readOnly!="nocursor"&&(i.state.focused||(Pt(i,"focus",i,s),i.state.focused=!0,Ie(i.display.wrapper,"CodeMirror-focused"),!i.curOp&&i.display.selForContextMenu!=i.doc.sel&&(i.display.input.reset(),b&&setTimeout(function(){return i.display.input.reset(!0)},20)),i.display.input.receivedFocus()),im(i))}function Rs(i,s){i.state.delayingBlurEvent||(i.state.focused&&(Pt(i,"blur",i,s),i.state.focused=!1,U(i.display.wrapper,"CodeMirror-focused")),clearInterval(i.display.blinker),setTimeout(function(){i.state.focused||(i.display.shift=!1)},150))}function Oc(i){for(var s=i.display,l=s.lineDiv.offsetTop,u=Math.max(0,s.scroller.getBoundingClientRect().top),f=s.lineDiv.getBoundingClientRect().top,h=0,g=0;g<s.view.length;g++){var _=s.view[g],y=i.options.lineWrapping,k=void 0,L=0;if(!_.hidden){if(f+=_.line.height,p&&v<8){var $=_.node.offsetTop+_.node.offsetHeight;k=$-l,l=$}else{var Y=_.node.getBoundingClientRect();k=Y.bottom-Y.top,!y&&_.text.firstChild&&(L=_.text.firstChild.getBoundingClientRect().right-Y.left-1)}var z=_.line.height-k;if((z>.005||z<-.005)&&(f<u&&(h-=z),Gr(_.line,k),dT(_.line),_.rest))for(var te=0;te<_.rest.length;te++)dT(_.rest[te]);if(L>i.display.sizerWidth){var de=Math.ceil(L/Ls(i.display));de>i.display.maxLineLength&&(i.display.maxLineLength=de,i.display.maxLine=_.line,i.display.maxLineChanged=!0)}}}Math.abs(h)>2&&(s.scroller.scrollTop+=h)}function dT(i){if(i.widgets)for(var s=0;s<i.widgets.length;++s){var l=i.widgets[s],u=l.node.parentNode;u&&(l.height=u.offsetHeight)}}function Nc(i,s,l){var u=l&&l.top!=null?Math.max(0,l.top):i.scroller.scrollTop;u=Math.floor(u-Cc(i));var f=l&&l.bottom!=null?l.bottom:u+i.wrapper.clientHeight,h=M(s,u),g=M(s,f);if(l&&l.ensure){var _=l.ensure.from.line,y=l.ensure.to.line;_<h?(h=_,g=M(s,ai(Re(s,_))+i.wrapper.clientHeight)):Math.min(y,s.lastLine())>=g&&(h=M(s,ai(Re(s,y))-i.wrapper.clientHeight),g=y)}return{from:h,to:Math.max(g,h+1)}}function dV(i,s){if(!It(i,"scrollCursorIntoView")){var l=i.display,u=l.sizer.getBoundingClientRect(),f=null,h=l.wrapper.ownerDocument;if(s.top+u.top<0?f=!0:s.bottom+u.top>(h.defaultView.innerHeight||h.documentElement.clientHeight)&&(f=!1),f!=null&&!O){var g=E("div","\u200B",null,`position: absolute; top: `+(s.top-l.viewOffset-Cc(i.display))+`px; height: `+(s.bottom-s.top+Rn(i)+l.barHeight)+`px; left: `+s.left+"px; width: "+Math.max(2,s.right-s.left)+"px;");i.display.lineSpace.appendChild(g),g.scrollIntoView(f),i.display.lineSpace.removeChild(g)}}}function hV(i,s,l,u){u==null&&(u=0);var f;!i.options.lineWrapping&&s==l&&(l=s.sticky=="before"?J(s.line,s.ch+1,"before"):s,s=s.ch?J(s.line,s.sticky=="before"?s.ch-1:s.ch,"after"):s);for(var h=0;h<5;h++){var g=!1,_=bn(i,s),y=!l||l==s?_:bn(i,l);f={left:Math.min(_.left,y.left),top:Math.min(_.top,y.top)-u,right:Math.max(_.left,y.left),bottom:Math.max(_.bottom,y.bottom)+u};var k=om(i,f),L=i.doc.scrollTop,$=i.doc.scrollLeft;if(k.scrollTop!=null&&(pu(i,k.scrollTop),Math.abs(i.doc.scrollTop-L)>1&&(g=!0)),k.scrollLeft!=null&&(xa(i,k.scrollLeft),Math.abs(i.doc.scrollLeft-$)>1&&(g=!0)),!g)break}return f}function pV(i,s){var l=om(i,s);l.scrollTop!=null&&pu(i,l.scrollTop),l.scrollLeft!=null&&xa(i,l.scrollLeft)}function om(i,s){var l=i.display,u=Is(i.display);s.top<0&&(s.top=0);var f=i.curOp&&i.curOp.scrollTop!=null?i.curOp.scrollTop:l.scroller.scrollTop,h=Kp(i),g={};s.bottom-s.top>h&&(s.bottom=s.top+h);var _=i.doc.height+Yp(l),y=s.top<u,k=s.bottom>_-u;if(s.top<f)g.scrollTop=y?0:s.top;else if(s.bottom>f+h){var L=Math.min(s.top,(k?_:s.bottom)-h);L!=f&&(g.scrollTop=L)}var $=i.options.fixedGutter?0:l.gutters.offsetWidth,Y=i.curOp&&i.curOp.scrollLeft!=null?i.curOp.scrollLeft:l.scroller.scrollLeft-$,z=Ta(i)-l.gutters.offsetWidth,te=s.right-s.left>z;return te&&(s.right=s.left+z),s.left<10?g.scrollLeft=0:s.left<Y?g.scrollLeft=Math.max(0,s.left+$-(te?0:10)):s.right>z+Y-3&&(g.scrollLeft=s.right+(te?0:10)-z),g}function um(i,s){s!=null&&(Pc(i),i.curOp.scrollTop=(i.curOp.scrollTop==null?i.doc.scrollTop:i.curOp.scrollTop)+s)}function Ds(i){Pc(i);var s=i.getCursor();i.curOp.scrollToPos={from:s,to:s,margin:i.options.cursorScrollMargin}}function hu(i,s,l){(s!=null||l!=null)&&Pc(i),s!=null&&(i.curOp.scrollLeft=s),l!=null&&(i.curOp.scrollTop=l)}function mV(i,s){Pc(i),i.curOp.scrollToPos=s}function Pc(i){var s=i.curOp.scrollToPos;if(s){i.curOp.scrollToPos=null;var l=aT(i,s.from),u=aT(i,s.to);hT(i,l,u,s.margin)}}function hT(i,s,l,u){var f=om(i,{left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-u,right:Math.max(s.right,l.right),bottom:Math.max(s.bottom,l.bottom)+u});hu(i,f.scrollLeft,f.scrollTop)}function pu(i,s){Math.abs(i.doc.scrollTop-s)<2||(a||cm(i,{top:s}),pT(i,s,!0),a&&cm(i),gu(i,100))}function pT(i,s,l){s=Math.max(0,Math.min(i.display.scroller.scrollHeight-i.display.scroller.clientHeight,s)),!(i.display.scroller.scrollTop==s&&!l)&&(i.doc.scrollTop=s,i.display.scrollbars.setScrollTop(s),i.display.scroller.scrollTop!=s&&(i.display.scroller.scrollTop=s))}function xa(i,s,l,u){s=Math.max(0,Math.min(s,i.display.scroller.scrollWidth-i.display.scroller.clientWidth)),!((l?s==i.doc.scrollLeft:Math.abs(i.doc.scrollLeft-s)<2)&&!u)&&(i.doc.scrollLeft=s,bT(i),i.display.scroller.scrollLeft!=s&&(i.display.scroller.scrollLeft=s),i.display.scrollbars.setScrollLeft(s))}function mu(i){var s=i.display,l=s.gutters.offsetWidth,u=Math.round(i.doc.height+Yp(i.display));return{clientHeight:s.scroller.clientHeight,viewHeight:s.wrapper.clientHeight,scrollWidth:s.scroller.scrollWidth,clientWidth:s.scroller.clientWidth,viewWidth:s.wrapper.clientWidth,barLeft:i.options.fixedGutter?l:0,docHeight:u,scrollHeight:u+Rn(i)+s.barHeight,nativeBarWidth:s.nativeBarWidth,gutterWidth:l}}var Aa=function(i,s,l){this.cm=l;var u=this.vert=E("div",[E("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),f=this.horiz=E("div",[E("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");u.tabIndex=f.tabIndex=-1,i(u),i(f),$e(u,"scroll",function(){u.clientHeight&&s(u.scrollTop,"vertical")}),$e(f,"scroll",function(){f.clientWidth&&s(f.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,p&&v<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Aa.prototype.update=function(i){var s=i.scrollWidth>i.clientWidth+1,l=i.scrollHeight>i.clientHeight+1,u=i.nativeBarWidth;if(l){this.vert.style.display="block",this.vert.style.bottom=s?u+"px":"0";var f=i.viewHeight-(s?u:0);this.vert.firstChild.style.height=Math.max(0,i.scrollHeight-i.clientHeight+f)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(s){this.horiz.style.display="block",this.horiz.style.right=l?u+"px":"0",this.horiz.style.left=i.barLeft+"px";var h=i.viewWidth-i.barLeft-(l?u:0);this.horiz.firstChild.style.width=Math.max(0,i.scrollWidth-i.clientWidth+h)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&i.clientHeight>0&&(u==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:l?u:0,bottom:s?u:0}},Aa.prototype.setScrollLeft=function(i){this.horiz.scrollLeft!=i&&(this.horiz.scrollLeft=i),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Aa.prototype.setScrollTop=function(i){this.vert.scrollTop!=i&&(this.vert.scrollTop=i),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Aa.prototype.zeroWidthHack=function(){var i=R&&!j?"12px":"18px";this.horiz.style.height=this.vert.style.width=i,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new xe,this.disableVert=new xe},Aa.prototype.enableZeroWidthBar=function(i,s,l){i.style.visibility="";function u(){var f=i.getBoundingClientRect(),h=l=="vert"?document.elementFromPoint(f.right-1,(f.top+f.bottom)/2):document.elementFromPoint((f.right+f.left)/2,f.bottom-1);h!=i?i.style.visibility="hidden":s.set(1e3,u)}s.set(1e3,u)},Aa.prototype.clear=function(){var i=this.horiz.parentNode;i.removeChild(this.horiz),i.removeChild(this.vert)};var vu=function(){};vu.prototype.update=function(){return{bottom:0,right:0}},vu.prototype.setScrollLeft=function(){},vu.prototype.setScrollTop=function(){},vu.prototype.clear=function(){};function Ms(i,s){s||(s=mu(i));var l=i.display.barWidth,u=i.display.barHeight;mT(i,s);for(var f=0;f<4&&l!=i.display.barWidth||u!=i.display.barHeight;f++)l!=i.display.barWidth&&i.options.lineWrapping&&Oc(i),mT(i,mu(i)),l=i.display.barWidth,u=i.display.barHeight}function mT(i,s){var l=i.display,u=l.scrollbars.update(s);l.sizer.style.paddingRight=(l.barWidth=u.right)+"px",l.sizer.style.paddingBottom=(l.barHeight=u.bottom)+"px",l.heightForcer.style.borderBottom=u.bottom+"px solid transparent",u.right&&u.bottom?(l.scrollbarFiller.style.display="block",l.scrollbarFiller.style.height=u.bottom+"px",l.scrollbarFiller.style.width=u.right+"px"):l.scrollbarFiller.style.display="",u.bottom&&i.options.coverGutterNextToScrollbar&&i.options.fixedGutter?(l.gutterFiller.style.display="block",l.gutterFiller.style.height=u.bottom+"px",l.gutterFiller.style.width=s.gutterWidth+"px"):l.gutterFiller.style.display=""}var vT={native:Aa,null:vu};function gT(i){i.display.scrollbars&&(i.display.scrollbars.clear(),i.display.scrollbars.addClass&&U(i.display.wrapper,i.display.scrollbars.addClass)),i.display.scrollbars=new vT[i.options.scrollbarStyle](function(s){i.display.wrapper.insertBefore(s,i.display.scrollbarFiller),$e(s,"mousedown",function(){i.state.focused&&setTimeout(function(){return i.display.input.focus()},0)}),s.setAttribute("cm-not-content","true")},function(s,l){l=="horizontal"?xa(i,s):pu(i,s)},i),i.display.scrollbars.addClass&&Ie(i.display.wrapper,i.display.scrollbars.addClass)}var vV=0;function Oa(i){i.curOp={cm:i,viewChanged:!1,startHeight:i.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++vV,markArrays:null},YX(i.curOp)}function Na(i){var s=i.curOp;s&&XX(s,function(l){for(var u=0;u<l.ops.length;u++)l.ops[u].cm.curOp=null;gV(l)})}function gV(i){for(var s=i.ops,l=0;l<s.length;l++)_V(s[l]);for(var u=0;u<s.length;u++)bV(s[u]);for(var f=0;f<s.length;f++)yV(s[f]);for(var h=0;h<s.length;h++)kV(s[h]);for(var g=0;g<s.length;g++)EV(s[g])}function _V(i){var s=i.cm,l=s.display;CV(s),i.updateMaxLine&&zp(s),i.mustUpdate=i.viewChanged||i.forceUpdate||i.scrollTop!=null||i.scrollToPos&&(i.scrollToPos.from.line<l.viewFrom||i.scrollToPos.to.line>=l.viewTo)||l.maxLineChanged&&s.options.lineWrapping,i.update=i.mustUpdate&&new Ic(s,i.mustUpdate&&{top:i.scrollTop,ensure:i.scrollToPos},i.forceUpdate)}function bV(i){i.updatedDisplay=i.mustUpdate&&lm(i.cm,i.update)}function yV(i){var s=i.cm,l=s.display;i.updatedDisplay&&Oc(s),i.barMeasure=mu(s),l.maxLineChanged&&!s.options.lineWrapping&&(i.adjustWidthTo=QE(s,l.maxLine,l.maxLine.text.length).left+3,s.display.sizerWidth=i.adjustWidthTo,i.barMeasure.scrollWidth=Math.max(l.scroller.clientWidth,l.sizer.offsetLeft+i.adjustWidthTo+Rn(s)+s.display.barWidth),i.maxScrollLeft=Math.max(0,l.sizer.offsetLeft+i.adjustWidthTo-Ta(s))),(i.updatedDisplay||i.selectionChanged)&&(i.preparedSelection=l.input.prepareSelection())}function kV(i){var s=i.cm;i.adjustWidthTo!=null&&(s.display.sizer.style.minWidth=i.adjustWidthTo+"px",i.maxScrollLeft<s.doc.scrollLeft&&xa(s,Math.min(s.display.scroller.scrollLeft,i.maxScrollLeft),!0),s.display.maxLineChanged=!1);var l=i.focus&&i.focus==he(at(s));i.preparedSelection&&s.display.input.showSelection(i.preparedSelection,l),(i.updatedDisplay||i.startHeight!=s.doc.height)&&Ms(s,i.barMeasure),i.updatedDisplay&&dm(s,i.barMeasure),i.selectionChanged&&im(s),s.state.focused&&i.updateInput&&s.display.input.reset(i.typing),l&&fT(i.cm)}function EV(i){var s=i.cm,l=s.display,u=s.doc;if(i.updatedDisplay&&_T(s,i.update),l.wheelStartX!=null&&(i.scrollTop!=null||i.scrollLeft!=null||i.scrollToPos)&&(l.wheelStartX=l.wheelStartY=null),i.scrollTop!=null&&pT(s,i.scrollTop,i.forceScroll),i.scrollLeft!=null&&xa(s,i.scrollLeft,!0,!0),i.scrollToPos){var f=hV(s,Ke(u,i.scrollToPos.from),Ke(u,i.scrollToPos.to),i.scrollToPos.margin);dV(s,f)}var h=i.maybeHiddenMarkers,g=i.maybeUnhiddenMarkers;if(h)for(var _=0;_<h.length;++_)h[_].lines.length||Pt(h[_],"hide");if(g)for(var y=0;y<g.length;++y)g[y].lines.length&&Pt(g[y],"unhide");l.wrapper.offsetHeight&&(u.scrollTop=s.display.scroller.scrollTop),i.changeObjs&&Pt(s,"changes",s,i.changeObjs),i.update&&i.update.finish()}function Mr(i,s){if(i.curOp)return s();Oa(i);try{return s()}finally{Na(i)}}function Kt(i,s){return function(){if(i.curOp)return s.apply(i,arguments);Oa(i);try{return s.apply(i,arguments)}finally{Na(i)}}}function pr(i){return function(){if(this.curOp)return i.apply(this,arguments);Oa(this);try{return i.apply(this,arguments)}finally{Na(this)}}}function Xt(i){return function(){var s=this.cm;if(!s||s.curOp)return i.apply(this,arguments);Oa(s);try{return i.apply(this,arguments)}finally{Na(s)}}}function gu(i,s){i.doc.highlightFrontier<i.display.viewTo&&i.state.highlight.set(s,Te(TV,i))}function TV(i){var s=i.doc;if(!(s.highlightFrontier>=i.display.viewTo)){var l=+new Date+i.options.workTime,u=su(i,s.highlightFrontier),f=[];s.iter(u.line,Math.min(s.first+s.size,i.display.viewTo+500),function(h){if(u.line>=i.display.viewFrom){var g=h.styles,_=h.text.length>i.options.maxHighlightLength?In(s.mode,u.state):null,y=wE(i,h,u,!0);_&&(u.state=_),h.styles=y.styles;var k=h.styleClasses,L=y.classes;L?h.styleClasses=L:k&&(h.styleClasses=null);for(var $=!g||g.length!=h.styles.length||k!=L&&(!k||!L||k.bgClass!=L.bgClass||k.textClass!=L.textClass),Y=0;!$&&Y<g.length;++Y)$=g[Y]!=h.styles[Y];$&&f.push(u.line),h.stateAfter=u.save(),u.nextLine()}else h.text.length<=i.options.maxHighlightLength&&Bp(i,h.text,u),h.stateAfter=u.line%5==0?u.save():null,u.nextLine();if(+new Date>l)return gu(i,i.options.workDelay),!0}),s.highlightFrontier=u.line,s.modeFrontier=Math.max(s.modeFrontier,u.line),f.length&&Mr(i,function(){for(var h=0;h<f.length;h++)Fi(i,f[h],"text")})}}var Ic=function(i,s,l){var u=i.display;this.viewport=s,this.visible=Nc(u,i.doc,s),this.editorIsHidden=!u.wrapper.offsetWidth,this.wrapperHeight=u.wrapper.clientHeight,this.wrapperWidth=u.wrapper.clientWidth,this.oldDisplayWidth=Ta(i),this.force=l,this.dims=em(i),this.events=[]};Ic.prototype.signal=function(i,s){Dr(i,s)&&this.events.push(arguments)},Ic.prototype.finish=function(){for(var i=0;i<this.events.length;i++)Pt.apply(null,this.events[i])};function CV(i){var s=i.display;!s.scrollbarsClipped&&s.scroller.offsetWidth&&(s.nativeBarWidth=s.scroller.offsetWidth-s.scroller.clientWidth,s.heightForcer.style.height=Rn(i)+"px",s.sizer.style.marginBottom=-s.nativeBarWidth+"px",s.sizer.style.borderRightWidth=Rn(i)+"px",s.scrollbarsClipped=!0)}function wV(i){if(i.hasFocus())return null;var s=he(at(i));if(!s||!fe(i.display.lineDiv,s))return null;var l={activeElt:s};if(window.getSelection){var u=Pe(i).getSelection();u.anchorNode&&u.extend&&fe(i.display.lineDiv,u.anchorNode)&&(l.anchorNode=u.anchorNode,l.anchorOffset=u.anchorOffset,l.focusNode=u.focusNode,l.focusOffset=u.focusOffset)}return l}function SV(i){if(!(!i||!i.activeElt||i.activeElt==he(Ve(i.activeElt)))&&(i.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(i.activeElt.nodeName)&&i.anchorNode&&fe(document.body,i.anchorNode)&&fe(document.body,i.focusNode))){var s=i.activeElt.ownerDocument,l=s.defaultView.getSelection(),u=s.createRange();u.setEnd(i.anchorNode,i.anchorOffset),u.collapse(!1),l.removeAllRanges(),l.addRange(u),l.extend(i.focusNode,i.focusOffset)}}function lm(i,s){var l=i.display,u=i.doc;if(s.editorIsHidden)return Bi(i),!1;if(!s.force&&s.visible.from>=l.viewFrom&&s.visible.to<=l.viewTo&&(l.updateLineNumbers==null||l.updateLineNumbers>=l.viewTo)&&l.renderedView==l.view&&lT(i)==0)return!1;yT(i)&&(Bi(i),s.dims=em(i));var f=u.first+u.size,h=Math.max(s.visible.from-i.options.viewportMargin,u.first),g=Math.min(f,s.visible.to+i.options.viewportMargin);l.viewFrom<h&&h-l.viewFrom<20&&(h=Math.max(u.first,l.viewFrom)),l.viewTo>g&&l.viewTo-g<20&&(g=Math.min(f,l.viewTo)),ii&&(h=Wp(i.doc,h),g=BE(i.doc,g));var _=h!=l.viewFrom||g!=l.viewTo||l.lastWrapHeight!=s.wrapperHeight||l.lastWrapWidth!=s.wrapperWidth;cV(i,h,g),l.viewOffset=ai(Re(i.doc,l.viewFrom)),i.display.mover.style.top=l.viewOffset+"px";var y=lT(i);if(!_&&y==0&&!s.force&&l.renderedView==l.view&&(l.updateLineNumbers==null||l.updateLineNumbers>=l.viewTo))return!1;var k=wV(i);return y>4&&(l.lineDiv.style.display="none"),xV(i,l.updateLineNumbers,s.dims),y>4&&(l.lineDiv.style.display=""),l.renderedView=l.view,SV(k),N(l.cursorDiv),N(l.selectionDiv),l.gutters.style.height=l.sizer.style.minHeight=0,_&&(l.lastWrapHeight=s.wrapperHeight,l.lastWrapWidth=s.wrapperWidth,gu(i,400)),l.updateLineNumbers=null,!0}function _T(i,s){for(var l=s.viewport,u=!0;;u=!1){if(!u||!i.options.lineWrapping||s.oldDisplayWidth==Ta(i)){if(l&&l.top!=null&&(l={top:Math.min(i.doc.height+Yp(i.display)-Kp(i),l.top)}),s.visible=Nc(i.display,i.doc,l),s.visible.from>=i.display.viewFrom&&s.visible.to<=i.display.viewTo)break}else u&&(s.visible=Nc(i.display,i.doc,l));if(!lm(i,s))break;Oc(i);var f=mu(i);du(i),Ms(i,f),dm(i,f),s.force=!1}s.signal(i,"update",i),(i.display.viewFrom!=i.display.reportedViewFrom||i.display.viewTo!=i.display.reportedViewTo)&&(s.signal(i,"viewportChange",i,i.display.viewFrom,i.display.viewTo),i.display.reportedViewFrom=i.display.viewFrom,i.display.reportedViewTo=i.display.viewTo)}function cm(i,s){var l=new Ic(i,s);if(lm(i,l)){Oc(i),_T(i,l);var u=mu(i);du(i),Ms(i,u),dm(i,u),l.finish()}}function xV(i,s,l){var u=i.display,f=i.options.lineNumbers,h=u.lineDiv,g=h.firstChild;function _(te){var de=te.nextSibling;return b&&R&&i.display.currentWheelTarget==te?te.style.display="none":te.parentNode.removeChild(te),de}for(var y=u.view,k=u.viewFrom,L=0;L<y.length;L++){var $=y[L];if(!$.hidden)if(!$.node||$.node.parentNode!=h){var Y=eV(i,$,k,l);h.insertBefore(Y,g)}else{for(;g!=$.node;)g=_(g);var z=f&&s!=null&&s<=k&&$.lineNumber;$.changes&&(Ee($.changes,"gutter")>-1&&(z=!1),GE(i,$,k,l)),z&&(N($.lineNumber),$.lineNumber.appendChild(document.createTextNode(ve(i.options,k)))),g=$.node.nextSibling}k+=$.size}for(;g;)g=_(g)}function fm(i){var s=i.gutters.offsetWidth;i.sizer.style.marginLeft=s+"px",Yt(i,"gutterChanged",i)}function dm(i,s){i.display.sizer.style.minHeight=s.docHeight+"px",i.display.heightForcer.style.top=s.docHeight+"px",i.display.gutters.style.height=s.docHeight+i.display.barHeight+Rn(i)+"px"}function bT(i){var s=i.display,l=s.view;if(!(!s.alignWidgets&&(!s.gutters.firstChild||!i.options.fixedGutter))){for(var u=tm(s)-s.scroller.scrollLeft+i.doc.scrollLeft,f=s.gutters.offsetWidth,h=u+"px",g=0;g<l.length;g++)if(!l[g].hidden){i.options.fixedGutter&&(l[g].gutter&&(l[g].gutter.style.left=h),l[g].gutterBackground&&(l[g].gutterBackground.style.left=h));var _=l[g].alignable;if(_)for(var y=0;y<_.length;y++)_[y].style.left=h}i.options.fixedGutter&&(s.gutters.style.left=u+f+"px")}}function yT(i){if(!i.options.lineNumbers)return!1;var s=i.doc,l=ve(i.options,s.first+s.size-1),u=i.display;if(l.length!=u.lineNumChars){var f=u.measure.appendChild(E("div",[E("div",l)],"CodeMirror-linenumber CodeMirror-gutter-elt")),h=f.firstChild.offsetWidth,g=f.offsetWidth-h;return u.lineGutter.style.width="",u.lineNumInnerWidth=Math.max(h,u.lineGutter.offsetWidth-g)+1,u.lineNumWidth=u.lineNumInnerWidth+g,u.lineNumChars=u.lineNumInnerWidth?l.length:-1,u.lineGutter.style.width=u.lineNumWidth+"px",fm(i.display),!0}return!1}function hm(i,s){for(var l=[],u=!1,f=0;f<i.length;f++){var h=i[f],g=null;if(typeof h!="string"&&(g=h.style,h=h.className),h=="CodeMirror-linenumbers")if(s)u=!0;else continue;l.push({className:h,style:g})}return s&&!u&&l.push({className:"CodeMirror-linenumbers",style:null}),l}function kT(i){var s=i.gutters,l=i.gutterSpecs;N(s),i.lineGutter=null;for(var u=0;u<l.length;++u){var f=l[u],h=f.className,g=f.style,_=s.appendChild(E("div",null,"CodeMirror-gutter "+h));g&&(_.style.cssText=g),h=="CodeMirror-linenumbers"&&(i.lineGutter=_,_.style.width=(i.lineNumWidth||1)+"px")}s.style.display=l.length?"":"none",fm(i)}function _u(i){kT(i.display),Cr(i),bT(i)}function AV(i,s,l,u){var f=this;this.input=l,f.scrollbarFiller=E("div",null,"CodeMirror-scrollbar-filler"),f.scrollbarFiller.setAttribute("cm-not-content","true"),f.gutterFiller=E("div",null,"CodeMirror-gutter-filler"),f.gutterFiller.setAttribute("cm-not-content","true"),f.lineDiv=ee("div",null,"CodeMirror-code"),f.selectionDiv=E("div",null,null,"position: relative; z-index: 1"),f.cursorDiv=E("div",null,"CodeMirror-cursors"),f.measure=E("div",null,"CodeMirror-measure"),f.lineMeasure=E("div",null,"CodeMirror-measure"),f.lineSpace=ee("div",[f.measure,f.lineMeasure,f.selectionDiv,f.cursorDiv,f.lineDiv],null,"position: relative; outline: none");var h=ee("div",[f.lineSpace],"CodeMirror-lines");f.mover=E("div",[h],null,"position: relative"),f.sizer=E("div",[f.mover],"CodeMirror-sizer"),f.sizerWidth=null,f.heightForcer=E("div",null,null,"position: absolute; height: "+Qe+"px; width: 1px;"),f.gutters=E("div",null,"CodeMirror-gutters"),f.lineGutter=null,f.scroller=E("div",[f.sizer,f.heightForcer,f.gutters],"CodeMirror-scroll"),f.scroller.setAttribute("tabIndex","-1"),f.wrapper=E("div",[f.scrollbarFiller,f.gutterFiller,f.scroller],"CodeMirror"),T&&A===105&&(f.wrapper.style.clipPath="inset(0px)"),f.wrapper.setAttribute("translate","no"),p&&v<8&&(f.gutters.style.zIndex=-1,f.scroller.style.paddingRight=0),!b&&!(a&&P)&&(f.scroller.draggable=!0),i&&(i.appendChild?i.appendChild(f.wrapper):i(f.wrapper)),f.viewFrom=f.viewTo=s.first,f.reportedViewFrom=f.reportedViewTo=s.first,f.view=[],f.renderedView=null,f.externalMeasured=null,f.viewOffset=0,f.lastWrapHeight=f.lastWrapWidth=0,f.updateLineNumbers=null,f.nativeBarWidth=f.barHeight=f.barWidth=0,f.scrollbarsClipped=!1,f.lineNumWidth=f.lineNumInnerWidth=f.lineNumChars=null,f.alignWidgets=!1,f.cachedCharWidth=f.cachedTextHeight=f.cachedPaddingH=null,f.maxLine=null,f.maxLineLength=0,f.maxLineChanged=!1,f.wheelDX=f.wheelDY=f.wheelStartX=f.wheelStartY=null,f.shift=!1,f.selForContextMenu=null,f.activeTouch=null,f.gutterSpecs=hm(u.gutters,u.lineNumbers),kT(f),l.init(f)}var Lc=0,oi=null;p?oi=-.53:a?oi=15:T?oi=-.7:G&&(oi=-1/3);function ET(i){var s=i.wheelDeltaX,l=i.wheelDeltaY;return s==null&&i.detail&&i.axis==i.HORIZONTAL_AXIS&&(s=i.detail),l==null&&i.detail&&i.axis==i.VERTICAL_AXIS?l=i.detail:l==null&&(l=i.wheelDelta),{x:s,y:l}}function OV(i){var s=ET(i);return s.x*=oi,s.y*=oi,s}function TT(i,s){T&&A==102&&(i.display.chromeScrollHack==null?i.display.sizer.style.pointerEvents="none":clearTimeout(i.display.chromeScrollHack),i.display.chromeScrollHack=setTimeout(function(){i.display.chromeScrollHack=null,i.display.sizer.style.pointerEvents=""},100));var l=ET(s),u=l.x,f=l.y,h=oi;s.deltaMode===0&&(u=s.deltaX,f=s.deltaY,h=1);var g=i.display,_=g.scroller,y=_.scrollWidth>_.clientWidth,k=_.scrollHeight>_.clientHeight;if(u&&y||f&&k){if(f&&R&&b){e:for(var L=s.target,$=g.view;L!=_;L=L.parentNode)for(var Y=0;Y<$.length;Y++)if($[Y].node==L){i.display.currentWheelTarget=L;break e}}if(u&&!a&&!F&&h!=null){f&&k&&pu(i,Math.max(0,_.scrollTop+f*h)),xa(i,Math.max(0,_.scrollLeft+u*h)),(!f||f&&k)&&sr(s),g.wheelStartX=null;return}if(f&&h!=null){var z=f*h,te=i.doc.scrollTop,de=te+g.wrapper.clientHeight;z<0?te=Math.max(0,te+z-50):de=Math.min(i.doc.height,de+z+50),cm(i,{top:te,bottom:de})}Lc<20&&s.deltaMode!==0&&(g.wheelStartX==null?(g.wheelStartX=_.scrollLeft,g.wheelStartY=_.scrollTop,g.wheelDX=u,g.wheelDY=f,setTimeout(function(){if(g.wheelStartX!=null){var ge=_.scrollLeft-g.wheelStartX,be=_.scrollTop-g.wheelStartY,we=be&&g.wheelDY&&be/g.wheelDY||ge&&g.wheelDX&&ge/g.wheelDX;g.wheelStartX=g.wheelStartY=null,we&&(oi=(oi*Lc+we)/(Lc+1),++Lc)}},200)):(g.wheelDX+=u,g.wheelDY+=f))}}var zr=function(i,s){this.ranges=i,this.primIndex=s};zr.prototype.primary=function(){return this.ranges[this.primIndex]},zr.prototype.equals=function(i){if(i==this)return!0;if(i.primIndex!=this.primIndex||i.ranges.length!=this.ranges.length)return!1;for(var s=0;s<this.ranges.length;s++){var l=this.ranges[s],u=i.ranges[s];if(!ct(l.anchor,u.anchor)||!ct(l.head,u.head))return!1}return!0},zr.prototype.deepCopy=function(){for(var i=[],s=0;s<this.ranges.length;s++)i[s]=new ft(qt(this.ranges[s].anchor),qt(this.ranges[s].head));return new zr(i,this.primIndex)},zr.prototype.somethingSelected=function(){for(var i=0;i<this.ranges.length;i++)if(!this.ranges[i].empty())return!0;return!1},zr.prototype.contains=function(i,s){s||(s=i);for(var l=0;l<this.ranges.length;l++){var u=this.ranges[l];if(Ce(s,u.from())>=0&&Ce(i,u.to())<=0)return l}return-1};var ft=function(i,s){this.anchor=i,this.head=s};ft.prototype.from=function(){return As(this.anchor,this.head)},ft.prototype.to=function(){return Tr(this.anchor,this.head)},ft.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function yn(i,s,l){var u=i&&i.options.selectionsMayTouch,f=s[l];s.sort(function(Y,z){return Ce(Y.from(),z.from())}),l=Ee(s,f);for(var h=1;h<s.length;h++){var g=s[h],_=s[h-1],y=Ce(_.to(),g.from());if(u&&!g.empty()?y>0:y>=0){var k=As(_.from(),g.from()),L=Tr(_.to(),g.to()),$=_.empty()?g.from()==g.head:_.from()==_.head;h<=l&&--l,s.splice(--h,2,new ft($?L:k,$?k:L))}}return new zr(s,l)}function Hi(i,s){return new zr([new ft(i,s||i)],0)}function Ui(i){return i.text?J(i.from.line+i.text.length-1,Ye(i.text).length+(i.text.length==1?i.from.ch:0)):i.to}function CT(i,s){if(Ce(i,s.from)<0)return i;if(Ce(i,s.to)<=0)return Ui(s);var l=i.line+s.text.length-(s.to.line-s.from.line)-1,u=i.ch;return i.line==s.to.line&&(u+=Ui(s).ch-s.to.ch),J(l,u)}function pm(i,s){for(var l=[],u=0;u<i.sel.ranges.length;u++){var f=i.sel.ranges[u];l.push(new ft(CT(f.anchor,s),CT(f.head,s)))}return yn(i.cm,l,i.sel.primIndex)}function wT(i,s,l){return i.line==s.line?J(l.line,i.ch-s.ch+l.ch):J(l.line+(i.line-s.line),i.ch)}function NV(i,s,l){for(var u=[],f=J(i.first,0),h=f,g=0;g<s.length;g++){var _=s[g],y=wT(_.from,f,h),k=wT(Ui(_),f,h);if(f=_.to,h=k,l=="around"){var L=i.sel.ranges[g],$=Ce(L.head,L.anchor)<0;u[g]=new ft($?k:y,$?y:k)}else u[g]=new ft(y,y)}return new zr(u,i.sel.primIndex)}function mm(i){i.doc.mode=ws(i.options,i.doc.modeOption),bu(i)}function bu(i){i.doc.iter(function(s){s.stateAfter&&(s.stateAfter=null),s.styles&&(s.styles=null)}),i.doc.modeFrontier=i.doc.highlightFrontier=i.doc.first,gu(i,100),i.state.modeGen++,i.curOp&&Cr(i)}function ST(i,s){return s.from.ch==0&&s.to.ch==0&&Ye(s.text)==""&&(!i.cm||i.cm.options.wholeLineUpdateBefore)}function vm(i,s,l,u){function f(we){return l?l[we]:null}function h(we,ye,Oe){FX(we,ye,Oe,u),Yt(we,"change",we,s)}function g(we,ye){for(var Oe=[],Fe=we;Fe<ye;++Fe)Oe.push(new Os(k[Fe],f(Fe),u));return Oe}var _=s.from,y=s.to,k=s.text,L=Re(i,_.line),$=Re(i,y.line),Y=Ye(k),z=f(k.length-1),te=y.line-_.line;if(s.full)i.insert(0,g(0,k.length)),i.remove(k.length,i.size-k.length);else if(ST(i,s)){var de=g(0,k.length-1);h($,$.text,z),te&&i.remove(_.line,te),de.length&&i.insert(_.line,de)}else if(L==$)if(k.length==1)h(L,L.text.slice(0,_.ch)+Y+L.text.slice(y.ch),z);else{var ge=g(1,k.length-1);ge.push(new Os(Y+L.text.slice(y.ch),z,u)),h(L,L.text.slice(0,_.ch)+k[0],f(0)),i.insert(_.line+1,ge)}else if(k.length==1)h(L,L.text.slice(0,_.ch)+k[0]+$.text.slice(y.ch),f(0)),i.remove(_.line+1,te);else{h(L,L.text.slice(0,_.ch)+k[0],f(0)),h($,Y+$.text.slice(y.ch),z);var be=g(1,k.length-1);te>1&&i.remove(_.line+1,te-1),i.insert(_.line+1,be)}Yt(i,"change",i,s)}function ji(i,s,l){function u(f,h,g){if(f.linked)for(var _=0;_<f.linked.length;++_){var y=f.linked[_];if(y.doc!=h){var k=g&&y.sharedHist;l&&!k||(s(y.doc,k),u(y.doc,f,k))}}}u(i,null,!0)}function xT(i,s){if(s.cm)throw new Error("This document is already in use.");i.doc=s,s.cm=i,rm(i),mm(i),AT(i),i.options.direction=s.direction,i.options.lineWrapping||zp(i),i.options.mode=s.modeOption,Cr(i)}function AT(i){(i.doc.direction=="rtl"?Ie:U)(i.display.lineDiv,"CodeMirror-rtl")}function PV(i){Mr(i,function(){AT(i),Cr(i)})}function Rc(i){this.done=[],this.undone=[],this.undoDepth=i?i.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=i?i.maxGeneration:1}function gm(i,s){var l={from:qt(s.from),to:Ui(s),text:ni(i,s.from,s.to)};return PT(i,l,s.from.line,s.to.line+1),ji(i,function(u){return PT(u,l,s.from.line,s.to.line+1)},!0),l}function OT(i){for(;i.length;){var s=Ye(i);if(s.ranges)i.pop();else break}}function IV(i,s){if(s)return OT(i.done),Ye(i.done);if(i.done.length&&!Ye(i.done).ranges)return Ye(i.done);if(i.done.length>1&&!i.done[i.done.length-2].ranges)return i.done.pop(),Ye(i.done)}function NT(i,s,l,u){var f=i.history;f.undone.length=0;var h=+new Date,g,_;if((f.lastOp==u||f.lastOrigin==s.origin&&s.origin&&(s.origin.charAt(0)=="+"&&f.lastModTime>h-(i.cm?i.cm.options.historyEventDelay:500)||s.origin.charAt(0)=="*"))&&(g=IV(f,f.lastOp==u)))_=Ye(g.changes),Ce(s.from,s.to)==0&&Ce(s.from,_.to)==0?_.to=Ui(s):g.changes.push(gm(i,s));else{var y=Ye(f.done);for((!y||!y.ranges)&&Dc(i.sel,f.done),g={changes:[gm(i,s)],generation:f.generation},f.done.push(g);f.done.length>f.undoDepth;)f.done.shift(),f.done[0].ranges||f.done.shift()}f.done.push(l),f.generation=++f.maxGeneration,f.lastModTime=f.lastSelTime=h,f.lastOp=f.lastSelOp=u,f.lastOrigin=f.lastSelOrigin=s.origin,_||Pt(i,"historyAdded")}function LV(i,s,l,u){var f=s.charAt(0);return f=="*"||f=="+"&&l.ranges.length==u.ranges.length&&l.somethingSelected()==u.somethingSelected()&&new Date-i.history.lastSelTime<=(i.cm?i.cm.options.historyEventDelay:500)}function RV(i,s,l,u){var f=i.history,h=u&&u.origin;l==f.lastSelOp||h&&f.lastSelOrigin==h&&(f.lastModTime==f.lastSelTime&&f.lastOrigin==h||LV(i,h,Ye(f.done),s))?f.done[f.done.length-1]=s:Dc(s,f.done),f.lastSelTime=+new Date,f.lastSelOrigin=h,f.lastSelOp=l,u&&u.clearRedo!==!1&&OT(f.undone)}function Dc(i,s){var l=Ye(s);l&&l.ranges&&l.equals(i)||s.push(i)}function PT(i,s,l,u){var f=s["spans_"+i.id],h=0;i.iter(Math.max(i.first,l),Math.min(i.first+i.size,u),function(g){g.markedSpans&&((f||(f=s["spans_"+i.id]={}))[h]=g.markedSpans),++h})}function DV(i){if(!i)return null;for(var s,l=0;l<i.length;++l)i[l].marker.explicitlyCleared?s||(s=i.slice(0,l)):s&&s.push(i[l]);return s?s.length?s:null:i}function MV(i,s){var l=s["spans_"+i.id];if(!l)return null;for(var u=[],f=0;f<s.text.length;++f)u.push(DV(l[f]));return u}function IT(i,s){var l=MV(i,s),u=Up(i,s);if(!l)return u;if(!u)return l;for(var f=0;f<l.length;++f){var h=l[f],g=u[f];if(h&&g)e:for(var _=0;_<g.length;++_){for(var y=g[_],k=0;k<h.length;++k)if(h[k].marker==y.marker)continue e;h.push(y)}else g&&(l[f]=g)}return l}function $s(i,s,l){for(var u=[],f=0;f<i.length;++f){var h=i[f];if(h.ranges){u.push(l?zr.prototype.deepCopy.call(h):h);continue}var g=h.changes,_=[];u.push({changes:_});for(var y=0;y<g.length;++y){var k=g[y],L=void 0;if(_.push({from:k.from,to:k.to,text:k.text}),s)for(var $ in k)(L=$.match(/^spans_(\d+)$/))&&Ee(s,Number(L[1]))>-1&&(Ye(_)[$]=k[$],delete k[$])}}return u}function _m(i,s,l,u){if(u){var f=i.anchor;if(l){var h=Ce(s,f)<0;h!=Ce(l,f)<0?(f=s,s=l):h!=Ce(s,l)<0&&(s=l)}return new ft(f,s)}else return new ft(l||s,s)}function Mc(i,s,l,u,f){f==null&&(f=i.cm&&(i.cm.display.shift||i.extend)),or(i,new zr([_m(i.sel.primary(),s,l,f)],0),u)}function LT(i,s,l){for(var u=[],f=i.cm&&(i.cm.display.shift||i.extend),h=0;h<i.sel.ranges.length;h++)u[h]=_m(i.sel.ranges[h],s[h],null,f);var g=yn(i.cm,u,i.sel.primIndex);or(i,g,l)}function bm(i,s,l,u){var f=i.sel.ranges.slice(0);f[s]=l,or(i,yn(i.cm,f,i.sel.primIndex),u)}function RT(i,s,l,u){or(i,Hi(s,l),u)}function $V(i,s,l){var u={ranges:s.ranges,update:function(f){this.ranges=[];for(var h=0;h<f.length;h++)this.ranges[h]=new ft(Ke(i,f[h].anchor),Ke(i,f[h].head))},origin:l&&l.origin};return Pt(i,"beforeSelectionChange",i,u),i.cm&&Pt(i.cm,"beforeSelectionChange",i.cm,u),u.ranges!=s.ranges?yn(i.cm,u.ranges,u.ranges.length-1):s}function DT(i,s,l){var u=i.history.done,f=Ye(u);f&&f.ranges?(u[u.length-1]=s,$c(i,s,l)):or(i,s,l)}function or(i,s,l){$c(i,s,l),RV(i,i.sel,i.cm?i.cm.curOp.id:NaN,l)}function $c(i,s,l){(Dr(i,"beforeSelectionChange")||i.cm&&Dr(i.cm,"beforeSelectionChange"))&&(s=$V(i,s,l));var u=l&&l.bias||(Ce(s.primary().head,i.sel.primary().head)<0?-1:1);MT(i,FT(i,s,u,!0)),!(l&&l.scroll===!1)&&i.cm&&i.cm.getOption("readOnly")!="nocursor"&&Ds(i.cm)}function MT(i,s){s.equals(i.sel)||(i.sel=s,i.cm&&(i.cm.curOp.updateInput=1,i.cm.curOp.selectionChanged=!0,Jr(i.cm)),Yt(i,"cursorActivity",i))}function $T(i){MT(i,FT(i,i.sel,null,!1))}function FT(i,s,l,u){for(var f,h=0;h<s.ranges.length;h++){var g=s.ranges[h],_=s.ranges.length==i.sel.ranges.length&&i.sel.ranges[h],y=Fc(i,g.anchor,_&&_.anchor,l,u),k=g.head==g.anchor?y:Fc(i,g.head,_&&_.head,l,u);(f||y!=g.anchor||k!=g.head)&&(f||(f=s.ranges.slice(0,h)),f[h]=new ft(y,k))}return f?yn(i.cm,f,s.primIndex):s}function Fs(i,s,l,u,f){var h=Re(i,s.line);if(h.markedSpans)for(var g=0;g<h.markedSpans.length;++g){var _=h.markedSpans[g],y=_.marker,k="selectLeft"in y?!y.selectLeft:y.inclusiveLeft,L="selectRight"in y?!y.selectRight:y.inclusiveRight;if((_.from==null||(k?_.from<=s.ch:_.from<s.ch))&&(_.to==null||(L?_.to>=s.ch:_.to>s.ch))){if(f&&(Pt(y,"beforeCursorEnter"),y.explicitlyCleared))if(h.markedSpans){--g;continue}else break;if(!y.atomic)continue;if(l){var $=y.find(u<0?1:-1),Y=void 0;if((u<0?L:k)&&($=BT(i,$,-u,$&&$.line==s.line?h:null)),$&&$.line==s.line&&(Y=Ce($,l))&&(u<0?Y<0:Y>0))return Fs(i,$,s,u,f)}var z=y.find(u<0?-1:1);return(u<0?k:L)&&(z=BT(i,z,u,z.line==s.line?h:null)),z?Fs(i,z,s,u,f):null}}return s}function Fc(i,s,l,u,f){var h=u||1,g=Fs(i,s,l,h,f)||!f&&Fs(i,s,l,h,!0)||Fs(i,s,l,-h,f)||!f&&Fs(i,s,l,-h,!0);return g||(i.cantEdit=!0,J(i.first,0))}function BT(i,s,l,u){return l<0&&s.ch==0?s.line>i.first?Ke(i,J(s.line-1)):null:l>0&&s.ch==(u||Re(i,s.line)).text.length?s.line<i.first+i.size-1?J(s.line+1,0):null:new J(s.line,s.ch+l)}function HT(i){i.setSelection(J(i.firstLine(),0),J(i.lastLine()),dt)}function UT(i,s,l){var u={canceled:!1,from:s.from,to:s.to,text:s.text,origin:s.origin,cancel:function(){return u.canceled=!0}};return l&&(u.update=function(f,h,g,_){f&&(u.from=Ke(i,f)),h&&(u.to=Ke(i,h)),g&&(u.text=g),_!==void 0&&(u.origin=_)}),Pt(i,"beforeChange",i,u),i.cm&&Pt(i.cm,"beforeChange",i.cm,u),u.canceled?(i.cm&&(i.cm.curOp.updateInput=2),null):{from:u.from,to:u.to,text:u.text,origin:u.origin}}function Bs(i,s,l){if(i.cm){if(!i.cm.curOp)return Kt(i.cm,Bs)(i,s,l);if(i.cm.state.suppressEdits)return}if(!((Dr(i,"beforeChange")||i.cm&&Dr(i.cm,"beforeChange"))&&(s=UT(i,s,!0),!s))){var u=IE&&!l&&RX(i,s.from,s.to);if(u)for(var f=u.length-1;f>=0;--f)jT(i,{from:u[f].from,to:u[f].to,text:f?[""]:s.text,origin:s.origin});else jT(i,s)}}function jT(i,s){if(!(s.text.length==1&&s.text[0]==""&&Ce(s.from,s.to)==0)){var l=pm(i,s);NT(i,s,l,i.cm?i.cm.curOp.id:NaN),yu(i,s,l,Up(i,s));var u=[];ji(i,function(f,h){!h&&Ee(u,f.history)==-1&&(qT(f.history,s),u.push(f.history)),yu(f,s,null,Up(f,s))})}}function Bc(i,s,l){var u=i.cm&&i.cm.state.suppressEdits;if(!(u&&!l)){for(var f=i.history,h,g=i.sel,_=s=="undo"?f.done:f.undone,y=s=="undo"?f.undone:f.done,k=0;k<_.length&&(h=_[k],!(l?h.ranges&&!h.equals(i.sel):!h.ranges));k++);if(k!=_.length){for(f.lastOrigin=f.lastSelOrigin=null;;)if(h=_.pop(),h.ranges){if(Dc(h,y),l&&!h.equals(i.sel)){or(i,h,{clearRedo:!1});return}g=h}else if(u){_.push(h);return}else break;var L=[];Dc(g,y),y.push({changes:L,generation:f.generation}),f.generation=h.generation||++f.maxGeneration;for(var $=Dr(i,"beforeChange")||i.cm&&Dr(i.cm,"beforeChange"),Y=function(de){var ge=h.changes[de];if(ge.origin=s,$&&!UT(i,ge,!1))return _.length=0,{};L.push(gm(i,ge));var be=de?pm(i,ge):Ye(_);yu(i,ge,be,IT(i,ge)),!de&&i.cm&&i.cm.scrollIntoView({from:ge.from,to:Ui(ge)});var we=[];ji(i,function(ye,Oe){!Oe&&Ee(we,ye.history)==-1&&(qT(ye.history,ge),we.push(ye.history)),yu(ye,ge,null,IT(ye,ge))})},z=h.changes.length-1;z>=0;--z){var te=Y(z);if(te)return te.v}}}}function WT(i,s){if(s!=0&&(i.first+=s,i.sel=new zr(rt(i.sel.ranges,function(f){return new ft(J(f.anchor.line+s,f.anchor.ch),J(f.head.line+s,f.head.ch))}),i.sel.primIndex),i.cm)){Cr(i.cm,i.first,i.first-s,s);for(var l=i.cm.display,u=l.viewFrom;u<l.viewTo;u++)Fi(i.cm,u,"gutter")}}function yu(i,s,l,u){if(i.cm&&!i.cm.curOp)return Kt(i.cm,yu)(i,s,l,u);if(s.to.line<i.first){WT(i,s.text.length-1-(s.to.line-s.from.line));return}if(!(s.from.line>i.lastLine())){if(s.from.line<i.first){var f=s.text.length-1-(i.first-s.from.line);WT(i,f),s={from:J(i.first,0),to:J(s.to.line+f,s.to.ch),text:[Ye(s.text)],origin:s.origin}}var h=i.lastLine();s.to.line>h&&(s={from:s.from,to:J(h,Re(i,h).text.length),text:[s.text[0]],origin:s.origin}),s.removed=ni(i,s.from,s.to),l||(l=pm(i,s)),i.cm?FV(i.cm,s,u):vm(i,s,u),$c(i,l,dt),i.cantEdit&&Fc(i,J(i.firstLine(),0))&&(i.cantEdit=!1)}}function FV(i,s,l){var u=i.doc,f=i.display,h=s.from,g=s.to,_=!1,y=h.line;i.options.lineWrapping||(y=w(_n(Re(u,h.line))),u.iter(y,g.line+1,function(z){if(z==f.maxLine)return _=!0,!0})),u.sel.contains(s.from,s.to)>-1&&Jr(i),vm(u,s,l,uT(i)),i.options.lineWrapping||(u.iter(y,h.line+s.text.length,function(z){var te=Ec(z);te>f.maxLineLength&&(f.maxLine=z,f.maxLineLength=te,f.maxLineChanged=!0,_=!1)}),_&&(i.curOp.updateMaxLine=!0)),xX(u,h.line),gu(i,400);var k=s.text.length-(g.line-h.line)-1;s.full?Cr(i):h.line==g.line&&s.text.length==1&&!ST(i.doc,s)?Fi(i,h.line,"text"):Cr(i,h.line,g.line+1,k);var L=Dr(i,"changes"),$=Dr(i,"change");if($||L){var Y={from:h,to:g,text:s.text,removed:s.removed,origin:s.origin};$&&Yt(i,"change",i,Y),L&&(i.curOp.changeObjs||(i.curOp.changeObjs=[])).push(Y)}i.display.selForContextMenu=null}function Hs(i,s,l,u,f){var h;u||(u=l),Ce(u,l)<0&&(h=[u,l],l=h[0],u=h[1]),typeof s=="string"&&(s=i.splitLines(s)),Bs(i,{from:l,to:u,text:s,origin:f})}function GT(i,s,l,u){l<i.line?i.line+=u:s<i.line&&(i.line=s,i.ch=0)}function zT(i,s,l,u){for(var f=0;f<i.length;++f){var h=i[f],g=!0;if(h.ranges){h.copied||(h=i[f]=h.deepCopy(),h.copied=!0);for(var _=0;_<h.ranges.length;_++)GT(h.ranges[_].anchor,s,l,u),GT(h.ranges[_].head,s,l,u);continue}for(var y=0;y<h.changes.length;++y){var k=h.changes[y];if(l<k.from.line)k.from=J(k.from.line+u,k.from.ch),k.to=J(k.to.line+u,k.to.ch);else if(s<=k.to.line){g=!1;break}}g||(i.splice(0,f+1),f=0)}}function qT(i,s){var l=s.from.line,u=s.to.line,f=s.text.length-(u-l)-1;zT(i.done,l,u,f),zT(i.undone,l,u,f)}function ku(i,s,l,u){var f=s,h=s;return typeof s=="number"?h=Re(i,TE(i,s)):f=w(s),f==null?null:(u(h,f)&&i.cm&&Fi(i.cm,f,l),h)}function Eu(i){this.lines=i,this.parent=null;for(var s=0,l=0;l<i.length;++l)i[l].parent=this,s+=i[l].height;this.height=s}Eu.prototype={chunkSize:function(){return this.lines.length},removeInner:function(i,s){for(var l=i,u=i+s;l<u;++l){var f=this.lines[l];this.height-=f.height,BX(f),Yt(f,"delete")}this.lines.splice(i,s)},collapse:function(i){i.push.apply(i,this.lines)},insertInner:function(i,s,l){this.height+=l,this.lines=this.lines.slice(0,i).concat(s).concat(this.lines.slice(i));for(var u=0;u<s.length;++u)s[u].parent=this},iterN:function(i,s,l){for(var u=i+s;i<u;++i)if(l(this.lines[i]))return!0}};function Tu(i){this.children=i;for(var s=0,l=0,u=0;u<i.length;++u){var f=i[u];s+=f.chunkSize(),l+=f.height,f.parent=this}this.size=s,this.height=l,this.parent=null}Tu.prototype={chunkSize:function(){return this.size},removeInner:function(i,s){this.size-=s;for(var l=0;l<this.children.length;++l){var u=this.children[l],f=u.chunkSize();if(i<f){var h=Math.min(s,f-i),g=u.height;if(u.removeInner(i,h),this.height-=g-u.height,f==h&&(this.children.splice(l--,1),u.parent=null),(s-=h)==0)break;i=0}else i-=f}if(this.size-s<25&&(this.children.length>1||!(this.children[0]instanceof Eu))){var _=[];this.collapse(_),this.children=[new Eu(_)],this.children[0].parent=this}},collapse:function(i){for(var s=0;s<this.children.length;++s)this.children[s].collapse(i)},insertInner:function(i,s,l){this.size+=s.length,this.height+=l;for(var u=0;u<this.children.length;++u){var f=this.children[u],h=f.chunkSize();if(i<=h){if(f.insertInner(i,s,l),f.lines&&f.lines.length>50){for(var g=f.lines.length%25+25,_=g;_<f.lines.length;){var y=new Eu(f.lines.slice(_,_+=25));f.height-=y.height,this.children.splice(++u,0,y),y.parent=this}f.lines=f.lines.slice(0,g),this.maybeSpill()}break}i-=h}},maybeSpill:function(){if(!(this.children.length<=10)){var i=this;do{var s=i.children.splice(i.children.length-5,5),l=new Tu(s);if(i.parent){i.size-=l.size,i.height-=l.height;var f=Ee(i.parent.children,i);i.parent.children.splice(f+1,0,l)}else{var u=new Tu(i.children);u.parent=i,i.children=[u,l],i=u}l.parent=i.parent}while(i.children.length>10);i.parent.maybeSpill()}},iterN:function(i,s,l){for(var u=0;u<this.children.length;++u){var f=this.children[u],h=f.chunkSize();if(i<h){var g=Math.min(s,h-i);if(f.iterN(i,g,l))return!0;if((s-=g)==0)break;i=0}else i-=h}}};var Cu=function(i,s,l){if(l)for(var u in l)l.hasOwnProperty(u)&&(this[u]=l[u]);this.doc=i,this.node=s};Cu.prototype.clear=function(){var i=this.doc.cm,s=this.line.widgets,l=this.line,u=w(l);if(!(u==null||!s)){for(var f=0;f<s.length;++f)s[f]==this&&s.splice(f--,1);s.length||(l.widgets=null);var h=cu(this);Gr(l,Math.max(0,l.height-h)),i&&(Mr(i,function(){YT(i,l,-h),Fi(i,u,"widget")}),Yt(i,"lineWidgetCleared",i,this,u))}},Cu.prototype.changed=function(){var i=this,s=this.height,l=this.doc.cm,u=this.line;this.height=null;var f=cu(this)-s;f&&($i(this.doc,u)||Gr(u,u.height+f),l&&Mr(l,function(){l.curOp.forceUpdate=!0,YT(l,u,f),Yt(l,"lineWidgetChanged",l,i,w(u))}))},hn(Cu);function YT(i,s,l){ai(s)<(i.curOp&&i.curOp.scrollTop||i.doc.scrollTop)&&um(i,l)}function BV(i,s,l,u){var f=new Cu(i,l,u),h=i.cm;return h&&f.noHScroll&&(h.display.alignWidgets=!0),ku(i,s,"widget",function(g){var _=g.widgets||(g.widgets=[]);if(f.insertAt==null?_.push(f):_.splice(Math.min(_.length,Math.max(0,f.insertAt)),0,f),f.line=g,h&&!$i(i,g)){var y=ai(g)<i.scrollTop;Gr(g,g.height+cu(f)),y&&um(h,f.height),h.curOp.forceUpdate=!0}return!0}),h&&Yt(h,"lineWidgetAdded",h,f,typeof s=="number"?s:w(s)),f}var KT=0,Wi=function(i,s){this.lines=[],this.type=s,this.doc=i,this.id=++KT};Wi.prototype.clear=function(){if(!this.explicitlyCleared){var i=this.doc.cm,s=i&&!i.curOp;if(s&&Oa(i),Dr(this,"clear")){var l=this.find();l&&Yt(this,"clear",l.from,l.to)}for(var u=null,f=null,h=0;h<this.lines.length;++h){var g=this.lines[h],_=ou(g.markedSpans,this);i&&!this.collapsed?Fi(i,w(g),"text"):i&&(_.to!=null&&(f=w(g)),_.from!=null&&(u=w(g))),g.markedSpans=NX(g.markedSpans,_),_.from==null&&this.collapsed&&!$i(this.doc,g)&&i&&Gr(g,Is(i.display))}if(i&&this.collapsed&&!i.options.lineWrapping)for(var y=0;y<this.lines.length;++y){var k=_n(this.lines[y]),L=Ec(k);L>i.display.maxLineLength&&(i.display.maxLine=k,i.display.maxLineLength=L,i.display.maxLineChanged=!0)}u!=null&&i&&this.collapsed&&Cr(i,u,f+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,i&&$T(i.doc)),i&&Yt(i,"markerCleared",i,this,u,f),s&&Na(i),this.parent&&this.parent.clear()}},Wi.prototype.find=function(i,s){i==null&&this.type=="bookmark"&&(i=1);for(var l,u,f=0;f<this.lines.length;++f){var h=this.lines[f],g=ou(h.markedSpans,this);if(g.from!=null&&(l=J(s?h:w(h),g.from),i==-1))return l;if(g.to!=null&&(u=J(s?h:w(h),g.to),i==1))return u}return l&&{from:l,to:u}},Wi.prototype.changed=function(){var i=this,s=this.find(-1,!0),l=this,u=this.doc.cm;!s||!u||Mr(u,function(){var f=s.line,h=w(s.line),g=Xp(u,h);if(g&&(eT(g),u.curOp.selectionChanged=u.curOp.forceUpdate=!0),u.curOp.updateMaxLine=!0,!$i(l.doc,f)&&l.height!=null){var _=l.height;l.height=null;var y=cu(l)-_;y&&Gr(f,f.height+y)}Yt(u,"markerChanged",u,i)})},Wi.prototype.attachLine=function(i){if(!this.lines.length&&this.doc.cm){var s=this.doc.cm.curOp;(!s.maybeHiddenMarkers||Ee(s.maybeHiddenMarkers,this)==-1)&&(s.maybeUnhiddenMarkers||(s.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(i)},Wi.prototype.detachLine=function(i){if(this.lines.splice(Ee(this.lines,i),1),!this.lines.length&&this.doc.cm){var s=this.doc.cm.curOp;(s.maybeHiddenMarkers||(s.maybeHiddenMarkers=[])).push(this)}},hn(Wi);function Us(i,s,l,u,f){if(u&&u.shared)return HV(i,s,l,u,f);if(i.cm&&!i.cm.curOp)return Kt(i.cm,Us)(i,s,l,u,f);var h=new Wi(i,f),g=Ce(s,l);if(u&&Se(u,h,!1),g>0||g==0&&h.clearWhenEmpty!==!1)return h;if(h.replacedWith&&(h.collapsed=!0,h.widgetNode=ee("span",[h.replacedWith],"CodeMirror-widget"),u.handleMouseEvents||h.widgetNode.setAttribute("cm-ignore-events","true"),u.insertLeft&&(h.widgetNode.insertLeft=!0)),h.collapsed){if(FE(i,s.line,s,l,h)||s.line!=l.line&&FE(i,l.line,s,l,h))throw new Error("Inserting collapsed marker partially overlapping an existing one");OX()}h.addToHistory&&NT(i,{from:s,to:l,origin:"markText"},i.sel,NaN);var _=s.line,y=i.cm,k;if(i.iter(_,l.line+1,function($){y&&h.collapsed&&!y.options.lineWrapping&&_n($)==y.display.maxLine&&(k=!0),h.collapsed&&_!=s.line&&Gr($,0),PX($,new _c(h,_==s.line?s.ch:null,_==l.line?l.ch:null),i.cm&&i.cm.curOp),++_}),h.collapsed&&i.iter(s.line,l.line+1,function($){$i(i,$)&&Gr($,0)}),h.clearOnEnter&&$e(h,"beforeCursorEnter",function(){return h.clear()}),h.readOnly&&(AX(),(i.history.done.length||i.history.undone.length)&&i.clearHistory()),h.collapsed&&(h.id=++KT,h.atomic=!0),y){if(k&&(y.curOp.updateMaxLine=!0),h.collapsed)Cr(y,s.line,l.line+1);else if(h.className||h.startStyle||h.endStyle||h.css||h.attributes||h.title)for(var L=s.line;L<=l.line;L++)Fi(y,L,"text");h.atomic&&$T(y.doc),Yt(y,"markerAdded",y,h)}return h}var wu=function(i,s){this.markers=i,this.primary=s;for(var l=0;l<i.length;++l)i[l].parent=this};wu.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var i=0;i<this.markers.length;++i)this.markers[i].clear();Yt(this,"clear")}},wu.prototype.find=function(i,s){return this.primary.find(i,s)},hn(wu);function HV(i,s,l,u,f){u=Se(u),u.shared=!1;var h=[Us(i,s,l,u,f)],g=h[0],_=u.widgetNode;return ji(i,function(y){_&&(u.widgetNode=_.cloneNode(!0)),h.push(Us(y,Ke(y,s),Ke(y,l),u,f));for(var k=0;k<y.linked.length;++k)if(y.linked[k].isParent)return;g=Ye(h)}),new wu(h,g)}function XT(i){return i.findMarks(J(i.first,0),i.clipPos(J(i.lastLine())),function(s){return s.parent})}function UV(i,s){for(var l=0;l<s.length;l++){var u=s[l],f=u.find(),h=i.clipPos(f.from),g=i.clipPos(f.to);if(Ce(h,g)){var _=Us(i,h,g,u.primary,u.primary.type);u.markers.push(_),_.parent=u}}}function jV(i){for(var s=function(u){var f=i[u],h=[f.primary.doc];ji(f.primary.doc,function(y){return h.push(y)});for(var g=0;g<f.markers.length;g++){var _=f.markers[g];Ee(h,_.doc)==-1&&(_.parent=null,f.markers.splice(g--,1))}},l=0;l<i.length;l++)s(l)}var WV=0,wr=function(i,s,l,u,f){if(!(this instanceof wr))return new wr(i,s,l,u,f);l==null&&(l=0),Tu.call(this,[new Eu([new Os("",null)])]),this.first=l,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=l;var h=J(l,0);this.sel=Hi(h),this.history=new Rc(null),this.id=++WV,this.modeOption=s,this.lineSep=u,this.direction=f=="rtl"?"rtl":"ltr",this.extend=!1,typeof i=="string"&&(i=this.splitLines(i)),vm(this,{from:h,to:h,text:i}),or(this,Hi(h),dt)};wr.prototype=ie(Tu.prototype,{constructor:wr,iter:function(i,s,l){l?this.iterN(i-this.first,s-i,l):this.iterN(this.first,this.first+this.size,i)},insert:function(i,s){for(var l=0,u=0;u<s.length;++u)l+=s[u].height;this.insertInner(i-this.first,s,l)},remove:function(i,s){this.removeInner(i-this.first,s)},getValue:function(i){var s=au(this,this.first,this.first+this.size);return i===!1?s:s.join(i||this.lineSeparator())},setValue:Xt(function(i){var s=J(this.first,0),l=this.first+this.size-1;Bs(this,{from:s,to:J(l,Re(this,l).text.length),text:this.splitLines(i),origin:"setValue",full:!0},!0),this.cm&&hu(this.cm,0,0),or(this,Hi(s),dt)}),replaceRange:function(i,s,l,u){s=Ke(this,s),l=l?Ke(this,l):s,Hs(this,i,s,l,u)},getRange:function(i,s,l){var u=ni(this,Ke(this,i),Ke(this,s));return l===!1?u:l===""?u.join(""):u.join(l||this.lineSeparator())},getLine:function(i){var s=this.getLineHandle(i);return s&&s.text},getLineHandle:function(i){if(ce(this,i))return Re(this,i)},getLineNumber:function(i){return w(i)},getLineHandleVisualStart:function(i){return typeof i=="number"&&(i=Re(this,i)),_n(i)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(i){return Ke(this,i)},getCursor:function(i){var s=this.sel.primary(),l;return i==null||i=="head"?l=s.head:i=="anchor"?l=s.anchor:i=="end"||i=="to"||i===!1?l=s.to():l=s.from(),l},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Xt(function(i,s,l){RT(this,Ke(this,typeof i=="number"?J(i,s||0):i),null,l)}),setSelection:Xt(function(i,s,l){RT(this,Ke(this,i),Ke(this,s||i),l)}),extendSelection:Xt(function(i,s,l){Mc(this,Ke(this,i),s&&Ke(this,s),l)}),extendSelections:Xt(function(i,s){LT(this,CE(this,i),s)}),extendSelectionsBy:Xt(function(i,s){var l=rt(this.sel.ranges,i);LT(this,CE(this,l),s)}),setSelections:Xt(function(i,s,l){if(i.length){for(var u=[],f=0;f<i.length;f++)u[f]=new ft(Ke(this,i[f].anchor),Ke(this,i[f].head||i[f].anchor));s==null&&(s=Math.min(i.length-1,this.sel.primIndex)),or(this,yn(this.cm,u,s),l)}}),addSelection:Xt(function(i,s,l){var u=this.sel.ranges.slice(0);u.push(new ft(Ke(this,i),Ke(this,s||i))),or(this,yn(this.cm,u,u.length-1),l)}),getSelection:function(i){for(var s=this.sel.ranges,l,u=0;u<s.length;u++){var f=ni(this,s[u].from(),s[u].to());l=l?l.concat(f):f}return i===!1?l:l.join(i||this.lineSeparator())},getSelections:function(i){for(var s=[],l=this.sel.ranges,u=0;u<l.length;u++){var f=ni(this,l[u].from(),l[u].to());i!==!1&&(f=f.join(i||this.lineSeparator())),s[u]=f}return s},replaceSelection:function(i,s,l){for(var u=[],f=0;f<this.sel.ranges.length;f++)u[f]=i;this.replaceSelections(u,s,l||"+input")},replaceSelections:Xt(function(i,s,l){for(var u=[],f=this.sel,h=0;h<f.ranges.length;h++){var g=f.ranges[h];u[h]={from:g.from(),to:g.to(),text:this.splitLines(i[h]),origin:l}}for(var _=s&&s!="end"&&NV(this,u,s),y=u.length-1;y>=0;y--)Bs(this,u[y]);_?DT(this,_):this.cm&&Ds(this.cm)}),undo:Xt(function(){Bc(this,"undo")}),redo:Xt(function(){Bc(this,"redo")}),undoSelection:Xt(function(){Bc(this,"undo",!0)}),redoSelection:Xt(function(){Bc(this,"redo",!0)}),setExtending:function(i){this.extend=i},getExtending:function(){return this.extend},historySize:function(){for(var i=this.history,s=0,l=0,u=0;u<i.done.length;u++)i.done[u].ranges||++s;for(var f=0;f<i.undone.length;f++)i.undone[f].ranges||++l;return{undo:s,redo:l}},clearHistory:function(){var i=this;this.history=new Rc(this.history),ji(this,function(s){return s.history=i.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(i){return i&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(i){return this.history.generation==(i||this.cleanGeneration)},getHistory:function(){return{done:$s(this.history.done),undone:$s(this.history.undone)}},setHistory:function(i){var s=this.history=new Rc(this.history);s.done=$s(i.done.slice(0),null,!0),s.undone=$s(i.undone.slice(0),null,!0)},setGutterMarker:Xt(function(i,s,l){return ku(this,i,"gutter",function(u){var f=u.gutterMarkers||(u.gutterMarkers={});return f[s]=l,!l&&hc(f)&&(u.gutterMarkers=null),!0})}),clearGutter:Xt(function(i){var s=this;this.iter(function(l){l.gutterMarkers&&l.gutterMarkers[i]&&ku(s,l,"gutter",function(){return l.gutterMarkers[i]=null,hc(l.gutterMarkers)&&(l.gutterMarkers=null),!0})})}),lineInfo:function(i){var s;if(typeof i=="number"){if(!ce(this,i)||(s=i,i=Re(this,i),!i))return null}else if(s=w(i),s==null)return null;return{line:s,handle:i,text:i.text,gutterMarkers:i.gutterMarkers,textClass:i.textClass,bgClass:i.bgClass,wrapClass:i.wrapClass,widgets:i.widgets}},addLineClass:Xt(function(i,s,l){return ku(this,i,s=="gutter"?"gutter":"class",function(u){var f=s=="text"?"textClass":s=="background"?"bgClass":s=="gutter"?"gutterClass":"wrapClass";if(!u[f])u[f]=l;else{if(ne(l).test(u[f]))return!1;u[f]+=" "+l}return!0})}),removeLineClass:Xt(function(i,s,l){return ku(this,i,s=="gutter"?"gutter":"class",function(u){var f=s=="text"?"textClass":s=="background"?"bgClass":s=="gutter"?"gutterClass":"wrapClass",h=u[f];if(h)if(l==null)u[f]=null;else{var g=h.match(ne(l));if(!g)return!1;var _=g.index+g[0].length;u[f]=h.slice(0,g.index)+(!g.index||_==h.length?"":" ")+h.slice(_)||null}else return!1;return!0})}),addLineWidget:Xt(function(i,s,l){return BV(this,i,s,l)}),removeLineWidget:function(i){i.clear()},markText:function(i,s,l){return Us(this,Ke(this,i),Ke(this,s),l,l&&l.type||"range")},setBookmark:function(i,s){var l={replacedWith:s&&(s.nodeType==null?s.widget:s),insertLeft:s&&s.insertLeft,clearWhenEmpty:!1,shared:s&&s.shared,handleMouseEvents:s&&s.handleMouseEvents};return i=Ke(this,i),Us(this,i,i,l,"bookmark")},findMarksAt:function(i){i=Ke(this,i);var s=[],l=Re(this,i.line).markedSpans;if(l)for(var u=0;u<l.length;++u){var f=l[u];(f.from==null||f.from<=i.ch)&&(f.to==null||f.to>=i.ch)&&s.push(f.marker.parent||f.marker)}return s},findMarks:function(i,s,l){i=Ke(this,i),s=Ke(this,s);var u=[],f=i.line;return this.iter(i.line,s.line+1,function(h){var g=h.markedSpans;if(g)for(var _=0;_<g.length;_++){var y=g[_];!(y.to!=null&&f==i.line&&i.ch>=y.to||y.from==null&&f!=i.line||y.from!=null&&f==s.line&&y.from>=s.ch)&&(!l||l(y.marker))&&u.push(y.marker.parent||y.marker)}++f}),u},getAllMarks:function(){var i=[];return this.iter(function(s){var l=s.markedSpans;if(l)for(var u=0;u<l.length;++u)l[u].from!=null&&i.push(l[u].marker)}),i},posFromIndex:function(i){var s,l=this.first,u=this.lineSeparator().length;return this.iter(function(f){var h=f.text.length+u;if(h>i)return s=i,!0;i-=h,++l}),Ke(this,J(l,s))},indexFromPos:function(i){i=Ke(this,i);var s=i.ch;if(i.line<this.first||i.ch<0)return 0;var l=this.lineSeparator().length;return this.iter(this.first,i.line,function(u){s+=u.text.length+l}),s},copy:function(i){var s=new wr(au(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return s.scrollTop=this.scrollTop,s.scrollLeft=this.scrollLeft,s.sel=this.sel,s.extend=!1,i&&(s.history.undoDepth=this.history.undoDepth,s.setHistory(this.getHistory())),s},linkedDoc:function(i){i||(i={});var s=this.first,l=this.first+this.size;i.from!=null&&i.from>s&&(s=i.from),i.to!=null&&i.to<l&&(l=i.to);var u=new wr(au(this,s,l),i.mode||this.modeOption,s,this.lineSep,this.direction);return i.sharedHist&&(u.history=this.history),(this.linked||(this.linked=[])).push({doc:u,sharedHist:i.sharedHist}),u.linked=[{doc:this,isParent:!0,sharedHist:i.sharedHist}],UV(u,XT(this)),u},unlinkDoc:function(i){if(i instanceof Et&&(i=i.doc),this.linked)for(var s=0;s<this.linked.length;++s){var l=this.linked[s];if(l.doc==i){this.linked.splice(s,1),i.unlinkDoc(this),jV(XT(this));break}}if(i.history==this.history){var u=[i.id];ji(i,function(f){return u.push(f.id)},!0),i.history=new Rc(null),i.history.done=$s(this.history.done,u),i.history.undone=$s(this.history.undone,u)}},iterLinkedDocs:function(i){ji(this,i)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(i){return this.lineSep?i.split(this.lineSep):Zr(i)},lineSeparator:function(){return this.lineSep||` `},setDirection:Xt(function(i){i!="rtl"&&(i="ltr"),i!=this.direction&&(this.direction=i,this.iter(function(s){return s.order=null}),this.cm&&PV(this.cm))})}),wr.prototype.eachLine=wr.prototype.iter;var VT=0;function GV(i){var s=this;if(QT(s),!(It(s,i)||si(s.display,i))){sr(i),p&&(VT=+new Date);var l=wa(s,i,!0),u=i.dataTransfer.files;if(!(!l||s.isReadOnly()))if(u&&u.length&&window.FileReader&&window.File)for(var f=u.length,h=Array(f),g=0,_=function(){++g==f&&Kt(s,function(){l=Ke(s.doc,l);var z={from:l,to:l,text:s.doc.splitLines(h.filter(function(te){return te!=null}).join(s.doc.lineSeparator())),origin:"paste"};Bs(s.doc,z),DT(s.doc,Hi(Ke(s.doc,l),Ke(s.doc,Ui(z))))})()},y=function(z,te){if(s.options.allowDropFileTypes&&Ee(s.options.allowDropFileTypes,z.type)==-1){_();return}var de=new FileReader;de.onerror=function(){return _()},de.onload=function(){var ge=de.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ge)){_();return}h[te]=ge,_()},de.readAsText(z)},k=0;k<u.length;k++)y(u[k],k);else{if(s.state.draggingText&&s.doc.sel.contains(l)>-1){s.state.draggingText(i),setTimeout(function(){return s.display.input.focus()},20);return}try{var L=i.dataTransfer.getData("Text");if(L){var $;if(s.state.draggingText&&!s.state.draggingText.copy&&($=s.listSelections()),$c(s.doc,Hi(l,l)),$)for(var Y=0;Y<$.length;++Y)Hs(s.doc,"",$[Y].anchor,$[Y].head,"drag");s.replaceSelection(L,"around","paste"),s.display.input.focus()}}catch{}}}}function zV(i,s){if(p&&(!i.state.draggingText||+new Date-VT<100)){Li(s);return}if(!(It(i,s)||si(i.display,s))&&(s.dataTransfer.setData("Text",i.getSelection()),s.dataTransfer.effectAllowed="copyMove",s.dataTransfer.setDragImage&&!G)){var l=E("img",null,null,"position: fixed; left: 0; top: 0;");l.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",F&&(l.width=l.height=1,i.display.wrapper.appendChild(l),l._top=l.offsetTop),s.dataTransfer.setDragImage(l,0,0),F&&l.parentNode.removeChild(l)}}function qV(i,s){var l=wa(i,s);if(l){var u=document.createDocumentFragment();nm(i,l,u),i.display.dragCursor||(i.display.dragCursor=E("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),i.display.lineSpace.insertBefore(i.display.dragCursor,i.display.cursorDiv)),W(i.display.dragCursor,u)}}function QT(i){i.display.dragCursor&&(i.display.lineSpace.removeChild(i.display.dragCursor),i.display.dragCursor=null)}function JT(i){if(document.getElementsByClassName){for(var s=document.getElementsByClassName("CodeMirror"),l=[],u=0;u<s.length;u++){var f=s[u].CodeMirror;f&&l.push(f)}l.length&&l[0].operation(function(){for(var h=0;h<l.length;h++)i(l[h])})}}var ZT=!1;function YV(){ZT||(KV(),ZT=!0)}function KV(){var i;$e(window,"resize",function(){i==null&&(i=setTimeout(function(){i=null,JT(XV)},100))}),$e(window,"blur",function(){return JT(Rs)})}function XV(i){var s=i.display;s.cachedCharWidth=s.cachedTextHeight=s.cachedPaddingH=null,s.scrollbarsClipped=!1,i.setSize()}for(var Gi={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Su=0;Su<10;Su++)Gi[Su+48]=Gi[Su+96]=String(Su);for(var Hc=65;Hc<=90;Hc++)Gi[Hc]=String.fromCharCode(Hc);for(var xu=1;xu<=12;xu++)Gi[xu+111]=Gi[xu+63235]="F"+xu;var ui={};ui.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},ui.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},ui.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},ui.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},ui.default=R?ui.macDefault:ui.pcDefault;function VV(i){var s=i.split(/-(?!$)/);i=s[s.length-1];for(var l,u,f,h,g=0;g<s.length-1;g++){var _=s[g];if(/^(cmd|meta|m)$/i.test(_))h=!0;else if(/^a(lt)?$/i.test(_))l=!0;else if(/^(c|ctrl|control)$/i.test(_))u=!0;else if(/^s(hift)?$/i.test(_))f=!0;else throw new Error("Unrecognized modifier name: "+_)}return l&&(i="Alt-"+i),u&&(i="Ctrl-"+i),h&&(i="Cmd-"+i),f&&(i="Shift-"+i),i}function QV(i){var s={};for(var l in i)if(i.hasOwnProperty(l)){var u=i[l];if(/^(name|fallthrough|(de|at)tach)$/.test(l))continue;if(u=="..."){delete i[l];continue}for(var f=rt(l.split(" "),VV),h=0;h<f.length;h++){var g=void 0,_=void 0;h==f.length-1?(_=f.join(" "),g=u):(_=f.slice(0,h+1).join(" "),g="...");var y=s[_];if(!y)s[_]=g;else if(y!=g)throw new Error("Inconsistent bindings for "+_)}delete i[l]}for(var k in s)i[k]=s[k];return i}function js(i,s,l,u){s=Uc(s);var f=s.call?s.call(i,u):s[i];if(f===!1)return"nothing";if(f==="...")return"multi";if(f!=null&&l(f))return"handled";if(s.fallthrough){if(Object.prototype.toString.call(s.fallthrough)!="[object Array]")return js(i,s.fallthrough,l,u);for(var h=0;h<s.fallthrough.length;h++){var g=js(i,s.fallthrough[h],l,u);if(g)return g}}}function eC(i){var s=typeof i=="string"?i:Gi[i.keyCode];return s=="Ctrl"||s=="Alt"||s=="Shift"||s=="Mod"}function tC(i,s,l){var u=i;return s.altKey&&u!="Alt"&&(i="Alt-"+i),(ae?s.metaKey:s.ctrlKey)&&u!="Ctrl"&&(i="Ctrl-"+i),(ae?s.ctrlKey:s.metaKey)&&u!="Mod"&&(i="Cmd-"+i),!l&&s.shiftKey&&u!="Shift"&&(i="Shift-"+i),i}function rC(i,s){if(F&&i.keyCode==34&&i.char)return!1;var l=Gi[i.keyCode];return l==null||i.altGraphKey?!1:(i.keyCode==3&&i.code&&(l=i.code),tC(l,i,s))}function Uc(i){return typeof i=="string"?ui[i]:i}function Ws(i,s){for(var l=i.doc.sel.ranges,u=[],f=0;f<l.length;f++){for(var h=s(l[f]);u.length&&Ce(h.from,Ye(u).to)<=0;){var g=u.pop();if(Ce(g.from,h.from)<0){h.from=g.from;break}}u.push(h)}Mr(i,function(){for(var _=u.length-1;_>=0;_--)Hs(i.doc,"",u[_].from,u[_].to,"+delete");Ds(i)})}function ym(i,s,l){var u=Ni(i.text,s+l,l);return u<0||u>i.text.length?null:u}function km(i,s,l){var u=ym(i,s.ch,l);return u==null?null:new J(s.line,u,l<0?"after":"before")}function Em(i,s,l,u,f){if(i){s.doc.direction=="rtl"&&(f=-f);var h=nt(l,s.doc.direction);if(h){var g=f<0?Ye(h):h[0],_=f<0==(g.level==1),y=_?"after":"before",k;if(g.level>0||s.doc.direction=="rtl"){var L=Ps(s,l);k=f<0?l.text.length-1:0;var $=Dn(s,L,k).top;k=Pn(function(Y){return Dn(s,L,Y).top==$},f<0==(g.level==1)?g.from:g.to-1,k),y=="before"&&(k=ym(l,k,1))}else k=f<0?g.to:g.from;return new J(u,k,y)}}return new J(u,f<0?l.text.length:0,f<0?"before":"after")}function JV(i,s,l,u){var f=nt(s,i.doc.direction);if(!f)return km(s,l,u);l.ch>=s.text.length?(l.ch=s.text.length,l.sticky="before"):l.ch<=0&&(l.ch=0,l.sticky="after");var h=Ii(f,l.ch,l.sticky),g=f[h];if(i.doc.direction=="ltr"&&g.level%2==0&&(u>0?g.to>l.ch:g.from<l.ch))return km(s,l,u);var _=function(be,we){return ym(s,be instanceof J?be.ch:be,we)},y,k=function(be){return i.options.lineWrapping?(y=y||Ps(i,s),oT(i,s,y,be)):{begin:0,end:s.text.length}},L=k(l.sticky=="before"?_(l,-1):l.ch);if(i.doc.direction=="rtl"||g.level==1){var $=g.level==1==u<0,Y=_(l,$?1:-1);if(Y!=null&&($?Y<=g.to&&Y<=L.end:Y>=g.from&&Y>=L.begin)){var z=$?"before":"after";return new J(l.line,Y,z)}}var te=function(be,we,ye){for(var Oe=function(vt,Vt){return Vt?new J(l.line,_(vt,1),"before"):new J(l.line,vt,"after")};be>=0&&be<f.length;be+=we){var Fe=f[be],De=we>0==(Fe.level!=1),Je=De?ye.begin:_(ye.end,-1);if(Fe.from<=Je&&Je<Fe.to||(Je=De?Fe.from:_(Fe.to,-1),ye.begin<=Je&&Je<ye.end))return Oe(Je,De)}},de=te(h+u,u,L);if(de)return de;var ge=u>0?L.end:_(L.begin,-1);return ge!=null&&!(u>0&&ge==s.text.length)&&(de=te(u>0?0:f.length-1,u,k(ge)),de)?de:null}var Au={selectAll:HT,singleSelection:function(i){return i.setSelection(i.getCursor("anchor"),i.getCursor("head"),dt)},killLine:function(i){return Ws(i,function(s){if(s.empty()){var l=Re(i.doc,s.head.line).text.length;return s.head.ch==l&&s.head.line<i.lastLine()?{from:s.head,to:J(s.head.line+1,0)}:{from:s.head,to:J(s.head.line,l)}}else return{from:s.from(),to:s.to()}})},deleteLine:function(i){return Ws(i,function(s){return{from:J(s.from().line,0),to:Ke(i.doc,J(s.to().line+1,0))}})},delLineLeft:function(i){return Ws(i,function(s){return{from:J(s.from().line,0),to:s.from()}})},delWrappedLineLeft:function(i){return Ws(i,function(s){var l=i.charCoords(s.head,"div").top+5,u=i.coordsChar({left:0,top:l},"div");return{from:u,to:s.from()}})},delWrappedLineRight:function(i){return Ws(i,function(s){var l=i.charCoords(s.head,"div").top+5,u=i.coordsChar({left:i.display.lineDiv.offsetWidth+100,top:l},"div");return{from:s.from(),to:u}})},undo:function(i){return i.undo()},redo:function(i){return i.redo()},undoSelection:function(i){return i.undoSelection()},redoSelection:function(i){return i.redoSelection()},goDocStart:function(i){return i.extendSelection(J(i.firstLine(),0))},goDocEnd:function(i){return i.extendSelection(J(i.lastLine()))},goLineStart:function(i){return i.extendSelectionsBy(function(s){return nC(i,s.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(i){return i.extendSelectionsBy(function(s){return iC(i,s.head)},{origin:"+move",bias:1})},goLineEnd:function(i){return i.extendSelectionsBy(function(s){return ZV(i,s.head.line)},{origin:"+move",bias:-1})},goLineRight:function(i){return i.extendSelectionsBy(function(s){var l=i.cursorCoords(s.head,"div").top+5;return i.coordsChar({left:i.display.lineDiv.offsetWidth+100,top:l},"div")},ze)},goLineLeft:function(i){return i.extendSelectionsBy(function(s){var l=i.cursorCoords(s.head,"div").top+5;return i.coordsChar({left:0,top:l},"div")},ze)},goLineLeftSmart:function(i){return i.extendSelectionsBy(function(s){var l=i.cursorCoords(s.head,"div").top+5,u=i.coordsChar({left:0,top:l},"div");return u.ch<i.getLine(u.line).search(/\S/)?iC(i,s.head):u},ze)},goLineUp:function(i){return i.moveV(-1,"line")},goLineDown:function(i){return i.moveV(1,"line")},goPageUp:function(i){return i.moveV(-1,"page")},goPageDown:function(i){return i.moveV(1,"page")},goCharLeft:function(i){return i.moveH(-1,"char")},goCharRight:function(i){return i.moveH(1,"char")},goColumnLeft:function(i){return i.moveH(-1,"column")},goColumnRight:function(i){return i.moveH(1,"column")},goWordLeft:function(i){return i.moveH(-1,"word")},goGroupRight:function(i){return i.moveH(1,"group")},goGroupLeft:function(i){return i.moveH(-1,"group")},goWordRight:function(i){return i.moveH(1,"word")},delCharBefore:function(i){return i.deleteH(-1,"codepoint")},delCharAfter:function(i){return i.deleteH(1,"char")},delWordBefore:function(i){return i.deleteH(-1,"word")},delWordAfter:function(i){return i.deleteH(1,"word")},delGroupBefore:function(i){return i.deleteH(-1,"group")},delGroupAfter:function(i){return i.deleteH(1,"group")},indentAuto:function(i){return i.indentSelection("smart")},indentMore:function(i){return i.indentSelection("add")},indentLess:function(i){return i.indentSelection("subtract")},insertTab:function(i){return i.replaceSelection(" ")},insertSoftTab:function(i){for(var s=[],l=i.listSelections(),u=i.options.tabSize,f=0;f<l.length;f++){var h=l[f].from(),g=Le(i.getLine(h.line),h.ch,u);s.push($t(u-g%u))}i.replaceSelections(s)},defaultTab:function(i){i.somethingSelected()?i.indentSelection("add"):i.execCommand("insertTab")},transposeChars:function(i){return Mr(i,function(){for(var s=i.listSelections(),l=[],u=0;u<s.length;u++)if(s[u].empty()){var f=s[u].head,h=Re(i.doc,f.line).text;if(h){if(f.ch==h.length&&(f=new J(f.line,f.ch-1)),f.ch>0)f=new J(f.line,f.ch+1),i.replaceRange(h.charAt(f.ch-1)+h.charAt(f.ch-2),J(f.line,f.ch-2),f,"+transpose");else if(f.line>i.doc.first){var g=Re(i.doc,f.line-1).text;g&&(f=new J(f.line,1),i.replaceRange(h.charAt(0)+i.doc.lineSeparator()+g.charAt(g.length-1),J(f.line-1,g.length-1),f,"+transpose"))}}l.push(new ft(f,f))}i.setSelections(l)})},newlineAndIndent:function(i){return Mr(i,function(){for(var s=i.listSelections(),l=s.length-1;l>=0;l--)i.replaceRange(i.doc.lineSeparator(),s[l].anchor,s[l].head,"+input");s=i.listSelections();for(var u=0;u<s.length;u++)i.indentLine(s[u].from().line,null,!0);Ds(i)})},openLine:function(i){return i.replaceSelection(` `,"start")},toggleOverwrite:function(i){return i.toggleOverwrite()}};function nC(i,s){var l=Re(i.doc,s),u=_n(l);return u!=l&&(s=w(u)),Em(!0,i,u,s,1)}function ZV(i,s){var l=Re(i.doc,s),u=MX(l);return u!=l&&(s=w(u)),Em(!0,i,l,s,-1)}function iC(i,s){var l=nC(i,s.line),u=Re(i.doc,l.line),f=nt(u,i.doc.direction);if(!f||f[0].level==0){var h=Math.max(l.ch,u.text.search(/\S/)),g=s.line==l.line&&s.ch<=h&&s.ch;return J(l.line,g?0:h,l.sticky)}return l}function jc(i,s,l){if(typeof s=="string"&&(s=Au[s],!s))return!1;i.display.input.ensurePolled();var u=i.display.shift,f=!1;try{i.isReadOnly()&&(i.state.suppressEdits=!0),l&&(i.display.shift=!1),f=s(i)!=ut}finally{i.display.shift=u,i.state.suppressEdits=!1}return f}function eQ(i,s,l){for(var u=0;u<i.state.keyMaps.length;u++){var f=js(s,i.state.keyMaps[u],l,i);if(f)return f}return i.options.extraKeys&&js(s,i.options.extraKeys,l,i)||js(s,i.options.keyMap,l,i)}var tQ=new xe;function Ou(i,s,l,u){var f=i.state.keySeq;if(f){if(eC(s))return"handled";if(/\'$/.test(s)?i.state.keySeq=null:tQ.set(50,function(){i.state.keySeq==f&&(i.state.keySeq=null,i.display.input.reset())}),aC(i,f+" "+s,l,u))return!0}return aC(i,s,l,u)}function aC(i,s,l,u){var f=eQ(i,s,u);return f=="multi"&&(i.state.keySeq=s),f=="handled"&&Yt(i,"keyHandled",i,s,l),(f=="handled"||f=="multi")&&(sr(l),im(i)),!!f}function sC(i,s){var l=rC(s,!0);return l?s.shiftKey&&!i.state.keySeq?Ou(i,"Shift-"+l,s,function(u){return jc(i,u,!0)})||Ou(i,l,s,function(u){if(typeof u=="string"?/^go[A-Z]/.test(u):u.motion)return jc(i,u)}):Ou(i,l,s,function(u){return jc(i,u)}):!1}function rQ(i,s,l){return Ou(i,"'"+l+"'",s,function(u){return jc(i,u,!0)})}var Tm=null;function oC(i){var s=this;if(!(i.target&&i.target!=s.display.input.getField())&&(s.curOp.focus=he(at(s)),!It(s,i))){p&&v<11&&i.keyCode==27&&(i.returnValue=!1);var l=i.keyCode;s.display.shift=l==16||i.shiftKey;var u=sC(s,i);F&&(Tm=u?l:null,!u&&l==88&&!vc&&(R?i.metaKey:i.ctrlKey)&&s.replaceSelection("",null,"cut")),a&&!R&&!u&&l==46&&i.shiftKey&&!i.ctrlKey&&document.execCommand&&document.execCommand("cut"),l==18&&!/\bCodeMirror-crosshair\b/.test(s.display.lineDiv.className)&&nQ(s)}}function nQ(i){var s=i.display.lineDiv;Ie(s,"CodeMirror-crosshair");function l(u){(u.keyCode==18||!u.altKey)&&(U(s,"CodeMirror-crosshair"),ar(document,"keyup",l),ar(document,"mouseover",l))}$e(document,"keyup",l),$e(document,"mouseover",l)}function uC(i){i.keyCode==16&&(this.doc.sel.shift=!1),It(this,i)}function lC(i){var s=this;if(!(i.target&&i.target!=s.display.input.getField())&&!(si(s.display,i)||It(s,i)||i.ctrlKey&&!i.altKey||R&&i.metaKey)){var l=i.keyCode,u=i.charCode;if(F&&l==Tm){Tm=null,sr(i);return}if(!(F&&(!i.which||i.which<10)&&sC(s,i))){var f=String.fromCharCode(u??l);f!="\b"&&(rQ(s,i,f)||s.display.input.onKeyPress(i))}}}var iQ=400,Cm=function(i,s,l){this.time=i,this.pos=s,this.button=l};Cm.prototype.compare=function(i,s,l){return this.time+iQ>i&&Ce(s,this.pos)==0&&l==this.button};var Nu,Pu;function aQ(i,s){var l=+new Date;return Pu&&Pu.compare(l,i,s)?(Nu=Pu=null,"triple"):Nu&&Nu.compare(l,i,s)?(Pu=new Cm(l,i,s),Nu=null,"double"):(Nu=new Cm(l,i,s),Pu=null,"single")}function cC(i){var s=this,l=s.display;if(!(It(s,i)||l.activeTouch&&l.input.supportsTouch())){if(l.input.ensurePolled(),l.shift=i.shiftKey,si(l,i)){b||(l.scroller.draggable=!1,setTimeout(function(){return l.scroller.draggable=!0},100));return}if(!wm(s,i)){var u=wa(s,i),f=pn(i),h=u?aQ(u,f):"single";Pe(s).focus(),f==1&&s.state.selectingText&&s.state.selectingText(i),!(u&&sQ(s,f,u,h,i))&&(f==1?u?uQ(s,u,h,i):ru(i)==l.scroller&&sr(i):f==2?(u&&Mc(s.doc,u),setTimeout(function(){return l.input.focus()},20)):f==3&&(Z?s.display.input.onContextMenu(i):am(s)))}}}function sQ(i,s,l,u,f){var h="Click";return u=="double"?h="Double"+h:u=="triple"&&(h="Triple"+h),h=(s==1?"Left":s==2?"Middle":"Right")+h,Ou(i,tC(h,f),f,function(g){if(typeof g=="string"&&(g=Au[g]),!g)return!1;var _=!1;try{i.isReadOnly()&&(i.state.suppressEdits=!0),_=g(i,l)!=ut}finally{i.state.suppressEdits=!1}return _})}function oQ(i,s,l){var u=i.getOption("configureMouse"),f=u?u(i,s,l):{};if(f.unit==null){var h=B?l.shiftKey&&l.metaKey:l.altKey;f.unit=h?"rectangle":s=="single"?"char":s=="double"?"word":"line"}return(f.extend==null||i.doc.extend)&&(f.extend=i.doc.extend||l.shiftKey),f.addNew==null&&(f.addNew=R?l.metaKey:l.ctrlKey),f.moveOnDrag==null&&(f.moveOnDrag=!(R?l.altKey:l.ctrlKey)),f}function uQ(i,s,l,u){p?setTimeout(Te(fT,i),0):i.curOp.focus=he(at(i));var f=oQ(i,l,u),h=i.doc.sel,g;i.options.dragDrop&&$p&&!i.isReadOnly()&&l=="single"&&(g=h.contains(s))>-1&&(Ce((g=h.ranges[g]).from(),s)<0||s.xRel>0)&&(Ce(g.to(),s)>0||s.xRel<0)?lQ(i,u,s,f):cQ(i,u,s,f)}function lQ(i,s,l,u){var f=i.display,h=!1,g=Kt(i,function(k){b&&(f.scroller.draggable=!1),i.state.draggingText=!1,i.state.delayingBlurEvent&&(i.hasFocus()?i.state.delayingBlurEvent=!1:am(i)),ar(f.wrapper.ownerDocument,"mouseup",g),ar(f.wrapper.ownerDocument,"mousemove",_),ar(f.scroller,"dragstart",y),ar(f.scroller,"drop",g),h||(sr(k),u.addNew||Mc(i.doc,l,null,null,u.extend),b&&!G||p&&v==9?setTimeout(function(){f.wrapper.ownerDocument.body.focus({preventScroll:!0}),f.input.focus()},20):f.input.focus())}),_=function(k){h=h||Math.abs(s.clientX-k.clientX)+Math.abs(s.clientY-k.clientY)>=10},y=function(){return h=!0};b&&(f.scroller.draggable=!0),i.state.draggingText=g,g.copy=!u.moveOnDrag,$e(f.wrapper.ownerDocument,"mouseup",g),$e(f.wrapper.ownerDocument,"mousemove",_),$e(f.scroller,"dragstart",y),$e(f.scroller,"drop",g),i.state.delayingBlurEvent=!0,setTimeout(function(){return f.input.focus()},20),f.scroller.dragDrop&&f.scroller.dragDrop()}function fC(i,s,l){if(l=="char")return new ft(s,s);if(l=="word")return i.findWordAt(s);if(l=="line")return new ft(J(s.line,0),Ke(i.doc,J(s.line+1,0)));var u=l(i,s);return new ft(u.from,u.to)}function cQ(i,s,l,u){p&&am(i);var f=i.display,h=i.doc;sr(s);var g,_,y=h.sel,k=y.ranges;if(u.addNew&&!u.extend?(_=h.sel.contains(l),_>-1?g=k[_]:g=new ft(l,l)):(g=h.sel.primary(),_=h.sel.primIndex),u.unit=="rectangle")u.addNew||(g=new ft(l,l)),l=wa(i,s,!0,!0),_=-1;else{var L=fC(i,l,u.unit);u.extend?g=_m(g,L.anchor,L.head,u.extend):g=L}u.addNew?_==-1?(_=k.length,or(h,yn(i,k.concat([g]),_),{scroll:!1,origin:"*mouse"})):k.length>1&&k[_].empty()&&u.unit=="char"&&!u.extend?(or(h,yn(i,k.slice(0,_).concat(k.slice(_+1)),0),{scroll:!1,origin:"*mouse"}),y=h.sel):bm(h,_,g,Nt):(_=0,or(h,new zr([g],0),Nt),y=h.sel);var $=l;function Y(ye){if(Ce($,ye)!=0)if($=ye,u.unit=="rectangle"){for(var Oe=[],Fe=i.options.tabSize,De=Le(Re(h,l.line).text,l.ch,Fe),Je=Le(Re(h,ye.line).text,ye.ch,Fe),vt=Math.min(De,Je),Vt=Math.max(De,Je),At=Math.min(l.line,ye.line),$r=Math.min(i.lastLine(),Math.max(l.line,ye.line));At<=$r;At++){var Sr=Re(h,At).text,Bt=tt(Sr,vt,Fe);vt==Vt?Oe.push(new ft(J(At,Bt),J(At,Bt))):Sr.length>Bt&&Oe.push(new ft(J(At,Bt),J(At,tt(Sr,Vt,Fe))))}Oe.length||Oe.push(new ft(l,l)),or(h,yn(i,y.ranges.slice(0,_).concat(Oe),_),{origin:"*mouse",scroll:!1}),i.scrollIntoView(ye)}else{var xr=g,rr=fC(i,ye,u.unit),jt=xr.anchor,Ht;Ce(rr.anchor,jt)>0?(Ht=rr.head,jt=As(xr.from(),rr.anchor)):(Ht=rr.anchor,jt=Tr(xr.to(),rr.head));var Rt=y.ranges.slice(0);Rt[_]=fQ(i,new ft(Ke(h,jt),Ht)),or(h,yn(i,Rt,_),Nt)}}var z=f.wrapper.getBoundingClientRect(),te=0;function de(ye){var Oe=++te,Fe=wa(i,ye,!0,u.unit=="rectangle");if(Fe)if(Ce(Fe,$)!=0){i.curOp.focus=he(at(i)),Y(Fe);var De=Nc(f,h);(Fe.line>=De.to||Fe.line<De.from)&&setTimeout(Kt(i,function(){te==Oe&&de(ye)}),150)}else{var Je=ye.clientY<z.top?-20:ye.clientY>z.bottom?20:0;Je&&setTimeout(Kt(i,function(){te==Oe&&(f.scroller.scrollTop+=Je,de(ye))}),50)}}function ge(ye){i.state.selectingText=!1,te=1/0,ye&&(sr(ye),f.input.focus()),ar(f.wrapper.ownerDocument,"mousemove",be),ar(f.wrapper.ownerDocument,"mouseup",we),h.history.lastSelOrigin=null}var be=Kt(i,function(ye){ye.buttons===0||!pn(ye)?ge(ye):de(ye)}),we=Kt(i,ge);i.state.selectingText=we,$e(f.wrapper.ownerDocument,"mousemove",be),$e(f.wrapper.ownerDocument,"mouseup",we)}function fQ(i,s){var l=s.anchor,u=s.head,f=Re(i.doc,l.line);if(Ce(l,u)==0&&l.sticky==u.sticky)return s;var h=nt(f);if(!h)return s;var g=Ii(h,l.ch,l.sticky),_=h[g];if(_.from!=l.ch&&_.to!=l.ch)return s;var y=g+(_.from==l.ch==(_.level!=1)?0:1);if(y==0||y==h.length)return s;var k;if(u.line!=l.line)k=(u.line-l.line)*(i.doc.direction=="ltr"?1:-1)>0;else{var L=Ii(h,u.ch,u.sticky),$=L-g||(u.ch-l.ch)*(_.level==1?-1:1);L==y-1||L==y?k=$<0:k=$>0}var Y=h[y+(k?-1:0)],z=k==(Y.level==1),te=z?Y.from:Y.to,de=z?"after":"before";return l.ch==te&&l.sticky==de?s:new ft(new J(l.line,te,de),u)}function dC(i,s,l,u){var f,h;if(s.touches)f=s.touches[0].clientX,h=s.touches[0].clientY;else try{f=s.clientX,h=s.clientY}catch{return!1}if(f>=Math.floor(i.display.gutters.getBoundingClientRect().right))return!1;u&&sr(s);var g=i.display,_=g.lineDiv.getBoundingClientRect();if(h>_.bottom||!Dr(i,l))return Er(s);h-=_.top-g.viewOffset;for(var y=0;y<i.display.gutterSpecs.length;++y){var k=g.gutters.childNodes[y];if(k&&k.getBoundingClientRect().right>=f){var L=M(i.doc,h),$=i.display.gutterSpecs[y];return Pt(i,l,i,L,$.className,s),Er(s)}}}function wm(i,s){return dC(i,s,"gutterClick",!0)}function hC(i,s){si(i.display,s)||dQ(i,s)||It(i,s,"contextmenu")||Z||i.display.input.onContextMenu(s)}function dQ(i,s){return Dr(i,"gutterContextMenu")?dC(i,s,"gutterContextMenu",!1):!1}function pC(i){i.display.wrapper.className=i.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+i.options.theme.replace(/(^|\s)\s*/g," cm-s-"),fu(i)}var Gs={toString:function(){return"CodeMirror.Init"}},mC={},Wc={};function hQ(i){var s=i.optionHandlers;function l(u,f,h,g){i.defaults[u]=f,h&&(s[u]=g?function(_,y,k){k!=Gs&&h(_,y,k)}:h)}i.defineOption=l,i.Init=Gs,l("value","",function(u,f){return u.setValue(f)},!0),l("mode",null,function(u,f){u.doc.modeOption=f,mm(u)},!0),l("indentUnit",2,mm,!0),l("indentWithTabs",!1),l("smartIndent",!0),l("tabSize",4,function(u){bu(u),fu(u),Cr(u)},!0),l("lineSeparator",null,function(u,f){if(u.doc.lineSep=f,!!f){var h=[],g=u.doc.first;u.doc.iter(function(y){for(var k=0;;){var L=y.text.indexOf(f,k);if(L==-1)break;k=L+f.length,h.push(J(g,L))}g++});for(var _=h.length-1;_>=0;_--)Hs(u.doc,f,h[_],J(h[_].line,h[_].ch+f.length))}}),l("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(u,f,h){u.state.specialChars=new RegExp(f.source+(f.test(" ")?"":"| "),"g"),h!=Gs&&u.refresh()}),l("specialCharPlaceholder",jX,function(u){return u.refresh()},!0),l("electricChars",!0),l("inputStyle",P?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),l("spellcheck",!1,function(u,f){return u.getInputField().spellcheck=f},!0),l("autocorrect",!1,function(u,f){return u.getInputField().autocorrect=f},!0),l("autocapitalize",!1,function(u,f){return u.getInputField().autocapitalize=f},!0),l("rtlMoveVisually",!q),l("wholeLineUpdateBefore",!0),l("theme","default",function(u){pC(u),_u(u)},!0),l("keyMap","default",function(u,f,h){var g=Uc(f),_=h!=Gs&&Uc(h);_&&_.detach&&_.detach(u,g),g.attach&&g.attach(u,_||null)}),l("extraKeys",null),l("configureMouse",null),l("lineWrapping",!1,mQ,!0),l("gutters",[],function(u,f){u.display.gutterSpecs=hm(f,u.options.lineNumbers),_u(u)},!0),l("fixedGutter",!0,function(u,f){u.display.gutters.style.left=f?tm(u.display)+"px":"0",u.refresh()},!0),l("coverGutterNextToScrollbar",!1,function(u){return Ms(u)},!0),l("scrollbarStyle","native",function(u){gT(u),Ms(u),u.display.scrollbars.setScrollTop(u.doc.scrollTop),u.display.scrollbars.setScrollLeft(u.doc.scrollLeft)},!0),l("lineNumbers",!1,function(u,f){u.display.gutterSpecs=hm(u.options.gutters,f),_u(u)},!0),l("firstLineNumber",1,_u,!0),l("lineNumberFormatter",function(u){return u},_u,!0),l("showCursorWhenSelecting",!1,du,!0),l("resetSelectionOnContextMenu",!0),l("lineWiseCopyCut",!0),l("pasteLinesPerSelection",!0),l("selectionsMayTouch",!1),l("readOnly",!1,function(u,f){f=="nocursor"&&(Rs(u),u.display.input.blur()),u.display.input.readOnlyChanged(f)}),l("screenReaderLabel",null,function(u,f){f=f===""?null:f,u.display.input.screenReaderLabelChanged(f)}),l("disableInput",!1,function(u,f){f||u.display.input.reset()},!0),l("dragDrop",!0,pQ),l("allowDropFileTypes",null),l("cursorBlinkRate",530),l("cursorScrollMargin",0),l("cursorHeight",1,du,!0),l("singleCursorHeightPerLine",!0,du,!0),l("workTime",100),l("workDelay",100),l("flattenSpans",!0,bu,!0),l("addModeClass",!1,bu,!0),l("pollInterval",100),l("undoDepth",200,function(u,f){return u.doc.history.undoDepth=f}),l("historyEventDelay",1250),l("viewportMargin",10,function(u){return u.refresh()},!0),l("maxHighlightLength",1e4,bu,!0),l("moveInputWithCursor",!0,function(u,f){f||u.display.input.resetPosition()}),l("tabindex",null,function(u,f){return u.display.input.getField().tabIndex=f||""}),l("autofocus",null),l("direction","ltr",function(u,f){return u.doc.setDirection(f)},!0),l("phrases",null)}function pQ(i,s,l){var u=l&&l!=Gs;if(!s!=!u){var f=i.display.dragFunctions,h=s?$e:ar;h(i.display.scroller,"dragstart",f.start),h(i.display.scroller,"dragenter",f.enter),h(i.display.scroller,"dragover",f.over),h(i.display.scroller,"dragleave",f.leave),h(i.display.scroller,"drop",f.drop)}}function mQ(i){i.options.lineWrapping?(Ie(i.display.wrapper,"CodeMirror-wrap"),i.display.sizer.style.minWidth="",i.display.sizerWidth=null):(U(i.display.wrapper,"CodeMirror-wrap"),zp(i)),rm(i),Cr(i),fu(i),setTimeout(function(){return Ms(i)},100)}function Et(i,s){var l=this;if(!(this instanceof Et))return new Et(i,s);this.options=s=s?Se(s):{},Se(mC,s,!1);var u=s.value;typeof u=="string"?u=new wr(u,s.mode,null,s.lineSeparator,s.direction):s.mode&&(u.modeOption=s.mode),this.doc=u;var f=new Et.inputStyles[s.inputStyle](this),h=this.display=new AV(i,u,f,s);h.wrapper.CodeMirror=this,pC(this),s.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),gT(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new xe,keySeq:null,specialChars:null},s.autofocus&&!P&&h.input.focus(),p&&v<11&&setTimeout(function(){return l.display.input.reset(!0)},20),vQ(this),YV(),Oa(this),this.curOp.forceUpdate=!0,xT(this,u),s.autofocus&&!P||this.hasFocus()?setTimeout(function(){l.hasFocus()&&!l.state.focused&&sm(l)},20):Rs(this);for(var g in Wc)Wc.hasOwnProperty(g)&&Wc[g](this,s[g],Gs);yT(this),s.finishInit&&s.finishInit(this);for(var _=0;_<Sm.length;++_)Sm[_](this);Na(this),b&&s.lineWrapping&&getComputedStyle(h.lineDiv).textRendering=="optimizelegibility"&&(h.lineDiv.style.textRendering="auto")}Et.defaults=mC,Et.optionHandlers=Wc;function vQ(i){var s=i.display;$e(s.scroller,"mousedown",Kt(i,cC)),p&&v<11?$e(s.scroller,"dblclick",Kt(i,function(y){if(!It(i,y)){var k=wa(i,y);if(!(!k||wm(i,y)||si(i.display,y))){sr(y);var L=i.findWordAt(k);Mc(i.doc,L.anchor,L.head)}}})):$e(s.scroller,"dblclick",function(y){return It(i,y)||sr(y)}),$e(s.scroller,"contextmenu",function(y){return hC(i,y)}),$e(s.input.getField(),"contextmenu",function(y){s.scroller.contains(y.target)||hC(i,y)});var l,u={end:0};function f(){s.activeTouch&&(l=setTimeout(function(){return s.activeTouch=null},1e3),u=s.activeTouch,u.end=+new Date)}function h(y){if(y.touches.length!=1)return!1;var k=y.touches[0];return k.radiusX<=1&&k.radiusY<=1}function g(y,k){if(k.left==null)return!0;var L=k.left-y.left,$=k.top-y.top;return L*L+$*$>400}$e(s.scroller,"touchstart",function(y){if(!It(i,y)&&!h(y)&&!wm(i,y)){s.input.ensurePolled(),clearTimeout(l);var k=+new Date;s.activeTouch={start:k,moved:!1,prev:k-u.end<=300?u:null},y.touches.length==1&&(s.activeTouch.left=y.touches[0].pageX,s.activeTouch.top=y.touches[0].pageY)}}),$e(s.scroller,"touchmove",function(){s.activeTouch&&(s.activeTouch.moved=!0)}),$e(s.scroller,"touchend",function(y){var k=s.activeTouch;if(k&&!si(s,y)&&k.left!=null&&!k.moved&&new Date-k.start<300){var L=i.coordsChar(s.activeTouch,"page"),$;!k.prev||g(k,k.prev)?$=new ft(L,L):!k.prev.prev||g(k,k.prev.prev)?$=i.findWordAt(L):$=new ft(J(L.line,0),Ke(i.doc,J(L.line+1,0))),i.setSelection($.anchor,$.head),i.focus(),sr(y)}f()}),$e(s.scroller,"touchcancel",f),$e(s.scroller,"scroll",function(){s.scroller.clientHeight&&(pu(i,s.scroller.scrollTop),xa(i,s.scroller.scrollLeft,!0),Pt(i,"scroll",i))}),$e(s.scroller,"mousewheel",function(y){return TT(i,y)}),$e(s.scroller,"DOMMouseScroll",function(y){return TT(i,y)}),$e(s.wrapper,"scroll",function(){return s.wrapper.scrollTop=s.wrapper.scrollLeft=0}),s.dragFunctions={enter:function(y){It(i,y)||Li(y)},over:function(y){It(i,y)||(qV(i,y),Li(y))},start:function(y){return zV(i,y)},drop:Kt(i,GV),leave:function(y){It(i,y)||QT(i)}};var _=s.input.getField();$e(_,"keyup",function(y){return uC.call(i,y)}),$e(_,"keydown",Kt(i,oC)),$e(_,"keypress",Kt(i,lC)),$e(_,"focus",function(y){return sm(i,y)}),$e(_,"blur",function(y){return Rs(i,y)})}var Sm=[];Et.defineInitHook=function(i){return Sm.push(i)};function Iu(i,s,l,u){var f=i.doc,h;l==null&&(l="add"),l=="smart"&&(f.mode.indent?h=su(i,s).state:l="prev");var g=i.options.tabSize,_=Re(f,s),y=Le(_.text,null,g);_.stateAfter&&(_.stateAfter=null);var k=_.text.match(/^\s*/)[0],L;if(!u&&!/\S/.test(_.text))L=0,l="not";else if(l=="smart"&&(L=f.mode.indent(h,_.text.slice(k.length),_.text),L==ut||L>150)){if(!u)return;l="prev"}l=="prev"?s>f.first?L=Le(Re(f,s-1).text,null,g):L=0:l=="add"?L=y+i.options.indentUnit:l=="subtract"?L=y-i.options.indentUnit:typeof l=="number"&&(L=y+l),L=Math.max(0,L);var $="",Y=0;if(i.options.indentWithTabs)for(var z=Math.floor(L/g);z;--z)Y+=g,$+=" ";if(Y<L&&($+=$t(L-Y)),$!=k)return Hs(f,$,J(s,0),J(s,k.length),"+input"),_.stateAfter=null,!0;for(var te=0;te<f.sel.ranges.length;te++){var de=f.sel.ranges[te];if(de.head.line==s&&de.head.ch<k.length){var ge=J(s,k.length);bm(f,te,new ft(ge,ge));break}}}var kn=null;function Gc(i){kn=i}function xm(i,s,l,u,f){var h=i.doc;i.display.shift=!1,u||(u=h.sel);var g=+new Date-200,_=f=="paste"||i.state.pasteIncoming>g,y=Zr(s),k=null;if(_&&u.ranges.length>1)if(kn&&kn.text.join(` `)==s){if(u.ranges.length%kn.text.length==0){k=[];for(var L=0;L<kn.text.length;L++)k.push(h.splitLines(kn.text[L]))}}else y.length==u.ranges.length&&i.options.pasteLinesPerSelection&&(k=rt(y,function(be){return[be]}));for(var $=i.curOp.updateInput,Y=u.ranges.length-1;Y>=0;Y--){var z=u.ranges[Y],te=z.from(),de=z.to();z.empty()&&(l&&l>0?te=J(te.line,te.ch-l):i.state.overwrite&&!_?de=J(de.line,Math.min(Re(h,de.line).text.length,de.ch+Ye(y).length)):_&&kn&&kn.lineWise&&kn.text.join(` `)==y.join(` `)&&(te=de=J(te.line,0)));var ge={from:te,to:de,text:k?k[Y%k.length]:y,origin:f||(_?"paste":i.state.cutIncoming>g?"cut":"+input")};Bs(i.doc,ge),Yt(i,"inputRead",i,ge)}s&&!_&&gC(i,s),Ds(i),i.curOp.updateInput<2&&(i.curOp.updateInput=$),i.curOp.typing=!0,i.state.pasteIncoming=i.state.cutIncoming=-1}function vC(i,s){var l=i.clipboardData&&i.clipboardData.getData("Text");if(l)return i.preventDefault(),!s.isReadOnly()&&!s.options.disableInput&&s.hasFocus()&&Mr(s,function(){return xm(s,l,0,null,"paste")}),!0}function gC(i,s){if(!(!i.options.electricChars||!i.options.smartIndent))for(var l=i.doc.sel,u=l.ranges.length-1;u>=0;u--){var f=l.ranges[u];if(!(f.head.ch>100||u&&l.ranges[u-1].head.line==f.head.line)){var h=i.getModeAt(f.head),g=!1;if(h.electricChars){for(var _=0;_<h.electricChars.length;_++)if(s.indexOf(h.electricChars.charAt(_))>-1){g=Iu(i,f.head.line,"smart");break}}else h.electricInput&&h.electricInput.test(Re(i.doc,f.head.line).text.slice(0,f.head.ch))&&(g=Iu(i,f.head.line,"smart"));g&&Yt(i,"electricInput",i,f.head.line)}}}function _C(i){for(var s=[],l=[],u=0;u<i.doc.sel.ranges.length;u++){var f=i.doc.sel.ranges[u].head.line,h={anchor:J(f,0),head:J(f+1,0)};l.push(h),s.push(i.getRange(h.anchor,h.head))}return{text:s,ranges:l}}function Am(i,s,l,u){i.setAttribute("autocorrect",l?"on":"off"),i.setAttribute("autocapitalize",u?"on":"off"),i.setAttribute("spellcheck",!!s)}function bC(){var i=E("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),s=E("div",[i],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return b?i.style.width="1000px":i.setAttribute("wrap","off"),x&&(i.style.border="1px solid black"),s}function gQ(i){var s=i.optionHandlers,l=i.helpers={};i.prototype={constructor:i,focus:function(){Pe(this).focus(),this.display.input.focus()},setOption:function(u,f){var h=this.options,g=h[u];h[u]==f&&u!="mode"||(h[u]=f,s.hasOwnProperty(u)&&Kt(this,s[u])(this,f,g),Pt(this,"optionChange",this,u))},getOption:function(u){return this.options[u]},getDoc:function(){return this.doc},addKeyMap:function(u,f){this.state.keyMaps[f?"push":"unshift"](Uc(u))},removeKeyMap:function(u){for(var f=this.state.keyMaps,h=0;h<f.length;++h)if(f[h]==u||f[h].name==u)return f.splice(h,1),!0},addOverlay:pr(function(u,f){var h=u.token?u:i.getMode(this.options,u);if(h.startState)throw new Error("Overlays may not be stateful.");X(this.state.overlays,{mode:h,modeSpec:u,opaque:f&&f.opaque,priority:f&&f.priority||0},function(g){return g.priority}),this.state.modeGen++,Cr(this)}),removeOverlay:pr(function(u){for(var f=this.state.overlays,h=0;h<f.length;++h){var g=f[h].modeSpec;if(g==u||typeof u=="string"&&g.name==u){f.splice(h,1),this.state.modeGen++,Cr(this);return}}}),indentLine:pr(function(u,f,h){typeof f!="string"&&typeof f!="number"&&(f==null?f=this.options.smartIndent?"smart":"prev":f=f?"add":"subtract"),ce(this.doc,u)&&Iu(this,u,f,h)}),indentSelection:pr(function(u){for(var f=this.doc.sel.ranges,h=-1,g=0;g<f.length;g++){var _=f[g];if(_.empty())_.head.line>h&&(Iu(this,_.head.line,u,!0),h=_.head.line,g==this.doc.sel.primIndex&&Ds(this));else{var y=_.from(),k=_.to(),L=Math.max(h,y.line);h=Math.min(this.lastLine(),k.line-(k.ch?0:1))+1;for(var $=L;$<h;++$)Iu(this,$,u);var Y=this.doc.sel.ranges;y.ch==0&&f.length==Y.length&&Y[g].from().ch>0&&bm(this.doc,g,new ft(y,Y[g].to()),dt)}}}),getTokenAt:function(u,f){return OE(this,u,f)},getLineTokens:function(u,f){return OE(this,J(u),f,!0)},getTokenTypeAt:function(u){u=Ke(this.doc,u);var f=SE(this,Re(this.doc,u.line)),h=0,g=(f.length-1)/2,_=u.ch,y;if(_==0)y=f[2];else for(;;){var k=h+g>>1;if((k?f[k*2-1]:0)>=_)g=k;else if(f[k*2+1]<_)h=k+1;else{y=f[k*2+2];break}}var L=y?y.indexOf("overlay "):-1;return L<0?y:L==0?null:y.slice(0,L-1)},getModeAt:function(u){var f=this.doc.mode;return f.innerMode?i.innerMode(f,this.getTokenAt(u).state).mode:f},getHelper:function(u,f){return this.getHelpers(u,f)[0]},getHelpers:function(u,f){var h=[];if(!l.hasOwnProperty(f))return h;var g=l[f],_=this.getModeAt(u);if(typeof _[f]=="string")g[_[f]]&&h.push(g[_[f]]);else if(_[f])for(var y=0;y<_[f].length;y++){var k=g[_[f][y]];k&&h.push(k)}else _.helperType&&g[_.helperType]?h.push(g[_.helperType]):g[_.name]&&h.push(g[_.name]);for(var L=0;L<g._global.length;L++){var $=g._global[L];$.pred(_,this)&&Ee(h,$.val)==-1&&h.push($.val)}return h},getStateAfter:function(u,f){var h=this.doc;return u=TE(h,u??h.first+h.size-1),su(this,u+1,f).state},cursorCoords:function(u,f){var h,g=this.doc.sel.primary();return u==null?h=g.head:typeof u=="object"?h=Ke(this.doc,u):h=u?g.from():g.to(),bn(this,h,f||"page")},charCoords:function(u,f){return Sc(this,Ke(this.doc,u),f||"page")},coordsChar:function(u,f){return u=iT(this,u,f||"page"),Jp(this,u.left,u.top)},lineAtHeight:function(u,f){return u=iT(this,{top:u,left:0},f||"page").top,M(this.doc,u+this.display.viewOffset)},heightAtLine:function(u,f,h){var g=!1,_;if(typeof u=="number"){var y=this.doc.first+this.doc.size-1;u<this.doc.first?u=this.doc.first:u>y&&(u=y,g=!0),_=Re(this.doc,u)}else _=u;return wc(this,_,{top:0,left:0},f||"page",h||g).top+(g?this.doc.height-ai(_):0)},defaultTextHeight:function(){return Is(this.display)},defaultCharWidth:function(){return Ls(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(u,f,h,g,_){var y=this.display;u=bn(this,Ke(this.doc,u));var k=u.bottom,L=u.left;if(f.style.position="absolute",f.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(f),y.sizer.appendChild(f),g=="over")k=u.top;else if(g=="above"||g=="near"){var $=Math.max(y.wrapper.clientHeight,this.doc.height),Y=Math.max(y.sizer.clientWidth,y.lineSpace.clientWidth);(g=="above"||u.bottom+f.offsetHeight>$)&&u.top>f.offsetHeight?k=u.top-f.offsetHeight:u.bottom+f.offsetHeight<=$&&(k=u.bottom),L+f.offsetWidth>Y&&(L=Y-f.offsetWidth)}f.style.top=k+"px",f.style.left=f.style.right="",_=="right"?(L=y.sizer.clientWidth-f.offsetWidth,f.style.right="0px"):(_=="left"?L=0:_=="middle"&&(L=(y.sizer.clientWidth-f.offsetWidth)/2),f.style.left=L+"px"),h&&pV(this,{left:L,top:k,right:L+f.offsetWidth,bottom:k+f.offsetHeight})},triggerOnKeyDown:pr(oC),triggerOnKeyPress:pr(lC),triggerOnKeyUp:uC,triggerOnMouseDown:pr(cC),execCommand:function(u){if(Au.hasOwnProperty(u))return Au[u].call(null,this)},triggerElectric:pr(function(u){gC(this,u)}),findPosH:function(u,f,h,g){var _=1;f<0&&(_=-1,f=-f);for(var y=Ke(this.doc,u),k=0;k<f&&(y=Om(this.doc,y,_,h,g),!y.hitSide);++k);return y},moveH:pr(function(u,f){var h=this;this.extendSelectionsBy(function(g){return h.display.shift||h.doc.extend||g.empty()?Om(h.doc,g.head,u,f,h.options.rtlMoveVisually):u<0?g.from():g.to()},ze)}),deleteH:pr(function(u,f){var h=this.doc.sel,g=this.doc;h.somethingSelected()?g.replaceSelection("",null,"+delete"):Ws(this,function(_){var y=Om(g,_.head,u,f,!1);return u<0?{from:y,to:_.head}:{from:_.head,to:y}})}),findPosV:function(u,f,h,g){var _=1,y=g;f<0&&(_=-1,f=-f);for(var k=Ke(this.doc,u),L=0;L<f;++L){var $=bn(this,k,"div");if(y==null?y=$.left:$.left=y,k=yC(this,$,_,h),k.hitSide)break}return k},moveV:pr(function(u,f){var h=this,g=this.doc,_=[],y=!this.display.shift&&!g.extend&&g.sel.somethingSelected();if(g.extendSelectionsBy(function(L){if(y)return u<0?L.from():L.to();var $=bn(h,L.head,"div");L.goalColumn!=null&&($.left=L.goalColumn),_.push($.left);var Y=yC(h,$,u,f);return f=="page"&&L==g.sel.primary()&&um(h,Sc(h,Y,"div").top-$.top),Y},ze),_.length)for(var k=0;k<g.sel.ranges.length;k++)g.sel.ranges[k].goalColumn=_[k]}),findWordAt:function(u){var f=this.doc,h=Re(f,u.line).text,g=u.ch,_=u.ch;if(h){var y=this.getHelper(u,"wordChars");(u.sticky=="before"||_==h.length)&&g?--g:++_;for(var k=h.charAt(g),L=ei(k,y)?function($){return ei($,y)}:/\s/.test(k)?function($){return/\s/.test($)}:function($){return!/\s/.test($)&&!ei($)};g>0&&L(h.charAt(g-1));)--g;for(;_<h.length&&L(h.charAt(_));)++_}return new ft(J(u.line,g),J(u.line,_))},toggleOverwrite:function(u){u!=null&&u==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ie(this.display.cursorDiv,"CodeMirror-overwrite"):U(this.display.cursorDiv,"CodeMirror-overwrite"),Pt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==he(at(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:pr(function(u,f){hu(this,u,f)}),getScrollInfo:function(){var u=this.display.scroller;return{left:u.scrollLeft,top:u.scrollTop,height:u.scrollHeight-Rn(this)-this.display.barHeight,width:u.scrollWidth-Rn(this)-this.display.barWidth,clientHeight:Kp(this),clientWidth:Ta(this)}},scrollIntoView:pr(function(u,f){u==null?(u={from:this.doc.sel.primary().head,to:null},f==null&&(f=this.options.cursorScrollMargin)):typeof u=="number"?u={from:J(u,0),to:null}:u.from==null&&(u={from:u,to:null}),u.to||(u.to=u.from),u.margin=f||0,u.from.line!=null?mV(this,u):hT(this,u.from,u.to,u.margin)}),setSize:pr(function(u,f){var h=this,g=function(y){return typeof y=="number"||/^\d+$/.test(String(y))?y+"px":y};u!=null&&(this.display.wrapper.style.width=g(u)),f!=null&&(this.display.wrapper.style.height=g(f)),this.options.lineWrapping&&tT(this);var _=this.display.viewFrom;this.doc.iter(_,this.display.viewTo,function(y){if(y.widgets){for(var k=0;k<y.widgets.length;k++)if(y.widgets[k].noHScroll){Fi(h,_,"widget");break}}++_}),this.curOp.forceUpdate=!0,Pt(this,"refresh",this)}),operation:function(u){return Mr(this,u)},startOperation:function(){return Oa(this)},endOperation:function(){return Na(this)},refresh:pr(function(){var u=this.display.cachedTextHeight;Cr(this),this.curOp.forceUpdate=!0,fu(this),hu(this,this.doc.scrollLeft,this.doc.scrollTop),fm(this.display),(u==null||Math.abs(u-Is(this.display))>.5||this.options.lineWrapping)&&rm(this),Pt(this,"refresh",this)}),swapDoc:pr(function(u){var f=this.doc;return f.cm=null,this.state.selectingText&&this.state.selectingText(),xT(this,u),fu(this),this.display.input.reset(),hu(this,u.scrollLeft,u.scrollTop),this.curOp.forceScroll=!0,Yt(this,"swapDoc",this,f),f}),phrase:function(u){var f=this.options.phrases;return f&&Object.prototype.hasOwnProperty.call(f,u)?f[u]:u},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},hn(i),i.registerHelper=function(u,f,h){l.hasOwnProperty(u)||(l[u]=i[u]={_global:[]}),l[u][f]=h},i.registerGlobalHelper=function(u,f,h,g){i.registerHelper(u,f,g),l[u]._global.push({pred:h,val:g})}}function Om(i,s,l,u,f){var h=s,g=l,_=Re(i,s.line),y=f&&i.direction=="rtl"?-l:l;function k(){var we=s.line+y;return we<i.first||we>=i.first+i.size?!1:(s=new J(we,s.ch,s.sticky),_=Re(i,we))}function L(we){var ye;if(u=="codepoint"){var Oe=_.text.charCodeAt(s.ch+(l>0?0:-1));if(isNaN(Oe))ye=null;else{var Fe=l>0?Oe>=55296&&Oe<56320:Oe>=56320&&Oe<57343;ye=new J(s.line,Math.max(0,Math.min(_.text.length,s.ch+l*(Fe?2:1))),-l)}}else f?ye=JV(i.cm,_,s,l):ye=km(_,s,l);if(ye==null)if(!we&&k())s=Em(f,i.cm,_,s.line,y);else return!1;else s=ye;return!0}if(u=="char"||u=="codepoint")L();else if(u=="column")L(!0);else if(u=="word"||u=="group")for(var $=null,Y=u=="group",z=i.cm&&i.cm.getHelper(s,"wordChars"),te=!0;!(l<0&&!L(!te));te=!1){var de=_.text.charAt(s.ch)||` `,ge=ei(de,z)?"w":Y&&de==` `?"n":!Y||/\s/.test(de)?null:"p";if(Y&&!te&&!ge&&(ge="s"),$&&$!=ge){l<0&&(l=1,L(),s.sticky="after");break}if(ge&&($=ge),l>0&&!L(!te))break}var be=Fc(i,s,h,g,!0);return ct(h,be)&&(be.hitSide=!0),be}function yC(i,s,l,u){var f=i.doc,h=s.left,g;if(u=="page"){var _=Math.min(i.display.wrapper.clientHeight,Pe(i).innerHeight||f(i).documentElement.clientHeight),y=Math.max(_-.5*Is(i.display),3);g=(l>0?s.bottom:s.top)+l*y}else u=="line"&&(g=l>0?s.bottom+3:s.top-3);for(var k;k=Jp(i,h,g),!!k.outside;){if(l<0?g<=0:g>=f.height){k.hitSide=!0;break}g+=l*5}return k}var ht=function(i){this.cm=i,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new xe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ht.prototype.init=function(i){var s=this,l=this,u=l.cm,f=l.div=i.lineDiv;f.contentEditable=!0,Am(f,u.options.spellcheck,u.options.autocorrect,u.options.autocapitalize);function h(_){for(var y=_.target;y;y=y.parentNode){if(y==f)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(y.className))break}return!1}$e(f,"paste",function(_){!h(_)||It(u,_)||vC(_,u)||v<=11&&setTimeout(Kt(u,function(){return s.updateFromDOM()}),20)}),$e(f,"compositionstart",function(_){s.composing={data:_.data,done:!1}}),$e(f,"compositionupdate",function(_){s.composing||(s.composing={data:_.data,done:!1})}),$e(f,"compositionend",function(_){s.composing&&(_.data!=s.composing.data&&s.readFromDOMSoon(),s.composing.done=!0)}),$e(f,"touchstart",function(){return l.forceCompositionEnd()}),$e(f,"input",function(){s.composing||s.readFromDOMSoon()});function g(_){if(!(!h(_)||It(u,_))){if(u.somethingSelected())Gc({lineWise:!1,text:u.getSelections()}),_.type=="cut"&&u.replaceSelection("",null,"cut");else if(u.options.lineWiseCopyCut){var y=_C(u);Gc({lineWise:!0,text:y.text}),_.type=="cut"&&u.operation(function(){u.setSelections(y.ranges,0,dt),u.replaceSelection("",null,"cut")})}else return;if(_.clipboardData){_.clipboardData.clearData();var k=kn.text.join(` `);if(_.clipboardData.setData("Text",k),_.clipboardData.getData("Text")==k){_.preventDefault();return}}var L=bC(),$=L.firstChild;Am($),u.display.lineSpace.insertBefore(L,u.display.lineSpace.firstChild),$.value=kn.text.join(` `);var Y=he(Ve(f));He($),setTimeout(function(){u.display.lineSpace.removeChild(L),Y.focus(),Y==f&&l.showPrimarySelection()},50)}}$e(f,"copy",g),$e(f,"cut",g)},ht.prototype.screenReaderLabelChanged=function(i){i?this.div.setAttribute("aria-label",i):this.div.removeAttribute("aria-label")},ht.prototype.prepareSelection=function(){var i=cT(this.cm,!1);return i.focus=he(Ve(this.div))==this.div,i},ht.prototype.showSelection=function(i,s){!i||!this.cm.display.view.length||((i.focus||s)&&this.showPrimarySelection(),this.showMultipleSelections(i))},ht.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ht.prototype.showPrimarySelection=function(){var i=this.getSelection(),s=this.cm,l=s.doc.sel.primary(),u=l.from(),f=l.to();if(s.display.viewTo==s.display.viewFrom||u.line>=s.display.viewTo||f.line<s.display.viewFrom){i.removeAllRanges();return}var h=zc(s,i.anchorNode,i.anchorOffset),g=zc(s,i.focusNode,i.focusOffset);if(!(h&&!h.bad&&g&&!g.bad&&Ce(As(h,g),u)==0&&Ce(Tr(h,g),f)==0)){var _=s.display.view,y=u.line>=s.display.viewFrom&&kC(s,u)||{node:_[0].measure.map[2],offset:0},k=f.line<s.display.viewTo&&kC(s,f);if(!k){var L=_[_.length-1].measure,$=L.maps?L.maps[L.maps.length-1]:L.map;k={node:$[$.length-1],offset:$[$.length-2]-$[$.length-3]}}if(!y||!k){i.removeAllRanges();return}var Y=i.rangeCount&&i.getRangeAt(0),z;try{z=V(y.node,y.offset,k.offset,k.node)}catch{}z&&(!a&&s.state.focused?(i.collapse(y.node,y.offset),z.collapsed||(i.removeAllRanges(),i.addRange(z))):(i.removeAllRanges(),i.addRange(z)),Y&&i.anchorNode==null?i.addRange(Y):a&&this.startGracePeriod()),this.rememberSelection()}},ht.prototype.startGracePeriod=function(){var i=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){i.gracePeriod=!1,i.selectionChanged()&&i.cm.operation(function(){return i.cm.curOp.selectionChanged=!0})},20)},ht.prototype.showMultipleSelections=function(i){W(this.cm.display.cursorDiv,i.cursors),W(this.cm.display.selectionDiv,i.selection)},ht.prototype.rememberSelection=function(){var i=this.getSelection();this.lastAnchorNode=i.anchorNode,this.lastAnchorOffset=i.anchorOffset,this.lastFocusNode=i.focusNode,this.lastFocusOffset=i.focusOffset},ht.prototype.selectionInEditor=function(){var i=this.getSelection();if(!i.rangeCount)return!1;var s=i.getRangeAt(0).commonAncestorContainer;return fe(this.div,s)},ht.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||he(Ve(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},ht.prototype.blur=function(){this.div.blur()},ht.prototype.getField=function(){return this.div},ht.prototype.supportsTouch=function(){return!0},ht.prototype.receivedFocus=function(){var i=this,s=this;this.selectionInEditor()?setTimeout(function(){return i.pollSelection()},20):Mr(this.cm,function(){return s.cm.curOp.selectionChanged=!0});function l(){s.cm.state.focused&&(s.pollSelection(),s.polling.set(s.cm.options.pollInterval,l))}this.polling.set(this.cm.options.pollInterval,l)},ht.prototype.selectionChanged=function(){var i=this.getSelection();return i.anchorNode!=this.lastAnchorNode||i.anchorOffset!=this.lastAnchorOffset||i.focusNode!=this.lastFocusNode||i.focusOffset!=this.lastFocusOffset},ht.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var i=this.getSelection(),s=this.cm;if(S&&T&&this.cm.display.gutterSpecs.length&&_Q(i.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var l=zc(s,i.anchorNode,i.anchorOffset),u=zc(s,i.focusNode,i.focusOffset);l&&u&&Mr(s,function(){or(s.doc,Hi(l,u),dt),(l.bad||u.bad)&&(s.curOp.selectionChanged=!0)})}}},ht.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var i=this.cm,s=i.display,l=i.doc.sel.primary(),u=l.from(),f=l.to();if(u.ch==0&&u.line>i.firstLine()&&(u=J(u.line-1,Re(i.doc,u.line-1).length)),f.ch==Re(i.doc,f.line).text.length&&f.line<i.lastLine()&&(f=J(f.line+1,0)),u.line<s.viewFrom||f.line>s.viewTo-1)return!1;var h,g,_;u.line==s.viewFrom||(h=Sa(i,u.line))==0?(g=w(s.view[0].line),_=s.view[0].node):(g=w(s.view[h].line),_=s.view[h-1].node.nextSibling);var y=Sa(i,f.line),k,L;if(y==s.view.length-1?(k=s.viewTo-1,L=s.lineDiv.lastChild):(k=w(s.view[y+1].line)-1,L=s.view[y+1].node.previousSibling),!_)return!1;for(var $=i.doc.splitLines(bQ(i,_,L,g,k)),Y=ni(i.doc,J(g,0),J(k,Re(i.doc,k).text.length));$.length>1&&Y.length>1;)if(Ye($)==Ye(Y))$.pop(),Y.pop(),k--;else if($[0]==Y[0])$.shift(),Y.shift(),g++;else break;for(var z=0,te=0,de=$[0],ge=Y[0],be=Math.min(de.length,ge.length);z<be&&de.charCodeAt(z)==ge.charCodeAt(z);)++z;for(var we=Ye($),ye=Ye(Y),Oe=Math.min(we.length-($.length==1?z:0),ye.length-(Y.length==1?z:0));te<Oe&&we.charCodeAt(we.length-te-1)==ye.charCodeAt(ye.length-te-1);)++te;if($.length==1&&Y.length==1&&g==u.line)for(;z&&z>u.ch&&we.charCodeAt(we.length-te-1)==ye.charCodeAt(ye.length-te-1);)z--,te++;$[$.length-1]=we.slice(0,we.length-te).replace(/^\u200b+/,""),$[0]=$[0].slice(z).replace(/\u200b+$/,"");var Fe=J(g,z),De=J(k,Y.length?Ye(Y).length-te:0);if($.length>1||$[0]||Ce(Fe,De))return Hs(i.doc,$,Fe,De,"+input"),!0},ht.prototype.ensurePolled=function(){this.forceCompositionEnd()},ht.prototype.reset=function(){this.forceCompositionEnd()},ht.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ht.prototype.readFromDOMSoon=function(){var i=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(i.readDOMTimeout=null,i.composing)if(i.composing.done)i.composing=null;else return;i.updateFromDOM()},80))},ht.prototype.updateFromDOM=function(){var i=this;(this.cm.isReadOnly()||!this.pollContent())&&Mr(this.cm,function(){return Cr(i.cm)})},ht.prototype.setUneditable=function(i){i.contentEditable="false"},ht.prototype.onKeyPress=function(i){i.charCode==0||this.composing||(i.preventDefault(),this.cm.isReadOnly()||Kt(this.cm,xm)(this.cm,String.fromCharCode(i.charCode==null?i.keyCode:i.charCode),0))},ht.prototype.readOnlyChanged=function(i){this.div.contentEditable=String(i!="nocursor")},ht.prototype.onContextMenu=function(){},ht.prototype.resetPosition=function(){},ht.prototype.needsContentAttribute=!0;function kC(i,s){var l=Xp(i,s.line);if(!l||l.hidden)return null;var u=Re(i.doc,s.line),f=VE(l,u,s.line),h=nt(u,i.doc.direction),g="left";if(h){var _=Ii(h,s.ch);g=_%2?"right":"left"}var y=ZE(f.map,s.ch,g);return y.offset=y.collapse=="right"?y.end:y.start,y}function _Q(i){for(var s=i;s;s=s.parentNode)if(/CodeMirror-gutter-wrapper/.test(s.className))return!0;return!1}function zs(i,s){return s&&(i.bad=!0),i}function bQ(i,s,l,u,f){var h="",g=!1,_=i.doc.lineSeparator(),y=!1;function k(z){return function(te){return te.id==z}}function L(){g&&(h+=_,y&&(h+=_),g=y=!1)}function $(z){z&&(L(),h+=z)}function Y(z){if(z.nodeType==1){var te=z.getAttribute("cm-text");if(te){$(te);return}var de=z.getAttribute("cm-marker"),ge;if(de){var be=i.findMarks(J(u,0),J(f+1,0),k(+de));be.length&&(ge=be[0].find(0))&&$(ni(i.doc,ge.from,ge.to).join(_));return}if(z.getAttribute("contenteditable")=="false")return;var we=/^(pre|div|p|li|table|br)$/i.test(z.nodeName);if(!/^br$/i.test(z.nodeName)&&z.textContent.length==0)return;we&&L();for(var ye=0;ye<z.childNodes.length;ye++)Y(z.childNodes[ye]);/^(pre|p)$/i.test(z.nodeName)&&(y=!0),we&&(g=!0)}else z.nodeType==3&&$(z.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Y(s),s!=l;)s=s.nextSibling,y=!1;return h}function zc(i,s,l){var u;if(s==i.display.lineDiv){if(u=i.display.lineDiv.childNodes[l],!u)return zs(i.clipPos(J(i.display.viewTo-1)),!0);s=null,l=0}else for(u=s;;u=u.parentNode){if(!u||u==i.display.lineDiv)return null;if(u.parentNode&&u.parentNode==i.display.lineDiv)break}for(var f=0;f<i.display.view.length;f++){var h=i.display.view[f];if(h.node==u)return yQ(h,s,l)}}function yQ(i,s,l){var u=i.text.firstChild,f=!1;if(!s||!fe(u,s))return zs(J(w(i.line),0),!0);if(s==u&&(f=!0,s=u.childNodes[l],l=0,!s)){var h=i.rest?Ye(i.rest):i.line;return zs(J(w(h),h.text.length),f)}var g=s.nodeType==3?s:null,_=s;for(!g&&s.childNodes.length==1&&s.firstChild.nodeType==3&&(g=s.firstChild,l&&(l=g.nodeValue.length));_.parentNode!=u;)_=_.parentNode;var y=i.measure,k=y.maps;function L(ge,be,we){for(var ye=-1;ye<(k?k.length:0);ye++)for(var Oe=ye<0?y.map:k[ye],Fe=0;Fe<Oe.length;Fe+=3){var De=Oe[Fe+2];if(De==ge||De==be){var Je=w(ye<0?i.line:i.rest[ye]),vt=Oe[Fe]+we;return(we<0||De!=ge)&&(vt=Oe[Fe+(we?1:0)]),J(Je,vt)}}}var $=L(g,_,l);if($)return zs($,f);for(var Y=_.nextSibling,z=g?g.nodeValue.length-l:0;Y;Y=Y.nextSibling){if($=L(Y,Y.firstChild,0),$)return zs(J($.line,$.ch-z),f);z+=Y.textContent.length}for(var te=_.previousSibling,de=l;te;te=te.previousSibling){if($=L(te,te.firstChild,-1),$)return zs(J($.line,$.ch+de),f);de+=te.textContent.length}}var Mt=function(i){this.cm=i,this.prevInput="",this.pollingFast=!1,this.polling=new xe,this.hasSelection=!1,this.composing=null,this.resetting=!1};Mt.prototype.init=function(i){var s=this,l=this,u=this.cm;this.createField(i);var f=this.textarea;i.wrapper.insertBefore(this.wrapper,i.wrapper.firstChild),x&&(f.style.width="0px"),$e(f,"input",function(){p&&v>=9&&s.hasSelection&&(s.hasSelection=null),l.poll()}),$e(f,"paste",function(g){It(u,g)||vC(g,u)||(u.state.pasteIncoming=+new Date,l.fastPoll())});function h(g){if(!It(u,g)){if(u.somethingSelected())Gc({lineWise:!1,text:u.getSelections()});else if(u.options.lineWiseCopyCut){var _=_C(u);Gc({lineWise:!0,text:_.text}),g.type=="cut"?u.setSelections(_.ranges,null,dt):(l.prevInput="",f.value=_.text.join(` `),He(f))}else return;g.type=="cut"&&(u.state.cutIncoming=+new Date)}}$e(f,"cut",h),$e(f,"copy",h),$e(i.scroller,"paste",function(g){if(!(si(i,g)||It(u,g))){if(!f.dispatchEvent){u.state.pasteIncoming=+new Date,l.focus();return}var _=new Event("paste");_.clipboardData=g.clipboardData,f.dispatchEvent(_)}}),$e(i.lineSpace,"selectstart",function(g){si(i,g)||sr(g)}),$e(f,"compositionstart",function(){var g=u.getCursor("from");l.composing&&l.composing.range.clear(),l.composing={start:g,range:u.markText(g,u.getCursor("to"),{className:"CodeMirror-composing"})}}),$e(f,"compositionend",function(){l.composing&&(l.poll(),l.composing.range.clear(),l.composing=null)})},Mt.prototype.createField=function(i){this.wrapper=bC(),this.textarea=this.wrapper.firstChild;var s=this.cm.options;Am(this.textarea,s.spellcheck,s.autocorrect,s.autocapitalize)},Mt.prototype.screenReaderLabelChanged=function(i){i?this.textarea.setAttribute("aria-label",i):this.textarea.removeAttribute("aria-label")},Mt.prototype.prepareSelection=function(){var i=this.cm,s=i.display,l=i.doc,u=cT(i);if(i.options.moveInputWithCursor){var f=bn(i,l.sel.primary().head,"div"),h=s.wrapper.getBoundingClientRect(),g=s.lineDiv.getBoundingClientRect();u.teTop=Math.max(0,Math.min(s.wrapper.clientHeight-10,f.top+g.top-h.top)),u.teLeft=Math.max(0,Math.min(s.wrapper.clientWidth-10,f.left+g.left-h.left))}return u},Mt.prototype.showSelection=function(i){var s=this.cm,l=s.display;W(l.cursorDiv,i.cursors),W(l.selectionDiv,i.selection),i.teTop!=null&&(this.wrapper.style.top=i.teTop+"px",this.wrapper.style.left=i.teLeft+"px")},Mt.prototype.reset=function(i){if(!(this.contextMenuPending||this.composing&&i)){var s=this.cm;if(this.resetting=!0,s.somethingSelected()){this.prevInput="";var l=s.getSelection();this.textarea.value=l,s.state.focused&&He(this.textarea),p&&v>=9&&(this.hasSelection=l)}else i||(this.prevInput=this.textarea.value="",p&&v>=9&&(this.hasSelection=null));this.resetting=!1}},Mt.prototype.getField=function(){return this.textarea},Mt.prototype.supportsTouch=function(){return!1},Mt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!P||he(Ve(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Mt.prototype.blur=function(){this.textarea.blur()},Mt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Mt.prototype.receivedFocus=function(){this.slowPoll()},Mt.prototype.slowPoll=function(){var i=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){i.poll(),i.cm.state.focused&&i.slowPoll()})},Mt.prototype.fastPoll=function(){var i=!1,s=this;s.pollingFast=!0;function l(){var u=s.poll();!u&&!i?(i=!0,s.polling.set(60,l)):(s.pollingFast=!1,s.slowPoll())}s.polling.set(20,l)},Mt.prototype.poll=function(){var i=this,s=this.cm,l=this.textarea,u=this.prevInput;if(this.contextMenuPending||this.resetting||!s.state.focused||Di(l)&&!u&&!this.composing||s.isReadOnly()||s.options.disableInput||s.state.keySeq)return!1;var f=l.value;if(f==u&&!s.somethingSelected())return!1;if(p&&v>=9&&this.hasSelection===f||R&&/[\uf700-\uf7ff]/.test(f))return s.display.input.reset(),!1;if(s.doc.sel==s.display.selForContextMenu){var h=f.charCodeAt(0);if(h==8203&&!u&&(u="\u200B"),h==8666)return this.reset(),this.cm.execCommand("undo")}for(var g=0,_=Math.min(u.length,f.length);g<_&&u.charCodeAt(g)==f.charCodeAt(g);)++g;return Mr(s,function(){xm(s,f.slice(g),u.length-g,null,i.composing?"*compose":null),f.length>1e3||f.indexOf(` `)>-1?l.value=i.prevInput="":i.prevInput=f,i.composing&&(i.composing.range.clear(),i.composing.range=s.markText(i.composing.start,s.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Mt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Mt.prototype.onKeyPress=function(){p&&v>=9&&(this.hasSelection=null),this.fastPoll()},Mt.prototype.onContextMenu=function(i){var s=this,l=s.cm,u=l.display,f=s.textarea;s.contextMenuPending&&s.contextMenuPending();var h=wa(l,i),g=u.scroller.scrollTop;if(!h||F)return;var _=l.options.resetSelectionOnContextMenu;_&&l.doc.sel.contains(h)==-1&&Kt(l,or)(l.doc,Hi(h),dt);var y=f.style.cssText,k=s.wrapper.style.cssText,L=s.wrapper.offsetParent.getBoundingClientRect();s.wrapper.style.cssText="position: static",f.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(i.clientY-L.top-5)+"px; left: "+(i.clientX-L.left-5)+`px; z-index: 1000; background: `+(p?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var $;b&&($=f.ownerDocument.defaultView.scrollY),u.input.focus(),b&&f.ownerDocument.defaultView.scrollTo(null,$),u.input.reset(),l.somethingSelected()||(f.value=s.prevInput=" "),s.contextMenuPending=z,u.selForContextMenu=l.doc.sel,clearTimeout(u.detectingSelectAll);function Y(){if(f.selectionStart!=null){var de=l.somethingSelected(),ge="\u200B"+(de?f.value:"");f.value="\u21DA",f.value=ge,s.prevInput=de?"":"\u200B",f.selectionStart=1,f.selectionEnd=ge.length,u.selForContextMenu=l.doc.sel}}function z(){if(s.contextMenuPending==z&&(s.contextMenuPending=!1,s.wrapper.style.cssText=k,f.style.cssText=y,p&&v<9&&u.scrollbars.setScrollTop(u.scroller.scrollTop=g),f.selectionStart!=null)){(!p||p&&v<9)&&Y();var de=0,ge=function(){u.selForContextMenu==l.doc.sel&&f.selectionStart==0&&f.selectionEnd>0&&s.prevInput=="\u200B"?Kt(l,HT)(l):de++<10?u.detectingSelectAll=setTimeout(ge,500):(u.selForContextMenu=null,u.input.reset())};u.detectingSelectAll=setTimeout(ge,200)}}if(p&&v>=9&&Y(),Z){Li(i);var te=function(){ar(window,"mouseup",te),setTimeout(z,20)};$e(window,"mouseup",te)}else setTimeout(z,50)},Mt.prototype.readOnlyChanged=function(i){i||this.reset(),this.textarea.disabled=i=="nocursor",this.textarea.readOnly=!!i},Mt.prototype.setUneditable=function(){},Mt.prototype.needsContentAttribute=!1;function kQ(i,s){if(s=s?Se(s):{},s.value=i.value,!s.tabindex&&i.tabIndex&&(s.tabindex=i.tabIndex),!s.placeholder&&i.placeholder&&(s.placeholder=i.placeholder),s.autofocus==null){var l=he(Ve(i));s.autofocus=l==i||i.getAttribute("autofocus")!=null&&l==document.body}function u(){i.value=_.getValue()}var f;if(i.form&&($e(i.form,"submit",u),!s.leaveSubmitMethodAlone)){var h=i.form;f=h.submit;try{var g=h.submit=function(){u(),h.submit=f,h.submit(),h.submit=g}}catch{}}s.finishInit=function(y){y.save=u,y.getTextArea=function(){return i},y.toTextArea=function(){y.toTextArea=isNaN,u(),i.parentNode.removeChild(y.getWrapperElement()),i.style.display="",i.form&&(ar(i.form,"submit",u),!s.leaveSubmitMethodAlone&&typeof i.form.submit=="function"&&(i.form.submit=f))}},i.style.display="none";var _=Et(function(y){return i.parentNode.insertBefore(y,i.nextSibling)},s);return _}function EQ(i){i.off=ar,i.on=$e,i.wheelEventPixels=OV,i.Doc=wr,i.splitLines=Zr,i.countColumn=Le,i.findColumn=tt,i.isWordChar=ir,i.Pass=ut,i.signal=Pt,i.Line=Os,i.changeEnd=Ui,i.scrollbarModel=vT,i.Pos=J,i.cmpPos=Ce,i.modes=Ts,i.mimeModes=vn,i.resolveMode=Cs,i.getMode=ws,i.modeExtensions=Mi,i.extendMode=Ss,i.copyState=In,i.startState=xs,i.innerMode=iu,i.commands=Au,i.keyMap=ui,i.keyName=rC,i.isModifierKey=eC,i.lookupKey=js,i.normalizeKeyMap=QV,i.StringStream=Lt,i.SharedTextMarker=wu,i.TextMarker=Wi,i.LineWidget=Cu,i.e_preventDefault=sr,i.e_stopPropagation=ks,i.e_stop=Li,i.addClass=Ie,i.contains=fe,i.rmClass=U,i.keyNames=Gi}hQ(Et),gQ(Et);var TQ="iter insert remove copy getEditor constructor".split(" ");for(var qc in wr.prototype)wr.prototype.hasOwnProperty(qc)&&Ee(TQ,qc)<0&&(Et.prototype[qc]=(function(i){return function(){return i.apply(this.doc,arguments)}})(wr.prototype[qc]));return hn(wr),Et.inputStyles={textarea:Mt,contenteditable:ht},Et.defineMode=function(i){!Et.defaults.mode&&i!="null"&&(Et.defaults.mode=i),gn.apply(this,arguments)},Et.defineMIME=Ea,Et.defineMode("null",function(){return{token:function(i){return i.skipToEnd()}}}),Et.defineMIME("text/plain","null"),Et.defineExtension=function(i,s){Et.prototype[i]=s},Et.defineDocExtension=function(i,s){wr.prototype[i]=s},Et.fromTextArea=kQ,EQ(Et),Et.version="5.65.20",Et}))})(Fu)),Fu.exports}var ov;function _S(){return ov||(ov=1,(function(t,e){(function(r){r(En())})(function(r){r.defineOption("placeholder","",function(v,b,C){var T=C&&C!=r.Init;if(b&&!T)v.on("blur",c),v.on("change",d),v.on("swapDoc",d),r.on(v.getInputField(),"compositionupdate",v.state.placeholderCompose=function(){o(v)}),d(v);else if(!b&&T){v.off("blur",c),v.off("change",d),v.off("swapDoc",d),r.off(v.getInputField(),"compositionupdate",v.state.placeholderCompose),n(v);var A=v.getWrapperElement();A.className=A.className.replace(" CodeMirror-empty","")}b&&!v.hasFocus()&&c(v)});function n(v){v.state.placeholder&&(v.state.placeholder.parentNode.removeChild(v.state.placeholder),v.state.placeholder=null)}function a(v){n(v);var b=v.state.placeholder=document.createElement("pre");b.style.cssText="height: 0; overflow: visible",b.style.direction=v.getOption("direction"),b.className="CodeMirror-placeholder CodeMirror-line-like";var C=v.getOption("placeholder");typeof C=="string"&&(C=document.createTextNode(C)),b.appendChild(C),v.display.lineSpace.insertBefore(b,v.display.lineSpace.firstChild)}function o(v){setTimeout(function(){var b=!1;if(v.lineCount()==1){var C=v.getInputField();b=C.nodeName=="TEXTAREA"?!v.getLine(0).length:!/[^\u200b]/.test(C.querySelector(".CodeMirror-line").textContent)}b?a(v):n(v)},20)}function c(v){p(v)&&a(v)}function d(v){var b=v.getWrapperElement(),C=p(v);b.className=b.className.replace(" CodeMirror-empty","")+(C?" CodeMirror-empty":""),C?a(v):n(v)}function p(v){return v.lineCount()===1&&v.getLine(0)===""}})})()),av.exports}_S();var uv={exports:{}},lv={exports:{}},cv;function rf(){return cv||(cv=1,(function(t,e){(function(r){r(En())})(function(r){r.defineMode("css",function(Z,ne){var U=ne.inline;ne.propertyKeywords||(ne=r.resolveMode("text/css"));var N=Z.indentUnit,W=ne.tokenHooks,E=ne.documentTypes||{},ee=ne.mediaTypes||{},V=ne.mediaFeatures||{},fe=ne.mediaValueKeywords||{},he=ne.propertyKeywords||{},Ie=ne.nonStandardPropertyKeywords||{},Ge=ne.fontProperties||{},He=ne.counterDescriptors||{},We=ne.colorKeywords||{},at=ne.valueKeywords||{},Ve=ne.allowNested,Pe=ne.lineComment,Te=ne.supportsAtComponent===!0,Se=Z.highlightNonStandardPropertyKeywords!==!1,Le,xe;function Ee(X,me){return Le=me,X}function Qe(X,me){var ie=X.next();if(W[ie]){var it=W[ie](X,me);if(it!==!1)return it}if(ie=="@")return X.eatWhile(/[\w\\\-]/),Ee("def",X.current());if(ie=="="||(ie=="~"||ie=="|")&&X.eat("="))return Ee(null,"compare");if(ie=='"'||ie=="'")return me.tokenize=ut(ie),me.tokenize(X,me);if(ie=="#")return X.eatWhile(/[\w\\\-]/),Ee("atom","hash");if(ie=="!")return X.match(/^\s*\w*/),Ee("keyword","important");if(/\d/.test(ie)||ie=="."&&X.eat(/\d/))return X.eatWhile(/[\w.%]/),Ee("number","unit");if(ie==="-"){if(/[\d.]/.test(X.peek()))return X.eatWhile(/[\w.%]/),Ee("number","unit");if(X.match(/^-[\w\\\-]*/))return X.eatWhile(/[\w\\\-]/),X.match(/^\s*:/,!1)?Ee("variable-2","variable-definition"):Ee("variable-2","variable");if(X.match(/^\w+-/))return Ee("meta","meta")}else return/[,+>*\/]/.test(ie)?Ee(null,"select-op"):ie=="."&&X.match(/^-?[_a-z][_a-z0-9-]*/i)?Ee("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(ie)?Ee(null,ie):X.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(X.current())&&(me.tokenize=dt),Ee("variable callee","variable")):/[\w\\\-]/.test(ie)?(X.eatWhile(/[\w\\\-]/),Ee("property","word")):Ee(null,null)}function ut(X){return function(me,ie){for(var it=!1,ir;(ir=me.next())!=null;){if(ir==X&&!it){X==")"&&me.backUp(1);break}it=!it&&ir=="\\"}return(ir==X||!it&&X!=")")&&(ie.tokenize=null),Ee("string","string")}}function dt(X,me){return X.next(),X.match(/^\s*[\"\')]/,!1)?me.tokenize=null:me.tokenize=ut(")"),Ee(null,"(")}function Nt(X,me,ie){this.type=X,this.indent=me,this.prev=ie}function ze(X,me,ie,it){return X.context=new Nt(ie,me.indentation()+(it===!1?0:N),X.context),ie}function tt(X){return X.context.prev&&(X.context=X.context.prev),X.context.type}function lt(X,me,ie){return rt[ie.context.type](X,me,ie)}function $t(X,me,ie,it){for(var ir=it||1;ir>0;ir--)ie.context=ie.context.prev;return lt(X,me,ie)}function Ye(X){var me=X.current().toLowerCase();at.hasOwnProperty(me)?xe="atom":We.hasOwnProperty(me)?xe="keyword":xe="variable"}var rt={};return rt.top=function(X,me,ie){if(X=="{")return ze(ie,me,"block");if(X=="}"&&ie.context.prev)return tt(ie);if(Te&&/@component/i.test(X))return ze(ie,me,"atComponentBlock");if(/^@(-moz-)?document$/i.test(X))return ze(ie,me,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(X))return ze(ie,me,"atBlock");if(/^@(font-face|counter-style)/i.test(X))return ie.stateArg=X,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(X))return"keyframes";if(X&&X.charAt(0)=="@")return ze(ie,me,"at");if(X=="hash")xe="builtin";else if(X=="word")xe="tag";else{if(X=="variable-definition")return"maybeprop";if(X=="interpolation")return ze(ie,me,"interpolation");if(X==":")return"pseudo";if(Ve&&X=="(")return ze(ie,me,"parens")}return ie.context.type},rt.block=function(X,me,ie){if(X=="word"){var it=me.current().toLowerCase();return he.hasOwnProperty(it)?(xe="property","maybeprop"):Ie.hasOwnProperty(it)?(xe=Se?"string-2":"property","maybeprop"):Ve?(xe=me.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(xe+=" error","maybeprop")}else return X=="meta"?"block":!Ve&&(X=="hash"||X=="qualifier")?(xe="error","block"):rt.top(X,me,ie)},rt.maybeprop=function(X,me,ie){return X==":"?ze(ie,me,"prop"):lt(X,me,ie)},rt.prop=function(X,me,ie){if(X==";")return tt(ie);if(X=="{"&&Ve)return ze(ie,me,"propBlock");if(X=="}"||X=="{")return $t(X,me,ie);if(X=="(")return ze(ie,me,"parens");if(X=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(me.current()))xe+=" error";else if(X=="word")Ye(me);else if(X=="interpolation")return ze(ie,me,"interpolation");return"prop"},rt.propBlock=function(X,me,ie){return X=="}"?tt(ie):X=="word"?(xe="property","maybeprop"):ie.context.type},rt.parens=function(X,me,ie){return X=="{"||X=="}"?$t(X,me,ie):X==")"?tt(ie):X=="("?ze(ie,me,"parens"):X=="interpolation"?ze(ie,me,"interpolation"):(X=="word"&&Ye(me),"parens")},rt.pseudo=function(X,me,ie){return X=="meta"?"pseudo":X=="word"?(xe="variable-3",ie.context.type):lt(X,me,ie)},rt.documentTypes=function(X,me,ie){return X=="word"&&E.hasOwnProperty(me.current())?(xe="tag",ie.context.type):rt.atBlock(X,me,ie)},rt.atBlock=function(X,me,ie){if(X=="(")return ze(ie,me,"atBlock_parens");if(X=="}"||X==";")return $t(X,me,ie);if(X=="{")return tt(ie)&&ze(ie,me,Ve?"block":"top");if(X=="interpolation")return ze(ie,me,"interpolation");if(X=="word"){var it=me.current().toLowerCase();it=="only"||it=="not"||it=="and"||it=="or"?xe="keyword":ee.hasOwnProperty(it)?xe="attribute":V.hasOwnProperty(it)?xe="property":fe.hasOwnProperty(it)?xe="keyword":he.hasOwnProperty(it)?xe="property":Ie.hasOwnProperty(it)?xe=Se?"string-2":"property":at.hasOwnProperty(it)?xe="atom":We.hasOwnProperty(it)?xe="keyword":xe="error"}return ie.context.type},rt.atComponentBlock=function(X,me,ie){return X=="}"?$t(X,me,ie):X=="{"?tt(ie)&&ze(ie,me,Ve?"block":"top",!1):(X=="word"&&(xe="error"),ie.context.type)},rt.atBlock_parens=function(X,me,ie){return X==")"?tt(ie):X=="{"||X=="}"?$t(X,me,ie,2):rt.atBlock(X,me,ie)},rt.restricted_atBlock_before=function(X,me,ie){return X=="{"?ze(ie,me,"restricted_atBlock"):X=="word"&&ie.stateArg=="@counter-style"?(xe="variable","restricted_atBlock_before"):lt(X,me,ie)},rt.restricted_atBlock=function(X,me,ie){return X=="}"?(ie.stateArg=null,tt(ie)):X=="word"?(ie.stateArg=="@font-face"&&!Ge.hasOwnProperty(me.current().toLowerCase())||ie.stateArg=="@counter-style"&&!He.hasOwnProperty(me.current().toLowerCase())?xe="error":xe="property","maybeprop"):"restricted_atBlock"},rt.keyframes=function(X,me,ie){return X=="word"?(xe="variable","keyframes"):X=="{"?ze(ie,me,"top"):lt(X,me,ie)},rt.at=function(X,me,ie){return X==";"?tt(ie):X=="{"||X=="}"?$t(X,me,ie):(X=="word"?xe="tag":X=="hash"&&(xe="builtin"),"at")},rt.interpolation=function(X,me,ie){return X=="}"?tt(ie):X=="{"||X==";"?$t(X,me,ie):(X=="word"?xe="variable":X!="variable"&&X!="("&&X!=")"&&(xe="error"),"interpolation")},{startState:function(X){return{tokenize:null,state:U?"block":"top",stateArg:null,context:new Nt(U?"block":"top",X||0,null)}},token:function(X,me){if(!me.tokenize&&X.eatSpace())return null;var ie=(me.tokenize||Qe)(X,me);return ie&&typeof ie=="object"&&(Le=ie[1],ie=ie[0]),xe=ie,Le!="comment"&&(me.state=rt[me.state](Le,X,me)),xe},indent:function(X,me){var ie=X.context,it=me&&me.charAt(0),ir=ie.indent;return ie.type=="prop"&&(it=="}"||it==")")&&(ie=ie.prev),ie.prev&&(it=="}"&&(ie.type=="block"||ie.type=="top"||ie.type=="interpolation"||ie.type=="restricted_atBlock")?(ie=ie.prev,ir=ie.indent):(it==")"&&(ie.type=="parens"||ie.type=="atBlock_parens")||it=="{"&&(ie.type=="at"||ie.type=="atBlock"))&&(ir=Math.max(0,ie.indent-N))),ir},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:Pe,fold:"brace"}});function n(Z){for(var ne={},U=0;U<Z.length;++U)ne[Z[U].toLowerCase()]=!0;return ne}var a=["domain","regexp","url","url-prefix"],o=n(a),c=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],d=n(c),p=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],v=n(p),b=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],C=n(b),T=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],A=n(T),F=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],G=n(F),j=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],O=n(j),x=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],S=n(x),P=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],R=n(P),B=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],q=n(B),le=a.concat(c).concat(p).concat(b).concat(T).concat(F).concat(P).concat(B);r.registerHelper("hintWords","css",le);function ae(Z,ne){for(var U=!1,N;(N=Z.next())!=null;){if(U&&N=="/"){ne.tokenize=null;break}U=N=="*"}return["comment","comment"]}r.defineMIME("text/css",{documentTypes:o,mediaTypes:d,mediaFeatures:v,mediaValueKeywords:C,propertyKeywords:A,nonStandardPropertyKeywords:G,fontProperties:O,counterDescriptors:S,colorKeywords:R,valueKeywords:q,tokenHooks:{"/":function(Z,ne){return Z.eat("*")?(ne.tokenize=ae,ae(Z,ne)):!1}},name:"css"}),r.defineMIME("text/x-scss",{mediaTypes:d,mediaFeatures:v,mediaValueKeywords:C,propertyKeywords:A,nonStandardPropertyKeywords:G,colorKeywords:R,valueKeywords:q,fontProperties:O,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(Z,ne){return Z.eat("/")?(Z.skipToEnd(),["comment","comment"]):Z.eat("*")?(ne.tokenize=ae,ae(Z,ne)):["operator","operator"]},":":function(Z){return Z.match(/^\s*\{/,!1)?[null,null]:!1},$:function(Z){return Z.match(/^[\w-]+/),Z.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(Z){return Z.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),r.defineMIME("text/x-less",{mediaTypes:d,mediaFeatures:v,mediaValueKeywords:C,propertyKeywords:A,nonStandardPropertyKeywords:G,colorKeywords:R,valueKeywords:q,fontProperties:O,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(Z,ne){return Z.eat("/")?(Z.skipToEnd(),["comment","comment"]):Z.eat("*")?(ne.tokenize=ae,ae(Z,ne)):["operator","operator"]},"@":function(Z){return Z.eat("{")?[null,"interpolation"]:Z.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(Z.eatWhile(/[\w\\\-]/),Z.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),r.defineMIME("text/x-gss",{documentTypes:o,mediaTypes:d,mediaFeatures:v,propertyKeywords:A,nonStandardPropertyKeywords:G,fontProperties:O,counterDescriptors:S,colorKeywords:R,valueKeywords:q,supportsAtComponent:!0,tokenHooks:{"/":function(Z,ne){return Z.eat("*")?(ne.tokenize=ae,ae(Z,ne)):!1}},name:"css",helperType:"gss"})})})()),lv.exports}var fv;function bS(){return fv||(fv=1,(function(t,e){(function(r){r(En(),rf())})(function(r){var n={active:1,after:1,before:1,checked:1,default:1,disabled:1,empty:1,enabled:1,"first-child":1,"first-letter":1,"first-line":1,"first-of-type":1,focus:1,hover:1,"in-range":1,indeterminate:1,invalid:1,lang:1,"last-child":1,"last-of-type":1,link:1,not:1,"nth-child":1,"nth-last-child":1,"nth-last-of-type":1,"nth-of-type":1,"only-of-type":1,"only-child":1,optional:1,"out-of-range":1,placeholder:1,"read-only":1,"read-write":1,required:1,root:1,selection:1,target:1,valid:1,visited:1};r.registerHelper("hint","css",function(a){var o=a.getCursor(),c=a.getTokenAt(o),d=r.innerMode(a.getMode(),c.state);if(d.mode.name!="css")return;if(c.type=="keyword"&&"!important".indexOf(c.string)==0)return{list:["!important"],from:r.Pos(o.line,c.start),to:r.Pos(o.line,c.end)};var p=c.start,v=o.ch,b=c.string.slice(0,v-p);/[^\w$_-]/.test(b)&&(b="",p=v=o.ch);var C=r.resolveMode("text/css"),T=[];function A(G){for(var j in G)(!b||j.lastIndexOf(b,0)==0)&&T.push(j)}var F=d.state.state;if(F=="pseudo"||c.type=="variable-3"?A(n):F=="block"||F=="maybeprop"?A(C.propertyKeywords):F=="prop"||F=="parens"||F=="at"||F=="params"?(A(C.valueKeywords),A(C.colorKeywords)):(F=="media"||F=="media_parens")&&(A(C.mediaTypes),A(C.mediaFeatures)),T.length)return{list:T,from:r.Pos(o.line,p),to:r.Pos(o.line,v)}})})})()),uv.exports}bS();var dv={exports:{}},hv={exports:{}},pv;function mv(){return pv||(pv=1,(function(t,e){(function(r){r(En())})(function(r){var n=r.Pos;function a(c,d,p){return p?c.indexOf(d)>=0:c.lastIndexOf(d,0)==0}function o(c,d){var p=d&&d.schemaInfo,v=d&&d.quoteChar||'"',b=d&&d.matchInMiddle;if(!p)return;var C=c.getCursor(),T=c.getTokenAt(C);T.end>C.ch&&(T.end=C.ch,T.string=T.string.slice(0,C.ch-T.start));var A=r.innerMode(c.getMode(),T.state);if(!A.mode.xmlCurrentTag)return;var F=[],G=!1,j,O=/\btag\b/.test(T.type)&&!/>$/.test(T.string),x=O&&/^\w/.test(T.string),S;if(x){var P=c.getLine(C.line).slice(Math.max(0,T.start-2),T.start),R=/<\/$/.test(P)?"close":/<$/.test(P)?"open":null;R&&(S=T.start-(R=="close"?2:1))}else O&&T.string=="<"?R="open":O&&T.string=="</"&&(R="close");var B=A.mode.xmlCurrentTag(A.state);if(!O&&!B||R){x&&(j=T.string),G=R;var q=A.mode.xmlCurrentContext?A.mode.xmlCurrentContext(A.state):[],A=q.length&&q[q.length-1],le=A&&p[A],ae=A?le&&le.children:p["!top"];if(ae&&R!="close")for(var Z=0;Z<ae.length;++Z)(!j||a(ae[Z],j,b))&&F.push("<"+ae[Z]);else if(R!="close")for(var ne in p)p.hasOwnProperty(ne)&&ne!="!top"&&ne!="!attrs"&&(!j||a(ne,j,b))&&F.push("<"+ne);A&&(!j||R=="close"&&a(A,j,b))&&F.push("</"+A+">")}else{var le=B&&p[B.name],U=le&&le.attrs,N=p["!attrs"];if(!U&&!N)return;if(!U)U=N;else if(N){var W={};for(var E in N)N.hasOwnProperty(E)&&(W[E]=N[E]);for(var E in U)U.hasOwnProperty(E)&&(W[E]=U[E]);U=W}if(T.type=="string"||T.string=="="){var P=c.getRange(n(C.line,Math.max(0,C.ch-60)),n(C.line,T.type=="string"?T.start:T.end)),ee=P.match(/([^\s\u00a0=<>\"\']+)=$/),V;if(!ee||!U.hasOwnProperty(ee[1])||!(V=U[ee[1]]))return;if(typeof V=="function"&&(V=V.call(this,c)),T.type=="string"){j=T.string;var fe=0;/['"]/.test(T.string.charAt(0))&&(v=T.string.charAt(0),j=T.string.slice(1),fe++);var he=T.string.length;if(/['"]/.test(T.string.charAt(he-1))&&(v=T.string.charAt(he-1),j=T.string.substr(fe,he-2)),fe){var Ie=c.getLine(C.line);Ie.length>T.end&&Ie.charAt(T.end)==v&&T.end++}G=!0}var Ge=function(Pe){if(Pe)for(var Te=0;Te<Pe.length;++Te)(!j||a(Pe[Te],j,b))&&F.push(v+Pe[Te]+v);return We()};return V&&V.then?V.then(Ge):Ge(V)}else{T.type=="attribute"&&(j=T.string,G=!0);for(var He in U)U.hasOwnProperty(He)&&(!j||a(He,j,b))&&F.push(He)}}function We(){return{list:F,from:G?n(C.line,S??T.start):C,to:G?n(C.line,T.end):C}}return We()}r.registerHelper("hint","xml",o)})})()),hv.exports}var vv;function yS(){return vv||(vv=1,(function(t,e){(function(r){r(En(),mv())})(function(r){var n="ab aa af ak sq am ar an hy as av ae ay az bm ba eu be bn bh bi bs br bg my ca ch ce ny zh cv kw co cr hr cs da dv nl dz en eo et ee fo fj fi fr ff gl ka de el gn gu ht ha he hz hi ho hu ia id ie ga ig ik io is it iu ja jv kl kn kr ks kk km ki rw ky kv kg ko ku kj la lb lg li ln lo lt lu lv gv mk mg ms ml mt mi mr mh mn na nv nb nd ne ng nn no ii nr oc oj cu om or os pa pi fa pl ps pt qu rm rn ro ru sa sc sd se sm sg sr gd sn si sk sl so st es su sw ss sv ta te tg th ti bo tk tl tn to tr ts tt tw ty ug uk ur uz ve vi vo wa cy wo fy xh yi yo za zu".split(" "),a=["_blank","_self","_top","_parent"],o=["ascii","utf-8","utf-16","latin1","latin1"],c=["get","post","put","delete"],d=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],p=["all","screen","print","embossed","braille","handheld","print","projection","screen","tty","tv","speech","3d-glasses","resolution [>][<][=] [X]","device-aspect-ratio: X/Y","orientation:portrait","orientation:landscape","device-height: [X]","device-width: [X]"],v={attrs:{}},b={a:{attrs:{href:null,ping:null,type:null,media:p,target:a,hreflang:n}},abbr:v,acronym:v,address:v,applet:v,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:p,hreflang:n,type:null,shape:["default","rect","circle","poly"]}},article:v,aside:v,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["","autoplay"],loop:["","loop"],controls:["","controls"]}},b:v,base:{attrs:{href:null,target:a}},basefont:v,bdi:v,bdo:v,big:v,blockquote:{attrs:{cite:null}},body:v,br:v,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["","autofocus"],disabled:["","autofocus"],formenctype:d,formmethod:c,formnovalidate:["","novalidate"],formtarget:a,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:v,center:v,cite:v,code:v,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["","disabled"],checked:["","checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["","disabled"],multiple:["","multiple"]}},datalist:{attrs:{data:null}},dd:v,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["","open"]}},dfn:v,dir:v,div:v,dialog:{attrs:{open:null}},dl:v,dt:v,em:v,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["","disabled"],form:null,name:null}},figcaption:v,figure:v,font:v,footer:v,form:{attrs:{action:null,name:null,"accept-charset":o,autocomplete:["on","off"],enctype:d,method:c,novalidate:["","novalidate"],target:a}},frame:v,frameset:v,h1:v,h2:v,h3:v,h4:v,h5:v,h6:v,head:{attrs:{},children:["title","base","link","style","meta","script","noscript","command"]},header:v,hgroup:v,hr:v,html:{attrs:{manifest:null},children:["head","body"]},i:v,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["","seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["","autofocus"],checked:["","checked"],disabled:["","disabled"],formenctype:d,formmethod:c,formnovalidate:["","novalidate"],formtarget:a,multiple:["","multiple"],readonly:["","readonly"],required:["","required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:v,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["","autofocus"],disabled:["","disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:v,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:n,media:p,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:v,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:o,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:v,noframes:v,noscript:v,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["","typemustmatch"]}},ol:{attrs:{reversed:["","reversed"],start:null,type:["1","a","A","i","I"]}},optgroup:{attrs:{disabled:["","disabled"],label:null}},option:{attrs:{disabled:["","disabled"],label:null,selected:["","selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:v,param:{attrs:{name:null,value:null}},pre:v,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:v,rt:v,ruby:v,s:v,samp:v,script:{attrs:{type:["text/javascript"],src:null,async:["","async"],defer:["","defer"],charset:o}},section:v,select:{attrs:{form:null,name:null,size:null,autofocus:["","autofocus"],disabled:["","disabled"],multiple:["","multiple"]}},small:v,source:{attrs:{src:null,type:null,media:null}},span:v,strike:v,strong:v,style:{attrs:{type:["text/css"],media:p,scoped:null}},sub:v,summary:v,sup:v,table:v,tbody:v,td:{attrs:{colspan:null,rowspan:null,headers:null}},textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["","autofocus"],disabled:["","disabled"],readonly:["","readonly"],required:["","required"],wrap:["soft","hard"]}},tfoot:v,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:v,time:{attrs:{datetime:null}},title:v,tr:v,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:n}},tt:v,u:v,ul:v,var:v,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["","autoplay"],mediagroup:["movie"],muted:["","muted"],controls:["","controls"]}},wbr:v},C={accesskey:["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9"],class:null,contenteditable:["true","false"],contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["en","es"],spellcheck:["true","false"],autocorrect:["true","false"],autocapitalize:["true","false"],style:null,tabindex:["1","2","3","4","5","6","7","8","9"],title:null,translate:["yes","no"],onclick:null,rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"]};function T(G){for(var j in C)C.hasOwnProperty(j)&&(G.attrs[j]=C[j])}T(v);for(var A in b)b.hasOwnProperty(A)&&b[A]!=v&&T(b[A]);r.htmlSchema=b;function F(G,j){var O={schemaInfo:b};if(j)for(var x in j)O[x]=j[x];return r.hint.xml(G,O)}r.registerHelper("hint","html",F)})})()),dv.exports}yS();var gv={exports:{}},_v;function kS(){return _v||(_v=1,(function(t,e){(function(r){r(En())})(function(r){var n="CodeMirror-hint",a="CodeMirror-hint-active";r.showHint=function(O,x,S){if(!x)return O.showHint(S);S&&S.async&&(x.async=!0);var P={hint:x};if(S)for(var R in S)P[R]=S[R];return O.showHint(P)},r.defineExtension("showHint",function(O){O=p(this,this.getCursor("start"),O);var x=this.listSelections();if(!(x.length>1)){if(this.somethingSelected()){if(!O.hint.supportsSelection)return;for(var S=0;S<x.length;S++)if(x[S].head.line!=x[S].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var P=this.state.completionActive=new o(this,O);P.options.hint&&(r.signal(this,"startCompletion",this),P.update(!0))}}),r.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function o(O,x){if(this.cm=O,this.options=x,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var S=this;O.on("cursorActivity",this.activityFunc=function(){S.cursorActivity()})}}var c=window.requestAnimationFrame||function(O){return setTimeout(O,1e3/60)},d=window.cancelAnimationFrame||clearTimeout;o.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&r.signal(this.data,"close"),this.widget&&this.widget.close(),r.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(O,x){var S=O.list[x],P=this;this.cm.operation(function(){S.hint?S.hint(P.cm,O,S):P.cm.replaceRange(v(S),S.from||O.from,S.to||O.to,"complete"),r.signal(O,"pick",S),P.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(d(this.debounce),this.debounce=0);var O=this.startPos;this.data&&(O=this.data.from);var x=this.cm.getCursor(),S=this.cm.getLine(x.line);if(x.line!=this.startPos.line||S.length-x.ch!=this.startLen-this.startPos.ch||x.ch<O.ch||this.cm.somethingSelected()||!x.ch||this.options.closeCharacters.test(S.charAt(x.ch-1)))this.close();else{var P=this;this.debounce=c(function(){P.update()}),this.widget&&this.widget.disable()}},update:function(O){if(this.tick!=null){var x=this,S=++this.tick;F(this.options.hint,this.cm,this.options,function(P){x.tick==S&&x.finishUpdate(P,O)})}},finishUpdate:function(O,x){this.data&&r.signal(this.data,"update");var S=this.widget&&this.widget.picked||x&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=O,O&&O.list.length&&(S&&O.list.length==1?this.pick(O,0):(this.widget=new T(this,O),r.signal(O,"shown")))}};function p(O,x,S){var P=O.options.hintOptions,R={};for(var B in j)R[B]=j[B];if(P)for(var B in P)P[B]!==void 0&&(R[B]=P[B]);if(S)for(var B in S)S[B]!==void 0&&(R[B]=S[B]);return R.hint.resolve&&(R.hint=R.hint.resolve(O,x)),R}function v(O){return typeof O=="string"?O:O.text}function b(O,x){var S={Up:function(){x.moveFocus(-1)},Down:function(){x.moveFocus(1)},PageUp:function(){x.moveFocus(-x.menuSize()+1,!0)},PageDown:function(){x.moveFocus(x.menuSize()-1,!0)},Home:function(){x.setFocus(0)},End:function(){x.setFocus(x.length-1)},Enter:x.pick,Tab:x.pick,Esc:x.close},P=/Mac/.test(navigator.platform);P&&(S["Ctrl-P"]=function(){x.moveFocus(-1)},S["Ctrl-N"]=function(){x.moveFocus(1)});var R=O.options.customKeys,B=R?{}:S;function q(Z,ne){var U;typeof ne!="string"?U=function(N){return ne(N,x)}:S.hasOwnProperty(ne)?U=S[ne]:U=ne,B[Z]=U}if(R)for(var le in R)R.hasOwnProperty(le)&&q(le,R[le]);var ae=O.options.extraKeys;if(ae)for(var le in ae)ae.hasOwnProperty(le)&&q(le,ae[le]);return B}function C(O,x){for(;x&&x!=O;){if(x.nodeName.toUpperCase()==="LI"&&x.parentNode==O)return x;x=x.parentNode}}function T(O,x){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=O,this.data=x,this.picked=!1;var S=this,P=O.cm,R=P.getInputField().ownerDocument,B=R.defaultView||R.parentWindow,q=this.hints=R.createElement("ul");q.setAttribute("role","listbox"),q.setAttribute("aria-expanded","true"),q.id=this.id;var le=O.cm.options.theme;q.className="CodeMirror-hints "+le,this.selectedHint=x.selectedHint||0;for(var ae=x.list,Z=0;Z<ae.length;++Z){var ne=q.appendChild(R.createElement("li")),U=ae[Z],N=n+(Z!=this.selectedHint?"":" "+a);U.className!=null&&(N=U.className+" "+N),ne.className=N,Z==this.selectedHint&&ne.setAttribute("aria-selected","true"),ne.id=this.id+"-"+Z,ne.setAttribute("role","option"),U.render?U.render(ne,x,U):ne.appendChild(R.createTextNode(U.displayText||v(U))),ne.hintId=Z}var W=O.options.container||R.body,E=P.cursorCoords(O.options.alignWithWord?x.from:null),ee=E.left,V=E.bottom,fe=!0,he=0,Ie=0;if(W!==R.body){var Ge=["absolute","relative","fixed"].indexOf(B.getComputedStyle(W).position)!==-1,He=Ge?W:W.offsetParent,We=He.getBoundingClientRect(),at=R.body.getBoundingClientRect();he=We.left-at.left-He.scrollLeft,Ie=We.top-at.top-He.scrollTop}q.style.left=ee-he+"px",q.style.top=V-Ie+"px";var Ve=B.innerWidth||Math.max(R.body.offsetWidth,R.documentElement.offsetWidth),Pe=B.innerHeight||Math.max(R.body.offsetHeight,R.documentElement.offsetHeight);W.appendChild(q),P.getInputField().setAttribute("aria-autocomplete","list"),P.getInputField().setAttribute("aria-owns",this.id),P.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var Te=O.options.moveOnOverlap?q.getBoundingClientRect():new DOMRect,Se=O.options.paddingForScrollbar?q.scrollHeight>q.clientHeight+1:!1,Le;setTimeout(function(){Le=P.getScrollInfo()});var xe=Te.bottom-Pe;if(xe>0){var Ee=Te.bottom-Te.top,Qe=Te.top-(E.bottom-E.top)-2;Pe-Te.top<Qe?(Ee>Qe&&(q.style.height=(Ee=Qe)+"px"),q.style.top=(V=E.top-Ee)-Ie+"px",fe=!1):q.style.height=Pe-Te.top-2+"px"}var ut=Te.right-Ve;if(Se&&(ut+=P.display.nativeBarWidth),ut>0&&(Te.right-Te.left>Ve&&(q.style.width=Ve-5+"px",ut-=Te.right-Te.left-Ve),q.style.left=(ee=Math.max(E.left-ut-he,0))+"px"),Se)for(var dt=q.firstChild;dt;dt=dt.nextSibling)dt.style.paddingRight=P.display.nativeBarWidth+"px";if(P.addKeyMap(this.keyMap=b(O,{moveFocus:function(tt,lt){S.changeActive(S.selectedHint+tt,lt)},setFocus:function(tt){S.changeActive(tt)},menuSize:function(){return S.screenAmount()},length:ae.length,close:function(){O.close()},pick:function(){S.pick()},data:x})),O.options.closeOnUnfocus){var Nt;P.on("blur",this.onBlur=function(){Nt=setTimeout(function(){O.close()},100)}),P.on("focus",this.onFocus=function(){clearTimeout(Nt)})}P.on("scroll",this.onScroll=function(){var tt=P.getScrollInfo(),lt=P.getWrapperElement().getBoundingClientRect();Le||(Le=P.getScrollInfo());var $t=V+Le.top-tt.top,Ye=$t-(B.pageYOffset||(R.documentElement||R.body).scrollTop);if(fe||(Ye+=q.offsetHeight),Ye<=lt.top||Ye>=lt.bottom)return O.close();q.style.top=$t+"px",q.style.left=ee+Le.left-tt.left+"px"}),r.on(q,"dblclick",function(tt){var lt=C(q,tt.target||tt.srcElement);lt&<.hintId!=null&&(S.changeActive(lt.hintId),S.pick())}),r.on(q,"click",function(tt){var lt=C(q,tt.target||tt.srcElement);lt&<.hintId!=null&&(S.changeActive(lt.hintId),O.options.completeOnSingleClick&&S.pick())}),r.on(q,"mousedown",function(){setTimeout(function(){P.focus()},20)});var ze=this.getSelectedHintRange();return(ze.from!==0||ze.to!==0)&&this.scrollToActive(),r.signal(x,"select",ae[this.selectedHint],q.childNodes[this.selectedHint]),!0}T.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var O=this.completion.cm.getInputField();O.removeAttribute("aria-activedescendant"),O.removeAttribute("aria-owns");var x=this.completion.cm;this.completion.options.closeOnUnfocus&&(x.off("blur",this.onBlur),x.off("focus",this.onFocus)),x.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var O=this;this.keyMap={Enter:function(){O.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(O,x){if(O>=this.data.list.length?O=x?this.data.list.length-1:0:O<0&&(O=x?0:this.data.list.length-1),this.selectedHint!=O){var S=this.hints.childNodes[this.selectedHint];S&&(S.className=S.className.replace(" "+a,""),S.removeAttribute("aria-selected")),S=this.hints.childNodes[this.selectedHint=O],S.className+=" "+a,S.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",S.id),this.scrollToActive(),r.signal(this.data,"select",this.data.list[this.selectedHint],S)}},scrollToActive:function(){var O=this.getSelectedHintRange(),x=this.hints.childNodes[O.from],S=this.hints.childNodes[O.to],P=this.hints.firstChild;x.offsetTop<this.hints.scrollTop?this.hints.scrollTop=x.offsetTop-P.offsetTop:S.offsetTop+S.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=S.offsetTop+S.offsetHeight-this.hints.clientHeight+P.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var O=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-O),to:Math.min(this.data.list.length-1,this.selectedHint+O)}}};function A(O,x){if(!O.somethingSelected())return x;for(var S=[],P=0;P<x.length;P++)x[P].supportsSelection&&S.push(x[P]);return S}function F(O,x,S,P){if(O.async)O(x,P,S);else{var R=O(x,S);R&&R.then?R.then(P):P(R)}}function G(O,x){var S=O.getHelpers(x,"hint"),P;if(S.length){var R=function(B,q,le){var ae=A(B,S);function Z(ne){if(ne==ae.length)return q(null);F(ae[ne],B,le,function(U){U&&U.list.length>0?q(U):Z(ne+1)})}Z(0)};return R.async=!0,R.supportsSelection=!0,R}else return(P=O.getHelper(O.getCursor(),"hintWords"))?function(B){return r.hint.fromList(B,{words:P})}:r.hint.anyword?function(B,q){return r.hint.anyword(B,q)}:function(){}}r.registerHelper("hint","auto",{resolve:G}),r.registerHelper("hint","fromList",function(O,x){var S=O.getCursor(),P=O.getTokenAt(S),R,B=r.Pos(S.line,P.start),q=S;P.start<S.ch&&/\w/.test(P.string.charAt(S.ch-P.start-1))?R=P.string.substr(0,S.ch-P.start):(R="",B=S);for(var le=[],ae=0;ae<x.words.length;ae++){var Z=x.words[ae];Z.slice(0,R.length)==R&&le.push(Z)}if(le.length)return{list:le,from:B,to:q}}),r.commands.autocomplete=r.showHint;var j={hint:r.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};r.defineOption("hintOptions",null)})})()),gv.exports}kS(),mv();var ES=En(),ci=Da(ES);rf();var bv={exports:{}},yv={exports:{}},kv;function Ev(){return kv||(kv=1,(function(t,e){(function(r){r(En())})(function(r){var n={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},a={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};r.defineMode("xml",function(o,c){var d=o.indentUnit,p={},v=c.htmlMode?n:a;for(var b in v)p[b]=v[b];for(var b in c)p[b]=c[b];var C,T;function A(E,ee){function V(Ie){return ee.tokenize=Ie,Ie(E,ee)}var fe=E.next();if(fe=="<")return E.eat("!")?E.eat("[")?E.match("CDATA[")?V(j("atom","]]>")):null:E.match("--")?V(j("comment","-->")):E.match("DOCTYPE",!0,!0)?(E.eatWhile(/[\w\._\-]/),V(O(1))):null:E.eat("?")?(E.eatWhile(/[\w\._\-]/),ee.tokenize=j("meta","?>"),"meta"):(C=E.eat("/")?"closeTag":"openTag",ee.tokenize=F,"tag bracket");if(fe=="&"){var he;return E.eat("#")?E.eat("x")?he=E.eatWhile(/[a-fA-F\d]/)&&E.eat(";"):he=E.eatWhile(/[\d]/)&&E.eat(";"):he=E.eatWhile(/[\w\.\-:]/)&&E.eat(";"),he?"atom":"error"}else return E.eatWhile(/[^&<]/),null}A.isInText=!0;function F(E,ee){var V=E.next();if(V==">"||V=="/"&&E.eat(">"))return ee.tokenize=A,C=V==">"?"endTag":"selfcloseTag","tag bracket";if(V=="=")return C="equals",null;if(V=="<"){ee.tokenize=A,ee.state=B,ee.tagName=ee.tagStart=null;var fe=ee.tokenize(E,ee);return fe?fe+" tag error":"tag error"}else return/[\'\"]/.test(V)?(ee.tokenize=G(V),ee.stringStartCol=E.column(),ee.tokenize(E,ee)):(E.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function G(E){var ee=function(V,fe){for(;!V.eol();)if(V.next()==E){fe.tokenize=F;break}return"string"};return ee.isInAttribute=!0,ee}function j(E,ee){return function(V,fe){for(;!V.eol();){if(V.match(ee)){fe.tokenize=A;break}V.next()}return E}}function O(E){return function(ee,V){for(var fe;(fe=ee.next())!=null;){if(fe=="<")return V.tokenize=O(E+1),V.tokenize(ee,V);if(fe==">")if(E==1){V.tokenize=A;break}else return V.tokenize=O(E-1),V.tokenize(ee,V)}return"meta"}}function x(E){return E&&E.toLowerCase()}function S(E,ee,V){this.prev=E.context,this.tagName=ee||"",this.indent=E.indented,this.startOfLine=V,(p.doNotIndent.hasOwnProperty(ee)||E.context&&E.context.noIndent)&&(this.noIndent=!0)}function P(E){E.context&&(E.context=E.context.prev)}function R(E,ee){for(var V;;){if(!E.context||(V=E.context.tagName,!p.contextGrabbers.hasOwnProperty(x(V))||!p.contextGrabbers[x(V)].hasOwnProperty(x(ee))))return;P(E)}}function B(E,ee,V){return E=="openTag"?(V.tagStart=ee.column(),q):E=="closeTag"?le:B}function q(E,ee,V){return E=="word"?(V.tagName=ee.current(),T="tag",ne):p.allowMissingTagName&&E=="endTag"?(T="tag bracket",ne(E,ee,V)):(T="error",q)}function le(E,ee,V){if(E=="word"){var fe=ee.current();return V.context&&V.context.tagName!=fe&&p.implicitlyClosed.hasOwnProperty(x(V.context.tagName))&&P(V),V.context&&V.context.tagName==fe||p.matchClosing===!1?(T="tag",ae):(T="tag error",Z)}else return p.allowMissingTagName&&E=="endTag"?(T="tag bracket",ae(E,ee,V)):(T="error",Z)}function ae(E,ee,V){return E!="endTag"?(T="error",ae):(P(V),B)}function Z(E,ee,V){return T="error",ae(E,ee,V)}function ne(E,ee,V){if(E=="word")return T="attribute",U;if(E=="endTag"||E=="selfcloseTag"){var fe=V.tagName,he=V.tagStart;return V.tagName=V.tagStart=null,E=="selfcloseTag"||p.autoSelfClosers.hasOwnProperty(x(fe))?R(V,fe):(R(V,fe),V.context=new S(V,fe,he==V.indented)),B}return T="error",ne}function U(E,ee,V){return E=="equals"?N:(p.allowMissing||(T="error"),ne(E,ee,V))}function N(E,ee,V){return E=="string"?W:E=="word"&&p.allowUnquoted?(T="string",ne):(T="error",ne(E,ee,V))}function W(E,ee,V){return E=="string"?W:ne(E,ee,V)}return{startState:function(E){var ee={tokenize:A,state:B,indented:E||0,tagName:null,tagStart:null,context:null};return E!=null&&(ee.baseIndent=E),ee},token:function(E,ee){if(!ee.tagName&&E.sol()&&(ee.indented=E.indentation()),E.eatSpace())return null;C=null;var V=ee.tokenize(E,ee);return(V||C)&&V!="comment"&&(T=null,ee.state=ee.state(C||V,E,ee),T&&(V=T=="error"?V+" error":T)),V},indent:function(E,ee,V){var fe=E.context;if(E.tokenize.isInAttribute)return E.tagStart==E.indented?E.stringStartCol+1:E.indented+d;if(fe&&fe.noIndent)return r.Pass;if(E.tokenize!=F&&E.tokenize!=A)return V?V.match(/^(\s*)/)[0].length:0;if(E.tagName)return p.multilineTagIndentPastTag!==!1?E.tagStart+E.tagName.length+2:E.tagStart+d*(p.multilineTagIndentFactor||1);if(p.alignCDATA&&/<!\[CDATA\[/.test(ee))return 0;var he=ee&&/^<(\/)?([\w_:\.-]*)/.exec(ee);if(he&&he[1])for(;fe;)if(fe.tagName==he[2]){fe=fe.prev;break}else if(p.implicitlyClosed.hasOwnProperty(x(fe.tagName)))fe=fe.prev;else break;else if(he)for(;fe;){var Ie=p.contextGrabbers[x(fe.tagName)];if(Ie&&Ie.hasOwnProperty(x(he[2])))fe=fe.prev;else break}for(;fe&&fe.prev&&!fe.startOfLine;)fe=fe.prev;return fe?fe.indent+d:E.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:p.htmlMode?"html":"xml",helperType:p.htmlMode?"html":"xml",skipAttribute:function(E){E.state==N&&(E.state=ne)},xmlCurrentTag:function(E){return E.tagName?{name:E.tagName,close:E.type=="closeTag"}:null},xmlCurrentContext:function(E){for(var ee=[],V=E.context;V;V=V.prev)ee.push(V.tagName);return ee.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})})()),yv.exports}var Tv={exports:{}},Cv;function wv(){return Cv||(Cv=1,(function(t,e){(function(r){r(En())})(function(r){r.defineMode("javascript",function(n,a){var o=n.indentUnit,c=a.statementIndent,d=a.jsonld,p=a.json||d,v=a.trackScope!==!1,b=a.typescript,C=a.wordCharacters||/[\w$\xa1-\uffff]/,T=(function(){function w(qt){return{type:qt,style:"keyword"}}var M=w("keyword a"),ce=w("keyword b"),ve=w("keyword c"),J=w("keyword d"),Ce=w("operator"),ct={type:"atom",style:"atom"};return{if:w("if"),while:M,with:M,else:ce,do:ce,try:ce,finally:ce,return:J,break:J,continue:J,new:w("new"),delete:ve,void:ve,throw:ve,debugger:w("debugger"),var:w("var"),const:w("var"),let:w("var"),function:w("function"),catch:w("catch"),for:w("for"),switch:w("switch"),case:w("case"),default:w("default"),in:Ce,typeof:Ce,instanceof:Ce,true:ct,false:ct,null:ct,undefined:ct,NaN:ct,Infinity:ct,this:w("this"),class:w("class"),super:w("atom"),yield:ve,export:w("export"),import:w("import"),extends:ve,await:ve}})(),A=/[+\-*&%=<>!?|~^@]/,F=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function G(w){for(var M=!1,ce,ve=!1;(ce=w.next())!=null;){if(!M){if(ce=="/"&&!ve)return;ce=="["?ve=!0:ve&&ce=="]"&&(ve=!1)}M=!M&&ce=="\\"}}var j,O;function x(w,M,ce){return j=w,O=ce,M}function S(w,M){var ce=w.next();if(ce=='"'||ce=="'")return M.tokenize=P(ce),M.tokenize(w,M);if(ce=="."&&w.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return x("number","number");if(ce=="."&&w.match(".."))return x("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(ce))return x(ce);if(ce=="="&&w.eat(">"))return x("=>","operator");if(ce=="0"&&w.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return x("number","number");if(/\d/.test(ce))return w.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),x("number","number");if(ce=="/")return w.eat("*")?(M.tokenize=R,R(w,M)):w.eat("/")?(w.skipToEnd(),x("comment","comment")):Gr(w,M,1)?(G(w),w.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),x("regexp","string-2")):(w.eat("="),x("operator","operator",w.current()));if(ce=="`")return M.tokenize=B,B(w,M);if(ce=="#"&&w.peek()=="!")return w.skipToEnd(),x("meta","meta");if(ce=="#"&&w.eatWhile(C))return x("variable","property");if(ce=="<"&&w.match("!--")||ce=="-"&&w.match("->")&&!/\S/.test(w.string.slice(0,w.start)))return w.skipToEnd(),x("comment","comment");if(A.test(ce))return(ce!=">"||!M.lexical||M.lexical.type!=">")&&(w.eat("=")?(ce=="!"||ce=="=")&&w.eat("="):/[<>*+\-|&?]/.test(ce)&&(w.eat(ce),ce==">"&&w.eat(ce))),ce=="?"&&w.eat(".")?x("."):x("operator","operator",w.current());if(C.test(ce)){w.eatWhile(C);var ve=w.current();if(M.lastType!="."){if(T.propertyIsEnumerable(ve)){var J=T[ve];return x(J.type,J.style,ve)}if(ve=="async"&&w.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return x("async","keyword",ve)}return x("variable","variable",ve)}}function P(w){return function(M,ce){var ve=!1,J;if(d&&M.peek()=="@"&&M.match(F))return ce.tokenize=S,x("jsonld-keyword","meta");for(;(J=M.next())!=null&&!(J==w&&!ve);)ve=!ve&&J=="\\";return ve||(ce.tokenize=S),x("string","string")}}function R(w,M){for(var ce=!1,ve;ve=w.next();){if(ve=="/"&&ce){M.tokenize=S;break}ce=ve=="*"}return x("comment","comment")}function B(w,M){for(var ce=!1,ve;(ve=w.next())!=null;){if(!ce&&(ve=="`"||ve=="$"&&w.eat("{"))){M.tokenize=S;break}ce=!ce&&ve=="\\"}return x("quasi","string-2",w.current())}var q="([{}])";function le(w,M){M.fatArrowAt&&(M.fatArrowAt=null);var ce=w.string.indexOf("=>",w.start);if(!(ce<0)){if(b){var ve=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(w.string.slice(w.start,ce));ve&&(ce=ve.index)}for(var J=0,Ce=!1,ct=ce-1;ct>=0;--ct){var qt=w.string.charAt(ct),Tr=q.indexOf(qt);if(Tr>=0&&Tr<3){if(!J){++ct;break}if(--J==0){qt=="("&&(Ce=!0);break}}else if(Tr>=3&&Tr<6)++J;else if(C.test(qt))Ce=!0;else if(/["'\/`]/.test(qt))for(;;--ct){if(ct==0)return;var As=w.string.charAt(ct-1);if(As==qt&&w.string.charAt(ct-2)!="\\"){ct--;break}}else if(Ce&&!J){++ct;break}}Ce&&!J&&(M.fatArrowAt=ct)}}var ae={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function Z(w,M,ce,ve,J,Ce){this.indented=w,this.column=M,this.type=ce,this.prev=J,this.info=Ce,ve!=null&&(this.align=ve)}function ne(w,M){if(!v)return!1;for(var ce=w.localVars;ce;ce=ce.next)if(ce.name==M)return!0;for(var ve=w.context;ve;ve=ve.prev)for(var ce=ve.vars;ce;ce=ce.next)if(ce.name==M)return!0}function U(w,M,ce,ve,J){var Ce=w.cc;for(N.state=w,N.stream=J,N.marked=null,N.cc=Ce,N.style=M,w.lexical.hasOwnProperty("align")||(w.lexical.align=!0);;){var ct=Ce.length?Ce.pop():p?Ee:Le;if(ct(ce,ve)){for(;Ce.length&&Ce[Ce.length-1].lex;)Ce.pop()();return N.marked?N.marked:ce=="variable"&&ne(w,ve)?"variable-2":M}}}var N={state:null,marked:null,cc:null};function W(){for(var w=arguments.length-1;w>=0;w--)N.cc.push(arguments[w])}function E(){return W.apply(null,arguments),!0}function ee(w,M){for(var ce=M;ce;ce=ce.next)if(ce.name==w)return!0;return!1}function V(w){var M=N.state;if(N.marked="def",!!v){if(M.context){if(M.lexical.info=="var"&&M.context&&M.context.block){var ce=fe(w,M.context);if(ce!=null){M.context=ce;return}}else if(!ee(w,M.localVars)){M.localVars=new Ge(w,M.localVars);return}}a.globalVars&&!ee(w,M.globalVars)&&(M.globalVars=new Ge(w,M.globalVars))}}function fe(w,M){if(M)if(M.block){var ce=fe(w,M.prev);return ce?ce==M.prev?M:new Ie(ce,M.vars,!0):null}else return ee(w,M.vars)?M:new Ie(M.prev,new Ge(w,M.vars),!1);else return null}function he(w){return w=="public"||w=="private"||w=="protected"||w=="abstract"||w=="readonly"}function Ie(w,M,ce){this.prev=w,this.vars=M,this.block=ce}function Ge(w,M){this.name=w,this.next=M}var He=new Ge("this",new Ge("arguments",null));function We(){N.state.context=new Ie(N.state.context,N.state.localVars,!1),N.state.localVars=He}function at(){N.state.context=new Ie(N.state.context,N.state.localVars,!0),N.state.localVars=null}We.lex=at.lex=!0;function Ve(){N.state.localVars=N.state.context.vars,N.state.context=N.state.context.prev}Ve.lex=!0;function Pe(w,M){var ce=function(){var ve=N.state,J=ve.indented;if(ve.lexical.type=="stat")J=ve.lexical.indented;else for(var Ce=ve.lexical;Ce&&Ce.type==")"&&Ce.align;Ce=Ce.prev)J=Ce.indented;ve.lexical=new Z(J,N.stream.column(),w,null,ve.lexical,M)};return ce.lex=!0,ce}function Te(){var w=N.state;w.lexical.prev&&(w.lexical.type==")"&&(w.indented=w.lexical.indented),w.lexical=w.lexical.prev)}Te.lex=!0;function Se(w){function M(ce){return ce==w?E():w==";"||ce=="}"||ce==")"||ce=="]"?W():E(M)}return M}function Le(w,M){return w=="var"?E(Pe("vardef",M),ks,Se(";"),Te):w=="keyword a"?E(Pe("form"),ut,Le,Te):w=="keyword b"?E(Pe("form"),Le,Te):w=="keyword d"?N.stream.match(/^\s*$/,!1)?E():E(Pe("stat"),Nt,Se(";"),Te):w=="debugger"?E(Se(";")):w=="{"?E(Pe("}"),at,Pn,Te,Ve):w==";"?E():w=="if"?(N.state.lexical.info=="else"&&N.state.cc[N.state.cc.length-1]==Te&&N.state.cc.pop()(),E(Pe("form"),ut,Le,Te,Es)):w=="function"?E(Zr):w=="for"?E(Pe("form"),at,mc,Le,Ve,Te):w=="class"||b&&M=="interface"?(N.marked="keyword",E(Pe("form",w=="class"?w:M),Ts,Te)):w=="variable"?b&&M=="declare"?(N.marked="keyword",E(Le)):b&&(M=="module"||M=="enum"||M=="type")&&N.stream.match(/^\s*\w/,!1)?(N.marked="keyword",M=="enum"?E(Re):M=="type"?E(vc,Se("operator"),nt,Se(";")):E(Pe("form"),Er,Se("{"),Pe("}"),Pn,Te,Te)):b&&M=="namespace"?(N.marked="keyword",E(Pe("form"),Ee,Le,Te)):b&&M=="abstract"?(N.marked="keyword",E(Le)):E(Pe("stat"),it):w=="switch"?E(Pe("form"),ut,Se("{"),Pe("}","switch"),at,Pn,Te,Te,Ve):w=="case"?E(Ee,Se(":")):w=="default"?E(Se(":")):w=="catch"?E(Pe("form"),We,xe,Le,Te,Ve):w=="export"?E(Pe("stat"),Cs,Te):w=="import"?E(Pe("stat"),Mi,Te):w=="async"?E(Le):M=="@"?E(Ee,Le):W(Pe("stat"),Ee,Se(";"),Te)}function xe(w){if(w=="(")return E(mn,Se(")"))}function Ee(w,M){return dt(w,M,!1)}function Qe(w,M){return dt(w,M,!0)}function ut(w){return w!="("?W():E(Pe(")"),Nt,Se(")"),Te)}function dt(w,M,ce){if(N.state.fatArrowAt==N.stream.start){var ve=ce?rt:Ye;if(w=="(")return E(We,Pe(")"),Ft(mn,")"),Te,Se("=>"),ve,Ve);if(w=="variable")return W(We,Er,Se("=>"),ve,Ve)}var J=ce?tt:ze;return ae.hasOwnProperty(w)?E(J):w=="function"?E(Zr,J):w=="class"||b&&M=="interface"?(N.marked="keyword",E(Pe("form"),Fp,Te)):w=="keyword c"||w=="async"?E(ce?Qe:Ee):w=="("?E(Pe(")"),Nt,Se(")"),Te,J):w=="operator"||w=="spread"?E(ce?Qe:Ee):w=="["?E(Pe("]"),Lt,Te,J):w=="{"?Ni(ei,"}",null,J):w=="quasi"?W(lt,J):w=="new"?E(X(ce)):E()}function Nt(w){return w.match(/[;\}\)\],]/)?W():W(Ee)}function ze(w,M){return w==","?E(Nt):tt(w,M,!1)}function tt(w,M,ce){var ve=ce==!1?ze:tt,J=ce==!1?Ee:Qe;if(w=="=>")return E(We,ce?rt:Ye,Ve);if(w=="operator")return/\+\+|--/.test(M)||b&&M=="!"?E(ve):b&&M=="<"&&N.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?E(Pe(">"),Ft(nt,">"),Te,ve):M=="?"?E(Ee,Se(":"),J):E(J);if(w=="quasi")return W(lt,ve);if(w!=";"){if(w=="(")return Ni(Qe,")","call",ve);if(w==".")return E(ir,ve);if(w=="[")return E(Pe("]"),Nt,Se("]"),Te,ve);if(b&&M=="as")return N.marked="keyword",E(nt,ve);if(w=="regexp")return N.state.lastType=N.marked="operator",N.stream.backUp(N.stream.pos-N.stream.start-1),E(J)}}function lt(w,M){return w!="quasi"?W():M.slice(M.length-2)!="${"?E(lt):E(Nt,$t)}function $t(w){if(w=="}")return N.marked="string-2",N.state.tokenize=B,E(lt)}function Ye(w){return le(N.stream,N.state),W(w=="{"?Le:Ee)}function rt(w){return le(N.stream,N.state),W(w=="{"?Le:Qe)}function X(w){return function(M){return M=="."?E(w?ie:me):M=="variable"&&b?E(Dr,w?tt:ze):W(w?Qe:Ee)}}function me(w,M){if(M=="target")return N.marked="keyword",E(ze)}function ie(w,M){if(M=="target")return N.marked="keyword",E(tt)}function it(w){return w==":"?E(Te,Le):W(ze,Se(";"),Te)}function ir(w){if(w=="variable")return N.marked="property",E()}function ei(w,M){if(w=="async")return N.marked="property",E(ei);if(w=="variable"||N.style=="keyword"){if(N.marked="property",M=="get"||M=="set")return E(hc);var ce;return b&&N.state.fatArrowAt==N.stream.start&&(ce=N.stream.match(/^\s*:\s*/,!1))&&(N.state.fatArrowAt=N.stream.pos+ce[0].length),E(ti)}else{if(w=="number"||w=="string")return N.marked=d?"property":N.style+" property",E(ti);if(w=="jsonld-keyword")return E(ti);if(b&&he(M))return N.marked="keyword",E(ei);if(w=="[")return E(Ee,Pi,Se("]"),ti);if(w=="spread")return E(Qe,ti);if(M=="*")return N.marked="keyword",E(ei);if(w==":")return W(ti)}}function hc(w){return w!="variable"?W(ti):(N.marked="property",E(Zr))}function ti(w){if(w==":")return E(Qe);if(w=="(")return W(Zr)}function Ft(w,M,ce){function ve(J,Ce){if(ce?ce.indexOf(J)>-1:J==","){var ct=N.state.lexical;return ct.info=="call"&&(ct.pos=(ct.pos||0)+1),E(function(qt,Tr){return qt==M||Tr==M?W():W(w)},ve)}return J==M||Ce==M?E():ce&&ce.indexOf(";")>-1?W(w):E(Se(M))}return function(J,Ce){return J==M||Ce==M?E():W(w,ve)}}function Ni(w,M,ce){for(var ve=3;ve<arguments.length;ve++)N.cc.push(arguments[ve]);return E(Pe(M,ce),Ft(w,M),Te)}function Pn(w){return w=="}"?E():W(Le,Pn)}function Pi(w,M){if(b){if(w==":")return E(nt);if(M=="?")return E(Pi)}}function ka(w,M){if(b&&(w==":"||M=="in"))return E(nt)}function Ii(w){if(b&&w==":")return N.stream.match(/^\s*\w+\s+is\b/,!1)?E(Ee,Mp,nt):E(nt)}function Mp(w,M){if(M=="is")return N.marked="keyword",E()}function nt(w,M){if(M=="keyof"||M=="typeof"||M=="infer"||M=="readonly")return N.marked="keyword",E(M=="typeof"?Qe:nt);if(w=="variable"||M=="void")return N.marked="type",E(Jr);if(M=="|"||M=="&")return E(nt);if(w=="string"||w=="number"||w=="atom")return E(Jr);if(w=="[")return E(Pe("]"),Ft(nt,"]",","),Te,Jr);if(w=="{")return E(Pe("}"),$e,Te,Jr);if(w=="(")return E(Ft(It,")"),pc,Jr);if(w=="<")return E(Ft(nt,">"),nt);if(w=="quasi")return W(ar,Jr)}function pc(w){if(w=="=>")return E(nt)}function $e(w){return w.match(/[\}\)\]]/)?E():w==","||w==";"?E($e):W(ri,$e)}function ri(w,M){if(w=="variable"||N.style=="keyword")return N.marked="property",E(ri);if(M=="?"||w=="number"||w=="string")return E(ri);if(w==":")return E(nt);if(w=="[")return E(Se("variable"),ka,Se("]"),ri);if(w=="(")return W(Di,ri);if(!w.match(/[;\}\)\],]/))return E()}function ar(w,M){return w!="quasi"?W():M.slice(M.length-2)!="${"?E(ar):E(nt,Pt)}function Pt(w){if(w=="}")return N.marked="string-2",N.state.tokenize=B,E(ar)}function It(w,M){return w=="variable"&&N.stream.match(/^\s*[?:]/,!1)||M=="?"?E(It):w==":"?E(nt):w=="spread"?E(It):W(nt)}function Jr(w,M){if(M=="<")return E(Pe(">"),Ft(nt,">"),Te,Jr);if(M=="|"||w=="."||M=="&")return E(nt);if(w=="[")return E(nt,Se("]"),Jr);if(M=="extends"||M=="implements")return N.marked="keyword",E(nt);if(M=="?")return E(nt,Se(":"),nt)}function Dr(w,M){if(M=="<")return E(Pe(">"),Ft(nt,">"),Te,Jr)}function hn(){return W(nt,sr)}function sr(w,M){if(M=="=")return E(nt)}function ks(w,M){return M=="enum"?(N.marked="keyword",E(Re)):W(Er,Pi,pn,$p)}function Er(w,M){if(b&&he(M))return N.marked="keyword",E(Er);if(w=="variable")return V(M),E();if(w=="spread")return E(Er);if(w=="[")return Ni(ru,"]");if(w=="{")return Ni(Li,"}")}function Li(w,M){return w=="variable"&&!N.stream.match(/^\s*:/,!1)?(V(M),E(pn)):(w=="variable"&&(N.marked="property"),w=="spread"?E(Er):w=="}"?W():w=="["?E(Ee,Se("]"),Se(":"),Li):E(Se(":"),Er,pn))}function ru(){return W(Er,pn)}function pn(w,M){if(M=="=")return E(Qe)}function $p(w){if(w==",")return E(ks)}function Es(w,M){if(w=="keyword b"&&M=="else")return E(Pe("form","else"),Le,Te)}function mc(w,M){if(M=="await")return E(mc);if(w=="(")return E(Pe(")"),nu,Te)}function nu(w){return w=="var"?E(ks,Ri):w=="variable"?E(Ri):W(Ri)}function Ri(w,M){return w==")"?E():w==";"?E(Ri):M=="in"||M=="of"?(N.marked="keyword",E(Ee,Ri)):W(Ee,Ri)}function Zr(w,M){if(M=="*")return N.marked="keyword",E(Zr);if(w=="variable")return V(M),E(Zr);if(w=="(")return E(We,Pe(")"),Ft(mn,")"),Te,Ii,Le,Ve);if(b&&M=="<")return E(Pe(">"),Ft(hn,">"),Te,Zr)}function Di(w,M){if(M=="*")return N.marked="keyword",E(Di);if(w=="variable")return V(M),E(Di);if(w=="(")return E(We,Pe(")"),Ft(mn,")"),Te,Ii,Ve);if(b&&M=="<")return E(Pe(">"),Ft(hn,">"),Te,Di)}function vc(w,M){if(w=="keyword"||w=="variable")return N.marked="type",E(vc);if(M=="<")return E(Pe(">"),Ft(hn,">"),Te)}function mn(w,M){return M=="@"&&E(Ee,mn),w=="spread"?E(mn):b&&he(M)?(N.marked="keyword",E(mn)):b&&w=="this"?E(Pi,pn):W(Er,Pi,pn)}function Fp(w,M){return w=="variable"?Ts(w,M):vn(w,M)}function Ts(w,M){if(w=="variable")return V(M),E(vn)}function vn(w,M){if(M=="<")return E(Pe(">"),Ft(hn,">"),Te,vn);if(M=="extends"||M=="implements"||b&&w==",")return M=="implements"&&(N.marked="keyword"),E(b?nt:Ee,vn);if(w=="{")return E(Pe("}"),gn,Te)}function gn(w,M){if(w=="async"||w=="variable"&&(M=="static"||M=="get"||M=="set"||b&&he(M))&&N.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return N.marked="keyword",E(gn);if(w=="variable"||N.style=="keyword")return N.marked="property",E(Ea,gn);if(w=="number"||w=="string")return E(Ea,gn);if(w=="[")return E(Ee,Pi,Se("]"),Ea,gn);if(M=="*")return N.marked="keyword",E(gn);if(b&&w=="(")return W(Di,gn);if(w==";"||w==",")return E(gn);if(w=="}")return E();if(M=="@")return E(Ee,gn)}function Ea(w,M){if(M=="!"||M=="?")return E(Ea);if(w==":")return E(nt,pn);if(M=="=")return E(Qe);var ce=N.state.lexical.prev,ve=ce&&ce.info=="interface";return W(ve?Di:Zr)}function Cs(w,M){return M=="*"?(N.marked="keyword",E(xs,Se(";"))):M=="default"?(N.marked="keyword",E(Ee,Se(";"))):w=="{"?E(Ft(ws,"}"),xs,Se(";")):W(Le)}function ws(w,M){if(M=="as")return N.marked="keyword",E(Se("variable"));if(w=="variable")return W(Qe,ws)}function Mi(w){return w=="string"?E():w=="("?W(Ee):w=="."?W(ze):W(Ss,In,xs)}function Ss(w,M){return w=="{"?Ni(Ss,"}"):(w=="variable"&&V(M),M=="*"&&(N.marked="keyword"),E(iu))}function In(w){if(w==",")return E(Ss,In)}function iu(w,M){if(M=="as")return N.marked="keyword",E(Ss)}function xs(w,M){if(M=="from")return N.marked="keyword",E(Ee)}function Lt(w){return w=="]"?E():W(Ft(Qe,"]"))}function Re(){return W(Pe("form"),Er,Se("{"),Pe("}"),Ft(ni,"}"),Te,Te)}function ni(){return W(Er,pn)}function au(w,M){return w.lastType=="operator"||w.lastType==","||A.test(M.charAt(0))||/[,.]/.test(M.charAt(0))}function Gr(w,M,ce){return M.tokenize==S&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(M.lastType)||M.lastType=="quasi"&&/\{\s*$/.test(w.string.slice(0,w.pos-(ce||0)))}return{startState:function(w){var M={tokenize:S,lastType:"sof",cc:[],lexical:new Z((w||0)-o,0,"block",!1),localVars:a.localVars,context:a.localVars&&new Ie(null,null,!1),indented:w||0};return a.globalVars&&typeof a.globalVars=="object"&&(M.globalVars=a.globalVars),M},token:function(w,M){if(w.sol()&&(M.lexical.hasOwnProperty("align")||(M.lexical.align=!1),M.indented=w.indentation(),le(w,M)),M.tokenize!=R&&w.eatSpace())return null;var ce=M.tokenize(w,M);return j=="comment"?ce:(M.lastType=j=="operator"&&(O=="++"||O=="--")?"incdec":j,U(M,ce,j,O,w))},indent:function(w,M){if(w.tokenize==R||w.tokenize==B)return r.Pass;if(w.tokenize!=S)return 0;var ce=M&&M.charAt(0),ve=w.lexical,J;if(!/^\s*else\b/.test(M))for(var Ce=w.cc.length-1;Ce>=0;--Ce){var ct=w.cc[Ce];if(ct==Te)ve=ve.prev;else if(ct!=Es&&ct!=Ve)break}for(;(ve.type=="stat"||ve.type=="form")&&(ce=="}"||(J=w.cc[w.cc.length-1])&&(J==ze||J==tt)&&!/^[,\.=+\-*:?[\(]/.test(M));)ve=ve.prev;c&&ve.type==")"&&ve.prev.type=="stat"&&(ve=ve.prev);var qt=ve.type,Tr=ce==qt;return qt=="vardef"?ve.indented+(w.lastType=="operator"||w.lastType==","?ve.info.length+1:0):qt=="form"&&ce=="{"?ve.indented:qt=="form"?ve.indented+o:qt=="stat"?ve.indented+(au(w,M)?c||o:0):ve.info=="switch"&&!Tr&&a.doubleIndentSwitch!=!1?ve.indented+(/^(?:case|default)\b/.test(M)?o:2*o):ve.align?ve.column+(Tr?0:1):ve.indented+(Tr?0:o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:p?null:"/*",blockCommentEnd:p?null:"*/",blockCommentContinue:p?null:" * ",lineComment:p?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:p?"json":"javascript",jsonldMode:d,jsonMode:p,expressionAllowed:Gr,skipExpression:function(w){U(w,"atom","atom","true",new r.StringStream("",2,null))}}}),r.registerHelper("wordChars","javascript",/[\w$]/),r.defineMIME("text/javascript","javascript"),r.defineMIME("text/ecmascript","javascript"),r.defineMIME("application/javascript","javascript"),r.defineMIME("application/x-javascript","javascript"),r.defineMIME("application/ecmascript","javascript"),r.defineMIME("application/json",{name:"javascript",json:!0}),r.defineMIME("application/x-json",{name:"javascript",json:!0}),r.defineMIME("application/manifest+json",{name:"javascript",json:!0}),r.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),r.defineMIME("text/typescript",{name:"javascript",typescript:!0}),r.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})()),Tv.exports}var Sv;function TS(){return Sv||(Sv=1,(function(t,e){(function(r){r(En(),Ev(),wv(),rf())})(function(r){var n={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function a(C,T,A){var F=C.current(),G=F.search(T);return G>-1?C.backUp(F.length-G):F.match(/<\/?$/)&&(C.backUp(F.length),C.match(T,!1)||C.match(F)),A}var o={};function c(C){var T=o[C];return T||(o[C]=new RegExp("\\s+"+C+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function d(C,T){var A=C.match(c(T));return A?/^\s*(.*?)\s*$/.exec(A[2])[1]:""}function p(C,T){return new RegExp((T?"^":"")+"</\\s*"+C+"\\s*>","i")}function v(C,T){for(var A in C)for(var F=T[A]||(T[A]=[]),G=C[A],j=G.length-1;j>=0;j--)F.unshift(G[j])}function b(C,T){for(var A=0;A<C.length;A++){var F=C[A];if(!F[0]||F[1].test(d(T,F[0])))return F[2]}}r.defineMode("htmlmixed",function(C,T){var A=r.getMode(C,{name:"xml",htmlMode:!0,multilineTagIndentFactor:T.multilineTagIndentFactor,multilineTagIndentPastTag:T.multilineTagIndentPastTag,allowMissingTagName:T.allowMissingTagName}),F={},G=T&&T.tags,j=T&&T.scriptTypes;if(v(n,F),G&&v(G,F),j)for(var O=j.length-1;O>=0;O--)F.script.unshift(["type",j[O].matches,j[O].mode]);function x(S,P){var R=A.token(S,P.htmlState),B=/\btag\b/.test(R),q;if(B&&!/[<>\s\/]/.test(S.current())&&(q=P.htmlState.tagName&&P.htmlState.tagName.toLowerCase())&&F.hasOwnProperty(q))P.inTag=q+" ";else if(P.inTag&&B&&/>$/.test(S.current())){var le=/^([\S]+) (.*)/.exec(P.inTag);P.inTag=null;var ae=S.current()==">"&&b(F[le[1]],le[2]),Z=r.getMode(C,ae),ne=p(le[1],!0),U=p(le[1],!1);P.token=function(N,W){return N.match(ne,!1)?(W.token=x,W.localState=W.localMode=null,null):a(N,U,W.localMode.token(N,W.localState))},P.localMode=Z,P.localState=r.startState(Z,A.indent(P.htmlState,"",""))}else P.inTag&&(P.inTag+=S.current(),S.eol()&&(P.inTag+=" "));return R}return{startState:function(){var S=r.startState(A);return{token:x,inTag:null,localMode:null,localState:null,htmlState:S}},copyState:function(S){var P;return S.localState&&(P=r.copyState(S.localMode,S.localState)),{token:S.token,inTag:S.inTag,localMode:S.localMode,localState:P,htmlState:r.copyState(A,S.htmlState)}},token:function(S,P){return P.token(S,P)},indent:function(S,P,R){return!S.localMode||/^\s*<\//.test(P)?A.indent(S.htmlState,P,R):S.localMode.indent?S.localMode.indent(S.localState,P,R):r.Pass},innerMode:function(S){return{state:S.localState||S.htmlState,mode:S.localMode||A}}}},"xml","javascript","css"),r.defineMIME("text/html","htmlmixed")})})()),bv.exports}TS(),wv(),Ev();var CS='.CodeMirror{color:#000;direction:ltr;font-family:monospace;height:300px}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{background-color:#f7f7f7;border-right:1px solid #ddd;white-space:nowrap}.CodeMirror-linenumber{color:#999;min-width:20px;padding:0 3px 0 5px;text-align:right;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{background:#7e7;border:0!important;width:auto}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:transparent}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:transparent}.cm-fat-cursor{caret-color:transparent}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:-50px}.CodeMirror-ruler{border-left:1px solid #ccc;bottom:0;position:absolute;top:0}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{background:#fff;overflow:hidden;position:relative}.CodeMirror-scroll{height:100%;margin-bottom:-50px;margin-right:-50px;outline:none;overflow:scroll!important;padding-bottom:50px;position:relative;z-index:0}.CodeMirror-sizer{border-right:50px solid transparent;position:relative}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{display:none;outline:none;position:absolute;z-index:6}.CodeMirror-vscrollbar{overflow-x:hidden;overflow-y:scroll;right:0;top:0}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-x:scroll;overflow-y:hidden}.CodeMirror-scrollbar-filler{bottom:0;right:0}.CodeMirror-gutter-filler{bottom:0;left:0}.CodeMirror-gutters{left:0;min-height:100%;position:absolute;top:0;z-index:3}.CodeMirror-gutter{display:inline-block;height:100%;margin-bottom:-50px;vertical-align:top;white-space:normal}.CodeMirror-gutter-wrapper{background:none!important;border:none!important;position:absolute;z-index:4}.CodeMirror-gutter-background{bottom:0;position:absolute;top:0;z-index:4}.CodeMirror-gutter-elt{cursor:default;position:absolute;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{word-wrap:normal;-webkit-tap-highlight-color:transparent;background:transparent;-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;color:inherit;font-family:inherit;font-size:inherit;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual;line-height:inherit;margin:0;overflow:visible;position:relative;white-space:pre;z-index:2}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{bottom:0;left:0;position:absolute;right:0;top:0;z-index:0}.CodeMirror-linewidget{padding:.1px;position:relative;z-index:2}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{height:0;overflow:hidden;position:absolute;visibility:hidden;width:100%}.CodeMirror-cursor{pointer-events:none;position:absolute}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{position:relative;visibility:hidden;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.CodeMirror-hints{background:#fff;border:1px solid silver;border-radius:3px;-webkit-box-shadow:2px 3px 5px rgba(0,0,0,.2);-moz-box-shadow:2px 3px 5px rgba(0,0,0,.2);box-shadow:2px 3px 5px rgba(0,0,0,.2);box-sizing:border-box;font-family:monospace;font-size:90%;list-style:none;margin:0;max-height:20em;overflow:hidden;overflow-y:auto;padding:2px;position:absolute;z-index:10}.CodeMirror-hint{border-radius:2px;color:#000;cursor:pointer;margin:0;padding:0 4px;white-space:pre}li.CodeMirror-hint-active{background:#08f;color:#fff}.CodeMirror-hints{z-index:100000000000000}';Ma(CS);const wS={props:{mode:{type:String,default:"text/html"},value:{type:String,default:""},attrs:{type:Object,default:()=>({})}},watch:{value(t){this.setValue(t)}},mounted(){this.editor=ci(this.$el,{autoCloseBrackets:!0,autoCloseTags:!0,autofocus:!1,dragDrop:!1,indentUnit:4,indentWithTabs:!1,lineNumbers:!0,lineWrapping:!0,matchBrackets:!0,matchTags:!0,mode:this.mode,tabSize:4,viewportMargin:2,placeholder:this.attrs.placeholder}),this.setValue(this.value),this.attrs.height&&this.$nextTick(()=>{this.editor.setSize(null,this.attrs.height)}),this.editor.on("change",()=>this.$emit("input",this.editor.getValue())),this.editor.on("inputRead",t=>{const e=t.getCursor(),r=t.getTokenAt(e),n=ci.innerMode(t.getMode(),r.state).mode.name;!["xml","css","less"].includes(n)||!r.string.trim()||(n==="xml"&&(r.string.startsWith("<")||r.type==="attribute")?ci.showHint(t,ci.hint.html,{completeSingle:!1}):(r.type&&n==="css"||n==="less")&&ci.showHint(t,()=>{let a=ci.hint.css(t);if(!a){const o=(this.attrs.hints||[]).filter(c=>c.startsWith(r.string));o.length&&(a={from:ci.Pos(e.line,r.start),to:ci.Pos(e.line,r.end),list:o})}return a},{completeSingle:!1}))})},methods:{setValue(t){this.editor.getValue()!==t&&this.editor.setValue(t||""),this.editor.refresh()},refresh(){this.editor.refresh()}}};var SS=function(){var e=this,r=e._self._c;return r("div")},xS=[],AS=Q(wS,SS,xS,!1),OS=AS.exports;var Or=Object.freeze({}),et=Array.isArray;function Xe(t){return t==null}function re(t){return t!=null}function Ot(t){return t===!0}function NS(t){return t===!1}function Vs(t){return typeof t=="string"||typeof t=="number"||typeof t=="symbol"||typeof t=="boolean"}function pt(t){return typeof t=="function"}function lr(t){return t!==null&&typeof t=="object"}var nf=Object.prototype.toString;function Br(t){return nf.call(t)==="[object Object]"}function PS(t){return nf.call(t)==="[object RegExp]"}function xv(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function af(t){return re(t)&&typeof t.then=="function"&&typeof t.catch=="function"}function IS(t){return t==null?"":Array.isArray(t)||Br(t)&&t.toString===nf?JSON.stringify(t,null,2):String(t)}function Qs(t){var e=parseFloat(t);return isNaN(e)?t:e}function rn(t,e){for(var r=Object.create(null),n=t.split(","),a=0;a<n.length;a++)r[n[a]]=!0;return e?function(o){return r[o.toLowerCase()]}:function(o){return r[o]}}rn("slot,component",!0);var LS=rn("key,ref,slot,slot-scope,is");function fi(t,e){var r=t.length;if(r){if(e===t[r-1]){t.length=r-1;return}var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}var RS=Object.prototype.hasOwnProperty;function vr(t,e){return RS.call(t,e)}function Xi(t){var e=Object.create(null);return function(n){var a=e[n];return a||(e[n]=t(n))}}var DS=/-(\w)/g,Vi=Xi(function(t){return t.replace(DS,function(e,r){return r?r.toUpperCase():""})}),MS=Xi(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),$S=/\B([A-Z])/g,Js=Xi(function(t){return t.replace($S,"-$1").toLowerCase()});function FS(t,e){function r(n){var a=arguments.length;return a?a>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return r._length=t.length,r}function BS(t,e){return t.bind(e)}var Av=Function.prototype.bind?BS:FS;function sf(t,e){e=e||0;for(var r=t.length-e,n=new Array(r);r--;)n[r]=t[r+e];return n}function bt(t,e){for(var r in e)t[r]=e[r];return t}function Ov(t){for(var e={},r=0;r<t.length;r++)t[r]&&bt(e,t[r]);return e}function Ct(t,e,r){}var Bu=function(t,e,r){return!1},Nv=function(t){return t};function Qi(t,e){if(t===e)return!0;var r=lr(t),n=lr(e);if(r&&n)try{var a=Array.isArray(t),o=Array.isArray(e);if(a&&o)return t.length===e.length&&t.every(function(p,v){return Qi(p,e[v])});if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(!a&&!o){var c=Object.keys(t),d=Object.keys(e);return c.length===d.length&&c.every(function(p){return Qi(t[p],e[p])})}else return!1}catch{return!1}else return!r&&!n?String(t)===String(e):!1}function Pv(t,e){for(var r=0;r<t.length;r++)if(Qi(t[r],e))return r;return-1}function Hu(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}function of(t,e){return t===e?t===0&&1/t!==1/e:t===t||e===e}var Iv="data-server-rendered",Uu=["component","directive","filter"],Lv=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch","renderTracked","renderTriggered"],qr={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:Bu,isReservedAttr:Bu,isUnknownElement:Bu,getTagNamespace:Ct,parsePlatformTagName:Nv,mustUseProp:Bu,async:!0,_lifecycleHooks:Lv},HS=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function Rv(t){var e=(t+"").charCodeAt(0);return e===36||e===95}function gr(t,e,r,n){Object.defineProperty(t,e,{value:r,enumerable:!1,writable:!0,configurable:!0})}var US=new RegExp("[^".concat(HS.source,".$_\\d]"));function jS(t){if(!US.test(t)){var e=t.split(".");return function(r){for(var n=0;n<e.length;n++){if(!r)return;r=r[e[n]]}return r}}}var WS="__proto__"in{},Hr=typeof window<"u",Yr=Hr&&window.navigator.userAgent.toLowerCase(),$a=Yr&&/msie|trident/.test(Yr),Fa=Yr&&Yr.indexOf("msie 9.0")>0,Dv=Yr&&Yr.indexOf("edge/")>0;Yr&&Yr.indexOf("android")>0;var GS=Yr&&/iphone|ipad|ipod|ios/.test(Yr),Mv=Yr&&Yr.match(/firefox\/(\d+)/),uf={}.watch,$v=!1;if(Hr)try{var Fv={};Object.defineProperty(Fv,"passive",{get:function(){$v=!0}}),window.addEventListener("test-passive",null,Fv)}catch{}var ju,di=function(){return ju===void 0&&(!Hr&&typeof global<"u"?ju=global.process&&global.process.env.VUE_ENV==="server":ju=!1),ju},Wu=Hr&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function Ba(t){return typeof t=="function"&&/native code/.test(t.toString())}var Zs=typeof Symbol<"u"&&Ba(Symbol)&&typeof Reflect<"u"&&Ba(Reflect.ownKeys),eo;typeof Set<"u"&&Ba(Set)?eo=Set:eo=(function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(e){return this.set[e]===!0},t.prototype.add=function(e){this.set[e]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t})();var _r=null;function to(){return _r&&{proxy:_r}}function hi(t){t===void 0&&(t=null),t||_r&&_r._scope.off(),_r=t,t&&t._scope.on()}var Ur=(function(){function t(e,r,n,a,o,c,d,p){this.tag=e,this.data=r,this.children=n,this.text=a,this.elm=o,this.ns=void 0,this.context=c,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=r&&r.key,this.componentOptions=d,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=p,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(t.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),t})(),Ji=function(t){t===void 0&&(t="");var e=new Ur;return e.text=t,e.isComment=!0,e};function Ha(t){return new Ur(void 0,void 0,void 0,String(t))}function lf(t){var e=new Ur(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var zS=0,Gu=[],qS=function(){for(var t=0;t<Gu.length;t++){var e=Gu[t];e.subs=e.subs.filter(function(r){return r}),e._pending=!1}Gu.length=0},Fn=(function(){function t(){this._pending=!1,this.id=zS++,this.subs=[]}return t.prototype.addSub=function(e){this.subs.push(e)},t.prototype.removeSub=function(e){this.subs[this.subs.indexOf(e)]=null,this._pending||(this._pending=!0,Gu.push(this))},t.prototype.depend=function(e){t.target&&t.target.addDep(this)},t.prototype.notify=function(e){for(var r=this.subs.filter(function(c){return c}),n=0,a=r.length;n<a;n++){var o=r[n];o.update()}},t})();Fn.target=null;var zu=[];function Ua(t){zu.push(t),Fn.target=t}function ja(){zu.pop(),Fn.target=zu[zu.length-1]}var Bv=Array.prototype,qu=Object.create(Bv),YS=["push","pop","shift","unshift","splice","sort","reverse"];YS.forEach(function(t){var e=Bv[t];gr(qu,t,function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];var o=e.apply(this,n),c=this.__ob__,d;switch(t){case"push":case"unshift":d=n;break;case"splice":d=n.slice(2);break}return d&&c.observeArray(d),c.dep.notify(),o})});var Hv=Object.getOwnPropertyNames(qu),Uv={},cf=!0;function pi(t){cf=t}var KS={notify:Ct,depend:Ct,addSub:Ct,removeSub:Ct},jv=(function(){function t(e,r,n){if(r===void 0&&(r=!1),n===void 0&&(n=!1),this.value=e,this.shallow=r,this.mock=n,this.dep=n?KS:new Fn,this.vmCount=0,gr(e,"__ob__",this),et(e)){if(!n)if(WS)e.__proto__=qu;else for(var a=0,o=Hv.length;a<o;a++){var c=Hv[a];gr(e,c,qu[c])}r||this.observeArray(e)}else for(var d=Object.keys(e),a=0;a<d.length;a++){var c=d[a];mi(e,c,Uv,void 0,r,n)}}return t.prototype.observeArray=function(e){for(var r=0,n=e.length;r<n;r++)Bn(e[r],!1,this.mock)},t})();function Bn(t,e,r){if(t&&vr(t,"__ob__")&&t.__ob__ instanceof jv)return t.__ob__;if(cf&&(r||!di())&&(et(t)||Br(t))&&Object.isExtensible(t)&&!t.__v_skip&&!Wt(t)&&!(t instanceof Ur))return new jv(t,e,r)}function mi(t,e,r,n,a,o){var c=new Fn,d=Object.getOwnPropertyDescriptor(t,e);if(!(d&&d.configurable===!1)){var p=d&&d.get,v=d&&d.set;(!p||v)&&(r===Uv||arguments.length===2)&&(r=t[e]);var b=!a&&Bn(r,!1,o);return Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var T=p?p.call(t):r;return Fn.target&&(c.depend(),b&&(b.dep.depend(),et(T)&&Wv(T))),Wt(T)&&!a?T.value:T},set:function(T){var A=p?p.call(t):r;if(of(A,T)){if(v)v.call(t,T);else{if(p)return;if(!a&&Wt(A)&&!Wt(T)){A.value=T;return}else r=T}b=!a&&Bn(T,!1,o),c.notify()}}}),c}}function mt(t,e,r){if(!Yu(t)){var n=t.__ob__;return et(t)&&xv(e)?(t.length=Math.max(t.length,e),t.splice(e,1,r),n&&!n.shallow&&n.mock&&Bn(r,!1,!0),r):e in t&&!(e in Object.prototype)?(t[e]=r,r):t._isVue||n&&n.vmCount?r:n?(mi(n.value,e,r,void 0,n.shallow,n.mock),n.dep.notify(),r):(t[e]=r,r)}}function Zi(t,e){if(et(t)&&xv(e)){t.splice(e,1);return}var r=t.__ob__;t._isVue||r&&r.vmCount||Yu(t)||vr(t,e)&&(delete t[e],r&&r.dep.notify())}function Wv(t){for(var e=void 0,r=0,n=t.length;r<n;r++)e=t[r],e&&e.__ob__&&e.__ob__.dep.depend(),et(e)&&Wv(e)}function Jt(t){return zv(t,!1),t}function Gv(t){return zv(t,!0),gr(t,"__v_isShallow",!0),t}function zv(t,e){Yu(t)||Bn(t,e,di())}function Wa(t){return Yu(t)?Wa(t.__v_raw):!!(t&&t.__ob__)}function qv(t){return!!(t&&t.__v_isShallow)}function Yu(t){return!!(t&&t.__v_isReadonly)}function ro(t){var e=t&&t.__v_raw;return e?ro(e):t}function no(t){return Object.isExtensible(t)&&gr(t,"__v_skip",!0),t}var ff="__v_isRef";function Wt(t){return!!(t&&t.__v_isRef===!0)}function Be(t){return XS(t,!1)}function XS(t,e){if(Wt(t))return t;var r={};return gr(r,ff,!0),gr(r,"__v_isShallow",e),gr(r,"dep",mi(r,"value",t,null,e,di())),r}function VS(t){return Wt(t)?t.value:t}function df(t,e,r){Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:function(){var n=e[r];if(Wt(n))return n.value;var a=n&&n.__ob__;return a&&a.dep.depend(),n},set:function(n){var a=e[r];Wt(a)&&!Wt(n)?a.value=n:e[r]=n}})}function QS(t){var e=et(t)?new Array(t.length):{};for(var r in t)e[r]=JS(t,r);return e}function JS(t,e,r){var n=t[e];if(Wt(n))return n;var a={get value(){var o=t[e];return o===void 0?r:o},set value(o){t[e]=o}};return gr(a,ff,!0),a}function Ae(t,e){var r,n,a=pt(t);a?(r=t,n=Ct):(r=t.get,n=t.set);var o=di()?null:new uo(_r,r,Ct,{lazy:!0}),c={effect:o,get value(){return o?(o.dirty&&o.evaluate(),Fn.target&&o.depend(),o.value):r()},set value(d){n(d)}};return gr(c,ff,!0),gr(c,"__v_isReadonly",a),c}var Ku="watcher",Yv="".concat(Ku," callback"),Kv="".concat(Ku," getter"),ZS="".concat(Ku," cleanup");function hf(t,e){return pf(t,null,e)}function Xv(t,e){return pf(t,null,{flush:"post"})}var Vv={};function gt(t,e,r){return pf(t,e,r)}function pf(t,e,r){var n=r===void 0?Or:r,a=n.immediate,o=n.deep,c=n.flush,d=c===void 0?"pre":c;n.onTrack,n.onTrigger;var p=_r,v=function(x,S,P){return P===void 0&&(P=null),Hn(x,null,P,p,S)},b,C=!1,T=!1;if(Wt(t)?(b=function(){return t.value},C=qv(t)):Wa(t)?(b=function(){return t.__ob__.dep.depend(),t},o=!0):et(t)?(T=!0,C=t.some(function(x){return Wa(x)||qv(x)}),b=function(){return t.map(function(x){if(Wt(x))return x.value;if(Wa(x))return za(x);if(pt(x))return v(x,Kv)})}):pt(t)?e?b=function(){return v(t,Kv)}:b=function(){if(!(p&&p._isDestroyed))return F&&F(),v(t,Ku,[G])}:b=Ct,e&&o){var A=b;b=function(){return za(A())}}var F,G=function(x){F=j.onStop=function(){v(x,ZS)}};if(di())return G=Ct,e?a&&v(e,Yv,[b(),T?[]:void 0,G]):b(),Ct;var j=new uo(_r,b,Ct,{lazy:!0});j.noRecurse=!e;var O=T?[]:Vv;return j.run=function(){if(j.active)if(e){var x=j.get();(o||C||(T?x.some(function(S,P){return of(S,O[P])}):of(x,O)))&&(F&&F(),v(e,Yv,[x,O===Vv?void 0:O,G]),O=x)}else j.get()},d==="sync"?j.update=j.run:d==="post"?(j.post=!0,j.update=function(){return Of(j)}):j.update=function(){if(p&&p===_r&&!p._isMounted){var x=p._preWatchers||(p._preWatchers=[]);x.indexOf(j)<0&&x.push(j)}else Of(j)},e?a?j.run():O=j.get():d==="post"&&p?p.$once("hook:mounted",function(){return j.get()}):j.get(),function(){j.teardown()}}var cr,Qv=(function(){function t(e){e===void 0&&(e=!1),this.detached=e,this.active=!0,this.effects=[],this.cleanups=[],this.parent=cr,!e&&cr&&(this.index=(cr.scopes||(cr.scopes=[])).push(this)-1)}return t.prototype.run=function(e){if(this.active){var r=cr;try{return cr=this,e()}finally{cr=r}}},t.prototype.on=function(){cr=this},t.prototype.off=function(){cr=this.parent},t.prototype.stop=function(e){if(this.active){var r=void 0,n=void 0;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].teardown();for(r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.scopes)for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!0);if(!this.detached&&this.parent&&!e){var a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.parent=void 0,this.active=!1}},t})();function Jv(t){return new Qv(t)}function ex(t,e){e===void 0&&(e=cr),e&&e.active&&e.effects.push(t)}function Zv(){return cr}function tx(t){cr&&cr.cleanups.push(t)}function br(t,e){_r&&(eg(_r)[t]=e)}function eg(t){var e=t._provided,r=t.$parent&&t.$parent._provided;return r===e?t._provided=Object.create(r):e}function st(t,e,r){r===void 0&&(r=!1);var n=_r;if(n){var a=n.$parent&&n.$parent._provided;if(a&&t in a)return a[t];if(arguments.length>1)return r&&pt(e)?e.call(n):e}}var tg=Xi(function(t){var e=t.charAt(0)==="&";t=e?t.slice(1):t;var r=t.charAt(0)==="~";t=r?t.slice(1):t;var n=t.charAt(0)==="!";return t=n?t.slice(1):t,{name:t,once:r,capture:n,passive:e}});function mf(t,e){function r(){var n=r.fns;if(et(n))for(var a=n.slice(),o=0;o<a.length;o++)Hn(a[o],null,arguments,e,"v-on handler");else return Hn(n,null,arguments,e,"v-on handler")}return r.fns=t,r}function rg(t,e,r,n,a,o){var c,d,p,v;for(c in t)d=t[c],p=e[c],v=tg(c),Xe(d)||(Xe(p)?(Xe(d.fns)&&(d=t[c]=mf(d,o)),Ot(v.once)&&(d=t[c]=a(v.name,d,v.capture)),r(v.name,d,v.capture,v.passive,v.params)):d!==p&&(p.fns=d,t[c]=p));for(c in e)Xe(t[c])&&(v=tg(c),n(v.name,e[c],v.capture))}function vi(t,e,r){t instanceof Ur&&(t=t.data.hook||(t.data.hook={}));var n,a=t[e];function o(){r.apply(this,arguments),fi(n.fns,o)}Xe(a)?n=mf([o]):re(a.fns)&&Ot(a.merged)?(n=a,n.fns.push(o)):n=mf([a,o]),n.merged=!0,t[e]=n}function rx(t,e,r){var n=e.options.props;if(!Xe(n)){var a={},o=t.attrs,c=t.props;if(re(o)||re(c))for(var d in n){var p=Js(d);ng(a,c,d,p,!0)||ng(a,o,d,p,!1)}return a}}function ng(t,e,r,n,a){if(re(e)){if(vr(e,r))return t[r]=e[r],a||delete e[r],!0;if(vr(e,n))return t[r]=e[n],a||delete e[n],!0}return!1}function nx(t){for(var e=0;e<t.length;e++)if(et(t[e]))return Array.prototype.concat.apply([],t);return t}function vf(t){return Vs(t)?[Ha(t)]:et(t)?ig(t):void 0}function io(t){return re(t)&&re(t.text)&&NS(t.isComment)}function ig(t,e){var r=[],n,a,o,c;for(n=0;n<t.length;n++)a=t[n],!(Xe(a)||typeof a=="boolean")&&(o=r.length-1,c=r[o],et(a)?a.length>0&&(a=ig(a,"".concat(e||"","_").concat(n)),io(a[0])&&io(c)&&(r[o]=Ha(c.text+a[0].text),a.shift()),r.push.apply(r,a)):Vs(a)?io(c)?r[o]=Ha(c.text+a):a!==""&&r.push(Ha(a)):io(a)&&io(c)?r[o]=Ha(c.text+a.text):(Ot(t._isVList)&&re(a.tag)&&Xe(a.key)&&re(e)&&(a.key="__vlist".concat(e,"_").concat(n,"__")),r.push(a)));return r}function ix(t,e){var r=null,n,a,o,c;if(et(t)||typeof t=="string")for(r=new Array(t.length),n=0,a=t.length;n<a;n++)r[n]=e(t[n],n);else if(typeof t=="number")for(r=new Array(t),n=0;n<t;n++)r[n]=e(n+1,n);else if(lr(t))if(Zs&&t[Symbol.iterator]){r=[];for(var d=t[Symbol.iterator](),p=d.next();!p.done;)r.push(e(p.value,r.length)),p=d.next()}else for(o=Object.keys(t),r=new Array(o.length),n=0,a=o.length;n<a;n++)c=o[n],r[n]=e(t[c],c,n);return re(r)||(r=[]),r._isVList=!0,r}function ax(t,e,r,n){var a=this.$scopedSlots[t],o;a?(r=r||{},n&&(r=bt(bt({},n),r)),o=a(r)||(pt(e)?e():e)):o=this.$slots[t]||(pt(e)?e():e);var c=r&&r.slot;return c?this.$createElement("template",{slot:c},o):o}function sx(t){return il(this.$options,"filters",t)||Nv}function ag(t,e){return et(t)?t.indexOf(e)===-1:t!==e}function ox(t,e,r,n,a){var o=qr.keyCodes[e]||r;return a&&n&&!qr.keyCodes[e]?ag(a,n):o?ag(o,t):n?Js(n)!==e:t===void 0}function ux(t,e,r,n,a){if(r&&lr(r)){et(r)&&(r=Ov(r));var o=void 0,c=function(p){if(p==="class"||p==="style"||LS(p))o=t;else{var v=t.attrs&&t.attrs.type;o=n||qr.mustUseProp(e,v,p)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var b=Vi(p),C=Js(p);if(!(b in o)&&!(C in o)&&(o[p]=r[p],a)){var T=t.on||(t.on={});T["update:".concat(p)]=function(A){r[p]=A}}};for(var d in r)c(d)}return t}function lx(t,e){var r=this._staticTrees||(this._staticTrees=[]),n=r[t];return n&&!e||(n=r[t]=this.$options.staticRenderFns[t].call(this._renderProxy,this._c,this),sg(n,"__static__".concat(t),!1)),n}function cx(t,e,r){return sg(t,"__once__".concat(e).concat(r?"_".concat(r):""),!0),t}function sg(t,e,r){if(et(t))for(var n=0;n<t.length;n++)t[n]&&typeof t[n]!="string"&&og(t[n],"".concat(e,"_").concat(n),r);else og(t,e,r)}function og(t,e,r){t.isStatic=!0,t.key=e,t.isOnce=r}function fx(t,e){if(e&&Br(e)){var r=t.on=t.on?bt({},t.on):{};for(var n in e){var a=r[n],o=e[n];r[n]=a?[].concat(a,o):o}}return t}function ug(t,e,r,n){e=e||{$stable:!r};for(var a=0;a<t.length;a++){var o=t[a];et(o)?ug(o,e,r):o&&(o.proxy&&(o.fn.proxy=!0),e[o.key]=o.fn)}return n&&(e.$key=n),e}function dx(t,e){for(var r=0;r<e.length;r+=2){var n=e[r];typeof n=="string"&&n&&(t[e[r]]=e[r+1])}return t}function hx(t,e){return typeof t=="string"?e+t:t}function lg(t){t._o=cx,t._n=Qs,t._s=IS,t._l=ix,t._t=ax,t._q=Qi,t._i=Pv,t._m=lx,t._f=sx,t._k=ox,t._b=ux,t._v=Ha,t._e=Ji,t._u=ug,t._g=fx,t._d=dx,t._p=hx}function gf(t,e){if(!t||!t.length)return{};for(var r={},n=0,a=t.length;n<a;n++){var o=t[n],c=o.data;if(c&&c.attrs&&c.attrs.slot&&delete c.attrs.slot,(o.context===e||o.fnContext===e)&&c&&c.slot!=null){var d=c.slot,p=r[d]||(r[d]=[]);o.tag==="template"?p.push.apply(p,o.children||[]):p.push(o)}else(r.default||(r.default=[])).push(o)}for(var v in r)r[v].every(px)&&delete r[v];return r}function px(t){return t.isComment&&!t.asyncFactory||t.text===" "}function ao(t){return t.isComment&&t.asyncFactory}function so(t,e,r,n){var a,o=Object.keys(r).length>0,c=e?!!e.$stable:!o,d=e&&e.$key;if(!e)a={};else{if(e._normalized)return e._normalized;if(c&&n&&n!==Or&&d===n.$key&&!o&&!n.$hasNormal)return n;a={};for(var p in e)e[p]&&p[0]!=="$"&&(a[p]=mx(t,r,p,e[p]))}for(var v in r)v in a||(a[v]=vx(r,v));return e&&Object.isExtensible(e)&&(e._normalized=a),gr(a,"$stable",c),gr(a,"$key",d),gr(a,"$hasNormal",o),a}function mx(t,e,r,n){var a=function(){var o=_r;hi(t);var c=arguments.length?n.apply(null,arguments):n({});c=c&&typeof c=="object"&&!et(c)?[c]:vf(c);var d=c&&c[0];return hi(o),c&&(!d||c.length===1&&d.isComment&&!ao(d))?void 0:c};return n.proxy&&Object.defineProperty(e,r,{get:a,enumerable:!0,configurable:!0}),a}function vx(t,e){return function(){return t[e]}}function gx(t){var e=t.$options,r=e.setup;if(r){var n=t._setupContext=_x(t);hi(t),Ua();var a=Hn(r,null,[t._props||Gv({}),n],t,"setup");if(ja(),hi(),pt(a))e.render=a;else if(lr(a))if(t._setupState=a,a.__sfc){var c=t._setupProxy={};for(var o in a)o!=="__sfc"&&df(c,a,o)}else for(var o in a)Rv(o)||df(t,a,o)}}function _x(t){return{get attrs(){if(!t._attrsProxy){var e=t._attrsProxy={};gr(e,"_v_attr_proxy",!0),Xu(e,t.$attrs,Or,t,"$attrs")}return t._attrsProxy},get listeners(){if(!t._listenersProxy){var e=t._listenersProxy={};Xu(e,t.$listeners,Or,t,"$listeners")}return t._listenersProxy},get slots(){return yx(t)},emit:Av(t.$emit,t),expose:function(e){e&&Object.keys(e).forEach(function(r){return df(t,e,r)})}}}function Xu(t,e,r,n,a){var o=!1;for(var c in e)c in t?e[c]!==r[c]&&(o=!0):(o=!0,bx(t,c,n,a));for(var c in t)c in e||(o=!0,delete t[c]);return o}function bx(t,e,r,n){Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){return r[n][e]}})}function yx(t){return t._slotsProxy||cg(t._slotsProxy={},t.$scopedSlots),t._slotsProxy}function cg(t,e){for(var r in e)t[r]=e[r];for(var r in t)r in e||delete t[r]}function kx(t){t._vnode=null,t._staticTrees=null;var e=t.$options,r=t.$vnode=e._parentVnode,n=r&&r.context;t.$slots=gf(e._renderChildren,n),t.$scopedSlots=r?so(t.$parent,r.data.scopedSlots,t.$slots):Or,t._c=function(o,c,d,p){return Vu(t,o,c,d,p,!1)},t.$createElement=function(o,c,d,p){return Vu(t,o,c,d,p,!0)};var a=r&&r.data;mi(t,"$attrs",a&&a.attrs||Or,null,!0),mi(t,"$listeners",e._parentListeners||Or,null,!0)}var _f=null;function Ex(t){lg(t.prototype),t.prototype.$nextTick=function(e){return Tn(e,this)},t.prototype._render=function(){var e=this,r=e.$options,n=r.render,a=r._parentVnode;a&&e._isMounted&&(e.$scopedSlots=so(e.$parent,a.data.scopedSlots,e.$slots,e.$scopedSlots),e._slotsProxy&&cg(e._slotsProxy,e.$scopedSlots)),e.$vnode=a;var o;try{hi(e),_f=e,o=n.call(e._renderProxy,e.$createElement)}catch(c){ea(c,e,"render"),o=e._vnode}finally{_f=null,hi()}return et(o)&&o.length===1&&(o=o[0]),o instanceof Ur||(o=Ji()),o.parent=a,o}}function bf(t,e){return(t.__esModule||Zs&&t[Symbol.toStringTag]==="Module")&&(t=t.default),lr(t)?e.extend(t):t}function Tx(t,e,r,n,a){var o=Ji();return o.asyncFactory=t,o.asyncMeta={data:e,context:r,children:n,tag:a},o}function Cx(t,e){if(Ot(t.error)&&re(t.errorComp))return t.errorComp;if(re(t.resolved))return t.resolved;var r=_f;if(r&&re(t.owners)&&t.owners.indexOf(r)===-1&&t.owners.push(r),Ot(t.loading)&&re(t.loadingComp))return t.loadingComp;if(r&&!re(t.owners)){var n=t.owners=[r],a=!0,o=null,c=null;r.$on("hook:destroyed",function(){return fi(n,r)});var d=function(C){for(var T=0,A=n.length;T<A;T++)n[T].$forceUpdate();C&&(n.length=0,o!==null&&(clearTimeout(o),o=null),c!==null&&(clearTimeout(c),c=null))},p=Hu(function(C){t.resolved=bf(C,e),a?n.length=0:d(!0)}),v=Hu(function(C){re(t.errorComp)&&(t.error=!0,d(!0))}),b=t(p,v);return lr(b)&&(af(b)?Xe(t.resolved)&&b.then(p,v):af(b.component)&&(b.component.then(p,v),re(b.error)&&(t.errorComp=bf(b.error,e)),re(b.loading)&&(t.loadingComp=bf(b.loading,e),b.delay===0?t.loading=!0:o=setTimeout(function(){o=null,Xe(t.resolved)&&Xe(t.error)&&(t.loading=!0,d(!1))},b.delay||200)),re(b.timeout)&&(c=setTimeout(function(){c=null,Xe(t.resolved)&&v(null)},b.timeout)))),a=!1,t.loading?t.loadingComp:t.resolved}}function fg(t){if(et(t))for(var e=0;e<t.length;e++){var r=t[e];if(re(r)&&(re(r.componentOptions)||ao(r)))return r}}var wx=1,dg=2;function Vu(t,e,r,n,a,o){return(et(r)||Vs(r))&&(a=n,n=r,r=void 0),Ot(o)&&(a=dg),Sx(t,e,r,n,a)}function Sx(t,e,r,n,a){if(re(r)&&re(r.__ob__)||(re(r)&&re(r.is)&&(e=r.is),!e))return Ji();et(n)&&pt(n[0])&&(r=r||{},r.scopedSlots={default:n[0]},n.length=0),a===dg?n=vf(n):a===wx&&(n=nx(n));var o,c;if(typeof e=="string"){var d=void 0;c=t.$vnode&&t.$vnode.ns||qr.getTagNamespace(e),qr.isReservedTag(e)?o=new Ur(qr.parsePlatformTagName(e),r,n,void 0,void 0,t):(!r||!r.pre)&&re(d=il(t.$options,"components",e))?o=xg(d,r,t,n,e):o=new Ur(e,r,n,void 0,void 0,t)}else o=xg(e,r,t,n);return et(o)?o:re(o)?(re(c)&&hg(o,c),re(r)&&xx(r),o):Ji()}function hg(t,e,r){if(t.ns=e,t.tag==="foreignObject"&&(e=void 0,r=!0),re(t.children))for(var n=0,a=t.children.length;n<a;n++){var o=t.children[n];re(o.tag)&&(Xe(o.ns)||Ot(r)&&o.tag!=="svg")&&hg(o,e,r)}}function xx(t){lr(t.style)&&za(t.style),lr(t.class)&&za(t.class)}function ea(t,e,r){Ua();try{if(e)for(var n=e;n=n.$parent;){var a=n.$options.errorCaptured;if(a)for(var o=0;o<a.length;o++)try{var c=a[o].call(n,t,e,r)===!1;if(c)return}catch(d){pg(d,n,"errorCaptured hook")}}pg(t,e,r)}finally{ja()}}function Hn(t,e,r,n,a){var o;try{o=r?t.apply(e,r):t.call(e),o&&!o._isVue&&af(o)&&!o._handled&&(o.catch(function(c){return ea(c,n,a+" (Promise/async)")}),o._handled=!0)}catch(c){ea(c,n,a)}return o}function pg(t,e,r){if(qr.errorHandler)try{return qr.errorHandler.call(null,t,e,r)}catch(n){n!==t&&mg(n)}mg(t)}function mg(t,e,r){if(Hr&&typeof console<"u")console.error(t);else throw t}var yf=!1,kf=[],Ef=!1;function Qu(){Ef=!1;var t=kf.slice(0);kf.length=0;for(var e=0;e<t.length;e++)t[e]()}var oo;if(typeof Promise<"u"&&Ba(Promise)){var Ax=Promise.resolve();oo=function(){Ax.then(Qu),GS&&setTimeout(Ct)},yf=!0}else if(!$a&&typeof MutationObserver<"u"&&(Ba(MutationObserver)||MutationObserver.toString()==="[object MutationObserverConstructor]")){var Ju=1,Ox=new MutationObserver(Qu),vg=document.createTextNode(String(Ju));Ox.observe(vg,{characterData:!0}),oo=function(){Ju=(Ju+1)%2,vg.data=String(Ju)},yf=!0}else typeof setImmediate<"u"&&Ba(setImmediate)?oo=function(){setImmediate(Qu)}:oo=function(){setTimeout(Qu,0)};function Tn(t,e){var r;if(kf.push(function(){if(t)try{t.call(e)}catch(n){ea(n,e,"nextTick")}else r&&r(e)}),Ef||(Ef=!0,oo()),!t&&typeof Promise<"u")return new Promise(function(n){r=n})}function Zu(t){return function(e,r){if(r===void 0&&(r=_r),!!r)return Nx(r,t,e)}}function Nx(t,e,r){var n=t.$options;n[e]=Og(n[e],r)}var el=Zu("beforeMount"),Gt=Zu("mounted"),Nr=Zu("beforeDestroy"),Ga=Zu("destroyed"),Px="2.7.15",gg=new eo;function za(t){return tl(t,gg),gg.clear(),t}function tl(t,e){var r,n,a=et(t);if(!(!a&&!lr(t)||t.__v_skip||Object.isFrozen(t)||t instanceof Ur)){if(t.__ob__){var o=t.__ob__.dep.id;if(e.has(o))return;e.add(o)}if(a)for(r=t.length;r--;)tl(t[r],e);else if(Wt(t))tl(t.value,e);else for(n=Object.keys(t),r=n.length;r--;)tl(t[n[r]],e)}}var Ix=0,uo=(function(){function t(e,r,n,a,o){ex(this,cr&&!cr._vm?cr:e?e._scope:void 0),(this.vm=e)&&o&&(e._watcher=this),a?(this.deep=!!a.deep,this.user=!!a.user,this.lazy=!!a.lazy,this.sync=!!a.sync,this.before=a.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++Ix,this.active=!0,this.post=!1,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new eo,this.newDepIds=new eo,this.expression="",pt(r)?this.getter=r:(this.getter=jS(r),this.getter||(this.getter=Ct)),this.value=this.lazy?void 0:this.get()}return t.prototype.get=function(){Ua(this);var e,r=this.vm;try{e=this.getter.call(r,r)}catch(n){if(this.user)ea(n,r,'getter for watcher "'.concat(this.expression,'"'));else throw n}finally{this.deep&&za(e),ja(),this.cleanupDeps()}return e},t.prototype.addDep=function(e){var r=e.id;this.newDepIds.has(r)||(this.newDepIds.add(r),this.newDeps.push(e),this.depIds.has(r)||e.addSub(this))},t.prototype.cleanupDeps=function(){for(var e=this.deps.length;e--;){var r=this.deps[e];this.newDepIds.has(r.id)||r.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},t.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Of(this)},t.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||lr(e)||this.deep){var r=this.value;if(this.value=e,this.user){var n='callback for watcher "'.concat(this.expression,'"');Hn(this.cb,this.vm,[e,r],this.vm,n)}else this.cb.call(this.vm,e,r)}}},t.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},t.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},t.prototype.teardown=function(){if(this.vm&&!this.vm._isBeingDestroyed&&fi(this.vm._scope.effects,this),this.active){for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1,this.onStop&&this.onStop()}},t})();function Lx(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&_g(t,e)}var lo;function Rx(t,e){lo.$on(t,e)}function Dx(t,e){lo.$off(t,e)}function Mx(t,e){var r=lo;return function n(){var a=e.apply(null,arguments);a!==null&&r.$off(t,n)}}function _g(t,e,r){lo=t,rg(e,r||{},Rx,Dx,Mx,t),lo=void 0}function $x(t){var e=/^hook:/;t.prototype.$on=function(r,n){var a=this;if(et(r))for(var o=0,c=r.length;o<c;o++)a.$on(r[o],n);else(a._events[r]||(a._events[r]=[])).push(n),e.test(r)&&(a._hasHookEvent=!0);return a},t.prototype.$once=function(r,n){var a=this;function o(){a.$off(r,o),n.apply(a,arguments)}return o.fn=n,a.$on(r,o),a},t.prototype.$off=function(r,n){var a=this;if(!arguments.length)return a._events=Object.create(null),a;if(et(r)){for(var o=0,c=r.length;o<c;o++)a.$off(r[o],n);return a}var d=a._events[r];if(!d)return a;if(!n)return a._events[r]=null,a;for(var p,v=d.length;v--;)if(p=d[v],p===n||p.fn===n){d.splice(v,1);break}return a},t.prototype.$emit=function(r){var n=this,a=n._events[r];if(a){a=a.length>1?sf(a):a;for(var o=sf(arguments,1),c='event handler for "'.concat(r,'"'),d=0,p=a.length;d<p;d++)Hn(a[d],n,o,n,c)}return n}}var ta=null;function bg(t){var e=ta;return ta=t,function(){ta=e}}function Fx(t){var e=t.$options,r=e.parent;if(r&&!e.abstract){for(;r.$options.abstract&&r.$parent;)r=r.$parent;r.$children.push(t)}t.$parent=r,t.$root=r?r.$root:t,t.$children=[],t.$refs={},t._provided=r?r._provided:Object.create(null),t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}function Bx(t){t.prototype._update=function(e,r){var n=this,a=n.$el,o=n._vnode,c=bg(n);n._vnode=e,o?n.$el=n.__patch__(o,e):n.$el=n.__patch__(n.$el,e,r,!1),c(),a&&(a.__vue__=null),n.$el&&(n.$el.__vue__=n);for(var d=n;d&&d.$vnode&&d.$parent&&d.$vnode===d.$parent._vnode;)d.$parent.$el=d.$el,d=d.$parent},t.prototype.$forceUpdate=function(){var e=this;e._watcher&&e._watcher.update()},t.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){nn(e,"beforeDestroy"),e._isBeingDestroyed=!0;var r=e.$parent;r&&!r._isBeingDestroyed&&!e.$options.abstract&&fi(r.$children,e),e._scope.stop(),e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),nn(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}function Hx(t,e,r){t.$el=e,t.$options.render||(t.$options.render=Ji),nn(t,"beforeMount");var n;n=function(){t._update(t._render(),r)};var a={before:function(){t._isMounted&&!t._isDestroyed&&nn(t,"beforeUpdate")}};new uo(t,n,Ct,a,!0),r=!1;var o=t._preWatchers;if(o)for(var c=0;c<o.length;c++)o[c].run();return t.$vnode==null&&(t._isMounted=!0,nn(t,"mounted")),t}function Ux(t,e,r,n,a){var o=n.data.scopedSlots,c=t.$scopedSlots,d=!!(o&&!o.$stable||c!==Or&&!c.$stable||o&&t.$scopedSlots.$key!==o.$key||!o&&t.$scopedSlots.$key),p=!!(a||t.$options._renderChildren||d),v=t.$vnode;t.$options._parentVnode=n,t.$vnode=n,t._vnode&&(t._vnode.parent=n),t.$options._renderChildren=a;var b=n.data.attrs||Or;t._attrsProxy&&Xu(t._attrsProxy,b,v.data&&v.data.attrs||Or,t,"$attrs")&&(p=!0),t.$attrs=b,r=r||Or;var C=t.$options._parentListeners;if(t._listenersProxy&&Xu(t._listenersProxy,r,C||Or,t,"$listeners"),t.$listeners=t.$options._parentListeners=r,_g(t,r,C),e&&t.$options.props){pi(!1);for(var T=t._props,A=t.$options._propKeys||[],F=0;F<A.length;F++){var G=A[F],j=t.$options.props;T[G]=If(G,j,e,t)}pi(!0),t.$options.propsData=e}p&&(t.$slots=gf(a,n.context),t.$forceUpdate())}function yg(t){for(;t&&(t=t.$parent);)if(t._inactive)return!0;return!1}function Tf(t,e){if(e){if(t._directInactive=!1,yg(t))return}else if(t._directInactive)return;if(t._inactive||t._inactive===null){t._inactive=!1;for(var r=0;r<t.$children.length;r++)Tf(t.$children[r]);nn(t,"activated")}}function kg(t,e){if(!(e&&(t._directInactive=!0,yg(t)))&&!t._inactive){t._inactive=!0;for(var r=0;r<t.$children.length;r++)kg(t.$children[r]);nn(t,"deactivated")}}function nn(t,e,r,n){n===void 0&&(n=!0),Ua();var a=_r,o=Zv();n&&hi(t);var c=t.$options[e],d="".concat(e," hook");if(c)for(var p=0,v=c.length;p<v;p++)Hn(c[p],t,null,t,d);t._hasHookEvent&&t.$emit("hook:"+e),n&&(hi(a),o&&o.on()),ja()}var Un=[],Cf=[],rl={},wf=!1,Sf=!1,qa=0;function jx(){qa=Un.length=Cf.length=0,rl={},wf=Sf=!1}var Eg=0,xf=Date.now;if(Hr&&!$a){var Af=window.performance;Af&&typeof Af.now=="function"&&xf()>document.createEvent("Event").timeStamp&&(xf=function(){return Af.now()})}var Wx=function(t,e){if(t.post){if(!e.post)return 1}else if(e.post)return-1;return t.id-e.id};function Gx(){Eg=xf(),Sf=!0;var t,e;for(Un.sort(Wx),qa=0;qa<Un.length;qa++)t=Un[qa],t.before&&t.before(),e=t.id,rl[e]=null,t.run();var r=Cf.slice(),n=Un.slice();jx(),Yx(r),zx(n),qS(),Wu&&qr.devtools&&Wu.emit("flush")}function zx(t){for(var e=t.length;e--;){var r=t[e],n=r.vm;n&&n._watcher===r&&n._isMounted&&!n._isDestroyed&&nn(n,"updated")}}function qx(t){t._inactive=!1,Cf.push(t)}function Yx(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,Tf(t[e],!0)}function Of(t){var e=t.id;if(rl[e]==null&&!(t===Fn.target&&t.noRecurse)){if(rl[e]=!0,!Sf)Un.push(t);else{for(var r=Un.length-1;r>qa&&Un[r].id>t.id;)r--;Un.splice(r+1,0,t)}wf||(wf=!0,Tn(Gx))}}function Kx(t){var e=t.$options.provide;if(e){var r=pt(e)?e.call(t):e;if(!lr(r))return;for(var n=eg(t),a=Zs?Reflect.ownKeys(r):Object.keys(r),o=0;o<a.length;o++){var c=a[o];Object.defineProperty(n,c,Object.getOwnPropertyDescriptor(r,c))}}}function Xx(t){var e=Tg(t.$options.inject,t);e&&(pi(!1),Object.keys(e).forEach(function(r){mi(t,r,e[r])}),pi(!0))}function Tg(t,e){if(t){for(var r=Object.create(null),n=Zs?Reflect.ownKeys(t):Object.keys(t),a=0;a<n.length;a++){var o=n[a];if(o!=="__ob__"){var c=t[o].from;if(c in e._provided)r[o]=e._provided[c];else if("default"in t[o]){var d=t[o].default;r[o]=pt(d)?d.call(e):d}}}return r}}function Nf(t,e,r,n,a){var o=this,c=a.options,d;vr(n,"_uid")?(d=Object.create(n),d._original=n):(d=n,n=n._original);var p=Ot(c._compiled),v=!p;this.data=t,this.props=e,this.children=r,this.parent=n,this.listeners=t.on||Or,this.injections=Tg(c.inject,n),this.slots=function(){return o.$slots||so(n,t.scopedSlots,o.$slots=gf(r,n)),o.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return so(n,t.scopedSlots,this.slots())}}),p&&(this.$options=c,this.$slots=this.slots(),this.$scopedSlots=so(n,t.scopedSlots,this.$slots)),c._scopeId?this._c=function(b,C,T,A){var F=Vu(d,b,C,T,A,v);return F&&!et(F)&&(F.fnScopeId=c._scopeId,F.fnContext=n),F}:this._c=function(b,C,T,A){return Vu(d,b,C,T,A,v)}}lg(Nf.prototype);function Vx(t,e,r,n,a){var o=t.options,c={},d=o.props;if(re(d))for(var p in d)c[p]=If(p,d,e||Or);else re(r.attrs)&&wg(c,r.attrs),re(r.props)&&wg(c,r.props);var v=new Nf(r,c,a,n,t),b=o.render.call(null,v._c,v);if(b instanceof Ur)return Cg(b,r,v.parent,o);if(et(b)){for(var C=vf(b)||[],T=new Array(C.length),A=0;A<C.length;A++)T[A]=Cg(C[A],r,v.parent,o);return T}}function Cg(t,e,r,n,a){var o=lf(t);return o.fnContext=r,o.fnOptions=n,e.slot&&((o.data||(o.data={})).slot=e.slot),o}function wg(t,e){for(var r in e)t[Vi(r)]=e[r]}function nl(t){return t.name||t.__name||t._componentTag}var Pf={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var r=t;Pf.prepatch(r,r)}else{var n=t.componentInstance=Qx(t,ta);n.$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var r=e.componentOptions,n=e.componentInstance=t.componentInstance;Ux(n,r.propsData,r.listeners,e,r.children)},insert:function(t){var e=t.context,r=t.componentInstance;r._isMounted||(r._isMounted=!0,nn(r,"mounted")),t.data.keepAlive&&(e._isMounted?qx(r):Tf(r,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?kg(e,!0):e.$destroy())}},Sg=Object.keys(Pf);function xg(t,e,r,n,a){if(!Xe(t)){var o=r.$options._base;if(lr(t)&&(t=o.extend(t)),typeof t=="function"){var c;if(Xe(t.cid)&&(c=t,t=Cx(c,o),t===void 0))return Tx(c,e,r,n,a);e=e||{},Mf(t),re(e.model)&&eA(t.options,e);var d=rx(e,t);if(Ot(t.options.functional))return Vx(t,d,e,r,n);var p=e.on;if(e.on=e.nativeOn,Ot(t.options.abstract)){var v=e.slot;e={},v&&(e.slot=v)}Jx(e);var b=nl(t.options)||a,C=new Ur("vue-component-".concat(t.cid).concat(b?"-".concat(b):""),e,void 0,void 0,void 0,r,{Ctor:t,propsData:d,listeners:p,tag:a,children:n},c);return C}}}function Qx(t,e){var r={_isComponent:!0,_parentVnode:t,parent:e},n=t.data.inlineTemplate;return re(n)&&(r.render=n.render,r.staticRenderFns=n.staticRenderFns),new t.componentOptions.Ctor(r)}function Jx(t){for(var e=t.hook||(t.hook={}),r=0;r<Sg.length;r++){var n=Sg[r],a=e[n],o=Pf[n];a!==o&&!(a&&a._merged)&&(e[n]=a?Zx(o,a):o)}}function Zx(t,e){var r=function(n,a){t(n,a),e(n,a)};return r._merged=!0,r}function eA(t,e){var r=t.model&&t.model.prop||"value",n=t.model&&t.model.event||"input";(e.attrs||(e.attrs={}))[r]=e.model.value;var a=e.on||(e.on={}),o=a[n],c=e.model.callback;re(o)?(et(o)?o.indexOf(c)===-1:o!==c)&&(a[n]=[c].concat(o)):a[n]=c}var tA=Ct,Cn=qr.optionMergeStrategies;function co(t,e,r){if(r===void 0&&(r=!0),!e)return t;for(var n,a,o,c=Zs?Reflect.ownKeys(e):Object.keys(e),d=0;d<c.length;d++)n=c[d],n!=="__ob__"&&(a=t[n],o=e[n],!r||!vr(t,n)?mt(t,n,o):a!==o&&Br(a)&&Br(o)&&co(a,o));return t}function Ag(t,e,r){return r?function(){var a=pt(e)?e.call(r,r):e,o=pt(t)?t.call(r,r):t;return a?co(a,o):o}:e?t?function(){return co(pt(e)?e.call(this,this):e,pt(t)?t.call(this,this):t)}:e:t}Cn.data=function(t,e,r){return r?Ag(t,e,r):e&&typeof e!="function"?t:Ag(t,e)};function Og(t,e){var r=e?t?t.concat(e):et(e)?e:[e]:t;return r&&rA(r)}function rA(t){for(var e=[],r=0;r<t.length;r++)e.indexOf(t[r])===-1&&e.push(t[r]);return e}Lv.forEach(function(t){Cn[t]=Og});function nA(t,e,r,n){var a=Object.create(t||null);return e?bt(a,e):a}Uu.forEach(function(t){Cn[t+"s"]=nA}),Cn.watch=function(t,e,r,n){if(t===uf&&(t=void 0),e===uf&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var a={};bt(a,t);for(var o in e){var c=a[o],d=e[o];c&&!et(c)&&(c=[c]),a[o]=c?c.concat(d):et(d)?d:[d]}return a},Cn.props=Cn.methods=Cn.inject=Cn.computed=function(t,e,r,n){if(!t)return e;var a=Object.create(null);return bt(a,t),e&&bt(a,e),a},Cn.provide=function(t,e){return t?function(){var r=Object.create(null);return co(r,pt(t)?t.call(this):t),e&&co(r,pt(e)?e.call(this):e,!1),r}:e};var iA=function(t,e){return e===void 0?t:e};function aA(t,e){var r=t.props;if(r){var n={},a,o,c;if(et(r))for(a=r.length;a--;)o=r[a],typeof o=="string"&&(c=Vi(o),n[c]={type:null});else if(Br(r))for(var d in r)o=r[d],c=Vi(d),n[c]=Br(o)?o:{type:o};t.props=n}}function sA(t,e){var r=t.inject;if(r){var n=t.inject={};if(et(r))for(var a=0;a<r.length;a++)n[r[a]]={from:r[a]};else if(Br(r))for(var o in r){var c=r[o];n[o]=Br(c)?bt({from:o},c):{from:c}}}}function oA(t){var e=t.directives;if(e)for(var r in e){var n=e[r];pt(n)&&(e[r]={bind:n,update:n})}}function ra(t,e,r){if(pt(e)&&(e=e.options),aA(e),sA(e),oA(e),!e._base&&(e.extends&&(t=ra(t,e.extends,r)),e.mixins))for(var n=0,a=e.mixins.length;n<a;n++)t=ra(t,e.mixins[n],r);var o={},c;for(c in t)d(c);for(c in e)vr(t,c)||d(c);function d(p){var v=Cn[p]||iA;o[p]=v(t[p],e[p],r,p)}return o}function il(t,e,r,n){if(typeof r=="string"){var a=t[e];if(vr(a,r))return a[r];var o=Vi(r);if(vr(a,o))return a[o];var c=MS(o);if(vr(a,c))return a[c];var d=a[r]||a[o]||a[c];return d}}function If(t,e,r,n){var a=e[t],o=!vr(r,t),c=r[t],d=Pg(Boolean,a.type);if(d>-1){if(o&&!vr(a,"default"))c=!1;else if(c===""||c===Js(t)){var p=Pg(String,a.type);(p<0||d<p)&&(c=!0)}}if(c===void 0){c=uA(n,a,t);var v=cf;pi(!0),Bn(c),pi(v)}return c}function uA(t,e,r){if(vr(e,"default")){var n=e.default;return t&&t.$options.propsData&&t.$options.propsData[r]===void 0&&t._props[r]!==void 0?t._props[r]:pt(n)&&Lf(e.type)!=="Function"?n.call(t):n}}var lA=/^\s*function (\w+)/;function Lf(t){var e=t&&t.toString().match(lA);return e?e[1]:""}function Ng(t,e){return Lf(t)===Lf(e)}function Pg(t,e){if(!et(e))return Ng(e,t)?0:-1;for(var r=0,n=e.length;r<n;r++)if(Ng(e[r],t))return r;return-1}var gi={enumerable:!0,configurable:!0,get:Ct,set:Ct};function Rf(t,e,r){gi.get=function(){return this[e][r]},gi.set=function(a){this[e][r]=a},Object.defineProperty(t,r,gi)}function cA(t){var e=t.$options;if(e.props&&fA(t,e.props),gx(t),e.methods&&vA(t,e.methods),e.data)dA(t);else{var r=Bn(t._data={});r&&r.vmCount++}e.computed&&mA(t,e.computed),e.watch&&e.watch!==uf&&gA(t,e.watch)}function fA(t,e){var r=t.$options.propsData||{},n=t._props=Gv({}),a=t.$options._propKeys=[],o=!t.$parent;o||pi(!1);var c=function(p){a.push(p);var v=If(p,e,r,t);mi(n,p,v),p in t||Rf(t,"_props",p)};for(var d in e)c(d);pi(!0)}function dA(t){var e=t.$options.data;e=t._data=pt(e)?hA(e,t):e||{},Br(e)||(e={});var r=Object.keys(e),n=t.$options.props;t.$options.methods;for(var a=r.length;a--;){var o=r[a];n&&vr(n,o)||Rv(o)||Rf(t,"_data",o)}var c=Bn(e);c&&c.vmCount++}function hA(t,e){Ua();try{return t.call(e,e)}catch(r){return ea(r,e,"data()"),{}}finally{ja()}}var pA={lazy:!0};function mA(t,e){var r=t._computedWatchers=Object.create(null),n=di();for(var a in e){var o=e[a],c=pt(o)?o:o.get;n||(r[a]=new uo(t,c||Ct,Ct,pA)),a in t||Ig(t,a,o)}}function Ig(t,e,r){var n=!di();pt(r)?(gi.get=n?Lg(e):Rg(r),gi.set=Ct):(gi.get=r.get?n&&r.cache!==!1?Lg(e):Rg(r.get):Ct,gi.set=r.set||Ct),Object.defineProperty(t,e,gi)}function Lg(t){return function(){var r=this._computedWatchers&&this._computedWatchers[t];if(r)return r.dirty&&r.evaluate(),Fn.target&&r.depend(),r.value}}function Rg(t){return function(){return t.call(this,this)}}function vA(t,e){t.$options.props;for(var r in e)t[r]=typeof e[r]!="function"?Ct:Av(e[r],t)}function gA(t,e){for(var r in e){var n=e[r];if(et(n))for(var a=0;a<n.length;a++)Df(t,r,n[a]);else Df(t,r,n)}}function Df(t,e,r,n){return Br(r)&&(n=r,r=r.handler),typeof r=="string"&&(r=t[r]),t.$watch(e,r,n)}function _A(t){var e={};e.get=function(){return this._data};var r={};r.get=function(){return this._props},Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",r),t.prototype.$set=mt,t.prototype.$delete=Zi,t.prototype.$watch=function(n,a,o){var c=this;if(Br(a))return Df(c,n,a,o);o=o||{},o.user=!0;var d=new uo(c,n,a,o);if(o.immediate){var p='callback for immediate watcher "'.concat(d.expression,'"');Ua(),Hn(a,c,[d.value],c,p),ja()}return function(){d.teardown()}}}var bA=0;function yA(t){t.prototype._init=function(e){var r=this;r._uid=bA++,r._isVue=!0,r.__v_skip=!0,r._scope=new Qv(!0),r._scope._vm=!0,e&&e._isComponent?kA(r,e):r.$options=ra(Mf(r.constructor),e||{},r),r._renderProxy=r,r._self=r,Fx(r),Lx(r),kx(r),nn(r,"beforeCreate",void 0,!1),Xx(r),cA(r),Kx(r),nn(r,"created"),r.$options.el&&r.$mount(r.$options.el)}}function kA(t,e){var r=t.$options=Object.create(t.constructor.options),n=e._parentVnode;r.parent=e.parent,r._parentVnode=n;var a=n.componentOptions;r.propsData=a.propsData,r._parentListeners=a.listeners,r._renderChildren=a.children,r._componentTag=a.tag,e.render&&(r.render=e.render,r.staticRenderFns=e.staticRenderFns)}function Mf(t){var e=t.options;if(t.super){var r=Mf(t.super),n=t.superOptions;if(r!==n){t.superOptions=r;var a=EA(t);a&&bt(t.extendOptions,a),e=t.options=ra(r,t.extendOptions),e.name&&(e.components[e.name]=t)}}return e}function EA(t){var e,r=t.options,n=t.sealedOptions;for(var a in r)r[a]!==n[a]&&(e||(e={}),e[a]=r[a]);return e}function oe(t){this._init(t)}yA(oe),_A(oe),$x(oe),Bx(oe),Ex(oe);function TA(t){t.use=function(e){var r=this._installedPlugins||(this._installedPlugins=[]);if(r.indexOf(e)>-1)return this;var n=sf(arguments,1);return n.unshift(this),pt(e.install)?e.install.apply(e,n):pt(e)&&e.apply(null,n),r.push(e),this}}function CA(t){t.mixin=function(e){return this.options=ra(this.options,e),this}}function wA(t){t.cid=0;var e=1;t.extend=function(r){r=r||{};var n=this,a=n.cid,o=r._Ctor||(r._Ctor={});if(o[a])return o[a];var c=nl(r)||nl(n.options),d=function(v){this._init(v)};return d.prototype=Object.create(n.prototype),d.prototype.constructor=d,d.cid=e++,d.options=ra(n.options,r),d.super=n,d.options.props&&SA(d),d.options.computed&&xA(d),d.extend=n.extend,d.mixin=n.mixin,d.use=n.use,Uu.forEach(function(p){d[p]=n[p]}),c&&(d.options.components[c]=d),d.superOptions=n.options,d.extendOptions=r,d.sealedOptions=bt({},d.options),o[a]=d,d}}function SA(t){var e=t.options.props;for(var r in e)Rf(t.prototype,"_props",r)}function xA(t){var e=t.options.computed;for(var r in e)Ig(t.prototype,r,e[r])}function AA(t){Uu.forEach(function(e){t[e]=function(r,n){return n?(e==="component"&&Br(n)&&(n.name=n.name||r,n=this.options._base.extend(n)),e==="directive"&&pt(n)&&(n={bind:n,update:n}),this.options[e+"s"][r]=n,n):this.options[e+"s"][r]}})}function Dg(t){return t&&(nl(t.Ctor.options)||t.tag)}function al(t,e){return et(t)?t.indexOf(e)>-1:typeof t=="string"?t.split(",").indexOf(e)>-1:PS(t)?t.test(e):!1}function Mg(t,e){var r=t.cache,n=t.keys,a=t._vnode;for(var o in r){var c=r[o];if(c){var d=c.name;d&&!e(d)&&$f(r,o,n,a)}}}function $f(t,e,r,n){var a=t[e];a&&(!n||a.tag!==n.tag)&&a.componentInstance.$destroy(),t[e]=null,fi(r,e)}var $g=[String,RegExp,Array],OA={name:"keep-alive",abstract:!0,props:{include:$g,exclude:$g,max:[String,Number]},methods:{cacheVNode:function(){var t=this,e=t.cache,r=t.keys,n=t.vnodeToCache,a=t.keyToCache;if(n){var o=n.tag,c=n.componentInstance,d=n.componentOptions;e[a]={name:Dg(d),tag:o,componentInstance:c},r.push(a),this.max&&r.length>parseInt(this.max)&&$f(e,r[0],r,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)$f(this.cache,t,this.keys)},mounted:function(){var t=this;this.cacheVNode(),this.$watch("include",function(e){Mg(t,function(r){return al(e,r)})}),this.$watch("exclude",function(e){Mg(t,function(r){return!al(e,r)})})},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,e=fg(t),r=e&&e.componentOptions;if(r){var n=Dg(r),a=this,o=a.include,c=a.exclude;if(o&&(!n||!al(o,n))||c&&n&&al(c,n))return e;var d=this,p=d.cache,v=d.keys,b=e.key==null?r.Ctor.cid+(r.tag?"::".concat(r.tag):""):e.key;p[b]?(e.componentInstance=p[b].componentInstance,fi(v,b),v.push(b)):(this.vnodeToCache=e,this.keyToCache=b),e.data.keepAlive=!0}return e||t&&t[0]}},NA={KeepAlive:OA};function PA(t){var e={};e.get=function(){return qr},Object.defineProperty(t,"config",e),t.util={warn:tA,extend:bt,mergeOptions:ra,defineReactive:mi},t.set=mt,t.delete=Zi,t.nextTick=Tn,t.observable=function(r){return Bn(r),r},t.options=Object.create(null),Uu.forEach(function(r){t.options[r+"s"]=Object.create(null)}),t.options._base=t,bt(t.options.components,NA),TA(t),CA(t),wA(t),AA(t)}PA(oe),Object.defineProperty(oe.prototype,"$isServer",{get:di}),Object.defineProperty(oe.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(oe,"FunctionalRenderContext",{value:Nf}),oe.version=Px;var IA=rn("style,class"),LA=rn("input,textarea,option,select,progress"),RA=function(t,e,r){return r==="value"&&LA(t)&&e!=="button"||r==="selected"&&t==="option"||r==="checked"&&t==="input"||r==="muted"&&t==="video"},Fg=rn("contenteditable,draggable,spellcheck"),DA=rn("events,caret,typing,plaintext-only"),MA=function(t,e){return sl(e)||e==="false"?"false":t==="contenteditable"&&DA(e)?e:"true"},$A=rn("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),Ff="http://www.w3.org/1999/xlink",Bf=function(t){return t.charAt(5)===":"&&t.slice(0,5)==="xlink"},Bg=function(t){return Bf(t)?t.slice(6,t.length):""},sl=function(t){return t==null||t===!1};function FA(t){for(var e=t.data,r=t,n=t;re(n.componentInstance);)n=n.componentInstance._vnode,n&&n.data&&(e=Hg(n.data,e));for(;re(r=r.parent);)r&&r.data&&(e=Hg(e,r.data));return BA(e.staticClass,e.class)}function Hg(t,e){return{staticClass:Hf(t.staticClass,e.staticClass),class:re(t.class)?[t.class,e.class]:e.class}}function BA(t,e){return re(t)||re(e)?Hf(t,Uf(e)):""}function Hf(t,e){return t?e?t+" "+e:t:e||""}function Uf(t){return Array.isArray(t)?HA(t):lr(t)?UA(t):typeof t=="string"?t:""}function HA(t){for(var e="",r,n=0,a=t.length;n<a;n++)re(r=Uf(t[n]))&&r!==""&&(e&&(e+=" "),e+=r);return e}function UA(t){var e="";for(var r in t)t[r]&&(e&&(e+=" "),e+=r);return e}var jA={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},WA=rn("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),jf=rn("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Ug=function(t){return WA(t)||jf(t)};function GA(t){if(jf(t))return"svg";if(t==="math")return"math"}var ol=Object.create(null);function zA(t){if(!Hr)return!0;if(Ug(t))return!1;if(t=t.toLowerCase(),ol[t]!=null)return ol[t];var e=document.createElement(t);return t.indexOf("-")>-1?ol[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:ol[t]=/HTMLUnknownElement/.test(e.toString())}var Wf=rn("text,number,password,search,email,tel,url");function qA(t){if(typeof t=="string"){var e=document.querySelector(t);return e||document.createElement("div")}else return t}function YA(t,e){var r=document.createElement(t);return t!=="select"||e.data&&e.data.attrs&&e.data.attrs.multiple!==void 0&&r.setAttribute("multiple","multiple"),r}function KA(t,e){return document.createElementNS(jA[t],e)}function XA(t){return document.createTextNode(t)}function VA(t){return document.createComment(t)}function QA(t,e,r){t.insertBefore(e,r)}function JA(t,e){t.removeChild(e)}function ZA(t,e){t.appendChild(e)}function e2(t){return t.parentNode}function t2(t){return t.nextSibling}function r2(t){return t.tagName}function n2(t,e){t.textContent=e}function i2(t,e){t.setAttribute(e,"")}var a2=Object.freeze({__proto__:null,createElement:YA,createElementNS:KA,createTextNode:XA,createComment:VA,insertBefore:QA,removeChild:JA,appendChild:ZA,parentNode:e2,nextSibling:t2,tagName:r2,setTextContent:n2,setStyleScope:i2}),s2={create:function(t,e){Ya(e)},update:function(t,e){t.data.ref!==e.data.ref&&(Ya(t,!0),Ya(e))},destroy:function(t){Ya(t,!0)}};function Ya(t,e){var r=t.data.ref;if(re(r)){var n=t.context,a=t.componentInstance||t.elm,o=e?null:a,c=e?void 0:a;if(pt(r)){Hn(r,n,[o],n,"template ref function");return}var d=t.data.refInFor,p=typeof r=="string"||typeof r=="number",v=Wt(r),b=n.$refs;if(p||v){if(d){var C=p?b[r]:r.value;e?et(C)&&fi(C,a):et(C)?C.includes(a)||C.push(a):p?(b[r]=[a],jg(n,r,b[r])):r.value=[a]}else if(p){if(e&&b[r]!==a)return;b[r]=c,jg(n,r,o)}else if(v){if(e&&r.value!==a)return;r.value=o}}}}function jg(t,e,r){var n=t._setupState;n&&vr(n,e)&&(Wt(n[e])?n[e].value=r:n[e]=r)}var _i=new Ur("",{},[]),fo=["create","activate","update","remove","destroy"];function na(t,e){return t.key===e.key&&t.asyncFactory===e.asyncFactory&&(t.tag===e.tag&&t.isComment===e.isComment&&re(t.data)===re(e.data)&&o2(t,e)||Ot(t.isAsyncPlaceholder)&&Xe(e.asyncFactory.error))}function o2(t,e){if(t.tag!=="input")return!0;var r,n=re(r=t.data)&&re(r=r.attrs)&&r.type,a=re(r=e.data)&&re(r=r.attrs)&&r.type;return n===a||Wf(n)&&Wf(a)}function u2(t,e,r){var n,a,o={};for(n=e;n<=r;++n)a=t[n].key,re(a)&&(o[a]=n);return o}function l2(t){var e,r,n={},a=t.modules,o=t.nodeOps;for(e=0;e<fo.length;++e)for(n[fo[e]]=[],r=0;r<a.length;++r)re(a[r][fo[e]])&&n[fo[e]].push(a[r][fo[e]]);function c(U){return new Ur(o.tagName(U).toLowerCase(),{},[],void 0,U)}function d(U,N){function W(){--W.listeners===0&&p(U)}return W.listeners=N,W}function p(U){var N=o.parentNode(U);re(N)&&o.removeChild(N,U)}function v(U,N,W,E,ee,V,fe){if(re(U.elm)&&re(V)&&(U=V[fe]=lf(U)),U.isRootInsert=!ee,!b(U,N,W,E)){var he=U.data,Ie=U.children,Ge=U.tag;re(Ge)?(U.elm=U.ns?o.createElementNS(U.ns,Ge):o.createElement(Ge,U),O(U),F(U,Ie,N),re(he)&&j(U,N),A(W,U.elm,E)):Ot(U.isComment)?(U.elm=o.createComment(U.text),A(W,U.elm,E)):(U.elm=o.createTextNode(U.text),A(W,U.elm,E))}}function b(U,N,W,E){var ee=U.data;if(re(ee)){var V=re(U.componentInstance)&&ee.keepAlive;if(re(ee=ee.hook)&&re(ee=ee.init)&&ee(U,!1),re(U.componentInstance))return C(U,N),A(W,U.elm,E),Ot(V)&&T(U,N,W,E),!0}}function C(U,N){re(U.data.pendingInsert)&&(N.push.apply(N,U.data.pendingInsert),U.data.pendingInsert=null),U.elm=U.componentInstance.$el,G(U)?(j(U,N),O(U)):(Ya(U),N.push(U))}function T(U,N,W,E){for(var ee,V=U;V.componentInstance;)if(V=V.componentInstance._vnode,re(ee=V.data)&&re(ee=ee.transition)){for(ee=0;ee<n.activate.length;++ee)n.activate[ee](_i,V);N.push(V);break}A(W,U.elm,E)}function A(U,N,W){re(U)&&(re(W)?o.parentNode(W)===U&&o.insertBefore(U,N,W):o.appendChild(U,N))}function F(U,N,W){if(et(N))for(var E=0;E<N.length;++E)v(N[E],W,U.elm,null,!0,N,E);else Vs(U.text)&&o.appendChild(U.elm,o.createTextNode(String(U.text)))}function G(U){for(;U.componentInstance;)U=U.componentInstance._vnode;return re(U.tag)}function j(U,N){for(var W=0;W<n.create.length;++W)n.create[W](_i,U);e=U.data.hook,re(e)&&(re(e.create)&&e.create(_i,U),re(e.insert)&&N.push(U))}function O(U){var N;if(re(N=U.fnScopeId))o.setStyleScope(U.elm,N);else for(var W=U;W;)re(N=W.context)&&re(N=N.$options._scopeId)&&o.setStyleScope(U.elm,N),W=W.parent;re(N=ta)&&N!==U.context&&N!==U.fnContext&&re(N=N.$options._scopeId)&&o.setStyleScope(U.elm,N)}function x(U,N,W,E,ee,V){for(;E<=ee;++E)v(W[E],V,U,N,!1,W,E)}function S(U){var N,W,E=U.data;if(re(E))for(re(N=E.hook)&&re(N=N.destroy)&&N(U),N=0;N<n.destroy.length;++N)n.destroy[N](U);if(re(N=U.children))for(W=0;W<U.children.length;++W)S(U.children[W])}function P(U,N,W){for(;N<=W;++N){var E=U[N];re(E)&&(re(E.tag)?(R(E),S(E)):p(E.elm))}}function R(U,N){if(re(N)||re(U.data)){var W,E=n.remove.length+1;for(re(N)?N.listeners+=E:N=d(U.elm,E),re(W=U.componentInstance)&&re(W=W._vnode)&&re(W.data)&&R(W,N),W=0;W<n.remove.length;++W)n.remove[W](U,N);re(W=U.data.hook)&&re(W=W.remove)?W(U,N):N()}else p(U.elm)}function B(U,N,W,E,ee){for(var V=0,fe=0,he=N.length-1,Ie=N[0],Ge=N[he],He=W.length-1,We=W[0],at=W[He],Ve,Pe,Te,Se,Le=!ee;V<=he&&fe<=He;)Xe(Ie)?Ie=N[++V]:Xe(Ge)?Ge=N[--he]:na(Ie,We)?(le(Ie,We,E,W,fe),Ie=N[++V],We=W[++fe]):na(Ge,at)?(le(Ge,at,E,W,He),Ge=N[--he],at=W[--He]):na(Ie,at)?(le(Ie,at,E,W,He),Le&&o.insertBefore(U,Ie.elm,o.nextSibling(Ge.elm)),Ie=N[++V],at=W[--He]):na(Ge,We)?(le(Ge,We,E,W,fe),Le&&o.insertBefore(U,Ge.elm,Ie.elm),Ge=N[--he],We=W[++fe]):(Xe(Ve)&&(Ve=u2(N,V,he)),Pe=re(We.key)?Ve[We.key]:q(We,N,V,he),Xe(Pe)?v(We,E,U,Ie.elm,!1,W,fe):(Te=N[Pe],na(Te,We)?(le(Te,We,E,W,fe),N[Pe]=void 0,Le&&o.insertBefore(U,Te.elm,Ie.elm)):v(We,E,U,Ie.elm,!1,W,fe)),We=W[++fe]);V>he?(Se=Xe(W[He+1])?null:W[He+1].elm,x(U,Se,W,fe,He,E)):fe>He&&P(N,V,he)}function q(U,N,W,E){for(var ee=W;ee<E;ee++){var V=N[ee];if(re(V)&&na(U,V))return ee}}function le(U,N,W,E,ee,V){if(U!==N){re(N.elm)&&re(E)&&(N=E[ee]=lf(N));var fe=N.elm=U.elm;if(Ot(U.isAsyncPlaceholder)){re(N.asyncFactory.resolved)?ne(U.elm,N,W):N.isAsyncPlaceholder=!0;return}if(Ot(N.isStatic)&&Ot(U.isStatic)&&N.key===U.key&&(Ot(N.isCloned)||Ot(N.isOnce))){N.componentInstance=U.componentInstance;return}var he,Ie=N.data;re(Ie)&&re(he=Ie.hook)&&re(he=he.prepatch)&&he(U,N);var Ge=U.children,He=N.children;if(re(Ie)&&G(N)){for(he=0;he<n.update.length;++he)n.update[he](U,N);re(he=Ie.hook)&&re(he=he.update)&&he(U,N)}Xe(N.text)?re(Ge)&&re(He)?Ge!==He&&B(fe,Ge,He,W,V):re(He)?(re(U.text)&&o.setTextContent(fe,""),x(fe,null,He,0,He.length-1,W)):re(Ge)?P(Ge,0,Ge.length-1):re(U.text)&&o.setTextContent(fe,""):U.text!==N.text&&o.setTextContent(fe,N.text),re(Ie)&&re(he=Ie.hook)&&re(he=he.postpatch)&&he(U,N)}}function ae(U,N,W){if(Ot(W)&&re(U.parent))U.parent.data.pendingInsert=N;else for(var E=0;E<N.length;++E)N[E].data.hook.insert(N[E])}var Z=rn("attrs,class,staticClass,staticStyle,key");function ne(U,N,W,E){var ee,V=N.tag,fe=N.data,he=N.children;if(E=E||fe&&fe.pre,N.elm=U,Ot(N.isComment)&&re(N.asyncFactory))return N.isAsyncPlaceholder=!0,!0;if(re(fe)&&(re(ee=fe.hook)&&re(ee=ee.init)&&ee(N,!0),re(ee=N.componentInstance)))return C(N,W),!0;if(re(V)){if(re(he))if(!U.hasChildNodes())F(N,he,W);else if(re(ee=fe)&&re(ee=ee.domProps)&&re(ee=ee.innerHTML)){if(ee!==U.innerHTML)return!1}else{for(var Ie=!0,Ge=U.firstChild,He=0;He<he.length;He++){if(!Ge||!ne(Ge,he[He],W,E)){Ie=!1;break}Ge=Ge.nextSibling}if(!Ie||Ge)return!1}if(re(fe)){var We=!1;for(var at in fe)if(!Z(at)){We=!0,j(N,W);break}!We&&fe.class&&za(fe.class)}}else U.data!==N.text&&(U.data=N.text);return!0}return function(N,W,E,ee){if(Xe(W)){re(N)&&S(N);return}var V=!1,fe=[];if(Xe(N))V=!0,v(W,fe);else{var he=re(N.nodeType);if(!he&&na(N,W))le(N,W,fe,null,null,ee);else{if(he){if(N.nodeType===1&&N.hasAttribute(Iv)&&(N.removeAttribute(Iv),E=!0),Ot(E)&&ne(N,W,fe))return ae(W,fe,!0),N;N=c(N)}var Ie=N.elm,Ge=o.parentNode(Ie);if(v(W,fe,Ie._leaveCb?null:Ge,o.nextSibling(Ie)),re(W.parent))for(var He=W.parent,We=G(W);He;){for(var at=0;at<n.destroy.length;++at)n.destroy[at](He);if(He.elm=W.elm,We){for(var Ve=0;Ve<n.create.length;++Ve)n.create[Ve](_i,He);var Pe=He.data.hook.insert;if(Pe.merged)for(var Te=Pe.fns.slice(1),Se=0;Se<Te.length;Se++)Te[Se]()}else Ya(He);He=He.parent}re(Ge)?P([N],0,0):re(N.tag)&&S(N)}}return ae(W,fe,V),W.elm}}var c2={create:Gf,update:Gf,destroy:function(e){Gf(e,_i)}};function Gf(t,e){(t.data.directives||e.data.directives)&&f2(t,e)}function f2(t,e){var r=t===_i,n=e===_i,a=Wg(t.data.directives,t.context),o=Wg(e.data.directives,e.context),c=[],d=[],p,v,b;for(p in o)v=a[p],b=o[p],v?(b.oldValue=v.value,b.oldArg=v.arg,ho(b,"update",e,t),b.def&&b.def.componentUpdated&&d.push(b)):(ho(b,"bind",e,t),b.def&&b.def.inserted&&c.push(b));if(c.length){var C=function(){for(var T=0;T<c.length;T++)ho(c[T],"inserted",e,t)};r?vi(e,"insert",C):C()}if(d.length&&vi(e,"postpatch",function(){for(var T=0;T<d.length;T++)ho(d[T],"componentUpdated",e,t)}),!r)for(p in a)o[p]||ho(a[p],"unbind",t,t,n)}var d2=Object.create(null);function Wg(t,e){var r=Object.create(null);if(!t)return r;var n,a;for(n=0;n<t.length;n++){if(a=t[n],a.modifiers||(a.modifiers=d2),r[h2(a)]=a,e._setupState&&e._setupState.__sfc){var o=a.def||il(e,"_setupState","v-"+a.name);typeof o=="function"?a.def={bind:o,update:o}:a.def=o}a.def=a.def||il(e.$options,"directives",a.name)}return r}function h2(t){return t.rawName||"".concat(t.name,".").concat(Object.keys(t.modifiers||{}).join("."))}function ho(t,e,r,n,a){var o=t.def&&t.def[e];if(o)try{o(r.elm,t,r,n,a)}catch(c){ea(c,r.context,"directive ".concat(t.name," ").concat(e," hook"))}}var p2=[s2,c2];function Gg(t,e){var r=e.componentOptions;if(!(re(r)&&r.Ctor.options.inheritAttrs===!1)&&!(Xe(t.data.attrs)&&Xe(e.data.attrs))){var n,a,o,c=e.elm,d=t.data.attrs||{},p=e.data.attrs||{};(re(p.__ob__)||Ot(p._v_attr_proxy))&&(p=e.data.attrs=bt({},p));for(n in p)a=p[n],o=d[n],o!==a&&zg(c,n,a,e.data.pre);($a||Dv)&&p.value!==d.value&&zg(c,"value",p.value);for(n in d)Xe(p[n])&&(Bf(n)?c.removeAttributeNS(Ff,Bg(n)):Fg(n)||c.removeAttribute(n))}}function zg(t,e,r,n){n||t.tagName.indexOf("-")>-1?qg(t,e,r):$A(e)?sl(r)?t.removeAttribute(e):(r=e==="allowfullscreen"&&t.tagName==="EMBED"?"true":e,t.setAttribute(e,r)):Fg(e)?t.setAttribute(e,MA(e,r)):Bf(e)?sl(r)?t.removeAttributeNS(Ff,Bg(e)):t.setAttributeNS(Ff,e,r):qg(t,e,r)}function qg(t,e,r){if(sl(r))t.removeAttribute(e);else{if($a&&!Fa&&t.tagName==="TEXTAREA"&&e==="placeholder"&&r!==""&&!t.__ieph){var n=function(a){a.stopImmediatePropagation(),t.removeEventListener("input",n)};t.addEventListener("input",n),t.__ieph=!0}t.setAttribute(e,r)}}var m2={create:Gg,update:Gg};function Yg(t,e){var r=e.elm,n=e.data,a=t.data;if(!(Xe(n.staticClass)&&Xe(n.class)&&(Xe(a)||Xe(a.staticClass)&&Xe(a.class)))){var o=FA(e),c=r._transitionClasses;re(c)&&(o=Hf(o,Uf(c))),o!==r._prevClass&&(r.setAttribute("class",o),r._prevClass=o)}}var v2={create:Yg,update:Yg},zf="__r",qf="__c";function g2(t){if(re(t[zf])){var e=$a?"change":"input";t[e]=[].concat(t[zf],t[e]||[]),delete t[zf]}re(t[qf])&&(t.change=[].concat(t[qf],t.change||[]),delete t[qf])}var po;function _2(t,e,r){var n=po;return function a(){var o=e.apply(null,arguments);o!==null&&Kg(t,a,r,n)}}var b2=yf&&!(Mv&&Number(Mv[1])<=53);function y2(t,e,r,n){if(b2){var a=Eg,o=e;e=o._wrapper=function(c){if(c.target===c.currentTarget||c.timeStamp>=a||c.timeStamp<=0||c.target.ownerDocument!==document)return o.apply(this,arguments)}}po.addEventListener(t,e,$v?{capture:r,passive:n}:r)}function Kg(t,e,r,n){(n||po).removeEventListener(t,e._wrapper||e,r)}function Yf(t,e){if(!(Xe(t.data.on)&&Xe(e.data.on))){var r=e.data.on||{},n=t.data.on||{};po=e.elm||t.elm,g2(r),rg(r,n,y2,Kg,_2,e.context),po=void 0}}var k2={create:Yf,update:Yf,destroy:function(t){return Yf(t,_i)}},ul;function Xg(t,e){if(!(Xe(t.data.domProps)&&Xe(e.data.domProps))){var r,n,a=e.elm,o=t.data.domProps||{},c=e.data.domProps||{};(re(c.__ob__)||Ot(c._v_attr_proxy))&&(c=e.data.domProps=bt({},c));for(r in o)r in c||(a[r]="");for(r in c){if(n=c[r],r==="textContent"||r==="innerHTML"){if(e.children&&(e.children.length=0),n===o[r])continue;a.childNodes.length===1&&a.removeChild(a.childNodes[0])}if(r==="value"&&a.tagName!=="PROGRESS"){a._value=n;var d=Xe(n)?"":String(n);E2(a,d)&&(a.value=d)}else if(r==="innerHTML"&&jf(a.tagName)&&Xe(a.innerHTML)){ul=ul||document.createElement("div"),ul.innerHTML="<svg>".concat(n,"</svg>");for(var p=ul.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;p.firstChild;)a.appendChild(p.firstChild)}else if(n!==o[r])try{a[r]=n}catch{}}}}function E2(t,e){return!t.composing&&(t.tagName==="OPTION"||T2(t,e)||C2(t,e))}function T2(t,e){var r=!0;try{r=document.activeElement!==t}catch{}return r&&t.value!==e}function C2(t,e){var r=t.value,n=t._vModifiers;if(re(n)){if(n.number)return Qs(r)!==Qs(e);if(n.trim)return r.trim()!==e.trim()}return r!==e}var w2={create:Xg,update:Xg},S2=Xi(function(t){var e={},r=/;(?![^(]*\))/g,n=/:(.+)/;return t.split(r).forEach(function(a){if(a){var o=a.split(n);o.length>1&&(e[o[0].trim()]=o[1].trim())}}),e});function Kf(t){var e=Vg(t.style);return t.staticStyle?bt(t.staticStyle,e):e}function Vg(t){return Array.isArray(t)?Ov(t):typeof t=="string"?S2(t):t}function x2(t,e){for(var r={},n,a=t;a.componentInstance;)a=a.componentInstance._vnode,a&&a.data&&(n=Kf(a.data))&&bt(r,n);(n=Kf(t.data))&&bt(r,n);for(var o=t;o=o.parent;)o.data&&(n=Kf(o.data))&&bt(r,n);return r}var A2=/^--/,Qg=/\s*!important$/,Jg=function(t,e,r){if(A2.test(e))t.style.setProperty(e,r);else if(Qg.test(r))t.style.setProperty(Js(e),r.replace(Qg,""),"important");else{var n=O2(e);if(Array.isArray(r))for(var a=0,o=r.length;a<o;a++)t.style[n]=r[a];else t.style[n]=r}},Zg=["Webkit","Moz","ms"],ll,O2=Xi(function(t){if(ll=ll||document.createElement("div").style,t=Vi(t),t!=="filter"&&t in ll)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),r=0;r<Zg.length;r++){var n=Zg[r]+e;if(n in ll)return n}});function e0(t,e){var r=e.data,n=t.data;if(!(Xe(r.staticStyle)&&Xe(r.style)&&Xe(n.staticStyle)&&Xe(n.style))){var a,o,c=e.elm,d=n.staticStyle,p=n.normalizedStyle||n.style||{},v=d||p,b=Vg(e.data.style)||{};e.data.normalizedStyle=re(b.__ob__)?bt({},b):b;var C=x2(e);for(o in v)Xe(C[o])&&Jg(c,o,"");for(o in C)a=C[o],a!==v[o]&&Jg(c,o,a??"")}}var N2={create:e0,update:e0},t0=/\s+/;function r0(t,e){if(!(!e||!(e=e.trim())))if(t.classList)e.indexOf(" ")>-1?e.split(t0).forEach(function(n){return t.classList.add(n)}):t.classList.add(e);else{var r=" ".concat(t.getAttribute("class")||""," ");r.indexOf(" "+e+" ")<0&&t.setAttribute("class",(r+e).trim())}}function n0(t,e){if(!(!e||!(e=e.trim())))if(t.classList)e.indexOf(" ")>-1?e.split(t0).forEach(function(a){return t.classList.remove(a)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var r=" ".concat(t.getAttribute("class")||""," "),n=" "+e+" ";r.indexOf(n)>=0;)r=r.replace(n," ");r=r.trim(),r?t.setAttribute("class",r):t.removeAttribute("class")}}function i0(t){if(t){if(typeof t=="object"){var e={};return t.css!==!1&&bt(e,a0(t.name||"v")),bt(e,t),e}else if(typeof t=="string")return a0(t)}}var a0=Xi(function(t){return{enterClass:"".concat(t,"-enter"),enterToClass:"".concat(t,"-enter-to"),enterActiveClass:"".concat(t,"-enter-active"),leaveClass:"".concat(t,"-leave"),leaveToClass:"".concat(t,"-leave-to"),leaveActiveClass:"".concat(t,"-leave-active")}}),s0=Hr&&!Fa,Ka="transition",Xf="animation",cl="transition",fl="transitionend",Vf="animation",o0="animationend";s0&&(window.ontransitionend===void 0&&window.onwebkittransitionend!==void 0&&(cl="WebkitTransition",fl="webkitTransitionEnd"),window.onanimationend===void 0&&window.onwebkitanimationend!==void 0&&(Vf="WebkitAnimation",o0="webkitAnimationEnd"));var u0=Hr?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function l0(t){u0(function(){u0(t)})}function ia(t,e){var r=t._transitionClasses||(t._transitionClasses=[]);r.indexOf(e)<0&&(r.push(e),r0(t,e))}function jn(t,e){t._transitionClasses&&fi(t._transitionClasses,e),n0(t,e)}function c0(t,e,r){var n=f0(t,e),a=n.type,o=n.timeout,c=n.propCount;if(!a)return r();var d=a===Ka?fl:o0,p=0,v=function(){t.removeEventListener(d,b),r()},b=function(C){C.target===t&&++p>=c&&v()};setTimeout(function(){p<c&&v()},o+1),t.addEventListener(d,b)}var P2=/\b(transform|all)(,|$)/;function f0(t,e){var r=window.getComputedStyle(t),n=(r[cl+"Delay"]||"").split(", "),a=(r[cl+"Duration"]||"").split(", "),o=d0(n,a),c=(r[Vf+"Delay"]||"").split(", "),d=(r[Vf+"Duration"]||"").split(", "),p=d0(c,d),v,b=0,C=0;e===Ka?o>0&&(v=Ka,b=o,C=a.length):e===Xf?p>0&&(v=Xf,b=p,C=d.length):(b=Math.max(o,p),v=b>0?o>p?Ka:Xf:null,C=v?v===Ka?a.length:d.length:0);var T=v===Ka&&P2.test(r[cl+"Property"]);return{type:v,timeout:b,propCount:C,hasTransform:T}}function d0(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max.apply(null,e.map(function(r,n){return h0(r)+h0(t[n])}))}function h0(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function Qf(t,e){var r=t.elm;re(r._leaveCb)&&(r._leaveCb.cancelled=!0,r._leaveCb());var n=i0(t.data.transition);if(!Xe(n)&&!(re(r._enterCb)||r.nodeType!==1)){for(var a=n.css,o=n.type,c=n.enterClass,d=n.enterToClass,p=n.enterActiveClass,v=n.appearClass,b=n.appearToClass,C=n.appearActiveClass,T=n.beforeEnter,A=n.enter,F=n.afterEnter,G=n.enterCancelled,j=n.beforeAppear,O=n.appear,x=n.afterAppear,S=n.appearCancelled,P=n.duration,R=ta,B=ta.$vnode;B&&B.parent;)R=B.context,B=B.parent;var q=!R._isMounted||!t.isRootInsert;if(!(q&&!O&&O!=="")){var le=q&&v?v:c,ae=q&&C?C:p,Z=q&&b?b:d,ne=q&&j||T,U=q&&pt(O)?O:A,N=q&&x||F,W=q&&S||G,E=Qs(lr(P)?P.enter:P),ee=a!==!1&&!Fa,V=Jf(U),fe=r._enterCb=Hu(function(){ee&&(jn(r,Z),jn(r,ae)),fe.cancelled?(ee&&jn(r,le),W&&W(r)):N&&N(r),r._enterCb=null});t.data.show||vi(t,"insert",function(){var he=r.parentNode,Ie=he&&he._pending&&he._pending[t.key];Ie&&Ie.tag===t.tag&&Ie.elm._leaveCb&&Ie.elm._leaveCb(),U&&U(r,fe)}),ne&&ne(r),ee&&(ia(r,le),ia(r,ae),l0(function(){jn(r,le),fe.cancelled||(ia(r,Z),V||(m0(E)?setTimeout(fe,E):c0(r,o,fe)))})),t.data.show&&(e&&e(),U&&U(r,fe)),!ee&&!V&&fe()}}}function p0(t,e){var r=t.elm;re(r._enterCb)&&(r._enterCb.cancelled=!0,r._enterCb());var n=i0(t.data.transition);if(Xe(n)||r.nodeType!==1)return e();if(re(r._leaveCb))return;var a=n.css,o=n.type,c=n.leaveClass,d=n.leaveToClass,p=n.leaveActiveClass,v=n.beforeLeave,b=n.leave,C=n.afterLeave,T=n.leaveCancelled,A=n.delayLeave,F=n.duration,G=a!==!1&&!Fa,j=Jf(b),O=Qs(lr(F)?F.leave:F),x=r._leaveCb=Hu(function(){r.parentNode&&r.parentNode._pending&&(r.parentNode._pending[t.key]=null),G&&(jn(r,d),jn(r,p)),x.cancelled?(G&&jn(r,c),T&&T(r)):(e(),C&&C(r)),r._leaveCb=null});A?A(S):S();function S(){x.cancelled||(!t.data.show&&r.parentNode&&((r.parentNode._pending||(r.parentNode._pending={}))[t.key]=t),v&&v(r),G&&(ia(r,c),ia(r,p),l0(function(){jn(r,c),x.cancelled||(ia(r,d),j||(m0(O)?setTimeout(x,O):c0(r,o,x)))})),b&&b(r,x),!G&&!j&&x())}}function m0(t){return typeof t=="number"&&!isNaN(t)}function Jf(t){if(Xe(t))return!1;var e=t.fns;return re(e)?Jf(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function v0(t,e){e.data.show!==!0&&Qf(e)}var I2=Hr?{create:v0,activate:v0,remove:function(t,e){t.data.show!==!0?p0(t,e):e()}}:{},L2=[m2,v2,k2,w2,N2,I2],R2=L2.concat(p2),D2=l2({nodeOps:a2,modules:R2});Fa&&document.addEventListener("selectionchange",function(){var t=document.activeElement;t&&t.vmodel&&Zf(t,"input")});var g0={inserted:function(t,e,r,n){r.tag==="select"?(n.elm&&!n.elm._vOptions?vi(r,"postpatch",function(){g0.componentUpdated(t,e,r)}):_0(t,e,r.context),t._vOptions=[].map.call(t.options,dl)):(r.tag==="textarea"||Wf(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",M2),t.addEventListener("compositionend",k0),t.addEventListener("change",k0),Fa&&(t.vmodel=!0)))},componentUpdated:function(t,e,r){if(r.tag==="select"){_0(t,e,r.context);var n=t._vOptions,a=t._vOptions=[].map.call(t.options,dl);if(a.some(function(c,d){return!Qi(c,n[d])})){var o=t.multiple?e.value.some(function(c){return y0(c,a)}):e.value!==e.oldValue&&y0(e.value,a);o&&Zf(t,"change")}}}};function _0(t,e,r){b0(t,e),($a||Dv)&&setTimeout(function(){b0(t,e)},0)}function b0(t,e,r){var n=e.value,a=t.multiple;if(!(a&&!Array.isArray(n))){for(var o,c,d=0,p=t.options.length;d<p;d++)if(c=t.options[d],a)o=Pv(n,dl(c))>-1,c.selected!==o&&(c.selected=o);else if(Qi(dl(c),n)){t.selectedIndex!==d&&(t.selectedIndex=d);return}a||(t.selectedIndex=-1)}}function y0(t,e){return e.every(function(r){return!Qi(r,t)})}function dl(t){return"_value"in t?t._value:t.value}function M2(t){t.target.composing=!0}function k0(t){t.target.composing&&(t.target.composing=!1,Zf(t.target,"input"))}function Zf(t,e){var r=document.createEvent("HTMLEvents");r.initEvent(e,!0,!0),t.dispatchEvent(r)}function ed(t){return t.componentInstance&&(!t.data||!t.data.transition)?ed(t.componentInstance._vnode):t}var $2={bind:function(t,e,r){var n=e.value;r=ed(r);var a=r.data&&r.data.transition,o=t.__vOriginalDisplay=t.style.display==="none"?"":t.style.display;n&&a?(r.data.show=!0,Qf(r,function(){t.style.display=o})):t.style.display=n?o:"none"},update:function(t,e,r){var n=e.value,a=e.oldValue;if(!n!=!a){r=ed(r);var o=r.data&&r.data.transition;o?(r.data.show=!0,n?Qf(r,function(){t.style.display=t.__vOriginalDisplay}):p0(r,function(){t.style.display="none"})):t.style.display=n?t.__vOriginalDisplay:"none"}},unbind:function(t,e,r,n,a){a||(t.style.display=t.__vOriginalDisplay)}},F2={model:g0,show:$2},E0={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function td(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?td(fg(e.children)):t}function T0(t){var e={},r=t.$options;for(var n in r.propsData)e[n]=t[n];var a=r._parentListeners;for(var n in a)e[Vi(n)]=a[n];return e}function C0(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function B2(t){for(;t=t.parent;)if(t.data.transition)return!0}function H2(t,e){return e.key===t.key&&e.tag===t.tag}var U2=function(t){return t.tag||ao(t)},j2=function(t){return t.name==="show"},W2={name:"transition",props:E0,abstract:!0,render:function(t){var e=this,r=this.$slots.default;if(r&&(r=r.filter(U2),!!r.length)){var n=this.mode,a=r[0];if(B2(this.$vnode))return a;var o=td(a);if(!o)return a;if(this._leaving)return C0(t,a);var c="__transition-".concat(this._uid,"-");o.key=o.key==null?o.isComment?c+"comment":c+o.tag:Vs(o.key)?String(o.key).indexOf(c)===0?o.key:c+o.key:o.key;var d=(o.data||(o.data={})).transition=T0(this),p=this._vnode,v=td(p);if(o.data.directives&&o.data.directives.some(j2)&&(o.data.show=!0),v&&v.data&&!H2(o,v)&&!ao(v)&&!(v.componentInstance&&v.componentInstance._vnode.isComment)){var b=v.data.transition=bt({},d);if(n==="out-in")return this._leaving=!0,vi(b,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()}),C0(t,a);if(n==="in-out"){if(ao(o))return p;var C,T=function(){C()};vi(d,"afterEnter",T),vi(d,"enterCancelled",T),vi(b,"delayLeave",function(A){C=A})}}return a}}},w0=bt({tag:String,moveClass:String},E0);delete w0.mode;var G2={props:w0,beforeMount:function(){var t=this,e=this._update;this._update=function(r,n){var a=bg(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,a(),e.call(t,r,n)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",r=Object.create(null),n=this.prevChildren=this.children,a=this.$slots.default||[],o=this.children=[],c=T0(this),d=0;d<a.length;d++){var p=a[d];p.tag&&p.key!=null&&String(p.key).indexOf("__vlist")!==0&&(o.push(p),r[p.key]=p,(p.data||(p.data={})).transition=c)}if(n){for(var v=[],b=[],d=0;d<n.length;d++){var p=n[d];p.data.transition=c,p.data.pos=p.elm.getBoundingClientRect(),r[p.key]?v.push(p):b.push(p)}this.kept=t(e,null,v),this.removed=b}return t(e,null,o)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";!t.length||!this.hasMove(t[0].elm,e)||(t.forEach(z2),t.forEach(q2),t.forEach(Y2),this._reflow=document.body.offsetHeight,t.forEach(function(r){if(r.data.moved){var n=r.elm,a=n.style;ia(n,e),a.transform=a.WebkitTransform=a.transitionDuration="",n.addEventListener(fl,n._moveCb=function o(c){c&&c.target!==n||(!c||/transform$/.test(c.propertyName))&&(n.removeEventListener(fl,o),n._moveCb=null,jn(n,e))})}}))},methods:{hasMove:function(t,e){if(!s0)return!1;if(this._hasMove)return this._hasMove;var r=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach(function(a){n0(r,a)}),r0(r,e),r.style.display="none",this.$el.appendChild(r);var n=f0(r);return this.$el.removeChild(r),this._hasMove=n.hasTransform}}};function z2(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function q2(t){t.data.newPos=t.elm.getBoundingClientRect()}function Y2(t){var e=t.data.pos,r=t.data.newPos,n=e.left-r.left,a=e.top-r.top;if(n||a){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate(".concat(n,"px,").concat(a,"px)"),o.transitionDuration="0s"}}var K2={Transition:W2,TransitionGroup:G2};oe.config.mustUseProp=RA,oe.config.isReservedTag=Ug,oe.config.isReservedAttr=IA,oe.config.getTagNamespace=GA,oe.config.isUnknownElement=zA,bt(oe.options.directives,F2),bt(oe.options.components,K2),oe.prototype.__patch__=Hr?D2:Ct,oe.prototype.$mount=function(t,e){return t=t&&Hr?qA(t):void 0,Hx(this,t,e)},Hr&&setTimeout(function(){qr.devtools&&Wu&&Wu.emit("init",oe)},0),oe.util.warn;function X2(){return!!to()}function V2(){return S0().__VUE_DEVTOOLS_GLOBAL_HOOK__}function S0(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Q2=typeof Proxy=="function",J2="devtools-plugin:setup",Z2="plugin:settings:set";let Xa,rd;function eO(){var t;return Xa!==void 0||(typeof window<"u"&&window.performance?(Xa=!0,rd=window.performance):typeof globalThis<"u"&&(!((t=globalThis.perf_hooks)===null||t===void 0)&&t.performance)?(Xa=!0,rd=globalThis.perf_hooks.performance):Xa=!1),Xa}function tO(){return eO()?rd.now():Date.now()}class rO{constructor(e,r){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=r;const n={};if(e.settings)for(const c in e.settings){const d=e.settings[c];n[c]=d.defaultValue}const a=`__vue-devtools-plugin-settings__${e.id}`;let o=Object.assign({},n);try{const c=localStorage.getItem(a),d=JSON.parse(c);Object.assign(o,d)}catch{}this.fallbacks={getSettings(){return o},setSettings(c){try{localStorage.setItem(a,JSON.stringify(c))}catch{}o=c},now(){return tO()}},r&&r.on(Z2,(c,d)=>{c===this.plugin.id&&this.fallbacks.setSettings(d)}),this.proxiedOn=new Proxy({},{get:(c,d)=>this.target?this.target.on[d]:(...p)=>{this.onQueue.push({method:d,args:p})}}),this.proxiedTarget=new Proxy({},{get:(c,d)=>this.target?this.target[d]:d==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(d)?(...p)=>(this.targetQueue.push({method:d,args:p,resolve:()=>{}}),this.fallbacks[d](...p)):(...p)=>new Promise(v=>{this.targetQueue.push({method:d,args:p,resolve:v})})})}async setRealTarget(e){this.target=e;for(const r of this.onQueue)this.target.on[r.method](...r.args);for(const r of this.targetQueue)r.resolve(await this.target[r.method](...r.args))}}function x0(t,e){const r=t,n=S0(),a=V2(),o=Q2&&r.enableEarlyProxy;if(a&&(n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!o))a.emit(J2,t,e);else{const c=o?new rO(r,a):null;(n.__VUE_DEVTOOLS_PLUGINS__=n.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:r,setupFn:e,proxy:c}),c&&e(c.proxiedTarget)}}let A0;const mo=t=>A0=t,O0=Symbol();function nd(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var wn;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(wn||(wn={}));const aa=typeof window<"u",N0=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null};function nO(t,{autoBom:e=!1}={}){return e&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\uFEFF",t],{type:t.type}):t}function id(t,e,r){const n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){L0(n.response,e,r)},n.onerror=function(){console.error("could not download file")},n.send()}function P0(t){const e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function hl(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{const r=document.createEvent("MouseEvents");r.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(r)}}const pl=typeof navigator=="object"?navigator:{userAgent:""},I0=/Macintosh/.test(pl.userAgent)&&/AppleWebKit/.test(pl.userAgent)&&!/Safari/.test(pl.userAgent),L0=aa?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!I0?iO:"msSaveOrOpenBlob"in pl?aO:sO:()=>{};function iO(t,e="download",r){const n=document.createElement("a");n.download=e,n.rel="noopener",typeof t=="string"?(n.href=t,n.origin!==location.origin?P0(n.href)?id(t,e,r):(n.target="_blank",hl(n)):hl(n)):(n.href=URL.createObjectURL(t),setTimeout(function(){URL.revokeObjectURL(n.href)},4e4),setTimeout(function(){hl(n)},0))}function aO(t,e="download",r){if(typeof t=="string")if(P0(t))id(t,e,r);else{const n=document.createElement("a");n.href=t,n.target="_blank",setTimeout(function(){hl(n)})}else navigator.msSaveOrOpenBlob(nO(t,r),e)}function sO(t,e,r,n){if(n=n||open("","_blank"),n&&(n.document.title=n.document.body.innerText="downloading..."),typeof t=="string")return id(t,e,r);const a=t.type==="application/octet-stream",o=/constructor/i.test(String(N0.HTMLElement))||"safari"in N0,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||a&&o||I0)&&typeof FileReader<"u"){const d=new FileReader;d.onloadend=function(){let p=d.result;if(typeof p!="string")throw n=null,new Error("Wrong reader.result type");p=c?p:p.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=p:location.assign(p),n=null},d.readAsDataURL(t)}else{const d=URL.createObjectURL(t);n?n.location.assign(d):location.href=d,n=null,setTimeout(function(){URL.revokeObjectURL(d)},4e4)}}function Zt(t,e){const r="\u{1F34D} "+t;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(r,e):e==="error"?console.error(r):e==="warn"?console.warn(r):console.log(r)}function ad(t){return"_a"in t&&"install"in t}function R0(){if(!("clipboard"in navigator))return Zt("Your browser doesn't support the Clipboard API","error"),!0}function D0(t){return t instanceof Error&&t.message.toLowerCase().includes("document is not focused")?(Zt('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function oO(t){if(!R0())try{await navigator.clipboard.writeText(JSON.stringify(t.state.value)),Zt("Global state copied to clipboard.")}catch(e){if(D0(e))return;Zt("Failed to serialize the state. Check the console for more details.","error"),console.error(e)}}async function uO(t){if(!R0())try{M0(t,JSON.parse(await navigator.clipboard.readText())),Zt("Global state pasted from clipboard.")}catch(e){if(D0(e))return;Zt("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(e)}}async function lO(t){try{L0(new Blob([JSON.stringify(t.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(e){Zt("Failed to export the state as JSON. Check the console for more details.","error"),console.error(e)}}let Wn;function cO(){Wn||(Wn=document.createElement("input"),Wn.type="file",Wn.accept=".json");function t(){return new Promise((e,r)=>{Wn.onchange=async()=>{const n=Wn.files;if(!n)return e(null);const a=n.item(0);return e(a?{text:await a.text(),file:a}:null)},Wn.oncancel=()=>e(null),Wn.onerror=r,Wn.click()})}return t}async function fO(t){try{const r=await cO()();if(!r)return;const{text:n,file:a}=r;M0(t,JSON.parse(n)),Zt(`Global state imported from "${a.name}".`)}catch(e){Zt("Failed to import the state from JSON. Check the console for more details.","error"),console.error(e)}}function M0(t,e){for(const r in e){const n=t.state.value[r];n?Object.assign(n,e[r]):t.state.value[r]=e[r]}}function an(t){return{_custom:{display:t}}}const $0="\u{1F34D} Pinia (root)",ml="_root";function dO(t){return ad(t)?{id:ml,label:$0}:{id:t.$id,label:t.$id}}function hO(t){if(ad(t)){const r=Array.from(t._s.keys()),n=t._s;return{state:r.map(o=>({editable:!0,key:o,value:t.state.value[o]})),getters:r.filter(o=>n.get(o)._getters).map(o=>{const c=n.get(o);return{editable:!1,key:o,value:c._getters.reduce((d,p)=>(d[p]=c[p],d),{})}})}}const e={state:Object.keys(t.$state).map(r=>({editable:!0,key:r,value:t.$state[r]}))};return t._getters&&t._getters.length&&(e.getters=t._getters.map(r=>({editable:!1,key:r,value:t[r]}))),t._customProperties.size&&(e.customProperties=Array.from(t._customProperties).map(r=>({editable:!0,key:r,value:t[r]}))),e}function pO(t){return t?Array.isArray(t)?t.reduce((e,r)=>(e.keys.push(r.key),e.operations.push(r.type),e.oldValue[r.key]=r.oldValue,e.newValue[r.key]=r.newValue,e),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:an(t.type),key:an(t.key),oldValue:t.oldValue,newValue:t.newValue}:{}}function mO(t){switch(t){case wn.direct:return"mutation";case wn.patchFunction:return"$patch";case wn.patchObject:return"$patch";default:return"unknown"}}let Va=!0;const vl=[],sa="pinia:mutations",fr="pinia",{assign:vO}=Object,gl=t=>"\u{1F34D} "+t;function gO(t,e){x0({id:"dev.esm.pinia",label:"Pinia \u{1F34D}",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:vl,app:t},r=>{typeof r.now!="function"&&Zt("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),r.addTimelineLayer({id:sa,label:"Pinia \u{1F34D}",color:15064968}),r.addInspector({id:fr,label:"Pinia \u{1F34D}",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{oO(e)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await uO(e),r.sendInspectorTree(fr),r.sendInspectorState(fr)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{lO(e)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await fO(e),r.sendInspectorTree(fr),r.sendInspectorState(fr)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:n=>{const a=e._s.get(n);a?typeof a.$reset!="function"?Zt(`Cannot reset "${n}" store because it doesn't have a "$reset" method implemented.`,"warn"):(a.$reset(),Zt(`Store "${n}" reset.`)):Zt(`Cannot reset "${n}" store because it wasn't found.`,"warn")}}]}),r.on.inspectComponent((n,a)=>{const o=n.componentInstance&&n.componentInstance.proxy;if(o&&o._pStores){const c=n.componentInstance.proxy._pStores;Object.values(c).forEach(d=>{n.instanceData.state.push({type:gl(d.$id),key:"state",editable:!0,value:d._isOptionsAPI?{_custom:{value:ro(d.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>d.$reset()}]}}:Object.keys(d.$state).reduce((p,v)=>(p[v]=d.$state[v],p),{})}),d._getters&&d._getters.length&&n.instanceData.state.push({type:gl(d.$id),key:"getters",editable:!1,value:d._getters.reduce((p,v)=>{try{p[v]=d[v]}catch(b){p[v]=b}return p},{})})})}}),r.on.getInspectorTree(n=>{if(n.app===t&&n.inspectorId===fr){let a=[e];a=a.concat(Array.from(e._s.values())),n.rootNodes=(n.filter?a.filter(o=>"$id"in o?o.$id.toLowerCase().includes(n.filter.toLowerCase()):$0.toLowerCase().includes(n.filter.toLowerCase())):a).map(dO)}}),globalThis.$pinia=e,r.on.getInspectorState(n=>{if(n.app===t&&n.inspectorId===fr){const a=n.nodeId===ml?e:e._s.get(n.nodeId);if(!a)return;a&&(n.nodeId!==ml&&(globalThis.$store=ro(a)),n.state=hO(a))}}),r.on.editInspectorState((n,a)=>{if(n.app===t&&n.inspectorId===fr){const o=n.nodeId===ml?e:e._s.get(n.nodeId);if(!o)return Zt(`store "${n.nodeId}" not found`,"error");const{path:c}=n;ad(o)?c.unshift("state"):(c.length!==1||!o._customProperties.has(c[0])||c[0]in o.$state)&&c.unshift("$state"),Va=!1,n.set(o,c,n.state.value),Va=!0}}),r.on.editComponentState(n=>{if(n.type.startsWith("\u{1F34D}")){const a=n.type.replace(/^🍍\s*/,""),o=e._s.get(a);if(!o)return Zt(`store "${a}" not found`,"error");const{path:c}=n;if(c[0]!=="state")return Zt(`Invalid path for store "${a}": ${c} Only state can be modified.`);c[0]="$state",Va=!1,n.set(o,c,n.state.value),Va=!0}})})}function _O(t,e){vl.includes(gl(e.$id))||vl.push(gl(e.$id)),x0({id:"dev.esm.pinia",label:"Pinia \u{1F34D}",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:vl,app:t,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},r=>{const n=typeof r.now=="function"?r.now.bind(r):Date.now;e.$onAction(({after:c,onError:d,name:p,args:v})=>{const b=F0++;r.addTimelineEvent({layerId:sa,event:{time:n(),title:"\u{1F6EB} "+p,subtitle:"start",data:{store:an(e.$id),action:an(p),args:v},groupId:b}}),c(C=>{bi=void 0,r.addTimelineEvent({layerId:sa,event:{time:n(),title:"\u{1F6EC} "+p,subtitle:"end",data:{store:an(e.$id),action:an(p),args:v,result:C},groupId:b}})}),d(C=>{bi=void 0,r.addTimelineEvent({layerId:sa,event:{time:n(),logType:"error",title:"\u{1F4A5} "+p,subtitle:"end",data:{store:an(e.$id),action:an(p),args:v,error:C},groupId:b}})})},!0),e._customProperties.forEach(c=>{gt(()=>VS(e[c]),(d,p)=>{r.notifyComponentUpdate(),r.sendInspectorState(fr),Va&&r.addTimelineEvent({layerId:sa,event:{time:n(),title:"Change",subtitle:c,data:{newValue:d,oldValue:p},groupId:bi}})},{deep:!0})}),e.$subscribe(({events:c,type:d},p)=>{if(r.notifyComponentUpdate(),r.sendInspectorState(fr),!Va)return;const v={time:n(),title:mO(d),data:vO({store:an(e.$id)},pO(c)),groupId:bi};d===wn.patchFunction?v.subtitle="\u2935\uFE0F":d===wn.patchObject?v.subtitle="\u{1F9E9}":c&&!Array.isArray(c)&&(v.subtitle=c.type),c&&(v.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:c}}),r.addTimelineEvent({layerId:sa,event:v})},{detached:!0,flush:"sync"});const a=e._hotUpdate;e._hotUpdate=no(c=>{a(c),r.addTimelineEvent({layerId:sa,event:{time:n(),title:"\u{1F525} "+e.$id,subtitle:"HMR update",data:{store:an(e.$id),info:an("HMR update")}}}),r.notifyComponentUpdate(),r.sendInspectorTree(fr),r.sendInspectorState(fr)});const{$dispose:o}=e;e.$dispose=()=>{o(),r.notifyComponentUpdate(),r.sendInspectorTree(fr),r.sendInspectorState(fr),r.getSettings().logStoreChanges&&Zt(`Disposed "${e.$id}" store \u{1F5D1}`)},r.notifyComponentUpdate(),r.sendInspectorTree(fr),r.sendInspectorState(fr),r.getSettings().logStoreChanges&&Zt(`"${e.$id}" store installed \u{1F195}`)})}let F0=0,bi;function B0(t,e,r){const n=e.reduce((a,o)=>(a[o]=ro(t)[o],a),{});for(const a in n)t[a]=function(){const o=F0,c=r?new Proxy(t,{get(...p){return bi=o,Reflect.get(...p)},set(...p){return bi=o,Reflect.set(...p)}}):t;bi=o;const d=n[a].apply(c,arguments);return bi=void 0,d}}function bO({app:t,store:e,options:r}){if(!e.$id.startsWith("__hot:")){if(e._isOptionsAPI=!!r.state,!e._p._testing){B0(e,Object.keys(r.actions),e._isOptionsAPI);const n=e._hotUpdate;ro(e)._hotUpdate=function(a){n.apply(this,arguments),B0(e,Object.keys(a._hmrPayload.actions),!!e._isOptionsAPI)}}_O(t,e)}}function yO(){const t=Jv(!0),e=t.run(()=>Be({}));let r=[];const n=no({install(a){mo(n)},use(a){return this._a,r.push(a),this},_p:r,_a:null,_e:t,_s:new Map,state:e});return typeof __VUE_PROD_DEVTOOLS__<"u"&&__VUE_PROD_DEVTOOLS__&&aa&&typeof Proxy<"u"&&n.use(bO),n}const H0=()=>{};function U0(t,e,r,n=H0){t.push(e);const a=()=>{const o=t.indexOf(e);o>-1&&(t.splice(o,1),n())};return!r&&Zv()&&tx(a),a}function Qa(t,...e){t.slice().forEach(r=>{r(...e)})}const kO=t=>t(),j0=Symbol(),sd=Symbol();function od(t,e){t instanceof Map&&e instanceof Map?e.forEach((r,n)=>t.set(n,r)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const r in e){if(!e.hasOwnProperty(r))continue;const n=e[r],a=t[r];nd(a)&&nd(n)&&t.hasOwnProperty(r)&&!Wt(n)&&!Wa(n)?t[r]=od(a,n):t[r]=n}return t}const EO=Symbol();function TO(t){return!nd(t)||!t.hasOwnProperty(EO)}const{assign:Gn}=Object;function CO(t){return!!(Wt(t)&&t.effect)}function wO(t,e,r,n){const{state:a,actions:o,getters:c}=e,d=r.state.value[t];let p;function v(){d||mt(r.state.value,t,a?a():{});const b=QS(r.state.value[t]);return Gn(b,o,Object.keys(c||{}).reduce((C,T)=>(C[T]=no(Ae(()=>{mo(r);const A=r._s.get(t);if(A._r)return c[T].call(A,A)})),C),{}))}return p=W0(t,v,e,r,n,!0),p}function W0(t,e,r={},n,a,o){let c;const d=Gn({actions:{}},r),p={deep:!0};let v,b,C=[],T=[],A;const F=n.state.value[t];!o&&!F&&mt(n.state.value,t,{});const G=Be({});let j;function O(Z){let ne;v=b=!1,typeof Z=="function"?(Z(n.state.value[t]),ne={type:wn.patchFunction,storeId:t,events:A}):(od(n.state.value[t],Z),ne={type:wn.patchObject,payload:Z,storeId:t,events:A});const U=j=Symbol();Tn().then(()=>{j===U&&(v=!0)}),b=!0,Qa(C,ne,n.state.value[t])}const x=o?function(){const{state:ne}=r,U=ne?ne():{};this.$patch(N=>{Gn(N,U)})}:H0;function S(){c.stop(),C=[],T=[],n._s.delete(t)}const P=(Z,ne="")=>{if(j0 in Z)return Z[sd]=ne,Z;const U=function(){mo(n);const N=Array.from(arguments),W=[],E=[];function ee(he){W.push(he)}function V(he){E.push(he)}Qa(T,{args:N,name:U[sd],store:q,after:ee,onError:V});let fe;try{fe=Z.apply(this&&this.$id===t?this:q,N)}catch(he){throw Qa(E,he),he}return fe instanceof Promise?fe.then(he=>(Qa(W,he),he)).catch(he=>(Qa(E,he),Promise.reject(he))):(Qa(W,fe),fe)};return U[j0]=!0,U[sd]=ne,U},R=no({actions:{},getters:{},state:[],hotState:G}),B={_p:n,$id:t,$onAction:U0.bind(null,T),$patch:O,$reset:x,$subscribe(Z,ne={}){const U=U0(C,Z,ne.detached,()=>N()),N=c.run(()=>gt(()=>n.state.value[t],W=>{(ne.flush==="sync"?b:v)&&Z({storeId:t,type:wn.direct,events:A},W)},Gn({},p,ne)));return U},$dispose:S};B._r=!1;const q=Jt(typeof __VUE_PROD_DEVTOOLS__<"u"&&__VUE_PROD_DEVTOOLS__&&aa?Gn({_hmrPayload:R,_customProperties:no(new Set)},B):B);n._s.set(t,q);const ae=(n._a&&n._a.runWithContext||kO)(()=>n._e.run(()=>(c=Jv()).run(()=>e({action:P}))));for(const Z in ae){const ne=ae[Z];if(Wt(ne)&&!CO(ne)||Wa(ne))o||(F&&TO(ne)&&(Wt(ne)?ne.value=F[Z]:od(ne,F[Z])),mt(n.state.value[t],Z,ne));else if(typeof ne=="function"){const U=P(ne,Z);mt(ae,Z,U),d.actions[Z]=ne}}if(Object.keys(ae).forEach(Z=>{mt(q,Z,ae[Z])}),Object.defineProperty(q,"$state",{get:()=>n.state.value[t],set:Z=>{O(ne=>{Gn(ne,Z)})}}),typeof __VUE_PROD_DEVTOOLS__<"u"&&__VUE_PROD_DEVTOOLS__&&aa){const Z={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(ne=>{Object.defineProperty(q,ne,Gn({value:q[ne]},Z))})}return q._r=!0,n._p.forEach(Z=>{if(typeof __VUE_PROD_DEVTOOLS__<"u"&&__VUE_PROD_DEVTOOLS__&&aa){const ne=c.run(()=>Z({store:q,app:n._a,pinia:n,options:d}));Object.keys(ne||{}).forEach(U=>q._customProperties.add(U)),Gn(q,ne)}else Gn(q,c.run(()=>Z({store:q,app:n._a,pinia:n,options:d})))}),F&&o&&r.hydrate&&r.hydrate(q.$state,F),v=!0,b=!0,q}function sn(t,e,r){let n,a;const o=typeof e=="function";typeof t=="string"?(n=t,a=o?r:e):(a=t,n=t.id);function c(d,p){const v=X2();return d=d||(v?st(O0,null):null),d&&mo(d),d=A0,d._s.has(n)||(o?W0(n,e,a,d):wO(n,a,d)),d._s.get(n)}return c.$id=n,c}function ud(t,e){return Array.isArray(e)?e.reduce((r,n)=>(r[n]=function(){return t(this.$pinia)[n]},r),{}):Object.keys(e).reduce((r,n)=>(r[n]=function(){const a=t(this.$pinia),o=e[n];return typeof o=="function"?o.call(this,a):a[o]},r),{})}const SO=function(t){t.mixin({beforeCreate(){const e=this.$options;if(e.pinia){const r=e.pinia;if(!this._provided){const n={};Object.defineProperty(this,"_provided",{get:()=>n,set:a=>Object.assign(n,a)})}this._provided[O0]=r,this.$pinia||(this.$pinia=r),r._a=this,aa&&mo(r),typeof __VUE_PROD_DEVTOOLS__<"u"&&__VUE_PROD_DEVTOOLS__&&aa&&gO(r._a,r)}else!this.$pinia&&e.parent&&e.parent.$pinia&&(this.$pinia=e.parent.$pinia)},destroyed(){delete this._pStores}})};var xO={defineStore:sn,mapState:ud},G0=typeof global=="object"&&global&&global.Object===Object&&global,AO=typeof self=="object"&&self&&self.Object===Object&&self,on=G0||AO||Function("return this")(),Kr=on.Symbol,z0=Object.prototype,OO=z0.hasOwnProperty,NO=z0.toString,vo=Kr?Kr.toStringTag:void 0;function PO(t){var e=OO.call(t,vo),r=t[vo];try{t[vo]=void 0;var n=!0}catch{}var a=NO.call(t);return n&&(e?t[vo]=r:delete t[vo]),a}var IO=Object.prototype,LO=IO.toString;function RO(t){return LO.call(t)}var DO="[object Null]",MO="[object Undefined]",q0=Kr?Kr.toStringTag:void 0;function yi(t){return t==null?t===void 0?MO:DO:q0&&q0 in Object(t)?PO(t):RO(t)}function _t(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var $O="[object AsyncFunction]",FO="[object Function]",BO="[object GeneratorFunction]",HO="[object Proxy]";function zn(t){if(!_t(t))return!1;var e=yi(t);return e==FO||e==BO||e==$O||e==HO}var ld=on["__core-js_shared__"],Y0=(function(){var t=/[^.]+$/.exec(ld&&ld.keys&&ld.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function UO(t){return!!Y0&&Y0 in t}var jO=Function.prototype,WO=jO.toString;function oa(t){if(t!=null){try{return WO.call(t)}catch{}try{return t+""}catch{}}return""}var GO=/[\\^$.*+?()[\]{}|]/g,zO=/^\[object .+?Constructor\]$/,qO=Function.prototype,YO=Object.prototype,KO=qO.toString,XO=YO.hasOwnProperty,VO=RegExp("^"+KO.call(XO).replace(GO,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function QO(t){if(!_t(t)||UO(t))return!1;var e=zn(t)?VO:zO;return e.test(oa(t))}function JO(t,e){return t?.[e]}function ua(t,e){var r=JO(t,e);return QO(r)?r:void 0}var go=ua(Object,"create");function ZO(){this.__data__=go?go(null):{},this.size=0}function eN(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var tN="__lodash_hash_undefined__",rN=Object.prototype,nN=rN.hasOwnProperty;function iN(t){var e=this.__data__;if(go){var r=e[t];return r===tN?void 0:r}return nN.call(e,t)?e[t]:void 0}var aN=Object.prototype,sN=aN.hasOwnProperty;function oN(t){var e=this.__data__;return go?e[t]!==void 0:sN.call(e,t)}var uN="__lodash_hash_undefined__";function lN(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=go&&e===void 0?uN:e,this}function la(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}la.prototype.clear=ZO,la.prototype.delete=eN,la.prototype.get=iN,la.prototype.has=oN,la.prototype.set=lN;function cN(){this.__data__=[],this.size=0}function _o(t,e){return t===e||t!==t&&e!==e}function _l(t,e){for(var r=t.length;r--;)if(_o(t[r][0],e))return r;return-1}var fN=Array.prototype,dN=fN.splice;function hN(t){var e=this.__data__,r=_l(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():dN.call(e,r,1),--this.size,!0}function pN(t){var e=this.__data__,r=_l(e,t);return r<0?void 0:e[r][1]}function mN(t){return _l(this.__data__,t)>-1}function vN(t,e){var r=this.__data__,n=_l(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function qn(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}qn.prototype.clear=cN,qn.prototype.delete=hN,qn.prototype.get=pN,qn.prototype.has=mN,qn.prototype.set=vN;var bo=ua(on,"Map");function gN(){this.size=0,this.__data__={hash:new la,map:new(bo||qn),string:new la}}function _N(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function bl(t,e){var r=t.__data__;return _N(e)?r[typeof e=="string"?"string":"hash"]:r.map}function bN(t){var e=bl(this,t).delete(t);return this.size-=e?1:0,e}function yN(t){return bl(this,t).get(t)}function kN(t){return bl(this,t).has(t)}function EN(t,e){var r=bl(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}function Yn(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Yn.prototype.clear=gN,Yn.prototype.delete=bN,Yn.prototype.get=yN,Yn.prototype.has=kN,Yn.prototype.set=EN;var TN="Expected a function";function ca(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(TN);var r=function(){var n=arguments,a=e?e.apply(this,n):n[0],o=r.cache;if(o.has(a))return o.get(a);var c=t.apply(this,n);return r.cache=o.set(a,c)||o,c};return r.cache=new(ca.Cache||Yn),r}ca.Cache=Yn;const un=function(t){const e=[];return Object.keys(t).forEach(r=>{if(un[r])for(const n of Array.isArray(t[r])?t[r]:[t[r]])n&&e.push(un[r](n))}),Promise.all(e)};Object.assign(un,{css:ca(t=>new Promise((e,r)=>{const n=document.createElement("link");n.onload=()=>e(t),n.onerror=()=>r(t),n.rel="stylesheet",n.href=t,document.head.appendChild(n)})),js:ca(t=>new Promise((e,r)=>{const n=document.createElement("script");n.onload=()=>e(t),n.onerror=()=>r(t),n.src=t,document.head.appendChild(n)})),image:ca(t=>new Promise((e,r)=>{const n=new Image;n.onload=()=>e(t),n.onerror=()=>r(t),n.src=t}))});const CN="yootheme",ue=window[CN]??={},cd=new Map;async function wN(){if(await xN(ue.config.google_maps_api_key),!!yl)return async t=>{if(!cd.has(t)){const e=await SN(t);e&&cd.set(t,e.map(AN))}return cd.get(t)}}async function SN(t){try{return(await yl.geocode({address:t})).results}catch(e){if(e.code==="ZERO_RESULTS")return[];console.warn(e)}}let yl;async function xN(t){if(!(!t||yl))try{await un.js(`https://maps.googleapis.com/maps/api/js?key=${t}`),yl=new window.google.maps.Geocoder}catch{}}function AN({formatted_address:t,geometry:{location:{lat:e,lng:r}}}){return{address:t,lat:e(),lng:r()}}const fd=new Map;async function ON(){return async t=>{if(!fd.has(t))try{const e=await fetch(`https://nominatim.openstreetmap.org/search.php?limit=1&format=jsonv2&q=${encodeURIComponent(t)}`),r=e.ok?await e.json():[];fd.set(t,r.map(NN))}catch{}return fd.get(t)}}function NN({display_name:t,lat:e,lon:r}){return{address:t,lat:e,lng:r}}const PN=[wN,ON];async function IN(t){for(const e of PN){const r=await e();if(r)return r(t)}}function yo(t){return!!(t?.match(/\.(?:gif|jpe?g|a?png|svg|ico|webp|avif)$/i)||t?.match(/\/\/images.unsplash.com\/photo-/i))}function fa(t){return!!t?.match(/\.(mpeg|ogv|mp4|m4v|webm|wmv)$/i)}function K0(t){return!!t?.match(/\/\/(?:.*?youtube(-nocookie)?\..*?(?:[?&]v=|\/shorts\/)|youtu\.be\/)([\w-]{11})[&?]?(.*)?/i)}function X0(t){return!!t?.match(/\/\/.*?vimeo\.[a-z]+\/(\d+)[&?]?(.*)?/i)}function LN(t){return K0(t)||X0(t)}var dd,V0;function Q0(){if(V0)return dd;V0=1;var t=Object.prototype.toString;return dd=function(r){var n=t.call(r),a=n==="[object Arguments]";return a||(a=n!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&t.call(r.callee)==="[object Function]"),a},dd}var hd,J0;function RN(){if(J0)return hd;J0=1;var t;if(!Object.keys){var e=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Q0(),a=Object.prototype.propertyIsEnumerable,o=!a.call({toString:null},"toString"),c=a.call(function(){},"prototype"),d=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],p=function(T){var A=T.constructor;return A&&A.prototype===T},v={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},b=(function(){if(typeof window>"u")return!1;for(var T in window)try{if(!v["$"+T]&&e.call(window,T)&&window[T]!==null&&typeof window[T]=="object")try{p(window[T])}catch{return!0}}catch{return!0}return!1})(),C=function(T){if(typeof window>"u"||!b)return p(T);try{return p(T)}catch{return!1}};t=function(A){var F=A!==null&&typeof A=="object",G=r.call(A)==="[object Function]",j=n(A),O=F&&r.call(A)==="[object String]",x=[];if(!F&&!G&&!j)throw new TypeError("Object.keys called on a non-object");var S=c&&G;if(O&&A.length>0&&!e.call(A,0))for(var P=0;P<A.length;++P)x.push(String(P));if(j&&A.length>0)for(var R=0;R<A.length;++R)x.push(String(R));else for(var B in A)!(S&&B==="prototype")&&e.call(A,B)&&x.push(String(B));if(o)for(var q=C(A),le=0;le<d.length;++le)!(q&&d[le]==="constructor")&&e.call(A,d[le])&&x.push(d[le]);return x}}return hd=t,hd}var pd,Z0;function DN(){if(Z0)return pd;Z0=1;var t=Array.prototype.slice,e=Q0(),r=Object.keys,n=r?function(c){return r(c)}:RN(),a=Object.keys;return n.shim=function(){if(Object.keys){var c=(function(){var d=Object.keys(arguments);return d&&d.length===arguments.length})(1,2);c||(Object.keys=function(p){return e(p)?a(t.call(p)):a(p)})}else Object.keys=n;return Object.keys||n},pd=n,pd}var md,e_;function kl(){if(e_)return md;e_=1;var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return md=t,md}var vd,t_;function r_(){return t_||(t_=1,vd=SyntaxError),vd}var gd,n_;function ko(){return n_||(n_=1,gd=TypeError),gd}var _d,i_;function MN(){return i_||(i_=1,_d=Object.getOwnPropertyDescriptor),_d}var bd,a_;function El(){if(a_)return bd;a_=1;var t=MN();if(t)try{t([],"length")}catch{t=null}return bd=t,bd}var yd,s_;function o_(){if(s_)return yd;s_=1;var t=kl(),e=r_(),r=ko(),n=El();return yd=function(o,c,d){if(!o||typeof o!="object"&&typeof o!="function")throw new r("`obj` must be an object or a function`");if(typeof c!="string"&&typeof c!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var p=arguments.length>3?arguments[3]:null,v=arguments.length>4?arguments[4]:null,b=arguments.length>5?arguments[5]:null,C=arguments.length>6?arguments[6]:!1,T=!!n&&n(o,c);if(t)t(o,c,{configurable:b===null&&T?T.configurable:!b,enumerable:p===null&&T?T.enumerable:!p,value:d,writable:v===null&&T?T.writable:!v});else if(C||!p&&!v&&!b)o[c]=d;else throw new e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},yd}var kd,u_;function l_(){if(u_)return kd;u_=1;var t=kl(),e=function(){return!!t};return e.hasArrayLengthDefineBug=function(){if(!t)return null;try{return t([],"length",{value:1}).length!==1}catch{return!0}},kd=e,kd}var Ed,c_;function f_(){if(c_)return Ed;c_=1;var t=DN(),e=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",r=Object.prototype.toString,n=Array.prototype.concat,a=o_(),o=function(v){return typeof v=="function"&&r.call(v)==="[object Function]"},c=l_()(),d=function(v,b,C,T){if(b in v){if(T===!0){if(v[b]===C)return}else if(!o(T)||!T())return}c?a(v,b,C,!0):a(v,b,C)},p=function(v,b){var C=arguments.length>2?arguments[2]:{},T=t(b);e&&(T=n.call(T,Object.getOwnPropertySymbols(b)));for(var A=0;A<T.length;A+=1)d(v,T[A],b[T[A]],C[T[A]])};return p.supportsDescriptors=!!c,Ed=p,Ed}var Td={exports:{}},Cd,d_;function h_(){return d_||(d_=1,Cd=Object),Cd}var wd,p_;function $N(){return p_||(p_=1,wd=Error),wd}var Sd,m_;function FN(){return m_||(m_=1,Sd=EvalError),Sd}var xd,v_;function BN(){return v_||(v_=1,xd=RangeError),xd}var Ad,g_;function HN(){return g_||(g_=1,Ad=ReferenceError),Ad}var Od,__;function UN(){return __||(__=1,Od=URIError),Od}var Nd,b_;function jN(){return b_||(b_=1,Nd=Math.abs),Nd}var Pd,y_;function WN(){return y_||(y_=1,Pd=Math.floor),Pd}var Id,k_;function GN(){return k_||(k_=1,Id=Math.max),Id}var Ld,E_;function zN(){return E_||(E_=1,Ld=Math.min),Ld}var Rd,T_;function qN(){return T_||(T_=1,Rd=Math.pow),Rd}var Dd,C_;function YN(){return C_||(C_=1,Dd=Math.round),Dd}var Md,w_;function KN(){return w_||(w_=1,Md=Number.isNaN||function(e){return e!==e}),Md}var $d,S_;function XN(){if(S_)return $d;S_=1;var t=KN();return $d=function(r){return t(r)||r===0?r:r<0?-1:1},$d}var Fd,x_;function VN(){return x_||(x_=1,Fd=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var a=42;e[r]=a;for(var o in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var c=Object.getOwnPropertySymbols(e);if(c.length!==1||c[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var d=Object.getOwnPropertyDescriptor(e,r);if(d.value!==a||d.enumerable!==!0)return!1}return!0}),Fd}var Bd,A_;function QN(){if(A_)return Bd;A_=1;var t=typeof Symbol<"u"&&Symbol,e=VN();return Bd=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Bd}var Hd,O_;function N_(){return O_||(O_=1,Hd=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Hd}var Ud,P_;function I_(){if(P_)return Ud;P_=1;var t=h_();return Ud=t.getPrototypeOf||null,Ud}var jd,L_;function JN(){if(L_)return jd;L_=1;var t="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,r=Math.max,n="[object Function]",a=function(p,v){for(var b=[],C=0;C<p.length;C+=1)b[C]=p[C];for(var T=0;T<v.length;T+=1)b[T+p.length]=v[T];return b},o=function(p,v){for(var b=[],C=v,T=0;C<p.length;C+=1,T+=1)b[T]=p[C];return b},c=function(d,p){for(var v="",b=0;b<d.length;b+=1)v+=d[b],b+1<d.length&&(v+=p);return v};return jd=function(p){var v=this;if(typeof v!="function"||e.apply(v)!==n)throw new TypeError(t+v);for(var b=o(arguments,1),C,T=function(){if(this instanceof C){var O=v.apply(this,a(b,arguments));return Object(O)===O?O:this}return v.apply(p,a(b,arguments))},A=r(0,v.length-b.length),F=[],G=0;G<A;G++)F[G]="$"+G;if(C=Function("binder","return function ("+c(F,",")+"){ return binder.apply(this,arguments); }")(T),v.prototype){var j=function(){};j.prototype=v.prototype,C.prototype=new j,j.prototype=null}return C},jd}var Wd,R_;function Eo(){if(R_)return Wd;R_=1;var t=JN();return Wd=Function.prototype.bind||t,Wd}var Gd,D_;function zd(){return D_||(D_=1,Gd=Function.prototype.call),Gd}var qd,M_;function Yd(){return M_||(M_=1,qd=Function.prototype.apply),qd}var Kd,$_;function ZN(){return $_||($_=1,Kd=typeof Reflect<"u"&&Reflect&&Reflect.apply),Kd}var Xd,F_;function B_(){if(F_)return Xd;F_=1;var t=Eo(),e=Yd(),r=zd(),n=ZN();return Xd=n||t.call(r,e),Xd}var Vd,H_;function U_(){if(H_)return Vd;H_=1;var t=Eo(),e=ko(),r=zd(),n=B_();return Vd=function(o){if(o.length<1||typeof o[0]!="function")throw new e("a function is required");return n(t,r,o)},Vd}var Qd,j_;function eP(){if(j_)return Qd;j_=1;var t=U_(),e=El(),r;try{r=[].__proto__===Array.prototype}catch(c){if(!c||typeof c!="object"||!("code"in c)||c.code!=="ERR_PROTO_ACCESS")throw c}var n=!!r&&e&&e(Object.prototype,"__proto__"),a=Object,o=a.getPrototypeOf;return Qd=n&&typeof n.get=="function"?t([n.get]):typeof o=="function"?function(d){return o(d==null?d:a(d))}:!1,Qd}var Jd,W_;function tP(){if(W_)return Jd;W_=1;var t=N_(),e=I_(),r=eP();return Jd=t?function(a){return t(a)}:e?function(a){if(!a||typeof a!="object"&&typeof a!="function")throw new TypeError("getProto: not an object");return e(a)}:r?function(a){return r(a)}:null,Jd}var Zd,G_;function z_(){if(G_)return Zd;G_=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=Eo();return Zd=r.call(t,e),Zd}var eh,q_;function Y_(){if(q_)return eh;q_=1;var t,e=h_(),r=$N(),n=FN(),a=BN(),o=HN(),c=r_(),d=ko(),p=UN(),v=jN(),b=WN(),C=GN(),T=zN(),A=qN(),F=YN(),G=XN(),j=Function,O=function(Le){try{return j('"use strict"; return ('+Le+").constructor;")()}catch{}},x=El(),S=kl(),P=function(){throw new d},R=x?(function(){try{return arguments.callee,P}catch{try{return x(arguments,"callee").get}catch{return P}}})():P,B=QN()(),q=tP(),le=I_(),ae=N_(),Z=Yd(),ne=zd(),U={},N=typeof Uint8Array>"u"||!q?t:q(Uint8Array),W={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?t:ArrayBuffer,"%ArrayIteratorPrototype%":B&&q?q([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":U,"%AsyncGenerator%":U,"%AsyncGeneratorFunction%":U,"%AsyncIteratorPrototype%":U,"%Atomics%":typeof Atomics>"u"?t:Atomics,"%BigInt%":typeof BigInt>"u"?t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float32Array%":typeof Float32Array>"u"?t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?t:FinalizationRegistry,"%Function%":j,"%GeneratorFunction%":U,"%Int8Array%":typeof Int8Array>"u"?t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":B&&q?q(q([][Symbol.iterator]())):t,"%JSON%":typeof JSON=="object"?JSON:t,"%Map%":typeof Map>"u"?t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!B||!q?t:q(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":x,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?t:Promise,"%Proxy%":typeof Proxy>"u"?t:Proxy,"%RangeError%":a,"%ReferenceError%":o,"%Reflect%":typeof Reflect>"u"?t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!B||!q?t:q(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":B&&q?q(""[Symbol.iterator]()):t,"%Symbol%":B?Symbol:t,"%SyntaxError%":c,"%ThrowTypeError%":R,"%TypedArray%":N,"%TypeError%":d,"%Uint8Array%":typeof Uint8Array>"u"?t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?t:Uint32Array,"%URIError%":p,"%WeakMap%":typeof WeakMap>"u"?t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?t:WeakSet,"%Function.prototype.call%":ne,"%Function.prototype.apply%":Z,"%Object.defineProperty%":S,"%Object.getPrototypeOf%":le,"%Math.abs%":v,"%Math.floor%":b,"%Math.max%":C,"%Math.min%":T,"%Math.pow%":A,"%Math.round%":F,"%Math.sign%":G,"%Reflect.getPrototypeOf%":ae};if(q)try{null.error}catch(Le){var E=q(q(Le));W["%Error.prototype%"]=E}var ee=function Le(xe){var Ee;if(xe==="%AsyncFunction%")Ee=O("async function () {}");else if(xe==="%GeneratorFunction%")Ee=O("function* () {}");else if(xe==="%AsyncGeneratorFunction%")Ee=O("async function* () {}");else if(xe==="%AsyncGenerator%"){var Qe=Le("%AsyncGeneratorFunction%");Qe&&(Ee=Qe.prototype)}else if(xe==="%AsyncIteratorPrototype%"){var ut=Le("%AsyncGenerator%");ut&&q&&(Ee=q(ut.prototype))}return W[xe]=Ee,Ee},V={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},fe=Eo(),he=z_(),Ie=fe.call(ne,Array.prototype.concat),Ge=fe.call(Z,Array.prototype.splice),He=fe.call(ne,String.prototype.replace),We=fe.call(ne,String.prototype.slice),at=fe.call(ne,RegExp.prototype.exec),Ve=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Pe=/\\(\\)?/g,Te=function(xe){var Ee=We(xe,0,1),Qe=We(xe,-1);if(Ee==="%"&&Qe!=="%")throw new c("invalid intrinsic syntax, expected closing `%`");if(Qe==="%"&&Ee!=="%")throw new c("invalid intrinsic syntax, expected opening `%`");var ut=[];return He(xe,Ve,function(dt,Nt,ze,tt){ut[ut.length]=ze?He(tt,Pe,"$1"):Nt||dt}),ut},Se=function(xe,Ee){var Qe=xe,ut;if(he(V,Qe)&&(ut=V[Qe],Qe="%"+ut[0]+"%"),he(W,Qe)){var dt=W[Qe];if(dt===U&&(dt=ee(Qe)),typeof dt>"u"&&!Ee)throw new d("intrinsic "+xe+" exists, but is not available. Please file an issue!");return{alias:ut,name:Qe,value:dt}}throw new c("intrinsic "+xe+" does not exist!")};return eh=function(xe,Ee){if(typeof xe!="string"||xe.length===0)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Ee!="boolean")throw new d('"allowMissing" argument must be a boolean');if(at(/^%?[^%]*%?$/,xe)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Qe=Te(xe),ut=Qe.length>0?Qe[0]:"",dt=Se("%"+ut+"%",Ee),Nt=dt.name,ze=dt.value,tt=!1,lt=dt.alias;lt&&(ut=lt[0],Ge(Qe,Ie([0,1],lt)));for(var $t=1,Ye=!0;$t<Qe.length;$t+=1){var rt=Qe[$t],X=We(rt,0,1),me=We(rt,-1);if((X==='"'||X==="'"||X==="`"||me==='"'||me==="'"||me==="`")&&X!==me)throw new c("property names with quotes must have matching quotes");if((rt==="constructor"||!Ye)&&(tt=!0),ut+="."+rt,Nt="%"+ut+"%",he(W,Nt))ze=W[Nt];else if(ze!=null){if(!(rt in ze)){if(!Ee)throw new d("base intrinsic for "+xe+" exists, but the property is not available.");return}if(x&&$t+1>=Qe.length){var ie=x(ze,rt);Ye=!!ie,Ye&&"get"in ie&&!("originalValue"in ie.get)?ze=ie.get:ze=ze[rt]}else Ye=he(ze,rt),ze=ze[rt];Ye&&!tt&&(W[Nt]=ze)}}return ze},eh}var th,K_;function rP(){if(K_)return th;K_=1;var t=Y_(),e=o_(),r=l_()(),n=El(),a=ko(),o=t("%Math.floor%");return th=function(d,p){if(typeof d!="function")throw new a("`fn` is not a function");if(typeof p!="number"||p<0||p>4294967295||o(p)!==p)throw new a("`length` must be a positive 32-bit integer");var v=arguments.length>2&&!!arguments[2],b=!0,C=!0;if("length"in d&&n){var T=n(d,"length");T&&!T.configurable&&(b=!1),T&&!T.writable&&(C=!1)}return(b||C||!v)&&(r?e(d,"length",p,!0,!0):e(d,"length",p)),d},th}var rh,X_;function nP(){if(X_)return rh;X_=1;var t=Eo(),e=Yd(),r=B_();return rh=function(){return r(t,e,arguments)},rh}var V_;function Q_(){return V_||(V_=1,(function(t){var e=rP(),r=kl(),n=U_(),a=nP();t.exports=function(c){var d=n(arguments),p=c.length-(arguments.length-1);return e(d,1+(p>0?p:0),!0)},r?r(t.exports,"apply",{value:a}):t.exports.apply=a})(Td)),Td.exports}var nh,J_;function iP(){if(J_)return nh;J_=1;var t=ko();return nh=function(r){if(r==null)throw new t(arguments.length>0&&arguments[1]||"Cannot call method on "+r);return r},nh}var ih,Z_;function aP(){if(Z_)return ih;Z_=1;var t=Y_(),e=Q_(),r=e(t("String.prototype.indexOf"));return ih=function(a,o){var c=t(a,!!o);return typeof c=="function"&&r(a,".prototype.")>-1?e(c):c},ih}var ah,eb;function tb(){if(eb)return ah;eb=1;var t=iP(),e=aP(),r=e("Object.prototype.propertyIsEnumerable"),n=e("Array.prototype.push");return ah=function(o){var c=t(o),d=[];for(var p in c)r(c,p)&&n(d,[p,c[p]]);return d},ah}var sh,rb;function nb(){if(rb)return sh;rb=1;var t=tb();return sh=function(){return typeof Object.entries=="function"?Object.entries:t},sh}var oh,ib;function sP(){if(ib)return oh;ib=1;var t=nb(),e=f_();return oh=function(){var n=t();return e(Object,{entries:n},{entries:function(){return Object.entries!==n}}),n},oh}var uh,ab;function oP(){if(ab)return uh;ab=1;var t=f_(),e=Q_(),r=tb(),n=nb(),a=sP(),o=e(n(),Object);return t(o,{getPolyfill:n,implementation:r,shim:a}),uh=o,uh}var lh,sb;function uP(){if(sb)return lh;sb=1;var t=function(){};return lh=t,lh}var ch,ob;function lP(){if(ob)return ch;ob=1;var t=oP(),e=uP(),r=z_(),n=function(P){e(!1,P)},a=String.prototype.replace,o=String.prototype.split,c="||||",d=function(S){var P=S%100,R=P%10;return P!==11&&R===1?0:2<=R&&R<=4&&!(P>=12&&P<=14)?1:2},p={pluralTypes:{arabic:function(S){if(S<3)return S;var P=S%100;return P>=3&&P<=10?3:P>=11?4:5},bosnian_serbian:d,chinese:function(){return 0},croatian:d,french:function(S){return S>=2?1:0},german:function(S){return S!==1?1:0},russian:d,lithuanian:function(S){return S%10===1&&S%100!==11?0:S%10>=2&&S%10<=9&&(S%100<11||S%100>19)?1:2},czech:function(S){return S===1?0:S>=2&&S<=4?1:2},polish:function(S){if(S===1)return 0;var P=S%10;return 2<=P&&P<=4&&(S%100<10||S%100>=20)?1:2},icelandic:function(S){return S%10!==1||S%100===11?1:0},slovenian:function(S){var P=S%100;return P===1?0:P===2?1:P===3||P===4?2:3},romanian:function(S){if(S===1)return 0;var P=S%100;return S===0||P>=2&&P<=19?1:2},ukrainian:d},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is","mk"],slovenian:["sl-SL"],romanian:["ro"],ukrainian:["uk","ua"]}};function v(S){for(var P={},R=t(S),B=0;B<R.length;B+=1)for(var q=R[B][0],le=R[B][1],ae=0;ae<le.length;ae+=1)P[le[ae]]=q;return P}function b(S,P){var R=v(S.pluralTypeToLanguages);return R[P]||R[o.call(P,/-/,1)[0]]||R.en}function C(S,P,R){return S.pluralTypes[P](R)}function T(){var S={};return function(P,R){var B=S[R];return B&&!P.pluralTypes[B]&&(B=null,S[R]=B),B||(B=b(P,R),B&&(S[R]=B)),B}}function A(S){return S.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function F(S){var P=S&&S.prefix||"%{",R=S&&S.suffix||"}";if(P===c||R===c)throw new RangeError('"'+c+'" token is reserved for pluralization');return new RegExp(A(P)+"(.*?)"+A(R),"g")}var G=T(),j=/%\{(.*?)\}/g;function O(S,P,R,B,q,le){if(typeof S!="string")throw new TypeError("Polyglot.transformPhrase expects argument #1 to be string");if(P==null)return S;var ae=S,Z=B||j,ne=le||a,U=typeof P=="number"?{smart_count:P}:P;if(U.smart_count!=null&&S){var N=q||p,W=o.call(S,c),E=R||"en",ee=G(N,E),V=C(N,ee,U.smart_count);ae=a.call(W[V]||W[0],/^[^\S]*|[^\S]*$/g,"")}return ae=ne.call(ae,Z,function(fe,he){return!r(U,he)||U[he]==null?fe:U[he]}),ae}function x(S){var P=S||{};this.phrases={},this.extend(P.phrases||{}),this.currentLocale=P.locale||"en";var R=P.allowMissing?O:null;this.onMissingKey=typeof P.onMissingKey=="function"?P.onMissingKey:R,this.warn=P.warn||n,this.replaceImplementation=P.replace||a,this.tokenRegex=F(P.interpolation),this.pluralRules=P.pluralRules||p}return x.prototype.locale=function(S){return S&&(this.currentLocale=S),this.currentLocale},x.prototype.extend=function(S,P){for(var R=t(S||{}),B=0;B<R.length;B+=1){var q=R[B][0],le=R[B][1],ae=P?P+"."+q:q;typeof le=="object"?this.extend(le,ae):this.phrases[ae]=le}},x.prototype.unset=function(S,P){if(typeof S=="string")delete this.phrases[S];else for(var R=t(S||{}),B=0;B<R.length;B+=1){var q=R[B][0],le=R[B][1],ae=P?P+"."+q:q;typeof le=="object"?this.unset(le,ae):delete this.phrases[ae]}},x.prototype.clear=function(){this.phrases={}},x.prototype.replace=function(S){this.clear(),this.extend(S)},x.prototype.t=function(S,P){var R,B,q=P??{};if(typeof this.phrases[S]=="string")R=this.phrases[S];else if(typeof q._=="string")R=q._;else if(this.onMissingKey){var le=this.onMissingKey;B=le(S,q,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)}else this.warn('Missing translation for key: "'+S+'"'),B=S;return typeof R=="string"&&(B=O(R,q,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)),B},x.prototype.has=function(S){return r(this.phrases,S)},x.transformPhrase=function(P,R,B){return O(P,R,B)},ch=x,ch}var cP=lP(),ub=Da(cP),fP={install(t,e){const r=t.i18n=new Ja(e);t.mixin({beforeCreate:function(){const{$parent:a,$options:o}=this,{i18n:c}=o;if(c){const d=new Ja(c);this.$t=(p,...v)=>p?d.t(p,...v):"",this.$i18n=d}else!a||!a.$t?(this.$t=(d,...p)=>d?r.t(d,...p):"",this.$i18n=r):a.$t&&(this.$t=a.$t)},created:function(){const{$i18n:a}=this;a&&(this._provided??={},this._provided.$i18n=a)}})}};function Ja(t={}){const{locale:e,messages:r={}}=t;ub.call(this,{phrases:r[e],allowMissing:!0,interpolation:{prefix:"%",suffix:"%"},...t}),this.messages=r}Ja.prototype=Object.create(ub.prototype),Ja.prototype.constructor=Ja,Ja.prototype.locale=function(t){return t&&(this.currentLocale=t,this.replace(this.messages[t])),this.currentLocale};var dP=t=>{const e={};t.mixin({provide:function(){const{models:r}=this.$options;if(!r)return{};const n={};for(const[a,o]of Object.entries(r)){const c=e[a]||o,d=zn(c)?new c({name:a,parent:this}):new t({name:a,parent:this,extends:c});this[a]=n[a]=d,this._provided[a]=d,this.$on("hook:beforeDestroy",()=>this[a].$destroy())}return n}}),t.model=(r,n)=>e[r]=n,t.config.optionMergeStrategies.models=t.config.optionMergeStrategies.props};const fh=new Map,To={set(t,e){return fh.set(t,e)},findIn(t){const e=[];for(const[r,n]of Object.entries(t))fh.has(n)&&e.push({replace:(a,o)=>t[r]=t[r].split(a).join(o||""),...fh.get(n)}),_t(n)&&e.push(...this.findIn(n));return e}};let Co;try{const t="__test__";Co=window.sessionStorage||{},Co[t]=1,delete Co[t]}catch{Co={}}const wt=Co;function lb(t=""){return t.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function da(t,e){t=lb(t);let r=-1;for(const n of lb(e??""))if((r=t.indexOf(n,r+1))===-1)return!1;return!0}var St=Array.isArray;function yr(t){return t!=null&&typeof t=="object"}var hP="[object String]";function Sn(t){return typeof t=="string"||!St(t)&&yr(t)&&yi(t)==hP}var dh={exports:{}},hh,cb;function pP(){if(cb)return hh;cb=1;var t=1;function e(){return t=(t*9301+49297)%233280,t/233280}function r(n){t=n}return hh={nextValue:e,seed:r},hh}var ph,fb;function Tl(){if(fb)return ph;fb=1;var t=pP(),e="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-",r,n,a;function o(){a=!1}function c(A){if(!A){r!==e&&(r=e,o());return}if(A!==r){if(A.length!==e.length)throw new Error("Custom alphabet for shortid must be "+e.length+" unique characters. You submitted "+A.length+" characters: "+A);var F=A.split("").filter(function(G,j,O){return j!==O.lastIndexOf(G)});if(F.length)throw new Error("Custom alphabet for shortid must be "+e.length+" unique characters. These characters were not unique: "+F.join(", "));r=A,o()}}function d(A){return c(A),r}function p(A){t.seed(A),n!==A&&(o(),n=A)}function v(){r||c(e);for(var A=r.split(""),F=[],G=t.nextValue(),j;A.length>0;)G=t.nextValue(),j=Math.floor(G*A.length),F.push(A.splice(j,1)[0]);return F.join("")}function b(){return a||(a=v(),a)}function C(A){var F=b();return F[A]}function T(){return r||e}return ph={get:T,characters:d,seed:p,lookup:C,shuffled:b},ph}var mh,db;function mP(){if(db)return mh;db=1;var t=typeof window=="object"&&(window.crypto||window.msCrypto),e;return!t||!t.getRandomValues?e=function(r){for(var n=[],a=0;a<r;a++)n.push(Math.floor(Math.random()*256));return n}:e=function(r){return t.getRandomValues(new Uint8Array(r))},mh=e,mh}let vP="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",hb=t=>crypto.getRandomValues(new Uint8Array(t)),pb=(t,e,r)=>{let n=(2<<Math.log(t.length-1)/Math.LN2)-1,a=-~(1.6*n*e/t.length);return(o=e)=>{let c="";for(;;){let d=r(a),p=a|0;for(;p--;)if(c+=t[d[p]&n]||"",c.length===o)return c}}};var gP=Object.freeze({__proto__:null,customAlphabet:(t,e=21)=>pb(t,e,hb),customRandom:pb,nanoid:(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((e,r)=>(r&=63,r<36?e+=r.toString(36):r<62?e+=(r-26).toString(36).toUpperCase():r>62?e+="-":e+="_",e),""),random:hb,urlAlphabet:vP}),_P=IC(gP),vh,mb;function bP(){if(mb)return vh;mb=1;var t=Tl(),e=mP(),r=_P.customRandom;function n(a){for(var o=0,c,d="";!c;)d=d+r(t.get(),1,e)(),c=a<Math.pow(16,o+1),o++;return d}return vh=n,vh}var gh,vb;function yP(){if(vb)return gh;vb=1;var t=bP();Tl();var e=1567752802062,r=7,n,a;function o(c){var d="",p=Math.floor((Date.now()-e)*.001);return p===a?n++:(n=0,a=p),d=d+t(r),d=d+t(c),n>0&&(d=d+t(n)),d=d+t(p),d}return gh=o,gh}var _h,gb;function kP(){if(gb)return _h;gb=1;var t=Tl();function e(r){if(!r||typeof r!="string"||r.length<6)return!1;var n=new RegExp("[^"+t.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]");return!n.test(r)}return _h=e,_h}var bh,_b;function EP(){return _b||(_b=1,bh=0),bh}var bb;function TP(){return bb||(bb=1,(function(t){var e=Tl(),r=yP(),n=kP(),a=EP()||0;function o(v){return e.seed(v),t.exports}function c(v){return a=v,t.exports}function d(v){return v!==void 0&&e.characters(v),e.shuffled()}function p(){return r(a)}t.exports=p,t.exports.generate=p,t.exports.seed=o,t.exports.worker=c,t.exports.characters=d,t.exports.isValid=n})(dh)),dh.exports}var yh,yb;function CP(){return yb||(yb=1,yh=TP()),yh}var wP=CP(),SP=Da(wP);function wo(t=8){return SP().slice(0,t)}function kb(t,e={},r=null){for(const[n,a]of Object.entries(t))_t(a)?t[n]=kb(a,e,r):Sn(a)&&(t[n]=xP(a,e,r));return t}function xP(t,e={},r=null){const n=t.match(/\$([a-zA-Z0-9_]+)|\${((\w+(?:\.\w+)*)(?::[^}]*)?)}/g)||[];for(const a of n){let o=e[a.replace(/\$|[{}]/g,"")];o===void 0&&r&&(o=r(a,t)),o!==void 0&&(t=a===t?o:t.replace(a,o))}return t}function Cl(t){return btoa(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(e,r)=>String.fromCharCode(`0x${r}`)))}function Eb(t=document){return t.head.appendChild(t.createElement("style")).sheet}function Tb(t,e=[],r=!0){if(t||(t=Eb()),ke.isDocument(t)&&(t=Eb(t)),r)for(;t.cssRules.length;)t.deleteRule(0);return e.forEach((n,a)=>t.insertRule(n,a)),t}function ki(t,e){const r=URL.createObjectURL(new Blob([new TextEncoder().encode(e).buffer],{type:"application/octet-stream"})),n=document.createElement("a");n.setAttribute("href",r),n.setAttribute("download",t),n.click(),URL.revokeObjectURL(r)}function AP(t){return new Promise((e,r)=>{const n=new FileReader;n.onload=()=>e(n.result),n.onerror=r,n.readAsText(t)})}async function wl(t){return JSON.parse(await AP(t))}var Cb=[{name:"System Fonts",fonts:[{name:"Default System Font",value:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif'},{name:"Consolas/Monaco",value:"Consolas, monaco, monospace"},{name:"Georgia",value:'Georgia, "Times New Roman", Times, serif'},{name:"Helvetica/Arial",value:'"Helvetica Neue", Helvetica, Arial, sans-serif'},{name:"Lucida",value:'"Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif'},{name:"Times New Roman",value:'"Times New Roman", Times, serif'},{name:"Trebuchet",value:'"Trebuchet MS", Verdana, sans-serif'},{name:"Verdana",value:"Verdana, Geneva, sans-serif"},{name:"Inherit",value:"inherit"}]},{name:"Google Fonts",fonts:["ABeeZee","ADLaM Display","AR One Sans","Abel","Abhaya Libre","Aboreto","Abril Fatface","Abyssinica SIL","Aclonica","Acme","Actor","Adamina","Advent Pro","Afacad","Afacad Flux","Agbalumo","Agdasima","Agu Display","Aguafina Script","Akatab","Akaya Kanadaka","Akaya Telivigala","Akronim","Akshar","Aladin","Alan Sans","Alata","Alatsi","Albert Sans","Aldrich","Alef","Alegreya","Alegreya SC","Alegreya Sans","Alegreya Sans SC","Aleo","Alex Brush","Alexandria","Alfa Slab One","Alice","Alike","Alike Angular","Alkalami","Alkatra","Allan","Allerta","Allerta Stencil","Allison","Allura","Almarai","Almendra","Almendra Display","Almendra SC","Alumni Sans","Alumni Sans Collegiate One","Alumni Sans Inline One","Alumni Sans Pinstripe","Alumni Sans SC","Amarante","Amaranth","Amarna","Amatic SC","Amethysta","Amiko","Amiri","Amiri Quran","Amita","Anaheim","Ancizar Sans","Ancizar Serif","Andada Pro","Andika","Anek Bangla","Anek Devanagari","Anek Gujarati","Anek Gurmukhi","Anek Kannada","Anek Latin","Anek Malayalam","Anek Odia","Anek Tamil","Anek Telugu","Angkor","Annapurna SIL","Annie Use Your Telescope","Anonymous Pro","Anta","Antic","Antic Didone","Antic Slab","Anton","Anton SC","Antonio","Anuphan","Anybody","Aoboshi One","Arapey","Arbutus","Arbutus Slab","Architects Daughter","Archivo","Archivo Black","Archivo Narrow","Are You Serious","Aref Ruqaa","Aref Ruqaa Ink","Arima","Arimo","Arizonia","Armata","Arsenal","Arsenal SC","Artifika","Arvo","Arya","Asap","Asap Condensed","Asar","Asimovian","Asset","Assistant","Asta Sans","Astloch","Asul","Athiti","Atkinson Hyperlegible","Atkinson Hyperlegible Mono","Atkinson Hyperlegible Next","Atma","Atomic Age","Aubrey","Audiowide","Autour One","Average","Average Sans","Averia Gruesa Libre","Averia Libre","Averia Sans Libre","Averia Serif Libre","Azeret Mono","B612","B612 Mono","BBH Bartle","BBH Bogle","BBH Hegarty","BIZ UDGothic","BIZ UDMincho","BIZ UDPGothic","BIZ UDPMincho","Babylonica","Bacasime Antique","Bad Script","Badeen Display","Bagel Fat One","Bahiana","Bahianita","Bai Jamjuree","Bakbak One","Ballet","Baloo 2","Baloo Bhai 2","Baloo Bhaijaan 2","Baloo Bhaina 2","Baloo Chettan 2","Baloo Da 2","Baloo Paaji 2","Baloo Tamma 2","Baloo Tammudu 2","Baloo Thambi 2","Balsamiq Sans","Balthazar","Bangers","Barlow","Barlow Condensed","Barlow Semi Condensed","Barriecito","Barrio","Basic","Baskervville","Baskervville SC","Battambang","Baumans","Bayon","Be Vietnam Pro","Beau Rivage","Bebas Neue","Beiruti","Belanosima","Belgrano","Bellefair","Belleza","Bellota","Bellota Text","BenchNine","Benne","Bentham","Berkshire Swash","Besley","Beth Ellen","Bevan","BhuTuka Expanded One","Big Shoulders","Big Shoulders Inline","Big Shoulders Stencil","Bigelow Rules","Bigshot One","Bilbo","Bilbo Swash Caps","BioRhyme","BioRhyme Expanded","Birthstone","Birthstone Bounce","Biryani","Bitcount","Bitcount Grid Double","Bitcount Grid Double Ink","Bitcount Grid Single","Bitcount Grid Single Ink","Bitcount Ink","Bitcount Prop Double","Bitcount Prop Double Ink","Bitcount Prop Single","Bitcount Prop Single Ink","Bitcount Single","Bitcount Single Ink","Bitter","Black And White Picture","Black Han Sans","Black Ops One","Blaka","Blaka Hollow","Blaka Ink","Blinker","Bodoni Moda","Bodoni Moda SC","Bokor","Boldonse","Bona Nova","Bona Nova SC","Bonbon","Bonheur Royale","Boogaloo","Borel","Bowlby One","Bowlby One SC","Braah One","Brawler","Bree Serif","Bricolage Grotesque","Bruno Ace","Bruno Ace SC","Brygada 1918","Bubblegum Sans","Bubbler One","Buda","Buenard","Bungee","Bungee Hairline","Bungee Inline","Bungee Outline","Bungee Shade","Bungee Spice","Bungee Tint","Butcherman","Butterfly Kids","Bytesized","Cabin","Cabin Condensed","Cabin Sketch","Cactus Classical Serif","Caesar Dressing","Cagliostro","Cairo","Cairo Play","Cal Sans","Caladea","Calistoga","Calligraffitti","Cambay","Cambo","Candal","Cantarell","Cantata One","Cantora One","Caprasimo","Capriola","Caramel","Carattere","Cardo","Carlito","Carme","Carrois Gothic","Carrois Gothic SC","Carter One","Cascadia Code","Cascadia Mono","Castoro","Castoro Titling","Catamaran","Caudex","Cause","Caveat","Caveat Brush","Cedarville Cursive","Ceviche One","Chakra Petch","Changa","Changa One","Chango","Charis SIL","Charm","Charmonman","Chathura","Chau Philomene One","Chela One","Chelsea Market","Chenla","Cherish","Cherry Bomb One","Cherry Cream Soda","Cherry Swash","Chewy","Chicle","Chilanka","Chiron GoRound TC","Chiron Hei HK","Chiron Sung HK","Chivo","Chivo Mono","Chocolate Classical Sans","Chokokutai","Chonburi","Cinzel","Cinzel Decorative","Clicker Script","Climate Crisis","Coda","Codystar","Coiny","Combo","Comfortaa","Comforter","Comforter Brush","Comic Neue","Comic Relief","Coming Soon","Comme","Commissioner","Concert One","Condiment","Content","Contrail One","Convergence","Cookie","Copse","Coral Pixels","Corben","Corinthia","Cormorant","Cormorant Garamond","Cormorant Infant","Cormorant SC","Cormorant Unicase","Cormorant Upright","Cossette Texte","Cossette Titre","Courgette","Courier Prime","Cousine","Coustard","Covered By Your Grace","Crafty Girls","Creepster","Crete Round","Crimson Pro","Crimson Text","Croissant One","Crushed","Cuprum","Cute Font","Cutive","Cutive Mono","DM Mono","DM Sans","DM Serif Display","DM Serif Text","Dai Banna SIL","Damion","Dancing Script","Danfo","Dangrek","Darker Grotesque","Darumadrop One","David Libre","Dawning of a New Day","Days One","Dekko","Dela Gothic One","Delicious Handrawn","Delius","Delius Swash Caps","Delius Unicase","Della Respira","Denk One","Devonshire","Dhurjati","Didact Gothic","Diphylleia","Diplomata","Diplomata SC","Do Hyeon","Dokdo","Domine","Donegal One","Dongle","Doppio One","Dorsa","Dosis","DotGothic16","Doto","Dr Sugiyama","Duru Sans","DynaPuff","Dynalight","EB Garamond","Eagle Lake","East Sea Dokdo","Eater","Economica","Eczar","Edu AU VIC WA NT Arrows","Edu AU VIC WA NT Dots","Edu AU VIC WA NT Guides","Edu AU VIC WA NT Hand","Edu AU VIC WA NT Pre","Edu NSW ACT Cursive","Edu NSW ACT Foundation","Edu NSW ACT Hand Pre","Edu QLD Beginner","Edu QLD Hand","Edu SA Beginner","Edu SA Hand","Edu TAS Beginner","Edu VIC WA NT Beginner","Edu VIC WA NT Hand","Edu VIC WA NT Hand Pre","El Messiri","Electrolize","Elms Sans","Elsie","Elsie Swash Caps","Emblema One","Emilys Candy","Encode Sans","Encode Sans Condensed","Encode Sans Expanded","Encode Sans SC","Encode Sans Semi Condensed","Encode Sans Semi Expanded","Engagement","Englebert","Enriqueta","Ephesis","Epilogue","Epunda Sans","Epunda Slab","Erica One","Esteban","Estonia","Euphoria Script","Ewert","Exile","Exo","Exo 2","Expletus Sans","Explora","Faculty Glyphic","Fahkwang","Familjen Grotesk","Fanwood Text","Farro","Farsan","Fascinate","Fascinate Inline","Faster One","Fasthand","Fauna One","Faustina","Federant","Federo","Felipa","Fenix","Festive","Figtree","Finger Paint","Finlandica","Fira Code","Fira Mono","Fira Sans","Fira Sans Condensed","Fira Sans Extra Condensed","Fjalla One","Fjord One","Flamenco","Flavors","Fleur De Leah","Flow Block","Flow Circular","Flow Rounded","Foldit","Fondamento","Fontdiner Swanky","Forum","Fragment Mono","Francois One","Frank Ruhl Libre","Fraunces","Freckle Face","Fredericka the Great","Fredoka","Freehand","Freeman","Fresca","Frijole","Fruktur","Fugaz One","Fuggles","Funnel Display","Funnel Sans","Fustat","Fuzzy Bubbles","GFS Didot","GFS Neohellenic","Ga Maamli","Gabarito","Gabriela","Gaegu","Gafata","Gajraj One","Galada","Galdeano","Galindo","Gamja Flower","Gantari","Gasoek One","Gayathri","Geist","Geist Mono","Gelasio","Gemunu Libre","Genos","Gentium Book Plus","Gentium Plus","Geo","Geologica","Geom","Georama","Geostar","Geostar Fill","Germania One","Gideon Roman","Gidole","Gidugu","Gilda Display","Girassol","Give You Glory","Glass Antiqua","Glegoo","Gloock","Gloria Hallelujah","Glory","Gluten","Goblin One","Gochi Hand","Goldman","Golos Text","Google Sans","Google Sans Code","Google Sans Flex","Gorditas","Gothic A1","Gotu","Goudy Bookletter 1911","Gowun Batang","Gowun Dodum","Graduate","Grand Hotel","Grandiflora One","Grandstander","Grape Nuts","Gravitas One","Great Vibes","Grechen Fuemen","Grenze","Grenze Gotisch","Grey Qo","Griffy","Gruppo","Gudea","Gugi","Gulzar","Gupter","Gurajada","Gwendolyn","Habibi","Hachi Maru Pop","Hahmlet","Halant","Hammersmith One","Hanalei","Hanalei Fill","Handjet","Handlee","Hanken Grotesk","Hanuman","Happy Monkey","Harmattan","Headland One","Hedvig Letters Sans","Hedvig Letters Serif","Heebo","Henny Penny","Hepta Slab","Herr Von Muellerhoff","Hi Melody","Hina Mincho","Hind","Hind Guntur","Hind Madurai","Hind Mysuru","Hind Siliguri","Hind Vadodara","Holtwood One SC","Homemade Apple","Homenaje","Honk","Host Grotesk","Hubballi","Hubot Sans","Huninn","Hurricane","IBM Plex Mono","IBM Plex Sans","IBM Plex Sans Arabic","IBM Plex Sans Condensed","IBM Plex Sans Devanagari","IBM Plex Sans Hebrew","IBM Plex Sans JP","IBM Plex Sans KR","IBM Plex Sans Thai","IBM Plex Sans Thai Looped","IBM Plex Serif","IM Fell DW Pica","IM Fell DW Pica SC","IM Fell Double Pica","IM Fell Double Pica SC","IM Fell English","IM Fell English SC","IM Fell French Canon","IM Fell French Canon SC","IM Fell Great Primer","IM Fell Great Primer SC","Iansui","Ibarra Real Nova","Iceberg","Iceland","Imbue","Imperial Script","Imprima","Inclusive Sans","Inconsolata","Inder","Indie Flower","Ingrid Darling","Inika","Inknut Antiqua","Inria Sans","Inria Serif","Inspiration","Instrument Sans","Instrument Serif","Intel One Mono","Inter","Inter Tight","Irish Grover","Island Moments","Istok Web","Italiana","Italianno","Itim","Jacquard 12","Jacquard 12 Charted","Jacquard 24","Jacquard 24 Charted","Jacquarda Bastarda 9","Jacquarda Bastarda 9 Charted","Jacques Francois","Jacques Francois Shadow","Jaini","Jaini Purva","Jaldi","Jaro","Jersey 10","Jersey 10 Charted","Jersey 15","Jersey 15 Charted","Jersey 20","Jersey 20 Charted","Jersey 25","Jersey 25 Charted","JetBrains Mono","Jim Nightshade","Joan","Jockey One","Jolly Lodger","Jomhuria","Jomolhari","Josefin Sans","Josefin Slab","Jost","Joti One","Jua","Judson","Julee","Julius Sans One","Junge","Jura","Just Another Hand","Just Me Again Down Here","K2D","Kablammo","Kadwa","Kaisei Decol","Kaisei HarunoUmi","Kaisei Opti","Kaisei Tokumin","Kalam","Kalnia","Kalnia Glaze","Kameron","Kanchenjunga","Kanit","Kantumruy Pro","Kapakana","Karantina","Karla","Karla Tamil Inclined","Karla Tamil Upright","Karma","Katibeh","Kaushan Script","Kavivanar","Kavoon","Kay Pho Du","Kdam Thmor Pro","Keania One","Kedebideri","Kelly Slab","Kenia","Khand","Khmer","Khula","Kings","Kirang Haerang","Kite One","Kiwi Maru","Klee One","Knewave","KoHo","Kodchasan","Kode Mono","Koh Santepheap","Kolker Brush","Konkhmer Sleokchher","Kosugi","Kosugi Maru","Kotta One","Koulen","Kranky","Kreon","Kristi","Krona One","Krub","Kufam","Kulim Park","Kumar One","Kumar One Outline","Kumbh Sans","Kurale","LXGW Marker Gothic","LXGW WenKai Mono TC","LXGW WenKai TC","La Belle Aurore","Labrada","Lacquer","Laila","Lakki Reddy","Lalezar","Lancelot","Langar","Lateef","Lato","Lavishly Yours","League Gothic","League Script","League Spartan","Leckerli One","Ledger","Lekton","Lemon","Lemonada","Lexend","Lexend Deca","Lexend Exa","Lexend Giga","Lexend Mega","Lexend Peta","Lexend Tera","Lexend Zetta","Libertinus Keyboard","Libertinus Math","Libertinus Mono","Libertinus Sans","Libertinus Serif","Libertinus Serif Display","Libre Barcode 128","Libre Barcode 128 Text","Libre Barcode 39","Libre Barcode 39 Extended","Libre Barcode 39 Extended Text","Libre Barcode 39 Text","Libre Barcode EAN13 Text","Libre Baskerville","Libre Bodoni","Libre Caslon Display","Libre Caslon Text","Libre Franklin","Licorice","Life Savers","Lilex","Lilita One","Lily Script One","Limelight","Linden Hill","Linefont","Lisu Bosa","Liter","Literata","Liu Jian Mao Cao","Livvic","Lobster","Lobster Two","Londrina Outline","Londrina Shadow","Londrina Sketch","Londrina Solid","Long Cang","Lora","Love Light","Love Ya Like A Sister","Loved by the King","Lovers Quarrel","Luckiest Guy","Lugrasimo","Lumanosimo","Lunasima","Lusitana","Lustria","Luxurious Roman","Luxurious Script","M PLUS 1","M PLUS 1 Code","M PLUS 1p","M PLUS 2","M PLUS Code Latin","M PLUS Rounded 1c","Ma Shan Zheng","Macondo","Macondo Swash Caps","Mada","Madimi One","Magra","Maiden Orange","Maitree","Major Mono Display","Mako","Mali","Mallanna","Maname","Mandali","Manjari","Manrope","Mansalva","Manuale","Manufacturing Consent","Marcellus","Marcellus SC","Marck Script","Margarine","Marhey","Markazi Text","Marko One","Marmelad","Martel","Martel Sans","Martian Mono","Marvel","Matangi","Mate","Mate SC","Matemasie","Material Icons","Material Icons Outlined","Material Icons Round","Material Icons Sharp","Material Icons Two Tone","Material Symbols","Material Symbols Outlined","Material Symbols Rounded","Material Symbols Sharp","Maven Pro","McLaren","Mea Culpa","Meddon","MedievalSharp","Medula One","Meera Inimai","Megrim","Meie Script","Menbere","Meow Script","Merienda","Merriweather","Merriweather Sans","Metal","Metal Mania","Metamorphous","Metrophobic","Michroma","Micro 5","Micro 5 Charted","Milonga","Miltonian","Miltonian Tattoo","Mina","Mingzat","Miniver","Miriam Libre","Mirza","Miss Fajardose","Mitr","Mochiy Pop One","Mochiy Pop P One","Modak","Modern Antiqua","Moderustic","Mogra","Mohave","Moirai One","Molengo","Molle","Momo Signature","Momo Trust Display","Momo Trust Sans","Mona Sans","Monda","Monofett","Monomakh","Monomaniac One","Monoton","Monsieur La Doulaise","Montaga","Montagu Slab","MonteCarlo","Montez","Montserrat","Montserrat Alternates","Montserrat Underline","Moo Lah Lah","Mooli","Moon Dance","Moul","Moulpali","Mountains of Christmas","Mouse Memoirs","Mozilla Headline","Mozilla Text","Mr Bedfort","Mr Dafoe","Mr De Haviland","Mrs Saint Delafield","Mrs Sheppards","Ms Madi","Mukta","Mukta Mahee","Mukta Malar","Mukta Vaani","Mulish","Murecho","MuseoModerno","My Soul","Mynerve","Mystery Quest","NTR","Nabla","Namdhinggo","Nanum Brush Script","Nanum Gothic","Nanum Gothic Coding","Nanum Myeongjo","Nanum Pen Script","Narnoor","Nata Sans","National Park","Neonderthaw","Nerko One","Neucha","Neuton","New Amsterdam","New Rocker","New Tegomin","News Cycle","Newsreader","Niconne","Niramit","Nixie One","Nobile","Nokora","Norican","Nosifer","Notable","Nothing You Could Do","Noticia Text","Noto Color Emoji","Noto Emoji","Noto Kufi Arabic","Noto Music","Noto Naskh Arabic","Noto Nastaliq Urdu","Noto Rashi Hebrew","Noto Sans","Noto Sans Adlam","Noto Sans Adlam Unjoined","Noto Sans Anatolian Hieroglyphs","Noto Sans Arabic","Noto Sans Armenian","Noto Sans Avestan","Noto Sans Balinese","Noto Sans Bamum","Noto Sans Bassa Vah","Noto Sans Batak","Noto Sans Bengali","Noto Sans Bhaiksuki","Noto Sans Brahmi","Noto Sans Buginese","Noto Sans Buhid","Noto Sans Canadian Aboriginal","Noto Sans Carian","Noto Sans Caucasian Albanian","Noto Sans Chakma","Noto Sans Cham","Noto Sans Cherokee","Noto Sans Chorasmian","Noto Sans Coptic","Noto Sans Cuneiform","Noto Sans Cypriot","Noto Sans Cypro Minoan","Noto Sans Deseret","Noto Sans Devanagari","Noto Sans Display","Noto Sans Duployan","Noto Sans Egyptian Hieroglyphs","Noto Sans Elbasan","Noto Sans Elymaic","Noto Sans Ethiopic","Noto Sans Georgian","Noto Sans Glagolitic","Noto Sans Gothic","Noto Sans Grantha","Noto Sans Gujarati","Noto Sans Gunjala Gondi","Noto Sans Gurmukhi","Noto Sans HK","Noto Sans Hanifi Rohingya","Noto Sans Hanunoo","Noto Sans Hatran","Noto Sans Hebrew","Noto Sans Imperial Aramaic","Noto Sans Indic Siyaq Numbers","Noto Sans Inscriptional Pahlavi","Noto Sans Inscriptional Parthian","Noto Sans JP","Noto Sans Javanese","Noto Sans KR","Noto Sans Kaithi","Noto Sans Kannada","Noto Sans Kawi","Noto Sans Kayah Li","Noto Sans Kharoshthi","Noto Sans Khmer","Noto Sans Khojki","Noto Sans Khudawadi","Noto Sans Lao","Noto Sans Lao Looped","Noto Sans Lepcha","Noto Sans Limbu","Noto Sans Linear A","Noto Sans Linear B","Noto Sans Lisu","Noto Sans Lycian","Noto Sans Lydian","Noto Sans Mahajani","Noto Sans Malayalam","Noto Sans Mandaic","Noto Sans Manichaean","Noto Sans Marchen","Noto Sans Masaram Gondi","Noto Sans Math","Noto Sans Mayan Numerals","Noto Sans Medefaidrin","Noto Sans Meetei Mayek","Noto Sans Mende Kikakui","Noto Sans Meroitic","Noto Sans Miao","Noto Sans Modi","Noto Sans Mongolian","Noto Sans Mono","Noto Sans Mro","Noto Sans Multani","Noto Sans Myanmar","Noto Sans NKo","Noto Sans NKo Unjoined","Noto Sans Nabataean","Noto Sans Nag Mundari","Noto Sans Nandinagari","Noto Sans New Tai Lue","Noto Sans Newa","Noto Sans Nushu","Noto Sans Ogham","Noto Sans Ol Chiki","Noto Sans Old Hungarian","Noto Sans Old Italic","Noto Sans Old North Arabian","Noto Sans Old Permic","Noto Sans Old Persian","Noto Sans Old Sogdian","Noto Sans Old South Arabian","Noto Sans Old Turkic","Noto Sans Oriya","Noto Sans Osage","Noto Sans Osmanya","Noto Sans Pahawh Hmong","Noto Sans Palmyrene","Noto Sans Pau Cin Hau","Noto Sans PhagsPa","Noto Sans Phoenician","Noto Sans Psalter Pahlavi","Noto Sans Rejang","Noto Sans Runic","Noto Sans SC","Noto Sans Samaritan","Noto Sans Saurashtra","Noto Sans Sharada","Noto Sans Shavian","Noto Sans Siddham","Noto Sans SignWriting","Noto Sans Sinhala","Noto Sans Sogdian","Noto Sans Sora Sompeng","Noto Sans Soyombo","Noto Sans Sundanese","Noto Sans Sunuwar","Noto Sans Syloti Nagri","Noto Sans Symbols","Noto Sans Symbols 2","Noto Sans Syriac","Noto Sans Syriac Eastern","Noto Sans Syriac Western","Noto Sans TC","Noto Sans Tagalog","Noto Sans Tagbanwa","Noto Sans Tai Le","Noto Sans Tai Tham","Noto Sans Tai Viet","Noto Sans Takri","Noto Sans Tamil","Noto Sans Tamil Supplement","Noto Sans Tangsa","Noto Sans Telugu","Noto Sans Thaana","Noto Sans Thai","Noto Sans Thai Looped","Noto Sans Tifinagh","Noto Sans Tirhuta","Noto Sans Ugaritic","Noto Sans Vai","Noto Sans Vithkuqi","Noto Sans Wancho","Noto Sans Warang Citi","Noto Sans Yi","Noto Sans Zanabazar Square","Noto Serif","Noto Serif Ahom","Noto Serif Armenian","Noto Serif Balinese","Noto Serif Bengali","Noto Serif Devanagari","Noto Serif Display","Noto Serif Dives Akuru","Noto Serif Dogra","Noto Serif Ethiopic","Noto Serif Georgian","Noto Serif Grantha","Noto Serif Gujarati","Noto Serif Gurmukhi","Noto Serif HK","Noto Serif Hebrew","Noto Serif Hentaigana","Noto Serif JP","Noto Serif KR","Noto Serif Kannada","Noto Serif Khitan Small Script","Noto Serif Khmer","Noto Serif Khojki","Noto Serif Lao","Noto Serif Makasar","Noto Serif Malayalam","Noto Serif Myanmar","Noto Serif NP Hmong","Noto Serif Old Uyghur","Noto Serif Oriya","Noto Serif Ottoman Siyaq","Noto Serif SC","Noto Serif Sinhala","Noto Serif TC","Noto Serif Tamil","Noto Serif Tangut","Noto Serif Telugu","Noto Serif Thai","Noto Serif Tibetan","Noto Serif Todhri","Noto Serif Toto","Noto Serif Vithkuqi","Noto Serif Yezidi","Noto Traditional Nushu","Noto Znamenny Musical Notation","Nova Cut","Nova Flat","Nova Mono","Nova Oval","Nova Round","Nova Script","Nova Slim","Nova Square","Numans","Nunito","Nunito Sans","Nuosu SIL","Odibee Sans","Odor Mean Chey","Offside","Oi","Ojuju","Old Standard TT","Oldenburg","Ole","Oleo Script","Oleo Script Swash Caps","Onest","Oooh Baby","Open Sans","Oranienbaum","Orbit","Orbitron","Oregano","Orelega One","Orienta","Original Surfer","Oswald","Outfit","Over the Rainbow","Overlock","Overlock SC","Overpass","Overpass Mono","Ovo","Oxanium","Oxygen","Oxygen Mono","PT Mono","PT Sans","PT Sans Caption","PT Sans Narrow","PT Serif","PT Serif Caption","Pacifico","Padauk","Padyakke Expanded One","Palanquin","Palanquin Dark","Palette Mosaic","Pangolin","Paprika","Parastoo","Parisienne","Parkinsans","Passero One","Passion One","Passions Conflict","Pathway Extreme","Pathway Gothic One","Patrick Hand","Patrick Hand SC","Pattaya","Patua One","Pavanam","Paytone One","Peddana","Peralta","Permanent Marker","Petemoss","Petit Formal Script","Petrona","Phetsarath","Philosopher","Phudu","Piazzolla","Piedra","Pinyon Script","Pirata One","Pixelify Sans","Plaster","Platypi","Play","Playball","Playfair","Playfair Display","Playfair Display SC","Playpen Sans","Playpen Sans Arabic","Playpen Sans Deva","Playpen Sans Hebrew","Playpen Sans Thai","Playwrite AR","Playwrite AR Guides","Playwrite AT","Playwrite AT Guides","Playwrite AU NSW","Playwrite AU NSW Guides","Playwrite AU QLD","Playwrite AU QLD Guides","Playwrite AU SA","Playwrite AU SA Guides","Playwrite AU TAS","Playwrite AU TAS Guides","Playwrite AU VIC","Playwrite AU VIC Guides","Playwrite BE VLG","Playwrite BE VLG Guides","Playwrite BE WAL","Playwrite BE WAL Guides","Playwrite BR","Playwrite BR Guides","Playwrite CA","Playwrite CA Guides","Playwrite CL","Playwrite CL Guides","Playwrite CO","Playwrite CO Guides","Playwrite CU","Playwrite CU Guides","Playwrite CZ","Playwrite CZ Guides","Playwrite DE Grund","Playwrite DE Grund Guides","Playwrite DE LA","Playwrite DE LA Guides","Playwrite DE SAS","Playwrite DE SAS Guides","Playwrite DE VA","Playwrite DE VA Guides","Playwrite DK Loopet","Playwrite DK Loopet Guides","Playwrite DK Uloopet","Playwrite DK Uloopet Guides","Playwrite ES","Playwrite ES Deco","Playwrite ES Deco Guides","Playwrite ES Guides","Playwrite FR Moderne","Playwrite FR Moderne Guides","Playwrite FR Trad","Playwrite FR Trad Guides","Playwrite GB J","Playwrite GB J Guides","Playwrite GB S","Playwrite GB S Guides","Playwrite HR","Playwrite HR Guides","Playwrite HR Lijeva","Playwrite HR Lijeva Guides","Playwrite HU","Playwrite HU Guides","Playwrite ID","Playwrite ID Guides","Playwrite IE","Playwrite IE Guides","Playwrite IN","Playwrite IN Guides","Playwrite IS","Playwrite IS Guides","Playwrite IT Moderna","Playwrite IT Moderna Guides","Playwrite IT Trad","Playwrite IT Trad Guides","Playwrite MX","Playwrite MX Guides","Playwrite NG Modern","Playwrite NG Modern Guides","Playwrite NL","Playwrite NL Guides","Playwrite NO","Playwrite NO Guides","Playwrite NZ","Playwrite NZ Guides","Playwrite PE","Playwrite PE Guides","Playwrite PL","Playwrite PL Guides","Playwrite PT","Playwrite PT Guides","Playwrite RO","Playwrite RO Guides","Playwrite SK","Playwrite SK Guides","Playwrite TZ","Playwrite TZ Guides","Playwrite US Modern","Playwrite US Modern Guides","Playwrite US Trad","Playwrite US Trad Guides","Playwrite VN","Playwrite VN Guides","Playwrite ZA","Playwrite ZA Guides","Plus Jakarta Sans","Pochaevsk","Podkova","Poetsen One","Poiret One","Poller One","Poltawski Nowy","Poly","Pompiere","Ponnala","Ponomar","Pontano Sans","Poor Story","Poppins","Port Lligat Sans","Port Lligat Slab","Potta One","Pragati Narrow","Praise","Prata","Preahvihear","Press Start 2P","Pridi","Princess Sofia","Prociono","Prompt","Prosto One","Protest Guerrilla","Protest Revolution","Protest Riot","Protest Strike","Proza Libre","Public Sans","Puppies Play","Puritan","Purple Purse","Qahiri","Quando","Quantico","Quattrocento","Quattrocento Sans","Questrial","Quicksand","Quintessential","Qwigley","Qwitcher Grypen","REM","Racing Sans One","Radio Canada","Radio Canada Big","Radley","Rajdhani","Rakkas","Raleway","Raleway Dots","Ramabhadra","Ramaraja","Rambla","Rammetto One","Rampart One","Ranchers","Rancho","Ranga","Rasa","Rationale","Ravi Prakash","Readex Pro","Recursive","Red Hat Display","Red Hat Mono","Red Hat Text","Red Rose","Redacted","Redacted Script","Reddit Mono","Reddit Sans","Reddit Sans Condensed","Redressed","Reem Kufi","Reem Kufi Fun","Reem Kufi Ink","Reenie Beanie","Reggae One","Rethink Sans","Revalia","Rhodium Libre","Ribeye","Ribeye Marrow","Righteous","Risque","Road Rage","Roboto","Roboto Condensed","Roboto Flex","Roboto Mono","Roboto Serif","Roboto Slab","Rochester","Rock 3D","Rock Salt","RocknRoll One","Rokkitt","Romanesco","Ropa Sans","Rosario","Rosarivo","Rouge Script","Rowdies","Rozha One","Rubik","Rubik 80s Fade","Rubik Beastly","Rubik Broken Fax","Rubik Bubbles","Rubik Burned","Rubik Dirt","Rubik Distressed","Rubik Doodle Shadow","Rubik Doodle Triangles","Rubik Gemstones","Rubik Glitch","Rubik Glitch Pop","Rubik Iso","Rubik Lines","Rubik Maps","Rubik Marker Hatch","Rubik Maze","Rubik Microbe","Rubik Mono One","Rubik Moonrocks","Rubik Pixels","Rubik Puddles","Rubik Scribble","Rubik Spray Paint","Rubik Storm","Rubik Vinyl","Rubik Wet Paint","Ruda","Rufina","Ruge Boogie","Ruluko","Rum Raisin","Ruslan Display","Russo One","Ruthie","Ruwudu","Rye","STIX Two Text","SUSE","SUSE Mono","Sacramento","Sahitya","Sail","Saira","Saira Condensed","Saira Extra Condensed","Saira Semi Condensed","Saira Stencil One","Salsa","Sanchez","Sancreek","Sankofa Display","Sansation","Sansita","Sansita Swashed","Sarabun","Sarala","Sarina","Sarpanch","Sassy Frass","Satisfy","Savate","Sawarabi Gothic","Sawarabi Mincho","Scada","Scheherazade New","Schibsted Grotesk","Schoolbell","Science Gothic","Scope One","Seaweed Script","Secular One","Sedan","Sedan SC","Sedgwick Ave","Sedgwick Ave Display","Sekuya","Sen","Send Flowers","Sevillana","Seymour One","Shadows Into Light","Shadows Into Light Two","Shafarik","Shalimar","Shantell Sans","Shanti","Share","Share Tech","Share Tech Mono","Shippori Antique","Shippori Antique B1","Shippori Mincho","Shippori Mincho B1","Shizuru","Shojumaru","Short Stack","Shrikhand","Siemreap","Sigmar","Sigmar One","Signika","Signika Negative","Silkscreen","Simonetta","Single Day","Sintony","Sirin Stencil","Sirivennela","Six Caps","Sixtyfour","Sixtyfour Convergence","Skranji","Slabo 13px","Slabo 27px","Slackey","Slackside One","Smokum","Smooch","Smooch Sans","Smythe","Sniglet","Snippet","Snowburst One","Sofadi One","Sofia","Sofia Sans","Sofia Sans Condensed","Sofia Sans Extra Condensed","Sofia Sans Semi Condensed","Solitreo","Solway","Sometype Mono","Song Myung","Sono","Sonsie One","Sora","Sorts Mill Goudy","Sour Gummy","Source Code Pro","Source Sans 3","Source Serif 4","Space Grotesk","Space Mono","Special Elite","Special Gothic","Special Gothic Condensed One","Special Gothic Expanded One","Spectral","Spectral SC","Spicy Rice","Spinnaker","Spirax","Splash","Spline Sans","Spline Sans Mono","Squada One","Square Peg","Sree Krushnadevaraya","Sriracha","Srisakdi","Staatliches","Stack Sans Headline","Stack Sans Notch","Stack Sans Text","Stalemate","Stalinist One","Stardos Stencil","Stick","Stick No Bills","Stint Ultra Condensed","Stint Ultra Expanded","Stoke","Story Script","Strait","Style Script","Stylish","Sue Ellen Francisco","Suez One","Sulphur Point","Sumana","Sunflower","Sunshiney","Supermercado One","Sura","Suranna","Suravaram","Suwannaphum","Swanky and Moo Moo","Syncopate","Syne","Syne Mono","Syne Tactile","TASA Explorer","TASA Orbiter","Tac One","Tagesschrift","Tai Heritage Pro","Tajawal","Tangerine","Tapestry","Taprom","Tauri","Taviraj","Teachers","Teko","Tektur","Telex","Tenali Ramakrishna","Tenor Sans","Text Me One","Texturina","Thasadith","The Girl Next Door","The Nautigal","Tienne","TikTok Sans","Tillana","Tilt Neon","Tilt Prism","Tilt Warp","Timmana","Tinos","Tiny5","Tiro Bangla","Tiro Devanagari Hindi","Tiro Devanagari Marathi","Tiro Devanagari Sanskrit","Tiro Gurmukhi","Tiro Kannada","Tiro Tamil","Tiro Telugu","Tirra","Titan One","Titillium Web","Tomorrow","Tourney","Trade Winds","Train One","Triodion","Trirong","Trispace","Trocchi","Trochut","Truculenta","Trykker","Tsukimi Rounded","Tuffy","Tulpen One","Turret Road","Twinkle Star","Ubuntu","Ubuntu Condensed","Ubuntu Mono","Ubuntu Sans","Ubuntu Sans Mono","Uchen","Ultra","Unbounded","Uncial Antiqua","Underdog","Unica One","UnifrakturCook","UnifrakturMaguntia","Unkempt","Unlock","Unna","UoqMunThenKhung","Updock","Urbanist","VT323","Vampiro One","Varela","Varela Round","Varta","Vast Shadow","Vazirmatn","Vend Sans","Vesper Libre","Viaoda Libre","Vibes","Vibur","Victor Mono","Vidaloka","Viga","Vina Sans","Voces","Volkhov","Vollkorn","Vollkorn SC","Voltaire","Vujahday Script","WDXL Lubrifont JP N","WDXL Lubrifont SC","WDXL Lubrifont TC","Waiting for the Sunrise","Wallpoet","Walter Turncoat","Warnes","Water Brush","Waterfall","Wavefont","Wellfleet","Wendy One","Whisper","WindSong","Winky Rough","Winky Sans","Wire One","Wittgenstein","Wix Madefor Display","Wix Madefor Text","Work Sans","Workbench","Xanh Mono","Yaldevi","Yanone Kaffeesatz","Yantramanav","Yarndings 12","Yarndings 12 Charted","Yarndings 20","Yarndings 20 Charted","Yatra One","Yellowtail","Yeon Sung","Yeseva One","Yesteryear","Yomogi","Young Serif","Yrsa","Ysabeau","Ysabeau Infant","Ysabeau Office","Ysabeau SC","Yuji Boku","Yuji Hentaigana Akari","Yuji Hentaigana Akebono","Yuji Mai","Yuji Syuku","Yusei Magic","ZCOOL KuaiLe","ZCOOL QingKe HuangYou","ZCOOL XiaoWei","Zain","Zalando Sans","Zalando Sans Expanded","Zalando Sans SemiExpanded","Zen Antique","Zen Antique Soft","Zen Dots","Zen Kaku Gothic Antique","Zen Kaku Gothic New","Zen Kurenaido","Zen Loop","Zen Maru Gothic","Zen Old Mincho","Zen Tokyo Zoo","Zeyada","Zhi Mang Xing","Zilla Slab","Zilla Slab Highlight"]}];const wb=sn("Fonts",{state:()=>({fonts:OP(structuredClone(Cb)),loaded:[]}),getters:{chunks(){const e=[],{fonts:r}=this.fonts.find(({name:n})=>n==="Google Fonts");for(let n=0,a=r.length;n<a;n+=20)e.push(r.slice(n,n+20).map(({name:o})=>o));return e}},actions:{search(t){return this.fonts.map(({name:e,fonts:r})=>({name:e,fonts:r.filter(n=>da(n.name,t))})).filter(e=>e.fonts.length)},load(t){if(t=t.replaceAll("'",""),this.loaded.includes(t))return;const e=this.chunks.find(r=>r.includes(t));e&&(un.css(`https://fonts.googleapis.com/css?family=${e.map(encodeURIComponent).join("|")}`),this.loaded=this.loaded.concat(e))},getFontName(t){if(t){for(const e of this.fonts)for(const r of e.fonts)if(kh(r.value)===kh(t))return r.name}return kh(t)}}});function kh(t){return t?.replace(/^(['"]?)(.*?)\1/,"$2")}function OP(t){for(const e of t)e.fonts=(e.fonts||[]).map(r=>r.value?r:{name:r,value:`'${r}'`});return t}const NP={name:"FontPicker",props:{value:String},data:()=>({search:"",active:!1}),computed:{groups(){return this.Fonts.search(this.search)}},watch:{search(){this.$nextTick(this.check),this.active=!1}},beforeCreate(){this.Fonts=wb()},mounted(){this.observer=new ResizeObserver(()=>this.check()),this.observer.observe(this.$el)},destroyed(){this.observer.disconnect()},methods:{next(t=1){const e=this.getFontListItems();if(!e.length)return;const r=ke.$(".uk-active",this.$refs.fonts),n=r?ke.index(e,r)+t:t===1?0:-1;if(n>e.length-1)return;if(n<0){this.active=!1;return}const a=e[n];this.active=a.dataset.name,PP(a,this.$refs.overflow)},check(){const{top:t,bottom:e,left:r,right:n,height:a}=this.$refs.overflow.getBoundingClientRect(),o={top:t-a,bottom:e+a,left:r,right:n};this.getFontListItems().filter(c=>ke.intersectRect(c.getBoundingClientRect(),o)).forEach(c=>this.Fonts.load(c.dataset.value))},select(t){this.$emit("input",t),this.$emit("resolve",t)},getFontListItems(){return ke.$$("li",this.$refs.fonts).filter(t=>ke.$("a",t))}}};function PP(t,e){const r=t.getBoundingClientRect(),n=e.getBoundingClientRect(),a=r.top<n.top?"top":r.bottom>n.bottom?"bottom":!1;a&&(e.scrollTop+=r[a]-n[a])}var IP=function(){var e=this,r=e._self._c;return r("div",[r("div",{staticClass:"yo-dropdown-header"},[r("div",{staticClass:"uk-search uk-search-default uk-width-1-1"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.search,expression:"search"}],staticClass:"uk-search-input",attrs:{placeholder:e.$t("Search"),type:"search",autofocus:""},domProps:{value:e.search},on:{keydown:[function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:e.select(e.active||e.search)},function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"down",40,n.key,["Down","ArrowDown"])?null:(n.preventDefault(),e.next())},function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"up",38,n.key,["Up","ArrowUp"])?null:(n.preventDefault(),e.next(-1))}],input:function(n){n.target.composing||(e.search=n.target.value)}}}),e._v(" "),r("span",{staticClass:"uk-search-icon-flip",attrs:{"uk-search-icon":""}})])]),e._v(" "),r("div",{ref:"overflow",staticClass:"yo-dropdown-body uk-overflow-auto uk-height-max-large",on:{"&scroll":function(n){return e.check.apply(null,arguments)}}},[r("ul",{directives:[{name:"show",rawName:"v-show",value:e.groups.length,expression:"groups.length"}],ref:"fonts",staticClass:"uk-nav uk-dropdown-nav"},[e._l(e.groups,function(n,a){return[a>0?r("li",{key:`${n.name}-divider`,staticClass:"uk-nav-divider"}):e._e(),e._v(" "),r("li",{key:n.name,staticClass:"uk-nav-header"},[e._v(e._s(e.$t(n.name)))]),e._v(" "),e._l(n.fonts,function({name:o,value:c}){return r("li",{key:o,class:{"uk-active":e.active===o},attrs:{"data-name":o,"data-value":c},on:{mouseenter:function(d){e.active=o}}},[r("a",{staticClass:"uk-text-truncate",style:{fontFamily:c},attrs:{href:""},on:{click:function(d){return d.preventDefault(),e.select(c)}}},[e._v(e._s(o))])])})]})],2),e._v(" "),r("span",{directives:[{name:"show",rawName:"v-show",value:!e.groups.length,expression:"!groups.length"}]},[e._v(e._s(e.$t("No font found. Press enter if you are adding a custom font.")))])])])},LP=[],RP=Q(NP,IP,LP,!1),DP=RP.exports;function Eh(t,e,r,n){for(var a=t.length,o=r+(n?1:-1);n?o--:++o<a;)if(e(t[o],o,t))return o;return-1}function MP(t){return t!==t}function $P(t,e,r){for(var n=r-1,a=t.length;++n<a;)if(t[n]===e)return n;return-1}function Sl(t,e,r){return e===e?$P(t,e,r):Eh(t,MP,r)}var FP=9007199254740991;function Th(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=FP}function Kn(t){return t!=null&&Th(t.length)&&!zn(t)}var BP=/\s/;function Sb(t){for(var e=t.length;e--&&BP.test(t.charAt(e)););return e}var HP=/^\s+/;function UP(t){return t&&t.slice(0,Sb(t)+1).replace(HP,"")}var jP="[object Symbol]";function Za(t){return typeof t=="symbol"||yr(t)&&yi(t)==jP}var xb=NaN,WP=/^[-+]0x[0-9a-f]+$/i,GP=/^0b[01]+$/i,zP=/^0o[0-7]+$/i,qP=parseInt;function Ch(t){if(typeof t=="number")return t;if(Za(t))return xb;if(_t(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=_t(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=UP(t);var r=GP.test(t);return r||zP.test(t)?qP(t.slice(2),r?2:8):WP.test(t)?xb:+t}var Ab=1/0,YP=17976931348623157e292;function KP(t){if(!t)return t===0?t:0;if(t=Ch(t),t===Ab||t===-Ab){var e=t<0?-1:1;return e*YP}return t===t?t:0}function xl(t){var e=KP(t),r=e%1;return e===e?r?e-r:e:0}function Ei(t,e){for(var r=-1,n=t==null?0:t.length,a=Array(n);++r<n;)a[r]=e(t[r],r,t);return a}function XP(t,e){return Ei(e,function(r){return t[r]})}function VP(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var QP="[object Arguments]";function Ob(t){return yr(t)&&yi(t)==QP}var Nb=Object.prototype,JP=Nb.hasOwnProperty,ZP=Nb.propertyIsEnumerable,es=Ob((function(){return arguments})())?Ob:function(t){return yr(t)&&JP.call(t,"callee")&&!ZP.call(t,"callee")};function eI(){return!1}var Pb=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ib=Pb&&typeof module=="object"&&module&&!module.nodeType&&module,tI=Ib&&Ib.exports===Pb,Lb=tI?on.Buffer:void 0,rI=Lb?Lb.isBuffer:void 0,ts=rI||eI,nI=9007199254740991,iI=/^(?:0|[1-9]\d*)$/;function Al(t,e){var r=typeof t;return e=e??nI,!!e&&(r=="number"||r!="symbol"&&iI.test(t))&&t>-1&&t%1==0&&t<e}var aI="[object Arguments]",sI="[object Array]",oI="[object Boolean]",uI="[object Date]",lI="[object Error]",cI="[object Function]",fI="[object Map]",dI="[object Number]",hI="[object Object]",pI="[object RegExp]",mI="[object Set]",vI="[object String]",gI="[object WeakMap]",_I="[object ArrayBuffer]",bI="[object DataView]",yI="[object Float32Array]",kI="[object Float64Array]",EI="[object Int8Array]",TI="[object Int16Array]",CI="[object Int32Array]",wI="[object Uint8Array]",SI="[object Uint8ClampedArray]",xI="[object Uint16Array]",AI="[object Uint32Array]",kt={};kt[yI]=kt[kI]=kt[EI]=kt[TI]=kt[CI]=kt[wI]=kt[SI]=kt[xI]=kt[AI]=!0,kt[aI]=kt[sI]=kt[_I]=kt[oI]=kt[bI]=kt[uI]=kt[lI]=kt[cI]=kt[fI]=kt[dI]=kt[hI]=kt[pI]=kt[mI]=kt[vI]=kt[gI]=!1;function OI(t){return yr(t)&&Th(t.length)&&!!kt[yi(t)]}function Ol(t){return function(e){return t(e)}}var Rb=typeof exports=="object"&&exports&&!exports.nodeType&&exports,So=Rb&&typeof module=="object"&&module&&!module.nodeType&&module,NI=So&&So.exports===Rb,wh=NI&&G0.process,rs=(function(){try{var t=So&&So.require&&So.require("util").types;return t||wh&&wh.binding&&wh.binding("util")}catch{}})(),Db=rs&&rs.isTypedArray,Nl=Db?Ol(Db):OI,PI=Object.prototype,II=PI.hasOwnProperty;function Mb(t,e){var r=St(t),n=!r&&es(t),a=!r&&!n&&ts(t),o=!r&&!n&&!a&&Nl(t),c=r||n||a||o,d=c?VP(t.length,String):[],p=d.length;for(var v in t)(e||II.call(t,v))&&!(c&&(v=="length"||a&&(v=="offset"||v=="parent")||o&&(v=="buffer"||v=="byteLength"||v=="byteOffset")||Al(v,p)))&&d.push(v);return d}var LI=Object.prototype;function Pl(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||LI;return t===r}function $b(t,e){return function(r){return t(e(r))}}var RI=$b(Object.keys,Object),DI=Object.prototype,MI=DI.hasOwnProperty;function Fb(t){if(!Pl(t))return RI(t);var e=[];for(var r in Object(t))MI.call(t,r)&&r!="constructor"&&e.push(r);return e}function Xn(t){return Kn(t)?Mb(t):Fb(t)}function $I(t){return t==null?[]:XP(t,Xn(t))}var FI=Math.max;function BI(t,e,r,n){t=Kn(t)?t:$I(t),r=r?xl(r):0;var a=t.length;return r<0&&(r=FI(a+r,0)),Sn(t)?r<=a&&t.indexOf(e,r)>-1:!!a&&Sl(t,e,r)>-1}function Bb(t,e,r,n){var a=-1,o=t==null?0:t.length;for(n&&o&&(r=t[++a]);++a<o;)r=e(r,t[a],a,t);return r}function HI(t){return function(e,r,n){for(var a=-1,o=Object(e),c=n(e),d=c.length;d--;){var p=c[++a];if(r(o[p],p,o)===!1)break}return e}}var Hb=HI();function Sh(t,e){return t&&Hb(t,e,Xn)}function UI(t,e){return function(r,n){if(r==null)return r;if(!Kn(r))return t(r,n);for(var a=r.length,o=-1,c=Object(r);++o<a&&n(c[o],o,c)!==!1;);return r}}var xo=UI(Sh);function jI(){this.__data__=new qn,this.size=0}function WI(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}function GI(t){return this.__data__.get(t)}function zI(t){return this.__data__.has(t)}var qI=200;function YI(t,e){var r=this.__data__;if(r instanceof qn){var n=r.__data__;if(!bo||n.length<qI-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Yn(n)}return r.set(t,e),this.size=r.size,this}function ln(t){var e=this.__data__=new qn(t);this.size=e.size}ln.prototype.clear=jI,ln.prototype.delete=WI,ln.prototype.get=GI,ln.prototype.has=zI,ln.prototype.set=YI;var KI="__lodash_hash_undefined__";function XI(t){return this.__data__.set(t,KI),this}function VI(t){return this.__data__.has(t)}function ns(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new Yn;++e<r;)this.add(t[e])}ns.prototype.add=ns.prototype.push=XI,ns.prototype.has=VI;function QI(t,e){for(var r=-1,n=t==null?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}function xh(t,e){return t.has(e)}var JI=1,ZI=2;function Ub(t,e,r,n,a,o){var c=r&JI,d=t.length,p=e.length;if(d!=p&&!(c&&p>d))return!1;var v=o.get(t),b=o.get(e);if(v&&b)return v==e&&b==t;var C=-1,T=!0,A=r&ZI?new ns:void 0;for(o.set(t,e),o.set(e,t);++C<d;){var F=t[C],G=e[C];if(n)var j=c?n(G,F,C,e,t,o):n(F,G,C,t,e,o);if(j!==void 0){if(j)continue;T=!1;break}if(A){if(!QI(e,function(O,x){if(!xh(A,x)&&(F===O||a(F,O,r,n,o)))return A.push(x)})){T=!1;break}}else if(!(F===G||a(F,G,r,n,o))){T=!1;break}}return o.delete(t),o.delete(e),T}var Il=on.Uint8Array;function e3(t){var e=-1,r=Array(t.size);return t.forEach(function(n,a){r[++e]=[a,n]}),r}function Ah(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var t3=1,r3=2,n3="[object Boolean]",i3="[object Date]",a3="[object Error]",s3="[object Map]",o3="[object Number]",u3="[object RegExp]",l3="[object Set]",c3="[object String]",f3="[object Symbol]",d3="[object ArrayBuffer]",h3="[object DataView]",jb=Kr?Kr.prototype:void 0,Oh=jb?jb.valueOf:void 0;function p3(t,e,r,n,a,o,c){switch(r){case h3:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case d3:return!(t.byteLength!=e.byteLength||!o(new Il(t),new Il(e)));case n3:case i3:case o3:return _o(+t,+e);case a3:return t.name==e.name&&t.message==e.message;case u3:case c3:return t==e+"";case s3:var d=e3;case l3:var p=n&t3;if(d||(d=Ah),t.size!=e.size&&!p)return!1;var v=c.get(t);if(v)return v==e;n|=r3,c.set(t,e);var b=Ub(d(t),d(e),n,a,o,c);return c.delete(t),b;case f3:if(Oh)return Oh.call(t)==Oh.call(e)}return!1}function Nh(t,e){for(var r=-1,n=e.length,a=t.length;++r<n;)t[a+r]=e[r];return t}function Wb(t,e,r){var n=e(t);return St(t)?n:Nh(n,r(t))}function Gb(t,e){for(var r=-1,n=t==null?0:t.length,a=0,o=[];++r<n;){var c=t[r];e(c,r,t)&&(o[a++]=c)}return o}function zb(){return[]}var m3=Object.prototype,v3=m3.propertyIsEnumerable,qb=Object.getOwnPropertySymbols,Ph=qb?function(t){return t==null?[]:(t=Object(t),Gb(qb(t),function(e){return v3.call(t,e)}))}:zb;function Ih(t){return Wb(t,Xn,Ph)}var g3=1,_3=Object.prototype,b3=_3.hasOwnProperty;function y3(t,e,r,n,a,o){var c=r&g3,d=Ih(t),p=d.length,v=Ih(e),b=v.length;if(p!=b&&!c)return!1;for(var C=p;C--;){var T=d[C];if(!(c?T in e:b3.call(e,T)))return!1}var A=o.get(t),F=o.get(e);if(A&&F)return A==e&&F==t;var G=!0;o.set(t,e),o.set(e,t);for(var j=c;++C<p;){T=d[C];var O=t[T],x=e[T];if(n)var S=c?n(x,O,T,e,t,o):n(O,x,T,t,e,o);if(!(S===void 0?O===x||a(O,x,r,n,o):S)){G=!1;break}j||(j=T=="constructor")}if(G&&!j){var P=t.constructor,R=e.constructor;P!=R&&"constructor"in t&&"constructor"in e&&!(typeof P=="function"&&P instanceof P&&typeof R=="function"&&R instanceof R)&&(G=!1)}return o.delete(t),o.delete(e),G}var Lh=ua(on,"DataView"),Rh=ua(on,"Promise"),is=ua(on,"Set"),Dh=ua(on,"WeakMap"),Yb="[object Map]",k3="[object Object]",Kb="[object Promise]",Xb="[object Set]",Vb="[object WeakMap]",Qb="[object DataView]",E3=oa(Lh),T3=oa(bo),C3=oa(Rh),w3=oa(is),S3=oa(Dh),Xr=yi;(Lh&&Xr(new Lh(new ArrayBuffer(1)))!=Qb||bo&&Xr(new bo)!=Yb||Rh&&Xr(Rh.resolve())!=Kb||is&&Xr(new is)!=Xb||Dh&&Xr(new Dh)!=Vb)&&(Xr=function(t){var e=yi(t),r=e==k3?t.constructor:void 0,n=r?oa(r):"";if(n)switch(n){case E3:return Qb;case T3:return Yb;case C3:return Kb;case w3:return Xb;case S3:return Vb}return e});var x3=1,Jb="[object Arguments]",Zb="[object Array]",Ll="[object Object]",A3=Object.prototype,ey=A3.hasOwnProperty;function O3(t,e,r,n,a,o){var c=St(t),d=St(e),p=c?Zb:Xr(t),v=d?Zb:Xr(e);p=p==Jb?Ll:p,v=v==Jb?Ll:v;var b=p==Ll,C=v==Ll,T=p==v;if(T&&ts(t)){if(!ts(e))return!1;c=!0,b=!1}if(T&&!b)return o||(o=new ln),c||Nl(t)?Ub(t,e,r,n,a,o):p3(t,e,p,r,n,a,o);if(!(r&x3)){var A=b&&ey.call(t,"__wrapped__"),F=C&&ey.call(e,"__wrapped__");if(A||F){var G=A?t.value():t,j=F?e.value():e;return o||(o=new ln),a(G,j,r,n,o)}}return T?(o||(o=new ln),y3(t,e,r,n,a,o)):!1}function Ao(t,e,r,n,a){return t===e?!0:t==null||e==null||!yr(t)&&!yr(e)?t!==t&&e!==e:O3(t,e,r,n,Ao,a)}var N3=1,P3=2;function ty(t,e,r,n){var a=r.length,o=a;if(t==null)return!o;for(t=Object(t);a--;){var c=r[a];if(c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a<o;){c=r[a];var d=c[0],p=t[d],v=c[1];if(c[2]){if(p===void 0&&!(d in t))return!1}else{var b=new ln,C;if(!(C===void 0?Ao(v,p,N3|P3,n,b):C))return!1}}return!0}function ry(t){return t===t&&!_t(t)}function ny(t){for(var e=Xn(t),r=e.length;r--;){var n=e[r],a=t[n];e[r]=[n,a,ry(a)]}return e}function iy(t,e){return function(r){return r==null?!1:r[t]===e&&(e!==void 0||t in Object(r))}}function I3(t){var e=ny(t);return e.length==1&&e[0][2]?iy(e[0][0],e[0][1]):function(r){return r===t||ty(r,t,e)}}var L3=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,R3=/^\w*$/;function Mh(t,e){if(St(t))return!1;var r=typeof t;return r=="number"||r=="symbol"||r=="boolean"||t==null||Za(t)?!0:R3.test(t)||!L3.test(t)||e!=null&&t in Object(e)}var D3=500;function M3(t){var e=ca(t,function(n){return r.size===D3&&r.clear(),n}),r=e.cache;return e}var $3=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,F3=/\\(\\)?/g,B3=M3(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace($3,function(r,n,a,o){e.push(a?o.replace(F3,"$1"):n||r)}),e}),ay=Kr?Kr.prototype:void 0,sy=ay?ay.toString:void 0;function Rl(t){if(typeof t=="string")return t;if(St(t))return Ei(t,Rl)+"";if(Za(t))return sy?sy.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function as(t){return t==null?"":Rl(t)}function ss(t,e){return St(t)?t:Mh(t,e)?[t]:B3(as(t))}function os(t){if(typeof t=="string"||Za(t))return t;var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function us(t,e){e=ss(e,t);for(var r=0,n=e.length;t!=null&&r<n;)t=t[os(e[r++])];return r&&r==n?t:void 0}function xn(t,e,r){var n=t==null?void 0:us(t,e);return n===void 0?r:n}function H3(t,e){return t!=null&&e in Object(t)}function U3(t,e,r){e=ss(e,t);for(var n=-1,a=e.length,o=!1;++n<a;){var c=os(e[n]);if(!(o=t!=null&&r(t,c)))break;t=t[c]}return o||++n!=a?o:(a=t==null?0:t.length,!!a&&Th(a)&&Al(c,a)&&(St(t)||es(t)))}function oy(t,e){return t!=null&&U3(t,e,H3)}var j3=1,W3=2;function G3(t,e){return Mh(t)&&ry(e)?iy(os(t),e):function(r){var n=xn(r,t);return n===void 0&&n===e?oy(r,t):Ao(e,n,j3|W3)}}function Oo(t){return t}function z3(t){return function(e){return e?.[t]}}function q3(t){return function(e){return us(e,t)}}function Y3(t){return Mh(t)?z3(os(t)):q3(t)}function Pr(t){return typeof t=="function"?t:t==null?Oo:typeof t=="object"?St(t)?G3(t[0],t[1]):I3(t):Y3(t)}function K3(t,e,r,n,a){return a(t,function(o,c,d){r=n?(n=!1,o):e(r,o,c,d)}),r}function Dl(t,e,r){var n=St(t)?Bb:K3,a=arguments.length<3;return n(t,Pr(e),r,a,xo)}var X3={"App Icons":["home","sign-in","sign-out","user","users","lock","unlock","settings","cog","nut","comment","commenting","comments","hashtag","tag","cart","bag","credit-card","mail","receiver","print","search","location","bookmark","code","paint-bucket","camera","video-camera","bell","microphone","bolt","star","heart","happy","lifesaver","rss","social","git-branch","git-fork","world","calendar","clock","history","future","crosshairs","pencil","trash","move","link","link-external","eye","eye-slash","question","info","warning","image","thumbnails","table","list","menu","grid","more","more-vertical","plus","plus-circle","minus","minus-circle","close","close-circle","check","ban","refresh","play","play-circle"],"Device Icons":["tv","desktop","laptop","tablet","phone","tablet-landscape","phone-landscape"],"Storage Icons":["file","file-text","file-pdf","copy","file-edit","folder","album","push","pull","server","database","cloud-upload","cloud-download","download","upload"],"Direction Icons":["reply","forward","expand","shrink","arrow-up-right","arrow-down-arrow-up","arrow-up","arrow-down","arrow-left","arrow-right","chevron-up","chevron-down","chevron-left","chevron-right","chevron-double-left","chevron-double-right","triangle-up","triangle-down","triangle-left","triangle-right"],"Editor Icons":["bold","italic","strikethrough","quote-right"],"Brand Icons":["500px","android","android-robot","apple","behance","bluesky","discord","dribbble","etsy","facebook","flickr","foursquare","github","github-alt","gitter","google","instagram","joomla","linkedin","mastodon","microsoft","pinterest","reddit","signal","soundcloud","telegram","threads","tiktok","tripadvisor","tumblr","twitch","uikit","vimeo","whatsapp","wordpress","x","xing","yelp","yootheme","youtube"]};const V3={props:{icons:{type:[Object,Array],default:()=>X3}},data:()=>({search:""}),computed:{iconList(){return Dl(this.icons,(t,e)=>t.concat(e),[]).filter(t=>!this.search||BI(t,this.search))}}};var Q3=function(){var e=this,r=e._self._c;return r("div",[r("div",{staticClass:"yo-modal-subheader uk-grid-small uk-child-width-auto uk-flex-between uk-flex-middle",attrs:{"uk-grid":""}},[r("div",[r("div",{staticClass:"uk-grid-small uk-child-width-auto uk-flex-middle",attrs:{"uk-grid":""}},[r("div",[r("h2",{staticClass:"uk-modal-title uk-margin-remove"},[e._v(e._s(e.$t("%smart_count% Icon |||| %smart_count% Icons",e.iconList.length)))])]),e._v(" "),r("div",[r("div",{staticClass:"yo-finder-search"},[r("div",{staticClass:"uk-search uk-search-medium"},[r("span",{attrs:{"uk-search-icon":""}}),e._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:e.search,expression:"search"}],staticClass:"uk-search-input",attrs:{type:"search",autofocus:""},domProps:{value:e.search},on:{input:function(n){n.target.composing||(e.search=n.target.value)}}})])])])])])]),e._v(" "),e.iconList.length?r("div",{staticClass:"yo-finder-body",attrs:{"uk-overflow-auto":""}},[r("div",{staticClass:"uk-grid-collapse uk-child-width-auto",attrs:{"uk-grid":""}},e._l(e.iconList,function(n){return r("div",{key:n},[r("div",{staticClass:"uk-card uk-card-body uk-card-small uk-card-hover yo-panel uk-text-center"},[r("span",{attrs:{icon:n,"uk-icon":"",ratio:"2"}}),e._v(" "),r("a",{staticClass:"uk-position-cover",attrs:{title:n,href:"","uk-tooltip":"delay: 500"},on:{click:function(a){return a.preventDefault(),e.$emit("select",n)}}})])])}),0)]):r("h3",{staticClass:"uk-h1 uk-text-muted uk-text-center"},[e._v(e._s(e.$t("No icons found.")))])])},J3=[],Z3=Q(V3,Q3,J3,!1),eL=Z3.exports;const tL={name:"Switcher",props:{tabs:{type:Array,required:!0},storage:String,active:{type:Number,default(){return this.storage&&xl(wt[this.storage])||0}}},data:()=>({shown:[]}),methods:{selectTab(t,e){this.storage&&(wt[this.storage]=e),this.shown.push(e),this.$emit("show",t,e),this.$nextTick(()=>this.$el.querySelector(`.uk-switcher li:nth-child(${e+1}) [autofocus]`)?.focus())}}};var rL=function(){var e=this,r=e._self._c;return r("div",[r("div",{staticClass:"uk-modal-header uk-flex uk-flex-middle uk-flex-between"},[r("ul",{staticClass:"uk-margin-remove-bottom",attrs:{active:e.active,"uk-tab":"connect: !* +; animation: uk-animation-fade"}},e._l(e.tabs,function(n){return r("li",{key:n},[r("a",{attrs:{href:""}},[e._v(e._s(e.$t(n)))])])}),0),e._v(" "),e._t("header-right")],2),e._v(" "),r("div",{staticClass:"uk-switcher"},e._l(e.tabs,function(n,a){return r("div",{key:n,on:{beforeshow:function(o){return o.target!==o.currentTarget?null:e.selectTab(n,a)}}},[e.shown.includes(a)?e._t(n):e._e()],2)}),0)])},nL=[],iL=Q(tL,rL,nL,!1),ls=iL.exports;const aL={components:{Switcher:ls},computed:{tabs(){const{i18n:t}=oe,e=this.$trigger("iconsModalTabs");return[{name:t.t("icons"),component:eL},...e||[]]}}};var sL=function(){var e=this,r=e._self._c;return r("Switcher",{attrs:{tabs:e.tabs.map(({name:n})=>n)},scopedSlots:e._u([e._l(e.tabs,function(n){return{key:n.name,fn:function(){return[r("div",{key:n.name,staticClass:"uk-modal-body"},[r(n.component,{tag:"component",on:{select:function(a){return e.$emit("resolve",a)}}})],1)]},proxy:!0}})],null,!0)})},oL=[],uL=Q(aL,sL,oL,!1),lL=uL.exports,$h=function(){return on.Date.now()},cL="Expected a function",fL=Math.max,dL=Math.min;function Vn(t,e,r){var n,a,o,c,d,p,v=0,b=!1,C=!1,T=!0;if(typeof t!="function")throw new TypeError(cL);e=Ch(e)||0,_t(r)&&(b=!!r.leading,C="maxWait"in r,o=C?fL(Ch(r.maxWait)||0,e):o,T="trailing"in r?!!r.trailing:T);function A(B){var q=n,le=a;return n=a=void 0,v=B,c=t.apply(le,q),c}function F(B){return v=B,d=setTimeout(O,e),b?A(B):c}function G(B){var q=B-p,le=B-v,ae=e-q;return C?dL(ae,o-le):ae}function j(B){var q=B-p,le=B-v;return p===void 0||q>=e||q<0||C&&le>=o}function O(){var B=$h();if(j(B))return x(B);d=setTimeout(O,G(B))}function x(B){return d=void 0,T&&n?A(B):(n=a=void 0,c)}function S(){d!==void 0&&clearTimeout(d),v=0,n=p=a=d=void 0}function P(){return d===void 0?c:x($h())}function R(){var B=$h(),q=j(B);if(n=arguments,a=this,p=B,q){if(d===void 0)return F(p);if(C)return clearTimeout(d),d=setTimeout(O,e),A(p)}return d===void 0&&(d=setTimeout(O,e)),c}return R.cancel=S,R.flush=P,R}const hL={props:{value:String},data:()=>({loading:!1,suggestion:null,geolocationAvailable:"geolocation"in navigator}),mounted(){this.dropdown=nr.dropdown(this.$refs.dropdown,{toggle:!1,mode:"click",animation:!1,stretch:"x",boundaryX:this.$el})},destroyed(){this.hide()},methods:{eventInput({target:{value:t}}){if(pL(t)){const[e,r]=t.split(",").map(n=>n.trim());this.suggestion={lat:e,lng:r};return}t?(this.loading=!0,this.suggest(t)):this.hide()},eventKeydown({key:t}){t==="Enter"&&this.suggestion&&this.input(this.suggestion),t==="ArrowDown"&&this.show()},eventClick(){navigator.geolocation.getCurrentPosition(({coords:{latitude:t,longitude:e}})=>{this.input({lat:t,lng:e})})},suggest:Vn(async function(t){const e=await IN(t);e&&(this.suggestion=e[0],this.suggestion?this.show():this.hide()),this.loading=!1},400),show(){this.suggestion?.address&&this.dropdown.show(this.$el)},hide(){return this.dropdown.hide(!1)},input(t){this.$emit("input",t?`${t.lat},${t.lng}`:""),this.suggestion=null,this.$refs.input.value="",this.hide()}}};function pL(t){return t?.match(/^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?),\s*[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)$/)}var mL=function(){var e=this,r=e._self._c;return r("div",{staticClass:"uk-inline uk-display-block"},[r("div",{directives:[{name:"show",rawName:"v-show",value:!e.loading,expression:"!loading"}],staticClass:"uk-position-center-right uk-position-small"},[r("ul",{staticClass:"uk-iconnav uk-flex-nowrap"},[r("li",{directives:[{name:"show",rawName:"v-show",value:e.value,expression:"value"}]},[r("a",{staticClass:"uk-icon-link",attrs:{href:"","uk-icon":"close-circle"},on:{click:function(n){return n.preventDefault(),e.input()}}})]),e._v(" "),e.geolocationAvailable?r("li",[r("a",{staticClass:"uk-icon-link",attrs:{href:"","uk-icon":"location"},on:{click:function(n){return n.preventDefault(),e.eventClick.apply(null,arguments)}}})]):e._e()])]),e._v(" "),r("span",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}],staticClass:"uk-form-icon uk-form-icon-flip uk-icon",attrs:{"uk-spinner":"ratio: 0.5"}}),e._v(" "),r("input",{ref:"input",staticClass:"uk-input",attrs:{placeholder:e.value,type:"text"},on:{input:e.eventInput,keydown:e.eventKeydown}}),e._v(" "),r("div",{ref:"dropdown"},[r("ul",{staticClass:"uk-nav uk-dropdown-nav"},[r("li",[r("a",{attrs:{href:""},on:{click:function(n){return n.preventDefault(),e.input(e.suggestion)}}},[r("span",{staticClass:"uk-margin-small-right uk-icon",attrs:{"uk-icon":"location"}}),e._v(" "),e.suggestion?r("span",[e._v(e._s(e.suggestion.address))]):e._e()])])])])])},vL=[],gL=Q(hL,mL,vL,!1),_L=gL.exports;const bL={props:{value:{type:String,default:""},defaultValue:{type:String,default:"53.5503,10.0006"}},render:t=>t("div",{class:"uk-preserve-width",style:{minHeight:"260px",zIndex:"0"}}),computed:{latlng(){const[t,e=""]=(this.value||this.defaultValue).split(",");return[t,e]}},watch:{latlng(t){this.marker.setLatLng(t).update(),this.map.panTo(t)}},mounted:function(){const{L:t}=window;this.map=t.map(this.$el).setView(this.latlng,13),this.marker=new t.marker(this.latlng,{draggable:!0}),t.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'© <a href="http://osm.org/copyright">OpenStreetMap</a>'}).addTo(this.map),this.map.addLayer(this.marker),this.marker.on("dragend",()=>e(this.marker.getLatLng())),this.map.on("click",({latlng:r})=>e(r)),"IntersectionObserver"in window&&(this.observer=new IntersectionObserver(()=>this.map.invalidateSize()),this.observer.observe(this.$el));const e=({lat:r,lng:n})=>this.$emit("input",`${r.toFixed(4)},${n.toFixed(4)}`)},destroyed(){this?.observer.disconnect(),this.map.off()}};var yL=()=>({component:(async()=>(window.L||await un({js:`${ue.config.base}/vendor/assets/leaflet/leaflet/dist/leaflet.js`,css:`${ue.config.base}/vendor/assets/leaflet/leaflet/dist/leaflet.css`}),bL))(),loading:{render:t=>t("div",{attrs:{"uk-spinner":""},class:"uk-text-center uk-width-1-1"})},error:{render:t=>t("div",{class:"uk-alert uk-alert-danger"},oe.i18n.t("Failed loading map"))},timeout:3e3});const kL={components:{LocationInput:_L,MapInput:yL},props:{value:String},methods:{input(t){this.$emit("input",t)}}};var EL=function(){var e=this,r=e._self._c;return r("div",[r("MapInput",{attrs:{value:e.value},on:{input:e.input}}),e._v(" "),r("div",{staticClass:"uk-margin-small-top"},[r("LocationInput",{attrs:{value:e.value},on:{input:e.input}})],1)],1)},TL=[],CL=Q(kL,EL,TL,!1),wL=CL.exports,Fh=$b(Object.getPrototypeOf,Object),SL="[object Object]",xL=Function.prototype,AL=Object.prototype,uy=xL.toString,OL=AL.hasOwnProperty,NL=uy.call(Object);function Ml(t){if(!yr(t)||yi(t)!=SL)return!1;var e=Fh(t);if(e===null)return!0;var r=OL.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&uy.call(r)==NL}function Ut(t,...e){const{i18n:r}=oe;Ml(t)?t.message=r.t(t.message):typeof t=="string"&&(t=r.t(t)),nr.notification.call(null,t,...e)}function PL(t,e){var r=[];return xo(t,function(n,a,o){e(n,a,o)&&r.push(n)}),r}function Ti(t,e){var r=St(t)?Gb:PL;return r(t,Pr(e))}function cs(t,{body:e,method:r,...n}){return Ue(t,n).addon(IL).fetch(r,"",e).res().then(LL,RL)}["GET","DELETE"].forEach(t=>{cs[t.toLowerCase()]=function(e,r){return cs(e,{...r,method:t})}}),["PUT","POST","PATCH"].forEach(t=>{cs[t.toLowerCase()]=function(e,r,n){return cs(e,{...n,body:r,method:t})}});const IL={beforeRequest(t,{params:e}){return t.query({...e})}};async function LL(t){const e=t.headers.get("Content-Type"),r={};return(Bh(e)||e.startsWith("text/"))&&Object.assign(r,ML(await t.text(),Bh(e))),new Proxy(t,{get:(n,a)=>a in r?r[a]:n[a]})}function RL(t){let{headers:e,statusText:r}=t.response;throw Bh(e.get("Content-Type"))&&(r=JSON.parse(t.message)),Object.assign(t,{statusText:r})}function Bh(t){return(t??"").startsWith("application/json")}function DL(t){const e=t.match(/^\s*(\[|\{)/);return e&&{"[":/]\s*$/,"{":/}\s*$/}[e[1]].test(t)}function ML(t,e){if(e||DL(t)){let r;try{r=JSON.parse(t)}catch{r=null}return{data:r,body:r,json:()=>r}}return{data:t,body:t}}function $L(t,e){const[r,n]=e(t).split("?",2);return`${r}${FL(n,{...t.params})}`}function FL(t,e){const r=new URLSearchParams(t);for(const n in e){const a=e[n];if(Array.isArray(e[n]))for(const o of a)r.append(n+"[]",ly(o));else r.append(n,ly(a))}return r.size?`?${r}`:""}function ly(t){return t===void 0?"":t}function BL(t,e){const r=e(t),n=t.root?.replace(/\/$/,"")||"";return/^(https?:)?\//.test(r)?r:`${n}/${r}`}function jr(t,e={}){const r=typeof t=="string"?{url:t,params:e}:t;return jr.transforms.reduceRight((a,o)=>c=>(jr.transform[o]??o)(c,a),a=>a.url)({...jr.options,...r})}const HL={url:"",root:null,params:{}};jr.options=HL,jr.transform={query:$L,root:BL},jr.transforms=["query","root"];function cy(t){cy.installed||(t.url=jr,t.http=cs,Object.assign(t.prototype,{$url:jr,$http:cs}))}const UL={__name:"List",props:{folders:Array,files:Array,selected:Array},emits:["select","load"],setup(t,{emit:e}){const r=t,{i18n:n}=oe,a=Be(null),o=Ae(()=>!!r.selected.length&&r.selected.length===r.files.length+r.folders.length);gt(()=>r.selected,()=>{const p=a.value;p.checked=o.value,p.indeterminate=!o.value&&!!r.selected.length});function c(){(o.value?[...r.selected]:r.folders.concat(r.files).filter(v=>!d(v,r.selected))).forEach(v=>e("select",v))}function d(p){return r.selected.includes(p)}return{__sfc:!0,i18n:n,emit:e,props:r,toggleAll:a,selectedAll:o,toggle:c,isSelected:d,api:ue,isImage:yo,isVideo:fa,Url:jr}}};var jL=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("table",{staticClass:"uk-table uk-table-divider uk-table-hover uk-table-middle"},[r("thead",[r("tr",[r("th",{staticClass:"uk-table-shrink"},[r("input",{ref:"toggleAll",staticClass:"uk-checkbox",attrs:{type:"checkbox"},on:{change:n.toggle}})]),e._v(" "),r("th",{attrs:{colspan:"2"}},[e._v(e._s(n.i18n.t("Name")))]),e._v(" "),r("th",{staticClass:"uk-table-shrink uk-text-center"},[e._v(e._s(n.i18n.t("Size")))])])]),e._v(" "),r("tbody",[e._l(e.folders,function(a){return r("tr",{key:a.path,staticClass:"uk-visible-hover",class:{"uk-active":n.isSelected(a)},on:{click:function(o){o.target.tagName!=="BUTTON"&&n.emit("select",a)}}},[r("td",[r("input",{staticClass:"uk-checkbox",attrs:{type:"checkbox"},domProps:{checked:n.isSelected(a)}})]),e._v(" "),r("td",{staticClass:"uk-table-shrink"},[r("img",{staticClass:"uk-preserve uk-preserve-width uk-icon",attrs:{"uk-svg":`${n.api.config.assets}/images/finder-list-folder.svg`}})]),e._v(" "),r("td",{staticClass:"uk-table-expand uk-text-break"},[r("button",{staticClass:"uk-button uk-button-link",attrs:{type:"button"},on:{click:function(o){return n.emit("load",a.path)}}},[e._v(e._s(a.name))])]),e._v(" "),r("td")])}),e._v(" "),e._l(e.files,function(a){return r("tr",{key:a.path,staticClass:"uk-visible-hover",class:{"uk-active":n.isSelected(a)},on:{click:function(o){return n.emit("select",a)}}},[r("td",[r("input",{staticClass:"uk-checkbox",attrs:{type:"checkbox"},domProps:{checked:n.isSelected(a)}})]),e._v(" "),r("td",{staticClass:"uk-table-shrink uk-text-center"},[n.isImage(a.url)?r("img",{staticClass:"uk-icon uk-icon-image",attrs:{loading:"lazy",src:n.Url(a.url)}}):n.isVideo(a.url)?r("video",{staticClass:"uk-icon uk-icon-image",attrs:{src:n.Url(a.url),loop:"",muted:"",playsinline:"","uk-video":"hover"},domProps:{muted:!0}}):r("img",{staticClass:"uk-preserve uk-preserve-width uk-icon",attrs:{loading:"lazy",src:`${n.api.config.assets}/images/finder-list-file.svg`,"uk-svg":""}})]),e._v(" "),r("td",{staticClass:"uk-table-expand uk-text-break"},[e._v(e._s(a.name))]),e._v(" "),r("td",{staticClass:"uk-text-right uk-text-nowrap"},[e._v(e._s(a.size))])])})],2)])},WL=[],GL=Q(UL,jL,WL,!1),zL=GL.exports;const qL={__name:"Thumbnail",props:{folders:Array,files:Array,selected:Array},emits:["select","load"],setup(t,{emit:e}){const r=t;function n(a){return r.selected.includes(a)}return{__sfc:!0,emit:e,props:r,isSelected:n,api:ue,isImage:yo,isVideo:fa,Url:jr}}};var YL=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("ul",{staticClass:"uk-grid-medium uk-grid-match uk-child-width-1-2@s uk-child-width-1-3@l uk-child-width-1-4@xl",attrs:{"uk-grid":""}},[e._l(n.props.folders,function(a){return r("li",{key:a.path},[r("div",{staticClass:"uk-card uk-card-default uk-card-small",on:{click:function(o){o.target.tagName!=="BUTTON"&&n.emit("select",a)}}},[r("div",{staticClass:"uk-card-media-top uk-position-relative"},[r("img",{staticClass:"uk-object-none yo-finder-thumbnail-folder",staticStyle:{"aspect-ratio":"80 / 55"},attrs:{loading:"lazy",src:`${n.api.config.assets}/images/finder-thumbnail-folder.svg`,width:"800",height:"550",alt:""}})]),e._v(" "),r("div",{staticClass:"uk-card-body uk-text-center uk-text-truncate uk-text-nowrap"},[r("input",{staticClass:"uk-checkbox",attrs:{type:"checkbox"},domProps:{checked:n.isSelected(a)}}),e._v(" "),r("button",{staticClass:"uk-button uk-button-link",attrs:{type:"button"},on:{click:function(o){return n.emit("load",a.path)}}},[e._v(e._s(a.name))])])])])}),e._v(" "),e._l(n.props.files,function(a){return r("li",{key:a.path},[r("div",{staticClass:"uk-card uk-card-default uk-card-small",on:{click:function(o){return n.emit("select",a)}}},[r("div",{staticClass:"uk-card-media-top uk-position-relative"},[n.isImage(a.url)?r("img",{staticClass:"uk-object-scale-down",staticStyle:{"aspect-ratio":"80 / 55"},attrs:{loading:"lazy",src:n.Url(a.url),width:"800",height:"550",alt:""}}):n.isVideo(a.url)?r("video",{staticClass:"uk-object-scale-down",staticStyle:{"aspect-ratio":"80 / 55"},attrs:{src:n.Url(a.url),width:"800",height:"550",loop:"",muted:"",playsinline:"","uk-video":"hover"},domProps:{muted:!0}}):r("img",{staticClass:"uk-object-none yo-finder-thumbnail-file",staticStyle:{"aspect-ratio":"80 / 55"},attrs:{loading:"lazy",src:`${n.api.config.assets}/images/finder-thumbnail-file.svg`,width:"800",height:"550",alt:""}})]),e._v(" "),r("div",{staticClass:"uk-card-body uk-text-center uk-text-truncate uk-text-nowrap"},[r("input",{staticClass:"uk-checkbox",attrs:{type:"checkbox"},domProps:{checked:n.isSelected(a)}}),e._v(` `+e._s(a.name)+` `)])])])})],2)},KL=[],XL=Q(qL,YL,KL,!1),VL=XL.exports;const QL={__name:"Finder",emits:"input",setup(t,{emit:e}){const r="finder.path",n="finder.view",a="finder.bgColor",{i18n:o}=oe,c=st("Finder"),d=Jt({view:wt[n]||"list",bgColor:wt[a]||"light",search:"",selected:[]}),p=Be(null),v=Be(null),b=Ae(()=>Ti(T.value,{type:"file"})),C=Ae(()=>Ti(T.value,{type:"folder"})),T=Ae(()=>P(Ti(c.files,({name:R})=>da(R,d.search))));gt(()=>d.search,()=>d.selected=[]),gt(()=>d.selected,R=>e("input",R)),Gt(()=>{c.load(wt[r]),c.canCreate()&&nr.upload(p.value,x(v.value))}),Nr(()=>{wt[n]=d.view,wt[r]=c.path,wt[a]=d.bgColor});async function A(R){d.selected=[],d.search="",await c.load(R)}function F(R){d.selected=[],c.removeFiles(R)}async function G({name:R}){const B=await nr.modal.prompt(o.t("Rename"),R,{stack:!0});B&&(d.selected=[],c.renameFile(R,B))}async function j(){const R=await nr.modal.prompt(o.t("Folder Name"),"",{stack:!0});R&&c.createFolder(R)}function O(R){const B=d.selected.indexOf(R);d.selected=~B?d.selected.toSpliced(B,1):[...d.selected,R]}function x(R){return{name:"Filedata[]",multiple:!0,beforeAll:B=>{c?.uploadSettings(B)},loadStart(B){R.max=B.total,R.value=B.loaded,R.hidden=!1},progress(B){R.max=B.total,R.value=B.loaded},loadEnd(B){R.max=B.total,R.value=B.loaded},error:B=>{Ut(B.xhr?.response?.message||B.message,"danger"),R.hidden=!0},fail:B=>Ut(B,"danger"),complete:({responseText:B})=>c.showMessage({body:B}),completeAll:()=>A().then(()=>R.hidden=!0)}}function S(R=c.path){const B=R.split("/").filter(le=>le.length),q=[{path:"",title:o.t("Root")}].concat(B.map((le,ae)=>({path:B.slice(0,ae+1).join("/"),title:le})));return q[q.length-1].current=!0,q}function P(R){return R.toSorted(({name:B},{name:q})=>B.localeCompare(q,void 0,{numeric:!0}))}return{__sfc:!0,storagePath:r,storageView:n,storageBgColor:a,i18n:o,emit:e,Finder:c,state:d,el:p,progress:v,files:b,folders:C,searched:T,load:A,remove:F,rename:G,create:j,toggleSelect:O,uploadFile:x,breadcrumbs:S,sortFiles:P,List:zL,Thumbnail:VL}}};var JL=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",{ref:"el"},[r("div",{staticClass:"yo-modal-subheader uk-grid-small uk-child-width-auto uk-flex-between uk-flex-middle",attrs:{"uk-grid":""}},[r("div",[r("div",{staticClass:"uk-grid-small uk-child-width-auto uk-flex-middle",attrs:{"uk-grid":""}},[r("div",[n.state.selected.length?r("h2",{staticClass:"uk-modal-title uk-margin-remove"},[e._v(e._s(n.i18n.t("%smart_count% File selected |||| %smart_count% Files selected",n.state.selected.length)))]):r("h2",{staticClass:"uk-modal-title uk-margin-remove"},[e._v(e._s(n.i18n.t("%smart_count% File |||| %smart_count% Files",n.searched.length)))])]),e._v(" "),r("div",{directives:[{name:"show",rawName:"v-show",value:n.state.selected.length===1&&n.Finder.canCreate(),expression:"state.selected.length === 1 && Finder.canCreate()"}]},[r("a",{staticClass:"uk-icon-link",attrs:{href:"",title:n.i18n.t("Rename"),"uk-icon":"file-edit","uk-tooltip":"delay: 500"},on:{click:function(a){return a.preventDefault(),n.rename(n.state.selected[0])}}})]),e._v(" "),r("div",{directives:[{name:"show",rawName:"v-show",value:n.state.selected.length&&n.Finder.canDelete(),expression:"state.selected.length && Finder.canDelete()"}]},[r("a",{staticClass:"uk-icon-link",attrs:{href:"",title:n.i18n.t("Delete"),"uk-icon":"trash","uk-tooltip":"delay: 500"},on:{click:function(a){return a.preventDefault(),n.remove(n.state.selected)}}})]),e._v(" "),r("div",[r("div",{staticClass:"yo-finder-search"},[r("div",{staticClass:"uk-search uk-search-medium"},[r("span",{attrs:{"uk-search-icon":""}}),e._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:n.state.search,expression:"state.search"}],staticClass:"uk-search-input",attrs:{type:"search",autofocus:""},domProps:{value:n.state.search},on:{input:function(a){a.target.composing||e.$set(n.state,"search",a.target.value)}}})])])])])]),e._v(" "),r("div",[r("div",{staticClass:"uk-grid-medium uk-child-width-auto uk-flex-middle",attrs:{"uk-grid":""}},[r("div",{directives:[{name:"show",rawName:"v-show",value:n.state.view==="thumbnail",expression:"state.view === 'thumbnail'"}]},[r("ul",{staticClass:"uk-dotnav yo-dotnav"},e._l({light:n.i18n.t("Light"),white:n.i18n.t("White"),dark:n.i18n.t("Dark")},function(a,o){return r("li",{key:o},[r("a",{class:`yo-dotnav-item-${o}`,attrs:{href:"",title:n.i18n.t("Set %color% background",{color:o}),"uk-tooltip":"delay: 500","aria-label":n.i18n.t("Set %color% background",{color:o})},on:{click:function(c){c.preventDefault(),n.state.bgColor=o}}},[e._v(e._s(a))])])}),0)]),e._v(" "),r("div",[r("ul",{staticClass:"uk-grid-small uk-child-width-auto",attrs:{"uk-grid":""}},[r("li",{class:{"uk-active":n.state.view==="list"}},[r("a",{staticClass:"uk-icon-link",attrs:{href:"",title:n.i18n.t("Table"),"uk-icon":"table","uk-tooltip":"delay: 500"},on:{click:function(a){a.preventDefault(),n.state.view="list"}}})]),e._v(" "),r("li",{class:{"uk-active":n.state.view==="thumbnail"}},[r("a",{staticClass:"uk-icon-link",attrs:{href:"",title:n.i18n.t("Thumbnails"),"uk-icon":"thumbnails","uk-tooltip":"delay: 500"},on:{click:function(a){a.preventDefault(),n.state.view="thumbnail"}}})])])]),e._v(" "),r("div",{directives:[{name:"show",rawName:"v-show",value:n.Finder.canCreate(),expression:"Finder.canCreate()"}]},[r("button",{staticClass:"uk-button uk-button-default uk-margin-small-right",attrs:{type:"button"},on:{click:function(a){return n.create()}}},[e._v(e._s(n.i18n.t("Add Folder")))]),e._v(" "),r("div",{attrs:{"uk-form-custom":""}},[r("input",{attrs:{accept:n.Finder.accept,type:"file",name:"files[]",multiple:"multiple"}}),e._v(" "),r("button",{staticClass:"uk-button uk-button-default",attrs:{type:"button"}},[e._v(e._s(n.i18n.t("Upload")))])])])])])]),e._v(" "),r("nav",{staticClass:"uk-margin",attrs:{"aria-label":n.i18n.t("Breadcrumb")}},[r("ul",{staticClass:"uk-breadcrumb uk-margin-remove"},e._l(n.breadcrumbs(),function({path:a,title:o,current:c}){return r("li",{key:a,class:{"uk-active":c}},[c?r("span",{attrs:{"aria-current":"true"}},[e._v(e._s(o))]):r("a",{attrs:{href:""},on:{click:function(d){return d.preventDefault(),n.load(a)}}},[e._v(e._s(o))])])}),0)]),e._v(" "),r("progress",{ref:"progress",staticClass:"uk-progress yo-finder-progress",attrs:{hidden:"hidden"}}),e._v(" "),n.searched.length?r("div",{class:["yo-finder-body uk-overflow-auto",{[`yo-finder-body-${n.state.bgColor}`]:n.state.view==="thumbnail"&&n.state.bgColor!=="light","uk-light":n.state.view==="thumbnail"&&n.state.bgColor==="dark"}],attrs:{"uk-overflow-auto":""}},[r(n.state.view==="thumbnail"?n.Thumbnail:n.List,{tag:"component",attrs:{folders:n.folders,files:n.files,selected:n.state.selected},on:{select:function(a){return n.toggleSelect(a)},load:n.load}})],1):r("h3",{staticClass:"uk-h1 uk-text-muted uk-text-center"},[e._v(e._s(n.i18n.t("No files found.")))])])},ZL=[],eR=Q(QL,JL,ZL,!1),tR=eR.exports;function fy(t,e={}){const{state:r,actions:n}=e;return sn(t,{state:()=>({path:"",files:[],accept:"image/*,audio/*,video/*,text/*,application/pdf",...r}),actions:{async load(a=this.path){const o=await this.loadFiles(a);this.path=a,this.files=o||[]},loadFiles(){throw`${t}.loadFiles() needs to be implemented`},removeFiles(){throw`${t}.removeFiles() needs to be implemented`},renameFile(){throw`${t}.renameFile(oldName, newName) needs to be implemented`},createFolder(){throw`${t}.createFolder() needs to be implemented`},uploadSettings(){throw`${t}.uploadSettings() needs to be implemented`},showMessage(){throw`${t}.showMessage() needs to be implemented`},canCreate(){return!0},canDelete(){return!0},...n}})}const rR={name:"FilesTab",components:{Finder:tR},props:{type:{type:[Array,String],default:"image"},multiple:{type:Boolean,default:!1}},data:()=>({selected:[]}),methods:{hasSelection(){const{length:t}=this.selected;if(!t||!this.multiple&&t>1)return!1;const e={image:yo,video:fa};return this.selected.every(({url:r})=>[].concat(this.type).some(n=>!e[n]||e[n](r)))},select(t){this.$emit("input",t.map(({url:e})=>e))}}};var nR=function(){var e=this,r=e._self._c;return r("div",[r("div",{staticClass:"uk-modal-body"},[r("Finder",{model:{value:e.selected,callback:function(n){e.selected=n},expression:"selected"}})],1),e._v(" "),r("div",{staticClass:"uk-modal-footer uk-text-right"},[r("button",{staticClass:"uk-button uk-button-text uk-modal-close uk-margin-right",attrs:{type:"button"}},[e._v(e._s(e.$t("Cancel")))]),e._v(" "),r("button",{staticClass:"uk-button uk-button-primary",attrs:{disabled:!e.hasSelection(),type:"button"},on:{click:function(n){return n.preventDefault(),e.select(e.selected)}}},[e._v(e._s(e.$t("Select")))])])])},iR=[],aR=Q(rR,nR,iR,!1),sR=aR.exports,dy=Kr?Kr.isConcatSpreadable:void 0;function oR(t){return St(t)||es(t)||!!(dy&&t&&t[dy])}function $l(t,e,r,n,a){var o=-1,c=t.length;for(r||(r=oR),a||(a=[]);++o<c;){var d=t[o];r(d)?Nh(a,d):n||(a[a.length]=d)}return a}function uR(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}var hy=Math.max;function py(t,e,r){return e=hy(e===void 0?t.length-1:e,0),function(){for(var n=arguments,a=-1,o=hy(n.length-e,0),c=Array(o);++a<o;)c[a]=n[e+a];a=-1;for(var d=Array(e+1);++a<e;)d[a]=n[a];return d[e]=r(c),uR(t,this,d)}}function lR(t){return function(){return t}}var Fl=(function(){try{var t=ua(Object,"defineProperty");return t({},"",{}),t}catch{}})(),cR=Fl?function(t,e){return Fl(t,"toString",{configurable:!0,enumerable:!1,value:lR(e),writable:!0})}:Oo,fR=800,dR=16,hR=Date.now;function pR(t){var e=0,r=0;return function(){var n=hR(),a=dR-(n-r);if(r=n,a>0){if(++e>=fR)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var my=pR(cR);function Bl(t,e){return my(py(t,e,Oo),t+"")}function vy(t,e){var r=t==null?0:t.length;return!!r&&Sl(t,e,0)>-1}function mR(t,e,r){for(var n=-1,a=t==null?0:t.length;++n<a;)if(r(e,t[n]))return!0;return!1}function vR(){}var gR=1/0,_R=is&&1/Ah(new is([,-0]))[1]==gR?function(t){return new is(t)}:vR,bR=200;function gy(t,e,r){var n=-1,a=vy,o=t.length,c=!0,d=[],p=d;if(r)c=!1,a=mR;else if(o>=bR){var v=e?null:_R(t);if(v)return Ah(v);c=!1,a=xh,p=new ns}else p=e?[]:d;e:for(;++n<o;){var b=t[n],C=e?e(b):b;if(b=r||b!==0?b:0,c&&C===C){for(var T=p.length;T--;)if(p[T]===C)continue e;e&&p.push(C),d.push(b)}else a(p,C,r)||(p!==d&&p.push(C),d.push(b))}return d}function No(t){return yr(t)&&Kn(t)}function _y(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}var by=Bl(function(t){var e=_y(t);return No(e)&&(e=void 0),gy($l(t,1,No,!0),Pr(e))});const yR=48;var kR={icons({filter:t,page:e,search:r}){return t=Object.fromEntries(Object.entries(t).filter(([,n])=>!!n)),Ue(`${ue.config.api}/v1/library/icons`).query({key:ue.config.apikey,filter:t,search:r,page:e,per_page:yR}).get().json()}};const Hl="icons.filter",Ul={},ER={__name:"Icons",props:{container:{type:String,default:".uk-modal"},content:{type:String,default:".uk-modal-dialog"},wide:{type:Boolean,default:!1}},emits:["select"],setup(t,{emit:e}){const r=t,{i18n:n}=oe,a=Be(null),o=Jt({page:1,filter:wt[Hl]?JSON.parse(wt[Hl]):{},search:"",loading:!1,error:!1,result:null,scroll:0,variants:[],bgColor:"light",...Ul}),c=Ae(()=>o.result?.filters),d=Ae(()=>o.loading&&o.page===1);gt(()=>o.filter,F,{deep:!0}),gt(c,x=>{for(const S of x)mt(o.filter,S.name,o.filter[S.name]??"")}),gt(()=>o.search,Vn(F,250)),Gt(()=>{Object.keys(Ul).length?requestAnimationFrame(()=>j(o.scroll)):F()}),Nr(()=>{o.error||Object.assign(Ul,o),wt[Hl]=JSON.stringify(o.filter)});function p(x){return o.result?.icons.filter(S=>x===S||x.variant&&S.variant===x.variant)}function v(){b(),o.scroll=a.value.scrollTop}function b(){if(o.loading||o.error||o.page>=o.result.pages)return;const{scrollTop:x,scrollHeight:S}=a.value;x>=S-window.innerHeight*1.5&&(o.page+=1,G())}function C(){const x={};for(const S of c.value??[])x[S.name]="";return x}function T(x){const S=P=>P.map(R=>({value:R,text:O(R)}));return Array.isArray(x)?S(x):Object.keys(x).map(P=>({label:O(P),options:[{value:P,text:n.t("All %label%",{label:P})}].concat(S(x[P]))}))}function A(x){e("select",[x.src])}async function F(){o.page=1,await G(),o.variants=[],j(0)}async function G(){o.loading=!0,o.error=!1;let x;try{x=await kR.icons({search:o.search,filter:o.filter,page:o.page})}catch(S){o.error=S.message}o.loading=!1,!o.error&&(o.page>1&&(x.icons=by(o.result?.icons??[],x.icons,"md5")),o.result=x,Tn(b))}function j(x){Tn(()=>requestAnimationFrame(()=>a.value.scrollTop=x))}function O(x){return x.replace(/\b\w/g,S=>S.toUpperCase())}return{__sfc:!0,storageKey:Hl,storageObj:Ul,i18n:n,emit:e,props:r,scrollRef:a,state:o,filters:c,spinner:d,iconVariants:p,onScroll:v,queryNextPage:b,reset:C,options:T,select:A,update:F,query:G,scrollTo:j,titleCase:O}}};var TR=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",{staticClass:"yo-min-height-small uk-position-relative"},[r("div",{staticClass:"yo-modal-subheader uk-grid-small uk-child-width-auto uk-flex-between uk-flex-middle",attrs:{"uk-grid":""}},[r("div",[r("div",{staticClass:"uk-grid-small uk-child-width-auto uk-flex-middle",attrs:{"uk-grid":""}},[r("div",[r("h2",{staticClass:"uk-modal-title uk-margin-remove"},[e._v(e._s(n.i18n.t(n.state.result?.total?"%smart_count% Icon |||| %smart_count% Icons":"No Results",n.state.result?.total)))])]),e._v(" "),r("div",[r("div",{staticClass:"yo-finder-search"},[r("div",{staticClass:"uk-search uk-search-medium"},[r("span",{attrs:{"uk-search-icon":""}}),e._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:n.state.search,expression:"state.search"}],staticClass:"uk-search-input",attrs:{type:"search",autofocus:""},domProps:{value:n.state.search},on:{input:function(a){a.target.composing||e.$set(n.state,"search",a.target.value)}}})])])])])]),e._v(" "),n.filters?r("div",[r("div",{staticClass:"uk-grid-medium uk-child-width-auto uk-flex-middle",attrs:{"uk-grid":""}},[r("div",[r("ul",{staticClass:"uk-dotnav yo-dotnav"},e._l({light:n.i18n.t("Light"),white:n.i18n.t("White"),dark:n.i18n.t("Dark")},function(a,o){return r("li",{key:o},[r("a",{class:`yo-dotnav-item-${o}`,attrs:{href:"",title:n.i18n.t("Set %color% background",{color:o}),"uk-tooltip":"delay: 500","aria-label":n.i18n.t("Set %color% background",{color:o})},on:{click:function(c){c.preventDefault(),n.state.bgColor=o}}},[e._v(e._s(a))])])}),0)]),e._v(" "),r("div",[r("div",{staticClass:"uk-grid-small uk-child-width-auto uk-flex-middle",attrs:{"uk-grid":""}},[e._l(n.filters,function({options:a,name:o,label:c}){return r("div",{key:o},[r("select",{directives:[{name:"model",rawName:"v-model",value:n.state.filter[o],expression:"state.filter[name]"}],staticClass:"uk-select uk-form-width-small",on:{change:function(d){var p=Array.prototype.filter.call(d.target.options,function(v){return v.selected}).map(function(v){var b="_value"in v?v._value:v.value;return b});e.$set(n.state.filter,o,d.target.multiple?p:p[0])}}},[r("option",{attrs:{value:""}},[e._v(e._s(n.i18n.t("All %filter%",{filter:c})))]),e._v(" "),e._l(n.options(a),function(d){return[d.label?r("optgroup",{key:d.label,attrs:{label:d.label}},e._l(d.options,function(p){return r("option",{key:p.value,domProps:{value:p.value}},[e._v(e._s(n.i18n.t(p.text)))])}),0):r("option",{key:d.value,domProps:{value:d.value}},[e._v(e._s(n.i18n.t(d.text??"")))])]})],2)])}),e._v(" "),r("div",[r("button",{staticClass:"uk-button uk-button-default",attrs:{type:"button",disabled:!Object.values(n.state.filter).some(Boolean)&&!n.state.search},on:{click:function(a){n.state.filter=n.reset(),n.state.search=""}}},[e._v(e._s(n.i18n.t("Reset")))])])],2)])])]):e._e()]),e._v(" "),r("div",{directives:[{name:"show",rawName:"v-show",value:n.state.result?.total,expression:"state.result?.total"}],ref:"scrollRef",class:["yo-finder-body uk-margin-top uk-overflow-auto",{[`yo-finder-body-${n.state.bgColor}`]:n.state.bgColor!=="light"}],attrs:{"data-sel-container":n.props.container,"data-sel-content":n.props.content,"uk-overflow-auto":""},on:{"&!scroll":function(a){return n.onScroll.apply(null,arguments)}}},[r("ul",{staticClass:"uk-grid-medium uk-grid-match",class:["uk-child-width-1-2@s uk-child-width-1-4@m",{"uk-child-width-1-5@xl":!n.props.wide,"uk-child-width-1-5@l uk-child-width-1-6@xl":n.props.wide}],attrs:{"uk-grid":""}},e._l(n.state.result?.icons.filter(a=>n.iconVariants(a)[0]===a||n.state.variants.includes(a.variant)),function(a){return r("li",{key:a.md5},[r("div",{staticClass:"uk-panel uk-card-default uk-transition-toggle"},[r("a",{attrs:{href:""},on:{click:function(o){return o.preventDefault(),n.select(a)}}},[r("img",{staticClass:"uk-object-scale-down",staticStyle:{"aspect-ratio":"1 / 1"},attrs:{src:a.src,width:"800",height:"800",alt:"",loading:"lazy"}}),e._v(" "),r("div",{staticClass:"uk-label yo-label uk-position-top-right uk-position-small uk-transition-fade uk-flex"},[r("span",{staticClass:"uk-text-truncate"},[e._v(e._s(a.name))]),e._v(" / "+e._s(a.width)),r("span",{staticClass:"uk-text-lowercase"},[e._v("x")]),e._v(e._s(a.height))])]),e._v(" "),n.iconVariants(a).length>1&&!n.state.variants.includes(a.variant)?r("div",{staticClass:"uk-transition-fade uk-position-bottom-right yo-thumbnail-badge uk-light"},[r("a",{staticClass:"uk-icon-link",attrs:{href:"",title:n.i18n.t("Show Variations"),"uk-icon":"more","uk-tooltip":"delay: 500","aria-label":n.i18n.t("Show Variations")},on:{click:function(o){return o.preventDefault(),n.state.variants.push(a.variant)}}})]):e._e()])])}),0)]),e._v(" "),n.state.error?r("h3",{staticClass:"uk-h1 uk-text-danger uk-text-center"},[e._v(e._s(n.i18n.t(n.state.error)))]):n.spinner?r("div",{key:"spinner",staticClass:"uk-position-center",attrs:{"uk-spinner":"ratio: 1.5"}}):n.state.result?.total?e._e():r("h3",{staticClass:"uk-h1 uk-text-muted uk-text-center"},[e._v(e._s(n.i18n.t("No results.")))])])},CR=[],wR=Q(ER,TR,CR,!1),SR=wR.exports;const xR={name:"IconsTab",components:{Icons:SR},methods:{select(t){To.set(t,{src:t}),this.$emit("input",[t])}}};var AR=function(){var e=this,r=e._self._c;return r("div",{staticClass:"uk-modal-body"},[r("Icons",{on:{select:function(n){return e.select(n[0])}}})],1)},OR=[],NR=Q(xR,AR,OR,!1),yy=NR.exports;const ky=24;var PR={get client(){return(this._client??=Ks(`${ue.config.api}/pexels/v1`).query({per_page:ky}).headers({accept:"application/json"})).query({key:ue.config.apikey})},async photos({search:t,collection:e,page:r}){let n=this.client.query({page:r});t?n=n.query({query:t}).get("/search"):e?n=n.query({type:"photos"}).get(`/collections/${e.id}`):n=n.get("/curated");const a=await n.json();return{result:a[e?"media":"photos"],...Ey(a)}},async collections({route:t,page:e}){const r=await this.client.query({page:e}).get(`/collections${t==="yootheme"?"":"/featured"}`).json();return{result:await Promise.all(r.collections.filter(a=>a.photos_count).map(async a=>{const o=await this.client.query({per_page:3,type:"photos"}).get(`/collections/${a.id}`).json();return{...a,photos:o.media}})),...Ey(r)}}};function Ey(t){return{page:t.page,total:t.total_results,pages:Math.ceil(t.total_results/ky)}}function Ty(t){const e=[];return{props:{container:{type:String,default:".uk-modal"},content:{type:String,default:".uk-modal-dialog"},wide:{type:Boolean,default:!1}},data:()=>({states:e,routes:[],views:[],loading:!1,error:!1}),computed:{title(){const r=this.states.findLast(({result:o})=>o)||{},{total:n,view:a=r.route}=r;return n?this.views.find(o=>o.name===a).title(n):this.$t("No Results")},state(){return this.states.at(-1)},view(){return this.state.view||this.state.route},spinner(){return this.loading&&this.state.page===1}},created(){this.states.length?this.scrollTo(this.state.scroll):this.routeTo(this.routes[0])},methods:{async routeTo(r,n){const a=this.state||{route:""},o={scroll:0,page:1,search:"",...r};if(!n&&o.route===a.route){this.scrollTo(0);return}const c=LR(o),d=this.states.findIndex(c);if(n)this.states.splice(d,this.states.findLastIndex(c)-d+1),this.states.push(o),await this.query();else if(jl(o.route,a.route)||!~d)this.states.push(o),await this.query();else if(jl(a.route,o.route))this.states.splice(-1,1),d+1>this.states.length&&(this.states.push(o),await this.query());else if(jl(IR(a.route),o.route))this.states.splice(-1,1,o),await this.query();else{const p=this.states.splice(d,this.states.findLastIndex(c)-d+1);Hh(o.route)===o.route?this.states.push(...p):(this.states.push(...p.filter(v=>jl(v.route,o.route)),o),await this.query())}this.scrollTo(this.state.scroll)},search:Vn(function(r){this.routeTo({route:this.view,search:r.target.value},!0)},250),select(r){this.$emit("select",[r])},onScroll(){this.queryNextPage(),this.state.scroll=this.$refs.scroll.scrollTop},queryNextPage(){if(this.loading||this.error||this.state.page>=this.state.pages)return;const{scrollTop:r,scrollHeight:n}=this.$refs.scroll;r>=n-window.innerHeight*1.5&&(this.state.page+=1,this.query())},async query(){const{state:r}=this,{page:n}=r;this.loading=!0,this.error=!1;let a;try{a=await t[this.view](r)}catch(o){this.error=o.message}this.state===r&&(this.loading=!1,!this.error&&(n>1&&(a.result=by(r.result??[],a.result,"id")),this.states.splice(-1,1,Object.assign(r,a)),this.$nextTick(this.queryNextPage)))},scrollTo(r){this.$nextTick(()=>requestAnimationFrame(()=>this.$refs.scroll.scrollTop=r))}}}}function Hh(t){return t.split("/")[0]}function IR(t){return t.split("/").slice(0,-1).join("/")}function jl(t,e){return t.startsWith(`${e}/`)}function LR(t){const e=Hh(t.route);return r=>Hh(r.route)===e}const RR={extends:Ty(PR),data:t=>({routes:[{route:"photos",label:t.$t("Photos")},{route:"collections",label:t.$t("Collections")},{route:"yootheme",view:"collections",label:"YOOtheme"}],views:[{name:"photos",title:e=>t.$t("%smart_count% Photo |||| %smart_count% Photos",e)},{name:"collections",title:e=>t.$t("%smart_count% Collection |||| %smart_count% Collections",e)}]}),computed:{title(){const t=this.states.findLast(({result:n})=>n)||{},{total:e,view:r=t.route}=t;return this.$t(e?r==="photos"?"%smart_count% Photo |||| %smart_count% Photos":"%smart_count% Collection |||| %smart_count% Collections":"No Results",e)}}};var DR=function(){var e=this,r=e._self._c;return r("div",{staticClass:"yo-min-height-small uk-position-relative"},[r("div",{staticClass:"yo-modal-subheader uk-grid-small uk-child-width-auto uk-flex-between uk-flex-middle uk-margin",attrs:{"uk-grid":""}},[r("div",[r("div",{staticClass:"uk-grid-small uk-child-width-auto uk-flex-middle",attrs:{"uk-grid":""}},[r("div",[r("h2",{staticClass:"uk-modal-title uk-margin-remove"},[e._v(e._s(e.title))])]),e._v(" "),r("div",{style:{visibility:e.state.route==="photos"?"":"hidden"}},[r("div",{staticClass:"yo-finder-search"},[r("div",{staticClass:"uk-search uk-search-medium"},[r("span",{attrs:{"uk-search-icon":""}}),e._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:e.state.search,expression:"state.search"}],staticClass:"uk-search-input",attrs:{type:"search",autofocus:""},domProps:{value:e.state.search},on:{input:[function(n){n.target.composing||e.$set(e.state,"search",n.target.value)},e.search]}})])])])])]),e._v(" "),r("div",[r("ul",{staticClass:"uk-subnav uk-subnav-divider uk-flex-center uk-margin",attrs:{"uk-margin":""}},e._l(e.routes,function(n){return r("li",{key:n.route,class:{"uk-active":e.state.route?.startsWith(n.route)}},[r("a",{attrs:{href:""},on:{click:function(a){return a.preventDefault(),e.routeTo(n)}}},[e._v(e._s(n.label))])])}),0)])]),e._v(" "),e.view==="photos"&&e.state.collection?r("div",{staticClass:"uk-margin"},[r("h3",{staticClass:"uk-display-inline-block uk-margin-remove"},[e._v(e._s(e.state.collection.title))])]):e._e(),e._v(" "),r("div",{directives:[{name:"show",rawName:"v-show",value:e.state.total,expression:"state.total"}],key:"results",style:{opacity:e.spinner?.3:1}},[r("div",{ref:"scroll",staticClass:"yo-finder-body",attrs:{"data-sel-container":e.container,"data-sel-content":e.content,"uk-overflow-auto":""},on:{"&scroll":function(n){return e.onScroll.apply(null,arguments)}}},[r("ul",{key:e.view,staticClass:"uk-grid uk-grid-medium uk-margin-large-bottom",class:["uk-child-width-1-2@s uk-child-width-1-3@m",{"uk-child-width-1-4@xl":e.wide}],attrs:{"data-masonry":(e.view==="photos").toString(),"uk-grid":""}},[e.view==="photos"?e._l(e.state.result,function(n){return r("li",{key:n.id},[r("div",{staticClass:"uk-inline uk-box-shadow-medium uk-box-shadow-hover-large uk-transition-toggle uk-light",attrs:{tabindex:"0"}},[r("img",{attrs:{loading:"lazy",alt:n.alt,src:n.src.original,srcset:`${n.src.original}?fit=crop&w=600 600w, ${n.src.original}?fit=crop&w=1200 1200w`,width:n.width,height:n.height,sizes:"(min-width: 600px) 600px"}}),e._v(" "),r("div",{staticClass:"yo-overlay-image uk-position-cover uk-transition-fade"}),e._v(" "),r("a",{staticClass:"uk-position-cover",attrs:{href:""},on:{click:function(a){return a.preventDefault(),e.select(n.src.original)}}}),e._v(" "),r("div",{staticClass:"uk-position-bottom-left uk-position-small uk-transition-fade"},[r("ul",{staticClass:"uk-subnav uk-subnav-divider yo-subnav uk-margin-remove-bottom"},[r("li",[r("a",{attrs:{href:n.photographer_url,target:"_blank"}},[e._v(e._s(n.photographer))])])])])])])}):e.view==="collections"?e._l(e.state.result,function(n){return r("li",{key:`#${n.id}`},[r("div",{staticClass:"uk-position-relative uk-box-shadow-medium uk-box-shadow-hover-large uk-transition-toggle",attrs:{tabindex:"0"}},[r("div",{staticClass:"uk-flex yo-gap-xsmall",staticStyle:{"aspect-ratio":"6/5"}},[r("img",{staticClass:"uk-width-2-3 uk-object-cover",attrs:{src:n.photos[0].src.original,srcset:`${n.photos[0].src.original}?fit=crop&w=600 600w, ${n.photos[0].src.original}?fit=crop&w=1200 1200w`,sizes:"(min-width: 600px) 600px"}}),e._v(" "),r("div",{staticClass:"uk-flex uk-flex-column uk-width-1-3",staticStyle:{gap:"2px"}},e._l(n.photos.slice(1,3),function(a){return r("img",{key:a.id,staticClass:"uk-flex-1 uk-object-cover",staticStyle:{"aspect-ratio":"1/1"},attrs:{src:a.src.large}})}),0)]),e._v(" "),r("a",{staticClass:"uk-position-cover",attrs:{href:""},on:{click:function(a){return a.preventDefault(),e.routeTo({route:`${e.state.route}/collection`,view:"photos",collection:n})}}})]),e._v(" "),r("h3",{staticClass:"uk-h4 uk-margin-top uk-margin-remove-bottom"},[e._v(e._s(n.title))]),e._v(" "),r("span",{domProps:{innerHTML:e._s(`${e.$t("%smart_count% Photo |||| %smart_count% Photos",n.photos_count)}`)}})])}):e._e()],2)])]),e._v(" "),e.error?r("h3",{staticClass:"uk-h1 uk-text-danger uk-text-center"},[e._v(e._s(e.$t(e.error)))]):e.spinner?r("div",{key:"spinner",staticClass:"uk-position-center",attrs:{"uk-spinner":"ratio: 1.5"}}):e.state.total?e._e():r("h3",{staticClass:"uk-h1 uk-text-muted uk-text-center"},[e._v(e._s(e.$t("No results.")))])])},MR=[],$R=Q(RR,DR,MR,!1),FR=$R.exports;const BR=24;var HR={get client(){return(this._client??=Ks(`${ue.config.api}/unsplash`).query({per_page:BR}).headers({accept:"application/json"})).query({key:ue.config.apikey})},async photos({search:t,user:e,collection:r,page:n}){return e?this.type("users",e.username,"photos",n):r?this.type("collections",r.id,"photos",n):t?this.search("photos",t,n):this.curated("photos",n)},async collections({search:t,user:e,page:r}){return e?this.type("users",e.username,"collections",r):t?this.search("collections",t,r):this.curated("collections",r)},async users({search:t,page:e}){return this.search("users",t||"yootheme",e)},async search(t,e,r){return this.parseResponse(await this.client.query({query:e,page:r}).get(`/search/${t}`),t,r)},async curated(t,e){return this.parseResponse(await this.client.query({page:e}).get(`/${t}`),t,e)},async type(t,e,r,n){return this.parseResponse(await this.client.query({page:n}).get(`/${t}/${e}/${r}`),r,n)},async parseResponse(t,e,r){const n=(await t.res()).headers,a=Number(n.get("X-Total"));let o=await t.json();return o=Array.isArray(o)?o:o.results,{result:o,page:r,total:a,pages:Math.ceil(a/Number(n.get("X-Per-Page")))}}};const UR={extends:Ty(HR),data:t=>({routes:[{route:"photos",label:t.$t("Photos")},{route:"collections",label:t.$t("Collections")},{route:"users",label:t.$t("Users")}],views:[{name:"photos",title:e=>t.$t("%smart_count% Photo |||| %smart_count% Photos",e)},{name:"collections",title:e=>t.$t("%smart_count% Collection |||| %smart_count% Collections",e)},{name:"users",title:e=>t.$t("%smart_count% User |||| %smart_count% Users",e)}]}),methods:{getUserRoute(t,e){return e||=t.username==="yootheme"?"collections":"photos",{route:`users/${e}`,view:e,user:t}}}};var jR=function(){var e=this,r=e._self._c;return r("div",{staticClass:"yo-min-height-small uk-position-relative"},[r("div",{staticClass:"yo-modal-subheader uk-grid-small uk-child-width-auto uk-flex-between uk-flex-middle uk-margin",attrs:{"uk-grid":""}},[r("div",[r("div",{staticClass:"uk-grid-small uk-child-width-auto uk-flex-middle",attrs:{"uk-grid":""}},[r("div",[r("h2",{staticClass:"uk-modal-title uk-margin-remove"},[e._v(e._s(e.title))])]),e._v(" "),r("div",[r("div",{staticClass:"yo-finder-search"},[r("div",{staticClass:"uk-search uk-search-medium"},[r("span",{attrs:{"uk-search-icon":""}}),e._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:e.state.search,expression:"state.search"}],staticClass:"uk-search-input",attrs:{type:"search",autofocus:""},domProps:{value:e.state.search},on:{input:[function(n){n.target.composing||e.$set(e.state,"search",n.target.value)},e.search]}})])])])])]),e._v(" "),r("div",[r("ul",{staticClass:"uk-subnav uk-subnav-divider uk-flex-center uk-margin",attrs:{"uk-margin":""}},e._l(e.routes,function(n){return r("li",{key:n.route,class:{"uk-active":e.state.route?.startsWith(n.route)}},[r("a",{attrs:{href:""},on:{click:function(a){return a.preventDefault(),e.routeTo(n)}}},[e._v(e._s(n.label))])])}),0)])]),e._v(" "),e.view==="photos"&&e.state.collection?r("div",{staticClass:"uk-margin"},[r("h3",{staticClass:"uk-display-inline-block uk-margin-remove"},[e._v(e._s(e.state.collection.title))]),e._v(" "),r("span",{staticClass:"uk-margin-left",domProps:{innerHTML:e._s(e.$t("Curated by <a href>%user%</a>",{user:e.state.collection.user.name}))},on:{click:function(n){n.preventDefault(),e.routeTo(e.getUserRoute(e.state.collection.user))}}})]):e._e(),e._v(" "),["users/photos","users/collections"].includes(e.state.route)?r("div",{staticClass:"uk-grid uk-grid-medium uk-child-width-auto uk-flex-middle uk-margin"},[r("div",[r("div",{staticClass:"uk-flex uk-flex-middle"},[r("img",{staticClass:"uk-border-circle",attrs:{loading:"lazy",src:e.state.user.profile_image.medium,alt:e.state.user.name,width:"30",height:"30"}}),e._v(" "),r("h3",{staticClass:"uk-h4 uk-margin-remove-vertical uk-margin-small-left"},[e._v(e._s(e.state.user.name))])])]),e._v(" "),r("div",[r("ul",{staticClass:"uk-subnav"},e._l([{...e.getUserRoute(e.state.user,"photos"),label:e.$t("Photos")},{...e.getUserRoute(e.state.user,"collections"),label:e.$t("Collections")}],function(n){return r("li",{key:n.route,class:{"uk-active":e.state.route===n.route}},[r("a",{attrs:{href:""},on:{click:function(a){return a.preventDefault(),e.routeTo(n)}}},[e._v(e._s(n.label))])])}),0)])]):e._e(),e._v(" "),r("div",{directives:[{name:"show",rawName:"v-show",value:e.state.total,expression:"state.total"}],key:"results",style:{opacity:e.spinner?.3:1}},[r("div",{ref:"scroll",staticClass:"yo-finder-body",attrs:{"data-sel-container":e.container,"data-sel-content":e.content,"uk-overflow-auto":""},on:{"&!scroll":function(n){return e.onScroll.apply(null,arguments)}}},[r("ul",{key:e.view,staticClass:"uk-grid uk-grid-medium uk-margin-large-bottom",class:{"uk-child-width-1-2@s uk-child-width-1-3@m uk-child-width-1-4@l uk-child-width-1-5@xl":e.view==="users","uk-child-width-1-2@s uk-child-width-1-3@m":e.view!=="users","uk-child-width-1-4@xl":e.view!=="users"&&e.wide},attrs:{"data-masonry":(e.view==="photos").toString(),"uk-grid":""}},[e.view==="photos"?e._l(e.state.result,function(n){return r("li",{key:n.id},[r("div",{staticClass:"uk-inline uk-box-shadow-medium uk-box-shadow-hover-large uk-transition-toggle uk-light",attrs:{tabindex:"0"}},[r("img",{attrs:{loading:"lazy",src:n.urls.regular,srcset:`${n.urls.raw}&auto=format&fit=crop&w=600&q=60 600w, ${n.urls.raw}&auto=format&fit=crop&w=1200&q=60 1200w`,alt:n.alt_description,width:n.width,height:n.height,sizes:"(min-width: 600px) 600px"}}),e._v(" "),r("div",{staticClass:"yo-overlay-image uk-position-cover uk-transition-fade"}),e._v(" "),r("a",{staticClass:"uk-position-cover",attrs:{href:""},on:{click:function(a){return a.preventDefault(),e.select(`${n.urls.full}&id=${n.id}`)}}}),e._v(" "),r("div",{staticClass:"uk-position-bottom-left uk-position-small uk-transition-fade"},[r("ul",{staticClass:"uk-subnav uk-subnav-divider yo-subnav uk-margin-remove-bottom"},[r("li",[r("img",{staticClass:"uk-border-circle",attrs:{loading:"lazy",src:n.user.profile_image.medium,alt:n.user.name,width:"30",height:"30"}}),e._v(" "),r("a",{staticClass:"uk-margin-small-left",attrs:{href:n.user.links.html,target:"_blank"}},[e._v(e._s(n.user.name))])]),e._v(" "),r("li",[r("a",{attrs:{href:""},on:{click:function(a){a.preventDefault(),e.routeTo(e.getUserRoute(n.user))}}},[e._v(e._s(e.$t("View Photos")))])])])])])])}):e._e(),e._v(" "),e.view==="collections"?e._l(e.state.result,function(n){return r("li",{key:n.id},[r("div",{staticClass:"uk-position-relative uk-box-shadow-medium uk-box-shadow-hover-large uk-transition-toggle",attrs:{tabindex:"0"}},[r("div",{staticClass:"uk-flex yo-gap-xsmall",staticStyle:{"aspect-ratio":"6/5"}},[r("img",{staticClass:"uk-width-2-3 uk-object-cover",attrs:{src:n.preview_photos[0].urls.regular,srcset:`${n.preview_photos[0].urls.raw}&auto=format&fit=crop&w=600&q=60 600w, ${n.preview_photos[0].urls.raw}&auto=format&fit=crop&w=1200&q=60 1200w`,sizes:"(min-width: 600px) 600px"}}),e._v(" "),r("div",{staticClass:"uk-flex uk-flex-column uk-width-1-3",staticStyle:{gap:"2px"}},e._l(n.preview_photos.filter(a=>a.urls).slice(1,3),function(a){return r("img",{key:a.id,staticClass:"uk-flex-1 uk-object-cover",staticStyle:{"aspect-ratio":"1/1"},attrs:{src:a.urls.small}})}),0)]),e._v(" "),r("a",{staticClass:"uk-position-cover",attrs:{href:""},on:{click:function(a){return a.preventDefault(),e.routeTo({route:`${e.state.route}/collection`,view:"photos",collection:n})}}})]),e._v(" "),r("h3",{staticClass:"uk-h4 uk-margin-top uk-margin-remove-bottom"},[e._v(e._s(n.title))]),e._v(" "),r("span",{domProps:{innerHTML:e._s(`${e.$t("%smart_count% Photo |||| %smart_count% Photos",n.total_photos)} \xB7 ${e.$t("Curated by <a href>%user%</a>",{user:n.user.name})}`)},on:{click:function(a){a.preventDefault(),e.routeTo(e.getUserRoute(n.user))}}})])}):e._e(),e._v(" "),e.view==="users"?e._l(e.state.result,function(n){return r("li",{key:n.id},[r("a",{staticClass:"uk-grid uk-grid-small uk-flex-middle uk-link-text",attrs:{href:""},on:{click:function(a){a.preventDefault(),e.routeTo(e.getUserRoute(n))}}},[r("div",{staticClass:"uk-width-auto"},[r("img",{staticClass:"uk-border-circle",attrs:{loading:"lazy",src:n.profile_image.large,alt:n.name,width:"80",height:"80"}})]),e._v(" "),r("div",{staticClass:"uk-width-expand"},[r("h3",{staticClass:"uk-h4 uk-margin-remove uk-text-break"},[e._v(e._s(n.name))]),e._v(" "),r("p",{staticClass:"uk-margin-remove-top uk-text-break"},[e._v(e._s(`@${n.username}`))])])])])}):e._e()],2)])]),e._v(" "),e.error?r("h3",{staticClass:"uk-h1 uk-text-danger uk-text-center"},[e._v(e._s(e.$t(e.error)))]):e.spinner?r("div",{key:"spinner",staticClass:"uk-position-center",attrs:{"uk-spinner":"ratio: 1.5"}}):e.state.total?e._e():r("h3",{staticClass:"uk-h1 uk-text-muted uk-text-center"},[e._v(e._s(e.$t("No results.")))])])},WR=[],GR=Q(UR,jR,WR,!1),zR=GR.exports;const qR={name:"UnsplashTab",components:{Unsplash:zR},methods:{select(t){To.set(t,{src:t}),this.$emit("input",[t])}}};var YR=function(){var e=this,r=e._self._c;return r("div",{staticClass:"uk-modal-body"},[r("Unsplash",{on:{select:function(n){return e.select(n[0])}}})],1)},KR=[],XR=Q(qR,YR,KR,!1),Cy=XR.exports;function VR(t){return function(e){return t?.[e]}}var QR={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},JR=VR(QR),ZR=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,eD="\\u0300-\\u036f",tD="\\ufe20-\\ufe2f",rD="\\u20d0-\\u20ff",nD=eD+tD+rD,iD="["+nD+"]",aD=RegExp(iD,"g");function sD(t){return t=as(t),t&&t.replace(ZR,JR).replace(aD,"")}var oD=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function uD(t){return t.match(oD)||[]}var lD=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function cD(t){return lD.test(t)}var wy="\\ud800-\\udfff",fD="\\u0300-\\u036f",dD="\\ufe20-\\ufe2f",hD="\\u20d0-\\u20ff",pD=fD+dD+hD,Sy="\\u2700-\\u27bf",xy="a-z\\xdf-\\xf6\\xf8-\\xff",mD="\\xac\\xb1\\xd7\\xf7",vD="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",gD="\\u2000-\\u206f",_D=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ay="A-Z\\xc0-\\xd6\\xd8-\\xde",bD="\\ufe0e\\ufe0f",Oy=mD+vD+gD+_D,Ny="['\u2019]",Py="["+Oy+"]",yD="["+pD+"]",Iy="\\d+",kD="["+Sy+"]",Ly="["+xy+"]",Ry="[^"+wy+Oy+Iy+Sy+xy+Ay+"]",ED="\\ud83c[\\udffb-\\udfff]",TD="(?:"+yD+"|"+ED+")",CD="[^"+wy+"]",Dy="(?:\\ud83c[\\udde6-\\uddff]){2}",My="[\\ud800-\\udbff][\\udc00-\\udfff]",fs="["+Ay+"]",wD="\\u200d",$y="(?:"+Ly+"|"+Ry+")",SD="(?:"+fs+"|"+Ry+")",Fy="(?:"+Ny+"(?:d|ll|m|re|s|t|ve))?",By="(?:"+Ny+"(?:D|LL|M|RE|S|T|VE))?",Hy=TD+"?",Uy="["+bD+"]?",xD="(?:"+wD+"(?:"+[CD,Dy,My].join("|")+")"+Uy+Hy+")*",AD="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",OD="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ND=Uy+Hy+xD,PD="(?:"+[kD,Dy,My].join("|")+")"+ND,ID=RegExp([fs+"?"+Ly+"+"+Fy+"(?="+[Py,fs,"$"].join("|")+")",SD+"+"+By+"(?="+[Py,fs+$y,"$"].join("|")+")",fs+"?"+$y+"+"+Fy,fs+"+"+By,OD,AD,Iy,PD].join("|"),"g");function LD(t){return t.match(ID)||[]}function RD(t,e,r){return t=as(t),e=e,e===void 0?cD(t)?LD(t):uD(t):t.match(e)||[]}var DD="['\u2019]",MD=RegExp(DD,"g");function $D(t){return function(e){return Bb(RD(sD(e).replace(MD,"")),t,"")}}function jy(t,e,r){var n=-1,a=t.length;e<0&&(e=-e>a?0:a+e),r=r>a?a:r,r<0&&(r+=a),a=e>r?0:r-e>>>0,e>>>=0;for(var o=Array(a);++n<a;)o[n]=t[n+e];return o}function Uh(t,e,r){var n=t.length;return r=r===void 0?n:r,!e&&r>=n?t:jy(t,e,r)}var FD="\\ud800-\\udfff",BD="\\u0300-\\u036f",HD="\\ufe20-\\ufe2f",UD="\\u20d0-\\u20ff",jD=BD+HD+UD,WD="\\ufe0e\\ufe0f",GD="\\u200d",zD=RegExp("["+GD+FD+jD+WD+"]");function Wy(t){return zD.test(t)}function qD(t){return t.split("")}var Gy="\\ud800-\\udfff",YD="\\u0300-\\u036f",KD="\\ufe20-\\ufe2f",XD="\\u20d0-\\u20ff",VD=YD+KD+XD,QD="\\ufe0e\\ufe0f",JD="["+Gy+"]",jh="["+VD+"]",Wh="\\ud83c[\\udffb-\\udfff]",ZD="(?:"+jh+"|"+Wh+")",zy="[^"+Gy+"]",qy="(?:\\ud83c[\\udde6-\\uddff]){2}",Yy="[\\ud800-\\udbff][\\udc00-\\udfff]",eM="\\u200d",Ky=ZD+"?",Xy="["+QD+"]?",tM="(?:"+eM+"(?:"+[zy,qy,Yy].join("|")+")"+Xy+Ky+")*",rM=Xy+Ky+tM,nM="(?:"+[zy+jh+"?",jh,qy,Yy,JD].join("|")+")",iM=RegExp(Wh+"(?="+Wh+")|"+nM+rM,"g");function aM(t){return t.match(iM)||[]}function Po(t){return Wy(t)?aM(t):qD(t)}function sM(t){return function(e){e=as(e);var r=Wy(e)?Po(e):void 0,n=r?r[0]:e.charAt(0),a=r?Uh(r,1).join(""):e.slice(1);return n[t]()+a}}var Gh=sM("toUpperCase"),Vy=$D(function(t,e,r){return t+(r?" ":"")+Gh(e)});const oM={name:"PexelsTab",components:{Pexels:FR},methods:{select(t){To.set(t,{src:t}),this.$emit("input",[t])}}};var uM=function(){var e=this,r=e._self._c;return r("div",{staticClass:"uk-modal-body"},[r("Pexels",{on:{select:function(n){return e.select(n[0])}}})],1)},lM=[],cM=Q(oM,uM,lM,!1),fM=cM.exports;const dM={name:"MediaPicker",components:{IconsTab:yy,Switcher:ls,UnsplashTab:Cy},props:{type:{type:[Array,String],default:"image"},multiple:{type:Boolean,default:!1},photos:{type:Boolean,default:!0}},computed:{tabs(){const t=[];return[].concat(this.type).includes("image")&&!this.multiple&&(t.push({name:"pro images",component:yy}),this.photos&&(t.push({name:"unsplash",component:Cy}),t.push({name:"pexels",component:fM}))),t.concat(this.$trigger("mediaModalTabs",[t])||[])}},methods:{select(t){t=t.map(e=>({src:e,title:Vy(e.replace(/.*\/|\.[^.]*$/g,""))})),t=this.multiple?t:t[0],this.$emit("resolve",t)}}};var hM=function(){var e=this,r=e._self._c;return r("Switcher",{attrs:{tabs:e.tabs.map(({name:n})=>n),storage:"media-picker.mode"},scopedSlots:e._u([e._l(e.tabs,function(n){return{key:n.name,fn:function(){return[r("div",{key:n.name},[r(n.component,{tag:"component",attrs:{type:e.type,multiple:e.multiple},on:{input:e.select}})],1)]},proxy:!0}})],null,!0)})},pM=[],mM=Q(dM,hM,pM,!1),Qy=mM.exports;const vM={name:"Modal",provide(){return{Modal:this}},props:{component:{type:Function,required:!0},props:{type:Object,required:!0}},data:()=>({width:"",container:!1}),watch:{container:{handler(t){ke.toggleClass(this.$el,"uk-modal-container",!!t)},immediate:!0}},mounted(){this.modal=nr.modal(this.$el,{stack:!0})},beforeDestroy(){this.modal.$destroy(!0)},methods:{show(t={}){return this.width=t.width,this.container=t.container,this.modal.show(),new Promise((e,r)=>{this.promise={resolve:e,reject:r}})},hide(){this.modal.hide()},hidden(){this.promise.resolve(),this.$nextTick(this.$destroy)},resolve(t){this.promise.resolve(t),this.modal.hide()},reject(t){this.promise.reject(t),this.modal.hide()}}};var gM=function(){var e=this,r=e._self._c;return r("div",{on:{show:function(n){return n.target!==n.currentTarget?null:e.$emit("show")},hide:function(n){return n.target!==n.currentTarget?null:e.$emit("hide")},hidden:function(n){return n.target!==n.currentTarget?null:e.hidden.apply(null,arguments)}}},[r("div",{class:["uk-modal-dialog",e.width?`uk-width-${e.width}`:""]},[r(e.component,e._b({tag:"component",on:{resolve:e.resolve,reject:e.reject}},"component",e.props,!1))],1)])},_M=[],bM=Q(vM,gM,_M,!1),Jy=bM.exports;const yM={props:{title:{type:String,default(){return this.$t("Select Image")}},svgs:{type:Object},value:{type:String}},methods:{select(t){this.$emit("input",t),this.$emit("resolve",t)}}};var kM=function(){var e=this,r=e._self._c;return r("div",[r("div",{staticClass:"uk-modal-header"},[r("h2",{staticClass:"uk-modal-title"},[e._v(e._s(e.title))])]),e._v(" "),r("div",{staticClass:"uk-modal-body"},[r("div",{staticClass:"uk-grid-collapse uk-child-width-1-4",attrs:{"uk-grid":""}},e._l(e.svgs,function(n,a){return r("div",{key:a},[r("div",{staticClass:"uk-card uk-card-body uk-card-hover yo-panel uk-text-center",class:{"uk-active":e.value===a}},[r("img",{attrs:{alt:n.label,src:e.$url(n.src),"uk-svg":""}}),e._v(" "),r("p",{staticClass:"uk-margin-small-top uk-margin-remove-bottom"},[e._v(e._s(n.label))]),e._v(" "),r("a",{staticClass:"uk-position-cover",on:{click:function(o){return o.preventDefault(),e.select(a)}}})])])}),0)])])},EM=[],TM=Q(yM,kM,EM,!1),CM=TM.exports,cn={bind:Zy,update:Zy};function Zy(t,{value:e},{data:{on:r}}){for(const n of Object.values(r)){const{fns:a}=n;n.fns=(Array.isArray(a)?a:[a]).map(o=>async(...c)=>{try{await nr.modal.confirm(e,{stack:!0}),o(...c)}catch{}})}}var zh={bind(t,{value:e},{context:r,data:n}){if(!ke.isFunction(r.move))throw"Sortable directive needs to implement function move(child, parent, index).";n.class?.push("uk-sortable"),nr.sortable(t,{...e,animation:!1}),t._off=ke.on(t,"moved added removed",({type:a},o,c)=>{a!=="removed"&&r.move(c.__vue__,r,ke.index(c),o.origin?.index),a!=="added"&&wM(t,c,o.origin.index)},{self:!0})},unbind({_off:t}){t()}};function wM(t,e,r){e.remove(),t.children[r]?t.children[r].before(e):t.appendChild(e)}function ds(t,e,r,n){const a=e1(t,e);return a.show(r,n),a}function Io(t,e,r,n){return e1(t,e).show(r,n)}function e1(t,e={}){return new oe({extends:iv,propsData:{component:oe.extend(t),props:e}}).$mount()}function ha(t,e,r){const n=t1(t,e);return n.show(r),n}function Dt(t,e,r){return t1(t,e).show(r)}function t1(t,e={}){return new oe({extends:Jy,propsData:{component:oe.extend(t),props:e}}).$mount()}var r1=Object.create,SM=(function(){function t(){}return function(e){if(!_t(e))return{};if(r1)return r1(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}})();function n1(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}function xM(t,e){for(var r=-1,n=t==null?0:t.length;++r<n&&e(t[r],r,t)!==!1;);return t}function Lo(t,e,r){e=="__proto__"&&Fl?Fl(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}var AM=Object.prototype,OM=AM.hasOwnProperty;function qh(t,e,r){var n=t[e];(!(OM.call(t,e)&&_o(n,r))||r===void 0&&!(e in t))&&Lo(t,e,r)}function hs(t,e,r,n){var a=!r;r||(r={});for(var o=-1,c=e.length;++o<c;){var d=e[o],p=void 0;p===void 0&&(p=t[d]),a?Lo(r,d,p):qh(r,d,p)}return r}function Yh(t,e,r){if(!_t(r))return!1;var n=typeof e;return(n=="number"?Kn(r)&&Al(e,r.length):n=="string"&&e in r)?_o(r[e],t):!1}function NM(t){return Bl(function(e,r){var n=-1,a=r.length,o=a>1?r[a-1]:void 0,c=a>2?r[2]:void 0;for(o=t.length>3&&typeof o=="function"?(a--,o):void 0,c&&Yh(r[0],r[1],c)&&(o=a<3?void 0:o,a=1),e=Object(e);++n<a;){var d=r[n];d&&t(e,d,n,o)}return e})}function PM(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}var IM=Object.prototype,LM=IM.hasOwnProperty;function RM(t){if(!_t(t))return PM(t);var e=Pl(t),r=[];for(var n in t)n=="constructor"&&(e||!LM.call(t,n))||r.push(n);return r}function Ro(t){return Kn(t)?Mb(t,!0):RM(t)}function DM(t){var e=t==null?0:t.length;return e?$l(t):[]}function i1(t){return my(py(t,void 0,DM),t+"")}function MM(t,e){return t&&hs(e,Xn(e),t)}function $M(t,e){return t&&hs(e,Ro(e),t)}var a1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,s1=a1&&typeof module=="object"&&module&&!module.nodeType&&module,FM=s1&&s1.exports===a1,o1=FM?on.Buffer:void 0,u1=o1?o1.allocUnsafe:void 0;function l1(t,e){if(e)return t.slice();var r=t.length,n=u1?u1(r):new t.constructor(r);return t.copy(n),n}function BM(t,e){return hs(t,Ph(t),e)}var HM=Object.getOwnPropertySymbols,c1=HM?function(t){for(var e=[];t;)Nh(e,Ph(t)),t=Fh(t);return e}:zb;function UM(t,e){return hs(t,c1(t),e)}function Kh(t){return Wb(t,Ro,c1)}var jM=Object.prototype,WM=jM.hasOwnProperty;function GM(t){var e=t.length,r=new t.constructor(e);return e&&typeof t[0]=="string"&&WM.call(t,"index")&&(r.index=t.index,r.input=t.input),r}function Xh(t){var e=new t.constructor(t.byteLength);return new Il(e).set(new Il(t)),e}function zM(t,e){var r=e?Xh(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}var qM=/\w*$/;function YM(t){var e=new t.constructor(t.source,qM.exec(t));return e.lastIndex=t.lastIndex,e}var f1=Kr?Kr.prototype:void 0,d1=f1?f1.valueOf:void 0;function KM(t){return d1?Object(d1.call(t)):{}}function h1(t,e){var r=e?Xh(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}var XM="[object Boolean]",VM="[object Date]",QM="[object Map]",JM="[object Number]",ZM="[object RegExp]",e6="[object Set]",t6="[object String]",r6="[object Symbol]",n6="[object ArrayBuffer]",i6="[object DataView]",a6="[object Float32Array]",s6="[object Float64Array]",o6="[object Int8Array]",u6="[object Int16Array]",l6="[object Int32Array]",c6="[object Uint8Array]",f6="[object Uint8ClampedArray]",d6="[object Uint16Array]",h6="[object Uint32Array]";function p6(t,e,r){var n=t.constructor;switch(e){case n6:return Xh(t);case XM:case VM:return new n(+t);case i6:return zM(t,r);case a6:case s6:case o6:case u6:case l6:case c6:case f6:case d6:case h6:return h1(t,r);case QM:return new n;case JM:case t6:return new n(t);case ZM:return YM(t);case e6:return new n;case r6:return KM(t)}}function p1(t){return typeof t.constructor=="function"&&!Pl(t)?SM(Fh(t)):{}}var m6="[object Map]";function v6(t){return yr(t)&&Xr(t)==m6}var m1=rs&&rs.isMap,g6=m1?Ol(m1):v6,_6="[object Set]";function b6(t){return yr(t)&&Xr(t)==_6}var v1=rs&&rs.isSet,y6=v1?Ol(v1):b6,k6=1,E6=2,T6=4,g1="[object Arguments]",C6="[object Array]",w6="[object Boolean]",S6="[object Date]",x6="[object Error]",_1="[object Function]",A6="[object GeneratorFunction]",O6="[object Map]",N6="[object Number]",b1="[object Object]",P6="[object RegExp]",I6="[object Set]",L6="[object String]",R6="[object Symbol]",D6="[object WeakMap]",M6="[object ArrayBuffer]",$6="[object DataView]",F6="[object Float32Array]",B6="[object Float64Array]",H6="[object Int8Array]",U6="[object Int16Array]",j6="[object Int32Array]",W6="[object Uint8Array]",G6="[object Uint8ClampedArray]",z6="[object Uint16Array]",q6="[object Uint32Array]",yt={};yt[g1]=yt[C6]=yt[M6]=yt[$6]=yt[w6]=yt[S6]=yt[F6]=yt[B6]=yt[H6]=yt[U6]=yt[j6]=yt[O6]=yt[N6]=yt[b1]=yt[P6]=yt[I6]=yt[L6]=yt[R6]=yt[W6]=yt[G6]=yt[z6]=yt[q6]=!0,yt[x6]=yt[_1]=yt[D6]=!1;function Do(t,e,r,n,a,o){var c,d=e&k6,p=e&E6,v=e&T6;if(r&&(c=a?r(t,n,a,o):r(t)),c!==void 0)return c;if(!_t(t))return t;var b=St(t);if(b){if(c=GM(t),!d)return n1(t,c)}else{var C=Xr(t),T=C==_1||C==A6;if(ts(t))return l1(t,d);if(C==b1||C==g1||T&&!a){if(c=p||T?{}:p1(t),!d)return p?UM(t,$M(c,t)):BM(t,MM(c,t))}else{if(!yt[C])return a?t:{};c=p6(t,C,d)}}o||(o=new ln);var A=o.get(t);if(A)return A;o.set(t,c),y6(t)?t.forEach(function(j){c.add(Do(j,e,r,j,t,o))}):g6(t)&&t.forEach(function(j,O){c.set(O,Do(j,e,r,O,t,o))});var F=v?p?Kh:Ih:p?Ro:Xn,G=b?void 0:F(t);return xM(G||t,function(j,O){G&&(O=j,j=t[O]),qh(c,O,Do(j,e,r,O,t,o))}),c}var Y6=1,K6=4;function Vh(t){return Do(t,Y6|K6)}function X6(t,e,r,n){for(var a=-1,o=t==null?0:t.length;++a<o;){var c=t[a];e(n,c,r(c),t)}return n}function V6(t,e,r,n){return xo(t,function(a,o,c){e(n,a,r(a),c)}),n}function Q6(t,e){return function(r,n){var a=St(r)?X6:V6,o={};return a(r,t,Pr(n),o)}}function Qh(t,e,r){(r!==void 0&&!_o(t[e],r)||r===void 0&&!(e in t))&&Lo(t,e,r)}function Jh(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function J6(t){return hs(t,Ro(t))}function Z6(t,e,r,n,a,o,c){var d=Jh(t,r),p=Jh(e,r),v=c.get(p);if(v){Qh(t,r,v);return}var b=o?o(d,p,r+"",t,e,c):void 0,C=b===void 0;if(C){var T=St(p),A=!T&&ts(p),F=!T&&!A&&Nl(p);b=p,T||A||F?St(d)?b=d:No(d)?b=n1(d):A?(C=!1,b=l1(p,!0)):F?(C=!1,b=h1(p,!0)):b=[]:Ml(p)||es(p)?(b=d,es(d)?b=J6(d):(!_t(d)||zn(d))&&(b=p1(p))):C=!1}C&&(c.set(p,b),a(b,p,n,o,c),c.delete(p)),Qh(t,r,b)}function y1(t,e,r,n,a){t!==e&&Hb(e,function(o,c){if(a||(a=new ln),_t(o))Z6(t,e,c,r,y1,n,a);else{var d=n?n(Jh(t,c),o,c+"",t,e,a):void 0;d===void 0&&(d=o),Qh(t,c,d)}},Ro)}var e8=200;function t8(t,e,r,n){var a=-1,o=vy,c=!0,d=t.length,p=[],v=e.length;if(!d)return p;e.length>=e8&&(o=xh,c=!1,e=new ns(e));e:for(;++a<d;){var b=t[a],C=b;if(b=b!==0?b:0,c&&C===C){for(var T=v;T--;)if(e[T]===C)continue e;p.push(b)}else o(e,C,n)||p.push(b)}return p}var r8=Bl(function(t,e){return No(t)?t8(t,$l(e,1,No,!0)):[]});function n8(t){return typeof t=="function"?t:Oo}function i8(t,e){for(var r=-1,n=t==null?0:t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0}function a8(t,e){var r=!0;return xo(t,function(n,a,o){return r=!!e(n,a,o),r}),r}function k1(t,e,r){var n=St(t)?i8:a8;return n(t,Pr(e))}function s8(t){return function(e,r,n){var a=Object(e);if(!Kn(e)){var o=Pr(r);e=Xn(e),r=function(d){return o(a[d],d,a)}}var c=t(e,r,n);return c>-1?a[o?e[c]:c]:void 0}}var o8=Math.max;function u8(t,e,r){var n=t==null?0:t.length;if(!n)return-1;var a=r==null?0:xl(r);return a<0&&(a=o8(n+a,0)),Eh(t,Pr(e),a)}var pa=s8(u8);function l8(t,e,r){var n;return r(t,function(a,o,c){if(e(a,o,c))return n=o,!1}),n}function Wl(t,e){return l8(t,Pr(e),Sh)}function c8(t,e,r){var n=t==null?0:t.length;if(!n)return-1;var a=n-1;return Eh(t,Pr(e),a,!0)}function E1(t,e){var r=-1,n=Kn(t)?Array(t.length):[];return xo(t,function(a,o,c){n[++r]=e(a,o,c)}),n}function ma(t,e){var r=St(t)?Ei:E1;return r(t,Pr(e))}var f8=Object.prototype,d8=f8.hasOwnProperty,Ci=Q6(function(t,e,r){d8.call(t,r)?t[r].push(e):Lo(t,r,[e])});function h8(t,e){return e.length<2?t:us(t,jy(e,0,-1))}var p8="[object Map]",m8="[object Set]",v8=Object.prototype,g8=v8.hasOwnProperty;function An(t){if(t==null)return!0;if(Kn(t)&&(St(t)||typeof t=="string"||typeof t.splice=="function"||ts(t)||Nl(t)||es(t)))return!t.length;var e=Xr(t);if(e==p8||e==m8)return!t.size;if(Pl(t))return!Fb(t).length;for(var r in t)if(g8.call(t,r))return!1;return!0}function Gl(t,e){return Ao(t,e)}function _8(t,e,r){r=typeof r=="function"?r:void 0;var n=r?r(t,e):void 0;return n===void 0?Ao(t,e,void 0,r):!!n}function b8(t){return typeof t=="number"&&t==xl(t)}function y8(t,e){return t===e||ty(t,e,ny(e))}function dr(t){return t===void 0}function zl(t,e){var r={};return e=Pr(e),Sh(t,function(n,a,o){Lo(r,a,e(n,a,o))}),r}var kr=NM(function(t,e,r){y1(t,e,r)}),k8="Expected a function";function E8(t){if(typeof t!="function")throw new TypeError(k8);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function T8(t,e){return e=ss(e,t),t=h8(t,e),t==null||delete t[os(_y(e))]}function C8(t){return Ml(t)?void 0:t}var w8=1,S8=2,x8=4,Mo=i1(function(t,e){var r={};if(t==null)return r;var n=!1;e=Ei(e,function(o){return o=ss(o,t),n||(n=o.length>1),o}),hs(t,Kh(t),r),n&&(r=Do(r,w8|S8|x8,C8));for(var a=e.length;a--;)T8(r,e[a]);return r});function Zh(t,e,r,n){if(!_t(t))return t;e=ss(e,t);for(var a=-1,o=e.length,c=o-1,d=t;d!=null&&++a<o;){var p=os(e[a]),v=r;if(p==="__proto__"||p==="constructor"||p==="prototype")return t;if(a!=c){var b=d[p];v=void 0,v===void 0&&(v=_t(b)?b:Al(e[a+1])?[]:{})}qh(d,p,v),d=d[p]}return t}function T1(t,e,r){for(var n=-1,a=e.length,o={};++n<a;){var c=e[n],d=us(t,c);r(d,c)&&Zh(o,ss(c,t),d)}return o}function wi(t,e){if(t==null)return{};var r=Ei(Kh(t),function(n){return[n]});return e=Pr(e),T1(t,r,function(n,a){return e(n,a[0])})}function A8(t,e){return wi(t,E8(Pr(e)))}function O8(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}function N8(t,e){if(t!==e){var r=t!==void 0,n=t===null,a=t===t,o=Za(t),c=e!==void 0,d=e===null,p=e===e,v=Za(e);if(!d&&!v&&!o&&t>e||o&&c&&p&&!d&&!v||n&&c&&p||!r&&p||!a)return 1;if(!n&&!o&&!v&&t<e||v&&r&&a&&!n&&!o||d&&r&&a||!c&&a||!p)return-1}return 0}function P8(t,e,r){for(var n=-1,a=t.criteria,o=e.criteria,c=a.length,d=r.length;++n<c;){var p=N8(a[n],o[n]);if(p){if(n>=d)return p;var v=r[n];return p*(v=="desc"?-1:1)}}return t.index-e.index}function C1(t,e,r){e.length?e=Ei(e,function(o){return St(o)?function(c){return us(c,o.length===1?o[0]:o)}:o}):e=[Oo];var n=-1;e=Ei(e,Ol(Pr));var a=E1(t,function(o,c,d){var p=Ei(e,function(v){return v(o)});return{criteria:p,index:++n,value:o}});return O8(a,function(o,c){return P8(o,c,r)})}function ep(t,e,r,n){return t==null?[]:(St(e)||(e=e==null?[]:[e]),r=n?void 0:r,St(r)||(r=r==null?[]:[r]),C1(t,e,r))}function I8(t,e){return T1(t,e,function(r,n){return oy(t,n)})}var ql=i1(function(t,e){return t==null?{}:I8(t,e)});function L8(t,e,r){return t==null?t:Zh(t,e,r)}var Yl=Bl(function(t,e){if(t==null)return[];var r=e.length;return r>1&&Yh(t,e[0],e[1])?e=[]:r>2&&Yh(e[0],e[1],e[2])&&(e=[e[0]]),C1(t,$l(e),[])}),R8="Expected a function";function D8(t,e,r){var n=!0,a=!0;if(typeof t!="function")throw new TypeError(R8);return _t(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),Vn(t,e,{leading:n,maxWait:e,trailing:a})}function M8(t,e){for(var r=t.length;r--&&Sl(e,t[r],0)>-1;);return r}function $8(t,e){for(var r=-1,n=t.length;++r<n&&Sl(e,t[r],0)>-1;);return r}function tp(t,e,r){if(t=as(t),t&&e===void 0)return t.slice(0,Sb(t)+1);if(!t||!(e=Rl(e)))return t;var n=Po(t),a=M8(n,Po(e))+1;return Uh(n,0,a).join("")}var F8=/^\s+/;function B8(t,e,r){if(t=as(t),t&&e===void 0)return t.replace(F8,"");if(!t||!(e=Rl(e)))return t;var n=Po(t),a=$8(n,Po(e));return Uh(n,a).join("")}function H8(t,e){return e=typeof e=="function"?e:void 0,t&&t.length?gy(t,void 0,e):[]}function U8(t,e,r,n){return Zh(t,e,r(us(t,e)))}function j8(t,e,r){return t==null?t:U8(t,e,n8(r))}var rp,w1;function W8(){if(w1)return rp;w1=1;function t(e){return e===void 0}return rp=t,rp}var G8=W8(),S1=Da(G8);class x1{constructor(){this.log=null,this.listeners={}}on(e,r,n=0){const a=this.listeners[e]||[],o=a.findIndex(c=>c.priority<n);return~o?a.splice(o,0,{callback:r,priority:n}):a.push({callback:r,priority:n}),this.listeners[e]=a,()=>this.off(e,r)}off(e,r){r||delete this.listeners[e];const n=this.listeners[e];if(n&&r){const a=n.findIndex(o=>o.callback===r);~a&&n.splice(a,1)}}trigger(e,r=[],n=!1){const a=new z8(e,r),o=b=>Promise.reject(b),c=b=>S1(b)?a.result:b,d=(b,{callback:C})=>{const T=A=>(S1(A)||(a.result=A),A===!1&&a.stopPropagation(),a.isPropagationStopped()?a.result:C.apply(C,[a].concat(a.params)));return n?b.then(T,o):T(b)};this.log&&this.log.call(this,a);const v=(this.listeners[a.name]||[]).concat().reduce(d,n?Promise.resolve():void 0);return n?v.then(c,o):c(v)}}let z8=class{constructor(e,r){yr(e)||(e={name:e}),Array.isArray(r)||(r=[r]),Object.assign(this,e,{params:r,result:void 0})}stopPropagation(){this.stop=!0}isPropagationStopped(){return this.stop===!0}},A1={};function q8({config:t}){A1=t}function Y8(t,e="#41B883"){typeof console<"u"&&A1.devtools&&console.log(`%c vue-event-manager %c ${t} `,"color: #fff; background: #35495E; padding: 1px; border-radius: 3px 0 0 3px;",`color: #fff; background: ${e}; padding: 1px; border-radius: 0 3px 3px 0;`)}const ps=new x1;var O1={version:"2.1.3",install(t,e={}){this.installed||(q8(t),Y8(this.version),t.prototype.$events=t.events=Object.assign(ps,e),t.prototype.$trigger=function(r,n=[],a=!1){return yr(r)||(r={name:r,origin:this}),ps.trigger(r,n,a)},t.config.optionMergeStrategies.events=K8,t.mixin({beforeCreate(){const{events:r}=this.$options;if(r){const n=N1.call(this,r);this.$on("hook:beforeDestroy",()=>n.forEach(a=>a()))}}}))},EventManager:x1};function K8(t,e){if(!e)return t;if(!t)return e;const r=Object.assign({},t);for(const n in e){let a=r[n];const o=e[n];a&&!Array.isArray(a)&&(a=[a]),r[n]=a?a.concat(o):Array.isArray(o)?o:[o]}return r}function N1(t={}){const e=[];for(const[r,n]of Object.entries(t))for(let a of Array.isArray(n)?n:[n]){let o=0;yr(a)&&(o=a.priority,a=a.handler),e.push(ps.on(r,X8(a,this),o))}return e}function X8(t,e){return typeof t=="string"?function(){return e[t].apply(e,arguments)}:t.bind(e)}typeof window<"u"&&window.Vue&&window.Vue.use(O1);function Me(t,e={}){const r=to(),{origin:n=r?.proxy??null}=e;if(t){const o=N1.call(n,t);r&&Ga(()=>o.forEach(c=>c()))}function a(o,c=[],d=!1){return ps.trigger(yr(o)?o:{name:o,origin:n},c,d)}return{Events:ps,trigger:a}}const V8={__name:"LinkPicker",props:{iframes:{type:Object,default:()=>({articles:"&option=com_content&view=articles","menu items":"&option=com_menus&view=items"})}},emits:["select","resolve"],setup(t,{emit:e}){const r=t,n=`${ue.customizer.root}/index.php?layout=modal&tmpl=component&function=pickLink&${ue.customizer.token}=1`;Ga(()=>{delete window.pickLink,window.Joomla?.Modal?.setCurrent()});function a({target:{contentDocument:o}}){window.pickLink=(c,d,p,v,b,C="")=>{C!==""&&!b.includes("&lang=")&&(b+=`&lang=${C}`),e("select",b),e("resolve",b)},window.Joomla?.Modal?.setCurrent({close(){}}),ue.customizer.admin||Tb(o,[".contentpane { padding: 30px !important }",".js-stools-container-list { display: none !important }"])}return{__sfc:!0,base:n,emit:e,props:r,loadIframe:a,Switcher:ls}}};var Q8=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r(n.Switcher,{attrs:{tabs:Object.keys(n.props.iframes)},nativeOn:{"!load":function(a){return n.loadIframe.apply(null,arguments)}},scopedSlots:e._u([e._l(n.props.iframes,function(a,o){return{key:o,fn:function(){return[r("div",{key:o,attrs:{"uk-overflow-auto":"expand: true"}},[r("iframe",{staticStyle:{height:"100%",width:"100%"},attrs:{src:`${n.base}${a}`}})])]},proxy:!0}})],null,!0)})},J8=[],Z8=Q(V8,Q8,J8,!1),P1=Z8.exports;const e$={__name:"UserPicker",emits:["select","resolve"],setup(t,{emit:e}){const r=`${ue.customizer.root}/index.php?layout=modal&tmpl=component&option=com_users&view=users`;Ga(()=>{delete window.pickLink});function n({target:{contentDocument:a}}){a.querySelectorAll(".button-select").forEach(c=>c.setAttribute("onclick","window.parent.pickLink(this.dataset.userValue)")),window.pickLink=c=>{e("select",c),e("resolve",c)},Tb(a,[".contentpane { padding: 30px !important }",".js-stools-container-list { display: none !important }"])}return{__sfc:!0,src:r,emit:e,loadIframe:n}}};var t$=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",{attrs:{"uk-overflow-auto":"expand: true"},on:{"!load":function(a){return n.loadIframe.apply(null,arguments)}}},[r("iframe",{staticStyle:{height:"100%",width:"100%"},attrs:{src:n.src}})])},r$=[],n$=Q(e$,t$,r$,!1),i$=n$.exports,a$={setup(){Me({async openItemPicker(){return(await Dt(P1,{iframes:{articles:"&option=com_content&view=articles"}},{container:!0}))?.match(/[&?]id=(\d+)/)[1]},resolveItemTitle(t,{id:e}){return Ue("joomla/articles").query({ids:[e]}).get().json(({[e]:r})=>r)}}),Me({openItemPicker:{handler(t,e){if(e.module==="com_users")return t.stopPropagation(),Dt(i$,{},{container:!0})},priority:5},resolveItemTitle:{handler(t,{id:e,module:r}){if(r==="com_users")return t.stopPropagation(),Ue("joomla/users").query({ids:[e]}).get().json(({[e]:n})=>n)},priority:5}})}};const s$={name:"Fields"};var o$=function(e,r){return e("div",{staticClass:"yo-sidebar-fields",class:r.data.staticClass,style:r.data.style},r._l(r.parent.prepare(r.props.field.fields),function(n){return e("div",{directives:[{name:"show",rawName:"v-show",value:r.parent.evaluate(n.show),expression:"parent.evaluate(field.show)"}],key:n.name},[n.buttons?[e("div",{staticClass:"uk-flex uk-flex-middle uk-flex-right"},[n.label?e("div",{staticClass:"uk-width-expand"},[e("h3",{staticClass:"yo-sidebar-subheading uk-margin-remove"},[r._v(r._s(r.parent.$t(n.label)))])]):r._e(),r._v(" "),n.buttons?e("div",{directives:[{name:"show",rawName:"v-show",value:n.buttons.some(a=>r.parent.evaluate(a.show)),expression:"field.buttons.some((button) => parent.evaluate(button.show))"}],staticClass:"uk-width-auto"},[e("ul",{staticClass:"uk-subnav uk-margin-remove"},r._l(n.buttons,function({label:a,action:o,show:c}){return e("li",{directives:[{name:"show",rawName:"v-show",value:r.parent.evaluate(c),expression:"parent.evaluate(show)"}],key:o},[e("button",{staticClass:"uk-button uk-button-link",attrs:{disabled:n.enable&&!r.parent.evaluate(n.enable),type:"button"},on:{click:function(d){return r.parent.$trigger(o,[n,d])}}},[r._v(` `+r._s(a)+` `)])])}),0)]):r._e()])]:n.label?e("h3",{staticClass:"yo-sidebar-subheading"},[r._v(r._s(r.parent.$t(n.label)))]):r._e(),r._v(" "),n.type!=="description"?[["radio","checkbox","grid","group","parallax-stops"].includes(n.type)?e(n.component,{tag:"component",attrs:{field:n,values:r.parent.values},on:{change:r.parent.change}}):e("div",{staticClass:"uk-margin-small"},[e(n.component,{tag:"component",attrs:{field:n,values:r.parent.values},on:{change:r.parent.change}})],1)]:r._e(),r._v(" "),n.description?e("p",{staticClass:"uk-text-muted uk-margin-small",domProps:{innerHTML:r._s(r.parent.$t(n.description))}}):r._e(),r._v(" "),n.divider?e("hr"):r._e()],2)}),0)},u$=[],l$=Q(s$,o$,u$,!0),I1=l$.exports;const L1=["this"],c$=["+","-","!"],f$=["=","+","-","*","/","%","^","==","!=",">","<",">=","<=","||","&&","??","&","===","!==","|","|>"],R1={"!":0,":":0,",":0,")":0,"]":0,"}":0,"|>":1,"?":2,"??":3,"||":4,"&&":5,"|":6,"^":7,"&":8,"!=":9,"==":9,"!==":9,"===":9,">=":10,">":10,"<=":10,"<":10,"+":11,"-":11,"%":12,"/":12,"*":12,"(":13,"[":13,".":13,"{":13},D1=13;const d$=["==","!=","<=",">=","||","&&","??","|>"],h$=["===","!=="];var qe;(function(t){t[t.STRING=1]="STRING",t[t.IDENTIFIER=2]="IDENTIFIER",t[t.DOT=3]="DOT",t[t.COMMA=4]="COMMA",t[t.COLON=5]="COLON",t[t.INTEGER=6]="INTEGER",t[t.DECIMAL=7]="DECIMAL",t[t.OPERATOR=8]="OPERATOR",t[t.GROUPER=9]="GROUPER",t[t.KEYWORD=10]="KEYWORD",t[t.ARROW=11]="ARROW"})(qe||(qe={}));const On=(t,e,r=0)=>({kind:t,value:e,precedence:r}),p$=t=>t===9||t===10||t===13||t===32,M1=t=>t===95||t===36||(t&=-33,65<=t&&t<=90),m$=t=>M1(t)||$o(t),v$=t=>L1.indexOf(t)!==-1,g$=t=>t===34||t===39,$o=t=>48<=t&&t<=57,_$=t=>t===43||t===45||t===42||t===47||t===33||t===38||t===37||t===60||t===61||t===62||t===63||t===94||t===124,b$=t=>t===40||t===41||t===91||t===93||t===123||t===125,y$=t=>t.replace(/\\(.)/g,(e,r)=>{switch(r){case"n":return` `;case"r":return"\r";case"t":return" ";case"b":return"\b";case"f":return"\f";default:return r}});let k$=class{_input;_index=-1;_tokenStart=0;_next;constructor(e){this._input=e,this._advance()}nextToken(){for(;p$(this._next);)this._advance(!0);if(g$(this._next))return this._tokenizeString();if(M1(this._next))return this._tokenizeIdentOrKeyword();if($o(this._next))return this._tokenizeNumber();if(this._next===46)return this._tokenizeDot();if(this._next===44)return this._tokenizeComma();if(this._next===58)return this._tokenizeColon();if(_$(this._next))return this._tokenizeOperator();if(b$(this._next))return this._tokenizeGrouper();if(this._advance(),this._next!==void 0)throw new Error(`Expected end of input, got ${this._next}`)}_advance(e){this._index++,this._index<this._input.length?(this._next=this._input.charCodeAt(this._index),e===!0&&(this._tokenStart=this._index)):this._next=void 0}_getValue(e=0){const r=this._input.substring(this._tokenStart,this._index+e);return e===0&&this._clearValue(),r}_clearValue(){this._tokenStart=this._index}_tokenizeString(){const e="unterminated string",r=this._next;for(this._advance(!0);this._next!==r;){if(this._next===void 0)throw new Error(e);if(this._next===92&&(this._advance(),this._next===void 0))throw new Error(e);this._advance()}const n=On(qe.STRING,y$(this._getValue()));return this._advance(),n}_tokenizeIdentOrKeyword(){do this._advance();while(m$(this._next));const e=this._getValue(),r=v$(e)?qe.KEYWORD:qe.IDENTIFIER;return On(r,e)}_tokenizeNumber(){do this._advance();while($o(this._next));return this._next===46?this._tokenizeDot():On(qe.INTEGER,this._getValue())}_tokenizeDot(){return this._advance(),$o(this._next)?this._tokenizeFraction():(this._clearValue(),On(qe.DOT,".",D1))}_tokenizeComma(){return this._advance(!0),On(qe.COMMA,",")}_tokenizeColon(){return this._advance(!0),On(qe.COLON,":")}_tokenizeFraction(){do this._advance();while($o(this._next));return On(qe.DECIMAL,this._getValue())}_tokenizeOperator(){this._advance();let e=this._getValue(2);if(h$.indexOf(e)!==-1)this._advance(),this._advance();else{if(e=this._getValue(1),e==="=>")return this._advance(),On(qe.ARROW,e);d$.indexOf(e)!==-1&&this._advance()}return e=this._getValue(),On(qe.OPERATOR,e,R1[e])}_tokenizeGrouper(){const e=String.fromCharCode(this._next),r=On(qe.GROUPER,e,R1[e]);return this._advance(!0),r}};const E$=(t,e)=>new T$(t,e).parse();let T$=class{_kind;_tokenizer;_ast;_token;_value;constructor(e,r){this._tokenizer=new k$(e),this._ast=r}parse(){return this._advance(),this._parseExpression()}_advance(e,r){if(!this._matches(e,r))throw new Error(`Expected kind ${e} (${r}), was ${this._token?.kind} (${this._token?.value})`);const n=this._tokenizer.nextToken();this._token=n,this._kind=n?.kind,this._value=n?.value}_matches(e,r){return!(e&&this._kind!==e||r&&this._value!==r)}_parseExpression(){if(!this._token)return this._ast.empty();const e=this._parseUnary();return e===void 0?void 0:this._parsePrecedence(e,0)}_parsePrecedence(e,r){if(e===void 0)throw new Error("Expected left to be defined.");for(;this._token;)if(this._matches(qe.GROUPER,"(")){const n=this._parseArguments();e=this._ast.invoke(e,void 0,n)}else if(this._matches(qe.GROUPER,"[")){const n=this._parseIndex();e=this._ast.index(e,n)}else if(this._matches(qe.DOT)){this._advance();const n=this._parseUnary();e=this._makeInvokeOrGetter(e,n)}else{if(this._matches(qe.KEYWORD))break;if(this._matches(qe.OPERATOR)&&this._token.precedence>=r)e=this._value==="?"?this._parseTernary(e):this._parseBinary(e,this._token);else break}return e}_makeInvokeOrGetter(e,r){if(r===void 0)throw new Error("expected identifier");if(r.type==="ID")return this._ast.getter(e,r.value);if(r.type==="Invoke"&&r.receiver.type==="ID"){const n=r.receiver;return this._ast.invoke(e,n.value,r.arguments)}else throw new Error(`expected identifier: ${r}`)}_parseBinary(e,r){if(f$.indexOf(r.value)===-1)throw new Error(`unknown operator: ${r.value}`);this._advance();let n=this._parseUnary();for(;(this._kind===qe.OPERATOR||this._kind===qe.DOT||this._kind===qe.GROUPER)&&this._token.precedence>r.precedence;)n=this._parsePrecedence(n,this._token.precedence);return this._ast.binary(e,r.value,n)}_parseUnary(){if(this._matches(qe.OPERATOR)){const e=this._value;if(this._advance(),e==="+"||e==="-"){if(this._matches(qe.INTEGER))return this._parseInteger(e);if(this._matches(qe.DECIMAL))return this._parseDecimal(e)}if(c$.indexOf(e)===-1)throw new Error(`unexpected token: ${e}`);const r=this._parsePrecedence(this._parsePrimary(),D1);return this._ast.unary(e,r)}return this._parsePrimary()}_parseTernary(e){this._advance(qe.OPERATOR,"?");const r=this._parseExpression();this._advance(qe.COLON);const n=this._parseExpression();return this._ast.ternary(e,r,n)}_parsePrimary(){switch(this._kind){case qe.KEYWORD:const e=this._value;if(e==="this")return this._advance(),this._ast.id(e);throw L1.indexOf(e)!==-1?new Error(`unexpected keyword: ${e}`):new Error(`unrecognized keyword: ${e}`);case qe.IDENTIFIER:return this._parseInvokeOrIdentifier();case qe.STRING:return this._parseString();case qe.INTEGER:return this._parseInteger();case qe.DECIMAL:return this._parseDecimal();case qe.GROUPER:return this._value==="("?this._parseParenOrFunction():this._value==="{"?this._parseMap():this._value==="["?this._parseList():void 0;case qe.COLON:throw new Error('unexpected token ":"');default:return}}_parseList(){const e=[];do{if(this._advance(),this._matches(qe.GROUPER,"]"))break;e.push(this._parseExpression())}while(this._matches(qe.COMMA));return this._advance(qe.GROUPER,"]"),this._ast.list(e)}_parseMap(){const e={};do{if(this._advance(),this._matches(qe.GROUPER,"}"))break;const r=this._value;(this._matches(qe.STRING)||this._matches(qe.IDENTIFIER))&&this._advance(),this._advance(qe.COLON),e[r]=this._parseExpression()}while(this._matches(qe.COMMA));return this._advance(qe.GROUPER,"}"),this._ast.map(e)}_parseInvokeOrIdentifier(){const e=this._value;if(e==="true")return this._advance(),this._ast.literal(!0);if(e==="false")return this._advance(),this._ast.literal(!1);if(e==="null")return this._advance(),this._ast.literal(null);if(e==="undefined")return this._advance(),this._ast.literal(void 0);const r=this._parseIdentifier(),n=this._parseArguments();return n?this._ast.invoke(r,void 0,n):r}_parseIdentifier(){if(!this._matches(qe.IDENTIFIER))throw new Error(`expected identifier: ${this._value}`);const e=this._value;return this._advance(),this._ast.id(e)}_parseArguments(){if(!this._matches(qe.GROUPER,"("))return;const e=[];do{if(this._advance(),this._matches(qe.GROUPER,")"))break;const r=this._parseExpression();e.push(r)}while(this._matches(qe.COMMA));return this._advance(qe.GROUPER,")"),e}_parseIndex(){this._advance();const e=this._parseExpression();return this._advance(qe.GROUPER,"]"),e}_parseParenOrFunction(){const e=this._parseArguments();if(this._matches(qe.ARROW)){this._advance();const r=this._parseExpression(),n=e?.map(a=>a.value)??[];return this._ast.arrowFunction(n,r)}else return this._ast.paren(e[0])}_parseString(){const e=this._ast.literal(this._value);return this._advance(),e}_parseInteger(e=""){const r=this._ast.literal(parseInt(`${e}${this._value}`,10));return this._advance(),r}_parseDecimal(e=""){const r=this._ast.literal(parseFloat(`${e}${this._value}`));return this._advance(),r}};const C$={"+":(t,e)=>t+e,"-":(t,e)=>t-e,"*":(t,e)=>t*e,"/":(t,e)=>t/e,"%":(t,e)=>t%e,"==":(t,e)=>t==e,"!=":(t,e)=>t!=e,"===":(t,e)=>t===e,"!==":(t,e)=>t!==e,">":(t,e)=>t>e,">=":(t,e)=>t>=e,"<":(t,e)=>t<e,"<=":(t,e)=>t<=e,"||":(t,e)=>t||e,"&&":(t,e)=>t&&e,"??":(t,e)=>t??e,"|":(t,e)=>e(t),"|>":(t,e)=>e(t)},w$={"+":t=>t,"-":t=>-t,"!":t=>!t};class S${empty(){return{type:"Empty",evaluate(e){return e},getIds(e){return e}}}literal(e){return{type:"Literal",value:e,evaluate(r){return this.value},getIds(r){return r}}}id(e){return{type:"ID",value:e,evaluate(r){return this.value==="this"?r:r?.[this.value]},getIds(r){return r.push(this.value),r}}}unary(e,r){const n=w$[e];return{type:"Unary",operator:e,child:r,evaluate(a){return n(this.child.evaluate(a))},getIds(a){return this.child.getIds(a)}}}binary(e,r,n){const a=C$[r];return{type:"Binary",operator:r,left:e,right:n,evaluate(o){if(this.operator==="="){if(this.left.type!=="ID"&&this.left.type!=="Getter"&&this.left.type!=="Index")throw new Error(`Invalid assignment target: ${this.left}`);const c=this.right.evaluate(o);let d,p;return this.left.type==="Getter"?(d=this.left.receiver.evaluate(o),p=this.left.name):this.left.type==="Index"?(d=this.left.receiver.evaluate(o),p=this.left.argument.evaluate(o)):this.left.type==="ID"&&(d=o,p=this.left.value),d===void 0?void 0:d[p]=c}return a(this.left.evaluate(o),this.right.evaluate(o))},getIds(o){return this.left.getIds(o),this.right.getIds(o),o}}}getter(e,r){return{type:"Getter",receiver:e,name:r,evaluate(n){return this.receiver.evaluate(n)?.[this.name]},getIds(n){return this.receiver.getIds(n),n}}}invoke(e,r,n){if(r!=null&&typeof r!="string")throw new Error("method not a string");return{type:"Invoke",receiver:e,method:r,arguments:n,evaluate(a){const o=this.receiver.evaluate(a),c=this.method?o:a?.this??a,d=this.method?o?.[r]:o,v=(this.arguments??[]).map(b=>b?.evaluate(a));return d?.apply?.(c,v)},getIds(a){return this.receiver.getIds(a),this.arguments?.forEach(o=>o?.getIds(a)),a}}}paren(e){return e}index(e,r){return{type:"Index",receiver:e,argument:r,evaluate(n){return this.receiver.evaluate(n)?.[this.argument.evaluate(n)]},getIds(n){return this.receiver.getIds(n),n}}}ternary(e,r,n){return{type:"Ternary",condition:e,trueExpr:r,falseExpr:n,evaluate(a){return this.condition.evaluate(a)?this.trueExpr.evaluate(a):this.falseExpr.evaluate(a)},getIds(a){return this.condition.getIds(a),this.trueExpr.getIds(a),this.falseExpr.getIds(a),a}}}map(e){return{type:"Map",entries:e,evaluate(r){const n={};if(e&&this.entries)for(const a in e){const o=this.entries[a];o&&(n[a]=o.evaluate(r))}return n},getIds(r){if(e&&this.entries)for(const n in e){const a=this.entries[n];a&&a.getIds(r)}return r}}}list(e){return{type:"List",items:e,evaluate(r){return this.items?.map(n=>n?.evaluate(r))},getIds(r){return this.items?.forEach(n=>n?.getIds(r)),r}}}arrowFunction(e,r){return{type:"ArrowFunction",params:e,body:r,evaluate(n){const a=this.params,o=this.body;return function(...c){const d=Object.fromEntries(a.map((v,b)=>[v,c[b]])),p=new Proxy(n??{},{set(v,b,C){return d.hasOwnProperty(b)&&(d[b]=C),v[b]=C},get(v,b){return d.hasOwnProperty(b)?d[b]:v[b]}});return o.evaluate(p)}},getIds(n){return this.body.getIds(n).filter(a=>!this.params.includes(a))}}}}let np;function x$({set:t}){np=t}function A$(t,e="#41B883"){console?.log(`%c vue-fields %c ${t} `,"color: #fff; background: #35495E; padding: 1px; border-radius: 3px 0 0 3px;",`color: #fff; background: ${e}; padding: 1px; border-radius: 0 3px 3px 0;`)}function ip(t,e="#DB6B00"){A$(t,e)}function ap(t,e,r){const n=Array.isArray(e)?e:e.split(".");for(const a of n)if(_t(t)&&!dr(t[a]))t=t[a];else return r;return t}function fn(t,e,r){const n=Array.isArray(e)?e:e.split(".");for(;n.length>1;){const a=n.shift();_t(t[a])||np(t,a,{}),t=t[a]}np(t,n.shift(),r)}const O$=new S$,sp={};function N$(t){if(!zn(sp[t])){const e=E$(t,O$);sp[t]=function(r,n){return e.evaluate(new Proxy(this,{get:(a,o)=>n[o]??r[o]??a[o]??window[o]}))}}return sp[t]}var Ze={inject:["Fields"],props:{field:{type:Object,required:!0},values:{type:Object,required:!0}},computed:{name(){return this.field.name??""},label(){return this.field.label??""},attrs(){return this.field.attrs??{}},options(){return this.field.options??[]},default(){return this.field.default},value:{get(){return ap(this.values,this.name)},set(t){this.$emit("change",t,this)}},attributes:{get(){return this.Fields.evaluate(this.field.enable)?this.attrs:{disabled:!0,...this.attrs}}}},created(){dr(this.value)&&!dr(this.default)&&(this.value=this.default)},methods:{filterOptions(t){const e=[];if(!t)return ip(`Invalid options provided for ${this.name}`),e;for(const[r,n]of Object.entries(t))_t(n)?e.push({label:r,options:this.filterOptions(n)}):e.push({text:r,value:n});return e}}};const P$={extends:Ze};var I$=function(){var e=this,r=e._self._c;return r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.value)?e._i(e.value,null)>-1:e.value},on:{change:function(n){var a=e.value,o=n.target,c=!!o.checked;if(Array.isArray(a)){var d=null,p=e._i(a,d);o.checked?p<0&&(e.value=a.concat([d])):p>-1&&(e.value=a.slice(0,p).concat(a.slice(p+1)))}else e.value=c}}},"input",e.attributes,!1))},L$=[],R$=Q(P$,I$,L$,!1),D$=R$.exports;const M$={extends:Ze};var $$=function(){var e=this,r=e._self._c;return r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],attrs:{type:"number"},domProps:{value:e.value},on:{input:function(n){n.target.composing||(e.value=n.target.value)}}},"input",e.attributes,!1))},F$=[],B$=Q(M$,$$,F$,!1),H$=B$.exports;const U$={extends:Ze};var j$=function(){var e=this,r=e._self._c;return r("div",e._l(e.filterOptions(e.options),function(n){return r("div",{key:n.value},[r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],attrs:{name:e.name,type:"radio"},domProps:{value:n.value,checked:e._q(e.value,n.value)},on:{change:function(a){e.value=n.value}}},"input",e.attributes,!1)),e._v(" "),r("label",[e._v(e._s(n.text))])])}),0)},W$=[],G$=Q(U$,j$,W$,!1),z$=G$.exports;const q$={extends:Ze};var Y$=function(){var e=this,r=e._self._c;return r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],attrs:{type:"range"},domProps:{value:e.value},on:{__r:function(n){e.value=n.target.value}}},"input",e.attributes,!1))},K$=[],X$=Q(q$,Y$,K$,!1),V$=X$.exports;const Q$={extends:Ze};var J$=function(){var e=this,r=e._self._c;return r("select",e._b({directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],on:{change:function(n){var a=Array.prototype.filter.call(n.target.options,function(o){return o.selected}).map(function(o){var c="_value"in o?o._value:o.value;return c});e.value=n.target.multiple?a:a[0]}}},"select",e.attributes,!1),[e._l(e.filterOptions(e.options),function(n){return[n.label?r("optgroup",{key:n.label,attrs:{label:n.label}},e._l(n.options,function(a){return r("option",{key:a.value,domProps:{value:a.value}},[e._v(e._s(a.text))])}),0):r("option",{key:n.value,domProps:{value:n.value}},[e._v(e._s(n.text))])]})],2)},Z$=[],eF=Q(Q$,J$,Z$,!1),tF=eF.exports;const rF={extends:Ze};var nF=function(){var e=this,r=e._self._c;return r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],attrs:{type:"text"},domProps:{value:e.value},on:{input:function(n){n.target.composing||(e.value=n.target.value)}}},"input",e.attributes,!1))},iF=[],aF=Q(rF,nF,iF,!1),sF=aF.exports;const oF={extends:Ze};var uF=function(){var e=this,r=e._self._c;return r("textarea",e._b({directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],domProps:{value:e.value},on:{input:function(n){n.target.composing||(e.value=n.target.value)}}},"textarea",e.attributes,!1))},lF=[],cF=Q(oF,uF,lF,!1),fF=cF.exports;const dF={components:{FieldText:sF,FieldTextarea:fF,FieldRadio:z$,FieldCheckbox:D$,FieldSelect:tF,FieldRange:V$,FieldNumber:H$},provide(){return{Fields:this}},props:{config:{type:[Object,Array],default:()=>({})},values:{type:Object,default:()=>({})},prefix:{type:String,default:"field-"}},computed:{fields(){return this.prepare()}},methods:{change(t,e){fn(this.values,e.name,t),this.$emit("change",t,e)},prepare(t=this.config,e=this.prefix){const r=[],n=Array.isArray(t);for(let[a,o]of Object.entries(t))o={...o},!o.name&&!n&&(o.name=a),o.name?(o.type||(o.type="text"),o.component||(o.component=e+o.type),r.push(o)):ip(`Field name missing ${JSON.stringify(o)}`);return r},evaluate(t,e=this.values){try{return dr(t)?!0:(Sn(t)&&(t=N$(t)),zn(t)?t.call(this,e,{$match:hF,$get:r=>ap(e,r)}):t)}catch(r){ip(r)}return!0}}};function hF(t,e,r){return t&&new RegExp(e,r).test(t)}var pF=function(){var e=this,r=e._self._c;return r("div",e._l(e.fields,function(n){return r("div",{directives:[{name:"show",rawName:"v-show",value:e.evaluate(n.show),expression:"evaluate(field.show)"}],key:n.name},[n.type!=="checkbox"?r("label",[e._v(e._s(n.label))]):e._e(),e._v(" "),r(n.component,{tag:"component",attrs:{field:n,values:e.values},on:{change:e.change}})],1)}),0)},mF=[],vF=Q(dF,pF,mF,!1),op=vF.exports;function $1(t){$1.installed||(x$(t),t.component("field",Ze),t.component("fields",op))}const gF={extends:Ze,computed:{previewColor(){return this.value}},methods:{isValidColor:Ki,open(){ds({functional:!0,render:t=>t(ef,{props:{value:this.value||void 0,allowEmpty:this.field.allowEmpty,disableAlpha:this.field.alpha===!1,disableFields:this.field.fields===!1,disableSaturation:this.field.saturation===!1},on:{input:e=>this.value=e}})},{},this.$el,{boundaryX:this.$el.closest(".yo-sidebar-fields > *")||this.$el})}}};var _F=function(){var e=this,r=e._self._c;return r("a",{class:["yo-colorpicker",{"uk-disabled":e.attributes.disabled}],attrs:{title:e.attributes.title,href:"",tabindex:e.attributes.disabled?-1:!1,"aria-label":e.$t("Select Color")},on:{click:function(n){return n.preventDefault(),e.open.apply(null,arguments)}}},[r("div",{class:[e.attributes.class,"yo-colorpicker-color",{"yo-colorpicker-color-none":!e.isValidColor(e.previewColor)}],style:{backgroundColor:e.isValidColor(e.previewColor)?e.previewColor:""}})])},bF=[],yF=Q(gF,_F,bF,!1),Kl=yF.exports,kF={extends:Kl,computed:{previewColor(){return rv(this.value)?.color}},methods:{open(){ds({functional:!0,render:t=>t(nv,{props:{value:this.value},on:{input:e=>this.value=e}})},{},this.$el,{boundaryX:this.$el.closest(".yo-sidebar-fields > *")||this.$el})}}};const EF={extends:Ze};var TF=function(){var e=this,r=e._self._c;return r("button",e._b({staticClass:"uk-button uk-button-default uk-width-1-1",attrs:{type:"button"},on:{click:function(n){return n.preventDefault(),e.$trigger(e.field.event)}}},"button",e.attributes,!1),[e._v(e._s(e.$t(e.field.text)))])},CF=[],wF=Q(EF,TF,CF,!1),SF=wF.exports;const xF={extends:Ze,events:{openPanel:{handler({params:t,sidebar:{panel:e={},panels:r}={}},n){r={...r,...e.panels},Sn(n)&&r[n]&&(t[0]={...Mo(e,"fields","fieldset","help","priority","heading"),...r[n],name:n})},priority:5}}};var AF=function(){var e=this,r=e._self._c;return r("button",e._b({staticClass:"uk-button yo-button-panel uk-width-1-1",class:{"yo-button-medium":e.attributes.class==="yo-form-medium"},attrs:{type:"button"},on:{click:function(n){return n.preventDefault(),e.$trigger("openPanel",e.field.panel)}}},"button",e.attributes,!1),[e._v(e._s(e.$t(e.field.text)))])},OF=[],NF=Q(xF,AF,OF,!1),PF=NF.exports;const IF={extends:Ze,data:()=>({files:0}),mounted(){this.update()},methods:{async update(){this.files=await this.$trigger("checkCache",[],!0)},async clear(){await this.$trigger("clearCache",[],!0),await this.update()}}};var LF=function(){var e=this,r=e._self._c;return r("div",[r("button",{staticClass:"uk-button uk-button-default uk-width-1-1",attrs:{disabled:!e.files,type:"button"},on:{click:e.clear}},[e._v(e._s(e.$t("Clear Cache")))])])},RF=[],DF=Q(IF,LF,RF,!1),MF=DF.exports;const $F={extends:Ze,computed:{trueValue(){return this.attributes["true-value"]??!0},falseValue(){return this.attributes["false-value"]??!1},checked(){return this.value===this.trueValue||this.value&&this.value!==this.falseValue}},methods:{change({target:{checked:t}}){this.value=t?this.trueValue:this.falseValue}}};var FF=function(){var e=this,r=e._self._c;return r("div",[r("label",{class:{"uk-text-muted":e.attributes.disabled}},[r("input",{staticClass:"uk-checkbox",attrs:{disabled:e.attributes.disabled,type:"checkbox","aria-label":e.$t(e.field.text)},domProps:{checked:e.checked,value:e.value},on:{change:e.change}}),e._v(` `+e._s(e.$t(e.field.text))+` `)])])},BF=[],HF=Q($F,FF,BF,!1),UF=HF.exports,jF={functional:!0,render:function(t,{parent:e,props:r}){const n=r.field,[a]=e.prepare([n.field]),o=e.node.children[n.index];return o?t(a.component,{props:{field:a,values:o.props},on:{change(c,{name:d}){fn(o.props,d,c)}}},[]):null}};const WF={__name:"ElementModal",props:{edit:{type:Boolean,default:!1},node:{type:Object,required:!0},builder:{type:Object,required:!0},library:{type:Object,required:!0}},emits:"resolve",setup(t,{emit:e}){const r=t,{i18n:n}=oe,a=Be(r.node.name),o=Be(r.node.name),c=Ae(()=>r.builder.type(r.node)),d=Ae(()=>c.value.element?"Element Preset":c.value.title||r.node.type),p=Ae(()=>r.node.type==="layout"&&a.value!==o.value&&r.library.findElement(a.value,r.node.type));return{__sfc:!0,i18n:n,emit:e,props:r,newName:a,prevName:o,type:c,title:d,exists:p}}};var GF=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("form",{on:{submit:function(a){return a.preventDefault(),n.emit("resolve",{...n.props.node,name:n.newName})}}},[r("div",{staticClass:"uk-modal-header"},[r("h2",{staticClass:"uk-modal-title"},[e._v(e._s(n.props.edit?n.i18n.t("Rename %type%",{type:n.title}):n.i18n.t("Save %type%",{type:n.title})))])]),e._v(" "),r("div",{staticClass:"uk-modal-body uk-form-stacked"},[r("label",{staticClass:"uk-form-label",attrs:{for:"form-element-save-name"}},[e._v(e._s(n.i18n.t("Name")))]),e._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:n.newName,expression:"newName"}],staticClass:"uk-input",attrs:{id:"form-element-save-name",placeholder:n.type.title,type:"text",required:"",autofocus:""},domProps:{value:n.newName},on:{input:function(a){a.target.composing||(n.newName=a.target.value)}}}),e._v(" "),r("p",{directives:[{name:"show",rawName:"v-show",value:n.exists,expression:"exists"}],staticClass:"uk-text-muted uk-margin-small"},[e._v(` `+e._s(n.i18n.t('"%name%" already exists in the library, it will be overwritten when saving.',{name:n.newName}))+` `)])]),e._v(" "),r("div",{staticClass:"uk-modal-footer uk-text-right"},[r("button",{staticClass:"uk-button uk-button-text uk-modal-close uk-margin-small-right",attrs:{type:"button"}},[e._v(e._s(n.i18n.t("Cancel")))]),e._v(" "),r("button",{staticClass:"uk-button uk-button-primary",attrs:{disabled:!n.newName}},[e._v(e._s(n.i18n.t("Save")))])])])},zF=[],qF=Q(WF,GF,zF,!1),F1=qF.exports;const YF={__name:"Elements",props:{builder:{type:Object,required:!0}},emits:["resolve"],setup(t,{emit:e}){const r=t,{i18n:n}=oe,a=Be(""),o=Ae(()=>Ti(r.builder.types,{element:!0}).filter(d=>da(d.title,a.value)).map(d=>({group:"custom",...d}))),c=Ae(()=>{const d={basic:[],"multiple items":[],system:[],...Ci(o.value,"group")},p={};for(const v in d)d[v].length&&(p[v]=ep(Ti(d[v],{element:!0}),"title"));return p});return{__sfc:!0,i18n:n,emit:e,props:r,search:a,elementList:o,elementGroups:c}}};var KF=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",[r("div",{staticClass:"yo-modal-subheader uk-grid-small uk-child-width-auto uk-flex-between uk-flex-middle",attrs:{"uk-grid":""}},[r("div",[r("div",{staticClass:"uk-grid-small uk-child-width-auto uk-flex-middle",attrs:{"uk-grid":""}},[r("div",[r("h2",{staticClass:"uk-modal-title uk-margin-remove"},[e._v(e._s(n.i18n.t("%smart_count% Element |||| %smart_count% Elements",n.elementList.length)))])]),e._v(" "),r("div",[r("div",{staticClass:"yo-finder-search"},[r("div",{staticClass:"uk-search uk-search-medium"},[r("span",{attrs:{"uk-search-icon":""}}),e._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:n.search,expression:"search"}],staticClass:"uk-search-input",attrs:{type:"search",autofocus:""},domProps:{value:n.search},on:{input:function(a){a.target.composing||(n.search=a.target.value)}}})])])])])])]),e._v(" "),n.elementList.length?r("div",{staticClass:"yo-finder-body uk-margin-top",attrs:{"uk-overflow-auto":""}},e._l(n.elementGroups,function(a,o){return r("div",{key:o,staticClass:"uk-margin-medium"},[r("h3",{staticClass:"uk-heading-divider uk-margin-small"},[e._v(e._s(o))]),e._v(" "),r("div",{staticClass:"uk-grid-collapse uk-child-width yo-child-width-1-8",attrs:{"uk-grid":""}},e._l(a,function({name:c,title:d,icon:p}){return r("div",{key:c},[r("div",{staticClass:"uk-card uk-card-body uk-card-hover yo-panel uk-padding-remove-horizontal uk-text-center"},[r("img",{attrs:{alt:d,src:p,"uk-svg":""}}),e._v(" "),r("p",{staticClass:"uk-margin-small-top uk-margin-remove-bottom uk-text-truncate"},[e._v(e._s(d))]),e._v(" "),r("a",{staticClass:"uk-position-cover",attrs:{href:""},on:{click:function(v){v.preventDefault(),n.emit("resolve",n.props.builder.make(c))}}})])])}),0)])}),0):r("p",{staticClass:"uk-h1 uk-text-muted uk-text-center"},[e._v(e._s(n.i18n.t("No element found.")))])])},XF=[],VF=Q(YF,KF,XF,!1),QF=VF.exports;const JF=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,B1=t=>{if(typeof t!="string")throw new TypeError("Invalid argument expected string");const e=t.match(JF);if(!e)throw new Error(`Invalid argument not valid semver ('${t}' received)`);return e.shift(),e},H1=t=>t==="*"||t==="x"||t==="X",U1=t=>{const e=parseInt(t,10);return isNaN(e)?t:e},ZF=(t,e)=>typeof t!=typeof e?[String(t),String(e)]:[t,e],e4=(t,e)=>{if(H1(t)||H1(e))return 0;const[r,n]=ZF(U1(t),U1(e));return r>n?1:r<n?-1:0},j1=(t,e)=>{for(let r=0;r<Math.max(t.length,e.length);r++){const n=e4(t[r]||"0",e[r]||"0");if(n!==0)return n}return 0},t4=(t,e)=>{const r=B1(t),n=B1(e),a=r.pop(),o=n.pop(),c=j1(r,n);return c!==0?c:a&&o?j1(a.split("."),o.split(".")):a||o?a?-1:1:0},up=(t,e,r)=>{r4(r);const n=t4(t,e);return W1[r].includes(n)},W1={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},G1=Object.keys(W1),r4=t=>{if(G1.indexOf(t)===-1)throw new Error(`Invalid operator, expected one of ${G1.join("|")}`)},n4={__name:"ElementLibrary",props:{builder:{type:Object,required:!0}},emits:["resolve"],setup(t,{emit:e}){const r=t,{i18n:n}=oe,a=st("Library"),o=Be(""),c=Be(null),d=Ae(()=>Object.entries(a.elements).filter(([,{name:A}])=>da(A,o.value)).sort(([,A],[,F])=>A.name?.localeCompare(F.name,void 0,{numeric:!0})));function p(A){return r.builder.type(A)}function v(){ki("elements.json",JSON.stringify(Object.values(a.elements)))}function b(A){ki(`${A.name||"element"}.json`,JSON.stringify({...A,version:ue.customizer.version}))}function C(A){return A?new Date(A).toLocaleString():"-"}async function T(A){try{const F=A.currentTarget.files||A.dataTransfer?.files||[],G=[];for(const S of F)try{G.push(await wl(S))}catch{throw new Error(`Error loading file '${S.name}'.`)}const j=[],O=[],x=G.flat();for(const{name:S,type:P,version:R}of x){if(!S)throw new Error("Invalid element preset. Name is required.");if(!P)throw new Error("Invalid element preset. Type is required.");if(["section","layout"].includes(P))throw new Error("Invalid element preset. Type must be an element.");if(up(R,ue.customizer.version,">"))throw new Error(`This element requires YOOtheme Pro ${R} or newer.`);const B=a.findElement(S,P);B&&O.push(S),j.push(B)}if(O.length&&!window.confirm(n.t("Element preset %names% already exists in the library, do you want to overwrite it?",{names:O.join(", ")})))return;for(let S=0;S<x.length;S++)await a.saveElement(x[S],j[S]);Ut("Element presets uploaded successfully.","success")}catch(F){Ut(F,"danger")}c.value.value=""}return{__sfc:!0,i18n:n,Library:a,emit:e,props:r,search:o,input:c,elementList:d,type:p,exportElements:v,exportElement:b,formatDate:C,upload:T,DragOver:tf,vConfirm:cn}}};var i4=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r(n.DragOver,{on:{drop:n.upload}},[r("div",{staticClass:"yo-modal-subheader uk-grid-small uk-child-width-auto uk-flex-between uk-flex-middle",attrs:{"uk-grid":""}},[r("div",[r("div",{staticClass:"uk-grid-small uk-child-width-auto uk-flex-middle",attrs:{"uk-grid":""}},[r("div",[r("h2",{staticClass:"uk-modal-title uk-margin-remove"},[e._v(e._s(n.i18n.t("%smart_count% Preset |||| %smart_count% Presets",n.elementList.length)))])]),e._v(" "),r("div",[r("div",{staticClass:"yo-finder-search"},[r("div",{staticClass:"uk-search uk-search-medium"},[r("span",{attrs:{"uk-search-icon":""}}),e._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:n.search,expression:"search"}],staticClass:"uk-search-input",attrs:{type:"search",autofocus:""},domProps:{value:n.search},on:{input:function(a){a.target.composing||(n.search=a.target.value)}}})])])])])]),e._v(" "),r("div",[r("div",{staticClass:"uk-grid-small uk-child-width-auto uk-flex-middle",attrs:{"uk-grid":""}},[r("div",[r("button",{directives:[{name:"show",rawName:"v-show",value:n.elementList.length,expression:"elementList.length"}],staticClass:"uk-button uk-button-default",attrs:{type:"button"},on:{click:function(a){return a.preventDefault(),n.exportElements.apply(null,arguments)}}},[e._v(e._s(n.i18n.t("Download All")))])]),e._v(" "),r("div",[r("div",{attrs:{"uk-form-custom":""}},[r("input",{ref:"input",attrs:{accept:"application/json",type:"file",name:"files[]",multiple:"multiple"},on:{change:n.upload}}),e._v(" "),r("button",{staticClass:"uk-button uk-button-default",attrs:{type:"button"}},[e._v(e._s(n.i18n.t("Upload Preset")))])])])])])]),e._v(" "),n.elementList.length?r("div",{staticClass:"yo-finder-body uk-margin-top",attrs:{"uk-overflow-auto":""}},[r("table",{staticClass:"uk-table uk-table-divider uk-table-small uk-table-hover"},[r("thead",[r("tr",[r("th",{staticClass:"uk-table-expand"},[e._v(e._s(n.i18n.t("Name")))]),e._v(" "),r("th",{staticClass:"uk-width-medium"},[e._v(e._s(n.i18n.t("Element")))]),e._v(" "),r("th",{staticClass:"uk-table-shrink uk-text-nowrap"},[e._v(e._s(n.i18n.t("Last Modified")))]),e._v(" "),r("th",{staticClass:"uk-table-shrink"})])]),e._v(" "),r("tbody",e._l(n.elementList,function([a,o]){return r("tr",{key:a,staticClass:"uk-visible-toggle",attrs:{tabindex:"-1"}},[r("td",{staticClass:"uk-table-link"},[r("a",{staticClass:"uk-link-reset",attrs:{href:""},on:{click:function(c){c.preventDefault(),n.emit("resolve",n.props.builder.clone(o))}}},[r("img",{staticClass:"uk-text-muted uk-preserve-width uk-margin-small-right",attrs:{src:n.type(o).iconSmall,"aria-hidden":"true","uk-svg":""}}),e._v(` `+e._s(o.name)+` `)])]),e._v(" "),r("td",[e._v(e._s(n.type(o).title))]),e._v(" "),r("td",{staticClass:"uk-text-nowrap"},[r("time",{attrs:{datetime:o.modified}},[e._v(e._s(n.formatDate(o.modified)))])]),e._v(" "),r("td",[r("ul",{staticClass:"uk-iconnav uk-flex-nowrap uk-invisible-hover"},[r("li",[r("button",{staticClass:"uk-icon-link uk-preserve-width",attrs:{title:n.i18n.t("Rename"),type:"button","uk-icon":"pencil","uk-tooltip":"delay: 500"},on:{click:function(c){return n.Library.editElement(o,a,n.props.builder)}}})]),e._v(" "),r("li",[r("button",{staticClass:"uk-icon-link uk-preserve-width",attrs:{title:n.i18n.t("Download"),type:"button","uk-icon":"download","uk-tooltip":"delay: 500"},on:{click:function(c){return n.exportElement(o)}}})]),e._v(" "),r("li",[r("button",{directives:[{name:"confirm",rawName:"v-confirm",value:n.i18n.t("Are you sure?"),expression:"i18n.t('Are you sure?')"}],staticClass:"uk-icon-link uk-preserve-width",attrs:{title:n.i18n.t("Delete"),type:"button","uk-icon":"trash","uk-tooltip":"delay: 500"},on:{click:function(c){return n.Library.deleteElement(o,a)}}})])])])])}),0)])]):r("p",{staticClass:"uk-h1 uk-text-muted uk-text-center"},[e._v(e._s(n.i18n.t("No element presets found.")))])])},a4=[],s4=Q(n4,i4,a4,!1),o4=s4.exports;const u4={__name:"ElementsPro",emits:["load"],setup(t,{emit:e}){const r="builder.elements.filter",{i18n:n}=oe,a=st("Library"),o=Jt({error:"",loading:null,elements:[],filter:wt[r]?JSON.parse(wt[r]):p()}),c=Ae(()=>Ci(d.value,({meta:T})=>T.type)),d=Ae(()=>o.elements.filter(({meta:T})=>Object.entries(o.filter).every(([A,F])=>!F||T[A]===F)));gt(()=>o.filter,T=>wt[r]=JSON.stringify(T),{deep:!0}),Gt(async()=>{o.elements=await a.getElements("element"),e("load",o.elements)});function p(){return{type:""}}async function v(T){o.error="",o.loading=T;try{T=await a.getElement(T),e("resolve",ql(T,["name","type","children","props","images"]))}catch(A){o.error=A.message}}function b(T,A=o.elements){let F=Ci(A.filter(({meta:G})=>G[T]),({meta:G})=>G[T]);return F=Object.keys(F).map(G=>({value:G,text:C(G)})),F.length?Yl(F,"text"):null}function C(T){return T.replaceAll("_"," ").replace(/\b\w/g,A=>A.toUpperCase())}return{__sfc:!0,storageKey:r,i18n:n,Library:a,emit:e,state:o,types:c,filtered:d,reset:p,select:v,options:b,title:C,Url:jr}}};var l4=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",[r("div",{staticClass:"yo-modal-subheader uk-grid-small uk-child-width-auto uk-flex-between uk-flex-middle",attrs:{"uk-grid":""}},[r("div",[r("h2",{staticClass:"uk-modal-title uk-margin-remove"},[e._v(e._s(n.i18n.t("%smart_count% Preset |||| %smart_count% Presets",n.filtered.length)))])]),e._v(" "),r("div",[r("div",{staticClass:"uk-grid-small uk-child-width-auto uk-flex-middle",attrs:{"uk-grid":""}},[n.options("type")?r("div",[r("select",{directives:[{name:"model",rawName:"v-model",value:n.state.filter.type,expression:"state.filter.type"}],staticClass:"uk-select uk-form-width-medium",on:{change:function(a){var o=Array.prototype.filter.call(a.target.options,function(c){return c.selected}).map(function(c){var d="_value"in c?c._value:c.value;return d});e.$set(n.state.filter,"type",a.target.multiple?o:o[0])}}},[r("option",{attrs:{value:""}},[e._v(e._s(n.i18n.t("All presets")))]),e._v(" "),e._l(n.options("type"),function({value:a,text:o}){return r("option",{key:a,domProps:{value:a}},[e._v(e._s(o))])})],2)]):e._e(),e._v(" "),r("div",[r("button",{staticClass:"uk-button uk-button-default",attrs:{type:"button",disabled:!Object.values(n.state.filter).some(Boolean)},on:{click:function(a){n.state.filter=n.reset()}}},[e._v(e._s(n.i18n.t("Reset")))])])])])]),e._v(" "),r("div",{staticClass:"yo-finder-body uk-margin-top",attrs:{"uk-overflow-auto":""}},e._l(n.types,function(a,o){return r("div",{key:o},[r("h3",{staticClass:"uk-heading-divider"},[e._v(e._s(n.i18n.t("%type% Presets",{type:n.title(o)})))]),e._v(" "),r("ul",{staticClass:"uk-grid-medium uk-child-width-1-2 uk-margin-large-bottom",attrs:{"uk-grid":"masonry: true"}},e._l(a,function(c){return r("li",{key:c.link},[r("div",{staticClass:"uk-panel uk-box-shadow-medium uk-box-shadow-hover-large uk-transition-toggle",attrs:{tabindex:"0"}},[r("img",{attrs:{src:n.Url(c.meta.image),alt:"",loading:"lazy"}}),e._v(" "),r("div",{staticClass:"uk-label yo-label uk-position-top-right uk-position-small uk-transition-fade"},[e._v(e._s(c.name))]),e._v(" "),n.state.loading===c?r("div",{staticClass:"uk-overlay uk-overlay-primary uk-position-cover uk-flex uk-flex-center uk-flex-middle"},[n.state.error?r("div",{staticClass:"uk-text-danger"},[r("span",{attrs:{"uk-icon":"warning"}}),e._v(" "),r("span",{staticClass:"uk-margin-small-left"},[e._v(e._s(n.i18n.t(n.state.error)))])]):r("span",{attrs:{"uk-spinner":""}})]):e._e(),e._v(" "),r("a",{staticClass:"uk-position-cover",attrs:{href:""},on:{click:function(d){return d.preventDefault(),n.select(c)}}})])])}),0)])}),0)])},c4=[],f4=Q(u4,l4,c4,!1),d4=f4.exports;const h4={__name:"ElementsModal",props:{library:{type:Object,required:!0},builder:{type:Object,required:!0}},emits:["resolve"],setup(t,{emit:e}){const r=t,{i18n:n}=oe,{trigger:a}=Me();br("Library",r.library);const o=Ae(()=>{const c=a("elementsModalTabs");return[{name:n.t("elements"),component:QF},{name:n.t("pro presets"),component:d4},{name:n.t("my presets"),component:o4},...c||[]]});return{__sfc:!0,i18n:n,trigger:a,emit:e,props:r,tabs:o,Switcher:ls}}};var p4=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r(n.Switcher,{attrs:{tabs:n.tabs.map(({name:a})=>a),storage:"builder.elements.tab"},scopedSlots:e._u([e._l(n.tabs,function(a){return{key:a.name,fn:function(){return[r("div",{key:a.name,staticClass:"uk-modal-body"},[r(a.component,{tag:"component",attrs:{builder:n.props.builder},on:{resolve:function(o){return n.emit("resolve",o)}}})],1)]},proxy:!0}})],null,!0)})},m4=[],v4=Q(h4,p4,m4,!1),z1=v4.exports;const g4={__name:"AbsoluteIcon",props:{node:Object,tooltipDirection:{type:String,default:"bottom"}},setup(t){const e=t,{i18n:r}=oe,n="yo-builder-icon-positioned",a=r.t("Position Absolute");return{__sfc:!0,i18n:r,icon:n,title:a,props:e}}};var _4=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("span",{class:n.icon,attrs:{title:n.title,"uk-tooltip":`delay: 1000; pos: ${n.props.tooltipDirection}`}})},b4=[],y4=Q(g4,_4,b4,!1),k4=y4.exports;const E4={__name:"DisabledIcon",props:{node:Object,tooltipDirection:{type:String,default:"bottom"}},setup(t){const e=t,{i18n:r}=oe,n="yo-builder-icon-disabled",a=r.t("Disabled");return{__sfc:!0,i18n:r,icon:n,title:a,props:e}}};var T4=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("span",{class:n.icon,attrs:{title:n.title,"uk-tooltip":`delay: 1000; pos: ${n.props.tooltipDirection}`}})},C4=[],w4=Q(E4,T4,C4,!1),S4=w4.exports;const x4={__name:"HtmlElementIcon",props:{node:Object,child:Boolean,element:String,tooltipDirection:{type:String,default:"bottom"}},setup(t){const e=t,{i18n:r}=oe,n=Ae(()=>`yo-builder-icon-element-${e.element}`),a=Ae(()=>r.t(e.child?"Contains %element% Element":"%element% Element",{element:Gh(e.element)}));return{__sfc:!0,i18n:r,props:e,icon:n,title:a}}};var A4=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("span",{class:n.icon,attrs:{title:n.title,"uk-tooltip":`delay: 1000; pos: ${n.props.tooltipDirection}`}})},O4=[],N4=Q(x4,A4,O4,!1),q1=N4.exports;const P4={__name:"StickyIcon",props:{node:Object,tooltipDirection:{type:String,default:"bottom"}},setup(t){const e=t,{i18n:r}=oe,n="yo-builder-icon-positioned",a=r.t("Position Sticky");return{__sfc:!0,i18n:r,icon:n,title:a,props:e}}};var I4=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("span",{class:n.icon,attrs:{title:n.title,"uk-tooltip":`delay: 1000; pos: ${n.props.tooltipDirection}`}})},L4=[],R4=Q(P4,I4,L4,!1),D4=R4.exports;const M4={__name:"VisibilityIcon",props:{node:Object,visibility:String,tooltipDirection:{type:String,default:"bottom"}},setup(t){const e=t,r=Ae(()=>`yo-builder-icon-${e.visibility.startsWith("hidden")?"":"visible-"}${e.visibility}`),n=Ae(()=>Wl(e.node.type.fields.visibility.options,a=>a===e.visibility));return{__sfc:!0,props:e,icon:r,title:n}}};var $4=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("span",{class:n.icon,attrs:{title:n.title,"uk-tooltip":`delay: 1000; pos: ${n.props.tooltipDirection}`}})},F4=[],B4=Q(M4,$4,F4,!1),H4=B4.exports;function va(t){const e=st("Builder"),{trigger:r}=Me(),n=Ae(()=>t.node),a=Ae(()=>e.type(t.node)),o=Ae(()=>t.node.name||a.value.title||t.node.type),c=Ae(()=>t.node.children||[]),d=Ae(()=>{const C=r("statusesNode",[t.node])||[];return xn(t.node,"props.status")==="disabled"&&C.push("disabled"),xn(t.node,"props.position")==="absolute"&&C.push("absolute"),xn(t.node,"props.position_sticky")&&C.push("sticky"),C}),p=Ae(()=>{const C=r("statusIconsNode",[t.node])||[];d.value.includes("disabled")&&C.push({component:S4}),d.value.includes("absolute")&&C.push({component:k4}),d.value.includes("sticky")&&C.push({component:D4});const T=Y1(t.node);if(T&&C.push({component:q1,element:T}),v.value)for(const F of new Set(Array.from(e.children(t.node)).map(Y1).filter(Boolean)))C.push({component:q1,element:F,child:!0});const A=xn(t.node,"props.visibility");return A&&a.value.fields?.visibility&&C.push({component:H4,visibility:A}),C.length?C:null}),v=Ae(()=>a.value.element&&a.value.container);function b(C,T,A){e.append(T.node,e.remove(C.node),A)}return{Builder:e,node:n,type:a,title:o,children:c,statuses:d,statusIcons:p,isContainerElement:v,move:b}}function Y1(t){return xn(t,"props.html_element")||xn(t,"props.item_element")}const U4={__name:"StatusIcons",props:{node:{type:Object},vertical:Boolean,tooltipDirection:{type:String,default:"bottom"}},setup(t){const e=t,r=Ae(()=>e.node.statusIcons?.filter(({child:c})=>!c)),n=Ae(()=>e.node.statusIcons?.filter(({child:c})=>c));function a({component:c,...d}){let p=c.name;for(const v of Object.values(d))p+=String(v);return p}function o(c){return Mo(c,"component")}return{__sfc:!0,props:e,icons:r,childIcons:n,key:a,getIconProps:o}}};var j4=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return n.props.node.statusIcons?r("div",{class:[{"uk-flex":n.icons.length&&n.childIcons.length}]},[n.childIcons.length?r("ul",{staticClass:"yo-builder-contain-icons uk-grid uk-grid-collapse"},e._l(n.childIcons,function(a){return r("li",{key:n.key(a)},[r(a.component,e._b({tag:"component",attrs:{node:n.props.node,"tooltip-direction":n.props.tooltipDirection}},"component",n.getIconProps(a),!1))],1)}),0):e._e(),e._v(" "),n.icons.length?r("ul",{class:["uk-grid","uk-grid-collapse",{"uk-flex-column uk-flex-middle":n.props.vertical}]},e._l(n.icons,function(a){return r("li",{key:n.key(a)},[r(a.component,e._b({tag:"component",attrs:{node:n.props.node,"tooltip-direction":n.props.tooltipDirection}},"component",n.getIconProps(a),!1))],1)}),0):e._e()]):e._e()},W4=[],G4=Q(U4,j4,W4,!1),Fo=G4.exports;const z4={__name:"Element",props:{node:{type:Object,required:!0},id:String},setup(t,{expose:e}){const r=t,{i18n:n}=oe,{trigger:a}=Me(),o=va(r),{statuses:c,Builder:d,title:p,type:v}=o,b=Jt(o);return e(o),{__sfc:!0,i18n:n,trigger:a,props:r,Node:o,statuses:c,Builder:d,title:p,type:v,nodeProp:b,StatusIcons:Fo}}};var q4=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",{class:["yo-builder-element uk-flex-1 uk-width-1-1 uk-flex uk-flex-center uk-flex-middle",n.statuses.map(a=>`yo-builder-element-status-${a}`)],attrs:{"data-id":n.props.id},on:{pointerenter:function(a){return n.trigger("hoverNode",[n.props.node,n.Builder])},pointerleave:function(a){return n.trigger("leaveNode",[n.props.node,n.Builder])}}},[r("div",{staticClass:"uk-grid uk-grid-column-small uk-grid-row-collapse uk-flex-center uk-flex-middle uk-width-1-1 uk-text-center"},[r("div",{staticClass:"uk-width-auto"},[r("img",{attrs:{src:n.type.iconSmall,width:"20",height:"20","aria-hidden":"true","uk-svg":""}})]),e._v(" "),r("div",{staticClass:"uk-width-auto uk-text-truncate"},[n.Builder.exists(n.props.node)?[e._v(e._s(n.title))]:r("i",[e._v(e._s(n.title))])],2)]),e._v(" "),n.Builder.exists(n.props.node)?r("a",{staticClass:"uk-position-cover",attrs:{href:"","aria-label":n.i18n.t("Edit")},on:{click:function(a){return a.preventDefault(),n.Builder.edit(n.props.node)}}}):e._e(),e._v(" "),r("div",{staticClass:"yo-builder-nav-element uk-builder-element-hover"},[r("ul",{staticClass:"uk-grid uk-grid-collapse"},[r("li",[r("a",{staticClass:"yo-builder-icon-scroll-to",attrs:{href:"",title:n.i18n.t("Scroll into view"),"uk-tooltip":"delay: 1000","aria-label":n.i18n.t("Scroll into view")},on:{click:function(a){return a.preventDefault(),n.trigger("scrollNode",[n.props.node,n.Builder])}}})]),e._v(" "),r("li",[r("a",{staticClass:"yo-builder-icon-copy",attrs:{href:"",title:n.i18n.t("Copy"),"uk-tooltip":"delay: 1000","aria-label":n.i18n.t("Copy")},on:{click:function(a){return a.preventDefault(),n.Builder.copy(n.props.node)}}})]),e._v(" "),r("li",[r("a",{staticClass:"yo-builder-icon-save",attrs:{href:"",title:n.i18n.t("Save in Library"),"uk-tooltip":"delay: 1000","aria-label":n.i18n.t("Save in Library")},on:{click:function(a){return a.preventDefault(),n.Builder.save(n.props.node)}}})]),e._v(" "),r("li",[r("a",{staticClass:"yo-builder-icon-delete",attrs:{href:"",title:n.i18n.t("Delete"),"uk-tooltip":"delay: 1000","aria-label":n.i18n.t("Delete")},on:{click:function(a){return a.preventDefault(),n.Builder.remove(n.props.node)}}})])])]),e._v(" "),r(n.StatusIcons,{staticClass:"yo-builder-status-icons-element",attrs:{node:n.nodeProp,"tooltip-direction":"top"}}),e._v(" "),r("a",{staticClass:"uk-icon-button yo-builder-button-element yo-builder-icon-add uk-builder-element-hover",attrs:{href:"",title:n.i18n.t("Add Element"),"uk-tooltip":"delay: 1000; pos: right","aria-label":n.i18n.t("Add Element")},on:{click:function(a){return a.preventDefault(),n.Builder.add(n.props.node)}}})],1)},Y4=[],K4=Q(z4,q4,Y4,!1),K1=K4.exports;const X4={__name:"Column",props:{node:{type:Object,required:!0},id:String},setup(t,{expose:e}){const r=t,n=va(r),{statuses:a,children:o,Builder:c}=n,d=Jt(n),p=["xlarge","large","medium","small","default"],v=Ae(()=>{const b=p.reduce((C,T)=>C||r.node?.props?.[`width_${T}`],"")||"1-1";return`uk-width-${b.match(/^\d-\d/)?b:"expand"}`});return e(n),{__sfc:!0,props:r,Node:n,statuses:a,children:o,Builder:c,nodeProp:d,widths:p,widthClass:v,Element:K1,StatusIcons:Fo}}};var V4=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",{class:n.widthClass},[r(n.StatusIcons,{staticClass:"yo-builder-status-icons-cell",attrs:{node:n.nodeProp,"tooltip-direction":"top"}}),e._v(" "),r("div",{directives:[{name:"sortable",rawName:"v-sortable",value:{group:"element"},expression:"{ group: 'element' }"}],class:["uk-flex","uk-flex-column",n.statuses.map(a=>`yo-builder-column-status-${a}`)],on:{click:function(a){if(a.target!==a.currentTarget)return null;!n.children.length&&n.Builder.add(n.props.node,null,n.Builder.append)}}},e._l(n.children,function(a,o){return r(n.Element,{key:n.Builder.key(a),attrs:{id:`${n.props.id}-${o}`,node:a}})}),1)],1)},Q4=[],J4=Q(X4,V4,Q4,!1),X1=J4.exports;const Z4={__name:"Row",props:{node:{type:Object,required:!0},id:String},setup(t,{expose:e}){const r=t,{i18n:n}=oe,a=va(r),{Builder:o,statuses:c,children:d,statusIcons:p}=a,v=Jt(a);return gt(()=>r.node.props?.layout,b=>{o.columns(r.node,b)},{immediate:!0}),e(a),{__sfc:!0,i18n:n,props:r,Node:a,Builder:o,statuses:c,children:d,statusIcons:p,nodeProp:v,Column:X1,StatusIcons:Fo}}};var eB=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",{class:["yo-builder-grid",{"yo-builder-grid-status-icons":n.statusIcons}]},[r("div",{class:n.statuses.map(a=>`yo-builder-grid-status-${a}`)},[r("div",{staticClass:"yo-builder-nav-grid uk-builder-grid-hover"},[r("ul",{staticClass:"uk-grid uk-grid-collapse uk-flex-column"},[r("li",[r("a",{staticClass:"yo-builder-icon-edit",attrs:{href:"",title:n.i18n.t("Edit"),"uk-tooltip":"delay: 1000; pos: left","aria-label":n.i18n.t("Edit")},on:{click:function(a){return a.preventDefault(),n.Builder.edit(n.props.node)}}})]),e._v(" "),r("li",[r("a",{staticClass:"yo-builder-icon-copy",attrs:{href:"",title:n.i18n.t("Copy"),"uk-tooltip":"delay: 1000; pos: left","aria-label":n.i18n.t("Copy")},on:{click:function(a){return a.preventDefault(),n.Builder.copy(n.props.node)}}})]),e._v(" "),r("li",[r("a",{staticClass:"yo-builder-icon-delete",attrs:{href:"",title:n.i18n.t("Delete"),"uk-tooltip":"delay: 1000; pos: left","aria-label":n.i18n.t("Delete")},on:{click:function(a){return a.preventDefault(),n.Builder.remove(n.props.node)}}})])])]),e._v(" "),r(n.StatusIcons,{staticClass:"yo-builder-status-icons-grid",attrs:{node:n.nodeProp,vertical:!0,"tooltip-direction":"left"}}),e._v(" "),r("a",{staticClass:"yo-builder-button-grid yo-builder-icon-add-right uk-builder-grid-hover",attrs:{href:"",title:n.i18n.t("Add Row"),"uk-tooltip":"delay: 1000; pos: left","aria-label":n.i18n.t("Add Row")},on:{click:function(a){return a.preventDefault(),n.Builder.add(n.props.node,"row")}}}),e._v(" "),r("div",{staticClass:"uk-grid uk-grid-match"},e._l(n.children,function(a,o){return r(n.Column,{key:n.Builder.key(a),attrs:{id:`${n.props.id}-${o}`,node:a}})}),1)],1)])},tB=[],rB=Q(Z4,eB,tB,!1),V1=rB.exports;const nB={__name:"Section",props:{node:{type:Object,required:!0},id:String},setup(t,{expose:e}){const r=t,{i18n:n}=oe,a=va(r),{children:o,Builder:c,statuses:d,title:p}=a,v=Jt(a);return gt(()=>o.value.length,b=>{b||c.append(r.node,c.make("row"))},{immediate:!0}),e(a),{__sfc:!0,i18n:n,props:r,Node:a,children:o,Builder:c,statuses:d,title:p,nodeProp:v,Row:V1,StatusIcons:Fo}}};var iB=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",{class:["yo-builder-section",n.statuses.map(a=>`yo-builder-section-status-${a}`)]},[r("div",{staticClass:"uk-flex uk-flex-middle uk-margin-small-bottom"},[r("h3",{staticClass:"yo-sidebar-subheading uk-margin-remove uk-drag"},[e._v(e._s(n.title))]),e._v(" "),r("div",{staticClass:"yo-builder-nav-section uk-margin-small-left uk-builder-section-hover"},[r("ul",{staticClass:"uk-grid uk-grid-collapse"},[r("li",[r("a",{staticClass:"yo-builder-icon-edit",attrs:{href:"",title:n.i18n.t("Edit"),"uk-tooltip":"delay: 1000","aria-label":n.i18n.t("Edit")},on:{click:function(a){return a.preventDefault(),n.Builder.edit(n.props.node)}}})]),e._v(" "),r("li",[r("a",{staticClass:"yo-builder-icon-copy",attrs:{href:"",title:n.i18n.t("Copy"),"uk-tooltip":"delay: 1000","aria-label":n.i18n.t("Copy")},on:{click:function(a){return a.preventDefault(),n.Builder.copy(n.props.node)}}})]),e._v(" "),r("li",[r("a",{staticClass:"yo-builder-icon-save",attrs:{href:"",title:n.i18n.t("Save in Library"),"uk-tooltip":"delay: 1000","aria-label":n.i18n.t("Save in Library")},on:{click:function(a){return a.preventDefault(),n.Builder.save(n.props.node)}}})]),e._v(" "),r("li",[r("a",{staticClass:"yo-builder-icon-delete",attrs:{href:"",title:n.i18n.t("Delete"),"uk-tooltip":"delay: 1000","aria-label":n.i18n.t("Delete")},on:{click:function(a){return a.preventDefault(),n.Builder.remove(n.props.node)}}})])])]),e._v(" "),r(n.StatusIcons,{staticClass:"uk-margin-auto-left",attrs:{node:n.nodeProp,"tooltip-direction":"top"}})],1),e._v(" "),r("a",{staticClass:"yo-builder-button-section yo-builder-icon-add-left uk-builder-section-hover",attrs:{href:"",title:n.i18n.t("Add Section"),"uk-tooltip":"delay: 1000; pos: right","aria-label":n.i18n.t("Add Section")},on:{click:function(a){return a.preventDefault(),n.Builder.add(n.props.node,"section")}}}),e._v(" "),r("div",{directives:[{name:"sortable",rawName:"v-sortable",value:{group:"row"},expression:"{ group: 'row' }"}]},e._l(n.children,function(a,o){return r(n.Row,{key:n.Builder.key(a),attrs:{id:`${n.props.id}-${o}`,node:a}})}),1)])},aB=[],sB=Q(nB,iB,aB,!1),oB=sB.exports;const uB={__name:"Layout",props:{node:{type:Object,required:!0},id:String},setup(t,{expose:e}){const r=t,n=va(r),{Builder:a,children:o}=n;function c({type:d}){return{row:V1,column:X1,section:oB}[d]||K1}return e(n),{__sfc:!0,props:r,Node:n,Builder:a,children:o,load:c}}};var lB=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return n.children.length?r("div",{directives:[{name:"sortable",rawName:"v-sortable",value:{group:"section"},expression:"{ group: 'section' }"}],staticClass:"yo-builder"},e._l(n.children,function(a,o){return r(n.load(a),{key:n.Builder.key(a),tag:"component",attrs:{id:n.Builder.node===n.props.node?n.Builder.prefix+o:n.Builder.id(a),node:a}})}),1):e._e()},cB=[],fB=Q(uB,lB,cB,!1),ga=fB.exports;const dB={__name:"Layouts",emits:["load","select"],setup(t,{emit:e}){const r="builder.layouts.filter",{i18n:n}=oe,a=st("Library"),o=Jt({error:"",loading:null,layouts:[],filter:wt[r]?JSON.parse(wt[r]):d()}),c=Ae(()=>o.layouts.filter(({meta:T})=>k1(o.filter,(A,F)=>!A||T[F]===A)&&(o.filter.layout||!C(T.layout))));gt(()=>o.filter,T=>wt[r]=JSON.stringify(T),{deep:!0}),a.getElements("layout").then(T=>{o.layouts=T,e("load",o.layouts)});function d(){return{layout:"",type:"",topic:"",website:""}}async function p(T){o.error="",o.loading=T;try{T=await a.getElement(T),up(T.version,ue.customizer.version,">")?o.error=`This layout requires YOOtheme Pro ${T.version} or newer.`:e("select",T)}catch(A){o.error=A.message}}function v(T,A=o.layouts){let F=Ci(A.filter(({meta:G})=>G[T]),({meta:G})=>G[T]);return F=ma(F,(G,j)=>({value:j,text:j.replace(/\b\w/g,O=>O.toUpperCase())})),F.length?Yl(F,"text"):null}function b(){const T=Ci(o.layouts,A=>["layout","template"].includes(A.meta.group)?A.meta.group:"other");return[{label:n.t("Page"),layouts:T.layout},{label:n.t("Template"),layouts:T.template},{label:n.t("Position"),layouts:T.other}]}function C(T=o.filter.layout){return["Footer","Dialog","Dropdown","Live Search"].includes(T)}return{__sfc:!0,storageKey:r,i18n:n,Library:a,emit:e,state:o,filtered:c,reset:d,select:p,options:v,layoutGroups:b,isCustomHeightLayout:C,api:ue,Url:jr}}};var hB=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",[r("div",{staticClass:"yo-modal-subheader uk-grid-small uk-child-width-auto uk-flex-between uk-flex-middle",attrs:{"uk-grid":""}},[r("div",[r("h2",{staticClass:"uk-modal-title uk-margin-remove"},[e._v(e._s(n.i18n.t("%smart_count% Layout |||| %smart_count% Layouts",n.filtered.length)))])]),e._v(" "),r("div",[r("div",{staticClass:"uk-grid-small uk-child-width-auto uk-flex-middle",attrs:{"uk-grid":""}},[n.state.layouts.length?r("div",[r("select",{directives:[{name:"model",rawName:"v-model",value:n.state.filter.layout,expression:"state.filter.layout"}],staticClass:"uk-select uk-form-width-medium",on:{change:function(a){var o=Array.prototype.filter.call(a.target.options,function(c){return c.selected}).map(function(c){var d="_value"in c?c._value:c.value;return d});e.$set(n.state.filter,"layout",a.target.multiple?o:o[0])}}},[r("option",{attrs:{value:""}},[e._v(e._s(n.i18n.t("All layouts")))]),e._v(" "),e._l(n.layoutGroups(),function({layouts:a,label:o}){return r("optgroup",{key:o,attrs:{label:o}},e._l(n.options("layout",a),function({value:c,text:d}){return r("option",{key:c,domProps:{value:c}},[e._v(e._s(d))])}),0)})],2)]):e._e(),e._v(" "),n.options("topic")?r("div",[r("select",{directives:[{name:"model",rawName:"v-model",value:n.state.filter.topic,expression:"state.filter.topic"}],staticClass:"uk-select uk-form-width-medium",on:{change:function(a){var o=Array.prototype.filter.call(a.target.options,function(c){return c.selected}).map(function(c){var d="_value"in c?c._value:c.value;return d});e.$set(n.state.filter,"topic",a.target.multiple?o:o[0])}}},[r("option",{attrs:{value:""}},[e._v(e._s(n.i18n.t("All topics")))]),e._v(" "),e._l(n.options("topic"),function({value:a,text:o}){return r("option",{key:a,domProps:{value:a}},[e._v(e._s(o))])})],2)]):e._e(),e._v(" "),n.options("type")?r("div",[r("select",{directives:[{name:"model",rawName:"v-model",value:n.state.filter.type,expression:"state.filter.type"}],staticClass:"uk-select uk-form-width-medium",on:{change:function(a){var o=Array.prototype.filter.call(a.target.options,function(c){return c.selected}).map(function(c){var d="_value"in c?c._value:c.value;return d});e.$set(n.state.filter,"type",a.target.multiple?o:o[0])}}},[r("option",{attrs:{value:""}},[e._v(e._s(n.i18n.t("All types")))]),e._v(" "),e._l(n.options("type"),function({value:a,text:o}){return r("option",{key:a,domProps:{value:a}},[e._v(e._s(o))])})],2)]):e._e(),e._v(" "),n.options("website")?r("div",[r("select",{directives:[{name:"model",rawName:"v-model",value:n.state.filter.website,expression:"state.filter.website"}],staticClass:"uk-select uk-form-width-medium",on:{change:function(a){var o=Array.prototype.filter.call(a.target.options,function(c){return c.selected}).map(function(c){var d="_value"in c?c._value:c.value;return d});e.$set(n.state.filter,"website",a.target.multiple?o:o[0])}}},[r("option",{attrs:{value:""}},[e._v(e._s(n.i18n.t("All websites")))]),e._v(" "),e._l(n.options("website"),function({value:a,text:o}){return r("option",{key:a,domProps:{value:a}},[e._v(e._s(o))])})],2)]):e._e(),e._v(" "),r("div",[r("button",{staticClass:"uk-button uk-button-default",attrs:{type:"button",disabled:!Object.values(n.state.filter).some(Boolean)},on:{click:function(a){n.state.filter=n.reset()}}},[e._v(e._s(n.i18n.t("Reset")))])])])])]),e._v(" "),n.filtered.length?r("div",{staticClass:"yo-finder-body uk-margin-top",attrs:{"uk-overflow-auto":""}},[r("ul",{key:`layout-list-${n.state.filter.layout}`,class:["uk-grid-medium uk-child-width-1-2",{"uk-grid-match uk-child-width-1-3@s uk-child-width-1-4@m":!n.isCustomHeightLayout()}],attrs:{"uk-grid":`masonry: ${n.isCustomHeightLayout()}`}},e._l(n.filtered,function(a){return r("li",{key:a.link},[r("a",{staticClass:"uk-panel uk-inline uk-box-shadow-medium uk-box-shadow-hover-large uk-transition-toggle",attrs:{href:""},on:{click:function(o){return o.preventDefault(),n.select(a)}}},[a.meta.image?[n.isCustomHeightLayout()?r("img",{attrs:{src:n.Url(a.meta.image),width:"800",alt:"",loading:"lazy"}}):r("img",{staticClass:"uk-object-cover uk-object-top-center",staticStyle:{"aspect-ratio":"8 / 10"},attrs:{src:n.Url(a.meta.image),width:"800",height:"1000",alt:"",loading:"lazy"}})]:r("img",{staticClass:"uk-object-none yo-finder-thumbnail-file",staticStyle:{"aspect-ratio":"8 / 10"},attrs:{src:`${n.api.config.assets}/images/finder-thumbnail-file.svg`,width:"800",height:"1000",alt:"",loading:"lazy"}}),e._v(" "),r("div",{staticClass:"uk-label yo-label uk-position-top-right uk-position-small uk-transition-fade"},[e._v(e._s(n.state.filter.layout?`${a.meta.topic} / ${a.meta.type}`:a.meta.layout))]),e._v(" "),n.state.loading===a?r("div",{staticClass:"uk-overlay uk-overlay-primary uk-position-cover uk-flex uk-flex-center uk-flex-middle"},[n.state.error?r("div",{staticClass:"uk-text-danger"},[r("span",{attrs:{"uk-icon":"warning"}}),e._v(" "),r("span",{staticClass:"uk-margin-small-left"},[e._v(e._s(n.i18n.t(n.state.error)))])]):r("span",{attrs:{"uk-spinner":""}})]):e._e()],2)])}),0)]):r("p",{staticClass:"uk-h1 uk-text-muted uk-text-center"},[e._v(e._s(n.i18n.t("No layout found.")))])])},pB=[],mB=Q(dB,hB,pB,!1),vB=mB.exports;const Bo={pages:"builder/pages",templates:"builder/template"},Ho=sn("Builder",{state:()=>({pages:[],templates:[]}),actions:{async getPages(t={}){return this.pages=await Ue(Bo.pages).query(t).get().json()},async getTemplates(){return this.templates=await Ue(Bo.templates).get().json()},async saveTemplate(t){return await Ue(Bo.templates).post({tpl:t}).json()},async deleteTemplate(t){const e=await Ue(Bo.templates).query({id:t.id}).delete().json();return this.templates=this.templates.filter(({id:r})=>r!==t.id),e},async reorderTemplates(t){return await Ue(Bo.templates).post({templates:t},"/reorder").json()}}});function ms(t){return sn(t,{state:()=>({node:{},base:{}}),getters:{empty(){return!this.node.children?.length},modified(){return!lp(this.base,this.node)}},setup:()=>({prefix:"",view:null,rootType:"layout",changed:!1,types:{},nodes:new Map,init({onChange:e,node:r,...n}={}){if(!zn(e))throw new Error('"onChange" callback must be a function');if(!to())throw new Error("Builder.init must be called in setup function");Object.assign(this,n),this.reset(r);const a=Vn(o=>{this.modified?(this.changed=!0,this.emit(e,o,this)):!this.modified&&this.changed&&(this.changed=!1,this.emit(e,o,this))});gt(()=>this.node,a,{deep:!0}),Ga(()=>{this.$reset(),this.$dispose()}),oe.events.trigger({name:"initBuilder",origin:this},[this.types])},emit:Vn(function(e,...r){e(...r)},400,{leading:!0}),make(e){const{container:r,defaults:n={},fields:a={}}=this.type({type:e}),o=this.clone({type:e,props:n});for(const[c,d]of Object.entries(a))d&&"default"in d&&!(c in o.props)&&(o.props[c]=d.default);return r&&(o.children=[]),o},type({type:e}={}){return{name:e,icon:`${ue.config.assets}/images/builder/undefined-large.svg`,iconSmall:`${ue.config.assets}/images/builder/undefined-small.svg`,...this.types[e]}},exists({type:e}){return e in this.types},set(e={}){e=ql(e,["name","type","children","version"]),e=Q1(this.rootType,e),e.version||(e.version=ue.customizer.version),this.node=e,this.nodes.clear()},reset(e=this.base){e=Q1(this.rootType,e),lp(e,this.node)||(this.node=e,this.nodes.clear(),oe.events.trigger("resetNode",[e,this])),this.changed=!1,this.base=this.clone(e)},async add(e,r,n=this.after){return n.call(this,e,r?this.make(r):await oe.events.trigger("addNode",[this],!0))},save(e){return oe.events.trigger("saveNode",[e,this],!0)},edit(e){oe.events.trigger("editNode",[e,this])},copy(e){const r=this.clone(e);return this.after(e,r),r},remove(e){const{children:r=[]}=this.parent(e),n=r.indexOf(e);return~n&&r.splice(n,1),this.empty&&this.set({type:this.node.type}),oe.events.trigger("removeNode",[e,this]),e},clone(e){return kr({},e)},replaceWith(e,r){if(e===this.node){this.set(r);return}this.after(e,r),this.remove(e)},replaceChildren(e,r=[]){e.children?.length?e.children.splice(0,e.children.length,...r):this.append(e,r)},append(e,r,n){const{children:a=[]}=e;if(r)return b8(n)||(n=a.length),e.children||mt(e,"children",a),a.splice(n,0,...[].concat(r)),r},after(e,r){const n=this.parent(e);return this.append(n,r,this.index(e)+1)},key(e){return this.nodes.get(e)??this.nodes.set(e,this.nodes.size).get(e)},index(e){return(this.parent(e)?.children||[]).indexOf(e)},id(e){const r=this.path(e).reverse();return this.prefix+r.slice(1).reduce((n,a,o)=>n.concat(r[o].children.indexOf(a)),[]).join("-")},find(e){return e.replace(this.prefix,"").split("-").reduce((n,a)=>n?.children?.[a],this.node)},parent(e){for(const r of this.all())if(r.children?.includes(e))return r},path(e){const r=[];do r.push(e);while(e=this.parent(e));return r},columns(e,r=""){const{length:n}=r.split("|")[0].split(","),{children:a=[]}=e;for(e.children||mt(e,"children",a);a.length<n;)this.append(e,this.make("column"));for(;a.length>n;){const o=a[n];this.remove(o),this.append(a[n-1],o.children)}},columnWidths(e,r=""){const{children:n=[]}=e,a=["medium","small","default"];r.split("|").forEach(o=>{const c=`width_${a.shift()}`;o.split(",").forEach((d,p)=>{const v=n[p];(!_t(v.props)||Array.isArray(v.props))&&mt(v,"props",{}),mt(v.props,c,d)})}),a.concat(["large","xlarge"]).forEach(o=>n.forEach(c=>Zi(c.props,`width_${o}`))),n.forEach(o=>Zi(o.props,"order_first"))},*children(e=this.node){for(const r of e?.children||[])yield r,yield*this.children(r)},*all(e=this.node){yield e;for(const r of e?.children||[])yield*this.all(r)}})})}function lp(t,e){return _8(t,e,(r,n,a)=>a==="props"&&k1(r,(o,c)=>Gl(o,n[c])||o===""&&!(c in n))&&r8(Xn(n),Xn(r)).every(o=>n[o]==="")||void 0)}function Q1(t,e){if(t!==e.type){if(t==="fragment")return gB(e);if(e.type==="fragment")return _B(e)}return e}function gB(t){return{type:"fragment",children:t.children?.reduce((e,r)=>e.concat(r.children),[])}}function _B(t){return{type:"layout",children:[{type:"section",children:t.children}]}}const bB={__name:"LayoutLibrary",emits:["select"],setup(t,{emit:e}){const{i18n:r}=oe,{trigger:n}=Me(),a=st("Library"),o=st("Builder"),c=st("$node"),d=Be(""),p=Be(null),v=Ae(()=>wi(a.library,O=>["layout","section"].includes(O.type)||o.type(O).fragment)),b=Ae(()=>Object.entries(v.value).filter(([,{name:O}])=>da(O,d.value)).sort(([,O],[,x])=>O.name.localeCompare(x.name,void 0,{numeric:!0})));function C(O){return o.type(O).fragment?r.t("Rows"):Vy(O.type)}function T(){ki("layouts.json",JSON.stringify(Object.values(v.value)))}function A(O){ki(`${O.name||"layout"}.json`,JSON.stringify({...O,version:ue.customizer.version}))}function F(O){return lp(Mo(O,["name","modified","version"]),Mo(c,["name","modified","version"]))}function G(O){return O?new Date(O).toLocaleString():"-"}async function j(O){try{const x=O.currentTarget.files||O.dataTransfer?.files||[],S=[];for(const q of x)try{S.push(await wl(q))}catch{throw new Error(`Error loading file '${q.name}'.`)}const P=[],R=[],B=S.flat();for(const{name:q,type:le,version:ae}of B){if(!q)throw new Error("Invalid layout. Name is required.");if(!["section","layout"].includes(le)&&!o.type({type:le}).fragment)throw new Error("Invalid layout. Type must be section, layout or fragment.");if(up(ae,ue.customizer.version,">"))throw new Error(`This layout requires YOOtheme Pro ${ae} or newer.`);const Z=a.findElement(q,le);Z&&R.push(q),P.push(Z)}if(R.length&&!window.confirm(r.t(`Layout ${R.join(", ")} already exists in the library, do you want to overwrite it?`)))return;for(let q=0;q<B.length;q++)await a.saveElement(B[q],P[q]);Ut("Layouts uploaded successfully.","success")}catch(x){Ut(x,"danger")}p.value.value=""}return{__sfc:!0,i18n:r,trigger:n,emit:e,Library:a,Builder:o,$node:c,search:d,input:p,layouts:v,layoutList:b,title:C,exportLayouts:T,exportLayout:A,isCurrentLayout:F,formatDate:G,upload:j,DragOver:tf,vConfirm:cn}}};var yB=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r(n.DragOver,{on:{drop:n.upload}},[r("div",{staticClass:"yo-modal-subheader uk-grid-small uk-child-width-auto uk-flex-between uk-flex-middle",attrs:{"uk-grid":""}},[r("div",[r("div",{staticClass:"uk-grid-small uk-child-width-auto uk-flex-middle",attrs:{"uk-grid":""}},[r("div",[r("h2",{staticClass:"uk-modal-title uk-margin-remove"},[e._v(e._s(n.i18n.t("%smart_count% Layout |||| %smart_count% Layouts",n.layoutList.length)))])]),e._v(" "),r("div",[r("div",{staticClass:"yo-finder-search"},[r("div",{staticClass:"uk-search uk-search-medium"},[r("span",{attrs:{"uk-search-icon":""}}),e._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:n.search,expression:"search"}],staticClass:"uk-search-input",attrs:{type:"search",autofocus:""},domProps:{value:n.search},on:{input:function(a){a.target.composing||(n.search=a.target.value)}}})])])])])]),e._v(" "),r("div",[r("div",{staticClass:"uk-grid-small uk-child-width-auto uk-flex-middle",attrs:{"uk-grid":""}},[r("div",[r("button",{directives:[{name:"show",rawName:"v-show",value:n.layoutList.length,expression:"layoutList.length"}],staticClass:"uk-button uk-button-default",attrs:{type:"button"},on:{click:function(a){return a.preventDefault(),n.exportLayouts.apply(null,arguments)}}},[e._v(e._s(n.i18n.t("Download All")))])]),e._v(" "),r("div",[r("div",{attrs:{"uk-form-custom":""}},[r("input",{ref:"input",attrs:{accept:"application/json",type:"file",name:"files[]",multiple:"multiple"},on:{change:n.upload}}),e._v(" "),r("button",{staticClass:"uk-button uk-button-default",attrs:{type:"button"}},[e._v(e._s(n.i18n.t("Upload Layout")))])])]),e._v(" "),r("div",[r("button",{directives:[{name:"show",rawName:"v-show",value:!n.Builder.empty,expression:"!Builder.empty"}],staticClass:"uk-button uk-button-primary",attrs:{type:"button"},on:{click:function(a){return n.trigger("saveNode",[n.$node,n.Builder],!0)}}},[e._v(e._s(n.i18n.t("Save Layout")))])])])])]),e._v(" "),n.layoutList.length?r("div",{staticClass:"yo-finder-body uk-margin-top",attrs:{"uk-overflow-auto":""}},[r("table",{staticClass:"uk-table uk-table-divider uk-table-small uk-table-hover"},[r("thead",[r("tr",[r("th",{staticClass:"uk-table-expand"},[e._v(e._s(n.i18n.t("Name")))]),e._v(" "),r("th",{staticClass:"uk-width-medium uk-text-center"},[e._v(e._s(n.i18n.t("Current Layout")))]),e._v(" "),r("th",{staticClass:"uk-width-small"},[e._v(e._s(n.i18n.t("Type")))]),e._v(" "),r("th",{staticClass:"uk-table-shrink uk-text-nowrap"},[e._v(e._s(n.i18n.t("Last Modified")))]),e._v(" "),r("th",{staticClass:"uk-table-shrink"})])]),e._v(" "),r("tbody",e._l(n.layoutList,function([a,o]){return r("tr",{key:a,staticClass:"uk-visible-toggle",attrs:{tabindex:"-1"}},[r("td",{staticClass:"uk-table-link"},[r("a",{staticClass:"uk-link-heading",attrs:{href:""},on:{click:function(c){return c.preventDefault(),n.emit("select",o)}}},[r("span",{staticClass:"uk-preserve-width uk-margin-small-right",attrs:{"uk-icon":o.type==="layout"?"copy":"file"}}),e._v(" "),r("span",{staticClass:"uk-text-middle"},[e._v(e._s(o.name))])])]),e._v(" "),r("td",{staticClass:"uk-text-center"},[n.isCurrentLayout(o)?r("span",{staticClass:"uk-text-success",attrs:{"uk-icon":"check"}}):r("span",[e._v("\u2013")])]),e._v(" "),r("td",[e._v(e._s(n.title(o)))]),e._v(" "),r("td",{staticClass:"uk-text-nowrap"},[r("time",{attrs:{datetime:o.modified}},[e._v(e._s(n.formatDate(o.modified)))])]),e._v(" "),r("td",[r("ul",{staticClass:"uk-iconnav uk-flex-nowrap uk-invisible-hover"},[r("li",[r("button",{staticClass:"uk-icon-link uk-preserve-width",attrs:{title:n.i18n.t("Rename"),type:"button","uk-icon":"pencil","uk-tooltip":"delay: 500"},on:{click:function(c){return n.Library.editElement(o,a,n.Builder)}}})]),e._v(" "),r("li",[r("button",{staticClass:"uk-icon-link uk-preserve-width",attrs:{title:n.i18n.t("Download"),type:"button","uk-icon":"download","uk-tooltip":"delay: 500"},on:{click:function(c){return n.exportLayout(o)}}})]),e._v(" "),r("li",[r("button",{directives:[{name:"confirm",rawName:"v-confirm",value:n.i18n.t("Are you sure?"),expression:"i18n.t('Are you sure?')"}],staticClass:"uk-icon-link uk-preserve-width",attrs:{title:n.i18n.t("Delete"),type:"button","uk-icon":"trash","uk-tooltip":"delay: 500"},on:{click:function(c){return n.Library.deleteElement(o,a)}}})])])])])}),0)])]):r("p",{staticClass:"uk-h1 uk-text-muted uk-text-center"},[e._v(e._s(n.i18n.t("No layout found.")))])])},kB=[],EB=Q(bB,yB,kB,!1),TB=EB.exports;const CB={__name:"LayoutsModal",props:{library:{type:Object,required:!0},builder:{type:Object,required:!0},node:{type:Object,required:!0}},emits:["resolve"],setup(t,{emit:e}){const r=t,n="builder.library.replace",{i18n:a}=oe,{trigger:o}=Me();br("Builder",r.builder),br("Library",r.library),br("$node",r.node);const c=Be(!r.builder.empty&&wt[n]||"replace"),d=Ae(()=>{const p=o("layoutsModalTabs",[r.node])||[];return[{name:a.t("pro layouts"),component:vB},{name:a.t("my layouts"),component:TB},...p]});return Nr(()=>wt[n]=c.value),{__sfc:!0,storageKey:n,i18n:a,emit:e,trigger:o,props:r,replace:c,tabs:d,Switcher:ls}}};var wB=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",[r(n.Switcher,{attrs:{tabs:n.tabs.map(({name:a})=>a),storage:"builder.library.tab"},scopedSlots:e._u([e._l(n.tabs,function(a){return{key:a.name,fn:function(){return[r("div",{key:a.name,staticClass:"uk-modal-body"},[r(a.component,{tag:"component",on:{select:function(o){return n.emit("resolve",{node:o,replace:n.replace})}}})],1)]},proxy:!0}})],null,!0)}),e._v(" "),r("div",{directives:[{name:"show",rawName:"v-show",value:!e.builder.empty,expression:"!builder.empty"}],staticClass:"uk-modal-footer"},[r("select",{directives:[{name:"model",rawName:"v-model",value:n.replace,expression:"replace"}],staticClass:"uk-select uk-form-width-medium yo-form-medium",on:{change:function(a){var o=Array.prototype.filter.call(a.target.options,function(c){return c.selected}).map(function(c){var d="_value"in c?c._value:c.value;return d});n.replace=a.target.multiple?o:o[0]}}},[r("option",{attrs:{value:"replace"}},[e._v(e._s(n.i18n.t("Replace layout")))]),e._v(" "),r("option",{attrs:{value:"prepend"}},[e._v(e._s(n.i18n.t("Insert at the top")))]),e._v(" "),r("option",{attrs:{value:"append"}},[e._v(e._s(n.i18n.t("Insert at the bottom")))])])])],1)},SB=[],xB=Q(CB,wB,SB,!1),AB=xB.exports;const OB={__name:"Savebar",emits:["save","cancel"],setup(t,{emit:e}){const{i18n:r}=oe,n=st("Sidebar"),a=Be(null);return Gt(()=>n.$refs.breadcrumb.appendChild(a.value)),Nr(()=>a.value.remove()),{__sfc:!0,i18n:r,emit:e,Sidebar:n,el:a,vConfirm:cn}}};var NB=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",{ref:"el",staticClass:"yo-savebar uk-grid uk-grid-small uk-flex-middle uk-flex-nowrap uk-text-nowrap"},[r("div",[r("button",{directives:[{name:"confirm",rawName:"v-confirm",value:n.i18n.t("Are you sure?"),expression:"i18n.t('Are you sure?')"}],staticClass:"uk-button uk-button-small uk-button-text",attrs:{type:"button"},on:{click:function(a){return n.emit("cancel")}}},[e._v(e._s(n.i18n.t("Cancel")))])]),e._v(" "),r("div",[r("button",{staticClass:"uk-button uk-button-small uk-button-primary",attrs:{type:"button"},on:{click:function(a){return n.emit("save")}}},[e._v(e._s(n.i18n.t("Save Layout")))])])])},PB=[],IB=Q(OB,NB,PB,!1),Xl=IB.exports,J1={name:"BuilderLibraryModel",data:()=>({library:{}}),computed:{layouts(){return wi(this.library,({type:t})=>["layout","fragment","section"].includes(t))},elements(){return wi(this.library,({type:t})=>!["layout","section"].includes(t))}},created(){this.$trigger("initLibrary",this.library)},methods:{getElement({link:t}){return Ue(t).query({key:ue.config.apikey}).get().json()},getElements(t){return Ue(`${ue.config.api}/v1/library/${t}`).get().json()},findElement(t,e){return Wl(this.library,{name:t,type:e})},async saveElement(t,e=wo()){try{return t=await this.$trigger("saveElement",[t,e],!0),this.$set(this.library,e,t),t}catch{}},async deleteElement(t,e){try{return await this.$trigger("deleteElement",[t,e],!0),this.$delete(this.library,e),t}catch{}},async editElement(t,e,r){if(t=await Dt(F1,{node:r.clone(t),builder:r,library:this,edit:!0},{width:"xlarge"}),!t)return t;if(t.type==="layout"){const n=this.findElement(t.name,t.type);n&&e!==n&&await this.deleteElement(this.library[n],n)}return this.saveElement(t,e)}},events:{async openLibrary(t,e,r=e.node){const n=await Dt(AB,{builder:e,library:this,node:r},{container:!0});if(!n||n.replace==="replace"&&e.modified&&r.children?.length&&!confirm(this.$t("Do you really want to replace the current layout?")))return;const a=cp(e,n.node);return a.type!=="section"&&delete a.name,n.replace==="replace"?!r.type||r.type==="layout"?e.replaceWith(r,tk(a)):e.replaceChildren(r,fp(a)):e.append(r,!r.type||r.type==="layout"?tk(a).children:fp(a),n.replace==="append"?void 0:0),a},async addNode(t,e){let r=await Dt(z1,{builder:e,library:this},{container:!0});if(r)return cp(e,r)},async saveNode(t,e,r){if(e=await Dt(F1,{node:{...r.clone(e),modified:new Date().toISOString()},builder:r,library:this},{width:"xlarge"}),!!e)return this.saveElement(e,e.type==="layout"?this.findElement(e.name,e.type):void 0)},async transformNode(t,e,r){const n=await Dt(z1,{builder:r,library:this},{container:!0});n&&r.replaceWith(e,Z1(r,e,cp(r,n)))}}};function cp(t,e){return e=Mo(t.clone(e),["version","modified"]),e.images&&(ek(e,e.images),delete e.images),Array.isArray(e.children)||delete e.children,e}function Z1(t,e,r){const n=t.type(e),a=t.type(r),o="name"in r;r.name=e.name;const c=a.fieldset?.default?.fields?.[0]?.fields||{};for(const[d,p]of Object.entries(e.props)){if(!(d in a.fields)||o&&!c.includes(d))continue;const{options:v}=a.fields[d];v&&!dp(p,v)||(r.props[d]=p)}if(e.children&&n.container&&a.container&&t.exists({type:`${a.name}_item`})){r.children=[];for(const d of e.children)r.children.push(Z1(t,d,t.make(`${a.name}_item`)))}return oe.events.trigger("transformedNode",[r,e,t,o]),r}function ek(t,e){for(const[r,n]of Object.entries(t))if(_t(n)&&!zn(n))ek(n,e);else if(Sn(n)){const a=e.find(o=>n.includes(o.src));a&&(To.set(n,{...a}),t[r]=n)}}function tk(t){return t.type==="layout"?t:{type:"layout",children:[t.type==="section"?t:{type:"section",children:t.children}]}}function fp(t){if(t.children?.[0]?.type==="row")return t.children;const e=[];for(const r of t.children??[])e.push(...fp(r));return e}function dp(t,e){return Object.values(e).find(r=>t===r||t===r.value||r.options&&dp(t,r.options))}const LB={__name:"Child",props:{node:Object,field:Object},setup(t,{expose:e}){const r=t,{i18n:n}=oe,a=va(r),o=Jt(a),{Builder:c}=a,d=Ae(()=>c.index(r.node)+1),p=Ae(()=>o.type?.title||r.node.type);return e(a),{__sfc:!0,i18n:n,props:r,Node:a,nodeProp:o,Builder:c,index:d,title:p}}};var RB=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",[r("button",{staticClass:"uk-button yo-button-panel uk-width-1-1",attrs:{type:"button"},on:{click:function(a){return n.Builder.edit(n.props.node)}}},[r("span",{staticClass:"uk-text-middle"},[e._v(e._s(n.i18n.t("Edit %title% %index%",{title:n.title,index:n.index})))]),e._v(" "),n.nodeProp.statusIcons?r("ul",{staticClass:"uk-grid uk-grid-collapse uk-flex-inline uk-text-middle"},e._l(n.nodeProp.statusIcons,function({component:a,...o}){return r("li",{key:a.name},[r(a,e._b({tag:"component",attrs:{node:n.nodeProp}},"component",o,!1))],1)}),0):e._e()])])},DB=[],MB=Q(LB,RB,DB,!1),$B=MB.exports;const FB={components:{Child:$B},extends:Ze,inject:["$node","Builder"]};var BB=function(){var e=this,r=e._self._c;return r("div",e._l(e.$node.children,function(n){return r("Child",{key:e.Builder.key(n),staticClass:"uk-margin-small",attrs:{node:n,field:e.field}})}),1)},HB=[],UB=Q(FB,BB,HB,!1),jB=UB.exports;const WB={__name:"ContentItem",props:{field:Object,node:Object},setup(t,{expose:e}){const r=t,{i18n:n}=oe,{trigger:a}=Me(),o=va(r),{Builder:c}=o,d=Jt(o),p=Ae(()=>{let b=a("contentItemTitle",[r.node]);return b||(b=r.field.title||"title",b=v(r.node.props?.[b]||""),b)?b:n.t("%title% %index%",{title:c.type(r.node).title,index:c.index(r.node)+1})});function v(b){return ke.fragment(`<div>${b}</div>`)?.textContent}return e(o),{__sfc:!0,i18n:n,props:r,trigger:a,Node:o,Builder:c,nodeProp:d,title:p,stripTags:v,StatusIcons:Fo,isVideo:fa,Url:jr}}};var GB=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("li",{staticClass:"uk-visible-toggle",attrs:{tabindex:"-1"}},[r("a",{attrs:{href:""},on:{click:function(a){return a.preventDefault(),n.Builder.edit(e.node)}}},[e.node.props?.image?r("img",{staticClass:"yo-nav-media",attrs:{src:n.Url(e.node.props.image),alt:"",loading:"lazy"}}):n.isVideo(e.node.props?.video)?r("video",{staticClass:"yo-nav-media",attrs:{src:n.Url(e.node.props.video),loop:"",muted:"",playsinline:"","uk-video":"hover"},domProps:{muted:!0}}):e._e(),e._v(" "),r("span",{staticClass:"uk-text-truncate",class:n.nodeProp.statuses.map(a=>`yo-builder-element-item-status-${a}`)},[e._v(e._s(n.title||n.i18n.t("Item")))]),e._v(" "),r(n.StatusIcons,{attrs:{node:n.nodeProp}})],1),e._v(" "),r("div",{staticClass:"uk-invisible-hover uk-position-center-right uk-position-medium"},[r("ul",{staticClass:"uk-iconnav uk-flex-nowrap"},[r("li",[r("a",{staticClass:"uk-icon-link uk-preserve-width",attrs:{href:"",title:n.i18n.t("Copy"),"uk-icon":"copy","uk-tooltip":"delay: 500","aria-label":n.i18n.t("Copy")},on:{click:function(a){return a.preventDefault(),n.Builder.copy(e.node)}}})]),e._v(" "),r("li",[r("a",{staticClass:"uk-icon-link uk-preserve-width",attrs:{href:"",title:n.i18n.t("Delete"),"uk-icon":"trash","uk-tooltip":"delay: 500","aria-label":n.i18n.t("Delete")},on:{click:function(a){return a.preventDefault(),n.Builder.remove(e.node)}}})])])])])},zB=[],qB=Q(WB,GB,zB,!1),YB=qB.exports;const KB={components:{ContentItem:YB},directives:{Sortable:zh},extends:Ze,inject:["Builder","$node"],methods:{async add(t){this.Builder.edit(await this.Builder.add(this.$node,t,this.Builder.append))},async addFromMedia(t,e){e=[].concat(e);const r=await this.$trigger("openMediaPicker",{multiple:!0,type:e.map(({type:a})=>a)},!0);if(!r)return;const n={image:yo,video:fa};this.Builder.append(this.$node,r.map(a=>{const o=e.find(({type:c})=>!n[c]||n[c](a.src));return{type:t,props:XB(o?.item,a)}}))},move(t,e,r){this.Builder.append(e.$node,this.Builder.remove(t.node),r)}}};function XB(t,e){return zl(t,r=>e[r])}var VB=function(){var e=this,r=e._self._c;return r("div",[e.$node.children?.length?r("ul",{directives:[{name:"sortable",rawName:"v-sortable",value:{group:"content-items"},expression:"{ group: 'content-items' }"}],staticClass:"uk-nav uk-nav-default yo-sidebar-marginless yo-nav-sortable yo-nav-iconnav uk-margin",attrs:{"cls-custom":"yo-nav-sortable-drag"}},e._l(e.$node.children,function(n){return r("ContentItem",{key:e.Builder.key(n),attrs:{node:n,field:e.field}})}),1):r("p",{staticClass:"uk-text-muted"},[e._v(e._s(e.$t("No items yet.")))]),e._v(" "),r("div",{staticClass:"uk-grid uk-grid-small uk-child-width-auto"},[r("div",[r("button",{staticClass:"uk-button uk-button-default",attrs:{type:"button"},on:{click:function(n){return e.add(e.field.item)}}},[e._v(e._s(e.$t(e.field.button||"Add Item")))])]),e._v(" "),e.field.media?r("div",[r("button",{staticClass:"uk-button uk-button-default",attrs:{type:"button"},on:{click:function(n){return e.addFromMedia(e.field.item,e.field.media)}}},[e._v(e._s(e.$t("Add Media")))])]):e._e()])])},QB=[],JB=Q(KB,VB,QB,!1),ZB=JB.exports;const e5={extends:Ze,computed:{id(){return`data-list-${this.name}`}}};var t5=function(){var e=this,r=e._self._c;return r("div",[e.attributes.type==="checkbox"?r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"uk-input",attrs:{list:e.id,"aria-label":e.$t(e.label),type:"checkbox"},domProps:{checked:Array.isArray(e.value)?e._i(e.value,null)>-1:e.value},on:{change:function(n){var a=e.value,o=n.target,c=!!o.checked;if(Array.isArray(a)){var d=null,p=e._i(a,d);o.checked?p<0&&(e.value=a.concat([d])):p>-1&&(e.value=a.slice(0,p).concat(a.slice(p+1)))}else e.value=c}}},"input",e.attributes,!1)):e.attributes.type==="radio"?r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"uk-input",attrs:{list:e.id,"aria-label":e.$t(e.label),type:"radio"},domProps:{checked:e._q(e.value,null)},on:{change:function(n){e.value=null}}},"input",e.attributes,!1)):r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"uk-input",attrs:{list:e.id,"aria-label":e.$t(e.label),type:e.attributes.type},domProps:{value:e.value},on:{input:function(n){n.target.composing||(e.value=n.target.value)}}},"input",e.attributes,!1)),e._v(" "),r("datalist",{attrs:{id:e.id}},e._l(e.filterOptions(e.options),function(n){return r("option",{key:n.value,domProps:{value:n.value}},[e._v(e._s(e.$t(n.text)))])}),0)])},r5=[],n5=Q(e5,t5,r5,!1),i5=n5.exports;const a5={extends:Ze,computed:{date:{get(){if(!this.value)return"";try{const t=new Date(this.value);return t.setTime(t.getTime()-t.getTimezoneOffset()*60*1e3),t.toISOString().slice(0,-1)}catch{return""}},set(t){t||(this.value="");try{this.value=new Date(t).toISOString()}catch{this.value=""}}}}};var s5=function(){var e=this,r=e._self._c;return r("div",[{type:"datetime-local",...e.attributes}.type==="checkbox"?r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.date,expression:"date"}],staticClass:"uk-input",attrs:{"aria-label":e.label,type:"checkbox"},domProps:{checked:Array.isArray(e.date)?e._i(e.date,null)>-1:e.date},on:{change:function(n){var a=e.date,o=n.target,c=!!o.checked;if(Array.isArray(a)){var d=null,p=e._i(a,d);o.checked?p<0&&(e.date=a.concat([d])):p>-1&&(e.date=a.slice(0,p).concat(a.slice(p+1)))}else e.date=c}}},"input",{type:"datetime-local",...e.attributes},!1)):{type:"datetime-local",...e.attributes}.type==="radio"?r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.date,expression:"date"}],staticClass:"uk-input",attrs:{"aria-label":e.label,type:"radio"},domProps:{checked:e._q(e.date,null)},on:{change:function(n){e.date=null}}},"input",{type:"datetime-local",...e.attributes},!1)):r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.date,expression:"date"}],staticClass:"uk-input",attrs:{"aria-label":e.label,type:{type:"datetime-local",...e.attributes}.type},domProps:{value:e.date},on:{input:function(n){n.target.composing||(e.date=n.target.value)}}},"input",{type:"datetime-local",...e.attributes},!1))])},o5=[],u5=Q(a5,s5,o5,!1),l5=u5.exports;const rk=window.localStorage||{},nk="builder.editor.tab",c5={components:{EditorCode:OS},extends:Ze,data:()=>({shown:[]}),computed:{isVisual(){return this.field.editor!=="code"&&window.tinyMCE},tab:{get(){return rk[nk]},set(t){rk[nk]=t,this.shown.push(t),this.$refs.editors?.forEach(e=>e.refresh())}}},created(){!this.attributes.height&&this.isVisual&&(this.attributes.height=330),this.attributes.debounce&&(this.change=Vn(this.change,this.attributes.debounce))},methods:{change(t){this.value=t}}};var f5=function(){var e=this,r=e._self._c;return r("div",{staticClass:"yo-editor",class:{"uk-disabled":e.attributes.disabled},attrs:{id:e.attributes.id}},[e.isVisual?[r("div",{staticClass:"yo-editor-tab"},[r("ul",{staticClass:"uk-subnav uk-margin-remove uk-flex-right",attrs:{active:e.tab,"uk-switcher":"connect: !* +"}},[r("li",{class:{"uk-disabled":e.attributes.disabled}},[r("a",{attrs:{href:""},on:{click:function(n){n.preventDefault()}}},[e._v(e._s(e.$t("Visual")))])]),e._v(" "),r("li",{class:{"uk-disabled":e.attributes.disabled}},[r("a",{attrs:{href:""},on:{click:function(n){n.preventDefault()}}},[e._v(e._s(e.$t("Code")))])])])]),e._v(" "),r("div",{staticClass:"uk-switcher"},e._l(["EditorVisual","EditorCode"],function(n,a){return r("div",{key:n,on:{show:function(o){e.tab=a}}},[e.shown.includes(a)?r(n,{ref:"editors",refInFor:!0,tag:"component",attrs:{value:e.value,root:e.field.root,attrs:e.attributes},on:{input:e.change}}):e._e()],1)}),0)]:r("EditorCode",{attrs:{value:e.value,mode:e.field.mode,attrs:e.attributes},on:{input:e.change}})],2)},d5=[],h5=Q(c5,f5,d5,!1),p5=h5.exports;const m5={extends:Ze,beforeCreate(){this.Fonts=wb()},methods:{getFontName(t){return this.Fonts.getFontName(t)},async open(){const t=await Io(DP,{},this.$el,{classes:"yo-dropdown",boundaryX:this.$el.closest(".yo-sidebar-fields > *")||this.$el});t&&(this.value=t)}}};var v5=function(){var e=this,r=e._self._c;return r("a",{staticClass:"uk-select uk-text-truncate",class:e.attributes.class,attrs:{title:e.attributes.title,href:""},on:{click:function(n){return n.preventDefault(),e.open.apply(null,arguments)},keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"down",40,n.key,["Down","ArrowDown"])?null:e.open.apply(null,arguments)}}},[e._v(e._s(e.getFontName(e.value)||e.attributes.placeholder||e.$t("Choose Font")))])},g5=[],_5=Q(m5,v5,g5,!1),b5=_5.exports;const y5={extends:Ze,computed:{background(){return`${this.values[this.field.internal]||""} ${this.value||""}`.trim()}},methods:{open(){ds({functional:!0,render:t=>t("div",{class:"uk-form-stacked"},[t("div",{class:"uk-margin-small yo-colorpicker-boxshadow"},[t("label",{class:"uk-form-label",domProps:{for:"form-gradient"}},this.$t("Gradient")),t("input",{class:"uk-input uk-form-small",domProps:{value:ap(this.values,this.field.internal)},on:{input:e=>this.$emit("change",e.target.value,{name:this.field.internal})}})]),t(ef,{props:{value:this.value||void 0,allowEmpty:this.field.allowEmpty},on:{input:e=>this.value=e}})])},{},this.$el,{boundaryX:this.$el.closest(".yo-sidebar-fields > *")||this.$el})}}};var k5=function(){var e=this,r=e._self._c;return r("a",{staticClass:"yo-colorpicker",attrs:{title:e.attributes.title,href:"","aria-label":e.$t("Select Gradient")},on:{click:function(n){return n.preventDefault(),e.open.apply(null,arguments)}}},[r("div",{class:[e.attributes.class,"yo-colorpicker-color",{"yo-colorpicker-color-none":!e.background}],style:{background:e.background}})])},E5=[],T5=Q(y5,k5,E5,!1),C5=T5.exports;const w5={extends:Ze,methods:{async select(){const t=await Dt(lL,{},{container:!0});dr(t)||(this.value=t)}}};var S5=function(){var e=this,r=e._self._c;return r("div",[r("div",{staticClass:"uk-position-relative"},[r("a",{staticClass:"uk-icon uk-form-icon uk-form-icon-flip uk-icon-link",class:{"uk-disabled":e.attributes.disabled},attrs:{href:"",title:e.$t("Pick icon"),"uk-icon":"pencil","uk-tooltip":"delay: 500","aria-label":e.$t("Pick icon")},on:{click:function(n){return n.preventDefault(),e.select.apply(null,arguments)}}}),e._v(" "),r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"uk-input",attrs:{type:"text","aria-label":e.$t(e.label)},domProps:{value:e.value},on:{input:function(n){n.target.composing||(e.value=n.target.value)}}},"input",e.attributes,!1))])])},x5=[],A5=Q(w5,S5,x5,!1),O5=A5.exports;const N5={extends:Ze,created(){this.$config=ue.config},methods:{async open(){const t=await this.$trigger("openMediaPicker",this.field.mediapicker,!0);t&&(this.value=t.src,t.alt&&this.field.altRef&&this.$emit("change",t.alt,{name:this.field.altRef.replace("%name%",this.name)}))}}};var P5=function(){var e=this,r=e._self._c;return r("div",[e.value?r("div",{staticClass:"uk-position-relative uk-transition-toggle yo-thumbnail"},[r("a",{staticClass:"uk-display-block",attrs:{href:"","aria-label":e.$t("Select Image")},on:{click:function(n){return n.preventDefault(),e.open.apply(null,arguments)}}},[r("img",{attrs:{src:e.$url(e.value),alt:""}})]),e._v(" "),r("div",{staticClass:"uk-transition-fade uk-position-cover yo-thumbnail-overlay uk-disabled"}),e._v(" "),r("div",{staticClass:"uk-transition-fade uk-position-top-right yo-thumbnail-badge uk-light"},[r("a",{staticClass:"uk-icon-link",attrs:{href:"",title:e.$t("Delete"),"uk-icon":"trash","uk-tooltip":"delay: 500","aria-label":e.$t("Delete")},on:{click:function(n){n.preventDefault(),e.value=""}}})])]):[r("a",{staticClass:"uk-placeholder uk-text-center uk-display-block uk-margin-remove",class:{"uk-disabled uk-text-muted":e.attributes.disabled},attrs:{href:""},on:{click:function(n){return n.preventDefault(),e.open.apply(null,arguments)}}},[r("img",{attrs:{alt:e.$t("Placeholder Image"),src:e.$url(`${e.$config.assets}/images/field-image.svg`),"uk-svg":""}}),e._v(" "),r("p",{staticClass:"uk-h6 uk-margin-small-top"},[e._v(e._s(e.$t("Select Image")))])])],e._v(" "),r("div",{staticClass:"uk-margin-small-top"},[r("input",e._b({directives:[{name:"model",rawName:"v-model.trim",value:e.value,expression:"value",modifiers:{trim:!0}}],staticClass:"uk-input",attrs:{type:"text",placeholder:"http://","aria-label":e.$t(e.label)},domProps:{value:e.value},on:{input:function(n){n.target.composing||(e.value=n.target.value.trim())},blur:function(n){return e.$forceUpdate()}}},"input",e.attributes,!1))])],2)},I5=[],L5=Q(N5,P5,I5,!1),R5=L5.exports;const D5={extends:Ze,computed:{showFile(){return this.field.filePicker!==!1},isVideo(){return fa(this.value)},isImage(){return yo(this.value)}},methods:{async open(t,e={}){this.select(await this.$trigger(`open${t}`,e,!0))},select(t){Sn(t)?this.value=t:_t(t)&&(this.value=t.src)},reset(){this.value=""}}};var M5=function(){var e=this,r=e._self._c;return r("div",[e.showFile&&(e.isImage||e.isVideo)?r("div",{staticClass:"uk-position-relative uk-transition-toggle yo-thumbnail uk-margin-small-bottom",attrs:{tabindex:"0"}},[r("a",{staticClass:"uk-display-block",attrs:{href:"","aria-label":e.$t("Pick link")},on:{click:function(n){return n.preventDefault(),e.open("MediaPicker",{type:"",photos:!1})}}},[e.isImage?r("img",{attrs:{src:e.$url(e.value),alt:""}}):r("video",{attrs:{src:e.$url(e.value),loop:"",muted:"",playsinline:"","uk-video":"hover"},domProps:{muted:!0}})]),e._v(" "),r("div",{staticClass:"uk-transition-fade uk-position-cover yo-thumbnail-overlay uk-disabled"}),e._v(" "),r("div",{staticClass:"uk-transition-fade uk-position-top-right yo-thumbnail-badge uk-light"},[r("a",{staticClass:"uk-icon-link",attrs:{title:e.$t("Delete"),href:"","uk-icon":"trash","uk-tooltip":"delay: 500","aria-label":e.$t("Delete")},on:{click:function(n){return n.preventDefault(),e.reset.apply(null,arguments)}}})])]):e._e(),e._v(" "),r("div",{staticClass:"uk-inline uk-width-1-1"},[r("div",{staticClass:"uk-position-center-right uk-position-small"},[r("ul",{staticClass:"uk-iconnav uk-flex-nowrap"},[r("li",[r("a",{staticClass:"uk-icon-link uk-preserve-width",attrs:{title:e.$t("Pick link"),href:"","uk-icon":"link","uk-tooltip":"delay: 500","aria-label":e.$t("Pick link")},on:{click:function(n){return n.preventDefault(),e.open("LinkPicker")}}})]),e._v(" "),e.showFile?r("li",[r("a",{staticClass:"uk-icon-link uk-preserve-width",attrs:{title:e.$t("Pick file"),href:"","uk-icon":"album","uk-tooltip":"delay: 500","aria-label":e.$t("Pick file")},on:{click:function(n){return n.preventDefault(),e.open("MediaPicker",{type:"",photos:!1})}}})]):e._e()])]),e._v(" "),r("input",e._b({directives:[{name:"model",rawName:"v-model.trim",value:e.value,expression:"value",modifiers:{trim:!0}}],staticClass:"uk-input yo-input-iconnav-right",attrs:{type:"text","aria-label":e.$t(e.label)},domProps:{value:e.value},on:{input:function(n){n.target.composing||(e.value=n.target.value.trim())},blur:function(n){return e.$forceUpdate()}}},"input",e.attributes,!1))])])},$5=[],F5=Q(D5,M5,$5,!1),B5=F5.exports;const H5={components:{LocationPicker:wL},extends:Ze};var U5=function(){var e=this,r=e._self._c;return r("LocationPicker",{model:{value:e.value,callback:function(n){e.value=n},expression:"value"}})},j5=[],W5=Q(H5,U5,j5,!1),G5=W5.exports;const z5={extends:Ze};var q5=function(){var e=this,r=e._self._c;return r("ul",{staticClass:"uk-nav uk-nav-default yo-sidebar-marginless"},e._l(e.field.items,function(n,a){return r("li",{key:a},[r("a",{attrs:{href:""},on:{click:function(o){return o.preventDefault(),e.$trigger("openPanel",a)}}},[e._v(e._s(e.$t(n)))])])}),0)},Y5=[],K5=Q(z5,q5,Y5,!1),X5=K5.exports;const V5={extends:Ze,inject:["Config"],data:()=>({clients:[],lists:[],error:!1}),computed:{apiKey(){return this.Config.values[`${this.field.provider}_api`]}},mounted(){this.load()},methods:{load(){this.apiKey&&Ue("theme/newsletter/list").post({settings:kr({name:this.field.provider},this.value)}).json(({lists:t,clients:e})=>{this.lists=t,this.clients=e,!this.value.list_id&&t.length&&(this.value.list_id=t[0].value),!this.value.client_id&&e.length&&(this.value.client_id=e[0].value)}).catch(t=>{this.error=t.json})}}};var Q5=function(){var e=this,r=e._self._c;return r("div",[r("p",{directives:[{name:"show",rawName:"v-show",value:!e.apiKey,expression:"!apiKey"}],staticClass:"uk-text uk-text-danger uk-margin-small"},[e._v(e._s(e.$t("Enter the API key in Settings > External Services.")))]),e._v(" "),r("p",{directives:[{name:"show",rawName:"v-show",value:e.error,expression:"error"}],staticClass:"uk-text uk-text-danger uk-margin-small"},[e._v(e._s(e.error))]),e._v(" "),r("select",e._b({directives:[{name:"show",rawName:"v-show",value:e.clients.length,expression:"clients.length"},{name:"model",rawName:"v-model",value:e.value.client_id,expression:"value.client_id"}],staticClass:"uk-select uk-margin-small-bottom",on:{change:[function(n){var a=Array.prototype.filter.call(n.target.options,function(o){return o.selected}).map(function(o){var c="_value"in o?o._value:o.value;return c});e.$set(e.value,"client_id",n.target.multiple?a:a[0])},e.load]}},"select",e.attributes,!1),e._l(e.clients,function(n){return r("option",{key:n.value,domProps:{value:n.value}},[e._v(e._s(n.text))])}),0),e._v(" "),r("select",e._b({directives:[{name:"show",rawName:"v-show",value:e.lists.length,expression:"lists.length"},{name:"model",rawName:"v-model",value:e.value.list_id,expression:"value.list_id"}],staticClass:"uk-select",on:{change:function(n){var a=Array.prototype.filter.call(n.target.options,function(o){return o.selected}).map(function(o){var c="_value"in o?o._value:o.value;return c});e.$set(e.value,"list_id",n.target.multiple?a:a[0])}}},"select",e.attributes,!1),e._l(e.lists,function(n){return r("option",{key:n.value,domProps:{value:n.value}},[e._v(e._s(n.text))])}),0),e._v(" "),r("p",{directives:[{name:"show",rawName:"v-show",value:e.lists.length,expression:"lists.length"}],staticClass:"uk-text-muted uk-margin-small"},[e._v(e._s(e.$t("Select the list to subscribe to.")))])])},J5=[],Z5=Q(V5,Q5,J5,!1),eH=Z5.exports;const tH={extends:Ze,computed:{mod(){return ke.toFloat(this.field.modifier||0)},val:{get(){let t=this.value;return ke.isString(t)&&([t]=t.match(/^\d+[e.]?\d*/)||[""]),ke.isNumeric(t)?ke.toFloat(t)+this.mod:t},set(t){this.value=ke.isNumeric(t)?ke.toFloat(t)-this.mod:t}}}};var rH=function(){var e=this,r=e._self._c;return r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.val,expression:"val"}],staticClass:"uk-input",attrs:{type:"number","aria-label":e.$t(e.label)},domProps:{value:e.val},on:{input:function(n){n.target.composing||(e.val=n.target.value)}}},"input",e.attributes,!1))},nH=[],iH=Q(tH,rH,nH,!1),ik=iH.exports;const aH={components:{Color:Kl},extends:Ze,data:()=>({stops:[]}),watch:{value:{handler(t=""){t!==this._prev&&(this.stops=t.split(/,(?![^(]*\))/).map(e=>e.match(/^(.*?)(?: (\d+)%)?$/).map(r=>r?.trim()||"").slice(1,3)))},immediate:!0}},methods:{add(t){const{stops:e}=this;e.splice(t,0,[""]),this.setStops(e)},remove(t){if(!this.value)return;const{stops:e}=this;e.splice(t,1,...e.length>1?[]:[[""]]),this.setStops(e)},setValue({target:{value:t}},e){const{stops:r}=this;r[e][0]=t.trim(),this.$set(r,e,r[e]),this.setStops(r)},setPosition({target:{value:t}},e){const{stops:r}=this;r[e][0]||(r[e][0]=""),r[e][1]=t.trim(),this.$set(r,e,r[e]),this.setStops(r)},setStops(t){return this.value=this._prev=t.map(([e,r])=>e?`${e}${r&&!isNaN(r)?` ${r}%`:""}`:"").join(",")}}};var sH=function(){var e=this,r=e._self._c;return r("div",{staticClass:"yo-parallax-stops"},[r("div",{staticClass:"yo-sidebar-grid uk-child-width-1-2 uk-grid uk-grid-medium uk-flex-nowrap"},[r("div",[r("h3",{staticClass:"yo-sidebar-subheading"},[e._v(e._s(e.$t(e.field.text||"Property")))])]),e._v(" "),r("div",[r("h3",{staticClass:"yo-sidebar-subheading"},[e._v(e._s(e.$t("Position")))])])]),e._v(" "),e._l(e.stops,function([n,a],o){return r("div",{key:`${e.stops.length}-${o}`,staticClass:"yo-parallax-stop uk-visible-toggle uk-margin-small"},[r("div",{staticClass:"uk-child-width-1-2 uk-grid uk-grid-medium"},[r("div",[e.field.input!=="color"?r("div",{staticClass:"uk-grid uk-grid-small uk-flex-middle"},[r("div",{staticClass:"uk-width-expand"},[r("input",e._b({staticClass:"uk-range",attrs:{type:"range"},domProps:{value:n},on:{input:function(c){return e.setValue(c,o)}}},"input",e.attributes,!1))]),e._v(" "),r("div",{staticClass:"uk-width-auto"},[r("input",e._b({staticClass:"uk-input uk-form-width-xsmall",attrs:{type:"text",pattern:"^-?[0-9]"},domProps:{value:n},on:{input:function(c){return e.setValue(c,o)}}},"input",e.attributes,!1))])]):r("Color",{attrs:{field:{name:"input",type:"color",disableAlpha:!0,disableSaturation:!0,disableFields:!0,allowEmpty:!1},values:{input:n}},on:{change:function(c){return e.setValue({target:{value:c||""}},o)}}})],1),e._v(" "),r("div",[r("div",{staticClass:"uk-grid uk-grid-small uk-flex-middle"},[r("div",{staticClass:"uk-width-expand"},[r("input",{staticClass:"uk-range",attrs:{type:"range",min:"0",max:"100",step:"1"},domProps:{value:a},on:{input:function(c){return e.setPosition(c,o)}}})]),e._v(" "),r("div",{staticClass:"uk-width-auto"},[r("input",{staticClass:"uk-input uk-form-width-xsmall",attrs:{type:"number",min:"0",max:"100",step:"1",placeholder:"%"},domProps:{value:a},on:{input:function(c){return e.setPosition(c,o)}}})])])])]),e._v(" "),r("div",{staticClass:"yo-parallax-stop-delete uk-invisible-hover"},[r("a",{class:["yo-builder-icon-delete",{"uk-disabled":!e.value}],attrs:{href:"",title:e.$t("Delete animation stop"),tabindex:e.value?!1:-1,"uk-tooltip":"delay: 1000; pos: left","aria-label":e.$t("Delete animation stop")},on:{click:function(c){return c.preventDefault(),e.remove(o)}}})]),e._v(" "),r("a",{staticClass:"yo-parallax-stop-add yo-builder-icon-add-right uk-invisible-hover",attrs:{href:"",title:e.$t("Add animation stop"),"uk-tooltip":"delay: 1000; pos: left","aria-label":e.$t("Add animation stop")},on:{click:function(c){return c.preventDefault(),e.add(o+1)}}})])})],2)},oH=[],uH=Q(aH,sH,oH,!1),lH=uH.exports;const cH={extends:Ze};var fH=function(){var e=this,r=e._self._c;return r("div",{staticClass:"uk-input yo-input-locked"},[e._v(e._s(e.field.placeholder))])},dH=[],hH=Q(cH,fH,dH,!1),pH=hH.exports;const mH={extends:Ze};var vH=function(){var e=this,r=e._self._c;return r("div",e._l(e.filterOptions(e.options),function(n){return r("div",{key:n.value},[r("label",[r("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"uk-radio",attrs:{name:e.name,disabled:e.attributes.disabled,type:"radio","aria-label":e.$t(n.text)},domProps:{value:n.value,checked:e._q(e.value,n.value)},on:{change:function(a){e.value=n.value}}}),e._v(` `+e._s(e.$t(n.text))+` `)])])}),0)},gH=[],_H=Q(mH,vH,gH,!1),bH=_H.exports;const yH={extends:Ze};var kH=function(){var e=this,r=e._self._c;return r("div",{staticClass:"uk-grid-small uk-flex-middle",attrs:{"uk-grid":""}},[r("div",{staticClass:"uk-width-expand"},[r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"uk-range",attrs:{type:"range","aria-label":e.$t(e.label)},domProps:{value:e.value},on:{__r:function(n){e.value=n.target.value}}},"input",e.attributes,!1))]),e._v(" "),r("div",{staticClass:"uk-width-auto"},[(e.attributes.type||"text")==="checkbox"?r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"uk-input uk-form-width-xsmall",attrs:{"aria-label":e.$t(e.label),type:"checkbox"},domProps:{checked:Array.isArray(e.value)?e._i(e.value,null)>-1:e.value},on:{change:function(n){var a=e.value,o=n.target,c=!!o.checked;if(Array.isArray(a)){var d=null,p=e._i(a,d);o.checked?p<0&&(e.value=a.concat([d])):p>-1&&(e.value=a.slice(0,p).concat(a.slice(p+1)))}else e.value=c}}},"input",e.attributes,!1)):(e.attributes.type||"text")==="radio"?r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"uk-input uk-form-width-xsmall",attrs:{"aria-label":e.$t(e.label),type:"radio"},domProps:{checked:e._q(e.value,null)},on:{change:function(n){e.value=null}}},"input",e.attributes,!1)):r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"uk-input uk-form-width-xsmall",attrs:{"aria-label":e.$t(e.label),type:e.attributes.type||"text"},domProps:{value:e.value},on:{input:function(n){n.target.composing||(e.value=n.target.value)}}},"input",e.attributes,!1))])])},EH=[],TH=Q(yH,kH,EH,!1),CH=TH.exports;const wH={extends:Ze,computed:{selected:{get(){return dr(this.value)?this.attributes.multiple?[]:"":this.value},set(t){this.value=t}},optionValues(){return ak(this.filterOptions(this.options)).map(({value:t})=>t)},invalid(){return!dr(this.value)&&[].concat(this.selected).some(t=>!this.optionValues.includes(t))}},created(){dr(this.value)&&!dr(this.field.defaultIndex)&&(this.value=this.optionValues[this.field.defaultIndex])},methods:{filterOptions(t=[]){if(!Array.isArray(t))return Ze.methods.filterOptions.call(this,t);let e=[];for(const r of t)if(r.evaluate){const n=this.evaluate(r.evaluate);_t(n)&&(e=e.concat(n))}else e.push(r);return e},evaluate(t){return op.methods.evaluate.call(this,t,{...this.values,api:ue})}}};function ak(t=[]){return t.reduce((e,r)=>e.concat(r.label?ak(r.options):r),[])}var SH=function(){var e=this,r=e._self._c;return r("select",e._b({directives:[{name:"model",rawName:"v-model",value:e.selected,expression:"selected"}],class:["uk-select",e.attributes.class,{"uk-form-danger":e.invalid}],on:{change:function(n){var a=Array.prototype.filter.call(n.target.options,function(o){return o.selected}).map(function(o){var c="_value"in o?o._value:o.value;return c});e.selected=n.target.multiple?a:a[0]}}},"select",e.attributes,!1),[e._l(e.filterOptions(e.options),function(n,a){return[n.divider?r("hr",{key:`${a}-hr-${n.divider}`}):e._e(),e._v(" "),n.label?r("optgroup",{key:`${a}-label-${n.label}`,attrs:{label:n.label}},e._l(n.options,function(o){return r("option",{key:o.value,domProps:{value:o.value}},[e._v(e._s(e.$t(o.text)))])}),0):r("option",{key:`${a}-value-${n.value}`,domProps:{value:n.value}},[e._v(e._s(e.$t(n.text)))])]})],2)},xH=[],AH=Q(wH,SH,xH,!1),Uo=AH.exports;const OH={extends:Uo,watch:{selected(){ke.trigger(this.$el,"change")}}};var NH=function(){var e=this,r=e._self._c;return r("div",{staticClass:"uk-width-1-1",attrs:{"uk-form-custom":"target: true"}},[r("select",{directives:[{name:"model",rawName:"v-model",value:e.selected,expression:"selected"}],on:{change:function(n){var a=Array.prototype.filter.call(n.target.options,function(o){return o.selected}).map(function(o){var c="_value"in o?o._value:o.value;return c});e.selected=n.target.multiple?a:a[0]}}},e._l(e.filterOptions(e.options),function({value:n,text:a}){return r("option",{key:n,domProps:{value:n}},[e._v(e._s(e.$t(a)))])}),0),e._v(" "),r("span",e._b({staticClass:"uk-select uk-text-truncate"},"span",e.attributes,!1))])},PH=[],IH=Q(OH,NH,PH,!1),LH=IH.exports;const RH={extends:Ze,computed:{selected(){return this.options[this.value||""]||{}}},methods:{async select(){const t=await Dt(CM,{svgs:this.options,title:this.field.title||this.label},{width:"2xlarge"});dr(t)||(this.value=t)}}};var DH=function(){var e=this,r=e._self._c;return r("div",[r("div",{staticClass:"uk-card uk-card-body uk-card-small uk-card-hover yo-panel uk-text-center yo-select-img",class:{"uk-disabled":e.attributes.disabled}},[r("img",{attrs:{src:e.$url(e.selected.src),alt:e.selected.label,"uk-svg":""}}),e._v(" "),r("p",{staticClass:"uk-margin-small uk-margin-remove-bottom"},[e._v(e._s(e.selected.label))]),e._v(" "),r("a",{staticClass:"uk-position-cover",attrs:{href:"","aria-label":e.field.title},on:{click:function(n){return n.preventDefault(),e.select()}}})])])},MH=[],$H=Q(RH,DH,MH,!1),FH=$H.exports;const BH={extends:Ze};var HH=function(){var e=this,r=e._self._c;return{type:"text",...e.attributes}.type==="checkbox"?r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"uk-input",attrs:{"aria-label":e.label,type:"checkbox"},domProps:{checked:Array.isArray(e.value)?e._i(e.value,null)>-1:e.value},on:{change:function(n){var a=e.value,o=n.target,c=!!o.checked;if(Array.isArray(a)){var d=null,p=e._i(a,d);o.checked?p<0&&(e.value=a.concat([d])):p>-1&&(e.value=a.slice(0,p).concat(a.slice(p+1)))}else e.value=c}}},"input",{type:"text",...e.attributes},!1)):{type:"text",...e.attributes}.type==="radio"?r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"uk-input",attrs:{"aria-label":e.label,type:"radio"},domProps:{checked:e._q(e.value,null)},on:{change:function(n){e.value=null}}},"input",{type:"text",...e.attributes},!1)):r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"uk-input",attrs:{"aria-label":e.label,type:{type:"text",...e.attributes}.type},domProps:{value:e.value},on:{input:function(n){n.target.composing||(e.value=n.target.value)}}},"input",{type:"text",...e.attributes},!1))},UH=[],jH=Q(BH,HH,UH,!1),WH=jH.exports;const GH={extends:Ze};var zH=function(){var e=this,r=e._self._c;return r("textarea",e._b({directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"uk-textarea",attrs:{"aria-label":e.$t(e.label)},domProps:{value:e.value},on:{input:function(n){n.target.composing||(e.value=n.target.value)}}},"textarea",e.attributes,!1))},qH=[],YH=Q(GH,zH,qH,!1),KH=YH.exports,XH={extends:Kl,methods:{open(){ds({functional:!0,render:t=>t(nv,{props:{value:this.value,fields:["offsetX","offsetY","blur","color"]},on:{input:e=>this.value=e}})},{},this.$el,{boundaryX:this.$el.closest(".yo-sidebar-fields > *")||this.$el})}}};const VH={extends:Ze,created(){this.$config=ue.config},methods:{isIframeVideo:LN,async open(){const t=await this.$trigger("openMediaPicker",{type:"video"});dr(t)||(this.value=t.src)},iframeSrc(t){if(K0(t)){const[,e,r]=t.match(/\/\/(?:.*?youtube(-nocookie)?\..*?(?:[?&]v=|\/shorts\/)|youtu\.be\/)([\w-]{11})[&?]?/);return`https://www.youtube${e||""}.com/embed/${r}${sk({rel:0,loop:0,autoplay:0,controls:0,showinfo:0,iv_load_policy:3,modestbranding:1,wmode:"transparent",playsinline:0,disablekb:1})}`}if(X0(t)){const[,e]=t.match(/\/\/.*?vimeo\.[a-z]+\/(\d+)[&?]?(.*)?/);return`https://player.vimeo.com/video/${e}${sk({keyboard:0,loop:0,autoplay:0,autopause:1,controls:0,title:0,byline:0,setVolume:0})}`}}}};function sk(t){const e=Object.keys(t);return e.length?`?${e.map(r=>`${r}=${t[r]}`).join("&")}`:""}var QH=function(){var e=this,r=e._self._c;return r("div",[e.value?r("div",{staticClass:"uk-position-relative uk-transition-toggle yo-thumbnail"},[r("a",{staticClass:"uk-display-block",attrs:{href:"","aria-label":e.$t("Select Video")},on:{click:function(n){return n.preventDefault(),e.open.apply(null,arguments)}}},[e.isIframeVideo(e.value)?r("iframe",{attrs:{src:e.iframeSrc(e.value),width:"1920",height:"1080","uk-responsive":""}}):r("video",{attrs:{src:e.$url(e.value),loop:"",muted:"",playsinline:"","uk-video":"hover"},domProps:{muted:!0}})]),e._v(" "),r("div",{staticClass:"uk-transition-fade uk-position-cover yo-thumbnail-overlay uk-disabled"}),e._v(" "),r("div",{staticClass:"uk-transition-fade uk-position-top-right yo-thumbnail-badge uk-light"},[r("a",{staticClass:"uk-icon-link",attrs:{href:"",title:e.$t("Delete"),"uk-icon":"trash","uk-tooltip":"delay: 500","aria-label":e.$t("Delete")},on:{click:function(n){n.preventDefault(),e.value=""}}})])]):[r("a",{staticClass:"uk-placeholder uk-text-center uk-display-block uk-margin-remove",class:{"uk-disabled uk-text-muted":e.attributes.disabled},attrs:{href:""},on:{click:function(n){return n.preventDefault(),e.open.apply(null,arguments)}}},[r("img",{attrs:{alt:e.$t("Placeholder Video"),src:e.$url(`${e.$config.assets}/images/field-image.svg`),"uk-svg":""}}),e._v(" "),r("p",{staticClass:"uk-h6 uk-margin-small-top"},[e._v(e._s(e.$t("Select Video")))])])],e._v(" "),r("div",{staticClass:"uk-margin-small-top"},[r("input",e._b({directives:[{name:"model",rawName:"v-model.trim",value:e.value,expression:"value",modifiers:{trim:!0}}],staticClass:"uk-input",attrs:{type:"text",placeholder:"http://","aria-label":e.$t(e.field.label)},domProps:{value:e.value},on:{input:function(n){n.target.composing||(e.value=n.target.value.trim())},blur:function(n){return e.$forceUpdate()}}},"input",e.attributes,!1))])],2)},JH=[],ZH=Q(VH,QH,JH,!1),e9=ZH.exports,t9=Object.freeze({__proto__:null,FieldBoxshadow:kF,FieldButton:SF,FieldButtonPanel:PF,FieldCache:MF,FieldCheckbox:UF,FieldChildProp:jF,FieldChildren:jB,FieldColor:Kl,FieldContentItems:ZB,FieldDataList:i5,FieldDatetime:l5,FieldEditor:p5,FieldFont:b5,FieldGradient:C5,FieldIcon:O5,FieldImage:R5,FieldLink:B5,FieldLocation:G5,FieldMenu:X5,FieldNewsletterLists:eH,FieldNumber:ik,FieldParallaxStops:lH,FieldPlaceholder:pH,FieldRadio:bH,FieldRange:CH,FieldSelect:Uo,FieldSelectCustom:LH,FieldSelectImg:FH,FieldText:WH,FieldTextarea:KH,FieldTextshadow:XH,FieldVideo:e9}),Vr={components:{...t9},extends:op};const r9={extends:Vr,methods:{merge:kr}};var n9=function(){var e=this,r=e._self._c;return r("div",{staticClass:"uk-panel"},e._l(e.fields,function(n){return r("div",{directives:[{name:"show",rawName:"v-show",value:e.evaluate(n.show),expression:"evaluate(field.show)"}],key:n.name,staticClass:"uk-flex uk-flex-middle uk-flex-wrap uk-margin-small"},[r("div",{staticClass:"uk-width-expand uk-text-truncate"},[n.description?r("span",{attrs:{title:n.description,"uk-tooltip":"delay: 300; pos: top-left"}},[e._v(e._s(e.$t(n.label)))]):r("span",[e._v(e._s(e.$t(n.label)))])]),e._v(" "),r("div",{staticClass:"uk-width-medium"},[r(n.component,{tag:"component",attrs:{values:e.values,field:e.merge(n,{attrs:{class:"yo-form-medium"}})},on:{change:e.change}})],1)])}),0)},i9=[],a9=Q(r9,n9,i9,!1),s9=a9.exports;const o9={name:"FieldsGrid",widthClass(t,e){const r=t?.split(",")||[],n=r.at(e in r?e:-1)?.trim();return n?`uk-width-${n}`:""},prepareField(t,e){return t.attrs?.class?.includes("yo-form-medium")&&(e=kr({},e,{attrs:{class:[e.attrs?.class,"yo-form-medium"]}})),e}};var u9=function(e,r){return e("div",{staticClass:"yo-sidebar-grid uk-grid uk-flex-nowrap",class:r.props.field.attrs?.class?.includes("yo-form-medium")?"uk-grid-small uk-margin-remove-bottom":`uk-grid-${r.props.field.gap||"medium"}`},r._l(r.parent.prepare(r.props.field.fields),function(n,a){return e("div",{directives:[{name:"show",rawName:"v-show",value:r.parent.evaluate(n.show),expression:"parent.evaluate(field.show)"}],key:n.name,class:r.$options.widthClass(r.props.field.width,a)},[n.buttons?[e("div",{staticClass:"uk-flex uk-flex-middle uk-flex-right"},[n.label?e("div",{staticClass:"uk-width-expand"},[e("h3",{staticClass:"yo-sidebar-subheading uk-margin-remove"},[r._v(r._s(r.parent.$t(n.label)))])]):r._e(),r._v(" "),n.buttons?e("div",{directives:[{name:"show",rawName:"v-show",value:n.buttons.some(o=>r.parent.evaluate(o.show)),expression:"field.buttons.some((button) => parent.evaluate(button.show))"}],staticClass:"uk-width-auto"},[e("ul",{staticClass:"uk-subnav uk-margin-remove"},r._l(n.buttons,function({label:o,action:c,show:d}){return e("li",{directives:[{name:"show",rawName:"v-show",value:r.parent.evaluate(d),expression:"parent.evaluate(show)"}],key:c},[e("button",{staticClass:"uk-button uk-button-link",attrs:{disabled:n.enable&&!r.parent.evaluate(n.enable),type:"button"},on:{click:function(p){return r.parent.$trigger(c,[n,p])}}},[r._v(r._s(o))])])}),0)]):r._e()])]:n.label?e("h3",{staticClass:"yo-sidebar-subheading"},[r._v(r._s(r.parent.$t(n.label)))]):r._e(),r._v(" "),n.type!=="description"?[["radio","checkbox","grid","parallax-stops"].includes(n.type)?e(n.component,{tag:"component",attrs:{field:r.$options.prepareField(r.props.field,n),values:r.props.values},on:{change:r.parent.change}}):e("div",{staticClass:"uk-margin-small"},[e(n.component,{tag:"component",attrs:{field:r.$options.prepareField(r.props.field,n),values:r.props.values},on:{change:r.parent.change}})],1)]:r._e(),r._v(" "),n.description?e("p",{staticClass:"uk-text-muted uk-margin-small",domProps:{innerHTML:r._s(r.parent.$t(n.description))}}):r._e()],2)}),0)},l9=[],c9=Q(o9,u9,l9,!0),f9=c9.exports;const d9={name:"FieldsGroup",prepareField(t){return kr({},t,{attrs:{class:[t.attrs?.class,"yo-form-medium"]}})}};var h9=function(e,r){return e("div",{staticClass:"uk-margin-small"},r._l(r.parent.prepare(r.props.field.fields),function(n){return e("div",{directives:[{name:"show",rawName:"v-show",value:r.parent.evaluate(n.show),expression:"parent.evaluate(field.show)"}],key:n.name,staticClass:"uk-flex uk-flex-middle uk-margin-small",class:{"uk-flex-wrap":n.buttons}},[n.buttons?e("div",{directives:[{name:"show",rawName:"v-show",value:n.buttons.some(a=>r.parent.evaluate(a.show)),expression:"field.buttons.some((button) => parent.evaluate(button.show))"}],staticClass:"uk-width-1-1 uk-flex uk-flex-right uk-margin-small-bottom"},[e("ul",{staticClass:"uk-subnav uk-margin-remove"},r._l(n.buttons,function({label:a,action:o,show:c}){return e("li",{directives:[{name:"show",rawName:"v-show",value:r.parent.evaluate(c),expression:"parent.evaluate(show)"}],key:o},[e("button",{staticClass:"uk-button uk-button-link",attrs:{disabled:n.enable&&!r.parent.evaluate(n.enable),type:"button"},on:{click:function(d){return r.parent.$trigger(o,[n,d])}}},[r._v(r._s(a))])])}),0)]):r._e(),r._v(" "),e("div",{staticClass:"uk-width-expand uk-text-truncate"},[n.description?e("span",{attrs:{title:n.description,"uk-tooltip":"delay: 300; pos: top-left"}},[r._v(r._s(r.parent.$t(n.label)))]):e("span",[r._v(r._s(r.parent.$t(n.label)))])]),r._v(" "),e("div",{staticClass:"uk-width-medium"},[e(n.component,{tag:"component",attrs:{values:r.props.values,field:r.$options.prepareField(n)},on:{change:r.parent.change}})],1)])}),0)},p9=[],m9=Q(d9,h9,p9,!0),v9=m9.exports;const g9={directives:{Sortable:zh},extends:Ze,computed:{items:{get(){return dr(this.value)||!Array.isArray(this.value)?[]:this.value},set(t){this.value=t}}},methods:{add(){const t={};this.items=[...this.items,t],this.edit(t)},edit(t){const{name:e,fields:r}=this.field,n=this.items.indexOf(t),a=()=>this.items=this.items.with(n,t);this.$trigger("openPanel",{name:`fields-item-panel-${e}`,title:this.$t("Edit Item"),component:{name:"FieldsItemPanel",extends:Vr,created(){this.$on("change",a)},render:o=>o(I1,{props:{field:{fields:r}}},[])},props:{values:t}})},copy(t){const e=this.items.indexOf(t),r=[...this.items];~e&&r.splice(e,0,{...this.items[e]}),this.items=r},remove(t){const e=this.items.indexOf(t),r=[...this.items];~e&&r.splice(e,1),this.items=r},move(t,e,r,n){const a=[...this.items],o=a.splice(n,1);a.splice(r,0,...o),this.items=a}}};var _9=function(){var e=this,r=e._self._c;return r("div",[e.items.length?r("ul",{directives:[{name:"sortable",rawName:"v-sortable",value:{group:e.name},expression:"{ group: name }"}],staticClass:"uk-nav uk-nav-default yo-sidebar-marginless yo-nav-sortable yo-nav-iconnav uk-margin",attrs:{"cls-custom":"yo-nav-sortable-drag"}},e._l(e.items,function(n,a){return r("li",{key:`${a}:${n.link}`,staticClass:"uk-visible-toggle",attrs:{tabindex:"-1"}},[r("a",{attrs:{href:""},on:{click:function(o){return o.preventDefault(),e.edit(n)}}},[n.image?r("img",{staticClass:"yo-nav-media",attrs:{src:e.$url(n.image),alt:"",loading:"lazy"}}):e._e(),e._v(" "),r("span",{staticClass:"uk-text-truncate"},[e._v(e._s(n.link||e.$t("Item")))])]),e._v(" "),r("div",{staticClass:"uk-invisible-hover uk-position-center-right uk-position-medium"},[r("ul",{staticClass:"uk-iconnav uk-flex-nowrap"},[r("li",[r("a",{staticClass:"uk-icon-link uk-preserve-width",attrs:{href:"",title:e.$t("Copy"),"uk-icon":"copy","uk-tooltip":"delay: 500","aria-label":e.$t("Copy")},on:{click:function(o){return o.preventDefault(),e.copy(n)}}})]),e._v(" "),r("li",[r("a",{staticClass:"uk-icon-link uk-preserve-width",attrs:{href:"",title:e.$t("Delete"),"uk-icon":"trash","uk-tooltip":"delay: 500","aria-label":e.$t("Delete")},on:{click:function(o){return o.preventDefault(),e.remove(n)}}})])])])])}),0):r("p",{staticClass:"uk-text-muted"},[e._v(e._s(e.$t("No items yet.")))]),e._v(" "),r("div",{staticClass:"uk-grid uk-grid-small uk-child-width-auto"},[r("div",[r("button",{staticClass:"uk-button uk-button-default",attrs:{type:"button"},on:{click:function(n){return e.add()}}},[e._v(e._s(e.$t("Add Item")))])])])])},b9=[],y9=Q(g9,_9,b9,!1),k9=y9.exports;const{evaluate:E9,prepare:T9}=Vr.extends.methods,C9={name:"FieldsPanel",components:{FieldGrid:f9,FieldGroup:v9,FieldFields:I1,FieldItemPanel:k9},extends:Vr,props:{name:{type:String,default:"default"},panel:{type:Object,required:!0}},data:()=>({index:0,transitionIndex:0}),computed:{fieldset(){const{fieldset:t={},fields:e}=this.panel;return t[this.name]||{fields:e}}},watch:{index(t,e){this.transitionIndex=e}},methods:{evaluate(t,e=this.values){if(dr(t))return!0;const r=[t,e];return this.$trigger("evaluateExpression",r),E9.call(this,...r)},prepare(t=this.config,e=this.prefix){const r=Array.isArray(t);let n=[];for(let[a,o]of Object.entries(t)){if(Sn(o)){if(!(o in this.panel.fields))continue;o={name:o,...this.panel.fields[o]}}else o={...o};!o.name&&!r?o.name=a:!o.name&&o.label&&(o.name=o.label),n.push(o)}return n=T9.call(this,n,e),this.$trigger("prepareFields",[n]),n},tabStyle(t){return{width:"100%",left:t<this.index?"-100%":t===this.index?"0":"100%",visibility:[this.index,this.transitionIndex].includes(t)?"visible":"hidden"}}}};var w9=function(){var e=this,r=e._self._c;return e.fieldset.type==="tabs"?r("div",[r("div",{staticClass:"uk-grid uk-grid-small uk-flex-middle yo-sidebar-tabs"},[r("div",{staticClass:"uk-width-expand"},[r("h2",{staticClass:"yo-sidebar-heading"},[e._v(e._s(e.$t(e.panel.title)))])]),e._v(" "),r("div",{staticClass:"uk-width-auto"},[r("ul",{staticClass:"uk-subnav"},e._l(e.fieldset.fields,function({title:n},a){return r("li",{key:a,class:{"uk-active":e.index===a}},[r("a",{attrs:{href:""},on:{click:function(o){o.preventDefault(),e.index=a}}},[e._v(e._s(e.$t(n)))])])}),0)])]),e._v(" "),r("div",{staticClass:"yo-sidebar-tabs-content"},e._l(e.fieldset.fields,function(n,a){return r("FieldFields",{key:a,staticClass:"yo-sidebar-tabs-section",style:e.tabStyle(a),attrs:{field:n},nativeOn:{transitionend:function(o){if(o.target!==o.currentTarget)return null;e.transitionIndex=e.index}}})}),1)]):r("FieldFields",{attrs:{field:e.fieldset}})},S9=[],x9=Q(C9,w9,S9,!1),Wr=x9.exports;const A9={__name:"HelpModal",props:{help:[Array,Object]},setup(t){const e=t,{i18n:r}=oe,n=Ae(()=>Array.isArray(e.help)?{"":e.help}:e.help);return{__sfc:!0,i18n:r,props:e,groups:n,toUrl:o=>new URL(o,ue.customizer.help)}}};var O9=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",[r("div",{staticClass:"uk-modal-header uk-flex uk-flex-middle uk-flex-between"},[r("h2",{staticClass:"uk-modal-title uk-margin-remove",domProps:{innerHTML:e._s(n.i18n.t("YOOtheme Help"))}}),e._v(" "),r("a",{staticClass:"uk-button uk-button-primary",attrs:{href:"https://yootheme.com/support",target:"_blank"}},[e._v(e._s(n.i18n.t("Support Center")))])]),e._v(" "),r("div",{staticClass:"uk-modal-body",attrs:{"uk-overflow-auto":""}},e._l(n.groups,function(a,o){return r("table",{key:o,staticClass:"uk-table uk-table-divider uk-table-hover"},[r("thead",[r("tr",[o?r("th",{staticClass:"uk-table-expand"},[e._v(e._s(n.i18n.t(o)))]):r("th",{staticClass:"uk-table-expand"},[e._v(e._s(n.i18n.t("Videos")))]),e._v(" "),r("th",{staticClass:"uk-table-shrink uk-text-right uk-text-nowrap"},[e._v(e._s(n.i18n.t("Run Time")))]),e._v(" "),r("th",{staticClass:"uk-table-shrink uk-text-center"},[e._v(e._s(n.i18n.t("Documentation")))]),e._v(" "),r("th",{staticClass:"uk-table-shrink uk-text-center"},[e._v(e._s(n.i18n.t("Support")))])])]),e._v(" "),r("tbody",e._l(a,function(c){return r("tr",{key:c.src},[r("td",{staticClass:"uk-table-link",attrs:{"uk-lightbox":"video-autoplay: true"}},[r("a",{staticClass:"uk-link-heading",attrs:{href:n.toUrl(c.src)}},[r("span",{staticClass:"uk-preserve-width uk-margin-small-right",attrs:{"uk-icon":"play-circle"}}),e._v(" "),r("span",{staticClass:"uk-text-middle"},[e._v(e._s(n.i18n.t(c.title)))])])]),e._v(" "),r("td",{staticClass:"uk-text-right uk-text-nowrap"},[e._v(e._s(n.i18n.t(c.duration)))]),e._v(" "),r("td",{staticClass:"uk-text-center"},[r("a",{staticClass:"uk-button uk-button-default uk-button-small",attrs:{href:n.toUrl(c.documentation),target:"_blank"}},[e._v(e._s(n.i18n.t("Read More")))])]),e._v(" "),r("td",{staticClass:"uk-text-center"},[r("a",{staticClass:"uk-button uk-button-default uk-button-small",attrs:{href:n.toUrl(c.support),target:"_blank"}},[e._v(e._s(n.i18n.t("Search")))])])])}),0)])}),0)])},N9=[],P9=Q(A9,O9,N9,!1),I9=P9.exports;const L9={__name:"Panel",props:{config:{type:Object,required:!0}},setup(t){const e=t,{i18n:r}=oe,{trigger:n}=Me();return{__sfc:!0,i18n:r,trigger:n,props:e,api:ue}}};var R9=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",{staticClass:"yo-sidebar-section",class:n.props.config.cls},[n.props.config.heading!==!1?[n.props.config.help?r("div",{staticClass:"uk-grid uk-grid-small uk-margin-medium"},[r("div",{staticClass:"uk-width-expand"},[r("h2",{staticClass:"yo-sidebar-heading"},[e._v(e._s(n.i18n.t(n.props.config.title??"")))])]),e._v(" "),r("div",{staticClass:"uk-width-auto"},[r("button",{staticClass:"uk-icon uk-icon-link",attrs:{type:"button","aria-label":n.i18n.t("Help")},on:{click:function(a){return n.trigger("openHelp",[n.props.config.help])}}},[r("img",{attrs:{"uk-svg":`${n.api.config.assets}/images/help.svg`,"aria-hidden":"true"}})])])]):r("h2",{staticClass:"yo-sidebar-heading"},[e._v(e._s(n.i18n.t(n.props.config.title??"")))])]:e._e(),e._v(" "),e._t("default",function(){return[e._v("Empty panel")]})],2)},D9=[],M9=Q(L9,R9,D9,!1),$9=M9.exports;function F9(t,e,r,n){const a=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=(o,c)=>Promise.resolve().then(a.bind(null,c)).then(o.bind(null,c))),e==="after"&&(n=(o,c)=>{let d;return Promise.resolve().then(o.bind(null,c)).then(p=>(d=p,a(d,c))).then(()=>d)}),e==="filter"&&(n=(o,c)=>Promise.resolve().then(o.bind(null,c)).then(d=>a(d,c))),e==="error"&&(n=(o,c)=>Promise.resolve().then(o.bind(null,c)).catch(d=>a(d,c))),t.registry[r].push({kind:e,orig:a,hook:n})}function ok(t,e,r,n={}){if(typeof r!="function")throw new Error("Method for hook must be a function");return Array.isArray(e)?e.toReversed().reduce((a,o)=>ok.bind(null,t,o,a,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((a,o)=>o.hook.bind(null,a,n),r)():r(n))}function B9(t,e,r,n={}){const a=Array.isArray(e)?e.toReversed():[e];if(typeof r!="function")throw new Error("Method for hook must be a function");for(const o of a)t.registry[o]&&(r=H9(r,t.registry[o]));return r(n)}function H9(t,e){const r=[];return e.filter(n=>{if(n.kind!=="error")return!0;r.push(n)}).concat(r).reduce(U9,t)}function U9(t,e){return e.kind==="before"?r=>(e.orig(r),t(r)):e.kind==="after"?r=>{const n=t(r);return e.orig(n,r),n}:e.kind==="filter"?r=>e.orig(t(r),r):e.kind==="wrap"?r=>e.orig(t,r):r=>{let n;try{n=t(r)}catch(a){n=e.orig(a,r)}return n}}function j9(t,e,r){if(!t.registry[e])return;const n=t.registry[e].map(a=>a.orig).indexOf(r);n!==-1&&t.registry[e].splice(n,1)}const Si=W9();function uk(t){const e=["before","after","filter","wrap","error"];for(const[r,n]of Object.entries(t)){if(!e.includes(r))throw new Error(`Invalid hook kind: ${r}`);for(const[a,o]of Object.entries(n))Si[r](a,o)}return Si}function W9(t){const e=G9(),r={...t,...e};function n(c,d,p){return o({name:c,method:d,options:p}),e.call(c,d,p)}function a(c,d,p){return o({name:c,method:d,options:p}),e.callSync(c,d,p)}function o(c){if(typeof r.log=="function")for(const d of[].concat(c.name))r.log({...c,name:d})}return Object.assign(r,{call:n,callSync:a,map:(c,d)=>lk(n,c,d),mapSync:(c,d)=>lk(a,c,d)})}function G9(){const t={registry:{}};return z9({state:t},t)}function z9(t,e){const r=Function.bind,n=r.bind(r);return t.call=ok.bind(null,e),t.callSync=B9.bind(null,e),t.remove=j9.bind(null,e),["before","after","filter","wrap","error"].forEach(a=>{t[a]=n(F9,null).apply(null,[e,a])}),t}function lk(t,e,r){return Object.entries(r).reduce((n,[a,o])=>({...n,[a]:function(...c){const d=e?`${e}.${a}`:a;if(c.length>1)throw new Error(`Hook ${d} does not support multiple arguments.`);return t(d,o.bind(this),...c)}}),{})}const ck=t=>t.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">");function fk(t,...e){if(typeof t=="string")return ck(t);let r=t[0];for(const[n,a]of e.entries())r=r+ck(String(a))+t[n+1];return r}const q9=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),xt="\uFFFD";var I;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(I||(I={}));const Ir={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function dk(t){return t>=55296&&t<=57343}function Y9(t){return t>=56320&&t<=57343}function K9(t,e){return(t-55296)*1024+9216+e}function hk(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function pk(t){return t>=64976&&t<=65007||q9.has(t)}var se;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",t.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",t.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",t.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",t.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",t.missingDoctypePublicIdentifier="missing-doctype-public-identifier",t.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",t.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",t.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",t.cdataInHtmlContent="cdata-in-html-content",t.incorrectlyOpenedComment="incorrectly-opened-comment",t.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",t.eofInDoctype="eof-in-doctype",t.nestedComment="nested-comment",t.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",t.eofInComment="eof-in-comment",t.incorrectlyClosedComment="incorrectly-closed-comment",t.eofInCdata="eof-in-cdata",t.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",t.nullCharacterReference="null-character-reference",t.surrogateCharacterReference="surrogate-character-reference",t.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",t.controlCharacterReference="control-character-reference",t.noncharacterCharacterReference="noncharacter-character-reference",t.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",t.missingDoctypeName="missing-doctype-name",t.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",t.duplicateAttribute="duplicate-attribute",t.nonConformingDoctype="non-conforming-doctype",t.missingDoctype="missing-doctype",t.misplacedDoctype="misplaced-doctype",t.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",t.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",t.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",t.openElementsLeftAfterEof="open-elements-left-after-eof",t.abandonedHeadElementChild="abandoned-head-element-child",t.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",t.nestedNoscriptInHead="nested-noscript-in-head",t.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(se||(se={}));const X9=65536;class V9{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=X9,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,r){const{line:n,col:a,offset:o}=this,c=a+r,d=o+r;return{code:e,startLine:n,endLine:n,startCol:c,endCol:c,startOffset:d,endOffset:d}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const r=this.html.charCodeAt(this.pos+1);if(Y9(r))return this.pos++,this._addGap(),K9(e,r)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,I.EOF;return this._err(se.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,r){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=r}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,r){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(r)return this.html.startsWith(e,this.pos);for(let n=0;n<e.length;n++)if((this.html.charCodeAt(this.pos+n)|32)!==e.charCodeAt(n))return!1;return!0}peek(e){const r=this.pos+e;if(r>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,I.EOF;const n=this.html.charCodeAt(r);return n===I.CARRIAGE_RETURN?I.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,I.EOF;let e=this.html.charCodeAt(this.pos);return e===I.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,I.LINE_FEED):e===I.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,dk(e)&&(e=this._processSurrogate(e)),this.handler.onParseError===null||e>31&&e<127||e===I.LINE_FEED||e===I.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){hk(e)?this._err(se.controlCharacterInInputStream):pk(e)&&this._err(se.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var ot;(function(t){t[t.CHARACTER=0]="CHARACTER",t[t.NULL_CHARACTER=1]="NULL_CHARACTER",t[t.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",t[t.START_TAG=3]="START_TAG",t[t.END_TAG=4]="END_TAG",t[t.COMMENT=5]="COMMENT",t[t.DOCTYPE=6]="DOCTYPE",t[t.EOF=7]="EOF",t[t.HIBERNATION=8]="HIBERNATION"})(ot||(ot={}));function mk(t,e){for(let r=t.attrs.length-1;r>=0;r--)if(t.attrs[r].name===e)return t.attrs[r].value;return null}const Q9=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(t=>t.charCodeAt(0))),J9=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function Z9(t){var e;return t>=55296&&t<=57343||t>1114111?65533:(e=J9.get(t))!==null&&e!==void 0?e:t}var er;(function(t){t[t.NUM=35]="NUM",t[t.SEMI=59]="SEMI",t[t.EQUALS=61]="EQUALS",t[t.ZERO=48]="ZERO",t[t.NINE=57]="NINE",t[t.LOWER_A=97]="LOWER_A",t[t.LOWER_F=102]="LOWER_F",t[t.LOWER_X=120]="LOWER_X",t[t.LOWER_Z=122]="LOWER_Z",t[t.UPPER_A=65]="UPPER_A",t[t.UPPER_F=70]="UPPER_F",t[t.UPPER_Z=90]="UPPER_Z"})(er||(er={}));const eU=32;var xi;(function(t){t[t.VALUE_LENGTH=49152]="VALUE_LENGTH",t[t.BRANCH_LENGTH=16256]="BRANCH_LENGTH",t[t.JUMP_TABLE=127]="JUMP_TABLE"})(xi||(xi={}));function hp(t){return t>=er.ZERO&&t<=er.NINE}function tU(t){return t>=er.UPPER_A&&t<=er.UPPER_F||t>=er.LOWER_A&&t<=er.LOWER_F}function rU(t){return t>=er.UPPER_A&&t<=er.UPPER_Z||t>=er.LOWER_A&&t<=er.LOWER_Z||hp(t)}function nU(t){return t===er.EQUALS||rU(t)}var tr;(function(t){t[t.EntityStart=0]="EntityStart",t[t.NumericStart=1]="NumericStart",t[t.NumericDecimal=2]="NumericDecimal",t[t.NumericHex=3]="NumericHex",t[t.NamedEntity=4]="NamedEntity"})(tr||(tr={}));var Qn;(function(t){t[t.Legacy=0]="Legacy",t[t.Strict=1]="Strict",t[t.Attribute=2]="Attribute"})(Qn||(Qn={}));class iU{constructor(e,r,n){this.decodeTree=e,this.emitCodePoint=r,this.errors=n,this.state=tr.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Qn.Strict}startEntity(e){this.decodeMode=e,this.state=tr.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,r){switch(this.state){case tr.EntityStart:return e.charCodeAt(r)===er.NUM?(this.state=tr.NumericStart,this.consumed+=1,this.stateNumericStart(e,r+1)):(this.state=tr.NamedEntity,this.stateNamedEntity(e,r));case tr.NumericStart:return this.stateNumericStart(e,r);case tr.NumericDecimal:return this.stateNumericDecimal(e,r);case tr.NumericHex:return this.stateNumericHex(e,r);case tr.NamedEntity:return this.stateNamedEntity(e,r)}}stateNumericStart(e,r){return r>=e.length?-1:(e.charCodeAt(r)|eU)===er.LOWER_X?(this.state=tr.NumericHex,this.consumed+=1,this.stateNumericHex(e,r+1)):(this.state=tr.NumericDecimal,this.stateNumericDecimal(e,r))}addToNumericResult(e,r,n,a){if(r!==n){const o=n-r;this.result=this.result*Math.pow(a,o)+Number.parseInt(e.substr(r,o),a),this.consumed+=o}}stateNumericHex(e,r){const n=r;for(;r<e.length;){const a=e.charCodeAt(r);if(hp(a)||tU(a))r+=1;else return this.addToNumericResult(e,n,r,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(e,n,r,16),-1}stateNumericDecimal(e,r){const n=r;for(;r<e.length;){const a=e.charCodeAt(r);if(hp(a))r+=1;else return this.addToNumericResult(e,n,r,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(e,n,r,10),-1}emitNumericEntity(e,r){var n;if(this.consumed<=r)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===er.SEMI)this.consumed+=1;else if(this.decodeMode===Qn.Strict)return 0;return this.emitCodePoint(Z9(this.result),this.consumed),this.errors&&(e!==er.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,r){const{decodeTree:n}=this;let a=n[this.treeIndex],o=(a&xi.VALUE_LENGTH)>>14;for(;r<e.length;r++,this.excess++){const c=e.charCodeAt(r);if(this.treeIndex=aU(n,a,this.treeIndex+Math.max(1,o),c),this.treeIndex<0)return this.result===0||this.decodeMode===Qn.Attribute&&(o===0||nU(c))?0:this.emitNotTerminatedNamedEntity();if(a=n[this.treeIndex],o=(a&xi.VALUE_LENGTH)>>14,o!==0){if(c===er.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==Qn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:r,decodeTree:n}=this,a=(n[r]&xi.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,a,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,r,n){const{decodeTree:a}=this;return this.emitCodePoint(r===1?a[e]&~xi.VALUE_LENGTH:a[e+1],n),r===3&&this.emitCodePoint(a[e+2],n),n}end(){var e;switch(this.state){case tr.NamedEntity:return this.result!==0&&(this.decodeMode!==Qn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case tr.NumericDecimal:return this.emitNumericEntity(0,2);case tr.NumericHex:return this.emitNumericEntity(0,3);case tr.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case tr.EntityStart:return 0}}}function aU(t,e,r,n){const a=(e&xi.BRANCH_LENGTH)>>7,o=e&xi.JUMP_TABLE;if(a===0)return o!==0&&n===o?r:-1;if(o){const p=n-o;return p<0||p>=a?-1:t[r+p]-1}let c=r,d=c+a-1;for(;c<=d;){const p=c+d>>>1,v=t[p];if(v<n)c=p+1;else if(v>n)d=p-1;else return t[p+a]}return-1}var pe;(function(t){t.HTML="http://www.w3.org/1999/xhtml",t.MATHML="http://www.w3.org/1998/Math/MathML",t.SVG="http://www.w3.org/2000/svg",t.XLINK="http://www.w3.org/1999/xlink",t.XML="http://www.w3.org/XML/1998/namespace",t.XMLNS="http://www.w3.org/2000/xmlns/"})(pe||(pe={}));var _a;(function(t){t.TYPE="type",t.ACTION="action",t.ENCODING="encoding",t.PROMPT="prompt",t.NAME="name",t.COLOR="color",t.FACE="face",t.SIZE="size"})(_a||(_a={}));var Qr;(function(t){t.NO_QUIRKS="no-quirks",t.QUIRKS="quirks",t.LIMITED_QUIRKS="limited-quirks"})(Qr||(Qr={}));var K;(function(t){t.A="a",t.ADDRESS="address",t.ANNOTATION_XML="annotation-xml",t.APPLET="applet",t.AREA="area",t.ARTICLE="article",t.ASIDE="aside",t.B="b",t.BASE="base",t.BASEFONT="basefont",t.BGSOUND="bgsound",t.BIG="big",t.BLOCKQUOTE="blockquote",t.BODY="body",t.BR="br",t.BUTTON="button",t.CAPTION="caption",t.CENTER="center",t.CODE="code",t.COL="col",t.COLGROUP="colgroup",t.DD="dd",t.DESC="desc",t.DETAILS="details",t.DIALOG="dialog",t.DIR="dir",t.DIV="div",t.DL="dl",t.DT="dt",t.EM="em",t.EMBED="embed",t.FIELDSET="fieldset",t.FIGCAPTION="figcaption",t.FIGURE="figure",t.FONT="font",t.FOOTER="footer",t.FOREIGN_OBJECT="foreignObject",t.FORM="form",t.FRAME="frame",t.FRAMESET="frameset",t.H1="h1",t.H2="h2",t.H3="h3",t.H4="h4",t.H5="h5",t.H6="h6",t.HEAD="head",t.HEADER="header",t.HGROUP="hgroup",t.HR="hr",t.HTML="html",t.I="i",t.IMG="img",t.IMAGE="image",t.INPUT="input",t.IFRAME="iframe",t.KEYGEN="keygen",t.LABEL="label",t.LI="li",t.LINK="link",t.LISTING="listing",t.MAIN="main",t.MALIGNMARK="malignmark",t.MARQUEE="marquee",t.MATH="math",t.MENU="menu",t.META="meta",t.MGLYPH="mglyph",t.MI="mi",t.MO="mo",t.MN="mn",t.MS="ms",t.MTEXT="mtext",t.NAV="nav",t.NOBR="nobr",t.NOFRAMES="noframes",t.NOEMBED="noembed",t.NOSCRIPT="noscript",t.OBJECT="object",t.OL="ol",t.OPTGROUP="optgroup",t.OPTION="option",t.P="p",t.PARAM="param",t.PLAINTEXT="plaintext",t.PRE="pre",t.RB="rb",t.RP="rp",t.RT="rt",t.RTC="rtc",t.RUBY="ruby",t.S="s",t.SCRIPT="script",t.SEARCH="search",t.SECTION="section",t.SELECT="select",t.SOURCE="source",t.SMALL="small",t.SPAN="span",t.STRIKE="strike",t.STRONG="strong",t.STYLE="style",t.SUB="sub",t.SUMMARY="summary",t.SUP="sup",t.TABLE="table",t.TBODY="tbody",t.TEMPLATE="template",t.TEXTAREA="textarea",t.TFOOT="tfoot",t.TD="td",t.TH="th",t.THEAD="thead",t.TITLE="title",t.TR="tr",t.TRACK="track",t.TT="tt",t.U="u",t.UL="ul",t.SVG="svg",t.VAR="var",t.WBR="wbr",t.XMP="xmp"})(K||(K={}));var m;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.A=1]="A",t[t.ADDRESS=2]="ADDRESS",t[t.ANNOTATION_XML=3]="ANNOTATION_XML",t[t.APPLET=4]="APPLET",t[t.AREA=5]="AREA",t[t.ARTICLE=6]="ARTICLE",t[t.ASIDE=7]="ASIDE",t[t.B=8]="B",t[t.BASE=9]="BASE",t[t.BASEFONT=10]="BASEFONT",t[t.BGSOUND=11]="BGSOUND",t[t.BIG=12]="BIG",t[t.BLOCKQUOTE=13]="BLOCKQUOTE",t[t.BODY=14]="BODY",t[t.BR=15]="BR",t[t.BUTTON=16]="BUTTON",t[t.CAPTION=17]="CAPTION",t[t.CENTER=18]="CENTER",t[t.CODE=19]="CODE",t[t.COL=20]="COL",t[t.COLGROUP=21]="COLGROUP",t[t.DD=22]="DD",t[t.DESC=23]="DESC",t[t.DETAILS=24]="DETAILS",t[t.DIALOG=25]="DIALOG",t[t.DIR=26]="DIR",t[t.DIV=27]="DIV",t[t.DL=28]="DL",t[t.DT=29]="DT",t[t.EM=30]="EM",t[t.EMBED=31]="EMBED",t[t.FIELDSET=32]="FIELDSET",t[t.FIGCAPTION=33]="FIGCAPTION",t[t.FIGURE=34]="FIGURE",t[t.FONT=35]="FONT",t[t.FOOTER=36]="FOOTER",t[t.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",t[t.FORM=38]="FORM",t[t.FRAME=39]="FRAME",t[t.FRAMESET=40]="FRAMESET",t[t.H1=41]="H1",t[t.H2=42]="H2",t[t.H3=43]="H3",t[t.H4=44]="H4",t[t.H5=45]="H5",t[t.H6=46]="H6",t[t.HEAD=47]="HEAD",t[t.HEADER=48]="HEADER",t[t.HGROUP=49]="HGROUP",t[t.HR=50]="HR",t[t.HTML=51]="HTML",t[t.I=52]="I",t[t.IMG=53]="IMG",t[t.IMAGE=54]="IMAGE",t[t.INPUT=55]="INPUT",t[t.IFRAME=56]="IFRAME",t[t.KEYGEN=57]="KEYGEN",t[t.LABEL=58]="LABEL",t[t.LI=59]="LI",t[t.LINK=60]="LINK",t[t.LISTING=61]="LISTING",t[t.MAIN=62]="MAIN",t[t.MALIGNMARK=63]="MALIGNMARK",t[t.MARQUEE=64]="MARQUEE",t[t.MATH=65]="MATH",t[t.MENU=66]="MENU",t[t.META=67]="META",t[t.MGLYPH=68]="MGLYPH",t[t.MI=69]="MI",t[t.MO=70]="MO",t[t.MN=71]="MN",t[t.MS=72]="MS",t[t.MTEXT=73]="MTEXT",t[t.NAV=74]="NAV",t[t.NOBR=75]="NOBR",t[t.NOFRAMES=76]="NOFRAMES",t[t.NOEMBED=77]="NOEMBED",t[t.NOSCRIPT=78]="NOSCRIPT",t[t.OBJECT=79]="OBJECT",t[t.OL=80]="OL",t[t.OPTGROUP=81]="OPTGROUP",t[t.OPTION=82]="OPTION",t[t.P=83]="P",t[t.PARAM=84]="PARAM",t[t.PLAINTEXT=85]="PLAINTEXT",t[t.PRE=86]="PRE",t[t.RB=87]="RB",t[t.RP=88]="RP",t[t.RT=89]="RT",t[t.RTC=90]="RTC",t[t.RUBY=91]="RUBY",t[t.S=92]="S",t[t.SCRIPT=93]="SCRIPT",t[t.SEARCH=94]="SEARCH",t[t.SECTION=95]="SECTION",t[t.SELECT=96]="SELECT",t[t.SOURCE=97]="SOURCE",t[t.SMALL=98]="SMALL",t[t.SPAN=99]="SPAN",t[t.STRIKE=100]="STRIKE",t[t.STRONG=101]="STRONG",t[t.STYLE=102]="STYLE",t[t.SUB=103]="SUB",t[t.SUMMARY=104]="SUMMARY",t[t.SUP=105]="SUP",t[t.TABLE=106]="TABLE",t[t.TBODY=107]="TBODY",t[t.TEMPLATE=108]="TEMPLATE",t[t.TEXTAREA=109]="TEXTAREA",t[t.TFOOT=110]="TFOOT",t[t.TD=111]="TD",t[t.TH=112]="TH",t[t.THEAD=113]="THEAD",t[t.TITLE=114]="TITLE",t[t.TR=115]="TR",t[t.TRACK=116]="TRACK",t[t.TT=117]="TT",t[t.U=118]="U",t[t.UL=119]="UL",t[t.SVG=120]="SVG",t[t.VAR=121]="VAR",t[t.WBR=122]="WBR",t[t.XMP=123]="XMP"})(m||(m={}));const sU=new Map([[K.A,m.A],[K.ADDRESS,m.ADDRESS],[K.ANNOTATION_XML,m.ANNOTATION_XML],[K.APPLET,m.APPLET],[K.AREA,m.AREA],[K.ARTICLE,m.ARTICLE],[K.ASIDE,m.ASIDE],[K.B,m.B],[K.BASE,m.BASE],[K.BASEFONT,m.BASEFONT],[K.BGSOUND,m.BGSOUND],[K.BIG,m.BIG],[K.BLOCKQUOTE,m.BLOCKQUOTE],[K.BODY,m.BODY],[K.BR,m.BR],[K.BUTTON,m.BUTTON],[K.CAPTION,m.CAPTION],[K.CENTER,m.CENTER],[K.CODE,m.CODE],[K.COL,m.COL],[K.COLGROUP,m.COLGROUP],[K.DD,m.DD],[K.DESC,m.DESC],[K.DETAILS,m.DETAILS],[K.DIALOG,m.DIALOG],[K.DIR,m.DIR],[K.DIV,m.DIV],[K.DL,m.DL],[K.DT,m.DT],[K.EM,m.EM],[K.EMBED,m.EMBED],[K.FIELDSET,m.FIELDSET],[K.FIGCAPTION,m.FIGCAPTION],[K.FIGURE,m.FIGURE],[K.FONT,m.FONT],[K.FOOTER,m.FOOTER],[K.FOREIGN_OBJECT,m.FOREIGN_OBJECT],[K.FORM,m.FORM],[K.FRAME,m.FRAME],[K.FRAMESET,m.FRAMESET],[K.H1,m.H1],[K.H2,m.H2],[K.H3,m.H3],[K.H4,m.H4],[K.H5,m.H5],[K.H6,m.H6],[K.HEAD,m.HEAD],[K.HEADER,m.HEADER],[K.HGROUP,m.HGROUP],[K.HR,m.HR],[K.HTML,m.HTML],[K.I,m.I],[K.IMG,m.IMG],[K.IMAGE,m.IMAGE],[K.INPUT,m.INPUT],[K.IFRAME,m.IFRAME],[K.KEYGEN,m.KEYGEN],[K.LABEL,m.LABEL],[K.LI,m.LI],[K.LINK,m.LINK],[K.LISTING,m.LISTING],[K.MAIN,m.MAIN],[K.MALIGNMARK,m.MALIGNMARK],[K.MARQUEE,m.MARQUEE],[K.MATH,m.MATH],[K.MENU,m.MENU],[K.META,m.META],[K.MGLYPH,m.MGLYPH],[K.MI,m.MI],[K.MO,m.MO],[K.MN,m.MN],[K.MS,m.MS],[K.MTEXT,m.MTEXT],[K.NAV,m.NAV],[K.NOBR,m.NOBR],[K.NOFRAMES,m.NOFRAMES],[K.NOEMBED,m.NOEMBED],[K.NOSCRIPT,m.NOSCRIPT],[K.OBJECT,m.OBJECT],[K.OL,m.OL],[K.OPTGROUP,m.OPTGROUP],[K.OPTION,m.OPTION],[K.P,m.P],[K.PARAM,m.PARAM],[K.PLAINTEXT,m.PLAINTEXT],[K.PRE,m.PRE],[K.RB,m.RB],[K.RP,m.RP],[K.RT,m.RT],[K.RTC,m.RTC],[K.RUBY,m.RUBY],[K.S,m.S],[K.SCRIPT,m.SCRIPT],[K.SEARCH,m.SEARCH],[K.SECTION,m.SECTION],[K.SELECT,m.SELECT],[K.SOURCE,m.SOURCE],[K.SMALL,m.SMALL],[K.SPAN,m.SPAN],[K.STRIKE,m.STRIKE],[K.STRONG,m.STRONG],[K.STYLE,m.STYLE],[K.SUB,m.SUB],[K.SUMMARY,m.SUMMARY],[K.SUP,m.SUP],[K.TABLE,m.TABLE],[K.TBODY,m.TBODY],[K.TEMPLATE,m.TEMPLATE],[K.TEXTAREA,m.TEXTAREA],[K.TFOOT,m.TFOOT],[K.TD,m.TD],[K.TH,m.TH],[K.THEAD,m.THEAD],[K.TITLE,m.TITLE],[K.TR,m.TR],[K.TRACK,m.TRACK],[K.TT,m.TT],[K.U,m.U],[K.UL,m.UL],[K.SVG,m.SVG],[K.VAR,m.VAR],[K.WBR,m.WBR],[K.XMP,m.XMP]]);function Vl(t){var e;return(e=sU.get(t))!==null&&e!==void 0?e:m.UNKNOWN}const _e=m,oU={[pe.HTML]:new Set([_e.ADDRESS,_e.APPLET,_e.AREA,_e.ARTICLE,_e.ASIDE,_e.BASE,_e.BASEFONT,_e.BGSOUND,_e.BLOCKQUOTE,_e.BODY,_e.BR,_e.BUTTON,_e.CAPTION,_e.CENTER,_e.COL,_e.COLGROUP,_e.DD,_e.DETAILS,_e.DIR,_e.DIV,_e.DL,_e.DT,_e.EMBED,_e.FIELDSET,_e.FIGCAPTION,_e.FIGURE,_e.FOOTER,_e.FORM,_e.FRAME,_e.FRAMESET,_e.H1,_e.H2,_e.H3,_e.H4,_e.H5,_e.H6,_e.HEAD,_e.HEADER,_e.HGROUP,_e.HR,_e.HTML,_e.IFRAME,_e.IMG,_e.INPUT,_e.LI,_e.LINK,_e.LISTING,_e.MAIN,_e.MARQUEE,_e.MENU,_e.META,_e.NAV,_e.NOEMBED,_e.NOFRAMES,_e.NOSCRIPT,_e.OBJECT,_e.OL,_e.P,_e.PARAM,_e.PLAINTEXT,_e.PRE,_e.SCRIPT,_e.SECTION,_e.SELECT,_e.SOURCE,_e.STYLE,_e.SUMMARY,_e.TABLE,_e.TBODY,_e.TD,_e.TEMPLATE,_e.TEXTAREA,_e.TFOOT,_e.TH,_e.THEAD,_e.TITLE,_e.TR,_e.TRACK,_e.UL,_e.WBR,_e.XMP]),[pe.MATHML]:new Set([_e.MI,_e.MO,_e.MN,_e.MS,_e.MTEXT,_e.ANNOTATION_XML]),[pe.SVG]:new Set([_e.TITLE,_e.FOREIGN_OBJECT,_e.DESC]),[pe.XLINK]:new Set,[pe.XML]:new Set,[pe.XMLNS]:new Set},pp=new Set([_e.H1,_e.H2,_e.H3,_e.H4,_e.H5,_e.H6]);K.STYLE,K.SCRIPT,K.XMP,K.IFRAME,K.NOEMBED,K.NOFRAMES,K.PLAINTEXT;var D;(function(t){t[t.DATA=0]="DATA",t[t.RCDATA=1]="RCDATA",t[t.RAWTEXT=2]="RAWTEXT",t[t.SCRIPT_DATA=3]="SCRIPT_DATA",t[t.PLAINTEXT=4]="PLAINTEXT",t[t.TAG_OPEN=5]="TAG_OPEN",t[t.END_TAG_OPEN=6]="END_TAG_OPEN",t[t.TAG_NAME=7]="TAG_NAME",t[t.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",t[t.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",t[t.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",t[t.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",t[t.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",t[t.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",t[t.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",t[t.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",t[t.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",t[t.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",t[t.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",t[t.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",t[t.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",t[t.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",t[t.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",t[t.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",t[t.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",t[t.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",t[t.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",t[t.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",t[t.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",t[t.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",t[t.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",t[t.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",t[t.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",t[t.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",t[t.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",t[t.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",t[t.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",t[t.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",t[t.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",t[t.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",t[t.BOGUS_COMMENT=40]="BOGUS_COMMENT",t[t.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",t[t.COMMENT_START=42]="COMMENT_START",t[t.COMMENT_START_DASH=43]="COMMENT_START_DASH",t[t.COMMENT=44]="COMMENT",t[t.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",t[t.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",t[t.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",t[t.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",t[t.COMMENT_END_DASH=49]="COMMENT_END_DASH",t[t.COMMENT_END=50]="COMMENT_END",t[t.COMMENT_END_BANG=51]="COMMENT_END_BANG",t[t.DOCTYPE=52]="DOCTYPE",t[t.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",t[t.DOCTYPE_NAME=54]="DOCTYPE_NAME",t[t.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",t[t.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",t[t.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",t[t.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",t[t.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",t[t.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",t[t.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",t[t.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",t[t.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",t[t.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",t[t.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",t[t.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",t[t.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",t[t.CDATA_SECTION=68]="CDATA_SECTION",t[t.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",t[t.CDATA_SECTION_END=70]="CDATA_SECTION_END",t[t.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",t[t.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(D||(D={}));const Lr={DATA:D.DATA,RCDATA:D.RCDATA,RAWTEXT:D.RAWTEXT,SCRIPT_DATA:D.SCRIPT_DATA,PLAINTEXT:D.PLAINTEXT,CDATA_SECTION:D.CDATA_SECTION};function uU(t){return t>=I.DIGIT_0&&t<=I.DIGIT_9}function jo(t){return t>=I.LATIN_CAPITAL_A&&t<=I.LATIN_CAPITAL_Z}function lU(t){return t>=I.LATIN_SMALL_A&&t<=I.LATIN_SMALL_Z}function Ai(t){return lU(t)||jo(t)}function vk(t){return Ai(t)||uU(t)}function Ql(t){return t+32}function gk(t){return t===I.SPACE||t===I.LINE_FEED||t===I.TABULATION||t===I.FORM_FEED}function _k(t){return gk(t)||t===I.SOLIDUS||t===I.GREATER_THAN_SIGN}function cU(t){return t===I.NULL?se.nullCharacterReference:t>1114111?se.characterReferenceOutsideUnicodeRange:dk(t)?se.surrogateCharacterReference:pk(t)?se.noncharacterCharacterReference:hk(t)||t===I.CARRIAGE_RETURN?se.controlCharacterReference:null}class fU{constructor(e,r){this.options=e,this.handler=r,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=D.DATA,this.returnState=D.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new V9(r),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new iU(Q9,(n,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(n)},r.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(se.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:n=>{this._err(se.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+n)},validateNumericCharacterReference:n=>{const a=cU(n);a&&this._err(a,1)}}:void 0)}_err(e,r=0){var n,a;(a=(n=this.handler).onParseError)===null||a===void 0||a.call(n,this.preprocessor.getError(e,r))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||e?.())}write(e,r,n){this.active=!0,this.preprocessor.write(e,r),this._runParsingLoop(),this.paused||n?.()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let r=0;r<e;r++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,r){return this.preprocessor.startsWith(e,r)?(this._advanceBy(e.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:ot.START_TAG,tagName:"",tagID:m.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:ot.END_TAG,tagName:"",tagID:m.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:ot.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:ot.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,r){this.currentCharacterToken={type:e,chars:r,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,r;const n=this.currentToken;if(mk(n,this.currentAttr.name)===null){if(n.attrs.push(this.currentAttr),n.location&&this.currentLocation){const a=(e=(r=n.location).attrs)!==null&&e!==void 0?e:r.attrs=Object.create(null);a[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(se.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const e=this.currentToken;this.prepareToken(e),e.tagID=Vl(e.tagName),e.type===ot.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(se.endTagWithAttributes),e.selfClosing&&this._err(se.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case ot.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case ot.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case ot.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:ot.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,r){if(this.currentCharacterToken)if(this.currentCharacterToken.type===e){this.currentCharacterToken.chars+=r;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(e,r)}_emitCodePoint(e){const r=gk(e)?ot.WHITESPACE_CHARACTER:e===I.NULL?ot.NULL_CHARACTER:ot.CHARACTER;this._appendCharToCurrentCharacterToken(r,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(ot.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=D.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Qn.Attribute:Qn.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===D.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===D.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===D.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case D.DATA:{this._stateData(e);break}case D.RCDATA:{this._stateRcdata(e);break}case D.RAWTEXT:{this._stateRawtext(e);break}case D.SCRIPT_DATA:{this._stateScriptData(e);break}case D.PLAINTEXT:{this._statePlaintext(e);break}case D.TAG_OPEN:{this._stateTagOpen(e);break}case D.END_TAG_OPEN:{this._stateEndTagOpen(e);break}case D.TAG_NAME:{this._stateTagName(e);break}case D.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(e);break}case D.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(e);break}case D.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(e);break}case D.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(e);break}case D.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(e);break}case D.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(e);break}case D.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(e);break}case D.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(e);break}case D.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(e);break}case D.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(e);break}case D.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(e);break}case D.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(e);break}case D.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(e);break}case D.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(e);break}case D.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(e);break}case D.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(e);break}case D.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(e);break}case D.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(e);break}case D.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(e);break}case D.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(e);break}case D.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(e);break}case D.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(e);break}case D.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(e);break}case D.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(e);break}case D.ATTRIBUTE_NAME:{this._stateAttributeName(e);break}case D.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(e);break}case D.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(e);break}case D.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(e);break}case D.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(e);break}case D.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(e);break}case D.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(e);break}case D.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(e);break}case D.BOGUS_COMMENT:{this._stateBogusComment(e);break}case D.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(e);break}case D.COMMENT_START:{this._stateCommentStart(e);break}case D.COMMENT_START_DASH:{this._stateCommentStartDash(e);break}case D.COMMENT:{this._stateComment(e);break}case D.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(e);break}case D.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(e);break}case D.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(e);break}case D.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(e);break}case D.COMMENT_END_DASH:{this._stateCommentEndDash(e);break}case D.COMMENT_END:{this._stateCommentEnd(e);break}case D.COMMENT_END_BANG:{this._stateCommentEndBang(e);break}case D.DOCTYPE:{this._stateDoctype(e);break}case D.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(e);break}case D.DOCTYPE_NAME:{this._stateDoctypeName(e);break}case D.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(e);break}case D.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(e);break}case D.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(e);break}case D.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(e);break}case D.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(e);break}case D.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(e);break}case D.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break}case D.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(e);break}case D.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(e);break}case D.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(e);break}case D.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(e);break}case D.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(e);break}case D.BOGUS_DOCTYPE:{this._stateBogusDoctype(e);break}case D.CDATA_SECTION:{this._stateCdataSection(e);break}case D.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(e);break}case D.CDATA_SECTION_END:{this._stateCdataSectionEnd(e);break}case D.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case D.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(e);break}default:throw new Error("Unknown state")}}_stateData(e){switch(e){case I.LESS_THAN_SIGN:{this.state=D.TAG_OPEN;break}case I.AMPERSAND:{this._startCharacterReference();break}case I.NULL:{this._err(se.unexpectedNullCharacter),this._emitCodePoint(e);break}case I.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case I.AMPERSAND:{this._startCharacterReference();break}case I.LESS_THAN_SIGN:{this.state=D.RCDATA_LESS_THAN_SIGN;break}case I.NULL:{this._err(se.unexpectedNullCharacter),this._emitChars(xt);break}case I.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case I.LESS_THAN_SIGN:{this.state=D.RAWTEXT_LESS_THAN_SIGN;break}case I.NULL:{this._err(se.unexpectedNullCharacter),this._emitChars(xt);break}case I.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case I.LESS_THAN_SIGN:{this.state=D.SCRIPT_DATA_LESS_THAN_SIGN;break}case I.NULL:{this._err(se.unexpectedNullCharacter),this._emitChars(xt);break}case I.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case I.NULL:{this._err(se.unexpectedNullCharacter),this._emitChars(xt);break}case I.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateTagOpen(e){if(Ai(e))this._createStartTagToken(),this.state=D.TAG_NAME,this._stateTagName(e);else switch(e){case I.EXCLAMATION_MARK:{this.state=D.MARKUP_DECLARATION_OPEN;break}case I.SOLIDUS:{this.state=D.END_TAG_OPEN;break}case I.QUESTION_MARK:{this._err(se.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=D.BOGUS_COMMENT,this._stateBogusComment(e);break}case I.EOF:{this._err(se.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(se.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=D.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(Ai(e))this._createEndTagToken(),this.state=D.TAG_NAME,this._stateTagName(e);else switch(e){case I.GREATER_THAN_SIGN:{this._err(se.missingEndTagName),this.state=D.DATA;break}case I.EOF:{this._err(se.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(se.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=D.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){const r=this.currentToken;switch(e){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this.state=D.BEFORE_ATTRIBUTE_NAME;break}case I.SOLIDUS:{this.state=D.SELF_CLOSING_START_TAG;break}case I.GREATER_THAN_SIGN:{this.state=D.DATA,this.emitCurrentTagToken();break}case I.NULL:{this._err(se.unexpectedNullCharacter),r.tagName+=xt;break}case I.EOF:{this._err(se.eofInTag),this._emitEOFToken();break}default:r.tagName+=String.fromCodePoint(jo(e)?Ql(e):e)}}_stateRcdataLessThanSign(e){e===I.SOLIDUS?this.state=D.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=D.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){Ai(e)?(this.state=D.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=D.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const r=this.currentToken;switch(r.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=D.BEFORE_ATTRIBUTE_NAME,!1;case I.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=D.SELF_CLOSING_START_TAG,!1;case I.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=D.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=D.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===I.SOLIDUS?this.state=D.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=D.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){Ai(e)?(this.state=D.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=D.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=D.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case I.SOLIDUS:{this.state=D.SCRIPT_DATA_END_TAG_OPEN;break}case I.EXCLAMATION_MARK:{this.state=D.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=D.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){Ai(e)?(this.state=D.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=D.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=D.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===I.HYPHEN_MINUS?(this.state=D.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=D.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===I.HYPHEN_MINUS?(this.state=D.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=D.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case I.HYPHEN_MINUS:{this.state=D.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case I.LESS_THAN_SIGN:{this.state=D.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case I.NULL:{this._err(se.unexpectedNullCharacter),this._emitChars(xt);break}case I.EOF:{this._err(se.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case I.HYPHEN_MINUS:{this.state=D.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case I.LESS_THAN_SIGN:{this.state=D.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case I.NULL:{this._err(se.unexpectedNullCharacter),this.state=D.SCRIPT_DATA_ESCAPED,this._emitChars(xt);break}case I.EOF:{this._err(se.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=D.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case I.HYPHEN_MINUS:{this._emitChars("-");break}case I.LESS_THAN_SIGN:{this.state=D.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case I.GREATER_THAN_SIGN:{this.state=D.SCRIPT_DATA,this._emitChars(">");break}case I.NULL:{this._err(se.unexpectedNullCharacter),this.state=D.SCRIPT_DATA_ESCAPED,this._emitChars(xt);break}case I.EOF:{this._err(se.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=D.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===I.SOLIDUS?this.state=D.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Ai(e)?(this._emitChars("<"),this.state=D.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=D.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){Ai(e)?(this.state=D.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=D.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=D.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(Ir.SCRIPT,!1)&&_k(this.preprocessor.peek(Ir.SCRIPT.length))){this._emitCodePoint(e);for(let r=0;r<Ir.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=D.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=D.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case I.HYPHEN_MINUS:{this.state=D.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case I.LESS_THAN_SIGN:{this.state=D.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case I.NULL:{this._err(se.unexpectedNullCharacter),this._emitChars(xt);break}case I.EOF:{this._err(se.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case I.HYPHEN_MINUS:{this.state=D.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case I.LESS_THAN_SIGN:{this.state=D.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case I.NULL:{this._err(se.unexpectedNullCharacter),this.state=D.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(xt);break}case I.EOF:{this._err(se.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=D.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case I.HYPHEN_MINUS:{this._emitChars("-");break}case I.LESS_THAN_SIGN:{this.state=D.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case I.GREATER_THAN_SIGN:{this.state=D.SCRIPT_DATA,this._emitChars(">");break}case I.NULL:{this._err(se.unexpectedNullCharacter),this.state=D.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(xt);break}case I.EOF:{this._err(se.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=D.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===I.SOLIDUS?(this.state=D.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=D.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(Ir.SCRIPT,!1)&&_k(this.preprocessor.peek(Ir.SCRIPT.length))){this._emitCodePoint(e);for(let r=0;r<Ir.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=D.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=D.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.SOLIDUS:case I.GREATER_THAN_SIGN:case I.EOF:{this.state=D.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break}case I.EQUALS_SIGN:{this._err(se.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=D.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=D.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:case I.SOLIDUS:case I.GREATER_THAN_SIGN:case I.EOF:{this._leaveAttrName(),this.state=D.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break}case I.EQUALS_SIGN:{this._leaveAttrName(),this.state=D.BEFORE_ATTRIBUTE_VALUE;break}case I.QUOTATION_MARK:case I.APOSTROPHE:case I.LESS_THAN_SIGN:{this._err(se.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break}case I.NULL:{this._err(se.unexpectedNullCharacter),this.currentAttr.name+=xt;break}default:this.currentAttr.name+=String.fromCodePoint(jo(e)?Ql(e):e)}}_stateAfterAttributeName(e){switch(e){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.SOLIDUS:{this.state=D.SELF_CLOSING_START_TAG;break}case I.EQUALS_SIGN:{this.state=D.BEFORE_ATTRIBUTE_VALUE;break}case I.GREATER_THAN_SIGN:{this.state=D.DATA,this.emitCurrentTagToken();break}case I.EOF:{this._err(se.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=D.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.QUOTATION_MARK:{this.state=D.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case I.APOSTROPHE:{this.state=D.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case I.GREATER_THAN_SIGN:{this._err(se.missingAttributeValue),this.state=D.DATA,this.emitCurrentTagToken();break}default:this.state=D.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case I.QUOTATION_MARK:{this.state=D.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case I.AMPERSAND:{this._startCharacterReference();break}case I.NULL:{this._err(se.unexpectedNullCharacter),this.currentAttr.value+=xt;break}case I.EOF:{this._err(se.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case I.APOSTROPHE:{this.state=D.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case I.AMPERSAND:{this._startCharacterReference();break}case I.NULL:{this._err(se.unexpectedNullCharacter),this.currentAttr.value+=xt;break}case I.EOF:{this._err(se.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this._leaveAttrValue(),this.state=D.BEFORE_ATTRIBUTE_NAME;break}case I.AMPERSAND:{this._startCharacterReference();break}case I.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=D.DATA,this.emitCurrentTagToken();break}case I.NULL:{this._err(se.unexpectedNullCharacter),this.currentAttr.value+=xt;break}case I.QUOTATION_MARK:case I.APOSTROPHE:case I.LESS_THAN_SIGN:case I.EQUALS_SIGN:case I.GRAVE_ACCENT:{this._err(se.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break}case I.EOF:{this._err(se.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this._leaveAttrValue(),this.state=D.BEFORE_ATTRIBUTE_NAME;break}case I.SOLIDUS:{this._leaveAttrValue(),this.state=D.SELF_CLOSING_START_TAG;break}case I.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=D.DATA,this.emitCurrentTagToken();break}case I.EOF:{this._err(se.eofInTag),this._emitEOFToken();break}default:this._err(se.missingWhitespaceBetweenAttributes),this.state=D.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case I.GREATER_THAN_SIGN:{const r=this.currentToken;r.selfClosing=!0,this.state=D.DATA,this.emitCurrentTagToken();break}case I.EOF:{this._err(se.eofInTag),this._emitEOFToken();break}default:this._err(se.unexpectedSolidusInTag),this.state=D.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){const r=this.currentToken;switch(e){case I.GREATER_THAN_SIGN:{this.state=D.DATA,this.emitCurrentComment(r);break}case I.EOF:{this.emitCurrentComment(r),this._emitEOFToken();break}case I.NULL:{this._err(se.unexpectedNullCharacter),r.data+=xt;break}default:r.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch(Ir.DASH_DASH,!0)?(this._createCommentToken(Ir.DASH_DASH.length+1),this.state=D.COMMENT_START):this._consumeSequenceIfMatch(Ir.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Ir.DOCTYPE.length+1),this.state=D.DOCTYPE):this._consumeSequenceIfMatch(Ir.CDATA_START,!0)?this.inForeignNode?this.state=D.CDATA_SECTION:(this._err(se.cdataInHtmlContent),this._createCommentToken(Ir.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=D.BOGUS_COMMENT):this._ensureHibernation()||(this._err(se.incorrectlyOpenedComment),this._createCommentToken(2),this.state=D.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case I.HYPHEN_MINUS:{this.state=D.COMMENT_START_DASH;break}case I.GREATER_THAN_SIGN:{this._err(se.abruptClosingOfEmptyComment),this.state=D.DATA;const r=this.currentToken;this.emitCurrentComment(r);break}default:this.state=D.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){const r=this.currentToken;switch(e){case I.HYPHEN_MINUS:{this.state=D.COMMENT_END;break}case I.GREATER_THAN_SIGN:{this._err(se.abruptClosingOfEmptyComment),this.state=D.DATA,this.emitCurrentComment(r);break}case I.EOF:{this._err(se.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=D.COMMENT,this._stateComment(e)}}_stateComment(e){const r=this.currentToken;switch(e){case I.HYPHEN_MINUS:{this.state=D.COMMENT_END_DASH;break}case I.LESS_THAN_SIGN:{r.data+="<",this.state=D.COMMENT_LESS_THAN_SIGN;break}case I.NULL:{this._err(se.unexpectedNullCharacter),r.data+=xt;break}case I.EOF:{this._err(se.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){const r=this.currentToken;switch(e){case I.EXCLAMATION_MARK:{r.data+="!",this.state=D.COMMENT_LESS_THAN_SIGN_BANG;break}case I.LESS_THAN_SIGN:{r.data+="<";break}default:this.state=D.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===I.HYPHEN_MINUS?this.state=D.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=D.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===I.HYPHEN_MINUS?this.state=D.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=D.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==I.GREATER_THAN_SIGN&&e!==I.EOF&&this._err(se.nestedComment),this.state=D.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){const r=this.currentToken;switch(e){case I.HYPHEN_MINUS:{this.state=D.COMMENT_END;break}case I.EOF:{this._err(se.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=D.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){const r=this.currentToken;switch(e){case I.GREATER_THAN_SIGN:{this.state=D.DATA,this.emitCurrentComment(r);break}case I.EXCLAMATION_MARK:{this.state=D.COMMENT_END_BANG;break}case I.HYPHEN_MINUS:{r.data+="-";break}case I.EOF:{this._err(se.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--",this.state=D.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){const r=this.currentToken;switch(e){case I.HYPHEN_MINUS:{r.data+="--!",this.state=D.COMMENT_END_DASH;break}case I.GREATER_THAN_SIGN:{this._err(se.incorrectlyClosedComment),this.state=D.DATA,this.emitCurrentComment(r);break}case I.EOF:{this._err(se.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--!",this.state=D.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this.state=D.BEFORE_DOCTYPE_NAME;break}case I.GREATER_THAN_SIGN:{this.state=D.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break}case I.EOF:{this._err(se.eofInDoctype),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(se.missingWhitespaceBeforeDoctypeName),this.state=D.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(jo(e))this._createDoctypeToken(String.fromCharCode(Ql(e))),this.state=D.DOCTYPE_NAME;else switch(e){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.NULL:{this._err(se.unexpectedNullCharacter),this._createDoctypeToken(xt),this.state=D.DOCTYPE_NAME;break}case I.GREATER_THAN_SIGN:{this._err(se.missingDoctypeName),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=D.DATA;break}case I.EOF:{this._err(se.eofInDoctype),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=D.DOCTYPE_NAME}}_stateDoctypeName(e){const r=this.currentToken;switch(e){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this.state=D.AFTER_DOCTYPE_NAME;break}case I.GREATER_THAN_SIGN:{this.state=D.DATA,this.emitCurrentDoctype(r);break}case I.NULL:{this._err(se.unexpectedNullCharacter),r.name+=xt;break}case I.EOF:{this._err(se.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.name+=String.fromCodePoint(jo(e)?Ql(e):e)}}_stateAfterDoctypeName(e){const r=this.currentToken;switch(e){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.GREATER_THAN_SIGN:{this.state=D.DATA,this.emitCurrentDoctype(r);break}case I.EOF:{this._err(se.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Ir.PUBLIC,!1)?this.state=D.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Ir.SYSTEM,!1)?this.state=D.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(se.invalidCharacterSequenceAfterDoctypeName),r.forceQuirks=!0,this.state=D.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){const r=this.currentToken;switch(e){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this.state=D.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case I.QUOTATION_MARK:{this._err(se.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=D.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case I.APOSTROPHE:{this._err(se.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=D.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case I.GREATER_THAN_SIGN:{this._err(se.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=D.DATA,this.emitCurrentDoctype(r);break}case I.EOF:{this._err(se.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(se.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=D.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){const r=this.currentToken;switch(e){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.QUOTATION_MARK:{r.publicId="",this.state=D.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case I.APOSTROPHE:{r.publicId="",this.state=D.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case I.GREATER_THAN_SIGN:{this._err(se.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=D.DATA,this.emitCurrentDoctype(r);break}case I.EOF:{this._err(se.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(se.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=D.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){const r=this.currentToken;switch(e){case I.QUOTATION_MARK:{this.state=D.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case I.NULL:{this._err(se.unexpectedNullCharacter),r.publicId+=xt;break}case I.GREATER_THAN_SIGN:{this._err(se.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=D.DATA;break}case I.EOF:{this._err(se.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){const r=this.currentToken;switch(e){case I.APOSTROPHE:{this.state=D.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case I.NULL:{this._err(se.unexpectedNullCharacter),r.publicId+=xt;break}case I.GREATER_THAN_SIGN:{this._err(se.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=D.DATA;break}case I.EOF:{this._err(se.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){const r=this.currentToken;switch(e){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this.state=D.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case I.GREATER_THAN_SIGN:{this.state=D.DATA,this.emitCurrentDoctype(r);break}case I.QUOTATION_MARK:{this._err(se.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=D.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case I.APOSTROPHE:{this._err(se.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=D.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case I.EOF:{this._err(se.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(se.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=D.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const r=this.currentToken;switch(e){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=D.DATA;break}case I.QUOTATION_MARK:{r.systemId="",this.state=D.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case I.APOSTROPHE:{r.systemId="",this.state=D.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case I.EOF:{this._err(se.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(se.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=D.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){const r=this.currentToken;switch(e){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:{this.state=D.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case I.QUOTATION_MARK:{this._err(se.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=D.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case I.APOSTROPHE:{this._err(se.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=D.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case I.GREATER_THAN_SIGN:{this._err(se.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=D.DATA,this.emitCurrentDoctype(r);break}case I.EOF:{this._err(se.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(se.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=D.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){const r=this.currentToken;switch(e){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.QUOTATION_MARK:{r.systemId="",this.state=D.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case I.APOSTROPHE:{r.systemId="",this.state=D.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case I.GREATER_THAN_SIGN:{this._err(se.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=D.DATA,this.emitCurrentDoctype(r);break}case I.EOF:{this._err(se.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(se.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=D.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const r=this.currentToken;switch(e){case I.QUOTATION_MARK:{this.state=D.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case I.NULL:{this._err(se.unexpectedNullCharacter),r.systemId+=xt;break}case I.GREATER_THAN_SIGN:{this._err(se.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=D.DATA;break}case I.EOF:{this._err(se.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){const r=this.currentToken;switch(e){case I.APOSTROPHE:{this.state=D.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case I.NULL:{this._err(se.unexpectedNullCharacter),r.systemId+=xt;break}case I.GREATER_THAN_SIGN:{this._err(se.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=D.DATA;break}case I.EOF:{this._err(se.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){const r=this.currentToken;switch(e){case I.SPACE:case I.LINE_FEED:case I.TABULATION:case I.FORM_FEED:break;case I.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=D.DATA;break}case I.EOF:{this._err(se.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(se.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=D.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){const r=this.currentToken;switch(e){case I.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=D.DATA;break}case I.NULL:{this._err(se.unexpectedNullCharacter);break}case I.EOF:{this.emitCurrentDoctype(r),this._emitEOFToken();break}}}_stateCdataSection(e){switch(e){case I.RIGHT_SQUARE_BRACKET:{this.state=D.CDATA_SECTION_BRACKET;break}case I.EOF:{this._err(se.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===I.RIGHT_SQUARE_BRACKET?this.state=D.CDATA_SECTION_END:(this._emitChars("]"),this.state=D.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case I.GREATER_THAN_SIGN:{this.state=D.DATA;break}case I.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=D.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0)if(this.preprocessor.lastChunkWritten)e=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}e===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(I.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&vk(this.preprocessor.peek(1))?D.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){vk(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===I.SEMICOLON&&this._err(se.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}}const bk=new Set([m.DD,m.DT,m.LI,m.OPTGROUP,m.OPTION,m.P,m.RB,m.RP,m.RT,m.RTC]),yk=new Set([...bk,m.CAPTION,m.COLGROUP,m.TBODY,m.TD,m.TFOOT,m.TH,m.THEAD,m.TR]),Jl=new Set([m.APPLET,m.CAPTION,m.HTML,m.MARQUEE,m.OBJECT,m.TABLE,m.TD,m.TEMPLATE,m.TH]),dU=new Set([...Jl,m.OL,m.UL]),hU=new Set([...Jl,m.BUTTON]),kk=new Set([m.ANNOTATION_XML,m.MI,m.MN,m.MO,m.MS,m.MTEXT]),Ek=new Set([m.DESC,m.FOREIGN_OBJECT,m.TITLE]),pU=new Set([m.TR,m.TEMPLATE,m.HTML]),mU=new Set([m.TBODY,m.TFOOT,m.THEAD,m.TEMPLATE,m.HTML]),vU=new Set([m.TABLE,m.TEMPLATE,m.HTML]),gU=new Set([m.TD,m.TH]);class _U{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,r,n){this.treeAdapter=r,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=m.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===m.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===pe.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,r){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=r,this.currentTagId=r,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,r,!0)}pop(){const e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,r){const n=this._indexOf(e);this.items[n]=r,n===this.stackTop&&(this.current=r)}insertAfter(e,r,n){const a=this._indexOf(e)+1;this.items.splice(a,0,r),this.tagIDs.splice(a,0,n),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(e){let r=this.stackTop+1;do r=this.tagIDs.lastIndexOf(e,r-1);while(r>0&&this.treeAdapter.getNamespaceURI(this.items[r])!==pe.HTML);this.shortenToLength(Math.max(r,0))}shortenToLength(e){for(;this.stackTop>=e;){const r=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(r,this.stackTop<e)}}popUntilElementPopped(e){const r=this._indexOf(e);this.shortenToLength(Math.max(r,0))}popUntilPopped(e,r){const n=this._indexOfTagNames(e,r);this.shortenToLength(Math.max(n,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(pp,pe.HTML)}popUntilTableCellPopped(){this.popUntilPopped(gU,pe.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,r){for(let n=this.stackTop;n>=0;n--)if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===r)return n;return-1}clearBackTo(e,r){const n=this._indexOfTagNames(e,r);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(vU,pe.HTML)}clearBackToTableBodyContext(){this.clearBackTo(mU,pe.HTML)}clearBackToTableRowContext(){this.clearBackTo(pU,pe.HTML)}remove(e){const r=this._indexOf(e);r>=0&&(r===this.stackTop?this.pop():(this.items.splice(r,1),this.tagIDs.splice(r,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===m.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const r=this._indexOf(e)-1;return r>=0?this.items[r]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===m.HTML}hasInDynamicScope(e,r){for(let n=this.stackTop;n>=0;n--){const a=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case pe.HTML:{if(a===e)return!0;if(r.has(a))return!1;break}case pe.SVG:{if(Ek.has(a))return!1;break}case pe.MATHML:{if(kk.has(a))return!1;break}}}return!0}hasInScope(e){return this.hasInDynamicScope(e,Jl)}hasInListItemScope(e){return this.hasInDynamicScope(e,dU)}hasInButtonScope(e){return this.hasInDynamicScope(e,hU)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const r=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case pe.HTML:{if(pp.has(r))return!0;if(Jl.has(r))return!1;break}case pe.SVG:{if(Ek.has(r))return!1;break}case pe.MATHML:{if(kk.has(r))return!1;break}}}return!0}hasInTableScope(e){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===pe.HTML)switch(this.tagIDs[r]){case e:return!0;case m.TABLE:case m.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===pe.HTML)switch(this.tagIDs[e]){case m.TBODY:case m.THEAD:case m.TFOOT:return!0;case m.TABLE:case m.HTML:return!1}return!0}hasInSelectScope(e){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===pe.HTML)switch(this.tagIDs[r]){case e:return!0;case m.OPTION:case m.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&bk.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&yk.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==void 0&&this.currentTagId!==e&&yk.has(this.currentTagId);)this.pop()}}const mp=3;var Nn;(function(t){t[t.Marker=0]="Marker",t[t.Element=1]="Element"})(Nn||(Nn={}));const Tk={type:Nn.Marker};class bU{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,r){const n=[],a=r.length,o=this.treeAdapter.getTagName(e),c=this.treeAdapter.getNamespaceURI(e);for(let d=0;d<this.entries.length;d++){const p=this.entries[d];if(p.type===Nn.Marker)break;const{element:v}=p;if(this.treeAdapter.getTagName(v)===o&&this.treeAdapter.getNamespaceURI(v)===c){const b=this.treeAdapter.getAttrList(v);b.length===a&&n.push({idx:d,attrs:b})}}return n}_ensureNoahArkCondition(e){if(this.entries.length<mp)return;const r=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,r);if(n.length<mp)return;const a=new Map(r.map(c=>[c.name,c.value]));let o=0;for(let c=0;c<n.length;c++){const d=n[c];d.attrs.every(p=>a.get(p.name)===p.value)&&(o+=1,o>=mp&&this.entries.splice(d.idx,1))}}insertMarker(){this.entries.unshift(Tk)}pushElement(e,r){this._ensureNoahArkCondition(e),this.entries.unshift({type:Nn.Element,element:e,token:r})}insertElementAfterBookmark(e,r){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:Nn.Element,element:e,token:r})}removeEntry(e){const r=this.entries.indexOf(e);r!==-1&&this.entries.splice(r,1)}clearToLastMarker(){const e=this.entries.indexOf(Tk);e===-1?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){const r=this.entries.find(n=>n.type===Nn.Marker||this.treeAdapter.getTagName(n.element)===e);return r&&r.type===Nn.Element?r:null}getElementEntry(e){return this.entries.find(r=>r.type===Nn.Element&&r.element===e)}}const Jn={createDocument(){return{nodeName:"#document",mode:Qr.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(t,e,r){return{nodeName:t,tagName:t,attrs:r,namespaceURI:e,childNodes:[],parentNode:null}},createCommentNode(t){return{nodeName:"#comment",data:t,parentNode:null}},createTextNode(t){return{nodeName:"#text",value:t,parentNode:null}},appendChild(t,e){t.childNodes.push(e),e.parentNode=t},insertBefore(t,e,r){const n=t.childNodes.indexOf(r);t.childNodes.splice(n,0,e),e.parentNode=t},setTemplateContent(t,e){t.content=e},getTemplateContent(t){return t.content},setDocumentType(t,e,r,n){const a=t.childNodes.find(o=>o.nodeName==="#documentType");if(a)a.name=e,a.publicId=r,a.systemId=n;else{const o={nodeName:"#documentType",name:e,publicId:r,systemId:n,parentNode:null};Jn.appendChild(t,o)}},setDocumentMode(t,e){t.mode=e},getDocumentMode(t){return t.mode},detachNode(t){if(t.parentNode){const e=t.parentNode.childNodes.indexOf(t);t.parentNode.childNodes.splice(e,1),t.parentNode=null}},insertText(t,e){if(t.childNodes.length>0){const r=t.childNodes[t.childNodes.length-1];if(Jn.isTextNode(r)){r.value+=e;return}}Jn.appendChild(t,Jn.createTextNode(e))},insertTextBefore(t,e,r){const n=t.childNodes[t.childNodes.indexOf(r)-1];n&&Jn.isTextNode(n)?n.value+=e:Jn.insertBefore(t,Jn.createTextNode(e),r)},adoptAttributes(t,e){const r=new Set(t.attrs.map(n=>n.name));for(let n=0;n<e.length;n++)r.has(e[n].name)||t.attrs.push(e[n])},getFirstChild(t){return t.childNodes[0]},getChildNodes(t){return t.childNodes},getParentNode(t){return t.parentNode},getAttrList(t){return t.attrs},getTagName(t){return t.tagName},getNamespaceURI(t){return t.namespaceURI},getTextNodeContent(t){return t.value},getCommentNodeContent(t){return t.data},getDocumentTypeNodeName(t){return t.name},getDocumentTypeNodePublicId(t){return t.publicId},getDocumentTypeNodeSystemId(t){return t.systemId},isTextNode(t){return t.nodeName==="#text"},isCommentNode(t){return t.nodeName==="#comment"},isDocumentTypeNode(t){return t.nodeName==="#documentType"},isElementNode(t){return Object.prototype.hasOwnProperty.call(t,"tagName")},setNodeSourceCodeLocation(t,e){t.sourceCodeLocation=e},getNodeSourceCodeLocation(t){return t.sourceCodeLocation},updateNodeSourceCodeLocation(t,e){t.sourceCodeLocation={...t.sourceCodeLocation,...e}}},Ck="html",yU="about:legacy-compat",kU="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",wk=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],EU=[...wk,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],TU=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Sk=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],CU=[...Sk,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function xk(t,e){return e.some(r=>t.startsWith(r))}function wU(t){return t.name===Ck&&t.publicId===null&&(t.systemId===null||t.systemId===yU)}function SU(t){if(t.name!==Ck)return Qr.QUIRKS;const{systemId:e}=t;if(e&&e.toLowerCase()===kU)return Qr.QUIRKS;let{publicId:r}=t;if(r!==null){if(r=r.toLowerCase(),TU.has(r))return Qr.QUIRKS;let n=e===null?EU:wk;if(xk(r,n))return Qr.QUIRKS;if(n=e===null?Sk:CU,xk(r,n))return Qr.LIMITED_QUIRKS}return Qr.NO_QUIRKS}const Ak={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},xU="definitionurl",AU="definitionURL",OU=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(t=>[t.toLowerCase(),t])),NU=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:pe.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:pe.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:pe.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:pe.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:pe.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:pe.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:pe.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:pe.XML}],["xml:space",{prefix:"xml",name:"space",namespace:pe.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:pe.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:pe.XMLNS}]]),PU=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(t=>[t.toLowerCase(),t])),IU=new Set([m.B,m.BIG,m.BLOCKQUOTE,m.BODY,m.BR,m.CENTER,m.CODE,m.DD,m.DIV,m.DL,m.DT,m.EM,m.EMBED,m.H1,m.H2,m.H3,m.H4,m.H5,m.H6,m.HEAD,m.HR,m.I,m.IMG,m.LI,m.LISTING,m.MENU,m.META,m.NOBR,m.OL,m.P,m.PRE,m.RUBY,m.S,m.SMALL,m.SPAN,m.STRONG,m.STRIKE,m.SUB,m.SUP,m.TABLE,m.TT,m.U,m.UL,m.VAR]);function LU(t){const e=t.tagID;return e===m.FONT&&t.attrs.some(({name:n})=>n===_a.COLOR||n===_a.SIZE||n===_a.FACE)||IU.has(e)}function Ok(t){for(let e=0;e<t.attrs.length;e++)if(t.attrs[e].name===xU){t.attrs[e].name=AU;break}}function Nk(t){for(let e=0;e<t.attrs.length;e++){const r=OU.get(t.attrs[e].name);r!=null&&(t.attrs[e].name=r)}}function vp(t){for(let e=0;e<t.attrs.length;e++){const r=NU.get(t.attrs[e].name);r&&(t.attrs[e].prefix=r.prefix,t.attrs[e].name=r.name,t.attrs[e].namespace=r.namespace)}}function RU(t){const e=PU.get(t.tagName);e!=null&&(t.tagName=e,t.tagID=Vl(t.tagName))}function DU(t,e){return e===pe.MATHML&&(t===m.MI||t===m.MO||t===m.MN||t===m.MS||t===m.MTEXT)}function MU(t,e,r){if(e===pe.MATHML&&t===m.ANNOTATION_XML){for(let n=0;n<r.length;n++)if(r[n].name===_a.ENCODING){const a=r[n].value.toLowerCase();return a===Ak.TEXT_HTML||a===Ak.APPLICATION_XML}}return e===pe.SVG&&(t===m.FOREIGN_OBJECT||t===m.DESC||t===m.TITLE)}function $U(t,e,r,n){return(!n||n===pe.HTML)&&MU(t,e,r)||(!n||n===pe.MATHML)&&DU(t,e)}const FU="hidden",BU=8,HU=3;var H;(function(t){t[t.INITIAL=0]="INITIAL",t[t.BEFORE_HTML=1]="BEFORE_HTML",t[t.BEFORE_HEAD=2]="BEFORE_HEAD",t[t.IN_HEAD=3]="IN_HEAD",t[t.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",t[t.AFTER_HEAD=5]="AFTER_HEAD",t[t.IN_BODY=6]="IN_BODY",t[t.TEXT=7]="TEXT",t[t.IN_TABLE=8]="IN_TABLE",t[t.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",t[t.IN_CAPTION=10]="IN_CAPTION",t[t.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",t[t.IN_TABLE_BODY=12]="IN_TABLE_BODY",t[t.IN_ROW=13]="IN_ROW",t[t.IN_CELL=14]="IN_CELL",t[t.IN_SELECT=15]="IN_SELECT",t[t.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",t[t.IN_TEMPLATE=17]="IN_TEMPLATE",t[t.AFTER_BODY=18]="AFTER_BODY",t[t.IN_FRAMESET=19]="IN_FRAMESET",t[t.AFTER_FRAMESET=20]="AFTER_FRAMESET",t[t.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",t[t.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(H||(H={}));const UU={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Pk=new Set([m.TABLE,m.TBODY,m.TFOOT,m.THEAD,m.TR]),Ik={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Jn,onParseError:null};class jU{constructor(e,r,n=null,a=null){this.fragmentContext=n,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=H.INITIAL,this.originalInsertionMode=H.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...Ik,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=r??this.treeAdapter.createDocument(),this.tokenizer=new fU(this.options,this),this.activeFormattingElements=new bU(this.treeAdapter),this.fragmentContextID=n?Vl(this.treeAdapter.getTagName(n)):m.UNKNOWN,this._setContextModes(n??this.document,this.fragmentContextID),this.openElements=new _U(this.document,this.treeAdapter,this)}static parse(e,r){const n=new this(r);return n.tokenizer.write(e,!0),n.document}static getFragmentParser(e,r){const n={...Ik,...r};e??(e=n.treeAdapter.createElement(K.TEMPLATE,pe.HTML,[]));const a=n.treeAdapter.createElement("documentmock",pe.HTML,[]),o=new this(n,a,e);return o.fragmentContextID===m.TEMPLATE&&o.tmplInsertionModeStack.unshift(H.IN_TEMPLATE),o._initTokenizerForFragmentParsing(),o._insertFakeRootElement(),o._resetInsertionMode(),o._findFormInFragmentContext(),o}getFragment(){const e=this.treeAdapter.getFirstChild(this.document),r=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,r),r}_err(e,r,n){var a;if(!this.onParseError)return;const o=(a=e.location)!==null&&a!==void 0?a:UU,c={code:r,startLine:o.startLine,startCol:o.startCol,startOffset:o.startOffset,endLine:n?o.startLine:o.endLine,endCol:n?o.startCol:o.endCol,endOffset:n?o.startOffset:o.endOffset};this.onParseError(c)}onItemPush(e,r,n){var a,o;(o=(a=this.treeAdapter).onItemPush)===null||o===void 0||o.call(a,e),n&&this.openElements.stackTop>0&&this._setContextModes(e,r)}onItemPop(e,r){var n,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),(a=(n=this.treeAdapter).onItemPop)===null||a===void 0||a.call(n,e,this.openElements.current),r){let o,c;this.openElements.stackTop===0&&this.fragmentContext?(o=this.fragmentContext,c=this.fragmentContextID):{current:o,currentTagId:c}=this.openElements,this._setContextModes(o,c)}}_setContextModes(e,r){const n=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===pe.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&e!==void 0&&r!==void 0&&!this._isIntegrationPoint(r,e)}_switchToTextParsing(e,r){this._insertElement(e,pe.HTML),this.tokenizer.state=r,this.originalInsertionMode=this.insertionMode,this.insertionMode=H.TEXT}switchToPlaintextParsing(){this.insertionMode=H.TEXT,this.originalInsertionMode=H.IN_BODY,this.tokenizer.state=Lr.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===K.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==pe.HTML))switch(this.fragmentContextID){case m.TITLE:case m.TEXTAREA:{this.tokenizer.state=Lr.RCDATA;break}case m.STYLE:case m.XMP:case m.IFRAME:case m.NOEMBED:case m.NOFRAMES:case m.NOSCRIPT:{this.tokenizer.state=Lr.RAWTEXT;break}case m.SCRIPT:{this.tokenizer.state=Lr.SCRIPT_DATA;break}case m.PLAINTEXT:{this.tokenizer.state=Lr.PLAINTEXT;break}}}_setDocumentType(e){const r=e.name||"",n=e.publicId||"",a=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,r,n,a),e.location){const c=this.treeAdapter.getChildNodes(this.document).find(d=>this.treeAdapter.isDocumentTypeNode(d));c&&this.treeAdapter.setNodeSourceCodeLocation(c,e.location)}}_attachElementToTree(e,r){if(this.options.sourceCodeLocationInfo){const n=r&&{...r,startTag:r};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const n=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(n??this.document,e)}}_appendElement(e,r){const n=this.treeAdapter.createElement(e.tagName,r,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,r){const n=this.treeAdapter.createElement(e.tagName,r,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,r){const n=this.treeAdapter.createElement(e,pe.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,r)}_insertTemplate(e){const r=this.treeAdapter.createElement(e.tagName,pe.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(r,n),this._attachElementToTree(r,e.location),this.openElements.push(r,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(K.HTML,pe.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,m.HTML)}_appendCommentNode(e,r){const n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(r,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let r,n;if(this._shouldFosterParentOnInsertion()?({parent:r,beforeElement:n}=this._findFosterParentingLocation(),n?this.treeAdapter.insertTextBefore(r,e.chars,n):this.treeAdapter.insertText(r,e.chars)):(r=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(r,e.chars)),!e.location)return;const a=this.treeAdapter.getChildNodes(r),o=n?a.lastIndexOf(n):a.length,c=a[o-1];if(this.treeAdapter.getNodeSourceCodeLocation(c)){const{endLine:p,endCol:v,endOffset:b}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(c,{endLine:p,endCol:v,endOffset:b})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(c,e.location)}_adoptNodes(e,r){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(r,n)}_setEndLocation(e,r){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&r.location){const n=r.location,a=this.treeAdapter.getTagName(e),o=r.type===ot.END_TAG&&a===r.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,o)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let r,n;return this.openElements.stackTop===0&&this.fragmentContext?(r=this.fragmentContext,n=this.fragmentContextID):{current:r,currentTagId:n}=this.openElements,e.tagID===m.SVG&&this.treeAdapter.getTagName(r)===K.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(r)===pe.MATHML?!1:this.tokenizer.inForeignNode||(e.tagID===m.MGLYPH||e.tagID===m.MALIGNMARK)&&n!==void 0&&!this._isIntegrationPoint(n,r,pe.HTML)}_processToken(e){switch(e.type){case ot.CHARACTER:{this.onCharacter(e);break}case ot.NULL_CHARACTER:{this.onNullCharacter(e);break}case ot.COMMENT:{this.onComment(e);break}case ot.DOCTYPE:{this.onDoctype(e);break}case ot.START_TAG:{this._processStartTag(e);break}case ot.END_TAG:{this.onEndTag(e);break}case ot.EOF:{this.onEof(e);break}case ot.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(e);break}}}_isIntegrationPoint(e,r,n){const a=this.treeAdapter.getNamespaceURI(r),o=this.treeAdapter.getAttrList(r);return $U(e,a,o,n)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const r=this.activeFormattingElements.entries.findIndex(a=>a.type===Nn.Marker||this.openElements.contains(a.element)),n=r===-1?e-1:r-1;for(let a=n;a>=0;a--){const o=this.activeFormattingElements.entries[a];this._insertElement(o.token,this.treeAdapter.getNamespaceURI(o.element)),o.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=H.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(m.P),this.openElements.popUntilTagNamePopped(m.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(e===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case m.TR:{this.insertionMode=H.IN_ROW;return}case m.TBODY:case m.THEAD:case m.TFOOT:{this.insertionMode=H.IN_TABLE_BODY;return}case m.CAPTION:{this.insertionMode=H.IN_CAPTION;return}case m.COLGROUP:{this.insertionMode=H.IN_COLUMN_GROUP;return}case m.TABLE:{this.insertionMode=H.IN_TABLE;return}case m.BODY:{this.insertionMode=H.IN_BODY;return}case m.FRAMESET:{this.insertionMode=H.IN_FRAMESET;return}case m.SELECT:{this._resetInsertionModeForSelect(e);return}case m.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case m.HTML:{this.insertionMode=this.headElement?H.AFTER_HEAD:H.BEFORE_HEAD;return}case m.TD:case m.TH:{if(e>0){this.insertionMode=H.IN_CELL;return}break}case m.HEAD:{if(e>0){this.insertionMode=H.IN_HEAD;return}break}}this.insertionMode=H.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let r=e-1;r>0;r--){const n=this.openElements.tagIDs[r];if(n===m.TEMPLATE)break;if(n===m.TABLE){this.insertionMode=H.IN_SELECT_IN_TABLE;return}}this.insertionMode=H.IN_SELECT}_isElementCausesFosterParenting(e){return Pk.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const r=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case m.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(r)===pe.HTML)return{parent:this.treeAdapter.getTemplateContent(r),beforeElement:null};break}case m.TABLE:{const n=this.treeAdapter.getParentNode(r);return n?{parent:n,beforeElement:r}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const r=this._findFosterParentingLocation();r.beforeElement?this.treeAdapter.insertBefore(r.parent,e,r.beforeElement):this.treeAdapter.appendChild(r.parent,e)}_isSpecialElement(e,r){const n=this.treeAdapter.getNamespaceURI(e);return oU[n].has(r)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){_j(this,e);return}switch(this.insertionMode){case H.INITIAL:{Wo(this,e);break}case H.BEFORE_HTML:{Go(this,e);break}case H.BEFORE_HEAD:{zo(this,e);break}case H.IN_HEAD:{qo(this,e);break}case H.IN_HEAD_NO_SCRIPT:{Yo(this,e);break}case H.AFTER_HEAD:{Ko(this,e);break}case H.IN_BODY:case H.IN_CAPTION:case H.IN_CELL:case H.IN_TEMPLATE:{Rk(this,e);break}case H.TEXT:case H.IN_SELECT:case H.IN_SELECT_IN_TABLE:{this._insertCharacters(e);break}case H.IN_TABLE:case H.IN_TABLE_BODY:case H.IN_ROW:{yp(this,e);break}case H.IN_TABLE_TEXT:{jk(this,e);break}case H.IN_COLUMN_GROUP:{tc(this,e);break}case H.AFTER_BODY:{ic(this,e);break}case H.AFTER_AFTER_BODY:{ac(this,e);break}}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){gj(this,e);return}switch(this.insertionMode){case H.INITIAL:{Wo(this,e);break}case H.BEFORE_HTML:{Go(this,e);break}case H.BEFORE_HEAD:{zo(this,e);break}case H.IN_HEAD:{qo(this,e);break}case H.IN_HEAD_NO_SCRIPT:{Yo(this,e);break}case H.AFTER_HEAD:{Ko(this,e);break}case H.TEXT:{this._insertCharacters(e);break}case H.IN_TABLE:case H.IN_TABLE_BODY:case H.IN_ROW:{yp(this,e);break}case H.IN_COLUMN_GROUP:{tc(this,e);break}case H.AFTER_BODY:{ic(this,e);break}case H.AFTER_AFTER_BODY:{ac(this,e);break}}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML){_p(this,e);return}switch(this.insertionMode){case H.INITIAL:case H.BEFORE_HTML:case H.BEFORE_HEAD:case H.IN_HEAD:case H.IN_HEAD_NO_SCRIPT:case H.AFTER_HEAD:case H.IN_BODY:case H.IN_TABLE:case H.IN_CAPTION:case H.IN_COLUMN_GROUP:case H.IN_TABLE_BODY:case H.IN_ROW:case H.IN_CELL:case H.IN_SELECT:case H.IN_SELECT_IN_TABLE:case H.IN_TEMPLATE:case H.IN_FRAMESET:case H.AFTER_FRAMESET:{_p(this,e);break}case H.IN_TABLE_TEXT:{Qo(this,e);break}case H.AFTER_BODY:{XU(this,e);break}case H.AFTER_AFTER_BODY:case H.AFTER_AFTER_FRAMESET:{VU(this,e);break}}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case H.INITIAL:{QU(this,e);break}case H.BEFORE_HEAD:case H.IN_HEAD:case H.IN_HEAD_NO_SCRIPT:case H.AFTER_HEAD:{this._err(e,se.misplacedDoctype);break}case H.IN_TABLE_TEXT:{Qo(this,e);break}}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,se.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?bj(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case H.INITIAL:{Wo(this,e);break}case H.BEFORE_HTML:{JU(this,e);break}case H.BEFORE_HEAD:{e7(this,e);break}case H.IN_HEAD:{dn(this,e);break}case H.IN_HEAD_NO_SCRIPT:{n7(this,e);break}case H.AFTER_HEAD:{a7(this,e);break}case H.IN_BODY:{hr(this,e);break}case H.IN_TABLE:{vs(this,e);break}case H.IN_TABLE_TEXT:{Qo(this,e);break}case H.IN_CAPTION:{tj(this,e);break}case H.IN_COLUMN_GROUP:{kp(this,e);break}case H.IN_TABLE_BODY:{rc(this,e);break}case H.IN_ROW:{nc(this,e);break}case H.IN_CELL:{ij(this,e);break}case H.IN_SELECT:{zk(this,e);break}case H.IN_SELECT_IN_TABLE:{sj(this,e);break}case H.IN_TEMPLATE:{uj(this,e);break}case H.AFTER_BODY:{cj(this,e);break}case H.IN_FRAMESET:{fj(this,e);break}case H.AFTER_FRAMESET:{hj(this,e);break}case H.AFTER_AFTER_BODY:{mj(this,e);break}case H.AFTER_AFTER_FRAMESET:{vj(this,e);break}}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?yj(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case H.INITIAL:{Wo(this,e);break}case H.BEFORE_HTML:{ZU(this,e);break}case H.BEFORE_HEAD:{t7(this,e);break}case H.IN_HEAD:{r7(this,e);break}case H.IN_HEAD_NO_SCRIPT:{i7(this,e);break}case H.AFTER_HEAD:{s7(this,e);break}case H.IN_BODY:{ec(this,e);break}case H.TEXT:{z7(this,e);break}case H.IN_TABLE:{Xo(this,e);break}case H.IN_TABLE_TEXT:{Qo(this,e);break}case H.IN_CAPTION:{rj(this,e);break}case H.IN_COLUMN_GROUP:{nj(this,e);break}case H.IN_TABLE_BODY:{Ep(this,e);break}case H.IN_ROW:{Gk(this,e);break}case H.IN_CELL:{aj(this,e);break}case H.IN_SELECT:{qk(this,e);break}case H.IN_SELECT_IN_TABLE:{oj(this,e);break}case H.IN_TEMPLATE:{lj(this,e);break}case H.AFTER_BODY:{Kk(this,e);break}case H.IN_FRAMESET:{dj(this,e);break}case H.AFTER_FRAMESET:{pj(this,e);break}case H.AFTER_AFTER_BODY:{ac(this,e);break}}}onEof(e){switch(this.insertionMode){case H.INITIAL:{Wo(this,e);break}case H.BEFORE_HTML:{Go(this,e);break}case H.BEFORE_HEAD:{zo(this,e);break}case H.IN_HEAD:{qo(this,e);break}case H.IN_HEAD_NO_SCRIPT:{Yo(this,e);break}case H.AFTER_HEAD:{Ko(this,e);break}case H.IN_BODY:case H.IN_TABLE:case H.IN_CAPTION:case H.IN_COLUMN_GROUP:case H.IN_TABLE_BODY:case H.IN_ROW:case H.IN_CELL:case H.IN_SELECT:case H.IN_SELECT_IN_TABLE:{Hk(this,e);break}case H.TEXT:{q7(this,e);break}case H.IN_TABLE_TEXT:{Qo(this,e);break}case H.IN_TEMPLATE:{Yk(this,e);break}case H.AFTER_BODY:case H.IN_FRAMESET:case H.AFTER_FRAMESET:case H.AFTER_AFTER_BODY:case H.AFTER_AFTER_FRAMESET:{bp(this,e);break}}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===I.LINE_FEED)){if(e.chars.length===1)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(e);return}switch(this.insertionMode){case H.IN_HEAD:case H.IN_HEAD_NO_SCRIPT:case H.AFTER_HEAD:case H.TEXT:case H.IN_COLUMN_GROUP:case H.IN_SELECT:case H.IN_SELECT_IN_TABLE:case H.IN_FRAMESET:case H.AFTER_FRAMESET:{this._insertCharacters(e);break}case H.IN_BODY:case H.IN_CAPTION:case H.IN_CELL:case H.IN_TEMPLATE:case H.AFTER_BODY:case H.AFTER_AFTER_BODY:case H.AFTER_AFTER_FRAMESET:{Lk(this,e);break}case H.IN_TABLE:case H.IN_TABLE_BODY:case H.IN_ROW:{yp(this,e);break}case H.IN_TABLE_TEXT:{Uk(this,e);break}}}}function WU(t,e){let r=t.activeFormattingElements.getElementEntryInScopeWithTagName(e.tagName);return r?t.openElements.contains(r.element)?t.openElements.hasInScope(e.tagID)||(r=null):(t.activeFormattingElements.removeEntry(r),r=null):Bk(t,e),r}function GU(t,e){let r=null,n=t.openElements.stackTop;for(;n>=0;n--){const a=t.openElements.items[n];if(a===e.element)break;t._isSpecialElement(a,t.openElements.tagIDs[n])&&(r=a)}return r||(t.openElements.shortenToLength(Math.max(n,0)),t.activeFormattingElements.removeEntry(e)),r}function zU(t,e,r){let n=e,a=t.openElements.getCommonAncestor(e);for(let o=0,c=a;c!==r;o++,c=a){a=t.openElements.getCommonAncestor(c);const d=t.activeFormattingElements.getElementEntry(c),p=d&&o>=HU;!d||p?(p&&t.activeFormattingElements.removeEntry(d),t.openElements.remove(c)):(c=qU(t,d),n===e&&(t.activeFormattingElements.bookmark=d),t.treeAdapter.detachNode(n),t.treeAdapter.appendChild(c,n),n=c)}return n}function qU(t,e){const r=t.treeAdapter.getNamespaceURI(e.element),n=t.treeAdapter.createElement(e.token.tagName,r,e.token.attrs);return t.openElements.replace(e.element,n),e.element=n,n}function YU(t,e,r){const n=t.treeAdapter.getTagName(e),a=Vl(n);if(t._isElementCausesFosterParenting(a))t._fosterParentElement(r);else{const o=t.treeAdapter.getNamespaceURI(e);a===m.TEMPLATE&&o===pe.HTML&&(e=t.treeAdapter.getTemplateContent(e)),t.treeAdapter.appendChild(e,r)}}function KU(t,e,r){const n=t.treeAdapter.getNamespaceURI(r.element),{token:a}=r,o=t.treeAdapter.createElement(a.tagName,n,a.attrs);t._adoptNodes(e,o),t.treeAdapter.appendChild(e,o),t.activeFormattingElements.insertElementAfterBookmark(o,a),t.activeFormattingElements.removeEntry(r),t.openElements.remove(r.element),t.openElements.insertAfter(e,o,a.tagID)}function gp(t,e){for(let r=0;r<BU;r++){const n=WU(t,e);if(!n)break;const a=GU(t,n);if(!a)break;t.activeFormattingElements.bookmark=n;const o=zU(t,a,n.element),c=t.openElements.getCommonAncestor(n.element);t.treeAdapter.detachNode(o),c&&YU(t,c,o),KU(t,a,n)}}function _p(t,e){t._appendCommentNode(e,t.openElements.currentTmplContentOrNode)}function XU(t,e){t._appendCommentNode(e,t.openElements.items[0])}function VU(t,e){t._appendCommentNode(e,t.document)}function bp(t,e){if(t.stopped=!0,e.location){const r=t.fragmentContext?0:2;for(let n=t.openElements.stackTop;n>=r;n--)t._setEndLocation(t.openElements.items[n],e);if(!t.fragmentContext&&t.openElements.stackTop>=0){const n=t.openElements.items[0],a=t.treeAdapter.getNodeSourceCodeLocation(n);if(a&&!a.endTag&&(t._setEndLocation(n,e),t.openElements.stackTop>=1)){const o=t.openElements.items[1],c=t.treeAdapter.getNodeSourceCodeLocation(o);c&&!c.endTag&&t._setEndLocation(o,e)}}}}function QU(t,e){t._setDocumentType(e);const r=e.forceQuirks?Qr.QUIRKS:SU(e);wU(e)||t._err(e,se.nonConformingDoctype),t.treeAdapter.setDocumentMode(t.document,r),t.insertionMode=H.BEFORE_HTML}function Wo(t,e){t._err(e,se.missingDoctype,!0),t.treeAdapter.setDocumentMode(t.document,Qr.QUIRKS),t.insertionMode=H.BEFORE_HTML,t._processToken(e)}function JU(t,e){e.tagID===m.HTML?(t._insertElement(e,pe.HTML),t.insertionMode=H.BEFORE_HEAD):Go(t,e)}function ZU(t,e){const r=e.tagID;(r===m.HTML||r===m.HEAD||r===m.BODY||r===m.BR)&&Go(t,e)}function Go(t,e){t._insertFakeRootElement(),t.insertionMode=H.BEFORE_HEAD,t._processToken(e)}function e7(t,e){switch(e.tagID){case m.HTML:{hr(t,e);break}case m.HEAD:{t._insertElement(e,pe.HTML),t.headElement=t.openElements.current,t.insertionMode=H.IN_HEAD;break}default:zo(t,e)}}function t7(t,e){const r=e.tagID;r===m.HEAD||r===m.BODY||r===m.HTML||r===m.BR?zo(t,e):t._err(e,se.endTagWithoutMatchingOpenElement)}function zo(t,e){t._insertFakeElement(K.HEAD,m.HEAD),t.headElement=t.openElements.current,t.insertionMode=H.IN_HEAD,t._processToken(e)}function dn(t,e){switch(e.tagID){case m.HTML:{hr(t,e);break}case m.BASE:case m.BASEFONT:case m.BGSOUND:case m.LINK:case m.META:{t._appendElement(e,pe.HTML),e.ackSelfClosing=!0;break}case m.TITLE:{t._switchToTextParsing(e,Lr.RCDATA);break}case m.NOSCRIPT:{t.options.scriptingEnabled?t._switchToTextParsing(e,Lr.RAWTEXT):(t._insertElement(e,pe.HTML),t.insertionMode=H.IN_HEAD_NO_SCRIPT);break}case m.NOFRAMES:case m.STYLE:{t._switchToTextParsing(e,Lr.RAWTEXT);break}case m.SCRIPT:{t._switchToTextParsing(e,Lr.SCRIPT_DATA);break}case m.TEMPLATE:{t._insertTemplate(e),t.activeFormattingElements.insertMarker(),t.framesetOk=!1,t.insertionMode=H.IN_TEMPLATE,t.tmplInsertionModeStack.unshift(H.IN_TEMPLATE);break}case m.HEAD:{t._err(e,se.misplacedStartTagForHeadElement);break}default:qo(t,e)}}function r7(t,e){switch(e.tagID){case m.HEAD:{t.openElements.pop(),t.insertionMode=H.AFTER_HEAD;break}case m.BODY:case m.BR:case m.HTML:{qo(t,e);break}case m.TEMPLATE:{ba(t,e);break}default:t._err(e,se.endTagWithoutMatchingOpenElement)}}function ba(t,e){t.openElements.tmplCount>0?(t.openElements.generateImpliedEndTagsThoroughly(),t.openElements.currentTagId!==m.TEMPLATE&&t._err(e,se.closingOfElementWithOpenChildElements),t.openElements.popUntilTagNamePopped(m.TEMPLATE),t.activeFormattingElements.clearToLastMarker(),t.tmplInsertionModeStack.shift(),t._resetInsertionMode()):t._err(e,se.endTagWithoutMatchingOpenElement)}function qo(t,e){t.openElements.pop(),t.insertionMode=H.AFTER_HEAD,t._processToken(e)}function n7(t,e){switch(e.tagID){case m.HTML:{hr(t,e);break}case m.BASEFONT:case m.BGSOUND:case m.HEAD:case m.LINK:case m.META:case m.NOFRAMES:case m.STYLE:{dn(t,e);break}case m.NOSCRIPT:{t._err(e,se.nestedNoscriptInHead);break}default:Yo(t,e)}}function i7(t,e){switch(e.tagID){case m.NOSCRIPT:{t.openElements.pop(),t.insertionMode=H.IN_HEAD;break}case m.BR:{Yo(t,e);break}default:t._err(e,se.endTagWithoutMatchingOpenElement)}}function Yo(t,e){const r=e.type===ot.EOF?se.openElementsLeftAfterEof:se.disallowedContentInNoscriptInHead;t._err(e,r),t.openElements.pop(),t.insertionMode=H.IN_HEAD,t._processToken(e)}function a7(t,e){switch(e.tagID){case m.HTML:{hr(t,e);break}case m.BODY:{t._insertElement(e,pe.HTML),t.framesetOk=!1,t.insertionMode=H.IN_BODY;break}case m.FRAMESET:{t._insertElement(e,pe.HTML),t.insertionMode=H.IN_FRAMESET;break}case m.BASE:case m.BASEFONT:case m.BGSOUND:case m.LINK:case m.META:case m.NOFRAMES:case m.SCRIPT:case m.STYLE:case m.TEMPLATE:case m.TITLE:{t._err(e,se.abandonedHeadElementChild),t.openElements.push(t.headElement,m.HEAD),dn(t,e),t.openElements.remove(t.headElement);break}case m.HEAD:{t._err(e,se.misplacedStartTagForHeadElement);break}default:Ko(t,e)}}function s7(t,e){switch(e.tagID){case m.BODY:case m.HTML:case m.BR:{Ko(t,e);break}case m.TEMPLATE:{ba(t,e);break}default:t._err(e,se.endTagWithoutMatchingOpenElement)}}function Ko(t,e){t._insertFakeElement(K.BODY,m.BODY),t.insertionMode=H.IN_BODY,Zl(t,e)}function Zl(t,e){switch(e.type){case ot.CHARACTER:{Rk(t,e);break}case ot.WHITESPACE_CHARACTER:{Lk(t,e);break}case ot.COMMENT:{_p(t,e);break}case ot.START_TAG:{hr(t,e);break}case ot.END_TAG:{ec(t,e);break}case ot.EOF:{Hk(t,e);break}}}function Lk(t,e){t._reconstructActiveFormattingElements(),t._insertCharacters(e)}function Rk(t,e){t._reconstructActiveFormattingElements(),t._insertCharacters(e),t.framesetOk=!1}function o7(t,e){t.openElements.tmplCount===0&&t.treeAdapter.adoptAttributes(t.openElements.items[0],e.attrs)}function u7(t,e){const r=t.openElements.tryPeekProperlyNestedBodyElement();r&&t.openElements.tmplCount===0&&(t.framesetOk=!1,t.treeAdapter.adoptAttributes(r,e.attrs))}function l7(t,e){const r=t.openElements.tryPeekProperlyNestedBodyElement();t.framesetOk&&r&&(t.treeAdapter.detachNode(r),t.openElements.popAllUpToHtmlElement(),t._insertElement(e,pe.HTML),t.insertionMode=H.IN_FRAMESET)}function c7(t,e){t.openElements.hasInButtonScope(m.P)&&t._closePElement(),t._insertElement(e,pe.HTML)}function f7(t,e){t.openElements.hasInButtonScope(m.P)&&t._closePElement(),t.openElements.currentTagId!==void 0&&pp.has(t.openElements.currentTagId)&&t.openElements.pop(),t._insertElement(e,pe.HTML)}function d7(t,e){t.openElements.hasInButtonScope(m.P)&&t._closePElement(),t._insertElement(e,pe.HTML),t.skipNextNewLine=!0,t.framesetOk=!1}function h7(t,e){const r=t.openElements.tmplCount>0;(!t.formElement||r)&&(t.openElements.hasInButtonScope(m.P)&&t._closePElement(),t._insertElement(e,pe.HTML),r||(t.formElement=t.openElements.current))}function p7(t,e){t.framesetOk=!1;const r=e.tagID;for(let n=t.openElements.stackTop;n>=0;n--){const a=t.openElements.tagIDs[n];if(r===m.LI&&a===m.LI||(r===m.DD||r===m.DT)&&(a===m.DD||a===m.DT)){t.openElements.generateImpliedEndTagsWithExclusion(a),t.openElements.popUntilTagNamePopped(a);break}if(a!==m.ADDRESS&&a!==m.DIV&&a!==m.P&&t._isSpecialElement(t.openElements.items[n],a))break}t.openElements.hasInButtonScope(m.P)&&t._closePElement(),t._insertElement(e,pe.HTML)}function m7(t,e){t.openElements.hasInButtonScope(m.P)&&t._closePElement(),t._insertElement(e,pe.HTML),t.tokenizer.state=Lr.PLAINTEXT}function v7(t,e){t.openElements.hasInScope(m.BUTTON)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(m.BUTTON)),t._reconstructActiveFormattingElements(),t._insertElement(e,pe.HTML),t.framesetOk=!1}function g7(t,e){const r=t.activeFormattingElements.getElementEntryInScopeWithTagName(K.A);r&&(gp(t,e),t.openElements.remove(r.element),t.activeFormattingElements.removeEntry(r)),t._reconstructActiveFormattingElements(),t._insertElement(e,pe.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}function _7(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,pe.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}function b7(t,e){t._reconstructActiveFormattingElements(),t.openElements.hasInScope(m.NOBR)&&(gp(t,e),t._reconstructActiveFormattingElements()),t._insertElement(e,pe.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}function y7(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,pe.HTML),t.activeFormattingElements.insertMarker(),t.framesetOk=!1}function k7(t,e){t.treeAdapter.getDocumentMode(t.document)!==Qr.QUIRKS&&t.openElements.hasInButtonScope(m.P)&&t._closePElement(),t._insertElement(e,pe.HTML),t.framesetOk=!1,t.insertionMode=H.IN_TABLE}function Dk(t,e){t._reconstructActiveFormattingElements(),t._appendElement(e,pe.HTML),t.framesetOk=!1,e.ackSelfClosing=!0}function Mk(t){const e=mk(t,_a.TYPE);return e!=null&&e.toLowerCase()===FU}function E7(t,e){t._reconstructActiveFormattingElements(),t._appendElement(e,pe.HTML),Mk(e)||(t.framesetOk=!1),e.ackSelfClosing=!0}function T7(t,e){t._appendElement(e,pe.HTML),e.ackSelfClosing=!0}function C7(t,e){t.openElements.hasInButtonScope(m.P)&&t._closePElement(),t._appendElement(e,pe.HTML),t.framesetOk=!1,e.ackSelfClosing=!0}function w7(t,e){e.tagName=K.IMG,e.tagID=m.IMG,Dk(t,e)}function S7(t,e){t._insertElement(e,pe.HTML),t.skipNextNewLine=!0,t.tokenizer.state=Lr.RCDATA,t.originalInsertionMode=t.insertionMode,t.framesetOk=!1,t.insertionMode=H.TEXT}function x7(t,e){t.openElements.hasInButtonScope(m.P)&&t._closePElement(),t._reconstructActiveFormattingElements(),t.framesetOk=!1,t._switchToTextParsing(e,Lr.RAWTEXT)}function A7(t,e){t.framesetOk=!1,t._switchToTextParsing(e,Lr.RAWTEXT)}function $k(t,e){t._switchToTextParsing(e,Lr.RAWTEXT)}function O7(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,pe.HTML),t.framesetOk=!1,t.insertionMode=t.insertionMode===H.IN_TABLE||t.insertionMode===H.IN_CAPTION||t.insertionMode===H.IN_TABLE_BODY||t.insertionMode===H.IN_ROW||t.insertionMode===H.IN_CELL?H.IN_SELECT_IN_TABLE:H.IN_SELECT}function N7(t,e){t.openElements.currentTagId===m.OPTION&&t.openElements.pop(),t._reconstructActiveFormattingElements(),t._insertElement(e,pe.HTML)}function P7(t,e){t.openElements.hasInScope(m.RUBY)&&t.openElements.generateImpliedEndTags(),t._insertElement(e,pe.HTML)}function I7(t,e){t.openElements.hasInScope(m.RUBY)&&t.openElements.generateImpliedEndTagsWithExclusion(m.RTC),t._insertElement(e,pe.HTML)}function L7(t,e){t._reconstructActiveFormattingElements(),Ok(e),vp(e),e.selfClosing?t._appendElement(e,pe.MATHML):t._insertElement(e,pe.MATHML),e.ackSelfClosing=!0}function R7(t,e){t._reconstructActiveFormattingElements(),Nk(e),vp(e),e.selfClosing?t._appendElement(e,pe.SVG):t._insertElement(e,pe.SVG),e.ackSelfClosing=!0}function Fk(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,pe.HTML)}function hr(t,e){switch(e.tagID){case m.I:case m.S:case m.B:case m.U:case m.EM:case m.TT:case m.BIG:case m.CODE:case m.FONT:case m.SMALL:case m.STRIKE:case m.STRONG:{_7(t,e);break}case m.A:{g7(t,e);break}case m.H1:case m.H2:case m.H3:case m.H4:case m.H5:case m.H6:{f7(t,e);break}case m.P:case m.DL:case m.OL:case m.UL:case m.DIV:case m.DIR:case m.NAV:case m.MAIN:case m.MENU:case m.ASIDE:case m.CENTER:case m.FIGURE:case m.FOOTER:case m.HEADER:case m.HGROUP:case m.DIALOG:case m.DETAILS:case m.ADDRESS:case m.ARTICLE:case m.SEARCH:case m.SECTION:case m.SUMMARY:case m.FIELDSET:case m.BLOCKQUOTE:case m.FIGCAPTION:{c7(t,e);break}case m.LI:case m.DD:case m.DT:{p7(t,e);break}case m.BR:case m.IMG:case m.WBR:case m.AREA:case m.EMBED:case m.KEYGEN:{Dk(t,e);break}case m.HR:{C7(t,e);break}case m.RB:case m.RTC:{P7(t,e);break}case m.RT:case m.RP:{I7(t,e);break}case m.PRE:case m.LISTING:{d7(t,e);break}case m.XMP:{x7(t,e);break}case m.SVG:{R7(t,e);break}case m.HTML:{o7(t,e);break}case m.BASE:case m.LINK:case m.META:case m.STYLE:case m.TITLE:case m.SCRIPT:case m.BGSOUND:case m.BASEFONT:case m.TEMPLATE:{dn(t,e);break}case m.BODY:{u7(t,e);break}case m.FORM:{h7(t,e);break}case m.NOBR:{b7(t,e);break}case m.MATH:{L7(t,e);break}case m.TABLE:{k7(t,e);break}case m.INPUT:{E7(t,e);break}case m.PARAM:case m.TRACK:case m.SOURCE:{T7(t,e);break}case m.IMAGE:{w7(t,e);break}case m.BUTTON:{v7(t,e);break}case m.APPLET:case m.OBJECT:case m.MARQUEE:{y7(t,e);break}case m.IFRAME:{A7(t,e);break}case m.SELECT:{O7(t,e);break}case m.OPTION:case m.OPTGROUP:{N7(t,e);break}case m.NOEMBED:case m.NOFRAMES:{$k(t,e);break}case m.FRAMESET:{l7(t,e);break}case m.TEXTAREA:{S7(t,e);break}case m.NOSCRIPT:{t.options.scriptingEnabled?$k(t,e):Fk(t,e);break}case m.PLAINTEXT:{m7(t,e);break}case m.COL:case m.TH:case m.TD:case m.TR:case m.HEAD:case m.FRAME:case m.TBODY:case m.TFOOT:case m.THEAD:case m.CAPTION:case m.COLGROUP:break;default:Fk(t,e)}}function D7(t,e){if(t.openElements.hasInScope(m.BODY)&&(t.insertionMode=H.AFTER_BODY,t.options.sourceCodeLocationInfo)){const r=t.openElements.tryPeekProperlyNestedBodyElement();r&&t._setEndLocation(r,e)}}function M7(t,e){t.openElements.hasInScope(m.BODY)&&(t.insertionMode=H.AFTER_BODY,Kk(t,e))}function $7(t,e){const r=e.tagID;t.openElements.hasInScope(r)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(r))}function F7(t){const e=t.openElements.tmplCount>0,{formElement:r}=t;e||(t.formElement=null),(r||e)&&t.openElements.hasInScope(m.FORM)&&(t.openElements.generateImpliedEndTags(),e?t.openElements.popUntilTagNamePopped(m.FORM):r&&t.openElements.remove(r))}function B7(t){t.openElements.hasInButtonScope(m.P)||t._insertFakeElement(K.P,m.P),t._closePElement()}function H7(t){t.openElements.hasInListItemScope(m.LI)&&(t.openElements.generateImpliedEndTagsWithExclusion(m.LI),t.openElements.popUntilTagNamePopped(m.LI))}function U7(t,e){const r=e.tagID;t.openElements.hasInScope(r)&&(t.openElements.generateImpliedEndTagsWithExclusion(r),t.openElements.popUntilTagNamePopped(r))}function j7(t){t.openElements.hasNumberedHeaderInScope()&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilNumberedHeaderPopped())}function W7(t,e){const r=e.tagID;t.openElements.hasInScope(r)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(r),t.activeFormattingElements.clearToLastMarker())}function G7(t){t._reconstructActiveFormattingElements(),t._insertFakeElement(K.BR,m.BR),t.openElements.pop(),t.framesetOk=!1}function Bk(t,e){const r=e.tagName,n=e.tagID;for(let a=t.openElements.stackTop;a>0;a--){const o=t.openElements.items[a],c=t.openElements.tagIDs[a];if(n===c&&(n!==m.UNKNOWN||t.treeAdapter.getTagName(o)===r)){t.openElements.generateImpliedEndTagsWithExclusion(n),t.openElements.stackTop>=a&&t.openElements.shortenToLength(a);break}if(t._isSpecialElement(o,c))break}}function ec(t,e){switch(e.tagID){case m.A:case m.B:case m.I:case m.S:case m.U:case m.EM:case m.TT:case m.BIG:case m.CODE:case m.FONT:case m.NOBR:case m.SMALL:case m.STRIKE:case m.STRONG:{gp(t,e);break}case m.P:{B7(t);break}case m.DL:case m.UL:case m.OL:case m.DIR:case m.DIV:case m.NAV:case m.PRE:case m.MAIN:case m.MENU:case m.ASIDE:case m.BUTTON:case m.CENTER:case m.FIGURE:case m.FOOTER:case m.HEADER:case m.HGROUP:case m.DIALOG:case m.ADDRESS:case m.ARTICLE:case m.DETAILS:case m.SEARCH:case m.SECTION:case m.SUMMARY:case m.LISTING:case m.FIELDSET:case m.BLOCKQUOTE:case m.FIGCAPTION:{$7(t,e);break}case m.LI:{H7(t);break}case m.DD:case m.DT:{U7(t,e);break}case m.H1:case m.H2:case m.H3:case m.H4:case m.H5:case m.H6:{j7(t);break}case m.BR:{G7(t);break}case m.BODY:{D7(t,e);break}case m.HTML:{M7(t,e);break}case m.FORM:{F7(t);break}case m.APPLET:case m.OBJECT:case m.MARQUEE:{W7(t,e);break}case m.TEMPLATE:{ba(t,e);break}default:Bk(t,e)}}function Hk(t,e){t.tmplInsertionModeStack.length>0?Yk(t,e):bp(t,e)}function z7(t,e){var r;e.tagID===m.SCRIPT&&((r=t.scriptHandler)===null||r===void 0||r.call(t,t.openElements.current)),t.openElements.pop(),t.insertionMode=t.originalInsertionMode}function q7(t,e){t._err(e,se.eofInElementThatCanContainOnlyText),t.openElements.pop(),t.insertionMode=t.originalInsertionMode,t.onEof(e)}function yp(t,e){if(t.openElements.currentTagId!==void 0&&Pk.has(t.openElements.currentTagId))switch(t.pendingCharacterTokens.length=0,t.hasNonWhitespacePendingCharacterToken=!1,t.originalInsertionMode=t.insertionMode,t.insertionMode=H.IN_TABLE_TEXT,e.type){case ot.CHARACTER:{jk(t,e);break}case ot.WHITESPACE_CHARACTER:{Uk(t,e);break}}else Vo(t,e)}function Y7(t,e){t.openElements.clearBackToTableContext(),t.activeFormattingElements.insertMarker(),t._insertElement(e,pe.HTML),t.insertionMode=H.IN_CAPTION}function K7(t,e){t.openElements.clearBackToTableContext(),t._insertElement(e,pe.HTML),t.insertionMode=H.IN_COLUMN_GROUP}function X7(t,e){t.openElements.clearBackToTableContext(),t._insertFakeElement(K.COLGROUP,m.COLGROUP),t.insertionMode=H.IN_COLUMN_GROUP,kp(t,e)}function V7(t,e){t.openElements.clearBackToTableContext(),t._insertElement(e,pe.HTML),t.insertionMode=H.IN_TABLE_BODY}function Q7(t,e){t.openElements.clearBackToTableContext(),t._insertFakeElement(K.TBODY,m.TBODY),t.insertionMode=H.IN_TABLE_BODY,rc(t,e)}function J7(t,e){t.openElements.hasInTableScope(m.TABLE)&&(t.openElements.popUntilTagNamePopped(m.TABLE),t._resetInsertionMode(),t._processStartTag(e))}function Z7(t,e){Mk(e)?t._appendElement(e,pe.HTML):Vo(t,e),e.ackSelfClosing=!0}function ej(t,e){!t.formElement&&t.openElements.tmplCount===0&&(t._insertElement(e,pe.HTML),t.formElement=t.openElements.current,t.openElements.pop())}function vs(t,e){switch(e.tagID){case m.TD:case m.TH:case m.TR:{Q7(t,e);break}case m.STYLE:case m.SCRIPT:case m.TEMPLATE:{dn(t,e);break}case m.COL:{X7(t,e);break}case m.FORM:{ej(t,e);break}case m.TABLE:{J7(t,e);break}case m.TBODY:case m.TFOOT:case m.THEAD:{V7(t,e);break}case m.INPUT:{Z7(t,e);break}case m.CAPTION:{Y7(t,e);break}case m.COLGROUP:{K7(t,e);break}default:Vo(t,e)}}function Xo(t,e){switch(e.tagID){case m.TABLE:{t.openElements.hasInTableScope(m.TABLE)&&(t.openElements.popUntilTagNamePopped(m.TABLE),t._resetInsertionMode());break}case m.TEMPLATE:{ba(t,e);break}case m.BODY:case m.CAPTION:case m.COL:case m.COLGROUP:case m.HTML:case m.TBODY:case m.TD:case m.TFOOT:case m.TH:case m.THEAD:case m.TR:break;default:Vo(t,e)}}function Vo(t,e){const r=t.fosterParentingEnabled;t.fosterParentingEnabled=!0,Zl(t,e),t.fosterParentingEnabled=r}function Uk(t,e){t.pendingCharacterTokens.push(e)}function jk(t,e){t.pendingCharacterTokens.push(e),t.hasNonWhitespacePendingCharacterToken=!0}function Qo(t,e){let r=0;if(t.hasNonWhitespacePendingCharacterToken)for(;r<t.pendingCharacterTokens.length;r++)Vo(t,t.pendingCharacterTokens[r]);else for(;r<t.pendingCharacterTokens.length;r++)t._insertCharacters(t.pendingCharacterTokens[r]);t.insertionMode=t.originalInsertionMode,t._processToken(e)}const Wk=new Set([m.CAPTION,m.COL,m.COLGROUP,m.TBODY,m.TD,m.TFOOT,m.TH,m.THEAD,m.TR]);function tj(t,e){const r=e.tagID;Wk.has(r)?t.openElements.hasInTableScope(m.CAPTION)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(m.CAPTION),t.activeFormattingElements.clearToLastMarker(),t.insertionMode=H.IN_TABLE,vs(t,e)):hr(t,e)}function rj(t,e){const r=e.tagID;switch(r){case m.CAPTION:case m.TABLE:{t.openElements.hasInTableScope(m.CAPTION)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(m.CAPTION),t.activeFormattingElements.clearToLastMarker(),t.insertionMode=H.IN_TABLE,r===m.TABLE&&Xo(t,e));break}case m.BODY:case m.COL:case m.COLGROUP:case m.HTML:case m.TBODY:case m.TD:case m.TFOOT:case m.TH:case m.THEAD:case m.TR:break;default:ec(t,e)}}function kp(t,e){switch(e.tagID){case m.HTML:{hr(t,e);break}case m.COL:{t._appendElement(e,pe.HTML),e.ackSelfClosing=!0;break}case m.TEMPLATE:{dn(t,e);break}default:tc(t,e)}}function nj(t,e){switch(e.tagID){case m.COLGROUP:{t.openElements.currentTagId===m.COLGROUP&&(t.openElements.pop(),t.insertionMode=H.IN_TABLE);break}case m.TEMPLATE:{ba(t,e);break}case m.COL:break;default:tc(t,e)}}function tc(t,e){t.openElements.currentTagId===m.COLGROUP&&(t.openElements.pop(),t.insertionMode=H.IN_TABLE,t._processToken(e))}function rc(t,e){switch(e.tagID){case m.TR:{t.openElements.clearBackToTableBodyContext(),t._insertElement(e,pe.HTML),t.insertionMode=H.IN_ROW;break}case m.TH:case m.TD:{t.openElements.clearBackToTableBodyContext(),t._insertFakeElement(K.TR,m.TR),t.insertionMode=H.IN_ROW,nc(t,e);break}case m.CAPTION:case m.COL:case m.COLGROUP:case m.TBODY:case m.TFOOT:case m.THEAD:{t.openElements.hasTableBodyContextInTableScope()&&(t.openElements.clearBackToTableBodyContext(),t.openElements.pop(),t.insertionMode=H.IN_TABLE,vs(t,e));break}default:vs(t,e)}}function Ep(t,e){const r=e.tagID;switch(e.tagID){case m.TBODY:case m.TFOOT:case m.THEAD:{t.openElements.hasInTableScope(r)&&(t.openElements.clearBackToTableBodyContext(),t.openElements.pop(),t.insertionMode=H.IN_TABLE);break}case m.TABLE:{t.openElements.hasTableBodyContextInTableScope()&&(t.openElements.clearBackToTableBodyContext(),t.openElements.pop(),t.insertionMode=H.IN_TABLE,Xo(t,e));break}case m.BODY:case m.CAPTION:case m.COL:case m.COLGROUP:case m.HTML:case m.TD:case m.TH:case m.TR:break;default:Xo(t,e)}}function nc(t,e){switch(e.tagID){case m.TH:case m.TD:{t.openElements.clearBackToTableRowContext(),t._insertElement(e,pe.HTML),t.insertionMode=H.IN_CELL,t.activeFormattingElements.insertMarker();break}case m.CAPTION:case m.COL:case m.COLGROUP:case m.TBODY:case m.TFOOT:case m.THEAD:case m.TR:{t.openElements.hasInTableScope(m.TR)&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=H.IN_TABLE_BODY,rc(t,e));break}default:vs(t,e)}}function Gk(t,e){switch(e.tagID){case m.TR:{t.openElements.hasInTableScope(m.TR)&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=H.IN_TABLE_BODY);break}case m.TABLE:{t.openElements.hasInTableScope(m.TR)&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=H.IN_TABLE_BODY,Ep(t,e));break}case m.TBODY:case m.TFOOT:case m.THEAD:{(t.openElements.hasInTableScope(e.tagID)||t.openElements.hasInTableScope(m.TR))&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=H.IN_TABLE_BODY,Ep(t,e));break}case m.BODY:case m.CAPTION:case m.COL:case m.COLGROUP:case m.HTML:case m.TD:case m.TH:break;default:Xo(t,e)}}function ij(t,e){const r=e.tagID;Wk.has(r)?(t.openElements.hasInTableScope(m.TD)||t.openElements.hasInTableScope(m.TH))&&(t._closeTableCell(),nc(t,e)):hr(t,e)}function aj(t,e){const r=e.tagID;switch(r){case m.TD:case m.TH:{t.openElements.hasInTableScope(r)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(r),t.activeFormattingElements.clearToLastMarker(),t.insertionMode=H.IN_ROW);break}case m.TABLE:case m.TBODY:case m.TFOOT:case m.THEAD:case m.TR:{t.openElements.hasInTableScope(r)&&(t._closeTableCell(),Gk(t,e));break}case m.BODY:case m.CAPTION:case m.COL:case m.COLGROUP:case m.HTML:break;default:ec(t,e)}}function zk(t,e){switch(e.tagID){case m.HTML:{hr(t,e);break}case m.OPTION:{t.openElements.currentTagId===m.OPTION&&t.openElements.pop(),t._insertElement(e,pe.HTML);break}case m.OPTGROUP:{t.openElements.currentTagId===m.OPTION&&t.openElements.pop(),t.openElements.currentTagId===m.OPTGROUP&&t.openElements.pop(),t._insertElement(e,pe.HTML);break}case m.HR:{t.openElements.currentTagId===m.OPTION&&t.openElements.pop(),t.openElements.currentTagId===m.OPTGROUP&&t.openElements.pop(),t._appendElement(e,pe.HTML),e.ackSelfClosing=!0;break}case m.INPUT:case m.KEYGEN:case m.TEXTAREA:case m.SELECT:{t.openElements.hasInSelectScope(m.SELECT)&&(t.openElements.popUntilTagNamePopped(m.SELECT),t._resetInsertionMode(),e.tagID!==m.SELECT&&t._processStartTag(e));break}case m.SCRIPT:case m.TEMPLATE:{dn(t,e);break}}}function qk(t,e){switch(e.tagID){case m.OPTGROUP:{t.openElements.stackTop>0&&t.openElements.currentTagId===m.OPTION&&t.openElements.tagIDs[t.openElements.stackTop-1]===m.OPTGROUP&&t.openElements.pop(),t.openElements.currentTagId===m.OPTGROUP&&t.openElements.pop();break}case m.OPTION:{t.openElements.currentTagId===m.OPTION&&t.openElements.pop();break}case m.SELECT:{t.openElements.hasInSelectScope(m.SELECT)&&(t.openElements.popUntilTagNamePopped(m.SELECT),t._resetInsertionMode());break}case m.TEMPLATE:{ba(t,e);break}}}function sj(t,e){const r=e.tagID;r===m.CAPTION||r===m.TABLE||r===m.TBODY||r===m.TFOOT||r===m.THEAD||r===m.TR||r===m.TD||r===m.TH?(t.openElements.popUntilTagNamePopped(m.SELECT),t._resetInsertionMode(),t._processStartTag(e)):zk(t,e)}function oj(t,e){const r=e.tagID;r===m.CAPTION||r===m.TABLE||r===m.TBODY||r===m.TFOOT||r===m.THEAD||r===m.TR||r===m.TD||r===m.TH?t.openElements.hasInTableScope(r)&&(t.openElements.popUntilTagNamePopped(m.SELECT),t._resetInsertionMode(),t.onEndTag(e)):qk(t,e)}function uj(t,e){switch(e.tagID){case m.BASE:case m.BASEFONT:case m.BGSOUND:case m.LINK:case m.META:case m.NOFRAMES:case m.SCRIPT:case m.STYLE:case m.TEMPLATE:case m.TITLE:{dn(t,e);break}case m.CAPTION:case m.COLGROUP:case m.TBODY:case m.TFOOT:case m.THEAD:{t.tmplInsertionModeStack[0]=H.IN_TABLE,t.insertionMode=H.IN_TABLE,vs(t,e);break}case m.COL:{t.tmplInsertionModeStack[0]=H.IN_COLUMN_GROUP,t.insertionMode=H.IN_COLUMN_GROUP,kp(t,e);break}case m.TR:{t.tmplInsertionModeStack[0]=H.IN_TABLE_BODY,t.insertionMode=H.IN_TABLE_BODY,rc(t,e);break}case m.TD:case m.TH:{t.tmplInsertionModeStack[0]=H.IN_ROW,t.insertionMode=H.IN_ROW,nc(t,e);break}default:t.tmplInsertionModeStack[0]=H.IN_BODY,t.insertionMode=H.IN_BODY,hr(t,e)}}function lj(t,e){e.tagID===m.TEMPLATE&&ba(t,e)}function Yk(t,e){t.openElements.tmplCount>0?(t.openElements.popUntilTagNamePopped(m.TEMPLATE),t.activeFormattingElements.clearToLastMarker(),t.tmplInsertionModeStack.shift(),t._resetInsertionMode(),t.onEof(e)):bp(t,e)}function cj(t,e){e.tagID===m.HTML?hr(t,e):ic(t,e)}function Kk(t,e){var r;if(e.tagID===m.HTML){if(t.fragmentContext||(t.insertionMode=H.AFTER_AFTER_BODY),t.options.sourceCodeLocationInfo&&t.openElements.tagIDs[0]===m.HTML){t._setEndLocation(t.openElements.items[0],e);const n=t.openElements.items[1];n&&!(!((r=t.treeAdapter.getNodeSourceCodeLocation(n))===null||r===void 0)&&r.endTag)&&t._setEndLocation(n,e)}}else ic(t,e)}function ic(t,e){t.insertionMode=H.IN_BODY,Zl(t,e)}function fj(t,e){switch(e.tagID){case m.HTML:{hr(t,e);break}case m.FRAMESET:{t._insertElement(e,pe.HTML);break}case m.FRAME:{t._appendElement(e,pe.HTML),e.ackSelfClosing=!0;break}case m.NOFRAMES:{dn(t,e);break}}}function dj(t,e){e.tagID===m.FRAMESET&&!t.openElements.isRootHtmlElementCurrent()&&(t.openElements.pop(),!t.fragmentContext&&t.openElements.currentTagId!==m.FRAMESET&&(t.insertionMode=H.AFTER_FRAMESET))}function hj(t,e){switch(e.tagID){case m.HTML:{hr(t,e);break}case m.NOFRAMES:{dn(t,e);break}}}function pj(t,e){e.tagID===m.HTML&&(t.insertionMode=H.AFTER_AFTER_FRAMESET)}function mj(t,e){e.tagID===m.HTML?hr(t,e):ac(t,e)}function ac(t,e){t.insertionMode=H.IN_BODY,Zl(t,e)}function vj(t,e){switch(e.tagID){case m.HTML:{hr(t,e);break}case m.NOFRAMES:{dn(t,e);break}}}function gj(t,e){e.chars=xt,t._insertCharacters(e)}function _j(t,e){t._insertCharacters(e),t.framesetOk=!1}function Xk(t){for(;t.treeAdapter.getNamespaceURI(t.openElements.current)!==pe.HTML&&t.openElements.currentTagId!==void 0&&!t._isIntegrationPoint(t.openElements.currentTagId,t.openElements.current);)t.openElements.pop()}function bj(t,e){if(LU(e))Xk(t),t._startTagOutsideForeignContent(e);else{const r=t._getAdjustedCurrentElement(),n=t.treeAdapter.getNamespaceURI(r);n===pe.MATHML?Ok(e):n===pe.SVG&&(RU(e),Nk(e)),vp(e),e.selfClosing?t._appendElement(e,n):t._insertElement(e,n),e.ackSelfClosing=!0}}function yj(t,e){if(e.tagID===m.P||e.tagID===m.BR){Xk(t),t._endTagOutsideForeignContent(e);return}for(let r=t.openElements.stackTop;r>0;r--){const n=t.openElements.items[r];if(t.treeAdapter.getNamespaceURI(n)===pe.HTML){t._endTagOutsideForeignContent(e);break}const a=t.treeAdapter.getTagName(n);if(a.toLowerCase()===e.tagName){e.tagName=a,t.openElements.shortenToLength(r);break}}}K.AREA,K.BASE,K.BASEFONT,K.BGSOUND,K.BR,K.COL,K.EMBED,K.FRAME,K.HR,K.IMG,K.INPUT,K.KEYGEN,K.LINK,K.META,K.PARAM,K.SOURCE,K.TRACK,K.WBR;function kj(t,e){return jU.parse(t,e)}const gs={...Jn,createElement(t,e,r){const n={nodeName:t,attributes:r.reduce((a,o)=>({...a,[o.name]:o.value}),{}),childNodes:[]};return sc(n,{tagName:{value:t,writable:!0},namespaceURI:{value:e,writable:!0}})},createCommentNode(t){return sc({nodeName:"#comment",data:t})},setDocumentType(t,e,r,n){const a=t.childNodes.find(o=>o.nodeName==="#documentType");if(a)a.name=e,a.publicId=r,a.systemId=n;else{const o=sc({nodeName:"#documentType",name:e,publicId:r,systemId:n});gs.appendChild(t,o)}},insertText(t,e){if(t.childNodes.length>0){const r=t.childNodes[t.childNodes.length-1];if(gs.isTextNode(r)){r.value+=e;return}}gs.appendChild(t,Vk(e))},insertTextBefore(t,e,r){const n=t.childNodes[t.childNodes.indexOf(r)-1];n&&gs.isTextNode(n)?n.value+=e:gs.insertBefore(t,Vk(e),r)},adoptAttributes(t,e){const r=(n,{name:a,value:o})=>a in t.attributes?n:{...n,[a]:o};Object.assign(t.attributes,e.reduce(r,{}))},getAttrList(t){return Object.entries(t.attributes).map(([e,r])=>({name:e,value:r}))}};function sc(t,e){return Object.defineProperties(t,{parentNode:{value:null,writable:!0},sourceCodeLocation:{value:null,writable:!0},...e})}function Vk(t){return sc({nodeName:"#text",value:t})}function Ej(t,e){return kj(t,{treeAdapter:gs,...e})}function oc(t){if(t.tagName){let e=`<${t.tagName}`;for(const[r,n]of Object.entries(t.attributes))e+=` ${r}="${fk(n)}"`;if(Tj(t))return e+"/>";e+=">";for(const r of t.childNodes??[])e+=oc(r);return t.nodeName==="template"&&(e+=oc(t.content)),e+`</${t.tagName}>`}if(t.nodeName==="#text")return["style","script"].includes(t.parentNode.tagName)?t.value:fk(t.value);if(t.nodeName==="#comment")return`<!-- ${t.data} -->`;if(t.nodeName==="#documentType")return`<!DOCTYPE ${t.name}>`;if(t.nodeName.startsWith("#document"))return(t.childNodes??[]).map(oc).join("")}function Tj(t){return["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"].includes(t.nodeName.toLowerCase())}function _s(t,e){const r=zn(e)?e:n=>y8(n,e);if(r(t))return t;for(const n of t.childNodes??[]){const a=_s(n,r);if(a)return a}return null}const Cj={Date:!0,RegExp:!0,String:!0,Number:!0};function Qk(t,e,r={cyclesFix:!0},n=[]){let a=[];const o=Array.isArray(t);for(const d in t){const p=t[d],v=o?+d:d;if(!(d in e)){a.push({type:"REMOVE",path:[v],oldValue:t[d]});continue}const b=e[d],C=typeof p=="object"&&typeof b=="object"&&Array.isArray(p)===Array.isArray(b);p&&b&&C&&!Cj[Object.getPrototypeOf(p)?.constructor?.name]&&(!r.cyclesFix||!n.includes(p))?a.push.apply(a,Qk(p,b,r,r.cyclesFix?n.concat([p]):[]).map(T=>(T.path.unshift(v),T))):p!==b&&!(Number.isNaN(p)&&Number.isNaN(b))&&!(C&&(isNaN(p)?p+""==b+"":+p==+b))&&a.push({path:[v],type:"CHANGE",value:b,oldValue:p})}const c=Array.isArray(e);for(const d in e)d in t||a.push({type:"CREATE",path:[c?+d:d],value:e[d]});return a}function wj(t,e,r,n){const a={dataId:"data-id",dataPreview:"data-preview",...n};if(!t.body||!e.body||!Sj(t.head,e.head,a))return!1;const o=xj(t.body,e.body,a),{contentWindow:c,contentDocument:d}=r;if(!o.identical&&!o.match)return!1;if(o.match){const p=d.createElement("template"),v=Aj(d,t.body,o.match,a.dataId);p.innerHTML=oc(o.replace),v.replaceWith(...p.content.childNodes)}return ps.trigger("patchPreview",{window:c,document:d,diff:o,...e}),!0}function Sj(t,e,{dataPreview:r}){const n=(a,o)=>{if(o.tagName==="script"){if(o.attributes?.src)return a.concat(o.attributes?.src);if(o.attributes?.[r]==="diff")return a.concat(o)}return a};return Gl(t?.childNodes?.reduce(n,[]),e?.childNodes?.reduce(n,[]))}function xj(t,e,{dataId:r,dataPreview:n,filterBody:a}){const o=Qk(t,e,{cyclesFix:!1}),[c,...d]=a?a(o):o;let p,v;for(const[b,C]of Object.entries(c?.path??[])){if(d.some(T=>C!==T.path[b]))break;if(Number.isInteger(C)){if(t=t.childNodes[C],e=e.childNodes[C],!t||!e)break;t.attributes?.[r]&&(p=t,v=e)}}return v&&_s(v,b=>b.attributes?.[n]==="reload")&&(p=null),{identical:!o.length,diffs:o,match:p,replace:v}}function Aj(t,e,r,n){const a=r.attributes?.[n],o=t.querySelectorAll(`[${n}="${a}"]`);let c=0;return o.length>1&&(function d(p){p!==r&&(p.attributes?.[n]===a&&c++,(p.childNodes??[]).forEach(d))})(e),o[c]}const zt=sn("Preview",{state:()=>({url:"",query:null,data:{},iframe:null,document:null,channel:0,size:"",overlay:!1}),getters:{name:t=>`preview-${t.channel}`,window:t=>t.document?.defaultView},actions:{...Si.map("preview",{load(t){return Object.assign(this,t)}}),setData(t){this.data={...t}},setIframe(t){this.iframe=t,this.document=t.contentDocument,this.url=t.contentDocument.URL}}}),Oj={__name:"PreviewIframe",props:{name:String},emits:"update",setup(t,{expose:e,emit:r}){const n=t,{proxy:a}=to();e({write:p});const o=Be(null),c=Be(null);Nr(()=>o.value.remove());function d(v){const{contentWindow:b,contentDocument:C}=o.value;b.location.host&&(c.value!==C&&r("update",{event:v,window:b,document:C},a),b.addEventListener("beforeunload",T=>r("update",{event:T,window:b,document:C},a)),b.addEventListener("unload",T=>r("update",{event:T,window:b,document:C},a)))}function p(v,b){const{contentWindow:C,contentDocument:T}=o.value;T.open(),T.addEventListener("DOMContentLoaded",A=>{c.value=T,r("update",{event:A,window:C,document:T},a)},{once:!0}),C.history.replaceState(null,"",v),T.write(b),T.close()}return{__sfc:!0,proxy:a,emit:r,props:n,el:o,loaded:c,load:d,write:p}}};var Nj=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("iframe",{ref:"el",style:n.loaded?!1:{zIndex:-1},attrs:{name:n.props.name},on:{load:n.load}})},Pj=[],Ij=Q(Oj,Nj,Pj,!1),Lj=Ij.exports;const Rj={__name:"Preview",setup(t){const{trigger:e}=Me({loadPreview:{handler(C,T){r.load({query:T})},priority:-10},readyPreview:{handler(C,{first:T,window:A}){T||(r.query=null),r.setData(A.yootheme?.customizer)},priority:10},patchPreview(C,{window:T,document:A,head:F,body:G}){const j="customizer-data",O={parentNode:{tagName:"script",attributes:{id:j}}},x=_s(F,O)??_s(G,O);if(x){const S=A.createElement("script"),P=A.getElementById(j);S.textContent=x.value,S.setAttribute("id",j),P.replaceWith(S),r.setData(T.yootheme?.customizer)}}}),r=zt();let n=null,a=null;Si.after("preview.load",async C=>p(C.url,C.query));const o=Be(null),c=Be(null),d=Ae(()=>o.value?.name!==r.name);async function p(C,T){const[A,F]=Ue(C).formUrl({customizer:Cl(JSON.stringify(T??{}))}).post().controller();n&&n.abort(),n=A;const G=await F.res(P=>{if(r.url=C=P.url,P.redirected&&T){p(C,T);return}return P.text()}).catch(P=>P.text);if(dr(G))return;const j=Ej(G,{onParseError:P=>console.log("HTML parse error.",P)}),O=_s(j,{tagName:"head"}),x=_s(j,{tagName:"body"}),S={filterBody:P=>P.filter(R=>R.type!=="CHANGE"||!R.value.includes("window.yootheme")||xn(x,R.path.slice(0,-1))?.parentNode.attributes.id!=="customizer-data")};(!a||!wj(a,{head:O,body:x},o.value.$el,S))&&(r.channel++,b(Lj,{name:r.name},c.value).write(C,G)),n=null,a={head:O,body:x}}function v({event:C,window:T,document:A},F){const G="DOMContentLoaded";if(![G,"load"].includes(C.type)){e(`${C.type}Preview`,{event:C,window:T,document:A});return}G===C.type?(o.value&&o.value.$destroy(),o.value=F):a=null,d.value||(r.setIframe(F.$el),e("readyPreview",{event:C,window:T,document:A,first:G===C.type,iframe:F.$el,$preview:r}))}function b(C,T,A=null){const F=new oe({extends:C,propsData:T});return F.$on("update",v),A&&A.appendChild(F.$mount().$el),F}return{__sfc:!0,trigger:e,state:r,pending:n,previous:a,current:o,preview:c,loading:d,load:p,update:v,create:b}}};var Dj=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",{staticClass:"yo-preview uk-flex-auto uk-flex uk-position-relative"},[r("div",{ref:"preview",staticClass:"yo-preview-iframe uk-margin-auto uk-margin-auto-vertical",class:{[`yo-preview-size-${n.state.size}`]:n.state.size}},[r("div",{directives:[{name:"show",rawName:"v-show",value:!n.current,expression:"!current"}],staticClass:"uk-position-center",attrs:{"uk-spinner":""}}),e._v(" "),r("div",{directives:[{name:"show",rawName:"v-show",value:n.state.overlay,expression:"state.overlay"}],staticClass:"uk-position-cover uk-position-z-index uk-overlay uk-overlay-default"})])])},Mj=[],$j=Q(Rj,Dj,Mj,!1),Fj=$j.exports;const Bj={__name:"PreviewResize",setup(t){const{i18n:e}=oe,r=Object.entries({"":"desktop",desktop:"laptop","tablet-portrait":"tablet-portrait","phone-portrait":"phone-portrait"}),n=zt();function a(b){return b.split("-")[0]}function o(b){return a(b)===a(n.size)}function c(b){return o(b)&&n.size.endsWith("-landscape")}function d(b){n.size=n.size===b?b.replace("portrait","landscape"):b}function p(b){b.style.visibility="hidden"}function v(b){setTimeout(()=>{b.style.visibility="",b.classList.add("uk-animation-slide-bottom-small")},b.dataset.index*100)}return{__sfc:!0,i18n:e,icons:r,Preview:n,icon:a,isActive:o,isLandscape:c,resize:d,beforeAppear:p,appear:v}}};var Hj=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("TransitionGroup",e._g({staticClass:"uk-grid uk-grid-small",attrs:{tag:"ul",appear:""}},{beforeAppear:n.beforeAppear,appear:n.appear}),e._l(n.icons,function([a,o],c){return r("li",{key:o,class:{"uk-active":n.isActive(a)},attrs:{"data-index":c}},[r("a",{staticClass:"uk-icon uk-icon-link",class:{"yo-landscape":n.isLandscape(a)},attrs:{href:"",icon:n.icon(o),"uk-icon":"","aria-label":n.i18n.t("Enter %size% preview mode",{size:o})},on:{click:function(d){return d.preventDefault(),n.resize(a)}}})])}),0)},Uj=[],jj=Q(Bj,Hj,Uj,!1),Wj=jj.exports;const Gj={__name:"SplitPane",props:{value:[String,Number],minWidth:[String,Number]},emits:"input",setup(t,{emit:e}){const r=t,{i18n:n}=oe,a=Be(null),o=Be(.75);return Gt(()=>ke.on(a.value,"pointerdown",c=>{a.value.setPointerCapture(c.pointerId);const{x:d}=ke.getEventPos(c);let{left:p}=ke.offset(a.value);p-=d;const v=ke.on(a.value,"pointermove",b=>e("input",Math.floor(ke.clamp(ke.getEventPos(b).x-p,r.minWidth,window.innerWidth*o.value))));ke.once(a.value,"pointerup pointercancel",b=>{a.value.releasePointerCapture(b.pointerId),v()})})),{__sfc:!0,i18n:n,emit:e,props:r,el:a,maxWidth:o,api:ue}}};var zj=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",{ref:"el",staticClass:"uk-position-center-right"},[r("button",{staticClass:"uk-icon yo-icon-link yo-sidebar-drag",attrs:{type:"button","aria-label":n.i18n.t("Resize Preview")}},[r("img",{attrs:{"uk-svg":`${n.api.config.assets}/images/customizer/drag.svg`,"aria-hidden":"true"}})])])},qj=[],Yj=Q(Gj,zj,qj,!1),Kj=Yj.exports;const Xj={__name:"Sidebar",props:{root:{type:Object,required:!0},panels:{type:Object,default:()=>({})}},emits:"panelEnter",setup(t,{expose:e,emit:r}){const n=t,{i18n:a}=oe,{proxy:o}=to();br("Sidebar",o);const{trigger:c}=Me({openPanel:[{handler(ae,Z){const ne=Sn(Z)?Z:Z.name;if(b.value?.name===ne)return!1;ae.sidebar=o},priority:10},{handler(ae,Z){Sn(Z)&&(Z=n.panels[Z]),Z&&(Z.width||=b.value?.width||d.initialWidth,d.length=G.push(Z),ae.params[0]=Z)},priority:1},{handler(){return new Promise(ae=>o.$once("panelEnter",ae))},priority:-5}],closePanel({origin:ae}){ae!==o&&O()},closeSidebarPanel(ae,Z){O(Z)}}),d=Jt({length:0,last:null,inTransition:!1,initialWidth:"",resizedWidth:0}),p=Be(null),v=Be(!1),b=Ae(()=>G[d.length-1]),C=Ae(()=>G[d.length-2]),T=Ae(()=>G.slice(0,d.length)),A=Ae(()=>b.value?.width||d.initialWidth||""),F=Ae({get(){return Math.max(d.resizedWidth,A.value)||""},set(ae){d.resizedWidth=ae,p.value.style.transition="unset",requestAnimationFrame(()=>p.value.style.transition="")}});let G=[];d.length=G.push(n.root),Gt(()=>{Tn(()=>d.initialWidth=p.value.offsetWidth),o.$on("panelEnter",ae=>ae.querySelector("[autofocus]")?.focus())});function j(ae){return c("openPanel",ae)}function O(ae=b.value){const Z=G.indexOf(ae);if(d.length===1||Z===-1)return;const ne={close:!0};c("closePanel",[ne,ae,G[Z-1]]),ne.close&&(G.splice(Z,1),d.length--)}function x(ae){d.last?ae.style.left.startsWith("-")&&(ae.style.left=`-${ae.style.width}`):ae.style.left="",d.last=b.value?.name}function S(ae){ae.offsetWidth,ae.style.left=0}function P(ae){r("panelEnter",ae),d.last=b.value?.name}function R(ae){ae.style.left=0,ae.offsetWidth}function B(ae){Tn(()=>ae.style.left=le(ae)?`-${ae.offsetWidth}px`:"")}function q(){d.last=b.value?.name}function le(ae){for(;ae.nextElementSibling;){if(ae.nextElementSibling.classList.contains("v-enter"))return!0;ae=ae.nextElementSibling}return!1}return e({panel:b,stack:G,hidden:v,openPanel:j,root:n.root}),{__sfc:!0,i18n:a,proxy:o,emit:r,trigger:c,props:n,state:d,el:p,hidden:v,panel:b,prevPanel:C,openPanels:T,minWidth:A,width:F,stack:G,openPanel:j,closePanel:O,beforeEnter:x,enter:S,afterEnter:P,beforeLeave:R,leave:B,afterLeave:q,findEnteringElement:le,api:ue,Panel:$9,SplitPane:Kj}}};var Vj=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",{ref:"el",staticClass:"yo-sidebar uk-flex-none",style:{width:`${n.width}px`,marginLeft:n.hidden?`-${n.width}px`:""},on:{transitionend:function(a){if(a.target!==a.currentTarget)return null;n.state.inTransition=!1}}},[r("div",{staticClass:"yo-sidebar-header"},[e._t("header",function(){return[r("div",{staticClass:"yo-sidebar-close uk-flex uk-flex-middle"},[r("Transition",{attrs:{appear:"","appear-to-class":"uk-animation-fade"}},[r("button",{staticClass:"uk-button uk-button-text uk-button-small uk-animation-fast",attrs:{type:"button"},on:{click:function(a){return n.trigger("close")}}},[e._v(` `+e._s(n.i18n.t("Close"))+` `)])])],1)]}),e._v(" "),r("div",{ref:"breadcrumb",staticClass:"yo-sidebar-breadcrumb uk-flex uk-flex-middle uk-flex-between uk-animation-fast",on:{click:function(a){a.preventDefault()}}},[r("Transition",{attrs:{"enter-active-class":"uk-animation-fade","leave-active-class":"uk-animation-fade uk-animation-reverse"}},[n.state.length>1?r("a",{staticClass:"uk-h4 uk-flex uk-flex-middle uk-margin-remove",attrs:{href:""},on:{click:function(a){return n.closePanel()}}},[r("img",{staticClass:"uk-margin-small-right uk-icon",attrs:{"uk-svg":`${n.api.config.assets}/images/customizer/breadcrumb.svg`,"aria-hidden":"true"}}),e._v(" "),r("span",[e._v(e._s(n.i18n.t(n.prevPanel?n.prevPanel.title||"Back":"Home")))])]):e._e()]),e._v(" "),n.state.length===1?r("span"):e._e()],1)],2),e._v(" "),r("TransitionGroup",e._g({staticClass:"yo-sidebar-content",attrs:{tag:"div"}},{beforeEnter:n.beforeEnter,enter:n.enter,afterEnter:n.afterEnter,beforeLeave:n.beforeLeave,leave:n.leave,afterLeave:n.afterLeave}),e._l(n.openPanels,function(a){return r(n.Panel,{directives:[{name:"show",rawName:"v-show",value:a===n.panel||a.name===n.state.last,expression:"pan === panel || pan.name === state.last"}],key:a.name,style:{width:`${Math.max(n.state.resizedWidth,a.width??n.state.initialWidth)}px`},attrs:{config:a}},[e._t("panel",function(){return[e._v("Empty panel")]},{panel:a})],2)}),1),e._v(" "),r("div",{staticClass:"yo-sidebar-footer"},[r("div",{staticClass:"uk-position-relative uk-height-1-1 uk-flex uk-flex-center uk-flex-middle uk-overflow-hidden"},[r("div",{staticClass:"uk-position-center-left uk-position-small"},[r("button",{staticClass:"uk-icon uk-icon-link",attrs:{type:"button","aria-label":n.i18n.t("Hide Sidebar")},on:{click:function(a){a.preventDefault(),(n.hidden=!0)&&(n.state.inTransition=!0)}}},[r("img",{attrs:{"uk-svg":`${n.api.config.assets}/images/customizer/chevron-double-left.svg`,"aria-hidden":"true"}})])]),e._v(" "),e._t("footer"),e._v(" "),r(n.SplitPane,{attrs:{"min-width":n.minWidth},model:{value:n.width,callback:function(a){n.width=a},expression:"width"}})],2)]),e._v(" "),n.hidden&&!n.state.inTransition?r("button",{staticClass:"yo-sidebar-hide uk-icon-button uk-icon uk-animation-fade uk-animation-fast",attrs:{type:"button"},on:{click:function(a){n.hidden=!1}}},[r("img",{attrs:{"uk-svg":`${n.api.config.assets}/images/customizer/chevron-double-right.svg`,"aria-hidden":"true"}})]):e._e()],1)},Qj=[],Jj=Q(Xj,Vj,Qj,!1),Zj=Jj.exports;let Jo;function Tp(t,e){const r=Jk(e);Jo??=new IntersectionObserver(n=>{const{scrollX:a,scrollY:o}=r.defaultView;for(const c of n){if(!c.isIntersecting)continue;Jo.unobserve(c.target);const d=c.boundingClientRect;ke.append(r.body,ke.css(ke.fragment('<div class="yo-hover"></div>'),{width:d.width,height:d.height,left:d.left+a,top:d.top+o}))}});for(const n of ke.$$(t,e))Jo.observe(n)}function Zo(t){Jo?.disconnect(),Jo=null;for(const e of ke.$$("> .yo-hover",Jk(t).body))e.remove()}function Jk(t){return ke.isDocument(t)?t:t.ownerDocument}const eW={__name:"ArticleEditButton",setup(t){const{i18n:e}=oe,{trigger:r}=Me();return{__sfc:!0,i18n:e,trigger:r,api:ue}}};var tW=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("button",{staticClass:"uk-icon uk-icon-link",attrs:{type:"button","aria-label":n.i18n.t("Edit Article")},on:{click:function(a){return n.trigger("openEditArticle")}}},[r("img",{attrs:{"uk-svg":`${n.api.config.assets}/images/builder/edit.svg`,"aria-hidden":"true"}})])},rW=[],nW=Q(eW,tW,rW,!1),iW=nW.exports;const aW={__name:"ArticleModal",props:{id:{type:[Number,String],default:0}},setup(t){const e=t,{i18n:r}=oe,{trigger:n}=Me(),a=Jt({cid:e.id,src:`${ue.config.url}/administrator/index.php?option=com_content&tmpl=component${e.id?`&task=article.edit&id=${e.id}`:"&task=article.add"}`,enableButtons:!1}),o=Be(null);Gt(()=>o.value.addEventListener("load",({target:v})=>c(v))),Nr(p);function c({contentDocument:v,contentWindow:b}){a.enableButtons=!0;const C=new URLSearchParams(b.location.search);a.cid=C.get("id"),v.body.style.padding="30px"}function d({contentWindow:{Joomla:v}}=o.value){o.value.addEventListener("load",()=>n("updateArticle"),{once:!0}),v.submitbutton("article.apply")}function p(){a.cid&&Ue(`${ue.config.url}/administrator/index.php?option=com_content`).formData({task:"articles.checkin",cid:[a.cid],[ue.customizer.token]:1}).post()}return{__sfc:!0,i18n:r,trigger:n,props:e,state:a,iframe:o,load:c,submit:d,checkIn:p}}};var sW=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",[r("div",{staticClass:"uk-modal-header uk-flex uk-flex-middle uk-flex-between"},[r("h2",{staticClass:"uk-modal-title uk-margin-remove-bottom"},[e._v(` `+e._s(n.i18n.t(n.state.cid?"Edit Article":"New Article"))+` `),n.state.cid?r("span",{staticClass:"uk-text-muted uk-margin-small-left"},[e._v(e._s(n.i18n.t("(ID %id%)",{id:n.state.cid})))]):e._e()])]),e._v(" "),r("div",{attrs:{"uk-overflow-auto":"expand: true"}},[r("iframe",{ref:"iframe",staticStyle:{height:"100%",width:"100%"},attrs:{src:n.state.src}})]),e._v(" "),r("div",{staticClass:"uk-modal-footer uk-text-right"},[r("button",{staticClass:"uk-button uk-button-text uk-modal-close uk-margin-small-right",attrs:{type:"button"}},[e._v(e._s(n.i18n.t("Cancel")))]),e._v(" "),r("button",{staticClass:"uk-button uk-button-primary",attrs:{disabled:!n.state.enableButtons,type:"button"},on:{click:function(a){return n.submit()}}},[e._v(e._s(n.i18n.t("Save")))])])])},oW=[],uW=Q(aW,sW,oW,!1),Cp=uW.exports;const lW={__name:"PageSection",props:{panel:Object},setup(t){const e=t,{i18n:r}=oe,n=Ho(),a=zt(),{lang:o}=window.document.documentElement,c=ue.builder.languages.length?ue.builder.languages.map(({text:O,value:x})=>({text:O,value:x===""?"*":x})):null,d=Jt({home:null,search:"",language:""}),p=Ae(()=>n.pages.toSorted((O,x)=>x.type.page-O.type.page||O.type.title.localeCompare(x.type.title,o)).reduce((O,x)=>{const S=O?.[x.type.id]??{show:!x.type.page,title:x.type.title,pages:[]};return S.pages.push(x),S.pages.sort((P,R)=>R.home-P.home||P.title.localeCompare(R.title,o)),{...O,[x.type.id]:S}},null)),{trigger:v}=Me({updateArticle:b});gt(()=>d.search,Vn(b,150)),gt(()=>d.language,b),el(()=>{d.language=o});function b(){return n.getPages({...c?{lang:d.language}:{},search:d.search})}function C(){ha(Cp,{},{container:!0})}function T(O){const x=!O||G(O);x||a.load({url:O.url,query:null}),v("openPanel",{...ue.customizer.panels.builder,props:{current:x}})}function A(O){const x=O.language.match(/-(\w{2})$/);return`${O.title} - ${O.category.title} ${x?j(x[1]):""}`.trim()}function F(O){ha(Cp,{id:O.id},{container:!0})}function G(O){return a.data.view==="com_content.article"&&a.data.page?.id===O.id}function j(O){const x=O.toUpperCase().split("").map(S=>127397+S.charCodeAt());return String.fromCodePoint(...x)}return{__sfc:!0,i18n:r,Builder:n,Preview:a,lang:o,languages:c,props:e,state:d,types:p,trigger:v,load:b,add:C,edit:T,title:A,options:F,isCurrent:G,getFlag:j,api:ue}}};var cW=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",[r("div",{staticClass:"uk-grid uk-grid-small uk-margin-medium"},[r("div",{staticClass:"uk-width-expand"},[r("h2",{staticClass:"yo-sidebar-heading"},[e._v(e._s(n.i18n.t(n.props.panel.title)))])]),e._v(" "),r("div",{staticClass:"uk-width-auto uk-flex"},[n.props.panel.help?r("button",{staticClass:"uk-icon uk-icon-link uk-margin-small-right",attrs:{type:"button","aria-label":n.i18n.t("Help")},on:{click:function(a){return n.trigger("openHelp",[n.props.panel.help])}}},[r("img",{attrs:{"uk-svg":`${n.api.config.assets}/images/help.svg`,"aria-hidden":"true"}})]):e._e(),e._v(" "),r("button",{staticClass:"uk-button uk-button-small uk-button-default",attrs:{type:"button"},on:{click:function(a){return n.edit()}}},[e._v(e._s(n.i18n.t("Builder")))])])]),e._v(" "),n.languages?r("div",{staticClass:"uk-margin-small"},[r("select",{directives:[{name:"model",rawName:"v-model",value:n.state.language,expression:"state.language"}],staticClass:"uk-select",on:{change:function(a){var o=Array.prototype.filter.call(a.target.options,function(c){return c.selected}).map(function(c){var d="_value"in c?c._value:c.value;return d});e.$set(n.state,"language",a.target.multiple?o:o[0])}}},e._l(n.languages,function({value:a,text:o}){return r("option",{key:a,domProps:{value:a}},[e._v(e._s(o))])}),0)]):e._e(),e._v(" "),r("div",{staticClass:"uk-margin-small"},[r("input",{directives:[{name:"model",rawName:"v-model",value:n.state.search,expression:"state.search"}],staticClass:"uk-input",attrs:{type:"text",placeholder:n.i18n.t("Search articles"),autofocus:""},domProps:{value:n.state.search},on:{input:function(a){a.target.composing||e.$set(n.state,"search",a.target.value)}}})]),e._v(" "),e._l(n.types,function(a,o){return[a.show?r("h3",{key:`label-${o}`,staticClass:"yo-sidebar-subheading"},[e._v(e._s(a.title))]):e._e(),e._v(" "),r("ul",{key:`list-${o}`,staticClass:"uk-nav uk-nav-default yo-sidebar-marginless yo-nav-iconnav",class:{"uk-margin-top":!a.show}},e._l(a.pages,function(c){return r("li",{key:c.id,staticClass:"uk-visible-toggle",class:{"yo-highlight":n.isCurrent(c)}},[r("a",{attrs:{href:"",title:n.title(c)},on:{click:function(d){return d.preventDefault(),n.edit(c)}}},[r("span",{staticClass:"uk-text-truncate",class:{"uk-text-muted":c.status!=="published"}},[e._v(e._s(c.title))])]),e._v(" "),r("button",{staticClass:"uk-position-center-right uk-position-medium uk-icon-link uk-invisible-hover",staticStyle:{padding:"10px 0 10px 10px"},attrs:{type:"button","uk-icon":"icon: more-vertical"},on:{click:function(d){return d.preventDefault(),n.options(c)}}})])}),0)]}),e._v(" "),r("p",{directives:[{name:"show",rawName:"v-show",value:!n.types,expression:"!types"}],staticClass:"uk-margin-remove-bottom"},[e._v(e._s(n.i18n.t("No articles found.")))]),e._v(" "),r("button",{staticClass:"uk-button uk-button-default uk-width-1-1 uk-margin-medium-top",attrs:{type:"button"},on:{click:function(a){return a.preventDefault(),n.add()}}},[e._v(e._s(n.i18n.t("New Article")))]),e._v(" "),r("p",{staticClass:"uk-text-muted"},[e._v(e._s(n.i18n.t("The list shows uncategorized articles and is limited to 50. Use the search to find a specific article or an article from another category to give it an individual layout.")))]),e._v(" "),r("p",{staticClass:"uk-text-muted"},[e._v(e._s(n.i18n.t("By default, only uncategorized articles are referred as pages. Change the category in the advanced settings.")))])],2)},fW=[],dW=Q(lW,cW,fW,!1),hW=dW.exports,pW={init({extend:t}){t({components:{"builder-pages":hW}})},setup(){const t=zt(),{trigger:e}=Me({layoutButtonsTitle:{handler:({result:r=[]},{builder:n})=>ue.customizer.admin&&n.view==="com_content.article"?[{component:iW},...r]:r,priority:5},openEditArticle(){ha(Cp,{id:t.data.page?.id},{container:!0})},updateArticle(){e("loadPreview")},openEditModule(r){e("editModule",[{id:r.origin.values.module,noDelete:!0}],!0)}})}};function mW(t={}){const{Joomla:e,tinyMCE:r}=window;return{id:`mce_${wo()}`,instance:null,async create(n={}){this.instance=new r.Editor(this.id,kr({},t.settings,n),r.EditorManager),this.instance.render();try{const{JoomlaEditor:a,JoomlaEditorDecorator:o}=await import("editor-api");class c extends o{getValue(){return this.instance.getContent()}setValue(p){return this.instance.setContent(p),this}getSelection(){return this.instance.selection.getContent({format:"text"})}replaceSelection(p){return this.instance.execCommand("mceInsertContent",!1,p),this}}a.register(new c(this.instance,"tinymce",this.id))}catch{e.editors.instances[this.id]={getValue:()=>this.instance.getContent(),setValue:o=>this.instance.setContent(o),getSelection:()=>this.instance.selection.getContent(),replaceSelection:o=>this.instance.execCommand("mceInsertContent",!1,o)}}},async destroy(){this.instance.destroy(),this.instance=null;try{const{JoomlaEditor:n}=await import("editor-api");n.unregister(this.id)}catch{delete e.editors.instances[this.id]}}}}const vW={__name:"EditorVisual",props:{root:{type:Boolean,default:!1},value:{type:String,default:""},attrs:{type:Object,default:()=>({})}},emits:["input"],setup(t,{expose:e,emit:r}){const n=t,{i18n:a}=oe,o=mW(ue.customizer.editor);gt(()=>n.value,A=>{d(A)}),Gt(function(){o.create({width:"100%",height:330,resize:!0,menubar:!1,valid_elements:"*[*]",paste_plaintext_inform:!wt.editorPlainTextPasteWarning,setup:A=>{v(A),b(A),C(A,ue.customizer.editor),T(A,ue.customizer.editor),A.on("init",()=>{Object.values(A.schema.elements).forEach(F=>F.attributePatterns=(F.attributePatterns||[]).concat([{pattern:/^uk-.*$/}])),A.setContent(n.value)}),A.on("load",p),A.on("PastePlainTextToggle",()=>wt.editorPlainTextPasteWarning=!0)}})}),Nr(function(){o.destroy()});function c(){r("input",o.instance.getContent())}function d(A){o.instance.getContent()!==A&&o.instance.setContent(A)}function p(){if(!n.attrs.height)return;const A=o.instance.getContainer(),F=o.instance.getContentAreaContainer().firstElementChild;F.style.height=`${n.attrs.height-(A.offsetHeight-F.offsetHeight)}px`}function v({settings:A}){n.root===!0&&(A.forced_root_block="",A.force_p_newlines=!1,A.force_br_newlines=!0)}function b(A){for(const F of["undo","redo","keyup","change"])A.on(F,c)}function C(A,{title:F,iframe:G}){A.addButton("editor",{icon:"fullscreen",tooltip:F,onclick:()=>{const{innerWidth:j,innerHeight:O}=window,x=A.windowManager.open({title:F,html:`<iframe src="${G}" onload="tinyMCE.activeEditor.fire('JEditor', this)"></iframe>`,width:j*.9,height:O*.9-100,buttons:[{text:a.t("Ok"),subtype:"primary",onclick:()=>x.fire("update")},{text:a.t("Cancel"),onclick:"close"}]});A.once("JEditor",({contentWindow:{Joomla:S},contentDocument:P})=>{const R=A.getContent(),B=P.getElementById("content");B&&(B.value=R),S.editors.instances.content?.setValue(R),x.on("update",()=>{d(S.editors.instances.content.getValue()),c(),x.close()})})}}),A.settings.toolbar1+=" editor"}function T(A,{id:F,buttons:G=[]}){for(const{text:j,link:O,options:{confirmCallback:x,confirmText:S}={}}of G){const P=`insert_${j.toLowerCase()}`;A.addMenuItem(P,{text:j,context:"insert",onclick:()=>{const R=[{text:a.t("Close"),onclick:"close"}];x&&R.unshift({text:S,subtype:"primary",onclick:async({target:Z})=>{const ne=document.getElementById(ae._id),U=`return ${x.replace(F,A.id)}`;ne.classList.add("modal-content"),await new Function(U).call(Z),ae.close()}});const{Joomla:B,innerWidth:q,innerHeight:le}=window,ae=A.windowManager.open({buttons:R,title:j,html:`<iframe src="${O.replace(F,A.id)}"></iframe>`,width:q*.8,height:le*.8-100});B.Modal?.setCurrent(ae.on("close",()=>B.Modal.setCurrent(null))),ae.querySelector=()=>{}}}),A.settings.insert_button_items+=` ${P}`}}return e({refresh:p}),{__sfc:!0,i18n:a,emit:r,props:n,editor:o,update:c,setValue:d,refresh:p,useRoot:v,useEvents:b,useEditor:C,useButtons:T}}};var gW=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",{attrs:{id:n.editor.id}})},_W=[],bW=Q(vW,gW,_W,!1),yW=bW.exports,kW={init({Vue:t}){ue.customizer.editor&&(un.js(`${ue.customizer.base}/vendor/assets/tinymce/tinymce.min.js`).then(()=>t.component("EditorVisual",yW)),window.jModalClose=()=>window.tinyMCE.activeEditor.windowManager.close(),window.jInsertEditorText=(e,r)=>window.Joomla.editors.instances[r].replaceSelection(e))}};function EW(t){const{i18n:e}=oe,{media:r,token:n}=ue.customizer,a=`${ue.customizer.root}/index.php?option=com_media&task=api.files&format=json&mediatypes=0,1,2,3`;return fy(`Finder (${t})`,{state:{accept:r.accept},actions:{getPath(o=this.path){return`local-${t}:/${B8(o,"/")}`},uploadSettings(o){Object.assign(o,{url:CW(a,{path:this.getPath()}),beforeSend:async c=>{const d=c.data.get("Filedata[]"),p=await TW(d);return Object.assign(c,{headers:{"Content-Type":"application/json"},responseType:"json",data:JSON.stringify({override:!0,name:d.name,content:p.slice(p.indexOf("base64")+7),[n]:"1"})})},complete:c=>this.showMessage(c.message||e.t("Item uploaded."))})},loadFiles(o){return Ue("finder").query({folder:o,root:t}).get().json().catch(c=>(Ut(c.message,status),[]))},renameFile(o,c){pa(this.files,["name",c])&&!confirm(e.t("%name% already exists. Do you really want to rename?",{name:c}))||Ue(a).errorType("json").query({path:this.getPath(`${tp(this.path,"/")}/${o}`)}).put({newPath:this.getPath(`${tp(this.path,"/")}/${c}`),[n]:1}).json(d=>{this.showMessage(d.message??e.t("Item renamed."))}).catch(({json:d={}})=>{this.showMessage(d.message??e.t("Error renaming item."),"danger")})},removeFiles(o){for(const{path:c}of o)Ue(a).errorType("json").query({path:this.getPath(c)}).json({[n]:1}).delete().json(d=>{this.showMessage(d.message??e.t("Item deleted."))}).catch(({json:d={}})=>{this.showMessage(d.message??e.t("Error deleting item."),"danger")})},createFolder(o){Ue(a).errorType("json").query({path:this.getPath()}).post({name:o,[n]:1}).json(c=>{this.showMessage(c.message??e.t("Folder created."))}).catch(({json:c={}})=>{this.showMessage(c.message??e.t("Error creating folder."),"danger")})},showMessage(o,c=""){Ut(o,c),this.load()},canCreate(){return r.canCreate},canDelete(){return r.canDelete}}})}function TW(t){return new Promise(e=>{const r=new FileReader;r.onload=n=>e(n.target.result),r.readAsDataURL(t)})}function CW(t,e){const r=new URL(t,location.origin);for(const[n,a]of Object.entries(e))r.searchParams.set(n,a);return r.toString()}function wW(){const{i18n:t}=oe,{media:e,token:r}=ue.customizer,n=`${ue.customizer.root}/index.php?option=com_media&asset=com_media`;return fy("Finder (legacy)",{state:{accept:e.accept},actions:{loadFiles(a){return Ue("finder").query({folder:a}).get().json()},removeFiles(a){return this.executeTask("folder.delete",{folder:this.path,rm:ma(a,"name")})},renameFile(a,o){pa(this.files,["name",o])&&!confirm(t.t("%name% already exists. Do you really want to rename?",{name:o}))||Ue("finder/rename").post({oldFile:`${tp(this.path,"/")}/${a}`,newName:o}).json(c=>{Ut(c,""),this.load()}).catch(c=>{Ut(c.message,"danger"),this.load()})},createFolder(a){return this.executeTask("folder.create",{foldername:a,folderbase:this.path})},executeTask(a,o={}){return Ue(n).formData({[r]:1,task:a,...o}).post().json(c=>this.showMessage(c)).catch(c=>this.showError(c))},showMessage(a){St(a)&&a.forEach(({message:o,type:c})=>Ut(o,c==="message"?"":"danger")),this.load()},showError({message:a,status:o}){if(a.indexOf("<!DOCTYPE")!==0){const c=new DOMParser().parseFromString(a,"text/html");Ut(o===500||!c?.title?"Unknown error.":c.title,"danger")}this.load()},uploadSettings(a){Object.assign(a,{url:SW(n,{task:"file.upload",tmpl:"component",format:"html",folder:this.path,[r]:1}),beforeSend:o=>{kr(o,{responseType:"json",headers:{Accept:"application/json"}})},complete:({response:o})=>this.showMessage(o)})},canCreate(){return e.canCreate},canDelete(){return e.canDelete}}})}function SW(t,e){const r=new URL(t,location.origin);for(const[n,a]of Object.entries(e))r.searchParams.set(n,a);return r.toString()}var xW={init(){Me({mediaModalTabs(t,e){const{legacy:r,roots:n}=ue.customizer.media;r?e.unshift(Zk("files",wW())):e.unshift(...n.map(a=>Zk(a,EW(a))))}})}};function Zk(t,e){return{name:t,component:{extends:sR,provide(){return{Finder:this.Finder=e()}},destroyed(){this.Finder.$dispose()}}}}const bs=sn("Menus (Joomla)",{state:()=>kr({items:[],menus:[],positions:{},canEdit:!1,canCreate:!1,canDelete:!1},ue.customizer.menu),setup:()=>({task(t,e){return Ue(`${ue.customizer.root}/index.php?option=com_menus`).formData({task:t,cid:[e],[ue.customizer.token]:1}).post().res()}})}),AW={__name:"MenuItemModal",props:{menu:String,item:{type:Object,default:()=>({})}},setup(t){const e=t,{i18n:r}=oe,{trigger:n}=Me(),a=st("Modal"),o=bs(),c=Be(null),d=Jt({enableButtons:!1,id:e.item.id}),p=`${ue.config.url}/administrator/index.php?option=com_menus&task=item.${e.menu?"add":"edit"}&tmpl=component&${e.menu?`menutype=${e.menu}`:`id=${e.item.id}`}`;Gt(()=>ke.on(c.value,"load",({target:T})=>v(T))),Nr(()=>d.id&&n("checkInMenuItem",{id:d.id}));function v({contentDocument:T}){d.enableButtons=!0,T.body.style.padding="30px",ke.once(T,"submit",'[name="adminForm"]',()=>{d.enableButtons=!1,ke.once(c.value,"load",A=>d.id=new URLSearchParams(A.target.contentWindow.location.search).get("id"))})}function b(T="apply",{contentWindow:{Joomla:A}}=c.value){A.submitbutton(`item.${T}`)}async function C(){await n("deleteMenuItem",{id:d.id}),a.hide()}return{__sfc:!0,i18n:r,trigger:n,Modal:a,Menu:o,props:e,iframe:c,state:d,url:p,load:v,submit:b,deleteItem:C,vConfirm:cn}}};var OW=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",[r("div",{staticClass:"uk-modal-header uk-flex uk-flex-middle uk-flex-between"},[r("h2",{staticClass:"uk-modal-title uk-margin-remove-bottom"},[e._v(` `+e._s(n.state.id?n.i18n.t("Edit Menu Item"):n.i18n.t("Add Menu Item"))+` `),n.state.id?r("span",{staticClass:"uk-text-muted uk-margin-small-left"},[e._v(e._s(n.i18n.t("(ID %id%)",{id:n.state.id})))]):e._e()]),e._v(" "),n.state.id&&n.Menu.canDelete?r("button",{directives:[{name:"confirm",rawName:"v-confirm",value:n.i18n.t("Are you sure?"),expression:"i18n.t('Are you sure?')"}],staticClass:"uk-button uk-button-danger uk-align-right",attrs:{disabled:!n.state.enableButtons,type:"button"},on:{click:n.deleteItem}},[e._v(e._s(n.i18n.t("Delete")))]):e._e()]),e._v(" "),r("div",{attrs:{"uk-overflow-auto":"expand: true"}},[r("iframe",{ref:"iframe",staticStyle:{height:"100%",width:"100%"},attrs:{src:n.url}})]),e._v(" "),r("div",{staticClass:"uk-modal-footer uk-text-right"},[r("button",{staticClass:"uk-button uk-button-text uk-margin-small-right uk-modal-close",attrs:{type:"button"}},[e._v(e._s(n.i18n.t("Cancel")))]),e._v(" "),r("button",{staticClass:"uk-button uk-button-primary",attrs:{disabled:!n.state.enableButtons,type:"button"},on:{click:function(a){return n.submit()}}},[e._v(e._s(n.i18n.t("Save")))])])])},NW=[],PW=Q(AW,OW,NW,!1),eE=PW.exports;const IW={__name:"MenuPositionPanel",props:{position:String,panel:{type:Object,required:!0}},setup(t){const e=t,r=st("Config");function n(a,{name:o}){const{positions:c}=r.values.menu;An(c[e.position])&&mt(c,e.position,{}),mt(c[e.position],o,a),r.change(a,{name:`menu.positions.${e.position}.${o}`})}return{__sfc:!0,Config:r,props:e,change:n,FieldsPanel:Wr}}};var LW=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r(n.FieldsPanel,{attrs:{panel:{...n.props.panel,position:n.props.position},values:{...n.Config.values.menu.positions[n.props.position]}},on:{change:n.change}})},RW=[],DW=Q(IW,LW,RW,!1),MW=DW.exports;const Oi=sn("Config",{state(){const{config:t}=ue.customizer;for(const e of["less","logo","menu.positions","menu.items"])j8(t,e,r=>Array.isArray(r)&&!r.length||!r?{}:r);return{dirty:!1,values:Vh(t)}},actions:{cancel(){this.$reset(),this.reload()},change(t,{name:e}){const{ignore:r=[]}=ue.customizer;r.includes(e)||this.reload(),this.dirty=!0},reload:Vn(function(){oe.events.trigger("loadPreview",{config:this.values})},250),save(){return oe.events.trigger("saveConfig",this.values,!0)}}});function tE(){const t=Oi();return{values(e){const r=t.values.menu.items[e.id];return!r||Array.isArray(r)?{}:r},get(e,r){return xn(t.values.menu.items[e.id],r)},set(e,r,n){let a=!0;r.default===n&&dr(this.get(e,r.name))&&(a=!1);let o=this.values(e);mt(t.values.menu.items,e.id,o),L8(o,r.name,n),a&&t.change(n,{name:`menu.items.${e.id}.${r.name}`})}}}const $W={__name:"MenuItem",props:{panel:{type:Object,required:!0},item:{type:Object,required:!0}},setup(t){const e=t,{i18n:r}=oe,{trigger:n}=Me(),a=bs(),o=tE();function c(p,v){o.set(e.item,v,p)}function d(){n("editMenuItem",e.item)}return{__sfc:!0,i18n:r,trigger:n,Menu:a,MenuItem:o,props:e,change:c,editItem:d,FieldsPanel:Wr}}};var FW=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",[r(n.FieldsPanel,{staticClass:"uk-margin-medium-top",attrs:{panel:{fields:n.props.panel.fields,item:n.props.item},values:n.MenuItem.values(n.props.item)},on:{change:n.change}}),e._v(" "),n.Menu.canEdit?r("button",{staticClass:"uk-button uk-button-default uk-width-1-1 uk-margin-medium-top",attrs:{type:"button"},on:{click:function(a){return a.preventDefault(),n.editItem.apply(null,arguments)}}},[e._v(e._s(n.i18n.t("Edit Menu Item")))]):e._e()],1)},BW=[],HW=Q($W,FW,BW,!1),UW=HW.exports;const jW={__name:"MenuItems",props:{menu:{type:String,required:!0},parent:{type:String,default:"1"}},setup(t){const e=t,r=bs(),{i18n:n}=oe,{trigger:a}=Me(),o=Ae(()=>Number(e.parent)===1);function c(b){a("openPanel",{...ue.customizer.panels["menu-item"],name:"menu-item",title:b.title,props:{item:b},component:UW})}function d(b){a("editBuilderMenuItem",b)}function p(b=e.parent){return v(b).length>0}function v(b=e.parent){return r.items.filter(C=>C.menu===e.menu&&C.parent===b)}return{__sfc:!0,Menu:r,i18n:n,trigger:a,props:e,isRoot:o,edit:c,editBuilder:d,hasItems:p,getItems:v}}};var WW=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("ul",{class:{"uk-nav-sub":!n.isRoot}},e._l(n.getItems(),function(a){return r("li",{key:a.id,class:[{"uk-parent":n.hasItems(a.id),"uk-disabled":!n.Menu.canEdit},"uk-position-relative"]},[r("a",{attrs:{href:""},on:{click:function(o){return o.preventDefault(),n.edit(a)}}},[r("span",{staticClass:"uk-text-truncate"},[e._v(e._s(a.title))])]),e._v(" "),n.isRoot&&n.Menu.canEdit?r("button",{staticClass:"uk-position-top-right uk-position-small uk-button uk-button-default uk-button-small",attrs:{type:"button"},on:{click:function(o){return o.preventDefault(),n.editBuilder(a)}}},[e._v(e._s(n.i18n.t("Builder")))]):e._e(),e._v(" "),n.hasItems(a.id)?r("MenuItems",{attrs:{menu:e.menu,parent:a.id}}):e._e()],1)}),0)},GW=[],zW=Q(jW,WW,GW,!1),qW=zW.exports;const YW={__name:"MenuPanel",props:{menu:{type:String,required:!0},panel:Object},setup(t){const e=t,{i18n:r}=oe,{trigger:n}=Me(),a=bs();return{__sfc:!0,i18n:r,trigger:n,Menu:a,props:e,MenuItems:qW}}};var KW=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",[r(n.MenuItems,{staticClass:"uk-nav uk-nav-default yo-sidebar-marginless yo-nav-iconnav",attrs:{menu:n.props.menu}}),e._v(" "),n.Menu.canCreate?r("button",{staticClass:"uk-button uk-button-default uk-width-1-1 uk-margin-medium-top",attrs:{type:"button"},on:{click:function(a){return a.preventDefault(),n.trigger("addMenuItem",n.props.menu)}}},[e._v(e._s(n.i18n.t("New Menu Item")))]):e._e()],1)},XW=[],VW=Q(YW,KW,XW,!1),QW=VW.exports;const JW={__name:"MenuSection",props:{panel:{type:Object,required:!0}},setup(t){const e=st("Config"),r=bs(),{i18n:n}=oe,{trigger:a}=Me(),o=Ae(()=>{const c=[];for(const[d,p]of Object.entries(r.positions))c.push({label:n.t("%label% Position",{label:p}),name:`menu.positions.${d}.menu`,type:"select",options:{[n.t("- Select -")]:"",...r.menus?.reduce((v,b)=>({...v,[b.name]:b.id}),{})}},{name:`menu.positions.${d}_button`,type:"button-panel",panel:{...ue.customizer.panels["menu-position"],name:"menu-position",title:n.t("%label% Position",{label:p}),component:MW,props:{position:d}},text:n.t("Edit Settings"),show:`menu.positions['${d}'].menu`});return c});return{__sfc:!0,Config:e,Menu:r,i18n:n,trigger:a,fields:o,FieldsPanel:Wr}}};var ZW=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",[r("ul",{staticClass:"uk-nav uk-nav-default yo-sidebar-marginless"},e._l(n.Menu.menus,function(a){return r("li",{key:a.name},[r("a",{attrs:{href:""},on:{click:function(o){return o.preventDefault(),n.trigger("editMenu",a)}}},[r("span",{staticClass:"uk-text-truncate"},[e._v(e._s(a.name))])])])}),0),e._v(" "),r(n.FieldsPanel,{staticClass:"uk-margin-medium-top",attrs:{panel:{fields:n.fields},values:n.Config.values},on:{change:n.Config.change}}),e._v(" "),r("p",{staticClass:"uk-text-muted"},[e._v(e._s(n.i18n.t("Display a menu by selecting the position in which it should appear. For example, publish the main menu in the navbar position and an alternative menu in the mobile position.")))]),e._v(" "),r("p",{staticClass:"uk-text-muted"},[e._v(e._s(n.i18n.t("If you are creating a multilingual site, do not select a specific menu here. Instead, use the Joomla module manager to publish the right menu depending on the current language.")))])],1)},eG=[],tG=Q(JW,ZW,eG,!1),rG=tG.exports,nG={init({extend:t}){t({components:{"joomla-menus":rG}})},setup(){const{i18n:t}=oe,e=bs();Object.assign(ue.customizer.menu,{menusSelect:()=>e.menus.map(n=>({value:n.id,text:n.name})),itemsSelect:n=>e.items.filter(a=>a.menu===n).map(rE),headingItemsSelect:(n,a)=>e.items.filter(o=>o.menu===n&&o.type==="heading"&&(!a&&o.level===0||o.parent===a)).map(rE)});const{trigger:r}=Me({editMenu(n,{id:a,name:o}){r("openPanel",{name:a,title:o,component:QW,props:{menu:a}})},async addMenuItem(n,a){await Dt(eE,{menu:a},{container:!0}),await r("updateMenuItem",{},!0)},async editMenuItem(n,a){await Dt(eE,{item:a},{container:!0}),await r("updateMenuItem",{},!0),e.items.every(({id:o})=>o!==a.id)&&r("closePanel")},updateMenuItem(){return Ue("items").get().json(n=>{e.items=n,r("loadPreview")})},deleteMenuItem(n,a){return e.task("items.trash",a.id)},checkInMenuItem(n,a){return e.task("items.checkin",a.id)},editBuilderMenuItem(n,a){r("openPanel",{name:"menu-item-builder",title:t.t("Builder"),component:"menu-item-builder",width:500,heading:!1,props:{item:a,title:a.title||t.t("Menu Item")}})}})}};function rE(t){return{text:"- ".repeat(t.level)+t.title,value:t.id}}const eu=sn("Modules (Joomla)",{state:()=>kr({url:"",types:{},modules:[],positions:[],canCreate:!1},ue.customizer.module)}),iG={__name:"ModuleModal",props:{id:String,url:String,noDelete:Boolean},setup(t){const e=t,{trigger:r}=Me(),{i18n:n}=oe,a=eu(),o=st("Modal"),c=Jt({edit:!!e.id,moduleId:e.id,enableButtons:!1}),d=`${ue.config.url}/${e.url}&tmpl=component&${e.id?`task=module.edit&id=${e.id}`:"view=select"}`,p=Be(null),v=Ae(()=>a.modules.find(F=>F.id===c.moduleId));Gt(()=>{window.SqueezeBox||={close:ke.noop},p.value.addEventListener("load",({target:F})=>b(F))}),Nr(()=>A("modules.checkin"));function b({contentDocument:F,contentWindow:{Joomla:G}}){c.edit=!!G,c.enableButtons=!!ke.$('[name="adminForm"]',F),F.body.style.padding="30px",ke.once(F,"submit",'[name="adminForm"]',()=>{c.enableButtons=!1,ke.once(p.value,"load",({target:{contentWindow:{location:j}}})=>{c.moduleId=new URLSearchParams(j.search).get("id"),r("updateModule")})});for(const j of ke.$$("#new-modules-list a",F))j.href=`${j.href}&tmpl=component`}function C(F="apply",{contentWindow:{Joomla:G}}=p.value){G.submitbutton(`module.${F}`)}async function T(){await A("modules.trash"),r("updateModule"),o.hide()}function A(F){return Ue(`${ue.config.url}/${e.url}`).formData({task:F,cid:[c.moduleId],[ue.customizer.token]:1}).post().res()}return{__sfc:!0,trigger:r,i18n:n,Store:a,Modal:o,props:e,state:c,src:d,iframe:p,module:v,load:b,submit:C,deleteModule:T,task:A,vConfirm:cn}}};var aG=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",[r("div",{staticClass:"uk-modal-header uk-flex uk-flex-middle uk-flex-between"},[r("h2",{staticClass:"uk-modal-title uk-margin-remove-bottom"},[e._v(` `+e._s(n.i18n.t(n.module?"Edit Module":"Add Module"))+` `),n.module?r("span",{staticClass:"uk-text-muted uk-margin-small-left"},[e._v(e._s(n.i18n.t("(ID %id%)",n.module)))]):e._e()]),e._v(" "),n.module?.canDelete&&!e.noDelete?r("button",{directives:[{name:"confirm",rawName:"v-confirm",value:n.i18n.t("Are you sure?"),expression:"i18n.t('Are you sure?')"}],staticClass:"uk-button uk-button-danger uk-align-right",attrs:{disabled:!n.state.enableButtons,type:"button"},on:{click:n.deleteModule}},[e._v(e._s(n.i18n.t("Delete")))]):e._e()]),e._v(" "),r("div",{attrs:{"uk-overflow-auto":"expand: true"}},[r("iframe",{ref:"iframe",staticStyle:{height:"100%",width:"100%"},attrs:{src:n.src}})]),e._v(" "),r("div",{staticClass:"uk-modal-footer uk-text-right"},[r("button",{staticClass:"uk-button uk-button-text uk-modal-close uk-margin-small-right",attrs:{type:"button"}},[e._v(e._s(n.i18n.t("Cancel")))]),e._v(" "),r("button",{directives:[{name:"show",rawName:"v-show",value:n.state.edit,expression:"state.edit"}],staticClass:"uk-button uk-button-primary",attrs:{disabled:!n.state.enableButtons,type:"button"},on:{click:function(a){return n.submit()}}},[e._v(e._s(n.i18n.t("Save")))])])])},sG=[],oG=Q(iG,aG,sG,!1),uG=oG.exports;const lG={__name:"LayoutButtons",props:{node:Object,panel:Object,position:String},setup(t){const e=t,{trigger:r}=Me(),n=st("Builder"),a=Ae(()=>r(`layoutButtons${Gh(e.position)}`,{node:e.node||n.node,panel:e.panel,builder:n})||[]);return{__sfc:!0,trigger:r,Builder:n,props:e,layoutButtons:a}}};var cG=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return n.layoutButtons.length?r("div",e._l(n.layoutButtons,function({component:a,...o},c){return r(a,e._b({key:a.name,tag:"component",class:{"uk-margin-small-right":c<n.layoutButtons.length-1}},"component",o,!1))}),1):e._e()},fG=[],dG=Q(lG,cG,fG,!1),ya=dG.exports;const hG={__name:"Toolbar",props:{type:{type:String,default:"element"},builder:Object},setup(t){const e=t;let r,n;const{i18n:a}=oe,{trigger:o}=Me(),c=zt(),d=Be(null),p=Be(null),v=Be(null),b=Be(null),C=Ae(()=>{if(!b.value)return null;const O=b.value?.dataset.id,x=e.builder.find(O);return e.builder.type(x)?.element?x:null});gt(()=>C.value,(O,x)=>{O!==x&&(x&&o("leavePreviewNode",[x,e.builder]),O&&o("hoverPreviewNode",[O,e.builder]))}),gt(()=>b.value,()=>requestAnimationFrame(j)),Gt(()=>{const O=ke.on(c.document.documentElement,"pointerenter pointerleave",`[data-id^="${e.builder.prefix}"][data-element]`,P=>P.type==="pointerenter"?T(P):A(),{capture:!0,self:!0}),x=ke.on(c.document,"scroll",j),{disconnect:S}=ke.observeViewportResize(j);n=()=>{O(),x(),S()}}),Nr(()=>{n(),C.value&&o("leavePreviewNode",[C.value,e.builder])});function T(O){(!C.value||!d.value.contains(O.target))&&(b.value=O.target),cancelAnimationFrame(r)}function A(){cancelAnimationFrame(r),r=requestAnimationFrame(()=>b.value=null)}function F(){o("editNode",[C.value,e.builder])}function G(){o("scrollPreviewNode",[C.value,e.builder])}function j(){if(!b.value?.ownerDocument.defaultView)return;const O=ke.offset(b.value),x=ke.offset(c.window),S=ke.offset(p.value);let P=ke.clamp(O.left+(O.width/2-S.width/2),0,x.width-S.width);O.top-S.height<x.top?ke.css(p.value,{position:"fixed",top:0,left:P}):(ke.css(p.value,{position:"absolute"}),ke.offset(p.value,{top:O.top-S.height,left:P}));const R=ke.offset(v.value);P=ke.clamp(O.left+(O.width/2-R.width/2),0,x.width-R.width);const B=Math.max(ke.offset(p.value).bottom,O.bottom-(O.height<10?0:R.height/2-parseFloat(ke.css(v.value,"paddingBottom"))/2));B+R.height>x.bottom?ke.css(v.value,{position:"fixed",top:x.height-R.height,left:P}):(ke.css(v.value,{position:"absolute"}),ke.offset(v.value,{top:B,left:P}))}return{__sfc:!0,frame:r,unmount:n,i18n:a,trigger:o,Preview:c,props:e,el:d,top:p,bottom:v,target:b,node:C,enter:T,leave:A,editNode:F,scrollNode:G,positionToolbars:j}}};var pG=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return n.node?r("div",{ref:"el"},[r("div",{ref:"top",staticStyle:{position:"absolute",padding:"20px 30px 0 30px"},on:{pointerenter:n.enter,pointerleave:n.leave}},[r("div",{class:`yo-builder-nav-${e.type}`},[r("ul",{staticClass:"yo-iconnav"},[r("li",[r("a",{staticClass:"yo-builder-icon-scroll-to",attrs:{title:n.i18n.t("Scroll into view"),href:"","uk-icon":"crosshairs"},on:{click:function(a){return a.preventDefault(),n.scrollNode.apply(null,arguments)}}})]),e._v(" "),r("li",[r("a",{staticClass:"yo-builder-icon-edit",attrs:{title:n.i18n.t("Edit"),href:"","uk-icon":"pencil"},on:{click:function(a){return a.preventDefault(),n.editNode.apply(null,arguments)}}})]),e._v(" "),r("li",[r("a",{staticClass:"yo-builder-icon-copy",attrs:{title:n.i18n.t("Copy"),href:"","uk-icon":"copy"},on:{click:function(a){return a.preventDefault(),n.props.builder.copy(n.node)}}})]),e._v(" "),e.type==="element"?r("li",[r("a",{staticClass:"yo-builder-icon-save",attrs:{title:n.i18n.t("Save in Library"),href:"","uk-icon":"push"},on:{click:function(a){return a.preventDefault(),n.props.builder.save(n.node)}}})]):e._e(),e._v(" "),r("li",[r("a",{staticClass:"yo-builder-icon-delete",attrs:{title:n.i18n.t("Delete"),href:"","uk-icon":"trash"},on:{click:function(a){return a.preventDefault(),n.props.builder.remove(n.node)}}})])])])]),e._v(" "),r("a",{ref:"bottom",staticStyle:{position:"absolute",padding:"0 30px 20px 30px"},attrs:{title:n.i18n.t("Add"),href:""},on:{click:function(a){return a.preventDefault(),n.props.builder.add(n.node)},pointerenter:n.enter,pointerleave:n.leave}},[r("div",{class:`yo-builder-button-${e.type} uk-flex uk-flex-center`,attrs:{"uk-icon":"plus"}})])]):e._e()},mG=[],vG=Q(hG,pG,mG,!1),gG=vG.exports;function ys(t){let e;const r=zt(),n=st("Sidebar"),{trigger:a}=Me({hoverPreviewNode(o,c,d){ke.addClass(nE(c,d),"yo-hover")},leavePreviewNode(o,c,d){ke.removeClass(nE(c,d),"yo-hover")},async scrollPreviewNode(o,c,d){let[p,v]=iE(c,d),b=wp(p,d);!ke.isVisible(b)&&v&&(await a("editNode",[v,d],!0),b=wp(v,d)),b?.scrollIntoView({block:"center"})}});Xv(()=>{if(e?.$destroy(),!r.document||n.hidden)return;const o=r.document.createElement("div"),c=r.document.body.appendChild(o);e=new oe({extends:gG,propsData:{builder:t}}).$mount(c)}),Nr(()=>e?.$destroy())}function nE(t,e){return iE(t,e).map(r=>wp(r,e))}function iE(t,e){return e.path(t).filter((r,n)=>n===0||r.type==="layout"||e.type(r).fragment)}function wp(t,e){return ke.$(`[data-id="${e.id(t)}"]`)}const _G={__name:"ModuleBuilder",props:{id:[String,Number],title:String,content:Object,root:{type:String,default:"layout"},panel:Object},setup(t){const e=t,r=ms("Builder Module"),n=r();br("Builder",n);const{i18n:a}=oe;ys(n);const{trigger:o}=Me({closePanel(b,C,{name:T}={}){T!==e.panel.name||!n.modified||(window.confirm(a.t("The changes you made will be lost if you navigate away from this page."))?o("loadPreview"):C.close=!1)}});n.init({node:e.content||n.make(e.root),prefix:`module-${e.id}#`,onChange:c,rootType:e.root});function c(){o("loadPreview",{module:{id:e.id,content:n.empty?null:JSON.stringify(n.node)}})}async function d(){const{node:b}=n;try{await o("replaceImages",b,!0)&&c(),await Ue("module").post({id:e.id,data:{content:n.empty?null:b}}).res(),n.reset(b)}catch{}}function p(){n.reset(),c()}function v(){n.set({...n.make(e.root),children:[n.make(e.root==="layout"?"section":"row")]})}return{__sfc:!0,useBuilderModule:r,Builder:n,i18n:a,props:e,trigger:o,load:c,save:d,cancel:p,empty:v,Layout:ga,Savebar:Xl,LayoutButtons:ya}}};var bG=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",[r(n.Savebar,{directives:[{name:"show",rawName:"v-show",value:n.Builder.modified,expression:"Builder.modified"}],on:{cancel:n.cancel,save:n.save}}),e._v(" "),r("div",{staticClass:"uk-grid uk-grid-small uk-margin-medium"},[r("div",{staticClass:"uk-width-expand"},[r("h2",{staticClass:"yo-sidebar-heading"},[e._v(e._s(n.i18n.t("Builder")))])]),e._v(" "),r(n.LayoutButtons,{staticClass:"uk-width-auto"})],1),e._v(" "),r("h2",{directives:[{name:"show",rawName:"v-show",value:!n.Builder.empty,expression:"!Builder.empty"}],staticClass:"yo-sidebar-heading-builder uk-text-truncate uk-visible-toggle"},[e._v(` `+e._s(e.title)+` `),r(n.LayoutButtons,{staticClass:"uk-inline-block uk-text-baseline uk-invisible-hover",attrs:{position:"title"}})],1),e._v(" "),r("p",{directives:[{name:"show",rawName:"v-show",value:n.Builder.empty,expression:"Builder.empty"}],staticClass:"uk-text-muted"},[e._v(e._s(n.i18n.t("Create a layout for this module and publish it in the top or bottom position. Start with a new layout and choose from a collection of ready-to-use elements or browse the layout library and start with one of the pre-built layouts.")))]),e._v(" "),r("button",{directives:[{name:"show",rawName:"v-show",value:n.Builder.empty,expression:"Builder.empty"}],staticClass:"uk-button uk-button-default uk-width-1-1",attrs:{type:"button"},on:{click:n.empty}},[e._v(e._s(n.i18n.t("New Layout")))]),e._v(" "),r(n.Layout,{attrs:{node:n.Builder.node}})],1)},yG=[],kG=Q(_G,bG,yG,!1),EG=kG.exports;const TG={__name:"Savebar",emits:["cancel","save"],setup(t,{emit:e}){const{i18n:r}=oe,n=st("Sidebar"),a=Be(null);return Gt(()=>n.$refs.breadcrumb.appendChild(a.value)),Nr(()=>a.value.remove()),{__sfc:!0,i18n:r,emit:e,Sidebar:n,el:a,vConfirm:cn}}};var CG=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",{ref:"el",staticClass:"yo-savebar uk-grid uk-grid-small uk-flex-middle uk-flex-nowrap uk-text-nowrap"},[r("div",[r("button",{directives:[{name:"confirm",rawName:"v-confirm",value:n.i18n.t("Are you sure?"),expression:"i18n.t('Are you sure?')"}],staticClass:"uk-button uk-button-small uk-button-text",attrs:{type:"button"},on:{click:function(a){return n.emit("cancel")}}},[e._v(e._s(n.i18n.t("Cancel")))])]),e._v(" "),r("div",[r("button",{staticClass:"uk-button uk-button-small uk-button-primary",attrs:{type:"button"},on:{click:function(a){return n.emit("save")}}},[e._v(e._s(n.i18n.t("Save Module")))])])])},wG=[],SG=Q(TG,CG,wG,!1),xG=SG.exports;const AG={name:"ModulePanel",components:{Fields:{extends:Wr,props:{type:{type:String,required:!0},position:{type:String,required:!0}}},Savebar:xG},props:{panel:{type:Object,required:!0},module:{type:Object,required:!0}},data:({module:t})=>({values:{...t.values},prevValues:{...t.values}}),computed:{modified(){return JSON.stringify(this.values)!==JSON.stringify(this.prevValues)}},watch:{values:{handler(){this.load()},deep:!0}},methods:{load(){this.$trigger("loadPreview",{module:{id:this.module.id,yoo_config:JSON.stringify(this.values)}})},save(){return Ue("module").post({id:this.module.id,data:{params:{yoo_config:JSON.stringify(this.values)}}}).res(()=>this.prevValues={...this.values}).catch(t=>Ut(t,"danger"))},cancel(){this.values={...this.module.values}}},events:{closePanel(t,e,{name:r}={}){const n=this.$t("The changes you made will be lost if you navigate away from this page.");r!==this.panel.name||!this.modified||(window.confirm(n)?(this.cancel(),this.load()):e.close=!1)}}};var OG=function(){var e=this,r=e._self._c;return r("div",[r("Savebar",{directives:[{name:"show",rawName:"v-show",value:e.modified,expression:"modified"}],on:{cancel:e.cancel,save:e.save}}),e._v(" "),r("Fields",{staticClass:"uk-margin-medium-top",attrs:{panel:e.panel,values:e.values,type:e.module.type,position:e.module.position}})],1)},NG=[],PG=Q(AG,OG,NG,!1),IG=PG.exports;const LG={__name:"ModuleSection",props:{panel:Object},setup(t){const{i18n:e}=oe,{trigger:r}=Me(),n=zt(),a=eu(),o=Be(!1),c=Ae(()=>a.positions.map(x=>({name:x||"none",modules:a.modules.filter(S=>(!o.value||v(S))&&(S.position===x||!x&&!a.positions.includes(S.position)))})).filter(({modules:x})=>x.length)),d=Ae(()=>n.iframe?.contentDocument),p=Ae(()=>Array.from(d.value?.querySelectorAll('[id^="module-"]')??[]).map(x=>x.id.replace(/module-(\d+)/,"$1")).filter(isFinite));function v({id:x}){return p.value.includes(x.toString())}function b(){r("editModule")}function C(x){x.builder?j(x):G(x)}function T(x){r("editModule",[{id:x.id}])}function A(x){return`${a.types[x.type]??x.type} (${x.id})`}function F(x,{type:S}){d.value&&v(x)&&(S==="mouseenter"?Tp(`[id^="module-${x.id}"]`,d.value):Zo(d.value))}async function G({id:x,...S}){const P=await Ue("module").query({id:x}).get().json(),R={width:400,...ue.customizer.panels.module},B=O(R.fields,JSON.parse(P.params.yoo_config??"{}"));r("openPanel",{...R,url:ue.customizer.module.url,title:S.title,props:{module:{id:x,values:B,...S}},component:IG})}async function j({id:x,title:S,position:P}){const R=await Ue("module").query({id:x}).get().json();r("openPanel",{name:"module-builder",component:EG,width:500,heading:!1,title:e.t("Builder"),props:{id:x,title:S,root:["top","bottom"].includes(P)?"layout":"fragment",content:R.content}})}function O(x,S){const P={};for(const[R,B]of Object.entries(x))P[R]=B.default;return{...P,...S}}return{__sfc:!0,i18n:e,trigger:r,Store:n,Module:a,onlyVisible:o,positionList:c,document:d,visible:p,get:v,add:b,edit:C,options:T,title:A,hover:F,editPanel:G,editBuilder:j,mergeDefaults:O}}};var RG=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",[r("label",[r("input",{directives:[{name:"model",rawName:"v-model",value:n.onlyVisible,expression:"onlyVisible"}],staticClass:"uk-checkbox",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(n.onlyVisible)?e._i(n.onlyVisible,null)>-1:n.onlyVisible},on:{change:function(a){var o=n.onlyVisible,c=a.target,d=!!c.checked;if(Array.isArray(o)){var p=null,v=e._i(o,p);c.checked?v<0&&(n.onlyVisible=o.concat([p])):v>-1&&(n.onlyVisible=o.slice(0,v).concat(o.slice(v+1)))}else n.onlyVisible=d}}}),e._v(` `+e._s(n.i18n.t("Visible on this page"))+` `)]),e._v(" "),r("p",{staticClass:"uk-text-muted uk-margin-small"},[e._v(e._s(n.i18n.t("Only display modules that are published and visible on this page.")))]),e._v(" "),e._l(n.positionList,function({name:a,modules:o}){return[r("h3",{key:`heading-${a}`,staticClass:"yo-sidebar-subheading"},[e._v(e._s(a))]),e._v(" "),r("ul",{key:`list-${a}`,staticClass:"uk-nav uk-nav-default yo-sidebar-marginless uk-text-capitalize yo-nav-iconnav"},e._l(o,function(c){return r("li",{key:c.id,staticClass:"uk-visible-toggle",class:{"yo-highlight":!n.onlyVisible&&n.get(c),"uk-disabled":!c.canEdit},on:{mouseenter:function(d){return n.hover(c,d)},mouseleave:function(d){return n.hover(c,d)}}},[r("a",{attrs:{href:"",title:n.title(c)},on:{click:function(d){d.preventDefault(),c.canEdit&&n.edit(c)}}},[r("span",{staticClass:"uk-text-truncate"},[e._v(e._s(c.title))])]),e._v(" "),c.canEdit?r("button",{staticClass:"uk-position-center-right uk-position-medium uk-icon-link uk-invisible-hover",staticStyle:{padding:"10px 0 10px 10px"},attrs:{type:"button","uk-icon":"icon: more-vertical"},on:{click:function(d){return d.preventDefault(),n.options(c)}}}):e._e()])}),0)]}),e._v(" "),n.Module.canCreate?r("button",{staticClass:"uk-button uk-button-default uk-width-1-1 uk-margin-medium-top",attrs:{type:"button"},on:{click:function(a){return a.preventDefault(),n.add()}}},[e._v(e._s(n.i18n.t("New Module")))]):e._e()],2)},DG=[],MG=Q(LG,RG,DG,!1),$G=MG.exports,FG={extends:Uo,computed:{...ud(eu,["types","modules"])},created(){this.$on("change",t=>{const e=this.modules.find(r=>r.id===t);mt(this.values,"type",e?.type??"")})},methods:{filterOptions(){const t=[{value:"",text:this.$t("- Select Module -")}];for(const[e,r]of Object.entries(this.types)){const n=this.modules.filter(a=>a.type===e).map(({id:a,title:o})=>({value:a,text:`${o} - ${a}`}));n.length&&t.push({label:r,options:n})}return t}}},BG={extends:Uo,computed:{...ud(eu,["positions"])},methods:{filterOptions(){return[{value:"",text:this.$t("- Select Position -")},...this.positions.filter(t=>t).map(t=>({text:t,value:t}))]}}},HG={init({Vue:t,extend:e}){e({components:{"joomla-modules":$G}});const{trigger:r}=Me({editModule(n,a){return Dt(uG,{...a,url:ue.customizer.module.url},{container:!0})},async updateModule(){const n=eu();n.modules=await Ue("modules").get().json(),n.positions=await Ue("positions").get().json(),r("loadPreview")}});t.component("FieldSelectModule",FG),t.component("FieldSelectPosition",BG)}};const UG={extends:Ze,methods:{async open(){this.select(await this.$trigger("openFilePicker",[],!0))},select(t){t&&(_t(t)&&(t=t.src),jG(t)&&(t=`${t}/*`),this.value=t)}}};function jG(t){return t?.match(/\/[^.]+$/)}var WG=function(){var e=this,r=e._self._c;return r("div",{staticClass:"uk-inline uk-width-1-1"},[r("div",{staticClass:"uk-position-center-right uk-position-small"},[r("ul",{staticClass:"uk-iconnav"},[r("li",[r("a",{staticClass:"uk-icon-link uk-preserve-width",attrs:{title:e.$t("Pick"),href:"","uk-icon":"album","uk-tooltip":"delay: 500"},on:{click:function(n){return n.preventDefault(),e.open.apply(null,arguments)}}})])])]),e._v(" "),r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"uk-input yo-input-iconnav-right",attrs:{type:"text"},domProps:{value:e.value},on:{input:function(n){n.target.composing||(e.value=n.target.value)}}},"input",e.attributes,!1))])},GG=[],zG=Q(UG,WG,GG,!1),qG=zG.exports,YG={init(){Object.assign(Vr.components,{FieldSelectFile:qG})}},Rr={get types(){return ue.builder.schema?.types??null},get rootQueryType(){const t=ue.builder.schema?.queryType?.name;return this.types.find(e=>e.name===t)??null},get rootQueryFields(){return aE(this.types,this.rootQueryType?.fields)},findField(t,e){return t=this.resolvePath(Zn(e,t)),t.length?t.at(-1)[0]:null},getFields(t,e="SCALAR"){return t?sE(this.types,t,e):[]},hasFields(t,e="SCALAR"){return t?Sp(this.types,t,e):!1},getFieldType(t){return tu(this.types,t)},getFieldLabel(t){return t.length?uE(t):""},getParentFieldLabel(t){return t.slice(1).find(([e,r])=>uc(r)&&e.metadata?.label)?.[0].metadata.label??""},resolvePath(t,e=""){const r=KG(this.types,this.rootQueryType,Zn(e,t));return e?r.slice(e.split(".").length):r}};function Zn(...t){return t.flat(1/0).filter(Boolean).join(".")}function aE(t,e=[],r=[]){const n=[];for(const a of e){const o=tu(t,a);o&&(uc(o)?n.push({...a,name:Zn(r,a.name)}):n.push(...aE(t,o.fields,r.concat(a.name))))}return n}function KG(t,e,r){const n=[];for(const a of r.split(".")){let o=e?.fields?.find(c=>c.name===a);if(e=tu(t,o),!o||!e)return[];n.push([o,e])}return n}function Sp(t,e,r,n=new Set){const a=tu(t,e);if(n.has(a))return!1;n.add(a);for(const o of a.fields||[]){if(o.type.kind===r)return!0;if(!(a.kind!=="OBJECT"||r==="SCALAR"&&o.type.kind==="LIST")&&Sp(t,o,r,n))return!0}return!1}function sE(t,e,r,n=[]){const a=tu(t,e);if(!a)return[];if(n=[[e,a],...n],e.type.kind===r&&n.length>1)return[oE(e,n)];if(n.length>1&&(a.kind!=="OBJECT"||r==="SCALAR"&&e.type.kind==="LIST"))return[];if(n.filter(([,c])=>a===c).length>2)return[];let o=[];if(n.length>1&&uc(a))e.type.kind!=="LIST"&&Sp(t,e,r)&&o.push({...oE(e,n),isType:!0});else for(const c of a.fields||[])o.push(...sE(t,c,r,n));return n.length>1?o:XG(o)}function XG(t){const e={};for(const r of t)(e[r.subgroup]??=[]).push(r);return Object.values(e).flat()}function oE(t,e){return{_field:t,subgroup:VG(e),text:uE(e),value:Zn(e.toReversed().slice(1).map(([{name:r}])=>r))}}function tu(t,e){const{name:r}=e?.type?.ofType||e?.type||{};return r?t.find(n=>n.name===r):null}function VG(t){for(const[{metadata:e}]of t.slice(0,-1))if(e?.group)return e.group}function uE(t){const[[{name:e,metadata:r}]]=t;let n=[r.label??e];for(const[a,o]of t.slice(1,-1)){if(uc(o))break;a.metadata?.label&&n.unshift(a.metadata.label)}return n.join(" ")}function uc(t){return t.metadata?.type}var je={parentKey:"#parent",getQuery(t){return t.source?.query?.name||""},setQuery(t,e){e?(fn(t,"source.query.name",e),oe.delete(t.source.query,"arguments"),this.setField(t,!1)):(oe.delete(t.source,"query"),An(t.source)&&oe.delete(t,"source"))},getQueryArgs(t){return t.source?.query?.arguments},getQueryArg(t,e){return this.getQueryArgs(t)?.[e]},setQueryArg(t,e,r){fn(t,`source.query.arguments.${e}`,r)},getField(t){return t?.source?.query?.field?.name||""},setField(t,e){e?e!==this.getField(t)&&fn(t,"source.query.field",{name:e}):oe.delete(t.source?.query,"field")},getFieldArgs(t){return t.source?.query?.field?.arguments},getFieldArg(t,e){return this.getFieldArgs(t)?.[e]},setFieldArg(t,e,r){fn(t,`source.query.field.arguments.${e}`,r)},getFieldDirective(t,e){return pa(t.source?.query?.field?.directives,{name:e})},getFieldDirectiveArgs(t,e){return this.getFieldDirective(t,e)?.arguments},getFieldDirectiveArg(t,e,r){return this.getFieldDirectiveArgs(t,e)?.[r]},setFieldDirectiveArg(t,e,r,n){let a=this.getFieldDirective(t,e);a||(a={name:e},t.source?.query?.field?.directives||fn(t,"source.query.field.directives",[]),t.source.query.field.directives.push(a)),fn(a,`arguments.${r}`,n)},getProp(t,e){return t.source?.props?.[e]},setProp(t,e,r){const n=QG(this.getSourceField(t,r)),[a]=t;oe.delete(a.props,e),fn(a,`source.props.${e}`,{...n,...r})},removeProp(t,e){oe.delete(t.source.props,e),An(t.source.props)&&oe.delete(t.source,"props"),An(t.source)&&oe.delete(t,"source")},getSourcePath(t){let e,r=[];for(const n of t){e=this.getQuery(n)||e;const a=this.getField(n);if(a&&r.unshift(a),!e||e!==this.parentKey)break}return e&&e!==this.parentKey?Zn(e,r):""},getSourceField(t,e){let r=this.getSourcePath(t);return r?Rr.findField(e?.name,r):null},getParentSourceField(t){return this.getSourceField(t.slice(1).filter(e=>this.hasSource(e)))},getSourceFieldFields(t,e){return lE(this.getSourceField(t,e))},getSourceFieldLabel(t,e){const r=Rr.resolvePath(this.getPropPath(t,e)).reverse();return r.length?{label:Rr.getFieldLabel(r),group:Rr.getParentFieldLabel(r)}:null},getPropPath(t,e){let r=this.getSourcePath(t);return r?Zn(r,e?.name):""},hasFields(t,e){return Rr.hasFields(this.getSourceField(t),e)},hasListFields(t){return Rr.hasFields(this.getSourceField(t),"LIST")},hasSource(t){return!!this.getQuery(t)},isMultipleSource(t){const[e]=t;return this.hasSource(e)?this.getQuery(e)===this.parentKey?!!this.getField(e):this.getSourceField(t)?.type?.kind==="LIST":!1},showMultipleSelectField(t){return this.getField(t[0])||!this.isMultipleSource(t)&&this.hasListFields(t)},hasInvalidSource(t,e){const r=this.getQuery(t),n=An(t.source?.props);if(!r)return!n&&(Object.keys(t.source.props).length>1||!t.source.props._condition)?"empty-source":!1;const a=Rr.findField(r);if(a?.metadata?.view&&!a.metadata.view.includes(e.view))return!0;const o=e.path(t);if(!this.getSourceField(o))return"empty-field";if(n)return cE(t,c=>{const d=this.getQuery(c);if(d)return d===this.parentKey})?!1:"empty-props";for(const c of Object.values(t.source?.props??{})){const d=this.getSourceField(o,c);if(!d&&!c?.name?.startsWith("#"))return"invalid-field";const p=d?.metadata?.arguments??{};if(!Object.keys(c.arguments??{}).every(v=>v in p))return"invalid-argument"}return!1}};function QG(t){const e={};for(const r of lE(t).filter(n=>"default"in n))fn(e,r.name,r.default);return e}function lE(t){return[...ZG(t),...JG(t)]}function JG(t){return ma(t?.metadata?.arguments,(e,r)=>({name:`arguments.${r}`,...e}))}function ZG(t,e=["before","after","search","replace"]){const r=ue.builder.sources.filters;return[...e,...ez(t?.metadata?.filters)].map(n=>Sn(n)?{name:`filters.${n}`,...r[n]}:n).filter(n=>n)}function ez(t){return Array.isArray(t)?t:ma(t,(e,r)=>({name:`filters.${r}`,...e}))}function cE(t,e){for(const r of t.children||[]){const n=e(r);if(n)return!0;if(n===!1)continue;const a=cE(r,e);if(a)return a}return!1}const tz={__name:"FieldsList",props:{builder:Object,node:Object,prop:String,fieldType:String,additionalFields:Array},emits:["resolve"],setup(t,{emit:e}){const r=t,{i18n:n}=oe,a=Be(""),o=Be(null),c=Be(F()),d=Ae(()=>Rr.findField(c.value,T())),p=Ae(()=>Rr.getFields(d.value,r.fieldType).filter(O=>!O._field.metadata?.condition||r.prop==="_condition")),v=Ae(()=>p.value.filter(({text:O})=>da(O,a.value))),b=Ae(()=>{const{length:O}=c.value,x=j(Rr.findField(c.value.slice(0,-1),T()));return O>1?n.t("%label% (%depth%)",{label:x,depth:O}):x});gt(()=>c.value,()=>o.value.scrollTop=0);function C(O){if(O.isType){c.value=c.value.concat(O.value);return}e("resolve",Zn(c.value,O.value))}function T(){let O=je.getSourcePath(r.builder.path(r.node));const x=je.getField(r.node);return!r.prop&&x&&(O=O.slice(0,-(x.length+1))),O}function A(){return r.prop?je.getProp(r.node,r.prop)?.name||"":je.getField(r.node)}function F(){const O=A();let x=[],S=[];for(const[P,R]of Rr.resolvePath(O,T()))S.push(P.name),P.type.kind==="OBJECT"&&R.metadata?.type&&(x.push(Zn(S)),S=[]);return x}function G(O){return Zn(c.value,O.value)===A()}function j(O){return O.metadata?.label||O.name}return{__sfc:!0,i18n:n,emit:e,props:r,search:a,scrollEl:o,path:c,baseField:d,fields:p,fieldList:v,backButtonLabel:b,select:C,basePath:T,getCurrentValue:A,getInitialPath:F,isCurrent:G,toFieldLabel:j,api:ue}}};var rz=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",[r("div",{staticClass:"yo-dropdown-header"},[r("div",{staticClass:"uk-search uk-search-default uk-width-1-1"},[r("input",{directives:[{name:"model",rawName:"v-model",value:n.search,expression:"search"}],staticClass:"uk-search-input",attrs:{placeholder:n.i18n.t("Search"),type:"search",autofocus:""},domProps:{value:n.search},on:{input:function(a){a.target.composing||(n.search=a.target.value)}}}),e._v(" "),r("span",{staticClass:"uk-search-icon-flip",attrs:{"uk-search-icon":""}})])]),e._v(" "),r("div",{ref:"scrollEl",staticClass:"yo-dropdown-body uk-overflow-auto uk-height-max-large"},[r("ul",{staticClass:"uk-nav uk-dropdown-nav"},[n.path.length?r("li",{staticClass:"uk-nav-header uk-padding-remove",on:{click:function(a){return a.preventDefault(),n.path.pop()}}},[r("a",{staticClass:"uk-flex uk-flex-middle uk-text-emphasis",attrs:{href:""}},[r("img",{staticClass:"uk-icon uk-margin-xsmall-right",attrs:{"uk-svg":`${n.api.config.assets}/images/field-dynamic-arrow-left.svg`,"aria-hidden":"true"}}),e._v(" "),r("span",[e._v(e._s(n.backButtonLabel))])])]):e._l(e.additionalFields,function(a){return[a.label?[r("li",{key:`label-${a.label}`,staticClass:"uk-nav-header"},[e._v(e._s(a.label))]),e._v(" "),e._l(a.options,function(o){return r("li",{key:o.value},[r("a",{attrs:{href:""},on:{click:function(c){return c.preventDefault(),n.select(o)}}},[e._v(e._s(o.text))])])})]:r("li",{key:a.value},[r("a",{attrs:{href:""},on:{click:function(o){return o.preventDefault(),n.select(a)}}},[e._v(e._s(a.text))])])]}),e._v(" "),r("li",{staticClass:"uk-nav-header"},[e._v(e._s(n.toFieldLabel(n.baseField)))]),e._v(" "),e._l(Object.entries(n.fieldList),function([a,o]){return[o.subgroup&&n.fieldList[a-1]?.subgroup!==o.subgroup?r("li",{key:`${o.value}-label`,staticClass:"yo-nav-subheader"},[e._v(e._s(o.subgroup))]):e._e(),e._v(" "),r("li",{key:o.value},[r("a",{attrs:{href:""},on:{click:function(c){return c.preventDefault(),n.select(o)}}},[o.isType?r("img",{staticClass:"uk-icon uk-margin-xsmall-right",attrs:{"uk-svg":`${n.api.config.assets}/images/field-dynamic-arrow-right.svg`,"aria-hidden":"true"}}):e._e(),e._v(` `+e._s((n.isCurrent(o)?"\u2713 ":"")+o.text)+` `)])])]})],2),e._v(" "),n.fieldList.length?e._e():r("span",[e._v(e._s(n.i18n.t("No source mapping found.")))])])])},nz=[],iz=Q(tz,rz,nz,!1),xp=iz.exports;const az={__name:"SourceIcon",props:{node:Object,child:Boolean,parent:Boolean,multiple:Boolean,error:[Boolean,String],tooltipDirection:{type:String,default:"bottom"}},setup(t){const e=t,{i18n:r}=oe,n=Ae(()=>{let o="yo-builder-icon-dynamic";return e.parent&&(o+="-p"),e.multiple&&(o+="-n"),e.error&&(o+="-error"),o}),a=Ae(()=>{const o={"empty-props":r.t("No Field Mapped"),"invalid-field":r.t("Invalid Field Mapped"),"invalid-argument":r.t("Invalid Argument Mapped")},c=e.error?o[e.error]??r.t("Invalid Source"):e.multiple?e.parent?r.t("Dynamic Multiplication (Parent Source)"):r.t("Dynamic Multiplication"):e.parent?r.t("Dynamic Content (Parent Source)"):r.t("Dynamic Content");return e.child?r.t("Contains %title%",{title:c}):c});return{__sfc:!0,i18n:r,props:e,icon:n,title:a}}};var sz=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("span",{class:n.icon,attrs:{title:n.title,"uk-tooltip":`delay: 1000; pos: ${n.props.tooltipDirection}`}})},oz=[],uz=Q(az,sz,oz,!1),fE=uz.exports;const lz={__name:"Dynamic",props:{field:Object,values:Object},setup(t){const e=t,{i18n:r}=oe,{trigger:n}=Me(),a=st("$node"),o=st("Builder"),c=Ae(()=>je.getProp(a,e.field.name)),d=Ae(()=>c.value&&je.getSourceFieldLabel(o.path(a),c.value));function p(){n("editSourceProp",[je.getSourceFieldFields(o.path(a),c.value),c.value])}function v(){je.removeProp(a,e.field.name)}return{__sfc:!0,i18n:r,trigger:n,node:a,Builder:o,props:e,prop:c,config:d,edit:p,remove:v,api:ue}}};var cz=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",{staticClass:"uk-position-relative uk-input yo-input-iconnav-right uk-flex",class:{"uk-form-danger":!n.config}},[r("img",{staticClass:"uk-flex-none uk-margin-small-right",attrs:{"uk-svg":`${n.api.config.assets}/images/builder/dynamic-field.svg`,"aria-hidden":"true"}}),e._v(" "),r("div",{staticClass:"yo-input-locked uk-flex-1"},[e._v(e._s(n.config?n.i18n.t("%label% - %group%",n.config):n.prop.name))]),e._v(" "),r("div",{staticClass:"uk-position-center-right uk-position-small"},[r("ul",{staticClass:"uk-iconnav uk-flex-nowrap"},[r("li",{directives:[{name:"show",rawName:"v-show",value:n.config,expression:"config"}]},[r("a",{staticClass:"uk-icon-link uk-preserve-width",attrs:{title:n.i18n.t("Edit"),href:"","uk-icon":"pencil","uk-tooltip":"delay: 500"},on:{click:function(a){return a.preventDefault(),n.edit.apply(null,arguments)}}})]),e._v(" "),r("li",[r("a",{staticClass:"uk-icon-link uk-preserve-width",attrs:{title:n.i18n.t("Delete"),href:"","uk-icon":"trash","uk-tooltip":"delay: 500"},on:{click:function(a){return a.preventDefault(),n.remove.apply(null,arguments)}}})])])])])},fz=[],dz=Q(lz,cz,fz,!1),dE=dz.exports,hz={name:"Limit",extends:ik,computed:{value:{get(){return xn(this.values,this.name)||void 0},set(t){const e=ke.clamp(ke.toFloat(t),this.attributes.min||Number.MIN_SAFE_INTEGER,this.attributes.max||Number.MAX_SAFE_INTEGER)||void 0;e!==t&&(this.$el.value=dr(e)?"":e),this.$emit("change",e,this)}}}};const pz={name:"SelectItem",extends:Ze,data:()=>({title:null}),computed:{labels(){return this.field.labels??{}}},watch:{value:{async handler(t){t?this.title=await this.$trigger("resolveItemTitle",{...this.field,id:t},!0):this.title=null},immediate:!0}},methods:{async pick(){const t=await this.$trigger("openItemPicker",this.field,!0);t&&(this.value=t)},remove(){this.value=void 0}}};var mz=function(){var e=this,r=e._self._c;return r("div",{staticClass:"uk-position-relative uk-input yo-input-locked yo-input-iconnav-right"},[r("span",[e._v(e._s(e.value?e.title||e.$t("Unknown %type%",{type:e.labels.type||"Item"}):e.$t("Pick %type%",{type:e.labels.type||"Item"})))]),e._v(" "),r("div",{staticClass:"uk-position-center-right uk-position-small"},[r("ul",{staticClass:"uk-iconnav uk-flex-nowrap"},[r("li",[r("a",{staticClass:"uk-icon-link uk-preserve-width",attrs:{title:e.$t("Pick %type%",{type:e.labels.type||"Item"}),href:"","uk-icon":"pencil","uk-tooltip":"delay: 500"},on:{click:function(n){return n.preventDefault(),e.pick.apply(null,arguments)}}})]),e._v(" "),e.value?r("li",[r("a",{staticClass:"uk-icon-link uk-preserve-width",attrs:{title:e.$t("Delete"),href:"","uk-icon":"trash","uk-tooltip":"delay: 500"},on:{click:function(n){return n.preventDefault(),e.remove.apply(null,arguments)}}})]):e._e()])])])},vz=[],gz=Q(pz,mz,vz,!1),_z=gz.exports,bz={name:"SourceFieldArgs",setup(){const t=st("Builder");return function(e){const{node:r}=this.$parent,n=je.getQuery(r),a=je.getField(r);if(!n||!a)return null;const o=je.getSourceField(t.path(r))?.metadata?.arguments;return An(o)?null:e(Wr,{props:{panel:{fields:o},values:je.getFieldArgs(r)},on:{change(c,{name:d}){je.setFieldArg(r,d,c)}},key:`args-${n}-${a}`},[])}}},yz={name:"SourceFieldDirective",props:{field:Object,required:!0},setup(t){return function(e){const{node:r}=this.$parent,{name:n,fields:a}=t.field,o=je.getQuery(r),c=je.getField(r);return c?e(Wr,{props:{panel:{fields:a},values:je.getFieldDirectiveArgs(r,n)},on:{change(d,{name:p}){je.setFieldDirectiveArg(r,n,p,d)}},key:`directive-${o}-${c}`},[]):null}}},kz={name:"SourceFieldDirectives",setup(){const t=st("Builder");return function(e){const{node:r}=this.$parent,n=je.getQuery(r),a=je.getField(r);if(!n||!a)return null;const d=(je.getSourceField(t.path(r))?.metadata?.directives||["slice"]).filter(p=>ue.builder?.sources?.directives?.[p]).map(p=>({type:"source-field-directive",name:p,...ue.builder.sources.directives[p]}));return d.length?e(Wr,{props:{panel:{fields:d}},key:`directives-${n}-${a}`},[]):null}}},Ez={name:"SourceFieldSelect",props:{field:Object,values:Object},setup(){const{i18n:t}=oe,e=st("Builder");return function(r){const{node:n}=this.$parent,a=je.getField(n),o=a&&je.getSourceFieldLabel(e.path(n));return r("a",{class:["uk-select",{"uk-form-danger":a&&!o}],on:{click:async c=>{c.preventDefault();const{target:d}=c,p=await Io(xp,{builder:e,node:n,fieldType:"LIST",additionalFields:[{text:t.t("None"),value:""}]},d,{classes:"yo-dropdown",boundaryX:d.closest(".yo-sidebar-fields > *")||d});p!==void 0&&je.setField(n,p)}}},a?o?t.t("%label% - %group%",o):a.name:t.t("None"))}}},Tz={name:"SourcePropFilters",props:{field:{type:Object,required:!0}},setup:t=>function(e){const{node:r}=this.$parent,{prop:n,fields:a}=t.field,o=je.getProp(r,n)?.name,c=je.getProp(r,n)?.filters;return o?e(Wr,{props:{panel:{fields:a},values:c},key:o},[]):null}},Cz={name:"SourcePropSelect",props:{field:Object,values:Object},setup(t){const{i18n:e}=oe,r=st("Builder");return function(n){const{node:a}=this.$parent,o=r.path(a),c=je.getProp(a,t.field.prop);let d=c&&je.getSourceFieldLabel(o,c);const p=[{text:e.t("None"),value:""}];if(je.getSourceField(o)?.type.kind==="LIST"){const v=e.t("Source"),b={"#first":e.t("First Item"),"#last":e.t("Last Item"),"#index":e.t("Item Index")};p.push({label:v,options:wz(b)}),c&&b[c.name]&&(d={label:b[c.name],group:v})}return n("a",{class:["uk-select",{"uk-form-danger":c&&!d}],on:{click:async v=>{v.preventDefault();const{target:b}=v,{field:C}=t,T=await Io(xp,{builder:r,node:a,prop:C.prop,additionalFields:p},b,{classes:"yo-dropdown",boundaryX:b.closest(".yo-sidebar-fields > *")||b});T!==void 0&&(T?je.setProp(r.path(a),C.prop,{name:T,filters:{}}):je.getProp(a,C.prop)&&je.removeProp(a,C.prop))}}},c?d?e.t("%label% - %group%",d):c.name:e.t("None"))}}};function wz(t){return Object.entries(t).map(([e,r])=>({value:e,text:r}))}var Sz={name:"SourceQueryArgs",props:{field:Object,values:Object},setup(){return function(t){const{node:e}=this.$parent,r=je.getQuery(e),n=Rr.findField(r)?.metadata?.fields;return An(n)?null:t(Wr,{props:{panel:{fields:n},values:je.getQueryArgs(e)},on:{change(a,{name:o}){je.setQueryArg(e,o,a)}},key:r},[])}}},xz={name:"SourceSelect",inject:["Builder","$node"],extends:Uo,computed:{value:{get(){return je.getQuery(this.$node)},set(t){je.setQuery(this.$node,t)}}},methods:{filterOptions(){const t=Rr.rootQueryFields?.filter(r=>!r.metadata?.view||r.metadata.view.includes(this.Builder.view)).map(({name:r,metadata:{label:n,group:a=""}={}})=>({value:r,text:n||r,group:a})),e=je.getParentSourceField(this.Builder.path(this.$node));return[{text:this.$t("None"),value:""},...e?[{label:this.$t("Parent"),options:[{text:this.$t("Parent (%label%)",e.metadata),value:je.parentKey}],divider:!0}]:[],...ma(A8({Page:[],...Ci(Ti(t,"group"),"group")},r=>!r.length),(r,n)=>({label:n,options:r,divider:!0})),...Ti(t.slice(0,1),{group:""}).map(r=>({...r,divider:!0})),...Ti(t.slice(1),{group:""})]}}},Az=Object.freeze({__proto__:null,FieldDynamic:dE,FieldLimit:hz,FieldSelectItem:_z,FieldSourceFieldArgs:bz,FieldSourceFieldDirective:yz,FieldSourceFieldDirectives:kz,FieldSourceFieldSelect:Ez,FieldSourcePropFilters:Tz,FieldSourcePropSelect:Cz,FieldSourceQueryArgs:Sz,FieldSourceSelect:xz}),Oz={init(){Object.assign(Vr.components,Az),ue.builder.helpers=Object.assign(ue.builder.helpers||{},{Schema:Rr,Source:je})},setup(){const{i18n:t}=oe;Me({prepareFields({origin:{builder:e,node:r}},n){if(!(!e||!r))for(const a of n)a.source&&(a.buttons=(a.buttons||[]).concat([{label:t.t("Dynamic"),action:"pickSource",show:()=>je.hasFields(e.path(r))}]),je.getProp(r,a.name)&&(a.component=dE))},evaluateExpression(e,r,n){const{builder:a,node:o}=e.origin;a&&o?.source?.props&&(e.params[1]={...n,...o.source.props})},async pickSource({origin:{builder:e,node:r}},n,{target:a}){const o=await Io(xp,{builder:e,node:r,prop:n.name},a,{classes:"yo-dropdown",boundaryX:a.closest(".yo-sidebar-fields > *")||a}),c=je.getProp(r,n.name);o&&(!c||o!==c.name)&&je.setProp(e.path(r),n.name,{name:o})},editSourceProp({origin:{$el:e}},r,n){ds(s9,{config:r,values:n},e)},contentItemTitle({origin:{Builder:e}},r){const n=je.getSourceField(e.path(r));if(n)return n?.metadata.label},editNode(e,r){Array.isArray(r.source?.props)&&mt(r.source,"props",{})},transformedNode(e,r,n,a){if(!n.source)return;const o=a.type(r);if(!o.fields?.source)return;const c=kr({},n.source);for(const d of Object.keys(c.props||{}))d in o.fields||delete c.props[d];r.source=c},statusesNode({origin:e,result:r=[]},n){return je.hasInvalidSource(e.node,e.Builder)&&r.push("error"),je.isMultipleSource(e.Builder.path(n))&&r.push("multiple-source"),r},statusIconsNode({origin:e,result:r=[]}){const{getStates:n,findStates:a}=Nz(e.Builder);if((je.hasSource(e.node)||je.hasInvalidSource(e.node,e.Builder))&&r.push({component:fE,...n(e.node)}),e.isContainerElement)for(const o of a(e.node))r.push({component:fE,child:!0,...o});return r}})}};function Nz(t){function e(n){let a=[];for(const o of t.children(n))je.hasSource(o)&&a.push(r(o));return H8(a,Gl)}function r(n){return{parent:je.parentKey===je.getQuery(n),multiple:je.isMultipleSource(t.path(n)),error:je.hasInvalidSource(n,t)}}return{getStates:r,findStates:e}}const Pz={__name:"BuilderSearchTemplate",props:{panel:Object,template:Object},setup(t){const e=t,{i18n:r}=oe,n=ms("Builder Template"),a=zt(),o=Ho(),c=n();br("Builder",c),ys(c);const{trigger:d}=Me({beforeunloadPreview(G,{event:j}){c.modified&&(j.preventDefault(),j.returnValue=!0)},closePanel(G,j,{name:O}={}){const x=r.t("The changes you made will be lost if you navigate away from this page.");O===e.panel.name&&c.modified&&(window.confirm(x)?c.reset():j.close=!1)}});el(()=>{c.init({node:c.clone(e.template.layout),prefix:`template-${e.template.id}#`,rootType:"fragment",view:"_search",onChange:p}),p()}),Nr(()=>{for(const G of v())for(const j of G.$el.ownerDocument.querySelectorAll(".uk-drop.uk-open, .uk-modal.uk-open"))j.dispatchEvent(new CustomEvent("toggle"))});function p(){for(const G of v())b(G)}function v(){return Array.from(a.document.querySelectorAll("[uk-search]")).map(G=>nr.getComponent(G,"search"))}async function b(G){const{form:j}=G.$el;j.dataset.liveSearch=JSON.stringify({...JSON.parse(j.dataset.liveSearch||"{}"),customizer:Cl(JSON.stringify({template:{id:e.template.id,type:e.template.type,layout:c.empty?null:c.node}}))}),await G.update(),C(G)}function C(G){if(!(G.$el.closest("header")||G.$el.ownerDocument.querySelector(`[uk-toggle][href="#${G.$el.closest(".uk-modal").id}"]`))?.checkVisibility())return;if(G.dropdown){G.showDropdown();return}const j=G.$el.closest(".uk-modal, .uk-drop");j.classList.contains("uk-open")||j.dispatchEvent(new CustomEvent("toggle"))}async function T(G=c.node){try{await d("replaceImages",G,!0)&&p();const O=c.empty?null:G;await o.saveTemplate({...e.template,layout:O}),await o.getTemplates(),c.reset(c.clone(O))}catch{}}function A(){c.reset(),p()}function F(){c.set({...c.make("fragment"),children:[c.make("row")]})}return{__sfc:!0,i18n:r,useBuilderTemplate:n,Preview:a,BuilderStore:o,builder:c,props:e,trigger:d,load:p,getSearchComponents:v,updateSearch:b,showResults:C,save:T,cancel:A,empty:F,Layout:ga,Savebar:Xl,LayoutButtons:ya}}};var Iz=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",[r(n.Savebar,{directives:[{name:"show",rawName:"v-show",value:n.builder.modified,expression:"builder.modified"}],on:{cancel:n.cancel,save:n.save}}),e._v(" "),r("div",{staticClass:"uk-grid uk-grid-small uk-margin-medium"},[r("div",{staticClass:"uk-width-expand"},[r("h2",{staticClass:"yo-sidebar-heading"},[e._v(e._s(n.i18n.t("Builder")))])]),e._v(" "),r(n.LayoutButtons,{staticClass:"uk-width-auto"})],1),e._v(" "),r("h2",{staticClass:"yo-sidebar-heading-builder uk-text-truncate uk-visible-toggle"},[e._v(` `+e._s(n.props.template.name)+` `),r(n.LayoutButtons,{staticClass:"uk-inline-block uk-text-baseline uk-invisible-hover",attrs:{position:"title"}})],1),e._v(" "),r("p",{directives:[{name:"show",rawName:"v-show",value:n.builder.empty,expression:"builder.empty"}],staticClass:"uk-text-muted"},[e._v(e._s(n.i18n.t("Create a general layout for the live search results. Start with a new layout and choose from a collection of ready-to-use elements or browse the layout library and start with one of the pre-built layouts.")))]),e._v(" "),r("button",{directives:[{name:"show",rawName:"v-show",value:n.builder.empty,expression:"builder.empty"}],staticClass:"uk-button uk-button-default uk-width-1-1",attrs:{type:"button"},on:{click:n.empty}},[e._v(e._s(n.i18n.t("New Layout")))]),e._v(" "),r(n.Layout,{attrs:{node:n.builder.node}})],1)},Lz=[],Rz=Q(Pz,Iz,Lz,!1),Dz=Rz.exports;const Mz={__name:"BuilderTemplate",props:{panel:Object,template:Object},setup(t){const e=t,{i18n:r}=oe,n=ms("Builder Template"),a=zt(),o=Ho(),c=n();br("Builder",c),ys(c);let d=!1;gt(()=>a.data.template,()=>{e.template.id!==(a.data.template?.id??a.data.template?.visible)&&(d=!0,A())});const{trigger:p}=Me({beforeunloadPreview(F,{event:G}){c.modified&&(G.preventDefault(),G.returnValue=!0)},closePanel(F,G,{name:j}={}){const O=r.t("The changes you made will be lost if you navigate away from this page.");j!==e.panel.name||d||(!c.modified||window.confirm(O)?p("loadPreview"):G.close=!1)}});el(()=>{c.init({node:c.clone(e.template.layout),prefix:`template-${e.template.id}#`,view:e.template.type,onChange:v})});function v(){p("loadPreview",{template:{id:e.template.id,type:e.template.type,layout:c.empty?null:c.node}})}async function b(F=c.node){try{await p("replaceImages",F,!0)&&v();const j=c.empty?null:F;await o.saveTemplate({...e.template,layout:j}),await o.getTemplates(),c.reset(c.clone(j))}catch{}}function C(){c.reset(),v()}function T(){c.set({...c.make("layout"),children:[c.make("section")]})}function A(){c.modified?c.reset():p("resetNode",[c.node,c]),p("closeSidebarPanel",e.panel)}return{__sfc:!0,i18n:r,useBuilderTemplate:n,Preview:a,BuilderStore:o,builder:c,props:e,closed:d,trigger:p,load:v,save:b,cancel:C,empty:T,close:A,Layout:ga,Savebar:Xl,LayoutButtons:ya}}};var $z=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",[r(n.Savebar,{directives:[{name:"show",rawName:"v-show",value:n.builder.modified,expression:"builder.modified"}],on:{cancel:n.cancel,save:n.save}}),e._v(" "),r("div",{staticClass:"uk-grid uk-grid-small uk-margin-medium"},[r("div",{staticClass:"uk-width-expand"},[r("h2",{staticClass:"yo-sidebar-heading"},[e._v(e._s(n.i18n.t("Builder")))])]),e._v(" "),r(n.LayoutButtons,{staticClass:"uk-width-auto"})],1),e._v(" "),r("h2",{staticClass:"yo-sidebar-heading-builder uk-text-truncate uk-visible-toggle"},[e._v(` `+e._s(n.props.template.name)+` `),r(n.LayoutButtons,{staticClass:"uk-inline-block uk-text-baseline uk-invisible-hover",attrs:{position:"title"}})],1),e._v(" "),r("p",{directives:[{name:"show",rawName:"v-show",value:n.builder.empty,expression:"builder.empty"}],staticClass:"uk-text-muted"},[e._v(e._s(n.i18n.t("Create a general layout for this page type. Start with a new layout and choose from a collection of ready-to-use elements or browse the layout library and start with one of the pre-built layouts.")))]),e._v(" "),r("button",{directives:[{name:"show",rawName:"v-show",value:n.builder.empty,expression:"builder.empty"}],staticClass:"uk-button uk-button-default uk-width-1-1",attrs:{type:"button"},on:{click:n.empty}},[e._v(e._s(n.i18n.t("New Layout")))]),e._v(" "),r(n.Layout,{attrs:{node:n.builder.node}})],1)},Fz=[],Bz=Q(Mz,$z,Fz,!1),Hz=Bz.exports;const Uz={__name:"TemplateModal",props:{panel:Object,template:Object},emits:["resolve"],setup(t,{emit:e}){const r=t,{i18n:n}=oe,{trigger:a}=Me(),o=Be(kr({},r.template));gt(()=>o.value.type,()=>Zi(o.value,"query"));function c(){const p=ue.builder.templates[o.value.type]?.fieldset||{};return Object.entries(p).map(([v,b])=>(v=v==="default"?"query":v,{name:v,...b,onChange:(C,T)=>{Ml(o.value[v])||mt(o.value,v,{}),fn(o.value[v],T.name,C)}}))}function d(p){const v=o.value[p==="default"?"query":p];return Array.isArray(v)?{}:v}return{__sfc:!0,i18n:n,trigger:a,emit:e,props:r,tmpl:o,fieldsets:c,values:d,FieldsPanel:Wr,vConfirm:cn}}};var jz=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("form",{on:{submit:function(a){return a.preventDefault(),n.emit("resolve",n.tmpl)}}},[r("div",{staticClass:"uk-modal-header uk-flex uk-flex-middle uk-flex-between"},[r("h2",{staticClass:"uk-modal-title uk-margin-remove-bottom"},[e._v(` `+e._s(n.i18n.t(n.props.template.name?"Edit Template":"Save Template"))+` `)]),e._v(" "),n.props.template.name?r("div",{staticClass:"uk-grid-small uk-child-width-auto uk-flex-middle",attrs:{"uk-grid":""}},[r("div",[r("button",{staticClass:"uk-button uk-button-default uk-modal-close",attrs:{type:"button"},on:{click:function(a){return n.trigger("copyTemplate",[n.props.template],!0)}}},[e._v(e._s(n.i18n.t("Copy")))])]),e._v(" "),r("div",[r("button",{directives:[{name:"confirm",rawName:"v-confirm",value:n.i18n.t("Are you sure?"),expression:"i18n.t('Are you sure?')"}],staticClass:"uk-button uk-button-danger uk-modal-close",attrs:{type:"button"},on:{click:function(a){return n.trigger("deleteTemplate",[n.props.template],!0)}}},[e._v(e._s(n.i18n.t("Delete")))])])]):e._e()]),e._v(" "),r("div",{staticClass:"uk-modal-body uk-form-stacked uk-padding-remove-bottom"},[r(n.FieldsPanel,{staticClass:"uk-margin-medium-bottom",attrs:{panel:e.panel,values:n.tmpl}}),e._v(" "),e._l(n.fieldsets(),function({fields:a,name:o,onChange:c}){return r(n.FieldsPanel,{key:`${n.tmpl.type}.${o}`,staticClass:"uk-margin-medium-bottom",attrs:{panel:{fields:a},values:n.values(o)},on:{change:c}})})],2),e._v(" "),r("div",{staticClass:"uk-modal-footer uk-text-right"},[r("button",{staticClass:"uk-button uk-button-text uk-modal-close uk-margin-small-right",attrs:{type:"button"}},[e._v(e._s(n.i18n.t("Cancel")))]),e._v(" "),r("button",{staticClass:"uk-button uk-button-primary"},[e._v(e._s(n.i18n.t("Save")))])])])},Wz=[],Gz=Q(Uz,jz,Wz,!1),zz=Gz.exports;const qz={__name:"TemplateSection",props:{panel:Object},setup(t){const e=t,{i18n:r}=oe,n=Ho(),a=zt(),o=Be(null),c=Ae(()=>a.data.view??""),d=Ae(()=>a.data.template?.visible),p=Ae(()=>({...wi({...ue.builder.templates,unassigned:{label:r.t("Not assigned")}},(S,P)=>b(P))})),{trigger:v}=Me({async copyTemplate(S,P){let R=0,{name:B}=P;for(const le of["%name% Copy %index%","%name% Copy"]){const ae=r.t(le,{name:"(?<name>.+?)",index:"(?<index>\\d+)"}),{groups:Z}=B.match(new RegExp(ae))||{};if(Z){B=Z.name,R=Number(Z.index??0);break}}let q;do q=r.t(R?"%name% Copy %index%":"%name% Copy",{name:B,index:++R});while(n.templates.some(({name:le})=>le===q));await x({...structuredClone(P),name:q,id:wo()})},async deleteTemplate(S,P){await n.deleteTemplate(P),v("loadPreview")}});el(()=>{n.getTemplates()});function b(S){return!An(C(S))}function C(S){return wi(n.templates,P=>S==="unassigned"?!ue.builder.templates[P.type]:P.type===S)}function T(S){return S.name||ue.builder.templates[S.type]?.label||S.type}function A(){return F({id:wo(),type:c.value})}async function F(S){const P=await Dt(zz,{panel:e.panel,template:S});P&&await x(P)}function G(S){d.value!==S.id&&!S.url?.startsWith("#")&&a.load({url:S.url,query:{template:S}}),v("openPanel",{name:"template-builder",component:Hz,title:r.t("Builder"),width:500,heading:!1,props:{template:S}})}function j(S){return d.value===S.id||!!S.url}async function O(){await n.reorderTemplates(Yl(o.value,ke.index).map(S=>S.dataset.id)),v("loadPreview")}async function x(S){await n.saveTemplate(S),await n.getTemplates(),v("loadPreview")}return{__sfc:!0,i18n:r,Builder:n,Preview:a,props:e,templates:o,view:c,visible:d,types:p,trigger:v,exists:b,filter:C,title:T,add:A,edit:F,editBuilder:G,editableBuilder:j,move:O,save:x,api:ue}}};var Yz=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",{staticClass:"uk-margin-remove-first-child"},[n.Builder.templates.length?e._e():r("p",{staticClass:"uk-text-muted"},[e._v(e._s(n.i18n.t("Create site-wide templates for pages and load their content dynamically into the layout.")))]),e._v(" "),e._l(n.types,function({label:a},o){return[r("h3",{key:`label-${o}`,staticClass:"yo-sidebar-subheading"},[e._v(e._s(a))]),e._v(" "),r("ul",{key:`list-${o}`,staticClass:"uk-nav uk-nav-default yo-sidebar-marginless yo-nav-sortable uk-text-capitalize yo-nav-iconnav yo-nav-iconnav-1",attrs:{"uk-sortable":o==="unassigned"?!1:`group: ${o}; clsCustom: yo-nav-sortable-drag`},on:{moved:n.move}},e._l(n.filter(o),function(c){return r("li",{key:c.id,ref:"templates",refInFor:!0,staticClass:"uk-visible-toggle",class:{"yo-highlight":n.visible===c.id},attrs:{"data-id":c.id}},[r("a",{class:{"uk-text-danger uk-flex uk-flex-middle":c.status==="disabled","uk-disabled":!n.editableBuilder(c)},attrs:{href:"",title:n.title(c)},on:{click:function(d){return d.preventDefault(),n.editBuilder(c)}}},[c.status==="disabled"?r("img",{staticClass:"uk-flex-none",attrs:{"uk-svg":`${n.api.config.assets}/images/builder/disabled.svg`,"aria-hidden":"true"}}):e._e(),e._v(" "),r("span",{staticClass:"uk-text-truncate"},[e._v(e._s(n.title(c)))])]),e._v(" "),r("button",{staticClass:"uk-position-center-right uk-position-medium uk-icon-link uk-invisible-hover",staticStyle:{padding:"10px 0 10px 10px"},attrs:{type:"button","uk-icon":"icon: more-vertical"},on:{click:function(d){return d.preventDefault(),n.edit(c)}}})])}),0)]}),e._v(" "),r("button",{staticClass:"uk-button uk-button-default uk-width-1-1",class:{"uk-margin-medium-top":n.Builder.templates.length},attrs:{type:"button"},on:{click:function(a){return a.preventDefault(),n.add()}}},[e._v(e._s(n.i18n.t("New Template")))]),e._v(" "),r("p",{staticClass:"uk-text-muted"},[e._v(e._s(n.i18n.t("If multiple templates are assigned to the same view, the template which appears first is applied. Change the order with drag and drop.")))])],2)},Kz=[],Xz=Q(qz,Yz,Kz,!1),Vz=Xz.exports,Qz={init({extend:t}){t({components:{"builder-templates":Vz}}),Me({openPanel(e,r){r.name==="template-builder"&&r.props.template.type==="_search"&&(r.component=Dz)}})}};const Jz={__name:"BuilderFooter",props:{panel:Object},setup(t){const e=t,{i18n:r}=oe,n=ms("Builder Footer"),a=Oi(),o=n();br("Builder",o),ys(o),gt(()=>a.values,({footer:{content:d}={}})=>o.reset(o.clone(d))),o.init({node:o.clone(a.values.footer?.content),prefix:"footer#",onChange(d){a.values.footer||mt(a.values,"footer",{}),d=o.empty?null:d,mt(a.values.footer,"content",d),a.change(d,{name:"footer.content"})}});function c(){o.set({...o.make("layout"),children:[o.make("section")]})}return{__sfc:!0,i18n:r,useBuilderFooter:n,config:a,builder:o,props:e,empty:c,Layout:ga,LayoutButtons:ya}}};var Zz=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",[r("div",{staticClass:"uk-grid uk-grid-small uk-margin-medium"},[r("div",{staticClass:"uk-width-expand"},[r("h2",{staticClass:"yo-sidebar-heading"},[e._v(e._s(n.i18n.t("Builder")))])]),e._v(" "),r(n.LayoutButtons,{staticClass:"uk-width-auto",attrs:{panel:n.props.panel}})],1),e._v(" "),r("h2",{staticClass:"yo-sidebar-heading-builder uk-text-truncate uk-visible-toggle"},[e._v(` `+e._s(n.i18n.t("Footer"))+` `),r(n.LayoutButtons,{staticClass:"uk-inline-block uk-text-baseline uk-invisible-hover",attrs:{panel:n.props.panel,position:"title"}})],1),e._v(" "),r("p",{directives:[{name:"show",rawName:"v-show",value:n.builder.empty,expression:"builder.empty"}],staticClass:"uk-text-muted"},[e._v(e._s(n.i18n.t("Create a layout for the footer section of all pages. Start with a new layout and choose from a collection of ready-to-use elements or browse the layout library and start with one of the pre-built layouts.")))]),e._v(" "),r("button",{directives:[{name:"show",rawName:"v-show",value:n.builder.empty,expression:"builder.empty"}],staticClass:"uk-button uk-button-default uk-width-1-1",attrs:{type:"button"},on:{click:n.empty}},[e._v(e._s(n.i18n.t("New Layout")))]),e._v(" "),r(n.Layout,{attrs:{node:n.builder.node}})],1)},eq=[],tq=Q(Jz,Zz,eq,!1),rq=tq.exports;const nq={__name:"BuilderFragment",props:{field:Object,values:Object},setup(t){const e=st("$node"),r=st("Builder"),n=st("panel"),{i18n:a}=oe,{trigger:o}=Me({removeNode(d,p){p===e&&o("closeSidebarPanel",n)},resetNode(){o("closeSidebarPanel",n)}});function c(){r.append(e,r.make("row"))}return{__sfc:!0,$node:e,Builder:r,panel:n,i18n:a,trigger:o,empty:c,Layout:ga,LayoutButtons:ya}}};var iq=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",[r("div",{staticClass:"uk-grid uk-grid-small uk-margin-medium"},[r("div",{staticClass:"uk-width-expand"},[r("h2",{staticClass:"yo-sidebar-heading"},[e._v(e._s(n.i18n.t("Builder")))])]),e._v(" "),r(n.LayoutButtons,{staticClass:"uk-width-auto",attrs:{panel:n.panel,node:n.$node}})],1),e._v(" "),r("p",{directives:[{name:"show",rawName:"v-show",value:!n.$node.children?.length,expression:"!$node.children?.length"}],staticClass:"uk-text-muted"},[e._v(e._s(n.i18n.t("Create a layout. Start with a new layout and choose from a collection of ready-to-use elements or browse the layout library and start with one of the pre-built layouts.")))]),e._v(" "),r("button",{directives:[{name:"show",rawName:"v-show",value:!n.$node.children?.length,expression:"!$node.children?.length"}],staticClass:"uk-button uk-button-default uk-width-1-1",attrs:{type:"button"},on:{click:n.empty}},[e._v(e._s(n.i18n.t("New Layout")))]),e._v(" "),r(n.Layout,{attrs:{node:n.$node}})],1)},aq=[],sq=Q(nq,iq,aq,!1),oq=sq.exports;const uq={__name:"BuilderMenuItem",props:{item:Object,panel:Object,title:String},setup(t){const e=t,{i18n:r}=oe,n=ms("Builder MenuItem"),a=n(),o=tE(),c=st("Config"),d="fragment";ys(a),C(a),br("Builder",a),gt(()=>c.values,b),a.init({node:o.get(e.item,"content")||a.make(d),prefix:`menu-item-${e.item.id}#`,rootType:d,onChange:p});function p(T){T=a.empty?null:T,o.set(e.item,{name:"content"},T)}function v(){a.set({...a.make(d),children:[a.make("row")]})}function b(){a.reset(o.get(e.item,"content")||a.make(d))}function C(T){const A=zt();Ga(()=>ke.trigger(F(),"togglehide")),Xv(()=>ke.trigger(F(),"toggleshow"));function F(){return A.document?.querySelector(`[data-id="${T.prefix}0"]`)?.closest(".uk-drop")}}return{__sfc:!0,i18n:r,useBuilderMenuItem:n,Builder:a,MenuItem:o,Config:c,rootType:d,props:e,change:p,empty:v,reset:b,useDropdownPreview:C,Layout:ga,LayoutButtons:ya}}};var lq=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",[r("div",{staticClass:"uk-grid uk-grid-small uk-margin-medium"},[r("div",{staticClass:"uk-width-expand"},[r("h2",{staticClass:"yo-sidebar-heading"},[e._v(e._s(n.i18n.t("Builder")))])]),e._v(" "),r(n.LayoutButtons,{staticClass:"uk-width-auto"})],1),e._v(" "),r("h2",{directives:[{name:"show",rawName:"v-show",value:!n.Builder.empty&&n.props.title,expression:"!Builder.empty && props.title"}],staticClass:"yo-sidebar-heading-builder uk-text-truncate uk-visible-toggle"},[e._v(` `+e._s(e.title)+` `),r(n.LayoutButtons,{staticClass:"uk-inline-block uk-text-baseline uk-invisible-hover",attrs:{position:"title"}})],1),e._v(" "),r("p",{directives:[{name:"show",rawName:"v-show",value:n.Builder.empty,expression:"Builder.empty"}],staticClass:"uk-text-muted"},[e._v(e._s(n.i18n.t("Create a layout for the menu item dropdown. Start with a new layout and choose from a collection of ready-to-use elements or browse the layout library and start with one of the pre-built layouts.")))]),e._v(" "),r("button",{directives:[{name:"show",rawName:"v-show",value:n.Builder.empty,expression:"Builder.empty"}],staticClass:"uk-button uk-button-default uk-width-1-1",attrs:{type:"button"},on:{click:n.empty}},[e._v(e._s(n.i18n.t("New Layout")))]),e._v(" "),r(n.Layout,{attrs:{node:n.Builder.node}})],1)},cq=[],fq=Q(uq,lq,cq,!1),dq=fq.exports,hq={provide(){return{$node:this.node,Builder:this.builder}},props:{node:Object,builder:Object,panel:Object},events:{removeNode(t,e){e===this.node&&this.$trigger("closeSidebarPanel",this.panel)},resetNode(){this.$trigger("closeSidebarPanel",this.panel)}}};const pq={__name:"CollisionNotification",props:{base:{type:Object,default:()=>({})},current:{type:Object,default:()=>({})}},setup(t,{expose:e}){const r=t,{i18n:n}=oe,a=Be(null),o=Be(!1),c=Ae(()=>r.base.contentHash&&![r.base.contentHash,o.value].includes(r.current.contentHash));Gt(()=>nr.container.append(a.value)),e({dismiss:d});function d(){o.value=r.current.contentHash}return{__sfc:!0,i18n:n,props:r,el:a,dismissed:o,visible:c,dismiss:d}}};var mq=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",{ref:"el",staticClass:"uk-notification uk-notification-top-center"},[r("Transition",{attrs:{"enter-active-class":"uk-animation-slide-top","leave-active-class":"uk-animation-slide-top uk-animation-reverse"}},[n.visible?r("div",{staticClass:"uk-notification-message",on:{click:function(a){return n.dismiss()}}},[r("button",{staticClass:"uk-notification-close",attrs:{type:"button","uk-icon":"close"}}),e._v(" "),r("div",[e._v(e._s(n.i18n.t("The page has been updated by %modifiedBy%. Discard your changes and reload?",e.current)))]),e._v(" "),r("button",{staticClass:"uk-button uk-button-small uk-button-primary uk-margin-small-top",attrs:{type:"button"},on:{click:function(a){return e.$emit("cancel")}}},[e._v(e._s(n.i18n.t("Reload Page")))])]):e._e()])],1)},vq=[],gq=Q(pq,mq,vq,!1),_q=gq.exports;const bq={__name:"SaveConfirmModal",props:{collision:Object},setup(t){const e=t,{i18n:r}=oe;return{__sfc:!0,i18n:r,props:e}}};var yq=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",[r("button",{staticClass:"uk-modal-close-default",attrs:{type:"button","uk-close":""}}),e._v(" "),r("div",{staticClass:"uk-modal-header"},[r("h2",{staticClass:"uk-modal-title"},[e._v(e._s(n.i18n.t("Attention! Page has been updated.")))])]),e._v(" "),r("div",{staticClass:"uk-modal-body"},[r("p",[e._v(e._s(n.i18n.t("The page your are currently editing has been updated by %modified_by%. Saving your changes will overwrite the previous changes. Do you want to save anyway or discard your changes and reload the page?",{modified_by:n.props.collision.modifiedBy})))])]),e._v(" "),r("div",{staticClass:"uk-modal-footer uk-text-right"},[r("div",{staticClass:"uk-grid uk-grid-small uk-child-width-auto uk-flex-inline"},[r("div",[r("button",{staticClass:"uk-button uk-button-default uk-modal-close",attrs:{type:"button"},on:{click:function(a){return e.$emit("resolve",!1)}}},[e._v(e._s(n.i18n.t("Discard")))])]),e._v(" "),r("div",[r("button",{staticClass:"uk-button uk-button-primary",attrs:{type:"button",autofocus:""},on:{click:function(a){return e.$emit("resolve",!0)}}},[e._v(e._s(n.i18n.t("Save")))])])])])])},kq=[],Eq=Q(bq,yq,kq,!1),Tq=Eq.exports;const Cq={__name:"BuilderSection",props:{panel:Object,values:Object,current:Boolean},setup(t){const e=t,r=ms("Builder Page"),n=st("Sidebar"),a=r(),o=zt();ys(a);const{i18n:c}=oe;br("Builder",a);const d=Jt({loading:!0,collision:void 0}),p=Be(null),v=Be(null),b=Ae(()=>o.data.page||{}),C=Ae(()=>!!o.data.page?.id),T=Ae(()=>!!o.data.view),A=Ae(()=>!!o.data.template),{trigger:F}=Me({loadPreview:{handler(R,B={}){a.modified&&!B.page&&(R.params[0]={...B,page:{id:b.value.id,content:a.empty?null:a.node}})},priority:5},beforeunloadPreview(R,{event:B}){a.modified&&(B.preventDefault(),B.returnValue=!0)},closePanel(R,B,{name:q}={}){q!==e.panel.name||!a.modified||(window.confirm(c.t("The changes you made will be lost if you navigate away from this page."))?x():B.close=!1)},resetNode(){p.value.parentElement.scrollTop=0}});gt(b,R=>{R.preview||G(R)}),Gt(()=>{e.current&&G(b.value)}),a.init({prefix:"page#",onChange:j});function G(R){d.loading=!1,d.collision=R.collision,a.view=o.data.view,a.reset(a.clone(R.content))}function j(R){const B={id:b.value.id,content:a.empty?null:R};F("loadPreview",{page:B})}async function O(R=a.node,B=!1){v.value.dismiss();try{await F("replaceImages",R,!0),R=a.clone(R);let q=Cl(JSON.stringify({...b.value,content:a.empty?null:R}));if(q=await Ue("page").post({page:q,overwrite:B}).json(),q.hasCollision){const le=await Dt(Tq,{collision:q.collision});le===!0?await O(R,!0):le===!1&&x()}else q.id===b.value.id&&(await F("savedPage",q,!0),d.collision=q.collision,a.base=R)}catch{}}function x(){F("loadPreview",{page:{}})}function S(){a.set({...a.make("layout"),children:[a.make("section")]})}function P(){for(const R of n.stack.toReversed())F("closeSidebarPanel",R);F("openPanel","builder-templates")}return{__sfc:!0,useBuilderPage:r,Sidebar:n,Builder:a,store:o,i18n:c,props:e,state:d,el:p,notifications:v,page:b,isLayoutable:C,isTemplatable:T,hasTemplateAssigned:A,trigger:F,init:G,load:j,save:O,cancel:x,empty:S,openTemplates:P,Layout:ga,Savebar:Xl,CollisionNotification:_q,LayoutButtons:ya}}};var wq=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",{ref:"el"},[r(n.Savebar,{directives:[{name:"show",rawName:"v-show",value:n.Builder.modified,expression:"Builder.modified"}],on:{cancel:n.cancel,save:n.save}}),e._v(" "),r(n.CollisionNotification,{ref:"notifications",attrs:{base:n.state.collision,current:n.page.collision},on:{cancel:n.cancel}}),e._v(" "),r("div",{staticClass:"uk-grid uk-grid-small uk-margin-medium"},[r("div",{staticClass:"uk-width-expand"},[r("h2",{staticClass:"yo-sidebar-heading"},[e._v(e._s(n.i18n.t("Builder")))])]),e._v(" "),r(n.LayoutButtons,{directives:[{name:"show",rawName:"v-show",value:n.isLayoutable,expression:"isLayoutable"}],staticClass:"uk-width-auto"})],1),e._v(" "),r("h2",{directives:[{name:"show",rawName:"v-show",value:!n.Builder.empty,expression:"!Builder.empty"}],staticClass:"yo-sidebar-heading-builder uk-flex uk-visible-toggle"},[r("span",{staticClass:"uk-text-truncate"},[e._v(e._s(n.page.title))]),e._v(" "),r(n.LayoutButtons,{directives:[{name:"show",rawName:"v-show",value:n.isLayoutable,expression:"isLayoutable"}],staticClass:"uk-inline-block uk-text-baseline uk-invisible-hover uk-margin-small-left uk-flex-none uk-flex uk-flex-middle",attrs:{position:"title"}})],1),e._v(" "),r(n.Layout,{attrs:{node:n.Builder.node}}),e._v(" "),n.Builder.empty&&!n.state.loading?[!n.isLayoutable&&!n.isTemplatable?r("p",{staticClass:"uk-text-muted"},[e._v(e._s(n.i18n.t("The builder is not available on this page. It can only be used on pages, posts and categories.")))]):e._e(),e._v(" "),n.isLayoutable?[r("p",{staticClass:"uk-text-muted"},[e._v(e._s(n.i18n.t("Create an individual layout for the current page. Start with a new layout and choose from a collection of ready-to-use elements or browse the layout library and start with one of the pre-built layouts.")))]),e._v(" "),r("button",{staticClass:"uk-button uk-button-default uk-width-1-1",attrs:{type:"button"},on:{click:n.empty}},[e._v(e._s(n.i18n.t("New Layout")))])]:e._e(),e._v(" "),n.isTemplatable?[n.isLayoutable&&n.hasTemplateAssigned?r("p",{staticClass:"uk-text-muted"},[e._v(e._s(n.i18n.t("Mind that a template with a general layout is assigned to the current page. Edit the template to update its layout.")))]):e._e(),e._v(" "),n.isLayoutable?e._e():r("p",{staticClass:"uk-text-muted"},[e._v(e._s(n.i18n.t("Only single pages and posts can have individual layouts. Use a template to apply a general layout to this page type.")))]),e._v(" "),n.Sidebar.root.name!=="builder"?[n.isLayoutable&&n.hasTemplateAssigned||!n.isLayoutable?r("button",{staticClass:"uk-button uk-button-default uk-width-1-1",attrs:{type:"button"},on:{click:n.openTemplates}},[e._v(e._s(n.i18n.t("Open Templates")))]):e._e()]:e._e()]:e._e()]:e._e()],2)},Sq=[],xq=Q(Cq,wq,Sq,!1),Aq=xq.exports;const Oq={__name:"DownloadModal",props:{images:{type:Array,required:!0}},emits:["resolve"],setup(t,{emit:e}){const r=t,{i18n:n,url:a}=oe,o=Jt({total:r.images.length,files:[...r.images],errors:[],loading:!1});function c(T){o.total=o.files.length,o.errors=[],o.loading=!0,T()}function d(){for(const{src:T,replace:A}of o.files){const F=fa(b(T))?`${ue.config.assets}/images/element-video-placeholder.mp4`:`${ue.config.assets}/images/element-image-placeholder.png`;A(T,a(F).slice(ue.config.url.length+1))}v()}async function p(){const T=ca((F,G)=>Ue("builder/image").post({src:F,md5:G}).json()),A=[];for(const F of[...o.files]){const{src:G,md5:j,replace:O}=F;try{const x=await T(G,j);A.push(()=>O(G,x)),o.files.splice(o.files.indexOf(F),1)}catch(x){this.errors.push({message:x.json??x.message,filename:C(G)})}}for(const F of A)F();o.files.length?o.loading=!1:setTimeout(v,650)}function v(){e("resolve",!0)}function b(T){try{return new URL(T).pathname}catch{return T}}function C(T){const A=b(T),F=A.lastIndexOf("/");return F>-1?A.slice(F+1):A}return{__sfc:!0,i18n:n,toUrl:a,props:r,emit:e,state:o,handle:c,placeholder:d,download:p,close:v,toPath:b,toFilename:C,http:Ue,groupBy:Ci,orderBy:ep}}};var Nq=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",[r("div",{staticClass:"uk-modal-header"},[r("h2",{staticClass:"uk-modal-title"},[e._v(e._s(n.i18n.t("Layout Media Files")))])]),e._v(" "),r("div",{staticClass:"uk-modal-body"},[n.state.loading?r("progress",{staticClass:"uk-progress uk-margin-remove",attrs:{max:n.state.total},domProps:{value:n.state.total-n.state.files.length}}):e._e(),e._v(" "),n.state.errors.length?r("div",{staticClass:"uk-alert-danger uk-alert",attrs:{"uk-alert":""}},[r("p",[e._v(e._s(n.i18n.t("%smart_count% media file download failed: |||| %smart_count% media file downloads failed:",n.state.errors.length)))]),e._v(" "),e._l(n.groupBy(n.state.errors,"message"),function(a,o){return r("div",{key:o},[r("span",{staticClass:"uk-text-bold"},[e._v(e._s(o))]),e._v(" "),r("ul",{staticClass:"uk-list uk-list-disc"},e._l(n.orderBy(a,"filename"),function(c,d){return r("li",{key:d},[e._v(e._s(c.filename))])}),0)])})],2):e._e(),e._v(" "),r("p",[e._v(e._s(n.i18n.t("This layout includes a media file which needs to be downloaded to your website's media library. |||| This layout includes %smart_count% media files which need to be downloaded to your website's media library.",n.state.total)))]),e._v(" "),r("p",{domProps:{innerHTML:e._s(n.i18n.t("All images are licensed under <a href='http://creativecommons.org/publicdomain/zero/1.0/' target='_blank'>Creative Commons Zero</a> which means you can copy, modify, distribute and use the images for free, including commercial purposes, without asking permission."))}})]),e._v(" "),r("div",{directives:[{name:"show",rawName:"v-show",value:!n.state.loading,expression:"!state.loading"}],staticClass:"uk-modal-footer uk-text-right"},[r("button",{staticClass:"uk-button uk-button-default uk-margin-small-right",attrs:{type:"button"},on:{click:function(a){return n.handle(n.placeholder)}}},[e._v(e._s(n.i18n.t("Remove Media Files")))]),e._v(" "),r("button",{staticClass:"uk-button uk-button-primary",attrs:{type:"button"},on:{click:function(a){return n.handle(n.download)}}},[e._v(e._s(n.i18n.t("Download")))])])])},Pq=[],Iq=Q(Oq,Nq,Pq,!1),Lq=Iq.exports;const Rq={__name:"HelpButton",props:{help:[Array,Object]},setup(t){const e=t,{i18n:r}=oe,{trigger:n}=Me(),a=kr({},e.help,ue.customizer.panels.builder.help);return{__sfc:!0,i18n:r,trigger:n,props:e,helpConfig:a,api:ue}}};var Dq=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return n.helpConfig?r("button",{staticClass:"uk-icon uk-icon-link",attrs:{type:"button","aria-label":n.i18n.t("Help")},on:{click:function(a){return n.trigger("openHelp",[n.helpConfig])}}},[r("img",{attrs:{"uk-svg":`${n.api.config.assets}/images/help.svg`,"aria-hidden":"true"}})]):e._e()},Mq=[],$q=Q(Rq,Dq,Mq,!1),Fq=$q.exports;const Bq={__name:"LibraryButton",props:{node:Object},setup(t){const e=t,{i18n:r}=oe,{trigger:n}=Me(),a=st("Builder");return{__sfc:!0,i18n:r,trigger:n,props:e,builder:a}}};var Hq=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("button",{staticClass:"uk-button uk-button-small uk-button-default",attrs:{type:"button"},on:{click:function(a){return n.trigger("openLibrary",[n.builder,n.props.node])}}},[e._v(e._s(n.i18n.t("Library")))])},Uq=[],jq=Q(Bq,Hq,Uq,!1),Wq=jq.exports;const Ap="builder/library";var Gq={extends:J1,created(){Ue(Ap).get().json(t=>{this.library=t}).catch(t=>{t.status===403&&Ut({message:"Your session has expired. Please reload page to start working.",status:"danger",timeout:0}),this.library={}})},methods:{getElement({link:t}){return J1.methods.getElement.call(this,{link:t}).then(e=>Ue("builder/encode").post({layout:e}).json())}},events:{async saveElement(t,e,r){return e.version=ue.customizer.version,await this.$trigger("replaceImages",e,!0),Ue(Ap).post({id:r,element:e}).json()},deleteElement(t,e,r){return Ue(Ap).query({id:r}).delete().json()}}},zq={init({extend:t}){Object.assign(Vr.components,{FieldBuilderFragment:oq}),t({components:{builder:Aq,"footer-builder":rq,"menu-item-builder":dq},models:{Library:Gq}})},setup(){const{i18n:t}=oe,e=zt(),{trigger:r}=Me({hoverNode(n,a,o){Tp(`[data-id="${o.id(a)}"]`,e.document)},leaveNode(){Zo(e.document)},removeNode(){Zo(e.document)},patchPreview(){Zo(e.document)},scrollNode(n,a,o){ke.$(`[data-id="${o.id(a)}"]`,e.document)?.scrollIntoView({block:"center"})},editNode(n,a,o){const c=o.type(a),d=ql(c,["title","width","fields","fieldset","panels"]);return(!_t(a.props)||Array.isArray(a.props))&&mt(a,"props",{}),ke.hasOwn(a.props,"name")||Object.defineProperty(a.props,"name",{get:()=>a.name,set:p=>{mt(a.props,"__name",p),mt(a,"name",p),Zi(a.props,"__name")}}),(c.name==="column"||!c.element&&!c.container)&&(d.title=t.t("%title% %index%",{title:d.title,index:o.index(a)+1})),r("openPanel",Object.assign(d,{component:qq,name:`node-edit-${o.prefix}-${o.key(a)}`,props:{node:a,builder:o,values:a.props},heading:!1}),!0)},openPanel:[{async handler({sidebar:n},a){if(!lc(a))return;const{node:o,builder:c}=a.props,d=hE(n.stack);if(o.type==="layout"||pE(o,d)){const p=c.path(o);for(const v of d)p.includes(v.props.node)||r("closeSidebarPanel",v);return!1}for(const p of Yq(o,c,d))await r("editNode",[p,c],!0)},priority:5},{handler({sidebar:n},a){if(!lc(a))return;const{name:o,props:{node:c,builder:d}}=a;if(n.panel?.name!==o)return;const{stack:p}=n;for(const v of Kq(c,d,p.slice(p.indexOf(hE(p)[0]))))r("closeSidebarPanel",v)},priority:-10}],initBuilder(n,a){Object.assign(a,ue.builder.elements)},transformedNode(n,a,o,c,d){if(d)return;const p=c.type(a);let v={};for(const b of Object.values(p.fields))b.type==="button-panel"&&(v={...v,...ue.customizer.panels[b.panel]?.fields??{},...p.panels?.[b.panel]?.fields??{}});for(const[b,C]of Object.entries(o.props))if(b in v){const{options:T}=v[b];if(T&&!dp(C,T))continue;a.props[b]=C}},async transformBuilderElement(n){const{node:a,builder:o}=n.origin.Fields;return r("transformNode",[a,o])},async replaceImages(n,a){const o=To.findIn(a);return o.length?await Dt(Lq,{images:o},{id:"DownloadModal",width:"xlarge"})||Promise.reject():void 0},layoutButtons({result:n=[]},{node:a,panel:o={}}={}){return[...n,{component:Fq,help:o.help},{component:Wq,node:a}]}})}};const qq={name:"BuilderPanel",provide(){return{panel:this.panel}},mixins:[Wr,hq],created(){this.node.type==="row"&&this.$on("change",(t,{name:e})=>{e==="layout"&&Tn(()=>this.builder.columnWidths(this.node,t))})}};function lc(t){return t.name?.startsWith("node-edit-")}function hE(t){return t.filter(lc)}function pE(t,e){return e.some(r=>r.props.node===t)}function Yq(t,e,r){return e.path(t).slice(1,-1).reverse().filter(n=>e.type(n).fragment&&!pE(n,r))}function Kq(t,e,r){const n=e.path(t),a=e.type(t).element;return r.slice(0,-1).filter(o=>{if(!lc(o))return!0;const{node:c}=o.props,{element:d,fragment:p}=e.type(c);return!n.includes(c)||a&&!d&&!p})}function Xq(){let t,e;const r=zt();Me({hoverComponent(n,{target:a},o){const{body:c}=r.document??{},d=ue.styler.components[o]?.hover;clearTimeout(e),d&&c&&(e=setTimeout(()=>Tp(d,c),50),a.addEventListener("pointerleave",()=>{Zo(c),clearTimeout(e)},{once:!0}))}}),hf(()=>{if(t?.(),!r.document)return;const{documentElement:n}=r.document,a=Vq(r.document),o=Jq(n,a),c=Qq(r.document,a);t=()=>{a.remove(),o.disconnect(),c()}}),Nr(()=>t?.())}function Vq(t){const e=t.createElement("div");return e.classList.add("yo-inspect"),t.body.appendChild(e),e}function Qq(t,e){const{i18n:r}=oe;let n;const a=({target:d,pageX:p,pageY:v})=>{n!==d&&(n=d,e.hidden=!1,e.textContent=Object.entries(ue.styler.components).map(([b,{inspect:C}])=>{if(C&&n.matches(C))return r.t(b.replaceAll("-"," "))}).filter(Boolean).join(", ")),e.style.setProperty("top",`${v}px`),e.style.setProperty("left",`${p}px`)},o=()=>{n=null,e.hidden=!0},{documentElement:c}=t;return c.addEventListener("pointermove",a,{passive:!0}),c.addEventListener("pointerleave",o),()=>{c.removeEventListener("pointermove",a),c.removeEventListener("pointerleave",o)}}function Jq(t,e){const r=new MutationObserver(n=>{for(const{addedNodes:a}of n)for(const o of a)o.tagName==="BODY"&&o.appendChild(o.ownerDocument.adoptNode(e))});return r.observe(t,{childList:!0}),r}const[,{fonts:AQ}]=Cb;function Zq(t){return t.map(e=>`${e.name.replaceAll(" ","+")}${e.variants?`:${e.variants.replaceAll(" ","")}`:""}`).sort().join("|")}function Op(t){return t=eY(t),t?t.split("|").map(e=>{const[r,n=""]=e.split(":");return{name:r.replaceAll("+"," "),variants:n}}).sort((e,r)=>e.name.localeCompare(r.name,"en")):[]}function mE(t){return t.reduce((e,{name:r,variants:n})=>({[r]:n,...e}),{})}function eY(t){return t.replace(/^~?(['"]?)(.*?)\1/,"$2")}const tY={extends:Vr,inject:["Styler"],computed:{style(){return this.Styler.style},vals(){return{...this.variants}},fields(){return this.prepare(rY(this.fonts))},fonts(){const t=Op(this.style.fonts);if("@internal-fonts"in this.Styler.less)for(const e of Op(this.Styler.less["@internal-fonts"])){const r=t.findIndex(({name:n})=>n===e.name);~r&&(t[r]=e)}return t},variants(){return mE(this.fonts)},internalFontVariants(){return mE(Op(this.style.styleFonts))}},methods:{set(t,{name:e}){pa(this.fonts,{name:e}).variants=t,this.Styler.set("@internal-fonts",`~'${Zq(this.fonts)}'`)},isSet({name:t}){return t in this.internalFontVariants&&this.internalFontVariants[t]!==this.variants[t]},reset({name:t}){this.set(this.internalFontVariants[t],{name:t})}}};function rY(t){const{i18n:e}=oe;return t.map((r,n)=>({name:r.name,label:`${r.name} Variants`,description:n===t.length-1?e.t('Add a comma-separated list of font weights to load, e.g. 300, 400, 600. Look up available variants at <a href="https://fonts.google.com" target="_blank">Google Fonts</a>.'):"",attrs:{placeholder:"400"}}))}var nY=function(){var e=this,r=e._self._c;return r("div",{staticClass:"yo-sidebar-fields"},e._l(e.fields,function(n){return r("div",{directives:[{name:"show",rawName:"v-show",value:e.evaluate(n.show),expression:"evaluate(field.show)"}],key:n.name},[n.label?r("h3",{staticClass:"yo-sidebar-subheading"},[e._v(e._s(e.$t(n.label)))]):e._e(),e._v(" "),r("div",{staticClass:"uk-position-relative"},[e.isSet(n)?r("div",{staticClass:"yo-style-reset",on:{click:function(a){return e.reset(n)}}}):e._e(),e._v(" "),r(n.component,{tag:"component",attrs:{field:n,values:e.vals},on:{change:e.set}})],1),e._v(" "),n.description?r("p",{staticClass:"uk-text-muted uk-margin-small",domProps:{innerHTML:e._s(n.description)}}):e._e()])}),0)},iY=[],aY=Q(tY,nY,iY,!1),sY=aY.exports;const oY=["hover","focus","onclick","active","checked","disabled"];function cc(t,e){return e&&t.match(uY(e))}const Np=new Map;function uY(t){return Np.has(t)||Np.set(t,new RegExp(`^(${(typeof t=="string"?t:Object.values(t).flat().join("|")).replaceAll("*",".*")})$`)),Np.get(t)}const lY={extends:Vr,inject:["Config","Styler"],props:{panel:Object,component:{type:String,required:!0}},computed:{style(){return this.Styler.style},vals(){return{...this.style.values,...this.Config.values.less}},fields(){const t=this.style.groups[this.component].map(({name:e,group:r})=>kr({name:e,group:r},pa(ue.styler.types,n=>cc(e,n.vars)),cY(e,this.style.variables)));return this.prepare(t.map((e,r)=>({...e,label:(!t[r-1]||t[r-1].group!==e.group)&&e.group})))}},methods:{change(t,{name:e}){this.Styler.set(e,t)},label({name:t,group:e}){return t=t.slice(1).replace(new RegExp(`^${this.component}-`),"").replaceAll("-"," "),e&&(t=t.replace(new RegExp(`^(${e}|${e.replace(/s$/,"")}) `),"")),t=t.replace(/(.*) (s|m|l|xl|xxl)$/i,"@$2 $1"),this.$t(t)},reset({name:t,internal:e}){this.Styler.remove(t),this.Styler.remove(e)}}};function cY(t,e){const r=`@internal-${t.replace(/^@/,"").replace(/-background$/i,"")}-gradient`;return r in e?{type:"gradient",internal:r}:!1}var fY=function(){var e=this,r=e._self._c;return r("div",{staticClass:"yo-sidebar-fields"},[e._l(e.Styler.style.errors,function(n){return r("p",{key:n,staticClass:"uk-text-danger"},[e._v(e._s(e.$t("Error: %error%",{error:n})))])}),e._v(" "),e._l(e.fields,function(n){return r("div",{directives:[{name:"show",rawName:"v-show",value:e.evaluate(n.show),expression:"evaluate(field.show)"}],key:n.name},[n.label?r("h3",{staticClass:"yo-sidebar-subheading"},[e._v(e._s(e.$t(n.label)))]):e._e(),e._v(" "),r("div",{staticClass:"uk-flex uk-flex-middle yo-style yo-margin-xsmall uk-visible-toggle",attrs:{tabindex:"-1"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.Styler.isCustomized(n),expression:"Styler.isCustomized(field)"}],staticClass:"yo-style-reset",on:{click:function(a){return e.reset(n)}}}),e._v(" "),r("div",{staticClass:"uk-width-expand uk-text-truncate uk-text-capitalize"},[r("span",{attrs:{title:n.name,"uk-tooltip":"delay: 1000; pos: top-left"}},[e._v(e._s(e.label(n)))]),e._v(" "),e.style.isComputed(n)?r("span",{staticClass:"yo-style-label uk-invisible-hover",attrs:{title:e.$t("Auto-calculated"),"uk-tooltip":"delay: 1000"}},[e._v("A")]):e._e()]),e._v(" "),r("div",{staticClass:"uk-width-auto"},[r(n.component,{tag:"component",attrs:{values:e.vals,field:n},on:{change:e.change}})],1)]),e._v(" "),n.divider?r("hr"):e._e()])})],2)},dY=[],hY=Q(lY,fY,dY,!1),pY=hY.exports;const mY={__name:"StylerSection",props:{panel:Object},setup(t){const{i18n:e}=oe,r=st("Styler"),{trigger:n}=Me({editComponent(o,c){n("openPanel",{component:pY,width:350,title:c.replaceAll("-"," "),name:"styleFields",props:{component:c}})},editFonts(){n("openPanel",{component:sY,width:350,title:"Google Fonts",name:"FontFields"})},closePanel(o,c,d,{name:p}={}){p!=="styler"&&(r.isTest=!1)}});function a(o,c=!1){return wi(o,({general:d=!1})=>d===c)}return{__sfc:!0,i18n:e,Styler:r,trigger:n,filterComponents:a,vConfirm:cn,download:ki,isEmpty:An}}};var vY=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",[r("div",{staticClass:"yo-sidebar-fields"},[r("div",{staticClass:"uk-margin-small"},[r("a",{staticClass:"uk-select",attrs:{href:""},on:{click:function(a){return a.preventDefault(),n.trigger("selectStyle")}}},[e._v(e._s(n.Styler.find(n.Styler.style.id).name))])]),e._v(" "),r("div",[r("label",[r("input",{directives:[{name:"model",rawName:"v-model",value:n.Styler.isTest,expression:"Styler.isTest"}],staticClass:"uk-checkbox",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(n.Styler.isTest)?e._i(n.Styler.isTest,null)>-1:n.Styler.isTest},on:{change:function(a){var o=n.Styler.isTest,c=a.target,d=!!c.checked;if(Array.isArray(o)){var p=null,v=e._i(o,p);c.checked?v<0&&e.$set(n.Styler,"isTest",o.concat([p])):v>-1&&e.$set(n.Styler,"isTest",o.slice(0,v).concat(o.slice(v+1)))}else e.$set(n.Styler,"isTest",d)}}}),e._v(` `+e._s(n.i18n.t("Preview all UI components"))+` `)])])]),e._v(" "),e._l(n.Styler.style.errors,function(a){return r("p",{key:a,staticClass:"uk-text-danger"},[e._v(e._s(n.i18n.t("Error: %error%",{error:a})))])}),e._v(" "),r("h3",{staticClass:"yo-sidebar-subheading"},[e._v(e._s(n.i18n.t("General")))]),e._v(" "),n.isEmpty(n.Styler.style.components)?e._e():r("ul",{staticClass:"uk-nav uk-nav-default yo-sidebar-marginless uk-text-capitalize yo-nav-iconnav"},[e._l(n.filterComponents(n.Styler.style.components,!0),function({name:a},o){return r("li",{key:o,on:{mouseenter:function(c){return n.trigger("hoverComponent",[c,o])}}},[r("a",{attrs:{href:""},on:{click:function(c){return c.preventDefault(),n.trigger("editComponent",[o])}}},[e._v(e._s(a))]),e._v(" "),n.Styler.isCustomizedComponent(o)?r("div",{staticClass:"yo-style-reset",on:{click:function(c){return n.Styler.resetComponent(o)}}}):e._e()])}),e._v(" "),n.Styler.style.hasFonts?r("li",[r("a",{attrs:{href:""},on:{click:function(a){return a.preventDefault(),n.trigger("editFonts")}}},[e._v(e._s("Google Fonts"))])]):e._e()],2),e._v(" "),r("h3",{staticClass:"yo-sidebar-subheading"},[e._v(e._s(n.i18n.t("Components")))]),e._v(" "),r("ul",{staticClass:"uk-nav uk-nav-default yo-sidebar-marginless uk-text-capitalize yo-nav-iconnav"},e._l(n.filterComponents(n.Styler.style.components),function({name:a},o){return r("li",{key:o,on:{mouseenter:function(c){return n.trigger("hoverComponent",[c,o])}}},[r("a",{attrs:{href:""},on:{click:function(c){return c.preventDefault(),n.trigger("editComponent",[o])}}},[e._v(e._s(a))]),e._v(" "),n.Styler.isCustomizedComponent(o)?r("div",{staticClass:"yo-style-reset",on:{click:function(c){return n.Styler.resetComponent(o)}}}):e._e()])}),0),e._v(" "),r("button",{directives:[{name:"confirm",rawName:"v-confirm",value:n.i18n.t("Are you sure?"),expression:"i18n.t('Are you sure?')"}],staticClass:"uk-button uk-button-default uk-width-1-1 uk-margin-top",attrs:{disabled:!n.Styler.isCustomized(),type:"button"},on:{click:n.Styler.reset}},[e._v(e._s(n.i18n.t("Reset to defaults")))]),e._v(" "),r("button",{staticClass:"uk-button uk-button-default uk-width-1-1 uk-margin-top",attrs:{disabled:!n.Styler.isCustomized()&&!n.Styler.style.substyle,type:"button"},on:{click:function(a){return n.download("style.less",n.Styler.lessString)}}},[e._v(e._s(n.i18n.t("Download Less")))]),e._v(" "),r("button",{staticClass:"uk-button uk-button-default uk-width-1-1 uk-margin-top",attrs:{type:"button"},on:{click:function(a){return n.trigger("recompileStyle")}}},[e._v(e._s(n.i18n.t("Recompile style")))])],2)},gY=[],_Y=Q(mY,vY,gY,!1),bY=_Y.exports;const yY={__name:"Styles",emits:["select"],setup(t,{emit:e}){const r="styler.styles.filter",{i18n:n}=oe,a=st("Styler"),o=Be(wt[r]?JSON.parse(wt[r]):d()),c=Ae(()=>a.styles.filter(b=>Object.entries(o.value).every(([C,T])=>T?C==="style"?T===!0?!b.substyle:b.name?.startsWith(T):b[C]===T||b[C].includes(T):!0)).sort(({style:b},{style:C})=>b.localeCompare(C)));gt(o,b=>wt[r]=JSON.stringify(b),{deep:!0});function d(){return{style:"",background:"",color:"",type:""}}function p({id:b}){e("select",b)}function v(b){let C=[];for(const T of a.styles)(b!=="style"||!T.substyle)&&(C=C.concat(T[b==="style"?"name":b]));return new Set(C.filter(Boolean).sort())}return{__sfc:!0,storageKey:r,i18n:n,Styler:a,emit:e,filter:o,filtered:c,reset:d,select:p,options:v,api:ue,set:mt}}};var kY=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",[r("div",{staticClass:"yo-modal-subheader uk-grid-small uk-child-width-auto uk-flex-between uk-flex-middle",attrs:{"uk-grid":""}},[r("div",[r("h2",{staticClass:"uk-modal-title uk-margin-remove"},[e._v(e._s(n.i18n.t("%smart_count% Style |||| %smart_count% Styles",n.filtered.length)))])]),e._v(" "),r("div",[r("div",{staticClass:"uk-grid-small uk-child-width-auto uk-flex-middle",attrs:{"uk-grid":""}},[r("div",[r("select",{directives:[{name:"model",rawName:"v-model",value:n.filter.style,expression:"filter.style"}],staticClass:"uk-select uk-form-width-medium",on:{change:function(a){var o=Array.prototype.filter.call(a.target.options,function(c){return c.selected}).map(function(c){var d="_value"in c?c._value:c.value;return d});e.$set(n.filter,"style",a.target.multiple?o:o[0])}}},[r("option",{attrs:{value:""}},[e._v(e._s(n.i18n.t("All styles")))]),e._v(" "),r("option",{domProps:{value:!0}},[e._v(e._s(n.i18n.t("Main styles")))]),e._v(" "),e._l(n.options("style"),function(a){return r("option",{key:a,domProps:{value:a}},[e._v(e._s(a))])})],2)]),e._v(" "),r("div",[r("select",{directives:[{name:"model",rawName:"v-model",value:n.filter.background,expression:"filter.background"}],staticClass:"uk-select uk-form-width-medium",on:{change:function(a){var o=Array.prototype.filter.call(a.target.options,function(c){return c.selected}).map(function(c){var d="_value"in c?c._value:c.value;return d});e.$set(n.filter,"background",a.target.multiple?o:o[0])}}},[r("option",{attrs:{value:""}},[e._v(e._s(n.i18n.t("All backgrounds")))]),e._v(" "),e._l(n.options("background"),function(a){return r("option",{key:a,domProps:{value:a}},[e._v(e._s(a))])})],2)]),e._v(" "),r("div",[r("select",{directives:[{name:"model",rawName:"v-model",value:n.filter.color,expression:"filter.color"}],staticClass:"uk-select uk-form-width-medium",on:{change:function(a){var o=Array.prototype.filter.call(a.target.options,function(c){return c.selected}).map(function(c){var d="_value"in c?c._value:c.value;return d});e.$set(n.filter,"color",a.target.multiple?o:o[0])}}},[r("option",{attrs:{value:""}},[e._v(e._s(n.i18n.t("All colors")))]),e._v(" "),e._l(n.options("color"),function(a){return r("option",{key:a,domProps:{value:a}},[e._v(e._s(a))])})],2)]),e._v(" "),r("div",[r("select",{directives:[{name:"model",rawName:"v-model",value:n.filter.type,expression:"filter.type"}],staticClass:"uk-select uk-form-width-medium",on:{change:function(a){var o=Array.prototype.filter.call(a.target.options,function(c){return c.selected}).map(function(c){var d="_value"in c?c._value:c.value;return d});e.$set(n.filter,"type",a.target.multiple?o:o[0])}}},[r("option",{attrs:{value:""}},[e._v(e._s(n.i18n.t("All types")))]),e._v(" "),e._l(n.options("type"),function(a){return r("option",{key:a,domProps:{value:a}},[e._v(e._s(a))])})],2)]),e._v(" "),r("div",[r("button",{staticClass:"uk-button uk-button-default",attrs:{type:"button",disabled:!Object.values(n.filter).some(Boolean)},on:{click:function(a){n.filter=n.reset()}}},[e._v(e._s(n.i18n.t("Reset")))])])])])]),e._v(" "),r("div",{staticClass:"yo-finder-body uk-margin-top",attrs:{"uk-overflow-auto":""}},[r("ul",{staticClass:"uk-grid-medium uk-grid-match uk-child-width-1-2 uk-child-width-1-3@s",attrs:{"uk-grid":""}},e._l(n.filtered,function(a){return r("li",{key:a.name},[r("a",{staticClass:"uk-panel uk-inline uk-box-shadow-medium uk-box-shadow-hover-large uk-transition-toggle",attrs:{href:""},on:{click:function(o){return o.preventDefault(),n.select(a)}}},[r("img",{attrs:{loading:"lazy",src:a.preview||`${n.api.config.assets}/images/style-library-placeholder.png`,width:"1200",height:"900",alt:""},on:{error:function(o){return n.set(a,"preview",`${n.api.config.assets}/images/style-library-placeholder.png`)}}}),e._v(" "),r("div",{staticClass:"uk-label yo-label uk-position-top-right uk-position-small uk-transition-fade"},[e._v(e._s(a.name))])])])}),0)])])},EY=[],TY=Q(yY,kY,EY,!1),CY=TY.exports;const wY={__name:"StyleModal",props:{id:{type:String,required:!0},customization:{type:Object,required:!0},edit:{type:Boolean,default:!1},library:{type:Object,required:!0}},emits:["resolve"],setup(t,{emit:e}){const r=t,{i18n:n}=oe,a=Be(r.customization.name),o=Ae(()=>n.t("Customization")),c=Ae(()=>!!Wl(r.library.styles,({name:d},p)=>a.value===d&&r.id!==p));return{__sfc:!0,i18n:n,emit:e,props:r,newName:a,title:o,exists:c}}};var SY=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("form",{on:{submit:function(a){return a.preventDefault(),n.emit("resolve",{...e.customization,name:n.newName})}}},[r("div",{staticClass:"uk-modal-header"},[r("h2",{staticClass:"uk-modal-title"},[e._v(e._s(n.i18n.t(e.edit?"Rename %type%":"Save %type%",{type:n.title})))])]),e._v(" "),r("div",{staticClass:"uk-modal-body uk-form-stacked"},[r("label",{staticClass:"uk-form-label",attrs:{for:"form-style-save-name"}},[e._v(e._s(n.i18n.t("Name")))]),e._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:n.newName,expression:"newName"}],staticClass:"uk-input",attrs:{id:"form-style-save-name",placeholder:n.i18n.t("Customization Name"),type:"text",required:"",autofocus:""},domProps:{value:n.newName},on:{input:function(a){a.target.composing||(n.newName=a.target.value)}}}),e._v(" "),r("p",{directives:[{name:"show",rawName:"v-show",value:n.exists,expression:"exists"}],staticClass:"uk-text-muted uk-margin-small"},[e._v(e._s(n.i18n.t('"%name%" already exists in the library, it will be overwritten when saving.',{name:n.newName})))])]),e._v(" "),r("div",{staticClass:"uk-modal-footer uk-text-right"},[r("button",{staticClass:"uk-button uk-button-text uk-modal-close uk-margin-small-right",attrs:{type:"button"}},[e._v(e._s(n.i18n.t("Cancel")))]),e._v(" "),r("button",{staticClass:"uk-button uk-button-primary",attrs:{disabled:!n.newName}},[e._v(e._s(n.i18n.t("Save")))])])])},xY=[],AY=Q(wY,SY,xY,!1),OY=AY.exports;const NY={__name:"StyleLibrary",props:{styles:{type:Array}},emits:["select"],setup(t,{emit:e}){const r=t,{i18n:n}=oe,{trigger:a}=Me(),o=st("Styler"),c=st("Library"),d=Be(null),p=Be(""),v=Ae(()=>Object.entries(c.styles).filter(([,{name:x}])=>da(x,p.value)).sort(([,x],[,S])=>x.name.localeCompare(S.name,void 0,{numeric:!0})));function b(x){return pa(r.styles,{id:x})?.name||x}function C(x){e("select",x)}function T(x){return x.style===o.style.id&&Gl(o.less,x.less)}function A(x){ki(`${x.name||"style"}.json`,JSON.stringify(x))}function F(){ki("styles.json",JSON.stringify(Object.values(c.styles)))}async function G(x){if(Array.isArray(x)){for(const P in x)await G(x[P]);return}if(!x.name||!x.style)throw new Error("Invalid style.");const S=c.findStyle(x.name);S&&!window.confirm(n.t("%name% already exists. Do you want to replace it?",x))||(await a("saveStyle",[x,S],!0),Ut(`Style '${x.name}' uploaded successfully.`,"success"))}function j(x){return x?new Date(x).toLocaleString():n.t("-")}async function O(x){const S=x.currentTarget.files||x.dataTransfer?.files||[];for(const P of S)try{await G(await wl(P))}catch{Ut(`Error loading style '${P.name}'`,"danger")}d.value.value=""}return{__sfc:!0,i18n:n,trigger:a,Styler:o,Library:c,emit:e,props:r,input:d,search:p,styleList:v,getStyleName:b,select:C,isCurrentStyle:T,exportStyle:A,exportStyles:F,importStyle:G,formatDate:j,upload:O,DragOver:tf,vConfirm:cn}}};var PY=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r(n.DragOver,{on:{drop:n.upload}},[r("div",{staticClass:"yo-modal-subheader uk-grid-small uk-child-width-auto uk-flex-between uk-flex-middle",attrs:{"uk-grid":""}},[r("div",[r("div",{staticClass:"uk-grid-small uk-child-width-auto uk-flex-middle",attrs:{"uk-grid":""}},[r("div",[r("h2",{staticClass:"uk-modal-title uk-margin-remove"},[e._v(e._s(n.i18n.t("%smart_count% Style |||| %smart_count% Styles",n.styleList.length)))])]),e._v(" "),r("div",[r("div",{staticClass:"yo-finder-search"},[r("div",{staticClass:"uk-search uk-search-medium"},[r("span",{attrs:{"uk-search-icon":""}}),e._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:n.search,expression:"search"}],staticClass:"uk-search-input",attrs:{type:"search",autofocus:""},domProps:{value:n.search},on:{input:function(a){a.target.composing||(n.search=a.target.value)}}})])])])])]),e._v(" "),r("div",[r("div",{staticClass:"uk-grid-small uk-child-width-auto uk-flex-middle",attrs:{"uk-grid":""}},[r("div",[r("button",{directives:[{name:"show",rawName:"v-show",value:n.styleList.length,expression:"styleList.length"}],staticClass:"uk-button uk-button-default",attrs:{type:"button"},on:{click:function(a){return a.preventDefault(),n.exportStyles.apply(null,arguments)}}},[e._v(e._s(n.i18n.t("Download All")))])]),e._v(" "),r("div",[r("div",{attrs:{"uk-form-custom":""}},[r("input",{ref:"input",attrs:{accept:"application/json",type:"file",name:"files[]",multiple:"multiple"},on:{change:n.upload}}),e._v(" "),r("button",{staticClass:"uk-button uk-button-default",attrs:{type:"button"}},[e._v(e._s(n.i18n.t("Upload Style")))])])]),e._v(" "),r("div",[r("button",{staticClass:"uk-button uk-button-primary uk-margin-small-left",attrs:{type:"button"},on:{click:function(a){return n.Library.saveStyle({style:n.Styler.style.id,less:n.Styler.less})}}},[e._v(e._s(n.i18n.t("Save Style")))])])])])]),e._v(" "),n.styleList.length?r("div",{staticClass:"yo-finder-body uk-margin-top",attrs:{"uk-overflow-auto":""}},[r("table",{staticClass:"uk-table uk-table-divider uk-table-small uk-table-hover"},[r("thead",[r("tr",[r("th",{staticClass:"uk-table-expand"},[e._v(e._s(n.i18n.t("Name")))]),e._v(" "),r("th",{staticClass:"uk-width-medium uk-text-center"},[e._v(e._s(n.i18n.t("Current Style")))]),e._v(" "),r("th",{staticClass:"uk-width-medium"},[e._v(e._s(n.i18n.t("Base Style")))]),e._v(" "),r("th",{staticClass:"uk-table-shrink uk-text-nowrap"},[e._v(e._s(n.i18n.t("Last Modified")))]),e._v(" "),r("th",{staticClass:"uk-table-shrink"})])]),e._v(" "),r("tbody",e._l(n.styleList,function([a,o]){return r("tr",{key:a,staticClass:"uk-visible-toggle",attrs:{tabindex:"-1"}},[r("td",{staticClass:"uk-table-link"},[r("a",{staticClass:"uk-link-heading uk-modal-close",attrs:{href:""},on:{click:function(c){return c.preventDefault(),n.select(o)}}},[e._v(e._s(o.name))])]),e._v(" "),r("td",{staticClass:"uk-text-center"},[n.isCurrentStyle(o)?r("span",{staticClass:"uk-text-success",attrs:{"uk-icon":"check"}}):r("span",[e._v("\u2013")])]),e._v(" "),r("td",[e._v(e._s(n.getStyleName(o.style)))]),e._v(" "),r("td",{staticClass:"uk-text-nowrap"},[r("time",{attrs:{datetime:o.modified}},[e._v(e._s(n.formatDate(o.modified)))])]),e._v(" "),r("td",[r("ul",{staticClass:"uk-iconnav uk-flex-nowrap uk-invisible-hover"},[r("li",[r("button",{staticClass:"uk-icon-link uk-preserve-width",attrs:{title:n.i18n.t("Rename"),type:"button","uk-icon":"pencil","uk-tooltip":"delay: 500"},on:{click:function(c){return n.Library.editStyle(o,a)}}})]),e._v(" "),r("li",[r("button",{staticClass:"uk-icon-link uk-preserve-width",attrs:{title:n.i18n.t("Download"),type:"button","uk-icon":"download","uk-tooltip":"delay: 500"},on:{click:function(c){return n.exportStyle(o)}}})]),e._v(" "),r("li",[r("button",{directives:[{name:"confirm",rawName:"v-confirm",value:n.i18n.t("Are you sure?"),expression:"i18n.t('Are you sure?')"}],staticClass:"uk-icon-link uk-preserve-width",attrs:{title:n.i18n.t("Delete"),type:"button","uk-icon":"trash","uk-tooltip":"delay: 500"},on:{click:function(c){return n.Library.deleteStyle(o,a)}}})])])])])}),0)])]):r("p",{staticClass:"uk-h1 uk-text-muted uk-text-center"},[e._v(e._s(n.i18n.t("No style found.")))])])},IY=[],LY=Q(NY,PY,IY,!1),RY=LY.exports;const DY={__name:"StylesModal",props:{styler:{type:Object,required:!0},library:{type:Object,required:!0}},setup(t){const e=t,{i18n:r}=oe,{trigger:n}=Me(),a=st("Modal");br("Styler",e.styler),br("Library",e.library);const o=Ae(()=>{const c=n("stylesModalTabs");return[{name:r.t("styles"),component:CY},{name:r.t("my styles"),component:RY},...c||[]]});return{__sfc:!0,i18n:r,trigger:n,Modal:a,props:e,tabs:o,Switcher:ls}}};var MY=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",[r(n.Switcher,{attrs:{tabs:n.tabs.map(({name:a})=>a),storage:"styler.library.tab"},scopedSlots:e._u([e._l(n.tabs,function(a){return{key:a.name,fn:function(){return[r("div",{key:a.name,staticClass:"uk-modal-body"},[r(a.component,{tag:"component",on:{select:n.Modal.resolve}})],1)]},proxy:!0}})],null,!0)})],1)},$Y=[],FY=Q(DY,MY,$Y,!1),BY=FY.exports,HY={name:"StylerLibrary",inject:["Config","Styler"],data:()=>({styles:{}}),methods:{saveStyle(t,e=wo()){return this.$trigger("editStyle",[t,e],!0)},editStyle(t,e){return this.$trigger("editStyle",[t,e,!0],!0)},async deleteStyle(t,e){return await this.$trigger("deleteStyle",[e],!0),this.$delete(this.styles,e),t},findStyle(t){return Wl(this.styles,{name:t})}},events:{async selectStyle(){const{style:t}=this.Styler;let e=await Dt(BY,{styler:this.Styler,library:this},{container:!0});if(e){if(_t(e)){if(this.Config.dirty&&t.isEdited&&!confirm(this.$t("Do you really want to replace the current style?")))return;this.$set(this.Config.values,"less",{...e.less})}else e={style:e};this.Styler.setStyle(e.style)}},async editStyle(t,e,r,n){const a=kr({},e,{modified:new Date().toISOString()});if(e=await Dt(OY,{id:r,customization:a,edit:n,library:this},{width:"2xlarge"}),!e)return e;const o=this.findStyle(e.name);return o&&r!==o&&await this.deleteStyle(this.styles[o],o),this.$trigger("saveStyle",[e,r],!0)},saveStyle(t,e,r){return this.$set(this.styles,r,e),e}}};let vE=0;class gE{constructor(e){Im(this,Rp);Im(this,Dp);this.messages=new Map,this.worker=typeof e=="string"?new Worker(e):e,this.worker.addEventListener("message",({data:r})=>{this.messages.has(r?.id)&&(this.messages.get(r.id)(r),this.messages.delete(r.id))})}postMessage(e){return new Promise((r,n)=>{this.messages.set(vE,({error:a,result:o})=>a?n(a):r(o)),this.worker.postMessage([vE++,e])})}terminate(){this.worker.terminate()}}Rp=new WeakMap,Dp=new WeakMap;const Pp={};let _E,Ip;function UY(t,e={}){const{config:r}=e,{trigger:n}=Me();return sn(`Style (${t})`,{setup:()=>({id:t,style:t.split(":")[0]||"",substyle:t.split(":")[1]||"",toLessString(a){return WY({...this.substyleValues,...a},this.groups)},isComputed({name:a,internal:o}){return this.variables[a].computed||o&&this.variables[o].computed},async parseVariables(){const{variables:a={},errors:o=[]}=await this.execute("vars");this.errors=o,this.variables=a},compile:_E=D8(async function(){this.loading=!0,this.isEdited=!0,n({name:"compileStyle",origin:this},[!0]);const{css:a,variables:o={},errors:c=[]}=await this.execute("css");this.css=a,this.variables=o,this.errors=c,this.rtl=null,this.loading=!1,n({name:"compileStyle",origin:this},[!1])},150),async compileRtl(){return this.rtl?this.rtl:this.rtl=(await this.executeImmediate("rtl")).rtl},minify(){return this.executeImmediate("minify")},async execute(a,o=!0){this.errors=[];const c=await this.load();if(!c)return{errors:[`Unable to load style (${this.style}).`]};let{less:d,custom_less:p}=r.values;return this.substyle&&(d={...d,"@internal-style":this.substyle}),o&&Ip?.terminate(),await Si.call("styler.executeCommand",v=>{const b=new gE(ue.styler.worker);return Ip=o?b:Ip,b.postMessage({cmd:a,data:v})},kr({},{cmd:a,style:c,input:p,vars:d}))},async executeImmediate(a){_E.flush();const[o,{css:c}]=await Promise.all([this.load(),this.css&&!this.loading?{css:this.css}:this.execute("css",!1)]);return o?new gE(ue.styler.worker).postMessage({cmd:a,data:{style:o,css:c}}):{errors:[`Unable to load style (${this.style}).`]}},load(a){const{id:o,style:c}=this;if(o)return(a||!(c in Pp))&&(Pp[c]=Ue(ue.styler.route).query({id:c}).get().json(({imports:d,vars:p,desturl:v,filename:b})=>({id:o,imports:d,vars:p,filename:b,desturl:v,filepath:b.replace(/[^/]+$/,"")})).catch(()=>console.error(`Unable to load style (${c}).`))),Pp[c]}}),state:()=>({css:null,rtl:null,isEdited:!1,variables:{},errors:[]}),getters:{groups(){return jY(this.variables)},components(){const a={};for(const o of Object.keys(this.groups))a[o]=ue.styler.components[o]??{name:o};return a},values(){return zl(this.variables,"value")},substyleValues(){return zl(wi(this.variables,"style"),"value")},fonts(){return this.values["@internal-fonts"]},styleFonts(){return this.variables["@internal-fonts"]?.original||""},hasFonts(){return!!this.fonts}}})}function jY(t){const{ignore:e,components:r}=ue.styler,n=zl(r,({groups:o={}})=>ma(o,(c,d)=>({group:c,name:d}))),a=[];for(const[o,{file:c}]of Object.entries(t)){if(cc(o,e))continue;const d=GY(o,r)??c,p=c8(n[d],({group:b})=>cc(o,b)),v=oY.findIndex(b=>o.match(new RegExp(`-${b}-`)));a.push({name:o,component:d,index:p,group:~p?n[d][p].name:"",state:v,notGlobal:d!=="global",notTheme:d!=="theme",isInternal:o.startsWith("@internal-")})}return Ci(Yl(a,["notGlobal","notTheme","component","isInternal","index","state","name"]).map(o=>ql(o,["name","component","group"])),"component")}function WY(t,e){const r=Dl(e,(a,o,c)=>{if(c.startsWith("_"))return a;const d=Dl(e[c],(p,{name:v})=>(v in t&&(p+=`${v}: ${t[v]}; `,delete t[v]),p),"");return a+(d?`// // ${zY(c)} // ${d} `:"")},""),n=Dl(t,(a,o,c)=>`${a}${c}: ${t[c]}; `,"");return`${n?`${n} `:""}${r}`}function GY(t,e){for(const[r,{groups:n}]of Object.entries(e))if(cc(t,n))return r}function zY(t){return t.replace(/(?:^|[-_/])(\w)/g,(e,r)=>r?r.toUpperCase():"")}const fc=sn("Styler",{state:()=>({isTest:!1}),setup(){const t=Oi();return{config:t,state:null,styles:[],init(e){this.styles=qY(e)},find(e){return pa(this.styles,{id:e})||{}},isCustomized({name:e,internal:r}={}){const{less:n}=t.values;return e?e in n||r&&r in n:!An(n)},isCustomizedComponent(e){return!!this.style.groups[e]?.some(r=>this.isCustomized(r))},resetComponent(e){for(const r of this.style.groups[e])this.remove(r.name),this.remove(r.internal)},reset(){mt(t.values,"less",{}),t.dirty=!0},set(e,r){mt(t.values.less,e,r),t.dirty=!0},remove(e){Zi(t.values.less,e),t.dirty=!0},setStyle(e){mt(t.values,"style",e),t.change(e,{name:"style"})},compile(){return this.style.compile()},rtl(){return this.style.compileRtl()},minify(){return this.style.minify()}}},getters:{style({config:t}){const e=t.values.style||"";return this.state?.id!==e&&(this.state?.$dispose(),this.state=UY(e,{config:t})(),this.state.parseVariables()),this.state},less({config:t}){return t.values.less},lessInput({config:t}){const{style:e,less:r,custom_less:n}=t.values;return JSON.stringify({style:e,less:r,custom_less:n})},lessString({config:t,style:e}){return e.toLessString(t.values.less)}}});function qY(t){return t.reduce((e,r)=>e.concat([{...r,style:r.id}],ma(r.styles,(n,a)=>({...n,id:`${r.id}:${a}`,name:`${r.name} - ${n.name}`,style:r.id,substyle:a}))),[])}const YY={__name:"Errors",setup(t){const e=fc(),r=Be(null),n=()=>document.getElementById("custom_less")?.prepend(r.value);return Me({openPanel:()=>Tn(n),compileStyle:n}),{__sfc:!0,Styler:e,el:r,inject:n}}};var KY=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",{ref:"el"},e._l(n.Styler.style.errors,function(a){return r("p",{key:a,staticClass:"uk-text-danger"},[e._v(e._s(e.$t("Error: %error%",{error:a})))])}),0)},XY=[],VY=Q(YY,KY,XY,!1),QY=VY.exports;const Lp="styler/library";var JY={extends:HY,created(){Ue(Lp).get().json(t=>{this.styles=t}).catch(()=>{this.styles={}})},events:{saveStyle(t,e,r){return Ue(Lp).post({id:r,style:e})},deleteStyle(t,e){return Ue(Lp).query({id:e}).delete()}}};function ZY(){const t=zt(),e=fc(),r=tK();Ga(a);let n;hf(async()=>{if(t.document){if(!e.isTest){a();return}try{const o=await eK(r.value,t.document);n??=t.document.body,t.document.body.replaceWith(o)}catch{a()}}});function a(){n&&(t.document.body.replaceWith(n),n=null)}}async function eK(t,e){const r=await Ue(bE(`${t.replaceAll(" ","-")||"index"}.html`)).get().text(),n=e.createElement("body"),a=e.createElement("link");return a.rel="stylesheet",a.href=bE("tests.css"),n.prepend(a),n.append(e.createRange().createContextualFragment(r)),n.classList.add("uk-animation-fade"),n.addEventListener("click",o=>{o.target.closest("a[href]")&&o.preventDefault()}),n}function bE(t){return`${ue.customizer.base}/packages/styler/tests/${t}`}function tK(){const t=Be("");return Me({openPanel(e,{name:r,title:n}){r==="styleFields"&&n!=="global"&&(t.value=n)},closePanel(){t.value=""}}),t}var rK={extends:bY,models:{Library:JY},created(){Xq(),ZY()}},nK={init({extend:t}){t({components:{styler:rK}})},setup(){const t="theme/styles",e=fc(),r=zt(),{trigger:n}=Me({readyPreview(){a()},compileStyle(p,v){r.overlay=v,v||a()},async saveConfig(){e.style.isEdited&&await c()},async recompileStyle(p,v=!0){!e.style.id||!await e.style.load(v)||(await e.compile(),await c(),await a())}});Ue(t).get().json(p=>{e.init(p)}),br("Styler",e),gt(()=>e.lessInput,()=>e.compile()),Gt(function(){new oe({parent:this,extends:QY}).$mount(),ue.styler.update&&setTimeout(()=>n("recompileStyle",!1),250)});async function a(){!e.style.css||!r.document||ue.customizer.id&&ue.customizer.id!==r.data.id||o(r.document,r.document.dir==="rtl"?await e.rtl():e.style.css)}function o(p,v){const b=p?.getElementById("theme-style");if(!(!b||!v))if(b.tagName==="STYLE")b.textContent=v;else{const C=p.createElement("style");C.id=b.id,C.textContent=v,b.replaceWith(C)}}async function c(){if(!e.style.errors.length)try{const{css:p,rtl:v}=await e.minify();e.style.isEdited=!1,await d(ue.styler.route,{"css/theme.css":p,"css/theme.rtl.css":v})}catch(p){console.error(p),e.style.isEdited=!0}}function d(p,v){const b=new Blob([Cl(JSON.stringify(v))],{type:"text/plain"});return Ue(p).formData({files:b}).post().json()}}},iK={setup(){const t=zt(),e=Be(!1);Me({openPanel(n,{name:a}){e.value=a==="cookie"},closePanel(){e.value=!1}});let r;hf(function n(){const a=t.window?.$theme?.cookie;r?.remove(),!(!e.value||!a)&&(ue.customizer.id&&ue.customizer.id!==t.data.id||(r=(a.position==="top"?ke.prepend:ke.append)(t.document.body,a.template),ke.once(r,"hidden",()=>setTimeout(n,250))))})}},aK="yootheme/pro",sK="4.5.33",oK="YOOtheme",uK="A powerful, flexible and elegant website builder that allows you to create complex pages within minutes and customize every aspect of the theme.",lK="https://yootheme.com",cK="Copyright (C) YOOtheme GmbH",fK="GNU General Public License",dK=[{name:"YOOtheme",email:"info@yootheme.com",homepage:"https://yootheme.com"}],hK={php:">=7.4","symfony/polyfill-php80":"~1.33.0","symfony/polyfill-php81":"~1.33.0","symfony/polyfill-php82":"~1.33.0","symfony/polyfill-php83":"~1.33.0","symfony/polyfill-php84":"~1.33.0","wikimedia/composer-merge-plugin":"~2.1.0"},pK={"exclude-from-classmap":["vendor/nikic/","vendor/php-http/","vendor/wikimedia/"]},mK={"platform-check":!1,"prepend-autoloader":!1,"allow-plugins":{"wikimedia/composer-merge-plugin":!0}},vK={"pre-autoload-dump":"YOOtheme\\Composer\\ClassmapPlugin::preAutoloadDump",loadfont:"YOOtheme\\Composer\\LoadFontCommand",phpstan:"php -dxdebug.mode=off ./scripts/vendor/bin/phpstan --memory-limit=1G"},gK={"merge-plugin":{require:"packages/*/composer.json","merge-extra":!0,"merge-extra-deep":!0}},_K={name:aK,version:sK,title:oK,description:uK,homepage:lK,copyright:cK,license:fK,authors:dK,require:hK,autoload:pK,config:mK,scripts:vK,extra:gK};const bK={__name:"changelog",setup(t){const{i18n:e}=oe,r={Added:"success",Removed:"warning",Deprecated:"warning",Fixed:"danger",Security:"danger"},n=Be("");Gt(async()=>{const{base:o,version:c}=ue.customizer;await un.js(`${o}/vendor/assets/marked/lib/marked.umd.js`),n.value=await a(await Ue(`${o}/CHANGELOG.md`).query({version:c}).get().text())});async function a(o){let c;const d={list({items:p}){return`<ul class="uk-list">${p.map(v=>this.listitem(v)).join("")}</ul>`},listitem(p){return`<li class="uk-flex uk-flex-top"> <span class="uk-label uk-label-${r[c]} uk-margin-right uk-text-center uk-width-small tm-label-changelog uk-flex-none">${c}</span> <div>${this.text(p)}</div> </li>`},heading({text:p,depth:v}){return p=p.replace(/\(.*?\)/,'<span class="uk-text-muted">$&</span>'),v===2?`<h${v}>${p}</h${v}>`:(v===3&&(c=p),"")}};return new window.marked.Marked({renderer:d}).parse(o,{async:!0,mangle:!1,headerIds:!1})}return{__sfc:!0,i18n:e,labels:r,changelog:n,parse:a}}};var yK=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",[r("div",{staticClass:"uk-modal-header"},[r("h3",{staticClass:"uk-modal-title"},[e._v(e._s(n.i18n.t("Changelog")))])]),e._v(" "),r("div",{staticClass:"uk-modal-body",attrs:{"uk-overflow-auto":""},domProps:{innerHTML:e._s(n.changelog)}})])},kK=[],EK=Q(bK,yK,kK,!1),TK=EK.exports;const CK={__name:"news",setup(t){const e=Be({}),r=Be("");return Gt(async()=>{const{base:n,version:a}=ue.customizer;await un.js(`${n}/vendor/assets/marked/lib/marked.umd.js`);const o=await Ue(`${n}/NEWS.md`).query({version:a}).get().text(),[,c,d]=o.match(/(\{.*?})(.*)/ms);e.value=JSON.parse(c),r.value=await window.marked.marked.parse(d.trim(),{async:!0,mangle:!1,headerIds:!1})}),{__sfc:!0,attributes:e,news:r}}};var wK=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",[r("img",{attrs:{src:n.attributes.image,width:"1200",height:"600",alt:""}}),e._v(" "),r("div",{staticClass:"uk-modal-body uk-text-large"},[r("div",{domProps:{innerHTML:e._s(n.news)}})])])},SK=[],xK=Q(CK,wK,SK,!1),yE=xK.exports;const AK={__name:"about",props:{panel:{type:Object},data:{type:Object,default:()=>_K}},setup(t){const e=t,{i18n:r}=oe;function n(){ha(TK,{},{width:"xlarge"})}function a(){ha(yE,{},{width:"xlarge"})}return{__sfc:!0,i18n:r,props:e,openChangelog:n,openNews:a}}};var OK=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",[r("p",[e._v(` `+e._s(n.props.data.title)),r("br"),e._v(` `+e._s(n.i18n.t("Version %version%",n.props.data))+` `)]),e._v(" "),r("p",[e._v(e._s(n.props.data.copyright))]),e._v(" "),r("p",[r("a",{attrs:{href:n.props.data.homepage,target:"_blank"}},[e._v(e._s(n.props.data.homepage))])]),e._v(" "),r("button",{staticClass:"uk-button uk-button-default uk-width-1-1",attrs:{type:"button"},on:{click:n.openNews}},[e._v(e._s(n.i18n.t("What's New")))]),e._v(" "),r("button",{staticClass:"uk-button uk-button-default uk-width-1-1 uk-margin-top",attrs:{type:"button"},on:{click:n.openChangelog}},[e._v(e._s(n.i18n.t("Changelog")))])])},NK=[],PK=Q(AK,OK,NK,!1),IK=PK.exports;const{hostname:LK}=window.location,RK={extends:Ze,inject:["Config"],methods:{async importConfig(t){this.Config.dirty=!0,this.Config.values=await Ue("import").post({config:t}).json(),this.Config.reload()},exportConfig(t){ki(`yootheme-${LK}.json`,JSON.stringify({...t,yootheme_apikey:void 0})+` `)},async uploadFile({currentTarget:t,dataTransfer:e}){const[r]=t.files||e?.files||[];if(r)try{await this.importConfig(await wl(r))}catch{Ut(`Error loading '${r.name}'`,"danger")}}}};var DK=function(){var e=this,r=e._self._c;return r("div",[r("button",{staticClass:"uk-button uk-button-default uk-width-1-1",attrs:{type:"button"},on:{click:function(n){return e.exportConfig(e.Config.values)}}},[e._v(e._s(e.$t("Export Settings")))]),e._v(" "),r("div",{staticClass:"uk-margin-small-top uk-display-block",attrs:{"uk-form-custom":""}},[r("input",{attrs:{accept:"application/json",type:"file",name:"files[]"},on:{change:function(n){e.uploadFile(n),n.target.value=""}}}),e._v(" "),r("button",{staticClass:"uk-button uk-button-default uk-width-1-1",attrs:{type:"button"}},[e._v(e._s(e.$t("Import Settings")))])])])},MK=[],$K=Q(RK,DK,MK,!1),FK=$K.exports;const BK={__name:"systemcheck",props:{panel:Object},setup(t){const{i18n:e}=oe,r=Be(!1),n=Be([]),a=Be([]);return Ue("systemcheck").get().json(o=>{n.value=o.requirements,a.value=o.recommendations,r.value=!0}),{__sfc:!0,i18n:e,loaded:r,requirements:n,recommendations:a}}};var HK=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return n.loaded?r("div",[!n.requirements.length&&!n.recommendations.length?r("p",[r("span",{staticClass:"uk-text-success",attrs:{"uk-icon":"check"}}),e._v(" "),r("strong",[e._v(e._s(n.i18n.t("No critical issues found.")))]),e._v(` `+e._s(n.i18n.t("YOOtheme Pro is fully operational and ready to take off."))+` `)]):!n.requirements.length&&n.recommendations.length?r("p",[r("span",{staticClass:"uk-text-success",attrs:{"uk-icon":"check"}}),e._v(" "),r("strong",[e._v(e._s(n.i18n.t("No critical issues found.")))]),e._v(` `+e._s(n.i18n.t("YOOtheme Pro is operational, but there are issues which need to be fixed to unlock features and improve performance."))+` `)]):n.requirements.length?r("p",[r("span",{staticClass:"uk-text-danger",attrs:{"uk-icon":"warning"}}),e._v(" "),r("strong",[e._v(e._s(n.i18n.t("Critical issues detected.")))]),e._v(` `+e._s(n.i18n.t("YOOtheme Pro is not operational. All critical issues need to be fixed."))+` `)]):e._e(),e._v(" "),n.requirements.length?r("h3",{staticClass:"yo-sidebar-subheading"},[e._v(e._s(n.i18n.t("Critical Issues")))]):e._e(),e._v(" "),n.requirements.length?r("ul",{staticClass:"uk-list uk-list-disc"},e._l(n.requirements,function(a){return r("li",{key:a,domProps:{innerHTML:e._s(a)}})}),0):e._e(),e._v(" "),n.recommendations.length?r("h3",{staticClass:"yo-sidebar-subheading"},[e._v(e._s(n.i18n.t("Issues and Improvements")))]):e._e(),e._v(" "),n.recommendations.length?r("ul",{staticClass:"uk-list uk-list-disc"},e._l(n.recommendations,function(a){return r("li",{key:a,domProps:{innerHTML:e._s(a)}})}),0):e._e()]):e._e()},UK=[],jK=Q(BK,HK,UK,!1),WK=jK.exports,GK={init({extend:t}){t({components:{about:IK,systemcheck:WK}}),Object.assign(Vr.components,{FieldConfig:FK})},setup(){Gt(()=>{ue.customizer.news&&ha(yE,{},{width:"xlarge"})})}};Object.assign(ue,{http:Ue,store:xO,hooks:Si,fields:Vr}),window.$fields=Vr.components;const zK={__name:"HeaderBar",setup(t){const{i18n:e}=oe,{trigger:r}=Me(),n=Oi(),a=Be(!1);async function o(){a.value=!0,await n.save(),a.value=!1}return{__sfc:!0,i18n:e,trigger:r,Config:n,spinner:a,save:o,vConfirm:cn}}};var qK=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("Transition",{attrs:{appear:"","appear-to-class":"uk-animation-fade"}},[r("div",{staticClass:"yo-sidebar-close uk-flex uk-flex-middle"},[r("Transition",{attrs:{"enter-active-class":"uk-animation-fade","leave-active-class":"uk-animation-fade uk-animation-reverse",mode:"out-in"}},[n.Config.dirty?r("span",{staticClass:"uk-flex-1 uk-flex uk-flex-middle uk-animation-fast"},[r("button",{directives:[{name:"confirm",rawName:"v-confirm",value:n.i18n.t("Are you sure?"),expression:"i18n.t('Are you sure?')"}],staticClass:"uk-button uk-button-text uk-button-small uk-margin-auto-right",attrs:{type:"button"},on:{click:n.Config.cancel}},[e._v(e._s(n.i18n.t("Cancel")))]),e._v(" "),n.spinner?r("span",{staticClass:"uk-margin-small-right",attrs:{"uk-spinner":"",ratio:"0.5"}}):e._e(),e._v(" "),r("button",{staticClass:"uk-button uk-button-primary uk-button-small",attrs:{disabled:n.spinner,type:"button"},on:{click:n.save}},[e._v(e._s(n.i18n.t("Save")))])]):r("button",{staticClass:"uk-button uk-button-text uk-button-small uk-animation-fast",attrs:{type:"button"},on:{click:function(a){return n.trigger("close")}}},[e._v(e._s(n.i18n.t("Close")))])])],1)])},YK=[],KK=Q(zK,qK,YK,!1),XK=KK.exports;const VK={__name:"SectionsNav",props:{panel:Object,sections:Array},setup(t){const e=t,{i18n:r}=oe,{trigger:n}=Me();function a(d){n("openPanel",d)}function o(d){d.style.visibility="hidden"}function c(d){setTimeout(()=>{d.style.visibility="",d.classList.add("uk-animation-slide-left-medium")},d.dataset.index*100)}return{__sfc:!0,i18n:r,trigger:n,props:e,openPanel:a,beforeAppear:o,appear:c}}};var QK=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",[r("Transition",{attrs:{appear:"","appear-to-class":"uk-animation-fade"}},[r("h1",{staticClass:"uk-logo yo-sidebar-logo uk-text-center"},[e._v("YOOtheme")])]),e._v(" "),r("TransitionGroup",e._g({staticClass:"uk-nav uk-nav-primary uk-nav-center yo-sidebar-marginless",attrs:{tag:"ul"}},{beforeAppear:n.beforeAppear,appear:n.appear}),e._l(n.props.sections,function(a,o){return r("li",{key:a.name,attrs:{"data-index":o}},[r("a",{attrs:{href:""},on:{click:function(c){return c.preventDefault(),n.openPanel(a.name)}}},[e._v(e._s(n.i18n.t(a.title)))])])}),0)],1)},JK=[],ZK=Q(VK,QK,JK,!1),eX=ZK.exports;const tX={__name:"Customizer",props:{setup:Array},setup(t,{expose:e}){const r=t,{location:n}=window;Me({close:{handler(){n.href=ue.customizer.return},priority:-10},openHelp:(d,p)=>Dt(I9,{help:p},{width:"2xlarge"}),checkCache:()=>Ue("cache").get().json(d=>d.files),clearCache:()=>Ue("cache/clear").post().json()});const a={...ue.customizer.panels,...ue.customizer.sections},o=new URLSearchParams(n.search).get("section");for(const[d,p]of Object.entries(a))p.name=d;const c=a[o]??{name:"rootSection",heading:!1,component:eX,props:{sections:ep(Object.values(ue.customizer.sections),"priority","asc")}};return e(r.setup.reduce((d,p)=>({...d,...p()}),{})),{__sfc:!0,location:n,props:r,panels:a,section:o,root:c,FieldsPanel:Wr,Preview:Fj,PreviewResize:Wj,Sidebar:Zj,HeaderBar:XK}}};var rX=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",{staticClass:"yo-customizer"},[r(n.Sidebar,{attrs:{root:n.root,panels:n.panels},scopedSlots:e._u([{key:"header",fn:function(){return[r(n.HeaderBar)]},proxy:!0},{key:"panel",fn:function({panel:a}){return[a.component?r(a.component,e._b({tag:"component",attrs:{panel:a}},"component",a.props,!1)):a.name in e.$options.components?r(a.name,e._b({tag:"component",attrs:{panel:a}},"component",a.props,!1)):r(n.FieldsPanel,{attrs:{panel:a,values:e.Config.values},on:{change:e.Config.change}})]}},{key:"footer",fn:function(){return[r(n.PreviewResize)]},proxy:!0}])}),e._v(" "),r(n.Preview)],1)},nX=[],iX=Q(tX,rX,nX,!1),aX=iX.exports;for(const t of[O1,cy,dP,$1])oe.use(t);if(oe.component("fields-panel",Wr),oe.directive("confirm",cn),oe.directive("sortable",zh),window.Vue||(window.Vue=oe),oe.config.devtools){oe.config.productionTip=!1;const t=[/^(hover|leave|status|states).*?(Node|Component)/,/evaluateExpression|prepareFields/];oe.events.log=({name:e,params:r})=>{t.some(n=>e.match(n))||console.log("\u{1F514}",e,...r)},Si.log=function({name:e,options:r}){console.log("\u{1FA9D}",e,this.state.registry[e]?.length??0,r)}}var sX={init(){Object.assign(ue.customizer,{ignore:["custom_less"],panels:kb(ue.customizer.panels,{ASSETS:ue.config.assets})})},setup(){const t=Oi();br("Config",t),Object.defineProperties(ue.config,{apikey:{get:()=>t.values.yootheme_apikey},google_maps_api_key:{get:()=>t.values.google_maps}}),window.addEventListener("beforeunload",r=>{t.dirty&&(r.preventDefault(),r.returnValue="")},!0);const{trigger:e}=Me({saveConfig:[{handler(r,n){return e("replaceImages",n,!0).then(a=>a&&e("loadPreview"),()=>!1)},priority:5},{handler(r,n){return t.dirty=!1,Vh(n)}},{handler(r,n){return Ue("customizer").post({config:n}).res().then(()=>{ue.customizer.config=Vh(n)},a=>{Ut(`Saving failed: ${a.message}`,"danger"),t.dirty=!0})},priority:-10}]});return{Config:t}}};typeof SuppressedError=="function"&&SuppressedError;function oX(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function uX(t){var e=t.charAt(t.length-1),r=parseInt(t,10),n=new Date;switch(e){case"Y":n.setFullYear(n.getFullYear()+r);break;case"M":n.setMonth(n.getMonth()+r);break;case"D":n.setDate(n.getDate()+r);break;case"h":n.setHours(n.getHours()+r);break;case"m":n.setMinutes(n.getMinutes()+r);break;case"s":n.setSeconds(n.getSeconds()+r);break;default:n=new Date(t)}return n}function lX(t){for(var e="",r=0,n=Object.keys(t);r<n.length;r++){var a=n[r];if(/^expires$/i.test(a)){var o=t[a],c=void 0;typeof o=="object"?c=o:(o+=typeof o=="number"?"D":"",c=uX(String(o))),e+=";".concat(a,"=").concat(c.toUTCString())}else/^secure|partitioned$/.test(a)?t[a]&&(e+=";".concat(a)):e+=";".concat(a,"=").concat(t[a])}return oX(t,"path")||(e+=";path=/"),e}function kE(t,e,r,n){r===void 0&&(r=encodeURIComponent),typeof r=="object"&&r!==null&&(n=r,r=encodeURIComponent);var a=lX(n||{}),o=typeof r=="function"?r(e):e,c="".concat(t,"=").concat(o).concat(a);document.cookie=c}function cX(t,e){var r={expires:-1};return kE(t,"a",r)}var fX={init(){const{id:t,cookie:e}=ue.customizer,r=()=>kE(e,t,{expires:"1D"}),n=()=>cX(e);r(),window.addEventListener("pageshow",r),window.addEventListener("pagehide",n),window.addEventListener("beforeunload",()=>{n(),document.addEventListener("focus",r,{capture:!0,once:!0})})}},dX={init({Vue:t}){const{locale:e,locales:r}=ue.config;t.use(fP,{locale:e,messages:r})}},hX={init({Vue:t}){t.prototype.$notify=Ut,t.asset=un,t.prototype.$asset=un,Object.defineProperty(t.prototype,"$modal",{get(){return(e,r={},n={})=>new t({parent:this,extends:Jy,propsData:{component:t.extend(e).extend(n),props:r}}).$mount()}}),Object.defineProperty(t.prototype,"$dropdown",{get(){return(e,r={},n={})=>new t({parent:this,extends:iv,propsData:{component:t.extend(e).extend(n),props:r}}).$mount()}}),Me({prepareFields({origin:e}){const{builder:r,node:n}=e;if(!r||!n){const a=EE(e);a&&Object.assign(e,{builder:a.builder,node:a.node})}}})}};const EE=t=>{if(t.panel?.component?.name==="BuilderPanel")return t;if(t.$parent)return EE(t.$parent)};var pX={setup(){const t=Oi(),e=zt(),{history:r,location:n}=window;let a=0,o="";Gt(()=>{const c=new URLSearchParams(n.search),{site:d,admin:p,user_id:v}=ue.customizer;e.load({url:c.get("site")??d,query:{user_id:v,admin:p,config:t.values}})}),Me({readyPreview({origin:c},{window:d,document:p,$preview:v}){const b=v.url;if(b!==o){const C=new URL(n);C.searchParams.set("site",b),r.replaceState(null,"",C),a=0}o=b,p.scrollingElement.scrollTop=a,ke.on(d,"click",C=>requestAnimationFrame(()=>ke.trigger(c.$el,C))),ke.on(d,"scroll",()=>a=p.scrollingElement.scrollTop)}})}},mX={init({Vue:t,extend:e}){t.use(SO);const r=yO();r.use(({store:n,options:a})=>a.setup?.call(n,n)),e({pinia:r})}};Object.assign(ue.store,{useConfigStore:Oi,useBuilderStore:Ho,usePreviewStore:zt});var vX={init(){Object.assign(ue,{uikit:{notify:Ut,openDropdown:ds,openModal:ha,promptDropdown:Io,promptModal:Dt,...ue.uikit}})}};const gX=[dX,vX,mX,fX,sX,pX,hX,iK,GK,nK,zq,Oz,YG,Qz],dc={Vue:oe,app:oe.extend(aX),extend:t=>dc.app=dc.app.extend(t)};async function _X({plugins:t=[]}){const e=[];for(const r of[...gX,...t])r.init&&await r.init(dc),r.setup&&e.push(r.setup),r.hooks&&uk(r.hooks);return await Si.call("app.init",({app:r})=>new r({propsData:{setup:e}}),dc)}var bX={init(){ue.customizer.ignore.push("bootstrap")},setup(){const t=Oi(),e=fc();gt(()=>t.values.bootstrap,()=>e.compile()),uk({before:{"styler.executeCommand":({style:r})=>{if(r&&!t.values.bootstrap)for(const n in r.imports)n.includes("/bootstrap")&&(r.imports[n]="// empty")}}})}},yX={init({Vue:t}){Ue.addons.push({beforeRequest(e){const[r,n=""]=e._url.split("?",2);return/^(https?:)?\//.test(r)?e:e.url(ue.config.route,!0).query({p:r,templateStyle:ue.customizer.id}).query(n).headers({"X-XSRF-Token":ue.config.csrf})}}),t.url.options.root=ue.config.url}},kX={setup(){Me({openMediaPicker(t,e){return Dt(Qy,e,{container:!0})},openFilePicker(t,e){return Dt(Qy,{type:"",photos:!1,...e},{container:!0})},openLinkPicker(t,e){return Dt(P1,e,{container:!0})}})}},EX={init(){const{tinyMCE:t}=window;t&&(t.activeEditor||={windowManager:{close(){}}})}},TX={init(){nr.mixin({props:{expand:Boolean},data:{expand:!1},update:{write({max:t}){this.expand&&ke.css(this.$el,"height",t)},events:["resize"]}},"overflowAuto")}};const CX=[pW,a$,kW,xW,nG,HG,yX,TX,EX,kX,bX];document.addEventListener("DOMContentLoaded",async()=>{(await _X({plugins:CX})).$mount("#customizer")})})(UIkit.util,UIkit); assets/images/favicon.png 0000644 00000007407 15175047507 0011471 0 ustar 00 �PNG IHDR ` ` �w8 tEXtSoftware Adobe ImageReadyq�e<