1import{r as He,l as Qi,d as bp,f as to,q as Uo,o as _e,c as Ne,F as na,e as ao,b as Ht,t as hn,s as e1,x as W4,k as ci,w as pr,a as Le,u as Se,i as _n,n as rs,g as Ar,y as Lg,v as Z4,z as q4,h as K4,j as G4,A as Y4}from"./app-CUuJXURS.js";import{c as xp,a as X2,_ as jo}from"./_plugin-vue_export-helper-4dkdAJxW.js";import{c as ns,a as X4,b as J4,d as Q4,e as t5,C as hc,f as e5,g as r5,u as J2,h as Gd,_ as n5}from"./AppLayout.vue_vue_type_script_setup_true_lang-BAXsD0h_.js";import{_ as a0}from"./Checkbox.vue_vue_type_script_setup_true_lang-BUJ5Fbxt.js";import{_ as Yd}from"./Label.vue_vue_type_script_setup_true_lang-DIWRCNw3.js";import{_ as o0}from"./Select.vue_vue_type_script_setup_true_lang-DzACUG5j.js";import{_ as i5,a as a5,b as o5,I as s0,c as s5}from"./CollapsibleTrigger.vue_vue_type_script_setup_true_lang-BFRSXrn6.js";import{F as l0}from"./FileBrowser-Cgr8L7Af.js";import{C as nc}from"./check-B80MVgee.js";import{I as l5}from"./image-Cw2ETqua.js";import{A as c5,a as d5}from"./arrow-right-6NBZub4p.js";import{L as Q2}from"./loader-circle-B68vflWc.js";import{_ as u5}from"./BulkCreatePlaceholderDialog.vue_vue_type_script_setup_true_lang-CNQopuM5.js";/* empty css */import"./index-BjXPx9SP.js";import"./TextLink.vue_vue_type_script_setup_true_lang-7qZj3IY3.js";import"./Input.vue_vue_type_script_setup_true_lang-B-ZFKDFJ.js";import"./ViewModeToggle.vue_vue_type_script_setup_true_lang-0nUJ4qtw.js";import"./search-3ZrhK7r5.js";import"./refresh-cw-CSLEMTsA.js";import"./upload-DGaKIAwM.js";import"./copy-D6qMs8pd.js";import"./trash-2-BQ2r58TA.js";import"./chevron-down-DtrGBOSZ.js";import"./chevron-up-Btud7sqo.js";import"./pencil-GnvMILTo.js";import"./eye-FbKBdf-n.js";function f5(a){a.DomComponents.addType("hero-container",{model:{defaults:{tagName:"div",draggable:!1,droppable:!0,wide_content:!1,attributes:{class:"mx-auto"}},init(){this.on("change:wide_content",this.handleWideContentChange),this.handleWideContentChange()},handleWideContentChange(){const s=!!this.get("wide_content"),c=this.getAttributes(),d=(c.class||"").split(" ").filter(f=>!f.startsWith("max-w-"));d.push(s?"max-w-[1280px]":"max-w-[960px]"),this.setAttributes({...c,class:d.join(" ")})}}});const r={id:"headerOneProduct",label:"1 Produkt",category:{id:"header",label:"Header"},attributes:{"data-os-group":"Vertriebliche Elemente"},content:` 2 <div 3 data-component-id="1" 4 data-component-version="1.0.0" 5 data-component-name="Vertriebliche Elemente - Header - 1 Produkt" 6 class="header-one-product flex flex-col mb-8 md:mb-8 p-1"> 7 8 <div class="relative aspect-[16/9] w-full"> 9 10 <picture class="block w-full md:absolute"> 11 <source media="(max-width: 640px)" srcset="https://placehold.co/640x360?text=Mobile_640x360px"> 12 <source media="(min-width: 641px)" srcset="https://placehold.co/960x540?text=Desktop_960x540px"> 13 <img src="https://placehold.co/960x540?text=Desktop_960x540px" alt="Descriptive text of the image" class="aspect-[16/9] skeleton"> 14 </picture> 15 16 <div class="relative text-center block shadow-sm border border-slate-200 bg-white p-5 pt-6 17 transition-shadow duration-300 dark:border-dark-border dark:bg-dark-surface w-[90%] mx-auto mt-[-10%] mb-3 md:mx-0 md:mb-0 md:max-w-[294px] md:float-right md:right-0 md:top-0 md:mt-5 md:mr-5"> 18 19 <div class="w-[90px] h-[90px] overflow-hidden absolute -top-[10px] -right-[10px] 20 before:content-[''] before:absolute before:block before:border-[5px] 21 before:border-brand-primary-700 22 before:border-t-transparent before:border-r-transparent before:top-0 before:left-0 23 after:content-[''] after:absolute after:block after:border-[5px] after:border-brand-primary-700 24 after:border-t-transparent after:border-r-transparent after:bottom-0 after:right-0"> 25
26 <span class="absolute block w-[258px] py-[6px] px-0 bg-brand-primary-500 27 shadow-[0_5px_10px_rgba(0,0,0,0.1)] text-white text-[13px] leading-none text-center 28 -left-[75px] top-[24px] rotate-45"> 29 Beliebt 30 </span> 31 </div> 32 33 <div class=""> 34 <strong class="outline-none text-title5 block mb-1"> 35 X Monate 36 </strong> 37 38 <picture class="block w-full md:hidden"> 39 <source media="(max-width: 640px)" srcset="https://placehold.co/640x360?text=Mobile_640x360px"> 40 <source media="(min-width: 641px)" srcset="https://placehold.co/960x540?text=Desktop_960x540px"> 41 <img src="https://placehold.co/960x540?text=Desktop_960x540px" alt="Descriptive text of the image" class="aspect-[16/9] skeleton"> 42 </picture> 43 44 <strong class="text-title3 md:text-title2 block"><span class="text-xs mr-2">nur</span>99,99 â¬<span class="text-xs ml-2">/ Monat*</span></strong> 45 46 <p class="text-body2 mt-2 mb-2 block"> 47 In dui magna, posuere eget, vestibulum et, tempor auctor, justo. Pellentesque ut neque. 48 </p> 49 50 <hr> 51 52 <ul class="custom-list-style list-bullet-brand-primary-500 flex flex-col text-left flex-wrap relative"> 53 <li>Phasellus blandit leo ut odio. Vivamus quis mi. Aliquam lobortis. Ut varius tincidunt libero.</li> 54 <li>Etiam imperdiet imperdiet orci. In hac habitasse platea dictumst. Quisque malesuada placerat nisl.</li> 55 <li>Suspendisse nisl elit, rhoncus eget, elementum ac, condimentum eget, diam. Curabitur turpis. Fusce neque.</li> 56 </ul> 57 58 <a href 59 target="_self" 60 title="" 61 class="no-underline font-medium 62 63 inline-block 64 overflow-hidden text-ellipsis whitespace-nowrap rounded border-2 px-6 mt-4 text-center uppercase 65 transition hover:shadow-sm focus:shadow-sm active:shadow-sm disabled:border-gray-100 66 disabled:bg-gray-100 disabled:text-copy-primary disabled:shadow-none 67 68 text-white text-sm leading-[41px] w-full 69 border-brand-primary-500 hover:border-brand-primary-700 focus:border-brand-primary-700 active:border-brand-primary-300 70 bg-brand-primary-500 hover:bg-brand-primary-700 focus:bg-brand-primary-700 active:bg-brand-primary-300" 71 data-track-v2-parentposition="Content" 72 data-track-v2-parent="Vertriebliche Elemente - Header - 1 Produkt" 73 data-track-v2-parentlabel="OS - Vertrieb" 74 data-track-v2-elementposition="1" 75 data-track-v2-elementtype="Button" 76 data-track-v2-vendor="Internal" 77 data-track-v2-link="" 78 data-track-v2-linktype="External" 79 data-track-v2-linkgenre="" 80 data-track-v2-clickaction=""> 81 <span class="px-6">Button</span> 82 </a> 83 </div> 84 </div> 85 </div> 86 <p class="text-xs text-center w-[90%] md:w-full mx-auto mt-2 px-2">*Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus facilisis, quam et facilisis interdum, sapien lacus sollicitudin quam, vel tincidunt urna arcu vel orci.</p> 87 </div> 88 `,media:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><rect width="340" height="180.49" x="30" y="109.76" fill="#d3d3d3" rx="8.73" ry="8.73"/>
88<circle cx="302.06" cy="149.65" r="13.94" fill="#b2b2b2"/><path fill="#b2b2b2" fill-rule="evenodd" d="M370 251.49v30.02c0 4.82-3.91 8.73-8.73 8.73H38.73c-4.82 0-8.73-3.91-8.73-8.73V251.5l91.96-66.35c11.25-8.12 29.49-8.12 40.75 0l99.19 71.55c.23.18.47.35.72.52 5.82 3.92 14.94 3.68 20.37-.52s5.11-10.78-.72-14.7l-18.64-13.45 16.91-12.2c11.26-8.11 29.5-8.11 40.75 0L370 251.49Z"/><path fill="#efefef" d="M350.52 290.24H255V165.61c0-4.19 3.4-7.59 7.59-7.59h80.35c4.19 0 7.59 3.4 7.59 7.59v124.63Z"/><rect width="39.23" height="6.3" x="283.2" y="250.73" fill="#b2b2b2" rx="2.39" ry="2.39"/><rect width="25.96" height="6.3" x="289.83" y="263.89" fill="#b2b2b2" rx="2.39" ry="2.39"/><rect width="28.99" height="10.52" x="288.16" y="174.15" fill="#b2b2b2" rx="4" ry="4"/><rect width="53.66" height="6.3" x="275.83" y="195.48" fill="#b2b2b2" rx="2.39" ry="2.39"/><rect width="49.02" height="6.3" x="278.14" y="208.63" fill="#b2b2b2" rx="2.39" ry="2.39"/><path fill="#b2b2b2" d="M328.83 228.42a2.39 2.39 0 0 1 2.39 2.39v4.03a2.39 2.39 0 0 1-2.39 2.39h-52.14a2.39 2.39 0 0 1-2.39-2.39v-4.03a2.39 2.39 0 0 1 2.39-2.39h52.14m0-4h-52.14c-3.53 0-6.39 2.86-6.39 6.39v4.03c0 3.53 2.86 6.39 6.39 6.39h52.14c3.53 0 6.39-2.86 6.39-6.39v-4.03c0-3.53-2.86-6.39-6.39-6.39Z"/></svg>'},t={id:"headerTwoProducts",label:"2 Produkte",category:{id:"header",label:"Header"},attributes:{"data-os-group":"Vertriebliche Elemente"},content:` 89 <div 90 data-component-id="2" 91 data-component-version="1.0.0" 92 data-component-name="Vertriebliche Elemente - Header - 2 Produkte" 93 class="header-two-products block mb-8 md:mb-8"> 94 95 <div class="relative"> 96 <picture class="block w-full"> 97 <source media="(max-width: 640px)" srcset="https://placehold.co/640x360?text=Mobile_640x360px"> 98 <source media="(min-width: 641px)" srcset="https://placehold.co/960x540?text=Desktop_960x540px"> 99 <img src="https://placehold.co/960x540?text=Desktop_960x540px" alt="Descriptive text of the image" class="aspect-[16/9] skeleton"> 100 </picture> 101 102 <div class="swiper mt-[-10%]" data-swiper='{"initialSlide": 0, "slidesPerView": 1.2, "centeredSlides": true, "breakpoints": {"768"
102: {"slidesPerView": 2, "centeredSlides": false, "enabled": false}}, "navigation": {"nextEl": ".swiper-button-next", "prevEl": ".swiper-button-prev"}}'> 103 <div class="swiper-wrapper md:flex md:justify-center md:gap-5 md:mx-auto"> 104 <div class="swiper-slide pb-2 w-full md:flex-1 md:h-auto md:max-w-[320px]"> 105 <div class="text-center shadow-sm bg-white p-5 pt-6 transition-shadow duration-300 border border-slate-200 dark:bg-dark-surface dark:border-dark-border h-full"> 106 <div class="ribbon ribbon-top-right z-10 before:border-brand-primary-700 after:border-brand-primary-700"><span class="bg-brand-primary-500">Beliebt</span></div> 107 <strong class="outline-none text-title5 block mb-1"> 108 X Monate 109 </strong> 110 <picture class="block w-full"> 111 <source media="(max-width: 640px)" srcset="https://placehold.co/640x360?text=Mobile_640x360px"> 112 <source media="(min-width: 641px)" srcset="https://placehold.co/960x540?text=Desktop_960x540px"> 113 <img src="https://placehold.co/960x540?text=Desktop_960x540px" alt="Descriptive text of the image" class="aspect-[16/9] skeleton"> 114 </picture> 115 <strong class="text-title3 md:text-title2 block"><span class="text-xs mr-2">nur</span>99,99 â¬<span class="text-xs ml-2">/ Monat*</span></strong> 116 <p class="text-body2 mt-2 mb-2 block"> 117 In dui magna, posuere eget, vestibulum et, tempor auctor, justo. Pellentesque ut neque. In ac felis quis tortor malesuada pretium. 118 </p> 119 <hr> 120 <ul class="custom-list-style list-bullet-brand-primary-500 flex flex-col text-left flex-wrap relative"> 121 <li>Phasellus blandit leo ut odio. Vivamus quis mi. Aliquam lobortis. Ut varius tincidunt libero.</li> 122 <li>Etiam imperdiet imperdiet orci. In hac habitasse platea dictumst. Quisque malesuada placerat nisl.</li> 123 <li>Suspendisse nisl elit, rhoncus eget, elementum ac, condimentum eget, diam. Curabitur turpis. Fusce neque.</li> 124 </ul> 125 <a href 126 target="_self" 127 title="" 128 class="no-underline font-medium inline-block overflow-hidden text-ellipsis whitespace-nowrap rounded border-2 px-6 mt-4 text-center uppercase transition hover:shadow-sm focus:shadow-sm active:shadow-sm disabled:border-gray-100 disabled:bg-gray-100 disabled:text-copy-primary disabled:shadow-none text-sm leading-[41px] w-full 129 border-brand-primary-500 hover:border-brand-primary-700 focus:border-brand-primary-700 active:border-brand-primary-300 inline-block overflow-hidden text-ellipsis whitespace-nowrap rounded border-2 px-6 mt-4 text-center uppercase transition hover:shadow-sm focus:shadow-sm active:shadow-sm disabled:border-gray-100 disabled:bg-gray-100 disabled:text-copy-primary disabled:shadow-none bg-brand-primary-500 hover:bg-brand-primary-700 focus:bg-brand-primary-700 active:bg-brand-primary-300 text-sm leading-[41px] w-full text-brand-contrast hover:text-brand-contrast" 130 data-track-v2-parentposition="Content" 131 data-track-v2-parent="Vertriebliche Elemente - 2 Produkte" 132 data-track-v2-parentlabel="OS - Vertrieb" 133 data-track-v2-elementposition="1" 134 data-track-v2-elementtype="Button" 135 data-track-v2-vendor="Internal" 136 data-track-v2-link="" 137 data-track-v2-linktype="External" 138 data-track-v2-linkgenre="" 139 data-track-v2-clickaction="">
140 <span class="px-6">Button</span> 141 </a> 142 </div> 143 </div> 144 <div class="swiper-slide pb-2 w-full md:flex-1 md:h-auto md:max-w-[320px]"> 145 <div class="text-center shadow-sm bg-white p-5 pt-6 transition-shadow duration-300 border border-slate-200 dark:bg-dark-surface dark:border-dark-border h-full"> 146 <strong class="outline-none text-title5 block mb-1"> 147 X Monate 148 </strong> 149 <picture class="block w-full"> 150 <source media="(max-width: 640px)" srcset="https://placehold.co/640x360?text=Mobile_640x360px"> 151 <source media="(min-width: 641px)" srcset="https://placehold.co/960x540?text=Desktop_960x540px"> 152 <img src="https://placehold.co/960x540?text=Desktop_960x540px" alt="Descriptive text of the image" class="aspect-[16/9] skeleton"> 153 </picture> 154 <strong class="text-title3 md:text-title2 block"><span class="text-xs mr-2">nur</span>99,99 â¬<span class="text-xs ml-2">/ Monat*</span></strong> 155 <p class="text-body2 mt-2 mb-2 block"> 156 In dui magna, posuere eget, vestibulum et, tempor auctor, justo. Pellentesque ut neque. In ac felis quis tortor malesuada pretium. 157 </p> 158 <hr> 159 <ul class="custom-list-style list-bullet-brand-primary-500 flex flex-col text-left flex-wrap relative"> 160 <li>Phasellus blandit leo ut odio. Vivamus quis mi. Aliquam lobortis. Ut varius tincidunt libero.</li> 161 <li>Etiam imperdiet imperdiet orci. In hac habitasse platea dictumst. Quisque malesuada placerat nisl.</li> 162 <li>Suspendisse nisl elit, rhoncus eget, elementum ac, conditioning eget, diam. Curabitur turpis. Fusce neque.</li> 163 </ul> 164 <a href 165 target="_self" 166 title="" 167 class="no-underline font-medium inline-block overflow-hidden text-ellipsis whitespace-nowrap rounded border-2 px-6 mt-4 text-center uppercase transition hover:shadow-sm focus:shadow-sm active:shadow-sm disabled:border-gray-100 disabled:bg-gray-100 disabled:text-copy-primary disabled:shadow-none text-sm leading-[41px] w-full 168 border-brand-primary-500 hover:border-brand-primary-700 focus:border-brand-primary-700 active:border-brand-primary-300 inline-block overflow-hidden text-ellipsis whitespace-nowrap rounded border-2 px-6 mt-4 text-center uppercase transition hover:shadow-sm focus:shadow-sm active:shadow-sm disabled:border-gray-100 disabled:bg-gray-100 disabled:text-copy-primary disabled:shadow-none bg-brand-primary-500 hover:bg-brand-primary-700 focus:bg-brand-primary-700 active:bg-brand-primary-300 text-sm leading-[41px] w-full text-brand-contrast hover:text-brand-contrast" 169 data-track-v2-parentposition="Content" 170 data-track-v2-parent="Vertriebliche Elemente - 2 Produkte" 171 data-track-v2-parentlabel="OS - Vertrieb" 172 data-track-v2-elementposition="2" 173 data-track-v2-elementtype="Button" 174 data-track-v2-vendor="Internal" 175 data-track-v2-link="" 176 data-track-v2-linktype="External" 177 data-track-v2-linkgenre="" 178 data-track-v2-clickaction="">
179 <span class="px-6">Button</span> 180 </a> 181 </div> 182 </div> 183 </div> 184 <div class="swiper-button-prev md:hidden"></div> 185 <div class="swiper-button-next md:hidden"></div> 186 </div> 187 </div> 188 <p class="text-xs text-center w-[90%] md:w-full mx-auto mt-2 px-2">*Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus facilisis, quam et facilisis interdum, sapien lacus sollicitudin quam, vel tincidunt urna arcu vel orci.</p> 189 </div> 190 <script> 191 var elemTwo = document.querySelector('.header-two-products .swiper'); 192 if (elemTwo) { 193 // Swiper nur initialisieren wenn NICHT im GrapesJS Editor (da dort der swiper-helper übernimmt) 194 if (!window.location.pathname.includes('/grapes/')) { 195 new Swiper(elemTwo, JSON.parse(elemTwo.getAttribute('data-swiper') || '{}')); 196 } 197 } 198 <\/script> 199 `,media:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><rect width="340" height="180.5" x="30" y="76.8" fill="#d3d3d3" rx="8.7" ry="8.7"/><circle cx="302.1" cy="116.7" r="13.9" fill="#b2b2b2"/><path fill="#b2b2b2" fill-rule="evenodd" d="M370 218.5v30c0 4.8-3.9 8.7-8.7 8.7H38.7c-4.8 0-8.7-3.9-8.7-8.7v-30l92-66.3c11.2-8.1 29.5-8.1 40.8 0l99.2 71.5c.2.2.5.3.7.5 5.8 3.9 14.9 3.7 20.4-.5s5.1-10.8-.7-14.7l-18.6-13.5 16.9-12.2c11.3-8.1 29.5-8.1 40.8 0l48.7 35.1Z"/><g data-name="Textblock"><rect width="146" height="132.2" x="209.2" y="191" fill="#efefef" rx="9.4" ry="9.4"/><g fill="#b2b2b2"><rect width="60" height="6.3" x="252.2" y="283.7" rx="3" ry="3"/><rect width="39.7" height="6.3" x="262.4" y="296.9" rx="3" ry="3"/><rect width="44.3" height="10.5" x="259.8" y="207.1" rx="4.9" ry="4.9"/><rect width="82" height="6.3" x="241" y="228.5" rx="3" ry="3"/><rect width="74.9" height="6.3" x="244.5" y="241.6" rx="3" ry="3"/><path d="M323.8 262.4c1.6 0 3 1.3 3 3v1c0 1.6-1.3 3-3 3h-83.4c-1.6 0-3-1.3-3-3v-1c0-1.6 1.3-3 3-3h83.4m0-5h-83.4c-4.4 0-7.9 3.5-7.9 7.9v1c0 4.4 3.5 7.9 7.9 7.9h83.4c4.4 0 7.9-3.5 7.9-7.9v-1c0-4.4-3.5-7.9-7.9-7.9Z"/></g></g><g data-name="Textblock"><rect width="146" height="132.2" x="44.9" y="191" fill="#efefef" rx="9.4" ry="9.4"/><g fill="#b2b2b2"><rect width="60" height="6.3" x="88" y="283.7" rx="3" ry="3"/><rect width="39.7" height="6.3" x="98.1" y="296.9" rx="3" ry="3"/><rect width="44.3" height="10.5" x="95.5" y="207.1" rx="4.9" ry="4.9"/><rect width="82" height="6.3" x="76.7" y="228.5" rx="3" ry="3"/><rect width="74.9" height="6.3" x="80.2" y="241.6" rx="3" ry="3"/><path d="M159.6 262.4c1.6 0 3 1.3 3 3v1c0 1.6-1.3 3-3 3H76.2c-1.6 0-3-1.3-3-3v-1c0-1.6 1.3-3 3-3h83.4m0-5H76.2c-4.4 0-7.9 3.5-7.9 7.9v1c0 4.4 3.5 7.9 7.9 7.9h83.4c4.4 0 7.9-3.5 7.9-7.9v-1c0-4.4-3.5-7.9-7.9-7.9Z"/></g></g></svg>'},e={id:"headerThreeProducts",label:"3 Produkte",category:{id:"header",label:"Header"},attributes:{"data-os-group":"Vertriebliche Elemente"},content:` 200 <div 201 data-component-id="3" 202 data-component-version="1.0.0" 203 data-component-name="Vertriebliche Elemente - Header - 3 Produkte" 204 class="header-three-products block mb-8 md:mb-8"> 205 206 <div class="relative"> 207 <picture class="block w-full"> 208 <source media="(max-width: 640px)" srcset="https://placehold.co/640x360?text=Mobile_640x360px"> 209 <source media="(min-width: 641px)" srcset="https://placehold.co/960x540?text=Desktop_960x540px"> 210 <img src="https://placehold.co/960x540?text=Desktop_960x540px" alt="Descriptive text of the image" class="aspect-[16/9] skeleton"> 211 </picture> 212 213 <div class="swiper mt-[-10%]" data-swiper='{"initialSlide": 0, "slidesPerView": 1.2, "centeredSlides": true, "breakpoints": {"768"
213: {"slidesPerView": 3, "centeredSlides": false, "enabled": false}}, "navigation": {"nextEl": ".swiper-button-next", "prevEl": ".swiper-button-prev"}}'> 214 <div class="swiper-wrapper md:flex md:justify-center md:gap-5 md:mx-auto"> 215 <div class="swiper-slide pb-2 w-full md:flex-1 md:h-auto md:max-w-[294px]"> 216 <div class="text-center shadow-sm bg-white p-5 pt-6 transition-shadow duration-300 border border-slate-200 dark:bg-dark-surface dark:border-dark-border h-full"> 217 <strong class="outline-none text-title5 block mb-1"> 218 X Monate 219 </strong> 220 <picture class="block w-full"> 221 <source media="(max-width: 640px)" srcset="https://placehold.co/640x360?text=Mobile_640x360px"> 222 <source media="(min-width: 641px)" srcset="https://placehold.co/960x540?text=Desktop_960x540px"> 223 <img src="https://placehold.co/960x540?text=Desktop_960x540px" alt="Descriptive text of the image" class="aspect-[16/9] skeleton"> 224 </picture> 225 <strong class="text-title3 md:text-title2 block"><span class="text-xs mr-2">nur</span>99,99 â¬<span class="text-xs ml-2">/ Monat*</span></strong> 226 <p class="text-body2 mt-2 mb-2 block"> 227 In dui magna, posuere eget, vestibulum et, tempor auctor, justo. Pellentesque ut neque. 228 </p> 229 <hr> 230 <ul class="custom-list-style list-bullet-brand-primary-500 flex flex-col text-left flex-wrap relative"> 231 <li>Phasellus blandit leo ut odio. Vivamus quis mi. Aliquam lobortis. Ut varius tincidunt libero.</li> 232 <li>Etiam imperdiet imperdiet orci. In hac habitasse platea dictumst. Quisque malesuada placerat nisl.</li> 233 <li>Suspendisse nisl elit, rhoncus eget, elementum ac, condimentum eget, diam. Curabitur turpis. Fusce neque.</li> 234 </ul> 235 <a href 236 target="_self" 237 title="" 238 class="no-underline font-medium inline-block overflow-hidden text-ellipsis whitespace-nowrap rounded border-2 px-6 mt-4 text-center uppercase transition hover:shadow-sm focus:shadow-sm active:shadow-sm disabled:border-gray-100 disabled:bg-gray-100 disabled:text-copy-primary disabled:shadow-none text-sm leading-[41px] w-full border-brand-primary-500 hover:border-brand-primary-700 focus:border-brand-primary-700 active:border-brand-primary-300 bg-brand-primary-500 hover:bg-brand-primary-700 focus:bg-brand-primary-700 active:bg-brand-primary-300 text-brand-contrast hover:text-brand-contrast" 239 data-track-v2-parentposition="Content" 240 data-track-v2-parent="Vertriebliche Elemente - Header - 3 Produkte" 241 data-track-v2-parentlabel="OS - Vertrieb" 242 data-track-v2-elementposition="1" 243 data-track-v2-elementtype="Button" 244 data-track-v2-vendor="Internal" 245 data-track-v2-link="" 246 data-track-v2-linktype="External" 247 data-track-v2-linkgenre="" 248 data-track-v2-clickaction=""> 249 <span class="px-6">Button</span> 250 </a> 251 </div> 252 </div> 253 <div class="swiper-slide pb-2 w-full md:flex-1 md:h-auto md:max-w-[294px]"> 254 <div class="text-center shadow-sm bg-white p-5 pt-6 transition-shadow duration-300 border border-slate-200 dark:bg-dark-surface dark:border-dark-border h-full"> 255 <div class="ribbon ribbon-top-right z-10 before:border-brand-primary-700 after:border-brand-primary-700"><span class="bg-brand-primary-500">Beliebt</span></div> 256 <strong class="outline-none text-title5 block mb-1"> 257 X Monate 258 </strong> 259 <picture class="block w-full"> 260 <source media="(max-width: 640px)" srcset="https://placehold.co/640x360?text=Mobile_640x360px"> 261 <source media="(min-width: 641px)" srcset="https://placehold.co/960x540?text=Desktop_960x540px"> 262 <img src="https://placehold.co/960x540?text=Desktop_960x540px" alt="Descriptive text of the image" class="aspect-[16/9] skeleton"> 263 </picture> 264 <strong class="text-title3 md:text-title2 block"><span class="text-xs mr-2">
264nur</span>99,99 â¬<span class="text-xs ml-2">/ Monat*</span></strong> 265 <p class="text-body2 mt-2 mb-2 block"> 266 In dui magna, posuere eget, vestibulum et, tempor auctor, justo. Pellentesque ut neque. 267 </p> 268 <hr> 269 <ul class="custom-list-style list-bullet-brand-primary-500 flex flex-col text-left flex-wrap relative"> 270 <li>Phasellus blandit leo ut odio. Vivamus quis mi. Aliquam lobortis. Ut varius tincidunt libero.</li> 271 <li>Etiam imperdiet imperdiet orci. In hac habitasse platea dictumst. Quisque malesuada placerat nisl.</li> 272 <li>Suspendisse nisl elit, rhoncus eget, elementum ac, condimentum eget, diam. Curabitur turpis. Fusce neque.</li> 273 </ul> 274 <a href 275 target="_self" 276 title="" 277 class="no-underline font-medium inline-block overflow-hidden text-ellipsis whitespace-nowrap rounded border-2 px-6 mt-4 text-center uppercase transition hover:shadow-sm focus:shadow-sm active:shadow-sm disabled:border-gray-100 disabled:bg-gray-100 disabled:text-copy-primary disabled:shadow-none text-sm leading-[41px] w-full border-brand-primary-500 hover:border-brand-primary-700 focus:border-brand-primary-700 active:border-brand-primary-300 bg-brand-primary-500 hover:bg-brand-primary-700 focus:bg-brand-primary-700 active:bg-brand-primary-300 text-brand-contrast hover:text-brand-contrast" 278 data-track-v2-parentposition="Content" 279 data-track-v2-parent="Vertriebliche Elemente - Header - 3 Produkte" 280 data-track-v2-parentlabel="OS - Vertrieb" 281 data-track-v2-elementposition="2" 282 data-track-v2-elementtype="Button" 283 data-track-v2-vendor="Internal" 284 data-track-v2-link="" 285 data-track-v2-linktype="External" 286 data-track-v2-linkgenre="" 287 data-track-v2-clickaction=""> 288 <span class="px-6">Button</span> 289 </a> 290 </div> 291 </div> 292 <div class="swiper-slide pb-2 w-full md:flex-1 md:h-auto md:max-w-[294px]"> 293 <div class="text-center shadow-sm bg-white p-5 pt-6 transition-shadow duration-300 border border-slate-200 dark:bg-dark-surface dark:border-dark-border h-full"> 294 <strong class="outline-none text-title5 block mb-1"> 295 X Monate 296 </strong> 297 <picture class="block w-full"> 298 <source media="(max-width: 640px)" srcset="https://placehold.co/640x360?text=Mobile_640x360px"> 299 <source media="(min-width: 641px)" srcset="https://placehold.co/960x540?text=Desktop_960x540px"> 300 <img src="https://placehold.co/960x540?text=Desktop_960x540px" alt="Descriptive text of the image" class="aspect-[16/9] skeleton"> 301 </picture> 302 <strong class="text-title3 md:text-title2 block"><span class="text-xs mr-2">nur</span>99,99 â¬<span class="text-xs ml-2">/ Monat*</span></strong> 303 <p class="text-body2 mt-2 mb-2 block"> 304 In dui magna, posuere eget, vestibulum et, tempor auctor, justo. Pellentesque ut neque. 305 </p> 306 <hr> 307 <ul class="custom-list-style list-bullet-brand-primary-500 flex flex-col text-left flex-wrap relative"> 308 <li>Phasellus blandit leo ut odio. Vivamus quis mi. Aliquam lobortis. Ut varius tincidunt libero.</li> 309 <li>Etiam imperdiet imperdiet orci. In hac habitasse platea dictumst. Quisque malesuada placerat nisl.</li> 310 <li>Suspendisse nisl elit, rhoncus eget, elementum ac, condimentum eget, diam. Curabitur turpis. Fusce neque.</li> 311 </ul> 312 <a href 313 target="_self" 314 title="" 315 class="no-underline font-medium inline-block overflow-hidden text-ellipsis whitespace-nowrap rounded border-2 px-6 mt-4 text-center uppercase transition hover:shadow-sm focus:shadow-sm active:shadow-sm disabled:border-gray-100 disabled:bg-gray-100 disabled:text-copy-primary disabled:shadow-none text-sm leading-[41px] w-full border-brand-primary-500 hover:border-brand-primary-700 focus:border-brand-primary-700 active:border-brand-primary-300 bg-brand-primary-500 hover:bg-brand-primary-700 focus:bg-brand-primary-700 active:bg-brand-primary-300 text-brand-contrast hover:text-brand-contrast" 316 data-track-v2-parentposition="Content" 317 data-track-v2-parent="Vertriebliche Elemente - Header - 3 Produkte" 318 data-track-v2-parentlabel="OS
318- Vertrieb" 319 data-track-v2-elementposition="3" 320 data-track-v2-elementtype="Button" 321 data-track-v2-vendor="Internal" 322 data-track-v2-link="" 323 data-track-v2-linktype="External" 324 data-track-v2-linkgenre="" 325 data-track-v2-clickaction=""> 326 <span class="px-6">Button</span> 327 </a> 328 </div> 329 </div> 330 </div> 331 <div class="swiper-button-prev md:hidden"></div> 332 <div class="swiper-button-next md:hidden"></div> 333 </div> 334 </div> 335 <p class="text-xs text-center w-[90%] md:w-full mx-auto mt-2 px-2">*Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus facilisis, quam et facilisis interdum, sapien lacus sollicitudin quam, vel tincidunt urna arcu vel orci.</p> 336 </div> 337 <script> 338 var elemThree = document.querySelector('.header-three-products .swiper'); 339 if (elemThree) { 340 // Swiper nur initialisieren wenn NICHT im GrapesJS Editor 341 if (!window.location.pathname.includes('/grapes/')) { 342 new Swiper(elemThree, JSON.parse(elemThree.getAttribute('data-swiper') || '{}')); 343 } 344 } 345 <\/script> 346 `,media:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><rect width="340" height="180.5" x="30" y="76.8" fill="#d3d3d3" rx="8.7" ry="8.7"/><circle cx="302.1" cy="116.7" r="13.9" fill="#b2b2b2"/><path fill="#b2b2b2" fill-rule="evenodd" d="M370 218.5v30c0 4.8-3.9 8.7-8.7 8.7H38.7c-4.8 0-8.7-3.9-8.7-8.7v-30l92-66.3c11.2-8.1 29.5-8.1 40.7 0l99.2 71.5c.2.2.5.3.7.5 5.8 3.9 14.9 3.7 20.4-.5s5.1-10.8-.7-14.7l-18.6-13.5 16.9-12.2c11.3-8.1 29.5-8.1 40.8 0l48.7 35.1Z"/><rect width="95.4" height="132.2" x="152.3" y="191" fill="#efefef" rx="7.6" ry="7.6"/><rect width="39.2" height="6.3" x="180.5" y="283.7" fill="#b2b2b2" rx="2.4" ry="2.4"/><rect width="25.9" height="6.3" x="187.1" y="296.9" fill="#b2b2b2" rx="2.4" ry="2.4"/><rect width="28.9" height="10.5" x="185.4" y="207.1" fill="#b2b2b2" rx="4" ry="4"/><rect width="53.6" height="6.3" x="173.1" y="228.5" fill="#b2b2b2" rx="2.4" ry="2.4"/><rect width="49" height="6.3" x="175.4" y="241.6" fill="#b2b2b2" rx="2.4" ry="2.4"/><path fill="#b2b2b2" d="M226 261.4c1.3 0 2.4 1.1 2.4 2.4v4c0 1.3-1.1 2.4-2.4 2.4h-52.1c-1.3 0-2.4-1.1-2.4-2.4v-4c0-1.3 1.1-2.4 2.4-2.4H226m0-4h-52.1c-3.5 0-6.4 2.9-6.4 6.4v4c0 3.5 2.9 6.4 6.4 6.4H226c3.5 0 6.4-2.9 6.4-6.4v-4c0-3.5-2.9-6.4-6.4-6.4Z"/><rect width="95.4" height="132.2" x="45" y="191" fill="#efefef" rx="7.6" ry="7.6"/><rect width="39.2" height="6.3" x="73.1" y="283.7" fill="#b2b2b2" rx="2.4" ry="2.4"/><rect width="25.9" height="6.3" x="79.7" y="296.9" fill="#b2b2b2" rx="2.4" ry="2.4"/><rect width="28.9" height="10.5" x="78.1" y="207.1" fill="#b2b2b2" rx="4" ry="4"/><rect width="53.6" height="6.3" x="65.8" y="228.5" fill="#b2b2b2" rx="2.4" ry="2.4"/><rect width="49" height="6.3" x="68.1" y="241.6" fill="#b2b2b2" rx="2.4" ry="2.4"/><path fill="#b2b2b2" d="M118.7 261.4c1.3 0 2.4 1.1 2.4 2.4v4c0 1.3-1.1 2.4-2.4 2.4H66.6c-1.3 0-2.4-1.1-2.4-2.4v-4c0-1.3 1.1-2.4 2.4-2.4h52.1m0-4H66.6c-3.5 0-6.4 2.9-6.4 6.4v4c0 3.5 2.9 6.4 6.4 6.4h52.1c3.5 0 6.4-2.9 6.4-6.4v-4c0-3.5-2.9-6.4-6.4-6.4Z"/><rect width="95.4" height="132.2" x="259.7" y="191" fill="#efefef" rx="7.6" ry="7.6"/><rect width="39.2" height="6.3" x="287.8" y="283.7" fill="#b2b2b2" rx="2.4" ry="2.4"/><rect width="25.9" height="6.3" x="294.4" y="296.9" fill="#b2b2b2" rx="2.4" ry="2.4"/><rect width="28.9" height="10.5" x="292.8" y="207.1" fill="#b2b2b2" rx="4" ry="4"/><rect width="53.6" height="6.3" x="280.5" y="228.5" fill="#b2b2b2" rx="2.4" ry="2.4"/><rect width="49" height="6.3" x="282.8" y="241.6" fill="#b2b2b2" rx="2.4" ry="2.4"/><path fill="#b2b2b2" d="M333.4 261.4c1.3 0 2.4 1.1 2.4 2.4v4c0 1.3-1.1 2.4-2.4 2.4h-52.1c-1.3 0-2.4-1.1-2.4-2.4v-4c0-1.3 1.1-2.4 2.4
346-2.4h52.1m0-4h-52.1c-3.5 0-6.4 2.9-6.4 6.4v4c0 3.5 2.9 6.4 6.4 6.4h52.1c3.5 0 6.4-2.9 6.4-6.4v-4c0-3.5-2.9-6.4-6.4-6.4Z"/></svg>'},n={id:"heroTextbox",label:"Bild mit Textbox",category:{id:"header",label:"Header"},attributes:{"data-os-group":"Landingpage Elemente"},content:` 347 <div 348 data-component-id="4" 349 data-component-version="1.0.0" 350 data-component-name="Landingpage Element - Header - Bild mit Textbox" 351 class="header-textbox d-block mb-8 relative"> 352 353 <!-- Image Box and Headline --> 354 <div class="relative w-full flex justify-center items-center"> 355 <picture class="block w-full"> 356 <source media="(max-width: 640px)" srcset="https://placehold.co/640x360?text=Mobile_640x360px"> 357 <source media="(min-width: 641px)" srcset="https://placehold.co/960x325?text=Desktop_960x325px"> 358 <img src="https://placehold.co/960x325?text=Desktop_960x325px" alt="Descriptive text of the image" class="aspect-[65/28] lg:aspect-[960/325] skeleton"> 359 </picture> 360 <div class="absolute z-1 left-0 top-0 right-0 bottom-0 black-gradient gjs-no-pointer pointer-events-none"></div> 361 <span class="absolute z-10 inline-block text-white text-center text-title4 md:text-title2"> 362 Lorem Ipsum Dolor 363 </span> 364 </div> 365 366 <!-- Text Box --> 367 <div class="relative z-1 -mt-11 md:-mt-[70px] lg:-mt-[90px] w-11/12 md:w-4/5 mx-auto rounded-md border border-slate-200 bg-white px-4 py-6 text-center shadow-sm animate-fade-in dark:border-dark-border dark:bg-dark-surface"> 368 <div> 369 <span class="block font-bold">Lorem Ipsum?</span> 370 <p class="pb-3">Phasellus facilisis, quam et facilisis interdum, sapien lacus</p> 371 <a href target="_self" title="" class="no-underline font-medium inline-block overflow-hidden text-ellipsis whitespace-nowrap rounded border-2 px-6 text-center uppercase transition hover:shadow-sm focus:shadow-sm active:shadow-sm disabled:border-gray-100 disabled:bg-gray-100 disabled:text-copy-primary disabled:shadow-none text-sm leading-[41px] w-full border-brand-primary-500 hover:border-brand-primary-700 focus:border-brand-primary-700 active:border-brand-primary-300 bg-brand-primary-500 hover:bg-brand-primary-700 focus:bg-brand-primary-700 active:bg-brand-primary-300 text-brand-contrast hover:text-brand-contrast w-4/5 md:w-3/5" 372 data-track-category="click_button" data-track-action="os_hero_textbox" data-track-label="os_hero_textbox"> 373 <span class="px-6">Button</span> 374 </a> 375 <a href 376 target="_self" 377 title="" 378 class="no-underline font-medium inline-block overflow-hidden text-ellipsis whitespace-nowrap rounded border-2 px-6 mt-4 text-center uppercase transition hover:shadow-sm focus:shadow-sm active:shadow-sm disabled:border-gray-100 disabled:bg-gray-100 disabled:text-copy-primary disabled:shadow-none text-sm leading-[41px] w-full 379 border-brand-primary-500 hover:border-brand-primary-700 focus:border-brand-primary-700 active:border-brand-primary-300 inline-block overflow-hidden text-ellipsis whitespace-nowrap rounded border-2 px-6 mt-4 text-center uppercase transition hover:shadow-sm focus:shadow-sm active:shadow-sm disabled:border-gray-100 disabled:bg-gray-100 disabled:text-copy-primary disabled:shadow-none bg-brand-primary-500 hover:bg-brand-primary-700 focus:bg-brand-primary-700 active:bg-brand-primary-300 text-sm leading-[41px] w-full text-brand-contrast hover:text-brand-contrast" 380 data-track-v2-parentposition="Content" 381 data-track-v2-parent="Landingpage Element - Header - Bild mit Textbox"
382 data-track-v2-parentlabel="OS - Inhalt" 383 data-track-v2-elementposition="1" 384 data-track-v2-elementtype="Button" 385 data-track-v2-vendor="Internal" 386 data-track-v2-link="" 387 data-track-v2-linktype="External" 388 data-track-v2-linkgenre="" 389 data-track-v2-clickaction=""> 390 <span class="px-6">Button</span> 391 </a> 392 <p>Morbi vestibulum volutpat enim. Mauris turpis nunc, blandit et, volutpat molestie, porta ut, ligula.</p> 393 <span class="block">Lorem Ipsum dolor</span> 394 </div> 395 </div> 396 </div> 397 `,media:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><rect width="340" height="180.49" x="30" y="81.79" fill="#d3d3d3" rx="8.73" ry="8.73"/><circle cx="302.06" cy="121.68" r="13.94" fill="#b2b2b2"/><path fill="#b2b2b2" fill-rule="evenodd" d="M370 223.53v30.02c0 4.82-3.91 8.73-8.73 8.73H38.73c-4.82 0-8.73-3.91-8.73-8.73v-30.01l91.96-66.35c11.25-8.12 29.49-8.12 40.75 0l99.19 71.55c.23.18.47.35.72.52 5.82 3.92 14.94 3.68 20.37-.52s5.11-10.78-.72-14.7l-18.64-13.45 16.91-12.2c11.26-8.11 29.5-8.11 40.75 0L370 223.53Z"/><rect width="223.19" height="111.29" x="88.33" y="206.93" fill="#efefef" rx="7.59" ry="7.59"/><rect width="91.66" height="5.3" x="154.21" y="284.95" fill="#b2b2b2" rx="2.39" ry="2.39"/><rect width="60.66" height="5.3" x="169.72" y="296.03" fill="#b2b2b2" rx="2.39" ry="2.39"/><rect width="67.73" height="8.86" x="165.81" y="220.49" fill="#b2b2b2" rx="4" ry="4"/><rect width="125.37" height="5.3" x="136.99" y="238.45" fill="#b2b2b2" rx="2.39" ry="2.39"/><rect width="114.55" height="5.3" x="142.4" y="249.52" fill="#b2b2b2" rx="2.39" ry="2.39"/><path fill="#b2b2b2" d="M269.38 266.81a2.39 2.39 0 0 1 2.39 2.39v1.37a2.39 2.39 0 0 1-2.39 2.39H130.46a2.39 2.39 0 0 1-2.39-2.39v-1.37a2.39 2.39 0 0 1 2.39-2.39h138.92m0-4H130.46c-3.53 0-6.39 2.86-6.39 6.39v1.37c0 3.53 2.86 6.39 6.39 6.39h138.92c3.53 0 6.39-2.86 6.39-6.39v-1.37c0-3.53-2.86-6.39-6.39-6.39Z"/></svg>'},i={id:"heroFourBlocks",label:"Inhalt - 4 Text-Bild-Elemente",category:{id:"header",label:"Header"},attributes:{"data-os-group":"Landingpage Elemente"},content:` 398 <section 399 data-component-id="5" 400 data-component-version="1.0.0" 401 data-component-name="Landingpage Element - Header - 4 Text-Bild-Elemente" 402 aria-label="GroÃer Aufmacher" 403 class="mb-5 w-full bg-surface-300 px-0 py-4 pt-0 lg:mb-8 lg:px-2 lg:py-5"> 404 405 <div class="px-0 lg:px-2"> 406 <div class="w-full bg-surface-300 lg:flex lg:flex-nowrap lg:items-center"> 407 <div class="relative w-full lg:w-[696px] aspect-[4/3] md:aspect-[16/9]"> 408 <picture class="block w-full lg:absolute object-cover aspect-[4/3] md:aspect-[16/9] m-0"> 409 <source media="(max-width: 640px)" srcset="https://placehold.co/640x480?text=Mobile_640x480"> 410 <source media="(min-width: 641px)" srcset="https://placehold.co/960x540?text=Desktop_960x540px"> 411 <img src="https://placehold.co/960x540?text=Desktop_960x540px" 412 alt="Descriptive text of the image" class="skeleton"> 413 </picture> 414 </div> 415 <div class="relative z-10 mx-auto -mt-[60px] w-auto ml-5 mr-5 rounded-md border border-slate-200 bg-white p-4 shadow-sm transition-shadow duration-300 group-focus-within:shadow-md dark:border-dark-border dark:bg-dark-surface md:mr-auto md:ml-auto md:w-11/12 lg:mt-0 lg:-ml-[142px] lg:w-[424px]"> 416 <div class="mb-2 flex items-center" data-test="teaser-labels"> 417 <span class="text-overline inline-block uppercase line-clamp-1">Thema</span> 418 </div> 419 <strong class="outline-none text-title4 md:text-title3 lg:text-title3 ">Ãberschrift</strong> 420 <p class="text-body2 mt-1 line-clamp-5 md:line-clamp-3 lg:line-clamp-4">
421 <span class="text-copy-secondary">Text. </span> 422 Integer a ipsum vitae urna varius egestas. Integer laoreet, sapien eget vehicula vehicula. 423 </p> 424 <a href 425 target="_self" 426 title="" 427 class="no-underline font-medium inline-block overflow-hidden text-ellipsis whitespace-nowrap rounded border-2 px-6 mt-4 text-center uppercase transition hover:shadow-sm focus:shadow-sm active:shadow-sm disabled:border-gray-100 disabled:bg-gray-100 disabled:text-copy-primary disabled:shadow-none text-sm leading-[41px] w-full border-brand-primary-500 hover:border-brand-primary-700 focus:border-brand-primary-700 active:border-brand-primary-300 bg-brand-primary-500 hover:bg-brand-primary-700 focus:bg-brand-primary-700 active:bg-brand-primary-300 text-brand-contrast hover:text-brand-contrast" 428 data-track-v2-parentposition="Content" 429 data-track-v2-parent="Landingpage Element - Header - 4 Text-Bild-Elemente" 430 data-track-v2-parentlabel="OS - Inhalt" 431 data-track-v2-elementposition="1" 432 data-track-v2-elementtype="Button" 433 data-track-v2-vendor="Internal" 434 data-track-v2-link="" 435 data-track-v2-linktype="External" 436 data-track-v2-linkgenre="" 437 data-track-v2-clickaction=""> 438 <span class="px-6">Button</span> 439 </a> 440 </div> 441 </div> 442 </div> 443 444 <ul class="mt-6 grid grid-cols-1 gap-4 px-3 md:px-3 lg:grid-cols-3 lg:gap-5.5 lg:px-0"> 445 <li class="relative flex w-full p-2 focus-within:bg-hover-100 hover:bg-hover-100 lg:block transition"> 446 <div class="h-[100px] w-[100px] min-w-[100px] md:h-auto md:w-[284px] md:min-w-[284px] lg:h-auto lg:w-full"> 447 <div class="relative aspect-[1/1] md:aspect-[16/9]"> 448 <picture class="block w-full lg:absolute object-cover aspect-[1/1] md:aspect-[16/9] m-0"> 449 <source media="(max-width: 640px)" srcset="https://placehold.co/640x640?text=Mobile_640x640"> 450 <source media="(min-width: 641px)" srcset="https://placehold.co/960x540?text=Desktop_960x540px"> 451 <img src="https://placehold.co/960x540?text=Desktop_960x540px" 452 alt="Descriptive text of the image" class="skeleton"> 453 </picture> 454 </div> 455 </div> 456 <div class="ml-2 lg:ml-0 lg:mt-2"> 457 <div class="mb-2 flex items-center" data-test="teaser-labels"> 458 <span class="text-overline inline-block uppercase line-clamp-1">Thema</span> 459 </div> 460 <strong class="outline-none text-subtitle1 md:text-title5 lg:text-title5"> 461 Integer a ipsum vitae urna varius egestas. Integer laoreet. 462 </strong> 463 <a href 464 target="_self" 465 title="" 466 class="font-bold border-brand-primary-500 block transition leading-[41px] text-brand-primary-500 flex items-center no-underline" 467 data-track-v2-parentposition="Content" 468 data-track-v2-parent="Landingpage Element - Header - 4 Text-Bild-Elemente" 469 data-track-v2-parentlabel="OS - Inhalt" 470 data-track-v2-elementposition="2" 471 data-track-v2-elementtype="Button" 472 data-track-v2-vendor="Internal" 473 data-track-v2-link="" 474 data-track-v2-linktype="External" 475 data-track-v2-linkgenre="" 476 data-track-v2-clickaction="">
477 <span class="py-2 pr-1"> 478 Button 479 </span> 480 <iconify-icon icon="material-symbols:chevron-right" class="text-2xl" aria-hidden="true"></iconify-icon> 481 </a> 482 </div> 483 </li> 484 <li class="relative flex w-full p-2 focus-within:bg-hover-100 hover:bg-hover-100 lg:block transition"> 485 <div class="h-[100px] w-[100px] min-w-[100px] md:h-auto md:w-[284px] md:min-w-[284px] lg:h-auto lg:w-full"> 486 <div class="relative aspect-[1/1] md:aspect-[16/9]"> 487 <picture class="block w-full lg:absolute object-cover aspect-[1/1] md:aspect-[16/9] m-0"> 488 <source media="(max-width: 640px)" srcset="https://placehold.co/640x640?text=Mobile_640x640"> 489 <source media="(min-width: 641px)" srcset="https://placehold.co/960x540?text=Desktop_960x540px"> 490 <img src="https://placehold.co/960x540?text=Desktop_960x540px" 491 alt="Descriptive text of the image" class="skeleton"> 492 </picture> 493 </div> 494 </div> 495 <div class="ml-2 lg:ml-0 lg:mt-2"> 496 <div class="mb-2 flex items-center" data-test="teaser-labels"> 497 <span class="text-overline inline-block uppercase line-clamp-1">Thema</span> 498 </div> 499 <strong class="outline-none text-subtitle1 md:text-title5 lg:text-title5"> 500 Donec at magna ut nulla pharetra cursus. 501 </strong> 502 <a href 503 target="_self" 504 title="" 505 class="font-bold border-brand-primary-500 block transition leading-[41px] text-brand-primary-500 flex items-center no-underline" 506 data-track-v2-parentposition="Content" 507 data-track-v2-parent="Landingpage Element - Header - 4 Text-Bild-Elemente" 508 data-track-v2-parentlabel="OS - Inhalt" 509 data-track-v2-elementposition="3" 510 data-track-v2-elementtype="Button" 511 data-track-v2-vendor="Internal" 512 data-track-v2-link="" 513 data-track-v2-linktype="External" 514 data-track-v2-linkgenre="" 515 data-track-v2-clickaction=""> 516 <span class="py-2 pr-1"> 517 Button 518 </span> 519 <iconify-icon icon="material-symbols:chevron-right" class="text-2xl" aria-hidden="true"></iconify-icon> 520 </a> 521 </div> 522 </li> 523 <li class="relative flex w-full p-2 focus-within:bg-hover-100 hover:bg-hover-100 lg:block transition"> 524 <div class="h-[100px] w-[100px] min-w-[100px] md:h-auto md:w-[284px] md:min-w-[284px] lg:h-auto lg:w-full"> 525 <div class="relative aspect-[1/1] md:aspect-[16/9]"> 526 <picture class="block w-full lg:absolute object-cover aspect-[1/1] md:aspect-[16/9] m-0"> 527 <source media="(max-width: 640px)" srcset="https://placehold.co/640x640?text=Mobile_640x640"> 528 <source media="(min-width: 641px)" srcset="https://placehold.co/960x540?text=Desktop_960x540px"> 529 <img src="https://placehold.co/960x540?text=Desktop_960x540px" 530 alt="Descriptive text of the image" class="skeleton"> 531 </picture> 532 </div> 533 </div> 534 <div class="ml-2 lg:ml-0 lg:mt-2"> 535 <div class="mb-2 flex items-center" data-test="teaser-labels">
536 <span class="text-overline inline-block uppercase line-clamp-1">Thema</span> 537 </div> 538 <strong class="outline-none text-subtitle1 md:text-title5 lg:text-title5"> 539 Curabitur auctor, tellus in congue vestibulum, lacus lacus. 540 </strong> 541 <a href 542 target="_self" 543 title="" 544 class="font-bold border-brand-primary-500 block transition leading-[41px] text-brand-primary-500 flex items-center no-underline" 545 data-track-v2-parentlabel="OS - Inhalt" 546 data-track-v2-parent="Landingpage Element - Header - 4 Text-Bild-Elemente" 547 data-track-v2-elementposition="4" 548 data-track-v2-elementtype="Button" 549 data-track-v2-vendor="Internal" 550 data-track-v2-link="" 551 data-track-v2-linktype="External" 552 data-track-v2-linkgenre="" 553 data-track-v2-clickaction=""> 554 <span class="py-2 pr-1"> 555 Button 556 </span> 557 <iconify-icon icon="material-symbols:chevron-right" class="text-2xl" aria-hidden="true"></iconify-icon> 558 </a> 559 </div> 560 </li> 561 </ul> 562 </section> 563 `,media:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><rect width="340" height="180.5" x="30" y="81.79" fill="#d3d3d3" rx="8.73" ry="8.73"/><circle cx="302.06" cy="121.68" r="13.94" fill="#b2b2b2"/><path fill="#b2b2b2" fill-rule="evenodd" d="M370 223.53v30.02c0 4.82-3.91 8.73-8.73 8.73H38.73c-4.82 0-8.73-3.91-8.73-8.73v-30.01l91.96-66.35c11.25-8.12 29.49-8.12 40.75 0l99.19 71.55c.23.18.47.35.72.52 5.82 3.92 14.94 3.68 20.37-.52s5.11-10.78-.72-14.7l-18.64-13.45 16.91-12.2c11.26-8.11 29.5-8.11 40.75 0L370 223.53Z"/><rect width="216" height="152.17" x="92" y="196" fill="#efefef" rx="9.4" ry="9.4"/><g fill="#b2b2b2"><rect width="82" height="6.3" x="159" y="318.5" rx="3" ry="3"/><rect width="53.4" height="6.3" x="173.3" y="331.6" rx="3" ry="3"/><rect width="44.3" height="10.5" x="177.8" y="213.9" rx="4.9" ry="4.9"/><rect width="112" height="6.3" x="144" y="241" rx="3" ry="3"/><rect width="102" height="6.3" x="149" y="254.2" rx="3" ry="3"/><path d="M259.7 282c2.4 0 4.3 1.9 4.3 4.3v1c0 2.4-1.9 4.3-4.3 4.3H140.3c-2.4 0-4.3-1.9-4.3-4.3v-1c0-2.4 1.9-4.3 4.3-4.3h119.4m0-5H140.3c-5.1 0-9.3 4.2-9.3 9.3v1c0 5.1 4.2 9.3 9.3 9.3h119.4c5.1 0 9.3-4.2 9.3-9.3v-1c0-5.1-4.2-9.3-9.3-9.3Z"/></g></svg>'};a.TraitManager.addType("datetime-picker",{createInput({trait:s}){const c=document.createElement("div");c.style.cssText="display:flex;flex-direction:column;gap:4px;";const d=document.createElement("input");d.type="datetime-local",d.style.cssText="width:100%;padding:4px 6px;border:1px solid #ccc;border-radius:4px;font-size:13px;";const f=s.get("value")||s.get("default")||"";f&&(d.value=f.slice(0,16));const g=document.createElement("span");return g.style.cssText="color:#c0392b;font-size:11px;display:none;",g.textContent="Ungültiges Datum â bitte ein gültiges Datum wählen.",c.appendChild(d),c.appendChild(g),c},onEvent({elInput:s,component:c,trait:d}){const f=s.querySelector('input[type="datetime-local"]'),g=s.querySelector("span");if(!f)return;const m=f.value;if(!m){g.style.display="none";return}const y=new Date(m);if(isNaN(y.getTime())){g.style.display="";return}g.style.display="none";const x=m+":00";c.addAttributes({[d.get("name")]:x})},onUpdate({elInput:s,component:c,trait:d}){const f=s.querySelector('input[type="datetime-local"]');if(!f)return;const g=c.getAttributes()[d.get("name")]||d.get("default")||"";f.value=g.slice(0,16)}}),a.DomComponents.addType("hero-fullwidth-wrap",{model:{defaults:{tagName:"section",droppable:!1,copyable:!1,traits:[]},init(){this.on("change:attributes",()=>this._syncCampaignBadge()),setTimeout(()=>{this._buildCampaignTraits(),this._syncCampaignBadge()},0)},_buildCampaignTraits(){const s={id:"campaign",label:"Kampagnen-Status",open:!0};this.set("traits",[{type:"checkbox",label:"Status-Element anzeigen",name:"data-hero-campaign-show",valueTrue:"1",valueFalse:"0",category:s},{type:"datetime-picker",label:"Startdatum",name:"data-hero-campaign-start",default:"2026-06-01T00:00:00",category:s},{type:"datetime-picker",label:"Enddatum",name:"data-hero-campaign-end",default:"2026-08-31T23:59:59",category:s},{type:"text",label:"Präfix-Text",name:"data-hero-campaign-prefix",placeholder:"z. B. Nur noch kurze Zeit:",category:s},{type:"text",label:"Text nach Ablauf",name:"data-hero-campaign-expired-text",placeholder:"Leer lassen = Element wird ausgeblendet",category:s}])},_syncCampaignBadge(){var s,c;try{const d=this.getAttributes(),f=d["data-hero-campaign-show"]==="1",g=(s=this.find('[data-hero-campaign="badge"]'))==null?void 0:s[0];if(!g)return;const m=g.getStyle()||{};g.setStyle({...m,display:f?"":"none"});const y=d["data-hero-campaign-prefix"]||"",x=(c=g.find('[data-hero-campaign="prefix"]'))==null?void 0:c[0];x&&y&&x.components(y)}catch{}}}}),a.DomComponents.addType("hero-fullwidth-content",{model:{defaults:{tagName:"div",draggable:!1,droppable:!0,copyable:!1,removable:!1,selectable:!0,attributes:{"data-hero-fullwidth":"content",class:"hero-fullwidth-content relative z-10 px-6 md:px-12 lg:px-16 max-w-screen-xl mx-auto my-12 md:my-16 w-full"}}}}),a.DomComponents.addType("hero-fullwidth-bg",{model:{defaults:{tagName:"picture",draggable:!1,droppable:!1,copyable:!1,removable:!0,selectable:!0,attributes:{"data-hero-fullwidth":"bg",class:"hero-fullwidth-bg absolute inset-0 w-full h-full z-0 block"}}}});const o={id:"heroFullWidth",label:"Hero - Volle Breite",category:{id:"header",label:"Header"},attributes:{"data-os-group":"Landingpage Elemente","data-os-page-type":"aboshop"},content:` 564 <section 565 data-gjs-type="hero-fullwidth-wrap" 566 data-component-id="36" 567 data-component-version="1.1.0" 568 data-component-name="Landingpage Elemente - Header - Hero Volle Breite" 569 data-gjs-draggable="true" 570 data-gjs-droppable="false" 571 data-gjs-copyable="false" 572 data-hero-campaign-show="0" 573 data-hero-campaign-start="2026-06-01T00:00:00" 574 data-hero-campaign-end="2026-08-31T23:59:59" 575 data-hero-campaign-prefix="Nur noch kurze Zeit:" 576 data-hero-campaign-expired-text="" 577 aria-label="Hero" 578 class="hero-fullwidth relative w-screen left-1/2 -translate-x-1/2 flex items-center overflow-hidden bg-surface-900 min-h-[100vh] pt-16 pb-10 md:pt-30 md:pb-16"> 579 580 <picture 581 data-gjs-type="hero-fullwidth-bg" 582 data-hero-fullwidth="bg" 583 class="hero-fullwidth-bg absolute inset-0 w-full h-full z-0 block"> 584 <source media="(max-width: 767px)" srcset="https://placehold.co/768x1024?text=Mobile_768x1024px"> 585 <source media="(min-width: 768px)" srcset="https://placehold.co/1920x900?text=Desktop_1920x900px"> 586 <img src="https://placehold.co/1920x900?text=Desktop_1920x900px" 587 alt="" 588 role="presentation" 589 class="w-full h-full object-cover" 590 data-gjs-draggable="false" 591 data-gjs-copyable="false" 592 data-gjs-removable="false" 593 data-gjs-selectable="false"> 594 </picture> 595 596 <div class="hero-fullwidth-overlay absolute inset-0 z-0 bg-gradient-to-t md:bg-gradient-to-r from-black/80 via-black/40 to-black/10 pointer-events-none gjs-no-pointer" aria-hidden="true" 597 data-gjs-draggable="false" 598 data-gjs-droppable="false" 599 data-gjs-copyable="false" 600 data-gjs-removable="false" 601 data-gjs-selectable="false"></div> 602 603 <div data-gjs-type="hero-container" class="mx-auto relative z-10 w-full px-12 lg:px-16 lg:px-6"> 604 <div data-gjs-type="hero-fullwidth-content" 605 data-hero-fullwidth="content" 606 class="hero-fullwidth-content w-full max-w-4xl animate-slide-up"> 607 608 <!-- Kampagnen-Status-Badge (wird per Trait gesteuert) --> 609 <div data-hero-campaign="badge" 610 style="display:none" 611 data-gjs-draggable="false" 612 data-gjs-droppable="false" 613 data-gjs-copyable="false" 614 data-gjs-removable="false" 615 data-gjs-selectable="false" 616 data-gjs-editable="false" 617 data-gjs-hoverable="false" 618 class="inline-flex flex-col sm:flex-row sm:items-center gap-2 sm:gap-3 px-4 sm:px-5 py-2 sm:py-3 rounded-md bg-white/50 backdrop-blur-sm border border-white/20 mb-6 sm:mb-8 shadow-lg"> 619 <div class="flex items-center gap-2 text-brand-primary-500 font-bold text-sm sm:text-base" 620 data-gjs-selectable="false" data-gjs-editable="false" data-gjs-hoverable="false">
621 <span class="relative flex h-2 sm:h-3 w-2 sm:w-3" aria-hidden="true" 622 data-gjs-selectable="false" data-gjs-hoverable="false"> 623 <span class="animate-ping absolute inline-flex h-full w-full rounded-full bg-brand-primary-500 opacity-75" 624 data-gjs-selectable="false" data-gjs-hoverable="false"></span> 625 <span class="relative inline-flex rounded-full h-2 sm:h-3 w-2 sm:w-3 bg-brand-primary-500" 626 data-gjs-selectable="false" data-gjs-hoverable="false"></span> 627 </span> 628 <span data-hero-campaign="prefix" 629 data-gjs-selectable="false" data-gjs-editable="false" data-gjs-hoverable="false">Nur noch kurze Zeit:</span> 630 </div> 631 <div data-hero-campaign="countdown" 632 class="font-mono text-white font-bold tracking-widest text-base" 633 aria-hidden="true" 634 data-gjs-selectable="false" data-gjs-editable="false" data-gjs-hoverable="false">Lade Zeit...</div> 635 <span data-hero-campaign="countdown-sr" 636 class="sr-only" aria-live="polite" aria-atomic="true" role="timer" 637 data-gjs-selectable="false" data-gjs-hoverable="false">Aktion läuft</span> 638 </div> 639 640 <h1 class="text-title1 md:text-[3.5rem] lg:text-[4.5rem] leading-[1.1] font-black text-white mb-4 md:mb-6 text-shadow-md"> 641 Ãberschrift â Ihre Aktion startet hier 642 </h1> 643 644 <p class="text-white text-lg sm:text-xl md:text-2xl font-bold leading-relaxed mb-8 opacity-90 text-shadow-md max-w-[80ch]"> 645 Kurzer, prägnanter Text, der die Aktion beschreibt und Lust auf mehr macht. Passen Sie diesen Text an Ihre Kampagne an. 646 </p> 647 648 <div class="mb-10"> 649 <a href="" 650 target="_self" 651 title="" 652 class="group flex flex-row items-center w-full sm:w-fit max-w-full transition-transform duration-150 active:scale-95 text-sm sm:text-base md:text-lg font-bold no-underline" 653 data-track-v2-parentposition="Content" 654 data-track-v2-parent="Landingpage Elemente - Header - Hero Volle Breite" 655 data-track-v2-parentlabel="OS - Inhalt" 656 data-track-v2-elementposition="1" 657 data-track-v2-elementtype="Button" 658 data-track-v2-vendor="Internal" 659 data-track-v2-link="" 660 data-track-v2-linktype="External" 661 data-track-v2-linkgenre="" 662 data-track-v2-clickaction=""> 663 664 <!-- Primärer Button-Teil --> 665 <span class="relative z-10 flex items-center justify-center text-center px-5 sm:px-8 md:px-10 py-3 sm:py-3.5 md:py-4 rounded-full transition-colors duration-150 whitespace-nowrap 666 border-2 border-brand-primary-500 667 bg-brand-primary-500 668 text-brand-contrast 669 670 group-hover:bg-brand-primary-700 group-hover:border-brand-primary-700 671 672 group-focus:bg-brand-primary-700 group-focus:border-brand-primary-700 673 674 group-active:bg-brand-primary-300 group-active:border-brand-primary-300"> 675 Jetzt abonnieren 676 </span> 677 678 <!-- Störer â Border zieht mit Button-bg mit -->
679 <span class="relative z-0 flex items-center justify-center text-center py-3 sm:py-3.5 md:py-4 pl-12 sm:pl-16 md:pl-20 pr-5 sm:pr-8 md:pr-10 -ml-8 sm:-ml-10 md:-ml-12 rounded-tr-full rounded-br-full uppercase tracking-wide whitespace-nowrap transition-colors duration-150 680 bg-white 681 border-2 border-brand-primary-500 682 text-brand-primary-500 683 group-hover:border-brand-primary-700 684 group-focus:border-brand-primary-700 685 group-active:border-brand-primary-300"> 686 1. Monat GRATIS 687 </span> 688 </a> 689 </div> 690 691 <ul class="mt-6 flex flex-col sm:flex-row flex-wrap gap-3 sm:gap-6 text-white text-sm text-shadow-md"> 692 <li class="flex items-center gap-1.5"><iconify-icon icon="material-symbols:check-circle-outline" class="text-success text-2xl flex-shrink-0" aria-hidden="true"></iconify-icon><span class="leading-none">USP-Platzhalter 1</span></li> 693 <li class="flex items-center gap-1.5"><iconify-icon icon="material-symbols:check-circle-outline" class="text-success text-2xl flex-shrink-0" aria-hidden="true"></iconify-icon><span class="leading-none">USP-Platzhalter 2</span></li> 694 <li class="flex items-center gap-1.5"><iconify-icon icon="material-symbols:check-circle-outline" class="text-success text-2xl flex-shrink-0" aria-hidden="true"></iconify-icon><span class="leading-none">USP-Platzhalter 3</span></li> 695 </ul> 696 </div> 697 </div> 698 699 <a href="#" 700 class="absolute bottom-6 left-1/2 -translate-x-1/2 z-10 text-white/70 hover:text-white transition-colors duration-300 animate-bounce-slow p-4 no-underline" 701 aria-label="Nach unten scrollen" 702 data-gjs-draggable="false" 703 data-gjs-copyable="false" 704 data-gjs-removable="false"> 705 <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" class="text-white"> 706 <polyline points="6 9 12 15 18 9"></polyline> 707 </svg> 708 </a> 709 </section> 710 `,media:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><rect width="360" height="240" x="20" y="80" fill="#d3d3d3" rx="8.7" ry="8.7"/><rect width="200" height="14" x="50" y="150" fill="#efefef" rx="3" ry="3"/><rect width="260" height="8" x="50" y="180" fill="#efefef" rx="3" ry="3"/><rect width="220" height="8" x="50" y="196" fill="#efefef" rx="3" ry="3"/><rect width="90" height="24" x="50" y="220" fill="#b2b2b2" rx="3" ry="3"/><rect width="90" height="24" x="150" y="220" fill="#efefef" rx="3" ry="3"/><rect width="60" height="6" x="50" y="260" fill="#efefef" rx="3" ry="3"/><rect width="60" height="6" x="120" y="260" fill="#efefef" rx="3" ry="3"/><rect width="60" height="6" x="190" y="260" fill="#efefef" rx="3" ry="3"/></svg>'};a.BlockManager.add("headerOneProduct",r),a.BlockManager.add("headerTwoProducts",t),a.BlockManager.add("headerThreeProducts",e),a.BlockManager.add("heroTextbox",n),a.BlockManager.add("heroFourBlocks",i),a.BlockManager.add("heroFullWidth",o)}/** 711 * @license lucide-vue-next v0.468.0 - ISC 712 * 713 * This source code is licensed under the ISC license. 714 * See the LICENSE file in the root directory of this source tree. 715 */const p5=xp("ArrowDownAZIcon",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M20 8h-5",key:"1vsyxs"}],["path",{d:"M15 10V6.5a2.5 2.5 0 0 1 5 0V10",key:"ag13bf"}],["path",{d:"M15 14h5l-5 6h5",key:"ur5jdg"}]]);/** 716 * @license lucide-vue-next v0.468.0 - ISC 717 * 718 * This source code is licensed under the ISC license. 719 * See the LICENSE file in the root directory of this source tree. 720 */const h5=xp("ArrowDownZAIcon",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}
720],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M15 4h5l-5 6h5",key:"8asdl1"}],["path",{d:"M15 20v-3.5a2.5 2.5 0 0 1 5 0V20",key:"r6l5cz"}],["path",{d:"M20 18h-5",key:"18j1r2"}]]);/** 721 * @license lucide-vue-next v0.468.0 - ISC 722 * 723 * This source code is licensed under the ISC license. 724 * See the LICENSE file in the root directory of this source tree. 725 */const ic=xp("MonitorIcon",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/** 726 * @license lucide-vue-next v0.468.0 - ISC 727 * 728 * This source code is licensed under the ISC license. 729 * See the LICENSE file in the root directory of this source tree. 730 */const Xd=xp("SmartphoneIcon",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);function g5(a,r=!1){const t=He(a),e=He([]),n=He("blocks"),i=Qi(()=>{var m,y,x;const f={},g=r?"aboshop":"cue";for(const w of e.value){const k=((m=w.attrs)==null?void 0:m["data-os-page-type"])||"cue";if(k!=="both"&&k!==g)continue;const S=((y=w.attrs)==null?void 0:y["data-os-group"])||"Sonstige",A=((x=w.category)==null?void 0:x.label)||"Ohne Kategorie";f[S]||(f[S]={}),f[S][A]||(f[S][A]=[]),f[S][A].push(w)}return f});function o(){if(!t.value)return;const f=t.value.BlockManager;e.value=f.getAll().map(g=>{const m=g.get("category");let y="unknown",x="Ohne Kategorie";return typeof m=="string"?(y=m,x=m):m!=null&&m.get?(y=m.get("id")||m.get("label")||"unknown",x=m.get("label")||m.get("id")||"Ohne Kategorie"):m&&typeof m=="object"&&(y=m.id||m.label||"unknown",x=m.label||m.id||"Ohne Kategorie"),{id:g.get("id"),label:g.get("label"),media:g.get("media"),category:{id:y,label:x},attrs:g.get("attributes")||{}}})}function s(f,g){if(!t.value)return;const m=t.value.BlockManager,y=m.get(f);if(!y)return;g.dataTransfer&&(g.dataTransfer.effectAllowed="copy",g.dataTransfer.setData("text/plain",y.get("label")||"")),m.startDrag(y,g);const x=()=>
730{m.endDrag()};g.target&&"addEventListener"in g.target&&g.target.addEventListener("dragend",x,{once:!0})}function c(){if(!t.value)return;const f=t.value;function g(x){const w=f.Panels;["show-blocks","show-traits","show-style","show-styles","show-layers","show-settings"].forEach(S=>{const A=w.getButton("panel-switcher",S);A&&A.set("active",S===x)})}f.on("run:show-blocks",()=>{n.value="blocks",g("show-blocks")}),f.on("run:show-traits",()=>{n.value="traits",g("show-traits")}),f.on("run:show-style",()=>{n.value="styles",g("show-style")}),f.on("run:show-layers",()=>{n.value="layers",g("show-layers")}),f.on("run:show-settings",()=>{n.value="settings",g("show-settings")}),f.on("component:selected",()=>{n.value="traits";try{f.runCommand("show-traits")}catch{}g("show-traits")});const m=f.Panels;Object.entries({"show-blocks":"blocks","show-traits":"traits","show-style":"styles","show-layers":"layers","show-settings":"settings"}).forEach(([x,w])=>{const k=m.getButton("panel-switcher",x);k==null||k.on("change:active",(S,A)=>{A&&(n.value=w)})})}function d(){t.value&&(o(),c(),t.value.on("block:add block:remove",o))}return{editor:t,blocks:e,hierarchy:i,rightPanel:n,refreshBlocks:o,startDrag:s,initAfterLoad:d}}const v5={class:"os-blocks-accordion"},m5={open:""},y5={class:"os-level1 mb-2 text-sm !font-normal"},b5={class:"os-summary-wrap"},x5={class:"os-summary-text"},w5={class:"os-level1-panel mb-1"},_5={class:"os-level2 ms-3 text-sm !font-normal mb-1"},C5={class:"os-summary-wrap"},k5={class:"os-summary-text"},S5={class:"os-level2-panel ms-3 mb-4"},T5=["onDragstart"],O5=["innerHTML"],E5={class:"os-label text-sm"},A5=bp({__name:"BlocksAccordion",props:{hierarchy:{},visible:{type:Boolean}},emits:["dragStart"],setup(a,{emit:r}){const t=a,e=r,n=Qi(()=>Object.keys(t.hierarchy||{}).length>0);return(i,o)=>to((_e(),Ne("div",v5,[(_e(!0),Ne(na,null,ao(a.hierarchy,(s,c)=>(_e(),Ne("div",{key:c,class:"os-group text-left mb-2"},[Ht("details",m5,[Ht("summary",y5,[Ht("span",b5,[o[0]||(o[0]=Ht("svg",{class:"os-caret",viewBox:"0 0 20 20","aria-hidden":"true"},[Ht("path",{d:"M7 5l6 5-6 5",fill:"currentColor"})],-1)),Ht("span",x5,hn(c),1)])]),Ht("div",w5,[(_e(!0),Ne(na,null,ao(s,(d,f)=>(_e(),Ne("details",{key:f,open:"",class:"os-subcat"},[Ht("summary",_5,[Ht("span",C5,[o[1]||(o[1]=Ht("svg",{class:"os-caret",viewBox:"0 0 20 20","aria-hidden":"true"},[Ht("path",{d:"M7 5l6 5-6 5",fill:"currentColor"})],-1)),Ht("span",k5,hn(f),1)])]),Ht("div",S5,[(_e(!0),Ne(na,null,ao(d,g=>(_e(),Ne("div",{class:"os-block-item gap-3 flex items-center",key:g.id,draggable:"true",onDragstart:m=>e("dragStart",g.id,m)},[Ht("div",{class:"os-thumb w-full max-w-12",innerHTML:g.media},null,8,O5),Ht("div",E5,hn(g.label),1)],40,T5))),128))])]))),128))])])]))),128))],512)),[[Uo,a.visible&&n.value]])}}),M5=X2(A5,[["__scopeId","data-v-8555e89d"]]),P5=500,L5=350,D5=1e4;function I5(a,{loaderStartedAt:r,minimumVisibleMs:t=P5,quietPeriodMs:e=L5,timeoutMs:n=D5,signal:i}){const o=a.Canvas.getFrameEl(),s=o==null?void 0:o.contentWindow,c=o==null?void 0:o.contentDocument;return!s||!c?Promise.resolve("unavailable"):new Promise(d=>{const f=new WeakSet,g=[],m=[],y=performance.now();let x=y,w=0,k=!1,S=null;const A=()=>{x=performance.now()},L=()=>{S!==null&&clearTimeout(S),m.forEach(_=>_.disconnect()),g.forEach(_=>_())},D=_=>{k||(k=!0,L(),d(_))},W=_=>{w+=1;let Q=!1;_(()=>{Q||k||(Q=!0,w-=1,A())})},j=_=>{f.has(_)||_.disabled||_.sheet||(f.add(_),W(Q=>{const J=()=>{_.removeEventListener("load",J),_.removeEventListener("error",J),Q()};_.addEventListener("load",J,{once:!0}),_.addEventListener("error",J,{once:!0}),g.push(()=>{_.removeEventListener("load",J),_.removeEventListener("error",J)})}))},et=_=>{if(_.loading!=="lazy")return!0;const Q=_.getBoundingClientRect();return Q.bottom>=-s.innerHeight&&Q.top<=s.innerHeight*2},z=_=>{f.has(_)||!et(_)||(f.add(_),W(Q=>{const J=()=>{if(_.removeEventListener("load",J),_.removeEventListener("error",Q),_.naturalWidth===0){Q();return}_.decode().catch(()=>{}).finally(Q)};if(_.complete){J();return}_.addEventListener("load",J,{once:!0}),_.addEventListener("error",Q,{once:!0}),g.push(()=>{_.removeEventListener("load",J),_.removeEventListener("error",Q)})}))},B=_=>{const Q=_.nodeType===1?_:null;Q!=null&&Q.matches('link[rel="stylesheet"]')&&j(Q),Q!=null&&Q.matches("img")&&z(Q),_.querySelectorAll('link[rel="stylesheet"]').forEach(j),_.querySelectorAll("img").forEach(z)},X=new MutationObserver(_=>{A(),_.forEach(Q=>
730{Q.addedNodes.forEach(J=>{J.nodeType===1&&B(J)})})});if(X.observe(c.documentElement,{childList:!0,subtree:!0}),m.push(X),c.body&&typeof ResizeObserver<"u"){const _=new ResizeObserver(()=>{A(),c.querySelectorAll("img").forEach(z)});_.observe(c.body),_.observe(c.documentElement),m.push(_)}const Z=c.fonts,F=()=>A();Z==null||Z.ready.then(F),Z==null||Z.addEventListener("loading",F),Z==null||Z.addEventListener("loadingdone",F),Z==null||Z.addEventListener("loadingerror",F),g.push(()=>{Z==null||Z.removeEventListener("loading",F),Z==null||Z.removeEventListener("loadingdone",F),Z==null||Z.removeEventListener("loadingerror",F)});const st=()=>A();s.addEventListener("load",st,{once:!0}),g.push(()=>s.removeEventListener("load",st));const q=()=>D("aborted");i==null||i.addEventListener("abort",q,{once:!0}),g.push(()=>i==null?void 0:i.removeEventListener("abort",q)),B(c);const Ct=()=>{if(i!=null&&i.aborted){D("aborted");return}const _=performance.now();if(_-y>=n){D("timeout");return}const Q=_-r>=t,J=c.readyState==="complete",gt=!Z||Z.status!=="loading",St=_-x>=e;if(Q&&J&>&&w===0&&St){s.requestAnimationFrame(()=>{s.requestAnimationFrame(()=>{performance.now()-x>=e?D("ready"):S=setTimeout(Ct,50)})});return}S=setTimeout(Ct,50)};Ct()})}var j5={729:((a,r,t)=>{var e,n,i;/*! 731* Backbone.Undo.js v0.2 732* 733* Copyright (c)2013 Oliver Sartun 734* Released under the MIT License 735* 736* Documentation and full license available at 737* https://github.com/osartun/Backbone.Undo.js 738*/(function(o){n=[t(39),t(193)],e=o,i=typeof e=="function"?e.apply(r,n):e,i!==void 0&&(a.exports=i)})(function(o,s){var c=Array.prototype.slice;function d(B,X,Z){return Z.length<=4?B.call(X,Z[0],Z[1],Z[2],Z[3]):B.apply(X,Z)}function f(B,X){return c.call(B,X)}function g(B,X){return B==null?!1:(o.isArray(X)||(X=f(arguments,1)),o.all(X,function(Z){return Z in B}))}var m=(function(){var B=!1,X=-1;function Z(){X++,B=!0,o.defer(function(){B=!1})}return function(){return B||Z(),X}})();function y(){this.registeredObjects=[],this.cidIndexes=[]}y.prototype={isRegistered:function(B){return B&&B.cid?this.registeredObjects[B.cid]:o.contains(this.registeredObjects,B)},register:function(B){return this.isRegistered(B)?!1:(B&&B.cid?(this.registeredObjects[B.cid]=B,this.cidIndexes.push(B.cid)):this.registeredObjects.push(B),!0)},unregister:function(B){if(this.isRegistered(B)){if(B&&B.cid)delete this.registeredObjects[B.cid],this.cidIndexes.splice(o.indexOf(this.cidIndexes,B.cid),1);else{var X=o.indexOf(this.registeredObjects,B);this.registeredObjects.splice(X,1)}return!0}return!1},get:function(){return o.map(this.cidIndexes,function(B){return this.registeredObjects[B]},this).concat(this.registeredObjects)}};function x(B,X,Z,F){for(var st=0,q=X.length,Ct;st<q;st++)if(Ct=X[st],!!Ct){if(B==="on"){if(!F.objectRegistry.register(Ct))continue}else if(!F.objectRegistry.unregister(Ct))continue;o.isFunction(Ct[B])&&Ct[B]("all",Z,F)}}function w(B,X){var Z=X.type,F=X.undoTypes,st=!F[Z]||F[Z][B];o.isFunction(st)&&st(X.object,X.before,X.after,X.options)}function k(B,X,Z,F,st){if(!(Z.isCurrentlyUndoRedoing||B==="undo"&&Z.pointer===-1||B==="redo"&&Z.pointer===Z.length-1)){Z.isCurrentlyUndoRedoing=!0;var q,Ct,_=B==="undo";for(st?Ct=_&&Z.pointer===Z.length-1||!_&&Z.pointer===-1?o.clone(Z.models):c.apply(Z.models,_?[0,Z.pointer]:[Z.pointer,Z.length-1]):(q=Z.at(_?Z.pointer:Z.pointer+1),Ct=F?Z.where({magicFusionIndex:q.get("magicFusionIndex")}):[q]),Z.pointer+=(_?-1:1)*Ct.length;q=_?Ct.pop():Ct.shift();)q[B]();Z.isCurrentlyUndoRedoing=!1,X.trigger(B,X)}}function S(B,X){var Z=B.condition,F=typeof Z;return F==="function"?!!d(Z,B,X):F==="boolean"?Z:!0}function A(B,X,Z,F){if(B.track&&!B.isCurrentlyUndoRedoing&&X in F&&S(F[X],Z)){var st=d(F[X].on,F[X],Z),q;if(g(st,"object","before","after")){if(st.type=X,st.magicFusionIndex=m(),st.undoTypes=F,B.pointer<B.length-1)for(var q=B.length-B.pointer-1;q--;)B.pop();B.pointer=B.length,B.add(st),B.length>B.maximumStackLength&&(B.shift(),B.pointer--)}}}var L={add:{undo:function(B,X,Z,F){B.remove(Z,F)},redo:function(B,X,Z,F){F.index&&(F.at=F.index),B.add(Z,F)},on:function(B,X,Z){return{object:X,before:void 0,after:B,options:o.clone(Z)}}},remove:{undo:function(B,X,Z,F){"index"in F&&(F.at=F.index),B.add(X,F)},redo:function(B,X,Z,F){B.remove(X,F)},on:function(B,X,Z){return{object:X,before:B,after:void 0,options:o.clone(Z)}}},change:{undo:function(B,X,Z,F){o.isEmpty(X)?o.each(o.keys(Z),B.unset,B):(B.set(X),F&&F.unsetData&&F.unsetData.before&&F.unsetData.before.length&&o.each(F.unsetData.before,B.unset,B))},redo:function(B,X,Z,F){o.isEmpty(Z)?o.each(o.keys(X),B.unset,B):(B.set(Z),F&&F.unsetData&&F.unsetData.after&&F.unsetData.after.length&&o.each(F.unsetData.after,B.unset,B))},on:function(B,X){var Z=B.changedAttributes(),F=o.keys(Z),st=o.pick(B.previousAttributes(),F),q=o.keys(st),Ct=(X||(X={})).unsetData={after:[],before:[]};return F.length!=q.length&&(F.length>q.length?o.each(F,function(_){_ in st||Ct.before.push(_)},this):o.each(q,function(_){_ in Z||Ct.after.push(_)})),{object:B,before:st,after:Z,options:o.clone(X)}}},reset:{undo:function(B,X,Z){B.reset(X)},redo:function(B,X,Z){B.reset(Z)},on:function(B,X){return{object:B,before:X.previousModels,after:o.clone(B.models)}}}};function D(){}D.prototype=L;function W(B,X,Z,F){if(typeof X=="object")return o.each(X,function(st,q){B===2?W(B,st,Z,F):W(B,q,st,Z)});switch(B){case 0:g(Z,"undo","redo","on")&&o.all(o.pick(Z,"undo","redo","on"),o.isFunction)&&(F[X]=Z);break;case 1:F[X]&&o.isObject(Z)&&(F[X]=o.extend({},F[X],Z));break;case 2:delete F[X];break}return this}var j=s.Model.extend({defaults:{type:null,object:null,before:null,after:null,magicFusionIndex:null},undo:function(B){w("undo",this.attributes)},redo:function(B){w("redo",this.attributes)}}),et=s.Collection.extend({model:j,pointer:-1,track:!1,isCurrentlyUndoRedoing:!1,maximumStackLength:1/0,setMaxLength:function(B){this.maximumStackLength=B}}),z=s.Model.extend({defaults:{maximumStackLength:1/0,track:!1},initialize:function(B){this.stack=new et,this.objectRegistry=new y,this.undoTypes=new D,this.stack.setMaxLength(this.get("maximumStackLength")),this.on("change:maximumStackLength",function(X,Z){this.stack.setMaxLength(Z)},this),B&&B.track&&this.startTracking(),B&&B.register&&(o.isArray(B.register)||o.isArguments(B.register)?d(this.register,this,B.register):this.register(B.register))},startTracking:function(){this.set("track",!0),this.stack.track=!0},stopTracking:function(){this.set("track",!1),this.stack.track=!1},isTracking:function(){return this.get("track")}
vendor: 5,931 bytes, line 738
738,_addToStack:function(B){A(this.stack,B,f(arguments,1),this.undoTypes)},register:function(){x("on",arguments,this._addToStack,this)},unregister:function(){x("off",arguments,this._addToStack,this)},unregisterAll:function(){d(this.unregister,this,this.objectRegistry.get())},undo:function(B){k("undo",this,this.stack,B)},undoAll:function(){k("undo",this,this.stack,!1,!0)},redo:function(B){k("redo",this,this.stack,B)},redoAll:function(){k("redo",this,this.stack,!1,!0)},isAvailable:function(B){var X=this.stack,Z=X.length;switch(B){case"undo":return Z>0&&X.pointer>-1;case"redo":return Z>0&&X.pointer<Z-1;default:return!1}},merge:function(B){for(var X=o.isArray(B)?B:f(arguments),Z;Z=X.pop();)Z instanceof z&&Z.stack instanceof et&&(Z.stack=this.stack)},addUndoType:function(B,X){W(0,B,X,this.undoTypes)},changeUndoType:function(B,X){W(1,B,X,this.undoTypes)},removeUndoType:function(B){W(2,B,void 0,this.undoTypes)},clear:function(){this.stack.reset(),this.stack.pointer=-1}});return o.extend(z,{defaults:function(B){o.extend(z.prototype.defaults,B)},addUndoType:function(B,X){W(0,B,X,L)},changeUndoType:function(B,X){W(1,B,X,L)},removeUndoType:function(B){W(2,B,void 0,L)}}),s.UndoManager=z})}),193:((a,r,t)=>{var e,n;(function(i){var o=typeof self=="object"&&self.self===self&&self||typeof t.g=="object"&&t.g.global===t.g&&t.g;e=[t(39),t(774),r],n=(function(s,c,d){o.Backbone=i(o,d,s,c)}).apply(r,e),n!==void 0&&(a.exports=n)})(function(i,o,s,c){var d=i.Backbone,f=Array.prototype.slice;o.VERSION="1.4.1",o.$=c,o.noConflict=function(){return i.Backbone=d,this},o.emulateHTTP=!1,o.emulateJSON=!1;var g=o.Events={},m=/\s+/,y,x=function(P,H,Y,ct,_t){var K=0,yt;if(Y&&typeof Y=="object")for(ct!==void 0&&("context"in _t)&&_t.context===void 0&&(_t.context=ct),yt=s.keys(Y);K<yt.length;K++)H=x(P,H,yt[K],Y[yt[K]],_t);else if(Y&&m.test(Y))for(yt=Y.split(m);K<yt.length;K++)H=P(H,yt[K],ct,_t);else H=P(H,Y,ct,_t);return H};g.on=function(P,H,Y){if(this._events=x(w,this._events||{},P,H,{context:Y,ctx:this,listening:y}),y){var ct=this._listeners||(this._listeners={});ct[y.id]=y,y.interop=!1}return this},g.listenTo=function(P,H,Y){if(!P)return this;var ct=P._listenId||(P._listenId=s.uniqueId("l")),_t=this._listeningTo||(this._listeningTo={}),K=y=_t[ct];K||(this._listenId||(this._listenId=s.uniqueId("l")),K=y=_t[ct]=new W(this,P));var yt=k(P,H,Y,this);if(y=void 0,yt)throw yt;return K.interop&&K.on(H,Y),this};var w=function(P,H,Y,ct){if(Y){var _t=P[H]||(P[H]=[]),K=ct.context,yt=ct.ctx,ut=ct.listening;ut&&ut.count++,_t.push({callback:Y,context:K,ctx:K||yt,listening:ut})}return P},k=function(P,H,Y,ct){try{P.on(H,Y,ct)}catch(_t){return _t}};g.off=function(P,H,Y){return this._events?(this._events=x(S,this._events,P,H,{context:Y,listeners:this._listeners}),this):this},g.stopListening=function(P,H,Y){var ct=this._listeningTo;if(!ct)return this;for(var _t=P?[P._listenId]:s.keys(ct),K=0;K<_t.length;K++){var yt=ct[_t[K]];if(!yt)break;yt.obj.off(H,Y,this),yt.interop&&yt.off(H,Y)}return s.isEmpty(ct)&&(this._listeningTo=void 0),this};var S=function(P,H,Y,ct){if(P){var _t=ct.context,K=ct.listeners,yt=0,ut;if(!H&&!_t&&!Y){for(ut=s.keys(K);yt<ut.length;yt++)K[ut[yt]].cleanup();return}for(ut=H?[H]:s.keys(P);yt<ut.length;yt++){H=ut[yt];var de=P[H];if(!de)break;for(var Ae=[],Te=0;Te<de.length;Te++){var Re=de[Te];if(Y&&Y!==Re.callback&&Y!==Re.callback._callback||_t&&_t!==Re.context)Ae.push(Re);else{var U=Re.listening;U&&U.off(H,Y)}}Ae.length?P[H]=Ae:delete P[H]}return P}};g.once=function(P,H,Y){var ct=x(A,{},P,H,this.off.bind(this));return typeof P=="string"&&Y==null&&(H=void 0),this.on(ct,H,Y)},g.listenToOnce=function(P,H,Y){var ct=x(A,{},H,Y,this.stopListening.bind(this,P));return this.listenTo(P,ct)};var A=function(P,H,Y,ct){if(Y){var _t=P[H]=s.once(function(){ct(H,_t),Y.apply(this,arguments)});_t._callback=Y}return P};g.trigger=function(P){if(!this._events)return this;for(var H=Math.max(0,arguments.length-1),Y=Array(H),ct=0;ct<H;ct++)Y[ct]=arguments[ct+1];return x(L,this._events,P,void 0,Y),this};var L=function(P,H,Y,ct){if(P){var _t=P[H],K=P.all;_t&&K&&(K=K.slice()),_t&&D(_t,ct),K&&D(K,[H].concat(ct))}return P},D=function(P,H){var Y,ct=-1,_t=P.length,K=H[0],yt=H[1],ut=H[2];switch(H.length){case 0:for(;++ct<_t;)(Y=P[ct]).callback.call(Y.ctx);return;case 1:for(;++ct<_t;)(Y=P[ct]).callback.call(Y.ctx,K);return;case 2:for(;++ct<_t;)(Y=P[ct]).callback.call(Y.ctx,K,yt);return;case 3:for(;++ct<_t;)(Y=P[ct]).callback.call(Y.ctx,K,yt,ut);return;default:for(;++ct<_t;)(Y=P[ct]).callback.apply(Y.ctx,H);return}},W=function(P,H){this.id=P._listenId,this.listener=P,this.obj=H,this.interop=!0,this.count=0,this._events=void 0};W.prototype.on=g.on,W.prototype.off=function(P,H){var Y;this.interop?(this._events=x(S,this._events,P,H,{context:void 0,listeners:void 0}),Y=!this._events):(this.count--,Y=this.count===0),Y&&this.cleanup()},W.prototype.cleanup=function(){delete this.listener._listeningTo[this.obj._listenId],this.interop||delete this.obj._listeners[this.id]},g.bind=g.on,g.unbind=g.off,s.extend(o,g);var j=o.Model=function(P,H){var Y=P||{};H||(H={}),this.preinitialize.apply(this,arguments),this.cid=s.uniqueId(this.cidPrefix),this.attributes={},H.collection&&(this.collection=H.collection),H.parse&&(Y=this.parse(Y,H)||{});var ct=s.result(this,"defaults");Y=s.defaults(s.extend({},ct,Y),ct),this.set(Y,H),this.changed={},this.initialize.apply(this,arguments)};s.extend(j.prototype,g,{changed:null,validationError:null,idAttribute:"id",cidPrefix:"c",preinitialize:function(){},initialize:function(){},toJSON:function(P){return s.clone(this.attributes)},sync:function(){return o.sync.apply(this,arguments)},get:function(P){return this.attributes[P]},escape:function(P){return s.escape(this.get(P))},has:function(P){return this.get(P)!=null},matches:function(P){return!!s.iteratee(P,this)(this.attributes)},set:function(P,H,Y){if(P==null)return this;var ct;if(typeof P=="object"?(ct=P,Y=H):(ct={})[P]=H,Y||(Y={}
738),!this._validate(ct,Y))return!1;var _t=Y.unset,K=Y.silent,yt=[],ut=this._changing;this._changing=!0,ut||(this._previousAttributes=s.clone(this.attributes),this.changed={});var de=this.attributes,Ae=this.changed,Te=this._previousAttributes;for(var Re in ct)H=ct[Re],s.isEqual(de[Re],H)||yt.push(Re),s.isEqual(Te[Re],H)?delete Ae[Re]:Ae[Re]=H,_t?delete de[Re]:de[Re]=H;if(this.idAttribute in ct){var U=this.id;this.id=this.get(this.idAttribute),this.trigger("changeId",this,U,Y)}if(!K){yt.length&&(this._pending=Y);for(var tt=0;tt<yt.length;tt++)this.trigger("change:"+yt[tt],this,de[yt[tt]],Y)}if(ut)return this;if(!K)for(;this._pending;)Y=this._pending,this._pending=!1,this.trigger("change",this,Y);return this._pending=!1,this._changing=!1,this},unset:function(P,H){return this.set(P,void 0,s.extend({},H,{unset:!0}))},clear:function(P){var H={};for(var Y in this.attributes)H[Y]=void 0;return this.set(H,s.extend({},P,{unset:!0}))},hasChanged:function(P){return P==null?!s.isEmpty(this.changed):s.has(this.changed,P)},changedAttributes:function(P){if(!P)return this.hasChanged()?s.clone(this.changed):!1;var H=this._changing?this._previousAttributes:this.attributes,Y={},ct;for(var _t in P){var K=P[_t];s.isEqual(H[_t],K)||(Y[_t]=K,ct=!0)}return ct?Y:!1},previous:function(P){return P==null||!this._previousAttributes?null:this._previousAttributes[P]},previousAttributes:function(){return s.clone(this._previousAttributes)},fetch:function(P){P=s.extend({parse:!0},P);var H=this,Y=P.success;return P.success=function(ct){var _t=P.parse?H.parse(ct,P):ct;if(!H.set(_t,P))return!1;Y&&Y.call(P.context,H,ct,P),H.trigger("sync",H,ct,P)},ce(this,P),this.sync("read",this,P)},save:function(P,H,Y){var ct;P==null||typeof P=="object"?(ct=P,Y=H):(ct={})[P]=H,Y=s.extend({validate:!0,parse:!0},Y);var _t=Y.wait;if(ct&&!_t){if(!this.set(ct,Y))return!1}else if(!this._validate(ct,Y))return!1;var K=this,yt=Y.success,ut=this.attributes;Y.success=function(Te){K.attributes=ut;var Re=Y.parse?K.parse(Te,Y):Te;if(_t&&(Re=s.extend({},ct,Re)),Re&&!K.set(Re,Y))return!1;yt&&yt.call(Y.context,K,Te,Y),K.trigger("sync",K,Te,Y)},ce(this,Y),ct&&_t&&(this.attributes=s.extend({},ut,ct));var de=this.isNew()?"create":Y.patch?"patch":"update";de==="patch"&&!Y.attrs&&(Y.attrs=ct);var Ae=this.sync(de,this,Y);return this.attributes=ut,Ae},destroy:function(P){P=P?s.clone(P):{};var H=this,Y=P.success,ct=P.wait,_t=function(){H.stopListening(),H.trigger("destroy",H,H.collection,P)};P.success=function(yt){ct&&_t(),Y&&Y.call(P.context,H,yt,P),H.isNew()||H.trigger("sync",H,yt,P)};var K=!1;return this.isNew()?s.defer(P.success):(ce(this,P),K=this.sync("delete",this,P)),ct||_t(),K},url:function(){var P=s.result(this,"urlRoot")||s.result(this.collection,"url")||xe();if(this.isNew())return P;var H=this.get(this.idAttribute);return P.replace(/[^\/]$/,"$&/")+encodeURIComponent(H)},parse:function(P,H){return P},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(P){return this._validate({},s.extend({},P,{validate:!0}))},_validate:function(P,H){if(!H.validate||!this.validate)return!0;P=s.extend({},this.attributes,P);var Y=this.validationError=this.validate(P,H)||null;return Y?(this.trigger("invalid",this,Y,s.extend(H,{validationError:Y})),!1):!0}});var et=o.Collection=function(P,H){H||(H={}),this.preinitialize.apply(this,arguments),H.model&&(this.model=H.model),H.comparator!==void 0&&(this.comparator=H.comparator),this._reset(),this.initialize.apply(this,arguments),P&&this.reset(P,s.extend({silent:!0},H))},z={add:!0,remove:!0,merge:!0},B={add:!0,remove:!1},X=function(P,H,Y){Y=Math.min(Math.max(Y,0),P.length);var ct=Array(P.length-Y),_t=H.length,K;for(K=0;K<ct.length;K++)ct[K]=P[K+Y];for(K=0;K<_t;K++)P[K+Y]=H[K];for(K=0;K<ct.length;K++)P[K+_t+Y]=ct[K]};s.extend(et.prototype,g,{model:j,preinitialize:function(){},initialize:function(){},toJSON:function(P){return this.map(function(H){return H.toJSON(P)})},sync:function(){return o.sync.apply(this,arguments)},add:function(P,H){return this.set(P,s.extend({merge:!1},H,B))},remove:function(P,H){H=s.extend({},H);var Y=!s.isArray(P);P=Y?[P]:P.slice();var ct=this._removeModels(P,H);return!H.silent&&ct.length&&(H.changes={added:[],merged:[],removed:ct},this.trigger("update",this,H)),Y?ct[0]:ct},set:function(P,H){if(P!=null){H=s.extend({},z,H),H.parse&&!this._isModel(P)&&(P=this.parse(P,H)||[]);var Y=!s.isArray(P);P=Y?[P]:P.slice();var ct=H.at;ct!=null&&(ct=+ct),ct>this.length&&(ct=this.length),ct<0&&(ct+=this.length+1);var _t=[],K=[],yt=[],ut=[],de={},Ae=H.add,Te=H.merge,Re=H.remove,U=!1,tt=this.comparator&&ct==null&&H.sort!==!1,$=s.isString(this.comparator)?this.comparator:null,pt,Lt;for(Lt=0;Lt<P.length;Lt++){pt=P[Lt];var Rt=this.get(pt);if(Rt){if(Te&&pt!==Rt){var Jt=this._isModel(pt)?pt.attributes:pt;H.parse&&(Jt=Rt.parse(Jt,H)),Rt.set(Jt,H),yt.push(Rt),tt&&!U&&(U=Rt.hasChanged($))}de[Rt.cid]||(de[Rt.cid]=!0,_t.push(Rt)),P[Lt]=Rt}else Ae&&(pt=P[Lt]=this._prepareModel(pt,H),pt&&(K.push(pt),this._addReference(pt,H),de[pt.cid]=!0,_t.push(pt)))}if(Re){for(Lt=0;Lt<this.length;Lt++)pt=this.models[Lt],de[pt.cid]||ut.push(pt);ut.length&&this._removeModels(ut,H)}var re=!1,Gt=!tt&&Ae&ℜif(_t.length&&Gt?(re=this.length!==_t.length||s.some(this.models,function(Ce,Be){return Ce!==_t[Be]}),this.models.length=0,X(this.models,_t,0),this.length=this.models.length):K.length&&(tt&&(U=!0),X(this.models,K,ct??this.length),this.length=this.models.length),U&&this.sort({silent:!0}),!H.silent){for(Lt=0;Lt<K.length;Lt++)ct!=null&&(H.index=ct+Lt),pt=K[Lt],pt.trigger("add",pt,this,H);(U||re)&&this.trigger("sort",this,H),(K.length||ut.length||yt.length)&&(H.changes={added:K,removed:ut,merged:yt},this.trigger("update",this,H))}return Y?P[0]:P}},reset:function(P,H){H=H?s.clone(H):{};for(var Y=0;Y<this.models.length;Y++)this._removeReference(this.models[Y],H);return H.previousModels=this.models,this._reset(),P=this.add(P,s.extend({silent:!0},H)),H.silent||this.trigger("reset",this,H),P},push:function(P,H){return this.add(P,s.extend({at:this.length},H))},pop:function(P){var H=this.at(this.length-1);return this.remove(H,P)},unshift:function(P,H){return this.add(P,s.extend({at:0},H))},shift:function(P){var H=this.at(0);return this.remove(H,P)},slice:function(){return f.apply(this.models,arguments)},get:function(P){if(P!=null)return this._byId[P]||this._byId[this.modelId(this._isModel(P)?P.attributes:P,P.idAttribute)]||P.cid&&this._byId[P.cid]},has:function(P){return this.get(P)!=null},at:function(P){return P<0&&(P+=this.length),this.models[P]},where:function(P,H){return this[H?"find":"filter"](P)},findWhere:function(P){return this.where(P,!0)},sort:function(P){var H=this.comparator;if(!H)throw new Error("Cannot sort a set without a comparator");P||(P={});var Y=H.length;return s.isFunction(H)&&(H=H.bind(this)),Y===1||s.isString(H)?this.models=this.sortBy(H):this.models.sort(H),P.silent||this.trigger("sort",this,P),this},pluck:function(P){return this.map(P+"")},fetch:function(P){P=s.extend({parse:!0},P);var H=P.success,Y=this;return P.success=function(ct){var _t=P.reset?"reset":"set";Y[_t](ct,P),H&&H.call(P.context,Y,ct,P),Y.trigger("sync",Y,ct,P)},ce(this,P),this.sync("read",this,P)},create:function(P,H){H=H?s.clone(H):{};var Y=H.wait;if(P=this._prepareModel(P,H),!P)return!1;Y||this.add(P,H);var ct=this,_t=H.success;return H.success=function(K,yt,ut){Y&&ct.add(K,ut),_t&&_t.call(ut.context,K,yt,ut)},P.save(null,H),P},parse:function(P,H){return P},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(P,H){return P[H||this.model.prototype.idAttribute||"id"]},values:function(){return new F(this,st)},keys:function(){return new F(this,q)},entries:function(){return new F(this,Ct)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(P,H){if(this._isModel(P))return P.collection||(P.collection=this),P;H=H?s.clone(H):{},H.collection=this;var Y;return this.model.prototype?Y=new this.model(P,H):Y=this.model(P,H),Y.validationError?(this.trigger("invalid",this,Y.validationError,H),!1):Y},_removeModels:function(P,H){for(var Y=[],ct=0;ct<P.length;ct++){var _t=this.get(P[ct]);if(_t){var K=this.indexOf(_t);this.models.splice(K,1),this.length--,delete this._byId[_t.cid];var yt=this.modelId(_t.attributes,_t.idAttribute);yt!=null&&delete this._byId[yt],H.silent||(H.index=K,_t.trigger("remove",_t,this,H)),Y.push(_t),this._removeReference(_t,H)}}return Y},_isModel:function(P){return P instanceof j},_addReference:function(P,H){this._byId[P.cid]=P;var Y=this.modelId(P.attributes,P.idAttribute);Y!=null&&(this._byId[Y]=P),P.on("all",this._onModelEvent,this)},_removeReference:function(P,H){delete this._byId[P.cid];var Y=this.modelId(P.attributes,P.idAttribute);Y!=null&&delete this._byId[Y],this===P.collection&&delete P.collection,P.off("all",this._onModelEvent,this)}
738,_onModelEvent:function(P,H,Y,ct){if(H){if((P==="add"||P==="remove")&&Y!==this)return;if(P==="destroy"&&this.remove(H,ct),P==="changeId"){var _t=this.modelId(H.previousAttributes(),H.idAttribute),K=this.modelId(H.attributes,H.idAttribute);_t!=null&&delete this._byId[_t],K!=null&&(this._byId[K]=H)}}this.trigger.apply(this,arguments)}});var Z=typeof Symbol=="function"&&Symbol.iterator;Z&&(et.prototype[Z]=et.prototype.values);var F=function(P,H){this._collection=P,this._kind=H,this._index=0},st=1,q=2,Ct=3;Z&&(F.prototype[Z]=function(){return this}),F.prototype.next=function(){if(this._collection){if(this._index<this._collection.length){var P=this._collection.at(this._index);this._index++;var H;if(this._kind===st)H=P;else{var Y=this._collection.modelId(P.attributes,P.idAttribute);this._kind===q?H=Y:H=[Y,P]}return{value:H,done:!1}}this._collection=void 0}return{value:void 0,done:!0}};var _=o.View=function(P){this.cid=s.uniqueId("view"),this.preinitialize.apply(this,arguments),s.extend(this,s.pick(P,J)),this._ensureElement(),this.initialize.apply(this,arguments)},Q=/^(\S+)\s*(.*)$/,J=["model","collection","el","id","attributes","className","tagName","events"];s.extend(_.prototype,g,{tagName:"div",$:function(P){return this.$el.find(P)},preinitialize:function(){},initialize:function(){},render:function(){return this},remove:function(){return this._removeElement(),this.stopListening(),this},_removeElement:function(){this.$el.remove()},setElement:function(P){return this.undelegateEvents(),this._setElement(P),this.delegateEvents(),this},_setElement:function(P){this.$el=P instanceof o.$?P:o.$(P),this.el=this.$el[0]},delegateEvents:function(P){if(P||(P=s.result(this,"events")),!P)return this;this.undelegateEvents();for(var H in P){var Y=P[H];if(s.isFunction(Y)||(Y=this[Y]),!!Y){var ct=H.match(Q);this.delegate(ct[1],ct[2],Y.bind(this))}}return this},delegate:function(P,H,Y){return this.$el.on(P+".delegateEvents"+this.cid,H,Y),this},undelegateEvents:function(){return this.$el&&this.$el.off(".delegateEvents"+this.cid),this},undelegate:function(P,H,Y){return this.$el.off(P+".delegateEvents"+this.cid,H,Y),this},_createElement:function(P){return document.createElement(P)},_ensureElement:function(){if(this.el)this.setElement(s.result(this,"el"));else{var P=s.extend({},s.result(this,"attributes"));this.id&&(P.id=s.result(this,"id")),this.className&&(P.class=s.result(this,"className")),this.setElement(this._createElement(s.result(this,"tagName"))),this._setAttributes(P)}},_setAttributes:function(P){this.$el.attr(P)}});var gt=function(P,H,Y,ct){switch(H){case 1:return function(){return P[Y](this[ct])};case 2:return function(_t){return P[Y](this[ct],_t)};case 3:return function(_t,K){return P[Y](this[ct],wt(_t,this),K)};case 4:return function(_t,K,yt){return P[Y](this[ct],wt(_t,this),K,yt)};default:return function(){var _t=f.call(arguments);return _t.unshift(this[ct]),P[Y].apply(P,_t)}}},St=function(P,H,Y,ct){s.each(Y,function(_t,K){H[K]&&(P.prototype[K]=gt(H,_t,K,ct))})},wt=function(P,H){return s.isFunction(P)?P:s.isObject(P)&&!H._isModel(P)?mt(P):s.isString(P)?function(Y){return Y.get(P)}:P},mt=function(P){var H=s.matches(P);return function(Y){return H(Y.attributes)}},It={forEach:3,each:3,map:3,collect:3,reduce:0,foldl:0,inject:0,reduceRight:0,foldr:0,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:3,includes:3,contains:3,invoke:0,max:3,min:3,toArray:1,size:1,first:3,head:3,take:3,initial:3,rest:3,tail:3,drop:3,last:3,without:0,difference:0,indexOf:3,shuffle:1,lastIndexOf:3,isEmpty:1,chain:1,sample:3,partition:3,groupBy:3,countBy:3,sortBy:3,indexBy:3,findIndex:3,findLastIndex:3},Bt={keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1};s.each([[et,It,"models"],[j,Bt,"attributes"]],function(P){var H=P[0],Y=P[1],ct=P[2];H.mixin=function(_t){var K=s.reduce(s.functions(_t),function(yt,ut){return yt[ut]=0,yt},{});St(H,_t,K,ct)},St(H,s,Y,ct)}),o.sync=function(P,H,Y){var ct=se[P];s.defaults(Y||(Y={}),{emulateHTTP:o.emulateHTTP,emulateJSON:o.emulateJSON});var _t={type:ct,dataType:"json"};if(Y.url||(_t.url=s.result(H,"url")||xe()),Y.data==null&&H&&(P==="create"||P==="update"||P==="patch")&&(_t.contentType="application/json",_t.data=JSON.stringify(Y.attrs||H.toJSON(Y))),Y.emulateJSON&&(_t.contentType="application/x-www-form-urlencoded",_t.data=_t.data?{model:_t.data}:{}),Y.emulateHTTP&&(ct==="PUT"||ct==="DELETE"||ct==="PATCH")){_t.type="POST",Y.emulateJSON&&(_t.data._method=ct);var K=Y.beforeSend;Y.beforeSend=function(de){if(de.setRequestHeader("X-HTTP-Method-Override",ct),K)return K.apply(this,arguments)}}_t.type!=="GET"&&!Y.emulateJSON&&(_t.processData=!1);var yt=Y.error;Y.error=function(de,Ae,Te){Y.textStatus=Ae,Y.errorThrown=Te,yt&&yt.call(Y.context,de,Ae,Te)};var ut=Y.xhr=o.ajax(s.extend(_t,Y));return H.trigger("request",H,ut,Y),ut};var se={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};o.ajax=function(){return o.$.ajax.apply(o.$,arguments)};var ue=o.Router=function(P){P||(P={}),this.preinitialize.apply(this,arguments),P.routes&&(this.routes=P.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},ne=/\((.*?)\)/g,kt=/(\(\?)?:\w+/g,Ot=/\*\w+/g,Mt=/[\-{}\[\]+?.,\\\^$|#\s]/g;s.extend(ue.prototype,g,{preinitialize:function(){},initialize:function(){},route:function(P,H,Y){s.isRegExp(P)||(P=this._routeToRegExp(P)),s.isFunction(H)&&(Y=H,H=""),Y||(Y=this[H]);var ct=this;return o.history.route(P,function(_t){var K=ct._extractParameters(P,_t);ct.execute(Y,K,H)!==!1&&(ct.trigger.apply(ct,["route:"+H].concat(K)),ct.trigger("route",H,K),o.history.trigger("route",ct,H,K))}),this},execute:function(P,H,Y){P&&P.apply(this,H)},navigate:function(P,H){return o.history.navigate(P,H),this},_bindRoutes:function(){if(this.routes){this.routes=s.result(this,"routes");for(var P,H=s.keys(this.routes);(P=H.pop())!=null;)this.route(P,this.routes[P])}},_routeToRegExp:function(P){return P=P.replace(Mt,"\\$&").replace(ne,"(?:$1)?").replace(kt,function(H,Y){return Y?H:"([^/?]+)"}).replace(Ot,"([^?]*?)"),new RegExp("^"+P+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(P,H){var Y=P.exec(H).slice(1);return s.map(Y,function(ct,_t){return _t===Y.length-1?ct||null:ct?decodeURIComponent(ct):null})}});var zt=o.History=function(){this.handlers=[],this.checkUrl=this.checkUrl.bind(this),typeof window<"u"&&(this.location=window.location,this.history=window.history)},Kt=/^[#\/]|\s+$/g,le=/^\/+|\/+$/g,Zt=/#.*$/;zt.started=!1,s.extend(zt.prototype,g,{interval:50,atRoot:function(){var P=this.location.pathname.replace(/[^\/]$/,"$&/");return P===this.root&&!this.getSearch()},matchRoot:function(){var P=this.decodeFragment(this.location.pathname),H=P.slice(0,this.root.length-1)+"/";return H===this.root},decodeFragment:function(P){return decodeURI(P.replace(/%25/g,"%2525"))},getSearch:function(){var P=this.location.href.replace(/#.*/,"").match(/\?.+/);return P?P[0]:""},getHash:function(P){var H=(P||this).location.href.match(/#(.*)$/);return H?H[1]:""},getPath:function(){var P=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return P.charAt(0)==="/"?P.slice(1):P},getFragment:function(P){return P==null&&(this._usePushState||!this._wantsHashChange?P=this.getPath():P=this.getHash()),P.replace(Kt,"")},start:function(P){if(zt.started)throw new Error("Backbone.history has already been started");if(zt.started=!0,this.options=s.extend({root:"/"},this.options,P),this.root=this.options.root,this._wantsHashChange=this.options.hashChange!==!1,this._hasHashChange="onhashchange"in window&&(document.documentMode===void 0||document.documentMode>7),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.history&&this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(le,"/"),this._wantsHashChange&&this._wantsPushState)if(!this._hasPushState&&!this.atRoot()){var H=this.root.slice(0,-1)||"/";return this.location.replace(H+"#"+this.getPath()),!0}else this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0});if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1;var Y=document.body,ct=Y.insertBefore(this.iframe,Y.firstChild).contentWindow;ct.document.open(),ct.document.close(),ct.location.hash="#"+this.fragment}var _t=window.addEventListener||function(K,yt){return attachEvent("on"+K,yt)};if(this._usePushState?_t("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?_t("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var P=window.removeEventListener||function(H,Y){return detachEvent("on"+H,Y)};this._usePushState?P("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&P("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),zt.started=!1},route:function(P,H){this.handlers.unshift({route:P,callback:H})},checkUrl:function(P){var H=this.getFragment();if(H===this.fragment&&this.iframe&&(H=this.getHash(this.iframe.contentWindow)),H===this.fragment)return!1;this.iframe&&this.navigate(H),this.loadUrl()},loadUrl:function(P){return this.matchRoot()?(P=this.fragment=this.getFragment(P),s.some(this.handlers,function(H){if(H.route.test(P))return H.callback(P),!0})):!1},navigate:function(P,H){if(!zt.started)return!1;(!H||H===!0)&&(H={trigger:!!H}),P=this.getFragment(P||"");var Y=this.root;(P===""||P.charAt(0)==="?")&&(Y=Y.slice(0,-1)||"/");var ct=Y+P;P=P.replace(Zt,"");var _t=this.decodeFragment(P);if(this.fragment!==_t){if(this.fragment=_t,this._usePushState)this.history[H.replace?"replaceState":"pushState"]({},document.title,ct);else if(this._wantsHashChange){if(this._updateHash(this.location,P,H.replace),this.iframe&&P!==this.getHash(this.iframe.contentWindow)){var K=this.iframe.contentWindow;H.replace||(K.document.open(),K.document.close()),this._updateHash(K.location,P,H.replace)}}else return this.location.assign(ct);if(H.trigger)return this.loadUrl(P)}},_updateHash:function(P,H,Y){if(Y){var ct=P.href.replace(/(javascript:|#).*$/,"");P.replace(ct+"#"+H)}else P.hash="#"+H}}),o.history=new zt;var ve=function(P,H){var Y=this,ct;return P&&s.has(P,"constructor")?ct=P.constructor:ct=function(){return Y.apply(this,arguments)},s.extend(ct,Y,H),ct.prototype=s.create(Y.prototype,P),ct.prototype.constructor=ct,ct.__super__=Y.prototype,ct};j.extend=et.extend=ue.extend=_.extend=zt.extend=ve;var xe=function(){throw new Error('A "url" property or function must be specified')},ce=function(P,H){var Y=H.error;
738H.error=function(ct){Y&&Y.call(H.context,P,ct,H),P.trigger("error",P,ct,H)}};return o})}),640:((a,r,t)=>{(function(e){e(t(408))})(function(e){e.extendMode("css",{commentStart:"/*",commentEnd:"*/",newlineAfterToken:function(i,o){return/^[;{}]$/.test(o)}}),e.extendMode("javascript",{commentStart:"/*",commentEnd:"*/",newlineAfterToken:function(i,o,s,c){return this.jsonMode?/^[\[,{]$/.test(o)||/^}/.test(s):o==";"&&c.lexical&&c.lexical.type==")"?!1:/^[;{}]$/.test(o)&&!/^;/.test(s)}});var n=/^(a|abbr|acronym|area|base|bdo|big|br|button|caption|cite|code|col|colgroup|dd|del|dfn|em|frame|hr|iframe|img|input|ins|kbd|label|legend|link|map|object|optgroup|option|param|q|samp|script|select|small|span|strong|sub|sup|textarea|tt|var)$/;e.extendMode("xml",{commentStart:"<!--",commentEnd:"-->",newlineAfterToken:function(i,o,s,c){var d=!1;return this.configuration=="html"&&(d=c.context?n.test(c.context.tagName):!1),!d&&(i=="tag"&&/>$/.test(o)&&c.context||/^</.test(s))}}),e.defineExtension("commentRange",function(i,o,s){var c=this,d=e.innerMode(c.getMode(),c.getTokenAt(o).state).mode;c.operation(function(){if(i)c.replaceRange(d.commentEnd,s),c.replaceRange(d.commentStart,o),o.line==s.line&&o.ch==s.ch&&c.setCursor(o.line,o.ch+d.commentStart.length);else{var f=c.getRange(o,s),g=f.indexOf(d.commentStart),m=f.lastIndexOf(d.commentEnd);g>-1&&m>-1&&m>g&&(f=f.substr(0,g)+f.substring(g+d.commentStart.length,m)+f.substr(m+d.commentEnd.length)),c.replaceRange(f,o,s)}})}),e.defineExtension("autoIndentRange",function(i,o){var s=this;this.operation(function(){for(var c=i.line;c<=o.line;c++)s.indentLine(c,"smart")})}),e.defineExtension("autoFormatRange",function(i,o){var s=this,c=s.getMode(),d=s.getRange(i,o).split(` 739`),f=e.copyState(c,s.getTokenAt(i).state),g=s.getOption("tabSize"),m="",y=0,x=i.ch===0;function w(){m+=` 740`,x=!0,++y}for(var k=0;k<d.length;++k){for(var S=new e.StringStream(d[k],g);!S.eol();){var A=e.innerMode(c,f),L=c.token(S,f),D=S.current();S.start=S.pos,(!x||/\S/.test(D))&&(m+=D,x=!1),!x&&A.mode.newlineAfterToken&&A.mode.newlineAfterToken(L,D,S.string.slice(S.pos)||d[k+1]||"",A.state)&&w()}!S.pos&&c.blankLine&&c.blankLine(f),!x&&k<d.length-1&&w()}s.operation(function(){s.replaceRange(m,i,o);for(var W=i.line+1,j=i.line+y;W<=j;++W)s.indentLine(W,"smart");s.setSelection(i,s.getCursor(!1))})})})}),408:(function(a){(function(r,t){a.exports=t()})(this,(function(){var r=navigator.userAgent,t=navigator.platform,e=/gecko\/\d/i.test(r),n=/MSIE \d/.test(r),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),o=/Edge\/(\d+)/.exec(r),s=n||i||o,c=s&&(n?document.documentMode||6:+(o||i)[1]),d=!o&&/WebKit\//.test(r),f=d&&/Qt\/\d+\.\d+/.test(r),g=!o&&/Chrome\//.test(r),m=/Opera\//.test(r),y=/Apple Computer/.test(navigator.vendor),x=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),w=/PhantomJS/.test(r),k=y&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),S=/Android/.test(r),A=k||S||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),L=k||/Mac/.test(t),D=/\bCrOS\b/.test(r),W=/win/i.test(t),j=m&&r.match(/Version\/(\d*\.\d*)/);j&&(j=Number(j[1])),j&&j>=15&&(m=!1,d=!0);var et=L&&(f||m&&(j==null||j<12.11)),z=e||s&&c>=9;function B(l){return new RegExp("(^|\\s)"+l+"(?:$|\\s)\\s*")}var X=function(l,u){var h=l.className,p=B(u).exec(h);if(p){var v=h.slice(p.index+p[0].length);l.className=h.slice(0,p.index)+(v?p[1]+v:"")}};function Z(l){for(var u=l.childNodes.length;u>0;--u)l.removeChild(l.firstChild);return l}function F(l,u){return Z(l).appendChild(u)}function st(l,u,h,p){var v=document.createElement(l);if(h&&(v.className=h),p&&(v.style.cssText=p),typeof u=="string")v.appendChild(document.createTextNode(u));else if(u)for(var b=0;b<u.length;++b)v.appendChild(u[b]);return v}function q(l,u,h,p){var v=st(l,u,h,p);return v.setAttribute("role","presentation"),v}var Ct;document.createRange?Ct=function(l,u,h,p){var v=document.createRange();return v.setEnd(p||l,h),v.setStart(l,u),v}:Ct=function(l,u,h){var p=document.body.createTextRange();try{p.moveToElementText(l.parentNode)}catch{return p}return p.collapse(!0),p.moveEnd("character",h),p.moveStart("character",u),p};function _(l,u){if(u.nodeType==3&&(u=u.parentNode),l.contains)return l.contains(u);do if(u.nodeType==11&&(u=u.host),u==l)return!0;while(u=u.parentNode)}function Q(){var l;try{l=document.activeElement}catch{l=document.body||null}for(;l&&l.shadowRoot&&l.shadowRoot.activeElement;)l=l.shadowRoot.activeElement;return l}function J(l,u){var h=l.className;B(u).test(h)||(l.className+=(h?" ":"")+u)}function gt(l,u){for(var h=l.split(" "),p=0;p<h.length;p++)h[p]&&!B(h[p]).test(u)&&(u+=" "+h[p]);return u}var St=function(l){l.select()};k?St=function(l){l.selectionStart=0,l.selectionEnd=l.value.length}:s&&(St=function(l){try{l.select()}catch{}});
vendor: 171,174 bytes, lines 740-763
740function wt(l){var u=Array.prototype.slice.call(arguments,1);return function(){return l.apply(null,u)}}function mt(l,u,h){u||(u={});for(var p in l)l.hasOwnProperty(p)&&(h!==!1||!u.hasOwnProperty(p))&&(u[p]=l[p]);return u}function It(l,u,h,p,v){u==null&&(u=l.search(/[^\s\u00a0]/),u==-1&&(u=l.length));for(var b=p||0,C=v||0;;){var T=l.indexOf(" ",b);if(T<0||T>=u)return C+(u-b);C+=T-b,C+=h-C%h,b=T+1}}var Bt=function(){this.id=null,this.f=null,this.time=0,this.handler=wt(this.onTimeout,this)};Bt.prototype.onTimeout=function(l){l.id=0,l.time<=+new Date?l.f():setTimeout(l.handler,l.time-+new Date)},Bt.prototype.set=function(l,u){this.f=u;var h=+new Date+l;(!this.id||h<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,l),this.time=h)};function se(l,u){for(var h=0;h<l.length;++h)if(l[h]==u)return h;return-1}var ue=50,ne={toString:function(){return"CodeMirror.Pass"}},kt={scroll:!1},Ot={origin:"*mouse"},Mt={origin:"+move"};function zt(l,u,h){for(var p=0,v=0;;){var b=l.indexOf(" ",p);b==-1&&(b=l.length);var C=b-p;if(b==l.length||v+C>=u)return p+Math.min(C,u-v);if(v+=b-p,v+=h-v%h,p=b+1,v>=u)return p}}var Kt=[""];function le(l){for(;Kt.length<=l;)Kt.push(Zt(Kt)+" ");return Kt[l]}function Zt(l){return l[l.length-1]}function ve(l,u){for(var h=[],p=0;p<l.length;p++)h[p]=u(l[p],p);return h}function xe(l,u,h){for(var p=0,v=h(u);p<l.length&&h(l[p])<=v;)p++;l.splice(p,0,u)}function ce(){}function P(l,u){var h;return Object.create?h=Object.create(l):(ce.prototype=l,h=new ce),u&&mt(u,h),h}var H=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Y(l){return/\w/.test(l)||l>"Â"&&(l.toUpperCase()!=l.toLowerCase()||H.test(l))}function ct(l,u){return u?u.source.indexOf("\\w")>-1&&Y(l)?!0:u.test(l):Y(l)}function _t(l){for(var u in l)if(l.hasOwnProperty(u)&&l[u])return!1;return!0}var K=/[\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 yt(l){return l.charCodeAt(0)>=768&&K.test(l)}function ut(l,u,h){for(;(h<0?u>0:u<l.length)&&yt(l.charAt(u));)u+=h;return u}function de(l,u,h){for(var p=u>h?-1:1;;){if(u==h)return u;var v=(u+h)/2,b=p<0?Math.ceil(v):Math.floor(v);if(b==u)return l(b)?u:h;l(b)?h=b:u=b+p}}function Ae(l,u,h,p){if(!l)return p(u,h,"ltr",0);for(var v=!1,b=0;b<l.length;++b){var C=l[b];(C.from<h&&C.to>u||u==h&&C.to==u)&&(p(Math.max(C.from,u),Math.min(C.to,h),C.level==1?"rtl":"ltr",b),v=!0)}v||p(u,h,"ltr")}var Te=null;function Re(l,u,h){var p;Te=null;for(var v=0;v<l.length;++v){var b=l[v];if(b.from<u&&b.to>u)return v;b.to==u&&(b.from!=b.to&&h=="before"?p=v:Te=v),b.from==u&&(b.from!=b.to&&h!="before"?p=v:Te=v)}return p??Te}var U=(function(){var l="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",u="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function h(I){return I<=247?l.charAt(I):1424<=I&&I<=1524?"R":1536<=I&&I<=1785?u.charAt(I-1536):1774<=I&&I<=2220?"r":8192<=I&&I<=8203?"w":I==8204?"b":"L"}var p=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,v=/[stwN]/,b=/[LRr]/,C=/[Lb1n]/,T=/[1n]/;function O(I,G,at){this.level=I,this.from=G,this.to=at}return function(I,G){var at=G=="ltr"?"L":"R";if(I.length==0||G=="ltr"&&!p.test(I))return!1;for(var vt=I.length,ft=[],Tt=0;Tt<vt;++Tt)ft.push(h(I.charCodeAt(Tt)));for(var jt=0,Wt=at;jt<vt;++jt){var Yt=ft[jt];Yt=="m"?ft[jt]=Wt:Wt=Yt}for(var ae=0,Xt=at;ae<vt;++ae){var oe=ft[ae];oe=="1"&&Xt=="r"?ft[ae]="n":b.test(oe)&&(Xt=oe,oe=="r"&&(ft[ae]="R"))}for(var be=1,ge=ft[0];be<vt-1;++be){var je=ft[be];je=="+"&&ge=="1"&&ft[be+1]=="1"?ft[be]="1":je==","&&ge==ft[be+1]&&(ge=="1"||ge=="n")&&(ft[be]=ge),ge=je}for(var ir=0;ir<vt;++ir){var Wr=ft[ir];if(Wr==",")ft[ir]="N";else if(Wr=="%"){var br=void 0;for(br=ir+1;br<vt&&ft[br]=="%";++br);for(var $n=ir&&ft[ir-1]=="!"||br<vt&&ft[br]=="1"?"1":"N",An=ir;An<br;++An)ft[An]=$n;ir=br-1}}for(var Dr=0,Mn=at;Dr<vt;++Dr){var nn=ft[Dr];Mn=="L"&&nn=="1"?ft[Dr]="L":b.test(nn)&&(Mn=nn)}for(var Hr=0;Hr<vt;++Hr)if(v.test(ft[Hr])){var Ir=void 0;for(Ir=Hr+1;Ir<vt&&v.test(ft[Ir]);++Ir);for(var Cr=(Hr?ft[Hr-1]:at)=="L",Pn=(Ir<vt?ft[Ir]:at)=="L",Ps=Cr==Pn?Cr?"L":"R":at,Wa=Hr;Wa<Ir;++Wa)ft[Wa]=Ps;Hr=Ir-1}for(var pn=[],Gi,Zr=0;Zr<vt;)if(C.test(ft[Zr])){var vh=Zr;for(++Zr;Zr<vt&&C.test(ft[Zr]);++Zr);pn.push(new O(0,vh,Zr))}else{var fa=Zr,ko=pn.length,So=G=="rtl"?1:0;for(++Zr;Zr<vt&&ft[Zr]!="L";++Zr);for(var wn=fa;wn<Zr;)if(T.test(ft[wn])){fa<wn&&(pn.splice(ko,0,new O(1,fa,wn)),ko+=So);var Ls=wn;for(++wn;wn<Zr&&T.test(ft[wn]);++wn);pn.splice(ko,0,new O(2,Ls,wn)),ko+=So,fa=wn}else++wn;fa<Zr&&pn.splice(ko,0,new O(1,fa,Zr))}return G=="ltr"&&(pn[0].level==1&&(Gi=I.match(/^\s+/))&&(pn[0].from=Gi[0].length,pn.unshift(new O(0,0,Gi[0].length))),Zt(pn).level==1&&(Gi=I.match(/\s+$/))&&(Zt(pn).to-=Gi[0].length,pn.push(new O(0,vt-Gi[0].length,vt)))),G=="rtl"?pn.reverse():pn}})();function tt(l,u){var h=l.order;return h==null&&(h=l.order=U(l.text,u)),h}var $=[],pt=function(l,u,h){if(l.addEventListener)l.addEventListener(u,h,!1);else if(l.attachEvent)l.attachEvent("on"+u,h);else{var p=l._handlers||(l._handlers={});p[u]=(p[u]||$).concat(h)}};function Lt(l,u){return l._handlers&&l._handlers[u]||$}function Rt(l,u,h){if(l.removeEventListener)l.removeEventListener(u,h,!1);else if(l.detachEvent)l.detachEvent("on"+u,h);else{var p=l._handlers,v=p&&p[u];if(v){var b=se(v,h);b>-1&&(p[u]=v.slice(0,b).concat(v.slice(b+1)))}}}function Jt(l,u){var h=Lt(l,u);if(h.length)for(var p=Array.prototype.slice.call(arguments,2),v=0;v<h.length;++v)h[v].apply(null,p)}function re(l,u,h){return typeof u=="string"&&(u={type:u,preventDefault:function(){this.defaultPrevented=!0}}),Jt(l,h||u.type,l,u),mr(u)||u.codemirrorIgnore}function Gt(l){var u=l._handlers&&l._handlers.cursorActivity;if(u)for(var h=l.curOp.cursorActivityHandlers||(l.curOp.cursorActivityHandlers=[]),p=0;p<u.length;++p)se(h,u[p])==-1&&h.push(u[p])}function Ce(l,u){return Lt(l,u).length>0}function Be(l){l.prototype.on=function(u,h){pt(this,u,h)},l.prototype.off=function(u,h){Rt(this,u,h)}}function we(l){l.preventDefault?l.preventDefault():l.returnValue=!1}function vr(l){l.stopPropagation?l.stopPropagation():l.cancelBubble=!0}function mr(l){return l.defaultPrevented!=null?l.defaultPrevented:l.returnValue==!1}function V(l){we(l),vr(l)}function rt(l){return l.target||l.srcElement}function dt(l){var u=l.which;return u==null&&(l.button&1?u=1:l.button&2?u=3:l.button&4&&(u=2)),L&&l.ctrlKey&&u==1&&(u=3),u}var Pt=(function(){if(s&&c<9)return!1;var l=st("div");return"draggable"in l||"dragDrop"in l})(),qt;function ot(l){if(qt==null){var u=st("span","â");F(l,st("span",[u,document.createTextNode("x")])),l.firstChild.offsetHeight!=0&&(qt=u.offsetWidth<=1&&u.offsetHeight>2&&!(s&&c<8))}var h=qt?st("span","â"):st("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return h.setAttribute("cm-text",""),h}var xt;function Nt(l){if(xt!=null)return xt;var u=F(l,document.createTextNode("AØ®A")),h=Ct(u,0,1).getBoundingClientRect(),p=Ct(u,1,2).getBoundingClientRect();return Z(l),!h||h.left==h.right?!1:xt=p.right-h.right<3}var ee=` 741 742b`.split(/\n/).length!=3?function(l){for(var u=0,h=[],p=l.length;u<=p;){var v=l.indexOf(` 743`,u);v==-1&&(v=l.length);var b=l.slice(u,l.charAt(v-1)=="\r"?v-1:v),C=b.indexOf("\r");C!=-1?(h.push(b.slice(0,C)),u+=C+1):(h.push(b),u=v+1)}return h}:function(l){return l.split(/\r\n?|\n/)},ye=window.getSelection?function(l){try{return l.selectionStart!=l.selectionEnd}catch{return!1}}:function(l){var u;try{u=l.ownerDocument.selection.createRange()}catch{}return!u||u.parentElement()!=l?!1:u.compareEndPoints("StartToEnd",u)!=0},Ie=(function(){var l=st("div");return"oncopy"in l?!0:(l.setAttribute("oncopy","return;"),typeof l.oncopy=="function")})(),Ke=null;function Fe(l){if(Ke!=null)return Ke;var u=F(l,st("span","x")),h=u.getBoundingClientRect(),p=Ct(u,0,1).getBoundingClientRect();return Ke=Math.abs(h.left-p.left)>1}var Pr={},Xe={};function sr(l,u){arguments.length>2&&(u.dependencies=Array.prototype.slice.call(arguments,2)),Pr[l]=u}function yr(l,u){Xe[l]=u}function Ge(l){if(typeof l=="string"&&Xe.hasOwnProperty(l))l=Xe[l];else if(l&&typeof l.name=="string"&&Xe.hasOwnProperty(l.name)){var u=Xe[l.name];typeof u=="string"&&(u={name:u}),l=P(u,l),l.name=u.name}else{if(typeof l=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(l))return Ge("application/xml");if(typeof l=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(l))return Ge("application/json")}return typeof l=="string"?{name:l}:l||{name:"null"}}function Lr(l,u){u=Ge(u);var h=Pr[u.name];if(!h)return Lr(l,"text/plain");var p=h(l,u);if(ke.hasOwnProperty(u.name)){var v=ke[u.name];for(var b in v)v.hasOwnProperty(b)&&(p.hasOwnProperty(b)&&(p["_"+b]=p[b]),p[b]=v[b])}if(p.name=u.name,u.helperType&&(p.helperType=u.helperType),u.modeProps)for(var C in u.modeProps)p[C]=u.modeProps[C];return p}var ke={};function $i(l,u){var h=ke.hasOwnProperty(l)?ke[l]:ke[l]={};mt(u,h)}function Br(l,u){if(u===!0)return u;if(l.copyState)return l.copyState(u);var h={};for(var p in u){var v=u[p];v instanceof Array&&(v=v.concat([])),h[p]=v}return h}function wr(l,u){for(var h;l.innerMode&&(h=l.innerMode(u),!(!h||h.mode==l));)u=h.state,l=h.mode;return h||{mode:l,state:u}}function Vr(l,u,h){return l.startState?l.startState(u,h):!0}var Ye=function(l,u,h){this.pos=this.start=0,this.string=l,this.tabSize=u||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=h};Ye.prototype.eol=function(){return this.pos>=this.string.length},Ye.prototype.sol=function(){return this.pos==this.lineStart},Ye.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ye.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ye.prototype.eat=function(l){var u=this.string.charAt(this.pos),h;if(typeof l=="string"?h=u==l:h=u&&(l.test?l.test(u):l(u)),h)return++this.pos,u},Ye.prototype.eatWhile=function(l){for(var u=this.pos;this.eat(l););return this.pos>u},Ye.prototype.eatSpace=function(){for(var l=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>l},Ye.prototype.skipToEnd=function(){this.pos=this.string.length},Ye.prototype.skipTo=function(l){var u=this.string.indexOf(l,this.pos);if(u>-1)return this.pos=u,!0},Ye.prototype.backUp=function(l){this.pos-=l},Ye.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=It(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?It(this.string,this.lineStart,this.tabSize):0)},Ye.prototype.indentation=function(){return It(this.string,null,this.tabSize)-(this.lineStart?It(this.string,this.lineStart,this.tabSize):0)},Ye.prototype.match=function(l,u,h){if(typeof l=="string"){var p=function(C){return h?C.toLowerCase():C},v=this.string.substr(this.pos,l.length);if(p(v)==p(l))return u!==!1&&(this.pos+=l.length),!0}else{var b=this.string.slice(this.pos).match(l);return b&&b.index>0?null:(b&&u!==!1&&(this.pos+=b[0].length),b)}},Ye.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ye.prototype.hideFirstChars=function(l,u){this.lineStart+=l;try{return u()}finally{this.lineStart-=l}},Ye.prototype.lookAhead=function(l){var u=this.lineOracle;return u&&u.lookAhead(l)},Ye.prototype.baseToken=function(){var l=this.lineOracle;return l&&l.baseToken(this.pos)};function ie(l,u){if(u-=l.first,u<0||u>=l.size)throw new Error("There is no line "+(u+l.first)+" in the document.");for(var h=l;!h.lines;)for(var p=0;;++p){var v=h.children[p],b=v.chunkSize();if(u<b){h=v;break}u-=b}return h.lines[u]}function Sn(l,u,h){var p=[],v=u.line;return l.iter(u.line,h.line+1,function(b){var C=b.text;v==h.line&&(C=C.slice(0,h.ch)),v==u.line&&(C=C.slice(u.ch)),p.push(C),++v}),p}function Qr(l,u,h){var p=[];return l.iter(u,h,function(v){p.push(v.text)}),p}function $e(l,u){var h=u-l.height;if(h)for(var p=l;p;p=p.parent)p.height+=h}function Ue(l){if(l.parent==null)return null;for(var u=l.parent,h=se(u.lines,l),p=u.parent;p;u=p,p=p.parent)for(var v=0;p.children[v]!=u;++v)h+=p.children[v].chunkSize();return h+u.first}function tn(l,u){var h=l.first;t:do{for(var p=0;p<l.children.length;++p){var v=l.children[p],b=v.height;if(u<b){l=v;continue t}u-=b,h+=v.chunkSize()}return h}while(!l.lines);for(var C=0;C<l.lines.length;++C){var T=l.lines[C],O=T.height;if(u<O)break;u-=O}return h+C}function Qn(l,u){return u>=l.first&&u<l.first+l.size}function ti(l,u){return String(l.lineNumberFormatter(u+l.firstLineNumber))}function Vt(l,u,h){if(h===void 0&&(h=null),!(this instanceof Vt))return new Vt(l,u,h);this.line=l,this.ch=u,this.sticky=h}function he(l,u){return l.line-u.line||l.ch-u.ch}function Vn(l,u){return l.sticky==u.sticky&&he(l,u)==0}function N(l){return Vt(l.line,l.ch)}function nt(l,u){return he(l,u)<0?u:l}function Et(l,u){return he(l,u)<0?l:u}function Ft(l,u){return Math.max(l.first,Math.min(u,l.first+l.size-1))}function Ut(l,u){if(u.line<l.first)return Vt(l.first,0);var h=l.first+l.size-1;return u.line>h?Vt(h,ie(l,h).text.length):Pe(u,ie(l,u.line).text.length)}function Pe(l,u){var h=l.ch;return h==null||h>u?Vt(l.line,u):h<0?Vt(l.line,0):l}function Ve(l,u){for(var h=[],p=0;p<u.length;p++)h[p]=Ut(l,u[p]);return h}var nr=function(l,u){this.state=l,this.lookAhead=u},ur=function(l,u,h,p){this.state=u,this.doc=l,this.line=h,this.maxLookAhead=p||0,this.baseTokens=null,this.baseTokenPos=1};ur.prototype.lookAhead=function(l){var u=this.doc.getLine(this.line+l);return u!=null&&l>this.maxLookAhead&&(this.maxLookAhead=l),u},ur.prototype.baseToken=function(l){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=l;)this.baseTokenPos+=2;var u=this.baseTokens[this.baseTokenPos+1];return{type:u&&u.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-l}},ur.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ur.fromSaved=function(l,u,h){return u instanceof nr?new ur(l,Br(l.mode,u.state),h,u.lookAhead):new ur(l,Br(l.mode,u),h)},ur.prototype.save=function(l){var u=l!==!1?Br(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new nr(u,this.maxLookAhead):u};function Tn(l,u,h,p){var v=[l.state.modeGen],b={};Ui(l,u.text,l.doc.mode,h,function(I,G){return v.push(I,G)},b,p);for(var C=h.state,T=function(I){h.baseTokens=v;var G=l.state.overlays[I],at=1,vt=0;h.state=!0,Ui(l,u.text,G.mode,h,function(ft,Tt){for(var jt=at;vt<ft;){var Wt=v[at];Wt>ft&&v.splice(at,1,ft,v[at+1],Wt),at+=2,vt=Math.min(ft,Wt)}if(Tt)if(G.opaque)v.splice(jt,at-jt,ft,"overlay "+Tt),at=jt+2;else for(;jt<at;jt+=2){var Yt=v[jt+1];v[jt+1]=(Yt?Yt+" ":"")+"overlay "+Tt}},b),h.state=C,h.baseTokens=null,h.baseTokenPos=1},O=0;O<l.state.overlays.length;++O)T(O);return{styles:v,classes:b.bgClass||b.textClass?b:null}}function ei(l,u,h){if(!u.styles||u.styles[0]!=l.state.modeGen){var p=vi(l,Ue(u)),v=u.text.length>l.options.maxHighlightLength&&Br(l.doc.mode,p.state),b=Tn(l,u,p);v&&(p.state=v),u.stateAfter=p.save(!v),u.styles=b.styles,b.classes?u.styleClasses=b.classes:u.styleClasses&&(u.styleClasses=null),h===l.doc.highlightFrontier&&(l.doc.modeFrontier=Math.max(l.doc.modeFrontier,++l.doc.highlightFrontier))}return u.styles}function vi(l,u,h){var p=l.doc,v=l.display;if(!p.mode.startState)return new ur(p,!0,u);var b=$r(l,u,h),C=b>p.first&&ie(p,b-1).stateAfter,T=C?ur.fromSaved(p,C,b):new ur(p,Vr(p.mode),b);return p.iter(b,u,function(O){lo(l,O.text,T);var I=T.line;O.stateAfter=I==u-1||I%5==0||I>=v.viewFrom&&I<v.viewTo?T.save():null,T.nextLine()}),h&&(p.modeFrontier=T.line),T}function lo(l,u,h,p){var v=l.doc.mode,b=new Ye(u,l.options.tabSize,h);for(b.start=b.pos=p||0,u==""&&Pa(v,h.state);!b.eol();)zi(v,b,h.state),b.start=b.pos}function Pa(l,u){if(l.blankLine)return l.blankLine(u);if(l.innerMode){var h=wr(l,u);if(h.mode.blankLine)return h.mode.blankLine(h.state)}}function zi(l,u,h,p){for(var v=0;v<10;v++){p&&(p[0]=wr(l,h).mode);var b=l.token(u,h);if(u.pos>u.start)return b}throw new Error("Mode "+l.name+" failed to advance stream.")}var co=function(l,u,h){this.start=l.start,this.end=l.pos,this.string=l.current(),this.type=u||null,this.state=h};function sa(l,u,h,p){var v=l.doc,b=v.mode,C;u=Ut(v,u);var T=ie(v,u.line),O=vi(l,u.line,h),I=new Ye(T.text,l.options.tabSize,O),G;for(p&&(G=[]);(p||I.pos<u.ch)&&!I.eol();)I.start=I.pos,C=zi(b,I,O.state),p&&G.push(new co(I,C,Br(v.mode,O.state)));return p?G:new co(I,C,O.state)}function Ai(l,u){if(l)for(;;){var h=l.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!h)break;l=l.slice(0,h.index)+l.slice(h.index+h[0].length);var p=h[1]?"bgClass":"textClass";u[p]==null?u[p]=h[2]:new RegExp("(?:^|\\s)"+h[2]+"(?:$|\\s)").test(u[p])||(u[p]+=" "+h[2])}return l}function Ui(l,u,h,p,v,b,C){var T=h.flattenSpans;T==null&&(T=l.options.flattenSpans);var O=0,I=null,G=new Ye(u,l.options.tabSize,p),at,vt=l.options.addModeClass&&[null];for(u==""&&Ai(Pa(h,p.state),b);!G.eol();){if(G.pos>l.options.maxHighlightLength?(T=!1,C&&lo(l,u,p,G.pos),G.pos=u.length,at=null):at=Ai(zi(h,G,p.state,vt),b),vt){var ft=vt[0].name;ft&&(at="m-"+(at?ft+" "+at:ft))}if(!T||I!=at){for(;O<G.start;)O=Math.min(G.start,O+5e3),v(O,I);I=at}G.start=G.pos}for(;O<G.pos;){var Tt=Math.min(G.pos,O+5e3);v(Tt,I),O=Tt}}function $r(l,u,h){for(var p,v,b=l.doc,C=h?-1:u-(l.doc.mode.innerMode?1e3:100),T=u;T>C;--T){if(T<=b.first)return b.first;var O=ie(b,T-1),I=O.stateAfter;if(I&&(!h||T+(I instanceof nr?I.lookAhead:0)<=b.modeFrontier))return T;var G=It(O.text,null,l.options.tabSize);(v==null||p>G)&&(v=T-1,p=G)}return v}function mi(l,u){if(l.modeFrontier=Math.min(l.modeFrontier,u),!(l.highlightFrontier<u-10)){for(var h=l.first,p=u-1;p>h;p--){var v=ie(l,p).stateAfter;if(v&&(!(v instanceof nr)||p+v.lookAhead<u)){h=p+1;break}}l.highlightFrontier=Math.min(l.highlightFrontier,h)}}var La=!1,gn=!1;function Da(){La=!0}function uo(){gn=!0}function vn(l,u,h){this.marker=l,this.from=u,this.to=h}function Mi(l,u){if(l)for(var h=0;h<l.length;++h){var p=l[h];if(p.marker==u)return p}}function yi(l,u){for(var h,p=0;p<l.length;++p)l[p]!=u&&(h||(h=[])).push(l[p]);return h}function Tr(l,u,h){var p=h&&window.WeakSet&&(h.markedSpans||(h.markedSpans=new WeakSet));p&&p.has(l.markedSpans)?l.markedSpans.push(u):(l.markedSpans=l.markedSpans?l.markedSpans.concat([u]):[u],p&&p.add(l.markedSpans)),u.marker.attachLine(l)}function cs(l,u,h){var p;if(l)for(var v=0;v<l.length;++v){var b=l[v],C=b.marker,T=b.from==null||(C.inclusiveLeft?b.from<=u:b.from<u);if(T||b.from==u&&C.type=="bookmark"&&(!h||!b.marker.insertLeft)){var O=b.to==null||(C.inclusiveRight?b.to>=u:b.to>u);(p||(p=[])).push(new vn(C,b.from,O?null:b.to))}}return p}function Pi(l,u,h){var p;if(l)for(var v=0;v<l.length;++v){var b=l[v],C=b.marker,T=b.to==null||(C.inclusiveRight?b.to>=u:b.to>u);if(T||b.from==u&&C.type=="bookmark"&&(!h||b.marker.insertLeft)){var O=b.from==null||(C.inclusiveLeft?b.from<=u:b.from<u);(p||(p=[])).push(new vn(C,O?null:b.from-u,b.to==null?null:b.to-u))}}return p}function Hn(l,u){if(u.full)return null;var h=Qn(l,u.from.line)&&ie(l,u.from.line).markedSpans,p=Qn(l,u.to.line)&&ie(l,u.to.line).markedSpans;if(!h&&!p)return null;var v=u.from.ch,b=u.to.ch,C=he(u.from,u.to)==0,T=cs(h,v,C),O=Pi(p,b,C),I=u.text.length==1,G=Zt(u.text).length+(I?v:0);if(T)for(var at=0;at<T.length;++at){var vt=T[at];if(vt.to==null){var ft=Mi(O,vt.marker);ft?I&&(vt.to=ft.to==null?null:ft.to+G):vt.to=v}}if(O)for(var Tt=0;Tt<O.length;++Tt){var jt=O[Tt];if(jt.to!=null&&(jt.to+=G),jt.from==null){var Wt=Mi(T,jt.marker);Wt||(jt.from=G,I&&(T||(T=[])).push(jt))}else jt.from+=G,I&&(T||(T=[])).push(jt)}T&&(T=Ia(T)),O&&O!=T&&(O=Ia(O));var Yt=[T];if(!I){var ae=u.text.length-2,Xt;if(ae>0&&T)for(var oe=0;oe<T.length;++oe)T[oe].to==null&&(Xt||(Xt=[])).push(new vn(T[oe].marker,null,null));for(var be=0;be<ae;++be)Yt.push(Xt);Yt.push(O)}return Yt}function Ia(l){for(var u=0;u<l.length;++u){var h=l[u];h.from!=null&&h.from==h.to&&h.marker.clearWhenEmpty!==!1&&l.splice(u--,1)}return l.length?l:null}function ri(l,u,h){var p=null;if(l.iter(u.line,h.line+1,function(ft){if(ft.markedSpans)for(var Tt=0;Tt<ft.markedSpans.length;++Tt){var jt=ft.markedSpans[Tt].marker;jt.readOnly&&(!p||se(p,jt)==-1)&&(p||(p=[])).push(jt)}}),!p)return null;for(var v=[{from:u,to:h}],b=0;b<p.length;++b)for(var C=p[b],T=C.find(0),O=0;O<v.length;++O){var I=v[O];if(!(he(I.to,T.from)<0||he(I.from,T.to)>0)){var G=[O,1],at=he(I.from,T.from),vt=he(I.to,T.to);(at<0||!C.inclusiveLeft&&!at)&&G.push({from:I.from,to:T.from}),(vt>0||!C.inclusiveRight&&!vt)&&G.push({from:T.to,to:I.to}),v.splice.apply(v,G),O+=G.length-3}}return v}function ni(l){var u=l.markedSpans;if(u){for(var h=0;h<u.length;++h)u[h].marker.detachLine(l);l.markedSpans=null}}function la(l,u){if(u){for(var h=0;h<u.length;++h)u[h].marker.attachLine(l);l.markedSpans=u}}function Wi(l){return l.inclusiveLeft?-1:0}function Zi(l){return l.inclusiveRight?1:0}function ca(l,u){var h=l.lines.length-u.lines.length;if(h!=0)return h;var p=l.find(),v=u.find(),b=he(p.from,v.from)||Wi(l)-Wi(u);if(b)return-b;var C=he(p.to,v.to)||Zi(l)-Zi(u);return C||u.id-l.id}function ja(l,u){var h=gn&&l.markedSpans,p;if(h)for(var v=void 0,b=0;b<h.length;++b)v=h[b],v.marker.collapsed&&(u?v.from:v.to)==null&&(!p||ca(p,v.marker)<0)&&(p=v.marker);return p}function qi(l){return ja(l,!0)}function fe(l){return ja(l,!1)}function me(l,u){var h=gn&&l.markedSpans,p;if(h)for(var v=0;v<h.length;++v){var b=h[v];b.marker.collapsed&&(b.from==null||b.from<u)&&(b.to==null||b.to>u)&&(!p||ca(p,b.marker)<0)&&(p=b.marker)}return p}function Me(l,u,h,p,v){var b=ie(l,u),C=gn&&b.markedSpans;if(C)for(var T=0;T<C.length;++T){var O=C[T];if(O.marker.collapsed){var I=O.marker.find(0),G=he(I.from,h)||Wi(O.marker)-Wi(v),at=he(I.to,p)||Zi(O.marker)-Zi(v);if(!(G>=0&&at<=0||G<=0&&at>=0)&&(G<=0&&(O.marker.inclusiveRight&&v.inclusiveLeft?he(I.to,h)>=0:he(I.to,h)>0)||G>=0&&(O.marker.inclusiveRight&&v.inclusiveLeft?he(I.from,p)<=0:he(I.from,p)<0)))return!0}}}function pe(l){for(var u;u=qi(l);)l=u.find(-1,!0).line;return l}function mn(l){for(var u;u=fe(l);)l=u.find(1,!0).line;return l}function yn(l){for(var u,h;u=fe(l);)l=u.find(1,!0).line,(h||(h=[])).push(l);return h}function ii(l,u){var h=ie(l,u),p=pe(h);return h==p?u:Ue(p)}function cn(l,u){if(u>l.lastLine())return u;var h=ie(l,u),p;if(!dn(l,h))return u;for(;p=fe(h);)h=p.find(1,!0).line;return Ue(h)+1}function dn(l,u){var h=gn&&u.markedSpans;if(h){for(var p=void 0,v=0;v<h.length;++v)if(p=h[v],!!p.marker.collapsed){if(p.from==null)return!0;if(!p.marker.widgetNode&&p.from==0&&p.marker.inclusiveLeft&&Ki(l,u,p))return!0}}}function Ki(l,u,h){if(h.to==null){var p=h.marker.find(1,!0);return Ki(l,p.line,Mi(p.line.markedSpans,h.marker))}if(h.marker.inclusiveRight&&h.to==u.text.length)return!0;for(var v=void 0,b=0;b<u.markedSpans.length;++b)if(v=u.markedSpans[b],v.marker.collapsed&&!v.marker.widgetNode&&v.from==h.to&&(v.to==null||v.to!=h.from)&&(v.marker.inclusiveLeft||h.marker.inclusiveRight)&&Ki(l,u,v))return!0}function bn(l){l=pe(l);for(var u=0,h=l.parent,p=0;p<h.lines.length;++p){var v=h.lines[p];if(v==l)break;u+=v.height}for(var b=h.parent;b;h=b,b=h.parent)for(var C=0;C<b.children.length;++C){var T=b.children[C];if(T==h)break;u+=T.height}return u}function un(l){if(l.height==0)return 0;for(var u=l.text.length,h,p=l;h=qi(p);){var v=h.find(0,!0);p=v.from.line,u+=v.from.ch-v.to.ch}for(p=l;h=fe(p);){var b=h.find(0,!0);u-=p.text.length-b.from.ch,p=b.to.line,u+=p.text.length-b.to.ch}return u}function ds(l){var u=l.display,h=l.doc;u.maxLine=ie(h,h.first),u.maxLineLength=un(u.maxLine),u.maxLineChanged=!0,h.iter(function(p){var v=un(p);v>u.maxLineLength&&(u.maxLineLength=v,u.maxLine=p)})}var Li=function(l,u,h){this.text=l,la(this,u),this.height=h?h(this):1};Li.prototype.lineNo=function(){return Ue(this)},Be(Li);function vd(l,u,h,p){l.text=u,l.stateAfter&&(l.stateAfter=null),l.styles&&(l.styles=null),l.order!=null&&(l.order=null),ni(l),la(l,h);var v=p?p(l):1;v!=l.height&&$e(l,v)}function kl(l){l.parent=null,ni(l)}var md={},Rp={};function us(l,u){if(!l||/^\s*$/.test(l))return null;var h=u.addModeClass?Rp:md;return h[l]||(h[l]=l.replace(/\S+/g,"cm-$&"))}function fs(l,u){var h=q("span",null,null,d?"padding-right: .1px":null),p={pre:q("pre",[h],"CodeMirror-line"),content:h,col:0,pos:0,cm:l,trailingSpace:!1,splitSpaces:l.getOption("lineWrapping")};u.measure={};for(var v=0;v<=(u.rest?u.rest.length:0);v++){var b=v?u.rest[v-1]:u.line,C=void 0;p.pos=0,p.addToken=bd,Nt(l.display.measure)&&(C=tt(b,l.doc.direction))&&(p.addToken=xd(p.addToken,C)),p.map=[];var T=u!=l.display.externalMeasured&&Ue(b);wd(b,p,ei(l,b,T)),b.styleClasses&&(b.styleClasses.bgClass&&(p.bgClass=gt(b.styleClasses.bgClass,p.bgClass||"")),b.styleClasses.textClass&&(p.textClass=gt(b.styleClasses.textClass,p.textClass||""))),p.map.length==0&&p.map.push(0,0,p.content.appendChild(ot(l.display.measure))),v==0?(u.measure.map=p.map,u.measure.cache={}):((u.measure.maps||(u.measure.maps=[])).push(p.map),(u.measure.caches||(u.measure.caches=[])).push({}))}if(d){var O=p.content.lastChild;(/\bcm-tab\b/.test(O.className)||O.querySelector&&O.querySelector(".cm-tab"))&&(p.content.className="cm-tab-wrap-hack")}return Jt(l,"renderLine",l,u.line,p.pre),p.pre.className&&(p.textClass=gt(p.pre.className,p.textClass||"")),p}function yd(l){var u=st("span","â¢","cm-invalidchar");return u.title="\\u"+l.charCodeAt(0).toString(16),u.setAttribute("aria-label",u.title),u}function bd(l,u,h,p,v,b,C){if(u){var T=l.splitSpaces?ps(u,l.trailingSpace):u,O=l.cm.state.specialChars,I=!1,G;if(!O.test(u))l.col+=u.length,G=document.createTextNode(T),l.map.push(l.pos,l.pos+u.length,G),s&&c<9&&(I=!0),l.pos+=u.length;else{G=document.createDocumentFragment();for(var at=0;;){O.lastIndex=at;var vt=O.exec(u),ft=vt?vt.index-at:u.length-at;if(ft){var Tt=document.createTextNode(T.slice(at,at+ft));s&&c<9?G.appendChild(st("span",[Tt])):G.appendChild(Tt),l.map.push(l.pos,l.pos+ft,Tt),l.col+=ft,l.pos+=ft}if(!vt)break;at+=ft+1;var jt=void 0;if(vt[0]==" "){var Wt=l.cm.options.tabSize,Yt=Wt-l.col%Wt;jt=G.appendChild(st("span",le(Yt),"cm-tab")),jt.setAttribute("role","presentation"),jt.setAttribute("cm-text"," "),l.col+=Yt}else vt[0]=="\r"||vt[0]==` 744`?(jt=G.appendChild(st("span",vt[0]=="\r"?"â":"â¤","cm-invalidchar")),jt.setAttribute("cm-text",vt[0]),l.col+=1):(jt=l.cm.options.specialCharPlaceholder(vt[0]),jt.setAttribute("cm-text",vt[0]),s&&c<9?G.appendChild(st("span",[jt])):G.appendChild(jt),l.col+=1);l.map.push(l.pos,l.pos+1,jt),l.pos++}}if(l.trailingSpace=T.charCodeAt(u.length-1)==32,h||p||v||I||b||C){var ae=h||"";p&&(ae+=p),v&&(ae+=v);var Xt=st("span",[G],ae,b);if(C)for(var oe in C)C.hasOwnProperty(oe)&&oe!="style"&&oe!="class"&&Xt.setAttribute(oe,C[oe]);return l.content.appendChild(Xt)}l.content.appendChild(G)}}function ps(l,u){if(l.length>1&&!/ /.test(l))return l;for(var h=u,p="",v=0;v<l.length;v++){var b=l.charAt(v);b==" "&&h&&(v==l.length-1||l.charCodeAt(v+1)==32)&&(b=" "),p+=b,h=b==" "}return p}function xd(l,u){return function(h,p,v,b,C,T,O){v=v?v+" cm-force-border":"cm-force-border";for(var I=h.pos,G=I+p.length;;){for(var at=void 0,vt=0;vt<u.length&&(at=u[vt],!(at.to>I&&at.from<=I));vt++);if(at.to>=G)return l(h,p,v,b,C,T,O);l(h,p.slice(0,at.to-I),v,b,null,T,O),b=null,p=p.slice(at.to-I),I=at.to}}}function Sl(l,u,h,p){var v=!p&&h.widgetNode;v&&l.map.push(l.pos,l.pos+u,v),!p&&l.cm.display.input.needsContentAttribute&&(v||(v=l.content.appendChild(document.createElement("span"))),v.setAttribute("cm-marker",h.id)),v&&(l.cm.display.input.setUneditable(v),l.content.appendChild(v)),l.pos+=u,l.trailingSpace=!1}function wd(l,u,h){var p=l.markedSpans,v=l.text,b=0;if(!p){for(var C=1;C<h.length;C+=2)u.addToken(u,v.slice(b,b=h[C]),us(h[C+1],u.cm.options));return}for(var T=v.length,O=0,I=1,G="",at,vt,ft=0,Tt,jt,Wt,Yt,ae;;){if(ft==O){Tt=jt=Wt=vt="",ae=null,Yt=null,ft=1/0;for(var Xt=[],oe=void 0,be=0;be<p.length;++be){var ge=p[be],je=ge.marker;if(je.type=="bookmark"&&ge.from==O&&je.widgetNode)Xt.push(je);else if(ge.from<=O&&(ge.to==null||ge.to>O||je.collapsed&&ge.to==O&&ge.from==O)){if(ge.to!=null&&ge.to!=O&&ft>ge.to&&(ft=ge.to,jt=""),je.className&&(Tt+=" "+je.className),je.css&&(vt=(vt?vt+";":"")+je.css),je.startStyle&&ge.from==O&&(Wt+=" "+je.startStyle),je.endStyle&&ge.to==ft&&(oe||(oe=[])).push(je.endStyle,ge.to),je.title&&((ae||(ae={})).title=je.title),je.attributes)for(var ir in je.attributes)(ae||(ae={}))[ir]=je.attributes[ir];je.collapsed&&(!Yt||ca(Yt.marker,je)<0)&&(Yt=ge)}else ge.from>O&&ft>ge.from&&(ft=ge.from)}if(oe)for(var Wr=0;Wr<oe.length;Wr+=2)oe[Wr+1]==ft&&(jt+=" "+oe[Wr]);if(!Yt||Yt.from==O)for(var br=0;br<Xt.length;++br)Sl(u,0,Xt[br]);if(Yt&&(Yt.from||0)==O){if(Sl(u,(Yt.to==null?T+1:Yt.to)-O,Yt.marker,Yt.from==null),Yt.to==null)return;Yt.to==O&&(Yt=!1)}}if(O>=T)break;for(var $n=Math.min(T,ft);;){if(G){var An=O+G.length;if(!Yt){var Dr=An>$n?G.slice(0,$n-O):G;u.addToken(u,Dr,at?at+Tt:Tt,Wt,O+Dr.length==ft?jt:"",vt,ae)}if(An>=$n){G=G.slice($n-O),O=$n;break}O=An,Wt=""}G=v.slice(b,b=h[I++]),at=us(h[I++],u.cm.options)}}}function Tl(l,u,h){this.line=u,this.rest=yn(u),this.size=this.rest?Ue(Zt(this.rest))-h+1:1,this.node=this.text=null,this.hidden=dn(l,u)}function fo(l,u,h){for(var p=[],v,b=u;b<h;b=v){var C=new Tl(l.doc,ie(l.doc,b),b);v=b+C.size,p.push(C)}return p}var Na=null;function Ol(l){Na?Na.ops.push(l):l.ownsGroup=Na={ops:[l],delayedCallbacks:[]}}function _d(l){var u=l.delayedCallbacks,h=0;do{for(;h<u.length;h++)u[h].call(null);for(var p=0;p<l.ops.length;p++){var v=l.ops[p];if(v.cursorActivityHandlers)for(;v.cursorActivityCalled<v.cursorActivityHandlers.length;)v.cursorActivityHandlers[v.cursorActivityCalled++].call(null,v.cm)}}while(h<u.length)}function El(l,u){var h=l.ownsGroup;if(h)try{_d(h)}finally{Na=null,u(h)}}var bi=null;function lr(l,u){var h=Lt(l,u);if(h.length){var p=Array.prototype.slice.call(arguments,2),v;Na?v=Na.delayedCallbacks:bi?v=bi:(v=bi=[],setTimeout(Cd,0));for(var b=function(T){v.push(function(){return h[T].apply(null,p)})},C=0;C<h.length;++C)b(C)}}function Cd(){var l=bi;bi=null;for(var u=0;u<l.length;++u)l[u]()}function Al(l,u,h,p){for(var v=0;v<u.changes.length;v++){var b=u.changes[v];b=="text"?po(l,u):b=="gutter"?Ll(l,u,h,p):b=="class"?hs(l,u):b=="widget"&&ho(l,u,p)}u.changes=null}function Ra(l){return l.node==l.text&&(l.node=st("div",null,null,"position: relative"),l.text.parentNode&&l.text.parentNode.replaceChild(l.node,l.text),l.node.appendChild(l.text),s&&c<8&&(l.node.style.zIndex=2)),l.node}function Ml(l,u){var h=u.bgClass?u.bgClass+" "+(u.line.bgClass||""):u.line.bgClass;if(h&&(h+=" CodeMirror-linebackground"),u.background)h?u.background.className=h:(u.background.parentNode.removeChild(u.background),u.background=null);else if(h){var p=Ra(u);u.background=p.insertBefore(st("div",null,h),p.firstChild),l.display.input.setUneditable(u.background)}}function Pl(l,u){var h=l.display.externalMeasured;return h&&h.line==u.line?(l.display.externalMeasured=null,u.measure=h.measure,h.built):fs(l,u)}function po(l,u){var h=u.text.className,p=Pl(l,u);u.text==u.node&&(u.node=p.pre),u.text.parentNode.replaceChild(p.pre,u.text),u.text=p.pre,p.bgClass!=u.bgClass||p.textClass!=u.textClass?(u.bgClass=p.bgClass,u.textClass=p.textClass,hs(l,u)):h&&(u.text.className=h)}function hs(l,u){Ml(l,u),u.line.wrapClass?Ra(u).className=u.line.wrapClass:u.node!=u.text&&(u.node.className="");var h=u.textClass?u.textClass+" "+(u.line.textClass||""):u.line.textClass;u.text.className=h||""}function Ll(l,u,h,p){if(u.gutter&&(u.node.removeChild(u.gutter),u.gutter=null),u.gutterBackground&&(u.node.removeChild(u.gutterBackground),u.gutterBackground=null),u.line.gutterClass){var v=Ra(u);u.gutterBackground=st("div",null,"CodeMirror-gutter-background "+u.line.gutterClass,"left: "+(l.options.fixedGutter?p.fixedPos:-p.gutterTotalWidth)+"px; width: "+p.gutterTotalWidth+"px"),l.display.input.setUneditable(u.gutterBackground),v.insertBefore(u.gutterBackground,u.text)}var b=u.line.gutterMarkers;if(l.options.lineNumbers||b){var C=Ra(u),T=u.gutter=st("div",null,"CodeMirror-gutter-wrapper","left: "+(l.options.fixedGutter?p.fixedPos:-p.gutterTotalWidth)+"px");if(T.setAttribute("aria-hidden","true"),l.display.input.setUneditable(T),C.insertBefore(T,u.text),u.line.gutterClass&&(T.className+=" "+u.line.gutterClass),l.options.lineNumbers&&(!b||!b["CodeMirror-linenumbers"])&&(u.lineNumber=T.appendChild(st("div",ti(l.options,h),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+p.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+l.display.lineNumInnerWidth+"px"))),b)for(var O=0;O<l.display.gutterSpecs.length;++O){var I=l.display.gutterSpecs[O].className,G=b.hasOwnProperty(I)&&b[I];G&&T.appendChild(st("div",[G],"CodeMirror-gutter-elt","left: "+p.gutterLeft[I]+"px; width: "+p.gutterWidth[I]+"px"))}}}function ho(l,u,h){u.alignable&&(u.alignable=null);for(var p=B("CodeMirror-linewidget"),v=u.node.firstChild,b=void 0;v;v=b)b=v.nextSibling,p.test(v.className)&&u.node.removeChild(v);Dl(l,u,h)}function kd(l,u,h,p){var v=Pl(l,u);return u.text=u.node=v.pre,v.bgClass&&(u.bgClass=v.bgClass),v.textClass&&(u.textClass=v.textClass),hs(l,u),Ll(l,u,h,p),Dl(l,u,p),u.node}function Dl(l,u,h){if(Il(l,u.line,u,h,!0),u.rest)for(var p=0;p<u.rest.length;p++)Il(l,u.rest[p],u,h,!1)}function Il(l,u,h,p,v){if(u.widgets)for(var b=Ra(h),C=0,T=u.widgets;C<T.length;++C){var O=T[C],I=st("div",[O.node],"CodeMirror-linewidget"+(O.className?" "+O.className:""));O.handleMouseEvents||I.setAttribute("cm-ignore-events","true"),Sd(O,I,h,p),l.display.input.setUneditable(I),v&&O.above?b.insertBefore(I,h.gutter||h.text):b.appendChild(I),lr(O,"redraw")}}function Sd(l,u,h,p){if(l.noHScroll){(h.alignable||(h.alignable=[])).push(u);var v=p.wrapperWidth;u.style.left=p.fixedPos+"px",l.coverGutter||(v-=p.gutterTotalWidth,u.style.paddingLeft=p.gutterTotalWidth+"px"),u.style.width=v+"px"}l.coverGutter&&(u.style.zIndex=5,u.style.position="relative",l.noHScroll||(u.style.marginLeft=-p.gutterTotalWidth+"px"))}function da(l){if(l.height!=null)return l.height;var u=l.doc.cm;if(!u)return 0;if(!_(document.body,l.node)){var h="position: relative;";l.coverGutter&&(h+="margin-left: -"+u.display.gutters.offsetWidth+"px;"),l.noHScroll&&(h+="width: "+u.display.wrapper.clientWidth+"px;"),F(u.display.measure,st("div",[l.node],null,h))}return l.height=l.node.parentNode.offsetHeight}function ai(l,u){for(var h=rt(u);h!=l.wrapper;h=h.parentNode)if(!h||h.nodeType==1&&h.getAttribute("cm-ignore-events")=="true"||h.parentNode==l.sizer&&h!=l.mover)return!0}function gs(l){return l.lineSpace.offsetTop}function go(l){return l.mover.offsetHeight-l.lineSpace.offsetHeight}function Td(l){if(l.cachedPaddingH)return l.cachedPaddingH;var u=F(l.measure,st("pre","x","CodeMirror-line-like")),h=window.getComputedStyle?window.getComputedStyle(u):u.currentStyle,p={left:parseInt(h.paddingLeft),right:parseInt(h.paddingRight)};return!isNaN(p.left)&&!isNaN(p.right)&&(l.cachedPaddingH=p),p}function M(l){return ue-l.display.nativeBarWidth}function R(l){return l.display.scroller.clientWidth-M(l)-l.display.barWidth}function it(l){return l.display.scroller.clientHeight-M(l)-l.display.barHeight}function lt(l,u,h){var p=l.options.lineWrapping,v=p&&R(l);if(!u.measure.heights||p&&u.measure.width!=v){var b=u.measure.heights=[];if(p){u.measure.width=v;for(var C=u.text.firstChild.getClientRects(),T=0;T<C.length-1;T++){var O=C[T],I=C[T+1];Math.abs(O.bottom-I.bottom)>2&&b.push((O.bottom+I.top)/2-h.top)}}b.push(h.bottom-h.top)}}function bt(l,u,h){if(l.line==u)return{map:l.measure.map,cache:l.measure.cache};for(var p=0;p<l.rest.length;p++)if(l.rest[p]==u)return{map:l.measure.maps[p],cache:l.measure.caches[p]};for(var v=0;v<l.rest.length;v++)if(Ue(l.rest[v])>h)return{map:l.measure.maps[v],cache:l.measure.caches[v],before:!0}}function ht(l,u){u=pe(u);var h=Ue(u),p=l.display.externalMeasured=new Tl(l.doc,u,h);p.lineN=h;var v=p.built=fs(l,p);return p.text=v.pre,F(l.display.lineMeasure,v.pre),p}function Dt(l,u,h,p){return Oe(l,Ee(l,u),h,p)}function Qt(l,u){if(u>=l.display.viewFrom&&u<l.display.viewTo)return l.display.view[bo(l,u)];var h=l.display.externalMeasured;if(h&&u>=h.lineN&&u<h.lineN+h.size)return h}function Ee(l,u){var h=Ue(u),p=Qt(l,h);p&&!p.text?p=null:p&&p.changes&&(Al(l,p,h,$p(l)),l.curOp.forceUpdate=!0),p||(p=ht(l,u));var v=bt(p,u,h);return{line:u,view:p,rect:null,map:v.map,cache:v.cache,before:v.before,hasHeights:!1}}function Oe(l,u,h,p,v){u.before&&(h=-1);var b=h+(p||""),C;return u.cache.hasOwnProperty(b)?C=u.cache[b]:(u.rect||(u.rect=u.view.text.getBoundingClientRect()),u.hasHeights||(lt(l,u.view,u.rect),u.hasHeights=!0),C=vo(l,u,h,p),C.bogus||(u.cache[b]=C)),{left:C.left,right:C.right,top:v?C.rtop:C.top,bottom:v?C.rbottom:C.bottom}}var _r={left:0,right:0,top:0,bottom:0};function en(l,u,h){for(var p,v,b,C,T,O,I=0;I<l.length;I+=3)if(T=l[I],O=l[I+1],u<T?(v=0,b=1,C="left"):u<O?(v=u-T,b=v+1):(I==l.length-3||u==O&&l[I+3]>u)&&(b=O-T,v=b-1,u>=O&&(C="right")),v!=null){if(p=l[I+2],T==O&&h==(p.insertLeft?"left":"right")&&(C=h),h=="left"&&v==0)for(;I&&l[I-2]==l[I-3]&&l[I-1].insertLeft;)p=l[(I-=3)+2],C="left";if(h=="right"&&v==O-T)for(;I<l.length-3&&l[I+3]==l[I+4]&&!l[I+5].insertLeft;)p=l[(I+=3)+2],C="right";break}return{node:p,start:v,end:b,collapse:C,coverStart:T,coverEnd:O}}function rn(l,u){var h=_r;if(u=="left")for(var p=0;p<l.length&&(h=l[p]).left==h.right;p++);else for(var v=l.length-1;v>=0&&(h=l[v]).left==h.right;v--);return h}function vo(l,u,h,p){var v=en(u.map,h,p),b=v.node,C=v.start,T=v.end,O=v.collapse,I;if(b.nodeType==3){for(var G=0;G<4;G++){for(;C&&yt(u.line.text.charAt(v.coverStart+C));)--C;for(;v.coverStart+T<v.coverEnd&&yt(u.line.text.charAt(v.coverStart+T));)++T;if(s&&c<9&&C==0&&T==v.coverEnd-v.coverStart?I=b.parentNode.getBoundingClientRect():I=rn(Ct(b,C,T).getClientRects(),p),I.left||I.right||C==0)break;T=C,C=C-1,O="right"}s&&c<11&&(I=vs(l.display.measure,I))}else{C>0&&(O=p="right");var at;l.options.lineWrapping&&(at=b.getClientRects()).length>1?I=at[p=="right"?at.length-1:0]:I=b.getBoundingClientRect()}if(s&&c<9&&!C&&(!I||!I.left&&!I.right)){var vt=b.parentNode.getClientRects()[0];vt?I={left:vt.left,right:vt.left+ys(l.display),top:vt.top,bottom:vt.bottom}:I=_r}for(var ft=I.top-u.rect.top,Tt=I.bottom-u.rect.top,jt=(ft+Tt)/2,Wt=u.view.measure.heights,Yt=0;Yt<Wt.length-1&&!(jt<Wt[Yt]);Yt++);var ae=Yt?Wt[Yt-1]:0,Xt=Wt[Yt],oe={left:(O=="right"?I.right:I.left)-u.rect.left,right:(O=="left"?I.left:I.right)-u.rect.left,top:ae,bottom:Xt};return!I.left&&!I.right&&(oe.bogus=!0),l.options.singleCursorHeightPerLine||(oe.rtop=ft,oe.rbottom=Tt),oe}function vs(l,u){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Fe(l))return u;var h=screen.logicalXDPI/screen.deviceXDPI,p=screen.logicalYDPI/screen.deviceYDPI;return{left:u.left*h,right:u.right*h,top:u.top*p,bottom:u.bottom*p}}function j1(l){if(l.measure&&(l.measure.cache={},l.measure.heights=null,l.rest))for(var u=0;u<l.rest.length;u++)l.measure.caches[u]={}}function N1(l){l.display.externalMeasure=null,Z(l.display.lineMeasure);for(var u=0;u<l.display.view.length;u++)j1(l.display.view[u])}function jl(l){N1(l),l.display.cachedCharWidth=l.display.cachedTextHeight=l.display.cachedPaddingH=null,l.options.lineWrapping||(l.display.maxLineChanged=!0),l.display.lineNumChars=null}function R1(){return g&&S?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function B1(){return g&&S?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Bp(l){var u=0;if(l.widgets)for(var h=0;h<l.widgets.length;++h)l.widgets[h].above&&(u+=da(l.widgets[h]));return u}function Od(l,u,h,p,v){if(!v){var b=Bp(u);h.top+=b,h.bottom+=b}if(p=="line")return h;p||(p="local");var C=bn(u);if(p=="local"?C+=gs(l.display):C-=l.display.viewOffset,p=="page"||p=="window"){var T=l.display.lineSpace.getBoundingClientRect();C+=T.top+(p=="window"?0:B1());var O=T.left+(p=="window"?0:R1());h.left+=O,h.right+=O}return h.top+=C,h.bottom+=C,h}function V1(l,u,h){if(h=="div")return u;var p=u.left,v=u.top;if(h=="page")p-=R1(),v-=B1();else if(h=="local"||!h){var b=l.display.sizer.getBoundingClientRect();p+=b.left,v+=b.top}var C=l.display.lineSpace.getBoundingClientRect();return{left:p-C.left,top:v-C.top}}function Ed(l,u,h,p,v){return p||(p=ie(l.doc,u.line)),Od(l,p,Dt(l,p,u.ch,v),h)}function Di(l,u,h,p,v,b){p=p||ie(l.doc,u.line),v||(v=Ee(l,p));function C(Tt,jt){var Wt=Oe(l,v,Tt,jt?"right":"left",b);return jt?Wt.left=Wt.right:Wt.right=Wt.left,Od(l,p,Wt,h)}var T=tt(p,l.doc.direction),O=u.ch,I=u.sticky;if(O>=p.text.length?(O=p.text.length,I="before"):O<=0&&(O=0,I="after"),!T)return C(I=="before"?O-1:O,I=="before");function G(Tt,jt,Wt){var Yt=T[jt],ae=Yt.level==1;return C(Wt?Tt-1:Tt,ae!=Wt)}var at=Re(T,O,I),vt=Te,ft=G(O,at,I=="before");return vt!=null&&(ft.other=G(O,vt,I!="before")),ft}function H1(l,u){var h=0;u=Ut(l.doc,u),l.options.lineWrapping||(h=ys(l.display)*u.ch);var p=ie(l.doc,u.line),v=bn(p)+gs(l.display);return{left:h,right:h,top:v,bottom:v+p.height}}function Vp(l,u,h,p,v){var b=Vt(l,u,h);return b.xRel=v,p&&(b.outside=p),b}function Hp(l,u,h){var p=l.doc;if(h+=l.display.viewOffset,h<0)return Vp(p.first,0,null,-1,-1);var v=tn(p,h),b=p.first+p.size-1;if(v>b)return Vp(p.first+p.size-1,ie(p,b).text.length,null,1,1);u<0&&(u=0);for(var C=ie(p,v);;){var T=Ew(l,C,v,u,h),O=me(C,T.ch+(T.xRel>0||T.outside>0?1:0));if(!O)return T;var I=O.find(1);if(I.line==v)return I;C=ie(p,v=I.line)}}function F1(l,u,h,p){p-=Bp(u);var v=u.text.length,b=de(function(C){return Oe(l,h,C-1).bottom<=p},v,0);return v=de(function(C){return Oe(l,h,C).top>p},b,v),{begin:b,end:v}}function $1(l,u,h,p){h||(h=Ee(l,u));var v=Od(l,u,Oe(l,h,p),"line").top;return F1(l,u,h,v)}function Fp(l,u,h,p){return l.bottom<=h?!1:l.top>h?!0:(p?l.left:l.right)>u}function Ew(l,u,h,p,v){v-=bn(u);var b=Ee(l,u),C=Bp(u),T=0,O=u.text.length,I=!0,G=tt(u,l.doc.direction);if(G){var at=(l.options.lineWrapping?Mw:Aw)(l,u,h,b,G,p,v);I=at.level!=1,T=I?at.from:at.to-1,O=I?at.to:at.from-1}var vt=null,ft=null,Tt=de(function(be){var ge=Oe(l,b,be);return ge.top+=C,ge.bottom+=C,Fp(ge,p,v,!1)?(ge.top<=v&&ge.left<=p&&(vt=be,ft=ge),!0):!1},T,O),jt,Wt,Yt=!1;if(ft){var ae=p-ft.left<ft.right-p,Xt=ae==I;Tt=vt+(Xt?0:1),Wt=Xt?"after":"before",jt=ae?ft.left:ft.right}else{!I&&(Tt==O||Tt==T)&&Tt++,Wt=Tt==0?"after":Tt==u.text.length?"before":Oe(l,b,Tt-(I?1:0)).bottom+C<=v==I?"after":"before";var oe=Di(l,Vt(h,Tt,Wt),"line",u,b);jt=oe.left,Yt=v<oe.top?-1:v>=oe.bottom?1:0}return Tt=ut(u.text,Tt,1),Vp(h,Tt,Wt,Yt,p-jt)}function Aw(l,u,h,p,v,b,C){var T=de(function(at){var vt=v[at],ft=vt.level!=1;return Fp(Di(l,Vt(h,ft?vt.to:vt.from,ft?"before":"after"),"line",u,p),b,C,!0)},0,v.length-1),O=v[T];if(T>0){var I=O.level!=1,G=Di(l,Vt(h,I?O.from:O.to,I?"after":"before"),"line",u,p);Fp(G,b,C,!0)&&G.top>C&&(O=v[T-1])}return O}function Mw(l,u,h,p,v,b,C){var T=F1(l,u,p,C),O=T.begin,I=T.end;/\s/.test(u.text.charAt(I-1))&&I--;for(var G=null,at=null,vt=0;vt<v.length;vt++){var ft=v[vt];if(!(ft.from>=I||ft.to<=O)){var Tt=ft.level!=1,jt=Oe(l,p,Tt?Math.min(I,ft.to)-1:Math.max(O,ft.from)).right,Wt=jt<b?b-jt+1e9:jt-b;(!G||at>Wt)&&(G=ft,at=Wt)}}return G||(G=v[v.length-1]),G.from<O&&(G={from:O,to:G.to,level:G.level}),G.to>I&&(G={from:G.from,to:I,level:G.level}),G}var mo;function ms(l){if(l.cachedTextHeight!=null)return l.cachedTextHeight;if(mo==null){mo=st("pre",null,"CodeMirror-line-like");for(var u=0;u<49;++u)mo.appendChild(document.createTextNode("x")),mo.appendChild(st("br"));mo.appendChild(document.createTextNode("x"))}F(l.measure,mo);var h=mo.offsetHeight/50;return h>3&&(l.cachedTextHeight=h),Z(l.measure),h||1}function ys(l){if(l.cachedCharWidth!=null)return l.cachedCharWidth;var u=st("span","xxxxxxxxxx"),h=st("pre",[u],"CodeMirror-line-like");F(l.measure,h);var p=u.getBoundingClientRect(),v=(p.right-p.left)/10;return v>2&&(l.cachedCharWidth=v),v||10}function $p(l){for(var u=l.display,h={},p={},v=u.gutters.clientLeft,b=u.gutters.firstChild,C=0;b;b=b.nextSibling,++C){var T=l.display.gutterSpecs[C].className;h[T]=b.offsetLeft+b.clientLeft+v,p[T]=b.clientWidth}return{fixedPos:zp(u),gutterTotalWidth:u.gutters.offsetWidth,gutterLeft:h,gutterWidth:p,wrapperWidth:u.wrapper.clientWidth}}function zp(l){return l.scroller.getBoundingClientRect().left-l.sizer.getBoundingClientRect().left}function z1(l){var u=ms(l.display),h=l.options.lineWrapping,p=h&&Math.max(5,l.display.scroller.clientWidth/ys(l.display)-3);return function(v){if(dn(l.doc,v))return 0;var b=0;if(v.widgets)for(var C=0;C<v.widgets.length;C++)v.widgets[C].height&&(b+=v.widgets[C].height);return h?b+(Math.ceil(v.text.length/p)||1)*u:b+u}}function Up(l){var u=l.doc,h=z1(l);u.iter(function(p){var v=h(p);v!=p.height&&$e(p,v)})}function yo(l,u,h,p){var v=l.display;if(!h&&rt(u).getAttribute("cm-not-content")=="true")return null;var b,C,T=v.lineSpace.getBoundingClientRect();try{b=u.clientX-T.left,C=u.clientY-T.top}catch{return null}var O=Hp(l,b,C),I;if(p&&O.xRel>0&&(I=ie(l.doc,O.line).text).length==O.ch){var G=It(I,I.length,l.options.tabSize)-I.length;O=Vt(O.line,Math.max(0,Math.round((b-Td(l.display).left)/ys(l.display))-G))}return O}function bo(l,u){if(u>=l.display.viewTo||(u-=l.display.viewFrom,u<0))return null;for(var h=l.display.view,p=0;p<h.length;p++)if(u-=h[p].size,u<0)return p}function On(l,u,h,p){u==null&&(u=l.doc.first),h==null&&(h=l.doc.first+l.doc.size),p||(p=0);var v=l.display;if(p&&h<v.viewTo&&(v.updateLineNumbers==null||v.updateLineNumbers>u)&&(v.updateLineNumbers=u),l.curOp.viewChanged=!0,u>=v.viewTo)gn&&ii(l.doc,u)<v.viewTo&&Va(l);else if(h<=v.viewFrom)gn&&cn(l.doc,h+p)>v.viewFrom?Va(l):(v.viewFrom+=p,v.viewTo+=p);else if(u<=v.viewFrom&&h>=v.viewTo)Va(l);else if(u<=v.viewFrom){var b=Ad(l,h,h+p,1);b?(v.view=v.view.slice(b.index),v.viewFrom=b.lineN,v.viewTo+=p):Va(l)}else if(h>=v.viewTo){var C=Ad(l,u,u,-1);C?(v.view=v.view.slice(0,C.index),v.viewTo=C.lineN):Va(l)}else{var T=Ad(l,u,u,-1),O=Ad(l,h,h+p,1);T&&O?(v.view=v.view.slice(0,T.index).concat(fo(l,T.lineN,O.lineN)).concat(v.view.slice(O.index)),v.viewTo+=p):Va(l)}var I=v.externalMeasured;I&&(h<I.lineN?I.lineN+=p:u<I.lineN+I.size&&(v.externalMeasured=null))}function Ba(l,u,h){l.curOp.viewChanged=!0;var p=l.display,v=l.display.externalMeasured;if(v&&u>=v.lineN&&u<v.lineN+v.size&&(p.externalMeasured=null),!(u<p.viewFrom||u>=p.viewTo)){var b=p.view[bo(l,u)];if(b.node!=null){var C=b.changes||(b.changes=[]);se(C,h)==-1&&C.push(h)}}}function Va(l){l.display.viewFrom=l.display.viewTo=l.doc.first,l.display.view=[],l.display.viewOffset=0}function Ad(l,u,h,p){var v=bo(l,u),b,C=l.display.view;if(!gn||h==l.doc.first+l.doc.size)return{index:v,lineN:h};for(var T=l.display.viewFrom,O=0;O<v;O++)T+=C[O].size;if(T!=u){if(p>0){if(v==C.length-1)return null;b=T+C[v].size-u,v++}else b=T-u;u+=b,h+=b}for(;ii(l.doc,h)!=h;){if(v==(p<0?0:C.length-1))return null;h+=p*C[v-(p<0?1:0)].size,v+=p}return{index:v,lineN:h}}function Pw(l,u,h){var p=l.display,v=p.view;v.length==0||u>=p.viewTo||h<=p.viewFrom?(p.view=fo(l,u,h),p.viewFrom=u):(p.viewFrom>u?p.view=fo(l,u,p.viewFrom).concat(p.view):p.viewFrom<u&&(p.view=p.view.slice(bo(l,u))),p.viewFrom=u,p.viewTo<h?p.view=p.view.concat(fo(l,p.viewTo,h)):p.viewTo>h&&(p.view=p.view.slice(0,bo(l,h)))),p.viewTo=h}function U1(l){for(var u=l.display.view,h=0,p=0;p<u.length;p++){var v=u[p];!v.hidden&&(!v.node||v.changes)&&++h}return h}function Nl(l){l.display.input.showSelection(l.display.input.prepareSelection())}function W1(l,u){u===void 0&&(u=!0);for(var h=l.doc,p={},v=p.cursors=document.createDocumentFragment(),b=p.selection=document.createDocumentFragment(),C=0;C<h.sel.ranges.length;C++)if(!(!u&&C==h.sel.primIndex)){var T=h.sel.ranges[C];if(!(T.from().line>=l.display.viewTo||T.to().line<l.display.viewFrom)){var O=T.empty();(O||l.options.showCursorWhenSelecting)&&Z1(l,T.head,v),O||Lw(l,T,b)}}return p}function Z1(l,u,h){var p=Di(l,u,"div",null,null,!l.options.singleCursorHeightPerLine),v=h.appendChild(st("div"," ","CodeMirror-cursor"));if(v.style.left=p.left+"px",v.style.top=p.top+"px",v.style.height=Math.max(0,p.bottom-p.top)*l.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(l.getWrapperElement().className)){var b=Ed(l,u,"div",null,null);b.right-b.left>0&&(v.style.width=b.right-b.left+"px")}if(p.other){var C=h.appendChild(st("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));C.style.display="",C.style.left=p.other.left+"px",C.style.top=p.other.top+"px",C.style.height=(p.other.bottom-p.other.top)*.85+"px"}}function Md(l,u){return l.top-u.top||l.left-u.left}function Lw(l,u,h){var p=l.display,v=l.doc,b=document.createDocumentFragment(),C=Td(l.display),T=C.left,O=Math.max(p.sizerWidth,R(l)-p.sizer.offsetLeft)-C.right,I=v.direction=="ltr";function G(Xt,oe,be,ge){oe<0&&(oe=0),oe=Math.round(oe),ge=Math.round(ge),b.appendChild(st("div",null,"CodeMirror-selected","position: absolute; left: "+Xt+`px; 745 top: `+oe+"px; width: "+(be??O-Xt)+`px; 746 height: `+(ge-oe)+"px"))}function at(Xt,oe,be){var ge=ie(v,Xt),je=ge.text.length,ir,Wr;function br(Dr,Mn){return Ed(l,Vt(Xt,Dr),"div",ge,Mn)}function $n(Dr,Mn,nn){var Hr=$1(l,ge,null,Dr),Ir=Mn=="ltr"==(nn=="after")?"left":"right",Cr=nn=="after"?Hr.begin:Hr.end-(/\s/.test(ge.text.charAt(Hr.end-1))?2:1);return br(Cr,Ir)[Ir]}var An=tt(ge,v.direction);return Ae(An,oe||0,be??je,function(Dr,Mn,nn,Hr){var Ir=nn=="ltr",Cr=br(Dr,Ir?"left":"right"),Pn=br(Mn-1,Ir?"right":"left"),Ps=oe==null&&Dr==0,Wa=be==null&&Mn==je,pn=Hr==0,Gi=!An||Hr==An.length-1;if(Pn.top-Cr.top<=3){var Zr=(I?Ps:Wa)&&pn,vh=(I?Wa:Ps)&&Gi,fa=Zr?T:(Ir?Cr:Pn).left,ko=vh?O:(Ir?Pn:Cr).right;G(fa,Cr.top,ko-fa,Cr.bottom)}else{var So,wn,Ls,mh;Ir?(So=I&&Ps&&pn?T:Cr.left,wn=I?O:$n(Dr,nn,"before"),Ls=I?T:$n(Mn,nn,"after"),mh=I&&Wa&&Gi?O:Pn.right):(So=I?$n(Dr,nn,"before"):T,wn=!I&&Ps&&pn?O:Cr.right,Ls=!I&&Wa&&Gi?T:Pn.left,mh=I?$n(Mn,nn,"after"):O),G(So,Cr.top,wn-So,Cr.bottom),Cr.bottom<Pn.top&&G(T,Cr.bottom,null,Pn.top),G(Ls,Pn.top,mh-Ls,Pn.bottom)}(!ir||Md(Cr,ir)<0)&&(ir=Cr),Md(Pn,ir)<0&&(ir=Pn),(!Wr||Md(Cr,Wr)<0)&&(Wr=Cr),Md(Pn,Wr)<0&&(Wr=Pn)}),{start:ir,end:Wr}}var vt=u.from(),ft=u.to();if(vt.line==ft.line)at(vt.line,vt.ch,ft.ch);else{var Tt=ie(v,vt.line),jt=ie(v,ft.line),Wt=pe(Tt)==pe(jt),Yt=at(vt.line,vt.ch,Wt?Tt.text.length+1:null).end,ae=at(ft.line,Wt?0:null,ft.ch).start;Wt&&(Yt.top<ae.top-2?(G(Yt.right,Yt.top,null,Yt.bottom),G(T,ae.top,ae.left,ae.bottom)):G(Yt.right,Yt.top,ae.left-Yt.right,Yt.bottom)),Yt.bottom<ae.top&&G(T,Yt.bottom,null,ae.top)}h.appendChild(b)}function Wp(l){if(l.state.focused){var u=l.display;clearInterval(u.blinker);var h=!0;u.cursorDiv.style.visibility="",l.options.cursorBlinkRate>0?u.blinker=setInterval(function(){l.hasFocus()||bs(l),u.cursorDiv.style.visibility=(h=!h)?"":"hidden"},l.options.cursorBlinkRate):l.options.cursorBlinkRate<0&&(u.cursorDiv.style.visibility="hidden")}}function q1(l){l.hasFocus()||(l.display.input.focus(),l.state.focused||qp(l))}function Zp(l){l.state.delayingBlurEvent=!0,setTimeout(function(){l.state.delayingBlurEvent&&(l.state.delayingBlurEvent=!1,l.state.focused&&bs(l))},100)}function qp(l,u){l.state.delayingBlurEvent&&!l.state.draggingText&&(l.state.delayingBlurEvent=!1),l.options.readOnly!="nocursor"&&(l.state.focused||(Jt(l,"focus",l,u),l.state.focused=!0,J(l.display.wrapper,"CodeMirror-focused"),!l.curOp&&l.display.selForContextMenu!=l.doc.sel&&(l.display.input.reset(),d&&setTimeout(function(){return l.display.input.reset(!0)},20)),l.display.input.receivedFocus()),Wp(l))}function bs(l,u){l.state.delayingBlurEvent||(l.state.focused&&(Jt(l,"blur",l,u),l.state.focused=!1,X(l.display.wrapper,"CodeMirror-focused")),clearInterval(l.display.blinker),setTimeout(function(){l.state.focused||(l.display.shift=!1)},150))}function Pd(l){for(var u=l.display,h=u.lineDiv.offsetTop,p=Math.max(0,u.scroller.getBoundingClientRect().top),v=u.lineDiv.getBoundingClientRect().top,b=0,C=0;C<u.view.length;C++){var T=u.view[C],O=l.options.lineWrapping,I=void 0,G=0;if(!T.hidden){if(v+=T.line.height,s&&c<8){var at=T.node.offsetTop+T.node.offsetHeight;I=at-h,h=at}else{var vt=T.node.getBoundingClientRect();I=vt.bottom-vt.top,!O&&T.text.firstChild&&(G=T.text.firstChild.getBoundingClientRect().right-vt.left-1)}var ft=T.line.height-I;if((ft>.005||ft<-.005)&&(v<p&&(b-=ft),$e(T.line,I),K1(T.line),T.rest))for(var Tt=0;Tt<T.rest.length;Tt++)K1(T.rest[Tt]);if(G>l.display.sizerWidth){var jt=Math.ceil(G/ys(l.display));jt>l.display.maxLineLength&&(l.display.maxLineLength=jt,l.display.maxLine=T.line,l.display.maxLineChanged=!0)}}}Math.abs(b)>2&&(u.scroller.scrollTop+=b)}function K1(l){if(l.widgets)for(var u=0;u<l.widgets.length;++u){var h=l.widgets[u],p=h.node.parentNode;p&&(h.height=p.offsetHeight)}}function Ld(l,u,h){var p=h&&h.top!=null?Math.max(0,h.top):l.scroller.scrollTop;p=Math.floor(p-gs(l));var v=h&&h.bottom!=null?h.bottom:p+l.wrapper.clientHeight,b=tn(u,p),C=tn(u,v);if(h&&h.ensure){var T=h.ensure.from.line,O=h.ensure.to.line;T<b?(b=T,C=tn(u,bn(ie(u,T))+l.wrapper.clientHeight)):Math.min(O,u.lastLine())>=C&&(b=tn(u,bn(ie(u,O))-l.wrapper.clientHeight),C=O)}return{from:b,to:Math.max(C,b+1)}}function Dw(l,u){if(!re(l,"scrollCursorIntoView")){var h=l.display,p=h.sizer.getBoundingClientRect(),v=null;if(u.top+p.top<0?v=!0:u.bottom+p.top>(window.innerHeight||document.documentElement.clientHeight)&&(v=!1),v!=null&&!w){var b=st("div","â",null,`position: absolute; 747 top: `+(u.top-h.viewOffset-gs(l.display))+`px; 748 height: `+(u.bottom-u.top+M(l)+h.barHeight)+`px; 749 left: `+u.left+"px; width: "+Math.max(2,u.right-u.left)+"px;");l.display.lineSpace.appendChild(b),b.scrollIntoView(v),l.display.lineSpace.removeChild(b)}}}function Iw(l,u,h,p){p==null&&(p=0);var v;!l.options.lineWrapping&&u==h&&(h=u.sticky=="before"?Vt(u.line,u.ch+1,"before"):u,u=u.ch?Vt(u.line,u.sticky=="before"?u.ch-1:u.ch,"after"):u);for(var b=0;b<5;b++){var C=!1,T=Di(l,u),O=!h||h==u?T:Di(l,h);v={left:Math.min(T.left,O.left),top:Math.min(T.top,O.top)-p,right:Math.max(T.left,O.left),bottom:Math.max(T.bottom,O.bottom)+p};var I=Kp(l,v),G=l.doc.scrollTop,at=l.doc.scrollLeft;if(I.scrollTop!=null&&(Bl(l,I.scrollTop),Math.abs(l.doc.scrollTop-G)>1&&(C=!0)),I.scrollLeft!=null&&(xo(l,I.scrollLeft),Math.abs(l.doc.scrollLeft-at)>1&&(C=!0)),!C)break}return v}function jw(l,u){var h=Kp(l,u);h.scrollTop!=null&&Bl(l,h.scrollTop),h.scrollLeft!=null&&xo(l,h.scrollLeft)}function Kp(l,u){var h=l.display,p=ms(l.display);u.top<0&&(u.top=0);var v=l.curOp&&l.curOp.scrollTop!=null?l.curOp.scrollTop:h.scroller.scrollTop,b=it(l),C={};u.bottom-u.top>b&&(u.bottom=u.top+b);var T=l.doc.height+go(h),O=u.top<p,I=u.bottom>T-p;if(u.top<v)C.scrollTop=O?0:u.top;else if(u.bottom>v+b){var G=Math.min(u.top,(I?T:u.bottom)-b);G!=v&&(C.scrollTop=G)}var at=l.options.fixedGutter?0:h.gutters.offsetWidth,vt=l.curOp&&l.curOp.scrollLeft!=null?l.curOp.scrollLeft:h.scroller.scrollLeft-at,ft=R(l)-h.gutters.offsetWidth,Tt=u.right-u.left>ft;return Tt&&(u.right=u.left+ft),u.left<10?C.scrollLeft=0:u.left<vt?C.scrollLeft=Math.max(0,u.left+at-(Tt?0:10)):u.right>ft+vt-3&&(C.scrollLeft=u.right+(Tt?0:10)-ft),C}function Gp(l,u){u!=null&&(Dd(l),l.curOp.scrollTop=(l.curOp.scrollTop==null?l.doc.scrollTop:l.curOp.scrollTop)+u)}function xs(l){Dd(l);var u=l.getCursor();l.curOp.scrollToPos={from:u,to:u,margin:l.options.cursorScrollMargin}}function Rl(l,u,h){(u!=null||h!=null)&&Dd(l),u!=null&&(l.curOp.scrollLeft=u),h!=null&&(l.curOp.scrollTop=h)}function Nw(l,u){Dd(l),l.curOp.scrollToPos=u}function Dd(l){var u=l.curOp.scrollToPos;if(u){l.curOp.scrollToPos=null;var h=H1(l,u.from),p=H1(l,u.to);G1(l,h,p,u.margin)}}function G1(l,u,h,p){var v=Kp(l,{left:Math.min(u.left,h.left),top:Math.min(u.top,h.top)-p,right:Math.max(u.right,h.right),bottom:Math.max(u.bottom,h.bottom)+p});Rl(l,v.scrollLeft,v.scrollTop)}function Bl(l,u){Math.abs(l.doc.scrollTop-u)<2||(e||Xp(l,{top:u}),Y1(l,u,!0),e&&Xp(l),Fl(l,100))}function Y1(l,u,h){u=Math.max(0,Math.min(l.display.scroller.scrollHeight-l.display.scroller.clientHeight,u)),!(l.display.scroller.scrollTop==u&&!h)&&(l.doc.scrollTop=u,l.display.scrollbars.setScrollTop(u),l.display.scroller.scrollTop!=u&&(l.display.scroller.scrollTop=u))}function xo(l,u,h,p){u=Math.max(0,Math.min(u,l.display.scroller.scrollWidth-l.display.scroller.clientWidth)),!((h?u==l.doc.scrollLeft:Math.abs(l.doc.scrollLeft-u)<2)&&!p)&&(l.doc.scrollLeft=u,em(l),l.display.scroller.scrollLeft!=u&&(l.display.scroller.scrollLeft=u),l.display.scrollbars.setScrollLeft(u))}function Vl(l){var u=l.display,h=u.gutters.offsetWidth,p=Math.round(l.doc.height+go(l.display));return{clientHeight:u.scroller.clientHeight,viewHeight:u.wrapper.clientHeight,scrollWidth:u.scroller.scrollWidth,clientWidth:u.scroller.clientWidth,viewWidth:u.wrapper.clientWidth,barLeft:l.options.fixedGutter?h:0,docHeight:p,scrollHeight:p+M(l)+u.barHeight,nativeBarWidth:u.nativeBarWidth,gutterWidth:h}}var wo=function(l,u,h){this.cm=h;var p=this.vert=st("div",[st("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),v=this.horiz=st("div",[st("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");p.tabIndex=v.tabIndex=-1,l(p),l(v),pt(p,"scroll",function(){p.clientHeight&&u(p.scrollTop,"vertical")}),pt(v,"scroll",function(){v.clientWidth&&u(v.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,s&&c<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};wo.prototype.update=function(l){var u=l.scrollWidth>l.clientWidth+1,h=l.scrollHeight>l.clientHeight+1,p=l.nativeBarWidth;if(h){this.vert.style.display="block",this.vert.style.bottom=u?p+"px":"0";var v=l.viewHeight-(u?p:0);this.vert.firstChild.style.height=Math.max(0,l.scrollHeight-l.clientHeight+v)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(u){this.horiz.style.display="block",this.horiz.style.right=h?p+"px":"0",this.horiz.style.left=l.barLeft+"px";var b=l.viewWidth-l.barLeft-(h?p:0);this.horiz.firstChild.style.width=Math.max(0,l.scrollWidth-l.clientWidth+b)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&l.clientHeight>0&&(p==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:h?p:0,bottom:u?p:0}},wo.prototype.setScrollLeft=function(l){this.horiz.scrollLeft!=l&&(this.horiz.scrollLeft=l),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},wo.prototype.setScrollTop=function(l){this.vert.scrollTop!=l&&(this.vert.scrollTop=l),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},wo.prototype.zeroWidthHack=function(){var l=L&&!x?"12px":"18px";this.horiz.style.height=this.vert.style.width=l,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Bt,this.disableVert=new Bt},wo.prototype.enableZeroWidthBar=function(l,u,h){l.style.pointerEvents="auto";function p(){var v=l.getBoundingClientRect(),b=h=="vert"?document.elementFromPoint(v.right-1,(v.top+v.bottom)/2):document.elementFromPoint((v.right+v.left)/2,v.bottom-1);b!=l?l.style.pointerEvents="none":u.set(1e3,p)}u.set(1e3,p)},wo.prototype.clear=function(){var l=this.horiz.parentNode;l.removeChild(this.horiz),l.removeChild(this.vert)};var Hl=function(){};Hl.prototype.update=function(){return{bottom:0,right:0}},Hl.prototype.setScrollLeft=function(){},Hl.prototype.setScrollTop=function(){},Hl.prototype.clear=function(){};function ws(l,u){u||(u=Vl(l));var h=l.display.barWidth,p=l.display.barHeight;X1(l,u);for(var v=0;v<4&&h!=l.display.barWidth||p!=l.display.barHeight;v++)h!=l.display.barWidth&&l.options.lineWrapping&&Pd(l),X1(l,Vl(l)),h=l.display.barWidth,p=l.display.barHeight}function X1(l,u){var h=l.display,p=h.scrollbars.update(u);h.sizer.style.paddingRight=(h.barWidth=p.right)+"px",h.sizer.style.paddingBottom=(h.barHeight=p.bottom)+"px",h.heightForcer.style.borderBottom=p.bottom+"px solid transparent",p.right&&p.bottom?(h.scrollbarFiller.style.display="block",h.scrollbarFiller.style.height=p.bottom+"px",h.scrollbarFiller.style.width=p.right+"px"):h.scrollbarFiller.style.display="",p.bottom&&l.options.coverGutterNextToScrollbar&&l.options.fixedGutter?(h.gutterFiller.style.display="block",h.gutterFiller.style.height=p.bottom+"px",h.gutterFiller.style.width=u.gutterWidth+"px"):h.gutterFiller.style.display=""}var J1={native:wo,null:Hl};function Q1(l){l.display.scrollbars&&(l.display.scrollbars.clear(),l.display.scrollbars.addClass&&X(l.display.wrapper,l.display.scrollbars.addClass)),l.display.scrollbars=new J1[l.options.scrollbarStyle](function(u){l.display.wrapper.insertBefore(u,l.display.scrollbarFiller),pt(u,"mousedown",function(){l.state.focused&&setTimeout(function(){return l.display.input.focus()},0)}),u.setAttribute("cm-not-content","true")},function(u,h){h=="horizontal"?xo(l,u):Bl(l,u)},l),l.display.scrollbars.addClass&&J(l.display.wrapper,l.display.scrollbars.addClass)}var Rw=0;function _o(l){l.curOp={cm:l,viewChanged:!1,startHeight:l.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:++Rw,markArrays:null},Ol(l.curOp)}function Co(l){var u=l.curOp;u&&El(u,function(h){for(var p=0;p<h.ops.length;p++)h.ops[p].cm.curOp=null;Bw(h)})}function Bw(l){for(var u=l.ops,h=0;h<u.length;h++)Vw(u[h]);for(var p=0;p<u.length;p++)Hw(u[p]);for(var v=0;v<u.length;v++)Fw(u[v]);for(var b=0;b<u.length;b++)$w(u[b]);for(var C=0;C<u.length;C++)zw(u[C])}function Vw(l){var u=l.cm,h=u.display;Ww(u),l.updateMaxLine&&ds(u),l.mustUpdate=l.viewChanged||l.forceUpdate||l.scrollTop!=null||l.scrollToPos&&(l.scrollToPos.from.line<h.viewFrom||l.scrollToPos.to.line>=h.viewTo)||h.maxLineChanged&&u.options.lineWrapping,l.update=l.mustUpdate&&new Id(u,l.mustUpdate&&{top:l.scrollTop,ensure:l.scrollToPos},l.forceUpdate)}function Hw(l){l.updatedDisplay=l.mustUpdate&&Yp(l.cm,l.update)}function Fw(l){var u=l.cm,h=u.display;l.updatedDisplay&&Pd(u),l.barMeasure=Vl(u),h.maxLineChanged&&!u.options.lineWrapping&&(l.adjustWidthTo=Dt(u,h.maxLine,h.maxLine.text.length).left+3,u.display.sizerWidth=l.adjustWidthTo,l.barMeasure.scrollWidth=Math.max(h.scroller.clientWidth,h.sizer.offsetLeft+l.adjustWidthTo+M(u)+u.display.barWidth),l.maxScrollLeft=Math.max(0,h.sizer.offsetLeft+l.adjustWidthTo-R(u))),(l.updatedDisplay||l.selectionChanged)&&(l.preparedSelection=h.input.prepareSelection())}function $w(l){var u=l.cm;l.adjustWidthTo!=null&&(u.display.sizer.style.minWidth=l.adjustWidthTo+"px",l.maxScrollLeft<u.doc.scrollLeft&&xo(u,Math.min(u.display.scroller.scrollLeft,l.maxScrollLeft),!0),u.display.maxLineChanged=!1);var h=l.focus&&l.focus==Q();l.preparedSelection&&u.display.input.showSelection(l.preparedSelection,h),(l.updatedDisplay||l.startHeight!=u.doc.height)&&ws(u,l.barMeasure),l.updatedDisplay&&Qp(u,l.barMeasure),l.selectionChanged&&Wp(u),u.state.focused&&l.updateInput&&u.display.input.reset(l.typing),h&&q1(l.cm)}function zw(l){var u=l.cm,h=u.display,p=u.doc;if(l.updatedDisplay&&tm(u,l.update),h.wheelStartX!=null&&(l.scrollTop!=null||l.scrollLeft!=null||l.scrollToPos)&&(h.wheelStartX=h.wheelStartY=null),l.scrollTop!=null&&Y1(u,l.scrollTop,l.forceScroll),l.scrollLeft!=null&&xo(u,l.scrollLeft,!0,!0),l.scrollToPos){var v=Iw(u,Ut(p,l.scrollToPos.from),Ut(p,l.scrollToPos.to),l.scrollToPos.margin);Dw(u,v)}var b=l.maybeHiddenMarkers,C=l.maybeUnhiddenMarkers;if(b)for(var T=0;T<b.length;++T)b[T].lines.length||Jt(b[T],"hide");if(C)for(var O=0;O<C.length;++O)C[O].lines.length&&Jt(C[O],"unhide");h.wrapper.offsetHeight&&(p.scrollTop=u.display.scroller.scrollTop),l.changeObjs&&Jt(u,"changes",u,l.changeObjs),l.update&&l.update.finish()}function Fn(l,u){if(l.curOp)return u();_o(l);try{return u()}finally{Co(l)}}function zr(l,u){return function(){if(l.curOp)return u.apply(l,arguments);_o(l);try{return u.apply(l,arguments)}finally{Co(l)}}}function xn(l){return function(){if(this.curOp)return l.apply(this,arguments);_o(this);try{return l.apply(this,arguments)}finally{Co(this)}}}function Ur(l){return function(){var u=this.cm;if(!u||u.curOp)return l.apply(this,arguments);_o(u);try{return l.apply(this,arguments)}finally{Co(u)}}}function Fl(l,u){l.doc.highlightFrontier<l.display.viewTo&&l.state.highlight.set(u,wt(Uw,l))}function Uw(l){var u=l.doc;if(!(u.highlightFrontier>=l.display.viewTo)){var h=+new Date+l.options.workTime,p=vi(l,u.highlightFrontier),v=[];u.iter(p.line,Math.min(u.first+u.size,l.display.viewTo+500),function(b){if(p.line>=l.display.viewFrom){var C=b.styles,T=b.text.length>l.options.maxHighlightLength?Br(u.mode,p.state):null,O=Tn(l,b,p,!0);T&&(p.state=T),b.styles=O.styles;var I=b.styleClasses,G=O.classes;G?b.styleClasses=G:I&&(b.styleClasses=null);for(var at=!C||C.length!=b.styles.length||I!=G&&(!I||!G||I.bgClass!=G.bgClass||I.textClass!=G.textClass),vt=0;!at&&vt<C.length;++vt)at=C[vt]!=b.styles[vt];at&&v.push(p.line),b.stateAfter=p.save(),p.nextLine()}else b.text.length<=l.options.maxHighlightLength&&lo(l,b.text,p),b.stateAfter=p.line%5==0?p.save():null,p.nextLine();if(+new Date>h)return Fl(l,l.options.workDelay),!0}),u.highlightFrontier=p.line,u.modeFrontier=Math.max(u.modeFrontier,p.line),v.length&&Fn(l,function(){for(var b=0;b<v.length;b++)Ba(l,v[b],"text")})}}var Id=function(l,u,h){var p=l.display;this.viewport=u,this.visible=Ld(p,l.doc,u),this.editorIsHidden=!p.wrapper.offsetWidth,this.wrapperHeight=p.wrapper.clientHeight,this.wrapperWidth=p.wrapper.clientWidth,this.oldDisplayWidth=R(l),this.force=h,this.dims=$p(l),this.events=[]};Id.prototype.signal=function(l,u){Ce(l,u)&&this.events.push(arguments)},Id.prototype.finish=function(){for(var l=0;l<this.events.length;l++)Jt.apply(null,this.events[l])};function Ww(l){var u=l.display;!u.scrollbarsClipped&&u.scroller.offsetWidth&&(u.nativeBarWidth=u.scroller.offsetWidth-u.scroller.clientWidth,u.heightForcer.style.height=M(l)+"px",u.sizer.style.marginBottom=-u.nativeBarWidth+"px",u.sizer.style.borderRightWidth=M(l)+"px",u.scrollbarsClipped=!0)}function Zw(l){if(l.hasFocus())return null;var u=Q();if(!u||!_(l.display.lineDiv,u))return null;var h={activeElt:u};if(window.getSelection){var p=window.getSelection();p.anchorNode&&p.extend&&_(l.display.lineDiv,p.anchorNode)&&(h.anchorNode=p.anchorNode,h.anchorOffset=p.anchorOffset,h.focusNode=p.focusNode,h.focusOffset=p.focusOffset)}return h}function qw(l){if(!(!l||!l.activeElt||l.activeElt==Q())&&(l.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(l.activeElt.nodeName)&&l.anchorNode&&_(document.body,l.anchorNode)&&_(document.body,l.focusNode))){var u=window.getSelection(),h=document.createRange();h.setEnd(l.anchorNode,l.anchorOffset),h.collapse(!1),u.removeAllRanges(),u.addRange(h),u.extend(l.focusNode,l.focusOffset)}}function Yp(l,u){var h=l.display,p=l.doc;if(u.editorIsHidden)return Va(l),!1;if(!u.force&&u.visible.from>=h.viewFrom&&u.visible.to<=h.viewTo&&(h.updateLineNumbers==null||h.updateLineNumbers>=h.viewTo)&&h.renderedView==h.view&&U1(l)==0)return!1;rm(l)&&(Va(l),u.dims=$p(l));var v=p.first+p.size,b=Math.max(u.visible.from-l.options.viewportMargin,p.first),C=Math.min(v,u.visible.to+l.options.viewportMargin);h.viewFrom<b&&b-h.viewFrom<20&&(b=Math.max(p.first,h.viewFrom)),h.viewTo>C&&h.viewTo-C<20&&(C=Math.min(v,h.viewTo)),gn&&(b=ii(l.doc,b),C=cn(l.doc,C));var T=b!=h.viewFrom||C!=h.viewTo||h.lastWrapHeight!=u.wrapperHeight||h.lastWrapWidth!=u.wrapperWidth;Pw(l,b,C),h.viewOffset=bn(ie(l.doc,h.viewFrom)),l.display.mover.style.top=h.viewOffset+"px";var O=U1(l);if(!T&&O==0&&!u.force&&h.renderedView==h.view&&(h.updateLineNumbers==null||h.updateLineNumbers>=h.viewTo))return!1;var I=Zw(l);return O>4&&(h.lineDiv.style.display="none"),Kw(l,h.updateLineNumbers,u.dims),O>4&&(h.lineDiv.style.display=""),h.renderedView=h.view,qw(I),Z(h.cursorDiv),Z(h.selectionDiv),h.gutters.style.height=h.sizer.style.minHeight=0,T&&(h.lastWrapHeight=u.wrapperHeight,h.lastWrapWidth=u.wrapperWidth,Fl(l,400)),h.updateLineNumbers=null,!0}function tm(l,u){for(var h=u.viewport,p=!0;;p=!1){if(!p||!l.options.lineWrapping||u.oldDisplayWidth==R(l)){if(h&&h.top!=null&&(h={top:Math.min(l.doc.height+go(l.display)-it(l),h.top)}),u.visible=Ld(l.display,l.doc,h),u.visible.from>=l.display.viewFrom&&u.visible.to<=l.display.viewTo)break}else p&&(u.visible=Ld(l.display,l.doc,h));if(!Yp(l,u))break;Pd(l);var v=Vl(l);Nl(l),ws(l,v),Qp(l,v),u.force=!1}u.signal(l,"update",l),(l.display.viewFrom!=l.display.reportedViewFrom||l.display.viewTo!=l.display.reportedViewTo)&&(u.signal(l,"viewportChange",l,l.display.viewFrom,l.display.viewTo),l.display.reportedViewFrom=l.display.viewFrom,l.display.reportedViewTo=l.display.viewTo)}function Xp(l,u){var h=new Id(l,u);if(Yp(l,h)){Pd(l),tm(l,h);var p=Vl(l);Nl(l),ws(l,p),Qp(l,p),h.finish()}}function Kw(l,u,h){var p=l.display,v=l.options.lineNumbers,b=p.lineDiv,C=b.firstChild;function T(Tt){var jt=Tt.nextSibling;return d&&L&&l.display.currentWheelTarget==Tt?Tt.style.display="none":Tt.parentNode.removeChild(Tt),jt}for(var O=p.view,I=p.viewFrom,G=0;G<O.length;G++){var at=O[G];if(!at.hidden)if(!at.node||at.node.parentNode!=b){var vt=kd(l,at,I,h);b.insertBefore(vt,C)}else{for(;C!=at.node;)C=T(C);var ft=v&&u!=null&&u<=I&&at.lineNumber;at.changes&&(se(at.changes,"gutter")>-1&&(ft=!1),Al(l,at,I,h)),ft&&(Z(at.lineNumber),at.lineNumber.appendChild(document.createTextNode(ti(l.options,I)))),C=at.node.nextSibling}I+=at.size}for(;C;)C=T(C)}function Jp(l){var u=l.gutters.offsetWidth;l.sizer.style.marginLeft=u+"px",lr(l,"gutterChanged",l)}function Qp(l,u){l.display.sizer.style.minHeight=u.docHeight+"px",l.display.heightForcer.style.top=u.docHeight+"px",l.display.gutters.style.height=u.docHeight+l.display.barHeight+M(l)+"px"}function em(l){var u=l.display,h=u.view;if(!(!u.alignWidgets&&(!u.gutters.firstChild||!l.options.fixedGutter))){for(var p=zp(u)-u.scroller.scrollLeft+l.doc.scrollLeft,v=u.gutters.offsetWidth,b=p+"px",C=0;C<h.length;C++)if(!h[C].hidden){l.options.fixedGutter&&(h[C].gutter&&(h[C].gutter.style.left=b),h[C].gutterBackground&&(h[C].gutterBackground.style.left=b));var T=h[C].alignable;if(T)for(var O=0;O<T.length;O++)T[O].style.left=b}l.options.fixedGutter&&(u.gutters.style.left=p+v+"px")}}function rm(l){if(!l.options.lineNumbers)return!1;var u=l.doc,h=ti(l.options,u.first+u.size-1),p=l.display;if(h.length!=p.lineNumChars){var v=p.measure.appendChild(st("div",[st("div",h)],"CodeMirror-linenumber CodeMirror-gutter-elt")),b=v.firstChild.offsetWidth,C=v.offsetWidth-b;return p.lineGutter.style.width="",p.lineNumInnerWidth=Math.max(b,p.lineGutter.offsetWidth-C)+1,p.lineNumWidth=p.lineNumInnerWidth+C,p.lineNumChars=p.lineNumInnerWidth?h.length:-1,p.lineGutter.style.width=p.lineNumWidth+"px",Jp(l.display),!0}return!1}function th(l,u){for(var h=[],p=!1,v=0;v<l.length;v++){var b=l[v],C=null;if(typeof b!="string"&&(C=b.style,b=b.className),b=="CodeMirror-linenumbers")if(u)p=!0;else continue;h.push({className:b,style:C})}return u&&!p&&h.push({className:"CodeMirror-linenumbers",style:null}),h}function nm(l){var u=l.gutters,h=l.gutterSpecs;Z(u),l.lineGutter=null;for(var p=0;p<h.length;++p){var v=h[p],b=v.className,C=v.style,T=u.appendChild(st("div",null,"CodeMirror-gutter "+b));C&&(T.style.cssText=C),b=="CodeMirror-linenumbers"&&(l.lineGutter=T,T.style.width=(l.lineNumWidth||1)+"px")}u.style.display=h.length?"":"none",Jp(l)}function $l(l){nm(l.display),On(l),em(l)}function Gw(l,u,h,p){var v=this;this.input=h,v.scrollbarFiller=st("div",null,"CodeMirror-scrollbar-filler"),v.scrollbarFiller.setAttribute("cm-not-content","true"),v.gutterFiller=st("div",null,"CodeMirror-gutter-filler"),v.gutterFiller.setAttribute("cm-not-content","true"),v.lineDiv=q("div",null,"CodeMirror-code"),v.selectionDiv=st("div",null,null,"position: relative; z-index: 1"),v.cursorDiv=st("div",null,"CodeMirror-cursors"),v.measure=st("div",null,"CodeMirror-measure"),v.lineMeasure=st("div",null,"CodeMirror-measure"),v.lineSpace=q("div",[v.measure,v.lineMeasure,v.selectionDiv,v.cursorDiv,v.lineDiv],null,"position: relative; outline: none");var b=q("div",[v.lineSpace],"CodeMirror-lines");v.mover=st("div",[b],null,"position: relative"),v.sizer=st("div",[v.mover],"CodeMirror-sizer"),v.sizerWidth=null,v.heightForcer=st("div",null,null,"position: absolute; height: "+ue+"px; width: 1px;"),v.gutters=st("div",null,"CodeMirror-gutters"),v.lineGutter=null,v.scroller=st("div",[v.sizer,v.heightForcer,v.gutters],"CodeMirror-scroll"),v.scroller.setAttribute("tabIndex","-1"),v.wrapper=st("div",[v.scrollbarFiller,v.gutterFiller,v.scroller],"CodeMirror"),v.wrapper.setAttribute("translate","no"),s&&c<8&&(v.gutters.style.zIndex=-1,v.scroller.style.paddingRight=0),!d&&!(e&&A)&&(v.scroller.draggable=!0),l&&(l.appendChild?l.appendChild(v.wrapper):l(v.wrapper)),v.viewFrom=v.viewTo=u.first,v.reportedViewFrom=v.reportedViewTo=u.first,v.view=[],v.renderedView=null,v.externalMeasured=null,v.viewOffset=0,v.lastWrapHeight=v.lastWrapWidth=0,v.updateLineNumbers=null,v.nativeBarWidth=v.barHeight=v.barWidth=0,v.scrollbarsClipped=!1,v.lineNumWidth=v.lineNumInnerWidth=v.lineNumChars=null,v.alignWidgets=!1,v.cachedCharWidth=v.cachedTextHeight=v.cachedPaddingH=null,v.maxLine=null,v.maxLineLength=0,v.maxLineChanged=!1,v.wheelDX=v.wheelDY=v.wheelStartX=v.wheelStartY=null,v.shift=!1,v.selForContextMenu=null,v.activeTouch=null,v.gutterSpecs=th(p.gutters,p.lineNumbers),nm(v),h.init(v)}var jd=0,oi=null;s?oi=-.53:e?oi=15:g?oi=-.7:y&&(oi=-1/3);function im(l){var u=l.wheelDeltaX,h=l.wheelDeltaY;return u==null&&l.detail&&l.axis==l.HORIZONTAL_AXIS&&(u=l.detail),h==null&&l.detail&&l.axis==l.VERTICAL_AXIS?h=l.detail:h==null&&(h=l.wheelDelta),{x:u,y:h}}function Yw(l){var u=im(l);return u.x*=oi,u.y*=oi,u}function am(l,u){var h=im(u),p=h.x,v=h.y,b=l.display,C=b.scroller,T=C.scrollWidth>C.clientWidth,O=C.scrollHeight>C.clientHeight;if(p&&T||v&&O){if(v&&L&&d){t:for(var I=u.target,G=b.view;I!=C;I=I.parentNode)for(var at=0;at<G.length;at++)if(G[at].node==I){l.display.currentWheelTarget=I;break t}}if(p&&!e&&!m&&oi!=null){v&&O&&Bl(l,Math.max(0,C.scrollTop+v*oi)),xo(l,Math.max(0,C.scrollLeft+p*oi)),(!v||v&&O)&&we(u),b.wheelStartX=null;return}if(v&&oi!=null){var vt=v*oi,ft=l.doc.scrollTop,Tt=ft+b.wrapper.clientHeight;vt<0?ft=Math.max(0,ft+vt-50):Tt=Math.min(l.doc.height,Tt+vt+50),Xp(l,{top:ft,bottom:Tt})}jd<20&&(b.wheelStartX==null?(b.wheelStartX=C.scrollLeft,b.wheelStartY=C.scrollTop,b.wheelDX=p,b.wheelDY=v,setTimeout(function(){if(b.wheelStartX!=null){var jt=C.scrollLeft-b.wheelStartX,Wt=C.scrollTop-b.wheelStartY,Yt=Wt&&b.wheelDY&&Wt/b.wheelDY||jt&&b.wheelDX&&jt/b.wheelDX;b.wheelStartX=b.wheelStartY=null,Yt&&(oi=(oi*jd+Yt)/(jd+1),++jd)}},200)):(b.wheelDX+=p,b.wheelDY+=v))}}var si=function(l,u){this.ranges=l,this.primIndex=u};si.prototype.primary=function(){return this.ranges[this.primIndex]},si.prototype.equals=function(l){if(l==this)return!0;if(l.primIndex!=this.primIndex||l.ranges.length!=this.ranges.length)return!1;for(var u=0;u<this.ranges.length;u++){var h=this.ranges[u],p=l.ranges[u];if(!Vn(h.anchor,p.anchor)||!Vn(h.head,p.head))return!1}return!0},si.prototype.deepCopy=function(){for(var l=[],u=0;u<this.ranges.length;u++)l[u]=new Je(N(this.ranges[u].anchor),N(this.ranges[u].head));return new si(l,this.primIndex)},si.prototype.somethingSelected=function(){for(var l=0;l<this.ranges.length;l++)if(!this.ranges[l].empty())return!0;return!1},si.prototype.contains=function(l,u){u||(u=l);for(var h=0;h<this.ranges.length;h++){var p=this.ranges[h];if(he(u,p.from())>=0&&he(l,p.to())<=0)return h}return-1};var Je=function(l,u){this.anchor=l,this.head=u};Je.prototype.from=function(){return Et(this.anchor,this.head)},Je.prototype.to=function(){return nt(this.anchor,this.head)},Je.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ii(l,u,h){var p=l&&l.options.selectionsMayTouch,v=u[h];u.sort(function(vt,ft){return he(vt.from(),ft.from())}),h=se(u,v);for(var b=1;b<u.length;b++){var C=u[b],T=u[b-1],O=he(T.to(),C.from());if(p&&!C.empty()?O>0:O>=0){var I=Et(T.from(),C.from()),G=nt(T.to(),C.to()),at=T.empty()?C.from()==C.head:T.from()==T.head;b<=h&&--h,u.splice(--b,2,new Je(at?G:I,at?I:G))}}return new si(u,h)}function Ha(l,u){return new si([new Je(l,u||l)],0)}function Fa(l){return l.text?Vt(l.from.line+l.text.length-1,Zt(l.text).length+(l.text.length==1?l.from.ch:0)):l.to}function om(l,u){if(he(l,u.from)<0)return l;if(he(l,u.to)<=0)return Fa(u);var h=l.line+u.text.length-(u.to.line-u.from.line)-1,p=l.ch;return l.line==u.to.line&&(p+=Fa(u).ch-u.to.ch),Vt(h,p)}function eh(l,u){for(var h=[],p=0;p<l.sel.ranges.length;p++){var v=l.sel.ranges[p];h.push(new Je(om(v.anchor,u),om(v.head,u)))}return Ii(l.cm,h,l.sel.primIndex)}function sm(l,u,h){return l.line==u.line?Vt(h.line,l.ch-u.ch+h.ch):Vt(h.line+(l.line-u.line),l.ch)}function Xw(l,u,h){for(var p=[],v=Vt(l.first,0),b=v,C=0;C<u.length;C++){var T=u[C],O=sm(T.from,v,b),I=sm(Fa(T),v,b);if(v=T.to,b=I,h=="around"){var G=l.sel.ranges[C],at=he(G.head,G.anchor)<0;p[C]=new Je(at?I:O,at?O:I)}else p[C]=new Je(O,O)}return new si(p,l.sel.primIndex)}function rh(l){l.doc.mode=Lr(l.options,l.doc.modeOption),zl(l)}function zl(l){l.doc.iter(function(u){u.stateAfter&&(u.stateAfter=null),u.styles&&(u.styles=null)}),l.doc.modeFrontier=l.doc.highlightFrontier=l.doc.first,Fl(l,100),l.state.modeGen++,l.curOp&&On(l)}function lm(l,u){return u.from.ch==0&&u.to.ch==0&&Zt(u.text)==""&&(!l.cm||l.cm.options.wholeLineUpdateBefore)}function nh(l,u,h,p){function v(ae){return h?h[ae]:null}function b(ae,Xt,oe){vd(ae,Xt,oe,p),lr(ae,"change",ae,u)}function C(ae,Xt){for(var oe=[],be=ae;be<Xt;++be)oe.push(new Li(I[be],v(be),p));return oe}var T=u.from,O=u.to,I=u.text,G=ie(l,T.line),at=ie(l,O.line),vt=Zt(I),ft=v(I.length-1),Tt=O.line-T.line;if(u.full)l.insert(0,C(0,I.length)),l.remove(I.length,l.size-I.length);else if(lm(l,u)){var jt=C(0,I.length-1);b(at,at.text,ft),Tt&&l.remove(T.line,Tt),jt.length&&l.insert(T.line,jt)}else if(G==at)if(I.length==1)b(G,G.text.slice(0,T.ch)+vt+G.text.slice(O.ch),ft);else{var Wt=C(1,I.length-1);Wt.push(new Li(vt+G.text.slice(O.ch),ft,p)),b(G,G.text.slice(0,T.ch)+I[0],v(0)),l.insert(T.line+1,Wt)}else if(I.length==1)b(G,G.text.slice(0,T.ch)+I[0]+at.text.slice(O.ch),v(0)),l.remove(T.line+1,Tt);else{b(G,G.text.slice(0,T.ch)+I[0],v(0)),b(at,vt+at.text.slice(O.ch),ft);var Yt=C(1,I.length-1);Tt>1&&l.remove(T.line+1,Tt-1),l.insert(T.line+1,Yt)}lr(l,"change",l,u)}function $a(l,u,h){function p(v,b,C){if(v.linked)for(var T=0;T<v.linked.length;++T){var O=v.linked[T];if(O.doc!=b){var I=C&&O.sharedHist;h&&!I||(u(O.doc,I),p(O.doc,v,I))}}}p(l,null,!0)}function cm(l,u){if(u.cm)throw new Error("This document is already in use.");l.doc=u,u.cm=l,Up(l),rh(l),dm(l),l.options.direction=u.direction,l.options.lineWrapping||ds(l),l.options.mode=u.modeOption,On(l)}function dm(l){(l.doc.direction=="rtl"?J:X)(l.display.lineDiv,"CodeMirror-rtl")}function Jw(l){Fn(l,function(){dm(l),On(l)})}function Nd(l){this.done=[],this.undone=[],this.undoDepth=l?l.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=l?l.maxGeneration:1}function ih(l,u){var h={from:N(u.from),to:Fa(u),text:Sn(l,u.from,u.to)};return pm(l,h,u.from.line,u.to.line+1),$a(l,function(p){return pm(p,h,u.from.line,u.to.line+1)},!0),h}function um(l){for(;l.length;){var u=Zt(l);if(u.ranges)l.pop();else break}}function Qw(l,u){if(u)return um(l.done),Zt(l.done);if(l.done.length&&!Zt(l.done).ranges)return Zt(l.done);if(l.done.length>1&&!l.done[l.done.length-2].ranges)return l.done.pop(),Zt(l.done)}function fm(l,u,h,p){var v=l.history;v.undone.length=0;var b=+new Date,C,T;if((v.lastOp==p||v.lastOrigin==u.origin&&u.origin&&(u.origin.charAt(0)=="+"&&v.lastModTime>b-(l.cm?l.cm.options.historyEventDelay:500)||u.origin.charAt(0)=="*"))&&(C=Qw(v,v.lastOp==p)))T=Zt(C.changes),he(u.from,u.to)==0&&he(u.from,T.to)==0?T.to=Fa(u):C.changes.push(ih(l,u));else{var O=Zt(v.done);for((!O||!O.ranges)&&Rd(l.sel,v.done),C={changes:[ih(l,u)],generation:v.generation},v.done.push(C);v.done.length>v.undoDepth;)v.done.shift(),v.done[0].ranges||v.done.shift()}v.done.push(h),v.generation=++v.maxGeneration,v.lastModTime=v.lastSelTime=b,v.lastOp=v.lastSelOp=p,v.lastOrigin=v.lastSelOrigin=u.origin,T||Jt(l,"historyAdded")}function t4(l,u,h,p){var v=u.charAt(0);return v=="*"||v=="+"&&h.ranges.length==p.ranges.length&&h.somethingSelected()==p.somethingSelected()&&new Date-l.history.lastSelTime<=(l.cm?l.cm.options.historyEventDelay:500)}function e4(l,u,h,p){var v=l.history,b=p&&p.origin;h==v.lastSelOp||b&&v.lastSelOrigin==b&&(v.lastModTime==v.lastSelTime&&v.lastOrigin==b||t4(l,b,Zt(v.done),u))?v.done[v.done.length-1]=u:Rd(u,v.done),v.lastSelTime=+new Date,v.lastSelOrigin=b,v.lastSelOp=h,p&&p.clearRedo!==!1&&um(v.undone)}function Rd(l,u){var h=Zt(u);h&&h.ranges&&h.equals(l)||u.push(l)}function pm(l,u,h,p){var v=u["spans_"+l.id],b=0;l.iter(Math.max(l.first,h),Math.min(l.first+l.size,p),function(C){C.markedSpans&&((v||(v=u["spans_"+l.id]={}))[b]=C.markedSpans),++b})}function r4(l){if(!l)return null;for(var u,h=0;h<l.length;++h)l[h].marker.explicitlyCleared?u||(u=l.slice(0,h)):u&&u.push(l[h]);return u?u.length?u:null:l}function n4(l,u){var h=u["spans_"+l.id];if(!h)return null;for(var p=[],v=0;v<u.text.length;++v)p.push(r4(h[v]));return p}function hm(l,u){var h=n4(l,u),p=Hn(l,u);if(!h)return p;if(!p)return h;for(var v=0;v<h.length;++v){var b=h[v],C=p[v];if(b&&C)t:for(var T=0;T<C.length;++T){for(var O=C[T],I=0;I<b.length;++I)if(b[I].marker==O.marker)continue t;b.push(O)}else C&&(h[v]=C)}return h}function _s(l,u,h){for(var p=[],v=0;v<l.length;++v){var b=l[v];if(b.ranges){p.push(h?si.prototype.deepCopy.call(b):b);continue}var C=b.changes,T=[];p.push({changes:T});for(var O=0;O<C.length;++O){var I=C[O],G=void 0;if(T.push({from:I.from,to:I.to,text:I.text}),u)for(var at in I)(G=at.match(/^spans_(\d+)$/))&&se(u,Number(G[1]))>-1&&(Zt(T)[at]=I[at],delete I[at])}}return p}function ah(l,u,h,p){if(p){var v=l.anchor;if(h){var b=he(u,v)<0;b!=he(h,v)<0?(v=u,u=h):b!=he(u,h)<0&&(u=h)}return new Je(v,u)}else return new Je(h||u,u)}function Bd(l,u,h,p,v){v==null&&(v=l.cm&&(l.cm.display.shift||l.extend)),fn(l,new si([ah(l.sel.primary(),u,h,v)],0),p)}function gm(l,u,h){for(var p=[],v=l.cm&&(l.cm.display.shift||l.extend),b=0;b<l.sel.ranges.length;b++)p[b]=ah(l.sel.ranges[b],u[b],null,v);var C=Ii(l.cm,p,l.sel.primIndex);fn(l,C,h)}function oh(l,u,h,p){var v=l.sel.ranges.slice(0);v[u]=h,fn(l,Ii(l.cm,v,l.sel.primIndex),p)}function vm(l,u,h,p){fn(l,Ha(u,h),p)}function i4(l,u,h){var p={ranges:u.ranges,update:function(v){this.ranges=[];for(var b=0;b<v.length;b++)this.ranges[b]=new Je(Ut(l,v[b].anchor),Ut(l,v[b].head))},origin:h&&h.origin};return Jt(l,"beforeSelectionChange",l,p),l.cm&&Jt(l.cm,"beforeSelectionChange",l.cm,p),p.ranges!=u.ranges?Ii(l.cm,p.ranges,p.ranges.length-1):u}function mm(l,u,h){var p=l.history.done,v=Zt(p);v&&v.ranges?(p[p.length-1]=u,Vd(l,u,h)):fn(l,u,h)}function fn(l,u,h){Vd(l,u,h),e4(l,l.sel,l.cm?l.cm.curOp.id:NaN,h)}function Vd(l,u,h){(Ce(l,"beforeSelectionChange")||l.cm&&Ce(l.cm,"beforeSelectionChange"))&&(u=i4(l,u,h));var p=h&&h.bias||(he(u.primary().head,l.sel.primary().head)<0?-1:1);ym(l,xm(l,u,p,!0)),!(h&&h.scroll===!1)&&l.cm&&l.cm.getOption("readOnly")!="nocursor"&&xs(l.cm)}function ym(l,u){u.equals(l.sel)||(l.sel=u,l.cm&&(l.cm.curOp.updateInput=1,l.cm.curOp.selectionChanged=!0,Gt(l.cm)),lr(l,"cursorActivity",l))}function bm(l){ym(l,xm(l,l.sel,null,!1))}function xm(l,u,h,p){for(var v,b=0;b<u.ranges.length;b++){var C=u.ranges[b],T=u.ranges.length==l.sel.ranges.length&&l.sel.ranges[b],O=Hd(l,C.anchor,T&&T.anchor,h,p),I=Hd(l,C.head,T&&T.head,h,p);(v||O!=C.anchor||I!=C.head)&&(v||(v=u.ranges.slice(0,b)),v[b]=new Je(O,I))}return v?Ii(l.cm,v,u.primIndex):u}function Cs(l,u,h,p,v){var b=ie(l,u.line);if(b.markedSpans)for(var C=0;C<b.markedSpans.length;++C){var T=b.markedSpans[C],O=T.marker,I="selectLeft"in O?!O.selectLeft:O.inclusiveLeft,G="selectRight"in O?!O.selectRight:O.inclusiveRight;if((T.from==null||(I?T.from<=u.ch:T.from<u.ch))&&(T.to==null||(G?T.to>=u.ch:T.to>u.ch))){if(v&&(Jt(O,"beforeCursorEnter"),O.explicitlyCleared))if(b.markedSpans){--C;continue}else break;if(!O.atomic)continue;if(h){var at=O.find(p<0?1:-1),vt=void 0;if((p<0?G:I)&&(at=wm(l,at,-p,at&&at.line==u.line?b:null)),at&&at.line==u.line&&(vt=he(at,h))&&(p<0?vt<0:vt>0))return Cs(l,at,u,p,v)}var ft=O.find(p<0?-1:1);return(p<0?I:G)&&(ft=wm(l,ft,p,ft.line==u.line?b:null)),ft?Cs(l,ft,u,p,v):null}}return u}function Hd(l,u,h,p,v){var b=p||1,C=Cs(l,u,h,b,v)||!v&&Cs(l,u,h,b,!0)||Cs(l,u,h,-b,v)||!v&&Cs(l,u,h,-b,!0);return C||(l.cantEdit=!0,Vt(l.first,0))}function wm(l,u,h,p){return h<0&&u.ch==0?u.line>l.first?Ut(l,Vt(u.line-1)):null:h>0&&u.ch==(p||ie(l,u.line)).text.length?u.line<l.first+l.size-1?Vt(u.line+1,0):null:new Vt(u.line,u.ch+h)}function _m(l){l.setSelection(Vt(l.firstLine(),0),Vt(l.lastLine()),kt)}function Cm(l,u,h){var p={canceled:!1,from:u.from,to:u.to,text:u.text,origin:u.origin,cancel:function(){return p.canceled=!0}};return h&&(p.update=function(v,b,C,T){v&&(p.from=Ut(l,v)),b&&(p.to=Ut(l,b)),C&&(p.text=C),T!==void 0&&(p.origin=T)}),Jt(l,"beforeChange",l,p),l.cm&&Jt(l.cm,"beforeChange",l.cm,p),p.canceled?(l.cm&&(l.cm.curOp.updateInput=2),null):{from:p.from,to:p.to,text:p.text,origin:p.origin}}function ks(l,u,h){if(l.cm){if(!l.cm.curOp)return zr(l.cm,ks)(l,u,h);if(l.cm.state.suppressEdits)return}if(!((Ce(l,"beforeChange")||l.cm&&Ce(l.cm,"beforeChange"))&&(u=Cm(l,u,!0),!u))){var p=La&&!h&&ri(l,u.from,u.to);if(p)for(var v=p.length-1;v>=0;--v)km(l,{from:p[v].from,to:p[v].to,text:v?[""]:u.text,origin:u.origin});else km(l,u)}}function km(l,u){if(!(u.text.length==1&&u.text[0]==""&&he(u.from,u.to)==0)){var h=eh(l,u);fm(l,u,h,l.cm?l.cm.curOp.id:NaN),Ul(l,u,h,Hn(l,u));var p=[];$a(l,function(v,b){!b&&se(p,v.history)==-1&&(Em(v.history,u),p.push(v.history)),Ul(v,u,null,Hn(v,u))})}}function Fd(l,u,h){var p=l.cm&&l.cm.state.suppressEdits;if(!(p&&!h)){for(var v=l.history,b,C=l.sel,T=u=="undo"?v.done:v.undone,O=u=="undo"?v.undone:v.done,I=0;I<T.length&&(b=T[I],!(h?b.ranges&&!b.equals(l.sel):!b.ranges));I++);if(I!=T.length){for(v.lastOrigin=v.lastSelOrigin=null;;)if(b=T.pop(),b.ranges){if(Rd(b,O),h&&!b.equals(l.sel)){fn(l,b,{clearRedo:!1});return}C=b}else if(p){T.push(b);return}else break;var G=[];Rd(C,O),O.push({changes:G,generation:v.generation}),v.generation=b.generation||++v.maxGeneration;for(var at=Ce(l,"beforeChange")||l.cm&&Ce(l.cm,"beforeChange"),vt=function(jt){var Wt=b.changes[jt];if(Wt.origin=u,at&&!Cm(l,Wt,!1))return T.length=0,{};G.push(ih(l,Wt));var Yt=jt?eh(l,Wt):Zt(T);Ul(l,Wt,Yt,hm(l,Wt)),!jt&&l.cm&&l.cm.scrollIntoView({from:Wt.from,to:Fa(Wt)});var ae=[];$a(l,function(Xt,oe){!oe&&se(ae,Xt.history)==-1&&(Em(Xt.history,Wt),ae.push(Xt.history)),Ul(Xt,Wt,null,hm(Xt,Wt))})},ft=b.changes.length-1;ft>=0;--ft){var Tt=vt(ft);if(Tt)return Tt.v}}}}function Sm(l,u){if(u!=0&&(l.first+=u,l.sel=new si(ve(l.sel.ranges,function(v){return new Je(Vt(v.anchor.line+u,v.anchor.ch),Vt(v.head.line+u,v.head.ch))}),l.sel.primIndex),l.cm)){On(l.cm,l.first,l.first-u,u);for(var h=l.cm.display,p=h.viewFrom;p<h.viewTo;p++)Ba(l.cm,p,"gutter")}}function Ul(l,u,h,p){if(l.cm&&!l.cm.curOp)return zr(l.cm,Ul)(l,u,h,p);if(u.to.line<l.first){Sm(l,u.text.length-1-(u.to.line-u.from.line));return}if(!(u.from.line>l.lastLine())){if(u.from.line<l.first){var v=u.text.length-1-(l.first-u.from.line);Sm(l,v),u={from:Vt(l.first,0),to:Vt(u.to.line+v,u.to.ch),text:[Zt(u.text)],origin:u.origin}}var b=l.lastLine();u.to.line>b&&(u={from:u.from,to:Vt(b,ie(l,b).text.length),text:[u.text[0]],origin:u.origin}),u.removed=Sn(l,u.from,u.to),h||(h=eh(l,u)),l.cm?a4(l.cm,u,p):nh(l,u,p),Vd(l,h,kt),l.cantEdit&&Hd(l,Vt(l.firstLine(),0))&&(l.cantEdit=!1)}}function a4(l,u,h){var p=l.doc,v=l.display,b=u.from,C=u.to,T=!1,O=b.line;l.options.lineWrapping||(O=Ue(pe(ie(p,b.line))),p.iter(O,C.line+1,function(ft){if(ft==v.maxLine)return T=!0,!0})),p.sel.contains(u.from,u.to)>-1&&Gt(l),nh(p,u,h,z1(l)),l.options.lineWrapping||(p.iter(O,b.line+u.text.length,function(ft){var Tt=un(ft);Tt>v.maxLineLength&&(v.maxLine=ft,v.maxLineLength=Tt,v.maxLineChanged=!0,T=!1)}),T&&(l.curOp.updateMaxLine=!0)),mi(p,b.line),Fl(l,400);var I=u.text.length-(C.line-b.line)-1;u.full?On(l):b.line==C.line&&u.text.length==1&&!lm(l.doc,u)?Ba(l,b.line,"text"):On(l,b.line,C.line+1,I);var G=Ce(l,"changes"),at=Ce(l,"change");if(at||G){var vt={from:b,to:C,text:u.text,removed:u.removed,origin:u.origin};at&&lr(l,"change",l,vt),G&&(l.curOp.changeObjs||(l.curOp.changeObjs=[])).push(vt)}l.display.selForContextMenu=null}function Ss(l,u,h,p,v){var b;p||(p=h),he(p,h)<0&&(b=[p,h],h=b[0],p=b[1]),typeof u=="string"&&(u=l.splitLines(u)),ks(l,{from:h,to:p,text:u,origin:v})}function Tm(l,u,h,p){h<l.line?l.line+=p:u<l.line&&(l.line=u,l.ch=0)}function Om(l,u,h,p){for(var v=0;v<l.length;++v){var b=l[v],C=!0;if(b.ranges){b.copied||(b=l[v]=b.deepCopy(),b.copied=!0);for(var T=0;T<b.ranges.length;T++)Tm(b.ranges[T].anchor,u,h,p),Tm(b.ranges[T].head,u,h,p);continue}for(var O=0;O<b.changes.length;++O){var I=b.changes[O];if(h<I.from.line)I.from=Vt(I.from.line+p,I.from.ch),I.to=Vt(I.to.line+p,I.to.ch);else if(u<=I.to.line){C=!1;break}}C||(l.splice(0,v+1),v=0)}}function Em(l,u){var h=u.from.line,p=u.to.line,v=u.text.length-(p-h)-1;Om(l.done,h,p,v),Om(l.undone,h,p,v)}function Wl(l,u,h,p){var v=u,b=u;return typeof u=="number"?b=ie(l,Ft(l,u)):v=Ue(u),v==null?null:(p(b,v)&&l.cm&&Ba(l.cm,v,h),b)}function Zl(l){this.lines=l,this.parent=null;for(var u=0,h=0;h<l.length;++h)l[h].parent=this,u+=l[h].height;this.height=u}Zl.prototype={chunkSize:function(){return this.lines.length},removeInner:function(l,u){for(var h=l,p=l+u;h<p;++h){var v=this.lines[h];this.height-=v.height,kl(v),lr(v,"delete")}this.lines.splice(l,u)},collapse:function(l){l.push.apply(l,this.lines)},insertInner:function(l,u,h){this.height+=h,this.lines=this.lines.slice(0,l).concat(u).concat(this.lines.slice(l));for(var p=0;p<u.length;++p)u[p].parent=this},iterN:function(l,u,h){for(var p=l+u;l<p;++l)if(h(this.lines[l]))return!0}};function ql(l){this.children=l;for(var u=0,h=0,p=0;p<l.length;++p){var v=l[p];u+=v.chunkSize(),h+=v.height,v.parent=this}this.size=u,this.height=h,this.parent=null}ql.prototype={chunkSize:function(){return this.size},removeInner:function(l,u){this.size-=u;for(var h=0;h<this.children.length;++h){var p=this.children[h],v=p.chunkSize();if(l<v){var b=Math.min(u,v-l),C=p.height;if(p.removeInner(l,b),this.height-=C-p.height,v==b&&(this.children.splice(h--,1),p.parent=null),(u-=b)==0)break;l=0}else l-=v}if(this.size-u<25&&(this.children.length>1||!(this.children[0]instanceof Zl))){var T=[];this.collapse(T),this.children=[new Zl(T)],this.children[0].parent=this}},collapse:function(l){for(var u=0;u<this.children.length;++u)this.children[u].collapse(l)},insertInner:function(l,u,h){this.size+=u.length,this.height+=h;for(var p=0;p<this.children.length;++p){var v=this.children[p],b=v.chunkSize();if(l<=b){if(v.insertInner(l,u,h),v.lines&&v.lines.length>50){for(var C=v.lines.length%25+25,T=C;T<v.lines.length;){var O=new Zl(v.lines.slice(T,T+=25));v.height-=O.height,this.children.splice(++p,0,O),O.parent=this}v.lines=v.lines.slice(0,C),this.maybeSpill()}break}l-=b}},maybeSpill:function(){if(!(this.children.length<=10)){var l=this;do{var u=l.children.splice(l.children.length-5,5),h=new ql(u);if(l.parent){l.size-=h.size,l.height-=h.height;var v=se(l.parent.children,l);l.parent.children.splice(v+1,0,h)}else{var p=new ql(l.children);p.parent=l,l.children=[p,h],l=p}h.parent=l.parent}while(l.children.length>10);l.parent.maybeSpill()}},iterN:function(l,u,h){for(var p=0;p<this.children.length;++p){var v=this.children[p],b=v.chunkSize();if(l<b){var C=Math.min(u,b-l);if(v.iterN(l,C,h))return!0;if((u-=C)==0)break;l=0}else l-=b}}};var Kl=function(l,u,h){if(h)for(var p in h)h.hasOwnProperty(p)&&(this[p]=h[p]);this.doc=l,this.node=u};Kl.prototype.clear=function(){var l=this.doc.cm,u=this.line.widgets,h=this.line,p=Ue(h);if(!(p==null||!u)){for(var v=0;v<u.length;++v)u[v]==this&&u.splice(v--,1);u.length||(h.widgets=null);var b=da(this);$e(h,Math.max(0,h.height-b)),l&&(Fn(l,function(){Am(l,h,-b),Ba(l,p,"widget")}),lr(l,"lineWidgetCleared",l,this,p))}},Kl.prototype.changed=function(){var l=this,u=this.height,h=this.doc.cm,p=this.line;this.height=null;var v=da(this)-u;v&&(dn(this.doc,p)||$e(p,p.height+v),h&&Fn(h,function(){h.curOp.forceUpdate=!0,Am(h,p,v),lr(h,"lineWidgetChanged",h,l,Ue(p))}))},Be(Kl);function Am(l,u,h){bn(u)<(l.curOp&&l.curOp.scrollTop||l.doc.scrollTop)&&Gp(l,h)}function o4(l,u,h,p){var v=new Kl(l,h,p),b=l.cm;return b&&v.noHScroll&&(b.display.alignWidgets=!0),Wl(l,u,"widget",function(C){var T=C.widgets||(C.widgets=[]);if(v.insertAt==null?T.push(v):T.splice(Math.min(T.length,Math.max(0,v.insertAt)),0,v),v.line=C,b&&!dn(l,C)){var O=bn(C)<l.scrollTop;$e(C,C.height+da(v)),O&&Gp(b,v.height),b.curOp.forceUpdate=!0}return!0}),b&&lr(b,"lineWidgetAdded",b,v,typeof u=="number"?u:Ue(u)),v}var Mm=0,za=function(l,u){this.lines=[],this.type=u,this.doc=l,this.id=++Mm};za.prototype.clear=function(){if(!this.explicitlyCleared){var l=this.doc.cm,u=l&&!l.curOp;if(u&&_o(l),Ce(this,"clear")){var h=this.find();h&&lr(this,"clear",h.from,h.to)}for(var p=null,v=null,b=0;b<this.lines.length;++b){var C=this.lines[b],T=Mi(C.markedSpans,this);l&&!this.collapsed?Ba(l,Ue(C),"text"):l&&(T.to!=null&&(v=Ue(C)),T.from!=null&&(p=Ue(C))),C.markedSpans=yi(C.markedSpans,T),T.from==null&&this.collapsed&&!dn(this.doc,C)&&l&&$e(C,ms(l.display))}if(l&&this.collapsed&&!l.options.lineWrapping)for(var O=0;O<this.lines.length;++O){var I=pe(this.lines[O]),G=un(I);G>l.display.maxLineLength&&(l.display.maxLine=I,l.display.maxLineLength=G,l.display.maxLineChanged=!0)}p!=null&&l&&this.collapsed&&On(l,p,v+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,l&&bm(l.doc)),l&&lr(l,"markerCleared",l,this,p,v),u&&Co(l),this.parent&&this.parent.clear()}},za.prototype.find=function(l,u){l==null&&this.type=="bookmark"&&(l=1);for(var h,p,v=0;v<this.lines.length;++v){var b=this.lines[v],C=Mi(b.markedSpans,this);if(C.from!=null&&(h=Vt(u?b:Ue(b),C.from),l==-1))return h;if(C.to!=null&&(p=Vt(u?b:Ue(b),C.to),l==1))return p}return h&&{from:h,to:p}},za.prototype.changed=function(){var l=this,u=this.find(-1,!0),h=this,p=this.doc.cm;!u||!p||Fn(p,function(){var v=u.line,b=Ue(u.line),C=Qt(p,b);if(C&&(j1(C),p.curOp.selectionChanged=p.curOp.forceUpdate=!0),p.curOp.updateMaxLine=!0,!dn(h.doc,v)&&h.height!=null){var T=h.height;h.height=null;var O=da(h)-T;O&&$e(v,v.height+O)}lr(p,"markerChanged",p,l)})},za.prototype.attachLine=function(l){if(!this.lines.length&&this.doc.cm){var u=this.doc.cm.curOp;(!u.maybeHiddenMarkers||se(u.maybeHiddenMarkers,this)==-1)&&(u.maybeUnhiddenMarkers||(u.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(l)},za.prototype.detachLine=function(l){if(this.lines.splice(se(this.lines,l),1),!this.lines.length&&this.doc.cm){var u=this.doc.cm.curOp;(u.maybeHiddenMarkers||(u.maybeHiddenMarkers=[])).push(this)}},Be(za);function Ts(l,u,h,p,v){if(p&&p.shared)return s4(l,u,h,p,v);if(l.cm&&!l.cm.curOp)return zr(l.cm,Ts)(l,u,h,p,v);var b=new za(l,v),C=he(u,h);if(p&&mt(p,b,!1),C>0||C==0&&b.clearWhenEmpty!==!1)return b;if(b.replacedWith&&(b.collapsed=!0,b.widgetNode=q("span",[b.replacedWith],"CodeMirror-widget"),p.handleMouseEvents||b.widgetNode.setAttribute("cm-ignore-events","true"),p.insertLeft&&(b.widgetNode.insertLeft=!0)),b.collapsed){if(Me(l,u.line,u,h,b)||u.line!=h.line&&Me(l,h.line,u,h,b))throw new Error("Inserting collapsed marker partially overlapping an existing one");uo()}b.addToHistory&&fm(l,{from:u,to:h,origin:"markText"},l.sel,NaN);var T=u.line,O=l.cm,I;if(l.iter(T,h.line+1,function(at){O&&b.collapsed&&!O.options.lineWrapping&&pe(at)==O.display.maxLine&&(I=!0),b.collapsed&&T!=u.line&&$e(at,0),Tr(at,new vn(b,T==u.line?u.ch:null,T==h.line?h.ch:null),l.cm&&l.cm.curOp),++T}),b.collapsed&&l.iter(u.line,h.line+1,function(at){dn(l,at)&&$e(at,0)}),b.clearOnEnter&&pt(b,"beforeCursorEnter",function(){return b.clear()}),b.readOnly&&(Da(),(l.history.done.length||l.history.undone.length)&&l.clearHistory()),b.collapsed&&(b.id=++Mm,b.atomic=!0),O){if(I&&(O.curOp.updateMaxLine=!0),b.collapsed)On(O,u.line,h.line+1);else if(b.className||b.startStyle||b.endStyle||b.css||b.attributes||b.title)for(var G=u.line;G<=h.line;G++)Ba(O,G,"text");b.atomic&&bm(O.doc),lr(O,"markerAdded",O,b)}return b}var Gl=function(l,u){this.markers=l,this.primary=u;for(var h=0;h<l.length;++h)l[h].parent=this};Gl.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var l=0;l<this.markers.length;++l)this.markers[l].clear();lr(this,"clear")}},Gl.prototype.find=function(l,u){return this.primary.find(l,u)},Be(Gl);function s4(l,u,h,p,v){p=mt(p),p.shared=!1;var b=[Ts(l,u,h,p,v)],C=b[0],T=p.widgetNode;return $a(l,function(O){T&&(p.widgetNode=T.cloneNode(!0)),b.push(Ts(O,Ut(O,u),Ut(O,h),p,v));for(var I=0;I<O.linked.length;++I)if(O.linked[I].isParent)return;C=Zt(b)}),new Gl(b,C)}function Pm(l){return l.findMarks(Vt(l.first,0),l.clipPos(Vt(l.lastLine())),function(u){return u.parent})}function l4(l,u){for(var h=0;h<u.length;h++){var p=u[h],v=p.find(),b=l.clipPos(v.from),C=l.clipPos(v.to);if(he(b,C)){var T=Ts(l,b,C,p.primary,p.primary.type);p.markers.push(T),T.parent=p}}}function c4(l){for(var u=function(p){var v=l[p],b=[v.primary.doc];$a(v.primary.doc,function(O){return b.push(O)});for(var C=0;C<v.markers.length;C++){var T=v.markers[C];se(b,T.doc)==-1&&(T.parent=null,v.markers.splice(C--,1))}},h=0;h<l.length;h++)u(h)}var d4=0,En=function(l,u,h,p,v){if(!(this instanceof En))return new En(l,u,h,p,v);h==null&&(h=0),ql.call(this,[new Zl([new Li("",null)])]),this.first=h,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=h;var b=Vt(h,0);this.sel=Ha(b),this.history=new Nd(null),this.id=++d4,this.modeOption=u,this.lineSep=p,this.direction=v=="rtl"?"rtl":"ltr",this.extend=!1,typeof l=="string"&&(l=this.splitLines(l)),nh(this,{from:b,to:b,text:l}),fn(this,Ha(b),kt)};En.prototype=P(ql.prototype,{constructor:En,iter:function(l,u,h){h?this.iterN(l-this.first,u-l,h):this.iterN(this.first,this.first+this.size,l)},insert:function(l,u){for(var h=0,p=0;p<u.length;++p)h+=u[p].height;this.insertInner(l-this.first,u,h)},remove:function(l,u){this.removeInner(l-this.first,u)},getValue:function(l){var u=Qr(this,this.first,this.first+this.size);return l===!1?u:u.join(l||this.lineSeparator())},setValue:Ur(function(l){var u=Vt(this.first,0),h=this.first+this.size-1;ks(this,{from:u,to:Vt(h,ie(this,h).text.length),text:this.splitLines(l),origin:"setValue",full:!0},!0),this.cm&&Rl(this.cm,0,0),fn(this,Ha(u),kt)}),replaceRange:function(l,u,h,p){u=Ut(this,u),h=h?Ut(this,h):u,Ss(this,l,u,h,p)},getRange:function(l,u,h){var p=Sn(this,Ut(this,l),Ut(this,u));return h===!1?p:h===""?p.join(""):p.join(h||this.lineSeparator())},getLine:function(l){var u=this.getLineHandle(l);return u&&u.text},getLineHandle:function(l){if(Qn(this,l))return ie(this,l)},getLineNumber:function(l){return Ue(l)},getLineHandleVisualStart:function(l){return typeof l=="number"&&(l=ie(this,l)),pe(l)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(l){return Ut(this,l)},getCursor:function(l){var u=this.sel.primary(),h;return l==null||l=="head"?h=u.head:l=="anchor"?h=u.anchor:l=="end"||l=="to"||l===!1?h=u.to():h=u.from(),h},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Ur(function(l,u,h){vm(this,Ut(this,typeof l=="number"?Vt(l,u||0):l),null,h)}),setSelection:Ur(function(l,u,h){vm(this,Ut(this,l),Ut(this,u||l),h)}),extendSelection:Ur(function(l,u,h){Bd(this,Ut(this,l),u&&Ut(this,u),h)}),extendSelections:Ur(function(l,u){gm(this,Ve(this,l),u)}),extendSelectionsBy:Ur(function(l,u){var h=ve(this.sel.ranges,l);gm(this,Ve(this,h),u)}),setSelections:Ur(function(l,u,h){if(l.length){for(var p=[],v=0;v<l.length;v++)p[v]=new Je(Ut(this,l[v].anchor),Ut(this,l[v].head||l[v].anchor));u==null&&(u=Math.min(l.length-1,this.sel.primIndex)),fn(this,Ii(this.cm,p,u),h)}}),addSelection:Ur(function(l,u,h){var p=this.sel.ranges.slice(0);p.push(new Je(Ut(this,l),Ut(this,u||l))),fn(this,Ii(this.cm,p,p.length-1),h)}),getSelection:function(l){for(var u=this.sel.ranges,h,p=0;p<u.length;p++){var v=Sn(this,u[p].from(),u[p].to());h=h?h.concat(v):v}return l===!1?h:h.join(l||this.lineSeparator())},getSelections:function(l){for(var u=[],h=this.sel.ranges,p=0;p<h.length;p++){var v=Sn(this,h[p].from(),h[p].to());l!==!1&&(v=v.join(l||this.lineSeparator())),u[p]=v}return u},replaceSelection:function(l,u,h){for(var p=[],v=0;v<this.sel.ranges.length;v++)p[v]=l;this.replaceSelections(p,u,h||"+input")},replaceSelections:Ur(function(l,u,h){for(var p=[],v=this.sel,b=0;b<v.ranges.length;b++){var C=v.ranges[b];p[b]={from:C.from(),to:C.to(),text:this.splitLines(l[b]),origin:h}}for(var T=u&&u!="end"&&Xw(this,p,u),O=p.length-1;O>=0;O--)ks(this,p[O]);T?mm(this,T):this.cm&&xs(this.cm)}),undo:Ur(function(){Fd(this,"undo")}),redo:Ur(function(){Fd(this,"redo")}),undoSelection:Ur(function(){Fd(this,"undo",!0)}),redoSelection:Ur(function(){Fd(this,"redo",!0)}),setExtending:function(l){this.extend=l},getExtending:function(){return this.extend},historySize:function(){for(var l=this.history,u=0,h=0,p=0;p<l.done.length;p++)l.done[p].ranges||++u;for(var v=0;v<l.undone.length;v++)l.undone[v].ranges||++h;return{undo:u,redo:h}},clearHistory:function(){var l=this;this.history=new Nd(this.history),$a(this,function(u){return u.history=l.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(l){return l&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(l){return this.history.generation==(l||this.cleanGeneration)},getHistory:function(){return{done:_s(this.history.done),undone:_s(this.history.undone)}},setHistory:function(l){var u=this.history=new Nd(this.history);u.done=_s(l.done.slice(0),null,!0),u.undone=_s(l.undone.slice(0),null,!0)},setGutterMarker:Ur(function(l,u,h){return Wl(this,l,"gutter",function(p){var v=p.gutterMarkers||(p.gutterMarkers={});return v[u]=h,!h&&_t(v)&&(p.gutterMarkers=null),!0})}),clearGutter:Ur(function(l){var u=this;this.iter(function(h){h.gutterMarkers&&h.gutterMarkers[l]&&Wl(u,h,"gutter",function(){return h.gutterMarkers[l]=null,_t(h.gutterMarkers)&&(h.gutterMarkers=null),!0})})}),lineInfo:function(l){var u;if(typeof l=="number"){if(!Qn(this,l)||(u=l,l=ie(this,l),!l))return null}else if(u=Ue(l),u==null)return null;return{line:u,handle:l,text:l.text,gutterMarkers:l.gutterMarkers,textClass:l.textClass,bgClass:l.bgClass,wrapClass:l.wrapClass,widgets:l.widgets}},addLineClass:Ur(function(l,u,h){return Wl(this,l,u=="gutter"?"gutter":"class",function(p){var v=u=="text"?"textClass":u=="background"?"bgClass":u=="gutter"?"gutterClass":"wrapClass";if(!p[v])p[v]=h;else{if(B(h).test(p[v]))return!1;p[v]+=" "+h}return!0})}),removeLineClass:Ur(function(l,u,h){return Wl(this,l,u=="gutter"?"gutter":"class",function(p){var v=u=="text"?"textClass":u=="background"?"bgClass":u=="gutter"?"gutterClass":"wrapClass",b=p[v];if(b)if(h==null)p[v]=null;else{var C=b.match(B(h));if(!C)return!1;var T=C.index+C[0].length;p[v]=b.slice(0,C.index)+(!C.index||T==b.length?"":" ")+b.slice(T)||null}else return!1;return!0})}),addLineWidget:Ur(function(l,u,h){return o4(this,l,u,h)}),removeLineWidget:function(l){l.clear()},markText:function(l,u,h){return Ts(this,Ut(this,l),Ut(this,u),h,h&&h.type||"range")},setBookmark:function(l,u){var h={replacedWith:u&&(u.nodeType==null?u.widget:u),insertLeft:u&&u.insertLeft,clearWhenEmpty:!1,shared:u&&u.shared,handleMouseEvents:u&&u.handleMouseEvents};return l=Ut(this,l),Ts(this,l,l,h,"bookmark")},findMarksAt:function(l){l=Ut(this,l);var u=[],h=ie(this,l.line).markedSpans;if(h)for(var p=0;p<h.length;++p){var v=h[p];(v.from==null||v.from<=l.ch)&&(v.to==null||v.to>=l.ch)&&u.push(v.marker.parent||v.marker)}return u},findMarks:function(l,u,h){l=Ut(this,l),u=Ut(this,u);var p=[],v=l.line;return this.iter(l.line,u.line+1,function(b){var C=b.markedSpans;if(C)for(var T=0;T<C.length;T++){var O=C[T];!(O.to!=null&&v==l.line&&l.ch>=O.to||O.from==null&&v!=l.line||O.from!=null&&v==u.line&&O.from>=u.ch)&&(!h||h(O.marker))&&p.push(O.marker.parent||O.marker)}++v}),p},getAllMarks:function(){var l=[];return this.iter(function(u){var h=u.markedSpans;if(h)for(var p=0;p<h.length;++p)h[p].from!=null&&l.push(h[p].marker)}),l},posFromIndex:function(l){var u,h=this.first,p=this.lineSeparator().length;return this.iter(function(v){var b=v.text.length+p;if(b>l)return u=l,!0;l-=b,++h}),Ut(this,Vt(h,u))},indexFromPos:function(l){l=Ut(this,l);var u=l.ch;if(l.line<this.first||l.ch<0)return 0;var h=this.lineSeparator().length;return this.iter(this.first,l.line,function(p){u+=p.text.length+h}),u},copy:function(l){var u=new En(Qr(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return u.scrollTop=this.scrollTop,u.scrollLeft=this.scrollLeft,u.sel=this.sel,u.extend=!1,l&&(u.history.undoDepth=this.history.undoDepth,u.setHistory(this.getHistory())),u},linkedDoc:function(l){l||(l={});var u=this.first,h=this.first+this.size;l.from!=null&&l.from>u&&(u=l.from),l.to!=null&&l.to<h&&(h=l.to);var p=new En(Qr(this,u,h),l.mode||this.modeOption,u,this.lineSep,this.direction);return l.sharedHist&&(p.history=this.history),(this.linked||(this.linked=[])).push({doc:p,sharedHist:l.sharedHist}),p.linked=[{doc:this,isParent:!0,sharedHist:l.sharedHist}],l4(p,Pm(this)),p},unlinkDoc:function(l){if(l instanceof fr&&(l=l.doc),this.linked)for(var u=0;u<this.linked.length;++u){var h=this.linked[u];if(h.doc==l){this.linked.splice(u,1),l.unlinkDoc(this),c4(Pm(this));break}}if(l.history==this.history){var p=[l.id];$a(l,function(v){return p.push(v.id)},!0),l.history=new Nd(null),l.history.done=_s(this.history.done,p),l.history.undone=_s(this.history.undone,p)}},iterLinkedDocs:function(l){$a(this,l)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(l){return this.lineSep?l.split(this.lineSep):ee(l)},lineSeparator:function(){return this.lineSep||` 750`},setDirection:Ur(function(l){l!="rtl"&&(l="ltr"),l!=this.direction&&(this.direction=l,this.iter(function(u){return u.order=null}),this.cm&&Jw(this.cm))})}),En.prototype.eachLine=En.prototype.iter;var Lm=0;function u4(l){var u=this;if(Dm(u),!(re(u,l)||ai(u.display,l))){we(l),s&&(Lm=+new Date);var h=yo(u,l,!0),p=l.dataTransfer.files;if(!(!h||u.isReadOnly()))if(p&&p.length&&window.FileReader&&window.File)for(var v=p.length,b=Array(v),C=0,T=function(){++C==v&&zr(u,function(){h=Ut(u.doc,h);var ft={from:h,to:h,text:u.doc.splitLines(b.filter(function(Tt){return Tt!=null}).join(u.doc.lineSeparator())),origin:"paste"};ks(u.doc,ft),mm(u.doc,Ha(Ut(u.doc,h),Ut(u.doc,Fa(ft))))})()},O=function(ft,Tt){if(u.options.allowDropFileTypes&&se(u.options.allowDropFileTypes,ft.type)==-1){T();return}var jt=new FileReader;jt.onerror=function(){return T()},jt.onload=function(){var Wt=jt.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Wt)){T();return}b[Tt]=Wt,T()},jt.readAsText(ft)},I=0;I<p.length;I++)O(p[I],I);else{if(u.state.draggingText&&u.doc.sel.contains(h)>-1){u.state.draggingText(l),setTimeout(function(){return u.display.input.focus()},20);return}try{var G=l.dataTransfer.getData("Text");if(G){var at;if(u.state.draggingText&&!u.state.draggingText.copy&&(at=u.listSelections()),Vd(u.doc,Ha(h,h)),at)for(var vt=0;vt<at.length;++vt)Ss(u.doc,"",at[vt].anchor,at[vt].head,"drag");u.replaceSelection(G,"around","paste"),u.display.input.focus()}}catch{}}}}function f4(l,u){if(s&&(!l.state.draggingText||+new Date-Lm<100)){V(u);return}if(!(re(l,u)||ai(l.display,u))&&(u.dataTransfer.setData("Text",l.getSelection()),u.dataTransfer.effectAllowed="copyMove",u.dataTransfer.setDragImage&&!y)){var h=st("img",null,null,"position: fixed; left: 0; top: 0;");h.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",m&&(h.width=h.height=1,l.display.wrapper.appendChild(h),h._top=h.offsetTop),u.dataTransfer.setDragImage(h,0,0),m&&h.parentNode.removeChild(h)}}function p4(l,u){var h=yo(l,u);if(h){var p=document.createDocumentFragment();Z1(l,h,p),l.display.dragCursor||(l.display.dragCursor=st("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),l.display.lineSpace.insertBefore(l.display.dragCursor,l.display.cursorDiv)),F(l.display.dragCursor,p)}}function Dm(l){l.display.dragCursor&&(l.display.lineSpace.removeChild(l.display.dragCursor),l.display.dragCursor=null)}function Im(l){if(document.getElementsByClassName){for(var u=document.getElementsByClassName("CodeMirror"),h=[],p=0;p<u.length;p++){var v=u[p].CodeMirror;v&&h.push(v)}h.length&&h[0].operation(function(){for(var b=0;b<h.length;b++)l(h[b])})}}var jm=!1;function h4(){jm||(g4(),jm=!0)}function g4(){var l;pt(window,"resize",function(){l==null&&(l=setTimeout(function(){l=null,Im(v4)},100))}),pt(window,"blur",function(){return Im(bs)})}function v4(l){var u=l.display;u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null,u.scrollbarsClipped=!1,l.setSize()}for(var Ua={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"},Yl=0;Yl<10;Yl++)Ua[Yl+48]=Ua[Yl+96]=String(Yl);for(var $d=65;$d<=90;$d++)Ua[$d]=String.fromCharCode($d);for(var Xl=1;Xl<=12;Xl++)Ua[Xl+111]=Ua[Xl+63235]="F"+Xl;var ua={};ua.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"},ua.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"},ua.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"},ua.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"]},ua.default=L?ua.macDefault:ua.pcDefault;function m4(l){var u=l.split(/-(?!$)/);l=u[u.length-1];for(var h,p,v,b,C=0;C<u.length-1;C++){var T=u[C];if(/^(cmd|meta|m)$/i.test(T))b=!0;else if(/^a(lt)?$/i.test(T))h=!0;else if(/^(c|ctrl|control)$/i.test(T))p=!0;else if(/^s(hift)?$/i.test(T))v=!0;else throw new Error("Unrecognized modifier name: "+T)}return h&&(l="Alt-"+l),p&&(l="Ctrl-"+l),b&&(l="Cmd-"+l),v&&(l="Shift-"+l),l}function y4(l){var u={};for(var h in l)if(l.hasOwnProperty(h)){var p=l[h];if(/^(name|fallthrough|(de|at)tach)$/.test(h))continue;if(p=="..."){delete l[h];continue}for(var v=ve(h.split(" "),m4),b=0;b<v.length;b++){var C=void 0,T=void 0;b==v.length-1?(T=v.join(" "),C=p):(T=v.slice(0,b+1).join(" "),C="...");var O=u[T];if(!O)u[T]=C;else if(O!=C)throw new Error("Inconsistent bindings for "+T)}delete l[h]}for(var I in u)l[I]=u[I];return l}function Os(l,u,h,p){u=zd(u);var v=u.call?u.call(l,p):u[l];if(v===!1)return"nothing";if(v==="...")return"multi";if(v!=null&&h(v))return"handled";if(u.fallthrough){if(Object.prototype.toString.call(u.fallthrough)!="[object Array]")return Os(l,u.fallthrough,h,p);for(var b=0;b<u.fallthrough.length;b++){var C=Os(l,u.fallthrough[b],h,p);if(C)return C}}}function Nm(l){var u=typeof l=="string"?l:Ua[l.keyCode];return u=="Ctrl"||u=="Alt"||u=="Shift"||u=="Mod"}function Rm(l,u,h){var p=l;return u.altKey&&p!="Alt"&&(l="Alt-"+l),(et?u.metaKey:u.ctrlKey)&&p!="Ctrl"&&(l="Ctrl-"+l),(et?u.ctrlKey:u.metaKey)&&p!="Mod"&&(l="Cmd-"+l),!h&&u.shiftKey&&p!="Shift"&&(l="Shift-"+l),l}function Bm(l,u){if(m&&l.keyCode==34&&l.char)return!1;var h=Ua[l.keyCode];return h==null||l.altGraphKey?!1:(l.keyCode==3&&l.code&&(h=l.code),Rm(h,l,u))}function zd(l){return typeof l=="string"?ua[l]:l}function Es(l,u){for(var h=l.doc.sel.ranges,p=[],v=0;v<h.length;v++){for(var b=u(h[v]);p.length&&he(b.from,Zt(p).to)<=0;){var C=p.pop();if(he(C.from,b.from)<0){b.from=C.from;break}}p.push(b)}Fn(l,function(){for(var T=p.length-1;T>=0;T--)Ss(l.doc,"",p[T].from,p[T].to,"+delete");xs(l)})}function sh(l,u,h){var p=ut(l.text,u+h,h);return p<0||p>l.text.length?null:p}function lh(l,u,h){var p=sh(l,u.ch,h);return p==null?null:new Vt(u.line,p,h<0?"after":"before")}function ch(l,u,h,p,v){if(l){u.doc.direction=="rtl"&&(v=-v);var b=tt(h,u.doc.direction);if(b){var C=v<0?Zt(b):b[0],T=v<0==(C.level==1),O=T?"after":"before",I;if(C.level>0||u.doc.direction=="rtl"){var G=Ee(u,h);I=v<0?h.text.length-1:0;var at=Oe(u,G,I).top;I=de(function(vt){return Oe(u,G,vt).top==at},v<0==(C.level==1)?C.from:C.to-1,I),O=="before"&&(I=sh(h,I,1))}else I=v<0?C.to:C.from;return new Vt(p,I,O)}}return new Vt(p,v<0?h.text.length:0,v<0?"before":"after")}function b4(l,u,h,p){var v=tt(u,l.doc.direction);if(!v)return lh(u,h,p);h.ch>=u.text.length?(h.ch=u.text.length,h.sticky="before"):h.ch<=0&&(h.ch=0,h.sticky="after");var b=Re(v,h.ch,h.sticky),C=v[b];if(l.doc.direction=="ltr"&&C.level%2==0&&(p>0?C.to>h.ch:C.from<h.ch))return lh(u,h,p);var T=function(Yt,ae){return sh(u,Yt instanceof Vt?Yt.ch:Yt,ae)},O,I=function(Yt){return l.options.lineWrapping?(O=O||Ee(l,u),$1(l,u,O,Yt)):{begin:0,end:u.text.length}},G=I(h.sticky=="before"?T(h,-1):h.ch);if(l.doc.direction=="rtl"||C.level==1){var at=C.level==1==p<0,vt=T(h,at?1:-1);if(vt!=null&&(at?vt<=C.to&&vt<=G.end:vt>=C.from&&vt>=G.begin)){var ft=at?"before":"after";return new Vt(h.line,vt,ft)}}var Tt=function(Yt,ae,Xt){for(var oe=function(ir,Wr){return Wr?new Vt(h.line,T(ir,1),"before"):new Vt(h.line,ir,"after")};Yt>=0&&Yt<v.length;Yt+=ae){var be=v[Yt],ge=ae>0==(be.level!=1),je=ge?Xt.begin:T(Xt.end,-1);if(be.from<=je&&je<be.to||(je=ge?be.from:T(be.to,-1),Xt.begin<=je&&je<Xt.end))return oe(je,ge)}},jt=Tt(b+p,p,G);if(jt)return jt;var Wt=p>0?G.end:T(G.begin,-1);return Wt!=null&&!(p>0&&Wt==u.text.length)&&(jt=Tt(p>0?0:v.length-1,p,I(Wt)),jt)?jt:null}var Jl={selectAll:_m,singleSelection:function(l){return l.setSelection(l.getCursor("anchor"),l.getCursor("head"),kt)},killLine:function(l){return Es(l,function(u){if(u.empty()){var h=ie(l.doc,u.head.line).text.length;return u.head.ch==h&&u.head.line<l.lastLine()?{from:u.head,to:Vt(u.head.line+1,0)}:{from:u.head,to:Vt(u.head.line,h)}}else return{from:u.from(),to:u.to()}})},deleteLine:function(l){return Es(l,function(u){return{from:Vt(u.from().line,0),to:Ut(l.doc,Vt(u.to().line+1,0))}})},delLineLeft:function(l){return Es(l,function(u){return{from:Vt(u.from().line,0),to:u.from()}})},delWrappedLineLeft:function(l){return Es(l,function(u){var h=l.charCoords(u.head,"div").top+5,p=l.coordsChar({left:0,top:h},"div");return{from:p,to:u.from()}})},delWrappedLineRight:function(l){return Es(l,function(u){var h=l.charCoords(u.head,"div").top+5,p=l.coordsChar({left:l.display.lineDiv.offsetWidth+100,top:h},"div");return{from:u.from(),to:p}})},undo:function(l){return l.undo()},redo:function(l){return l.redo()},undoSelection:function(l){return l.undoSelection()},redoSelection:function(l){return l.redoSelection()},goDocStart:function(l){return l.extendSelection(Vt(l.firstLine(),0))},goDocEnd:function(l){return l.extendSelection(Vt(l.lastLine()))},goLineStart:function(l){return l.extendSelectionsBy(function(u){return Vm(l,u.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(l){return l.extendSelectionsBy(function(u){return Hm(l,u.head)},{origin:"+move",bias:1})},goLineEnd:function(l){return l.extendSelectionsBy(function(u){return x4(l,u.head.line)},{origin:"+move",bias:-1})},goLineRight:function(l){return l.extendSelectionsBy(function(u){var h=l.cursorCoords(u.head,"div").top+5;return l.coordsChar({left:l.display.lineDiv.offsetWidth+100,top:h},"div")},Mt)},goLineLeft:function(l){return l.extendSelectionsBy(function(u){var h=l.cursorCoords(u.head,"div").top+5;return l.coordsChar({left:0,top:h},"div")},Mt)},goLineLeftSmart:function(l){return l.extendSelectionsBy(function(u){var h=l.cursorCoords(u.head,"div").top+5,p=l.coordsChar({left:0,top:h},"div");return p.ch<l.getLine(p.line).search(/\S/)?Hm(l,u.head):p},Mt)},goLineUp:function(l){return l.moveV(-1,"line")},goLineDown:function(l){return l.moveV(1,"line")},goPageUp:function(l){return l.moveV(-1,"page")},goPageDown:function(l){return l.moveV(1,"page")},goCharLeft:function(l){return l.moveH(-1,"char")},goCharRight:function(l){return l.moveH(1,"char")},goColumnLeft:function(l){return l.moveH(-1,"column")},goColumnRight:function(l){return l.moveH(1,"column")},goWordLeft:function(l){return l.moveH(-1,"word")},goGroupRight:function(l){return l.moveH(1,"group")},goGroupLeft:function(l){return l.moveH(-1,"group")},goWordRight:function(l){return l.moveH(1,"word")},delCharBefore:function(l){return l.deleteH(-1,"codepoint")},delCharAfter:function(l){return l.deleteH(1,"char")},delWordBefore:function(l){return l.deleteH(-1,"word")},delWordAfter:function(l){return l.deleteH(1,"word")},delGroupBefore:function(l){return l.deleteH(-1,"group")},delGroupAfter:function(l){return l.deleteH(1,"group")},indentAuto:function(l){return l.indentSelection("smart")},indentMore:function(l){return l.indentSelection("add")},indentLess:function(l){return l.indentSelection("subtract")},insertTab:function(l){return l.replaceSelection(" ")},insertSoftTab:function(l){for(var u=[],h=l.listSelections(),p=l.options.tabSize,v=0;v<h.length;v++){var b=h[v].from(),C=It(l.getLine(b.line),b.ch,p);u.push(le(p-C%p))}l.replaceSelections(u)},defaultTab:function(l){l.somethingSelected()?l.indentSelection("add"):l.execCommand("insertTab")},transposeChars:function(l){return Fn(l,function(){for(var u=l.listSelections(),h=[],p=0;p<u.length;p++)if(u[p].empty()){var v=u[p].head,b=ie(l.doc,v.line).text;if(b){if(v.ch==b.length&&(v=new Vt(v.line,v.ch-1)),v.ch>0)v=new Vt(v.line,v.ch+1),l.replaceRange(b.charAt(v.ch-1)+b.charAt(v.ch-2),Vt(v.line,v.ch-2),v,"+transpose");else if(v.line>l.doc.first){var C=ie(l.doc,v.line-1).text;C&&(v=new Vt(v.line,1),l.replaceRange(b.charAt(0)+l.doc.lineSeparator()+C.charAt(C.length-1),Vt(v.line-1,C.length-1),v,"+transpose"))}}h.push(new Je(v,v))}l.setSelections(h)})},newlineAndIndent:function(l){return Fn(l,function(){for(var u=l.listSelections(),h=u.length-1;h>=0;h--)l.replaceRange(l.doc.lineSeparator(),u[h].anchor,u[h].head,"+input");u=l.listSelections();for(var p=0;p<u.length;p++)l.indentLine(u[p].from().line,null,!0);xs(l)})},openLine:function(l){return l.replaceSelection(` 751`,"start")},toggleOverwrite:function(l){return l.toggleOverwrite()}};function Vm(l,u){var h=ie(l.doc,u),p=pe(h);return p!=h&&(u=Ue(p)),ch(!0,l,p,u,1)}function x4(l,u){var h=ie(l.doc,u),p=mn(h);return p!=h&&(u=Ue(p)),ch(!0,l,h,u,-1)}function Hm(l,u){var h=Vm(l,u.line),p=ie(l.doc,h.line),v=tt(p,l.doc.direction);if(!v||v[0].level==0){var b=Math.max(h.ch,p.text.search(/\S/)),C=u.line==h.line&&u.ch<=b&&u.ch;return Vt(h.line,C?0:b,h.sticky)}return h}function Ud(l,u,h){if(typeof u=="string"&&(u=Jl[u],!u))return!1;l.display.input.ensurePolled();var p=l.display.shift,v=!1;try{l.isReadOnly()&&(l.state.suppressEdits=!0),h&&(l.display.shift=!1),v=u(l)!=ne}finally{l.display.shift=p,l.state.suppressEdits=!1}return v}function w4(l,u,h){for(var p=0;p<l.state.keyMaps.length;p++){var v=Os(u,l.state.keyMaps[p],h,l);if(v)return v}return l.options.extraKeys&&Os(u,l.options.extraKeys,h,l)||Os(u,l.options.keyMap,h,l)}var _4=new Bt;function Ql(l,u,h,p){var v=l.state.keySeq;if(v){if(Nm(u))return"handled";if(/\'$/.test(u)?l.state.keySeq=null:_4.set(50,function(){l.state.keySeq==v&&(l.state.keySeq=null,l.display.input.reset())}),Fm(l,v+" "+u,h,p))return!0}return Fm(l,u,h,p)}function Fm(l,u,h,p){var v=w4(l,u,p);return v=="multi"&&(l.state.keySeq=u),v=="handled"&&lr(l,"keyHandled",l,u,h),(v=="handled"||v=="multi")&&(we(h),Wp(l)),!!v}function $m(l,u){var h=Bm(u,!0);return h?u.shiftKey&&!l.state.keySeq?Ql(l,"Shift-"+h,u,function(p){return Ud(l,p,!0)})||Ql(l,h,u,function(p){if(typeof p=="string"?/^go[A-Z]/.test(p):p.motion)return Ud(l,p)}):Ql(l,h,u,function(p){return Ud(l,p)}):!1}function C4(l,u,h){return Ql(l,"'"+h+"'",u,function(p){return Ud(l,p,!0)})}var dh=null;function zm(l){var u=this;if(!(l.target&&l.target!=u.display.input.getField())&&(u.curOp.focus=Q(),!re(u,l))){s&&c<11&&l.keyCode==27&&(l.returnValue=!1);var h=l.keyCode;u.display.shift=h==16||l.shiftKey;var p=$m(u,l);m&&(dh=p?h:null,!p&&h==88&&!Ie&&(L?l.metaKey:l.ctrlKey)&&u.replaceSelection("",null,"cut")),e&&!L&&!p&&h==46&&l.shiftKey&&!l.ctrlKey&&document.execCommand&&document.execCommand("cut"),h==18&&!/\bCodeMirror-crosshair\b/.test(u.display.lineDiv.className)&&k4(u)}}function k4(l){var u=l.display.lineDiv;J(u,"CodeMirror-crosshair");function h(p){(p.keyCode==18||!p.altKey)&&(X(u,"CodeMirror-crosshair"),Rt(document,"keyup",h),Rt(document,"mouseover",h))}pt(document,"keyup",h),pt(document,"mouseover",h)}function Um(l){l.keyCode==16&&(this.doc.sel.shift=!1),re(this,l)}function Wm(l){var u=this;if(!(l.target&&l.target!=u.display.input.getField())&&!(ai(u.display,l)||re(u,l)||l.ctrlKey&&!l.altKey||L&&l.metaKey)){var h=l.keyCode,p=l.charCode;if(m&&h==dh){dh=null,we(l);return}if(!(m&&(!l.which||l.which<10)&&$m(u,l))){var v=String.fromCharCode(p??h);v!="\b"&&(C4(u,l,v)||u.display.input.onKeyPress(l))}}}var S4=400,uh=function(l,u,h){this.time=l,this.pos=u,this.button=h};uh.prototype.compare=function(l,u,h){return this.time+S4>l&&he(u,this.pos)==0&&h==this.button};var tc,ec;function T4(l,u){var h=+new Date;return ec&&ec.compare(h,l,u)?(tc=ec=null,"triple"):tc&&tc.compare(h,l,u)?(ec=new uh(h,l,u),tc=null,"double"):(tc=new uh(h,l,u),ec=null,"single")}function Zm(l){var u=this,h=u.display;if(!(re(u,l)||h.activeTouch&&h.input.supportsTouch())){if(h.input.ensurePolled(),h.shift=l.shiftKey,ai(h,l)){d||(h.scroller.draggable=!1,setTimeout(function(){return h.scroller.draggable=!0},100));return}if(!fh(u,l)){var p=yo(u,l),v=dt(l),b=p?T4(p,v):"single";window.focus(),v==1&&u.state.selectingText&&u.state.selectingText(l),!(p&&O4(u,v,p,b,l))&&(v==1?p?A4(u,p,b,l):rt(l)==h.scroller&&we(l):v==2?(p&&Bd(u.doc,p),setTimeout(function(){return h.input.focus()},20)):v==3&&(z?u.display.input.onContextMenu(l):Zp(u)))}}}function O4(l,u,h,p,v){var b="Click";return p=="double"?b="Double"+b:p=="triple"&&(b="Triple"+b),b=(u==1?"Left":u==2?"Middle":"Right")+b,Ql(l,Rm(b,v),v,function(C){if(typeof C=="string"&&(C=Jl[C]),!C)return!1;var T=!1;try{l.isReadOnly()&&(l.state.suppressEdits=!0),T=C(l,h)!=ne}finally{l.state.suppressEdits=!1}return T})}function E4(l,u,h){var p=l.getOption("configureMouse"),v=p?p(l,u,h):{};if(v.unit==null){var b=D?h.shiftKey&&h.metaKey:h.altKey;v.unit=b?"rectangle":u=="single"?"char":u=="double"?"word":"line"}return(v.extend==null||l.doc.extend)&&(v.extend=l.doc.extend||h.shiftKey),v.addNew==null&&(v.addNew=L?h.metaKey:h.ctrlKey),v.moveOnDrag==null&&(v.moveOnDrag=!(L?h.altKey:h.ctrlKey)),v}function A4(l,u,h,p){s?setTimeout(wt(q1,l),0):l.curOp.focus=Q();var v=E4(l,h,p),b=l.doc.sel,C;l.options.dragDrop&&Pt&&!l.isReadOnly()&&h=="single"&&(C=b.contains(u))>-1&&(he((C=b.ranges[C]).from(),u)<0||u.xRel>0)&&(he(C.to(),u)>0||u.xRel<0)?M4(l,p,u,v):P4(l,p,u,v)}function M4(l,u,h,p){var v=l.display,b=!1,C=zr(l,function(I){d&&(v.scroller.draggable=!1),l.state.draggingText=!1,l.state.delayingBlurEvent&&(l.hasFocus()?l.state.delayingBlurEvent=!1:Zp(l)),Rt(v.wrapper.ownerDocument,"mouseup",C),Rt(v.wrapper.ownerDocument,"mousemove",T),Rt(v.scroller,"dragstart",O),Rt(v.scroller,"drop",C),b||(we(I),p.addNew||Bd(l.doc,h,null,null,p.extend),d&&!y||s&&c==9?setTimeout(function(){v.wrapper.ownerDocument.body.focus({preventScroll:!0}),v.input.focus()},20):v.input.focus())}),T=function(I){b=b||Math.abs(u.clientX-I.clientX)+Math.abs(u.clientY-I.clientY)>=10},O=function(){return b=!0};d&&(v.scroller.draggable=!0),l.state.draggingText=C,C.copy=!p.moveOnDrag,pt(v.wrapper.ownerDocument,"mouseup",C),pt(v.wrapper.ownerDocument,"mousemove",T),pt(v.scroller,"dragstart",O),pt(v.scroller,"drop",C),l.state.delayingBlurEvent=!0,setTimeout(function(){return v.input.focus()},20),v.scroller.dragDrop&&v.scroller.dragDrop()}function qm(l,u,h){if(h=="char")return new Je(u,u);if(h=="word")return l.findWordAt(u);if(h=="line")return new Je(Vt(u.line,0),Ut(l.doc,Vt(u.line+1,0)));var p=h(l,u);return new Je(p.from,p.to)}function P4(l,u,h,p){s&&Zp(l);var v=l.display,b=l.doc;we(u);var C,T,O=b.sel,I=O.ranges;if(p.addNew&&!p.extend?(T=b.sel.contains(h),T>-1?C=I[T]:C=new Je(h,h)):(C=b.sel.primary(),T=b.sel.primIndex),p.unit=="rectangle")p.addNew||(C=new Je(h,h)),h=yo(l,u,!0,!0),T=-1;else{var G=qm(l,h,p.unit);p.extend?C=ah(C,G.anchor,G.head,p.extend):C=G}p.addNew?T==-1?(T=I.length,fn(b,Ii(l,I.concat([C]),T),{scroll:!1,origin:"*mouse"})):I.length>1&&I[T].empty()&&p.unit=="char"&&!p.extend?(fn(b,Ii(l,I.slice(0,T).concat(I.slice(T+1)),0),{scroll:!1,origin:"*mouse"}),O=b.sel):oh(b,T,C,Ot):(T=0,fn(b,new si([C],0),Ot),O=b.sel);var at=h;function vt(Xt){if(he(at,Xt)!=0)if(at=Xt,p.unit=="rectangle"){for(var oe=[],be=l.options.tabSize,ge=It(ie(b,h.line).text,h.ch,be),je=It(ie(b,Xt.line).text,Xt.ch,be),ir=Math.min(ge,je),Wr=Math.max(ge,je),br=Math.min(h.line,Xt.line),$n=Math.min(l.lastLine(),Math.max(h.line,Xt.line));br<=$n;br++){var An=ie(b,br).text,Dr=zt(An,ir,be);ir==Wr?oe.push(new Je(Vt(br,Dr),Vt(br,Dr))):An.length>Dr&&oe.push(new Je(Vt(br,Dr),Vt(br,zt(An,Wr,be))))}oe.length||oe.push(new Je(h,h)),fn(b,Ii(l,O.ranges.slice(0,T).concat(oe),T),{origin:"*mouse",scroll:!1}),l.scrollIntoView(Xt)}else{var Mn=C,nn=qm(l,Xt,p.unit),Hr=Mn.anchor,Ir;he(nn.anchor,Hr)>0?(Ir=nn.head,Hr=Et(Mn.from(),nn.anchor)):(Ir=nn.anchor,Hr=nt(Mn.to(),nn.head));var Cr=O.ranges.slice(0);Cr[T]=L4(l,new Je(Ut(b,Hr),Ir)),fn(b,Ii(l,Cr,T),Ot)}}var ft=v.wrapper.getBoundingClientRect(),Tt=0;function jt(Xt){var oe=++Tt,be=yo(l,Xt,!0,p.unit=="rectangle");if(be)if(he(be,at)!=0){l.curOp.focus=Q(),vt(be);var ge=Ld(v,b);(be.line>=ge.to||be.line<ge.from)&&setTimeout(zr(l,function(){Tt==oe&&jt(Xt)}),150)}else{var je=Xt.clientY<ft.top?-20:Xt.clientY>ft.bottom?20:0;je&&setTimeout(zr(l,function(){Tt==oe&&(v.scroller.scrollTop+=je,jt(Xt))}),50)}}function Wt(Xt){l.state.selectingText=!1,Tt=1/0,Xt&&(we(Xt),v.input.focus()),Rt(v.wrapper.ownerDocument,"mousemove",Yt),Rt(v.wrapper.ownerDocument,"mouseup",ae),b.history.lastSelOrigin=null}var Yt=zr(l,function(Xt){Xt.buttons===0||!dt(Xt)?Wt(Xt):jt(Xt)}),ae=zr(l,Wt);l.state.selectingText=ae,pt(v.wrapper.ownerDocument,"mousemove",Yt),pt(v.wrapper.ownerDocument,"mouseup",ae)}function L4(l,u){var h=u.anchor,p=u.head,v=ie(l.doc,h.line);if(he(h,p)==0&&h.sticky==p.sticky)return u;var b=tt(v);if(!b)return u;var C=Re(b,h.ch,h.sticky),T=b[C];if(T.from!=h.ch&&T.to!=h.ch)return u;var O=C+(T.from==h.ch==(T.level!=1)?0:1);if(O==0||O==b.length)return u;var I;if(p.line!=h.line)I=(p.line-h.line)*(l.doc.direction=="ltr"?1:-1)>0;else{var G=Re(b,p.ch,p.sticky),at=G-C||(p.ch-h.ch)*(T.level==1?-1:1);G==O-1||G==O?I=at<0:I=at>0}var vt=b[O+(I?-1:0)],ft=I==(vt.level==1),Tt=ft?vt.from:vt.to,jt=ft?"after":"before";return h.ch==Tt&&h.sticky==jt?u:new Je(new Vt(h.line,Tt,jt),p)}function Km(l,u,h,p){var v,b;if(u.touches)v=u.touches[0].clientX,b=u.touches[0].clientY;else try{v=u.clientX,b=u.clientY}catch{return!1}if(v>=Math.floor(l.display.gutters.getBoundingClientRect().right))return!1;p&&we(u);var C=l.display,T=C.lineDiv.getBoundingClientRect();if(b>T.bottom||!Ce(l,h))return mr(u);b-=T.top-C.viewOffset;for(var O=0;O<l.display.gutterSpecs.length;++O){var I=C.gutters.childNodes[O];if(I&&I.getBoundingClientRect().right>=v){var G=tn(l.doc,b),at=l.display.gutterSpecs[O];return Jt(l,h,l,G,at.className,u),mr(u)}}}function fh(l,u){return Km(l,u,"gutterClick",!0)}function Gm(l,u){ai(l.display,u)||D4(l,u)||re(l,u,"contextmenu")||z||l.display.input.onContextMenu(u)}function D4(l,u){return Ce(l,"gutterContextMenu")?Km(l,u,"gutterContextMenu",!1):!1}function Ym(l){l.display.wrapper.className=l.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+l.options.theme.replace(/(^|\s)\s*/g," cm-s-"),jl(l)}var As={toString:function(){return"CodeMirror.Init"}},Xm={},Wd={};function I4(l){var u=l.optionHandlers;function h(p,v,b,C){l.defaults[p]=v,b&&(u[p]=C?function(T,O,I){I!=As&&b(T,O,I)}:b)}l.defineOption=h,l.Init=As,h("value","",function(p,v){return p.setValue(v)},!0),h("mode",null,function(p,v){p.doc.modeOption=v,rh(p)},!0),h("indentUnit",2,rh,!0),h("indentWithTabs",!1),h("smartIndent",!0),h("tabSize",4,function(p){zl(p),jl(p),On(p)},!0),h("lineSeparator",null,function(p,v){if(p.doc.lineSep=v,!!v){var b=[],C=p.doc.first;p.doc.iter(function(O){for(var I=0;;){var G=O.text.indexOf(v,I);if(G==-1)break;I=G+v.length,b.push(Vt(C,G))}C++});for(var T=b.length-1;T>=0;T--)Ss(p.doc,v,b[T],Vt(b[T].line,b[T].ch+v.length))}}),h("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(p,v,b){p.state.specialChars=new RegExp(v.source+(v.test(" ")?"":"| "),"g"),b!=As&&p.refresh()}),h("specialCharPlaceholder",yd,function(p){return p.refresh()},!0),h("electricChars",!0),h("inputStyle",A?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),h("spellcheck",!1,function(p,v){return p.getInputField().spellcheck=v},!0),h("autocorrect",!1,function(p,v){return p.getInputField().autocorrect=v},!0),h("autocapitalize",!1,function(p,v){return p.getInputField().autocapitalize=v},!0),h("rtlMoveVisually",!W),h("wholeLineUpdateBefore",!0),h("theme","default",function(p){Ym(p),$l(p)},!0),h("keyMap","default",function(p,v,b){var C=zd(v),T=b!=As&&zd(b);T&&T.detach&&T.detach(p,C),C.attach&&C.attach(p,T||null)}),h("extraKeys",null),h("configureMouse",null),h("lineWrapping",!1,N4,!0),h("gutters",[],function(p,v){p.display.gutterSpecs=th(v,p.options.lineNumbers),$l(p)},!0),h("fixedGutter",!0,function(p,v){p.display.gutters.style.left=v?zp(p.display)+"px":"0",p.refresh()},!0),h("coverGutterNextToScrollbar",!1,function(p){return ws(p)},!0),h("scrollbarStyle","native",function(p){Q1(p),ws(p),p.display.scrollbars.setScrollTop(p.doc.scrollTop),p.display.scrollbars.setScrollLeft(p.doc.scrollLeft)},!0),h("lineNumbers",!1,function(p,v){p.display.gutterSpecs=th(p.options.gutters,v),$l(p)},!0),h("firstLineNumber",1,$l,!0),h("lineNumberFormatter",function(p){return p},$l,!0),h("showCursorWhenSelecting",!1,Nl,!0),h("resetSelectionOnContextMenu",!0),h("lineWiseCopyCut",!0),h("pasteLinesPerSelection",!0),h("selectionsMayTouch",!1),h("readOnly",!1,function(p,v){v=="nocursor"&&(bs(p),p.display.input.blur()),p.display.input.readOnlyChanged(v)}),h("screenReaderLabel",null,function(p,v){v=v===""?null:v,p.display.input.screenReaderLabelChanged(v)}),h("disableInput",!1,function(p,v){v||p.display.input.reset()},!0),h("dragDrop",!0,j4),h("allowDropFileTypes",null),h("cursorBlinkRate",530),h("cursorScrollMargin",0),h("cursorHeight",1,Nl,!0),h("singleCursorHeightPerLine",!0,Nl,!0),h("workTime",100),h("workDelay",100),h("flattenSpans",!0,zl,!0),h("addModeClass",!1,zl,!0),h("pollInterval",100),h("undoDepth",200,function(p,v){return p.doc.history.undoDepth=v}),h("historyEventDelay",1250),h("viewportMargin",10,function(p){return p.refresh()},!0),h("maxHighlightLength",1e4,zl,!0),h("moveInputWithCursor",!0,function(p,v){v||p.display.input.resetPosition()}),h("tabindex",null,function(p,v){return p.display.input.getField().tabIndex=v||""}),h("autofocus",null),h("direction","ltr",function(p,v){return p.doc.setDirection(v)},!0),h("phrases",null)}function j4(l,u,h){var p=h&&h!=As;if(!u!=!p){var v=l.display.dragFunctions,b=u?pt:Rt;b(l.display.scroller,"dragstart",v.start),b(l.display.scroller,"dragenter",v.enter),b(l.display.scroller,"dragover",v.over),b(l.display.scroller,"dragleave",v.leave),b(l.display.scroller,"drop",v.drop)}}function N4(l){l.options.lineWrapping?(J(l.display.wrapper,"CodeMirror-wrap"),l.display.sizer.style.minWidth="",l.display.sizerWidth=null):(X(l.display.wrapper,"CodeMirror-wrap"),ds(l)),Up(l),On(l),jl(l),setTimeout(function(){return ws(l)},100)}function fr(l,u){var h=this;if(!(this instanceof fr))return new fr(l,u);this.options=u=u?mt(u):{},mt(Xm,u,!1);var p=u.value;typeof p=="string"?p=new En(p,u.mode,null,u.lineSeparator,u.direction):u.mode&&(p.modeOption=u.mode),this.doc=p;var v=new fr.inputStyles[u.inputStyle](this),b=this.display=new Gw(l,p,v,u);b.wrapper.CodeMirror=this,Ym(this),u.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Q1(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 Bt,keySeq:null,specialChars:null},u.autofocus&&!A&&b.input.focus(),s&&c<11&&setTimeout(function(){return h.display.input.reset(!0)},20),R4(this),h4(),_o(this),this.curOp.forceUpdate=!0,cm(this,p),u.autofocus&&!A||this.hasFocus()?setTimeout(function(){h.hasFocus()&&!h.state.focused&&qp(h)},20):bs(this);for(var C in Wd)Wd.hasOwnProperty(C)&&Wd[C](this,u[C],As);rm(this),u.finishInit&&u.finishInit(this);for(var T=0;T<ph.length;++T)ph[T](this);Co(this),d&&u.lineWrapping&&getComputedStyle(b.lineDiv).textRendering=="optimizelegibility"&&(b.lineDiv.style.textRendering="auto")}fr.defaults=Xm,fr.optionHandlers=Wd;function R4(l){var u=l.display;pt(u.scroller,"mousedown",zr(l,Zm)),s&&c<11?pt(u.scroller,"dblclick",zr(l,function(O){if(!re(l,O)){var I=yo(l,O);if(!(!I||fh(l,O)||ai(l.display,O))){we(O);var G=l.findWordAt(I);Bd(l.doc,G.anchor,G.head)}}})):pt(u.scroller,"dblclick",function(O){return re(l,O)||we(O)}),pt(u.scroller,"contextmenu",function(O){return Gm(l,O)}),pt(u.input.getField(),"contextmenu",function(O){u.scroller.contains(O.target)||Gm(l,O)});var h,p={end:0};function v(){u.activeTouch&&(h=setTimeout(function(){return u.activeTouch=null},1e3),p=u.activeTouch,p.end=+new Date)}function b(O){if(O.touches.length!=1)return!1;var I=O.touches[0];return I.radiusX<=1&&I.radiusY<=1}function C(O,I){if(I.left==null)return!0;var G=I.left-O.left,at=I.top-O.top;return G*G+at*at>400}pt(u.scroller,"touchstart",function(O){if(!re(l,O)&&!b(O)&&!fh(l,O)){u.input.ensurePolled(),clearTimeout(h);var I=+new Date;u.activeTouch={start:I,moved:!1,prev:I-p.end<=300?p:null},O.touches.length==1&&(u.activeTouch.left=O.touches[0].pageX,u.activeTouch.top=O.touches[0].pageY)}}),pt(u.scroller,"touchmove",function(){u.activeTouch&&(u.activeTouch.moved=!0)}),pt(u.scroller,"touchend",function(O){var I=u.activeTouch;if(I&&!ai(u,O)&&I.left!=null&&!I.moved&&new Date-I.start<300){var G=l.coordsChar(u.activeTouch,"page"),at;!I.prev||C(I,I.prev)?at=new Je(G,G):!I.prev.prev||C(I,I.prev.prev)?at=l.findWordAt(G):at=new Je(Vt(G.line,0),Ut(l.doc,Vt(G.line+1,0))),l.setSelection(at.anchor,at.head),l.focus(),we(O)}v()}),pt(u.scroller,"touchcancel",v),pt(u.scroller,"scroll",function(){u.scroller.clientHeight&&(Bl(l,u.scroller.scrollTop),xo(l,u.scroller.scrollLeft,!0),Jt(l,"scroll",l))}),pt(u.scroller,"mousewheel",function(O){return am(l,O)}),pt(u.scroller,"DOMMouseScroll",function(O){return am(l,O)}),pt(u.wrapper,"scroll",function(){return u.wrapper.scrollTop=u.wrapper.scrollLeft=0}),u.dragFunctions={enter:function(O){re(l,O)||V(O)},over:function(O){re(l,O)||(p4(l,O),V(O))},start:function(O){return f4(l,O)},drop:zr(l,u4),leave:function(O){re(l,O)||Dm(l)}};var T=u.input.getField();pt(T,"keyup",function(O){return Um.call(l,O)}),pt(T,"keydown",zr(l,zm)),pt(T,"keypress",zr(l,Wm)),pt(T,"focus",function(O){return qp(l,O)}),pt(T,"blur",function(O){return bs(l,O)})}var ph=[];fr.defineInitHook=function(l){return ph.push(l)};function rc(l,u,h,p){var v=l.doc,b;h==null&&(h="add"),h=="smart"&&(v.mode.indent?b=vi(l,u).state:h="prev");var C=l.options.tabSize,T=ie(v,u),O=It(T.text,null,C);T.stateAfter&&(T.stateAfter=null);var I=T.text.match(/^\s*/)[0],G;if(!p&&!/\S/.test(T.text))G=0,h="not";else if(h=="smart"&&(G=v.mode.indent(b,T.text.slice(I.length),T.text),G==ne||G>150)){if(!p)return;h="prev"}h=="prev"?u>v.first?G=It(ie(v,u-1).text,null,C):G=0:h=="add"?G=O+l.options.indentUnit:h=="subtract"?G=O-l.options.indentUnit:typeof h=="number"&&(G=O+h),G=Math.max(0,G);var at="",vt=0;if(l.options.indentWithTabs)for(var ft=Math.floor(G/C);ft;--ft)vt+=C,at+=" ";if(vt<G&&(at+=le(G-vt)),at!=I)return Ss(v,at,Vt(u,0),Vt(u,I.length),"+input"),T.stateAfter=null,!0;for(var Tt=0;Tt<v.sel.ranges.length;Tt++){var jt=v.sel.ranges[Tt];if(jt.head.line==u&&jt.head.ch<I.length){var Wt=Vt(u,I.length);oh(v,Tt,new Je(Wt,Wt));break}}}var ji=null;function Zd(l){ji=l}function hh(l,u,h,p,v){var b=l.doc;l.display.shift=!1,p||(p=b.sel);var C=+new Date-200,T=v=="paste"||l.state.pasteIncoming>C,O=ee(u),I=null;if(T&&p.ranges.length>1)if(ji&&ji.text.join(` 752`)==u){if(p.ranges.length%ji.text.length==0){I=[];for(var G=0;G<ji.text.length;G++)I.push(b.splitLines(ji.text[G]))}}else O.length==p.ranges.length&&l.options.pasteLinesPerSelection&&(I=ve(O,function(Yt){return[Yt]}));for(var at=l.curOp.updateInput,vt=p.ranges.length-1;vt>=0;vt--){var ft=p.ranges[vt],Tt=ft.from(),jt=ft.to();ft.empty()&&(h&&h>0?Tt=Vt(Tt.line,Tt.ch-h):l.state.overwrite&&!T?jt=Vt(jt.line,Math.min(ie(b,jt.line).text.length,jt.ch+Zt(O).length)):T&&ji&&ji.lineWise&&ji.text.join(` 753`)==O.join(` 754`)&&(Tt=jt=Vt(Tt.line,0)));var Wt={from:Tt,to:jt,text:I?I[vt%I.length]:O,origin:v||(T?"paste":l.state.cutIncoming>C?"cut":"+input")};ks(l.doc,Wt),lr(l,"inputRead",l,Wt)}u&&!T&&Qm(l,u),xs(l),l.curOp.updateInput<2&&(l.curOp.updateInput=at),l.curOp.typing=!0,l.state.pasteIncoming=l.state.cutIncoming=-1}function Jm(l,u){var h=l.clipboardData&&l.clipboardData.getData("Text");if(h)return l.preventDefault(),!u.isReadOnly()&&!u.options.disableInput&&Fn(u,function(){return hh(u,h,0,null,"paste")}),!0}function Qm(l,u){if(!(!l.options.electricChars||!l.options.smartIndent))for(var h=l.doc.sel,p=h.ranges.length-1;p>=0;p--){var v=h.ranges[p];if(!(v.head.ch>100||p&&h.ranges[p-1].head.line==v.head.line)){var b=l.getModeAt(v.head),C=!1;if(b.electricChars){for(var T=0;T<b.electricChars.length;T++)if(u.indexOf(b.electricChars.charAt(T))>-1){C=rc(l,v.head.line,"smart");break}}else b.electricInput&&b.electricInput.test(ie(l.doc,v.head.line).text.slice(0,v.head.ch))&&(C=rc(l,v.head.line,"smart"));C&&lr(l,"electricInput",l,v.head.line)}}}function t0(l){for(var u=[],h=[],p=0;p<l.doc.sel.ranges.length;p++){var v=l.doc.sel.ranges[p].head.line,b={anchor:Vt(v,0),head:Vt(v+1,0)};h.push(b),u.push(l.getRange(b.anchor,b.head))}return{text:u,ranges:h}}function e0(l,u,h,p){l.setAttribute("autocorrect",h?"":"off"),l.setAttribute("autocapitalize",p?"":"off"),l.setAttribute("spellcheck",!!u)}function r0(){var l=st("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),u=st("div",[l],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return d?l.style.width="1000px":l.setAttribute("wrap","off"),k&&(l.style.border="1px solid black"),e0(l),u}function B4(l){var u=l.optionHandlers,h=l.helpers={};l.prototype={constructor:l,focus:function(){window.focus(),this.display.input.focus()},setOption:function(p,v){var b=this.options,C=b[p];b[p]==v&&p!="mode"||(b[p]=v,u.hasOwnProperty(p)&&zr(this,u[p])(this,v,C),Jt(this,"optionChange",this,p))},getOption:function(p){return this.options[p]},getDoc:function(){return this.doc},addKeyMap:function(p,v){this.state.keyMaps[v?"push":"unshift"](zd(p))},removeKeyMap:function(p){for(var v=this.state.keyMaps,b=0;b<v.length;++b)if(v[b]==p||v[b].name==p)return v.splice(b,1),!0},addOverlay:xn(function(p,v){var b=p.token?p:l.getMode(this.options,p);if(b.startState)throw new Error("Overlays may not be stateful.");xe(this.state.overlays,{mode:b,modeSpec:p,opaque:v&&v.opaque,priority:v&&v.priority||0},function(C){return C.priority}),this.state.modeGen++,On(this)}),removeOverlay:xn(function(p){for(var v=this.state.overlays,b=0;b<v.length;++b){var C=v[b].modeSpec;if(C==p||typeof p=="string"&&C.name==p){v.splice(b,1),this.state.modeGen++,On(this);return}}}),indentLine:xn(function(p,v,b){typeof v!="string"&&typeof v!="number"&&(v==null?v=this.options.smartIndent?"smart":"prev":v=v?"add":"subtract"),Qn(this.doc,p)&&rc(this,p,v,b)}),indentSelection:xn(function(p){for(var v=this.doc.sel.ranges,b=-1,C=0;C<v.length;C++){var T=v[C];if(T.empty())T.head.line>b&&(rc(this,T.head.line,p,!0),b=T.head.line,C==this.doc.sel.primIndex&&xs(this));else{var O=T.from(),I=T.to(),G=Math.max(b,O.line);b=Math.min(this.lastLine(),I.line-(I.ch?0:1))+1;for(var at=G;at<b;++at)rc(this,at,p);var vt=this.doc.sel.ranges;O.ch==0&&v.length==vt.length&&vt[C].from().ch>0&&oh(this.doc,C,new Je(O,vt[C].to()),kt)}}}),getTokenAt:function(p,v){return sa(this,p,v)},getLineTokens:function(p,v){return sa(this,Vt(p),v,!0)},getTokenTypeAt:function(p){p=Ut(this.doc,p);var v=ei(this,ie(this.doc,p.line)),b=0,C=(v.length-1)/2,T=p.ch,O;if(T==0)O=v[2];else for(;;){var I=b+C>>1;if((I?v[I*2-1]:0)>=T)C=I;else if(v[I*2+1]<T)b=I+1;else{O=v[I*2+2];break}}var G=O?O.indexOf("overlay "):-1;return G<0?O:G==0?null:O.slice(0,G-1)},getModeAt:function(p){var v=this.doc.mode;return v.innerMode?l.innerMode(v,this.getTokenAt(p).state).mode:v},getHelper:function(p,v){return this.getHelpers(p,v)[0]},getHelpers:function(p,v){var b=[];if(!h.hasOwnProperty(v))return b;var C=h[v],T=this.getModeAt(p);if(typeof T[v]=="string")C[T[v]]&&b.push(C[T[v]]);else if(T[v])for(var O=0;O<T[v].length;O++){var I=C[T[v][O]];I&&b.push(I)}else T.helperType&&C[T.helperType]?b.push(C[T.helperType]):C[T.name]&&b.push(C[T.name]);for(var G=0;G<C._global.length;G++){var at=C._global[G];at.pred(T,this)&&se(b,at.val)==-1&&b.push(at.val)}return b},getStateAfter:function(p,v){var b=this.doc;return p=Ft(b,p??b.first+b.size-1),vi(this,p+1,v).state},cursorCoords:function(p,v){var b,C=this.doc.sel.primary();return p==null?b=C.head:typeof p=="object"?b=Ut(this.doc,p):b=p?C.from():C.to(),Di(this,b,v||"page")},charCoords:function(p,v){return Ed(this,Ut(this.doc,p),v||"page")},coordsChar:function(p,v){return p=V1(this,p,v||"page"),Hp(this,p.left,p.top)},lineAtHeight:function(p,v){return p=V1(this,{top:p,left:0},v||"page").top,tn(this.doc,p+this.display.viewOffset)},heightAtLine:function(p,v,b){var C=!1,T;if(typeof p=="number"){var O=this.doc.first+this.doc.size-1;p<this.doc.first?p=this.doc.first:p>O&&(p=O,C=!0),T=ie(this.doc,p)}else T=p;return Od(this,T,{top:0,left:0},v||"page",b||C).top+(C?this.doc.height-bn(T):0)},defaultTextHeight:function(){return ms(this.display)},defaultCharWidth:function(){return ys(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(p,v,b,C,T){var O=this.display;p=Di(this,Ut(this.doc,p));var I=p.bottom,G=p.left;if(v.style.position="absolute",v.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(v),O.sizer.appendChild(v),C=="over")I=p.top;else if(C=="above"||C=="near"){var at=Math.max(O.wrapper.clientHeight,this.doc.height),vt=Math.max(O.sizer.clientWidth,O.lineSpace.clientWidth);(C=="above"||p.bottom+v.offsetHeight>at)&&p.top>v.offsetHeight?I=p.top-v.offsetHeight:p.bottom+v.offsetHeight<=at&&(I=p.bottom),G+v.offsetWidth>vt&&(G=vt-v.offsetWidth)}v.style.top=I+"px",v.style.left=v.style.right="",T=="right"?(G=O.sizer.clientWidth-v.offsetWidth,v.style.right="0px"):(T=="left"?G=0:T=="middle"&&(G=(O.sizer.clientWidth-v.offsetWidth)/2),v.style.left=G+"px"),b&&jw(this,{left:G,top:I,right:G+v.offsetWidth,bottom:I+v.offsetHeight})},triggerOnKeyDown:xn(zm),triggerOnKeyPress:xn(Wm),triggerOnKeyUp:Um,triggerOnMouseDown:xn(Zm),execCommand:function(p){if(Jl.hasOwnProperty(p))return Jl[p].call(null,this)},triggerElectric:xn(function(p){Qm(this,p)}),findPosH:function(p,v,b,C){var T=1;v<0&&(T=-1,v=-v);for(var O=Ut(this.doc,p),I=0;I<v&&(O=gh(this.doc,O,T,b,C),!O.hitSide);++I);return O},moveH:xn(function(p,v){var b=this;this.extendSelectionsBy(function(C){return b.display.shift||b.doc.extend||C.empty()?gh(b.doc,C.head,p,v,b.options.rtlMoveVisually):p<0?C.from():C.to()},Mt)}),deleteH:xn(function(p,v){var b=this.doc.sel,C=this.doc;b.somethingSelected()?C.replaceSelection("",null,"+delete"):Es(this,function(T){var O=gh(C,T.head,p,v,!1);return p<0?{from:O,to:T.head}:{from:T.head,to:O}})}),findPosV:function(p,v,b,C){var T=1,O=C;v<0&&(T=-1,v=-v);for(var I=Ut(this.doc,p),G=0;G<v;++G){var at=Di(this,I,"div");if(O==null?O=at.left:at.left=O,I=n0(this,at,T,b),I.hitSide)break}return I},moveV:xn(function(p,v){var b=this,C=this.doc,T=[],O=!this.display.shift&&!C.extend&&C.sel.somethingSelected();if(C.extendSelectionsBy(function(G){if(O)return p<0?G.from():G.to();var at=Di(b,G.head,"div");G.goalColumn!=null&&(at.left=G.goalColumn),T.push(at.left);var vt=n0(b,at,p,v);return v=="page"&&G==C.sel.primary()&&Gp(b,Ed(b,vt,"div").top-at.top),vt},Mt),T.length)for(var I=0;I<C.sel.ranges.length;I++)C.sel.ranges[I].goalColumn=T[I]}),findWordAt:function(p){var v=this.doc,b=ie(v,p.line).text,C=p.ch,T=p.ch;if(b){var O=this.getHelper(p,"wordChars");(p.sticky=="before"||T==b.length)&&C?--C:++T;for(var I=b.charAt(C),G=ct(I,O)?function(at){return ct(at,O)}:/\s/.test(I)?function(at){return/\s/.test(at)}:function(at){return!/\s/.test(at)&&!ct(at)};C>0&&G(b.charAt(C-1));)--C;for(;T<b.length&&G(b.charAt(T));)++T}return new Je(Vt(p.line,C),Vt(p.line,T))},toggleOverwrite:function(p){p!=null&&p==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?J(this.display.cursorDiv,"CodeMirror-overwrite"):X(this.display.cursorDiv,"CodeMirror-overwrite"),Jt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Q()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:xn(function(p,v){Rl(this,p,v)}),getScrollInfo:function(){var p=this.display.scroller;return{left:p.scrollLeft,top:p.scrollTop,height:p.scrollHeight-M(this)-this.display.barHeight,width:p.scrollWidth-M(this)-this.display.barWidth,clientHeight:it(this),clientWidth:R(this)}},scrollIntoView:xn(function(p,v){p==null?(p={from:this.doc.sel.primary().head,to:null},v==null&&(v=this.options.cursorScrollMargin)):typeof p=="number"?p={from:Vt(p,0),to:null}:p.from==null&&(p={from:p,to:null}),p.to||(p.to=p.from),p.margin=v||0,p.from.line!=null?Nw(this,p):G1(this,p.from,p.to,p.margin)}),setSize:xn(function(p,v){var b=this,C=function(O){return typeof O=="number"||/^\d+$/.test(String(O))?O+"px":O};p!=null&&(this.display.wrapper.style.width=C(p)),v!=null&&(this.display.wrapper.style.height=C(v)),this.options.lineWrapping&&N1(this);var T=this.display.viewFrom;this.doc.iter(T,this.display.viewTo,function(O){if(O.widgets){for(var I=0;I<O.widgets.length;I++)if(O.widgets[I].noHScroll){Ba(b,T,"widget");break}}++T}),this.curOp.forceUpdate=!0,Jt(this,"refresh",this)}),operation:function(p){return Fn(this,p)},startOperation:function(){return _o(this)},endOperation:function(){return Co(this)},refresh:xn(function(){var p=this.display.cachedTextHeight;On(this),this.curOp.forceUpdate=!0,jl(this),Rl(this,this.doc.scrollLeft,this.doc.scrollTop),Jp(this.display),(p==null||Math.abs(p-ms(this.display))>.5||this.options.lineWrapping)&&Up(this),Jt(this,"refresh",this)}),swapDoc:xn(function(p){var v=this.doc;return v.cm=null,this.state.selectingText&&this.state.selectingText(),cm(this,p),jl(this),this.display.input.reset(),Rl(this,p.scrollLeft,p.scrollTop),this.curOp.forceScroll=!0,lr(this,"swapDoc",this,v),v}),phrase:function(p){var v=this.options.phrases;return v&&Object.prototype.hasOwnProperty.call(v,p)?v[p]:p},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}},Be(l),l.registerHelper=function(p,v,b){h.hasOwnProperty(p)||(h[p]=l[p]={_global:[]}),h[p][v]=b},l.registerGlobalHelper=function(p,v,b,C){l.registerHelper(p,v,C),h[p]._global.push({pred:b,val:C})}}function gh(l,u,h,p,v){var b=u,C=h,T=ie(l,u.line),O=v&&l.direction=="rtl"?-h:h;function I(){var ae=u.line+O;return ae<l.first||ae>=l.first+l.size?!1:(u=new Vt(ae,u.ch,u.sticky),T=ie(l,ae))}function G(ae){var Xt;if(p=="codepoint"){var oe=T.text.charCodeAt(u.ch+(h>0?0:-1));if(isNaN(oe))Xt=null;else{var be=h>0?oe>=55296&&oe<56320:oe>=56320&&oe<57343;Xt=new Vt(u.line,Math.max(0,Math.min(T.text.length,u.ch+h*(be?2:1))),-h)}}else v?Xt=b4(l.cm,T,u,h):Xt=lh(T,u,h);if(Xt==null)if(!ae&&I())u=ch(v,l.cm,T,u.line,O);else return!1;else u=Xt;return!0}if(p=="char"||p=="codepoint")G();else if(p=="column")G(!0);else if(p=="word"||p=="group")for(var at=null,vt=p=="group",ft=l.cm&&l.cm.getHelper(u,"wordChars"),Tt=!0;!(h<0&&!G(!Tt));Tt=!1){var jt=T.text.charAt(u.ch)||` 755`,Wt=ct(jt,ft)?"w":vt&&jt==` 756`?"n":!vt||/\s/.test(jt)?null:"p";if(vt&&!Tt&&!Wt&&(Wt="s"),at&&at!=Wt){h<0&&(h=1,G(),u.sticky="after");break}if(Wt&&(at=Wt),h>0&&!G(!Tt))break}var Yt=Hd(l,u,b,C,!0);return Vn(b,Yt)&&(Yt.hitSide=!0),Yt}function n0(l,u,h,p){var v=l.doc,b=u.left,C;if(p=="page"){var T=Math.min(l.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),O=Math.max(T-.5*ms(l.display),3);C=(h>0?u.bottom:u.top)+h*O}else p=="line"&&(C=h>0?u.bottom+3:u.top-3);for(var I;I=Hp(l,b,C),!!I.outside;){if(h<0?C<=0:C>=v.height){I.hitSide=!0;break}C+=h*5}return I}var er=function(l){this.cm=l,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Bt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};er.prototype.init=function(l){var u=this,h=this,p=h.cm,v=h.div=l.lineDiv;v.contentEditable=!0,e0(v,p.options.spellcheck,p.options.autocorrect,p.options.autocapitalize);function b(T){for(var O=T.target;O;O=O.parentNode){if(O==v)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(O.className))break}return!1}pt(v,"paste",function(T){!b(T)||re(p,T)||Jm(T,p)||c<=11&&setTimeout(zr(p,function(){return u.updateFromDOM()}),20)}),pt(v,"compositionstart",function(T){u.composing={data:T.data,done:!1}}),pt(v,"compositionupdate",function(T){u.composing||(u.composing={data:T.data,done:!1})}),pt(v,"compositionend",function(T){u.composing&&(T.data!=u.composing.data&&u.readFromDOMSoon(),u.composing.done=!0)}),pt(v,"touchstart",function(){return h.forceCompositionEnd()}),pt(v,"input",function(){u.composing||u.readFromDOMSoon()});function C(T){if(!(!b(T)||re(p,T))){if(p.somethingSelected())Zd({lineWise:!1,text:p.getSelections()}),T.type=="cut"&&p.replaceSelection("",null,"cut");else if(p.options.lineWiseCopyCut){var O=t0(p);Zd({lineWise:!0,text:O.text}),T.type=="cut"&&p.operation(function(){p.setSelections(O.ranges,0,kt),p.replaceSelection("",null,"cut")})}else return;if(T.clipboardData){T.clipboardData.clearData();var I=ji.text.join(` 757`);if(T.clipboardData.setData("Text",I),T.clipboardData.getData("Text")==I){T.preventDefault();return}}var G=r0(),at=G.firstChild;p.display.lineSpace.insertBefore(G,p.display.lineSpace.firstChild),at.value=ji.text.join(` 758`);var vt=Q();St(at),setTimeout(function(){p.display.lineSpace.removeChild(G),vt.focus(),vt==v&&h.showPrimarySelection()},50)}}pt(v,"copy",C),pt(v,"cut",C)},er.prototype.screenReaderLabelChanged=function(l){l?this.div.setAttribute("aria-label",l):this.div.removeAttribute("aria-label")},er.prototype.prepareSelection=function(){var l=W1(this.cm,!1);return l.focus=Q()==this.div,l},er.prototype.showSelection=function(l,u){!l||!this.cm.display.view.length||((l.focus||u)&&this.showPrimarySelection(),this.showMultipleSelections(l))},er.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},er.prototype.showPrimarySelection=function(){var l=this.getSelection(),u=this.cm,h=u.doc.sel.primary(),p=h.from(),v=h.to();if(u.display.viewTo==u.display.viewFrom||p.line>=u.display.viewTo||v.line<u.display.viewFrom){l.removeAllRanges();return}var b=qd(u,l.anchorNode,l.anchorOffset),C=qd(u,l.focusNode,l.focusOffset);if(!(b&&!b.bad&&C&&!C.bad&&he(Et(b,C),p)==0&&he(nt(b,C),v)==0)){var T=u.display.view,O=p.line>=u.display.viewFrom&&i0(u,p)||{node:T[0].measure.map[2],offset:0},I=v.line<u.display.viewTo&&i0(u,v);if(!I){var G=T[T.length-1].measure,at=G.maps?G.maps[G.maps.length-1]:G.map;I={node:at[at.length-1],offset:at[at.length-2]-at[at.length-3]}}if(!O||!I){l.removeAllRanges();return}var vt=l.rangeCount&&l.getRangeAt(0),ft;try{ft=Ct(O.node,O.offset,I.offset,I.node)}catch{}ft&&(!e&&u.state.focused?(l.collapse(O.node,O.offset),ft.collapsed||(l.removeAllRanges(),l.addRange(ft))):(l.removeAllRanges(),l.addRange(ft)),vt&&l.anchorNode==null?l.addRange(vt):e&&this.startGracePeriod()),this.rememberSelection()}},er.prototype.startGracePeriod=function(){var l=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){l.gracePeriod=!1,l.selectionChanged()&&l.cm.operation(function(){return l.cm.curOp.selectionChanged=!0})},20)},er.prototype.showMultipleSelections=function(l){F(this.cm.display.cursorDiv,l.cursors),F(this.cm.display.selectionDiv,l.selection)},er.prototype.rememberSelection=function(){var l=this.getSelection();this.lastAnchorNode=l.anchorNode,this.lastAnchorOffset=l.anchorOffset,this.lastFocusNode=l.focusNode,this.lastFocusOffset=l.focusOffset},er.prototype.selectionInEditor=function(){var l=this.getSelection();if(!l.rangeCount)return!1;var u=l.getRangeAt(0).commonAncestorContainer;return _(this.div,u)},er.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Q()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},er.prototype.blur=function(){this.div.blur()},er.prototype.getField=function(){return this.div},er.prototype.supportsTouch=function(){return!0},er.prototype.receivedFocus=function(){var l=this,u=this;this.selectionInEditor()?setTimeout(function(){return l.pollSelection()},20):Fn(this.cm,function(){return u.cm.curOp.selectionChanged=!0});function h(){u.cm.state.focused&&(u.pollSelection(),u.polling.set(u.cm.options.pollInterval,h))}this.polling.set(this.cm.options.pollInterval,h)},er.prototype.selectionChanged=function(){var l=this.getSelection();return l.anchorNode!=this.lastAnchorNode||l.anchorOffset!=this.lastAnchorOffset||l.focusNode!=this.lastFocusNode||l.focusOffset!=this.lastFocusOffset},er.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var l=this.getSelection(),u=this.cm;if(S&&g&&this.cm.display.gutterSpecs.length&&V4(l.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var h=qd(u,l.anchorNode,l.anchorOffset),p=qd(u,l.focusNode,l.focusOffset);h&&p&&Fn(u,function(){fn(u.doc,Ha(h,p),kt),(h.bad||p.bad)&&(u.curOp.selectionChanged=!0)})}}},er.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var l=this.cm,u=l.display,h=l.doc.sel.primary(),p=h.from(),v=h.to();if(p.ch==0&&p.line>l.firstLine()&&(p=Vt(p.line-1,ie(l.doc,p.line-1).length)),v.ch==ie(l.doc,v.line).text.length&&v.line<l.lastLine()&&(v=Vt(v.line+1,0)),p.line<u.viewFrom||v.line>u.viewTo-1)return!1;var b,C,T;p.line==u.viewFrom||(b=bo(l,p.line))==0?(C=Ue(u.view[0].line),T=u.view[0].node):(C=Ue(u.view[b].line),T=u.view[b-1].node.nextSibling);var O=bo(l,v.line),I,G;if(O==u.view.length-1?(I=u.viewTo-1,G=u.lineDiv.lastChild):(I=Ue(u.view[O+1].line)-1,G=u.view[O+1].node.previousSibling),!T)return!1;for(var at=l.doc.splitLines(H4(l,T,G,C,I)),vt=Sn(l.doc,Vt(C,0),Vt(I,ie(l.doc,I).text.length));at.length>1&&vt.length>1;)if(Zt(at)==Zt(vt))at.pop(),vt.pop(),I--;else if(at[0]==vt[0])at.shift(),vt.shift(),C++;else break;for(var ft=0,Tt=0,jt=at[0],Wt=vt[0],Yt=Math.min(jt.length,Wt.length);ft<Yt&&jt.charCodeAt(ft)==Wt.charCodeAt(ft);)++ft;for(var ae=Zt(at),Xt=Zt(vt),oe=Math.min(ae.length-(at.length==1?ft:0),Xt.length-(vt.length==1?ft:0));Tt<oe&&ae.charCodeAt(ae.length-Tt-1)==Xt.charCodeAt(Xt.length-Tt-1);)++Tt;if(at.length==1&&vt.length==1&&C==p.line)for(;ft&&ft>p.ch&&ae.charCodeAt(ae.length-Tt-1)==Xt.charCodeAt(Xt.length-Tt-1);)ft--,Tt++;at[at.length-1]=ae.slice(0,ae.length-Tt).replace(/^\u200b+/,""),at[0]=at[0].slice(ft).replace(/\u200b+$/,"");var be=Vt(C,ft),ge=Vt(I,vt.length?Zt(vt).length-Tt:0);if(at.length>1||at[0]||he(be,ge))return Ss(l.doc,at,be,ge,"+input"),!0},er.prototype.ensurePolled=function(){this.forceCompositionEnd()},er.prototype.reset=function(){this.forceCompositionEnd()},er.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},er.prototype.readFromDOMSoon=function(){var l=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(l.readDOMTimeout=null,l.composing)if(l.composing.done)l.composing=null;else return;l.updateFromDOM()},80))},er.prototype.updateFromDOM=function(){var l=this;(this.cm.isReadOnly()||!this.pollContent())&&Fn(this.cm,function(){return On(l.cm)})},er.prototype.setUneditable=function(l){l.contentEditable="false"},er.prototype.onKeyPress=function(l){l.charCode==0||this.composing||(l.preventDefault(),this.cm.isReadOnly()||zr(this.cm,hh)(this.cm,String.fromCharCode(l.charCode==null?l.keyCode:l.charCode),0))},er.prototype.readOnlyChanged=function(l){this.div.contentEditable=String(l!="nocursor")},er.prototype.onContextMenu=function(){},er.prototype.resetPosition=function(){},er.prototype.needsContentAttribute=!0;function i0(l,u){var h=Qt(l,u.line);if(!h||h.hidden)return null;var p=ie(l.doc,u.line),v=bt(h,p,u.line),b=tt(p,l.doc.direction),C="left";if(b){var T=Re(b,u.ch);C=T%2?"right":"left"}var O=en(v.map,u.ch,C);return O.offset=O.collapse=="right"?O.end:O.start,O}function V4(l){for(var u=l;u;u=u.parentNode)if(/CodeMirror-gutter-wrapper/.test(u.className))return!0;return!1}function Ms(l,u){return u&&(l.bad=!0),l}function H4(l,u,h,p,v){var b="",C=!1,T=l.doc.lineSeparator(),O=!1;function I(ft){return function(Tt){return Tt.id==ft}}function G(){C&&(b+=T,O&&(b+=T),C=O=!1)}function at(ft){ft&&(G(),b+=ft)}function vt(ft){if(ft.nodeType==1){var Tt=ft.getAttribute("cm-text");if(Tt){at(Tt);return}var jt=ft.getAttribute("cm-marker"),Wt;if(jt){var Yt=l.findMarks(Vt(p,0),Vt(v+1,0),I(+jt));Yt.length&&(Wt=Yt[0].find(0))&&at(Sn(l.doc,Wt.from,Wt.to).join(T));return}if(ft.getAttribute("contenteditable")=="false")return;var ae=/^(pre|div|p|li|table|br)$/i.test(ft.nodeName);if(!/^br$/i.test(ft.nodeName)&&ft.textContent.length==0)return;ae&&G();for(var Xt=0;Xt<ft.childNodes.length;Xt++)vt(ft.childNodes[Xt]);/^(pre|p)$/i.test(ft.nodeName)&&(O=!0),ae&&(C=!0)}else ft.nodeType==3&&at(ft.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;vt(u),u!=h;)u=u.nextSibling,O=!1;return b}function qd(l,u,h){var p;if(u==l.display.lineDiv){if(p=l.display.lineDiv.childNodes[h],!p)return Ms(l.clipPos(Vt(l.display.viewTo-1)),!0);u=null,h=0}else for(p=u;;p=p.parentNode){if(!p||p==l.display.lineDiv)return null;if(p.parentNode&&p.parentNode==l.display.lineDiv)break}for(var v=0;v<l.display.view.length;v++){var b=l.display.view[v];if(b.node==p)return F4(b,u,h)}}function F4(l,u,h){var p=l.text.firstChild,v=!1;if(!u||!_(p,u))return Ms(Vt(Ue(l.line),0),!0);if(u==p&&(v=!0,u=p.childNodes[h],h=0,!u)){var b=l.rest?Zt(l.rest):l.line;return Ms(Vt(Ue(b),b.text.length),v)}var C=u.nodeType==3?u:null,T=u;for(!C&&u.childNodes.length==1&&u.firstChild.nodeType==3&&(C=u.firstChild,h&&(h=C.nodeValue.length));T.parentNode!=p;)T=T.parentNode;var O=l.measure,I=O.maps;function G(Wt,Yt,ae){for(var Xt=-1;Xt<(I?I.length:0);Xt++)for(var oe=Xt<0?O.map:I[Xt],be=0;be<oe.length;be+=3){var ge=oe[be+2];if(ge==Wt||ge==Yt){var je=Ue(Xt<0?l.line:l.rest[Xt]),ir=oe[be]+ae;return(ae<0||ge!=Wt)&&(ir=oe[be+(ae?1:0)]),Vt(je,ir)}}}var at=G(C,T,h);if(at)return Ms(at,v);for(var vt=T.nextSibling,ft=C?C.nodeValue.length-h:0;vt;vt=vt.nextSibling){if(at=G(vt,vt.firstChild,0),at)return Ms(Vt(at.line,at.ch-ft),v);ft+=vt.textContent.length}for(var Tt=T.previousSibling,jt=h;Tt;Tt=Tt.previousSibling){if(at=G(Tt,Tt.firstChild,-1),at)return Ms(Vt(at.line,at.ch+jt),v);jt+=Tt.textContent.length}}var Or=function(l){this.cm=l,this.prevInput="",this.pollingFast=!1,this.polling=new Bt,this.hasSelection=!1,this.composing=null};Or.prototype.init=function(l){var u=this,h=this,p=this.cm;this.createField(l);var v=this.textarea;l.wrapper.insertBefore(this.wrapper,l.wrapper.firstChild),k&&(v.style.width="0px"),pt(v,"input",function(){s&&c>=9&&u.hasSelection&&(u.hasSelection=null),h.poll()}),pt(v,"paste",function(C){re(p,C)||Jm(C,p)||(p.state.pasteIncoming=+new Date,h.fastPoll())});function b(C){if(!re(p,C)){if(p.somethingSelected())Zd({lineWise:!1,text:p.getSelections()});else if(p.options.lineWiseCopyCut){var T=t0(p);Zd({lineWise:!0,text:T.text}),C.type=="cut"?p.setSelections(T.ranges,null,kt):(h.prevInput="",v.value=T.text.join(` 759`),St(v))}else return;C.type=="cut"&&(p.state.cutIncoming=+new Date)}}pt(v,"cut",b),pt(v,"copy",b),pt(l.scroller,"paste",function(C){if(!(ai(l,C)||re(p,C))){if(!v.dispatchEvent){p.state.pasteIncoming=+new Date,h.focus();return}var T=new Event("paste");T.clipboardData=C.clipboardData,v.dispatchEvent(T)}}),pt(l.lineSpace,"selectstart",function(C){ai(l,C)||we(C)}),pt(v,"compositionstart",function(){var C=p.getCursor("from");h.composing&&h.composing.range.clear(),h.composing={start:C,range:p.markText(C,p.getCursor("to"),{className:"CodeMirror-composing"})}}),pt(v,"compositionend",function(){h.composing&&(h.poll(),h.composing.range.clear(),h.composing=null)})},Or.prototype.createField=function(l){this.wrapper=r0(),this.textarea=this.wrapper.firstChild},Or.prototype.screenReaderLabelChanged=function(l){l?this.textarea.setAttribute("aria-label",l):this.textarea.removeAttribute("aria-label")},Or.prototype.prepareSelection=function(){var l=this.cm,u=l.display,h=l.doc,p=W1(l);if(l.options.moveInputWithCursor){var v=Di(l,h.sel.primary().head,"div"),b=u.wrapper.getBoundingClientRect(),C=u.lineDiv.getBoundingClientRect();p.teTop=Math.max(0,Math.min(u.wrapper.clientHeight-10,v.top+C.top-b.top)),p.teLeft=Math.max(0,Math.min(u.wrapper.clientWidth-10,v.left+C.left-b.left))}return p},Or.prototype.showSelection=function(l){var u=this.cm,h=u.display;F(h.cursorDiv,l.cursors),F(h.selectionDiv,l.selection),l.teTop!=null&&(this.wrapper.style.top=l.teTop+"px",this.wrapper.style.left=l.teLeft+"px")},Or.prototype.reset=function(l){if(!(this.contextMenuPending||this.composing)){var u=this.cm;if(u.somethingSelected()){this.prevInput="";var h=u.getSelection();this.textarea.value=h,u.state.focused&&St(this.textarea),s&&c>=9&&(this.hasSelection=h)}else l||(this.prevInput=this.textarea.value="",s&&c>=9&&(this.hasSelection=null))}},Or.prototype.getField=function(){return this.textarea},Or.prototype.supportsTouch=function(){return!1},Or.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!A||Q()!=this.textarea))try{this.textarea.focus()}catch{}},Or.prototype.blur=function(){this.textarea.blur()},Or.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Or.prototype.receivedFocus=function(){this.slowPoll()},Or.prototype.slowPoll=function(){var l=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){l.poll(),l.cm.state.focused&&l.slowPoll()})},Or.prototype.fastPoll=function(){var l=!1,u=this;u.pollingFast=!0;function h(){var p=u.poll();!p&&!l?(l=!0,u.polling.set(60,h)):(u.pollingFast=!1,u.slowPoll())}u.polling.set(20,h)},Or.prototype.poll=function(){var l=this,u=this.cm,h=this.textarea,p=this.prevInput;if(this.contextMenuPending||!u.state.focused||ye(h)&&!p&&!this.composing||u.isReadOnly()||u.options.disableInput||u.state.keySeq)return!1;var v=h.value;if(v==p&&!u.somethingSelected())return!1;if(s&&c>=9&&this.hasSelection===v||L&&/[\uf700-\uf7ff]/.test(v))return u.display.input.reset(),!1;if(u.doc.sel==u.display.selForContextMenu){var b=v.charCodeAt(0);if(b==8203&&!p&&(p="â"),b==8666)return this.reset(),this.cm.execCommand("undo")}for(var C=0,T=Math.min(p.length,v.length);C<T&&p.charCodeAt(C)==v.charCodeAt(C);)++C;return Fn(u,function(){hh(u,v.slice(C),p.length-C,null,l.composing?"*compose":null),v.length>1e3||v.indexOf(` 760`)>-1?h.value=l.prevInput="":l.prevInput=v,l.composing&&(l.composing.range.clear(),l.composing.range=u.markText(l.composing.start,u.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Or.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Or.prototype.onKeyPress=function(){s&&c>=9&&(this.hasSelection=null),this.fastPoll()},Or.prototype.onContextMenu=function(l){var u=this,h=u.cm,p=h.display,v=u.textarea;u.contextMenuPending&&u.contextMenuPending();var b=yo(h,l),C=p.scroller.scrollTop;if(!b||m)return;var T=h.options.resetSelectionOnContextMenu;T&&h.doc.sel.contains(b)==-1&&zr(h,fn)(h.doc,Ha(b),kt);var O=v.style.cssText,I=u.wrapper.style.cssText,G=u.wrapper.offsetParent.getBoundingClientRect();u.wrapper.style.cssText="position: static",v.style.cssText=`position: absolute; width: 30px; height: 30px; 761 top: `+(l.clientY-G.top-5)+"px; left: "+(l.clientX-G.left-5)+`px; 762 z-index: 1000; background: `+(s?"rgba(255, 255, 255, .05)":"transparent")+`; 763 outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var at;d&&(at=window.scrollY),p.input.focus(),d&&window.scrollTo(null,at),p.input.reset(),h.somethingSelected()||(v.value=u.prevInput=" "),u.contextMenuPending=ft,p.selForContextMenu=h.doc.sel,clearTimeout(p.detectingSelectAll);function vt(){if(v.selectionStart!=null){var jt=h.somethingSelected(),Wt="â"+(jt?v.value:"");v.value="â",v.value=Wt,u.prevInput=jt?"":"â",v.selectionStart=1,v.selectionEnd=Wt.length,p.selForContextMenu=h.doc.sel}}function ft(){if(u.contextMenuPending==ft&&(u.contextMenuPending=!1,u.wrapper.style.cssText=I,v.style.cssText=O,s&&c<9&&p.scrollbars.setScrollTop(p.scroller.scrollTop=C),v.selectionStart!=null)){(!s||s&&c<9)&&vt();var jt=0,Wt=function(){p.selForContextMenu==h.doc.sel&&v.selectionStart==0&&v.selectionEnd>0&&u.prevInput=="â"?zr(h,_m)(h):jt++<10?p.detectingSelectAll=setTimeout(Wt,500):(p.selForContextMenu=null,p.input.reset())};p.detectingSelectAll=setTimeout(Wt,200)}}if(s&&c>=9&&vt(),z){V(l);var Tt=function(){Rt(window,"mouseup",Tt),setTimeout(ft,20)};pt(window,"mouseup",Tt)}else setTimeout(ft,50)},Or.prototype.readOnlyChanged=function(l){l||this.reset(),this.textarea.disabled=l=="nocursor",this.textarea.readOnly=!!l},Or.prototype.setUneditable=function(){},Or.prototype.needsContentAttribute=!1;function $4(l,u){if(u=u?mt(u):{},u.value=l.value,!u.tabindex&&l.tabIndex&&(u.tabindex=l.tabIndex),!u.placeholder&&l.placeholder&&(u.placeholder=l.placeholder),u.autofocus==null){var h=Q();u.autofocus=h==l||l.getAttribute("autofocus")!=null&&h==document.body}function p(){l.value=T.getValue()}var v;if(l.form&&(pt(l.form,"submit",p),!u.leaveSubmitMethodAlone)){var b=l.form;v=b.submit;try{var C=b.submit=function(){p(),b.submit=v,b.submit(),b.submit=C}}catch{}}u.finishInit=function(O){O.save=p,O.getTextArea=function(){return l},O.toTextArea=function(){O.toTextArea=isNaN,p(),l.parentNode.removeChild(O.getWrapperElement()),l.style.display="",l.form&&(Rt(l.form,"submit",p),!u.leaveSubmitMethodAlone&&typeof l.form.submit=="function"&&(l.form.submit=v))}},l.style.display="none";var T=fr(function(O){return l.parentNode.insertBefore(O,l.nextSibling)},u);return T}
vendor: 8,130 bytes, line 763
763function z4(l){l.off=Rt,l.on=pt,l.wheelEventPixels=Yw,l.Doc=En,l.splitLines=ee,l.countColumn=It,l.findColumn=zt,l.isWordChar=Y,l.Pass=ne,l.signal=Jt,l.Line=Li,l.changeEnd=Fa,l.scrollbarModel=J1,l.Pos=Vt,l.cmpPos=he,l.modes=Pr,l.mimeModes=Xe,l.resolveMode=Ge,l.getMode=Lr,l.modeExtensions=ke,l.extendMode=$i,l.copyState=Br,l.startState=Vr,l.innerMode=wr,l.commands=Jl,l.keyMap=ua,l.keyName=Bm,l.isModifierKey=Nm,l.lookupKey=Os,l.normalizeKeyMap=y4,l.StringStream=Ye,l.SharedTextMarker=Gl,l.TextMarker=za,l.LineWidget=Kl,l.e_preventDefault=we,l.e_stopPropagation=vr,l.e_stop=V,l.addClass=J,l.contains=_,l.rmClass=X,l.keyNames=Ua}I4(fr),B4(fr);var U4="iter insert remove copy getEditor constructor".split(" ");for(var Kd in En.prototype)En.prototype.hasOwnProperty(Kd)&&se(U4,Kd)<0&&(fr.prototype[Kd]=(function(l){return function(){return l.apply(this.doc,arguments)}})(En.prototype[Kd]));return Be(En),fr.inputStyles={textarea:Or,contenteditable:er},fr.defineMode=function(l){!fr.defaults.mode&&l!="null"&&(fr.defaults.mode=l),sr.apply(this,arguments)},fr.defineMIME=yr,fr.defineMode("null",function(){return{token:function(l){return l.skipToEnd()}}}),fr.defineMIME("text/plain","null"),fr.defineExtension=function(l,u){fr.prototype[l]=u},fr.defineDocExtension=function(l,u){En.prototype[l]=u},fr.fromTextArea=$4,z4(fr),fr.version="5.63.0",fr}))}),389:((a,r,t)=>{(function(e){e(t(408))})(function(e){e.defineMode("css",function(Z,F){var st=F.inline;F.propertyKeywords||(F=e.resolveMode("text/css"));var q=Z.indentUnit,Ct=F.tokenHooks,_=F.documentTypes||{},Q=F.mediaTypes||{},J=F.mediaFeatures||{},gt=F.mediaValueKeywords||{},St=F.propertyKeywords||{},wt=F.nonStandardPropertyKeywords||{},mt=F.fontProperties||{},It=F.counterDescriptors||{},Bt=F.colorKeywords||{},se=F.valueKeywords||{},ue=F.allowNested,ne=F.lineComment,kt=F.supportsAtComponent===!0,Ot=Z.highlightNonStandardPropertyKeywords!==!1,Mt,zt;function Kt(K,yt){return Mt=yt,K}function le(K,yt){var ut=K.next();if(Ct[ut]){var de=Ct[ut](K,yt);if(de!==!1)return de}if(ut=="@")return K.eatWhile(/[\w\\\-]/),Kt("def",K.current());if(ut=="="||(ut=="~"||ut=="|")&&K.eat("="))return Kt(null,"compare");if(ut=='"'||ut=="'")return yt.tokenize=Zt(ut),yt.tokenize(K,yt);if(ut=="#")return K.eatWhile(/[\w\\\-]/),Kt("atom","hash");if(ut=="!")return K.match(/^\s*\w*/),Kt("keyword","important");if(/\d/.test(ut)||ut=="."&&K.eat(/\d/))return K.eatWhile(/[\w.%]/),Kt("number","unit");if(ut==="-"){if(/[\d.]/.test(K.peek()))return K.eatWhile(/[\w.%]/),Kt("number","unit");if(K.match(/^-[\w\\\-]*/))return K.eatWhile(/[\w\\\-]/),K.match(/^\s*:/,!1)?Kt("variable-2","variable-definition"):Kt("variable-2","variable");if(K.match(/^\w+-/))return Kt("meta","meta")}else return/[,+>*\/]/.test(ut)?Kt(null,"select-op"):ut=="."&&K.match(/^-?[_a-z][_a-z0-9-]*/i)?Kt("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(ut)?Kt(null,ut):K.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(K.current())&&(yt.tokenize=ve),Kt("variable callee","variable")):/[\w\\\-]/.test(ut)?(K.eatWhile(/[\w\\\-]/),Kt("property","word")):Kt(null,null)}function Zt(K){return function(yt,ut){for(var de=!1,Ae;(Ae=yt.next())!=null;){if(Ae==K&&!de){K==")"&&yt.backUp(1);break}de=!de&&Ae=="\\"}return(Ae==K||!de&&K!=")")&&(ut.tokenize=null),Kt("string","string")}}function ve(K,yt){return K.next(),K.match(/^\s*[\"\')]/,!1)?yt.tokenize=null:yt.tokenize=Zt(")"),Kt(null,"(")}function xe(K,yt,ut){this.type=K,this.indent=yt,this.prev=ut}function ce(K,yt,ut,de){return K.context=new xe(ut,yt.indentation()+(de===!1?0:q),K.context),ut}function P(K){return K.context.prev&&(K.context=K.context.prev),K.context.type}function H(K,yt,ut){return _t[ut.context.type](K,yt,ut)}function Y(K,yt,ut,de){for(var Ae=de||1;Ae>0;Ae--)ut.context=ut.context.prev;return H(K,yt,ut)}function ct(K){var yt=K.current().toLowerCase();se.hasOwnProperty(yt)?zt="atom":Bt.hasOwnProperty(yt)?zt="keyword":zt="variable"}var _t={};return _t.top=function(K,yt,ut){if(K=="{")return ce(ut,yt,"block");if(K=="}"&&ut.context.prev)return P(ut);if(kt&&/@component/i.test(K))return ce(ut,yt,"atComponentBlock");if(/^@(-moz-)?document$/i.test(K))return ce(ut,yt,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(K))return ce(ut,yt,"atBlock");if(/^@(font-face|counter-style)/i.test(K))return ut.stateArg=K,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(K))return"keyframes";if(K&&K.charAt(0)=="@")return ce(ut,yt,"at");if(K=="hash")zt="builtin";else if(K=="word")zt="tag";else{if(K=="variable-definition")return"maybeprop";if(K=="interpolation")return ce(ut,yt,"interpolation");if(K==":")return"pseudo";if(ue&&K=="(")return ce(ut,yt,"parens")}return ut.context.type},_t.block=function(K,yt,ut){if(K=="word"){var de=yt.current().toLowerCase();return St.hasOwnProperty(de)?(zt="property","maybeprop"):wt.hasOwnProperty(de)?(zt=Ot?"string-2":"property","maybeprop"):ue?(zt=yt.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(zt+=" error","maybeprop")}else return K=="meta"?"block":!ue&&(K=="hash"||K=="qualifier")?(zt="error","block"):_t.top(K,yt,ut)},_t.maybeprop=function(K,yt,ut){return K==":"?ce(ut,yt,"prop"):H(K,yt,ut)},_t.prop=function(K,yt,ut){if(K==";")return P(ut);if(K=="{"&&ue)return ce(ut,yt,"propBlock");if(K=="}"||K=="{")return Y(K,yt,ut);if(K=="(")return ce(ut,yt,"parens");if(K=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(yt.current()))zt+=" error";else if(K=="word")ct(yt);else if(K=="interpolation")return ce(ut,yt,"interpolation");return"prop"},_t.propBlock=function(K,yt,ut){return K=="}"?P(ut):K=="word"?(zt="property","maybeprop"):ut.context.type},_t.parens=function(K,yt,ut){return K=="{"||K=="}"?Y(K,yt,ut):K==")"?P(ut):K=="("?ce(ut,yt,"parens"):K=="interpolation"?ce(ut,yt,"interpolation"):(K=="word"&&ct(yt),"parens")},_t.pseudo=function(K,yt,ut){return K=="meta"?"pseudo":K=="word"?(zt="variable-3",ut.context.type):H(K,yt,ut)},_t.documentTypes=function(K,yt,ut){return K=="word"&&_.hasOwnProperty(yt.current())?(zt="tag",ut.context.type):_t.atBlock(K,yt,ut)},_t.atBlock=function(K,yt,ut){if(K=="(")return ce(ut,yt,"atBlock_parens");if(K=="}"||K==";")return Y(K,yt,ut);if(K=="{")return P(ut)&&ce(ut,yt,ue?"block":"top");if(K=="interpolation")return ce(ut,yt,"interpolation");if(K=="word"){var de=yt.current().toLowerCase();de=="only"||de=="not"||de=="and"||de=="or"?zt="keyword":Q.hasOwnProperty(de)?zt="attribute":J.hasOwnProperty(de)?zt="property":gt.hasOwnProperty(de)?zt="keyword":St.hasOwnProperty(de)?zt="property":wt.hasOwnProperty(de)?zt=Ot?"string-2":"property":se.hasOwnProperty(de)?zt="atom":Bt.hasOwnProperty(de)?zt="keyword":zt="error"}return ut.context.type},_t.atComponentBlock=function(K,yt,ut){return K=="}"?Y(K,yt,ut):K=="{"?P(ut)&&ce(ut,yt,ue?"block":"top",!1):(K=="word"&&(zt="error"),ut.context.type)},_t.atBlock_parens=function(K,yt,ut){return K==")"?P(ut):K=="{"||K=="}"?Y(K,yt,ut,2):_t.atBlock(K,yt,ut)},_t.restricted_atBlock_before=function(K,yt,ut){return K=="{"?ce(ut,yt,"restricted_atBlock"):K=="word"&&ut.stateArg=="@counter-style"?(zt="variable","restricted_atBlock_before"):H(K,yt,ut)},_t.restricted_atBlock=function(K,yt,ut){return K=="}"?(ut.stateArg=null,P(ut)):K=="word"?(ut.stateArg=="@font-face"&&!mt.hasOwnProperty(yt.current().toLowerCase())||ut.stateArg=="@counter-style"&&!It.hasOwnProperty(yt.current().toLowerCase())?zt="error":zt="property","maybeprop"):"restricted_atBlock"},_t.keyframes=function(K,yt,ut){return K=="word"?(zt="variable","keyframes"):K=="{"?ce(ut,yt,"top"):H(K,yt,ut)},_t.at=function(K,yt,ut){return K==";"?P(ut):K=="{"||K=="}"?Y(K,yt,ut):(K=="word"?zt="tag":K=="hash"&&(zt="builtin"),"at")},_t.interpolation=function(K,yt,ut){return K=="}"?P(ut):K=="{"||K==";"?Y(K,yt,ut):(K=="word"?zt="variable":K!="variable"&&K!="("&&K!=")"&&(zt="error"),"interpolation")},{startState:function(K){return{tokenize:null,state:st?"block":"top",stateArg:null,context:new xe(st?"block":"top",K||0,null)}},token:function(K,yt){if(!yt.tokenize&&K.eatSpace())return null;var ut=(yt.tokenize||le)(K,yt);return ut&&typeof ut=="object"&&(Mt=ut[1],ut=ut[0]),zt=ut,Mt!="comment"&&(yt.state=_t[yt.state](Mt,K,yt)),zt}
vendor: 5,380 bytes, line 763
763,indent:function(K,yt){var ut=K.context,de=yt&&yt.charAt(0),Ae=ut.indent;return ut.type=="prop"&&(de=="}"||de==")")&&(ut=ut.prev),ut.prev&&(de=="}"&&(ut.type=="block"||ut.type=="top"||ut.type=="interpolation"||ut.type=="restricted_atBlock")?(ut=ut.prev,Ae=ut.indent):(de==")"&&(ut.type=="parens"||ut.type=="atBlock_parens")||de=="{"&&(ut.type=="at"||ut.type=="atBlock"))&&(Ae=Math.max(0,ut.indent-q))),Ae},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:ne,fold:"brace"}});function n(Z){for(var F={},st=0;st<Z.length;++st)F[Z[st].toLowerCase()]=!0;return F}var i=["domain","regexp","url","url-prefix"],o=n(i),s=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],c=n(s),d=["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"],f=n(d),g=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light"],m=n(g),y=["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","
763nav-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"],x=n(y),w=["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"],k=n(w),S=["font-display","font-family","src","unicode
763-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],A=n(S),L=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],D=n(L),W=["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"],j=n(W),et=["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","button-bevel","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","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","
763initial","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-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","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","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"],z=n(et),B=i.concat(s).concat(d).concat(g).concat(y).concat(w).c
763oncat(W).concat(et);e.registerHelper("hintWords","css",B);function X(Z,F){for(var st=!1,q;(q=Z.next())!=null;){if(st&&q=="/"){F.tokenize=null;break}st=q=="*"}return["comment","comment"]}e.defineMIME("text/css",{documentTypes:o,mediaTypes:c,mediaFeatures:f,mediaValueKeywords:m,propertyKeywords:x,nonStandardPropertyKeywords:k,fontProperties:A,counterDescriptors:D,colorKeywords:j,valueKeywords:z,tokenHooks:{"/":function(Z,F){return Z.eat("*")?(F.tokenize=X,X(Z,F)):!1}},name:"css"}),e.defineMIME("text/x-scss",{mediaTypes:c,mediaFeatures:f,mediaValueKeywords:m,propertyKeywords:x,nonStandardPropertyKeywords:k,colorKeywords:j,valueKeywords:z,fontProperties:A,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(Z,F){return Z.eat("/")?(Z.skipToEnd(),["comment","comment"]):Z.eat("*")?(F.tokenize=X,X(Z,F)):["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"}),e.defineMIME("text/x-less",{mediaTypes:c,mediaFeatures:f,mediaValueKeywords:m,propertyKeywords:x,nonStandardPropertyKeywords:k,colorKeywords:j,valueKeywords:z,fontProperties:A,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(Z,F){return Z.eat("/")?(Z.skipToEnd(),["comment","comment"]):Z.eat("*")?(F.tokenize=X,X(Z,F)):["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"}),e.defineMIME("text/x-gss",{documentTypes:o,mediaTypes:c,mediaFeatures:f,propertyKeywords:x,nonStandardPropertyKeywords:k,fontProperties:A,counterDescriptors:D,colorKeywords:j,valueKeywords:z,supportsAtComponent:!0,tokenHooks:{"/":function(Z,F){return Z.eat("*")?(F.tokenize=X,X(Z,F)):!1}},name:"css",helperType:"gss"})})}),253:((a,r,t)=>{(function(e){e(t(408),t(701),t(61),t(389))})(function(e){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 i(m,y,x){var w=m.current(),k=w.search(y);return k>-1?m.backUp(w.length-k):w.match(/<\/?$/)&&(m.backUp(w.length),m.match(y,!1)||m.match(w)),x}var o={};function s(m){var y=o[m];return y||(o[m]=new RegExp("\\s+"+m+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function c(m,y){var x=m.match(s(y));return x?/^\s*(.*?)\s*$/.exec(x[2])[1]:""}function d(m,y){return new RegExp((y?"^":"")+"</s*"+m+"s*>","i")}function f(m,y){for(var x in m)for(var w=y[x]||(y[x]=[]),k=m[x],S=k.length-1;S>=0;S--)w.unshift(k[S])}function g(m,y){for(var x=0;x<m.length;x++){var w=m[x];if(!w[0]||w[1].test(c(y,w[0])))return w[2]}}e.defineMode("htmlmixed",function(m,y){var x=e.getMode(m,{name:"xml",htmlMode:!0,multilineTagIndentFactor:y.multilineTagIndentFactor,multilineTagIndentPastTag:y.multilineTagIndentPastTag,allowMissingTagName:y.allowMissingTagName}),w={},k=y&&y.tags,S=y&&y.scriptTypes;if(f(n,w),k&&f(k,w),S)for(var A=S.length-1;A>=0;A--)w.script.unshift(["type",S[A].matches,S[A].mode]);function L(D,W){var j=x.token(D,W.htmlState),et=/\btag\b/.test(j),z;if(et&&!/[<>\s\/]/.test(D.current())&&(z=W.htmlState.tagName&&W.htmlState.tagName.toLowerCase())&&w.hasOwnProperty(z))W.inTag=z+" ";else if(W.inTag&&et&&/>$/.test(D.current())){var B=/^([\S]+) (.*)/.exec(W.inTag);W.inTag=null;var X=D.current()==">"&&g(w[B[1]],B[2]),Z=e.getMode(m,X),F=d(B[1],!0),st=d(B[1],!1);W.token=function(q,Ct){return q.match(F,!1)?(Ct.token=L,Ct.localState=Ct.localMode=null,null):i(q,st,Ct.localMode.token(q,Ct.localState))},W.localMode=Z,W.localState=e.startState(Z,x.indent(W.htmlState,"",""))}
763else W.inTag&&(W.inTag+=D.current(),D.eol()&&(W.inTag+=" "));return j}return{startState:function(){var D=e.startState(x);return{token:L,inTag:null,localMode:null,localState:null,htmlState:D}},copyState:function(D){var W;return D.localState&&(W=e.copyState(D.localMode,D.localState)),{token:D.token,inTag:D.inTag,localMode:D.localMode,localState:W,htmlState:e.copyState(x,D.htmlState)}},token:function(D,W){return W.token(D,W)},indent:function(D,W,j){return!D.localMode||/^\s*<\//.test(W)?x.indent(D.htmlState,W,j):D.localMode.indent?D.localMode.indent(D.localState,W,j):e.Pass},innerMode:function(D){return{state:D.localState||D.htmlState,mode:D.localMode||x}}}},"xml","javascript","css"),e.defineMIME("text/html","htmlmixed")})}),61:((a,r,t)=>{(function(e){e(t(408))})(function(e){e.defineMode("javascript",function(n,i){var o=n.indentUnit,s=i.statementIndent,c=i.jsonld,d=i.json||c,f=i.trackScope!==!1,g=i.typescript,m=i.wordCharacters||/[\w$\xa1-\uffff]/,y=(function(){function N(nr){return{type:nr,style:"keyword"}}var nt=N("keyword a"),Et=N("keyword b"),Ft=N("keyword c"),Ut=N("keyword d"),Pe=N("operator"),Ve={type:"atom",style:"atom"};return{if:N("if"),while:nt,with:nt,else:Et,do:Et,try:Et,finally:Et,return:Ut,break:Ut,continue:Ut,new:N("new"),delete:Ft,void:Ft,throw:Ft,debugger:N("debugger"),var:N("var"),const:N("var"),let:N("var"),function:N("function"),catch:N("catch"),for:N("for"),switch:N("switch"),case:N("case"),default:N("default"),in:Pe,typeof:Pe,instanceof:Pe,true:Ve,false:Ve,null:Ve,undefined:Ve,NaN:Ve,Infinity:Ve,this:N("this"),class:N("class"),super:N("atom"),yield:Ft,export:N("export"),import:N("import"),extends:Ft,await:Ft}})(),x=/[+\-*&%=<>!?|~^@]/,w=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function k(N){for(var nt=!1,Et,Ft=!1;(Et=N.next())!=null;){if(!nt){if(Et=="/"&&!Ft)return;Et=="["?Ft=!0:Ft&&Et=="]"&&(Ft=!1)}nt=!nt&&Et=="\\"}}var S,A;function L(N,nt,Et){return S=N,A=Et,nt}function D(N,nt){var Et=N.next();if(Et=='"'||Et=="'")return nt.tokenize=W(Et),nt.tokenize(N,nt);if(Et=="."&&N.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return L("number","number");if(Et=="."&&N.match(".."))return L("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(Et))return L(Et);if(Et=="="&&N.eat(">"))return L("=>","operator");if(Et=="0"&&N.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return L("number","number");if(/\d/.test(Et))return N.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),L("number","number");if(Et=="/")return N.eat("*")?(nt.tokenize=j,j(N,nt)):N.eat("/")?(N.skipToEnd(),L("comment","comment")):Vn(N,nt,1)?(k(N),N.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),L("regexp","string-2")):(N.eat("="),L("operator","operator",N.current()));if(Et=="`")return nt.tokenize=et,et(N,nt);if(Et=="#"&&N.peek()=="!")return N.skipToEnd(),L("meta","meta");if(Et=="#"&&N.eatWhile(m))return L("variable","property");if(Et=="<"&&N.match("!--")||Et=="-"&&N.match("->")&&!/\S/.test(N.string.slice(0,N.start)))return N.skipToEnd(),L("comment","comment");
vendor: 4,490 bytes, line 763
763if(x.test(Et))return(Et!=">"||!nt.lexical||nt.lexical.type!=">")&&(N.eat("=")?(Et=="!"||Et=="=")&&N.eat("="):/[<>*+\-|&?]/.test(Et)&&(N.eat(Et),Et==">"&&N.eat(Et))),Et=="?"&&N.eat(".")?L("."):L("operator","operator",N.current());if(m.test(Et)){N.eatWhile(m);var Ft=N.current();if(nt.lastType!="."){if(y.propertyIsEnumerable(Ft)){var Ut=y[Ft];return L(Ut.type,Ut.style,Ft)}if(Ft=="async"&&N.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return L("async","keyword",Ft)}return L("variable","variable",Ft)}}function W(N){return function(nt,Et){var Ft=!1,Ut;if(c&&nt.peek()=="@"&&nt.match(w))return Et.tokenize=D,L("jsonld-keyword","meta");for(;(Ut=nt.next())!=null&&!(Ut==N&&!Ft);)Ft=!Ft&&Ut=="\\";return Ft||(Et.tokenize=D),L("string","string")}}function j(N,nt){for(var Et=!1,Ft;Ft=N.next();){if(Ft=="/"&&Et){nt.tokenize=D;break}Et=Ft=="*"}return L("comment","comment")}function et(N,nt){for(var Et=!1,Ft;(Ft=N.next())!=null;){if(!Et&&(Ft=="`"||Ft=="$"&&N.eat("{"))){nt.tokenize=D;break}Et=!Et&&Ft=="\\"}return L("quasi","string-2",N.current())}var z="([{}])";function B(N,nt){nt.fatArrowAt&&(nt.fatArrowAt=null);var Et=N.string.indexOf("=>",N.start);if(!(Et<0)){if(g){var Ft=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(N.string.slice(N.start,Et));Ft&&(Et=Ft.index)}for(var Ut=0,Pe=!1,Ve=Et-1;Ve>=0;--Ve){var nr=N.string.charAt(Ve),ur=z.indexOf(nr);if(ur>=0&&ur<3){if(!Ut){++Ve;break}if(--Ut==0){nr=="("&&(Pe=!0);break}}else if(ur>=3&&ur<6)++Ut;else if(m.test(nr))Pe=!0;else if(/["'\/`]/.test(nr))for(;;--Ve){if(Ve==0)return;var Tn=N.string.charAt(Ve-1);if(Tn==nr&&N.string.charAt(Ve-2)!="\\"){Ve--;break}}else if(Pe&&!Ut){++Ve;break}}Pe&&!Ut&&(nt.fatArrowAt=Ve)}}var X={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function Z(N,nt,Et,Ft,Ut,Pe){this.indented=N,this.column=nt,this.type=Et,this.prev=Ut,this.info=Pe,Ft!=null&&(this.align=Ft)}function F(N,nt){if(!f)return!1;for(var Et=N.localVars;Et;Et=Et.next)if(Et.name==nt)return!0;for(var Ft=N.context;Ft;Ft=Ft.prev)for(var Et=Ft.vars;Et;Et=Et.next)if(Et.name==nt)return!0}function st(N,nt,Et,Ft,Ut){var Pe=N.cc;for(q.state=N,q.stream=Ut,q.marked=null,q.cc=Pe,q.style=nt,N.lexical.hasOwnProperty("align")||(N.lexical.align=!0);;){var Ve=Pe.length?Pe.pop():d?Kt:Mt;if(Ve(Et,Ft)){for(;Pe.length&&Pe[Pe.length-1].lex;)Pe.pop()();return q.marked?q.marked:Et=="variable"&&F(N,Ft)?"variable-2":nt}}}var q={state:null,marked:null,cc:null};function Ct(){for(var N=arguments.length-1;N>=0;N--)q.cc.push(arguments[N])}function _(){return Ct.apply(null,arguments),!0}function Q(N,nt){for(var Et=nt;Et;Et=Et.next)if(Et.name==N)return!0;return!1}function J(N){var nt=q.state;if(q.marked="def",!!f){if(nt.context){if(nt.lexical.info=="var"&&nt.context&&nt.context.block){var Et=gt(N,nt.context);if(Et!=null){nt.context=Et;return}}else if(!Q(N,nt.localVars)){nt.localVars=new mt(N,nt.localVars);return}}i.globalVars&&!Q(N,nt.globalVars)&&(nt.globalVars=new mt(N,nt.globalVars))}}function gt(N,nt){if(nt)if(nt.block){var Et=gt(N,nt.prev);return Et?Et==nt.prev?nt:new wt(Et,nt.vars,!0):null}else return Q(N,nt.vars)?nt:new wt(nt.prev,new mt(N,nt.vars),!1);else return null}function St(N){return N=="public"||N=="private"||N=="protected"||N=="abstract"||N=="readonly"}function wt(N,nt,Et){this.prev=N,this.vars=nt,this.block=Et}function mt(N,nt){this.name=N,this.next=nt}var It=new mt("this",new mt("arguments",null));function Bt(){q.state.context=new wt(q.state.context,q.state.localVars,!1),q.state.localVars=It}function se(){q.state.context=new wt(q.state.context,q.state.localVars,!0),q.state.localVars=null}function ue(){q.state.localVars=q.state.context.vars,q.state.context=q.state.context.prev}ue.lex=!0;function ne(N,nt){var Et=function(){var Ft=q.state,Ut=Ft.indented;if(Ft.lexical.type=="stat")Ut=Ft.lexical.indented;else for(var Pe=Ft.lexical;Pe&&Pe.type==")"&&Pe.align;Pe=Pe.prev)Ut=Pe.indented;Ft.lexical=new Z(Ut,q.stream.column(),N,null,Ft.lexical,nt)};return Et.lex=!0,Et}function kt(){var N=q.state;N.lexical.prev&&(N.lexical.type==")"&&(N.indented=N.lexical.indented),N.lexical=N.lexical.prev)}kt.lex=!0;function Ot(N){function nt(Et){return Et==N?_():N==";"||Et=="}"||Et==")"||Et=="]"?Ct():_(nt)}return nt}function Mt(N,nt){return N=="var"?_(ne("vardef",nt),ot,Ot(";"),kt):N=="keyword a"?_(ne("form"),Zt,Mt,kt):N=="keyword b"?_(ne("form"),Mt,kt):N=="keyword d"?q.stream.match(/^\s*$/,!1)?_():_(ne("stat"),xe,Ot(";"),kt):N=="debugger"?_(Ot(";")):N=="{"?_(ne("}"),se,pt,kt,ue):N==";
763"?_():N=="if"?(q.state.lexical.info=="else"&&q.state.cc[q.state.cc.length-1]==kt&&q.state.cc.pop()(),_(ne("form"),Zt,Mt,kt,Ke)):N=="function"?_(sr):N=="for"?_(ne("form"),se,Fe,Mt,ue,kt):N=="class"||g&&nt=="interface"?(q.marked="keyword",_(ne("form",N=="class"?N:nt),$i,kt)):N=="variable"?g&&nt=="declare"?(q.marked="keyword",_(Mt)):g&&(nt=="module"||nt=="enum"||nt=="type")&&q.stream.match(/^\s*\w/,!1)?(q.marked="keyword",nt=="enum"?_(ti):nt=="type"?_(Ge,Ot("operator"),Gt,Ot(";")):_(ne("form"),xt,Ot("{"),ne("}"),pt,kt,kt)):g&&nt=="namespace"?(q.marked="keyword",_(ne("form"),Kt,Mt,kt)):g&&nt=="abstract"?(q.marked="keyword",_(Mt)):_(ne("stat"),de):N=="switch"?_(ne("form"),Zt,Ot("{"),ne("}","switch"),se,pt,kt,kt,ue):N=="case"?_(Kt,Ot(":")):N=="default"?_(Ot(":")):N=="catch"?_(ne("form"),Bt,zt,Mt,kt,ue):N=="export"?_(ne("stat"),Ye,kt):N=="import"?_(ne("stat"),Sn,kt):N=="async"?_(Mt):nt=="@"?_(Kt,Mt):Ct(ne("stat"),Kt,Ot(";"),kt)}function zt(N){if(N=="(")return _(Lr,Ot(")"))}function Kt(N,nt){return ve(N,nt,!1)}function le(N,nt){return ve(N,nt,!0)}function Zt(N){return N!="("?Ct():_(ne(")"),xe,Ot(")"),kt)}function ve(N,nt,Et){if(q.state.fatArrowAt==q.stream.start){var Ft=Et?_t:ct;if(N=="(")return _(Bt,ne(")"),tt(Lr,")"),kt,Ot("=>"),Ft,ue);if(N=="variable")return Ct(Bt,xt,Ot("=>"),Ft,ue)}var Ut=Et?P:ce;return X.hasOwnProperty(N)?_(Ut):N=="function"?_(sr,Ut):N=="class"||g&&nt=="interface"?(q.marked="keyword",_(ne("form"),ke,kt)):N=="keyword c"||N=="async"?_(Et?le:Kt):N=="("?_(ne(")"),xe,Ot(")"),kt,Ut):N=="operator"||N=="spread"?_(Et?le:Kt):N=="["?_(ne("]"),Qn,kt,Ut):N=="{"?$(Te,"}",null,Ut):N=="quasi"?Ct(H,Ut):N=="new"?_(K(Et)):_()}function xe(N){return N.match(/[;\}\)\],]/)?Ct():Ct(Kt)}function ce(N,nt){return N==","?_(xe):P(N,nt,!1)}function P(N,nt,Et){var Ft=Et==!1?ce:P,Ut=Et==!1?Kt:le;if(N=="=>")return _(Bt,Et?_t:ct,ue);if(N=="operator")return/\+\+|--/.test(nt)||g&&nt=="!"?_(Ft):g&&nt=="<"&&q.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?_(ne(">"),tt(Gt,">"),kt,Ft):nt=="?"?_(Kt,Ot(":"),Ut):_(Ut);if(N=="quasi")return Ct(H,Ft);if(N!=";"){if(N=="(")return $(le,")","call",Ft);if(N==".")return _(Ae,Ft);if(N=="[")return _(ne("]"),xe,Ot("]"),kt,Ft);if(g&&nt=="as")return q.marked="keyword",_(Gt,Ft);if(N=="regexp")return q.state.lastType=q.marked="operator",q.stream.backUp(q.stream.pos-q.stream.start-1),_(Ut)}}function H(N,nt){return N!="quasi"?Ct():nt.slice(nt.length-2)!="${"?_(H):_(xe,Y)}function Y(N){if(N=="}")return q.marked="string-2",q.state.tokenize=et,_(H)}function ct(N){return B(q.stream,q.state),Ct(N=="{"?Mt:Kt)}function _t(N){return B(q.stream,q.state),Ct(N=="{"?Mt:le)}function K(N){return function(nt){return nt=="."?_(N?ut:yt):nt=="variable"&&g?_(dt,N?P:ce):Ct(N?le:Kt)}}function yt(N,nt){if(nt=="target")return q.marked="keyword",_(ce)}function ut(N,nt){if(nt=="target")return q.marked="keyword",_(P)}function de(N){return N==":"?_(kt,Mt):Ct(ce,Ot(";"),kt)}function Ae(N){if(N=="variable")return q.marked="property",_()}function Te(N,nt){if(N=="async")return q.marked="property",_(Te);if(N=="variable"||q.style=="keyword"){if(q.marked="property",nt=="get"||nt=="set")return _(Re);var Et;return g&&q.state.fatArrowAt==q.stream.start&&(Et=q.stream.match(/^\s*:\s*/,!1))&&(q.state.fatArrowAt=q.stream.pos+Et[0].length),_(U)}else{if(N=="number"||N=="string")return q.marked=c?"property":q.style+" property",_(U);if(N=="jsonld-keyword")return _(U);if(g&&St(nt))return q.marked="keyword",_(Te);if(N=="[")return _(Kt,Lt,Ot("]"),U);if(N=="spread")return _(le,U);if(nt=="*")return q.marked="keyword",_(Te);if(N==":")return Ct(U)}}function Re(N){return N!="variable"?Ct(U):(q.marked="property",_(sr))}function U(N){if(N==":")return _(le);if(N=="(")return Ct(sr)}function tt(N,nt,Et){function Ft(Ut,Pe){if(Et?Et.indexOf(Ut)>-1:Ut==","){var Ve=q.state.lexical;return Ve.info=="call"&&(Ve.pos=(Ve.pos||0)+1),_(function(nr,ur){return nr==nt||ur==nt?Ct():Ct(N)},Ft)}return Ut==nt||Pe==nt?_():Et&&Et.indexOf(";")>-1?Ct(N):_(Ot(nt))}return function(Ut,Pe){return Ut==nt||Pe==nt?_():Ct(N,Ft)}}function $(N,nt,Et){for(var Ft=3;Ft<arguments.length;
vendor: 8,416 bytes, line 763
763Ft++)q.cc.push(arguments[Ft]);return _(ne(nt,Et),tt(N,nt),kt)}function pt(N){return N=="}"?_():Ct(Mt,pt)}function Lt(N,nt){if(g){if(N==":")return _(Gt);if(nt=="?")return _(Lt)}}function Rt(N,nt){if(g&&(N==":"||nt=="in"))return _(Gt)}function Jt(N){if(g&&N==":")return q.stream.match(/^\s*\w+\s+is\b/,!1)?_(Kt,re,Gt):_(Gt)}function re(N,nt){if(nt=="is")return q.marked="keyword",_()}function Gt(N,nt){if(nt=="keyof"||nt=="typeof"||nt=="infer"||nt=="readonly")return q.marked="keyword",_(nt=="typeof"?le:Gt);if(N=="variable"||nt=="void")return q.marked="type",_(rt);if(nt=="|"||nt=="&")return _(Gt);if(N=="string"||N=="number"||N=="atom")return _(rt);if(N=="[")return _(ne("]"),tt(Gt,"]",","),kt,rt);if(N=="{")return _(ne("}"),Be,kt,rt);if(N=="(")return _(tt(V,")"),Ce,rt);if(N=="<")return _(tt(Gt,">"),Gt);if(N=="quasi")return Ct(vr,rt)}function Ce(N){if(N=="=>")return _(Gt)}function Be(N){return N.match(/[\}\)\]]/)?_():N==","||N==";"?_(Be):Ct(we,Be)}function we(N,nt){if(N=="variable"||q.style=="keyword")return q.marked="property",_(we);if(nt=="?"||N=="number"||N=="string")return _(we);if(N==":")return _(Gt);if(N=="[")return _(Ot("variable"),Rt,Ot("]"),we);if(N=="(")return Ct(yr,we);if(!N.match(/[;\}\)\],]/))return _()}function vr(N,nt){return N!="quasi"?Ct():nt.slice(nt.length-2)!="${"?_(vr):_(Gt,mr)}function mr(N){if(N=="}")return q.marked="string-2",q.state.tokenize=et,_(vr)}function V(N,nt){return N=="variable"&&q.stream.match(/^\s*[?:]/,!1)||nt=="?"?_(V):N==":"?_(Gt):N=="spread"?_(V):Ct(Gt)}function rt(N,nt){if(nt=="<")return _(ne(">"),tt(Gt,">"),kt,rt);if(nt=="|"||N=="."||nt=="&")return _(Gt);if(N=="[")return _(Gt,Ot("]"),rt);if(nt=="extends"||nt=="implements")return q.marked="keyword",_(Gt);if(nt=="?")return _(Gt,Ot(":"),Gt)}function dt(N,nt){if(nt=="<")return _(ne(">"),tt(Gt,">"),kt,rt)}function Pt(){return Ct(Gt,qt)}function qt(N,nt){if(nt=="=")return _(Gt)}function ot(N,nt){return nt=="enum"?(q.marked="keyword",_(ti)):Ct(xt,Lt,ye,Ie)}function xt(N,nt){if(g&&St(nt))return q.marked="keyword",_(xt);if(N=="variable")return J(nt),_();if(N=="spread")return _(xt);if(N=="[")return $(ee,"]");if(N=="{")return $(Nt,"}")}function Nt(N,nt){return N=="variable"&&!q.stream.match(/^\s*:/,!1)?(J(nt),_(ye)):(N=="variable"&&(q.marked="property"),N=="spread"?_(xt):N=="}"?Ct():N=="["?_(Kt,Ot("]"),Ot(":"),Nt):_(Ot(":"),xt,ye))}function ee(){return Ct(xt,ye)}function ye(N,nt){if(nt=="=")return _(le)}function Ie(N){if(N==",")return _(ot)}function Ke(N,nt){if(N=="keyword b"&&nt=="else")return _(ne("form","else"),Mt,kt)}function Fe(N,nt){if(nt=="await")return _(Fe);if(N=="(")return _(ne(")"),Pr,kt)}function Pr(N){return N=="var"?_(ot,Xe):N=="variable"?_(Xe):Ct(Xe)}function Xe(N,nt){return N==")"?_():N==";"?_(Xe):nt=="in"||nt=="of"?(q.marked="keyword",_(Kt,Xe)):Ct(Kt,Xe)}function sr(N,nt){if(nt=="*")return q.marked="keyword",_(sr);if(N=="variable")return J(nt),_(sr);if(N=="(")return _(Bt,ne(")"),tt(Lr,")"),kt,Jt,Mt,ue);if(g&&nt=="<")return _(ne(">"),tt(Pt,">"),kt,sr)}function yr(N,nt){if(nt=="*")return q.marked="keyword",_(yr);if(N=="variable")return J(nt),_(yr);if(N=="(")return _(Bt,ne(")"),tt(Lr,")"),kt,Jt,ue);if(g&&nt=="<")return _(ne(">"),tt(Pt,">"),kt,yr)}function Ge(N,nt){if(N=="keyword"||N=="variable")return q.marked="type",_(Ge);if(nt=="<")return _(ne(">"),tt(Pt,">"),kt)}function Lr(N,nt){return nt=="@"&&_(Kt,Lr),N=="spread"?_(Lr):g&&St(nt)?(q.marked="keyword",_(Lr)):g&&N=="this"?_(Lt,ye):Ct(xt,Lt,ye)}function ke(N,nt){return N=="variable"?$i(N,nt):Br(N,nt)}function $i(N,nt){if(N=="variable")return J(nt),_(Br)}function Br(N,nt){if(nt=="<")return _(ne(">"),tt(Pt,">"),kt,Br);if(nt=="extends"||nt=="implements"||g&&N==",")return nt=="implements"&&(q.marked="keyword"),_(g?Gt:Kt,Br);if(N=="{")return _(ne("}"),wr,kt)}function wr(N,nt){if(N=="async"||N=="variable"&&(nt=="static"||nt=="get"||nt=="set"||g&&St(nt))&&q.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return q.marked="keyword",_(wr);if(N=="variable"||q.style=="keyword")return q.marked="property",_(Vr,wr);if(N=="number"||N=="string")return _(Vr,wr);if(N=="[")return _(Kt,Lt,Ot("]"),Vr,wr);if(nt=="*")return q.marked="keyword",_(wr);if(g&&N=="(")return Ct(yr,wr);if(N==";"||N==",")return _(wr);if(N=="}")return _();if(nt=="@")return _(Kt,wr)}function Vr(N,nt){if(nt=="!"||nt=="?")return _(Vr);if(N==":")return _(Gt,ye);if(nt=="=")return _(le);var Et=q.state.lexical.prev,Ft=Et&&Et.info=="interface";return Ct(Ft?yr:sr)}function Ye(N,nt){return nt=="*"?(q.marked="keyword",_(tn,Ot(";"))):nt=="default"?(q.marked="keyword",_(Kt,Ot(";"))):N=="{"?_(tt(ie,"}"),tn,Ot(";")):Ct(Mt)}function ie(N,nt){if(nt=="as")return q.marked="keyword",_(Ot("variable"));if(N=="variable")return Ct(le,ie)}function Sn(N){return N=="string"?_():N=="("?Ct(Kt):N=="."?Ct(ce):Ct(Qr,$e,tn)}function Qr(N,nt){return N=="{"?$(Qr,"}"):(N=="variable"&&J(nt),nt=="*"&&(q.marked="keyword"),_(Ue))}function $e(N){if(N==",")return _(Qr,$e)}function Ue(N,nt){if(nt=="as")return q.marked="keyword",_(Qr)}function tn(N,nt){if(nt=="from")return q.marked="keyword",_(Kt)}function Qn(N){return N=="]"?_():Ct(tt(le,"]"))}function ti(){return Ct(ne("form"),xt,Ot("{"),ne("}"),tt(Vt,"}"),kt,kt)}function Vt(){return Ct(xt,ye)}function he(N,nt){return N.lastType=="operator"||N.lastType==","||x.test(nt.charAt(0))||/[,.]/.test(nt.charAt(0))}function Vn(N,nt,Et){return nt.tokenize==D&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(nt.lastType)||nt.lastType=="quasi"&&/\{\s*$/.test(N.string.slice(0,N.pos-(Et||0)))}return{startState:function(N){var nt={tokenize:D,lastType:"sof",cc:[],lexical:new Z((N||0)-o,0,"block",!1),localVars:i.localVars,context:i.localVars&&new wt(null,null,!1),indented:N||0};return i.globalVars&&typeof i.globalVars=="object"&&(nt.globalVars=i.globalVars),nt},token:function(N,nt){if(N.sol()&&(nt.lexical.hasOwnProperty("align")||(nt.lexical.align=!1),nt.indented=N.indentation(),B(N,nt)),nt.tokenize!=j&&N.eatSpace())return null;var Et=nt.tokenize(N,nt);return S=="comment"?Et:(nt.lastType=S=="operator"&&(A=="++"||A=="--")?"incdec":S,st(nt,Et,S,A,N))},indent:function(N,nt){if(N.tokenize==j||N.tokenize==et)return e.Pass;if(N.tokenize!=D)return 0;var Et=nt&&nt.charAt(0),Ft=N.lexical,Ut;if(!/^\s*else\b/.test(nt))for(var Pe=N.cc.length-1;Pe>=0;--Pe){var Ve=N.cc[Pe];if(Ve==kt)Ft=Ft.prev;else if(Ve!=Ke&&Ve!=ue)break}for(;(Ft.type=="stat"||Ft.type=="form")&&(Et=="}"||(Ut=N.cc[N.cc.length-1])&&(Ut==ce||Ut==P)&&!/^[,\.=+\-*:?[\(]/.test(nt));)Ft=Ft.prev;s&&Ft.type==")"&&Ft.prev.type=="stat"&&(Ft=Ft.prev);var nr=Ft.type,ur=Et==nr;return nr=="vardef"?Ft.indented+(N.lastType=="operator"||N.lastType==","?Ft.info.length+1:0):nr=="form"&&Et=="{"?Ft.indented:nr=="form"?Ft.indented+o:nr=="stat"?Ft.indented+(he(N,nt)?s||o:0):Ft.info=="switch"&&!ur&&i.doubleIndentSwitch!=!1?Ft.indented+(/^(?:case|default)\b/.test(nt)?o:2*o):Ft.align?Ft.column+(ur?0:1):Ft.indented+(ur?0:o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:d?null:"/*",blockCommentEnd:d?null:"*/",blockCommentContinue:d?null:" * ",lineComment:d?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:d?"json":"javascript",jsonldMode:c,jsonMode:d,expressionAllowed:Vn,skipExpression:function(N){st(N,"atom","atom","true",new e.StringStream("",2,null))}}}),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/manifest+json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})})}),701:((a,r,t)=>{(function(e){e(t(408))})(function(e){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}
763,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},i={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",function(o,s){var c=o.indentUnit,d={},f=s.htmlMode?n:i;for(var g in f)d[g]=f[g];for(var g in s)d[g]=s[g];var m,y;function x(_,Q){function J(wt){return Q.tokenize=wt,wt(_,Q)}var gt=_.next();if(gt=="<")return _.eat("!")?_.eat("[")?_.match("CDATA[")?J(S("atom","]]>")):null:_.match("--")?J(S("comment","-->")):_.match("DOCTYPE",!0,!0)?(_.eatWhile(/[\w\._\-]/),J(A(1))):null:_.eat("?")?(_.eatWhile(/[\w\._\-]/),Q.tokenize=S("meta","?>"),"meta"):(m=_.eat("/")?"closeTag":"openTag",Q.tokenize=w,"tag bracket");if(gt=="&"){var St;return _.eat("#")?_.eat("x")?St=_.eatWhile(/[a-fA-F\d]/)&&_.eat(";"):St=_.eatWhile(/[\d]/)&&_.eat(";"):St=_.eatWhile(/[\w\.\-:]/)&&_.eat(";"),St?"atom":"error"}else return _.eatWhile(/[^&<]/),null}x.isInText=!0;function w(_,Q){var J=_.next();if(J==">"||J=="/"&&_.eat(">"))return Q.tokenize=x,m=J==">"?"endTag":"selfcloseTag","tag bracket";if(J=="=")return m="equals",null;if(J=="<"){Q.tokenize=x,Q.state=et,Q.tagName=Q.tagStart=null;var gt=Q.tokenize(_,Q);return gt?gt+" tag error":"tag error"}else return/[\'\"]/.test(J)?(Q.tokenize=k(J),Q.stringStartCol=_.column(),Q.tokenize(_,Q)):(_.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function k(_){var Q=function(J,gt){for(;!J.eol();)if(J.next()==_){gt.tokenize=w;break}return"string"};return Q.isInAttribute=!0,Q}function S(_,Q){return function(J,gt){for(;!J.eol();){if(J.match(Q)){gt.tokenize=x;break}J.next()}return _}}function A(_){return function(Q,J){for(var gt;(gt=Q.next())!=null;){if(gt=="<")return J.tokenize=A(_+1),J.tokenize(Q,J);if(gt==">")if(_==1){J.tokenize=x;break}else return J.tokenize=A(_-1),J.tokenize(Q,J)}return"meta"}}function L(_){return _&&_.toLowerCase()}function D(_,Q,J){this.prev=_.context,this.tagName=Q||"",this.indent=_.indented,this.startOfLine=J,(d.doNotIndent.hasOwnProperty(Q)||_.context&&_.context.noIndent)&&(this.noIndent=!0)}function W(_){_.context&&(_.context=_.context.prev)}function j(_,Q){for(var J;;){if(!_.context||(J=_.context.tagName,!d.contextGrabbers.hasOwnProperty(L(J))||!d.contextGrabbers[L(J)].hasOwnProperty(L(Q))))return;W(_)}}function et(_,Q,J){return _=="openTag"?(J.tagStart=Q.column(),z):_=="closeTag"?B:et}function z(_,Q,J){return _=="word"?(J.tagName=Q.current(),y="tag",F):d.allowMissingTagName&&_=="endTag"?(y="tag bracket",F(_,Q,J)):(y="error",z)}function B(_,Q,J){if(_=="word"){var gt=Q.current();return J.context&&J.context.tagName!=gt&&d.implicitlyClosed.hasOwnProperty(L(J.context.tagName))&&W(J),J.context&&J.context.tagName==gt||d.matchClosing===!1?(y="tag",X):(y="tag error",Z)}else return d.allowMissingTagName&&_=="endTag"?(y="tag bracket",X(_,Q,J)):(y="error",Z)}function X(_,Q,J){return _!="endTag"?(y="error",X):(W(J),et)}function Z(_,Q,J){return y="error",X(_,Q,J)}function F(_,Q,J){if(_=="word")return y="attribute",st;if(_=="endTag"||_=="selfcloseTag"){var gt=J.tagName,St=J.tagStart;return J.tagName=J.tagStart=null,_=="selfcloseTag"||d.autoSelfClosers.hasOwnProperty(L(gt))?j(J,gt):(j(J,gt),J.context=new D(J,gt,St==J.indented)),et}return y="error",F}function st(_,Q,J){return _=="equals"?q:(d.allowMissing||(y="error"),F(_,Q,J))}function q(_,Q,J){return _=="string"?Ct:_=="word"&&d.allowUnquoted?(y="string",F):(y="error",F(_,Q,J))}function Ct(_,Q,J){return _=="string"?Ct:F(_,Q,J)}return{startState:function(_){var Q={tokenize:x,state:et,indented:_||0,tagName:null,tagStart:null,context:null};return _!=null&&(Q.baseIndent=_),Q},token:function(_,Q){if(!Q.tagName&&_.sol()&&(Q.indented=_.indentation()),_.eatSpace())return null;m=null;var J=Q.tokenize(_,Q);return(J||m)&&J!="comment"&&(y=null,Q.state=Q.state(m||J,_,Q),y&&(J=y=="error"?J+" error":y)),J},indent:function(_,Q,J){var gt=_.context;
763if(_.tokenize.isInAttribute)return _.tagStart==_.indented?_.stringStartCol+1:_.indented+c;if(gt&>.noIndent)return e.Pass;if(_.tokenize!=w&&_.tokenize!=x)return J?J.match(/^(\s*)/)[0].length:0;if(_.tagName)return d.multilineTagIndentPastTag!==!1?_.tagStart+_.tagName.length+2:_.tagStart+c*(d.multilineTagIndentFactor||1);if(d.alignCDATA&&/<!\[CDATA\[/.test(Q))return 0;var St=Q&&/^<(\/)?([\w_:\.-]*)/.exec(Q);if(St&&St[1])for(;gt;)if(gt.tagName==St[2]){gt=gt.prev;break}else if(d.implicitlyClosed.hasOwnProperty(L(gt.tagName)))gt=gt.prev;else break;else if(St)for(;gt;){var wt=d.contextGrabbers[L(gt.tagName)];if(wt&&wt.hasOwnProperty(L(St[2])))gt=gt.prev;else break}for(;gt&>.prev&&!gt.startOfLine;)gt=gt.prev;return gt?gt.indent+c:_.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:d.htmlMode?"html":"xml",helperType:d.htmlMode?"html":"xml",skipAttribute:function(_){_.state==q&&(_.state=F)},xmlCurrentTag:function(_){return _.tagName?{name:_.tagName,close:_.type=="closeTag"}:null},xmlCurrentContext:function(_){for(var Q=[],J=_.context;J;J=J.prev)Q.push(J.tagName);return Q.reverse()}}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})})}),774:((a,r,t)=>{t.r(r),t.d(r,{default:()=>mr});var e=typeof document<"u"?document:null,n=typeof window<"u"?window:null,i=Array.prototype,o=i.filter,s=i.indexOf,c=i.map,d=i.push,f=i.reverse,g=i.slice,m=i.splice,y=/^#[\w-]*$/,x=/^\.[\w-]*$/,w=/<.+>/,k=/^\w+$/;function S(V,rt){return rt===void 0&&(rt=e),x.test(V)?rt.getElementsByClassName(V.slice(1)):k.test(V)?rt.getElementsByTagName(V):rt.querySelectorAll(V)}function A(V,rt){if(rt===void 0&&(rt=e),!!V){if(V.__cash)return V;var dt=V;if(st(V)){if(rt.__cash&&(rt=rt[0]),dt=y.test(V)?rt.getElementById(V.slice(1)):w.test(V)?Ce(V):S(V,rt),!dt)return}else if(F(V))return this.ready(V);(dt.nodeType||dt===n)&&(dt=[dt]),this.length=dt.length;for(var Pt=0,qt=this.length;Pt<qt;Pt++)this[Pt]=dt[Pt]}}function L(V,rt){return new A(V,rt)}var D=L.fn=L.prototype=A.prototype={constructor:L,__cash:!0,length:0,splice:m};D.get=function(V){return V===void 0?g.call(this):this[V<0?V+this.length:V]},D.eq=function(V){return L(this.get(V))},D.first=function(){return this.eq(0)},D.last=function(){return this.eq(-1)},D.map=function(V){return L(c.call(this,function(rt,dt){return V.call(rt,dt,rt)}))},D.slice=function(){return L(g.apply(this,arguments))};var W=/(?:^\w|[A-Z]|\b\w)/g,j=/[\s-_]+/g;function et(V){return V.replace(W,function(rt,dt){return rt[dt?"toUpperCase":"toLowerCase"]()}).replace(j,"")}L.camelCase=et;function z(V,rt){for(var dt=0,Pt=V.length;dt<Pt&&rt.call(V[dt],V[dt],dt,V)!==!1;dt++);}L.each=z,D.each=function(V){return z(this,function(rt,dt){return V.call(rt,dt,rt)}),this},D.removeProp=function(V){return this.each(function(rt,dt){delete dt[V]})};function B(V){V===void 0&&(V=this);for(var rt=arguments,dt=rt.length,Pt=dt<2?0:1;Pt<dt;Pt++)for(var qt in rt[Pt])V[qt]=rt[Pt][qt];return V}L.extend=D.extend=B;var X=1;L.guid=X;function Z(V,rt){var dt=V&&(V.matches||V.webkitMatchesSelector||V.mozMatchesSelector||V.msMatchesSelector||V.oMatchesSelector);return!!dt&&dt.call(V,rt)}L.matches=Z;function F(V){return typeof V=="function"}L.isFunction=F;function st(V){return typeof V=="string"}L.isString=st;function q(V){return!isNaN(parseFloat(V))&&isFinite(V)}L.isNumeric=q;var Ct=Array.isArray;L.isArray=Ct,D.prop=function(V,rt){if(V){if(st(V))return arguments.length<2?this[0]&&this[0][V]:this.each(function(Pt,qt){qt[V]=rt});for(var dt in V)this.prop(dt,V[dt]);return this}};function _(V){return st(V)?function(rt,dt){return Z(dt,V)}:V.__cash?function(rt,dt){return V.is(dt)}:function(rt,dt,Pt){return dt===Pt}}D.filter=function(V){if(!V)return L();var rt=F(V)?V:_(V);return L(o.call(this,function(dt,Pt){return rt.call(dt,Pt,dt,V)}))};var Q=/\S+/g;function J(V){return st(V)?V.match(Q)||[]:[]}D.hasClass=function(V){var rt=J(V),dt=!1;return rt.length&&this.each(function(Pt,qt){return dt=qt.classList.contains(rt[0]),!dt}),dt},D.removeAttr=function(V){var rt=J(V);return rt.length?this.each(function(dt,Pt){z(rt,function(qt){Pt.removeAttribute(qt)})}):this}
763,D.attr=function(V,rt){if(V){if(st(V)){if(arguments.length<2){if(!this[0])return;var dt=this[0].getAttribute(V);return dt===null?void 0:dt}return rt===null?this.removeAttr(V):this.each(function(qt,ot){ot.setAttribute(V,rt)})}for(var Pt in V)this.attr(Pt,V[Pt]);return this}},D.toggleClass=function(V,rt){var dt=J(V),Pt=rt!==void 0;return dt.length?this.each(function(qt,ot){z(dt,function(xt){Pt?rt?ot.classList.add(xt):ot.classList.remove(xt):ot.classList.toggle(xt)})}):this},D.addClass=function(V){return this.toggleClass(V,!0)},D.removeClass=function(V){return arguments.length?this.toggleClass(V,!1):this.attr("class","")};function gt(V){return V.filter(function(rt,dt,Pt){return Pt.indexOf(rt)===dt})}L.unique=gt,D.add=function(V,rt){return L(gt(this.get().concat(L(V,rt).get())))};function St(V,rt,dt){if(V.nodeType===1){var Pt=n.getComputedStyle(V,null);return rt?dt?Pt.getPropertyValue(rt):Pt[rt]:Pt}}function wt(V,rt){return parseInt(St(V,rt),10)||0}var mt=/^--/;function It(V){return mt.test(V)}var Bt={},se=e&&e.createElement("div"),ue=se?se.style:{},ne=["webkit","moz","ms","o"];function kt(V,rt){if(rt===void 0&&(rt=It(V)),rt)return V;if(!Bt[V]){var dt=et(V),Pt=""+dt.charAt(0).toUpperCase()+dt.slice(1),qt=(dt+" "+ne.join(Pt+" ")+Pt).split(" ");z(qt,function(ot){if(ot in ue)return Bt[V]=ot,!1})}return Bt[V]}L.prefixedProp=kt;var Ot={animationIterationCount:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0};function Mt(V,rt,dt){return dt===void 0&&(dt=It(V)),!dt&&!Ot[V]&&q(rt)?rt+"px":rt}D.css=function(V,rt){if(st(V)){var dt=It(V);return V=kt(V,dt),arguments.length<2?this[0]&&St(this[0],V,dt):V?(rt=Mt(V,rt,dt),this.each(function(qt,ot){ot.nodeType===1&&(dt?ot.style.setProperty(V,rt):ot.style[V]=rt)})):this}for(var Pt in V)this.css(Pt,V[Pt]);return this};var zt="__cashData",Kt=/^data-(.*)/;L.hasData=function(V){return zt in V};function le(V){return V[zt]=V[zt]||{}}function Zt(V,rt){var dt=le(V);if(rt){if(!(rt in dt)){var Pt=V.dataset?V.dataset[rt]||V.dataset[et(rt)]:L(V).attr("data-"+rt);if(Pt!==void 0){try{Pt=JSON.parse(Pt)}catch{}dt[rt]=Pt}}return dt[rt]}return dt}function ve(V,rt){rt===void 0?delete V[zt]:delete le(V)[rt]}function xe(V,rt,dt){le(V)[rt]=dt}D.data=function(V,rt){var dt=this;if(!V)return this[0]?(z(this[0].attributes,function(qt){var ot=qt.name.match(Kt);ot&&dt.data(ot[1])}),Zt(this[0])):void 0;if(st(V))return rt===void 0?this[0]&&Zt(this[0],V):this.each(function(qt,ot){return xe(ot,V,rt)});for(var Pt in V)this.data(Pt,V[Pt]);return this},D.removeData=function(V){return this.each(function(rt,dt){return ve(dt,V)})};function ce(V,rt){return wt(V,"border"+(rt?"Left":"Top")+"Width")+wt(V,"padding"+(rt?"Left":"Top"))+wt(V,"padding"+(rt?"Right":"Bottom"))+wt(V,"border"+(rt?"Right":"Bottom")+"Width")}z(["Width","Height"],function(V){D["inner"+V]=function(){if(this[0])return this[0]===n?n["inner"+V]:this[0]["client"+V]}}),z(["width","height"],function(V,rt){D[V]=function(dt){return this[0]?arguments.length?(dt=parseInt(dt,10),this.each(function(Pt,qt){if(qt.nodeType===1){var ot=St(qt,"boxSizing");qt.style[V]=Mt(V,dt+(ot==="border-box"?ce(qt,!rt):0))}})):this[0]===n?this[0][et("outer-"+V)]:this[0].getBoundingClientRect()[V]-ce(this[0],!rt):dt===void 0?void 0:this}}),z(["Width","Height"],function(V,rt){D["outer"+V]=function(dt){if(this[0])return this[0]===n?n["outer"+V]:this[0]["offset"+V]+(dt?wt(this[0],"margin"+(rt?"Top":"Left"))+wt(this[0],"margin"+(rt?"Bottom":"Right")):0)}});function P(V,rt){for(var dt=0,Pt=rt.length;dt<Pt;dt++)if(V.indexOf(rt[dt])<0)return!1;return!0}function H(V,rt,dt){z(V[dt],function(Pt){Pt[0];var qt=Pt[1];rt.removeEventListener(dt,qt)}),delete V[dt]}var Y="__cashEvents",ct=".";function _t(V){return V[Y]=V[Y]||{}}function K(V,rt,dt,Pt){Pt.guid=Pt.guid||X++;var qt=_t(V);qt[rt]=qt[rt]||[],qt[rt].push([dt,Pt]),V.addEventListener(rt,Pt)}function yt(V){var rt=V.split(ct);return[rt[0],rt.slice(1).sort()]}function ut(V,rt,dt,Pt){var qt=_t(V);if(rt){var ot=qt[rt];if(!ot)return;Pt&&(Pt.guid=Pt.guid||X++),qt[rt]=ot.filter(function(xt){var Nt=xt[0],ee=xt[1];if(Pt&&ee.guid!==Pt.guid||!P(Nt,dt))return!0;V.removeEventListener(rt,ee)})}else if(!dt||!dt.length)for(rt in qt)H(qt,V,rt);else for(rt in qt)ut(V,rt,dt,Pt)}D.off=function(V,rt){var dt=this;return V===void 0?this.each(function(Pt,qt){return ut(qt)}):z(J(V),function(Pt){var qt=yt(Pt),ot=qt[0],xt=qt[1];dt.each(function(Nt,ee){return ut(ee,ot,xt,rt)})}),this},D.on=function(V,rt,dt,Pt){var qt=this;if(!st(V)){for(var ot in V)this.on(ot,rt,V[ot]);return this}return F(rt)&&(dt=rt,rt=!1),z(J(V),function(xt){var Nt=yt(xt),ee=Nt[0],ye=Nt[1];qt.each(function(Ie,Ke){var Fe=function Pr(Xe){if(!(Xe.namespace&&!P(ye,Xe.n
763amespace.split(ct)))){var sr=Ke;if(rt){for(var yr=Xe.target;!Z(yr,rt);)if(yr===Ke||(yr=yr.parentNode,!yr))return;sr=yr}Xe.namespace=Xe.namespace||"";var Ge=dt.call(sr,Xe,Xe.data);Pt&&ut(Ke,ee,ye,Pr),Ge===!1&&(Xe.preventDefault(),Xe.stopPropagation())}};Fe.guid=dt.guid=dt.guid||X++,K(Ke,ee,ye,Fe)})}),this},D.one=function(V,rt,dt){return this.on(V,rt,dt,!0)},D.ready=function(V){var rt=function(){return V(L)};return e.readyState!=="loading"?setTimeout(rt):e.addEventListener("DOMContentLoaded",rt),this},D.trigger=function(V,rt){var dt=V;if(st(V)){var Pt=yt(V),qt=Pt[0],ot=Pt[1];dt=e.createEvent("HTMLEvents"),dt.initEvent(qt,!0,!0),dt.namespace=ot.join(ct)}return dt.data=rt,this.each(function(xt,Nt){Nt.dispatchEvent(dt)})};function de(V){var rt=[];return z(V.options,function(dt){dt.selected&&!dt.disabled&&!dt.parentNode.disabled&&rt.push(dt.value)}),rt}function Ae(V){return V.selectedIndex<0?null:V.options[V.selectedIndex].value}var Te=/select-one/i,Re=/select-multiple/i;function U(V){var rt=V.type;return Te.test(rt)?Ae(V):Re.test(rt)?de(V):V.value}var tt=/%20/g;function $(V,rt){return"&"+encodeURIComponent(V)+"="+encodeURIComponent(rt).replace(tt,"+")}var pt=/file|reset|submit|button|image/i,Lt=/radio|checkbox/i;D.serialize=function(){var V="";return this.each(function(rt,dt){z(dt.elements||[dt],function(Pt){if(!(Pt.disabled||!Pt.name||Pt.tagName==="FIELDSET")&&!pt.test(Pt.type)&&!(Lt.test(Pt.type)&&!Pt.checked)){var qt=U(Pt);if(qt!==void 0){var ot=Ct(qt)?qt:[qt];z(ot,function(xt){V+=$(Pt.name,xt)})}}})}),V.substr(1)},D.val=function(V){return V===void 0?this[0]&&U(this[0]):this.each(function(rt,dt){var Pt=Re.test(dt.type),qt=V===null?Pt?[]:"":V;Pt&&Ct(qt)?z(dt.options,function(ot){ot.selected=qt.indexOf(ot.value)>=0}):dt.value=qt})},D.clone=function(){return this.map(function(V,rt){return rt.cloneNode(!0)})},D.detach=function(){return this.each(function(V,rt){rt.parentNode&&rt.parentNode.removeChild(rt)})};var Rt=/^\s*<(\w+)[^>]*>/,Jt=/^\s*<(\w+)\s*\/?>(?:<\/\1>)?\s*$/,re;function Gt(){if(!re){var V=e.createElement("table"),rt=e.createElement("tr");re={"*":e.createElement("div"),tr:e.createElement("tbody"),td:rt,th:rt,thead:V,tbody:V,tfoot:V}}}function Ce(V){if(Gt(),!st(V))return[];if(Jt.test(V))return[e.createElement(RegExp.$1)];var rt=Rt.test(V)&&RegExp.$1,dt=re[rt]||re["*"];return dt.innerHTML=V,L(dt.childNodes).detach().get()}L.parseHTML=Ce,D.empty=function(){var V=this[0];if(V)for(;V.firstChild;)V.removeChild(V.firstChild);return this};function Be(V,rt,dt){dt?V.insertBefore(rt,V.childNodes[0]):V.appendChild(rt)}function we(V,rt,dt){if(rt!==void 0){var Pt=st(rt);!Pt&&rt.length?z(rt,function(qt){return we(V,qt,dt)}):z(V,Pt?function(qt){qt.insertAdjacentHTML(dt?"afterbegin":"beforeend",rt)}:function(qt,ot){return Be(qt,ot?rt.cloneNode(!0):rt,dt)})}}D.append=function(){var V=this;return z(arguments,function(rt){we(V,rt)}),this},D.appendTo=function(V){return we(L(V),this),this},D.html=function(V){if(V===void 0)return this[0]&&this[0].innerHTML;var rt=V.nodeType?V[0].outerHTML:V;return this.each(function(dt,Pt){Pt.innerHTML=rt})},D.insertAfter=function(V){var rt=this;return L(V).each(function(dt,Pt){var qt=Pt.parentNode;rt.each(function(ot,xt){qt.insertBefore(dt?xt.cloneNode(!0):xt,Pt.nextSibling)})}),this},D.after=function(){var V=this;return z(f.apply(arguments),function(rt){f.apply(L(rt).slice()).insertAfter(V)}),this},D.insertBefore=function(V){var rt=this;return L(V).each(function(dt,Pt){var qt=Pt.parentNode;rt.each(function(ot,xt){qt.insertBefore(dt?xt.cloneNode(!0):xt,Pt)})}),this},D.before=function(){var V=this;return z(arguments,function(rt){L(rt).insertBefore(V)}),this},D.prepend=function(){var V=this;return z(arguments,function(rt){we(V,rt,!0)}),this},D.prependTo=function(V){return we(L(V),f.apply(this.slice()),!0),this},D.remove=function(){return this.detach().off()},D.replaceWith=function(V){var rt=this;return this.each(function(dt,Pt){var qt=Pt.parentNode;if(qt){var ot=dt?L(V).clone():L(V);if(!ot[0])return rt.remove(),!1;qt.replaceChild(ot[0],Pt),L(ot[0]).after(ot.slice(1))}})},D.replaceAll=function(V){return L(V).replaceWith(this),this},D.text=function(V){return V===void 0?this[0]?this[0].textContent:"":this.each(function(rt,dt){dt.textContent=V})};var vr=e&&e.documentElement;D.offset=function(){var V=this[0];if(V){var rt=V.getBoundingClientRect();return{top:rt.top+n.pageYOffset-vr.clientTop,left:rt.left+n.pageXOffset-vr.clientLeft}}},D.offsetParent=function(){return L(this[0]&&this[0].offsetParent)},D.position=function(){var V=this[0];if(V)return{left:V.offsetLeft,top:V.offsetTop}},D.children=function(V){var rt=[];return this.each(function(dt,Pt){d.apply(rt,Pt.children)}),rt=L(gt(rt)),V?rt.filter(function(dt,Pt){return Z(Pt,V)}):rt},D.contents=function(){var V=[];return this.each(function(rt,dt){d.apply(V,dt.tagName==="IFRAME"?[dt.contentDocument]:dt.childNodes)}),L(V.length&>(V))},D.find=function(V){for(var rt=[],dt=0,Pt=this.length;dt<Pt;dt++){var qt=S(V,this[dt]);qt.length&&d.apply(rt,qt)}return L(rt.length&>(rt))},D.has=function(V){var rt=st(V)?function(dt,Pt){return!!S(V,Pt).length}:function(dt,Pt){return Pt.contains(V)};return this.filter(rt)},D.is=function(V){if(!V||!this[0])return!1;var rt=_(V),dt=!1;return this.each(function(Pt,qt){return dt=rt(Pt,qt,V),!dt}),dt},D.next=function(){return L(this[0]&&this[0].nextElementSibling)},D.not=function(V){if(!V||!this[0])return this;var rt=_(V);return this.filter(function(dt,Pt){return!rt(dt,Pt,V)})},D.parent=function(){var V=[];return this.each(function(rt,dt){dt&&dt.parentNode&&V.push(dt.parentNode)}),L(gt(V))},D.index=function(V){var rt=V?L(V)[0]:this[0],dt=V?this:L(rt).parent().children();return s.call(dt,rt)},D.closest=function(V){return!V||!this[0]?L():this.is(V)?this.filter(V):this.parent().closest(V)},D.parents=function(V){var rt=[],dt;return this.each(function(Pt,qt){for(dt=qt;dt&&dt.parentNode&&dt!==e.body.parentNode;)dt=dt.parentNode,(!V||V&&Z(dt,V))&&rt.push(dt)}),L(gt(rt))},D.prev=function(){return L(this[0]&&this[0].previousElementSibling)},D.siblings=function(){var V=this[0];return this.parent().children().filter(function(rt,dt){return dt!==V})};const mr=L}),39:((a,r,t)=>
763{t.r(r),t.d(r,{VERSION:()=>n,after:()=>Pi,all:()=>Ki,allKeys:()=>Rt,any:()=>bn,assign:()=>Ie,before:()=>Hn,bind:()=>Ui,bindAll:()=>La,chain:()=>zi,chunk:()=>Sd,clone:()=>sr,collect:()=>pe,compact:()=>Al,compose:()=>cs,constant:()=>ce,contains:()=>un,countBy:()=>wd,create:()=>Xe,debounce:()=>Mi,default:()=>Td,defaults:()=>Ke,defer:()=>uo,delay:()=>Da,detect:()=>fe,difference:()=>Ml,drop:()=>lr,each:()=>Me,escape:()=>nt,every:()=>Ki,extend:()=>ye,extendOwn:()=>Ie,filter:()=>cn,find:()=>fe,findIndex:()=>la,findKey:()=>ri,findLastIndex:()=>Wi,findWhere:()=>me,first:()=>bi,flatten:()=>Ra,foldl:()=>yn,foldr:()=>ii,forEach:()=>Me,functions:()=>Nt,get:()=>$i,groupBy:()=>xd,has:()=>Br,head:()=>bi,identity:()=>wr,include:()=>un,includes:()=>un,indexBy:()=>Sl,indexOf:()=>ja,initial:()=>El,inject:()=>yn,intersection:()=>Ll,invert:()=>xt,invoke:()=>ds,isArguments:()=>Zt,isArray:()=>zt,isArrayBuffer:()=>wt,isBoolean:()=>F,isDataView:()=>Mt,isDate:()=>Q,isElement:()=>st,isEmpty:()=>Re,isEqual:()=>Lt,isError:()=>gt,isFinite:()=>ve,isFunction:()=>Bt,isMap:()=>V,isMatch:()=>U,isNaN:()=>xe,isNull:()=>X,isNumber:()=>_,isObject:()=>B,isRegExp:()=>J,isSet:()=>dt,isString:()=>Ct,isSymbol:()=>St,isTypedArray:()=>yt,isUndefined:()=>Z,isWeakMap:()=>rt,isWeakSet:()=>Pt,iteratee:()=>Qr,keys:()=>Te,last:()=>Cd,lastIndexOf:()=>qi,map:()=>pe,mapObject:()=>Ue,matcher:()=>Vr,matches:()=>Vr,max:()=>kl,memoize:()=>gn,methods:()=>Nt,min:()=>md,mixin:()=>ai,negate:()=>Tr,noop:()=>tn,now:()=>he,object:()=>Dl,omit:()=>_d,once:()=>Ia,pairs:()=>ot,partial:()=>Ai,partition:()=>Tl,pick:()=>Ol,pluck:()=>Li,property:()=>Ye,propertyOf:()=>Qn,random:()=>Vt,range:()=>Il,reduce:()=>yn,reduceRight:()=>ii,reject:()=>dn,rest:()=>lr,restArguments:()=>z,result:()=>vi,sample:()=>fs,select:()=>cn,shuffle:()=>yd,size:()=>fo,some:()=>bn,sortBy:()=>bd,sortedIndex:()=>Zi,tail:()=>lr,take:()=>bi,tap:()=>yr,template:()=>ei,templateSettings:()=>Ut,throttle:()=>vn,times:()=>ti,toArray:()=>us,toPath:()=>Ge,transpose:()=>ho,unescape:()=>Ft,union:()=>hs,uniq:()=>po,unique:()=>po,uniqueId:()=>Pa,unzip:()=>ho,values:()=>qt,where:()=>vd,without:()=>Pl,wrap:()=>yi,zip:()=>kd});var e={};t.r(e),t.d(e,{VERSION:()=>n,after:()=>Pi,all:()=>Ki,allKeys:()=>Rt,any:()=>bn,assign:()=>Ie,before:()=>Hn,bind:()=>Ui,bindAll:()=>La,chain:()=>zi,chunk:()=>Sd,clone:()=>sr,collect:()=>pe,compact:()=>Al,compose:()=>cs,constant:()=>ce,contains:()=>un,countBy:()=>wd,create:()=>Xe,debounce:()=>Mi,default:()=>gs,defaults:()=>Ke,defer:()=>uo,delay:()=>Da,detect:()=>fe,difference:()=>Ml,drop:()=>lr,each:()=>Me,escape:()=>nt,every:()=>Ki,extend:()=>ye,extendOwn:()=>Ie,filter:()=>cn,find:()=>fe,findIndex:()=>la,findKey:()=>ri,findLastIndex:()=>Wi,findWhere:()=>me,first:()=>bi,flatten:()=>Ra,foldl:()=>yn,foldr:()=>ii,forEach:()=>Me,functions:()=>Nt,get:()=>$i,groupBy:()=>xd,has:()=>Br,head:()=>bi,identity:()=>wr,include:()=>un,includes:()=>un,indexBy:()=>Sl,indexOf:()=>ja,initial:()=>El,inject:()=>yn,intersection:()=>Ll,invert:()=>xt,invoke:()=>ds,isArguments:()=>Zt,isArray:()=>zt,isArrayBuffer:()=>wt,isBoolean:()=>F,isDataView:()=>Mt,isDate:()=>Q,isElement:()=>st,isEmpty:()=>Re,isEqual:()=>Lt,isError:()=>gt,isFinite:()=>ve,isFunction:()=>Bt,isMap:()=>V,isMatch:()=>U,isNaN:()=>xe,isNull:()=>X,isNumber:()=>_,isObject:()=>B,isRegExp:()=>J,isSet:()=>dt,isString:()=>Ct,isSymbol:()=>St,isTypedArray:()=>yt,isUndefined:()=>Z,isWeakMap:()=>rt,isWeakSet:()=>Pt,iteratee:()=>Qr,keys:()=>Te,last:()=>Cd,lastIndexOf:()=>qi,map:()=>pe,mapObject:()=>Ue,matcher:()=>Vr,matches:()=>Vr,max:()=>kl,memoize:()=>gn,methods:()=>Nt,min:()=>md,mixin:()=>ai,negate:()=>Tr,noop:()=>tn,now:()=>he,object:()=>Dl,omit:()=>_d,once:()=>Ia,pairs:()=>ot,partial:()=>Ai,partition:()=>Tl,pick:()=>Ol,pluck:()=>Li,property:()=>Ye,propertyOf:()=>Qn,random:()=>Vt,range:()=>Il,reduce:()=>yn,reduceRight:()=>ii,reject:()=>dn,rest:()=>lr,restArguments:()=>z,result:()=>vi,sample:()=>fs,select:()=>cn,shuffle:()=>yd,size:()=>fo,some:()=>bn,sortBy:()=>bd,sortedIndex:()=>Zi,tail:()=>lr,take:()=>bi,tap:()=>yr,template:()=>ei,templateSettings:()=>Ut,throttle:()=>vn,times:()=>ti,toArray:()=>us,toPath:()=>Ge,transpose:()=>ho,unescape:()=>Ft,union:()=>hs,uniq:()=>po,unique:()=>po,uniqueId:()=>Pa,unzip:()=>ho,values:()=>qt,where:()=>vd,without:()=>Pl,wrap:()=>yi,zip:()=>kd});var n="1.13.8",i=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||Function("return this")()||{},o=Array.prototype,s=Object.prototype,c=typeof Symbol<"u"?Symbol.prototype:null,d=o.push,f=o.slice,g=s.toString,m=s.hasOwnProperty,y=typeof ArrayBuffer<"u",x=typeof DataView<"u",w=Array.isArray,k=Object.keys,S=Object.create,A=y&&ArrayBuffer.isView,L=isNaN,D=isFinite,W=!{toString:null}.propertyIsEnumerable("toString"),j=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleStr
763ing"],et=Math.pow(2,53)-1;function z(M,R){return R=R==null?M.length-1:+R,function(){for(var it=Math.max(arguments.length-R,0),lt=Array(it),bt=0;bt<it;bt++)lt[bt]=arguments[bt+R];switch(R){case 0:return M.call(this,lt);case 1:return M.call(this,arguments[0],lt);case 2:return M.call(this,arguments[0],arguments[1],lt)}var ht=Array(R+1);for(bt=0;bt<R;bt++)ht[bt]=arguments[bt];return ht[R]=lt,M.apply(this,ht)}}function B(M){var R=typeof M;return R==="function"||R==="object"&&!!M}function X(M){return M===null}function Z(M){return M===void 0}function F(M){return M===!0||M===!1||g.call(M)==="[object Boolean]"}function st(M){return!!(M&&M.nodeType===1)}function q(M){var R="[object "+M+"]";return function(it){return g.call(it)===R}}const Ct=q("String"),_=q("Number"),Q=q("Date"),J=q("RegExp"),gt=q("Error"),St=q("Symbol"),wt=q("ArrayBuffer");var mt=q("Function"),It=i.document&&i.document.childNodes;typeof Int8Array!="object"&&typeof It!="function"&&(mt=function(M){return typeof M=="function"||!1});const Bt=mt,se=q("Object");var ue=x&&(!/\[native code\]/.test(String(DataView))||se(new DataView(new ArrayBuffer(8)))),ne=typeof Map<"u"&&se(new Map),kt=q("DataView");function Ot(M){return M!=null&&Bt(M.getInt8)&&wt(M.buffer)}const Mt=ue?Ot:kt,zt=w||q("Array");function Kt(M,R){return M!=null&&m.call(M,R)}var le=q("Arguments");(function(){le(arguments)||(le=function(M){return Kt(M,"callee")})})();const Zt=le;function ve(M){return!St(M)&&D(M)&&!isNaN(parseFloat(M))}function xe(M){return _(M)&&L(M)}function ce(M){return function(){return M}}function P(M){return function(R){var it=M(R);return typeof it=="number"&&it>=0&&it<=et}}function H(M){return function(R){return R==null?void 0:R[M]}}const Y=H("byteLength"),ct=P(Y);var _t=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function K(M){return A?A(M)&&!Mt(M):ct(M)&&_t.test(g.call(M))}const yt=y?K:ce(!1),ut=H("length");function de(M){for(var R={},it=M.length,lt=0;lt<it;++lt)R[M[lt]]=!0;return{contains:function(bt){return R[bt]===!0},push:function(bt){return R[bt]=!0,M.push(bt)}}}function Ae(M,R){R=de(R);var it=j.length,lt=M.constructor,bt=Bt(lt)&<.prototype||s,ht="constructor";for(Kt(M,ht)&&!R.contains(ht)&&R.push(ht);it--;)ht=j[it],ht in M&&M[ht]!==bt[ht]&&!R.contains(ht)&&R.push(ht)}function Te(M){if(!B(M))return[];if(k)return k(M);var R=[];for(var it in M)Kt(M,it)&&R.push(it);return W&&Ae(M,R),R}function Re(M){if(M==null)return!0;var R=ut(M);return typeof R=="number"&&(zt(M)||Ct(M)||Zt(M))?R===0:ut(Te(M))===0}function U(M,R){var it=Te(R),lt=it.length;if(M==null)return!lt;for(var bt=Object(M),ht=0;ht<lt;ht++){var Dt=it[ht];if(R[Dt]!==bt[Dt]||!(Dt in bt))return!1}return!0}function tt(M){if(M instanceof tt)return M;if(!(this instanceof tt))return new tt(M);this._wrapped=M}tt.VERSION=n,tt.prototype.value=function(){return this._wrapped},tt.prototype.valueOf=tt.prototype.toJSON=tt.prototype.value,tt.prototype.toString=function(){return String(this._wrapped)};function $(M){return new Uint8Array(M.buffer||M,M.byteOffset||0,Y(M))}var pt="[object DataView]";function Lt(M,R){for(var it=[{a:M,b:R}],lt=[],bt=[];it.length;){var ht=it.pop();if(ht===!0){lt.pop(),bt.pop();continue}if(M=ht.a,R=ht.b,M===R){if(M!==0||1/M===1/R)continue;return!1}if(M==null||R==null)return!1;if(M!==M){if(R!==R)continue;return!1}var Dt=typeof M;if(Dt!=="function"&&Dt!=="object"&&typeof R!="object")return!1;M instanceof tt&&(M=M._wrapped),R instanceof tt&&(R=R._wrapped);var Qt=g.call(M);if(Qt!==g.call(R))return!1;if(ue&&Qt=="[object Object]"&&Mt(M)){if(!Mt(R))return!1;Qt=pt}switch(Qt){case"[object RegExp]":case"[object String]":if(""+M==""+R)continue;return!1;case"[object Number]":it.push({a:+M,b:+R});continue;case"[object Date]":case"[object Boolean]":if(+M==+R)continue;return!1;case"[object Symbol]":if(c.valueOf.call(M)===c.valueOf.call(R))continue;return!1;case"[object ArrayBuffer]":case pt:it.push({a:$(M),b:$(R)});continue}var Ee=Qt==="[object Array]";if(!Ee&&yt(M)){var Oe=Y(M);if(Oe!==Y(R))return!1;if(M.buffer===R.buffer&&M.byteOffset===R.byteOffset)continue;Ee=!0}if(!Ee){if(typeof M!="object"||typeof R!="object")return!1;var _r=M.constructor,en=R.constructor;if(_r!==en&&!(Bt(_r)&&_r instanceof _r&&Bt(en)&&en instanceof en)&&"constructor"in M&&"constructor"in R)return!1}for(var rn=lt.length;rn--;)if(lt[rn]===M){if(bt[rn]===R)break;return!1}if(!(rn>=0))if(lt.push(M),bt.push(R),it.push(!0),Ee){if(rn=M.length,rn!==R.length)return!1;for(;rn--;)it.push({a:M[rn],b:R[rn]})}else{var vo=Te(M),vs;if(rn=vo.length,Te(R).length!==rn)return!1;for(;rn--;){if(vs=vo[rn],!Kt(R,vs))return!1;it.push({a:M[vs],b:R[vs]})}}}return!0}function Rt(M){if(!B(M))return[];var R=[];for(var it in M)R.push(it);return W&&Ae(M,R),R}function Jt(M){var R=ut(M);return function(it){if(it==null)return!1;var lt=Rt(it);if(ut(lt))return!1;for(var bt=0;bt<R;bt++)if(!Bt(it[M[bt]]))return!1;return M!==vr||!Bt(it[re])}}var re="forEach",Gt="has",Ce=["clear","delete"],Be=["get",Gt,"set"],we=Ce.concat(re,Be),vr=Ce.concat(Be),mr=["add"].concat(Ce,re,Gt);const V=ne?Jt(we):q("Map"),rt=ne?Jt(vr):q("WeakMap"),dt=ne?Jt(mr):q("Set"),Pt=q("WeakSet");function qt(M){for(var R=Te(M),it=R.length,lt=Array(it),bt=0;bt<it;bt++)lt[bt]=M[R[bt]];return lt}function ot(M){for(var R=Te(M),it=R.length,lt=Array(it),bt=0;bt<it;bt++)lt[bt]=[R[bt],M[R[bt]]];return lt}function xt(M){for(var R={},it=Te(M),lt=0,bt=it.length;lt<bt;lt++)R[M[it[lt]]]=it[lt];return R}function Nt(M){var R=[];for(var it in M)Bt(M[it])&&R.push(it);return R.sort()}function ee(M,R){return function(it){var lt=arguments.length;if(R&&(it=Object(it)),lt<2||it==null)return it;for(var bt=1;bt<lt;bt++)for(var ht=arguments[bt],Dt=M(ht),Qt=Dt.length,Ee=0;Ee<Qt;Ee++){var Oe=Dt[Ee];(!R||it[Oe]===void 0)&&(it[Oe]=ht[Oe])}return it}}const ye=ee(Rt),Ie=ee(Te),Ke=ee(Rt,!0);function Fe(){return function(){}}function Pr(M){if(!B(M))return{};if(S)return S(M);var R=Fe();R.prototype=M;var it=new R;return R.prototype=null,it}function Xe(M,R){var it=Pr(M);return R&&Ie(it,R),it}function sr(M){return B(M)?zt(M)?M.slice():ye({},M):M}function yr(M,R){return R(M),M}function Ge(M){return zt(M)?M:[M]}tt.toPath=Ge;function Lr(M){return tt.toPath(M)}function ke(M,R){for(var it=R.length,lt=0;lt<it;lt++){if(M==null)return;M=M[R[lt]]}return it?M:void 0}function $i(M,R,it){var lt=ke(M,Lr(R));return Z(lt)?it:lt}function Br(M,R){R=Lr(R);for(var it=R.length,lt=0;lt<it;lt++){var bt=R[lt];if(!Kt(M,bt))return!1;M=M[bt]}return!!it}function wr(M){return M}function Vr(M){return M=Ie({},M),function(R){return U(R,M)}}function Ye(M){return M=Lr(M),function(R){return ke(R,M)}}function ie(M,R,it){if(R===void 0)return M;switch(it??3){case 1:return function(lt){return M.call(R,lt)};case 3:return function(lt,bt,ht){return M.call(R,lt,bt,ht)};case 4:return function(lt,bt,ht,Dt){return M.call(R,lt,bt,ht,Dt)}}return function(){return M.apply(R,arguments)}}function Sn(M,R,it){return M==null?wr:Bt(M)?ie(M,R,it):B(M)&&!zt(M)?Vr(M):Ye(M)}function Qr(M,R){return Sn(M,R,1/0)}tt.iteratee=Qr;function $e(M,R,it){return tt.iteratee!==Qr?tt.iteratee(M,R):Sn(M,R,it)}function Ue(M,R,it){R=$e(R,it);for(var lt=Te(M),bt=lt.length,ht={},Dt=0;Dt<bt;Dt++){var Qt=lt[Dt];ht[Qt]=R(M[Qt],Qt,M)}return ht}function tn(){}function Qn(M){return M==null?tn:function(R){return $i(M,R)}}function ti(M,R,it){var lt=Array(Math.max(0,M));R=ie(R,it,1);for(var bt=0;bt<M;bt++)lt[bt]=R(bt);return lt}function Vt(M,R){return R==null&&(R=M,M=0),M+Math.floor(Math.random()*(R-M+1))}const he=Date.now||function(){return new Date().getTime()};function Vn(M){var R=function(ht){return M[ht]},it="(?:"+Te(M).join("|")+")",lt=RegExp(it),bt=RegExp(it,"g");return function(ht){return ht=ht==null?"":""+ht,lt.test(ht)?ht.replace(bt,R):ht}}const N={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},nt=Vn(N),Et=xt(N),Ft=Vn(Et),Ut=tt.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var Pe=/(.)^/,Ve={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},nr=/\\|'|\r|\n|\u2028|\u2029/g;function ur(M){return"\\"+Ve[M]}var Tn=/^\s*(\w|\$)+\s*$/;function ei(M,R,it){!R&&it&&(R=it),R=Ke({},R,tt.templateSettings);var lt=RegExp([(R.escape||Pe).source,(R.interpolate||Pe).source,(R.evaluate||Pe).source].join("|")+"|$","g"),bt=0,ht="__p+='";M.replace(lt,function(Oe,_r,en,rn,vo){return ht+=M.slice(bt,vo).replace(nr,ur),bt=vo+Oe.length,_r?ht+=`'+ 764((__t=(`+_r+`))==null?'':_.escape(__t))+ 765'`:en?ht+=`'+ 766((__t=(`+en+`))==null?'':__t)+ 767'`:rn&&(ht+=`'; 768`+rn+` 769__p+='`),Oe}),ht+=`'; 770`;var Dt=R.variable;if(Dt){if(!Tn.test(Dt))throw new Error("variable is not a bare identifier: "+Dt)}else ht=`with(obj||{}){ 771`+ht+`} 772`,Dt="obj";ht=`var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');}; 773`+ht+`return __p; 774`;var Qt;try{Qt=new Function(Dt,"_",ht)}catch(Oe){throw Oe.source=ht,Oe}var Ee=function(Oe){return Qt.call(this,Oe,tt)};return Ee.source="function("+Dt+`){ 775`+ht+"}",Ee}function vi(M,R,it){R=Lr(R);var lt=R.length;if(!lt)return Bt(it)?it.call(M):it;for(var bt=0;bt<lt;bt++){var ht=M==null?void 0:M[R[bt]];ht===void 0&&(ht=it,bt=lt),M=Bt(ht)?ht.call(M):ht}return M}var lo=0;function Pa(M){var R=++lo+"";return M?M+R:R}function zi(M){var R=tt(M);return R._chain=!0,R}function co(M,R,it,lt,bt){if(!(lt instanceof R))return M.apply(it,bt);var ht=Pr(M.prototype),Dt=M.apply(ht,bt);return B(Dt)?Dt:ht}var sa=z(function(M,R){var it=sa.placeholder,lt=function(){for(var bt=0,ht=R.length,Dt=Array(ht),Qt=0;Qt<ht;Qt++)Dt[Qt]=R[Qt]===it?arguments[bt++]:R[Qt];for(;bt<arguments.length;)Dt.push(arguments[bt++]);return co(M,lt,this,this,Dt)};return lt});sa.placeholder=tt;const Ai=sa,Ui=z(function(M,R,it){if(!Bt(M))throw new TypeError("Bind must be called on a function");var lt=z(function(bt){return co(M,lt,R,this,it.concat(bt))});return lt}),$r=P(ut);function mi(M,R,it){!R&&R!==0&&(R=1/0);for(var lt=[],bt=0,ht=0,Dt=ut(M)||0,Qt=[];;){if(ht>=Dt){if(!Qt.length)break;var Ee=Qt.pop();ht=Ee.i,M=Ee.v,Dt=ut(M);continue}var Oe=M[ht++];Qt.length>=R?lt[bt++]=Oe:$r(Oe)&&(zt(Oe)||Zt(Oe))?(Qt.push({i:ht,v:M}),ht=0,M=Oe,Dt=ut(M)):it||(lt[bt++]=Oe)}return lt}const La=z(function(M,R){R=mi(R,!1,!1);var it=R.length;if(it<1)throw new Error("bindAll must be passed function names");for(;it--;){var lt=R[it];M[lt]=Ui(M[lt],M)}return M});function gn(M,R){var it=function(lt){var bt=it.cache,ht=""+(R?R.apply(this,arguments):lt);return Kt(bt,ht)||(bt[ht]=M.apply(this,arguments)),bt[ht]};return it.cache={},it}const Da=z(function(M,R,it){return setTimeout(function(){return M.apply(null,it)},R)}),uo=Ai(Da,tt,1);function vn(M,R,it){var lt,bt,ht,Dt,Qt=0;it||(it={});var Ee=function(){Qt=it.leading===!1?0:he(),lt=null,Dt=M.apply(bt,ht),lt||(bt=ht=null)},Oe=function(){var _r=he();!Qt&&it.leading===!1&&(Qt=_r);var en=R-(_r-Qt);return bt=this,ht=arguments,en<=0||en>R?(lt&&(clearTimeout(lt),lt=null),Qt=_r,Dt=M.apply(bt,ht),lt||(bt=ht=null)):!lt&&it.trailing!==!1&&(lt=setTimeout(Ee,en)),Dt};return Oe.cancel=function(){clearTimeout(lt),Qt=0,lt=bt=ht=null},Oe}function Mi(M,R,it){var lt,bt,ht,Dt,Qt,Ee=function(){var _r=he()-bt;R>_r?lt=setTimeout(Ee,R-_r):(lt=null,it||(Dt=M.apply(Qt,ht)),lt||(ht=Qt=null))},Oe=z(function(_r){return Qt=this,ht=_r,bt=he(),lt||(lt=setTimeout(Ee,R),it&&(Dt=M.apply(Qt,ht))),Dt});return Oe.cancel=function(){clearTimeout(lt),lt=ht=Qt=null},Oe}function yi(M,R){return Ai(R,M)}function Tr(M){return function(){return!M.apply(this,arguments)}}function cs(){var M=arguments,R=M.length-1;return function(){for(var it=R,lt=M[R].apply(this,arguments);it--;)lt=M[it].call(this,lt);return lt}}function Pi(M,R){return function(){if(--M<1)return R.apply(this,arguments)}}function Hn(M,R){var it;return function(){return--M>0&&(it=R.apply(this,arguments)),M<=1&&(R=null),it}}const Ia=Ai(Hn,2);function ri(M,R,it){R=$e(R,it);for(var lt=Te(M),bt,ht=0,Dt=lt.length;ht<Dt;ht++)if(bt=lt[ht],R(M[bt],bt,M))return bt}function ni(M){return function(R,it,lt){it=$e(it,lt);for(var bt=ut(R),ht=M>0?0:bt-1;ht>=0&&ht<bt;ht+=M)if(it(R[ht],ht,R))return ht;return-1}}const la=ni(1),Wi=ni(-1);function Zi(M,R,it,lt){it=$e(it,lt,1);for(var bt=it(R),ht=0,Dt=ut(M);ht<Dt;){var Qt=Math.floor((ht+Dt)/2);it(M[Qt])<bt?ht=Qt+1:Dt=Qt}return ht}function ca(M,R,it){return function(lt,bt,ht){var Dt=0,Qt=ut(lt);if(typeof ht=="number")M>0?Dt=ht>=0?ht:Math.max(ht+Qt,Dt):Qt=ht>=0?Math.min(ht+1,Qt):ht+Qt+1;else if(it&&ht&&Qt)return ht=it(lt,bt),lt[ht]===bt?ht:-1;if(bt!==bt)return ht=R(f.call(lt,Dt,Qt),xe),ht>=0?ht+Dt:-1;for(ht=M>0?Dt:Qt-1;ht>=0&&ht<Qt;ht+=M)if(lt[ht]===bt)return ht;return-1}}const ja=ca(1,la,Zi),qi=ca(-1,Wi);
775function fe(M,R,it){var lt=$r(M)?la:ri,bt=lt(M,R,it);if(bt!==void 0&&bt!==-1)return M[bt]}function me(M,R){return fe(M,Vr(R))}function Me(M,R,it){R=ie(R,it);var lt,bt;if($r(M))for(lt=0,bt=M.length;lt<bt;lt++)R(M[lt],lt,M);else{var ht=Te(M);for(lt=0,bt=ht.length;lt<bt;lt++)R(M[ht[lt]],ht[lt],M)}return M}function pe(M,R,it){R=$e(R,it);for(var lt=!$r(M)&&Te(M),bt=(lt||M).length,ht=Array(bt),Dt=0;Dt<bt;Dt++){var Qt=lt?lt[Dt]:Dt;ht[Dt]=R(M[Qt],Qt,M)}return ht}function mn(M){var R=function(it,lt,bt,ht){var Dt=!$r(it)&&Te(it),Qt=(Dt||it).length,Ee=M>0?0:Qt-1;for(ht||(bt=it[Dt?Dt[Ee]:Ee],Ee+=M);Ee>=0&&Ee<Qt;Ee+=M){var Oe=Dt?Dt[Ee]:Ee;bt=lt(bt,it[Oe],Oe,it)}return bt};return function(it,lt,bt,ht){var Dt=arguments.length>=3;return R(it,ie(lt,ht,4),bt,Dt)}}const yn=mn(1),ii=mn(-1);function cn(M,R,it){var lt=[];return R=$e(R,it),Me(M,function(bt,ht,Dt){R(bt,ht,Dt)&<.push(bt)}),lt}function dn(M,R,it){return cn(M,Tr($e(R)),it)}function Ki(M,R,it){R=$e(R,it);for(var lt=!$r(M)&&Te(M),bt=(lt||M).length,ht=0;ht<bt;ht++){var Dt=lt?lt[ht]:ht;if(!R(M[Dt],Dt,M))return!1}return!0}function bn(M,R,it){R=$e(R,it);for(var lt=!$r(M)&&Te(M),bt=(lt||M).length,ht=0;ht<bt;ht++){var Dt=lt?lt[ht]:ht;if(R(M[Dt],Dt,M))return!0}return!1}function un(M,R,it,lt){return $r(M)||(M=qt(M)),(typeof it!="number"||lt)&&(it=0),ja(M,R,it)>=0}const ds=z(function(M,R,it){var lt,bt;return Bt(R)?bt=R:(R=Lr(R),lt=R.slice(0,-1),R=R[R.length-1]),pe(M,function(ht){var Dt=bt;if(!Dt){if(lt&<.length&&(ht=ke(ht,lt)),ht==null)return;Dt=ht[R]}return Dt==null?Dt:Dt.apply(ht,it)})});function Li(M,R){return pe(M,Ye(R))}function vd(M,R){return cn(M,Vr(R))}function kl(M,R,it){var lt=-1/0,bt=-1/0,ht,Dt;if(R==null||typeof R=="number"&&typeof M[0]!="object"&&M!=null){M=$r(M)?M:qt(M);for(var Qt=0,Ee=M.length;Qt<Ee;Qt++)ht=M[Qt],ht!=null&&ht>lt&&(lt=ht)}else R=$e(R,it),Me(M,function(Oe,_r,en){Dt=R(Oe,_r,en),(Dt>bt||Dt===-1/0&<===-1/0)&&(lt=Oe,bt=Dt)});return lt}function md(M,R,it){var lt=1/0,bt=1/0,ht,Dt;if(R==null||typeof R=="number"&&typeof M[0]!="object"&&M!=null){M=$r(M)?M:qt(M);for(var Qt=0,Ee=M.length;Qt<Ee;Qt++)ht=M[Qt],ht!=null&&ht<lt&&(lt=ht)}else R=$e(R,it),Me(M,function(Oe,_r,en){Dt=R(Oe,_r,en),(Dt<bt||Dt===1/0&<===1/0)&&(lt=Oe,bt=Dt)});return lt}var Rp=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function us(M){return M?zt(M)?f.call(M):Ct(M)?M.match(Rp):$r(M)?pe(M,wr):qt(M):[]}function fs(M,R,it){if(R==null||it)return $r(M)||(M=qt(M)),M[Vt(M.length-1)];var lt=us(M),bt=ut(lt);R=Math.max(Math.min(R,bt),0);for(var ht=bt-1,Dt=0;Dt<R;Dt++){var Qt=Vt(Dt,ht),Ee=lt[Dt];lt[Dt]=lt[Qt],lt[Qt]=Ee}return lt.slice(0,R)}function yd(M){return fs(M,1/0)}function bd(M,R,it){var lt=0;return R=$e(R,it),Li(pe(M,function(bt,ht,Dt){return{value:bt,index:lt++,criteria:R(bt,ht,Dt)}}).sort(function(bt,ht){var Dt=bt.criteria,Qt=ht.criteria;if(Dt!==Qt){if(Dt>Qt||Dt===void 0)return 1;if(Dt<Qt||Qt===void 0)return-1}return bt.index-ht.index}),"value")}function ps(M,R){return function(it,lt,bt){var ht=R?[[],[]]:{};return lt=$e(lt,bt),Me(it,function(Dt,Qt){var Ee=lt(Dt,Qt,it);M(ht,Dt,Ee)}),ht}}const xd=ps(function(M,R,it){Kt(M,it)?M[it].push(R):M[it]=[R]}),Sl=ps(function(M,R,it){M[it]=R}),wd=ps(function(M,R,it){Kt(M,it)?M[it]++:M[it]=1}),Tl=ps(function(M,R,it){M[it?0:1].push(R)},!0);function fo(M){return M==null?0:$r(M)?M.length:Te(M).length}function Na(M,R,it){return R in it}const Ol=z(function(M,R){var it={},lt=R[0];if(M==null)return it;Bt(lt)?(R.length>1&&(lt=ie(lt,R[1])),R=Rt(M)):(lt=Na,R=mi(R,!1,!1),M=Object(M));for(var bt=0,ht=R.length;bt<ht;bt++){var Dt=R[bt],Qt=M[Dt];lt(Qt,Dt,M)&&(it[Dt]=Qt)}return it}),_d=z(function(M,R){var it=R[0],lt;return Bt(it)?(it=Tr(it),R.length>1&&(lt=R[1])):(R=pe(mi(R,!1,!1),String),it=function(bt,ht){return!un(R,ht)}),Ol(M,it,lt)});function El(M,R,it){return f.call(M,0,Math.max(0,M.length-(R==null||it?1:R)))}function bi(M,R,it){return M==null||M.length<1?R==null||it?void 0:[]:R==null||it?M[0]:El(M,M.length-R)}function lr(M,R,it){return f.call(M,R==null||it?1:R)}function Cd(M,R,it){return M==null||M.length<1?R==null||it?void 0:[]:R==null||it?M[M.length-1]:lr(M,Math.max(0,M.length-R))}function Al(M){return cn(M,Boolean)}function Ra(M,R){return mi(M,R,!1)}const Ml=z(function(M,R){return R=mi(R,!0,!0),cn(M,function(it){return!un(R,it)})}),Pl=z(function(M,R){return Ml(M,R)});function po(M,R,it,lt){F(R)||(lt=it,it=R,R=!1),it!=null&&(it=$e(it,lt));for(var bt=[],ht=[],Dt=0,Qt=ut(M);Dt<Qt;Dt++){var Ee=M[Dt],Oe=it?it(Ee,Dt,M):Ee;R&&!it?((!Dt||ht!==Oe)&&bt.push(Ee),ht=Oe):it?un(ht,Oe)||(ht.push(Oe),bt.push(Ee)):un(bt,Ee)||bt.push(Ee)}return bt}const hs=z(function(M){return po(mi(M,!0,!0))});function Ll(M){for(var R=[],it=arguments.length,lt=0,bt=ut(M);lt<bt;lt++){var ht=M[lt];if(!un(R,ht)){var Dt;
775for(Dt=1;Dt<it&&un(arguments[Dt],ht);Dt++);Dt===it&&R.push(ht)}}return R}function ho(M){for(var R=M&&kl(M,ut).length||0,it=Array(R),lt=0;lt<R;lt++)it[lt]=Li(M,lt);return it}const kd=z(ho);function Dl(M,R){for(var it={},lt=0,bt=ut(M);lt<bt;lt++)R?it[M[lt]]=R[lt]:it[M[lt][0]]=M[lt][1];return it}function Il(M,R,it){R==null&&(R=M||0,M=0),it||(it=R<M?-1:1);for(var lt=Math.max(Math.ceil((R-M)/it),0),bt=Array(lt),ht=0;ht<lt;ht++,M+=it)bt[ht]=M;return bt}function Sd(M,R){if(R==null||R<1)return[];for(var it=[],lt=0,bt=M.length;lt<bt;)it.push(f.call(M,lt,lt+=R));return it}function da(M,R){return M._chain?tt(R).chain():R}function ai(M){return Me(Nt(M),function(R){var it=tt[R]=M[R];tt.prototype[R]=function(){var lt=[this._wrapped];return d.apply(lt,arguments),da(this,it.apply(tt,lt))}}),tt}Me(["pop","push","reverse","shift","sort","splice","unshift"],function(M){var R=o[M];tt.prototype[M]=function(){var it=this._wrapped;return it!=null&&(R.apply(it,arguments),(M==="shift"||M==="splice")&&it.length===0&&delete it[0]),da(this,it)}}),Me(["concat","join","slice"],function(M){var R=o[M];tt.prototype[M]=function(){var it=this._wrapped;return it!=null&&(it=R.apply(it,arguments)),da(this,it)}});const gs=tt;var go=ai(e);go._=go;const Td=go})},c0={};function kr(a){var r=c0[a];if(r!==void 0)return r.exports;var t=c0[a]={exports:{}};return j5[a].call(t.exports,t,t.exports,kr),t.exports}kr.n=a=>{var r=a&&a.__esModule?()=>a.default:()=>a;return kr.d(r,{a:r}),r};kr.d=(a,r)=>{for(var t in r)kr.o(r,t)&&!kr.o(a,t)&&Object.defineProperty(a,t,{enumerable:!0,get:r[t]})};kr.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}})();kr.o=(a,r)=>Object.prototype.hasOwnProperty.call(a,r);kr.r=a=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})};var wp={};kr.d(wp,{Ay:()=>HL,I0:()=>c3,nu:()=>l3});var r1={};kr.r(r1);kr.d(r1,{appendStyles:()=>s1,buildBase64UrlFromSvg:()=>Mu,camelCase:()=>ld,capitalize:()=>Xc,createId:()=>kp,deepMerge:()=>Cp,escape:()=>lb,escapeAltQuoteAttrValue:()=>ub,escapeAttrValue:()=>db,escapeNodeContent:()=>cb,find:()=>o_,get:()=>Xu,getComponentModel:()=>eo,getComponentView:()=>hl,getElement:()=>c1,getGlobal:()=>o1,getModel:()=>s_,getUiClass:()=>sb,getUnitFromValue:()=>Ig,getViewEl:()=>d1,hasDnd:()=>l1,hasWin:()=>Jr,isBultInMethod:()=>ab,isComponent:()=>os,isDef:()=>Xr,isEmptyObj:()=>so,isObject:()=>Cn,isRule:()=>fb,normalizeFloat:()=>xa,normalizeKey:()=>Dg,serialize:()=>i_,set:()=>ib,setViewEl:()=>Mc,shallowDiff:()=>Ju,stringToPath:()=>Yc,toLowerCase:()=>xr,upFirst:()=>a_,wait:()=>ob});var E=kr(39),N5=function(a,r,t){if(t||arguments.length===2)for(var e=0,n=r.length,i;e<n;e++)(i||!(e in r))&&(i||(i=Array.prototype.slice.call(r,0,e)),i[e]=r[e]);return a.concat(i||Array.prototype.slice.call(r))},R5="tag",B5="attributes",V5="transitionend oTransitionEnd transitionend webkitTransitionEnd",d0=function(a){return(a==null?void 0:a.nodeType)===Node.DOCUMENT_NODE},tb=function(a){var r;a&&(a.preventDefault(),(r=a._parentEvent)===null||r===void 0||r.preventDefault())},n1=function(a){var r=a&&a.parentNode;r&&r.removeChild(a)};function H5(){for(var a=[],r=0;r<arguments.length;r++)a[r]=arguments[r];var t=Array.isArray(a[0])?a[0]:N5([],a,!0);return t.filter(Boolean).join(" ")}var F5=function(a,r){return a.querySelectorAll(r)},$5=function(a,r){return r===void 0&&(r={}),a&&a.setAttribute&&(0,E.each)(r,function(t,e){return a.setAttribute(e,t)})},z5=function(a){var r;return a&&!!(a.offsetWidth||a.offsetHeight||!((r=a.getClientRects)===null||r===void 0)&&r.call(a).length)},U5=function(a,r){var t;(t=a.parentNode)===null||t===void 0||t.replaceChild(r,a)},i1=function(a,r,t){var e=a.childNodes,n=e.length,i=(0,E.isUndefined)(t)?n:t;(0,E.isString)(r)&&(a.insertAdjacentHTML("beforeEnd",r),r=a.lastChild,a.removeChild(r)),i>=n?a.appendChild(r):a.insertBefore(r,e[i])},Jd=function(a,r){return i1(a,r)},Vi=function(a,r,t){r===void 0&&(r={});var e=document.createElement(a);return r&&(0,E.each)(r,function(n,i){return e.setAttribute(i,n)}),t&&((0,E.isString)(t)?e.innerHTML=t:e.appendChild(t)),e},u0=function(a){return document.createTextNode(a)},W5=function(a,r){var t,e=a.type;try{t=new window[r](e,a)}catch{t=document.createEvent(r),t.initEvent(e,!0,!0)}
775return t._parentEvent=a,e.indexOf("key")===0&&(t.keyCodeVal=a.keyCode,["keyCode","which"].forEach(function(n){Object.defineProperty(t,n,{get:function(){return this.keyCodeVal}})})),t},f0=function(a,r){r===void 0&&(r=[]);var t=Array.isArray(r)?r:[r];t.forEach(function(e){var n=e[R5]||"div",i=e[B5]||{},o=document.createElement(n);(0,E.each)(i,function(s,c){o.setAttribute(c,s)}),a.appendChild(o)})},_l=function(a){return(a==null?void 0:a.nodeType)===Node.TEXT_NODE},Z5=function(a){return(a==null?void 0:a.nodeType)===Node.COMMENT_NODE},q5=function(a){return a&&!_l(a)&&!Z5(a)},yh=function(a){var r={top:0,left:0,width:0,height:0};if(!a)return r;var t;if(_l(a)){if(!a.parentNode)return r;var e=a.ownerDocument.createRange();e.selectNode(a),t=e.getBoundingClientRect(),e.detach()}return t||(a.getBoundingClientRect?a.getBoundingClientRect():r)},Au=function(a){var r=(a==null?void 0:a.ownerDocument)||document,t=r.documentElement,e=r.defaultView||window;return{x:(e.pageXOffset||t.scrollLeft||0)-(t.clientLeft||0),y:(e.pageYOffset||t.scrollTop||0)-(t.clientTop||0)}},a1=function(a){return a.which||a.keyCode},eb=function(a){return String.fromCharCode(a1(a))},_p=function(a){return a.touches&&a.touches[0]?a.touches[0]:a},rb=function(a){return a1(a)===27},K5=function(a){return a1(a)===13},G5=function(a){return a.ctrlKey},Y5=function(a){return G5(a)||a.metaKey},X5=function(a){if(!a)return"";var r=a.name,t=a.publicId,e=a.systemId,n=t?' PUBLIC "'.concat(t,'"'):"",i=!t&&e?' SYSTEM "'.concat(e,'"'):"";return"<!DOCTYPE ".concat(r).concat(n).concat(i,">")},J5=function(a){a===void 0&&(a={});var r=[];return(0,E.each)(a,function(t,e){return r.push("".concat(e,'="').concat(t,'"'))}),r.join(" ")},or=function(a,r,t,e){var n=r.split(/\s+/),i=(0,E.isArray)(a)?a:[a];n.forEach(function(o){i.forEach(function(s){return s==null?void 0:s.addEventListener(o,t,e)})})},gr=function(a,r,t,e){var n=r.split(/\s+/),i=(0,E.isArray)(a)?a:[a];n.forEach(function(o){i.forEach(function(s){return s==null?void 0:s.removeEventListener(o,t,e)})})},Q5=function(a){var r=a.replace(/-([a-zA-Z0-9])/g,function(t,e){return e.toUpperCase()});return r},Yu=function(){return Yu=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Yu.apply(this,arguments)},t_=function(a,r,t){if(t||arguments.length===2)for(var e=0,n=r.length,i;e<n;e++)(i||!(e in r))&&(i||(i=Array.prototype.slice.call(r,0,e)),i[e]=r[e]);return a.concat(i||Array.prototype.slice.call(r))},e_={},r_=/\\(\\)?/g,n_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Yc=function(a){var r=[];return a.charCodeAt(0)===46&&r.push(""),a.replace(n_,function(t,e,n,i){return r.push(n?i.replace(r_,"$1"):e||t),""}),r};function nb(a,r){return(0,E.isArray)(a)?a:r.hasOwnProperty(a)?[a]:Yc(a)}var Xu=function(a,r,t){for(var e,n=nb(r,a),i=n.length,o=0;a!=null&&o<i;)a=a["".concat(n[o++])];return(e=o&&o==i?a:void 0)!==null&&e!==void 0?e:t},ib=function(a,r,t){if(!Cn(a))return!1;var e=nb(r,a),n=e.length;if(n===0)return!1;if(n===1)return a[e[0]]=t,!0;var i=e.slice(0,-1),o=e[n-1],s=Xu(a,i);if(s){if(Array.isArray(s)){var c=+o;if(!isNaN(c))return s[c]=t,!0}else if(Cn(s))return s[o]=t,!0}return!1},i_=function(a){return JSON.parse(JSON.stringify(a))},ab=function(a){return(0,E.isFunction)(e_[a])},Dg=function(a){return ab(a)?"_".concat(a):a},ob=function(a){return a===void 0&&(a=0),new Promise(function(r){return setTimeout(r,a)})},Xr=function(a){return typeof a<"u"},Jr=function(){return typeof window<"u"},o1=function(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:kr.g},xr=function(a){return(a||"").toLowerCase()},sb=function(a,r){var t=a.getConfig(),e=t.stylePrefix,n=t.customUI;return[n&&"".concat(e,"cui"),r].filter(function(i){return i}).join(" ")},s1=function(a,r){r===void 0&&(r={});var t=(0,E.isArray)(a)?t_([],a,!0):[a];if(t.length){var e=t.shift();if(e&&(!r.unique||!document.querySelector('link[href="'.concat(e,'"]')))){var n=document.head,i=document.createElement("link");i.href=e,i.rel="stylesheet",r.prepand?n.insertBefore(i,n.firstChild):n.appendChild(i)}s1(t)}},Ju=function(a,r){var t={},e=(0,E.keys)(r);for(var n in a)if(a.hasOwnProperty(n)){var i=a[n],o=r[n];e.indexOf(n)>=0?i!==o&&(t[n]=o):t[n]=null}for(var n in r)r.hasOwnProperty(n)&&(0,E.isUndefined)(a[n])&&(t[n]=r[n]);return t},Ig=function(a){return a.replace(parseFloat(a),"")},a_=function(a){return a[0].toUpperCase()+a.toLowerCase().slice(1)},ld=function(a){return a.replace(/-./g,function(r){return r[1].toUpperCase()})},xa=function(a,r,t){r===void 0&&(r=1),t===void 0&&(t=0);var e=0;if(isNaN(a))return t;if(a=parseFloat(a),Math.floor(a)!==a){var n=r.toString().split(".")[1];e=n?n.length:0}return e?parseFloat(a.toFixed(e)):a},l1=function(a){return"draggable"in document.createElement("i")&&(a?a.config.nativeDnD:!0)}
775,c1=function(a){if((0,E.isElement)(a)||_l(a))return a;if(a&&a.getEl)return a.getEl()},o_=function(a,r){var t=null;return a.some(function(e,n){return r(e,n,a)?(t=e,1):0}),t},lb=function(a){return a===void 0&&(a=""),"".concat(a).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/`/g,"`")},cb=function(a){return a===void 0&&(a=""),"".concat(a).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")},db=function(a){return a===void 0&&(a=""),"".concat(a).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")},ub=function(a){return a===void 0&&(a=""),"".concat(a).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'")},Cp=function(){for(var a=[],r=0;r<arguments.length;r++)a[r]=arguments[r];for(var t=Yu({},a[0]),e=1;e<a.length;e++){var n=Yu({},a[e]);for(var i in n){var o=t[i],s=n[i];Cn(o)&&Cn(s)?t[i]=Cp(o,s):t[i]=s}}return t},s_=function(a,r){var t;return!r&&a&&a.__cashData?t=a.__cashData.model:r&&(0,E.isElement)(a)&&(t=r(a).data("model")),t},Cn=function(a){return a&&!Array.isArray(a)&&typeof a=="object"},so=function(a){return Object.keys(a).length<=0},Xc=function(a){return a===void 0&&(a=""),a&&a.charAt(0).toUpperCase()+a.substring(1)},fb=function(a){return a&&a.toCSS},d1=function(a){return a==null?void 0:a.__gjsv},os=function(a){return!!(a!=null&&a.toHTML)},hl=function(a){return d1(a)},eo=function(a){var r;return(r=hl(a))===null||r===void 0?void 0:r.model},Mc=function(a,r){a.__gjsv=r},kp=function(a){a===void 0&&(a=16);for(var r="",t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e=t.length,n=0;n<a;n++)r+=t.charAt(Math.floor(Math.random()*e));return r},Mu=function(a){if(a&&a.substr(0,4)==="<svg"){var r="";return Jr()?r=window.btoa(a):typeof Buffer<"u"&&(r=Buffer.from(a,"utf8").toString("base64")),r?"data:image/svg+xml;base64,".concat(r):a}return a};function Gn(a){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];var e=a.raw;return e.reduce(function(n,i,o){var s=r[o-1],c=e[o-1];return Array.isArray(s)?s=s.join(""):c&&c.slice(-1)==="$"?n=n.slice(0,-1):s=lb(s),n+s+i})}var l_=function(){return{stylePrefix:"gjs-",components:"",style:"",fromElement:!1,projectData:void 0,noticeOnUnload:!0,showOffsets:!1,showOffsetsSelected:!1,forceClass:!0,height:"900px",width:"100%",log:["warning","error"],baseCss:"",protectedCss:"* { box-sizing: border-box; } body {margin: 0;}",canvasCss:"",defaultCommand:"select-comp",showToolbar:!0,showDevices:!0,devicePreviewMode:!1,mediaCondition:"max-width",tagVarStart:"{[ ",tagVarEnd:" ]}",jsInHtml:!0,nativeDnD:!0,multipleSelection:!0,optsHtml:{},optsCss:{},avoidInlineStyle:!0,avoidDefaults:!0,clearStyles:!1,listenToEl:[],cssIcons:"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css",icons:{close:'<svg viewBox="0 0 24 24"><path fill="currentColor" d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"></path></svg>',move:'<svg viewBox="0 0 24 24"><path fill="currentColor" d="M13,6V11H18V7.75L22.25,12L18,16.25V13H13V18H16.25L12,22.25L7.75,18H11V13H6V16.25L1.75,12L6,7.75V11H11V6H7.75L12,1.75L16.25,6H13Z"/></svg>',plus:'<svg viewBox="0 0 24 24"><path fill="currentColor" d="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z" /></svg>',caret:'<svg viewBox="0 0 24 24"><path fill="currentColor" d="M7,10L12,15L17,10H7Z" /></svg>',delete:'<svg viewBox="0 0 24 24"><path fill="currentColor" d="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z" /></svg>',copy:'<svg viewBox="0 0 24 24"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z" /></svg>',arrowUp:'<svg viewBox="0 0 24 24"><path fill="currentColor" d="M13,20H11V8L5.5,13.5L4.08,12.08L12,4.16L19.92,12.08L18.5,13.5L13,8V20Z" /></svg>',chevron:'<svg viewBox="0 0 24 24"><path fill="currentColor" d="M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z" /></svg>',eye:'<svg viewBox="0 0 24 24">
775<path fill="currentColor" d="M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z" /></svg>',eyeOff:'<svg viewBox="0 0 24 24"><path fill="currentColor" d="M11.83,9L15,12.16C15,12.11 15,12.05 15,12A3,3 0 0,0 12,9C11.94,9 11.89,9 11.83,9M7.53,9.8L9.08,11.35C9.03,11.56 9,11.77 9,12A3,3 0 0,0 12,15C12.22,15 12.44,14.97 12.65,14.92L14.2,16.47C13.53,16.8 12.79,17 12,17A5,5 0 0,1 7,12C7,11.21 7.2,10.47 7.53,9.8M2,4.27L4.28,6.55L4.73,7C3.08,8.3 1.78,10 1,12C2.73,16.39 7,19.5 12,19.5C13.55,19.5 15.03,19.2 16.38,18.66L16.81,19.08L19.73,22L21,20.73L3.27,3M12,7A5,5 0 0,1 17,12C17,12.64 16.87,13.26 16.64,13.82L19.57,16.75C21.07,15.5 22.27,13.86 23,12C21.27,7.61 17,4.5 12,4.5C10.6,4.5 9.26,4.75 8,5.2L10.17,7.35C10.74,7.13 11.35,7 12,7Z" /></svg>'},i18n:{},undoManager:{},assetManager:{},canvas:{},layerManager:{},storageManager:{},richTextEditor:{},domComponents:{},modal:{},codeManager:{},panels:{},commands:{},cssComposer:{},selectorManager:{},deviceManager:{},styleManager:{},blockManager:{},traitManager:{},textViewCode:"Code",keepUnusedStyles:!1,customUI:!1,telemetry:!0}};const c_=l_;var u1=kr(193),Sp=kr.n(u1),De=kr(774);const d_=(function(a){var r=a.$;if(r&&r.prototype&&r.prototype.constructor.name!=="jQuery"){var t=r.fn;t.hide=function(){return this.css("display","none")},t.show=function(){return this.css("display","block")},t.focus=function(){var i=this.get(0);return i&&i.focus(),this},t.bind=function(i,o){return this.on(i,o)},t.unbind=function(i,o){if((0,E.isObject)(i)){for(var s in i)i.hasOwnProperty(s)&&this.off(s,i[s]);return this}else return this.off(i,o)},t.click=function(i){return i?this.on("click",i):this.trigger("click")},t.change=function(i){return i?this.on("change",i):this.trigger("change")},t.keydown=function(i){return i?this.on("keydown",i):this.trigger("keydown")},t.delegate=function(i,o,s,c){return c||(c=s),this.on(o,i,function(d){d.data=s,c(d)})},t.scrollLeft=function(){var i=this.get(0);i=i.nodeType==9?i.defaultView:i;var o=i instanceof Window?i:null;return o?o.pageXOffset:i.scrollLeft||0},t.scrollTop=function(){var i=this.get(0);i=i.nodeType==9?i.defaultView:i;var o=i instanceof Window?i:null;return o?o.pageYOffset:i.scrollTop||0};var e=r.prototype.offset;t.offset=function(i){var o,s;return i&&(o=i.top,s=i.left),typeof o<"u"&&this.css("top","".concat(o,"px")),typeof s<"u"&&this.css("left","".concat(s,"px")),e.call(this)},r.map=function(i,o){for(var s=[],c=0;c<i.length;c++)s.push(o(i[c],c));return s};var n=Array.prototype.indexOf;r.inArray=function(i,o,s){return o==null?-1:n.call(o,i,s)},r.Event=function(i,o){if(!(this instanceof r.Event))return new r.Event(i,o);this.type=i,this.isDefaultPrevented=function(){return!1}}}});var f1=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Qu=function(){return Qu=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Qu.apply(this,arguments)},p1="add remove reset change",We=(function(a){f1(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r})(Sp().Model),Rr=(function(a){f1(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r})(Sp().Collection),Ze=(function(a){f1(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r})(Sp().View),Jc;(function(a){a.Screen="screen",a.World="world"})(Jc||(Jc={}));var jg={x:0,y:0};Qu(Qu({},jg),{width:0,height:0});var pb=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}
775r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),u_=(function(a){pb(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r})(We),f_=(function(a){pb(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.getByComponent=function(t){var e=this;return this.filter(function(n){return e.getComponent(n)===t})[0]},r.prototype.addComponent=function(t,e){var n=this,i=((0,E.isArray)(t)?t:[t]).filter(function(o){return!n.hasComponent(o)}).map(function(o){return new u_({component:o})})[0];return this.push(i,e)},r.prototype.getComponent=function(t){return t.get("component")},r.prototype.hasComponent=function(t){var e=this.getByComponent(t);return e&&this.contains(e)},r.prototype.lastComponent=function(){var t=this.last();return t?this.getComponent(t):void 0},r.prototype.allComponents=function(){var t=this;return this.map(function(e){return t.getComponent(e)}).filter(function(e){return e})},r.prototype.removeComponent=function(t,e){var n=this,i=((0,E.isArray)(t)?t:[t]).map(function(o){return n.getByComponent(o)});return this.remove(i,e)},r})(Rr);const p_=f_;var h_=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Ng=function(){return Ng=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Ng.apply(this,arguments)},g_=function(a,r,t){if(t||arguments.length===2)for(var e=0,n=r.length,i;e<n;e++)(i||!(e in r))&&(i||(i=Array.prototype.slice.call(r,0,e)),i[e]=r[e]);return a.concat(i||Array.prototype.slice.call(r))},hb=(function(){function a(r,t,e){this.debounced=[],this.collections=[],this.cls=[],this.events={},this._em=r,this._name=t;var n=this.name.charAt(0).toLowerCase()+this.name.slice(1),i=(0,E.isUndefined)(r.config[n])?r.config[this.name]:r.config[n],o=i===!0?{}:i||{};o.pStylePrefix=r.config.pStylePrefix||"",!(0,E.isUndefined)(i)&&!i&&(o._disable=1),o.em=r,this._config=Cp(e||{},o)}return Object.defineProperty(a.prototype,"em",{get:function(){return this._em},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"config",{get:function(){return this._config},enumerable:!1,configurable:!0}),a.prototype.render=function(r){},a.prototype.postLoad=function(r){},a.prototype.onInit=function(){},Object.defineProperty(a.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),a.prototype.getConfig=function(r){return r?this.config[r]:this.config},a.prototype.__logWarn=function(r,t){t===void 0&&(t={}),this.em.logWarning("[".concat(this.name,"]: ").concat(r),t)},a.prototype.destroy=function(){this.__destroy()},a.prototype.__destroy=function(){var r,t,e;(r=this.view)===null||r===void 0||r.remove(),(t=this.state)===null||t===void 0||t.stopListening(),(e=this.state)===null||e===void 0||e.clear(),this.debounced.forEach(function(n){return n.cancel()}),this.collections.forEach(function(n){n.stopListening(),n.reset()})},a.prototype.__appendTo=function(){var r=this.getConfig().appendTo;if(r){var t=(0,E.isElement)(r)?r:document.querySelector(r);if(!t)return this.__logWarn('"appendTo" element not found');t.appendChild(this.render())}},a})();const Jn=hb;var oa=(function(a){h_(r,a);function r(t,e,n,i,o,s){s===void 0&&(s={});var c=a.call(this,t,e,o)||this;return c.cls=[],c._itemCache=new Map,c.private=!1,c.all=n,i&&(c.events=i),!s.skipListen&&c.__initListen(),c}return r.prototype.postLoad=function(t){},r.prototype.render=function(t){},r.prototype.getProjectData=function(t){var e={},n=this.storageKey;return n&&(e[n]=t||this.getAll()),e},r.prototype.loadProjectData=function(t,e){t===void 0&&(t={}),e===void 0&&(e={});var n=e.all,i=e.onResult,o=e.reset,s=this.storageKey,c={action:"load"},d=n||this.all,f=t[s];if(typeof f=="string")try{f=JSON.parse(f)}catch{this.__logWarn("Data parsing failed",{input:f})}return o&&f&&d.reset(void 0,c),i?f&&i(f,c):f&&Xr(f.length)&&d.reset(f,c),f},r.prototype.clear=function(t){t===void 0&&(t={});var e=this.all;return e&&e.reset(void 0,t),this},r.prototype.getAll=function(){return g_([],this.all.models,!0)},r.prototype.getAllMap=function(){return this.getAll().reduce(function(t,e){return t[e.get(e.idAttribute)]=e,t},{})},r.prototype._makeCacheKey=function(t){return""},r.prototype._cacheItem=function(t){var e=this._makeCacheKey(t);e&&this._itemCache.set(e,t)},r.prototype._uncacheItem=function(t){var e=this._makeCacheKey(t);e&&this._itemCache.delete(e)}
775,r.prototype._clearItemCache=function(){this._itemCache.clear()},r.prototype._onItemsResetCache=function(t){var e=this;this._clearItemCache(),t.each(function(n){return e._cacheItem(n)})},r.prototype._onItemKeyChange=function(t){for(var e,n=0,i=this._itemCache.entries();n<i.length;n++){var o=i[n],s=o[0],c=o[1];if(c===t){e=s;break}}e&&this._itemCache.delete(e),this._cacheItem(t)},r.prototype._setupCacheListeners=function(){this.em.listenTo(this.all,"add",this._cacheItem.bind(this)),this.em.listenTo(this.all,"remove",this._uncacheItem.bind(this)),this.em.listenTo(this.all,"reset",this._onItemsResetCache.bind(this))},r.prototype.__initListen=function(t){t===void 0&&(t={});var e=this,n=e.all,i=e.em,o=e.events;n&&i&&n.on("add",function(s,c,d){return i.trigger(o.add,s,d)}).on("remove",function(s,c,d){return i.trigger(o.remove,s,d)}).on("change",function(s,c){return i.trigger(o.update,s,s.changedAttributes(),c)}).on("all",this.__catchAllEvent,this),this.cls=[n].concat(t.collections||[]),(t.propagate||[]).forEach(function(s){var c=s.entity,d=s.event;c.on("all",function(f,g,m,y){var x=y||m,w=Ng({event:f},x);[i,n].map(function(k){return k.trigger(d,g,w)})})})},r.prototype.__remove=function(t,e){var n=this;e===void 0&&(e={});var i=this.em,o=(0,E.isString)(t)?this.get(t):t,s=function(){return o&&n.all.remove(o,e),o};return!e.silent&&(i==null||i.trigger(this.events.removeBefore,o,s,e)),!e.abort&&s()},r.prototype.__catchAllEvent=function(t,e,n,i){var o=this,s=o.em,c=o.events,d=i||n;s&&c.all&&s.trigger(c.all,{event:t,model:e,options:d}),this.__onAllEvent()},r.prototype.__appendTo=function(t){var e=this.config.appendTo;if(e){var n=(0,E.isElement)(e)?e:document.querySelector(e);if(!n)return this.__logWarn('"appendTo" element not found');n.appendChild(this.render(t))}},r.prototype.__onAllEvent=function(){},r.prototype._createId=function(t,e){t===void 0&&(t=16);var n=this.getAll(),i=(e??n.length)+t,o=this.getAllMap(),s;do s=kp(i);while(o[s]);return s},r.prototype.__listenAdd=function(t,e){var n=this;t.on("add",function(i,o,s){return n.em.trigger(e,i,s)})},r.prototype.__listenRemove=function(t,e){var n=this;t.on("remove",function(i,o,s){return n.em.trigger(e,i,s)})},r.prototype.__listenUpdate=function(t,e){var n=this;t.on("change",function(i,o){return n.em.trigger(e,i,i.changedAttributes(),o)})},r.prototype.__destroy=function(){var t;this.cls.forEach(function(e){e.stopListening(),e.reset()}),(t=this.view)===null||t===void 0||t.remove(),this.view=void 0},r})(hb),v_=function(){return{stylePrefix:"cv-",scripts:[],styles:[],customBadgeLabel:void 0,autoscrollLimit:50,extHl:!1,frameContent:"<!DOCTYPE html>",frameStyle:` 776 body { background-color: #fff } 777 * ::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.1) } 778 * ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2) } 779 * ::-webkit-scrollbar { width: 10px } 780 `,notTextable:["button","a","input[type=checkbox]","input[type=radio]"],allowExternalDrop:!0}};const m_=v_;var y_=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),b_=(function(a){y_(r,a);function r(t,e,n){var i=a.call(this,e,n)||this;return i._module=t,i}return Object.defineProperty(r.prototype,"module",{get:function(){return this._module},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"config",{get:function(){return this._module.config},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"em",{get:function(){return this._module.em},enumerable:!1,configurable:!0}),r})(We);const Ea=b_;var Rg;(function(a){a.add="device:add",a.addBefore="device:add:before",a.remove="device:remove",a.removeBefore="device:remove:before",a.select="device:select",a.selectBefore="device:select:before",a.update="device:update",a.all="device"})(Rg||(Rg={}));const h1=Rg;var Bg;(function(a){a.add="page:add",a.addBefore="page:add:before",a.remove="page:remove",a.removeBefore="page:remove:before",a.select="page:select",a.selectBefore="page:select:before",a.update="page:update",a.all="page"})(Bg||(Bg={}));const Vg=Bg;
780var x_=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),w_=(function(a){x_(r,a);function r(t,e,n){return a.call(this,e,{module:t,modelConstructor:n})||this}return r.prototype.add=function(t,e){var n=this,i,o=(0,E.isArray)(t)?t:(0,E.isUndefined)(t)?void 0:[t];return o=(i=o==null?void 0:o.map(function(s){return s instanceof n.newModel?s:new n.newModel(n.module,s)}))!==null&&i!==void 0?i:[void 0],a.prototype.add.call(this,(0,E.isArray)(t)?o:o[0],e)},r.prototype.preinitialize=function(t,e){this.newModel=e.modelConstructor,this.module=e.module},r})(Rr);const Tp=w_;var Pc;(function(a){a.remove="component:remove",a.add="component:add",a.move="component:move"})(Pc||(Pc={}));var te;(function(a){a.add="component:add",a.remove="component:remove",a.removeBefore="component:remove:before",a.removed="component:removed",a.clone="component:clone",a.create="component:create",a.update="component:update",a.updateProperty="component:update:",a.updateInside="component:update-inside",a.styleUpdate="component:styleUpdate",a.styleUpdateProperty="component:styleUpdate:",a.select="component:select",a.selectBefore="component:select:before",a.selected="component:selected",a.deselected="component:deselected",a.toggled="component:toggled",a.hover="component:hover",a.hoverBefore="component:hover:before",a.hovered="component:hovered",a.unhovered="component:unhovered",a.paste="component:paste",a.syncStyle="component:sync-style",a.typeAdd="component:type:add",a.typeUpdate="component:type:update",a.dragStart="component:drag:start",a.drag="component:drag",a.dragEnd="component:drag:end",a.mount="component:mount",a.scriptMount="component:script:mount",a.scriptMountBefore="component:script:mount:before",a.scriptUnmount="component:script:unmount",a.render="component:render",a.input="component:input",a.content="component:content",a.resize="component:resize",a.resizeStart="component:resize:start",a.resizeMove="component:resize:move",a.resizeEnd="component:resize:end",a.resizeUpdate="component:resize:update",a.resizeInit="component:resize:init",a.symbolMainAdd="symbol:main:add",a.symbolMainUpdate="symbol:main:update",a.symbolMainUpdateDeep="symbol:main:update-deep",a.symbolMainRemove="symbol:main:remove",a.symbolMain="symbol:main",a.symbolInstanceAdd="symbol:instance:add",a.symbolInstanceRemove="symbol:instance:remove",a.symbolInstance="symbol:instance",a.symbol="symbol"})(te||(te={}));var Ti;(function(a){a.dragEnter="canvas:dragenter",a.dragOver="canvas:dragover",a.dragEnd="canvas:dragend",a.dragData="canvas:dragdata",a.drop="canvas:drop",a.spot="canvas:spot",a.spotAdd="canvas:spot:add",a.spotUpdate="canvas:spot:update",a.spotRemove="canvas:spot:remove",a.coords="canvas:coords",a.zoom="canvas:zoom",a.pointer="canvas:pointer",a.refresh="canvas:refresh",a.update="canvas:update",a.updateTools="canvas:updateTools",a.toolsUpdate="canvas:tools:update",a.moveStart="canvas:move:start",a.move="canvas:move",a.moveEnd="canvas:move:end",a.frameLoad="canvas:frame:load",a.frameLoadHead="canvas:frame:load:head",a.frameLoadBody="canvas:frame:load:body",a.frameUnload="canvas:frame:unload"})(Ti||(Ti={}));const ea=Ti;var __=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Hg=function(){return Hg=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];
780for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Hg.apply(this,arguments)},p0=function(a,r,t){if(t||arguments.length===2)for(var e=0,n=r.length,i;e<n;e++)(i||!(e in r))&&(i||(i=Array.prototype.slice.call(r,0,e)),i[e]=r[e]);return a.concat(i||Array.prototype.slice.call(r))},h0="__aw",g0="__ah",v0=function(a,r){var t,e=a.get(r),n=(t=a.view)===null||t===void 0?void 0:t.el[r==="width"?"offsetWidth":"offsetHeight"];return(0,E.isNumber)(e)?e:(0,E.isString)(e)&&e.endsWith("px")?parseFloat(e):n||0},C_=(function(a){__(r,a);function r(t,e){var n=this,i=e.page;delete e.page,n=a.call(this,t,e)||this,n.page=i;var o=n.em,s=n.attributes,c=s.styles,d=s.component,f=o.Components,g=f.getConfig(),m=o.Css.getAll(),y={},x={em:o,config:g,frame:n,idMap:y};if(os(d))n.updateComponentFrame(d),n.emitComponentAdd(d);else{var w=Cn(d)?d:{components:d};!w.type&&(w.type="wrapper");var k=(f.getType(w.type)||f.getType("wrapper")).model;n.set("component",new k(w,x))}if(!c)n.set("styles",m);else if(!Cn(c)){var S=c;(0,E.keys)(y).length&&(S=(0,E.isString)(S)?o.Parser.parseCss(S):S,o.Css.checkId(S,{idMap:y})),m.add(S),n.set("styles",m)}return!e.width&&n.set(h0,1),!e.height&&n.set(g0,1),!n.id&&n.set("id",kp()),n}return r.prototype.defaults=function(){return{x:0,y:0,changesCount:0,attributes:{},width:null,height:null,head:[],component:"",styles:"",refFrame:null,_undo:!0,_undoexc:["changesCount"]}},Object.defineProperty(r.prototype,"width",{get:function(){return v0(this,"width")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"height",{get:function(){return v0(this,"height")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"head",{get:function(){return this.get("head")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"refFrame",{get:function(){return this.get("refFrame")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"refComponent",{get:function(){return this.get("refComponent")},enumerable:!1,configurable:!0}),r.prototype.updateComponentFrame=function(t){var e=this;t.frame!==this&&(t.opt.frame=this),t.components().forEach(function(n){return e.updateComponentFrame(n)})},r.prototype.emitComponentAdd=function(t,e){var n=this;e===void 0&&(e={}),this.em.trigger(te.add,t,e),t.components().forEach(function(i){return n.emitComponentAdd(i,e)})},Object.defineProperty(r.prototype,"root",{get:function(){var t=this.refFrame;return(t==null?void 0:t.getComponent())||this.getComponent()},enumerable:!1,configurable:!0}),r.prototype.initRefs=function(){var t=this,e=t.refFrame,n=t.refComponent,i=t.em;if((0,E.isString)(e)){var o=this.module.framesById[e];o&&this.set({refFrame:o},{silent:!0})}if((0,E.isString)(n)){var s=i.Components.getById(n);s&&this.set({refComponent:s},{silent:!0})}},r.prototype.getBoxRect=function(){var t=this.attributes,e=t.x,n=t.y,i=this,o=i.width,s=i.height;return{x:e,y:n,width:o,height:s}},r.prototype.onRemove=function(){!this.refFrame&&!this.refComponent&&this.getComponent().remove({root:1})},r.prototype.changesUp=function(t){t===void 0&&(t={}),!(t.temporary||t.noCount||t.avoidStore)&&this.set("changesCount",this.get("changesCount")+1)},r.prototype.getComponent=function(){return this.get("component")},r.prototype.getMainComponent=function(){return this.refComponent||this.root},r.prototype.getStyles=function(){return this.get("styles")},r.prototype.disable=function(){this.trigger("disable")},r.prototype.remove=function(){var t;(t=this.view)===null||t===void 0||t.remove(),this.view=void 0;var e=this.collection;return e&&e.remove(this)},r.prototype.getHead=function(){return p0([],this.head,!0)},r.prototype.setHead=function(t){return this.set("head",p0([],t,!0))},r.prototype.addHeadItem=function(t){this.head.push(t)},r.prototype.getHeadByAttr=function(t,e,n){return this.head.filter(function(i){return i.attributes&&i.attributes[t]==e&&(!n||n===i.tag)})[0]},r.prototype.removeHeadByAttr=function(t,e,n){var i=this.getHeadByAttr(t,e,n),o=this.head.indexOf(i);o>=0&&this.head.splice(o,1)},r.prototype.addLink=function(t){var e="link";!this.getHeadByAttr("href",t,e)&&this.addHeadItem({tag:e,attributes:{href:t,rel:"stylesheet"}})},r.prototype.removeLink=function(t){this.removeHeadByAttr("href",t,"link")},r.prototype.addScript=function(t){var e="script";!this.getHeadByAttr("src",t,e)&&this.addHeadItem({tag:e,attributes:{src:t}}
780)},r.prototype.removeScript=function(t){this.removeHeadByAttr("src",t,"script")},r.prototype.getPage=function(){var t;return this.page||((t=this.collection)===null||t===void 0?void 0:t.page)},r.prototype._emitUpdated=function(t){t===void 0&&(t={}),this.em.trigger("frame:updated",Hg({frame:this},t))},r.prototype._emitUnload=function(){this._emitWithEditor(ea.frameUnload,{frame:this})},r.prototype._emitWithEditor=function(t,e){[this.em,this].forEach(function(n){return n==null?void 0:n.trigger(t,e)})},r.prototype.hasAutoHeight=function(){var t=this.attributes.height;return!!(t==="auto"||this.config.infiniteCanvas)},r.prototype.toJSON=function(t){t===void 0&&(t={});var e=Ea.prototype.toJSON.call(this,t),n=(0,E.result)(this,"defaults");return t.fromUndo&&delete e.component,delete e.skipFromStorage,delete e.refComponent,delete e.styles,delete e.changesCount,e[h0]&&delete e.width,e[g0]&&delete e.height,e.refFrame&&(e.refFrame=e.refFrame.id,delete e.component),(0,E.forEach)(e,function(i,o){o.indexOf("_")===0&&delete e[o]}),(0,E.forEach)(n,function(i,o){e[o]===i&&delete e[o]}),(0,E.forEach)(["attributes","head"],function(i){(0,E.isEmpty)(e[i])&&delete e[i]}),e},r})(Ea);const gb=C_;var k_=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),S_=(function(a){k_(r,a);function r(t,e){e===void 0&&(e=[]);var n=a.call(this,t,e,gb)||this;return n.loadedItems=0,n.itemsToLoad=0,(0,E.bindAll)(n,"itemLoaded"),n.on("add",n.onAdd),n.on("reset",n.onReset),n.on("remove",n.onRemove),n.forEach(function(i){return n.onAdd(i)}),n}return r.prototype.onAdd=function(t){this.module.framesById[t.id]=t},r.prototype.onReset=function(t,e){var n=this,i=(e==null?void 0:e.previousModels)||[];i.map(function(o){return n.onRemove(o)})},r.prototype.onRemove=function(t){t.onRemove(),delete this.module.framesById[t.id]},r.prototype.initRefs=function(){this.forEach(function(t){return t.initRefs()})},r.prototype.toJSON=function(t){return this.filter(function(e){return!e.get("skipFromStorage")}).map(function(e){return e.toJSON(t)})},r.prototype.itemLoaded=function(){this.loadedItems++,this.loadedItems>=this.itemsToLoad&&(this.trigger("loaded:all"),this.listenToLoadItems(!1))},r.prototype.listenToLoad=function(){this.loadedItems=0,this.itemsToLoad=this.length,this.listenToLoadItems(!0)},r.prototype.listenToLoadItems=function(t){var e=this;this.forEach(function(n){return n[t?"on":"off"]("loaded",e.itemLoaded)})},r})(Tp);const vb=S_;var T_=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),O_=(function(a){T_(r,a);function r(t){var e=this,n=t.em,i=t.config,o=i.scripts,s=i.styles;return e=a.call(this,t,{scripts:o,styles:s})||this,e.set("frames",new vb(t)),e.on("change:zoom",e.onZoomChange),e.on("change:x change:y",e.onCoordsChange),e.on("change:pointer change:pointerScreen",e.onPointerChange),e.listenTo(n,"change:device ".concat(h1.update),e.updateDevice),e.listenTo(n,Vg.select,e._pageUpdated),e}return r.prototype.defaults=function(){return{frame:"",frames:[],rulers:!1,zoom:100,x:0,y:0,scripts:[],styles:[],pointer:jg,pointerScreen:jg}},Object.defineProperty(r.prototype,"frames",{get:function(){return this.get("frames")},enumerable:!1,configurable:!0}),r.prototype.init=function(){var t=this.em,e=t.Pages._initPage();this.set("frames",e.getFrames()),this.updateDevice({frame:e.getMainFrame()})},r.prototype._pageUpdated=function(t,e){var n=this.em;n.setSelected(),n.get("readyCanvas")&&n.stopDefault(),e==null||e.getFrames().map(function(i){i.disable(),i._emitUnload()}),this.set("frames",t.getFrames()),this.updateDevice({frame:t.getMainFrame()})},r.prototype.updateDevice=function(t){t===void 0&&(t={});var e=this.em,n=e.getDeviceModel(),i=t.frame||e.getCurrentFrameModel();if(i&&n){var o=n.attributes,s=o.width,c=o.height,d=o.minHeight;i.set({width:s,height:c,minHeight:d},{noUndo:1})}},r.prototype.onZoomChange=function(t,e,n){var i=this,o=i.em,s=i.module,c=this.get("zoom");c<1&&this.set("zoom",1),o.trigger(s.events.zoom,{options:n})},r.prototype.onCoordsChange=function(){var t=this,e=t.em,n=t.module;e.trigger(n.events.coords)},r.prototype.onPointerChange=function(){var t=this,e=t.em,n=t.module;e.trigger(n.events.pointer)},r.prototype.getPointerCoords=function(t){t===void 0&&(t=Jc.World);var e=this.attributes,n=e.pointer,i=e.pointerScreen;return t===Jc.World?n:i},r})(Ea);const E_=O_;
780var A_=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),kn;(function(a){a.Select="select",a.Hover="hover",a.Spacing="spacing",a.Target="target",a.Resize="resize"})(kn||(kn={}));var M_=(function(a){A_(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.defaults=function(){return{id:"",type:""}},Object.defineProperty(r.prototype,"type",{get:function(){return this.get("type")||""},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"component",{get:function(){var t,e=this.get("component");return e||((t=this.get("componentView"))===null||t===void 0?void 0:t.model)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"componentView",{get:function(){var t,e=this.get("componentView");return e||((t=this.get("component"))===null||t===void 0?void 0:t.getView())},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"el",{get:function(){var t;return(t=this.componentView)===null||t===void 0?void 0:t.el},enumerable:!1,configurable:!0}),r.prototype.getBoxRect=function(t){var e=this,n=e.el,i=e.em,o=i.Canvas.getCanvasView(),s=this.attributes.boxRect;return s?(0,E.isFunction)(s)?s():s:n&&o?o.getElBoxRect(n,t):{x:0,y:0,width:0,height:0}},r.prototype.getStyle=function(t){t===void 0&&(t={});var e=t.boxRect||this.getBoxRect(t),n=e.width,i=e.height,o=e.x,s=e.y;return{width:"".concat(n,"px"),height:"".concat(i,"px"),top:"0",left:"0",position:"absolute",translate:"".concat(o,"px ").concat(s,"px")}},r.prototype.isType=function(t){return this.type===t},r})(Ea);const mb=M_;var P_=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),L_=(function(a){P_(r,a);function r(t,e){e===void 0&&(e=[]);var n=a.call(this,t,e,mb)||this;n.on("add",n.onAdd),n.on("change",n.onChange),n.on("remove",n.onRemove);var i=n.em;n.refreshDbn=(0,E.debounce)(function(){return n.refresh()},0);var o="".concat(te.resize," styleable:change ").concat(te.input," ").concat(te.update," frame:updated undo redo");return n.listenTo(i,o,function(){return n.refreshDbn()}),n}return Object.defineProperty(r.prototype,"em",{get:function(){return this.module.em},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"events",{get:function(){return this.module.events},enumerable:!1,configurable:!0}),r.prototype.refresh=function(){var t=this,e=t.em,n=t.events;e.trigger(n.spot)},r.prototype.onAdd=function(t){this.__trgEvent(this.events.spotAdd,{spot:t})},r.prototype.onChange=function(t){this.__trgEvent(this.events.spotUpdate,{spot:t})},r.prototype.onRemove=function(t){this.__trgEvent(this.events.spotRemove,{spot:t})},r.prototype.__trgEvent=function(t,e){var n=this.module,i=n.em;i.trigger(t,e),this.refreshDbn()},r})(Tp);const D_=L_;var I_=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),j_=(function(a){I_(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"pfx",{get:function(){return this.ppfx+this.config.stylePrefix||""}
780,enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"ppfx",{get:function(){return this.em.config.stylePrefix||""},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"module",{get:function(){var t,e;return(e=(t=this.model)===null||t===void 0?void 0:t.module)!==null&&e!==void 0?e:this.collection.module},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"em",{get:function(){return this.module.em},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"config",{get:function(){return this.module.config},enumerable:!1,configurable:!0}),r.prototype.preinitialize=function(t){this.className=""},r})(Ze);const Ei=j_;var N_=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),R_=(function(a){N_(r,a);function r(t,e){t===void 0&&(t={}),e===void 0&&(e=!1);var n=a.call(this,t)||this;return n.itemsView="",n.itemType="type",n.reuseView=!1,n.viewCollection=[],e&&n.listenTo(n.collection,"add",n.addTo),n}return r.prototype.addTo=function(t){this.add(t)},r.prototype.itemViewNotFound=function(t){},r.prototype.add=function(t,e){var n=this,i=n.reuseView,o=n.viewCollection,s=e||null,c=t.get(this.itemType),d;t.view&&i?d=t.view:d=this.renderView(t,c),o.push(d);var f=d.render().el;s?s.appendChild(f):this.$el.append(f)},r.prototype.render=function(){var t=this,e=document.createDocumentFragment();return this.clearItems(),this.$el.empty(),this.collection.length&&this.collection.each(function(n){return t.add(n,e)}),this.$el.append(e),this.onRender(),this},r.prototype.onRender=function(){},r.prototype.onRemoveBefore=function(t,e){},r.prototype.onRemove=function(t,e){},r.prototype.remove=function(t){t===void 0&&(t={});var e=this.viewCollection;return this.onRemoveBefore(e,t),this.clearItems(),Ze.prototype.remove.apply(this,t),this.onRemove(e,t),this},r.prototype.clearItems=function(){this.viewCollection},r})(Ei);const B_=R_;var gl;(function(a){a.mount="css:mount",a.mountBefore="css:mount:before"})(gl||(gl={}));var V_=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),H_=(function(a){V_(r,a);function r(t){t===void 0&&(t={});var e=a.call(this,t)||this;e.config=t.config||{};var n=e.model;return e.listenTo(n,"change",e.render),e.listenTo(n,"destroy remove",e.remove),e.listenTo(n.get("selectors"),"change",e.render),n.setView(e),e}return Object.defineProperty(r.prototype,"frameView",{get:function(){return this.config.frameView},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"em",{get:function(){return this.model.em},enumerable:!1,configurable:!0}),r.prototype.remove=function(){return a.prototype.remove.call(this),this.model.removeView(this),this},r.prototype.updateStyles=function(){this.render()},r.prototype.tagName=function(){return"style"},r.prototype.render=function(){var t=this,e=t.model,n=t.el,i=t.em,o=e.get("important"),s=e.toCSS({important:o}),c={rule:e,ruleView:this,css:s};return i==null||i.trigger(gl.mountBefore,c),n.innerHTML=c.css,i==null||i.trigger(gl.mount,c),this},r})(Ze);const g1=H_;var F_=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}
780r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),$_=(function(a){F_(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype._createElement=function(){return document.createTextNode("")},r.prototype.render=function(){var t=this.model,e=t.get("important");return this.el.textContent=t.getDeclaration({important:e}),this},r})(g1);const z_=$_;var U_=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),bh=function(a,r){return"".concat(a).concat(r?"-".concat(parseFloat(r)):"")},W_=(function(a){U_(r,a);function r(t){var e=a.call(this,t)||this;(0,E.bindAll)(e,"sortRules");var n=t.config||{};e.atRules={},e.config=n,e.em=n.em,e.pfx=n.stylePrefix||"",e.className=e.pfx+"rules";var i=e.collection;return e.listenTo(i,"add",e.addTo),e.listenTo(i,"reset",e.render),e}return r.prototype.addTo=function(t){this.addToCollection(t)},r.prototype.addToCollection=function(t,e){if(this.renderStarted){var n=e||null,i=this.config,o={model:t,config:i},s,c;if(t.get("atRuleType")==="keyframes"){var d=t.getAtRule(),f=this.atRules[d];if(!f){var g=document.createElement("style");f=document.createTextNode(""),g.appendChild(document.createTextNode("".concat(d,"{"))),g.appendChild(f),g.appendChild(document.createTextNode("}")),this.atRules[d]=f,s=g}c=new z_(o),f.appendData(c.render().el.textContent)}else c=new g1(o),s=c.render().el;var m=this.className,y=t.get("mediaText"),x=bh(m),w=x;if(y&&(w=bh(m,this.getMediaWidth(y))),s){var k=n||this.el,S=void 0;try{S=k.querySelector("#".concat(w))}catch{}S||(S=k.querySelector("#".concat(x))),S==null||S.appendChild(s)}return s}},r.prototype.getMediaWidth=function(t){return t&&t.replace("(".concat(this.em.getConfig().mediaCondition,": "),"").replace(")","")},r.prototype.sortRules=function(t,e){var n=this.em,i=(n.getConfig().mediaCondition||"").indexOf("min-width")!==-1;if(!i)return 0;var o=i?t:e,s=i?e:t;return o-s},r.prototype.render=function(){var t=this;this.renderStarted=!0,this.atRules={};var e=this,n=e.em,i=e.$el,o=e.collection,s=this.className,c=document.createDocumentFragment();i.empty();var d=n.Devices.getAll().pluck("priority").sort(this.sortRules);return d.every(function(f){return f})&&d.unshift(0),d.forEach(function(f){return c.appendChild(Vi("div",{id:bh(s,f)}))}),o.each(function(f){return t.addToCollection(f,c)}),i.append(c),i.attr("class",s),this},r})(Ze);const Fg=W_;var jr;(function(a){a.variable="data-variable",a.condition="data-condition",a.conditionTrue="data-condition-true-content",a.conditionFalse="data-condition-false-content",a.collection="data-collection",a.collectionItem="data-collection-item"})(jr||(jr={}));var vl;(function(a){a.rootData="__rootData"})(vl||(vl={}));var tf;(function(a){a.string="string",a.number="number",a.boolean="boolean",a.date="date",a.json="json",a.relation="relation"})(tf||(tf={}));var is;(function(a){a.add="data:add",a.addBefore="data:add:before",a.remove="data:remove",a.removeBefore="data:remove:before",a.update="data:update",a.path="data:path",a.pathSource="data:pathSource:",a.providerLoad="data:provider:load",a.providerLoadBefore="data:provider:load:before",a.providerLoadError="data:provider:load:error",a.providerLoadAll="data:provider:loadAll",a.providerLoadAllBefore="data:provider:loadAll:before",a.all="data"})(is||(is={}));var Z_=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}
780r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),ef=function(){return ef=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},ef.apply(this,arguments)},Aa=jr.variable,q_=(function(a){Z_(r,a);function r(t,e){var n=a.call(this,t,e)||this;return n.em=e.em,n.collectionsStateMap=e.collectionsStateMap,n}return r.prototype.defaults=function(){return{type:Aa,defaultValue:"",path:"",collectionId:void 0,variableType:void 0,asPlainText:void 0}},Object.defineProperty(r.prototype,"path",{get:function(){var t;return(t=this.get("path"))!==null&&t!==void 0?t:""},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"defaultValue",{get:function(){var t;return(t=this.get("defaultValue"))!==null&&t!==void 0?t:""},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"collectionId",{get:function(){return this.get("collectionId")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"variableType",{get:function(){return this.get("variableType")},enumerable:!1,configurable:!0}),r.prototype.resolvesFromCollection=function(){return!!this.collectionId},r.prototype.updateCollectionsStateMap=function(t){this.collectionsStateMap=t,this.trigger("change")},r.prototype.getResolverPath=function(){var t;if(this.resolvesFromCollection()){var e=this.resolveCollectionVariable();return yl(e)?(t=e.path)!==null&&t!==void 0?t:"":!1}return this.path},r.prototype.toJSON=function(t){var e=this.defaults(),n=a.prototype.toJSON.call(this,t),i=Object.fromEntries(Object.entries(n).filter(function(o){var s=o[0],c=o[1];return c!==e[s]}));return ef(ef({},i),{type:Aa})},r.prototype.getDataValue=function(){var t={em:this.em,collectionsStateMap:this.collectionsStateMap};return r.resolveDataResolver({path:this.path,defaultValue:this.defaultValue,collectionId:this.collectionId,variableType:this.variableType},t)},r.resolveDataSourceVariable=function(t,e){var n,i;return e.em.DataSources.getValue((n=t.path)!==null&&n!==void 0?n:"",(i=t.defaultValue)!==null&&i!==void 0?i:"")},r.resolveDataResolver=function(t,e){var n,i,o,s;if(t.collectionId){var c=r.resolveCollectionVariable(t,e);return yl(c)?r.resolveDataSourceVariable({path:(n=c.path)!==null&&n!==void 0?n:"",defaultValue:(i=t.defaultValue)!==null&&i!==void 0?i:""},{em:e.em}):c}return r.resolveDataSourceVariable({path:(o=t.path)!==null&&o!==void 0?o:"",defaultValue:(s=t.defaultValue)!==null&&s!==void 0?s:""},{em:e.em})},r.prototype.resolveCollectionVariable=function(){var t=this,e=t.em,n=t.collectionsStateMap;return r.resolveCollectionVariable(this.attributes,{em:e,collectionsStateMap:n})},r.resolveCollectionVariable=function(t,e){var n=t.collectionId,i=n===void 0?"":n,o=t.variableType,s=t.path,c=t.defaultValue,d=c===void 0?"":c,f=e.collectionsStateMap,g=e.em,m=f==null?void 0:f[i];return!m||!o?d:g.DataSources.getValue("".concat(o).concat(s?".".concat(s):""),d,{context:m})},r})(We);const Cl=q_;var K_=(function(){function a(r){var t=this;this.listeners=[],this.model=new We,this.onChange=function(){var e=t.resolver.getDataValue();t.onUpdate(e)},this.em=r.em,this.resolver=r.resolver,this.onUpdate=r.onUpdate,this.listenToResolver()}return a.prototype.createListener=function(r,t,e){return e===void 0&&(e=this.onChange),{obj:r,event:t,callback:e}},a.prototype.listenToResolver=function(){var r=this,t=r.resolver,e=r.model;this.removeListeners();var n=[],i=t.attributes.type;switch(i){case Aa:n=this.listenToDataVariable(t);break;case ml:n=this.listenToConditionalVariable(t);break}n.forEach(function(o){return e.listenTo(o.obj,o.event,o.callback)}),this.listeners=n},a.prototype.listenToConditionalVariable=function(r){return[{obj:r,event:Pu,callback:this.onChange}]},a.prototype.listenToDataVariable=function(r){var t=this,e=this.em,n=[],i=function(){t.listenToResolver(),t.onChange()};n.push(this.createListener(r,"change",i));var o=r.getResolverPath();if(!o)return n;var s=e.DataSources.all,c=Yc(o||""),d=c[0],f=c[1],g=c.slice(2),m=e.DataSources.fromPath(o),y=m[0],x=m[1],w=!!y&&f!==void 0&&y.isRecordIndex(f),k=function(L){return L.id===d&&i()};if(n.push(this.createListener(s,"add remove",k),this.createListener(s,"reset",i)),!y)return n;if(f===void 0)return n.push(this.createListener(y.records,"add remove reset change",i
780)),n;if(x){var S=function(L){return t.onRecordChange(L,g)};n.push(this.createListener(x,"change",S))}if(w)return n.push(this.createListener(y.records,"add remove reset",i)),n;var A=function(L){return"".concat(L.id)==="".concat(f)&&i()};return n.push(this.createListener(y.records,"add remove",A),this.createListener(y.records,"reset",i)),n},a.prototype.onRecordChange=function(r,t){var e=Object.keys(r.changedAttributes()||{}),n=t[0];(!e.length||e.includes("id")||!t.length||n&&e.includes(n))&&this.onChange()},a.prototype.removeListeners=function(){var r=this;this.listeners.forEach(function(t){return r.model.stopListening(t.obj,t.event,t.callback)}),this.listeners=[]},a.prototype.destroy=function(){this.removeListeners()},a})();const cd=K_;var m0=(function(){function a(r,t,e){this.operator=r,this.statements=t,this.opts=e}return a.prototype.evaluate=function(){var r=this,t=this.statements.map(function(e){var n=new yb({condition:e},r.opts);return n.evaluate()});return this.operator.evaluate(t)},a})(),Op=(function(){function a(r,t){this.operationString=r,this.em=t.em}return a.prototype.getOperations=function(){return h6(this.operationsEnum)},a})(),G_=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Qc;(function(a){a.equals="equals",a.isTruthy="isTruthy",a.isFalsy="isFalsy",a.isDefined="isDefined",a.isNull="isNull",a.isUndefined="isUndefined",a.isArray="isArray",a.isObject="isObject",a.isString="isString",a.isNumber="isNumber",a.isBoolean="isBoolean",a.isDefaultValue="isDefaultValue"})(Qc||(Qc={}));var Y_=(function(a){G_(r,a);function r(){var t=a!==null&&a.apply(this,arguments)||this;return t.operationsEnum=Qc,t}return r.prototype.evaluate=function(t,e){var n;switch(this.operationString){case"equals":return t===e;case"isTruthy":return!!t;case"isFalsy":return!t;case"isDefined":return t!=null;case"isNull":return t===null;case"isUndefined":return t===void 0;case"isArray":return Array.isArray(t);case"isObject":return typeof t=="object"&&t!==null;case"isString":return typeof t=="string";case"isNumber":return typeof t=="number";case"isBoolean":return typeof t=="boolean";case"isDefaultValue":return t instanceof Cl&&t.get("defaultValue")===e;default:return(n=this.em)===null||n===void 0||n.logWarning("Unsupported generic operation: ".concat(this.operationString)),!1}},r})(Op),X_=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Jo;(function(a){a.and="and",a.or="or",a.xor="xor"})(Jo||(Jo={}));var J_=(function(a){X_(r,a);function r(){var t=a!==null&&a.apply(this,arguments)||this;return t.operationsEnum=Jo,t}return r.prototype.evaluate=function(t){if(!(t!=null&&t.length))return!1;switch(this.operationString){case Jo.and:return t.every(Boolean);case Jo.or:return t.some(Boolean);case Jo.xor:return t.filter(Boolean).length===1;default:return this.em.logWarning("Unsupported boolean operation: ".concat(this.operationString)),!1}},r})(Op),Q_=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}
780r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Ji;(function(a){a.greaterThan=">",a.lessThan="<",a.greaterThanOrEqual=">=",a.lessThanOrEqual="<=",a.equals="=",a.notEquals="!="})(Ji||(Ji={}));var t6=(function(a){Q_(r,a);function r(){var t=a!==null&&a.apply(this,arguments)||this;return t.operationsEnum=Ji,t}return r.prototype.evaluate=function(t,e){if(typeof t!="number")return!1;switch(this.operationString){case Ji.greaterThan:return t>e;case Ji.lessThan:return t<e;case Ji.greaterThanOrEqual:return t>=e;case Ji.lessThanOrEqual:return t<=e;case Ji.equals:return t===e;case Ji.notEquals:return t!==e;default:return this.em.logWarning("Unsupported number operation: ".concat(this.operationString)),!1}},r})(Op),e6=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Ci;(function(a){a.contains="contains",a.startsWith="startsWith",a.endsWith="endsWith",a.matchesRegex="matchesRegex",a.equalsIgnoreCase="equalsIgnoreCase",a.trimEquals="trimEquals"})(Ci||(Ci={}));var r6=(function(a){e6(r,a);function r(){var t=a!==null&&a.apply(this,arguments)||this;return t.operationsEnum=Ci,t}return r.prototype.evaluate=function(t,e){if(typeof t!="string")return!1;switch(this.operationString){case Ci.contains:return t.includes(e);case Ci.startsWith:return t.startsWith(e);case Ci.endsWith:return t.endsWith(e);case Ci.matchesRegex:return e||this.em.logWarning("Regex pattern must be provided."),new RegExp(e??"").test(t);case Ci.equalsIgnoreCase:return t.toLowerCase()===e.toLowerCase();case Ci.trimEquals:return t.trim()===e.trim();default:return this.em.logWarning("Unsupported string operation: ".concat(this.operationString)),!1}},r})(Op),n6=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),yb=(function(a){n6(r,a);function r(t,e){var n,i=a.call(this,t)||this;return i.collectionsStateMap={},i.em=e.em,i.collectionsStateMap=(n=e.collectionsStateMap)!==null&&n!==void 0?n:{},i}return r.prototype.evaluate=function(){var t=this.get("condition");if(!t||(0,E.isBoolean)(t))return!!t;var e=this.getOperator();return e?e.evaluate(this.getResolvedLeftValue(),this.getResolvedRightValue()):!1},r.prototype.getDependentDataVariables=function(){var t=this.get("condition");return t?this.extractDataVariables(t):[]},r.prototype.getOperations=function(){var t=this.getOperator();return!t||t instanceof m0?[]:t.getOperations()},r.prototype.updateCollectionStateMap=function(t){this.collectionsStateMap=t},r.prototype.getOperator=function(){var t={em:this.em,collectionsStateMap:this.collectionsStateMap},e=this.get("condition");if(!(!e||(0,E.isBoolean)(e))){var n;if(this.isLogicGroup(e)){var i=e.logicalOperator,o=e.statements,s=new J_(i,t);n=new m0(s,o,t)}if(this.isExpression(e)){var c=e.left,s=e.operator,d=nf(c,t);n=this.resolveOperator(d,s)}return n}},r.prototype.resolveOperator=function(t,e){var n=this.em;if(this.isOperatorInEnum(e,Qc))return new Y_(e,{em:n});if(typeof t=="number")return new t6(e,{em:n});if(typeof t=="string")return new r6(e,{em:n})},r.prototype.extractDataVariables=function(t){var e=this,n=[];return this.isExpression(t)?(yl(t.left)&&n.push(t.left),yl(t.right)&&n.push(t.right)):this.isLogicGroup(t)&&t.statements.forEach(function(i){return n.push.apply(n,e.extractDataVariables(i))}),n},r.prototype.isLogicGroup=function(t){return t&&typeof t.logicalOperator<"u"&&Array.isArray(t.statements)},r.prototype.isExpression=function(t){return t&&typeof t.left<"u"&&typeof t.operator=="string"},r.prototype.isOperatorInEnum=function(t,e){return Object.values(e).includes(t)},r.prototype.resolveExpressionSide=function(t){var e=this.get("condition"),n=this,i=n.em,o=n.collectionsStateMap;if(!e||typeof e=="boolean")return e;if(e&&typeof e=="object"&&t in e){var s=e[t];return nf(s,{em:i,collectionsStateMap:o})}},r.prototype.getResolvedLeftValue=function(){return this.resolveExpressionSide("left")},r.prototype.getResolvedRightValue=function(){return this.resolveExpressionSide("right")},r.prototype.toJSON=function(t){var e=this.get("condition");if(typeof e=="object"){var n=JSON.parse(JSON.stringify(e));return n}return e},r}
780)(We),i6=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),ml="data-condition",a6="data-condition-evaluation-changed",Pu="data-condition-output-changed",bb=(function(a){i6(r,a);function r(t,e){var n,i=a.call(this,t,e)||this;i.collectionsStateMap={},i.resolverListeners=[],i._previousEvaluationResult=null,i.em=e.em,i.collectionsStateMap=(n=e.collectionsStateMap)!==null&&n!==void 0?n:{};var o=t.condition,s=o===void 0?{}:o,c=new yb({condition:s},{em:i.em});return i._conditionEvaluator=c,i.listenToDataVariables(),i.listenToPropsChange(),i}return r.prototype.defaults=function(){return{type:ml,condition:{left:"",operator:Ci.equalsIgnoreCase,right:""},ifTrue:{},ifFalse:{}}},r.prototype.getCondition=function(){return this._conditionEvaluator.get("condition")},r.prototype.getIfTrue=function(){return this.get("ifTrue")},r.prototype.getIfFalse=function(){return this.get("ifFalse")},r.prototype.getOperations=function(){return this._conditionEvaluator.getOperations()},r.prototype.setCondition=function(t){this.set("condition",t),this._conditionEvaluator.set("condition",t),this.trigger(Pu,this.getDataValue())},r.prototype.setIfTrue=function(t){this.set("ifTrue",t)},r.prototype.setIfFalse=function(t){this.set("ifFalse",t)},r.prototype.isTrue=function(){return this._conditionEvaluator.evaluate()},r.prototype.getDataValue=function(t){t===void 0&&(t=!1);var e=this,n=e.em,i=e.collectionsStateMap,o={em:n,collectionsStateMap:i},s=this.getIfTrue(),c=this.getIfFalse(),d=this.isTrue();return t?d?s:c:nf(d?s:c,o)},r.prototype.resolvesFromCollection=function(){return!1},r.prototype.updateCollectionsStateMap=function(t){this.collectionsStateMap=t,this._conditionEvaluator.updateCollectionStateMap(t),this.listenToDataVariables(),this.emitConditionEvaluationChange()},r.prototype.listenToPropsChange=function(){var t=this;this.on("change:condition",this.handleConditionChange.bind(this)),this.on("change:condition change:ifTrue change:ifFalse",function(){t.listenToDataVariables()})},r.prototype.handleConditionChange=function(){this.setCondition(this.get("condition"))},r.prototype.listenToDataVariables=function(){this.cleanupListeners(),this.setupConditionDataVariableListeners(),this.setupOutputDataVariableListeners()},r.prototype.setupConditionDataVariableListeners=function(){var t=this;
780this._conditionEvaluator.getDependentDataVariables().forEach(function(e){t.addListener(e,function(){t.emitConditionEvaluationChange()})})},r.prototype.setupOutputDataVariableListeners=function(){var t=this.isTrue();this.setupOutputVariableListener(this.getIfTrue(),t),this.setupOutputVariableListener(this.getIfFalse(),!t)},r.prototype.setupOutputVariableListener=function(t,e){var n=this;yl(t)&&this.addListener(t,function(){e&&n.trigger(Pu,t)})},r.prototype.addListener=function(t,e){var n=new cd({em:this.em,resolver:new Cl(t,{em:this.em,collectionsStateMap:this.collectionsStateMap}),onUpdate:e});this.resolverListeners.push(n)},r.prototype.emitConditionEvaluationChange=function(){var t=this.isTrue();this._previousEvaluationResult!==t&&(this._previousEvaluationResult=t,this.trigger(a6,t),this.emitOutputValueChange())},r.prototype.emitOutputValueChange=function(){var t=this.getDataValue();this.trigger(Pu,t)},r.prototype.cleanupListeners=function(){this.resolverListeners.forEach(function(t){return t.destroy()}),this.resolverListeners=[]},r.prototype.toJSON=function(){var t=this.getIfTrue(),e=this.getIfFalse();return{type:ml,condition:this._conditionEvaluator.toJSON(),ifTrue:t,ifFalse:e}},r})(We),gc="dataResolver",qn=function(){return qn=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},qn.apply(this,arguments)},xb=function(a,r,t){if(t||arguments.length===2)for(var e=0,n=r.length,i;e<n;e++)(i||!(e in r))&&(i||(i=Array.prototype.slice.call(r,0,e)),i[e]=r[e]);return a.concat(i||Array.prototype.slice.call(r))},Qo=function(a){return(0,E.isArray)(a.get(In))},rf=function(a){return!!a.get(Kn)},Hi=function(a){return!!(Qo(a)||rf(a))},ss=function(a){var r=a.parent();return Hi(a)&&(!r||!Hi(r))},ac=function(a){a.__symbReady||(a.on("change",a.__upSymbProps),a.__symbReady=!0)},Oi=function(a){var r=a.get(Kn);if(r&&(0,E.isString)(r)){var t=a.__getAllById()[r];t?(r=t,a.set(Kn,t)):r=0}return r||void 0},Xn=function(a){var r=a==null?void 0:a.get(In);return r&&(0,E.isArray)(r)&&(r.forEach(function(t,e){t&&(0,E.isString)(t)&&(r[e]=a.__getAllById()[t])}),r=r.filter(function(t){return t&&!(0,E.isString)(t)})),r||void 0},td=function(a,r){r===void 0&&(r="");var t=a==null?void 0:a.get(ts),e=r.split(":")[0],n=r!==e?[r,e]:[r];return t===!0||(0,E.isArray)(t)&&n.some(function(i){return t.indexOf(i)>=0})},Ta=function(a,r){r===void 0&&(r={});var t=[],e=r.changed;if(r.fromInstance||r.noPropagate||r.fromUndo||e&&td(a,e))return t;var n=Xn(a)||[],i=Oi(a),o=i?xb([i],Xn(i)||[],!0):n;return t=o.filter(function(s){return s!==a}).filter(function(s){return!(e&&td(s,e))}),t},ed=function(a,r){for(var t=a,e=a.parent(r);e&&Hi(e);)t=e,e=e.parent(r);return t},Ep=function(a,r){r===void 0&&(r={});var t=Oi(a),e=t&&Xn(t);!r.skipRefs&&e&&t.set(In,e.filter(function(n){return n!==a})),a.set(Kn,0),a.components().forEach(function(n){return Ep(n,r)})},Lc=function(a,r,t,e){e===void 0&&(e={});var n=Oi(a),i=Xn(a);!n&&!i||a.em.log(r,{model:a,toUp:t,context:"symbols",opts:e})},o6=function(a,r){r===void 0&&(r={});var t=a.changedAttributes();if(t){var e=a.dataResolverWatchers.getProps(t);if(s6(e),!so(e)){var n=Ta(a,r);e=y0(e,a),Lc(a,"props",n,{opts:r,changed:e}),n.forEach(function(i){var o=y0(e,i);i.set(o,qn({fromInstance:a},r))})}}},s6=function(a){var r,t,e=["status","open",In,Kn,ts];e.forEach(function(n){return delete a[n]}),(r=a.attributes)===null||r===void 0||delete r.id,so((t=a.attributes)!==null&&t!==void 0?t:{})&&delete a.attributes},y0=function(a,r){var t=qn({},a);return(0,E.keys)(a).forEach(function(e){d6(a,e,r)||delete t[e]}),t},l6=function(a){return a?Object.values(a).some(function(r){return!!(r!=null&&r.collectionId)}):!1},c6=function(a,r){var t;switch(r){case"attributes":case"style":return l6(a[r]);default:return!!(!((t=a[r])===null||t===void 0)&&t.collectionId)}},d6=function(a,r,t){var e=c6(a,r);return!td(t,r)||e},u6=function(a,r){r===void 0&&(r={});var t=Ta(a,r);Lc(a,"classes",t,{opts:r}),t.forEach(function(e){e.set("classes",a.get("classes"),{fromInstance:a})}),a.__changesUp(r)},wb=function(a,r,t,e){var n=e||t||{},i=n.fromInstance,o=n.fromUndo,s={fromInstance:i,fromUndo:o},c=r.opt.temporary;if(e)if(e.add){var y=[],x=!!Xn(a),f=Ta(a,qn(qn({}
780,s),{changed:"components:add"}));if(f.length){var w=Oi(r);y=Xn(w||r)||[],y=xb([],y,!0),y.push(w||r)}!c&&Lc(a,"add",f,{opts:e,addedInstances:y.map(function(z){return z.cid}),added:r.cid}),f.forEach(function(z){var B=ed(z),X=y.filter(function(F){var st=ed(F,{prev:1});return B&&st&&st===B})[0],Z=X||r.clone({symbol:!0,symbolInv:x});z.append(Z,qn({fromInstance:a},e))})}else{var k=Oi(r);if(k&&!e.temporary&&k.set(In,Xn(k).filter(function(et){return et!==r})),!ss(r)&&!e.skipRefsUp){var S="components:remove",A=e.index,L=r.parent(),D=qn({fromInstance:r},e),W=ss(r),j=function(z){var B=z.parent();B&&!td(B,S)&&z.remove(D)},f=td(L,S)?[]:Ta(r,s);W&&(f=L&&Ta(L,qn(qn({},s),{changed:S})),j=function(z){var B=z.components().at(A);B&&B.remove(qn({fromInstance:L},D))}),!c&&Lc(a,"remove",f,{opts:e,removed:r.cid,isSymbNested:W}),f.forEach(j)}}else{var d=r,f=Ta(a,qn(qn({},s),{changed:"components:reset"})),g=d.models,m=new Set;Lc(a,"reset",f,{components:g}),f.forEach(function(et){var z=et.components(),B=g.map(function(X,Z){return a.get(gc)?X.clone({symbol:Hi(X)}):!Hi(X)||m.has(X)?(m.add(X),X.clone({symbol:!0})):z.at(Z)});z.reset(B,qn({fromInstance:a},t))})}a.__changesUp(n)},f6="id",_b=function(a){return typeof a=="object"&&a!==null};function sl(a){return _b(a)&&(a.type===Aa||a.type===ml)}function yl(a){return _b(a)&&a.type===Aa}function nf(a,r){return sl(a)?(yl(a)&&Cl.resolveDataResolver(a,r),kb(a,r)):a}function Cb(a,r){var t,e=a.type,n;switch(e){case Aa:n=new Cl(a,r);break;case ml:{n=new bb(a,r);break}default:(t=r.em)===null||t===void 0||t.logWarning("Unsupported resolver type: ".concat(e));return}return n}function kb(a,r){var t=Cb(a,r);return t==null?void 0:t.getDataValue()}var p6=function(a){return!!a&&[jr.collectionItem,jr.conditionTrue,jr.conditionFalse].includes(a)};function h6(a){return Object.keys(a).filter(function(r){return isNaN(Number(r))}).map(function(r){return a[r]})}function g6(a){var r=a.collectionsStateMap;if(!r)return!1;var t=Object.keys(r);if(!t.length)return!1;var e=Oi(a);if(!e||e===a)return!1;var n=e.collectionsStateMap,i=Object.keys(n),o=i.every(function(s){return t.includes(s)});return o}function v6(a){var r=Oi(a);return r?r.getId():""}function m6(a){var r=g6(a),t=r?v6(a):null;return{shouldSync:r,itemId:t}}var Nr;(function(a){a[a.element=1]="element",a[a.text=3]="text",a[a.comment=8]="comment",a[a.document=9]="document",a[a.fragment=11]="fragment"})(Nr||(Nr={}));var rd;(function(a){a.html="http://www.w3.org/1999/xhtml"})(rd||(rd={}));var oo;(function(a){a.html="parse:html",a.htmlRoot="parse:html:root",a.htmlBefore="parse:html:before",a.css="parse:css",a.cssBefore="parse:css:before",a.all="parse"})(oo||(oo={}));var Sb="text/html",y6=Sb;const b6=(function(a,r){r===void 0&&(r={});var t=new DOMParser,e=r.htmlType||y6,n=e===Sb,i=n?a:"<div>".concat(a,"</div>"),o=t.parseFromString(i,e),s;if(n){if(r.asDocument)return o;var c=o.head,d=o.body,f=c.querySelectorAll("script");(0,E.each)(f,function(m){return d.appendChild(m)});var g=[];(0,E.each)(c.children,function(m){return g.push(m)}),(0,E.each)(g,function(m,y){return d.insertBefore(m,d.children[y])}),s=d}else s=o.firstChild;return s});var x6=function(a){var r=a.tagName||"";return r&&(!a.namespaceURI||a.namespaceURI===rd.html)?r.toUpperCase():r},Tb=function(a){var r,t;return a.nodeType===Nr.text||a.nodeType===Nr.comment?(r=a.textContent)!==null&&r!==void 0?r:"":a.textContent&&!(!((t=a.childNodes)===null||t===void 0)&&t.length)?a.textContent:(a.childNodes||[]).map(Tb).join("")},w6=function(a){var r,t=((r=a.attributes)===null||r===void 0?void 0:r.class)||"",e=t.split(/\s+/).filter(Boolean);return{value:t,length:e.length,contains:function(n){return e.includes(n)},item:function(n){return e[n]||null},toString:function(){return t}}},b0=(function(){function a(r,t){this.node=r,this.parent=t}return Object.defineProperty(a.prototype,"nodeType",{get:function(){return this.node.nodeType},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"tagName",{get:function(){return x6(this.node)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"nodeName",{get:function(){return this.tagName}
780,enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"namespaceURI",{get:function(){return this.node.namespaceURI},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"parentNode",{get:function(){return this.parent},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"childNodes",{get:function(){var r=this;return(this.node.childNodes||[]).map(function(t){return new r.constructor(t,r)})},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"children",{get:function(){return this.childNodes.filter(function(r){return r.nodeType===1})},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"textContent",{get:function(){return Tb(this.node)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"nodeValue",{get:function(){return this.nodeType===Nr.text||this.nodeType===Nr.comment?this.textContent:null},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"className",{get:function(){return this.getAttribute("class")||""},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"classList",{get:function(){return w6(this.node)},enumerable:!1,configurable:!0}),a.prototype.getAttribute=function(r){var t;return(t=this.node.attributes)===null||t===void 0?void 0:t[r]},a.prototype.hasAttribute=function(r){return Object.prototype.hasOwnProperty.call(this.node.attributes||{},r)},a})(),x0=function(a){return a?a(b0):b0},Wo=function(a,r,t){if(t||arguments.length===2)for(var e=0,n=r.length,i;e<n;e++)(i||!(e in r))&&(i||(i=Array.prototype.slice.call(r,0,e)),i[e]=r[e]);return a.concat(i||Array.prototype.slice.call(r))},ia=function(a){return a.childNodes||[]},Dc=function(a){return"".concat(a.tagName||"").toLowerCase()},w0=function(a){return a.__domNode||a},Ob=function(a){var r,t=a,e=((r=t.content)===null||r===void 0?void 0:r.childNodes)||a.childNodes||[];return Array.from(e)},af=function(a,r){return r===void 0&&(r=[]),{nodeType:Nr.element,tagName:a,namespaceURI:rd.html,childNodes:r}},_6=function(a){return{nodeType:Nr.fragment,childNodes:a}},C6=function(a,r){var t=af(r);return a.childNodes=Wo(Wo([],ia(a),!0),[t],!1),t},Lu=function(a,r){return ia(a).find(function(t){return Dc(t)===r})},Eb=function(a){var r,t;return a.nodeType===Nr.text||a.nodeType===Nr.comment?(r=a.textContent)!==null&&r!==void 0?r:"":a.textContent&&!(!((t=a.childNodes)===null||t===void 0)&&t.length)?a.textContent:ia(a).map(function(e){return Eb(e)}).join("")},_0=function(a,r){var t=[],e=function(n){var i;if(!((i=n.childNodes)===null||i===void 0)&&i.length){var o=[];n.childNodes.forEach(function(s){if(Dc(s)===r){t.push(s);return}e(s),o.push(s)}),n.childNodes=o}};return e(a),t},Ab=function(a,r){var t=a.attributes||{},e={};(0,E.each)(t,function(n,i){var o="".concat(n),s=!r.allowUnsafeAttr&&i.startsWith("on"),c=!r.allowUnsafeAttrValue&&o.startsWith("javascript:");!s&&!c&&(e[i]=o)}),Object.keys(e).length?a.attributes=e:delete a.attributes,ia(a).forEach(function(n){return Ab(n,r)})},Mb=function(a){return{nodeType:Nr.document,__domNode:a,__doctype:X5(a.doctype),childNodes:a.documentElement?[v1(a.documentElement)]:[]}},v1=function(a){var r,t=a.nodeType;if(t===Nr.document)return Mb(a);var e=a,n={nodeType:t,tagName:e.tagName||"",namespaceURI:e.namespaceURI||void 0,__domNode:a};if((t===Nr.text||t===Nr.comment)&&(n.textContent=(r=a.textContent)!==null&&r!==void 0?r:""),t===Nr.element){var i=a,o=i.attributes||[];o.length&&(n.attributes={});for(var s=[],c=0;c<o.length;c++){var d=o[c];n.attributes[d.nodeName]=d.nodeValue||"",d.nodeValue===""&&i[d.nodeName]===!0&&s.push(d.nodeName)}s.length&&(n.__boolAttributes=s);var f=Ob(i);f.length&&(n.childNodes=f.map(function(g){return v1(g)})),n.__selfClosing="".concat(i.outerHTML||"").slice(-2)==="/>"}return n},k6=function(a){return{nodeType:Nr.fragment,__domNode:a,childNodes:Ob(a).map(function(r){return v1(r)})}},C0=function(a){var r=a.flatMap(function(w){return w.nodeType===Nr.fragment?ia(w):[w]}),t=r.find(function(w){return w.nodeType===Nr.document});if(t)return t;var e=r.find(function(w){return Dc(w)==="html"}),n={nodeType:Nr.document,childNodes:[]};if(e){var i=r.filter(function(w){return w!==e});if(i.length){var o=Lu(e,"body")||C6(e,"body");o.childNodes=Wo(Wo([],ia(o),!0),i,!0)}return n.childNodes=[e],n}var s=Wo([],r,!0),c=s.findIndex(function(w){return Dc(w)==="head"}),d=s.findIndex(function(w){return Dc(w)==="body"}),f=c>=0?s.splice(c,1)[0]:void 0,g=d>=0?s.splice(d>c&&c>=0?d-1:d,1)[0]:void 0,m=af("html"),y=[];f&&y.push(f);var x=g||af("body");return x.childNodes=Wo(Wo([],ia(x),!0),s,!0),y.push(x),m.childNodes=y,n.childNodes=[m],n},di=function(){return di=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];
780for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},di.apply(this,arguments)},S6="data-gjs-",T6=function(a,r){return Object.prototype.hasOwnProperty.call(a,r)},O6=(function(){function a(r,t){t===void 0&&(t={}),this.em=r,this.config=t,this.compTypes=[],this.modelAttrStart=S6}return a.prototype.parseAttributeValue=function(r){if(typeof r!="string")return r;var t=(r==null?void 0:r.length)||0,e=r==null?void 0:r.substring(0,1),n=r==null?void 0:r.substring(t-1),i=r==="true"?!0:r==="false"?!1:r;try{i=e=="{"&&n=="}"||e=="["&&n=="]"?JSON.parse(i):i}catch{}return i},a.prototype.getPropAttribute=function(r,t){var e=r.replace(this.modelAttrStart,""),n=this.parseAttributeValue(t);return{name:e,value:n}},a.prototype.shouldConvertAttributeValue=function(r,t,e,n){if(n){if(n===!0)return!0;if((0,E.isArray)(n))return n.includes(r);if((0,E.isFunction)(n))return!!n({attribute:r,value:t,node:e})}else return!1;return!1},a.prototype.splitPropsFromAttr=function(r){var t=this;r===void 0&&(r={});var e={},n={};return(0,E.each)(r,function(i,o){if(o.indexOf(t.modelAttrStart)===0){var s=t.getPropAttribute(o,i);e[s.name]=s.value}else n[o]=i}),{props:e,attrs:n}},a.prototype.parseStyle=function(r){for(var t={};r.indexOf("/*")>=0;){var e=r.indexOf("/*"),n=r.indexOf("*/"),i=n>-1?n+2:void 0;r=r.replace(r.slice(e,i),"")}for(var o=r.split(";"),s=0,c=o.length;s<c;s++){var d=o[s].trim();if(d){var f=d.split(":"),g=f[0].trim(),m=f.slice(1).join(":").trim();t[g]?((0,E.isArray)(t[g])||(t[g]=[t[g]]),t[g].push(m)):t[g]=m}}return t},a.prototype.parseClass=function(r){for(var t=[],e=r.split(" "),n=0,i=e.length;n<i;n++){var o=e[n].trim();o&&t.push(o)}return t},a.prototype.parseNodeAttr=function(r,t,e){var n=this,i,o;e===void 0&&(e=this.config.optionsHtml||{});var s=t||{},c=r.attributes||{},d=!!e.convertDataGjsAttributesHyphens,f=e.convertAttributeValues,g=d&&!!s.type&&(0,E.result)((o=(i=this.em)===null||i===void 0?void 0:i.Components.getType(s.type))===null||o===void 0?void 0:o.model.prototype,"defaults")||{},m=w0(r);return(0,E.each)(c,function(y,x){var w,k,S=y;if(x=="style")s.style=n.parseStyle("".concat(S));else if(x=="class")s.classes=n.parseClass("".concat(S));else{if(x=="contenteditable")return;if(x.indexOf(n.modelAttrStart)===0){var A=n.getPropAttribute(x,"".concat(S)),L=A.name;if(d&&!(L in g)){var D=Q5(L);L=D in g?D:L}s[L]=A.value}else S===""&&(((w=r.__domNode)===null||w===void 0?void 0:w[x])===!0||!((k=r.__boolAttributes)===null||k===void 0)&&k.includes(x))&&(S=!0),n.shouldConvertAttributeValue(x,S,m,f)&&(S=n.parseAttributeValue(S)),s.attributes||(s.attributes={}),s.attributes[x]=S}}),s},a.prototype.detectNode=function(r,t){var e;t===void 0&&(t={});var n=this.compTypes,i={};if(n){var o=(e=r.attributes)===null||e===void 0?void 0:e["".concat(this.modelAttrStart,"type")];if(o)i={type:o};else for(var s=0;s<n.length;s++){var c=n[s],d=c.model,f=d.isParsedNode?d.isParsedNode(r,t):void 0;if(d.isParsedNode||(f=t.__parsedMode?d.isComponent(this.__getSyntheticNode(r,t),t):d.isComponent(w0(r),t)),f){typeof f!="object"&&(f={type:c.id}),i=f;break}}}return i},a.prototype.parseNode=function(r,t){t===void 0&&(t={});var e=ia(r),n=e.length,i=this.detectNode(r,t);if(!i.tagName&&i.tagName!==""){var o=r.tagName||"",s=r.namespaceURI||"";i.tagName=o&&s===rd.html?o.toLowerCase():o}if(i=this.parseNodeAttr(r,i,t),!n&&r.__selfClosing&&(i.void=!0),n&&!i.components&&!t.skipChildren){var c=e[0];
780n===1&&c.nodeType===Nr.text?(!i.type&&(i.type="text"),i.components={type:"textnode",content:c.textContent}):i.components=this.parseNodes(r,di(di({},t),{inSvg:t.inSvg||i.type==="svg"}))}var d=i.components;if(!i.type&&(d!=null&&d.length)){for(var f=this.config,g=f.textTypes,m=g===void 0?[]:g,y=f.textTags,x=y===void 0?[]:y,w=!0,k=!1,S=0;S<d.length;S++){var A=d[S],L=A.type;if(!m.includes(L)&&!x.includes(A.tagName)){w=!1;break}L==="textnode"&&(k=!0)}w&&k&&(i.type="text")}return i},a.prototype.parseNodes=function(r,t){t===void 0&&(t={});for(var e=[],n=ia(r),i=n.length,o=0;o<i;o++){var s=n[o],c=e[e.length-1],d=this.parseNode(s,t);if(d.type==="textnode"){if((c==null?void 0:c.type)==="textnode"){c.content+=d.content;continue}if(!t.keepEmptyTextNodes){var f=s.textContent||"",g=o===0||o===i-1,m=f.includes(` 781`);if(f!=" "&&!f.trim()&&(g||m))continue}}!d.tagName&&(0,E.isUndefined)(d.content)||e.push(d)}return e},a.prototype.parse=function(r,t,e){var n;e===void 0&&(e={});var i=this,o=i.config,s=i.em,c=(s==null?void 0:s.get("Config"))||{},d=s==null?void 0:s.Parser,f={html:[]},g=this.__getParserCodeId(e),m=di(di(di({},o.optionsHtml),{htmlType:((n=o.optionsHtml)===null||n===void 0?void 0:n.htmlType)||o.htmlType}),e),y=di(di({},m),{parserCode:g,asDocument:this.__checkAsDocument(r,m)}),x=di(di({},o),y),w=y.preParser,k=y.asDocument,S={input:(0,E.isFunction)(w)?w(r,{editor:s==null?void 0:s.getEditor()}):r};d==null||d.__emitEvent(oo.htmlBefore,S);var A=S.input,L=this.__parseInput(A,y,x,g),D=L.root,W=L.isParsedMode,j=(d==null?void 0:d.getConfig())||o,et=di(di({},x),{__parsedMode:W,__syntheticElementCtor:x0(j.customSyntheticElement)}),z=(0,E.isUndefined)(c.allowScripts)?y.allowScripts:c.allowScripts;if(z||_0(D,"script"),(!y.allowUnsafeAttr||!y.allowUnsafeAttrValue)&&Ab(D,y),t){var B=_0(D,"style"),X=B.map(function(Q){return Eb(Q)}).join("");X&&(f.css=t.parse(X))}d==null||d.__emitEvent(oo.htmlRoot,{input:A,root:D});var Z=[];if(k){var F=D.nodeType===Nr.document?D:C0(ia(D)),st=Lu(F,"html"),q=st&&Lu(st,"head"),Ct=st&&Lu(st,"body")||af("body");f.doctype=F.__doctype,q&&(f.head=this.parseNode(q,et)),st&&(f.root=this.parseNodeAttr(st,void 0,et)),Z=this.parseNode(Ct,et)}else{var _=this.parseNodes(D,et);Z=_.length===1&&!x.returnArray?_[0]:_}return f.html=Z,d==null||d.__emitEvent(oo.html,{input:A,output:f,options:y}),f},a.prototype.__getSyntheticNode=function(r,t){var e,n,i=((n=(e=this.em)===null||e===void 0?void 0:e.Parser)===null||n===void 0?void 0:n.getConfig())||this.config,o=t.__syntheticElementCtor||x0(i.customSyntheticElement);return new o(r)},a.prototype.__parseInput=function(r,t,e,n){var i,o,s,c=n?(o=(i=this.em)===null||i===void 0?void 0:i.Parser)===null||o===void 0?void 0:o.getParserCode(n):void 0,d=t.asDocument;if(n){if(!c)throw new Error('Parser code "'.concat(n,'" not found'));var f=c.parse(r,{editor:(s=this.em)===null||s===void 0?void 0:s.getEditor(),options:t}),g=(0,E.isArray)(f)?f:[f];return{root:d?C0(g):_6(g),isParsedMode:!0}}var m=(0,E.isFunction)(e.parserHtml)?e.parserHtml(r,t):b6(r,t);return{root:d?Mb(m):k6(m),isParsedMode:!1}},a.prototype.__getParserCodeId=function(r){var t,e;return T6(r,"parserCode")?r.parserCode||"":((e=(t=this.em)===null||t===void 0?void 0:t.Parser)===null||e===void 0?void 0:e.parserCode)||this.config.parserCode||""},a.prototype.__checkAsDocument=function(r,t){if(Xr(t.asDocument))return t.asDocument;if((0,E.isFunction)(t.detectDocument))return!!t.detectDocument(r);if(t.detectDocument)return r.toLowerCase().trim().startsWith("<!doctype")},a})();const Pb=O6;var Ic=function(){return Ic=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Ic.apply(this,arguments)},xh=(function(){function a(r,t,e,n){this.model=r,this.updateFn=t,this.kind=e,this.resolverListeners={},this.em=n.em}return a.prototype.bindModel=function(r){this.model=r},a.prototype.setDataValues=function(r,t){t===void 0&&(t={}),r=this.applyImportPolicy(r,t);var e=t.skipWatcherUpdates||t.fromDataSource;return e||this.removeListeners(),this.addDataValues(r,t)},a.prototype.addDataValues=function(r,t){if(t===void 0&&(t={}),!r)return{};var e=this.applyImportPolicy(r,t);if(!e)return{};var n=this.evaluateValues(e),i=t.skipWatcherUpdates||t.fromDataSource;return i||this.updateListeners(e),n},a.prototype.onCollectionsStateMapUpdate=function(){var r=this,t=this.getValuesResolvingFromCollections();if(t.length){var e=this.addDataValues(this.getValuesOrResolver(Object.fromEntries(t.map(function(n){return[n,""]}))));Object.entries(e).forEach(function(n){var i=n[0],o=n[1];return r.updateFn(r.model,i,o)})}},Object.defineProperty(a.prototype,"collectionsStateMap",{get:function(){var r,t=this.model;return(r=t==null?void 0:t.collectionsStateMap)!==null&&r!==void 0?r:{}}
781,enumerable:!1,configurable:!0}),a.prototype.updateListeners=function(r){var t=this,e=this,n=e.em,i=e.collectionsStateMap;this.removeListeners(Object.keys(r));for(var o=Object.keys(r),s=function(f){var g=o[f],m=r[g];if(!sl(m))return"continue";var y=Cb(m,{em:n,collectionsStateMap:i});c.resolverListeners[g]=new cd({em:n,resolver:y,onUpdate:function(x){return t.updateFn(t.model,g,x)}})},c=this,d=0;d<o.length;d++)s(d)},a.prototype.evaluateValues=function(r){for(var t=this,e=t.em,n=t.collectionsStateMap,i=Ic({},r),o=Object.keys(r),s=0;s<o.length;s++){var c=o[s],d=r[c];sl(d)&&(i[c]=kb(d,{em:e,collectionsStateMap:n}))}return i},a.prototype.applyImportPolicy=function(r,t){var e=this,n,i;t===void 0&&(t={});var o=t.parsedImportSource,s=(n=t.dataBindingImportPolicy)!==null&&n!==void 0?n:(i=this.em)===null||i===void 0?void 0:i.DataSources.config.dataBindingImportPolicy;if(!r||!o||s==="overwrite")return r;var c=Ic({},r),d=o;return Object.keys(c).forEach(function(f){var g=e.resolverListeners[f],m=c[f];if(!(!g||sl(m))){var y=g.resolver.toJSON(),x="path"in y?y.path:void 0,w={target:e.model,kind:e.kind,source:d,key:f,value:m,resolvedValue:g.resolver.getDataValue(),resolver:y,path:x},k=e.resolveImportAction(s,w);if(k!=="overwrite"){if(k==="update"){var S=e.tryUpdateDataSource(x,m);S||e.warnImportFallback(f,d,x)}c[f]=y}}}),c},a.prototype.resolveImportAction=function(r,t){var e=(0,E.isFunction)(r)?r(t):r;return e==="skip"||e==="update"||e==="overwrite"?e:"overwrite"},a.prototype.tryUpdateDataSource=function(r,t){if(!r)return!1;try{return this.em.DataSources.setValue(r,t)}catch{return!1}},a.prototype.warnImportFallback=function(r,t,e){this.em.logWarning('[DataSources]: Failed to update the data source bound to "'.concat(r,'" during ').concat(t," import; keeping the existing binding."),{key:r,source:t,path:e})},a.prototype.removeListeners=function(r){var t=this,e=r||Object.keys(this.resolverListeners);return e.forEach(function(n){var i,o;t.resolverListeners[n]&&((o=(i=t.resolverListeners[n]).destroy)===null||o===void 0||o.call(i),delete t.resolverListeners[n])}),e},a.prototype.getValuesOrResolver=function(r){if(!r)return{};for(var t=Ic({},r),e=Object.keys(t),n=0;n<e.length;n++){var i=e[n],o=this.resolverListeners[i];o&&(t[i]=o.resolver.toJSON())}return t},a.prototype.getAllDataResolvers=function(){for(var r={},t=Object.keys(this.resolverListeners),e=0;e<t.length;e++){var n=t[e];r[n]=this.resolverListeners[n].resolver.toJSON()}return r},a.prototype.hasDataResolvers=function(){return Object.keys(this.resolverListeners).length>0},a.prototype.getValuesResolvingFromCollections=function(){var r=this,t=Object.keys(this.resolverListeners).filter(function(e){return r.resolverListeners[e].resolver.resolvesFromCollection()});return t},a.prototype.destroy=function(){this.removeListeners()},a})(),ui=function(){return ui=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},ui.apply(this,arguments)},E6=function(a,r,t){if(t||arguments.length===2)for(var e=0,n=r.length,i;e<n;e++)(i||!(e in r))&&(i||(i=Array.prototype.slice.call(r,0,e)),i[e]=r[e]);return a.concat(i||Array.prototype.slice.call(r))},Du={fromDataSource:!0,avoidStore:!0},Vs="__data_values",A6=(function(){function a(r,t){var e=this;this.model=r,this.options=t,this.onPropertyUpdate=function(n,i,o){n==null||n.set(i,o,Du)},this.onAttributeUpdate=function(n,i,o){var s;e.isComponent(n)&&(n==null||n.addAttributes((s={},s[i]=o,s),Du))},this.onStyleUpdate=function(n,i,o){var s;n==null||n.addStyle((s={},s[i]=o,s),ui(ui({},Du),{partial:!0,avoidStore:!0}))},this.propertyWatcher=new xh(r,this.onPropertyUpdate,"property",t),this.attributeWatcher=new xh(r,this.onAttributeUpdate,"attribute",t),this.styleWatcher=new xh(r,this.onStyleUpdate,"style",t)}return a.prototype.bindModel=function(r){this.model=r,this.watchers.forEach(function(t){return t.bindModel(r)}),this.updateSymbolOverride()},a.prototype.addProps=function(r,t){var e;t===void 0&&(t={});var n=(e=r[Vs])!==null&&e!==void 0?e:{},i=this.filterProps(r),o=ui(ui({},r),this.propertyWatcher.addDataValues(ui(ui({},i),n.props),t));this.shouldProcessProp("attributes",r,n)&&(o.attributes=this.processAttributes(r,n,t)),this.shouldProcessProp("style",r,n)&&(o.style=this.processStyles(r,n,t));var s=t.skipWatcherUpdates||t.fromDataSource;return s||(this.updateSymbolOverride(),o[Vs]={props:this.propertyWatcher.getAllDataResolvers(),style:this.styleWatcher.getAllDataResolvers(),attributes:this.attributeWatcher.getAllDataResolvers()}),o},a.prototype.shouldResolveProps=function(r){if(this.hasDataResolvers()||this.hasDataValues(r[Vs])||this.hasResolverValue(r.attributes)||this.hasResolverValue(r.style))return!0;for(var t=this.excludedFromEvaluation,e=Object.keys(r),n=0;n<e.length;n++){var i=e[n];if(!t.includes(i)&&sl(r[i]))return!0}return!1},a.prototype.getProps=function(r){var t=this.getValueOrResolver("props",r),e=ui({},t);return delete e[Vs],(0,E.isEmpty)(r.attributes)||(e.attributes=this.getValueOrResolver("attributes",r.attributes)),(0,E.isObject)(r.style)&&!(0,E.isEmpty)(r.style)&&(e.style=this.getValueOrResolver("styles",r.style)),e},a.prototype.getValueOrResolver=function(r,t){var e;switch(r){case"props":e=this.propertyWatcher;break;case"styles":e=this.styleWatcher;break;case"attributes":e=this.attributeWatcher;break;default:{var n=this.options.em;return n==null||n.logError("Invalid target '".concat(r,"'. Must be 'props', 'styles', or 'attributes'.")),{}}}return t?e.getValuesOrResolver(t):e.getAllDataResolvers()},a.prototype.removeAttributes=function(r){this.attributeWatcher.removeListeners(r),this.updateSymbolOverride()},a.prototype.disableStyles=function(){this.styleWatcher.removeListeners(),this.styleWatcher.destroy()},a.prototype.onCollectionsStateMapUpdate=function(){this.watchers.forEac
781h(function(r){return r.onCollectionsStateMapUpdate()})},a.prototype.destroy=function(){this.watchers.forEach(function(r){return r.destroy()})},Object.defineProperty(a.prototype,"watchers",{get:function(){return[this.propertyWatcher,this.styleWatcher,this.attributeWatcher]},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"excludedFromEvaluation",{get:function(){return["components","dataResolver","status","state","open",ts,Vs]},enumerable:!1,configurable:!0}),a.prototype.hasDataResolvers=function(){return this.watchers.some(function(r){return r.hasDataResolvers()})},a.prototype.hasDataValues=function(r){return Object.values(r||{}).some(function(t){return(0,E.isObject)(t)&&!(0,E.isEmpty)(t)})},a.prototype.hasResolverValue=function(r){return(0,E.isObject)(r)?Object.values(r).some(sl):!1},a.prototype.isComponent=function(r){return r instanceof Mr},a.prototype.shouldProcessProp=function(r,t,e){var n=r==="attributes"?this.attributeWatcher:this.styleWatcher,i=e[r],o=!!t[r],s=i&&Object.keys(i).length>0,c=i&&Object.keys(n.getAllDataResolvers()).length>0;return o||s||c},a.prototype.updateSymbolOverride=function(){var r,t=this.model;if(!(!this.isComponent(t)||!Hi(t))){var e=!!Object.keys((r=t==null?void 0:t.collectionsStateMap)!==null&&r!==void 0?r:{}).length;if(e){var n=this.propertyWatcher.getValuesResolvingFromCollections(),i=this.attributeWatcher.getValuesResolvingFromCollections(),o=E6(["locked","layerable"],n,!0),s=Object.keys(i).length;s&&o.push("attributes");var c=Ta(t);
781c.forEach(function(d){d.setSymbolOverride(o,{fromDataSource:!0})}),t.setSymbolOverride(o,{fromDataSource:!0})}}},a.prototype.filterProps=function(r){var t=this.excludedFromEvaluation,e=Object.fromEntries(Object.entries(r).filter(function(n){var i=n[0];return!t.includes(i)}));return e},a.prototype.processAttributes=function(r,t,e){var n;return e===void 0&&(e={}),this.attributeWatcher.setDataValues(ui(ui({},r.attributes),(n=t.attributes)!==null&&n!==void 0?n:{}),e)},a.prototype.processStyles=function(r,t,e){var n;return e===void 0&&(e={}),typeof r=="string"?(this.styleWatcher.removeListeners(),r):this.styleWatcher.setDataValues(ui(ui({},r.style),(n=t.style)!==null&&n!==void 0?n:{}),e)},a})(),M6=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),an=function(){return an=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},an.apply(this,arguments)},P6=new Pb,$g=function(a){return(0,E.isArray)(a)?a[a.length-1]:a},L6=(function(a){M6(r,a);function r(t,e){e===void 0&&(e={});var n=this,i=e.em,o=new A6(void 0,{em:i});return n=a.call(this,t,an(an({},e),{dataResolverWatchers:o}))||this,n.views=[],n.collectionsStateMap={},o.bindModel(n),n.dataResolverWatchers=o,n.em=e.em,n.opt=e,n}return r.prototype.get=function(t,e){return e!=null&&e.skipResolve?this.dataResolverWatchers.getValueOrResolver("props")[t]:a.prototype.get.call(this,t)},r.prototype.set=function(t,e,n){var i,o,s={skipWatcherUpdates:!1,fromDataSource:!1},c,d;typeof t=="object"?(c=t,d=e||s):typeof t=="string"?(c=(i={},i[t]=e,i),d=n||s):(c={},d=s),this.dataResolverWatchers=(o=this.dataResolverWatchers)!==null&&o!==void 0?o:d.dataResolverWatchers;var f=this.dataResolverWatchers.shouldResolveProps(c),g=f?this.dataResolverWatchers.addProps(c,d):c;return a.prototype.set.call(this,g,d)},r.prototype.parseStyle=function(t){return P6.parseStyle(t)},r.prototype.extendStyle=function(t){return an(an({},this.__getStyleForExtend()),t)},r.prototype.__getStyleForExtend=function(){return this.getStyle("",{skipResolve:!0})},r.prototype.__getStyleForUpdate=function(t){return this.getStyle("",{skipResolve:!0})},r.prototype.__normalizeStyle=function(t,e){return t},r.prototype.__onStyleUpdate=function(t,e){},r.prototype.__getStyleResult=function(t,e,n){var i=!e||e==="";return i?t:t[e]},r.prototype.getStyle=function(t,e){e===void 0&&(e={});var n=(0,E.isObject)(t),i=n?"":t,o=n?t:e,s=this.get("style"),c=(0,E.isString)(s)?this.parseStyle(s):(0,E.isObject)(s)?an({},s):{};if(delete c.__p,!o.skipResolve)return this.__getStyleResult(c,i,o);var d=this.dataResolverWatchers.getValueOrResolver("styles",c);return this.__getStyleResult(d,i,o)},r.prototype.setStyle=function(t,e){var n=this;t===void 0&&(t={}),e===void 0&&(e={}),(0,E.isString)(t)&&(t=this.parseStyle(t)),t=this.__normalizeStyle(t,e);var i=this.__getStyleForUpdate(e);e.partial||e.avoidStore?(e.avoidStore=!0,t.__p=!0):delete t.__p;var o=an({},t),s=an({},o);(0,E.keys)(s).forEach(function(f){if(s[f]===""){delete s[f];return}}),this.set({style:s},e),s=this.attributes.style;var c=Object.keys(Ju(i,o)),d=c.reduce(function(f,g){var m;return an(an({},f),(m={},m[g]=s[g],m))},{});return delete d.__p,(0,E.keys)(d).forEach(function(f){var g=n.em;e.noEvent||(n.trigger("change:style:".concat(f)),g&&(g.trigger("styleable:change",n,f,e),g.trigger("styleable:change:".concat(f),n,f,e)))}),this.__onStyleUpdate(i,e),s},r.prototype.getView=function(t){var e=this,n=e.em,i=e.view,o=this.views||[],s=t||(n==null?void 0:n.getCurrentFrameModel());return s?o.find(function(c){return c.frameView===s.view}):o[0]||i},r.prototype.setView=function(t){var e=this.views;!e.includes(t)&&e.push(t)},r.prototype.removeView=function(t){var e=this.views;e.splice(e.indexOf(t),1)},r.prototype.updateView=function(){this.views.forEach(function(t){return t.updateStyles()})},r.prototype.addStyle=function(t,e,n){var i;e===void 0&&(e=""),n===void 0&&(n={}),typeof t=="string"?t=(i={},i[t]=e,i):n=e||{},n.addStyle=t,t=this.extendStyle(t),this.setStyle(t,n)},r.prototype.removeStyle=function(t){var e=this.getStyle();delete e[t],this.setStyle(e)},r.prototype.styleToString=function(t){t===void 0&&(t={});
781var e=t.style||this.getStyle("",t);return this.__styleToString(e,t)},r.prototype.__styleToString=function(t,e){e===void 0&&(e={});var n=[];for(var i in t){var o=i.substring(0,2),s=o==="__";if(!s){var c=this.__stylePropToString(i,t[i],e);c&&n.push(c)}}return n.join("")},r.prototype.__stylePropToString=function(t,e,n){n===void 0&&(n={});var i=[],o=n.important,s=(0,E.isArray)(o)?o.indexOf(t)>=0:o,c=(0,E.isArray)(e)?e:[e];return c.forEach(function(d){var f="".concat(d).concat(s?" !important":"");f&&i.push("".concat(t,":").concat(f,";"))}),i.join("")},r.prototype.getSelectors=function(){return this.get("selectors")||this.get("classes")},r.prototype.getSelectorsString=function(t){return this.selectorsToString?this.selectorsToString(t):this.getSelectors().getFullString()},r.prototype.onCollectionsStateMapUpdate=function(t){this.collectionsStateMap=t,this.dataResolverWatchers.onCollectionsStateMapUpdate()},r.prototype.clone=function(t,e){var n=this.dataResolverWatchers.getProps(this.attributes),i=an(an({},n),t),o=an(an({},this.opt),e),s=this.constructor;return new s(i,o)},r.prototype.toJSON=function(t,e){if(t!=null&&t.fromUndo)return an({},a.prototype.toJSON.call(this,t));var n=an(an({},this.attributes),e),i=this.dataResolverWatchers.getProps(n);return i},r})(We);const Lb=L6;var D6=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Qd=1,wh=2,Db=(function(a){D6(r,a);function r(t,e){e===void 0&&(e={});var n=a.call(this,t,e)||this,i=e.config,o=i===void 0?{}:i,s=n.get("name"),c=n.get("label");s?c||n.set("label",s):n.set("name",c);var d=n.get("name"),f=o.escapeName,g=f?f(d):r.escapeName(d);return n.set("name",g),n.em=e.em,n}return r.prototype.defaults=function(){return{name:"",label:"",type:Qd,active:!0,private:!1,protected:!1,_undo:!0}},r.prototype.isId=function(){return this.get("type")===wh},r.prototype.isClass=function(){return this.get("type")===Qd},r.prototype.getFullName=function(t){t===void 0&&(t={});var e=t.escape,n=this.get("name"),i="";switch(this.get("type")){case Qd:i=".";break;case wh:i="#";break}return i+(e?e(n):n)},r.prototype.toString=function(){return this.getFullName()},r.prototype.getName=function(){return this.get("name")||""},r.prototype.getLabel=function(){return this.get("label")||""},r.prototype.setLabel=function(t){return this.set("label",t)},r.prototype.getActive=function(){return!!this.get("active")},r.prototype.setActive=function(t){return this.set("active",t)},r.prototype.toJSON=function(t){t===void 0&&(t={});var e=this.em,n=We.prototype.toJSON.call(this,[t]),i=(0,E.result)(this,"defaults");if(e!=null&&e.getConfig().avoidDefaults){(0,E.forEach)(i,function(s,c){n[c]===s&&delete n[c]}),n.label===n.name&&delete n.label;var o=(0,E.keys)(n).length;o===1&&n.name&&(n=n.name),o===2&&n.name&&n.type&&(n=this.getFullName())}return n},r.escapeName=function(t){return"".concat(t).trim().replace(/\s+/g,"-")},r.TYPE_CLASS=Qd,r.TYPE_ID=wh,r})(We);const Rn=Db;Db.prototype.idAttribute="name";var I6=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Ib=function(a,r){return a.reduce(function(t,e,n){return t.concat(Ib(a.slice(n+1),"".concat(r).concat(e)))},[r])},jb=(function(a){I6(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.modelId=function(t){return"".concat(t.name,"_").concat(t.type||Rn.TYPE_CLASS)},r.prototype.getStyleable=function(){return(0,E.filter)(this.models,function(t){return t.getActive()&&!t.get("private")})},r.prototype.getValid=function(t){var e=t===void 0?{}:t,n=e.noDisabled;return(0,E.filter)(this.models,function(i){return!i.get("private")}).filter(function(i){return n?i.get("active"):1})},r.prototype.getFullString=function(t,e){e===void 0&&(e={});var n=[],i=t||this;
781return i.forEach(function(o){return n.push(o.getFullName(e))}),e.sort&&n.sort(),n.join("").trim()},r.prototype.getFullName=function(t){t===void 0&&(t={});var e=t.combination,n=t.array,i=[],o=this.map(function(s){return s.getFullName(t)}).sort();return e?o.forEach(function(s,c){i=i.concat(Ib(o.slice(c+1),s))}):i=o,n?i:e?i.join(","):i.join("")},r})(Rr);const ro=jb;jb.prototype.model=Rn;var j6=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),k0=function(a,r,t){if(t||arguments.length===2)for(var e=0,n=r.length,i;e<n;e++)(i||!(e in r))&&(i||(i=Array.prototype.slice.call(r,0,e)),i[e]=r[e]);return a.concat(i||Array.prototype.slice.call(r))},N6=(function(a){j6(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.defaults=function(){return{id:"",label:"",open:!0,attributes:{}}},r.prototype.getId=function(){return this.get("id")},r.prototype.getLabel=function(){return this.get("label")},r})(We);const dd=N6;function Nb(a){var r=new Set,t=new Map,e={items:[]};a.forEach(function(i){var o=i.category;if(o){r.add(o);var s=t.get(o);s?s.push(i):t.set(o,[i])}else e.items.push(i)});var n=Array.from(r).map(function(i){return{category:i,items:t.get(i)||[]}});return k0(k0([],n,!0),[e],!1)}var R6=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),S0="category",Rb=(function(a){R6(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.initCategory=function(t){var e=t.get(S0),n=e instanceof dd;if(e&&!n){(0,E.isString)(e)?e={id:e,label:e}:Cn(e)&&!e.id&&(e.id=e.label);var i=this.getCategories().add(e);return t.set(S0,i,{silent:!0}),i}else if(n){var i=e;return this.getCategories().add(i),i}},r})(Rr),B6=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Bb=(function(a){B6(r,a);function r(t,e){e===void 0&&(e={});var n=a.call(this,t,e)||this,i=e.events,o=e.em,s=i==null?void 0:i.update;return o&&s&&n.on("change",function(c,d){return o.trigger(s,{category:c,changes:c.changedAttributes(),options:d})}),n}return r.prototype.add=function(t,e){var n=(0,E.isArray)(t)?t:[t];return n.forEach(function(i){return i&&(i.id=Dg("".concat(i.id)))}),a.prototype.add.call(this,t,e)},r.prototype.get=function(t){return a.prototype.get.call(this,(0,E.isString)(t)?Dg(t):t)},r})(Rr);const of=Bb;Bb.prototype.model=dd;var sf;(function(a){a.select="trait:select",a.value="trait:value",a.update="trait:update",a.categoryUpdate="trait:category:update",a.custom="trait:custom",a.all="trait"})(sf||(sf={}));const Iu=sf;var V6=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}
781r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),lf=function(){return lf=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},lf.apply(this,arguments)},H6=(function(a){V6(r,a);function r(t,e){var n=a.call(this,t)||this,i=n.attributes,o=i.target,s=i.name;return!n.get("id")&&n.set("id",s),o&&n.setTarget(o),n.em=e,n}return r.prototype.defaults=function(){return{type:"text",label:"",name:"",unit:"",step:1,value:"",default:"",placeholder:"",category:"",changeProp:!1,options:[]}},Object.defineProperty(r.prototype,"parent",{get:function(){return this.collection},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"category",{get:function(){var t=this.get("category");return t instanceof dd?t:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"component",{get:function(){return this.target},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"changeProp",{get:function(){return!!this.get("changeProp")},enumerable:!1,configurable:!0}),r.prototype.setTarget=function(t){if(t){var e=this.attributes,n=e.name,i=e.changeProp,o=e.value,s=e.getValue;this.target=t,this.unset("target");var c=i?"change:".concat(n):"change:attributes:".concat(n);this.listenTo(t,c,this.targetUpdated);var d=o||(s?void 0:this.getValue());!(0,E.isUndefined)(d)&&this.set({value:d},{silent:!0})}},r.prototype.getId=function(){return this.get("id")},r.prototype.getType=function(){return this.get("type")},r.prototype.getName=function(){return this.get("name")},r.prototype.getLabel=function(t){var e;t===void 0&&(t={});var n=t.locale,i=n===void 0?!0:n,o=this.getId(),s=this.get("label")||this.getName();return i&&((e=this.em)===null||e===void 0?void 0:e.t("traitManager.traits.labels.".concat(o)))||s},r.prototype.getValue=function(t){return this.getTargetValue(t)},r.prototype.setValue=function(t,e){var n=this;e===void 0&&(e={});var i=this,o=i.component,s=i.em,c=e.partial,d={},f=this.attributes.setValue;if(f){f({value:t,component:o,editor:s==null?void 0:s.getEditor(),trait:this,partial:!!c,options:e,emitUpdate:function(){return n.targetUpdated()}});return}c&&(d.avoidStore=!0),this.setTargetValue(t,d)},r.prototype.getDefault=function(){return this.get("default")},r.prototype.getOptions=function(){return this.get("options")||[]},r.prototype.getOption=function(t){var e=this,n=Xr(t)?t:this.getValue();return this.getOptions().filter(function(i){return e.getOptionId(i)===n})[0]},r.prototype.getOptionId=function(t){return t.id||t.value},r.prototype.getOptionLabel=function(t,e){var n;e===void 0&&(e={});var i=e.locale,o=i===void 0?!0:i,s=(0,E.isString)(t)?this.getOption(t):t,c=this.getOptionId(s),d=s.label||s.name||c,f=this.getName();return o&&((n=this.em)===null||n===void 0?void 0:n.t("traitManager.traits.options.".concat(f,".").concat(c)))||d},r.prototype.getCategoryLabel=function(t){t===void 0&&(t={});var e=this,n=e.em,i=e.category,o=t.locale,s=o===void 0?!0:o,c=i==null?void 0:i.getId(),d=i==null?void 0:i.getLabel();return s&&(n==null?void 0:n.t("traitManager.categories.".concat(c)))||d||""},r.prototype.runCommand=function(){var t=this.em,e=this.attributes.command;if(e&&t)return(0,E.isString)(e)?t.Commands.run(e):e(t.Editor,this)},r.prototype.props=function(){return this.attributes},r.prototype.targetUpdated=function(){var t=this,e=t.component,n=t.em,i=this.getTargetValue({useType:!0});this.set({value:i},{fromTarget:1});var o={trait:this,component:e,value:i};e.trigger(Iu.value,o),n==null||n.trigger(Iu.value,o),n==null||n.trigger(Iu.update,o)},r.prototype.getTargetValue=function(t){var e;t===void 0&&(t={});var n=this,i=n.component,o=n.em,s=this.getName(),c=this.get("getValue"),d,f=t.skipResolve;if(c?d=c({editor:o==null?void 0:o.getEditor(),trait:this,component:i}):this.changeProp?(d=i.get(s),f&&(d=i.dataResolverWatchers.getValueOrResolver("props",(e={},e[s]=d,e))[s])):d=i.getAttributes({skipResolve:f})[s],t.useType){var g=this.getType();if(g==="checkbox"){var m=this.attributes,y=m.valueTrue,x=m.valueFalse;!(0,E.isUndefined)(y)&&y===d?d=!0:!(0,E.isUndefined)(x)&&x===d&&(d=!1)}}return(0,E.isUndefined)(d)?"":d},r.prototype.setTargetValue=function(t,e){var n;e===void 0&&(e={});var i=this,o=i.component,s=i.attributes,c=this.getName();if(!(0,E.isUndefined)(t)){var d=t;if(t==="false"?d=!1:t==="true"&&(d=!0),this.getType()==="checkbox"){var f=s.valueTrue,g
781=s.valueFalse;d&&!(0,E.isUndefined)(f)&&(d=f),!d&&!(0,E.isUndefined)(g)&&(d=g)}var m=(n={},n[c]=d,n);m.__p=e.avoidStore?null:void 0,this.changeProp?o.set(m,e):o.addAttributes(m,e)}},r.prototype.setValueFromInput=function(t,e,n){e===void 0&&(e=!0),n===void 0&&(n={});var i={value:t};this.set(i,lf(lf({},n),{avoidStore:1})),e&&(this.set("value","",n),this.set(i,n))},r.prototype.getInitValue=function(){var t=this.component,e=this.getName(),n;if(t){var i=t.get("attributes");n=this.changeProp?t.get(e):i[e]}return n||this.get("value")||this.get("default")},r})(We);const cf=H6;var F6=(function(){function a(r){r===void 0&&(r={}),this.config=r}return a.prototype.build=function(r,t){return(0,E.isString)(r)?this.buildFromString(r,t):new cf(r,t)},a.prototype.buildFromString=function(r,t){var e={name:r,type:"text"};switch(r){case"target":e.type="select",e.default=!1,e.options=this.config.optionsTarget;break}return new cf(e,t)},a})();const $6=F6;var z6=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),U6=(function(a){z6(r,a);function r(t,e){var n=a.call(this,t)||this;n.categories=new of;var i=e.em;n.em=i,n.categories=new of([],{em:i,events:{update:Iu.categoryUpdate}}),n.on("add",n.handleAdd),n.on("reset",n.handleReset);var o=n.module,s=o==null?void 0:o.getConfig();return n.tf=new $6(s),n}return Object.defineProperty(r.prototype,"module",{get:function(){return this.em.Traits},enumerable:!1,configurable:!0}),r.prototype.getCategories=function(){return this.categories},r.prototype.handleReset=function(t,e){var n=e===void 0?{}:e,i=n.previousModels,o=i===void 0?[]:i;o.forEach(function(s){return s.trigger("remove")})},r.prototype.handleAdd=function(t){t.em=this.em;var e=this.target;e&&(t.target=e),this.initCategory(t)},r.prototype.setTarget=function(t){this.target=t,this.models.forEach(function(e){return e.setTarget(t)})},r.prototype.add=function(t,e){if(t!=null){var n=this,i=n.target,o=n.em;if((0,E.isArray)(t)){for(var s=[],c=0,d=t.length;c<d;c++){var f=t[c];s[c]=f instanceof cf?f:this.tf.build(f,o),s[c].setTarget(i)}return a.prototype.add.call(this,s,e)}var g=t instanceof cf?t:this.tf.build(t,o);return g.setTarget(i),a.prototype.add.call(this,g,e)}},r})(Rb);const df=U6;var W6=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Kr=function(){return Kr=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Kr.apply(this,arguments)},ju=function(a,r){var t={};for(var e in a)Object.prototype.hasOwnProperty.call(a,e)&&r.indexOf(e)<0&&(t[e]=a[e]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,e=Object.getOwnPropertySymbols(a);n<e.length;n++)r.indexOf(e[n])<0&&Object.prototype.propertyIsEnumerable.call(a,e[n])&&(t[e[n]]=a[e[n]]);return t},_h=function(a,r,t){if(t||arguments.length===2)for(var e=0,n=r.length,i;e<n;e++)(i||!(e in r))&&(i||(i=Array.prototype.slice.call(r,0,e)),i[e]=r[e]);return a.concat(i||Array.prototype.slice.call(r))},Us=function(a,r){if(r===void 0&&(r=[]),!a)return[];var t=(0,E.isArray)(a)||(0,E.isFunction)(a.map)?a:[a];return t.map(function(e){r.push(e.getId()),Us(e.components().models,r)}),r},Vb=function(a,r,t){r===void 0&&(r={}),t===void 0&&(t={}),t.visitedCmps=t.visitedCmps||{};var e=t.visitedCmps,n=t.updateOptions||{},i=(0,E.isArray)(a)?a:[a];return i.map(function(o){var s=o.attributes,c=s===void 0?{}:s,d=o.components,f=o.tagName,g=o.style,m=c.id;c.draggable;var y=ju(c,["id","draggable"]),x=o;if(m){if(e[m])e[m].push(x),m=Mr.getNewId(r),x.attributes.id=m;else if(e[m]=[],r[m]){x=r[m];var w=n.onAttributes,k=n.onStyle,S=x,A=Kr(Kr({},t),{parsedImportSource:"html"});f&&S.set({tagName:f},Kr(Kr({},A),{silent:!0})),w?w({item:o,component:S,attributes:y,options:A}):(0,E.keys)(y).length&&S.addAttributes(y,A),k?k({item:o,component:S,style:g,options:A}):(0,E.keys)(g).length&&S.addStyle(g,A)}}
781var L=(0,E.isFunction)(x.components)?x:null;if(d){var D=Vb(d,r,t);L?L.components().reset(D,t):x.components=D}else L&&L.components().reset([],t);return x})},Z6=(function(a){W6(r,a);function r(t,e){var n=a.call(this,t,e)||this;n.opt=e,n.listenTo(n,"add",n.onAdd),n.listenTo(n,"remove",n.removeChildren),n.listenTo(n,"reset",n.resetChildren);var i=e.em,o=e.config;return n.config=o,n.em=i,n.domc=e.domc||(i==null?void 0:i.Components),n}return Object.defineProperty(r.prototype,"events",{get:function(){var t;return(t=this.domc)===null||t===void 0?void 0:t.events},enumerable:!1,configurable:!0}),r.prototype.resetChildren=function(t,e){var n=this;e===void 0&&(e={});var i=this,o=e.previousModels||[],s=o.filter(function(f){return!t.get(f.cid)}),c=Us(t),d=Us(o).filter(function(f){return c.indexOf(f)>=0});e.keepIds=(e.keepIds||[]).concat(d),s.forEach(function(f){return n.removeChildren(f,i,e)}),t.each(function(f){return n.onAdd(f)})},r.prototype.resetFromString=function(t,e){var n,i;t===void 0&&(t=""),e===void 0&&(e={}),e.keepIds=Us(this);var o=this,s=o.domc,c=o.em,d=o.parent,f=(s==null?void 0:s.allById())||{},g=this.parseString(t,Kr(Kr({},e),{cloneRules:!0})),m=Kr({skipViewUpdate:!0},e),y=Vb(g,f,m);r.cloneCssRules(c,m.visitedCmps),this.reset(y,e),c==null||c.trigger(te.content,d,e,t),(i=(n=d).__checkInnerChilds)===null||i===void 0||i.call(n)},r.prototype.removeChildren=function(t,e,n){var i=this;if(n===void 0&&(n={}),!!t){var o=this,s=o.domc,c=o.em,d=n.temporary||n.fromUndo;if(t.prevColl=this,!d){var f=t.getId(),g=c.Selectors.getAll(),m=c.Css.getAll(),y=(n.keepIds||[]).indexOf(f)<0,x=s?s.allById():{};delete x[f];var w=y?m.remove(m.filter(function(L){return L.getSelectors().getFullString()==="#".concat(f)}),n):[];g.remove(w.map(function(L){return L.getSelectors().at(0)})),t.opt.temporary||(c.removeSelected(t),c.Commands.run("core:component-style-clear",{target:t}),t.views.forEach(function(L){L.scriptContainer&&t.emitWithEditor(te.scriptUnmount,{component:t,view:L,el:L.el})}),t.removed(),t.trigger("removed"),c.trigger(te.remove,t),s&&rf(t)&&ss(t)&&s.symbols.__trgEvent(s.events.symbolInstanceRemove,{component:t},!0));var k=t.components();
781k.forEach(function(L){wb(L,L,k,Kr(Kr({},n),{skipRefsUp:!0})),i.removeChildren(L,e,n)})}var S=t.components();if(c.stopListening(S),c.stopListening(t),c.stopListening(t.get("classes")),t.__postRemove(),!t.opt.temporary){var A=function(L){L.emitWithEditor(te.removed,L,{removeOptions:n}),L.components().forEach(function(D){return A(D)})};A(t)}}},r.prototype.model=function(t,e){var n=e.collection.opt,i=n.em,o,s=i.Components.componentTypes;e.em=i,e.config=n.config,e.componentTypes=s,e.domc=n.domc;for(var c=0;c<s.length;c++){var d=s[c].id;if(d==t.type){o=s[c].model;break}}return o||(o=s[s.length-1].model,i&&t.type&&i.logWarning("Component type '".concat(t.type,"' not found"),{attrs:t,options:e})),new o(t,e)},r.prototype.parseString=function(t,e){e===void 0&&(e={});var n=this,i=n.em,o=n.domc,s=n.parent,c=s==null?void 0:s.is("wrapper"),d=e.asDocument&&c,f=i.Css,g=i.Parser.parseHtml(t,Kr({asDocument:d},e.parserOptions)),m=g.html;if(c&&g.doctype){var y=s,x=g.html||{},w=x.components,k=w===void 0?[]:w,S=ju(x,["components"]),A=g.head||{},L=A.components,D=ju(A,["components"]);m=k;var W=Kr(Kr({},e),{parsedImportSource:"html"});y.set(S,W),y.head.set(D,W),y.head.components(L,W),y.docEl.set(g.root,W),y.set({doctype:g.doctype},W)}var j=Mr.checkId(m,g.css,o.componentsById,e);if(e.cloneRules&&r.cloneCssRules(i,j.updatedIds),g.css&&f&&!e.temporary){e.at;var et=ju(e,["at"]);f.addCollection(g.css,Kr(Kr({},et),{extend:1,parsedImportSource:"css"}))}return m},r.prototype.add=function(t,e){var n=this;if(e===void 0&&(e={}),t!=null){e.keepIds=_h(_h([],e.keepIds||[],!0),Us(e.previousModels),!0),(0,E.isString)(t)?t=this.parseString(t,e):(0,E.isArray)(t)&&(t=_h([],t,!0),t.forEach(function(o,s){if((0,E.isString)(o)){var c=n.parseString(o,e);t[s]=(0,E.isArray)(c)&&!c.length?null:c}}));var i=((0,E.isArray)(t)?t:[t]).filter(Boolean).map(function(o){return n.processDef(o)});return t=(0,E.isArray)(t)?(0,E.flatten)(i,1):i[0],a.prototype.add.call(this,t,e)}},r.prototype.processDef=function(t){if(t.cid&&t.ccid)return t;var e=this,n=e.em,i=e.config,o=i===void 0?{}:i,s=o.processor,c=t;if(s){c=Kr({},c);var d=s(c);d&&((0,E.each)(c,function(k,S){return delete c[S]}),(0,E.extend)(c,d))}if(c.$$typeof&&typeof c.props=="object"){c=Kr({},c),c.props=Kr({},c.props);var f=n.Components,g=n.Parser,m=g.parserHtml;(0,E.each)(c,function(k,S){(0,E.includes)(["props","type"],S)||delete c[S]});var y=c.props,x=y.children;delete y.children,delete c.props;var w=m.splitPropsFromAttr(y);c.attributes=w.attrs,x&&(c.components=x),c.type?f.getType(c.type)||(c.tagName=c.type,delete c.type):c.type="textnode",(0,E.extend)(c,w.props)}return c},r.prototype.updateFrameRefs=function(t,e){var n=this;!e||t.frame===e||(t.opt.frame=e,t.components().forEach(function(i){return n.updateFrameRefs(i,e)}))},r.prototype.onAdd=function(t,e,n){var i;n===void 0&&(n={});var o=this,s=o.domc,c=o.em,d=c.config.avoidInlineStyle,f=s==null?void 0:s.allById(),g=((i=this.parent)===null||i===void 0?void 0:i.frame)||this.opt.frame,m=!!this.parent&&!g;if(this.updateFrameRefs(t,g),(f==null?void 0:f[t.getId()])!==t&&(s==null||s.Component.ensureInList(t)),!d&&c.config.forceClass&&!n.temporary){var y=t.getStyle();if(!(0,E.isEmpty)(y)){var x=t.cid;c.Css.setClassRule(x,y),t.setStyle({}),t.addClass(x)}}if(t.__postAdd({recursive:!0}),c&&!n.temporary&&!m){var w=function(k){c.trigger(te.add,k,n),k.components().forEach(function(S){return w(S)})};w(t),s&&rf(t)&&ss(t)&&s.symbols.__trgEvent(s.events.symbolInstanceAdd,{component:t},!0)}},r.cloneCssRules=function(t,e){e===void 0&&(e={});var n=t.Css;Object.keys(e).forEach(function(i){var o=e[i];if(o.length){var s=(n.getRules("#".concat(i))||[]).filter(function(d){return!(0,E.isEmpty)(d.attributes.style)});if(s.length){var c=n.getAll();o.forEach(function(d){s.forEach(function(f){var g=f.clone();g.set("selectors",["#".concat(d.attributes.id)]),c.add(g)})})}}})},r})(Rr);const nd=Z6;var q6=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}
781r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),rr=function(){return rr=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},rr.apply(this,arguments)},K6=function(a,r){var t={};for(var e in a)Object.prototype.hasOwnProperty.call(a,e)&&r.indexOf(e)<0&&(t[e]=a[e]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,e=Object.getOwnPropertySymbols(a);n<e.length;n++)r.indexOf(e[n])<0&&Object.prototype.propertyIsEnumerable.call(a,e[n])&&(t[e[n]]=a[e[n]]);return t},li=function(a,r,t){if(t||arguments.length===2)for(var e=0,n=r.length,i;e<n;e++)(i||!(e in r))&&(i||(i=Array.prototype.slice.call(r,0,e)),i[e]=r[e]);return a.concat(i||Array.prototype.slice.call(r))},T0=function(a){return(0,E.isString)(a)?function(r){return r.is(a)}:a},G6=function(a){var r=a===void 0?{}:a,t=r.max;return typeof t=="number"&&isFinite(t)&&t>0?Math.max(1,Math.floor(t)):void 0},O0=function(a){return a.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},No=function(a){return!!(a!=null&&a.getConfig().avoidInlineStyle)};te.drag;var In="__symbols",Kn="__symbol",ts="__symbol_ovrd",Nu=te.update,zg=te.updateInside,Ch=Symbol("idsMapCounter"),Y6=(function(a){q6(r,a);function r(t,e){t===void 0&&(t={});var n=this,i=e.em;n=a.call(this,t,e)||this,(0,E.bindAll)(n,"__upSymbProps","__upSymbCls","__upSymbComps","syncOnComponentChange");var o=n.parent(),s=o==null?void 0:o.attributes,c=n.get("propagate");if(c&&n.set("propagate",(0,E.isArray)(c)?c:[c]),s&&s.propagate&&!c){var d={},f=s.propagate;f.forEach(function(S){return d[S]=o.get(S)}),d.propagate=f,n.set(rr(rr({},d),t))}e&&e.config&&e.config.voidElements.indexOf(n.get("tagName"))>=0&&n.set("void",!0),e.em=i,n.opt=e,n.em=i,n.config=e.config||{};var g=rr(rr({},(0,E.result)(n,"defaults").attributes||{}),n.get("attributes")||{}),m=n.dataResolverWatchers.getValueOrResolver("attributes",g);if(n.setAttributes(m),n.ccid=r.createId(n,e),n.preInit(),n.initClasses(),n.initComponents(),n.initTraits(),n.initToolbar(),n.initScriptProps(),n.listenTo(n,"change:script",n.scriptUpdated),n.listenTo(n,"change:tagName",n.tagUpdated),n.listenTo(n,"change:attributes",n.attrUpdated),n.listenTo(n,"change:attributes:id",n._idUpdated),n.on("change:toolbar",n.__emitUpdateTlb),n.on("change",n.__onChange),n.on(zg,n.__propToParent),n.set("status",""),n.views=[],["classes","traits","components"].forEach(function(S){var A="add remove reset ".concat(S!=="components"?"change":"");n.listenTo(n.get(S),A.trim(),function(){for(var L=[],D=0;D<arguments.length;D++)L[D]=arguments[D];return n.emitUpdate.apply(n,li([S],L,!1))})}),!e.temporary){var y=i&&i.Css,x=n.attributes,w=x.styles,k=x.type;w&&y&&y.addCollection(w,{avoidUpdateStyle:!0},{group:"cmp:".concat(k)}),n._moveInlineStyleToRule(),n.__postAdd(),n.init(),Hi(n)&&ac(n),i==null||i.trigger(te.create,n,e)}return No(i)&&n.dataResolverWatchers.disableStyles(),n}return Object.defineProperty(r.prototype,"defaults",{get:function(){var t;return t={tagName:"div",type:"",name:"",removable:!0,draggable:!0,droppable:!0,badgable:!0,stylable:!0,"stylable-require":"","style-signature":"",unstylable:"",highlightable:!0,copyable:!0,resizable:!1,editable:!1,layerable:!0,selectable:!0,hoverable:!0,void:!1,state:"",status:"",content:"",icon:"",style:"",styles:"",classes:"",script:"","script-props":"","script-export":"",attributes:{},traits:["id","title"],propagate:"",dmode:"",toolbar:null,delegate:null},t[Kn]=0,t[In]=0,t[ts]=0,t._undo=!0,t._undoexc=["status","open"],t},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tagName",{get:function(){return this.get("tagName")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"classes",{get:function(){return this.get("classes")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"traits",{get:function(){return this.get("traits")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"content",{get:function(){var t;return(t=this.get("content"))!==null&&t!==void 0?t:""},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"toolbar",{get:function(){return this.get("toolbar")||[]}
781,enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"resizable",{get:function(){return this.get("resizable")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"delegate",{get:function(){return this.get("delegate")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"locked",{get:function(){return this.get("locked")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"frame",{get:function(){return this.opt.frame},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"page",{get:function(){var t;return(t=this.frame)===null||t===void 0?void 0:t.getPage()},enumerable:!1,configurable:!0}),r.prototype.getType=function(){return this.get("type")||"default"},r.prototype.preInit=function(){},r.prototype.init=function(){},r.prototype.updated=function(t,e,n){},r.prototype.removed=function(){},r.prototype.onCollectionsStateMapUpdate=function(t){var e;a.prototype.onCollectionsStateMapUpdate.call(this,t),(e=this._getStyleRule())===null||e===void 0||e.onCollectionsStateMapUpdate(t);var n=this.components();n.forEach(function(i){return i.onCollectionsStateMapUpdate(t)})},r.prototype.syncComponentsCollectionState=function(){this.stopListening(this.components(),"add remove reset",this.syncOnComponentChange),this.listenTo(this.components(),"add remove reset",this.syncOnComponentChange),this.components().forEach(function(t){return t.syncComponentsCollectionState()})},r.prototype.stopSyncComponentCollectionState=function(){this.stopListening(this.components(),"add remove reset",this.syncOnComponentChange),this.collectionsStateMap={},this.components().forEach(function(t){return t.stopSyncComponentCollectionState()})},r.prototype.syncOnComponentChange=function(t,e,n){var i=this;if(!(!this.collectionsStateMap||!Object.keys(this.collectionsStateMap).length)){var o=n||e||{};if(n)if(o.add){var c=t;c.syncComponentsCollectionState(),c.onCollectionsStateMapUpdate(this.collectionsStateMap)}else{var d=t;d.stopSyncComponentCollectionState()}else{var s=o.previousModels||[];s.forEach(function(f){return f.stopSyncComponentCollectionState()}),this.components().forEach(function(f){f.syncComponentsCollectionState(),f.onCollectionsStateMapUpdate(i.collectionsStateMap)})}}},r.prototype.__postAdd=function(t){t===void 0&&(t={});var e=this.em,n=e==null?void 0:e.UndoManager,i=this.components();!n||this.__hasUm||(n&&(n.add(i),n.add(this.getSelectors()),this.__hasUm=!0),t.recursive&&i.map(function(o){return o.__postAdd(t)}))},r.prototype.__postRemove=function(){var t=this.em,e=t==null?void 0:t.UndoManager;e&&(e.remove(this.components()),e.remove(this.getSelectors()),delete this.__hasUm)},r.prototype.__onChange=function(t,e){var n=this,i=this.changedAttributes()||{};(0,E.keys)(i).forEach(function(o){return n.emitUpdate(o)}),["status","open","toolbar","traits"].forEach(function(o){return delete i[o]}),so(i)||(this.__changesUp(e,{changed:i}),this.__propSelfToParent({component:this,changed:i,options:e}))},r.prototype.__onStyleChange=function(t,e){var n=this,i=this,o=i.collectionsStateMap,s=i.em;if(!(!s||e!=null&&e.noEvent)){var c=(0,E.keys)(t),d={style:t};this.emitWithEditor(te.styleUpdate,this,d),c.forEach(function(y){return n.emitWithEditor("".concat(te.styleUpdateProperty).concat(y),n,d)});var f=Object.keys(o).filter(function(y){return y!==vl.rootData});if(f.length!==0){var g=f.every(function(y){var x=o[y];return x.currentIndex===x.startIndex});if(g){var m=Ta(this);m.forEach(function(y){var x=y.collectionsStateMap,w=Object.keys(x),k=w.every(function(S){return f.includes(S)});k&&y.addStyle(rr({},t),{noEvent:!0})})}}}},r.prototype.__changesUp=function(t,e){var n=this;e===void 0&&(e={});var i=this,o=i.em,s=i.frame;[s,o].forEach(function(c){c==null||c.changesUp(t,rr({component:n,options:t},e))})},r.prototype.__propSelfToParent=function(t){this.trigger(Nu,t),this.__propToParent(t)},r.prototype.__propToParent=function(t){var e=this.parent();e&&e.trigger(zg,t)},r.prototype.__emitUpdateTlb=function(){this.emitUpdate("toolbar")},r.prototype.__getAllById=function(){var t=this.em;return t?t.Components.allById():{}},r.prototype.__upSymbProps=function(t,e){e===void 0&&(e={}),o6(this,e)},r.prototype.__upSymbCls=function(t,e,n){n===void 0&&(n={}),u6(this,n)},r.prototype.__upSymbComps=function(t,e,n){wb(this,t,e,n)},r.prototype.__onDestroy=function(){},r.prototype.is=function(t){return this.get("type")==t},r.prototype.props=function(){return this.attributes},r.prototype.index=function(){var t=this.collection;return t?t.indexOf(this):0},r.prototype.setDragMode=function(t){return this.set("dmode",t)},r.prototype.getDragMode=function(){return this.get("dmode")||""},r.prototype.setSymbolOverride=function(t,e){var n,i;e===void 0&&(e={}),this.set((n={},n[ts]=(i=(0,E.isString)(t)?[t]:t)!==null&&i!==void 0?i:0,n),e)},r.prototype.getSymbolOverride=function(){return this.get(ts)},r.prototype.find=function(t){var e,n=[],i=(e=this.view)===null||e===void 0?void 0:e.$el.find(t);return i==null||i.each(function(o){var s=i.eq(o),c=s.data("model");c&&n.push(c)}),n},r.prototype.findType=function(t,e){e===void 0&&(e={});var n=[],i=T0(t),o=G6(e),s=function(c){for(var d=c.models,f=0;f<d.length;f++){var g=d[f];if(i(g)&&(n.push(g),o&&n.length>=o)||s(g.components()))return!0}return!1};return s(this.components()),n},r.prototype.findFirstType=function(t){return this.findType(t,{max:1}).at(0)},r.prototype.closest=function(t){var e,n=(e=this.view)===null||e===void 0?void 0:e.$el.closest(t);return n!=null&&n.length?n.data("model"):void 0},r.prototype.closestType=function(t){for(var e=T0(t),n=this.parent();n&&!e(n);)n=n.parent();return n},r.prototype.contains=function(t){var e=!1;if(!t)return e;
781var n=function(i){!e&&i.forEach(function(o){o===t&&(e=!0),!e&&n(o.components())})};return n(this.components()),e},r.prototype.tagUpdated=function(){this.trigger("rerender")},r.prototype.replaceWith=function(t,e){e===void 0&&(e={});var n=this.collection,i=n.indexOf(this);n.remove(this);var o=n.add(t,rr(rr({},e),{at:i}));return(0,E.isArray)(o)?o:[o]},r.prototype.attrUpdated=function(t,e,n){var i=this;n===void 0&&(n={});var o=this.get("attributes"),s=o.class;s&&this.setClass(s),delete o.class;var c=o.style;c&&this.setStyle(c,n),delete o.style;var d=rr({},this.previous("attributes")),f=Ju(d,this.get("attributes"));(0,E.keys)(f).forEach(function(g){var m,y="attributes:".concat(g);i.trigger("change:".concat(y),i,f[g],n),(m=i.em)===null||m===void 0||m.trigger("".concat(Nu,":").concat(y),i,f[g],n)})},r.prototype.setAttributes=function(t,e){return e===void 0&&(e={skipWatcherUpdates:!1,fromDataSource:!1}),this.set("attributes",rr({},t),e),this},r.prototype.addAttributes=function(t,e){e===void 0&&(e={});var n=this.dataResolverWatchers.getValueOrResolver("attributes",this.getAttributes({noClass:!0,noStyle:!0}));return this.setAttributes(rr(rr({},n),t),e)},r.prototype.removeAttributes=function(t,e){t===void 0&&(t=[]),e===void 0&&(e={});var n=Array.isArray(t)?t:[t],i=this.getAttributes();return n.map(function(o){return delete i[o]}),this.setAttributes(i,e)},r.prototype.getStyle=function(t,e){var n=this.em,i=(0,E.isString)(t),o=i?t:"",s=i?e:t,c=!!(s!=null&&s.skipResolve);if(No(n)&&!(s!=null&&s.inline)){var d=n.get("state"),f=n.Css,g=f.getIdRule(this.getId(),rr({state:d},s));return this.rule=g,g?g.getStyle(o,{skipResolve:c}):{}}return a.prototype.getStyle.call(this,o,{skipResolve:c})},r.prototype.setStyle=function(t,e){var n=this;t===void 0&&(t={}),e===void 0&&(e={});var i=this,o=i.opt,s=i.em;if(No(s)&&!o.temporary&&!e.inline){var c=this.get("style")||{};t=(0,E.isString)(t)?this.parseStyle(t):t,t=rr(rr({},c),t);var d=s.get("state"),f=s.Css,g=this.getStyle(rr(rr({},e),{skipResolve:!0}));this.rule=f.setIdRule(this.getId(),t,rr({state:d},e));var m=Ju(g,t);this.set("style","",{silent:!0}),(0,E.keys)(m).forEach(function(y){return n.trigger("change:style:".concat(y))})}else t=a.prototype.setStyle.apply(this,arguments);return o.temporary||this.__onStyleChange(e.addStyle||t,e),t},r.prototype.getAttributes=function(t){t===void 0&&(t={});var e=this.em,n=[],i=rr({},this.get("attributes")),o=t!=null&&t.skipResolve?this.dataResolverWatchers.getValueOrResolver("attributes",i):i,s=e==null?void 0:e.Selectors,c=this.getId();if(t.noClass?delete o.class:(this.classes.forEach(function(g){return n.push((0,E.isString)(g)?g:g.getName())}),n.length&&(o.class=n.join(" "))),!t.noStyle){var d=this.getStyle({inline:!0});Cn(d)&&!so(d)&&(o.style=this.styleToString({inline:!0}))}if(!(0,E.has)(o,"id")){var f=!1;(No(e)||!(0,E.isEmpty)(this.getStyle()))&&(f=!!(s!=null&&s.get(c,s.Selector.TYPE_ID))),(Hi(this)||this.get("script-export")||this.get("script"))&&(f=!0),f&&(o.id=c)}return o},r.prototype.addClass=function(t){var e=this.em.Selectors.addClass(t);return this.classes.add(e)},r.prototype.setClass=function(t){return this.classes.reset(),this.addClass(t)},r.prototype.removeClass=function(t){var e=[];t=(0,E.isArray)(t)?t:[t];var n=this.classes,i=Rn.TYPE_CLASS;return t.forEach(function(o){var s=o.split(" ");s.forEach(function(c){var d=n.where({name:c,type:i})[0];d&&e.push(n.remove(d))})}),e},r.prototype.getClasses=function(){var t=this.getAttributes(),e=t.class;return e?e.split(" "):[]},r.prototype.initClasses=function(t,e,n){n===void 0&&(n={});var i="change:classes",o=this.get("attributes")||{},s=o.class,c=K6(o,["class"]),d=[this,i,this.initClasses],f=this.get("classes")||s||[],g=(0,E.isString)(f)?f.split(" "):f;this.stopListening.apply(this,d);var m=this.normalizeClasses(g),y=new ro([]);return this.set("classes",y,n),y.add(m),y.on("add remove reset",this.__upSymbCls),s&&m.length&&this.set("attributes",c),this.listenTo.apply(this,d),this},r.prototype.initComponents=function(){var t="change:components",e=[this,t,this.initComponents];this.stopListening.apply(this,e);var n=new nd([],this.opt);n.parent=this;var i=this.get("components"),o=!this.opt.avoidChildren;return this.set("components",n),o&&i&&n.add((0,E.isFunction)(i)?i(this):i,this.opt),n.on("add remove reset",this.__upSymbComps),this.listenTo.apply(this,e),this},r.prototype.initTraits=function(t){var e=this,n=this.em,i="change:traits";this.off(i,this.initTraits),this.__loadTraits();var o=rr({},this.get("attributes")),s=this.traits;s.each(function(d){var f=d.getName(),g=d.getInitValue();d.changeProp?(0,E.isUndefined)(e.get(f))&&e.set(f,g):f&&g&&(o[f]=g)});var c=this.dataResolverWatchers.getValueOrResolver("attributes",o);return s.length&&this.setAttributes(c),this.on(i,this.initTraits),t&&n&&n.trigger(te.toggled),this},r.prototype.initScriptProps=function(){if(!this.opt.temporary){var t="script-props",e=["change:".concat(t),this.initScriptProps];this.off.apply(this,e);var n=this.previous(t)||[],i=this.get(t)||[],o=n.map(function(c){return"change:".concat(c)}).join(" "),s=i.map(function(c){return"change:".concat(c)}).join(" ");o&&this.off(o,this.__scriptPropsChange),s&&this.on(s,this.__scriptPropsChange),this.on.apply(this,e)}},r.prototype.__scriptPropsChange=function(t,e,n){n===void 0&&(n={}),!n.avoidStore&&this.trigger("rerender")},r.prototype.append=function(t,e){e===void 0&&(e={});var n=(0,E.isArray)(t)?li([],t,!0):[t],i=n.map(function(s){return(0,E.isString)(s)||s.collection&&s.collection.remove(s,{temporary:!0}),s}),o=this.components().add(i,rr({action:Pc.add},e));return o},r.prototype.components=function(t,e){e===void 0&&(e={});var n=this.get("components");return(0,E.isUndefined)(t)?n:(n.reset(void 0,e),t?this.append(t,e):[])},r.prototype.getChildAt=function(t){return this.components().at(t||0)||void 0},r.prototype.getLastChild=function(){var t=this.components();return t.at(t.length-1)||null},r.prototype.empty=function(t){return t===void 0&&(t={}),this.components().reset(void 0,t),this},r.prototype.parent=function(t){t===void 0&&(t={});var e=this.collection||t.prev&&this.prevColl;return e?e.parent:void 0},r.prototype.parents=function(){var t=this.parent();return t?[t].concat(t.parents()):[]},r.prototype.scriptUpdated=function(){this.set("scriptUpdated",1)},r.prototype.initToolbar=function(){var t=this.em,e=this,n=t&&t.getConfig().stylePrefix||"";if(!e.get("toolbar")&&t){var i=[];e.collection&&i.push({label:t.getIcon("arrowUp"),command:function(o){return o.runCommand("core:component-exit",{force:1})}}),e.get("draggable")&&i.push({attributes:{class:"".concat(n,"no-touch-actions"),draggable:!0},label:t.getIcon("move"),command:"tlb-move"}),e.get("copyable")&&i.push({label:t.getIcon("copy"),command:"tlb-clone"}),e.get("removable")&&i.push({label:t.getIcon("delete"),command:"tlb-delete"}),e.set("toolbar",i)}},r.prototype.__loadTraits=function(t,e){e===void 0&&(e={});var n=t||this.traits;if(!(n instanceof df)){n=(0,E.isFunction)(n)?n(this):n;var i=new df([],this.opt);i.setTarget(this),n.length&&i.add(n),this.set({traits:i},e)}return this},r.prototype.getTraits=function(){return this.__loadTraits(),li([],this.traits.models,!0)},r.prototype.setTraits=function(t){var e=(0,E.isArray)(t)?t:[t];return this.set({traits:e}),this.getTraits()},r.prototype.getTrait=function(t){return this.getTraits().filter(function(e){return e.get("id")===t||e.get("name")===t})[0]||null},r.prototype.updateTrait=function(t,e){var n,i=this.getTrait(t);return i&&i.set(e),(n=this.em)===null||n===void 0||n.trigger(te.toggled),this},r.prototype.getTraitIndex=function(t){var e=this.getTrait(t);return e?this.traits.indexOf(e):-1},r.prototype.removeTrait=function(t){var e=this,n,i=(0,E.isArray)(t)?t:[t],o=i.map(function(d){return e.getTrait(d)}),s=this.traits,c=o.length?s.remove(o):[];return(n=this.em)===null||n===void 0||n.trigger(te.toggled),(0,E.isArray)(c)?c:[c]},r.prototype.addTrait=function(t,e){var n;e===void 0&&(e={}),this.__loadTraits();var i=this.traits.add(t,e);return(n=this.em)===null||n===void 0||n.trigger(te.toggled),(0,E.isArray)(i)?i:[i]},r.prototype.normalizeClasses=function(t){var e=[],n=this.em,i=n==null?void 0:n.Selectors;return i?t.models?li([],t.models,!0):(t.forEach(function(o){return e.push(i.add(o))}),e):[]},r.prototype.clone=function(t){var e,n;t===void 0&&(t={});var i=this.em,o=this.dataResolverWatchers.getProps(this.attributes),s=rr(rr({},this.opt),{frame:(e=t.frame)!==null&&e!==void 0?e:void 0}),c=this.getId(),d=i==null?void 0:i.Css;o.components=[],o.classes=[],o.traits=[],ss(this)&&(t.symbol=!0),this.get("components").each(function(S,A){o.components[A]=S.
781clone(rr(rr({},t),{_inner:1}))}),this.get("traits").each(function(S,A){o.traits[A]=S.clone()}),this.get("classes").each(function(S,A){o.classes[A]=S.get("name")}),o.status="",s.collection=null,s.forCloning=!0;var f=new this.constructor(o,s),g="#".concat(f.getId()),m=d?d.getRules("#".concat(c)):[];m.forEach(function(S){var A=S.clone();A.set("selectors",[g]),d.getAll().add(A)}),f.set(In,0);var y=Oi(this),x=Xn(this);if(!t.symbol&&(y||x))f.set(Kn,0),f.set(In,0);else if(y){var w=(n=Xn(y))!==null&&n!==void 0?n:[];y.set(In,li(li([],w,!0),[f],!1)),ac(f)}else t.symbol&&(Qo(this)?(this.set(In,li(li([],x,!0),[f],!1)),f.set(Kn,this),ac(f)):t.symbolInv?(this.set(In,[f]),f.set(Kn,this),[this,f].map(function(S){return ac(S)})):(f.set(In,[this]),[this,f].map(function(S){return ac(S)}),this.set(Kn,f)));var k=te.clone;return i&&i.trigger(k,f),this.trigger(k,f),f},r.prototype.getName=function(t){t===void 0&&(t={});var e=this.em,n=this.attributes,i=n.type,o=n.tagName,s=n.name,c=i||o,d=i?"":o,f="domComponents.names.",g=s&&(e==null?void 0:e.t("".concat(f).concat(s))),m=d&&(e==null?void 0:e.t("".concat(f).concat(d))),y=e&&(e.t("".concat(f).concat(i))||e.t("".concat(f).concat(o))),x=this.get("custom-name");return(t.noCustom?"":x)||g||s||m||Xc(d)||y||Xc(c)},r.prototype.setName=function(t,e){e===void 0&&(e={}),this.set("custom-name",t,e)},r.prototype.getIcon=function(){var t=this.get("icon");return t?t+" ":""},r.prototype.toHTML=function(t){t===void 0&&(t={});var e=t.tag,n=e||this.get("tagName");delete t.tag;var i=this.__attrToString(t),o=i?" ".concat(i):"",s=this.getInnerHTML(t),c=!s&&this.get("void"),d="<".concat(n).concat(o).concat(c?"/":"",">").concat(s);return!c&&(d+="</".concat(n,">")),d},r.prototype.getInnerHTML=function(t){return this.__innerHTML(t)},r.prototype.__innerHTML=function(t){t===void 0&&(t={});var e=this.components();return e.length?e.map(function(n){return n.toHTML(t)}).join(""):this.content},r.prototype.__attrToString=function(t){t===void 0&&(t={});var e=[],n=t.attributes,i=this.getAttrToHTML(t);if(n&&((0,E.isFunction)(n)?i=n(this,i)||{}:Cn(n)&&(i=n)),t.withProps){var o=this.toJSON();(0,E.forEach)(o,function(g,m){var y=["classes","attributes","components"];m[0]!=="_"&&y.indexOf(m)<0&&(i["data-gjs-".concat(m)]=(0,E.isArray)(g)||Cn(g)?JSON.stringify(g):(0,E.isBoolean)(g)?"".concat(g):g)})}for(var s in i){var c=i[s];if(!(0,E.isUndefined)(c)&&c!==null)if((0,E.isBoolean)(c))c&&e.push(s);else{var d="";if(t.altQuoteAttr&&(0,E.isString)(c)&&c.indexOf('"')>=0)d="'".concat(ub(c),"'");else{var f=(0,E.isString)(c)?db(c):c;d='"'.concat(f,'"')}e.push("".concat(s,"=").concat(d))}}return e.join(" ")},r.prototype.getAttrToHTML=function(t){var e=this.getAttributes();return No(this.em)&&(t==null?void 0:t.keepInlineStyle)!==!0&&delete e.style,e},r.prototype.toJSON=function(t){t===void 0&&(t={});var e=a.prototype.toJSON.call(this,t,{attributes:this.getAttributes()});if(delete e.dataResolverWatchers,delete e.attributes.class,delete e.toolbar,delete e.traits,delete e.status,delete e.open,delete e._undoexc,delete e.delegate,this.collectionsStateMap&&Object.getOwnPropertyNames(this.collectionsStateMap).length>0&&(delete e[Kn],delete e[ts],delete e[In]),!t.fromUndo){var n=e[Kn],i=e[In];i&&(0,E.isArray)(i)&&(e[In]=i.filter(function(o){return o}).map(function(o){return o.getId?o.getId():o})),n&&!(0,E.isString)(n)&&(e[Kn]=n.getId())}return this.em.getConfig().avoidDefaults&&this.getChangedProps(e),e},r.prototype.getChangedProps=function(t){var e=t||u1.Model.prototype.toJSON.apply(this),n=(0,E.result)(this,"defaults");return(0,E.forEach)(n,function(i,o){["type"].indexOf(o)===-1&&e[o]===i&&delete e[o]}),(0,E.isEmpty)(e.type)&&delete e.type,(0,E.forEach)(["attributes","style"],function(i){(0,E.isEmpty)(n[i])&&(0,E.isEmpty)(e[i])&&delete e[i]}),(0,E.forEach)(["classes","components"],function(i){(!e[i]||(0,E.isEmpty)(n[i])&&!e[i].length)&&delete e[i]}),e},r.prototype.getId=function(){var t=this.get("attributes")||{},e=m6(this),n=e.shouldSync,i=e.itemId;return n&&(t.id=i),t.id||this.ccid||this.cid},r.prototype.setId=function(t,e){return this.addAttributes({id:t},e),this},r.prototype.getEl=function(t){var e=this.getView(t);return e&&e.el},r.prototype.getView=function(t){return a.prototype.getView.call(this,t)},r.prototype.getCurrentView=function(){var t=this.em.getCurrentFrame(),e=t==null?void 0:t.model;return this.getView(e)},r.prototype.__getScriptProps=function(){var t=this.props(),e=this.get("script-props")||[];return e.reduce(function(n,i){return n[i]=t[i],n},{})},r.prototype.getScriptString=function(t){var e=this,n=t||this.get("script")||"";if(!n)return n;if(this.get("script-props"))n=n.toString().trim();else{if((0,E.isFunction)(n)){var i=n.toString().trim();i=i.slice(i.indexOf("{")+1,i.lastIndexOf("}")),n=i.trim()}var o=this.em.getConfig(),s=O0(o.tagVarStart||"{[ "),c=O0(o.tagVarEnd||" ]}"),d=new RegExp("".concat(s,"([\\w\\d-]*)").concat(c),"g");n=n.replace(d,function(f,g){e.scriptUpdated();var m=e.attributes[g]||"";return(0,E.isArray)(m)||typeof m=="object"?JSON.stringify(m):m})}return n},r.prototype.emitUpdate=function(t){for(var e,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var o=this.em,s=Nu+(t?":".concat(t):""),c=t&&this.get(t);t&&this.updated.apply(this,li([t,c,t&&this.previous(t)],n,!1)),this.trigger.apply(this,li([s],n,!1)),o&&o.trigger.apply(o,li([s,this],n,!1)),["components","classes"].indexOf(t)>=0&&this.__propSelfToParent({component:this,changed:(e={},e[t]=c,e),options:n[2]||n[1]||{}})},r.prototype.emitWithEditor=function(t,e,n){[this.em,this].forEac
781h(function(i){return i==null?void 0:i.trigger(t,e,n)})},r.prototype.onAll=function(t){return(0,E.isFunction)(t)&&(t(this),this.components().forEach(function(e){return e.onAll(t)})),this},r.prototype.forEachChild=function(t){(0,E.isFunction)(t)&&this.components().forEach(function(e){t(e),e.forEachChild(t)})},r.prototype.remove=function(t){var e=this;t===void 0&&(t={});var n=this.em,i=this.collection,o=function(){i&&i.remove(e,rr({action:Pc.remove},t)),i||(e.components("",t),e.components().removeChildren(e,void 0,t))},s=rr({},t);return[this,n].map(function(c){return c.trigger(te.removeBefore,e,o,s)}),!s.abort&&o(),this},r.prototype.destroy=function(t){return this.stopListening(this.components(),"add remove reset",this.syncOnComponentChange),this.dataResolverWatchers.destroy(),this.__onDestroy(),a.prototype.destroy.call(this,t)},r.prototype.move=function(t,e){if(e===void 0&&(e={}),t){var n=e.at,i=this.index(),o=t===this.parent(),s=i===n||i===n-1;if(!o||!s){o&&n&&n>i&&(e.at=n-1);var c=Pc.move;this.remove({action:c,temporary:1}),t.append(this,rr({action:c},e)),this.emitUpdate()}}return this},r.prototype.isInstanceOf=function(t){var e,n,i=(n=(e=this.em)===null||e===void 0?void 0:e.Components.getType(t))===null||n===void 0?void 0:n.model;if(!i)return!1;var o=this.constructor.typeExtends;return this instanceof i||o.has(t)},r.prototype.isChildOf=function(t){for(var e=(0,E.isString)(t),n=this.parent();n;){if(e){if(n.isInstanceOf(t))return!0}else if(n===t)return!0;n=n.parent()}return!1},r.prototype.resetId=function(t){var e=this.em,n=this.getId();if(!n)return this;var i=r.createId(this);this.setId(i);var o=e==null?void 0:e.Css.getIdRule(n),s=o==null?void 0:o.get("selectors").at(0);return s==null||s.set("name",i),this},r.prototype._getStyleRule=function(t){var e=t===void 0?{}:t,n=e.id,i=this.em,o=n||this.getId();return i==null?void 0:i.Css.getIdRule(o)},r.prototype._getStyleSelector=function(t){var e=this._getStyleRule(t);return e==null?void 0:e.get("selectors").at(0)},r.prototype._moveInlineStyleToRule=function(){var t=this.get("style"),e=(0,E.isString)(t)&&t.length>0||Cn(t)&&Object.keys(t).length>0;No(this.em)&&e&&this.addStyle(Cn(t)?this.dataResolverWatchers.getValueOrResolver("styles",t):t,{avoidStore:!0,noUndo:!0})},r.prototype._idUpdated=function(t,e,n){if(n===void 0&&(n={}),!n.idUpdate){var i=this.ccid,o=(this.get("attributes")||{}).id,s=(this.previous("attributes")||{}).id||i,c=r.getList(this);if(c[o]||!o&&s)return this.setId(s,{idUpdate:!0});delete c[s],c[o]=this,this.ccid=o;var d=this._getStyleSelector({id:s});d&&d.set({name:o,label:o})}},r.getDefaults=function(){return(0,E.result)(this.prototype,"defaults")},r.isComponent=function(t,e){return{tagName:xr(t.tagName)}},r.ensureInList=function(t){var e,n=r.getList(t),i=t.id,o=i||t.getId(),s=n[o];if(!s)r.setListId(n,o,t);else if(s!==t){var c=(e=t.em)===null||e===void 0?void 0:e.Components.config.keepAttributeIdsCrossPages,d=s.page,f=t.page,g=!!d&&!!f&&d===f,m=r.getIncrementId(o,n);g||!c?t.setId(m):t.set({id:m}),n[m]=t}t.components().forEach(function(y){return r.ensureInList(y)})},r.createId=function(t,e){var n;e===void 0&&(e={});var i=r.getList(t),o=(n=t.em)===null||n===void 0?void 0:n.Components.config.keepAttributeIdsCrossPages,s=e.idMap,c=s===void 0?{}:s,d=t.get("attributes")||{},f=d.id,g=t.id,m=g??f,y;if(g)y=r.getIncrementId(g,i,e),y!==g&&t.set({id:y});else if(f){var x=i[f];if(!x||x===t)y=f;else{var w=x.page,k=t.page,S=!!w&&!!k&&w===k;y=r.getIncrementId(f,i,e),S||!o?t.setId(y):t.set({id:y})}}else y=r.getNewId(i);return m&&m!==y&&(c[m]=y),r.setListId(i,y,t),y},r.getNewId=function(t){for(var e=r.getListCount(t),n=e.toString().length+2,i=(Math.random()+1.1).toString(36).slice(-n),o="i".concat(i);t[o];)o=r.getNewId(t);return o},r.getListCount=function(t){var e=t,n=e[Ch];return(0,E.isUndefined)(n)&&(n=Object.keys(t).length,Object.defineProperty(t,Ch,{configurable:!0,writable:!0,value:n})),n},r.setListId=function(t,e,n){if(!t[e]){var i=t;i[Ch]=r.getListCount(t)+1}t[e]=n},r.getIncrementId=function(t,e,n){n===void 0&&(n={});var i=n.keepIds,o=i===void 0?[]:i,s=1,c=t;if(o.indexOf(t)<0)for(;e[c];)s++,c="".concat(t,"-").concat(s);return c},r.getList=function(t){var e,n,i;return(i=(n=(e=t.em)===null||e===void 0?void 0:e.Components)===null||n===void 0?void 0:n.componentsById)!==null&&i!==void 0?i:{}},r.checkId=function(t,e,n,i){e===void 0&&(e=[]),n===void 0&&(n={}),i===void 0&&(i={}),i.updatedIds=i.updatedIds||{};var o=(0,E.isArray)(t)?t:[t],s=i.keepIds,c=s===void 0?[]:s,d=i.idMap,f=d===void 0?{}:d,g=i.updatedIds;return o.forEach(function(m){m.attributes;var y=m.attributes,x=y===void 0?{}:y,w=m.components,k=x.id;if(k&&n[k]&&c.indexOf(k)<0){var S=r.getIncrementId(k,n);g[k]=g[k]?li(li([],g[k],!0),[m],!1):[m],f[k]=S,x.id=S,(0,E.isArray)(e)&&e.forEach(function(A){var L=A.selectors;
781L.forEach(function(D,W){D==="#".concat(k)&&(L[W]="#".concat(S))})})}w&&r.checkId(w,e,n,i)}),{updatedIds:i.updatedIds}},r.typeExtends=new Set,r})(Lb);const Mr=Y6;var X6=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),uf=function(){return uf=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},uf.apply(this,arguments)},ll="head",J6=["title","style","base","link","meta","script","noscript"],Q6=(function(a){X6(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"defaults",{get:function(){return uf(uf({},a.prototype.defaults),{type:ll,tagName:ll,draggable:!1,highlightable:!1,droppable:(function(t){var e=t.tagName;return!e||J6.includes(xr(e))})})},enumerable:!1,configurable:!0}),r.isComponent=function(t){return xr(t.tagName)===ll},r})(Mr);const t8=Q6;var e8=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),r8=(function(a){e8(r,a);function r(){var t=a!==null&&a.apply(this,arguments)||this;return t.compView=ar,t}return r.prototype.initialize=function(t){this.opts=t||{},this.config=t.config||{},this.em=this.config.em;var e=this.collection;this.listenTo(e,"add",this.addTo),this.listenTo(e,"reset",this.resetChildren),this.listenTo(e,"remove",this.removeChildren)},r.prototype.removeChildren=function(t,e,n){var i=this;n===void 0&&(n={}),t.views.forEach(function(s){if(s){var c=s.childrenView,d=s.scriptContainer;c&&c.stopListening(),n1(d),s.remove.apply(s)}});var o=t.components();o.forEach(function(s){return i.removeChildren(s,e,n)})},r.prototype.addTo=function(t){this.addToCollection(t,null,this.collection.indexOf(t))},r.prototype.addToCollection=function(t,e,n){for(var i=this,o=i.config,s=i.opts,c=i.em,d=o.frameView,f=(d==null?void 0:d.model)&&t.getView(d.model),g=s.componentTypes||(c==null?void 0:c.Components.getTypes()),m=t.get("type")||"default",y=this.compView,x=0;x<g.length;x++)if(g[x].id==m){y=g[x].view;break}var w=f||new y({model:t,config:o,componentTypes:g}),k;try{k=w.render().el}catch(D){k=document.createTextNode(""),c.logError(D)}if(e)e.appendChild(k);else{var S=this.parentEl,A=S.childNodes;if((0,E.isUndefined)(n))S.appendChild(k);else{var L=A.length==n;L&&n--,L||!A.length?S.appendChild(k):S.insertBefore(k,A[n])}}return t.opt.temporary||c==null||c.trigger(te.mount,t),k},r.prototype.resetChildren=function(t,e){var n=this;if(e===void 0&&(e={}),!e.skipViewUpdate){var i=e.previousModels;e.skipDomReset||(this.parentEl.innerHTML=""),i==null||i.forEach(function(o){return n.removeChildren(o,n.collection)}),t.each(function(o){return n.addToCollection(o)})}},r.prototype.render=function(t){var e=this,n=this.el,i=document.createDocumentFragment();return this.parentEl=t||this.el,this.collection.each(function(o){return e.addToCollection(o,i)}),n.innerHTML="",n.appendChild(i),this},r})(Ze);const Hb=r8;var n8=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}
781r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Yi=function(){return Yi=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Yi.apply(this,arguments)},i8=(function(a){n8(r,a);function r(){var t=a!==null&&a.apply(this,arguments)||this;return t.rendered=!1,t}return r.prototype.className=function(){return this.getClasses()},r.prototype.tagName=function(){return this.model.get("tagName")},r.prototype.preinitialize=function(t){t===void 0&&(t={}),this.opts=t},r.prototype.initialize=function(t){t===void 0&&(t={});var e=this.model,n=t.config||{},i=n.em,o=e.opt||{},s=this,c=s.$el,d=s.el;this.opts=t,this.modelOpt=o,this.config=n,this.em=i,this.pfx=n.stylePrefix||"",this.ppfx=n.pStylePrefix||"",this.attr=e.get("attributes"),this.classe=this.attr.class||[],this.listenTo(e,"change:style",this.updateStyle),this.listenTo(e,"change:attributes",this.renderAttributes),this.listenTo(e,"change:highlightable",this.updateHighlight),this.listenTo(e,"change:status change:locked",this.updateStatus),this.listenTo(e,"change:script rerender",this.reset),this.listenTo(e,"change:content",this.updateContent),this.listenTo(e,"change",this.handleChange),this.listenTo(e,"active",this.onActive),this.listenTo(e,"disable",this.onDisable),c.data("model",e),Mc(d,this),e.view=this,this.frameView&&e.views.push(this),this.initClasses(),this.initComponents({avoidRender:!0}),this.events=Yi(Yi({},this.constructor.getEvents()),{dragstart:"handleDragStart"}),this.delegateEvents(),!o.temporary&&this.init(this._clbObj())},Object.defineProperty(r.prototype,"__cmpStyleOpts",{get:function(){return{state:"",mediaText:""}},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"frameView",{get:function(){return this.opts.config.frameView},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"createDoc",{get:function(){var t,e,n=((t=this.frameView)===null||t===void 0?void 0:t.getDoc())||document;return!((e=this.opts.config)===null||e===void 0)&&e.useFrameDoc?n:document},enumerable:!1,configurable:!0}),r.prototype.__isDraggable=function(){var t=this,e=t.model,n=t.config,i=e.attributes.draggable;return n.draggableComponents&&i},r.prototype._clbObj=function(){var t=this,e=t.em,n=t.model,i=t.el;return{editor:e==null?void 0:e.getEditor(),model:n,el:i}},r.prototype.init=function(t){},r.prototype.removed=function(t){},r.prototype.onRender=function(t){},r.prototype.onActive=function(t){},r.prototype.onDisable=function(t){},r.prototype.remove=function(){var t;a.prototype.remove.call(this);var e=this,n=e.model,i=e.$el,o=n.views,s=this.frameView||{};return n.components().forEach(function(c){var d=c.getView(s.model);d==null||d.remove()}),(t=this.childrenView)===null||t===void 0||t.remove(),o.splice(o.indexOf(this),1),this.removed(this._clbObj()),i.data({model:"",collection:"",view:""}),this},r.prototype.handleDragStart=function(t){if(!this.__isDraggable())return!1;t.stopPropagation(),t.preventDefault();var e=this.em.getSelectedAll(),n=e.includes(this.model)?e:[this.model];this.em.Commands.run("tlb-move",{target:n,event:t})},r.prototype.initClasses=function(){var t=this.model,e=t.classes,n="change:classes";e instanceof ro&&(this.stopListening(t,n,this.initClasses),this.listenTo(t,n,this.initClasses),this.listenTo(e,"add remove change reset",this.updateClasses),e.length&&this.importClasses())},r.prototype.initComponents=function(t){t===void 0&&(t={});var e=this,n=e.model,i=e.$el,o=e.childrenView,s="change:components",c=n.get("components"),d=[n,s,this.initComponents];c instanceof nd&&(i.data("collection",c),o&&o.remove(),this.stopListening.apply(this,d),!t.avoidRender&&this.renderChildren(),this.listenTo.apply(this,d))},r.prototype.handleChange=function(){var t=this.model,e=(0,E.keys)(t.changed);if(!(e.length===1&&e[0]==="status")){t.emitUpdate();for(var n in t.changed)t.emitUpdate(n)}},r.prototype.importClasses=function(){var t=this,e=t.em,n=t.model,i=e.Selectors;i&&n.classes.forEach(function(o){return i.add(o.getName())})},r.prototype.updateStatus=function(t){t===void 0&&(t={});var e=this,n=e.em,i=e.el,o=e.ppfx,s=e.model,c=n==null?void 0:n.Canvas,d=c==null?void 0:c.config.extHl,f=s.get("status"),g="".concat(o,"selected"),m="".concat(g,"-parent"),y="".concat(o,"freezed"),x="".concat(o,"hovered"),w="".concat(o,"no-p
781ointer"),k="".concat(o,"pointer-init"),S=[g,m,y,x,w,k],A=d&&!t.noExtHl?"":g;this.$el.removeClass(S.join(" "));var L=i.getAttribute("class")||"",D=[L],W=!(c!=null&&c.hasCustomSpot(kn.Select)),j=!(c!=null&&c.hasCustomSpot(kn.Target));switch(f){case"selected":W&&D.push(A);break;case"selected-parent":j&&D.push(m);break;case"freezed":D.push(y);break;case"freezed-selected":D.push(y),W&&D.push(A);break;case"hovered":!t.avoidHover&&D.push(x);break}(0,E.isBoolean)(s.locked)&&D.push(s.locked?w:k);var et=D.filter(Boolean).join(" ");et&&i.setAttribute("class",et)},r.prototype.updateHighlight=function(){var t=this.model,e=t.get("textable"),n=t.get("highlightable")&&(e||!t.isChildOf("text"));this.setAttribute("data-gjs-highlightable",n?!0:"")},r.prototype.updateStyle=function(t,e,n){n===void 0&&(n={});var i=this,o=i.model,s=i.em;if(No(s)&&!n.inline){var c=this.__cmpStyleOpts,d=o.getStyle(Yi({inline:!0},c));!(0,E.isEmpty)(d)&&o.setStyle(d,c)}else this.setAttribute("style",o.styleToString(n))},r.prototype.updateStyles=function(){this.updateStyle()},r.prototype.updateClasses=function(){var t,e,n=((e=(t=this.model.classes).pluck)===null||e===void 0?void 0:e.call(t,"name").join(" "))||"";this.setAttribute("class",n),this.updateStatus(),this.onAttrUpdate()},r.prototype.setAttribute=function(t,e){var n=this.$el;e?n.attr(t,e):n.removeAttr(t)},r.prototype.getClasses=function(){return this.model.getClasses().join(" ")},r.prototype.updateAttributes=function(){var t=this,e=t.model,n=t.$el;t.el;var i=e.attributes,o=i.textable,s=i.type,c=Yi(Yi({id:e.getId(),"data-gjs-type":s||"default"},this.__isDraggable()&&{draggable:!0}),o&&{contenteditable:"false"});this.__clearAttributes(),this.updateStyle(),this.updateHighlight();var d=Yi(Yi({},c),e.getAttributes());(0,E.keys)(d).forEach(function(f){return d[f]===!1&&delete d[f]}),n.attr(d)},r.prototype.__clearAttributes=function(){var t=this,e=t.el,n=t.$el,i=[];(0,E.each)(e.attributes,function(o){return i.push(o.nodeName)}),i.forEach(function(o){return n.removeAttr(o)})},r.prototype.updateContent=function(){var t=this.model.content,e=this.model.components().length;this.getChildrenContainer().innerHTML=e?"":t},r.prototype.prevDef=function(t){t.preventDefault()},r.prototype.updateScript=function(){var t=this,e=t.model,n=t.em;e.get("script")&&(n==null||n.Canvas.getCanvasView().updateScript(this))},r.prototype.getChildrenContainer=function(){var t=this.el;return typeof this.getChildrenSelector=="function"?t=this.el.querySelector(this.getChildrenSelector()):this.getTemplate,t},r.prototype.getOffsetRect=function(){var t={top:0,left:0,bottom:0,right:0},e=this.el,n=0,i=0,o=function(s){var c=s.offsetParent;c?(n+=c.offsetTop,i+=c.offsetLeft,o(c)):(t.top=e.offsetTop+n,t.left=e.offsetLeft+i,t.bottom=t.top+e.offsetHeight,t.right=t.left+e.offsetWidth)};return o(e),t},r.prototype.isInViewport=function(){var t=this,e=t.el,n=t.em,i=t.frameView,o=n.Canvas.getCanvasView(),s=o.getElBoxRect(e,{local:!0}),c=i.el,d=c.clientHeight,f=c.clientWidth,g=s.y,m=s.x,y=g+s.height,x=m+s.width,w=g>=0&&g<d,k=y>0&&y<d,S=x>=0&&x<f,A=m>0&&m<=f,L=(w||k)&&(S||A);return L},r.prototype.scrollIntoView=function(t){var e;t===void 0&&(t={});var n=this.isInViewport();if(!n||t.force){var i=this.el;if(t.behavior!=="smooth"){var o=this.getOffsetRect();(e=i.ownerDocument.defaultView)===null||e===void 0||e.scrollTo(0,o.top)}else i.scrollIntoView(Yi({behavior:"smooth",block:"nearest"},t))}},r.prototype.reset=function(){var t=this,e=t.el,n=t.model;t.scriptContainer&&n.emitWithEditor(te.scriptUnmount,{component:n,view:t,el:e}),this.el="",this._ensureElement(),this._setData(),U5(e,this.el),this.render()},r.prototype._setData=function(){var t=this,e=t.model,n=t.el,i=e.components(),o=this;this.$el.data({model:e,collection:i,view:o}),Mc(n,this)},r.prototype._createElement=function(t){return this.createDoc.createElement(t)},r.prototype.renderChildren=function(){this.updateContent();var t=this.getChildrenContainer(),e=this.childrenView||new Hb({collection:this.model.get("components"),config:this.config,componentTypes:this.opts.componentTypes});e.render(t),this.childrenView=e;for(var n=Array.prototype.slice.call(e.el.childNodes),i=0,o=n.length;i<o;i++)t.appendChild(n.shift())},r.prototype.renderAttributes=function(t,e,n){n===void 0&&(n={}),!n.skipViewUpdate&&(this.updateAttributes(),this.updateClasses())},r.prototype.onAttrUpdate=function(){},r.prototype.render=function(){return this.renderAttributes(),this.modelOpt.temporary?this:(this.renderChildren(),this.updateScript(),Mc(this.el,this),this.postRender(),this)},r.prototype.postRender=function(){if(!this.modelOpt.temporary){var t=this,e=t.model,n=t.el;this.onRender(this._clbObj()),e.emitWithEditor(te.render,{component:e,view:this,el:n}),this.rendered=!0}},r.getEvents=function(){return(0,E.result)(this.prototype,"events")},r})(Ze);const ar=i8;var a8=(function(){function a(r,t){r===void 0&&(r=50);var e;this.dragging=!1,this.lastMaxHeight=0,this.zoom=1,this.rectIsInScrollIframe=!1,this.autoscrollLimit=r,this.lastMaxHeight=(e=t==null?void 0:t.lastMaxHeight)!==null&&e!==void 0?e:0,this.onScroll=t==null?void 0:t.onScroll,this.rectIsInScrollIframe=!!(t!=null&&t.rectIsInScrollIframe),(0,E.bindAll)(this,"start","autoscroll","updateClientY","stop")}return a.prototype.start=function(r,t,e){var n=this;this.eventEl=r,this.scrollEl=t,this.lastMaxHeight=(e==null?void 0:e.lastMaxHeight)||Number.POSITIVE_INFINITY,this.zoom=(e==null?void 0:e.zoom)||1,this.ignoredElement=e==null?void 0:e.ignoredElement,setTimeout(function(){n.toggleAutoscrollFx(!0),requestAnimationFrame(n.autoscroll)},0)},a.prototype.autoscroll=function(){var r=this,t,e,n=this.scrollEl;
781if(!(!this.dragging||!n)){if(this.lastClientY===void 0){setTimeout(function(){requestAnimationFrame(r.autoscroll)},50);return}var i=(t=this.lastClientY)!==null&&t!==void 0?t:0,o=this.autoscrollLimit,s=this.getEventElHeight(),c=s-o,d=0;i<o&&(d+=i-o),i>c&&(d+=i-c);var f=this.getElScrollTop(n);d=Math.min(d,this.lastMaxHeight-f),d=Math.max(d,-f),d!==0&&(n.scrollBy({top:d,behavior:"auto"}),(e=this.onScroll)===null||e===void 0||e.call(this)),requestAnimationFrame(this.autoscroll)}},a.prototype.getEventElHeight=function(){var r=this.eventEl;if(!r)return 0;var t=r.getBoundingClientRect();return t.height},a.prototype.updateClientY=function(r){var t=r.target;if(!(this.ignoredElement&&this.ignoredElement.contains(t))){var e=this.scrollEl;r.preventDefault();var n=this.rectIsInScrollIframe?0:this.getElScrollTop(e);this.lastClientY=_p(r).clientY*this.zoom-n}},a.prototype.getElScrollTop=function(r){return(r instanceof HTMLElement?r.scrollTop:r==null?void 0:r.scrollY)||0},a.prototype.toggleAutoscrollFx=function(r){this.dragging=r;var t=this.eventEl;if(t){var e=r?"on":"off",n={on:or,off:gr};n[e](t,"mousemove dragover",this.updateClientY),n[e](t,"mouseup",this.stop)}},a.prototype.stop=function(){this.toggleAutoscrollFx(!1),this.lastClientY=void 0,this.ignoredElement=void 0},a})();const Fb=a8;var $b=(function(){function a(r,t){t===void 0&&(t={}),this._dropAreaConfig={ratio:1,minUndroppableDimension:0,maxUndroppableDimension:0},this._model=r,this._dragSource=t}return Object.defineProperty(a.prototype,"model",{get:function(){return this._model},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"dragSource",{get:function(){return this._dragSource},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"dropArea",{get:function(){var r,t;return this.getParent()?(t=this.nodeDimensions)===null||t===void 0?void 0:t.getDropArea(this._dropAreaConfig):(r=this.nodeDimensions)===null||r===void 0?void 0:r.clone()},enumerable:!1,configurable:!0}),a.prototype.isWithinDropBounds=function(r,t){return!!this.dropArea&&this.dropArea.isWithinBounds(r,t)},a.prototype.equals=function(r){return!!(r!=null&&r._model)&&this._model===r._model},a.prototype.adjustDimensions=function(r){var t,e;r.topDifference===0&&r.leftDifference===0||((t=this.nodeDimensions)===null||t===void 0||t.adjustDimensions(r),(e=this.childrenDimensions)===null||e===void 0||e.forEach(function(n){return n.adjustDimensions(r)}))},a})(),o8=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),zb=(function(a){o8(r,a);function r(){var t=a!==null&&a.apply(this,arguments)||this;return t.displayCache=new Map,t}return r.prototype.getChildren=function(){var t=this;return this.model.components().map(function(e){return new t.constructor(e)})},r.prototype.getParent=function(){var t=this.model.parent();return t?new this.constructor(t):null},r.prototype.addChildAt=function(t,e,n){var i,o,s,c,d,f,g,m;n===void 0&&(n={action:"add-component"});var y=((o=(i=this.model)===null||i===void 0?void 0:i.isInstanceOf)===null||o===void 0?void 0:o.call(i,"text"))&&((c=(s=t==null?void 0:t.model)===null||s===void 0?void 0:s.get)===null||c===void 0?void 0:c.call(s,"textable"));if(y)return(m=(g=(f=(d=this.model)===null||d===void 0?void 0:d.getView)===null||f===void 0?void 0:f.call(d))===null||g===void 0?void 0:g.insertComponent)===null||m===void 0?void 0:m.call(g,t==null?void 0:t.model,{action:n.action});var x=this.model.components().add(t.model,{at:e,action:n.action});return new this.constructor(x)},r.prototype.removeChildAt=function(t,e){e===void 0&&(e={temporary:!1});var n=this.model.components().at(t);n&&this.model.components().remove(n,e)},r.prototype.indexOfChild=function(t){return this.getIndex(t)},r.prototype.getIndex=function(t){var e=this.getChildren();return e?e.findIndex(function(n){return n.model===t.model}):-1},r.prototype.canMove=function(t,e){return this.model.em.Components.canMove(this.model,t.model,e).result},r.prototype.equals=function(t){return!!(t!=null&&t._model)&&this._model.getId()===t._model.getId()},r.prototype.restNodeState=function(){this.clearState();var t=this.model;this.setContentEditable(!1),t.em.getEditing()===t&&this.disableEditing()},r.prototype.setContentEditable=function(t){this.element&&this.isTextNode()&&(this.element.contentEditable=t?"true":"false")},r.prototype.disableEditing=function(){var t,e;(e=(t=this.view)===null||t===void 0?void 0:t.disableEditing)===null||e===void 0||e.call(t)},r.prototype.clearState=function(){var t,e;(e=(t=this.model).set)===null||e===void 0||e.call(t,"status","")},r.prototype.setSelectedParentState=function(){var t,e;(e=(t=this.model).set)===null||e===void 0||e.call(t,"status","selected-parent")},r.prototype.isTextNode=function(){var t,e;return(e=(t=this.model).isInstanceOf)===null||e===void 0?void 0:e.call(t,"text")},r.prototype.isTextable=function(){var t,e;return(e=(t=this.model).get)===null||e===void 0?void 0:e.call(t,"textable")},r}
781)($b),s8=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),l8=(function(a){s8(r,a);function r(){var t=a!==null&&a.apply(this,arguments)||this;return t._dropAreaConfig={ratio:.8,minUndroppableDimension:1,maxUndroppableDimension:15},t}return Object.defineProperty(r.prototype,"view",{get:function(){var t,e;return(e=(t=this.model).getView)===null||e===void 0?void 0:e.call(t)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"element",{get:function(){var t,e;return(e=(t=this.model).getEl)===null||e===void 0?void 0:e.call(t)},enumerable:!1,configurable:!0}),r})(zb);const Ub=l8;var c8=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),d8=(function(a){c8(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.canMove=function(t,e){var n=this,i=t._dragSource,o=i.model,s=i.content,c=i.dragDef,d=!o||!this.isSourceSameSymbol(o),f=((0,E.isFunction)(s)?c:s)||t.model;return Array.isArray(f)?d&&f.every(function(g,m){return n.canMoveSingleContent(g,e+m)}):d&&this.canMoveSingleContent(f,e)},r.prototype.canMoveSingleContent=function(t,e){return this.model.em.Components.canMove(this.model,t,e).result},r.prototype.addChildAt=function(t,e){var n=t._dragSource,i=n.content,o=this.isTextNode()&&t.isTextable(),s=(0,E.isFunction)(i)?i():i;return Array.isArray(s)?this.addMultipleChildren(s,e,o):this.addSingleChild(s,e,o)},r.prototype.addSingleChild=function(t,e,n){var i,o,s,c,d;return n?d=(c=(s=(o=(i=this.model)===null||i===void 0?void 0:i.getView)===null||o===void 0?void 0:o.call(i))===null||s===void 0?void 0:s.insertComponent)===null||c===void 0?void 0:c.call(s,t,{action:"add-component"}):d=this.model.components().add(t,{at:e,action:"add-component"}),new this.constructor(d)},r.prototype.addMultipleChildren=function(t,e,n){var i=this,o;return t.forEach(function(s,c){o=i.addSingleChild(s,e+c,n)}),o},r.prototype.isSourceSameSymbol=function(t){if(Hi(this.model)){var e=ed(this.model),n=Qo(e)?e:Oi(e);if(n===t)return!0}return!1},Object.defineProperty(r.prototype,"content",{set:function(t){this._dragSource.content=t},enumerable:!1,configurable:!0}),r})(Ub);const Wb=d8;var aa;(function(a){a.Vertical="Vertical",a.Horizontal="Horizontal",a.BothDirections="BothDirections"})(aa||(aa={}));var Ug=function(){return Ug=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Ug.apply(this,arguments)},u8=(function(){function a(r,t){var e=this;this.em=r,this.canvas=r.Canvas;var n=t||this.canvas.getFrames().map(function(o){return o.getComponent().getEl()}),i=Array.isArray(n)?n:[n];this.el=i[0],this.counter=0,(0,E.bindAll)(this,"handleDragEnter","handleDragOver","handleDrop","handleDragLeave","handleDragEnd"),i.forEach(function(o){return e.toggleEffects(o,!0)})}return a.prototype.toggleEffects=function(r,t){var e={on:or,off:gr},n=t?"on":"off";e[n](r,"dragenter",this.handleDragEnter),e[n](r,"dragover",this.handleDragOver),e[n](r,"drop",this.handleDrop),e[n](r,"dragleave",this.handleDragLeave)},a.prototype.__customTglEff=function(r){var t,e=r?or:gr,n=this.el.ownerDocument,i=(t=n.defaultView)===null||t===void 0?void 0:t.frameElement,o=function(s){return{legacyOnStartSort:function(){or(i,"pointermove",s.onMove)},legacyOnEnd:function(){gr(i,"pointermove",s.onMove)},customTarget:function(c){var d=c.event;return n.elementFromPoint(d.clientX,d.clientY)}}};
781this.getSorterOptions=r?o:void 0,e(i,"pointerenter",this.handleDragEnter),e(i,"pointermove",this.handleDragOver),e(document,"pointerup",this.handleDrop),e(i,"pointerout",this.handleDragLeave)},a.prototype.startCustom=function(){this.__customTglEff(!0)},a.prototype.endCustom=function(r){this.over?this.endDrop(r):this.__customTglEff(!1)},a.prototype.endDrop=function(r,t){var e=this,n=e.em,i=e.dragStop;this.counter=0,i&&i(r||!this.over),this.__customTglEff(!1),n.trigger(ea.dragEnd,t)},a.prototype.handleDragLeave=function(r){this.updateCounter(-1,r)},a.prototype.updateCounter=function(r,t){this.counter+=r,this.counter===0&&this.endDrop(!0,t)},a.prototype.handleDragEnter=function(r){var t=this,e,n,i=this,o=i.em,s=i.canvas,c=r.dataTransfer,d=o.get("dragSource");if(!(!(d!=null&&d.content)&&!s.getConfig().allowExternalDrop)&&(this.updateCounter(1,r),!this.over)){this.over=!0;var f=o.Utils,g=(d==null?void 0:d.content)||"<br>",m;if(o.stopDefault(),o.inAbsoluteMode()){var y=o.Components.getWrapper(),x=y.append({})[0],w=o.Commands.run("core:component-drag",{event:r,guidesInfo:1,center:1,target:x,onEnd:function(j,et,z){var B=z.cancelled,X;if(!B&&g){X=y.append(g)[0];var Z=s.getOffset(),F=x.getStyle(),st=F.top,q=F.left,Ct=F.position,_=Au(j.target),Q=parseInt("".concat(parseFloat(q)+_.x-Z.left),10),J=parseInt("".concat(parseFloat(st)+_.y-Z.top),10);X.addStyle({left:Q+"px",top:J+"px",position:Ct})}t.handleDragEnd(X,c),x.remove()}});m=function(j){return w.stop(r,{cancel:j})},this.setAbsoluteDragContent=function(j){return g=j}}else{var k=new f.ComponentSorter({em:o,treeClass:Wb,containerContext:{container:this.el,containerSel:"*",itemSel:"*",pfx:"gjs-",placeholderElement:s.getPlacerEl(),document:this.el.ownerDocument},dragBehavior:{dragDirection:aa.BothDirections,nested:!0},positionOptions:{windowMargin:1,canvasRelative:!0},eventHandlers:{legacyOnEndMove:this.handleDragEnd}}),S=(e=this.getSorterOptions)===null||e===void 0?void 0:e.call(this,k);S&&(k.eventHandlers.legacyOnStartSort=S.legacyOnStart,k.eventHandlers.legacyOnEnd=S.legacyOnEnd,k.containerContext.customTarget=S.customTarget);var A=o.Components.getShallowWrapper(),L=A==null?void 0:A.append(g,{temporary:!0})[0],D=L==null?void 0:L.getEl(),W=[{element:D,dragSource:Ug({model:L},d)}];k.startSort(W),this.sorter=k,this.draggedNode=(n=k.sourceNodes)===null||n===void 0?void 0:n[0],m=function(j){j?k.cancelDrag():k.endDrag()}}this.dragStop=m,o.trigger(ea.dragEnter,c,g)}},a.prototype.handleDragEnd=function(r,t){var e=this.em;this.over=!1,r&&(e.set("dragResult",r),e.trigger(ea.drop,t,r)),e.runDefault({preserveSelected:1})},a.prototype.handleDragOver=function(r){r.preventDefault(),this.em.trigger(ea.dragOver,r)},a.prototype.handleDrop=function(r){var t;r.preventDefault();var e=r.dataTransfer,n=this.getContentByData(e).content||"";this.draggedNode&&(this.draggedNode.content=n),(t=this.setAbsoluteDragContent)===null||t===void 0||t.call(this,n),this.endDrop(!n,r)},a.prototype.getContentByData=function(r){var t=this.em,e=(r==null?void 0:r.types)||[],n=(r==null?void 0:r.files)||[],i=t.get("dragSource"),o=(r==null?void 0:r.getData("text"))||"";if(n.length){o=[];for(var s=0;s<n.length;s++){var c=n[s],d=c.type.split("/")[0];d=="image"&&o.push({type:d,file:c,attributes:{alt:c.name}})}}else if(i!=null&&i.content)o=i.content;else if((0,E.indexOf)(e,"text/html")>=0)o=r&&r.getData("text/html").replace(/<\/?meta[^>]*>/g,"");
781else if((0,E.indexOf)(e,"text/uri-list")>=0)o={type:"link",attributes:{href:o},content:o};else if((0,E.indexOf)(e,"text/json")>=0){var f=r&&r.getData("text/json");f&&(o=JSON.parse(f))}else e.length===1&&e[0]==="text/plain"&&(o="<div>".concat(o,"</div>"));var g={content:o,setContent:function(m){g.content=m}};return t.trigger(ea.dragData,r,g),g},a})();const f8=u8;var p8=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Un=function(){return Un=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Un.apply(this,arguments)},h8=function(a,r,t){if(t||arguments.length===2)for(var e=0,n=r.length,i;e<n;e++)(i||!(e in r))&&(i||(i=Array.prototype.slice.call(r,0,e)),i[e]=r[e]);return a.concat(i||Array.prototype.slice.call(r))},g8=(function(a){p8(r,a);function r(t,e){var n=a.call(this,{model:t})||this;n.dragging=!1,n.loaded=!1,n.lastMaxHeight=0,n.tools={},(0,E.bindAll)(n,"startAutoscroll","stopAutoscroll","_emitUpdate");var i=n.el;n.module._config=Un(Un({},n.config||{}),{frameView:n}),n.frameWrapView=e,n.showGlobalTools=(0,E.debounce)(n.showGlobalTools.bind(n),50);var o=n.getCanvasModel();return n.listenTo(t,"change:head",n.updateHead),n.listenTo(o,"change:styles",n.renderStyles),t.view=n,Mc(i,n),n.autoScroller=new Fb(n.config.autoscrollLimit,{rectIsInScrollIframe:!0,onScroll:function(){var s=n.getGlobalToolsEl();s.style.opacity="0",n.showGlobalTools(),n.em.Canvas.spots.refreshDbn()}}),n}return Object.defineProperty(r.prototype,"tagName",{get:function(){return"iframe"},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"attributes",{get:function(){return{allowfullscreen:"allowfullscreen"}},enumerable:!1,configurable:!0}),r.prototype.getBoxRect=function(){var t=this,e=t.el,n=t.module,i=n.getCanvasView(),o=n.getCoords(),s=e.getBoundingClientRect(),c=i.getCanvasOffset(),d=i.getViewportDelta(),f=n.getZoomMultiplier(),g=(s.x-c.left-d.x-o.x)*f,m=(s.y-c.top-d.y-o.y)*f,y=s.width*f,x=s.height*f;return{x:g,y:m,width:y,height:x}},r.prototype.updateHead=function(){var t=this.model,e=this.getHead(),n=[],i=[],o=t.head,s=t.previous("head"),c=function(f){return f===void 0&&(f={}),Object.keys(f).sort().map(function(g){return"[".concat(g,'="').concat(f[g],'"]')}).join("")},d=function(f,g,m){f.forEach(function(y){var x=y.tag,w=y.attributes,k=g.some(function(S){return S.tag===x&&c(S.attributes)===c(w)});!k&&m.push(y)})};d(o,s,i),d(s,o,n),n.forEach(function(f){var g,m=e.querySelector("".concat(f.tag).concat(c(f.attributes)));(g=m==null?void 0:m.parentNode)===null||g===void 0||g.removeChild(m)}),f0(e,i)},r.prototype.getEl=function(){return this.el},r.prototype.getCanvasModel=function(){var t;return(t=this===null||this===void 0?void 0:this.em.Canvas)===null||t===void 0?void 0:t.getModel()},r.prototype.getWindow=function(){return this.getEl().contentWindow},r.prototype.getDoc=function(){return this.getEl().contentDocument},r.prototype.getHead=function(){return this.getDoc().querySelector("head")},r.prototype.getBody=function(){return this.getDoc().querySelector("body")},r.prototype.getRootType=function(){return this.model.root.get("type")||"wrapper"},r.prototype.getWrapper=function(){var t;return((t=this.wrapper)===null||t===void 0?void 0:t.el)||this.getBody().querySelector('[data-gjs-type="'.concat(this.getRootType(),'"]'))},r.prototype.getJsContainer=function(){return this.jsContainer||(this.jsContainer=Vi("div",{class:"".concat(this.ppfx,"js-cont")})),this.jsContainer},r.prototype.getToolsEl=function(){var t;return(t=this.frameWrapView)===null||t===void 0?void 0:t.elTools},r.prototype.getGlobalToolsEl=function(){return this.em.Canvas.getGlobalToolsEl()},r.prototype.getHighlighter=function(){return this._getTool("[data-hl]")},r.prototype.getBadgeEl=function(){return this._getTool("[data-badge]")},r.prototype.getOffsetViewerEl=function(){return this._getTool("[data-offset]")},r.prototype.getComponentView=function(t){var e=this.em.Components,n=t.get("type")||"default",i=e.getTypes(),o=(e.getType(n)||e.getType("default")||{}).view,s=o===void 0?ar:o;return s.getEvents||(s.getEvents=ar.getEvents),{dt:i,view:s}},r.prototype.getRect=function(){return this.rect||(this.rect=this.el.getBoundingClientRect()),this.rect},r.prototype.getOffsetRect=function(){var t=this.el,e=this.getBody(),n=e.scrollTop,i=e.scrollLeft,o=t.offsetHeight,s=t.offsetWidth;return{top:t.offsetTop,left:t.offsetLeft,height:o,width:s,scrollTop:n,scrollLeft:i,scrollBottom:n+o,scrollRight:i+s}},r.prototype._getTool=function(t){var e=this.tools,n=this.getToolsEl();return e[t]||(e[t]=n.querySelector(t)),e[t]},r.prototype.remove=function(){for(var t,e,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return this._toggleEffects(!1),this.tools={},(t=this.refComponentView)===null||t===void 0||t.remove(),this.refComponentView=void 0,(e=this.wrapper)===null||e===void 0||e.remove(),Ei.prototype.remove.apply(this,n),this},r.prototype.startAutoscroll=function(){this.autoScroller.start(this.el,this.getWindow(),{lastMaxHeight:this.getWrapper().offsetHeight-this.el.offsetHeight,zoom:this.em.getZoomDecimal(),ignoredElement:this.em.Canvas.getSpotsEl()})},r.prototype.stopAutoscroll=function(){this.autoScroller.stop()},r.prototype.showGlobalTools=function(){this.getGlobalToolsEl().style.opacity=""},r.prototype.render=function(){var t=this,e=t.$el,n=t.ppfx,i=t.em;return e.attr({class:"".concat(n,"frame")}),this.renderScripts(),i.trigger("frame:render",this),this},r.prototype.renderScripts=function(){var t=this,e=this,n=e.el,i=e.model,o=e.em,s="frame:load",c={el:n,model:i,view:this},d=this.getCanvasModel(),f=function(g){var m;if(g.length>0){var y=g.shift(),x=Vi("script",Un({type:"text/javascript"},(0,E.isString)(y)?{src:y}:y));(m=n.contentDocument)===null||m===void 0||m.head.appendChild(x),x.hasAttribute("nomodule")&&"noModule"in HTMLScriptElement.prototype?f(g):x.onerror=x.onload=f.bind(null,g)}else o==null||o.trigger(ea.frameLoadHead,c),t.renderBody(),o==null||o.trigger(ea.frameLoadBody,c),o==null||o.trigger(s,c)};n.onload=function(){var g=t.config.frameContent;if(g){var m=t.getDoc();m.open(),m.write(g),m.close()}c.window=t.getWindow(),o==null||o.trigger("".concat(s,":before"),c),o==null||o.trigger(ea.frameLoad,c),t.renderHead(),f(h8([],d.get("scripts"),!0))}},r.prototype.renderStyles=function(t){t===void 0&&(t={});var e=this.getHead(),n=this.getCanvasModel(),i=function(g){return g===void 0&&(g=[]),g.map(function(m){return{tag:"link",attributes:Un({rel:"stylesheet"},(0,E.isString)(m)?{href:m}:m)}})},o=i(t.prev||n.previous("styles")),s=i(n==null?void 0:n.get("styles")),c=[],d=[],f=function(g,m,y){g.forEach(function(x){var w=x.attributes.href,k=m.some(function(S){return S.attributes.href===w});!k&&y.push(x)})};
781f(s,o,d),f(o,s,c),c.forEach(function(g){var m,y=e.querySelector('link[href="'.concat(g.attributes.href,'"]'));(m=y==null?void 0:y.parentNode)===null||m===void 0||m.removeChild(y)}),f0(e,d)},r.prototype.renderHead=function(){var t,e=this,n=e.model,i=e.em,o=n.root,s=(t=i==null?void 0:i.Components)===null||t===void 0?void 0:t.getType(ll).view;s&&(this.headView=new s({el:this.getHead(),model:o.head,config:Un(Un({},o.config),{frameView:this})}).render())},r.prototype.renderBody=function(){var t=this,e=this,n=e.config,i=e.em,o=e.model,s=e.ppfx,c=this.getBody(),d=this.getWindow(),f=o.hasAutoHeight(),g=i.config;d._isEditor=!0,this.renderStyles({prev:[]});var m="#ffca6f",y=this.getRootType();Jd(c,`<style> 782 `.concat(g.baseCss||n.frameStyle||"",` 783 784 `).concat(f?"body { overflow: hidden }":"",` 785 786 [data-gjs-type="`).concat(y,`"] { 787 `).concat(f?"":"min-height: 100vh;",` 788 padding-top: 0.001em; 789 } 790 791 .`).concat(s,`dashed *[data-gjs-highlightable] { 792 outline: 1px dashed rgba(170,170,170,0.7); 793 outline-offset: -2px; 794 } 795 796 .`).concat(s,`selected { 797 outline: 2px solid #3b97e3 !important; 798 outline-offset: -2px; 799 } 800 801 .`).concat(s,`selected-parent { 802 outline: 2px solid `).concat(m,` !important 803 } 804 805 .`).concat(s,`no-select { 806 user-select: none; 807 -webkit-user-select:none; 808 -moz-user-select: none; 809 } 810 811 .`).concat(s,`freezed { 812 opacity: 0.5; 813 pointer-events: none; 814 } 815 816 .`).concat(s,`no-pointer { 817 pointer-events: none; 818 } 819 820 .`).concat(s,`pointer-init { 821 pointer-events: initial; 822 } 823 824 .`).concat(s,`plh-image { 825 background: #f5f5f5; 826 border: none; 827 height: 100px; 828 width: 100px; 829 display: block; 830 outline: 3px solid #ffca6f; 831 cursor: pointer; 832 outline-offset: -2px 833 } 834 835 .`).concat(s,`grabbing { 836 cursor: grabbing; 837 cursor: -webkit-grabbing; 838 } 839 840 .`).concat(s,`is__grabbing { 841 overflow-x: hidden; 842 } 843 844 .`).concat(s,`is__grabbing, 845 .`).concat(s,`is__grabbing * { 846 cursor: grabbing !important; 847 } 848 849 `).concat(g.canvasCss||"",` 850 `).concat(g.protectedCss||"",` 851 </style>`));var x=o.root,w=this.getComponentView(x).view;w&&((0,E.isFunction)(n.customRenderer)?n.customRenderer({editor:i.Editor,frame:o,window:d,frameView:this,onMount:function(k){t.wrapper=k,t._onRootMount(k)}}):(this.wrapper=new w({model:x,config:Un(Un({},x.config),{em:i,frameView:this})}).render(),this._onRootMount(this.wrapper)))},r.prototype._onRootMount=function(t){var e=this,n,i=this,o=i.config,s=i.em,c=i.model,d=this.getDoc(),f=d.body;Jd(f,t.el),Jd(f,new Fg({collection:c.getStyles(),config:Un(Un({},s.Css.getConfig()),{frameView:this})}).render().el),Jd(f,this.getJsContainer()),or(f,"click",function(g){var m;return g&&((m=g.target)===null||m===void 0?void 0:m.tagName)=="A"&&g.preventDefault()}),or(f,"submit",function(g){return g&&g.preventDefault()}),[{event:"keydown keyup keypress",class:"KeyboardEvent"},{event:"mousedown mousemove mouseup",class:"MouseEvent"},{event:"pointerdown pointermove pointerup",class:"PointerEvent"},{event:"wheel",class:"WheelEvent",opts:{passive:!o.infiniteCanvas}}].forEach(function(g){return g.event.split(" ").forEach(function(m){d.addEventListener(m,function(y){return e.el.dispatchEvent(W5(y,g.class))},g.opts)})}),this._toggleEffects(!0),l1(s)&&(this.droppable=new f8(s,(n=this.wrapper)===null||n===void 0?void 0:n.el)),this.renderRefComponent(t),this.loaded=!0,c.trigger("loaded")},r.prototype.renderRefComponent=function(t){var e=this.model,n=e.refComponent;if(n){var i=this.getComponentView(n),o=i.dt,s=i.view,c=n.getView(e)||new s({model:n,config:Un(Un({},n.config),{em:this.em,frameView:this}),componentTypes:o});this.refComponentView=c.render(),t.getChildrenContainer().appendChild(c.el)}},r.prototype._toggleEffects=function(t){var e=t?or:gr,n=this.getWindow();n&&e(n,"".concat(V5," resize"),this._emitUpdate)},r.prototype._emitUpdate=function(){this.model._emitUpdated()},r})(Ei);const v8=g8;var Ws=function(){return Ws=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];
851for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Ws.apply(this,arguments)},xi=function(){return{x:0,y:0}},E0=["x","y"],m8=(function(){function a(r){return r===void 0&&(r={}),this.opts={snapGuides:{x:5,y:5},snapOffset:5,scale:1},(0,E.bindAll)(this,"drag","stop","keyHandle","handleScroll"),this.setOptions(r),this.delta=xi(),this.lastScroll=xi(),this.lastScrollDiff=xi(),this.startPointer=xi(),this.startPosition=xi(),this.globScrollDiff=xi(),this.currentPointer=xi(),this.position=xi(),this.guidesStatic=[],this.guidesTarget=[],this.docs=[],this}return a.prototype.setOptions=function(r){r===void 0&&(r={}),this.opts=Ws(Ws({},this.opts),r)},a.prototype.toggleDrag=function(r){var t=this.getDocumentEl(),e=this.getContainerEl(),n=this.getWindowEl(),i=r?"on":"off",o={on:or,off:gr};o[i](e,"mousemove dragover",this.drag),o[i](t,"mouseup dragend touchend",this.stop),o[i](t,"keydown",this.keyHandle),o[i](n,"scroll",this.handleScroll)},a.prototype.handleScroll=function(){var r=this,t=r.lastScroll,e=r.delta,n=this.getScrollInfo(),i={x:n.x-t.x,y:n.y-t.y};this.move(e.x+i.x,e.y+i.y),this.lastScrollDiff=i},a.prototype.start=function(r){var t=this.opts,e=t.onStart;this.toggleDrag(!0),this.startPointer=this.getPointerPos(r),this.guidesStatic=(0,E.result)(t,"guidesStatic")||[],this.guidesTarget=(0,E.result)(t,"guidesTarget")||[],(0,E.isFunction)(e)&&e(r,this),this.startPosition=this.getStartPosition(),this.lastScrollDiff=xi(),this.globScrollDiff=xi(),this.drag(r)},a.prototype.drag=function(r){var t=this,e=this,n=e.opts,i=e.lastScrollDiff,o=e.globScrollDiff,s=n.onDrag,c=this.startPointer,d=this.getPointerPos(r),f={x:o.x+i.x,y:o.y+i.y};this.globScrollDiff=f;var g={x:d.x-c.x+f.x,y:d.y-c.y+f.y};this.lastScrollDiff=xi();var m=function(A){E0.forEach(function(L){return A[L]=A[L]*(0,E.result)(n,"scale")}),t.delta=A,t.move(A.x,A.y),(0,E.isFunction)(s)&&s(r,t)},y=Ws({},g);if(this.currentPointer=d,this.lastScroll=this.getScrollInfo(),m(g),this.guidesTarget.length){var x=this.snapGuides(y),w=x.newDelta,k=x.trgX,S=x.trgY;(k||S)&&m(w)}r.which===0&&this.stop(r)},a.prototype.snapGuides=function(r){var t=this,e=Ws({},r),n=this,i=n.trgX,o=n.trgY;return this.guidesTarget.forEach(function(s){s.x&&t.trgX||s.y&&t.trgY||(s.active=!1,t.guidesStatic.forEach(function(c){if(!(s.y&&c.x||s.x&&c.y)){var d=s.y&&c.y,f=d?"y":"x",g=s[f],m=c[f],y=r[f],x=d?o:i;if(t.isPointIn(g,m,{axis:f})&&(0,E.isUndefined)(x)){var w=y-(g-m);t.setGuideLock(s,w)}}}))}),i=this.trgX,o=this.trgY,E0.forEach(function(s){var c=s.toUpperCase(),d=t["trg".concat(c)];d&&!t.isPointIn(r[s],d.lock,{axis:s})&&(t.setGuideLock(d,null),d=null),d&&!(0,E.isUndefined)(d.lock)&&(e[s]=d.lock)}),{newDelta:e,trgX:this.trgX,trgY:this.trgY}},a.prototype.isPointIn=function(r,t,e){var n,i=e===void 0?{}:e,o=i.offset,s=i.axis,c=this.opts,d=c.snapGuides,f=d===void 0?{}:d,g=c.snapOffset,m=g===void 0?0:g,y=s==="x"?f.x:s==="y"?f.y:void 0,x=y===0?0:(n=o??y)!==null&&n!==void 0?n:m;return x===0?!1:r>=t&&r<=t+x||r<=t&&r>=t-x},a.prototype.setGuideLock=function(r,t){var e=(0,E.isUndefined)(r.x)?"Y":"X",n="trg".concat(e);return t!==null?(r.active=!0,r.lock=t,this[n]=r):(delete r.active,delete r.lock,delete this[n]),r},a.prototype.stop=function(r,t){t===void 0&&(t={});var e=this.delta,n=!!t.cancel,i=n?0:e.x,o=n?0:e.y;this.toggleDrag(),this.move(i,o,!0);var s=this.opts.onEnd;(0,E.isFunction)(s)&&s(r,this,{cancelled:n})},a.prototype.keyHandle=function(r){rb(r)&&this.stop(r,{cancel:!0})},a.prototype.move=function(r,t,e){var n=this,i=n.el,o=n.opts,s=this.startPosition;if(s){var c=o.setPosition,d=s.x+r,f=s.y+t;this.position={x:d,y:f,end:e},(0,E.isFunction)(c)&&c(this.position),i&&(i.style.left="".concat(d,"px"),i.style.top="".concat(f,"px"))}},a.prototype.getContainerEl=function(){var r=this.opts.container;return r?[r]:this.getDocumentEl()},a.prototype.getWindowEl=function(){var r=this.getContainerEl();return r.map(function(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow})},a.prototype.getDocumentEl=function(r){var t=this.opts.doc;if(r=r||this.el,!this.docs.length){var e=[document];r&&e.push(r.ownerDocument),t&&e.push(t),this.docs=e}return this.docs},a.prototype.getPointerPos=function(r){var t=this.opts.getPointerPosition,e=_p(r);return t?t(r):{x:e.clientX,y:e.clientY}},a.prototype.getStartPosition=function(){var r=this,t=r.el,e=r.opts,n=e.getPosition,i=xi();return(0,E.isFunction)(n)?i=n():t&&(i={x:parseFloat(t.style.left),y:parseFloat(t.style.top)}),i},a.prototype.getScrollInfo=function(){var r=this.opts.doc,t=r&&r.body;return{y:t?t.scrollTop:0,x:t?t.scrollLeft:0}},a.prototype.detectAxisLock=function(r,t){var e=r,n=t,i=Math.abs(e),o=Math.abs(n);if(n>=i||n<=-i)return"x";if(e>o||e<-o)return"y"},a})();const Ap=m8;
851var y8=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Zs=function(){return Zs=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Zs.apply(this,arguments)},b8=(function(a){y8(r,a);function r(t,e){var n=a.call(this,{model:t})||this;return(0,E.bindAll)(n,"onScroll","frameLoaded","updateOffset","remove","startDrag"),Zs(Zs({},t.config),{frameWrapView:n}),n.cv=e,n.frame=new v8(t,n),n.classAnim="".concat(n.ppfx,"frame-wrapper--anim"),n.updateOffset=(0,E.debounce)(n.updateOffset.bind(n),0),n.updateSize=(0,E.debounce)(n.updateSize.bind(n),0),n.listenTo(t,"loaded",n.frameLoaded),n.listenTo(t,"change:x change:y",n.updatePos),n.listenTo(t,"change:width change:height",n.updateSize),n.listenTo(t,"destroy remove",n.remove),n.updatePos(),n.setupDragger(),n}return r.prototype.events=function(){return{"click [data-action-remove]":"remove","mousedown [data-action-move]":"startDrag"}},r.prototype.setupDragger=function(){var t=this,e=this,n=e.module,i=e.model,o,s,c,d=function(f){n.toggleFramesEvents(f)};this.dragger=new Ap({onStart:function(){var f=i.attributes,g=f.x,m=f.y;c=t.em.getZoomMultiplier(),o=g,s=m,d(!1)},onEnd:function(){return d(!0)},setPosition:function(f){i.set({x:o+f.x*c,y:s+f.y*c})}})},r.prototype.startDrag=function(t){var e;t&&((e=this.dragger)===null||e===void 0||e.start(t))},r.prototype.__clear=function(t){var e=this.frame;e&&e.remove(t),n1(this.elTools)},r.prototype.remove=function(t){var e=this,n;return(n=this.sizeObserver)===null||n===void 0||n.disconnect(),this.__clear(t),Ei.prototype.remove.apply(this,t),["frame","dragger","cv","elTools"].forEach(function(i){return e[i]=0}),this},r.prototype.updateOffset=function(){var t,e=this,n=e.em,i=e.$el,o=e.frame;!n||n.destroyed||(n.runDefault({preserveSelected:1}),i.removeClass(this.classAnim),(t=o==null?void 0:o.model)===null||t===void 0||t._emitUpdated())},r.prototype.updatePos=function(t){var e=this,n=e.model,i=e.el,o=n.attributes,s=o.x,c=o.y,d=i.style;this.frame.rect=void 0,d.left=isNaN(s)?s:"".concat(s,"px"),d.top=isNaN(c)?c:"".concat(c,"px"),t&&this.updateOffset()},r.prototype.updateSize=function(){this.updateDim()},r.prototype.updateDim=function(){var t=this,e=t.em,n=t.el,i=t.$el,o=t.model,s=t.classAnim,c=t.frame;if(c){c.rect=void 0,i.addClass(s);var d=this.__handleSize(),f=d.noChanges,g=d.width,m=d.height;((0,E.isNull)(g)||(0,E.isNull)(m))&&o.set(Zs(Zs({},g?{}:{width:n.offsetWidth}),m?{}:{height:n.offsetHeight}),{silent:1}),e.stopDefault({preserveSelected:1}),f?this.updateOffset():setTimeout(this.updateOffset,350)}},r.prototype.onScroll=function(){var t=this,e=t.frame,n=t.em;n.trigger("frame:scroll",{frame:e,body:e.getBody(),target:e.getWindow()})},r.prototype.frameLoaded=function(){var t=this,e=t.frame;t.config,e.getWindow().onscroll=this.onScroll,this.updateDim()},r.prototype.__handleSize=function(){var t,e="px",n=this,i=n.model,o=n.el,s=o.style,c=i.attributes,d=c.width,f=c.height,g=s.width||"",m=s.height||"",y=d||"",x=f||"",w=g==y&&m==x,k=(0,E.isNumber)(y)?"".concat(y).concat(e):y,S=(0,E.isNumber)(x)?"".concat(x).concat(e):x;if(s.width=k,(t=this.sizeObserver)===null||t===void 0||t.disconnect(),i.hasAutoHeight()){var A=this.frame.el,L=A.contentDocument;if(L){var D=new ResizeObserver(function(){requestAnimationFrame(function(){var W=parseFloat(i.get("minHeight"))||0,j=Math.max(L.body.scrollHeight,W);s.height="".concat(j,"px")})});D.observe(L.body),this.sizeObserver=D}}else s.height=S,delete this.sizeObserver;return{noChanges:w,width:d,height:f,newW:y,newH:x}},r.prototype.render=function(){var t=this,e=t.frame,n=t.$el,i=t.ppfx,o=t.cv,s=t.model,c=t.el,d=s.attributes.onRender;this.__clear(),this.__handleSize(),e.render(),n.empty().attr({class:"".concat(i,"frame-wrapper")}).append(` 852 <div class="`.concat(i,`frame-wrapper__top gjs-two-color" data-frame-top> 853 <div class="`).concat(i,`frame-wrapper__name" data-action-move> 854 `).concat(s.get("name")||"",` 855 </div> 856 <div class="`).concat(i,`frame-wrapper__top-r"> 857 <div class="`).concat(i,`frame-wrapper__icon" data-action-remove style="display: none"> 858 <svg viewBox="0 0 24 24">
858<path d="M19 4h-3.5l-1-1h-5l-1 1H5v2h14M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12z"></path></svg> 859 </div> 860 </div> 861 </div> 862 <div class="`).concat(i,`frame-wrapper__right" data-frame-right></div> 863 <div class="`).concat(i,`frame-wrapper__left" data-frame-left></div> 864 <div class="`).concat(i,`frame-wrapper__bottom" data-frame-bottom></div> 865 `)).append(e.el);var f=Vi("div",{class:"".concat(i,"tools"),style:"pointer-events:none; display: none"},` 866 <div class="`.concat(i,`highlighter" data-hl></div> 867 <div class="`).concat(i,`badge" data-badge></div> 868 <div class="`).concat(i,`placeholder"> 869 <div class="`).concat(i,`placeholder-int"></div> 870 </div> 871 <div class="`).concat(i,`ghost"></div> 872 <div class="`).concat(i,`toolbar" style="pointer-events:all"></div> 873 <div class="`).concat(i,`resizer"></div> 874 <div class="`).concat(i,`offset-v" data-offset> 875 <div class="gjs-marginName" data-offset-m> 876 <div class="gjs-margin-v-el gjs-margin-v-top" data-offset-m-t></div> 877 <div class="gjs-margin-v-el gjs-margin-v-bottom" data-offset-m-b></div> 878 <div class="gjs-margin-v-el gjs-margin-v-left" data-offset-m-l></div> 879 <div class="gjs-margin-v-el gjs-margin-v-right" data-offset-m-r></div> 880 </div> 881 <div class="gjs-paddingName" data-offset-m> 882 <div class="gjs-padding-v-el gjs-padding-v-top" data-offset-p-t></div> 883 <div class="gjs-padding-v-el gjs-padding-v-bottom" data-offset-p-b></div> 884 <div class="gjs-padding-v-el gjs-padding-v-left" data-offset-p-l></div> 885 <div class="gjs-padding-v-el gjs-padding-v-right" data-offset-p-r></div> 886 </div> 887 </div> 888 <div class="`).concat(i,`offset-fixed-v"></div> 889 `));this.elTools=f;var g=o==null?void 0:o.toolsWrapper;return g&&g.appendChild(f),d&&d({el:c,elTop:c.querySelector("[data-frame-top]"),elRight:c.querySelector("[data-frame-right]"),elBottom:c.querySelector("[data-frame-bottom]"),elLeft:c.querySelector("[data-frame-left]"),frame:s,frameWrapperView:this,remove:this.remove,startDrag:this.startDrag}),this},r})(Ei);const x8=b8;var w8=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),_8=(function(a){w8(r,a);function r(t,e){t===void 0&&(t={});var n=a.call(this,t,!0)||this;return n.listenTo(n.collection,"reset",n.render),n.canvasView=e.canvasView,n._module=e.module,n}return r.prototype.onRemoveBefore=function(t,e){e===void 0&&(e={}),t.forEach(function(n){return n.remove(e)})},r.prototype.onRender=function(){var t=this,e=t.$el,n=t.ppfx;e.attr({class:"".concat(n,"frames")})},r.prototype.clearItems=function(){var t=this.viewCollection||[];t.forEach(function(e){return e.remove()}),this.viewCollection=[]},r.prototype.renderView=function(t,e){return new x8(t,this.canvasView)},r})(B_);const C8=_8;var k8=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),ff=function(){return ff=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},ff.apply(this,arguments)},S8=(function(a){k8(r,a);function r(t){var e=a.call(this,{model:t})||this;e.ready=!1,(0,E.bindAll)(e,"clearOff","onKeyPress","onWheel","onPointer");var n=e,i=n.em,o=n.pfx,s=n.ppfx,c=e.module.events;return e.className="".concat(o,"canvas ").concat(s,"no-touch-actions").concat(i.config.customUI?"":" ".concat(o,"canvas-bg")),e.clsUnscale="".concat(o,"unscale"),e._initFrames(),e.listenTo(i,c.refresh,e.clearOff),e.listenTo(i,te.selected,e.checkSelected),e.listenTo(i,"".concat(c.coords," ").concat(c.zoom),e.updateFrames),e.listenTo(t,"change:frames",e._onFramesUpdate),e.toggleListeners(!0),e}return r.prototype.template=function(){var t=this.pfx;return` 890 <div class="`.concat(t,`canvas__frames" data-frames> 891 <div class="`).concat(t,`canvas__spots" data-spots></div> 892 </div> 893 <div id="`).concat(t,'tools" class="').concat(t,`canvas__tools" data-tools></div> 894 <style data-canvas-style></style> 895 `)},r.prototype._onFramesUpdate=function(){this._initFrames(),this._renderFrames()},r.prototype._initFrames=function(){var t=this,e=t.frames,n=t.model,i=t.config,o=t.em,s=n.frames;o.set("readyCanvas",0),s.once("loaded:all",function(){return o.set("readyCanvas",1)}),e==null||e.remove(),this.frames=new C8({collection:s},ff(ff({},i),{canvasView:this}))},r.prototype.checkSelected=function(t,e){var n;e===void 0&&(e={});var i=e.scroll,o=this.em.getCurrentFrame();
895i&&((n=t.views)===null||n===void 0||n.forEach(function(s){s.frameView===o&&s.scrollIntoView(i)}))},r.prototype.remove=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return clearTimeout(this.timerZoom),(t=this.frames)===null||t===void 0||t.remove(),this.frames=void 0,Ei.prototype.remove.apply(this,e),this.toggleListeners(!1),this},r.prototype.preventDefault=function(t){tb(t)},r.prototype.toggleListeners=function(t){var e=this,n=e.el,i=e.config,o=t?or:gr;o(document,"keypress",this.onKeyPress),o(window,"scroll resize",this.clearOff),o(n,"wheel",this.onWheel,{passive:!i.infiniteCanvas}),o(n,"pointermove",this.onPointer)},r.prototype.screenToWorld=function(t,e){var n=this.module,i=n.getCoords(),o=n.getZoomMultiplier(),s=this.getViewportDelta();return{x:(t-i.x-s.x)*o,y:(e-i.y-s.y)*o}},r.prototype.onPointer=function(t){if(this.config.infiniteCanvas){var e=this.getCanvasOffset(),n=Au(),i={x:t.clientX-e.left+n.x,y:t.clientY-e.top+n.y};if(t._parentEvent){var o=t.target.getBoundingClientRect(),s=this.module.getZoomDecimal();i.x=o.left-e.left+n.x+t.clientX*s,i.y=o.top-e.top+n.y+t.clientY*s}this.model.set({pointerScreen:i,pointer:this.screenToWorld(i.x,i.y)})}},r.prototype.onKeyPress=function(t){var e=this.em,n=eb(t);n===" "&&e.getZoomDecimal()!==1&&!e.Canvas.isInputFocused()&&(this.preventDefault(t),e.Editor.runCommand("core:canvas-move"))},r.prototype.onWheel=function(t){var e=this,n=e.module,i=e.config;if(i.infiniteCanvas){this.preventDefault(t);var o=t.deltaX,s=t.deltaY,c=n.getZoomDecimal(),d=Y5(t),f=n.getCoords();if(d){var g=c-s*c*.01;n.setZoom(g*100);var m=this.model.getPointerCoords(Jc.Screen),y=this.getCanvasOffset(),x=m.x-y.width/2,w=m.y-y.height/2,k=g/c,S=x-(x-f.x)*k,A=w-(w-f.y)*k;n.setCoords(S,A)}else this.onPointer(t),n.setCoords(f.x-o,f.y-s)}},r.prototype.updateFrames=function(t){var e=this.em,n=this.toolsWrapper,i={preserveSelected:1};this.updateFramesArea(),this.clearOff(),n.style.display="none",e.trigger(Ti.update,t),clearTimeout(this.timerZoom),this.timerZoom=setTimeout(function(){e.stopDefault(i),e.runDefault(i),n.style.display=""},300)},r.prototype.updateFramesArea=function(){var t=this,e=t.framesArea,n=t.model,i=t.module,o=t.cvStyle,s=t.clsUnscale,c=i.getZoomMultiplier();if(e){var d=n.attributes,f=d.x,g=d.y,m=i.getZoomDecimal();e.style.transform="scale(".concat(m,") translate(").concat(f*c,"px, ").concat(g*c,"px)")}o&&(o.innerHTML=` 896 .`.concat(s," { scale: ").concat(c,` } 897 `))},r.prototype.fitViewport=function(t){var e,n,i;t===void 0&&(t={});var o=this,s=o.em,c=o.module,d=o.model;this.clearOff();var f=this.getCanvasOffset(),g=t.el,m=g&&((e=hl(g))===null||e===void 0?void 0:e.frameView),y=m?m.model:t.frame||s.getCurrentFrameModel()||d.frames.at(0),x=y.attributes,w=x.x,k=x.y,S={x:w??0,y:k??0,width:y.width,height:y.height};if(g){var A=this.getElBoxRect(g);S.x=S.x+A.x,S.y=S.y+A.y,S.width=A.width,S.height=A.height}var L=t.ignoreHeight,D=(n=t.gap)!==null&&n!==void 0?n:0,W=(0,E.isNumber)(D),j=W?D:D.x,et=W?D:D.y,z=S.width+j*2,B=S.height+et*2,X=f.width,Z=f.height,F=X/z,st=Z/B,q=L?F:Math.min(F,st),Ct=q*100,_=(i=(0,E.isFunction)(t.zoom)?t.zoom(Ct):t.zoom)!==null&&i!==void 0?i:Ct;c.setZoom(_,{from:"fitViewport"});var Q=-S.x+(y.width>=X?X/2-z/2:-j),J=-S.y+Z/2-B/2,gt=c.getZoomDecimal(),St={x:(Q+j)*gt,y:(J+et)*gt};if(L){var wt=c.getZoomMultiplier(),mt=Z*wt,It=mt-Z,Bt=It/2;St.y=(-S.y+et)*gt-Bt/wt}c.setCoords(St.x,St.y)},r.prototype.isElInViewport=function(t){var e=c1(t),n=yh(e),i=this.getFrameOffset(e),o=n.top,s=n.left;return o>=0&&s>=0&&o<=i.height&&s<=i.width},r.prototype.offset=function(t,e){e===void 0&&(e={});var n=e.noScroll,i=yh(t),o=n?{x:0,y:0}:Au(t);return{top:i.top+o.y,left:i.left+o.x,width:i.width,height:i.height}},r.prototype.getRectToScreen=function(t){var e,n,i,o,s=this.getCanvasScroll(),c=this.module.getZoomDecimal(),d=this.module.getCoords(),f=this.getViewportDelta(),g=((e=t.x)!==null&&e!==void 0?e:0)*c-s.scrollLeft+d.x+f.x||0,m=((n=t.y)!==null&&n!==void 0?n:0)*c-s.scrollTop+d.y+f.y||0;return{x:g,y:m,width:((i=t.width)!==null&&i!==void 0?i:0)*c,height:((o=t.height)!==null&&o!==void 0?o:0)*c}},r.prototype.getElBoxRect=function(t,e){var n,i,o;e===void 0&&(e={});var s=this.module,c=yh(t),d=c.width,f=c.height,g=c.left,m=c.top,y=(n=hl(t))===null||n===void 0?void 0:n.frameView,x=y==null?void 0:y.getBoxRect(),w=s.getZoomMultiplier(),k=(i=x==null?void 0:x.x)!==null&&i!==void 0?i:0,S=(o=x==null?void 0:x.y)!==null&&o!==void 0?o:0,A=this.el,L=Au(),D=g+k+(A.scrollLeft+L.x)*w,W=m+S+(A.scrollTop+L.y)*w,j={x:D,y:W,width:d,height:f};return e.local&&(j.x=g,j.y=m),e.toScreen?this.getRectToScreen(j):j},r.prototype.getViewportRect=function(t){t===void 0&&(t={});
897var e=this.getCanvasOffset(),n=e.top,i=e.left,o=e.width,s=e.height,c=this.module;if(t.toWorld){var d=c.getZoomMultiplier(),f=c.getCoords(),g=this.getViewportDelta(),m=-f.x-g.x||0,y=-f.y-g.y||0;return{x:m*d,y:y*d,width:o*d,height:s*d}}else return{x:i,y:n,width:o,height:s}},r.prototype.getViewportDelta=function(t){var e=this.module.getZoomMultiplier(),n=this.getCanvasOffset(),i=n.width,o=n.height,s=i*e,c=o*e,d=s-i,f=c-o;return{x:d/2/e,y:f/2/e}},r.prototype.clearOff=function(){this.frmOff=void 0,this.cvsOff=void 0},r.prototype.getFrameOffset=function(t){var e;if(!this.frmOff||t){var n=(e=this.frame)===null||e===void 0?void 0:e.el,i=t==null?void 0:t.ownerDocument.defaultView,o=i?i.frameElement:n;this.frmOff=this.offset(o||n)}return this.frmOff},r.prototype.getCanvasOffset=function(){return this.cvsOff||(this.cvsOff=this.offset(this.el)),this.cvsOff},r.prototype.getElementPos=function(t,e){e===void 0&&(e={});var n=this.module.getZoomDecimal(),i=this.getFrameOffset(t),o=this.el,s=this.getCanvasOffset(),c=this.offset(t,e),d=e.avoidFrameOffset?0:i.top,f=e.avoidFrameOffset?0:i.left,g=e.avoidFrameZoom?c.top:c.top*n,m=e.avoidFrameZoom?c.left:c.left*n,y=e.avoidFrameOffset?g:g+d-s.top+o.scrollTop,x=e.avoidFrameOffset?m:m+f-s.left+o.scrollLeft,w=e.avoidFrameZoom?c.height:c.height*n,k=e.avoidFrameZoom?c.width:c.width*n;return{top:y,left:x,height:w,width:k,zoom:n,rect:c}},r.prototype.getElementOffsets=function(t){if(!t||_l(t))return{};var e={},n=window.getComputedStyle(t),i=this.module.getZoomDecimal(),o=["marginTop","marginRight","marginBottom","marginLeft","paddingTop","paddingRight","paddingBottom","paddingLeft","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"];return o.forEach(function(s){e[s]=parseFloat(n[s])*i}),e},r.prototype.getPosition=function(t){var e;t===void 0&&(t={});var n=(e=this.frame)===null||e===void 0?void 0:e.el.contentDocument;if(!n)return{top:0,left:0,width:0,height:0};var i=n.body,o=this.module.getZoomDecimal(),s=this.getFrameOffset(),c=this.getCanvasOffset(),d=t.noScroll;return{top:s.top+(d?0:i.scrollTop)*o-c.top,left:s.left+(d?0:i.scrollLeft)*o-c.left,width:c.width,height:c.height}},r.prototype.getCanvasScroll=function(){return this.config.scrollableCanvas?{scrollTop:this.el.scrollTop,scrollLeft:this.el.scrollLeft}:{scrollTop:0,scrollLeft:0}},r.prototype.updateScript=function(t){var e=t.model,n=e.getId(),i={component:e,view:t,el:t.el};if(!t.scriptContainer){t.scriptContainer=Vi("div",{"data-id":n});var o=this.getJsContainer();o==null||o.appendChild(t.scriptContainer)}t.el.id=n,t.scriptContainer.innerHTML="";var s=document.createElement("script"),c=e.getScriptString(),d=e.get("script-props")?c:`function(){ 898`.concat(c,` 899;}`),f=JSON.stringify(e.__getScriptProps());s.innerHTML=` 900 setTimeout(function() { 901 var item = document.getElementById('`.concat(n,`'); 902 if (!item) return; 903 var script = (`).concat(d,`).bind(item); 904 script(`).concat(f,`, { el: item }); 905 }, 1);`),setTimeout(function(){e.emitWithEditor(te.scriptMountBefore,i);var g=t.scriptContainer;g==null||g.appendChild(s),e.emitWithEditor(te.scriptMount,i)},0)},r.prototype.getJsContainer=function(t){var e=this.getFrameView(t);return e==null?void 0:e.getJsContainer()},r.prototype.getFrameView=function(t){return(t==null?void 0:t.frameView)||this.em.getCurrentFrame()},r.prototype._renderFrames=function(){if(this.ready){var t=this,e=t.model,n=t.frames,i=t.em,o=t.framesArea,s=e.frames;s.listenToLoad(),n.render();var c=s.at(0),d=c==null?void 0:c.view;i.setCurrentFrame(d),o==null||o.appendChild(n.el),this.frame=d,this.updateFramesArea()}},r.prototype.renderFrames=function(){this._renderFrames()},r.prototype.render=function(){var t=this,e=t.el,n=t.$el,i=t.ppfx,o=t.config,s=t.em;n.html(this.template());var c=n.find("[data-frames]");this.framesArea=c.get(0);var d=n.find("[data-tools]");return this.toolsWrapper=d.get(0),d.append(` 906 <div class="`.concat(i,"tools ").concat(i,`tools-gl" style="pointer-events:none"> 907 <div class="`).concat(i,`placeholder"> 908 <div class="`).concat(i,`placeholder-int"></div> 909 </div> 910 </div> 911 <div id="`).concat(i,`tools" style="pointer-events:none"> 912 `).concat(o.extHl?'<div class="'.concat(i,'highlighter-sel"></div>'):"",` 913 <div class="`).concat(i,`badge"></div> 914 <div class="`).concat(i,`ghost"></div> 915 <div class="`).concat(i,`toolbar" style="pointer-events:all"></div> 916 <div class="`).concat(i,`resizer"></div> 917 <div class="`).concat(i,`offset-v"></div> 918 <div class="`).concat(i,`offset-fixed-v"></div> 919 </div> 920 `)),this.toolsEl=e.querySelector("#".concat(i,"tools")),this.hlEl=e.querySelector(".".concat(i,"highlighter")),this.badgeEl=e.querySelector(".".concat(i,"badge")),this.placerEl=e.querySelector(".".concat(i,"placeholder")),this.ghostEl=e.querySelector(".".concat(i,"ghost")),this.toolbarEl=e.querySelector(".".concat(i,"toolbar")),this.resizerEl=e.querySelector(".".concat(i,"resizer")),this.offsetEl=e.querySelector(".".concat(i,"offset-v")),this.fixedOffsetEl=e.querySelector(".".concat(i,"offset-fixed-v")),this.toolsGlobEl=e.querySelector(".".concat(i,"tools-gl")),this.spotsEl=e.querySelector("[data-spots]"),this.cvStyle=e.querySelector("[data-canvas-style]"),e.className=sb(s,this.className),o.scrollableCanvas===!0&&(e.style.overflow="auto"),this.ready=!0,this._renderFrames(),this},r})(Ei);const T8=S8;
920var O8=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Zo=function(){return Zo=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Zo.apply(this,arguments)},E8=function(a,r,t){if(t||arguments.length===2)for(var e=0,n=r.length,i;e<n;e++)(i||!(e in r))&&(i||(i=Array.prototype.slice.call(r,0,e)),i[e]=r[e]);return a.concat(i||Array.prototype.slice.call(r))},A8=(function(a){O8(r,a);function r(t){var e=a.call(this,t,"Canvas",m_())||this;return e.events=Ti,e.framesById={},e.canvas=new E_(e),e.spots=new D_(e),e.model=e.canvas,e.startAutoscroll=e.startAutoscroll.bind(e),e.stopAutoscroll=e.stopAutoscroll.bind(e),e.autoScroller=new Fb,e}return r.prototype.getCanvasView=function(){return this.canvasView},r.prototype.postLoad=function(){this.model.init()},r.prototype.getModel=function(){return this.canvas},r.prototype.getElement=function(){return this.getCanvasView().el},r.prototype.getFrame=function(t){return this.getFrames()[t||0]},r.prototype.getFrameEl=function(){var t=(this.canvasView||{}).frame;return t==null?void 0:t.el},r.prototype.getFramesEl=function(){var t;return(t=this.canvasView)===null||t===void 0?void 0:t.framesArea},r.prototype.getWindow=function(){var t=(this.canvasView||{}).frame;return t==null?void 0:t.getWindow()},r.prototype.getDocument=function(){var t=this.getFrameEl();return t==null?void 0:t.contentDocument},r.prototype.getBody=function(){var t=this.getDocument();return t==null?void 0:t.body},r.prototype._getLocalEl=function(t,e,n){var i=t,o=e==null?void 0:e.frameView;return i=o?o[n]():i,i},r.prototype.getGlobalToolsEl=function(){var t;return(t=this.canvasView)===null||t===void 0?void 0:t.toolsGlobEl},r.prototype.getToolsEl=function(t){return this._getLocalEl(this.getCanvasView().toolsEl,t,"getToolsEl")},r.prototype.getHighlighter=function(t){return this._getLocalEl(this.getCanvasView().hlEl,t,"getHighlighter")},r.prototype.getBadgeEl=function(t){return this._getLocalEl(this.getCanvasView().badgeEl,t,"getBadgeEl")},r.prototype.getPlacerEl=function(){return this.getCanvasView().placerEl},r.prototype.getGhostEl=function(){return this.getCanvasView().ghostEl},r.prototype.getToolbarEl=function(){return this.getCanvasView().toolbarEl},r.prototype.getResizerEl=function(){return this.getCanvasView().resizerEl},r.prototype.getOffsetViewerEl=function(t){return this._getLocalEl(this.getCanvasView().offsetEl,t,"getOffsetViewerEl")},r.prototype.getFixedOffsetViewerEl=function(){return this.getCanvasView().fixedOffsetEl},r.prototype.getSpotsEl=function(){var t;return(t=this.canvasView)===null||t===void 0?void 0:t.spotsEl},r.prototype.render=function(){var t;return(t=this.canvasView)===null||t===void 0||t.remove(),this.canvasView=new T8(this.canvas),this.canvasView.render().el},r.prototype.getOffset=function(){var t=this.offset(this.getFrameEl()),e=this.offset(this.getElement());return{top:t.top-e.top,left:t.left-e.left}},r.prototype.offset=function(t){return this.getCanvasView().offset(t)},r.prototype.setCustomBadgeLabel=function(t){this.config.customBadgeLabel=t},r.prototype.getElementPos=function(t,e){return this.getCanvasView().getElementPos(t,e)},r.prototype.getElementOffsets=function(t){return this.getCanvasView().getElementOffsets(t)},r.prototype.getRect=function(){var t,e=(t=this.getCanvasView().getPosition())!==null&&t!==void 0?t:{},n=e.top,i=n===void 0?0:n,o=e.left,s=o===void 0?0:o;return Zo(Zo({},this.getCanvasView().getCanvasOffset()),{topScroll:i,leftScroll:s})},r.prototype.getTargetToElementDim=function(t,e,n){n===void 0&&(n={});var i=n||{},o=this.getCanvasView().getPosition();if(o){var s=i.elPos||this.getCanvasView().getElementPos(e),c=n.toRight||0,d=i.targetHeight||t.offsetHeight,f=i.targetWidth||t.offsetWidth,g=i.event||null,m=s.top-d,y=s.left;y+=c?s.width:0,y=c?y-f:y;var x=y<o.left?o.left:y,w=m<o.top?o.top:m;w=w>s.top+s.height?s.top+s.height:w;var k={top:w,left:x,elementTop:s.top,elementLeft:s.left,elementWidth:s.width,elementHeight:s.height,targetWidth:t.offsetWidth,targetHeight:t.offsetHeight,canvasTop:o.top,canvasLeft:o.left,canvasWidth:o.width,canvasHeight:o.height};return g&&this.em&&this.em.trigger(g,k),k}},r.prototype.canvasRectOffset=function(t,e,n){var i=this;n===void 0&&(n={});var o=function(c){var d=c.defaultView;return d==null?void 0:d.frameElement},s=function(c,d,f){d===void 0&&(d=1);var g=i.em.getZoomDecimal(),m=d?"top":"left",y=c.ownerDocument,x=n.offset?o(y):{},w=x.offsetTop,k=w===void 0?0:w,S=x.offsetLeft,A=S===void 0?0:S,L=y.body||{},D=L.scrollTop,W=D===void 0?0:D,j=L.scrollLeft,et=j===void 0?0:j,z=d?W:et,B=d?k:A;return f[m]-(z-B)*g};return{top:s(t,1,e),left:s(t,0,e)}},r.prototype.getTargetToElementFixed=function(t,e,n){n===void 0&&(n={});var i=n.pos||this.getElementPos(t,{noScroll:!0}),o=n.canvasOff||this.canvasRectOffset(t,i),s=e.offsetHeight||0,c=e.offsetWidth||0,d=this.getCanvasView(),f=d.getCanvasScroll(),g=f.scrollTop,m=f.scrollLeft,y=d.getPosition(),x=n.event,w=i.width-c,k=-s,S=(0,E.isUndefined)(n.left)?w:n.left,A=Math.max(-i.left+m,0);S=Math.max(S,A);var L=i.width-c;S=Math.min(S,L);var D=y.width+m-c-i.left;S=Math.min(S,D);var W=o.top<s+g,j=k;if(W){var et=i.height+s,z=et<y.height;if(z)j=j+et;else{var B=-o.top+g;j=B<i.height?B:i.height}}var X={top:j,left:S,canvasOffsetTop:o.top,canvasOffsetLeft:o.left,elRect:i,
920canvasOffset:o,canvasRect:y,targetWidth:c,targetHeight:s};return x&&this.em.trigger(x,X),X},r.prototype.getMouseRelativePos=function(t,e){e===void 0&&(e={});var n=e.subWinOffset,i=t.target,o=i.nodeType===Node.DOCUMENT_NODE?i:i.ownerDocument,s=o.defaultView||o.parentWindow,c=s.frameElement,d=n?s.pageYOffset:0,f=n?s.pageXOffset:0,g=this.getZoomMultiplier(),m=0,y=0;if(c){var x=c.getBoundingClientRect();m=x.top||0,y=x.left||0}return{y:(t.clientY+m-d)*g,x:(t.clientX+y-f)*g}},r.prototype.getMouseRelativeCanvas=function(t,e){var n,i=this.getZoomDecimal(),o=this.getCanvasView(),s=(n=o.getPosition(e))!==null&&n!==void 0?n:{top:0,left:0},c=o.getCanvasScroll(),d={top:s.top+c.scrollTop,left:s.left+c.scrollLeft},f=d.top,g=d.left;return{y:t.clientY*i+f,x:t.clientX*i+g}},r.prototype.startDrag=function(t){this.em.set("dragSource",t)},r.prototype.endDrag=function(){this.em.set({dragResult:null,dragSource:void 0})},r.prototype.hasFocus=function(){var t,e;return!!(!((e=(t=this.getDocument())===null||t===void 0?void 0:t.hasFocus)===null||e===void 0)&&e.call(t))},r.prototype.isInputFocused=function(){var t=this.getDocument(),e=this.getFrameEl(),n=E8(["body"],this.config.notTextable,!0),i=e&&document.activeElement===e,o=i?t&&t.activeElement:document.activeElement;return o&&!n.some(function(s){return o.matches(s)})},r.prototype.scrollTo=function(t,e){e===void 0&&(e={});var n=c1(t),i=n&&d1(n);i&&i.scrollIntoView(e)},r.prototype.startAutoscroll=function(t){var e=t&&t.view||this.em.getCurrentFrame();if(e&&e.startAutoscroll(),this.config.scrollableCanvas){var n=this.getCanvasView().el;this.autoScroller.start(n,n,{zoom:this.em.getZoomDecimal(),ignoredElement:this.getSpotsEl()})}},r.prototype.stopAutoscroll=function(t){var e=t&&t.view||this.em.getCurrentFrame();e&&e.stopAutoscroll(),this.config.scrollableCanvas&&this.autoScroller.stop()},r.prototype.setZoom=function(t,e){return e===void 0&&(e={}),this.canvas.set("zoom",typeof t=="string"?parseFloat(t):t,e),this},r.prototype.getZoom=function(){return parseFloat(this.canvas.get("zoom"))},r.prototype.setCoords=function(t,e,n){var i;n===void 0&&(n={});var o=t||t===0,s=e||e===0,c={x:this.canvas.get("x"),y:this.canvas.get("y")};if(o&&(c.x=parseFloat("".concat(t))),s&&(c.y=parseFloat("".concat(e))),n.toWorld){var d=(i=this.canvasView)===null||i===void 0?void 0:i.getViewportDelta();d&&(o&&(c.x=c.x-d.x),s&&(c.y=c.y-d.y))}return this.canvas.set(c),this},r.prototype.getCoords=function(){var t=this.canvas.attributes,e=t.x,n=t.y;return{x:e,y:n}},r.prototype.getPointer=function(t){var e=this.canvas.attributes,n=e.pointer,i=e.pointerScreen;return t?i:n},r.prototype.getZoomDecimal=function(){return this.getZoom()/100},r.prototype.getZoomMultiplier=function(){var t=this.getZoomDecimal();return t?1/t:1},r.prototype.fitViewport=function(t){var e;(e=this.canvasView)===null||e===void 0||e.fitViewport(t)},r.prototype.toggleFramesEvents=function(t){var e=this.getFramesEl().style;e.pointerEvents=t?"":"none"},r.prototype.getFrames=function(){return this.canvas.frames.map(function(t){return t})},r.prototype.addFrame=function(t,e){return t===void 0&&(t={}),e===void 0&&(e={}),this.canvas.frames.add(new gb(this,Zo({},t)),e)},r.prototype.getLastDragResult=function(){return this.em.get("dragResult")},r.prototype.addSpot=function(t,e){var n;e===void 0&&(e={});var i=t,o=this.getSpots(i);if(o.length){var s=o[0];return s.set(i),s}var c=i.componentView||((n=i.component)===null||n===void 0?void 0:n.view),d=new mb(this,Zo(Zo({},i),{id:i.id||"cs_".concat(i.type,"_").concat(c==null?void 0:c.cid),type:i.type||""}));return this.spots.add(d,e),d},r.prototype.getSpots=function(t){return t===void 0&&(t={}),this.spots.where(t.id?{id:t.id}:t)},r.prototype.removeSpots=function(t){t===void 0&&(t={});var e=(0,E.isArray)(t)?t:this.getSpots(t),n=this.spots.remove(e);return n},r.prototype.hasCustomSpot=function(t){var e=this.config.customSpots;return!!(e===!0||e&&t&&e[t])},r.prototype.getWorldRectToScreen=function(t){var e;return(e=this.canvasView)===null||e===void 0?void 0:e.getRectToScreen(t)},r.prototype.refresh=function(t){t===void 0&&(t={});var e=this,n=e.em,i=e.events,o=e.canvasView;o==null||o.clearOff(),(t.spots||t.all)&&(this.refreshSpots(),n.trigger(Ti.updateTools)),n.set("canvasOffset",this.getOffset()),n.trigger(i.refresh,t)},r.prototype.refreshSpots=function(){this.spots.refresh()},r.prototype.destroy=function(){var t=this,e;this.canvas.stopListening(),(e=this.canvasView)===null||e===void 0||e.remove(),["model","droppable"].forEach(function(n){return t[n]={}})},r})(Jn);
920const M8=A8;var P8=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),qs=function(){return qs=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},qs.apply(this,arguments)},Zb=(function(a){P8(r,a);function r(t,e){var n=a.call(this,t,e)||this;return n.dataResolver=n.initializeDataResolver(t,e),n.listenToPropsChange(),n}return r.prototype.initializeDataResolver=function(t,e){var n,i=(n=t.dataResolver)!==null&&n!==void 0?n:{type:t.type},o=this.createResolverInstance(i,qs(qs({},e),{collectionsStateMap:this.collectionsStateMap}));return o},r.prototype.getDataResolver=function(){return this.get("dataResolver")},r.prototype.setDataResolver=function(t){return this.set("dataResolver",t)},r.prototype.onCollectionsStateMapUpdate=function(t){this.dataResolver.updateCollectionsStateMap(t),a.prototype.onCollectionsStateMapUpdate.call(this,t)},r.prototype.listenToPropsChange=function(){var t=this;this.on("change:dataResolver",function(){t.dataResolver.set(t.get("dataResolver"))})},r.prototype.removePropsListeners=function(){this.stopListening(this.dataResolver),this.off("change:dataResolver"),this.off("change:".concat(this.collectionsStateMap))},r.prototype.destroy=function(t){return this.removePropsListeners(),a.prototype.destroy.call(this,t)},r.prototype.toJSON=function(t){var e=a.prototype.toJSON.call(this,t),n=this.dataResolver.toJSON();return delete n.type,qs(qs({},e),{dataResolver:n})},r})(Mr),L8=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),pf=function(){return pf=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},pf.apply(this,arguments)},D8=(function(a){L8(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"defaults",{get:function(){return pf(pf({},a.prototype.defaults),{type:Aa,dataResolver:{},droppable:!1})},enumerable:!1,configurable:!0}),r.prototype.getPath=function(){return this.dataResolver.get("path")},r.prototype.getCollectionId=function(){return this.dataResolver.get("collectionId")},r.prototype.getVariableType=function(){return this.dataResolver.get("variableType")},r.prototype.getDefaultValue=function(){return this.dataResolver.get("defaultValue")},r.prototype.getDataValue=function(){return this.dataResolver.getDataValue()},r.prototype.resolvesFromCollection=function(){return this.dataResolver.resolvesFromCollection()},r.prototype.getInnerHTML=function(){return this.getDataValue()},r.prototype.setPath=function(t){this.dataResolver.set("path",t)},r.prototype.setDefaultValue=function(t){this.dataResolver.set("defaultValue",t)},r.prototype.resetDataSourcePath=function(t){this.set("dataResolver",{path:t,collectionId:void 0,variableType:void 0})},r.prototype.createResolverInstance=function(t,e){return new Cl(t,e)},r.isComponent=function(t){return xr(t.tagName)===Aa},r})(Zb);const I8=D8;var j8=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}
920r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),hf=function(){return hf=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},hf.apply(this,arguments)},N8=(function(a){j8(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"defaults",{get:function(){return hf(hf({},a.prototype.defaults),{droppable:!1,type:jr.condition,dataResolver:{condition:{left:"",operator:Ci.equalsIgnoreCase,right:""}},components:[{type:jr.conditionTrue},{type:jr.conditionFalse}]})},enumerable:!1,configurable:!0}),r.prototype.isTrue=function(){return this.dataResolver.isTrue()},r.prototype.getCondition=function(){return this.dataResolver.getCondition()},r.prototype.getIfTrueContent=function(){return this.components().at(0)},r.prototype.getIfFalseContent=function(){return this.components().at(1)},r.prototype.getOutputContent=function(){return this.isTrue()?this.getIfTrueContent():this.getIfFalseContent()},r.prototype.setCondition=function(t){this.dataResolver.setCondition(t)},r.prototype.setIfTrueComponents=function(t){this.setComponentsAtIndex(0,t)},r.prototype.setIfFalseComponents=function(t){this.setComponentsAtIndex(1,t)},r.prototype.getInnerHTML=function(t){var e,n;return(n=(e=this.getOutputContent())===null||e===void 0?void 0:e.getInnerHTML(t))!==null&&n!==void 0?n:""},r.prototype.createResolverInstance=function(t,e){return new bb(t,e)},r.prototype.setComponentsAtIndex=function(t,e){var n=this.components().at(t);n==null||n.components(e)},r.isComponent=function(t){return xr(t.tagName)===ml},r})(Zb);const R8=N8;var B8=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),gf=function(){return gf=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},gf.apply(this,arguments)},V8=(function(a){B8(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"defaults",{get:function(){return gf(gf({},a.prototype.defaults),{removable:!1,draggable:!1})},enumerable:!1,configurable:!0}),r.isComponent=function(t){return p6(xr(t.tagName))},r})(Mr);const kh=V8;var H8=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),jc=function(){return jc=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},jc.apply(this,arguments)},F8=(function(a){H8(r,a);function r(t,e){e===void 0&&(e={});var n,i=a.call(this,t,e)||this;return i.mutable=(n=t.mutable)!==null&&n!==void 0?n:!0,i.on("change",i.handleChange),i}return Object.defineProperty(r.prototype,"cl",{get:function(){return this.collection},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"dataSource",{get:function(){return this.cl.dataSource},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"em",{get:function(){return this.dataSource.em},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"index",{get:function(){return this.cl.indexOf(this)},enumerable:!1,configurable:!0}),r.prototype.getContext=function(){var t=jc({},this.attributes);return delete t.__p,t},r.prototype.handleChange=function(t,e){var n=this,i=this.changedAttributes();
920(0,E.keys)(i).forEach(function(o){return n.triggerChange(o,e)})},r.prototype.getPath=function(t,e){e===void 0&&(e={});var n=this,i=n.dataSource,o=n.id,s=n.index,c=i.id,d=t?".".concat(t):"";return"".concat(c,".").concat(e.useIndex?s:o).concat(d)},r.prototype.getPaths=function(t){return[this.getPath(t),this.getPath(t,{useIndex:!0})]},r.prototype.triggerChange=function(t,e){e===void 0&&(e={});var n=this,i=n.dataSource,o=n.em,s=this.getPaths(t),c={dataSource:i,dataRecord:this,path:s[0],options:e};o.trigger(is.path,c),o.trigger("".concat(is.pathSource,":").concat(i.id),c),s.forEach(function(d){return o.trigger("".concat(is.path,":").concat(d),jc(jc({},c),{path:d}))})},r.prototype.set=function(t,e,n){var i=this,o,s;if(!this.isNew()&&this.attributes.mutable===!1)throw new Error("Cannot modify immutable record");var c=(s=(o=this.dataSource)===null||o===void 0?void 0:o.transformers)===null||s===void 0?void 0:s.onRecordSetValue,d=function(k,S,A){A===void 0&&(A={});var L=A!=null&&A.avoidTransformers||!c?S:c({id:i.id,key:k,value:S});a.prototype.set.call(i,k,L,A),a.prototype.set.call(i,{__p:A.partial?!0:void 0},A)};if(typeof t=="object"&&t!==null)for(var f=t,g=0,m=Object.entries(f);g<m.length;g++){var y=m[g],x=y[0],w=y[1];d(x,w,e)}else d(t,e,n);return this},r})(We);const $8=F8;var z8=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),qb=(function(a){z8(r,a);function r(t,e){var n=a.call(this,t,e)||this;return n.dataSource=e.dataSource,n}return r.prototype.getRecord=function(t){return this.get(t)||this.getRecordByIndex(t)},r.prototype.isIndexKey=function(t){return!this.get(t)&&!!this.getRecordByIndex(t)},r.prototype.getRecordByIndex=function(t){var e=this.getIndex(t);return e===void 0?void 0:this.at(e)},r.prototype.getIndex=function(t){var e=typeof t=="number"?t:Number(t);return Number.isInteger(e)&&"".concat(e)==="".concat(t)&&e>=0?e:void 0},r})(Rr);const A0=qb;qb.prototype.model=$8;var U8=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),wa=function(){return wa=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},wa.apply(this,arguments)},M0=function(a,r,t,e){function n(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(f){try{d(e.next(f))}catch(g){o(g)}}function c(f){try{d(e.throw(f))}catch(g){o(g)}}function d(f){f.done?i(f.value):n(f.value).then(s,c)}d((e=e.apply(a,r||[])).next())})},P0=function(a,r){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},e,n,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(d){return function(f){return c([d,f])}}function c(d){if(e)throw new TypeError("Generator is already executing.");for(;o&&(o=0,d[0]&&(t=0)),t;)try{if(e=1,n&&(i=d[0]&2?n.return:d[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,d[1])).done)return i;switch(n=0,i&&(d=[d[0]&2,i.value]),d[0]){case 0:case 1:i=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,n=d[1],d=[0];continue;
920case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]<i[3])){t.label=d[1];break}if(d[0]===6&&t.label<i[1]){t.label=i[1],i=d;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(d);break}i[2]&&t.ops.pop(),t.trys.pop();continue}d=r.call(a,t)}catch(f){d=[6,f],n=0}finally{e=i=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},W8=function(a,r,t){if(t||arguments.length===2)for(var e=0,n=r.length,i;e<n;e++)(i||!(e in r))&&(i||(i=Array.prototype.slice.call(r,0,e)),i[e]=r[e]);return a.concat(i||Array.prototype.slice.call(r))},Z8=(function(a){U8(r,a);function r(t,e){var n=a.call(this,wa(wa({schema:{}},t),{records:[]}),e)||this,i=t.records,o=t.transformers;return n.transformers=o||{},i instanceof A0||n.set({records:new A0(i,{dataSource:n})}),n.listenTo(n.records,"add",n.onAdd),n.listenTo(n.records,p1,n.handleChanges),n}return r.prototype.defaults=function(){return{records:[],transformers:{}}},Object.defineProperty(r.prototype,"records",{get:function(){return this.attributes.records},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"schema",{get:function(){return this.attributes.schema},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"em",{get:function(){return this.collection.em},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"hasProvider",{get:function(){return!!this.attributes.provider},enumerable:!1,configurable:!0}),r.prototype.onAdd=function(t){t.triggerChange()},r.prototype.addRecord=function(t,e){return this.records.add(t,e)},r.prototype.getRecord=function(t){return this.records.getRecord(t)},r.prototype.isRecordIndex=function(t){return this.records.isIndexKey(t)},r.prototype.getRecords=function(){var t=this;return W8([],this.records.models,!0).map(function(e){return t.getRecord(e.id)})},r.prototype.getContext=function(){return this.records.reduce(function(t,e,n){return t[e.id||n]=e.getContext(),t},{})},r.prototype.getResolvedRecords=function(){var t=this,e=Object.entries(this.schema),n=this.getRecords().map(function(i){var o=wa({},i.attributes);return e.length===0||e.forEach(function(s){var c=s[0],d=s[1],f=d;if((f==null?void 0:f.type)===tf.relation&&f.target){var g=o[c];if(g){var m=t.em.DataSources.get(f.target);if(m){var y=m.records,x=f.targetField||f6;if(f.isMany){var w=Array.isArray(g)?g:[g],k=y.filter(function(A){return w.includes(A.attributes[x])});o[c]=k.map(function(A){return wa({},A.attributes)})}else{var S=m.records.find(function(A){return A.attributes[x]===g});S&&(o[c]=wa({},S.attributes))}}}}}),o});return n},r.prototype.loadProvider=function(){return M0(this,void 0,void 0,function(){var t,e,n,i,o,s,c,d,f,g,m=this;return P0(this,function(y){switch(y.label){case 0:return t=this,e=t.attributes,n=t.em,i=e.provider,i?(0,E.isString)(i)?[2]:(o=(0,E.isString)(i.get)?{url:i.get}:i.get,s=o.url,c=o.method,d=o.headers,f=o.body,g=function(){return M0(m,void 0,void 0,function(){var x,w,k,S,A;return P0(this,function(L){switch(L.label){case 0:x=this,L.label=1;case 1:return L.trys.push([1,6,,7]),n.trigger(n.DataSources.events.providerLoadBefore,{dataSource:x}),[4,fetch(s,{method:c,headers:d,body:f})];case 2:return w=L.sent(),w.ok?[3,4]:(k=Error.bind,[4,w.text()]);case 3:throw new(k.apply(Error,[void 0,L.sent()]));case 4:return[4,w.json()];case 5:return S=L.sent(),S!=null&&S.records&&this.setRecords(S.records),S!=null&&S.schema&&this.upSchema(S.schema),n.trigger(n.DataSources.events.providerLoad,{result:S,dataSource:x}),[3,7];case 6:return A=L.sent(),n.logError(A.message),n.trigger(n.DataSources.events.providerLoadError,{dataSource:x,error:A}),[3,7];case 7:return[2]}})})},[4,g()]):[2];case 1:return y.sent(),[2]}})})},r.prototype.removeRecord=function(t,e){var n=this.getRecord(t);if((n==null?void 0:n.mutable)===!1&&!(e!=null&&e.dangerously))throw new Error("Cannot remove immutable record");return this.records.remove(t,e)},r.prototype.setRecords=function(t){var e=this;this.records.reset([],{silent:!0}),t.forEach(function(n){e.records.add(n)})},r.prototype.upSchema=function(t,e){this.set("schema",wa(wa({},this.schema),t),e)},r.prototype.getSchemaField=function(t){return this.schema[t]},r.prototype.handleChanges=function(t,e,n){var i=this.em,o=n||e;i.DataSources.invalidateContextCache(),i.changesUp(o,{dataRecord:t,options:o})},r})(We);const Kb=Z8;
920var q8=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Wg=function(){return Wg=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Wg.apply(this,arguments)},K8=(function(a){q8(r,a);function r(t,e){var n=a.call(this,t,e)||this;return n.collectionsStateMap={},n.listenToPropsChange(),n}return r.prototype.onCollectionsStateMapUpdate=function(t){var e,n;this.collectionsStateMap=t,(n=(e=this.dataResolverWatchers)===null||e===void 0?void 0:e.onCollectionsStateMapUpdate)===null||n===void 0||n.call(e),this.components().forEach(function(i){var o;(o=i.onCollectionsStateMapUpdate)===null||o===void 0||o.call(i,t)})},r.prototype.syncOnComponentChange=function(t,e,n){var i=this.collectionsStateMap;this.collectionsStateMap={},a.prototype.syncOnComponentChange.call(this,t,e,n),this.collectionsStateMap=i,this.onCollectionsStateMapUpdate(i)},r.prototype.setDataResolver=function(t){return this.set("dataResolver",t)},r.prototype.getDataResolver=function(){return this.dataResolverProps},Object.defineProperty(r.prototype,"dataResolverProps",{get:function(){return this.get("dataResolver")},enumerable:!1,configurable:!0}),r.prototype.listenToDataSource=function(){var t=this,e,n=this.dataResolverPath;if(n){var i=this,o=i.em,s=i.collectionsStateMap;(e=this.dataSourceWatcher)===null||e===void 0||e.destroy(),this.dataSourceWatcher=new cd({em:o,resolver:new Cl({type:Aa,path:n},{em:o,collectionsStateMap:s}),onUpdate:function(){return t.onDataSourceChange()}})}},r.prototype.listenToPropsChange=function(){var t=this;this.on("change:dataResolver",function(){t.listenToDataSource()}),this.listenToDataSource()},Object.defineProperty(r.prototype,"dataSourceProps",{get:function(){return this.get("dataResolver")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"dataResolverPath",{get:function(){var t;return(t=this.dataSourceProps)===null||t===void 0?void 0:t.path},enumerable:!1,configurable:!0}),r.prototype.onDataSourceChange=function(){this.onCollectionsStateMapUpdate(this.collectionsStateMap)},r.prototype.getDataSourceItems=function(){var t=this.dataSourceProps;if(!t)return[];var e=this.listDataSourceItems(t);if(e&&(0,E.isArray)(e))return e;var n=Wg({},e);return n},r.prototype.listDataSourceItems=function(t){var e=t instanceof Kb?t.get("id"):t.path;if(!e)return[];var n=this.em.DataSources.getValue(e,[]),i=e.split(".").length===1;return i&&(n=Object.entries(n).map(function(o){o[0];var s=o[1];return s})),n},r.prototype.getItemKey=function(t,e){return(0,E.isArray)(t)?e:Object.keys(t)[e]},r.prototype.removePropsListeners=function(){var t;this.off("change:dataResolver"),(t=this.dataSourceWatcher)===null||t===void 0||t.destroy(),this.dataSourceWatcher=void 0},r.prototype.destroy=function(t){return this.removePropsListeners(),a.prototype.destroy.call(this,t)},r})(Mr);const Gb=K8;var G8=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Wn=function(){return Wn=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Wn.apply(this,arguments)},Sh={avoidStore:!0,partial:!0},Y8=(function(a){G8(r,a);function r(t,e){var n=this;if(e.forCloning)return n=a.call(this,t,e)||this;var i=Wn(Wn({},t),{droppable:!1}),o=n=a.call(this,i,e)||this;return n.rebuildChildrenFromCollection=n.rebuildChildrenFromCollection.bind(n),n.listenToPropsChange(),n.rebuildChildrenFromCollection(),o}return Object.defineProperty(r.prototype,"defaults",{get:function(){return Wn(Wn({},a.prototype.defaults),{droppable:!1,dataResolver:{},type:jr.collection,components:[{type:jr.collectionItem}]})}
920,enumerable:!1,configurable:!0}),r.prototype.getItemsCount=function(){var t,e,n=this.getDataSourceItems(),i=J8(n),o=Math.max(0,(t=this.getConfigStartIndex())!==null&&t!==void 0?t:0),s=(e=this.getConfigEndIndex())!==null&&e!==void 0?e:Number.MAX_VALUE,c=Math.min(i-1,s),d=c-o+1;return Math.max(0,d)},r.prototype.getConfigStartIndex=function(){return this.dataResolver.startIndex},r.prototype.getConfigEndIndex=function(){return this.dataResolver.endIndex},r.prototype.getDataSource=function(){var t;return(t=this.dataResolver)===null||t===void 0?void 0:t.dataSource},r.prototype.getCollectionId=function(){var t;return(t=this.dataResolver)===null||t===void 0?void 0:t.collectionId},r.prototype.getCollectionItemComponents=function(){return this.firstChild.components()},r.prototype.setCollectionId=function(t){this.updateCollectionConfig({collectionId:t})},r.prototype.setStartIndex=function(t){if(t<0){this.em.logError("Start index should be greater than or equal to 0");return}this.updateCollectionConfig({startIndex:t})},r.prototype.setEndIndex=function(t){this.updateCollectionConfig({endIndex:t})},r.prototype.setDataSource=function(t){this.set(gc,Wn(Wn({},this.dataResolver),{dataSource:t}))},r.prototype.setCollectionItemComponents=function(t){this.firstChild.components(t)},r.prototype.onCollectionsStateMapUpdate=function(t){var e=this;a.prototype.onCollectionsStateMapUpdate.call(this,t);var n=this.getDataSourceItems(),i=this.resolveCollectionConfig(n).startIndex,o=this.components();o.forEach(function(s,c){var d=e.getItemKey(n,i+c),f=e.getCollectionsStateMapForItem(n,d);s.onCollectionsStateMapUpdate(f)})},r.prototype.stopSyncComponentCollectionState=function(){this.stopListening(this.components(),"add remove reset",this.syncOnComponentChange),this.onCollectionsStateMapUpdate({})},r.prototype.setCollectionStateMapAndPropagate=function(t,e){t.setSymbolOverride(["locked","layerable",Vs]),t.syncComponentsCollectionState(),t.onCollectionsStateMapUpdate(e)},r.prototype.onDataSourceChange=function(){this.rebuildChildrenFromCollection()},r.prototype.listenToPropsChange=function(){var t=this;this.on("change:".concat(gc),function(){t.rebuildChildrenFromCollection(),t.listenToDataSource()}),this.listenToDataSource()},Object.defineProperty(r.prototype,"dataSourceProps",{get:function(){return this.dataResolver.dataSource},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"dataResolver",{get:function(){return this.get(gc)||{}},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"firstChild",{get:function(){return this.components().at(0)},enumerable:!1,configurable:!0}),r.prototype.updateCollectionConfig=function(t){this.set(gc,Wn(Wn({},this.dataResolver),t))},r.prototype.rebuildChildrenFromCollection=function(){var t=this.getDataSourceItems(),e=this.resolveCollectionConfig(t).totalItems;if(e===this.components().length){this.onCollectionsStateMapUpdate(this.collectionsStateMap);return}var n=this.getCollectionItems(t);this.components().reset(n,Du)},r.prototype.getCollectionItems=function(t){var e,n=this.ensureFirstChild(),i=n.getStyle().display,o=!i||i==="none",s=o?"":i;n.addStyle({display:"none"},Sh);var c=[n],d=t7(this.dataResolver,this.em);if(!d)return c;var f=this.collectionId,g=t??this.getDataSourceItems(),m=this.resolveCollectionConfig(g),y=m.startIndex,x=m.endIndex,w=this.hasDuplicateCollectionId();if(w)return this.em.logError('The collection ID "'.concat(f,'" already exists in the parent collection state. Overriding it is not allowed.')),c;for(var k=y;k<=x;k++){var S=k===y,A=this.getItemKey(g,k),L=this.getCollectionsStateMapForItem(g,A);if(S){(e=Xn(n))===null||e===void 0||e.forEach(function(W){return Ep(W)}),this.setCollectionStateMapAndPropagate(n,L),n.addStyle({display:s},Sh);continue}var D=n.clone({symbol:!0,symbolInv:!0});D.set({locked:!0,layerable:!1},Sh),this.setCollectionStateMapAndPropagate(D,L),c.push(D)}return c},r.prototype.getCollectionsStateMapForItem=function(t,e){var n,i=this.resolveCollectionConfig(t),o=i.startIndex,s=i.endIndex,c=i.totalItems,d=this.collectionId,f=t[e],g=this.collectionsStateMap,m=typeof e=="string"?Object.keys(t).indexOf(e):e,y=m-o,x=c-(1+y),w={collectionId:d,currentIndex:m,currentItem:f,currentKey:e,startIndex:o,endIndex:s,totalItems:c,remainingItems:x},k=Wn(Wn({},g),(n={},n[d]=w,n));return k},r.prototype.hasDuplicateCollectionId=function(){var t=this.collectionId,e=this.collectionsStateMap;return!!e[t]}
920,r.prototype.resolveCollectionConfig=function(t){var e,n,i=Array.isArray(t),o=i?t.length:Object.keys(t).length,s=(e=this.getConfigStartIndex())!==null&&e!==void 0?e:0,c=(n=this.getConfigEndIndex())!==null&&n!==void 0?n:Number.MAX_VALUE,d=Math.min(o-1,c),f=0;return o>0&&(f=Math.max(0,d-s+1)),{startIndex:s,endIndex:d,totalItems:f,isArray:i}},r.prototype.ensureFirstChild=function(){var t=this.em.Components.getType(jr.collectionItem).model;return this.firstChild||new t({type:jr.collectionItem},this.opt)},Object.defineProperty(r.prototype,"collectionId",{get:function(){var t,e;return(e=(t=this.dataResolverProps)===null||t===void 0?void 0:t.collectionId)!==null&&e!==void 0?e:""},enumerable:!1,configurable:!0}),r.isComponent=function(t){return xr(t.tagName)===jr.collection},r.prototype.toJSON=function(t){var e=a.prototype.toJSON.call(this,t);delete e.droppable,delete e[Kn];var n=this.firstChild;return Wn(Wn({},e),{components:[n]})},r})(Gb);const X8=Y8;function J8(a){return(0,E.isArray)(a)?a.length:Object.keys(a).length}function Q8(a,r,t){return a?!0:(t.logError('The "'.concat(r,'" property is required in the collection definition.')),!1)}function t7(a,r){for(var t=[{property:a==null?void 0:a.collectionId,propertyPath:"dataResolver.collectionId"},{property:a==null?void 0:a.dataSource,propertyPath:"dataResolver.dataSource"}],e=0,n=t;e<n.length;e++){var i=n[e].propertyPath;if(!Q8(a,i,r))return[]}var o=a==null?void 0:a.startIndex;return o!==void 0&&(o<0||!Number.isInteger(o))&&r.logError("Invalid startIndex: ".concat(o,". It must be a non-negative integer.")),!0}var e7=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),r7=(function(a){e7(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r})(ar);const n7=r7;var i7=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),a7=(function(a){i7(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.initialize=function(t){t===void 0&&(t={}),a.prototype.initialize.call(this,t),this.postRender=this.postRender.bind(this),this.listenTo(this.model.components(),"reset",this.postRender),this.dataResolverListener=new cd({em:this.em,resolver:this.model.dataResolver,onUpdate:this.postRender})},r.prototype.renderDataResolver=function(){var t=this.model.getIfTrueContent(),e=this.model.getIfFalseContent(),n=t==null?void 0:t.getEl(),i=e==null?void 0:e.getEl(),o=this.model.isTrue();n&&(n.style.display=o?"":"none"),i&&(i.style.display=o?"none":"")},r.prototype.postRender=function(){this.renderDataResolver(),a.prototype.postRender.call(this)},r.prototype.remove=function(){return this.stopListening(this.model.components(),"reset",this.postRender),this.dataResolverListener.destroy(),a.prototype.remove.call(this)},r})(ar);const o7=a7;var s7=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),l7=(function(a){s7(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.initialize=function(t){var e=this;t===void 0&&(t={}),a.prototype.initialize.call(this,t),this.dataResolverListener=new cd({em:this.em,resolver:this.model.dataResolver,onUpdate:function(){return e.postRender()}})},r.prototype.remove=function(){return this.dataResolverListener.destroy(),a.prototype.remove.call(this)},r.prototype.postRender=function(){var t=this.model,e=t.getDataResolver(),n=!!e.asPlainText;
920n?this.el.textContent=t.getDataValue():this.el.innerHTML=t.getDataValue(),a.prototype.postRender.call(this)},r})(ar);const c7=l7;var d7=function(){return{stylePrefix:"comp-",components:[],draggableComponents:!0,disableTextInnerChilds:!1,processor:void 0,useFrameDoc:!1,voidElements:["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"]}};const u7=d7;var f7=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),vf=function(){return vf=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},vf.apply(this,arguments)},p7=(function(a){f7(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"defaults",{get:function(){return vf(vf({},a.prototype.defaults),{tagName:"",droppable:!1,layerable:!1,selectable:!1,editable:!0})},enumerable:!1,configurable:!0}),r.prototype.toHTML=function(){var t=this.content,e=this.parent();return e!=null&&e.is("script")?t:this.__escapeContent(t)},r.prototype.__escapeContent=function(t){return cb(t)},r.isComponent=function(t){var e;if(t.nodeType===3)return{type:"textnode",content:(e=t.textContent)!==null&&e!==void 0?e:""}},r})(Mr);const Yb=p7;var h7=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Zg=function(){return Zg=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Zg.apply(this,arguments)},g7=(function(a){h7(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"defaults",{get:function(){return Zg({},a.prototype.defaults)},enumerable:!1,configurable:!0}),r.prototype.toHTML=function(){return"<!--".concat(this.content,"-->")},r.isComponent=function(t){var e;if(t.nodeType==8)return{type:"comment",content:(e=t.textContent)!==null&&e!==void 0?e:""}},r})(Yb);const v7=g7;var m7=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),mf=function(){return mf=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},mf.apply(this,arguments)},Th="iframe",y7=(function(a){m7(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"defaults",{get:function(){return mf(mf({},a.prototype.defaults),{type:Th,tagName:Th,droppable:!1,resizable:!0,traits:["id","title","src"],attributes:{frameborder:"0"}})},enumerable:!1,configurable:!0}),r.isComponent=function(t){return xr(t.tagName)===Th},r})(Mr);const b7=y7;var x7=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}
920r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),yf=function(){return yf=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},yf.apply(this,arguments)},L0='xmlns="http://www.w3.org/2000/svg" width="100" viewBox="0 0 24 24" style="fill: rgba(0,0,0,0.15); transform: scale(0.75)"',w7=(function(a){x7(r,a);function r(t,e){t===void 0&&(t={});var n=a.call(this,t,e)||this,i=n.get("attributes").src;return i&&Mu((0,E.result)(n,"defaults").src)!==i&&n.set("src",i,{silent:!0}),n}return Object.defineProperty(r.prototype,"defaults",{get:function(){return yf(yf({},a.prototype.defaults),{type:"image",tagName:"img",void:!0,droppable:0,editable:1,highlightable:0,resizable:{ratioDefault:1},traits:["alt"],src:"<svg ".concat(L0,`> 921 <path d="M8.5 13.5l2.5 3 3.5-4.5 4.5 6H5m16 1V5a2 2 0 0 0-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2z"></path> 922 </svg>`),fallback:"<svg ".concat(L0,`> 923 <path d="M2.28 3L1 4.27l2 2V19c0 1.1.9 2 2 2h12.73l2 2L21 21.72 2.28 3m2.55 0L21 19.17V5a2 2 0 0 0-2-2H4.83M8.5 13.5l2.5 3 1-1.25L14.73 18H5l3.5-4.5z"></path> 924 </svg>`),file:""})},enumerable:!1,configurable:!0}),r.prototype.initToolbar=function(){a.prototype.initToolbar.call(this);var t=this.em;if(t){var e=t.Commands,n="image-editor";if(e.has(n)){for(var i=!1,o=this.get("toolbar"),s=0;s<o.length;s++)if(o[s].command==="image-editor"){i=!0;break}i||(o.push({attributes:{class:"fa fa-pencil"},command:n}),this.set("toolbar",o))}}},r.prototype.getAttrToHTML=function(){var t=a.prototype.getAttrToHTML.call(this),e=this.getSrcResult();return e&&(t.src=e),t},r.prototype.getSrcResult=function(t){t===void 0&&(t={});var e=this.get(t.fallback?"fallback":"src")||"",n=e;return e&&e.substr(0,4)==="<svg"&&(n=Mu(e)),n},r.prototype.isDefaultSrc=function(){var t=this.get("src"),e=(0,E.result)(this,"defaults").src;return t===e||t===Mu(e)},r.prototype.toJSON=function(t){var e=a.prototype.toJSON.call(this,t),n=e.attributes;return n&&e.src===n.src&&delete e.src,e},r.prototype.parseUri=function(t){var e={},n=function(i){i===void 0&&(i="");for(var o={},s=i.substring(1).split("&"),c=0;c<s.length;c++){var d=s[c].split("="),f=decodeURIComponent(d[0]);f&&(o[f]=decodeURIComponent(d[1]||""))}return o};if(Jr())e=document.createElement("a"),e.href=t;else if(typeof URL<"u")try{e=new URL(t)}catch{}return{hostname:e.hostname||"",pathname:e.pathname||"",protocol:e.protocol||"",search:e.search||"",hash:e.hash||"",port:e.port||"",query:n(e.search)}},r.isComponent=function(t){return xr(t.tagName)==="img"},r})(Mr);const m1=w7;var _7=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),bf=function(){return bf=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},bf.apply(this,arguments)},C7=(function(a){_7(r,a);function r(t,e){t===void 0&&(t={});var n=a.call(this,t,e)||this;return n.__checkInnerChilds(),n}return Object.defineProperty(r.prototype,"defaults",{get:function(){return bf(bf({},a.prototype.defaults),{type:"text",droppable:!1,editable:!0})},enumerable:!1,configurable:!0}),r.prototype.__checkInnerChilds=function(){var t=this.em.Components.config.disableTextInnerChilds;if(t){var e=function(n){n.isInstanceOf("textnode")||n.set({locked:!0,layerable:!1})};(0,E.isFunction)(t)?this.forEachChild(function(n){t(n)&&e(n)}):this.forEachChild(e)}},r})(Mr);const y1=C7;var k7=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}
924r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),xf=function(){return xf=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},xf.apply(this,arguments)},Oh="label",S7=(function(a){k7(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"defaults",{get:function(){return xf(xf({},a.prototype.defaults),{type:Oh,tagName:Oh,traits:["id","title","for"]})},enumerable:!1,configurable:!0}),r.isComponent=function(t){return xr(t.tagName)===Oh},r})(y1);const T7=S7;var O7=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),wf=function(){return wf=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},wf.apply(this,arguments)},D0="link",E7=(function(a){O7(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"defaults",{get:function(){return wf(wf({},a.prototype.defaults),{type:D0,tagName:"a",traits:["title","href","target"]})},enumerable:!1,configurable:!0}),r.isComponent=function(t,e){e===void 0&&(e={});var n;if(xr(t.tagName)==="a"){var i=e.textTags||[];n={type:D0,editable:!1};var o=t.childNodes,s=o.length;s||delete n.editable,(0,E.forEach)(o,function(c){var d=c.tagName;(c.nodeType==3&&c.textContent.trim()!==""||d&&i.indexOf(xr(d))>=0)&&delete n.editable})}return n},r})(y1);const A7=E7;var M7=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),_f=function(){return _f=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},_f.apply(this,arguments)},P7=(function(a){M7(r,a);function r(t,e){t===void 0&&(t={});var n=a.call(this,t,e)||this;return n.get("src")?n.parseFromSrc():n.updateSrc(),n.listenTo(n,"change:address change:zoom change:mapType",n.updateSrc),n}return Object.defineProperty(r.prototype,"defaults",{get:function(){var t=a.prototype.defaults;return _f(_f({},t),{type:"map",src:"",void:!1,mapUrl:"https://maps.google.com/maps",tagName:"iframe",mapType:"q",address:"",zoom:"1",attributes:{frameborder:0},toolbar:t.toolbar,traits:[{label:"Address",name:"address",placeholder:"eg. London, UK",changeProp:!0},{type:"select",label:"Map type",name:"mapType",changeProp:!0,options:[{id:"q",label:"Roadmap"},{id:"w",label:"Satellite"}]},{label:"Zoom",name:"zoom",type:"range",min:1,max:20,changeProp:!0}]})},enumerable:!1,configurable:!0}),r.prototype.updateSrc=function(){this.set("src",this.getMapUrl())},r.prototype.getMapUrl=function(){var t=this.get("address"),e=this.get("zoom"),n=this.get("mapType");t=t?"&q="+t:"",e=e?"&z="+e:"",n=n?"&t="+n:"";var i=this.get("mapUrl")+"?"+t+e+n;return i+="&output=embed",i},r.prototype.parseFromSrc=function(){var t=this.parseUri(this.get("src")),e=t.query;e.q&&this.set("address",e.q),e.z&&this.set("zoom",e.z),e.t&&this.set("mapType",e.t)},r.isComponent=function(t){var e,n=((e=t.getAttribute)===null||e===void 0?void 0:e.call(t,"src"))||"";if(xr(t.tagName)=="iframe"&&/maps\.google\.com/.test(n))return{type:"map",src:n}},r})(m1);const L7=P7;
924var D7=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Cf=function(){return Cf=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Cf.apply(this,arguments)},Eh="script",I7=(function(a){D7(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"defaults",{get:function(){return Cf(Cf({},a.prototype.defaults),{type:Eh,tagName:Eh,droppable:!1,draggable:!1,layerable:!1,highlightable:!1})},enumerable:!1,configurable:!0}),r.isComponent=function(t){return xr(t.tagName)===Eh},r})(Mr);const j7=I7;var N7=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),kf=function(){return kf=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},kf.apply(this,arguments)},Ah="svg",R7=(function(a){N7(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"defaults",{get:function(){return kf(kf({},a.prototype.defaults),{type:Ah,tagName:Ah,highlightable:!1,resizable:{ratioDefault:!0}})},enumerable:!1,configurable:!0}),r.prototype.getName=function(){var t=this.get("tagName"),e=this.get("custom-name");return t=t.charAt(0).toUpperCase()+t.slice(1),e||t},r.isComponent=function(t){return xr(t.tagName)===Ah},r})(Mr);const Xb=R7;var B7=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Sf=function(){return Sf=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Sf.apply(this,arguments)},V7=(function(a){B7(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"defaults",{get:function(){return Sf(Sf({},a.prototype.defaults),{selectable:!1,hoverable:!1,layerable:!1})},enumerable:!1,configurable:!0}),r.isComponent=function(t,e){return e===void 0&&(e={}),!!e.inSvg},r})(Xb);const H7=V7;var F7=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Tf=function(){return Tf=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Tf.apply(this,arguments)},Mh="table",$7=(function(a){F7(r,a);function r(t,e){t===void 0&&(t={});var n=a.call(this,t,e)||this,i=n.get("components");return!i.length&&i.add({type:"tbody"}),n}return Object.defineProperty(r.prototype,"defaults",{get:function(){return Tf(Tf({},a.prototype.defaults),{type:Mh,tagName:Mh,droppable:["tbody","thead","tfoot"]})}
924,enumerable:!1,configurable:!0}),r.isComponent=function(t){return xr(t.tagName)===Mh},r})(Mr);const z7=$7;var U7=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Of=function(){return Of=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Of.apply(this,arguments)},Ph="tbody",W7=(function(a){U7(r,a);function r(t,e){t===void 0&&(t={});var n=a.call(this,t,e)||this,i=n.get("components"),o=n.get("columns"),s=n.get("rows");if(!i.length){for(var c=[];s--;){for(var d=[],f=o;f--;)d.push({type:"cell",classes:["cell"]});c.push({type:"row",classes:["row"],components:d})}i.add(c)}return n}return Object.defineProperty(r.prototype,"defaults",{get:function(){return Of(Of({},a.prototype.defaults),{type:Ph,tagName:Ph,draggable:["table"],droppable:["tr"],columns:1,rows:1})},enumerable:!1,configurable:!0}),r.isComponent=function(t){return xr(t.tagName)===Ph},r})(Mr);const b1=W7;var Z7=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Ef=function(){return Ef=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Ef.apply(this,arguments)},q7=(function(a){Z7(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"defaults",{get:function(){return Ef(Ef({},a.prototype.defaults),{type:"cell",tagName:"td",draggable:["tr"]})},enumerable:!1,configurable:!0}),r.isComponent=function(t){return["td","th"].indexOf(xr(t.tagName))>=0},r})(Mr);const K7=q7;var G7=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Af=function(){return Af=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Af.apply(this,arguments)},Lh="tfoot",Y7=(function(a){G7(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"defaults",{get:function(){return Af(Af({},a.prototype.defaults),{type:Lh,tagName:Lh})},enumerable:!1,configurable:!0}),r.isComponent=function(t){return xr(t.tagName)===Lh},r})(b1);const X7=Y7;var J7=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Mf=function(){return Mf=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];
924for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Mf.apply(this,arguments)},Dh="thead",Q7=(function(a){J7(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"defaults",{get:function(){return Mf(Mf({},a.prototype.defaults),{type:Dh,tagName:Dh})},enumerable:!1,configurable:!0}),r.isComponent=function(t){return xr(t.tagName)===Dh},r})(b1);const t9=Q7;var e9=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Pf=function(){return Pf=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Pf.apply(this,arguments)},I0="tr",r9=(function(a){e9(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"defaults",{get:function(){return Pf(Pf({},a.prototype.defaults),{tagName:I0,draggable:["thead","tbody","tfoot"],droppable:["th","td"]})},enumerable:!1,configurable:!0}),r.isComponent=function(t){return xr(t.tagName)===I0},r})(Mr);const n9=r9;var i9=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Nc=function(){return Nc=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Nc.apply(this,arguments)},Ih="video",To="yt",Ds="vi",Oo="ytnc",j0="so",qg="strict-origin-when-cross-origin",jh=function(a){return a&&a!=="0"},a9=(function(a){i9(r,a);function r(t,e){t===void 0&&(t={});var n=a.call(this,t,e)||this;return n.get("src")&&n.parseFromSrc(),n.updatePropsFromAttr(),n.updateTraits(),n.on("change:provider",n.updateTraits),n.on("change:videoId change:provider",n.updateSrc),n}return Object.defineProperty(r.prototype,"defaults",{get:function(){return Nc(Nc({},a.prototype.defaults),{type:Ih,tagName:Ih,videoId:"",void:!1,provider:j0,ytUrl:"https://www.youtube.com/embed/",ytncUrl:"https://www.youtube-nocookie.com/embed/",viUrl:"https://player.vimeo.com/video/",loop:!1,poster:"",muted:!1,autoplay:!1,controls:!0,color:"",list:"",src:"",rel:1,sources:[],attributes:{allowfullscreen:"allowfullscreen"}})},enumerable:!1,configurable:!0}),r.prototype.updatePropsFromAttr=function(){if(this.get("provider")===j0){var t=this.get("attributes"),e=t.controls,n=t.autoplay,i=t.loop,o=t.muted,s={};Xr(e)&&(s.controls=!!e),Xr(n)&&(s.autoplay=!!n),Xr(i)&&(s.loop=!!i),Xr(o)&&(s.muted=!!o),so(s)||this.set(s)}},r.prototype.updateProviderAttributes=function(){var t=this.attributes,e=t.provider,n=t.attributes,i=n===void 0?{}:n,o=Nc({},i),s=!1;e===To||e===Oo?Xr(o.referrerpolicy)||(o.referrerpolicy=qg,s=!0):o.referrerpolicy===qg&&(delete o.referrerpolicy,s=!0),s&&this.setAttributes(o)},r.prototype.updateTraits=function(){var t=this.em,e=this.get("provider"),n="iframe",i;switch(e){case To:case Oo:i=this.getYoutubeTraits();break;case Ds:i=this.getVimeoTraits();break;default:n="video",i=this.getSourceTraits()}this.updateProviderAttributes(),this.set({tagName:n},{silent:!0}),this.set({traits:i}),t.get("ready")&&t.trigger(te.toggled)},r.prototype.parseFromSrc=function(){var t=this.get("provider"),e=this.parseUri(this.get("src")),n=e.query;switch(t){case To:case Oo:case Ds:this.set("videoId",e.pathname.split("/").pop()),n.list&&this.set("list",n.list),jh(n.autoplay)&&this.set("autoplay",!0),jh(n.loop)&&this.set("loop",!0),parseInt(n.controls)===0&&this.set("controls",!1),jh(n.color)&&this.set("color",n.color),n.rel==="0"&&this.set("rel",0),(n.mute==="1"||n.muted==="1")&&this.set("muted",!0);break}},r.prototype.updateSrc=function(){var t=this.get("provider"),e="";switch(t){case To:e=this.getYoutubeSrc();break;case Oo:e=this.getYoutubeNoCookieSrc();break;case Ds:e=this.getVimeoSrc();break}this.set({src:e})},r.prototype.getAttrToHTML=function(){var t=a.prototype.getAttrToHTML.call(this),e=this.get("provider");switch(e){case To:case Oo:case Ds:break;default:t.loop=!!this.get("loop"),t.autoplay=!!this.get("autoplay"),t.controls=!!this.get("controls"),t.muted=!!this.get("muted")}return t},r.prototype.getProviderTrait=function(){return{type:"select",label:"Provider",name:"provider",changeProp:!0,options:[{value:"so",name:"HTML5 Source"},{value:To,name:"Youtube"},{value:Oo,name:"Youtube (no cookie)"},{value:Ds,name:"Vimeo"}]}},r.prototype.getSourceTraits=function(){return[this.getProviderTrait(),{label:"Source",name:"src",placeholder:"eg. ./media/video.mp4",changeProp:!0},{label:"Poster",name:"poster",placeholder:"eg. ./media/image.jpg"},this.getAutoplayTrait(),this.getLoopTrait(),this.getControlsTrait(),this.getMutedTrait()]},r.prototype.getYoutubeTraits=function(){return[this.getProviderTrait(),{label:"Video ID",name:"videoId",placeholder:"eg. jNQXAC9IVRw",changeProp:!0},this.getAutoplayTrait(),this.getLoopTrait(),this.getControlsTrait(),{type:"checkbox",label:"Related",name:"rel",changeProp:!0},this.getMutedTrait()]},r.prototype.getVimeoTraits=function(){return[this.getProviderTrait(),{label:"Video ID",name:"videoId",placeholder:"eg. 123456789",changeProp:!0},{label:"Color",name:"color",placeholder:"eg. FF0000",changeProp:!0},this.getAutoplayTrait(),this.getLoopTrait(),this.getMutedTrait()]},r.prototype.getAutoplayTrait=function(){return{type:"checkbox",label:"Autoplay",name:"autoplay",changeProp:!0}},r.prototype.getLoopTrait=function(){return{type:"checkbox",label:"Loop",name:"loop",changeProp:!0}},r.prototype.getControlsTrait=function(){return{type:"checkbox",label:"Controls",name:"controls",changeProp:!0}},r.prototype.getMutedTrait=function(){return{type:"checkbox",label:"Muted",name:"muted",changeProp:!0}},r.prototype.getYoutubeSrc=function(){var t=this.get("videoId"),e=this.get("ytUrl"),n=this.get("list");return e+=t+(t.indexOf("?")<0?"?":""),e+=n?"&list=".concat(n):"",e+=this.get("autoplay")?"&autoplay=1":"",e+=this.get("muted")?"&mute=1":"",e+=this.get("controls")?"":"&controls=0&showinfo=0",e+=this.get("loop")?"&loop=1&playlist=".concat(t):"",e+=this.get("rel")?"":"&rel=0",e},r.prototype.getYoutubeNoCookieSrc=function(){var t=this.getYoutubeSrc();return t=t.replace(this.get("ytUrl"),this.get("ytncUrl")),t},r.prototype.getVimeoSrc=function(){var t=this.get("viUrl");return t+=this.get("videoId")+"?",t+=this.get("autoplay")?"&autoplay=1":"",t+=this.get("muted")?"&muted=1":"",t+=this.get("loop")?"&loop=1":"",t+=this.get("controls")?"":"&title=0&portrait=0&badge=0",t+=this.get("color")?"&color="+this.get("color"):"",t},r.isComponent=function(t){var e,n=t.tagName,i=((e=t.getAttribute)===null||e===void 0?void 0:e.call(t,"src"))||"",o=/youtube\.com\/embed/.test(i),s=/youtube-nocookie\.com\/embed/.test(i),c=/player\.vimeo\.com\/video/.test(i),d=o||s||c;if(xr(n)==Ih||xr(n)=="iframe"&&d){var f={type:"video"};return i&&(f.src=i),d&&(o?f.provider=To:s?f.provider=Oo:c&&(f.provider=Ds)),f}},r})(m1);const o9=a9;var cl;(function(a){a.currentIndex="currentIndex",a.startIndex="startIndex",a.prevItem="prevItem",a.currentItem="currentItem",a.nextItem="nextItem",a.currentKey="currentKey",a.endIndex="endIndex",a.collectionId="collectionId",a.totalItems="totalItems",a.remainingItems="remainingItems"})(cl||(cl={}));
924var s9=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),_a=function(){return _a=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},_a.apply(this,arguments)},l9=(function(a){s9(r,a);function r(t,e){t===void 0&&(t={});var n=a.call(this,t,e)||this;n._resolverCurrentItem=0,n._isWatchingCollectionStateMap=!1;var i=n.dataResolverProps;return i&&(n.onDataSourceChange(),n.syncComponentsCollectionState()),n}return Object.defineProperty(r.prototype,"defaults",{get:function(){return _a(_a({},a.prototype.defaults),{dataResolver:null,tagName:"body",removable:!1,copyable:!1,draggable:!1,components:[],traits:[],doctype:"",head:null,docEl:null,stylable:["background","background-color","background-image","background-repeat","background-attachment","background-position","background-size"]})},enumerable:!1,configurable:!0}),r.prototype.preInit=function(){var t,e,n=this,i=n.opt,o=n.attributes,s=(t=this.em)===null||t===void 0?void 0:t.Components,c=(e=s==null?void 0:s.getType(ll))===null||e===void 0?void 0:e.model,d=s==null?void 0:s.getType("default").model;if(c){var f=o.head,g=o.docEl;this.set({head:f&&f instanceof Mr?f:new c(_a({},f),i),docEl:g&&g instanceof Mr?g:new d(_a({tagName:"html"},g),i)},{silent:!0})}},Object.defineProperty(r.prototype,"head",{get:function(){return this.get("head")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"docEl",{get:function(){return this.get("docEl")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"doctype",{get:function(){return this.attributes.doctype||""},enumerable:!1,configurable:!0}),r.prototype.clone=function(t){var e=a.prototype.clone.call(this,t);return e.set("head",this.get("head").clone(t)),e.set("docEl",this.get("docEl").clone(t)),e},r.prototype.toHTML=function(t){t===void 0&&(t={});var e=this.doctype,n=(0,E.isUndefined)(t.asDocument)?!!e:t.asDocument,i=this,o=i.head,s=i.docEl,c=a.prototype.toHTML.call(this,t),d=n&&(o==null?void 0:o.toHTML(t))||"",f=n&&J5(s==null?void 0:s.getAttrToHTML())||"",g=f?" ".concat(f):"";return n?"".concat(e,"<html").concat(g,">").concat(d).concat(c,"</html>"):c},r.prototype.onCollectionsStateMapUpdate=function(t){var e=this.head;a.prototype.onCollectionsStateMapUpdate.call(this,t),e.onCollectionsStateMapUpdate(t)},r.prototype.syncComponentsCollectionState=function(){a.prototype.syncComponentsCollectionState.call(this),this.head.syncComponentsCollectionState()},r.prototype.syncOnComponentChange=function(t,e,n){var i=this.getCollectionsStateMap();this.collectionsStateMap=i,a.prototype.syncOnComponentChange.call(this,t,e,n),this.onCollectionsStateMapUpdate(i)},Object.defineProperty(r.prototype,"resolverCurrentItem",{get:function(){return this._resolverCurrentItem},set:function(t){this._resolverCurrentItem=t,this.onCollectionsStateMapUpdate(this.getCollectionsStateMap())},enumerable:!1,configurable:!0}),r.prototype.setResolverCurrentItem=function(t){this.resolverCurrentItem=t},r.prototype.getCollectionsState=function(){var t,e="".concat(vl.rootData),n=this,i=n.dataResolverPath,o=n.resolverCurrentItem,s={collectionId:e};if(!i)return s;var c,d,f,g=this.getDataSourceItems(),m=(0,E.isArray)(g)?g:Object.values(g||{}),y=o;if((0,E.isNumber)(o))d=m[o],c=m[o-1],f=m[o+1];else{var x=Object.entries(g).map(function(k){var S=k[0],A=k[1];return _a({id:S},A)}),w=x.findIndex(function(k){return(k==null?void 0:k.id)===o});y=w,d=m[w],c=m[w-1],f=m[w+1]}return _a(_a({},s),(t={prevItem:c,nextItem:f},t[cl.currentItem]=d,t[cl.currentIndex]=y,t[cl.totalItems]=m.length,t))},r.prototype.onDataSourceChange=function(){this.onCollectionsStateMapUpdate(this.getCollectionsStateMap())},r.prototype.listenToPropsChange=function(){var t=this;this.on("change:dataResolver",function(e,n){var i=!(0,E.isUndefined)(n);i&&!t._isWatchingCollectionStateMap?(t._isWatchingCollectionStateMap=!0,t.syncComponentsCollectionState(),t.onCollectionsStateMapUpdate(t.getCollectionsStateMap()),t.listenToDataSource()):!i&&t._isWatchingCollectionStateMap&&(t._isWatchingCollectionStateMap=!1,t.stopSyncComponentCollectionState())}),this.listenToDataSource()},r.prototype.getCollectionsStateMap=function(){var t;return this.dataResolverPath?(t={},t[vl.rootData]=this.getCollectionsState(),t):{}},r.prototype.__postAdd=function(){var t,e=(t=this.em)===null||t===void 0?void 0:t.UndoManager;return!this.__hasUm&&(e==null||e.add(this)),a.prototype.__postAdd.call(this)},r.prototype.__postRemove=function(){var t,e=(t=this.em)===null||t===void 0?void 0:t.UndoManager;return e==null||e.remove(this),a.prototype.__postRemove.call(this)},r.isComponent=function(){return!1},r})(Gb);const c9=l9;
924var d9=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Lf=function(){return Lf=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Lf.apply(this,arguments)},u9=(function(a){d9(r,a);function r(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=a.apply(this,t)||this;n.refreshDbn=(0,E.debounce)(function(){return n.refresh()},0);var i=n.events;return n.on(i.update,n.onUpdate),n.on(i.updateInside,n.onUpdateDeep),n}return r.prototype.removeChildren=function(t,e,n){var i;n===void 0&&(n={}),a.prototype.removeChildren.call(this,t,e,n),(i=Xn(t))===null||i===void 0||i.forEach(function(o){return Ep(o,{skipRefs:!0})}),this.__trgEvent(this.events.symbolMainRemove,{component:t})},r.prototype.onAdd=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];a.prototype.onAdd.apply(this,t);var n=t[0];this.__trgEvent(this.events.symbolMainAdd,{component:n})},r.prototype.onUpdate=function(t){this.__trgEvent(this.events.symbolMainUpdate,t)},r.prototype.onUpdateDeep=function(t){this.__trgEvent(this.events.symbolMainUpdateDeep,t)},r.prototype.refresh=function(){var t=this,e=t.em,n=t.events;e.trigger(n.symbol)},r.prototype.__trgEvent=function(t,e,n){n===void 0&&(n=!1);var i=this,o=i.em,s=i.events,c=n?s.symbolInstance:s.symbolMain;o.trigger(t,e),o.trigger(c,Lf(Lf({},e),{event:t})),this.refreshDbn()},r})(nd);const f9=u9;var p9=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),h9=(function(a){p9(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype._setAttributes=function(){},r.prototype.renderAttributes=function(){},r.prototype.updateStatus=function(){},r.prototype.updateClasses=function(){},r.prototype.setAttribute=function(){},r.prototype.updateAttributes=function(){},r.prototype.initClasses=function(){},r.prototype.initComponents=function(){},r.prototype.delegateEvents=function(){return this},r.prototype._createElement=function(){return document.createTextNode("")},r.prototype.render=function(){var t=this,e=t.model,n=t.el;return e.opt.temporary?this:(n.textContent=e.content,this)},r})(ar);const Jb=h9;var g9=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),v9=(function(a){g9(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype._createElement=function(){return document.createComment(this.model.content)},r})(Jb);const m9=v9;var y9=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}
924r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),b9=(function(a){y9(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.tagName=function(){return"div"},r.prototype.initialize=function(t){a.prototype.initialize.call(this,t),this.listenTo(this.model,"change:attributes:src",this.updateSrc)},r.prototype.updateSrc=function(){var t=F5(this.el,"iframe")[0];t&&$5(t,{src:this.__getSrc()})},r.prototype.render=function(){a.prototype.render.call(this);var t=Vi("iframe",{class:"".concat(this.ppfx,"no-pointer"),style:"width: 100%; height: 100%; border: none",src:this.__getSrc()});return this.el.appendChild(t),this},r.prototype.__getSrc=function(){return this.model.getAttributes().src||""},r})(ar);const x9=b9;var w9=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),_9=(function(a){w9(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.tagName=function(){return"img"},r.prototype.events=function(){return{dblclick:"onActive",click:"initResize",error:"onError",load:"onLoad",dragstart:"noDrag"}},r.prototype.initialize=function(t){a.prototype.initialize.call(this,t),this.listenTo(this.model,"change:src",this.updateSrc),this.classEmpty="".concat(this.ppfx,"plh-image"),this.fetchFile()},r.prototype.fetchFile=function(){if(!this.modelOpt.temporary){var t=this,e=t.model,n=t.em,i=e.get("file");if(i&&n){var o=n.Assets.FileUploader();o==null||o.uploadFile({dataTransfer:{files:[i]}},function(s){var c=s&&s.data&&s.data[0],d=c&&((0,E.isString)(c)?c:c.src);d&&e.set({src:d})},{componentView:this,file:i}),e.set("file","")}}},r.prototype.updateSrc=function(){var t=this.model;t.addAttributes({src:t.getSrcResult()}),this.updateClasses()},r.prototype.updateClasses=function(){a.prototype.updateClasses.call(this);var t=this,e=t.el,n=t.classEmpty,i=t.model,o=i.getSrcResult()&&!i.isDefaultSrc(),s=o?"remove":"add";e.classList[s](n)},r.prototype.onActive=function(t){t==null||t.stopPropagation();var e=this,n=e.em,i=e.model,o=n==null?void 0:n.Assets;o&&i.get("editable")&&o.open({select:function(s,c){i.set({src:s.getSrc()}),c&&o.close()},target:i,types:["image"],accept:"image/*"})},r.prototype.onError=function(){var t=this,e=t.model,n=t.el,i=e.getSrcResult({fallback:!0});i&&(n.srcset&&(n.srcset=""),n.src=i)},r.prototype.onLoad=function(){this.em.Canvas.refresh({all:!0})},r.prototype.noDrag=function(t){return t.preventDefault(),!1},r.prototype.render=function(){if(this.renderAttributes(),this.modelOpt.temporary)return this;this.updateSrc();var t=this,e=t.$el,n=t.model,i=e.attr("class")||"";return!n.get("src")&&e.attr("class","".concat(i," ").concat(this.classEmpty).trim()),this.postRender(),this},r})(ar);const x1=_9;var C9=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),qo=function(){return qo=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},qo.apply(this,arguments)},tu=function(a,r,t,e){function n(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(f){try{d(e.next(f))}catch(g){o(g)}}function c(f){try{d(e.throw(f))}catch(g){o(g)}}function d(f){f.done?i(f.value):n(f.value).then(s,c)}d((e=e.apply(a,r||[])).next())})},eu=function(a,r){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},e,n,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(d){return function(f){return c([d,f])}}function c(d){if(e)throw new TypeError("Generator is already executing.");for(;o&&(o=0,d[0]&&(t=0)),t;)try{if(e=1,n&&(i=d[0]&2?n.return:d[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,d[1])).done)return i;switch(n=0,i&&(d=[d[0]&2,i.value]),d[0]){case 0:case 1:i=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,n=d[1],d=[0];continue;
924case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]<i[3])){t.label=d[1];break}if(d[0]===6&&t.label<i[1]){t.label=i[1],i=d;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(d);break}i[2]&&t.ops.pop(),t.trys.pop();continue}d=r.call(a,t)}catch(f){d=[6,f],n=0}finally{e=i=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},k9=(function(a){C9(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.events=function(){return{dblclick:"onActive",input:"onInput"}},r.prototype.initialize=function(t){a.prototype.initialize.call(this,t),(0,E.bindAll)(this,"disableEditing","onDisable");var e=this.model,n=this.em;this.listenTo(e,"focus",this.onActive),this.listenTo(e,"change:content",this.updateContentText),this.listenTo(e,"sync:content",this.syncContent),this.rte=n==null?void 0:n.RichTextEditor},r.prototype.updateContentText=function(t,e,n){n===void 0&&(n={}),!n.fromDisable&&this.disableEditing()},r.prototype.canActivate=function(){var t=this,e=t.model,n=t.rteEnabled,i=t.em,o=i==null?void 0:i.getEditing(),s=o===e,c=!0,d=!1,f;if((n||!e.get("editable")||s||(d=e.isChildOf("text")))&&(c=!1,d&&!e.get("textable"))){for(var g=e.parent();g&&!g.isInstanceOf("text");)g=g.parent();g&&g.get("editable")?f=g:c=!0}return{result:c,delegate:f}},r.prototype.onActive=function(t){return tu(this,void 0,void 0,function(){var e,n,i,o,s,c,d,f,g,m,y,x;return eu(this,function(w){switch(w.label){case 0:return e=this,n=e.rte,i=e.em,o=this.canActivate(),s=o.result,c=o.delegate,s?((x=t==null?void 0:t.stopPropagation)===null||x===void 0||x.call(t),d=this,[4,this.getContent()]):(c&&((y=t==null?void 0:t.stopPropagation)===null||y===void 0||y.call(t),i.setSelected(c),c.trigger("active",t)),[2]);case 1:if(d.lastContent=w.sent(),!n)return[3,5];w.label=2;case 2:return w.trys.push([2,4,,5]),f=this,g=this,[4,n.enable(f,this.activeRte,{event:t,view:f})];case 3:return g.activeRte=w.sent(),[3,5];case 4:return m=w.sent(),i.logError(m),[3,5];case 5:return this.toggleEvents(!0),[2]}})})},r.prototype.onDisable=function(t){this.disableEditing(t)},r.prototype.disableEditing=function(){return tu(this,arguments,void 0,function(t){var e,n,i,o,s,c,d,f,g;return t===void 0&&(t={}),eu(this,function(m){switch(m.label){case 0:return e=this,n=e.model,i=e.rte,o=e.activeRte,s=e.em,c=n&&n.get("editable"),i?(d={},[4,this.getContent()]):[3,7];case 1:f=m.sent(),m.label=2;case 2:return m.trys.push([2,4,,5]),[4,i.disable(this,o,t)];case 3:return d=m.sent(),[3,5];case 4:return g=m.sent(),s.logError(g),[3,5];case 5:return c&&(f!==this.lastContent||d.forceSync)?[4,this.syncContent(qo(qo({},t),{content:f}))]:[3,7];case 6:m.sent(),this.lastContent="",m.label=7;case 7:return this.toggleEvents(),[2]}})})},r.prototype.getContent=function(){return tu(this,void 0,void 0,function(){var t,e,n,i;return eu(this,function(o){switch(o.label){case 0:return t=this,e=t.rte,n=t.activeRte,i="",e?[4,e.getContent(this,n)]:[3,2];case 1:i=o.sent(),o.label=2;case 2:return[2,i]}})})},r.prototype.syncContent=function(){return tu(this,arguments,void 0,function(t){var e,n,i,o,s,c,d,f,g;return t===void 0&&(t={}),eu(this,function(m){switch(m.label){case 0:return e=this,n=e.model,i=e.rte,o=e.rteEnabled,!o&&!t.force?[2]:(g=t.content)!==null&&g!==void 0?(c=g,[3,3]):[3,1];case 1:return[4,this.getContent()];case 2:c=m.sent(),m.label=3;case 3:return s=c,d=n.components(),f=qo({fromDisable:1},t),n.set("content","",f),i!=null&&i.customRte&&!i.customRte.parseContent?(d.length&&d.reset(void 0,qo(qo({},t),{keepIds:Us(d)})),n.set("content",s,f)):d.resetFromString(s,t),[2]}})})},r.prototype.insertComponent=function(t,e){var n;e===void 0&&(e={});var i=this,o=i.model,s=i.el,c=s.ownerDocument,d=c.getSelection();if(d!=null&&d.rangeCount){var f=d.getRangeAt(0),g=f.startContainer,m=f.startOffset,y=eo(g),x=[];if(y&&(!((n=y.is)===null||n===void 0)&&n.call(y,"textnode"))){var w=y.collection;w.forEach(function(A){if(A===y){var L="textnode",D=e.useDomContent?g.textContent||"":A.content;x.push({type:L,content:D.slice(0,m)}),x.push(t),x.push({type:L,content:D.slice(m)})}else x.push(A)});
924var k=x.filter(Boolean),S=k.indexOf(t);return w.reset(k,e),w.at(S)}}return o.append(t,e)},r.prototype.onInput=function(){var t=this.model,e=[te.update,te.input];e.forEach(function(n){return t.emitWithEditor(n,t)})},r.prototype.disablePropagation=function(t){t.stopPropagation()},r.prototype.toggleEvents=function(t){var e=this,n=e.em,i=e.model,o=e.$el,s={on:or,off:gr},c=t?"on":"off";n.setEditing(t?this:!1),this.rteEnabled=!!t;var d=[this.el.ownerDocument,document];if(s.off(d,"mousedown",this.onDisable),s[c](d,"mousedown",this.onDisable),n[c]("toolbar:run:before",this.onDisable),i){var f=n.RichTextEditor.events;i[c]("removed",this.onDisable),i.trigger(t?f.enable:f.disable)}if(o==null||o.off("mousedown",this.disablePropagation),o&&o[c]("mousedown",this.disablePropagation),this.config.draggableComponents)for(var g=this.el;g;)g.draggable=!t,g=g.parentNode,g&&g.tagName=="BODY"&&(g=0)},r})(ar);const Qb=k9;var S9=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),T9=(function(a){S9(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.render=function(){return a.prototype.render.call(this),this.el.addEventListener("click",this.prevDef,!0),this},r})(Qb);const tx=T9;var O9=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),E9=(function(a){O9(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r})(tx);const A9=E9;var M9=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),P9=(function(a){M9(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.tagName=function(){return"div"},r.prototype.events=function(){return{}},r.prototype.initialize=function(t){a.prototype.initialize.call(this,t),this.classEmpty=this.ppfx+"plh-map"},r.prototype.updateSrc=function(){this.getIframe().src=this.model.get("src")},r.prototype.getIframe=function(){if(!this.iframe){var t=document.createElement("iframe");t.src=this.model.get("src"),t.frameBorder="0",t.style.height="100%",t.style.width="100%",t.className=this.ppfx+"no-pointer",this.iframe=t}return this.iframe},r.prototype.render=function(){return a.prototype.render.call(this),this.updateClasses(),this.el.appendChild(this.getIframe()),this},r})(x1);const L9=P9;var D9=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),I9=(function(a){D9(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.tagName=function(){return"script"},r.prototype.events=function(){return{}},r})(ar);
924const j9=I9;var N9=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),R9=(function(a){N9(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype._createElement=function(t){return document.createElementNS("http://www.w3.org/2000/svg",t)},r})(ar);const N0=R9;var B9=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),V9=(function(a){B9(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r})(ar);const H9=V9;var F9=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),$9=(function(a){F9(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r})(ar);const z9=$9;var U9=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),W9=(function(a){U9(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r})(ar);const Z9=W9;var q9=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),K9=(function(a){q9(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r})(ar);const G9=K9;var Y9=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),X9=(function(a){Y9(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r})(ar);const J9=X9;var Q9=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}
924r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),tC=(function(a){Q9(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.events=function(){return{}},r})(ar);const eC=tC;var rC=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),nC=(function(a){rC(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.tagName=function(){return"div"},r.prototype.events=function(){return{}},r.prototype.initialize=function(){ar.prototype.initialize.apply(this,arguments);var t=this.model,e=["loop","autoplay","controls","color","rel","poster","muted"],n=e.map(function(i){return"change:".concat(i)}).join(" ");this.listenTo(t,"change:provider",this.updateProvider),this.listenTo(t,"change:src",this.updateSrc),this.listenTo(t,n,this.updateVideo)},r.prototype.updateProvider=function(){var t=this.model.get("provider");this.el.innerHTML="",this.el.appendChild(this.renderByProvider(t))},r.prototype.updateSrc=function(){var t=this,e=t.model,n=t.videoEl;if(n){var i=e.get("provider"),o=e.get("src");switch(i){case"yt":o=e.getYoutubeSrc();break;case"ytnc":o=e.getYoutubeNoCookieSrc();break;case"vi":o=e.getVimeoSrc();break}n.src=o}},r.prototype.updateVideo=function(){var t=this,e=t.model,n=t.videoEl,i=e.get("provider");switch(i){case"yt":case"ytnc":case"vi":e.trigger("change:videoId");break;default:if(n){var o=n;o.loop=e.get("loop"),o.autoplay=e.get("autoplay"),o.controls=e.get("controls"),o.poster=e.get("poster"),o.muted=e.get("muted")}}},r.prototype.renderByProvider=function(t){var e;switch(t){case"yt":e=this.renderYoutube();break;case"ytnc":e=this.renderYoutubeNoCookie();break;case"vi":e=this.renderVimeo();break;default:e=this.renderSource()}return this.videoEl=e,e},r.prototype.renderSource=function(){var t=document.createElement("video");return t.src=this.model.get("src"),this.initVideoEl(t),t},r.prototype.renderYoutube=function(){var t=document.createElement("iframe");return t.src=this.model.getYoutubeSrc(),this.updateYoutubeAttributes(t),this.initVideoEl(t),t},r.prototype.renderYoutubeNoCookie=function(){var t=document.createElement("iframe");return t.src=this.model.getYoutubeNoCookieSrc(),this.updateYoutubeAttributes(t),this.initVideoEl(t),t},r.prototype.renderVimeo=function(){var t=document.createElement("iframe");return t.src=this.model.getVimeoSrc(),t.frameBorder="0",t.setAttribute("allowfullscreen","true"),this.initVideoEl(t),t},r.prototype.updateYoutubeAttributes=function(t){t.frameBorder="0",t.setAttribute("allowfullscreen","true"),t.setAttribute("referrerpolicy",qg)},r.prototype.initVideoEl=function(t){t.className=this.ppfx+"no-pointer",t.style.height="100%",t.style.width="100%"},r.prototype.render=function(){ar.prototype.render.apply(this),this.updateClasses();var t=this.model.get("provider");return this.el.appendChild(this.renderByProvider(t)),this.updateVideo(),this},r})(x1);const iC=nC;var aC=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),oC=(function(a){aC(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.tagName=function(){return"div"},r})(ar);const sC=oC;var lC=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}
924r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),on=function(){return on=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},on.apply(this,arguments)},cC=function(a,r){var t={};for(var e in a)Object.prototype.hasOwnProperty.call(a,e)&&r.indexOf(e)<0&&(t[e]=a[e]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,e=Object.getOwnPropertySymbols(a);n<e.length;n++)r.indexOf(e[n])<0&&Object.prototype.propertyIsEnumerable.call(a,e[n])&&(t[e[n]]=a[e[n]]);return t},dC=function(a,r,t){if(t||arguments.length===2)for(var e=0,n=r.length,i;e<n;e++)(i||!(e in r))&&(i||(i=Array.prototype.slice.call(r,0,e)),i[e]=r[e]);return a.concat(i||Array.prototype.slice.call(r))},Ks;(function(a){a[a.InvalidSource=0]="InvalidSource",a[a.SourceReject=1]="SourceReject",a[a.TargetReject=2]="TargetReject"})(Ks||(Ks={}));var uC=(function(a){lC(r,a);function r(t){var e=a.call(this,t,"DomComponents",new nd(void 0,{em:t}),te,u7())||this;e.componentTypes=[{id:jr.collectionItem,model:kh,view:ar},{id:jr.conditionTrue,model:kh,view:ar},{id:jr.conditionFalse,model:kh,view:ar},{id:jr.collection,model:X8,view:n7},{id:jr.condition,model:R8,view:o7},{id:jr.variable,model:I8,view:c7},{id:"cell",model:K7,view:z9},{id:"row",model:n9,view:J9},{id:"table",model:z7,view:eC},{id:"thead",model:t9,view:G9},{id:"tbody",model:b1,view:H9},{id:"tfoot",model:X7,view:Z9},{id:"map",model:L7,view:L9},{id:"link",model:A7,view:tx},{id:"label",model:T7,view:A9},{id:"video",model:o9,view:iC},{id:"image",model:m1,view:x1},{id:"script",model:j7,view:j9},{id:"svg-in",model:H7,view:N0},{id:"svg",model:Xb,view:N0},{id:"iframe",model:b7,view:x9},{id:"comment",model:v7,view:m9},{id:"textnode",model:Yb,view:Jb},{id:ll,model:t8,view:ar},{id:"wrapper",model:c9,view:sC},{id:"text",model:y1,view:Qb},{id:"default",model:Mr,view:ar}],e.componentsById={},e.Component=Mr,e.Components=nd,e.ComponentView=ar,e.ComponentsView=Hb,e.storageKey="components",e.keySymbols="symbols",e.events=te;var n=e.config;e.symbols=new f9([],{em:t,config:n,domc:e}),t&&(e.config.components=t.config.components||e.config.components);var i=e.config.pStylePrefix;if(i&&(e.config.stylePrefix=i+e.config.stylePrefix),t){t.get("Parser").compTypes=e.componentTypes,t.on("change:componentHovered",e.componentHovered,e);var o=t.get("selected");t.listenTo(o,"add",function(s,c,d){return e.selectAdd(o.getComponent(s),d)}),t.listenTo(o,"remove",function(s,c,d){return e.selectRemove(o.getComponent(s),d)})}return e}return r.prototype.postLoad=function(){var t=this,e=t.em,n=t.symbols,i=e.UndoManager;i.add(n)},r.prototype.load=function(t){var e=this,n=this.loadProjectData(t,{onResult:function(i){var o=e.getWrapper();if(o||(e.em.Pages.add({},{select:!0}),o=e.getWrapper()),(0,E.isArray)(i))i.length&&o.components(i);else{var s=i.components,c=s===void 0?[]:s,d=cC(i,["components"]);o.set(d),o.components(c)}}});return this.symbols.reset(t[this.keySymbols]||[]),n},r.prototype.store=function(){var t;return t={},t[this.keySymbols]=this.symbols,t},r.prototype.getComponent=function(){var t=this.em.Pages.getSelected(),e=t==null?void 0:t.getMainFrame();return e==null?void 0:e.getComponent()},r.prototype.getWrapper=function(){return this.getComponent()},r.prototype.getComponents=function(){var t=this.getWrapper();return t==null?void 0:t.components()},r.prototype.addComponent=function(t,e){return e===void 0&&(e={}),this.getComponents().add(t,e)},r.prototype.render=function(){var t;return(t=this.componentView)===null||t===void 0?void 0:t.render().el},r.prototype.clear=function(t){t===void 0&&(t={});var e=this.getComponents();return e==null||e.filter(Boolean).forEach(function(n){return n.remove(t)}),this},r.prototype.setComponents=function(t,e){e===void 0&&(e={}),this.clear(e).addComponent(t,e)},r.prototype.addType=function(t,e){var n=this.em,i=e.model,o=i===void 0?{}:i,s=e.view,c=s===void 0?{}:s,d=e.isComponent,f=e.isParsedNode,g=e.extend,m=e.extendView,y=e.extendFn,x=y===void 0?[]:y,w=e.extendFnView,k=w===void 0?[]:w,S=e.block,A=this.getType(t),L=this.getType(g),D=this.getType(m),W=L||A||this.getType("default"),j=W.model,et=D?D.view:W.view,z=function(q,Ct,_){return q.reduce(function(Q,J){var gt=Ct[J],St=_.prototype[J];return gt&&St&&(Q[J]=function(){for(var wt=[],mt=0;mt<arguments.length;mt++)wt[mt]=arguments[mt];St.bind(this).apply(void 0,wt),gt.bind(this).apply(void 0,wt)}),Q},{})};if(typeof o=="object"){var B={defaults:o.defaults};delete o.defaults;var X=new Set(j.typeExtends);X.add(j.getDefaults().type),e.model=j.extend(on(on({},o),z(x,o,j)),{typeExtends:X,isComponent:A&&!L&&!d?j.isComponent:d||(function(){return 0}),isParsedNode:A&&!L&&!f?j.isParsedNode:f||void 0}),Object.defineProperty(e.model.prototype,"defaults",{get:function(){return on(on({},(0,E.result)(j.prototype,"defaults")||{}),(0,E.result)(B,"defaults")||{})}})}if(typeof c=="object"&&(e.view=et.extend(on(on({}
924,c),z(k,c,et)))),A?(A.model=e.model,A.view=e.view):(e.id=t,this.componentTypes.unshift(e)),S){var Z={id:t,label:t,content:{type:t}},F=S===!0?Z:on(on({},Z),S);n.Blocks.add(F.id||t,F)}var st=A?te.typeUpdate:te.typeAdd;return n==null||n.trigger(st,A||e),this},r.prototype.getType=function(t){for(var e=this.componentTypes,n=0;n<e.length;n++){var i=e[n].id;if(i==t)return e[n]}},r.prototype.removeType=function(t){var e=this.componentTypes,n=this.getType(t);if(n){var i=e.indexOf(n);return e.splice(i,1),n}},r.prototype.getTypes=function(){return this.componentTypes},r.prototype.selectAdd=function(t,e){var n=this;e===void 0&&(e={}),t&&(t.set({status:"selected"}),[te.selected,te.toggled].forEach(function(i){return n.em.trigger(i,t,e)}))},r.prototype.selectRemove=function(t,e){var n=this;e===void 0&&(e={}),t&&(this.em,t.set({status:"",state:""}),[te.deselected,te.toggled].forEach(function(i){return n.em.trigger(i,t,e)}))},r.prototype.componentHovered=function(){var t=this.em,e=t.get("componentHovered"),n=t.previous("componentHovered"),i="hovered";n&&n.get("status")==i&&n.set({status:"",state:""}),e&&(0,E.isEmpty)(e.get("status"))&&e.set("status",i)},r.prototype.getShallowWrapper=function(){var t=this,e=t.shallow,n=t.em;if(!e&&n){var i=n.shallow;if(!i)return;var o=i.Components;if(o.componentTypes=this.componentTypes,e=o.getWrapper(),e){var s=[Nu,zg].join(" ");e.on(s,(0,E.debounce)(function(){return e==null?void 0:e.components("")},100))}this.shallow=e}return e},r.prototype.isComponent=function(t){return os(t)},r.prototype.addSymbol=function(t){if(!((0,E.isSymbol)(t)&&!ss(t))){var e=t.clone({symbol:!0});return Qo(e)&&this.symbols.add(e),this.em.trigger(te.toggled),e}},r.prototype.getSymbols=function(){return dC([],this.symbols.models,!0)},r.prototype.detachSymbol=function(t){rf(t)&&Ep(t)},r.prototype.getSymbolInfo=function(t,e){e===void 0&&(e={});var n=Qo(t),i=Oi(t),o=!!i,s=Xn(n?t:i)||[],c=i||(n?t:void 0),d=Ta(t,{changed:e.withChanges}),f=n||o,g=f&&ss(t);return{isSymbol:f,isMain:n,isInstance:o,isRoot:g,main:c,instances:s,relatives:d||[]}},r.prototype.canMove=function(t,e,n){var i={result:!1,reason:Ks.InvalidSource,target:t,source:null};if(!e||!t)return i;if(Hi(t)&&e instanceof Mr&&Hi(e)){var o=ed(t),s=Qo(o)?o:Oi(o),c=ed(e),d=Qo(c)?c:Oi(c),f=s===d,g=o!==c;if(f&&g)return on(on({},i),{reason:Ks.TargetReject})}var m=os(e)?e:null;if(!m){var y=this.getShallowWrapper();m=(y==null?void 0:y.append(e,{temporary:!0})[0])||null}if(i.source=m,!m)return i;var x=m.get("draggable");if((0,E.isFunction)(x))x=!!x(m,t,n);else{var w=t.getEl();x=(0,E.isArray)(x)?x.join(","):x,x=(0,E.isString)(x)?w==null?void 0:w.matches(x):x}if(!x)return on(on({},i),{reason:Ks.SourceReject});var k=t.get("droppable");if((0,E.isFunction)(k))k=!!k(m,t,n);else if(k===!1&&t.isInstanceOf("text")&&m.get("textable"))k=!0;else{var w=m.getEl();k=(0,E.isArray)(k)?k.join(","):k,k=(0,E.isString)(k)?w==null?void 0:w.matches(k):k}var S=[t].concat(t.parents()).indexOf(m)>-1;return!k||S?on(on({},i),{reason:Ks.TargetReject}):on(on({},i),{result:!0})},r.prototype.allById=function(){return this.componentsById},r.prototype.getById=function(t){return this.componentsById[t]||null},r.prototype.destroy=function(){var t,e=this.allById();Object.keys(e).forEach(function(n){return e[n]&&e[n].remove()}),(t=this.componentView)===null||t===void 0||t.remove(),[this.em,this.componentsById,this.componentView].forEach(function(n){return{}})},r})(oa);const fC=uC;var pC=function(){return{stylePrefix:"css-",rules:[]}};const hC=pC;var gC=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),vC=Number.MAX_VALUE,mC=function(a){var r=/(-?\d*\.?\d+)\w{0,}/.exec(a);return r?r[0]:""},yC=(function(a){gC(r,a);function r(){var t=a.call(this)||this;return(0,E.bindAll)(t,"sortRules"),t.compCls=[],t.ids=[],t}return r.prototype.buildFromModel=function(t,e){var n=this;e===void 0&&(e={});var i="",o=this.em,s=o&&o.getConfig().avoidInlineStyle,c=t.styleToString(),d=t.classes;this.ids.push("#".concat(t.getId())),d.forEach(function(g){return n.compCls.push(g.getFullName())}),!s&&c&&(i="#".concat(t.getId(),"{").concat(c,"}"));var f=t.components();return f.forEach(function(g){return i+=n.buildFromModel(g,e)}),i},r.prototype.build=function(t,e){var n=this;e===void 0&&(e={});var i=e.json,o=e.em,s=e.cssc||(o==null?void 0:o.Css);this.em=o,this.compCls=[],this.ids=[],this.model=t;var c=[],d=t?this.buildFromModel(t,e):"",f=(0,E.isUndefined)(e.clearStyles)&&o?o.getConfig().clearStyles:e.clearStyles;if(s){var g=e.rules||s.getAll(),m={},y=[];e.onlyMatched&&t&&Jr()&&(g=this.matchedRules(t,g)),g.forEach(function(x){if(!x.isNested()){var w=x.getAtRule();if(w){var k=m[w];k?k.push(x):m[w]=[x];return}var S=n.buildFromRule(x,y,e);i?c.push(S):d+=S}}),this.sortMediaObject(m).forEach(function(x){var w="",k=x.key,S=x.value;
924S.forEach(function(A){if(!A.isNested()){var L=n.buildFromRule(A,y,e);A.get("singleAtRule")?d+="".concat(k,"{").concat(L,"}"):w+=L,i&&c.push(L)}}),w&&(d+="".concat(k,"{").concat(w,"}"))}),o&&f&&g.remove&&g.remove(y)}return i?c.filter(function(x){return x}):d},r.prototype.buildFromRule=function(t,e,n){var i=this,o;n===void 0&&(n={});var s="",c=this.model,d=t.selectorsToString({skipAdd:1}),f=t.get("selectorsAdd"),g=t.get("singleAtRule"),m;if((o=t.get("selectors"))===null||o===void 0||o.forEach(function(x){var w=x.getFullName();(i.compCls.indexOf(w)>=0||i.ids.indexOf(w)>=0||n.keepUnusedStyles)&&(m=1)}),d&&m||f||g||!c){var y=t.getDeclaration({allowEmpty:n.allowEmpty,withNested:n.withNested});y&&(n.json?s=t:s+=y)}else e.push(t);return s},r.prototype.matchedRules=function(t,e){var n=this,i=t.getEl(),o=[];return e.forEach(function(s){try{s.selectorsToString().split(",").some(function(c){return i==null?void 0:i.matches(n.__cleanSelector(c))})&&o.push(s)}catch{}}),t.components().forEach(function(s){o=o.concat(n.matchedRules(s,e))}),o=o.filter(function(s,c){return o.indexOf(s)===c}),o},r.prototype.getQueryLength=function(t){var e=/(-?\d*\.?\d+)\w{0,}/.exec(t);return e?parseFloat(e[1]):vC},r.prototype.sortMediaObject=function(t){var e=this;t===void 0&&(t={});var n=[];return(0,E.each)(t,function(i,o){return n.push({key:o,value:i})}),n.sort(function(i,o){var s=[i.key,o.key].every(function(f){return f.indexOf("min-width")!==-1}),c=s?i.key:o.key,d=s?o.key:i.key;return e.getQueryLength(c)-e.getQueryLength(d)})},r.prototype.sortRules=function(t,e){var n=function(c){return c.get("mediaText")||""},i=[n(t),n(e)].every(function(c){return c.indexOf("min-width")!==-1}),o=n(i?t:e),s=n(i?e:t);return this.getQueryLength(o)-this.getQueryLength(s)},r.prototype.__cleanSelector=function(t){return t.split(" ").map(function(e){return e.split(":")[0]}).join(" ")},r})(We);const bC=yC;var xC=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Xi=function(){return Xi=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Xi.apply(this,arguments)},wC=function(a,r,t){if(t||arguments.length===2)for(var e=0,n=r.length,i;e<n;e++)(i||!(e in r))&&(i||(i=Array.prototype.slice.call(r,0,e)),i[e]=r[e]);return a.concat(i||Array.prototype.slice.call(r))},Nh=(Jr()?window:{}).CSS,_C=function(a){return/^(@|&|[.#:[>+~*])/.test(a)},CC=(function(a){xC(r,a);function r(t,e){e===void 0&&(e={});var n=a.call(this,t,{em:e.em})||this;return n.views=[],n.config=t||{},n.opt=e,n.em=e.em,n.ensureSelectors(null,null,{}),n.setStyle(n.get("style"),{skipWatcherUpdates:!0}),n.on("change",n.__onChange),n}return r.prototype.defaults=function(){return{selectors:[],selectorsAdd:"",style:{},mediaText:"",state:"",stylable:!0,atRuleType:"",singleAtRule:!1,important:!1,group:"",shallow:!1,_undo:!0}},r.prototype.__onChange=function(t,e){var n=this.em,i=this.changedAttributes();i&&!so(i)&&(n==null||n.changesUp(e,{rule:t,changed:i,options:e}))},r.prototype.isNested=function(){return!!this.parentRule},r.prototype.__isNestedStyleValue=function(t){return t instanceof r&&t.parentRule===this},r.prototype.__attachNestedRule=function(t,e,n){var i;n===void 0&&(n={}),t.parentRule=this,t.nestedStyleKey=e,t.em=t.em||this.em;var o=(i=this.em)===null||i===void 0?void 0:i.Css.getAll();return o&&!o.get(t)&&o.add(t,n),t},r.prototype.__detachNestedRule=function(t,e){var n;e===void 0&&(e={}),t.parentRule===this&&(t.parentRule=void 0,t.nestedStyleKey=void 0,(n=this.em)===null||n===void 0||n.Css.getAll().remove(t,e))},r.prototype.__createNestedRule=function(t,e,n){n===void 0&&(n={});var i=e instanceof r?e:new r({style:e},{em:this.em});return this.__attachNestedRule(i,t,n)},r.prototype.__normalizeStyle=function(t,e){var n=this;e===void 0&&(e={});var i=Xi({},t);
924return Object.keys(i).forEach(function(o){var s=i[o],c=_C(o)&&(s instanceof r||(0,E.isObject)(s)&&!(0,E.isArray)(s));c&&(i[o]=n.__createNestedRule(o,s,e))}),i},r.prototype.__getStyleForExtend=function(){return this.getStyle("",{skipResolve:!0,withNested:!0})},r.prototype.__getStyleForUpdate=function(t){return this.getStyle("",{skipResolve:!0,withNested:!0})},r.prototype.__onStyleUpdate=function(t,e){var n=this;e===void 0&&(e={});var i=this.getStyle("",{withNested:!0,skipResolve:!0});Object.keys(t).forEach(function(o){var s=t[o];n.__isNestedStyleValue(s)&&i[o]!==s&&n.__detachNestedRule(s,e)})},r.prototype.__getStyleResult=function(t,e,n){var i=this;if(n===void 0&&(n={}),n.withNested)return a.prototype.__getStyleResult.call(this,t,e,n);var o=a.prototype.__getStyleResult.call(this,t,e,n);if(e&&e!=="")return this.__isNestedStyleValue(o)?void 0:o;var s=Xi({},o);return Object.keys(s).forEach(function(c){i.__isNestedStyleValue(s[c])&&delete s[c]}),s},r.prototype.__stylePropToString=function(t,e,n){n===void 0&&(n={});var i=this.__isNestedStyleValue(e)&&e;return i?n.withNested?i.getDeclaration(Xi(Xi({},n),{nested:!0})):"":a.prototype.__stylePropToString.call(this,t,e,n)},r.prototype.clone=function(){var t=this.get("selectors").map(function(e){return e.clone()});return a.prototype.clone.call(this,{selectors:t})},r.prototype.ensureSelectors=function(t,e,n){var i=this.em,o=i==null?void 0:i.Selectors,s=[this,"change:selectors",this.ensureSelectors],c=this.getSelectors();if(this.stopListening.apply(this,s),c.models&&(c=wC([],c.models,!0)),c=(0,E.isString)(c)?[c]:c,Array.isArray(c)){var d=c.filter(function(f){return f}).map(function(f){return o?o.add(f):f});c=new ro(d)}this.set("selectors",c,n),this.listenTo.apply(this,s)},r.prototype.getAtRule=function(){return r.getAtRuleFromProps(this.attributes)},r.getAtRuleFromProps=function(t){var e=t.atRuleType,n=t.mediaText,i=e?"@".concat(e):n?"@media":"";return i+(n&&i?" ".concat(n):"")},r.prototype.selectorsToString=function(t){t===void 0&&(t={});var e=[],n=this.get("state"),i=this.get("selectorsAdd"),o={escape:function(d){return Nh&&Nh.escape?Nh.escape(d):d}},s=this.getSelectors().getFullString(0,o),c=n&&!t.skipState?":".concat(n):"";return s&&e.push("".concat(s).concat(c)),i&&!t.skipAdd&&e.push(i),e.join(", ")},r.prototype.getDeclaration=function(t){t===void 0&&(t={});var e="",n=t,i=this.attributes.important,o=this.selectorsToString(t),s=this.styleToString(Xi({important:i},t)),c=this.get("singleAtRule"),d=n.nested&&this.nestedStyleKey,f=s||t.allowEmpty;return d&&f?e="".concat(d,"{").concat(s,"}"):(o||c)&&f&&(e=c?s:"".concat(o,"{").concat(s,"}")),e},r.prototype.getDevice=function(){var t=this.em,e=this.attributes,n=e.atRuleType,i=e.mediaText,o=(t==null?void 0:t.Devices.getDevices())||[],s=o.filter(function(c){return c.getWidthMedia()===""})[0];return n!=="media"||!i?s||null:o.filter(function(c){return c.getWidthMedia()===mC(i)})[0]||null},r.prototype.getState=function(){var t=this.em,e=this.get("state"),n=(t==null?void 0:t.Selectors.getStates())||[];return n.filter(function(i){return i.getName()===e})[0]||null},r.prototype.getComponent=function(){var t,e=this.getSelectors(),n=e.length==1&&e.at(0),i=n&&n.isId()&&n.get("name");return i&&((t=this.em)===null||t===void 0?void 0:t.Components.getById(i))||null},r.prototype.toCSS=function(t){t===void 0&&(t={});var e="",n=this.getAtRule(),i=this.getDeclaration(t);return(i||t.allowEmpty)&&(e=i),n&&e&&(e="".concat(n,"{").concat(e,"}")),e},r.prototype.toJSON=function(t){var e=this,n,i=a.prototype.toJSON.call(this,t),o=this.getStyle("",{withNested:!0,skipResolve:!0}),s=Xi({},o);if(Object.keys(s).forEach(function(d){var f=s[d];e.__isNestedStyleValue(f)&&(s[d]=f.toJSON(Xi(Xi({},t),{nested:!0})).style||{})}),i.style=s,!((n=this.em)===null||n===void 0)&&n.getConfig().avoidDefaults){var c=this.defaults();(0,E.forEach)(c,function(d,f){i[f]===d&&delete i[f]}),delete i.style.__p,(0,E.isEmpty)(i.selectors)&&delete i.selectors,(0,E.isEmpty)(i.style)&&delete i.style}return i},r.prototype.compare=function(t,e,n,i){var o;i===void 0&&(i={});var s=e||"",c=n||"",d=i.selectorsAdd||"",f=i.atRuleType||"",g=!(0,E.isArray)(t)&&!t.models?[t]:t.models||t;c&&!f&&(f="media");var m=g.map(function(k){return k.getFullName()}),y=(o=this.get("selectors"))===null||o===void 0?void 0:o.map(function(k){return k.getFullName()}),x=m.slice().sort(),w=y.slice().sort();return!(m.length!==y.length||!x.every(function(k,S){return k===w[S]})||this.get("state")!==s||this.get("mediaText")!==c||this.get("selectorsAdd")!==d||this.get("atRuleType")!==f)},r})(Lb);const Kg=CC;
924var kC=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),ex=(function(a){kC(r,a);function r(t,e){var n=a.call(this,t)||this;return n.editor=e==null?void 0:e.em,setTimeout(function(){n.on("remove",n.onRemove),n.on("add",n.onAdd)}),n}return r.prototype.toJSON=function(t){return this.models.filter(function(e){return!e.isNested()}).map(function(e){return e.toJSON(t)}).filter(function(e){return e.style&&!e.shallow})},r.prototype.onAdd=function(t,e,n){t.ensureSelectors(t,e,n)},r.prototype.onRemove=function(t){var e=this.editor;e.stopListening(t),e.UndoManager.remove(t)},r.prototype.add=function(t,e){return e===void 0&&(e={}),typeof t=="string"&&(t=this.editor.get("Parser").parseCss(t)),e.em=this.editor,Rr.prototype.add.apply(this,[t,e])},r})(Rr);const R0=ex;ex.prototype.model=Kg;var SC=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),fi=function(){return fi=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},fi.apply(this,arguments)},TC=function(a,r,t){if(t||arguments.length===2)for(var e=0,n=r.length,i;e<n;e++)(i||!(e in r))&&(i||(i=Array.prototype.slice.call(r,0,e)),i[e]=r[e]);return a.concat(i||Array.prototype.slice.call(r))},OC=(function(a){SC(r,a);function r(t){var e=a.call(this,t,"CssComposer",null,gl,hC())||this;e.classes={CssRule:Kg,CssRules:R0,CssRuleView:g1,CssRulesView:Fg},e.events=gl,e.Selectors=ro,e.storageKey="styles",e._itemCache=new Map;var n=e.config,i=n.pStylePrefix;return i&&(n.stylePrefix=i+n.stylePrefix),n.rules=e.em.config.style||n.rules||"",e.rules=new R0([],n),e.all=e.rules,e._setupCacheListeners(),e}return r.prototype._setupCacheListeners=function(){a.prototype._setupCacheListeners.call(this),this.em.listenTo(this.rules,"change:selectors change:state change:mediaText",this._onItemKeyChange.bind(this))},r.prototype._makeCacheKey=function(t){var e=t.getAtRule(),n=t.selectorsToString();return"".concat(e,"__").concat(n)},r.prototype._makeCacheKeyFromProps=function(t){var e=t.atRuleType,n=e===void 0?"":e,i=t.mediaText,o=i===void 0?"":i,s=t.state,c=s===void 0?"":s,d=t.selectorsAdd,f=d===void 0?"":d,g=t.selectors,m=g===void 0?[]:g,y=m.map(function(A){return(0,E.isString)(A)?A:A.toString()}).join(""),x=[];y&&x.push("".concat(y).concat(c?":".concat(c):"")),f&&x.push(f);var w=x.join(", "),k=n?"@".concat(n):o?"@media":"",S=k+(o&&k?" ".concat(o):"");return"".concat(S,"__").concat(w)},r.prototype.onLoad=function(){this.rules.add(this.config.rules,{silent:!0}),this._onItemsResetCache(this.rules)},r.prototype.postLoad=function(){this.em.UndoManager.add(this.getAll())},r.prototype.store=function(){return this.getProjectData()},r.prototype.load=function(t){return this.loadProjectData(t,{all:this.rules})},r.prototype._findRule=function(t,e,n,i){var o=t;if((0,E.isString)(t)){var s=this.em.Selectors,c=t.split(",")[0].trim(),d=this.em.Parser.parserCss.checkNode({selectors:c})[0];o=s.get(d.selectors)}var f=this.rules.find(function(g){return g.compare(o,e,n,i)})||null;return f},r.prototype.add=function(t,e,n,i,o){i===void 0&&(i={}),o===void 0&&(o={});var s=e||"",c=n||"",d=fi({},i),f=this._makeCacheKeyFromProps(fi(fi({state:s,mediaText:c},d),{selectors:Array.isArray(t)?t:[t]})),g=this._itemCache.get(f);if(g&&g.config&&!g.config.singleAtRule)return g;var m=this._findRule(t,s,c,d);return m&&m.config&&!m.config.singleAtRule?(this._cacheItem(m),m):(d.state=s,d.mediaText=c,d.selectors=[],c&&!d.atRuleType&&(d.atRuleType="media"),m=new Kg(d,this.config),m.get("selectors").add(t,o),this.rules.add(m,o),this._cacheItem(m),m)},r.prototype.get=function(t,e,n,i){var o=this._makeCacheKeyFromProps(fi(fi({},i),{selectors:Array.isArray(t)?t:[t],state:e,width:n,mediaText:n})),s=this._itemCache.get(o);if(s)return s;var c=this._findRule(t,e,n,i);return c&&this._cacheItem(c),c},r.prototype.getAll=function(){return this.rules},r.prototype.addCollection=function(t,e,n){e===void 0&&(e={}),n===void 0&&(n={});var i=this.em,o=[],s=fi(fi({},e),{parsedImportSource:"css"});(0,E.isString)(t)&&(t=i.Parser.parseCss(t),e=s);for(var c=t instanceof Array?t:[t],d=0,f=c.length;d<f;d++){var g=c[d]||{};if(g.selectors){var m=i==null?void 0:i.Selectors;m||console.warn("Selector Manager not found");for(var y=g.selectors,x=y instanceof Array?y:[y],w=[],k=0,S=x.length;k<S;k++){var A=m.add(x[k]);w.push(A)}var L=this.get(w,g.state,g.mediaText,g),D=this.add(w,g.state,g.mediaText,g,e),W=!L||!e.avoidUpdateStyle,j=g.style||{};if(Cn(n)&&D.set(n,e),W){var et=e.extend?fi(fi({},D.getStyle("",{skipResolve:!0})),j):j;D.setStyle(et,e)}o.push(D)}}return o},r.prototype.addRules=function(t){return this.addCollection(t)},r.prototype.setRule=function(t,e,n){e===void 0&&(e={}),n===void 0&&(n={});var i=n.atRuleType,o=n.atRuleParams,s=this.em.Parser.parserCss.checkNode({selectors:t,style:e})[0],c=s.state,d=s.selectorsAdd,f=this.em.Selectors,g=f.add(s.selectors),m=this.add(g,c,o,{selectorsAdd:d,atRule:i});return n.addStyles?m.addStyle(e,n):m.setStyle(e,n),m},r.prototype.getRule=function(t,e){e===void 0&&(e={});var n=this.em,i=n.Selectors,o=n.Parser.parserCss.checkNode({selectors:t})[0],s=i.get(o.selectors),c=o.state,d=o.selectorsAdd,f=e.atRuleType,g=e.atRuleParams;return s?this.get(s,c,g,{selectorsAdd:d,atRuleType:f}):void 0},r.prototype.getRules=function(t){var e=this.getAll();if(!t)return TC([],e.models,!0);var n={sort:!0},i=(0,E.isString)(t)?t.split(",").map(function(s){return s.trim()}):t,o=e.filter(function(s){return i.indexOf(s.getSelectors().getFullString(null,n))>=0});return o},r.prototype.setIdRule=function(t,e,n){e===void 0&&(e={}),n===void 0&&(n={});var i=n.addOpts,o=i===void 0?{}:i,s=n.mediaText,c=n.state||"",d=(0,E.isUndefined)(s)?this.em.getCurrentMedia():s,f=this.em.Selectors,g=f.add({name:t,type:Rn.TYPE_ID},o),m=this.add(g,c,d,{},o);return m.setStyle(e,fi(fi({},n),o)),m},r.prototype.getIdRule=function(t,e){e===void 0&&(e={});var n=e.mediaText,i=e.state||"",o=(0,E.isUndefined)(n)?this.em.getCurrentMedia():n,s=this.em.Selectors.get(t,Rn.TYPE_ID);return s&&this.get(s,i,o)},r.prototype.setClassRule=function(t,e,n){e===void 0&&(e={}),n===void 0&&(n={});var i=n.state||"",o=n.mediaText||this.em.getCurrentMedia(),s=this.em.Selectors,c=s.add({name:t,type:Rn.TYPE_CLASS}),d=this.add(c,i,o);return d.setStyle(e,n),d},r.prototype.getClassRule=function(t,e){e===void 0&&(e={});var n=e.state||"",i=e.mediaText||this.em.getCurrentMedia(),o=this.em.Selectors.get(t,Rn.TYPE_CLASS);return o&&this.get(o,n,i)},r.prototype.remove=function(t,e){var n=(0,E.isString)(t)?this.getRules(t):t,i=Array.isArray(n)?n:[n],o=this.getAll().remove(i,e);return Array.isArray(o)?o:[o]},r.prototype.clear=function(t){return t===void 0&&(t={}
924),this._clearItemCache(),this.getAll().reset([],t),this},r.prototype.getComponentRules=function(t,e){e===void 0&&(e={});var n=e.state,i=e.mediaText,o=e.current;o&&(n=this.em.get("state")||"",i=this.em.getCurrentMedia());var s=t.getId(),c=this.getAll().filter(function(d){return!(0,E.isUndefined)(n)&&d.get("state")!==n||!(0,E.isUndefined)(i)&&d.get("mediaText")!==i?!1:d.getSelectorsString()==="#".concat(s)});return c},r.prototype.render=function(){var t;return(t=this.rulesView)===null||t===void 0||t.remove(),this.rulesView=new Fg({collection:this.rules,config:this.config}),this.rulesView.render().el},r.prototype.checkId=function(t,e){e===void 0&&(e={});var n=e.idMap,i=n===void 0?{}:n,o=[];if(!Object.keys(i).length)return o;var s=Array.isArray(t)?t:[t];return s.forEach(function(c){var d=c.selectors;if(d&&d.length==1){var f=d[0];if((0,E.isString)(f)){if(f[0]==="#"){var g=f.substring(1),m=i[g];g&&m&&(d[0]="#".concat(m),o.push(c))}}else if(f.name&&f.type===Rn.TYPE_ID){var m=i[f.name];m&&(f.name=m,o.push(c))}}}),o},r.prototype.destroy=function(){var t;this.rules.reset(),this.rules.stopListening(),(t=this.rulesView)===null||t===void 0||t.remove()},r})(oa);const EC=OC;var AC=function(){return{appendTo:"",blocks:[],appendOnClick:!1,custom:!1}};const MC=AC;var PC=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),LC=(function(a){PC(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.defaults=function(){return{label:"",content:"",media:"",category:"",activate:!1,select:void 0,resetId:!1,disable:!1,onClick:void 0,attributes:{},dragDef:{}}},Object.defineProperty(r.prototype,"category",{get:function(){var t=this.get("category");return t instanceof dd?t:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"parent",{get:function(){return this.collection},enumerable:!1,configurable:!0}),r.prototype.getId=function(){return this.id},r.prototype.getLabel=function(){return this.get("label")},r.prototype.getMedia=function(){return this.get("media")},r.prototype.getContent=function(){return this.get("content")},r.prototype.getDragDef=function(){return this.get("dragDef")},r.prototype.getCategoryLabel=function(){var t=this.get("category");return(0,E.isFunction)(t==null?void 0:t.get)?t.get("label"):t!=null&&t.label?t==null?void 0:t.label:t},r})(We);const rx=LC;var DC=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),nx=(function(a){DC(r,a);function r(t,e){var n=a.call(this,t)||this;return n.em=e.em,n.on("add",n.handleAdd),n}return r.prototype.getCategories=function(){return this.em.Blocks.getCategories()},r.prototype.handleAdd=function(t){this.initCategory(t)},r})(Rb);const ru=nx;nx.prototype.model=rx;var dl;(function(a){a.add="block:add",a.remove="block:remove",a.removeBefore="block:remove:before",a.update="block:update",a.dragStart="block:drag:start",a.drag="block:drag",a.dragEnd="block:drag:stop",a.categoryUpdate="block:category:update",a.custom="block:custom",a.all="block"})(dl||(dl={}));const IC=dl;var jC=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}
924r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Gs=function(){return Gs=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Gs.apply(this,arguments)},NC=(function(a){jC(r,a);function r(t,e){e===void 0&&(e={});var n=a.call(this,t)||this,i=n.model;return n.em=e.em,n.config=e,n.endDrag=n.endDrag.bind(n),n.ppfx=e.pStylePrefix||"",n.listenTo(i,"destroy remove",n.remove),n.listenTo(i,"change",n.render),n}return r.prototype.events=function(){return{click:"handleClick",mousedown:"startDrag",dragstart:"handleDragStart",drag:"handleDrag",dragend:"handleDragEnd"}},r.prototype.__getModule=function(){return this.em.Blocks},r.prototype.handleClick=function(t){var e,n,i=this,o=i.config,s=i.model,c=i.em,d=s.get("onClick")||o.appendOnClick;if(c.trigger("block:click",s,t),d){if((0,E.isFunction)(d))return d(s,c==null?void 0:c.getEditor(),{event:t})}else return;var f=(e=o.getSorter)===null||e===void 0?void 0:e.call(o);if(f){var g=s.get("content"),m=this.getTempDropModel(g),y=(n=m.view)===null||n===void 0?void 0:n.el,x=y?[{element:y,dragSource:{content:g}}]:[],w=c.getSelected(),k,S,A,L=0;if(w)if(S=f.validTarget(w.getEl(),x,L),S)k=w;else{var D=w.parent();D&&(S=f.validTarget(D.getEl(),x,L),S&&(k=D,A=D.components().indexOf(w)+1))}if(!k){var W=c.getWrapper();S=f.validTarget(W.getEl(),x,L),S&&(k=W)}var j=k&&k.append(g,{at:A})[0];j&&c.setSelected(j,{scroll:!0})}},r.prototype.startDrag=function(t){var e,n=this,i=n.config,o=n.em,s=n.model,c=s.get("disable");if(!(t.button!==0||!i.getSorter||this.el.draggable||c)){o.refreshCanvas();var d=i.getSorter();d.__currentBlock=s;var f=this.model.get("content"),g=this.getTempDropModel(f),m=(e=g.view)===null||e===void 0?void 0:e.el,y=m?[{element:m,dragSource:{content:f}}]:[];d.startSort(y),or(document,"mouseup",this.endDrag)}},r.prototype.handleDragStart=function(t){this.__getModule().__startDrag(this.model,t)},r.prototype.handleDrag=function(t){this.__getModule().__drag(t)},r.prototype.handleDragEnd=function(){this.__getModule().__endDrag()},r.prototype.endDrag=function(){var t,e;gr(document,"mouseup",this.endDrag);var n=(e=(t=this.config).getSorter)===null||e===void 0?void 0:e.call(t);n&&n.endDrag()},r.prototype.getTempDropModel=function(t){var e,n=this.em.Components.getComponents(),i={avoidChildren:1,avoidStore:1,avoidUpdateStyle:1},o=n.add(t,Gs(Gs({},i),{temporary:!0})),s=n.remove(o,Gs(Gs({},i),{temporary:!0}));return s=s instanceof Array?s[0]:s,(e=s.view)===null||e===void 0||e.$el.data("model",s),s},r.prototype.render=function(){var t,e=this,n=e.em,i=e.el,o=e.$el,s=e.ppfx,c=e.model,d=c.get("disable"),f=c.get("attributes")||{},g=f.class||"",m="".concat(s,"block"),y=n&&n.t("blockManager.labels.".concat(c.id))||c.get("label"),x=c.get("render"),w=c.get("media"),k=d?"".concat(m,"--disable"):"".concat(s,"four-color-h");o.attr(f),i.className="".concat(g," ").concat(m," ").concat(s,"one-bg ").concat(k).trim(),i.innerHTML=` 925 `.concat(w?'<div class="'.concat(m,'__media">').concat(w,"</div>"):"",` 926 <div class="`).concat(m,'-label">').concat(y,`</div> 927 `),i.title=f.title||((t=i.textContent)===null||t===void 0?void 0:t.trim()),i.setAttribute("draggable","".concat(!!(l1(n)&&!d)));var S=x&&x({el:i,model:c,className:m,prefix:s});return S&&(i.innerHTML=S),this},r})(Ze);const RC=NC;var BC=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),VC=function(a,r){return Object.defineProperty?Object.defineProperty(a,"raw",{value:r}):a.raw=r,a},HC=(function(a){BC(r,a);function r(t,e,n){var i=a.call(this,t)||this;i.config=e;var o=e.pStylePrefix||"";return i.em=e.em,i.catName=n,i.pfx=o,i.caretR="fa fa-caret-right",i.caretD="fa fa-caret-down",i.iconClass="".concat(o,"caret-icon"),i.activeClass="".concat(o,"open"),i.className="".concat(o).concat(n,"-category"),i.listenTo(i.model,"change:open",i.updateVisibility),i.model.view=i,i}return r.prototype.events=function(){return{"click [data-title]":"toggle"}},r.prototype.template=function(t){var e=t.pfx,n=t.label,i=t.catName;return Gn(B0||(B0=VC([` 928 <div class="`,`title" data-title> 929 <i class="`,`caret-icon"></i> 930 `,` 931 </div> 932 <div class="`,"",`s-c"></div> 933 `],[` 934 <div class="`,`title" data-title> 935 <i class="`,`caret-icon"></i> 936 `,` 937 </div> 938 <div class="`,"",`s-c"></div> 939 `])),e,e,n,e,i)},r.prototype.attributes=function(){return this.model.get("attributes")||{}},r.prototype.updateVisibility=function(){this.model.get("open")?this.open():this.close()},r.prototype.open=function(){this.$el.addClass(this.activeClass),this.getIconEl().className="".concat(this.iconClass," ").concat(this.caretD),this.getTypeEl().style.display=""},r.prototype.close=function(){this.$el.removeClass(this.activeClass),this.getIconEl().className="".concat(this.iconClass," ").concat(this.caretR),this.getTypeEl().style.display="none"},r.prototype.toggle=function(){var t=this.model;t.set("open",!t.get("open"))},r.prototype.getIconEl=function(){return this.iconEl||(this.iconEl=this.el.querySelector(".".concat(this.iconClass))),this.iconEl}
939,r.prototype.getTypeEl=function(){return this.typeEl||(this.typeEl=this.el.querySelector(".".concat(this.pfx).concat(this.catName,"s-c"))),this.typeEl},r.prototype.append=function(t){this.getTypeEl().appendChild(t)},r.prototype.render=function(){var t=this,e=t.em,n=t.el,i=t.$el,o=t.model,s=t.pfx,c=t.catName,d=e.t("".concat(c,"Manager.categories.").concat(o.id))||o.get("label");return n.innerHTML=this.template({pfx:s,label:d,catName:c}),i.addClass(this.className),i.css({order:o.get("order")}),this.updateVisibility(),this},r})(Ze);const ix=HC;var B0,FC=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Df=function(){return Df=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Df.apply(this,arguments)},$C=(function(a){FC(r,a);function r(t,e){var n=a.call(this,t)||this;n.renderedCategories=new Map,(0,E.bindAll)(n,"getSorter","onDrag","onDrop","onMove"),n.config=e||{},n.categories=t.categories||"";var i=n.config.pStylePrefix||"";n.ppfx=i,n.noCatClass="".concat(i,"blocks-no-cat"),n.blockContClass="".concat(i,"blocks-c"),n.catsClass="".concat(i,"block-categories");var o=n.collection;return n.listenTo(o,"add",n.addTo),n.listenTo(o,"reset",n.render),n.em=n.config.em,n.em&&(n.config.getSorter=n.getSorter),n}return r.prototype.__getModule=function(){return this.em.Blocks},r.prototype.updateConfig=function(t){t===void 0&&(t={}),this.config=Df(Df({},this.config),t)},r.prototype.getSorter=function(){var t=this.em;if(t){if(!this.sorter){var e=t.Utils,n=t.Canvas;this.sorter=new e.ComponentSorter({em:t,treeClass:Wb,containerContext:{container:n.getBody(),containerSel:"*",itemSel:"*",pfx:this.ppfx,placeholderElement:n.getPlacerEl(),document:n.getBody().ownerDocument},dragBehavior:{dragDirection:aa.BothDirections,nested:!0},positionOptions:{windowMargin:1,canvasRelative:!0},eventHandlers:{legacyOnStartSort:this.onDrag,legacyOnEndMove:this.onDrop,legacyOnMoveClb:this.onMove}})}return this.sorter}},r.prototype.onDrag=function(t){this.em.stopDefault(),this.__getModule().__startDrag(this.sorter.__currentBlock,t)},r.prototype.onMove=function(t){this.__getModule().__drag(t)},r.prototype.onDrop=function(t){this.em.runDefault(),this.__getModule().__endDrag({component:t}),delete this.sorter.__currentBlock},r.prototype.addTo=function(t){this.add(t)},r.prototype.add=function(t,e){var n=this,i=n.config,o=n.renderedCategories,s=t.get("attributes"),c=new RC({model:t,attributes:s},i),d=c.render().el,f=t.parent.initCategory(t);if(f&&this.categories&&!i.ignoreCategories){var g=f.getId(),m=this.getCategoriesEl(),y=o.get(g);!y&&m&&(y=new ix({model:f},i,"block").render(),o.set(g,y),m.appendChild(y.el)),y==null||y.append(d);return}e?e.appendChild(d):this.append(d)},r.prototype.getCategoriesEl=function(){return this.catsEl||(this.catsEl=this.el.querySelector(".".concat(this.catsClass))),this.catsEl},r.prototype.getBlocksEl=function(){return this.blocksEl||(this.blocksEl=this.el.querySelector(".".concat(this.noCatClass," .").concat(this.blockContClass))),this.blocksEl},r.prototype.append=function(t){var e=this.getBlocksEl();e&&e.appendChild(t)},r.prototype.render=function(){var t=this,e=this.ppfx,n=document.createDocumentFragment();delete this.catsEl,delete this.blocksEl,this.renderedCategories=new Map,this.el.innerHTML=` 940 <div class="`.concat(this.catsClass,`"></div> 941 <div class="`).concat(this.noCatClass,`"> 942 <div class="`).concat(this.blockContClass,`"></div> 943 </div> 944 `),this.collection.each(function(o){return t.add(o,n)}),this.append(n);var i="".concat(this.blockContClass,"s ").concat(e,"one-bg ").concat(e,"two-color");return this.$el.addClass(i),this.rendered=!0,this},r})(Ze);const V0=$C;
944var zC=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Ya=function(){return Ya=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Ya.apply(this,arguments)},UC=(function(a){zC(r,a);function r(t){var e=a.call(this,t,"BlockManager",new ru([],{em:t}),dl,MC())||this;return e.events=dl,e.Block=rx,e.Blocks=ru,e.Category=dd,e.Categories=of,e.storageKey="",e.blocks=e.all,e.blocksVisible=new ru(e.blocks.models,{em:t}),e.categories=new of([],{em:t,events:{update:dl.categoryUpdate}}),e.__onAllEvent=(0,E.debounce)(function(){return e.__trgCustom()},0),e}return r.prototype.onInit=function(){var t=this,e=t.config,n=t.blocks,i=t.blocksVisible;n.on("add",function(o){return i.add(o)}),n.on("remove",function(o){return i.remove(o)}),n.on("reset",function(o){return i.reset(o.models)}),n.add(e.blocks||[])},r.prototype.__trgCustom=function(){this.em.trigger(this.events.custom,this.__customData())},r.prototype.__customData=function(){var t=this,e=this.__getBehaviour();return{bm:this,blocks:this.getAll().models,container:e.container,dragStart:function(n,i){return t.startDrag(n,i)},drag:function(n){return t.__drag(n)},dragStop:function(n){return t.endDrag(n)}}},r.prototype.__startDrag=function(t,e){var n=this,i=n.em,o=n.events,s=n.blocks,c=t.getContent?t.getContent():t;this._dragBlock=t,i.set({dragResult:null,dragSource:{content:c,dragDef:t.getDragDef()}}),[i,s].map(function(d){return d.trigger(o.dragStart,t,e)})},r.prototype.__drag=function(t){var e=this,n=e.em,i=e.events,o=e.blocks,s=this._dragBlock;[n,o].map(function(c){return c.trigger(i.drag,s,t)})},r.prototype.__endDrag=function(t){t===void 0&&(t={});var e=this,n=e.em,i=e.events,o=e.blocks,s=this._dragBlock,c=t.component||n.get("dragResult");if(delete this._dragBlock,c&&s){var d="activeOnRender",f=c.get&&c.get(d),g=s.get("activate")||f,m=s.get("select"),y=(0,E.isArray)(c)?c[0]:c,x=m||g&&m!==!1;x?n.setSelected(y,{activate:g}):g&&y.trigger("active"),g&&f&&y.unset(d),s.get("resetId")&&y.onAll(function(w){return w.resetId()})}n.set({dragResult:null,dragSource:void 0}),s&&[n,o].map(function(w){return w.trigger(i.dragEnd,c,s)})},r.prototype.__getFrameViews=function(){return this.em.Canvas.getFrames().map(function(t){return t.view}).filter(Boolean)},r.prototype.__behaviour=function(t){return t===void 0&&(t={}),this._bhv=Ya(Ya({},this._bhv||{}),t)},r.prototype.__getBehaviour=function(){return this._bhv||{}},r.prototype.startDrag=function(t,e){this.__startDrag(t,e),this.__getFrameViews().forEach(function(n){var i;return(i=n.droppable)===null||i===void 0?void 0:i.startCustom()})},r.prototype.endDrag=function(t){this.__getFrameViews().forEach(function(e){var n;return(n=e.droppable)===null||n===void 0?void 0:n.endCustom(t)}),this.__endDrag()},r.prototype.postRender=function(){var t=this,e=t.categories,n=t.config,i=t.em,o=this.blocksVisible;this.blocksView=new V0({collection:o,categories:e},Ya(Ya({},n),{em:i})),this.__appendTo(o.models),this.__trgCustom()},r.prototype.add=function(t,e,n){n===void 0&&(n={});var i=e||{};return i.id=t,this.blocks.add(i,n)},r.prototype.get=function(t){return this.blocks.get(t)},r.prototype.getAll=function(){return this.blocks},r.prototype.getAllVisible=function(){return this.blocksVisible},r.prototype.remove=function(t,e){return e===void 0&&(e={}),this.__remove(t,e)},r.prototype.getCategories=function(){return this.categories},r.prototype.getContainer=function(){var t;return(t=this.blocksView)===null||t===void 0?void 0:t.el},r.prototype.getDragBlock=function(){return this._dragBlock},r.prototype.getBlocksByCategory=function(t){return Nb(t||this.getAll().models)},r.prototype.render=function(t,e){e===void 0&&(e={});var n=this,i=n.categories,o=n.config,s=n.em,c=t||this.getAll().models;if(e.external){var d=new ru(c,{em:s});return new V0({collection:d,categories:i},Ya(Ya({em:s},o),e)).render().el}return this.blocksView&&(this.blocksView.updateConfig(e),this.blocksView.collection.reset(c),this.blocksView.rendered||(this.blocksView.render(),this.blocksView.rendered=!0)),this.getContainer()},r.prototype.destroy=function(){var t,e=[this.blocks,this.blocksVisible,this.categories];e.map(function(n){return n.stopListening()}),e.map(function(n){return n.reset()}),(t=this.blocksView)===null||t===void 0||t.remove()},r}
944)(oa);const WC=UC;var ZC=function(){return{stylePrefix:"clm-",appendTo:"",selectors:[],states:[{name:"hover"},{name:"active"},{name:"nth-of-type(2n)"}],iconAdd:'<svg viewBox="0 0 24 24"><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"></path></svg>',iconSync:'<svg viewBox="0 0 24 24"><path d="M12 18c-3.31 0-6-2.69-6-6 0-1 .25-1.97.7-2.8L5.24 7.74A7.93 7.93 0 0 0 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4m0-11V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1-.25 1.97-.7 2.8l1.46 1.46A7.93 7.93 0 0 0 20 12c0-4.42-3.58-8-8-8z"></path></svg>',iconTagOn:'<svg viewBox="0 0 24 24"><path d="M19 19H5V5h10V3H5c-1.11 0-2 .89-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8h-2m-11.09-.92L6.5 11.5 11 16 21 6l-1.41-1.42L11 13.17l-3.09-3.09z"></path></svg>',iconTagOff:'<svg viewBox="0 0 24 24"><path d="M19 3H5c-1.11 0-2 .89-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5a2 2 0 0 0-2-2m0 2v14H5V5h14z"></path></svg>',iconTagRemove:'<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"></path></svg>',componentFirst:!1,custom:!1}};const qC=ZC;var KC=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),ax=(function(a){KC(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.defaults=function(){return{name:"",label:""}},r.prototype.getName=function(){return this.get("name")},r.prototype.getLabel=function(){return this.get("label")||this.getName()},r})(We);const Rh=ax;ax.prototype.idAttribute="name";var If;(function(a){a.add="selector:add",a.remove="selector:remove",a.removeBefore="selector:remove:before",a.update="selector:update",a.state="selector:state",a.custom="selector:custom",a.all="selector"})(If||(If={}));var GC=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),YC=function(a,r){return Object.defineProperty?Object.defineProperty(a,"raw",{value:r}):a.raw=r,a},H0="contentEditable",XC=(function(a){GC(r,a);function r(t){t===void 0&&(t={});var e=a.call(this,t)||this,n=t.config||{};return e.config=n,e.module=t.module,e.coll=t.coll||null,e.pfx=n.stylePrefix||"",e.ppfx=n.pStylePrefix||"",e.em=n.em,e.listenTo(e.model,"change:active",e.updateStatus),e}return r.prototype.template=function(){var t=this,e=t.pfx,n=t.model,i=t.config,o=n.get("label")||"";return Gn(F0||(F0=YC([` 945 <span id="`,'checkbox" class="',`tag-status" data-tag-status></span> 946 <span id="`,'tag-label" data-tag-name>',`</span> 947 <span id="`,'close" class="','tag-close" data-tag-remove> $',` </span> 948 `],[` 949 <span id="`,'checkbox" class="',`tag-status" data-tag-status></span> 950 <span id="`,'tag-label" data-tag-name>',`</span> 951 <span id="`,'close" class="','tag-close" data-tag-remove> $',` </span> 952 `])),e,e,e,o,e,e,i.iconTagRemove)},r.prototype.events=function(){return{"click [data-tag-remove]":"removeTag","click [data-tag-status]":"changeStatus","dblclick [data-tag-name]":"startEditTag","focusout [data-tag-name]":"endEditTag"}},r.prototype.getInputEl=function(){return this.inputEl||(this.inputEl=this.el.querySelector("[data-tag-name]")),this.inputEl},r.prototype.startEditTag=function(){var t=this.em,e=this.getInputEl();e[H0]="true",e.focus(),t==null||t.setEditing(!0)},r.prototype.endEditTag=function(){var t=this,e=t.model,n=t.em,i=this.getInputEl(),o=i.textContent||"",s=n==null?void 0:n.Selectors;i[H0]="false",n==null||n.setEditing(!1),s&&s.rename(e,o)!==e&&(i.innerText=e.getLabel())},r.prototype.changeStatus=function(){var t=this.model;t.set("active",!t.getActive())},r.prototype.removeTag=function(){this.module.removeSelected(this.model)},r.prototype.updateStatus=function(){var t=this,e=t.model,n=t.$el,i=t.config,o=i.iconTagOn,s=i.iconTagOff,c=n.find("[data-tag-status]");e.get("active")?(c.html(o),n.removeClass("opac50")):(c.html(s),n.addClass("opac50"))},r.prototype.render=function(){var t=this,e=t.pfx,n=t.ppfx,i=t.$el,o=t.model,s="".concat(e,"tag"),c=["".concat(s," ").concat(n,"three-bg")];return o.get("protected")&&c.push("".concat(s,"-protected")),i.html(this.template()),i.attr("class",c.join(" ")),this.updateStatus(),this},r})(Ze);const JC=XC;
952var F0,QC=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),oc=function(a,r){return Object.defineProperty?Object.defineProperty(a,"raw",{value:r}):a.raw=r,a},tk=(function(a){QC(r,a);function r(t){t===void 0&&(t={});var e=a.call(this,t)||this;e.config=t.config||{},e.pfx=e.config.stylePrefix||"",e.ppfx=e.config.pStylePrefix||"",e.className=e.pfx+"tags",e.stateInputId=e.pfx+"states",e.stateInputC=e.pfx+"input-c",e.states=e.config.states||[];var n=e.config.em,i=e.collection;e.target=n;var o=n.Selectors;e.module=o,e.em=n,e.componentChanged=(0,E.debounce)(e.componentChanged.bind(e),0),e.checkSync=(0,E.debounce)(e.checkSync.bind(e),0);var s=te.update,c="".concat(s,":classes"),d="".concat(te.toggled," ").concat(c),f="".concat(c," ").concat(s,":attributes:id change:state");return e.listenTo(n,d,e.componentChanged),e.listenTo(n,"styleManager:update",e.componentChanged),e.listenTo(n,f,e.__handleStateChange),e.listenTo(n,"styleable:change change:device",e.checkSync),e.listenTo(i,"add",e.addNew),e.listenTo(i,"reset",e.renderClasses),e.listenTo(i,"remove",e.tagRemoved),e.listenTo(o.getAll(),o.events.state,(0,E.debounce)(function(){return e.renderStates()},0)),e.delegateEvents(),e}return r.prototype.template=function(t){var e=t.labelInfo,n=t.labelHead,i=t.iconSync,o=t.iconAdd,s=t.pfx,c=t.ppfx;return Gn($0||($0=oc([' <div id="','up" class="',`header"> 953 <div id="`,'label" class="','header-label">',`</div> 954 <div id="`,'status-c" class="',`header-status"> 955 <span id="`,`input-c" data-states-c> 956 <div class="`,"field ",`select"> 957 <span id="`,`input-holder"> 958 <select id="`,`states" data-states></select> 959 </span> 960 <div class="`,`sel-arrow"> 961 <div class="`,`d-s-arrow"></div> 962 </div> 963 </div> 964 </span> 965 </div> 966 </div> 967 <div id="`,'tags-field" class="',`field"> 968 <div id="`,`tags-c" data-selectors></div> 969 <input id="`,`new" data-input /> 970 <span id="`,'add-tag" class="',"tags-btn ",'tags-btn__add" data-add> $',` </span> 971 <span class="`,"tags-btn ",'tags-btn__sync" style="display: none" data-sync-style> $',` </span> 972 </div> 973 <div class="`,`sels-info"> 974 <div class="`,'label-sel">',`:</div> 975 <div class="`,`sels" data-selected></div> 976 </div>`],[' <div id="','up" class="',`header"> 977 <div id="`,'label" class="','header-label">',`</div> 978 <div id="`,'status-c" class="',`header-status"> 979 <span id="`,`input-c" data-states-c> 980 <div class="`,"field ",`select"> 981 <span id="`,`input-holder"> 982 <select id="`,`states" data-states></select> 983 </span> 984 <div class="`,`sel-arrow"> 985 <div class="`,`d-s-arrow"></div> 986 </div> 987 </div> 988 </span> 989 </div> 990 </div> 991 <div id="`,'tags-field" class="',`field"> 992 <div id="`,`tags-c" data-selectors></div> 993 <input id="`,`new" data-input /> 994 <span id="`,'add-tag" class="',"tags-btn ",'tags-btn__add" data-add> $',` </span> 995 <span class="`,"tags-btn ",'tags-btn__sync" style="display: none" data-sync-style> $',` </span> 996 </div> 997 <div class="`,`sels-info"> 998 <div class="`,'label-sel">',`:</div> 999 <div class="`,`sels" data-selected></div> 1000 </div>`])),s,s,s,s,n,s,s,s,c,c,c,s,c,c,s,c,s,s,s,s,s,o,s,s,i,s,s,e,s)},r.prototype.events=function(){return{"change [data-states]":"stateChanged","click [data-add]":"startNewTag","focusout [data-input]":"endNewTag","keyup [data-input]":"onInputKeyUp","click [data-sync-style]":"syncStyle"}},r.prototype.syncStyle=function(){var t=this.em,e=this.getTarget(),n=t.Css,i={noDisabled:1},o=this.getCommonSelectors({opts:i}),s=t.get("state"),c=t.getCurrentMedia(),d=[],f=n.get(o,s,c)||n.add(o,s,c),g;
1000this.getTargets().forEach(function(m){var y=n.getIdRule(m.getId(),{state:s,mediaText:c});g=y.getStyle(),y.setStyle({}),d.push(y)}),g&&f.addStyle(g),t.trigger(te.toggled),t.trigger(te.syncStyle,{component:e,selectors:o,mediaText:c,rule:f,ruleComponents:d,state:s})},r.prototype.tagRemoved=function(t){this.updateStateVis()},r.prototype.addNew=function(t){this.addToClasses(t)},r.prototype.startNewTag=function(){var t,e;(t=this.$addBtn)===null||t===void 0||t.css({display:"none"}),(e=this.$input)===null||e===void 0||e.show().focus()},r.prototype.endNewTag=function(){var t,e;(t=this.$addBtn)===null||t===void 0||t.css({display:""}),(e=this.$input)===null||e===void 0||e.hide().val("")},r.prototype.onInputKeyUp=function(t){var e;t.keyCode===13?(t.preventDefault(),this.addNewTag((e=this.$input)===null||e===void 0?void 0:e.val())):t.keyCode===27&&this.endNewTag()},r.prototype.checkStates=function(){var t=this.em.getState(),e=this.getStates();e&&e.val(t)},r.prototype.componentChanged=function(t){var e=t===void 0?{}:t,n=e.targets;this.updateSelection(n)},r.prototype.updateSelection=function(t){var e=t||this.getTargets();e=(0,E.isArray)(e)?e:[e];var n=[];return e&&e.length&&(n=this.getCommonSelectors({targets:e}),this.checkSync({validSelectors:n})),this.collection.reset(n),this.updateStateVis(e),this.module.__trgCustom(),n},r.prototype.getCommonSelectors=function(t){var e=t===void 0?{}:t,n=e.targets,i=e.opts,o=i===void 0?{}:i,s=n||this.getTargets();return this.module.__getCommonSelectors(s,o)},r.prototype._commonSelectors=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this.module).__common.apply(t,e)},r.prototype.checkSync=function(){var t=this,e=t.$btnSyncEl,n=t.config,i=t.collection,o=this.getTarget(),s;if(o&&n.componentFirst&&i.length){var c=o.getStyle();s=!(0,E.isEmpty)(c)}e&&e[s?"show":"hide"]()},r.prototype.getTarget=function(){return this.target.getSelected()},r.prototype.getTargets=function(){return this.target.getSelectedAll()},r.prototype.updateStateVis=function(t){var e=this.em,n=e&&e.getConfig().avoidInlineStyle,i=this.collection.length||n?"":"none";this.getStatesC().css("display",i),this.updateSelector(t)},r.prototype.__handleStateChange=function(){this.updateSelector(this.getTargets())},r.prototype.updateSelector=function(t){var e=this,n=this.el.querySelector("[data-selected]"),i=[],o=t||this.getTargets();o=(0,E.isArray)(o)?o:[o],o.forEach(function(s){return i.push(e.__getName(s))}),n&&(n.innerHTML=i.join(", ")),this.checkStates()},r.prototype.__getName=function(t){var e=this,n=e.pfx,i=e.config,o=e.em,s=i.selectedName,c=i.componentFirst,d;if((0,E.isString)(t))d=Gn(z0||(z0=oc(['<span class="','sel-gen">',"</span>"],['<span class="','sel-gen">',"</span>"])),n,t);else{var f=t==null?void 0:t.getSelectors();if(!f)return"";var g=f.getStyleable(),m=o.get("state"),y=t.getId?Gn(U0||(U0=oc(['<span class="','sel-cmp">',`</span> 1001 <span class="`,'sel-id">#',"</span>"],['<span class="','sel-cmp">',`</span> 1002 <span class="`,'sel-id">#',"</span>"])),n,t.getName(),n,t.getId()):"";d=this.collection.getFullString(g),d=d?Gn(W0||(W0=oc(['<span class="','sel-rule">',"</span>"],['<span class="','sel-rule">',"</span>"])),n,d):t.get("selectorsAdd")||y,d=c&&y?y:d,d+=m?Gn(Z0||(Z0=oc(['<span class="','sel-state">:',"</span>"],['<span class="','sel-state">:',"</span>"])),n,m):"",d=s?s({result:d,state:m,target:t}):d}return d&&'<span class="'.concat(n,'sel">').concat(d,"</span>")},r.prototype.stateChanged=function(t){var e=this.em,n=t.target.value;e.set("state",n)},r.prototype.addNewTag=function(t){var e=t.trim();e&&(this.module.addSelected({label:e}),this.endNewTag())},r.prototype.addToClasses=function(t,e){var n=e,i=this.getClasses(),o=new JC({model:t,config:this.config,coll:this.collection,module:this.module}).render().el;return n?n.appendChild(o):i.append(o),o},r.prototype.renderClasses=function(){var t=this,e=document.createDocumentFragment(),n=this.getClasses();n.empty(),this.collection.each(function(i){return t.addToClasses(i,e)}),n.append(e)},r.prototype.getClasses=function(){return this.$el.find("[data-selectors]")},r.prototype.getStates=function(){if(!this.$states){var t=this.$el.find("[data-states]");this.$states=t[0]&&t}return this.$states},r.prototype.getStatesC=function(){return this.$statesC||(this.$statesC=this.$el.find("#"+this.stateInputC)),this.$statesC},r.prototype.renderStates=function(){var t=this,e=t.module,n=t.em,i=n.t("selectorManager.emptyState"),o=e.getStates().map(function(c){var d=n.t("selectorManager.states.".concat(c.id))||c.getLabel()||c.id;return'<option value="'.concat(c.id,'">').concat(d,"</option>")}).join(""),s=this.getStates();s&&s.html('<option value="">'.concat(i,"</option>").concat(o)),this.checkStates()},r.prototype.render=function(){var t=this,e=t.em,n=t.pfx,i=t.ppfx,o=t.config,s=t.$el,c=t.el,d=o.render,f=o.iconSync,g=o.iconAdd,m={iconSync:f,iconAdd:g,labelHead:e.t("selectorManager.label"),labelInfo:e.t("selectorManager.selected"),ppfx:i,pfx:n,el:c};s.html(this.template(m));var y=d&&d(m);
1002return y&&y!==c&&s.empty().append(y),this.$input=s.find("[data-input]"),this.$addBtn=s.find("[data-add]"),this.$classes=s.find("#"+n+"tags-c"),this.$btnSyncEl=s.find("[data-sync-style]"),this.$input.hide(),this.renderStates(),this.renderClasses(),s.attr("class","".concat(this.className," ").concat(i,"one-bg ").concat(i,"two-color")),this},r})(Ze);const ek=tk;var $0,z0,U0,W0,Z0,rk=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Rc=function(){return Rc=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Rc.apply(this,arguments)},Bh=function(a,r,t){if(t||arguments.length===2)for(var e=0,n=r.length,i;e<n;e++)(i||!(e in r))&&(i||(i=Array.prototype.slice.call(r,0,e)),i[e]=r[e]);return a.concat(i||Array.prototype.slice.call(r))},q0=function(a){return(0,E.isString)(a)&&a[0]=="#"},K0=function(a){return(0,E.isString)(a)&&a[0]=="."},nk=(function(a){rk(r,a);function r(t){var e=a.call(this,t,"SelectorManager",new ro([]),If,qC(),{skipListen:!0})||this;e.Selector=Rn,e.Selectors=ro,e.events=If,e.storageKey="",(0,E.bindAll)(e,"__updateSelectedByComponents");var n=e,i=n.config,o=n.events,s=i.pStylePrefix;s&&(i.stylePrefix=s+i.stylePrefix),e.all=new ro(i.selectors),e.selected=new ro([],{em:t,config:i}),e.states=new Rr(i.states.map(function(f){return new Rh(f)}),{model:Rh}),e.model=new We({cFirst:i.componentFirst,_undo:!0}),e.__update=(0,E.debounce)(function(){return e.__trgCustom()},0),e.__initListen({collections:[e.states,e.selected],propagate:[{entity:e.states,event:o.state}]}),t.on("change:state",function(f,g){return t.trigger(o.state,g)}),e.model.on("change:cFirst",function(f,g){return t.trigger("selector:type",g)});var c="".concat(te.update,":classes");t.on("".concat(te.toggled," ").concat(c),e.__updateSelectedByComponents);var d="".concat(te.toggled," ").concat(c," change:device styleManager:update selector:state selector:type style:target");return e.model.listenTo(t,d,function(){return e.__update()}),e}return r.prototype.__trgCustom=function(t){this.em.trigger(this.events.custom,this.__customData(t))},r.prototype.getAll=function(t){return t===void 0&&(t={}),this.all?t.array?Bh([],this.all.models,!0):this.all:[]},r.prototype.__customData=function(t){return t===void 0&&(t={}),this.__ctn=this.__ctn||t.container,{states:this.getStates(),selected:this.getSelected(),container:this.__ctn}},r.prototype.postRender=function(){this.__appendTo(),this.__trgCustom()},r.prototype.select=function(t,e){e===void 0&&(e={});var n=Array.isArray(t)?t:[t],i=this.em.Styles.select(n,e);this.selected.reset(this.__getCommonSelectors(i));var o=this.selectorTags,s=i.filter(function(c){return c}).map(function(c){return os(c)||fb(c)&&!c.get("selectorsAdd")?c:c.getSelectorsString()});return o&&o.componentChanged({targets:s}),this},r.prototype.addSelector=function(t,e,n){e===void 0&&(e={}),n===void 0&&(n={});var i=Rc({},e);(0,E.isObject)(t)?i=t:i.name=t,q0(i.name)?(i.name=i.name.substr(1),i.type=Rn.TYPE_ID):K0(i.name)&&(i.name=i.name.substr(1)),i.label&&!i.name&&(i.name=this.escapeName(i.label));var o=this,s=o.all,c=o.em,d=o.config,f=s.get(i);if(!f){var g=i instanceof Rn?i:new Rn(i,Rc(Rc({},n),{config:d,em:c}));return s.add(g,n)}return f},r.prototype.getSelector=function(t,e){return e===void 0&&(e=Rn.TYPE_CLASS),q0(t)?(t=t.substr(1),e=Rn.TYPE_ID):K0(t)&&(t=t.substr(1)),this.all.get({name:t,type:e})},r.prototype.add=function(t,e){var n=this;e===void 0&&(e={});var i=(0,E.isString)(t)?{}:e;return(0,E.isArray)(t)?t.map(function(o){return n.addSelector(o,e,i)}):this.addSelector(t,e,i)},r.prototype.addClass=function(t){var e=this,n=[];
1002return(0,E.isString)(t)&&(t=t.trim().split(" ").filter(Boolean)),t.forEach(function(i){return n.push(e.addSelector(i))}),n},r.prototype.get=function(t,e){var n=this;if((0,E.isArray)(t)){var i=[],o=t.map(function(s){return n.getSelector(s)}).filter(Boolean);return o.forEach(function(s){return i.indexOf(s)<0&&i.push(s)}),i}else return this.getSelector(t,e)},r.prototype.remove=function(t,e){return this.__remove(t,e)},r.prototype.rename=function(t,e,n){var i=this.escapeName(e),o=this.get(i);return o||t.set({name:i,label:e},n)},r.prototype.setState=function(t){return this.em.setState(t),this},r.prototype.getState=function(){return this.em.getState()},r.prototype.getStates=function(){return Bh([],this.states.models,!0)},r.prototype.setStates=function(t,e){return this.states.reset(t.map(function(n){return new Rh(n)}),e)},r.prototype.getSelected=function(){return this.__getCommon()},r.prototype.getSelectedAll=function(){return Bh([],this.selected.models,!0)},r.prototype.addSelected=function(t){var e=this.add(t);this.em.getSelectedAll().forEach(function(n){n.getSelectors().add(e)})},r.prototype.removeSelected=function(t){this.em.getSelectedAll().forEach(function(e){!t.get("protected")&&e&&e.getSelectors().remove(t)})},r.prototype.duplicateSelected=function(t,e){var n=this;e===void 0&&(e={});var i=this.em,o=this.getSelected();if(!(o.indexOf(t)<0)){var s=this.getState(),c=i.getCurrentMedia(),d=i.Css.get(o,s,c),f=d==null?void 0:d.getStyle();if(i.getSelectedAll().forEach(function(m){var y=m.getSelectors();if(y.includes(t)){var x=e.suffix||" copy",w=t.getLabel(),k=n.addSelector("".concat(w).concat(x)),S=y.indexOf(t);y.remove(t),y.add(k,{at:S})}}),f){var g=i.Css.add(this.getSelected(),s,c);g.setStyle(f)}}},r.prototype.getSelectedTargets=function(){return this.em.Styles.getSelectedAll()},r.prototype.setComponentFirst=function(t){this.getConfig().componentFirst=t,this.model.set({cFirst:t})},r.prototype.getComponentFirst=function(){return this.getConfig().componentFirst},r.prototype.escapeName=function(t){var e=this.getConfig().escapeName;return e?e(t):Rn.escapeName(t)},r.prototype.render=function(t){var e=this.selectorTags,n=this.getConfig(),i=e==null?void 0:e.el;return this.selected.reset(t),this.selectorTags=new ek({el:i,collection:this.selected,module:this,config:n}),this.selectorTags.render().el},r.prototype.destroy=function(){var t=this,e=t.selectorTags,n=t.model;n.stopListening(),this.__update.cancel(),this.__destroy(),e==null||e.remove(),this.selectorTags=void 0},r.prototype.load=function(){},r.prototype.store=function(){},r.prototype.__getCommon=function(){return this.__getCommonSelectors(this.em.getSelectedAll())},r.prototype.__getCommonSelectors=function(t,e){e===void 0&&(e={});var n=t.map(function(i){return i.getSelectors&&i.getSelectors().getValid(e)}).filter(Boolean);return this.__common.apply(this,n)},r.prototype.__common=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.length?e.length===1?e[0]:e.length===2?e[0].filter(function(i){return e[1].indexOf(i)>=0}):e.slice(1).reduce(function(i,o){return t.__common(i,o)},e[0]):[]},r.prototype.__updateSelectedByComponents=function(){this.selected.reset(this.__getCommon())},r})(oa);const ox=nk;var ik=function(){return{textTags:["br","b","i","u","a","ul","ol"],textTypes:["text","textnode","comment"],parserCss:void 0,parserHtml:void 0,parsersCode:{},parserCode:void 0,customSyntheticElement:void 0,optionsHtml:{parserCode:void 0,htmlType:"text/html",allowScripts:!1,allowUnsafeAttr:!1,allowUnsafeAttrValue:!1,keepEmptyTextNodes:!1,convertDataGjsAttributesHyphens:!1,convertAttributeValues:!1}}};const ak=ik;var Ni,hi={MEDIA_RULE:4,FONT_FACE_RULE:5,PAGE_RULE:6,KEYFRAMES_RULE:7,COUNTER_STYLE_RULE:11,SUPPORTS_RULE:12,DOCUMENT_RULE:13,FONT_FEATURE_VALUES_RULE:14,VIEWPORT_RULE:15},ul=(Ni={},Ni[hi.MEDIA_RULE]="media",Ni[hi.FONT_FACE_RULE]="font-face",Ni[hi.PAGE_RULE]="page",Ni[hi.KEYFRAMES_RULE]="keyframes",Ni[hi.COUNTER_STYLE_RULE]="counter-style",Ni[hi.SUPPORTS_RULE]="supports",Ni[hi.DOCUMENT_RULE]="document",Ni[hi.FONT_FEATURE_VALUES_RULE]="font-feature-values",Ni[hi.VIEWPORT_RULE]="viewport",Ni),sx=(0,E.keys)(ul),w1=[hi.FONT_FACE_RULE,hi.PAGE_RULE,hi.COUNTER_STYLE_RULE,hi.VIEWPORT_RULE],ok=sx.filter(function(a){return w1.indexOf(Number(a))<0}).map(function(a){return ul[a]}).concat(["container","layer"]),sk=w1.map(function(a){return ul[a]}),lx=function(a){a===void 0&&(a="");for(var r=[],t=[],e=a.split(","),n=/^(\.[\w\-]+)+((:{1,2}[\w\-]+)(\([^)]*\))?)*$/,i=/^#[\w\-]+((:{1,2}[\w\-]+)(\([^)]*\))?)*$/,o=0;o<e.length;o++){var s=e[o].trim();
1002if(n.test(s)||i.test(s)){var c=s.split(/\.(?![^()]*\))/).filter(Boolean);t.push(c)}else r.push(s)}return{result:t,add:r}},lk=function(a){for(var r=a.style,t={},e=0,n=r.length;e<n;e++){var i=r[e],o=r.getPropertyValue(i),s=r.getPropertyPriority(i);t[i]="".concat(o).concat(s?" !".concat(s):"")}return t},ck=function(a){var r,t=(r=a.selectorText)===null||r===void 0?void 0:r.trim();if(t)return t.replace(/^&(?:\s+)?/,"").trim();var e=a.cssText,n=e===void 0?"":e,i=n.indexOf("{");return i>=0?n.slice(0,i).trim():""},cx=function(a){for(var r=lk(a),t=a.cssRules||[],e=0,n=t.length;e<n;e++){var i=t[e],o=ck(i);o&&(r[o]=cx(i))}return r},G0=function(a){var r=a.conditionText||a.media&&a.media.mediaText||a.name||a.selectorText||"";return r.trim()},Gg=function(a,r,t){r===void 0&&(r={}),t===void 0&&(t={});var e={},n=a.length,i=a[n-1],o=i?i.split(/:(.+)/):[],s=o[1],c=t.atRule,d=t.selectorsAdd,f=t.mediaText,g=sk.indexOf(c)>=0;return g&&(e.singleAtRule=!0),c&&(e.atRuleType=c),d&&(e.selectorsAdd=d),f&&(e.mediaText=f),s&&(a[n-1]=o[0],e.state=s,o.splice(o.length-1,1)),e.selectors=a,e.style=r,e},Y0=function(a){var r=a.cssText,t=r===void 0?"":r;return ok.find(function(e){return t.indexOf("@".concat(e))===0})},dx=function(a){for(var r=[],t=a.cssRules||[],e=0,n=t.length;e<n;e++){var i=t[e],o=i.type,s=!1,c="",d="",f=i.selectorText||i.keyText||"",g=w1.indexOf(o)>=0;if(g)s=!0,c=ul[o],d=G0(i);else if(sx.indexOf("".concat(o))>=0||Y0(i)){var m=dx(i),y=ul[o]||Y0(i);d=G0(i);for(var x=0,w=m.length;x<w;x++){var k=m[x];d&&(k.mediaText=d),k.atRuleType=y}r=r.concat(m)}if(!(!f&&!g)){for(var S=cx(i),A=lx(f),L=A.add,D=A.result,W=void 0,j=0,et=D.length;j<et;j++){var z=Gg(D[j],S,{atRule:ul[o]});r.push(z),W=z}if(L.length){var B=L.join(", ");if(W)W.selectorsAdd=B;else{var z={selectors:[],selectorsAdd:B,style:S};s&&(z.singleAtRule=s),c&&(z.atRuleType=c),d&&(z.mediaText=d),r.push(z)}}}}return r};const dk=(function(a){var r=document.createElement("style");r.innerHTML=a,document.head.appendChild(r);var t=r.sheet;return document.head.removeChild(r),t?dx(t):[]});var uk=(function(){function a(r,t){t===void 0&&(t={}),this.em=r,this.config=t}return a.prototype.parse=function(r,t){var e=this,n,i;t===void 0&&(t={});var o=[],s=this.config.parserCss,c=(n=this.em)===null||n===void 0?void 0:n.Editor,d=[],f,g=(i=this.em)===null||i===void 0?void 0:i.Parser,m={input:r};g==null||g.__emitEvent(oo.cssBefore,m);var y=m.input;try{d=s?s(y,c):dk(y)}catch(x){if(f=x,t.throwOnError)throw x}return d.forEach(function(x){return o=o.concat(e.checkNode(x))}),g==null||g.__emitEvent(oo.css,{input:y,output:o,nodes:d,error:f}),o},a.prototype.checkNode=function(r){var t=r.selectors,e=r.style,n=[r];if((0,E.isString)(t)){var i=[],o=r,s=lx(t),c=s.result,d=s.add.join(", "),f={atRule:o.atRule,mediaText:o.params};
1002if(c.length?c.forEach(function(m){i.push(Gg(m,e,f))}):i.push(Gg([],e,f)),d){var g=i[i.length-1];g.selectorsAdd=d}n=i}return n},a})();const fk=uk;var pk=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Yg=function(){return Yg=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Yg.apply(this,arguments)},hk=(function(a){pk(r,a);function r(t){var e=a.call(this,t,"Parser",ak())||this;e.parsersCode=new Map,e.events=oo,e._parserCode="";var n=e.config;e.parserCss=new fk(t,n),e.parserHtml=new Pb(t,n);var i=n.parserCode;return Object.entries(n.parsersCode||{}).forEach(function(o){var s=o[0],c=o[1];return e.addParserCode(s,c)}),i!==void 0&&(e.parserCode=i),e}return Object.defineProperty(r.prototype,"parserCode",{get:function(){return this._parserCode},set:function(t){this._parserCode=t||"",this.getConfig().parserCode=this._parserCode},enumerable:!1,configurable:!0}),r.prototype.parseHtml=function(t,e){e===void 0&&(e={});var n=this,i=n.em,o=n.parserHtml;return o.compTypes=i.Components.getTypes()||[],o.parse(t,this.parserCss,e)},r.prototype.parseCss=function(t){return this.parserCss.parse(t)},r.prototype.addParserCode=function(t,e,n){n===void 0&&(n={});var i={id:t,parse:e};return this.parsersCode.set(t,i),!n.skipSelect&&(this.parserCode=t),i},r.prototype.getParserCode=function(t){return this.parsersCode.get(t)},r.prototype.removeParserCode=function(t){var e=this.parsersCode.get(t);if(e)return this.parsersCode.delete(t),this.parserCode===t&&(this.parserCode=""),e},r.prototype.__emitEvent=function(t,e){var n=this,i=n.em,o=n.events;i.trigger(t,e),i.trigger(o.all,Yg({event:t},e))},r.prototype.destroy=function(){},r})(Jn);const gk=hk;var vk=function(){return{id:"gjs-",type:"local",autosave:!0,autoload:!0,stepsBeforeSave:1,recovery:!1,onStore:function(a){return a},onLoad:function(a){return a},options:{local:{key:"gjsProject",checkLocal:!0},remote:{headers:{},urlStore:"",urlLoad:"",contentTypeJson:!0,fetchOptions:"",credentials:"include",onStore:function(a){return a},onLoad:function(a){return a}}}}};const mk=vk;var X0=function(a,r,t,e){function n(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(f){try{d(e.next(f))}catch(g){o(g)}}function c(f){try{d(e.throw(f))}catch(g){o(g)}}function d(f){f.done?i(f.value):n(f.value).then(s,c)}d((e=e.apply(a,r||[])).next())})},J0=function(a,r){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},e,n,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(d){return function(f){return c([d,f])}}function c(d){if(e)throw new TypeError("Generator is already executing.");for(;o&&(o=0,d[0]&&(t=0)),t;)try{if(e=1,n&&(i=d[0]&2?n.return:d[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,d[1])).done)return i;switch(n=0,i&&(d=[d[0]&2,i.value]),d[0]){case 0:case 1:i=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,n=d[1],d=[0];continue;
1002case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]<i[3])){t.label=d[1];break}if(d[0]===6&&t.label<i[1]){t.label=i[1],i=d;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(d);break}i[2]&&t.ops.pop(),t.trys.pop();continue}d=r.call(a,t)}catch(f){d=[6,f],n=0}finally{e=i=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},yk=(function(){function a(){}return a.prototype.store=function(r){return X0(this,arguments,void 0,function(t,e){return e===void 0&&(e={}),J0(this,function(n){return this.hasLocal(e,!0)&&localStorage.setItem(e.key,JSON.stringify(t)),[2,t]})})},a.prototype.load=function(){return X0(this,arguments,void 0,function(r){var t;return r===void 0&&(r={}),J0(this,function(e){return t={},this.hasLocal(r,!0)&&(t=JSON.parse(localStorage.getItem(r.key)||"{}")),[2,t]})})},a.prototype.hasLocal=function(r,t){if(r===void 0&&(r={}),r.checkLocal&&(!Jr()||!localStorage)){if(t)throw new Error("localStorage not available");return!1}return!0},a})();const bk=yk;function xk(a){var r=this.constructor;return this.then(function(t){return r.resolve(a()).then(function(){return t})},function(t){return r.resolve(a()).then(function(){return r.reject(t)})})}const wk=xk;function _k(a){var r=this;return new r(function(t,e){if(!(a&&typeof a.length<"u"))return e(new TypeError(typeof a+" "+a+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var n=Array.prototype.slice.call(a);if(n.length===0)return t([]);var i=n.length;function o(c,d){if(d&&(typeof d=="object"||typeof d=="function")){var f=d.then;if(typeof f=="function"){f.call(d,function(g){o(c,g)},function(g){n[c]={status:"rejected",reason:g},--i===0&&t(n)});return}}n[c]={status:"fulfilled",value:d},--i===0&&t(n)}for(var s=0;s<n.length;s++)o(s,n[s])})}const Ck=_k;function ux(a,r){this.name="AggregateError",this.errors=a,this.message=r||""}ux.prototype=Error.prototype;function kk(a){var r=this;return new r(function(t,e){if(!(a&&typeof a.length<"u"))return e(new TypeError("Promise.any accepts an array"));var n=Array.prototype.slice.call(a);if(n.length===0)return e();for(var i=[],o=0;o<n.length;o++)try{r.resolve(n[o]).then(t).catch(function(s){i.push(s),i.length===n.length&&e(new ux(i,"All promises were rejected"))})}catch(s){e(s)}})}const Sk=kk;var Tk=setTimeout;function fx(a){return!!(a&&typeof a.length<"u")}function Ok(){}function Ek(a,r){return function(){a.apply(r,arguments)}}function Sr(a){if(!(this instanceof Sr))throw new TypeError("Promises must be constructed via new");if(typeof a!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],hx(a,this)}function px(a,r){for(;a._state===3;)a=a._value;if(a._state===0){a._deferreds.push(r);return}a._handled=!0,Sr._immediateFn(function(){var t=a._state===1?r.onFulfilled:r.onRejected;if(t===null){(a._state===1?Xg:id)(r.promise,a._value);return}var e;try{e=t(a._value)}catch(n){id(r.promise,n);return}Xg(r.promise,e)})}function Xg(a,r){try{if(r===a)throw new TypeError("A promise cannot be resolved with itself.");if(r&&(typeof r=="object"||typeof r=="function")){var t=r.then;if(r instanceof Sr){a._state=3,a._value=r,Jg(a);return}else if(typeof t=="function"){hx(Ek(t,r),a);return}}a._state=1,a._value=r,Jg(a)}catch(e){id(a,e)}}function id(a,r){a._state=2,a._value=r,Jg(a)}function Jg(a){a._state===2&&a._deferreds.length===0&&Sr._immediateFn(function(){a._handled||Sr._unhandledRejectionFn(a._value)});for(var r=0,t=a._deferreds.length;r<t;r++)px(a,a._deferreds[r]);a._deferreds=null}function Ak(a,r,t){this.onFulfilled=typeof a=="function"?a:null,this.onRejected=typeof r=="function"?r:null,this.promise=t}function hx(a,r){var t=!1;try{a(function(e){t||(t=!0,Xg(r,e))},function(e){t||(t=!0,id(r,e))})}catch(e){if(t)return;t=!0,id(r,e)}}Sr.prototype.catch=function(a){return this.then(null,a)};Sr.prototype.then=function(a,r){var t=new this.constructor(Ok);return px(this,new Ak(a,r,t)),t};Sr.prototype.finally=wk;Sr.all=function(a){return new Sr(function(r,t){if(!fx(a))return t(new TypeError("Promise.all accepts an array"));var e=Array.prototype.slice.call(a);if(e.length===0)return r([]);var n=e.length;function i(s,c){try{if(c&&(typeof c=="object"||typeof c=="function")){var d=c.then;
1002if(typeof d=="function"){d.call(c,function(f){i(s,f)},t);return}}e[s]=c,--n===0&&r(e)}catch(f){t(f)}}for(var o=0;o<e.length;o++)i(o,e[o])})};Sr.any=Sk;Sr.allSettled=Ck;Sr.resolve=function(a){return a&&typeof a=="object"&&a.constructor===Sr?a:new Sr(function(r){r(a)})};Sr.reject=function(a){return new Sr(function(r,t){t(a)})};Sr.race=function(a){return new Sr(function(r,t){if(!fx(a))return t(new TypeError("Promise.race accepts an array"));for(var e=0,n=a.length;e<n;e++)Sr.resolve(a[e]).then(r,t)})};Sr._immediateFn=typeof setImmediate=="function"&&function(a){setImmediate(a)}||function(a){Tk(a,0)};Sr._unhandledRejectionFn=function(r){typeof console<"u"&&console&&console.warn("Possible Unhandled Promise Rejection:",r)};const Qg=Sr;Jr()&&(window.Promise=window.Promise||Qg);const gx=typeof fetch=="function"?fetch.bind():function(a,r){return new Qg(function(t,e){var n=new XMLHttpRequest;n.open(r.method||"get",a),n.withCredentials=r.credentials=="include";for(var i in r.headers||{})n.setRequestHeader(i,r.headers[i]);n.onload=function(o){return t({status:n.status,statusText:n.statusText,text:function(){return Qg.resolve(n.responseText)}})},n.onerror=e,n.upload&&r.onProgress&&(n.upload.onprogress=r.onProgress),r.body?n.send(r.body):n.send()})};var jf=function(){return jf=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},jf.apply(this,arguments)},Q0=function(a,r,t,e){function n(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(f){try{d(e.next(f))}catch(g){o(g)}}function c(f){try{d(e.throw(f))}catch(g){o(g)}}function d(f){f.done?i(f.value):n(f.value).then(s,c)}d((e=e.apply(a,r||[])).next())})},ty=function(a,r){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},e,n,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(d){return function(f){return c([d,f])}}function c(d){if(e)throw new TypeError("Generator is already executing.");for(;o&&(o=0,d[0]&&(t=0)),t;)try{if(e=1,n&&(i=d[0]&2?n.return:d[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,d[1])).done)return i;switch(n=0,i&&(d=[d[0]&2,i.value]),d[0]){case 0:case 1:i=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,n=d[1],d=[0];continue;
1002case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]<i[3])){t.label=d[1];break}if(d[0]===6&&t.label<i[1]){t.label=i[1],i=d;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(d);break}i[2]&&t.ops.pop(),t.trys.pop();continue}d=r.call(a,t)}catch(f){d=[6,f],n=0}finally{e=i=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},Mk=(function(){function a(){}return a.prototype.store=function(r){return Q0(this,arguments,void 0,function(t,e){return e===void 0&&(e={}),ty(this,function(n){switch(n.label){case 0:return[4,this.request(e.urlStore,this.__props(e,t),e)];case 1:return[2,n.sent()]}})})},a.prototype.load=function(){return Q0(this,arguments,void 0,function(r){return r===void 0&&(r={}),ty(this,function(t){switch(t.label){case 0:return[4,this.request(r.urlLoad,this.__props(r),r)];case 1:return[2,t.sent()]}})})},a.prototype.request=function(r,t,e){return t===void 0&&(t={}),e===void 0&&(e={}),gx(r,t).then(function(n){var i=n.text(),o=(n.status/200|0)===1;return o?i:i.then(Promise.reject)}).then(function(n){var i=n&&(0,E.isString)(n);return e.contentTypeJson&&i?JSON.parse(n):n})},a.prototype.__props=function(r,t){r===void 0&&(r={});var e=r.contentTypeJson,n=r.headers||{},i=r.fetchOptions||{},o="X-Requested-With",s="Content-Type",c;if((0,E.isUndefined)(n[o])&&(n[o]="XMLHttpRequest"),(0,E.isUndefined)(n[s])&&e&&(n[s]="application/json; charset=utf-8"),t)if(e)c=JSON.stringify(t);else{c=new FormData;for(var d in t)c.append(d,t[d])}var f={method:c?"POST":"GET",credentials:r.credentials,headers:n,body:c};return jf(jf({},f),(0,E.isFunction)(i)?i(f):i)},a})();const Pk=Mk;var tv;(function(a){a.start="storage:start",a.startStore="storage:start:store",a.startLoad="storage:start:load",a.load="storage:load",a.store="storage:store",a.after="storage:after",a.afterStore="storage:after:store",a.afterLoad="storage:after:load",a.end="storage:end",a.endStore="storage:end:store",a.endLoad="storage:end:load",a.error="storage:error",a.errorStore="storage:error:store",a.errorLoad="storage:error:load"})(tv||(tv={}));const Ln=tv;var Lk=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Ys=function(){return Ys=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Ys.apply(this,arguments)},Vh=function(a,r,t,e){function n(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(f){try{d(e.next(f))}catch(g){o(g)}}function c(f){try{d(e.throw(f))}catch(g){o(g)}}function d(f){f.done?i(f.value):n(f.value).then(s,c)}d((e=e.apply(a,r||[])).next())})},Hh=function(a,r){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},e,n,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(d){return function(f){return c([d,f])}}function c(d){if(e)throw new TypeError("Generator is already executing.");for(;o&&(o=0,d[0]&&(t=0)),t;)try{if(e=1,n&&(i=d[0]&2?n.return:d[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,d[1])).done)return i;switch(n=0,i&&(d=[d[0]&2,i.value]),d[0]){case 0:case 1:i=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,n=d[1],d=[0];continue;
1002case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]<i[3])){t.label=d[1];break}if(d[0]===6&&t.label<i[1]){t.label=i[1],i=d;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(d);break}i[2]&&t.ops.pop(),t.trys.pop();continue}d=r.call(a,t)}catch(f){d=[6,f],n=0}finally{e=i=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},nu="local",ey="remote",Dk=(function(a){Lk(r,a);function r(t){var e=a.call(this,t,"StorageManager",mk())||this;e.storages={},e.events=Ln;var n=e.config;return n._disable&&(n.type=void 0),e.storages={},e.add(nu,new bk),e.add(ey,new Pk),e.setCurrent(n.type),e}return r.prototype.isAutosave=function(){return!!this.config.autosave},r.prototype.setAutosave=function(t){return this.config.autosave=!!t,this},r.prototype.getStepsBeforeSave=function(){return this.config.stepsBeforeSave},r.prototype.setStepsBeforeSave=function(t){return this.config.stepsBeforeSave=t,this},r.prototype.add=function(t,e){return this.storages[t]=e,this},r.prototype.get=function(t){return this.storages[t]},r.prototype.getStorages=function(){return this.storages},r.prototype.getCurrent=function(){return this.config.currentStorage},r.prototype.setCurrent=function(t){return this.getConfig().currentStorage=t,this},r.prototype.getCurrentStorage=function(){return this.get(this.getCurrent())},r.prototype.getStorageOptions=function(t){return this.getCurrentOptions(t)},r.prototype.store=function(t){return Vh(this,arguments,void 0,function(e,n){var i,o,s,c,d,f;return n===void 0&&(n={}),Hh(this,function(g){switch(g.label){case 0:i=this.getCurrentStorage(),o=Ys(Ys({},this.getCurrentOptions()),n),s=this.getRecoveryStorage(),c=this.getCurrentOptions(nu),g.label=1;case 1:return g.trys.push([1,5,,9]),[4,this.__exec(i,o,e)];case 2:return g.sent(),d=s,d?[4,this.__exec(s,c,{})]:[3,4];case 3:d=g.sent(),g.label=4;case 4:return[3,9];case 5:return f=g.sent(),s?[4,this.__exec(s,c,e)]:[3,7];case 6:return g.sent(),[3,8];case 7:throw f;case 8:return[3,9];case 9:return[2,e]}})})},r.prototype.load=function(){return Vh(this,arguments,void 0,function(t){var e,n,i,o,s;return t===void 0&&(t={}),Hh(this,function(c){switch(c.label){case 0:return e=this.getCurrentStorage(),n=Ys(Ys({},this.getCurrentOptions()),t),i=this.getRecoveryStorage(),i?[4,this.__exec(i,this.getCurrentOptions(nu))]:[3,5];case 1:if(s=c.sent(),(0,E.isEmpty)(s))return[3,5];c.label=2;case 2:return c.trys.push([2,4,,5]),[4,this.__askRecovery()];case 3:return c.sent(),o=s,[3,5];case 4:return c.sent(),[3,5];case 5:return o?[3,7]:[4,this.__exec(e,n)];case 6:o=c.sent(),c.label=7;case 7:return[2,o||{}]}})})},r.prototype.__askRecovery=function(){var t=this.em,e=this.getRecovery();return new Promise(function(n,i){(0,E.isFunction)(e)?e(n,i,t==null?void 0:t.getEditor()):confirm(t==null?void 0:t.t("storageManager.recover"))?n(null):i()})},r.prototype.getRecovery=function(){return this.config.recovery},r.prototype.getRecoveryStorage=function(){var t=this.getRecovery();return t&&this.getCurrent()===ey&&this.get(nu)},r.prototype.__exec=function(t,e,n){return Vh(this,void 0,void 0,function(){var i,o,s,c,d,f,g,m,y,x,w,k,S,A;return Hh(this,function(L){switch(L.label){case 0:if(i=n?"store":"load",o=this.getConfig(),s=o.onStore,c=o.onLoad,!t)return[2,n||{}];this.onStart(i,n),L.label=1;case 1:return L.trys.push([1,14,,15]),f=(A=this.em)===null||A===void 0?void 0:A.getEditor(),g=void 0,n?(y=s,y?[4,s(n,f)]:[3,3]):[3,7];case 2:y=L.sent(),L.label=3;case 3:return m=y||n,x=e.onStore,x?[4,e.onStore(m,f)]:[3,5];case 4:x=L.sent(),L.label=5;case 5:return m=x||m,[4,t.store(m,e)];case 6:return g=L.sent(),d=n,[3,13];case 7:return[4,t.load(e)];case 8:return g=L.sent(),d=this.__clearKeys(g),w=e.onLoad,w?[4,e.onLoad(d,f)]:[3,10];case 9:w=L.sent(),L.label=10;case 10:return d=w||d,k=c,k?[4,c(d,f)]:[3,12];case 11:k=L.sent(),L.label=12;case 12:d=k||d,L.label=13;case 13:return this.onAfter(i,d,g),this.onEnd(i,d,g),[3,15];case 14:throw S=L.sent(),this.onError(i,S),S;case 15:return[2,d]}})})},r.prototype.__clearKeys=function(t){t===void 0&&(t={});var e=this.getConfig(),n=new RegExp("^".concat(e.id)),i={};for(var o in t){var s=o.replace(n,"");i[s]=t[o]}return i},r.prototype.getCurrentOptions=function(t){var e=this.getConfig(),n=t||this.getCurrent();return e.options[n]||{}},r.prototype.onStart=function(t,e){var n=this.em;if(n){var i=t==="load"?Ln.startLoad:Ln.startStore;n.trigger(Ln.start,t,e),n.trigger(i,e)}},r.prototype.onAfter=function(t,e,n){var i=this.em;if(i){var o=t==="load"?Ln.afterLoad:Ln.afterStore;i.trigger(Ln.after),i.trigger(o,e,n);var s=t==="load"?Ln.load:Ln.store;i.trigger(s,e,n)}},r.prototype.onEnd=function(t,e,n){var i=this.em;if(i){var o=t==="load"?Ln.endLoad:Ln.endStore;i.trigger(Ln.end,t,e,n),i.trigger(o,e,n)}},r.prototype.onError=function(t,e){var n=this.em;if(n){var i=t==="load"?Ln.errorLoad:Ln.errorStore;n.trigger(Ln.error,e,t),n.trigger(i,e),this.onEnd(t,e)}},r.prototype.canAutoload=function(){var t=this.getCurrentStorage();return!!t&&!!this.config.autoload},r.prototype.destroy=function(){this.storages={}},r})(Jn);const Ik=Dk;var jk=function(){return{stylePrefix:"trt-",appendTo:"",optionsTarget:[{value:!1},{value:"_blank"}],custom:!1}};const Nk=jk;
vendor: 5,216 bytes, lines 1002-1007
1002var Rk=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Bc=function(){return Bc=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Bc.apply(this,arguments)},vx=(function(a){Rk(r,a);function r(t){t===void 0&&(t={});var e=a.call(this,t)||this;e.events={},e.appendInput=!0;var n=t.config,i=n===void 0?{}:n,o=e,s=o.model,c=o.eventCapture,d=s.target,f=s.attributes.type;e.config=i,e.em=i.em,e.pfx=i.stylePrefix||"",e.ppfx=i.pStylePrefix||"",e.target=d,e.className=e.pfx+"trait",e.clsField="".concat(e.ppfx,"field ").concat(e.ppfx,"field-").concat(f);var g=[["change:value",e.onValueChange],["remove",e.removeView]];return g.forEach(function(m){var y=m[0],x=m[1];s.off(y,x),e.listenTo(s,y,x)}),s.view=e,e.listenTo(s,"change:label",e.render),e.listenTo(s,"change:placeholder",e.rerender),e.events={},c.forEach(function(m){return e.events[m]="onChange"}),e.delegateEvents(),e.init(),e}return r.prototype.attributes=function(){return this.model.get("attributes")||{}},r.prototype.templateLabel=function(t){var e=this.ppfx,n=this.getLabel();return'<div class="'.concat(e,'label" title="').concat(n,'">').concat(n,"</div>")},r.prototype.templateInput=function(t){var e=this.clsField;return'<div class="'.concat(e,'" data-input></div>')},r.prototype.getClbOpts=function(){return{component:this.target,trait:this.model,elInput:this.getInputElem()}},r.prototype.removeView=function(){this.remove(),this.removed()},r.prototype.init=function(){},r.prototype.removed=function(){},r.prototype.onRender=function(t){},r.prototype.onUpdate=function(t){},r.prototype.onEvent=function(t){},r.prototype.onChange=function(t){var e=this.getInputElem();e&&!(0,E.isUndefined)(e.value)&&this.model.set("value",e.value),this.onEvent(Bc(Bc({},this.getClbOpts()),{event:t}))},r.prototype.getValueForTarget=function(){return this.model.get("value")},r.prototype.setInputValue=function(t){var e=this.getInputElem();e&&(e.value=t)},r.prototype.onValueChange=function(t,e,n){n===void 0&&(n={});var i=this.model,o=this.getValueForTarget();n.fromTarget?(this.setInputValue(o),this.postUpdate()):i.setValue(o,n)},r.prototype.renderLabel=function(){var t=this,e=t.$el,n=t.target,i=this.getLabel(),o=this.templateLabel(n);this.createLabel&&(o=this.createLabel({label:i,component:n,trait:this})||""),e.find("[data-label]").append(o)},r.prototype.getLabel=function(){var t=this.em,e=this.model.attributes,n=e.label,i=e.name;return t.t("traitManager.traits.labels.".concat(i))||Xc(n||i).replace(/-/g," ")},r.prototype.getComponent=function(){return this.target},r.prototype.getInputEl=function(){if(!this.$input){var t=this,e=t.em,n=t.model,i=n,o=n.attributes.name,s=i.get("placeholder")||i.get("default")||"",c=i.get("type")||"text",d=i.get("min"),f=i.get("max"),g=this.getModelValue(),m=(0,De.default)('<input type="'.concat(c,'">')),y=e.t("traitManager.traits.attributes.".concat(o))||{};m.attr(Bc({placeholder:s},y)),(0,E.isUndefined)(g)||(i.set({value:g},{silent:!0}),m.prop("value",g)),d&&m.prop("min",d),f&&m.prop("max",f),this.$input=m}return this.$input.get(0)},r.prototype.getInputElem=function(){var t=this,e=t.input,n=t.$input;return e||n&&n.get&&n.get(0)||this.getElInput()},r.prototype.getModelValue=function(){return this.model.getValue()},r.prototype.getElInput=function(){return this.elInput},r.prototype.renderField=function(){var t=this,e=t.$el,n=t.appendInput,i=t.model,o=e.find("[data-input]"),s=o[o.length-1],c=i.el;c||(c=this.createInput?this.createInput(this.getClbOpts()):this.getInputEl()),(0,E.isString)(c)?(s.innerHTML=c,this.elInput=s.firstChild):(n?s.appendChild(c):s.insertBefore(c,s.firstChild),this.elInput=c),i.el=this.elInput},r.prototype.hasLabel=function(){var t=this.model.attributes.label;return!this.noLabel&&t!==!1},r.prototype.rerender=function(){delete this.model.el,this.render()},r.prototype.postUpdate=function(){this.onUpdate(this.getClbOpts())},r.prototype.render=function(){var t=this,e=t.$el,n=t.pfx,i=t.ppfx,o=t.model,s=o.attributes,c=s.type,d=s.id,f=this.hasLabel&&this.hasLabel(),g="".concat(n,"trait");delete this.$input;var m='<div class="'.concat(g," ").concat(g,"--").concat(c,`"> 1003 `).concat(f?'<div class="'.concat(i,'label-wrp" data-label></div>'):"",` 1004 <div class="`).concat(i,"field-wrp ").concat(i,"field-wrp--").concat(c,`" data-input> 1005 `).concat(this.templateInput?(0,E.isFunction)(this.templateInput)?this.templateInput(this.getClbOpts()):this.templateInput:"",` 1006 </div> 1007 </div>`);return e.empty().append(m),f&&this.renderLabel(),this.renderField(),this.el.className="".concat(g,"__wrp ").concat(g,"__wrp-").concat(d),this.postUpdate(),this.onRender(this.getClbOpts()),this},r})(Ze);const Ma=vx;vx.prototype.eventCapture=["change"];
1007var Bk=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),mx=(function(a){Bk(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.templateInput=function(){return""},r.prototype.onChange=function(){this.handleClick()},r.prototype.handleClick=function(){this.model.runCommand()},r.prototype.renderLabel=function(){this.model.get("label")&&Ma.prototype.renderLabel.apply(this)},r.prototype.getInputEl=function(){var t=this,e=t.model,n=t.ppfx,i=e.props(),o=i.labelButton,s=i.text,c=i.full,d=o||s,f="".concat(n,"btn"),g='<button type="button" class="'.concat(f,"-prim").concat(c?" ".concat(f,"--full"):"",'">').concat(d,"</button>");return g},r})(Ma);const Vk=mx;mx.prototype.eventCapture=["click button"];var Hk=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Fk=(function(a){Hk(r,a);function r(){var t=a!==null&&a.apply(this,arguments)||this;return t.appendInput=!1,t}return r.prototype.templateInput=function(){var t=this,e=t.ppfx,n=t.clsField;return'<label class="'.concat(n,`" data-input> 1008 <i class="`).concat(e,`chk-icon"></i> 1009 </label>`)},r.prototype.onChange=function(){this.model.set("value",this.getInputElem().checked)},r.prototype.setInputValue=function(t){var e=this.getInputElem();e&&(e.checked=!!t)},r.prototype.getInputEl=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=!this.$input,i=Ma.prototype.getInputEl.apply(this,t);if(n){var o=void 0,s=void 0,c=this,d=c.model,f=c.target,g=d.attributes.valueFalse,m=d.getName();d.changeProp?(o=f.get(m),s=o):(s=f.get("attributes")[m],o=!!(s||s==="")),!(0,E.isUndefined)(g)&&s===g&&(o=!1),i.checked=o}return i},r})(Ma);const $k=Fk;function zk(a,r){if(!Jr())return;var t={beforeShow:y,move:y,change:y,show:y,hide:y,color:!1,flat:!1,showInput:!1,allowEmpty:!1,showButtons:!0,clickoutFiresChange:!0,showInitial:!1,showPalette:!1,showPaletteOnly:!1,hideAfterPaletteSelect:!1,togglePaletteOnly:!1,showSelectionPalette:!0,localStorageKey:!1,appendTo:"body",maxSelectionSize:7,cancelText:"cancel",chooseText:"choose",togglePaletteMoreText:"more",togglePaletteLessText:"less",clearText:"Clear Color Selection",noColorSelectedText:"No Color Selected",preferredFormat:!1,className:"",containerClassName:"",replacerClassName:"",showAlpha:!1,theme:"sp-light",palette:[["#ffffff","#000000","#ff0000","#ff8000","#ffff00","#008000","#0000ff","#4b0082","#9400d3"]],selectionPalette:[],disabled:!1,offset:null},e=[],n=!!/msie/i.exec(window.navigator.userAgent),i=(function(){function U(pt,Lt){return!!~(""+pt).indexOf(Lt)}var tt=document.createElement("div"),$=tt.style;return $.cssText="background-color:rgba(0,0,0,.5)",U($.backgroundColor,"rgba")||U($.backgroundColor,"hsla")})(),o=["<div class='sp-replacer'>","<div class='sp-preview'><div class='sp-preview-inner'></div></div>","<div class='sp-dd'>▼</div>","</div>"].join(""),s=(function(){var U="";if(n)for(var tt=1;tt<=6;tt++)U+="<div class='sp-"+tt+"'></div>";return["<div class='sp-container sp-hidden'>","<div class='sp-palette-container'>","<div class='sp-palette sp-thumb sp-cf'></div>","<div class='sp-palette-button-container sp-cf'>","<button type='button' class='sp-palette-toggle'></button>","</div>","</div>","<div class='sp-picker-container'>","<div class='sp-top sp-cf'>","<div class='sp-fill'></div>","<div class='sp-top-inner'>","<div class='sp-color'>","<div class='sp-sat'>","<div class='sp-val'>","<div class='sp-dragger'></div>","</div>","</div>","</div>","<div class='sp-clear sp-clear-display'>","</div>","<div class='sp-hue'>","<div class='sp-slider'></div>",U,"</div>","</div>","<div class='sp-alpha'><div class='sp-alpha-inner'><div class='sp-alpha-handle'></div></div></div>","</div>","<div class='sp-input-container sp-cf'>","<input class='sp-input' type='text' spellcheck='false' />","</div>","<div class='sp-initial sp-thumb sp-cf'></div>","<div class='sp-button-container sp-cf'>","<a class='sp-cancel' href='#'></a>","<button type='button' class='sp-choose'></button>","</div>","</div>","</div>"].join("")})();function c(U,tt,$,pt){for(var Lt=[],Rt=0;Rt<U.length;Rt++){var Jt=U[Rt];if(Jt){var re=F(Jt),Gt=re.toHsl().l<.5?"sp-thumb-el sp-thumb-dark":"sp-thumb-el sp-thumb-light";Gt+=F.equals(tt,Jt)?" sp-thumb-active":"";var Ce=re.toString(pt.preferredFormat||"rgb"),Be=i?"background-color:"+re.toRgbString():"filter:"+re.toFilter();Lt.push('<span title="'+Ce+'" data-color="'+re.toRgbString()+'" class="'+Gt+'"><span class="sp-thumb-inner" style="'+Be+';"></span></span>')}else{var we="sp-clear-display";Lt.push(a("<div />").append(a('<span data-color="" style="background-color:transparent;" class="'+we+'"></span>').attr("title",pt.noColorSelectedText)).html())}}return"<div class='sp-cf "+$+"'>"+Lt.join("")+"</div>"}function d(){for(var U=0;U<e.length;U++)e[U]&&e[U].hide()}function f(U,tt){var $=a.extend({},t,U);return $.callbacks={move:w($.move,tt),change:w($.change,tt),show:w($.show,tt),hide:w($.hide,tt),beforeShow:w($.beforeShow,tt)},$}
1009function g(U,tt){var $=f(tt,U),pt=$.flat,Lt=$.showSelectionPalette,Rt=$.localStorageKey,Jt=$.theme,re=$.callbacks,Gt=S(ni,10),Ce=!1,Be=!1,we=!0,vr=0,mr=0,V=0,rt=0,dt=0,Pt=0,qt=0,ot=0,xt=0,Nt=0,ee=1,ye=[],Ie=[],Ke={},Fe=$.selectionPalette.slice(0),Pr=$.maxSelectionSize,Xe="sp-dragging",sr=null,yr=U.ownerDocument;yr.body;var Ge=a(U),Lr=!1,ke=a(s,yr).addClass(Jt),$i=ke.find(".sp-picker-container"),Br=ke.find(".sp-color"),wr=ke.find(".sp-dragger"),Vr=ke.find(".sp-hue"),Ye=ke.find(".sp-slider"),ie=ke.find(".sp-alpha-inner"),Sn=ke.find(".sp-alpha"),Qr=ke.find(".sp-alpha-handle"),$e=ke.find(".sp-input"),Ue=ke.find(".sp-palette"),tn=ke.find(".sp-initial"),Qn=ke.find(".sp-cancel"),ti=ke.find(".sp-clear"),Vt=ke.find(".sp-choose"),he=ke.find(".sp-palette-toggle"),Vn=Ge.is("input"),N=Vn&&Ge.attr("type")==="color"&&A(),nt=Vn&&!pt,Et=nt?a(o).addClass(Jt).addClass($.className).addClass($.replacerClassName):a([]),Ft=nt?Et:Ge,Ut=Et.find(".sp-preview-inner"),Pe=$.color||Vn&&Ge.val(),Ve=!1,nr=$.preferredFormat,ur=!$.showButtons||$.clickoutFiresChange,Tn=!Pe,ei=$.allowEmpty&&!N;function vi(){if($.showPaletteOnly&&($.showPalette=!0),he.text($.showPaletteOnly?$.togglePaletteMoreText:$.togglePaletteLessText),$.palette){ye=$.palette.slice(0),Ie=a.isArray(ye[0])?ye:[ye],Ke={};for(var fe=0;fe<Ie.length;fe++)for(var me=0;me<Ie[fe].length;me++){var Me=F(Ie[fe][me]).toRgbString();Ke[Me]=!0}
1009}ke.toggleClass("sp-flat",pt),ke.toggleClass("sp-input-disabled",!$.showInput),ke.toggleClass("sp-alpha-enabled",$.showAlpha),ke.toggleClass("sp-clear-enabled",ei),ke.toggleClass("sp-buttons-disabled",!$.showButtons),ke.toggleClass("sp-palette-buttons-disabled",!$.togglePaletteOnly),ke.toggleClass("sp-palette-disabled",!$.showPalette),ke.toggleClass("sp-palette-only",$.showPaletteOnly),ke.toggleClass("sp-initial-disabled",!$.showInitial),ke.addClass($.className).addClass($.containerClassName),ni()}function lo(){if(n&&ke.find("*:not(input)").attr("unselectable","on"),vi(),nt&&Ge.after(Et).hide(),ei||ti.hide(),pt)Ge.after(ke).hide();else{var fe=$.appendTo==="parent"?Ge.parent():a($.appendTo);fe.length!==1&&(fe=a("body")),fe.append(ke)}Pa(),Ft.bind("click.spectrum touchstart.spectrum",function(pe){Lr||La(),pe.stopPropagation(),a(pe.target).is("input")||pe.preventDefault()}),(Ge.is(":disabled")||$.disabled===!0)&&ca(),ke.click(x),$e.change(mi),$e.bind("paste",function(){setTimeout(mi,1)}),$e.keydown(function(pe){pe.keyCode==13&&mi()}),Qn.text($.cancelText),Qn.bind("click.spectrum",function(pe){pe.stopPropagation(),pe.preventDefault(),Mi(),vn()}),ti.attr("title",$.clearText),ti.bind("click.spectrum",function(pe){pe.stopPropagation(),pe.preventDefault(),Tn=!0,Pi(),pt&&ri(!0)}),Vt.text($.chooseText),Vt.bind("click.spectrum",function(pe){pe.stopPropagation(),pe.preventDefault(),n&&$e.is(":focus")&&$e.trigger("change"),cs()&&(ri(!0),vn())}),he.text($.showPaletteOnly?$.togglePaletteMoreText:$.togglePaletteLessText),he.bind("click.spectrum",function(pe){pe.stopPropagation(),pe.preventDefault(),$.showPaletteOnly=!$.showPaletteOnly,!$.showPaletteOnly&&!pt&&ke.css("left","-="+($i.outerWidth(!0)+5)),vi()}),k(Sn,function(pe,mn,yn){ee=pe/dt,Tn=!1,yn.shiftKey&&(ee=Math.round(ee*10)/10),Pi()},Ui,$r),k(Vr,function(pe,mn){ot=parseFloat(mn/rt),Tn=!1,$.showAlpha||(ee=1),Pi()},Ui,$r),k(Br,function(pe,mn,yn){if(!yn.shiftKey)sr=null;else if(!sr){var ii=xt*vr,cn=mr-Nt*mr,dn=Math.abs(pe-ii)>Math.abs(mn-cn);sr=dn?"x":"y"}var Ki=!sr||sr==="x",bn=!sr||sr==="y";Ki&&(xt=parseFloat(pe/vr)),bn&&(Nt=parseFloat((mr-mn)/mr)),Tn=!1,$.showAlpha||(ee=1),Pi()},Ui,$r),Pe?(yi(Pe),Hn(),nr=$.preferredFormat||F(Pe).getFormat(),zi(Pe)):Hn(),pt&&gn();function me(pe){return pe.data&&pe.data.ignore?(yi(a(pe.target).closest(".sp-thumb-el").data("color")),Pi()):(yi(a(pe.target).closest(".sp-thumb-el").data("color")),Pi(),$.hideAfterPaletteSelect&&(ri(!0),vn())),!1}var Me=n?"mousedown.spectrum":"click.spectrum touchstart.spectrum";Ue.delegate(".sp-thumb-el",Me,me),tn.delegate(".sp-thumb-el:nth-child(1)",Me,{ignore:!0},me)}function Pa(){if(Rt&&window.localStorage){try{var fe=window.localStorage[Rt].split(",#");fe.length>1&&(delete window.localStorage[Rt],a.each(fe,function(me,Me){zi(Me)}))}catch{}try{Fe=window.localStorage[Rt].split(";")}catch{}}}function zi(fe){if(Lt){var me=F(fe).toRgbString();if(!Ke[me]&&a.inArray(me,Fe)===-1)for(Fe.push(me);Fe.length>Pr;)Fe.shift();if(Rt&&window.localStorage)try{window.localStorage[Rt]=Fe.join(";")}catch{}}}function co(){var fe=[];if($.showPalette)for(var me=0;me<Fe.length;me++){var Me=F(Fe[me]).toRgbString();Ke[Me]||fe.push(Fe[me])}return fe.reverse().slice(0,$.maxSelectionSize)}function sa(){var fe=Tr(),me=a.map(Ie,function(Me,pe){return c(Me,fe,"sp-palette-row sp-palette-row-"+pe,$)});Pa(),Fe&&me.push(c(co(),fe,"sp-palette-row sp-palette-row-selection",$)),Ue.html(me.join(""))}function Ai(){if($.showInitial){var fe=Ve,me=Tr();tn.html(c([fe,me],me,"sp-palette-row-initial",$))}}function Ui(){(mr<=0||vr<=0||rt<=0)&&ni(),Be=!0,ke.addClass(Xe),sr=null,Ge.trigger("dragstart.spectrum",[Tr()])}function $r(){Be=!1,ke.removeClass(Xe),Ge.trigger("dragstop.spectrum",[Tr()])}function mi(){var fe=$e.val();if((fe===null||fe==="")&&ei)yi(null),ri(!0);else{var me=F(fe);me.isValid()?(yi(me),ri(!0)):$e.addClass("sp-validation-error")}}function La(){Ce?vn():gn()}function gn(){var fe=a.Event("beforeShow.spectrum");if(Ce){ni();return}if(Ge.trigger("beforeShow.spectrum",[Tr()]),!(re.beforeShow(Tr())===!1||fe.isDefaultPrevented())){d(),Ce=!0;var me=a(yr);me.bind("keydown.spectrum",Da),me.bind("click.spectrum",uo),a(window).bind("resize.spectrum",Gt),Et.addClass("sp-active"),ke.removeClass("sp-hidden"),ni(),Hn(),Ve=Tr(),Ai(),re.show(Ve),Ge.trigger("show.spectrum",[Ve])}}function Da(fe){fe.keyCode===27&&vn()}function uo(fe){fe.button!=2&&(Be||(ur?ri(!0):Mi(),vn()))}
1009function vn(){!Ce||pt||(Ce=!1,a(yr).unbind("keydown.spectrum",Da),a(yr).unbind("click.spectrum",uo),a(window).unbind("resize.spectrum",Gt),Et.removeClass("sp-active"),ke.addClass("sp-hidden"),re.hide(Tr()),Ge.trigger("hide.spectrum",[Tr()]))}function Mi(){yi(Ve,!0)}function yi(fe,me){if(F.equals(fe,Tr())){Hn();return}var Me,pe;!fe&&ei?Tn=!0:(Tn=!1,we=!fe,Me=F(fe),pe=Me.toHsv(),ot=pe.h%360/360,xt=pe.s,Nt=pe.v,ee=pe.a),Hn(),Me&&Me.isValid()&&!me&&(nr=$.preferredFormat||Me.getFormat())}function Tr(fe){return fe=fe||{},ei&&Tn?null:F.fromRatio({h:ot,s:xt,v:Nt,a:Math.round(ee*100)/100},{format:fe.format||nr})}function cs(){return!$e.hasClass("sp-validation-error")}function Pi(){Hn(),re.move(Tr()),Ge.trigger("move.spectrum",[Tr()])}function Hn(){$e.removeClass("sp-validation-error"),Ia();var fe=F.fromRatio({h:ot,s:1,v:1});Br.css("background-color",fe.toHexString());var me=nr;ee<1&&!(ee===0&&me==="name")&&(me==="hex"||me==="hex3"||me==="hex6"||me==="name")&&(me="rgb");var Me=Tr({format:me}),pe="";if(Ut.removeClass("sp-clear-display"),Ut.css("background-color","transparent"),!Me&&ei)Ut.addClass("sp-clear-display");else{var mn=Me.toHexString(),yn=Me.toRgbString();if(i||Me.alpha===1?Ut.css("background-color",yn):(Ut.css("background-color","transparent"),Ut.css("filter",Me.toFilter())),$.showAlpha){var ii=Me.toRgb();ii.a=0;var cn=F(ii).toRgbString(),dn="linear-gradient(left, "+cn+", "+mn+")";n?ie.css("filter",F(cn).toFilter({gradientType:1},mn)):(ie.css("background","-webkit-"+dn),ie.css("background","-moz-"+dn),ie.css("background","-ms-"+dn),ie.css("background","linear-gradient(to right, "+cn+", "+mn+")"))}pe=Me.toString(me)}$.showInput&&$e.val(pe),$.showPalette&&sa(),Ai()}function Ia(){var fe=xt,me=Nt;if(ei&&Tn)Qr.hide(),Ye.hide(),wr.hide();else{Qr.show(),Ye.show(),wr.show();var Me=fe*vr,pe=mr-me*mr;Me=Math.max(-V,Math.min(vr-V,Me-V)),pe=Math.max(-V,Math.min(mr-V,pe-V)),wr.css({top:pe+"px",left:Me+"px"});var mn=ee*dt;Qr.css({left:mn-Pt/2+"px"});var yn=ot*rt;Ye.css({top:yn-qt+"px"})}}function ri(fe){var me=Tr(),Me="",pe=we?!0:!F.equals(me,Ve);me&&(Me=me.toString(nr),!Ce&&zi(me)),Vn&&Ge.val(Me),fe&&pe&&(re.change(me),Ge.trigger("change",[me]))}function ni(){Ce&&(vr=Br.width(),mr=Br.height(),V=wr.height(),Vr.width(),rt=Vr.height(),qt=Ye.height(),dt=Sn.width(),Pt=Qr.width(),pt||(ke.css("position","absolute"),$.offset?ke.offset($.offset):ke.offset(m(ke,Ft))),Ia(),$.showPalette&&sa(),Ge.trigger("reflow.spectrum"))}function la(){Ge.show(),Ft.unbind("click.spectrum touchstart.spectrum"),ke.remove(),Et.remove(),e[qi.id]=null}function Wi(fe,me){if(fe===r)return a.extend({},$);if(me===r)return $[fe];$[fe]=me,fe==="preferredFormat"&&(nr=$.preferredFormat),vi()}function Zi(){Lr=!1,Ge.attr("disabled",!1),Ft.removeClass("sp-disabled")}function ca(){vn(),Lr=!0,Ge.attr("disabled",!0),Ft.addClass("sp-disabled")}function ja(fe){$.offset=fe,ni()}lo();var qi={show:gn,hide:vn,toggle:La,reflow:ni,option:Wi,enable:Zi,disable:ca,offset:ja,set:function(fe){yi(fe),ri()},get:Tr,destroy:la,container:ke};return qi.id=e.push(qi)-1,qi}function m(U,tt){for(var $=tt[0],pt=U[0],Lt=pt.parentElement,Rt=$.getBoundingClientRect(),Jt=pt.offsetWidth,re=pt.offsetHeight,Gt={top:0,left:0,width:$.offsetWidth,height:$.offsetHeight};$&&(Gt.top+=$.offsetTop-$.scrollTop,Gt.left+=$.offsetLeft-$.scrollLeft,!($===Lt||!Lt.contains($.offsetParent)));)$=$.offsetParent;return Rt.right+Jt>window.innerWidth-window.scrollX&&Rt.right-Jt>0&&(Gt.left-=Jt-Gt.width),Rt.bottom+re<window.innerHeight-window.scrollY?Gt.top+=Gt.height:Gt.top-=re,Gt}function y(){}function x(U){U.stopPropagation()}function w(U,tt){var $=Array.prototype.slice,pt=$.call(arguments,2);return function(){return U.apply(tt,pt.concat($.call(arguments)))}}function k(U,tt,$,pt){tt=tt||function(){},$=$||function(){},pt=pt||function(){};var Lt=document,Rt=!1,Jt={},re=0,Gt=0,Ce="ontouchstart"in window,Be={};Be.selectstart=we,Be.dragstart=we,Be["touchmove mousemove"]=vr,Be["touchend mouseup"]=V;function we(rt){rt.stopPropagation&&rt.stopPropagation(),rt.preventDefault&&rt.preventDefault(),rt.returnValue=!1}function vr(rt){if(Rt){if(n&&Lt.documentMode<9&&!rt.button)return V();var dt=rt&&rt.touches&&rt.touches[0],Pt=dt&&dt.pageX||rt.pageX,qt=dt&&dt.pageY||rt.pageY,ot=Math.max(0,Math.min(Pt-Jt.left,Gt)),xt=Math.max(0,Math.min(qt-Jt.top,re));Ce&&we(rt),tt.apply(U,[ot,xt,rt])}}function mr(rt){var dt=rt.which?rt.which==3:rt.button==2;!dt&&!Rt&&$.apply(U,arguments)!==!1&&(Rt=!0,re=a(U).height(),Gt=a(U).width(),Jt=a(U).offset(),a(Lt).bind(Be),a(Lt.body).addClass("sp-dragging"),vr(rt),we(rt))}function V(){Rt&&(a(Lt).unbind(Be),a(Lt.body).removeClass("sp-dragging"),setTimeout(function(){pt.apply(U,arguments)}
1009,0)),Rt=!1}a(U).bind("touchstart mousedown",mr)}function S(U,tt,$){var pt;return function(){var Lt=this,Rt=arguments,Jt=function(){pt=null,U.apply(Lt,Rt)};pt||(pt=setTimeout(Jt,tt))}}function A(){return a.fn.spectrum.inputTypeColorSupport()}var L="spectrum.id";a.fn.spectrum=function(U,tt){if(typeof U=="string"){var $=this,pt=Array.prototype.slice.call(arguments,1);return this.each(function(){var Lt=e[a(this).data(L)];if(Lt){var Rt=Lt[U];if(!Rt)throw new Error("Spectrum: no such method: '"+U+"'");U=="get"?$=Lt.get():U=="container"?$=Lt.container:U=="option"?$=Lt.option.apply(Lt,pt):U=="destroy"?(Lt.destroy(),a(this).removeData(L)):Rt.apply(Lt,pt)}}),$}return this.spectrum("destroy").each(function(){var Lt=a.extend({},U,a(this).data()),Rt=g(this,Lt);a(this).data(L,Rt.id)})},a.fn.spectrum.load=!0,a.fn.spectrum.loadOpts={},a.fn.spectrum.draggable=k,a.fn.spectrum.defaults=t,a.fn.spectrum.inputTypeColorSupport=function U(){if(typeof U._cachedResult>"u"){var tt=a("<input type='color'/>")[0];U._cachedResult=tt.type==="color"&&tt.value!==""}return U._cachedResult},a.spectrum={},a.spectrum.localization={},a.spectrum.palettes={},a.fn.spectrum.processNativeColorInputs=function(){var U=a("input[type=color]");U.length&&!A()&&U.spectrum({preferredFormat:"hex6"})};var D=/^[\s,#]+/,W=/\s+$/,j=0,et=Math,z=et.round,B=et.min,X=et.max,Z=et.random,F=function(U,tt){if(U=U||"",tt=tt||{},U instanceof F)return U;if(!(this instanceof F))return new F(U,tt);var $=st(U);this._originalInput=U,this._r=$.r,this._g=$.g,this._b=$.b,this._a=$.a,this._roundA=z(100*this._a)/100,this._format=tt.format||$.format,this._gradientType=tt.gradientType,this._r<1&&(this._r=z(this._r)),this._g<1&&(this._g=z(this._g)),this._b<1&&(this._b=z(this._b)),this._ok=$.ok,this._tc_id=j++};F.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 U=this.toRgb();return(U.r*299+U.g*587+U.b*114)/1e3},getLuminance:function(){var U=this.toRgb(),tt,$,pt,Lt,Rt,Jt;return tt=U.r/255,$=U.g/255,pt=U.b/255,tt<=.03928?Lt=tt/12.92:Lt=Math.pow((tt+.055)/1.055,2.4),$<=.03928?Rt=$/12.92:Rt=Math.pow(($+.055)/1.055,2.4),pt<=.03928?Jt=pt/12.92:Jt=Math.pow((pt+.055)/1.055,2.4),.2126*Lt+.7152*Rt+.0722*Jt},setAlpha:function(U){return this._a=ce(U),this._roundA=z(100*this._a)/100,this},toHsv:function(){var U=Q(this._r,this._g,this._b);return{h:U.h*360,s:U.s,v:U.v,a:this._a}},toHsvString:function(){var U=Q(this._r,this._g,this._b),tt=z(U.h*360),$=z(U.s*100),pt=z(U.v*100);return this._a==1?"hsv("+tt+", "+$+"%, "+pt+"%)":"hsva("+tt+", "+$+"%, "+pt+"%, "+this._roundA+")"},toHsl:function(){var U=Ct(this._r,this._g,this._b);return{h:U.h*360,s:U.s,l:U.l,a:this._a}},toHslString:function(){var U=Ct(this._r,this._g,this._b),tt=z(U.h*360),$=z(U.s*100),pt=z(U.l*100);return this._a==1?"hsl("+tt+", "+$+"%, "+pt+"%)":"hsla("+tt+", "+$+"%, "+pt+"%, "+this._roundA+")"},toHex:function(U){return gt(this._r,this._g,this._b,U)},toHexString:function(U){return"#"+this.toHex(U)},toHex8:function(){return St(this._r,this._g,this._b,this._a)},toHex8String:function(){return"#"+this.toHex8()},toRgb:function(){return{r:z(this._r),g:z(this._g),b:z(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+z(this._r)+", "+z(this._g)+", "+z(this._b)+")":"rgba("+z(this._r)+", "+z(this._g)+", "+z(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:z(P(this._r,255)*100)+"%",g:z(P(this._g,255)*100)+"%",b:z(P(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+z(P(this._r,255)*100)+"%, "+z(P(this._g,255)*100)+"%, "+z(P(this._b,255)*100)+"%)":"rgba("+z(P(this._r,255)*100)+"%, "+z(P(this._g,255)*100)+"%, "+z(P(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:ve[gt(this._r,this._g,this._b,!0)]||!1},toFilter:function(U){var tt="#"+St(this._r,this._g,this._b,this._a),$=tt,pt=this._gradientType?"GradientType = 1, ":"";if(U){var Lt=F(U);$=Lt.toHex8String()}return"progid:DXImageTransform.Microsoft.gradient("+pt+"startColorstr="+tt+",endColorstr="+$+")"},toString:function(U){var tt=!!U;U=U||this._format;var $=!1,pt=this._a<1&&this._a>=0,Lt=!tt&&pt&&(U==="hex"||U==="hex6"||U==="hex3"||U==="name");return Lt?U==="name"&&this._a===0?this.toName():this.toRgbString():(U==="rgb"&&($=this.toRgbString()),U==="prgb"&&($=this.toPercentageRgbString()),(U==="hex"||U==="hex6")&&($=this.toHexString()),U==="hex3"&&($=this.toHexString(!0)),U==="hex8"&&($=this.toHex8String()),U==="name"&&($=this.toName()),U==="hsl"&&($=this.toHslString()),U==="hsv"&&($=this.toHsvString()),$||this.toHexString())},_applyModification:function(U,tt){var $=U.apply(null,[this].concat([].slice.call(tt)));return this._r=$._r,this._g=$._g,this._b=$._b,this.setAlpha($._a),this},lighten:function(){return this._applyModification(Bt,arguments)},brighten:function(){return this._applyModification(se,arguments)},darken:function(){return this._applyModification(ue,arguments)},desaturate:function(){return this._applyModification(wt,arguments)},saturate:function(){return this._applyModification(mt,arguments)},greyscale:function(){return this._applyModification(It,arguments)},spin:function(){return this._applyModification(ne,arguments)},_applyCombination:function(U,tt){return U.apply(null,[this].concat([].slice.call(tt)))},analogous:function(){return this._applyCombination(Kt,arguments)},complement:function(){return this._applyCombination(kt,arguments)},monochromatic:function(){return this._applyCombination(le,arguments)},splitcomplement:function(){return this._applyCombination(zt,arguments)},triad:function(){return this._applyCombination(Ot,arguments)},tetrad:function(){return this._applyCombination(Mt,arguments)}},F.fromRatio=function(U,tt){if(typeof U=="object"){var $={};for(var pt in U)U.hasOwnProperty(pt)&&(pt==="a"?$[pt]=U[pt]:$[pt]=yt(U[pt]));U=$}return F(U,tt)};function st(U){var tt={r:0,g:0,b:0},$=1,pt=!1,Lt=!1;return typeof U=="string"&&(U=Te(U)),typeof U=="object"&&(U.hasOwnProperty("r")&&U.hasOwnProperty("g")&&U.hasOwnProperty("b")?(tt=q(U.r,U.g,U.b),pt=!0,Lt=String(U.r).substr(-1)==="%"?"prgb":"rgb"):U.hasOwnProperty("h")&&U.hasOwnProperty("s")&&U.hasOwnProperty("v")?(U.s=yt(U.s),U.v=yt(U.v),tt=J(U.h,U.s,U.v),pt=!0,Lt="hsv"):U.hasOwnProperty("h")&&U.hasOwnProperty("s")&&U.hasOwnProperty("l")&&(U.s=yt(U.s),U.l=yt(U.l),tt=_(U.h,U.s,U.l),pt=!0,Lt="hsl"),U.hasOwnProperty("a")&&($=U.a)),$=ce($),{ok:pt,format:U.format||Lt,r:B(255,X(tt.r,0)),g:B(255,X(tt.g,0)),b:B(255,X(tt.b,0)),a:$}}function q(U,tt,$){return{r:P(U,255)*255,g:P(tt,255)*255,b:P($,255)*255}}function Ct(U,tt,$){U=P(U,255),tt=P(tt,255),$=P($,255);var pt=X(U,tt,$),Lt=B(U,tt,$),Rt,Jt,re=(pt+Lt)/2;if(pt==Lt)Rt=Jt=0;else{var Gt=pt-Lt;switch(Jt=re>.5?Gt/(2-pt-Lt):Gt/(pt+Lt),pt){case U:Rt=(tt-$)/Gt+(tt<$?6:0);break;case tt:Rt=($-U)/Gt+2;break;case $:Rt=(U-tt)/Gt+4;break}
vendor: 5,235 bytes, line 1009
1009Rt/=6}return{h:Rt,s:Jt,l:re}}function _(U,tt,$){var pt,Lt,Rt;U=P(U,360),tt=P(tt,100),$=P($,100);function Jt(Ce,Be,we){return we<0&&(we+=1),we>1&&(we-=1),we<1/6?Ce+(Be-Ce)*6*we:we<1/2?Be:we<2/3?Ce+(Be-Ce)*(2/3-we)*6:Ce}if(tt===0)pt=Lt=Rt=$;else{var re=$<.5?$*(1+tt):$+tt-$*tt,Gt=2*$-re;pt=Jt(Gt,re,U+1/3),Lt=Jt(Gt,re,U),Rt=Jt(Gt,re,U-1/3)}return{r:pt*255,g:Lt*255,b:Rt*255}}function Q(U,tt,$){U=P(U,255),tt=P(tt,255),$=P($,255);var pt=X(U,tt,$),Lt=B(U,tt,$),Rt,Jt,re=pt,Gt=pt-Lt;if(Jt=pt===0?0:Gt/pt,pt==Lt)Rt=0;else{switch(pt){case U:Rt=(tt-$)/Gt+(tt<$?6:0);break;case tt:Rt=($-U)/Gt+2;break;case $:Rt=(U-tt)/Gt+4;break}Rt/=6}return{h:Rt,s:Jt,v:re}}function J(U,tt,$){U=P(U,360)*6,tt=P(tt,100),$=P($,100);var pt=et.floor(U),Lt=U-pt,Rt=$*(1-tt),Jt=$*(1-Lt*tt),re=$*(1-(1-Lt)*tt),Gt=pt%6,Ce=[$,Jt,Rt,Rt,re,$][Gt],Be=[re,$,$,Jt,Rt,Rt][Gt],we=[Rt,Rt,re,$,$,Jt][Gt];return{r:Ce*255,g:Be*255,b:we*255}}function gt(U,tt,$,pt){var Lt=[K(z(U).toString(16)),K(z(tt).toString(16)),K(z($).toString(16))];return pt&&Lt[0].charAt(0)==Lt[0].charAt(1)&&Lt[1].charAt(0)==Lt[1].charAt(1)&&Lt[2].charAt(0)==Lt[2].charAt(1)?Lt[0].charAt(0)+Lt[1].charAt(0)+Lt[2].charAt(0):Lt.join("")}function St(U,tt,$,pt){var Lt=[K(z(U).toString(16)),K(z(tt).toString(16)),K(z($).toString(16)),K(ut(pt))];return Lt.join("")}F.equals=function(U,tt){return!U||!tt?!1:F(U).toRgbString()==F(tt).toRgbString()},F.random=function(){return F.fromRatio({r:Z(),g:Z(),b:Z()})};function wt(U,tt){tt=tt===0?0:tt||10;var $=F(U).toHsl();return $.s-=tt/100,$.s=H($.s),F($)}function mt(U,tt){tt=tt===0?0:tt||10;var $=F(U).toHsl();return $.s+=tt/100,$.s=H($.s),F($)}function It(U){return F(U).desaturate(100)}function Bt(U,tt){tt=tt===0?0:tt||10;var $=F(U).toHsl();return $.l+=tt/100,$.l=H($.l),F($)}function se(U,tt){tt=tt===0?0:tt||10;var $=F(U).toRgb();return $.r=X(0,B(255,$.r-z(255*-(tt/100)))),$.g=X(0,B(255,$.g-z(255*-(tt/100)))),$.b=X(0,B(255,$.b-z(255*-(tt/100)))),F($)}function ue(U,tt){tt=tt===0?0:tt||10;var $=F(U).toHsl();return $.l-=tt/100,$.l=H($.l),F($)}function ne(U,tt){var $=F(U).toHsl(),pt=(z($.h)+tt)%360;return $.h=pt<0?360+pt:pt,F($)}function kt(U){var tt=F(U).toHsl();return tt.h=(tt.h+180)%360,F(tt)}function Ot(U){var tt=F(U).toHsl(),$=tt.h;return[F(U),F({h:($+120)%360,s:tt.s,l:tt.l}),F({h:($+240)%360,s:tt.s,l:tt.l})]}function Mt(U){var tt=F(U).toHsl(),$=tt.h;return[F(U),F({h:($+90)%360,s:tt.s,l:tt.l}),F({h:($+180)%360,s:tt.s,l:tt.l}),F({h:($+270)%360,s:tt.s,l:tt.l})]}function zt(U){var tt=F(U).toHsl(),$=tt.h;return[F(U),F({h:($+72)%360,s:tt.s,l:tt.l}),F({h:($+216)%360,s:tt.s,l:tt.l})]}function Kt(U,tt,$){tt=tt||6,$=$||30;var pt=F(U).toHsl(),Lt=360/$,Rt=[F(U)];for(pt.h=(pt.h-(Lt*tt>>1)+720)%360;--tt;)pt.h=(pt.h+Lt)%360,Rt.push(F(pt));return Rt}function le(U,tt){tt=tt||6;for(var $=F(U).toHsv(),pt=$.h,Lt=$.s,Rt=$.v,Jt=[],re=1/tt;tt--;)Jt.push(F({h:pt,s:Lt,v:Rt})),Rt=(Rt+re)%1;return Jt}F.mix=function(U,tt,$){$=$===0?0:$||50;var pt=F(U).toRgb(),Lt=F(tt).toRgb(),Rt=$/100,Jt=Rt*2-1,re=Lt.a-pt.a,Gt;Jt*re==-1?Gt=Jt:Gt=(Jt+re)/(1+Jt*re),Gt=(Gt+1)/2;var Ce=1-Gt,Be={r:Lt.r*Gt+pt.r*Ce,g:Lt.g*Gt+pt.g*Ce,b:Lt.b*Gt+pt.b*Ce,a:Lt.a*Rt+pt.a*(1-Rt)};return F(Be)},F.readability=function(U,tt){var $=F(U),pt=F(tt);return(Math.max($.getLuminance(),pt.getLuminance())+.05)/(Math.min($.getLuminance(),pt.getLuminance())+.05)},F.isReadable=function(U,tt,$){var pt=F.readability(U,tt),Lt,Rt;switch(Rt=!1,Lt=Re($),Lt.level+Lt.size){case"AAsmall":case"AAAlarge":Rt=pt>=4.5;break;case"AAlarge":Rt=pt>=3;break;case"AAAsmall":Rt=pt>=7;break}return Rt},F.mostReadable=function(U,tt,$){var pt=null,Lt=0,Rt,Jt,re,Gt;$=$||{},Jt=$.includeFallbackColors,re=$.level,Gt=$.size;for(var Ce=0;Ce<tt.length;Ce++)Rt=F.readability(U,tt[Ce]),Rt>Lt&&(Lt=Rt,pt=F(tt[Ce]));return F.isReadable(U,pt,{level:re,size:Gt})||!Jt?pt:($.includeFallbackColors=!1,F.mostReadable(U,["#fff","#000"],$))};var Zt=F.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:"90ee9
10090",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"},ve=F.hexNames=xe(Zt);function xe(U){var tt={};for(var $ in U)U.hasOwnProperty($)&&(tt[U[$]]=$);return tt}function ce(U){return U=parseFloat(U),(isNaN(U)||U<0||U>1)&&(U=1),U}function P(U,tt){ct(U)&&(U="100%");var $=_t(U);return U=B(tt,X(0,parseFloat(U))),$&&(U=parseInt(U*tt,10)/100),et.abs(U-tt)<1e-6?1:U%tt/parseFloat(tt)}function H(U){return B(1,X(0,U))}function Y(U){return parseInt(U,16)}function ct(U){return typeof U=="string"&&U.indexOf(".")!=-1&&parseFloat(U)===1}function _t(U){return typeof U=="string"&&U.indexOf("%")!=-1}function K(U){return U.length==1?"0"+U:""+U}function yt(U){return U<=1&&(U=U*100+"%"),U}function ut(U){return Math.round(parseFloat(U)*255).toString(16)}function de(U){return Y(U)/255}var Ae=(function(){var U="[-\\+]?\\d+%?",tt="[-\\+]?\\d*\\.\\d+%?",$="(?:"+tt+")|(?:"+U+")",pt="[\\s|\\(]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")\\s*\\)?",Lt="[\\s|\\(]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")\\s*\\)?";return{rgb:new RegExp("rgb"+pt),rgba:new RegExp("rgba"+Lt),hsl:new RegExp("hsl"+pt),hsla:new RegExp("hsla"+Lt),hsv:new RegExp("hsv"+pt),hsva:new RegExp("hsva"
1009+Lt),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})$/,hex8:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function Te(U){U=U.replace(D,"").replace(W,"").toLowerCase();var tt=!1;if(Zt[U])U=Zt[U],tt=!0;else if(U=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var $;return($=Ae.rgb.exec(U))?{r:$[1],g:$[2],b:$[3]}:($=Ae.rgba.exec(U))?{r:$[1],g:$[2],b:$[3],a:$[4]}:($=Ae.hsl.exec(U))?{h:$[1],s:$[2],l:$[3]}:($=Ae.hsla.exec(U))?{h:$[1],s:$[2],l:$[3],a:$[4]}:($=Ae.hsv.exec(U))?{h:$[1],s:$[2],v:$[3]}:($=Ae.hsva.exec(U))?{h:$[1],s:$[2],v:$[3],a:$[4]}:($=Ae.hex8.exec(U))?{r:Y($[1]),g:Y($[2]),b:Y($[3]),a:de($[4]),format:tt?"name":"hex8"}:($=Ae.hex6.exec(U))?{r:Y($[1]),g:Y($[2]),b:Y($[3]),format:tt?"name":"hex"}:($=Ae.hex3.exec(U))?{r:Y($[1]+""+$[1]),g:Y($[2]+""+$[2]),b:Y($[3]+""+$[3]),format:tt?"name":"hex"}:!1}function Re(U){var tt,$;return U=U||{level:"AA",size:"small"},tt=(U.level||"AA").toUpperCase(),$=(U.size||"small").toLowerCase(),tt!=="AA"&&tt!=="AAA"&&(tt="AA"),$!=="small"&&$!=="large"&&($="small"),{level:tt,size:$}}window.tinycolor=F,a(function(){a.fn.spectrum.load&&a.fn.spectrum.processNativeColorInputs()})}var Uk=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),yx=(function(a){Uk(r,a);function r(t){t===void 0&&(t={});var e=a.call(this,t)||this,n=t.ppfx||"";return e.opts=t,e.ppfx=n,e.em=t.target||{},!t.onChange&&e.listenTo(e.model,"change:value",e.handleModelChange),e}return r.prototype.template=function(){return'<span class="'.concat(this.holderClass(),'"></span>')},r.prototype.inputClass=function(){return"".concat(this.ppfx,"field")},r.prototype.holderClass=function(){return"".concat(this.ppfx,"input-holder")},r.prototype.elementUpdated=function(){this.model.trigger("el:change")},r.prototype.setValue=function(t,e){var n=this.model,i=t||n.get("defaults"),o=this.getInputEl();o&&(o.value=i)},r.prototype.handleModelChange=function(t,e,n){this.setValue(e,n)},r.prototype.handleChange=function(t){t.stopPropagation();var e=this.getInputEl().value;this.__onInputChange(e),this.elementUpdated()},r.prototype.__onInputChange=function(t){this.model.set({value:t},{fromInput:1})},r.prototype.getInputEl=function(){if(!this.inputEl){var t=this,e=t.model,n=t.opts,i=n.type||"text",o=e.get("placeholder")||e.get("defaults")||e.get("default")||"";this.inputEl=(0,De.default)('<input type="'.concat(i,'" placeholder="').concat(o,'">'))}return this.inputEl.get(0)},r.prototype.render=function(){this.inputEl=null;var t=this.$el;return t.addClass(this.inputClass()),t.html(this.template()),t.find(".".concat(this.holderClass())).append(this.getInputEl()),this},r})(Ze);const Nf=yx;yx.prototype.events={change:"handleChange"};var Wk=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Vc=function(){return Vc=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Vc.apply(this,arguments)};De.default&&zk(De.default);var iu=function(a){var r=a.getFormat()==="name"&&a.toName(),t=a.getAlpha()==1?a.toHexString():a.toRgbString();return r||t.replace(/ /g,"")},Zk=(function(a){Wk(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.template=function(){var t=this.ppfx;return` 1010 <div class="`.concat(this.holderClass(),`"></div> 1011 <div class="`).concat(t,`field-colorp"> 1012 <div class="`).concat(t,`field-colorp-c" data-colorp-c> 1013 <div class="`).concat(t,`checker-bg"></div> 1014 </div> 1015 </div> 1016 `)},r.prototype.inputClass=function(){var t=this.ppfx;return"".concat(t,"field ").concat(t,"field-color")},r.prototype.holderClass=function(){return"".concat(this.ppfx,"input-holder")},r.prototype.remove=function(){return a.prototype.remove.call(this),this.colorEl.spectrum("destroy"),this},r.prototype.handleChange=function(t){t.stopPropagation();var e=t.target.value;(0,E.isUndefined)(e)||this.__onInputChange(e)},r.prototype.__onInputChange=function(t){var e=this,n=e.model,i=e.opts,o=i.onChange,s=t,c=this.getColorEl();
1016if(c){c.spectrum("set",s);var d=c.spectrum("get"),f=s&&iu(d);f&&(s=f)}o?o(s):n.set({value:s},{fromInput:1})},r.prototype.setValue=function(t,e){e===void 0&&(e={});var n=this.model,i=(0,E.isUndefined)(e.def)?n.get("defaults"):e.def,o=(0,E.isUndefined)(t)?(0,E.isUndefined)(i)?"":i:t,s=this.getInputEl(),c=this.getColorEl(),d=o!="none"?o:"";s.value=o,c.get(0).style.backgroundColor=d,(e.fromTarget||e.fromInput&&!e.avoidStore)&&(c.spectrum("set",d),this.noneColor=o=="none",this.movedColor=d)},r.prototype.getColorEl=function(){var t=this;if(!this.colorEl){var e=this,n=e.em,i=e.model,o=e.opts,s=this.ppfx,c=o.onChange,d=(0,De.default)('<div class="'.concat(this.ppfx,'field-color-picker"></div>')),f=d.get(0).style,g=n&&n.getConfig&&n.getConfig().colorPicker||{};this.movedColor="";var m=!1,y;this.$el.find("[data-colorp-c]").append(d);var x=function(w,k){k===void 0&&(k=!0),c?c(w,!k):(k&&i.setValueFromInput(0,!1),i.setValueFromInput(w,k))};d.spectrum(Vc(Vc(Vc({color:i.getValue()||!1,containerClassName:"".concat(s,"one-bg ").concat(s,"two-color ").concat(s,"editor-sp"),maxSelectionSize:8,showPalette:!0,showAlpha:!0,chooseText:"Ok",cancelText:"⨯",palette:[]},g),i.get("colorPicker")||{}),{move:function(w){var k=iu(w);t.movedColor=k,f.backgroundColor=k,x(k,!1)},change:function(w){m=!0;var k=iu(w);f.backgroundColor=k,x(k),t.noneColor=!1},show:function(w){m=!1,t.movedColor="",y=c?i.getValue({noDefault:!0}):iu(w)},hide:function(){!m&&(y||c)&&(t.noneColor&&(y=""),f.backgroundColor=y,d.spectrum("set",y),x(y,!1))}})),n&&n.on&&this.listenTo(n,te.selected,function(){t.movedColor&&x(t.movedColor),m=!0,t.movedColor="",d.spectrum("hide")}),this.colorEl=d}return this.colorEl},r.prototype.render=function(){return Nf.prototype.render.call(this),this.getColorEl(),this},r})(Nf);const bx=Zk;var qk=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Kk=(function(a){qk(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.templateInput=function(){return""},r.prototype.getInputEl=function(){if(!this.input){var t=this.model,e=this.getModelValue(),n=new bx({model:t,target:this.config.em,contClass:this.ppfx+"field-color",ppfx:this.ppfx}),i=n.render();i.setValue(e,{fromTarget:1}),this.input=i.el}return this.input},r})(Ma);const Gk=Kk;var Yk=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),xx=(function(a){Yk(r,a);function r(t){t===void 0&&(t={});var e=a.call(this,t)||this;return(0,E.bindAll)(e,"moveIncrement","upIncrement"),e.doc=document,e.listenTo(e.model,"change:unit",e.handleModelChange),e}return r.prototype.template=function(){var t=this.ppfx;return`
1017 <span class="`.concat(t,`input-holder"></span> 1018 <span class="`).concat(t,`field-units"></span> 1019 <div class="`).concat(t,`field-arrows" data-arrows> 1020 <div class="`).concat(t,`field-arrow-u" data-arrow-up></div> 1021 <div class="`).concat(t,`field-arrow-d" data-arrow-down></div> 1022 </div> 1023 `)},r.prototype.inputClass=function(){var t=this.ppfx;return this.opts.contClass||"".concat(t,"field ").concat(t,"field-integer")},r.prototype.setValue=function(t,e){var n=e||{},i=this.validateInputValue(t,{deepCheck:1}),o={value:i.value,unit:""};(i.unit||i.force)&&(o.unit=i.unit),this.model.set(o,n),n.silent&&this.handleModelChange()},r.prototype.handleChange=function(t){t.stopPropagation(),this.setValue(this.getInputEl().value),this.elementUpdated()},r.prototype.handleUnitChange=function(t){t.stopPropagation();var e=this.getUnitEl().value;this.model.set("unit",e),this.elementUpdated()},r.prototype.handleKeyDown=function(t){t.key==="ArrowUp"&&(t.preventDefault(),this.upArrowClick()),t.key==="ArrowDown"&&(t.preventDefault(),this.downArrowClick())},r.prototype.elementUpdated=function(){this.model.trigger("el:change")},r.prototype.handleModelChange=function(){var t=this.model;this.getInputEl().value=t.get("value");var e=this.getUnitEl();e&&(e.value=t.get("unit")||"")},r.prototype.getUnitEl=function(){if(!this.unitEl){var t=this.model,e=t.get("units")||[];if(e.length){var n=['<option value="" disabled hidden>-</option>'];e.forEach(function(o){var s=o==t.get("unit")?"selected":"";n.push("<option ".concat(s,">").concat(o,"</option>"))});var i=document.createElement("div");i.innerHTML='<select class="'.concat(this.ppfx,'input-unit">').concat(n.join(""),"</select>"),this.unitEl=i.firstChild}}return this.unitEl},r.prototype.upArrowClick=function(){var t=this.model,e=t.get("step"),n=parseFloat(this.getInputEl().value);this.setValue(this.normalizeValue(n+e)),this.elementUpdated()},r.prototype.downArrowClick=function(){var t=this.model,e=t.get("step"),n=parseFloat(this.getInputEl().value);this.setValue(this.normalizeValue(n-e)),this.elementUpdated()},r.prototype.downIncrement=function(t){t.preventDefault(),this.moved=!1;var e=this.model.get("value")||0;e=this.normalizeValue(e),this.current={y:t.pageY,val:e},or(this.doc,"mousemove",this.moveIncrement),or(this.doc,"mouseup",this.upIncrement)},r.prototype.moveIncrement=function(t){this.moved=!0;var e=this.model,n=e.get("step"),i=this.current,o=this.normalizeValue(i.val+(i.y-t.pageY)*n),s=this.validateInputValue(o),c=s.value,d=s.unit;return this.prValue=c,e.set({value:c,unit:d},{avoidStore:1}),!1},r.prototype.upIncrement=function(){var t=this.model,e=t.get("step");if(gr(this.doc,"mouseup",this.upIncrement),gr(this.doc,"mousemove",this.moveIncrement),this.prValue&&this.moved){var n=this.prValue-e;t.set("value",n,{avoidStore:1}).set("value",n+e),this.elementUpdated()}},r.prototype.normalizeValue=function(t,e){e===void 0&&(e=0);var n=this.model,i=n.get("step"),o=0;if(isNaN(t))return e;if(t=parseFloat(t),Math.floor(t)!==t){var s=i.toString().split(".")[1];o=s?s.length:0}return o?parseFloat(t.toFixed(o)):t},r.prototype.validateInputValue=function(t,e){e===void 0&&(e={});var n=0,i=e||{},o=this.model,s="",c=(0,E.isUndefined)(t)?s:t,d=e.units||o.get("units")||[],f=o.get("unit")||d.length&&d[0]||"",g=(0,E.isUndefined)(e.max)?o.get("max"):e.max,m=(0,E.isUndefined)(e.min)?o.get("min"):e.min,y=!!o.get("limitlessMax"),x=!!o.get("limitlessMin");if(i.deepCheck){var w=o.get("fixedValues")||[];if(c===""&&(f=""),c){var k=new RegExp("^"+w.join("|"),"g");if(w.length&&k.test(c))c=c.match(k)[0],f="",n=1;else{var S=c+"";c+="",c=parseFloat(c.replace(",",".")),c=isNaN(c)?s:c;var A=S.replace(c,"");(0,E.indexOf)(d,A)>=0&&(f=A)}}}return!isNaN(c)&&c!==""&&(!y&&!(0,E.isUndefined)(g)&&g!==""&&(c=c>g?g:c),!x&&!(0,E.isUndefined)(m)&&m!==""&&(c=c<m?m:c)),{force:n,value:c,unit:f}},r.prototype.render=function(){Nf.prototype.render.call(this),this.unitEl=null;var t=this.getUnitEl();return t&&this.$el.find(".".concat(this.ppfx,"field-units")).get(0).appendChild(t),this},r})(Nf);const wx=xx;xx.prototype.events={"change input":"handleChange","change select":"handleUnit
1023Change","click [data-arrow-up]":"upArrowClick","click [data-arrow-down]":"downArrowClick","mousedown [data-arrows]":"downIncrement",keydown:"handleKeyDown"};var Xk=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Jk=(function(a){Xk(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.getValueForTarget=function(){var t=this.model,e=t.attributes,n=e.value,i=e.unit;return!(0,E.isUndefined)(n)&&n!==""?n+i:t.get("default")},r.prototype.getInputEl=function(){if(!this.input){var t=this,e=t.ppfx,n=t.model,i=this.getModelValue(),o=new wx({contClass:"".concat(e,"field-int"),type:"number",model:n,ppfx:e});o.render(),this.$input=o.inputEl,this.$unit=o.unitEl,n.set("value",i,{fromTarget:!0}),this.$input.val(i),this.input=o.el}return this.input},r})(Ma);const Qk=Jk;var tS=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),eS=(function(a){tS(r,a);function r(t){t===void 0&&(t={});var e=a.call(this,t)||this;return e.listenTo(e.model,"change:options",e.rerender),e}return r.prototype.templateInput=function(){var t=this,e=t.ppfx,n=t.clsField;return'<div class="'.concat(n,`"> 1024 <div data-input></div> 1025 <div class="`).concat(e,`sel-arrow"> 1026 <div class="`).concat(e,`d-s-arrow"></div> 1027 </div> 1028 </div>`)},r.prototype.getInputEl=function(){if(!this.$input){var t=this,e=t.model,n=t.em,i=e.get("name"),o=e.get("options")||[],s=[],c="<select>";o.forEach(function(g){var m="",y,x,w;(0,E.isString)(g)?(y=g,x=g):(y=g.name||g.label||g.value,x="".concat((0,E.isUndefined)(g.value)?g.id:g.value).replace(/"/g,"""),w=g.style?g.style.replace(/"/g,"""):"",m+=w?' style="'.concat(w,'"'):"");var k=n.t("traitManager.traits.options.".concat(i,".").concat(x))||y;c+='<option value="'.concat(x,'"').concat(m,">").concat(k,"</option>"),s.push(x)}),c+="</select>",this.$input=(0,De.default)(c);var d=e.getTargetValue(),f=s.indexOf(d)>=0?d:e.get("default");!(0,E.isUndefined)(f)&&this.$input.val(f)}return this.$input.get(0)},r})(Ma);const rS=eS;var nS=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),_x=(function(a){nS(r,a);function r(t,e,n){t===void 0&&(t={}),n===void 0&&(n=!1);var i=a.call(this,t)||this;return i.itemsView="",i.itemType="type",i.reuseView=!1,i.config=e||t.config||{},n&&i.listenTo(i.collection,"add",i.addTo),i.items=[],i}return r.prototype.addTo=function(t){this.add(t)},r.prototype.itemViewNotFound=function(t){var e=this,n=e.config,i=e.ns,o=n.em,s="".concat(i?"[".concat(i,"]: "):"","'").concat(t,"' type not found");o&&o.logWarning(s)},r.prototype.add=function(t,e){var n=this,i=n.config,o=n.reuseView,s=n.items,c=this.itemsView||{},d=["button","checkbox","color","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"],f=e||null,g=this.itemView,m=t.get(this.itemType),y;c[m]?g=c[m]:m&&!c[m]&&!(0,E.includes)(d,m)&&this.itemViewNotFound(m),t.view&&o?y=t.view:y=new g({model:t,config:i},i),s&&s.push(y);var x=y.render().el;f?f.appendChild(x):this.$el.append(x)},r.prototype.render=function(){var t=document.createDocumentFragment();return this.clearItems(),this.$el.empty(),this.collection.length&&this.collection.each(function(e){this.add(e,t)},this),this.$el.append(t),this.onRender(),this},r.prototype.onRender=function(){},r.prototype.onRemoveBefore=function(t,e){},r.prototype.onRemove=function(t,e){},r.prototype.remove=function(t){t===void 0&&(t={});var e=this.items;return this.onRemoveBefore(e,t),this.clearItems(),a.prototype.remove.call(this),this.onRemove(e,t),this},r.prototype.clearItems=function(){this.items},r})(Ze);const Cx=_x;_x.prototype.itemView="";
1028var iS=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),ry="data-categories",ny="data-no-categories",kx=(function(a){iS(r,a);function r(t,e){var n=a.call(this,t)||this;n.reuseView=!0,n.renderedCategories=new Map,n.itemsView=e;var i=t.config||{};n.config=i;var o=t.editor;n.em=o;var s=i.pStylePrefix||"";return n.ppfx=s,n.pfx=s+i.stylePrefix||"",n.className="".concat(n.pfx,"traits"),n.traitContClass="".concat(s,"traits-c"),n.classNoCat="".concat(s,"traits-empty-c"),n.catsClass="".concat(s,"trait-categories"),n.collection=new df([],{em:o}),n.listenTo(o,te.toggled,n.updatedCollection),n.updatedCollection(),n}return r.prototype.updatedCollection=function(){var t=this,e=t.ppfx,n=t.em,i=n.getSelected();this.el.className="".concat(this.traitContClass,"s ").concat(e,"one-bg ").concat(e,"two-color"),this.collection=(i==null?void 0:i.traits)||new df([],{em:n}),this.render()},r.prototype.add=function(t,e){var n=this,i=n.config,o=n.renderedCategories,s=this.itemView,c=t.get(this.itemType);this.itemsView&&this.itemsView[c]&&(s=this.itemsView[c]);var d=new s({config:i,model:t,attributes:t.get("attributes")}),f=d.render().el,g=t.parent.initCategory(t);if(g){var m=g.getId(),y=this.getCategoriesEl(),x=o.get(m);!x&&y&&(x=new ix({model:g},i,"trait").render(),o.set(m,x),y.appendChild(x.el)),x==null||x.append(f);return}e?e.appendChild(f):this.append(f)},r.prototype.getCategoriesEl=function(){return this.catsEl||(this.catsEl=this.el.querySelector("[".concat(ry,"]"))),this.catsEl},r.prototype.getTraitsEl=function(){return this.traitsEl||(this.traitsEl=this.el.querySelector("[".concat(ny,"]"))),this.traitsEl},r.prototype.append=function(t){var e=this.getTraitsEl();e==null||e.appendChild(t)},r.prototype.render=function(){var t=this,e=this,n=e.el,i=e.ppfx,o=e.catsClass,s=e.traitContClass,c=e.classNoCat,d=document.createDocumentFragment();delete this.catsEl,delete this.traitsEl,this.renderedCategories=new Map,n.innerHTML=` 1029 <div class="`.concat(o,'" ').concat(ry,`></div> 1030 <div class="`).concat(c," ").concat(s,'" ').concat(ny,`></div> 1031 `),this.collection.forEach(function(g){return t.add(g,d)}),this.append(d);var f="".concat(s,"s ").concat(i,"one-bg ").concat(i,"two-color");return this.$el.addClass(f),this.rendered=!0,this},r})(Cx);const iy=kx;kx.prototype.itemView=Ma;var aS=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),oS=function(a,r,t){if(t||arguments.length===2)for(var e=0,n=r.length,i;e<n;e++)(i||!(e in r))&&(i||(i=Array.prototype.slice.call(r,0,e)),i[e]=r[e]);return a.concat(i||Array.prototype.slice.call(r))},sS=(function(a){aS(r,a);function r(t){var e=a.call(this,t,"TraitManager",Nk())||this;e.TraitsView=iy,e.events=sf,e.state=new We({traits:[]}),e.types={text:Ma,number:Qk,select:rS,checkbox:$k,color:Gk,button:Vk};var n=e,i=n.state,o=n.config,s=n.events,c=o.pStylePrefix;c&&(o.stylePrefix="".concat(c).concat(o.stylePrefix)),(0,E.bindAll)(e,"__onSelect");var d=(0,E.debounce)(function(){return e.__upSel()},0),f=(0,E.debounce)(function(){return e.__onUp()},0);return i.listenTo(t,te.toggled,d),i.listenTo(t,s.value,f),i.on("change:traits",e.__onSelect),e.debounced=[d,f],e}return r.prototype.select=function(t){var e=(t==null?void 0:t.getTraits())||[];this.state.set({component:t,traits:e}),this.__trgCustom()},r.prototype.getCategories=function(){var t,e=this.getComponent(),n=((t=e==null?void 0:e.traits.categories)===null||t===void 0?void 0:t.models)||[];return oS([],n,!0)},r.prototype.getTraits=function(){return this.getCurrent()},r.prototype.getTraitsByCategory=function(t){return Nb(t||this.getTraits())},r.prototype.getComponent=function(){return this.state.attributes.component},r.prototype.addType=function(t,e){var n=this.getType("text");this.types[t]=n.extend(e)},r.prototype.removeType=function(t){var e=this.getType(t);if(e)return delete this.types[t],e},r.prototype.getType=function(t){return this.getTypes()[t]},r.prototype.getTypes=function(){return this.types},r.prototype.getTraitsViewer=function(){return this.view},r.prototype.getCurrent=function(){return this.state.get("traits")||[]},r.prototype.render=function(){var t=this.view,e=this.em;return t=new iy({el:t==null?void 0:t.el,collection:[],editor:e,config:this.getConfig()},this.getTypes()),this.view=t,t.el},r.prototype.postRender=function(){this.__appendTo()},r.prototype.__onSelect=function(){var t=this,e=t.em,n=t.events,i=t.state,o=i.attributes,s=o.component,c=o.traits;e.trigger(n.select,{component:s,traits:c})},r.prototype.__trgCustom=function(t){t===void 0&&(t={});var e=this,n=e.em,i=e.events,o=e.__ctn;this.__ctn=o||t.container,n.trigger(i.custom,this.__customData())},r.prototype.__customData=function(){return{container:this.__ctn}},r.prototype.__upSel=function(){this.select(this.em.getSelected())},r.prototype.__onUp=function(){this.select(this.getComponent())},r})(Jn);const lS=sS;var cS=function(){return{stylePrefix:"",appendTo:"",sortable:!0,hidable:!0,hideTextnode:!0,root:"",showWrapper:!0,showHover:!0,scrollCanvas:{behavior:"smooth",block:"nearest"},scrollLayers:{behavior:"auto",block:"nearest"},highlightHover:!0,custom:!1,onInit:function(){},onRender:function(){},extend:{}}};const dS=cS;var Rf;(function(a){a.root="layer:root",a.component="layer:component",a.custom="layer:custom",a.render="layer:render"})(Rf||(Rf={}));
1031var uS=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),fS=(function(a){uS(r,a);function r(){var t=a!==null&&a.apply(this,arguments)||this;return t._dropAreaConfig={ratio:.4,minUndroppableDimension:3,maxUndroppableDimension:20},t}return Object.defineProperty(r.prototype,"view",{get:function(){return this.model.viewLayer},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"element",{get:function(){var t;return(t=this.model.viewLayer)===null||t===void 0?void 0:t.el},enumerable:!1,configurable:!0}),r})(zb);const pS=fS;var hS=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),gS=(function(a){hS(r,a);function r(t){t===void 0&&(t={});var e=a.call(this,t)||this;e.items=[],e.opt=t;var n=t.config||{};e.config=n,e.module=t.module,e.parentView=t.parentView;var i=n.stylePrefix||"";n.pStylePrefix;var o=e.collection;e.listenTo(o,"add",e.addTo),e.listenTo(o,"reset resetNavigator",e.render),e.listenTo(o,"remove",e.removeChildren),e.className="".concat(i,"layers");var s=n.em;if(n.sortable&&!e.opt.sorter){var c=s.Utils,d=n.sortContainer||e.el,f=e.createPlaceholder(i);e.opt.sorter=new c.ComponentSorter({em:s,treeClass:pS,containerContext:{container:d,containerSel:".".concat(e.className),itemSel:".".concat(i,"layer"),pfx:n.pStylePrefix,document,placeholderElement:f},dragBehavior:{dragDirection:aa.Vertical,nested:!0}})}return e.$el.data("collection",o),t.parent&&e.$el.data("model",t.parent),e}return r.prototype.createPlaceholder=function(t){var e=document.createElement("div"),n=document.createElement("div");return this.el.parentNode,e.className=t+"placeholder",e.style.display="none",e.style.pointerEvents="none",n.className=t+"placeholder-int",e.appendChild(n),e},r.prototype.removeChildren=function(t){var e=t.viewLayer;e&&(e.remove(),delete t.viewLayer)},r.prototype.addTo=function(t){this.addToCollection(t,null,this.collection.indexOf(t))},r.prototype.addToCollection=function(t,e,n){var i=this,o=i.parentView,s=i.opt,c=i.config,d=i.el,f=s.ItemView,g=s.opened,m=s.module,y=s.level,x=s.sorter,w=t.viewLayer||new f({ItemView:f,level:y,model:t,parentView:o,config:c,sorter:x,opened:g,module:m}),k=w.render().el;if(e)e.appendChild(k);else{var S=d,A=S.childNodes;if((0,E.isUndefined)(n))S.appendChild(k);else{var L=A.length==n;L&&n--,L||!A.length?S.appendChild(k):S.insertBefore(k,A[n])}}return this.items.push(w),k},r.prototype.remove=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Ze.prototype.remove.apply(this,t),this.items.map(function(n){return n.remove()}),this},r.prototype.render=function(){var t=this,e=this,n=e.el,i=e.module,o=document.createDocumentFragment();return n.innerHTML="",this.collection.map(function(s){return i.__getLayerFromComponent(s)}).forEach(function(s){return t.addToCollection(s,o)}),n.appendChild(o),n.className=this.className,this},r})(Ze);const vS=gS;var ev;(function(a){a.run="command:run",a.runCommand="command:run:",a.runBeforeCommand="command:run:before:",a.abort="command:abort:",a.stop="command:stop",a.stopCommand="command:stop:",a.stopBeforeCommand="command:stop:before:",a.call="command:call",a.callCommand="command:call:"})(ev||(ev={}));const wi=ev;var mS=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}
1031r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Xs=function(){return Xs=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Xs.apply(this,arguments)},yS=(function(a){mS(r,a);function r(t){var e=a.call(this,0)||this;e.config=t||{},e.em=e.config.em||{};var n=e.config.stylePrefix;return e.pfx=n,e.ppfx=e.config.pStylePrefix,e.hoverClass="".concat(n,"hover"),e.badgeClass="".concat(n,"badge"),e.plhClass="".concat(n,"placeholder"),e.freezClass="".concat(e.ppfx,"freezed"),e.canvas=e.em.Canvas,e.init(e.config),e}return r.prototype.onFrameScroll=function(t){},r.prototype.getCanvas=function(){return this.canvas.getElement()},r.prototype.getCanvasBody=function(){return this.canvas.getBody()},r.prototype.getCanvasTools=function(){return this.canvas.getToolsEl()},r.prototype.offset=function(t){var e=t.getBoundingClientRect();return{top:e.top+t.ownerDocument.body.scrollTop,left:e.left+t.ownerDocument.body.scrollLeft}},r.prototype.init=function(t){},r.prototype.callRun=function(t,e){e===void 0&&(e={});var n=this.id,i=e;if(t.trigger("".concat(wi.runBeforeCommand).concat(n),{options:i}),i.abort){t.trigger("".concat(wi.abort).concat(n),{options:i});return}var o=i.sender||t,s=this.run(t,o,i),c={id:n,result:s,options:i},d=Xs(Xs({},c),{type:"run"});return this.noStop||(t.Commands.active[n]=s),t.trigger("".concat(wi.runCommand).concat(n),c),t.trigger("".concat(wi.callCommand).concat(n),d),t.trigger(wi.run,c),t.trigger(wi.call,d),s},r.prototype.callStop=function(t,e){e===void 0&&(e={});var n=this.id,i=e,o=i.sender||t;t.trigger("".concat(wi.stopBeforeCommand).concat(n),{options:i});var s=this.stop(t,o,i),c={id:n,result:s,options:i},d=Xs(Xs({},c),{type:"stop"});return delete t.Commands.active[n],t.trigger("".concat(wi.stopCommand).concat(n),c),t.trigger("".concat(wi.callCommand).concat(n),d),t.trigger(wi.stop,c),t.trigger(wi.call,d),s},r.prototype.stopCommand=function(t){var e,n,i;(i=(n=(e=this.em)===null||e===void 0?void 0:e.Commands)===null||n===void 0?void 0:n.stop)===null||i===void 0||i.call(n,this.id,t)},r.prototype.run=function(t,e,n){},r.prototype.stop=function(t,e,n){},r})(We);const tr=yS;var bS=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),xS=(function(a){bS(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.run=function(t){t.Components.clear(),t.Css.clear()},r})(tr);const wS=xS;var _S=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),CS=(function(a){_S(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.run=function(t){(0,E.bindAll)(this,"onKeyUp","enableDragger","disableDragger"),this.editor=t,this.canvasModel=this.canvas.getCanvasView().model,this.toggleMove(!0)},r.prototype.stop=function(){this.toggleMove(),this.disableDragger(new MouseEvent("mouseup"))},r.prototype.onKeyUp=function(t){eb(t)===" "&&this.editor.stopCommand(this.id)},r.prototype.enableDragger=function(t){this.toggleDragger(!0,t)},r.prototype.disableDragger=function(t){this.toggleDragger(!1,t)},r.prototype.toggleDragger=function(t,e){var n=this,i=n.canvasModel,o=n.em,s=this.dragger,c=t?"add":"remove";this.getCanvas().classList[c]("".concat(this.ppfx,"is__grabbing")),s||(s=new Ap({getPosition:function(){return{x:i.get("x"),y:i.get("y")}},setPosition:function(d){var f=d.x,g=d.y;i.set({x:f,y:g})},onStart:function(d,f){o.trigger(Ti.moveStart,f)},onDrag:function(d,f){o.trigger(Ti.move,f)},onEnd:function(d,f){o.trigger(Ti.moveEnd,f)}}),this.dragger=s),t?s.start(e):s.stop(e)},r.prototype.toggleMove=function(t){t===void 0&&(t=!1);var e=this.ppfx,n=t?"add":"remove",i=t?"on":"off",o={on:or,off:gr},s=this.getCanvas(),c=["".concat(e,"is__grab")];
1031!t&&c.push("".concat(e,"is__grabbing")),c.forEach(function(d){return s.classList[n](d)}),o[i](document,"keyup",this.onKeyUp),o[i](s,"mousedown",this.enableDragger),o[i](document,"mouseup",this.disableDragger)},r})(tr);const kS=CS;var SS=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),TS=function(a,r,t){if(t||arguments.length===2)for(var e=0,n=r.length,i;e<n;e++)(i||!(e in r))&&(i||(i=Array.prototype.slice.call(r,0,e)),i[e]=r[e]);return a.concat(i||Array.prototype.slice.call(r))},OS=(function(a){SS(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.run=function(t,e,n){var i=this;n===void 0&&(n={});var o=[],s=n.component||t.getSelectedAll();return s=(0,E.isArray)(s)?TS([],s,!0):[s],s.filter(Boolean).forEach(function(c){var d,f;if(!c.get("removable"))return i.em.logWarning("The element is not removable",{component:c});o.push(c);var g=((f=(d=c.delegate)===null||d===void 0?void 0:d.remove)===null||f===void 0?void 0:f.call(d,c))||c;g.remove()}),t.selectRemove(o),o},r})(tr);const ES=OS;var AS=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Ca=function(){return Ca=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Ca.apply(this,arguments)},au="dmode",MS=(function(a){AS(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.run=function(t,e,n){var i=this,o,s;if(n===void 0&&(n={}),(0,E.bindAll)(this,"setPosition","onStart","onDrag","onEnd","getPosition","getGuidesStatic","renderGuide","getGuidesTarget"),!n.target)throw new Error("Target option is required");var c=Ca({doc:(o=n.target.getEl())===null||o===void 0?void 0:o.ownerDocument,onStart:this.onStart,onEnd:this.onEnd,onDrag:this.onDrag,getPosition:this.getPosition,setPosition:this.setPosition,guidesStatic:function(){var f;return(f=i.guidesStatic)!==null&&f!==void 0?f:[]},guidesTarget:function(){var f;return(f=i.guidesTarget)!==null&&f!==void 0?f:[]}},(s=n.dragger)!==null&&s!==void 0?s:{});this.setupGuides(),this.opts=n,this.editor=t,this.em=t.getModel(),this.target=n.target,this.isTran=n.mode=="translate",this.guidesContainer=this.getGuidesContainer(),this.guidesTarget=this.getGuidesTarget(),this.guidesStatic=this.getGuidesStatic();var d=this.dragger;return d?d.setOptions(c):(d=new Ap(c),this.dragger=d),n.event&&d.start(n.event),this.toggleDrag(!0),this.em.trigger("".concat(au,":start"),this.getEventOpts()),d},r.prototype.getEventOpts=function(){var t,e,n,i,o=(e=(t=this.guidesTarget)===null||t===void 0?void 0:t.filter(function(s){return s.active}))!==null&&e!==void 0?e:[];return{mode:this.opts.mode,component:this.target,target:this.target,guidesTarget:(n=this.guidesTarget)!==null&&n!==void 0?n:[],guidesStatic:(i=this.guidesStatic)!==null&&i!==void 0?i:[],guidesMatched:this.getGuidesMatched(o),command:this}},r.prototype.stop=function(){this.toggleDrag()},r.prototype.setupGuides=function(){var t;((t=this.guides)!==null&&t!==void 0?t:[]).forEach(function(e){var n,i=e.guide;(n=i==null?void 0:i.parentNode)===null||n===void 0||n.removeChild(i)}),this.guides=[]},r.prototype.getGuidesContainer=function(){var t=this,e,n,i,o,s=this.guidesEl;if(!s){var c=this,d=c.editor,f=c.em,g=c.opts,m=(e=d.getConfig().stylePrefix)!==null&&e!==void 0?e:"",y=document.createElement("div"),x=document.createElement("div"),w='<div class="'.concat(m,"guide-info__line ").concat(m,`danger-bg"> 1032 <div class="`).concat(m,"guide-info__content ").concat(m,`danger-color"></div> 1033 </div>`);s=document.createElement("div"),s.className="".concat(m,"guides"),y.className="".concat(m,"guide-info ").concat(m,"guide-info__x"),x.className="".concat(m,"guide-info ").concat(m,"guide-info__y"),y.innerHTML=w,x.innerHTML=w,s.appendChild(y),s.appendChild(x),(n=d.Canvas.getGlobalToolsEl())===null||n===void 0||n.appendChild(s),this.guidesEl=s,this.elGuideInfoX=y,this.elGuideInfoY=x,this.elGuideInfoContentX=(i=y.querySelector(".".concat(m,"guide-info__content")))!==null&&i!==void 0?i:void 0,this.elGuideInfoContentY=(o=x.querySelector(".".concat(m,"guide-info__content")))!==null&&o!==void 0?o:void 0,f.on("".concat(Ti.update," frame:scroll"),(0,E.debounce)(function(){var k;t.updateGuides(),g.debug&&((k=t.guides)===null||k===void 0||k.forEac
1033h(function(S){return t.renderGuide(S)}))},200))}return s},r.prototype.getGuidesStatic=function(){var t=this,e=[],n=this.target.getEl(),i=n==null?void 0:n.parentElement;return i?((0,E.each)(i.children,function(o){return e=e.concat(n!==o?t.getElementGuides(o):[])}),e.concat(this.getElementGuides(i))):[]},r.prototype.getGuidesTarget=function(){return this.getElementGuides(this.target.getEl())},r.prototype.updateGuides=function(t){var e=this,n,i,o,s=(n=t??this.guides)!==null&&n!==void 0?n:[];s.forEach(function(c){var d=c.origin,f=i===d?o:e.getElementPos(d);i=d,o=f,(0,E.each)(e.getGuidePosUpdate(c,f),function(g,m){c[m]=g}),c.originRect=f})},r.prototype.getGuidePosUpdate=function(t,e){var n={},i=e.top,o=e.height,s=e.left,c=e.width;switch(t.type){case"t":n.y=i;break;case"b":n.y=i+o;break;case"l":n.x=s;break;case"r":n.x=s+c;break;case"x":n.x=s+c/2;break;case"y":n.y=i+o/2;break}return n},r.prototype.renderGuide=function(t){var e,n;if(!this.opts.skipGuidesRender){var i=(e=t.guide)!==null&&e!==void 0?e:document.createElement("div"),o="px",s=t.active?2:1;if(i.style.cssText="position: absolute; background-color: ".concat(t.active?"green":"red",";"),!i.children.length){var c=document.createElement("div");c.style.cssText="position: absolute; color: red; padding: 5px; top: 0; left: 0;",i.appendChild(c)}return t.y?(i.style.width="100%",i.style.height="".concat(s).concat(o),i.style.top="".concat(t.y).concat(o),i.style.left="0"):(i.style.width="".concat(s).concat(o),i.style.height="100%",i.style.left="".concat(t.x).concat(o),i.style.top="0".concat(o)),!t.guide&&((n=this.guidesContainer)===null||n===void 0||n.appendChild(i)),i}},r.prototype.getElementPos=function(t){return this.editor.Canvas.getElementPos(t,{noScroll:1})},r.prototype.getElementGuides=function(t){var e=this,n=this.opts,i=t,o=this.getElementPos(t),s=eo(t),c=hl(t),d=o.top,f=o.height,g=o.left,m=o.width,y=[{type:"t",y:d},{type:"b",y:d+f},{type:"l",x:g},{type:"r",x:g+m},{type:"x",x:g+m/2},{type:"y",y:d+f/2}],x=y.map(function(w){var k=n.debug?e.renderGuide(w):void 0;return Ca(Ca({},w),{component:s,componentView:c,componentEl:i,origin:i,componentElRect:o,originRect:o,guideEl:k,guide:k})});return x.forEach(function(w){var k;return(k=e.guides)===null||k===void 0?void 0:k.push(w)}),x},r.prototype.getTranslate=function(t,e){e===void 0&&(e="x");var n=0;return(t||"").split(" ").forEach(function(i){var o=i.trim(),s="translate".concat(e.toUpperCase(),"(");o.indexOf(s)===0&&(n=parseFloat(o.replace(s,"")))}),n},r.prototype.setTranslate=function(t,e,n){var i="translate".concat(e.toUpperCase(),"("),o="".concat(i).concat(n,")"),s=(t||"").split(" ").map(function(c){var d=c.trim();return d.indexOf(i)===0&&(c=o),c}).join(" ");return s.indexOf(i)<0&&(s+=" ".concat(o)),s},r.prototype.getPosition=function(){var t=this,e=t.target,n=t.isTran,i=e.getStyle(),o=i.transform,s=i.left,c=i.top,d=0,f=0;return n&&o?(d=this.getTranslate(o),f=this.getTranslate(o,"y")):(d=parseFloat(s??"0"),f=parseFloat(c??"0")),{x:d,y:f}},r.prototype.setPosition=function(t){var e,n,i=t.x,o=t.y,s=t.end,c=t.position,d=t.width,f=t.height,g=this,m=g.target,y=g.isTran,x=g.em,w=g.opts,k="px",S=!s,A="".concat(parseInt("".concat(i),10)).concat(k),L="".concat(parseInt("".concat(o),10)).concat(k),D={};if(y){var W=(n=(e=m.getStyle())===null||e===void 0?void 0:e.transform)!==null&&n!==void 0?n:"";W=this.setTranslate(W,"x",A),W=this.setTranslate(W,"y",L),D={transform:W,__p:S}}else{var j={position:c,width:d,height:f},et={left:A,top:L,__p:S};(0,E.keys)(j).forEach(function(z){var B=j[z];B&&(et[z]=B)}),D=et}w.addStyle?w.addStyle({component:m,styles:D,partial:!s}):m.addStyle(D,{avoidStore:!s}),x.Styles.__emitCmpStyleUpdate(D,{components:x.getSelected()})},r.prototype._getDragData=function(){var t=this.target;return{target:t,parent:t.parent(),index:t.index()}},r.prototype.onStart=function(t){var e,n=this,i=n.target,o=n.editor,s=n.isTran,c=n.opts,d=o.Canvas,f=i.getStyle(),g="absolute",m=[g,"relative"];if((e=c.onStart)===null||e===void 0||e.call(c,this._getDragData()),!s){if(f.position!==g){var y=d.offset(i.getEl()),x=y.left,w=y.top,k=y.width,S=y.height,A=i.parent(),L=null;do{var D=A==null?void 0:A.getStyle(),W=D==null?void 0:D.position;W&&(L=m.indexOf(W)>=0?A:null),A=A==null?void 0:A.parent()}while(A&&!L);if(c.center){var j=d.getMouseRelativeCanvas(t),et=j.x,z=j.y;x=et,w=z}else if(L){var B=d.offset(L.getEl());x=x-B.left,w=w-B.top}this.setPosition({x,y:w,width:"".concat(k,"px"),height:"".concat(S,"px"),position:g})}this.guidesStatic=this.getGuidesStatic()}},r.prototype.onDrag=function(t){var e=this,n,i,o=this,s=o.guidesTarget,c=o.opts;
1033this.updateGuides(s),c.debug&&(s==null||s.forEach(function(d){return e.renderGuide(d)})),c.guidesInfo&&this.renderGuideInfo((n=s==null?void 0:s.filter(function(d){return d.active}))!==null&&n!==void 0?n:[]),(i=c.onDrag)===null||i===void 0||i.call(c,this._getDragData()),this.opts.event=t,this.em.trigger("".concat(au,":move"),this.getEventOpts())},r.prototype.onEnd=function(t,e,n){var i,o=this,s=o.editor,c=o.opts,d=o.id;(i=c.onEnd)===null||i===void 0||i.call(c,t,n,Ca(Ca({event:t},n),this._getDragData())),s.stopCommand("".concat(d)),this.hideGuidesInfo(),this.em.trigger("".concat(au,":end"),this.getEventOpts())},r.prototype.hideGuidesInfo=function(){var t=this;["X","Y"].forEach(function(e){var n=t["elGuideInfo".concat(e)];n&&(n.style.display="none")})},r.prototype.renderGuideInfo=function(t){var e=this;t===void 0&&(t=[]),this.hideGuidesInfo();var n=this.getGuidesMatched(t);n.forEach(function(i){e.opts.skipGuidesRender||e.renderSingleGuideInfo(i),e.em.trigger("".concat(au,":active"),Ca(Ca({},e.getEventOpts()),i))})},r.prototype.renderSingleGuideInfo=function(t){var e=t.posFirst,n=t.posSecond,i=t.size,o=t.sizeRaw,s=t.guide,c=t.elGuideInfo,d=t.elGuideInfoCnt,f=(0,E.isUndefined)(s.x)?"y":"x",g=f==="y",m=c.style;m.display="",m[g?"top":"left"]="".concat(e,"px"),m[g?"left":"top"]="".concat(n,"px"),m[g?"width":"height"]="".concat(i,"px"),d.innerHTML="".concat(Math.round(o),"px")},r.prototype.getGuidesMatched=function(t){var e=this;t===void 0&&(t=[]);var n=this.guidesStatic,i=n===void 0?[]:n;return t.map(function(o){var s=o.origin,c=o.x,d=e.getElementPos(s),f=(0,E.isUndefined)(c)?"y":"x",g=f==="y",m=d[g?"left":"top"],y=d.rect[g?"left":"top"],x=g?m+d.width:m+d.height,w=g?y+d.rect.width:y+d.rect.height,k=i.filter(function(gt){var St,wt={l:["r","x"],r:["l","x"],x:["l","r"],t:["b","y"],b:["t","y"],y:["t","b"]};return gt.type===o.type||((St=wt[o.type])===null||St===void 0?void 0:St.includes(gt.type))}).map(function(gt){var St=gt.originRect,wt=St.left,mt=St.width,It=St.top,Bt=St.height,se=g?wt:It,ue=g?wt+mt:It+Bt;return{gap:ue<m?m-ue:se-x,guide:gt}}).filter(function(gt){return gt.gap>0}).sort(function(gt,St){return gt.gap-St.gap}).map(function(gt){return gt.guide}).filter(function(gt){switch(o.type){case"l":case"r":case"x":return Math.abs(gt.x-o.x)<1;case"t":case"b":case"y":return Math.abs(gt.y-o.y)<1;default:return!1}}),S=k[0];if(S){var A=S.originRect,L=A.left,D=A.width,W=A.top,j=A.height,et=A.rect,z=g?L<d.left:W<d.top,B=g?L:W,X=g?et.left:et.top,Z=g?L+D:W+j,F=g?et.left+et.width:et.top+et.height,st=g?o.y:o.x,q=z?Z:x,Ct=z?m-Z:B-x,_=z?y-F:X-w,Q=e["elGuideInfo".concat(f.toUpperCase())],J=e["elGuideInfoContent".concat(f.toUpperCase())];return{guide:o,guidesStatic:i,matched:S,posFirst:st,posSecond:q,size:Ct,sizeRaw:_,elGuideInfo:Q,elGuideInfoCnt:J}}
1033else return null}).filter(Boolean)},r.prototype.toggleDrag=function(t){var e=this,n=e.ppfx,i=e.editor,o=t?"add":"remove",s=["".concat(n,"is__grabbing")],c=i.Canvas,d=c.getBody();s.forEach(function(f){return d.classList[o](f)}),c[t?"startAutoscroll":"stopAutoscroll"]()},r})(tr);const PS=MS;var LS=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),DS=(function(a){LS(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.run=function(t){if(t.Canvas.hasFocus()){var e=[];t.getSelectedAll().forEach(function(n){var i=n.components(),o=i&&i.filter(function(s){return!!s.get("selectable")})[0];o&&e.push(o)}),e.length&&t.select(e)}},r})(tr);const IS=DS;var jS=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),NS=(function(a){jS(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.run=function(t,e,n){if(n===void 0&&(n={}),!(!t.Canvas.hasFocus()&&!n.force)){var i=[];t.getSelectedAll().forEach(function(o){for(var s=o.parent();s&&!s.get("selectable");)s=s.parent();s&&i.push(s)}),i.length&&t.select(i)}},r})(tr);const RS=NS;var BS=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),VS=(function(a){BS(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.run=function(t){if(t.Canvas.hasFocus()){var e=[];t.getSelectedAll().forEach(function(n){var i=n.parent();if(i){var o=i.components().length,s=0,c=0,d=null;do s++,c=n.index()+s,d=c<=o?i.getChildAt(c):null;while(d&&!d.get("selectable"));e.push(d||n)}}),e.length&&t.select(e)}},r})(tr);const HS=VS;var FS=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),$S=(function(a){FS(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.run=function(t){if(t.Canvas.hasFocus()){var e=[];t.getSelectedAll().forEach(function(n){var i=n.parent();if(i){var o=0,s=0,c=null;do o++,s=n.index()-o,c=s>=0?i.getChildAt(s):null;while(c&&!c.get("selectable"));e.push(c||n)}}),e.length&&t.select(e)}},r})(tr);const zS=$S;var US=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),WS=(function(a){US(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.run=function(t,e,n){var i=n.target,o=[];if(!i.get("styles"))return o;var s=i.get("type"),c=t.Pages.getAllWrappers(),d=(0,E.flatten)(c.map(function(g){return g.findType(s)})).length;if(!d){var f=t.CssComposer.getAll();o=f.filter(function(g){return g.get("group")==="cmp:".concat(s)}),f.remove(o)}return o},r})(tr);const ZS=WS;
1033var qS=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),KS=function(a,r,t){if(t||arguments.length===2)for(var e=0,n=r.length,i;e<n;e++)(i||!(e in r))&&(i||(i=Array.prototype.slice.call(r,0,e)),i[e]=r[e]);return a.concat(i||Array.prototype.slice.call(r))},GS=(function(a){qS(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.run=function(t){var e=t.getModel(),n=KS([],t.getSelectedAll(),!0).map(function(i){var o,s;return((s=(o=i.delegate)===null||o===void 0?void 0:o.copy)===null||s===void 0?void 0:s.call(o,i))||i}).filter(Boolean);n.length&&e.set("clipboard",n)},r})(tr);const YS=GS;var XS=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),JS=(function(a){XS(r,a);function r(){var t=a!==null&&a.apply(this,arguments)||this;return t.cm=null,t}return r.prototype.run=function(t,e,n){var i=this,o,s;n===void 0&&(n={}),e&&e.set&&e.set("active",0);var c=t.getConfig(),d=t.Modal,f=c.stylePrefix;if(this.cm=t.CodeManager||null,!this.editors){var g=this.buildEditor("htmlmixed","hopscotch","HTML"),m=this.buildEditor("css","hopscotch","CSS");this.htmlEditor=g.model,this.cssEditor=m.model;var y=Vi("div",{class:"".concat(f,"export-dl")});y.appendChild(g.el),y.appendChild(m.el),this.editors=y}d.open({title:c.textViewCode,content:this.editors}).getModel().once("change:open",function(){return t.stopCommand("".concat(i.id))}),(o=this.htmlEditor)===null||o===void 0||o.setContent(t.getHtml(n.optsHtml)),(s=this.cssEditor)===null||s===void 0||s.setContent(t.getCss(n.optsCss))},r.prototype.stop=function(t){var e=t.Modal;e&&e.close()},r.prototype.buildEditor=function(t,e,n){var i=this.em.CodeManager,o=i.createViewer({label:n,codeName:t,theme:e}),s=new i.EditorView({model:o,config:i.getConfig()}).render().el;return{model:o,el:s}},r})(tr);const QS=JS;var tT=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),eT=(function(a){tT(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.isEnabled=function(){var t=document;return!!(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement)},r.prototype.enable=function(t){var e="";if(!t)return e;var n=t;return n.requestFullscreen?n.requestFullscreen():n.webkitRequestFullscreen?(e="webkit",n.webkitRequestFullscreen()):n.mozRequestFullScreen?(e="moz",n.mozRequestFullScreen()):n.msRequestFullscreen&&n.msRequestFullscreen(),e},r.prototype.disable=function(){var t=document;this.isEnabled()&&(t.exitFullscreen?t.exitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.msExitFullscreen&&t.msExitFullscreen())},r.prototype.onFullscreenChange=function(){this.isEnabled()||this.stopCommand({sender:this.sender})},r.prototype.run=function(t,e,n){n===void 0&&(n={}),this.sender=e;var i=n.target,o=(0,E.isElement)(i)?i:typeof i=="string"?document.querySelector(i):void 0,s=this.enable(o||t.getContainer());this.fullscreenChangeEvent="".concat(s,"fullscreenchange"),this.fullscreenChangeHandler=this.onFullscreenChange.bind(this),document.addEventListener(this.fullscreenChangeEvent,this.fullscreenChangeHandler)},r.prototype.stop=function(t,e,n){e&&e.set&&e.set("active",!1),this.fullscreenChangeEvent&&this.fullscreenChangeHandler&&(document.removeEventListener(this.fullscreenChangeEvent,this.fullscreenChangeHandler),this.fullscreenChangeEvent=void 0,this.fullscreenChangeHandler=void 0),this.disable()},r})(tr);const rT=eT;
1033var nT=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),iT=(function(a){nT(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.defaults=function(){return{command:"",attributes:{}}},r})(We);const aT=iT;var oT=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Sx=(function(a){oT(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r})(Rr);const sT=Sx;Sx.prototype.model=aT;var lT=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Bf=function(){return Bf=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Bf.apply(this,arguments)},cT=(function(a){lT(r,a);function r(t){var e=a.call(this,t)||this;return e.em=t.config.em,e}return r.prototype.events=function(){return this.model.get("events")||{mousedown:"handleClick"}},r.prototype.attributes=function(){return this.model.get("attributes")},r.prototype.handleClick=function(t){t.preventDefault(),t.stopPropagation();var e=this.em,n=e.Canvas.getFrameEl().getBoundingClientRect(),i=n.left,o=n.top,s=Bf(Bf({},t),{clientX:t.clientX-i,clientY:t.clientY-o});e.trigger("toolbar:run:before",{event:s}),this.execCommand(s)},r.prototype.execCommand=function(t){var e=this,n=e.em,i=e.model,o={event:t},s=i.get("command"),c=n.Editor;(0,E.isFunction)(s)&&s(c,null,o),(0,E.isString)(s)&&c.runCommand(s,o)},r.prototype.render=function(){var t=this,e=t.em,n=t.$el,i=t.model,o=i.get("id"),s=i.get("label"),c=e.getConfig().stylePrefix;return n.addClass("".concat(c,"toolbar-item")),o&&n.addClass("".concat(c,"toolbar-item__").concat(o)),s&&n.append(s),this},r})(Ze);const dT=cT;var uT=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Tx=(function(a){uT(r,a);function r(t){var e=a.call(this,t)||this,n=t.em;return e.em=n,e.config={em:n},e.listenTo(e.collection,"reset",e.render),e}return r.prototype.onRender=function(){var t=this.em.config.stylePrefix;this.el.className="".concat(t,"toolbar-items")},r})(Cx);const fT=Tx;Tx.prototype.itemView=dT;var pT=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}
1033r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Ko=function(){return Ko=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Ko.apply(this,arguments)},ou,hT=(function(a){pT(r,a);function r(){var t=a!==null&&a.apply(this,arguments)||this;return t.activeResizer=!1,t.opts={},t}return r.prototype.init=function(){var t=this;this._upToolbar=(0,E.debounce)(function(){t.updateToolsGlobal({force:1})},0),this.updateAttached=(0,E.debounce)(function(){t.updateGlobalPos()},0),this.onContainerChange=(0,E.debounce)(function(){t.em.refreshCanvas()},150),this.onSelect=(0,E.debounce)(this.onSelect,0),(0,E.bindAll)(this,"onHover","onOut","onClick","onCanvasScroll","onFrameScroll","onFrameResize","onFrameUpdated","onContainerChange")},r.prototype.enable=function(){this.frameOff=this.canvasOff=this.adjScroll=null,this.startSelectComponent(),ou=!0},r.prototype.startSelectComponent=function(){this.toggleSelectComponent(!0),this.em.getSelected()&&this.onSelect()},r.prototype.stopSelectComponent=function(){var t,e,n,i,o,s,c,d;this.toggleSelectComponent(),(e=(t=this.onContainerChange).cancel)===null||e===void 0||e.call(t),(i=(n=this.onSelect).cancel)===null||i===void 0||i.call(n),(s=(o=this.updateAttached).cancel)===null||s===void 0||s.call(o),(d=(c=this._upToolbar).cancel)===null||d===void 0||d.call(c)},r.prototype.toggleSelectComponent=function(t){var e=this,n=this,i=n.em,o=n.canvas,s=o.getCanvasView().el,c=i.getConfig().listenToEl,d=i.getContainer().parentNode,f=t?"on":"off",g={on:or,off:gr},m=te.update;!c.length&&d&&c.push(d);var y=function(x,w,k){g[f](k,"scroll",e.onCanvasScroll,!0),g[f](w,"mouseover",e.onHover),g[f](w,"mouseleave",e.onOut),g[f](w,"click",e.onClick),g[f](x,"scroll",e.onFrameScroll,!0),g[f](x,"resize",e.onFrameResize)};g[f](window,"resize",this.onFrameUpdated),g[f](c,"scroll",this.onContainerChange),i[f]("".concat(te.toggled," ").concat(m," undo redo"),this.onSelect,this),i[f]("change:componentHovered",this.onHovered,this),i[f]("".concat(te.resize," styleable:change ").concat(te.input),this.updateGlobalPos,this),i[f]("".concat(m,":toolbar"),this._upToolbar,this),i[f]("frame:updated",this.onFrameUpdated,this),i[f](Ti.updateTools,this.onFrameUpdated,this),i[f](i.Canvas.events.refresh,this.updateAttached,this),i.Canvas.getFrames().forEach(function(x){var w=x.view,k=w==null?void 0:w.getWindow();k&&y(k,w==null?void 0:w.getBody(),s)})},r.prototype.onHover=function(t){t.stopPropagation();var e=this.em,n=t.target,i=hl(n),o=i==null?void 0:i.frameView,s=i==null?void 0:i.model;if(!s)for(var c=n.parentNode;!s&&c&&!d0(c);)s=eo(c),c=c.parentNode;this.currentDoc=n.ownerDocument,e.setHovered(s,{useValid:!0}),o&&e.setCurrentFrame(o)},r.prototype.onFrameUpdated=function(){this.updateLocalPos(),this.updateGlobalPos()},r.prototype.onHovered=function(t,e){var n=this,i,o={};e?(i=e.views)===null||i===void 0||i.forEach(function(s){var c=s.el,d=n.getElementPos(c);o={el:c,pos:d,component:e,view:s},c.ownerDocument===n.currentDoc&&(n.elHovered=o),n.updateToolsLocal(o)}):(this.currentDoc=null,this.elHovered=0,this.updateToolsLocal(),this.canvas.getFrames().forEach(function(s){var c=s.view,d=c&&c.getToolsEl();d&&n.toggleToolsEl(!1,0,{el:d})}))},r.prototype.onSelect=function(){var t=this.em,e=t.getSelected(),n=t.getCurrentFrame(),i=e&&e.getView(n==null?void 0:n.model),o=i==null?void 0:i.el,s={};if(o&&z5(o)){var c=this.getElementPos(o);s={el:o,pos:c,component:e,view:i}}this.elSelected=s,this.updateToolsGlobal(),this.updateLocalPos(s),this.initResize(e)},r.prototype.updateGlobalPos=function(){var t=this.getElSelected();t.el&&(t.pos=this.getElementPos(t.el),this.updateToolsGlobal())},r.prototype.updateLocalPos=function(t){var e=this.getElHovered();e.el&&(e.pos=this.getElementPos(e.el),this.updateToolsLocal(t))},r.prototype.getElHovered=function(){return this.elHovered||{}},r.prototype.getElSelected=function(){return this.elSelected||{}},r.prototype.onOut=function(){this.em.setHovered()},r.prototype.toggleToolsEl=function(t,e,n){n===void 0&&(n={});var i=n.el||this.canvas.getToolsEl(e);return i&&(i.style.display=t?"":"none"),i||{}},r.prototype.showElementOffset=function(t,e,n){n===void 0&&(n={}),ou&&this.editor.runCommand("show-offset",{el:t,elPos:e,view:n.view,force:1,top:0,left:0})},r.prototype.hideElementOffset=function(t){this.editor.stopCommand("show-offset",{view:t})},r.prototype.showFixedElementOffset=function(t,e){this.editor.runCommand("show-offset",{el:t,elPos:e,state:"Fixed"})},r.prototype.hideFixedElementOffset=function(){this.editor&&this.editor.stopCommand("show-offset",{state:"Fixed"})},r.prototype.hideHighlighter=function(t){this.canvas.getHighlighter(t).style.opacity=0},r.prototype.onClick=function(t){var e=this.opts.onClick;if(e){var n=e(t);if(n!==!0)return}else t.stopPropagation(),t.preventDefault();var i=this.em;if(i.get("_cmpDrag")){i.set("_cmpDrag");return}var o=t.target,s=eo(o);if(!s)for(var c=o.parentNode;!s&&c&&!d0(c);)s=eo(c),c=c.parentNode;if(s){if(i.isEditing()&&(!s.get("textable")&&s.isChildOf("text")||i.getEditing()!==s))return;this.select(s,t)}},r.prototype.select=function(t,e){if(t){var n=this.em;n.setSelected(t,{event:e,useValid:!0}),this.initResize(n.getSelected())}},r.prototype.updateBadge=function(t,e,n){n===void 0&&(n={});var i=this.canvas,o=eo(t),s=this.getBadge(n),c=s.style;if(!o||!o.get("badgable")){c.display="none";return}if(!n.posOnly){var d=this.canvas.getConfig(),f=o.getIcon(),g=d.pStylePrefix||"",m="".concat(g,"badge"),y=d.customBadgeLabel,x="".concat(f?'<div class="'.concat(m,'__icon">').concat(f,"</div>"):"",` 1034 <div class="`).concat(m,'__name">').concat(o.getName(),"</div>");s.innerHTML=y?y(o):x}var w="px";c.display="block";var k=i.getTargetToElementFixed(t,s,{pos:e}),S=k.top,A=n.leftOff<0?-n.leftOff:0;c.top=S+w,c.left=A+w},r.prototype.showHighlighter=function(t){this.canvas.getHighlighter(t).style.opacity=""},r.prototype.initResize=function(t){var e=this,n,i=this,o=i.em,s=i.canvas,c=o.Editor,d=!(0,E.isElement)(t)&&q5(t)?t:o.getSelected(),f=(n=d==null?void 0:d.get)===null||n===void 0?void 0:n.call(d,"resizable"),g=kn.Resize,m=s.hasCustomSpot(g);s.removeSpots({type:g});var y={component:d,hasCustomResize:m,resizable:f};d&&o.trigger(te.resizeInit,y);var x=y.resizable;if(d&&x){s.addSpot({type:g,component:d});var w=(0,E.isElement)(t)?t:d.getEl(),k=Cn(x)?x:{};if(m||!w||this.activeResizer)return;this.resizer=c.runCommand("resize",Ko(Ko({},k),{el:w,component:d,force:!0,afterStart:function(){ou=!1,e.activeResizer=!0},afterEnd:function(){ou=!0,e.activeResizer=!1}}
1034))}else{if(m)return;c.stopCommand("resize"),this.resizer=null}},r.prototype.updateToolbar=function(t){var e=this.canvas,n=this.config.em,i=t===n?n.getSelected():t,o=e.getToolbarEl(),s=o.style,c=i.get("toolbar"),d=n.config.showToolbar,f=!e.hasCustomSpot(kn.Select);if(i&&d&&c&&c.length&&f){if(s.display="",!this.toolbar){o.innerHTML="",this.toolbar=new sT(c);var g=new fT({collection:this.toolbar,em:n});o.appendChild(g.render().el)}this.toolbar.reset(c),s.top="-100px",s.left="0"}else s.display="none"},r.prototype.updateToolbarPos=function(t){var e="px",n=this.canvas.getToolbarEl().style;n.top="".concat(t.top).concat(e),n.left="".concat(t.left).concat(e),n.opacity=""},r.prototype.getCanvasPosition=function(){return this.canvas.getCanvasView().getPosition()},r.prototype.getBadge=function(t){return t===void 0&&(t={}),this.canvas.getBadgeEl(t.view)},r.prototype.onCanvasScroll=function(t){this.onFrameScroll(t),this.onContainerChange()},r.prototype.onFrameScroll=function(t){this.updateTools(),this.canvas.refreshSpots()},r.prototype.onFrameResize=function(){this.canvas.refresh({all:!0})},r.prototype.updateTools=function(){this.updateLocalPos(),this.updateGlobalPos()},r.prototype.isCompSelected=function(t){return t&&t.get("status")==="selected"},r.prototype.updateToolsLocal=function(t){var e=this.em.getConfig(),n=t||this.getElHovered(),i=n.el,o=n.pos,s=n.view,c=n.component;if(!i){this.lastHovered=0;return}var d=c.get("hoverable"),f=this.lastHovered!==i,g=f?{}:{posOnly:1},m=this.canvas.hasCustomSpot(kn.Hover);f&&d&&(this.lastHovered=i,m?this.hideHighlighter(s):this.showHighlighter(s),this.showElementOffset(i,o,{view:s})),this.isCompSelected(c)&&(this.hideHighlighter(s),!e.showOffsetsSelected&&this.hideElementOffset(s));var y="px",x=this.toggleToolsEl(!0,s),w=x.style,k=this.canvas.canvasRectOffset(i,o),S=k.top,A=k.left;!m&&this.updateBadge(i,o,Ko(Ko({},g),{view:s,topOff:S,leftOff:A})),w.top=S+y,w.left=A+y,w.width=o.width+y,w.height=o.height+y,this._trgToolUp("local",{component:c,el:x,top:S,left:A,width:o.width,height:o.height})},r.prototype._upToolbar=function(){},r.prototype._trgToolUp=function(t,e){e===void 0&&(e={}),this.em.trigger(Ti.toolsUpdate,Ko({type:t},e))},r.prototype.updateToolsGlobal=function(t){t===void 0&&(t={});var e=this.getElSelected(),n=e.el,i=e.pos,o=e.component;if(!n){this.toggleToolsEl(),this.lastSelected=0;return}var s=this.canvas,c=this.lastSelected!==n;(c||t.force)&&(this.lastSelected=n,this.updateToolbar(o));var d="px",f=this.toggleToolsEl(!0),g=f.style,m=s.getTargetToElementFixed(n,s.getToolbarEl(),{pos:i}),y=m.canvasOffsetTop,x=m.canvasOffsetLeft;g.top=y+d,g.left=x+d,g.width=i.width+d,g.height=i.height+d,this.updateToolbarPos({top:m.top,left:m.left}),this._trgToolUp("global",{component:o,el:f,top:y,left:x,width:i.width,height:i.height})},r.prototype.updateAttached=function(){},r.prototype.onContainerChange=function(){},r.prototype.getElementPos=function(t){return this.canvas.getCanvasView().getElementPos(t,{noScroll:!0})},r.prototype.hideBadge=function(){this.getBadge().style.display="none"},r.prototype.cleanPrevious=function(t){t&&t.set({status:"",state:""})},r.prototype.getContentWindow=function(){return this.canvas.getWindow()},r.prototype.run=function(t,e,n){n===void 0&&(n={}),Jr()&&(this.opts=n,this.editor=this.em.Editor,this.enable())},r.prototype.stop=function(t,e,n){if(n===void 0&&(n={}),!!Jr()){var i=this,o=i.em,s=i.editor;this.opts={},this.onHovered(),this.stopSelectComponent(),!n.preserveSelected&&o.setSelected(),this.toggleToolsEl(),s==null||s.stopCommand("resize")}},r})(tr);const Ox=hT;var gT=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),vT=(function(a){gT(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.startSelectPosition=function(t,e,n){if(t===void 0&&(t=[]),n===void 0&&(n={}),this.isPointed=!1,!(!t.length||!e)){var i=this.em.Utils,o=t[0].ownerDocument.body;i&&(this.sorter=new i.ComponentSorter({em:this.em,treeClass:Ub,containerContext:{container:o,containerSel:"*",itemSel:"*",pfx:this.ppfx,document:e,placeholderElement:this.canvas.getPlacerEl()},positionOptions:{windowMargin:1,canvasRelative:!0},dragBehavior:{dragDirection:aa.BothDirections,nested:!0}})),n.onStart&&(this.sorter.eventHandlers.legacyOnStartSort=n.onStart),t&&t.length>0&&this.sorter.startSort(t.map(function(s){return{element:s}}))}},r.prototype.getOffsetDim=function(){var t=this.offset(this.canvas.getFrameEl()),e=this.offset(this.canvas.getElement()),n=t.top-e.top,i=t.left-e.left;return{top:n,left:i}},r.prototype.stopSelectPosition=function(){this.posTargetCollection=null,this.posIndex=this.posMethod=="after"&&this.cDim.length!==0?this.posIndex+1:this.posIndex,this.sorter&&this.sorter.cancelDrag(),this.cDim&&(this.posIsLastEl=this.cDim.length!==0&&this.posMethod=="after"&&this.posIndex==this.cDim.length,this.posTargetEl=this.cDim.length===0?(0,De.default)(this.outsideElem):!this.posIsLastEl&&this.cDim[this.posIndex]?(0,De.default)(this.cDim[this.posIndex][5]).parent():(0,De.default)(this.outsideElem),this.posTargetModel=this.posTargetEl.data("model"),this.posTargetCollection=this.posTargetEl.data("model-comp"))},r.prototype.enable=function(){this.startSelectPosition()},r.prototype.nearFloat=function(t,e,n){var i=t||0,o=e||"before",s=n.length,c=s!==0&&o=="after"&&i==s;return s!==0&&(!c&&!n[i][4]||n[i-1]&&!n[i-1][4]||c&&!n[i-1][4])?1:0},r.prototype.run=function(){this.enable()},r.prototype.stop=function(){this.stopSelectPosition(),this.$wrapper.css("cursor",""),this.$wrapper.unbind()},r})(tr);const mT=vT;
1034var yT=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Ru=Ox.prototype,Ex=mT.prototype,rv=(function(a){yT(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.init=function(t){Ru.init.apply(this,arguments),(0,E.bindAll)(this,"initSorter","rollback","onEndMove"),this.opt=t,this.hoverClass="".concat(this.ppfx,"highlighter-warning"),this.badgeClass="".concat(this.ppfx,"badge-warning"),this.noSelClass="".concat(this.ppfx,"no-select")},r.prototype.run=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Ex.run.apply(this,t)},r.prototype.enable=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];Ru.enable.apply(this,t),this.getBadgeEl().addClass(this.badgeClass),this.getHighlighterEl().addClass(this.hoverClass);var n=this.$wrapper;n.css("cursor","move"),n.on("mousedown",this.initSorter),n.addClass(this.noSelClass)},r.prototype.toggleClipboard=function(){},r.prototype.initSorter=function(t){var e=(0,De.default)(t.target).data("model"),n=e.get("draggable");n&&(this.cacheEl=null,this.startSelectPosition(t.target,this.frameEl.contentDocument),this.sorter.draggable=n,this.sorter.eventHandlers.legacyOnEndMove=this.onEndMove.bind(this),this.stopSelectComponent(),this.$wrapper.off("mousedown",this.initSorter),or(this.getContentWindow(),"keydown",this.rollback))},r.prototype.initSorterFromModel=function(t){var e,n=t.get("draggable");if(n){this.cacheEl=null;var i=(e=t.view)===null||e===void 0?void 0:e.el;i&&(this.startSelectPosition(i,this.frameEl.contentDocument),this.sorter.draggable=n,this.sorter.eventHandlers.legacyOnEndMove=this.onEndMoveFromModel.bind(this),this.stopSelectComponent(),or(this.getContentWindow(),"keydown",this.rollback))}},r.prototype.initSorterFromModels=function(t){this.cacheEl=null;var e=t[t.length-1],n=this.em.getCurrentFrame(),i=e.getEl(n==null?void 0:n.model),o=i.ownerDocument,s=t.map(function(c){var d;return(d=c==null?void 0:c.view)===null||d===void 0?void 0:d.el});this.startSelectPosition(s,o,{onStart:this.onStart}),this.sorter.eventHandlers.legacyOnMoveClb=this.onDrag,this.sorter.eventHandlers.legacyOnEndMove=this.onEndMoveFromModel.bind(this),this.stopSelectComponent(),or(this.getContentWindow(),"keydown",this.rollback)},r.prototype.onEndMoveFromModel=function(){gr(this.getContentWindow(),"keydown",this.rollback)},r.prototype.onEndMove=function(){this.enable(),gr(this.getContentWindow(),"keydown",this.rollback)},r.prototype.onSelect=function(t,e){},r.prototype.rollback=function(t,e){var n=t.which||t.keyCode;(n==27||e)&&this.sorter.cancelDrag()},r.prototype.getBadgeEl=function(){return this.$badge||(this.$badge=(0,De.default)(this.getBadge())),this.$badge},r.prototype.getHighlighterEl=function(){return this.$hl||(this.$hl=(0,De.default)(this.canvas.getHighlighter())),this.$hl},r.prototype.stop=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];Ru.stop.apply(this,t),this.getBadgeEl().removeClass(this.badgeClass),this.getHighlighterEl().removeClass(this.hoverClass);var n=this.$wrapper;n.css("cursor","").unbind().removeClass(this.noSelClass)},r})(tr);const bT=rv;[Ex,Ru].forEach(function(a){Object.getOwnPropertyNames(a).forEach(function(r){r!=="constructor"&&(r in rv.prototype||(rv.prototype[r]=a[r]))})});var xT=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}
1034r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),wT=(function(a){xT(r,a);function r(){var t=a!==null&&a.apply(this,arguments)||this;return t.title="",t}return r.prototype.open=function(t){var e=this,n=this,i=n.editor,o=n.title,s=n.config,c=n.am;if(!(!i||!s||!c)){var d=s.custom;if((0,E.isFunction)(d.open))return d.open(c.__customData());var f=i.Modal;f.open({title:o,content:t}).onceClose(function(){return i.stopCommand(e.id)})}},r.prototype.close=function(){var t=this,e=t.config,n=t.am,i=t.editor;if(!(!e||!n||!i)){var o=e.custom;if((0,E.isFunction)(o.close))return o.close(n.__customData());var s=i.Modal;s&&s.close()}},r.prototype.run=function(t,e,n){n===void 0&&(n={});var i=t.AssetManager,o=i.getConfig(),s=n.types,c=s===void 0?[]:s,d=n.accept,f=n.select;if(this.title=n.modalTitle||t.t("assetManager.modalTitle")||"",this.editor=t,this.config=o,this.am=i,i.setTarget(n.target),i.onClick(n.onClick),i.onDblClick(n.onDblClick),i.onSelect(n.onSelect),i.__behaviour({select:f,types:c,options:n}),o.custom)this.rendered=this.rendered||Vi("div"),this.rendered.className="".concat(o.stylePrefix,"custom-wrp"),i.__behaviour({container:this.rendered}),i.__trgCustom();else{if(!this.rendered||c){var g=i.getAll().filter(function(w){return w});c&&c.length&&(g=g.filter(function(w){return c.indexOf(w.get("type"))!==-1})),i.render(g),this.rendered=i.getContainer()}var m=this.rendered;if(d&&m){var y=m.querySelector("input#".concat(o.stylePrefix,"uploadFile"));y&&y.setAttribute("accept",d)}}var x=this.rendered;return x&&this.open(x),this},r.prototype.stop=function(t){this.editor=t,this.close()},r})(tr);const _T=wT;var CT=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),kT=(function(a){CT(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.open=function(){var t=this,e=t.container,n=t.editor,i=t.bm,o=t.config;if(!(!e||!n||!i||!o)){var s=o.custom,c=o.appendTo;if((0,E.isFunction)(s.open))return s.open(i.__customData());if(this.firstRender&&!c){var d="views-container",f=n.Panels,g=f.getPanel(d)||f.addPanel({id:d});g.set("appendContent",e).trigger("change:appendContent"),s||e.appendChild(i.render())}e.style.display="block"}},r.prototype.close=function(){var t=this,e=t.container,n=t.config,i=t.bm;if(!(!n||!i)){var o=n.custom;if((0,E.isFunction)(o.close))return o.close(i.__customData());e&&(e.style.display="none")}},r.prototype.run=function(t){var e=t.Blocks;this.config=e.getConfig(),this.firstRender=!this.container,this.container=this.container||Vi("div"),this.editor=t,this.bm=e;var n=this.container;e.__behaviour({container:n}),this.config.custom&&e.__trgCustom(),this.open()},r.prototype.stop=function(){this.close()},r})(tr);const ST=kT;var TT=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),OT=(function(a){TT(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.run=function(t){var e=t.LayerManager,n=t.Panels,i=e.getConfig();if(!i.appendTo){if(!this.layers){var o="views-container",s=document.createElement("div"),c=n.getPanel(o)||n.addPanel({id:o});i.custom?e.__trgCustom({container:s}):s.appendChild(e.render()),c.set("appendContent",s).trigger("change:appendContent"),this.layers=s}this.layers.style.display="block"}},r.prototype.stop=function(){var t=this.layers;t&&(t.style.display="none")},r})(tr);const ET=OT;
1034var AT=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),MT=(function(a){AT(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.run=function(t,e){if(this.sender=e,!this.$cnt){var n=t.getConfig(),i=t.Panels,o=t.DeviceManager,s=t.SelectorManager,c=t.StyleManager,d="change:appendContent",f=(0,De.default)("<div></div>"),g=(0,De.default)("<div></div>"),m=(0,De.default)("<div></div>"),y=(0,De.default)("<div></div>");if(this.$cnt=f,this.$cntInner=g,g.append(m),g.append(y),f.append(g),o&&n.showDevices){var x=i.addPanel({id:"devices-c"}),w=o.render();x.set("appendContent",w).trigger(d)}var k=s.getConfig();k.custom?s.__trgCustom({container:m.get(0)}):k.appendTo||m.append(s.render([])),this.sm=c;var S=c.getConfig(),A=S.stylePrefix;this.$header=(0,De.default)('<div class="'.concat(A,'header">').concat(t.t("styleManager.empty"),"</div>")),f.append(this.$header),S.custom?c.__trgCustom({container:y.get(0)}):S.appendTo||y.append(c.render());var L="views-container",D=i.getPanel(L)||i.addPanel({id:L});D.set("appendContent",f).trigger(d);var W=t.getModel();this.listenTo(W,c.events.target,this.toggleSm)}this.toggleSm()},r.prototype.toggleSm=function(){var t=this,e=t.sender,n=t.sm,i=t.$cntInner,o=t.$header;e&&e.get&&!e.get("active")||!n||(n.getSelected()?(i==null||i.show(),o==null||o.hide()):(i==null||i.hide(),o==null||o.show()))},r.prototype.stop=function(){var t,e;(t=this.$cntInner)===null||t===void 0||t.hide(),(e=this.$header)===null||e===void 0||e.hide()},r})(tr);const PT=MT;var LT=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),DT=(function(a){LT(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.run=function(t,e){this.sender=e;var n=t.getModel(),i=t.Config,o=i.stylePrefix,s=t.TraitManager,c=s.getConfig();if(!c.appendTo){if(!this.$cn){var d=(0,De.default)("<div></div>"),f=(0,De.default)("<div></div>");this.$cn=d,this.$cn2=f,d.append(f),this.$header=(0,De.default)("<div>").append('<div class="'.concat(c.stylePrefix,'header">').concat(n.t("traitManager.empty"),"</div>")),d.append(this.$header),c.custom?s.__trgCustom({container:f.get(0)}):(f.append('<div class="'.concat(o,'traits-label">').concat(n.t("traitManager.label"),"</div>")),f.append(s.render()));var g=t.Panels,m=g.getPanel("views-container")||g.addPanel({id:"views-container"});m==null||m.set("appendContent",d.get(0)).trigger("change:appendContent"),this.target=n,this.listenTo(this.target,te.toggled,this.toggleTm)}this.toggleTm()}},r.prototype.toggleTm=function(){var t=this,e=t.sender,n=t.target,i=t.$cn2,o=t.$header;e&&e.get&&!e.get("active")||!n||(n.getSelectedAll().length===1?(i==null||i.show(),o==null||o.hide()):(i==null||i.hide(),o==null||o.show()))},r.prototype.stop=function(){var t,e;(t=this.$cn2)===null||t===void 0||t.hide(),(e=this.$header)===null||e===void 0||e.hide()},r})(tr);const IT=DT;var jT=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}
1034r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),NT=(function(a){jT(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.run=function(t,e,n){n===void 0&&(n={});var i=t.getModel(),o=i.get("clipboard"),s=t.getSelected();o!=null&&o.length&&s&&(t.getSelectedAll().forEach(function(c){var d,f,g,m=((f=(d=c.delegate)===null||d===void 0?void 0:d.copy)===null||f===void 0?void 0:f.call(d,c))||c,y=m.collection,x;if(y){var w=m.index()+1,k={at:w,action:n.action||"paste-component"};(0,E.contains)(o,m)&&m.get("copyable")?x=y.add(m.clone(),k):x=ay(t,o,m.parent(),k)}else{var S=(g=i.Pages.getSelected())===null||g===void 0?void 0:g.getMainComponent(),k={at:(S==null?void 0:S.components().length)||0,action:n.action||"paste-component"};x=ay(t,o,S,k)}x=(0,E.isArray)(x)?x:[x],x.forEach(function(A){return t.trigger(te.paste,A)})}),s.emitUpdate())},r})(tr);const RT=NT;function ay(a,r,t,e){var n=r.filter(function(o){return o.get("copyable")}),i=n.filter(function(o){return a.Components.canMove(t,o).result});return t.components().add(i.map(function(o){return o.clone()}),e)}var BT=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),VT=function(a,r,t){if(t||arguments.length===2)for(var e=0,n=r.length,i;e<n;e++)(i||!(e in r))&&(i||(i=Array.prototype.slice.call(r,0,e)),i[e]=r[e]);return a.concat(i||Array.prototype.slice.call(r))},Fh="core:component-outline",HT=(function(a){BT(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.getPanels=function(t){return this.panels||(this.panels=t.Panels.getPanels()),this.panels},r.prototype.preventDrag=function(t){t.abort=1},r.prototype.tglEffects=function(t){t===void 0&&(t=!1);var e=this.em,n=t?"on":"off";if(e){var i=e.Canvas,o=i.getBody(),s=i.getToolbarEl();s&&(s.style.display=t?"none":"");var c=o.querySelectorAll(".".concat(this.ppfx,"no-pointer"));(0,E.each)(c,function(d){return d.style.pointerEvents=t?"all":""}),e[n]("run:tlb-move:before",this.preventDrag)}},r.prototype.run=function(t,e){var n=this;this.sender=e,this.selected=VT([],t.getSelectedAll(),!0),t.select(),this.shouldRunSwVisibility||(this.shouldRunSwVisibility=t.Commands.isActive(Fh)),this.shouldRunSwVisibility&&t.stopCommand(Fh),t.getModel().stopDefault();var i=this.getPanels(t),o=t.Canvas.getElement(),s=t.getEl(),c=t.Config.stylePrefix;if(!this.helper){var d=document.createElement("span");d.className="".concat(c,"off-prv fa fa-eye-slash"),s.appendChild(d),d.onclick=function(){return n.stopCommand()},this.helper=d}this.helper.style.display="inline-block",i.forEach(function(g){return g.set("visible",!1)});var f=o.style;f.width="100%",f.height="100%",f.top="0",f.left="0",f.padding="0",f.margin="0",t.refresh(),this.tglEffects(!0)},r.prototype.stop=function(t){var e=this,n=e.sender,i=n===void 0?{}:n,o=e.selected;i.set&&i.set("active",0);var s=this.getPanels(t);this.shouldRunSwVisibility&&(t.runCommand(Fh),this.shouldRunSwVisibility=!1),t.getModel().runDefault(),s.forEach(function(d){return d.set("visible",!0)});var c=t.Canvas.getElement();c.setAttribute("style",""),o&&t.select(o),delete this.selected,this.helper&&(this.helper.style.display="none"),t.refresh(),this.tglEffects()},r})(tr);const FT=HT;var $T=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Er=function(){return Er=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];
1034for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Er.apply(this,arguments)},zT=function(a,r){var t={};for(var e in a)Object.prototype.hasOwnProperty.call(a,e)&&r.indexOf(e)<0&&(t[e]=a[e]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,e=Object.getOwnPropertySymbols(a);n<e.length;n++)r.indexOf(e[n])<0&&Object.prototype.propertyIsEnumerable.call(a,e[n])&&(t[e[n]]=a[e[n]]);return t},sn;(function(a){a.pt="pt",a.pc="pc",a.in="in",a.cm="cm",a.mm="mm",a.vw="vw",a.vh="vh",a.vmin="vmin",a.vmax="vmax",a.svw="svw",a.lvw="lvw",a.dvw="dvw",a.svh="svh",a.lvh="lvh",a.dvh="dvh",a.perc="%"})(sn||(sn={}));var UT=(function(a){$T(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.run=function(t,e,n){var i=this,o=t.Canvas,s=t.Utils,c=t.em,d=o.getCanvasView(),f=c.config.stylePrefix||"",g="".concat(f,"resizing"),m=n.onStart,y=m===void 0?function(){}:m,x=n.onMove,w=x===void 0?function(){}:x,k=n.onEnd,S=k===void 0?function(){}:k,A=n.updateTarget,L=A===void 0?function(){}:A,D=n.el,W=n.componentView,j=n.component,et=n.skipPositionUpdate,z=zT(n,["onStart","onMove","onEnd","updateTarget","el","componentView","component","skipPositionUpdate"]),B=D||(W==null?void 0:W.el)||j.getEl(),X={component:j,el:B},Z,F,st=function(_,Q,J){var gt=J.docs;gt&>.forEach(function(St){var wt=St.body,mt=wt.className||"";wt.className=(_=="add"?"".concat(mt," ").concat(g):mt.replace(g,"")).trim()})},q=Er(Er({appendTo:o.getResizerEl(),prefix:t.getConfig().stylePrefix,posFetcher:d.getElementPos.bind(d),mousePosFetcher:o.getMouseRelativePos.bind(o),docs:[document],updateOnMove:!0,skipUnitAdjustments:!0,onStart:function(_,Q){var J;y(_,Q);var gt=Q.el,St=Q.config,wt=Q.resizer,mt=St.keyHeight,It=St.keyWidth,Bt=St.currentUnit,se=St.keepAutoHeight,ue=St.keepAutoWidth;st("add",_,Q),Z=c.Styles.getModelToStyle(j),F=getComputedStyle(gt);var ne=Z.getStyle(),kt=Er({},wt.startDim),Ot=ne[It];St.autoWidth=ue&&Ot==="auto",isNaN(parseFloat(Ot))&&(Ot=F[It]);var Mt=ne[mt];St.autoHeight=se&&Mt==="auto",isNaN(parseFloat(Mt))&&(Mt=F[mt]);var zt=parseFloat(Ot),Kt=parseFloat(Mt),le=Ig(Ot),Zt=Ig(Mt);Bt&&(St.unitWidth=le,St.unitHeight=Zt);var ve=Er(Er({},X),{event:_,rect:kt,model:Z,modelWidth:{value:Ot,property:It,number:zt,unit:le},modelHeight:{value:Mt,property:mt,number:Kt,unit:Zt}});t.trigger(te.resizeStart,ve),t.trigger(te.resize,Er(Er({},ve),{type:"start"})),(J=n.afterStart)===null||J===void 0||J.call(n)},onMove:function(_,Q){w(_,Q);var J=Q.resizer,gt=Er(Er({},X),{event:_,delta:J.delta,pointer:J.currentPos,rect:J.rectDim});t.trigger(te.resizeStart,gt),t.trigger(te.resize,Er(Er({},gt),{type:"move"}))},onEnd:function(_,Q){var J;S(_,Q),st("remove",_,Q);var gt=Q.resizer,St=Er(Er({},X),{event:_,rect:gt.rectDim,moved:gt.moved});t.trigger(te.resizeEnd,St),t.trigger(te.resize,Er(Er({},X),{type:"end"})),(J=n.afterEnd)===null||J===void 0||J.call(n)},updateTarget:function(_,Q,J){var gt;if(L(_,Q,J),!!Z){var St=J.store,wt=J.selectedHandler,mt=J.config,It=J.resizer,Bt=J.event,se=mt.keyHeight,ue=mt.keyWidth,ne=mt.autoHeight,kt=mt.autoWidth,Ot=mt.unitWidth,Mt=mt.unitHeight,zt=["tc","bc"].indexOf(wt)>=0,Kt=["cl","cr"].indexOf(wt)>=0,le=!St,Zt={};if(!zt){var ve=((gt=o.getBody())===null||gt===void 0?void 0:gt.offsetWidth)||0,xe=Q.w<ve?Q.w:ve;Zt[ue]=kt?"auto":i.convertPxToUnit({el:B,elComputedStyle:F,valuePx:xe,unit:Ot})}Kt||(Zt[se]=ne?"auto":i.convertPxToUnit({el:B,elComputedStyle:F,valuePx:Q.h,unit:Mt,isHeight:!0})),!et&&c.getDragMode(j)&&(Zt.top="".concat(Q.t,"px"),Zt.left="".concat(Q.l,"px"));var ce=!1,P=function(Y){ce=!0;var ct=Er(Er({},Y||Zt),{__p:le});Z.addStyle(ct,{avoidStore:le}),c.Styles.__emitCmpStyleUpdate(ct,{components:j})},H=Er(Er({},X),{rect:Q,partial:le,event:Bt,style:Zt,updateStyle:P,convertPxToUnit:function(Y){return i.convertPxToUnit(Er({el:B,elComputedStyle:F},Y))},delta:It.delta,pointer:It.currentPos});t.trigger(te.resizeUpdate,H),!ce&&P()}}},z),n.options),Ct=this.canvasResizer;return Ct||(this.canvasResizer=new s.Resizer(q),Ct=this.canvasResizer),Ct=Ct,Ct.setOptions(q,!0),Ct.blur(),Ct.focus(B),Ct},r.prototype.stop=function(){var t;(t=this.canvasResizer)===null||t===void 0||t.blur()},r.prototype.convertPxToUnit=function(t){var e=t.el,n=t.valuePx,i=t.unit,o=t.dpi,s=o===void 0?96:o,c=t.roundDecimals,d=c===void 0?3:c,f=t.isHeight,g
1034=t.elComputedStyle,m=e.ownerDocument.defaultView,y=(m==null?void 0:m.innerWidth)||1,x=window.innerHeight||1,w=n,k=i;switch(i){case sn.pt:w=n*(72/s);break;case sn.pc:w=n*(6/s);break;case sn.in:w=n/s;break;case sn.cm:w=n/(s/2.54);break;case sn.mm:w=n/(s/25.4);break;case sn.vw:w=n/y*100;break;case sn.vh:w=n/x*100;break;case sn.vmin:{var S=Math.min(y,x);w=n/S*100;break}case sn.vmax:{var A=Math.max(y,x);w=n/A*100;break}case sn.perc:{var L=e.parentElement,D=e.offsetParent,W=(g==null?void 0:g.position)==="absolute"?D:L,j=(W==null?void 0:W.offsetWidth)||1,et=(W==null?void 0:W.offsetHeight)||1,z=f?et:j;w=n/z*100;break}case sn.svw:case sn.lvw:case sn.dvw:w=n/y*100;break;case sn.svh:case sn.lvh:case sn.dvh:w=n/x*100;break;default:k="px"}return"".concat(+w.toFixed(d)).concat(k)},r})(tr);const WT=UT;var ZT=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),nv=function(){return nv=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},nv.apply(this,arguments)},qT=(function(a){ZT(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.getOffsetMethod=function(t){var e=t||"";return"get".concat(e,"OffsetViewerEl")},r.prototype.run=function(t,e,n){var i=this.canvas,o=n||{},s=o.state||"",c=t.getConfig(),d=this.em.getZoomDecimal(),f=o.el;if(!c.showOffsets||!(f instanceof HTMLElement)||!c.showOffsetsSelected&&s=="Fixed"){t.stopCommand("".concat(this.id),n);return}if(!i.hasCustomSpot(kn.Spacing)){var g=nv({},o.elPos||i.getElementPos(f));(0,E.isUndefined)(o.top)||(g.top=o.top),(0,E.isUndefined)(o.left)||(g.left=o.left);var m=window.getComputedStyle(f),y=this.ppfx,x="".concat(s,"State"),w=this.getOffsetMethod(s),k=i[w](n.view);k.style.opacity="";var S=this["marginT".concat(s)],A=this["marginB".concat(s)],L=this["marginL".concat(s)],D=this["marginR".concat(s)],W=this["padT".concat(s)],j=this["padB".concat(s)],et=this["padL".concat(s)],z=this["padR".concat(s)];if(k.childNodes.length&&(this[x]="1",S=k.querySelector("[data-offset-m-t]"),A=k.querySelector("[data-offset-m-b]"),L=k.querySelector("[data-offset-m-l]"),D=k.querySelector("[data-offset-m-r]"),W=k.querySelector("[data-offset-p-t]"),j=k.querySelector("[data-offset-p-b]"),et=k.querySelector("[data-offset-p-l]"),z=k.querySelector("[data-offset-p-r]")),!this[x]){var B=s.toLowerCase(),X="".concat(B,"margin-v"),Z="".concat(B,"padding-v"),F=(0,De.default)('<div class="'.concat(y,'marginName">')).get(0),st=(0,De.default)('<div class="'.concat(y,'paddingName">')).get(0),q="".concat(y).concat(X,"-el"),Ct="".concat(y).concat(Z,"-el"),_="".concat(q," ").concat(y).concat(X),Q="".concat(Ct," ").concat(y).concat(Z);S=(0,De.default)('<div class="'.concat(_,'-top"></div>')).get(0),A=(0,De.default)('<div class="'.concat(_,'-bottom"></div>')).get(0),L=(0,De.default)('<div class="'.concat(_,'-left"></div>')).get(0),D=(0,De.default)('<div class="'.concat(_,'-right"></div>')).get(0),W=(0,De.default)('<div class="'.concat(Q,'-top"></div>')).get(0),j=(0,De.default)('<div class="'.concat(Q,'-bottom"></div>')).get(0),et=(0,De.default)('<div class="'.concat(Q,'-left"></div>')).get(0),z=(0,De.default)('<div class="'.concat(Q,'-right"></div>')).get(0),this["marginT".concat(s)]=S,this["marginB".concat(s)]=A,this["marginL".concat(s)]=L,this["marginR".concat(s)]=D,this["padT".concat(s)]=W,this["padB".concat(s)]=j,this["padL".concat(s)]=et,this["padR".concat(s)]=z,F.appendChild(S),F.appendChild(A),F.appendChild(L),F.appendChild(D),st.appendChild(W),st.appendChild(j),st.appendChild(et),st.appendChild(z),k.appendChild(F),k.appendChild(st),this[x]="1"}var J="px",gt=parseFloat(m.marginLeft.replace(J,""))*d,St=parseFloat(m.marginRight.replace(J,""))*d,wt=parseFloat(m.marginTop.replace(J,""))*d,mt=parseFloat(m.marginBottom.replace(J,""))*d,It=S.style,Bt=A.style,se=L.style,ue=D.style,ne=W.style,kt=j.style,Ot=et.style,Mt=z.style,zt=parseFloat(g.left),Kt=parseFloat(m.width)*d+J;
1034It.height=wt+J,It.width=Kt,It.top=g.top-wt+J,It.left=zt+J,Bt.height=mt+J,Bt.width=Kt,Bt.top=g.top+g.height+J,Bt.left=zt+J;var le=g.height+wt+mt+J,Zt=g.top-wt+J;se.height=le,se.width=gt+J,se.top=Zt,se.left=zt-gt+J,ue.height=le,ue.width=St+J,ue.top=Zt,ue.left=zt+g.width+J;var ve=parseFloat(m.paddingTop)*d;ne.height=ve+J;var xe=parseFloat(m.paddingBottom)*d;kt.height=xe+J;var ce=g.height-xe-ve+J,P=g.top+ve+J;Ot.height=ce,Ot.width=parseFloat(m.paddingLeft)*d+J,Ot.top=P;var H=parseFloat(m.paddingRight)*d;Mt.height=ce,Mt.width=H+J,Mt.top=P}},r.prototype.stop=function(t,e,n){n===void 0&&(n={});var i=n||{},o=i.state||"",s=this.getOffsetMethod(o),c=n.view,d=this.canvas,f=d[s](c);f.style.opacity=0},r})(tr);const KT=qT;var GT=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),YT=(function(a){GT(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.init=function(){(0,E.bindAll)(this,"_onFramesChange")},r.prototype.run=function(t){this.toggleVis(t,!0)},r.prototype.stop=function(t){this.toggleVis(t,!1)},r.prototype.toggleVis=function(t,e){if(e===void 0&&(e=!0),!t.Commands.isActive("preview")){var n=t.Canvas,i=e?"on":"off",o=n.getModel();o[i]("change:frames",this._onFramesChange),this.handleFrames(n.getFrames(),e)}},r.prototype.handleFrames=function(t,e){var n=this;t.forEach(function(i){var o;!((o=i.view)===null||o===void 0)&&o.loaded&&n._upFrame(i,e),i.__ol||(i.on("loaded",function(){return n._upFrame(i)}),i.__ol=!0)})},r.prototype._onFramesChange=function(t,e){this.handleFrames(e)},r.prototype._upFrame=function(t,e){var n,i=this,o=i.ppfx,s=i.em,c=i.id,d=Xr(e)?e:s.Commands.isActive(c),f=d?"add":"remove",g="".concat(o,"dashed");(n=t.view)===null||n===void 0||n.getBody().classList[f](g)},r})(tr);const XT=YT;var JT=function(){return{stylePrefix:"com-",defaults:{},strict:!0,defaultOptions:{}}};const QT=JT;var tO=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Vf=function(){return Vf=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Vf.apply(this,arguments)},oy=function(a,r,t){if(t||arguments.length===2)for(var e=0,n=r.length,i;e<n;e++)(i||!(e in r))&&(i||(i=Array.prototype.slice.call(r,0,e)),i[e]=r[e]);return a.concat(i||Array.prototype.slice.call(r))},eO=function(a){return(0,E.isFunction)(a)&&(a===tr||a.prototype instanceof tr)},sy=[["preview",FT,"preview"],["resize",WT,"resize"],["fullscreen",rT,"fullscreen"],["copy",YS],["paste",RT],["canvas-move",kS],["canvas-clear",wS],["open-code",QS,"export-template"],["open-layers",ET,"open-layers"],["open-styles",PT,"open-sm"],["open-traits",IT,"open-tm"],["open-blocks",ST,"open-blocks"],["open-assets",_T,"open-assets"],["component-select",Ox,"select-comp"],["component-outline",XT,"sw-visibility"],["component-offset",KT,"show-offset"],["component-move",bT,"move-comp"],["component-next",HS],["component-prev",zS],["component-enter",IS],["component-exit",RS,"select-parent"],["component-delete",ES],["component-style-clear",ZS],["component-drag",PS]],Ax={preserveSelected:1},Mx=function(a){return function(r){return a.trigger(te.dragStart,r)}},Px=function(a){return function(r){return a.trigger(te.drag,r)}},Lx=function(a,r,t){return t===void 0&&(t={}),function(e,n,i){setTimeout(function(){r.forEach(function(o){return o.set("status",o.get("selectable")?"selected":"")}
1034),a.setSelected(r),r[0].emitUpdate()}),a.trigger(te.dragEnd,i),setTimeout(function(){return a.runDefault(Ax)}),(t.altMode||i.cancelled)&&a.set("_cmpDrag",1)}},rO=(function(a){tO(r,a);function r(t){var e=a.call(this,t,"Commands",QT())||this;e.CommandAbstract=tr,e.defaultCommands={},e.commands={},e.active={},e.events=wi;var n=e.config,i=n.pStylePrefix,o=e.defaultCommands;i&&(n.stylePrefix=i+n.stylePrefix),Object.keys(n.defaults).forEach(function(c){var d=n.defaults[c];d.id&&e.add(d.id,d)}),o["tlb-delete"]={run:function(c){return c.runCommand("core:component-delete")}},o["tlb-clone"]={run:function(c){c.runCommand("core:copy"),c.runCommand("core:paste",{action:"clone-component"})}},o["tlb-move"]={run:function(c,d,f){var g,m;f===void 0&&(f={});var y=c.getModel(),x=f.event,w=f.target,k=Array.isArray(w)?w:w?[w]:oy([],c.getSelectedAll(),!0),S=k.map(function(F){var st,q;return((q=(st=F.delegate)===null||st===void 0?void 0:st.move)===null||q===void 0?void 0:q.call(st,F))||F}).filter(Boolean),A=S[S.length-1],L=(x==null?void 0:x.type)==="dragstart",D=["absolute","translate"];if(!(A!=null&&A.get("draggable")))return y.logWarning("The element is not draggable");var W=f.mode||A.get("dmode")||y.get("dmode"),j=function(){return y.stopDefault(Ax)},et=(0,E.includes)(D,W);S.forEach(function(F){return F.trigger("disable",{fromMove:!0})}),L?setTimeout(j,0):j();var z=Mx(y),B=Px(y),X=Lx(y,S,{altMode:et});if(et)c.runCommand("core:component-drag",{guidesInfo:1,mode:W,target:A,onStart:z,onDrag:B,onEnd:X,event:x});else{L&&((g=x==null?void 0:x.dataTransfer)===null||g===void 0||g.setDragImage((m=A.view)===null||m===void 0?void 0:m.el,0,0));var Z=c.Commands.get("move-comp");Z.onStart=z,Z.onDrag=B,Z.onEndMoveFromModel=X,Z.initSorterFromModels(S)}S.filter(function(F){return F.get("selectable")}).forEach(function(F){return F.set("status","freezed-selected")})}},o["core:undo"]=function(c){return c.UndoManager.undo()},o["core:redo"]=function(c){return c.UndoManager.redo()},sy.forEach(function(c){var d=c[2],f=c[1],g="core:".concat(c[0]);o[g]=f,d&&(o[d]=f,["run","stop"].forEach(function(m){t.on("".concat(m,":").concat(d),function(){for(var y=[],x=0;x<arguments.length;x++)y[x]=arguments[x];return t.trigger.apply(t,oy(["".concat(m,":").concat(g)],y,!1))})}))}),n.model=t.Canvas;for(var s in o)e.add(s,o[s]);return e}return r.prototype.add=function(t,e){if(eO(e)){var n=e.prototype,i=n.stop===tr.prototype.stop;return n.noStop=i,this.commands[t]=e,this}var o=(0,E.isFunction)(e)?{run:e}:e;return o.stop||(o.noStop=!0),delete o.initialize,o.id=t,this.commands[t]=tr.extend(o),this},r.prototype.remove=function(t){return this.isActive(t)&&this.stopCommand(this.get(t),{force:!0}),delete this.active[t],delete this.commands[t],this},r.prototype.get=function(t){var e=this.commands[t];return(0,E.isFunction)(e)&&(e=new e(this.config),this.commands[t]=e),e?e.id=t:this.em.logWarning("'".concat(t,"' command not found")),e},r.prototype.extend=function(t,e){e===void 0&&(e={});var n=this.get(t);if(n){var i=Vf(Vf({},n.constructor.prototype),e);this.add(t,i);var o=sy.filter(function(c){return"core:".concat(c[0])===t&&c[2]})[0],s=o==null?void 0:o[2];s&&this.add(s,i)}return this},r.prototype.has=function(t){return!!this.commands[t]},r.prototype.getAll=function(){return this.commands},r.prototype.run=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return this.runCommand(this.get(t),e[0])},r.prototype.stop=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return this.stopCommand(this.get(t),e[0])},r.prototype.isActive=function(t){return this.getActive().hasOwnProperty(t)},r.prototype.getActive=function(){return this.active},r.prototype.runCommand=function(t,e){var n,i;e===void 0&&(e={});var o;if(t!=null&&t.run){var s=this,c=s.em,d=s.config,f=t.id,g=c.Editor;if(!this.isActive(f)||e.force||!d.strict){var m=(i=(n=d.defaultOptions)===null||n===void 0?void 0:n[f])===null||i===void 0?void 0:i.run;(0,E.isFunction)(m)&&(e=m(e)),o=g&&t.callRun(g,e)}}return o},r.prototype.stopCommand=function(t,e){var n,i;e===void 0&&(e={});var o;if(t!=null&&t.run){var s=this,c=s.em,d=s.config,f=t.id,g=c.Editor;if(this.isActive(f)||e.force||!d.strict){var m=(i=(n=d.defaultOptions)===null||n===void 0?void 0:n[f])===null||i===void 0?void 0:i.stop;(0,E.isFunction)(m)&&(e=m(e)),o=t.callStop(g,e)}}return o},r.prototype.create=function(t){t.stop||(t.noStop=!0);var e=tr.extend(t);return new e(this.config)},r.prototype.__onRun=function(t,e){var n=this,i=n.em,o=n.events;i.on("".concat(o.runCommand).concat(t),e)},r.prototype.__onStop=function(t,e){var n=this,i=n.em,o=n.events;i.on("".concat(o.stopCommand).concat(t),e)},r.prototype.destroy=function(){this.defaultCommands={},this.commands={},this.active={}},r})(Jn);const nO=rO;
1034var iO=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),iv=function(){return iv=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},iv.apply(this,arguments)},ly="contentEditable",su="data-toggle-move",aO=(function(a){iO(r,a);function r(t){var e=a.call(this,t)||this;(0,E.bindAll)(e,"__render"),e.opt=t,e.module=t.module,e.config=t.config||{},e.sorter=t.sorter||"",e.parentView=t.parentView;var n=e,i=n.model,o=n.pfx,s=n.ppfx,c=i.get("type")||"default";return e.className="".concat(o,"layer ").concat(o,"layer__t-").concat(c," no-select ").concat(s,"two-color"),e.inputNameCls="".concat(s,"layer-name"),e.clsTitleC="".concat(o,"layer-title-c"),e.clsTitle="".concat(o,"layer-title"),e.clsCaret="".concat(o,"layer-caret"),e.clsCount="".concat(o,"layer-count"),e.clsMove="".concat(o,"layer-move"),e.clsChildren="".concat(o,"layer-children"),e.clsNoChild="".concat(o,"layer-no-chld"),e.clsEdit="".concat(e.inputNameCls,"--edit"),e.clsNoEdit="".concat(e.inputNameCls,"--no-edit"),e.initComponent(),e}return r.prototype.events=function(){var t;return t={},t["mousedown [".concat(su,"]")]="startSort",t["touchstart [".concat(su,"]")]="startSort",t["click [data-toggle-visible]"]="toggleVisibility",t["click [data-toggle-open]"]="toggleOpening",t["click [data-toggle-select]"]="handleSelect",t["mouseover [data-toggle-select]"]="handleHover",t["mouseout [data-toggle-select]"]="handleHoverOut",t["dblclick [data-name]"]="handleEdit",t["keydown [data-name]"]="handleEditKey",t["focusout [data-name]"]="handleEditEnd",t},r.prototype.template=function(t){var e=this,n=e.pfx,i=e.ppfx,o=e.config,s=e.clsNoEdit,c=e.module,d=e.opt,f=e.em,g=o.hidable,m=c.getComponents(t).length,y=m?"":this.clsNoChild,x="".concat(this.clsTitle," ").concat(y),w="".concat(this.clsTitleC),k="".concat(this.inputNameCls," ").concat(s," ").concat(i,"no-app"),S=d.level||0,A="".concat(S*10,"px"),L=t.getName(),D=t.getIcon(),W="".concat(n,"layer"),j=(f==null?void 0:f.getConfig()).icons,et=j,z=et.move,B=et.eye,X=et.eyeOff,Z=et.chevron;return` 1035 <div class="`.concat(n,"layer-item ").concat(i,`one-bg" data-toggle-select> 1036 <div class="`).concat(n,`layer-item-left"> 1037 `).concat(g?'<i class="'.concat(n,`layer-vis" data-toggle-visible> 1038 <i class="`).concat(n,'layer-vis-on">').concat(B,`</i> 1039 <i class="`).concat(n,'layer-vis-off">').concat(X,`</i> 1040 </i>`):"",` 1041 <div class="`).concat(w,`"> 1042 <div class="`).concat(x,'" style="padding-left: ').concat(A,`"> 1043 <div class="`).concat(n,'layer-title-inn" title="').concat(L,`"> 1044 <i class="`).concat(this.clsCaret,'" data-toggle-open>').concat(Z,`</i> 1045 `).concat(D?'<span class="'.concat(W,'__icon">').concat(D,"</span>"):"",` 1046 <span class="`).concat(k,'" data-name>').concat(L,`</span> 1047 </div> 1048 </div> 1049 </div> 1050 </div> 1051 <div class="`).concat(n,`layer-item-right"> 1052 <div class="`).concat(this.clsCount,'" data-count>').concat(m||"",`</div> 1053 <div class="`).concat(this.clsMove,'" ').concat(su,">").concat(z||"",`</div> 1054 </div> 1055 </div> 1056 <div class="`).concat(this.clsChildren,`"></div> 1057 `)},Object.defineProperty(r.prototype,"em",{get:function(){return this.module.em},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"ppfx",{get:function(){return this.em.getConfig().stylePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"pfx",{get:function(){return this.config.stylePrefix}
1057,enumerable:!1,configurable:!0}),r.prototype.initComponent=function(){var t=this,e=this,n=e.model,i=e.config,o=i.onInit,s=n.components();this.listenTo(s,"remove add reset",this.checkChildren),[["change:status",this.updateStatus],["change:open",this.updateOpening],["change:layerable",this.updateLayerable],["change:style:display",this.updateVisibility],["change:draggable",this.updateMove],["rerender:layer",this.render],["change:name change:custom-name",this.updateName]].forEach(function(c){return t.listenTo(n,c[0],c[1])}),this.$el.data("model",n),this.$el.data("collection",s),n.viewLayer=this,o.bind(this)({component:n,render:this.__render,listenTo:this.listenTo})},r.prototype.updateName=function(){this.getInputName().innerText=this.model.getName()},r.prototype.getVisibilityEl=function(){return this.getItemContainer().find("[data-toggle-visible]")},r.prototype.updateVisibility=function(){var t=this,e=t.pfx,n=t.model,i=t.module,o="".concat(e,"layer-hidden"),s=!i.isVisible(n),c=s?"addClass":"removeClass";this.$el[c](o),this.getVisibilityEl()[c]("".concat(e,"layer-off"))},r.prototype.updateMove=function(){var t=this,e=t.model,n=t.config,i=this.getItemContainer().find("[".concat(su,"]"))[0];if(i){var o=e.get("draggable")&&n.sortable;i.style.display=o?"":"none"}},r.prototype.toggleVisibility=function(t){t==null||t.stopImmediatePropagation();var e=this,n=e.module,i=e.model;n.setVisible(i,!n.isVisible(i))},r.prototype.handleEdit=function(t){t==null||t.stopPropagation();var e=this,n=e.em,i=e.$el,o=e.clsNoEdit,s=e.clsEdit,c=this.getInputName();c[ly]="true",c.focus(),document.execCommand("selectAll",!1),n.setEditing(!0),i.find(".".concat(this.inputNameCls)).removeClass(o).addClass(s)},r.prototype.handleEditKey=function(t){t.stopPropagation(),(rb(t)||K5(t))&&this.handleEditEnd(t)},r.prototype.handleEditEnd=function(t){t==null||t.stopPropagation();var e=this,n=e.em,i=e.$el,o=e.clsNoEdit,s=e.clsEdit,c=e.model,d=this.getInputName(),f=d.textContent;d.scrollLeft=0,d[ly]="false",c.setName(f),n.setEditing(!1),i.find(".".concat(this.inputNameCls)).addClass(o).removeClass(s),this.updateName()},r.prototype.getInputName=function(){return this.inputName||(this.inputName=this.el.querySelector(".".concat(this.inputNameCls))),this.inputName},r.prototype.updateOpening=function(){var t=this,e=t.$el,n=t.model,i=t.pfx,o="open",s="".concat(i,"layer-open"),c=this.getCaret();this.module.isOpen(n)?(e.addClass(o),c.addClass(s)):(e.removeClass(o),c.removeClass(s))},r.prototype.toggleOpening=function(t){var e=this,n=e.model,i=e.module;t==null||t.stopImmediatePropagation(),n.get("components").length&&i.setOpen(n,!i.isOpen(n))},r.prototype.handleSelect=function(t){t==null||t.stopPropagation();var e=this,n=e.module,i=e.model;n.setLayerData(i,{selected:!0},{event:t})},r.prototype.handleHover=function(t){t==null||t.stopPropagation();var e=this,n=e.module,i=e.model;n.setLayerData(i,{hovered:!0})},r.prototype.handleHoverOut=function(t){t==null||t.stopPropagation();var e=this,n=e.module,i=e.model;n.setLayerData(i,{hovered:!1})},r.prototype.startSort=function(t){var e,n,i;t.stopPropagation();var o=this,s=o.em,c=o.sorter,d=o.model;if(!(t.button&&t.button!==0)&&c){var f=((n=(e=d.delegate)===null||e===void 0?void 0:e.move)===null||n===void 0?void 0:n.call(e,d))||d;c.eventHandlers=iv({legacyOnStartSort:Mx(s),legacyOnMoveClb:Px(s),legacyOnEndMove:Lx(s,[f])},c.eventHandlers);var g=((i=f.viewLayer)===null||i===void 0?void 0:i.el)||t.target;c.startSort([{element:g}])}},r.prototype.updateStatus=function(){ar.prototype.updateStatus.apply(this,[{avoidHover:!this.config.highlightHover,noExtHl:!0}])},r.prototype.getItemContainer=function(){return this.$el.children("[data-toggle-select]")},r.prototype.checkChildren=function(){var t=this,e=t.model,n=t.clsNoChild,i=t.module,o=i.getComponents(e).length,s=this.getItemContainer(),c=s.find(".".concat(this.clsTitle)),d=s.find("[data-count]");c[o?"removeClass":"addClass"](n),d.html("".concat(o||"")),!o&&i.setOpen(e,!1)},r.prototype.getCaret=function(){return(!this.caret||!this.caret.length)&&(this.caret=this.getItemContainer().find(".".concat(this.clsCaret))),this.caret},r.prototype.setRoot=function(t){var e,n=(0,E.isString)(t)?(e=this.em.getWrapper())===null||e===void 0?void 0:e.find(t)[0]:t;n&&(this.stopListening(),this.model=n,this.initComponent(),this._rendered&&this.render())},r.prototype.updateLayerable=function(){var t=this.parentView,e=t||this;e.render()},r.prototype.__clearItems=function(){var t;(t=this.items)===null||t===void 0||t.remove()},r.prototype.remove=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Ze.prototype.remove.apply(this,t),delete this.model.viewLayer,this.__clearItems(),this},r.prototype.render=function(){var t=this,e=t.model,n=t.config,i=t.pfx,o=t.ppfx,s=t.opt,c=t.sorter;this.__clearItems();var d=s.opened,f=s.module,g=s.ItemView,m=!f.__isLayerable(e),y=this.$el.empty(),x=s.level+1;delete this.inputName,this.items=new vS({ItemView:g,collection:e.get("
1057components"),config:n,sorter:c,opened:d,parentView:this,parent:e,level:x,module:f});var w=this.items.render().$el;return!n.showWrapper&&x===1?y.append(w):(y.html(this.template(e)),y.find(".".concat(this.clsChildren)).append(w)),!f.isVisible(e)&&(this.className+=" ".concat(i,"hide")),m&&(this.className+=" ".concat(o,"hidden")),y.attr("class",this.className),this.updateStatus(),this.updateOpening(),this.updateVisibility(),this.updateMove(),this.__render(),this._rendered=!0,this},r.prototype.__render=function(){var t=this,e=t.model,n=t.config,i=t.el,o=n.onRender,s={component:e,el:i};o.bind(this)(s),this.em.trigger(Rf.render,s)},r})(Ze);const oO=aO;var sO=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),av=function(){return av=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},av.apply(this,arguments)},$h={mediaText:""},lO=["open","status","locked","custom-name","components","classes"].map(function(a){return"".concat(te.update,":").concat(a)}).join(" "),cO=function(a){return a===void 0&&(a={}),(a.display||"").trim().indexOf("none")===0},dO=(function(a){sO(r,a);function r(t){var e=a.call(this,t,"LayerManager",dS())||this;return e.events=Rf,(0,E.bindAll)(e,"componentChanged","__onRootChange","__onComponent"),e.model=new Ea(e,{opened:{}}),e.config.stylePrefix=e.config.pStylePrefix,e}return r.prototype.onLoad=function(){var t=this,e=this,n=e.em,i=e.config,o=e.model;o.listenTo(n,te.selected,this.componentChanged),o.on("change:root",this.__onRootChange),o.listenTo(n,lO,this.__onComponent),this.componentChanged(),o.listenToOnce(n,"load",function(){t.setRoot(i.root),t.__appendTo()})},r.prototype.setRoot=function(t){var e=this.em.getWrapper(),n=os(t)?t:e;t&&(0,E.isString)(t)&&Jr()&&(n=e.find(t)[0]||e);var i=this.__getLayerFromComponent(n);return this.model.set("root",i),i},r.prototype.getRoot=function(){return this.model.get("root")},r.prototype.getComponents=function(t){var e=this;return t.components().map(function(n){return e.__getLayerFromComponent(n)}).filter(function(n){return e.__isLayerable(n)})},r.prototype.setOpen=function(t,e){t.set("open",e)},r.prototype.isOpen=function(t){return!!t.get("open")},r.prototype.setVisible=function(t,e){var n="__prev-display",i=t.getStyle($h),o=i.display;if(e){var s=t.get(n);delete i.display,s&&(i.display=s,t.unset(n))}else o&&t.set(n,o),i.display="none";t.setStyle(i,$h),this.updateLayer(t),this.em.trigger(te.toggled)},r.prototype.isVisible=function(t){return!cO(t.getStyle($h))},r.prototype.setLocked=function(t,e){t.set("locked",e)},r.prototype.isLocked=function(t){return!!t.get("locked")},r.prototype.setName=function(t,e){t.set("custom-name",e)},r.prototype.getName=function(t){return t.getName()},r.prototype.getLayerData=function(t){var e=t.get("status");return{name:t.getName(),open:this.isOpen(t),selected:e==="selected",hovered:e==="hovered",visible:this.isVisible(t),locked:this.isLocked(t),components:this.getComponents(t)}},r.prototype.setLayerData=function(t,e,n){var i;n===void 0&&(n={});var o=this,s=o.em,c=o.config,d=e.open,f=e.selected,g=e.hovered,m=e.visible,y=e.locked,x=e.name,w=av({fromLayers:!0},n);if(Xr(d)&&this.setOpen(t,d),Xr(f))if(f){s.setSelected(t,w);var k=c.scrollCanvas;k&&((i=t.views)===null||i===void 0||i.forEach(function(S){return S.scrollIntoView(k)}))}else s.removeSelected(t,w);Xr(g)&&c.showHover&&(g?s.setHovered(t,w):s.setHovered(null,w)),Xr(m)&&m!==this.isVisible(t)&&this.setVisible(t,m),Xr(y)&&this.setLocked(t,y),Xr(x)&&this.setName(t,x)},r.prototype.componentChanged=function(t,e){var n;if(e===void 0&&(e={}),!e.fromLayers){var i=this,o=i.em,s=i.config,c=s.scrollLayers,d=this.model.get("opened"),f=o.getSelected(),g=f==null?void 0:f.parent();for(var m in d)d[m].set("open",!1),delete d[m];for(;g;)g.set("open",!0),d[g.cid]=g,g=g.parent();if(f&&c){var y=(n=f.viewLayer)===null||n===void 0?void 0:n.el;y==null||y.scrollIntoView(c)}}},r.prototype.getAll=function(){return this.view},r.prototype.render=function(){var t,e,n=this,i=n.config,o=n.model,s=oO.extend(i.extend);return this.view=new s({el:(t=this.view)===null||t===void 0?void 0:t.el,ItemView:s,level:0,config:i,opened:o.get("opened"),model:this.getRoot(),module:this}),(e=this.view)===null||e===void 0?void 0:e.render().el},r.prototype.destroy=function(){var t;(t=this.view)===null||t===void 0||t.remove()},r.prototype.__onRootChange=function(){var t,e=this,n=e.em,i=e.events,o=this.getRoot();(t=this.view)===null||t===void 0||t.setRoot(o),n.trigger(i.root,o),this.__trgCustom()},r.prototype.__getLayerFromComponent=function(t){var e,n;return((n=(e=t.delegate)===null||e===void 0?void 0:e.layer)===null||n===void 0?void 0:n.call(e,t))||t},r.prototype.__onComponent=function(t){this.updateLayer(t)},r.prototype.__isLayerable=function(t){var e=t.tagName,n=this.config.hideTextnode,i=!n||!t.isInstanceOf("textnode")&&e!=="br";return i&&t.get("layerable")},r.prototype.__trgCustom=function(t){var e=this,n=e.__ctn,i=e.em,o=e.events;this.__ctn=n||(t==null?void 0:t.container),i.trigger(o.custom,{container:this.__ctn,root:this.getRoot()})},r.prototype.updateLayer=function(t,e){var n=this,i=n.em,o=n.events;i.trigger(o.component,t,e)},r})(Jn);const uO=dO;var fO=function(){return{assets:[],noAssets:"",stylePrefix:"am-",upload:"",uploadName:"files",headers:{},params:{},credentials:"include",multiUpload:!0,multiUploadSuffix:"[]",autoAdd:!0,customFetch:void 0,uploadFile:void 0,embedAsBase64:!0,handleAdd:void 0,beforeUpload:void 0,showUrlInput:!0,custom:!1,dropzone:!1,openAssetsOnDrop:!0,dropzoneContent:""}};const pO=fO;
1057var hO=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Dx=(function(a){hO(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.getDefaults=function(){return(0,E.result)(this.prototype,"defaults")},r.prototype.defaults=function(){return{type:"",src:""}},r.prototype.getType=function(){return this.get("type")},r.prototype.getSrc=function(){return this.get("src")||""},r.prototype.getFilename=function(){return this.getSrc().split("/").pop().split("?").shift()},r.prototype.getExtension=function(){return this.getFilename().split(".").pop()},r})(We);const ov=Dx;Dx.prototype.idAttribute="src";var gO=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Hf=function(){return Hf=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Hf.apply(this,arguments)},vO=(function(a){gO(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.defaults=function(){return Hf(Hf({},ov.getDefaults()),{type:"image",unitDim:"px",height:0,width:0})},r})(ov);const mO=vO;var yO=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),bO=(function(a){yO(r,a);function r(t){var e=a.call(this,t)||this;e.options=t,e.collection=t.collection;var n=t.config||{};e.config=n,e.pfx=n.stylePrefix||"",e.ppfx=n.pStylePrefix||"",e.em=n.em,e.className=e.pfx+"asset",e.listenTo(e.model,"destroy remove",e.remove),e.model.view=e;var i=e.init&&e.init.bind(e);return i&&i(t),e}return r.prototype.__getBhv=function(){var t=this.em,e=t==null?void 0:t.Assets;return(e==null?void 0:e.__getBehaviour())||{}},r.prototype.template=function(t,e){var n=this.pfx;return` 1058 <div class="`.concat(n,`preview-cont"> 1059 `).concat(this.getPreview(),` 1060 </div> 1061 <div class="`).concat(n,`meta"> 1062 `).concat(this.getInfo(),` 1063 </div> 1064 <div class="`).concat(n,`close" data-toggle="asset-remove"> 1065 ⨯ 1066 </div> 1067 `)},r.prototype.updateTarget=function(t){t&&t.set&&(t.set("attributes",(0,E.clone)(t.get("attributes"))),t.set("src",this.model.get("src")))},r.prototype.getPreview=function(){return""},r.prototype.getInfo=function(){return""},r.prototype.render=function(){var t=this.el;return t.innerHTML=this.template(this,this.model),t.className=this.className,this},r})(Ze);const xO=bO;var wO=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),cy=function(a,r){return Object.defineProperty?Object.defineProperty(a,"raw",{value:r}):a.raw=r,a},Ix=(function(a){wO(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.getPreview=function(){var t=this,e=t.pfx,n=t.ppfx,i=t.model,o=i.get("src");return Gn(dy||(dy=cy([` 1068 <div class="`,`preview" style="background-image: url('`,`');"></div> 1069 <div class="`,"preview-bg ",`checker-bg"></div> 1070 `],[` 1071 <div class="`,`preview" style="background-image: url('`,`');"></div> 1072 <div class="`,"preview-bg ",`checker-bg"></div> 1073 `])),e,o,e,n)},r.prototype.getInfo=function(){var t=this,e=t.pfx,n=t.model,i=n.get("name"),o=n.get("width"),s=n.get("height"),c=n.get("unitDim"),d=o&&s?"".concat(o,"x").concat(s).concat(c):"";
1073return i=i||n.getFilename(),Gn(uy||(uy=cy([` 1074 <div class="`,'name">',`</div> 1075 <div class="`,'dimensions">',`</div> 1076 `],[` 1077 <div class="`,'name">',`</div> 1078 <div class="`,'dimensions">',`</div> 1079 `])),e,i,e,d)},r.prototype.init=function(t){var e=this.pfx;this.className+=" ".concat(e,"asset-image")},r.prototype.onClick=function(){var t=this,e=t.model,n=t.pfx,i=this.__getBhv().select,o=this.config.onClick,s=this.collection;s.trigger("deselectAll"),this.$el.addClass(n+"highlight"),(0,E.isFunction)(i)?i(e,!1):(0,E.isFunction)(o)?o(e):this.updateTarget(s.target)},r.prototype.onDblClick=function(){var t=this,e=t.em,n=t.model,i=this.__getBhv().select,o=this.config.onDblClick,s=this.collection,c=s.target,d=s.onSelect;(0,E.isFunction)(i)?i(n,!0):(0,E.isFunction)(o)?o(n):(this.updateTarget(c),e==null||e.Modal.close()),(0,E.isFunction)(d)&&d(n)},r.prototype.onRemove=function(t){t.stopImmediatePropagation(),this.model.collection.remove(this.model)},r})(xO);const _O=Ix;Ix.prototype.events={"click [data-toggle=asset-remove]":"onRemove",click:"onClick",dblclick:"onDblClick"};var dy,uy,Ff=function(){return Ff=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Ff.apply(this,arguments)},CO={types:[],initialize:function(a,r){var t=this;r===void 0&&(r={});var e=r.em;this.em=e,this.opts=r,this.model=function(i,o){i===void 0&&(i={}),o===void 0&&(o={});var s,c,d;if(i&&i.type){var f=t.getBaseType();d=t.getType(i.type),s=d?d.model:f.model,c=d?d.view:f.view}else{var g=t.recognizeType(i);d=g.type,s=d.model,c=d.view,i=g.attributes}var m=new s(i,Ff(Ff({},o),{em:e}));return m.typeView=c,t.model.prototype=s.prototype,m};var n=this.init&&this.init.bind(this);n&&n()},recognizeType:function(a){for(var r=this.getTypes(),t=0;t<r.length;t++){var e=r[t],n=e.isType(a);if(n=typeof n=="boolean"&&n?{type:e.id}:n,n)return{type:e,attributes:n}}return{type:this.getBaseType(),attributes:a}},getBaseType:function(){var a=this.getTypes();return a[a.length-1]},getTypes:function(){return this.types},getType:function(a){for(var r=this.getTypes(),t=0;t<r.length;t++){var e=r[t];if(e.id===a)return e}},addType:function(a,r){var t=this.getType(a),e=this.getBaseType(),n=t?t.model:e.model,i=t?t.view:e.view,o=r.model,s=r.view,c=r.isType;o=o instanceof We||(0,E.isFunction)(o)?o:n.extend(o||{}),s=s instanceof Ze||(0,E.isFunction)(s)?s:i.extend(s||{}),this.extendViewApi&&!r.model&&!r.view&&(s=s.extend(r)),t?(t.model=o,t.view=s,t.isType=c||t.isType):(r.id=a,r.model=o,r.view=s,r.isType=c||function(d){if(d&&d.type==a)return!0},this.getTypes().unshift(r))},removeType:function(a){var r=this.getType(a);if(r){var t=this.getTypes().indexOf(r);return t>=0&&this.getTypes().splice(t,1),r}}};const jx=CO;var kO=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),SO=Rr.extend(jx),Nx=(function(a){kO(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r})(SO);const zh=Nx;Nx.prototype.types=[{id:"image",model:mO,view:_O,isType:function(a){return typeof a=="string"?{type:"image",src:a}:a}}];var sv;(function(a){a.add="asset:add",a.remove="asset:remove",a.removeBefore="asset:remove:before",a.update="asset:update",a.open="asset:open",a.close="asset:close",a.uploadStart="asset:upload:start",a.uploadEnd="asset:upload:end",a.uploadError="asset:upload:error",a.uploadResponse="asset:upload:response",a.custom="asset:custom",a.all="asset"})(sv||(sv={}));const fy=sv;var TO=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}
1079r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Rx=(function(a){TO(r,a);function r(t){t===void 0&&(t={});var e=a.call(this,t)||this;e.options=t,e.config=t.config,e.pfx=e.config.stylePrefix||"",e.ppfx=e.config.pStylePrefix||"",e.em=e.config.em;var n=e.collection;return e.listenTo(n,"reset",e.renderAssets),e.listenTo(n,"add",e.addToAsset),e.listenTo(n,"remove",e.removedAsset),e.listenTo(n,"deselectAll",e.deselectAll),e}return r.prototype.template=function(t){var e=t.pfx,n=t.ppfx,i=t.em,o="";return this.config.showUrlInput&&(o=` 1080 <form class="`.concat(e,`add-asset"> 1081 <div class="`).concat(n,"field ").concat(e,`add-field"> 1082 <input placeholder="`).concat(i==null?void 0:i.t("assetManager.inputPlh"),`"/> 1083 </div> 1084 <button class="`).concat(n,'btn-prim">').concat(i==null?void 0:i.t("assetManager.addButton"),`</button> 1085 <div style="clear:both"></div> 1086 </form> 1087 `)),` 1088 <div class="`.concat(e,`assets-cont"> 1089 <div class="`).concat(e,`assets-header"> 1090 `).concat(o,` 1091 </div> 1092 <div class="`).concat(e,`assets" data-el="assets"></div> 1093 <div style="clear:both"></div> 1094 </div> 1095 `)},r.prototype.handleSubmit=function(t){t.preventDefault();var e=this.getAddInput(),n=e&&e.value.trim(),i=this.config.handleAdd;if(n){e.value="";var o=this.getAssetsEl();o&&(o.scrollTop=0),i?i.bind(this)(n):this.options.globalCollection.add(n,{at:0})}},r.prototype.getAssetsEl=function(){return this.el.querySelector(".".concat(this.pfx,"assets"))},r.prototype.getAddInput=function(){return(!this.inputUrl||!this.inputUrl.value)&&(this.inputUrl=this.el.querySelector(".".concat(this.pfx,"add-asset input"))),this.inputUrl},r.prototype.removedAsset=function(t){this.collection.length||this.toggleNoAssets()},r.prototype.addToAsset=function(t){this.collection.length==1&&this.toggleNoAssets(!0),this.addAsset(t)},r.prototype.addAsset=function(t,e){e===void 0&&(e=null);var n=e,i=this.collection,o=this.config,s=new t.typeView({model:t,collection:i,config:o}).render().el;if(n)n.appendChild(s);else{var c=this.getAssetsEl();c&&c.insertBefore(s,c.firstChild)}return s},r.prototype.toggleNoAssets=function(t){t===void 0&&(t=!1);var e=this.$el.find(".".concat(this.pfx,"assets"));if(t)e.empty();else{var n=this.config.noAssets;n&&e.append(n)}},r.prototype.deselectAll=function(){var t=this.pfx;this.$el.find(".".concat(t,"highlight")).removeClass("".concat(t,"highlight"))},r.prototype.renderAssets=function(){var t=this,e=document.createDocumentFragment(),n=this.$el.find(".".concat(this.pfx,"assets"));n.empty(),this.toggleNoAssets(!!this.collection.length),this.collection.each(function(i){return t.addAsset(i,e)}),n.append(e)},r.prototype.render=function(){var t=this.options.fu.render().el;return this.$el.empty(),this.$el.append(t).append(this.template(this)),this.el.className="".concat(this.ppfx,"asset-manager"),this.renderAssets(),this},r})(Ze);const OO=Rx;Rx.prototype.events={submit:"handleSubmit"};var EO=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),AO=function(a,r){return Object.defineProperty?Object.defineProperty(a,"raw",{value:r}):a.raw=r,a};function MO(a,r){var t=(r||"").trim();if(!t||t==="*"||t==="*/*")return!0;var e=(a.type||"").toLowerCase(),n=(a.name||"").toLowerCase();return t.split(",").some(function(i){var o=i.trim().toLowerCase();return o?o.startsWith(".")?n.endsWith(o):o.endsWith("/*")?e.startsWith(o.slice(0,-1)):e===o:!1})}var PO=(function(a){EO(r,a);function r(t){t===void 0&&(t={});var e=a.call(this,t)||this;e.options=t;var n=t.config||{};e.module=t.module,e.config=n,e.em=e.config.em,e.pfx=n.stylePrefix||"",e.ppfx=n.pStylePrefix||"",e.target=e.options.globalCollection||{},e.uploadId=e.pfx+"uploadFile",e.disabled=n.disableUpload!==void 0?n.disableUpload:!n.upload&&!n.embedAsBase64,e.multiUpload=n.multiUpload!==void 0?n.multiUpload:!0;var i=n.uploadFile;return i?e.uploadFile=i.bind(e):!n.upload&&n.embedAsBase64&&(e.uploadFile=r.embedAsBase64),e.delegateEvents(),e}return r.prototype.template=function(t){var e=t.pfx,n=t.title,i=t.uploadId,o=t.disabled,s=t.multiUpload;return Gn(py||(py=AO([` 1096 <form> 1097 <div id="`,'title">',`</div> 1098 <input 1099 data-input 1100 type="file" 1101 id="`,`" 1102 name="file" 1103 accept="*/*" 1104 `,` 1105 `,` 1106 /> 1107 <div style="clear:both;"></div> 1108 </form> 1109 `],[` 1110 <form> 1111 <div id="`,'title">',`</div> 1112 <input 1113 data-input 1114 type="file" 1115 id="`,`" 1116 name="file" 1117 accept="*/*" 1118 `,` 1119 `,` 1120 /> 1121 <div style="clear:both;"></div> 1122 </form> 1123 `])),e,n,i,o?"disabled":"",s?"multiple":"")},r.prototype.events=function(){return{"change [data-input]":"uploadFile"}},r.prototype.onUploadStart=function(){var t=this.module;t==null||t.__propEv(t.events.uploadStart)},r.prototype.onUploadEnd=function(t){var e=this,n=e.$el,i=e.module;i==null||i.__propEv(i.events.uploadEnd,t);var o=n.find("input");o&&o.val("")},r.prototype.onUploadError=function(t){var e=this.module;console.error(t),this.onUploadEnd(t),e==null||e.__propEv(e.events.uploadError,t)},r.prototype.onUploadResponse=function(t,e){var n=this,i=n.module,o=n.config,s=n.target,c;try{c=typeof t=="string"?JSON.parse(t):t}catch{c=t}i==null||i.__propEv(i.events.uploadResponse,c),o.autoAdd&&s&&s.add(c.data,{at:0}),this.onUploadEnd(t),e==null||e(c)},r.prototype.uploadFile=function(t,e,n){var i=this,o,s=t.dataTransfer?t.dataTransfer.files:(o=t.target)===null||o===void 0?void 0:o.files,c=this.$el.find("input[type=file]").attr("accept"),d=Array.prototype.filter.call(s||[],function(B){return MO(B,c)});if(!(s&&s.length&&!d.length)){var f=this.config,g=f.beforeUpload,m=g&&g(d);if(m!==!1){var y=new FormData,x=f.params,w=f.customFetch,k=f.fetchOptions;for(var S in x)y.append(S,x[S]);if(this.multiUpload)for(var A=0;A<d.length;A++)y.append("".concat(f.uploadName).concat(f.multiUploadSuffix),d[A]);else d.length&&y.append(f.uploadName,d[0]);var L=f.upload,D=f.headers,W="X-Requested-With";if(typeof D[W]>"u"&&(D[W]="XMLHttpRequest"),L){this.onUploadStart();var j={method:"post",credentials:f.credentials||"include",headers:D,body:y},et=(k==null?void 0:k(j))||j,z=w?w(L,et):gx(L,et).then(function(B){return(B.status/200|0)==1?B.text():B.text().then(function(X){return Promise.reject(X)})});return z.then(function(B){return i.onUploadResponse(B,e)}
1123).catch(function(B){return i.onUploadError(B)})}}}},r.prototype.initDrop=function(){var t=this;if(!this.uploadForm){this.uploadForm=this.$el.find("form").get(0);var e=this.uploadForm;"draggable"in e&&(this.uploadForm.ondragover=function(){return e.className=t.pfx+"hover",!1},this.uploadForm.ondragleave=function(){return e.className="",!1},this.uploadForm.ondrop=function(n){e.className="",n.preventDefault(),t.uploadFile(n)})}},r.prototype.initDropzone=function(t){var e=this,n=0,i=this.config,o=t.model,s=t.el,c=o.Editor,d=o.Canvas.getBody(),f=this.ppfx,g="".concat(f,"dropzone-active"),m="".concat(f,"dropzone"),y=function(){s.className=s.className.replace(g,"").trim(),n=0},x=function(){return n||(s.className+=" ".concat(g),n=1),!1},w=function(){return y(),!1},k=function(S){if(y(),S.preventDefault(),S.stopPropagation(),e.uploadFile(S),i.openAssetsOnDrop&&c){var A=c.getSelected();c.runCommand("open-assets",{target:A,onSelect:function(){c.Modal.close(),c.AssetManager.setTarget(null)}})}return!1};t.$el.append('<div class="'.concat(m,'">').concat(i.dropzoneContent,"</div>")),y(),"draggable"in s&&[s,d].forEach(function(S){S.ondragover=x,S.ondragleave=w,S.ondrop=k})},r.prototype.render=function(){var t=this,e=t.$el,n=t.pfx,i=t.em;return e.html(this.template({title:i&&i.t("assetManager.uploadTitle"),uploadId:this.uploadId,disabled:this.disabled,multiUpload:this.multiUpload,pfx:n})),this.initDrop(),e.attr("class",n+"file-uploader"),this},r.embedAsBase64=function(t,e){var n=this,i=t.dataTransfer?t.dataTransfer.files:t.target.files,o={data:[]};if(!FileReader){this.onUploadError(new Error("Unsupported platform, FileReader is not defined"));return}for(var s=[],c=/^(.+)\/(.+)$/,d=function(y){var x=new Promise(function(w,k){var S=new FileReader;S.addEventListener("load",function(A){var L,D=y.name,W=c.exec(y.type);if(W?L=W[1]:L=y.type,L==="image"){var j={src:S.result,name:D,type:L,height:0,width:0},et=new Image;et.addEventListener("error",function(z){k(z)}),et.addEventListener("load",function(){j.height=et.height,j.width=et.width,w(j)}),et.src=j.src}else w(L?{src:S.result,name:D,type:L}:S.result)}),S.addEventListener("error",function(A){k(A)}),S.addEventListener("abort",function(A){k("Aborted")}),S.readAsDataURL(y)});s.push(x)},f=0,g=i;f<g.length;f++){var m=g[f];d(m)}return Promise.all(s).then(function(y){o.data=y,n.onUploadResponse(o,e)},function(y){n.onUploadError(y)})},r})(Ze);const LO=PO;var py,DO=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Js=function(){return Js=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Js.apply(this,arguments)},hy=function(a,r,t){if(t||arguments.length===2)for(var e=0,n=r.length,i;e<n;e++)(i||!(e in r))&&(i||(i=Array.prototype.slice.call(r,0,e)),i[e]=r[e]);return a.concat(i||Array.prototype.slice.call(r))},sc="open-assets",IO=(function(a){DO(r,a);function r(t){var e=a.call(this,t,"AssetManager",new zh([],t),fy,pO())||this;e.storageKey="assets",e.Asset=ov,e.Assets=zh,e.events=fy;var n=e,i=n.all,o=n.config;e.assetsVis=new zh([]);var s=o.pStylePrefix;return s&&(o.stylePrefix="".concat(s).concat(o.stylePrefix)),i.on("add",function(c){return e.getAllVisible().add(c)}),i.on("remove",function(c){return e.getAllVisible().remove(c)}),e.__onAllEvent=(0,E.debounce)(function(){return e.__trgCustom()},0),e}return r.prototype.open=function(t){t===void 0&&(t={});var e=this.em.Commands;e.run(sc,Js({types:["image"],select:function(){}},t))},r.prototype.close=function(){var t=this.em.Commands;t.stop(sc)},r.prototype.isOpen=function(){var t=this.em.Commands;return!!(t!=null&&t.isActive(sc))},r.prototype.add=function(t,e){return e===void 0&&(e={}),typeof e.at>"u"&&(e.at=0),this.all.add(t,e)},r.prototype.get=function(t){return this.all.where({src:t})[0]||null},r.prototype.getAll=function(){return this.all},r.prototype.getAllVisible=function(){return this.assetsVis},r.prototype.remove=function(t,e){return this.__remove(t,e)},r.prototype.store=function(){return this.getProjectData()},r.prototype.load=function(t){return this.loadProjectData(t)},r.prototype.getContainer=function(){var t,e=this.__getBehaviour();return e.container||((t=this.am)===null||t===void 0?void 0:t.el)},r.prototype.getAssetsEl=function(){var t;return(t=this.am)===null||t===void 0?void 0:t.el.querySelector("[data-el=assets]")},r.prototype.render=function(t){if(!this.getConfig().custom){var e=t||this.getAll().models;if(!this.am){var n=this.__viewParams();n.fu=this.FileUploader(),this.am=new OO(Js({},n)),this.am.render()}return this.assetsVis.reset(e),this.getContainer()}},r.prototype.__viewParams=function(){return{collection:this.assetsVis,globalCollection:this.all,config:this.config,module:this,fu:void 0}}
1123,r.prototype.addType=function(t,e){this.getAll().addType(t,e)},r.prototype.removeType=function(t){return this.getAll().removeType(t)},r.prototype.getType=function(t){return this.getAll().getType(t)},r.prototype.getTypes=function(){return this.getAll().getTypes()},r.prototype.AssetsView=function(){return this.am},r.prototype.FileUploader=function(){return this.fu||(this.fu=new LO(this.__viewParams())),this.fu},r.prototype.onLoad=function(){var t=this;this.getAll().reset(this.config.assets);var e=this,n=e.em,i=e.events;n.Commands.__onRun(sc,function(){return t.__propEv(i.open)}),n.Commands.__onStop(sc,function(){return t.__propEv(i.close)})},r.prototype.postRender=function(t){var e;this.config.dropzone&&((e=this.fu)===null||e===void 0||e.initDropzone(t))},r.prototype.setTarget=function(t){this.assetsVis.target=t},r.prototype.onSelect=function(t){this.assetsVis.onSelect=t},r.prototype.onClick=function(t){this.config.onClick=t},r.prototype.onDblClick=function(t){this.config.onDblClick=t},r.prototype.__propEv=function(t){for(var e,n,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];(e=this.em).trigger.apply(e,hy([t],i,!1)),(n=this.getAll()).trigger.apply(n,hy([t],i,!1))},r.prototype.__trgCustom=function(){var t=this.__getBehaviour(),e=this.getConfig().custom;!t.container&&!e.open||this.em.trigger(this.events.custom,this.__customData())},r.prototype.__customData=function(){var t=this,e=this.__getBehaviour();return{am:this,open:this.isOpen(),assets:this.getAll().models,types:e.types||[],container:e.container,close:function(){return t.close()},remove:function(n,i){return t.remove(n,i)},select:function(n,i){var o=t.add(n);(0,E.isFunction)(e.select)&&e.select(o,i)},options:e.options||{}}},r.prototype.__behaviour=function(t){return t===void 0&&(t={}),this._bhv=Js(Js({},this._bhv||{}),t)},r.prototype.__getBehaviour=function(t){return this._bhv||{}},r.prototype.destroy=function(){var t,e;this.all.stopListening(),this.all.reset(),this.assetsVis.stopListening(),this.assetsVis.reset(),(t=this.fu)===null||t===void 0||t.remove(),(e=this.am)===null||e===void 0||e.remove(),this._bhv={}},r})(oa);const jO=IO;var NO=function(){return{default:"",devices:[{id:"desktop",name:"Desktop",width:""},{id:"tablet",name:"Tablet",width:"770px",widthMedia:"992px"},{id:"mobileLandscape",name:"Mobile landscape",width:"568px",widthMedia:"768px"},{id:"mobilePortrait",name:"Mobile portrait",width:"320px",widthMedia:"480px"}]}};const RO=NO;var BO=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),VO=(function(a){BO(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.defaults=function(){return{name:"",width:null,height:"",widthMedia:null,priority:null}},r.prototype.initialize=function(){var t=this;this.get("widthMedia")===null&&this.set("widthMedia",this.get("width")),this.get("width")===null&&this.set("width",this.get("widthMedia")),!this.get("priority")&&this.set("priority",parseFloat(this.get("widthMedia"))||0);var e=["width","height","widthMedia"];e.forEach(function(n){return t.checkUnit(n)})},r.prototype.checkUnit=function(t){var e=this.get(t)||"",n=(parseFloat(e)||0).toString()===e.toString();n&&this.set(t,"".concat(e,"px"))},r.prototype.getName=function(){return this.get("name")||this.get("id")},r.prototype.getWidthMedia=function(){return this.get("widthMedia")||""},r})(We);const Bx=VO;var HO=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}
1123r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Vx=(function(a){HO(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r})(Rr);const gy=Vx;Vx.prototype.model=Bx;var FO=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),$O=function(a,r){return Object.defineProperty?Object.defineProperty(a,"raw",{value:r}):a.raw=r,a},zO=(function(a){FO(r,a);function r(t){var e=a.call(this,t)||this;return e.config=t.config||{},e.em=e.config.em,e.ppfx=e.config.pStylePrefix||"",e.listenTo(e.em,"change:device",e.updateSelect),e}return r.prototype.template=function(t){var e=t.ppfx,n=t.label;return Gn(vy||(vy=$O([` 1124 <div class="`,'device-label">',`</div> 1125 <div class="`,"field ",`select"> 1126 <span id="`,`input-holder"> 1127 <select class="`,`devices"></select> 1128 </span> 1129 <div class="`,`sel-arrow"> 1130 <div class="`,`d-s-arrow"></div> 1131 </div> 1132 </div> 1133 <button style="display:none" class="`,`add-trasp" data-add-trasp>+</button> 1134 `],[` 1135 <div class="`,'device-label">',`</div> 1136 <div class="`,"field ",`select"> 1137 <span id="`,`input-holder"> 1138 <select class="`,`devices"></select> 1139 </span> 1140 <div class="`,`sel-arrow"> 1141 <div class="`,`d-s-arrow"></div> 1142 </div> 1143 </div> 1144 <button style="display:none" class="`,`add-trasp" data-add-trasp>+</button> 1145 `])),e,n,e,e,e,e,e,e,e)},r.prototype.events=function(){return{change:"updateDevice","click [data-add-trasp]":"startAdd"}},r.prototype.startAdd=function(){},r.prototype.updateDevice=function(){var t=this.em;if(t){var e=this.devicesEl;t.set("device",e?e.val():"")}},r.prototype.updateSelect=function(){var t=this,e=t.em,n=t.devicesEl;if(e&&e.getDeviceModel&&n){var i=e.getDeviceModel();n.val(i?i.get("id"):"")}},r.prototype.getOptions=function(){var t=this,e=t.collection,n=t.em,i="";return e.forEach(function(o){var s=o.attributes,c=s.name,d=s.id,f=n&&n.t&&n.t("deviceManager.devices.".concat(d))||c;i+='<option value="'.concat(d||c,'">').concat(f,"</option>")}),i},r.prototype.render=function(){var t=this,e=t.em,n=t.ppfx,i=t.$el,o=t.el,s=e&&e.t&&e.t("deviceManager.device");return i.html(this.template({ppfx:n,label:s})),this.devicesEl=i.find(".".concat(n,"devices")),this.devicesEl.append(this.getOptions()),this.devicesEl.val(e.get("device")),o.className="".concat(n,"devices-c"),this},r})(Ze);const UO=zO;var vy,WO=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Hc=function(){return Hc=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Hc.apply(this,arguments)},ZO=(function(a){WO(r,a);function r(t){var e,n=a.call(this,t,"DeviceManager",new gy,h1,RO())||this;return n.Device=Bx,n.Devices=gy,n.storageKey="",n.devices=n.all,(e=n.config.devices)===null||e===void 0||e.forEach(function(i){return n.add(i,{silent:!0})}),n.select(n.config.default||n.devices.at(0)),t.on("change:device",n._onSelect,n),n}return r.prototype._onSelect=function(t,e,n){var i=this,o=i.em,s=i.events,c=t.previous("device"),d=this.get(e),f=s.select;o.trigger(f,d,this.get(c)),this.__catchAllEvent(f,d,n)},r.prototype.add=function(t,e){e===void 0&&(e={});var n,i=e;if((0,E.isString)(t)){var o=e;i=arguments[2]||{},n=Hc(Hc({},i),{id:t,name:i.name||t,width:o})}else n=t;return n.id||(n.id=n.name||this._createId()),this.devices.add(n,i)},r.prototype.get=function(t){var e=this.getAll().filter(function(n){return n.get("name")===t})[0];return e||this.devices.get(t)||null},r.prototype.remove=function(t,e){return e===void 0&&(e={}),this.__remove(t,e)},r.prototype.getDevices=function(){return this.devices.models},r.prototype.select=function(t,e){e===void 0&&(e={});var n=(0,E.isString)(t)?this.get(t):t;return n&&this.em.set("device",n.get("id"),e),this},r.prototype.getSelected=function(){return this.get(this.em.get("device"))},r.prototype.getAll=function(){return this.devices},r.prototype.render=function(){var t,e=this.em;return(t=this.view)===null||t===void 0||t.remove(),this.view=new UO({collection:this.devices,config:Hc({em:e},this.config)}),this.view.render().el},r.prototype.destroy=function(){this.__destroy()},r}
1145)(oa);const qO=ZO;var KO=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),GO=(function(a){KO(r,a);function r(t,e){e===void 0&&(e={});var n=a.call(this,t,e)||this,i=e.em,o={};n.em=i,t.frames||(o.component=t.component,o.styles=t.styles,["component","styles"].map(function(d){return n.unset(d)}));var s=t.frames||[o];s.forEach(function(d){d.page=n});var c=new vb(i.Canvas,s);return c.page=n,n.set("frames",c),!n.getId()&&n.set("id",i==null?void 0:i.Pages._createId()),i==null||i.UndoManager.add(c),n}return r.prototype.defaults=function(){return{name:"",frames:[],_undo:!0}},r.prototype.onRemove=function(){this.getFrames().reset()},r.prototype.getFrames=function(){return this.get("frames")},r.prototype.getId=function(){return this.id},r.prototype.getName=function(){return this.get("name")},r.prototype.setName=function(t){return this.set({name:t})},r.prototype.getAllFrames=function(){return this.getFrames().models||[]},r.prototype.getMainFrame=function(){return this.getFrames().at(0)},r.prototype.getMainComponent=function(){var t=this.getMainFrame();return t==null?void 0:t.getComponent()},r.prototype.toJSON=function(t){t===void 0&&(t={});var e=We.prototype.toJSON.call(this,t),n=(0,E.result)(this,"defaults");return delete e.skipFromStorage,(0,E.forEach)(e,function(i,o){o.indexOf("_")===0&&delete e[o]}),(0,E.forEach)(n,function(i,o){e[o]===i&&delete e[o]}),e},r})(We);const lv=GO;var YO=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),$f=function(){return $f=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},$f.apply(this,arguments)},XO=(function(a){YO(r,a);function r(t,e){var n=a.call(this,t)||this;return n.on("reset",n.onReset),n.on("remove",n.onRemove),n.model=function(i,o){return o===void 0&&(o={}),new lv(i,$f($f({},o),{em:e}))},n}return r.prototype.onReset=function(t,e){var n=this,i;(i=e==null?void 0:e.previousModels)===null||i===void 0||i.map(function(o){return n.onRemove(o,n,e)})},r.prototype.onRemove=function(t,e,n){n===void 0&&(n={}),!(n.fromUndo||n.temporary)&&(t==null||t.onRemove())},r})(Rr);const JO=XO;var QO=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Qs=function(){return Qs=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Qs.apply(this,arguments)},tE=function(a,r){var t={};for(var e in a)Object.prototype.hasOwnProperty.call(a,e)&&r.indexOf(e)<0&&(t[e]=a[e]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,e=Object.getOwnPropertySymbols(a);n<e.length;n++)r.indexOf(e[n])<0&&Object.prototype.propertyIsEnumerable.call(a,e[n])&&(t[e[n]]=a[e[n]]);return t},eE=function(a,r,t){if(t||arguments.length===2)for(var e=0,n=r.length,i;e<n;e++)(i||!(e in r))&&(i||(i=Array.prototype.slice.call(r,0,e)),i[e]=r[e]);return a.concat(i||Array.prototype.slice.call(r))},my="change:selected",yy="main",rE=(function(a){QO(r,a);function r(t){var e=a.call(this,t,"PageManager",new JO([],t),Vg)||this;e.events=Vg,e.storageKey="pages",(0,E.bindAll)(e,"_onPageChange");var n=new Ea(e,{_undo:!0});return e.model=n,e.pages.on("reset",e.__onReset,e),e.pages.on("all",e.__onChange,e),n.on(my,e._onPageChange),e}return Object.defineProperty(r.prototype,"pages",{get:function(){return this.all}
1145,enumerable:!1,configurable:!0}),r.prototype.getAll=function(){return eE([],this.all.models,!0)},r.prototype.__onChange=function(t,e,n,i){var o=this,s=o.em,c=o.events,d=i||n;s.trigger(c.all,{event:t,page:e,options:d})},r.prototype.__onReset=function(){var t=this.pages.at(0);t&&this.select(t)},r.prototype.onLoad=function(){var t,e=this,n=e.pages,i=e.config,o=e.em,s={silent:!0},c=((t=i.pages)===null||t===void 0?void 0:t.map(function(f){return new lv(f,{em:o,config:i})}))||[];n.add(c,s);var d=n.length?this._initPage():this.add({type:yy},s);d&&this.select(d,s)},r.prototype._onPageChange=function(t,e,n){var i=this,o=i.em,s=i.events,c=o.Layers,d=e.getMainComponent();c&&d&&c.setRoot(d),o.trigger(s.select,e,t.previous("selected")),this.__onChange(my,e,n)},r.prototype.postLoad=function(){var t=this,e=t.em,n=t.model,i=t.pages,o=e.UndoManager;o.add(n),o.add(i),i.on("add remove reset change",function(s,c,d){var f=d||c;e.changesUp(d||c,{page:s,options:f})})},r.prototype.add=function(t,e){var n=this;e===void 0&&(e={});var i=this,o=i.em,s=i.events;t.id=t.id||this._createId();var c=function(){var d=n.pages.add(new lv(t,{em:n.em,config:n.config}),e);return e.select&&n.select(d),d};return!e.silent&&o.trigger(s.addBefore,t,c,e),e.abort?void 0:c()},r.prototype.remove=function(t,e){var n=this;e===void 0&&(e={});var i=this,o=i.em,s=i.events,c=(0,E.isString)(t)?this.get(t):t,d=function(){return c&&n.pages.remove(c,e),c};return!e.silent&&o.trigger(s.removeBefore,c,d,e),!e.abort&&d()},r.prototype.move=function(t,e){e===void 0&&(e={});var n=this.pages,i=(0,E.isString)(t)?this.get(t):t,o=e.at,s=o===void 0?0:o,c=tE(e,["at"]);if(i){var d=n.indexOf(i),f=d===s;if(!(s<0||s>=n.length||f))return this.remove(i,Qs(Qs({},c),{temporary:!0})),n.add(i,Qs(Qs({},c),{at:s})),i}},r.prototype.get=function(t){return this.pages.filter(function(e){return e.get(e.idAttribute)===t})[0]},r.prototype.getMain=function(){var t=this.pages;return t.filter(function(e){return e.get("type")===yy})[0]||t.at(0)},r.prototype.getAllWrappers=function(){var t=this.getAll();return(0,E.unique)((0,E.flatten)(t.map(function(e){return e.getAllFrames().map(function(n){return n.getComponent()})})))},r.prototype.select=function(t,e){e===void 0&&(e={});var n=this,i=n.em,o=n.model,s=n.events,c=(0,E.isString)(t)?this.get(t):t;return c&&(i.trigger(s.selectBefore,c,e),o.set("selected",c,e)),this},r.prototype.getSelected=function(){return this.model.get("selected")},r.prototype.destroy=function(){var t=this;this.pages.off().reset(),this.model.stopListening(),this.model.clear({silent:!0}),["selected","model"].map(function(e){return t[e]=0})},r.prototype.store=function(){return this.getProjectData(this.getAll().filter(function(t){return!t.get("skipFromStorage")}))},r.prototype.load=function(t){var e=this,n=this.loadProjectData(t,{all:this.pages,reset:!0,onResult:function(i,o){i.forEach(function(s){return e.add(s,o)}),e.__onReset()}});return this.pages.forEach(function(i){return i.getFrames().initRefs()}),n},r.prototype._initPage=function(){return this.get(this.config.selected)||this.getMain()},r.prototype._createId=function(){var t=this.getAll(),e=t.length+16,n=this.getAllMap(),i;do i=kp(e);while(n[i]);return i},r})(oa);const nE=rE,Uh={placeholder:"eg. Text here"},iE={assetManager:{addButton:"Add image",inputPlh:"http://path/to/the/image.jpg",modalTitle:"Select Image",uploadTitle:"Drop files here or click to upload"},blockManager:{labels:{},categories:{}},domComponents:{names:{"":"Box",wrapper:"Body",text:"Text",comment:"Comment",image:"Image",video:"Video",label:"Label",link:"Link",map:"Map",tfoot:"Table foot",tbody:"Table body",thead:"Table head",table:"Table",row:"Table row",cell:"Table cell"}},deviceManager:{device:"Device",devices:{desktop:"Desktop",tablet:"Tablet",mobileLandscape:"Mobile Landscape",mobilePortrait:"Mobile Portrait"}},panels:{buttons:{titles:{preview:"Preview",fullscreen:"Fullscreen","sw-visibility":"View components","export-template":"View code","open-sm":"Open Style Manager","open-tm":"Settings","open-layers":"Open Layer Manager","open-blocks":"Open Blocks"}}},selectorManager:{label:"Classes",selected:"Selected",emptyState:"- State -",states:{hover:"Hover",active:"Click","nth-of-type(2n)":"Even/Odd"}},styleManager:{empty:"Select an element before using Style Manager",layer:"Layer",fileButton:"Images",sectors:{general:"General",layout:"Layout",typography:"Typography",decorations:"Decorations",extra:"Extra",flex:"Flex",dimension:"Dimension"}
1145,properties:{"text-shadow-h":"X","text-shadow-v":"Y","text-shadow-blur":"Blur","text-shadow-color":"Color","box-shadow-h":"X","box-shadow-v":"Y","box-shadow-blur":"Blur","box-shadow-spread":"Spread","box-shadow-color":"Color","box-shadow-type":"Type","margin-top-sub":"Top","margin-right-sub":"Right","margin-bottom-sub":"Bottom","margin-left-sub":"Left","padding-top-sub":"Top","padding-right-sub":"Right","padding-bottom-sub":"Bottom","padding-left-sub":"Left","border-width-sub":"Width","border-style-sub":"Style","border-color-sub":"Color","border-top-left-radius-sub":"Top Left","border-top-right-radius-sub":"Top Right","border-bottom-right-radius-sub":"Bottom Right","border-bottom-left-radius-sub":"Bottom Left","transform-rotate-x":"Rotate X","transform-rotate-y":"Rotate Y","transform-rotate-z":"Rotate Z","transform-scale-x":"Scale X","transform-scale-y":"Scale Y","transform-scale-z":"Scale Z","transition-property-sub":"Property","transition-duration-sub":"Duration","transition-timing-function-sub":"Timing","background-image-sub":"Image","background-repeat-sub":"Repeat","background-position-sub":"Position","background-attachment-sub":"Attachment","background-size-sub":"Size"}},traitManager:{empty:"Select an element before using Trait Manager",label:"Component settings",categories:{},traits:{labels:{},attributes:{id:Uh,alt:Uh,title:Uh,href:{placeholder:"eg. https://google.com"}},options:{target:{false:"This window",_blank:"New window"}}}},storageManager:{recover:"Do you want to recover unsaved changes?"}};var aE=function(){return{locale:"en",localeFallback:"en",detectLocale:!0,debug:!1,messages:{en:iE},messagesAdd:void 0}};const oE=aE;var cv;(function(a){a.add="i18n:add",a.update="i18n:update",a.locale="i18n:locale"})(cv||(cv={}));const sE=cv;var lE=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),cE=(function(a){lE(r,a);function r(t){var e=a.call(this,t,"I18n",oE())||this;e.events=sE;var n=e.config.messagesAdd;return n&&e.addMessages(n),e.config.detectLocale&&(e.config.locale=e._localLang()),e}return r.prototype.setLocale=function(t){var e=this,n=e.em,i=e.config,o=e.events;return n.trigger(o.locale,{value:t,valuePrev:i.locale}),i.locale=t,this},r.prototype.getLocale=function(){return this.config.locale},r.prototype.getMessages=function(t,e){e===void 0&&(e={});var n=this.config.messages;return t&&!n[t]&&this._debug("'".concat(t,"' i18n lang not found"),e),t?n[t]:n},r.prototype.setMessages=function(t){var e=this,n=e.em,i=e.config,o=e.events;return i.messages=t,n.trigger(o.update,t),this},r.prototype.addMessages=function(t){var e=this,n=e.em,i=e.events,o=e.config,s=o.messages;return n.trigger(i.add,t),this.setMessages(Cp(s,t)),this},r.prototype.t=function(t,e){e===void 0&&(e={});var n=this.config,i=e.params||{},o=e.l||this.getLocale(),s=e.lFlb||n.localeFallback,c=this._getMsg(t,o,e);return c||(c=this._getMsg(t,s,e)),!c&&this._debug("'".concat(t,"' i18n key not found in '").concat(o,"' lang"),e),c=c&&(0,E.isString)(c)?this._addParams(c,i):c,c},r.prototype._localLang=function(){var t=Jr()&&window.navigator||{},e=t.language||t.userLanguage;return e?e.split("-")[0]:"en"},r.prototype._addParams=function(t,e){var n=new RegExp("{([\\w\\d-]*)}","g");return t.replace(n,function(i,o){return e[o]||""}).trim()},r.prototype._getMsg=function(t,e,n){n===void 0&&(n={});var i=this.getMessages(e,n);if(i){var o=i[t];return!o&&t.indexOf(".")>0&&(o=t.split(".").reduce(function(s,c){if(!(0,E.isUndefined)(s))return s[c]},i)),o}},r.prototype._debug=function(t,e){e===void 0&&(e={});var n=this,i=n.em,o=n.config;(e.debug||o.debug)&&i&&i.logWarning(t)},r.prototype.destroy=function(){},r})(Jn);const dE=cE;var Go=function(){return Go=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];
1145for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Go.apply(this,arguments)},uE=function(a,r){r===void 0&&(r={});var t=r.prefix||"",e=document.createElement("i");return e.className=t+"resizer-h "+t+"resizer-h-"+a,e.setAttribute("data-"+t+"handler",a),e},fE=function(a,r){var t=window,e=a.getBoundingClientRect();return{left:e.left+t.pageXOffset,top:e.top+t.pageYOffset,width:e.width,height:e.height}},pE=(function(){function a(r){r===void 0&&(r={}),this.moved=!1,this.defOpts={ratioDefault:!1,onUpdateContainer:function(){},step:1,minDim:10,maxDim:1/0,unitHeight:"px",unitWidth:"px",keyHeight:"height",keyWidth:"width",currentUnit:!0,silentFrames:!1,avoidContainerUpdate:!1,keepAutoHeight:!1,keepAutoWidth:!1,autoHeight:!1,autoWidth:!1,tl:!0,tc:!0,tr:!0,cl:!0,cr:!0,bl:!0,bc:!0,br:!0},this.opts=Go({},this.defOpts),this.setOptions(r),(0,E.bindAll)(this,"handleKeyDown","handleMouseDown","move","stop")}return a.prototype.getConfig=function(){return this.opts},a.prototype.setOptions=function(r,t){r===void 0&&(r={}),this.opts=Go(Go({},t?this.defOpts:this.opts),r),this.setup()},a.prototype.setup=function(){var r=this.opts,t=r.prefix||"",e=r.appendTo||document.body,n=this.container;for(n||(n=document.createElement("div"),n.className="".concat(t,"resizer-c"),e.appendChild(n),this.container=n);n.firstChild;)n.removeChild(n.firstChild);var i={};["tl","tc","tr","cl","cr","bl","bc","br"].forEach(function(c){return i[c]=r[c]?uE(c,r):null});for(var o in i){var s=i[o];s&&n.appendChild(s)}this.handlers=i,this.mousePosFetcher=r.mousePosFetcher,this.updateTarget=r.updateTarget,this.posFetcher=r.posFetcher,this.onStart=r.onStart,this.onMove=r.onMove,this.onEnd=r.onEnd,this.onUpdateContainer=r.onUpdateContainer},a.prototype.toggleFrames=function(r){if(this.opts.silentFrames){var t=document.querySelectorAll("iframe");(0,E.each)(t,function(e){return e.style.pointerEvents=r?"none":""})}},a.prototype.isHandler=function(r){var t=this.handlers;for(var e in t)if(t[e]===r)return!0;return!1},a.prototype.getFocusedEl=function(){return this.el},a.prototype.getParentEl=function(){var r;return(r=this.el)===null||r===void 0?void 0:r.parentElement},a.prototype.getDocumentEl=function(){return this.opts.docs||[this.el.ownerDocument,document]},a.prototype.getElementPos=function(r,t){t===void 0&&(t={});var e=this.posFetcher;return e?e(r,t):fE(r)},a.prototype.focus=function(r){r&&r===this.el||(this.el=r,this.updateContainer({forceShow:!0}),or(this.getDocumentEl(),"pointerdown",this.handleMouseDown))},a.prototype.blur=function(){this.container.style.display="none",this.el&&(gr(this.getDocumentEl(),"pointerdown",this.handleMouseDown),delete this.el)},a.prototype.start=function(r){var t,e=this,n=e.el,i=e.opts,o=i===void 0?{}:i;if(this.moved=!1,!(r.button!==0||!n)){r.preventDefault(),r.stopPropagation(),(t=this.selectedHandler)===null||t===void 0||t.setPointerCapture(r.pointerId);var s=this.getParentEl(),c=this,d=o,f=this.mousePosFetcher,g="data-"+d.prefix+"handler",m=this.getElementPos(n,{avoidFrameZoom:!0,avoidFrameOffset:!0}),y=this.getElementPos(s),x=r.target;this.handlerAttr=x.getAttribute(g),this.clickedHandler=x,this.startDim={t:m.top,l:m.left,w:m.width,h:m.height},this.rectDim={t:m.top,l:m.left,w:m.width,h:m.height},this.startPos=f?f(r):{x:r.clientX,y:r.clientY},this.parentDim={t:y.top,l:y.left,w:y.width,h:y.height};var w=this.getDocumentEl();this.docs=w,or(w,"pointermove",this.move),or(w,"keydown",this.handleKeyDown),or(w,"pointerup",this.stop),(0,E.isFunction)(this.onStart)&&this.onStart(r,{docs:w,config:d,el:n,resizer:c}),this.toggleFrames(!0),!d.updateOnMove&&this.move(r)}},a.prototype.move=function(r){var t,e;this.moved=!0;var n=this.el,i=this.opts,o=this.docs||this.getDocumentEl(),s=((t=this.mousePosFetcher)===null||t===void 0?void 0:t.call(this,r))||{x:r.clientX,y:r.clientY};this.currentPos=s,this.delta={x:s.x-this.startPos.x,y:s.y-this.startPos.y},this.keys={shift:r.shiftKey,ctrl:r.ctrlKey,alt:r.altKey},this.rectDim=this.calc(this),this.updateRect(!1,r),(e=this.onMove)===null||e===void 0||e.call(this,r,{docs:o,config:i,el:n,resizer:this})},a.prototype.stop=function(r){var t,e,n=this.el,i=this.opts,o=this.docs||this.getDocumentEl();gr(o,"pointermove",this.move),gr(o,"keydown",this.handleKeyDown),gr(o,"pointerup",this.stop),(this.moved||!i.updateOnMove)&&this.updateRect(!0,r),r.pointerId&&((t=this.selectedHandler)===null||t===void 0||t.releasePointerCapture(r.pointerId)),this.toggleFrames(),(e=this.onEnd)===null||e===void 0||e.call(this,r,{docs:o,config:i,el:n,resizer:this}),this.moved=!1,delete this.docs},a.prototype.updateRect=function(r,t){var e=this.el,n=this,i=this.opts,o=this.rectDim,s=this.updateTarget,c=this.getSelectedHandler(),d=i.unitHeight,f=i.unitWidth,g=i.keyWidth,m=i.keyHeight;if((0,E.isFunction)(s))s(e,o,{store:r,selectedHandler:c,resizer:n,config:i,event:t});else{var y=e.style;y[g]=o.w+f,y[m]=o.h+d}this.updateContainer()},a.prototype.updateContainer=function(r){var t;r===void 0&&(r={});var e=this,n=e.opts,i=e.container,o=e.el,s=i.style;!n.avoidContainerUpdate&&o&&r.forceShow&&(s.display="block"),(t=this.onUpdateContainer)===null||t===void 0||t.call(this,{el:i,resizer:this,opts:Go(Go({},n),r)})},a.prototype.getSelectedHandler=function(){var r=this.handlers;if(this.selectedHandler){for(var t in r)if(r[t]===this.selectedHandler)return t}},a.prototype.handleKeyDown=function(r){r.keyCode===27&&(this.rectDim=this.startDim,this.stop(r))},a.prototype.handleMouseDown=function(r){var t=r.target;this.isHandler(t)?(this.selectedHandler=t,this.start(r)):t!==this.el&&(delete this.selectedHandler,this.blur()
1145)},a.prototype.calc=function(r){var t,e=this.opts||{},n=e.step,i=this.startDim,o=e.minDim,s=e.maxDim,c=r.delta.x,d=r.delta.y,f=this.parentDim.w,g=this.parentDim.h,m=e.unitWidth,y=e.unitHeight,x=e.skipUnitAdjustments,w=this.getParentRect(),k=m==="%"&&!x,S=y==="%"&&!x,A=k?i.w/100*f:i.w,L=S?i.h/100*g:i.h,D={t:i.t-w.top,l:i.l-w.left,w:A,h:L};if(r){var W=r.handlerAttr;~W.indexOf("r")&&(t=k?xa((A+c*n)/f*100,.01):xa(A+c*n,n),t=Math.max(o,t),s&&(t=Math.min(s,t)),D.w=t),~W.indexOf("b")&&(t=S?xa((L+d*n)/g*100,.01):xa(L+d*n,n),t=Math.max(o,t),s&&(t=Math.min(s,t)),D.h=t),~W.indexOf("l")&&(t=k?xa((A-c*n)/f*100,.01):xa(A-c*n,n),t=Math.max(o,t),s&&(t=Math.min(s,t)),D.w=t),~W.indexOf("t")&&(t=S?xa((L-d*n)/g*100,.01):xa(L-d*n,n),t=Math.max(o,t),s&&(t=Math.min(s,t)),D.h=t);var j=e.ratioDefault?!r.keys.shift:r.keys.shift;if(W.indexOf("c")<0&&j){var et=i.w/i.h;D.w/D.h>et?D.h=Math.round(D.w/et):D.w=Math.round(D.h*et)}~W.indexOf("l")&&(D.l+=i.w-D.w),~W.indexOf("t")&&(D.t+=i.h-D.h);for(var z in D){var B=z;D[B]=parseInt("".concat(D[B]),10)}return D}},a.prototype.getParentRect=function(){var r={left:0,top:0,width:0,height:0},t=this.el;if(!t)return r;var e=t.offsetParent;return e&&e.tagName!=="BODY"&&(r=this.getElementPos(e)),r},a})();const hE=pE;var pi=function(){return pi=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},pi.apply(this,arguments)};function gE(a,r,t){for(var e={index:0,placement:"before"},n=0,i=0,o=0,s=0,c=0,d=0,f=0,g,m=0,y=a.length;m<y;m++){g=a[m];var x=g.top,w=g.left,k=g.height,S=g.width;if(o=w+S,f=x+k,c=w+S/2,d=x+k/2,!(i&&w>i||s&&d>=s||n&&o<n))if(e.index=m,!g.dir)t<f&&(s=f),r<c?(i=c,e.placement="before"):(n=c,e.placement="after");else if(t<d){e.placement="before";break}else e.placement="after"}return e}function by(a){var r=a.getBoundingClientRect();return{top:r.top+document.body.scrollTop,left:r.left+document.body.scrollLeft}}function _1(a,r){var t;return!!(!((t=a==null?void 0:a.matches)===null||t===void 0)&&t.call(a,r))}function vE(a,r){var t=dv(a),e=dv(r),n=e.filter(function(c){return t.includes(c)}),i=n[0];if(!i)return a.model.index()-r.model.index();var o=e[e.indexOf(i)-1],s=t[t.indexOf(i)-1];return s.index()-o.index()}function dv(a){return a?[a].concat(dv(a.parent())):[]}function mE(a,r){if(a)for(var t=a.parentNode;t&&t.nodeType===1;){if(_1(t,r))return t;t=t.parentNode}}function yE(a,r){if(!a||_l(a))return!1;var t=a.style||{},e=(0,De.default)(a),n=(0,De.default)(r);if(t.overflow&&t.overflow!=="visible")return!1;var i=e.css("float");return i&&i!=="none"||n.css("display")==="flex"&&n.css("flex-direction")!=="column"||!bE(t.position)?!1:xE(a)||wE(e)}function bE(a){switch(a){case"static":case"relative":case"":return!0;default:return!1}}function xE(a){var r=["TR","TBODY","THEAD","TFOOT"];return r.includes(a.tagName)}function wE(a){var r=a.css("display"),t=["block","list-item","table","flex","grid"];return t.includes(r)}function _E(a){var r={containerContext:{container:"",placeholderElement:"",containerSel:"*",itemSel:"*",pfx:"",document},positionOptions:{borderOffset:10,relative:!1,windowMargin:0,offsetTop:0,offsetLeft:0,scale:1,canvasRelative:!1},dragBehavior:{dragDirection:aa.Vertical,nested:!1,selectOnEnd:!0},eventHandlers:{}},t=pi(pi(pi({},r),a),{containerContext:pi(pi({},r.containerContext),a.containerContext),positionOptions:pi(pi({},r.positionOptions),a.positionOptions),dragBehavior:pi(pi({},r.dragBehavior),a.dragBehavior),eventHandlers:pi(pi({},r.eventHandlers),a.eventHandlers)});return t}var Hx=(function(){function a(r){this.timeout=null,this.threshold=r}return a.prototype.updateArgs=function(r){this.lastArgs=r},a.prototype.execute=function(r){var t=this;this.timeout||(this.timeout=setTimeout(function(){t.lastArgs&&r(t.lastArgs),t.timeout=null},this.threshold))},a.prototype.clearTimeout=function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),delete this.lastArgs},a})(),uv=function(){return uv=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];
1145for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},uv.apply(this,arguments)},CE=(function(){function a(r){this.top=r.top,this.left=r.left,this.height=r.height,this.width=r.width,this.offsets=r.offsets,this.dir=r.dir,this.indexEl=r.indexEl}return a.prototype.calculateDimensionDifference=function(r){var t=r.top-this.top,e=r.left-this.left;return{topDifference:t,leftDifference:e}},a.prototype.adjustDimensions=function(r){return this.top+=r.topDifference,this.left+=r.leftDifference,this},a.prototype.determinePlacement=function(r,t){var e=this.left+this.width/2,n=this.top+this.height/2;return this.dir?t<n?"before":"after":r<e?"before":"after"},a.prototype.equals=function(r){return r?this.top===r.top&&this.left===r.left&&this.height===r.height&&this.width===r.width&&this.dir===r.dir&&JSON.stringify(this.offsets)===JSON.stringify(r.offsets):!1},a.prototype.clone=function(){return new a({top:this.top,left:this.left,height:this.height,width:this.width,offsets:uv({},this.offsets),dir:this.dir,indexEl:this.indexEl})},a.prototype.getDropArea=function(r){var t=this.clone(),e=this.adjustDropDimension(this.width,this.left,r),n=e.newSize,i=e.newPosition;t.width=n,t.left=i;var o=this.adjustDropDimension(this.height,this.top,r),s=o.newSize,c=o.newPosition;return t.height=s,t.top=c,t},a.prototype.adjustDropDimension=function(r,t,e){var n=e.ratio,i=e.minUndroppableDimension,o=e.maxUndroppableDimension,s=r*(1-n)/2;s=Math.max(s,i),s=Math.min(s,o);var c=r-s*2,d=t+s;return{newSize:c,newPosition:d}},a.prototype.isWithinBounds=function(r,t){return r>=this.left&&r<=this.left+this.width&&t>=this.top&&t<=this.top+this.height},a})();const kE=CE;var SE=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),TE=(function(a){SE(r,a);function r(t){var e=a.call(this)||this;return e.sourceNodes=[],e.containerOffset={top:0,left:0},e.moveThreshold=20,e.treeClass=t.treeClass,e.em=t.em,e.containerContext=t.containerContext,e.positionOptions=t.positionOptions,e.dragDirection=t.dragDirection,e.eventHandlers=t.eventHandlers,(0,E.bindAll)(e,"endDrag","cancelDrag","recalculateTargetOnScroll","startSort","onDragStart","onMove"),e.restLastMoveData(),e.rateLimiter=new Hx(e.moveThreshold),e}return r.prototype.startSort=function(t){this.sourceNodes=t,this.bindDragEventHandlers()},r.prototype.bindDragEventHandlers=function(){or(this.containerContext.container,"dragstart",this.onDragStart),or(this.containerContext.container,"mousemove dragover",this.onMove),or(this.containerContext.document,"mouseup dragend touchend",this.endDrag)},r.prototype.recalculateTargetOnScroll=function(){var t=this.lastMoveData.mouseEvent;t&&this.onMove(t)},r.prototype.onMove=function(t){this.rateLimiter.updateArgs(t),this.rateLimiter.execute(this.handleMove.bind(this))},r.prototype.handleMove=function(t){var e,n,i,o,s,c,d;this.adjustForScroll();var f=this.lastMoveData.targetNode;(n=(e=this.eventHandlers).onMouseMove)===null||n===void 0||n.call(e,t),this.cacheContainerPosition();var g=this.getMousePositionRelativeToContainer(t.clientX,t.clientY),m=g.mouseXRelative,y=g.mouseYRelative,x=this.getMouseTargetElement(t),w=this.getFirstElementWithAModel(x),k=w?(i=(0,De.default)(w))===null||i===void 0?void 0:i.data("model"):void 0,S=k?this.getOrCreateHoveredNode(k):void 0,A=S?this.getIndexInParent(S,S.nodeDimensions,m,y):0,L=S?this.getValidParent(S,0,m,y):void 0,D=!(L!=null&&L.equals(f));if(D&&((s=(o=this.eventHandlers).onTargetChange)===null||s===void 0||s.call(o,f,L)),!L||!S){this.triggerLegacyOnMoveCallback(t,0),this.triggerMoveEvent(m,y),this.restLastMoveData();return}var W=this.getDropPosition(L,m,y),j=W.index,et=W.placement,z=W.placeholderDimensions,B=!z.equals(this.lastMoveData.placeholderDimensions)||et!==this.lastMoveData.placement;B&&((d=(c=this.eventHandlers).onPlaceholderPositionChange)===null||d===void 0||d.call(c,z,et)),this.lastMoveData={targetNode:L,hoveredNode:S,mouseEvent:t,index:j,hoveredIndex:A,hoveredWithinBounds:S.isWithinDropBounds(m,y),placement:et,placeholderDimensions:z},this.triggerMoveEvent(m,y),this.triggerLegacyOnMoveCallback(t,j)},r.prototype.adjustForScroll=function(){var t,e,n=this.lastMoveData.targetNode;if(n!=null&&n.element){var i=this.getDim(n==null?void 0:n.element),o=(t=n.nodeDimensions)===null||t===void 0?void 0:t.calculateDimensionDifference(i);
1145o&&n.adjustDimensions(o)}var s=this.lastMoveData.hoveredNode;if(s!=null&&s.element){var i=this.getDim(s==null?void 0:s.element),o=(e=s.nodeDimensions)===null||e===void 0?void 0:e.calculateDimensionDifference(i);o&&s.adjustDimensions(o)}},r.prototype.restLastMoveData=function(){this.lastMoveData={targetNode:void 0,index:void 0,placement:void 0,mouseEvent:void 0}},r.prototype.triggerLegacyOnMoveCallback=function(t,e){var n,i,o,s,c=(n=this.sourceNodes[0])===null||n===void 0?void 0:n.model;(o=(i=this.eventHandlers).legacyOnMoveClb)===null||o===void 0||o.call(i,{event:t,target:c,parent:(s=this.lastMoveData.targetNode)===null||s===void 0?void 0:s.model,index:e})},r.prototype.triggerMoveEvent=function(t,e){var n,i=this.lastMoveData,o=i.targetNode,s=i.placement,c=i.index,d=c?c+(s==="after"?-1:0):0;this.em.trigger("sorter:drag",{target:(o==null?void 0:o.element)||null,targetModel:(n=this.lastMoveData.targetNode)===null||n===void 0?void 0:n.model,sourceModel:this.sourceNodes[0].model,dims:(o==null?void 0:o.childrenDimensions)||[],pos:{index:d,indexEl:d,placement:s},x:t,y:e})},r.prototype.getDropPosition=function(t,e,n){var i,o=t.nodeDimensions,s=t.childrenDimensions,c=t.getChildren(),d=c&&c.length>0;o=o||this.getDim(t.element),t.nodeDimensions=o,s=s||this.getChildrenDim(t),t.childrenDimensions=s;var f=o.clone(),g=0,m="inside";if(d&&s.length>0){var y=gE(s,e,n),x=y.index,w=y.placement;m=w;var k=s[x];f=k.clone(),g=((i=k.indexEl)!==null&&i!==void 0?i:x)+(m=="after"?1:0)}return{index:g,placement:m,placeholderDimensions:f}},r.prototype.getOrCreateHoveredNode=function(t){var e=this.lastMoveData.hoveredNode,n=new this.treeClass(t),i=n.equals(e),o=i?e:n;return o.nodeDimensions=i?e.nodeDimensions:this.getDim(n.element),o},r.prototype.getMouseTargetElement=function(t){var e=this.containerContext.customTarget,n=this.containerContext.document.elementFromPoint(t.clientX,t.clientY),i=e?e({event:t}):n;return i},r.prototype.onDragStart=function(t){this.eventHandlers.onDragStart&&this.eventHandlers.onDragStart(t)},r.prototype.endDrag=function(){this.dropDragged()},r.prototype.cancelDrag=function(){var t,e,n=this.lastMoveData.targetNode;(e=(t=this.eventHandlers).onTargetChange)===null||e===void 0||e.call(t,n,void 0),this.finalizeMove()},r.prototype.finalizeMove=function(){var t,e,n,i;this.cleanupEventListeners(),this.triggerOnDragEndEvent(),(e=(t=this.eventHandlers).onEnd)===null||e===void 0||e.call(t),(i=(n=this.eventHandlers).legacyOnEnd)===null||i===void 0||i.call(n),this.restLastMoveData(),this.rateLimiter.clearTimeout()},r.prototype.dropDragged=function(){var t,e,n=this.lastMoveData,i=n.targetNode,o=n.index;(e=(t=this.eventHandlers).onDrop)===null||e===void 0||e.call(t,i,this.sourceNodes,o),this.finalizeMove()},r.prototype.triggerOnDragEndEvent=function(){var t=this.lastMoveData.targetNode,e=this.sourceNodes[0];this.em.trigger("sorter:drag:end",{targetCollection:t?t.getChildren():null,modelToDrop:e==null?void 0:e.model,warns:[""],validResult:{result:!0,src:this.sourceNodes.map(function(n){return n.element}),srcModel:e==null?void 0:e.model,trg:t==null?void 0:t.element,trgModel:t==null?void 0:t.model,draggable:!0,droppable:!0},dst:t==null?void 0:t.element,srcEl:e==null?void 0:e.element})},r.prototype.getFirstElementWithAModel=function(t){for(var e=function(n){return(0,De.default)(n).data("model")!==void 0};t&&this.containerContext.container.contains(t);){if(e(t))return t;t=t.parentElement}return null},r.prototype.getValidParent=function(t,e,n,i){if(t){var o=this.lastMoveData,s=o.targetNode,c=o.hoveredNode,d=o.hoveredIndex,f=o.hoveredWithinBounds,g=t.equals(c);t.nodeDimensions=g?c.nodeDimensions:this.getDim(t.element);var m=this.getIndexInParent(t,t.nodeDimensions,n,i),y=m===d,x=t.isWithinDropBounds(n,i),w=g&&y&&x===f;if(w&&s)return s;if(!x)return this.handleParentTraversal(t,n,i);var k=this.sourceNodes.some(function(S){return t.canMove(S,e)});return this.triggerDragValidation(k,t),k?t:this.handleParentTraversal(t,n,i)}},r.prototype.handleParentTraversal=function(t,e,n){var i=t.getParent();if(i){var o=this.getIndexInParent(t,t.nodeDimensions,e,n);if(o!==void 0)return this.getValidParent(i,o,e,n)}},r.prototype.getIndexInParent=function(t,e,n,i){var o=t.getParent();if(o){var s=o==null?void 0:o.indexOfChild(t);return e.dir=this.getDirection(t.element,o.element),s=s+(e.determinePlacement(n,i)=="after"?1:0),s}},r.prototype.triggerDragValidation=function(t,e){var n=this.sourceNodes[0];return this.em.trigger("sorter:drag:validation",{valid:t,src:n==null?void 0:n.element,srcModel:n==null?void 0:n.model,trg:e.element,trgModel:e.model}),n},r.prototype.cleanupEventListeners=function(){var t=this.containerContext.container;gr(t,"dragstart",this.onDragStart),gr(t,"mousemove dragover",this.onMove),gr(this.containerContext.document,"mouseup dragend touchend",this.endDrag)},r.prototype.getDirection=function(t,e){var n;return this.dragDirection===aa.Vertical?n=!0:this.dragDirection===aa.Horizontal?n=!1:n=yE(t,e),n},r.prototype.getChildrenDim=function(t){var e=this,n=[],i=t.element;if(!i)return[];var o=t.getChildren();return!o||o.length===0?[]:((0,E.each)(o,function(s,c){var d=s.element;
1145if(d&&!(!_l(d)&&!_1(d,e.containerContext.itemSel))){var f=e.getDim(d);f.dir=e.getDirection(d,i),f.indexEl=c,n.push(f)}}),n)},r.prototype.getMousePositionRelativeToContainer=function(t,e){var n=e-this.containerOffset.top+this.containerContext.container.scrollTop,i=t-this.containerOffset.left+this.containerContext.container.scrollLeft;if(this.positionOptions.canvasRelative){var o=this.em.Canvas.getMouseRelativeCanvas({clientX:t,clientY:e},{noScroll:1});i=o.x,n=o.y}return{mouseXRelative:i,mouseYRelative:n}},r.prototype.cacheContainerPosition=function(){var t=this.containerContext.container,e=by(t),n=this.positionOptions.windowMargin?Math.abs(e.top):e.top,i=this.positionOptions.windowMargin?Math.abs(e.left):e.left;this.containerOffset={top:n,left:i}},r.prototype.getDim=function(t){var e=this.em,n=this.positionOptions.relative,i=this.positionOptions.windowMargin,o=e==null?void 0:e.Canvas,s=o?o.getElementOffsets(t):{},c,d,f,g;if(this.positionOptions.canvasRelative&&this.em){var m=o.getElementPos(t,{noScroll:1});c=m.top,d=m.left,f=m.height,g=m.width}else{var y=by(t);c=n?t.offsetTop:y.top-(i?-1:1)*this.containerOffset.top,d=n?t.offsetLeft:y.left-(i?-1:1)*this.containerOffset.left,f=t.offsetHeight,g=t.offsetWidth}return new kE({top:c,left:d,height:f,width:g,offsets:s})},r})(Ze),OE=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),EE=(function(a){OE(r,a);function r(t){var e=a.call(this)||this;return e.pfx=t.pfx||"",e.allowNesting=t.allowNesting||!1,e.container=t.container,e.setElement(t.el),e.offset={top:t.offset.top||0,left:t.offset.left||0},e.moveLimiter=new Hx(100),e}return r.prototype.show=function(){this.el.style.display="block"},r.prototype.hide=function(){this.moveLimiter.clearTimeout(),this.el.style.display="none"},r.prototype.move=function(t,e){var n=this,i={elementDimension:t,placement:e};this.moveLimiter.updateArgs(i),this.moveLimiter.execute(function(o){var s=o.elementDimension,c=o.placement;n._move(s,c)})},r.prototype._move=function(t,e){var n=0,i="px",o=0,s=0,c="",d="";this.setOrientationForDimension(t);var f=t.top,g=t.left,m=t.height,y=t.width,x=t.dir,w=t.offsets;if(e==="inside"){if(this.setOrientation("horizontal"),!this.allowNesting){this.hide();return}var k=5,S=(w==null?void 0:w.paddingTop)||k,A=(w==null?void 0:w.paddingLeft)||k,L=(w==null?void 0:w.borderTopWidth)||0,D=(w==null?void 0:w.borderLeftWidth)||0,W=(w==null?void 0:w.borderRightWidth)||0,j=D+W;o=f+S+L,s=g+A+D,c=Math.max(y-A*2-j,1)+"px",d="auto"}else x?(c=y+i,d="auto",o=e==="before"?f-n:f+m-n,s=g):(c="auto",d=m-n*2+i,o=f+n,s=e==="before"?g-n:g+y-n,this.setOrientation("vertical"));this.updateStyles(o,s,c,d),this.adjustOffset()},r.prototype.setOrientationForDimension=function(t){this.el.classList.remove("vertical"),this.el.classList.add("horizontal"),t&&!t.dir&&this.setOrientation("vertical")},r.prototype.setOrientation=function(t){this.el.classList.remove("horizontal"),this.el.classList.remove("vertical"),this.el.classList.add(t)},r.prototype.updateStyles=function(t,e,n,i){this.el.style.top=t+"px",this.el.style.left=e+"px",n&&(this.el.style.width=n),i&&(this.el.style.height=i)},r.prototype.adjustOffset=function(){this.$el.css("top","+="+this.offset.top+"px"),this.$el.css("left","+="+this.offset.left+"px")},r})(Ze),tl=function(){return tl=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},tl.apply(this,arguments)},AE=(function(){function a(r){var t=_E(r);(0,E.bindAll)(this,"startSort","cancelDrag","recalculateTargetOnScroll","rollback","updateOffset","handlePlaceholderMove","finalizeMove"),this.containerContext=t.containerContext,this.positionOptions=t.positionOptions,this.dragBehavior=t.dragBehavior,this.eventHandlers=tl(tl({},t.eventHandlers),{onPlaceholderPositionChange:this.handlePlaceholderMove,onEnd:this.finalizeMove}),this.em=r.em,this.treeClass=r.treeClass,this.updateOffset(),this.em.on(this.em.Canvas.events.refresh,this.updateOffset),this.placeholder=this.createPlaceholder(),this.dropLocationDeterminer=new TE({em:this.em,treeClass:this.treeClass,containerContext:this.containerContext,positionOptions:this.positionOptions,dragDirection:this.dragBehavior.dragDirection,eventHandlers:this.eventHandlers})}return a.prototype.startSort=function(r){var t,e,n,i,o,s,c,d=this.getSourceNodes(r),f=d.sourceNodes,g=d.sourcesWithModel;this.sourceNodes=f,this.dropLocationDeterminer.startSort(f),this.bindDragEventHandlers(),(e=(t=this.eventHandlers).onStartSort)===null||e===void 0||e.call(t,this.sourceNodes,this.containerContext.container);var m=(n=this.sourceNodes[0])===null||n===void 0?void 0:n.model;(o=(i=this.eventHandlers).legacyOnStartSort)===null||o===void 0||o.call(i,{sorter:this,target:m,parent:m&&((s=m.parent)===null||s===void 0?void 0:s.call(m)),index:m&&((c=m.index)===null||c===void 0?void 0:c.call(m))}),this.em.trigger("sorter:drag:start",r[0],g[0])},a.prototype.validTarget=function(r,t,e){if(!r)return!1;var n=(0,De.default)(r).data("model");if(!n)return!1;var i=new this.treeClass(n),o=this.getSourceNodes(t).sourceNodes,s=o.some(function(c){return i.canMove(c,e)});return s},a.prototype.getSourceNodes=function(r){var t=this,e=r.filter(function(s){return!!s.dragSource||t.findValidSourceElement(s.element)}),n=e.map(function(s){var c,d;return{model:((c=s.dragSource)===null||c===void 0?void 0:c.model)||((d=(0,De.default)(s.element))===null||d===void 0?void 0:d.data("model")),content:s.dragSource}}),i=n.sort(function(s,c){return vE(s.model,c.model)}),o=i.map(function(s){return new t.treeClass(s.model,s.content)});return{sourceNodes:o,sourcesWithModel:n}},a.prototype.recalculateTargetOnScroll=function(){this.dropLocationDeterminer.recalculateTargetOnScroll()},a.prototype.cancelDrag=function(){this.triggerNullOnEndMove(!0),this.dropLocationDeterminer.cancelDrag()},a.prototype.endDrag=function(){this.dropLocationDeterminer.endDrag(
1145)},a.prototype.handlePlaceholderMove=function(r,t){this.ensurePlaceholderElement(),this.updatePlaceholderPosition(r,t)},a.prototype.createPlaceholder=function(){return new EE({container:this.containerContext.container,allowNesting:this.dragBehavior.nested,pfx:this.containerContext.pfx,el:this.containerContext.placeholderElement,offset:{top:this.positionOptions.offsetTop,left:this.positionOptions.offsetLeft}})},a.prototype.ensurePlaceholderElement=function(){var r=this.placeholder.el,t=this.containerContext.container;r.ownerDocument.contains(r)||t.append(this.placeholder.el)},a.prototype.updateOffset=function(){var r,t=((r=this.em)===null||r===void 0?void 0:r.get("canvasOffset"))||{};this.positionOptions.offsetTop=t.top,this.positionOptions.offsetLeft=t.left},a.prototype.findValidSourceElement=function(r){return r&&!_1(r,"".concat(this.containerContext.itemSel,", ").concat(this.containerContext.containerSel))&&(r=mE(r,this.containerContext.itemSel)),r},a.prototype.bindDragEventHandlers=function(){or(this.containerContext.document,"keydown",this.rollback)},a.prototype.updatePlaceholderPosition=function(r,t){this.placeholder.move(r,t)},a.prototype.cleanupEventListeners=function(){gr(this.containerContext.document,"keydown",this.rollback)},a.prototype.finalizeMove=function(){this.cleanupEventListeners(),this.placeholder.hide(),delete this.sourceNodes},a.prototype.rollback=function(r){gr(this.containerContext.document,"keydown",this.rollback);var t="Escape";r.key===t&&this.cancelDrag()},a.prototype.triggerNullOnEndMove=function(r){var t,e,n,i,o,s=(t=this.sourceNodes)===null||t===void 0?void 0:t[0].model,c={target:s,parent:s&&((e=s.parent)===null||e===void 0?void 0:e.call(s)),index:s&&((n=s.index)===null||n===void 0?void 0:n.call(s))};(o=(i=this.eventHandlers).legacyOnEndMove)===null||o===void 0||o.call(i,null,this,tl(tl({},c),{cancelled:r}))},a})();const Fx=AE;var ME=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),el=function(){return el=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},el.apply(this,arguments)},PE=kn.Target,Wh={id:"sorter-target",type:PE},LE=(function(a){ME(r,a);function r(t){var e=t.em,n=t.treeClass,i=t.containerContext,o=t.dragBehavior,s=t.positionOptions,c=s===void 0?{}:s,d=t.eventHandlers,f=d===void 0?{}:d,g=a.call(this,{em:e,treeClass:n,containerContext:i,positionOptions:c,dragBehavior:o,eventHandlers:el(el({},f),{onStartSort:function(m,y){var x;(x=f.onStartSort)===null||x===void 0||x.call(f,m,y),g.onStartSort()},onDrop:function(m,y,x){var w;(w=f.onDrop)===null||w===void 0||w.call(f,m,y,x),g.onDrop(m,y,x)},onTargetChange:function(m,y){var x;(x=f.onTargetChange)===null||x===void 0||x.call(f,m,y),g.onTargetChange(m,y)},onMouseMove:function(m){var y;(y=f.onMouseMove)===null||y===void 0||y.call(f,m),g.onMouseMove(m)}})})||this;return g.targetIsText=!1,g.onMouseMove=function(m){var y,x=g.targetIsText&&((y=g.sourceNodes)===null||y===void 0?void 0:y.some(function(w){return w.isTextable()}));x&&g.updateTextViewCursorPosition(m)},g.onDrop=function(m,y,x){var w=typeof x=="number"?x:-1;if(m&&y.length>0){var k=g.handleNodeAddition(m,y,w);k.length===0&&g.triggerNullOnEndMove(!1)}else g.triggerNullOnEndMove(!0);m==null||m.restNodeState(),g.placeholder.hide()},g.onTargetChange=function(m,y){var x;m==null||m.restNodeState();var w=g.em.Canvas;if(!y){g.placeholder.hide(),w.removeSpots(Wh);return}y==null||y.setSelectedParentState(),g.targetIsText=y.isTextNode();var k=g.targetIsText&&((x=g.sourceNodes)===null||x===void 0?void 0:x.some(function(D){return D.isTextable()}));k?(y.setContentEditable(!0),g.placeholder.hide()):g.placeholder.show();var S=kn.Select,A=kn.Hover,L=kn.Spacing;
1145[S,A,L].forEach(function(D){return w.removeSpots({type:D})}),w.addSpot(el(el({},Wh),{component:y.model}))},(0,E.bindAll)(g,"handleScrollEvent"),g}return r.prototype.onStartSort=function(){this.em.clearSelection(),this.setAutoCanvasScroll(!0)},r.prototype.bindDragEventHandlers=function(){this.em.on("frame:scroll",this.handleScrollEvent),a.prototype.bindDragEventHandlers.call(this)},r.prototype.cleanupEventListeners=function(){this.em.off("frame:scroll",this.handleScrollEvent),a.prototype.cleanupEventListeners.call(this)},r.prototype.handleScrollEvent=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=(t=e==null?void 0:e[0])===null||t===void 0?void 0:t.frame,o=this.em.Canvas.getCanvasView().frame===i;o&&this.recalculateTargetOnScroll()},r.prototype.handleNodeAddition=function(t,e,n){var i=this;return e.reduce(function(o,s){if(!t.canMove(s,n))return o;if(i.isPositionChanged(t,s,n)){var c=i.moveNode(t,s,n),d=c.index,f=c.addedNode;o.push(f),n=d}return n++,o},[])},r.prototype.isPositionChanged=function(t,e,n){var i=e.getParent(),o=i?i.indexOfChild(e):-1;(i==null?void 0:i.model.cid)===t.model.cid&&o<n&&n--;var s=(i==null?void 0:i.model.cid)===t.model.cid,c=o===n,d=this.targetIsText&&e.isTextable();return!(s&&c&&!d)},r.prototype.moveNode=function(t,e,n){var i=e.getParent();if(i){var o=i.indexOfChild(e);i.removeChildAt(o,{temporary:!0}),i.model.cid===t.model.cid&&o<n&&n--}var s=t.addChildAt(e,n,{action:"move-component"});return s&&this.triggerEndMoveEvent(s),{addedNode:s,index:n}},r.prototype.triggerEndMoveEvent=function(t){var e,n,i,o,s,c;(n=(e=this.eventHandlers).legacyOnEndMove)===null||n===void 0||n.call(e,t.model,this,{target:t.model,parent:t.model&&((o=(i=t.model).parent)===null||o===void 0?void 0:o.call(i)),index:t.model&&((c=(s=t.model).index)===null||c===void 0?void 0:c.call(s))})},r.prototype.finalizeMove=function(){var t,e;(t=this.em)===null||t===void 0||t.Canvas.removeSpots(Wh),(e=this.sourceNodes)===null||e===void 0||e.forEach(function(n){return n.restNodeState()}),this.setAutoCanvasScroll(!1),a.prototype.finalizeMove.call(this)},r.prototype.updateTextViewCursorPosition=function(t){var e=this.em;if(e){var n=e.Canvas,i=n.getDocument(),o=null;if(i){var s=_p(t);if(i.caretPositionFromPoint){var c=i.caretPositionFromPoint(s.clientX,s.clientY);c&&(o=i.createRange(),o.setStart(c.offsetNode,c.offset))}else i.caretRangeFromPoint?o=i.caretRangeFromPoint(s.clientX,s.clientY):t.rangeParent&&(o=i.createRange(),o.setStart(t.rangeParent,t.rangeOffset));var d=n.getWindow().getSelection();n.getFrameEl().focus(),d==null||d.removeAllRanges(),o&&(d==null||d.addRange(o))}}},r.prototype.setAutoCanvasScroll=function(t){var e=this.em,n=e==null?void 0:e.Canvas;n&&(t?n.startAutoscroll():n.stopAutoscroll())},r})(Fx);const xy=LE;var DE=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),zf=function(){return zf=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},zf.apply(this,arguments)},IE=(function(a){DE(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.defaults=function(){return{values:{}}},r.prototype.initialize=function(){var t=this.collection;this.prop=t==null?void 0:t.prop},r.prototype.getId=function(){return this.cid},r.prototype.getIndex=function(){var t=this.collection;return t?t.indexOf(this):-1},r.prototype.getValues=function(t){t===void 0&&(t={});var e=this.get("values");return t.camelCase?Object.keys(e).reduce(function(n,i){return n[ld(i)]=e[i],n},{}):e},r.prototype.getLabel=function(){var t;return(t=this.prop)===null||t===void 0?void 0:t.getLayerLabel(this)},r.prototype.isSelected=function(){var t;return((t=this.prop)===null||t===void 0?void 0:t.getSelectedLayer())===this},r.prototype.select=function(){var t;return(t=this.prop)===null||t===void 0?void 0:t.selectLayer(this)},r.prototype.remove=function(){var t;return(t=this.prop)===null||t===void 0?void 0:t.removeLayer(this)},r.prototype.move=function(t){var e;return(e=this.prop)===null||e===void 0?void 0:e.moveLayer(this,t)},r.prototype.getStylePreview=function(t){var e;return t===void 0&&(t={}),(e=this.prop)===null||e===void 0?void 0:e.getStylePreview(this,t)},r.prototype.hasPreview=function(){var t;return!!(!((t=this.prop)===null||t===void 0)&&t.get("preview"))},r.prototype.upValues=function(t){return t===void 0&&(t={}),this.set("values",zf(zf({},this.getValues()),t))},r})(We);const vc=IE;
1145var jE=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),$x=(function(a){jE(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.initialize=function(t,e){e===void 0&&(e={}),this.prop=e.prop},r})(Rr);const Bu=$x;$x.prototype.model=vc;var NE=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),RE=(function(a){NE(r,a);function r(t){return a.call(this,t)||this}return r.prototype.getChildren=function(){return this.model instanceof Bu?this.model.models.map(function(t){return new r(t)}):null},r.prototype.getParent=function(){var t=this.model instanceof vc?this.model.collection:null;return t?new r(t):null},r.prototype.addChildAt=function(t,e){if(this.model instanceof vc)throw Error("Cannot add a layer model to another layer model");var n=this.model.add(t.model,{at:e});return new r(n)},r.prototype.removeChildAt=function(t){if(this.model instanceof vc)throw Error("Cannot remove a layer model from another layer model");var e=this.model.at(t);e&&this.model.remove(e)},r.prototype.indexOfChild=function(t){return!(t.model instanceof vc)||!(this.model instanceof Bu)?-1:this.model.indexOf(t.model)},r.prototype.canMove=function(t,e){return this.model instanceof Bu&&!!t.model},Object.defineProperty(r.prototype,"view",{get:function(){return this.model.view},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"element",{get:function(){var t;return(t=this.view)===null||t===void 0?void 0:t.el},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"model",{get:function(){return this._model},enumerable:!1,configurable:!0}),r})($b),BE=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),fv=function(){return fv=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},fv.apply(this,arguments)},VE=(function(a){BE(r,a);function r(t){var e=t.em,n=t.containerContext,i=t.dragBehavior,o=t.positionOptions,s=o===void 0?{}:o,c=t.eventHandlers,d=c===void 0?{}:c,f=a.call(this,{em:e,treeClass:RE,containerContext:n,positionOptions:s,dragBehavior:i,eventHandlers:fv({onStartSort:function(g,m){var y;(y=d.onStartSort)===null||y===void 0||y.call(d,g,m),f.onLayerStartSort(g)},onDrop:function(g,m,y){var x;(x=d.onDrop)===null||x===void 0||x.call(d,g,m,y),f.onLayerDrop(g,m,y)},onEnd:function(){f.placeholder.hide()}},d)})||this;return f.onLayerStartSort=function(g){f.em.clearSelection();var m=g[0];f.em.trigger("sorter:drag:start",m==null?void 0:m.element,m==null?void 0:m.model),f.placeholder.show()},f.onLayerDrop=function(g,m,y){if(g){y=typeof y=="number"?y:-1;for(var x=0;x<m.length;x++){var w=m[x];if(g.canMove(w,x)){var k=w.getParent(),S=-1;k&&(S=k.indexOfChild(w),k.removeChildAt(S)),y=S<y?y-1:y,g.addChildAt(w,y)}}f.placeholder.hide()}},f}return r})(Fx);const HE=VE;
1145var FE=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),pv=function(){return pv=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},pv.apply(this,arguments)},$E=(function(a){FE(r,a);function r(t){var e=a.call(this,t,"Utils")||this;return e.Sorter=xy,e.Resizer=hE,e.Dragger=Ap,e.ComponentSorter=xy,e.StyleManagerSorter=HE,e.helpers=pv({},r1),e}return r.prototype.destroy=function(){},r})(Jn);const zE=$E;var Yn,gi={},jn={16:!1,18:!1,17:!1,91:!1},zx="all",ls={"â§":16,shift:16,"â¥":18,alt:18,option:18,"â":17,ctrl:17,control:17,"â":91,command:91},Ux={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,home:36,end:35,pageup:33,pagedown:34,",":188,".":190,"/":191,"`":192,"-":189,"=":187,";":186,"'":222,"[":219,"]":221,"\\":220},C1=function(a){return Ux[a]||a.toUpperCase().charCodeAt(0)},bl=[];for(Yn=1;Yn<20;Yn++)Ux["f"+Yn]=111+Yn;function Fc(a,r){for(var t=a.length;t--;)if(a[t]===r)return t;return-1}function UE(a,r){if(a.length!=r.length)return!1;for(var t=0;t<a.length;t++)if(a[t]!==r[t])return!1;return!0}var WE={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey"};function ZE(a){for(Yn in jn)jn[Yn]=a[WE[Yn]]}function qE(a){var r,t,e,n,i,o;if(r=a.keyCode,Fc(bl,r)==-1&&bl.push(r),(r==93||r==224)&&(r=91),r in jn){jn[r]=!0;for(e in ls)ls[e]==r&&(Bn[e]=!0);return}if(ZE(a),!!Bn.filter.call(this,a)&&r in gi){for(o=k1(),n=0;n<gi[r].length;n++)if(t=gi[r][n],t.scope==o||t.scope=="all"){i=t.mods.length>0;for(e in jn)(!jn[e]&&Fc(t.mods,+e)>-1||jn[e]&&Fc(t.mods,+e)==-1)&&(i=!1);(t.mods.length==0&&!jn[16]&&!jn[18]&&!jn[17]&&!jn[91]||i)&&t.method(a,t)===!1&&(a.preventDefault?a.preventDefault():a.returnValue=!1,a.stopPropagation&&a.stopPropagation(),a.cancelBubble&&(a.cancelBubble=!0))}}}function KE(a){var r=a.keyCode,t,e=Fc(bl,r);if(e>=0&&bl.splice(e,1),(r==93||r==224)&&(r=91),r in jn){jn[r]=!1;for(t in ls)ls[t]==r&&(Bn[t]=!1)}}function GE(){for(Yn in jn)jn[Yn]=!1;for(Yn in ls)Bn[Yn]=!1}function Bn(a,r,t){var e,n;e=Wx(a),t===void 0&&(t=r,r="all");for(var i=0;i<e.length;i++)n=[],a=e[i].split("+"),a.length>1&&(n=Zx(a),a=[a[a.length-1]]),a=a[0],a=C1(a),a in gi||(gi[a]=[]),gi[a].push({shortcut:e[i],scope:r,method:t,key:e[i],mods:n})}function YE(a,r){var t,e,n=[],i,o,s;for(t=Wx(a),o=0;o<t.length;o++){if(e=t[o].split("+"),e.length>1&&(n=Zx(e)),a=e[e.length-1],a=C1(a),r===void 0&&(r=k1()),!gi[a])return;for(i=0;i<gi[a].length;i++)s=gi[a][i],s.scope===r&&UE(s.mods,n)&&(gi[a][i]={})}}function XE(a){return typeof a=="string"&&(a=C1(a)),Fc(bl,a)!=-1}function JE(){return bl.slice(0)}function QE(a){var r=(a.target||a.srcElement).tagName;return!(r=="INPUT"||r=="SELECT"||r=="TEXTAREA")}for(Yn in ls)Bn[Yn]=!1;function tA(a){zx=a||"all"}function k1(){return zx||"all"}function eA(a){var r,t,e;for(r in gi)for(t=gi[r],e=0;e<t.length;)t[e].scope===a?t.splice(e,1):e++}function Wx(a){var r;return a=a.replace(/\s/g,""),r=a.split(","),r[r.length-1]==""&&(r[r.length-2]+=","),r}function Zx(a){for(var r=a.slice(0,a.length-1),t=0;t<r.length;t++)r[t]=ls[r[t]];return r}function Zh(a,r,t){a.addEventListener?a.addEventListener(r,t,!1):a.attachEvent&&a.attachEvent("on"+r,function(){t(window.event)})}Bn.setScope=tA;Bn.getScope=k1;Bn.deleteScope=eA;Bn.filter=QE;Bn.isPressed=XE;Bn.getPressedKeyCodes=JE;Bn.unbind=YE;Bn.handlers=gi;Bn.init=function(a){Zh(a.document,"keydown",function(r){qE(r)}),Zh(a.document,"keyup",KE),Zh(a,"focus",GE)};const mc=Bn;var rA=function(){return{defaults:{"core:undo":{keys:"â+z, ctrl+z",handler:"core:undo",opts:{prevent:!0}},"core:redo":{keys:"â+shift+z, ctrl+shift+z",handler:"core:redo",opts:{prevent:!0}},"core:copy":{keys:"â+c, ctrl+c",handler:"core:copy"},"core:paste":{keys:"â+v, ctrl+v",handler:"core:paste"},"core:component-next":{keys:"s",handler:"core:component-next"},"core:component-prev":{keys:"w",handler:"core:component-prev"},"core:component-enter":{keys:"d",handler:"core:component-enter"},"core:component-exit":{keys:"a",handler:"core:component-exit"},"core:component-delete":{keys:"backspace, delete",handler:"core:component-delete",opts:{prevent:!0}}}}};const nA=rA;var Uf;(function(a){a.add="keymap:add",a.remove="keymap:remove",a.emit="keymap:emit",a.emitId="keymap:emit:"})(Uf||(Uf={}));
1145var iA=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),wy=function(a,r,t){if(t||arguments.length===2)for(var e=0,n=r.length,i;e<n;e++)(i||!(e in r))&&(i||(i=Array.prototype.slice.call(r,0,e)),i[e]=r[e]);return a.concat(i||Array.prototype.slice.call(r))};Jr()&&mc.init(window);var aA=(function(a){iA(r,a);function r(t){var e=a.call(this,t,"Keymaps",nA())||this;return e.keymaster=mc,e.events=Uf,e.keymaps={},e}return r.prototype.onLoad=function(){if(!this.em.isHeadless){var t=this.config.defaults;for(var e in t){var n=t[e];this.add(e,n.keys,n.handler,n.opts||{})}}},r.prototype.add=function(t,e,n,i){i===void 0&&(i={});var o=this,s=o.em,c=o.events,d={id:t,keys:e,handler:n},f=this.keymaps[t];return f&&this.remove(t),this.keymaps[t]=d,mc(e,function(g,m){var y=s.Commands,x=s.getEditor(),w={event:g,h:m},k=(0,E.isString)(n)?y.get(n):n,S=!s.isEditing()&&!s.Canvas.isInputFocused();if(S||i.force){i.prevent&&tb(g),(0,E.isFunction)(k)?k(x,0,w):y.runCommand(k,w);var A=[t,m.shortcut,g];s.trigger.apply(s,wy([c.emit],A,!1)),s.trigger.apply(s,wy(["".concat(c.emitId).concat(t)],A,!1))}},void 0),s.trigger(c.add,d),d},r.prototype.get=function(t){return this.keymaps[t]},r.prototype.getAll=function(){return this.keymaps},r.prototype.remove=function(t){var e=this,n=e.em,i=e.events,o=this.get(t);if(o)return delete this.keymaps[t],o.keys.split(", ").forEach(function(s){mc.unbind(s.trim())}),n==null||n.trigger(i.remove,o),o},r.prototype.removeAll=function(){var t=this;return Object.keys(this.keymaps).forEach(function(e){return t.remove(e)}),mc.handlers={},this},r.prototype.destroy=function(){this.removeAll(),this.keymaps={}},r})(Jn);const oA=aA;var sA=function(){return{stylePrefix:"mdl-",title:"",content:"",backdrop:!0,custom:!1,extend:{}}};const lA=sA;var cA=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),dA=(function(a){cA(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.defaults=function(){return{title:"",content:"",attributes:{},open:!1}},r.prototype.open=function(){this.set("open",!0)},r.prototype.close=function(){this.set("open",!1)},r})(Ea);const uA=dA;var hv;(function(a){a.open="modal:open",a.close="modal:close",a.all="modal"})(hv||(hv={}));var fA=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Wf=function(){return Wf=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Wf.apply(this,arguments)},pA=(function(a){fA(r,a);function r(t){var e=a.call(this,t)||this,n=e.model;return e.listenTo(n,"change:open",e.updateOpen),e.listenTo(n,"change:title",e.updateTitle),e.listenTo(n,"change:content",e.updateContent),e}return r.prototype.template=function(t){var e=t.pfx,n=t.ppfx,i=t.content,o=t.title;return'<div class="'.concat(e,"dialog ").concat(n,"one-bg ").concat(n,`two-color"> 1146 <div class="`).concat(e,`header"> 1147 <div class="`).concat(e,'title">').concat(o,`</div> 1148 <div class="`).concat(e,`btn-close" data-close-modal>⨯</div> 1149 </div> 1150 <div class="`).concat(e,`content"> 1151 <div id="`).concat(e,'c">').concat(i,`</div> 1152 <div style="clear:both"></div> 1153 </div> 1154 </div> 1155 <div class="`).concat(e,'collector" style="display: none"></div>')},r.prototype.events=function(){return{click:"onClick","click [data-close-modal]":"hide"}},r.prototype.onClick=function(t){var e=this.config.backdrop;e&&t.target===this.el&&this.hide()},r.prototype.getCollector=function(){return this.$collector||(this.$collector=this.$el.find("."+this.pfx+"collector")),this.$collector},r.prototype.getContent=function(){var t=this.pfx;return this.$content||(this.$content=this.$el.find(".".concat(t,"content #").concat(t,"c"))),this.$content},r.prototype.getTitle=function(t){return t===void 0&&(t={}),this.$title||(this.$title=this.$el.find("."+this.pfx+"title")),t.$?this.$title:this.$title.get(0)},r.prototype.updateContent=function(){var t=this.getContent(),e=t.children(),n=this.getCollector(),i=this.model.get("content");e.length&&n.append(e),t.empty().append(i)},r.prototype.updateTitle=function(){var t=this.getTitle({$:!0});t&&t.empty().append(this.model.get("title"))},r.prototype.updateOpen=function(){this.el.style.display=this.model.get("open")?"":"none"},r.prototype.hide=function(){this.model.close()},r.prototype.show=function(){this.model.open()},r.prototype.updateAttr=function(t){var e=this,n=e.pfx,i=e.$el,o=e.el,s=[].slice.call(o.attributes).map(function(c){return c.name});i.removeAttr(s.join(" ")),i.attr(Wf(Wf({},t||{}),{class:"".concat(n,"container ").concat(t&&t.class||"").trim()}))},r.prototype.render=function(){var t=this.$el,e=this.model.toJSON();return e.pfx=this.pfx,e.ppfx=this.ppfx,t.html(this.template(e)),this.updateAttr(),this.updateOpen(),this},r})(Ei);const hA=pA;
1155var gA=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),vA=(function(a){gA(r,a);function r(t){var e=a.call(this,t,"Modal",lA())||this;e.events=hv;var n=e.events;return e.model=new uA(e),e.model.on("change:open",function(i,o){t.trigger(o?n.open:n.close)}),e.model.on("change",(0,E.debounce)(function(){var i=e._evData(),o=e.config.custom;(0,E.isFunction)(o)&&o(i),t.trigger(n.all,i)},0)),e}return r.prototype._evData=function(){var t=this,e=this.getTitle(),n=this.getContent(),i=this.model.attributes,o=i.open,s=i.attributes;return{open:o,attributes:s,title:(0,E.isString)(e)?u0(e):e,content:(0,E.isString)(n)?u0(n):n.get?n.get(0):n,close:function(){t.close()}}},r.prototype.postRender=function(t){var e=t.model.config.el||t.el,n=this.render();n&&(e==null||e.appendChild(n))},r.prototype.open=function(t){t===void 0&&(t={});var e=t.attributes||{};return t.title&&this.setTitle(t.title),t.content&&this.setContent(t.content),this.model.set("attributes",e),this.model.open(),this.modal&&this.modal.updateAttr(e),this},r.prototype.close=function(){return this.model.close(),this},r.prototype.onceClose=function(t){var e=this,n=e.em,i=e.events;return n.once(i.close,t),this},r.prototype.onceOpen=function(t){var e=this,n=e.em,i=e.events;return n.once(i.open,t),this},r.prototype.isOpen=function(){return!!this.model.get("open")},r.prototype.setTitle=function(t){return this.model.set("title",t),this},r.prototype.getTitle=function(){return this.model.get("title")},r.prototype.setContent=function(t){return this.model.set("content"," "),this.model.set("content",t),this},r.prototype.getContent=function(){return this.model.get("content")},r.prototype.getContentEl=function(){var t;return(t=this.modal)===null||t===void 0?void 0:t.getContent().get(0)},r.prototype.getModel=function(){return this.model},r.prototype.render=function(){var t;if(!this.config.custom){var e=hA.extend(this.config.extend),n=this.modal&&this.modal.el;return this.modal=new e({el:n,model:this.model,config:this.config}),(t=this.modal)===null||t===void 0?void 0:t.render().el}},r.prototype.destroy=function(){var t;(t=this.modal)===null||t===void 0||t.remove()},r})(Jn);const mA=vA;var _y="sw-visibility",Cy="export-template",ky="open-sm",Sy="open-tm",Ty="open-layers",Oy="open-blocks",qh="fullscreen",Kh="preview",yA=function(){return{stylePrefix:"pn-",defaults:[{id:"commands",buttons:[{}]},{id:"options",buttons:[{active:!0,id:_y,className:"fa fa-square-o",command:"core:component-outline",context:_y,attributes:{title:"View components"}},{id:Kh,className:"fa fa-eye",command:Kh,context:Kh,attributes:{title:"Preview"}},{id:qh,className:"fa fa-arrows-alt",command:qh,context:qh,attributes:{title:"Fullscreen"}},{id:Cy,className:"fa fa-code",command:Cy,attributes:{title:"View code"}}]},{id:"views",buttons:[{id:ky,className:"fa fa-paint-brush",command:ky,active:!0,togglable:!1,attributes:{title:"Open Style Manager"}},{id:Sy,className:"fa fa-cog",command:Sy,togglable:!1,attributes:{title:"Settings"}},{id:Ty,className:"fa fa-bars",command:Ty,togglable:!1,attributes:{title:"Open Layer Manager"}},{id:Oy,className:"fa fa-th-large",command:Oy,togglable:!1,attributes:{title:"Open Blocks"}}]}]}};const bA=yA;var xA=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),wA=(function(a){xA(r,a);function r(t,e){var n=a.call(this,t,e)||this;return n.get("buttons").length&&n.set("buttons",new Gx(n.module,n.get("buttons"))),n}return r.prototype.defaults=function(){return{id:"",label:"",tagName:"span",className:"",command:"",context:"",buttons:[],attributes:{},options:{},active:!1,dragDrop:!1,togglable:!0,runDefaultCommand:!0,stopDefaultCommand:!1,disable:!1}},Object.defineProperty(r.prototype,"className",{get:function(){return this.get("className")}
1155,enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"command",{get:function(){return this.get("command")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"active",{get:function(){return this.get("active")},set:function(t){this.set("active",t)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"togglable",{get:function(){return this.get("togglable")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"runDefaultCommand",{get:function(){return this.get("runDefaultCommand")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"stopDefaultCommand",{get:function(){return this.get("stopDefaultCommand")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"disable",{get:function(){return this.get("disable")},enumerable:!1,configurable:!0}),r})(Ea);const qx=wA;var _A=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Kx=(function(a){_A(r,a);function r(t,e){return a.call(this,t,e,qx)||this}return r.prototype.deactivateAllExceptOne=function(t,e){this.forEach(function(n,i){n!==t&&(n.set("active",!1),e&&n.get("buttons").length&&n.get("buttons").deactivateAllExceptOne(t,e))})},r.prototype.deactivateAll=function(t,e){var n=t||"";this.forEach(function(i){i.get("context")==n&&i!==e&&i.set("active",!1,{fromCollection:!0}
1155)})},r.prototype.disableAllButtons=function(t){var e=t||"";this.forEach(function(n,i){n.get("context")==e&&n.set("disable",!0)})},r.prototype.disableAllButtonsExceptOne=function(t,e){this.forEach(function(n,i){n!==t&&(n.set("disable",!0),e&&n.get("buttons").length&&n.get("buttons").disableAllButtonsExceptOne(t,e))})},r})(Tp);const Gx=Kx;Kx.prototype.model=qx;var CA=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),kA=(function(a){CA(r,a);function r(t,e){var n=a.call(this,t,e)||this,i=n.get("buttons")||[];return n.buttons=new Gx(t,i),n}return r.prototype.defaults=function(){return{id:"",content:"",visible:!0,buttons:[],attributes:{}}},Object.defineProperty(r.prototype,"buttons",{get:function(){return this.get("buttons")},set:function(t){this.set("buttons",t)},enumerable:!1,configurable:!0}),r})(Ea);const Yx=kA;var SA=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Xx=(function(a){SA(r,a);function r(t,e){return a.call(this,t,e,Yx)||this}return r})(Tp);const TA=Xx;Xx.prototype.model=Yx;var OA=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),rl=function(){return rl=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},rl.apply(this,arguments)},EA=(function(a){OA(r,a);function r(t){var e=a.call(this,t)||this,n=e,i=n.model,o=n.em,s=n.pfx,c=n.ppfx,d=i.className,f=i.attributes,g=f.command,m=f.listen;if(e.id=s+i.get("id"),e.activeCls="".concat(s,"active ").concat(c,"four-color"),e.disableCls="".concat(c,"disabled"),e.btnsVisCls="".concat(s,"visible"),e.className=s+"btn"+(d?" "+d:""),e.listenTo(i,"change",e.render),e.listenTo(i,"change:active updateActive",e.updateActive),e.listenTo(i,"checkActive",e.checkActive),e.listenTo(i,"change:bntsVis",e.updateBtnsVis),e.listenTo(i,"change:attributes",e.updateAttributes),e.listenTo(i,"change:className",e.updateClassName),e.listenTo(i,"change:disable",e.updateDisable),o&&(0,E.isString)(g)&&m){var y={fromListen:!0};e.listenTo(o,"run:".concat(g),function(){return i.set("active",!0,y)}),e.listenTo(o,"stop:".concat(g),function(){return i.set("active",!1,y)})}return o&&o.get&&(e.commands=o.get("Commands")),e}return r.prototype.tagName=function(){return this.model.get("tagName")},r.prototype.events=function(){return{click:"clicked"}},r.prototype.updateClassName=function(){var t=this,e=t.model,n=t.pfx,i=e.className,o=e.get("attributes").class,s="".concat(o||""," ").concat(n,"btn ").concat(i||"");this.$el.attr("class",s.trim())},r.prototype.updateAttributes=function(){var t=this,e=t.em,n=t.model,i=t.$el,o=n.get("attributes")||{},s=e&&e.t&&e.t("panels.buttons.titles.".concat(n.id));i.attr(o),s&&i.attr({title:s}),this.updateClassName()},r.prototype.updateBtnsVis=function(){this.$buttons&&(this.model.get("bntsVis")?this.$buttons.addClass(this.btnsVisCls):this.$buttons.removeClass(this.btnsVisCls))},r.prototype.updateActive=function(t,e,n){var i;n===void 0&&(n={});var o=this,s=o.model,c=o.commands,d=o.$el,f=o.activeCls,g=n.fromCollection,m=n.fromListen,y=s.get("context"),x=s.get("options"),w=s.command,k={};w&&(c&&(0,E.isString)(w)?k=c.get(w)||{}:(0,E.isFunction)(w)?k=c.create({run:w}):w!==null&&(0,E.isObject)(w)&&(k=c.create(w)),s.active?(!g&&((i=s.collection)===null||i===void 0||i.deactivateAll(y,s)),s.set("active",!0,{silent:!0}).trigger("checkActive"),!m&&c.runCommand(k,rl(rl({},x),{sender:s})),k.noStop&&s.set("active",!1)):(d.removeClass(f),!m&&c.stopCommand(k,rl(rl({},x),{sender:s,force:1}))))},r.prototype.updateDisable=function(){var t=this,e=t.disableCls,n=t.model,i=n.disable;this.$el[i?"addClass":"removeClass"](e)},r.prototype.checkActive=function(){var t=this,e=t.model,n=t.$el,i=t.activeCls;e.active?n.addClass(i):n.removeClass(i)},r.prototype.clicked=function(){var t=this.model;t.get("bntsVis")||t.disable||!t.command||this.toggleActive()},r.prototype.toggleActive=function(){var t=this,e=t.model,n=t.em,i=e.active,o=e.togglable;i&&!o||(e.active=!i,i?e.runDefaultCommand&&n.runDefault():e.stopDefaultCommand&&n.stopDefault())},r.prototype.render=function(){var t=this.model,e=t.get("label"),n=this.$el;return!t.get("el")&&n.empty(),this.updateAttributes(),e&&n.append(e),this.checkActive(),this.updateDisable(),this},r})(Ei);const AA=EA;
1155var MA=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),PA=(function(a){MA(r,a);function r(t){var e=a.call(this,{collection:t})||this;return e.listenTo(e.collection,"add",e.addTo),e.listenTo(e.collection,"reset remove",e.render),e.className=e.pfx+"buttons",e}return r.prototype.addTo=function(t){this.addToCollection(t)},r.prototype.addToCollection=function(t,e){var n=e||null,i=t.get("el"),o=new AA({el:i,model:t}),s=o.render().el;return n?n.appendChild(s):this.$el.append(s),s},r.prototype.render=function(){var t=this,e=document.createDocumentFragment();return this.$el.empty(),this.collection.each(function(n){return t.addToCollection(n,e)}),this.$el.append(e),this.$el.attr("class",(0,E.result)(this,"className")),this},r})(Ei);const LA=PA;var DA=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),gv=function(){return gv=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},gv.apply(this,arguments)},IA=(function(a){DA(r,a);function r(t){var e=a.call(this,{model:t,el:t.get("el")})||this;return e.className=e.pfx+"panel",e.id=e.pfx+t.get("id"),e.listenTo(t,"change:appendContent",e.appendContent),e.listenTo(t,"change:content",e.updateContent),e.listenTo(t,"change:visible",e.toggleVisible),t.view=e,e}return r.prototype.appendContent=function(){this.$el.append(this.model.get("appendContent"))},r.prototype.updateContent=function(){this.$el.html(this.model.get("content"))},r.prototype.toggleVisible=function(){if(!this.model.get("visible")){this.$el.addClass("".concat(this.ppfx,"hidden"));return}this.$el.removeClass("".concat(this.ppfx,"hidden"))},r.prototype.attributes=function(){return this.model.get("attributes")},r.prototype.initResize=function(){var t=this.em,e=t==null?void 0:t.Editor,n=this.model.get("resizable");if(e&&n){var i=n===!0?[!0,!0,!0,!0]:n,o=i.length,s=void 0,c=void 0,d=void 0,f=!1;if(o==2){var g=i;s=g[0],d=g[0],c=g[1],f=g[1]}else if(o==4){var g=i;s=g[0],c=g[1],d=g[2],f=g[3]}var m=new e.Utils.Resizer(gv({tc:s,cr:c,bc:d,cl:f,tl:!1,tr:!1,bl:!1,br:!1,appendTo:this.el,silentFrames:!0,avoidContainerUpdate:!0,prefix:e.getConfig().stylePrefix,onEnd:function(){t.Canvas.refresh({all:!0})},posFetcher:function(y,x){var w=x.target,k=y.style,S=m.getConfig(),A=S.keyWidth,L=S.keyHeight,D=y.getBoundingClientRect(),W=w=="container",j=k[A],et=k[L],z=j&&!W?parseFloat(j):D.width,B=et&&!W?parseFloat(et):D.height;return{left:0,top:0,width:z,height:B}}},n&&typeof n!="boolean"?n:{}));m.blur=function(){},m.focus(this.el)}},r.prototype.render=function(){var t=this.model.buttons,e=this.$el,n=this.ppfx,i="".concat(this.className," ").concat(this.id," ").concat(n,"one-bg ").concat(n,"two-color");if(e.addClass(i),this.toggleVisible(),t.length){var o=new LA(t);e.append(o.render().el)}return e.append(this.model.get("content")),this},r})(Ei);const jA=IA;var NA=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}
1155r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),RA=(function(a){NA(r,a);function r(t){var e=a.call(this,{collection:t})||this;return e.listenTo(t,"add",e.addTo),e.listenTo(t,"reset",e.render),e.listenTo(t,"remove",e.onRemove),e.className=e.pfx+"panels",e}return r.prototype.onRemove=function(t){var e=t.view;e&&e.remove()},r.prototype.addTo=function(t){this.addToCollection(t)},r.prototype.addToCollection=function(t,e){var n=e||null,i=t.get("el"),o=new jA(t),s=o.render().el,c=t.get("appendTo");if(!i)if(c){var d=document.querySelector(c);d==null||d.appendChild(s)}else n?n.appendChild(s):this.$el.append(s);return o.initResize(),s},r.prototype.render=function(){var t=this,e=this.$el,n=document.createDocumentFragment();return e.empty(),this.collection.each(function(i){return t.addToCollection(i,n)}),e.append(n),e.attr("class",this.className),this},r})(Ei);const BA=RA;var VA=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),HA=(function(a){VA(r,a);function r(t){var e=a.call(this,t,"Panels",bA())||this;return e.panels=new TA(e,e.config.defaults),e}return r.prototype.getPanels=function(){return this.panels},r.prototype.getPanelsEl=function(){var t;return(t=this.PanelsViewObj)===null||t===void 0?void 0:t.el},r.prototype.addPanel=function(t){return this.panels.add(t)},r.prototype.removePanel=function(t){return this.panels.remove(t)},r.prototype.getPanel=function(t){var e=this.panels.where({id:t});return e.length?e[0]:null},r.prototype.addButton=function(t,e){var n=this.getPanel(t);return n?n.buttons.add(e):null},r.prototype.removeButton=function(t,e){var n=this.getPanel(t);return n&&n.buttons.remove(e)},r.prototype.getButton=function(t,e){var n=this.getPanel(t);if(n){var i=n.buttons.where({id:e});return i.length?i[0]:null}return null},r.prototype.render=function(){var t;return(t=this.PanelsViewObj)===null||t===void 0||t.remove(),this.PanelsViewObj=new BA(this.panels),this.PanelsViewObj.render().el},r.prototype.active=function(){this.getPanels().each(function(t){t.buttons.each(function(e){e.get("active")&&e.trigger("updateActive")})})},r.prototype.disableButtons=function(){this.getPanels().each(function(t){t.buttons.each(function(e){e.get("disable")&&e.trigger("change:disable")})})},r.prototype.destroy=function(){this.panels.reset(),this.panels.stopListening(),this.PanelsViewObj&&this.PanelsViewObj.remove()},r})(Jn);const FA=HA;var $A=function(){return{stylePrefix:"cm-",optsCodeViewer:{}}};const zA=$A;var UA=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),WA=function(a,r){var t={};for(var e in a)Object.prototype.hasOwnProperty.call(a,e)&&r.indexOf(e)<0&&(t[e]=a[e]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,e=Object.getOwnPropertySymbols(a);n<e.length;n++)r.indexOf(e[n])<0&&Object.prototype.propertyIsEnumerable.call(a,e[n])&&(t[e[n]]=a[e[n]]);return t},ZA=(function(a){UA(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.build=function(t,e){e===void 0&&(e={});var n=e.em,i=WA(e,["em"]),o=i;if(e.cleanId&&n){var s=n.Css.getAll(),c=s.toJSON().map(function(f){var g=f.selectors,m=g&&g.length===1&&g.models[0];return m&&m.isId()&&m.get("name")}).filter(Boolean),d=o.attributes;o.attributes=function(f,g){g=typeof d=="function"?d(f,g):g;var m=g.id;return m&&m[0]==="i"&&!f.get("script")&&!f.get("script-export")&&!f.get("attributes").id&&c.indexOf(m)<0&&delete g.id,g}}return t.toHTML(o)},r})(We);const qA=ZA;
1155var KA=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),GA=(function(a){KA(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.build=function(t){var e=this,n=t.toJSON();return this.beforeEach(n),(0,E.each)(n,function(i,o){var s=n[o];if(s instanceof We)n[o]=e.build(s);else if(s instanceof Rr){var c=s;n[o]=[],c.length&&c.forEach(function(d,f){n[o][f]=e.build(d)})}}),n},r.prototype.beforeEach=function(t){delete t.status},r})(We);const YA=GA;var XA=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})();function JA(a){var r,t=((r=a.toString().match(/\{([\s\S]*)\}/m))===null||r===void 0?void 0:r[1])||"";return t.replace(/^\s*\/\/.*$/gm,"").trim().length===0}var QA=(function(a){XA(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.mapModel=function(t){var e,n=this,i="",o=t.get("script-export")||t.get("script"),s=t.get("type"),c=t.get("components"),d=t.getId();if(o){var f=t.get("attributes");f=(0,E.extend)({},f,{id:d}),t.set("attributes",f,{silent:!0});var g=t.getScriptString(o),m=t.get("script-props");if(t.get("scriptUpdated")&&!m)this.mapJs[s+"-"+d]={ids:[d],code:g};else{var y=void 0,x=this.mapJs[s];if(m&&(y=t.__getScriptProps()),x)x.ids.push(d),y&&(x.props[d]=y);else{var w={ids:[d],code:g};y&&(w.props=(e={},e[d]=y,e)),this.mapJs[s]=w}}}return c.forEach(function(k){i+=n.mapModel(k)}),i},r.prototype.build=function(t){this.mapJs={},this.mapModel(t);var e="";for(var n in this.mapJs){var i=this.mapJs[n];if(i.code)if(i.props){if(JA(i.code))continue;e+=` 1156 var props = `.concat(JSON.stringify(i.props),`; 1157 var ids = Object.keys(props).map(function(id) { return '#'+id }).join(','); 1158 var els = document.querySelectorAll(ids); 1159 for (var i = 0, len = els.length; i < len; i++) { 1160 var el = els[i]; 1161 (`).concat(i.code,`.bind(el))(props[el.id]); 1162 }`)}else{var o="#"+i.ids.join(", #");e+=` 1163 var items = document.querySelectorAll('`.concat(o,`'); 1164 for (var i = 0, len = items.length; i < len; i++) { 1165 (function(){ 1166`).concat(i.code,` 1167}.bind(items[i]))(); 1168 }`)}}return e},r})(We);const tM=QA;var eM=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),vv=function(){return vv=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},vv.apply(this,arguments)},$c;Jr()&&($c=kr(408),kr(253),kr(389),kr(640));var Jx=(function(a){eM(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.defaults=function(){return{input:"",label:"",codeName:"",theme:"hopscotch",readOnly:!0,lineNumbers:!0,autoFormat:!0}},r.prototype.init=function(t){return(0,E.bindAll)(this,"onChange"),this.editor=$c.fromTextArea(t,vv({dragDrop:!1,lineWrapping:!0,mode:this.get("codeName")},this.attributes)),this.element=t,this.editor.on("change",this.onChange),this},r.prototype.onChange=function(){this.trigger("update",this)},r.prototype.getEditor=function(){return this.editor},r.prototype.getElement=function(){return this.element},r.prototype.setElement=function(t){return this.element=t,this},r.prototype.refresh=function(){return this.getEditor().refresh(),this}
1168,r.prototype.focus=function(){return this.getEditor().focus(),this},r.prototype.getContent=function(){var t=this.getEditor();return t&&t.getValue()},r.prototype.setContent=function(t,e){var n=this;e===void 0&&(e={});var i=this.editor;if(i){i.setValue(t);var o=this.get("autoFormat"),s=i.autoFormatRange&&(o===!0||Array.isArray(o)&&o.includes(this.get("codeName")));s&&($c.commands.selectAll(i),i.autoFormatRange(i.getCursor(!0),i.getCursor(!1)),$c.commands.goDocStart(i)),!e.noRefresh&&setTimeout(function(){return n.refresh()})}},r})(We);const rM=Jx;Jx.prototype.CodeMirror=$c;var nM=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),iM=function(a,r){return Object.defineProperty?Object.defineProperty(a,"raw",{value:r}):a.raw=r,a},aM=(function(a){nM(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.template=function(t){var e=t.pfx,n=t.codeName,i=t.label;return Gn(Ey||(Ey=iM([` 1169 <div class="`,'editor" id="',"",`"> 1170 <div id="`,'title">',`</div> 1171 <div id="`,`code"></div> 1172 </div> 1173 `],[` 1174 <div class="`,'editor" id="',"",`"> 1175 <div id="`,'title">',`</div> 1176 <div id="`,`code"></div> 1177 </div> 1178 `])),e,e,n,e,i,e)},r.prototype.initialize=function(t){this.config=t.config||{},this.pfx=this.config.stylePrefix},r.prototype.render=function(){var t,e,n=this,i=n.model,o=n.pfx,s=n.$el,c=i.toJSON(),d=i.get("input")||((e=(t=i).getElement)===null||e===void 0?void 0:e.call(t));return c.pfx=o,s.html(this.template(c)),s.attr("class","".concat(o,"editor-c")),s.find("#".concat(o,"code")).append(d),this},r})(Ze);const oM=aM;var Ey,sM=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Zf=function(){return Zf=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Zf.apply(this,arguments)},lM="CodeMirror",cM=(function(a){sM(r,a);function r(t){var e=a.call(this,t,"CodeManager",zA())||this;e.EditorView=oM;var n=e.config,i=n.pStylePrefix;return i&&(n.stylePrefix=i+n.stylePrefix),e.generators={},e.viewers={},e.defGenerators={html:new qA,css:new bC,json:new YA,js:new tM},e.defViewers={CodeMirror:new rM},e.loadDefaultGenerators().loadDefaultViewers(),e}return r.prototype.addGenerator=function(t,e){return this.generators[t]=e,this},r.prototype.getGenerator=function(t){return this.generators[t]},r.prototype.getGenerators=function(){return this.generators},r.prototype.addViewer=function(t,e){return this.viewers[t]=e,this},r.prototype.getViewer=function(t){return this.viewers[t]},r.prototype.getViewers=function(){return this.viewers},r.prototype.createViewer=function(t){t===void 0&&(t={});var e=(0,E.isUndefined)(t.type)?lM:t.type,n=this.getViewer(e)&&this.getViewer(e).clone(),i=document.createElement("div"),o=document.createElement("textarea");return i.appendChild(o),n.set(Zf(Zf({},this.config.optsCodeViewer),t)),n.init(o),n.setElement(i),n},r.prototype.updateViewer=function(t,e){t.setContent(e)},r.prototype.getCode=function(t,e,n){n===void 0&&(n={}),n.em=this.em;var i=this.getGenerator(e);return i?i.build(t,n):""},r.prototype.loadDefaultGenerators=function(){for(var t in this.defGenerators)this.addGenerator(t,this.defGenerators[t]);return this},r.prototype.loadDefaultViewers=function(){for(var t in this.defViewers)this.addViewer(t,this.defViewers[t]);return this},r.prototype.destroy=function(){},r})(Jn);const dM=cM;var uM=kr(729),fM=kr.n(uM),pM=function(){return{maximumStackLength:500,trackSelection:!0}
1178};const hM=pM;var Nn;(function(a){a.update="update",a.updateBefore="updateBefore",a.undo="undo",a.redo="redo",a.load="load",a.projectLoad="project:load",a.projectLoaded="project:loaded",a.projectGet="project:get",a.log="log",a.telemetryInit="telemetry:init",a.destroy="destroy",a.destroyed="destroyed"})(Nn||(Nn={}));var gM=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),ka=function(){return ka=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},ka.apply(this,arguments)},vM=function(a,r,t){if(t||arguments.length===2)for(var e=0,n=r.length,i;e<n;e++)(i||!(e in r))&&(i||(i=Array.prototype.slice.call(r,0,e)),i[e]=r[e]);return a.concat(i||Array.prototype.slice.call(r))},lu=function(a){return a.avoidStore||a.noUndo||a.partial},Ay=function(a){return Object.keys(a.changedAttributes())},cu=new WeakMap,mM=(function(a){gM(r,a);function r(t){var e=a.call(this,t,"UndoManager",hM())||this;e.config._disable&&(e.config.maximumStackLength=0);var n=!0;return e.um=new(fM())(ka({track:!0,register:[]},e.config)),e.um.changeUndoType("change",{condition:function(i){var o=i.get("_undo");if(o){var s=i.get("_undoexc");if((0,E.isArray)(s)&&Ay(i).some(function(c){return s.indexOf(c)>=0}))return!1;if((0,E.isBoolean)(o)||(0,E.isArray)(o)&&Ay(i).some(function(c){return o.indexOf(c)>=0}))return!0}return!1},on:function(i,o,s){var c=cu.get(i);c||(c=i.previousAttributes(),cu.set(i,c));var d=s||o||{};if(d.noUndo&&setTimeout(function(){cu.delete(i)}),!lu(d)){var f=i.toJSON({fromUndo:n}),g={object:i,before:c,after:f};return cu.delete(i),(0,E.isEmpty)(f)?void 0:g}}}),e.um.changeUndoType("add",{on:function(i,o,s){if(s===void 0&&(s={}),!(lu(s)||!e.isRegistered(o)))return{object:o,before:void 0,after:i,options:ka(ka({},s),{fromUndo:n})}}}),e.um.changeUndoType("remove",{on:function(i,o,s){if(s===void 0&&(s={}),!(lu(s)||!e.isRegistered(o)))return{object:o,before:i,after:void 0,options:ka(ka({},s),{fromUndo:n})}}}),e.um.changeUndoType("reset",{undo:function(i,o){i.reset(o,{fromUndo:n})},redo:function(i,o,s){i.reset(s,{fromUndo:n})},on:function(i,o){if(o===void 0&&(o={}),!(lu(o)||!e.isRegistered(i)))return{object:i,before:o.previousModels,after:vM([],i.models,!0),options:ka(ka({},o),{fromUndo:n})}}}),e.um.on("undo redo",function(){t.getSelectedAll().map(function(i){return i.trigger("rerender:layer")})}),[Nn.undo,Nn.redo].forEach(function(i){return e.um.on(i,function(){return t.trigger(i)})}),e}return Object.defineProperty(r.prototype,"isDisabled",{get:function(){return!!this.config._disable},enumerable:!1,configurable:!0}),r.prototype.postLoad=function(){var t=this,e=t.config,n=t.em;e.trackSelection&&!this.isDisabled&&n&&this.add(n.get("selected"))},r.prototype.add=function(t){return this.isDisabled?this:(this.um.register(t),this)},r.prototype.remove=function(t){return this.isDisabled?this:(this.um.unregister(t),this)},r.prototype.removeAll=function(){return this.isDisabled?this:(this.um.unregisterAll(),this)},r.prototype.start=function(){return this.um.startTracking(),this},r.prototype.stop=function(){return this.um.stopTracking(),this},r.prototype.undo=function(t){t===void 0&&(t=!0);var e=this,n=e.em,i=e.um;return!n.isEditing()&&i.undo(t),this},r.prototype.undoAll=function(){return this.um.undoAll(),this},r.prototype.redo=function(t){t===void 0&&(t=!0);var e=this,n=e.em,i=e.um;return!n.isEditing()&&i.redo(t),this},r.prototype.redoAll=function(){return this.um.redoAll(),this},r.prototype.hasUndo=function(){return!!this.um.isAvailable("undo")},r.prototype.hasRedo=function(){return!!this.um.isAvailable("redo")},r.prototype.isRegistered=function(t){return!!this.getInstance().objectRegistry.isRegistered(t)},r.prototype.getStack=function(){return this.um.stack},r.prototype.getStackGroup=function(){var t=[],e=[];
1178return this.getStack().forEach(function(n){var i=n.get("magicFusionIndex");e.indexOf(i)<0&&(e.push(i),t.push(n))}),t},r.prototype.skip=function(t){var e=!!this.um.isTracking();e&&this.stop(),t(),e&&this.start()},r.prototype.getGroupedStack=function(){var t={},e=this.getStack(),n=function(i,o){var s=i.attributes,c=s.type,d=s.after,f=s.before,g=s.object,m=s.options,y=m===void 0?{}:m;return{index:o,type:c,after:d,before:f,object:g,options:y}};return e.forEach(function(i,o){var s=i.get("magicFusionIndex"),c=n(i,o);t[s]?t[s].push(c):t[s]=[c]}),Object.keys(t).map(function(i){var o=t[i];return{index:o[o.length-1].index,actions:o,labels:(0,E.unique)(o.reduce(function(s,c){var d,f=(d=c.options)===null||d===void 0?void 0:d.action;return f&&s.push(f),s},[]))}})},r.prototype.goToGroup=function(t){var e=this;if(t){var n=this.getPointer(),i=t.index-n;(0,E.times)(Math.abs(i),function(){e[i<0?"undo":"redo"](!1)})}},r.prototype.getPointer=function(){return this.getStack().pointer},r.prototype.clear=function(){return this.um.clear(),this},r.prototype.getInstance=function(){return this.um},r.prototype.destroy=function(){this.clear().removeAll()},r})(Jn);const yM=mM;var bM=function(){return{stylePrefix:"rte-",adjustToolbar:!0,actions:["bold","italic","underline","strikethrough","link","wrap"],custom:!1}};const xM=bM;var nl=function(){return nl=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},nl.apply(this,arguments)},qf;(function(a){a[a.ACTIVE=1]="ACTIVE",a[a.INACTIVE=0]="INACTIVE",a[a.DISABLED=-1]="DISABLED"})(qf||(qf={}));var Gh="_rte",es={ACTIVE:1,INACTIVE:0,DISABLED:-1},du=function(a,r){r===void 0&&(r="A");var t=a.selection()||{},e=t.anchorNode,n=t.focusNode,i=e==null?void 0:e.parentNode,o=n==null?void 0:n.parentNode;return(i==null?void 0:i.nodeName)==r||(o==null?void 0:o.nodeName)==r},Kf="data-selectme",lc={bold:{name:"bold",icon:"<b>B</b>",attributes:{title:"Bold"},result:function(a){return a.exec("bold")}},italic:{name:"italic",icon:"<i>I</i>",attributes:{title:"Italic"},result:function(a){return a.exec("italic")}},underline:{name:"underline",icon:"<u>U</u>",attributes:{title:"Underline"},result:function(a){return a.exec("underline")}},strikethrough:{name:"strikethrough",icon:"<s>S</s>",attributes:{title:"Strike-through"},result:function(a){return a.exec("strikeThrough")}},link:{icon:`<svg viewBox="0 0 24 24"> 1179 <path fill="currentColor" d="M3.9,12C3.9,10.29 5.29,8.9 7,8.9H11V7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H11V15.1H7C5.29,15.1 3.9,13.71 3.9,12M8,13H16V11H8V13M17,7H13V8.9H17C18.71,8.9 20.1,10.29 20.1,12C20.1,13.71 18.71,15.1 17,15.1H13V17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7Z" /> 1180 </svg>`,name:"link",attributes:{style:"font-size:1.4rem;padding:0 4px 2px;",title:"Link"},state:function(a){return a&&a.selection()&&du(a)?es.ACTIVE:es.INACTIVE},result:function(a){du(a)?a.exec("unlink"):a.insertHTML('<a href="" '.concat(Kf,">").concat(a.selection(),"</a>"),{select:!0})}},wrap:{name:"wrap",icon:`<svg viewBox="0 0 24 24">
1181 <path fill="currentColor" d="M20.71,4.63L19.37,3.29C19,2.9 18.35,2.9 17.96,3.29L9,12.25L11.75,15L20.71,6.04C21.1,5.65 21.1,5 20.71,4.63M7,14A3,3 0 0,0 4,17C4,18.31 2.84,19 2,19C2.92,20.22 4.5,21 6,21A4,4 0 0,0 10,17A3,3 0 0,0 7,14Z" /> 1182 </svg>`,attributes:{title:"Wrap for style"},state:function(a){return a!=null&&a.selection()&&du(a,"SPAN")?es.DISABLED:es.INACTIVE},result:function(a){!du(a,"SPAN")&&a.insertHTML("<span ".concat(Kf,">").concat(a.selection(),"</span>"),{select:!0})}}},wM=(function(){function a(r,t,e){e===void 0&&(e={});var n=this;if(this.em=r,this.settings=e,t[Gh])return t[Gh];t[Gh]=this,this.setEl(t),this.updateActiveActions=this.updateActiveActions.bind(this),this.__onKeydown=this.__onKeydown.bind(this),this.__onPaste=this.__onPaste.bind(this);var i=(e.actions||[]).map(function(f){var g=f;return(0,E.isString)(f)?g=nl({},lc[f]):lc[f.name]&&(g=nl(nl({},lc[f.name]),f)),g}),o=i.length?i:Object.keys(lc).map(function(f){return lc[f]});e.classes=nl({actionbar:"actionbar",button:"action",active:"active",disabled:"disabled",inactive:"inactive"},e.classes);var s=e.classes,c=e.actionbar;if(this.actionbar=c,this.classes=s,this.actions=o,!c){if(!this.isCustom(e.module)){var d=e.actionbarContainer;c=document.createElement("div"),c.className=s.actionbar,d==null||d.appendChild(c),this.actionbar=c}o.forEach(function(f){return n.addAction(f)})}return e.styleWithCSS&&this.exec("styleWithCSS"),this}return a.prototype.isCustom=function(r){var t=r||this.em.RichTextEditor;return!!(t!=null&&t.config.custom||t!=null&&t.customRte)},a.prototype.destroy=function(){},a.prototype.setEl=function(r){this.el=r,this.doc=r.ownerDocument},a.prototype.updateActiveActions=function(){var r=this,t=this.getActions();t.forEach(function(e){var n=e.update,i=e.btn,o=r.classes,s=o.active,c=o.inactive,d=o.disabled,f=e.state,g=e.name,m=r.doc,y=qf.INACTIVE;if(i&&(i.className=i.className.replace(s,"").trim(),i.className=i.className.replace(c,"").trim(),i.className=i.className.replace(d,"").trim()),f){var x=f(r,m);if(y=x,i)switch(x){case es.ACTIVE:i.className+=" ".concat(s);break;case es.INACTIVE:i.className+=" ".concat(c);break;case es.DISABLED:i.className+=" ".concat(d);break}}else m.queryCommandSupported(g)&&m.queryCommandState(g)&&(i&&(i.className+=" ".concat(s)),y=qf.ACTIVE);e.currentState=y,n==null||n(r,e)}),t.length&&this.em.RichTextEditor.__dbdTrgCustom()},a.prototype.enable=function(r){return this.enabled?this:this.__toggleEffects(!0,r)},a.prototype.disable=function(){return this.__toggleEffects(!1)},a.prototype.__toggleEffects=function(r,t){r===void 0&&(r=!1),t===void 0&&(t={});var e=r?or:gr,n=this,i=n.el,o=n.doc,s=this.actionbarEl();if(s&&(s.style.display=r?"":"none"),i.contentEditable="".concat(!!r),e(i,"mouseup keyup",this.updateActiveActions),e(o,"keydown",this.__onKeydown),e(o,"paste",this.__onPaste),this.enabled=r,r){var c=t.event;if(this.syncActions(),this.updateActiveActions(),c){var d=null;if(o.caretRangeFromPoint){var f=_p(c);d=o.caretRangeFromPoint(f.clientX,f.clientY)}else c.rangeParent&&(d=o.createRange(),d.setStart(c.rangeParent,c.rangeOffset));var g=o.getSelection();g==null||g.removeAllRanges(),d&&(g==null||g.addRange(d))}i.focus()}return this},a.prototype.__onKeydown=function(r){var t=this.em,e=t.RichTextEditor.getConfig().onKeydown;if(e)return e({ev:r,rte:this,editor:t.getEditor()});var n=this.doc,i=["insertOrderedList","insertUnorderedList"];r.key==="Enter"&&!i.some(function(o){return n.queryCommandState(o)})&&(n.execCommand("insertLineBreak"),r.preventDefault())},a.prototype.__onPaste=function(r){var t=this.em,e=t.RichTextEditor.getConfig().onPaste;if(e)return e({ev:r,rte:this,editor:t.getEditor()});var n=r.clipboardData,i=n.getData("text"),o=n.getData("text/html");if(i&&!o){r.preventDefault();var s=i.replace(/(?:\r\n|\r|\n)/g,"<br/>");this.doc.execCommand("insertHTML",!1,s)}},a.prototype.syncActions=function(){var r=this;this.getActions().forEach(function(t){if(r.actionbar&&(!t.state||t.state&&t.state(r,r.doc)>=0)){var e=t.event||"click",n=t.btn;n&&(n["on".concat(e)]=function(){t.result(r,t),r.updateActiveActions()})}})},a.prototype.addAction=function(r,t){t===void 0&&(t={});var e=t.sync,n=this.actionbarEl();if(n){var i=r.icon,o=r.attributes,s=o===void 0?{}:o,c=document.createElement("span");c.className=this.classes.button,r.btn=c;for(var d in s)c.setAttribute(d,s[d]);typeof i=="string"?c.innerHTML=i:c.appendChild(i),n.appendChild(c)}e&&(this.actions.push(r),this.syncActions())},a.prototype.getActions=function(){return this.actions},a.prototype.selection=function(){return this.doc.getSelection()},a.prototype.exec=function(r,t){this.doc.execCommand(r,!1,t)},a.prototype.actionbarEl=function(){return this.actionbar},a.prototype.insertHTML=function(r,t){var e=t===void 0?{}:t,n=e.select,i=this,o=i.em,s=i.doc,c=i.el,d=s.getSelection();if(d&&d.rangeCount){var f=eo(c)||o.getSelected(),g=s.createElement("div"),m=d.getRangeAt(0);m.deleteContents(),(0,E.isString)(r)?g.innerHTML=r:r&&g.appendChild(r),Array.prototype.slice.call(g.childNodes).forEac
1182h(function(y){m.insertNode(y)}),d.removeAllRanges(),d.addRange(m),c.focus(),n&&f&&(f.once("rte:disable",function(){var y=f.find("[".concat(Kf,"]"))[0];y&&(o.setSelected(y),y.removeAttributes(Kf))}),f.trigger("disable"))}},a})();const _M=wM;var mv;(function(a){a.enable="rte:enable",a.disable="rte:disable",a.custom="rte:custom"})(mv||(mv={}));var CM=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Gf=function(){return Gf=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Gf.apply(this,arguments)},Yh=function(a,r,t,e){function n(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(f){try{d(e.next(f))}catch(g){o(g)}}function c(f){try{d(e.throw(f))}catch(g){o(g)}}function d(f){f.done?i(f.value):n(f.value).then(s,c)}d((e=e.apply(a,r||[])).next())})},Xh=function(a,r){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},e,n,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(d){return function(f){return c([d,f])}}function c(d){if(e)throw new TypeError("Generator is already executing.");for(;o&&(o=0,d[0]&&(t=0)),t;)try{if(e=1,n&&(i=d[0]&2?n.return:d[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,d[1])).done)return i;switch(n=0,i&&(d=[d[0]&2,i.value]),d[0]){case 0:case 1:i=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,n=d[1],d=[0];continue;
1182case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]<i[3])){t.label=d[1];break}if(d[0]===6&&t.label<i[1]){t.label=i[1],i=d;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(d);break}i[2]&&t.ops.pop(),t.trys.pop();continue}d=r.call(a,t)}catch(f){d=[6,f],n=0}finally{e=i=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},kM=function(a,r,t){if(t||arguments.length===2)for(var e=0,n=r.length,i;e<n;e++)(i||!(e in r))&&(i||(i=Array.prototype.slice.call(r,0,e)),i[e]=r[e]);return a.concat(i||Array.prototype.slice.call(r))},Jh="".concat(ea.refresh," frame:scroll ").concat(te.update),SM=(function(a){CM(r,a);function r(t){var e=a.call(this,t,"RichTextEditor",xM())||this;e.events=mv;var n=e.config,i=n.pStylePrefix;i&&(n.stylePrefix=i+n.stylePrefix),e.pfx=n.stylePrefix,e.actions=n.actions||[];var o=new We;return e.model=o,o.on("change:currentView",e.__trgCustom,e),e.__dbdTrgCustom=(0,E.debounce)(function(){return e.__trgCustom()},0),e}return r.prototype.onLoad=function(){if(Jr()){var t=this.config,e=t.pStylePrefix,n=t.custom,i=Vi("div",{class:H5("".concat(e,"rte-toolbar"),!n&&"".concat(e,"one-bg ").concat(e,"rte-toolbar-ui"))});this.toolbar=i,this.initRte(Vi("div")),or(i,"mousedown",function(o){return o.stopPropagation()})}},r.prototype.__trgCustom=function(){var t=this,e=t.model,n=t.em,i=t.events;n.trigger(i.custom,{enabled:!!e.get("currentView"),container:this.getToolbarEl(),actions:this.getAll()})},r.prototype.destroy=function(){var t,e,n;(t=this.globalRte)===null||t===void 0||t.destroy(),(n=(e=this.customRte)===null||e===void 0?void 0:e.destroy)===null||n===void 0||n.call(e),this.model.stopListening().clear({silent:!0}),this.__dbdTrgCustom.cancel(),n1(this.toolbar)},r.prototype.postRender=function(t){var e=t.model.get("Canvas");this.toolbar.style.pointerEvents="all",this.hideToolbar(),e.getToolsEl().appendChild(this.toolbar)},r.prototype.initRte=function(t){var e=this.globalRte,n=this,i=n.em,o=n.pfx,s=n.actionbar,c=n.config,d=this.actions||kM([],c.actions,!0),f={actionbar:"".concat(o,"actionbar"),button:"".concat(o,"action"),active:"".concat(o,"active"),inactive:"".concat(o,"inactive"),disabled:"".concat(o,"disabled")};return e?(e.em=i,e.setEl(t)):(e=new _M(i,t,{classes:f,actions:d,actionbar:s,actionbarContainer:this.toolbar,module:this}),this.globalRte=e),e.actionbar&&(this.actionbar=e.actionbar),e.actions&&(this.actions=e.actions),e},r.prototype.add=function(t,e){var n;e===void 0&&(e={}),e.name=t,(n=this.globalRte)===null||n===void 0||n.addAction(e,{sync:!0})},r.prototype.get=function(t){var e,n;return(e=this.globalRte)===null||e===void 0||e.getActions().forEach(function(i){i.name==t&&(n=i)}),n},r.prototype.getAll=function(){var t;return((t=this.globalRte)===null||t===void 0?void 0:t.getActions())||[]},r.prototype.remove=function(t){var e,n=this.getAll(),i=this.get(t);if(i){var o=i.btn,s=n.indexOf(i);(e=o==null?void 0:o.parentNode)===null||e===void 0||e.removeChild(o),n.splice(s,1)}return i},r.prototype.run=function(t){var e=this.globalRte,n=(0,E.isString)(t)?this.get(t):t;e&&n&&(n.result(e,n),e.updateActiveActions())},r.prototype.getToolbarEl=function(){return this.toolbar},r.prototype.updatePosition=function(){var t=this,e=t.em,n=t.toolbar,i="px",o=e.Canvas,s=n.style,c=o.getTargetToElementFixed(this.lastEl,n,{event:"rteToolbarPosUpdate",left:0});["top","left","bottom","right"].forEach(function(d){var f=c[d];Xr(f)&&(s[d]=(0,E.isString)(f)?f:(f||0)+i)})},r.prototype.enable=function(t,e,n){return Yh(this,void 0,void 0,function(){var i,o,s,c,d,f;return Xh(this,function(g){switch(g.label){case 0:return this.lastEl=t.el,i=this,o=i.customRte,s=i.em,c=i.events,d=t.getChildrenContainer(),this.toolbar.style.display="",[4,o?o.enable(d,e,n):this.initRte(d).enable(n)];case 1:return f=g.sent(),s&&(setTimeout(this.updatePosition.bind(this),0),s.off(Jh,this.updatePosition,this),s.on(Jh,this.updatePosition,this),s.trigger(c.enable,t,f)),this.model.set({currentView:t}),[2,f]}})})},r.prototype.getContent=function(t,e){return Yh(this,void 0,void 0,function(){var n,i;return Xh(this,function(o){switch(o.label){case 0:return n=this.customRte,i=t.getChildrenContainer(),n&&e&&(0,E.isFunction)(n.getContent)?[4,n.getContent(i,e,{view:t})]:[3,2];case 1:return[2,o.sent()];case 2:return[2,i.innerHTML]}})})},r.prototype.hideToolbar=function(){var t=this.toolbar.style,e="-1000px";t.top=e,t.left=e,t.display="none"},r.prototype.disable=function(t,e){return Yh(this,arguments,void 0,function(n,i,o){var s,c,d,f,g,m;return o===void 0&&(o={}),Xh(this,function(y){switch(y.label){case 0:return s={},c=this,d=c.em,f=c.events,g=this.customRte,g?[4,g.disable(n.getChildrenContainer(),i,Gf(Gf({},o),{view:n}))]:[3,2];case 1:return m=y.sent(),m&&(s=m),[3,3];case 2:i&&i.disable(),y.label=3;
1182case 3:return this.hideToolbar(),d&&(d.off(Jh,this.updatePosition,this),!o.fromMove&&d.trigger(f.disable,n,i)),this.model.unset("currentView"),[2,s]}})})},r})(Jn);const TM=SM;var ad;(function(a){a.sectorAdd="style:sector:add",a.sectorRemove="style:sector:remove",a.sectorUpdate="style:sector:update",a.propertyAdd="style:property:add",a.propertyRemove="style:property:remove",a.propertyUpdate="style:property:update",a.target="style:target",a.layerSelect="style:layer:select",a.custom="style:custom",a.all="style"})(ad||(ad={}));var OM=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Qx=function(){return{blocks:[],commands:[],keymaps:[],componentTypes:[],devices:[],traitTypes:[],styleTypes:[],assetTypes:[],styleSectors:[]}},EM=(function(a){OM(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.defaults=function(){return{id:"",plugin:(function(){}),options:{},added:Qx(),cleanup:function(){}}},r})(We);const yv=EM;var AM=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),t3=(function(a){AM(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r})(Rr);const MM=t3;t3.prototype.model=yv;var Yf;(function(a){a.add="plugin:add",a.remove="plugin:remove",a.removeBefore="plugin:remove:before",a.update="plugin:update",a.all="plugin"})(Yf||(Yf={}));var PM="grapesjs.plugins.add(...) is deprecated. Pass plugins directly via init({ plugins: [...] }) or use usePlugin(...).",ud=new Map,bv=function(a){return(0,E.isFunction)(a)},LM=function(a){return!!a&&typeof a=="object"&&!(0,E.isFunction)(a)&&"plugin"in a},xv=function(a){for(var r=a,t={},e;bv(r)&&r.__gjsPluginMeta;){var n=r.__gjsPluginMeta;r=n.plugin,Object.assign(t,n.options||{}),e=e||n.id}return{plugin:r,options:t,id:e}},e3=function(a){return ud.get(a)},DM=function(){return ud},IM=function(){return ud.clear()},jM=function(a,r){return console.error(PM),ud.set(a,r),r},NM={add:jM,get:e3,getAll:DM,clear:IM},RM=function(a){var r="";return ud.forEach(function(t,e){!r&&t===a&&(r=e)}),r||void 0},BM=function(a){var r=o1();return Object.keys(r).find(function(t){try{var e=r[t];return e===a||(e==null?void 0:e.default)===a}catch{return!1}})},My=function(a){return a.__gjsPluginId||RM(a)||BM(a)},VM=function(a){var r=e3(a);if(r)return r;var t=o1()[a];return(t==null?void 0:t.default)||t},r3=function(a){var r=xv(a).plugin;return(0,E.isString)(r)?VM(r):(r==null?void 0:r.default)||r},n3=function(a,r){a.getModel().logWarning("Plugin ".concat(r," not found"),{context:"plugins",plugin:r})},HM=function(a,r){var t=r||{},e=function(i){var o=r3(a);o?o(i,t):n3(i,a)},n=typeof a=="string"?a:a.__gjsPluginId;return e.__gjsPluginMeta={id:n,plugin:a,options:t},e},FM=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),zc=function(){return zc=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];
1182for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},zc.apply(this,arguments)},$M=function(a,r,t){if(t||arguments.length===2)for(var e=0,n=r.length,i;e<n;e++)(i||!(e in r))&&(i||(i=Array.prototype.slice.call(r,0,e)),i[e]=r[e]);return a.concat(i||Array.prototype.slice.call(r))},zM=(function(a){FM(r,a);function r(t){var e=a.call(this,t,"PluginManager",new MM,Yf,{})||this;return e.events=Yf,e.storageKey="",e}return Object.defineProperty(r.prototype,"editor",{get:function(){return this.em.getEditor()},enumerable:!1,configurable:!0}),r.prototype.getConfigPluginOptions=function(t,e){var n=this.editor.getConfig().pluginsOpts||{},i=(0,E.isFunction)(e)?e.toString():"";return n[t]||(i?n[i]||{}:{})},r.prototype.generatePluginId=function(){return"gjs-plugin:".concat(this._createId(16,0))},r.prototype.resolvePluginId=function(t,e,n){return n||((0,E.isString)(t)?t:"")||My(e)||this.generatePluginId()},r.prototype.resolvePluginTarget=function(t){if(t instanceof yv)return t;if((0,E.isString)(t))return this.get(t);var e=xv(t).plugin;if(bv(e))return this.getAll().find(function(n){return n.get("plugin")===e})},r.prototype.normalizePlugin=function(t,e){e===void 0&&(e={});var n=LM(t)?t:void 0,i=n?n.plugin:t,o=(n==null?void 0:n.id)||"",s=xv(i),c=r3(s.plugin),d;if(!c||!bv(c)){var f=(0,E.isString)(s.plugin)?s.plugin:My(s.plugin)||o;if(o)throw new Error("Plugin ".concat(o," not found"));n3(this.editor,f||"unknown")}else{var g=o||this.resolvePluginId(i,c);d={id:g,plugin:c,options:zc(zc(zc({},this.getConfigPluginOptions(g,i)),s.options),e)}}return d},r.prototype.createAddedTracker=function(){var t=Qx(),e=[],n=this.editor,i=[],o=function(s,c){n.on(s,c),i.push([s,c])};return o(IC.add,function(s){var c=s.get("id");!c||t.blocks.includes(c)||(t.blocks.push(c),e.push(function(){return n.Blocks.remove(c)}))}),o(Uf.add,function(s){var c=s.id;!c||t.keymaps.includes(c)||(t.keymaps.push(c),e.push(function(){return n.Keymaps.remove(c)}))}),o(te.typeAdd,function(s){var c=s.id;!c||t.componentTypes.includes(c)||(t.componentTypes.push(c),e.push(function(){return n.Components.removeType(c)}))}),o(h1.add,function(s){var c=s.get("id");!c||t.devices.includes(c)||(t.devices.push(c),e.push(function(){return n.Devices.remove(c)}))}),o(ad.sectorAdd,function(s){var c=s.get("id");!c||t.styleSectors.includes(c)||(t.styleSectors.push(c),e.push(function(){return n.StyleManager.removeSector(c)}))}),{added:t,stop:function(){return i.forEach(function(s){var c=s[0],d=s[1];return n.off(c,d)})},cleanup:function(){e.slice().reverse().forEach(function(s){return s()})}}},r.prototype.add=function(t,e){var n=this;e===void 0&&(e={});var i=this.normalizePlugin(t,e);if(i){var o=this.get(i.id);if(o)return o;var s=this.createAddedTracker(),c;try{c=i.plugin(this.editor,i.options)}catch(y){throw s.stop(),s.cleanup(),y}s.stop();var d=new yv({id:i.id,plugin:i.plugin,options:i.options,added:s.added,cleanup:function(){}}),f=!1,g=function(){f||(f=!0,s.cleanup())},m=function(){if(!f){var y=(0,E.isFunction)(c)?c:null;y?y({cleanup:g,editor:n.editor,plugin:d}):g()}};return d.set("cleanup",m),this.all.add(d),d}},r.prototype.get=function(t){return this.all.get(t)},r.prototype.getAll=function(){return $M([],this.all.models,!0)},r.prototype.remove=function(t,e){var n=this;e===void 0&&(e={});var i=this.resolvePluginTarget(t);if(i){var o=this,s=o.em,c=o.events,d=function(){var f;return(f=i.get("cleanup"))===null||f===void 0||f(),n.all.remove(i,e),i};return!e.silent&&s.trigger(c.removeBefore,i,d,e),e.abort?void 0:d()}},r.prototype.destroy=function(){this.__destroy()},r})(oa);const UM=zM;var WM=function(){return{sectors:[{name:"General",open:!1,properties:["display","float","position","top","right","left","bottom"]},{name:"Flex",open:!1,properties:["flex-direction","flex-wrap","justify-content","align-items","align-content","order","flex-basis","flex-grow","flex-shrink","align-self"]},{name:"Dimension",open:!1,properties:["width","height","max-width","min-height","margin","padding"]},{name:"Typography",open:!1,properties:["font-family","font-size","font-weight","letter-spacing","color","line-height","text-align","text-shadow"]},{name:"Decorations",open:!1,properties:["background-color","border-radius","border","box-shadow","background"]},{name:"Extra",open:!1,properties:["opacity","transition","transform"]}],appendTo:"",stylePrefix:"sm-",custom:!1,hideNotStylable:!0,highlightChanged:!0,highlightComputed:!0,showComputed:!0,clearProperties:!0,avoidComputed:["width","height"]}};const ZM=WM;
1182var qM=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Dn=function(){return Dn=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Dn.apply(this,arguments)},KM=function(a,r){var t={};for(var e in a)Object.prototype.hasOwnProperty.call(a,e)&&r.indexOf(e)<0&&(t[e]=a[e]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,e=Object.getOwnPropertySymbols(a);n<e.length;n++)r.indexOf(e[n])<0&&Object.prototype.propertyIsEnumerable.call(a,e[n])&&(t[e[n]]=a[e[n]]);return t},Py=function(a,r,t){if(t||arguments.length===2)for(var e=0,n=r.length,i;e<n;e++)(i||!(e in r))&&(i||(i=Array.prototype.slice.call(r,0,e)),i[e]=r[e]);return a.concat(i||Array.prototype.slice.call(r))},S1=(function(a){qM(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.getDefaults=function(){return(0,E.result)(this.prototype,"defaults")},r.prototype.defaults=function(){return{name:"",property:"",type:"",defaults:"",info:"",value:"",icon:"",functionName:"",status:"",visible:!0,fixedValues:["initial","inherit"],full:!1,important:!1,toRequire:!1,requires:void 0,requiresParent:null,parentTarget:null}},r.prototype.initialize=function(t,e){t===void 0&&(t={}),e===void 0&&(e={}),this.em=e.em;var n=this.getId()||"",i=this.get("name")||this.get("label")||"";!this.get("property")&&this.set("property",(i||n).replace(/ /g,"-"));var o=this.get("property");!this.get("id")&&this.set("id",o),!i&&this.set("name",Xc(o).replace(/-/g," ")),this.on("change",this.__upTargets),r.callInit(this,t,e)},r.prototype.__getParentProp=function(){var t,e;return(e=(t=this.collection)===null||t===void 0?void 0:t.opts)===null||e===void 0?void 0:e.parentProp},r.prototype.__upTargets=function(t,e){var n,i=this;e===void 0&&(e={});var o=this.em,s=o.Styles,c=this.getName(),d=e.__clear,f=d?"":this.__getFullValue(e),g=this.__getParentProp(),m=this.changedAttributes(),y=(0,E.keys)(m).reduce(function(L,D){return L[D]=i.previous(D),L},{}),x=Py(Py([],(0,E.keys)(this.__getClearProps()),!0),["__p"],!1),w=(0,E.keys)(m),k=!e.__up&&!g&&(d||x.some(function(L){return w.indexOf(L)>=0})),S=this.get("onChange"),A={property:this,from:y,to:m,value:f,opts:e};s.__trgEv(s.events.propertyUpdate,A),S&&S(A),k&&this.__upTargetsStyle((n={},n[c]=f,n),e)},r.prototype.__upTargetsStyle=function(t,e){var n,i=(n=this.em)===null||n===void 0?void 0:n.get("StyleManager");i==null||i.addStyleTargets(Dn(Dn({},t),{__p:!!e.avoidStore}),e)},r.prototype._up=function(t,e){e===void 0&&(e={}),e.noTarget&&(e.__up=!0);var n=e.partial,i=KM(e,["partial"]);return t.__p=!!(i.avoidStore||n),this.set(t,Dn(Dn({},i),{avoidStore:t.__p}))},r.prototype.up=function(t,e){e===void 0&&(e={}),this.set(t,Dn(Dn({},e),{__up:!0}))},r.prototype.init=function(){},r.prototype.getId=function(){return this.get("id")},r.prototype.getType=function(){return this.get("type")},r.prototype.getName=function(){return this.get("property")},r.prototype.getLabel=function(t){var e;t===void 0&&(t={});var n=t.locale,i=n===void 0?!0:n,o=this.getId(),s=this.get("name")||this.get("label");return i&&((e=this.em)===null||e===void 0?void 0:e.t("styleManager.properties.".concat(o)))||s},r.prototype.getValue=function(t){t===void 0&&(t={});var e=t.noDefault,n=this.get("value");return!this.hasValue()&&!e?this.getDefaultValue():n},r.prototype.hasValue=function(t){t===void 0&&(t={});var e=t.noParent,n=e&&this.getParentTarget(),i=this.get("value");return!(0,E.isUndefined)(i)&&i!==""&&!n},r.prototype.hasValueParent=function(){return this.hasValue()&&!this.hasValue({noParent:!0})},r.prototype.getStyle=function(t){var e;t===void 0&&(t={});var n=this.getName(),i=t.camelCase?ld(n):n;return e={},e[i]=this.__getFullValue(t),e},r.prototype.getDefaultValue=function(){var t=this.get("default");return"".concat((0,E.isUndefined)(t)?this.get("defaults"):t)},r.prototype.upValue=function(t,e){e===void 0&&(e={});var n=t===null||t===""?this.__getClearProps():this.__parseValue(t,e);return this._up(n,e)},r.prototype.isVisible=function(){return!!this.get("visible")},r.prototype.clear=function(t){return t===void 0&&(t={}),this._up(this.__getClearProps(),Dn(Dn({},t),{__clear:!0})),this},r.prototype.canClear=function(){var t=this.getParent();return t?t.__canClearProp(this):this.hasValue({noParent:!0})},r.prototype.getParent=function(){return this.__getParentProp()},r.prototype.isFull=function(){return!!this.get("full")},r.prototype.__parseValue=function(t,e){var n=this;return this.__parseValueCustom(t,function(){return n.parseValue(t,e)})},r.prototype.__parseValueCustom=function(t,e){var n,i,o=this.get("parseValue")||((n=this.em)===null||n===void 0?void 0:n.Styles.getConfig().parseValue);return o?o({property:this,editor:(i=this.em)===null||i===void 0?void 0:i.getEditor(),parse:e,value:t}):e()},r.prototype.__getClearProps=function(){return{value:"",important:!1}},r.prototype.setValue=function(t,e,n){e===void 0&&(e=!0),n===void 0&&(n={});var i=this.__parseValue(t,{complete:e}),o=!e;
1182!o&&this.set({value:void 0},{avoidStore:o,silent:!0}),this.set(i,Dn({avoidStore:o},n))},r.prototype.setValueFromInput=function(t,e,n){n===void 0&&(n={}),this.setValue(t,e,Dn(Dn({},n),{fromInput:1}))},r.prototype.parseValue=function(t,e){e===void 0&&(e={});var n={value:t},i="!important",o=this.get("functionName")||"";if((0,E.isString)(t)&&t.indexOf(i)!==-1&&(n.value=t.replace(i,"").trim(),n.important=!0),!o&&!e.complete)return n;var s=[],c="".concat(n.value).trim(),d=c.indexOf("(")+1,f=o||c.substring(0,d-1);if(f&&(n.functionName=f),!o||c.indexOf("".concat(o,"("))===0){var g=c.lastIndexOf(")");s.push(d),g>=0&&s.push(g),n.value=String.prototype.substring.apply(c,s)}if(e.numeric){var m=parseFloat(n.value);n.unit=n.value.replace(m,""),n.value=m}return n},r.prototype.__getFullValue=function(t){var e=t===void 0?{}:t,n=e.withDefault;return!this.hasValue()&&n?this.getDefaultValue():this.getFullValue()},r.prototype.getFullValue=function(t,e){e===void 0&&(e={});var n=this.get("functionName"),i=this.getDefaultValue(),o=(0,E.isUndefined)(t)?this.get("value"):t,s=this.hasValue();if(o&&i&&o===i)return i;if(n&&s){var c=n==="url"?"'".concat(o.replace(/'|"/g,""),"'"):o;o="".concat(n,"(").concat(c,")")}return s&&this.get("important")&&!e.skipImportant&&(o="".concat(o," !important")),o||""},r.prototype.__setParentTarget=function(t){this.up({parentTarget:t})},r.prototype.getParentTarget=function(){return this.get("parentTarget")||null},r.prototype.__parseFn=function(t){t===void 0&&(t="");var e=t.indexOf("(")+1,n=t.lastIndexOf(")");return{name:t.substring(0,e-1).trim(),value:String.prototype.substring.apply(t,[e,n>=0?n:void 0]).trim()}},r.prototype.__checkVisibility=function(t){var e=t.target,n=t.component,i=t.sector,o=t.sectors,s=n||e;if(!s)return!1;var c=this.getId(),d=this.getName(),f=this.attributes,g=f.requires,m=f.requiresParent,y=f.toRequire,x=f.isVisible,w=s.get("unstylable"),k=s.get("stylable-require"),S=s.get("stylable");if((0,E.isFunction)(x))return!!x({property:this,sector:i,target:e,component:n});if((0,E.isArray)(S)&&(S=S.indexOf(d)>=0),(0,E.isArray)(w)&&(S=w.indexOf(d)<0),y&&(S=!e||k&&(k.indexOf(c)>=0||k.indexOf(d)>=0)),o&&g){var A=(0,E.keys)(g);o.forEach(function(j){j.getProperties().forEach(function(et){if((0,E.includes)(A,et.id)){var z=g[et.id];S=S&&(0,E.includes)(z,et.get("value"))}})})}if(m){var L=n&&n.parent(),D=L&&L.getEl();if(D){var W=Jr()?window.getComputedStyle(D):{};(0,E.each)(m,function(j,et){S=S&&W[et]&&(0,E.includes)(j,W[et])})}else S=!1}return!!S},r})(We);const hr=S1;S1.callParentInit=function(a,r,t,e){e===void 0&&(e={}),a.prototype.initialize.apply(r,[t,Dn(Dn({},e),{skipInit:1})])};S1.callInit=function(a,r,t){t===void 0&&(t={}),!t.skipInit&&a.init(r,t)};var GM=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),il=function(){return il=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},il.apply(this,arguments)},Ly=function(a,r,t){if(t||arguments.length===2)for(var e=0,n=r.length,i;e<n;e++)(i||!(e in r))&&(i||(i=Array.prototype.slice.call(r,0,e)),i[e]=r[e]);return a.concat(i||Array.prototype.slice.call(r))},i3=function(a){return a==="integer"||a==="number"},YM=(function(a){GM(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.defaults=function(){return il(il({},hr.getDefaults()),{detached:!1,properties:[],separator:" ",join:null,fromStyle:null,toStyle:null,full:!0})},r.prototype.initialize=function(t,e){t===void 0&&(t={}),e===void 0&&(e={}),hr.callParentInit(hr,this,t,e);var n=this.em,i=new O1(this.get("properties")||[],{em:n,parentProp:this});this.set("properties",i,{silent:!0}),this.listenTo(i,"change",this.__upProperties),hr.callInit(this,t,e)},Object.defineProperty(r.prototype,"properties",{get:function(){return this.get("properties")||[]}
1182,enumerable:!1,configurable:!0}),r.prototype.getProperties=function(){return Ly([],this.get("properties").models,!0)},r.prototype.getProperty=function(t){return this.properties.filter(function(e){return e.getId()===t||e.getName()===t})[0]},r.prototype.getPropertyAt=function(t){return this.get("properties").at(t)},r.prototype.isDetached=function(){return!!this.get("detached")},r.prototype.getValues=function(t){var e=t===void 0?{}:t,n=e.byName;return this.getProperties().reduce(function(i,o){var s=n?o.getName():o.getId();return i[s]="".concat(o.__getFullValue()),i},{})},r.prototype.getSeparator=function(){return this.getSplitSeparator()},r.prototype.getJoin=function(){return this.__getJoin()},r.prototype.getStyleFromProps=function(t){var e;t===void 0&&(t={});var n=this.getName(),i=this.__getJoin(),o=this.get("toStyle"),s=this.getValues(),c={};if(o)c=o(s,{join:i,name:n,property:this});else if(s=this.getValues({byName:!0}),this.isDetached())c=s;else{var d=this.getProperties().map(function(f){return f.__getFullValue({withDefault:1})}).filter(Boolean).join(i);c=(e={},e[n]=d,e)}return this.isDetached()?c[n]="":(c[n]=c[n]||"",c=il(il({},c),this.getProperties().reduce(function(f,g){return f[g.getName()]="",f},{}))),t.camelCase?Object.keys(c).reduce(function(f,g){return f[ld(g)]=c[g],f},{}):c},r.prototype.getSplitSeparator=function(){return new RegExp("".concat(this.get("separator"),"(?![^\\(]*\\))"))},r.prototype.__upProperties=function(t,e){if(e===void 0&&(e={}),!(e.__up||e.__clearIn)){var n=this.__getParentProp();if(n)return n.__upProperties(this,e);this.__upTargetsStyleProps(e,t)}},r.prototype.__upTargetsStyleProps=function(t,e){var n;t===void 0&&(t={});var i=this.getStyleFromProps();if(this.isDetached()&&e){var o=e.getName();i=(n={},n[o]=i[o],n)}this.__upTargetsStyle(i,t)},r.prototype._up=function(t,e){return e===void 0&&(e={}),this.__setProperties(this.__getSplitValue(t.value),e),hr.prototype._up.call(this,t,e),this},r.prototype.getStyle=function(t){return this.getStyleFromProps(t)},r.prototype.__getFullValue=function(t){if(t===void 0&&(t={}),this.isDetached()||t.__clear)return"";var e=this.getStyleFromProps()[this.getName()]||"";return $g(e)},r.prototype.__getJoin=function(){var t=this.get("join");return(0,E.isString)(t)?t:this.get("separator")},r.prototype.__styleHasProps=function(t){t===void 0&&(t={});var e=this.getName(),n=this.getProperties(),i=n.map(function(s){return s.getName()}),o=Ly([e],i,!0);return o.some(function(s){return!(0,E.isUndefined)(t[s])&&t[s]!==""})},r.prototype.__splitValue=function(t,e){return $g(t).split(e).map(function(n){return n.trim()}).filter(Boolean)},r.prototype.__splitStyleName=function(t,e,n){var i=t[e];return this.__splitValue(i||"",n)},r.prototype.__getSplitValue=function(t,e){t===void 0&&(t="");var n=e===void 0?{}:e,i=n.byName,o=this.getProperties(),s=o.length===4&&o.every(function(f){return i3(f.getType())}),c=this.__splitValue(t,this.getSplitSeparator()),d={};return o.forEach(function(f,g){var m=c[g],y=(0,E.isUndefined)(m)?"":m;if(s){var x=c.length;y=c[g]||c[g%x+(x!=1&&x%2?1:0)]||y}var w=i?f.getName():f.getId();d[w]=y||""}),d},r.prototype.__getPropsFromStyle=function(t,e){if(t===void 0&&(t={}),e===void 0&&(e={}),!this.__styleHasProps(t))return null;var n=e.byName,i=this.getName(),o=this.getProperties(),s=this.getSplitSeparator(),c=this.get("fromStyle"),d=c?c(t,{property:this,name:i,separator:s}):{};if(!c){var f=t[i];d=this.__getSplitValue(f||"",{byName:n}),o.forEach(function(g){var m=t[g.getName()],y=n?g.getName():g.getId();!(0,E.isUndefined)(m)&&m!==""&&(d[y]=m)})}return d},r.prototype.__setProperties=function(t,e){t===void 0&&(t={}),e===void 0&&(e={}),this.getProperties().forEach(function(i){var o=t[i.getId()];i.__getFullValue()!==o&&i.upValue(o,e)});var n=(0,E.keys)(t).map(function(i){return t[i]}).join(" ");this.set("value",n,{silent:!0})},r.prototype.clear=function(){var t=this;return this.getProperties().map(function(e){return e.clear({__clearIn:!t.isDetached()})}),hr.prototype.clear.call(this),this},r.prototype.hasValue=function(t){return this.getProperties().some(function(e){return e.hasValue(t)})},r.prototype.getFullValue=function(){return this.__getFullValue()},r.prototype.__canClearProp=function(t){return this.isDetached()&&t.hasValue({noParent:!0})},r})(hr);const Hs=YM;
1182var XM=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Zn=function(){return Zn=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Zn.apply(this,arguments)},JM=function(a,r){var t={};for(var e in a)Object.prototype.hasOwnProperty.call(a,e)&&r.indexOf(e)<0&&(t[e]=a[e]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,e=Object.getOwnPropertySymbols(a);n<e.length;n++)r.indexOf(e[n])<0&&Object.prototype.propertyIsEnumerable.call(a,e[n])&&(t[e[n]]=a[e[n]]);return t},QM=/,(?![^\(]*\))/,tP=/\s(?![^(]*\))/,eP=(function(a){XM(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.defaults=function(){return Zn(Zn({},Hs.getDefaults()),{layers:[],emptyValue:"unset",layerSeparator:", ",layerJoin:"",prepend:0,preview:!1,layerLabel:null,selectedLayer:null})},r.prototype.initialize=function(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Hs.callParentInit(Hs,this,t,e);var n=this.get("layers"),i=new Bu(n,{prop:this});i.property=this,i.properties=this.get("properties"),this.set("layers",i,{silent:!0}),this.on("change:selectedLayer",this.__upSelected),this.listenTo(i,"add remove",this.__upLayers),Hs.callInit(this,t,e)},Object.defineProperty(r.prototype,"layers",{get:function(){return this.get("layers")},enumerable:!1,configurable:!0}),r.prototype.getLayers=function(){return this.layers.models},r.prototype.hasLayers=function(){return this.getLayers().length>0},r.prototype.getLayer=function(t){return t===void 0&&(t=0),this.layers.at(t)||void 0},r.prototype.getSelectedLayer=function(){var t=this.get("selectedLayer");return t&&t.getIndex()>=0?t:void 0},r.prototype.selectLayer=function(t){return this.set("selectedLayer",t,{__select:!0})},r.prototype.selectLayerAt=function(t){t===void 0&&(t=0);var e=this.getLayer(t);return e&&this.selectLayer(e)},r.prototype.moveLayer=function(t,e){e===void 0&&(e=0);var n=this.layers,i=t?t.getIndex():-1;i>=0&&(0,E.isNumber)(e)&&e>=0&&e<n.length&&i!==e&&(this.removeLayer(t),n.add(t,{at:e}))},r.prototype.addLayer=function(t,e){t===void 0&&(t={}),e===void 0&&(e={});var n={};this.getProperties().forEach(function(o){var s=o.getId(),c=t[s];n[s]=(0,E.isUndefined)(c)?o.getDefaultValue():c});var i=this.layers.push({values:n},e);return i},r.prototype.removeLayer=function(t){return this.layers.remove(t)},r.prototype.removeLayerAt=function(t){t===void 0&&(t=0);var e=this.getLayer(t);return e?this.removeLayer(e):null},r.prototype.getLayerLabel=function(t){var e="";if(t){var n=this.get("layerLabel"),i=t.getValues(),o=t.getIndex();if(n)e=n(t,{index:o,values:i,property:this});else{var s=[];this.getProperties().map(function(c){s.push(i[c.getId()])}),e=s.filter(Boolean).join(" ")}}return e},r.prototype.getStyleFromLayer=function(t,e){var n;e===void 0&&(e={});var i=this.__getJoin(),o=this.__getJoinLayers(),s=this.get("toStyle"),c=this.getName(),d=t.getValues(),f;if(s)f=s(d,{join:i,joinLayers:o,name:c,layer:t,property:this});else{var g=this.getProperties().map(function(m){var y=m.getName(),x=d[m.getId()],w=(0,E.isUndefined)(x)?m.getDefaultValue():x;if(e.number&&i3(m.getType())){var k=m.parseValue(x,e.number);w="".concat(k.value).concat(k.unit)}return{name:y,value:w}});f=this.isDetached()?g.reduce(function(m,y){return m[y.name]=y.value,m},{}):(n={},n[this.getName()]=g.map(function(m){return m.value}).join(i),n)}return e.camelCase?Object.keys(f).reduce(function(m,y){return m[ld(y)]=f[y],m},{}):f},r.prototype.getStylePreview=function(t,e){e===void 0&&(e={});var n={},i=this.get("preview");return i&&(n=this.getStyleFromLayer(t,e)),n},r.prototype.getLayerSeparator=function(){var t=this.get("layerSeparator");return(0,E.isString)(t)?new RegExp("".concat(t,"(?![^\\(]*\\))")):t},r.prototype.hasEmptyValue=function(){return!this.hasLayers()&&!!this.attributes.isEmptyValue},r.prototype.__upProperties=function(t,e){var n;e===void 0&&(e={});var i=this.getSelectedLayer();i&&(i.upValues((n={},n[t.getId()]=t.__getFullValue(),n)),!e.__up&&this.__upTargetsStyleProps(e))},r.prototype.__upLayers=function(t,e,n){this.__upTargetsStyleProps(n||e)},r.prototype.__upTargets=function(t,e){if(e===void 0&&(e={}),!e.__select)return hr.prototype.__upTargets.call(this,t,e)},r.prototype.__upTargetsStyleProps=function(t){t===void 0&&(t={}),this.__upTargetsStyle(this.getStyleFromLayers(t),t)},r.prototype.__upTargetsStyle=function(t,e){return hr.prototype.__upTargetsStyle.call(this,t,e)},r.prototype.__upSelected=function(t,e){var n=t===void 0?{}:t,i=n.noEvent;e===void 0&&(e={});var o=this.em.Styles,s=this.getSelectedLayer(),c=s==null?void 0:s.getValues();
1182c&&this.getProperties().forEach(function(d){var f,g=(f=c[d.getId()])!==null&&f!==void 0?f:"";d.__getFullValue()!==g&&d.upValue(g,Zn(Zn({},e),{__up:!0}))}),!i&&o.__trgEv(o.events.layerSelect,{property:this})},r.prototype._up=function(t,e){e===void 0&&(e={});var n=t.__layers,i=n===void 0?[]:n,o=JM(t,["__layers"]);return!this.isDetached()&&this.__setLayers(i),this.__upSelected({noEvent:!0},e),hr.prototype._up.call(this,o,e),this},r.prototype.__setLayers=function(t,e){t===void 0&&(t=[]),e===void 0&&(e={});var n=this.layers,i=t.map(function(o){return{values:o}});n.length===i.length?i.map(function(o,s){var c;return(c=n.at(s))===null||c===void 0?void 0:c.upValues(o.values)}):n.reset(i),this.set({isEmptyValue:!!e.isEmptyValue}),this.__upSelected({noEvent:!0})},r.prototype.__parseValue=function(t){var e=this;return this.__parseValueCustom(t,function(){var n=e.parseValue(t);return n.__layers=t.split(QM).map(function(i){return i.trim()}).map(function(i){return e.__parseLayer(i)}).filter(Boolean),n})},r.prototype.__parseLayer=function(t){var e=this.get("parseLayer"),n=t.split(tP),i=this.getProperties();return e?e({value:t,values:n}):i.reduce(function(o,s,c){var d=n[c];return o[s.getId()]=(0,E.isUndefined)(d)?s.getDefaultValue():d,o},{})},r.prototype.__getLayersFromStyle=function(t){var e=this;if(t===void 0&&(t={}),!this.__styleHasProps(t))return null;if(this.isEmptyValueStyle(t))return[];var n=this.getName(),i=this.getProperties(),o=this.getLayerSeparator(),s=this.attributes.fromStyle,c=s?s(t,{property:this,name:n,separatorLayers:o}):[];if(!s){var d=this.__splitStyleName(t,n,o).map(function(f){return f.split(e.getSplitSeparator())}).map(function(f){var g={};return i.forEach(function(m,y){var x=f[y];g[m.getId()]=(0,E.isUndefined)(x)?m.getDefaultValue():x}),g});i.forEach(function(f){var g=f.getId();e.__splitStyleName(t,f.getName(),o).map(function(m){var y;return y={},y[g]=m||f.getDefaultValue(),y}).forEach(function(m,y){d[y]=d[y]?Zn(Zn({},d[y]),m):m})}),c=d}return(0,E.isArray)(c)?c:[c]},r.prototype.getStyle=function(t){return t===void 0&&(t={}
1182),this.getStyleFromLayers(t)},r.prototype.getStyleFromLayers=function(t){var e=this;t===void 0&&(t={});var n={},i=this.getName(),o=this.getLayers(),s=this.getProperties(),c=o.map(function(f){return e.getStyleFromLayer(f,t)});if(c.forEach(function(f){(0,E.keys)(f).map(function(g){n[g]||(n[g]=[]),n[g].push(f[g])})}),(0,E.keys)(n).map(function(f){n[f]=n[f].join(e.__getJoinLayers())}),this.isDetached())n[i]="",!o.length&&s.map(function(f){n[f.getName()]=""});else{var d=s.reduce(function(f,g){return f[g.getName()]="",f},{});n[i]=n[i]||"",n=Zn(Zn({},n),d)}return Zn(Zn({},n),t.__clear?{}:this.getEmptyValueStyle())},r.prototype.isEmptyValueStyle=function(t){t===void 0&&(t={});var e=this.getEmptyValueStyle({force:!0}),n=(0,E.keys)(e);return!!n.length&&n.every(function(i){return e[i]===t[i]})},r.prototype.getEmptyValueStyle=function(t){t===void 0&&(t={});var e=this.attributes.emptyValue;if(e&&(!this.hasLayers()||t.force)){var n=this.getName(),i=this.getProperties(),o=(0,E.isString)(e)?e:e({property:this});if((0,E.isString)(o)){var s={};return this.isDetached()?i.map(function(c){s[c.getName()]=o}):s[n]=o,s}else return o}else return{}},r.prototype.__getJoinLayers=function(){var t=this.get("layerJoin"),e=this.get("layerSeparator");return t||((0,E.isString)(e)?e:t)},r.prototype.__getFullValue=function(){if(this.get("detached"))return"";var t=this.getStyleFromLayers();return $g(t[this.getName()])},r.prototype.hasValue=function(t){t===void 0&&(t={});var e=t.noParent,n=e&&this.getParentTarget();return(this.hasLayers()||this.hasEmptyValue())&&!n},r.prototype.clear=function(t){return t===void 0&&(t={}),this.layers.reset(),this.__upTargetsStyleProps(Zn(Zn({},t),{__clear:!0})),hr.prototype.clear.call(this),this},r.prototype.__canClearProp=function(){return!1},r.prototype.__getLayers=function(){return this.layers},r})(Hs);const rP=eP;var nP=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Xf=function(){return Xf=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Xf.apply(this,arguments)},iP=function(a,r){var t={};for(var e in a)Object.prototype.hasOwnProperty.call(a,e)&&r.indexOf(e)<0&&(t[e]=a[e]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,e=Object.getOwnPropertySymbols(a);n<e.length;n++)r.indexOf(e[n])<0&&Object.prototype.propertyIsEnumerable.call(a,e[n])&&(t[e[n]]=a[e[n]]);return t},aP=function(a,r,t){if(t||arguments.length===2)for(var e=0,n=r.length,i;e<n;e++)(i||!(e in r))&&(i||(i=Array.prototype.slice.call(r,0,e)),i[e]=r[e]);return a.concat(i||Array.prototype.slice.call(r))},Qh="data-clear-style",oP=(function(a){nP(r,a);function r(t){t===void 0&&(t={});var e=a.call(this,t)||this;(0,E.bindAll)(e,"__change","__updateStyle");var n=t.config||{},i=n.em;e.config=n,e.em=i,e.pfx=n.stylePrefix||"",e.ppfx=n.pStylePrefix||"",e.__destroyFn=e.destroy?e.destroy.bind(e):function(){};var o=e.model;o.view=e,e.onValueChange=(0,E.debounce)(e.onValueChange.bind(e),10),e.updateStatus=(0,E.debounce)(e.updateStatus.bind(e),0),e.listenTo(o,"destroy remove",e.remove),e.listenTo(o,"change:visible",e.updateVisibility),e.listenTo(o,"change:name change:className change:full",e.render),e.listenTo(o,"change:value",e.onValueChange),e.listenTo(o,"change:parentTarget",e.updateStatus),e.listenTo(i,"change:device",e.onValueChange);var s=e.init&&e.init.bind(e);return s&&s(),e}return r.prototype.events=function(){var t;return t={change:"inputValueChanged"},t["click [".concat(Qh,"]")]="clear",t},r.prototype.template=function(t){var e=this,n=e.pfx,i=e.ppfx;return` 1183 <div class="`.concat(n,`label" data-sm-label></div> 1184 <div class="`).concat(i,`fields" data-sm-fields></div> 1185 `)},r.prototype.templateLabel=function(t){var e=this,n=e.pfx,i=e.em,o=t.parent,s=t.attributes,c=s.icon,d=c===void 0?"":c,f=s.info,g=f===void 0?"":f,m=i==null?void 0:i.getConfig().icons,y=(m==null?void 0:m.close)||"";return`
1186 <span class="`.concat(n,"icon ").concat(d,'" title="').concat(g,`"> 1187 `).concat(t.getLabel(),` 1188 </span> 1189 `).concat(o?"":'<div class="'.concat(n,'clear" style="display: none" ').concat(Qh,">").concat(y,"</div>"),` 1190 `)},r.prototype.templateInput=function(t){return` 1191 <div class="`.concat(this.ppfx,`field"> 1192 <input placeholder="`).concat(t.getDefaultValue(),`"/> 1193 </div> 1194 `)},r.prototype.remove=function(){var t=this;return Ze.prototype.remove.apply(this,arguments),["em","input","$input","view"].forEach(function(e){return t[e]=null}),this.__destroyFn(this._getClbOpts()),this},r.prototype.updateStatus=function(){var t,e=this,n=e.model,i=e.pfx,o=e.ppfx,s=e.config,c="".concat(o,"four-color"),d="".concat(o,"color-warn"),f=this.$el.children(".".concat(i,"label")),g=this.getClearEl(),m=g?g.style:{};f.removeClass("".concat(c," ").concat(d)),m.display="none",n.hasValue({noParent:!0})&&s.highlightChanged?(f.addClass(c),s.clearProperties&&(m.display="")):n.hasValue()&&s.highlightComputed&&f.addClass(d),(t=this.parent)===null||t===void 0||t.updateStatus()},r.prototype.clear=function(t){t&&t.stopPropagation(),this.model.clear()},r.prototype.getClearEl=function(){return this.clearEl||(this.clearEl=this.el.querySelector("[".concat(Qh,"]"))),this.clearEl},r.prototype.inputValueChanged=function(t){t&&t.stopPropagation(),!this.emit&&this.model.upValue(t.target.value)},r.prototype.onValueChange=function(t,e,n){this.setValue(this.model.getFullValue(void 0,{skipImportant:!0})),this.updateStatus()},r.prototype.setValue=function(t){var e=this.model,n=(0,E.isUndefined)(t)||t===""?e.getDefaultValue():t;if(this.update)return this.__update(n);this.__setValueInput(n)},r.prototype.__setValueInput=function(t){var e=this.getInputEl();e&&(e.value=t)},r.prototype.getInputEl=function(){return this.input||(this.input=this.el.querySelector("input")),this.input},r.prototype.updateVisibility=function(){this.el.style.display=this.model.isVisible()?"":"none"},r.prototype.clearCached=function(){delete this.clearEl,delete this.input,delete this.$input},r.prototype.__unset=function(){var t=this.unset&&this.unset.bind(this);t&&t(this._getClbOpts())},r.prototype.__update=function(t){var e=this.update&&this.update.bind(this);e&&e(Xf(Xf({},this._getClbOpts()),{value:t}))},r.prototype.__change=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.emit&&this.emit.bind(this);n&&n.apply(void 0,aP([this._getClbOpts()],t,!1))},r.prototype.__updateStyle=function(t,e){e===void 0&&(e={});var n=e.complete,i=e.partial;iP(e,["complete","partial"]);var o=this.model,s=n!==!1&&i!==!0;Cn(t)?o.__upTargetsStyle(t,{avoidStore:!s}):o.upValue(t,{partial:!s})},r.prototype._getClbOpts=function(){var t=this,e=t.model,n=t.el,i=t.createdEl;return{el:n,createdEl:i,property:e,props:e.attributes,change:this.__change,updateStyle:this.__updateStyle}},r.prototype.render=function(){this.clearCached();var t=this,e=t.pfx,n=t.model,i=t.el,o=t.$el,s=n.getName(),c=n.getType(),d=n.get("className")||"",f="".concat(e,"property"),g=c==="number"?"".concat(e).concat(c," ").concat(e,"integer"):"".concat(e).concat(c);this.createdEl&&this.__destroyFn(this._getClbOpts()),o.empty().append(this.template(n)),o.find("[data-sm-label]").append(this.templateLabel(n));var m=this.create&&this.create.bind(this);this.createdEl=m&&m(this._getClbOpts()),o.find("[data-sm-fields]").append(this.createdEl||this.templateInput(n)),i.className="".concat(f," ").concat(g," ").concat(f,"__").concat(s," ").concat(d).trim(),i.className+=n.isFull()?" ".concat(f,"--full"):"";var y=this.onRender&&this.onRender.bind(this);return y&&y(),this.setValue(n.getValue()),this},r.prototype.onRender=function(){},r})(Ze);const Oa=oP;var sP=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}
1194r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),lP=(function(a){sP(r,a);function r(t){var e=a.call(this,t)||this;e.config=t.config||{},e.pfx=e.config.stylePrefix||"",e.properties=[],e.parent=t.parent;var n=e.collection;return e.listenTo(n,"add",e.addTo),e.listenTo(n,"reset",e.render),e}return r.prototype.addTo=function(t,e,n){this.add(t,null,n)},r.prototype.add=function(t,e,n){n===void 0&&(n={});var i=this,o=i.parent,s=i.config,c=e||this.el,d=new t.typeView({model:t,config:s});o&&(d.parent=o),d.render();var f=d.el;this.properties.push(d),i1(c,f,n.at)},r.prototype.remove=function(){return Ze.prototype.remove.apply(this,arguments),this.clearItems(),this},r.prototype.clearItems=function(){this.properties.forEach(function(t){return t.remove()}),this.properties=[]},r.prototype.render=function(){var t=this,e=this,n=e.$el,i=e.pfx;this.clearItems();var o=document.createDocumentFragment();return this.collection.forEach(function(s){return t.add(s,o)}),n.empty(),n.append(o),n.attr("class","".concat(i,"properties")),this},r})(Ze);const T1=lP;var cP=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Jf=function(){return Jf=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Jf.apply(this,arguments)},dP=(function(a){cP(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.templateInput=function(){var t=this.pfx;return` 1195 <div class="`.concat(t,"field ").concat(t,`composite"> 1196 <span id="`).concat(t,`input-holder"></span> 1197 </div> 1198 `)},r.prototype.remove=function(){var t;return(t=this.props)===null||t===void 0||t.remove(),Oa.prototype.remove.apply(this,arguments),this},r.prototype.onValueChange=function(){},r.prototype.onRender=function(){var t=this.pfx,e=this.model,n=e.get("properties");if(n.length&&!this.props){var i=e.isDetached(),o=new T1({config:Jf(Jf({},this.config),{highlightComputed:i,highlightChanged:i}),collection:n,parent:this});o.render(),this.$el.find("#".concat(t,"input-holder")).append(o.el),this.props=o}},r.prototype.clearCached=function(){Oa.prototype.clearCached.apply(this,arguments),delete this.props},r})(Oa);const yc=dP;var uP=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),fP=(function(a){uP(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.events=function(){return{click:"select","click [data-close-layer]":"removeItem","mousedown [data-move-layer]":"initSorter","touchstart [data-move-layer]":"initSorter"}},r.prototype.template=function(){var t=this,e=t.pfx,n=t.ppfx,i=t.em,o=i==null?void 0:i.getConfig().icons,s=(o==null?void 0:o.close)||"",c=(o==null?void 0:o.move)||"";return` 1199 <div class="`.concat(e,`label-wrp"> 1200 <div id="`).concat(e,'move" class="').concat(n,`no-touch-actions" data-move-layer> 1201 `).concat(c,` 1202 </div> 1203 <div id="`).concat(e,`label" data-label></div> 1204 <div id="`).concat(e,'preview-box" class="').concat(e,`layer-preview" style="display: none" data-preview-box> 1205 <div id="`).concat(e,'preview" class="').concat(e,`layer-preview-cnt" data-preview></div> 1206 </div> 1207 <div id="`).concat(e,'close-layer" class="').concat(e,`btn-close" data-close-layer> 1208 `).concat(s,` 1209 </div> 1210 </div> 1211 <div id="`).concat(e,`inputs" data-properties></div> 1212 `)},r.prototype.initialize=function(t){t===void 0&&(t={});var e=this.model,n=t.config||{};this.em=n.em,this.config=n,this.sorter=t.sorter,this.pfx=n.stylePrefix||"",this.ppfx=n.pStylePrefix||"",this.propertyView=t.propertyView;var i=this.propertyView.model;this.listenTo(e,"destroy remove",this.remove),this.listenTo(e,"change:values",this.updateLabel),this.listenTo(i,"change:selectedLayer",this.updateVisibility),e.view=this,e.set({droppable:0,draggable:1}),this.$el.data("model",e)},r.prototype.initSorter=function(){var t;(t=this.sorter)===null||t===void 0||t.startSort([{element:this.el}])},r.prototype.removeItem=function(t){t&&t.stopPropagation(),this.model.remove()},r.prototype.select=function(){this.model.select()},r.prototype.getPropertiesWrapper=function(){return this.propsWrapEl||(this.propsWrapEl=this.el.querySelector("[data-properties]")),this.propsWrapEl},r.prototype.getPreviewEl=function(){return this.previewEl||(this.previewEl=this.el.querySelector("[data-preview]")),this.previewEl},r.prototype.getLabelEl=function(){return this.labelEl||(this.labelEl=this.el.querySelector("[data-label]")),this.labelEl},r.prototype.updateLabel=function(){var t=this.model,e=t.getLabel();if(this.getLabelEl().innerHTML=e,t.hasPreview()){var n=this.getPreviewEl(),i=t.getStylePreview({number:{min:-3,max:3}}),o=(0,E.keys)(i).map(function(s){return"".concat(s,":").concat(i[s])}).join(";");n.setAttribute("style",o)}},r.prototype.updateVisibility=function(){var t,e=this,n=e.pfx,i=e.model,o=e.propertyView,s=this.getPropertiesWrapper(),c=i.isSelected();s.style.display=c?"":"none",this.$el[c?"addClass":"removeClass"]("".concat(n,"active")),c&&s.appendChild((t=o.props)===null||t===void 0?void 0:t.el)},r.prototype.render=function(){var t=this,e=t.el,n=t.pfx,i=t.model;return e.innerHTML=this.template(),e.className="".concat(n,"layer"),i.hasPreview()&&(e.querySelector("[data-preview-box]").style.display=""),this.updateLabel(),this.updateVisibility(),this},r})(Ze);const pP=fP;
1212var hP=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),gP=(function(a){hP(r,a);function r(t){var e=a.call(this,t)||this,n=e.collection,i=t.config||{},o=i.em,s=i.stylePrefix||"",c=i.pStylePrefix||"";e.config=i,e.pfx=s,e.ppfx=c,e.propertyView=t.propertyView,e.className="".concat(s,"layers ").concat(c,"field"),e.listenTo(n,"add",e.addTo),e.listenTo(n,"reset",e.reset),e.items=[];var d=e.createPlaceholder(i.pStylePrefix);e.$el.append(d);var f=o==null?void 0:o.Utils;return e.sorter=f?new f.StyleManagerSorter({em:o,containerContext:{container:e.el,containerSel:".".concat(s,"layers"),itemSel:".".concat(s,"layer"),pfx:i.pStylePrefix,document,placeholderElement:d},dragBehavior:{dragDirection:aa.Vertical,nested:!1}}):void 0,n.view=e,e.$el.data("model",n),e.$el.data("collection",n),e}return r.prototype.addTo=function(t){var e=this.collection.indexOf(t);this.addToCollection(t,null,e)},r.prototype.addToCollection=function(t,e,n){var i=e||null,o=this,s=o.propertyView,c=o.config,d=o.sorter,f=o.$el,g=new pP({model:t,config:c,sorter:d,propertyView:s}),m=g.render().el;if(this.items.push(g),i)i.appendChild(m);else if(typeof n<"u"){var y="before";f.children().length===n&&(n--,y="after"),n<0?f.append(m):f.children().eq(n)[y](m)}else f.append(m);return m},r.prototype.reset=function(t,e){this.clearItems(),this.render()},r.prototype.remove=function(){return this.clearItems(),Ze.prototype.remove.apply(this,arguments),this},r.prototype.clearItems=function(){this.items.forEach(function(t){return t.remove()}),this.items=[]},r.prototype.render=function(){var t=this,e=this.$el,n=document.createDocumentFragment();return e.empty(),this.collection.forEach(function(i){return t.addToCollection(i,n)}),e.append(n),e.attr("class",this.className),this},r.prototype.createPlaceholder=function(t){var e=document.createElement("div"),n=document.createElement("div");return this.el.parentNode,e.className=t+"placeholder",e.style.display="none",e.style.pointerEvents="none",n.className=t+"placeholder-int",e.appendChild(n),e},r})(Ze);const vP=gP;var mP=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),al=function(){return al=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},al.apply(this,arguments)},yP=(function(a){mP(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.events=function(){return al(al({},yc.prototype.events()),{"click [data-add-layer]":"addLayer",change:""})},r.prototype.templateInput=function(){var t=this,e=t.pfx,n=t.em,i=n==null?void 0:n.getConfig().icons,o=(i==null?void 0:i.plus)||"+";return` 1213 <div class="`.concat(e,"field ").concat(e,`stack"> 1214 <button type="button" id="`).concat(e,`add" data-add-layer> 1215 `).concat(o,` 1216 </button> 1217 <div data-layers-wrapper></div> 1218 </div> 1219 `)},r.prototype.init=function(){var t=this.model;this.listenTo(t.layers,"change reset",this.updateStatus),this.listenTo(t,"change:isEmptyValue",this.updateStatus)},r.prototype.addLayer=function(){this.model.addLayer({},{at:0})},r.prototype.setValue=function(){},r.prototype.remove=function(){var t;return(t=this.layersView)===null||t===void 0||t.remove(),yc.prototype.remove.apply(this,arguments),this},r.prototype.clearCached=function(){yc.prototype.clearCached.apply(this,arguments),delete this.layersView},r.prototype.onRender=function(){var t=this,e=t.model,n=t.el,i=t.config,o=e.get("properties");if(o.length&&!this.props){var s=new T1({config:al(al({},i),{highlightComputed:!1,highlightChanged:!1}),collection:o,parent:this});s.render();
1219var c=new vP({collection:e.layers,config:i,propertyView:this});c.render();var d=n.querySelector("[data-layers-wrapper]");d.appendChild(c.el),this.props=s,this.layersView=c}},r})(yc);const bP=yP;var xP=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Qf=function(){return Qf=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Qf.apply(this,arguments)},wP=(function(a){xP(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.events=function(){return Qf(Qf({},Oa.prototype.events()),{"click [data-clear-asset]":"clear","click [data-open-assets]":"openAssetManager"})},r.prototype.templateInput=function(){var t,e=this,n=e.pfx,i=e.em,o=(t=this.em)===null||t===void 0?void 0:t.getConfig().icons,s=o==null?void 0:o.close;return` 1220 <div class="`.concat(n,"field ").concat(n,`file"> 1221 <div id='`).concat(n,`input-holder'> 1222 <div class="`).concat(n,`btn-c"> 1223 <button class="`).concat(n,'btn" id="').concat(n,`images" type="button" data-open-assets> 1224 `).concat(i.t("styleManager.fileButton"),` 1225 </button> 1226 </div> 1227 <div style="clear:both;"></div> 1228 </div> 1229 <div id="`).concat(n,'preview-box" class="').concat(n,`preview-file" data-preview-box> 1230 <div id="`).concat(n,'preview-file" class="').concat(n,`preview-file-cnt" data-preview></div> 1231 <div id="`).concat(n,'close" class="').concat(n,'preview-file-close" data-clear-asset>').concat(s,`</div> 1232 </div> 1233 </div> 1234 `)},r.prototype.__setValueInput=function(t){var e=this,n=e.model,i=e.el,o=n.getDefaultValue(),s=i.querySelector("[data-preview-box]"),c=i.querySelector("[data-preview]");s.style.display=!t||t===o?"none":"",c.style.backgroundImage=t||n.getDefaultValue()},r.prototype.openAssetManager=function(){var t=this,e,n=(e=this.em)===null||e===void 0?void 0:e.Assets;n==null||n.open({select:function(i,o){var s=(0,E.isString)(i)?i:i.get("src");t.model.upValue(s,{partial:!o}),o&&n.close()},types:["image"],accept:"image/*"})},r})(Oa);const _P=wP;var CP=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),kP=(function(a){CP(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.templateInput=function(t){return""},r.prototype.init=function(){var t=this.model;this.listenTo(t,"change:unit",this.onValueChange),this.listenTo(t,"change:units",this.render)},r.prototype.setValue=function(t){},r.prototype.onRender=function(){var t=this,e=t.ppfx,n=t.model,i=t.el;if(!this.inputInst){var o=n.input;o.ppfx=e,o.render();var s=i.querySelector(".".concat(e,"fields"));s.appendChild(o.el),this.input=o.inputEl.get(0),this.inputInst=o}},r.prototype.clearCached=function(){Oa.prototype.clearCached.apply(this,arguments),this.inputInst=null},r})(Oa);const Sa=kP;var SP=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}
1234r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),TP=(function(a){SP(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.setValue=function(t){var e;(e=this.inputInst)===null||e===void 0||e.setValue(t,{fromTarget:1,def:this.model.getDefaultValue()})},r.prototype.remove=function(){var t=this;Sa.prototype.remove.apply(this,arguments);var e=this.inputInst;return e&&e.remove&&e.remove(),["inputInst","$color"].forEach(function(n){return t[n]=null}),this},r.prototype.__handleChange=function(t,e){this.model.upValue(t,{partial:e})},r.prototype.onRender=function(){var t;if(!this.inputInst){this.__handleChange=this.__handleChange.bind(this);var e=this,n=e.ppfx,i=e.model,o=e.em,s=e.el,c=new bx({target:o,model:i,ppfx:n,onChange:this.__handleChange}),d=c.render();s.querySelector(".".concat(n,"fields")).appendChild(d.el),this.input=(t=d.inputEl)===null||t===void 0?void 0:t.get(0),this.inputInst=d}},r})(Sa);const OP=TP;var EP=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),tp=function(){return tp=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},tp.apply(this,arguments)},Dy=function(a,r,t){if(t||arguments.length===2)for(var e=0,n=r.length,i;e<n;e++)(i||!(e in r))&&(i||(i=Array.prototype.slice.call(r,0,e)),i[e]=r[e]);return a.concat(i||Array.prototype.slice.call(r))},AP=(function(a){EP(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.defaults=function(){return tp(tp({},hr.getDefaults()),{options:[],full:0})},r.prototype.getOptions=function(){var t=this.attributes,e=t.options,n=t.list;return(e&&e.length?e:n)||[]},r.prototype.getOption=function(t){var e=this,n=Xr(t)?t:this.getValue();return this.getOptions().filter(function(i){return e.getOptionId(i)===n})[0]||null},r.prototype.setOptions=function(t){return t===void 0&&(t=[]),this.set("options",t),this},r.prototype.addOption=function(t){if(t){var e=this.getOptions();this.setOptions(Dy(Dy([],e,!0),[t],!1))}return this},r.prototype.getOptionId=function(t){return Xr(t.id)?t.id:t.value},r.prototype.getOptionLabel=function(t,e){var n;e===void 0&&(e={});var i=e.locale,o=i===void 0?!0:i,s=((0,E.isString)(t)?this.getOption(t):t)||{},c=this.getOptionId(s),d=s.label||s.name||c,f=e.property||this.getId();return o&&((n=this.em)===null||n===void 0?void 0:n.t("styleManager.options.".concat(f,".").concat(c)))||d},r.prototype.initialize=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];hr.prototype.initialize.apply(this,t),this.listenTo(this,"change:options",this.__onOptionChange)},r.prototype.__onOptionChange=function(){this.set("list",this.get("options"))},r})(hr);const wv=AP;var MP=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),PP=(function(a){MP(r,a);function r(t){var e=a.call(this,t)||this;return e.listenTo(e.model,"change:options",e.updateOptions),e}return r.prototype.templateInput=function(){var t=this,e=t.pfx,n=t.ppfx;return` 1235 <div class="`.concat(n,"field ").concat(n,`select"> 1236 <span id="`).concat(e,`input-holder"></span> 1237 <div class="`).concat(n,`sel-arrow"> 1238 <div class="`).concat(n,`d-s-arrow"></div> 1239 </div> 1240 </div> 1241 `)},r.prototype.updateOptions=function(){delete this.input,this.onRender()},r.prototype.onRender=function(){var t=this.pfx,e=this.model,n=e.getOptions();if(!this.input){var i=[];
1241n.forEach(function(s){var c=e.getOptionId(s),d=e.getOptionLabel(c),f=s.style?s.style.replace(/"/g,"""):"",g=f?'style="'.concat(f,'"'):"",m=c.replace(/"/g,""");i.push('<option value="'.concat(m,'" ').concat(g,">").concat(d,"</option>"))});var o=this.el.querySelector("#".concat(t,"input-holder"));o.innerHTML="<select>".concat(i.join(""),"</select>"),this.input=o.firstChild}},r.prototype.__setValueInput=function(t){var e=this.model,n=this.getInputEl(),i=e.getOptions()[0],o=i?e.getOptionId(i):"";n&&(n.value=t||o)},r})(Oa);const a3=PP;var LP=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),ep=function(){return ep=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},ep.apply(this,arguments)},DP=(function(a){LP(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.defaults=function(){return ep(ep({},wv.getDefaults()),{full:1})},r})(wv);const IP=DP;var jP=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),NP=(function(a){jP(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.templateInput=function(){var t=this.ppfx;return'<div class="'.concat(t,"field ").concat(t,'field-radio"></div>')},r.prototype.onRender=function(){var t=this,e=t.pfx,n=t.ppfx,i=this.model,o="".concat(n,"radio-item-label"),s=i.getName(),c=i.getOptions(),d="".concat(e,"radio ").concat(e,"radio-").concat(s),f=i.cid;if(!this.input){var g=[];c.forEach(function(y){var x=y.className?"".concat(y.className," ").concat(e,"icon ").concat(o):"",w=i.getOptionId(y),k="".concat(s,"-").concat(w,"-").concat(f),S=x?"":i.getOptionLabel(w),A=y.title?'title="'.concat(y.title,'"'):"",L=i.getValue()===w?"checked":"";g.push(` 1242 <div class="`.concat(n,`radio-item"> 1243 <input type="radio" class="`).concat(d,'" id="').concat(k,'" name="').concat(s,"-").concat(f,'" value="').concat(w,'" ').concat(L,`/> 1244 <label class="`).concat(x||o,'" ').concat(A,' for="').concat(k,'">').concat(S,`</label> 1245 </div> 1246 `))});var m=this.el.querySelector(".".concat(n,"field"));m.innerHTML='<div class="'.concat(n,'radio-items">').concat(g.join(""),"</div>"),this.input=m.firstChild}},r.prototype.__setValueInput=function(t){var e,n=this.model,i=t||n.getDefaultValue(),o=(e=this.getInputEl())===null||e===void 0?void 0:e.querySelector('[value="'.concat(i,'"]'));o&&(o.checked=!0)},r})(a3);const RP=NP;var BP=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Yo=function(){return Yo=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Yo.apply(this,arguments)},VP=(function(a){BP(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.defaults=function(){return Yo(Yo({},hr.getDefaults()),{units:[],unit:"",min:"",max:"",step:1})},r.prototype.getUnits=function(){return this.get("units")||[]},r.prototype.getUnit=function(){return this.get("unit")},r.prototype.getMin=function(){return this.get("min")},r.prototype.getMax=function(){return this.get("max")}
1246,r.prototype.getStep=function(){return this.get("step")},r.prototype.upUnit=function(t,e){return e===void 0&&(e={}),this._up({unit:t},e)},r.prototype.initialize=function(t,e){t===void 0&&(t={}),e===void 0&&(e={}),hr.callParentInit(hr,this,t,e);var n=this.get("unit"),i=this.getUnits();this.input=Jr()?new wx({model:this}):void 0,i.length&&!n&&this.set("unit",i[0],{silent:!0}),hr.callInit(this,t,e)},r.prototype.__getClearProps=function(){return Yo(Yo({},hr.prototype.__getClearProps()),{unit:""})},r.prototype.parseValue=function(t,e){e===void 0&&(e={});var n=hr.prototype.parseValue.apply(this,arguments),i=this.input.validateInputValue(n.value,Yo({deepCheck:1},e)),o=i.value,s=i.unit;return n.value=o,n.unit=s,n},r.prototype.getFullValue=function(){var t=this.get("value"),e=this.get("unit"),n=(0,E.isUndefined)(t)?"":"".concat(t),i=!(0,E.isUndefined)(e)&&n?e:"",o="".concat(n).concat(i);return hr.prototype.getFullValue.apply(this,[o])},r})(hr);const rp=VP;var HP=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),np=function(){return np=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},np.apply(this,arguments)},FP=(function(a){HP(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.defaults=function(){return np(np({},rp.getDefaults()),{showInput:1})},r})(rp);const $P=FP;var zP=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),ip=function(){return ip=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},ip.apply(this,arguments)},UP=(function(a){zP(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.events=function(){return ip(ip({},Sa.prototype.events()),{"change [type=range]":"inputValueChanged","input [type=range]":"inputValueChangedSoft",change:""})},r.prototype.templateInput=function(t){var e=this.ppfx;return` 1247 <div class="`.concat(e,"field ").concat(e,`field-range"> 1248 <input type="range" min="`).concat(t.get("min"),'" max="').concat(t.get("max"),'" step="').concat(t.get("step"),`"/> 1249 </div> 1250 `)},r.prototype.getSliderEl=function(){return this.slider||(this.slider=this.el.querySelector("input[type=range]")),this.slider},r.prototype.inputValueChanged=function(t){t.stopPropagation(),this.model.upValue(this.getSliderEl().value)},r.prototype.inputValueChangedSoft=function(t){t.stopPropagation(),this.model.upValue(this.getSliderEl().value,{partial:!0})},r.prototype.setValue=function(t){var e=this.model,n=e.parseValue(t);this.getSliderEl().value=t===""?e.getDefaultValue():parseFloat(n.value),Sa.prototype.setValue.apply(this,arguments)},r.prototype.onRender=function(){Sa.prototype.onRender.apply(this,arguments),this.model.get("showInput")||(this.inputInst.el.style.display="none")},r.prototype.clearCached=function(){Sa.prototype.clearCached.apply(this,arguments),delete this.slider},r})(Sa);const WP=UP;var ZP=Rr.extend(jx),qP=ZP.extend({extendViewApi:1,init:function(){var a=this,r=a.opts,t=a.em,e=r.module||(t==null?void 0:t.get("StyleManager"));e&&(e.__listenAdd(this,e.events.propertyAdd),e.__listenRemove(this,e.events.propertyRemove))}
vendor: 9,490 bytes, line 1250
1250,types:[{id:"stack",model:rP,view:bP,isType:function(a){if(a&&a.type=="stack")return a}},{id:"composite",model:Hs,view:yc,isType:function(a){if(a&&a.type=="composite")return a}},{id:"file",model:hr,view:_P,isType:function(a){if(a&&a.type=="file")return a}},{id:"color",model:hr,view:OP,isType:function(a){if(a&&a.type=="color")return a}},{id:"select",model:wv,view:a3,isType:function(a){if(a&&a.type=="select")return a}},{id:"radio",model:IP,view:RP,isType:function(a){if(a&&a.type=="radio")return a}},{id:"slider",model:$P,view:WP,isType:function(a){if(a&&a.type=="slider")return a}},{id:"integer",model:rp,view:Sa,isType:function(a){if(a&&a.type=="integer")return a}},{id:"number",model:rp,view:Sa,isType:function(a){if(a&&a.type=="number")return a}},{id:"base",model:hr,view:Oa,isType:function(a){return a.type="base",a}}]});const O1=qP;var Xa=function(){return Xa=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Xa.apply(this,arguments)},KP=function(a,r){var t={};for(var e in a)Object.prototype.hasOwnProperty.call(a,e)&&r.indexOf(e)<0&&(t[e]=a[e]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,e=Object.getOwnPropertySymbols(a);n<e.length;n++)r.indexOf(e[n])<0&&Object.prototype.propertyIsEnumerable.call(a,e[n])&&(t[e[n]]=a[e[n]]);return t},Eo=function(a,r,t){if(t||arguments.length===2)for(var e=0,n=r.length,i;e<n;e++)(i||!(e in r))&&(i||(i=Array.prototype.slice.call(r,0,e)),i[e]=r[e]);return a.concat(i||Array.prototype.slice.call(r))},qr=function(a){return a.map(function(r){return{id:r}})},GP=(function(){function a(){this.props={},this.typeNumber="number",this.typeColor="color",this.typeRadio="radio",this.typeSelect="select",this.typeFile="file",this.typeSlider="slider",this.typeComposite="composite",this.typeStack="stack",this.unitsSize=["px","%","em","rem","vh","vw"],this.unitsSizeNoPerc=["px","em","rem","vh","vw"],this.unitsTime=["s","ms"],this.unitsAngle=["deg","rad","grad"],this.fixedValues=["initial","inherit","auto"];var r=", sans-serif",t=["flex-start","flex-end","center"],e=Eo(Eo([],t,!0),["baseline","stretch"],!1);this.optsBgSize=qr(["auto","cover","contain"]),this.optsBgAttach=qr(["scroll","fixed","local"]),this.optsBgRepeat=qr(["repeat","repeat-x","repeat-y","no-repeat"]),this.optsWrap=qr(["nowrap","wrap","wrap-reverse"]),this.optsOverflow=qr(["visible","hidden","scroll","auto"]),this.optsDir=qr(["row","row-reverse","column","column-reverse"]),this.opstDisplay=qr(["block","inline","inline-block","flex","none"]),this.optsTransitFn=qr(["linear","ease","ease-in","ease-out","ease-in-out"]),this.optsCursor=qr(["auto","pointer","copy","crosshair","grab","grabbing","help","move","text"]),this.optsFloat=qr(["none","left","right"]),this.optsPos=qr(["static","relative","absolute","fixed"]),this.optsTextAlign=qr(["left","center","right","justify"]),this.optsFlexAlign=qr(e),this.optsJustCont=qr(Eo(Eo([],t,!0),["space-between","space-around","space-evenly"],!1)),this.optsAlignCont=qr(Eo(Eo([],t,!0),["space-between","space-around","stretch"],!1)),this.optsAlignSelf=qr(Eo(["auto"],e,!0)),this.optsTransitProp=qr(["all","width","height","background-color","transform","box-shadow","opacity"]),this.optsBorderStyle=qr(["none","solid","dotted","dashed","double","groove","ridge","inset","outset"]),this.optsBgPos=qr(["left top","left center","left bottom","right top","right center","right bottom","center top","center center","center bottom"]),this.optsWeight=[{id:"100",label:"Thin"},{id:"200",label:"Extra-Light"},{id:"300",label:"Light"},{id:"400",label:"Normal"},{id:"500",label:"Medium"},{id:"600",label:"Semi-Bold"},{id:"700",label:"Bold"},{id:"800",label:"Extra-Bold"},{id:"900",label:"Ultra-Bold"}],this.optsShadowType=[{id:"",label:"Outside"},{id:"inset",label:"Inside"}],this.optsFonts=["Arial, Helvetica"+r,"Arial Black, Gadget"+r,"Brush Script MT"+r,"Comic Sans MS, cursive"+r,"Courier New, Courier, monospace","Georgia, serif","Helvetica"+r,"Impact, Charcoal"+r,"Lucida Sans Unicode, Lucida Grande"+r,"Tahoma, Geneva"+r,"Times New Roman, Times, serif","Trebuchet MS, Helvetica"+r,"Verdana, Geneva"+r].map(function(n){return{id:n,label:n.split(",")[0]}}),this.fixedFontSizes=["medium","xx-small","x-small","small","large","x-large","xx-large","smaller","larger","length","initial","inherit"],this.fixedLetSpace=["normal","initial","inherit"],this.requireFlex={display:["flex"]},this.init()}return a.prototype.__sub=function(r){var t=this;return function(){return r.map(function(e){if((0,E.isString)(e))return t.get(e);var n=e.extend,i=KP(e,["extend"]);return Xa(Xa({},t.get(n)),i)})}},a.prototype.init=function(){var r=this,t=this,e=t.fixedValues,n=t.requireFlex,i=t.typeNumber;this.props={};var o=[["text-shadow-h",{type:i,default:"0",units:this.unitsSizeNoPerc}],["top",{default:"auto",units:this.unitsSize,fixedValues:e},"text-shadow-h"],["right",{},"top"],["bottom",{},"top"],["left",{},"top"],["margin-top",{default:"0"},"top"],["margin-right",{},"margin-top"],["margin-bottom",{},"margin-top"],["margin-left",{},"margin-top"],["padding-top",{min:0},"margin-top"],["padding-right",{},"padding-top"],["padding-bottom",{},"padding-top"],["padding-left",{},"padding-top"],["width",{min:0},"top"],["min-width",{},"width"],["max-width",{},"width"],["height",{},"width"],["min-height",{},"width"],["max-height",{},"width"],["flex-basis",{requiresParent:n},"width"],["font-size",{default:"medium",fixedValues:this.fixedFontSizes},"width"],["letter-spacing",{default:"normal",fixedValues:this.fixedLetSpace},"top"],["line-height",{},"letter-spacing"],["text-shadow-v",{},"text-shadow-h"],["text-shadow-blur",{min:0},"text-shadow-h"],["border-radius-c",{property:"border-radius",fixedValues:void 0},"padding-top"],["border-top-left-radius",{},"border-radius-c"],["border-top-right-radius",{},"border-radius-c"],["border-bottom-left-radius",{},"border-radius-c"],["border-bottom-right-radius",{},"border-radius-c"],["border-width",{units:this.unitsSizeNoPerc},"border-radius-c"],["box-shadow-h",{},"text-shadow-h"],["box-shadow-v",{},"text-shadow-h"],["box-shadow-blur",{default:"5px"},"text-shadow-blur"],["box-shadow-spread",{},"text-shadow-h"],["transition-duration",{default:"2s",units:this.unitsTime},"border-radius-c"],["perspective",{},"border-radius-c"],["order",{type:i,default:"0",requiresParent:n}],["flex-grow",{},"order"],["flex-shrink",{default:"1"},"order"],["float",{type:this.typeRadio,default:"none",options:this.optsFloat}],["position",{default:"static",options:this.optsPos},"float"],["text-align",{default:"left",options:this.optsTextAlign},"float"],["color",{type:this.typeColor,default:"black",full:!0}],["text-shadow-color",{},"color"],["border-color",{},"color"],["box-shadow-color",{},"color"],["background-color",{default:"none"},"color"],["background-image",{type:this.typeFile,functionName:"url",default:"none",full:!0}],["opacity",{type:this.typeSlider,default:"1",min:0,max:1,step:.01,full:!0}],["display",{type:this.typeSelect,default:"block",options:this.opstDisplay}],["flex-direction",{default:"row",options:this.optsDir,requires:n},"display"],["flex-wrap",{default:"nowrap",options:this.optsWrap},"flex-direction"],["justify-content",{default:"flex-start",options:this.optsJustCont},"flex-wrap"],["align-items",{default:"stretch",options:this.optsFlexAlign},"flex-wrap"],["align-content",{options:this.optsAlignCont},"align-items"],["align-self",{default:"auto",options:this.optsAlignSelf,requiresParent:n},"display"],["font-family",{default:"Arial, Helvetica, sans-serif",options:this.optsFonts},"display"],["font-weight",{default:"400",options:this.optsWeight},"display"],["border-style",{default:"solid",options:this.optsBorderStyle},"display"],["box-shadow-type",{default:"",options:this.optsShadowType},"display"],["background-repeat",{default:"repeat",options:this.optsBgRepeat},"display"],["background-position",{default:"left top",options:this.optsBgPos},"display"],["background-attachment",{default:"scroll",options:this.optsBgAttach},"display"],["background-size",{default:"auto",options:this.optsBgSize},"display"],["transition-property",{default:"width",options:this.optsTransitProp},"display"],["transition-timing-function",{default:"ease",options:this.optsTransitFn},"display"],["cursor",{default:"auto",options:this.optsCursor},"display"],["overflow",{default:"visible",options:this.optsOverflow},"display"],["overflow-x",{},"overflow"],["overflow-y",{},"overflow"],["margin",{type:this.typeComposite,properties:this.__sub([{extend:"margin-top",id:"margin-top-sub"},{extend:"margin-right",id:"margin-right-sub"},{extend:"margin-bottom",id:"margin-bottom-sub"},{extend:"margin-left",id:"margin-left-sub"}])}],["padding",{properties:this.__sub([{extend:"padding-top",id:"padding-top-sub"},{extend:"padding-right",id:"padding-right-sub"},{extend:"padding-bottom",id:"padding-bottom-sub"},{extend:"padding-left",id:"padding-left-sub"}])},"margin"],["border",{properties:this.__sub([{extend:"border-width",id:"border-width-sub"},{extend:"border-style",id:"border-style-sub"},{extend:"border-color",id:"border-color-sub"}])},"margin"],["border-radius",{properties:this.__sub([{extend:"border-top-left-radius",id:"border-top-left-radius-sub"},{extend:"border-top-right-radius",id:"border-top-right-radius-sub"},{extend:"border-bottom-right-radius",id:"border-bottom-right-radius-sub"},{extend:"border-bottom-left-radius",id:"border-bottom-left-radius-sub"}])}
1250,"margin"],["transition",{type:this.typeStack,properties:this.__sub([{extend:"transition-property",id:"transition-property-sub"},{extend:"transition-duration",id:"transition-duration-sub"},{extend:"transition-timing-function",id:"transition-timing-function-sub"}])}],["box-shadow",{preview:!0,layerLabel:function(s,c){var d=c.values,f=d["box-shadow-h"],g=d["box-shadow-v"],m=d["box-shadow-blur"],y=d["box-shadow-spread"];return"".concat(f," ").concat(g," ").concat(m," ").concat(y)},properties:this.__sub(["box-shadow-h","box-shadow-v","box-shadow-blur","box-shadow-spread","box-shadow-color","box-shadow-type"])},"transition"],["text-shadow",{default:"none",layerLabel:function(s,c){var d=c.values,f=d["text-shadow-h"],g=d["text-shadow-v"],m=d["text-shadow-blur"];return"".concat(f," ").concat(g," ").concat(m)},properties:this.__sub(["text-shadow-h","text-shadow-v","text-shadow-blur","text-shadow-color"])},"box-shadow"],["background",{detached:!0,layerLabel:function(s,c){var d=c.values,f=d["background-repeat-sub"]||"",g=d["background-position-sub"]||"",m=d["background-attachment-sub"]||"",y=d["background-size-sub"]||"";return[f,g,m,y].join(" ")},properties:this.__sub([{extend:"background-image",id:"background-image-sub"},{extend:"background-repeat",id:"background-repeat-sub"},{extend:"background-position",id:"background-position-sub"},{extend:"background-attachment",id:"background-attachment-sub"},{extend:"background-size",id:"background-size-sub"}])},"box-shadow"],["transform",{type:"stack",layerSeparator:" ",fromStyle:function(s,c){var d=c.property,f=c.name,g=s[f]||"",m=d.getLayerSeparator();return g?g.split(m).map(function(y){var x=d.__parseFn(y),w=x.name,k=x.value;return{"transform-type":w,"transform-value":k}}):[]},toStyle:function(s,c){var d,f=c.name;return d={},d[f]="".concat(s["transform-type"],"(").concat(s["transform-value"],")"),d},properties:[{property:"transform-type",name:"Type",type:this.typeSelect,default:"rotateZ",full:!0,options:[{id:"scaleX",propValue:{units:[""],step:.01}},{id:"scaleY",propValue:{units:[""],step:.01}},{id:"scaleZ",propValue:{units:[""],step:.01}},{id:"rotateX",propValue:{units:this.unitsAngle,step:1}},{id:"rotateY",propValue:{units:this.unitsAngle,step:1}},{id:"rotateZ",propValue:{units:this.unitsAngle,step:1}},{id:"translateX",propValue:{units:this.unitsSize,step:1}},{id:"translateY",propValue:{units:this.unitsSize,step:1}}],onChange:function(s){var c=s.property,d=s.to;if(d.value){var f=c.getOption(),g=Xa({},f.propValue||{}),m=c.getParent().getProperty("transform-value"),y=m.getUnit();(!y||(g==null?void 0:g.units.indexOf(y))<0)&&(g.unit=(g==null?void 0:g.units[0])||""),m.up(g)}}},{property:"transform-value",type:this.typeNumber,default:"0",full:!0}]}]];return o.forEach(function(s){var c=s[0],d=s[1],f=s[2];r.add(c,d||{},{from:f})}),this},a.prototype.add=function(r,t,e){t===void 0&&(t={}),e===void 0&&(e={});var n=e.from||"",i=this.props[n||r]||{},o=Xa(Xa(Xa({},i),{property:r}),t);return o.properties&&(0,E.isFunction)(o.properties)&&(o.properties=o.properties()),this.props[r]=o,o},a.prototype.get=function(r){return this.props[r]},a.prototype.build=function(r){var t=this,e=[],n=(0,E.isString)(r)?[r]:r;return n.forEach(function(i){e.push(t.get(i)||{property:i})}),e},a})();const YP=GP;var XP=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),ap=function(){return ap=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},ap.apply(this,arguments)},JP=function(a,r){var t={};for(var e in a)Object.prototype.hasOwnProperty.call(a,e)&&r.indexOf(e)<0&&(t[e]=a[e]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,e=Object.getOwnPropertySymbols(a);n<e.length;n++)r.indexOf(e[n])<0&&Object.prototype.propertyIsEnumerable.call(a,e[n])&&(t[e[n]]=a[e[n]]);return t},QP=function(a,r,t){if(t||arguments.length===2)for(var e=0,n=r.length,i;e<n;e++)(i||!(e in r))&&(i||(i=Array.prototype.slice.call(r,0,e)),i[e]=r[e]);return a.concat(i||Array.prototype.slice.call(r))},tL=(function(a){XP(r,a);function r(t,e){e===void 0&&(e={});var n=a.call(this,t)||this,i=e.em;n.em=i;var o=t||{},s=n.buildProperties(o.buildProps),c=n.get("name")||"",d=[];!n.get("id")&&n.set("id",c.replace(/ /g,"_").toLowerCase()),s?d=n.extendProperties(s):d=n.get("properties").map(function(g){return(0,E.isString)(g)?n.buildProperties(g)[0]:g}
1250).filter(Boolean),d=d.map(function(g){return n.checkExtend(g)});var f=new O1(d,{em:i});return f.sector=n,n.set("properties",f),n}return r.prototype.defaults=function(){return{id:"",name:"",open:!0,visible:!0,extendBuilded:!0,properties:[]}},Object.defineProperty(r.prototype,"properties",{get:function(){return this.get("properties")},enumerable:!1,configurable:!0}),r.prototype.getId=function(){return this.get("id")},r.prototype.getName=function(){var t,e=this.getId();return((t=this.em)===null||t===void 0?void 0:t.t("styleManager.sectors.".concat(e)))||this.get("name")},r.prototype.setName=function(t){return this.set("name",t)},r.prototype.isOpen=function(){return!!this.get("open")},r.prototype.setOpen=function(t){return this.set("open",t)},r.prototype.isVisible=function(){return!!this.get("visible")},r.prototype.getProperties=function(t){t===void 0&&(t={});var e=this.properties,n=e.models?QP([],e.models,!0):e;return n.filter(function(i){var o=!0;if(t.withValue&&(o=i.hasValue({noParent:!0})),t.withParentValue){var s=i.hasValue({noParent:!0});o=!s&&i.hasValue()}return o})},r.prototype.getProperty=function(t){return this.getProperties().filter(function(e){return e.get("id")===t})[0]||void 0},r.prototype.addProperty=function(t,e){return this.properties.add(this.checkExtend(t),e)},r.prototype.extendProperties=function(t,e,n){n===void 0&&(n=!1);for(var i=t.length,o=e||this.get("properties"),s=this.get("extendBuilded"),c=[],d=0,f=o.length;d<f;d++){for(var g=o[d],m=0,y=0;y<i;y++){var x=t[y];if(g.property==x.property||g.id==x.property){var w=g.properties;w&&w.length&&(g.properties=this.extendProperties(x.properties||[],w,1)),t[y]=s?(0,E.extend)(x,g):g,c[y]=t[y],m=1;continue}}m||(t.push(g),c.push(g))}return n?c.filter(function(k){return k}):t},r.prototype.checkExtend=function(t){var e=this,n=((0,E.isString)(t)?{extend:t}:t)||{},i=n.extend,o=JP(n,["extend"]),s=i?ap(ap({},this.buildProperties([i])[0]||{}),o):t,c=s==null?void 0:s.properties;return c!=null&&c.length&&(s.properties=c.map(function(d){return e.checkExtend(d)})),s},r.prototype.buildProperties=function(t){var e,n=t||[];if(!n.length)return[];var i=(e=this.em)===null||e===void 0?void 0:e.Styles.builtIn;return i==null?void 0:i.build(n)},r})(We);const o3=tL;var eL=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),op=function(){return op=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},op.apply(this,arguments)},rL=(function(a){eL(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.initialize=function(t,e){e===void 0&&(e={});var n=e.module,i=e.em;this.em=i,this.module=n,this.listenTo(this,"reset",this.onReset)},r.prototype.model=function(t,e){e===void 0&&(e={});var n=e.collection.em;return new o3(t,op(op({},e),{em:n}))},r.prototype.onReset=function(t,e){e===void 0&&(e={});var n=e.previousModels||[];n.forEach(function(i){return i.get("properties").reset()})},r})(Rr);const nL=rL;var iL=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),aL=function(a,r){return Object.defineProperty?Object.defineProperty(a,"raw",{value:r}):a.raw=r,a},oL=(function(a){iL(r,a);function r(t){var e=a.call(this,t)||this,n=t.config||{},i=e.model,o=n.em;return e.config=n,e.em=o,e.pfx=n.stylePrefix||"",e.listenTo(i,"destroy remove",e.remove),e.listenTo(i,"change:open",e.updateOpen),e.listenTo(i,"change:visible",e.updateVisibility),e}return r.prototype.template=function(t){var e,n=t.pfx,i=t.label,o=(e=this.em)===null||e===void 0?void 0:e.getConfig().icons,s=(o==null?void 0:o.caret)||"",c="".concat(n,"sector-");return Gn(Iy||(Iy=aL([` 1251 <div class="`,`title" data-sector-title> 1252 <div class="`,'caret">$',`</div> 1253 <div class="`,'label">',`</div> 1254 </div> 1255 `],[` 1256 <div class="`,`title" data-sector-title> 1257 <div class="`,'caret">$',`</div> 1258 <div class="`,'label">',`</div> 1259 </div> 1260 `])),c,c,s,c,i)},r.prototype.events=function(){return{"click [data-sector-title]":"toggle"}},r.prototype.updateOpen=function(){var t=this,e=t.$el,n=t.model,i=t.pfx,o=n.isOpen();e[o?"addClass":"removeClass"]("".concat(i,"open")),this.getPropertiesEl().style.display=o?"":"none"},r.prototype.updateVisibility=function(){this.el.style.display=this.model.isVisible()?"":"none"},r.prototype.getPropertiesEl=function(){var t=this,e=t.$el,n=t.pfx;return e.find(".".concat(n,"properties")).get(0)},r.prototype.toggle=function(){var t=this.model;t.setOpen(!t.get("open"))},r.prototype.renderProperties=function(){var t=this,e=t.model,n=t.config,i=e.get("properties");if(i){var o=new T1({collection:i,config:n});this.$el.append(o.render().el)}},r.prototype.render=function(){var t=this,e=t.pfx,n=t.model,i=t.$el,o=n.getId(),s=n.getName();return i.html(this.template({pfx:e,label:s})),this.renderProperties(),i.attr("class","".concat(e,"sector ").concat(e,"sector__").concat(o," no-select")),this.updateOpen(),this},r})(Ze);const sL=oL;
1260var Iy,lL=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),cL=(function(a){lL(r,a);function r(t){t===void 0&&(t={});var e=a.call(this,t)||this,n=t.module,i=t.config,o=e.collection;return e.pfx=(i==null?void 0:i.stylePrefix)||"",e.ppfx=(i==null?void 0:i.pStylePrefix)||"",e.config=i,e.module=n,e.listenTo(o,"add",e.addTo),e.listenTo(o,"reset",e.render),e}return r.prototype.remove=function(){var t=this;return Ze.prototype.remove.apply(this,arguments),["config","module","em"].forEach(function(e){return t[e]={}}),this},r.prototype.addTo=function(t,e,n){n===void 0&&(n={}),this.addToCollection(t,null,n)},r.prototype.addToCollection=function(t,e,n){n===void 0&&(n={});var i=this,o=i.config,s=i.el,c=e||s,d=new sL({model:t,config:o}).render().el;return i1(c,d,n.at),d},r.prototype.render=function(){var t=this,e=this,n=e.$el,i=e.pfx,o=e.ppfx;n.empty();var s=document.createDocumentFragment();return this.collection.each(function(c){return t.addToCollection(c,s)}),n.append(s),n.addClass("".concat(i,"sectors ").concat(o,"one-bg ").concat(o,"two-color")),this},r})(Ze);const dL=cL;var uL=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Ja=function(){return Ja=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Ja.apply(this,arguments)},jy=function(a,r,t){if(t||arguments.length===2)for(var e=0,n=r.length,i;e<n;e++)(i||!(e in r))&&(i||(i=Array.prototype.slice.call(r,0,e)),i[e]=r[e]);return a.concat(i||Array.prototype.slice.call(r))},Ny=function(a){return a||a===0},fL=(function(a){uL(r,a);function r(t){var e=a.call(this,t,"StyleManager",new nL([],{em:t}),ad,ZM())||this;e.events=ad,e.Sector=o3,e.storageKey="",(0,E.bindAll)(e,"__clearStateTarget");var n=e.events,i=e.config,o=i.pStylePrefix;o&&(i.stylePrefix=o+i.stylePrefix),e.builtIn=new YP,e.properties=new O1([],{em:t,module:e}),e.sectors=e.all;var s=new We({targets:[]});e.model=s;var c=te.update,d="".concat(te.toggled," ").concat(c,":classes change:state change:device frame:resized selector:type");e.upAll=(0,E.debounce)(function(){return e.__upSel()},0),s.listenTo(t,d,e.upAll),s.listenTo(t,te.toggled,e.__clearStateTarget);var f=(0,E.debounce)(function(){e.__upProps(),e.__trgCustom()},0);s.listenTo(t,"styleable:change undo redo",f);var g=(0,E.debounce)(function(){return e.__trgCustom()},0);return s.listenTo(t,"".concat(n.layerSelect," ").concat(n.target),g),s.on("change:lastTarget",function(){return t.trigger(n.target,e.getSelected())}),e}return r.prototype.__upSel=function(){this.select(this.em.getSelectedAll())},r.prototype.__trgCustom=function(t){t===void 0&&(t={}),this.__ctn=this.__ctn||t.container,this.em.trigger(this.events.custom,{container:this.__ctn})},r.prototype.__trgEv=function(t){for(var e,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];(e=this.em).trigger.apply(e,jy([t],n,!1))},r.prototype.__clearStateTarget=function(){var t=this,e=this.em,n=this.__getStateTarget();n&&(e==null||e.skip(function(){e.Css.remove(n),t.model.set({stateTarget:null})}))},r.prototype.onLoad=function(){this.sectors.add(this.config.sectors,{silent:!0})},r.prototype.postRender=function(){this.__appendTo()},r.prototype.addSector=function(t,e,n){n===void 0&&(n={});var i=this.getSector(t);
1260return i||(e.id=t,i=this.sectors.add(e,n)),i},r.prototype.getSector=function(t,e){e===void 0&&(e={});var n=this.sectors.where({id:t})[0];return!n&&e.warn&&this._logNoSector(t),n||null},r.prototype.getSectors=function(t){t===void 0&&(t={});var e=this.sectors,n=e&&e.models?t.array?jy([],e.models,!0):e:[];return t.visible?n.filter(function(i){return i.isVisible()}):n},r.prototype.removeSector=function(t){return this.getSectors().remove(this.getSector(t,{warn:!0}))},r.prototype.addProperty=function(t,e,n){n===void 0&&(n={});var i=this.getSector(t,{warn:!0}),o;return i&&(o=i.addProperty(e,n)),o},r.prototype.getProperty=function(t,e){var n=this.getSector(t,{warn:!0}),i;return n&&(i=n.properties.filter(function(o){return o.get("property")===e||o.get("id")===e})[0]),i},r.prototype.getProperties=function(t){var e,n=this.getSector(t,{warn:!0});return n&&(e=n.properties),e},r.prototype.removeProperty=function(t,e){var n=this.getProperties(t);return n?n.remove(this.getProperty(t,e)):null},r.prototype.select=function(t,e){var n=this;e===void 0&&(e={});var i=this.em,o=(0,E.isArray)(t)?t:[t],s=e.stylable,c=i.Css,d=[];o.filter(Boolean).forEach(function(w){var k=w;if((0,E.isString)(w)){var S=c.getRule(w)||c.setRule(w);!(0,E.isUndefined)(s)&&S.set({stylable:s}),k=S}d.push(k)});var f=e.component||d.filter(function(w){return os(w)}).reverse()[0];d=d.map(function(w){return n.getModelToStyle(w)});var g=i.getState(),m=d.slice().reverse()[0],y=this.getParentRules(m,{state:g,component:f}),x=this.__getStateTarget();return i.skip(function(){var w;if(g&&(!((w=m==null?void 0:m.getState)===null||w===void 0)&&w.call(m))){var k=m.getStyle();x?x.setStyle(k):x=c.getAll().add({selectors:"gjs-selected",style:k,shallow:!0,important:!0})}else x&&(c.remove(x),x=void 0)}),this.model.set({targets:d,lastTarget:m,lastTargetParents:y,stateTarget:x,component:f}),this.__upProps(e),d},r.prototype.getSelected=function(){return this.model.get("lastTarget")},r.prototype.getSelectedAll=function(){return this.model.get("targets")},r.prototype.getSelectedParents=function(){return this.model.get("lastTargetParents")||[]},r.prototype.__getStateTarget=function(){return this.model.get("stateTarget")},r.prototype.addStyleTargets=function(t,e){this.getSelectedAll().map(function(o){return o.addStyle(t,e)});var n=this.getSelected();n&&this.__emitCmpStyleUpdate(t);var i=this.__getStateTarget();n&&(i==null||i.setStyle(n.getStyle(),e))},r.prototype.getBuiltIn=function(t){return this.builtIn.get(t)},r.prototype.getBuiltInAll=function(){return this.builtIn.props},r.prototype.addBuiltIn=function(t,e){return this.builtIn.add(t,e)},r.prototype.getModelToStyle=function(t,e){e===void 0&&(e={});var n=this.em,i=e.skipAdd;if(n&&(t!=null&&t.toHTML)){var o=n.getConfig(),s=n.UndoManager,c=n.Css,d=n.Selectors,f=d?d.getConfig():{},g=o.devicePreviewMode?"":n.get("state"),m=t.get("classes"),y=m.getStyleable(),x=y.length,w=!f.componentFirst||e.useClasses,k={noCount:1},S={state:g,addOpts:k};s.skip(function(){var A;if(x&&w){var L=n.getCurrentMedia();A=c.get(y,g,L),!A&&!i&&(A=c.add(y,g,L,{},k))}else if(o.avoidInlineStyle){var D=t.getId();A=c.getIdRule(D,S),!A&&!i&&(A=c.setIdRule(D,{},S)),t.is("wrapper")&&A.set("wrapper",1,k)}A&&(t=A)})}return t},r.prototype.getParentRules=function(t,e){var n=e===void 0?{}:e,i=n.state,o=n.component,s=this.em,c=[];if(s&&t){var d=o,f=s.Css,g=s.CodeManager.getGenerator("css"),m=t.toHTML?t:t.getComponent(),y={array:!0},x=[],w=[],k=[],S=[],A=[],L=function(z){return z.length?f.getRules().filter(function(B){var X=B.getSelectors().map(function(Z){return Z.getFullName()});return X.length===0?!1:X.every(function(Z){return z.indexOf(Z)>=0})}):[]},D=function(z){return z?f.getRules().filter(function(B){return B.selectorsToString()===z}):[]};if(m)x=f.getRules("#".concat(m.getId())),w=D(m.get("tagName")),S=d?L(d.getSelectors().getFullName(y)):[],A=S.concat(w).c
1260oncat(x);else{x=d?f.getRules("#".concat(d.getId())):[],w=D((d==null?void 0:d.get("tagName"))||"");var W=(d==null?void 0:d.getSelectors().getFullName(y))||[],j=W.filter(function(z){return t.getSelectors().getFullName(y).findIndex(function(B){return B===z})===-1});k=L(j.concat(t.getSelectors().getFullName(y))),A=w.concat(x).concat(k)}var et=A.filter(function(z){return(0,E.isUndefined)(i)?1:z.get("state")===i}).sort(g.sortRules).reverse();c=et.slice(et.indexOf(t)+1)}return c},r.prototype.addType=function(t,e){this.properties.addType(t,e)},r.prototype.removeType=function(t){return this.properties.removeType(t)},r.prototype.getType=function(t){return this.properties.getType(t)},r.prototype.getTypes=function(){return this.properties.getTypes()},r.prototype.createType=function(t,e){var n=e===void 0?{}:e,i=n.model,o=i===void 0?{}:i,s=n.view,c=s===void 0?{}:s,d=this.config,f=this.getType(t);if(f)return new f.view(Ja({model:new f.model(o),config:d},c))},r.prototype.render=function(){var t=this,e=t.config,n=t.em,i=t.SectView,o=i&&i.el;return this.SectView=new dL({el:o,em:n,config:e,module:this,collection:this.sectors}),this.SectView.render().el},r.prototype._logNoSector=function(t){var e=this.em;e&&e.logWarning("'".concat(t,"' sector not found"))},r.prototype.__emitCmpStyleUpdate=function(t,e){e===void 0&&(e={});var n=this.em;if(!t.__p){var i=this.getSelectedAll(),o=e.components||n.getSelectedAll(),s=Array.isArray(o)?o:[o],c=Ja({},t);delete c.__p,s.forEach(function(d){return!i.includes(d)&&d.__onStyleChange(c)})}},r.prototype.__upProps=function(t){var e=this;t===void 0&&(t={});var n=this.getSelected();if(n){var i=this.sectors,o=this.model.get("component"),s=this.getSelectedParents(),c=n.getStyle(),d=s.map(function(f){return{target:f,style:f.getStyle()}});i.map(function(f){f.getProperties().map(function(g){e.__upProp(g,c,d,t)})}
1260),i.forEach(function(f){var g=f.getProperties();g.forEach(function(y){var x=y.__checkVisibility({target:n,sector:f,component:o,sectors:i.models});y.set("visible",x)});var m=g.some(function(y){return y.isVisible()});f.set("visible",m)})}},r.prototype.__upProp=function(t,e,n,i){var o=this,s=t.getName(),c=e[s],d=Ny(c),f=t.getType()==="stack",g=t.getType()==="composite",m=Ja(Ja({},i),{__up:!0}),y=!g&&!f,x=t,w=t,k=f?x.__getLayersFromStyle(e):[],S=g?w.__getPropsFromStyle(e):{},A=d?c:null,L=null;if(f&&k===null||g&&S===null){var D=f?"__getLayersFromStyle":"__getPropsFromStyle",W=n.filter(function(X){return x[D](X.style)!==null})[0];if(W){A=W.style[s],L=W.target;var j=x[D](W.style);f?k=j:S=j}}else if(!d){A=null;var W=n.filter(function(Z){return Ny(Z.style[s])})[0];W&&(A=W.style[s],L=W.target)}if(t.__setParentTarget(L),y&&t.__getFullValue()!==A&&t.upValue(A,m),f&&x.__setLayers(k||[],{isEmptyValue:x.isEmptyValueStyle(e)}),g){var et=w.getProperties();if(w.isDetached()){var z=w.__getPropsFromStyle(e,{byName:!0})||{},B=n.map(function(X){return Ja(Ja({},X),{style:w.__getPropsFromStyle(X.style,{byName:!0})||{}})});et.map(function(X){return o.__upProp(X,z,B,i)})}else w.__setProperties(S||{},m),w.getProperties().map(function(X){return X.__setParentTarget(L)})}},r.prototype.destroy=function(){var t;[this.properties,this.sectors].forEach(function(e){e.reset(),e.stopListening()}),(t=this.SectView)===null||t===void 0||t.remove(),this.model.stopListening(),this.upAll.cancel()},r})(oa);const pL=fL;var hL=function(){return{autoloadProviders:!1,dataBindingImportPolicy:"overwrite"}};const gL=hL;var vL=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),sp=function(){return sp=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},sp.apply(this,arguments)},mL=(function(a){vL(r,a);function r(t,e){var n=a.call(this,t,e)||this;return n.em=e,n.model=function(i,o){return o===void 0&&(o={}),new Kb(i,sp(sp({},o),{em:e}))},n.on(p1,function(){return e.DataSources.invalidateContextCache()}),n}return r})(Rr);const yL=mL;var bL=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),Uc=function(){return Uc=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Uc.apply(this,arguments)},xL=function(a,r,t,e){function n(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(f){try{d(e.next(f))}catch(g){o(g)}}function c(f){try{d(e.throw(f))}catch(g){o(g)}}function d(f){f.done?i(f.value):n(f.value).then(s,c)}d((e=e.apply(a,r||[])).next())})},wL=function(a,r){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},e,n,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(d){return function(f){return c([d,f])}}function c(d){if(e)throw new TypeError("Generator is already executing.");for(;o&&(o=0,d[0]&&(t=0)),t;)try{if(e=1,n&&(i=d[0]&2?n.return:d[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,d[1])).done)return i;switch(n=0,i&&(d=[d[0]&2,i.value]),d[0]){case 0:case 1:i=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,n=d[1],d=[0];continue;
1260case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]<i[3])){t.label=d[1];break}if(d[0]===6&&t.label<i[1]){t.label=i[1],i=d;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(d);break}i[2]&&t.ops.pop(),t.trys.pop();continue}d=r.call(a,t)}catch(f){d=[6,f],n=0}finally{e=i=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},_L=function(a,r){var t={};for(var e in a)Object.prototype.hasOwnProperty.call(a,e)&&r.indexOf(e)<0&&(t[e]=a[e]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,e=Object.getOwnPropertySymbols(a);n<e.length;n++)r.indexOf(e[n])<0&&Object.prototype.propertyIsEnumerable.call(a,e[n])&&(t[e[n]]=a[e[n]]);return t},CL=function(a,r,t){if(t||arguments.length===2)for(var e=0,n=r.length,i;e<n;e++)(i||!(e in r))&&(i||(i=Array.prototype.slice.call(r,0,e)),i[e]=r[e]);return a.concat(i||Array.prototype.slice.call(r))},kL=(function(a){bL(r,a);function r(t){var e=a.call(this,t,"DataSources",new yL([],t),is,gL())||this;return e.storageKey="dataSources",e.events=is,e.dataComponentTypes=jr,e.dataCollectionKeys=vl,e.dataCollectionStateTypes=cl,e.dataFieldPrimitiveType=tf,e.dataOperationTypes={any:Qc,boolean:Jo,number:Ji,string:Ci},e.invalidateContextCache=function(){e.contextCache=void 0},Object.assign(e,u1.Events),e}return r.prototype.destroy=function(){},r.prototype.add=function(t,e){e===void 0&&(e={});var n=this.all;return t.id=t.id||this._createId(),n.add(t,e)},r.prototype.get=function(t){return this.all.get(t)},r.prototype.getAll=function(){return CL([],this.all.models,!0)},r.prototype.getValue=function(t,e,n){if(n!=null&&n.context)return Xu(n.context,t,e);var i=this.getValueFromDataSources(t);return i===void 0?e:i},r.prototype.setValue=function(t,e){var n=this.fromPath(t);n[0];var i=n[1],o=n[2];if(i&&(o||o==="")){var s=Uc({},i.attributes);if(ib(s,o||"",e))return i.set(s),!0}return!1},r.prototype.getContext=function(){return this.contextCache||(this.contextCache=this.all.reduce(function(t,e){return t[e.id]=e.getContext(),t},{})),this.contextCache},r.prototype.remove=function(t,e){return this.__remove(t,e)},r.prototype.fromPath=function(t){var e=[],n=Yc(t||""),i=n[0],o=n[1],s=n.slice(2),c=this.get(i),d=o!==void 0&&(c==null?void 0:c.getRecord(o));return c&&e.push(c),d&&(e.push(d),s.length&&e.push(s.join("."))),e},r.prototype.getValueFromDataSources=function(t){var e=Array.isArray(t)?t:Yc(t||"");if(e.length){var n=e[0],i=e[1],o=e.slice(2),s=this.get(n);if(s){if(i===void 0)return s.getContext();var c=s.getRecord(i);if(c){var d=c.getContext();return o.length?Xu(d,o):d}}}},r.prototype.store=function(){var t,e=[];return this.all.forEach(function(n){var i=n.attributes,o=i.skipFromStorage;i.transformers;var s=i.records,c=i.schema,d=_L(i,["skipFromStorage","transformers","records","schema"]);o||e.push(Uc(Uc({},d),{id:d.id,schema:(0,E.isEmpty)(c)?void 0:c,records:d.provider?void 0:s}))}),t={},t[this.storageKey]=e,t},r.prototype.load=function(t){var e=this,n=this,i=n.config,o=n.all,s=n.events,c=n.em,d=this.loadProjectData(t);if(i.autoloadProviders){var f=o.filter(function(m){return m.hasProvider});if(f.length){var g=function(){return xL(e,void 0,void 0,function(){var m;return wL(this,function(y){switch(y.label){case 0:return c.trigger(s.providerLoadAllBefore),m=f.map(function(x){return x.loadProvider()}),[4,Promise.all(m)];case 1:return y.sent(),c.trigger(s.providerLoadAll),[2]}})})};g()}}return d},r.prototype.postLoad=function(){var t=this,e=t.em,n=t.all;e.listenTo(n,p1,function(i,o,s){var c=s||o;e.changesUp(c,{dataSource:i,options:c})}),this.em.UndoManager.add(n)},r})(oa);const s3=kL;var SL=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}
vendor: 1,238 bytes, line 1260
1260r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),ln=function(){return ln=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},ln.apply(this,arguments)},tg=function(a,r,t,e){function n(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(f){try{d(e.next(f))}catch(g){o(g)}}function c(f){try{d(e.throw(f))}catch(g){o(g)}}function d(f){f.done?i(f.value):n(f.value).then(s,c)}d((e=e.apply(a,r||[])).next())})},eg=function(a,r){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},e,n,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(d){return function(f){return c([d,f])}}function c(d){if(e)throw new TypeError("Generator is already executing.");for(;o&&(o=0,d[0]&&(t=0)),t;)try{if(e=1,n&&(i=d[0]&2?n.return:d[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,d[1])).done)return i;switch(n=0,i&&(d=[d[0]&2,i.value]),d[0]){case 0:case 1:i=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,n=d[1],d=[0];continue;
1260case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]<i[3])){t.label=d[1];break}if(d[0]===6&&t.label<i[1]){t.label=i[1],i=d;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(d);break}i[2]&&t.ops.pop(),t.trys.pop();continue}d=r.call(a,t)}catch(f){d=[6,f],n=0}finally{e=i=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},TL=function(a,r){var t={};for(var e in a)Object.prototype.hasOwnProperty.call(a,e)&&r.indexOf(e)<0&&(t[e]=a[e]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,e=Object.getOwnPropertySymbols(a);n<e.length;n++)r.indexOf(e[n])<0&&Object.prototype.propertyIsEnumerable.call(a,e[n])&&(t[e[n]]=a[e[n]]);return t},Ry=function(a,r,t){if(t||arguments.length===2)for(var e=0,n=r.length,i;e<n;e++)(i||!(e in r))&&(i||(i=Array.prototype.slice.call(r,0,e)),i[e]=r[e]);return a.concat(i||Array.prototype.slice.call(r))};Sp().$=De.default;var OL=[zE,dE,oA,yM,Ik,qO,gk,pL,ox,mA,dM,FA,TM,lS,uO,M8,nO,UM,WC,s3],EL=[s3,jO,EC,nE,fC,ox];d_({$:De.default});var By={debug:console.log,info:console.info,warning:console.warn,error:console.error},AL=(function(a){SL(r,a);function r(t){t===void 0&&(t={});var e=a.call(this)||this;e.Model=We,e.Collection=Rr,e.events=Nn,e.__skip=!1,e.defaultRunning=!1,e.loadTriggered=!1,e.destroyed=!1,e._isStoring=!1,e._config=t;var n=e.config;e.set("Config",t),e.set("modules",[]),e.set("toLoad",[]),e.set("storables",[]),e.set("selected",new p_),e.set("dmode",n.dragMode);var i=n.el,o=n.log,s=o===!0?(0,E.keys)(By):(0,E.isArray)(o)?o:[];return(0,E.bindAll)(e,"initBaseColorPicker"),i&&n.fromElement&&(n.components=i.innerHTML),e.attrsOrig=i?(0,E.toArray)(i.attributes).reduce(function(c,d){return c[d.nodeName]=d.nodeValue,c},{}):"",n.components&&!n.pageManager&&(n.pageManager={pages:[{component:n.components}]}),OL.forEach(function(c){return e.loadModule(c)}),EL.forEach(function(c){return e.loadStorableModule(c)}),e.on("change:componentHovered",e.componentHovered,e),e.on("change:changesCount",e.updateChanges,e),e.on("change:readyLoad change:readyCanvas",e._checkReady,e),s.forEach(function(c){return e.listenLog(c)}),[{from:"change:selectedComponent",to:te.toggled}].forEach(function(c){var d=c.from,f=c.to;e.listenTo(e,d,function(){for(var g=[],m=0;m<arguments.length;m++)g[m]=arguments[m];e.trigger.apply(e,Ry([f],g,!1)),e.logWarning("The event '".concat(d,"' is deprecated, replace it with '").concat(f,"'"))})}),e}return r.prototype.defaults=function(){return{editing:0,selected:0,clipboard:null,dmode:0,componentHovered:null,previousModel:null,changesCount:0,storables:[],modules:[],toLoad:[],opened:{},device:""}},Object.defineProperty(r.prototype,"storables",{get:function(){return this.get("storables")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"modules",{get:function(){return this.get("modules")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"toLoad",{get:function(){return this.get("toLoad")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"selected",{get:function(){return this.get("selected")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"shallow",{get:function(){return this.get("shallow")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"I18n",{get:function(){return this.get("I18n")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Utils",{get:function(){return this.get("Utils")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Commands",{get:function(){return this.get("Commands")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Plugins",{get:function(){return this.get("PluginManager")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Keymaps",{get:function(){return this.get("Keymaps")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Modal",{get:function(){return this.get("Modal")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Panels",{get:function(){return this.get("Panels")}
1260,enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"CodeManager",{get:function(){return this.get("CodeManager")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"UndoManager",{get:function(){return this.get("UndoManager")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"RichTextEditor",{get:function(){return this.get("RichTextEditor")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Canvas",{get:function(){return this.get("Canvas")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Editor",{get:function(){return this.get("Editor")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Components",{get:function(){return this.get("DomComponents")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Css",{get:function(){return this.get("CssComposer")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Blocks",{get:function(){return this.get("BlockManager")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Selectors",{get:function(){return this.get("SelectorManager")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Storage",{get:function(){return this.get("StorageManager")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Traits",{get:function(){return this.get("TraitManager")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Parser",{get:function(){return this.get("Parser")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Layers",{get:function(){return this.get("LayerManager")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Assets",{get:function(){return this.get("AssetManager")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Devices",{get:function(){return this.get("DeviceManager")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Pages",{get:function(){return this.get("PageManager")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Styles",{get:function(){return this.get("StyleManager")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"DataSources",{get:function(){return this.get("DataSources")},enumerable:!1,configurable:!0}),r.prototype.on=function(t,e,n){return a.prototype.on.call(this,t,e,n)},r.prototype.once=function(t,e,n){return a.prototype.once.call(this,t,e,n)},r.prototype.off=function(t,e,n){return a.prototype.off.call(this,t,e,n)},r.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return a.prototype.trigger.apply(this,Ry([t],e,!1))},r.prototype._checkReady=function(){this.get("readyLoad")&&this.get("readyCanvas")&&!this.get("ready")&&this.set("ready",!0)},r.prototype.getContainer=function(){return this.config.el},r.prototype.listenLog=function(t){var e=this;this.listenTo(this,"log:".concat(t),function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e.config.log){var o=By[t];o==null||o.apply(void 0,n)}})},Object.defineProperty(r.prototype,"config",{get:function(){return this._config},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"version",{get:function(){var t;return((t=this.config.grapesjs)===null||t===void 0?void 0:t.version)||""},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isHeadless",{get:function(){return!!this.config.headless},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isShallow",{get:function(){return!!this.get("isShallow")},enumerable:!1,configurable:!0}),r.prototype.initModules=function(){this.modules.forEach(function(t){return t.onInit()})},r.prototype.getConfig=function(t){var e=this.config;return(0,E.isUndefined)(t)?e:e[t]},r.prototype.loadOnStart=function(){var t=this,e=this.config,n=e.projectData,i=e.headless,o={initial:!0},s=this.Storage;this.toLoad.reverse().forEach(function(f){return f.onLoad()});var c=function(){t.modules.forEach(function(f){return f.postLoad&&f.postLoad(t)}),t.set("readyLoad",1)};i?(n&&this.loadData(n,o),c()):this._storageTimeout=setTimeout(function(){return tg(t,void 0,void 0,function(){var f;return eg(this,function(g){switch(g.label){case 0:return n?(this.loadData(n,o),[3,5]):[3,1];case 1:if(!(s!=null&&s.canAutoload()))return[3,5];g.label=2;case 2:return g.trys.push([2,4,,5]),[4,this.load({},o)];case 3:return g.sent(),[3,5];case 4:return f=g.sent(),this.logError(f),[3,5];case 5:return c(),[2]}})})});var d=new r({noticeOnUnload:!1,storageManager:!1,undoManager:!1});d.set({isShallow:!0}),d.Pages.onLoad(),d.Canvas.postLoad(),this.set("shallow",d)},r.prototype.updateChanges=function(t,e,n){var i=this,o=this.Storage,s=this.getDirtyCount();n.isClear||(this.updateItr&&clearTimeout(this.updateItr),this.updateItr=setTimeout(function(){return i.trigger(Nn.update)})),this.config.noticeOnUnload&&(window.onbeforeunload=s?function(){return!0}:null),o.isAutosave()&&s>
1260=o.getStepsBeforeSave()&&this.store().catch(function(c){return i.logError(c)})},r.prototype.loadModule=function(t){var e=new t(this);return this.set(e.name,e),e.onLoad&&this.toLoad.push(e),this.modules.push(e),e},r.prototype.loadStorableModule=function(t){var e=this.loadModule(t);return this.storables.push(e),e},r.prototype.init=function(t,e){e===void 0&&(e={}),this.destroyed&&(this.initialize(e),this.destroyed=!1),this.set("Editor",t)},r.prototype.getEditor=function(){return this.get("Editor")},r.prototype.handleUpdates=function(t,e){var n=this;t===void 0&&(t={}),!(this.__skip||!this.loadTriggered||t.temporary||t.noCount||t.avoidStore||t.partial)&&(this.trigger(this.events.updateBefore,e),this.timedInterval&&clearTimeout(this.timedInterval),this.timedInterval=setTimeout(function(){var i=n.getDirtyCount()||0;t.unset;var o=TL(t,["unset"]);n.set("changesCount",i+1,o)},0))},r.prototype.changesUp=function(t,e){this.handleUpdates(t,e)},r.prototype.componentHovered=function(t,e,n){var i=this.previous("componentHovered");i&&this.trigger(te.unhovered,i,n),e&&this.trigger(te.hovered,e,n)},r.prototype.getSelected=function(){return this.selected.lastComponent()},r.prototype.getSelectedAll=function(){return this.selected.allComponents()},r.prototype.setSelected=function(t,e){var n=this;e===void 0&&(e={});var i=e.event,o=i&&(i.ctrlKey||i.metaKey),s=(i||{}).shiftKey,c=((0,E.isArray)(t)?t:[t]).map(function(m){var y,x;return((x=(y=m==null?void 0:m.delegate)===null||y===void 0?void 0:y.select)===null||x===void 0?void 0:x.call(y,m))||m}).filter(Boolean),d=this.getSelectedAll(),f=this.getConfig().multipleSelection,g=(0,E.isArray)(t);(g||!t)&&this.removeSelected(d.filter(function(m){return!(0,E.contains)(c,m)})),c.forEach(function(m){if(m&&(n.trigger(te.selectBefore,m,e),!m.get("selectable")||e.abort))if(e.useValid){for(var y=m.parent();y&&!y.get("selectable");)y=y.parent();m=y}else return;if(o&&f)return n.toggleSelected(m);if(s&&f){if(n.isEditing())return;n.clearSelection(n.Canvas.getWindow());var x=m.collection,w=m.index(),k,S;if(n.getSelectedAll().forEach(function(A){var L=A.collection,D=A.index();L===x&&(D<w?k=(0,E.isUndefined)(k)?D:Math.max(k,D):D>w&&(S=(0,E.isUndefined)(S)?D:Math.min(S,D)))}),!(0,E.isUndefined)(k))for(;k!==w;)n.addSelected(x.at(k),e),k++;if(!(0,E.isUndefined)(S))for(;S!==w;)n.addSelected(x.at(S),e),S--;return n.addSelected(m,e)}!g&&n.removeSelected(d.filter(function(A){return A!==m})),n.addSelected(m,e)})},r.prototype.addSelected=function(t,e){var n=this;e===void 0&&(e={});var i=(0,E.isArray)(t)?t:[t];i.forEach(function(o){var s=n.selected;if(!(!o||!o.get("selectable")||o.parents().some(function(f){return s.hasComponent(f)}))){e.forceChange&&n.removeSelected(o,e);var c=s.allComponents().filter(function(f){return(0,E.contains)(f.parents(),o)});if(c.forEach(function(f){return n.removeSelected(f,e)}),s.addComponent(o,e),n.trigger(te.select,o,e),n.Canvas.addSpot({type:kn.Select,component:o}),e.activate){var d=o.getView();d!=null&&d.rendered?d.onActive(e.event):o.once(te.render,function(f){var g=f.view;return g.onActive(e.event)})}}})},r.prototype.removeSelected=function(t,e){var n=this;e===void 0&&(e={}),this.selected.removeComponent(t,e);var i=(0,E.isArray)(t)?t:[t];i.forEach(function(o){return n.Canvas.removeSpots({type:kn.Select,component:o})})},r.prototype.toggleSelected=function(t,e){var n=this;e===void 0&&(e={});var i=(0,E.isArray)(t)?t:[t];i.forEach(function(o){n.selected.hasComponent(o)?n.removeSelected(o,e):n.addSelected(o,e)})},r.prototype.setHovered=function(t,e){var n=this;e===void 0&&(e={});var i=function(s,c){var d=n,f=d.config,g=d.Canvas,m=n.getHovered(),y=n.getSelectedAll(),x=kn.Hover,w=kn.Spacing;n.set("componentHovered",s||null,c),m&&(g.removeSpots({type:x,component:m}),g.removeSpots({type:w,component:m})),s&&(g.addSpot({type:x,component:s}),(!y.includes(s)||f.showOffsetsSelected)&&g.addSpot({type:w,component:s}))};if(!t)return i();if(e.forceChange&&i(),this.trigger(te.hoverBefore,t,e),!t.get("hoverable"))if(e.useValid&&!e.abort){for(var o=t.parent();o&&!o.get("hoverable");)o=o.parent();t=o}else return;e.abort||(i(t,e),this.trigger(te.hover,t,e))},r.prototype.getHovered=function(){return this.get("componentHovered")},r.prototype.setComponents=function(t,e){return e===void 0&&(e={}),this.Components.setComponents(t,e)},r.prototype.getComponents=function(){var t=this.Components,e=this.CodeManager;if(!(!t||!e)){var n=t.getComponents();return e.getCode(n,"json")}},r.prototype.setStyle=function(t,e){e===void 0&&(e={});var n=this.Css;return n.clear(e),n.getAll().add(t,e),this},r.prototype.addStyle=function(t,e){e===void 0&&(e={});var n=this.getStyle().add(t,e);return(0,E.isArray)(n)?n:[n]},r.prototype.getStyle=function(){return this.Css.getAll()},r.prototype.setState=function(t){return this.set("state",t),this},r.prototype.getState=function(){return this.get("state")||""},r.prototype.getHtml=function(t){t===void 0&&(t={});var e=this.config,n=e.optsHtml,i=e.jsInHtml?this.getJs(t):"",o=t.component||this.Components.getComponent(),s=o?this.CodeManager.getCode(o,"html",ln(ln({},n),t)):"";return s+=i?"<script>".concat(i,"<\/script>"):"",s},r.prototype.getCss=function(t){t===void 0&&(t={});var e=this.config,n=e.optsCss,i=t.avoidProtected,o=(0,E.isUndefined)(t.keepUnusedStyles)?e.keepUnusedStyles:t.keepUnusedStyles,s=this.Css,c=t.component||this.Components.getComponent(),d=i?"":e.protectedCss||"",f=c&&this.CodeManager.getCode(c,"css",ln(ln({cssc:s,keepUnusedStyles:o},n),t));return c?t.json?f:d+f:""},r.prototype.getJs=function(t){t===void 0&&(t={});var e=t.component||this.Components.getWrapper();return e?this.CodeManager.getCode(e,"js").trim():""},r.prototype.store=function(t){return tg(this,void 0,void 0,function(){var e,n=this;return eg(this,function(i){switch(i.label){case 0:if(this._isStoring)return[2];this._isStoring=!0,setTimeout(function(){n.clearDirtyCount()},1),e=this.storeData(),i.label=1;case 1:return i.trys.push([1,,3,4]),[4,this.Storage.store(e,t)];case 2:return i.sent(),[2,e];case 3:return setTimeout(function(){n._isStoring=!1},1),[7];case 4:return[2]}})})},r.prototype.load=function(t){return tg(this,arguments,void 0,function(e,n){var i;return n===void 0&&(n={}),eg(this,function(o){switch(o.label){case 0:return[4,this.Storage.load(e)];case 1:return i=o.sent(),this.loadData(i,n),[4,ob()];case 2:return o.sent(),n.clear&&(this.UndoManager.clear(),this.clearDirtyCount()),[2,i]}})})},r.prototype.storeData=function(){var t={},e=this.getEditing();e&&e.trigger("sync:content",{noCount:!0}
1260),this.storables.forEach(function(i){t=ln(ln({},t),i.store(1))});var n=JSON.parse(JSON.stringify(t));return this.trigger(Nn.projectGet,{project:n}),n},r.prototype.loadData=function(t,e){t===void 0&&(t={}),e===void 0&&(e={});var n={project:t,options:e,initial:!!e.initial},i=!1;return so(t)||(this.storables.forEach(function(o){return o.clear()}),this.storables.forEach(function(o){return o.load(t)}),i=!0),this.trigger(Nn.projectLoad,ln(ln({},n),{loaded:i})),i&&this.trigger(Nn.projectLoaded,n),t},r.prototype.getDeviceModel=function(){var t=this.get("device");return this.Devices.get(t)},r.prototype.runDefault=function(t){t===void 0&&(t={});var e=this,n=e.Commands,i=e.config,o=i.defaultCommand,s=n.get(o);!s||this.defaultRunning||(n.stop(o,t),n.run(o,t),this.defaultRunning=!0)},r.prototype.stopDefault=function(t){t===void 0&&(t={});var e=this,n=e.Commands,i=e.config,o=i.defaultCommand,s=n==null?void 0:n.get(o);!s||!this.defaultRunning||(n.stop(o,t),this.defaultRunning=!1)},r.prototype.refreshCanvas=function(t){t===void 0&&(t={}),this.Canvas.refresh({spots:t.tools})},r.prototype.clearSelection=function(t){var e,n=t||window;(e=n.getSelection())===null||e===void 0||e.removeAllRanges()},r.prototype.getCurrentMedia=function(){var t=this.config,e=this.getDeviceModel(),n=t.mediaCondition,i=t.devicePreviewMode,o=e&&e.get("widthMedia");return e&&o&&!i?"(".concat(n,": ").concat(o,")"):""},r.prototype.getWrapper=function(){return this.Components.getWrapper()},r.prototype.setCurrentFrame=function(t){return this.set("currentFrame",t)},r.prototype.getCurrentFrame=function(){return this.get("currentFrame")},r.prototype.getCurrentFrameModel=function(){var t;return(t=this.getCurrentFrame()||{})===null||t===void 0?void 0:t.model},r.prototype.getIcon=function(t){var e=this.config.icons||{};return e[t]||""},r.prototype.getDirtyCount=function(){return this.get("changesCount")},r.prototype.clearDirtyCount=function(){return this.set({changesCount:0},{isClear:!0})},r.prototype.getZoomDecimal=function(){return this.Canvas.getZoomDecimal()},r.prototype.getZoomMultiplier=function(){return this.Canvas.getZoomMultiplier()},r.prototype.setDragMode=function(t){return this.set("dmode",t)},r.prototype.getDragMode=function(t){var e=(t==null?void 0:t.getDragMode())||this.get("dmode");return e||""},r.prototype.t=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.get("I18n");return n==null?void 0:n.t.apply(n,t)},r.prototype.inAbsoluteMode=function(t){return this.getDragMode(t)==="absolute"},r.prototype.destroyAll=function(){var t=this,e=this,n=e.config,i=e.view;this.trigger(Nn.destroy);var o=this.getEditor(),s=(n.grapesjs||{}).editors,c=s===void 0?[]:s,d=this.get("shallow");this._storageTimeout&&clearTimeout(this._storageTimeout),d==null||d.destroyAll(),this.stopListening(),this.stopDefault(),(this.modules||[]).slice().reverse().forEach(function(f){return f.destroy()}),i!=null&&i.remove&&i.remove(),this.clear({silent:!0}),this.destroyed=!0,["_config","view","_previousAttributes","_events","_listeners"].forEach(function(f){return t[f]={}}),c.splice(c.indexOf(o),1),Jr()&&(0,De.default)(n.el).empty().attr(this.attrsOrig),this.trigger(Nn.destroyed)},r.prototype.getEditing=function(){var t=this.get("editing");return t&&t.model||void 0},r.prototype.setEditing=function(t){return this.set("editing",t),this},r.prototype.isEditing=function(){return!!this.get("editing")},r.prototype.log=function(t,e){e===void 0&&(e={});var n=Nn.log,i=e.ns,o=e.level,s=o===void 0?"debug":o;if(this.trigger(n,t,e),s&&this.trigger("".concat(n,":").concat(s),t,e),i){var c="".concat(n,"-").concat(i);this.trigger(c,t,e),s&&this.trigger("".concat(c,":").concat(s),t,e)}},r.prototype.logInfo=function(t,e){this.log(t,ln(ln({},e),{level:"info"}))},r.prototype.logWarning=function(t,e){this.log(t,ln(ln({},e),{level:"warning"}))},r.prototype.logError=function(t,e){this.log(t,ln(ln({},e),{level:"error"}))},r.prototype.initBaseColorPicker=function(t,e){e===void 0&&(e={});var n=this.config,i=n.colorPicker,o=i===void 0?{}:i,s=n.el,c=n.stylePrefix;return(0,De.default)(t).spectrum(ln(ln({containerClassName:"".concat(c,"one-bg ").concat(c,"two-color"),appendTo:s||"body",maxSelectionSize:8,showPalette:!0,palette:[],showAlpha:!0,chooseText:"Ok",cancelText:"⨯"},e),o))},r.prototype.skip=function(t){this.__skip=!0;var e=this.UndoManager;e?e.skip(t):t(),this.__skip=!1},r.prototype.data=function(t,e,n){var i="_gjs-data";if(t[i]||(t[i]={}),(0,E.isUndefined)(n))return t[i][e];t[i][e]=n},r})(We);const ML=AL;function PL(){return window.location.hostname}
vendor: 1,430 bytes, line 1260
1260var LL=(function(){var a=function(r,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},a(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),DL=function(a,r,t,e){function n(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(f){try{d(e.next(f))}catch(g){o(g)}}function c(f){try{d(e.throw(f))}catch(g){o(g)}}function d(f){f.done?i(f.value):n(f.value).then(s,c)}d((e=e.apply(a,r||[])).next())})},IL=function(a,r){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},e,n,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(d){return function(f){return c([d,f])}}function c(d){if(e)throw new TypeError("Generator is already executing.");for(;o&&(o=0,d[0]&&(t=0)),t;)try{if(e=1,n&&(i=d[0]&2?n.return:d[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,d[1])).done)return i;switch(n=0,i&&(d=[d[0]&2,i.value]),d[0]){case 0:case 1:i=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,n=d[1],d=[0];continue;
1260case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]<i[3])){t.label=d[1];break}if(d[0]===6&&t.label<i[1]){t.label=i[1],i=d;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(d);break}i[2]&&t.ops.pop(),t.trys.pop();continue}d=r.call(a,t)}catch(f){d=[6,f],n=0}finally{e=i=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},jL=(function(a){LL(r,a);function r(t){var e=a.call(this,{model:t})||this,n=t.Panels,i=t.UndoManager;return t.view=e,t.once("change:ready",function(){n.active(),n.disableButtons(),t.getConfig().telemetry&&e.sendTelemetryData().catch(function(){}),setTimeout(function(){t.trigger(Nn.load,t.Editor),t.loadTriggered=!0,i.clear(),t.clearDirtyCount()})}),e}return r.prototype.render=function(){var t=this,e=this,n=e.$el,i=e.model,o=i.Panels,s=i.Canvas,c=i.config,d=i.modules,f=c.stylePrefix,g=["".concat(f,"editor")];!c.customUI&&g.push("".concat(f,"one-bg ").concat(f,"two-color"));var m=(0,De.default)(c.el||"body ".concat(c.container));c.cssIcons&&s1(c.cssIcons,{unique:!0,prepand:!0}),n.empty(),c.width&&m.css("width",c.width),c.height&&m.css("height",c.height),n.append(s.render()),n.append(o.render());var y=i.shallow,x=y.Canvas.render();return x.style.display="none",n.append(x),n.attr("class",g.join(" ")),m.addClass("".concat(f,"editor-cont")).empty().append(n),d.forEach(function(w){var k;return(k=w.postRender)===null||k===void 0?void 0:k.call(w,t)}),this},r.prototype.sendTelemetryData=function(){return DL(this,void 0,void 0,function(){var t,e,n,i,o,s,c,d;return IL(this,function(f){switch(f.label){case 0:return t=PL(),t==="localhost"||t.includes("localhost")?[2]:(e="gjs_telemetry_sent_",n=this.model.version,i="".concat(e).concat(n),sessionStorage.getItem(i)?[2]:(o="https://app.grapesjs.com",[4,fetch("".concat(o,"/api/gjs/telemetry/collect"),{method:"POST",body:JSON.stringify({domain:t,version:n})})]));case 1:return s=f.sent(),s.ok?[3,3]:(c=Error.bind,d="Failed to send telemetry data ".concat,[4,s.text()]);case 2:throw new(c.apply(Error,[void 0,d.apply("Failed to send telemetry data ",[f.sent()])]));case 3:return sessionStorage.setItem(i,"true"),Object.keys(sessionStorage).forEach(function(g){g.startsWith(e)&&g!==i&&sessionStorage.removeItem(g)}),this.trigger(Nn.telemetryInit),[2]}})})},r})(Ze);const NL=jL;var Wc=function(){return Wc=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},Wc.apply(this,arguments)},Vy=function(a,r,t,e){function n(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(f){try{d(e.next(f))}catch(g){o(g)}}function c(f){try{d(e.throw(f))}catch(g){o(g)}}function d(f){f.done?i(f.value):n(f.value).then(s,c)}d((e=e.apply(a,r||[])).next())})},Hy=function(a,r){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},e,n,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(d){return function(f){return c([d,f])}}function c(d){if(e)throw new TypeError("Generator is already executing.");for(;o&&(o=0,d[0]&&(t=0)),t;)try{if(e=1,n&&(i=d[0]&2?n.return:d[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,d[1])).done)return i;switch(n=0,i&&(d=[d[0]&2,i.value]),d[0]){case 0:case 1:i=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,n=d[1],d=[0];continue;
1260case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]<i[3])){t.label=d[1];break}if(d[0]===6&&t.label<i[1]){t.label=i[1],i=d;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(d);break}i[2]&&t.ops.pop(),t.trys.pop();continue}d=r.call(a,t)}catch(f){d=[6,f],n=0}finally{e=i=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},rg=function(a,r,t){if(t||arguments.length===2)for(var e=0,n=r.length,i;e<n;e++)(i||!(e in r))&&(i||(i=Array.prototype.slice.call(r,0,e)),i[e]=r[e]);return a.concat(i||Array.prototype.slice.call(r))},RL=(function(){function a(r,t){r===void 0&&(r={}),t===void 0&&(t={});var e;this.events=Nn,this.html=Gn;var n=c_();this.config=Wc(Wc(Wc({},n),r),{pStylePrefix:(e=r.stylePrefix)!==null&&e!==void 0?e:n.stylePrefix}),this.em=new ML(this.config),this.$=t.$,this.em.init(this),this.editor=this.em}return Object.defineProperty(a.prototype,"Config",{get:function(){return this.em.config},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"I18n",{get:function(){return this.em.I18n},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"Utils",{get:function(){return this.em.Utils},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"Commands",{get:function(){return this.em.Commands},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"Plugins",{get:function(){return this.em.Plugins},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"Keymaps",{get:function(){return this.em.Keymaps},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"Modal",{get:function(){return this.em.Modal},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"Panels",{get:function(){return this.em.Panels},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"Canvas",{get:function(){return this.em.Canvas},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"Parser",{get:function(){return this.em.Parser},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"CodeManager",{get:function(){return this.em.CodeManager},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"UndoManager",{get:function(){return this.em.UndoManager},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"RichTextEditor",{get:function(){return this.em.RichTextEditor},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"Pages",{get:function(){return this.em.Pages},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"Components",{get:function(){return this.em.Components},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"DomComponents",{get:function(){return this.em.Components},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"Layers",{get:function(){return this.em.Layers},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"LayerManager",{get:function(){return this.em.Layers},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"Css",{get:function(){return this.em.Css},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"CssComposer",{get:function(){return this.em.Css},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"Storage",{get:function(){return this.em.Storage},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"StorageManager",{get:function(){return this.em.Storage},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"Assets",{get:function(){return this.em.Assets},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"AssetManager",{get:function(){return this.em.Assets},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"Blocks",{get:function(){return this.em.Blocks},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"BlockManager",{get:function(){return this.em.Blocks},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"Traits",{get:function(){return this.em.Traits},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"TraitManager",{get:function(){return this.em.Traits}
1260,enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"Selectors",{get:function(){return this.em.Selectors},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"SelectorManager",{get:function(){return this.em.Selectors},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"Styles",{get:function(){return this.em.Styles},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"StyleManager",{get:function(){return this.em.Styles},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"Devices",{get:function(){return this.em.Devices},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"DeviceManager",{get:function(){return this.em.Devices},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"DataSources",{get:function(){return this.em.DataSources},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"EditorModel",{get:function(){return this.em},enumerable:!1,configurable:!0}),a.prototype.getConfig=function(r){return this.em.getConfig(r)},a.prototype.getHtml=function(r){return this.em.getHtml(r)},a.prototype.getCss=function(r){return this.em.getCss(r)},a.prototype.getJs=function(r){return this.em.getJs(r)},a.prototype.getComponents=function(){return this.Components.getComponents()},a.prototype.getWrapper=function(){return this.Components.getWrapper()},a.prototype.setComponents=function(r,t){return t===void 0&&(t={}),this.em.setComponents(r,t),this},a.prototype.addComponents=function(r,t){return this.getWrapper().append(r,t)},a.prototype.getStyle=function(){return this.em.Css.getAll()},a.prototype.setStyle=function(r,t){return t===void 0&&(t={}),this.em.setStyle(r,t),this},a.prototype.addStyle=function(r,t){return t===void 0&&(t={}),this.em.addStyle(r,t)},a.prototype.getSelected=function(){return this.em.getSelected()},a.prototype.getSelectedAll=function(){return this.em.getSelectedAll()},a.prototype.getSelectedToStyle=function(){var r=this.em.getSelected();if(r)return this.StyleManager.getModelToStyle(r)},a.prototype.select=function(r,t){return this.em.setSelected(r,t),this},a.prototype.selectAdd=function(r){return this.em.addSelected(r),this},a.prototype.selectRemove=function(r){return this.em.removeSelected(r),this},a.prototype.selectToggle=function(r){return this.em.toggleSelected(r),this},a.prototype.getEditing=function(){return this.em.getEditing()},a.prototype.setDevice=function(r){return this.em.set("device",r),this},a.prototype.getDevice=function(){return this.em.get("device")},a.prototype.runCommand=function(r){for(var t,e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return(t=this.Commands).run.apply(t,rg([r],e,!1))},a.prototype.stopCommand=function(r){for(var t,e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return(t=this.Commands).stop.apply(t,rg([r],e,!1))},a.prototype.store=function(r){return Vy(this,void 0,void 0,function(){return Hy(this,function(t){switch(t.label){case 0:return[4,this.em.store(r)];case 1:return[2,t.sent()]}})})},a.prototype.load=function(r){return Vy(this,arguments,void 0,function(t,e){return e===void 0&&(e={}),Hy(this,function(n){switch(n.label){case 0:return[4,this.em.load(t,e)];case 1:return[2,n.sent()]}})})},a.prototype.getProjectData=function(){return this.em.storeData()},a.prototype.loadProjectData=function(r,t){return t===void 0&&(t={}),this.em.loadData(r,t)},a.prototype.storeData=function(){return this.em.storeData()},a.prototype.loadData=function(r){return this.em.loadData(r)},a.prototype.getContainer=function(){return this.config.el},a.prototype.getDirtyCount=function(){return this.em.getDirtyCount()},a.prototype.clearDirtyCount=function(){return this.em.clearDirtyCount()},a.prototype.refresh=function(r){this.em.refreshCanvas(r)},a.prototype.setCustomRte=function(r){this.RichTextEditor.customRte=r},a.prototype.setCustomParserCss=function(r){return this.Parser.getConfig().parserCss=r,this},a.prototype.setDragMode=function(r){return this.em.setDragMode(r),this},a.prototype.log=function(r,t){return t===void 0&&(t={}),this.em.log(r,t),this},a.prototype.t=function(){for(var r,t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(r=this.em).t.apply(r,t)},a.prototype.on=function(r,t){return this.em.on(r,t),this},a.prototype.once=function(r,t){return this.em.once(r,t),this},a.prototype.off=function(r,t){return this.em.off(r,t),this},a.prototype.trigger=function(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return this.em.trigger.apply(this.em,rg([r],t,!0)),this},a.prototype.destroy=function(){this.em&&(this.em.destroyAll(),this.editorView=void 0)},a.prototype.getEl=function(){var r;return(r=this.editorView)===null||r===void 0?void 0:r.el},a.prototype.getModel=function(){return this.em},a.prototype.render=function(){var r;return(r=this.editorView)===null||r===void 0||r.remove(),this.editorView=new NL(this.em),this.editorView.render().el},a.prototype.onReady=function(r){this.em.get("ready")?r(this):this.em.on("load",r)},a})();const BL=RL,VL=(function(){var a=function(){for(var t,e=window.navigator.userAgent,n=[["edge",/Edge\/([0-9\._]+)/],["ie",/MSIE\s(7\.0)/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/]],i=0;i<n.length;i++){var o=n[i];if(t=o[1].exec(e),t)break}return!!t};
1260if(Jr()&&a()){var r=DOMImplementation.prototype.createHTMLDocument;DOMImplementation.prototype.createHTMLDocument=function(t){return t||(t=""),r.apply(document.implementation,[t])}}});var lp=function(){return lp=Object.assign||function(a){for(var r,t=1,e=arguments.length;t<e;t++){r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a[n]=r[n])}return a},lp.apply(this,arguments)};VL();var Fy=[],l3=HM,c3={$:De.default,editors:Fy,plugins:NM,usePlugin:l3,version:"0.23.6",init:function(a){var r;a===void 0&&(a={});var t=a.headless,e=a.container;if(!e&&!t)throw new Error("'container' is required");var n=lp(lp({autorender:!0,plugins:[],pluginsOpts:{}},a),{grapesjs:this,el:t?void 0:(0,E.isElement)(e)?e:document.querySelector(e)}),i=new BL(n,{$:De.default}),o=i.getModel();return o.initModules(),(r=n.plugins)===null||r===void 0||r.forEach(function(s){return i.Plugins.add(s)}),o.loadOnStart(),n.autorender&&!t&&i.render(),Fy.push(i),i}};const HL=c3;var FL=wp.Ay;wp.I0;wp.nu;function $L(a){a.Commands.add("show-blocks",{getRowEl(r){var t;return((t=r.getContainer())==null?void 0:t.closest(".editor-row"))??null},getLayersEl(r){return(r==null?void 0:r.querySelector(".blocks-container"))??null},run(r){const t=this.getLayersEl(this.getRowEl(r));t&&(t.style.display="")},stop(r){const t=this.getLayersEl(this.getRowEl(r));t&&(t.style.display="none")}})}function zL(a){a.Commands.add("show-layers",{getRowEl(r){var t;return((t=r.getContainer())==null?void 0:t.closest(".editor-row"))??null},getLayersEl(r){return(r==null?void 0:r.querySelector(".layers-container"))??null},run(r){const t=this.getLayersEl(this.getRowEl(r));t&&(t.style.display="")},stop(r){const t=this.getLayersEl(this.getRowEl(r));t&&(t.style.display="none")}})}function UL(a){a.Commands.add("show-styles",{getRowEl(r){var t;return((t=r.getContainer())==null?void 0:t.closest(".editor-row"))??null},getStyleEl(r){return(r==null?void 0:r.querySelector(".styles-container"))??null},run(r){const t=this.getStyleEl(this.getRowEl(r));t&&(t.style.display="")},stop(r){const t=this.getStyleEl(this.getRowEl(r));t&&(t.style.display="none")}})}function WL(a){a.Commands.add("show-traits",{getTraitsEl(r){var e;const t=((e=r.getContainer())==null?void 0:e.closest(".editor-row"))??null;return(t==null?void 0:t.querySelector(".traits-container"))??null},run(r){const t=this.getTraitsEl(r);t&&(t.style.display="")},stop(r){const t=this.getTraitsEl(r);t&&(t.style.display="none")}})}function ZL(a){a.Commands.add("set-device-desktop",{run:r=>{var t;return(t=r.setDevice)==null?void 0:t.call(r,"Desktop")}})}function qL(a){a.Commands.add("set-device-tablet",{run:r=>{var t;return(t=r.setDevice)==null?void 0:t.call(r,"Tablet")}})}function KL(a){a.Commands.add("set-device-mobile-landscape",{run:r=>{var t;return(t=r.setDevice)==null?void 0:t.call(r,"MobileLandscape")}})}function GL(a){a.Commands.add("set-device-mobile-portrait",{run:r=>{var t;return(t=r.setDevice)==null?void 0:t.call(r,"MobilePortrait")}})}function YL(a){a.Commands.add("show-settings",{getSettingsEl(r){var e;const t=((e=r.getContainer())==null?void 0:e.closest(".editor-row"))??null;return(t==null?void 0:t.querySelector(".settings-container"))??null},run(r){const t=this.getSettingsEl(r);t&&(t.style.display="block"),r.trigger("settings:show")},stop(r){const t=this.getSettingsEl(r);t&&(t.style.display="none"),r.trigger("settings:hide")}})}let XL=0;function JL(a){const r=`gjs-trait-tooltip-${++XL}`,t=document.createElement("button"),e=document.createElement("div");let n=!1;t.type="button",t.setAttribute("aria-label","Feldhilfe anzeigen"),t.setAttribute("aria-describedby",r),t.setAttribute("aria-expanded","false"),t.style.cssText="display:inline-flex;flex:0 0 auto;width:1.25rem;height:1.25rem;align-items:center;justify-content:center;padding:0;border:0;border-radius:0.125rem;background:transparent;color:#9ca3af;cursor:help;line-height:1;";const i=document.createElementNS("http://www.w3.org/2000/svg","svg");i.setAttribute("viewBox","0 0 24 24"),i.setAttribute("width","14"),i.setAttribute("height","14"),i.setAttribute("fill","none"),i.setAttribute("stroke","currentColor"),i.setAttribute("stroke-width","2"),i.setAttribute("stroke-linecap","round"),i.setAttribute("stroke-linejoin","round"),i.setAttribute("aria-hidden","true"),i.innerHTML='<circle cx="12" cy="12" r="10" /><path d="M12 16v-4" /><path d="M12 8h.01" />',t.append(i),e.id=r,e.textContent=a,e.hidden=!0,e.setAttribute("role","tooltip"),e.style.cssText="position:fixed;z-index:10000;box-sizing:border-box;max-width:20rem;padding:0.375rem 0.75rem;border:1px solid hsl(0 0% 89.8%);border-radius:0.375rem;background:var(--popover, hsl(0 0% 100%));color:var(--popover-foreground, hsl(0 0% 3.9%));box-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1),0 2px 4px -2px rgb(0 0 0 / 0.1);font-size:0.75rem;font-weight:normal;line-height:1.25rem;pointer-events:none;";const o=()=>{const c=t.getBoundingClientRect(),d=e.getBoundingClientRect(),f=8,g=Math.min(window.innerHeight-d.height-f,c.bottom+4),m=Math.max(f,Math.min(c.left,window.innerWidth-d.width-f));e.style.top=`${Math.max(f,g)}px`,e.style.left=`${m}px`},s=c=>{if(c!==n){if(n=c,t.setAttribute("aria-expanded",String(c)),c){e.hidden=!1,document.body.append(e),o();return}e.hidden=!0,e.remove()}};return t.addEventListener("click",c=>{c.preventDefault(),c.stopPropagation(),s(!0)}),t.addEventListener("focus",()=>s(!0)),t.addEventListener("blur",()=>s(!1)),t.addEventListener("mouseenter",()=>s(!0)),t.addEventListener("mouseleave",()=>{document.activeElement!==t&&s(!1)}),t.addEventListener("mouseenter",()=>{t.style.color="#4b5563"}),t.addEventListener("mouseleave",()=>{t.style.color="#9ca3af"}),t.addEventListener("keydown",c=>{c.key==="Escape"&&(s(!1),t.blur())}),t}const Ka="highlightSection",Ro="sectionDivider",Bo="sectionSpacingTop",Vo="sectionSpacingBottom",bc="data-pan",d3="click-tracking",ng="Für eine eindeutige Auswertung die Seite angeben. Für markenspezifisches Tracking einen Platzhalter wie {TITEL} verwenden. Klicks können über diese Kennung nicht nach Zeitraum gefiltert werden.",$y="data-os-section-divider-key",u3="data-os-output-id",zy="sectionSpacingY",QL="os-breadcrumb",ig={none:{top:[],bottom:[]},minimal:{top:["pt-0","md:pt-5"],bottom:["pb-0","md:pb-5"]},compact:{top:["pt-8","sm:pt-12","lg:pt-16"],bottom:["pb-8","sm:pb-12","lg:pb-16"]},standard:{top:["pt-12","sm:pt-16","lg:pt-20"],bottom:["pb-12","sm:pb-16","lg:pb-20"]},generous:{top:["pt-16","sm:pt-20","lg:pt-24"],bottom:["pb-16","sm:pb-20","lg:pb-24"]}};
1260function fd(a){return{type:"text",name:u3,label:"Id",...a?{category:a}:{}}}function pd(a){return{type:"text",name:"title",label:"Title",...a?{category:a}:{}}}function Mp(a){return{type:d3,name:bc,label:"Klick-Tracking",placeholder:"Seite-{TITEL}-Element",...a?{category:a}:{}}}function Pp(a,r,t){a.on("block:drag:stop",(e,n)=>{var s,c;if(!e||((s=n==null?void 0:n.getId)==null?void 0:s.call(n))!==r||((c=e.getId)==null?void 0:c.call(e))===t)return;const i=e.getId(),o=a.Components.getById(t);if(o&&o!==e){let d=`${i}-swap`,f=2;for(;a.Components.getById(d);)d=`${i}-swap-${f}`,f+=1;o.setId(d),e.setId(t),o.setId(i);return}e.setId(t)})}function hd(){return{type:"checkbox",name:Ka,label:"Highlight section",changeProp:!0}}function Lp(){return{type:"select",name:Ro,label:"Divider",changeProp:!0,options:[{id:"none",name:"Keiner"},{id:"top",name:"Oben"},{id:"bottom",name:"Unten"},{id:"both",name:"Oben und unten"}]}}function f3(a,r){return{type:"select",name:a,label:r,changeProp:!0,options:[{id:"none",name:"Keiner"},{id:"minimal",name:"Minimal"},{id:"compact",name:"Kompakt"},{id:"standard",name:"Standard"},{id:"generous",name:"GroÃzügig"}]}}function tD(){return f3(Bo,"Abstand oben")}function eD(){return f3(Vo,"Abstand unten")}function rD(a,r){const t="bg-slate-100 dark:bg-neutral-800",e="bg-surface-200 dark:bg-surface-100",n="text-slate-100 dark:text-neutral-800";let i=0;a.Traits.addType(d3,{createLabel({label:_}){const Q=document.createElement("span");Q.style.display="inline-flex",Q.style.alignItems="center",Q.style.gap="0.25rem",Q.style.whiteSpace="nowrap",Q.style.minWidth="0";const J=document.createElement("span");return J.textContent=String(_),Q.append(J,JL(ng)),requestAnimationFrame(()=>{const gt=Q.parentElement,St=gt==null?void 0:gt.parentElement,wt=Array.from((St==null?void 0:St.children)??[]).find(mt=>mt!==gt&&mt.querySelector("input"));!(gt instanceof HTMLElement)||!wt||(gt.style.setProperty("flex-basis","45%","important"),gt.style.setProperty("width","45%","important"),wt.style.setProperty("flex-basis","55%","important"),wt.style.setProperty("width","55%","important"),wt.style.setProperty("min-width","0"))}),Q},createInput({trait:_}){const Q=document.createElement("input");return Q.type="text",Q.placeholder=_.get("placeholder")||"",Q.title=ng,Q.setAttribute("aria-label",ng),Q},onEvent({component:_,event:Q,trait:J}){_.addAttributes({[J.getName()]:Q.target.value})},onUpdate({elInput:_,trait:Q}){_.value=Q.getValue()||""}});const o=_=>{var Q;try{const gt=(((Q=_==null?void 0:_.getAttributes)==null?void 0:Q.call(_))||{})["data-component-name"];gt&&_.set("name",String(gt))}catch{}},s=_=>{var Q;return(Q=_==null?void 0:_.view)==null?void 0:Q.el},c=_=>{var gt,St;if((((gt=_==null?void 0:_.getAttributes)==null?void 0:gt.call(_))||{})["data-component-name"])return!0;const J=s(_);return!!((St=J==null?void 0:J.hasAttribute)!=null&&St.call(J,"data-component-name"))},d=_=>{var J;const Q=(J=_==null?void 0:_.get)==null?void 0:J.call(_,"tagName");return typeof Q=="string"&&Q.length>0},f=_=>{var J;const Q=((J=_==null?void 0:_.getClasses)==null?void 0:J.call(_))||[];return Q.includes("bg-slate-100")&&Q.includes("dark:bg-neutral-800")},g=_=>{try{const Q=!!_.get(Ka);_.removeClass(e),Q?_.addClass(t):_.removeClass(t)}catch{}},m=_=>{var Q,J;if(c(_))try{((Q=_.getTrait)==null?void 0:Q.call(_,Ka))||(J=_.addTrait)==null||J.call(_,hd());const St=_.get(Ka)===!0||String(_.get(Ka))==="true"||f(_);_.set(Ka,St,{silent:!0}),_.off(`change:${Ka}`,g),_.on(`change:${Ka}`,g),g(_)}catch{}},y=_=>{var Q,J,gt;if(c(_))try{(Q=_.removeTrait)==null||Q.call(_,"id"),(J=_.getTrait)!=null&&J.call(_,u3)||(gt=_.addTrait)==null||gt.call(_,fd())}catch{}},x=_=>{var Q,J;if(c(_))try{(Q=_.getTrait)!=null&&Q.call(_,"title")||(J=_.addTrait)==null||J.call(_,pd())}catch{}},w=_=>{var Q,J,gt;try{const St=(J=(Q=_.getAttributes)==null?void 0:Q.call(_))==null?void 0:J[bc];if(St===void 0||String(St).trim())return;(gt=_.removeAttributes)==null||gt.call(_,bc)}catch{}},k=_=>{var Q,J,gt,St;if(d(_))try{(Q=_.getTrait)!=null&&Q.call(_,bc)||(J=_.addTrait)==null||J.call(_,Mp()),(gt=_.off)==null||gt.call(_,"change:attributes",w),(St=_.on)==null||St.call(_,"change:attributes",w),w(_)}catch{}},S=_=>{var St,wt;const J=(((St=_==null?void 0:_.getAttributes)==null?void 0:St.call(_))||{})[$y];if(J)return String(J);const gt=`os-section-divider-${++i}`;return(wt=_.addAttributes)==null||wt.call(_,{[$y]:gt}),gt},A=(_,Q)=>{const J=`os-section-zigzag-${++i}`;return{tagName:"div",draggable:!1,droppable:!1,copyable:!1,removable:!1,selectable:!1,hoverable:!1,layerable:!1,attributes:{"data-os-section-divider":_,"data-os-section-divider-for":S(Q),class:"relative left-1/2 w-screen -translate-x-1/2 bg-white dark:bg-dark-bg leading-none"},components:[{tagName:"svg",attributes:{class:`divider-zigzag block h-[10px] w-full sm:h-[12px] ${n}${_==="bottom"?" rotate-180":""}`,xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},components:[{tagName:"defs",components:[{tagName:"pattern",attributes:{id:J,width:"24",height:"12",patternUnits:"userSpaceOnUse"},components:[{tagName:"polygon",attributes:{points:"0,12 12,0 24,12",fill:"
1260currentColor"}}]}]},{tagName:"rect",attributes:{width:"100%",height:"100%",fill:`url(#${J})`}}]}]}},L=_=>{var Q,J,gt;return(gt=(J=(Q=_==null?void 0:_.parent)==null?void 0:Q.call(_))==null?void 0:J.components)==null?void 0:gt.call(J)},D=_=>{var Q;try{const J=S(_);return(((Q=L(_))==null?void 0:Q.models)||[]).filter(gt=>{var St,wt;return((wt=(St=gt.getAttributes)==null?void 0:St.call(gt))==null?void 0:wt["data-os-section-divider-for"])===J}).map(gt=>{var St,wt;return(wt=(St=gt.getAttributes)==null?void 0:St.call(gt))==null?void 0:wt["data-os-section-divider"]}).filter(gt=>gt==="top"||gt==="bottom")}catch{return[]}},W=_=>{var Q;try{return(((Q=_==null?void 0:_.components)==null?void 0:Q.call(_).models)||[]).map(J=>{var gt,St;return(St=(gt=J.getAttributes)==null?void 0:gt.call(J))==null?void 0:St["data-os-section-divider"]}).filter(J=>J==="top"||J==="bottom")}catch{return[]}},j=_=>{var Q;if(c(_))try{const J=String(_.get(Ro)||"none"),gt=J==="both"?["top","bottom"]:J==="top"||J==="bottom"?[J]:[],St=L(_);if(!St)return;const wt=S(_);if((((Q=_.components)==null?void 0:Q.call(_).models)||[]).slice().forEach(mt=>{var It,Bt;(Bt=(It=mt.getAttributes)==null?void 0:It.call(mt))!=null&&Bt["data-os-section-divider"]&&mt.remove()}),(St.models||[]).slice().forEach(mt=>{var It,Bt;((Bt=(It=mt.getAttributes)==null?void 0:It.call(mt))==null?void 0:Bt["data-os-section-divider-for"])===wt&&mt.remove()}),gt.includes("top")){const mt=(St.models||[]).indexOf(_);St.add(A("top",_),{at:Math.max(mt,0)})}if(gt.includes("bottom")){const mt=(St.models||[]).indexOf(_);St.add(A("bottom",_),{at:Math.max(mt+1,0)})}}catch{}},et=_=>{var Q,J;if(c(_))try{(Q=_.getTrait)!=null&&Q.call(_,Ro)||(J=_.addTrait)==null||J.call(_,Lp());const gt=D(_),St=W(_),wt=gt.length?gt:St,mt=wt.includes("top")&&wt.includes("bottom")?"both":wt.includes("top")?"top":wt.includes("bottom")?"bottom":"none",It=String(_.get(Ro)||"");_.set(Ro,It&&It!=="none"?It:mt,{silent:!0}),_.off(`change:${Ro}`,j),_.on(`change:${Ro}`,j),setTimeout(()=>j(_),0)}catch{}},z=_=>/^(?:sm:|md:|lg:|xl:|2xl:)?p[ytb]-/.test(_),B=(_,Q)=>{const J=String(_||"");return J in ig?J:Q},X=_=>{var gt,St;return((((gt=_.getAttributes)==null?void 0:gt.call(_))||{})["data-gjs-type"]||((St=_.get)==null?void 0:St.call(_,"type")))===QL?"minimal":"standard"},Z=_=>{var Q;if(c(_))try{const J=B(_.get(Bo),"standard"),gt=B(_.get(Vo),"standard"),St=(((Q=_.getClasses)==null?void 0:Q.call(_))||[]).filter(z);St.length&&_.removeClass(St.join(" "));const wt=[...ig[J].top,...ig[gt].bottom];wt.length&&_.addClass(wt.join(" "))}catch{}},F=_=>{var Q,J,gt,St,wt;if(c(_))try{(Q=_.getTrait)!=null&&Q.call(_,Bo)||(J=_.addTrait)==null||J.call(_,tD()),(gt=_.getTrait)!=null&>.call(_,Vo)||(St=_.addTrait)==null||St.call(_,eD());const mt=X(_),It=B(_.get(zy),mt),Bt=B(_.get(Bo),It),se=B(_.get(Vo),It);_.set({[Bo]:Bt,[Vo]:se},{silent:!0}),(wt=_.unset)==null||wt.call(_,zy,{silent:!0}),_.off(`change:${Bo}`,Z),_.on(`change:${Bo}`,Z),_.off(`change:${Vo}`,Z),_.on(`change:${Vo}`,Z),Z(_)}catch{}},st=_=>{var Q,J,gt,St;try{const wt=((Q=_==null?void 0:_.getAttributes)==null?void 0:Q.call(_))||{};if(wt["data-component-name"])return String(wt["data-component-name"]);if((J=_==null?void 0:_.get)!=null&&J.call(_,"name"))return String(_.get("name"));const mt=s(_),It=(mt==null?void 0:mt.tagName)||((gt=_==null?void 0:_.get)==null?void 0:gt.call(_,"tagName"))||((St=_==null?void 0:_.get)==null?void 0:St.call(_,"type"))||"",Bt=String(It).toLowerCase();return Bt?Bt.charAt(0).toUpperCase()+Bt.slice(1):""}catch{return""}},q=_=>{var Q,J;try{const gt=((Q=_==null?void 0:_.getAttributes)==null?void 0:Q.call(_))||{},St=st(_),wt=gt["data-component-version"]?String(gt["data-component-version"]):"",mt=wt?`${St||"Komponente"} [${wt}]`:St||"Komponente",Bt=(Array.isArray(_.get("toolbar"))?[..._.get("toolbar")]:[]).filter(Mt=>{var zt;return!((zt=Mt==null?void 0:Mt.attributes)!=null&&zt["data-os-toolbar"])}),se={attributes:{"data-os-toolbar":"label",class:"os-toolbar-label",style:"font-size: 12px; color: #fff; display: inline-block; width: auto; cursor: default; border-right: 1px solid #76abff;"},label:mt},ue=r.getToolbarItem(_),ne={attributes:{"data-os-toolbar":"parent",class:"os-toolbar-parent",title:"Parent Block auswählen"},label:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewB
1260ox="0 0 48 48"> <path d="M0 0h48v48H0z" fill="none" /> <defs> <mask id="SVGO7QlTCPD"> <g fill="none" stroke-linejoin="round" stroke-width="4"> <path fill="#fff" stroke="#fff" d="M36.686 15.171a15.4 15.4 0 0 1 2.529 6.102H44v5.454h-4.785a15.4 15.4 0 0 1-2.529 6.102l3.385 3.385l-3.857 3.857l-3.385-3.385a15.4 15.4 0 0 1-6.102 2.529V44h-5.454v-4.785a15.4 15.4 0 0 1-6.102-2.529l-3.385 3.385l-3.857-3.857l3.385-3.385a15.4 15.4 0 0 1-2.529-6.102H4v-5.454h4.785a15.4 15.4 0 0 1 2.529-6.102l-3.385-3.385l3.857-3.857l3.385 3.385a15.4 15.4 0 0 1 6.102-2.529V4h5.454v4.785a15.4 15.4 0 0 1 6.102 2.529l3.385-3.385l3.857 3.857z" /> <path fill="#000" stroke="#000" d="M24 29a5 5 0 1 0 0-10a5 5 0 0 0 0 10Z" /> </g> </mask> </defs> <path fill="currentColor" d="M0 0h48v48H0z" mask="url(#SVGO7QlTCPD)" /> </svg>',command:"os-select-parent-smart"},kt=_===a.getWrapper()||((J=_==null?void 0:_.get)==null?void 0:J.call(_,"type"))==="wrapper",Ot=[se,ue];_.set("toolbar",c(_)||kt?[...Ot,...Bt]:[...Ot,ne,...Bt])}catch{}},Ct=_=>{try{const Q=c(_),J=()=>{const gt=typeof document<"u"?document:null;gt&>.querySelectorAll(".gjs-toolbar").forEach(St=>{St.classList.toggle("selected-component-wrapper-toolbar",Q)})};typeof requestAnimationFrame=="function"?requestAnimationFrame(()=>setTimeout(J,0)):setTimeout(J,0)}catch{}};a.Commands.add("os-select-parent-smart",{run(_){var St,wt;const Q=_.getSelected();if(!Q)return;let J=(St=Q.parent)==null?void 0:St.call(Q),gt=J;for(;J;){if(c(J)){gt=J;break}J=(wt=J.parent)==null?void 0:wt.call(J)}gt&&_.select(gt)}}),a.on("component:add",_=>{o(_),y(_),x(_),k(_),m(_),et(_),F(_)}),a.on("component:attr",(_,Q)=>{Q===bc&&w(_),(Q==="data-component-name"||Q==="data-component-version")&&(o(_),a.getSelected()===_&&q(_))}),a.on("component:selected",_=>{q(_),Ct(_)}),a.on("component:deselected",()=>{try{const _=typeof document<"u"?document:null;_==null||_.querySelectorAll(".gjs-toolbar").forEach(Q=>{Q.classList.remove("selected-component-wrapper-toolbar")})}catch{}}),a.on("load",()=>{var _;try{(((_=a.getWrapper())==null?void 0:_.find("*"))||[]).forEach(Q=>{o(Q),y(Q),x(Q),k(Q),m(Q),et(Q),F(Q)})}catch{}})}function uu(a,r){var e;const t=((e=a.getAttributes)==null?void 0:e.call(a)[r.get("name")])??r.get("value")??"[]";try{return Array.isArray(t)?t.map(String).filter(Boolean):JSON.parse(String(t)).map(String).filter(Boolean)}catch{return String(t).split(",").map(n=>n.trim()).filter(Boolean)}}function Uy(a,r,t,e,n,i,o){const s=new Set(e),c=n.trim().toLocaleLowerCase("de-DE"),d=t.filter(f=>{const g=String(f.id??"");return g?s.has(g)||!c||`${g} ${f.name??""}`.toLocaleLowerCase("de-DE").includes(c):!1});r.textContent=i!==null?`${s.size} von maximal ${i} ausgewählt`:s.size===1?"1 ausgewählt":`${s.size} ausgewählt`,a.replaceChildren(...d.map(f=>{const g=String(f.id??""),m=s.has(g),y=i!==null&&s.size>=i&&!m,x=document.createElement("button");x.type="button",x.title=String(f.name??f.id??""),x.setAttribute("role","checkbox"),x.setAttribute("aria-checked",String(m)),x.setAttribute("aria-disabled",String(y)),x.style.cssText=`display:block;width:100%;box-sizing:border-box;padding:7px 8px 7px 11px;border:0;border-bottom:1px solid #e2e8f0;border-left:3px solid ${m?"#2563eb":"transparent"};background:${m?"#eff6ff":"#fff"};color:${y?"#94a3b8":"#0f172a"};cursor:${y?"not-allowed":"pointer"};text-align:left;font:inherit;`,x.addEventListener("click",()=>{if(y)return;const k=x.getAttribute("aria-checked")!=="true",S=new Set(s);k?S.add(g):S.delete(g),x.setAttribute("aria-checked",String(k)),x.style.borderLeftColor=k?"#2563eb":"transparent",x.style.backgroundColor=k?"#eff6ff":"#fff",r.textContent=i!==null?`${S.size} von maximal ${i} ausgewählt`:S.size===1?"1 ausgewählt":`${S.size} ausgewählt`,o(g,k)});const w=document.createElement("span");return w.textContent=String(f.name??f.id??""),w.style.cssText="display:block;min-width:0;overflow-wrap:anywhere;font-size:12px;line-height:1.35;font-style:normal;",x.append(w),x}))}function E1(a){var t,e;const r=a.TraitManager;r&&((t=r.getType)!=null&&t.call(r,"offer-search-select")||r.addType("offer-search-select",{createInput({trait:n,component:i}){const o=document.createElement("div");o.style.cssText="display:grid;gap:0;";const s=document.createElement("input");s.type="search",s.placeholder=n.get("searchPlaceholder")||"ID oder FOM-ID suchenâ¦",s.setAttribute("aria-label",n.get("searchLabel")||"Angebote filtern"),s.style.cssText="width:100%;padding:6px 8px;border:1px solid #cbd5e1;border-bottom:0;border-radius:4px 4px 0 0;font-size:12px;";const c=document.createElement("select");c.size=5,c.style.cssText="width:100%;min-height:108px;padding:4px;border:1px solid #cbd5e1;border-radius:4px;font-size:12px;";const d=()=>n.get("options")||[],f=()=>{var m;return String(((m=i.getAttributes)==null?void 0:m.call(i)[n.get("name")])??n.get("value")??"")},g=()=>{const m=s.value.trim().toLocaleLowerCase("de-DE"),y=f();c.replaceChildren(),d().filter(x=>!m||`${x.id??""} ${x.name??""}
1260`.toLocaleLowerCase("de-DE").includes(m)).forEach(x=>{const w=document.createElement("option");w.value=String(x.id??""),w.textContent=String(x.name??x.id??""),w.selected=w.value===y,c.appendChild(w)})};return s.addEventListener("input",g),c.addEventListener("change",()=>{i.addAttributes({[n.get("name")]:c.value})}),o.append(s,c),g(),o},onUpdate({elInput:n,component:i,trait:o}){var m;const s=n.querySelector('input[type="search"]'),c=n.querySelector("select");if(!s||!c)return;const d=String(((m=i.getAttributes)==null?void 0:m.call(i)[o.get("name")])??""),g=(o.get("options")||[]).filter(y=>!s.value||`${y.id??""} ${y.name??""}`.toLocaleLowerCase("de-DE").includes(s.value.toLocaleLowerCase("de-DE")));c.replaceChildren(...g.map(y=>{const x=document.createElement("option");return x.value=String(y.id??""),x.textContent=String(y.name??y.id??""),x.selected=x.value===d,x}))}}),!((e=r.getType)!=null&&e.call(r,"offer-search-multi-select"))&&r.addType("offer-search-multi-select",{createInput({trait:n,component:i}){const o=document.createElement("div");o.style.cssText="display:grid;gap:6px;";const s=document.createElement("input");s.type="search",s.placeholder=n.get("searchPlaceholder")||"ID oder FOM-ID suchenâ¦",s.setAttribute("aria-label",n.get("searchLabel")||"Angebote filtern"),s.style.cssText="width:100%;padding:6px 8px;border:1px solid #cbd5e1;border-radius:4px;font-size:12px;";const c=document.createElement("span");c.setAttribute("data-offer-search-selection-count",""),c.style.cssText="padding-top:5px;font-size:11px;color:#64748b;";const d=String(n.get("note")||"").trim(),f=d?document.createElement("span"):null;f&&(f.textContent=d,f.style.cssText="font-size:11px;line-height:1.4;color:#64748b;");const g=document.createElement("div");g.setAttribute("data-offer-search-checklist",""),g.setAttribute("role","group"),g.setAttribute("aria-label",n.get("selectionLabel")||"Angebote auswählen"),g.style.cssText="max-height:240px;overflow-x:hidden;overflow-y:auto;border:1px solid #cbd5e1;border-radius:0 0 4px 4px;";const m=()=>n.get("options")||[],y=Number(n.get("maxSelections")),x=Number.isInteger(y)&&y>0?y:null,w=()=>{Uy(g,c,m(),uu(i,n),s.value,x,(k,S)=>{const A=new Set(uu(i,n));S?A.add(k):A.delete(k),i.addAttributes({[n.get("name")]:JSON.stringify(Array.from(A))})})};return s.addEventListener("input",w),o.append(s,g,c),f&&o.append(f),w(),o},onUpdate({elInput:n,component:i,trait:o}){const s=n.querySelector('input[type="search"]'),c=n.querySelector("[data-offer-search-checklist]"),d=n.querySelector("[data-offer-search-selection-count]");if(!s||!c||!d)return;const f=Number(o.get("maxSelections")),g=Number.isInteger(f)&&f>0?f:null;Uy(c,d,o.get("options")||[],uu(i,o),s.value,g,(m,y)=>{const x=new Set(uu(i,o));y?x.add(m):x.delete(m),i.addAttributes({[o.get("name")]:JSON.stringify(Array.from(x))})})}}))}const nD='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><rect x="20" y="36" width="360" height="58" rx="8" fill="#e5e7eb"/><rect x="42" y="54" width="156" height="9" rx="4.5" fill="#9ca3af"/><rect x="42" y="70" width="104" height="6" rx="3" fill="#b2b2b2"/><rect x="26" y="116" width="226" height="70" rx="8" fill="#f3f4f6"/><circle cx="57" cy="151" r="15" fill="#9ca3af"/><rect x="82" y="136" width="105" height="8" rx="4" fill="#9ca3af"/><rect x="82" y="153" width="138" height="6" rx="3" fill="#d3d3d3"/><rect x="26" y="202" width="226" height="70" rx="8" fill="#f3f4f6"/><circle cx="57" cy="237" r="15" fill="#b2b2b2"/><rect x="82" y="222" width="105" height="8" rx="4" fill="#9ca3af"/><rect x="82" y="239" width="138" height="6" rx="3" fill="#d3d3d3"/><rect x="26" y="288" width="226" height="70" rx="8" fill="#f3f4f6"/><circle cx="57" cy="323" r="15" fill="#b2b2b2"/><rect x="82" y="308" width="105" height="8" rx="4" fill="#9ca3af"/><rect x="82" y="325" width="138" height="6" rx="3" fill="#d3d3d3"/><rect x="274" y="116" width="100" height="242" rx="8" fill="#e5e7eb"/><rect x="292" y="138" width="62" height="8" rx="4" fill="#9ca3af"/><rect x="292" y="168" width="42" height="6" rx="3" fill="#b2b2b2"/><rect x="292" y="184" width="62" height="6" rx="3" fill="#b2b2b2"/><rect x="292" y="214" width="42" height="6" rx="3" fill="#b2b2b2"/><rect x="292" y="230" width="62" height="6" rx="3" fill="#b2b2b2"/><rect x="292" y="270" width="62" height="28" rx="14" fill="#9ca3af"/></svg>',iD=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 160 160"><path fill="#333" d="M110.7 15.9H27c-2 0-3.6 1.6-3.6 3.6v112.9c0 2 1.6 3.6 3.6 3.6h83.7c2 0 3.6-1.6 3.6-3.6V19.5c0-2-1.6-3.6-3.6-3.6M68.8 131.1c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5m41.9-9.7H27V19.5h83.7z"/><path fill="#fff" d="M27 19.5h83.7v101.9H27z"/><g fill="#333"><path d="M52.6 63.5h-17c-.8 0-1.5.7-1.5 1.5v16.8c0 .8.7 1.5 1.5 1.5h17c.9 0 1.6-.7 1.6-1.6V64.9c0-.9-.7-1.6-1.6-1.6ZM103 64.6c0 .6-.5 1.1-1.1 1.1H61.6c-.6 0-1.1-.5-1.1-1.1s.5-1.1 1.1-1.1h40.3c.6 0 1.1.5 1.1 1.1M103 70.5c0 .6-.5 1.1-1.1 1.1H61.6c-.6 0-1.1-.5-1.1-1.1s.5-1.1 1.1-1.1h40.3c.6 0 1.1.5 1.1 1.1M88.5 82.4c0 .6-.5 1.1-1.1 1.1H61.7c-.6 0-1.1-.5-1.1-1.1s.5-1.1 1.1-1.1h25.7c.6 0 1.1.5 1.1 1.1M103 76.5c0 .6-.5 1.1-1.1 1.1H61.6c-.6 0-1.1-.5-1.1-1.1s.5-1.1 1.1-1.1h40.3c.6 0 1.1.5 1.1 1.1"/></g><g fill="#333"><path d="M64.2 95c0 .6-.5 1.1-1.1 1.1H35.2c-.6 0-1.1-.5-1.1-1.1s.5-1.1 1.1-1.1h27.9c.6 0 1.1.5 1.1 1.1M64.2 100.8c0 .6-.5 1.1-1.1 1.1H35.2c-.6 0-1.1-.5-1.1-1.1s.5-1.1 1.1-1.1h27.9c.6 0 1.1.5 1.1 1.1M64.2 112.4c0 .6-.5 1.1-1.1 1.1H35.2c-.6 0-1.1-.5-1.1-1.1s.5-1.1 1.1-1.1h27.9c.6 0 1.1.5 1.1 1.1M64.2 106.6c0 .6-.5 1.1-1.1 1.1H35.2c-.6 0-1.1-.5-1.1-1.1s.5-1.1 1.1-1.1h27.9c.6 0 1.1.5 1.1 1.1"/></g><g fill="#333"><path d="M74 96.1h27.9c.6 0 1.1-.5 1.1-1.1s-.5-1.1-1.1-1.1H74c-.6 0-1.1.5-1.1 1.1s.5 1.1 1.1 1.1M101.9 99.7H74c-.6 0-1.1.5-1.1 1.1s.5 1.1 1.1 1.1h27.9c.6 0 1.1-.5 1.1-1.1s-.5-1.1-1.1-1.1M101.9 111.3H74c-.6 0-1.1.5-1.1 1.1s.5 1.1 1.1 1.1h27.9c.6 0 1.1-.5 1.1-1.1s-.5-1.1-1.1-1.1M101.9 105.5
1260H74c-.6 0-1.1.5-1.1 1.1s.5 1.1 1.1 1.1h27.9c.6 0 1.1-.5 1.1-1.1s-.5-1.1-1.1-1.1"/></g><path fill="currentColor" d="M103 29v21.3c0 1-.8 1.8-1.8 1.8H35.9c-1 0-1.8-.8-1.8-1.8V28.7c.1-.9.9-1.5 1.8-1.5h65.3c.9 0 1.6.7 1.8 1.5z"/><circle cx="68.8" cy="128.6" r="2.5" fill="#f2f2f2" transform="rotate(-89.3 68.803 128.572)"/><path fill="#fff" d="M89.7 62.3h44v79.4h-44z"/><path fill="#333" d="M136.6 76.9v-5.8c0-.2-.2-.3-.3-.3v-8.4c0-1.4-1.1-2.6-2.6-2.6h-44c-1.4 0-2.6 1.1-2.6 2.6v9.5c-.2 0-.3.3-.3.8V86c0 .4.1.7.3.8V142c0 1.4 1.2 2.6 2.6 2.6h44c1.4 0 2.6-1.1 2.6-2.6V86.8q.3 0 .3-.3v-5.8c0-.2-.2-.3-.3-.3v-2.8q.3 0 .3-.3Zm-2.8 64.8h-44V62.3h11.4c0 1 .8 1.8 1.8 1.8h17.6c1 0 1.7-.8 1.7-1.8h11.6v79.4Z"/><rect width="13.7" height="14" x="95.1" y="93.3" fill="#333" rx="1.1" ry="1.1"/><path fill="#333" d="M107.8 107.3H96.2c-.6 0-1.1-.5-1.1-1.1V94.4c0-.6.5-1.1 1.1-1.1h11.6c.6 0 1.1.5 1.1 1.1v11.8c0 .6-.5 1.1-1.1 1.1m-11.6-14c-.5 0-1 .5-1 1v11.8c0 .6.4 1 1 1h11.6c.5 0 1-.5 1-1V94.3c0-.6-.4-1-1-1z"/><g fill="#333"><path d="M128 95h-13.9c-.4 0-.8-.4-.8-.8s.4-.8.8-.8H128c.4 0 .8.4.8.8s-.4.8-.8.8M128 99.1h-13.9c-.4 0-.8-.4-.8-.8s.4-.8.8-.8H128c.4 0 .8.4.8.8s-.4.8-.8.8M117.4 107.3h-3.3c-.4 0-.8-.4-.8-.8s.3-.8.8-.8h3.3c.4 0 .8.4.8.8s-.3.8-.8.8M128 103.2h-13.9c-.4 0-.8-.4-.8-.8s.4-.8.8-.8H128c.4 0 .8.4.8.8s-.4.8-.8.8"/></g><path fill="#333" d="M128 116.2H95.5c-.4 0-.8-.4-.8-.8s.3-.8.8-.8H128c.4 0 .8.4.8.8s-.3.8-.8.8M128 120.2H95.5c-.4 0-.8-.4-.8-.8s.3-.8.8-.8H128c.4 0 .8.4.8.8s-.3.8-.8.8M128 128.4H95.5c-.4 0-.8-.4-.8-.8s.3-.8.8-.8H128c.4 0 .8.4.8.8s-.3.8-.8.8M128 124.3H95.5c-.4 0-.8-.4-.8-.8s.3-.8.8-.8H128c.4 0 .8.4.8.8s-.3.8-.8.8"/><path fill="#333" d="M128 128.4H95.5c-.4 0-.8-.4-.8-.8s.3-.8.8-.8H128c.4 0 .8.4.8.8s-.3.8-.8.8M118.1 136.6H95.4c-.4 0-.8-.4-.8-.8s.3-.8.8-.8h22.7c.4 0 .8.4.8.8s-.3.8-.8.8M128 132.5H95.5c-.4 0-.8-.4-.8-.8s.3-.8.8-.8H128c.4 0 .8.4.8.8s-.3.8-.8.8"/><rect width="33.3" height="17.6" x="95.1" y="67.7" fill="currentColor" rx="1.3" ry="1.3"/></svg> 1261`,aD=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 160 160"><path fill="#fff" d="M131 34.7V116c-.1.8-.5 1.5-.9 2.1-.4.5-.9 1-1.5 1.3-.7.4-1.6.7-2.5.7H30.7V34.7s0-.1.1-.1h100s.1 0 .1.1Z"/><path fill="#333" d="M130.9 30.9h-100c-2.1 0-3.8 1.7-3.8 3.8v14.6h-8.8c-2 0-3.6 1.6-3.6 3.6v62.5c0 4.5 3.7 8.2 8.2 8.2h103.2c3.2 0 6-1.7 7.5-4.3.2-.4.4-.9.6-1.3.2-.7.4-1.4.5-2.1V34.7c0-2.1-1.7-3.8-3.8-3.8M27.1 120h-4.3c-2.5 0-4.6-2-4.6-4.6V52.9H27V120Zm3.6 0V34.7s0-.1.1-.1h100s.1 0 .1.1V116c-.1.8-.5 1.5-.9 2.1-.4.5-.9 1-1.5 1.3-.7.4-1.6.7-2.5.7H30.7Z"/><path fill="#fff" d="M27.1 53v67.1h-4.3c-2.5 0-4.6-2-4.6-4.6V53H27Z"/><rect width="23.6" height="23.6" x="40.2" y="86" fill="#333" rx="1.8" ry="1.8"/><path fill="#333" d="M120.3 88.4H72.9c-.7 0-1.3-.6-1.3-1.3s.6-1.3 1.3-1.3h47.4c.7 0 1.3.6 1.3 1.3s-.6 1.3-1.3 1.3M120.3 95.3H72.9c-.7 0-1.3-.6-1.3-1.3s.6-1.3 1.3-1.3h47.4c.7 0 1.3.6 1.3 1.3s-.6 1.3-1.3 1.3M103.1 109.1H72.8c-.7 0-1.3-.6-1.3-1.3s.6-1.3 1.3-1.3h30.3c.7 0 1.3.6 1.3 1.3s-.6 1.3-1.3 1.3M120.3 102.2H72.9c-.7 0-1.3-.6-1.3-1.3s.6-1.3 1.3-1.3h47.4c.7 0 1.3.6 1.3 1.3s-.6 1.3-1.3 1.3"/><rect width="81.4" height="29.5" x="40.2" y="44.2" fill="currentColor" rx="1.8" ry="1.8"/><path fill="#fff" d="M106.4 61H143v66h-36.6z"/><path fill="#333" d="M145.4 73.1v-4.8q0-.3-.3-.3v-7c0-1.2-.9-2.1-2.1-2.1h-36.6c-1.2 0-2.1.9-2.1 2.1v7.9c-.2 0-.3.3-.3.6v11c0 .3.1.6.3.6v45.8c0 1.2 1 2.1 2.1 2.1H143c1.2 0 2.1-1 2.1-2.1V81.1q.3 0 .3-.3v-4.9q0-.3-.3-.3v-2.3q.3 0 .3-.3ZM143 127h-36.6V61h9.5c0 .8.7 1.5 1.5 1.5H132c.8 0 1.4-.7 1.4-1.5h9.6z"/><rect width="11.4" height="11.6" x="110.8" y="86.7" fill="#333" rx=".9" ry=".9"/><path fill="#333" d="M121.4 98.4h-9.7c-.5 0-.9-.4-.9-.9v-9.8c0-.5.4-.9.9-.9h9.7c.5 0 .9.4.9.9v9.8c0 .5-.4.9-.9.9m-9.7-11.6c-.5 0-.8.4-.8.8v9.8c0 .5.4.8.8.8h9.7c.5 0 .8-.4.8-.8v-9.8c0-.5-.4-.8-.8-.8z"/><g fill="#333"><path d="M138.2 88.1h-11.5c-.4 0-.7-.3-.7-.7s.3-.7.7-.7h11.5c.4 0 .7.3.7.7s-.3.7-.7.7M138.2 91.5h-11.5c-.4 0-.7-.3-.7-.7s.3-.7.7-.7h11.5c.4 0 .7.3.7.7s-.3.7-.7.7M129.4 98.3h-2.7c-.4 0-.6-.3-.6-.7s.3-.7.6-.7h2.7c.4 0 .6.3.6.7s-.3.7-.6.7M138.2 94.9h-11.5c-.4 0-.7-.3-.7-.7s.3-.7.7-.7h11.5c.4 0 .7.3.7.7s-.3.7-.7.7"/></g><path fill="#333" d="M138.2 105.7h-27c-.4 0-.6-.3-.6-.7s.3-.7.6-.7h27c.4 0 .6.3.6.7s-.3.7-.6.7M138.2 109.1h-27c-.4 0-.6-.3-.6-.7s.3-.7.6-.7h27c.4 0 .6.3.6.7s-.3.7-.6.7M138.2 115.9h-27c-.4 0-.6-.3-.6-.7s.3-.7.6-.7h27c.4 0 .6.3.6.7s-.3.7-.6.7M138.2 112.5h-27c-.4 0-.6-.3-.6-.7s.3-.7.6-.7h27c.4 0 .6.3.6.7s-.3.7-.6.7"/><path fill="#333" d="M138.2 115.9h-27c-.4 0-.6-.3-.6-.7s.3-.7.6-.7h27c.4 0 .6.3.6.7s-.3.7-.6.7M130 122.7h-18.8c-.4 0-.6-.3-.6-.7s.3-.7.6-.7H130c.4 0 .6.3.6.7s-.3.7-.6.7M138.2 119.3h-27c-.4 0-.6-.3-.6-.7s.3-.7.6-.7h27c.4 0 .6.3.6.7s-.3.7-.6.7"/><rect width="27.7" height="14.6" x="110.8" y="65.4" fill="currentColor" rx="1.1" ry="1.1"/></svg> 1262`,oD=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 160 160"><path fill="#333" d="M115.1 39.8H44.9c-1.7 0-3 1.4-3 3v94.8c0 1.7 1.4 3 3 3h70.2c1.7 0 3-1.4 3-3V42.8c0-1.7-1.4-3-3-3M80 136.5c-1.2 0-2.1-.9-2.1-2.1s.9-2.1 2.1-2.1 2.1.9 2.1 2.1-.9 2.1-2.1 2.1m35.1-8.2H44.9V42.8h70.2z"/><path fill="#fff" d="M44.9 42.8h70.2v85.5H44.9z"/><g fill="#333">
1262<path d="M66.4 79.7H52.1c-.7 0-1.3.6-1.3 1.3v14.1c0 .7.6 1.3 1.3 1.3h14.3c.7 0 1.3-.6 1.3-1.4V80.9c0-.7-.6-1.4-1.3-1.4ZM108.7 80.7c0 .5-.4.9-.9.9H74c-.5 0-.9-.4-.9-.9s.4-.9.9-.9h33.8c.5 0 .9.4.9.9M108.7 85.7c0 .5-.4.9-.9.9H74c-.5 0-.9-.4-.9-.9s.4-.9.9-.9h33.8c.5 0 .9.4.9.9M96.5 95.6c0 .5-.4.9-.9.9H74c-.5 0-.9-.4-.9-.9s.4-.9.9-.9h21.6c.5 0 .9.4.9.9M108.7 90.6c0 .5-.4.9-.9.9H74c-.5 0-.9-.4-.9-.9s.4-.9.9-.9h33.8c.5 0 .9.4.9.9"/></g><g fill="#333"><path d="M76.1 106.2c0 .5-.4.9-.9.9H51.8c-.5 0-.9-.4-.9-.9s.4-.9.9-.9h23.4c.5 0 .9.4.9.9M76.1 111c0 .5-.4.9-.9.9H51.8c-.5 0-.9-.4-.9-.9s.4-.9.9-.9h23.4c.5 0 .9.4.9.9M76.1 120.8c0 .5-.4.9-.9.9H51.7c-.5 0-.9-.4-.9-.9s.4-.9.9-.9h23.5c.5 0 .9.4.9.9M76.1 115.9c0 .5-.4.9-.9.9H51.8c-.5 0-.9-.4-.9-.9s.4-.9.9-.9h23.4c.5 0 .9.4.9.9"/></g><g fill="#333"><path d="M84.3 107.1h23.5c.5 0 .9-.4.9-.9s-.4-.9-.9-.9H84.3c-.5 0-.9.4-.9.9s.4.9.9.9M107.8 110.1H84.3c-.5 0-.9.4-.9.9s.4.9.9.9h23.5c.5 0 .9-.4.9-.9s-.4-.9-.9-.9M107.8 119.8H84.3c-.5 0-.9.4-.9.9s.4.9.9.9h23.5c.5 0 .9-.4.9-.9s-.4-.9-.9-.9M107.8 115H84.3c-.5 0-.9.4-.9.9s.4.9.9.9h23.5c.5 0 .9-.4.9-.9s-.4-.9-.9-.9"/></g><path fill="currentColor" d="M108.7 50.8v17.9c0 .8-.7 1.5-1.5 1.5H52.4c-.8 0-1.5-.7-1.5-1.5V50.6c.1-.7.8-1.3 1.5-1.3h54.8c.8 0 1.4.5 1.5 1.3z"/><circle cx="80" cy="134.3" r="2.1" fill="#f2f2f2" transform="rotate(-89.3 80.007 134.34)"/><path fill="#fff" d="M76.1 49h7.8v91.6h-7.8z"/><path fill="currentColor" d="M102.3 24.4c-1.4-2.4-3.8-4.1-6.5-4.7-3.3-.7-6.7.2-9.1 2.6L80 28.7l-6.7-6.4c-2.4-2.3-5.9-3.3-9.1-2.6-2.7.6-5.1 2.3-6.5 4.7s-1.8 5.3-1 8v.2c1.3 4.3 5.3 7.2 9.7 7.2h11v100.9h5.1v-101h11c4.4 0 8.4-3 9.7-7.2v-.2c.8-2.7.5-5.6-.9-8Zm-27 10.2h-8.9c-2.2 0-4.1-1.5-4.8-3.5v-.2c-.5-1.3-.3-2.7.4-3.9s1.8-2 3.2-2.3c1.6-.4 3.3.1 4.5 1.3l6.5 6.3c.3.3.4.7.4 1 0 .7-.6 1.4-1.4 1.4Zm23.1-3.7v.2c-.7 2.1-2.6 3.5-4.8 3.5h-8.9c-1.3 0-1.9-1.6-1-2.5l6.5-6.3c1.2-1.1 2.9-1.6 4.5-1.3 1.4.3 2.5 1.1 3.2 2.3s.9 2.6.5 3.9Z"/></svg> 1263`,Dp=[{label:"Willkommensprämie",title:"Willkommensprämie",description:"Beschreibung folgt.",productIds:["printed-digital","digital","tablet"]},{label:"Gedruckte Zeitung",title:"Gedruckte Zeitung",description:"Beschreibung folgt.",productIds:["printed-digital"]},{label:"Digitale Zeitung",title:"Digitale Zeitung",description:"Beschreibung folgt.",productIds:["printed-digital","digital","tablet"]},{label:"{product}",title:"{product}",description:"Beschreibung folgt.",productIds:["printed-digital","digital","tablet"]},{label:"Unterhaltung",title:"Unterhaltung",description:"Beschreibung folgt.",productIds:["printed-digital","digital","tablet"]}];function ag(a){return Dp.filter(r=>r.productIds.includes(a)).map(r=>r.label)}const sD="size-15 sm:size-12 shrink-0 mx-auto mb-3 text-brand-primary-500";function og(a){return a.replace("<svg ",'<svg class="'+sD+'" ')}const Vu={premium:og(aD),digital:og(iD),tablet:og(oD)},A1={"printed-digital":{id:"printed-digital",label:"Gedruckt & digital",selectionLabel:"Premium-Abo",icon:Vu.premium,benefits:ag("printed-digital")},digital:{id:"digital",label:"Rein digital",selectionLabel:"Digital-Paket",icon:Vu.digital,benefits:ag("digital")},tablet:{id:"tablet",label:"Tablet-Abo",selectionLabel:"Digital-Paket inkl. Tablet",icon:Vu.tablet,benefits:ag("tablet")}},Fi={premium:{productId:"printed-digital",delivery:"Montag bis Samstag"},hybrid_sa:{productId:"printed-digital",delivery:"Nur Samstag"},hybrid_fr_sa:{productId:"printed-digital",delivery:"Freitag bis Samstag"},digital:{productId:"digital",delivery:null},digital_hw:{productId:"tablet",delivery:null}},cr="data-aboconfigurator",_v="53",lD="2.1.3",p3="Vertriebliche Elemente - Content - Abo-Konfigurator",h3=`${cr}-popular-product`,Cv=`${cr}-excluded-options`,xl="data-abo-configurator-copy",Ip="data-abo-configurator-copy-container",cD=`[${Ip}="wrap"]`,Wy={badgable:!1,copyable:!1,draggable:!1,droppable:!1,editable:!1,highlightable:!1,hoverable:!1,layerable:!1,removable:!1,resizable:!1,selectable:!1,stylable:!1,toolbar:[]},gd=A1;function dD(a){a.Config.canvasCss+=` 1264 [data-component-id="${_v}"] [data-abo-delivery-step], 1265 [data-component-id="${_v}"] [data-abo-step-content] { 1266 display: block !important; 1267 } 1268 `}function Qa(a){return String(a??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Zy(a){return a.startsWith("{")&&a.endsWith("}")}function uD(a){var t,e,n;let r=(t=a==null?void 0:a.parent)==null?void 0:t.call(a);for(;r;){if(((e=r.get)==null?void 0:e.call(r,"type"))==="abo-konfigurator")return!0;r=(n=r.parent)==null?void 0:n.call(r)}return!1}function fD(a){var r;return!!((r=a==null?void 0:a.getAttributes)!=null&&r.call(a)[xl])}function pD(a){var r;return((r=a==null?void 0:a.getAttributes)==null?void 0:r.call(a)[Ip])==="wrap"}function hD(a){var r;
1268(r=a.unset)==null||r.call(a,"toolbar"),a.set({badgable:!1,copyable:!1,draggable:cD,droppable:!1,editable:!0,highlightable:!0,hoverable:!0,layerable:!0,removable:!0,resizable:!1,selectable:!0,stylable:!1})}function Zc(a){var r,t;if(uD(a)){if(fD(a)){hD(a);return}if(pD(a)){a.set({...Wy,droppable:`[${xl}]`}),(r=a.components)==null||r.call(a).forEach(Zc);return}a.set(Wy),(t=a.components)==null||t.call(a).forEach(Zc)}}function g3(a,r,t=""){return` 1269 data-track-v2-parentposition="Content" 1270 data-track-v2-parent="${p3}" 1271 data-track-v2-parentlabel="OS - Vertrieb" 1272 data-track-v2-elementposition="${a}" 1273 data-track-v2-elementtype="Button" 1274 data-track-v2-vendor="Internal" 1275 data-track-v2-link="${t}" 1276 data-track-v2-linktype="External" 1277 data-track-v2-linkgenre="" 1278 data-track-v2-clickaction="${r}"`}function sg(){const a=typeof window<"u"?window.__grapesOffers||[]:[],r=Array.isArray(a)?a:Object.values(a),t={},e={};return r.forEach(n=>{n&&([n.id,n.key].forEach(i=>{i!=null&&String(i)!==""&&!t[String(i)]&&(t[String(i)]=n)}),n.item_id&&(e[n.item_id]=[...e[n.item_id]??[],n]))}),Object.entries(e).forEach(([n,i])=>{i.length===1&&(t[n]=i[0])}),t}function gD(){const a=typeof window<"u"?window.__grapesOffers||[]:[],r=Array.isArray(a)?a:Object.values(a),t=new Set;return[{id:"",name:"â Angebot auswählen â"},...r.filter(e=>(e==null?void 0:e.id)!=null&&!t.has(String(e.id))&&(t.add(String(e.id)),!0)).map(e=>{var o,s,c;const n=as(e.type),i=((o=e.fom_waks)==null?void 0:o.map(d=>d.wak).filter(Boolean).join(", "))||"â";return{id:String(e.id),name:`#${e.id} · FOM-ID: ${i} · ${((s=gd[Np(n)])==null?void 0:s.label)||n||"Unbekannter Produkttyp"} · ${e.unique_name||e.title||e.key||"Angebot"} · ${((c=e.campaign)==null?void 0:c.name)||"Ohne Kampagne"}`}})]}function v3(a,r){const t=String(r.selection_key||"").trim(),e=t?`selection:${t}`:`id:${r.id}`;return JSON.stringify([String(a.id),e])}function vD(a,r){return JSON.stringify([String(a.id),String(r)])}function mD(a){try{const r=JSON.parse(a[Cv]||"[]");return new Set(Array.isArray(r)?r.map(String):[])}catch{return new Set}}function m3(a,r){return(a.checkout_options??[]).filter(t=>t.is_available!==!1&&![v3(a,t),vD(a,t.id)].some(e=>r.has(e)))}function yD(a){const r=new Set;return a.flatMap(t=>(t.checkout_options??[]).filter(e=>e.id!=null&&e.is_available!==!1).map(e=>{var d,f,g;const n=v3(t,e),i=as(t.type),o=((d=gd[Np(i)])==null?void 0:d.label)||i||"Unbekannter Produkttyp",s=t.duration_months?`${t.duration_months} ${t.duration_unit||"Monate"}`:"Ohne Mindestlaufzeit",c=((f=e.bonus_details)==null?void 0:f.external_name)||((g=e.bonus_details)==null?void 0:g.bonus_name)||e.label||"Ohne Zusatzprämie";return{id:n,name:`#${t.id} · ${o} · ${s} · ${c}`}}).filter(e=>!r.has(e.id)&&(r.add(e.id),!0)))}function as(a){return String(a||"").trim().toLowerCase()}function jp(a){return a.replace(/[^a-z0-9]+/gi,"-").replace(/^-|-$/g,"")||"other"}function Np(a){var r;return((r=Fi[a])==null?void 0:r.productId)||a}function Ho(a){return`${cr}-product-${jp(a)}-order`}function qc(a,r,t){const e=Number(a[Ho(r)]);return Number.isInteger(e)&&e>0?e:t}function bD(a,r,t){return r.map((e,n)=>{const i=n+1,o=r.find((c,d)=>qc(t,c.id,d+1)===i),s=o&&o.id!==a.id?` (tauscht mit ${o.label})`:"";return{id:String(i),name:`Position ${i}${s}`}})}function xD(a){return Object.entries(Fi).filter(([,r])=>r.productId===a).map(([r])=>r)}function wD(a){return xD(a)[0]||a}function _D(a){const r=a[h3];return r!==void 0?String(r):Object.keys(gd).find(t=>String(a[`${cr}-product-${jp(wD(t))}-badge`]||"").trim()!=="")||""}function CD(a){var n;if(typeof a=="number")return Number.isFinite(a)?a:null;const r=(n=String(a??"").match(/-?\d[\d.,]*/))==null?void 0:n[0];if(!r)return null;const t=r.includes(",")?r.replace(/\./g,"").replace(",","."):r,e=Number(t);return Number.isFinite(e)?e:null}function kD(a,r=new Set){const t=[];return a.forEach(e=>{const n=m3(e,r);(n.length>0?n:[null]).forEach(o=>{const s=(o==null?void 0:o.price_display)||e.price_display||"",c=CD((o==null?void 0:o.price_numeric)??e.price_numeric??s);s&&c!==null&&t.push({amount:c,display:s,unit:e.duration_unit})})}),t.sort((e,n)=>n.amount-e.amount)[0]||null}function SD(a="month"){const r={hour:"pro Stunde",day:"pro Tag",week:"pro Woche",month:"pro Monat"};return r[a??"month"]??r.month}
1278function TD(a){if(!a)return"";const r=a.display.match(/^ab\s+(.+)$/i),t="aktuell",e=r?r[1]:a.display;return`<div data-abo-product-price class="mb-4 text-center text-2xl font-black text-slate-900 dark:text-white sm:text-3xl"><span class="block text-sm font-medium text-slate-600 dark:text-slate-300 sm:text-base">${t}</span><span class="block">${Qa(e)}</span><span class="block text-sm font-medium text-slate-600 dark:text-slate-300 sm:text-base">${SD(a.unit)}</span></div>`}function lg(a){const r=a[`${cr}-offers`];if(r)try{const t=JSON.parse(r);if(Array.isArray(t))return[...new Set(t.map(String).filter(Boolean))]}catch{return[...new Set(r.split(",").map(t=>t.trim()).filter(Boolean))]}return["a","b","c"].map(t=>String(a[`${cr}-product-${t}`]||"").trim()).filter(Boolean)}function cg(a,r){const t=new Map;return r.filter(e=>as(e.type)).forEach(e=>{const n=Np(as(e.type));t.has(n)||t.set(n,e)}),[...t.keys()].map((e,n)=>({id:e,index:n,order:qc(a,e,n+1)})).sort((e,n)=>e.order-n.order||e.index-n.index).map(({id:e})=>{var s;const n=gd[e],i=String(a[`${cr}-product-${jp(e)}-name`]||"").trim(),o=String(((s=t.get(e))==null?void 0:s.title)||"").trim();return{id:e,label:i||(n==null?void 0:n.selectionLabel)||o||(n==null?void 0:n.label)||"Produkt",icon:(n==null?void 0:n.icon)||'<iconify-icon icon="material-symbols:subscriptions-outline" class="text-4xl text-brand-primary-500" aria-hidden="true"></iconify-icon>',benefits:(n==null?void 0:n.benefits)||["Attraktive Inhalte","Flexibel lesen"]}})}function OD(a){const r=a.id in gd?a.id:null;return(r?Dp.map(e=>({label:e.label,included:e.productIds.includes(r)})):a.benefits.map(e=>({label:e,included:!0}))).map(e=>` 1279 <li class="flex items-start gap-3 text-sm text-slate-700 dark:text-slate-300"> 1280 <iconify-icon icon="${e.included?"material-symbols:check":"material-symbols:close"}" class="${e.included?"text-green-500":"text-red-500"} mt-0.5 font-bold shrink-0" style="font-size:18px" aria-hidden="true"></iconify-icon> 1281 <span>${Qa(e.label)}</span> 1282 </li>`).join("")}function ED(a,r,t,e,n,i){const o=a.icon;return` 1283 <button type="button" 1284 data-abo-action="product" 1285 data-abo-product-id="${Qa(a.id)}" 1286 data-abo-product-type="${Qa(a.id)}" 1287 data-abo-product-label="${Qa(a.label)}" 1288 data-abo-product-offers="${Qa(JSON.stringify(r))}" 1289 data-abo-product-offer-mapping="${Qa(JSON.stringify(t))}" 1290 ${g3(i,"select_item")} 1291 role="radio" 1292 aria-checked="false" 1293 class="relative flex h-full min-h-full cursor-pointer flex-col rounded-lg border border-slate-200 bg-white p-6 text-left shadow-sm transition-shadow duration-300 hover:border-brand-primary-500 hover:shadow-md focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-primary-500 dark:border-dark-border dark:bg-dark-surface"> 1294 ${n?'<span class="absolute -top-3 left-1/2 -translate-x-1/2 whitespace-nowrap rounded-full bg-brand-primary-500 px-4 py-1 text-[10px] font-bold uppercase tracking-widest text-brand-contrast shadow-sm">Beliebt</span>':""} 1295 <div data-abo-product-card-header> 1296 <div>${o}</div> 1297 <h3 class="text-center font-serif text-2xl font-bold text-slate-900 dark:text-white">${Qa(a.label)}</h3> 1298 </div> 1299 <div data-abo-product-card-body> 1300 <ul class="my-6 space-y-2 border-y border-slate-100 py-5 dark:border-dark-border">${OD(a)}</ul> 1301 ${TD(e)} 1302 </div> 1303 <div data-abo-product-card-footer class="mt-auto"> 1304 <span class="inline-flex w-full items-center justify-center rounded-full border-2 border-brand-primary-500 px-5 py-3 text-sm font-bold text-brand-primary-500" aria-hidden="true">Auswählen</span> 1305 </div> 1306 <span data-abo-product-radio-wrap class="absolute right-3 top-3 flex h-6 w-6 items-center justify-center rounded-full border-2 border-slate-300 bg-white dark:border-dark-border dark:bg-dark-surface" aria-hidden="true"><span data-abo-product-radio class="hidden h-2.5 w-2.5 rounded-full bg-brand-primary-500"></span></span> 1307 </button>`}function AD(){return` 1308 <div ${Ip}="wrap" class="text-center max-w-3xl mx-auto mb-10 sm:mb-12 reveal"> 1309 <h2 ${xl}="headline" class="font-serif text-3xl sm:text-4xl md:text-5xl font-bold text-slate-900 dark:text-white mb-4">Stellen Sie Ihr Wunschabo zusammen</h2> 1310 <p ${xl}
1310="subline" class="text-slate-600 dark:text-dark-muted text-base sm:text-lg max-w-[65ch] mx-auto">Wählen Sie Produkt, Laufzeit und anschlieÃend die passende Prämie.</p> 1311 <div class="mx-auto mt-7 max-w-2xl"> 1312 <div class="mb-2 flex justify-between text-xs font-bold uppercase tracking-wide text-slate-500 dark:text-slate-400"> 1313 <span data-abo-progress-label>Schritt 1 von 3</span> 1314 <span data-abo-progress-percent>0 %</span> 1315 </div> 1316 <div class="h-2 overflow-hidden rounded-full bg-slate-200 dark:bg-dark-border"> 1317 <div data-abo-progress-bar class="h-full w-[6%] rounded-full bg-brand-primary-500 transition-[width] duration-300"></div> 1318 </div> 1319 </div> 1320 </div> 1321 <div class="grid items-start gap-8 lg:grid-cols-[minmax(0,1fr)_320px]"> 1322 <div class="space-y-5"> 1323 <section class="rounded-lg border border-slate-200 bg-white shadow-sm dark:border-dark-border dark:bg-dark-surface"> 1324 <h3> 1325 <button type="button" data-abo-step-toggle="product" aria-expanded="true" class="flex w-full cursor-pointer items-center justify-between gap-4 rounded-lg p-5 text-left hover:bg-slate-50 dark:hover:bg-neutral-800 sm:p-6"> 1326 <span class="flex items-center gap-4"> 1327 <span data-abo-step-number="product" class="flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-brand-primary-500 font-bold text-brand-contrast">1</span> 1328 <span><span class="block text-lg font-bold text-slate-900 dark:text-white">Produkt wählen</span><span class="mt-0.5 block text-xs font-medium text-slate-500 dark:text-slate-400">Wie möchten Sie lesen?</span></span> 1329 </span> 1330 <span data-abo-step-summary="product" class="hidden max-w-40 truncate text-sm font-bold text-brand-primary-500"></span> 1331 </button> 1332 </h3> 1333 <div data-abo-step-content="product" class="border-t border-slate-100 p-5 pt-8 dark:border-dark-border sm:p-7 sm:pt-10"> 1334 <div data-abo-product-grid="wrap" class="grid gap-5 md:grid-cols-2 xl:grid-cols-3"></div> 1335 </div> 1336 </section> 1337 <section data-abo-delivery-step class="hidden rounded-lg border border-slate-200 bg-white shadow-sm dark:border-dark-border dark:bg-dark-surface"> 1338 <h3> 1339 <button type="button" data-abo-step-toggle="delivery" aria-expanded="false" disabled class="flex w-full cursor-pointer items-center justify-between gap-4 rounded-lg p-5 text-left disabled:cursor-not-allowed disabled:opacity-55 hover:bg-slate-50 dark:hover:bg-neutral-800 sm:p-6"> 1340 <span class="flex items-center gap-4"> 1341 <span data-abo-step-number="delivery" class="flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-slate-300 font-bold text-slate-700 dark:bg-dark-border dark:text-slate-300">2</span> 1342 <span><span class="block text-lg font-bold text-slate-900 dark:text-white">Liefertage wählen</span><span class="mt-0.5 block text-xs font-medium text-slate-500 dark:text-slate-400">Wann soll Ihre gedruckte Zeitung geliefert werden?</span></span> 1343 </span> 1344 <span data-abo-step-summary="delivery" class="hidden max-w-40 truncate text-sm font-bold text-brand-primary-500"></span> 1345 </button> 1346 </h3> 1347 <div data-abo-step-content="delivery" class="hidden border-t border-slate-100 p-5 dark:border-dark-border sm:p-7"> 1348 <div data-abo-delivery-grid="wrap" class="grid gap-4 sm:grid-cols-2"></div> 1349 </div> 1350 </section> 1351 ${y3()} 1352 <section class="rounded-lg border border-slate-200 bg-white shadow-sm dark:border-dark-border dark:bg-dark-surface"> 1353 <h3> 1354 <button type="button" data-abo-step-toggle="option" aria-expanded="false" disabled class="flex w-full cursor-pointer items-center justify-between gap-4 roun
1354ded-lg p-5 text-left disabled:cursor-not-allowed disabled:opacity-55 hover:bg-slate-50 dark:hover:bg-neutral-800 sm:p-6"> 1355 <span class="flex items-center gap-4"> 1356 <span data-abo-step-number="option" class="flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-slate-300 font-bold text-slate-700 dark:bg-dark-border dark:text-slate-300">3</span> 1357 <span><span class="block text-lg font-bold text-slate-900 dark:text-white">Prämie wählen</span><span class="mt-0.5 block text-xs font-medium text-slate-500 dark:text-slate-400">Wählen Sie Ihre Wunschprämie.</span></span> 1358 </span> 1359 <span data-abo-step-summary="option" class="hidden max-w-40 truncate text-sm font-bold text-brand-primary-500"></span> 1360 </button> 1361 </h3> 1362 <div data-abo-step-content="option" class="hidden border-t border-slate-100 p-5 dark:border-dark-border sm:p-7"> 1363 <div data-abo-option-grid="wrap" class="grid gap-4 sm:grid-cols-2"></div> 1364 </div> 1365 </section> 1366 <div class="lg:hidden" data-abo-summary-mobile></div> 1367 </div> 1368 <aside data-abo-summary-desktop class="hidden lg:block"></aside> 1369 </div> 1370 `}function y3(){return` 1371 <section class="rounded-lg border border-slate-200 bg-white shadow-sm dark:border-dark-border dark:bg-dark-surface"> 1372 <h3> 1373 <button type="button" data-abo-step-toggle="duration" aria-expanded="false" disabled class="flex w-full cursor-pointer items-center justify-between gap-4 rounded-lg p-5 text-left disabled:cursor-not-allowed disabled:opacity-55 hover:bg-slate-50 dark:hover:bg-neutral-800 sm:p-6"> 1374 <span class="flex items-center gap-4"> 1375 <span data-abo-step-number="duration" class="flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-slate-300 font-bold text-slate-700 dark:bg-dark-border dark:text-slate-300">2</span> 1376 <span><span class="block text-lg font-bold text-slate-900 dark:text-white">Laufzeit wählen</span><span class="mt-0.5 block text-xs font-medium text-slate-500 dark:text-slate-400">Längere Laufzeit, höhere Prämie.</span></span> 1377 </span> 1378 <span data-abo-step-summary="duration" class="hidden max-w-40 truncate text-sm font-bold text-brand-primary-500"></span> 1379 </button> 1380 </h3> 1381 <div data-abo-step-content="duration" class="hidden border-t border-slate-100 p-5 dark:border-dark-border sm:p-7"> 1382 <div data-abo-duration-grid="wrap" class="grid gap-4 sm:grid-cols-2"></div> 1383 </div> 1384 </section>`}function qy(a){return` 1385 <div class="${a?"rounded-lg border border-slate-200 bg-white shadow-sm dark:border-dark-border dark:bg-dark-surface":"sticky top-6 rounded-lg border border-slate-200 bg-white shadow-sm dark:border-dark-border dark:bg-dark-surface"}"> 1386 <div class="border-b border-slate-100 px-5 py-4 dark:border-dark-border"> 1387 <h3 class="flex items-center gap-2 font-serif text-lg font-bold text-slate-900 dark:text-white"><iconify-icon icon="material-symbols:receipt-long-outline" class="text-brand-primary-500" aria-hidden="true"></iconify-icon> Abo-Zusammenfassung</h3> 1388 </div> 1389 <div class="p-5"> 1390 <div data-abo-summary-image class="hidden mb-5 overflow-hidden rounded-lg bg-slate-100 dark:bg-neutral-800"><img class="h-36 w-full object-contain" alt=""></div> 1391 <dl class="space-y-4 text-sm"> 1392 <div class="flex justify-between gap-4 border-b border-slate-100 pb-3 dark:border-dark-border"><dt class="text-slate-500 dark:text-slate-400">Produkt</dt><dd data-abo-summary-field="product" class="text-right font-bold text-slate-900 dark:text-white">Noch nicht gewählt</dd></div> 1393 <div data-abo-summary-delivery-row class="hidden justify-between gap-4 border-b border-slate-100 pb-3 dark:border-dark-border"><dt class="text-slate-500 dark:text-slate-400">
1393Liefertage</dt><dd data-abo-summary-field="delivery" class="text-right font-bold text-slate-900 dark:text-white">Noch nicht gewählt</dd></div> 1394 <div class="flex justify-between gap-4 border-b border-slate-100 pb-3 dark:border-dark-border"><dt class="text-slate-500 dark:text-slate-400">Laufzeit</dt><dd data-abo-summary-field="duration" class="text-right font-bold text-slate-900 dark:text-white">â</dd></div> 1395 <div class="flex justify-between gap-4"><dt class="text-slate-500 dark:text-slate-400">Prämie</dt><dd data-abo-summary-field="option" class="text-right font-bold text-slate-900 dark:text-white">Noch nicht gewählt</dd></div> 1396 </dl> 1397 <div class="mt-5 rounded-lg bg-slate-100 p-4 dark:bg-neutral-800"><span class="block text-xs font-bold uppercase tracking-wide text-slate-500 dark:text-slate-400">Monatspreis</span><strong data-abo-summary-field="price" class="mt-1 block text-2xl font-black text-slate-900 dark:text-white">â</strong></div> 1398 <a href="#" data-abo-cta ${g3(99,"add_to_cart","#")} class="pointer-events-none mt-5 flex w-full cursor-pointer items-center justify-center rounded-full bg-brand-primary-500 px-5 py-3 text-center font-bold no-underline text-brand-contrast opacity-50">Auswahl vervollständigen</a> 1399 <p data-abo-warning class="mt-3 text-center text-xs text-slate-500 dark:text-slate-400">Wählen Sie zuerst ein Produkt und eine Prämie.</p> 1400 </div> 1401 </div> 1402 <div class="mt-4 flex justify-center"> 1403 <button type="button" data-abo-reset class="inline-flex cursor-pointer items-center gap-2 rounded-lg px-3 py-2 text-sm font-bold text-slate-500 hover:bg-slate-200 hover:text-slate-900 dark:text-slate-400 dark:hover:bg-neutral-800 dark:hover:text-white"> 1404 <iconify-icon icon="material-symbols:restart-alt" aria-hidden="true"></iconify-icon> Auswahl zurücksetzen 1405 </button> 1406 </div>`}function MD(a){E1(a),dD(a),a.DomComponents.addType("abo-konfigurator-container",{isComponent(t){var e;return((e=t==null?void 0:t.getAttribute)==null?void 0:e.call(t,`${cr}-container`))==="wrap"?{type:"abo-konfigurator-container"}:!1},model:{defaults:{tagName:"div",draggable:!1,droppable:!1,copyable:!1,editable:!1,highlightable:!1,hoverable:!1,layerable:!1,removable:!1,resizable:!1,selectable:!1,stylable:!1,toolbar:[],wide_content:!1,attributes:{[`${cr}-container`]:"wrap",class:"mx-auto px-4 sm:px-6 max-w-[960px] animate-fade-in"}},init(){this.on("change:wide_content",this.handleWideContentChange),this.handleWideContentChange()},handleWideContentChange(){const t=!!this.get("wide_content"),e=this.getAttributes()||{},n=String(e.class||"").split(/\s+/).filter(i=>i&&!i.startsWith("max-w-"));n.push(t?"max-w-[1280px]":"max-w-[960px]"),this.setAttributes({...e,class:n.join(" ")})}}});const r={id:"abo-konfigurator",[`${cr}-wrap`]:"wrap","data-component-id":_v,"data-component-version":lD,"data-component-name":p3,class:"hero-fullwidth relative w-screen left-1/2 -translate-x-1/2 overflow-hidden bg-slate-100 dark:bg-surface-800 py-12 sm:py-16 lg:py-20 animate-fade-in","aria-label":"Abo-Konfigurator",[`${cr}-list-id`]:"Kampagnen-Landingpage",[`${cr}-list-name`]:"Abo-Konfigurator",[`${cr}-affiliation`]:"FUNKE Medien NRW GmbH",[`${cr}-brand`]:"WAZ",[`${cr}-vertical`]:"Nachrichten",[`${cr}-offers`]:"[]",[Cv]:"[]",[Ho("printed-digital")]:"1",[Ho("digital")]:"2",[Ho("tablet")]:"3"};a.DomComponents.addType("abo-konfigurator",{isComponent(t){var e;return((e=t==null?void 0:t.getAttribute)==null?void 0:e.call(t,`${cr}-wrap`))==="wrap"?{type:"abo-konfigurator"}:!1},model:{defaults:{tagName:"section",draggable:!0,droppable:!1,copyable:!1,editable:!1,highlightSection:!0,resizable:!1,sectionDivider:"none",stylable:!1,attributes:r,traits:[]},init(){var t;this.ensureFullWidthClasses(),this.ensureDurationStep(),this.ensureDeliveryStep(),this.rebuildTraits(),this.scheduleProductsRender(),this.ensureEditableIntroCopy(),(t=this.components)==null||t.call(this).forEach(Zc),this.on("change:attributes",()=>
1406{this.ensureFullWidthClasses(),this.scheduleProductsRender()}),this.on("change:highlightSection",()=>this.ensureFullWidthClasses()),this.on(`change:attributes:${cr}-offers`,()=>{this.rebuildTraits(),this.scheduleProductsRender()}),this.on("component:mount",()=>{var e;this.ensureDurationStep(),this.ensureDeliveryStep(),this.scheduleProductsRender(),this.ensureEditableIntroCopy(),(e=this.components)==null||e.call(this).forEach(Zc)})},ensureEditableIntroCopy(){var i,o,s;const t=(((i=this.find)==null?void 0:i.call(this,"h2"))||[])[0],e=(o=t==null?void 0:t.parent)==null?void 0:o.call(t);if(!t||!e)return;e.addAttributes({[Ip]:"wrap"}),t.addAttributes({[xl]:"headline"});const n=(((s=e.components)==null?void 0:s.call(e).models)||[]).find(c=>{var d;return((d=c.get)==null?void 0:d.call(c,"tagName"))==="p"});n&&n.addAttributes({[xl]:"subline"})},ensureFullWidthClasses(){var i;const t=["hero-fullwidth","relative","w-screen","left-1/2","-translate-x-1/2","overflow-hidden","py-12","sm:py-16","lg:py-20","animate-fade-in"],e=new Set(String(((i=this.getAttributes)==null?void 0:i.call(this).class)||"").split(/\s+/).filter(Boolean));let n=!1;t.forEach(o=>{e.has(o)||(e.add(o),n=!0)}),n&&this.addAttributes({class:Array.from(e).join(" ")})},updateProductOrderListeners(t){(this.__aboProductOrderListeners||[]).forEach(({event:n,listener:i})=>{this.off(n,i)}),this.__aboProductOrderListeners=t.map(n=>{const i=`change:attributes:${Ho(n.id)}`,o=()=>this.swapProductOrder(n.id);return this.on(i,o),{event:i,listener:o}});const e=this.getAttributes()||{};this.__aboProductOrderValues=Object.fromEntries(t.map((n,i)=>[n.id,qc(e,n.id,i+1)]))},swapProductOrder(t){var f;if(this.__aboSwappingProductOrder)return;const e=this.getAttributes()||{},n=lg(e).map(g=>sg()[g]).filter(g=>g!==void 0),i=cg(e,n),o=i.findIndex(g=>g.id===t);if(o===-1)return;const s=qc(e,t,o+1),c=(f=this.__aboProductOrderValues)==null?void 0:f[t],d=i.find((g,m)=>g.id!==t&&qc(e,g.id,m+1)===s);c&&c!==s&&d&&(this.__aboSwappingProductOrder=!0,this.addAttributes({[Ho(d.id)]:String(c)}),this.__aboSwappingProductOrder=!1),this.rebuildTraits()},rebuildTraits(){const t=this.getAttributes()||{},e={id:"abo-general",label:"Allgemein",open:!0},n={id:"abo-tracking",label:"Tracking & DataLayer",open:!1},i={id:"abo-products",label:"Angebote",open:!0},o=lg(t).map(d=>sg()[d]).filter(d=>d!==void 0),s=cg(t,o),c=[...new Set(o.map(d=>as(d.type)).filter(d=>d&&!Fi[d]))];this.set("traits",[fd(e),pd(e),Mp(e),{...hd(),category:e},{...Lp(),category:e},{type:"text",name:`${cr}-list-id`,label:"item_list_id",category:n},{type:"text",name:`${cr}-list-name`,label:"item_list_name",category:n},{type:"text",name:`${cr}-affiliation`,label:"Affiliation",category:n},{type:"text",name:`${cr}-brand`,label:"Brand",category:n},{type:"text",name:`${cr}-vertical`,label:"Google Business Vertical",category:n},{type:"offer-search-multi-select",name:`${cr}-offers`,label:"Angebote",category:i,options:gD()},{type:"offer-search-multi-select",name:Cv,label:"Ausgeschlossene Prämien",category:i,searchPlaceholder:"Prämie oder Angebots-ID suchenâ¦",searchLabel:"Prämien filtern",selectionLabel:"Prämien ausschlieÃen",options:yD(o)},...s.map(d=>({type:"select",name:Ho(d.id),label:`Reihenfolge: ${d.label}`,category:i,options:bD(d,s,t)})),{type:"select",name:h3,label:"Beliebt-Badge auf Produkt",category:i,options:[{id:"",name:"Kein Beliebt-Badge"},...s.map(d=>({id:d.id,name:d.label}))]},...c.map(d=>({type:"text",name:`${cr}-product-${jp(d)}-name`,label:`Produktname für â${d}â (erforderlich)`,category:i,placeholder:"Anzeigename für Besucher"}))]),this.updateProductOrderListeners(s)},ensureDurationStep(){var n,i,o,s,c,d,f,g,m,y,x;if((((n=this.find)==null?void 0:n.call(this,'[data-abo-duration-grid="wrap"]'))||[]).length===0){const w=(((i=this.find)==null?void 0:i.call(this,'[data-abo-step-content="option"]'))||[])[0],k=(o=w==null?void 0:w.parent)==null?void 0:o.call(w),S=(s=k==null?void 0:k.parent)==null?void 0:s.call(k),A=(f=(c=S==null?void 0:S.components)==null?void 0:(d=c.call(S)).indexOf)==null?void 0:f.call(d,k);if(!S||typeof A!="number"||A<0)return;S.components().add(y3(),{at:A})}const t=(((g=this.find)==null?void 0:g.call(this,"[data-abo-progress-label]"))||[])[0],e=(((m=this.find)==null?void 0:m.call(this,'[data-abo-step-number="option"]'))||[])[0];(y=t==null?void 0:t.components)==null||y.call(t,"Schritt 1 von 3"),(x=e==null?void 0:e.components)==null||x.call(e,"3")},ensureDeliveryStep(){var o,s,c,d,f,g,m;if((((o=this.find)==null?void 0:o.call(this,'[data-abo-delivery-grid="wrap"]'))||[]).length>0)return;const t=(((s=this.find)==null?void 0:s.call(this,'[data-abo-step-content="duration"]'))||[])[0],e=(c=t==null?void 0:t.parent)==null?void 0:c.call(t),n=(d=e==null?void 0:e.parent)==null?void 0:d.call(e),i=(m=(f=n==null?void 0:n.components)==null?void 0:(g=f.call(n)).indexOf)==null?void 0:m.call(g,e);
1406!n||typeof i!="number"||i<0||n.components().add(` 1407 <section data-abo-delivery-step class="hidden rounded-lg border border-slate-200 bg-white shadow-sm dark:border-dark-border dark:bg-dark-surface"> 1408 <h3> 1409 <button type="button" data-abo-step-toggle="delivery" aria-expanded="false" disabled class="flex w-full cursor-pointer items-center justify-between gap-4 rounded-lg p-5 text-left disabled:cursor-not-allowed disabled:opacity-55 hover:bg-slate-50 dark:hover:bg-neutral-800 sm:p-6"> 1410 <span class="flex items-center gap-4"> 1411 <span data-abo-step-number="delivery" class="flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-slate-300 font-bold text-slate-700 dark:bg-dark-border dark:text-slate-300">2</span> 1412 <span><span class="block text-lg font-bold text-slate-900 dark:text-white">Liefertage wählen</span><span class="mt-0.5 block text-xs font-medium text-slate-500 dark:text-slate-400">Wann soll Ihre gedruckte Zeitung geliefert werden?</span></span> 1413 </span> 1414 <span data-abo-step-summary="delivery" class="hidden max-w-40 truncate text-sm font-bold text-brand-primary-500"></span> 1415 </button> 1416 </h3> 1417 <div data-abo-step-content="delivery" class="hidden border-t border-slate-100 p-5 dark:border-dark-border sm:p-7"> 1418 <div data-abo-delivery-grid="wrap" class="grid gap-4 sm:grid-cols-2"></div> 1419 </div> 1420 </section>`,{at:i})},scheduleProductsRender(t=0){this.__aboRenderQueued||(this.__aboRenderQueued=!0,setTimeout(()=>{this.__aboRenderQueued=!1,!this.renderProducts()&&t<10&&this.scheduleProductsRender(t+1)},0))},renderProducts(){var f,g,m;const t=(((f=this.find)==null?void 0:f.call(this,'[data-abo-product-grid="wrap"]'))||[])[0];if(!t)return!1;const e=this.getAttributes()||{},n=sg(),i=lg(e).map(y=>n[y]||(Zy(y)?{id:y,type:"premium"}:null)).filter(y=>y!==null),o=mD(e),s=i.filter(y=>Zy(String(y.id))||m3(y,o).length>0),c=cg(e,s).map((y,x)=>{const w=s.filter(L=>Np(as(L.type))===y.id),k=w.map(L=>L.id),S=[...new Map(w.map(L=>{var W;const D=as(L.type);return[D,{type:D,delivery:((W=Fi[D])==null?void 0:W.delivery)||null}]})).values()],A=_D(e)===y.id;return ED(y,k,S,kD(w,o),A,x+1)}),d=c.join("");return((g=t.getAttributes)==null?void 0:g.call(t)[`${cr}-signature`])===d||(t.components(c.length>0?c.join(""):'<p class="col-span-full py-10 text-center text-sm italic text-slate-500 dark:text-slate-400">Noch keine Angebote gewählt â bitte Angebote in den Traits auswählen.</p>'),(m=t.addAttributes)==null||m.call(t,{[`${cr}-signature`]:d})),!0}}}),a.BlockManager.add("aboKonfigurator",{id:"aboKonfigurator",label:"Abo-Konfigurator",category:{id:"content",label:"Content"},attributes:{"data-os-group":"Vertriebliche Elemente","data-os-page-type":"aboshop"},media:nD,content:{type:"abo-konfigurator",components:[{type:"abo-konfigurator-container",components:AD()}]}}),a.on("component:add",t=>{var n,i,o;Zc(t);const e=((n=t==null?void 0:t.getAttributes)==null?void 0:n.call(t))||{};e["data-abo-summary-mobile"]!==void 0&&((i=t.components)==null?void 0:i.call(t).length)===0&&t.components(qy(!0)),e["data-abo-summary-desktop"]!==void 0&&((o=t.components)==null?void 0:o.call(t).length)===0&&t.components(qy(!1))}),Pp(a,"aboKonfigurator","abo-konfigurator")}const PD=1,b3=20,LD=2,Ky="Landingpage Elemente - Content - Akkordeon (FAQ)",xc="Landingpage Elemente - Content - Akkordeon (FAQ) 2",dg={"data-track-v2-parentposition":"Content","data-track-v2-parentlabel":"OS - Inhalt","data-track-v2-elementtype":"Button","data-track-v2-vendor":"Internal","data-track-v2-linktype":"External","data-track-v2-linkgenre":"","data-track-v2-clickaction":""},cc={draggable:!1,droppable:!1,copyable:!1,removable:!1,editable:!1,selectable:!1,hoverable:!1},Gy={draggable:!1,droppable:!1,copyable:!1,removable:!1};function Gr(a){try{a()}catch{}}function ug(a){const r=Number(a)||LD;return Math.max(PD,Math.min(b3,r))}function Ao(a){return`data-os-accordion-title-${a}`}function dc(a){return`data-os-accordion-content-${a}`}function fu(a,r){return`[${a}="${r}"]`}function Yy(a,r){const t=(a||"").split(";").map(e=>e.trim()).filter(e=>e&&!e.startsWith("animation-delay:"));return t.push(`animation-delay: ${r*100}ms`),t.join("; ")+";"}function DD(a){const r=(a||"").split(/\s+/).filter(t=>t&&!/^animate-delay-\d+$/.test(t));return r.includes("animate-slide-up")||r.push("animate-slide-up"),r.join(" ")}function pa(a){return typeof a.getAttributes=="function"?a.getAttributes():{}}function pu(a,r){typeof a.setAttributes=="function"&&a.setAttributes(r)}function Za(a){let r=a.components();const t=a.find('[data-os-accordion-container="true"]')[0];t&&typeof t.components=="function"&&(r=t.components());const e=[],n=r.models||r;
1420if(n&&typeof n.forEach=="function"&&n.forEach(i=>{var o;((o=i==null?void 0:i.get)==null?void 0:o.call(i,"tagName"))==="details"&&e.push(i)}),e.length===0&&a.get("data-component-name")===xc){const i=a.components().models||a.components();i&&typeof i.forEach=="function"&&i.forEach(o=>{var s;((s=o==null?void 0:o.get)==null?void 0:s.call(o,"tagName"))==="details"&&e.push(o)})}return e}function uc(a,r){return typeof a.find=="function"?a.find(r)||[]:[]}function Is(a,r){Gr(()=>{var t;if((t=a==null?void 0:a.set)==null||t.call(a,r),r.editable===!1){const e=a==null?void 0:a.view;e!=null&&e.disableEditing&&Gr(()=>e.disableEditing()),e!=null&&e.rteEnabled&&(e!=null&&e.disableEditing)&&Gr(()=>e.disableEditing())}})}function Xy(a,r){var e,n;const t=(n=(e=a.find)==null?void 0:e.call(a,r))==null?void 0:n[0];return!t||typeof t.get!="function"?"":t.get("content")||""}const ID="ml-0 no-underline font-medium inline-block overflow-hidden text-ellipsis whitespace-nowrap rounded border-2 px-6 text-center uppercase transition hover:shadow-sm focus:shadow-sm active:shadow-sm disabled:border-gray-100 disabled:bg-gray-100 disabled:text-copy-primary disabled:shadow-none text-sm leading-[41px] border-brand-primary-500 hover:border-brand-primary-700 focus:border-brand-primary-700 active:border-brand-primary-300 bg-brand-primary-500 hover:bg-brand-primary-700 focus:bg-brand-primary-700 active:bg-brand-primary-300 text-brand-contrast hover:text-brand-contrast",jD="no-underline font-medium inline-block overflow-hidden text-ellipsis whitespace-nowrap rounded border-2 px-6 text-center uppercase transition hover:shadow-sm focus:shadow-sm active:shadow-sm disabled:border-gray-100 disabled:bg-gray-100 disabled:text-copy-primary disabled:shadow-none text-sm leading-[41px] border-brand-primary-500 hover:border-brand-primary-700 focus:border-brand-primary-700 active:border-brand-primary-300 text-brand-primary-500 hover:text-brand-primary-700",Jy="underline font-medium text-sm transition text-brand-primary-500 hover:text-brand-primary-700";function Qy(a,r,t,e=!1){return{defaults:{tagName:e?"section":"div",droppable:!0,attributes:{"data-os-accordion":"wrap","data-component-id":t,"data-component-version":"1.0.0","data-component-name":a,class:r},items:"2",highlightSection:e,traits:[]},init(){const n=!!this.getAttributes()["data-component-id"];e&&typeof this.components=="function"&&this.components().length===0&&!n&&this.components(` 1421 <div class="container mx-auto max-w-4xl px-4"> 1422 <h2 class="font-serif text-2xl sm:text-3xl font-bold text-slate-900 dark:text-white mb-6 sm:mb-8 text-center reveal">Häufig gestellte Fragen</h2> 1423 <div class="space-y-3 sm:space-y-4" data-os-accordion-container="true"></div> 1424 </div> 1425 `);const i=this._initItemCount();e&&!n?setTimeout(()=>{this.updateItems(i),this.syncItemAnimations(),this.hydrateContentAttrsFromDom(),this.rebuildTraits(),this.syncAllTextsToDom(),this.enforceLocks(),this._removePersistedOpenAttrs(),this._registerListeners()},0):(n||this.updateItems(i),this.syncItemAnimations(),this.hydrateContentAttrsFromDom(),this.rebuildTraits(),this.syncAllTextsToDom(),this.enforceLocks(),this._removePersistedOpenAttrs(),this._registerListeners())},_initItemCount(){const i=Za(this).length,o=ug(i>0?i:this.get("items"));return this.set("items",String(o),{silent:!0}),o},_removePersistedOpenAttrs(){Gr(()=>{for(const n of Za(this)){const i=pa(n);if("open"in i){const o={...i};delete o.open,pu(n,o)}}})},_registerListeners(){this.on("change:items",(n,i)=>{const o=ug(i);this.set("items",String(o),{silent:!0}),this.updateItems(o),this.rebuildTraits(),this.syncAllTextsToDom()}),this.on("change:attributes",()=>{this.syncAllTextsToDom(),this.updateEntryTraitCategoryLabels()})},rebuildTraits(){Gr(()=>{const n=ug(this.get("items")),i=pa(this),o=this._getTraitCategoryOpenStates(),s=[fd(),pd(),Mp(),hd(),this._buildItemCountTrait(n)];for(let c=1;c<=n;c++)s.push(...this._buildEntryTraits(c,i,o));this.set("traits",s)})},_getTraitCategoryOpenStates(){const n={},i=this.get("traits"),o=(i==null?void 0:i.models)||i;return!o||typeof o.forEach!="function"||o.forEach(s=>{var g,m,y;const c=((g=s==null?void 0:s.get)==null?void 0:g.call(s,"category"))??(s==null?void 0:s.category),d=((m=c==null?void 0:c.get)==null?void 0:m.call(c,"id"))??(c==null?void 0:c.id),f=((y=c==null?void 0:c.get)==null?void 0:y.call(c,"open"))??(c==null?void 0:c.open);
1425typeof d=="string"&&typeof f=="boolean"&&(n[d]=f)}),n},updateEntryTraitCategoryLabels(){Gr(()=>{const n=pa(this),i=this.get("traits"),o=(i==null?void 0:i.models)||i;!o||typeof o.forEach!="function"||o.forEach(s=>{var x,w;const c=((x=s==null?void 0:s.get)==null?void 0:x.call(s,"category"))??(s==null?void 0:s.category),d=((w=c==null?void 0:c.get)==null?void 0:w.call(c,"id"))??(c==null?void 0:c.id),f=typeof d=="string"?/^entry-(\d+)$/.exec(d):null;if(!f)return;const g=Number(f[1]),m=(n[Ao(g)]||"").trim(),y=m?`Eintrag ${g}: ${m}`:`Eintrag ${g}`;c!=null&&c.set?c.set("label",y):c&&(c.label=y)})})},_buildItemCountTrait(n){return{type:"select",label:"Anzahl Einträge",name:"items",changeProp:!0,category:{id:"general",label:"Allgemein",open:!0},options:Array.from({length:b3},(i,o)=>({id:String(o+1),name:String(o+1)})),value:String(n)}},_buildEntryTraits(n,i,o){const s=(i[Ao(n)]||"").trim(),c=s?`Eintrag ${n}: ${s}`:`Eintrag ${n}`,d=`entry-${n}`,f={id:d,label:c,open:o[d]??n===1};return[{type:"text",label:"Titel",name:Ao(n),category:f,placeholder:"Titel des Akkordeon-Eintrags"},{type:"textarea",label:"Inhalt",name:dc(n),category:f,placeholder:"Inhalt des Akkordeon-Eintrags"}]},hydrateContentAttrsFromDom(){Gr(()=>{if(typeof this.find!="function")return;const n={...pa(this)},i=Za(this);let o=!1;i.forEach((s,c)=>{const d=c+1,f=Ao(d),g=dc(d);if(!n[f]){const m=Xy(s,fu("data-os-accordion-title",d));m?n[f]=m:n[f]="Häufig gestellte Frage "+d,o=!0}if(!n[g]){const m=Xy(s,fu("data-os-accordion-content",d));m?n[g]=m:n[g]="Hier steht die Antwort auf die häufig gestellte Frage. Sie können diesen Text im Editor anpassen.",o=!0}}),o&&pu(this,n)})},syncAllTextsToDom(){Gr(()=>{if(typeof this.find!="function")return;const n=pa(this);Za(this).forEach((o,s)=>{var y,x,w,k;const c=s+1,d=n[Ao(c)]||"",f=n[dc(c)]||"",g=(x=(y=o.find)==null?void 0:y.call(o,fu("data-os-accordion-title",c)))==null?void 0:x[0],m=(k=(w=o.find)==null?void 0:w.call(o,fu("data-os-accordion-content",c)))==null?void 0:k[0];Gr(()=>{var S;return(S=g==null?void 0:g.components)==null?void 0:S.call(g,String(d))}),Gr(()=>{var S;return(S=m==null?void 0:m.components)==null?void 0:S.call(m,String(f))})})})},enforceLocks(){Gr(()=>{if(typeof this.find!="function")return;const n=Za(this);n.forEach(i=>Is(i,Gy)),n.forEach(i=>{uc(i,"summary").forEach(o=>{Is(o,{...Gy,selectable:!0}),uc(o,"div").forEach(s=>{Is(s,{draggable:!1,copyable:!1,removable:!1})})})}),n.forEach(i=>{uc(i,"h3").forEach(o=>Is(o,cc)),uc(i,"p").forEach(o=>Is(o,cc))}),uc(this,"h3").forEach(i=>{(typeof i.closest!="function"||!i.closest("details"))&&Is(i,cc)})})},updateItems(n){Gr(()=>{var f,g;const i=this.find('[data-os-accordion-container="true"]')[0];let o=this.components();i&&typeof i.components=="function"&&(o=i.components());const s=Za(this);e&&i&&o&&this.components().models.filter(y=>y.get("tagName")==="details").forEach(y=>{y.remove(),o.add(y)});const c=s.length,d=pa(this);if(c<n){for(let m=c+1;m<=n;m++){const y=Ao(m),x=dc(m);d[y]||(d[y]="Häufig gestellte Frage "+m),d[x]||(d[x]="Hier steht die Antwort auf die häufig gestellte Frage. Sie können diesen Text im Editor anpassen."),o.add(this.buildItem(m))}pu(this,d)}else if(c>n)for(let m=c-1;m>=n;m--)(g=(f=s[m])==null?void 0:f.remove)==null||g.call(f);this.renumberTracking(),this.syncItemAnimations(),this.enforceLocks(),this._openAllDetailsInEditor()})},_openAllDetailsInEditor(){Gr(()=>{var i;const n=(i=this.view)==null?void 0:i.el;n&&setTimeout(()=>{Gr(()=>{n.querySelectorAll("details").forEach(o=>{o.open=!0})})},0)})},syncItemAnimations(){e&&Za(this).forEach((n,i)=>{const o=pa(n);pu(n,{...o,class:DD(o.class),style:Yy(o.style,i+1)})})},buildTrackingAttrs(n,i){const o=i?n*2-1:n*2;return{...dg,"data-track-v2-parent":a,"data-track-v2-elementposition":String(o),"data-track-v2-link":""}},renumberTracking(){Gr(()=>{Za(this).forEach((i,o)=>{var m,y,x;const s=((m=i.findType)==null?void 0:m.call(i,"link"))||[],[c,d]=s,f=String(o*2+1),g=String(o*2+2);c!=null&&c.addAttributes&&c.addAttributes({...dg,"data-track-v2-parent":a,"data-track-v2-elementposition":f,"data-track-v2-link":((y=c.getAttributes)==null?void 0:y.call(c).href)||""}),d!=null&&d.addAttributes&&d.addAttributes({...dg,"data-track-v2-parent":a,"data-track-v2-elementposition":g,"data-track-v2-link":((x=d.getAttributes)==null?void 0:x.call(d).href)||""})})})},buildItem(n){const i=this.buildTrackingAttrs(n,!0),o=this.buildTrackingAttrs(n,!1);return{tagName:"details",draggable:!1,droppable:!1,copyable:!1,removable:!1,attributes:{class:e?"group bg-white dark:bg-dark-surface rounded-sm border border-slate-200 dark:border-dark-border shadow-sm animate-slide-up":"group [&_summary::-webkit-details-marker]:hidden border-b border-stroke-100 bg-surface-100",...e?{style:Yy(void 0,n)}:{}},components:[this._buildSummary(n),this._buildContentWrapper(n,i,o)]}},_buildSummary(n){const i=e?"rounded-sm flex justify-between items-center p-4 sm:p-5 cursor-pointer font-bold text-sm sm:text-base text-slate-900 dark:text-white hover:bg-slate-50 dark:hover:bg-surface-50 transition-colors min-h-[44px] gap-4":"flex cursor-pointer items-center justify-between gap-1.5 hover:bg-surface-300 p-4",o=e?"":"font-bold",c=pa(this)[Ao(n)]||"Häufig gestellte Frage "+n,d=e?{type:"iconify-icon",tagName:"iconify-icon",attributes:{icon:"material-symbols:expand-more",class:"text-2xl transition-transform group-open:rotate-180 motion-reduce:transition-none","aria-hidden":"true"}}:{tagName:"svg",attributes:{class:"size-5 shrink-0 transition duration-300 group-open:-rotate-180",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"var(--color-copy-primary, var(--color-surface-900))"},type:"svg",components:[{tagName:"path",attributes:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"}}]};return{tagName:"summary",draggable:!1,droppable:!1,copyable:!1,removable:!1,selectable:!0,attributes:{class:i},components:[{tagName:"h3",attributes:{class:o,"data-os-accordion-title":String(n)},...cc,content:String(c)},d]}},_buildContentWrapper(n,i,o){const s=e?"px-4 sm:px-6 pb-4 sm:pb-6 text-sm sm:text-base text-slate-600 dar
1425k:text-dark-muted pt-2 animate-fade-in":"pt-4 pr-5 pb-5 pl-8",c=e?"":"my-2 leading-relaxed",f=pa(this)[dc(n)]||"Hier steht die Antwort auf die häufig gestellte Frage. Sie können diesen Text im Editor anpassen.",g=[{tagName:"p",attributes:{class:c,"data-os-accordion-content":String(n)},...cc,content:String(f)}];return e?g.push(this._buildLinks(n)):g.push({tagName:"div",attributes:{class:"mt-3 flex flex-wrap gap-3 pl-0"},components:[this._buildButton(i,!0),this._buildButton(o,!1)]}),{tagName:"div",draggable:!1,copyable:!1,removable:!1,droppable:!0,attributes:{class:s},components:g}},_buildButton(n,i){return{tagName:"a",type:"link",attributes:{href:"",target:"_self",title:"",class:i?ID:jD,...n},components:[{tagName:"span",attributes:{class:"px-6"},type:"text",content:"Button"}]}},_buildLinks(n){const i=this.buildTrackingAttrs(n,!0),o=this.buildTrackingAttrs(n,!1);return{tagName:"div",attributes:{class:"mt-4 flex flex-wrap gap-4"},components:[{tagName:"a",type:"link",attributes:{href:"",target:"_self",title:"",class:Jy,...i,"data-track-v2-elementtype":"Link"},content:"Link-1"},{tagName:"a",type:"link",attributes:{href:"",target:"_self",title:"",class:Jy,...o,"data-track-v2-elementtype":"Link"},content:"Link-2"}]}}}}const t2={openAllDetails(){Gr(()=>{const a=this.el;a==null||a.querySelectorAll("details").forEach(r=>{r.open=!0})})},onRender(){this.openAllDetails()},onUpdate(){this.openAllDetails()}},e2='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 400 400"><path fill="#EFEFEF" fill-rule="evenodd" d="M370 58.5H30V151c0 .8.7 1.5 1.5 1.5h337c.8 0 1.5-.7 1.5-1.5V58.5z" clip-rule="evenodd"/><path fill="#D3D3D3" d="M368.3 195.5H31.7c-.8 0-1.5-.7-1.5-1.5v-26c0-.8.7-1.5 1.5-1.5h336.7c.8 0 1.5.7 1.5 1.5v26c-.1.8-.7 1.5-1.6 1.5z"/><path fill="#B2B2B2" d="m353.1 175.1 4.8-.6c1.2-.2 2.1 1.2 1.5 2.2l-5.2 9c-.6 1-2 1-2.6 0l-5.2-9c-.6-1.1.3-2.4 1.5-2.2l4.8.6c.1.1.2.1.4 0zM143.3 186h-102c-.8 0-1.5-.7-1.5-1.5v-7c0-.8.7-1.5 1.5-1.5h102c.8 0 1.5.7 1.5 1.5v7c0 .8-.6 1.5-1.5 1.5z"/><g fill="#D3D3D3"><path d="M256.3 79.5H41.5c-.8 0-1.5-.7-1.5-1.5v-7c0-.8.7-1.5 1.5-1.5h214.8c.8 0 1.5.7 1.5 1.5v7c0 .8-.6 1.5-1.5 1.5zM351.5 95H41.4c-.8 0-1.5-.7-1.5-1.5v-7c0-.8.7-1.5 1.5-1.5h310.1c.8 0 1.5.7 1.5 1.5v7c0 .8-.7 1.5-1.5 1.5zM329.7 110.5H41.5c-.8 0-1.5-.7-1.5-1.5v-7c0-.8.7-1.5 1.5-1.5h288.2c.8 0 1.5.7 1.5 1.5v7c0 .8-.7 1.5-1.5 1.5zM329.7 141.5H41.5c-.8 0-1.5-.7-1.5-1.5v-7c0-.8.7-1.5 1.5-1.5h288.2c.8 0 1.5.7 1.5 1.5v7c0 .8-.7 1.5-1.5 1.5zM198.9 126H41.4c-.8 0-1.5-.7-1.5-1.5v-7c0-.8.7-1.5 1.5-1.5h157.5c.8 0 1.5.7 1.5 1.5v7c0 .8-.6 1.5-1.5 1.5z"/></g><path fill="#D3D3D3" d="M368.3 239.2H31.7c-.8 0-1.5-.7-1.5-1.5v-26c0-.8.7-1.5 1.5-1.5h336.7c.8 0 1.5.7 1.5 1.5v26c-.1.9-.7 1.5-1.6 1.5z"/><path fill="#B2B2B2" d="m353.1 218.9 4.8-.6c1.2-.2 2.1 1.2 1.5 2.2l-5.2 9c-.6 1-2 1-2.6 0l-5.2-9c-.6-1.1.3-2.4 1.5-2.2l4.8.6h.4zM143.3 229.8h-102c-.8 0-1.5-.7-1.5-1.5v-7c0-.8.7-1.5 1.5-1.5h102c.8 0 1.5.7 1.5 1.5v7c0 .8-.6 1.5-1.5 1.5z"/><path fill="#D3D3D3" d="M368.3 283H31.7c-.8 0-1.5-.7-1.5-1.5v-26c0-.8.7-1.5 1.5-1.5h336.7c.8 0 1.5.7 1.5 1.5v26c-.1.8-.7 1.5-1.6 1.5z"/><path fill="#B2B2B2" d="m353.1 262.6 4.8-.6c1.2-.2 2.1 1.2 1.5 2.2l-5.2 9c-.6 1-2 1-2.6 0l-5.2-9c-.6-1.1.3-2.4 1.5-2.2l4.8.6c.1.1.2.1.4 0zM143.3 273.5h-102c-.8 0-1.5-.7-1.5-1.5v-7c0-.8.7-1.5 1.5-1.5h102c.8 0 1.5.7 1.5 1.5v7c0 .8-.6 1.5-1.5 1.5z"/><path fill="#D3D3D3" d="M368.3 326.8H31.7c-.8 0-1.5-.7-1.5-1.5v-26c0-.8.7-1.5 1.5-1.5h336.7c.8 0 1.5.7 1.5 1.5v26c-.1.8-.7 1.5-1.6 1.5z"/><path fill="#B2B2B2" d="m353.1 306.4 4.8-.6c1.2-.2 2.1 1.2 1.5 2.2l-5.2 9c-.6 1-2 1-2.6 0l-5.2-9c-.6-1.1.3-2.4 1.5-2.2l4.8.6h.4zM143.3 317.2h-102c-.8 0-1.5-.7-1.5-1.5v-7c0-.8.7-1.5 1.5-1.5h102c.8 0 1.5.7 1.5 1.5v7c0 .9-.6 1.5-1.5 1.5z"/><path fill="#D3D3D3" d="M368.3 370.5H31.7c-.8 0-1.5-.7-1.5-1.5v-26c0-.8.7-1.5 1.5-1.5h336.7c.8 0 1.5.7 1.5 1.5v26c-.1.8-.7 1.5-1.6 1.5z"/><path fill="#B2B2B2" d="m353.1 350.1 4.8-.6c1.2-.2 2.1 1.2 1.5 2.2l-5.2 9c-.6 1-2 1-2.6 0l-5.2-9c-.6-1.1.3-2.4 1.5-2.2l4.8.6c.1.1.2.1.4 0zM143.3 361h-102c-.8 0-1.5-.7-1.5-1.5v-7c0-.8.7-1.5 1.5-1.5h102c.8 0 1.5.7 1.5 1.5v7c0 .8-.6 1.5-1.5 1.5z"/><path fill="#D3D3D3" d="M369.8 58.5H30.2V31c0-.8.7-1.5 1.5-1.5h336.7c.8 0 1.5.7 1.5 1.5v27.5z"/><path fill="#B2B2B2" d="m353.1 38.1 4.8-.6c1.2-.2 2.1 1.2 1.5 2.2l-5.2 9c-.6 1-2 1-2.6 0l-5.2-9c-.6-1.1.3-2.4 1.5-2.2l4.8.6c.1.1.2.1.4 0zM143.3 49h-102c-.8 0-1.5-.7-1.5-1.5v-7c0-.8.7-1.5 1.5-1.5h102c.8 0 1.5.7 1.5 1.5v7c0 .8-.6 1.5-1.5 1.5z"/></svg>';function ND(a){const r=t=>{var n;const e=(n=t==null?void 0:t.get)==null?void 0:n.call(t,"type");(e==="os-accordion"||e==="os-accordion-2")&&(Gr(()=>{var i;return(i=t.enforceLocks)==null?void 0:i.call(t)}),Gr(()=>{var i;return(i=t._openAllDetailsInEditor)==null?void 0:i.call(t)}))};a.on("component:mount",r),a.on("load",()=>{Gr(()=>{var t,e;(e=a.getWrapper())==null||e.findType("os-accordion").concat(((t=a.getWrapper())==null?void 0:t.findType("os-accordion-2"))||[]).forEac
1425h(n=>{var i,o;(i=n.enforceLocks)==null||i.call(n),(o=n._openAllDetailsInEditor)==null||o.call(n)})})}),a.DomComponents.addType("os-accordion",{isComponent(t){var e,n;return((e=t==null?void 0:t.getAttribute)==null?void 0:e.call(t,"data-os-accordion"))==="wrap"&&((n=t==null?void 0:t.getAttribute)==null?void 0:n.call(t,"data-component-name"))!==xc?{type:"os-accordion"}:!1},model:Qy(Ky,"mb-8 mt-8 pb-5","25"),view:t2}),a.BlockManager.add("accordion",{id:"accordion",label:"Akkordeon (FAQ)",category:{id:"content",label:"Content"},attributes:{"data-os-group":"Landingpage Elemente","data-os-page-type":"cue"},content:` 1426 <div 1427 data-component-version="1.0.0" 1428 data-component-name="${Ky}" 1429 data-gjs-type="os-accordion" 1430 data-os-accordion="wrap" 1431 class="mb-8 mt-8 pb-5"> 1432 </div> 1433 `,media:e2}),a.DomComponents.addType("os-accordion-2",{isComponent(t){var e,n;return((e=t==null?void 0:t.getAttribute)==null?void 0:e.call(t,"data-os-accordion"))==="wrap"&&((n=t==null?void 0:t.getAttribute)==null?void 0:n.call(t,"data-component-name"))===xc?{type:"os-accordion-2"}:!1},model:Qy(xc,"relative w-screen left-1/2 -translate-x-1/2 overflow-hidden bg-slate-100 dark:bg-neutral-800 py-12 sm:py-16 lg:py-20","26",!0),view:t2}),a.BlockManager.add("accordion-2",{id:"accordion-2",label:"Akkordeon (FAQ) 2",category:{id:"content",label:"Content"},attributes:{"data-os-group":"Landingpage Elemente","data-os-page-type":"aboshop"},content:` 1434 <section 1435 data-component-version="1.0.1" 1436 data-component-name="${xc}" 1437 data-gjs-type="os-accordion-2" 1438 data-os-accordion="wrap" 1439 class="relative w-screen left-1/2 -translate-x-1/2 overflow-hidden bg-slate-100 dark:bg-neutral-800 py-12 sm:py-16 lg:py-20"> 1440 <div class="container mx-auto max-w-4xl px-4"> 1441 <h2 class="font-serif text-2xl sm:text-3xl font-bold text-slate-900 dark:text-white mb-6 sm:mb-8 text-center animate-slide-up">Häufig gestellte Fragen</h2> 1442 <div class="space-y-3 sm:space-y-4" data-os-accordion-container="true"> 1443 <details class="group bg-white dark:bg-dark-surface rounded-sm border border-slate-200 dark:border-dark-border shadow-sm animate-slide-up" style="animation-delay: 100ms;" open> 1444 <summary class="rounded-sm flex justify-between items-center p-4 sm:p-5 cursor-pointer font-bold text-sm sm:text-base text-slate-900 dark:text-white hover:bg-slate-50 dark:hover:bg-surface-50 transition-colors min-h-[44px] gap-4"> 1445 <h3 data-os-accordion-title="1">Häufig gestellte Frage 1</h3> 1446 <iconify-icon icon="material-symbols:expand-more" class="text-2xl transition-transform group-open:rotate-180 motion-reduce:transition-none" aria-hidden="true"></iconify-icon> 1447 </summary> 1448 <div class="px-4 sm:px-6 pb-4 sm:pb-6 text-sm sm:text-base text-slate-600 dark:text-dark-muted pt-2 animate-fade-in"> 1449 <p data-os-accordion-content="1">Hier steht die Antwort auf die häufig gestellte Frage. Sie können diesen Text im Editor anpassen.</p> 1450 <div class="mt-4 flex gap-4"> 1451 <a href="" class="underline font-medium text-sm transition text-brand-primary-500 hover:text-brand-primary-700" data-track-v2-elementtype="Link" data-track-v2-elementposition="1">Link-1</a> 1452 <a href="" class="underline font-medium text-sm transition text-brand-primary-500 hover:text-brand-primary-700" data-track-v2-elementtype="Link" data-track-v2-elementposition="2">Link-2</a> 1453 </div> 1454 </div> 1455 </details> 1456 <details class="group bg-white dark:bg-dark-surface rounded-sm border border-slate-200 dark:border-dark-border shadow-sm animate-slide-up" style="animation-delay: 200ms;" open> 1457 <summary class="rounded-sm flex justify-between items-center p-4 sm:p-5 cursor-pointer font-bold text-sm sm:text-base text-slate-900 dark:text-white hover:bg-slate-50 dark:hover:bg-surface-50 transition-colors min-h-[44px] gap-4"> 1458 <h3 data-os-accordion-title="2">
1458Häufig gestellte Frage 2</h3> 1459 <iconify-icon icon="material-symbols:expand-more" class="text-2xl transition-transform group-open:rotate-180 motion-reduce:transition-none" aria-hidden="true"></iconify-icon> 1460 </summary> 1461 <div class="px-4 sm:px-6 pb-4 sm:pb-6 text-sm sm:text-base text-slate-600 dark:text-dark-muted pt-2 animate-fade-in"> 1462 <p data-os-accordion-content="2">Hier steht die Antwort auf die häufig gestellte Frage. Sie können diesen Text im Editor anpassen.</p> 1463 <div class="mt-4 flex gap-4"> 1464 <a href="" class="underline font-medium text-sm transition text-brand-primary-500 hover:text-brand-primary-700" data-track-v2-elementtype="Link" data-track-v2-elementposition="3">Link-1</a> 1465 <a href="" class="underline font-medium text-sm transition text-brand-primary-500 hover:text-brand-primary-700" data-track-v2-elementtype="Link" data-track-v2-elementposition="4">Link-2</a> 1466 </div> 1467 </div> 1468 </details> 1469 </div> 1470 </div> 1471 </section> 1472 `,media:e2})}const RD="42",BD="1.0.3",x3="Landingpage Elemente - Content - Aktionsbereich",VD="Landingpage Elemente",HD="both",FD="OS - Inhalt",Yr={wrap:"os-action-section-wrap",container:"os-action-section-container",color:"os-action-section-color",headline:"os-action-section-headline",bodyText:"os-action-section-text",btnPrimary:"os-action-section-btn-primary",btnSecondary:"os-action-section-btn-secondary"},$D=960,r2=1280,w3=1280,Mo=(a,r)=>{var t;return((t=a.classList)==null?void 0:t.contains(r))||!1},zD="brand",n2={type:"text",editable:!0,droppable:!1,draggable:!1,copyable:!0,removable:!0,layerable:!0},i2="inline-flex items-center justify-center w-full sm:w-auto px-6 py-3 text-base font-bold no-underline rounded-full transition-all duration-200 min-h-[44px] active:scale-95",UD='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><rect x="32" y="72" width="336" height="256" rx="18" fill="#9ca3af"/><rect x="104" y="126" width="192" height="18" rx="9" fill="#ffffff"/><rect x="128" y="164" width="144" height="11" rx="5.5" fill="#e5e7eb"/><rect x="110" y="184" width="180" height="11" rx="5.5" fill="#e5e7eb"/><rect x="101" y="238" width="94" height="34" rx="17" fill="#ffffff"/><rect x="205" y="238" width="94" height="34" rx="17" fill="none" stroke="#ffffff" stroke-width="5"/></svg>',a2=(a,r,t)=>` 1473 data-track-v2-parentposition="Content" 1474 data-track-v2-parent="${x3}" 1475 data-track-v2-parentlabel="${FD}" 1476 data-track-v2-elementposition="${a}" 1477 data-track-v2-elementtype="Button" 1478 data-track-v2-vendor="Internal" 1479 data-track-v2-link="${r}" 1480 data-track-v2-linktype="${t}" 1481 data-track-v2-linkgenre="" 1482 data-track-v2-clickaction=""`,WD=()=>` 1483<section 1484 data-component-id="${RD}" 1485 data-component-version="${BD}" 1486 data-component-name="${x3}" 1487 data-gjs-type="${Yr.wrap}" 1488 data-os-background="${zD}" 1489 class="os-action-section relative w-screen left-1/2 -translate-x-1/2 overflow-hidden py-8 sm:py-12"> 1490 <div data-gjs-type="${Yr.container}" class="os-action-section-container mx-auto px-4 sm:px-6 max-w-[${w3}px]"> 1491 <div 1492 data-gjs-type="${Yr.color}" 1493 class="os-action-section-color w-full py-16 sm:py-20 px-6 sm:px-12 text-center flex flex-col items-center gap-6 relative overflow-hidden rounded-xl bg-brand-primary-500 animate-fade-in"> 1494 <h2 data-gjs-type="${Yr.headline}" class="os-action-section-headline text-3xl md:text-4xl font-bold tracking-tight text-white relative z-10">Bereit für den nächsten Schritt?</h2> 1495 <p data-gjs-type="${Yr.bodyText}" class="os-action-section-text text-base leading-relaxed max-w-2xl text-white/80 relative z-10">Entdecken Sie unser Angebot und finden Sie heraus, was zu Ihnen passt.</p> 1496 <div class="flex flex-col sm:flex-row gap-3 mt-2 relative z-10"> 1497 <a href="#mehr-erfahren" 1498 data-gjs-type="${Yr.btnPrimary}" 1499 class="os-action-section-btn-primary ${i2} !bg-white text-brand-primary-500"${a2(1,"#mehr-erfahren","Internal")}>
1500 <span class="relative z-10">Mehr erfahren</span> 1501 </a> 1502 <a href="#jetzt-starten" 1503 data-gjs-type="${Yr.btnSecondary}" 1504 class="os-action-section-btn-secondary ${i2} border-2 border-white/60 text-white hover:bg-white/10"${a2(2,"#jetzt-starten","Internal")}> 1505 <span class="relative z-10">Jetzt starten</span> 1506 </a> 1507 </div> 1508 </div> 1509 </div> 1510</section>`;function ZD(a){const r=a.DomComponents,t=i=>({name:i,...n2,traits:[{type:"text",name:"href",label:"Ziel-Link"},{type:"select",name:"linktype",label:"Link-Typ",options:[{id:"Internal",name:"Intern (Anker/Seite)"},{id:"External",name:"Extern"},{id:"Mail",name:"Mail"}],changeProp:!0}]}),e={init(){this.on("change:linktype",this.syncTrackingLink),this.on("change:attributes:href",this.syncTrackingLink)},syncTrackingLink(){this.addAttributes({"data-track-v2-link":this.getAttributes().href||"","data-track-v2-linktype":this.get("linktype")||""})}};r.addType(Yr.btnPrimary,{extend:"link",isComponent:i=>Mo(i,"os-action-section-btn-primary"),model:{defaults:t("Primärer Button"),...e}}),r.addType(Yr.btnSecondary,{extend:"link",isComponent:i=>Mo(i,"os-action-section-btn-secondary"),model:{defaults:t("Sekundärer Button"),...e}}),r.addType(Yr.container,{isComponent:i=>Mo(i,"os-action-section-container"),model:{defaults:{name:"Breiten-Container",tagName:"div",draggable:!1,copyable:!1,removable:!1,droppable:!1,wide_content:w3===1280},init(){this.on("change:wide_content",this.applyWidth),a.on("load",()=>this.readWidthFromDom()),setTimeout(()=>this.readWidthFromDom(),0)},readWidthFromDom(){const i=this.getClasses().includes(`max-w-[${r2}px]`);this._syncing=!0,this.set("wide_content",i),this._syncing=!1},applyWidth(){if(this._syncing)return;const i=this.get("wide_content")===!0;this.getClasses().filter(o=>/^max-w-\[\d+px]$/.test(o)).forEach(o=>this.removeClass(o)),this.addClass(`max-w-[${i?r2:$D}px]`)},_syncing:!1}}),r.addType(Yr.color,{isComponent:i=>Mo(i,"os-action-section-color"),model:{defaults:{name:"Farbfläche",droppable:!1,draggable:!1,copyable:!1,removable:!1}}});const n=i=>({name:i,...n2});r.addType(Yr.headline,{extend:"text",isComponent:i=>Mo(i,"os-action-section-headline"),model:{defaults:n("Ãberschrift")}}),r.addType(Yr.bodyText,{extend:"text",isComponent:i=>Mo(i,"os-action-section-text"),model:{defaults:n("Text")}}),r.addType(Yr.wrap,{isComponent:i=>Mo(i,"os-action-section"),model:{defaults:{name:"Aktionsbereich",droppable:!1,toolbar:[{attributes:{class:"fa fa-arrows",title:"Verschieben"},command:"tlb-move"}],traits:[{type:"select",name:"background",label:"Hintergrund",options:[{id:"brand",name:"Markenfarbe (automatisch)"},{id:"outline",name:"Markenfarbe (Outline)"}],changeProp:!0}]},_syncing:!1,init(){this.on("change:background",this.applyTheme),a.on("load",()=>this.readFromDom()),setTimeout(()=>this.readFromDom(),0)},color(){return this.findType(Yr.color)[0]},primaryBtn(){return this.findType(Yr.btnPrimary)[0]},secondaryBtn(){return this.findType(Yr.btnSecondary)[0]},headline(){return this.findType(Yr.headline)[0]},bodyText(){return this.findType(Yr.bodyText)[0]},readFromDom(){const i=this.getAttributes()["data-os-background"]==="brand"?"brand":"outline";this._syncing=!0,this.set({background:i}),this._syncing=!1,this.applyTheme()},applyTheme(){if(this._syncing)return;const i=this.get("background")==="brand"?"brand":"outline";this.addAttributes({"data-os-background":i});const o=this.color(),s=this.primaryBtn(),c=this.secondaryBtn(),d=this.headline(),f=this.bodyText(),g=["bg-brand-primary-500"],m=["bg-transparent","border-2","border-brand-primary-500"],y=["text-white"],x=["text-brand-primary-500"],w=["text-white/80"],k=["text-copy-secondary"],S=["!bg-white","!text-brand-primary-500"],A=["bg-brand-primary-500","hover:bg-brand-primary-700","active:bg-brand-primary-300","text-white","shadow-md"],L=["border-2","border-white/60","text-white","hover:bg-white/10"],D=["border-2","border-brand-primary-500","text-brand-primary-500","hover:bg-brand-primary-500","hover:text-white"],W=[...new Set([...g,...m])],j=[...new Set([...y,...x])],et=[...new Set([...w,...k])],z=[...new Set([...S,...A])],B=[...new Set([...L,...D])],X=(Z,F,st)=>
1510{Z&&(F.forEach(q=>Z.removeClass(q)),st.forEach(q=>Z.addClass(q)))};X(o,W,i==="brand"?g:m),X(d,j,i==="brand"?y:x),X(f,et,i==="brand"?w:k),X(s,z,i==="brand"?S:A),X(c,B,i==="brand"?L:D)}}}),a.BlockManager.add("os-action-section",{label:"Aktionsbereich",category:{id:"content",label:"Content"},attributes:{"data-os-group":VD,"data-os-page-type":HD},media:UD,content:WD()})}function qD(a){a.DomComponents.addType("os-app-download",{isComponent(r){return r&&r.getAttribute&&r.getAttribute("data-os-app-download")==="wrap"?{type:"os-app-download"}:!1},model:{defaults:{tagName:"div",draggable:!0,droppable:!0,attributes:{"data-os-app-download":"wrap","data-component-id":"30","data-component-version":"1.0.0","data-component-name":"Landingpage Elemente - Content - App Download Button",class:"w-full block py-2 mb-3 md:px-2 md:flex md:items-center"},traits:[{type:"checkbox",label:"Linker Margin",name:"hasLeftMargin",changeProp:!0,value:!0}],hasLeftMargin:!0},init(){this.on("change:hasLeftMargin",this.handleMarginChange);const r=this.components().at(0);r&&!(r.getAttributes().class||"").split(" ").includes("-ml-2")&&this.get("hasLeftMargin")&&this.set("hasLeftMargin",!1,{silent:!0})},handleMarginChange(){const r=!!this.get("hasLeftMargin"),t=this.components().at(0);if(t){const e=t.getAttributes();let n=(e.class||"").split(" ").filter(Boolean);r?n.includes("-ml-2")||n.push("-ml-2"):n=n.filter(i=>i!=="-ml-2"),t.setAttributes({...e,class:Array.from(new Set(n)).join(" ")})}}}}),a.BlockManager.add("appDownloadButton",{id:"appDownloadButton",label:"App Download Button",category:{id:"content",label:"Content"},attributes:{"data-os-group":"Landingpage Elemente","data-os-page-type":"cue"},content:` 1511 <div 1512 data-gjs-type="os-app-download" 1513 data-os-app-download="wrap" 1514 data-component-id="30" 1515 data-component-version="1.0.0" 1516 data-component-name="Landingpage Elemente - Content - App Download Button" 1517 class="w-full block py-2 mb-3 md:px-2 md:flex md:items-center"> 1518 <a href="" class="mr-3 -ml-2 p-2 no-underline" 1519 data-track-v2-parentposition="Content" 1520 data-track-v2-parent="Landingpage Elemente - Content - App Download Button" 1521 data-track-v2-parentlabel="OS - Inhalt" 1522 data-track-v2-elementposition="1" 1523 data-track-v2-elementtype="Button" 1524 data-track-v2-vendor="Apple" 1525 data-track-v2-link="" 1526 data-track-v2-linktype="External" 1527 data-track-v2-linkgenre="" 1528 data-track-v2-clickaction="app_store"> 1529 <svg id="livetype_Kopie" data-name="livetype Kopie" xmlns="http://www.w3.org/2000/svg" width="160" viewBox="0 0 160 53.48"> <g> <g> <path d="M147.26,0H12.75C12.26,0,11.77,0,11.28,0c-.41,0-.82.01-1.23.02-.9.01-1.79.09-2.68.24-.88.15-1.74.43-2.54.84-.8.41-1.53.94-2.16,1.58-.64.63-1.17,1.37-1.58,2.17-.41.8-.69,1.66-.84,2.54-.15.88-.23,1.78-.24,2.68-.01.41-.01.82-.02,1.23v30.91c0,.42,0,.82.02,1.23.01.9.09,1.79.24,2.68.15.89.43,1.75.84,2.55.41.8.94,1.53,1.58,2.16.63.64,1.36,1.17,2.16,1.58.8.41,1.66.69,2.54.84.89.15,1.78.22,2.68.24.41,0,.82.01,1.23.01.49,0,.97,0,1.46,0h134.51c.48,0,.97,0,1.45,0,.41,0,.83,0,1.23-.01.9-.01,1.79-.09,2.67-.24.89-.15,1.75-.44,2.55-.84.8-.41,1.53-.94,2.16-1.58.64-.63,1.17-1.36,1.58-2.16.4-.8.68-1.66.83-2.55.15-.88.23-1.78.25-2.68,0-.42,0-.82,0-1.23.01-.49.01-.97.01-1.46V12.75c0-.49,0-.98-.01-1.46,0-.41,0-.82,0-1.23-.02-.9-.1-1.79-.25-2.68-.15-.89-.42-1.74-.83-2.54-.83-1.61-2.13-2.92-3.74-3.74-.8-.4-1.66-.69-2.55-.84-.88-.15-1.78-.23-2.67-.24-.41,0-.83-.01-1.23-.02-.48,0-.97,0-1.45,0h0Z" fill="#a6a6a6" stroke-width="0"/> <path d="M11.29,52.31c-.41,0-.8,0-1.21-.01-.84-.01-1.67-.08-2.5-.22-.77-.13-1.52-.38-2.22-.73-.69-.35-1.32-.81-1.87-1.36-.55-.54-1.01-1.17-1.36-1.87-.35-.7-.6-1.44-.73-2.22-.14-.83-.21-1.67-.22-2.51,0-.28-.02-1.22-.02-1.22V11.29s.01-.92.02-1.2c.01-.84.08-1.68.22-2.5.13-.77.37-1.52.73-2.22.35-.69.81-1.32,1.36-1.87.55-.55,1.18-1.01,1.88-1.37.7-.35,1.44-.6,2.21-.73.83-.14,1.67-.21,2.51-.22l1.21-.02h137.41l1.22.02c.83,0,1.66.08,2.48.22.78.13,1.53.38,2.23.73,1.39.72,2.52,1.85,3.23,3.24.35.69.59,1.44.72,2.2.14.83.22,1.68.23,2.52,0,.38,0,.79,0,1.19.01.5.
152901.98.01,1.46v27.98c0,.49,0,.96-.01,1.44,0,.43,0,.83,0,1.24-.02.83-.09,1.66-.23,2.48-.12.78-.37,1.53-.72,2.23-.35.69-.81,1.31-1.36,1.85-.55.55-1.18,1.01-1.87,1.37-.7.36-1.45.6-2.23.74-.83.13-1.66.21-2.5.22-.39,0-.8.01-1.2.01h-1.45s-135.97,0-135.97,0Z" fill="#000" stroke-width="0"/> </g> <g id="_Group_" data-name=" Group "> <g id="_Group_2" data-name=" Group 2"> <g id="_Group_3" data-name=" Group 3"> <path id="_Path_" data-name=" Path " d="M33.12,27.14c.03-2.27,1.22-4.36,3.15-5.55-1.22-1.75-3.2-2.82-5.34-2.88-2.25-.24-4.42,1.34-5.57,1.34s-2.93-1.32-4.82-1.28c-2.5.08-4.77,1.47-5.98,3.65-2.59,4.48-.66,11.06,1.82,14.68,1.24,1.77,2.69,3.75,4.58,3.68,1.85-.08,2.55-1.18,4.79-1.18s2.87,1.18,4.8,1.14c1.99-.03,3.24-1.78,4.44-3.57.89-1.26,1.58-2.66,2.03-4.13-2.36-1-3.9-3.32-3.9-5.88Z" fill="#fff" stroke-width="0"/> <path id="_Path_2" data-name=" Path 2" d="M29.47,16.33c1.09-1.3,1.62-2.98,1.49-4.67-1.66.17-3.19.97-4.29,2.22-1.09,1.24-1.64,2.85-1.53,4.49,1.68.02,3.28-.74,4.33-2.05Z" fill="#fff" stroke-width="0"/> </g> </g> <g> <path d="M56.56,36.29h-6.33l-1.52,4.49h-2.68l5.99-16.6h2.79l5.99,16.6h-2.73l-1.52-4.49ZM50.89,34.22h5.02l-2.47-7.28h-.07l-2.47,7.28Z" fill="#fff" stroke-width="0"/> <path d="M73.75,34.72c0,3.76-2.01,6.18-5.05,6.18-1.57.08-3.05-.74-3.81-2.12h-.06v6h-2.48v-16.11h2.41v2.01h.05c.79-1.37,2.27-2.19,3.85-2.14,3.07,0,5.1,2.43,5.1,6.18ZM71.2,34.72c0-2.45-1.27-4.06-3.2-4.06s-3.18,1.65-3.18,4.06,1.28,4.07,3.18,4.07,3.2-1.6,3.2-4.07Z" fill="#fff" stroke-width="0"/> <path d="M87.08,34.72c0,3.76-2.01,6.18-5.05,6.18-1.57.08-3.05-.74-3.81-2.12h-.06v6h-2.48v-16.11h2.41v2.01h.05c.79-1.37,2.27-2.19,3.85-2.14,3.07,0,5.1,2.43,5.1,6.18ZM84.52,34.72c0-2.45-1.27-4.06-3.2-4.06s-3.18,1.65-3.18,4.06,1.28,4.07,3.18,4.07,3.2-1.6,3.2-4.07h0Z" fill="#fff" stroke-width="0"/> <path d="M95.88,36.15c.18,1.65,1.78,2.73,3.97,2.73s3.6-1.08,3.6-2.57c0-1.29-.91-2.06-3.06-2.59l-2.15-.52c-3.05-.74-4.46-2.16-4.46-4.48,0-2.86,2.5-4.83,6.04-4.83s5.91,1.97,5.99,4.83h-2.51c-.15-1.66-1.52-2.66-3.52-2.66s-3.37,1.01-3.37,2.48c0,1.17.87,1.86,3.01,2.39l1.83.45c3.41.81,4.82,2.17,4.82,4.6,0,3.11-2.47,5.05-6.41,5.05-3.68,0-6.17-1.9-6.33-4.9h2.54Z" fill="#fff" stroke-width="0"/> <path d="M111.44,25.81v2.86h2.3v1.97h-2.3v6.67c0,1.04.46,1.52,1.47,1.52.27,0,.55-.02.82-.06v1.96c-.45.09-.92.12-1.38.11-2.45,0-3.41-.92-3.41-3.27v-6.94h-1.76v-1.97h1.76v-2.86h2.5Z" fill="#fff" stroke-width="0"/> <path d="M115.08,34.72c0-3.81,2.24-6.2,5.74-6.2s5.74,2.39,5.74,6.2-2.22,6.2-5.74,6.2-5.74-2.38-5.74-6.2ZM124.03,34.72c0-2.61-1.2-4.15-3.21-4.15s-3.21,1.55-3.21,4.15,1.2,4.15,3.21,4.15,3.21-1.53,3.21-4.15h0Z" fill="#fff" stroke-width="0"/> <path d="M128.61,28.67h2.37v2.06h.06c.33-1.33,1.55-2.24,2.91-2.19.29,0,.57.03.85.09v2.32c-.36-.11-.74-.16-1.12-.15-1.38-.06-2.55,1.02-2.6,2.4,0,.13,0,.26.01.38v7.18h-2.48v-12.11Z" fill="#fff" stroke-width="0"/> <path d="M146.26,37.22c-.33,2.2-2.47,3.71-5.21,3.71-3.52,0-5.71-2.36-5.71-6.14s2.2-6.26,5.6-6.26,5.46,2.3,5.46,5.97v.85h-8.55v.15c-.15,1.73,1.13,3.27,2.86,3.42.13.01.26.02.39.01,1.21.11,2.34-.58,2.8-1.7h2.36ZM137.86,33.61h6.05c.09-1.61-1.14-2.98-2.74-3.07-.07,0-.15,0-.22,0-1.69-.01-3.07,1.35-3.08,3.05,0,0,0,.02,0,.03Z" fill="#fff" stroke-width="0"/> </g> </g> </g> <g id="_Group_4" data-name=" Group 4"> <g> <path d="M52.67,19.65h-4.98v-7.98h1.24v6.84h3.74v1.14Z" fill="#fff" stroke-width="0"/> <path d="M53.92,17.95c0-1.08.81-1.71,2.24-1.8l1.63-.09v-.52c0-.64-.42-.99-1.23-.99-.66,0-1.12.24-1.25.67h-1.15c.12-1.03,1.09-1.7,2.46-1.7,1.51,0,2.36.75,2.36,2.02v4.11h-1.14v-.85h-.09c-.39.62-1.08.98-1.81.95-1,.1-1.89-.62-2-1.62,0-.06,0-.12,0-.18ZM57.79,17.44v-.5l-1.47.09c-.83.06-1.21.34-1.21.87s.47.86,1.12.86c.78.08,1.48-.49,1.56-1.27,0-.02,0-.03,0-.05Z" fill="#fff" stroke-width="0"/> <path d="M60.54,16.64c0-1.9.98-3.11,2.5-3.11.77-.04,1.49.38,1.85,1.06h.09v-3.31h1.
152919v8.37h-1.14v-.95h-.09c-.39.67-1.11,1.08-1.89,1.05-1.53,0-2.5-1.21-2.5-3.11ZM61.77,16.64c0,1.28.6,2.05,1.61,2.05s1.62-.78,1.62-2.04-.63-2.05-1.62-2.05-1.61.77-1.61,2.04h0Z" fill="#fff" stroke-width="0"/> <path d="M73.2,18.03c-.33,1.14-1.43,1.87-2.61,1.74-1.51.04-2.77-1.15-2.81-2.66,0-.15,0-.3.02-.45-.2-1.52.86-2.92,2.38-3.12.13-.02.26-.03.39-.02,1.68,0,2.69,1.14,2.69,3.04v.41h-4.25v.07c-.07.88.58,1.65,1.45,1.72.05,0,.1,0,.15,0,.58.07,1.15-.22,1.43-.73h1.14ZM69.02,16.09h3.04c.06-.8-.54-1.5-1.34-1.56-.05,0-.09,0-.14,0-.85-.01-1.55.67-1.56,1.52,0,.01,0,.03,0,.04h0Z" fill="#fff" stroke-width="0"/> <path d="M74.87,13.63h1.14v.96h.09c.31-.7,1.03-1.13,1.8-1.07,1.08-.08,2.02.73,2.1,1.81.01.14,0,.29-.02.43v3.9h-1.19v-3.6c0-.97-.42-1.45-1.3-1.45-.76-.04-1.41.55-1.44,1.32,0,.07,0,.14,0,.21v3.52h-1.19v-6.02Z" fill="#fff" stroke-width="0"/> <path d="M84.93,11.85c-.03-.42.3-.79.72-.81.42-.03.79.3.81.72s-.3.79-.72.81c-.02,0-.03,0-.05,0-.4.02-.75-.29-.77-.69,0-.01,0-.02,0-.03ZM85.11,13.63h1.18v6.02h-1.18v-6.02Z" fill="#fff" stroke-width="0"/> <path d="M88.21,13.63h1.14v.97h.09c.41-.92,1.49-1.34,2.41-.93.41.18.74.51.93.93h.09c.34-.69,1.06-1.11,1.83-1.08.98-.08,1.85.65,1.93,1.64,0,.12,0,.24,0,.35v4.15h-1.19v-3.84c0-.81-.39-1.21-1.17-1.21-.67-.03-1.24.49-1.27,1.17,0,.03,0,.06,0,.1v3.79h-1.17v-3.95c.03-.58-.42-1.07-1-1.1-.05,0-.11,0-.16,0-.72.01-1.29.6-1.27,1.32,0,.02,0,.03,0,.05v3.68h-1.19v-6.02Z" fill="#fff" stroke-width="0"/> </g> </g> </svg> 1530 </a> 1531 <a href="" class="mr-3 p-2 no-underline" 1532 data-track-v2-parentposition="Content" 1533 data-track-v2-parent="Landingpage Elemente - Content - App Download Button" 1534 data-track-v2-parentlabel="OS - Inhalt" 1535 data-track-v2-elementposition="2" 1536 data-track-v2-elementtype="Button" 1537 data-track-v2-vendor="Google" 1538 data-track-v2-link="" 1539 data-track-v2-linktype="External" 1540 data-track-v2-linkgenre="" 1541 data-track-v2-clickaction="google_play"> 1542 <svg id="livetype" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="160" viewBox="0 0 160 53.48"> <defs> <linearGradient id="Unbenannter_Verlauf_4" data-name="Unbenannter Verlauf 4" x1="36.43" y1="1058.59" x2="7.77" y2="1058.59" gradientTransform="translate(0 -1030.59)" gradientUnits="userSpaceOnUse"> <stop offset="0" stop-color="#fee000"/> <stop offset=".19" stop-color="#fccf0b"/> <stop offset=".55" stop-color="#fab318"/> <stop offset=".83" stop-color="#f9a21b"/> <stop offset="1" stop-color="#f99b1c"/> </linearGradient> <linearGradient id="Unbenannter_Verlauf_2" data-name="Unbenannter Verlauf 2" x1="28.99" y1="1061.24" x2="2.03" y2="1088.19" gradientTransform="translate(0 -1030.59)" gradientUnits="userSpaceOnUse"> <stop offset="0" stop-color="#ef4547"/> <stop offset="1" stop-color="#c6186d"/> </linearGradient> <linearGradient id="Unbenannter_Verlauf_3" data-name="Unbenannter Verlauf 3" x1="1.89" y1="1028.78" x2="23.89" y2="1050.79" gradientTransform="translate(0 -1030.59)" gradientUnits="userSpaceOnUse"> <stop offset="0" stop-color="#279e6f"/> <stop offset=".32" stop-color="#4dab6d"/> <stop offset=".74" stop-color="#6aba6a"/> <stop offset="1" stop-color="#74c169"/> </linearGradient> </defs> <g> <path d="M147.26,0H12.75C12.26,0,11.77,0,11.28,0c-.41,0-.82.01-1.23.02-.9.01-1.79.09-2.68.24-.88.15-1.74.43-2.54.84-.8.41-1.53.94-2.16,1.58-.64.63-1.17,1.37-1.58,2.17-.41.8-.69,1.66-.84,2.54-.15.88-.23,1.78-.24,2.68-.01.41-.01.82-.02,1.23v30.91c0,.42,0,.82.02,1.23.01.9.09,1.79.24,2.68.15.89.43,1.75.84,2.55.41.8.94,1.53,1.58,2.16.63.64,1.36,1.17,2.16,1.58.8.41,1.66.69,2.54.84.89.15,1.78.22,2.68.24.41,0,.82.01,1.23.01.49,0,.97,0,1.46,0h134.51c.48,0,.97,0,1.45,0,.41,0,.83,0,1.23-.01.9-.01,1.79-.09,2.67-.24.89-.15,1.75-.44,2.55-.84.8-.41,1.53-.94,2.16-1.58.64-.63,1.17-1.36,1.58-2.16.4-.8.68-1.66.83-2.55.15-.88.23-1.78.25-2.68,0-.42,0-.82,0-1.23.01-.49.01-.97.01-1.46V12.75c0-.49,0-.98-.01-1.46,0-.41,0-.82,0-1.23-.02-.9-.1-1.79-.25-2.68-.15-.89-.42-1.74-.83-2.54-.83-1.61-2.13-2.92-3.74-3.74-.8-.4-1.66-.69-2.55-.84-.88-.15-1.78-.23-2.67-.24-.41,0-.83-.01-1.23-.02-.48,0-.97,0-1.45,0h0Z" fill="#a6a6a6" stroke-width="0"/> <path d="M11.29,52.31c-.41,0-.8,0-1.21-.01-.84-.01-1.67-.08-2.5-.22-.77-.13-1.52-.38-2.22-.73-.69-.35-1.32-.81-1.87-1.36-.55-.54-1.01-1.17-1.36-1.87-.35-.7-.6-1.44-.73-2.22-.14-.83-.21-1.67-.22-2.51,0-.28-.02-1.22-.02-1.22V11.29s.01-.92.02-1.2c.01-.84.08-1.68.22-2.5.13-.77.37-1.52.73-2.22.35-.69.81-1.32,1.36-1.87.55-.55,1.18-1.01,1.88-1.37.7-.35,1.44-.6,2.21-.73.83-.14,1.67-.21,2.51-.22l1.21-.02h137.41l1.22.02c.83,0,1.66.08,2.48.22.78.13,1.53.38,2.23.73,1.39.72,2.52,1.85,3.23,3.24.35.69.59,1.44.72,2.2.14.83.22,1.68.23,2.52,0,.38,0,.79,0,1.19.01.5.
154201.98.01,1.46v27.98c0,.49,0,.96-.01,1.44,0,.43,0,.83,0,1.24-.02.83-.09,1.66-.23,2.48-.12.78-.37,1.53-.72,2.23-.35.69-.81,1.31-1.36,1.85-.55.55-1.18,1.01-1.87,1.37-.7.36-1.45.6-2.23.74-.83.13-1.66.21-2.5.22-.39,0-.8.01-1.2.01h-1.45s-135.97,0-135.97,0Z" fill="#000" stroke-width="0"/> </g> <g> <path d="M80.29,30.08c-2.84,0-5.1,2.13-5.1,5.1s2.25,5.1,5.1,5.1,5.1-2.13,5.1-5.1-2.25-5.1-5.1-5.1ZM80.29,38.14c-1.54,0-2.84-1.3-2.84-3.08s1.3-3.08,2.84-3.08,2.84,1.19,2.84,3.08c0,1.78-1.3,3.08-2.84,3.08ZM69.27,30.08c-2.84,0-5.1,2.13-5.1,5.1s2.25,5.1,5.1,5.1,5.1-2.13,5.1-5.1-2.25-5.1-5.1-5.1ZM69.27,38.14c-1.54,0-2.84-1.3-2.84-3.08s1.3-3.08,2.84-3.08,2.84,1.19,2.84,3.08c0,1.78-1.3,3.08-2.84,3.08ZM56.11,31.62v2.13h5.1c-.12,1.19-.59,2.13-1.19,2.73-.71.71-1.9,1.54-3.91,1.54-3.2,0-5.57-2.49-5.57-5.69s2.49-5.69,5.57-5.69c1.66,0,2.96.71,3.91,1.54l1.54-1.54c-1.3-1.19-2.96-2.13-5.33-2.13-4.27,0-7.94,3.56-7.94,7.82s3.67,7.82,7.94,7.82c2.37,0,4.03-.71,5.45-2.25,1.42-1.42,1.9-3.44,1.9-4.98,0-.47,0-.95-.12-1.3,0,0-7.35,0-7.35,0ZM109.92,33.28c-.47-1.19-1.66-3.2-4.27-3.2s-4.74,2.01-4.74,5.1c0,2.84,2.13,5.1,4.98,5.1,2.25,0,3.67-1.42,4.15-2.25l-1.66-1.19c-.59.83-1.3,1.42-2.49,1.42s-1.9-.47-2.49-1.54l6.76-2.84-.24-.59h0ZM103.05,34.94c0-1.9,1.54-2.96,2.61-2.96.83,0,1.66.47,1.9,1.07l-4.5,1.9h-.01ZM97.48,39.8h2.25v-14.81h-2.25v14.81ZM93.92,31.14h0c-.59-.59-1.54-1.19-2.73-1.19-2.49,0-4.86,2.25-4.86,5.1s2.25,4.98,4.86,4.98c1.19,0,2.13-.59,2.61-1.19h.12v.71c0,1.9-1.07,2.96-2.73,2.96-1.3,0-2.25-.95-2.49-1.78l-1.9.83c.59,1.3,2.01,2.96,4.5,2.96s4.74-1.54,4.74-5.21v-9.01h-2.13v.83h.01ZM91.31,38.14c-1.54,0-2.84-1.3-2.84-3.08s1.3-3.08,2.84-3.08,2.73,1.3,2.73,3.08-1.19,3.08-2.73,3.08ZM120.23,24.98h-5.33v14.81h2.25v-5.57h3.08c2.49,0,4.86-1.78,4.86-4.62s-2.37-4.62-4.86-4.62ZM120.35,32.09h-3.2v-5.1h3.2c1.66,0,2.61,1.42,2.61,2.49-.12,1.3-1.07,2.61-2.61,2.61ZM133.98,29.96c-1.66,0-3.32.71-3.91,2.25l2.01.83c.47-.83,1.19-1.07,2.01-1.07,1.19,0,2.25.71,2.37,1.9v.12c-.36-.24-1.3-.59-2.25-.59-2.13,0-4.27,1.19-4.27,3.32,0,2.01,1.78,3.32,3.67,3.32,1.54,0,2.25-.71,2.84-1.42h.12v1.19h2.13v-5.69c-.24-2.61-2.25-4.15-4.74-4.15h.02ZM133.74,38.14c-.71,0-1.78-.36-1.78-1.3,0-1.19,1.3-1.54,2.37-1.54.95,0,1.42.24,2.01.47-.24,1.42-1.42,2.37-2.61,2.37h.01ZM146.19,30.31l-2.49,6.4h-.12l-2.61-6.4h-2.37l3.91,9.01-2.25,4.98h2.25l6.04-13.99h-2.37,0ZM126.28,39.8h2.25v-14.81h-2.25v14.81Z" fill="#fff" stroke-width="0"/> <g> <path d="M11.91,13.13c-.36.47-.47.95-.47,1.78v26.07c0,.71.24,1.3.59,1.66l.12.12,14.7-14.7v-.24l-14.93-14.7h-.01Z" fill="#5bc9f4" stroke-width="0"/> <path d="M31.58,33.04l-4.86-4.86v-.36l4.86-4.86.12.12,5.81,3.32c1.66.95,1.66,2.49,0,3.44l-5.93,3.2h0Z" fill="url(#Unbenannter_Verlauf_4)" stroke-width="0"/> <path d="M31.7,32.92l-4.98-4.98-14.81,14.81c.59.59,1.42.59,2.49.12l17.3-9.96" fill="url(#Unbenannter_Verlauf_2)" stroke-width="0"/> <path d="M31.7,22.97L14.39,13.13c-1.07-.59-1.9-.47-2.49.12l14.81,14.7,4.98-4.98h0Z" fill="url(#Unbenannter_Verlauf_3)" stroke-width="0"/> </g> <g> <path d="M50.54,19.77c-.47,0-.95-.12-1.3-.47-.36-.24-.59-.71-.83-1.19l.83-.36c.24.71.59,1.07,1.3,1.07.47,0,.71-.12.95-.36s.36-.59.36-1.07v-4.86h.95v4.86c0,.83-.24,1.42-.59,1.78-.47.47-.95.59-1.66.59h-.01Z" fill="#fff" stroke="#fff" stroke-miterlimit="10" stroke-width=".2"/> <path d="M58.48,13.37h-3.2v2.25h2.96v.83h-2.96v2.25h3.2v.95h-4.15v-7.11h4.15v.83Z" fill="#fff" stroke="#fff" stroke-miterlimit="10" stroke-width=".2"/> <path d="M62.39,19.65h-.95v-6.28h-2.01v-.83h4.86v.83h-1.9s0,6.28,0,6.28Z" fill="#fff" stroke="#fff" stroke-miterlimit="10" stroke-width=".2"/> <path d="M65.12,19.65v-.95l3.79-5.33h-3.67v-.83h4.74v.95l-3.79,5.33h3.79v.83h-4.86Z" fill="#fff" stroke="#fff" stroke-miterlimit="10" stroke-width=".2"/> <path d="M73.65,19.65h-.95v-6.28h-2.01v-.83h4.86v.83h-2.01v6.28h.12-.01Z" fill="#fff" stroke="#fff" stroke-miterlimit="10" stroke-width=".2"/> <path d="M79.22,19.65v-7.11h2.61c.59,0,1.07.24,1.42.59.36.36.59.83.59,1.42,0,.36-.12.59-.24.95-.12.24-.36.47-.71.59h0c.36.12.59.36.83.59s.36.59.36,1.07c0,.59-.24,1.07-.59,1.42-.47.24-.95.47-1.54.47h-2.73ZM80.17,15.62h1.66c.36,0,.59-.12.83-.36s.36-.47.36-.71-.12-.47-.36-.71-.47-.36-.83-.36h-1.66v2.13h0ZM80.17,18.82h1.9c.36,0,.59-.12.83-.36s.36-.47.36-.83c0-.24-.12-.59-.36-.83s-.47-.36-.83-.36h-1.9v2.37h0Z" fill="#fff" stroke="#fff" stroke-miterlimit="10" stroke-width=".2"/> <path d="M89.54,13.37h-3.2v2.25h2.96v.83h-2.96v2.25h3.2v.95h-4.15v-7.11h4.15v.83Z" fill="#fff" stroke="#fff" stroke-miterlimit="10" stroke-width=".2"/> <path d="M90.96,19.65v-7.11h.95v7.11h-.95Z" fill="#fff" stroke="#fff" stroke-miterlimit="10" stroke-width=".2"/> </g> </g> </svg> 1543 </a> 1544 </div> 1545 `,media:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><rect width="161.8" height="100" x="30.1" y="150" fill="#757575" rx="9.8" ry="9.8"/><rect width="161.8" height="100" x="208.1" y="150" fill="#757575" rx="9.8" ry="9.8"/><path fill="#efefef" d="M127.3 201.5c0-4.7 2.1-8.3 6.4-10.9-2.4-3.5-6.1-5.4-10.9-5.8-4.6-.4-9.6 2.7-11.4 2.7s-6.4-2.5-9.9-2.5c-7.2.1-14.8 5.7-14.8 17.2s.6 6.9 1.9 10.5c1.7 4.7 7.6 16.3 13.8 16.1 3.2 0 5.5-2.3 9.8-2.3s6.2 2.3 9.9 2.3c6.3 0 11.7-10.6 13.2-15.4-8.4-4-8-11.6-8-11.9Zm-7.3-21.1c3.5-4.2 3.2-8 3.1-9.4-3.1.2-6.7 2.1-8.8 4.5-2.3 2.6-3.6 5.7-3.3 9.3 3.4.3 6.4-1.5 9-4.4ZM305.9 210.6c-1.7 0-3.1-1.4-3.1-3.1s1.4-3.1 3.1-3.1 3.1 1.4 3.1 3.1-1.4 3.1-3.1 3.1m-33.7 0c-1.7 0-3.1-1.4-3.1-3.1s1.4-3.1 3.1-3.1 3.1 1.4 3.1 3.1-1.4 3.1-3.1 3.1m34.8-18.4 6.1-10.6c.4-.6.2-1.4-.4-1.8-.6-.4-1.4-.2-1.8.4l-6.2 10.7c-10-4.5-21.4-4.5-31.4 0l-6.2-10.7c-.3-.6-1.1-.9-1.7-.5s-.9 1.1-.5 1.7L271 192c-10.5 5.7-17.6 16.3-18.7 28.8h73.3c-1-12.5-8.2-23.1-18.7-28.8"/></svg>'})}const KD="46",GD="1.0.0",YD="Landingpage Elemente - Content - App-Showcase",o2=1,fg=8,XD=5,ta={smartphone:{wrap:"w-[280px] max-w-full",ratio:"280 / 580",frame:"rounded-[2rem]
1545sm:rounded-[2.8rem] border-[8px] sm:border-[10px]",placeholder:"280x580"},tablet:{wrap:"w-[420px] max-w-full",ratio:"4 / 3",frame:"rounded-[1.5rem] sm:rounded-[2rem] border-[10px] sm:border-[12px]",placeholder:"420x315"}},JD="app-showcase-item relative text-left w-full p-5 rounded-xl border shadow-sm cursor-pointer bg-white dark:bg-dark-surface border-slate-200 dark:border-dark-border transition-shadow duration-300 hover:shadow-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-400",QD="app-showcase-item__bg absolute inset-0 rounded-xl border-2 pointer-events-none bg-brand-primary-50 border-brand-primary-500",tI="app-showcase-screen absolute inset-0 block",s2=[{icon:"material-symbols:location-on",title:"Ihre Region, live",text:"Alle Nachrichten aus dem Ruhrgebiet, NRW, Deutschland und der Welt"},{icon:"material-symbols:favorite",title:"Für Sie kuratiert",text:'Personalisierte Push-Meldungen und âFür Mich"-Bereich'},{icon:"material-symbols:swipe",title:"Intuitiv bedienen",text:"Bezirksauswahl und Wisch-Menü, das sich anfühlt wie gemacht für Sie"},{icon:"material-symbols:extension",title:"Mehr als Nachrichten",text:"Rätsel, Games und Teilen-Funktion direkt in der App"},{icon:"material-symbols:schedule",title:"Immer aktuell",text:"Stündlich neue Meldungen â Sie verpassen nichts"}];function _3(a,r){const t=r??{icon:"material-symbols:check-circle",title:`Feature ${a}`,text:"Kurze Beschreibung des Vorteils."};return`<button type="button" role="tab" 1546 aria-selected="${a===1}" 1547 tabindex="${a===1?"0":"-1"}" 1548 data-app-showcase-item="${a}" 1549 data-gjs-draggable="false" data-gjs-copyable="false" data-gjs-removable="false" 1550 class="${JD}"><span aria-hidden="true" 1551 data-app-showcase-overlay="wrap" 1552 style="opacity:${a===1?1:0}" 1553 data-gjs-selectable="false" data-gjs-hoverable="false" data-gjs-layerable="false" 1554 class="${QD}"></span><span class="relative z-10 flex items-center gap-3"><iconify-icon 1555 icon="${t.icon}" 1556 class="shrink-0 text-brand-primary-500" 1557 style="font-size:24px" aria-hidden="true"></iconify-icon><span class="block"><strong class="block text-slate-900 dark:text-white">${t.title}</strong><span class="block text-sm text-slate-500 dark:text-dark-muted">${t.text}</span></span></span></button>`}function C3(a,r="smartphone"){const t=ta[r].placeholder;return`<picture data-app-showcase-screen="${a}" 1558 data-active="${a===1}" 1559 style="opacity:${a===1?1:0};z-index:${a===1?10:0}" 1560 data-gjs-draggable="false" data-gjs-copyable="false" data-gjs-removable="false" 1561 class="${tI}"><img src="https://placehold.co/${t}?text=Screenshot_${a}_${t}px" 1562 alt="" loading="lazy" decoding="async" data-gjs-type="image" 1563 data-gjs-draggable="false" data-gjs-copyable="false" 1564 data-gjs-removable="false" data-gjs-resizable="false" 1565 class="w-full h-full object-cover skeleton"></picture>`}function eI(){const a=s2.map((t,e)=>_3(e+1,t)).join(""),r=s2.map((t,e)=>C3(e+1)).join("");return` 1566<section data-app-showcase="wrap" 1567 data-component-id="${KD}" 1568 data-component-version="${GD}" 1569 data-component-name="${YD}" 1570 data-app-showcase-count="${XD}" 1571 data-app-showcase-active="1" 1572 data-app-showcase-device="smartphone" 1573 data-app-showcase-media-position="left" 1574 aria-label="App-Showcase" 1575 class="relative w-screen left-1/2 -translate-x-1/2 overflow-hidden py-12 sm:py-16"> 1576 <div data-app-showcase-container="wrap" class="mx-auto px-3 sm:px-6 max-w-[960px]"> 1577 1578 <div class="flex items-center gap-4 mb-8 max-w-[905px] mx-auto"> 1579 <div class="w-14 h-14 shrink-0 rounded-2xl flex items-center justify-center bg-brand-primary-50 text-brand-primary-500"> 1580 <iconify-icon icon="material-symbols:smartphone" style="font-size:30px" aria-hidden="true"></iconify-icon> 1581 </div> 1582 <div> 1583 <h3 class="text-2xl font-bold text-slate-900 dark:text-white mb-0">News App</h3> 1584 <p class="text-slate-500 dark:text-dark-muted mb-0">
1584Ihr Journalismus, immer dabei</p> 1585 </div> 1586 </div> 1587 1588 <div data-app-showcase-layout="wrap" 1589 data-gjs-draggable="false" data-gjs-copyable="false" data-gjs-removable="false" 1590 class="flex flex-col lg:flex-row justify-center items-center gap-6 lg:gap-8"> 1591 1592 <div data-app-showcase-media="wrap" 1593 data-gjs-draggable="false" data-gjs-copyable="false" data-gjs-removable="false" 1594 class="flex justify-center w-full lg:w-auto lg:shrink-0 min-w-0"> 1595 <div data-app-showcase-devicewrap="wrap" 1596 data-gjs-draggable="false" data-gjs-copyable="false" data-gjs-removable="false" 1597 class="relative shrink-0 ${ta.smartphone.wrap}"> 1598 <div aria-hidden="true" 1599 data-gjs-selectable="false" data-gjs-hoverable="false" data-gjs-layerable="false" 1600 class="absolute -inset-6 sm:-inset-8 -z-10 rounded-full blur-3xl opacity-60 bg-brand-primary-50"></div> 1601 <div data-app-showcase-frame="wrap" 1602 data-gjs-draggable="false" data-gjs-copyable="false" data-gjs-removable="false" 1603 style="aspect-ratio: ${ta.smartphone.ratio}" 1604 class="relative w-full bg-slate-900 border-slate-900 shadow-2xl overflow-hidden ${ta.smartphone.frame}"> 1605 <div data-app-showcase-notch="wrap" aria-hidden="true" 1606 data-gjs-selectable="false" data-gjs-hoverable="false" data-gjs-layerable="false" 1607 class="absolute top-0 left-1/2 -translate-x-1/2 w-24 sm:w-32 h-5 sm:h-6 bg-slate-900 rounded-b-2xl z-20"></div> 1608 <div data-app-showcase-camera="wrap" aria-hidden="true" 1609 data-gjs-selectable="false" data-gjs-hoverable="false" data-gjs-layerable="false" 1610 class="hidden absolute left-2 top-1/2 -translate-y-1/2 w-1.5 h-1.5 bg-slate-600 rounded-full z-20"></div> 1611 <div data-app-showcase-stage="wrap" 1612 data-gjs-draggable="false" data-gjs-copyable="false" data-gjs-removable="false" 1613 class="relative w-full h-full bg-slate-100 dark:bg-neutral-800 overflow-hidden">${r}</div> 1614 </div> 1615 </div> 1616 </div> 1617 1618 <div data-app-showcase-list="wrap" role="tablist" aria-label="App-Features" 1619 data-gjs-draggable="false" data-gjs-copyable="false" data-gjs-removable="false" 1620 class="w-full max-w-md flex flex-col gap-3">${a}</div> 1621 1622 </div> 1623 </div> 1624</section>`}function rI(a){a.DomComponents.addType("app-showcase-container",{isComponent(r){return r&&r.getAttribute&&r.getAttribute("data-app-showcase-container")==="wrap"?{type:"app-showcase-container"}:!1},model:{defaults:{draggable:!1,copyable:!1,removable:!1,droppable:!0,wide_content:!1},init(){this.on("change:wide_content",this.handleWideContentChange),this.handleWideContentChange()},handleWideContentChange(){const r=!!this.get("wide_content"),t=this.getAttributes()||{},e=String(t.class||"").split(" ").filter(n=>n&&!n.startsWith("max-w-"));e.push(r?"max-w-[1280px]":"max-w-[960px]"),this.setAttributes({...t,class:e.join(" ")})}}}),a.DomComponents.addType("app-showcase",{isComponent(r){return r&&r.getAttribute&&r.getAttribute("data-app-showcase")==="wrap"?{type:"app-showcase"}:!1},model:{defaults:{traits:[{type:"number",label:"Anzahl Punkte",name:"data-app-showcase-count",min:o2,max:fg,step:1},{type:"number",label:"Aktiver Punkt (Editor-Vorschau)",name:"data-app-showcase-active",min:1,max:fg,step:1},{type:"select",label:"Gerät",name:"data-app-showcase-device",options:[{id:"smartphone",name:"Smartphone"},{id:"tablet",name:"Tablet"}]},{type:"select",label:"Gerät-Position (Desktop)",name:"data-app-showcase-media-position",options:[{id:"left",name:"Links"},{id:"right",name:"Rechts"}]}]},init(){this.on("change:attributes",()=>{var r;return(r=this.syncAll)==null?void 0:r.call(this)})},syncAll(){const r=this;if(!r.__asSyncing){r.__asSyncing=!0;try{r.syncCount(),r.syncDevice(),r.syncPosition(),r.syncActive()}catch(t){typeof console<"u"&&console.warn("[app-showcase] Sync fehlgeschlagen:",t)}finally{r.__asSyncing=!1}}},collect(r){const t=this.find(`[${r}]`)||[];return Array.isArray(t)?t:[]},syncCount(){const r=(this.find('[data-app-showcase-list="wrap"]')||[])[0],t=(this.find('[data-app-showcase-stage="wrap"]')||[])[0];if(!r||!t)return;const e=this.getAttributes()["data-app-showcase-count"],n=parseInt(String(e??""),10);if(isNaN(n))return;const i=Math.max(o2,Math.min(fg,n)),o=this.collect("data-app-showcase-item"),s=this.collect("data-app-showcase-screen"),c=Math.min(o.length,s.length);if(c<i){const d=Array.from({length:i-c},(g,m)=>_3(c+m+1)).join(""),f=Array.from({length:i-c},(g,m)=>C3(c+m+1)).join("");r.components().add(d),t.components().add(f)}else c>
1624i&&(o.slice(i).forEach(d=>{var f;return(f=d==null?void 0:d.remove)==null?void 0:f.call(d)}),s.slice(i).forEach(d=>{var f;return(f=d==null?void 0:d.remove)==null?void 0:f.call(d)}));this.renumber(),String(i)!==String(e)&&this.addAttributes({"data-app-showcase-count":String(i)})},renumber(){this.collect("data-app-showcase-item").forEach((r,t)=>{var i,o;const e=((i=r.getAttributes)==null?void 0:i.call(r))||{},n=String(t+1);e["data-app-showcase-item"]!==n&&((o=r.addAttributes)==null||o.call(r,{"data-app-showcase-item":n}))}),this.collect("data-app-showcase-screen").forEach((r,t)=>{var i,o;const e=((i=r.getAttributes)==null?void 0:i.call(r))||{},n=String(t+1);e["data-app-showcase-screen"]!==n&&((o=r.addAttributes)==null||o.call(r,{"data-app-showcase-screen":n}))})},syncActive(){const r=this.getAttributes(),t=this.collect("data-app-showcase-item");if(!t.length)return;const e=parseInt(String(r["data-app-showcase-active"]??""),10);if(isNaN(e))return;const n=Math.max(1,Math.min(t.length,e));t.forEach((i,o)=>{var d,f,g;const s=o+1===n;(d=i.addAttributes)==null||d.call(i,{"aria-selected":s?"true":"false",tabindex:s?"0":"-1"});const c=(((f=i.find)==null?void 0:f.call(i,'[data-app-showcase-overlay="wrap"]'))||[])[0];(g=c==null?void 0:c.addAttributes)==null||g.call(c,{style:`opacity:${s?1:0}`})}),this.collect("data-app-showcase-screen").forEach((i,o)=>{var c;const s=o+1===n;(c=i.addAttributes)==null||c.call(i,{"data-active":s?"true":"false",style:`opacity:${s?1:0};z-index:${s?10:0}`})}),String(n)!==String(r["data-app-showcase-active"])&&this.addAttributes({"data-app-showcase-active":String(n)})},syncDevice(){var s;const r=(this.find('[data-app-showcase-devicewrap="wrap"]')||[])[0],t=(this.find('[data-app-showcase-frame="wrap"]')||[])[0],e=(this.find('[data-app-showcase-notch="wrap"]')||[])[0],n=(this.find('[data-app-showcase-camera="wrap"]')||[])[0];if(!t||!r)return;const i=String(this.getAttributes()["data-app-showcase-device"]||"")==="tablet"?"tablet":"smartphone",o=i==="tablet"?"smartphone":"tablet";pg(r,ta[o].wrap,ta[i].wrap),pg(t,ta[o].frame,ta[i].frame),(s=t.addAttributes)==null||s.call(t,{style:`aspect-ratio: ${ta[i].ratio}`}),l2(e,"hidden",i==="tablet"),l2(n,"hidden",i!=="tablet"),this.syncPlaceholders(i)},syncPosition(){const r=(this.find('[data-app-showcase-layout="wrap"]')||[])[0];if(!r)return;const t=String(this.getAttributes()["data-app-showcase-media-position"]||"")==="right";pg(r,t?"lg:flex-row":"lg:flex-row-reverse",t?"lg:flex-row-reverse":"lg:flex-row")},syncPlaceholders(r){const t=ta[r].placeholder;this.collect("data-app-showcase-screen").forEach((e,n)=>{var s,c,d;const i=(((s=e.find)==null?void 0:s.call(e,"img"))||[])[0];!i||!String(((c=i.getAttributes)==null?void 0:c.call(i).src)||"").includes("placehold.co")||(d=i.addAttributes)==null||d.call(i,{src:`https://placehold.co/${t}?text=Screenshot_${n+1}_${t}px`})})}}}),a.BlockManager.add("appShowcase",{id:"appShowcase",label:"App-Showcase",category:{id:"content",label:"Content"},attributes:{"data-os-group":"Landingpage Elemente","data-os-page-type":"aboshop"},content:eI(),media:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><rect x="40" y="70" width="130" height="260" rx="22" fill="#d3d3d3"/><rect x="52" y="82" width="106" height="236" rx="14" fill="#b2b2b2"/><rect x="86" y="70" width="38" height="10" rx="5" fill="#9ca3af"/><rect x="200" y="86" width="160" height="52" rx="8" fill="#efefef"/><rect x="212" y="100" width="20" height="20" rx="4" fill="#9ca3af"/><rect x="242" y="102" width="80" height="8" rx="3" fill="#9ca3af"/><rect x="242" y="118" width="106" height="6" rx="3" fill="#d3d3d3"/><rect x="200" y="150" width="160" height="52" rx="8" fill="#efefef"/><rect x="212" y="164" width="20" height="20" rx="4" fill="#b2b2b2"/><rect x="242" y="166" width="80" height="8" rx="3" fill="#b2b2b2"/><rect x="242" y="182" width="106" height="6" rx="3" fill="#d3d3d3"/><rect x="200" y="214" width="160" height="52" rx="8" fill="#efefef"/><rect x="212" y="228" width="20" height="20" rx="4" fill="#b2b2b2"/><rect x="242" y="230" width="80" height="8" rx="3" fill="#b2b2b2"/><rect x="242" y="246" width="106" height="6" rx="3" fill="#d3d3d3"/><rect x="200" y="278" width="160" height="52" rx="8" fill="#efefef"/><rect x="212" y="292" width="20" height="20" rx="4" fill="#b2b2b2"/><rect x="242" y="294" width="80" height="8" rx="3" fill="#b2b2b2"/><rect x="242" y="310" width="106" height="6" rx="3" fill="#d3d3d3"/></svg>'})}function pg(a,r,t){var s,c;if(!a)return;
1624const e=new Set(r.split(/\s+/).filter(Boolean)),n=((s=a.getAttributes)==null?void 0:s.call(a))||{},i=String(n.class||"").split(/\s+/).filter(d=>d&&!e.has(d));i.push(...t.split(/\s+/).filter(Boolean));const o=Array.from(new Set(i)).join(" ");o!==n.class&&((c=a.setAttributes)==null||c.call(a,{...n,class:o}))}function l2(a,r,t){var o,s;if(!a)return;const e=((o=a.getAttributes)==null?void 0:o.call(a))||{},n=String(e.class||"").split(/\s+/).filter(c=>c&&c!==r);t&&n.push(r);const i=n.join(" ");i!==e.class&&((s=a.setAttributes)==null||s.call(a,{...e,class:i}))}function nI(a){const{DomComponents:r,BlockManager:t}=a,e="49",n="1.1.0",i="Landingpage Elemente - Navigation - Breadcrumb",o={"data-gjs-type":"os-breadcrumb","data-component-id":e,"data-component-version":n,"data-component-name":i};r.addType("os-breadcrumb-container",{isComponent:s=>!s||typeof s.getAttribute!="function"?!1:s.getAttribute("data-os-breadcrumb-container")==="wrap"?{type:"os-breadcrumb-container"}:!1,model:{defaults:{tagName:"div",droppable:!0,draggable:!1,copyable:!1,removable:!1,wide_content:!1,attributes:{"data-os-breadcrumb-container":"wrap",class:"mx-auto max-w-[960px]"}},init(){this.on("change:wide_content",this.handleWideContentChange),this.handleWideContentChange()},handleWideContentChange(){const s=!!this.get("wide_content"),c=this.getAttributes(),d=String(c.class||"").split(" ").filter(f=>f&&!f.startsWith("max-w-"));d.push(s?"max-w-[1280px]":"max-w-[960px]"),this.setAttributes({...c,class:d.join(" ")})}}}),r.addType("os-breadcrumb",{isComponent:s=>{if(!s||s.tagName!=="SECTION")return!1;const c=s.getAttribute("data-gjs-type")==="os-breadcrumb",d=s.getAttribute("data-component-id")===e&&s.getAttribute("data-component-name")===i;return c||d?{type:"os-breadcrumb"}:!1},model:{defaults:{tagName:"section",droppable:!0,sectionSpacingBottom:"none",attributes:{...o,class:"relative left-1/2 mb-12 w-screen -translate-x-1/2 overflow-hidden border-b border-slate-200 px-5 pb-0 pt-0 md:pt-5 md:pb-5 dark:border-dark-border"}},init(){const s=this.getAttributes(),c=String(s.class||"").split(/\s+/).filter(d=>d&&d!=="border-stroke-100");c.includes("border-slate-200")||c.push("border-slate-200"),c.includes("dark:border-dark-border")||c.push("dark:border-dark-border"),this.setAttributes({...s,class:c.join(" ")})}}}),t.add("breadcrumb",{label:"Breadcrumb",category:{id:"content",label:"Content"},attributes:{"data-os-group":"Landingpage Elemente","data-os-page-type":"aboshop"},media:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><rect x="40" y="145" width="100" height="30" rx="5" fill="#b2b2b2"/><path d="M158 145l20 15-20 15" fill="none" stroke="#888" stroke-width="10" stroke-linecap="round" stroke-linejoin="round"/><rect x="195" y="145" width="100" height="30" rx="5" fill="#b2b2b2"/><path d="M313 145l20 15-20 15" fill="none" stroke="#888" stroke-width="10" stroke-linecap="round" stroke-linejoin="round"/><rect x="350" y="145" width="20" height="30" rx="5" fill="#888"/></svg>',content:{type:"os-breadcrumb",tagName:"section",sectionSpacingBottom:"none",attributes:{...o,class:"relative left-1/2 mb-12 w-screen -translate-x-1/2 overflow-hidden border-b border-slate-200 px-8 pb-0 pt-0 md:pt-5 md:pb-5 md:pl-24 dark:border-dark-border"},components:[{type:"os-breadcrumb-container",attributes:{"data-os-breadcrumb-container":"wrap"},components:[{tagName:"nav",attributes:{"aria-label":"Brotkrümelnavigation",class:"py-4 text-sm text-copy-secondary"},components:[{tagName:"ol",attributes:{class:"flex flex-wrap items-center gap-y-1"},components:[{tagName:"li",components:[{type:"link",tagName:"a",attributes:{href:"/",class:"rounded-sm !no-underline text-copy-primary hover:text-brand-primary-500 focus:outline-none focus:ring-2 focus:ring-stroke-300 focus:ring-offset-2"},content:"Startseite"}]},{tagName:"li",attributes:{"aria-hidden":"true",class:"mx-2"},components:[{type:"text",tagName:"span",attributes:{class:"text-2xl text-copy-primary"},content:"›"}]},{tagName:"li",components:[{type:"link",tagName:"a",attributes:{href:"#",class:"rounded-sm !no-underline text-copy-primary hover:text-brand-primary-500 focus:outline-none focus:ring-2 focus:ring-stroke-300 focus:ring-offset-2"},content:"Kategorie"}]},{tagName:"li",attributes:{"aria-hidden":"true",class:"mx-2"},components:[{type:"text",tagName:"span",attributes:{class:"text-2xl text-copy-primary"},content:"›"}]},{tagName:"li",attributes:{"aria-current":"page",class:"font-semibold text-copy-primary"},components:[{type:"text",tagName:"span",editable:!0,content:"Aktuelle Seite"}]}]}]}]}]}})}function iI(a){a.DomComponents.addType("buybox-container",{model:{defaults:{tagName:"div",draggable:!1,droppable:!0,wide_content:!1,attributes:{class:"buybox-container container mx-auto"}},init(){this.on("change:wide_content",this.handleWideContentChange),this.handleWideContentChange()},handleWideContentChange(){const r=!!this.get("wide_content"),t=this.getAttributes(),e=(t.class||"").split(" ").filter(n=>!n.startsWith("max-w-"));e.push(r?"max-w-[1280px]":"max-w-[960px]"),this.setAttributes({...t,class:e.join(" ")})}}}),a.BlockManager.add("buyBox",{id:"buyBox",label:"Buy-Box",category:{id:"c
1624ontent",label:"Content"},attributes:{"data-os-group":"Landingpage Elemente","data-os-page-type":"both"},content:` 1625 <div 1626 data-component-id="26" 1627 data-component-version="1.0.0" 1628 data-component-name="Vertriebliche Elemente - Content - Buy-Box" 1629 class="fixed bottom-0 left-0 w-full shadow-[0px_-4px_4px_rgba(209,209,209,0.15)] dark:shadow-none border-t border-white/20 dark:border-white/10 py-3 px-5 bg-surface-100 buy-box z-30 md:!hidden"> 1630 1631 <div class="buybox-toggle-wrapper"> 1632 <button aria-label="Toggle buy box" class="buybox-toggle shadow rounded-full p-2 border bg-surface-100 border-b-0 border-white/20 dark:border-white/10 cursor-pointer"> 1633 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="gray" class="w-6 h-6 dark:fill-white"> 1634 <path fill-rule="evenodd" 1635 d="M11.47 7.72a.75.75 0 0 1 1.06 0l7.5 7.5a.75.75 0 1 1-1.06 1.06L12 9.31l-6.97 6.97a.75.75 0 0 1-1.06-1.06l7.5-7.5Z" 1636 clip-rule="evenodd"/> 1637 </svg> 1638 </button> 1639 </div> 1640 1641 <div data-gjs-type="buybox-container" class="buybox-container container mx-auto">
1642 <!-- Produkt 1 --> 1643 <div class="buybox-product flex justify-between items-center pb-3"> 1644 <div> 1645 <strong class="truncate text-xs sm:text-sm md:text-base">6 Monate Digital-Paket</strong> 1646 <div class="text-xs md:text-sm"> 1647 <span class="truncate">nur </span><strong class="truncate">18,00 â¬</strong><span class="truncate"> / Monat <sup class="text-s">*</sup></span> 1648 </div> 1649 </div> 1650 <a href target="_self" title="" 1651 class="no-underline font-medium inline-block rounded-full border-2 px-3 text-center uppercase transition hover:shadow-sm focus:shadow-sm active:shadow-sm disabled:border-gray-100 disabled:bg-gray-100 disabled:text-copy-primary disabled:shadow-none text-xs sm:text-sm !leading-[34px] border-brand-primary-500 hover:border-brand-primary-700 focus:border-brand-primary-700 active:border-brand-primary-300 bg-brand-primary-500 hover:bg-brand-primary-700 focus:bg-brand-primary-700 active:bg-brand-primary-300 text-brand-contrast hover:text-brand-contrast" 1652 data-track-v2-parentposition="Content" 1653 data-track-v2-parent="Vertriebliche Elemente - Content - Buy-Box" 1654 data-track-v2-parentlabel="OS - Vertrieb" 1655 data-track-v2-elementposition="1" 1656 data-track-v2-elementtype="Button" 1657 data-track-v2-vendor="Internal" 1658 data-track-v2-link="" 1659 data-track-v2-linktype="External" 1660 data-track-v2-linkgenre="" 1661 data-track-v2-clickaction=""> 1662 <span>Abonnieren</span> 1663 </a> 1664 </div> 1665 1666 <!-- Produkt 2 --> 1667 <div class="buybox-product flex justify-between items-center py-3 border-t border-white/20 dark:border-white/10 pt-[12px]"> 1668 <div> 1669 <strong class="truncate text-xs sm:text-sm md:text-base">6 Monate Digital-Paket</strong> 1670 <div class="text-xs md:text-sm"> 1671 <span class="truncate">nur </span><strong class="truncate">18,00 â¬</strong><span class="truncate"> / Monat <sup class="text-s">*</sup></span> 1672 </div> 1673 </div> 1674 <a href target="_self" title="" 1675 class="no-underline font-medium inline-block rounded-full border-2 px-3 text-center uppercase transition hover:shadow-sm focus:shadow-sm active:shadow-sm disabled:border-gray-100 disabled:bg-gray-100 disabled:text-copy-primary disabled:shadow-none text-xs sm:text-sm !leading-[34px] border-brand-primary-500 hover:border-brand-primary-700 focus:border-brand-primary-700 active:border-brand-primary-300 bg-brand-primary-500 hover:bg-brand-primary-700 focus:bg-brand-primary-700 active:bg-brand-primary-300 text-brand-contrast hover:text-brand-contrast" 1676 data-track-v2-parentposition="Content" 1677 data-track-v2-parent="Vertriebliche Elemente - Content - Buy-Box" 1678 data-track-v2-parentlabel="OS - Vertrieb" 1679 data-track-v2-elementposition="2" 1680 data-track-v2-elementtype="Button" 1681 data-track-v2-vendor="Internal" 1682 data-track-v2-link="" 1683 data-track-v2-linktype="External" 1684 data-track-v2-linkgenre="" 1685 data-track-v2-clickaction=""> 1686 <span>Abonnieren</span> 1687 </a> 1688 </div> 1689 1690 <!-- Produkt 3 --> 1691 <div class="buybox-product flex justify-between items-center border-t pt-3 border-white/20 dark:border-white/10 pt-[12px]"> 1692 <div> 1693 <strong class="truncate text-xs sm:text-sm md:text-base">6 Monate Digital-Paket</strong> 1694 <div class="text-xs md:text-sm"> 1695 <span class="truncate">nur </span><strong class="truncate">18,00 â¬</strong><span class="truncate"> / Monat <sup class="text-s">*</sup></span> 1696 </div> 1697 </div> 1698 <a href target="_self" title="" 1699 class="no-underline font-medium inline-block rounded-full border-2 px-3 text-center uppercase transition hover:shadow-sm focus:shadow-sm active:shadow-sm disabled:border-gray-100 disabled:bg-gray-100 disabled:text-copy-primary disabled:shadow-none text-xs sm:text-sm !leading-[34px] border-brand-primary-500 hover:border-brand-primary-700 focus:border-brand-primary-700 active:border-brand-primary-300 bg-brand-primary-500 hover:bg-brand-primary-700 focus:bg-brand-primary-700 active:bg-brand-primary-300 text-brand-contrast hover:text-brand-contrast" 1700 data-track-v2-parentposition="Content" 1701 data-track-v2-parent="Vertriebliche Elemente - Content - Buy-Box"
1702 data-track-v2-parentlabel="OS - Vertrieb" 1703 data-track-v2-elementposition="3" 1704 data-track-v2-elementtype="Button" 1705 data-track-v2-vendor="Internal" 1706 data-track-v2-link="" 1707 data-track-v2-linktype="External" 1708 data-track-v2-linkgenre="" 1709 data-track-v2-clickaction=""> 1710 <span>Abonnieren</span> 1711 </a> 1712 </div> 1713 </div> 1714 </div>`,media:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><path fill="#f7f7f7" d="M209.7 102.7V81.1h-21.6v21.6H0v194.6h400V102.7H209.7z"/><g fill="#757575"><path stroke="#b2b2b2" stroke-miterlimit="10" stroke-width=".2" d="M373.1 236.1H25.4h348.9-1.2Z"/><rect width="87" height="18.9" x="287.6" y="252.9" rx="1.1" ry="1.1"/><rect width="87" height="18.9" x="287.6" y="190.6" rx="1.1" ry="1.1"/><rect width="87" height="18.9" x="287.6" y="128.2" rx="1.1" ry="1.1"/><path stroke="#b2b2b2" stroke-miterlimit="10" stroke-width=".2" d="M373.4 170.4H25.7h348.9-1.2Z"/><rect width="146.6" height="4.5" x="25.4" y="128.2" rx="1.1" ry="1.1"/><rect width="100.7" height="4.5" x="25.4" y="142.6" rx=".9" ry=".9"/><rect width="146.6" height="4.5" x="25.4" y="190.6" rx="1.1" ry="1.1"/><rect width="100.7" height="4.5" x="25.4" y="204.9" rx=".9" ry=".9"/><rect width="146.6" height="4.5" x="25.4" y="252.9" rx="1.1" ry="1.1"/><rect width="100.7" height="4.5" x="25.4" y="267.3" rx=".9" ry=".9"/></g><path fill="none" stroke="#757575" stroke-miterlimit="10" d="m204.8 94.9-5.4-5.4-5.7 5.7"/></svg>'})}function aI(a){const r={id:"cardTwoElements",label:"2 Produkte",category:{id:"produktkacheln",label:"Produktkacheln"},attributes:{"data-os-group":"Vertriebliche Elemente","data-os-page-type":"cue"},content:` 1715 <div 1716 data-component-id="14" 1717 data-component-version="1.0.0" 1718 data-component-name="Vertriebliche Elemente - Produktkacheln - 2 Produkte" 1719 class="mb-8"> 1720 <ul class="flex gap-5 px-2 flex-col md:flex-row md:justify-center"> 1721 <li class="text-center w-full block lg:block rounded-md border border-slate-200 bg-white p-5 relative shadow-sm transition-shadow duration-300 hover:shadow-md animate-slide-up dark:border-dark-border dark:bg-dark-surface md:max-w-[375px]"> 1722 <div class="w-full card-head"> 1723 <strong class="text-title4 md:text-title3 lg:text-title3 mb-3 block">Lorem Ipsum</strong> 1724 <div class="relative mb-3 block"> 1725 <picture class="block w-full"> 1726 <source media="(max-width: 639px)" srcset="https://placehold.co/640x360?text=Mobile_640x360px"> 1727 <source media="(min-width: 640px)" srcset="https://placehold.co/960x540?text=Desktop_960x540px"> 1728 <img src="https://placehold.co/960x540?text=Desktop_960x540px" alt="Descriptive text of the image" class="aspect-[16/9] skeleton"> 1729 </picture> 1730 </div> 1731 </div> 1732 <div class="ml-0 md:ml-4 lg:ml-0 mt-2 md:mt-0 lg:mt-2"> 1733 <div class="card-body"> 1734 <strong class="outline-none text-title5 block mb-1">X Monate</strong> 1735 <strong class="text-title3 md:text-title2 block"><span class="text-xs mr-2">nur</span>99,99 â¬<span class="text-xs ml-2">/ Monat*</span></strong> 1736 <p class="text-body2 mt-2 block mb-2 text-center">In dui magna, posuere eget, vestibulum et, tempor auctor, justo. Pellentesque ut neque.</p> 1737 <hr> 1738 <ul class="custom-list-style list-bullet-brand-primary-500 flex flex-col text-left flex-wrap relative"> 1739 <li>Duis lobortis massa imperdiet quam. Vivamus quis mi.</li> 1740 <li>In hac habitasse platea dictumst. Maecenas nec odio.</li> 1741 <li>Habitasse platea dictumst. Maecenas nec odio et ante.</li> 1742 </ul> 1743 </div> 1744 <a href target="_self" title="" 1745 class="no-underline font-medium inline-block overflow-hidden text-ellipsis whitespace-nowrap rounded border-2 px-6 mt-4 text-center uppercase transition hover:shadow-sm focus:shadow-sm active:shadow-sm disabled:border-gray-100 disabled:bg-gray-100 disabled:text-copy-primary disabled:shadow-none text-white text-sm leading-[41px] w-full border-brand-primary-500 hover:border-brand-primary-700 focus:border-brand-primary-700 active:border-brand-primary-300 bg-brand-primary-500 hover:bg-brand-primary-700 focus:bg-brand-primary-700 active:bg-brand-primary-300" 1746 data-track-v2-parentposition="Content" 1747 data-track-v2-parent="Vertriebliche Elemente - Produktk
1747acheln - 2 Produkte" 1748 data-track-v2-parentlabel="OS - Vertrieb" 1749 data-track-v2-elementposition="1" 1750 data-track-v2-elementtype="Button" 1751 data-track-v2-vendor="Internal" 1752 data-track-v2-link="" 1753 data-track-v2-linktype="External" 1754 data-track-v2-linkgenre="" 1755 data-track-v2-clickaction=""> 1756 <span class="px-6">Button</span> 1757 </a> 1758 </div> 1759 </li> 1760 <li class="text-center w-full block lg:block rounded-md border border-slate-200 bg-white p-5 relative shadow-sm transition-shadow duration-300 hover:shadow-md animate-slide-up dark:border-dark-border dark:bg-dark-surface md:max-w-[375px]"> 1761 <div class="ribbon ribbon-top-right z-10 before:border-brand-primary-700 after:border-brand-primary-700"><span class="bg-brand-primary-500">Beliebt</span></div> 1762 <div class="w-full card-head"> 1763 <strong class="text-title4 md:text-title3 lg:text-title3 mb-3 block">Lorem Ipsum</strong> 1764 <div class="relative mb-3 block"> 1765 <picture class="block w-full"> 1766 <source media="(max-width: 639px)" srcset="https://placehold.co/640x360?text=Mobile_640x360px"> 1767 <source media="(min-width: 640px)" srcset="https://placehold.co/960x540?text=Desktop_960x540px"> 1768 <img src="https://placehold.co/960x540?text=Desktop_960x540px" alt="Descriptive text of the image" class="aspect-[16/9] skeleton"> 1769 </picture> 1770 </div> 1771 </div> 1772 <div class="ml-0 md:ml-4 lg:ml-0 mt-2 md:mt-0 lg:mt-2"> 1773 <div class="card-body"> 1774 <strong class="outline-none text-title5 block mb-1">X Monate</strong> 1775 <strong class="text-title3 md:text-title2 block"><span class="text-xs mr-2">nur</span>99,99 â¬<span class="text-xs ml-2">/ Monat*</span></strong> 1776 <p class="text-body2 mt-2 block mb-2 text-center">In dui magna, posuere eget, vestibulum et, tempor auctor, justo. Pellentesque ut neque.</p> 1777 <hr> 1778 <ul class="custom-list-style list-bullet-brand-primary-500 flex flex-col text-left flex-wrap relative"> 1779 <li>Duis lobortis massa imperdiet quam. Vivamus quis mi.</li> 1780 <li>In hac habitasse platea dictumst. Maecenas nec odio.</li> 1781 <li>Habitasse platea dictumst. Maecenas nec odio et ante.</li> 1782 </ul> 1783 </div> 1784 <a href target="_self" title="" 1785 class="no-underline font-medium inline-block overflow-hidden text-ellipsis whitespace-nowrap rounded border-2 px-6 mt-4 text-center uppercase transition hover:shadow-sm focus:shadow-sm active:shadow-sm disabled:border-gray-100 disabled:bg-gray-100 disabled:text-copy-primary disabled:shadow-none text-white text-sm leading-[41px] w-full border-brand-primary-500 hover:border-brand-primary-700 focus:border-brand-primary-700 active:border-brand-primary-300 bg-brand-primary-500 hover:bg-brand-primary-700 focus:bg-brand-primary-700 active:bg-brand-primary-300" 1786 data-track-v2-parentposition="Content" 1787 data-track-v2-parent="Vertriebliche Elemente - Produktkacheln - 2 Produkte" 1788 data-track-v2-parentlabel="OS - Vertrieb" 1789 data-track-v2-elementposition="2" 1790 data-track-v2-elementtype="Button" 1791 data-track-v2-vendor="Internal" 1792 data-track-v2-link="" 1793 data-track-v2-linktype="External" 1794 data-track-v2-linkgenre="" 1795 data-track-v2-clickaction="">
1796 <span class="px-6">Button</span> 1797 </a> 1798 </div> 1799 </li> 1800 </ul> 1801 <p class="text-xs text-center w-[80%] mx-auto mt-2 px-2">*Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> 1802 </div> 1803 `,media:'<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 400 400"><path fill="#EFEFEF" d="M187.7 344H32.2c-1.4 0-2.5-1.1-2.5-2.5v-283c0-1.4 1.1-2.5 2.5-2.5h155.5c1.4 0 2.5 1.1 2.5 2.5v283c0 1.4-1.1 2.5-2.5 2.5z"/><path fill="#D3D3D3" d="M177.9 169.1H42.4c-2 0-3.7-1.6-3.7-3.7v-73c0-2 1.6-3.7 3.7-3.7h135.5c2 0 3.7 1.6 3.7 3.7v73c-.1 2.1-1.7 3.7-3.7 3.7z"/><circle cx="153.1" cy="105.5" r="5.9" fill="#B2B2B2" fill-rule="evenodd" clip-rule="evenodd"/><path fill="#B2B2B2" fill-rule="evenodd" d="M181.7 154.7v10.8c0 2-1.6 3.7-3.7 3.7H42.4c-2 0-3.7-1.6-3.7-3.7v-10.7c0-1.2.6-2.3 1.5-3L77.4 125c4.7-3.4 12.4-3.4 17.1 0l41.7 30.1c.1.1.2.1.3.2 2.4 1.6 6.3 1.5 8.6-.2s2.1-4.5-.3-6.2l-3.7-2.7c-2-1.5-2-4.5 0-6l3-2.2c4.7-3.4 12.4-3.4 17.1 0l19 13.7c1 .7 1.5 1.8 1.5 3z" clip-rule="evenodd"/><path fill="#B2B2B2" d="M136.4 77.5H76.8c-1.1 0-2-.9-2-2v-5c0-1.1.9-2 2-2h59.6c1.1 0 2 .9 2 2v5c0 1.1-.9 2-2 2z"/><g fill="#D3D3D3"><path d="M179.1 233.5H40.2c-1.1 0-2-.9-2-2v-4c0-1.1.9-2 2-2h138.9c1.1 0 2 .9 2 2v4c0 1.1-.9 2-2 2zM179.1 245.3H40.2c-1.1 0-2-.9-2-2v-4c0-1.1.9-2 2-2h138.9c1.1 0 2 .9 2 2v4c0 1.1-.9 2-2 2zM179.1 257.2H40.2c-1.1 0-2-.9-2-2v-4c0-1.1.9-2 2-2h138.9c1.1 0 2 .9 2 2v4c0 1.1-.9 2-2 2zM179.1 269H40.2c-1.1 0-2-.9-2-2v-4c0-1.1.9-2 2-2h138.9c1.1 0 2 .9 2 2v4c0 1.1-.9 2-2 2zM179.1 280.8H40.2c-1.1 0-2-.9-2-2v-4c0-1.1.9-2 2-2h138.9c1.1 0 2 .9 2 2v4c0 1.1-.9 2-2 2zM179.1 292.7H40.2c-1.1 0-2-.9-2-2v-4c0-1.1.9-2 2-2h138.9c1.1 0 2 .9 2 2v4c0 1.1-.9 2-2 2zM133.1 304.5H40.2c-1.1 0-2-.9-2-2v-4c0-1.1.9-2 2-2h92.9c1.1 0 2 .9 2 2v4c0 1.1-.9 2-2 2z"/></g><path fill="#757575" d="M179.1 331.5H40.2c-1.1 0-2-.9-2-2v-12c0-1.1.9-2 2-2h138.9c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2z"/><g fill="#B2B2B2"><path d="M147.8 187.5H71.4c-1.1 0-2-.9-2-2v-4c0-1.1.9-2 2-2h76.4c1.1 0 2 .9 2 2v4c0 1.1-.8 2-2 2zM159.8 216.5H59.4c-1.1 0-2-.9-2-2v-4c0-1.1.9-2 2-2h100.4c1.1 0 2 .9 2 2v4c0 1.1-.9 2-2 2zM133.1 203.5h-47c-1.1 0-2-.9-2-2v-7c0-1.1.9-2 2-2h47c1.1 0 2 .9 2 2v7c0 1.1-.9 2-2 2z"/></g><path fill="#EFEFEF" d="M367.7 344H212.2c-1.4 0-2.5-1.1-2.5-2.5v-283c0-1.4 1.1-2.5 2.5-2.5h155.5c1.4 0 2.5 1.1 2.5 2.5v283c0 1.4-1.1 2.5-2.5 2.5z"/><path fill="#D3D3D3" d="M357.9 169.1H222.4c-2 0-3.7-1.6-3.7-3.7v-73c0-2 1.6-3.7 3.7-3.7h135.5c2 0 3.7 1.6 3.7 3.7v73c-.1 2.1-1.7 3.7-3.7 3.7z"/><circle cx="333.1" cy="105.5" r="5.9" fill="#B2B2B2" fill-rule="evenodd" clip-rule="evenodd"/><path fill="#B2B2B2" fill-rule="evenodd" d="M361.7 154.7v10.8c0 2-1.6 3.7-3.7 3.7H222.4c-2 0-3.7-1.6-3.7-3.7v-10.7c0-1.2.6-2.3 1.5-3l37.2-26.8c4.7-3.4 12.4-3.4 17.1 0l41.7 30.1c.1.1.2.1.3.2 2.4 1.6 6.3 1.5 8.6-.2s2.1-4.5-.3-6.2l-3.7-2.7c-2-1.5-2-4.5 0-6l3-2.2c4.7-3.4 12.4-3.4 17.1 0l19 13.7c1 .7 1.5 1.8 1.5 3z" clip-rule="evenodd"/><path fill="#B2B2B2" d="M316.4 77.5h-59.6c-1.1 0-2-.9-2-2v-5c0-1.1.9-2 2-2h59.6c1.1 0 2 .9 2 2v5c0 1.1-.9 2-2 2z"/><g fill="#D3D3D3"><path d="M359.1 233.5H220.2c-1.1 0-2-.9-2-2v-4c0-1.1.9-2 2-2h138.9c1.1 0 2 .9 2 2v4c0 1.1-.9 2-2 2zM359.1 245.3H220.2c-1.1 0-2-.9-2-2v-4c0-1.1.9-2 2-2h138.9c1.1 0 2 .9 2 2v4c0 1.1-.9 2-2 2zM359.1 257.2H220.2c-1.1 0-2-.9-2-2v-4c0-1.1.9-2 2-2h138.9c1.1 0 2 .9 2 2v4c0 1.1-.9 2-2 2zM359.1 269H220.2c-1.1 0-2-.9-2-2v-4c0-1.1.9-2 2-2h138.9c1.1 0 2 .9 2 2v4c0 1.1-.9 2-2 2zM359.1 280.8H220.2c-1.1 0-2-.9-2-2v-4c0-1.1.9-2 2-2h138.9c1.1 0 2 .9 2 2v4c0 1.1-.9 2-2 2zM359.1 292.7H220.2c-1.1 0-2-.9-2-2v-4c0-1.1.9-2 2-2h138.9c1.1 0 2 .9 2 2v4c0 1.1-.9 2-2 2zM313.1 304.5h-92.9c-1.1 0-2-.9-2-2v-4c0-1.1.9-2 2-2h92.9c1.1 0 2 .9 2 2v4c0 1.1-.9 2-2 2z"/></g><path fill="#757575" d="M359.1 331.5H220.2c-1.1 0-2-.9-2-2v-12c0-1.1.9-2 2-2h138.9c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2z"/><g fill="#B2B2B2"><path d="M327.8 187.5h-76.4c-1.1 0-2-.9-2-2v-4c0-1.1.9-2 2-2h76.4c1.1 0 2 .9 2 2v4c0 1.1-.8 2-2 2zM339.8 216.5H239.4c-1.1 0-2-.9-2-2v-4c0-1.1.9-2 2-2h100.4c1.1 0 2 .9 2 2v4c0 1.1-.9 2-2 2zM313.1 203.5h-47c-1.1 0-2-.9-2-2v-7c0-1.1.9-2 2-2h47c1.1 0 2 .9 2 2v7c0 1.1-.9 2-2 2z"/></g></svg>'},t={id:"cardThreeElements",label:"3 Produkte",category:{id:"produktkacheln",label:"Produktk
1803acheln"},attributes:{"data-os-group":"Vertriebliche Elemente","data-os-page-type":"cue"},content:` 1804 <div 1805 data-component-id="15" 1806 data-component-version="1.0.0" 1807 data-component-name="Vertriebliche Elemente - Produktkacheln - 3 Produkte" 1808 class="mb-8"> 1809 <ul class="grid grid-cols-1 gap-5 px-2 md:grid-cols-3"> 1810 <li class="text-center w-full block lg:block rounded-md border border-slate-200 bg-white p-5 relative shadow-sm transition-shadow duration-300 hover:shadow-md animate-slide-up dark:border-dark-border dark:bg-dark-surface"> 1811 <div class="w-full card-head"> 1812 <strong class="text-title4 md:text-title3 lg:text-title3 mb-3 block">Lorem Ipsum</strong> 1813 <div class="relative mb-3 block"> 1814 <picture class="block w-full"> 1815 <source media="(max-width: 639px)" srcset="https://placehold.co/640x360?text=Mobile_640x360px"> 1816 <source media="(min-width: 640px)" srcset="https://placehold.co/960x540?text=Desktop_960x540px"> 1817 <img src="https://placehold.co/960x540?text=Desktop_960x540px" alt="Descriptive text" class="aspect-[16/9] skeleton"> 1818 </picture> 1819 <div class="absolute bg-surface-400 !text-copy-secondary p-3 px-5 uppercase top-1/2 left-1/2 w-[235px] transform -translate-x-1/2 -translate-y-1/2 -rotate-6 text-body2"> 1820 Nicht mehr vorrätig 1821 </div> 1822 </div> 1823 </div> 1824 <div class="ml-0 md:ml-4 lg:ml-0 mt-2 md:mt-0 lg:mt-2"> 1825 <div class="card-body"> 1826 <strong class="outline-none text-title5 block mb-1">X Monate</strong> 1827 <strong class="text-title3 md:text-title2 block"><span class="text-xs mr-2">nur</span>99,99 â¬<span class="text-xs ml-2">/ Monat*</span></strong> 1828 <p class="text-body2 mt-2 block mb-2 text-center">In dui magna, posuere eget, vestibulum et.</p> 1829 <hr> 1830 <ul class="custom-list-style list-bullet-brand-primary-500 flex flex-col text-left flex-wrap relative"> 1831 <li>Phasellus blandit leo ut odio</li> 1832 <li>Etiam imperdiet imperdiet orci</li> 1833 <li>Lorem ipsum dolor sit amet</li> 1834 </ul> 1835 </div> 1836 1837 <div disabled title="" class="border-2 no-underline font-medium bg-surface-400 border-surface-400 !border-opacity-0 !text-copy-secondary inline-block overflow-hidden text-ellipsis whitespace-nowrap rounded px-5 mt-4 text-center uppercase w-full text-sm leading-[41px] cursor-default pointer-events-none"> 1838 <span class="px-5 pointer-events-auto">Nicht mehr Vorrätig</span> 1839 </div> 1840 </div> 1841 </li> 1842 <li class="text-center w-full block lg:block rounded-md border border-slate-200 bg-white p-5 relative shadow-sm transition-shadow duration-300 hover:shadow-md animate-slide-up dark:border-dark-border dark:bg-dark-surface"> 1843 <div class="ribbon ribbon-top-right z-10 before:border-brand-primary-700 after:border-brand-primary-700"><span class="bg-brand-primary-500">Beliebt</span></div> 1844 <div class="w-full card-head"> 1845 <strong class="text-title4 md:text-title3 lg:text-title3 mb-3 block">Lorem Ipsum</strong> 1846 <div class="relative mb-3 block"> 1847 <picture class="block w-full"> 1848 <source media="(max-width: 639px)" srcset="https://placehold.co/640x360?text=Mobile_640x360px"> 1849 <source media="(min-width: 640px)" srcset="https://placehold.co/960x540?text=Desktop_960x540px"> 1850 <img src="https://placehold.co/960x540?text=Desktop_960x540px" alt="Descriptive text" class="aspect-[16/9] skeleton"> 1851 </picture> 1852 </div> 1853 </div> 1854 <div class="ml-0 md:ml-4 lg:ml-0 mt-2 md:mt-0 lg:mt-2"> 1855 <div class="card-body"> 1856 <strong class="outline-none text-title5 block mb-1">X Monate</strong> 1857 <strong class="text-title3 md:text-title2 block"><span class="text-xs mr-2">
1857nur</span>99,99 â¬<span class="text-xs ml-2">/ Monat*</span></strong> 1858 <p class="text-body2 mt-2 block mb-2 text-center">In dui magna, posuere eget, vestibulum et.</p> 1859 <hr> 1860 <ul class="custom-list-style list-bullet-brand-primary-500 flex flex-col text-left flex-wrap relative"> 1861 <li>Phasellus blandit leo ut odio</li> 1862 <li>Etiam imperdiet imperdiet orci</li> 1863 <li>Lorem ipsum dolor sit amet</li> 1864 </ul> 1865 </div> 1866 <a href target="_self" title="" class="no-underline font-medium inline-block overflow-hidden text-ellipsis whitespace-nowrap rounded border-2 px-6 mt-4 text-center uppercase transition hover:shadow-sm focus:shadow-sm active:shadow-sm disabled:border-gray-100 disabled:bg-gray-100 disabled:text-copy-primary disabled:shadow-none text-white text-sm leading-[41px] w-full border-brand-primary-500 hover:border-brand-primary-700 focus:border-brand-primary-700 active:border-brand-primary-300 bg-brand-primary-500 hover:bg-brand-primary-700 focus:bg-brand-primary-700 active:bg-brand-primary-300" 1867 data-track-v2-parentposition="Content" data-track-v2-parent="Vertriebliche Elemente - Produktkacheln - 3 Produkte" data-track-v2-parentlabel="OS - Vertrieb" data-track-v2-elementposition="2" data-track-v2-elementtype="Button" data-track-v2-vendor="Internal" data-track-v2-link="" data-track-v2-linktype="External" data-track-v2-linkgenre="" data-track-v2-clickaction=""> 1868 <span class="px-6">Button</span> 1869 </a> 1870 </div> 1871 </li> 1872 <li class="text-center w-full block lg:block rounded-md border border-slate-200 bg-white p-5 relative shadow-sm transition-shadow duration-300 hover:shadow-md animate-slide-up dark:border-dark-border dark:bg-dark-surface"> 1873 <div class="w-full card-head"> 1874 <strong class="text-title4 md:text-title3 lg:text-title3 mb-3 block">Lorem Ipsum</strong> 1875 <div class="relative mb-3 block"> 1876 <picture class="block w-full"> 1877 <source media="(max-width: 639px)" srcset="https://placehold.co/640x360?text=Mobile_640x360px"> 1878 <source media="(min-width: 640px)" srcset="https://placehold.co/960x540?text=Desktop_960x540px"> 1879 <img src="https://placehold.co/960x540?text=Desktop_960x540px" alt="Descriptive text" class="aspect-[16/9] skeleton"> 1880 </picture> 1881 </div> 1882 </div> 1883 <div class="ml-0 md:ml-4 lg:ml-0 mt-2 md:mt-0 lg:mt-2"> 1884 <div class="card-body"> 1885 <strong class="outline-none text-title5 block mb-1">X Monate</strong> 1886 <strong class="text-title3 md:text-title2 block"><span class="text-xs mr-2">nur</span>99,99 â¬<span class="text-xs ml-2">/ Monat*</span></strong> 1887 <p class="text-body2 mt-2 block mb-2 text-center">In dui magna, posuere eget, vestibulum et.</p> 1888 <hr> 1889 <ul class="custom-list-style list-bullet-brand-primary-500 flex flex-col text-left flex-wrap relative"> 1890 <li>Phasellus blandit leo ut odio</li> 1891 <li>Etiam imperdiet imperdiet orci</li> 1892 <li>Lorem ipsum dolor sit amet</li> 1893 </ul> 1894 </div> 1895 <a href target="_self" title="" class="no-underline font-medium inline-block overflow-hidden text-ellipsis whitespace-nowrap rounded border-2 px-6 mt-4 text-center uppercase transition hover:shadow-sm focus:shadow-sm active:shadow-sm disabled:border-gray-100 disabled:bg-gray-100 disabled:text-copy-primary disabled:shadow-none text-white text-sm leading-[41px] w-full border-brand-primary-500 hover:border-brand-primary-700 focus:border-brand-primary-700 active:border-brand-primary-300 bg-brand-primary-500 hover:bg-brand-primary-700 focus:bg-brand-primary-700 active:bg-brand-primary-300" 1896 data-track-v2-parentposition="Content" data-track-v2-parent="Vertriebliche Elemente - Produktk
1896acheln - 3 Produkte" data-track-v2-parentlabel="OS - Vertrieb" data-track-v2-elementposition="3" data-track-v2-elementtype="Button" data-track-v2-vendor="Internal" data-track-v2-link="" data-track-v2-linktype="External" data-track-v2-linkgenre="" data-track-v2-clickaction=""> 1897 <span class="px-6">Button</span> 1898 </a> 1899 </div> 1900 </li> 1901 </ul> 1902 <p class="text-xs text-center w-[90%] md:w-full mx-auto mt-2 px-2">*Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> 1903 </div> 1904 `,media:'<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 400 400"><path fill="#EFEFEF" d="M132.4 323.8H32.6c-1.5 0-2.7-1.2-2.7-2.7V78.9c0-1.5 1.2-2.7 2.7-2.7h99.8c1.5 0 2.7 1.2 2.7 2.7v242.2c0 1.5-1.2 2.7-2.7 2.7z"/><path fill="#B2B2B2" d="M113.3 94.2H51.7c-.6 0-1-.4-1-1v-7c0-.6.4-1 1-1h61.6c.6 0 1 .4 1 1v7c0 .6-.5 1-1 1z"/><g fill="#D3D3D3"><path d="M125 216.2H40c-.6 0-1-.4-1-1v-6c0-.6.4-1 1-1h85c.6 0 1 .4 1 1v6c0 .6-.4 1-1 1zM125 228.1H40c-.6 0-1-.4-1-1v-6c0-.6.4-1 1-1h85c.6 0 1 .4 1 1v6c0 .5-.4 1-1 1zM125 239.9H40c-.6 0-1-.4-1-1v-6c0-.6.4-1 1-1h85c.6 0 1 .4 1 1v6c0 .6-.4 1-1 1zM125 251.8H40c-.6 0-1-.4-1-1v-6c0-.6.4-1 1-1h85c.6 0 1 .4 1 1v6c0 .5-.4 1-1 1zM125 263.6H40c-.6 0-1-.4-1-1v-6c0-.6.4-1 1-1h85c.6 0 1 .4 1 1v6c0 .5-.4 1-1 1zM125 275.4H40c-.6 0-1-.4-1-1v-6c0-.6.4-1 1-1h85c.6 0 1 .4 1 1v6c0 .6-.4 1-1 1zM97 287.2H40c-.6 0-1-.4-1-1v-6c0-.6.4-1 1-1h57c.6 0 1 .4 1 1v6c0 .6-.4 1-1 1z"/></g><path fill="#757575" d="M125 314.2H40c-.6 0-1-.4-1-1v-14c0-.6.4-1 1-1h85c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1z"/><g fill="#B2B2B2"><path d="M106 170.2H59c-.6 0-1-.4-1-1v-6c0-.6.4-1 1-1h47c.6 0 1 .4 1 1v6c0 .6-.4 1-1 1zM113.3 199.2H51.7c-.6 0-1-.4-1-1v-6c0-.6.4-1 1-1h61.6c.6 0 1 .4 1 1v6c0 .6-.5 1-1 1zM97 186.2H68c-.6 0-1-.4-1-1v-9c0-.6.4-1 1-1h29c.6 0 1 .4 1 1v9c0 .6-.4 1-1 1z"/></g><path fill="#EFEFEF" d="M249.9 323.8h-99.8c-1.5 0-2.7-1.2-2.7-2.7V78.9c0-1.5 1.2-2.7 2.7-2.7h99.8c1.5 0 2.7 1.2 2.7 2.7v242.2c0 1.5-1.2 2.7-2.7 2.7z"/><path fill="#B2B2B2" d="M230.8 94.2h-61.6c-.6 0-1-.4-1-1v-7c0-.6.4-1 1-1h61.6c.6 0 1 .4 1 1v7c0 .6-.5 1-1 1z"/><g fill="#D3D3D3"><path d="M242.5 216.2h-85c-.6 0-1-.4-1-1v-6c0-.6.4-1 1-1h85c.6 0 1 .4 1 1v6c0 .6-.4 1-1 1zM242.5 228.1h-85c-.6 0-1-.4-1-1v-6c0-.6.4-1 1-1h85c.6 0 1 .4 1 1v6c0 .5-.4 1-1 1zM242.5 239.9h-85c-.6 0-1-.4-1-1v-6c0-.6.4-1 1-1h85c.6 0 1 .4 1 1v6c0 .6-.4 1-1 1zM242.5 251.8h-85c-.6 0-1-.4-1-1v-6c0-.6.4-1 1-1h85c.6 0 1 .4 1 1v6c0 .5-.4 1-1 1zM242.5 263.6h-85c-.6 0-1-.4-1-1v-6c0-.6.4-1 1-1h85c.6 0 1 .4 1 1v6c0 .5-.4 1-1 1zM242.5 275.4h-85c-.6 0-1-.4-1-1v-6c0-.6.4-1 1-1h85c.6 0 1 .4 1 1v6c0 .6-.4 1-1 1zM214.5 287.2h-57c-.6 0-1-.4-1-1v-6c0-.6.4-1 1-1h57c.6 0 1 .4 1 1v6c0 .6-.4 1-1 1z"/></g><path fill="#757575" d="M242.5 314.2h-85c-.6 0-1-.4-1-1v-14c0-.6.4-1 1-1h85c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1z"/><g fill="#B2B2B2"><path d="M223.5 170.2h-47c-.6 0-1-.4-1-1v-6c0-.6.4-1 1-1h47c.6 0 1 .4 1 1v6c0 .6-.4 1-1 1zM230.8 199.2h-61.6c-.6 0-1-.4-1-1v-6c0-.6.4-1 1-1h61.6c.6 0 1 .4 1 1v6c0 .6-.5 1-1 1zM214.5 186.2h-29c-.6 0-1-.4-1-1v-9c0-.6.4-1 1-1h29c.6 0 1 .4 1 1v9c0 .6-.4 1-1 1z"/></g><path fill="#EFEFEF" d="M367.4 323.8h-99.8c-1.5 0-2.7-1.2-2.7-2.7V78.9c0-1.5 1.2-2.7 2.7-2.7h99.8c1.5 0 2.7 1.2 2.7 2.7v242.2c0 1.5-1.2 2.7-2.7 2.7z"/><path fill="#B2B2B2" d="M348.3 94.2h-61.6c-.6 0-1-.4-1-1v-7c0-.6.4-1 1-1h61.6c.6 0 1 .4 1 1v7c0 .6-.5 1-1 1z"/><g fill="#D3D3D3"><path d="M360 216.2h-85c-.6 0-1-.4-1-1v-6c0-.6.4-1 1-1h85c.6 0 1 .4 1 1v6c0 .6-.4 1-1 1zM360 228.1h-85c-.6 0-1-.4-1-1v-6c0-.6.4-1 1-1h85c.6 0 1 .4 1 1v6c0 .5-.4 1-1 1zM360 239.9h-85c-.6 0-1-.4-1-1v-6c0-.6.4-1 1-1h85c.6 0 1 .4 1 1v6c0 .6-.4 1-1 1zM360 251.8h-85c-.6 0-1-.4-1-1v-6c0-.6.4-1 1-1h85c.6 0 1 .4 1 1v6c0 .5-.4 1-1 1zM360 263.6h-85c-.6 0-1-.4-1-1v-6c0-.6.4-1 1-1h85c.6 0 1 .4 1 1v6c0 .5-.4 1-1 1zM360 275.4h-85c-.6 0-1-.4-1-1v-6c0-.6.4-1 1-1h85c.6 0 1 .4 1 1v6c0 .6-.4 1-1 1zM332 287.2h-57c-.6 0-1-.4-1-1v-6c0-.6.4-1 1-1h57c.6 0 1 .4 1 1v6c0 .6-.4 1-1 1z"/></g>
1904<path fill="#757575" d="M360 314.2h-85c-.6 0-1-.4-1-1v-14c0-.6.4-1 1-1h85c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1z"/><g fill="#B2B2B2"><path d="M341 170.2h-47c-.6 0-1-.4-1-1v-6c0-.6.4-1 1-1h47c.6 0 1 .4 1 1v6c0 .6-.4 1-1 1zM348.3 199.2h-61.6c-.6 0-1-.4-1-1v-6c0-.6.4-1 1-1h61.6c.6 0 1 .4 1 1v6c0 .6-.5 1-1 1zM332 186.2h-29c-.6 0-1-.4-1-1v-9c0-.6.4-1 1-1h29c.6 0 1 .4 1 1v9c0 .6-.4 1-1 1z"/></g><path fill="#D3D3D3" d="M126.5 153.4H37.7c-1.3 0-2.4-1.1-2.4-2.4v-47.8c0-1.3 1.1-2.4 2.4-2.4h88.8c1.3 0 2.4 1.1 2.4 2.4V151c0 1.3-1.1 2.4-2.4 2.4z"/><circle cx="110.3" cy="111.7" r="3.8" fill="#B2B2B2" fill-rule="evenodd" clip-rule="evenodd"/><path fill="#B2B2B2" fill-rule="evenodd" d="M129 144v7c0 1.3-1.1 2.4-2.4 2.4H37.7c-1.3 0-2.4-1.1-2.4-2.4v-7c0-.8.4-1.5 1-2l24.4-17.6c3.1-2.2 8.1-2.2 11.2 0l27.3 19.7c.1 0 .1.1.2.1 1.6 1.1 4.1 1 5.6-.1 1.5-1.2 1.4-3-.2-4.1l-2.4-1.8c-1.3-1-1.3-2.9 0-3.9l2-1.4c3.1-2.2 8.1-2.2 11.2 0l12.4 9c.6.6 1 1.3 1 2.1z" clip-rule="evenodd"/><path fill="#D3D3D3" d="M243.5 153.4h-88.8c-1.3 0-2.4-1.1-2.4-2.4v-47.8c0-1.3 1.1-2.4 2.4-2.4h88.8c1.3 0 2.4 1.1 2.4 2.4V151c0 1.3-1.1 2.4-2.4 2.4z"/><circle cx="227.3" cy="111.7" r="3.8" fill="#B2B2B2" fill-rule="evenodd" clip-rule="evenodd"/><path fill="#B2B2B2" fill-rule="evenodd" d="M246 144v7c0 1.3-1.1 2.4-2.4 2.4h-88.9c-1.3 0-2.4-1.1-2.4-2.4v-7c0-.8.4-1.5 1-2l24.4-17.6c3.1-2.2 8.1-2.2 11.2 0l27.3 19.7c.1 0 .1.1.2.1 1.6 1.1 4.1 1 5.6-.1 1.5-1.2 1.4-3-.2
1904-4.1l-2.4-1.8c-1.3-1-1.3-2.9 0-3.9l2-1.4c3.1-2.2 8.1-2.2 11.2 0l12.4 9c.6.6 1 1.3 1 2.1z" clip-rule="evenodd"/><path fill="#D3D3D3" d="M361.5 153.4h-88.8c-1.3 0-2.4-1.1-2.4-2.4v-47.8c0-1.3 1.1-2.4 2.4-2.4h88.8c1.3 0 2.4 1.1 2.4 2.4V151c0 1.3-1.1 2.4-2.4 2.4z"/><circle cx="345.3" cy="111.7" r="3.8" fill="#B2B2B2" fill-rule="evenodd" clip-rule="evenodd"/><path fill="#B2B2B2" fill-rule="evenodd" d="M364 144v7c0 1.3-1.1 2.4-2.4 2.4h-88.9c-1.3 0-2.4-1.1-2.4-2.4v-7c0-.8.4-1.5 1-2l24.4-17.6c3.1-2.2 8.1-2.2 11.2 0l27.3 19.7c.1 0 .1.1.2.1 1.6 1.1 4.1 1 5.6-.1 1.5-1.2 1.4-3-.2-4.1l-2.4-1.8c-1.3-1-1.3-2.9 0-3.9l2-1.4c3.1-2.2 8.1-2.2 11.2 0l12.4 9c.6.6 1 1.3 1 2.1z" clip-rule="evenodd"/></svg>'},e={id:"cardFourElements",label:"4 Produkte",category:{id:"produktkacheln",label:"Produktkacheln"},attributes:{"data-os-group":"Vertriebliche Elemente","data-os-page-type":"cue"},content:` 1905 <div 1906 data-component-id="16" 1907 data-component-version="1.0.0" 1908 data-component-name="Vertriebliche Elemente - Produktkacheln - 4 Produkte" 1909 class="mb-8"> 1910 <ul class="grid grid-cols-1 gap-5 px-2 md:grid-cols-4"> 1911 <li class="text-center w-full block lg:block rounded-md border border-slate-200 bg-white p-5 relative shadow-sm transition-shadow duration-300 hover:shadow-md animate-slide-up dark:border-dark-border dark:bg-dark-surface"> 1912 <div class="w-full card-head"> 1913 <strong class="text-title4 md:text-title5 outline-none block mb-1">Lorem Ipsum</strong> 1914 <div class="relative mb-3 block"> 1915 <picture class="block w-full"> 1916 <source media="(max-width: 639px)" srcset="https://placehold.co/640x360?text=Mobile_640x360px"> 1917 <source media="(min-width: 640px)" srcset="https://placehold.co/960x540?text=Desktop_960x540px"> 1918 <img src="https://placehold.co/960x540?text=Desktop_960x540px" alt="Descriptive text" class="aspect-[16/9] skeleton"> 1919 </picture> 1920 </div> 1921 </div> 1922 <div class="ml-0 md:ml-4 lg:ml-0 mt-2 md:mt-0 lg:mt-2"> 1923 <div class="card-body"> 1924 <strong class="text-title4 md:text-title5 outline-none block mb-1">X Monate</strong> 1925 <strong class="text-title3 md:text-title4 block"><span class="text-xs mr-2">nur</span>99,99 â¬<span class="text-xs ml-2">/ Monat*</span></strong> 1926 <p class="text-body2 mt-2 block mb-2 text-center">In dui magna, posuere eget, vestibulum et.</p> 1927 <hr> 1928 <ul class="custom-list-style list-bullet-brand-primary-500 flex flex-col text-left flex-wrap relative"> 1929 <li>Phasellus blandit leo ut odio</li> 1930 <li>Etiam imperdiet imperdiet orci</li> 1931 <li>Imperdiet loremum pisi</li> 1932 </ul> 1933 </div> 1934 <a href target="_self" title="" class="no-underline font-medium inline-block overflow-hidden text-ellipsis whitespace-nowrap rounded border-2 px-6 mt-4 text-center uppercase transition hover:shadow-sm focus:shadow-sm active:shadow-sm disabled:border-gray-100 disabled:bg-gray-100 disabled:text-copy-primary disabled:shadow-none text-white text-sm leading-[41px] w-full border-brand-primary-500 hover:border-brand-primary-700 focus:border-brand-primary-700 active:border-brand-primary-300 bg-brand-primary-500 hover:bg-brand-primary-700 focus:bg-brand-primary-700 active:bg-brand-primary-300" 1935 data-track-v2-parentposition="Content" data-track-v2-parent="Vertriebliche Elemente - Produktkacheln - 4 Produkte" data-track-v2-parentlabel="OS - Vertrieb" data-track-v2-elementposition="1" data-track-v2-elementtype="Button" data-track-v2-vendor="Internal" data-track-v2-link="" data-track-v2-linktype="External" data-track-v2-linkgenre="" data-track-v2-clickaction="">
1936 <span class="px-6">Button</span> 1937 </a> 1938 </div> 1939 </li> 1940 <li class="text-center w-full block lg:block rounded-md border border-slate-200 bg-white p-5 relative shadow-sm transition-shadow duration-300 hover:shadow-md animate-slide-up dark:border-dark-border dark:bg-dark-surface"> 1941 <div class="w-full card-head"> 1942 <strong class="text-title4 md:text-title5 outline-none block mb-1">Lorem Ipsum</strong> 1943 <div class="relative mb-3 block"> 1944 <picture class="block w-full"> 1945 <source media="(max-width: 639px)" srcset="https://placehold.co/640x360?text=Mobile_640x360px"> 1946 <source media="(min-width: 640px)" srcset="https://placehold.co/960x540?text=Desktop_960x540px"> 1947 <img src="https://placehold.co/960x540?text=Desktop_960x540px" alt="Descriptive text" class="aspect-[16/9] skeleton"> 1948 </picture> 1949 </div> 1950 </div> 1951 <div class="ml-0 md:ml-4 lg:ml-0 mt-2 md:mt-0 lg:mt-2"> 1952 <div class="card-body"> 1953 <strong class="text-title4 md:text-title5 outline-none block mb-1">X Monate</strong> 1954 <strong class="text-title3 md:text-title4 block"><span class="text-xs mr-2">nur</span>99,99 â¬<span class="text-xs ml-2">/ Monat*</span></strong> 1955 <p class="text-body2 mt-2 block mb-2 text-center">In dui magna, posuere eget, vestibulum et.</p> 1956 <hr> 1957 <ul class="custom-list-style list-bullet-brand-primary-500 flex flex-col text-left flex-wrap relative"> 1958 <li>Phasellus blandit leo ut odio</li> 1959 <li>Etiam imperdiet imperdiet orci</li> 1960 <li>Imperdiet loremum pisi</li> 1961 </ul> 1962 </div> 1963 <a href target="_self" title="" class="no-underline font-medium inline-block overflow-hidden text-ellipsis whitespace-nowrap rounded border-2 px-6 mt-4 text-center uppercase transition hover:shadow-sm focus:shadow-sm active:shadow-sm disabled:border-gray-100 disabled:bg-gray-100 disabled:text-copy-primary disabled:shadow-none text-white text-sm leading-[41px] w-full border-brand-primary-500 hover:border-brand-primary-700 focus:border-brand-primary-700 active:border-brand-primary-300 bg-brand-primary-500 hover:bg-brand-primary-700 focus:bg-brand-primary-700 active:bg-brand-primary-300" 1964 data-track-v2-parentposition="Content" data-track-v2-parent="Vertriebliche Elemente - Produktkacheln - 4 Produkte" data-track-v2-parentlabel="OS - Vertrieb" data-track-v2-elementposition="2" data-track-v2-elementtype="Button" data-track-v2-vendor="Internal" data-track-v2-link="" data-track-v2-linktype="External" data-track-v2-linkgenre="" data-track-v2-clickaction=""> 1965 <span class="px-6">Button</span> 1966 </a> 1967 </div> 1968 </li> 1969 <li class="text-center w-full block lg:block rounded-md border border-slate-200 bg-white p-5 relative shadow-sm transition-shadow duration-300 hover:shadow-md animate-slide-up dark:border-dark-border dark:bg-dark-surface"> 1970 <div class="ribbon ribbon-top-right z-10 before:border-brand-primary-700 after:border-brand-primary-700"><span class="bg-brand-primary-500">Beliebt</span></div> 1971 <div class="w-full card-head"> 1972 <strong class="text-title4 md:text-title5 outline-none block mb-1">Lorem Ipsum</strong> 1973 <div class="relative mb-3 block"> 1974 <picture class="block w-full"> 1975 <source media="(max-width: 639px)" srcset="https://placehold.co/640x360?text=Mobile_640x360px"> 1976 <source media="(min-width: 640px)" srcset="https://placehold.co/960x540?text=Desktop_960x540px"> 1977 <img src="https://placehold.co/960x540?text=Desktop_960x540px" alt="Descriptive text" class="aspect-[16/9] skeleton"> 1978 </picture> 1979 </div> 1980 </div> 1981 <div class="ml-0 md:ml-4 lg:ml-0 mt-2 md:mt-0 lg:mt-2"> 1982 <div class="card-body"> 1983 <strong class="text-title4 md:text-title5 outline-none block mb-1">X Monate</strong> 1984 <strong class="text-title3 md:text-title4 block"><span class="text-xs mr-2">
1984nur</span>99,99 â¬<span class="text-xs ml-2">/ Monat*</span></strong> 1985 <p class="text-body2 mt-2 block mb-2 text-center">In dui magna, posuere eget, vestibulum et.</p> 1986 <hr> 1987 <ul class="custom-list-style list-bullet-brand-primary-500 flex flex-col text-left flex-wrap relative"> 1988 <li>Phasellus blandit leo ut odio</li> 1989 <li>Etiam imperdiet imperdiet orci</li> 1990 <li>Imperdiet loremum pisi</li> 1991 </ul> 1992 </div> 1993 <a href target="_self" title="" class="no-underline font-medium inline-block overflow-hidden text-ellipsis whitespace-nowrap rounded border-2 px-6 mt-4 text-center uppercase transition hover:shadow-sm focus:shadow-sm active:shadow-sm disabled:border-gray-100 disabled:bg-gray-100 disabled:text-copy-primary disabled:shadow-none text-white text-sm leading-[41px] w-full border-brand-primary-500 hover:border-brand-primary-700 focus:border-brand-primary-700 active:border-brand-primary-300 bg-brand-primary-500 hover:bg-brand-primary-700 focus:bg-brand-primary-700 active:bg-brand-primary-300" 1994 data-track-v2-parentposition="Content" data-track-v2-parent="Vertriebliche Elemente - Produktkacheln - 4 Produkte" data-track-v2-parentlabel="OS - Vertrieb" data-track-v2-elementposition="3" data-track-v2-elementtype="Button" data-track-v2-vendor="Internal" data-track-v2-link="" data-track-v2-linktype="External" data-track-v2-linkgenre="" data-track-v2-clickaction=""> 1995 <span class="px-6">Button</span> 1996 </a> 1997 </div> 1998 </li> 1999 <li class="text-center w-full block lg:block rounded-md border border-slate-200 bg-white p-5 relative shadow-sm transition-shadow duration-300 hover:shadow-md animate-slide-up dark:border-dark-border dark:bg-dark-surface"> 2000 <div class="w-full card-head"> 2001 <strong class="text-title4 md:text-title5 outline-none block mb-1">Lorem Ipsum</strong> 2002 <div class="relative mb-3 block"> 2003 <picture class="block w-full"> 2004 <source media="(max-width: 639px)" srcset="https://placehold.co/640x360?text=Mobile_640x360px"> 2005 <source media="(min-width: 640px)" srcset="https://placehold.co/960x540?text=Desktop_960x540px"> 2006 <img src="https://placehold.co/960x540?text=Desktop_960x540px" alt="Descriptive text" class="aspect-[16/9] skeleton"> 2007 </picture> 2008 </div> 2009 </div> 2010 <div class="ml-0 md:ml-4 lg:ml-0 mt-2 md:mt-0 lg:mt-2"> 2011 <div class="card-body"> 2012 <strong class="text-title4 md:text-title5 outline-none block mb-1">X Monate</strong> 2013 <strong class="text-title3 md:text-title4 block"><span class="text-xs mr-2">nur</span>99,99 â¬<span class="text-xs ml-2">/ Monat*</span></strong> 2014 <p class="text-body2 mt-2 block mb-2 text-center">In dui magna, posuere eget, vestibulum et.</p> 2015 <hr> 2016 <ul class="custom-list-style list-bullet-brand-primary-500 flex flex-col text-left flex-wrap relative"> 2017 <li>Phasellus blandit leo ut odio</li> 2018 <li>Etiam imperdiet imperdiet orci</li> 2019 <li>Imperdiet loremum pisi</li> 2020 </ul> 2021 </div> 2022 <a href target="_self" title="" class="no-underline font-medium inline-block overflow-hidden text-ellipsis whitespace-nowrap rounded border-2 px-6 mt-4 text-center uppercase transition hover:shadow-sm focus:shadow-sm active:shadow-sm disabled:border-gray-100 disabled:bg-gray-100 disabled:text-copy-primary disabled:shadow-none text-white text-sm leading-[41px] w-full border-brand-primary-500 hover:border-brand-primary-700 focus:border-brand-primary-700 active:border-brand-primary-300 bg-brand-primary-500 hover:bg-brand-primary-700 focus:bg-brand-primary-700 active:bg-brand-primary-300" 2023 data-track-v2-parentposition="Content" data-track-v2-parent="Vertriebliche Elemente - Produktk
2023acheln - 4 Produkte" data-track-v2-parentlabel="OS - Vertrieb" data-track-v2-elementposition="4" data-track-v2-elementtype="Button" data-track-v2-vendor="Internal" data-track-v2-link="" data-track-v2-linktype="External" data-track-v2-linkgenre="" data-track-v2-clickaction=""> 2024 <span class="px-6">Button</span> 2025 </a> 2026 </div> 2027 </li> 2028 </ul> 2029 <p class="text-xs text-center w-[90%] md:w-full mx-auto mt-2 px-2">*Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> 2030 </div> 2031 `,media:'<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 400 400"><path fill="#EFEFEF" d="M368 266h-75.1c-1.1 0-1.9-.9-1.9-1.9V93.9c0-1.1.9-1.9 1.9-1.9H368c1.1 0 1.9.9 1.9 1.9V264c0 1.1-.8 2-1.9 2z"/><g fill="#D3D3D3"><path d="M362.4 185.3h-63.8c-.4 0-.8-.3-.8-.8V180c0-.4.3-.8.8-.8h63.8c.4 0 .8.3.8.8v4.5c-.1.5-.4.8-.8.8zM362.4 194.2h-63.8c-.4 0-.8-.3-.8-.8v-4.5c0-.4.3-.8.8-.8h63.8c.4 0 .8.3.8.8v4.5c-.1.4-.4.8-.8.8zM362.4 203.1h-63.8c-.4 0-.8-.3-.8-.8v-4.5c0-.4.3-.8.8-.8h63.8c.4 0 .8.3.8.8v4.5c-.1.4-.4.8-.8.8zM362.4 211.9h-63.8c-.4 0-.8-.3-.8-.8v-4.5c0-.4.3-.8.8-.8h63.8c.4 0 .8.3.8.8v4.5c-.1.5-.4.8-.8.8zM362.4 220.8h-63.8c-.4 0-.8-.3-.8-.8v-4.5c0-.4.3-.8.8-.8h63.8c.4 0 .8.3.8.8v4.5c-.1.5-.4.8-.8.8zM362.4 229.7h-63.8c-.4 0-.8-.3-.8-.8v-4.5c0-.4.3-.8.8-.8h63.8c.4 0 .8.3.8.8v4.5c-.1.5-.4.8-.8.8zM341.3 238.6h-42.8c-.4 0-.8-.3-.8-.8v-4.5c0-.4.3-.8.8-.8h42.8c.4 0 .8.3.8.8v4.5c0 .5-.4.8-.8.8z"/></g><path fill="#757575" d="M362.4 258.9h-63.8c-.4 0-.8-.3-.8-.8v-10.5c0-.4.3-.8.8-.8h63.8c.4 0 .8.3.8.8v10.5c-.1.4-.4.8-.8.8z"/><g fill="#B2B2B2"><path d="M348.1 150.8h-35.3c-.4 0-.8-.3-.8-.8v-4.5c0-.4.3-.8.8-.8h35.3c.4 0 .8.3.8.8v4.5c-.1.4-.4.8-.8.8zM353.6 172.5h-46.2c-.4 0-.8-.3-.8-.8v-4.5c0-.4.3-.8.8-.8h46.2c.4 0 .8.3.8.8v4.5c-.1.5-.4.8-.8.8zM341.4 162.8h-21.8c-.4 0-.8-.3-.8-.8v-6.8c0-.4.3-.8.8-.8h21.8c.4 0 .8.3.8.8v6.8c-.1.4-.4.8-.8.8z"/></g><path fill="#D3D3D3" d="M363.8 138.1h-66.7c-1 0-1.8-.8-1.8-1.8v-35.9c0-1 .8-1.8 1.8-1.8h66.7c1 0 1.8.8 1.8 1.8v35.9c0 1-.8 1.8-1.8 1.8z"/><circle cx="330.5" cy="106.8" r="2.9" fill="#B2B2B2" fill-rule="evenodd" clip-rule="evenodd"/><path fill="#B2B2B2" fill-rule="evenodd" d="M365.6 131v5.3c0 1-.8 1.8-1.8 1.8H297c-1 0-1.8-.8-1.8-1.8V131c0-.6.3-1.1.7-1.5l18.3-13.2c2.3-1.7 6.1-1.7 8.4 0l20.5 14.8.1.1c1.2.8 3.1.8 4.2-.1s1.1-2.2-.1-3l-1.8-1.3c-1-.7-1-2.2 0-2.9l1.5-1.1c2.3-1.7 6.1-1.7 8.4 0l9.3 6.7c.7.4.9.9.9 1.5z" clip-rule="evenodd"/><path fill="#EFEFEF" d="M280.7 266h-75.1c-1.1 0-1.9-.9-1.9-1.9V93.9c0-1.1.9-1.9 1.9-1.9h75.1c1.1 0 1.9.9 1.9 1.9V264c0 1.1-.8 2-1.9 2z"/><g fill="#D3D3D3"><path d="M275.1 185.3h-63.8c-.4 0-.8-.3-.8-.8V180c0-.4.3-.8.8-.8h63.8c.4 0 .8.3.8.8v4.5c-.1.5-.4.8-.8.8zM275.1 194.2h-63.8c-.4 0-.8-.3-.8-.8v-4.5c0-.4.3-.8.8-.8h63.8c.4 0 .8.3.8.8v4.5c-.1.4-.4.8-.8.8zM275.1 203.1h-63.8c-.4 0-.8-.3-.8-.8v-4.5c0-.4.3-.8.8-.8h63.8c.4 0 .8.3.8.8v4.5c-.1.4-.4.8-.8.8zM275.1 211.9h-63.8c-.4 0-.8-.3-.8-.8v-4.5c0-.4.3-.8.8-.8h63.8c.4 0 .8.3.8.8v4.5c-.1.5-.4.8-.8.8zM275.1 220.8h-63.8c-.4 0-.8-.3-.8-.8v-4.5c0-.4.3-.8.8-.8h63.8c.4 0 .8.3.8.8v4.5c-.1.5-.4.8-.8.8zM275.1 229.7h-63.8c-.4 0-.8-.3-.8-.8v-4.5c0-.4.3-.8.8-.8h63.8c.4 0 .8.3.8.8v4.5c-.1.5-.4.8-.8.8zM254 238.6h-42.8c-.4 0-.8-.3-.8-.8v-4.5c0-.4.3-.8.8-.8H254c.4 0 .8.3.8.8v4.5c0 .5-.3.8-.8.8z"/></g><path fill="#757575" d="M275.1 258.9h-63.8c-.4 0-.8-.3-.8-.8v-10.5c0-.4.3-.8.8-.8h63.8c.4 0 .8.3.8.8v10.5c-.1.4-.4.8-.8.8z"/><g fill="#B2B2B2"><path d="M260.8 150.8h-35.3c-.4 0-.8-.3-.8-.8v-4.5c0-.4.3-.8.8-.8h35.3c.4 0 .8.3.8.8v4.5c0 .4-.4.8-.8.8zM266.3 172.5h-46.2c-.4 0-.8-.3-.8-.8v-4.5c0-.4.3-.8.8-.8h46.2c.4 0 .8.3.8.8v4.5c-.1.5-.4.8-.8.8zM254.1 162.8h-21.8c-.4 0-.8-.3-.8-.8v-6.8c0-.4.3-.8.8-.8h21.8c.4 0 .8.3.8.8v6.8c-.1.4-.4.8-.8.8z"/></g><path fill="#D3D3D3" d="M276.5 138.1h-66.7c-1 0-1.8-.8-1.8-1.8v-35.9c0-1 .8-1.8 1.8-1.8h66.7c1 0 1.8.8 1.8 1.8v35.9c0 1-.8 1.8-1.8 1.8z"/><circle cx="243.2" cy="106.8" r="2.9" fill="#B2B2B2" fill-rule="evenodd" clip-rule="evenodd"/><path fill="#B2B2B2" fill-rule="evenodd" d="M278.4 131v5.3c0 1-.8 1.8-1.8 1.8h-66.8c-1 0-1.8-.8-1.8-1.8V131c0-.6.3-1.1.7-1.5l18.3-13.2c2.3-1.7 6.1-1.7 8.4 0l20.5 14.8.1.1c1.2.8 3.1.8 4.2-.1s1.1-2.2-.1-3l-1.8-1.3c-1-.7-1-2.2 0-2.9l1.5-1.1c2.3-1.7 6.1-1.7 8.4 0l9.3 6.7c.6.4.9.9.9 1.5z" clip-rule="evenodd"/>
2031<path fill="#EFEFEF" d="M193.4 266h-75.1c-1.1 0-1.9-.9-1.9-1.9V93.9c0-1.1.9-1.9 1.9-1.9h75.1c1.1 0 1.9.9 1.9 1.9V264c0 1.1-.8 2-1.9 2z"/><g fill="#D3D3D3"><path d="M187.8 185.3H124c-.4 0-.8-.3-.8-.8V180c0-.4.3-.8.8-.8h63.8c.4 0 .8.3.8.8v4.5c-.1.5-.4.8-.8.8zM187.8 194.2H124c-.4 0-.8-.3-.8-.8v-4.5c0-.4.3-.8.8-.8h63.8c.4 0 .8.3.8.8v4.5c-.1.4-.4.8-.8.8zM187.8 203.1H124c-.4 0-.8-.3-.8-.8v-4.5c0-.4.3-.8.8-.8h63.8c.4 0 .8.3.8.8v4.5c-.1.4-.4.8-.8.8zM187.8 211.9H124c-.4 0-.8-.3-.8-.8v-4.5c0-.4.3-.8.8-.8h63.8c.4 0 .8.3.8.8v4.5c-.1.5-.4.8-.8.8zM187.8 220.8H124c-.4 0-.8-.3-.8-.8v-4.5c0-.4.3-.8.8-.8h63.8c.4 0 .8.3.8.8v4.5c-.1.5-.4.8-.8.8zM187.8 229.7H124c-.4 0-.8-.3-.8-.8v-4.5c0-.4.3-.8.8-.8h63.8c.4 0 .8.3.8.8v4.5c-.1.5-.4.8-.8.8zM166.8 238.6H124c-.4 0-.8-.3-.8-.8v-4.5c0-.4.3-.8.8-.8h42.8c.4 0 .8.3.8.8v4.5c-.1.5-.4.8-.8.8z"/></g><path fill="#757575" d="M187.8 258.9H124c-.4 0-.8-.3-.8-.8v-10.5c0-.4.3-.8.8-.8h63.8c.4 0 .8.3.8.8v10.5c0 .4-.4.8-.8.8z"/><g fill="#B2B2B2"><path d="M173.5 150.8h-35.3c-.4 0-.8-.3-.8-.8v-4.5c0-.4.3-.8.8-.8h35.3c.4 0 .8.3.8.8v4.5c0 .4-.4.8-.8.8zM179 172.5h-46.2c-.4 0-.8-.3-.8-.8v-4.5c0-.4.3-.8.8-.8H179c.4 0 .8.3.8.8v4.5c-.1.5-.4.8-.8.8zM166.8 162.8H145c-.4 0-.8-.3-.8-.8v-6.8c0-.4.3-.8.8-.8h21.8c.4 0 .8.3.8.8v6.8c-.1.4-.4.8-.8.8z"/></g><path fill="#D3D3D3" d="M189.2 138.1h-66.7c-1 0-1.8-.8-1.8-1.8v-35.9c0-1 .8-1.8 1.8-1.8h66.7c1 0 1.8.8 1.8 1.8v35.9c0 1-.8 1.8-1.8 1.8z"/><circle cx="155.9" cy="106.8" r="2.9" fill="#B2B2B2" fill-rule="evenodd" clip-rule="evenodd"/><path fill="#B2B2B2" fill-rule="evenodd" d="M191.1 131v5.3c0 1-.8 1.8-1.8 1.8h-66.8c-1 0-1.8-.8-1.8-1.8V131c0-.6.3-1.1.7-1.5l18.3-13.2c2.3-1.7 6.1-1.7 8.4 0l20.5 14.8.1.1c1.2.8 3.1.8 4.2-.1s1.1-2.2-.1-3l-1.8-1.3c-1-.7-1-2.2 0-2.9l1.5-1.1c2.3-1.7 6.1-1.7 8.4 0l9.3 6.7c.6.4.9.9.9 1.5z" clip-rule="evenodd"/><path fill="#EFEFEF" d="M106.1 266h-75c-1.1 0-1.9-.9-1.9-1.9V93.9c0-1.1.9-1.9 1.9-1.9h75.1c1.1 0 1.9.9 1.9 1.9V264c0 1.1-.9 2-2 2z"/><g fill="#D3D3D3"><path d="M100.5 185.3H36.7c-.4 0-.8-.3-.8-.8V180c0-.4.3-.8.8-.8h63.8c.4 0 .8.3.8.8v4.5c-.1.5-.4.8-.8.8zM100.5 194.2H36.7c-.4 0-.8-.3-.8-.8v-4.5c0-.4.3-.8.8-.8h63.8c.4 0 .8.3.8.8v4.5c-.1.4-.4.8-.8.8zM100.5 203.1H36.7c-.4 0-.8-.3-.8-.8v-4.5c0-.4.3-.8.8-.8h63.8c.4 0 .8.3.8.8v4.5c-.1.4-.4.8-.8.8zM100.5 211.9H36.7c-.4 0-.8-.3-.8-.8v-4.5c0-.4.3-.8.8-.8h63.8c.4 0 .8.3.8.8v4.5c-.1.5-.4.8-.8.8zM100.5 220.8H36.7c-.4 0-.8-.3-.8-.8v-4.5c0-.4.3-.8.8-.8h63.8c.4 0 .8.3.8.8v4.5c-.1.5-.4.8-.8.8zM100.5 229.7H36.7c-.4 0-.8-.3-.8-.8v-4.5c0-.4.3-.8.8-.8h63.8c.4 0 .8.3.8.8v4.5c-.1.5-.4.8-.8.8zM79.5 238.6H36.7c-.4 0-.8-.3-.8-.8v-4.5c0-.4.3-.8.8-.8h42.8c.4 0 .8.3.8.8v4.5c-.1.5-.4.8-.8.8z"/></g><path fill="#757575" d="M100.5 258.9H36.7c-.4 0-.8-.3-.8-.8v-10.5c0-.4.3-.8.8-.8h63.8c.4 0 .8.3.8.8v10.5c0 .4-.4.8-.8.8z"/><g fill="#B2B2B2"><path d="M86.2 150.8H51c-.4 0-.8-.3-.8-.8v-4.5c0-.4.3-.8.8-.8h35.3c.4 0 .8.3.8.8v4.5c-.1.4-.5.8-.9.8zM91.7 172.5H45.5c-.4 0-.8-.3-.8-.8v-4.5c0-.4.3-.8.8-.8h46.2c.4 0 .8.3.8.8v4.5c-.1.5-.4.8-.8.8zM79.5 162.8H57.7c-.4 0-.8-.3-.8-.8v-6.8c0-.4.3-.8.8-.8h21.8c.4 0 .8.3.8.8v6.8c-.1.4-.4.8-.8.8z"/></g><path fill="#D3D3D3" d="M101.9 138.1H35.3c-1 0-1.8-.8-1.8-1.8v-35.9c0-1 .8-1.8 1.8-1.8H102c1 0 1.8.8 1.8 1.8v35.9c-.1 1-.9 1.8-1.9 1.8z"/><circle cx="68.6" cy="106.8" r="2.9" fill="#B2B2B2" fill-rule="evenodd" clip-rule="evenodd"/><path fill="#B2B2B2" fill-rule="evenodd" d="M103.8 131v5.3c0 1-.8 1.8-1.8 1.8H35.2c-1 0-1.8-.8-1.8-1.8V131c0-.6.3-1.1.7-1.5l18.3-13.2c2.3-1.7 6.1-1.7 8.4 0l20.5 14.8.1.1c1.2.8 3.1.8 4.2-.1s1.1-2.2-.1-3l-1.8-1.3c-1-.7-1-2.2 0-2.9l1.5-1.1c2.3-1.7 6.1-1.7 8.4 0l9.3 6.7c.6.4.9.9.9 1.5z" clip-rule="evenodd"/></svg>'},n={id:"cardThreeContent",label:"Inhalt - 3 Karten",category:{id:"cards",label:"Karten"},attributes:{"data-os-group":"Landingpage Elemente","data-os-page-type":"cue"},content:` 2032 <ul 2033 data-component-id="17" 2034 data-component-version="1.0.0" 2035 data-component-name="Landingpage Elemente - Karten - 3 Karten" 2036 class="mb-8 md:mb-8 grid grid-cols-1 gap-5 px-2 md:grid-cols-3"> 2037 <li class="text-center w-full block rounded-md border border-slate-200 bg-white p-5 relative shadow-sm transition-shadow duration-300 hover:shadow-md animate-slide-up dark:border-dark-border dark:bg-dark-surface"> 2038 <div class="w-full flex flex-col items-center"> 2039 <div class="relative mb-3 block"> 2040 <picture class="block w-full"> 2041 <source media="(max-width: 639px)" srcset="https://placehold.co/640x360?text=Mobile_640x360px"> 2042 <source media="(min-width: 640px)" srcset="https://placehold.co/960x540?text=Desktop_960x540px"> 2043 <img src="https://placehold.co/960x540?text=Desktop_960x540px" alt="Descriptive text" class="aspect-[16/9] skeleton"> 2044 </picture> 2045 </div>
2046 <span class="text-overline py-0 px-[3px] text-[13px] border border-stroke-100 rounded text-gray-ts mb-2 block uppercase">Custom Flag</span> 2047 <strong class="text-title5 block">Lorem Ipsum</strong> 2048 <p class="text-body2 mt-2 block mb-2">In dui magna, posuere eget, vestibulum et, tempor auctor, justo. Pellentesque ut neque.</p> 2049 <a href target="_self" title="" class="no-underline font-medium inline-block overflow-hidden text-ellipsis whitespace-nowrap rounded border-2 px-6 mt-4 text-center uppercase transition hover:shadow-sm focus:shadow-sm active:shadow-sm disabled:border-gray-100 disabled:bg-gray-100 disabled:text-copy-primary disabled:shadow-none text-white text-sm leading-[41px] w-full border-brand-primary-500 hover:border-brand-primary-700 focus:border-brand-primary-700 active:border-brand-primary-300 bg-brand-primary-500 hover:bg-brand-primary-700 focus:bg-brand-primary-700 active:bg-brand-primary-300" 2050 data-track-v2-parentposition="Content" data-track-v2-parent="Landingpage Elemente - Karten - 3 Karten" data-track-v2-parentlabel="OS - Inhalt" data-track-v2-elementposition="1" data-track-v2-elementtype="Button" data-track-v2-vendor="Internal" data-track-v2-link="" data-track-v2-linktype="External" data-track-v2-linkgenre="" data-track-v2-clickaction=""> 2051 <span class="px-6">Button</span> 2052 </a> 2053 </div> 2054 </li> 2055 <li class="text-center w-full block rounded-md border border-slate-200 bg-white p-5 relative shadow-sm transition-shadow duration-300 hover:shadow-md animate-slide-up dark:border-dark-border dark:bg-dark-surface"> 2056 <div class="w-full flex flex-col items-center"> 2057 <div class="relative mb-3 block"> 2058 <picture class="block w-full"> 2059 <source media="(max-width: 639px)" srcset="https://placehold.co/640x360?text=Mobile_640x360px"> 2060 <source media="(min-width: 640px)" srcset="https://placehold.co/960x540?text=Desktop_960x540px"> 2061 <img src="https://placehold.co/960x540?text=Desktop_960x540px" alt="Descriptive text" class="aspect-[16/9] skeleton"> 2062 </picture> 2063 </div> 2064 <span class="text-overline py-0 px-[3px] text-[13px] border border-stroke-100 rounded text-gray-ts mb-2 block uppercase">Custom Flag</span> 2065 <strong class="text-title5 block">Lorem Ipsum</strong> 2066 <p class="text-body2 mt-2 block mb-2">In dui magna, posuere eget, vestibulum et, tempor auctor, justo. Pellentesque ut neque.</p> 2067 <a href target="_self" title="" class="no-underline font-medium inline-block overflow-hidden text-ellipsis whitespace-nowrap rounded border-2 px-6 mt-4 text-center uppercase transition hover:shadow-sm focus:shadow-sm active:shadow-sm disabled:border-gray-100 disabled:bg-gray-100 disabled:text-copy-primary disabled:shadow-none text-white text-sm leading-[41px] w-full border-brand-primary-500 hover:border-brand-primary-700 focus:border-brand-primary-700 active:border-brand-primary-300 bg-brand-primary-500 hover:bg-brand-primary-700 focus:bg-brand-primary-700 active:bg-brand-primary-300" 2068 data-track-v2-parentposition="Content" data-track-v2-parent="Landingpage Elemente - Karten - 3 Karten" data-track-v2-parentlabel="OS - Inhalt" data-track-v2-elementposition="2" data-track-v2-elementtype="Button" data-track-v2-vendor="Internal" data-track-v2-link="" data-track-v2-linktype="External" data-track-v2-linkgenre="" data-track-v2-clickaction=""> 2069 <span class="px-6">Button</span> 2070 </a> 2071 </div> 2072 </li> 2073 <li class="text-center w-full block rounded-md border border-slate-200 bg-white p-5 relative shadow-sm transition-shadow duration-300 hover:shadow-md animate-slide-up dark:border-dark-border dark:bg-dark-surface"> 2074 <div class="w-full flex flex-col items-center"> 2075 <div class="relative mb-3 block"> 2076 <picture class="block w-full"> 2077 <source media="(max-width: 639px)" srcset="https://placehold.co/640x360?text=Mobile_640x360px"> 2078 <source media="(min-width: 640px)" srcset="https://placehold.co/960x540?text=Desktop_960x540px"> 2079 <img src="https://placehold.co/960x540?text=Desktop_960x540px" alt="Descriptive text" class="aspect-[16/9] skeleton"> 2080 </picture> 2081 </div>
2082 <span class="text-overline py-0 px-[3px] text-[13px] border border-stroke-100 rounded text-gray-ts mb-2 block uppercase">Custom Flag</span> 2083 <strong class="text-title5 block">Lorem Ipsum</strong> 2084 <p class="text-body2 mt-2 block mb-2">In dui magna, posuere eget, vestibulum et, tempor auctor, justo. Pellentesque ut neque.</p> 2085 <a href target="_self" title="" class="no-underline font-medium inline-block overflow-hidden text-ellipsis whitespace-nowrap rounded border-2 px-6 mt-4 text-center uppercase transition hover:shadow-sm focus:shadow-sm active:shadow-sm disabled:border-gray-100 disabled:bg-gray-100 disabled:text-copy-primary disabled:shadow-none text-white text-sm leading-[41px] w-full border-brand-primary-500 hover:border-brand-primary-700 focus:border-brand-primary-700 active:border-brand-primary-300 bg-brand-primary-500 hover:bg-brand-primary-700 focus:bg-brand-primary-700 active:bg-brand-primary-300" 2086 data-track-v2-parentposition="Content" data-track-v2-parent="Landingpage Elemente - Karten - 3 Karten" data-track-v2-parentlabel="OS - Inhalt" data-track-v2-elementposition="3" data-track-v2-elementtype="Button" data-track-v2-vendor="Internal" data-track-v2-link="" data-track-v2-linktype="External" data-track-v2-linkgenre="" data-track-v2-clickaction=""> 2087 <span class="px-6">Button</span> 2088 </a> 2089 </div> 2090 </li> 2091 </ul> 2092 `,media:'<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 400 400"><path fill="#EFEFEF" d="M133 262.9H31.7c-1.1 0-1.9-.9-1.9-1.9V139c0-1.1.9-1.9 1.9-1.9H133c1.1 0 1.9.9 1.9 1.9v122c0 1.1-.8 1.9-1.9 1.9zM250.5 262.9H149.2c-1.1 0-1.9-.9-1.9-1.9V139c0-1.1.9-1.9 1.9-1.9h101.3c1.1 0 1.9.9 1.9 1.9v122c0 1.1-.8 1.9-1.9 1.9zM368 262.9H266.7c-1.1 0-1.9-.9-1.9-1.9V139c0-1.1.9-1.9 1.9-1.9H368c1.1 0 1.9.9 1.9 1.9v122c0 1.1-.8 1.9-1.9 1.9z"/><path fill="#757575" d="M124.9 255.7h-85c-.6 0-1-.4-1-1v-14c0-.6.4-1 1-1h85c.6 0 1 .4 1 1v14c0 .5-.5 1-1 1z"/><path fill="#B2B2B2" d="M113.1 230.7H51.6c-.6 0-1-.4-1-1v-6c0-.6.4-1 1-1h61.6c.6 0 1 .4 1 1v6c-.1.5-.5 1-1.1 1zM96.9 217.7h-29c-.6 0-1-.4-1-1v-9c0-.6.4-1 1-1h29c.6 0 1 .4 1 1v9c0 .5-.5 1-1 1z"/><path fill="#757575" d="M242.4 255.7h-85c-.6 0-1-.4-1-1v-14c0-.6.4-1 1-1h85c.6 0 1 .4 1 1v14c0 .5-.5 1-1 1z"/><path fill="#B2B2B2" d="M230.6 230.7H169c-.6 0-1-.4-1-1v-6c0-.6.4-1 1-1h61.6c.6 0 1 .4 1 1v6c0 .5-.4 1-1 1zM214.4 217.7h-29c-.6 0-1-.4-1-1v-9c0-.6.4-1 1-1h29c.6 0 1 .4 1 1v9c0 .5-.5 1-1 1z"/><circle cx="110.3" cy="155.1" r="3.8" fill="#B2B2B2" fill-rule="evenodd" clip-rule="evenodd"/><path fill="#D3D3D3" d="M126.8 196.8H38c-1.3 0-2.4-1.1-2.4-2.4v-47.8c0-1.3 1.1-2.4 2.4-2.4h88.8c1.3 0 2.4 1.1 2.4 2.4v47.8c0 1.4-1.1 2.4-2.4 2.4z"/><path fill="#B2B2B2" fill-rule="evenodd" d="M129.2 187.4v7c0 1.3-1.1 2.4-2.4 2.4H37.9c-1.3 0-2.4-1.1-2.4-2.4v-7c0-.8.4-1.5 1-2l24.4-17.6c3.1-2.2 8.1-2.2 11.2 0l27.3 19.7c.1 0 .1.1.2.1 1.6 1.1 4.1 1 5.6-.1 1.5-1.2 1.4-3-.2
2092-4.1l-2.4-1.8c-1.3-1-1.3-2.9 0-3.9l2-1.4c3.1-2.2 8.1-2.2 11.2 0l12.4 9c.7.6 1 1.3 1 2.1z" clip-rule="evenodd"/><circle cx="82.9" cy="155.1" r="3.8" fill="#B2B2B2" fill-rule="evenodd" clip-rule="evenodd"/><path fill="#D3D3D3" d="M244.3 196.8h-88.8c-1.3 0-2.4-1.1-2.4-2.4v-47.8c0-1.3 1.1-2.4 2.4-2.4h88.8c1.3 0 2.4 1.1 2.4 2.4v47.8c0 1.4-1.1 2.4-2.4 2.4z"/><circle cx="199.9" cy="155.1" r="3.8" fill="#B2B2B2" fill-rule="evenodd" clip-rule="evenodd"/><path fill="#B2B2B2" fill-rule="evenodd" d="M246.7 187.4v7c0 1.3-1.1 2.4-2.4 2.4h-88.9c-1.3 0-2.4-1.1-2.4-2.4v-7c0-.8.4-1.5 1-2l24.4-17.6c3.1-2.2 8.1-2.2 11.2 0l27.3 19.7c.1 0 .1.1.2.1 1.6 1.1 4.1 1 5.6-.1 1.5-1.2 1.4-3-.2-4.1l-2.4-1.8c-1.3-1-1.3-2.9 0-3.9l2-1.4c3.1-2.2 8.1-2.2 11.2 0l12.4 9c.7.6 1 1.3 1 2.1z" clip-rule="evenodd"/><path fill="#757575" d="M359.9 255.7h-85c-.6 0-1-.4-1-1v-14c0-.6.4-1 1-1h85c.6 0 1 .4 1 1v14c0 .5-.5 1-1 1z"/><path fill="#B2B2B2" d="M348.1 230.7h-61.6c-.6 0-1-.4-1-1v-6c0-.6.4-1 1-1h61.6c.6 0 1 .4 1 1v6c0 .5-.4 1-1 1zM331.9 217.7h-29c-.6 0-1-.4-1-1v-9c0-.6.4-1 1-1h29c.6 0 1 .4 1 1v9c0 .5-.5 1-1 1z"/><path fill="#D3D3D3" d="M361.8 196.8H273c-1.3 0-2.4-1.1-2.4-2.4v-47.8c0-1.3 1.1-2.4 2.4-2.4h88.8c1.3 0 2.4 1.1 2.4 2.4v47.8c0 1.4-1.1 2.4-2.4 2.4z"/><circle cx="317.4" cy="155.1" r="3.8" fill="#B2B2B2" fill-rule="evenodd" clip-rule="evenodd"/><path fill="#B2B2B2" fill-rule="evenodd" d="M364.2 187.4v7c0 1.3-1.1 2.4-2.4 2.4h-88.9c-1.3 0-2.4-1.1-2.4-2.4v-7c0-.8.4-1.5 1-2l24.4-17.6c3.1-2.2 8.1-2.2 11.2 0l27.3 19.7c.1 0 .1.1.2.1 1.6 1.1 4.1 1 5.6-.1 1.5-1.2 1.4-3-.2
2092-4.1l-2.4-1.8c-1.3-1-1.3-2.9 0-3.9l2-1.4c3.1-2.2 8.1-2.2 11.2 0l12.4 9c.6.6 1 1.3 1 2.1z" clip-rule="evenodd"/></svg>'},i={id:"cardThreeContentProcess",label:"Prozess - 3 Schritte",category:{id:"cards",label:"Karten"},attributes:{"data-os-group":"Landingpage Elemente","data-os-page-type":"cue"},content:` 2093 <div 2094 data-component-id="18" 2095 data-component-version="1.0.0" 2096 data-component-name="Landingpage Elemente - Karten - Prozess 3 Schritte" 2097 class="py-1 mb-4"> 2098 <ul class="grid grid-cols-1 gap-5 px-2 sm:grid-cols-2 md:grid-cols-3 mb-3"> 2099 <li class="text-center w-full block rounded-md border border-slate-200 bg-white p-5 relative shadow-sm animate-slide-up dark:border-dark-border dark:bg-dark-surface"> 2100 <div class="w-full flex flex-col items-center"> 2101 <div> 2102 <span class="absolute text-white bg-brand-primary-500 z-10 px-2 py-1 left-0 text-sm after:content-[''] after:absolute after:top-1/2 after:-translate-y-1/2 after:right-[-8px] after:w-0 after:h-0 after:border-t-[14px] after:border-t-transparent after:border-b-[14px] after:border-b-transparent after:border-l-[8px] after:border-l-brand-primary-500 font-bold">1.</span> 2103 </div> 2104 <div class="relative mb-3 block"> 2105 <picture class="block w-full"> 2106 <source media="(max-width: 639px)" srcset="https://placehold.co/640x360?text=Mobile_640x360px"> 2107 <source media="(min-width: 640px)" srcset="https://placehold.co/960x540?text=Desktop_960x540px"> 2108 <img src="https://placehold.co/960x540?text=Desktop_960x540px" alt="Descriptive text" class="aspect-[16/9] skeleton"> 2109 </picture> 2110 </div> 2111 <strong class="text-title6 block">Lorem ipsum dolor sit amet, consetetur sadipscing elitr*</strong> 2112 </div> 2113 </li> 2114 <li class="text-center w-full block rounded-md border border-slate-200 bg-white p-5 relative shadow-sm animate-slide-up dark:border-dark-border dark:bg-dark-surface"> 2115 <div class="w-full flex flex-col items-center"> 2116 <div> 2117 <span class="absolute text-white bg-brand-primary-500 z-10 px-2 py-1 left-0 text-sm after:content-[''] after:absolute after:top-1/2 after:-translate-y-1/2 after:right-[-8px] after:w-0 after:h-0 after:border-t-[14px] after:border-t-transparent after:border-b-[14px] after:border-b-transparent after:border-l-[8px] after:border-l-brand-primary-500 font-bold">2.</span> 2118 </div> 2119 <div class="relative mb-3 block"> 2120 <picture class="block w-full"> 2121 <source media="(max-width: 639px)" srcset="https://placehold.co/640x360?text=Mobile_640x360px"> 2122 <source media="(min-width: 640px)" srcset="https://placehold.co/960x540?text=Desktop_960x540px"> 2123 <img src="https://placehold.co/960x540?text=Desktop_960x540px" alt="Descriptive text" class="aspect-[16/9] skeleton"> 2124 </picture> 2125 </div> 2126 <strong class="text-title6 block">Lorem ipsum dolor sit amet, consetetur sadipscing elitr*</strong> 2127 </div> 2128 </li> 2129 <li class="text-center w-full block rounded-md border border-slate-200 bg-white p-5 relative shadow-sm animate-slide-up dark:border-dark-border dark:bg-dark-surface"> 2130 <div class="w-full flex flex-col items-center"> 2131 <div> 2132 <span class="absolute text-white bg-brand-primary-500 z-10 px-2 py-1 left-0 text-sm after:content-[''] after:absolute after:top-1/2 after:-translate-y-1/2 after:right-[-8px] after:w-0 after:h-0 after:border-t-[14px] after:border-t-transparent after:border-b-[14px] after:border-b-transparent after:border-l-[8px] after:border-l-brand-primary-500 font-bold">3.</span> 2133 </div> 2134 <div class="relative mb-3 block"> 2135 <picture class="block w-full"> 2136 <source media="(max-width: 639px)" srcset="https://placehold.co/640x360?text=Mobile_640x360px"> 2137 <source media="(min-width: 640px)" srcset="https://placehold.co/960x540?text=Desktop_960x540px"> 2138 <img src="https://placehold.co/960x540?text=Desktop_960x540px" alt="Descriptive text" class="aspect-[16/9] skeleton"> 2139 </picture> 2140 </div> 2141 <strong class="text-title6 block">Lorem ipsum dolor sit amet, consetetur sadipscing elitr*</strong> 2142 </div> 2143 </li> 2144 </ul> 2145 <div class="flex justify-center flex-wrap gap-2"> 2146 <a href target="_self" title="" class="no-underline font-medium inline-block overflow-hidden text-ellipsis whitespace-nowrap rounded border-2 px-6 text-center uppercase transition hover:shadow-sm focus:shadow-sm active:shadow-sm disabled:border-gray-100 disabled:bg-gray-100 disabled:text-copy-primary disabled:shadow-none text-white text-sm leading-[41px] border-brand-primary-500 hover:border-brand-primary-700 focus:border-brand-primary-700 active:border-brand-primary-300 bg-brand-primary-500 hover:bg-brand-primary-700 focus:bg-brand-primary-700 active:bg-brand-primary-300" 2147 data-track-v2-parentposition="Content" data-track-v2-parent="Landingpage Elemente - Karten - Prozess 3 Schritte" data-track-v2-parentlabel="OS
2147- Inhalt" data-track-v2-elementposition="1" data-track-v2-elementtype="Button" data-track-v2-vendor="Internal" data-track-v2-link="" data-track-v2-linktype="External" data-track-v2-linkgenre="" data-track-v2-clickaction=""> 2148 <span class="px-6">Button</span> 2149 </a> 2150 <a href target="_self" title="" class="no-underline font-medium inline-block overflow-hidden text-ellipsis whitespace-nowrap rounded border-2 px-6 text-center uppercase transition hover:shadow-sm focus:shadow-sm active:shadow-sm disabled:border-gray-100 disabled:bg-gray-100 disabled:text-copy-primary disabled:shadow-none text-sm leading-[41px] border-brand-primary-500 hover:border-brand-primary-700 focus:border-brand-primary-700 active:border-brand-primary-300 text-brand-primary-500 hover:text-brand-primary-700" 2151 data-track-v2-parentposition="Content" data-track-v2-parent="Landingpage Elemente - Karten - Prozess 3 Schritte" data-track-v2-parentlabel="OS - Inhalt" data-track-v2-elementposition="2" data-track-v2-elementtype="Button" data-track-v2-vendor="Internal" data-track-v2-link="" data-track-v2-linktype="External" data-track-v2-linkgenre="" data-track-v2-clickaction=""> 2152 <span class="px-6">Button</span> 2153 </a> 2154 </div> 2155 <span class="block text-xs text-center w-[90%] md:w-full mx-auto mt-3 px-2">*Lorem ipsum dolor sit amet, consetetur sadipscing elitr.</span> 2156 </div> 2157 `,media:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><rect width="78.9" height="79.3" x="291" y="160.4" fill="#efefef" rx="1.3" ry="1.3"/><rect width="70.3" height="39.5" x="295.3" y="166.9" fill="#d3d3d3" rx="1.8" ry="1.8"/><circle cx="330.5" cy="175.1" r="2.9" fill="#b2b2b2"/><path fill="#b2b2b2" fill-rule="evenodd" d="M365.6 199.4v5.3c0 1-.8 1.8-1.8 1.8H297c-1 0-1.8-.8-1.8-1.8v-5.3c0-.6.3-1.1.7-1.5l18.3-13.2c2.3-1.7 6.1-1.7 8.4 0l20.5 14.8.1.1c1.2.8 3.1.8 4.2-.1s1.1-2.2-.1-3l-1.8-1.3c-1-.7-1-2.2 0-2.9l1.5-1.1c2.3-1.7 6.1-1.7 8.4 0l9.3 6.7c.5.3.7.9.7 1.5Z"/><rect width="78.9" height="79.3" x="203.7" y="160.4" fill="#efefef" rx="1.3" ry="1.3"/><rect width="70.3" height="39.5" x="208" y="166.9" fill="#d3d3d3" rx="1.8" ry="1.8"/><circle cx="243.2" cy="175.1" r="2.9" fill="#b2b2b2"/><path fill="#b2b2b2" fill-rule="evenodd" d="M278.4 199.4v5.3c0 1-.8 1.8-1.8 1.8h-66.8c-1 0-1.8-.8-1.8-1.8v-5.3c0-.6.3-1.1.7-1.5l18.3-13.2c2.3-1.7 6.1-1.7 8.4 0l20.5 14.8.1.1c1.2.8 3.1.8 4.2-.1s1.1-2.2-.1-3l-1.8-1.3c-1-.7-1-2.2 0-2.9l1.5-1.1c2.3-1.7 6.1-1.7 8.4 0l9.3 6.7c.5.3.7.9.7 1.5Z"/><rect width="78.9" height="79.3" x="116.4" y="160.4" fill="#efefef" rx="1.3" ry="1.3"/><rect width="70.3" height="39.5" x="120.7" y="166.9" fill="#d3d3d3" rx="1.8" ry="1.8"/><circle cx="155.9" cy="175.1" r="2.9" fill="#b2b2b2"/><path fill="#b2b2b2" fill-rule="evenodd" d="M191.1 199.4v5.3c0 1-.8 1.8-1.8 1.8h-66.8c-1 0-1.8-.8-1.8-1.8v-5.3c0-.6.3-1.1.7-1.5l18.3-13.2c2.3-1.7 6.1-1.7 8.4 0l20.5 14.8.1.1c1.2.8 3.1.8 4.2-.1s1.1-2.2-.1-3l-1.8-1.3c-1-.7-1-2.2 0-2.9l1.5-1.1c2.3-1.7 6.1-1.7 8.4 0l9.3 6.7c.5.3.7.9.7 1.5Z"/><rect width="78.9" height="79.3" x="29.1" y="160.4" fill="#efefef" rx="1.3" ry="1.3"/><rect width="44.3" height="6" x="46.4" y="225.7" fill="#d3d3d3" rx=".8" ry=".8"/><rect width="70.3" height="39.5" x="33.4" y="166.9" fill="#d3d3d3" rx="1.8" ry="1.8"/><circle cx="68.6" cy="175.1" r="2.9" fill="#b2b2b2"/><path fill="#b2b2b2" fill-rule="evenodd" d="M103.8 199.4v5.3c0 1-.8 1.8-1.8 1.8H35.2c-1 0-1.8-.8-1.8-1.8v-5.3c0-.6.3-1.1.7-1.5l18.3-13.2c2.3-1.7 6.1-1.7 8.4 0l20.5 14.8.1.1c1.2.8 3.1.8 4.2-.1s1.1-2.2-.1-3l-1.8-1.3c-1-.7-1-2.2 0-2.9l1.5-1.1c2.3-1.7 6.1-1.7 8.4 0l9.3 6.7c.5.3.7.9.7 1.5Z"/><path fill="#fff" d="M29.1 163.9h15.8V178H29.1z"/><text font-family="Futura-Bold, Futura" font-size="9" font-weight="700" transform="translate(34.2 174.6)"><tspan x="0" y="0">1</tspan></text><path fill="#fff" d="M116.4 163.9h15.8V178h-15.8z"/><text font-family="Futura-Bold, Futura" font-size="9" font-weight="700" transform="translate(121.5 174.6)"><tspan x="0" y="0">2</tspan></text><path fill="#fff" d="M203.7 163.9h15.8V178h-15.8z"/><text font-family="Futura-Bold, Futura" font-size="9" font-weight="700" transform="translate(208.7 174.6)"><tspan x="0" y="0">3</tspan></text><path fill="#fff" d="M291 163.9h15.8V178H291z"/><text font-family="Futura-Bold, Futura" font-size="9" font-weight="700" transform="translate(296 174.6)"><tspan x="0" y="0">4</tspan></text><g fill="#757575"><rect width="61.1" height="17.4" x="135.7" y="252.2" rx="2.6" ry="2.6"/><path d="M262.3 254.2v13.4h-57.1v-13.4h57.1m0-2h-57.1c-1.1 0-2 .9-2 2v13.4c0 1.1.9 2 2 2h57.1c1.1 0 2-.9 2-2v-13.4c0-1.1-.9-2-2-2Z"/></g><rect width="65.3" height="6" x="35.9" y="213.6" fill="#d3d3d3" rx=".8" ry=".8"/><rect width="44.3" height="6" x="133.7" y="225.7" fill="#d3d3d3" rx=".8" ry=".8"/><rect width="65.3" height="6" x="123.2" y="213.6" fill="#d3d3d3" rx=".8" ry=".8"/><rect width="44.3" height="6" x="221" y="225.7" fill="#d3d3d3" rx=".8" ry=".8"/><rect width="65.3" height="6" x="210.5" y="213.6" fill="#d3d3d3" rx=".8" ry=".8"/><rect width="44.3" height="6" x="308.3" y="225.7" fill="#d3d3d3" rx=".8" ry=".8"/><rect width="65.3" height="6" x="297.8" y="213.6" fill="#d3d3d3" rx=".8" ry=".8"/></svg>'},o={id:"cardFourContentProcess",label:"Prozess - 4 Schritte",category:{id:"cards",label:"Karten"},attributes:{"data-os-group":"Landingpage Elemente","data-os-page-type":"cue"},content:` 2158 <div 2159 data-component-id="19" 2160 data-component-version="1.0.0" 2161 data-component-name="Landingpage Elemente - Karten - Prozess 4 Schritte" 2162 class="py-1 mb-4"> 2163 <ul class="grid grid-cols-1 gap-5 px-2 sm:grid-cols-2 md:grid-cols-4 mb-3"> 2164 <li class="text-center w-full block rounded-md border border-slate-200 bg-white p-5 relative shadow-sm animate-slide-up dark:border-dark-border dark:bg-dark-surface"> 2165 <div class="w-full flex flex-col items-center"> 2166 <div>
2167 <span class="absolute text-white bg-brand-primary-500 z-10 px-2 py-1 left-0 text-sm after:content-[''] after:absolute after:top-1/2 after:-translate-y-1/2 after:right-[-8px] after:w-0 after:h-0 after:border-t-[14px] after:border-t-transparent after:border-b-[14px] after:border-b-transparent after:border-l-[8px] after:border-l-brand-primary-500 font-bold">1.</span> 2168 </div> 2169 <div class="relative mb-3 block"> 2170 <picture class="block w-full"> 2171 <source media="(max-width: 639px)" srcset="https://placehold.co/640x360?text=Mobile_640x360px"> 2172 <source media="(min-width: 640px)" srcset="https://placehold.co/960x540?text=Desktop_960x540px"> 2173 <img src="https://placehold.co/960x540?text=Desktop_960x540px" alt="Descriptive text" class="aspect-[16/9] skeleton"> 2174 </picture> 2175 </div> 2176 <strong class="text-title6 block">Lorem ipsum dolor sit amet, consetetur sadipscing elitr*</strong> 2177 </div> 2178 </li> 2179 <li class="text-center w-full block rounded-md border border-slate-200 bg-white p-5 relative shadow-sm animate-slide-up dark:border-dark-border dark:bg-dark-surface"> 2180 <div class="w-full flex flex-col items-center"> 2181 <div> 2182 <span class="absolute text-white bg-brand-primary-500 z-10 px-2 py-1 left-0 text-sm after:content-[''] after:absolute after:top-1/2 after:-translate-y-1/2 after:right-[-8px] after:w-0 after:h-0 after:border-t-[14px] after:border-t-transparent after:border-b-[14px] after:border-b-transparent after:border-l-[8px] after:border-l-brand-primary-500 font-bold">2.</span> 2183 </div> 2184 <div class="relative mb-3 block"> 2185 <picture class="block w-full"> 2186 <source media="(max-width: 639px)" srcset="https://placehold.co/640x360?text=Mobile_640x360px"> 2187 <source media="(min-width: 640px)" srcset="https://placehold.co/960x540?text=Desktop_960x540px"> 2188 <img src="https://placehold.co/960x540?text=Desktop_960x540px" alt="Descriptive text" class="aspect-[16/9] skeleton"> 2189 </picture> 2190 </div> 2191 <strong class="text-title6 block">Lorem ipsum dolor sit amet, consetetur sadipscing elitr*</strong> 2192 </div> 2193 </li> 2194 <li class="text-center w-full block rounded-md border border-slate-200 bg-white p-5 relative shadow-sm animate-slide-up dark:border-dark-border dark:bg-dark-surface"> 2195 <div class="w-full flex flex-col items-center"> 2196 <div> 2197 <span class="absolute text-white bg-brand-primary-500 z-10 px-2 py-1 left-0 text-sm after:content-[''] after:absolute after:top-1/2 after:-translate-y-1/2 after:right-[-8px] after:w-0 after:h-0 after:border-t-[14px] after:border-t-transparent after:border-b-[14px] after:border-b-transparent after:border-l-[8px] after:border-l-brand-primary-500 font-bold">3.</span> 2198 </div> 2199 <div class="relative mb-3 block"> 2200 <picture class="block w-full"> 2201 <source media="(max-width: 639px)" srcset="https://placehold.co/640x360?text=Mobile_640x360px"> 2202 <source media="(min-width: 640px)" srcset="https://placehold.co/960x540?text=Desktop_960x540px"> 2203 <img src="https://placehold.co/960x540?text=Desktop_960x540px" alt="Descriptive text" class="aspect-[16/9] skeleton"> 2204 </picture> 2205 </div> 2206 <strong class="text-title6 block">Lorem ipsum dolor sit amet, consetetur sadipscing elitr*</strong> 2207 </div> 2208 </li> 2209 <li class="text-center w-full block rounded-md border border-slate-200 bg-white p-5 relative shadow-sm animate-slide-up dark:border-dark-border dark:bg-dark-surface"> 2210 <div class="w-full flex flex-col items-center"> 2211 <div>
2212 <span class="absolute text-white bg-brand-primary-500 z-10 px-2 py-1 left-0 text-sm after:content-[''] after:absolute after:top-1/2 after:-translate-y-1/2 after:right-[-8px] after:w-0 after:h-0 after:border-t-[14px] after:border-t-transparent after:border-b-[14px] after:border-b-transparent after:border-l-[8px] after:border-l-brand-primary-500 font-bold">4.</span> 2213 </div> 2214 <div class="relative mb-3 block"> 2215 <picture class="block w-full"> 2216 <source media="(max-width: 639px)" srcset="https://placehold.co/640x360?text=Mobile_640x360px"> 2217 <source media="(min-width: 640px)" srcset="https://placehold.co/960x540?text=Desktop_960x540px"> 2218 <img src="https://placehold.co/960x540?text=Desktop_960x540px" alt="Descriptive text" class="aspect-[16/9] skeleton"> 2219 </picture> 2220 </div> 2221 <strong class="text-title6 block">Lorem ipsum dolor sit amet, consetetur sadipscing elitr*</strong> 2222 </div> 2223 </li> 2224 </ul> 2225 <div class="flex justify-center flex-wrap gap-2"> 2226 <a href target="_self" title="" class="no-underline font-medium inline-block overflow-hidden text-ellipsis whitespace-nowrap rounded border-2 px-6 text-center uppercase transition hover:shadow-sm focus:shadow-sm active:shadow-sm disabled:border-gray-100 disabled:bg-gray-100 disabled:text-copy-primary disabled:shadow-none text-white text-sm leading-[41px] border-brand-primary-500 hover:border-brand-primary-700 focus:border-brand-primary-700 active:border-brand-primary-300 bg-brand-primary-500 hover:bg-brand-primary-700 focus:bg-brand-primary-700 active:bg-brand-primary-300" 2227 data-track-v2-parentposition="Content" data-track-v2-parent="Landingpage Elemente - Karten - Prozess 4 Schritte" data-track-v2-parentlabel="OS - Inhalt" data-track-v2-elementposition="1" data-track-v2-elementtype="Button" data-track-v2-vendor="Internal" data-track-v2-link="" data-track-v2-linktype="External" data-track-v2-linkgenre="" data-track-v2-clickaction=""> 2228 <span class="px-6">Button</span> 2229 </a> 2230 <a href target="_self" title="" class="no-underline font-medium inline-block overflow-hidden text-ellipsis whitespace-nowrap rounded border-2 px-6 text-center uppercase transition hover:shadow-sm focus:shadow-sm active:shadow-sm disabled:border-gray-100 disabled:bg-gray-100 disabled:text-copy-primary disabled:shadow-none text-sm leading-[41px] border-brand-primary-500 hover:border-brand-primary-700 focus:border-brand-primary-700 active:border-brand-primary-300 text-brand-primary-500 hover:text-brand-primary-700" 2231 data-track-v2-parentposition="Content" data-track-v2-parent="Landingpage Elemente - Karten - Prozess 4 Schritte" data-track-v2-parentlabel="OS - Inhalt" data-track-v2-elementposition="2" data-track-v2-elementtype="Button" data-track-v2-vendor="Internal" data-track-v2-link="" data-track-v2-linktype="External" data-track-v2-linkgenre="" data-track-v2-clickaction=""> 2232 <span class="px-6">Button</span> 2233 </a> 2234 </div> 2235 <span class="block text-xs text-center w-[90%] md:w-full mx-auto mt-3 px-2">*Lorem ipsum dolor sit amet, consetetur sadipscing elitr.</span> 2236 </div> 2237 `,media:'<?xml version="1.0" encoding="UTF-8"?> <svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 400 400"> <!-- Generator: Adobe Illustrator 29.2.1, SVG Export Plug-In . SVG Version: 2.1.0 Build 116) --> <g id="Kacheln_6er" display="none"> <g> <g> <g> <rect x="30.3" y="103" width="49.6" height="49.6" rx="1.3" ry="1.3" fill="#d3d3d3"/> <circle cx="66.7" cy="113.6" r="2.8" fill="#b2b2b2"/> <path d="M79.9,147.7v3.7c0,.7-.6,1.3-1.3,1.3H31.5c-.7,0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2,4.3-1.2,5.9,0l14.5,10.4s0,0,.1,0c.8.6,2.2.5,3,0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6,0-2.1l1-.7c1.6-1.2,4.3-1.2,5.9,0l6.6,4.7c.3.2.5.6.5,1Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="41.1" y="157" width="28" height="4" fill="#b2b2b2"/> </g> <g> <g> <rect x="88.3" y="103" width="49.6" height="49.6" rx="1.3" ry="1.3" fill="#d3d3d3"/> <circle cx="124.7" cy="113.6" r="2.8" fill="#b2b2b2"/> <path d="M137.9,147.7v3.7c0,.7-.6,1.3-1.3,1.3h-47.1c-.7,0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2,4.3-1.2,5.9,0l14.5,10.4s0,0,.1,0c.8.6,2.2.5,3,0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6,0-2.1l1-.7c1.6-1.2,4.3-1.2,5.9,0l6.6,4.7c.3.2.5.6.5,1Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="99.1" y="157" width="28" height="4" fill="#b2b2b2"/> </g> <g> <g> <rect x="146.3" y="103" width="49.6" height="49.6" rx="1.3" ry="1.3" fill="#d3d3d3"/> <circle cx="182.7" cy="113.6" r="2.8" fill="#b2b2b2"/> <path d="M195.9,147.7v3.7c0,.7-.6,1.3-1.3,1.3h-47.1c-.7,0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2,4.3-1.2,5.9,0l14.5,10.4s0,0,.1,0c.8.6,2.2.5,3,0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6,0-2.1l1-.7c1.6-1.2,4.3-1.2,5.9,0l6.6,4.7c.3.2.5.6.5,1Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="157.1" y="157" width="28" height="4" fill="#b2b2b2"/> </g> <g> <g> <rect x="204.3" y="103" width="49.6" height="49.6" rx="1.3" ry="1.3" fill="#d3d3d3"/> <circle cx="240.7" cy="113.6" r="2.8" fill="#b2b2b2"/> <path d="M253.9,147.7v3.7c0,.7-.6,1.3-1.3,1.3h-47.1c-.7,0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2,4.3-1.2,5.9,0l14.5,10.4s0,0,.1,0c.8.6,2.2.5,3,0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6,0-2.1l1-.7c1.6-1.2,4.3-1.2,5.9,0l6.6,4.7c.3.2.5.6.5,1Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="215.1" y="157" width="28" height="4" fill="#b2b2b2"/> </g> <g> <g> <rect x="262.3" y="103" width="49.6" height="49.6" rx="1.3" ry="1.3" fill="#d3d3d3"/> <circle cx="298.7" cy="113.6" r="2.8" fill="#b2b2b2"/> <path d="M311.9,147.7v3.7c0,.7-.6,1.3-1.3,1.3h-47.1c-.7,0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2,4.3-1.2,5.9,0l14.5,10.4s0,0,.1,0c.8.6,2.2.5,3,0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6,0-2.1l1-.7c1.6-1.2,4.3-1.2,5.9,0l6.6,4.7c.3.2.5.6.5,1Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="273.1" y="157" width="28" height="4" fill="#b2b2b2"/> </g> <g> <g> <rect x="320.3" y="103" width="49.6" height="49.6" rx="1.3" ry="1.3" fill="#d3d3d3"/> <circle cx="356.7" cy="113.6" r="2.8" fill="#b2b2b2"/> <path d="M369.9,147.7v3.7c0,.7-.6,1.3-1.3,1.3h-47.1c-.7,0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2,4.3-1.2,5.9,0l14.5,10.4s0,0,.1,0c.8.6,2.2.5,3,0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6,0-2.1l1-.7c1.6-1.2,4.3-1.2,5.9,0l6.6,4.7c.3.2.5.6.5,1Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="331.1" y="157" width="28" height="4" fill="#b2b2b2"/> </g> <g> <g> <rect x="30.3" y="171" width="49.6" height="49.6" rx="1.3" ry="1.3" fill="#d3d3d3"/> <circle cx="66.7" cy="181.6" r="2.8" fill="#b2b2b2"/> <path d="M79.9,215.7v3.7c0,.7-.6,1.3-1.3,1.3H31.5c-.7,0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2,4.3-1.2,5.9,0l14.5,10.4s0,0,.1,0c.8.6,2.2.5,3,0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6,0-2.1l1-.7c1.6-1.2,4.3-1.2,5.9,0l6.6,4.7c.3.2.5.6.5,1Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="41.1" y="225" width="28" height="4" fill="#b2b2b2"/> </g> <g> <g> <rect x="88.3" y="171" width="49.6" height="49.6" rx="1.3" ry="1.3" fill="#d3d3d3"/> <circle cx="124.7" cy="181.6" r="2.8" fill="#b2b2b2"/> <path d="M137.9,215.7v3.7c0,.7-.6,1.3-1.3,1.3h-47.1c-.7,0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2,4.3-1.2,5.9,0l14.5,10.4s0,0,.1,0c.8.6,2.2.5,3,0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6,0-2.1l1-.7c1.6-1.2,4.3-1.2,5.9,0l6.6,4.7c.3.2.5.6.5,1Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="99.1" y="225" width="28" height="4" fill="#b2b2b2"/> </g> <g> <g> <rect x="146.3" y="171" width="49.6" height="49.6" rx="1.3" ry="1.3" fill="#d3d3d3"/> <circle cx="182.7" cy="181.6" r="2.8" fill="#b2b2b2"/> <path d="M195.9,215.7v3.7c0,.7-.6,1.3-1.3,1.3h-47.1c-.7,0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2,4.3-1.2,5.9,0l14.5,10.4s0,0,.1,0c.8.6,2.2.5,3,0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6,0-2.1l1-.7c1.6-1.2,4.3-1.2,5.9,0l6.6,4.7c.3.2.5.6.5,1Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="157.1" y="225" width="28" height="4" fill="#b2b2b2"/> </g> <g> <g> <rect x="204.3" y="171" width="49.6" height="49.6" rx="1.3" ry="1.3" fill="#d3d3d3"/> <circle cx="240.7" cy="181.6" r="2.8" fill="#b2b2b2"/> <path d="M253.9,215.7v3.7c0,.7-.6,1.3-1.3,1.3h-47.1c-.7,0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2,4.3-1.2,5.9,0l14.5,10.4s0,0,.1,0c.8.6,2.2.5,3,0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6,0-2.1l1-.7c1.6-1.2,4.3-1.2,5.9,0l6.6,4.7c.3.2.5.6.5,1Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="215.1" y="225" width="28" height="4" fill="#b2b2b2"/> </g> <g> <g> <rect x="262.3" y="171" width="49.6" height="49.6" rx="1.3" ry="1.3" fill="#d3d3d3"/> <circle cx="298.7" cy="181.6" r="2.8" fill="#b2b2b2"/> <path d="M311.9,215.7v3.7c0,.7-.6,1.3-1.3,1.3h-47.1c-.7,0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2,4.3-1.2,5.9,0l14.5,10.4s0,0,.1,0c.8.6,2.2.5,3,0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6,0-2.1l1-.7c1.6-1.2,4.3-1.2,5.9,0l6.6,4.7c.3.2.5.6.5,1Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="273.1" y="225" width="28" height="4" fill="#b2b2b2"/> </g> <g> <g> <rect x="320.3" y="171" width="49.6" height="49.6" rx="1.3" ry="1.3" fill="#d3d3d3"/> <circle cx="356.7" cy="181.6" r="2.8" fill="#b2b2b2"/> <path d="M369.9,215.7v3.7c0,.7-.6,1.3-1.3,1.3h-47.1c-.7,0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2,4.3-1.2,5.9,0l14.5,10.4s0,0,.1,0c.8.6,2.2.5,3,0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6,0-2.1l1-.7c1.6-1.2,4.3-1.2,5.9,0l6.6,4.7c.3.2.5.6.5,1Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="331.1" y="225" width="28" height="4" fill="#b2b2b2"/> </g> <g> <g> <rect x="30.3" y="239" width="49.6" height="49.6" rx="1.3" ry="1.3" fill="#d3d3d3"/> <circle cx="66.7" cy="249.6" r="2.8" fill="#b2b2b2"/> <path d="M79.9,283.7v3.7c0,.7-.6,1.3-1.3,1.3H31.5c-.7,0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2,4.3-1.2,5.9,0l14.5,10.4s0,0,.1,0c.8.6,2.2.5,3,0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6,0-2.1l1-.7c1.6-1.2,4.3-1.2,5.9,0l6.6,4.7c.3.2.5.6.5,1Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="41.1" y="293" width="28" height="4" fill="#b2b2b2"/> </g> <g> <g> <rect x="88.3" y="239" width="49.6" height="49.6" rx="1.3" ry="1.3" fill="#d3d3d3"/> <circle cx="124.7" cy="249.6" r="2.8" fill="#b2b2b2"/> <path d="M137.9,283.7v3.7c0,.7-.6,1.3-1.3,1.3h-47.1c-.7,0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2,4.3-1.2,5.9,0l14.5,10.4s0,0,.1,0c.8.6,2.2.5,3,0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6,0-2.1l1-.7c1.6-1.2,4.3-1.2,5.9,0l6.6,4.7c.3.2.5.6.5,1Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="99.1" y="293" width="28" height="4" fill="#b2b2b2"/> </g> <g> <g> <rect x="146.3" y="239" width="49.6" height="49.6" rx="1.3" ry="1.3" fill="#d3d3d3"/> <circle cx="182.7" cy="249.6" r="2.8" fill="#b2b2b2"/> <path d="M195.9,283.7v3.7c0,.7-.6,1.3-1.3,1.3h-47.1c-.7,0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2,4.3-1.2,5.9,0l14.5,10.4s0,0,.1,0c.8.6,2.2.5,3,0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6,0-2.1l1-.7c1.6-1.2,4.3-1.2,5.9,0l6.6,4.7c.3.2.5.6.5,1Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="157.1" y="293" width="28" height="4" fill="#b2b2b2"/> </g> <g> <g> <rect x="204.3" y="239" width="49.6" height="49.6" rx="1.3" ry="1.3" fill="#d3d3d3"/> <circle cx="240.7" cy="249.6" r="2.8" fill="#b2b2b2"/> <path d="M253.9,283.7v3.7c0,.7-.6,1.3-1.3,1.3h-47.1c-.7,0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2,4.3-1.2,5.9,0l14.5,10.4s0,0,.1,0c.8.6,2.2.5,3,0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6,0-2.1l1-.7c1.6-1.2,4.3-1.2,5.9,0l6.6,4.7c.3.2.5.6.5,1Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="215.1" y="293" width="28" height="4" fill="#b2b2b2"/> </g> <g> <g> <rect x="262.3" y="239" width="49.6" height="49.6" rx="1.3" ry="1.3" fill="#d3d3d3"/> <circle cx="298.7" cy="249.6" r="2.8" fill="#b2b2b2"/> <path d="M311.9,283.7v3.7c0,.7-.6,1.3-1.3,1.3h-47.1c-.7,0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2,4.3-1.2,5.9,0l14.5,10.4s0,0,.1,0c.8.6,2.2.5,3,0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6,0-2.1l1-.7c1.6-1.2,4.3-1.2,5.9,0l6.6,4.7c.3.2.5.6.5,1Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="273.1" y="293" width="28" height="4" fill="#b2b2b2"/> </g> <g> <g> <rect x="320.3" y="239" width="49.6" height="49.6" rx="1.3" ry="1.3" fill="#d3d3d3"/> <circle cx="356.7" cy="249.6" r="2.8" fill="#b2b2b2"/> <path d="M369.9,283.7v3.7c0,.7-.6,1.3-1.3,1.3h-47.1c-.7,0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2,4.3-1.2,5.9,0l14.5,10.4s0,0,.1,0c.8.6,2.2.5,3,0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6,0-2.1l1-.7c1.6-1.2,4.3-1.2,5.9,0l6.6,4.7c.3.2.5.6.5,1Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="331.1" y="293" width="28" height="4" fill="#b2b2b2"/> </g> </g> </g> <g id="Mediatext" display="none"> <g> <path d="M21.2,252.8v-15.1h55.7v15.1H21.2ZM21.2,222.6v-15.1h151.7v15.1H21.2ZM21.2,192.5v-15.1h151.7v15.1H21.2ZM21.2,162.3v-15.1h151.7v15.1H21.2Z" fill="#d3d3d3"/> <g> <rect x="190.9" y="147.2" width="187.7" height="105.6" rx="4.8" ry="4.8" fill="#d3d3d3"/> <circle cx="341.3" cy="169.1" r="7.7" fill="#b2b2b2"/> <path d="M378.8,233.8v14.1c0,2.7-2.2,4.8-4.8,4.8h-178.3c-2.7,0-4.8-2.2-4.8-4.8v-14.1c0-1.6.7-3,2-3.9l48.8-35.2c6.2-4.5,16.3-4.5,22.5,0l54.8,39.6c.1,0,.3.2.4.3,3.2,2.2,8.3,2,11.3-.3s2.8-6-.4-8.1l-4.9-3.5c-2.7-1.9-2.7-5.9,0-7.8l3.9-2.8c6.2-4.5,16.3-4.5,22.5,0l24.9,18c1.3.9,2,2.4,2,3.9Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> </g> </g> <g id="Textmedia" display="none"> <path d="M227.3,252.8v-15.1h55.7v15.1h-55.7ZM227.3,222.6v-15.1h151.7v15.1h-151.7ZM227.3,192.5v-15.1h151.7v15.1h-151.7ZM227.3,162.3v-15.1h151.7v15.1h-151.7Z" fill="#d3d3d3"/> <g> <rect x="21" y="147.2" width="187.7" height="105.6" rx="4.8" ry="4.8" fill="#d3d3d3"/> <circle cx="171.4" cy="169.1" r="7.7" fill="#b2b2b2"/> <path d="M209,233.8v14.1c0,2.7-2.2,4.8-4.8,4.8H25.8c-2.7,0-4.8-2.2-4.8-4.8v-14.1c0-1.6.7-3,2-3.9l48.8-35.2c6.2-4.5,16.3-4.5,22.5,0l54.8,39.6c.1,0,.3.2.4.3,3.2,2.2,8.3,2,11.3-.3s2.8-6-.4-8.1l-4.9-3.5c-2.7-1.9-2.7-5.9,0-7.8l3.9-2.8c6.2-4.5,16.3-4.5,22.5,0l24.9,18c1.3.9,2,2.4,2,3.9Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> </g> <g id="Slider" display="none"> <g> <rect x="29.8" y="137.1" width="105.1" height="125.9" rx="1.9" ry="1.9" fill="#efefef"/> <rect x="147.3" y="137.1" width="105.1" height="125.9" rx="1.9" ry="1.9" fill="#efefef"/> <rect x="264.8" y="137.1" width="105.1" height="125.9" rx="1.9" ry="1.9" fill="#efefef"/> <rect x="38.9" y="239.7" width="87" height="16" rx="1" ry="1" fill="#757575"/> <rect x="50.6" y="222.7" width="63.6" height="8" rx="1" ry="1" fill="#b2b2b2"/> <rect x="66.9" y="206.7" width="31" height="11" rx="1" ry="1" fill="#b2b2b2"/> <rect x="156.4" y="239.7" width="87" height="16" rx="1" ry="1" fill="#757575"/> <rect x="168.1" y="222.7" width="63.6" height="8" rx="1" ry="1" fill="#b2b2b2"/> <rect x="184.4" y="206.7" width="31" height="11" rx="1" ry="1" fill="#b2b2b2"/> <g> <circle cx="110.3" cy="155.1" r="3.8" fill="#b2b2b2"/> <rect x="35.6" y="144.2" width="93.6" height="52.7" rx="2.4" ry="2.4" fill="#d3d3d3"/> <path d="M129.2,187.4v7c0,1.3-1.1,2.4-2.4,2.4H37.9c-1.3,0-2.4-1.1-2.4-2.4v-7c0-.8.4-1.5,1-2l24.4-17.6c3.1-2.2,8.1-2.2,11.2,0l27.3,19.7c0,0,.1,0,.2.1,1.6,1.1,4.1,1,5.6-.1s1.4-3-.2-4.1l-2.4-1.8c-1.3-1-1.3-2.9,0-3.9l2-1.4c3.1-2.2,8.1-2.2,11.2,0l12.4,9c.6.5,1,1.2,1,2Z" fill="#b2b2b2" fill-rule="evenodd"/> <circle cx="82.9" cy="155.1" r="3.8" fill="#b2b2b2"/> </g> <g> <rect x="153.1" y="144.2" width="93.6" height="52.7" rx="2.4" ry="2.4" fill="#d3d3d3"/> <circle cx="199.9" cy="155.1" r="3.8" fill="#b2b2b2"/> <path d="M246.7,187.4v7c0,1.3-1.1,2.4-2.4,2.4h-88.9c-1.3,0-2.4-1.1-2.4-2.4v-7c0-.8.4-1.5,1-2l24.4-17.6c3.1-2.2,8.1-2.2,11.2,0l27.3,19.7c0,0,.1,0,.2.1,1.6,1.1,4.1,1,5.6-.1s1.4-3-.2-4.1l-2.4-1.8c-1.3-1-1.3-2.9,0-3.9l2-1.4c3.1-2.2,8.1-2.2,11.2,0l12.4,9c.6.5,1,1.2,1,2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="273.8" y="239.7" width="87" height="16" rx="1" ry="1" fill="#757575"/> <rect x="285.6" y="222.7" width="63.6" height="8" rx="1" ry="1" fill="#b2b2b2"/> <rect x="301.8" y="206.7" width="31" height="11" rx="1" ry="1" fill="#b2b2b2"/> <g> <rect
2237 x="270.6" y="144.2" width="93.6" height="52.7" rx="2.4" ry="2.4" fill="#d3d3d3"/> <circle cx="317.4" cy="155.1" r="3.8" fill="#b2b2b2"/> <path d="M364.2,187.4v7c0,1.3-1.1,2.4-2.4,2.4h-88.9c-1.3,0-2.4-1.1-2.4-2.4v-7c0-.8.4-1.5,1-2l24.4-17.6c3.1-2.2,8.1-2.2,11.2,0l27.3,19.7c0,0,.1,0,.2.1,1.6,1.1,4.1,1,5.6-.1s1.4-3-.2-4.1l-2.4-1.8c-1.3-1-1.3-2.9,0-3.9l2-1.4c3.1-2.2,8.1-2.2,11.2,0l12.4,9c.6.5,1,1.2,1,2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> </g> <circle cx="16.4" cy="200" r="10" fill="#efefef"/> <path d="M17,205l-4.3-4.3c-.2-.2-.3-.4-.3-.7s.1-.5.3-.7l4.3-4.3,1.4,1.4-3.6,3.6,3.6,3.6-1.4,1.4Z" fill="#757575"/> <circle cx="384" cy="200" r="10" fill="#efefef"/> <path d="M383.4,195l4.3,4.3c.2.2.3.4.3.7s-.1.5-.3.7l-4.3,4.3-1.4-1.4,3.6-3.6-3.6-3.6,1.4-1.4Z" fill="#757575"/> <g> <circle cx="186" cy="272" r="2" fill="#efefef"/> <circle cx="193" cy="272" r="2" fill="#efefef"/> <circle cx="200" cy="272" r="2" fill="#efefef"/> <circle cx="207" cy="272" r="2" fill="#efefef"/> <circle cx="214" cy="272" r="2" fill="#efefef"/> </g> </g> <g id="Include_Landingpage_Kopie" display="none"> <rect x="99.5" y="64" width="201" height="272" rx="6" ry="6" fill="#efefef"/> <g> <path d="M119.9,301.9v-12.9h59v12.9h-59ZM119.9,276.1v-12.9h160.6v12.9H119.9ZM119.9,250.3v-12.9h160.6v12.9H119.9ZM119.9,224.5v-12.9h160.6v12.9H119.9Z" fill="#d3d3d3"/> <g> <rect x="119.5" y="98.1" width="160.5" height="90.3" rx="4.1" ry="4.1" fill="#d3d3d3"/> <circle cx="248.1" cy="116.8" r="6.6" fill="#b2b2b2"/> <path d="M280.2,172.2v12.1c0,2.3-1.8,4.1-4.1,4.1H123.6c-2.3,0-4.1-1.8-4.1-4.1v-12.1c0-1.3.6-2.6,1.7-3.3l41.8-30.1c5.3-3.8,13.9-3.8,19.3,0l46.9,33.8c.1,0,.2.2.3.2,2.8,1.9,7.1,1.7,9.6-.2s2.4-5.1-.3-6.9l-4.2-3c-2.3-1.6-2.3-5,0-6.7l3.4-2.4c5.3-3.8,13.9-3.8,19.3,0l21.3,15.4c1.1.8,1.7,2,1.7,3.3Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> </g> <g> <path d="M77.5,261.1l-.6,9.5c-9.9,0-18.4-2.5-25.3-7.4s-10.4-12.4-10.4-22.2v-13.6c0-4.7-.4-8.5-1.3-11.2s-2.3-4.9-4.2-6.5c-2-1.6-4.5-2.8-7.6-3.5s-6.9-1.4-11.5-1.8v-8.5c4.8-.7,8.7-1.3,11.6-1.9s5.4-1.8,7.4-3.6c2-1.7,3.5-3.9,4.3-6.5s1.3-6.3,1.3-11v-13.7c0-9.8,3.5-17.1,10.4-22.1,6.9-5,15.4-7.5,25.3-7.5l.6,9.5c-7.9,0-14.1,1.7-18.7,5.2s-6.8,8.4-6.8,14.9v15.9c0,7.4-1.6,13.1-4.8,17.1s-7.4,6.7-12.4,7.9v.2c5.3,1.4,9.5,4.1,12.6,8.1s4.6,9.7,4.6,16.9v15.8c0,6.4,2.3,11.4,6.8,14.9,4.5,3.5,10.8,5.3,18.7,5.3Z" fill="#efefef"/> <path d="M383.4,204.2c-4.6.5-8.4,1.1-11.5,1.8s-5.6,1.9-7.6,3.5c-1.9,1.6-3.3,3.8-4.2,6.6s-1.3,6.5-1.3,11.1v13.6c0,9.5-3.3,16.8-10,22-6.6,5.1-15.2,7.7-25.7,7.7l-.6-9.5c7.9,0,14.1-1.7,18.7-5.2,4.5-3.5,6.8-8.5,6.8-15v-15.8c0-6.6,1.4-12,4.1-16.1s7.1-7.1,13.1-8.9v-.2c-5.2-1-9.4-3.7-12.5-8s-4.7-10-4.7-17v-15.9c0-6.5-2.3-11.5-6.8-15s-10.8-5.1-18.7-5.1l.6-9.5c10.5,0,19.1,2.6,25.7,7.8,6.6,5.2,10,12.5,10,21.9v13.7c0,4.7.4,8.4,1.3,11s2.3,4.8,4.3,6.5c2,1.6,4.6,2.7,7.8,3.5s6.9,1.5,11.3,2v8.5Z" fill="#efefef"/> </g> </g> <g id="Kacheln_5er" display="none"> <g> <g> <g> <g> <rect x="30.2" y="80" width="59.9" height="59.9" rx="1.5" ry="1.5" fill="#d3d3d3"/> <circle cx="74" cy="92.8" r="3.4" fill="#b2b2b2"/> <path d="M90,133.9v4.5c0,.8-.7,1.5-1.5,1.5H31.7c-.8,0-1.5-.7-1.5-1.5v-4.5c0-.5.2-1,.6-1.2l15.6-11.2c2-1.4,5.2-1.4,7.2,0l17.5,12.6s0,0,.1,0c1,.7,2.6.6,3.6,0s.9-1.9-.1-2.6l-1.6-1.1c-.9-.6-.9-1.9,0-2.5l1.2-.9c2-1.4,5.2-1.4,7.2,0l7.9,5.7c.4.3.6.8.6,1.2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="43.2" y="145.2" width="33.8" height="4.8" fill="#b2b2b2"/> </g> <g> <g> <rect x="100.1" y="80" width="59.9" height="59.9" rx="1.5" ry="1.5" fill="#d3d3d3"/> <circle cx="144" cy="92.8" r="3.4" fill="#b2b2b2"/> <path d="M159.9,133.9v4.5c0,.8-.7,1.5-1.5,1.5h-56.8c-.8,0-1.5-.7-1.5-1.5v-4.5c0-.5.2-1,.6-1.2l15.6-11.2c2-1.4,5.2-1.4,7.2,0l17.5,12.6s0,0,.1,0c1,.7,2.6.6,3.6,0s.9-1.9-.1-2.6l-1.6-1.1c-.9-.6-.9-1.9,0-2.5l1.2-.9c2-1.4,5.2-1.4,7.2,0l7.9,5.7c.4.3.6.8.6,1.2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="113.2" y="145.2" width="33.8" height="4.8" fill="#b2b2b2"/> </g> <g> <g> <rect x="170.1" y="80" width="59.9" height="59.9" rx="1.5" ry="1.5" fill="#d3d3d3"/> <circle cx="213.9" cy="92.8" r="3.4" fill="#b2b2b2"/> <path d="M229.9,133.9v4.5c0,.8-.7,1.5-1.5,1.5h-56.8c-.8,0-1.5-.7-1.5-1.5v-4.5c0-.5.2-1,.6-1.2l15.6-11.2c2-1.4,5.2-1.4,7.2,0l17.5,12.6s0,0,.1,0c1,.7,2.6.6,3.6,0s.9-1.9-.1-2.6l-1.6-1.1c-.9-.6-.9-1.9,0-2.5l1.2-.9c2-1.4,5.2-1.4,7.2,0l7.9,5.7c.4.3.6.8.6,1.2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="183.1" y="145.2" width="33.8" height="4.8" fill="#b2b2b2"/> </g> <g> <g> <rect x="240.1" y="80" width="59.9" height="59.9" rx="1.5" ry="1.5" fill="#d3d3d3"/> <circle cx="283.9" cy="92.8" r="3.4" fill="#b2b2b2"/> <path d="M299.9,133.9v4.5c0,.8-.7,1.5-1.5,1.5h-56.8c-.8,0-1.5-.7-1.5-1.5v-4.5c0-.5.2-1,.6-1.2l15.6-11.2c2-1.4,5.2-1.4,7.2,0l17.5,12.6s0,0,.1,0c1,.7,2.6.6,3.6,0s.9-1.9-.1-2.6l-1.6-1.1c-.9-.6-.9-1.9,0-2.5l1.2-.9c2-1.4,5.2-1.4,7.2,0l7.9,5.7c.4.3.6.8.6,1.2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="253.1" y="145.2" width="33.8" height="4.8" fill="#b2b2b2"/> </g> <g> <g> <rect x="310" y="80" width="59.9" height="59.9" rx="1.5" ry="1.5" fill="#d3d3d3"/> <circle cx="353.9" cy="92.8" r="3.4" fill="#b2b2b2"/> <path d="M369.8,133.9v4.5c0,.8-.7,1.5-1.5,1.5h-56.8c-.8,0-1.5-.7-1.5-1.5v-4.5c0-.5.2-1,.6-1.2l15.6-11.2c2-1.4,5.2-1.4,7.2,0l17.5,12.6s0,0,.1,0c1,.7,2.6.6,3.6,0s.9-1.9-.1-2.6l-1.6-1.1c-.9-.6-.9-1.9,0-2.5l1.2-.9c2-1.4,5.2-1.4,7.2,0l7.9,5.7c.4.3.6.8.6,1.2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="323" y="145.2" width="33.8" height="4.8" fill="#b2b2b2"/> </g> </g> <g> <g> <g> <rect x="30.2" y="165" width="59.9" height="59.9" rx="1.5" ry="1.5" fill="#d3d3d3"/> <circle cx="74" cy="177.8" r="3.4" fill="#b2b2b2"/> <path d="M90,218.9v4.5c0,.8-.7,1.5-1.5,1.5H31.7c-.8,0-1.5-.7-1.5-1.5v-4.5c0-.5.2-1,.6-1.2l15.6-11.2c2-1.4,5.2-1.4,7.2,0l17.5,12.6s0,0,.1,0c1,.7,2.6.6,3.6,0s.9-1.9-.1-2.6l-1.6-1.1c-.9-.6-.9-1.9,0-2.5l1.2-.9c2-1.4,5.2-1.4,7.2,0l7.9,5.7c.4.3.6.8.6,1.2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="43.2" y="230.2" width="33.8" height="4.8" fill="#b2b2b2"/> </g> <g> <g> <rect x="100.1" y="165" width="59.9" height="59.9" rx="1.5" ry="1.5" fill="#d3d3d3"/> <circle cx="144" cy="177.8" r="3.4" fill="#b2b2b2"/> <path d="M159.9,218.9v4.5c0,.8-.7,1.5-1.5,1.5h-56.8c-.8,0-1.5-.7-1.5-1.5v-4.5c0-.5.2-1,.6-1.2l15.6-11.2c2-1.4,5.2-1.4,7.2,0l17.5,12.6s0,0,.1,0c1,.7,2.6.6,3.6,0s.9-1.9-.1-2.6l-1.6-1.1c-.9-.6-.9-1.9,0-2.5l1.2-.9c2-1.4,5.2-1.4,7.2,0l7.9,5.7c.4.3.6.8.6,1.2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="113.2" y="230.2" width="33.8" height="4.8" fill="#b2b2b2"/> </g> <g> <g>
2237 <rect x="170.1" y="165" width="59.9" height="59.9" rx="1.5" ry="1.5" fill="#d3d3d3"/> <circle cx="213.9" cy="177.8" r="3.4" fill="#b2b2b2"/> <path d="M229.9,218.9v4.5c0,.8-.7,1.5-1.5,1.5h-56.8c-.8,0-1.5-.7-1.5-1.5v-4.5c0-.5.2-1,.6-1.2l15.6-11.2c2-1.4,5.2-1.4,7.2,0l17.5,12.6s0,0,.1,0c1,.7,2.6.6,3.6,0s.9-1.9-.1-2.6l-1.6-1.1c-.9-.6-.9-1.9,0-2.5l1.2-.9c2-1.4,5.2-1.4,7.2,0l7.9,5.7c.4.3.6.8.6,1.2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="183.1" y="230.2" width="33.8" height="4.8" fill="#b2b2b2"/> </g> <g> <g> <rect x="240.1" y="165" width="59.9" height="59.9" rx="1.5" ry="1.5" fill="#d3d3d3"/> <circle cx="283.9" cy="177.8" r="3.4" fill="#b2b2b2"/> <path d="M299.9,218.9v4.5c0,.8-.7,1.5-1.5,1.5h-56.8c-.8,0-1.5-.7-1.5-1.5v-4.5c0-.5.2-1,.6-1.2l15.6-11.2c2-1.4,5.2-1.4,7.2,0l17.5,12.6s0,0,.1,0c1,.7,2.6.6,3.6,0s.9-1.9-.1-2.6l-1.6-1.1c-.9-.6-.9-1.9,0-2.5l1.2-.9c2-1.4,5.2-1.4,7.2,0l7.9,5.7c.4.3.6.8.6,1.2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="253.1" y="230.2" width="33.8" height="4.8" fill="#b2b2b2"/> </g> <g> <g> <rect x="310" y="165" width="59.9" height="59.9" rx="1.5" ry="1.5" fill="#d3d3d3"/> <circle cx="353.9" cy="177.8" r="3.4" fill="#b2b2b2"/> <path d="M369.8,218.9v4.5c0,.8-.7,1.5-1.5,1.5h-56.8c-.8,0-1.5-.7-1.5-1.5v-4.5c0-.5.2-1,.6-1.2l15.6-11.2c2-1.4,5.2-1.4,7.2,0l17.5,12.6s0,0,.1,0c1,.7,2.6.6,3.6,0s.9-1.9-.1-2.6l-1.6-1.1c-.9-.6-.9-1.9,0-2.5l1.2-.9c2-1.4,5.2-1.4,7.2,0l7.9,5.7c.4.3.6.8.6,1.2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="323" y="230.2" width="33.8" height="4.8" fill="#b2b2b2"/> </g> </g> <g> <g> <g> <rect x="30.2" y="250" width="59.9" height="59.9" rx="1.5" ry="1.5" fill="#d3d3d3"/> <circle cx="74" cy="262.8" r="3.4" fill="#b2b2b2"/> <path d="M90,303.9v4.5c0,.8-.7,1.5-1.5,1.5H31.7c-.8,0-1.5-.7-1.5-1.5v-4.5c0-.5.2-1,.6-1.2l15.6-11.2c2-1.4,5.2-1.4,7.2,0l17.5,12.6s0,0,.1,0c1,.7,2.6.6,3.6,0s.9-1.9-.1-2.6l-1.6-1.1c-.9-.6-.9-1.9,0-2.5l1.2-.9c2-1.4,5.2-1.4,7.2,0l7.9,5.7c.4.3.6.8.6,1.2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="43.2" y="315.2" width="33.8" height="4.8" fill="#b2b2b2"/> </g> <g> <g> <rect x="100.1" y="250" width="59.9" height="59.9" rx="1.5" ry="1.5" fill="#d3d3d3"/> <circle cx="144" cy="262.8" r="3.4" fill="#b2b2b2"/> <path d="M159.9,303.9v4.5c0,.8-.7,1.5-1.5,1.5h-56.8c-.8,0-1.5-.7-1.5-1.5v-4.5c0-.5.2-1,.6-1.2l15.6-11.2c2-1.4,5.2-1.4,7.2,0l17.5,12.6s0,0,.1,0c1,.7,2.6.6,3.6,0s.9-1.9-.1-2.6l-1.6-1.1c-.9-.6-.9-1.9,0-2.5l1.2-.9c2-1.4,5.2-1.4,7.2,0l7.9,5.7c.4.3.6.8.6,1.2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="113.2" y="315.2" width="33.8" height="4.8" fill="#b2b2b2"/> </g> <g> <g> <rect x="170.1" y="250" width="59.9" height="59.9" rx="1.5" ry="1.5" fill="#d3d3d3"/> <circle cx="213.9" cy="262.8" r="3.4" fill="#b2b2b2"/> <path d="M229.9,303.9v4.5c0,.8-.7,1.5-1.5,1.5h-56.8c-.8,0-1.5-.7-1.5-1.5v-4.5c0-.5.2-1,.6-1.2l15.6-11.2c2-1.4,5.2-1.4,7.2,0l17.5,12.6s0,0,.1,0c1,.7,2.6.6,3.6,0s.9-1.9-.1-2.6l-1.6-1.1c-.9-.6-.9-1.9,0-2.5l1.2-.9c2-1.4,5.2-1.4,7.2,0l7.9,5.7c.4.3.6.8.6,1.2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="183.1" y="315.2" width="33.8" height="4.8" fill="#b2b2b2"/> </g> <g> <g> <rect x="240.1" y="250" width="59.9" height="59.9" rx="1.5" ry="1.5" fill="#d3d3d3"/> <circle cx="283.9" cy="262.8" r="3.4" fill="#b2b2b2"/> <path d="M299.9,303.9v4.5c0,.8-.7,1.5-1.5,1.5h-56.8c-.8,0-1.5-.7-1.5-1.5v-4.5c0-.5.2-1,.6-1.2l15.6-11.2c2-1.4,5.2-1.4,7.2,0l17.5,12.6s0,0,.1,0c1,.7,2.6.6,3.6,0s.9-1.9-.1-2.6l-1.6-1.1c-.9-.6-.9-1.9,0-2.5l1.2-.9c2-1.4,5.2-1.4,7.2,0l7.9,5.7c.4.3.6.8.6,1.2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="253.1" y="315.2" width="33.8" height="4.8" fill="#b2b2b2"/> </g> <g> <g> <rect x="310" y="250" width="59.9" height="59.9" rx="1.5" ry="1.5" fill="#d3d3d3"/> <circle cx="353.9" cy="262.8" r="3.4" fill="#b2b2b2"/> <path d="M369.8,303.9v4.5c0,.8-.7,1.5-1.5,1.5h-56.8c-.8,0-1.5-.7-1.5-1.5v-4.5c0-.5.2-1,.6-1.2l15.6-11.2c2-1.4,5.2-1.4,7.2,0l17.5,12.6s0,0,.1,0c1,.7,2.6.6,3.6,0s.9-1.9-.1-2.6l-1.6-1.1c-.9-.6-.9-1.9,0-2.5l1.2-.9c2-1.4,5.2-1.4,7.2,0l7.9,5.7c.4.3.6.8.6,1.2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="323" y="315.2" width="33.8" height="4.8" fill="#b2b2b2"/> </g> </g> </g> </g> <g id="Akkordeon" display="none"> <path d="M370,58.5H30v92.5c0,.8.7,1.5,1.5,1.5h337c.8,0,1.5-.7,1.5-1.5V58.5Z" fill="#efefef" fill-rule="evenodd"/> <g> <rect x="30.2" y="166.5" width="339.7" height="29" rx="1.5" ry="1.5" fill="#d3d3d3"/> <path d="M353.1,175.1l4.8-.6c1.2-.2,2.1,1.2,1.5,2.2l-5.2,9c-.6,1-2,1-2.6,0l-5.2-9c-.6-1.1.3-2.4,1.5-2.2l4.8.6c.1,0,.3,0,.4,0Z" fill="#b2b2b2"/> <rect x="39.8" y="176" width="105" height="10" rx="1.5" ry="1.5" fill="#b2b2b2"/> </g> <g> <rect x="40" y="69.5" width="217.8" height="10" rx="1.5" ry="1.5" fill="#d3d3d3"/> <rect x="39.9" y="85" width="313.1" height="10" rx="1.5" ry="1.5" fill="#d3d3d3"/> <rect x="40" y="100.5" width="291.2" height="10" rx="1.5" ry="1.5" fill="#d3d3d3"/> <rect x="40" y="131.5" width="291.2" height="10" rx="1.5" ry="1.5" fill="#d3d3d3"/> <rect x="39.9" y="116" width="160.5" height="10" rx="1.5" ry="1.5" fill="#d3d3d3"/> </g> <g> <rect x="30.2" y="210.2" width="339.7" height="29" rx="1.5" ry="1.5" fill="#d3d3d3"/> <path d="M353.1,218.9l4.8-.6c1.2-.2,2.1,1.2,1.5,2.2l-5.2,9c-.6,1-2,1-2.6,0l-5.2-9c-.6-1.1.3-2.4,1.5-2.2l4.8.6c.1,0,.3,0,.4,0Z" fill="#b2b2b2"/> <rect x="39.8" y="219.8" width="105" height="10" rx="1.5" ry="1.5" fill="#b2b2b2"/> </g> <g> <rect x="30.2" y="254" width="339.7" height="29" rx="1.5" ry="1.5" fill="#d3d3d3"/> <path d="M353.1,262.6l4.8-.6c1.2-.2,2.1,1.2,1.5,2.2l-5.2,9c-.6,1-2,1-2.6,0l-5.2-9c-.6-1.1.3-2.4,1.5-2.2l4.8.6c.1,0,.3,0,.4,0Z" fill="#b2b2b2"/> <rect x="39.8" y="263.5" width="105" height="10" rx="1.5" ry="1.5" fill="#b2b2b2"/> </g> <g> <rect x="30.2" y="297.8" width="339.7" height="29" rx="1.5" ry="1.5" fill="#d3d3d3"/> <path d="M353.1,306.4l4.8-.6c1.2-.2,2.1,1.2,1.5,2.2l-5.2,9c-.6,1-2,1-2.6,0l-5.2-9c-.6-1.1.3-2.4,1.5-2.2l4.8.6c.1,0,.3,0,.4,0Z" fill="#b2b2b2"/> <rect x="39.8" y="307.2" width="105" height="10" rx="1.5" ry="1.5" fill="#b2b2b2"/> </g> <g> <rect x="30.2" y="341.5" width="339.7" height="29" rx="1.5" ry="1.5" fill="#d3d3d3"/> <path d="M353.1,350.1l4.8-.6c1.2-.2,2.1,1.2,1.5,2.2l-5.2,9c-.6,1-2,1-2.6,0l-5.2-9c-.6-1.1.3-2.4,1.5-2.2l4.8.6c.1,0,.3,0,.4,0Z" fill="#b2b2b2"/> <rect x="39.8" y="351" width="105" height="10" rx="1.5" ry="1.5" fill="#b2b2b2"/> </g> <path d="M31.7,29.5h336.7c.8,0,1.5.7,1.5,1.5v27.5H30.2v-27.5c0-.8.7-1.5,1.5-1.5Z" fill="#d3d3d3"/> <path d="M353.1,38.1l4.8-.6c1.2-.2,2.1,1.2,1.5,2.2l-5.2,9c-.6,1-2,1-2.6,0l-5.2-9c-.6-1.1.3-2.4,1.5-2.2l4.8.6c.1,0,.3,0,.4,0Z" fill="#b2b2b2"/> <rect x="39.8" y="39" width="105" height="10" rx="1.5" ry="1.5" fill="#b2b2b2"/> </g> <g id="Scroll-Top" display="none"> <path d="M200,30C106.1,30,30,106.1,30,200s76.1,170,170,170,170-76.1,170-170S293.9,30,200,30ZM275.9,254c-2.6,10.5-15,15.2-24.6,10.1l-49.1-26.3c-1.5-.2-3.1-.2-4.6,0l-49.1,26.3c-9.5,5.1-22,.4-24.6-10.1-1-4-.5-8.4,1.9-12.6l59.2-102.6c6.6-11.5,23.1-11.5,29.8,0l59.2,102.6c2.4,4.1,2.8,8.6,1.9,12.6Z" fill="#d3d3d3"/> </g> <g id="Text" display="none"> <path d="M30,348.3v-42.4h211.9v42.4H30ZM30,263.6v-42.4h339v42.4H30ZM30,178.8v-42.4h339v42.4H30ZM30,94.1v-42.4h339v42.4H30Z" fill="#d3d3d3"/> </g> <g id="Contact" display="none"> <rect x="30" y="139" width="340" height="122" rx="2.7" ry="2.7" fill="#f7f7f7"/> <g> <g> <path d="M85.7,244.2v-8.7h34.9v-31c0-8.5-3-15.7-8.9-21.7s-13.1-8.9-21.7-8.9-15.7,3-21.7,8.9c-5.9,5.9-8.9,13.1-8.9,21.7v26.6h-4.4c-2.4,0-4.5-.9-6.2-2.6-1.7-1.7-2.6-3.8-2.6-6.2v-8.7c0-1.5.4-3,1.1-4.3s1.8-2.4,3.2-3.2l.3-5.8c.6-4.9,2-9.5,4.3-13.7s5.2-7.9,8.6-11c3.5-3.1,7.4-5.6,11.9-7.3s9.2-2.6,14.1-2.6,9.6.9,14.1,2.6,8.4,4.2,11.9,7.3,6.4,6.7,8.6,11,3.7,8.8,4.4,13.7l.3,5.7c1.4.7,2.5,1.6,3.2,2.9s1.1,2.7,1.1,4.1v10c0,1.5-.4,2.8-1.1,4.1s-1.8,2.3-3.2,2.9v5.3c0,2.4-.9,4.5-2.6,6.2-1.7,1.7-3.8,2.6-6.2,2.6h-34.9ZM77,213.7c-1.2,0-2.3-.4-3.1-1.3s-1.3-1.9-1.3-3.1.4-2.3,1.3-3.1,1.9-1.3,3.1-1.3,2.3.4,3.1,1.3,1.3,1.9,1.3,3.1-.4,2.3-1.3,3.1-1.9,1.3-3.1,1.3ZM103.2,213.7c-1.2,0-2.3-.4-3.1-1.3s-1.3-1.9-1.3-3.1.4-2.3,1.3-3.1,1.9-1.3,3.1-1.3,2.3.4,3.1,1.3,1.3,1.9,1.3,3.1-.4,2.3-1.3,3.1-1.9,1.3-3.1,1.3ZM64,206.9c-.5-7.7,1.8-14.3,7-19.9s11.6-8.3,19.3-8.3,12.2,2.1,17.1,6.2,7.9,9.4,8.9,15.8c-6.6,0-12.7-1.9-18.3-5.3s-9.8-8.2-12.8-14.2c-1.2,5.8-3.6,11-7.4,15.5-3.7,4.5-8.3,7.9-13.8,10.2Z" fill="#b2b2b2"/> <path d="M169.3,236.1c-1,0-1.9-.4-2.6-1.1s-1.1-1.6-1.1-2.6v-21.8c0-1,.4-1.9,1.1-2.6s1.6-1.1,2.6-1.1h29.1c1,0,1.9.4,2.6,1.1s1.1,1.6,1.1,2.6v21.8c0,1-.4,1.9-1.1,2.6s-1.6,1.1-2.6,1.1h-29.1ZM183.8,223.4l-14.5-9.1v18.2h29.1v-18.2l-14.5,9.1ZM183.8,219.8l14.5-9.1h-29.1l14.5,9.1ZM169.3,214.3v-3.6,21.8-18.2Z" fill="#b2b2b2"/> <path d="M154.8,177.6h14.5v-3.6h-14.5v3.6ZM154.8,172.1h21.8v-3.6h-21.8v3.6ZM154.8,166.7h21.8v-3.6h-21.8v3.6ZM147.5,192.1v-32.7c0-1,.4-1.9,1.1-2.6s1.6-1.1,2.6-1.1h29.1c1,0,1.9.4,2.6,1.1s1.1,1.6,1.1,2.6v21.8c0,1-.4,1.9-1.1,2.6-.7.7-1.6,1.1-2.6,1.1h-25.5l-7.3,7.3ZM153.2,181.2h27v-21.8h-29.1v23.9l2.1-2ZM151.1,181.2v-21.8,21.8Z" fill="#b2b2b2"/> </g> <g> <rect x="230.2" y="162.4" width="108.5" height="8.4" fill="#b2b2b2"/> <rect x="230.2" y="178.3" width="114.1" height="8.4" fill="#b2b2b2"/> <rect x="230.2" y="194.2" width="101.9" height="8.4" fill="#b2b2b2"/> <rect x="230.2" y="211" width="118.8" height="8.4" fill="#b2b2b2"/> <rect x="230.2" y="227.9" width="87.9" height="8.4" fill="#b2b2b2"/> </g> </g> </g> <g id="Contact_alt" display="none"> <path d="M183,352.7v-33.9h135.8v-120.5c0-33.1-11.5-61.2-34.6-84.2-23.1-23.1-51.1-34.6-84.2-34.6s-61.2,11.5-84.2,34.6c-23.1,23.1-34.6,51.1-34.6,84.2v103.5h-17c-9.3,0-17.3-3.3-24-10-6.6-6.6-10-14.6-10-24v-33.9c0-5.9,1.5-11.5,4.5-16.8,3-5.2,7.1-9.4,12.5-12.5l1.3-22.5c2.3-19.2,7.8-37.1,16.8-53.5,8.9-16.4,20.1-30.7,33.5-42.9,13.4-12.2,28.8-21.6,46.2-28.4,17.4-6.8,35.7-10.2,54.9-10.2s37.5,3.4,54.7,10.2c17.3,6.8,32.7,16.2,46.2,28.2,13.6,12,24.7,26.2,33.5,42.6,8.8,16.4,14.4,34.2,17,53.5l1.3,22.1c5.4,2.5,9.5,6.4,12.5,11.5,3,5.1,4.5,10.5,4.5,16.1v39c0,5.7-1.5,11-4.5,16.1-3,5.1-7.1,8.9-12.5,11.5v20.8c0,9.3-3.3,17.3-10,24-6.6,6.6-14.6,10-24,10h-135.8ZM149.1,233.9c-4.8,0-8.8-1.6-12.1-4.9-3.3-3.3-4.9-7.3-4.9-12.1s1.6-8.8,4.9-12.1c3.3-3.3,7.3-4.9,12.1-4.9s8.8,1.6,12.1,4.9c3.3,3.3,4.9,7.3,4.9,12.1s-1.6,8.8-4.9,12.1c-3.3,3.3-7.3,4.9-12.1,4.9ZM250.9,233.9c-4.8,0-8.8-1.6-12.1-4.9-3.3-3.3-4.9-7.3-4.9-12.1s1.6-8.8,4.9-12.1c3.3-3.3,7.3-4.9,12.1-4.9s8.8,1.6,12.1,4.9c3.3,3.3,4.9,7.3,4.9,12.1s-1.6,8.8-4.9,12.1-7.3,4.9-12.1,4.9ZM98.6,207.6c-2-30,7.1-55.7,27.2-77.2,20.1-21.5,45.1-32.2,75.1-32.2s47.3,8,66.4,24c19.1,16,30.6,36.4,34.6,61.3-25.7-.3-49.4-7.2-71.
22371-20.8-21.6-13.6-38.3-32-49.9-55.2-4.5,22.6-14.1,42.8-28.6,60.5-14.6,17.7-32.5,30.9-53.7,39.7Z" fill="#efefef"/> </g> <g id="Process_-_4"> <rect x="291" y="160.4" width="78.9" height="79.3" rx="1.3" ry="1.3" fill="#efefef"/> <rect x="295.3" y="166.9" width="70.3" height="39.5" rx="1.8" ry="1.8" fill="#d3d3d3"/> <circle cx="330.5" cy="175.1" r="2.9" fill="#b2b2b2"/> <path d="M365.6,199.4v5.3c0,1-.8,1.8-1.8,1.8h-66.8c-1,0-1.8-.8-1.8-1.8v-5.3c0-.6.3-1.1.7-1.5l18.3-13.2c2.3-1.7,6.1-1.7,8.4,0l20.5,14.8s0,0,.1.1c1.2.8,3.1.8,4.2-.1s1.1-2.2-.1-3l-1.8-1.3c-1-.7-1-2.2,0-2.9l1.5-1.1c2.3-1.7,6.1-1.7,8.4,0l9.3,6.7c.5.3.7.9.7,1.5Z" fill="#b2b2b2" fill-rule="evenodd"/> <rect x="203.7" y="160.4" width="78.9" height="79.3" rx="1.3" ry="1.3" fill="#efefef"/> <rect x="208" y="166.9" width="70.3" height="39.5" rx="1.8" ry="1.8" fill="#d3d3d3"/> <circle cx="243.2" cy="175.1" r="2.9" fill="#b2b2b2"/> <path d="M278.4,199.4v5.3c0,1-.8,1.8-1.8,1.8h-66.8c-1,0-1.8-.8-1.8-1.8v-5.3c0-.6.3-1.1.7-1.5l18.3-13.2c2.3-1.7,6.1-1.7,8.4,0l20.5,14.8s0,0,.1.1c1.2.8,3.1.8,4.2-.1s1.1-2.2-.1-3l-1.8-1.3c-1-.7-1-2.2,0-2.9l1.5-1.1c2.3-1.7,6.1-1.7,8.4,0l9.3,6.7c.5.3.7.9.7,1.5Z" fill="#b2b2b2" fill-rule="evenodd"/> <rect x="116.4" y="160.4" width="78.9" height="79.3" rx="1.3" ry="1.3" fill="#efefef"/> <rect x="120.7" y="166.9" width="70.3" height="39.5" rx="1.8" ry="1.8" fill="#d3d3d3"/> <circle cx="155.9" cy="175.1" r="2.9" fill="#b2b2b2"/> <path d="M191.1,199.4v5.3c0,1-.8,1.8-1.8,1.8h-66.8c-1,0-1.8-.8-1.8-1.8v-5.3c0-.6.3-1.1.7-1.5l18.3-13.2c2.3-1.7,6.1-1.7,8.4,0l20.5,14.8s0,0,.1.1c1.2.8,3.1.8,4.2-.1s1.1-2.2-.1-3l-1.8-1.3c-1-.7-1-2.2,0-2.9l1.5-1.1c2.3-1.7,6.1-1.7,8.4,0l9.3,6.7c.5.3.7.9.7,1.5Z" fill="#b2b2b2" fill-rule="evenodd"/> <rect x="29.1" y="160.4" width="78.9" height="79.3" rx="1.3" ry="1.3" fill="#efefef"/> <rect x="46.4" y="225.7" width="44.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="33.4" y="166.9" width="70.3" height="39.5" rx="1.8" ry="1.8" fill="#d3d3d3"/> <circle cx="68.6" cy="175.1" r="2.9" fill="#b2b2b2"/> <path d="M103.8,199.4v5.3c0,1-.8,1.8-1.8,1.8H35.2c-1,0-1.8-.8-1.8-1.8v-5.3c0-.6.3-1.1.7-1.5l18.3-13.2c2.3-1.7,6.1-1.7,8.4,0l20.5,14.8s0,0,.1.1c1.2.8,3.1.8,4.2-.1s1.1-2.2-.1-3l-1.8-1.3c-1-.7-1-2.2,0-2.9l1.5-1.1c2.3-1.7,6.1-1.7,8.4,0l9.3,6.7c.5.3.7.9.7,1.5Z" fill="#b2b2b2" fill-rule="evenodd"/> <rect x="29.1" y="163.9" width="15.8" height="14.1" fill="#fff"/> <text transform="translate(34.2 174.6)" font-family="Futura-Bold, Futura" font-size="9" font-weight="700"><tspan x="0" y="0">1</tspan></text> <rect x="116.4" y="163.9" width="15.8" height="14.1" fill="#fff"/> <text transform="translate(121.5 174.6)" font-family="Futura-Bold, Futura" font-size="9" font-weight="700"><tspan x="0" y="0">2</tspan></text> <rect x="203.7" y="163.9" width="15.8" height="14.1" fill="#fff"/> <text transform="translate(208.7 174.6)" font-family="Futura-Bold, Futura" font-size="9" font-weight="700"><tspan x="0" y="0">3</tspan></text> <rect x="291" y="163.9" width="15.8" height="14.1" fill="#fff"/> <text transform="translate(296 174.6)" font-family="Futura-Bold, Futura" font-size="9" font-weight="700"><tspan x="0" y="0">4</tspan></text> <g> <rect x="135.7" y="252.2" width="61.1" height="17.4" rx="2.6" ry="2.6" fill="#757575"/> <path d="M262.3,254.2v13.4h-57.1v-13.4h57.1M262.3,252.2h-57.1c-1.1,0-2,.9-2,2v13.4c0,1.1.9,2,2,2h57.1c1.1,0,2-.9,2-2v-13.4c0-1.1-.9-2-2-2h0Z" fill="#757575"/> </g> <rect x="35.9" y="213.6" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="133.7" y="225.7" width="44.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="123.2" y="213.6" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="221" y="225.7" width="44.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="210.5" y="213.6" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="308.3" y="225.7" width="44.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="297.8" y="213.6" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> </g> <g id="Karten_-_4" display="none"> <rect x="291" y="92" width="78.9" height="174" rx="1.9" ry="1.9" fill="#efefef"/> <g> <g> <rect x="297.8" y="179.3" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="297.8" y="188.2" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="297.8" y="197.1" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="297.8" y="205.9" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="297.8" y="214.8" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="297.8" y="223.7" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="297.8" y="232.6" width="44.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> </g> <rect x="297.8" y="246.9" width="65.3" height="12" rx=".8" ry=".8" fill="#757575"/> </g> <g> <rect x="312.1" y="144.7" width="36.8" height="6" rx=".8" ry=".8" fill="#b2b2b2"/> <rect x="306.6" y="166.5" width="47.7" height="6" rx=".8" ry=".8" fill="#b2b2b2"/> <rect x="318.8" y="154.5" width="23.3" height="8.3" rx=".8" ry=".8" fill="#b2b2b2"/> </g> <rect x="295.3" y="98.6" width="70.3" height="39.5" rx="1.8" ry="1.8" fill="#d3d3d3"/> <circle cx="330.5" cy="106.8" r="2.9" fill="#b2b2b2"/> <path d="M365.6,131v5.3c0,1-.8,1.8-1.8,1.8h-66.8c-1,0-1.8-.8-1.8-1.8v-5.3c0-.6.3-1.1.7-1.5l18.3-13.2c2.3-1.7,6.1-1.7,8.4,0l20.5,14.8s0,0,.1.1c1.2.8,3.1.8,4.2-.1s1.1-2.2-.1-3l-1.8-1.3c-1-.7-1-2.2,0-2.9l1.5-1.1c2.3-1.7,6.1-1.7,8.4,0l9.3,6.7c.5.3.7.9.7,1.5Z" fill="#b2b2b2" fill-rule="evenodd"/> <rect x="203.7" y="92" width="78.9" height="174" rx="1.9" ry="1.9" fill="#efefef"/> <g> <g> <rect x="210.5" y="179.3" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="210.5" y="188.2" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="210.5" y="197.1" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="210.5" y="205.9" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="210.5" y="214.8" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="210.5" y="223.7" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="210.5" y="232.6" width="44.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> </g> <rect x="210.5" y="246.9" width="65.3" height="12" rx=".8" ry=".8" fill="#757575"/> </g> <g> <rect x="224.8" y="144.7" width="36.8" height="6" rx=".8" ry=".8" fill="#b2b2b2"/> <rect x="219.3" y="166.5" width="47.7" height="6" rx=".8" ry=".8" fill="#b2b2b2"/> <rect x="231.5" y="154.5" width="23.3" height="8.3" rx=".8" ry=".8" fill="#b2b2b2"/> </g> <rect x="208" y="98.6" width="70.3" height="39.5" rx="1.8" ry="1.8" fill="#d3d3d3"/> <circle cx="243.2" cy="106.8" r="2.9" fill="#b2b2b2"/> <path d="M278.4,131v5.3c0,1-.8,1.8-1.8,1.8h-66.8c-1,0-1.8-.8-1.8-1.8v-5.3c0-.6.3-1.1.7-1.5l18.3-13.2c2.3-1.7,6.1-1.7,8.4,0l20.5,14.8s0,0,.1.1c1.2.8,3.1.8,4.2-.1s1.1-2.2-.1-3l-1.8-1.3c-1-.7-1-2.2,0-2.9l1.5-1.1c2.3-1.7,6.1-1.7,8.4,0l9.3,6.7c.5.3.7.9.7,1.5Z" fill="#b2b2b2" fill-rule="evenodd"/> <rect x="116.4" y="92" width="78.9" height="174" rx="1.9" ry="1.9" fill="#efefef"/> <g> <g> <rect x="123.2" y="179.3" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="123.2" y="188.2" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="123.2" y="197.1" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="123.2" y="205.9" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="123.2" y="214.8" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="123.2" y="223.7" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="123.2" y="232.6" width="44.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> </g> <rect x="123.2" y="246.9" width="65.3" height="12" rx=".8" ry=".8" fill="#757575"/> </g> <g> <rect x="137.5" y="144.7" width="36.8" height="6" rx=".8" ry=".8" fill="#b2b2b2"/> <rect x="132" y="166.5" width="47.7" height="6" rx=".8" ry=".8" fill="#b2b2b2"/> <rect x="144.2" y="154.5" width="23.3" height="8.3" rx=".8" ry=".8" fill="#b2b2b2"/> </g> <rect x="120.7" y="98.6" width="70.3" height="39.5" rx="1.8" ry="1.8" fill="#d3d3d3"/> <circle cx="155.9" cy="106.8" r="2.9" fill="#b2b2b2"/> <path d="M191.1,131v5.3c0,1-.8,1.8-1.8,1.8h-66.8c-1,0-1.8-.8-1.8-1.8v-5.3c0-.6.3-1.1.7-1.5l18.3-13.2c2.3-1.7,6.1-1.7,8.4,0l20.5,14.8s0,0,.1.1c1.2.8,3.1.8,4.2-.1s1.1-2.2-.1-3l-1.8-1.3c-1-.7-1-2.2,0-2.9l1.5-1.1c2.3-1.7,6.1-1.7,8.4,0l9.3,6.7c.5.3.7.9.7,1.5Z" fill="#b2b2b2" fill-rule="evenodd"/> <rect x="29.1" y="92" width="78.9" height="174" rx="1.9" ry="1.9" fill="#efefef"/> <g> <g> <rect x="35.9" y="179.3" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="35.9" y="188.2" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="35.9" y="197.1" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="35.9" y="205.9" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="35.9" y="214.8" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="35.9" y="223.7" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="35.9" y="232.6" width="44.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> </g> <rect x="35.9" y="246.9" width="65.3" height="12" rx=".8" ry=".8" fill="#757575"/> </g> <g> <rect x="50.2" y="144.7" width="36.8" height="6" rx=".8" ry=".8" fill="#b2b2b2"/> <rect x="44.7" y="166.5" width="47.7" height="6" rx=".8" ry=".8" fill="#b2b2b2"/> <rect x="56.9" y="154.5" width="23.3" height="8.3" rx=".8" ry=".8" fill="#b2b2b2"/> </g> <rect x="33.4" y="98.6" width="70.3" height="39.5" rx="1.8" ry="1.8" fill="#d3d3d3"/> <circle cx="68.6" cy="106.8" r="2.9" fill="#b2b2b2"/> <path d="M103.8,131v5.3c0,1-.8,1.8-1.8,1.8H35.2c-1,0-1.8-.8-1.8-1.8v-5.3c0-.6.3-1.1.7-1.5l18.3-13.2c2.3-1.7,6.1-1.7,8.4,0l20.5,14.8s0,0,.1.1c1.2.8,3.1.8,4.2-.1s1.1-2.2-.1-3l-1.8-1.3c-1-.7-1-2.2,0-2.9l1.5-1.1c2.3-1.7,6.1-1.7,8.4,0l9.3,6.7c.5.3.7.9.7,1.5Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <g id="Karten_-_3" display="none"> <circle cx="110.3" cy="111.7" r="3.8" fill="#b2b2b2"/> <g> <rect x="29.8" y="76.2" width="105.1" height="247.5" rx="2.7" ry="2.7" fill="#efefef"/> <rect x="50.6" y="85.2" width="63.6" height="9" rx="1" ry="1" fill="#b2b2b2"/> <g> <g> <rect x="38.9" y="208.2" width="87" height="8" rx="1" ry="1" fill="#d3d3d3"/> <rect x="38.9" y="220.1" width="87" height="8" rx="1" ry="1" fill="#d3d3d3"/> <rect x="38.9" y="231.9" width="87" height="8" rx="1" ry="1" fill="#d3d3d3"/> <rect x="38.9" y="243.8" width="87" height="8" rx="1" ry="1" fill="#d3d3d3"/> <rect x="38.9" y="255.6" width="87" height="8" rx="1" ry="1" fill="#d3d3d3"/> <rect x="38.9" y="267.4" width="87" height="8" rx="1" ry="1" fill="#d3d3d3"/> <rect x="38.9" y="279.2" width="59" height="8" rx="1" ry="1" fill="#d3d3d3"/> </g> <rect x="38.9" y="298.2" width="87" height="16" rx="1" ry="1" fill="#757575"/> </g> <g> <rect x="57.9" y="162.2" width="49" height="8" rx="1" ry="1" fill="#b2b2b2"/> <rect x="50.6" y="191.2" width="63.6" height="8" rx="1" ry="1" fill="#b2b2b2"/> <rect x="66.9" y="175.2" width="31" height="11" rx="1" ry="1" fill="#b2b2b2"/> </g> <rect x="35.6" y="100.8" width="93.6" height="52.7" rx="2.4" ry="2.4" fill="#d3d3d3"/> <path d="M129.2,144v7c0,1.3-1.1,2.4-2.4,2.4H37.9c-1.3,0-2.4-1.1-2.4-2.4v-7c0-.8.4-1.5,1-2l24.4-17.6c3.1-2.2,8.1-2.2,11.2,0l27.3,19.7c0,0,.1,0,.2.1,1.6,1.1,4.1,1,5.6-.1s1.4-3-.2-4.1l-2.4-1.8c-1.3-1-1.3-2.9,0-3.9l2-1.4c3.1-2.2,8.1-2.2,11.2,0l12.4,9c.6.5,1,1.2,1,2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <g> <rect x="147.3" y="76.2" width="105.1" height="247.5" rx="2.7" ry="2.7" fill="#efefef"/> <rect x="168.1" y="85.2" width="63.6" height="9" rx="1" ry="1" fill="#b2b2b2"/> <g> <g> <rect x="156.3" y="208.2" width="87" height="8" rx="1" ry="1" fill="#d3d3d3"/> <rect x="156.3" y="220.1" width="87" height="8" rx="1" ry="1" fill="#d3d3d3"/> <rect x="156.3" y="231.9" width="87" height="8" rx="1" ry="1" fill="#d3d3d3"/> <rect x="156.3" y="243.8" width="87" height="8" rx="1" ry="1" fill="#d3d3d3"/> <rect x="156.3" y="255.6" width="87" height="8" rx="1" ry="1" fill="#d3d3d3"/> <rect x="156.3" y="267.4" width="87" height="8" rx="1" ry="1" fill="#d3d3d3"/> <rect x="156.3" y="279.2" width="59" height="8" rx="1" ry="1" fill="#d3d3d3"/> </g> <rect x="156.4" y="298.2" width="87" height="16" rx="1" ry="1" fill="#757575"/> </g> <g> <rect x="175.4" y="162.2" width="49" height="8" rx="1" ry="1" fill="#b2b2b2"/> <rect x="168.1" y="191.2" width="63.6" height="8" rx="1" ry="1" fill="#b2b2b2"/> <rect x="184.4" y="175.2" width="31" height="11" rx="1" ry="1" fill="#b2b2b2"/> </g> <rect x="153.1" y="100.8" width="93.6" height="52.7" rx="2.4" ry="2.4" fill="#d3d3d3"/> <circle cx="199.9" cy="111.7" r="3.8" fill="#b2b2b2"/> <path d="M246.7,144v7c0,1.3-1.1,2.4-2.4,2.4h-88.9c-1.3,0-2.4-1.1-2.4-2.4v-7c0-.8.4-1.5,1-2l24.4-17.6c3.1-2.2,8.1-2.2,11.2,0l27.3,19.7c0,0,.1,0,.2.1,1.6,1.1,4.1,1,5.6-.1s1.4-3-.2-4.1l-2.4-1.8c-1.3-1-1.3-2.9,0-3.9l2-1.4c3.1-2.2,8.1-2.2,11.2,0l12.4,9c.6.5,1,1.2,1,2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <g> <rect x="264.8" y="76.2" width="105.1" height="247.5" rx="2.7" ry="2.7" fill="#efefef"/> <rect x="285.6" y="85.2" width="63.6" height="9" rx="1" ry="1" fill="#b2b2b2"/> <g> <g> <rect x="273.8" y="208.2" width="87" height="8" rx="1" ry="1" fill="#d3d3d3"/> <rect x="273.8" y="220.1" width="87" height="8" rx="1" ry="1" fill="#d3d3d3"/> <rect x="273.8" y="231.9" width="87" height="8" rx="1" ry="1" fill="#d3d3d3"/> <rect x="273.8" y="243.8" width="87" height="8" rx="1" ry="1" fill="#d3d3d3"/> <rect x="273.8" y="255.6" width="87" height="8" rx="1" ry="1" fill="#d3d3d3"/> <rect x="273.8" y="267.4" width="87" height="8" rx="1" ry="1" fill="#d3d3d3"/> <rect x="273.8" y="279.2" width="59" height="8" rx="1" ry="1" fill="#d3d3d3"/> </g> <rect x="273.8" y="298.2" width="87" height="16" rx="1" ry="1" fill="#757575"/> </g> <g> <rect x="292.9" y="162.2" width="49" height="8" rx="1" ry="1" fill="#b2b2b2"/> <rect x="285.6" y="191.2" width="63.6" height="8" rx="1" ry="1" fill="#b2b2b2"/> <rect x="301.8" y="175.2" width="31" height="11" rx="1" ry="1" fill="#b2b2b2"/> </g> <rect x="270.6" y="100.8" width="93.6" height="52.7" rx="2.4" ry="2.4" fill="#d3d3d3"/> <circle cx="317.4" cy="111.7" r="3.8" fill="#b2b2b2"/> <path d="M364.2,144v7c0,1.3-1.1,2.4-2.4,2.4h-88.9c-1.3,0-2.4-1.1-2.4-2.4v-7c0-.8.4-1.5,1-2l24.4-17.6c3.1-2.2,8.1-2.2,11.2,0l27.3,19.7c0,0,.1,0,.2.1,1.6,1.1,4.1,1,5.6-.1s1.4-3-.2-4.1l-2.4-1.8c-1.3-1-1.3-2.9,0-3.9l2-1.4c3.1-2.2,8.1-2.2,11.2,0l12.4,9c.6.5,1,1.2,1,2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> </g> <g id="Karten_-_3_alt." display="none"> <g> <rect x="29.8" y="137.1" width="105.1" height="125.9" rx="1.9" ry="1.9" fill="#efefef"/> <rect x="147.3" y="137.1" width="105.1" height="125.9" rx="1.9" ry="1.9" fill="#efefef"/> <rect x="264.8" y="137.1" width="105.1" height="125.9" rx="1.9" ry="1.9" fill="#efefef"/> <rect x="38.9" y="239.7" width="87" height="16" rx="1" ry="1" fill="#757575"/> <rect x="50.6" y="222.7" width="63.6" height="8" rx="1" ry="1" fill="#b2b2b2"/> <rect x="66.9" y="206.7" width="31" height="11" rx="1" ry="1" fill="#b2b2b2"/> <rect x="156.4" y="239.7" width="87" height="16" rx="1" ry="1" fill="#757575"/> <rect x="168.1" y="222.7" width="63.6" height="8" rx="1" ry="1" fill="#b2b2b2"/> <rect x="184.4" y="206.7" width="31" height="11" rx="1" ry="1" fill="#b2b2b2"/> <g> <circle cx="110.3" cy="155.1" r="3.8" fill="#b2b2b2"/> <rect x="35.6" y="144.2" width="93.6" height="52.7" rx="2.4" ry="2.4" fill="#d3d3d3"/> <path d="M129.2,187.4v7c0,1.3-1.1,2.4-2.4,2.4H37.9c-1.3,0-2.4-1.1-2.4-2.4v-7c0-.8.4-1.5,1-2l24.4-17.6c3.1-2.2,8.1-2.2,11.2,0l27.3,19.7c0,0,.1,0,.2.1,1.6,1.1,4.1,1,5.6-.1s1.4-3-.2-4.1l-2.4-1.8c-1.3-1-1.3-2.9,0-3.9l2-1.4c3.1-2.2,8.1-2.2,11.2,0l12.4,9c.6.5,1,1.2,1,2Z" fill="#b2b2b2" fill-rule="evenodd"/> <circle cx="82.9" cy="155.1" r="3.8" fill="#b2b2b2"/> </g> <g> <rect x="153.1" y="144.2" width="93.6" height="52.7" rx="2.4" ry="2.4" fill="#d3d3d3"/> <circle cx="199.9" cy="155.1" r="3.8" fill="#b2b2b2"/> <path d="M246.7,187.4v7c0,1.3-1.1,2.4-2.4,2.4h-88.9c-1.3,0-2.4-1.1-2.4-2.4v-7c0-.8.4-1.5,1-2l24.4-17.6c3.1-2.2,8.1-2.2,11.2,0l27.3,19.7c0,0,.1,0,.2.1,1.6,1.1,4.1,1,5.6-.1s1.4-3-.2-4.1l-2.4-1.8c-1.3-1-1.3-2.9,0-3.9l2-1.4c3.1-2.2,8.1-2.2,11.2,0l12.4,9c.6.5,1,1.2,1,2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="273.8" y="239.7" width="87" height="16" rx="1" ry="1" fill="#757575"/> <rect x="285.6" y="222.7" width="63.6" height="8" rx="1" ry="1" fill="#b2b2b2"/> <rect x="301.8"
2237y="206.7" width="31" height="11" rx="1" ry="1" fill="#b2b2b2"/> <g> <rect x="270.6" y="144.2" width="93.6" height="52.7" rx="2.4" ry="2.4" fill="#d3d3d3"/> <circle cx="317.4" cy="155.1" r="3.8" fill="#b2b2b2"/> <path d="M364.2,187.4v7c0,1.3-1.1,2.4-2.4,2.4h-88.9c-1.3,0-2.4-1.1-2.4-2.4v-7c0-.8.4-1.5,1-2l24.4-17.6c3.1-2.2,8.1-2.2,11.2,0l27.3,19.7c0,0,.1,0,.2.1,1.6,1.1,4.1,1,5.6-.1s1.4-3-.2-4.1l-2.4-1.8c-1.3-1-1.3-2.9,0-3.9l2-1.4c3.1-2.2,8.1-2.2,11.2,0l12.4,9c.6.5,1,1.2,1,2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> </g> </g> <g id="Code" display="none"> <path d="M242.3,157.8l42.3,42.3-42.3,42.3M157.7,242.5l-42.3-42.3,42.3-42.3M87.2,355.3h225.7c23.4,0,42.3-18.9,42.3-42.3V87.3c0-23.4-18.9-42.3-42.3-42.3H87.2c-23.4,0-42.3,18.9-42.3,42.3v225.7c0,23.4,18.9,42.3,42.3,42.3Z" fill="none" stroke="#d3d3d3" stroke-linecap="round" stroke-linejoin="round" stroke-width="28.2"/> </g> <g id="Unternavigation" display="none"> <g> <g> <rect x="29.8" y="168" width="94.4" height="25" fill="#d3d3d3"/> <rect x="152.6" y="168" width="94.4" height="25" fill="#d3d3d3"/> <rect x="275.4" y="168" width="94.4" height="25" fill="#d3d3d3"/> </g> <g> <rect x="91.2" y="207" width="94.4" height="25" fill="#d3d3d3"/> <rect x="214" y="207" width="94.4" height="25" fill="#d3d3d3"/> </g> </g> </g> <g id="Karten_-_2" display="none"> <g> <rect x="29.7" y="56" width="160.5" height="288" rx="2.5" ry="2.5" fill="#efefef"/> <g> <g> <rect x="38.7" y="88.8" width="142.9" height="80.4" rx="3.7" ry="3.7" fill="#d3d3d3"/> <circle cx="153.1" cy="105.5" r="5.9" fill="#b2b2b2"/> <path d="M181.7,154.7v10.8c0,2-1.6,3.7-3.7,3.7H42.4c-2,0-3.7-1.6-3.7-3.7v-10.7c0-1.2.6-2.3,1.5-3l37.2-26.8c4.7-3.4,12.4-3.4,17.1,0l41.7,30.1c0,0,.2.1.3.2,2.4,1.6,6.3,1.5,8.6-.2s2.1-4.5-.3-6.2l-3.7-2.7c-2-1.5-2-4.5,0-6l3-2.2c4.7-3.4,12.4-3.4,17.1,0l19,13.7c1,.7,1.5,1.8,1.5,3Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="74.8" y="68.5" width="63.6" height="9" rx="2" ry="2" fill="#b2b2b2"/> <g> <g> <rect x="38.2" y="225.5" width="142.9" height="8" rx="2" ry="2" fill="#d3d3d3"/> <rect x="38.2" y="237.3" width="142.9" height="8" rx="2" ry="2" fill="#d3d3d3"/> <rect x="38.2" y="249.2" width="142.9" height="8" rx="2" ry="2" fill="#d3d3d3"/> <rect x="38.2" y="261" width="142.9" height="8" rx="2" ry="2" fill="#d3d3d3"/> <rect x="38.2" y="272.8" width="142.9" height="8" rx="2" ry="2" fill="#d3d3d3"/> <rect x="38.2" y="284.7" width="142.9" height="8" rx="2" ry="2" fill="#d3d3d3"/> <rect x="38.2" y="296.5" width="96.9" height="8" rx="2" ry="2" fill="#d3d3d3"/> </g> <rect x="38.2" y="315.5" width="142.9" height="16" rx="2" ry="2" fill="#757575"/> </g> <g> <rect x="69.4" y="179.5" width="80.4" height="8" rx="2" ry="2" fill="#b2b2b2"/> <rect x="57.4" y="208.5" width="104.4" height="8" rx="2" ry="2" fill="#b2b2b2"/> <rect x="84.1" y="192.5" width="51" height="11" rx="2" ry="2" fill="#b2b2b2"/> </g> </g> <rect x="209.7" y="56" width="160.5" height="288" rx="2.5" ry="2.5" fill="#efefef"/> <g> <g> <rect x="218.7" y="88.8" width="142.9" height="80.4" rx="3.7" ry="3.7" fill="#d3d3d3"/> <circle cx="333.1" cy="105.5" r="5.9" fill="#b2b2b2"/> <path d="M361.7,154.7v10.8c0,2-1.6,3.7-3.7,3.7h-135.7c-2,0-3.7-1.6-3.7-3.7v-10.7c0-1.2.6-2.3,1.5-3l37.2-26.8c4.7-3.4,12.4-3.4,17.1,0l41.7,30.1c0,0,.2.1.3.2,2.4,1.6,6.3,1.5,8.6-.2s2.1-4.5-.3-6.2l-3.7-2.7c-2-1.5-2-4.5,0-6l3-2.2c4.7-3.4,12.4-3.4,17.1,0l19,13.7c1,.7,1.5,1.8,1.5,3Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="254.8" y="68.5" width="63.6" height="9" rx="2" ry="2" fill="#b2b2b2"/> <g> <g> <rect x="218.2" y="225.5" width="142.9" height="8" rx="2" ry="2" fill="#d3d3d3"/> <rect x="218.2" y="237.3" width="142.9" height="8" rx="2" ry="2" fill="#d3d3d3"/> <rect x="218.2" y="249.2" width="142.9" height="8" rx="2" ry="2" fill="#d3d3d3"/> <rect x="218.2" y="261" width="142.9" height="8" rx="2" ry="2" fill="#d3d3d3"/> <rect x="218.2" y="272.8" width="142.9" height="8" rx="2" ry="2" fill="#d3d3d3"/> <rect x="218.2" y="284.7" width="142.9" height="8" rx="2" ry="2" fill="#d3d3d3"/> <rect x="218.2" y="296.5" width="96.9" height="8" rx="2" ry="2" fill="#d3d3d3"/> </g> <rect x="218.2" y="315.5" width="142.9" height="16" rx="2" ry="2" fill="#757575"/> </g> <g> <rect x="249.4" y="179.5" width="80.4" height="8" rx="2" ry="2" fill="#b2b2b2"/> <rect x="237.4" y="208.5" width="104.4" height="8" rx="2" ry="2" fill="#b2b2b2"/> <rect x="264.1" y="192.5" width="51" height="11" rx="2" ry="2" fill="#b2b2b2"/> </g> </g> </g> </g> <g id="App_Buttons_Kopie" display="none"> <rect x="30.2" y="150" width="161.8" height="100" rx="9.8" ry="9.8" fill="#757575"/> <rect x="208.2" y="150" width="161.8" height="100" rx="9.8" ry="9.8" fill="#757575"/> <path d="M127.4,201.5c0-4.7,2.1-8.3,6.4-10.9-2.4-3.5-6.1-5.4-10.9-5.8-4.6-.4-9.6,2.7-11.4,2.7s-6.4-2.5-9.9-2.5c-7.2.1-14.8,5.7-14.8,17.2s.6,6.9,1.9,10.5c1.7,4.7,7.6,16.3,13.8,16.1,3.2,0,5.5-2.3,9.8-2.3s6.2,2.3,9.9,2.3c6.3,0,11.7-10.6,13.2-15.4-8.4-4-8-11.6-8-11.9h0ZM120.1,180.4c3.5-4.2,3.2-8,3.1-9.4-3.1.2-6.7,2.1-8.8,4.5-2.3,2.6-3.6,5.7-3.3,9.3,3.4.3,6.4-1.5,9-4.4Z" fill="#efefef"/> <path d="M306,210.6c-1.7,0-3.1-1.4-3.1-3.1s1.4-3.1,3.1-3.1,3.1,1.4,3.1,3.1-1.4,3.1-3.1,3.1M272.3,210.6c-1.7,0-3.1-1.4-3.1-3.1s1.4-3.1,3.1-3.1,3.1,1.4,3.1,3.1-1.4,3.1-3.1,3.1M307.1,192.2l6.1-10.6c.4-.6.2-1.4-.4-1.8-.6-.4-1.4-.2-1.8.4,0,0,0,0,0,0h0l-6.2,10.7c-10-4.5-21.4-4.5-31.4,0l-6.2-10.7c-.3-.6-1.1-.9-1.7-.5s-.9,1.1-.5,1.7c0,0,0,0,0,0h0l6.1,10.6c-10.5,5.7-17.6,16.3-18.7,28.8h73.3c-1-12.5-8.2-23.1-18.7-28.8" fill="#efefef"/> </g> <g id="Button_50_x25__Kopie" display="none"> <g> <rect x="30.2" y="164.5" width="161.8" height="71" rx="9.8" ry="9.8" fill="#757575"/> <rect x="77.8" y="187.9" width="66.6" height="24.2" rx="4.5" ry="4.5" fill="#efefef"/> <rect x="208.3" y="164.5" width="161.8" height="71" rx="9.8" ry="9.8" fill="#757575"/> <rect x="255.9" y="187.9" width="66.6" height="24.2" rx="4.5" ry="4.5" fill="#efefef"/> </g> </g> <g id="Button_33_x25_" display="none"> <g> <rect x="30.2" y="164.5" width="105.8" height="71" rx="9.8" ry="9.8" fill="#757575"/> <rect x="61.3" y="187.9" width="43.6" height="24.2" rx="4.5" ry="4.5" fill="#efefef"/> <rect x="147.2" y="164.5" width="105.8" height="71" rx="9.8" ry="9.8" fill="#757575"/> <rect x="178.3" y="187.9" width="43.6" height="24.2" rx="4.5" ry="4.5" fill="#efefef"/> <rect x="264.2" y="164.5" width="105.8" height="71" rx="9.8" ry="9.8" fill="#757575"/> <rect x="295.3" y="187.9" width="43.6" height="24.2" rx="4.5" ry="4.5" fill="#efefef"/> </g> </g> <g id="Button_100_x25_" display="none"> <g> <rect x="30.3" y="164.5" width="340" height="71" rx="9.8" ry="9.8" fill="#757575"/> <rect x="130.2" y="187.9" width="140" height="24.2" rx="4.5" ry="4.5" fill="#efefef"/> </g> </g> <g id="H4" display="none"> <path d="M102.3,125.4v75.2M102.3,200.7v75.3M102.3,200.7h105.3M207.6,125.4v75.2M207.6,200.7v75.3" fill="none" stroke="#efefef" stroke-linecap="round" stroke-linejoin="round" stroke-width="15"/> <polyline points="261.5 178.5 245.3 234.1 298 234.1 298 178.2 298 275.9" fill="none" stroke="#efefef" stroke-linecap="round" stroke-linejoin="round" stroke-width="15"/> </g> <g id="H3" display="none"> <path d="M289.5,227.1c7.5,10.5,10.2,23.6,7.4,36.1-1.5,7-8,11.5-15.1,12.1-12.2,1.1-24.4.8-36.5-1M289.5,227.1c7.5-10.5,10.2-23.6,7.4-36.1-1.5-7-8-11.5-15.1-12.1-12.2-1.1-24.4-.8-36.5,1M289.5,227.1h-29.1M102.3,125.4v75.2M102.3,200.7v75.3M102.3,200.7h105.3M207.6,125.4v75.2M207.6,200.7v75.3" fill="none" stroke="#efefef" stroke-linecap="round" stroke-linejoin="round" stroke-width="15"/> </g> <g id="H2" display="none"> <path d="M298,275.9h-52.8v-16.2c0-8.6,4.8-16.4,12.5-20.2l29-14.5c6.5-3.3,11.2-9.6,11.2-16.9s-.4-9.9-1.2-14.7c-1.4-8.3-8.4-14.3-16.8-15-11.6-.9-23.3-.5-34.8,1.2M101.9,125.1v75.4M101.9,200.5v75.4M101.9,200.5h105.5M207.5,125.1v75.4M207.5,200.5v75.4" fill="none" stroke="#efefef" stroke-linecap="round" stroke-linejoin="round" stroke-width="15.1"/> </g> <g id="H1" display="none"> <path d="M101.5,124.2v75.7M101.5,200v75.8M101.5,200h106M207.6,124.3v75.7M207.6,200v75.8M253,188.6l22.7-15.1v102.3M275.8,275.7h-22.7M275.8,275.7h22.7" fill="none" stroke="#f7f7f7" stroke-linecap="round" stroke-linejoin="round" stroke-width="15.1"/> </g> <g id="H3_Trennstrich" display="none"> <path d="M289.5,227.1c7.5,10.5,10.2,23.6,7.4,36.1-1.5,7-8,11.5-15.1,12.1-12.2,1.1-24.4.8-36.5-1M289.5,227.1c7.5-10.5,10.2-23.6,7.4-36.1-1.5-7-8-11.5-15.1-12.1-12.2-1.1-24.4-.8-36.5,1M289.5,227.1h-29.1M102.3,125.4v75.2M102.3,200.7v75.3M102.3,200.7h105.3M207.6,125.4v75.2M207.6,200.7v75.3" fill="none" stroke="#efefef" stroke-linecap="round" stroke-linejoin="round" stroke-width="15"/> <g> <path d="M370,204.5v15h-29.1c-4.2,0-7.5-3.4-7.5-7.5s3.4-7.5,7.5-7.5h29.1Z" fill="#efefef"/> <path d="M66.7,212.1c0,4.2-3.4,7.5-7.5,7.5h-29.1v-15h29.1c4.2,0,7.5,3.4,7.5,7.5Z" fill="#efefef"/> </g> </g> <g id="H2_Trennstrich" display="none"> <path d="M298,275.9h-52.8v-16.2c0-8.6,4.8-16.4,12.5-20.2l29-14.5c6.5-3.3,11.2-9.6,11.2-16.9s-.4-9.9-1.2-14.7c-1.4-8.3-8.4-14.3-16.8-15-11.6-.9-23.3-.5-34.8,1.2M101.9,125.1v75.4M101.9,200.5v75.4M101.9,200.5h105.5M207.5,125.1v75.4M207.5,200.5v75.4" fill="none" stroke="#efefef" stroke-linecap="round" stroke-linejoin="round" stroke-width="15.1"/> <g> <path d="M370,204.5v15h-29.1c-4.2,0-7.5-3.4-7.5-7.5s3.4-7.5,7.5-7.5h29.1Z" fill="#efefef"/> <path d="M66.7,212.1c0,4.2-3.4,7.5-7.5,7.5h-29.1v-15h29.1c4.2,0,7.5,3.4,7.5,7.5Z" fill="#efefef"/> </g> </g> <g id="H1_Trennstrich" display="none"> <path d="M101.5,124.2v75.7M101.5,200v75.8M101.5,200h106M207.6,124.3v75.7M207.6,200v75.8M253,188.6l22.7-15.1v102.3M275.8,275.7h-22.7M275.8,275.7h22.7" fill="none" stroke="#f7f7f7" stroke-linecap="round" stroke-linejoin="round" stroke-width="15.1"/> <g> <path d="M370,204.5v15h-29.1c-4.2,0-7.5-3.4-7.5-7.5s3.4-7.5,7.5-7.5h29.1Z" fill="#efefef"/> <path d="M66.7,212.1c0,4.2-3.4,7.5-7.5,7.5h-29.1v-15h29.1c4.2,0,7.5,3.4,7.5,7.5Z" fill="#efefef"/> </g> </g> <g id="Youtube_Kopie" display="none"> <g> <rect x="30.2" y="104.5" width="339.6" height="191" rx="10" ry="10" fill="#757575"/> <path d="M288.2,155.5c-2.1-8-8.4-14.3-16.3-16.4-14.4-3.9-72-3.9-72-3.9,0,0-57.6,0-72,3.9-7.9,2.1-14.2,8.4-16.3,16.4-3.8,14.5-3.8,44.6-3.8,44.6,0,0,0,30.1,3.8,44.6,2.1,8,8.4,14,16.3,16.1,14.4,3.9,72,3.9,72,3.9,0,0,57.6,0,72-3.9,7.9-2.1,14.2-8.2,16.3-16.1,3.8-14.5,3.8-44.6,3.8-44.6,0,0,0-30.1-3.8-44.6h0ZM181.2,227.5v-54.8l48.1,27.4-48.1,27.4h0Z" fill="#f7f7f7"/> </g> </g> <g id="DirectVideo" display="none"> <g id="Direct"> <path d="M-399.2,291.5h-319.6c-5.5,0-10-4.5-10-10V110.5c0-5.5,4.5-10,10-10h319.6c5.5,0,10,4.5,10,10v171c0,5.5-4.5,10-10,10Z" fill="#757575"/> <path d="M-604,144c0-3.4,3.6-5.5,6.6-3.8l91.3,52c3,1.7,3,6,0,7.6l-91.3,52c-2.9,1.7-6.6-.4-6.6-3.8v-104Z" fill="#f7f7f7"/> </g> </g> <g id="Kaltura" display="none"> <path d="M359.8,293.5H40.2c-5.5,0-10-4.5-10-10V112.5c0-5.5,4.5-10,10-10h319.6c5.5,0,10,4.5,10,10v171c0,5.5-4.5,10-10,10Z" fill="#757575"/> <g> <path id="Layer" d="M200,171.5c-2.8,0-5.1-2.8-5.1-5.6v-24.1c0-2.8,2.3-5.6,5.1-5.6s5.1,2.8,5.1,5.6v24.1c0,2.8-2.3,5.6-5.1,5.6Z" fill="#fff"/> <path id="Layer1" data-name="Layer" d="M181.2,179.2c-2,2-5.6,1.6-7.6-.4l-17.1-17.1c-2-2-2.4-5.6-.4-7.6s5.6-1.6,7.6.4l17.1,17.1c2,2,2.4,5.6.4,7.6Z" fill="#fff"/> <path id="Layer2" data-name="Layer" d="M173.5,198c0,2.8-2.8,5.1-5.6,5.1h-24.2c-2.8,0-5.6-2.3-5.6-5.1s2.8-5.1,5.6-5.1h24.2c2.8,0,5.6,2.3,5.
22376,5.1Z" fill="#fff"/> <path id="Layer3" data-name="Layer" d="M181.2,216.7c2,2,1.6,5.6-.4,7.6l-17.1,17.1c-2,2-5.6,2.4-7.6.4-2-2-1.6-5.6.4-7.6l17.1-17.1c2-2,5.6-2.4,7.6-.4h0Z" fill="#fff"/> <path id="Layer4" data-name="Layer" d="M200,224.5c2.8,0,5.1,2.8,5.1,5.6v24.1c0,2.8-2.3,5.6-5.1,5.6s-5.1-2.8-5.1-5.6v-24.1c0-2.8,2.3-5.6,5.1-5.6Z" fill="#fff"/> <path id="Layer5" data-name="Layer" d="M218.8,216.7c2-2,5.6-1.6,7.6.4l17.1,17.1c2,2,2.4,5.6.4,7.6s-5.6,1.6-7.6-.4l-17.1-17.1c-2-2-2.4-5.6-.4-7.6h0Z" fill="#fff"/> <path id="Layer6" data-name="Layer" d="M226.5,198c0-2.8,2.8-5.1,5.6-5.1h24.2c2.8,0,5.6,2.3,5.6,5.1s-2.8,5.1-5.6,5.1h-24.2c-2.8,0-5.6-2.3-5.6-5.1Z" fill="#fff"/> <path id="Layer7" data-name="Layer" d="M218.8,179.2c-2-2-1.6-5.6.4-7.6l17.1-17.1c2-2,5.6-2.4,7.6-.4,2,2,1.6,5.6-.4,7.6l-17.1,17.1c-2,2-5.6,2.4-7.6.4Z" fill="#fff"/> <path id="Layer8" data-name="Layer" d="M200,206.2c-4.5,0-8.2-3.7-8.2-8.2s3.7-8.2,8.2-8.2,8.2,3.7,8.2,8.2-3.7,8.2-8.2,8.2Z" fill="#fff"/> </g> </g> <g id="Vimeo" display="none"> <g> <rect x="30.1" y="104.5" width="339.6" height="191" rx="10" ry="10" fill="#757575"/> <path d="M272.5,162.6c-.7,15.7-11.7,37.2-32.9,64.4-21.9,28.5-40.4,42.7-55.6,42.7s-17.3-8.7-23.9-26c-12.7-46.5-18.1-73.7-28.5-73.7s-5.4,2.6-12.7,7.6l-7.6-9.8c18.6-16.3,36.3-34.4,47.4-35.4,12.6-1.2,20.3,7.4,23.2,25.7,10.3,65.3,14.9,75.2,33.7,45.6,6.7-10.6,10.4-18.7,10.9-24.3,1.7-16.5-12.9-15.4-22.8-11.2,7.9-25.9,23.1-38.5,45.4-37.8,16.5.4,24.3,11.2,23.3,32.2h0Z" fill="#f7f7f7"/> </g> </g> <g id="Titelauswahl_BZW_Kopie" display="none"> <rect x="30" y="30" width="340" height="340" rx="10" ry="10" fill="#757575"/> <rect x="88" y="89" width="220.7" height="222.1" rx="5" ry="5" fill="#f7f7f7"/> <g> <rect x="116.7" y="247.3" width="163.3" height="19.6" rx="2" ry="2" fill="#d3d3d3"/> <rect x="116.7" y="222.5" width="163.3" height="19.6" rx="2" ry="2" fill="#d3d3d3"/> <rect x="116.7" y="197.7" width="163.3" height="19.6" rx="2" ry="2" fill="#d3d3d3"/> <rect x="116.7" y="172.9" width="163.3" height="19.6" rx="2" ry="2" fill="#d3d3d3"/> <rect x="116.7" y="148.1" width="163.3" height="19.6" rx="2" ry="2" fill="#d3d3d3"/> </g> <path d="M303.7,311.2H93c-2.8,0-5-2.2-5-5v-20.8h220.7v20.8c0,2.8-2.2,5-5,5Z" fill="#d3d3d3"/> <rect x="139.4" y="116.6" width="117.8" height="12.2" rx="2" ry="2" fill="#b2b2b2"/> <rect x="117" y="295" width="112" height="7.3" rx="1" ry="1" fill="#b2b2b2"/> <rect x="235" y="294.9" width="44.5" height="7.3" rx="1" ry="1" fill="#b2b2b2"/> </g> <g id="responsiveIframe" display="none"> <g> <rect x="30.2" y="104.5" width="339.6" height="191" rx="10" ry="10" fill="#757575"/> <path d="M182.8,269c-.5,0-1,0-1.5-.2-3.1-.8-4.9-4-4-7.1l34.5-126.5c.8-3.1,4-4.9,7.1-4,3.1.8,4.9,4,4,7.1l-34.5,126.5c-.7,2.6-3,4.2-5.5,4.2ZM240.2,246c-1.5,0-2.9-.6-4.1-1.7-2.2-2.2-2.2-5.9,0-8.1l36.2-36.2-36.2-36.2c-2.2-2.2-2.2-5.9,0-8.1,2.2-2.2,5.9-2.2,8.1,0l40.2,40.2c1.1,1.1,1.7,2.5,1.7,4.1s-.6,3-1.7,4.1l-40.2,40.2c-1.1,1.1-2.6,1.7-4.1,1.7ZM159.8,246c-1.5,0-2.9-.6-4.1-1.7l-40.3-40.2c-1.1-1.1-1.7-2.5-1.7-4.1,0-1.5.6-3,1.7-4.1l40.2-40.2c2.2-2.2,5.9-2.2,8.1,0,2.2,2.2,2.2,5.9,0,8.1l-36.2,36.2,36.2,36.2c2.2,2.2,2.2,5.9,0,8.1-1.1,1.1-2.6,1.7-4.1,1.7Z" fill="#f7f7f7"/> </g> </g> <g id="Hero_-_Textblock" display="none"> <g> <rect x="30" y="81.8" width="340" height="180.5" rx="8.7" ry="8.7" fill="#d3d3d3"/> <circle cx="302.1" cy="121.7" r="13.9" fill="#b2b2b2"/> <path d="M370,223.5v30c0,4.8-3.9,8.7-8.7,8.7H38.7c-4.8,0-8.7-3.9-8.7-8.7v-30l92-66.3c11.2-8.1,29.5-8.1,40.8,0l99.2,71.5c.2.2.5.3.7.5,5.8,3.9,14.9,3.7,20.4-.5s5.1-10.8-.7-14.7l-18.6-13.5,16.9-12.2c11.3-8.1,29.5-8.1,40.8,0l48.7,35.1Z" fill="#b2b2b2" fill-rule="evenodd"/> <g id="Textblock"> <rect x="88.3" y="206.9" width="223.2" height="111.3" rx="7.6" ry="7.6" fill="#efefef"/> <g> <g> <rect x="154.2" y="285" width="91.7" height="5.3" rx="2.4" ry="2.4" fill="#b2b2b2"/> <rect x="169.7" y="296" width="60.7" height="5.3" rx="2.4" ry="2.4" fill="#b2b2b2"/> </g> <g> <rect x="165.8" y="220.5" width="67.7" height="8.9" rx="4" ry="4" fill="#b2b2b2"/> <rect x="137" y="238.4" width="125.4" height="5.3" rx="2.4" ry="2.4" fill="#b2b2b2"/> <rect x="142.4" y="249.5" width="114.5" height="5.3" rx="2.4" ry="2.4" fill="#b2b2b2"/> </g> <path d="M269.4,266.8c1.3,0,2.4,1.1,2.4,2.4v1.4c0,1.3-1.1,2.4-2.4,2.4h-138.9c-1.3,0-2.4-1.1-2.4-2.4v-1.4c0-1.3,1.1-2.4,2.4-2.4h138.9M269.4,262.8h-138.9c-3.5,0-6.4,2.9-6.4,6.4v1.4c0,3.5,2.9,6.4,6.4,6.4h138.9c3.5,0,6.4-2.9,6.4-6.4v-1.4c0-3.5-2.9-6.4-6.4-6.4h0Z" fill="#b2b2b2"/> </g> </g> </g> </g> <g id="Hero_-_4_Inhalte" display="none"> <rect x="30" y="70.3" width="340" height="262.9" rx="10" ry="10" fill="#efefef"/> <g> <g> <rect x="41.2" y="82.8" width="243.9" height="129.5" rx="6.3" ry="6.3" fill="#d3d3d3"/> <circle cx="236.3" cy="111.4" r="10" fill="#b2b2b2"/> <path d="M285,184.5v21.5c0,3.5-2.8,6.3-6.3,6.3H47.4c-3.5,0-6.3-2.8-6.3-6.3v-21.5l66-47.6c8.1-5.8,21.2-5.8,29.2,0l71.1,51.3c.2.1.3.3.5.4,4.2,2.8,10.7,2.6,14.6-.4s3.7-7.7-.5-10.5l-13.4-9.6,12.1-8.8c8.1-5.8,21.2-5.8,29.2,0l34.9,25.2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <g> <rect x="235.7" y="101.3" width="123.2" height="92.5" rx="7.2" ry="7.2" fill="#fff"/> <g> <rect x="250" y="116.2" width="41.4" height="9.8" rx="4.6" ry="4.6" fill="#b2b2b2"/> <rect x="250" y="136.1" width="76.6" height="5.9" rx="2.8" ry="2.8" fill="#b2b2b2"/> <rect x="250" y="148.4" width="70" height="5.9" rx="2.8" ry="2.8" fill="#b2b2b2"/> <path d="M335.3,167.8c1.5,0,2.8,1.2,2.8,2.8v.9c0,1.5-1.2,2.8-2.8,2.8h-77.9c-1.5,0-2.8-1.2-2.8-2.8v-.9c0-1.5,1.2-2.8,2.8-2.8h77.9M335.3,163.1h-77.9c-4.1,0-7.4,3.3-7.4,7.4v.9c0,4.1,3.3,7.4,7.4,7.4h77.9c4.1,0,7.4-3.3,7.4-7.4v-.9c0-4.1-3.3-7.4-7.4-7.4h0Z" fill="#b2b2b2"/> </g> </g> <g> <g> <rect x="41.2" y="292.6" width="49.3" height="7.2" rx="3.6" ry="3.6" fill="#b2b2b2"/> <rect x="41.2" y="307.3" width="91.2" height="4.3" rx="2.2" ry="2.2" fill="#b2b2b2"/> <rect x="41.2" y="316.3" width="83.4" height="4.3" rx="2.2" ry="2.2" fill="#b2b2b2"/> </g> <g> <rect x="154.4" y="292.6" width="49.3" height="7.2" rx="3.6" ry="3.6" fill="#b2b2b2"/> <rect x="154.4" y="307.3" width="91.2" height="4.3" rx="2.2" ry="2.2" fill="#b2b2b2"/> <rect x="154.4" y="316.3" width="83.4" height="4.3" rx="2.2" ry="2.2" fill="#b2b2b2"/> </g> <g> <rect x="267.6" y="292.6" width="49.3" height="7.2" rx="3.6" ry="3.6" fill="#b2b2b2"/> <rect x="267.6" y="307.3" width="91.2" height="4.3" rx="2.2" ry="2.2" fill="#b2b2b2"/> <rect x="267.6" y="316.3" width="83.4" height="4.3" rx="2.2" ry="2.2" fill="#b2b2b2"/> </g> <g> <rect x="41.2" y="235.5" width="91.2" height="48.4" rx="2.3" ry="2.3" fill="#d3d3d3"/> <circle cx="114.2" cy="246.2" r="3.7" fill="#b2b2b2"/> <path d="M132.4,273.5v8.1c0,1.3-1,2.3-2.3,2.3H43.5c-1.3,0-2.3-1-2.3-2.3v-8.1l24.7-17.8c3-2.2,7.9-2.2,10.9,0l26.6,19.2c0,0,.1,0,.2.1,1.6,1.1,4,1,5.5-.1s1.4-2.9-.2-3.9l-5-3.6,4.5-3.3c3-2.2,7.9-2.2,10.9,0l13.1,9.4Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <g> <rect x="154.4" y="235.5" width="91.2" height="48.4" rx="2.3" ry="2.3" fill="#d3d3d3"/> <circle cx="227.4" cy="246.2" r="3.7" fill="#b2b2b2"/> <path d="M245.6,273.5v8.1c0,1.3-1,2.3-2.3,2.3h-86.6c-1.3,0-2.3-1-2.3-2.3v-8.1l24.7-17.8c3-2.2,7.9-2.2,10.9,0l26.6,19.2c0,0,.1,0,.2.1,1.6,1.1,4,1,5.5-.1s1.4-2.9-.2-3.9l-5-3.6,4.5-3.3c3-2.2,7.9-2.2,10.9,0l13.1,9.4Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <g> <rect x="267.6" y="235.5" width="91.2" height="48.4" rx="2.3" ry="2.3" fill="#d3d3d3"/> <circle cx="340.6" cy="246.2" r="3.7" fill="#b2b2b2"/> <path d="M358.8,273.5v8.1c0,1.3-1,2.3-2.3,2.3h-86.6c-1.3,0-2.3-1-2.3-2.3v-8.1l24.7-17.8c3-2.2,7.9-2.2,10.9,0l26.6,19.2c0,0,.1,0,.2.1,1.6,1.1,4,1,5.5-.1s1.4-2.9-.2-3.9l-5-3.6,4.5-3.3c3-2.2,7.9-2.2,10.9,0l13.1,9.4Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> </g> </g> </g> <g id="Hero_-_2_Preisboxen_Kopie_Kopie" display="none"> <rect x="30" y="76.8" width="340" height="180.5" rx="8.7" ry="8.7" fill="#d3d3d3"/> <circle cx="302.1" cy="116.7" r="13.9" fill="#b2b2b2"/> <path d="M370,218.5v30c0,4.8-3.9,8.7-8.7,8.7H38.7c-4.8,0-8.7-3.9-8.7-8.7v-30l92-66.3c11.2-8.1,29.5-8.1,40.8,0l99.2,71.5c.2.2.5.3.7.5,5.8,3.9,14.9,3.7,20.4-.5s5.1-10.8-.7-14.7l-18.6-13.5,16.9-12.2c11.3-8.1,29.5-8.1,40.8,0l48.7,35.1Z" fill="#b2b2b2" fill-rule="evenodd"/> <g> <g id="Textblock1" data-name="Textblock"> <rect x="209.2" y="191" width="146" height="132.2" rx="9.4" ry="9.4" fill="#efefef"/> <g> <g> <rect x="252.2" y="283.7" width="60" height="6.3" rx="3" ry="3" fill="#b2b2b2"/> <rect x="262.4" y="296.9" width="39.7" height="6.3" rx="3" ry="3" fill="#b2b2b2"/> </g> <g> <rect x="259.8" y="207.1" width="44.3" height="10.5" rx="4.9" ry="4.9" fill="#b2b2b2"/> <rect x="241" y="228.5" width="82" height="6.3" rx="3" ry="3" fill="#b2b2b2"/> <rect x="244.5" y="241.6" width="74.9" height="6.3" rx="3" ry="3" fill="#b2b2b2"/> </g> <path d="M323.8,262.4c1.6,0,3,1.3,3,3v1c0,1.6-1.3,3-3,3h-83.4c-1.6,0-3-1.3-3-3v-1c0-1.6,1.3-3,3-3h83.4M323.8,257.4h-83.4c-4.4,0-7.9,3.5-7.9,7.9v1c0,4.4,3.5,7.9,7.9,7.9h83.4c4.4,0,7.9-3.5,7.9-7.9v-1c0-4.4-3.5-7.9-7.9-7.9h0Z" fill="#b2b2b2"/> </g> </g> <g id="Textblock2" data-name="Textblock"> <rect x="44.9" y="191" width="146" height="132.2" rx="9.4" ry="9.4" fill="#efefef"/> <g> <g> <rect x="88" y="283.7" width="60" height="6.3" rx="3" ry="3" fill="#b2b2b2"/> <rect x="98.1" y="296.9" width="39.7" height="6.3" rx="3" ry="3" fill="#b2b2b2"/> </g> <g> <rect x="95.5" y="207.1" width="44.3" height="10.5" rx="4.9" ry="4.9" fill="#b2b2b2"/> <rect x="76.7" y="228.5" width="82" height="6.3" rx="3" ry="3" fill="#b2b2b2"/> <rect x="80.2" y="241.6" width="74.9" height="6.3" rx="3" ry="3" fill="#b2b2b2"/> </g> <path d="M159.6,262.4c1.6,0,3,1.3,3,3v1c0,1.6-1.3,3-3,3h-83.4c-1.6,0-3-1.3-3-3v-1c0-1.6,1.3-3,3-3h83.4M159.6,257.4h-83.4c-4.4,0-7.9,3.5-7.9,7.9v1c0,4.4,3.5,7.9,7.9,7.9h83.4c4.4,0,7.9-3.5,7.9-7.9v-1c0-4.4-3.5-7.9-7.9-7.9h0Z" fill="#b2b2b2"/> </g> </g> </g> </g> <g id="Bild_16:9" display="none"> <rect x="30" y="110" width="339.6" height="191" rx="8.7" ry="8.7" fill="#d3d3d3"/> <circle cx="302.1" cy="149.7" r="13.9" fill="#b2b2b2"/> <path d="M370,266.7v25.6c0,4.8-3.9,8.7-8.7,8.7H38.7c-4.8,0-8.7-3.9-8.7-8.7v-25.5c0-2.8,1.3-5.4,3.6-7.1l88.3-63.7c11.2-8.1,29.5-8.1,40.8,0l99.2,71.5c.2.2.5.3.7.5,5.8,3.9,14.9,3.7,20.4-.5s5.1-10.8-.7-14.7l-8.8-6.4c-4.8-3.5-4.8-10.7,0-14.2l7.1-5.1c11.3-8.1,29.5-8.1,40.8,0l45.1,32.5c2.3,1.6,3.6,4.3,3.6,7.1Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <g id="Bild_4:3" display="none"> <rect x="30" y="72.5" width="340" height="255" rx="8.7" ry="8.7" fill="#d3d3d3"/> <circle cx="279.1" cy="148.7" r="19.3" fill="#b2b2b2"/> <path d="M370,293.7v25.6c0,4.8-3.9,8.7-8.7,8.7H38.7c-4.8,0-8.7-3.9-8.7-8.7v-25.5c0-2.8,1.3-5.4,3.6-7.1l88.3-63.7c11.2-8.1,29.5-8.1,40.8,0l99.2,71.5c.2.2.5.3.7.5,5.8,3.9,14.9,3.7,20.4-.5s5.1-10.8-.7-14.7l-8.8-6.4c-4.8-3.5-4.8-10.7,0-14.2l7.1-5.1c11.3-8.1,29.5-8.1,40.8,0l45.1,32.5c2.3,1.6,3.6,4.3,3.6,7.1Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <g id="Bild_960x150" display="none"> <path d="M370,182.2v35.7c0,.2,0,.3,0,.4h0c-.2,4.6-4,8.3-8.7,8.3H38.7c-4.7,0-8.5-3.7-8.7-8.3h0c0-.2,0-.3,0-.5v-35.7c0-4.8,3.9-8.7,8.7-8.7h322.5c4.8,0,8.7,3.9,8.7,8.7Z" fill="#d3d3d3"/> <path d="M264.6,173.6c0,6.9-5.6,12.4-12.4,12.4s-12.4-5.6-12.4-12.4,0,0,0-.1h24.8s0,0,0,.1Z" fill="#b2b2b2" fill-rule="evenodd"/> <path d="M370,218.3s0,0,0,0c-.2,4.6-4,8.3-8.7,8.3H38.7c-4.7,0-8.5-3.7-8.7-8.3,0,0,0,0,0,0,0-1,1.4-1.9,3.6-2.5l88.3-23.5c11.2-3,29.5-3,40.8,0l99.2,26.4c.2,0,.5.1.7.2,5.8,1.4,14.9,1.4,20.4-.2,5.4-1.6,5.1-4-.7-5.4l-8.8-2.3c-4.8-1.3-4.8-3.9,0-5.2l7.1-1.9c11.3-3,29.5-3,40.8,0l45.1,12c2.2.6,3.5,1.5,3.6,2.5Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <g id="Bild_960x300" display="none"> <path d="M370,155.7v88.6c0,4.6-3.6,8.4-8.1,8.7-.2,0-.4,0-.6,0H38.7c-.2,0-.4,0-.6,0-4.5-.3-8.1-4.1-8.1-8.7v-88.6c0-4.8,3.9-8.7,8.7-8.7h322.6c4.8,0,8.7,3.9,8.7,8.7Z" fill="#d3d3d3"/> <circle cx="260.1" cy="171.7" r="13.9" fill="#b2b2b2"/> <path d="M370,230.5v13.8c0,4.6-3.6,8.4-8.1,8.7-.2,0-.4,0-.6,0H38.7c-.2,0-.4,0-.6,0-4.5-.3-8.1-4.1-8.1-8.7v-13.8c0-1.9,1.3-3.6,3.6-4.7l88.3-41.8c11.2-5.3,29.5-5.3,40.8,0l99.2,47c.2.1.5.2.7.3,5.8,2.6,14.9,2.4,20.4-.3s5.1-7.1-.7-9.7l-8.8-4.2c-4.8-2.3-4.8-7,0-9.3l7.1-3.4c11.3-5.3,29.5-5.3,40.8,0l45.1,21.4c2.3,1.1,3.6,2.8,3.6,4.7Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> </svg>'},s={id:"uspCards",label:"USP Karten",category:{id:"cards",label:"Karten"},attributes:{"data-os-group":"Landingpage Elemente","data-os-page-type":"aboshop"},content:` 2238 <section 2239 data-component-id="37" 2240 data-component-version="1.2.0" 2241 data-component-name="Landingpage Elemente - Karten - USP Karten"
2242 aria-label="Unsere Vorteile" 2243 class="relative w-screen left-1/2 -translate-x-1/2 overflow-hidden py-12 sm:py-16 lg:py-20 mb-8"> 2244 <div data-usp-cards-container="wrap" class="mx-auto px-4 sm:px-6 max-w-[960px]"> 2245 <div data-gjs-type="usp-cards-text-wrapper" class="text-center max-w-3xl mx-auto mb-10 sm:mb-16 animate-fade-in"> 2246 <h2 class="text-3xl md:text-4xl font-bold mb-4">Warum wir die richtige Wahl sind</h2> 2247 <p class="max-w-[65ch] mx-auto">Erfahrungen und Hintergründe, denen Sie vertrauen können.</p> 2248 </div> 2249 <ul class="grid grid-cols-2 lg:grid-cols-4 gap-3 sm:gap-4 mb-12 sm:mb-16 list-none p-0"> 2250 <li data-gjs-type="usp-cards-card" class="flex flex-col sm:flex-row items-center sm:items-start text-center sm:text-left gap-3 sm:gap-4 p-4 sm:p-6 bg-white dark:bg-dark-surface rounded-md border border-slate-200 dark:border-dark-border shadow-sm hover:shadow-md transition-shadow duration-300 animate-slide-up animate-delay-100"> 2251 <div class="w-8 h-8 sm:w-10 sm:h-10 flex items-center justify-center flex-shrink-0 text-brand-primary-500"> 2252 <iconify-icon icon="material-symbols:timer-outline" class="text-2xl" aria-hidden="true"></iconify-icon> 2253 </div> 2254 <div data-gjs-type="usp-cards-text-wrapper" class="flex flex-col"> 2255 <span class="text-title3 font-black">78</span> 2256 <span class="text-xs font-bold uppercase tracking-wider">Jahre LokalJournalismus</span> 2257 </div> 2258 </li> 2259 <li data-gjs-type="usp-cards-card" class="flex flex-col sm:flex-row items-center sm:items-start text-center sm:text-left gap-3 sm:gap-4 p-4 sm:p-6 bg-white dark:bg-dark-surface rounded-md border border-slate-200 dark:border-dark-border shadow-sm hover:shadow-md transition-shadow duration-300 animate-delay-200 animate-slide-up"> 2260 <div class="w-8 h-8 sm:w-10 sm:h-10 flex items-center justify-center flex-shrink-0 text-brand-primary-500"> 2261 <iconify-icon icon="material-symbols:groups-outline" class="text-2xl" aria-hidden="true"></iconify-icon> 2262 </div> 2263 <div data-gjs-type="usp-cards-text-wrapper" class="flex flex-col"> 2264 <span class="text-title3 font-black">225.000</span> 2265 <span class="text-xs font-bold uppercase tracking-wider">Leser täglich</span> 2266 </div> 2267 </li> 2268 <li data-gjs-type="usp-cards-card" class="flex flex-col sm:flex-row items-center sm:items-start text-center sm:text-left gap-3 sm:gap-4 p-4 sm:p-6 bg-white dark:bg-dark-surface rounded-md border border-slate-200 dark:border-dark-border shadow-sm hover:shadow-md transition-shadow duration-300 animate-delay-300 animate-slide-up"> 2269 <div class="w-8 h-8 sm:w-10 sm:h-10 flex items-center justify-center flex-shrink-0 text-brand-primary-500"> 2270 <iconify-icon icon="material-symbols:article-outline" class="text-2xl" aria-hidden="true"></iconify-icon> 2271 </div> 2272 <div data-gjs-type="usp-cards-text-wrapper" class="flex flex-col"> 2273 <span class="text-title3 font-black">100 +</span> 2274 <span class="text-xs font-bold uppercase tracking-wider">exklusive Artikel täglich</span> 2275 </div> 2276 </li> 2277 <li data-gjs-type="usp-cards-card" class="flex flex-col sm:flex-row items-center sm:items-start text-center sm:text-left gap-3 sm:gap-4 p-4 sm:p-6 bg-white dark:bg-dark-surface rounded-md border border-slate-200 dark:border-dark-border shadow-sm hover:shadow-md transition-shadow duration-300 animate-delay-400 animate-slide-up"> 2278 <div class="w-8 h-8 sm:w-10 sm:h-10 flex items-center justify-center flex-shrink-0 text-brand-primary-500"> 2279 <iconify-icon icon="material-symbols:trophy-outline" class="text-2xl" aria-hidden="true"></iconify-icon> 2280 </div> 2281 <div data-gjs-type="usp-cards-text-wrapper" class="flex flex-col">
2282 <span class="text-title3 font-black">12 +</span> 2283 <span class="text-xs font-bold uppercase tracking-wider">Auszeichnungen</span> 2284 </div> 2285 </li> 2286 </ul> 2287 <ul class="grid grid-cols-1 md:grid-cols-3 gap-4 sm:gap-6 list-none p-0"> 2288 <li data-gjs-type="usp-cards-card" class="flex flex-col gap-3 sm:gap-4 p-6 sm:p-8 bg-white dark:bg-dark-surface rounded-md border border-slate-200 dark:border-dark-border shadow-sm hover:shadow-md transition-shadow duration-300 animate-delay-500 animate-slide-up"> 2289 <div class="w-10 h-10 sm:w-12 sm:h-12 flex items-center flex-shrink-0 text-brand-primary-500"> 2290 <iconify-icon icon="material-symbols:local-shipping-outline-rounded" class="text-2xl" aria-hidden="true"></iconify-icon> 2291 </div> 2292 <div data-gjs-type="usp-cards-text-wrapper"> 2293 <h3 class="text-title5 font-bold mb-2">Zuverlässige Lieferung</h3> 2294 <p class="text-body2 leading-relaxed">Pünktlich zum Frühstück oder digital am Vorabend.</p> 2295 </div> 2296 </li> 2297 <li data-gjs-type="usp-cards-card" class="flex flex-col gap-3 sm:gap-4 p-6 sm:p-8 bg-white dark:bg-dark-surface rounded-md border border-slate-200 dark:border-dark-border shadow-sm hover:shadow-md transition-shadow duration-300 animate-delay-600 animate-slide-up"> 2298 <div class="w-10 h-10 sm:w-12 sm:h-12 flex items-center flex-shrink-0 text-brand-primary-500"> 2299 <iconify-icon icon="material-symbols:devices-outline" class="text-2xl" aria-hidden="true"></iconify-icon> 2300 </div> 2301 <div data-gjs-type="usp-cards-text-wrapper"> 2302 <h3 class="text-title5 font-bold mb-2">Digital & Print</h3> 2303 <p class="text-body2 leading-relaxed">Gedruckte Zeitung oder digital über unsere App.</p> 2304 </div> 2305 </li> 2306 <li data-gjs-type="usp-cards-card" class="flex flex-col gap-3 sm:gap-4 p-6 sm:p-8 bg-white dark:bg-dark-surface rounded-md border border-slate-200 dark:border-dark-border shadow-sm hover:shadow-md transition-shadow duration-300 animate-delay-700 animate-slide-up"> 2307 <div class="w-10 h-10 sm:w-12 sm:h-12 flex items-center flex-shrink-0 text-brand-primary-500"> 2308 <iconify-icon icon="material-symbols:workspace-premium-outline" class="text-2xl" aria-hidden="true"></iconify-icon> 2309 </div> 2310 <div data-gjs-type="usp-cards-text-wrapper"> 2311 <h3 class="text-title5 font-bold mb-2">Exklusive digitale Inhalte</h3> 2312 <p class="text-body2 leading-relaxed">Sonderseiten und Zusatzanalysen im E-Paper.</p> 2313 </div> 2314 </li> 2315 </ul> 2316 </div> 2317 </section> 2318 `,media:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><rect width="80" height="50" x="30" y="120" fill="#d3d3d3" rx="4"/><rect width="80" height="50" x="120" y="120" fill="#d3d3d3" rx="4"/><rect width="80" height="50" x="210" y="120" fill="#d3d3d3" rx="4"/><rect width="80" height="50" x="300" y="120" fill="#d3d3d3" rx="4"/><rect width="110" height="80" x="30" y="200" fill="#b2b2b2" rx="4"/><rect width="110" height="80" x="145" y="200" fill="#b2b2b2" rx="4"/><rect width="110" height="80" x="260" y="200" fill="#b2b2b2" rx="4"/></svg>'};a.DomComponents.addType("usp-cards-text-wrapper",{model:{defaults:{tagName:"div",editable:!1}}}),a.DomComponents.addType("usp-cards-card",{model:{defaults:{tagName:"li",editable:!1}}}),a.DomComponents.addType("usp-cards-container",{isComponent(c){return c&&c.getAttribute&&c.getAttribute("data-usp-cards-container")==="wrap"?{type:"usp-cards-container"}:!1}
2318,model:{defaults:{tagName:"div",draggable:!1,copyable:!1,removable:!1,droppable:!0,wide_content:!1},init(){this.on("change:wide_content",this.handleWideContentChange),this.handleWideContentChange()},handleWideContentChange(){const c=!!this.get("wide_content"),d=this.getAttributes()||{},f=String(d.class||"").split(" ").filter(g=>g&&!g.startsWith("max-w-"));f.push(c?"max-w-[1280px]":"max-w-[960px]"),this.setAttributes({...d,class:f.join(" ")})}}}),a.on("load",()=>{var d;(((d=a.getWrapper())==null?void 0:d.find('[data-component-id="37"]'))||[]).forEach(f=>{f.find("div").forEach(g=>{g.get("type")==="text"&&g.set({type:"usp-cards-text-wrapper",editable:!1})}),f.find("li").forEach(g=>{g.get("type")==="text"&&g.set({type:"usp-cards-card",editable:!1})})})}),a.BlockManager.add("uspCards",s),a.BlockManager.add("cardTwoElements",r),a.BlockManager.add("cardThreeElements",t),a.BlockManager.add("cardFourElements",e),a.BlockManager.add("cardThreeContent",n),a.BlockManager.add("cardThreeContentProcess",i),a.BlockManager.add("cardFourContentProcess",o)}const qe={wrapper:"os-comparison",container:"os-comparison-container",heading:"os-comparison-heading",subheading:"os-comparison-subheading",card:"os-comparison-card",scroll:"os-comparison-scroll",table:"os-comparison-table",thead:"os-comparison-thead",tbody:"os-comparison-tbody",plansRow:"os-comparison-plansrow",corner:"os-comparison-corner",planCol:"os-comparison-plancol",planCard:"os-comparison-plancard",popular:"os-comparison-popular",planTitle:"os-comparison-plantitle",planSubtitle:"os-comparison-plansubtitle",priceLine:"os-comparison-priceline",priceNote:"os-comparison-pricenote",featureRow:"os-comparison-featurerow",featureLabel:"os-comparison-featurelabel",cell:"os-comparison-cell",selectRow:"os-comparison-selectrow",selectLabel:"os-comparison-selectlabel",selectCell:"os-comparison-selectcell",selectLink:"os-comparison-selectlink"},c2="os-comparison",k3="Landingpage Elemente - Content - Vergleichstabelle",oI="51",sI="1.1.0",ha={plans:3,rows:6,featuredPlan:2},hg=2,js=4,gg=3,vg=15,S3="max-w-[960px]",lI="max-w-[1280px]",zn={draggable:!1,droppable:!1,copyable:!1,removable:!1,layerable:!1,selectable:!1,hoverable:!1},ga={editable:!0,droppable:!1,draggable:!1,copyable:!1,removable:!1,layerable:!1,selectable:!0,hoverable:!0},cI="os-comparison__selectbtn inline-flex items-center justify-center w-full px-6 py-3 text-base font-bold rounded-full transition-all duration-200 min-h-[44px] active:scale-95 no-underline",Hu={primary:"text-brand-contrast bg-brand-primary-500 hover:bg-brand-primary-700 focus:bg-brand-primary-700 active:bg-brand-primary-300 shadow-md",secondary:"border-2 border-brand-primary-500 text-brand-primary-500 hover:bg-brand-primary-50 focus:bg-brand-primary-50 active:bg-brand-primary-100 dark:hover:bg-neutral-800"},dI="bg-brand-primary-500 text-brand-contrast",cp="border-l-brand-primary-500 border-r-brand-primary-500".split(" "),uI="border-t-brand-primary-500".split(" "),fI="border-b-brand-primary-500".split(" "),dp="before:content-[''] before:absolute before:-left-[2px] before:-top-px before:-bottom-px before:z-10 before:w-[2px] before:bg-brand-primary-500 after:content-[''] after:absolute after:-right-[2px] after:-top-px after:-bottom-px after:z-10 after:w-[2px] after:bg-brand-primary-500".split(" "),mg="border-brand-primary-500".split(" "),d2=[...cp,...uI,...dp],u2=[...cp,...fI,...dp],pI={"data-track-v2-parent":k3,"data-track-v2-parentposition":"Content","data-track-v2-parentlabel":"OS - Vertrieb","data-track-v2-elementtype":"Button","data-track-v2-vendor":"Internal","data-track-v2-linktype":"External","data-track-v2-linkgenre":"","data-track-v2-link":""},hI=(a,r)=>Object.entries({...pI,"data-track-v2-elementposition":a,"data-track-v2-clickaction":r}).map(([t,e])=>`${t}="${e}"`).join(" "),M1='<iconify-icon class="os-comparison__icon text-xl" icon="material-symbols:check-circle-outline-rounded" aria-hidden="true"></iconify-icon>',T3='<iconify-icon class="os-comparison__icon text-xl" icon="material-symbols:cancel-outline-rounded" aria-hidden="true"></iconify-icon>',gI='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><rect x="20" y="60" width="90" height="280" rx="8" fill="#e5e7eb"/><rect x="120" y="60" width="85" height="280" rx="8" fill="#f3f4f6"/><rect x="215" y="60" width="85" height="280" rx="8" fill="#9ca3af"/><rect x="310" y="60" width="70" height="280" rx="8" fill="#f3f4f6"/><rect x="20" y="60" width="360" height="46" rx="8" fill="#6b7280"/><rect x="36" y="140" width="58" height="10" rx="5" fill="#9ca3af"/><rect x="36" y="190" width="58" height="10" rx="5" fill="#9ca3af"/><rect x="36" y="240" width="58" height="10" rx="5" fill="#9ca3af"/><rect x="36" y="290" width="58" height="10" rx="5" fill="#9ca3af"/><circle cx="162" cy="145" r="9" fill="#9ca3af"/><circle cx="257" cy="145" r="9" fill="#ffffff"/><circle cx="345" cy="145" r="9" fill="#9ca3af"/><circle cx="162" cy="195" r="9" fill="#d1d5db"/><circle cx="257" cy="195" r="9" fill="#ffffff"/><circle cx="345" cy="195" r="9" fill="#d1d5db"/><circle cx="162" cy="245" r="9" fill="#9ca3af"/><circle cx="257" cy="245" r="9" fill="#ffffff"/><circle cx="345" cy="245" r="9" fill="#d1d5db"/><circle cx="162" cy="295" r="9" fill="#d1d5db"/><circle cx="257" cy="295" r="9" fill="#ffffff"/><circle cx="345" cy="295" r="9" fill="#9ca3af"/></svg>',yg=(a,r,t)=>
2318Math.min(t,Math.max(r,Number.isFinite(a)?a:r)),bg=(a,r)=>{const t=typeof a=="number"?a:parseInt(String(a??""),10);return Number.isFinite(t)?t:r},Ns=a=>[...a.components().models],vI="Alle Optionen im Vergleich",mI="Vergleichen Sie unsere Optionen und wählen Sie die, die am besten zu Ihnen passt.",yI=["Starter","Standard","Premium","Flex"],bI="Neue Option",xI=["Der Einstieg","Unser Bestseller","Alles inklusive","Maximale Freiheit"],wI="Kurzbeschreibung",_I=["ab","nur","ab","nur"],CI=["9,99 â¬","19,99 â¬","29,99 â¬","39,99 â¬"],kI="pro Monat",SI="Beliebt",TI=["Kernfunktion","Support","Speicherplatz","Nutzeranzahl","Premium-Inhalte","Werbefreiheit","Export-Funktionen","Nutzung auf mehreren Geräten","Vertragslaufzeit","Kündigungsfrist"],OI="Neue Eigenschaft",EI="Auswählen",AI="Mehr erfahren",fl=[{label:EI,theme:"primary",clickAction:"select_plan"},{label:AI,theme:"secondary",clickAction:"learn_more"}],MI=()=>` 2319 <picture class="block mb-4"> 2320 <img src="https://placehold.co/48x48?text=48x48px" alt="" width="56" height="56" 2321 loading="lazy" decoding="async" 2322 data-gjs-type="image" data-gjs-draggable="false" data-gjs-copyable="false" 2323 data-gjs-removable="false" data-gjs-resizable="false" 2324 class="h-14 w-14 object-contain skeleton"> 2325 </picture>`,O3=a=>` 2326 <th class="os-comparison__plancol text-center" scope="col" data-plan="${a}"> 2327 <div class="os-comparison__plancard"> 2328 ${MI()} 2329 <p class="os-comparison__plantitle">${yI[a]||bI}</p> 2330 <p class="os-comparison__plansubtitle">${xI[a]||wI}</p> 2331 <div class="os-comparison__price"><span class="os-comparison__priceprefix">${_I[a]||"ab"}</span> ${CI[a]||"0,00 â¬"}</div> 2332 <p class="os-comparison__pricenote">${kI}</p> 2333 </div> 2334 </th>`,E3=a=>`<td class="os-comparison__cell text-center" data-plan="${a}" data-value="yes">${M1}</td>`,A3=(a,r)=>` 2335 <tr class="os-comparison__featurerow"> 2336 <th class="os-comparison__feature" scope="row">${TI[a]||OI}</th> 2337 ${Array.from({length:r},(t,e)=>E3(e)).join("")} 2338 </tr>`,M3=(a,r)=>{const t=fl[r],e=a*fl.length+r+1,n=r>0?" mt-3":"";return`<a href="#" target="_self" class="${cI}${n} ${Hu[t.theme]}" ${hI(String(e),t.clickAction)}><span class="relative z-10">${t.label}</span></a>`},P3=a=>` 2339 <td class="os-comparison__selectcell text-center" data-plan="${a}"> 2340 ${fl.map((r,t)=>M3(a,t)).join(` 2341 `)} 2342 </td>`,PI=a=>{const r=Array.from({length:a.plans},(n,i)=>O3(i)).join(""),t=Array.from({length:a.rows},(n,i)=>A3(i,a.plans)).join(""),e=Array.from({length:a.plans},(n,i)=>P3(i)).join("");return` 2343<section class="os-comparison relative w-screen left-1/2 -translate-x-1/2 overflow-hidden py-12 sm:py-16 lg:py-20 animate-fade-in" data-component-name="${k3}" data-component-id="${oI}" data-component-version="${sI}"> 2344 <div class="os-comparison__container mx-auto px-4 sm:px-6 ${S3}"> 2345 <div class="text-center max-w-3xl mx-auto mb-10 sm:mb-12 reveal"> 2346 <h2 class="os-comparison__heading font-serif text-3xl sm:text-4xl md:text-5xl font-bold text-slate-900 dark:text-white mb-4">${vI}</h2> 2347 <p class="os-comparison__subheading text-slate-600 dark:text-dark-muted text-base sm:text-lg max-w-[65ch] mx-auto">${mI}</p> 2348 </div> 2349 <div class="os-comparison__card"> 2350 <span class="os-comparison__popular ${dI}">${SI}</span> 2351 <div class="os-comparison__scroll"> 2352 <table class="os-comparison__table"> 2353 <thead class="os-comparison__thead"> 2354 <tr class="os-comparison__plansrow"> 2355 <th class="os-comparison__corner" scope="col"></th> 2356 ${r} 2357 </tr> 2358 </thead> 2359 <tbody class="os-comparison__tbody"> 2360 ${t} 2361 <tr class="os-comparison__selectrow"> 2362 <th class="os-comparison__selectlabel" scope="row"></th> 2363 ${e} 2364 </tr> 2365 </tbody> 2366 </table> 2367 </div> 2368 <ul class="os-comparison__legend" aria-label="Legende"> 2369 <li class="os-comparison__legend-item">
2370 <span class="os-comparison__legend-symbol os-comparison__legend-symbol--included">${M1}</span> 2371 = im Abo enthalten 2372 </li> 2373 <li class="os-comparison__legend-item"> 2374 <span class="os-comparison__legend-symbol os-comparison__legend-symbol--excluded">${T3}</span> 2375 = nicht im Abo enthalten 2376 </li> 2377 </ul> 2378 </div> 2379 </div> 2380</section>`},LI=function(){const a=this.querySelector(".os-comparison__card"),r=this.querySelector(".os-comparison__scroll"),t=this.querySelector(".os-comparison__table");if(!a||!r||!t||a.getAttribute("data-popular-bound")==="1")return;let e=a.querySelector(":scope > .os-comparison__popular");if(!e){const i=t.querySelector(".os-comparison__popular");if(!i)return;e=i.cloneNode(!0),a.append(e)}a.setAttribute("data-popular-bound","1");const n=()=>{const i=t.querySelector(".os-comparison__plancol--featured");if(!i||!e){e&&(e.style.display="none");return}const o=a.getBoundingClientRect(),s=i.getBoundingClientRect();e.style.left=`${s.left-o.left+s.width/2}px`,e.style.display="inline-block"};r.addEventListener("scroll",n,{passive:!0}),window.addEventListener("resize",n),new MutationObserver(n).observe(t,{attributes:!0,subtree:!0,attributeFilter:["class"]}),"ResizeObserver"in window&&new ResizeObserver(n).observe(a),n()},DI=a=>{const r=a.DomComponents,t=a.UndoManager,e=(s,c)=>{var d;return((d=s.classList)==null?void 0:d.contains(c))||!1},n=(s,c)=>{var w,k,S;const d=c.trim(),f=s==="row"?`<table><tbody>${d}</tbody></table>`:`<table><tbody><tr>${d}</tr></tbody></table>`,g=a.Parser.parseHtml(f),m=Array.isArray(g.html)?g.html[0]:g.html,y=(w=m==null?void 0:m.components)==null?void 0:w[0],x=(k=y==null?void 0:y.components)==null?void 0:k[0];return s==="row"?x:(S=x==null?void 0:x.components)==null?void 0:S[0]};let i=0;const o=s=>{i++,i===1&&t.stop();try{s()}finally{i--,i===0&&t.start()}};r.addType(qe.heading,{extend:"text",isComponent:s=>e(s,"os-comparison__heading"),model:{defaults:{name:"Ãberschrift",...ga}}}),r.addType(qe.subheading,{extend:"text",isComponent:s=>e(s,"os-comparison__subheading"),model:{defaults:{name:"Untertitel",...ga}}}),r.addType(qe.popular,{extend:"text",isComponent:s=>e(s,"os-comparison__popular"),model:{defaults:{name:"Hinweis âBeliebtâ",...ga}}}),r.addType(qe.planTitle,{extend:"text",isComponent:s=>e(s,"os-comparison__plantitle"),model:{defaults:{name:"Titel",...ga}}}),r.addType(qe.planSubtitle,{extend:"text",isComponent:s=>e(s,"os-comparison__plansubtitle"),model:{defaults:{name:"Untertitel",...ga}}}),r.addType(qe.priceLine,{extend:"text",isComponent:s=>e(s,"os-comparison__price"),model:{defaults:{name:"Preis",...ga}}}),r.addType(qe.priceNote,{extend:"text",isComponent:s=>e(s,"os-comparison__pricenote"),model:{defaults:{name:"Preishinweis",...ga}}}),r.addType(qe.featureLabel,{extend:"text",isComponent:s=>e(s,"os-comparison__feature"),model:{defaults:{name:"Eigenschaft",...ga}}}),r.addType(qe.cell,{extend:"text",isComponent:s=>e(s,"os-comparison__cell"),model:{defaults:{name:"Wert",...ga,attributes:{"data-value":"yes"},traits:[{type:"select",name:"data-value",label:"Inhalt",options:[{id:"text",name:"Freitext"},{id:"yes",name:"Haken"},{id:"no",name:"Kreuz"}]}]},init(){this.on("change:attributes:data-value",this.renderValue),this.set("editable",this.getAttributes()["data-value"]==="text")},renderValue(){var c;const s=this.getAttributes()["data-value"];this.set("editable",s==="text"),s==="yes"?this.components(M1):s==="no"?this.components(T3):(!this.components().length||((c=this.components().at(0))==null?void 0:c.get("type"))!=="textnode")&&this.components("Wert eintragen")}}}),r.addType(qe.selectLink,{extend:"link",isComponent:s=>e(s,"os-comparison__selectbtn"),model:{defaults:{name:"Button",editable:!0}}}),r.addType(qe.container,{isComponent:s=>e(s,"os-comparison__container"),model:{defaults:{name:"Inhaltsbreite",tagName:"div",...zn,wide_content:!1},init(){this.on("change:wide_content",this.applyContentWidth),this.applyContentWidth()},applyContentWidth(){const s=!!this.get("wide_content"),c=this.getAttributes(),d=String(c.class||"").split(" ").filter(f=>f&&!f.startsWith("max-w-"));d.push(s?lI:S3),this.setAttributes({...c,class:d.join(" ")})}}}),r.addType(qe.card,{isComponent:s=>e(s,"os-comparison__card"),model:{defaults:{name:"Karte",...zn}}}),r.addType(qe.scroll,{isComponent:s=>e(s,"os-comparison__scroll"),model:{defaults:{name:"Scrollbereich",...zn}}}),r.addType(qe.table,{isComponent:s=>e(s,"os-comparison__table"),model:{defaults:{name:"Tabelle",tagName:"table",...zn}}}),r.addType(qe.thead,{isComponent:s=>e(s,"os-comparison__thead"),model:{defaults:{name:"Tabellenkopf",tagName:"thead",...zn}}}),r.addType(qe.tbody,{isComponent:s=>e(s,"os-comparison__tbody"),model:{defaults:{name:"Tabellenkörper",tagName:"tbody",...zn}}}),r.addType(qe.plansRow,{isComponent:s=>e(s,"os-comparison__plansrow"),model:{defaults:{name:"Kopfzeile",tagName:"tr",...zn}}}),r.addType(qe.corner,{isComponent:s=>e(s,"os-comparison__corner"),model:{defaults:{name:"Ecke",tagName:"th",...zn}}}),r.addType(qe.planCol,{isComponent:s=>e(s,"os-comparison__plancol"),model:{defaults:{name:"Spalte",tagName:"th",...zn}}}),r.addType(qe.planCard,{isComponent:s=>e(s,"os-comparison__plancard"),model:{defaults:{name:"Spalten-Kopf",...zn}}}),r.addType(qe.featureRow,{isComponent:s=>e(s,"os-comparison__featurerow"),model:{defaults:{name:"Eigenschaftszeile",tagName:"tr",...zn}}}),r.addType(qe.selectRow,{isComponent:s=>e(s,"os-comparison__selectrow"),model:{defaults:{name:"Auswahl-Zeile",tagName:"tr",...zn}}}),r.addType(qe.selectLabel,{isComponent:s=>e(s,"os-comparison__selectlabel"),model:{defaults:{name:"Ecke",tagName:"th",...zn}}}),r.addType(qe.selectCell,{isComponent:s=>e(s,"os-comparison__selectcell"),model:{defaults:{name:"Auswahl-Zelle",tagName:"td",...zn}}}),r.addType(qe.wrapper,{isComponent:s=>e(s,"os-comparison"),model:{defaults:{name:"Vergleichstabelle",droppable:!1,script:LI,planCount:ha.plans,rowCount:ha.rows,featuredPlan:ha.featuredPlan,traits:[{type:"number",name:"planCount",label:`Spalten (${hg}â${js})`,min:hg,max:js,step:1,changeProp:!0},{type:"number",name:"rowCount",label:`Eigenschaften (${gg}â${vg})`,min:gg,max:vg,step:1,changeProp:!0},{type:"number",name:"featuredPlan",label:`Hervorgehobene Spalte (0 = keine, 1â${js})`,min:0,max:js,step:1,changeProp:!0}]},isSelfUpdating:!1,init(){const s=this.getAttributes(),c=String(s.class||"").split(/\s+/).filter(
2380Boolean);if(c.includes("animate-fade-in")||this.setAttributes({...s,class:[...c,"animate-fade-in"].join(" ")}),this.get("planCount")==null&&this.set("planCount",this.findPlanCols().length||ha.plans,{silent:!0}),this.get("rowCount")==null&&this.set("rowCount",this.findFeatureRows().length||ha.rows,{silent:!0}),this.get("featuredPlan")==null){const d=this.findPlanCols().findIndex(f=>f.getClasses().includes("os-comparison__plancol--featured"));this.set("featuredPlan",d>=0?d+1:ha.featuredPlan,{silent:!0})}this.on("change:planCount",this.syncPlans),this.on("change:rowCount",this.syncRows),this.on("change:featuredPlan",this.applyFeatured),this.ensureSelectButtons(),this.applyFeatured()},findTable(){return this.findType(qe.table)[0]},findPlansRow(){return this.findType(qe.plansRow)[0]},findTbody(){return this.findType(qe.tbody)[0]},findSelectRow(){return this.findType(qe.selectRow)[0]},findPlanCols(){const s=this.findPlansRow();return s?Ns(s).filter(c=>c.get("type")===qe.planCol):[]},findFeatureRows(){const s=this.findTbody();return s?Ns(s).filter(c=>c.get("type")===qe.featureRow):[]},findCellsInRow(s){return Ns(s).filter(c=>c.get("type")===qe.cell)},findSelectCells(){const s=this.findSelectRow();return s?Ns(s).filter(c=>c.get("type")===qe.selectCell):[]}
2380,ensureSelectButtons(){this.findSelectCells().forEach((s,c)=>{const d=Ns(s).filter(f=>f.get("type")===qe.selectLink);for(let f=d.length;f<fl.length;f++)s.append(M3(c,f))}),this.renumberTracking()},renumberTracking(){this.findSelectCells().forEach((s,c)=>{Ns(s).filter(d=>d.get("type")===qe.selectLink).forEach((d,f)=>{const g=fl[f];g&&(d.removeClass(Hu.primary.split(" ")),d.removeClass(Hu.secondary.split(" ")),d.addClass(Hu[g.theme].split(" ")),d.addAttributes({"data-track-v2-elementposition":String(c*fl.length+f+1),"data-track-v2-clickaction":g.clickAction}))})})},syncPlans(){if(this.isSelfUpdating)return;const s=bg(this.get("planCount"),ha.plans),c=yg(s,hg,js);c!==s&&(this.isSelfUpdating=!0,this.set("planCount",c),this.isSelfUpdating=!1);const d=this.findPlansRow(),f=this.findSelectRow();if(!d||!f)return;const g=this.findPlanCols();o(()=>{var m,y;if(c>g.length)for(let x=g.length;x<c;x++)d.append(n("cell",O3(x))),this.findFeatureRows().forEach(w=>w.append(n("cell",E3(x)))),f.append(n("cell",P3(x)));else for(let x=g.length;x>c;x--){(m=this.findPlanCols()[x-1])==null||m.remove(),this.findFeatureRows().forEach(k=>{var A;const S=this.findCellsInRow(k);(A=S[S.length-1])==null||A.remove()});const w=this.findSelectCells();(y=w[w.length-1])==null||y.remove()}this.renumberTracking(),this.applyFeatured()})},syncRows(){if(this.isSelfUpdating)return;const s=bg(this.get("rowCount"),ha.rows),c=yg(s,gg,vg);c!==s&&(this.isSelfUpdating=!0,this.set("rowCount",c),this.isSelfUpdating=!1);const d=this.findTbody(),f=this.findSelectRow();if(!d||!f)return;const g=this.findFeatureRows(),m=this.findPlanCols().length;o(()=>{var y;if(c>g.length)for(let x=g.length;x<c;x++)d.components().add(n("row",A3(x,m)),{at:f.index()});else for(let x=g.length;x>c;x--)(y=this.findFeatureRows()[x-1])==null||y.remove();this.applyFeatured()})},applyFeatured(){if(this.isSelfUpdating)return;const s=this.findPlanCols().length,c=bg(this.get("featuredPlan"),0),d=yg(c,0,Math.max(s,js));d!==c&&(this.isSelfUpdating=!0,this.set("featuredPlan",d),this.isSelfUpdating=!1);const f=d>0&&d<=s?d-1:-1;o(()=>{this.findPlanCols().forEach((g,m)=>{const y=m===f;g.removeClass(mg),y?(g.addClass("os-comparison__plancol--featured"),g.addClass(d2)):(g.removeClass("os-comparison__plancol--featured"),g.removeClass(d2))}),this.findFeatureRows().forEach(g=>{this.findCellsInRow(g).forEach((m,y)=>{const x=y===f;m.removeClass(mg),x?(m.addClass("os-comparison__cell--featured"),m.addClass(cp),m.addClass(dp)):(m.removeClass("os-comparison__cell--featured"),m.removeClass(cp),m.removeClass(dp))})}
2380),this.findSelectCells().forEach((g,m)=>{const y=m===f;g.removeClass(mg),y?(g.addClass("os-comparison__selectcell--featured"),g.addClass(u2)):(g.removeClass("os-comparison__selectcell--featured"),g.removeClass(u2))})})}}}),a.on("load",()=>{var s;(s=a.getWrapper())==null||s.findType(qe.wrapper).forEach(c=>c.applyFeatured())}),a.BlockManager.add(c2,{id:c2,label:"Vergleichstabelle",category:{id:"content",label:"Content"},attributes:{"data-os-group":"Landingpage Elemente","data-os-page-type":"both"},media:gI,content:PI(ha)})};function II(a){a.BlockManager.add("contactPlaceholder",{id:"contactPlaceholder",label:"Kontakt mit Platzhaltern",category:{id:"content",label:"Content"},attributes:{"data-os-group":"Landingpage Elemente","data-os-page-type":"cue"},content:` 2381 <div 2382 data-component-id="28" 2383 data-component-version="1.0.0" 2384 data-component-name="Landingpage Elemente - Content - Kontakt mit Platzhaltern" 2385 class="w-full block p-2 px-4 mb-8 md:mb-8 md:px-2 md:flex md:items-center"> 2386 <div class="w-full h-auto md:w-1/2 md:mr-4"> 2387 <picture> 2388 <source media="(max-width: 639px)" srcset="https://placehold.co/960x720?text=Desktop_960x540px"> 2389 <source media="(min-width: 640px)" srcset="https://placehold.co/960x720?text=Desktop_960x540px"> 2390 <img src="https://placehold.co/960x720?text=Desktop_960x540px" alt="Descriptive text of the image" class="aspect-[16/9] skeleton"> 2391 </picture> 2392 </div> 2393 <div class="w-full mt-4 md:w-1/2 md:mt-0"> 2394 <address class="not-italic"> 2395 <h2 class="text-title4">Kundenservice</h2> 2396 <span class="block text-body2"> 2397 <strong class="block">{longname}</strong> 2398 <div> 2399 {FirmaName}<br/> 2400 {FirmaStrasse}<br/> 2401 {FimaPLZ} {FirmaStadt} 2402 </div> 2403 </span> 2404 <span class="block my-3"> 2405 <span class="block"> 2406 <strong>Tel: {TelKundenservice}</strong> 2407 </span> 2408 </span> 2409 <span class="block"> 2410 <span class="block my-3"> 2411 <span>{ZeitKundenservice}</span><br/> 2412 <span>*Bitte beachten Sie, dass in Abhängigkeit von den Bedingungen Ihres Telefonanbieters Gebühren anfallen können.</span> 2413 </span> 2414 </span> 2415 <span class="block"> 2416 <strong>Email: <a href="mailto:{MailKundenservice}" 2417 class="text-brand-primary-500" 2418 data-track-v2-parentposition="Content" 2419 data-track-v2-parent="Landingpage Elemente - Content - Kontakt mit Platzhaltern" 2420 data-track-v2-parentlabel="OS - Inhalt" 2421 data-track-v2-elementposition="1" 2422 data-track-v2-elementtype="Link" 2423 data-track-v2-vendor="Internal" 2424 data-track-v2-link="mailto:{MailKundenservice}" 2425 data-track-v2-linktype="Mail" 2426 data-track-v2-linkgenre="" 2427 data-track-v2-clickaction="">{MailKundenservice}</a></strong> 2428 </span> 2429 </address> 2430 </div> 2431 </div>`,media:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><path fill="#f7f7f7" d="M30 348.3v-296.6h340v296.6H30z"/><g fill="#b2b2b2"><rect width="108.5" height="8.4" x="230.2" y="162.4"/><rect width="114.1" height="8.4" x="230.2" y="178.3"/><rect width="101.9" height="8.4" x="230.2" y="194.2"/><rect width="118.8" height="8.4" x="230.2" y="211"/><rect width="87.9" height="8.4" x="230.2" y="227.9"/></g><path fill="#b2b2b2" d="M85.7 244.2v-8.7h34.9v-31c0-8.5-3-15.7-8.9-21.7s-13.2-8.9-21.7-8.9-15.7 3-21.7 8.9-8.9 13.1-8.9 21.7v26.6h-4.4c-2.4 0-4.5-.9-6.2-2.6s-2.6-3.8-2.6-6.2v-8.7c0-1.5.4-3 1.1-4.3.8-1.3 1.8-2.4 3.2-3.2l.3-5.8c.6-4.9 2-9.5 4.3-13.7s5.2-7.9 8.6-11 7.4-5.6 11.9-7.3 9.2-2.6 14.1-2.6 9.6.9 14.1 2.6 8.4 4.2 11.9 7.3 6.4 6.7 8.6 11 3.7 8.8 4.4 13.7l.3 5.7c1.4.7 2.5 1.6 3.2 2.9.8 1.3 1.1 2.7 1.1 4.1v10c0 1.5-.4 2.8-1.1 4.1-.8 1.3-1.8 2.3-3.2 2.9v5.3c0 2.4-.9 4.5-2.6 6.2s-3.8 2.6-6.2 2.6H85.7zM77 213.7c-1.2 0-2.3-.4-3.1-1.3s-1.3-1.9-1.3-3.1.4-2.3 1.3-3.1 1.9-1.3 3.1-1.3 2.3.4 3.1 1.3 1.3 1.9 1.3 3.1-.4 2.3-1.3 3.1-1.9 1.3-3.1 1.3zm26.2 0c-1.2 0-2.3-.4-3.1-1.3s-1.3-1.9-1.3-3.1.4-2.3 1.3-3.1 1.9-1.3 3.1-1.3 2.3.4 3.1 1.3 1.3 1.9 1.3 3.1-.4 2.3-1.3 3.1-1.9 1.3-3.1 1.3zM64 206.9c-.5-7.7 1.8-14.3 7-19.9s11.6-8.3 19.3-8.3c6.5 0 12.2 2.1 17.1 6.2s7.9 9.4 8.9 15.8c-6.6-.1-12.7-1.9-18.3-5.3s-9.8-8.2-12.8-14.2c-1.2 5.8-3.6 11-7.4 15.5s-4.6 3.4-10.1 5.6z"/></svg>'})}function jI(a){a.DomComponents.addType("flipdown",{model:{defaults:{name:"FlipDown Timer",attributes:{class:"flipdown-wrapper mb-8","data-component-name":"Landingpage Elemente - Content - Count Down","data-component-id":"33","data-component-version":"1.0.0","data-endtime":"2026-12-31T23:59"},traits:[{type:"datetime-local",name:"data-endtime",label:"Endzeit (Datum & Uhrzeit)"}]},init(){this.on("change:attributes:data-endtime",this.handleTimeChange)},handleTimeChange(){a.trigger("component:update",this)}}}),a.DomComponents.addType("countup",{model:{defaults:{name:"Count Up",attributes:{class:"countup-wrapper mb-8","data-component-name":"Landingpage Elemente - Content - Count Up","data-component-id":"34","data-component-version":"1.0.0"},traits:[{type:"text",name:"data-target",label:"Zielzahl",placeholder:"z.B. 500 oder {anzahl}"},{type:"number",name:"data-duration",label:"Dauer (ms)",min:100,placeholder:"z.B. 2000"}]},init(){const r=this.find(".countup")[0],t=this.getAttributes(),e=t["data-target"]||(r==null?void 0:r.getAttributes()["data-target"]);e&&!t["data-target"]&&this.addAttributes({"data-target":e}),this.on("change:attributes:data-target change:attributes:data-duration",this.handleUpdate)},handleUpdate(){const r=this.find(".countup")[0];if(r){const t=this.getAttributes();r.addAttributes({"data-target":t["data-target"]||"","data-duration":t["data-duration"]||""})}}}}),a.BlockManager.add("flipdown-block",{label:"Count Down",category:{id:"seiten-elemente",label:"Seiten Elemente"},attributes:{"data-os-group":"Landingpage Elemente","data-os-page-type":"cue"},content:` 2432 <div data-gjs-type="flipdown" data-endtime="2026-12-31T23:59" data-os-brand="{min}" class="relative w-screen left-1/2 -translate-x-1/2 overflow-hidden with-lines bg-brand-primary-500 before:bg-brand-primary-500 after:bg-brand-primary-500"> 2433 <div class="container mx-auto max-w-4xl px-4 flex flex-col items-center justify-center py-10"> 2434 <strong class="text-title6 md:text-title5 text-brand-contrast mb-3 text-center">Nur noch kurze Zeit!</strong> 2435 <div class="flipdown flipdown__theme-dark mx-auto mb-4"></div> 2436 <strong class="text-title6 md:text-title5 mb-3 text-brand-contrast text-center">... bis zum Ende des Angebots!</strong> 2437 <div class="flex justify-center flex-wrap gap-2"> 2438 <a href="#" class="no-underline font-medium hover:border-brand-primary-900 rounded border-2 px-6 text-center uppercase transition text-sm leading-[41px] block w-full sm:w-auto border-brand-primary-700 active:border-brand-primary-500 bg-brand-primary-700 hover:bg-brand-primary-900 active:bg-brand-primary-500 text-brand-contrast" 2439 data-track-v2-parentposition="Content" 2440 data-track-v2-parent="Landingpage Elemente - Content - Count Down"
2441 data-track-v2-parentlabel="OS - Inhalt" 2442 data-track-v2-elementposition="1" 2443 data-track-v2-elementtype="Button"> 2444 <span>Button</span> 2445 </a> 2446 <a href="#" class="no-underline font-medium border-white hover:border-brand-primary-300 rounded border-2 px-6 text-center uppercase transition text-sm leading-[41px] block w-full sm:w-auto border-brand-contrast text-brand-contrast" 2447 data-track-v2-parentposition="Content" 2448 data-track-v2-parent="Landingpage Elemente - Content - Count Down" 2449 data-track-v2-parentlabel="OS - Inhalt" 2450 data-track-v2-elementposition="2" 2451 data-track-v2-elementtype="Button"> 2452 <span>Button</span> 2453 </a> 2454 </div> 2455 </div> 2456 </div> 2457 `,media:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><rect width="48.5" height="91.6" x="83.6" y="154.2" fill="#efefef" rx="1.1" ry="1.1"/><rect width="48.5" height="91.6" x="30" y="154.2" fill="#efefef" rx="1.1" ry="1.1"/><rect width="48.5" height="91.6" x="202.6" y="154.2" fill="#efefef" rx="1.1" ry="1.1"/><rect width="48.5" height="91.6" x="148.9" y="154.2" fill="#efefef" rx="1.1" ry="1.1"/><rect width="48.5" height="91.6" x="321.5" y="154.2" fill="#efefef" rx="1.1" ry="1.1"/><rect width="48.5" height="91.6" x="267.8" y="154.2" fill="#efefef" rx="1.1" ry="1.1"/><path fill="#757575" d="M36.4 213c0-6.7 4-11.4 10.5-14.2v-.2c-6-2.8-8.5-7.3-8.5-11.9 0-8.4 7.1-14.1 16.4-14.1s15.4 6.4 15.4 13-2.2 9.3-8.7 12.4v.2c6.6 2.6 10.7 7.3 10.7 13.7 0 9.2-7.9 15.4-18 15.4s-17.8-6.6-17.8-14.4Zm28.5-.3c0-6.4-4.5-9.5-11.7-11.6-6.2 1.8-9.5 5.9-9.5 10.9-.2 5.4 3.8 10.1 10.6 10.1s10.6-4 10.6-9.5Zm-19.7-26.5c0 5.3 4 8.2 10.1 9.8 4.6-1.5 8.1-4.8 8.1-9.6s-2.5-8.6-9-8.6-9.2 3.9-9.2 8.5ZM90 213c0-6.7 4-11.4 10.5-14.2v-.2c-6-2.8-8.5-7.3-8.5-11.9 0-8.4 7.1-14.1 16.4-14.1s15.4 6.4 15.4 13-2.2 9.3-8.7 12.4v.2c6.6 2.6 10.7 7.3 10.7 13.7 0 9.2-7.9 15.4-18 15.4S90 220.7 90 212.9Zm28.5-.3c0-6.4-4.5-9.5-11.7-11.6-6.2 1.8-9.5 5.9-9.5 10.9-.2 5.4 3.8 10.1 10.6 10.1s10.6-4 10.6-9.5Zm-19.7-26.5c0 5.3 4 8.2 10.1 9.8 4.6-1.5 8.1-4.8 8.1-9.6s-2.5-8.6-9-8.6-9.2 3.9-9.2 8.5ZM155.3 213c0-6.7 4-11.4 10.5-14.2v-.2c-6-2.8-8.5-7.3-8.5-11.9 0-8.4 7.1-14.1 16.4-14.1s15.4 6.4 15.4 13-2.2 9.3-8.7 12.4v.2c6.6 2.6 10.7 7.3 10.7 13.7 0 9.2-7.9 15.4-18 15.4s-17.8-6.6-17.8-14.4Zm28.5-.3c0-6.4-4.5-9.5-11.7-11.6-6.2 1.8-9.5 5.9-9.5 10.9-.2 5.4 3.8 10.1 10.6 10.1s10.6-4 10.6-9.5Zm-19.7-26.5c0 5.3 4 8.2 10.1 9.8 4.6-1.5 8.1-4.8 8.1-9.6s-2.5-8.6-9-8.6-9.2 3.9-9.2 8.5ZM208.9 213c0-6.7 4-11.4 10.5-14.2v-.2c-6-2.8-8.5-7.3-8.5-11.9 0-8.4 7.1-14.1 16.4-14.1s15.4 6.4 15.4 13-2.2 9.3-8.7 12.4v.2c6.6 2.6 10.7 7.3 10.7 13.7 0 9.2-7.9 15.4-18 15.4s-17.8-6.6-17.8-14.4Zm28.6-.3c0-6.4-4.5-9.5-11.7-11.6-6.2 1.8-9.5 5.9-9.5 10.9-.2 5.4 3.8 10.1 10.6 10.1s10.6-4 10.6-9.5Zm-19.8-26.5c0 5.3 4 8.2 10.1 9.8 4.6-1.5 8.1-4.8 8.1-9.6s-2.5-8.6-9-8.6-9.2 3.9-9.2 8.5ZM274.2 213c0-6.7 4-11.4 10.5-14.2v-.2c-6-2.8-8.5-7.3-8.5-11.9 0-8.4 7.1-14.1 16.4-14.1s15.4 6.4 15.4 13-2.2 9.3-8.7 12.4v.2c6.6 2.6 10.7 7.3 10.7 13.7 0 9.2-7.9 15.4-18 15.4s-17.8-6.6-17.8-14.4Zm28.5-.3c0-6.4-4.5-9.5-11.7-11.6-6.2 1.8-9.5 5.9-9.5 10.9-.2 5.4 3.8 10.1 10.6 10.1s10.6-4 10.6-9.5ZM283 186.2c0 5.3 4 8.2 10.1 9.8 4.6-1.5 8.1-4.8 8.1-9.6s-2.5-8.6-9-8.6-9.2 3.9-9.2 8.5ZM327.8 213c0-6.7 4-11.4 10.5-14.2v-.2c-6-2.8-8.5-7.3-8.5-11.9 0-8.4 7.1-14.1 16.4-14.1s15.4 6.4 15.4 13-2.2 9.3-8.7 12.4v.2c6.6 2.6 10.7 7.3 10.7 13.7 0 9.2-7.9 15.4-18 15.4s-17.8-6.6-17.8-14.4Zm28.6-.3c0-6.4-4.5-9.5-11.7-11.6-6.2 1.8-9.5 5.9-9.5 10.9-.2 5.4 3.8 10.1 10.6 10.1s10.6-4 10.6-9.5Zm-19.7-26.5c0 5.3 4 8.2 10.1 9.8 4.6-1.5 8.1-4.8 8.1-9.6s-2.5-8.6-9-8.6-9.2 3.9-9.2 8.5Z"/></svg>'}),a.BlockManager.add("countup-block",{label:"Count Up",category:{id:"seiten-elemente",label:"Seiten Elemente"},attributes:{"data-os-group":"Landingpage Elemente","data-os-page-type":"both"},content:` 2458 <div data-gjs-type="countup" data-os-brand="{min}" class="relative w-screen left-1/2 -translate-x-1/2 overflow-hidden with-lines bg-brand-primary-500 before:bg-brand-primary-500 after:bg-brand-primary-500"> 2459 <div class="container mx-auto max-w-4xl px-4 flex flex-col items-center justify-center py-10"> 2460 <strong class="text-title6 md:text-title5 text-brand-contrast mb-3 text-center">Wir haben bereits ...</strong> 2461 <div class="countup flex justify-center gap-1 mb-3 w-full" data-target="500" data-duration="2000">
2462 <span class="inline-block px-2 py-1 rounded bg-brand-primary-700 text-white shadow font-bold text-5xl md:text-7xl">5</span> 2463 <span class="inline-block px-2 py-1 rounded bg-brand-primary-700 text-white shadow font-bold text-5xl md:text-7xl">0</span> 2464 <span class="inline-block px-2 py-1 rounded bg-brand-primary-700 text-white shadow font-bold text-5xl md:text-7xl">0</span> 2465 </div> 2466 <strong class="text-title6 md:text-title5 mb-3 text-brand-contrast text-center">... Bäume gepflanzt!</strong> 2467 <div class="flex justify-center flex-wrap gap-2"> 2468 <a href="#" class="no-underline font-medium hover:border-brand-primary-900 rounded border-2 px-6 text-center uppercase transition text-sm leading-[41px] block w-full sm:w-auto border-brand-primary-700 active:border-brand-primary-500 bg-brand-primary-700 hover:bg-brand-primary-900 active:bg-brand-primary-500 text-brand-contrast" 2469 data-track-v2-parentposition="Content" 2470 data-track-v2-parent="Landingpage Elemente - Content - Count Up" 2471 data-track-v2-parentlabel="OS - Inhalt" 2472 data-track-v2-elementposition="1" 2473 data-track-v2-elementtype="Button"> 2474 <span>Button</span> 2475 </a> 2476 <a href="#" class="no-underline font-medium border-white hover:border-brand-primary-300 rounded border-2 px-6 text-center uppercase transition text-sm leading-[41px] block w-full sm:w-auto border-brand-contrast text-brand-contrast" 2477 data-track-v2-parentposition="Content" 2478 data-track-v2-parent="Landingpage Elemente - Content - Count Up" 2479 data-track-v2-parentlabel="OS - Inhalt" 2480 data-track-v2-elementposition="2" 2481 data-track-v2-elementtype="Button"> 2482 <span>Button</span> 2483 </a> 2484 </div> 2485 </div> 2486 </div> 2487 `,media:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><path fill="#9b9b9b" d="M0 102.7h400v194.6H0z"/><rect width="48.5" height="91.6" x="68.5" y="151.2" fill="#757575" rx="1.1" ry="1.1"/><rect width="48.5" height="91.6" x="175.7" y="151.2" fill="#757575" rx="1.1" ry="1.1"/><rect width="48.5" height="91.6" x="122.1" y="151.2" fill="#757575" rx="1.1" ry="1.1"/><rect width="48.5" height="91.6" x="283" y="151.2" fill="#757575" rx="1.1" ry="1.1"/><rect width="48.5" height="91.6" x="229.4" y="151.2" fill="#757575" rx="1.1" ry="1.1"/><path fill="#fff" d="M74.8 210c0-6.7 4-11.4 10.5-14.2v-.2c-6-2.8-8.5-7.3-8.5-11.9 0-8.4 7.1-14.1 16.4-14.1s15.4 6.4 15.4 13-2.2 9.3-8.7 12.4v.2c6.6 2.6 10.7 7.3 10.7 13.7 0 9.2-7.9 15.4-18 15.4s-17.8-6.6-17.8-14.4Zm28.6-.3c0-6.4-4.5-9.5-11.7-11.6-6.2 1.8-9.5 5.9-9.5 10.9-.2 5.4 3.8 10.1 10.6 10.1s10.6-4 10.6-9.5Zm-19.8-26.5c0 5.3 4 8.2 10.1 9.8 4.6-1.5 8.1-4.8 8.1-9.6s-2.5-8.6-9-8.6-9.2 3.9-9.2 8.5ZM128.5 210c0-6.7 4-11.4 10.5-14.2v-.2c-6-2.8-8.5-7.3-8.5-11.9 0-8.4 7.1-14.1 16.4-14.1s15.4 6.4 15.4 13-2.2 9.3-8.7 12.4v.2c6.6 2.6 10.7 7.3 10.7 13.7 0 9.2-7.9 15.4-18 15.4s-17.8-6.6-17.8-14.4Zm28.5-.3c0-6.4-4.5-9.5-11.7-11.6-6.2 1.8-9.5 5.9-9.5 10.9-.2 5.4 3.8 10.1 10.6 10.1s10.6-4 10.6-9.5Zm-19.7-26.5c0 5.3 4 8.2 10.1 9.8 4.6-1.5 8.1-4.8 8.1-9.6s-2.5-8.6-9-8.6-9.2 3.9-9.2 8.5ZM182.1 210c0-6.7 4-11.4 10.5-14.2v-.2c-6-2.8-8.5-7.3-8.5-11.9 0-8.4 7.1-14.1 16.4-14.1s15.4 6.4 15.4 13-2.2 9.3-8.7 12.4v.2c6.6 2.6 10.7 7.3 10.7 13.7 0 9.2-7.9 15.4-18 15.4s-17.8-6.6-17.8-14.4Zm28.5-.3c0-6.4-4.5-9.5-11.7-11.6-6.2 1.8-9.5 5.9-9.5 10.9-.2 5.4 3.8 10.1 10.6 10.1s10.6-4 10.6-9.5Zm-19.7-26.5c0 5.3 4 8.2 10.1 9.8 4.6-1.5 8.1-4.8 8.1-9.6s-2.5-8.6-9-8.6-9.2 3.9-9.2 8.5ZM235.7 210c0-6.7 4-11.4 10.5-14.2v-.2c-6-2.8-8.5-7.3-8.5-11.9 0-8.4 7.1-14.1 16.4-14.1s15.4 6.4 15.4 13-2.2 9.3-8.7 12.4v.2c6.6 2.6 10.7 7.3 10.7 13.7 0 9.2-7.9 15.4-18 15.4s-17.8-6.6-17.8-14.4Zm28.6-.3c0-6.4-4.5-9.5-11.7-11.6-6.2 1.8-9.5 5.9-9.5 10.9-.2 5.4 3.8 10.1 10.6 10.1s10.6-4 10.6-9.5Zm-19.7-26.5c0 5.3 4 8.2 10.1 9.8 4.6-1.5 8.1-4.8 8.1-9.6s-2.5-8.6-9-8.6-9.2 3.9-9.2 8.5ZM289.4 210c0-6.7 4-11.4 10.5-14.2v-.2c-6-2.8-8.5-7.3-8.5-11.9 0-8.4 7.1-14.1 16.4-14.1s15.4 6.4 15.4 13-2.2 9.3-8.7 12.4v.2c6.6 2.6 10.7 7.3 10.7 13.7 0 9.2-7.9 15.4-18 15.4s-17.8-6.6-17.8-14.4Zm28.5-.3c0-6.4-4.5-9.5-11.7-11.6-6.2 1.8-9.5 5.9-9.5 10.9-.2 5.4 3.8 10.1 10.6 10.1s10.6-4 10.6-9.5Zm-19.7-26.5c0 5.3 4 8.2 10.1 9.8 4.6-1.5 8.1-4.8 8.1-9.6s-2.5-8.6-9-8.6-9.2 3.9-9.2 8.5Z"/><g fill="#fff"><rect width="146.6" height="9" x="126.7" y="124.7" rx="1.5" ry="1.5"/><rect width="87" height="16" x="156.5" y="259.3" rx="1" ry="1"/></g></svg>'})}const kv="divider",Rs=(a,r,t=!0)=>({type:kv,name:a,text:r,line:t,changeProp:!0});function NI(a){var t;const r=a.TraitManager;!r||(t=r.getType)!=null&&t.call(r,kv)||r.addType(kv,{noLabel:!0,createInput({trait:e}){const n=e.get("line")!==!1,i=document.createElement("div");return i.setAttribute("role","heading"),i.setAttribute("aria-level","3"),i.textContent=String(e.get("text")??""),i.style.cssText=["width:100%","box-sizing:border-box",`margin:${n?"10px 0 2px":"0 0 2px"}`,`padding-top:${n?"12px":"0"}`,`border-top:${n?"1px solid color-mix(in srgb, currentColor 22%, transparent)":"0"}`,"font-size:11px","font-weight:600","letter-spacing:0.06em","text-transform:uppercase","opacity:0.8"].join(";"),i},onUpdate(){}})}function RI(){const a=this;if(a.__osFwsInit||a.querySelector("[data-os-fws-editor]"))return;const r=()=>{const t=window.Swiper;if(a.__osFwsInit||typeof t!="function")return;const e=a.querySelector('[data-os-fws="swiper"]');if(!e)return;const i=e.querySelectorAll('[data-os-fws="slide"]').length;if(!i)return;a.__osFwsInit=!0;const o=window.matchMedia("(prefers-reduced-motion: reduce)").matches,s=Number(a.getAttribute("data-os-fws-autoplay"))||0,c=s>0&&i>1&&!o,d=new t(e,{slidesPerView:1,spaceBetween:0,speed:o?0:600,loop:i>=3,rewind:i<3,grabCursor:!0,keyboard:{enabled:!0,onlyInViewport:!0},a11y:{enabled:!0,containerRoleDescriptionMessage:"Karussell",itemRoleDescriptionMessage:"Slide",slideLabelMessage:"{{index}} von {{slidesLength}}",prevSlideMessage:"Vorherige Slide",nextSlideMessage:"Nächste Slide"},autoplay:c?{delay:s,pauseOnMouseEnter:!0,disableOnInteraction:!1}:!1}),f=a.querySelector('[data-os-fws="prev"]'),g=a.querySelector('[data-os-fws="next"]');f&&f.addEventListener("click",()=>d.slidePrev()),g&&g.addEventListener("click",()=>d.slideNext());const m=["block","h-2","rounded-full","transition-all","duration-300"],y=["w-2","bg-slate-300","dark:bg-dark-border"],x=["w-6","bg-slate-900","dark:bg-white"],w=["inline-flex","h-6","min-w-[24px]","items-center","justify-center","rounded-full","focus-visible:outline-none","focus-visible:ring-2","focus-visible:ring-slate-900","dark:focus-visible:ring-white"],k=a.querySelector('[data-os-fws="pagination"]'),S=[];if(k){for(;k.firstChild;)k.removeChild(k.firstChild);for(let L=0;L<i;
2487L++){const D=document.createElement("button");D.type="button",w.forEach(j=>D.classList.add(j)),D.setAttribute("aria-label","Slide "+(L+1)+" von "+i+" anzeigen");const W=document.createElement("span");W.setAttribute("aria-hidden","true"),m.concat(y).forEach(j=>W.classList.add(j)),D.appendChild(W),D.addEventListener("click",()=>d.slideToLoop(L)),k.appendChild(D),S.push(D)}}const A=()=>{const L=d.realIndex;S.forEach((D,W)=>{const j=W===L,et=D.firstElementChild;j?D.setAttribute("aria-current","true"):D.removeAttribute("aria-current"),et&&((j?y:x).forEach(z=>et.classList.remove(z)),(j?x:y).forEach(z=>et.classList.add(z)))})};d.on("slideChange",A),A(),c&&d.autoplay&&(a.addEventListener("focusin",()=>d.autoplay.stop()),a.addEventListener("focusout",L=>{a.contains(L.relatedTarget)||d.autoplay.start()})),a.setAttribute("data-os-fws-ready","true")};window.Swiper?r():window.addEventListener("load",r,{once:!0})}function BI(a){var Pt,qt;const{DomComponents:r,BlockManager:t}=a;NI(a);const e="44",n="6.0.0",i="Landingpage Elemente - Slider - Full Width",o=2,s=7,c=3,d="data-os-fws-overlay",f="data-os-fws-shadow",g="data-os-fws-autoplay",m="data-os-fws-badge",y="data-os-fws-editor",x="relative left-1/2 w-screen -translate-x-1/2 overflow-hidden py-12 sm:py-16",w="mx-auto max-w-[960px] px-4 sm:px-6",k="swiper relative w-full overflow-hidden !p-0",S="swiper-wrapper relative flex w-full",A=["!h-[480px]","md:!h-[440px]","lg:!h-[520px]","xl:!h-[600px]"],L=["!w-full","!shrink-0","overflow-hidden","h-[480px]","md:h-[440px]","lg:h-[520px]","xl:h-[600px]","md:h-auto","md:aspect-[12/5]","md:max-h-[800px]"],D={attributes:{class:"fa fa-arrow-up",title:"Slider auswählen"},command:"os-fws:select-wrap"},W={attributes:{class:"fa fa-chevron-left",title:"Slide nach vorne"},command:"os-fws:slide-prev"},j={attributes:{class:"fa fa-chevron-right",title:"Slide nach hinten"},command:"os-fws:slide-next"},et={attributes:{class:"fa fa-image",title:"Bild austauschen"},command:"os-fws:slide-image"},z=`swiper-slide group relative block w-full shrink-0 !overflow-hidden ${A.join(" ")} bg-slate-900 text-white !no-underline hover:!no-underline focus:!no-underline focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-inset focus-visible:ring-white`,B="pointer-events-none relative z-10 mx-auto flex h-full max-w-[960px] flex-col items-start justify-end px-4 pb-10 sm:px-6 sm:pb-12 md:pb-14",X="pointer-events-none max-w-2xl border-l-4 border-brand-primary-500 pl-4",Z="pointer-events-auto",F="drop-shadow-md",st="pointer-events-none absolute z-[1]",q={bottom:"inset-x-0 bottom-0 h-2/3 bg-gradient-to-t from-slate-900/80 via-slate-900/30 to-transparent",left:"inset-x-0 bottom-0 h-2/3 bg-gradient-to-t from-slate-900/80 via-slate-900/30 to-transparent md:inset-y-0 md:left-0 md:right-auto md:h-full md:w-2/3 md:bg-gradient-to-r md:from-slate-900/75 md:via-slate-900/25",none:"hidden"},Ct=`os-badge ${Z} mb-3 w-fit rounded px-3 py-1 text-xs font-bold uppercase tracking-wider`,_={solid:"bg-brand-primary-500 text-brand-contrast",outline:"bg-white border border-brand-primary-500 text-brand-primary-500"},Q=`${Z} mb-0 text-2xl font-bold leading-tight text-white md:text-3xl`,J=`${Z} mb-0 mt-2 max-w-[60ch] text-base leading-relaxed text-white/90 md:text-lg`,gt="inline-flex h-11 w-11 shrink-0 items-center justify-center rounded-full border border-slate-300 bg-white text-slate-900 transition-colors hover:bg-slate-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-900 dark:border-dark-border dark:bg-dark-surface dark:text-white dark:hover:bg-neutral-800 dark:focus-visible:ring-white",St="https://placehold.co/768x256?text=768x256px",wt="https://placehold.co/1920x640?text=1920x640px",mt="1440px",It="(min-width: 1800px) 100vw, (min-width: 1280px) 1800px, (min-width: 1024px) 1560px, 1320px",Bt=[`[${y}="hidden"]{display:none!important}`,'[data-os-fws="slide"]{width:100%!important;flex-shrink:0!important}'].join(""),se=[{id:"_self",label:"Gleiches Fenster"},{id:"_blank",label:"Neues Fenster"}],ue=[{id:"solid",label:"Gefüllt (Standard)"},{id:"outline",label:"Outline"}],ne={linkHref:"href",linkTarget:"target",linkTitle:"title"},kt={draggable:!1,droppable:!1,copyable:!1,removable:!1},Ot={...kt,selectable:!1,hoverable:!1,highlightable:!1},Mt=ot=>
2487String(ot||"").split(/\s+/).filter(Boolean),zt=(ot,xt,Nt)=>{if(!ot)return;const ee=ot.getAttributes(),ye=new Set(xt),Ie=Mt(ee.class),Ke=Ie.filter(Fe=>!ye.has(Fe));Nt.forEach(Fe=>{Fe&&!Ke.includes(Fe)&&Ke.push(Fe)}),Ke.join(" ")!==Ie.join(" ")&&ot.setAttributes({...ee,class:Ke.join(" ")})},Kt=(ot,xt)=>{if(!ot)return;const Nt={...ot.getAttributes()};let ee=!1;Object.entries(xt).forEach(([ye,Ie])=>{Ie===null?ye in Nt&&(delete Nt[ye],ee=!0):Nt[ye]!==Ie&&(Nt[ye]=Ie,ee=!0)}),ee&&ot.setAttributes(Nt)},le=(ot,xt,Nt)=>!!ot&&typeof ot.getAttribute=="function"&&ot.getAttribute(xt)===Nt,Zt=(ot,xt)=>{for(const Nt of ot.components().models){if(xt(Nt))return Nt;const ee=Zt(Nt,xt);if(ee)return ee}},ve=ot=>xt=>xt.get("type")===ot,xe=ve("os-fws-slide"),ce=(ot,xt,Nt)=>Math.min(Nt,Math.max(xt,Number.isFinite(ot)?ot:xt)),P=ot=>Zt(ot,ve("os-fws-track")),H=ot=>{const xt=P(ot);return xt?xt.components().models.filter(xe):[]},Y=ot=>{let xt=ot;for(;xt&&xt.get("type")!=="os-fws";)xt=xt.parent();return xt},ct=ot=>{let xt=ot;for(;xt&&!xe(xt);)xt=xt.parent();return xt},_t=ot=>{const xt=ct(ot);if(!xt)return;const Nt=xt.getAttributes();ot.set({linkHref:String(Nt.href??""),linkTarget:String(Nt.target??"_self"),linkTitle:String(Nt.title??"")})},K=ot=>{const xt=ct(ot);xt&&ot.set("badgeVariant",ut(xt.getAttributes()[m]))},yt=ot=>ot==="left"||ot==="none"?ot:"bottom",ut=ot=>ot==="outline"?"outline":"solid",de=Object.values(q).flatMap(Mt),Ae=Object.values(_).flatMap(Mt),Te=ot=>{var ee,ye;const xt=ot,Nt=xt&&(typeof xt.getView=="function"?xt.getView():xt.view);(ee=Nt==null?void 0:Nt.updateAttributes)==null||ee.call(Nt),(ye=Nt==null?void 0:Nt.updateClasses)==null||ye.call(Nt)},Re=[{badgeLabel:"Inkl. Verlosung",badgeVariant:"solid",headline:"Headline der ersten Slide",subheadline:"Subheadline mit einem kurzen, konkreten Nutzenversprechen."},{badgeLabel:"Neu",badgeVariant:"outline",headline:"Headline der zweiten Slide",subheadline:"Subheadline mit einem kurzen, konkreten Nutzenversprechen."},{badgeLabel:"Aktion",badgeVariant:"solid",headline:"Headline der dritten Slide",subheadline:"Subheadline mit einem kurzen, konkreten Nutzenversprechen."}],U=ot=>Re[ot-1]||{badgeLabel:"Badge",badgeVariant:"solid",headline:`Headline Slide ${ot}`,subheadline:"Subheadline mit einem kurzen, konkreten Nutzenversprechen."},tt=ot=>{const xt=U(ot);return{type:"os-fws-slide",attributes:{"data-os-fws":"slide",[m]:xt.badgeVariant,class:z,href:"#",target:"_self","data-track-v2-parentposition":"Content","data-track-v2-parent":i,"data-track-v2-parentlabel":"OS - Inhalt","data-track-v2-elementtype":"Link","data-track-v2-elementposition":String(ot),"data-track-v2-vendor":"Internal","data-track-v2-link":"","data-track-v2-linktype":"External","data-track-v2-linkgenre":"","data-track-v2-clickaction":""},components:[{type:"os-fws-image",components:[{tagName:"source",...Ot,attributes:{media:"(max-width: 767px)",srcset:`${St} 768w, ${wt} 1920w`,sizes:mt}},{tagName:"source",...Ot,attributes:{media:"(min-width: 768px)",srcset:`${St} 768w, ${wt} 1920w`,sizes:It}},{type:"image",...Ot,attributes:{src:wt,alt:"",loading:ot===1?"eager":"lazy",class:"h-full w-full object-cover object-center transition-transform duration-700 ease-in-out motion-safe:group-hover:scale-[1.03]"}}]},{type:"os-fws-overlay",attributes:{"data-os-fws":"overlay",class:`${st} ${q.bottom}`}},{type:"os-fws-container",attributes:{"data-os-fws-container":"slide",class:`${B} ${F}`},components:[{type:"os-fws-badge",attributes:{"data-os-fws":"badge",class:`${Ct} ${_[xt.badgeVariant]}`},content:xt.badgeLabel},{type:"os-fws-copy",attributes:{"data-os-fws":"copy",class:X},components:[{type:"os-fws-headline",attributes:{"data-os-fws":"headline",class:Q},content:xt.headline},{type:"os-fws-subheadline",attributes:{"data-os-fws":"subheadline",class:J},content:xt.subheadline}]}]}]}},$=ot=>{const xt=Zt(ot,ve("os-fws-badge"));if(!xt)return;const Nt=ut(ot.getAttributes()[m]);zt(xt,Ae,[...Mt(Ct),...Mt(_[Nt])])},pt=ot=>{zt(ot,L,Mt(z)),zt(Zt(ot,Nt=>Nt.getAttributes()["data-os-fws-container"]==="slide"),[],["pointer-events-none"]),zt(Zt(ot,ve("os-fws-copy")),[],["pointer-events-none"]),[ve("os-fws-badge"),ve("os-fws-headline"),ve("os-fws-subheadline")].forEac
2487h(Nt=>zt(Zt(ot,Nt),[],[Z]));const xt=Zt(ot,ve("os-fws-image"));xt==null||xt.components().models.forEach(Nt=>{if(Nt.get("tagName")!=="source")return;const ee=String(Nt.getAttributes().media||"");Kt(Nt,{sizes:ee.includes("max-width")?mt:It})})},Lt=(ot,xt)=>{const Nt=(ee,ye)=>{const Ie=ot.getTrait(ee);!Ie||(Ie.get("options")||[]).length===xt||ot.updateTrait(ee,{options:Array.from({length:xt},(Fe,Pr)=>({id:String(Pr+1),label:ye(Pr+1)}))})};Nt("editorSlide",ee=>`Slide ${ee} von ${xt}`),Nt("slidePosition",ee=>`Position ${ee}`)},Rt=(ot,xt)=>[D,...ot>0?[W]:[],...ot<xt-1?[j]:[],et],Jt=ot=>Array.isArray(ot)?ot.map(xt=>xt.command).join("|"):"",re=ot=>{const xt=H(ot),Nt=xt.length;if(!Nt)return;const ee=ot.getAttributes(),ye=ce(parseInt(String(ot.get("editorSlide")),10),1,Nt)-1,Ie=yt(ee[d]),Ke=ee[f]!=="off";zt(Zt(ot,ve("os-fws-stage")),[],Mt(k)),ot._syncing=!0,ot.set({editorSlide:String(ye+1),slidePosition:String(ye+1),slideCount:String(Nt)}),ot._syncing=!1,Lt(ot,Nt),xt.forEach((Fe,Pr)=>{pt(Fe),Kt(Fe,{"data-track-v2-elementposition":String(Pr+1),[y]:Pr===ye?null:"hidden"}),zt(Zt(Fe,ve("os-fws-overlay")),de,[...Mt(st),...Mt(q[Ie])]),zt(Zt(Fe,sr=>sr.getAttributes()["data-os-fws-container"]==="slide"),[F],Ke?[F]:[]),Kt(Zt(Fe,ve("image")),{loading:Pr===0?"eager":"lazy",fetchpriority:Pr===0?"high":null});const Xe=Rt(Pr,Nt);Jt(Fe.get("toolbar"))!==Jt(Xe)&&Fe.set("toolbar",Xe),$(Fe),Te(Fe)})},Gt=(ot,xt,Nt)=>{const ee=P(ot),ye=H(ot),Ie=ye.indexOf(xt);if(!ee||Ie<0)return;const Ke=ce(Nt,0,ye.length-1);if(Ke===Ie){re(ot);return}const Fe=a.getSelected()===xt;xt.move(ee,{at:Ke>Ie?Ke+1:Ke}),ot._syncing=!0,ot.set("editorSlide",String(Ke+1)),ot._syncing=!1,re(ot),Fe&&a.select(xt)},Ce=ot=>{if(ot._syncing)return;const xt=H(ot);if(!xt.length)return;const Nt=ce(parseInt(String(ot.get("editorSlide")),10),1,xt.length)-1,ee=ce(parseInt(String(ot.get("slidePosition")),10),1,xt.length)-1;Gt(ot,xt[Nt],ee)},Be=ot=>{if(ot._syncing)return;const xt=P(ot),Nt=H(ot);if(!xt||!Nt.length)return;const ee=ce(parseInt(String(ot.get("slideCount")),10),o,s),ye=Nt.length;if(ee>ye){for(let Ie=ye+1;Ie<=ee;Ie++)xt.append(tt(Ie));ot._syncing=!0,ot.set("editorSlide",String(ye+1)),ot._syncing=!1}else ee<ye&&Nt.slice(ee).forEach(Ie=>Ie.remove());re(ot)},we=ot=>{if(!(ot!=null&&ot.head))return;const xt=ot.getElementById("os-fws-editor-css");if(xt){xt.textContent=Bt;return}const Nt=ot.createElement("style");Nt.id="os-fws-editor-css",Nt.textContent=Bt,ot.head.appendChild(Nt)};a.on("canvas:frame:load",({window:ot})=>we(ot==null?void 0:ot.document)),a.on("load",()=>we(a.Canvas.getDocument())),we((qt=(Pt=a.Canvas).getDocument)==null?void 0:qt.call(Pt)),a.on("component:selected",ot=>{(ot==null?void 0:ot.get("type"))==="os-fws-headline"&&_t(ot),(ot==null?void 0:ot.get("type"))==="os-fws-badge"&&K(ot);let xt=ot;for(;xt&&!xe(xt);)xt=xt.parent();const Nt=Y(xt);if(!xt||!Nt)return;const ee=H(Nt).indexOf(xt);ee>=0&&String(Nt.get("editorSlide"))!==String(ee+1)&&Nt.set("editorSlide",String(ee+1))}),a.Commands.add("os-fws:select-wrap",{run(ot){const xt=Y(ot.getSelected());xt&&ot.select(xt)}});const vr=ot=>{let xt=ot.getSelected();for(;xt&&!xe(xt);)xt=xt.parent();return xt},mr=(ot,xt)=>{const Nt=vr(ot),ee=Y(Nt);!Nt||!ee||Gt(ee,Nt,H(ee).indexOf(Nt)+xt)};a.Commands.add("os-fws:slide-prev",{run:ot=>mr(ot,-1)}),a.Commands.add("os-fws:slide-next",{run:ot=>mr(ot,1)}),a.Commands.add("os-fws:slide-image",{run(ot){let xt=ot.getSelected();for(;xt&&!xe(xt);)xt=xt.parent();const Nt=Y(xt);if(!xt||!Nt)return;const ee=H(Nt).indexOf(xt);ee>=0&&Nt.set("editorSlide",String(ee+1));const ye=Zt(xt,ve("image")),Ie=ye==null?void 0:ye.getEl();if(Ie){Ie.dispatchEvent(new MouseEvent("dblclick",{bubbles:!0,cancelable:!0}));return}ye&&ot.runCommand("open-assets",{target:ye})}}),r.addType("os-fws-container",{isComponent:ot=>{if(!ot||typeof ot.getAttribute!="function")return!1;const xt=ot.getAttribute("data-os-fws-container");return xt==="head"||xt==="slide"?{type:"os-fws-container"}:!1},model:{defaults:{tagName:"div",...kt,droppable:!0,selectable:!1,wide_content:!1,attributes:{class:w}},init(){const ot=()=>{const xt=this.get("wide_content")===!0,Nt=this.getAttributes(),ee=Mt(Nt.class).filter(ye=>!/^max-w-\[\d+px]$/.test(ye));ee.push(xt?"max-w-[1280px]":"max-w-[960px]"),this.setAttributes({...Nt,class:ee.join(" ")})};this.on("change:wide_content",ot),ot()}}}),r.addType("os-fws-stage",{isComponent:ot=>le(ot,"data-os-fws","swiper")?{type:"os-fws-stage"}:!1,model:{defaults:{tagName:"div",name:"Slider-Bühne",...kt,selectable:!1,attributes:{"data-os-fws":"swiper",class:k}}}}),r.addType("os-fws-track",{isComponent:ot=>le(ot,"data-os-fws","track")?{type:"os-fws-track"}:!1,model:{defaults:{tagName:"div",name:"Slides",...kt,selectable:!1,droppable:'[data-os-fws="slide"]',attributes:{"data-os-fws":"track",class:S}}}});function V(...ot){var ee;const xt=(ee=r.getType("default"))==null?void 0:ee.model.prototype.getAttrToHTML,Nt={...xt?xt.apply(this,ot):this.getAttributes()};return delete Nt[y],Nt}r.addType("os-fws-slide",{isComponent:ot=>(ot==null?void 0:ot.tagName)==="A"&&le(ot,"data-os-fws","slide")?{type:"os-fws-slide"}:!1,model:{defaults:{tagName:"a",name:"Slide",editable:!1,droppable:!1,draggable:'[data-os-fws="track"]',copyable:!1,removable:!1,selectable:!0,toolbar:[D,W,j,et],attributes:{"data-os-fws":"slide",[m]:"solid",class:z,href:"#",target:"_self"},traits:[Rs("os-fws-slide-link","Link",!1),{type:"text",label:"Ziel-URL",name:"href",placeholder:"https://â¦"},{type:"select",label:"Ziel",name:"target",options:se},{type:"text",label:"Title-Attribut",name:"title"},Rs("os-fws-slide-badge","Badge"),{type:"select",label:"Badge-Variante",name:m,options:ue}]},init(){this.on(`change:attributes:${m}`,()=>$(this)),this.on("change:attributes",()=>{const ot=Zt(this,ve("os-fws-headline")),xt=Zt(this,ve("os-fws-badge"));ot&&_t(ot),xt&&K(xt)})},getAttrToHTML:V}}),r.addType("os-fws-image",{isComponent:ot=>(ot==null?void 0:ot.tagName)==="PICTURE"&&le(ot,"data-os-fws","image")?{type:"os-fws-image"}:!1,model:{defaults:{tagName:"picture",name:"Slide-Bild",editable:!1,...kt,selectable:!0,attributes:{"data-os-fws":"image",class:"absolute inset-0 z-0 block"}}}}),r.addType("os-fws-overlay",{isComponent:ot=>le(ot,"data-os-fws","overlay")?{type:"os-fws-overlay"}:!1,model:{defaults:{tagName:"div",editable:!1,...Ot,attributes:{"data-os-fws":"overlay",class:`${st} ${q.bottom}`}}}}),r.addType("os-fws-copy",{isComponent:ot=>le(ot,"data-os-fws","copy")?{type:"os-fws-copy"}:!1,model:{defaults:{tagName:"div",name:"Textbereich",editable:!1,...kt,selectable:!1,attributes:{"data-os-fws":"copy",class:X}}}}),r.addType("os-fws-badge",{extend:"text",isComponent:ot=>le(ot,"data-os-fws","badge")?{type:"os-fws-badge"}:!1,model:{defaults:{tagName:"div",name:"Badge",...kt,removable:!0,badgeV
2487ariant:"solid",traits:[Rs("os-fws-badge-group","Badge",!1),{type:"select",label:"Badge-Variante",name:"badgeVariant",changeProp:!0,options:ue}]},init(){this.on("change:badgeVariant",()=>{Kt(ct(this),{[m]:ut(this.get("badgeVariant"))})}),setTimeout(()=>K(this),0)}}}),r.addType("os-fws-headline",{extend:"text",isComponent:ot=>le(ot,"data-os-fws","headline")?{type:"os-fws-headline"}:!1,model:{defaults:{tagName:"h3",name:"Headline",...kt,linkHref:"#",linkTarget:"_self",linkTitle:"",traits:[Rs("os-fws-headline-link","Link der Slide",!1),{type:"text",label:"Ziel-URL",name:"linkHref",changeProp:!0,placeholder:"https://â¦"},{type:"select",label:"Ziel",name:"linkTarget",changeProp:!0,options:se},{type:"text",label:"Title-Attribut",name:"linkTitle",changeProp:!0}]},init(){Object.keys(ne).forEach(ot=>{this.on(`change:${ot}`,()=>{const xt=String(this.get(ot)??""),Nt=ne[ot];Kt(ct(this),{[Nt]:Nt==="title"&&!xt?null:xt})})}),setTimeout(()=>_t(this),0)}}}),r.addType("os-fws-subheadline",{extend:"text",isComponent:ot=>le(ot,"data-os-fws","subheadline")?{type:"os-fws-subheadline"}:!1,model:{defaults:{tagName:"p",name:"Subheadline",...kt,removable:!0}}}),r.addType("os-fws-nav",{isComponent:ot=>le(ot,"data-os-fws","nav")?{type:"os-fws-nav"}:!1,model:{defaults:{tagName:"div",editable:!1,...Ot,propagate:["selectable","hoverable","highlightable","draggable","droppable","copyable","removable"],attributes:{"data-os-fws":"nav",class:"mt-6 flex items-center justify-center gap-4 px-4"}}}}),r.addType("os-fws",{isComponent:ot=>{if(!ot||ot.tagName!=="SECTION"||typeof ot.getAttribute!="function")return!1;const xt=ot.getAttribute("data-os-fws")==="wrap",Nt=ot.getAttribute("data-component-id")===e&&ot.getAttribute("data-component-name")===i;return xt||Nt?{type:"os-fws"}:!1},model:{defaults:{tagName:"section",name:"Full-Width-Slider",droppable:!1,script:RI,slideCount:String(c),editorSlide:"1",slidePosition:"1",attributes:{"data-os-fws":"wrap","data-component-id":e,"data-component-version":n,"data-component-name":i,[d]:"bottom",[f]:"on",[g]:"0","aria-label":"Slider",class:x},traits:[Rs("os-fws-group-slides","Slides",!1),{type:"select",name:"slideCount",label:"Anzahl Slides",changeProp:!0,options:Array.from({length:s-o+1},(ot,xt)=>{const Nt=String(o+xt);return{id:Nt,label:`${Nt} Slides`}})},{type:"select",name:"editorSlide",label:"Slide bearbeiten",changeProp:!0,options:[]},{type:"select",name:"slidePosition",label:"Position",changeProp:!0,options:[]},Rs("os-fws-group-look","Darstellung â alle Slides"),{type:"select",name:d,label:"Overlay",options:[{id:"bottom",label:"Verlauf unten (Standard)"},{id:"left",label:"Verlauf links"},{id:"none",label:"Ohne"}]},{type:"select",name:f,label:"Text-Schatten",options:[{id:"on",label:"An (Standard)"},{id:"off",label:"Aus"}]},{type:"select",name:g,label:"Autoplay",options:[{id:"0",label:"Aus (Standard)"},{id:"5000",label:"Alle 5 Sekunden"},{id:"8000",label:"Alle 8 Sekunden"}]}]},_syncing:!1,init(){const ot=()=>{this._syncing||re(this)};this.on("change:slideCount",()=>Be(this)),this.on("change:slidePosition",()=>Ce(this)),this.on(`change:attributes:${d} change:attributes:${f} change:editorSlide`,ot),a.on("load",ot),ot()}}});let rt;const dt=ot=>{xe(ot)&&(clearTimeout(rt),rt=setTimeout(()=>{var xt;(xt=a.getWrapper())==null||xt.findType("os-fws").forEach(Nt=>{const ee=H(Nt);ee.length>s&&ee.slice(s).forEach(ye=>ye.remove()),re(Nt)})},30))};a.on("component:add",dt),a.on("component:remove",dt),t.add("full-width-slider",{label:"Full-Width-Slider",category:"Content",attributes:{"data-os-group":"Landingpage Elemente","data-os-page-type":"both"},media:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><rect x="0" y="120" width="400" height="140" style="fill:#D3D3D3;"/><rect x="0" y="190" width="400" height="70" style="fill:#B2B2B2;"/><rect x="70" y="196" width="60" height="12" rx="2" style="fill:#888888;"/><rect x="70" y="216" width="6" height="34" style="fill:#888888;"/><rect x="84" y="218" width="150" height="12" style="fill:#F3F4F6;"/><rect x="84" y="238" width="110" height="10" style="fill:#E5E7EB;"/><circle cx="150" cy="300" r="12" style="fill:none;stroke:#888888;stroke-width:3;"/><circle cx="185" cy="300" r="5" style="fill:#B2B2B2;"/><circle cx="200" cy="300" r="5" style="fill:#555555;"/><circle cx="215" cy="300" r="5" style="fill:#B2B2B2;"/><circle cx="250" cy="300" r="12" style="fill:none;stroke:#888888;stroke-width:3;"/></svg>',content:{type:"os-fws",components:[{type:"os-fws-container",attributes:{"data-os-fws-container":"head",class:w},components:[{tagName:"div",selectable:!1,attributes:{class:"mx-auto mb-8 max-w-3xl text-center sm:mb-10"},components:[{type:"text",tagName:"h2",droppable:!1,attributes:{class:"mb-4 text-3xl font-bold text-slate-900 md:text-4xl dark:text-white"},content:"Ãberschrift H2"},{type:"text",tagName:"p",droppable:!1,attributes:{class:"mx-auto mb-0 max-w-[65ch] text-slate-600 dar
2487k:text-dark-muted"},content:"Subline"}]}]},{type:"os-fws-stage",components:[{type:"os-fws-track",components:Array.from({length:c},(ot,xt)=>tt(xt+1))}]},{type:"os-fws-nav",components:[{tagName:"button",attributes:{type:"button","data-os-fws":"prev","aria-label":"Vorherige Slide",class:gt},components:[{tagName:"iconify-icon",attributes:{icon:"material-symbols:arrow-back","aria-hidden":"true",style:"font-size:20px"}}]},{tagName:"div",attributes:{"data-os-fws":"pagination",class:"flex min-h-[44px] items-center gap-2"}},{tagName:"button",attributes:{type:"button","data-os-fws":"next","aria-label":"Nächste Slide",class:gt},components:[{tagName:"iconify-icon",attributes:{icon:"material-symbols:arrow-forward","aria-hidden":"true",style:"font-size:20px"}}]}]}]}})}const VI=["h1","h2","h3","h4","h5","h6"],HI=VI.map(a=>({id:a,name:a.toUpperCase()})),FI=["left","center","right"],f2=[{id:"left",name:"Links"},{id:"center",name:"Zentriert"},{id:"right",name:"Rechts"}],no={left:"text-left",center:"text-center",right:"text-right"},Sv=Object.values(no),Tv={left:"mr-auto",center:"mx-auto",right:"ml-auto"},$I=Object.values(Tv);function xg(a,r,t={}){if(!(a!=null&&a.getAttributes))return;const e=no[r]||no.left,n=Tv[r]||Tv.left,i=a.getAttributes()||{};let o=(i.class||"").split(" ").filter(Boolean);o=o.filter(c=>!Sv.includes(c)),o.push(e),t.box&&(o=o.filter(c=>!$I.includes(c)),o.push(n));const s=Array.from(new Set(o)).join(" ");s!==(i.class||"")&&a.setAttributes({...i,class:s})}function p2(a){var t;const r=((((t=a==null?void 0:a.getAttributes)==null?void 0:t.call(a))||{}).class||"").split(" ").filter(Boolean);return FI.find(e=>r.includes(no[e]))}function h2(a){var r,t,e,n;try{const i=((t=(r=a.em)==null?void 0:r.get)==null?void 0:t.call(r,"Editor"))||a.em;if(!i)return!0;const o=((n=(e=i.getWrapper())==null?void 0:e.find)==null?void 0:n.call(e,"h1"))||[];return o.length===0?!0:o.some(s=>s===a||s.cid===a.cid)}catch{return!0}}function g2(a){var r,t;try{const e=((t=(r=a.em)==null?void 0:r.get)==null?void 0:t.call(r,"Editor"))||a.em;e&&e.trigger("log","warn",{msg:"Es existiert bereits eine H1 auf der Seite."})}catch{}}function zI(a){a.DomComponents.addType("os-headline",{isComponent:s=>s&&s.getAttribute&&s.getAttribute("data-os-headline")==="wrap"?{type:"os-headline"}:!1,model:{defaults:{tagName:"div",droppable:!1,attributes:{"data-os-headline":"wrap",class:"px-4 sm:px-6"},components:[{type:"text",tagName:"h2",content:"Ãberschrift",editable:!0,attributes:{class:"text-title5"}}],traits:[{type:"select",name:"level",label:"Ebene",options:[{id:"h1",name:"H1"},{id:"h2",name:"H2"},{id:"h3",name:"H3"},{id:"h4",name:"H4"}],changeProp:!0,value:"h2"},{type:"select",name:"align",label:"Ausrichtung",options:f2,changeProp:!0,value:"left"},{type:"checkbox",name:"withStroke",label:"Trennstrich",changeProp:!0,value:!1}]},init(){const s=this.get("level")||"h2",c=this.get("align")||"left";this.updateChildTag(s),this.applyAlign(c),this.applyStroke(!!this.get("withStroke")),this.on("change:level",(d,f)=>{const g=this.previous("level")||"h2";if(f==="h1"&&!h2(this)){this.set("level",g,{silent:!0}),this.updateChildTag(g),g2(this);return}this.updateChildTag(f)}),this.on("change:align",(d,f)=>this.applyAlign(f)),this.on("change:withStroke",(d,f)=>this.applyStroke(!!f))},updateChildTag(s){const c=this.components(),d=c&&c.at&&c.at(0);if(d){d.set("tagName",s);const f=!!this.get("withStroke");this.applyStroke(f)}},applyAlign(s){const c=s||this.get("align")||"left",d=no[c]||no.left,f=this.getAttributes()||{};let g=(f.class||"").split(" ").filter(Boolean);g=g.filter(m=>!Sv.includes(m)),g.push(d),g=g.filter(m=>m!=="pr-2"),g.includes("px-4")||g.push("px-4"),g.includes("sm:px-6")||g.push("sm:px-6"),this.setAttributes({...f,class:Array.from(new Set(g)).join(" ")})},applyStroke(s){const d="underline-title relative mt-5 mb-4 lg:mt-6 before:absolute before:bottom-[13px] before:left-0 before:right-0 before:h-px before:w-full before:bg-stroke-300 before:content-['']".split(" "),f=this.getAttributes()||{};let g=(f.class||"").split(" ").filter(Boolean);g=g.filter(k=>!d.includes(k)),g=g.filter(k=>k!=="pr-2"),g.includes("px-4")||g.push("px-4"),g.includes("sm:px-6")||g.push("sm:px-6");const m=this.get("align")||"left",y=no[m]||no.left;g=g.filter(k=>
2487!Sv.includes(k)),g.push(y),s&&(g=g.concat(d)),this.setAttributes({...f,class:Array.from(new Set(g)).join(" ")});const x=this.components(),w=x&&x.at&&x.at(0);if(w){const k=w.getAttributes()||{};let S=(k.class||"").split(" ").filter(Boolean);const A=["relative","uppercase","inline-block","bg-surface-100","px-2.5","text-copy-primary","font-normal"],L=[];S=S.filter(D=>!A.includes(D)&&D!=="text-center"&&!L.includes(D)),s?S=S.concat(A):S=S.concat(L),w.setAttributes({...k,class:Array.from(new Set(S)).join(" ")})}}}});const r=["font-bold","mb-4"],t={h1:["text-3xl","md:text-4xl"],h2:["text-3xl","md:text-4xl"],h3:["text-2xl","md:text-3xl"],h4:["text-xl","md:text-2xl"],h5:["text-lg","md:text-xl"],h6:["text-base","md:text-lg"]},e=Object.values(t).flat(),n=(s,c)=>{const d=[],f=g=>{var y,x;(((x=(y=g==null?void 0:g.components)==null?void 0:y.call(g))==null?void 0:x.models)||[]).forEach(w=>{c(w)&&d.push(w),f(w)})};return f(s),d},i=(s,c)=>{var d;return((((d=s==null?void 0:s.getAttributes)==null?void 0:d.call(s))||{}).class||"").split(" ").includes(c)},o=s=>{var c;return(((c=s==null?void 0:s.getAttributes)==null?void 0:c.call(s))||{})["data-os-headline"]==="aboshop"};a.DomComponents.addType("os-headline-aboshop-wrap",{isComponent:s=>!s||!s.getAttribute||String(s.tagName||"").toLowerCase()!=="section"?!1:s.getAttribute("data-os-headline")==="aboshop-wrap"||s.getAttribute("data-component-id")==="39"?{type:"os-headline-aboshop-wrap"}:!1,model:{defaults:{tagName:"section",align:"center",attributes:{"data-os-headline":"aboshop-wrap",class:"w-full py-12 sm:py-16 lg:py-20"},components:[{tagName:"div",attributes:{class:"max-w-screen-xl mx-auto px-4 sm:px-6"},components:[{tagName:"div",attributes:{class:"text-center max-w-3xl mx-auto"},components:[{type:"os-headline-aboshop",tagName:"h2",attributes:{"data-os-headline":"aboshop",class:"text-3xl md:text-4xl font-bold mb-4 text-center"},components:"Ãberschrift"},{type:"text",tagName:"p",attributes:{"data-os-headline":"subline",class:"max-w-[65ch] mx-auto text-center"},components:"Beschreibungstext hier einfügen."}]}]}],traits:[{type:"select",name:"align",label:"Ausrichtung",options:f2,changeProp:!0,value:"center"}]},init(){setTimeout(()=>{const s=n(this,f=>i(f,"max-w-3xl"))[0],c=n(this,o)[0],d=p2(s)||p2(c)||this.get("align")||"center";this.set("align",d,{silent:!0}),this.ensureSpacing(),this.applyAlign(d)},0),this.on("change:align",(s,c)=>this.applyAlign(c))},ensureSpacing(){const s=n(this,g=>i(g,"max-w-screen-xl"))[0];if(!s)return;const c=s.getAttributes()||{};let d=(c.class||"").split(" ").filter(Boolean);d=d.filter(g=>g!=="pr-2"),d.includes("px-4")||d.push("px-4"),d.includes("sm:px-6")||d.push("sm:px-6");const f=Array.from(new Set(d)).join(" ");f!==(c.class||"")&&s.setAttributes({...c,class:f})},applyAlign(s){const c=s||this.get("align")||"center";n(this,g=>i(g,"max-w-3xl")).forEach(g=>xg(g,c,{box:!0}));const d=n(this,o);d.forEach(g=>xg(g,c));let f=n(this,g=>{var m;return(((m=g.getAttributes)==null?void 0:m.call(g))||{})["data-os-headline"]==="subline"});f.length||(f=d.map(g=>{var x,w,k,S;const m=((S=(k=(w=(x=g.parent)==null?void 0:x.call(g))==null?void 0:w.components)==null?void 0:k.call(w))==null?void 0:S.models)||[],y=m[m.indexOf(g)+1];return y&&String(y.get("tagName")||"").toLowerCase()==="p"?y:void 0}).filter(Boolean)),f.forEach(g=>xg(g,c,{box:!0}))}}}),a.DomComponents.addType("os-headline-aboshop",{extend:"text",isComponent:s=>s&&s.getAttribute&&s.getAttribute("data-os-headline")==="aboshop"?{type:"os-headline-aboshop"}:!1,model:{defaults:{tagName:"h2",editable:!0,attributes:{"data-os-headline":"aboshop",class:"text-3xl md:text-4xl font-bold mb-4"},traits:[{type:"select",name:"level",label:"Ebene",options:HI,changeProp:!0,value:"h2"}]},init(){const s=this.get("level")||this.get("tagName")||"h2";this.set("level",s,{silent:!0}),this.applyLevel(s),this.on("change:level",(c,d)=>{const f=this.previous("level")||"h2";if(d==="h1"&&!h2(this)){this.set("level",f,{silent:!0}),this.applyLevel(f),g2(this);return}this.applyLevel(d)})},applyLevel(s){this.set("tagName",s);const c=t[s]||t.h2,d=this.getAttributes()||{};
2487let f=(d.class||"").split(" ").filter(Boolean);f=f.filter(g=>!e.includes(g)),f=f.concat(r).concat(c),this.setAttributes({...d,class:Array.from(new Set(f)).join(" ")})}}}),a.BlockManager.add("headlineUnified",{id:"headlineUnified",label:"Ãberschrift (H1âH4)",attributes:{"data-os-group":"Landingpage Elemente","data-os-page-type":"cue"},category:{id:"content",label:"Content"},content:`<div 2488 data-component-id="6" 2489 data-component-version="1.0.0" 2490 data-component-name="Landingpage Element - Content - Ãberschrift" 2491 data-gjs-type="os-headline" 2492 data-os-headline="wrap" 2493 class="px-4 sm:px-6"> 2494 <h2 class="text-title5">Ãberschrift</h2> 2495 </div>`,media:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><path fill="none" stroke="#757575" stroke-linecap="round" stroke-linejoin="round" stroke-width="15.1" d="M298 275.9h-52.8v-16.2c0-8.6 4.8-16.4 12.5-20.2l29-14.5c6.5-3.3 11.2-9.6 11.2-16.9s-.4-9.9-1.2-14.7c-1.4-8.3-8.4-14.3-16.8-15-11.6-.9-23.3-.5-34.8 1.2m-143.2-54.5v75.4m0 0v75.4m0-75.4h105.5m.1-75.4v75.4m0 0v75.4"/></svg>'}),a.BlockManager.add("headlineAboshop",{id:"headlineAboshop",label:"Ãberschrift",attributes:{"data-os-group":"Landingpage Elemente","data-os-page-type":"aboshop"},category:{id:"content",label:"Content"},content:` 2496 <section 2497 data-component-id="39" 2498 data-component-version="1.0.0" 2499 data-component-name="Landingpage Elemente - Content - Ãberschrift Aboshop" 2500 data-os-headline="aboshop-wrap" 2501 class="w-full py-12 sm:py-16 lg:py-20"> 2502 <div class="max-w-screen-xl mx-auto px-4 sm:px-6"> 2503 <div class="text-center max-w-3xl mx-auto"> 2504 <h2 data-gjs-type="os-headline-aboshop" data-os-headline="aboshop" class="text-3xl md:text-4xl font-bold mb-4">Ãberschrift</h2> 2505 <p data-os-headline="subline" class="max-w-[65ch] mx-auto">Beschreibungstext hier einfügen.</p> 2506 </div> 2507 </div> 2508 </section> 2509 `,media:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><path fill="none" stroke="#757575" stroke-linecap="round" stroke-linejoin="round" stroke-width="15.1" d="M298 275.9h-52.8v-16.2c0-8.6 4.8-16.4 12.5-20.2l29-14.5c6.5-3.3 11.2-9.6 11.2-16.9s-.4-9.9-1.2-14.7c-1.4-8.3-8.4-14.3-16.8-15-11.6-.9-23.3-.5-34.8 1.2m-143.2-54.5v75.4m0 0v75.4m0-75.4h105.5m.1-75.4v75.4m0 0v75.4"/></svg>'})}const UI='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><rect width="62" height="62" x="36" y="36" fill="#d3d3d3" rx="14"/><circle cx="67" cy="67" r="15" fill="#efefef"/><rect width="62" height="62" x="302" y="36" fill="#d3d3d3" rx="14"/><path fill="#efefef" d="M328 52h10v10h10v10h-10v10h-10V72h-10V62h10z"/><rect width="62" height="62" x="36" y="302" fill="#d3d3d3" rx="14"/><path fill="#efefef" d="m67 318 16 28H51z"/><rect width="62" height="62" x="302" y="302" fill="#d3d3d3" rx="14"/><rect width="30" height="30" x="318" y="318" fill="#efefef" rx="6"/><rect width="180" height="180" x="110" y="110" fill="#efefef" rx="28"/><path fill="#757575" d="M200 136l15.3 43 45.6 1.2-36.2 27.8 12.9 43.8-37.6-25.8-37.6 25.8 12.9-43.8-36.2-27.8 45.6-1.2z"/></svg>';function WI(a){a.DomComponents.addType("iconify-icon",{isComponent:r=>r.tagName==="ICONIFY-ICON"?{type:"iconify-icon"}:!1,model:{defaults:{tagName:"iconify-icon",droppable:!1,draggable:!0,attributes:{icon:"material-symbols:check-circle"},traits:[{type:"text",name:"icon",label:"Icon Name (z.B. material-symbols:star)",placeholder:"material-symbols:check-circle"},{type:"text",name:"width",label:"Breite",placeholder:"z.B. 24px"},{type:"text",name:"height",label:"Höhe",placeholder:"z.B. 24px"},{type:"button",label:"",text:"ð Icon-Bibliothek öffnen (material-symbols)",full:!0,command:()=>{window.open("https://icon-sets.iconify.design/material-symbols","_blank")}}]},init(){this.listenTo(this,"change:attributes",this._syncIcon)},_syncIcon(){const r=this.getEl();if(!r)return;const t=this.getAttributes();t.icon&&r.setAttribute("icon",t.icon),t.width&&r.setAttribute("width",t.width),t.height&&r.setAttribute("height",t.height),window.Iconify&&window.Iconify.scan(r)}},view:{onRender(){window.Iconify&&window.Iconify.scan(this.el)}}}),a.BlockManager.add("iconify-icon",{label:"Iconify Icon",category:"content",attributes:{"data-os-page-type":"both","data-os-group":"Landingpage Elemente"},content:{type:"iconify-icon"},media:UI})}function ZI(a){var r;try{const t=a.TraitManager;t&&!((r=t.getType)!=null&&r.call(t,"note"))&&t.addType("note",{noLabel:!0,createInput({trait:e}){const n=document.createElement("div");n.className="gjs-trait--note";const i=document.createElement("div");i.style.fontSize="12px",i.style.lineHeight="1.45",i.style.color="#374151",i.style.background="rgba(243,244,246,.8)",i.style.border="1px solid rgba(209,213,219,1)",i.style.borderRadius="6px",i.style.padding="8px 10px",i.style.margin="6px 0 10px";const o=(e==null?void 0:e.get)&&e.get("message")||(e==null?void 0:e.message)||"";return i.innerHTML=`${o}`,n.appendChild(i),n},onUpdate(){}})}catch{}a.Components.addType("kaltura",{isComponent(t){return t.tagName==="DIV"&&t.classList.contains("kaltura-player-container")?{type:"kaltura"}:!1},model:{defaults:{tagName:"div",attributes:{class:"kaltura-player-container aspect-video !w-[unset] !h-[unset] my-2","data-component-id":"7","data-component-version":"1.0.0","data-component-name":"Landingpage Elemente - Medien - Kaltura"},components:[{tagName:"div",attributes:{class:"partnerid hidden",style:"display:none;","aria-hidden":"true","data-field":"partner_id"},components:[{type:"textnode",content:"105"}]},{tagName:"div",attributes:{class:"uiconfid hidden",style:"display:none;","aria-hidden":"true","data-field":"uiconf_id"},components:[{type:"textnode",content:""}]},{tagName:"div",attributes:{class:"entryid hidden",style:"display:none;","aria-hidden":"true","data-field":"entry_id"},components:[{type:"textnode",content:""}]},{tagName:"script",attributes:{src:"",type:"text/javascript","data-role":"kaltura-external-script"},content:""},{tagName:"script",attributes:{type:"text/javascript","data-role":"kaltura-inline-script"},content:""}],traits:[{type:"note",name:"kaltura_info",message:'Das Video muss in Kaltura (z. B. unter <a href="https://front.vtv.funkedigital.de/index.php/kmcng/login" target="_blank" rel="noopener">https://front.vtv.funkedigital.de/index.php/kmcng/login</a>) hochgeladen werden. Hier können im Anschluss die IDs hinterlegt und somit das Video auf der Landingpage eingebunden werden.'},{type:"text",label:"Partner ID",name:"partner_id",changeProp:!0,value:"105"},{type:"text",label:"UIConf ID",name:"uiconf_id",changeProp:!0,placeholder:"23466211"},{type:"text",label:"Entry ID",name:"entry_id",changeProp:!0,placeholder:"0_hbgbujev"}],partner_id:"105",uiconf_id:"",entry_id:"",playerUniqueId:""},init(){this._debounceMs=300,this._updateTimer=null,this.on("change:partner_id change:uiconf_id change:entry_id",this.updateScriptsDebounced),this._skipFirstUpdate=!0,setTimeout(()=>this.initializeFromHiddenDivs(),0)},updateScriptsDebounced(){const t=this._debounceMs||300;this._updateTimer&&clearTimeout(this._updateTimer),this._updateTimer=setTimeout(()=>{this._updateTimer=null,this.updateScripts()},t)},initializeFromHiddenDivs(){const t=this.components(),e=t.at(0),n=t.at(1),i=t.at(2),o=e==null?void 0:e.components().at(0),s=n==null?void 0:n.components().at(0),c=i==null?void 0:i.components().at(0),d=o?o.get("content"):"",f=s?s.get("content"):"",g=c?c.get("content"):"";this.set({partner_id:d,uiconf_id:f,entry_id:g,playerUniqueId:this.createUniqueId()})},updateScripts(){var x,w,k,S;if(this._skipFirstUpdate){this._skipFirstUpdate=!1;return}let t=this.get("partner_id")||"",e=this.get("uiconf_id")||"",n=this.get("entry_id")||"",i=this.get("playerUniqueId")||"";/^\d*$/.test(t)||(t="",this.set("partner_id","")),/^\d*$/.test(e)||(e="",this.set("uiconf_id",""));const o=n.replace(/[^\w-]/g,"");o!==n&&(n=o,this.set("entry_id",n)),i||(i=this.createUniqueId(),this.set("playerUniqueId",i));const s=this.components(),c=s.at(0),d=s.at(1),f=s.at(2);(x=c==null?void 0:c.components().at(0))==null||x.set("content",t),(w=d==null?void 0:d.components().at(0))==null||w.set("content",e),(k=f==null?void 0:f.components().at(0))==null||k.set("content",n);const g=s.at(3),m=s.at(4),y=!!t&&!!e&&!!n;if(g){const A=`https://front.vtv.funkedigital.de/p/${t}/embedPlaykitJs/uiconf_id/${e}`;y?g.addAttributes({src:A,"data-src":A}):(g.addAttributes({"data-src":A}),(((S=g.getAttributes)==null?void 0:S.call(g))||{}).src&&g.addAttributes({src:""}))}if(m)if(y){const A=` 2510 try { 2511 var kalturaPlayer = KalturaPlayer.setup({ 2512 targetId: "${i}", 2513 provider: { 2514 partnerId: ${t||0}, 2515 uiConfId: ${e||0} 2516 } 2517 }); 2518 kalturaPlayer.loadMedia({ entryId: '${n}' }); 2519 } catch (e) { 2520 console.error(e.message); 2521 }`.trim();m.components(A),m.addAttributes({"data-role":"kaltura-inline-script",type:"text/javascript"})}else m.components(""),m.addAttributes({"data-role":"kaltura-inline-script",type:"text/plain"});this.addAttributes({id:i}),this.addAttributes({"data-component-id":"7","data-component-version":"1.0.0","data-component-name":"Landingpage Elemente - Medien - Kaltura"})},createUniqueId(){return"kaltura_player_"+Date.now()}},view:{onRender(){var i;const t=this.el;if(!t||t.getAttribute("data-kaltura-notice")==="1")return;const e=document.createElement("div");e.className="gjs-no-export gjs-kaltura-notice pointer-events-none absolute inset-0 flex items-center justify-center",e.setAttribute("aria-hidden","true"),e.style.position="absolute",e.style.inset="0",e.style.display="flex",e.style.alignItems="center",e.style.justifyContent="center",e.style.background="transparent",e.style.color="#111827",e.style.fontSize="12px",e.style.fontFamily='system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji"',e.style.textAlign="center",e.style.padding="8px",e.style.zIndex="5";const n=document.createElement("div");n.style.background="rgba(255,255,255,0.95)",n.style.border="1px solid rgba(0,0,0,0.1)",n.style.borderRadius="6px",n.style.padding="8px 10px",n.style.boxShadow="0 2px 6px rgba(0,0,0,.08)",n.textContent="Hinweis: Das KalturaâVideo wird erst in der Vorschau angezeigt.",e.appendChild(n),(!t.style.position||t.style.position==="static")&&(t.style.position="relative"),t.style.backgroundColor="#000",t.appendChild(e),t.setAttribute("data-kaltura-notice","1"),(i=this.disableScriptsInEditor)==null||i.call(this)},onUpdate(){var e,n;const t=this.el;t&&(t.querySelector(".gjs-kaltura-notice")||this.onRender(),(e=this.disableScriptsInEditor)==null||e.call(this),(n=this.updateEditorAppearance)==null||n.call(this))},updateEditorAppearance(){try{const t=this.el,e=this.model;if(!t||!e)return;t.style.backgroundColor="#000",t.style.backgroundImage="none"}catch{}},disableScriptsInEditor(){var t;try{const e=this.el;if(!e)return;e.querySelectorAll("script[data-role]").forEach(i=>
2521{if(i.getAttribute("data-gjs-disabled")==="1")return;const o=i.getAttribute("type")||"text/javascript";i.src&&(i.setAttribute("data-src",i.src),i.removeAttribute("src")),i.setAttribute("data-realtype",o),i.type="text/plain",i.setAttribute("data-gjs-disabled","1")}),e.querySelectorAll('iframe, video, .k-player, .kaltura-player, [data-kaltura], iframe[src*="kaltura"], iframe[src*="kaltura.com"]').forEach(i=>{const o=i;try{o.remove()}catch{o.style.display="none"}}),(t=this.updateEditorAppearance)==null||t.call(this)}catch{}}}}),a.BlockManager.add("kaltura",{id:"kaltura",label:"Kaltura",category:{id:"media",label:"Medien"},attributes:{"data-os-group":"Landingpage Elemente","data-component-id":"7"},content:{type:"kaltura"},media:'<?xml version="1.0" encoding="UTF-8"?> <svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 400 400"> <!-- Generator: Adobe Illustrator 29.2.1, SVG Export Plug-In . SVG Version: 2.1.0 Build 116) --> <g id="Kacheln_6er" display="none"> <g> <g> <g> <rect x="30.3" y="103" width="49.6" height="49.6" rx="1.3" ry="1.3" fill="#d3d3d3"/> <circle cx="66.7" cy="113.6" r="2.8" fill="#b2b2b2"/> <path d="M79.9,147.7v3.7c0,.7-.6,1.3-1.3,1.3H31.5c-.7,0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2,4.3-1.2,5.9,0l14.5,10.4s0,0,.1,0c.8.6,2.2.5,3,0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6,0-2.1l1-.7c1.6-1.2,4.3-1.2,5.9,0l6.6,4.7c.3.2.5.6.5,1Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="41.1" y="157" width="28" height="4" fill="#b2b2b2"/> </g> <g> <g> <rect x="88.3" y="103" width="49.6" height="49.6" rx="1.3" ry="1.3" fill="#d3d3d3"/> <circle cx="124.7" cy="113.6" r="2.8" fill="#b2b2b2"/> <path d="M137.9,147.7v3.7c0,.7-.6,1.3-1.3,1.3h-47.1c-.7,0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2,4.3-1.2,5.9,0l14.5,10.4s0,0,.1,0c.8.6,2.2.5,3,0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6,0-2.1l1-.7c1.6-1.2,4.3-1.2,5.9,0l6.6,4.7c.3.2.5.6.5,1Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="99.1" y="157" width="28" height="4" fill="#b2b2b2"/> </g> <g> <g> <rect x="146.3" y="103" width="49.6" height="49.6" rx="1.3" ry="1.3" fill="#d3d3d3"/> <circle cx="182.7" cy="113.6" r="2.8" fill="#b2b2b2"/> <path d="M195.9,147.7v3.7c0,.7-.6,1.3-1.3,1.3h-47.1c-.7,0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2,4.3-1.2,5.9,0l14.5,10.4s0,0,.1,0c.8.6,2.2.5,3,0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6,0-2.1l1-.7c1.6-1.2,4.3-1.2,5.9,0l6.6,4.7c.3.2.5.6.5,1Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="157.1" y="157" width="28" height="4" fill="#b2b2b2"/> </g> <g> <g> <rect x="204.3" y="103" width="49.6" height="49.6" rx="1.3" ry="1.3" fill="#d3d3d3"/> <circle cx="240.7" cy="113.6" r="2.8" fill="#b2b2b2"/> <path d="M253.9,147.7v3.7c0,.7-.6,1.3-1.3,1.3h-47.1c-.7,0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2,4.3-1.2,5.9,0l14.5,10.4s0,0,.1,0c.8.6,2.2.5,3,0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6,0-2.1l1-.7c1.6-1.2,4.3-1.2,5.9,0l6.6,4.7c.3.2.5.6.5,1Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="215.1" y="157" width="28" height="4" fill="#b2b2b2"/> </g> <g> <g> <rect x="262.3" y="103" width="49.6" height="49.6" rx="1.3" ry="1.3" fill="#d3d3d3"/> <circle cx="298.7" cy="113.6" r="2.8" fill="#b2b2b2"/> <path d="M311.9,147.7v3.7c0,.7-.6,1.3-1.3,1.3h-47.1c-.7,0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2,4.3-1.2,5.9,0l14.5,10.4s0,0,.1,0c.8.6,2.2.5,3,0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6,0-2.1l1-.7c1.6-1.2,4.3-1.2,5.9,0l6.6,4.7c.3.2.5.6.5,1Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="273.1" y="157" width="28" height="4" fill="#b2b2b2"/> </g> <g> <g> <rect x="320.3" y="103" width="49.6" height="49.6" rx="1.3" ry="1.3" fill="#d3d3d3"/> <circle cx="356.7" cy="113.6" r="2.8" fill="#b2b2b2"/> <path d="M369.9,147.7v3.7c0,.7-.6,1.3-1.3,1.3h-47.1c-.7,0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2,4.3-1.2,5.9,0l14.5,10.4s0,0,.1,0c.8.6,2.2.5,3,0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6,0-2.1l1-.7c1.6-1.2,4.3-1.2,5.9,0l6.6,4.7c.3.2.5.6.5,1Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="331.1" y="157" width="28" height="4" fill="#b2b2b2"/> </g> <g> <g> <rect x="30.3" y="171" width="49.6" height="49.6" rx="1.3" ry="1.3" fill="#d3d3d3"/> <circle cx="66.7" cy="181.6" r="2.8" fill="#b2b2b2"/> <path d="M79.9,215.7v3.7c0,.7-.6,1.3-1.3,1.3H31.5c-.7,0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2,4.3-1.2,5.9,0l14.5,10.4s0,0,.1,0c.8.6,2.2.5,3,0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6,0-2.1l1-.7c1.6-1.2,4.3-1.2,5.9,0l6.6,4.7c.3.2.5.6.5,1Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="41.1" y="225" width="28" height="4" fill="#b2b2b2"/> </g> <g> <g> <rect x="88.3" y="171" width="49.6" height="49.6" rx="1.3" ry="1.3" fill="#d3d3d3"/> <circle cx="124.7" cy="181.6" r="2.8" fill="#b2b2b2"/> <path d="M137.9,215.7v3.7c0,.7-.6,1.3-1.3,1.3h-47.1c-.7,0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2,4.3-1.2,5.9,0l14.5,10.4s0,0,.1,0c.8.6,2.2.5,3,0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6,0-2.1l1-.7c1.6-1.2,4.3-1.2,5.9,0l6.6,4.7c.3.2.5.6.5,1Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="99.1" y="225" width="28" height="4" fill="#b2b2b2"/> </g> <g> <g> <rect x="146.3" y="171" width="49.6" height="49.6" rx="1.3" ry="1.3" fill="#d3d3d3"/> <circle cx="182.7" cy="181.6" r="2.8" fill="#b2b2b2"/> <path d="M195.9,215.7v3.7c0,.7-.6,1.3-1.3,1.3h-47.1c-.7,0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2,4.3-1.2,5.9,0l14.5,10.4s0,0,.1,0c.8.6,2.2.5,3,0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6,0-2.1l1-.7c1.6-1.2,4.3-1.2,5.9,0l6.6,4.7c.3.2.5.6.5,1Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="157.1" y="225" width="28" height="4" fill="#b2b2b2"/> </g> <g> <g> <rect x="204.3" y="171" width="49.6" height="49.6" rx="1.3" ry="1.3" fill="#d3d3d3"/> <circle cx="240.7" cy="181.6" r="2.8" fill="#b2b2b2"/> <path d="M253.9,215.7v3.7c0,.7-.6,1.3-1.3,1.3h-47.1c-.7,0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2,4.3-1.2,5.9,0l14.5,10.4s0,0,.1,0c.8.6,2.2.5,3,0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6,0-2.1l1-.7c1.6-1.2,4.3-1.2,5.9,0l6.6,4.7c.3.2.5.6.5,1Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="215.1" y="225" width="28" height="4" fill="#b2b2b2"/> </g> <g> <g> <rect x="262.3" y="171" width="49.6" height="49.6" rx="1.3" ry="1.3" fill="#d3d3d3"/> <circle cx="298.7" cy="181.6" r="2.8" fill="#b2b2b2"/> <path d="M311.9,215.7v3.7c0,.7-.6,1.3-1.3,1.3h-47.1c-.7,0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2,4.3-1.2,5.9,0l14.5,10.4s0,0,.1,0c.8.6,2.2.5,3,0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6,0-2.1l1-.7c1.6-1.2,4.3-1.2,5.9,0l6.6,4.7c.3.2.5.6.5,1Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="273.1" y="225" width="28" height="4" fill="#b2b2b2"/> </g> <g> <g> <rect x="320.3" y="171" width="49.6" height="49.6" rx="1.3" ry="1.3" fill="#d3d3d3"/> <circle cx="356.7" cy="181.6" r="2.8" fill="#b2b2b2"/> <path d="M369.9,215.7v3.7c0,.7-.6,1.3-1.3,1.3h-47.1c-.7,0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2,4.3-1.2,5.9,0l14.5,10.4s0,0,.1,0c.8.6,2.2.5,3,0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6,0-2.1l1-.7c1.6-1.2,4.3-1.2,5.9,0l6.6,4.7c.3.2.5.6.5,1Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="331.1" y="225" width="28" height="4" fill="#b2b2b2"/> </g> <g> <g> <rect x="30.3" y="239" width="49.6" height="49.6" rx="1.3" ry="1.3" fill="#d3d3d3"/> <circle cx="66.7" cy="249.6" r="2.8" fill="#b2b2b2"/> <path d="M79.9,283.7v3.7c0,.7-.6,1.3-1.3,1.3H31.5c-.7,0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2,4.3-1.2,5.9,0l14.5,10.4s0,0,.1,0c.8.6,2.2.5,3,0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6,0-2.1l1-.7c1.6-1.2,4.3-1.2,5.9,0l6.6,4.7c.3.2.5.6.5,1Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="41.1" y="293" width="28" height="4" fill="#b2b2b2"/> </g> <g> <g> <rect x="88.3" y="239" width="49.6" height="49.6" rx="1.3" ry="1.3" fill="#d3d3d3"/> <circle cx="124.7" cy="249.6" r="2.8" fill="#b2b2b2"/> <path d="M137.9,283.7v3.7c0,.7-.6,1.3-1.3,1.3h-47.1c-.7,0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2,4.3-1.2,5.9,0l14.5,10.4s0,0,.1,0c.8.6,2.2.5,3,0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6,0-2.1l1-.7c1.6-1.2,4.3-1.2,5.9,0l6.6,4.7c.3.2.5.6.5,1Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="99.1" y="293" width="28" height="4" fill="#b2b2b2"/> </g> <g> <g> <rect x="146.3" y="239" width="49.6" height="49.6" rx="1.3" ry="1.3" fill="#d3d3d3"/> <circle cx="182.7" cy="249.6" r="2.8" fill="#b2b2b2"/> <path d="M195.9,283.7v3.7c0,.7-.6,1.3-1.3,1.3h-47.1c-.7,0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2,4.3-1.2,5.9,0l14.5,10.4s0,0,.1,0c.8.6,2.2.5,3,0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6,0-2.1l1-.7c1.6-1.2,4.3-1.2,5.9,0l6.6,4.7c.3.2.5.6.5,1Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="157.1" y="293" width="28" height="4" fill="#b2b2b2"/> </g> <g> <g> <rect x="204.3" y="239" width="49.6" height="49.6" rx="1.3" ry="1.3" fill="#d3d3d3"/> <circle cx="240.7" cy="249.6" r="2.8" fill="#b2b2b2"/> <path d="M253.9,283.7v3.7c0,.7-.6,1.3-1.3,1.3h-47.1c-.7,0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2,4.3-1.2,5.9,0l14.5,10.4s0,0,.1,0c.8.6,2.2.5,3,0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6,0-2.1l1-.7c1.6-1.2,4.3-1.2,5.9,0l6.6,4.7c.3.2.5.6.5,1Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="215.1" y="293" width="28" height="4" fill="#b2b2b2"/> </g> <g> <g> <rect x="262.3" y="239" width="49.6" height="49.6" rx="1.3" ry="1.3" fill="#d3d3d3"/> <circle cx="298.7" cy="249.6" r="2.8" fill="#b2b2b2"/> <path d="M311.9,283.7v3.7c0,.7-.6,1.3-1.3,1.3h-47.1c-.7,0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2,4.3-1.2,5.9,0l14.5,10.4s0,0,.1,0c.8.6,2.2.5,3,0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6,0-2.1l1-.7c1.6-1.2,4.3-1.2,5.9,0l6.6,4.7c.3.2.5.6.5,1Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="273.1" y="293" width="28" height="4" fill="#b2b2b2"/> </g> <g> <g> <rect x="320.3" y="239" width="49.6" height="49.6" rx="1.3" ry="1.3" fill="#d3d3d3"/> <circle cx="356.7" cy="249.6" r="2.8" fill="#b2b2b2"/> <path d="M369.9,283.7v3.7c0,.7-.6,1.3-1.3,1.3h-47.1c-.7,0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2,4.3-1.2,5.9,0l14.5,10.4s0,0,.1,0c.8.6,2.2.5,3,0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6,0-2.1l1-.7c1.6-1.2,4.3-1.2,5.9,0l6.6,4.7c.3.2.5.6.5,1Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="331.1" y="293" width="28" height="4" fill="#b2b2b2"/> </g> </g> </g> <g id="Mediatext" display="none"> <g> <path d="M21.2,252.8v-15.1h55.7v15.1H21.2ZM21.2,222.6v-15.1h151.7v15.1H21.2ZM21.2,192.5v-15.1h151.7v15.1H21.2ZM21.2,162.3v-15.1h151.7v15.1H21.2Z" fill="#d3d3d3"/> <g> <rect x="190.9" y="147.2" width="187.7" height="105.6" rx="4.8" ry="4.8" fill="#d3d3d3"/> <circle cx="341.3" cy="169.1" r="7.7" fill="#b2b2b2"/> <path d="M378.8,233.8v14.1c0,2.7-2.2,4.8-4.8,4.8h-178.3c-2.7,0-4.8-2.2-4.8-4.8v-14.1c0-1.6.7-3,2-3.9l48.8-35.2c6.2-4.5,16.3-4.5,22.5,0l54.8,39.6c.1,0,.3.2.4.3,3.2,2.2,8.3,2,11.3-.3s2.8-6-.4-8.1l-4.9-3.5c-2.7-1.9-2.7-5.9,0-7.8l3.9-2.8c6.2-4.5,16.3-4.5,22.5,0l24.9,18c1.3.9,2,2.4,2,3.9Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> </g> </g> <g id="Textmedia" display="none"> <path d="M227.3,252.8v-15.1h55.7v15.1h-55.7ZM227.3,222.6v-15.1h151.7v15.1h-151.7ZM227.3,192.5v-15.1h151.7v15.1h-151.7ZM227.3,162.3v-15.1h151.7v15.1h-151.7Z" fill="#d3d3d3"/> <g> <rect x="21" y="147.2" width="187.7" height="105.6" rx="4.8" ry="4.8" fill="#d3d3d3"/> <circle cx="171.4" cy="169.1" r="7.7" fill="#b2b2b2"/> <path d="M209,233.8v14.1c0,2.7-2.2,4.8-4.8,4.8H25.8c-2.7,0-4.8-2.2-4.8-4.8v-14.1c0-1.6.7-3,2-3.9l48.8-35.2c6.2-4.5,16.3-4.5,22.5,0l54.8,39.6c.1,0,.3.2.4.3,3.2,2.2,8.3,2,11.3-.3s2.8-6-.4-8.1l-4.9-3.5c-2.7-1.9-2.7-5.9,0-7.8l3.9-2.8c6.2-4.5,16.3-4.5,22.5,0l24.9,18c1.3.9,2,2.4,2,3.9Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> </g> <g id="Slider" display="none"> <g> <rect x="29.8" y="137.1" width="105.1" height="125.9" rx="1.9" ry="1.9" fill="#efefef"/> <rect x="147.3" y="137.1" width="105.1" height="125.9" rx="1.9" ry="1.9" fill="#efefef"/> <rect x="264.8" y="137.1" width="105.1" height="125.9" rx="1.9" ry="1.9" fill="#efefef"/> <rect x="38.9" y="239.7" width="87" height="16" rx="1" ry="1" fill="#757575"/> <rect x="50.6" y="222.7" width="63.6" height="8" rx="1" ry="1" fill="#b2b2b2"/> <rect x="66.9" y="206.7" width="31" height="11" rx="1" ry="1" fill="#b2b2b2"/> <rect x="156.4" y="239.7" width="87" height="16" rx="1" ry="1" fill="#757575"/> <rect x="168.1" y="222.7" width="63.6" height="8" rx="1" ry="1" fill="#b2b2b2"/> <rect x="184.4" y="206.7" width="31" height="11" rx="1" ry="1" fill="#b2b2b2"/> <g> <circle cx="110.3" cy="155.1" r="3.8" fill="#b2b2b2"/> <rect x="35.6" y="144.2" width="93.6" height="52.7" rx="2.4" ry="2.4" fill="#d3d3d3"/> <path d="M129.2,187.4v7c0,1.3-1.1,2.4-2.4,2.4H37.9c-1.3,0-2.4-1.1-2.4-2.4v-7c0-.8.4-1.5,1-2l24.4-17.6c3.1-2.2,8.1-2.2,11.2,0l27.3,19.7c0,0,.1,0,.2.1,1.6,1.1,4.1,1,5.6-.1s1.4-3-.2-4.1l-2.4-1.8c-1.3-1-1.3-2.9,0-3.9l2-1.4c3.1-2.2,8.1-2.2,11.2,0l12.4,9c.6.5,1,1.2,1,2Z" fill="#b2b2b2" fill-rule="evenodd"/> <circle cx="82.9" cy="155.1" r="3.8" fill="#b2b2b2"/> </g> <g> <rect x="153.1" y="144.2" width="93.6" height="52.7" rx="2.4" ry="2.4" fill="#d3d3d3"/> <circle cx="199.9" cy="155.1" r="3.8" fill="#b2b2b2"/> <path d="M246.7,187.4v7c0,1.3-1.1,2.4-2.4,2.4h-88.9c-1.3,0-2.4-1.1-2.4-2.4v-7c0-.8.4-1.5,1-2l24.4-17.6c3.1-2.2,8.1-2.2,11.2,0l27.3,19.7c0,0,.1,0,.2.1,1.6,1.1,4.1,1,5.6-.1s1.4-3-.2-4.1l-2.4-1.8c-1.3-1-1.3-2.9,0-3.9l2-1.4c3.1-2.2,8.1-2.2,11.2,0l12.4,9c.6.5,1,1.2,1,2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="273.8" y="239.7" width="87" height="16" rx="1" ry="1" fill="#757575"/> <rect x="285.6" y="222.7" width="63.6" height="8" rx="1" ry="1" fill="#b2b2b2"/> <rect x="301.8" y="206.7" width="31" height="11" rx="1" ry="1" fill="#b2b2b2"/> <g> <rect x="270.6" y="144.2" width="93.6" height="52.7" rx="2.4" ry="2.4" fill="#d3d3d3"/> <circle cx="317.4" cy="155.1" r="3.8" fill="#b2b2b2"/> <path d="M364.2,187.4v7c0,1.3-1.1,2.4-2.4,2.4h-88.9c-1.3,0-2.4-1.1-2.4-2.4v-7c0-.8.4-1.5,1-2l24.4-17.6c3.1-2.2,8.1-2.2,11.2,0l27.3,19.7c0,0,.1,0,.2.1,1.6,1.1,4.1,1,5.6-.1s1.4-3-.2-4.1l-2.4-1.8c-1.3-1-1.3-2.9,0-3.9l2-1.4c3.1-2.2,8.1-2.2,11.2,0l12.4,9c.6.5,1,1.2,1,2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> </g> <circle cx="16.4" cy="200" r="10" fill="#efefef"/> <path d="M17,205l-4.3-4.3c-.2-.2-.3-.4-.3-.7s.1-.5.3-.7l4.3-4.3,1.4,1.4-3.6,3.6,3.6,3.6-1.4,1.4Z" fill="#757575"/> <circle cx="384" cy="200" r="10" fill="#efefef"/> <path d="M383.4,195l4.3,4.3c.2.2.3.4.3.7s-.1.5-.3.7l-4.3,4.3-1.4-1.4,3.6-3.6-3.6-3.6,1.4-1.4Z" fill="#757575"/> <g> <circle cx="186" cy="272" r="2" fill="#efefef"/> <circle cx="193" cy="272" r="2" fill="#efefef"/> <circle cx="200" cy="272" r="2" fill="#efefef"/> <circle cx="207" cy="272" r="2" fill="#efefef"/> <circle cx="214" cy="272" r="2" fill="#efefef"/> </g> </g> <g id="Include_Landingpage_Kopie" display="none"> <rect x="99.5" y="64" width="201" height="272" rx="6" ry="6" fill="#efefef"/> <g> <path d="M119.9,301.9v-12.9h59v12.9h-59ZM119.9,276.1v-12.9h160.6v12.9H119.9ZM119.9,250.3v-12.9h160.6v12.9H119.9ZM119.9,224.5v-12.9h160.6v12.9H119.9Z" fill="#d3d3d3"/> <g> <rect x="119.5" y="98.1" width="160.5" height="90.3" rx="4.1" ry="4.1" fill="#d3d3d3"/> <circle cx="248.1" cy="116.8" r="6.6" fill="#b2b2b2"/> <path d="M280.2,172.2v12.1c0,2.3-1.8,4.1-4.1,4.1H123.6c-2.3,0-4.1-1.8-4.1-4.1v-12.1c0-1.3.6-2.6,1.7-3.3l41.8-30.1c5.3-3.8,13.9-3.8,19.3,0l46.9,33.8c.1,0,.2.2.3.2,2.8,1.9,7.1,1.7,9.6-.2s2.4-5.1-.3-6.9l-4.2-3c-2.3-1.6-2.3-5,0-6.7l3.4-2.4c5.3-3.8,13.9-3.8,19.3,0l21.3,15.4c1.1.8,1.7,2,1.7,3.3Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> </g> <g> <path d="M77.5,261.1l-.6,9.5c-9.9,0-18.4-2.5-25.3-7.4s-10.4-12.4-10.4-22.2v-13.6c0-4.7-.4-8.5-1.3-11.2s-2.3-4.9-4.2-6.5c-2-1.6-4.5-2.8-7.6-3.5s-6.9-1.4-11.5-1.8v-8.5c4.8-.7,8.7-1.3,11.6-1.9s5.4-1.8,7.4-3.6c2-1.7,3.5-3.9,4.3-6.5s1.3-6.3,1.3-11v-13.7c0-9.8,3.5-17.1,10.4-22.1,6.9-5,15.4-7.5,25.3-7.5l.6,9.5c-7.9,0-14.1,1.7-18.7,5.2s-6.8,8.4-6.8,14.9v15.9c0,7.4-1.6,13.1-4.8,17.1s-7.4,6.7-12.4,7.9v.2c5.3,1.4,9.5,4.1,12.6,8.1s4.6,9.7,4.6,16.9v15.8c0,6.4,2.3,11.4,6.8,14.9,4.5,3.5,10.8,5.3,18.7,5.3Z" fill="#efefef"/> <path d="M383.4,204.2c-4.6.5-8.4,1.1-11.5,1.8s-5.6,1.9-7.6,3.5c-1.9,1.6-3.3,3.8-4.2,6.6s-1.3,6.5-1.3,11.1v13.6c0,9.5-3.3,16.8-10,22-6.6,5.1-15.2,7.7-25.7,7.7l-.6-9.5c7.9,0,14.1-1.7,18.7-5.2,4.5-3.5,6.8-8.5,6.8-15v-15.8c0-6.6,1.4-12,4.1-16.1s7.1-7.1,13.1-8.9v-.2c-5.2-1-9.4-3.7-12.5-8s-4.7-10-4.7-17v-15.9c0-6.5-2.3-11.5-6.8-15s-10.8-5.1-18.7-5.1l.6-9.5c10.5,0,19.1,2.6,25.7,7.8,6.6,5.2,10,12.5,10,21.9v13.7c0,4.7.4,8.4,1.3,11s2.3,4.8,4.3,6.5c2,1.6,4.6,2.7,7.8,3.5s6.9,1.5,11.3,2v8.5Z" fill="#efefef"/> </g> </g> <g id="Kacheln_5er" display="none"> <g>
2521<g> <g> <g> <rect x="30.2" y="80" width="59.9" height="59.9" rx="1.5" ry="1.5" fill="#d3d3d3"/> <circle cx="74" cy="92.8" r="3.4" fill="#b2b2b2"/> <path d="M90,133.9v4.5c0,.8-.7,1.5-1.5,1.5H31.7c-.8,0-1.5-.7-1.5-1.5v-4.5c0-.5.2-1,.6-1.2l15.6-11.2c2-1.4,5.2-1.4,7.2,0l17.5,12.6s0,0,.1,0c1,.7,2.6.6,3.6,0s.9-1.9-.1-2.6l-1.6-1.1c-.9-.6-.9-1.9,0-2.5l1.2-.9c2-1.4,5.2-1.4,7.2,0l7.9,5.7c.4.3.6.8.6,1.2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="43.2" y="145.2" width="33.8" height="4.8" fill="#b2b2b2"/> </g> <g> <g> <rect x="100.1" y="80" width="59.9" height="59.9" rx="1.5" ry="1.5" fill="#d3d3d3"/> <circle cx="144" cy="92.8" r="3.4" fill="#b2b2b2"/> <path d="M159.9,133.9v4.5c0,.8-.7,1.5-1.5,1.5h-56.8c-.8,0-1.5-.7-1.5-1.5v-4.5c0-.5.2-1,.6-1.2l15.6-11.2c2-1.4,5.2-1.4,7.2,0l17.5,12.6s0,0,.1,0c1,.7,2.6.6,3.6,0s.9-1.9-.1-2.6l-1.6-1.1c-.9-.6-.9-1.9,0-2.5l1.2-.9c2-1.4,5.2-1.4,7.2,0l7.9,5.7c.4.3.6.8.6,1.2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="113.2" y="145.2" width="33.8" height="4.8" fill="#b2b2b2"/> </g> <g> <g> <rect x="170.1" y="80" width="59.9" height="59.9" rx="1.5" ry="1.5" fill="#d3d3d3"/> <circle cx="213.9" cy="92.8" r="3.4" fill="#b2b2b2"/> <path d="M229.9,133.9v4.5c0,.8-.7,1.5-1.5,1.5h-56.8c-.8,0-1.5-.7-1.5-1.5v-4.5c0-.5.2-1,.6-1.2l15.6-11.2c2-1.4,5.2-1.4,7.2,0l17.5,12.6s0,0,.1,0c1,.7,2.6.6,3.6,0s.9-1.9-.1-2.6l-1.6-1.1c-.9-.6-.9-1.9,0-2.5l1.2-.9c2-1.4,5.2-1.4,7.2,0l7.9,5.7c.4.3.6.8.6,1.2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="183.1" y="145.2" width="33.8" height="4.8" fill="#b2b2b2"/> </g> <g> <g> <rect x="240.1" y="80" width="59.9" height="59.9" rx="1.5" ry="1.5" fill="#d3d3d3"/> <circle cx="283.9" cy="92.8" r="3.4" fill="#b2b2b2"/> <path d="M299.9,133.9v4.5c0,.8-.7,1.5-1.5,1.5h-56.8c-.8,0-1.5-.7-1.5-1.5v-4.5c0-.5.2-1,.6-1.2l15.6-11.2c2-1.4,5.2-1.4,7.2,0l17.5,12.6s0,0,.1,0c1,.7,2.6.6,3.6,0s.9-1.9-.1-2.6l-1.6-1.1c-.9-.6-.9-1.9,0-2.5l1.2-.9c2-1.4,5.2-1.4,7.2,0l7.9,5.7c.4.3.6.8.6,1.2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="253.1" y="145.2" width="33.8" height="4.8" fill="#b2b2b2"/> </g> <g> <g> <rect x="310" y="80" width="59.9" height="59.9" rx="1.5" ry="1.5" fill="#d3d3d3"/> <circle cx="353.9" cy="92.8" r="3.4" fill="#b2b2b2"/> <path d="M369.8,133.9v4.5c0,.8-.7,1.5-1.5,1.5h-56.8c-.8,0-1.5-.7-1.5-1.5v-4.5c0-.5.2-1,.6-1.2l15.6-11.2c2-1.4,5.2-1.4,7.2,0l17.5,12.6s0,0,.1,0c1,.7,2.6.6,3.6,0s.9-1.9-.1-2.6l-1.6-1.1c-.9-.6-.9-1.9,0-2.5l1.2-.9c2-1.4,5.2-1.4,7.2,0l7.9,5.7c.4.3.6.8.6,1.2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="323" y="145.2" width="33.8" height="4.8" fill="#b2b2b2"/> </g> </g> <g> <g> <g> <rect x="30.2" y="165" width="59.9" height="59.9" rx="1.5" ry="1.5" fill="#d3d3d3"/> <circle cx="74" cy="177.8" r="3.4" fill="#b2b2b2"/> <path d="M90,218.9v4.5c0,.8-.7,1.5-1.5,1.5H31.7c-.8,0-1.5-.7-1.5-1.5v-4.5c0-.5.2-1,.6-1.2l15.6-11.2c2-1.4,5.2-1.4,7.2,0l17.5,12.6s0,0,.1,0c1,.7,2.6.6,3.6,0s.9-1.9-.1-2.6l-1.6-1.1c-.9-.6-.9-1.9,0-2.5l1.2-.9c2-1.4,5.2-1.4,7.2,0l7.9,5.7c.4.3.6.8.6,1.2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="43.2" y="230.2" width="33.8" height="4.8" fill="#b2b2b2"/> </g> <g> <g> <rect x="100.1" y="165" width="59.9" height="59.9" rx="1.5" ry="1.5" fill="#d3d3d3"/> <circle cx="144" cy="177.8" r="3.4" fill="#b2b2b2"/> <path d="M159.9,218.9v4.5c0,.8-.7,1.5-1.5,1.5h-56.8c-.8,0-1.5-.7-1.5-1.5v-4.5c0-.5.2-1,.6-1.2l15.6-11.2c2-1.4,5.2-1.4,7.2,0l17.5,12.6s0,0,.1,0c1,.7,2.6.6,3.6,0s.9-1.9-.1-2.6l-1.6-1.1c-.9-.6-.9-1.9,0-2.5l1.2-.9c2-1.4,5.2-1.4,7.2,0l7.9,5.7c.4.3.6.8.6,1.2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="113.2" y="230.2" width="33.8" height="4.8" fill="#b2b2b2"/> </g> <g> <g> <rect x="170.1" y="165" width="59.9" height="59.9" rx="1.5" ry="1.5" fill="#d3d3d3"/> <circle cx="213.9" cy="177.8" r="3.4" fill="#b2b2b2"/> <path d="M229.9,218.9v4.5c0,.8-.7,1.5-1.5,1.5h-56.8c-.8,0-1.5-.7-1.5-1.5v-4.5c0-.5.2-1,.6-1.2l15.6-11.2c2-1.4,5.2-1.4,7.2,0l17.5,12.6s0,0,.1,0c1,.7,2.6.6,3.6,0s.9-1.9-.1-2.6l-1.6-1.1c-.9-.6-.9-1.9,0-2.5l1.2-.9c2-1.4,5.2-1.4,7.2,0l7.9,5.7c.4.3.6.8.6,1.2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="183.1" y="230.2" width="33.8" height="4.8" fill="#b2b2b2"/> </g> <g> <g> <rect x="240.1" y="165" width="59.9" height="59.9" rx="1.5" ry="1.5" fill="#d3d3d3"/> <circle cx="283.9" cy="177.8" r="3.4" fill="#b2b2b2"/> <path d="M299.9,218.9v4.5c0,.8-.7,1.5-1.5,1.5h-56.8c-.8,0-1.5-.7-1.5-1.5v-4.5c0-.5.2-1,.6-1.2l15.6-11.2c2-1.4,5.2-1.4,7.2,0l17.5,12.6s0,0,.1,0c1,.7,2.6.6,3.6,0s.9-1.9-.1-2.6l-1.6-1.1c-.9-.6-.9-1.9,0-2.5l1.2-.9c2-1.4,5.2-1.4,7.2,0l7.9,5.7c.4.3.6.8.6,1.2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="253.1" y="230.2" width="33.8" height="4.8" fill="#b2b2b2"/> </g> <g> <g> <rect x="310" y="165" width="59.9" height="59.9" rx="1.5" ry="1.5" fill="#d3d3d3"/> <circle cx="353.9" cy="177.8" r="3.4" fill="#b2b2b2"/> <path d="M369.8,218.9v4.5c0,.8-.7,1.5-1.5,1.5h-56.8c-.8,0-1.5-.7-1.5-1.5v-4.5c0-.5.2-1,.6-1.2l15.6-11.2c2-1.4,5.2-1.4,7.2,0l17.5,12.6s0,0,.1,0c1,.7,2.6.6,3.6,0s.9-1.9-.1-2.6l-1.6-1.1c-.9-.6-.9-1.9,0-2.5l1.2-.9c2-1.4,5.2-1.4,7.2,0l7.9,5.7c.4.3.6.8.6,1.2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="323" y="230.2" width="33.8" height="4.8" fill="#b2b2b2"/> </g> </g> <g> <g> <g> <rect x="30.2" y="250" width="59.9" height="59.9" rx="1.5" ry="1.5" fill="#d3d3d3"/> <circle cx="74" cy="262.8" r="3.4" fill="#b2b2b2"/> <path d="M90,303.9v4.5c0,.8-.7,1.5-1.5,1.5H31.7c-.8,0-1.5-.7-1.5-1.5v-4.5c0-.5.2-1,.6-1.2l15.6-11.2c2-1.4,5.2-1.4,7.2,0l17.5,12.6s0,0,.1,0c1,.7,2.6.6,3.6,0s.9-1.9-.1-2.6l-1.6-1.1c-.9-.6-.9-1.9,0-2.5l1.2-.9c2-1.4,5.2-1.4,7.2,0l7.9,5.7c.4.3.6.8.6,1.2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="43.2" y="315.2" width="33.8" height="4.8" fill="#b2b2b2"/> </g> <g> <g> <rect x="100.1" y="250" width="59.9" height="59.9" rx="1.5" ry="1.5" fill="#d3d3d3"/> <circle cx="144" cy="262.8" r="3.4" fill="#b2b2b2"/> <path d="M159.9,303.9v4.5c0,.8-.7,1.5-1.5,1.5h-56.8c-.8,0-1.5-.7-1.5-1.5v-4.5c0-.5.2-1,.6-1.2l15.6-11.2c2-1.4,5.2-1.4,7.2,0l17.5,12.6s0,0,.1,0c1,.7,2.6.6,3.6,0s.9-1.9-.1-2.6l-1.6-1.1c-.9-.6-.9-1.9,0-2.5l1.2-.9c2-1.4,5.2-1.4,7.2,0l7.9,5.7c.4.3.6.8.6,1.2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="113.2" y="315.2" width="33.8" height="4.8" fill="#b2b2b2"/> </g> <g> <g>
2521 <rect x="170.1" y="250" width="59.9" height="59.9" rx="1.5" ry="1.5" fill="#d3d3d3"/> <circle cx="213.9" cy="262.8" r="3.4" fill="#b2b2b2"/> <path d="M229.9,303.9v4.5c0,.8-.7,1.5-1.5,1.5h-56.8c-.8,0-1.5-.7-1.5-1.5v-4.5c0-.5.2-1,.6-1.2l15.6-11.2c2-1.4,5.2-1.4,7.2,0l17.5,12.6s0,0,.1,0c1,.7,2.6.6,3.6,0s.9-1.9-.1-2.6l-1.6-1.1c-.9-.6-.9-1.9,0-2.5l1.2-.9c2-1.4,5.2-1.4,7.2,0l7.9,5.7c.4.3.6.8.6,1.2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="183.1" y="315.2" width="33.8" height="4.8" fill="#b2b2b2"/> </g> <g> <g> <rect x="240.1" y="250" width="59.9" height="59.9" rx="1.5" ry="1.5" fill="#d3d3d3"/> <circle cx="283.9" cy="262.8" r="3.4" fill="#b2b2b2"/> <path d="M299.9,303.9v4.5c0,.8-.7,1.5-1.5,1.5h-56.8c-.8,0-1.5-.7-1.5-1.5v-4.5c0-.5.2-1,.6-1.2l15.6-11.2c2-1.4,5.2-1.4,7.2,0l17.5,12.6s0,0,.1,0c1,.7,2.6.6,3.6,0s.9-1.9-.1-2.6l-1.6-1.1c-.9-.6-.9-1.9,0-2.5l1.2-.9c2-1.4,5.2-1.4,7.2,0l7.9,5.7c.4.3.6.8.6,1.2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="253.1" y="315.2" width="33.8" height="4.8" fill="#b2b2b2"/> </g> <g> <g> <rect x="310" y="250" width="59.9" height="59.9" rx="1.5" ry="1.5" fill="#d3d3d3"/> <circle cx="353.9" cy="262.8" r="3.4" fill="#b2b2b2"/> <path d="M369.8,303.9v4.5c0,.8-.7,1.5-1.5,1.5h-56.8c-.8,0-1.5-.7-1.5-1.5v-4.5c0-.5.2-1,.6-1.2l15.6-11.2c2-1.4,5.2-1.4,7.2,0l17.5,12.6s0,0,.1,0c1,.7,2.6.6,3.6,0s.9-1.9-.1-2.6l-1.6-1.1c-.9-.6-.9-1.9,0-2.5l1.2-.9c2-1.4,5.2-1.4,7.2,0l7.9,5.7c.4.3.6.8.6,1.2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="323" y="315.2" width="33.8" height="4.8" fill="#b2b2b2"/> </g> </g> </g> </g> <g id="Akkordeon" display="none"> <path d="M370,58.5H30v92.5c0,.8.7,1.5,1.5,1.5h337c.8,0,1.5-.7,1.5-1.5V58.5Z" fill="#efefef" fill-rule="evenodd"/> <g> <rect x="30.2" y="166.5" width="339.7" height="29" rx="1.5" ry="1.5" fill="#d3d3d3"/> <path d="M353.1,175.1l4.8-.6c1.2-.2,2.1,1.2,1.5,2.2l-5.2,9c-.6,1-2,1-2.6,0l-5.2-9c-.6-1.1.3-2.4,1.5-2.2l4.8.6c.1,0,.3,0,.4,0Z" fill="#b2b2b2"/> <rect x="39.8" y="176" width="105" height="10" rx="1.5" ry="1.5" fill="#b2b2b2"/> </g> <g> <rect x="40" y="69.5" width="217.8" height="10" rx="1.5" ry="1.5" fill="#d3d3d3"/> <rect x="39.9" y="85" width="313.1" height="10" rx="1.5" ry="1.5" fill="#d3d3d3"/> <rect x="40" y="100.5" width="291.2" height="10" rx="1.5" ry="1.5" fill="#d3d3d3"/> <rect x="40" y="131.5" width="291.2" height="10" rx="1.5" ry="1.5" fill="#d3d3d3"/> <rect x="39.9" y="116" width="160.5" height="10" rx="1.5" ry="1.5" fill="#d3d3d3"/> </g> <g> <rect x="30.2" y="210.2" width="339.7" height="29" rx="1.5" ry="1.5" fill="#d3d3d3"/> <path d="M353.1,218.9l4.8-.6c1.2-.2,2.1,1.2,1.5,2.2l-5.2,9c-.6,1-2,1-2.6,0l-5.2-9c-.6-1.1.3-2.4,1.5-2.2l4.8.6c.1,0,.3,0,.4,0Z" fill="#b2b2b2"/> <rect x="39.8" y="219.8" width="105" height="10" rx="1.5" ry="1.5" fill="#b2b2b2"/> </g> <g> <rect x="30.2" y="254" width="339.7" height="29" rx="1.5" ry="1.5" fill="#d3d3d3"/> <path d="M353.1,262.6l4.8-.6c1.2-.2,2.1,1.2,1.5,2.2l-5.2,9c-.6,1-2,1-2.6,0l-5.2-9c-.6-1.1.3-2.4,1.5-2.2l4.8.6c.1,0,.3,0,.4,0Z" fill="#b2b2b2"/> <rect x="39.8" y="263.5" width="105" height="10" rx="1.5" ry="1.5" fill="#b2b2b2"/> </g> <g> <rect x="30.2" y="297.8" width="339.7" height="29" rx="1.5" ry="1.5" fill="#d3d3d3"/> <path d="M353.1,306.4l4.8-.6c1.2-.2,2.1,1.2,1.5,2.2l-5.2,9c-.6,1-2,1-2.6,0l-5.2-9c-.6-1.1.3-2.4,1.5-2.2l4.8.6c.1,0,.3,0,.4,0Z" fill="#b2b2b2"/> <rect x="39.8" y="307.2" width="105" height="10" rx="1.5" ry="1.5" fill="#b2b2b2"/> </g> <g> <rect x="30.2" y="341.5" width="339.7" height="29" rx="1.5" ry="1.5" fill="#d3d3d3"/> <path d="M353.1,350.1l4.8-.6c1.2-.2,2.1,1.2,1.5,2.2l-5.2,9c-.6,1-2,1-2.6,0l-5.2-9c-.6-1.1.3-2.4,1.5-2.2l4.8.6c.1,0,.3,0,.4,0Z" fill="#b2b2b2"/> <rect x="39.8" y="351" width="105" height="10" rx="1.5" ry="1.5" fill="#b2b2b2"/> </g> <path d="M31.7,29.5h336.7c.8,0,1.5.7,1.5,1.5v27.5H30.2v-27.5c0-.8.7-1.5,1.5-1.5Z" fill="#d3d3d3"/> <path d="M353.1,38.1l4.8-.6c1.2-.2,2.1,1.2,1.5,2.2l-5.2,9c-.6,1-2,1-2.6,0l-5.2-9c-.6-1.1.3-2.4,1.5-2.2l4.8.6c.1,0,.3,0,.4,0Z" fill="#b2b2b2"/> <rect x="39.8" y="39" width="105" height="10" rx="1.5" ry="1.5" fill="#b2b2b2"/> </g> <g id="Scroll-Top" display="none"> <path d="M200,30C106.1,30,30,106.1,30,200s76.1,170,170,170,170-76.1,170-170S293.9,30,200,30ZM275.9,254c-2.6,10.5-15,15.2-24.6,10.1l-49.1-26.3c-1.5-.2-3.1-.2-4.6,0l-49.1,26.3c-9.5,5.1-22,.4-24.6-10.1-1-4-.5-8.4,1.9-12.6l59.2-102.6c6.6-11.5,23.1-11.5,29.8,0l59.2,102.6c2.4,4.1,2.8,8.6,1.9,12.6Z" fill="#d3d3d3"/> </g> <g id="Text" display="none"> <path d="M30,348.3v-42.4h211.9v42.4H30ZM30,263.6v-42.4h339v42.4H30ZM30,178.8v-42.4h339v42.4H30ZM30,94.1v-42.4h339v42.4H30Z" fill="#d3d3d3"/> </g> <g id="Contact" display="none"> <rect x="30" y="139" width="340" height="122" rx="2.7" ry="2.7" fill="#f7f7f7"/> <g> <g> <path d="M85.7,244.2v-8.7h34.9v-31c0-8.5-3-15.7-8.9-21.7s-13.1-8.9-21.7-8.9-15.7,3-21.7,8.9c-5.9,5.9-8.9,13.1-8.9,21.7v26.6h-4.4c-2.4,0-4.5-.9-6.2-2.6-1.7-1.7-2.6-3.8-2.6-6.2v-8.7c0-1.5.4-3,1.1-4.3s1.8-2.4,3.2-3.2l.3-5.8c.6-4.9,2-9.5,4.3-13.7s5.2-7.9,8.6-11c3.5-3.1,7.4-5.6,11.9-7.3s9.2-2.6,14.1-2.6,9.6.9,14.1,2.6,8.4,4.2,11.9,7.3,6.4,6.7,8.6,11,3.7,8.8,4.4,13.7l.3,5.7c1.4.7,2.5,1.6,3.2,2.9s1.1,2.7,1.1,4.1v10c0,1.5-.4,2.8-1.1,4.1s-1.8,2.3-3.2,2.9v5.3c0,2.4-.9,4.5-2.6,6.2-1.7,1.7-3.8,2.6-6.2,2.6h-34.9ZM77,213.7c-1.2,0-2.3-.4-3.1-1.3s-1.3-1.9-1.3-3.1.4-2.3,1.3-3.1,1.9-1.3,3.1-1.3,2.3.4,3.1,1.3,1.3,1.9,1.3,3.1-.4,2.3-1.3,3.1-1.9,1.3-3.1,1.3ZM103.2,213.7c-1.2,0-2.3-.4-3.1-1.3s-1.3-1.9-1.3-3.1.4-2.3,1.3-3.1,1.9-1.3,3.1-1.3,2.3.4,3.1,1.3,1.3,1.9,1.3,3.1-.4,2.3-1.3,3.1-1.9,1.3-3.1,1.3ZM64,206.9c-.5-7.7,1.8-14.3,7-19.9s11.6-8.3,19.3-8.3,12.2,2.1,17.1,6.2,7.9,9.4,8.9,15.8c-6.6,0-12.7-1.9-18.3-5.3s-9.8-8.2-12.8-14.2c-1.2,5.8-3.6,11-7.4,15.5-3.7,4.5-8.3,7.9-13.8,10.2Z" fill="#b2b2b2"/> <path d="M169.3,236.1c-1,0-1.9-.4-2.6-1.1s-1.1-1.6-1.1-2.6v-21.8c0-1,.4-1.9,1.1-2.6s1.6-1.1,2.6-1.1h29.1c1,0,1.9.4,2.6,1.1s1.1,1.6,1.1,2.6v21.8c0,1-.4,1.9-1.1,2.6s-1.6,1.1-2.6,1.1h-29.1ZM183.8,223.4l-14.5-9.1v18.2h29.1v-18.2l-14.5,9.1ZM183.8,219.8l14.5-9.1h-29.1l14.5,9.1ZM169.3,214.3v-3.6,21.8-18.2Z" fill="#b2b2b2"/> <path d="M154.8,177.6h14.5v-3.6h-14.5v3.6ZM154.8,172.1h21.8v-3.6h-21.8v3.6ZM154.8,166.7h21.8v-3.6h-21.8v3.6ZM147.5,192.1v-32.7c0-1,.4-1.9,1.1-2.6s1.6-1.1,2.6-1.1h29.1c1,0,1.9.4,2.6,1.1s1.1,1.6,1.1,2.6v21.8c0,1-.4,1.9-1.1,2.6-.7.7-1.6,1.1-2.6,1.1h-25.5l-7.3,7.3ZM153.2,181.2h27v-21.8h-29.1v23.9l2.1-2ZM151.1,181.2v-21.8,21.8Z" fill="#b2b2b2"/> </g> <g> <rect x="230.2" y="162.4" width="108.5" height="8.4" fill="#b2b2b2"/> <rect x="230.2" y="178.3" width="114.1" height="8.4" fill="#b2b2b2"/> <rect x="230.2" y="194.2" width="101.9" height="8.4" fill="#b2b2b2"/> <rect x="230.2" y="211" width="118.8" height="8.4" fill="#b2b2b2"/> <rect x="230.2" y="227.9" width="87.9" height="8.4" fill="#b2b2b2"/> </g> </g> </g> <g id="Contact_alt" display="none"> <path d="M183,352.7v-33.9h135.8v-120.5c0-33.1-11.5-61.2-34.6-84.2-23.1-23.1-51.1-34.6-84.2-34.6s-61.2,11.5-84.2,34.6c-23.1,23.1-34.6,51.1-34.6,84.2v103.5h-17c-9.3,0-17.3-3.3-24-10-6.6-6.6-10-14.6-10-24v-33.9c0-5.9,1.5-11.5,4.5-16.8,3-5.2,7.1-9.4,12.5-12.5l1.3-22.5c2.3-19.2,7.8-37.1,16.8-53.5,8.9-16.4,20.1-30.7,33.5-42.9,13.4-12.2,28.8-21.6,46.2-28.4,17.4-6.8,35.7-10.2,54.9-10.2s37.5,3.4,54.7,10.2c17.3,6.8,32.7,16.2,46.2,28.2,13.6,12,24.7,26.2,33.5,42.6,8.8,16.4,14.4,34.2,17,53.5l1.3,22.1c5.4,2.5,9.5,6.4,12.5,11.5,3,5.1,4.5,10.5,4.5,16.1v39c0,5.7-1.5,11-4.5,16.1-3,5.1-7.1,8.9-12.5,11.5v20.8c0,9.3-3.3,17.3-10,24-6.6,6.6-14.6,10-24,10h-135.8ZM149.1,233.9c-4.8,0-8.8-1.6-12.1-4.9-3.3-3.3-4.9-7.3-4.9-12.1s1.6-8.8,4.9-12.1c3.3-3.3,7.3-4.9,12.1-4.9s8.8,1.6,12.1,4.9c3.3,3.3,4.9,7.3,4.9,12.1s-1.6,8.8-4.9,12.1c-3.3,3.3-7.3,4.9-12.1,4.9ZM250.9,233.9c-4.8,0-8.8-1.6-12.1-4.9-3.3-3.3-4.9-7.3-4.9-12.1s1.6-8.8,4.9-12.1c3.3-3.3,7.3-4.9,12.1-4.9s8.8,1.6,12.1,4.9c3.3,3.3,4.9,7.3,4.9,12.1s-1.6,8.8-4.9,12.1-7.3,4.9-12.1,4.9ZM98.6,207.6c-2-30,7.1-55.7,27.2-77.2,20.1-21.5,45.1-32.2,75.1-32.2s47.3,8,66.4,24c19.1,16,30.6,36.4,34.6,61.3-25.7-.3-49.4-7.2-71.
25211-20.8-21.6-13.6-38.3-32-49.9-55.2-4.5,22.6-14.1,42.8-28.6,60.5-14.6,17.7-32.5,30.9-53.7,39.7Z" fill="#efefef"/> </g> <g id="Karten_-_4" display="none"> <g> <rect x="291" y="92" width="78.9" height="174" rx="1.9" ry="1.9" fill="#efefef"/> <g> <g> <rect x="297.8" y="179.3" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="297.8" y="188.2" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="297.8" y="197.1" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="297.8" y="205.9" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="297.8" y="214.8" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="297.8" y="223.7" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="297.8" y="232.6" width="44.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> </g> <rect x="297.8" y="246.9" width="65.3" height="12" rx=".8" ry=".8" fill="#757575"/> </g> <g> <rect x="312.1" y="144.7" width="36.8" height="6" rx=".8" ry=".8" fill="#b2b2b2"/> <rect x="306.6" y="166.5" width="47.7" height="6" rx=".8" ry=".8" fill="#b2b2b2"/> <rect x="318.8" y="154.5" width="23.3" height="8.3" rx=".8" ry=".8" fill="#b2b2b2"/> </g> <rect x="295.3" y="98.6" width="70.3" height="39.5" rx="1.8" ry="1.8" fill="#d3d3d3"/> <circle cx="330.5" cy="106.8" r="2.9" fill="#b2b2b2"/> <path d="M365.6,131v5.3c0,1-.8,1.8-1.8,1.8h-66.8c-1,0-1.8-.8-1.8-1.8v-5.3c0-.6.3-1.1.7-1.5l18.3-13.2c2.3-1.7,6.1-1.7,8.4,0l20.5,14.8s0,0,.1.1c1.2.8,3.1.8,4.2-.1s1.1-2.2-.1-3l-1.8-1.3c-1-.7-1-2.2,0-2.9l1.5-1.1c2.3-1.7,6.1-1.7,8.4,0l9.3,6.7c.5.3.7.9.7,1.5Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <g> <rect x="203.7" y="92" width="78.9" height="174" rx="1.9" ry="1.9" fill="#efefef"/> <g> <g> <rect x="210.5" y="179.3" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="210.5" y="188.2" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="210.5" y="197.1" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="210.5" y="205.9" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="210.5" y="214.8" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="210.5" y="223.7" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="210.5" y="232.6" width="44.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> </g> <rect x="210.5" y="246.9" width="65.3" height="12" rx=".8" ry=".8" fill="#757575"/> </g> <g> <rect x="224.8" y="144.7" width="36.8" height="6" rx=".8" ry=".8" fill="#b2b2b2"/> <rect x="219.3" y="166.5" width="47.7" height="6" rx=".8" ry=".8" fill="#b2b2b2"/> <rect x="231.5" y="154.5" width="23.3" height="8.3" rx=".8" ry=".8" fill="#b2b2b2"/> </g> <rect x="208" y="98.6" width="70.3" height="39.5" rx="1.8" ry="1.8" fill="#d3d3d3"/> <circle cx="243.2" cy="106.8" r="2.9" fill="#b2b2b2"/> <path d="M278.4,131v5.3c0,1-.8,1.8-1.8,1.8h-66.8c-1,0-1.8-.8-1.8-1.8v-5.3c0-.6.3-1.1.7-1.5l18.3-13.2c2.3-1.7,6.1-1.7,8.4,0l20.5,14.8s0,0,.1.1c1.2.8,3.1.8,4.2-.1s1.1-2.2-.1-3l-1.8-1.3c-1-.7-1-2.2,0-2.9l1.5-1.1c2.3-1.7,6.1-1.7,8.4,0l9.3,6.7c.5.3.7.9.7,1.5Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <g> <rect x="116.4" y="92" width="78.9" height="174" rx="1.9" ry="1.9" fill="#efefef"/> <g> <g> <rect x="123.2" y="179.3" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="123.2" y="188.2" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="123.2" y="197.1" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="123.2" y="205.9" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="123.2" y="214.8" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="123.2" y="223.7" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="123.2" y="232.6" width="44.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> </g> <rect x="123.2" y="246.9" width="65.3" height="12" rx=".8" ry=".8" fill="#757575"/> </g> <g> <rect x="137.5" y="144.7" width="36.8" height="6" rx=".8" ry=".8" fill="#b2b2b2"/> <rect x="132" y="166.5" width="47.7" height="6" rx=".8" ry=".8" fill="#b2b2b2"/> <rect x="144.2" y="154.5" width="23.3" height="8.3" rx=".8" ry=".8" fill="#b2b2b2"/> </g> <rect x="120.7" y="98.6" width="70.3" height="39.5" rx="1.8" ry="1.8" fill="#d3d3d3"/> <circle cx="155.9" cy="106.8" r="2.9" fill="#b2b2b2"/> <path d="M191.1,131v5.3c0,1-.8,1.8-1.8,1.8h-66.8c-1,0-1.8-.8-1.8-1.8v-5.3c0-.6.3-1.1.7-1.5l18.3-13.2c2.3-1.7,6.1-1.7,8.4,0l20.5,14.8s0,0,.1.1c1.2.8,3.1.8,4.2-.1s1.1-2.2-.1-3l-1.8-1.3c-1-.7-1-2.2,0-2.9l1.5-1.1c2.3-1.7,6.1-1.7,8.4,0l9.3,6.7c.5.3.7.9.7,1.5Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <g> <rect x="29.1" y="92" width="78.9" height="174" rx="1.9" ry="1.9" fill="#efefef"/> <g> <g> <rect x="35.9" y="179.3" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="35.9" y="188.2" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="35.9" y="197.1" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="35.9" y="205.9" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="35.9" y="214.8" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="35.9" y="223.7" width="65.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> <rect x="35.9" y="232.6" width="44.3" height="6" rx=".8" ry=".8" fill="#d3d3d3"/> </g> <rect x="35.9" y="246.9" width="65.3" height="12" rx=".8" ry=".8" fill="#757575"/> </g> <g> <rect x="50.2" y="144.7" width="36.8" height="6" rx=".8" ry=".8" fill="#b2b2b2"/> <rect x="44.7" y="166.5" width="47.7" height="6" rx=".8" ry=".8" fill="#b2b2b2"/> <rect x="56.9" y="154.5" width="23.3" height="8.3" rx=".8" ry=".8" fill="#b2b2b2"/> </g> <rect x="33.4" y="98.6" width="70.3" height="39.5" rx="1.8" ry="1.8" fill="#d3d3d3"/> <circle cx="68.6" cy="106.8" r="2.9" fill="#b2b2b2"/> <path d="M103.8,131v5.3c0,1-.8,1.8-1.8,1.8H35.2c-1,0-1.8-.8-1.8-1.8v-5.3c0-.6.3-1.1.7-1.5l18.3-13.2c2.3-1.7,6.1-1.7,8.4,0l20.5,14.8s0,0,.1.1c1.2.8,3.1.8,4.2-.1s1.1-2.2-.1-3l-1.8-1.3c-1-.7-1-2.2,0-2.9l1.5-1.1c2.3-1.7,6.1-1.7,8.4,0l9.3,6.7c.5.3.7.9.7,1.5Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> </g> <g id="Karten_-_3" display="none"> <circle cx="110.3" cy="111.7" r="3.8" fill="#b2b2b2"/> <g> <rect x="29.8" y="76.2" width="105.1" height="247.5" rx="2.7" ry="2.7" fill="#efefef"/> <rect x="50.6" y="85.2" width="63.6" height="9" rx="1" ry="1" fill="#b2b2b2"/> <g> <g> <rect x="38.9" y="208.2" width="87" height="8" rx="1" ry="1" fill="#d3d3d3"/> <rect x="38.9" y="220.1" width="87" height="8" rx="1" ry="1" fill="#d3d3d3"/> <rect x="38.9" y="231.9" width="87" height="8" rx="1" ry="1" fill="#d3d3d3"/> <rect x="38.9" y="243.8" width="87" height="8" rx="1" ry="1" fill="#d3d3d3"/> <rect x="38.9" y="255.6" width="87" height="8" rx="1" ry="1" fill="#d3d3d3"/> <rect x="38.9" y="267.4" width="87" height="8" rx="1" ry="1" fill="#d3d3d3"/> <rect x="38.9" y="279.2" width="59" height="8" rx="1" ry="1" fill="#d3d3d3"/> </g> <rect x="38.9" y="298.2" width="87" height="16" rx="1" ry="1" fill="#757575"/> </g> <g> <rect x="57.9" y="162.2" width="49" height="8" rx="1" ry="1" fill="#b2b2b2"/> <rect x="50.6" y="191.2" width="63.6" height="8" rx="1" ry="1" fill="#b2b2b2"/> <rect x="66.9" y="175.2" width="31" height="11" rx="1" ry="1" fill="#b2b2b2"/> </g> <rect x="35.6" y="100.8" width="93.6" height="52.7" rx="2.4" ry="2.4" fill="#d3d3d3"/> <path d="M129.2,144v7c0,1.3-1.1,2.4-2.4,2.4H37.9c-1.3,0-2.4-1.1-2.4-2.4v-7c0-.8.4-1.5,1-2l24.4-17.6c3.1-2.2,8.1-2.2,11.2,0l27.3,19.7c0,0,.1,0,.2.1,1.6,1.1,4.1,1,5.6-.1s1.4-3-.2-4.1l-2.4-1.8c-1.3-1-1.3-2.9,0-3.9l2-1.4c3.1-2.2,8.1-2.2,11.2,0l12.4,9c.6.5,1,1.2,1,2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <g> <rect x="147.3" y="76.2" width="105.1" height="247.5" rx="2.7" ry="2.7" fill="#efefef"/> <rect x="168.1" y="85.2" width="63.6" height="9" rx="1" ry="1" fill="#b2b2b2"/> <g> <g> <rect x="156.3" y="208.2" width="87" height="8" rx="1" ry="1" fill="#d3d3d3"/> <rect x="156.3" y="220.1" width="87" height="8" rx="1" ry="1" fill="#d3d3d3"/> <rect x="156.3" y="231.9" width="87" height="8" rx="1" ry="1" fill="#d3d3d3"/> <rect x="156.3" y="243.8" width="87" height="8" rx="1" ry="1" fill="#d3d3d3"/> <rect x="156.3" y="255.6" width="87" height="8" rx="1" ry="1" fill="#d3d3d3"/> <rect x="156.3" y="267.4" width="87" height="8" rx="1" ry="1" fill="#d3d3d3"/> <rect x="156.3" y="279.2" width="59" height="8" rx="1" ry="1" fill="#d3d3d3"/> </g> <rect x="156.4" y="298.2" width="87" height="16" rx="1" ry="1" fill="#757575"/> </g> <g> <rect x="175.4" y="162.2" width="49" height="8" rx="1" ry="1" fill="#b2b2b2"/> <rect x="168.1" y="191.2" width="63.6" height="8" rx="1" ry="1" fill="#b2b2b2"/> <rect x="184.4" y="175.2" width="31" height="11" rx="1" ry="1" fill="#b2b2b2"/> </g> <rect x="153.1" y="100.8" width="93.6" height="52.7" rx="2.4" ry="2.4" fill="#d3d3d3"/> <circle cx="199.9" cy="111.7" r="3.8" fill="#b2b2b2"/> <path d="M246.7,144v7c0,1.3-1.1,2.4-2.4,2.4h-88.9c-1.3,0-2.4-1.1-2.4-2.4v-7c0-.8.4-1.5,1-2l24.4-17.6c3.1-2.2,8.1-2.2,11.2,0l27.3,19.7c0,0,.1,0,.2.1,1.6,1.1,4.1,1,5.6-.1s1.4-3-.2-4.1l-2.4-1.8c-1.3-1-1.3-2.9,0-3.9l2-1.4c3.1-2.2,8.1-2.2,11.2,0l12.4,9c.6.5,1,1.2,1,2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <g> <rect x="264.8" y="76.2" width="105.1" height="247.5" rx="2.7" ry="2.7" fill="#efefef"/> <rect x="285.6" y="85.2" width="63.6" height="9" rx="1" ry="1" fill="#b2b2b2"/> <g> <g> <rect x="273.8" y="208.2" width="87" height="8" rx="1" ry="1" fill="#d3d3d3"/> <rect x="273.8" y="220.1" width="87" height="8" rx="1" ry="1" fill="#d3d3d3"/> <rect x="273.8" y="231.9" width="87" height="8" rx="1" ry="1" fill="#d3d3d3"/> <rect x="273.8" y="243.8" width="87" height="8" rx="1" ry="1" fill="#d3d3d3"/> <rect x="273.8" y="255.6" width="87" height="8" rx="1" ry="1" fill="#d3d3d3"/> <rect x="273.8" y="267.4" width="87" height="8" rx="1" ry="1" fill="#d3d3d3"/> <rect x="273.8" y="279.2" width="59" height="8" rx="1" ry="1" fill="#d3d3d3"/> </g> <rect x="273.8" y="298.2" width="87" height="16" rx="1" ry="1" fill="#757575"/> </g> <g> <rect x="292.9" y="162.2" width="49" height="8" rx="1" ry="1" fill="#b2b2b2"/> <rect x="285.6" y="191.2" width="63.6" height="8" rx="1" ry="1" fill="#b2b2b2"/> <rect x="301.8" y="175.2" width="31" height="11" rx="1" ry="1" fill="#b2b2b2"/> </g> <rect x="270.6" y="100.8" width="93.6" height="52.7" rx="2.4" ry="2.4" fill="#d3d3d3"/> <circle cx="317.4" cy="111.7" r="3.8" fill="#b2b2b2"/> <path d="M364.2,144v7c0,1.3-1.1,2.4-2.4,2.4h-88.9c-1.3,0-2.4-1.1-2.4-2.4v-7c0-.8.4-1.5,1-2l24.4-17.6c3.1-2.2,8.1-2.2,11.2,0l27.3,19.7c0,0,.1,0,.2.1,1.6,1.1,4.1,1,5.6-.1s1.4-3-.2-4.1l-2.4-1.8c-1.3-1-1.3-2.9,0-3.9l2-1.4c3.1-2.2,8.1-2.2,11.2,0l12.4,9c.6.5,1,1.2,1,2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> </g> <g id="Karten_-_3_alt." display="none"> <g> <rect x="29.8" y="137.1" width="105.1" height="125.9" rx="1.9" ry="1.9" fill="#efefef"/> <rect x="147.3" y="137.1" width="105.1" height="125.9" rx="1.9" ry="1.9" fill="#efefef"/> <rect x="264.8" y="137.1" width="105.1" height="125.9" rx="1.9" ry="1.9" fill="#efefef"/> <rect x="38.9" y="239.7" width="87" height="16" rx="1" ry="1" fill="#757575"/> <rect x="50.6" y="222.7" width="63.6" height="8" rx="1" ry="1" fill="#b2b2b2"/> <rect x="66.9" y="206.7" width="31" height="11" rx="1" ry="1" fill="#b2b2b2"/> <rect x="156.4" y="239.7" width="87" height="16" rx="1" ry="1" fill="#757575"/> <rect x="168.1" y="222.7" width="63.6" height="8" rx="1" ry="1" fill="#b2b2b2"/> <rect x="184.4" y="206.7" width="31" height="11" rx="1" ry="1" fill="#b2b2b2"/> <g> <circle cx="110.3" cy="155.1" r="3.8" fill="#b2b2b2"/> <rect x="35.6" y="144.2" width="93.6" height="52.7" rx="2.4" ry="2.4" fill="#d3d3d3"/> <path d="M129.2,187.4v7c0,1.3-1.1,2.4-2.4,2.4H37.9c-1.3,0-2.4-1.1-2.4-2.4v-7c0-.8.4-1.5,1-2l24.4-17.6c3.1-2.2,8.1-2.2,11.2,0l27.3,19.7c0,0,.1,0,.2.1,1.6,1.1,4.1,1,5.6-.1s1.4-3-.2-4.1l-2.4-1.8c-1.3-1-1.3-2.9,0-3.9l2-1.4c3.1-2.2,8.1-2.2,11.2,0l12.4,9c.6.5,1,1.2,1,2Z" fill="#b2b2b2" fill-rule="evenodd"/> <circle cx="82.9" cy="155.1" r="3.8" fill="#b2b2b2"/> </g> <g> <rect x="153.1" y="144.2" width="93.6" height="52.7" rx="2.4" ry="2.4" fill="#d3d3d3"/> <circle cx="199.9" cy="155.1" r="3.8" fill="#b2b2b2"/> <path d="M246.7,187.4v7c0,1.3-1.1,2.4-2.4,2.4h-88.9c-1.3,0-2.4-1.1-2.4-2.4v-7c0-.8.4-1.5,1-2l24.4-17.6c3.1-2.2,8.1-2.2,11.2,0l27.3,19.7c0,0,.1,0,.2.1,1.6,1.1,4.1,1,5.6-.1s1.4-3-.2-4.1l-2.4-1.8c-1.3-1-1.3-2.9,0-3.9l2-1.4c3.1-2.2,8.1-2.2,11.2,0l12.4,9c.6.5,1,1.2,1,2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="273.8" y="239.7" width="87" height="16" rx="1" ry="1" fill="#757575"/> <rect x="285.6" y="222.7" width="63.6" height="8" rx="1" ry="1" fill="#b2b2b2"/> <rect x="301.8" y="206.7" width="31" height="11" rx="1" ry="1" fill="#b2b2b2"/> <g> <rect x="270.6" y="144.2" width="93.6" height="52.7" rx="2.4" ry="2.4" fill="#d3d3d3"/> <circle cx="317.4" cy="155.1" r="3.8" fill="#b2b2b2"/> <path d="M364.2,187.4v7c0,1.3-1.1,2.4-2.4,2.4h-88.9c-1.3,0-2.4-1.1-2.4-2.4v-7c0-.8.4-1.5,1-2l24.4-17.6c3.1-2.2,8.1-2.2,11.2,0l27.3,19.7c0,0,.1,0,.2.1,1.6,1.1,4.1,1,5.6-.1s1.4-3-.2-4.1l-2.4-1.8c-1.3-1-1.3-2.9,0-3.9l2-1.4c3.1-2.2,8.1-2.2,11.2,0l12.4,9c.6.5,1,1.2,1,2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> </g> </g>
2521 <g id="Code" display="none"> <path d="M242.3,157.8l42.3,42.3-42.3,42.3M157.7,242.5l-42.3-42.3,42.3-42.3M87.2,355.3h225.7c23.4,0,42.3-18.9,42.3-42.3V87.3c0-23.4-18.9-42.3-42.3-42.3H87.2c-23.4,0-42.3,18.9-42.3,42.3v225.7c0,23.4,18.9,42.3,42.3,42.3Z" fill="none" stroke="#d3d3d3" stroke-linecap="round" stroke-linejoin="round" stroke-width="28.2"/> </g> <g id="Unternavigation" display="none"> <g> <g> <rect x="29.8" y="168" width="94.4" height="25" fill="#d3d3d3"/> <rect x="152.6" y="168" width="94.4" height="25" fill="#d3d3d3"/> <rect x="275.4" y="168" width="94.4" height="25" fill="#d3d3d3"/> </g> <g> <rect x="91.2" y="207" width="94.4" height="25" fill="#d3d3d3"/> <rect x="214" y="207" width="94.4" height="25" fill="#d3d3d3"/> </g> </g> </g> <g id="Karten_-_2" display="none"> <g> <rect x="29.7" y="56" width="160.5" height="288" rx="2.5" ry="2.5" fill="#efefef"/> <g> <g> <rect x="38.7" y="88.8" width="142.9" height="80.4" rx="3.7" ry="3.7" fill="#d3d3d3"/> <circle cx="153.1" cy="105.5" r="5.9" fill="#b2b2b2"/> <path d="M181.7,154.7v10.8c0,2-1.6,3.7-3.7,3.7H42.4c-2,0-3.7-1.6-3.7-3.7v-10.7c0-1.2.6-2.3,1.5-3l37.2-26.8c4.7-3.4,12.4-3.4,17.1,0l41.7,30.1c0,0,.2.1.3.2,2.4,1.6,6.3,1.5,8.6-.2s2.1-4.5-.3-6.2l-3.7-2.7c-2-1.5-2-4.5,0-6l3-2.2c4.7-3.4,12.4-3.4,17.1,0l19,13.7c1,.7,1.5,1.8,1.5,3Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="74.8" y="68.5" width="63.6" height="9" rx="2" ry="2" fill="#b2b2b2"/> <g> <g> <rect x="38.2" y="225.5" width="142.9" height="8" rx="2" ry="2" fill="#d3d3d3"/> <rect x="38.2" y="237.3" width="142.9" height="8" rx="2" ry="2" fill="#d3d3d3"/> <rect x="38.2" y="249.2" width="142.9" height="8" rx="2" ry="2" fill="#d3d3d3"/> <rect x="38.2" y="261" width="142.9" height="8" rx="2" ry="2" fill="#d3d3d3"/> <rect x="38.2" y="272.8" width="142.9" height="8" rx="2" ry="2" fill="#d3d3d3"/> <rect x="38.2" y="284.7" width="142.9" height="8" rx="2" ry="2" fill="#d3d3d3"/> <rect x="38.2" y="296.5" width="96.9" height="8" rx="2" ry="2" fill="#d3d3d3"/> </g> <rect x="38.2" y="315.5" width="142.9" height="16" rx="2" ry="2" fill="#757575"/> </g> <g> <rect x="69.4" y="179.5" width="80.4" height="8" rx="2" ry="2" fill="#b2b2b2"/> <rect x="57.4" y="208.5" width="104.4" height="8" rx="2" ry="2" fill="#b2b2b2"/> <rect x="84.1" y="192.5" width="51" height="11" rx="2" ry="2" fill="#b2b2b2"/> </g> </g> <rect x="209.7" y="56" width="160.5" height="288" rx="2.5" ry="2.5" fill="#efefef"/> <g> <g> <rect x="218.7" y="88.8" width="142.9" height="80.4" rx="3.7" ry="3.7" fill="#d3d3d3"/> <circle cx="333.1" cy="105.5" r="5.9" fill="#b2b2b2"/> <path d="M361.7,154.7v10.8c0,2-1.6,3.7-3.7,3.7h-135.7c-2,0-3.7-1.6-3.7-3.7v-10.7c0-1.2.6-2.3,1.5-3l37.2-26.8c4.7-3.4,12.4-3.4,17.1,0l41.7,30.1c0,0,.2.1.3.2,2.4,1.6,6.3,1.5,8.6-.2s2.1-4.5-.3-6.2l-3.7-2.7c-2-1.5-2-4.5,0-6l3-2.2c4.7-3.4,12.4-3.4,17.1,0l19,13.7c1,.7,1.5,1.8,1.5,3Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <rect x="254.8" y="68.5" width="63.6" height="9" rx="2" ry="2" fill="#b2b2b2"/> <g> <g> <rect x="218.2" y="225.5" width="142.9" height="8" rx="2" ry="2" fill="#d3d3d3"/> <rect x="218.2" y="237.3" width="142.9" height="8" rx="2" ry="2" fill="#d3d3d3"/> <rect x="218.2" y="249.2" width="142.9" height="8" rx="2" ry="2" fill="#d3d3d3"/> <rect x="218.2" y="261" width="142.9" height="8" rx="2" ry="2" fill="#d3d3d3"/> <rect x="218.2" y="272.8" width="142.9" height="8" rx="2" ry="2" fill="#d3d3d3"/> <rect x="218.2" y="284.7" width="142.9" height="8" rx="2" ry="2" fill="#d3d3d3"/> <rect x="218.2" y="296.5" width="96.9" height="8" rx="2" ry="2" fill="#d3d3d3"/> </g> <rect x="218.2" y="315.5" width="142.9" height="16" rx="2" ry="2" fill="#757575"/> </g> <g> <rect x="249.4" y="179.5" width="80.4" height="8" rx="2" ry="2" fill="#b2b2b2"/> <rect x="237.4" y="208.5" width="104.4" height="8" rx="2" ry="2" fill="#b2b2b2"/> <rect x="264.1" y="192.5" width="51" height="11" rx="2" ry="2" fill="#b2b2b2"/> </g> </g> </g> </g> <g id="App_Buttons_Kopie" display="none"> <rect x="30.2" y="150" width="161.8" height="100" rx="9.8" ry="9.8" fill="#757575"/> <rect x="208.2" y="150" width="161.8" height="100" rx="9.8" ry="9.8" fill="#757575"/> <path d="M127.4,201.5c0-4.7,2.1-8.3,6.4-10.9-2.4-3.5-6.1-5.4-10.9-5.8-4.6-.4-9.6,2.7-11.4,2.7s-6.4-2.5-9.9-2.5c-7.2.1-14.8,5.7-14.8,17.2s.6,6.9,1.9,10.5c1.7,4.7,7.6,16.3,13.8,16.1,3.2,0,5.5-2.3,9.8-2.3s6.2,2.3,9.9,2.3c6.3,0,11.7-10.6,13.2-15.4-8.4-4-8-11.6-8-11.9h0ZM120.1,180.4c3.5-4.2,3.2-8,3.1-9.4-3.1.2-6.7,2.1-8.8,4.5-2.3,2.6-3.6,5.7-3.3,9.3,3.4.3,6.4-1.5,9-4.4Z" fill="#efefef"/> <path d="M306,210.6c-1.7,0-3.1-1.4-3.1-3.1s1.4-3.1,3.1-3.1,3.1,1.4,3.1,3.1-1.4,3.1-3.1,3.1M272.3,210.6c-1.7,0-3.1-1.4-3.1-3.1s1.4-3.1,3.1-3.1,3.1,1.4,3.1,3.1-1.4,3.1-3.1,3.1M307.1,192.2l6.1-10.6c.4-.6.2-1.4-.4-1.8-.6-.4-1.4-.2-1.8.4,0,0,0,0,0,0h0l-6.2,10.7c-10-4.5-21.4-4.5-31.4,0l-6.2-10.7c-.3-.6-1.1-.9-1.7-.5s-.9,1.1-.5,1.7c0,0,0,0,0,0h0l6.1,10.6c-10.5,5.7-17.6,16.3-18.7,28.8h73.3c-1-12.5-8.2-23.1-18.7-28.8" fill="#efefef"/> </g> <g id="Button_50_x25__Kopie" display="none"> <g> <rect x="30.2" y="164.5" width="161.8" height="71" rx="9.8" ry="9.8" fill="#757575"/> <rect x="77.8" y="187.9" width="66.6" height="24.2" rx="4.5" ry="4.5" fill="#efefef"/> <rect x="208.3" y="164.5" width="161.8" height="71" rx="9.8" ry="9.8" fill="#757575"/> <rect x="255.9" y="187.9" width="66.6" height="24.2" rx="4.5" ry="4.5" fill="#efefef"/> </g> </g> <g id="Button_33_x25_" display="none"> <g> <rect x="30.2" y="164.5" width="105.8" height="71" rx="9.8" ry="9.8" fill="#757575"/> <rect x="61.3" y="187.9" width="43.6" height="24.2" rx="4.5" ry="4.5" fill="#efefef"/> <rect x="147.2" y="164.5" width="105.8" height="71" rx="9.8" ry="9.8" fill="#757575"/> <rect x="178.3" y="187.9" width="43.6" height="24.2" rx="4.5" ry="4.5" fill="#efefef"/> <rect x="264.2" y="164.5" width="105.8" height="71" rx="9.8" ry="9.8" fill="#757575"/> <rect x="295.3" y="187.9" width="43.6" height="24.2" rx="4.5" ry="4.5" fill="#efefef"/> </g> </g> <g id="Button_100_x25_" display="none"> <g> <rect x="30.3" y="164.5" width="340" height="71" rx="9.8" ry="9.8" fill="#757575"/> <rect x="130.2" y="187.9" width="140" height="24.2" rx="4.5" ry="4.5" fill="#efefef"/> </g> </g> <g id="H4" display="none"> <path d="M102.3,125.4v75.2M102.3,200.7v75.3M102.3,200.7h105.3M207.6,125.4v75.2M207.6,200.7v75.3" fill="none" stroke="#efefef" stroke-linecap="round" stroke-linejoin="round" stroke-width="15"/> <polyline points="261.5 178.5 245.3 234.1 298 234.1 298 178.2 298 275.9" fill="none" stroke="#efefef" stroke-linecap="round" stroke-linejoin="round" stroke-width="15"/> </g> <g id="H3" display="none"> <path d="M289.5,227.1c7.5,10.5,10.2,23.6,7.4,36.1-1.5,7-8,11.5-15.1,12.1-12.2,1.1-24.4.8-36.5-1M289.5,227.1c7.5-10.5,10.2-23.6,7.4-36.1-1.5-7-8-11.5-15.1-12.1-12.2-1.1-24.4-.8-36.5,1M289.5,227.1h-29.1M102.3,125.4v75.2M102.3,200.7v75.3M102.3,200.7h105.3M207.6,125.4v75.2M207.6,200.7v75.3" fill="none" stroke="#efefef" stroke-linecap="round" stroke-linejoin="round" stroke-width="15"/> </g> <g id="H2" display="none"> <path d="M298,275.9h-52.8v-16.2c0-8.6,4.8-16.4,12.5-20.2l29-14.5c6.5-3.3,11.2-9.6,11.2-16.9s-.4-9.9-1.2-14.7c-1.4-8.3-8.4-14.3-16.8-15-11.6-.9-23.3-.5-34.8,1.2M101.9,125.1v75.4M101.9,200.5v75.4M101.9,200.5h105.5M207.5,125.1v75.4M207.5,200.5v75.4" fill="none" stroke="#efefef" stroke-linecap="round" stroke-linejoin="round" stroke-width="15.1"/> </g> <g id="H1" display="none"> <path d="M101.5,124.2v75.7M101.5,200v75.8M101.5,200h106M207.6,124.3v75.7M207.6,200v75.8M253,188.6l22.7-15.1v102.3M275.8,275.7h-22.7M275.8,275.7h22.7" fill="none" stroke="#f7f7f7" stroke-linecap="round" stroke-linejoin="round" stroke-width="15.1"/> </g> <g id="H3_Trennstrich" display="none"> <path d="M289.5,227.1c7.5,10.5,10.2,23.6,7.4,36.1-1.5,7-8,11.5-15.1,12.1-12.2,1.1-24.4.8-36.5-1M289.5,227.1c7.5-10.5,10.2-23.6,7.4-36.1-1.5-7-8-11.5-15.1-12.1-12.2-1.1-24.4-.8-36.5,1M289.5,227.1h-29.1M102.3,125.4v75.2M102.3,200.7v75.3M102.3,200.7h105.3M207.6,125.4v75.2M207.6,200.7v75.3" fill="none" stroke="#efefef" stroke-linecap="round" stroke-linejoin="round" stroke-width="15"/> <g> <path d="M370,204.5v15h-29.1c-4.2,0-7.5-3.4-7.5-7.5s3.4-7.5,7.5-7.5h29.1Z" fill="#efefef"/> <path d="M66.7,212.1c0,4.2-3.4,7.5-7.5,7.5h-29.1v-15h29.1c4.2,0,7.5,3.4,7.5,7.5Z" fill="#efefef"/> </g> </g> <g id="H2_Trennstrich" display="none"> <path d="M298,275.9h-52.8v-16.2c0-8.6,4.8-16.4,12.5-20.2l29-14.5c6.5-3.3,11.2-9.6,11.2-16.9s-.4-9.9-1.2-14.7c-1.4-8.3-8.4-14.3-16.8-15-11.6-.9-23.3-.5-34.8,1.2M101.9,125.1v75.4M101.9,200.5v75.4M101.9,200.5h105.5M207.5,125.1v75.4M207.5,200.5v75.4" fill="none" stroke="#efefef" stroke-linecap="round" stroke-linejoin="round" stroke-width="15.1"/> <g> <path d="M370,204.5v15h-29.1c-4.2,0-7.5-3.4-7.5-7.5s3.4-7.5,7.5-7.5h29.1Z" fill="#efefef"/> <path d="M66.7,212.1c0,4.2-3.4,7.5-7.5,7.5h-29.1v-15h29.1c4.2,0,7.5,3.4,7.5,7.5Z" fill="#efefef"/> </g> </g> <g id="H1_Trennstrich" display="none"> <path d="M101.5,124.2v75.7M101.5,200v75.8M101.5,200h106M207.6,124.3v75.7M207.6,200v75.8M253,188.6l22.7-15.1v102.3M275.8,275.7h-22.7M275.8,275.7h22.7" fill="none" stroke="#f7f7f7" stroke-linecap="round" stroke-linejoin="round" stroke-width="15.1"/> <g> <path d="M370,204.5v15h-29.1c-4.2,0-7.5-3.4-7.5-7.5s3.4-7.5,7.5-7.5h29.1Z" fill="#efefef"/> <path d="M66.7,212.1c0,4.2-3.4,7.5-7.5,7.5h-29.1v-15h29.1c4.2,0,7.5,3.4,7.5,7.5Z" fill="#efefef"/> </g> </g> <g id="Youtube_Kopie" display="none"> <g> <rect x="30.2" y="104.5" width="339.6" height="191" rx="10" ry="10" fill="#757575"/> <path d="M288.2,155.5c-2.1-8-8.4-14.3-16.3-16.4-14.4-3.9-72-3.9-72-3.9,0,0-57.6,0-72,3.9-7.9,2.1-14.2,8.4-16.3,16.4-3.8,14.5-3.8,44.6-3.8,44.6,0,0,0,30.1,3.8,44.6,2.1,8,8.4,14,16.3,16.1,14.4,3.9,72,3.9,72,3.9,0,0,57.6,0,72-3.9,7.9-2.1,14.2-8.2,16.3-16.1,3.8-14.5,3.8-44.6,3.8-44.6,0,0,0-30.1-3.8-44.6h0ZM181.2,227.5v-54.8l48.1,27.4-48.1,27.4h0Z" fill="#f7f7f7"/> </g> </g> <g id="DirectVideo" display="none"> <g id="Direct"> <path d="M-399.2,291.5h-319.6c-5.5,0-10-4.5-10-10V110.5c0-5.5,4.5-10,10-10h319.6c5.5,0,10,4.5,10,10v171c0,5.5-4.5,10-10,10Z" fill="#757575"/> <path d="M-604,144c0-3.4,3.6-5.5,6.6-3.8l91.3,52c3,1.7,3,6,0,7.6l-91.3,52c-2.9,1.7-6.6-.4-6.6-3.8v-104Z" fill="#f7f7f7"/> </g> </g> <g id="Kaltura"> <path d="M359.8,293.5H40.2c-5.5,0-10-4.5-10-10V112.5c0-5.5,4.5-10,10-10h319.6c5.5,0,10,4.5,10,10v171c0,5.5-4.5,10-10,10Z" fill="#757575"/> <g> <path id="Layer" d="M200,171.5c-2.8,0-5.1-2.8-5.1-5.6v-24.1c0-2.8,2.3-5.6,5.1-5.6s5.1,2.8,5.1,5.6v24.1c0,2.8-2.3,5.6-5.1,5.6Z" fill="#fff"/> <path id="Layer1" data-name="Layer" d="M181.2,179.2c-2,2-5.6,1.6-7.6-.4l-17.1-17.1c-2-2-2.4-5.6-.4-7.6s5.6-1.6,7.6.4l17.1,17.1c2,2,2.4,5.6.4,7.6Z" fill="#fff"/> <path id="Layer2" data-name="Layer" d="M173.5,198c0,2.8-2.8,5.1-5.6,5.1h-24.2c-2.8,0-5.6-2.3-5.6-5.1s2.8-5.1,5.6-5.1h24.2c2.8,0,5.6,2.3,5.
25216,5.1Z" fill="#fff"/> <path id="Layer3" data-name="Layer" d="M181.2,216.7c2,2,1.6,5.6-.4,7.6l-17.1,17.1c-2,2-5.6,2.4-7.6.4-2-2-1.6-5.6.4-7.6l17.1-17.1c2-2,5.6-2.4,7.6-.4h0Z" fill="#fff"/> <path id="Layer4" data-name="Layer" d="M200,224.5c2.8,0,5.1,2.8,5.1,5.6v24.1c0,2.8-2.3,5.6-5.1,5.6s-5.1-2.8-5.1-5.6v-24.1c0-2.8,2.3-5.6,5.1-5.6Z" fill="#fff"/> <path id="Layer5" data-name="Layer" d="M218.8,216.7c2-2,5.6-1.6,7.6.4l17.1,17.1c2,2,2.4,5.6.4,7.6s-5.6,1.6-7.6-.4l-17.1-17.1c-2-2-2.4-5.6-.4-7.6h0Z" fill="#fff"/> <path id="Layer6" data-name="Layer" d="M226.5,198c0-2.8,2.8-5.1,5.6-5.1h24.2c2.8,0,5.6,2.3,5.6,5.1s-2.8,5.1-5.6,5.1h-24.2c-2.8,0-5.6-2.3-5.6-5.1Z" fill="#fff"/> <path id="Layer7" data-name="Layer" d="M218.8,179.2c-2-2-1.6-5.6.4-7.6l17.1-17.1c2-2,5.6-2.4,7.6-.4,2,2,1.6,5.6-.4,7.6l-17.1,17.1c-2,2-5.6,2.4-7.6.4Z" fill="#fff"/> <path id="Layer8" data-name="Layer" d="M200,206.2c-4.5,0-8.2-3.7-8.2-8.2s3.7-8.2,8.2-8.2,8.2,3.7,8.2,8.2-3.7,8.2-8.2,8.2Z" fill="#fff"/> </g> </g> <g id="Vimeo" display="none"> <g> <rect x="30.1" y="104.5" width="339.6" height="191" rx="10" ry="10" fill="#757575"/> <path d="M272.5,162.6c-.7,15.7-11.7,37.2-32.9,64.4-21.9,28.5-40.4,42.7-55.6,42.7s-17.3-8.7-23.9-26c-12.7-46.5-18.1-73.7-28.5-73.7s-5.4,2.6-12.7,7.6l-7.6-9.8c18.6-16.3,36.3-34.4,47.4-35.4,12.6-1.2,20.3,7.4,23.2,25.7,10.3,65.3,14.9,75.2,33.7,45.6,6.7-10.6,10.4-18.7,10.9-24.3,1.7-16.5-12.9-15.4-22.8-11.2,7.9-25.9,23.1-38.5,45.4-37.8,16.5.4,24.3,11.2,23.3,32.2h0Z" fill="#f7f7f7"/> </g> </g> <g id="Titelauswahl_BZW_Kopie" display="none"> <rect x="30" y="30" width="340" height="340" rx="10" ry="10" fill="#757575"/> <rect x="88" y="89" width="220.7" height="222.1" rx="5" ry="5" fill="#f7f7f7"/> <g> <rect x="116.7" y="247.3" width="163.3" height="19.6" rx="2" ry="2" fill="#d3d3d3"/> <rect x="116.7" y="222.5" width="163.3" height="19.6" rx="2" ry="2" fill="#d3d3d3"/> <rect x="116.7" y="197.7" width="163.3" height="19.6" rx="2" ry="2" fill="#d3d3d3"/> <rect x="116.7" y="172.9" width="163.3" height="19.6" rx="2" ry="2" fill="#d3d3d3"/> <rect x="116.7" y="148.1" width="163.3" height="19.6" rx="2" ry="2" fill="#d3d3d3"/> </g> <path d="M303.7,311.2H93c-2.8,0-5-2.2-5-5v-20.8h220.7v20.8c0,2.8-2.2,5-5,5Z" fill="#d3d3d3"/> <rect x="139.4" y="116.6" width="117.8" height="12.2" rx="2" ry="2" fill="#b2b2b2"/> <rect x="117" y="295" width="112" height="7.3" rx="1" ry="1" fill="#b2b2b2"/> <rect x="235" y="294.9" width="44.5" height="7.3" rx="1" ry="1" fill="#b2b2b2"/> </g> <g id="responsiveIframe" display="none"> <g> <rect x="30.2" y="104.5" width="339.6" height="191" rx="10" ry="10" fill="#757575"/> <path d="M182.8,269c-.5,0-1,0-1.5-.2-3.1-.8-4.9-4-4-7.1l34.5-126.5c.8-3.1,4-4.9,7.1-4,3.1.8,4.9,4,4,7.1l-34.5,126.5c-.7,2.6-3,4.2-5.5,4.2ZM240.2,246c-1.5,0-2.9-.6-4.1-1.7-2.2-2.2-2.2-5.9,0-8.1l36.2-36.2-36.2-36.2c-2.2-2.2-2.2-5.9,0-8.1,2.2-2.2,5.9-2.2,8.1,0l40.2,40.2c1.1,1.1,1.7,2.5,1.7,4.1s-.6,3-1.7,4.1l-40.2,40.2c-1.1,1.1-2.6,1.7-4.1,1.7ZM159.8,246c-1.5,0-2.9-.6-4.1-1.7l-40.3-40.2c-1.1-1.1-1.7-2.5-1.7-4.1,0-1.5.6-3,1.7-4.1l40.2-40.2c2.2-2.2,5.9-2.2,8.1,0,2.2,2.2,2.2,5.9,0,8.1l-36.2,36.2,36.2,36.2c2.2,2.2,2.2,5.9,0,8.1-1.1,1.1-2.6,1.7-4.1,1.7Z" fill="#f7f7f7"/> </g> </g> <g id="Hero_-_Textblock" display="none"> <g> <rect x="30" y="81.8" width="340" height="180.5" rx="8.7" ry="8.7" fill="#d3d3d3"/> <circle cx="302.1" cy="121.7" r="13.9" fill="#b2b2b2"/> <path d="M370,223.5v30c0,4.8-3.9,8.7-8.7,8.7H38.7c-4.8,0-8.7-3.9-8.7-8.7v-30l92-66.3c11.2-8.1,29.5-8.1,40.8,0l99.2,71.5c.2.2.5.3.7.5,5.8,3.9,14.9,3.7,20.4-.5s5.1-10.8-.7-14.7l-18.6-13.5,16.9-12.2c11.3-8.1,29.5-8.1,40.8,0l48.7,35.1Z" fill="#b2b2b2" fill-rule="evenodd"/> <g id="Textblock"> <rect x="88.3" y="206.9" width="223.2" height="111.3" rx="7.6" ry="7.6" fill="#efefef"/> <g> <g> <rect x="154.2" y="285" width="91.7" height="5.3" rx="2.4" ry="2.4" fill="#b2b2b2"/> <rect x="169.7" y="296" width="60.7" height="5.3" rx="2.4" ry="2.4" fill="#b2b2b2"/> </g> <g> <rect x="165.8" y="220.5" width="67.7" height="8.9" rx="4" ry="4" fill="#b2b2b2"/> <rect x="137" y="238.4" width="125.4" height="5.3" rx="2.4" ry="2.4" fill="#b2b2b2"/> <rect x="142.4" y="249.5" width="114.5" height="5.3" rx="2.4" ry="2.4" fill="#b2b2b2"/> </g> <path d="M269.4,266.8c1.3,0,2.4,1.1,2.4,2.4v1.4c0,1.3-1.1,2.4-2.4,2.4h-138.9c-1.3,0-2.4-1.1-2.4-2.4v-1.4c0-1.3,1.1-2.4,2.4-2.4h138.9M269.4,262.8h-138.9c-3.5,0-6.4,2.9-6.4,6.4v1.4c0,3.5,2.9,6.4,6.4,6.4h138.9c3.5,0,6.4-2.9,6.4-6.4v-1.4c0-3.5-2.9-6.4-6.4-6.4h0Z" fill="#b2b2b2"/> </g> </g> </g> </g> <g id="Hero_-_4_Inhalte" display="none"> <rect x="30" y="70.3" width="340" height="262.9" rx="10" ry="10" fill="#efefef"/> <g> <g> <rect x="41.2" y="82.8" width="243.9" height="129.5" rx="6.3" ry="6.3" fill="#d3d3d3"/> <circle cx="236.3" cy="111.4" r="10" fill="#b2b2b2"/> <path d="M285,184.5v21.5c0,3.5-2.8,6.3-6.3,6.3H47.4c-3.5,0-6.3-2.8-6.3-6.3v-21.5l66-47.6c8.1-5.8,21.2-5.8,29.2,0l71.1,51.3c.2.1.3.3.5.4,4.2,2.8,10.7,2.6,14.6-.4s3.7-7.7-.5-10.5l-13.4-9.6,12.1-8.8c8.1-5.8,21.2-5.8,29.2,0l34.9,25.2Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <g> <rect x="235.7" y="101.3" width="123.2" height="92.5" rx="7.2" ry="7.2" fill="#fff"/> <g> <rect x="250" y="116.2" width="41.4" height="9.8" rx="4.6" ry="4.6" fill="#b2b2b2"/> <rect x="250" y="136.1" width="76.6" height="5.9" rx="2.8" ry="2.8" fill="#b2b2b2"/> <rect x="250" y="148.4" width="70" height="5.9" rx="2.8" ry="2.8" fill="#b2b2b2"/> <path d="M335.3,167.8c1.5,0,2.8,1.2,2.8,2.8v.9c0,1.5-1.2,2.8-2.8,2.8h-77.9c-1.5,0-2.8-1.2-2.8-2.8v-.9c0-1.5,1.2-2.8,2.8-2.8h77.9M335.3,163.1h-77.9c-4.1,0-7.4,3.3-7.4,7.4v.9c0,4.1,3.3,7.4,7.4,7.4h77.9c4.1,0,7.4-3.3,7.4-7.4v-.9c0-4.1-3.3-7.4-7.4-7.4h0Z" fill="#b2b2b2"/> </g> </g> <g> <g> <rect x="41.2" y="292.6" width="49.3" height="7.2" rx="3.6" ry="3.6" fill="#b2b2b2"/> <rect x="41.2" y="307.3" width="91.2" height="4.3" rx="2.2" ry="2.2" fill="#b2b2b2"/> <rect x="41.2" y="316.3" width="83.4" height="4.3" rx="2.2" ry="2.2" fill="#b2b2b2"/> </g> <g> <rect x="154.4" y="292.6" width="49.3" height="7.2" rx="3.6" ry="3.6" fill="#b2b2b2"/> <rect x="154.4" y="307.3" width="91.2" height="4.3" rx="2.2" ry="2.2" fill="#b2b2b2"/> <rect x="154.4" y="316.3" width="83.4" height="4.3" rx="2.2" ry="2.2" fill="#b2b2b2"/> </g> <g> <rect x="267.6" y="292.6" width="49.3" height="7.2" rx="3.6" ry="3.6" fill="#b2b2b2"/> <rect x="267.6" y="307.3" width="91.2" height="4.3" rx="2.2" ry="2.2" fill="#b2b2b2"/> <rect x="267.6" y="316.3" width="83.4" height="4.3" rx="2.2" ry="2.2" fill="#b2b2b2"/> </g> <g> <rect x="41.2" y="235.5" width="91.2" height="48.4" rx="2.3" ry="2.3" fill="#d3d3d3"/> <circle cx="114.2" cy="246.2" r="3.7" fill="#b2b2b2"/> <path d="M132.4,273.5v8.1c0,1.3-1,2.3-2.3,2.3H43.5c-1.3,0-2.3-1-2.3-2.3v-8.1l24.7-17.8c3-2.2,7.9-2.2,10.9,0l26.6,19.2c0,0,.1,0,.2.1,1.6,1.1,4,1,5.5-.1s1.4-2.9-.2-3.9l-5-3.6,4.5-3.3c3-2.2,7.9-2.2,10.9,0l13.1,9.4Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <g> <rect x="154.4" y="235.5" width="91.2" height="48.4" rx="2.3" ry="2.3" fill="#d3d3d3"/> <circle cx="227.4" cy="246.2" r="3.7" fill="#b2b2b2"/> <path d="M245.6,273.5v8.1c0,1.3-1,2.3-2.3,2.3h-86.6c-1.3,0-2.3-1-2.3-2.3v-8.1l24.7-17.8c3-2.2,7.9-2.2,10.9,0l26.6,19.2c0,0,.1,0,.2.1,1.6,1.1,4,1,5.5-.1s1.4-2.9-.2-3.9l-5-3.6,4.5-3.3c3-2.2,7.9-2.2,10.9,0l13.1,9.4Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <g> <rect x="267.6" y="235.5" width="91.2" height="48.4" rx="2.3" ry="2.3" fill="#d3d3d3"/> <circle cx="340.6" cy="246.2" r="3.7" fill="#b2b2b2"/> <path d="M358.8,273.5v8.1c0,1.3-1,2.3-2.3,2.3h-86.6c-1.3,0-2.3-1-2.3-2.3v-8.1l24.7-17.8c3-2.2,7.9-2.2,10.9,0l26.6,19.2c0,0,.1,0,.2.1,1.6,1.1,4,1,5.5-.1s1.4-2.9-.2-3.9l-5-3.6,4.5-3.3c3-2.2,7.9-2.2,10.9,0l13.1,9.4Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> </g> </g> </g> <g id="Hero_-_2_Preisboxen_Kopie_Kopie" display="none"> <rect x="30" y="76.8" width="340" height="180.5" rx="8.7" ry="8.7" fill="#d3d3d3"/> <circle cx="302.1" cy="116.7" r="13.9" fill="#b2b2b2"/> <path d="M370,218.5v30c0,4.8-3.9,8.7-8.7,8.7H38.7c-4.8,0-8.7-3.9-8.7-8.7v-30l92-66.3c11.2-8.1,29.5-8.1,40.8,0l99.2,71.5c.2.2.5.3.7.5,5.8,3.9,14.9,3.7,20.4-.5s5.1-10.8-.7-14.7l-18.6-13.5,16.9-12.2c11.3-8.1,29.5-8.1,40.8,0l48.7,35.1Z" fill="#b2b2b2" fill-rule="evenodd"/> <g> <g id="Textblock1" data-name="Textblock"> <rect x="209.2" y="191" width="146" height="132.2" rx="9.4" ry="9.4" fill="#efefef"/> <g> <g> <rect x="252.2" y="283.7" width="60" height="6.3" rx="3" ry="3" fill="#b2b2b2"/> <rect x="262.4" y="296.9" width="39.7" height="6.3" rx="3" ry="3" fill="#b2b2b2"/> </g> <g> <rect x="259.8" y="207.1" width="44.3" height="10.5" rx="4.9" ry="4.9" fill="#b2b2b2"/> <rect x="241" y="228.5" width="82" height="6.3" rx="3" ry="3" fill="#b2b2b2"/> <rect x="244.5" y="241.6" width="74.9" height="6.3" rx="3" ry="3" fill="#b2b2b2"/> </g> <path d="M323.8,262.4c1.6,0,3,1.3,3,3v1c0,1.6-1.3,3-3,3h-83.4c-1.6,0-3-1.3-3-3v-1c0-1.6,1.3-3,3-3h83.4M323.8,257.4h-83.4c-4.4,0-7.9,3.5-7.9,7.9v1c0,4.4,3.5,7.9,7.9,7.9h83.4c4.4,0,7.9-3.5,7.9-7.9v-1c0-4.4-3.5-7.9-7.9-7.9h0Z" fill="#b2b2b2"/> </g> </g> <g id="Textblock2" data-name="Textblock"> <rect x="44.9" y="191" width="146" height="132.2" rx="9.4" ry="9.4" fill="#efefef"/> <g> <g> <rect x="88" y="283.7" width="60" height="6.3" rx="3" ry="3" fill="#b2b2b2"/> <rect x="98.1" y="296.9" width="39.7" height="6.3" rx="3" ry="3" fill="#b2b2b2"/> </g> <g> <rect x="95.5" y="207.1" width="44.3" height="10.5" rx="4.9" ry="4.9" fill="#b2b2b2"/> <rect x="76.7" y="228.5" width="82" height="6.3" rx="3" ry="3" fill="#b2b2b2"/> <rect x="80.2" y="241.6" width="74.9" height="6.3" rx="3" ry="3" fill="#b2b2b2"/> </g> <path d="M159.6,262.4c1.6,0,3,1.3,3,3v1c0,1.6-1.3,3-3,3h-83.4c-1.6,0-3-1.3-3-3v-1c0-1.6,1.3-3,3-3h83.4M159.6,257.4h-83.4c-4.4,0-7.9,3.5-7.9,7.9v1c0,4.4,3.5,7.9,7.9,7.9h83.4c4.4,0,7.9-3.5,7.9-7.9v-1c0-4.4-3.5-7.9-7.9-7.9h0Z" fill="#b2b2b2"/> </g> </g> </g> </g> <g id="Bild_16:9" display="none"> <rect x="30" y="110" width="339.6" height="191" rx="8.7" ry="8.7" fill="#d3d3d3"/> <circle cx="302.1" cy="149.7" r="13.9" fill="#b2b2b2"/> <path d="M370,266.7v25.6c0,4.8-3.9,8.7-8.7,8.7H38.7c-4.8,0-8.7-3.9-8.7-8.7v-25.5c0-2.8,1.3-5.4,3.6-7.1l88.3-63.7c11.2-8.1,29.5-8.1,40.8,0l99.2,71.5c.2.2.5.3.7.5,5.8,3.9,14.9,3.7,20.4-.5s5.1-10.8-.7-14.7l-8.8-6.4c-4.8-3.5-4.8-10.7,0-14.2l7.1-5.1c11.3-8.1,29.5-8.1,40.8,0l45.1,32.5c2.3,1.6,3.6,4.3,3.6,7.1Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <g id="Bild_4:3" display="none"> <rect x="30" y="72.5" width="340" height="255" rx="8.7" ry="8.7" fill="#d3d3d3"/> <circle cx="279.1" cy="148.7" r="19.3" fill="#b2b2b2"/> <path d="M370,293.7v25.6c0,4.8-3.9,8.7-8.7,8.7H38.7c-4.8,0-8.7-3.9-8.7-8.7v-25.5c0-2.8,1.3-5.4,3.6-7.1l88.3-63.7c11.2-8.1,29.5-8.1,40.8,0l99.2,71.5c.2.2.5.3.7.5,5.8,3.9,14.9,3.7,20.4-.5s5.1-10.8-.7-14.7l-8.8-6.4c-4.8-3.5-4.8-10.7,0-14.2l7.1-5.1c11.3-8.1,29.5-8.1,40.8,0l45.1,32.5c2.3,1.6,3.6,4.3,3.6,7.1Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <g id="Bild_960x150" display="none"> <path d="M370,182.2v35.7c0,.2,0,.3,0,.4h0c-.2,4.6-4,8.3-8.7,8.3H38.7c-4.7,0-8.5-3.7-8.7-8.3h0c0-.2,0-.3,0-.5v-35.7c0-4.8,3.9-8.7,8.7-8.7h322.5c4.8,0,8.7,3.9,8.7,8.7Z" fill="#d3d3d3"/> <path d="M264.6,173.6c0,6.9-5.6,12.4-12.4,12.4s-12.4-5.6-12.4-12.4,0,0,0-.1h24.8s0,0,0,.1Z" fill="#b2b2b2" fill-rule="evenodd"/> <path d="M370,218.3s0,0,0,0c-.2,4.6-4,8.3-8.7,8.3H38.7c-4.7,0-8.5-3.7-8.7-8.3,0,0,0,0,0,0,0-1,1.4-1.9,3.6-2.5l88.3-23.5c11.2-3,29.5-3,40.8,0l99.2,26.4c.2,0,.5.1.7.2,5.8,1.4,14.9,1.4,20.4-.2,5.4-1.6,5.1-4-.7-5.4l-8.8-2.3c-4.8-1.3-4.8-3.9,0-5.2l7.1-1.9c11.3-3,29.5-3,40.8,0l45.1,12c2.2.6,3.5,1.5,3.6,2.5Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> <g id="Bild_960x300" display="none"> <path d="M370,155.7v88.6c0,4.6-3.6,8.4-8.1,8.7-.2,0-.4,0-.6,0H38.7c-.2,0-.4,0-.6,0-4.5-.3-8.1-4.1-8.1-8.7v-88.6c0-4.8,3.9-8.7,8.7-8.7h322.6c4.8,0,8.7,3.9,8.7,8.7Z" fill="#d3d3d3"/> <circle cx="260.1" cy="171.7" r="13.9" fill="#b2b2b2"/> <path d="M370,230.5v13.8c0,4.6-3.6,8.4-8.1,8.7-.2,0-.4,0-.6,0H38.7c-.2,0-.4,0-.6,0-4.5-.3-8.1-4.1-8.1-8.7v-13.8c0-1.9,1.3-3.6,3.6-4.7l88.3-41.8c11.2-5.3,29.5-5.3,40.8,0l99.2,47c.2.1.5.2.7.3,5.8,2.6,14.9,2.4,20.4-.3s5.1-7.1-.7-9.7l-8.8-4.2c-4.8-2.3-4.8-7,0-9.3l7.1-3.4c11.3-5.3,29.5-5.3,40.8,0l45.1,21.4c2.3,1.1,3.6,2.8,3.6,4.7Z" fill="#b2b2b2" fill-rule="evenodd"/> </g> </svg>'})}function qI(a){a.DomComponents.addType("os-subnav",{isComponent(r){return r&&r.getAttribute&&r.getAttribute("data-os-subnav")==="wrap"?{type:"os-subnav"}:!1},model:{defaults:{tagName:"div",draggable:!0,droppable:!0,attributes:{"data-os-subnav":"wrap","data-component-id":"27","data-component-version":"1.0.0","data-component-name":"Landingpage Elemente - Content - Unternavigation",class:"flex flex-wrap mb-8 top-[52px] bg-surface-100 pt-3 md:pt-5 justify-center z-30"},traits:[{type:"checkbox",label:"Sticky",name:"sticky",changeProp:!0,value:!1}]},init(){this.on("change:sticky",this.handleStickyChange),(this.getAttributes().class||"").split(" ").includes("sticky")&&!this.get("sticky")&&this.set("sticky",!0,{silent:!0})},handleStickyChange(){const r=!!this.get("sticky"),t=this.getAttributes();
2521let e=(t.class||"").split(" ").filter(Boolean);r?e.includes("sticky")||e.push("sticky"):e=e.filter(n=>n!=="sticky"),this.setAttributes({...t,class:Array.from(new Set(e)).join(" ")})}}}),a.BlockManager.add("osSubnav",{id:"osSubnav",label:"Unternavigation",category:{id:"content",label:"Content"},attributes:{"data-os-group":"Landingpage Elemente","data-os-page-type":"cue"},content:` 2522 <div 2523 data-gjs-type="os-subnav" 2524 data-os-subnav="wrap" 2525 data-component-id="27" 2526 data-component-version="1.0.0" 2527 data-component-name="Landingpage Elemente - Content - Unternavigation" 2528 class="flex flex-wrap mb-8 top-[52px] bg-surface-100 pt-3 md:pt-5 justify-center z-30"> 2529 <a href target="_self" title="" class="no-underline px-3 py-3 text-sm md:text-base font-semibold subnav-shadow me-2 mb-2 !text-copy-primary bg-surface-100 hover:bg-surface-200" 2530 data-track-v2-parentposition="Content" 2531 data-track-v2-parent="Landingpage Elemente - Content - Unternavigation" 2532 data-track-v2-parentlabel="OS - Inhalt" 2533 data-track-v2-elementposition="1" 2534 data-track-v2-elementtype="Button" 2535 data-track-v2-vendor="Internal" 2536 data-track-v2-link="" 2537 data-track-v2-linktype="External" 2538 data-track-v2-linkgenre="" 2539 data-track-v2-clickaction=""> 2540 <span class="md:px-2">Button</span> 2541 </a> 2542 <a href target="_self" title="" class="no-underline px-3 py-3 text-sm md:text-base font-semibold subnav-shadow me-2 mb-2 !text-copy-primary bg-surface-100 hover:bg-surface-200" 2543 data-track-v2-parentposition="Content" 2544 data-track-v2-parent="Landingpage Elemente - Content - Unternavigation" 2545 data-track-v2-parentlabel="OS - Inhalt" 2546 data-track-v2-elementposition="2" 2547 data-track-v2-elementtype="Button" 2548 data-track-v2-vendor="Internal" 2549 data-track-v2-link="" 2550 data-track-v2-linktype="External" 2551 data-track-v2-linkgenre="" 2552 data-track-v2-clickaction=""> 2553 <span class="md:px-2">Button</span> 2554 </a> 2555 <a href target="_self" title="" class="no-underline px-3 py-3 text-sm md:text-base font-semibold subnav-shadow me-2 mb-2 !text-copy-primary bg-surface-100 hover:bg-surface-200" 2556 data-track-v2-parentposition="Content" 2557 data-track-v2-parent="Landingpage Elemente - Content - Unternavigation" 2558 data-track-v2-parentlabel="OS - Inhalt" 2559 data-track-v2-elementposition="3" 2560 data-track-v2-elementtype="Button" 2561 data-track-v2-vendor="Internal" 2562 data-track-v2-link="" 2563 data-track-v2-linktype="External" 2564 data-track-v2-linkgenre="" 2565 data-track-v2-clickaction=""> 2566 <span class="md:px-2">Button</span> 2567 </a> 2568 </div> 2569 `,media:` 2570 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"> 2571 <g fill="none" fill-rule="evenodd"> 2572 <rect width="94.4" height="25" x="29.8" y="168" fill="#D3D3D3" rx="2"/> 2573 <rect width="94.4" height="25" x="152.6" y="168" fill="#D3D3D3" rx="2"/> 2574 <rect width="94.4" height="25" x="275.4" y="168" fill="#D3D3D3" rx="2"/> 2575 <rect width="94.4" height="25" x="91.2" y="207" fill="#D3D3D3" rx="2"/> 2576 <rect width="94.4" height="25" x="214" y="207" fill="#D3D3D3" rx="2"/> 2577 </g> 2578 </svg> 2579 `})}const $t="data-offerselection3",KI="48",GI="1.0.0",L3="Vertriebliche Elemente - Content - Offer Selection 3",Ri=["a","b","c"],Fs=3,YI=600,D3=["","text-brand-contrast"],I3=["text-slate-600","dark:text-slate-300","hover:text-slate-900","dark:hover:text-white"],Ov={draggable:!1,droppable:!1,copyable:!1,removable:!1,editable:!1,selectable:!1,hoverable:!1},XI="Preisvorteil â Sie sparen nur gegenüber dem Einzelkauf",JI="Kündbar zum Ende der Laufzeit. Preise inkl. MwSt.",Ev={"data-track-v2-parentposition":"Content","data-track-v2-parent":L3,"data-track-v2-parentlabel":"OS - Vertrieb","data-track-v2-elementtype":"Button"},QI={id:"placeholder",title:"...",duration_months:"X",duration_unit:"month",price_display:"X0,00 â
2579¬",checkout_link:"#"},wc="os3-trait-loading";function tj(){try{if(typeof document>"u"||document.getElementById(wc))return;const a=document.createElement("div");if(a.id=wc,a.setAttribute("aria-hidden","true"),a.style.cssText=["position:fixed","inset:0","background:rgba(255,255,255,0.45)","backdrop-filter:blur(1px)","z-index:99999","display:flex","align-items:center","justify-content:center","pointer-events:all"].join(";"),a.innerHTML='<div style="width:42px;height:42px;border-radius:50%;border:3px solid #cbd5e1;border-top-color:#0f172a;animation:os3-spin 0.8s linear infinite"></div>',!document.getElementById(wc+"-css")){const r=document.createElement("style");r.id=wc+"-css",r.textContent="@keyframes os3-spin{to{transform:rotate(360deg)}}",document.head.appendChild(r)}document.body.appendChild(a)}catch{}}function ej(){var a;try{const r=typeof document<"u"?document.getElementById(wc):null;(a=r==null?void 0:r.parentNode)==null||a.removeChild(r)}catch{}}function va(a){try{a()}catch{}}function rj(a){return a.startsWith("{")&&a.endsWith("}")}function wl(a){return String(a??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function j3(a,r="month"){const t={hour:["Stunde","Stunden"],day:["Tag","Tage"],week:["Woche","Wochen"],month:["Monat","Monate"]},e=t[r??"month"]??t.month;return Number(a)===1?e[0]:e[1]}function nj(){var r,t;if(typeof document>"u")return!1;const a=(t=(r=document.activeElement)==null?void 0:r.tagName)==null?void 0:t.toLowerCase();return a==="input"||a==="textarea"}function Xo(a,r,t,e){const n=Number(a);return Number.isFinite(n)?Math.max(r,Math.min(t,n)):e}function N3(){const a=typeof window<"u"?window.__grapesOffers||[]:[],r=Array.isArray(a)?a:Object.values(a),t={},e={};return r.forEach(n=>{if(n&&([n.id,n.key].forEach(i=>{i!=null&&String(i)!==""&&!(String(i)in t)&&(t[String(i)]=n)}),n.item_id!=null&&String(n.item_id)!=="")){const i=String(n.item_id);e[i]=[...e[i]??[],n]}}),Object.entries(e).forEach(([n,i])=>{i.length===1&&(t[n]=i[0])}),t}function ij(){const a=typeof window<"u"?window.__grapesOffers||[]:[],r=Array.isArray(a)?a:Object.values(a),t=new Set,e=r.filter(n=>(n==null?void 0:n.id)!=null&&!t.has(String(n.id))&&(t.add(String(n.id)),!0)).map(n=>{const i=n.uses_brand_variants?(n.brand_variants??[]).map(s=>s.shortcode||s.name).filter(Boolean).join(", ")||"ohne Titelvarianten":"Legacy-Preis",o=j3(n.duration_months,n.duration_unit);return{id:String(n.id),name:`#${n.id} · ${n.item_id||"ohne FOM-ID"} · ${n.key||"Offer"} · ${n.duration_months??"â"} ${o} · ${i}`}});return[{id:"",name:"â Angebot auswählen â"},...e]}function ra(a){return{...a,...Ov}}function Fu(a){return{draggable:!0,copyable:!0,removable:!0,droppable:!0,selectable:!0,...a}}function aj(a){return a<=1?"grid-cols-1 max-w-sm mx-auto":a===2?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3"}function oj(a){const r=N3(),t=Xo(a[`${$t}-variant-count`],1,Ri.length,1),e=[];return Ri.slice(0,t).forEach(n=>{const i=`${$t}-variant-${n}`,o=Xo(a[`${i}-product-count`],1,Fs,1),s=String(a[`${i}-popular`]||"").trim(),c=[];for(let d=1;d<=o;d++){const f=String(a[`${i}-product-${d}`]||"").trim();if(!f)continue;const g=r[f]||(rj(f)?QI:null);if(!g)continue;const m=String(g.type||"").trim().toLowerCase(),y=m in Fi?m:"";c.push({slot:d,offer:g,packageType:y,popular:s===String(d)})}c.length!==0&&e.push({key:n,label:String(a[`${i}-label`]||"").trim()||`Variante ${n.toUpperCase()}`,products:c})}),e}function sj(a,r){return[r,...a.map(t=>[t.key,t.label,t.products.map(e=>[e.slot,e.offer.id,e.packageType,e.popular?"1":"0"].join(":")).join(",")].join("|"))].join("||")}function lj(a){var e;const r=(e=Fi[a])==null?void 0:e.productId,t=Dp.map(n=>{const i=!!r&&n.productIds.includes(r);return{tagName:"li",draggable:!0,droppable:!1,copyable:!0,removable:!0,selectable:!0,attributes:{class:"flex items-start gap-3 text-sm text-slate-700 dark:text-slate-300"},components:[{type:"iconify-icon",tagName:"iconify-icon",editable:!1,draggable:!1,droppable:!1,copyable:!1,removable:!1,selectable:!0,attributes:{icon:i?"material-symbols:check":"material-symbols:close",class:(i?"text-green-500":"text-red-500")+" mt-0.5 font-bold shrink-0",style:"font-size:18px","aria-hidden":"true"}},{tagName:"span",type:"text",editable:!0,content:wl(n.label)}]}});
2579return[{tagName:"div",draggable:!1,copyable:!1,removable:!1,attributes:{class:"px-2"},components:[{tagName:"h4",type:"text",editable:!0,draggable:!1,removable:!1,copyable:!1,attributes:{class:"text-sm font-bold text-slate-900 dark:text-white mb-4 text-center",[`${$t}-offer-features-title`]:"wrap"},content:"Was dieses Abo bietet"},{tagName:"div",draggable:!1,copyable:!1,removable:!1,attributes:{class:"flex justify-center"},components:[{tagName:"ul",droppable:!0,draggable:!1,copyable:!1,removable:!1,attributes:{class:"text-left space-y-3 mb-8 px-2 inline-block",[`${$t}-offer-feature-list`]:"wrap"},components:t}]}]}]}function cj(a,r,t){const e=r?Fi[r].productId:null,n=e?Vu[e]:"",i=a.duration_months?`${wl(a.duration_months)} <span>${j3(a.duration_months,a.duration_unit)} lesen</span>`:"",o=[];return t&&o.push(ra({tagName:"div",attributes:{[`${$t}-offer-core`]:"popular",class:"absolute top-0 left-1/2 -translate-x-1/2 -translate-y-1/2 z-10"},content:'<span class="bg-brand-primary-500 text-brand-contrast text-[10px] sm:text-xs font-bold uppercase tracking-widest px-4 py-1 rounded-full shadow-sm">Beliebt</span>'})),n&&o.push(ra({tagName:"div",attributes:{[`${$t}-offer-core`]:"icon"},content:n})),o.push(ra({tagName:"h3",type:"text",attributes:{[`${$t}-offer-core`]:"title",class:"text-slate-600 dark:text-slate-400 font-bold text-xs sm:text-sm uppercase tracking-wider mb-2"},content:wl(a.title||"")}),Fu({tagName:"div",attributes:{class:"text-2xl sm:text-3xl font-black text-slate-900 dark:text-white mb-1"},components:[ra({tagName:"span",attributes:{[`${$t}-offer-core`]:"duration"},content:i})]})),{tagName:"div",draggable:!0,copyable:!0,removable:!0,droppable:!0,selectable:!0,attributes:{[`${$t}-offer-header`]:"wrap",class:"p-6 pb-4 sm:p-8 sm:pb-6 border-b border-slate-100 dark:border-dark-border text-center rounded-t-lg"},components:o}}function dj(a,r){const t=wl(a.price_display||""),e=a.checkout_link?wl(a.checkout_link):"#",n=r!=null&&r.savingRemoved?null:{tagName:"div",type:"text",editable:!0,draggable:!0,copyable:!0,removable:!0,selectable:!0,attributes:{[`${$t}-offer-saving`]:"wrap",class:"text-xs text-slate-500 dark:text-slate-400 mt-3"},content:(r==null?void 0:r.savingHtml)??XI},i=r!=null&&r.secondaryCtaRemoved?null:Fu({tagName:"a",type:"link",editable:!1,droppable:!1,attributes:{[`${$t}-offer-secondary-cta`]:"true",href:(r==null?void 0:r.secondaryCtaHref)||"#",target:"_self",class:"inline-flex items-center justify-center w-full px-6 py-3 text-base font-bold no-underline rounded-full border-2 border-brand-primary-500 hover:border-brand-primary-700 text-brand-primary-500 hover:text-brand-primary-700 hover:bg-brand-primary-50 focus:bg-brand-primary-50 active:bg-brand-primary-100 transition-all duration-200 min-h-[44px] active:scale-95",...Ev,"data-track-v2-elementposition":"98","data-track-v2-vendor":"Internal","data-track-v2-linktype":"External","data-track-v2-clickaction":"select_item"},components:(r==null?void 0:r.secondaryCtaHtml)??[{tagName:"span",type:"text",editable:!0,selectable:!0,draggable:!1,droppable:!1,copyable:!1,removable:!1,attributes:{class:"relative z-10"},content:"Mehr Infos"}]}),o=r!=null&&r.legalRemoved?null:{tagName:"p",type:"text",editable:!0,draggable:!0,copyable:!0,removable:!0,selectable:!0,attributes:{[`${$t}-offer-legal`]:"wrap",class:"text-xs text-slate-500 dark:text-slate-400 mt-3"},content:(r==null?void 0:r.legalHtml)??JI},s=[ra({tagName:"a",type:"link",attributes:{[`${$t}-offer-core`]:"cta",href:e,target:"_self",class:"inline-flex items-center justify-center w-full px-6 py-3 text-base font-bold no-underline rounded-full border-2 border-transparent text-brand-contrast bg-brand-primary-500 hover:bg-brand-primary-700 focus:bg-brand-primary-700 active:bg-brand-primary-300 shadow-md transition-all duration-200 min-h-[44px] active:scale-95",[`${$t}-action`]:"cta",...Ev,"data-track-v2-elementposition":"99","data-track-v2-vendor":"Internal","data-track-v2-linktype":"External","data-track-v2-clickaction":"add_to_cart"},components:[{tagName:"span",type:"text",editable:!0,attributes:{class:"relative z-10"},content:"Jetzt abonnieren"}]})];return i&&s.push(i),o&&s.push(o),{tagName:"div",draggable:!0,copyable:!0,removable:!0,droppable:!0,selectable:!0,attributes:{[`${$t}-offer-footer`]:"wrap"},components:[{tagName:"div",draggable:!0,copyable:!0,removable:!0,droppable:!0,selectable:!0,attributes:{[`${$t}-offer-pricebox`]:"wrap",class:"px-6 sm:px-8 py-5 text-center"},components:[Fu({tagName:"div",attributes:{class:"text-4xl sm:text-5xl font-black text-slate-900 dark:text-white mb-1 tracking-tight"},components:[ra({tagName:"span",attributes:{class:"text-base sm:text-lg font-medium text-slate-600 dar
2579k:text-slate-300 mr-1"},content:"aktuell "}),ra({tagName:"span",attributes:{[`${$t}-offer-core`]:"price"},content:t}),ra({tagName:"span",attributes:{class:"text-base sm:text-lg font-medium text-slate-600 dark:text-slate-300 ml-1"},content:"/mtl."})]}),...n?[n]:[]]},Fu({tagName:"div",attributes:{class:"px-6 sm:px-8 pb-8 mt-auto text-center rounded-b-lg flex flex-col gap-3"},components:s})]}}function uj(a,r,t){const e=a.popular?"ring-2 ring-brand-primary-500 ":"",n={tagName:"div",editable:!0,droppable:!0,draggable:!1,copyable:!1,removable:!1,attributes:{[`${$t}-offer-features`]:"wrap",class:"pt-6",...(t==null?void 0:t.featuresHtml)!==void 0?{[`${$t}-features-dirty`]:"1"}:{}}};n.components=(t==null?void 0:t.featuresHtml)??lj(a.packageType);const i={tagName:"div",droppable:!0,draggable:!1,copyable:!1,removable:!1,attributes:{[`${$t}-offer-editable`]:"wrap",class:"px-6 sm:px-8 min-h-[8px]"}};return t!=null&&t.editableHtml&&(i.components=t.editableHtml),{tagName:"div",draggable:!1,copyable:!1,removable:!1,droppable:!1,selectable:!0,attributes:{[`${$t}-card`]:"wrap",[`${$t}-variant-key`]:r,[`${$t}-product-index`]:String(a.slot),[`${$t}-offer-ref`]:String(a.offer.id),[`${$t}-offer-type`]:a.packageType,[`${$t}-offer-popular`]:a.popular?"1":"0",class:"relative flex flex-col bg-white dark:bg-dark-surface rounded-lg border border-slate-200 dark:border-dark-border shadow-sm hover:shadow-md transition-shadow duration-300 animate-slide-up "+e},components:[cj(a.offer,a.packageType,a.popular),n,i,dj(a.offer,t)]}}function fj(a,r,t,e){return ra({tagName:"button",attributes:{type:"button",[`${$t}-action`]:"setVariant",[`${$t}-action-value`]:t,role:"radio","aria-checked":r?"true":"false",tabindex:r?"0":"-1",class:"relative z-10 flex-1 sm:min-w-[160px] px-2 sm:px-6 py-3 text-xs sm:text-sm font-bold transition-colors duration-300 whitespace-nowrap min-h-[44px] flex items-center justify-center gap-2 active:scale-95 cursor-pointer "+(r?D3:I3).join(" "),...Ev,"data-track-v2-elementposition":String(e)},content:`<span ${$t}-chip-dot="wrap" class="inline-flex shrink-0 items-center justify-center w-4 h-4 rounded-full border-2 `+(r?"border-white/70":"border-slate-400 dark:border-slate-500")+' bg-transparent transition-colors" aria-hidden="true"><span class="block w-2 h-2 rounded-full bg-white transition-opacity" style="opacity:'+(r?"1":"0")+'"></span></span><span>'+wl(a)+"</span>"})}function pj(a,r){const t=100/Math.max(a.length,1);return{tagName:"div",draggable:!1,copyable:!1,removable:!1,droppable:!1,selectable:!1,attributes:{class:"w-full flex justify-center"},components:[{tagName:"div",draggable:!1,copyable:!1,removable:!1,droppable:!1,selectable:!0,attributes:{[`${$t}-variant-bar`]:"wrap",role:"radiogroup","aria-label":"Abo-Variante auswählen",class:"relative flex w-full max-w-2xl bg-slate-50 dark:bg-neutral-900 p-1 rounded-lg shadow-inner border border-slate-200 dark:border-dark-border mb-8 sm:mb-10 overflow-hidden"},components:[ra({tagName:"div",attributes:{[`${$t}-slider`]:"true",class:"absolute top-1 bottom-1 bg-brand-primary-500 rounded-sm shadow-md transition-all duration-300 ease-out z-0",style:`left:calc(${r*t}% + 4px); width:calc(${t}% - 8px)`}}),...a]}]}}function hj(a,r,t){return{tagName:"div",draggable:!1,copyable:!1,removable:!1,droppable:!1,selectable:!0,attributes:{[`${$t}-variant-panel`]:"wrap",[`${$t}-variant-key`]:a.key,[`${$t}-active`]:r?"1":"0",class:"grid "+aj(a.products.length)+" gap-6 sm:gap-8"+(r?"":" hidden")},components:a.products.map(e=>uj(e,a.key,t.get(`${a.key}:${e.slot}:${e.offer.id}:${e.packageType}`)))}}function gj(a){const r=new Map;if(typeof(a==null?void 0:a.find)!="function")return r;const t=(n,i)=>{const o=typeof(n==null?void 0:n.find)=="function"?n.find(i):null;return Array.isArray(o)&&o.length>0?o[0]:null},e=n=>{try{if(!n)return;if(typeof n.getInnerHTML=="function")return n.getInnerHTML();const i=typeof n.components=="function"?n.components():null;return!i||typeof i.map!="function"?void 0:i.map(o=>
2579typeof(o==null?void 0:o.toHTML)=="function"?o.toHTML():"").join("")}catch{return}};return(a.find(`[${$t}-card="wrap"]`)||[]).forEach(n=>{var y,x,w;if(!n)return;const i=((y=n.getAttributes)==null?void 0:y.call(n))||{},o=[i[`${$t}-variant-key`],i[`${$t}-product-index`],i[`${$t}-offer-ref`],i[`${$t}-offer-type`]||""].join(":"),s=t(n,`[${$t}-offer-features="wrap"]`),c=((x=s==null?void 0:s.getAttributes)==null?void 0:x.call(s)[`${$t}-features-dirty`])==="1",d=t(n,`[${$t}-offer-saving="wrap"]`),f=t(n,`[${$t}-offer-secondary-cta]`),g=t(n,`[${$t}-offer-legal="wrap"]`),m=t(n,`[${$t}-offer-editable="wrap"]`);r.set(o,{featuresHtml:c?e(s):void 0,savingHtml:d?e(d):void 0,savingRemoved:!d,secondaryCtaHtml:f?e(f):void 0,secondaryCtaHref:(w=f==null?void 0:f.getAttributes)==null?void 0:w.call(f).href,secondaryCtaRemoved:!f,legalHtml:g?e(g):void 0,legalRemoved:!g,editableHtml:m?e(m):void 0})}),r}function vj(a){var n;const r=a.TraitManager;(n=r.getType)!=null&&n.call(r,"offer-search-select")||E1(a);let t=!1;a.on("storage:start:store",()=>{t=!0}),a.on("storage:end:store",()=>{t=!1}),a.on("storage:error:store",()=>{t=!1}),a.on("component:update",i=>{va(()=>{var s,c;const o=(s=i==null?void 0:i.closest)==null?void 0:s.call(i,`[${$t}-offer-features="wrap"]`);o&&((c=o.getAttributes)==null?void 0:c.call(o)[`${$t}-features-dirty`])!=="1"&&o.addAttributes({[`${$t}-features-dirty`]:"1"})})});const e={id:"produkte",[`${$t}-offer-selection`]:"wrap","data-component-id":KI,"data-component-version":GI,"data-component-name":L3,class:"hero-fullwidth relative w-screen left-1/2 -translate-x-1/2 overflow-hidden bg-slate-100 dark:bg-neutral-800 py-12 sm:py-16 lg:py-20 animate-fade-in","aria-label":"Angebotsübersicht",[`${$t}-list-id`]:"Kampagnen-Landingpage",[`${$t}-list-name`]:"Angebote",[`${$t}-affiliation`]:"FUNKE Medien NRW GmbH",[`${$t}-brand`]:"WAZ",[`${$t}-vertical`]:"Nachrichten",[`${$t}-variant-count`]:"1",[`${$t}-default-variant`]:"a",[`${$t}-variant-a-label`]:"",[`${$t}-variant-a-product-count`]:"1",[`${$t}-variant-a-popular`]:"",[`${$t}-variant-b-label`]:"",[`${$t}-variant-b-product-count`]:"1",[`${$t}-variant-b-popular`]:"",[`${$t}-variant-c-label`]:"",[`${$t}-variant-c-product-count`]:"1",[`${$t}-variant-c-popular`]:""};a.DomComponents.addType("offer-selection-3",{isComponent(i){var o;return((o=i==null?void 0:i.getAttribute)==null?void 0:o.call(i,`${$t}-offer-selection`))==="wrap"?{type:"offer-selection-3"}:!1},model:{defaults:{tagName:"section",droppable:!0,highlightSection:!0,sectionDivider:"none",attributes:e,traits:[]},init(){va(()=>{var f;const s=["hero-fullwidth","relative","w-screen","left-1/2","-translate-x-1/2","overflow-hidden","py-12","sm:py-16","lg:py-20","animate-fade-in"],c=new Set(String(((f=this.getAttributes)==null?void 0:f.call(this).class)||"").split(/\s+/).filter(Boolean));let d=!1;s.forEach(g=>{c.has(g)||(c.add(g),d=!0)}),d&&this.addAttributes({class:Array.from(c).join(" ")})}),this.rebuildTraits(),this.renderOffers(),this.on("change:attributes",()=>this.renderOffers()),[`${$t}-variant-count`,...Ri.map(s=>`${$t}-variant-${s}-product-count`)].forEach(s=>{this.on(`change:attributes:${s}`,()=>{tj(),setTimeout(()=>{try{this.normalizeSelections(),this.rebuildTraits(),this.renderOffers()}finally{setTimeout(ej,80)}},0)})});let o=null;Ri.forEach(s=>{this.on(`change:attributes:${$t}-variant-${s}-label`,()=>{o&&clearTimeout(o),o=setTimeout(()=>{va(()=>{nj()||this.rebuildTraits()})},YI)})}),Ri.forEach(s=>{const c=`${$t}-variant-${s}`;[`${c}-label`,`${c}-product-count`,`${c}-popular`,...Array.from({length:Fs},(f,g)=>`${c}-product-${g+1}`)].forEach(f=>{this.on(`change:attributes:${f}`,()=>{this.__os3OpenVariant=s})})}),this.on("component:mount",()=>this.renderOffers())},normalizeSelections(){va(()=>{const i=this.getAttributes()||{},o={},s=Xo(i[`${$t}-variant-count`],1,Ri.length,1),c=Ri.slice(0,s);c.includes(String(i[`${$t}-default-variant`]||""))||(o[`${$t}-default-variant`]=c[0]),Ri.forEach(d=>{const f=`${$t}-variant-${d}`,g=Xo(i[`${f}-product-count`],1,Fs,1),m=String(i[`${f}-popular`]||"").trim();m&&Number(m)>g&&(o[`${f}-popular`]="")}),Object.keys(o).length>0&&this.addAttributes(o)})},rebuildTraits(){va(()=>{const i=this.getAttributes()||{},o=Xo(i[`${$t}-variant-count`],1,Ri.length,1),s=Ri.slice(0,o),c=ij(),d=s.includes(this.__os3OpenVariant)?this.__os3OpenVariant:s[0],f=[o,d,c.length,...s.map(x=>[x,String(i[`${$t}-variant-${x}-label`]||""),Xo(i[`${$t}-variant-${x}-product-count`],1,Fs,1)].join(":"))].join("|");if(this.__os3TraitStructure===f)return;this.__os3TraitStructure=f;const g={id:"os3-general",label:"Allgemein",open:!0},m={id:"os3-tracking",label:"Tracking & DataLayer",open:!1},y=[fd(g),pd(g),{...hd(),category:g},{...Lp(),category:g},{type:"select",name:`${$t}-variant-count`,label:"Anzahl Varianten (Umschalter)",category:g,options:[{id:"1",name:"1 Variante (ohne Umschalter)"},{id:"2",name:"2 Varianten"},{id:"3",name:"3 Varianten"}]},{type:"select",name:`${$t}-default-variant`,label:"Aktive Variante beim Seitenaufruf",category:g,options:s.map(x=>({id:x,name:String(i[`${$t}-variant-${x}-label`]||"").trim()||`Variante ${x.toUpperCase()}`}))},{type:"text",name:`${$t}-list-id`,label:"item_list_id",category:m},{type:"text",name:`${$t}-list-name`,label:"item_list_name",category:m},{type:"text",name:`${$t}-affiliation`,label:"Affiliation",category:m},{type:"text",name:`${$t}-brand`,label:"Brand",category:m},{type:"text",name:`${$t}-vertical`,label:"Google Business Vertical",category:m}];
2579s.forEach(x=>{const w=`${$t}-variant-${x}`,k=String(i[`${w}-label`]||"").trim(),S=Xo(i[`${w}-product-count`],1,Fs,1),A={id:`os3-variant-${x}`,label:k?`Variante ${x.toUpperCase()}: ${k}`:`Variante ${x.toUpperCase()}`,open:x===d};y.push({type:"text",name:`${w}-label`,label:"Anzeigename (Umschalter)",placeholder:'z. B. âGedruckt & digital"',category:A},{type:"select",name:`${w}-product-count`,label:"Anzahl Produkte",category:A,options:[{id:"1",name:"1 Produkt"},{id:"2",name:"2 Produkte"},{id:"3",name:"3 Produkte"}]});for(let L=1;L<=S;L++)y.push({type:"offer-search-select",name:`${w}-product-${L}`,label:`Angebot ${L}`,category:A,options:c});y.push({type:"select",name:`${w}-popular`,label:'âBeliebt"-Markierung',category:A,options:[{id:"",name:"â keine â"},...Array.from({length:S},(L,D)=>({id:String(D+1),name:`Produkt ${D+1}`}))]})}),this.set("traits",y)})},renderOffers(){var i,o,s;if(!this.__os3Rendering){if(t||a.getEditing()){if(this.__os3RenderPending||(this.__os3RenderAttempts=(this.__os3RenderAttempts||0)+1,this.__os3RenderAttempts>40))return;this.__os3RenderPending=!0,setTimeout(()=>{this.__os3RenderPending=!1,this.renderOffers()},100);return}this.__os3RenderAttempts=0,this.__os3Rendering=!0;try{if(typeof this.find!="function")return;const c=(this.find(`[${$t}-offer-product="wrap"]`)||[])[0];if(!c)return;const d=this.getAttributes()||{},f=N3();if(Ri.some(A=>Array.from({length:Fs},(L,D)=>d[`${$t}-variant-${A}-product-${D+1}`]).some(L=>String(L||"").trim()))&&Object.keys(f).length===0)return;const m=oj(d),y=String(d[`${$t}-default-variant`]||"a"),x=m.some(A=>A.key===y)?y:((i=m[0])==null?void 0:i.key)??"a",w=sj(m,x),k=(o=c.getAttributes)==null?void 0:o.call(c)[`${$t}-sig`];if((((s=c.find)==null?void 0:s.call(c,`[${$t}-variant-panel="wrap"]`))||[]).length>0&&k===w){this.enforceLocks();return}if(m.length===0)c.components('<div class="text-slate-500 dark:text-slate-400 text-sm italic py-10 select-none text-center">Noch keine Angebote gewählt â bitte Angebote in den Traits (Variante A/B/C) eintragen.</div>');else{const A=gj(c),L=[];if(m.length>1){const D=Math.max(m.findIndex(W=>W.key===x),0);L.push(pj(m.map((W,j)=>fj(W.label,W.key===x,W.key,j+1)),D))}m.forEach(D=>L.push(hj(D,D.key===x,A))),c.components([{tagName:"div",droppable:!1,attributes:{class:"max-w-screen-xl mx-auto"},components:L}])}a.UndoManager.skip(()=>{var A;(A=c.addAttributes)==null||A.call(c,{[`${$t}-sig`]:w})}),this.enforceLocks()}catch(c){typeof console<"u"&&console.warn("[offer-selection-3] renderOffers fehlgeschlagen:",c)}finally{this.__os3Rendering=!1}}},enforceLocks(){va(()=>{if(typeof this.find!="function")return;const i=o=>{va(()=>{const c=(o.getAttributes?o.getAttributes():{}).icon!==void 0||o.get("tagName")==="iconify-icon";o.set(c?{...Ov,selectable:!0,hoverable:!0,propagate:["selectable","hoverable"]}:{...Ov})}),va(()=>{const s=o.components?o.components():null;s!=null&&s.forEach&&s.forEach(i)})};(this.find(`[${$t}-offer-core]`)||[]).forEach(i),(this.find(`[${$t}-variant-bar="wrap"] button`)||[]).forEach(i)})}},view:{events(){return{[`click [${$t}-action="setVariant"]`]:"onPreviewSwitch"}},onPreviewSwitch(i){var f,g;const o=(g=(f=i.target)==null?void 0:f.closest)==null?void 0:g.call(f,`[${$t}-action="setVariant"]`);if(!o)return;i.preventDefault(),i.stopPropagation();const s=o.getAttribute(`${$t}-action-value`)||"",c=this.el,d=c.querySelector(`[${$t}-variant-bar="wrap"]`);if(d){const m=Array.from(d.querySelectorAll(`[${$t}-action="setVariant"]`));m.forEach((y,x)=>{const w=y===o;y.setAttribute("aria-checked",w?"true":"false"),y.setAttribute("tabindex",w?"0":"-1"),D3.forEach(S=>y.classList.toggle(S,w)),I3.forEach(S=>y.classList.toggle(S,!w));const k=y.querySelector(`[${$t}-chip-dot="wrap"]`);if(k){k.classList.toggle("border-white/70",w),k.classList.toggle("border-slate-400",!w),k.classList.toggle("dark:border-slate-500",!w);const S=k.firstElementChild;S&&(S.style.opacity=w?"1":"0")}if(w){const S=d.querySelector(`[${$t}-slider]`);if(S&&m.length>0){const A=100/m.length;S.style.left=`calc(${x*A}% + 4px)`,S.style.width=`calc(${A}% - 8px)`}}})}c.querySelectorAll(`[${$t}-variant-panel="wrap"]`).forEach(m=>{m.classList.toggle("hidden",m.getAttribute(`${$t}-variant-key`)!==s)})}}}),a.DomComponents.addType("offer-selection-3-container",{isComponent(i){var o;return((o=i==null?void 0:i.getAttribute)==null?void 0:o.call(i,`${$t}-container`))==="wrap"?{type:"offer-selection-3-container"}:!1}
2579,model:{defaults:{tagName:"div",droppable:!0,draggable:!1,copyable:!1,removable:!1,wide_content:!1,attributes:{[`${$t}-container`]:"wrap",class:"mx-auto px-4 sm:px-6 max-w-[960px] animate-fade-in"}},init(){this.on("change:wide_content",this.handleWideContentChange),this.handleWideContentChange()},handleWideContentChange(){va(()=>{const i=!!this.get("wide_content"),o=this.getAttributes()||{},s=String(o.class||"").split(/\s+/).filter(c=>c&&!c.startsWith("max-w-"));s.push(i?"max-w-[1280px]":"max-w-[960px]"),this.setAttributes({...o,class:s.join(" ")})})}}}),a.BlockManager.add("offerSelection3",{id:"offerSelection3",label:"Offer Selection 3",category:{id:"content",label:"Content"},attributes:{"data-os-group":"Vertriebliche Elemente","data-os-page-type":"aboshop"},content:{type:"offer-selection-3",components:[{type:"offer-selection-3-container",components:[{tagName:"div",draggable:!0,droppable:!0,removable:!0,copyable:!0,attributes:{class:"text-center max-w-3xl mx-auto mb-10 sm:mb-12 reveal"},components:[{tagName:"h2",type:"text",attributes:{class:"font-serif text-3xl sm:text-4xl md:text-5xl font-bold text-slate-900 dark:text-white mb-4"},content:"Unsere Angebote im Ãberblick"},{tagName:"p",type:"text",attributes:{class:"text-slate-600 dark:text-dark-muted text-base sm:text-lg max-w-[65ch] mx-auto"},content:"Wählen Sie das Angebot, das am besten zu Ihnen passt."}]},{type:"offer-selection-3-product",components:[{tagName:"div",attributes:{class:"text-slate-500 dark:text-slate-400 text-sm italic py-10 select-none text-center"},content:"Angebotsübersicht â wird nach Auswahl der Angebote (Traits) automatisch gerendert."}]}]}]},media:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><rect x="80" y="50" width="240" height="42" rx="21" fill="#e5e7eb"/><rect x="86" y="56" width="114" height="30" rx="15" fill="#9ca3af"/><rect x="20" y="120" width="110" height="230" rx="10" fill="#e5e7eb"/><rect x="145" y="120" width="110" height="230" rx="10" fill="#9ca3af"/><rect x="270" y="120" width="110" height="230" rx="10" fill="#e5e7eb"/><rect x="40" y="160" width="70" height="12" rx="4" fill="#9ca3af"/><rect x="165" y="160" width="70" height="12" rx="4" fill="#d1d5db"/><rect x="290" y="160" width="70" height="12" rx="4" fill="#9ca3af"/><rect x="35" y="290" width="80" height="24" rx="12" fill="#9ca3af"/><rect x="160" y="290" width="80" height="24" rx="12" fill="#d1d5db"/><rect x="285" y="290" width="80" height="24" rx="12" fill="#9ca3af"/></svg>'}),Pp(a,"offerSelection3","produkte")}const At="data-offerselection4",mj="52",hu="1.2.15",R3="Vertriebliche Elemente - Content - Offer Selection 4",Bi=["a","b","c"],Av=3,yj=600,B3=["","text-brand-contrast"],V3=["text-slate-600","dark:text-slate-300","hover:text-slate-900","dark:hover:text-white"],io={draggable:!1,droppable:!1,copyable:!1,removable:!1,editable:!1,selectable:!1,hoverable:!1},bj="Preisvorteil â Sie sparen nur gegenüber dem Einzelkauf",xj="Kündbar zum Ende der Laufzeit. Preise inkl. MwSt.",wg="https://placehold.co/768x432?text=768x432px",wj="https://placehold.co/1920x1080?text=1920x1080px",_j="(min-width: 1280px) 420px, (min-width: 640px) 50vw, 100vw";function H3(a){return a==="image"?"image":"icon"}function Cj(a){return a==="center"?"center":"start"}function kj(a){const r=String(a||"").match(/^ab\s+(.+)$/i);return r?{prefix:"aktuell ab",amount:r[1]}:{prefix:"aktuell",amount:a}}const Mv={"data-track-v2-parentposition":"Content","data-track-v2-parent":R3,"data-track-v2-parentlabel":"OS - Vertrieb","data-track-v2-elementtype":"Button"},Sj={id:"placeholder",title:"...",duration_months:"X",duration_unit:"month",price_display:"X0,00 â¬",checkout_link:"#"},_c="os4-trait-loading";function Tj(){try{if(typeof document>"u"||document.getElementById(_c))return;const a=document.createElement("div");if(a.id=_c,a.setAttribute("aria-hidden","true"),a.style.cssText=["position:fixed","inset:0","background:rgba(255,255,255,0.45)","backdrop-filter:blur(1px)","z-index:99999","display:flex","align-items:center","justify-content:center","pointer-events:all"].join(";"),a.innerHTML='<div style="width:42px;height:42px;border-radius:50%;border:3px solid #cbd5e1;border-top-color:#0f172a;animation:os4-spin 0.8s linear infinite"></div>',!document.getElementById(_c+"-css")){const r=document.createElement("style");r.id=_c+"-css",r.textContent="@keyframes os4-spin{to{transform:rotate(360deg)}}",document.head.appendChild(r)}document.body.appendChild(a)}catch{}}function Oj(){var a;try{const r=typeof document<"u"?document.getElementById(_c):null;(a=r==null?void 0:r.parentNode)==null||a.removeChild(r)}catch{}}function ma(a){try{a()}catch{}}function Ej(a){return a.startsWith("{")&&a.endsWith("}")}function Si(a){return String(a??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Aj(a,r="month"){const t={hour:["Stunde","Stunden"],day:["Tag","Tage"],week:["Woche","Wochen"],month:["Monat","Monate"]},e=t[r??"month"]??t.month;return Number(a)===1?e[0]:e[1]}function Mj(a="month"){const r={hour:"pro Stunde",day:"pro Tag",week:"pro Woche",month:"pro Monat"};return r[a??"month"]??r.month}function Pj(){var r,t;if(typeof document>"u")return!1;const a=(t=(r=document.activeElement)==null?void 0:r.tagName)==null?void 0:t.toLowerCase();return a==="input"||a==="textarea"}function up(a,r,t,e){const n=Number(a);return Number.isFinite(n)?Math.max(r,Math.min(t,n)):e}function Lj(a){try{const r=JSON.parse(String(a||"[]"));
2579if(Array.isArray(r))return[...new Set(r.map(String).filter(Boolean))]}catch{return[...new Set(String(a||"").split(",").map(r=>r.trim()).filter(Boolean))]}return[]}function F3(a,r){const t=`${At}-variant-${r}`,e=up(a[`${t}-product-count`],1,Av,1);return Array.from({length:e},(n,i)=>String(a[`${t}-product-${i+1}`]||"").trim()).filter(Boolean)}function $s(a,r){const e=`${`${At}-variant-${r}`}-offers`;return Object.prototype.hasOwnProperty.call(a,e)?Lj(a[e]):F3(a,r)}function P1(){const a=typeof window<"u"?window.__grapesOffers||[]:[],r=Array.isArray(a)?a:Object.values(a),t={},e={};return r.forEach(n=>{if(n&&([n.id,n.key].forEach(i=>{i!=null&&String(i)!==""&&!(String(i)in t)&&(t[String(i)]=n)}),n.item_id!=null&&String(n.item_id)!=="")){const i=String(n.item_id);e[i]=[...e[i]??[],n]}}),Object.entries(e).forEach(([n,i])=>{i.length===1&&(t[n]=i[0])}),t}function Dj(){const a=typeof window<"u"?window.__grapesOffers||[]:[],r=Array.isArray(a)?a:Object.values(a),t=new Set,e=r.filter(n=>(n==null?void 0:n.id)!=null&&!t.has(String(n.id))&&(t.add(String(n.id)),!0)).map(n=>{var o,s;const i=((o=n.fom_waks)==null?void 0:o.map(c=>c.wak).filter(Boolean).join(", "))||"â";return{id:String(n.id),name:`#${n.id} · FOM-ID: ${i} · ${n.unique_name||n.title||n.key||"Angebot"} · ${((s=n.campaign)==null?void 0:s.name)||"Ohne Kampagne"}`}});return[{id:"",name:"â Angebot auswählen â"},...e]}function Ij(a){const r=P1()[String(a||"")];return Array.isArray(r==null?void 0:r.checkout_options)?r.checkout_options:[]}function jj(a){return{id:`unavailable-${a.id}`,offer_id:Number(a.id)||0,brand_id:0,ssip_offer_item_id:0,selection_key:null,is_available:!1,is_default:!1,checkout_link:"#"}}function Nj(a,r){return r.is_available===!1?{...a,checkout_link:"#",price_display:"Nicht verfügbar",price_numeric:0,bonus_id:null,bonus_details:null,ssip:void 0,preview_unavailable:!0}:{...a,checkout_link:r.checkout_link||"#",kpi:r.kpi==null?0:r.kpi,price_display:r.price_display||a.price_display,price_numeric:r.price_numeric==null?a.price_numeric:r.price_numeric,bonus_id:r.bonus_id||null,bonus_details:r.bonus_details||null,ssip:r.ssip}}function ki(a){return{...a,...io}}function Pv(a){return{...a,draggable:!1,droppable:!1,copyable:!1,removable:!1,editable:!0,selectable:!0,hoverable:!0}}function Kc(a){return{draggable:!0,copyable:!0,removable:!0,droppable:!0,selectable:!0,...a}}function Rj(a){return a<=1?"grid-cols-1 max-w-[420px]":a===2?"grid-cols-1 sm:grid-cols-[repeat(2,minmax(0,420px))]":"grid-cols-1 sm:grid-cols-[repeat(2,minmax(0,420px))] lg:grid-cols-[repeat(3,minmax(0,420px))]"}function Bj(a){const r=P1(),t=up(a[`${At}-variant-count`],1,Bi.length,1),e=[];return Bi.slice(0,t).forEach(n=>{const i=`${At}-variant-${n}`,o=String(a[`${i}-popular`]||"").trim(),s=[];$s(a,n).forEach((c,d)=>{const f=d+1,g=r[c]||(Ej(c)?Sj:null);if(!g)return;const m=Ij(g.id)[0]??jj(g),y=Nj(g,m),x=String(y.type||"").trim().toLowerCase(),w=x in Fi?x:"";s.push({slot:f,offer:y,checkoutOption:m,packageType:w,popular:o===String(f)})}),s.length!==0&&e.push({key:n,label:String(a[`${i}-label`]||"").trim()||`Variante ${n.toUpperCase()}`,products:s})}),e}function Vj(a,r,t){return[r,t,...a.map(e=>[e.key,e.label,e.products.map(n=>[n.slot,n.offer.id,n.checkoutOption.id,n.packageType,n.popular?"1":"0"].join(":")).join(",")].join("|"))].join("||")}function Hj(a,r){var n;const t=(n=Fi[a])==null?void 0:n.productId,e=Dp.map(i=>{const o=!!t&&i.productIds.includes(t);return{tagName:"li",draggable:!0,droppable:!1,copyable:!0,removable:!0,selectable:!0,attributes:{class:"flex items-start gap-3 text-sm text-slate-700 dark:text-slate-300"},components:[{type:"iconify-icon",tagName:"iconify-icon",editable:!1,draggable:!1,droppable:!1,copyable:!1,removable:!1,selectable:!0,attributes:{icon:o?"material-symbols:check":"material-symbols:close",class:(r==="image"?"text-slate-600 dark:text-slate-300":o?"text-green-500":"text-red-500")+" mt-0.5 font-bold shrink-0",style:`font-size:${r==="image"?22:18}px`,"aria-hidden":"true"}},...r==="image"?[{tagName:"div",attributes:{class:"flex flex-col gap-1"},components:[{tagName:"strong",type:"text",editable:!0,content:Si(i.title)},{tagName:"p",type:"text",editable:!0,attributes:{class:"m-0 text-slate-600 dar
2579k:text-slate-400"},content:Si(i.description)}]}]:[{tagName:"span",type:"text",editable:!0,content:Si(i.label)}]]}});return[{tagName:"div",draggable:!1,copyable:!1,removable:!1,attributes:{class:r==="image"?"":"px-2"},components:[{tagName:"h4",type:"text",editable:!0,draggable:!1,removable:!0,copyable:!0,attributes:{class:"text-sm font-bold text-slate-900 dark:text-white mb-4 "+(r==="image"?"text-left":"text-center"),[`${At}-offer-features-title`]:"wrap"},content:"Was dieses Abo bietet"},{tagName:"div",draggable:!1,copyable:!1,removable:!1,attributes:{class:"flex "+(r==="image"?"justify-start":"justify-center")},components:[{tagName:"ul",droppable:!0,draggable:!1,copyable:!1,removable:!1,attributes:{class:"text-left space-y-3 "+(r==="image"?"mb-6 ":"mb-8 px-2 ")+"inline-block",[`${At}-offer-feature-list`]:"wrap"},components:e}]},...r==="image"?[{tagName:"div",editable:!1,draggable:!1,droppable:!1,copyable:!1,removable:!1,selectable:!1,hoverable:!1,attributes:{class:"flex flex-wrap items-center justify-start gap-2 mb-8",[`${At}-offer-feature-tags`]:"wrap"},components:["Einfache Bedienung","Flexibel kündbar","Digital verfügbar"].map(i=>({tagName:"span",type:"text",editable:!0,selectable:!0,copyable:!0,removable:!0,draggable:!1,droppable:!1,content:Si(i),attributes:{class:"inline-flex w-fit whitespace-nowrap rounded-full bg-slate-100 px-3 py-1 text-xs font-medium text-slate-700 dark:bg-slate-800 dark:text-slate-300"}}))}]:[]]}]}function Fj(a,r,t,e,n){var f,g;const i=r?Fi[r].productId:null,o=i?A1[i].icon:"",s=a.duration_months?`${Si(a.duration_months)} <span>${Aj(a.duration_months,a.duration_unit)} lesen</span>`:"",c=[],d=a.preview_unavailable?"In der Vorschau nicht verfügbar: Für keine Brand dieser Landingpage ist eine aktive Checkout-Option hinterlegt.":a.preview_fallback_brand?`Vorschau für ${Si(a.preview_fallback_brand.shortcode||a.preview_fallback_brand.name)}: Für die primäre Vorschau-Brand (${Si(((f=a.preview_primary_brand)==null?void 0:f.shortcode)||((g=a.preview_primary_brand)==null?void 0:g.name)||"")}) ist keine aktive Checkout-Option hinterlegt.`:null;if(e==="image"){const m=[Kc({tagName:"div",attributes:{class:"text-slate-600 dark:text-slate-400 font-bold text-xs sm:text-sm uppercase tracking-wider mb-2"},components:[ki({tagName:"span",attributes:{[`${At}-offer-core`]:"duration"},content:s})]}),Pv({tagName:"h3",type:"text",attributes:{[`${At}-offer-core`]:"title",class:"text-2xl sm:text-3xl font-black text-slate-900 dark:text-white mb-1"},content:(n==null?void 0:n.titleHtml)??Si(a.title||"")})];return d&&m.push(ki({tagName:"p",attributes:{[`${At}-offer-core`]:"availability-note",class:"mt-3 text-xs font-medium text-amber-700 dark:text-amber-300",role:"status"},content:d})),{tagName:"div",draggable:!0,copyable:!0,removable:!0,droppable:!0,selectable:!0,attributes:{[`${At}-offer-header`]:"wrap",class:"overflow-hidden rounded-t-lg border-b border-slate-100 text-left dark:border-dark-border"},components:[{tagName:"div",draggable:!1,droppable:!1,copyable:!1,removable:!1,selectable:!1,hoverable:!1,attributes:{class:"relative"},components:[{tagName:"picture",editable:!1,droppable:!1,draggable:!1,copyable:!1,removable:!1,selectable:!0,attributes:{[`${At}-offer-header-image`]:"wrap",class:"block aspect-[16/9] w-full bg-slate-100 dark:bg-neutral-800"},components:(n==null?void 0:n.headerImageHtml)??[{tagName:"source",...io,attributes:{media:"(max-width: 767px)",srcset:`${wg} 768w`,sizes:"100vw"}},{tagName:"source",...io,attributes:{media:"(min-width: 768px)",srcset:`${wg} 768w, ${wj} 1920w`,sizes:_j}},{type:"image",...io,attributes:{src:wg,alt:"",class:"h-full w-full object-cover object-center"}}]},{tagName:"div",type:"offer-selection-4-badge",attributes:{[`${At}-offer-core`]:"popular",class:"os-badge absolute bottom-4 left-4 z-10 inline-block w-fit rounded px-3 py-1 text-xs font-bold uppercase tracking-wider bg-brand-primary-500 text-brand-contrast"},content:"Beliebt"}]},{tagName:"div",draggable:!1,droppable:!0,copyable:!1,removable:!1,selectable:!1,attributes:{class:"p-6 sm:p-8"},components:m}]}}return t&&c.push(ki({tagName:"div",attributes:{[`${At}-offer-core`]:"popular",class:"absolute top-0 left-1/2 -translate-x-1/2 -translate-y-1/2 z-10"},content:'<span class="bg-brand-primary-500 text-brand-contrast text-[10px] sm:text-xs font-bold uppercase tracking-widest px-4 py-1 rounded-full shadow-sm">Beliebt</span>'})),o&&c.push(ki({tagName:"div",attributes:{[`${At}-offer-core`]:"icon"},content:o})),c.push(Pv({tagName:"h3",type:"text",attributes:{[`${At}
2579-offer-core`]:"title",class:"text-slate-600 dark:text-slate-400 font-bold text-xs sm:text-sm uppercase tracking-wider mb-2"},content:(n==null?void 0:n.titleHtml)??Si(a.title||"")}),Kc({tagName:"div",attributes:{class:"text-2xl sm:text-3xl font-black text-slate-900 dark:text-white mb-1"},components:[ki({tagName:"span",attributes:{[`${At}-offer-core`]:"duration"},content:s})]})),d&&c.push(ki({tagName:"p",attributes:{[`${At}-offer-core`]:"availability-note",class:"mt-3 text-xs font-medium text-amber-700 dark:text-amber-300",role:"status"},content:d})),{tagName:"div",draggable:!0,copyable:!0,removable:!0,droppable:!0,selectable:!0,attributes:{[`${At}-offer-header`]:"wrap",class:"p-6 pb-4 sm:p-8 sm:pb-6 border-b border-slate-100 dark:border-dark-border text-center rounded-t-lg"},components:c}}function $j(a,r){const t=kj(a.price_display||""),e=a.checkout_link?Si(a.checkout_link):"#",n=a.preview_unavailable===!0,i=r!=null&&r.savingRemoved?null:{tagName:"div",type:"text",editable:!0,draggable:!0,copyable:!0,removable:!0,selectable:!0,attributes:{[`${At}-offer-saving`]:"wrap",class:"text-xs text-slate-500 dark:text-slate-400 mt-3"},content:(r==null?void 0:r.savingHtml)??bj},o=r!=null&&r.secondaryCtaRemoved?null:Kc({tagName:"a",type:"link",editable:!1,droppable:!1,attributes:{[`${At}-offer-secondary-cta`]:"true",href:(r==null?void 0:r.secondaryCtaHref)||"#",target:"_self",class:"inline-flex items-center justify-center w-full px-6 py-3 text-base font-bold no-underline rounded-full border-2 border-brand-primary-500 hover:border-brand-primary-700 text-brand-primary-500 hover:text-brand-primary-700 hover:bg-brand-primary-50 focus:bg-brand-primary-50 active:bg-brand-primary-100 transition-all duration-200 min-h-[44px] active:scale-95",...Mv,"data-track-v2-elementposition":"98","data-track-v2-vendor":"Internal","data-track-v2-linktype":"External","data-track-v2-clickaction":"select_item"},components:(r==null?void 0:r.secondaryCtaHtml)??[{tagName:"span",type:"text",editable:!0,selectable:!0,draggable:!1,droppable:!1,copyable:!1,removable:!1,attributes:{class:"relative z-10"},content:"Mehr Infos"}]}),s=r!=null&&r.legalRemoved?null:{tagName:"p",type:"text",editable:!0,draggable:!0,copyable:!0,removable:!0,selectable:!0,attributes:{[`${At}-offer-legal`]:"wrap",class:"text-xs text-slate-500 dark:text-slate-400 mt-3"},content:(r==null?void 0:r.legalHtml)??xj},c=[ki({tagName:"a",type:"link",attributes:{[`${At}-offer-core`]:"cta",href:e,target:"_self",class:"inline-flex items-center justify-center w-full px-6 py-3 text-base font-bold no-underline rounded-full border-2 border-transparent text-brand-contrast shadow-md transition-all duration-200 min-h-[44px] "+(n?"bg-slate-400 cursor-not-allowed pointer-events-none":"bg-brand-primary-500 hover:bg-brand-primary-700 focus:bg-brand-primary-700 active:bg-brand-primary-300 active:scale-95"),...n?{"aria-disabled":"true",tabindex:"-1"}:{},[`${At}-action`]:"cta",...Mv,"data-track-v2-elementposition":"99","data-track-v2-vendor":"Internal","data-track-v2-linktype":"External","data-track-v2-clickaction":"add_to_cart"},components:[Pv({tagName:"span",type:"text",attributes:{[`${At}-offer-core`]:"cta-label",class:"relative z-10"},content:(r==null?void 0:r.ctaLabelHtml)??(n?"Nicht buchbar":"Jetzt abonnieren")})]})];return o&&c.push(o),s&&c.push(s),{tagName:"div",draggable:!0,copyable:!0,removable:!0,droppable:!0,selectable:!0,attributes:{[`${At}-offer-footer`]:"wrap"},components:[{tagName:"div",draggable:!0,copyable:!0,removable:!0,droppable:!0,selectable:!0,attributes:{[`${At}-offer-pricebox`]:"wrap",class:"px-6 sm:px-8 py-5 text-center"},components:[Kc({tagName:"div",attributes:{class:"text-4xl sm:text-5xl font-black text-slate-900 dark:text-white mb-1 tracking-tight"},components:[ki({tagName:"span",attributes:{[`${At}-offer-core`]:"price-prefix",class:"block text-base sm:text-lg font-medium text-slate-600 dark:text-slate-300"},content:t.prefix}),ki({tagName:"span",attributes:{[`${At}-offer-core`]:"price",class:"block"},content:Si(t.amount)}),ki({tagName:"span",attributes:{[`${At}-offer-core`]:"price-suffix",class:"block text-base sm:text-lg font-medium text-slate-600 dar
2579k:text-slate-300"},content:Mj(a.duration_unit)})]}),...i?[i]:[]]},Kc({tagName:"div",attributes:{class:"px-6 sm:px-8 pb-8 mt-auto text-center rounded-b-lg flex flex-col gap-3"},components:c})]}}function zj(a,r,t,e,n){const i=a.popular?"ring-2 ring-brand-primary-500 ":"",o=a.packageType?Fi[a.packageType].productId:null,s=o?A1[o].icon:"",c=(n==null?void 0:n.featuresLayout)===t?n.featuresHtml:void 0,d={tagName:"div",editable:!0,droppable:!0,draggable:!1,copyable:!1,removable:!1,attributes:{[`${At}-offer-features`]:"wrap",class:t==="image"?"px-6 pt-6 sm:px-8":"pt-6",...c!==void 0||t==="image"?{[`${At}-features-dirty`]:"1"}:{}}};d.components=c??Hj(a.packageType,t);const f={tagName:"div",droppable:!0,draggable:!1,copyable:!1,removable:!1,attributes:{[`${At}-offer-editable`]:"wrap",class:"px-6 sm:px-8 min-h-[8px]"}};return n!=null&&n.editableHtml&&(f.components=n.editableHtml),{tagName:"div",draggable:!1,copyable:!1,removable:!1,droppable:!1,selectable:!0,attributes:{[`${At}-card`]:"wrap",[`${At}-variant-key`]:r,[`${At}-product-index`]:String(a.slot),[`${At}-offer-ref`]:String(a.offer.id),...s?{[`${At}-package-icon`]:encodeURIComponent(s)}:{},[`${At}-offer-type`]:a.packageType,[`${At}-offer-popular`]:a.popular?"1":"0",[`${At}-layout`]:t,class:"w-full max-w-[420px] justify-self-center relative flex flex-col bg-white dark:bg-dark-surface rounded-lg border border-slate-200 dark:border-dark-border shadow-sm hover:shadow-md transition-shadow duration-300 animate-slide-up "+(e==="center"?"sm:w-[calc((100%_-_2rem)/2)] lg:w-[calc((100%_-_4rem)/3)] ":"")+i},components:[Fj(a.offer,a.packageType,a.popular,t,n),d,f,$j(a.offer,n)]}}function Uj(a,r,t,e){return ki({tagName:"button",attributes:{type:"button",[`${At}-action`]:"setVariant",[`${At}-action-value`]:t,role:"radio","aria-checked":r?"true":"false",tabindex:r?"0":"-1",class:"relative z-10 flex-1 sm:min-w-[160px] px-2 sm:px-6 py-3 text-xs sm:text-sm font-bold transition-colors duration-300 whitespace-nowrap min-h-[44px] flex items-center justify-center gap-2 active:scale-95 cursor-pointer "+(r?B3:V3).join(" "),...Mv,"data-track-v2-elementposition":String(e)},content:`<span ${At}-chip-dot="wrap" class="inline-flex shrink-0 items-center justify-center w-4 h-4 rounded-full border-2 `+(r?"border-white/70":"border-slate-400 dark:border-slate-500")+' bg-transparent transition-colors" aria-hidden="true"><span class="block w-2 h-2 rounded-full bg-white transition-opacity" style="opacity:'+(r?"1":"0")+'"></span></span><span>'+Si(a)+"</span>"})}function Wj(a,r){const t=100/Math.max(a.length,1);return{tagName:"div",draggable:!1,copyable:!1,removable:!1,droppable:!1,selectable:!1,attributes:{class:"w-full flex justify-center"},components:[{tagName:"div",draggable:!1,copyable:!1,removable:!1,droppable:!1,selectable:!0,attributes:{[`${At}-variant-bar`]:"wrap",role:"radiogroup","aria-label":"Abo-Variante auswählen",class:"relative flex w-full max-w-2xl bg-slate-50 dark:bg-neutral-900 p-1 rounded-lg shadow-inner border border-slate-200 dark:border-dark-border mb-8 sm:mb-10 overflow-hidden"},components:[ki({tagName:"div",attributes:{[`${At}-slider`]:"true",class:"absolute top-1 bottom-1 bg-brand-primary-500 rounded-sm shadow-md transition-all duration-300 ease-out z-0",style:`left:calc(${r*t}% + 4px); width:calc(${t}% - 8px)`}}),...a]}]}}function Zj(a,r,t,e,n){return{tagName:"div",draggable:!1,copyable:!1,removable:!1,droppable:!1,selectable:!0,attributes:{[`${At}-variant-panel`]:"wrap",[`${At}-variant-key`]:a.key,[`${At}-active`]:r?"1":"0",class:(e==="center"?"flex w-full max-w-full flex-wrap justify-center ":"grid w-fit max-w-full mx-auto justify-items-center "+Rj(a.products.length)+" ")+"gap-6 sm:gap-8"+(r?"":" hidden")},components:a.products.map(i=>zj(i,a.key,t,e,n.get(`${a.key}:${i.slot}:${i.offer.id}:${i.packageType}`)))}}function qj(a){const r=new Map;if(typeof(a==null?void 0:a.find)!="function")return r;const t=(n,i)=>{const o=typeof(n==null?void 0:n.find)=="function"?n.find(i):null;return Array.isArray(o)&&o.length>0?o[0]:null},e=n=>{try{if(!n)return;if(typeof n.getInnerHTML=="function")return n.getInnerHTML();const i=typeof n.components=="function"?n.components():null;return!i||typeof i.map!="function"?void 0:i.map(o=>
2579typeof(o==null?void 0:o.toHTML)=="function"?o.toHTML():"").join("")}catch{return}};return(a.find(`[${At}-card="wrap"]`)||[]).forEach(n=>{var k,S,A;if(!n)return;const i=((k=n.getAttributes)==null?void 0:k.call(n))||{},o=[i[`${At}-variant-key`],i[`${At}-product-index`],i[`${At}-offer-ref`],i[`${At}-offer-type`]||""].join(":"),s=t(n,`[${At}-offer-features="wrap"]`),c=t(n,`[${At}-offer-core="title"]`),d=((S=s==null?void 0:s.getAttributes)==null?void 0:S.call(s)[`${At}-features-dirty`])==="1",f=t(n,`[${At}-offer-saving="wrap"]`),g=t(n,`[${At}-offer-core="cta-label"]`),m=t(n,`[${At}-offer-secondary-cta]`),y=t(n,`[${At}-offer-legal="wrap"]`),x=t(n,`[${At}-offer-editable="wrap"]`),w=t(n,`[${At}-offer-header-image="wrap"]`);r.set(o,{headerImageHtml:w?e(w):void 0,titleHtml:c?e(c):void 0,featuresHtml:d?e(s):void 0,featuresLayout:H3(i[`${At}-layout`]),savingHtml:f?e(f):void 0,savingRemoved:!f,ctaLabelHtml:g?e(g):void 0,secondaryCtaHtml:m?e(m):void 0,secondaryCtaHref:(A=m==null?void 0:m.getAttributes)==null?void 0:A.call(m).href,secondaryCtaRemoved:!m,legalHtml:y?e(y):void 0,legalRemoved:!y,editableHtml:x?e(x):void 0})}),r}function Kj(a){var i;const r=a.TraitManager;(i=r.getType)!=null&&i.call(r,"offer-search-select")||E1(a);let t=!1;a.on("storage:start:store",()=>{t=!0}),a.on("storage:end:store",()=>{t=!1}),a.on("storage:error:store",()=>{t=!1});const e=o=>{ma(()=>{var c,d;const s=(c=o==null?void 0:o.closest)==null?void 0:c.call(o,`[${At}-offer-features="wrap"]`);s&&((d=s.getAttributes)==null?void 0:d.call(s)[`${At}-features-dirty`])!=="1"&&s.addAttributes({[`${At}-features-dirty`]:"1"})})};a.on("component:update",e),a.on("component:remove:before",e);const n={id:"produkte",[`${At}-offer-selection`]:"wrap","data-component-id":mj,"data-component-version":hu,"data-component-name":R3,class:"hero-fullwidth relative w-screen left-1/2 -translate-x-1/2 overflow-hidden bg-slate-100 dark:bg-neutral-800 py-12 sm:py-16 lg:py-20 animate-fade-in","aria-label":"Angebotsübersicht",[`${At}-list-id`]:"Kampagnen-Landingpage",[`${At}-list-name`]:"Angebote",[`${At}-affiliation`]:"FUNKE Medien NRW GmbH",[`${At}-brand`]:"WAZ",[`${At}-vertical`]:"Nachrichten",[`${At}-layout`]:"icon",[`${At}-alignment`]:"start",[`${At}-variant-count`]:"1",[`${At}-default-variant`]:"a",[`${At}-variant-a-label`]:"",[`${At}-variant-a-offers`]:"[]",[`${At}-variant-a-popular`]:"",[`${At}-variant-b-label`]:"",[`${At}-variant-b-offers`]:"[]",[`${At}-variant-b-popular`]:"",[`${At}-variant-c-label`]:"",[`${At}-variant-c-offers`]:"[]",[`${At}-variant-c-popular`]:""};a.DomComponents.addType("offer-selection-4-badge",{extend:"text",isComponent(o){var s;return((s=o==null?void 0:o.getAttribute)==null?void 0:s.call(o,`${At}-offer-core`))==="popular"?{type:"offer-selection-4-badge"}:!1},model:{defaults:{tagName:"div",name:"Angebots-Badge",editable:!0,selectable:!0,hoverable:!0,highlightable:!0,draggable:!1,droppable:!1,copyable:!1,removable:!1,layerable:!1}}}),a.DomComponents.addType("offer-selection-4",{isComponent(o){var s;return((s=o==null?void 0:o.getAttribute)==null?void 0:s.call(o,`${At}-offer-selection`))==="wrap"?{type:"offer-selection-4"}:!1},model:{defaults:{tagName:"section",droppable:!0,highlightSection:!0,sectionDivider:"none",attributes:n,traits:[]},init(){this.migrateLegacySelections(),this.normalizeSelections(),ma(()=>{var g;const c=["hero-fullwidth","relative","w-screen","left-1/2","-translate-x-1/2","overflow-hidden","py-12","sm:py-16","lg:py-20","animate-fade-in"],d=new Set(String(((g=this.getAttributes)==null?void 0:g.call(this).class)||"").split(/\s+/).filter(Boolean));let f=!1;
2579c.forEach(m=>{d.has(m)||(d.add(m),f=!0)}),f&&this.addAttributes({class:Array.from(d).join(" ")})}),this.rebuildTraits(),this.renderOffers(),this.on("change:attributes",()=>this.renderOffers()),[`${At}-variant-count`].forEach(c=>{this.on(`change:attributes:${c}`,()=>{Tj(),setTimeout(()=>{try{this.normalizeSelections(),this.rebuildTraits(),this.renderOffers()}finally{setTimeout(Oj,80)}},0)})});let s=null;Bi.forEach(c=>{this.on(`change:attributes:${At}-variant-${c}-label`,()=>{s&&clearTimeout(s),s=setTimeout(()=>{ma(()=>{Pj()||this.rebuildTraits()})},yj)})}),Bi.forEach(c=>{const d=`${At}-variant-${c}`;[`${d}-label`,`${d}-offers`,`${d}-popular`,...Array.from({length:Av},(g,m)=>`${d}-product-${m+1}`)].forEach(g=>{this.on(`change:attributes:${g}`,()=>{this.__os4OpenVariant=c})}),this.on(`change:attributes:${d}-offers`,()=>{this.__os4TraitStructure=null,this.rebuildTraits()}),Array.from({length:Av},(g,m)=>`${d}-product-${m+1}`).forEach(g=>{this.on(`change:attributes:${g}`,()=>{this.__os4TraitStructure=null,this.rebuildTraits(),this.renderOffers()})})}),this.on("component:mount",()=>this.renderOffers())},migrateLegacySelections(){const o=this.getAttributes()||{},s={},c=o["data-component-version"]===hu;Bi.forEach(d=>{const f=`${At}-variant-${d}-offers`,g=F3(o,d),m=$s(o,d);(!Object.prototype.hasOwnProperty.call(o,f)||!c&&m.length===0&&g.length>0)&&(s[f]=JSON.stringify(g))}),Object.keys(s).length>0&&(s["data-component-version"]=hu,this.addAttributes(s))},normalizeSelections(){ma(()=>{const o=this.getAttributes()||{},s={},c=up(o[`${At}-variant-count`],1,Bi.length,1),d=Bi.slice(0,c);d.includes(String(o[`${At}-default-variant`]||""))||(s[`${At}-default-variant`]=d[0]),Bi.forEach(f=>{const g=`${At}-variant-${f}`,m=`${g}-offers`,y=$s(o,f);Object.prototype.hasOwnProperty.call(o,m)&&o[m]!==JSON.stringify(y)&&(s[m]=JSON.stringify(y));const x=y.length,w=String(o[`${g}-popular`]||"").trim(),k=Number(w);w&&(!Number.isInteger(k)||k<1||k>x)&&(s[`${g}-popular`]="")}),Object.keys(s).length>0&&this.addAttributes(s)})},rebuildTraits(){ma(()=>{const o=this.getAttributes()||{},s=up(o[`${At}-variant-count`],1,Bi.length,1),c=Bi.slice(0,s),d=Dj(),f=c.includes(this.__os4OpenVariant)?this.__os4OpenVariant:c[0],g=[s,f,d.length,...c.map(w=>[w,String(o[`${At}-variant-${w}-label`]||""),$s(o,w).join(",")].join(":"))].join("|");if(this.__os4TraitStructure===g)return;this.__os4TraitStructure=g;const m={id:"os4-general",label:"Allgemein",open:!0},y={id:"os4-tracking",label:"Tracking & DataLayer",open:!1},x=[fd(m),pd(m),Mp(m),{...hd(),category:m},{...Lp(),category:m},{type:"select",name:`${At}-layout`,label:"Kartenlayout",category:m,options:[{id:"icon",name:"Paket-Icon"},{id:"image",name:"Header-Bild"}]},{type:"select",name:`${At}-alignment`,label:"Horizontale Ausrichtung",category:m,options:[{id:"start",name:"Linksbündig"},{id:"center",name:"Zentriert"}]},{type:"select",name:`${At}-variant-count`,label:"Anzahl Varianten (Umschalter)",category:m,options:[{id:"1",name:"1 Variante (ohne Umschalter)"},{id:"2",name:"2 Varianten"},{id:"3",name:"3 Varianten"}]},{type:"select",name:`${At}-default-variant`,label:"Aktive Variante beim Seitenaufruf",category:m,options:c.map(w=>({id:w,name:String(o[`${At}-variant-${w}-label`]||"").trim()||`Variante ${w.toUpperCase()}`}))},{type:"text",name:`${At}-list-id`,label:"item_list_id",category:y},{type:"text",name:`${At}-list-name`,label:"item_list_name",category:y},{type:"text",name:`${At}-affiliation`,label:"Affiliation",category:y},{type:"text",name:`${At}-brand`,label:"Brand",category:y},{type:"text",name:`${At}-vertical`,label:"Google Business Vertical",category:y}];c.forEach(w=>{const k=`${At}-variant-${w}`,S=String(o[`${k}-label`]||"").trim(),L=$s(o,w).length,D={id:`os4-variant-${w}`,label:S?`Variante ${w.toUpperCase()}: ${S}`:`Variante ${w.toUpperCase()}`,open:w===f};x.push({type:"text",name:`${k}-label`,label:"Anzeigename (Umschalter)",placeholder:'z. B. âGedruckt & digital"',category:D},{type:"offer-search-multi-select",name:`${k}-offers`,label:"Angebote",category:D,searchPlaceholder:"Angebots-ID, FOM-ID oder Name suchenâ¦",searchLabel:"Angebote filtern",selectionLabel:"Angebote auswählen",note:"Die erste verfügbare Prämienoption wird für jede Brand automatisch verwendet.",maxSelections:null,options:d}),x.push({type:"select",name:`${k}-popular`,label:'âBeliebt"-Markierung',category:D,options:[{id:"",name:"â keine â"},...Array.from({length:L},(W,j)=>({id:String(j+1),name:`Produkt ${j+1}`}))]})}),this.set("traits",x)})},renderOffers(){var o,s,c;if(!this.__os4Rendering){if(t||a.getEditing()){if(this.__os4RenderPending||(this.__os4RenderAttempts=(this.__os4RenderAttempts||0)+1,this.__os4RenderAttempts>40))return;this.__os4RenderPending=!0,setTimeout(()=>{this.__os4RenderPending=!1,this.renderOffers()},100);return}this.__os4RenderAttempts=0,this.__os4Rendering=!0;try{if(typeof this.find!="function")return;const d=(this.find(`[${At}-offer-product="wrap"]`)||[])[0];if(!d)return;const f=this.getAttributes()||{},g=P1();if(Bi.some(W=>$s(f,W).length>0)&&Object.keys(g).length===0)return;const y=Bj(f),x=H3(f[`${At}-layout`]),w=Cj(f[`${At}
2579-alignment`]),k=String(f[`${At}-default-variant`]||"a"),S=y.some(W=>W.key===k)?k:((o=y[0])==null?void 0:o.key)??"a",A=hu+"|"+x+"|"+Vj(y,S,w),L=(s=d.getAttributes)==null?void 0:s.call(d)[`${At}-sig`];if((((c=d.find)==null?void 0:c.call(d,`[${At}-variant-panel="wrap"]`))||[]).length>0&&L===A){this.enforceLocks();return}if(y.length===0)d.components('<div class="text-slate-500 dark:text-slate-400 text-sm italic py-10 select-none text-center">Noch keine Angebote gewählt â bitte Angebote in den Traits (Variante A/B/C) eintragen.</div>');else{const W=qj(d),j=[];if(y.length>1){const et=Math.max(y.findIndex(z=>z.key===S),0);j.push(Wj(y.map((z,B)=>Uj(z.label,z.key===S,z.key,B+1)),et))}y.forEach(et=>j.push(Zj(et,et.key===S,x,w,W))),d.components([{tagName:"div",droppable:!1,attributes:{class:"max-w-screen-xl mx-auto"},components:j}])}a.UndoManager.skip(()=>{var W;(W=d.addAttributes)==null||W.call(d,{[`${At}-sig`]:A})}),this.enforceLocks()}catch(d){typeof console<"u"&&console.warn("[offer-selection-4] renderOffers fehlgeschlagen:",d)}finally{this.__os4Rendering=!1}}},enforceLocks(){ma(()=>{if(typeof this.find!="function")return;const o=s=>{ma(()=>{const c=s.getAttributes?s.getAttributes():{},d=c.icon!==void 0||s.get("tagName")==="iconify-icon",f=c[`${At}-offer-core`]==="popular",g=["title","cta-label"].includes(c[`${At}-offer-core`]);s.set(f?{...io,editable:!0,selectable:!0,hoverable:!0,highlightable:!0,propagate:["editable","selectable","hoverable","highlightable"]}:g?{...io,editable:!0,selectable:!0,hoverable:!0,highlightable:!0,propagate:["editable","selectable","hoverable","highlightable"]}:d?{...io,selectable:!0,hoverable:!0,propagate:["selectable","hoverable"]}:{...io})}),ma(()=>{const c=s.components?s.components():null;c!=null&&c.forEach&&c.forEach(o)})};(this.find(`[${At}-offer-core]`)||[]).forEach(o),(this.find(`[${At}-variant-bar="wrap"] button`)||[]).forEach(o)})}},view:{events(){return{[`click [${At}-action="setVariant"]`]:"onPreviewSwitch"}},onPreviewSwitch(o){var g,m;const s=(m=(g=o.target)==null?void 0:g.closest)==null?void 0:m.call(g,`[${At}-action="setVariant"]`);if(!s)return;o.preventDefault(),o.stopPropagation();const c=s.getAttribute(`${At}-action-value`)||"",d=this.el,f=d.querySelector(`[${At}-variant-bar="wrap"]`);if(f){const y=Array.from(f.querySelectorAll(`[${At}-action="setVariant"]`));y.forEach((x,w)=>{const k=x===s;x.setAttribute("aria-checked",k?"true":"false"),x.setAttribute("tabindex",k?"0":"-1"),B3.forEach(A=>x.classList.toggle(A,k)),V3.forEach(A=>x.classList.toggle(A,!k));const S=x.querySelector(`[${At}-chip-dot="wrap"]`);if(S){S.classList.toggle("border-white/70",k),S.classList.toggle("border-slate-400",!k),S.classList.toggle("dark:border-slate-500",!k);const A=S.firstElementChild;A&&(A.style.opacity=k?"1":"0")}if(k){const A=f.querySelector(`[${At}-slider]`);if(A&&y.length>0){const L=100/y.length;A.style.left=`calc(${w*L}% + 4px)`,A.style.width=`calc(${L}% - 8px)`}}})}d.querySelectorAll(`[${At}-variant-panel="wrap"]`).forEach(y=>{y.classList.toggle("hidden",y.getAttribute(`${At}-variant-key`)!==c)})}}}),a.DomComponents.addType("offer-selection-4-product",{isComponent(o){var s;return((s=o==null?void 0:o.getAttribute)==null?void 0:s.call(o,`${At}-offer-product`))==="wrap"?{type:"offer-selection-4-product"}:!1},model:{defaults:{tagName:"div",droppable:!1,draggable:!1,copyable:!1,removable:!1,attributes:{[`${At}-offer-product`]:"wrap"}}}}),a.DomComponents.addType("offer-selection-4-container",{isComponent(o){var s;return((s=o==null?void 0:o.getAttribute)==null?void 0:s.call(o,`${At}-container`))==="wrap"?{type:"offer-selection-4-container"}:!1},model:{defaults:{tagName:"div",droppable:!0,draggable:!1,copyable:!1,removable:!1,wide_content:!1,attributes:{[`${At}-container`]:"wrap",class:"mx-auto px-4 sm:px-6 max-w-[960px] animate-fade-in"}},init(){this.on("change:wide_content",this.handleWideContentChange),this.handleWideContentChange()},handleWideContentChange(){ma(()=>{const o=!!this.get("wide_content"),s=this.getAttributes()||{},c=String(s.class||"").split(/\s+/).filter(d=>d&&!d.startsWith("max-w-"));c.push(o?"max-w-[1280px]":"max-w-[960px]"),this.setAttributes({...s,class:c.join(" ")})})}}}),a.BlockManager.add("offerSelection4",{id:"offerSelection4",label:"Offer Selection 4",category:{id:"c
2579ontent",label:"Content"},attributes:{"data-os-group":"Vertriebliche Elemente","data-os-page-type":"aboshop"},content:{type:"offer-selection-4",components:[{type:"offer-selection-4-container",components:[{tagName:"div",draggable:!0,droppable:!0,removable:!0,copyable:!0,attributes:{class:"text-center max-w-3xl mx-auto mb-10 sm:mb-12 reveal"},components:[{tagName:"h2",type:"text",attributes:{class:"font-serif text-3xl sm:text-4xl md:text-5xl font-bold text-slate-900 dark:text-white mb-4"},content:"Unsere Angebote im Ãberblick"},{tagName:"p",type:"text",attributes:{class:"text-slate-600 dark:text-dark-muted text-base sm:text-lg max-w-[65ch] mx-auto"},content:"Wählen Sie das Angebot, das am besten zu Ihnen passt."}]},{type:"offer-selection-4-product",components:[{tagName:"div",attributes:{class:"text-slate-500 dark:text-slate-400 text-sm italic py-10 select-none text-center"},content:"Angebotsübersicht â wird nach Auswahl der Angebote (Traits) automatisch gerendert."}]}]}]},media:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><rect x="80" y="50" width="240" height="42" rx="21" fill="#e5e7eb"/><rect x="86" y="56" width="114" height="30" rx="15" fill="#9ca3af"/><rect x="20" y="120" width="110" height="230" rx="10" fill="#e5e7eb"/><rect x="145" y="120" width="110" height="230" rx="10" fill="#9ca3af"/><rect x="270" y="120" width="110" height="230" rx="10" fill="#e5e7eb"/><rect x="40" y="160" width="70" height="12" rx="4" fill="#9ca3af"/><rect x="165" y="160" width="70" height="12" rx="4" fill="#d1d5db"/><rect x="290" y="160" width="70" height="12" rx="4" fill="#9ca3af"/><rect x="35" y="290" width="80" height="24" rx="12" fill="#9ca3af"/><rect x="160" y="290" width="80" height="24" rx="12" fill="#d1d5db"/><rect x="285" y="290" width="80" height="24" rx="12" fill="#9ca3af"/></svg>'}),Pp(a,"offerSelection4","produkte")}const $3="54",z3="1.5.1",od="Vertriebliche Elemente - Content - Offer Selection Static",Lv="offer-selection-static",Dv="offer-selection-static-container",Iv="offer-selection-static-grid",jv="offer-selection-static-card",fp="data-offer-selection-static",Cc="data-offer-selection-static-card",Nv="data-offer-selection-static-cta",Rv="data-offer-selection-static-header",zs="data-offer-selection-static-icon",$u="data-offer-selection-static-image",Bv="data-offer-selection-static-title",Vv="data-offer-selection-static-duration",kc="data-offer-selection-static-features",zu="data-offer-selection-static-feature-title",U3="data-offer-selection-static-feature-item",Hv="data-offer-selection-static-feature-icon",Fv="data-offer-selection-static-feature-label",Uu="data-offer-selection-static-feature-description",Wu="data-offer-selection-static-feature-tags",Zu="data-offer-selection-static-feature-unavailable",_g="data-offer-selection-static-feature-description-ready",Cg="data-offer-selection-static-feature-tags-ready",qu="data-offer-selection-static-footer",Sc="data-offer-selection-static-layout",Tc="data-offer-selection-static-alignment",pl="https://placehold.co/768x432?text=768x432px",W3="https://placehold.co/1920x1080?text=1920x1080px",Z3="(min-width: 1280px) 420px, (min-width: 640px) 50vw, 100vw",q3="https://placehold.co/48x48?text=48x48px",Gj={"data-track-v2-parentposition":"Content","data-track-v2-parent":od,"data-track-v2-parentlabel":"OS - Vertrieb","data-track-v2-elementtype":"Button","data-track-v2-vendor":"Internal","data-track-v2-linktype":"External","data-track-v2-linkgenre":"","data-track-v2-clickaction":"select_content"},Yj=[{duration:"12 Monate lesen",title:"Digital-Abo",pricePrefix:"aktuell",price:"19,99 â¬",priceSuffix:"pro Monat",saving:"Preisvorteil - Sie sparen gegenüber dem Einzelkauf",features:[{title:"Plus-Artikel lesen",description:"Unbegrenzter Zugriff auf alle digitalen Inhalte."},{title:"E-Paper inklusive",description:"Die aktuelle Ausgabe täglich digital lesen."},{title:"Print-Ausgabe",description:"Die gedruckte Zeitung ist nicht enthalten.",unavailable:!0}],primaryLabel:"Jetzt abonnieren",secondaryLabel:"Mehr Infos",legal:"Kündbar zum Ende der Laufzeit. Preise inkl. MwSt."},{badge:"Beliebt",duration:"12 Monate lesen",title:"Print & Digital",pricePrefix:"aktuell",price:"39,99 â¬",priceSuffix:"pro Monat",saving:"Preisvorteil - Sie sparen gegenüber dem Einzelkauf",features:[{title:"Zeitung nach Hause",description:"Die gedruckte Ausgabe komfortabel geliefert."},{title:"Plus-Artikel lesen",description:"Unbegrenzter Zugriff auf alle digitalen Inhalte."},{title:"Tablet inklusive",description:"Ein Endgerät ist nicht enthalten.",unavailable:!0}],primaryLabel:"Jetzt abonnieren",secondaryLabel:"Mehr Infos",legal:"Kündbar zum Ende der Laufzeit. Preise inkl. MwSt.",highlighted:!0},{duration:"6 Monate lesen",title:"Komfort-Abo",pricePrefix:"aktuell ab",price:"29,99 â¬",priceSuffix:"pro Monat",saving:"Preisvorteil - Sie sparen gegenüber dem Einzelkauf",features:[{title:"Digital lesen",description:"Alle Inhalte flexibel auf Ihren Geräten abrufen."},{title:"Exklusive Newsletter",description:"Die wichtigsten Themen direkt in Ihr Postfach."},{title:"Print-Ausgabe",description:"Die gedruckte Zeitung ist nicht enthalten.",unavailable:!0}],primaryLabel:"Jetzt abonnieren",secondaryLabel:"Mehr Infos",legal:"Kündbar zum Ende der Laufzeit. Preise inkl. MwSt."}];function Xj(a){const r="relative flex w-full max-w-[420px] flex-col rounded-lg border bg-white shadow-sm dark:border-dark-border dark:bg-dark-surface animate-slide-up "+(a.highlighted?"border-brand-primary-500 ring-2 ring-brand-primary-500 shadow-md":"border-slate-200 hover:shadow-md transition-shadow duration-300");return` 2580 <article data-gjs-type="${jv}" ${Cc}="wrap" class="${r}"> 2581 ${a.badge?`<div class="absolute top-0 left-1/2 z-10 -translate-x-1/2 -translate-y-1/2">
2581<span class="inline-block w-fit rounded px-4 py-1 text-[10px] font-bold uppercase tracking-widest shadow-sm bg-brand-primary-500 text-brand-contrast sm:text-xs">${a.badge}</span></div>`:""} 2582 <div ${Rv}="wrap" data-gjs-draggable="false" data-gjs-copyable="false" data-gjs-removable="false" class="overflow-hidden rounded-t-lg border-b border-slate-100 p-6 pb-4 text-center dark:border-dark-border sm:p-8 sm:pb-6"> 2583 <div ${$u}="wrap" class="hidden -mx-6 -mt-6 mb-6 aspect-[16/9] bg-slate-100 dark:bg-neutral-800 sm:-mx-8 sm:-mt-8"> 2584 <picture class="block h-full w-full"> 2585 <source media="(max-width: 767px)" srcset="${pl} 768w" sizes="100vw"> 2586 <source media="(min-width: 768px)" srcset="${pl} 768w, ${W3} 1920w" sizes="${Z3}"> 2587 <img data-gjs-type="image" src="${pl}" alt="" class="h-full w-full object-cover object-center"> 2588 </picture> 2589 </div> 2590 <div ${zs}="wrap" class="mb-3 flex min-h-8 items-center justify-center" data-gjs-droppable="true"> 2591 <picture class="block"> 2592 <img src="${q3}" alt="" width="56" height="56" loading="lazy" decoding="async" data-gjs-type="image" data-gjs-draggable="false" data-gjs-copyable="false" data-gjs-removable="false" data-gjs-resizable="false" class="h-14 w-14 object-contain skeleton"> 2593 </picture> 2594 </div> 2595 <h3 ${Bv}="wrap" class="mb-2 text-xs font-bold uppercase tracking-wider text-slate-600 dark:text-slate-400 sm:text-sm">${a.title}</h3> 2596 <div ${Vv}="wrap" class="text-2xl font-black tracking-tight text-slate-900 dark:text-white sm:text-3xl">${a.duration}</div> 2597 </div> 2598 <div data-gjs-draggable="false" data-gjs-copyable="false" data-gjs-removable="false" class="flex flex-1 flex-col px-6 pt-6 sm:px-8"> 2599 <h4 ${zu}="wrap" class="mb-4 text-center text-sm font-bold text-slate-900 dark:text-white">Was dieses Abo bietet</h4> 2600 <ul ${kc}="wrap" class="mx-auto mb-8 w-fit max-w-full space-y-3 px-2 text-left"> 2601 ${a.features.map(n=>` 2602 <li ${U3}="wrap" ${n.unavailable?`${Zu}="1"`:""} class="grid grid-cols-[18px_minmax(0,1fr)] items-start gap-x-3 gap-y-1 text-sm text-slate-700 dark:text-slate-300"> 2603 <iconify-icon ${Hv}="wrap" icon="material-symbols:${n.unavailable?"close":"check"}" class="mt-0.5 shrink-0 text-lg font-bold ${n.unavailable?"text-red-500":"text-green-500"}" aria-hidden="true"></iconify-icon> 2604 <span ${Fv}="wrap">${n.title}</span> 2605 <p ${Uu}="wrap" class="col-start-2 m-0 hidden text-slate-600 dark:text-slate-400">${n.description}</p> 2606 </li>`).join("")} 2607 </ul> 2608 <div ${Wu}="wrap" class="mb-8 hidden flex flex-wrap items-center justify-start gap-2"> 2609 <span class="inline-flex w-fit whitespace-nowrap rounded-full bg-slate-100 px-3 py-1 text-xs font-medium text-slate-700 dark:bg-slate-800 dark:text-slate-300">Einfache Bedienung</span> 2610 <span class="inline-flex w-fit whitespace-nowrap rounded-full bg-slate-100 px-3 py-1 text-xs font-medium text-slate-700 dark:bg-slate-800 dark:text-slate-300">Flexibel kündbar</span> 2611 <span class="inline-flex w-fit whitespace-nowrap rounded-full bg-slate-100 px-3 py-1 text-xs font-medium text-slate-700 dark:bg-slate-800 dark:text-slate-300">Digital verfügbar</span> 2612 </div> 2613 <div class="min-h-[8px]" data-gjs-droppable="true"></div> 2614 </div> 2615 <div data-gjs-draggable="false" data-gjs-copyable="false" data-gjs-removable="false" class="px-6 py-5 text-center sm:px-8"> 2616 <div class="mb-1 text-4xl font-black tracking-tight text-slate-900 dark:text-white sm:text-5xl"><span class="block text-base font-medium text-slate-600 dark:text-slate-300 sm:text-lg">${a.pricePrefix}</span><span class="block">${a.price}</span><span class="block text-base font-medium text-slate-600 dark:text-slate-300 sm:text-lg">${a.priceSuffix}</span></div> 2617 <div class="mt-3 text-xs text-slate-500 dark:text-slate-400">${a.saving}</div> 2618 </div> 2619 <div ${qu}="wrap" data-gjs-draggable="false" data-gjs-copyable="false" data-gjs-removable="false" class="mt-auto flex flex-col gap-3 rounded-b-lg bg-white px-6 pb-8 text-center dark:bg-dark-surface sm:px-8"> 2620 <a data-gjs-type="link" ${Nv}="primary" href="#" target="_self" class="inline-flex min-h-[44px] w-full items-center justify-center rounded-full border-2 border-transparent px-6 py-3 text-base font-bold no-underline shadow-md transition-all duration-200 bg-brand-primary-500 text-brand-contrast hover:bg-brand-primary-700 focus:bg-brand-primary-700 active:scale-95 active:bg-brand-primary-300" data-track-v2-parentposition="Content" data-track-v2-parent="${od}
2620" data-track-v2-parentlabel="OS - Vertrieb" data-track-v2-elementposition="" data-track-v2-elementtype="Button" data-track-v2-vendor="Internal" data-track-v2-link="" data-track-v2-linktype="External" data-track-v2-linkgenre="" data-track-v2-clickaction="select_content"><span class="relative z-10">${a.primaryLabel}</span></a> 2621 <a data-gjs-type="link" ${Nv}="secondary" href="#" target="_self" class="inline-flex min-h-[44px] w-full items-center justify-center rounded-full border-2 px-6 py-3 text-base font-bold no-underline transition-all duration-200 border-brand-primary-500 text-brand-primary-500 hover:border-brand-primary-700 hover:bg-brand-primary-50 hover:text-brand-primary-700 focus:bg-brand-primary-50 active:scale-95 active:bg-brand-primary-100" data-track-v2-parentposition="Content" data-track-v2-parent="${od}" data-track-v2-parentlabel="OS - Vertrieb" data-track-v2-elementposition="" data-track-v2-elementtype="Button" data-track-v2-vendor="Internal" data-track-v2-link="" data-track-v2-linktype="External" data-track-v2-linkgenre="" data-track-v2-clickaction="select_content"><span class="relative z-10">${a.secondaryLabel}</span></a> 2622 <p class="mt-1 text-xs text-slate-500 dark:text-slate-400">${a.legal}</p> 2623 </div> 2624 </article>`}function Jj(){return` 2625<section 2626 data-gjs-type="${Lv}" 2627 ${fp}="wrap" 2628 id="produkte" 2629 data-component-id="${$3}" 2630 data-component-version="${z3}" 2631 data-component-name="${od}" 2632 ${Sc}="icon" 2633 ${Tc}="start" 2634 aria-label="Angebotsübersicht" 2635 class="relative left-1/2 w-screen -translate-x-1/2 overflow-hidden py-12 animate-fade-in sm:py-16 lg:py-20"> 2636 <div data-gjs-type="${Dv}" data-offer-selection-static-container="wrap" class="mx-auto max-w-[960px] px-4 sm:px-6"> 2637 <div class="mx-auto mb-10 max-w-3xl text-center sm:mb-12"> 2638 <h2 class="mb-4 font-serif text-3xl font-bold text-slate-900 dark:text-white sm:text-4xl md:text-5xl">Unsere Angebote im Ãberblick</h2> 2639 <p class="mx-auto max-w-[65ch] text-base text-slate-600 dark:text-dark-muted sm:text-lg">Wählen Sie das Angebot, das am besten zu Ihnen passt.</p> 2640 </div> 2641 <div data-gjs-type="${Iv}" data-offer-selection-static-grid="wrap" class="mx-auto grid w-fit max-w-full grid-cols-1 justify-items-center gap-6 sm:grid-cols-[repeat(2,minmax(0,420px))] sm:gap-8 lg:grid-cols-[repeat(3,minmax(0,420px))]"> 2642 ${Yj.map(Xj).join("")} 2643 </div> 2644 </div> 2645</section>`}function Qj(a){let r;return()=>{r&&clearTimeout(r),r=setTimeout(()=>{var e;(((e=a.getWrapper())==null?void 0:e.find(`[${fp}="wrap"]`))||[]).forEach(n=>{var i;return(i=n.renumberTracking)==null?void 0:i.call(n)})},0)}}function _i(a,r,t){if(!(a!=null&&a.getAttributes)||!a.setAttributes)return;const e=a.getAttributes()||{},n=new Set(String(e.class||"").split(/\s+/).filter(Boolean));r.forEach(i=>n.delete(i)),t.forEach(i=>n.add(i)),a.setAttributes({...e,class:Array.from(n).join(" ")})}function gu(a,r){_i(a,["hidden"],r?["hidden"]:[])}function dr(a,r){var e;return(((e=a==null?void 0:a.find)==null?void 0:e.call(a,r))||[])[0]||null}function tN(a){a.DomComponents.addType(jv,{isComponent(t){var e;return((e=t==null?void 0:t.getAttribute)==null?void 0:e.call(t,Cc))==="wrap"?{type:jv}:!1},model:{defaults:{tagName:"article",draggable:!0,droppable:!0,copyable:!0,removable:!0,editable:!1}}}),a.DomComponents.addType(Iv,{isComponent(t){var e;return((e=t==null?void 0:t.getAttribute)==null?void 0:e.call(t,"data-offer-selection-static-grid"))==="wrap"?{type:Iv}:!1},model:{defaults:{tagName:"div",draggable:!1,droppable:!0,copyable:!1,removable:!1,editable:!1}}}),a.DomComponents.addType(Dv,{isComponent(t){var e;return((e=t==null?void 0:t.getAttribute)==null?void 0:e.call(t,"data-offer-selection-static-container"))==="wrap"?{type:Dv}:!1},model:{defaults:{tagName:"div",draggable:!1,droppable:!0,copyable:!1,removable:!1,wide_content:!1},init(){this.on("change:wide_content",this.handleWideContentChange),this.handleWideContentChange()},handleWideContentChange(){const t=this.getAttributes()||{},e=String(t.class||"").split(/\s+/).filter(n=>n&&!n.startsWith("max-w-"));e.push(this.get("wide_content")?"max-w-[1280px]":"max-w-[960px]"),this.setAttributes({...t,class:e.join(" ")})}}}),a.DomComponents.addType(Lv,{isComponent(t){var e;return((e=t==null?void 0:t.getAttribute)==null?void 0:e.call(t,fp))==="wrap"?{type:Lv}:!1},model:{defaults:{tagName:"section",droppable:!1,highlightSection:!1,sectionDivider:"none",attributes:{[fp]:"wrap",id:"produkte","data-component-id":$3,"data-component-version":z3,"data-component-name":od,[Sc]:"icon",[Tc]:"start","aria-label":"Angebotsübersicht"},traits:[{type:"select",name:Sc,label:"Kartenlayout",options:[{id:"icon",name:"Paket-Icon"},{id:"image",name:"Header-Bild"}]},{type:"select",name:Tc,label:"Horizontale Ausrichtung",options:[{id:"start",name:"Linksbündig"}
2645,{id:"center",name:"Zentriert"}]}]},init(){this.on("component:mount",()=>{this.applyLayout(),this.applyAlignment(),this.renumberTracking()}),this.on(`change:attributes:${Sc}`,()=>this.applyLayout()),this.on(`change:attributes:${Tc}`,()=>this.applyAlignment()),this.applyLayout(),this.applyAlignment(),this.renumberTracking()},findHeader(t){var o,s,c,d,f,g,m,y,x;const e=dr(t,`[${Rv}="wrap"]`);if(e)return e;const n=(((o=t.components)==null?void 0:o.call(t).models)||[]).find(w=>{var S;const k=String(((S=w.getAttributes)==null?void 0:S.call(w).class)||"");return k.includes("rounded-t-lg")&&k.includes("border-b")});if(!n)return null;(s=n.addAttributes)==null||s.call(n,{[Rv]:"wrap"});const i=((c=n.components)==null?void 0:c.call(n).models)||[];return(f=(d=i.find(w=>{var k;return String(((k=w.getAttributes)==null?void 0:k.call(w).class)||"").includes("min-h-8")}))==null?void 0:d.addAttributes)==null||f.call(d,{[zs]:"wrap"}),(m=(g=i.find(w=>{var k;return((k=w.get)==null?void 0:k.call(w,"tagName"))==="h3"}))==null?void 0:g.addAttributes)==null||m.call(g,{[Bv]:"wrap"}),(x=(y=i.find(w=>{var k;return String(((k=w.getAttributes)==null?void 0:k.call(w).class)||"").includes("text-2xl")}))==null?void 0:y.addAttributes)==null||x.call(y,{[Vv]:"wrap"}),n},ensureLayoutNodes(t){var s,c,d,f,g,m,y,x,w,k,S,A,L;const e=this.findHeader(t);if(!e)return;if(!dr(e,`[${zs}="wrap"]`)){const D=(((s=e.components)==null?void 0:s.call(e).models)||[]).find(W=>{var j;return String(((j=W.getAttributes)==null?void 0:j.call(W).class)||"").includes("min-h-8")});(c=D==null?void 0:D.addAttributes)==null||c.call(D,{[zs]:"wrap"})}const i=dr(e,`[${zs}="wrap"]`);i&&!dr(i,"img")&&((d=i.components)==null||d.call(i,` 2646 <picture class="block"> 2647 <img src="${q3}" alt="" width="56" height="56" loading="lazy" decoding="async" data-gjs-type="image" data-gjs-draggable="false" data-gjs-copyable="false" data-gjs-removable="false" data-gjs-resizable="false" class="h-14 w-14 object-contain skeleton"> 2648 </picture>`));let o=dr(e,`[${$u}="wrap"]`);if(o||(o=(f=e.components)==null?void 0:f.call(e).add({tagName:"div",attributes:{[$u]:"wrap",class:"hidden -mx-6 -mt-6 mb-6 aspect-[16/9] bg-slate-100 dark:bg-neutral-800 sm:-mx-8 sm:-mt-8"},components:[]},{at:0})),o&&!dr(o,"picture")){const D=dr(o,"img"),W=((g=D==null?void 0:D.getAttributes)==null?void 0:g.call(D))||{};(m=o.components)==null||m.call(o,[{tagName:"picture",attributes:{class:"block h-full w-full"},components:[{tagName:"source",attributes:{media:"(max-width: 767px)",srcset:`${pl} 768w`,sizes:"100vw"}},{tagName:"source",attributes:{media:"(min-width: 768px)",srcset:`${pl} 768w, ${W3} 1920w`,sizes:Z3}},{type:"image",tagName:"img",attributes:{...W,src:W.src||pl,alt:W.alt||"",class:W.class||"h-full w-full object-cover object-center"}}]}])}dr(t,`[${zu}="wrap"]`)||(x=(y=dr(t,"h4"))==null?void 0:y.addAttributes)==null||x.call(y,{[zu]:"wrap"}),dr(t,`[${kc}="wrap"]`)||(k=(w=dr(t,"ul"))==null?void 0:w.addAttributes)==null||k.call(w,{[kc]:"wrap"}),dr(t,`[${qu}="wrap"]`)||(L=(A=(((S=t.components)==null?void 0:S.call(t).models)||[]).find(D=>{var W;return String(((W=D.getAttributes)==null?void 0:W.call(D).class)||"").includes("rounded-b-lg")}))==null?void 0:A.addAttributes)==null||L.call(A,{[qu]:"wrap"})},ensureFeatureNodes(t){var d,f,g,m,y;const e=dr(t,`[${kc}="wrap"]`);if(!e)return;const n=(((d=e.components)==null?void 0:d.call(e).models)||[]).filter(x=>{var w;return((w=x.get)==null?void 0:w.call(x,"tagName"))==="li"}),i=n.some(x=>{var w;return((w=x.getAttributes)==null?void 0:w.call(x)[Zu])==="1"});if(n.forEach((x,w)=>{var D,W,j,et,z,B,X,Z,F,st;(D=x.addAttributes)==null||D.call(x,{[U3]:"wrap"}),!i&&w===n.length-1&&((W=x.addAttributes)==null||W.call(x,{[Zu]:"1"}));const k=((j=x.components)==null?void 0:j.call(x).models)||[],S=k.find(q=>{var Ct;return((Ct=q.get)==null?void 0:Ct.call(q,"tagName"))==="iconify-icon"});(et=S==null?void 0:S.addAttributes)==null||et.call(S,{[Hv]:"wrap"});const A=k.find(q=>{var _;const Ct=(_=q.get)==null?void 0:_.call(q,"tagName");return Ct==="span"||Ct==="strong"});(z=A==null?void 0:A.addAttributes)==null||z.call(A,{[Fv]:"wrap"});const L=k.find(q=>{var Ct;return((Ct=q.get)==null?void 0:Ct.call(q,"tagName"))==="p"});L?((B=L.addAttributes)==null||B.call(L,{[Uu]:"wrap"}),(X=x.addAttributes)==null||X.call(x,{[_g]:"1"})):A&&((Z=x.getAttributes)==null?void 0:Z.call(x)[_g])!=="1"&&((F=x.components)==null||F.call(x).add({tagName:"p",attributes:{[Uu]:"wrap",class:"col-start-2 m-0 hidden text-slate-600 dar
2648k:text-slate-400"},content:"Beschreibung zum Vorteil."}),(st=x.addAttributes)==null||st.call(x,{[_g]:"1"}))}),dr(t,`[${Wu}="wrap"]`)){(f=t.addAttributes)==null||f.call(t,{[Cg]:"1"});return}if(((g=t.getAttributes)==null?void 0:g.call(t)[Cg])==="1")return;const s=(m=e.parent)==null?void 0:m.call(e);if(!(s!=null&&s.components))return;const c=s.components().models.indexOf(e)+1;s.components().add({tagName:"div",attributes:{[Wu]:"wrap",class:"mb-8 hidden flex flex-wrap items-center justify-start gap-2"},components:["Einfache Bedienung","Flexibel kündbar","Digital verfügbar"].map(x=>({tagName:"span",attributes:{class:"inline-flex w-fit whitespace-nowrap rounded-full bg-slate-100 px-3 py-1 text-xs font-medium text-slate-700 dark:bg-slate-800 dark:text-slate-300"},content:x}))},{at:c}),(y=t.addAttributes)==null||y.call(t,{[Cg]:"1"})},applyLayout(){var i;const e=(((i=this.getAttributes)==null?void 0:i.call(this)[Sc])==="image"?"image":"icon")==="image";(this.find(`[${Cc}="wrap"]`)||[]).forEach(o=>{var S,A;this.ensureLayoutNodes(o),this.ensureFeatureNodes(o);const s=this.findHeader(o),c=dr(o,`[${$u}="wrap"]`),d=dr(o,`[${zs}="wrap"]`),f=dr(o,`[${Bv}="wrap"]`),g=dr(o,`[${Vv}="wrap"]`),m=dr(o,`[${zu}="wrap"]`),y=dr(o,`[${kc}="wrap"]`),x=dr(o,`[${Wu}="wrap"]`),w=dr(o,`[${qu}="wrap"]`);gu(c,!e),gu(d,e),_i(s,["text-center","text-left"],[e?"text-left":"text-center"]),_i(f,["mb
2648-2","mb-1","text-xs","text-2xl","sm:text-sm","sm:text-3xl","uppercase","tracking-wider","font-bold","font-black","text-slate-600","text-slate-900","dark:text-slate-400","dark:text-white"],e?["mb-1","text-2xl","font-black","text-slate-900","dark:text-white","sm:text-3xl"]:["mb-2","text-xs","font-bold","uppercase","tracking-wider","text-slate-600","dark:text-slate-400","sm:text-sm"]),_i(g,["text-xs","text-2xl","sm:text-sm","sm:text-3xl","uppercase","tracking-wider","font-bold","font-black","text-slate-600","text-slate-900","dark:text-slate-400","dark:text-white"],e?["text-xs","font-bold","uppercase","tracking-wider","text-slate-600","dark:text-slate-400","sm:text-sm"]:["text-2xl","font-black","tracking-tight","text-slate-900","dark:text-white","sm:text-3xl"]),_i(m,["text-center","text-left"],[e?"text-left":"text-center"]),_i(y,["mb-8","mb-6","px-2","w-fit","max-w-full","mx-auto"],e?["mb-6"]:["mb-8","px-2","w-fit","max-w-full","mx-auto"]),gu(x,!e);const k=String(((S=o.getAttributes)==null?void 0:S.call(o).class)||"").includes("border-brand-primary-500");_i(w,["border-t","border-slate-100","border-brand-primary-100","border-brand-primary-100","dark:border-dark-border","bg-slate-50","bg-brand-primary-50","bg-brand-primary-50","dark:bg-dark-surface/40","bg-white","dark:bg-dark-surface"],e?k?["border-t","border-brand-primary-100","border-brand-primary-100","bg-brand-primary-50","bg-brand-primary-50"]:["border-t","border-slate-100","bg-slate-50","dark:border-dark-border","dark:bg-dark-surface/40"]:["bg-white","dark:bg-dark-surface"]),(((A=y==null?void 0:y.components)==null?void 0:A.call(y).models)||[]).forEach(L=>{var z,B,X;if(((z=L.get)==null?void 0:z.call(L,"tagName"))!=="li")return;const D=dr(L,`[${Hv}="wrap"]`),W=dr(L,`[${Fv}="wrap"]`),j=dr(L,`[${Uu}="wrap"]`),et=((B=L.getAttributes)==null?void 0:B.call(L)[Zu])==="1";_i(L,["flex","grid","grid-cols-[18px_minmax(0,1fr)]","grid-cols-[22px_minmax(0,1fr)]","gap-3","gap-x-3","gap-y-1"],e?["grid","grid-cols-[22px_minmax(0,1fr)]","gap-x-3","gap-y-1"]:["grid","grid-cols-[18px_minmax(0,1fr)]","gap-x-3","gap-y-1"]),_i(D,["text-lg","text-[22px]","text-green-500","text-slate-600","dark:text-slate-300"],e?["text-[22px]","text-slate-600","dark:text-slate-300"]:et?["text-lg","text-red-500"]:["text-lg","text-green-500"]),(X=D==null?void 0:D.addAttributes)==null||X.call(D,{icon:et?"material-symbols:close":"material-symbols:check"}),_i(W,["font-normal","font-bold"],[e?"font-bold":"font-normal"]),gu(j,!e)})})},applyAlignment(){var i;const t=((i=this.getAttributes)==null?void 0:i.call(this)[Tc])==="center",e=dr(this,'[data-offer-selection-static-grid="wrap"]'),n=this.find(`[${Cc}="wrap"]`)||[];_i(e,["grid","flex","w-fit","w-full","max-w-full","mx-auto","justify-items-center","flex-wrap","justify-center","grid-cols-1","sm:grid-cols-[repeat(2,minmax(0,420px))]","lg:grid-cols-[repeat(3,minmax(0,420px))]"],t?["flex","w-full","max-w-full","flex-wrap","justify-center"]:["grid","w-fit","max-w-full","mx-auto","justify-items-center","grid-cols-1","sm:grid-cols-[repeat(2,minmax(0,420px))]","lg:grid-cols-[repeat(3,minmax(0,420px))]"]),n.forEac
2648h(o=>{_i(o,["sm:w-[calc((100%_-_2rem)/2)]","lg:w-[calc((100%_-_4rem)/3)]"],t?["sm:w-[calc((100%_-_2rem)/2)]","lg:w-[calc((100%_-_4rem)/3)]"]:[])})},renumberTracking(){const t=this.find(`[${Cc}="wrap"]`)||[];let e=1;t.forEach(n=>{(n.find(`[${Nv}]`)||[]).forEach(o=>{var c,d;const s=((c=o.getAttributes)==null?void 0:c.call(o))||{};(d=o.addAttributes)==null||d.call(o,{...Gj,"data-track-v2-elementposition":String(e),"data-track-v2-link":String(s.href||"")}),e+=1})})}}}),a.BlockManager.add("offerSelectionStatic",{id:"offerSelectionStatic",label:"Offer Selection - statisch",category:{id:"content",label:"Content"},attributes:{"data-os-group":"Vertriebliche Elemente","data-os-page-type":"aboshop"},content:Jj(),media:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><rect x="20" y="70" width="360" height="40" rx="20" fill="#e5e7eb"/><rect x="30" y="77" width="108" height="26" rx="13" fill="#9ca3af"/><rect x="20" y="132" width="110" height="218" rx="10" fill="#e5e7eb"/><rect x="145" y="120" width="110" height="230" rx="10" fill="#9ca3af"/><rect x="270" y="132" width="110" height="218" rx="10" fill="#e5e7eb"/><rect x="44" y="160" width="62" height="12" rx="4" fill="#9ca3af"/><rect x="169" y="150" width="62" height="12" rx="4" fill="#fff"/><rect x="294" y="160" width="62" height="12" rx="4" fill="#9ca3af"/><rect x="39" y="284" width="72" height="22" rx="11" fill="#9ca3af"/><rect x="164" y="284" width="72" height="22" rx="11" fill="#fff"/><rect x="289" y="284" width="72" height="22" rx="11" fill="#9ca3af"/></svg>'});const r=Qj(a);a.on("component:add",r),a.on("component:remove",r),Pp(a,"offerSelectionStatic","produkte")}function kg(a,r){return`https://placehold.co/${a.width}x${a.height}?text=${r}`}function v2(a){return`Desktop_${a.width}x${a.height}px`}function eN(a){return`Mobile_${a.width}x${a.height}px`}function rN(a){const r=kg(a.mobile,eN(a.mobile)),t=kg(a.cueDesktop,v2(a.cueDesktop)),e=kg(a.aboshopDesktop,v2(a.aboshopDesktop));return{id:a.id,label:a.label,category:{id:"media",label:"Medien"},attributes:{"data-os-group":"Landingpage Elemente","data-os-page-type":"both"},content:` 2649<div 2650 data-component-id="${a.componentId}" 2651 data-component-version="1.0.0" 2652 data-component-name="${a.componentName}" 2653 class="block w-full"> 2654 <picture class="block w-full mb-5 md:mb-8"> 2655 <source media="(max-width: 639px)" srcset="${r}"> 2656 <source 2657 media="(min-width: 640px)" 2658 srcset="${t} ${a.cueDesktop.width}w, ${e} ${a.aboshopDesktop.width}w" 2659 sizes="(min-width: 1280px) 1280px, 960px"> 2660 <img 2661 src="${e}" 2662 alt="Descriptive text of the image" 2663 class="${a.imgAspectClass} skeleton" 2664 data-gjs-selectable="false" 2665 data-gjs-hoverable="false" 2666 data-gjs-highlightable="false"> 2667 </picture> 2668</div> 2669 `.trim(),media:a.media}}const nN=[{id:"picture-sixteen-nine",label:"Bild im Verhältnis 16:9 (Breit)",componentId:8,componentName:"Landingpage Elemente - Medien - Bild 16:9",mobile:{width:640,height:360},cueDesktop:{width:960,height:540},aboshopDesktop:{width:1280,height:720},imgAspectClass:"aspect-[16/9]",media:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><rect width="339.6" height="191" x="30" y="104.5" fill="#d3d3d3" rx="8.7" ry="8.7"/><circle cx="302.1" cy="144.2" r="13.9" fill="#b2b2b2"/><path fill="#b2b2b2" fill-rule="evenodd" d="M370 261.2v25.6c0 4.8-3.9 8.7-8.7 8.7H38.7c-4.8 0-8.7-3.9-8.7-8.7v-25.5c0-2.8 1.3-5.4 3.6-7.1l88.3-63.7c11.2-8.1 29.5-8.1 40.8 0l99.2 71.5c.2.2.5.3.7.5 5.8 3.9 14.9 3.7 20.4-.5s5.1-10.8-.7-14.7l-8.8-6.4c-4.8-3.5-4.8-10.7 0-14.2l7.1-5.1c11.3-8.1 29.5-8.1 40.8 0l45.1 32.5c2.3 1.6 3.6 4.3 3.6 7.1Z"/></svg>'},{id:"picture-four-three",label:"Bild im Verhältnis 4:3 (weniger Breit)",componentId:9,componentName:"Landingpage Elemente - Medien - Bild 4:3",mobile:{width:640,height:480},cueDesktop:{width:960,height:720},aboshopDesktop:{width:1280,height:960},imgAspectClass:"aspect-[4/3]",media:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><rect width="340" height="255" x="30" y="72.2" fill="#d3d3d3" rx="8.7" ry="8.7"/><circle cx="279.1" cy="148.4" r="19.3" fill="#b2b2b2"/>
2669<path fill="#b2b2b2" fill-rule="evenodd" d="M370 293.5v25.6c0 4.8-3.9 8.7-8.7 8.7H38.7c-4.8 0-8.7-3.9-8.7-8.7v-25.5c0-2.8 1.3-5.4 3.6-7.1l88.3-63.7c11.2-8.1 29.5-8.1 40.8 0l99.2 71.5c.2.2.5.3.7.5 5.8 3.9 14.9 3.7 20.4-.5s5.1-10.8-.7-14.7l-8.8-6.4c-4.8-3.5-4.8-10.7 0-14.2l7.1-5.1c11.3-8.1 29.5-8.1 40.8 0l45.1 32.5c2.3 1.6 3.6 4.3 3.6 7.1Z"/></svg>'},{id:"banner",label:"Banner (schmal)",componentId:10,componentName:"Landingpage Elemente - Medien - Banner (schmal)",mobile:{width:640,height:300},cueDesktop:{width:960,height:150},aboshopDesktop:{width:1280,height:200},imgAspectClass:"aspect-[32/15] sm:aspect-[32/5]",media:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><path fill="#d3d3d3" d="M370 155.7v88.6c0 4.6-3.6 8.4-8.1 8.7H38.1c-4.5-.3-8.1-4.1-8.1-8.7v-88.6c0-4.8 3.9-8.7 8.7-8.7h322.6c4.8 0 8.7 3.9 8.7 8.7Z"/><circle cx="260.1" cy="171.7" r="13.9" fill="#b2b2b2"/><path fill="#b2b2b2" fill-rule="evenodd" d="M370 230.5v13.8c0 4.6-3.6 8.4-8.1 8.7H38.1c-4.5-.3-8.1-4.1-8.1-8.7v-13.8c0-1.9 1.3-3.6 3.6-4.7l88.3-41.8c11.2-5.3 29.5-5.3 40.8 0l99.2 47c.2.1.5.2.7.3 5.8 2.6 14.9 2.4 20.4-.3s5.1-7.1-.7-9.7l-8.8-4.2c-4.8-2.3-4.8-7 0-9.3l7.1-3.4c11.3-5.3 29.5-5.3 40.8 0l45.1 21.4c2.3 1.1 3.6 2.8 3.6 4.7Z"/></svg>'},{id:"bannerHigh",label:"Banner (hoch)",componentId:11,componentName:"Landingpage Elemente - Medien - Banner (hoch)",mobile:{width:640,height:300},cueDesktop:{width:960,height:300},aboshopDesktop:{width:1280,height:400},imgAspectClass:"aspect-[32/15] sm:aspect-[16/5]",media:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><path fill="#d3d3d3" d="M370 182.2v36.1c-.2 4.6-4 8.3-8.7 8.3H38.7c-4.7 0-8.5-3.7-8.7-8.3v-36.2c0-4.8 3.9-8.7 8.7-8.7h322.5c4.8 0 8.7 3.9 8.7 8.7Z"/><path fill="#b2b2b2" fill-rule="evenodd" d="M264.6 173.6c0 6.9-5.6 12.4-12.4 12.4s-12.4-5.6-12.4-12.4v-.1h24.8v.1ZM370 218.3c-.2 4.6-4 8.3-8.7 8.3H38.7c-4.7 0-8.5-3.7-8.7-8.3 0-1 1.4-1.9 3.6-2.5l88.3-23.5c11.2-3 29.5-3 40.8 0l99.2 26.4c.2 0 .5.1.7.2 5.8 1.4 14.9 1.4 20.4-.2 5.4-1.6 5.1-4-.7-5.4l-8.8-2.3c-4.8-1.3-4.8-3.9 0-5.2l7.1-1.9c11.3-3 29.5-3 40.8 0l45.1 12c2.2.6 3.5 1.5 3.6 2.5Z"/></svg>'}];function iN(a){for(const r of nN)a.BlockManager.add(r.id,rN(r))}const fc="Vertriebliche Elemente - Content - Produkt-Teaser",m2={2:["md:grid-cols-2"],3:["md:grid-cols-2","lg:grid-cols-3"],4:["md:grid-cols-2","lg:grid-cols-4"]},aN="block text-base font-medium text-slate-600 dark:text-dark-muted mt-1";function oN(a){var t;const r=((t=a.getAttributes)==null?void 0:t.call(a))||{};a.setAttributes({...r,class:aN})}function sN(a){const r=Array.from(a.querySelectorAll('[data-product-teaser-card="wrap"]')).filter(e=>e.closest('[data-product-teaser="wrap"]')===a);["header","body","footer"].map(e=>r.map(n=>n.querySelector(`:scope > [data-product-teaser-card-section="${e}"]`)).filter(n=>!!n)).forEach(e=>{e.forEach(i=>{i.style.minHeight=""});const n=e.reduce((i,o)=>Math.max(i,o.getBoundingClientRect().height),0);n>0&&e.forEach(i=>{i.style.minHeight=`${Math.ceil(n)}px`})})}function y2(a){!a||a.dataset.productTeaserHeightEqualizationQueued||(a.dataset.productTeaserHeightEqualizationQueued="true",requestAnimationFrame(()=>{delete a.dataset.productTeaserHeightEqualizationQueued,sN(a)}))}function lN(a){a.DomComponents.addType("product-teaser-structure",{model:{defaults:{tagName:"div",editable:!1}}}),a.DomComponents.addType("product-teaser-price-unit",{extend:"text",isComponent(r){return r&&r.getAttribute&&r.getAttribute("data-product-teaser-price-unit")==="wrap"?{type:"product-teaser-price-unit"}:!1},model:{defaults:{tagName:"div",editable:!0,droppable:!1,draggable:!1,copyable:!1,removable:!1}}}),a.DomComponents.addType("product-teaser-card",{isComponent(r){return r&&r.getAttribute&&r.getAttribute("data-product-teaser-card")==="wrap"?{type:"product-teaser-card"}:!1},model:{defaults:{tagName:"div",editable:!1}}}),a.DomComponents.addType("product-teaser-container",{isComponent(r){return r&&r.getAttribute&&r.getAttribute("data-product-teaser-container")==="wrap"?{type:"product-teaser-container"}:!1},model:{defaults:{tagName:"div",draggable:!1,copyable:!1,removable:!1,droppable:!0,wide_content:!1},init(){this.on("change:wide_content",this.handleWideContentChange),this.handleWideContentChange()},handleWideContentChange(){const r=!!this.get("wide_content"),t=this.getAttributes()||{},e=String(t.class||"").split(" ").filter(n=>n&&!n.startsWith("max-w-"));e.push(r?"max-w-[1280px]":"max-w-[960px]"),this.setAttributes({...t,class:e.join(" ")})}}}),a.DomComponents.addType("product-teaser",{isComponent(r){return r&&r.getAttribute&&r.getAttribute("data-product-teaser")==="wrap"?{type:"product-teaser"}:!1},view:{onRender(){y2(this.el)}},model:{defaults:{tagName:"section",droppable:!1,highlightSection:!0,sectionDivider:"none",traits:[{type:"select",name:"data-product-teaser-columns",label:"Kacheln pro Reihe (Desktop)",options:[{id:"2",name:"2 Spalten"},{id:"3",name:"3 Spalten"},{id:"4",name:"4 Spalten"}]}]},init(){this.on("change:attributes:data-product-teaser-columns",()=>{var r;return(r=this.applyColumns)==null?void 0:r.call(this)}),this.on("component:mount",()=>{var r,t;(r=this.applyColumns)==null||r.call(this),y2((t=this.getEl)==null?void 0:t.call(this))})},applyColumns(){try{const r=(this.find('[data-product-teaser-grid="wrap"]')||[])[0];if(!r)return;const t=String(this.getAttributes()["data-product-teaser-columns"]||"4"),e=r.getAttributes()||{},n=String(e.class||"").split(" ").filter(i=>i&&!i.startsWith("md:grid-cols-")&&!i.startsWith("lg:grid-cols-"));n.push(...m2[t]||m2[4]),r.setAttributes({...e,class:n.join(" ")})}catch(r){typeof console<"u"&&console.warn("[product-teaser] applyColumns fehlgeschlagen:",r)}}}}),a.BlockManager.add("productTeaser",{id:"productTeaser",label:"Produkt-Teaser",category:{id:"c
2669ontent",label:"Content"},attributes:{"data-os-group":"Vertriebliche Elemente","data-os-page-type":"aboshop"},content:cN(),media:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><rect x="20" y="70" width="86" height="260" rx="8" fill="#e5e7eb"/><rect x="116" y="55" width="86" height="290" rx="8" fill="#9ca3af"/><rect x="212" y="70" width="86" height="260" rx="8" fill="#e5e7eb"/><rect x="308" y="70" width="72" height="260" rx="8" fill="#e5e7eb"/><rect x="132" y="42" width="54" height="20" rx="10" fill="#4b5563"/><rect x="47" y="95" width="32" height="32" rx="4" fill="#b2b2b2"/><rect x="36" y="140" width="54" height="12" rx="3" fill="#9ca3af"/><rect x="36" y="280" width="54" height="22" rx="11" fill="#d1d5db"/><rect x="143" y="80" width="32" height="32" rx="4" fill="#ffffff"/><rect x="132" y="125" width="54" height="12" rx="3" fill="#ffffff"/><rect x="132" y="285" width="54" height="22" rx="11" fill="#ffffff"/><rect x="239" y="95" width="32" height="32" rx="4" fill="#b2b2b2"/><rect x="228" y="140" width="54" height="12" rx="3" fill="#9ca3af"/><rect x="228" y="280" width="54" height="22" rx="11" fill="#d1d5db"/><rect x="328" y="95" width="32" height="32" rx="4" fill="#b2b2b2"/><rect x="322" y="140" width="44" height="12" rx="3" fill="#9ca3af"/><rect x="322" y="280" width="44" height="22" rx="11" fill="#d1d5db"/></svg>'}),a.on("load",()=>{var t;(((t=a.getWrapper())==null?void 0:t.find('[data-product-teaser="wrap"]'))||[]).forEach(e=>{e.find("div").forEach(n=>{var c;const i=((c=n.getAttributes)==null?void 0:c.call(n))||{},o=String(i.class||"").split(/\s+/);(i["data-product-teaser-price-unit"]==="wrap"||o.includes("text-xs")&&o.includes("mt-1")&&o.includes("text-slate-500")&&o.includes("dark:text-dark-muted"))&&(n.set({type:"product-teaser-price-unit",editable:!0}),oN(n))}),e.find("div").forEach(n=>{n.get("type")==="text"&&n.set({type:"product-teaser-structure",editable:!1})}),e.find('[data-product-teaser-card="wrap"]').forEach(n=>{var k,S,A,L;n.set({type:"product-teaser-card",editable:!1});const i=((k=n.components)==null?void 0:k.call(n).models)||[];n.find("[data-product-teaser-card-section]").forEach(D=>{var W;(W=D.removeAttributes)==null||W.call(D,"data-product-teaser-card-section")});const o=i.find(D=>{var W;return(W=D.getClasses)==null?void 0:W.call(D).includes("flex-grow")}),s=i.find(D=>{var W;return(W=D.getClasses)==null?void 0:W.call(D).includes("border-t")}),d=(((S=s==null?void 0:s.components)==null?void 0:S.call(s).models)||[]).find(D=>{var W;return(W=D.getClasses)==null?void 0:W.call(D).includes("mt-6")});if(o&&o.addAttributes({"data-product-teaser-card-section":"header"}),!s)return;const f=((A=s.getAttributes)==null?void 0:A.call(s))||{},g=String(f.class||"").split(/\s+/).filter(Boolean),m=i.indexOf(s);if(s.setAttributes({...f,class:g.filter(D=>D!=="rounded-b-lg").join(" "),"data-product-teaser-card-section":"body"}),!d||m<0){const D=i[m+1];D&&D.addAttributes({"data-product-teaser-card-section":"footer"});return}const y=[...g.filter(D=>!["p-6","rounded-b-lg","border-t"].includes(D)),"px-6","pt-6","pb-6","rounded-b-lg"];n.components().add({tagName:"div",draggable:!1,droppable:!1,copyable:!1,removable:!1,editable:!1,attributes:{"data-product-teaser-card-section":"footer","data-gjs-draggable":"false","data-gjs-copyable":"false","data-gjs-removable":"false",class:y.join(" ")}},{at:m+1});const x=n.components().at(m+1),w=((L=d.getAttributes)==null?void 0:L.call(d))||{};d.setAttributes({...w,class:String(w.class||"").split(/\s+/).filter(D=>D&&D!=="mt-6").join(" ")}),d.move(x)})})})}function cN(){return` 2670<section 2671 data-product-teaser="wrap" 2672 id="produkte" 2673 data-component-id="45" 2674 data-component-version="1.0.2" 2675 data-component-name="${fc}" 2676 data-product-teaser-columns="4" 2677 aria-label="Produkt-Teaser" 2678 class="relative w-screen left-1/2 -translate-x-1/2 overflow-hidden bg-slate-100 dark:bg-neutral-800 py-12 sm:py-16 lg:py-20 animate-fade-in"> 2679 <div data-product-teaser-container="wrap" class="mx-auto px-4 sm:px-6 max-w-[960px]"> 2680 2681 <div data-gjs-type="product-teaser-structure" class="text-center max-w-3xl mx-auto mb-10 sm:mb-12 reveal"> 2682 <h2 class="font-serif text-3xl sm:text-4xl md:text-5xl font-bold text-slate-900 dark:text-white mb-4">Wählen Sie Ihr perfektes Abo</h2>
2683 <p class="text-slate-600 dark:text-dark-muted text-base sm:text-lg max-w-[65ch] mx-auto">Entscheiden Sie sich für das Format, das zu Ihnen passt.</p> 2684 </div> 2685 2686 <!-- pt-3 schafft Platz fuer die ueberstehende "Beliebt"-Pille --> 2687 <div data-product-teaser-grid="wrap" 2688 data-gjs-draggable="false" data-gjs-copyable="false" data-gjs-removable="false" 2689 class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 items-stretch pt-3"> 2690 2691 <!-- ââ Kachel 1 â Standard ââââââââââââââââââââââââââââââââââââââ --> 2692 <div data-gjs-type="product-teaser-card" data-product-teaser-card="wrap" 2693 class="relative flex flex-col rounded-lg border border-slate-200 dark:border-dark-border bg-white dark:bg-dark-surface shadow-sm hover:shadow-md transition-shadow duration-300 animate-slide-up animate-delay-100"> 2694 <div data-product-teaser-card-section="header" data-gjs-draggable="false" data-gjs-copyable="false" data-gjs-removable="false" 2695 class="p-6 sm:p-8 text-center flex-grow flex flex-col items-center rounded-t-lg"> 2696 <picture class="block mb-4"> 2697 <img src="https://placehold.co/48x48?text=48x48px" alt="" width="56" height="56" 2698 loading="lazy" decoding="async" 2699 data-gjs-type="image" data-gjs-draggable="false" data-gjs-copyable="false" 2700 data-gjs-removable="false" data-gjs-resizable="false" 2701 class="h-14 w-14 object-contain skeleton"> 2702 </picture> 2703 <h3 class="text-2xl font-bold text-slate-900 dark:text-white mb-1">Digital</h3> 2704 <p class="text-slate-500 dark:text-dark-muted text-sm mt-1 mb-0">Perfekt für unterwegs.</p> 2705 <div data-gjs-type="product-teaser-structure" class="mt-auto pt-6"> 2706 <div data-gjs-type="product-teaser-structure" class="text-3xl sm:text-4xl font-black text-slate-900 dark:text-white tracking-tight"> 2707 <span class="block text-base font-medium text-slate-600 dark:text-dark-muted">aktuell</span><span class="block">38,99 â¬</span> 2708 </div> 2709 <div data-gjs-type="product-teaser-price-unit" data-product-teaser-price-unit="wrap" class="block text-base font-medium text-slate-600 dark:text-dark-muted mt-1">pro Monat</div> 2710 </div> 2711 </div> 2712 <div data-product-teaser-card-section="body" data-gjs-draggable="false" data-gjs-copyable="false" data-gjs-removable="false" 2713 class="p-6 bg-slate-50 dark:bg-dark-surface/40 border-t border-slate-100 dark:border-dark-border"> 2714 <ul class="space-y-3 list-none pl-0 mb-0"> 2715 <li class="flex items-start gap-3 text-sm text-slate-700 dark:text-dark-muted"><iconify-icon icon="material-symbols:check" class="text-green-500 font-bold shrink-0 mt-0.5" style="font-size:18px" aria-hidden="true" data-gjs-editable="false"></iconify-icon><span>Voller App-Zugriff</span></li> 2716 <li class="flex items-start gap-3 text-sm text-slate-700 dark:text-dark-muted"><iconify-icon icon="material-symbols:check" class="text-green-500 font-bold shrink-0 mt-0.5" style="font-size:18px" aria-hidden="true" data-gjs-editable="false"></iconify-icon><span>E-Paper Ausgabe</span></li> 2717 <li class="flex items-start gap-3 text-sm text-slate-700 dark:text-dark-muted"><iconify-icon icon="material-symbols:check" class="text-green-500 font-bold shrink-0 mt-0.5" style="font-size:18px" aria-hidden="true" data-gjs-editable="false"></iconify-icon><span>Artikel-Archiv</span></li> 2718 <li class="flex items-start gap-3 text-sm text-slate-400 dark:text-slate-500 line-through"><iconify-icon icon="material-symbols:close" class="text-red-500 font-bold shrink-0 mt-0.5" style="font-size:18px" aria-hidden="true" data-gjs-editable="false"></iconify-icon><span>Gedruckte Zeitung</span></li> 2719 </ul> 2720 </div> 2721 <div data-product-teaser-card-section="footer" data-gjs-draggable="false" data-gjs-copyable="false" data-gjs-removable="false" 2722 class="px-6 pt-6 pb-6 rounded-b-lg bg-slate-50 dark:bg-dark-surface/40"> 2723 <div class="flex flex-col gap-3"> 2724 <a href="#" target="_self" 2725 class="inline-flex items-center justify-center w-full px-6 py-3 text-base font-bold no-underline rounded-full border-2 border-brand-primary-500 text-brand-primary-500 hover:bg-brand-primary-50 focus:bg-brand-primary-50 active:bg-brand-primary-100 dark:hover:bg-neutral-800 transition-all duration-200 min-h-[44px] active:scale-95" 2726 data-track-v2-parentposition="Content" 2727 data-track-v2-parent="${fc}"
2728 data-track-v2-parentlabel="OS - Vertrieb" 2729 data-track-v2-elementposition="1" 2730 data-track-v2-elementtype="Button" 2731 data-track-v2-vendor="Internal" 2732 data-track-v2-link="" 2733 data-track-v2-linktype="External" 2734 data-track-v2-linkgenre="" 2735 data-track-v2-clickaction="select_content"> 2736 <span class="relative z-10">Auswählen</span> 2737 </a> 2738 </div> 2739 </div> 2740 </div> 2741 2742 <!-- ââ Kachel 2 â hervorgehoben âââââââââââââââââââââââââââââââââ --> 2743 <div data-gjs-type="product-teaser-card" data-product-teaser-card="wrap" 2744 class="relative flex flex-col rounded-lg border border-brand-primary-500 ring-2 ring-brand-primary-500 bg-white dark:bg-dark-surface shadow-md z-10 transition-shadow duration-300 animate-slide-up animate-delay-200"> 2745 <div data-gjs-draggable="false" data-gjs-copyable="false" data-gjs-removable="false" 2746 class="absolute top-0 left-1/2 -translate-x-1/2 -translate-y-1/2 z-10"> 2747 <span class="bg-brand-primary-500 text-brand-contrast text-[10px] sm:text-xs font-bold uppercase tracking-widest px-4 py-1 rounded-full shadow-sm whitespace-nowrap">Beliebt</span> 2748 </div> 2749 <div data-product-teaser-card-section="header" data-gjs-draggable="false" data-gjs-copyable="false" data-gjs-removable="false" 2750 class="p-6 sm:p-8 text-center flex-grow flex flex-col items-center rounded-t-lg"> 2751 <picture class="block mb-4"> 2752 <img src="https://placehold.co/48x48?text=48x48px" alt="" width="56" height="56" 2753 loading="lazy" decoding="async" 2754 data-gjs-type="image" data-gjs-draggable="false" data-gjs-copyable="false" 2755 data-gjs-removable="false" data-gjs-resizable="false" 2756 class="h-14 w-14 object-contain skeleton"> 2757 </picture> 2758 <h3 class="text-2xl font-bold text-slate-900 dark:text-white mb-1">Komplett</h3> 2759 <p class="text-slate-500 dark:text-dark-muted text-sm mt-1 mb-0">Das Beste aus beiden Welten.</p> 2760 <div data-gjs-type="product-teaser-structure" class="mt-auto pt-6"> 2761 <div data-gjs-type="product-teaser-structure" class="text-3xl sm:text-4xl font-black text-slate-900 dark:text-white tracking-tight"> 2762 <span class="block text-base font-medium text-slate-600 dark:text-dark-muted">aktuell</span><span class="block">59,99 â¬</span> 2763 </div> 2764 <div data-gjs-type="product-teaser-price-unit" data-product-teaser-price-unit="wrap" class="block text-base font-medium text-slate-600 dark:text-dark-muted mt-1">pro Monat</div> 2765 </div> 2766 </div> 2767 <div data-product-teaser-card-section="body" data-gjs-draggable="false" data-gjs-copyable="false" data-gjs-removable="false" 2768 class="p-6 bg-brand-primary-50 border-t border-brand-primary-100"> 2769 <ul class="space-y-3 list-none pl-0 mb-0"> 2770 <li class="flex items-start gap-3 text-sm text-slate-700 dark:text-dark-muted"><iconify-icon icon="material-symbols:check" class="text-green-500 font-bold shrink-0 mt-0.5" style="font-size:18px" aria-hidden="true" data-gjs-editable="false"></iconify-icon><span>Alle Digital-Vorteile</span></li> 2771 <li class="flex items-start gap-3 text-sm text-slate-700 dark:text-dark-muted"><iconify-icon icon="material-symbols:check" class="text-green-500 font-bold shrink-0 mt-0.5" style="font-size:18px" aria-hidden="true" data-gjs-editable="false"></iconify-icon><span>Gedruckte Zeitung täglich</span></li> 2772 <li class="flex items-start gap-3 text-sm text-slate-700 dark:text-dark-muted"><iconify-icon icon="material-symbols:check" class="text-green-500 font-bold shrink-0 mt-0.5" style="font-size:18px" aria-hidden="true" data-gjs-editable="false"></iconify-icon><span>Wochenend-Magazin</span></li> 2773 <li class="flex items-start gap-3 text-sm text-slate-700 dark:text-dark-muted"><iconify-icon icon="material-symbols:check" class="text-green-500 font-bold shrink-0 mt-0.5" style="font-size:18px" aria-hidden="true" data-gjs-editable="false"></iconify-icon><span>Exklusive Events</span></li> 2774 </ul> 2775 </div> 2776 <div data-product-teaser-card-section="footer" data-gjs-draggable="false" data-gjs-copyable="false" data-gjs-removable="false" 2777 class="px-6 pt-6 pb-6 rounded-b-lg bg-brand-primary-50"> 2778 <div class="flex flex-col gap-3"> 2779 <a href="#" target="_self" 2780 class="inline-flex items-center justify-center w-full px-6 py-3 text-base font-bold text-brand-contrast bg-brand-primary-500 hover:bg-brand-primary-700 focus:bg-brand-primary-700 active:bg-brand-primary-300 rounded-full shadow-md transition-all duration-200 min-h-[44px] active:scale-95 no-underline" 2781 data-track-v2-parentposition="Content" 2782 data-track-v2-parent="${fc}"
2783 data-track-v2-parentlabel="OS - Vertrieb" 2784 data-track-v2-elementposition="2" 2785 data-track-v2-elementtype="Button" 2786 data-track-v2-vendor="Internal" 2787 data-track-v2-link="" 2788 data-track-v2-linktype="External" 2789 data-track-v2-linkgenre="" 2790 data-track-v2-clickaction="select_content"> 2791 <span class="relative z-10">Auswählen</span> 2792 </a> 2793 </div> 2794 </div> 2795 </div> 2796 2797 <!-- ââ Kachel 3 â Standard ââââââââââââââââââââââââââââââââââââââ --> 2798 <div data-gjs-type="product-teaser-card" data-product-teaser-card="wrap" 2799 class="relative flex flex-col rounded-lg border border-slate-200 dark:border-dark-border bg-white dark:bg-dark-surface shadow-sm hover:shadow-md transition-shadow duration-300 animate-slide-up animate-delay-300"> 2800 <div data-product-teaser-card-section="header" data-gjs-draggable="false" data-gjs-copyable="false" data-gjs-removable="false" 2801 class="p-6 sm:p-8 text-center flex-grow flex flex-col items-center rounded-t-lg"> 2802 <picture class="block mb-4"> 2803 <img src="https://placehold.co/48x48?text=48x48px" alt="" width="56" height="56" 2804 loading="lazy" decoding="async" 2805 data-gjs-type="image" data-gjs-draggable="false" data-gjs-copyable="false" 2806 data-gjs-removable="false" data-gjs-resizable="false" 2807 class="h-14 w-14 object-contain skeleton"> 2808 </picture> 2809 <h3 class="text-2xl font-bold text-slate-900 dark:text-white mb-1">Tablet-Abo</h3> 2810 <p class="text-slate-500 dark:text-dark-muted text-sm mt-1 mb-0">Perfekt für digitales Lesen.</p> 2811 <div data-gjs-type="product-teaser-structure" class="mt-auto pt-6"> 2812 <div data-gjs-type="product-teaser-structure" class="text-3xl sm:text-4xl font-black text-slate-900 dark:text-white tracking-tight"> 2813 <span class="block text-base font-medium text-slate-600 dark:text-dark-muted">aktuell</span><span class="block">39,99 â¬</span> 2814 </div> 2815 <div data-gjs-type="product-teaser-price-unit" data-product-teaser-price-unit="wrap" class="block text-base font-medium text-slate-600 dark:text-dark-muted mt-1">pro Monat</div> 2816 </div> 2817 </div> 2818 <div data-product-teaser-card-section="body" data-gjs-draggable="false" data-gjs-copyable="false" data-gjs-removable="false" 2819 class="p-6 bg-slate-50 dark:bg-dark-surface/40 border-t border-slate-100 dark:border-dark-border"> 2820 <ul class="space-y-3 list-none pl-0 mb-0"> 2821 <li class="flex items-start gap-3 text-sm text-slate-700 dark:text-dark-muted"><iconify-icon icon="material-symbols:check" class="text-green-500 font-bold shrink-0 mt-0.5" style="font-size:18px" aria-hidden="true" data-gjs-editable="false"></iconify-icon><span>Voller App-Zugriff</span></li> 2822 <li class="flex items-start gap-3 text-sm text-slate-700 dark:text-dark-muted"><iconify-icon icon="material-symbols:check" class="text-green-500 font-bold shrink-0 mt-0.5" style="font-size:18px" aria-hidden="true" data-gjs-editable="false"></iconify-icon><span>E-Paper Ausgabe</span></li> 2823 <li class="flex items-start gap-3 text-sm text-slate-700 dark:text-dark-muted"><iconify-icon icon="material-symbols:check" class="text-green-500 font-bold shrink-0 mt-0.5" style="font-size:18px" aria-hidden="true" data-gjs-editable="false"></iconify-icon><span>Artikel-Archiv</span></li> 2824 <li class="flex items-start gap-3 text-sm text-slate-700 dark:text-dark-muted"><iconify-icon icon="material-symbols:check" class="text-green-500 font-bold shrink-0 mt-0.5" style="font-size:18px" aria-hidden="true" data-gjs-editable="false"></iconify-icon><span>inkl. gratis Tablet</span></li> 2825 </ul> 2826 </div> 2827 <div data-product-teaser-card-section="footer" data-gjs-draggable="false" data-gjs-copyable="false" data-gjs-removable="false" 2828 class="px-6 pt-6 pb-6 rounded-b-lg bg-slate-50 dark:bg-dark-surface/40"> 2829 <div class="flex flex-col gap-3"> 2830 <a href="#" target="_self" 2831 class="inline-flex items-center justify-center w-full px-6 py-3 text-base font-bold no-underline rounded-full border-2 border-brand-primary-500 text-brand-primary-500 hover:bg-brand-primary-50 focus:bg-brand-primary-50 active:bg-brand-primary-100 dark:hover:bg-neutral-800 transition-all duration-200 min-h-[44px] active:scale-95" 2832 data-track-v2-parentposition="Content" 2833 data-track-v2-parent="${fc}"
2834 data-track-v2-parentlabel="OS - Vertrieb" 2835 data-track-v2-elementposition="3" 2836 data-track-v2-elementtype="Button" 2837 data-track-v2-vendor="Internal" 2838 data-track-v2-link="" 2839 data-track-v2-linktype="External" 2840 data-track-v2-linkgenre="" 2841 data-track-v2-clickaction="select_content"> 2842 <span class="relative z-10">Auswählen</span> 2843 </a> 2844 </div> 2845 </div> 2846 </div> 2847 2848 <!-- ââ Kachel 4 â Standard ââââââââââââââââââââââââââââââââââââââ --> 2849 <div data-gjs-type="product-teaser-card" data-product-teaser-card="wrap" 2850 class="relative flex flex-col rounded-lg border border-slate-200 dark:border-dark-border bg-white dark:bg-dark-surface shadow-sm hover:shadow-md transition-shadow duration-300 animate-slide-up animate-delay-400"> 2851 <div data-product-teaser-card-section="header" data-gjs-draggable="false" data-gjs-copyable="false" data-gjs-removable="false" 2852 class="p-6 sm:p-8 text-center flex-grow flex flex-col items-center rounded-t-lg"> 2853 <picture class="block mb-4"> 2854 <img src="https://placehold.co/48x48?text=48x48px" alt="" width="56" height="56" 2855 loading="lazy" decoding="async" 2856 data-gjs-type="image" data-gjs-draggable="false" data-gjs-copyable="false" 2857 data-gjs-removable="false" data-gjs-resizable="false" 2858 class="h-14 w-14 object-contain skeleton"> 2859 </picture> 2860 <h3 class="text-2xl font-bold text-slate-900 dark:text-white mb-1">Onlineartikel</h3> 2861 <p class="text-slate-500 dark:text-dark-muted text-sm mt-1 mb-0">Für entspannte Tage.</p> 2862 <div data-gjs-type="product-teaser-structure" class="mt-auto pt-6"> 2863 <div data-gjs-type="product-teaser-structure" class="text-3xl sm:text-4xl font-black text-slate-900 dark:text-white tracking-tight"> 2864 <span class="block text-base font-medium text-slate-600 dark:text-dark-muted">aktuell</span><span class="block">9,99 â¬</span> 2865 </div> 2866 <div data-gjs-type="product-teaser-price-unit" data-product-teaser-price-unit="wrap" class="block text-base font-medium text-slate-600 dark:text-dark-muted mt-1">pro Woche</div> 2867 </div> 2868 </div> 2869 <div data-product-teaser-card-section="body" data-gjs-draggable="false" data-gjs-copyable="false" data-gjs-removable="false" 2870 class="p-6 bg-slate-50 dark:bg-dark-surface/40 border-t border-slate-100 dark:border-dark-border"> 2871 <ul class="space-y-3 list-none pl-0 mb-0"> 2872 <li class="flex items-start gap-3 text-sm text-slate-700 dark:text-dark-muted"><iconify-icon icon="material-symbols:check" class="text-green-500 font-bold shrink-0 mt-0.5" style="font-size:18px" aria-hidden="true" data-gjs-editable="false"></iconify-icon><span>Alle PLUS-Artikel lesen</span></li> 2873 <li class="flex items-start gap-3 text-sm text-slate-700 dark:text-dark-muted"><iconify-icon icon="material-symbols:check" class="text-green-500 font-bold shrink-0 mt-0.5" style="font-size:18px" aria-hidden="true" data-gjs-editable="false"></iconify-icon><span>Digital-Zugriff am Wochenende</span></li> 2874 <li class="flex items-start gap-3 text-sm text-slate-400 dark:text-slate-500 line-through"><iconify-icon icon="material-symbols:close" class="text-red-500 font-bold shrink-0 mt-0.5" style="font-size:18px" aria-hidden="true" data-gjs-editable="false"></iconify-icon><span>E-Paper Ausgabe</span></li> 2875 <li class="flex items-start gap-3 text-sm text-slate-400 dark:text-slate-500 line-through"><iconify-icon icon="material-symbols:close" class="text-red-500 font-bold shrink-0 mt-0.5" style="font-size:18px" aria-hidden="true" data-gjs-editable="false"></iconify-icon><span>Gedruckte Zeitung</span></li> 2876 </ul> 2877 </div> 2878 <div data-product-teaser-card-section="footer" data-gjs-draggable="false" data-gjs-copyable="false" data-gjs-removable="false" 2879 class="px-6 pt-6 pb-6 rounded-b-lg bg-slate-50 dark:bg-dark-surface/40"> 2880 <div class="flex flex-col gap-3"> 2881 <a href="#" target="_self" 2882 class="inline-flex items-center justify-center w-full px-6 py-3 text-base font-bold no-underline rounded-full border-2 border-brand-primary-500 text-brand-primary-500 hover:bg-brand-primary-50 focus:bg-brand-primary-50 active:bg-brand-primary-100 dark:hover:bg-neutral-800 transition-all duration-200 min-h-[44px] active:scale-95" 2883 data-track-v2-parentposition="Content" 2884 data-track-v2-parent="${fc}"
2885 data-track-v2-parentlabel="OS - Vertrieb" 2886 data-track-v2-elementposition="4" 2887 data-track-v2-elementtype="Button" 2888 data-track-v2-vendor="Internal" 2889 data-track-v2-link="" 2890 data-track-v2-linktype="External" 2891 data-track-v2-linkgenre="" 2892 data-track-v2-clickaction="select_content"> 2893 <span class="relative z-10">Auswählen</span> 2894 </a> 2895 </div> 2896 </div> 2897 </div> 2898 2899 </div> 2900 </div> 2901</section> 2902`}const Ku="Landingpage Elemente - Content - Showcase",vu="bg-white dark:bg-dark-surface border border-slate-200 dark:border-dark-border shadow-sm animate-slide-up",dN="inline-flex items-center justify-center w-full sm:w-auto px-6 py-3 text-base font-bold text-brand-contrast bg-brand-primary-500 hover:bg-brand-primary-700 focus:bg-brand-primary-700 active:bg-brand-primary-300 rounded-full shadow-md transition-all duration-200 min-h-[44px] active:scale-95 no-underline",uN="inline-flex items-center justify-center w-full sm:w-auto px-[22px] py-[10px] text-base font-bold no-underline rounded-full border-2 border-brand-primary-500 text-brand-primary-500 hover:bg-brand-primary-50 focus:bg-brand-primary-50 active:bg-brand-primary-100 dark:hover:bg-neutral-800 dark:focus:bg-neutral-800 dark:active:bg-neutral-700 transition-all duration-200 min-h-[44px] active:scale-95",b2="https://placehold.co/768x576?text=768x576px",x2="https://placehold.co/1920x1440?text=1920x1440px",fN="(min-width: 1280px) 556px, (min-width: 768px) 396px, 100vw";function pN(a){a.DomComponents.addType("showcase-structure",{model:{defaults:{tagName:"div",editable:!1}}}),a.DomComponents.addType("showcase-feature",{model:{defaults:{tagName:"li",editable:!1}}}),a.DomComponents.addType("showcase-container",{isComponent(r){return r&&r.getAttribute&&r.getAttribute("data-showcase-container")==="wrap"?{type:"showcase-container"}:!1},model:{defaults:{tagName:"div",editable:!1,draggable:!1,copyable:!1,removable:!1,droppable:!0,wide_content:!1,attributes:{"data-showcase-container":"wrap",class:"mx-auto px-4 sm:px-6 max-w-[960px]"}},init(){this.on("change:wide_content",this.handleWideContentChange),this.handleWideContentChange()},handleWideContentChange(){const r=!!this.get("wide_content"),t=this.getAttributes(),e=String(t.class||"").split(" ").filter(n=>n&&!n.startsWith("max-w-"));e.push(r?"max-w-[1280px]":"max-w-[960px]"),this.setAttributes({...t,class:e.join(" ")})}}}),a.DomComponents.addType("showcase-card",{isComponent(r){return r&&r.getAttribute&&r.getAttribute("data-showcase-card")==="wrap"?{type:"showcase-card"}:!1},model:{defaults:{tagName:"div",editable:!1,draggable:!1,copyable:!1,removable:!1,droppable:!0,attributes:{"data-showcase-card":"wrap",class:`flex flex-col items-center md:flex-row gap-6 md:gap-10 ${vu} rounded-xl p-6 sm:p-10`}}}}),a.DomComponents.addType("showcase",{isComponent(r){return r&&r.getAttribute&&r.getAttribute("data-showcase")==="wrap"?{type:"showcase"}:!1},model:{defaults:{tagName:"section",editable:!1,droppable:!0,attributes:{"data-showcase":"wrap","data-component-id":"43","data-component-version":"1.3.2","data-component-name":Ku,"data-showcase-media-position":"left-top","aria-label":"Showcase",class:"relative w-screen left-1/2 -translate-x-1/2 overflow-hidden py-8 sm:py-12 animate-fade-in"},traits:[{type:"checkbox",name:"cardStyleDisabled",label:"Karten-Style deaktivieren",changeProp:!0},{type:"select",name:"data-showcase-media-position",label:"Bild-Position",options:[{id:"left",name:"Links â Mitte"},{id:"right",name:"Rechts â Mitte"},{id:"left-top",name:"Links â Oben (Standard)"},{id:"right-top",name:"Rechts â Oben"}]}],cardStyleDisabled:!1},init(){var e,n,i;const r=this.getAttributes(),t=String(r.class||"").split(/\s+/).filter(Boolean);t.includes("animate-fade-in")||this.setAttributes({...r,class:[...t,"animate-fade-in"].join(" ")}),this.on("change:attributes:data-showcase-media-position",()=>{var o;return(o=this.applyMediaPosition)==null?void 0:o.call(this)}),this.on("change:cardStyleDisabled",()=>{var o;return(o=this.applyCardStyle)==null?void 0:o.call(this)}),this.on("component:mount",()=>{var o,s,c;(o=this.applyMediaPosition)==null||o.call(this),(s=this.applyCardStyle)==null||s.call(this),(c=this.applyDarkModeClasses)==null||c.call(this)}),(e=this.applyMediaPosition)==null||e.call(this),(n=this.applyCardStyle)==null||n.call(this),(i=this.applyDarkModeClasses)==null||i.call(this)},applyMediaPosition(){try{if(typeof this.find!="function")return;const r=(this.find('[data-showcase-card="wrap"]')||[])[0];if(!r)return;const t=String(this.getAttributes()["data-showcase-media-position"]||"left-top"),e=r.getAttributes()||{};
2902let n=String(e.class||"").split(" ").filter(Boolean);n=n.filter(i=>i!=="md:flex-row-reverse"&&i!=="md:items-start"),(t==="right"||t==="right-top")&&n.push("md:flex-row-reverse"),(t==="left-top"||t==="right-top")&&n.push("md:items-start"),r.setAttributes({...e,class:Array.from(new Set(n)).join(" ")})}catch(r){typeof console<"u"&&console.warn("[showcase] applyMediaPosition fehlgeschlagen:",r)}},applyCardStyle(){const r=(this.find('[data-showcase-card="wrap"]')||[])[0];r&&(this.get("cardStyleDisabled")?r.removeClass(vu):r.addClass(vu))},applyDarkModeClasses(){var d;const r=(f,g)=>{var m;return(m=f==null?void 0:f.addClass)==null?void 0:m.call(f,g)},t=(this.find('[data-showcase-card="wrap"]')||[])[0],e=(this.find('[data-showcase-badge="wrap"]')||[])[0],n=(this.find("h2")||[])[0],i=(this.find("p")||[])[0],o=(this.find('[data-showcase-features="wrap"]')||[])[0],s=(this.find('[data-showcase-stats="wrap"]')||[])[0],c=this.find('[data-showcase-ctas="wrap"] a')||[];this.get("cardStyleDisabled")||r(t,vu),r(e,"dark:bg-neutral-800 dark:text-white"),r(n,"dark:text-white"),r(i,"dark:text-dark-muted"),r(o,"dark:text-dark-muted"),r(s,"dark:border-dark-border"),r(c[1],"dark:hover:bg-neutral-800 dark:focus:bg-neutral-800 dark:active:bg-neutral-700"),(d=s==null?void 0:s.find)==null||d.call(s,"span").forEach((f,g)=>{r(f,g%2===0?"dark:text-white":"dark:text-dark-muted")})}}}),a.BlockManager.add("showcase",{id:"showcase",label:"Showcase",category:{id:"content",label:"Content"},attributes:{"data-os-group":"Landingpage Elemente","data-os-page-type":"both"},content:hN(),media:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><rect x="20" y="90" width="360" height="220" rx="10" fill="#e5e7eb"/><rect x="40" y="120" width="150" height="160" rx="6" fill="#b2b2b2"/><rect x="210" y="130" width="150" height="16" rx="4" fill="#9ca3af"/><rect x="210" y="156" width="120" height="12" rx="3" fill="#d1d5db"/><rect x="210" y="180" width="140" height="10" rx="3" fill="#d1d5db"/><rect x="210" y="196" width="100" height="10" rx="3" fill="#d1d5db"/><rect x="210" y="235" width="90" height="28" rx="14" fill="#9ca3af"/></svg>'}),a.on("load",()=>{var t;(((t=a.getWrapper())==null?void 0:t.find('[data-showcase="wrap"]'))||[]).forEach(e=>{e.find("div").forEach(n=>{n.get("type")==="text"&&n.set({type:"showcase-structure",editable:!1})}),e.find("li").forEach(n=>{n.get("type")==="text"&&n.set({type:"showcase-feature",editable:!1})})})})}function hN(){return` 2903<section 2904 data-showcase="wrap" 2905 data-component-id="43" 2906 data-component-version="1.3.2" 2907 data-component-name="${Ku}" 2908 data-showcase-media-position="left-top" 2909 aria-label="Showcase" 2910 class="relative w-screen left-1/2 -translate-x-1/2 overflow-hidden py-8 sm:py-12 animate-fade-in"> 2911 <div data-showcase-container="wrap" class="mx-auto px-4 sm:px-6 max-w-[960px]"> 2912 <div data-showcase-card="wrap" class="flex flex-col md:flex-row gap-6 md:gap-10 items-center md:items-start bg-white dark:bg-dark-surface rounded-xl border border-slate-200 dark:border-dark-border shadow-sm p-6 sm:p-10"> 2913 <div data-showcase-media="wrap" class="w-full md:w-1/2"> 2914 <picture class="block w-full"> 2915 <source media="(max-width: 767px)" srcset="${b2} 768w" sizes="100vw"> 2916 <source media="(min-width: 768px)" srcset="${b2} 768w, ${x2} 1920w" sizes="${fN}"> 2917 <img src="${x2}" alt="Beschreibung des Bildes" class="aspect-[4/3] w-full object-cover rounded-lg skeleton"> 2918 </picture> 2919 </div> 2920 <div data-gjs-type="showcase-structure" data-showcase-body="wrap" class="w-full md:w-1/2 flex flex-col gap-4"> 2921 <span data-showcase-badge="wrap" class="inline-flex self-start items-center px-3 py-1 rounded-full text-xs font-bold uppercase tracking-wider text-white dark:bg-neutral-800 dark:text-white bg-brand-primary-700 dark:bg-brand-primary-100">Premium Bundle</span> 2922 <h2 class="text-3xl md:text-4xl font-bold mb-0 text-slate-900 dark:text-white">Ihre überzeugende Headline</h2> 2923 <p class="text-base text-slate-600 dark:text-dark-muted leading-relaxed">Beschreibungstext, der den Nutzen und die wichtigsten Vorteile klar kommuniziert.</p> 2924 <ul data-showcase-features="wrap" class="flex flex-col gap-2 text-md text-slate-700 dark:text-dark-muted my-2 list-none pl-0">
2925 <li data-gjs-type="showcase-feature" class="flex items-start gap-3"> 2926 <iconify-icon icon="material-symbols:check-circle" class="text-brand-primary-500 shrink-0 mt-1" style="font-size:20px" aria-hidden="true"></iconify-icon> 2927 <span>Erstes überzeugendes Feature</span> 2928 </li> 2929 <li data-gjs-type="showcase-feature" class="flex items-start gap-3"> 2930 <iconify-icon icon="material-symbols:check-circle" class="text-brand-primary-500 shrink-0 mt-1" style="font-size:20px" aria-hidden="true"></iconify-icon> 2931 <span>Zweites überzeugendes Feature</span> 2932 </li> 2933 <li data-gjs-type="showcase-feature" class="flex items-start gap-3"> 2934 <iconify-icon icon="material-symbols:check-circle" class="text-brand-primary-500 shrink-0 mt-1" style="font-size:20px" aria-hidden="true"></iconify-icon> 2935 <span>Drittes überzeugendes Feature</span> 2936 </li> 2937 </ul> 2938 <div data-gjs-type="showcase-structure" data-showcase-ctas="wrap" class="flex flex-col sm:flex-row gap-3 mt-2"> 2939 <a href="#" target="_self" 2940 class="${dN}" 2941 data-track-v2-parentposition="Content" 2942 data-track-v2-parent="${Ku}" 2943 data-track-v2-parentlabel="OS - Landingpage" 2944 data-track-v2-elementtype="Button" 2945 data-track-v2-vendor="Internal" 2946 data-track-v2-linktype="External" 2947 data-track-v2-clickaction="select_content"> 2948 <span class="relative z-10">Jetzt konfigurieren</span> 2949 </a> 2950 <a href="#" target="_self" 2951 class="${uN}" 2952 data-track-v2-parentposition="Content" 2953 data-track-v2-parent="${Ku}" 2954 data-track-v2-parentlabel="OS - Landingpage" 2955 data-track-v2-elementtype="Button" 2956 data-track-v2-vendor="Internal" 2957 data-track-v2-linktype="External" 2958 data-track-v2-clickaction="select_content"> 2959 <span class="relative z-10">Mehr Infos</span> 2960 </a> 2961 </div> 2962 <div data-gjs-type="showcase-structure" data-showcase-stats="wrap" class="flex flex-wrap gap-6 sm:gap-10 mt-6 pt-6 border-t border-slate-100 dark:border-dark-border"> 2963 <div data-gjs-type="showcase-structure" class="flex flex-col"> 2964 <span class="text-2xl font-black text-slate-900 dark:text-white">15.000+</span> 2965 <span class="text-xs uppercase tracking-wider text-slate-500 dark:text-dark-muted font-semibold mt-1">Erfolgreiche Empfehlungen</span> 2966 </div> 2967 <div data-gjs-type="showcase-structure" class="flex flex-col"> 2968 <span class="text-2xl font-black text-slate-900 dark:text-white">4,9/5</span> 2969 <span class="text-xs uppercase tracking-wider text-slate-500 dark:text-dark-muted font-semibold mt-1">Zufriedenheit</span> 2970 </div> 2971 <div data-gjs-type="showcase-structure" class="flex flex-col"> 2972 <span class="text-2xl font-black text-slate-900 dark:text-white">200â¬</span> 2973 <span class="text-xs uppercase tracking-wider text-slate-500 dark:text-dark-muted font-semibold mt-1">Maximale Prämie</span> 2974 </div> 2975 </div> 2976 </div> 2977 </div> 2978 </div> 2979</section> 2980`}function gN(a){const r={id:"contentSlider",label:"Inhalte - Slider",category:{id:"seiten-elemente",label:"Seiten Elemente"},attributes:{"data-os-group":"Landingpage Elemente","data-os-page-type":"cue"},content:` 2981 <div 2982 data-gjs-type="content-slider" 2983 data-component-name="Vertriebliche Elemente - Slider" 2984 class="content-slider-wrapper container mx-auto pt-6 pb-12 overflow-hidden"> 2985 <div class="swiper" data-swiper='{"slidesPerView": 1, "spaceBetween": 20, "breakpoints": {"768"
2985: {"slidesPerView": 3, "enabled": true}}}'> 2986 <div class="swiper-wrapper"> 2987 ${Array(4).fill(0).map((t,e)=>` 2988 <div class="swiper-slide h-auto" data-gjs-removable="false"> 2989 <div class="p-5 bg-white dark:bg-dark-surface border border-slate-200 dark:border-dark-border shadow-sm h-full flex flex-col"> 2990 <div class="w-full card-head"> 2991 <picture class="block w-full"> 2992 <source media="(max-width: 639px)" srcset="https://placehold.co/640x360?text=Mobile_640x360px"> 2993 <source media="(min-width: 640px)" srcset="https://placehold.co/960x540?text=Desktop_960x540px"> 2994 <img src="https://placehold.co/960x540?text=Desktop_960x540px" alt="Image ${e+1}" class="aspect-[16/9] skeleton w-full"> 2995 </picture> 2996 </div> 2997 <div class="w-full flex flex-col items-center pt-6 card-body flex-grow"> 2998 <span class="text-overline py-0 px-[3px] text-[13px] border rounded border-gray-400 text-gray-ts mb-2 block uppercase">Custom Flag</span> 2999 <strong class="text-title5 block outline-none">Lorem Ipsum ${e+1}</strong> 3000 <p class="text-body2 mt-2 block mb-2 text-center">In dui magna, posuere eget, vestibulum et, tempor auctor, justo. Pellentesque ut neque.</p> 3001 </div> 3002 <a href="#" 3003 class="no-underline font-medium rounded border-2 px-6 mt-4 text-center uppercase transition text-sm leading-[41px] block w-full border-brand-primary-500 hover:border-brand-primary-700 focus:border-brand-primary-700 active:border-brand-primary-300 bg-brand-primary-500 hover:bg-brand-primary-700 focus:bg-brand-primary-700 active:bg-brand-primary-300 text-brand-contrast hover:text-brand-contrast" 3004 data-track-v2-parentposition="Content" 3005 data-track-v2-parent="Vertriebliche Elemente - Slider" 3006 data-track-v2-parentlabel="OS - Vertrieb" 3007 data-track-v2-elementposition="${e+1}" 3008 data-track-v2-elementtype="Button"> 3009 <span>Button</span> 3010 </a> 3011 </div> 3012 </div>`).join("")} 3013 </div> 3014 <div class="swiper-button-prev"></div> 3015 <div class="swiper-button-next"></div> 3016 </div> 3017 </div> 3018 `,media:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><rect width="340" height="180.49" x="30" y="109.76" fill="#d3d3d3" rx="8.73" ry="8.73"/><circle cx="302.06" cy="149.65" r="13.94" fill="#b2b2b2"/><path fill="#b2b2b2" fill-rule="evenodd" d="M370 251.49v30.02c0 4.82-3.91 8.73-8.73 8.73H38.73c-4.82 0-8.73-3.91-8.73-8.73V251.5l91.96-66.35c11.25-8.12 29.49-8.12 40.75 0l99.19 71.55c.23.18.47.35.72.52 5.82 3.92 14.94 3.68 20.37-.52s5.11-10.78-.72-14.7l-18.64-13.45 16.91-12.2c11.26-8.11 29.5-8.11 40.75 0L370 251.49Z"/></svg>'};a.Components.addType("content-slider",{model:{defaults:{traits:[{type:"select",label:"Anzahl Slides",name:"slides_count",options:[{id:"4",value:"4",name:"4 Slides"},{id:"5",value:"5",name:"5 Slides"},{id:"6",value:"6",name:"6 Slides"},{id:"7",value:"7",name:"7 Slides"},{id:"8",value:"8",name:"8 Slides"}],changeProp:!0}],slides_count:"4"},init(){this.on("change:slides_count",this.updateSlides)},updateSlides(){const t=parseInt(this.get("slides_count")),e=this.find(".swiper-wrapper")[0];if(!e)return;const n=e.components(),i=n.length;if(t>i)for(let o=i;o<t;o++)e.append(` 3019 <div class="swiper-slide h-auto" data-gjs-removable="false"> 3020 <div class="p-5 bg-white dark:bg-dark-surface border border-slate-200 dark:border-dark-border shadow-sm h-full flex flex-col"> 3021 <div class="w-full card-head"> 3022 <picture class="block w-full"> 3023 <source media="(max-width: 639px)" srcset="https://placehold.co/640x360?text=Mobile_640x360px"> 3024 <source media="(min-width: 640px)" srcset="https://placehold.co/960x540?text=Desktop_960x540px"> 3025 <img src="https://placehold.co/960x540?text=Desktop_960x540px" alt="Image ${o+1}" class="aspect-[16/9] skeleton w-full"> 3026 </picture> 3027 </div> 3028 <div class="w-full flex flex-col items-center pt-6 card-body flex-grow">
3029 <span class="text-overline py-0 px-[3px] text-[13px] border rounded border-gray-400 text-gray-ts mb-2 block uppercase">Custom Flag</span> 3030 <strong class="text-title5 block outline-none">Lorem Ipsum ${o+1}</strong> 3031 <p class="text-body2 mt-2 block mb-2 text-center">In dui magna, posuere eget, vestibulum et, tempor auctor, justo. Pellentesque ut neque.</p> 3032 </div> 3033 <a href="#" 3034 class="no-underline font-medium rounded border-2 px-6 mt-4 text-center uppercase transition text-sm leading-[41px] block w-full border-brand-primary-500 hover:border-brand-primary-700 focus:border-brand-primary-700 active:border-brand-primary-300 bg-brand-primary-500 hover:bg-brand-primary-700 focus:bg-brand-primary-700 active:bg-brand-primary-300 text-brand-contrast hover:text-brand-contrast" 3035 data-track-v2-elementposition="${o+1}"> 3036 <span>Button</span> 3037 </a> 3038 </div> 3039 </div> 3040 `);else if(t<i)for(let o=i-1;o>=t;o--)n.at(o).remove();this.trigger("change:attributes")}}}),a.Components.addType("full-width-slider",{model:{defaults:{traits:[{type:"select",label:"Anzahl Slides",name:"slides_count",options:[{id:"2",value:"2",name:"2 Slides"},{id:"3",value:"3",name:"3 Slides"},{id:"4",value:"4",name:"4 Slides"},{id:"5",value:"5",name:"5 Slides"},{id:"6",value:"6",name:"6 Slides"},{id:"7",value:"7",name:"7 Slides"},{id:"8",value:"8",name:"8 Slides"}],changeProp:!0}],slides_count:"3"},init(){this.on("change:slides_count",this.updateSlides)},updateSlides(){const t=parseInt(this.get("slides_count")),e=this.find(".swiper-wrapper")[0];if(!e)return;const n=e.components(),i=n.length;if(t>i)for(let o=i;o<t;o++)e.append(` 3041 <div class="swiper-slide h-auto" data-gjs-removable="false"> 3042 <div class="relative w-full aspect-[2/1]"> 3043 <picture class="block w-full md:absolute"> 3044 <source media="(max-width: 639px)" srcset="https://placehold.co/640x320?text=Mobile_640x320px"> 3045 <source media="(min-width: 640px)" srcset="https://placehold.co/960x480?text=Desktop_960x480px"> 3046 <img src="https://placehold.co/960x540?text=Desktop_960x480px" alt="Image ${o+1}" class="aspect-[2/1] skeleton"> 3047 </picture> 3048 3049 <div class="relative text-center block shadow-sm border border-slate-200 bg-white p-5 pt-6 transition-shadow duration-300 dark:border-dark-border dark:bg-dark-surface w-[90%] mx-auto mt-[-10%] mb-3 md:mx-0 md:mb-0 md:max-w-[294px] md:float-left md:left-0 md:top-0 md:mt-8 md:ml-8"> 3050 <div class="ribbon ribbon-top-right z-10 before:border-brand-primary-700 after:border-brand-primary-700"><span class="bg-brand-primary-500">Beliebt</span></div> 3051 <div class=""> 3052 <strong class="outline-none text-title5 block mb-2">X Monate</strong> 3053 <picture class="block w-full mb-2"> 3054 <source media="(max-width: 639px)" srcset="https://placehold.co/640x360?text=Mobile_640x360px"> 3055 <source media="(min-width: 640px)" srcset="https://placehold.co/960x540?text=Desktop_960x540px"> 3056 <img src="https://placehold.co/960x540?text=Desktop_960x540px" alt="Product Image" class="aspect-[16/9] skeleton"> 3057 </picture> 3058 <strong class="text-title3 md:text-title2 block"><span class="text-xs mr-2">
3058nur</span>99,99 â¬<span class="text-xs ml-2">/ Monat*</span></strong> 3059 <p class="text-body2 mt-2 mb-2 block">In dui magna, posuere eget, vestibulum et, tempor auctor, justo. Pellentesque ut neque.</p> 3060 <a href="#" class="no-underline font-medium rounded border-2 px-6 mt-4 text-center uppercase transition text-sm leading-[41px] block w-full border-brand-primary-500 hover:border-brand-primary-700 focus:border-brand-primary-700 active:border-brand-primary-300 bg-brand-primary-500 hover:bg-brand-primary-700 focus:bg-brand-primary-700 active:bg-brand-primary-300 text-brand-contrast hover:text-brand-contrast" 3061 data-track-v2-elementposition="${o+1}"> 3062 <span>Button</span> 3063 </a> 3064 <a href="#" class="no-underline font-medium rounded border-2 px-5 mt-2 text-center uppercase transition text-sm leading-[41px] block w-full border-brand-primary-500 hover:border-brand-primary-700 focus:border-brand-primary-700 active:border-brand-primary-300 !text-{min} hover:text-{min}" 3065 data-track-v2-elementposition="${o+1}"> 3066 <span>Button</span> 3067 </a> 3068 </div> 3069 </div> 3070 </div> 3071 </div> 3072 `);else if(t<i)for(let o=i-1;o>=t;o--)n.at(o).remove();this.trigger("change:attributes")}}}),a.BlockManager.add(r.id,r),a.BlockManager.add("fullWidthSlider",{label:"Volle-Breite-Slider",id:"fullWidthSlider",category:{id:"admin-elemente",label:"Admin Elemente"},attributes:{"data-os-group":"Landingpage Elemente","data-os-page-type":"cue"},content:` 3073 <div 3074 data-gjs-type="full-width-slider" 3075 data-component-name="Landingpage Elemente - Content - Volle-Breite-Slider" 3076 class="full-width-slider-wrapper w-full mx-auto my-5 overflow-hidden"> 3077 <div class="swiper" data-swiper='{"slidesPerView": 1, "spaceBetween": 0, "navigation": {"nextEl": ".swiper-button-next", "prevEl": ".swiper-button-prev"}}'> 3078 <div class="swiper-wrapper"> 3079 ${Array(3).fill(0).map((t,e)=>` 3080 <div class="swiper-slide h-auto" data-gjs-removable="false"> 3081 <div class="relative w-full aspect-[2/1]"> 3082 <picture class="block w-full md:absolute"> 3083 <source media="(max-width: 639px)" srcset="https://placehold.co/640x320?text=Mobile_640x320px"> 3084 <source media="(min-width: 640px)" srcset="https://placehold.co/960x480?text=Desktop_960x480px"> 3085 <img src="https://placehold.co/960x540?text=Desktop_960x480px" alt="Image ${e+1}" class="aspect-[2/1] skeleton"> 3086 </picture> 3087 3088 <div class="relative text-center block shadow-sm border border-slate-200 bg-white p-5 pt-6 transition-shadow duration-300 dark:border-dark-border dark:bg-dark-surface w-[90%] mx-auto mt-[-10%] mb-3 md:mx-0 md:mb-0 md:max-w-[294px] md:float-left md:left-0 md:top-0 md:mt-8 md:ml-8"> 3089 <div class="ribbon ribbon-top-right z-10 before:border-brand-primary-700 after:border-brand-primary-700"><span class="bg-brand-primary-500">Beliebt</span></div> 3090 <div class=""> 3091 <strong class="outline-none text-title5 block mb-2">X Monate</strong> 3092 <picture class="block w-full mb-2"> 3093 <source media="(max-width: 639px)" srcset="https://placehold.co/640x360?text=Mobile_640x360px"> 3094 <source media="(min-width: 640px)" srcset="https://placehold.co/960x540?text=Desktop_960x540px"> 3095 <img src="https://placehold.co/960x540?text=Desktop_960x540px" alt="Product Image" class="aspect-[16/9] skeleton"> 3096 </picture> 3097 <strong class="text-title3 md:text-title2 block"><span class="text-xs mr-2">
3097nur</span>99,99 â¬<span class="text-xs ml-2">/ Monat*</span></strong> 3098 <p class="text-body2 mt-2 mb-2 block">In dui magna, posuere eget, vestibulum et, tempor auctor, justo. Pellentesque ut neque.</p> 3099 <a href="#" class="no-underline font-medium rounded border-2 px-6 mt-4 text-center uppercase transition text-sm leading-[41px] block w-full border-brand-primary-500 hover:border-brand-primary-700 focus:border-brand-primary-700 active:border-brand-primary-300 bg-brand-primary-500 hover:bg-brand-primary-700 focus:bg-brand-primary-700 active:bg-brand-primary-300 text-brand-contrast hover:text-brand-contrast" 3100 data-track-v2-parentposition="Content" 3101 data-track-v2-parent="Landingpage Elemente - Content - Volle-Breite-Slider" 3102 data-track-v2-parentlabel="OS - Vertrieb" 3103 data-track-v2-elementposition="${e+1}" 3104 data-track-v2-elementtype="Button"> 3105 <span>Button</span> 3106 </a> 3107 <a href="#" class="no-underline font-medium inline-block overflow-hidden text-ellipsis whitespace-nowrap rounded border-2 px-6 text-center uppercase transition hover:shadow-sm focus:shadow-sm active:shadow-sm disabled:border-gray-100 disabled:bg-gray-100 disabled:text-copy-primary disabled:shadow-none text-sm w-full mt-2 leading-[41px] border-brand-primary-500 hover:border-brand-primary-700 focus:border-brand-primary-700 active:border-brand-primary-300 text-brand-primary-500 hover:text-brand-primary-700" 3108 data-track-v2-parentposition="Content" 3109 data-track-v2-parent="Landingpage Elemente - Content - Volle-Breite-Slider" 3110 data-track-v2-parentlabel="OS - Vertrieb" 3111 data-track-v2-elementposition="${e+1}" 3112 data-track-v2-elementtype="Button"> 3113 <span>Button</span> 3114 </a> 3115 </div> 3116 </div> 3117 </div> 3118 </div>`).join("")} 3119 </div> 3120 <div class="swiper-button-prev"></div> 3121 <div class="swiper-button-next"></div> 3122 </div> 3123 <p class="text-xs text-center w-[90%] md:w-full mx-auto mt-10 px-2">*Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus facilisis, quam et facilisis interdum, sapien lacus sollicitudin quam, vel tincidunt urna arcu vel orci.</p> 3124 </div> 3125 `,media:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><rect width="340" height="180.5" x="30" y="109.8" fill="#d3d3d3" rx="8.7" ry="8.7"/><circle cx="310.8" cy="149.7" r="13.9" fill="#b2b2b2"/><path fill="#b2b2b2" fill-rule="evenodd" d="M380 251.5v30c0 4.8-3.9 8.7-8.7 8.7H28.7c-4.8 0-8.7-3.9-8.7-8.7V251.5l94.3-66.4c11.6-8.1 30.2-8.1 41.8 0l101.8 71.6c.2.2.5.4.7.5 6 3.9 15.3 3.7 21-.5s5.2-10.8-.7-14.7l-19.1-13.5 17.3-12.2c11.6-8.1 30.2-8.1 41.8 0l50.4 35.3Z"/><rect width="138" height="11.2" x="131" y="194.4" fill="#efefef" rx="4.3" ry="4.3"/></svg>'})}const Qe={wrapper:"os-table",container:"os-table-container",card:"os-table-card",header:"os-table-header",headText:"os-table-headtext",heading:"os-table-heading",subheading:"os-table-subheading",scroll:"os-table-scroll",grid:"os-table-grid",rowHeadColumn:"os-table-rowhead",rowHeadCorner:"os-table-corner",rowHeadCell:"os-table-rowheadcell",column:"os-table-column",columnHead:"os-table-columnhead",cell:"os-table-cell",colFooter:"os-table-colfooter",colFooterLink:"os-table-colfooter-link",footnote:"os-table-footnote",toggleWrap:"os-table-togglewrap",toggle:"os-table-toggle"},w2="os-table",K3="Landingpage Elemente - Content - Tabelle",vN="50",mN="1.0.0",Sg={columns:3,rows:6,showColumnFooter:!0},Tg=0,pc=4,mu=2,qa=20,G3="max-w-[960px]",yN="max-w-[1280px]",ya={draggable:!1,droppable:!1,copyable:!1,removable:!1,layerable:!1,selectable:!1,hoverable:!1}
3125,Po={editable:!0,droppable:!1,draggable:!1,copyable:!1,removable:!1,layerable:!1,selectable:!0,hoverable:!0},bN="os-table__btn-secondary inline-flex items-center justify-center w-full sm:w-auto px-[22px] py-[10px] text-base font-bold no-underline rounded-full border-2 border-brand-primary-500 text-brand-primary-500 hover:bg-brand-primary-50 focus:bg-brand-primary-50 active:bg-brand-primary-100 dark:hover:bg-neutral-800 dark:focus:bg-neutral-800 dark:active:bg-neutral-700 transition-all duration-200 min-h-[44px] active:scale-95",xN="os-table__colfooter-btn inline-flex items-center justify-center w-full px-[14px] py-[6px] text-sm font-bold text-brand-contrast bg-brand-primary-500 hover:bg-brand-primary-700 focus:bg-brand-primary-700 active:bg-brand-primary-300 rounded-full shadow-md transition-all duration-200 min-h-[40px] active:scale-95 no-underline",wN={"data-track-v2-parent":K3,"data-track-v2-parentposition":"Content","data-track-v2-parentlabel":"OS - Inhalt","data-track-v2-elementtype":"Button","data-track-v2-vendor":"Internal","data-track-v2-linktype":"External","data-track-v2-linkgenre":"","data-track-v2-link":""},_N=(a,r)=>Object.entries({...wN,"data-track-v2-elementposition":a,"data-track-v2-clickaction":r}).map(([t,e])=>`${t}="${e}"`).join(" "),CN='<div class="os-table__headicon w-12 h-12 rounded-xl flex items-center justify-center border text-white bg-brand-primary-500 border-brand-primary-100"><iconify-icon class="text-3xl" icon="material-symbols:table-chart-outline-rounded" aria-hidden="true"></iconify-icon></div>',kN='<iconify-icon class="os-table__icon text-xl text-brand-primary-500" icon="material-symbols:check-circle-outline-rounded" aria-hidden="true"></iconify-icon>',SN='<iconify-icon class="os-table__icon text-xl text-slate-400 dark:text-dark-muted" icon="material-symbols:cancel-outline-rounded" aria-hidden="true"></iconify-icon>',TN='<iconify-icon class="os-table__toggle-icon text-lg" icon="material-symbols:expand-more-rounded" aria-hidden="true"></iconify-icon>',ON='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><rect x="20" y="60" width="90" height="280" rx="8" fill="#e5e7eb"/><rect x="120" y="60" width="85" height="280" rx="8" fill="#f3f4f6"/><rect x="215" y="60" width="85" height="280" rx="8" fill="#9ca3af"/><rect x="310" y="60" width="70" height="280" rx="8" fill="#f3f4f6"/><rect x="20" y="60" width="360" height="46" rx="8" fill="#6b7280"/><rect x="36" y="140" width="58" height="10" rx="5" fill="#9ca3af"/><rect x="36" y="190" width="58" height="10" rx="5" fill="#9ca3af"/><rect x="36" y="240" width="58" height="10" rx="5" fill="#9ca3af"/><rect x="36" y="290" width="58" height="10" rx="5" fill="#9ca3af"/><circle cx="162" cy="145" r="9" fill="#9ca3af"/><circle cx="257" cy="145" r="9" fill="#ffffff"/><circle cx="345" cy="145" r="9" fill="#9ca3af"/><circle cx="162" cy="195" r="9" fill="#d1d5db"/><circle cx="257" cy="195" r="9" fill="#ffffff"/><circle cx="345" cy="195" r="9" fill="#d1d5db"/><circle cx="162" cy="245" r="9" fill="#9ca3af"/><circle cx="257" cy="245" r="9" fill="#ffffff"/><circle cx="345" cy="245" r="9" fill="#d1d5db"/><circle cx="162" cy="295" r="9" fill="#d1d5db"/><circle cx="257" cy="295" r="9" fill="#ffffff"/><circle cx="345" cy="295" r="9" fill="#9ca3af"/></svg>',Lo=(a,r,t)=>Math.min(t,Math.max(r,Number.isFinite(a)?a:r)),Bs=(a,r)=>{const t=typeof a=="number"?a:parseInt(String(a??""),10);return Number.isFinite(t)?t:r},_2=a=>[...a.components().models],EN="Alle Details auf einen Blick",AN="Sie möchten es ganz genau wissen? Der groÃe Detailvergleich zeigt Ihnen alle Unterschiede auf einen Blick.",MN="Ãbersicht",PN="Alle Eigenschaften im direkten Vergleich.",LN="Eigenschaft",Y3=["Auf einen Blick","Bildschirm & GröÃe","Bildschärfe","Arbeitstempo (Leistung)","Speicherplatz","Batterie (Akkulaufzeit)","Anschlüsse","Gewicht","Garantie","Lieferumfang"],X3="Neue Zeile",J3=["Produkt A","Produkt B","Produkt C","Produkt D"],Q3="Neue Spalte",$v="Wert eintragen",DN="*Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",IN="Weitere Details einblenden",tw=(a,r,t)=>
3125{const e=Array.from({length:r},(n,i)=>{const o=t>0&&i>=t;return`<div class="os-table__cell" data-row="${i}" data-value="text"${o?' data-row-extra="1"':""}>${$v}</div>`}).join("");return` 3126 <div class="os-table__column"> 3127 <div class="os-table__columnhead">${J3[a]||Q3}</div> 3128 ${e} 3129 ${jN(a)} 3130 </div>`},jN=a=>` 3131 <div class="os-table__colfooter"> 3132 <a href="#" target="_self" class="${xN}" ${_N(String(a+1),"select_content")}><span class="relative z-10">Auswählen</span></a> 3133 </div>`,NN=a=>{const r=a.columns>0&&a.showColumnFooter,t=0,n=a.rows+1+(r?1:0),i=["","",""," os-table--nocollapse"].join(""),o=Array.from({length:a.rows},(c,d)=>`<div class="os-table__rowheadcell" data-row="${d}">${Y3[d]||X3}</div>`).join(""),s=Array.from({length:a.columns},(c,d)=>tw(d,a.rows,t)).join("");return` 3134<section class="os-table${i} relative w-screen left-1/2 -translate-x-1/2 overflow-hidden py-12 sm:py-16 lg:py-20 animate-fade-in" data-component-name="${K3}" data-component-id="${vN}" data-component-version="${mN}"> 3135 <div class="os-table__container mx-auto px-4 sm:px-6 ${G3}"> 3136 <div class="text-center max-w-3xl mx-auto mb-10 sm:mb-12 reveal"> 3137 <h2 class="font-serif text-3xl sm:text-4xl md:text-5xl font-bold text-slate-900 dark:text-white mb-4">${EN}</h2> 3138 <p class="text-slate-600 dark:text-dark-muted text-base sm:text-lg max-w-[65ch] mx-auto">${AN}</p> 3139 </div> 3140 <div class="os-table__card"> 3141 <div class="os-table__header"> 3142 ${CN} 3143 <div class="os-table__headtext"> 3144 <h3 class="os-table__heading">${MN}</h3> 3145 <p class="os-table__subheading">${PN}</p> 3146 </div> 3147 </div> 3148 <div class="os-table__scroll"> 3149 <div class="os-table__grid" data-cols="${a.columns}" data-tracks="${n}" data-collapse-from="${t}" data-rows-total="${a.rows}" data-has-footer-row="${r?"1":"0"}"> 3150 <div class="os-table__rowhead"> 3151 <div class="os-table__corner">${LN}</div> 3152 ${o} 3153 </div> 3154 ${s} 3155 </div> 3156 </div> 3157 <div class="os-table__togglewrap flex justify-center py-4"> 3158 <button type="button" class="os-table__toggle ${bN} gap-2" aria-expanded="false"> 3159 <span class="os-table__toggle-label">${IN}</span> 3160 ${TN} 3161 </button> 3162 </div> 3163 </div> 3164 <p class="os-table__footnote text-xs text-slate-500 dark:text-dark-muted text-center mt-4">${DN}</p> 3165 </div> 3166</section>`},RN=function(){const a=this.querySelector(".os-table__grid");if(a&&a.getAttribute("data-hover-bound")!=="1"){a.setAttribute("data-hover-bound","1");const t=function(){a.removeAttribute("data-hover-row")};a.addEventListener("pointerover",function(e){const n=e.target,i=n&&n.closest?n.closest("[data-row]"):null;i?a.setAttribute("data-hover-row",i.getAttribute("data-row")||""):t()}),a.addEventListener("pointerleave",t),a.addEventListener("touchend",t)}const r=this.querySelector(".os-table__toggle");if(a&&r&&r.getAttribute("data-toggle-bound")!=="1"){r.setAttribute("data-toggle-bound","1");const t=r.querySelector(".os-table__toggle-label");r.addEventListener("click",()=>{const e=this.classList.toggle("os-table--detailsopen");r.setAttribute("aria-expanded",String(e)),t&&(t.textContent=e?"Weitere Details ausblenden":"Weitere Details einblenden");const n=parseInt(a.getAttribute("data-collapse-from")||"0",10),i=parseInt(a.getAttribute("data-rows-total")||"0",10),o=a.getAttribute("data-has-footer-row")==="1",s=e?i:n;a.setAttribute("data-tracks",String(s+1+(o?1:0)))})}},BN=a=>{const r=a.DomComponents,t=a.UndoManager,e=(m,y)=>{var x;return((x=m.classList)==null?void 0:x.contains(y))||!1};let n=0;const i=new Map,o=(m,y)=>{n++,n===1&&t.stop(),y&&i.set(y,(i.get(y)||0)+1);try{m()}finally{if(y){const x=(i.get(y)||1)-1;x>0?i.set(y,x):i.delete(y)}n--,n===0&&t.start()}},s=m=>m?i.has(m):n>0;r.addType(Qe.heading,{extend:"text",isComponent:m=>e(m,"os-table__heading"),model:{defaults:{name:"Ãberschrift",...Po}}}),r.addType(Qe.subheading,{extend:"text",isComponent:m=>e(m,"os-table__subheading"),model:{defaults:{name:"Untertitel",...Po}}}),r.addType(Qe.footnote,{extend:"text",isComponent:m=>e(m,"os-table__footnote"),model:{defaults:{name:"Sternchentext",...Po}}}),r.addType(Qe.rowHeadCorner,{extend:"text",isComponent:m=>e(m,"os-table__corner"),model:{defaults:{name:"Spaltentitel",...Po}}}),r.addType(Qe.columnHead,{extend:"text",isComponent:m=>e(m,"os-table__columnhead"),model:{defaults:{name:"Spaltentitel",...Po}}}),r.addType(Qe.rowHeadCell,{extend:"text",isComponent:m=>e(m,"os-table__rowheadcell"),model:{defaults:{name:"Zeilentitel",...Po}}}),r.addType(Qe.cell,{extend:"text",isComponent:m=>e(m,"os-table__cell"),model:{defaults:{name:"Wert",...Po,attributes:{"data-value":"text"},traits:[{type:"select",name:"data-value",label:"Inhalt",options:[{id:"text",name:"Freitext"},{id:"yes",name:"Haken"},{id:"no",name:"Kreuz"}]}]},init(){this.on("change:attributes:data-value",this.renderValue),this.set("editable",this.getAttributes()["data-value"]==="text")},renderValue(){var y;const m=this.getAttributes()["data-value"];this.set("editable",m==="text"),m==="yes"?this.components(kN):m==="no"?this.components(SN):(!this.components().length||((y=this.components().at(0))==null?void 0:y.get("type"))!=="textnode")&&this.components($v)}}}),r.addType(Qe.container,{isComponent:m=>e(m,"os-table__container"),model:{defaults:{name:"Inhaltsbreite",tagName:"div",...ya,wide_content:!1},init(){this.on("change:wide_content",this.applyContentWidth),this.applyContentWidth()},applyContentWidth(){const m=!!this.get("wide_content"),y=this.getAttributes(),x=String(y.class||"").split(" ").filter(w=>w&&!w.startsWith("max-w-"));x.push(m?yN:G3),this.setAttributes({...y,class:x.join(" ")})}}}),r.addType(Qe.card,{isComponent:m=>
3166e(m,"os-table__card"),model:{defaults:{name:"Karte",...ya}}}),r.addType(Qe.scroll,{isComponent:m=>e(m,"os-table__scroll"),model:{defaults:{name:"Scrollbereich",...ya}}}),r.addType(Qe.header,{isComponent:m=>e(m,"os-table__header"),model:{defaults:{name:"Kopfbereich",...ya}}}),r.addType(Qe.headText,{isComponent:m=>e(m,"os-table__headtext"),model:{defaults:{name:"Kopftexte",...ya}}}),r.addType(Qe.colFooter,{isComponent:m=>e(m,"os-table__colfooter"),model:{defaults:{name:"Spalten-CTA",...ya}}}),r.addType(Qe.colFooterLink,{extend:"link",isComponent:m=>e(m,"os-table__colfooter-btn"),model:{defaults:{name:"Button"}}}),r.addType(Qe.rowHeadColumn,{isComponent:m=>e(m,"os-table__rowhead"),model:{defaults:{name:"Vorspalte",...ya,selectable:!0,hoverable:!0}}}),r.addType(Qe.column,{isComponent:m=>e(m,"os-table__column"),model:{defaults:{name:"Spalte",droppable:!1,draggable:".os-table__grid",copyable:!0,removable:!0}}}),r.addType(Qe.grid,{isComponent:m=>e(m,"os-table__grid"),model:{defaults:{name:"Raster",droppable:".os-table__column",draggable:!1,copyable:!1,removable:!1,selectable:!1,hoverable:!1}}}),r.addType(Qe.toggleWrap,{isComponent:m=>e(m,"os-table__togglewrap"),model:{defaults:{name:"Umschalter-Bereich",...ya}}}),r.addType(Qe.toggle,{isComponent:m=>e(m,"os-table__toggle"),model:{defaults:{name:"Umschalter",...ya}}}),r.addType(Qe.wrapper,{isComponent:m=>e(m,"os-table"),model:{defaults:{name:"Tabelle",droppable:!1,script:RN,traits:[{type:"number",name:"columnCount",label:"Spalten (0â4)",min:Tg,max:pc,step:1,changeProp:!0},{type:"number",name:"rowCount",label:`Zeilen (${mu}â${qa})`,min:mu,max:qa,step:1,changeProp:!0},{type:"number",name:"collapseFromRow",label:"Details einklappen ab Zeile (0 = aus)",min:0,max:qa-1,step:1,changeProp:!0},{type:"checkbox",name:"showHeader",label:"Kopfbereich zeigen",changeProp:!0},{type:"checkbox",name:"showRowHead",label:"Vorspalte zeigen",changeProp:!0},{type:"checkbox",name:"showColumnFooter",label:"Footer-Buttons zeigen",changeProp:!0}]},isSelfUpdating:!1,init(){const m=this.getAttributes(),y=String(m.class||"").split(/\s+/).filter(Boolean);y.includes("animate-fade-in")||this.setAttributes({...m,class:[...y,"animate-fade-in"].join(" ")}),this.on("change:columnCount",this.syncColumns),this.on("change:rowCount",this.syncRows),this.on("change:collapseFromRow",this.applyCollapseState),this.on("change:showHeader",this.applyHeaderVisibility),this.on("change:showRowHead",this.applyRowHeadVisibility),this.on("change:showColumnFooter",this.applyColumnFooterVisibility),setTimeout(()=>{this.components().length&&this.readFromDom()},0)},findGrid(){return this.findType(Qe.grid)[0]},findColumns(){const m=this.findGrid();return m?_2(m).filter(y=>y.get("type")===Qe.column):[]},findRowHeadColumn(){return this.findType(Qe.rowHeadColumn)[0]},findRowCells(m){return _2(m).filter(y=>{const x=y.get("type");return x===Qe.cell||x===Qe.rowHeadCell})},findRowSourceColumn(){return this.findRowHeadColumn()||this.findColumns()[0]},countRows(){const m=this.findRowSourceColumn();return m?this.findRowCells(m).length:0},readFromDom(){if(!this.findGrid())return;const y=this.findColumns(),x=this.getClasses(),w=this.findRowSourceColumn(),k=w?this.findRowCells(w).find(A=>A.getAttributes()["data-row-extra"]==="1"):void 0,S=k?Bs(k.getAttributes()["data-row"],0):0;this.isSelfUpdating=!0,o(()=>{this.set({columnCount:y.length,rowCount:this.countRows(),collapseFromRow:S,showHeader:!x.includes("os-table--noheader"),showRowHead:!x.includes("os-table--norowhead"),showColumnFooter:!x.includes("os-table--nocolfooter")}),this.applyGridSize()},this),this.isSelfUpdating=!1},renumberRows(){[this.findRowHeadColumn(),...this.findColumns()].forEach(y=>
3166{y&&this.findRowCells(y).forEach((x,w)=>{x.getAttributes()["data-row"]!==String(w)&&x.addAttributes({"data-row":String(w)})})})},applyGridSize(){const m=this.findGrid();if(!m)return;const y=this.findColumns().length>0&&this.get("showColumnFooter")!==!1,x=this.countRows(),w=Lo(Bs(this.get("collapseFromRow"),0),0,qa-1),k=w>0&&w<x,A=Lo((k?w:x)+1,mu+1,qa+1);m.addAttributes({"data-cols":String(Lo(this.findColumns().length,Tg,pc)),"data-tracks":String(y?A+1:A),"data-collapse-from":String(k?w:0),"data-rows-total":String(x),"data-has-footer-row":y?"1":"0"}),this.renumberRows()},syncColumns(){if(this.isSelfUpdating)return;const m=Bs(this.get("columnCount"),Sg.columns),y=Lo(m,Tg,pc);y!==m&&(this.isSelfUpdating=!0,this.set("columnCount",y),this.isSelfUpdating=!1);const x=this.findGrid();if(!x)return;const w=this.findColumns(),k=this.countRows(),S=Lo(Bs(this.get("collapseFromRow"),0),0,qa-1);o(()=>{var A,L;if(y>w.length){const D=w[w.length-1];for(let W=w.length;W<y;W++)if(D){const j=D.clone();(A=j.findType(Qe.columnHead)[0])==null||A.components(J3[W]||Q3),(L=j.findType(Qe.colFooterLink)[0])==null||L.addAttributes({"data-track-v2-elementposition":String(W+1)}),x.append(j)}else x.append(tw(W,k,S))}else for(let D=w.length;D>y;D--)w[D-1].remove();this.applyGridSize()},this)},syncRows(){if(this.isSelfUpdating)return;const m=Bs(this.get("rowCount"),Sg.rows),y=Lo(m,mu,qa);y!==m&&(this.isSelfUpdating=!0,this.set("rowCount",y),this.isSelfUpdating=!1);const x=this.findRowHeadColumn(),w=[x,...this.findColumns()].filter(k=>!!k);w.length&&o(()=>{w.forEach(k=>{const S=this.findRowCells(k);if(S.length)if(y>S.length){const A=S[S.length-1];let L=A.index()+1;for(let D=S.length;D<y;D++){const W=A.clone();k.components().add(W,{at:L}),L++,k===x?W.components(Y3[D]||X3):(W.addAttributes({"data-value":"text"}),W.components($v))}}else for(let A=S.length;A>y;A--)S[A-1].remove()}),this.applyGridSize()},this)},applyCollapseState(){if(this.isSelfUpdating)return;const m=this.countRows(),y=Bs(this.get("collapseFromRow"),0),x=Lo(y,0,qa-1);x!==y&&(this.isSelfUpdating=!0,this.set("collapseFromRow",x),this.isSelfUpdating=!1);const w=x>0&&x<m,S=[this.findRowHeadColumn(),...this.findColumns()].filter(A=>!!A);o(()=>{S.forEach(A=>{this.findRowCells(A).forEach((L,D)=>{w&&D>=x?L.addAttributes({"data-row-extra":"1"}):L.removeAttributes("data-row-extra")})}),this.toggleOwnClass("os-table--nocollapse",!w),this.removeClass("os-table--detailsopen"),this.applyGridSize()},this)},applyHeaderVisibility(){this.isSelfUpdating||this.toggleOwnClass("os-table--noheader",this.get("showHeader")===!1)},applyRowHeadVisibility(){this.isSelfUpdating||this.toggleOwnClass("os-table--norowhead",this.get("showRowHead")===!1)},applyColumnFooterVisibility(){this.isSelfUpdating||(this.toggleOwnClass("os-table--nocolfooter",this.get("showColumnFooter")===!1),this.applyGridSize())},toggleOwnClass(m,y){o(()=>{y?this.addClass(m):this.removeClass(m)},this)}}});const c=m=>{let y=m;const x=new Set;for(;y&&y.get("type")!==Qe.wrapper&&!x.has(y);)x.add(y),y=y.parent();return(y==null?void 0:y.get("type"))===Qe.wrapper?y:void 0},d=new Map,f=30,g=m=>{if(m.get("type")!==Qe.column)return;const y=c(m);!y||s(y)||(window.clearTimeout(d.get(y)),d.set(y,window.setTimeout(()=>{d.delete(y);const x=y.findColumns();x.length>pc&&(o(()=>x[x.length-1].remove(),y),a.log(`Maximal ${pc} Spalten.`,{level:"warning",ns:"os-table"})),y.readFromDom()},f)))};a.on("component:add",g),a.on("component:remove",g),a.on("load",()=>{var m;(m=a.getWrapper())==null||m.findType(Qe.wrapper).forEach(y=>y.readFromDom())}),a.BlockManager.add(w2,{id:w2,label:"Tabelle",category:{id:"content",label:"Content"},attributes:{"data-os-group":"Landingpage Elemente","data-os-page-type":"both"},media:ON,content:NN(Sg)})};function VN(a){const{DomComponents:r,BlockManager:t}=a,e="41",n="2.1.1",i="Landingpage Elemente - Teaserbox - Mit Bild",o={"data-gjs-type":"os-teaserbox-grid","data-component-id":e,"data-component-version":n,"data-component-name":i},c={"data-os-teaserbox":"card",class:"group relative flex min-h-[296px] w-full flex-col justify-end overflow-hidden rounded-2xl p-2 text-white !no-underline hover:!no-underline focus:!no-underline animate-slide-up",href:"#",target:"_self","data-track-v2-parentposition":"Content","data-track-v2-parent":i,"data-track-v2-parentlabel":"OS - Inhalt","data-track-v2-elementtype":"Link","data-track-v2-vendor":"Internal","data-track-v2-link":"","data-track-v2-linktype":"External","data-track-v2-linkgenre":"","data-track-v2-clickaction":""}
3166,d="os-badge mb-2 w-fit rounded px-3 py-1 text-xs font-bold uppercase tracking-wider",f="bg-brand-primary-500 text-brand-contrast",g="bg-white border border-brand-primary-500 text-brand-primary-500",m="https://placehold.co/768x384?text=768x384px",y="https://placehold.co/1920x960?text=1920x960px",x="https://placehold.co/1920x960?text=1920x960px",w="(min-width: 1280px) 604px, (min-width: 768px) 444px, 100vw",k=A=>{if(typeof A.closest!="function")return!1;try{return!!A.closest(`a[data-track-v2-parent="${i}"]`)}catch{return!1}};r.addType("os-teaserbox-container",{isComponent:A=>!A||typeof A.getAttribute!="function"?!1:A.getAttribute("data-os-teaserbox-image-container")==="wrap"?{type:"os-teaserbox-container"}:!1,model:{defaults:{tagName:"div",droppable:!0,draggable:!1,copyable:!1,removable:!1,wide_content:!1,attributes:{"data-os-teaserbox-image-container":"wrap",class:"mx-auto max-w-[960px] px-4 sm:px-6"}},init(){this.on("change:wide_content",this.handleWideContentChange),this.handleWideContentChange()},handleWideContentChange(){const A=this.get("wide_content")===!0,L=this.getAttributes(),D=String(L.class||"").split(" ").filter(W=>W&&!W.startsWith("max-w-"));D.push(A?"max-w-[1280px]":"max-w-[960px]"),this.setAttributes({...L,class:D.join(" ")})}}}),r.addType("os-teaserbox-grid",{isComponent:A=>{if(!A||A.tagName!=="DIV")return!1;const L=A.getAttribute("data-gjs-type")==="os-teaserbox-grid",D=A.getAttribute("data-component-id")===e&&A.getAttribute("data-component-name")===i,W=A.classList.contains("grid")&&!!A.querySelector('[data-gjs-type="os-teaserbox"]');return L||D||W?{type:"os-teaserbox-grid"}:!1},model:{defaults:{tagName:"div",droppable:!0,attributes:{...o,class:"relative left-1/2 w-screen -translate-x-1/2 overflow-hidden py-12 sm:py-16 lg:py-20"}}}}),r.addType("os-teaserbox-card",{isComponent:A=>{if(!A||A.tagName!=="A"||typeof A.getAttribute!="function")return!1;const L=A.getAttribute("data-os-teaserbox")==="card",D=A.getAttribute("data-track-v2-parent")===i;return L||D?{type:"os-teaserbox-card"}:!1},model:{defaults:{tagName:"a",name:"Teaserbox-Karte",editable:!1,droppable:!1,draggable:!0,copyable:!0,removable:!0,selectable:!0,attributes:{...c},traits:[{type:"text",label:"Ziel-URL",name:"href",placeholder:"https://â¦"},{type:"select",label:"Ziel",name:"target",options:[{value:"_self",name:"Gleiches Fenster"},{value:"_blank",name:"Neues Fenster"}]},{type:"text",label:"Title-Attribut",name:"title"}]},init(){const A=this.getAttributes(),L=String(A.class||"").split(/\s+/).filter(Boolean);L.includes("animate-slide-up")||this.setAttributes({...A,class:[...L,"animate-slide-up"].join(" ")})}}}),r.addType("os-teaserbox-body",{isComponent:A=>{if(!A||A.tagName!=="DIV"||typeof A.getAttribute!="function")return!1;const L=A.getAttribute("data-os-teaserbox")==="body",D=A.classList.contains("p-8")&&A.classList.contains("z-10")&&k(A);return L||D?{type:"os-teaserbox-body"}:!1},model:{defaults:{tagName:"div",name:"Textbereich",editable:!1,droppable:!1,draggable:!1,copyable:!1,removable:!1,selectable:!1,attributes:{"data-os-teaserbox":"body",class:"relative z-10 p-8"}}}}),r.addType("os-teaserbox-image",{isComponent:A=>!A||A.tagName!=="PICTURE"||typeof A.getAttribute!="function"?!1:A.getAttribute("data-os-teaserbox")==="image"||k(A)?{type:"os-teaserbox-image"}:!1,model:{defaults:{tagName:"picture",name:"Teaserbox-Bild",editable:!1,droppable:!1,draggable:!1,copyable:!1,removable:!1,selectable:!0,attributes:{"data-os-teaserbox":"image",class:"absolute inset-2 z-0 block overflow-hidden rounded-[0.625rem] shadow-sm transition-shadow duration-300 group-hover:shadow-md"}}}});const S=A=>({type:"os-teaserbox-card",attributes:{...c,"data-track-v2-elementposition":String(A.elementPosition)},components:[{type:"os-teaserbox-body",components:[{type:"text",tagName:"div",droppable:!1,draggable:!1,attributes:{class:`${d} ${A.badgeVariantClass}`},content:A.badgeLabel},{type:"text",tagName:"h3",droppable:!1,draggable:!1,attributes:{class:"mb-3 text-white text-2xl font-bold leading-tight"},content:A.headline},{type:"text",tagName:"div",droppable:!1,draggable:!1,attributes:{class:"mt-2 text-sm font-semibold text-white"},content:A.ctaLabel}]},{type:"os-teaserbox-image",components:[{tagName:"source",selectable:!1,hoverable:!1,draggable:!1,
3166copyable:!1,removable:!1,attributes:{media:"(max-width: 767px)",srcset:`${m} 768w`,sizes:"100vw"}},{tagName:"source",selectable:!1,hoverable:!1,draggable:!1,copyable:!1,removable:!1,attributes:{media:"(min-width: 768px)",srcset:`${m} 768w, ${y} 1920w`,sizes:w}},{type:"image",selectable:!1,hoverable:!1,highlightable:!1,draggable:!1,copyable:!1,removable:!1,attributes:{src:x,alt:"",class:"h-full w-full object-cover object-center transition-transform duration-700 ease-in-out group-hover:scale-105"}}]},{tagName:"div",editable:!1,droppable:!1,draggable:!1,copyable:!1,removable:!1,selectable:!1,hoverable:!1,attributes:{class:"pointer-events-none absolute inset-2 z-[1] rounded-[0.625rem] bg-gradient-to-t from-slate-900/80 to-transparent"}}]});t.add("teaserbox-grid",{label:"Teaserbox mit Bild",category:"Content",attributes:{"data-os-group":"Landingpage Elemente","data-os-page-type":"aboshop"},media:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><g><rect x="60" y="80" width="120" height="200" rx="12" style="fill:#D3D3D3;"/><circle cx="120" cy="130" r="25" style="fill:#B2B2B2;"/><rect x="85" y="180" width="70" height="12" style="fill:#888888;"/><rect x="85" y="210" width="50" height="12" style="fill:#888888;"/><rect x="220" y="80" width="120" height="200" rx="12" style="fill:#D3D3D3;"/><circle cx="280" cy="130" r="25" style="fill:#B2B2B2;"/><rect x="245" y="180" width="70" height="12" style="fill:#888888;"/><rect x="245" y="210" width="50" height="12" style="fill:#888888;"/></g></svg>',content:{type:"os-teaserbox-grid",tagName:"div",attributes:{...o,class:"relative left-1/2 w-screen -translate-x-1/2 overflow-hidden py-12 sm:py-16 lg:py-20"},components:[{type:"os-teaserbox-container",attributes:{"data-os-teaserbox-image-container":"wrap"},components:[{tagName:"div",attributes:{class:"mx-auto mb-10 max-w-3xl text-center sm:mb-16 animate-fade-in"},components:[{type:"text",tagName:"h2",droppable:!1,attributes:{class:"mb-4 text-3xl font-bold md:text-4xl"},content:"Ãberschrift H2"},{type:"text",tagName:"p",droppable:!1,attributes:{class:"mx-auto max-w-[65ch]"},content:"Subline"}]},{tagName:"div",attributes:{class:"grid w-full grid-cols-1 gap-6 md:grid-cols-2"},components:[S({elementPosition:1,badgeLabel:"50% Rabatt",badgeVariantClass:f,headline:"Studenten-Special",ctaLabel:"Jetzt sparen →"}),S({elementPosition:2,badgeLabel:"Geschenkidee",badgeVariantClass:g,headline:"Abo verschenken",ctaLabel:"Mehr erfahren →"})]}]}]}})}function HN(a){const{DomComponents:r,BlockManager:t}=a,e="44",n="1.2.0",i="Landingpage Elemente - Content - Teaserboxen mit Icon",o={"data-gjs-type":"os-teaserbox-2","data-component-id":e,"data-component-version":n,"data-component-name":i},s={"data-gjs-type":"os-benefit-box"},c="text-white border",d={primary:{box:"bg-brand-primary-50 border-brand-primary-100 hover:border-brand-primary-500",iconWrapper:`bg-brand-primary-500 border-brand-primary-100 ${c}`,btn:"bg-brand-primary-500 hover:bg-brand-primary-700 focus:bg-brand-primary-700 text-white shadow-brand-primary-700/30",bgIcon:"text-brand-primary-100"},secondary:{box:"bg-brand-secondary-25 border-brand-secondary-50 hover:border-brand-secondary-100",iconWrapper:`bg-brand-secondary-100 border-brand-secondary-50 ${c}`,btn:"bg-brand-secondary-100 hover:bg-brand-secondary-200 focus:bg-brand-secondary-200 text-white shadow-black/20",bgIcon:"text-brand-secondary-50"},neutral:{box:"bg-surface-200 border-stroke-100 hover:border-stroke-300",iconWrapper:`bg-surface-500 border-stroke-300 ${c}`,btn:"bg-surface-900 hover:bg-surface-800 focus:bg-surface-800 text-copy-negative shadow-black/20",bgIcon:"text-surface-400 opacity-60"}},f="primary",g={accent:"primary",success:"secondary"},m={box:"bg-orange-50 dark:bg-orange-950/30 border-orange-100 dark:border-orange-900/50 hover:border-orange-500 dark:hover:border-orange-500 bg-green-50 dark:bg-green-950/30 border-green-100 dark:border-green-900/50 hover:border-green-500 dark:hover:border-green-500 hover:border-brand-secondary-300 dark:bg-brand-secondary-500 dark:border-brand-secondary-100 dark:hover:border-brand-secondary-300 hover:border-brand-secondary-500",iconWrapper:"bg-orange-100 dar
3166k:bg-orange-900/50 text-orange-600 dark:text-orange-400 bg-green-100 dark:bg-green-900/50 text-green-600 dark:text-green-400 bg-brand-primary-100 text-brand-primary-700 bg-brand-secondary-100 bg-brand-secondary-300 bg-surface-300 text-copy-primary border-stroke-300 border-brand-primary-100",btn:"bg-orange-600 dark:bg-orange-500 hover:bg-orange-700 dark:hover:bg-orange-600 shadow-orange-500/20 bg-green-600 dark:bg-green-500 hover:bg-green-700 dark:hover:bg-green-600 shadow-green-500/20 bg-brand-secondary-200 bg-brand-secondary-300 hover:bg-brand-secondary-100 hover:bg-brand-secondary-300 hover:bg-brand-secondary-400 focus:bg-brand-secondary-100 focus:bg-brand-secondary-300 focus:bg-brand-secondary-400",bgIcon:"text-orange-200/50 dark:text-orange-900/40 text-green-200/50 dark:text-green-900/40 text-brand-secondary-100 opacity-10"};r.addType("os-teaserbox-2-container",{isComponent:y=>!y||typeof y.getAttribute!="function"?!1:y.getAttribute("data-os-teaserbox-container")==="wrap"?{type:"os-teaserbox-2-container"}:!1,model:{defaults:{tagName:"div",droppable:!0,draggable:!1,copyable:!1,removable:!1,wide_content:!1,attributes:{"data-os-teaserbox-container":"wrap",class:"mx-auto px-4 sm:px-6 max-w-[960px]"}},init(){this.on("change:wide_content",this.handleWideContentChange),this.handleWideContentChange()},handleWideContentChange(){const y=!!this.get("wide_content"),x=this.getAttributes(),w=String(x.class||"").split(" ").filter(k=>k&&!k.startsWith("max-w-"));w.push(y?"max-w-[1280px]":"max-w-[960px]"),this.setAttributes({...x,class:w.join(" ")})}}}),r.addType("os-teaserbox-2",{isComponent:y=>{if(!y||y.tagName!=="DIV")return!1;const x=y.getAttribute("data-gjs-type"),w=x==="os-teaserbox-2"||x==="os-benefit-grid",k=y.getAttribute("data-component-id")===e&&y.getAttribute("data-component-name")===i,S=y.classList.contains("container")&&!!y.querySelector('[data-gjs-type="os-benefit-box"]');return w||k||S?{type:"os-teaserbox-2"}:!1},model:{defaults:{tagName:"div",droppable:!0,attributes:{...o,class:"relative w-screen left-1/2 -translate-x-1/2 overflow-hidden py-12 sm:py-16 lg:py-20"}}}}),r.addType("os-benefit-box",{isComponent:y=>{if(!y||y.tagName!=="DIV")return!1;const x=y.getAttribute("data-gjs-type")==="os-benefit-box",w=y.getAttribute("data-component-id")===e&&y.getAttribute("data-component-name")===i;return x||w?{type:"os-benefit-box"}:!1},model:{defaults:{tagName:"div",attributes:{...s,class:`relative overflow-hidden rounded-2xl p-8 md:p-12 border shadow-sm hover:shadow-md transition-all duration-300 group w-full animate-slide-up ${d[f].box}`},trackPosition:"1",boxTheme:f,traits:[{type:"select",name:"boxTheme",label:"Farb-Theme",options:[{id:"primary",name:"Markenfarbe (Primary)"},{id:"secondary",name:"Feature (Secondary)"},{id:"neutral",name:"Neutral (WeiÃ/Grau/Schwarz)"}],changeProp:!0}],components:[{tagName:"div",attributes:{class:"relative z-10"},components:[{tagName:"div",attributes:{class:`os-icon-wrapper w-12 h-12 rounded-xl flex items-center justify-center mb-6 transition-colors ${d[f].iconWrapper}`},components:[{type:"iconify-icon",tagName:"iconify-icon",attributes:{class:"os-icon-top text-3xl",icon:"material-symbols:redeem"},content:""}]},{type:"text",tagName:"h3",attributes:{class:"font-serif text-2xl font-bold text-copy-primary mb-3"},content:"Freunde werben & profitieren"},{type:"text",tagName:"p",attributes:{class:"text-copy-secondary mb-8 max-w-sm"},content:"Empfehlen Sie uns weiter und sichern Sie sich attraktive Prämien für jeden neuen Abonnenten."},{tagName:"div",attributes:{class:"flex flex-wrap gap-3"},components:[{type:"link",tagName:"a",attributes:{class:`os-btn inline-block px-6 py-3 font-bold rounded-full transition-colors shadow-md no-underline ${d[f].btn}`,href:"#","data-track-v2-parentposition":"Content","data-track-v2-parent":i,"data-track-v2-parentlabel":"OS - Inhalt","data-track-v2-elementposition":"1","data-track-v2-elementtype":"Button","data-track-v2-vendor":"Internal","data-track-v2-link":"","data-track-v2-linktype":"External","data-track-v2-linkgenre":"","data-track-v2-clickaction":""},components:[{type:"text",tagName:"span",content:"Jetzt empfehlen"}]},{type:"link",tagName:"a",attributes:{class:"os-btn-secondary inline-flex min-h-[44px] items-center justify-center rounded-full border-2 border-brand-primary-500 px-6 py-3 text-base font-bold no-underline transition-all duration-200 text-brand-primary-500 hover:border-brand-primary-700 hover:bg-brand-primary-50 hover:text-brand-primary-700 focus:bg-brand-primary-50 active:scale-95 active:bg-brand-primary-100",href:"#","data-track-v2-parentposition":"Content","data-track-v2-parent":i,"data-track-v2-parentlabel":"OS - Inhalt","data-track-v2-elementposition":"2","data-track-v2-elementtype":"Button","data-track-v2-vendor":"Internal","data-track-v2-link":"","data-track-v2-linktype":"External","data-track-v2-linkgenre":"","data-track-v2-clickaction":"learn_more"},components:[{type:"text",tagName:"span",content:"Mehr erfahren"}]}]}]},{type:"iconify-icon",tagName:"iconify-icon",attributes:{class:`os-icon-bg absolute -bottom-8 -right-8 w-[11rem] h-[11rem] text-[11rem] leading-none transition-transform duration-500 select-none group-hover:scale-110 ${d[f].bgIcon}`,icon:"material-symbols:group-add"},content:""}]},init(){this.on("change:boxTheme",this.updateTheme),this.on("change:trackPosition",this.updateTracking),setTimeout(()=>{this.updateTracking(),this.updateTheme()},0)},updateTracking(){const y=this.find(".os-btn")[0],x=this.find(".os-btn-secondary")[0],w=Number(this.get("trackPosition"));if(!y||!Number.isInteger(w)||w<1)return;if(!x){y.addAttributes({"data-track-v2-elementposition":String(w)});return}const k=(w-1)*2+1;y.addAttributes({"data-track-v2-elementposition":String(k)}),x.addAttributes({"data-track-v2-elementposition":String(k+1)})},updateTheme(){const y=String(this.get("boxTheme")||""),x=d[y]?y:g[y]??f;x!==y&&this.set("boxTheme",x,{silent:!0}),[{model:this,part:"box"},{model:this.find(".os-icon-wrapper")[0],part:"iconWrapper"},{model:this.find(".os-btn")[0],part:"btn"},{model:this.find(".os-icon-bg")[0],part:"bgIcon"}
3166].forEach(({model:k,part:S})=>{k&&(Object.values(d).forEach(A=>{k.removeClass(A[S].split(" "))}),k.removeClass(m[S].split(" ")),k.addClass(d[x][S].split(" ")))})}}}),t.add("teaserbox-2",{label:"Teaserboxen mit Icon",category:"Content",attributes:{"data-os-group":"Landingpage Elemente","data-os-page-type":"aboshop"},media:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><g><rect x="60" y="80" width="120" height="200" rx="12" style="fill:#D3D3D3;"/><circle cx="120" cy="130" r="25" style="fill:#B2B2B2;"/><rect x="85" y="180" width="70" height="12" style="fill:#888888;"/><rect x="85" y="210" width="50" height="12" style="fill:#888888;"/><rect x="220" y="80" width="120" height="200" rx="12" style="fill:#D3D3D3;"/><circle cx="280" cy="130" r="25" style="fill:#B2B2B2;"/><rect x="245" y="180" width="70" height="12" style="fill:#888888;"/><rect x="245" y="210" width="50" height="12" style="fill:#888888;"/></g></svg>',content:{type:"os-teaserbox-2",tagName:"div",attributes:{...o,class:"relative w-screen left-1/2 -translate-x-1/2 overflow-hidden py-12 sm:py-16 lg:py-20"},components:[{type:"os-teaserbox-2-container",attributes:{"data-os-teaserbox-container":"wrap"},components:[{tagName:"div",attributes:{class:"mx-auto mb-10 max-w-3xl text-center sm:mb-16 animate-fade-in"},components:[{type:"text",tagName:"h2",attributes:{class:"mb-4 text-3xl font-bold md:text-4xl"},content:"Ãberschrift H2"},{type:"text",tagName:"p",attributes:{class:"mx-auto max-w-[65ch]"},content:"Subline"}]},{tagName:"div",attributes:{class:"grid md:grid-cols-2 gap-8 w-full mx-auto"},components:[{type:"os-benefit-box",attributes:{...s},trackPosition:"1",boxTheme:"primary"},{type:"os-benefit-box",attributes:{...s},trackPosition:"2",boxTheme:"secondary"}]}]}]}})}const ew="47",rw="1.0.0",nw="Landingpage Elemente - Content - FlieÃtext (Sektion)",Oc="data-os-textflow-columns-md",Ec="data-os-textflow-columns-lg",zv="data-textflow",Uv="data-textflow-container",pp="data-textflow-body",FN=`[${pp}="wrap"]`,iw="relative w-screen left-1/2 -translate-x-1/2 py-8 sm:py-12",aw="mx-auto px-4 sm:px-6",Wv="max-w-[960px]",$N="max-w-[1280px]",zN="[&_p]:break-inside-avoid [&_ul]:break-inside-avoid [&_ol]:break-inside-avoid [&_h3]:break-inside-avoid",ow=`custom-text columns-1 ${zN}`,C2={1:["md:columns-1"],2:["md:columns-2","md:gap-8"]},k2={1:["lg:columns-1"],2:["lg:columns-2","lg:gap-10"],3:["lg:columns-3","lg:gap-10"]},UN=["md:columns-1","md:columns-2","md:gap-8","lg:columns-1","lg:columns-2","lg:columns-3","lg:gap-10"],Zv="1",qv="1";function sw(a){try{a()}catch{}}function lw(a){return typeof a.getAttributes=="function"?a.getAttributes():{}}function S2(a,r,t){const e=String(a??"").trim();return r.includes(e)?e:t}function WN(a){ZN(a),qN(a),KN(a),GN(a)}function ZN(a){a.DomComponents.addType("textflow-container",{isComponent:r=>{var t;return((t=r==null?void 0:r.getAttribute)==null?void 0:t.call(r,Uv))==="wrap"?{type:"textflow-container"}:!1},model:{defaults:{tagName:"div",editable:!1,draggable:!1,copyable:!1,removable:!1,droppable:!0,selectable:!0,wide_content:!1,attributes:{[Uv]:"wrap",class:`${aw} ${Wv}`}},init(){this.on("change:wide_content",this.handleWideContentChange),this.handleWideContentChange()},handleWideContentChange(){sw(()=>{const r=!!this.get("wide_content"),t=lw(this),e=String(t.class||"").split(" ").filter(n=>n&&!n.startsWith("max-w-"));e.push(r?$N:Wv),this.setAttributes({...t,class:e.join(" ")})})}}})}function qN(a){a.DomComponents.addType("textflow-body",{isComponent:r=>{var t;return((t=r==null?void 0:r.getAttribute)==null?void 0:t.call(r,pp))==="wrap"?{type:"textflow-body"}:!1},model:{defaults:{tagName:"div",editable:!1,draggable:!1,copyable:!1,removable:!1,droppable:!0,selectable:!0,attributes:{[pp]:"wrap",class:ow}}}})}function KN(a){a.DomComponents.addType("textflow",{isComponent:r=>{var t;return((t=r==null?void 0:r.getAttribute)==null?void 0:t.call(r,zv))==="wrap"?{type:"textflow"}:!1},model:{defaults:{tagName:"section",droppable:!0,attributes:{[zv]:"wrap","data-component-id":ew,"data-component-version":rw,"data-component-name":nw,[Oc]:Zv,[Ec]:qv,class:iw},traits:[{type:"select",name:Oc,label:"Spalten ab Tablet",category:{id:"textflow-layout",label:"Layout",open:!0},options:[{id:"1",name:"1 Spalte"},{id:"2",name:"2 Spalten"}]},{type:"select",name:Ec,label:"Spalten ab Desktop",category:{id:"textflow-layout",label:"Layout",open:!0},options:[{id:"1",name:"1 Spalte"},{id:"2",name:"2 Spalten"},{id:"3",name:"3 Spalten"}]}]},init(){this.on(`change:attributes:${Oc}`,()=>this.applyColumns()),this.on(`change:attributes:${Ec}`,()=>this.applyColumns()),setTimeout(()=>this.applyColumns(),0)},applyColumns(){sw(()=>
3166{if(typeof this.find!="function")return;const r=this.find(FN)[0];if(!r)return;const t=lw(this),e=S2(t[Oc],Object.keys(C2),Zv),n=S2(t[Ec],Object.keys(k2),qv);r.removeClass(UN),r.addClass([...C2[e]??[],...k2[n]??[]])})}}})}function GN(a){a.BlockManager.add("textflowSection",{id:"textflowSection",label:"FlieÃtext (Sektion)",category:{id:"content",label:"Content"},attributes:{"data-os-group":"Landingpage Elemente","data-os-page-type":"both"},content:YN(),media:XN()})}function YN(){return` 3167<section 3168 ${zv}="wrap" 3169 data-component-id="${ew}" 3170 data-component-version="${rw}" 3171 data-component-name="${nw}" 3172 ${Oc}="${Zv}" 3173 ${Ec}="${qv}" 3174 class="${iw}"> 3175 <div ${Uv}="wrap" class="${aw} ${Wv}"> 3176 <div ${pp}="wrap" class="${ow}"> 3177 <p class="text-body2 break-inside-avoid">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</p> 3178 <p class="text-body2 mt-4 break-inside-avoid">Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</p> 3179 <p class="text-body2 mt-4 break-inside-avoid">Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam est usus legentis in iis qui facit eorum claritatem.</p> 3180 <p class="text-body2 mt-4 break-inside-avoid">Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. Claritas est etiam processus dynamicus qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica quam nunc putamus parum claram.</p> 3181 </div> 3182 </div> 3183</section>`}function XN(){return'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 400 400" enable-background="new 0 0 400 400" xml:space="preserve"><g id="TextflowSection"><rect x="30" y="60" width="340" height="10" style="fill:#EDEDED;"/><rect x="30" y="330" width="340" height="10" style="fill:#EDEDED;"/><rect x="60" y="110" width="130" height="18" style="fill:#D3D3D3;"/><rect x="60" y="140" width="130" height="10" style="fill:#D3D3D3;"/><rect x="60" y="160" width="130" height="10" style="fill:#D3D3D3;"/><rect x="60" y="180" width="100" height="10" style="fill:#D3D3D3;"/><rect x="60" y="215" width="130" height="10" style="fill:#D3D3D3;"/><rect x="60" y="235" width="115" height="10" style="fill:#D3D3D3;"/><rect x="210" y="110" width="130" height="18" style="fill:#B2B2B2;"/><rect x="210" y="140" width="130" height="10" style="fill:#B2B2B2;"/><rect x="210" y="160" width="130" height="10" style="fill:#B2B2B2;"/><rect x="210" y="180" width="90" height="10" style="fill:#B2B2B2;"/><rect x="210" y="215" width="130" height="10" style="fill:#B2B2B2;"/><rect x="210" y="235" width="105" height="10" style="fill:#B2B2B2;"/></g></svg>'}function JN(a){const t="2.0.0",e="Landingpage Elemente - Content - FlieÃtext",n='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 400 400" xml:space="preserve"><g><path style="fill:#D3D3D3;" d="M80,100h240v50h-95v150h-50V150H80V100z"/></g></svg>';function i(s){s.DomComponents.addType("os-textflow",{isComponent:c=>{var d,f;return(f=(d=c==null?void 0:c.classList)==null?void 0:d.contains)!=null&&f.call(d,"custom-text")?{type:"os-textflow"}:!1},model:{defaults:{tagName:"div",editable:!1,droppable:!0,selectable:!0,draggable:!0,copyable:!0,removable:!0}}})}function o(s){s.BlockManager.add("textComponent",{id:"textComponent",label:"FlieÃtext",category:{id:"content",label:"Content"},attributes:{"data-os-group":"Landingpage Elemente","data-os-page-type":"both"},content:` 3184 <div 3185 data-component-id="23" 3186 data-component-version="${t}" 3187 data-component-name="${e}" 3188 class="custom-text mb-4"> 3189 <p>Dies ist ein Text</p> 3190 </div>`,media:n})}i(a),o(a)}function QN(a){a.BlockManager.add("textImage",{id:"textImage",label:"Absatz Text-Bild",category:{id:"c
3190ontent",label:"Content"},attributes:{"data-os-group":"Landingpage Elemente","data-os-page-type":"cue"},content:` 3191 <div 3192 data-component-id="20" 3193 data-component-version="1.0.0" 3194 data-component-name="Landingpage Elemente - Content - Absatz Text-Bild" 3195 class="w-full block mb-8 md:mb-8 p-2 px-4 md:px-2 lg:flex lg:items-center lg:flex-row-reverse"> 3196 <div class="w-full h-auto lg:w-[45%] lg:ml-5"> 3197 <picture> 3198 <source media="(max-width: 639px)" srcset="https://placehold.co/640x360?text=Mobile_640x360px"> 3199 <source media="(min-width: 640px)" srcset="https://placehold.co/960x540?text=Desktop_960x540px"> 3200 <img src="https://placehold.co/960x540?text=Desktop_960x540px" alt="Descriptive text of the image" class="aspect-[16/9] skeleton"> 3201 </picture> 3202 </div> 3203 <div class="w-full mt-5 lg:w-[55%] lg:mt-0"> 3204 <h2 class="text-title5">Headline 2</h2> 3205 <p class="text-body2 mt-2">In dui magna, posuere eget, vestibulum et, tempor auctor, justo. Pellentesque ut neque. In ac felis quis tortor malesuada pretium.</p> 3206 <ul class="custom-list-style list-bullet-brand-primary-500"> 3207 <li>Option 1</li> 3208 <li>Option 2</li> 3209 </ul> 3210 <div class="flex justify-start flex-wrap gap-2"> 3211 <a href target="_self" title="" 3212 class="no-underline font-medium inline-block overflow-hidden text-ellipsis whitespace-nowrap rounded border-2 px-6 mt-4 text-center uppercase transition hover:shadow-sm focus:shadow-sm active:shadow-sm disabled:border-gray-100 disabled:bg-gray-100 disabled:text-copy-primary disabled:shadow-none text-sm leading-[41px] border-brand-primary-500 hover:border-brand-primary-700 focus:border-brand-primary-700 active:border-brand-primary-300 bg-brand-primary-500 hover:bg-brand-primary-700 focus:bg-brand-primary-700 active:bg-brand-primary-300 text-brand-contrast hover:text-brand-contrast" 3213 data-track-v2-parentposition="Content" 3214 data-track-v2-parent="Landingpage Elemente - Content - Absatz Text-Bild" 3215 data-track-v2-parentlabel="OS - Inhalt" 3216 data-track-v2-elementposition="1" 3217 data-track-v2-elementtype="Button" 3218 data-track-v2-vendor="Internal" 3219 data-track-v2-link="" 3220 data-track-v2-linktype="External" 3221 data-track-v2-linkgenre="" 3222 data-track-v2-clickaction=""> 3223 <span class="px-6">Button</span> 3224 </a> 3225 <a href target="_self" title="" 3226 class="no-underline font-medium inline-block overflow-hidden text-ellipsis whitespace-nowrap rounded border-2 px-6 mt-4 text-center uppercase transition hover:shadow-sm focus:shadow-sm active:shadow-sm disabled:border-gray-100 disabled:bg-gray-100 disabled:text-copy-primary disabled:shadow-none text-sm leading-[41px] border-brand-primary-500 hover:border-brand-primary-700 focus:border-brand-primary-700 active:border-brand-primary-300 text-brand-primary-500 hover:text-brand-primary-700" 3227 data-track-v2-parentposition="Content" 3228 data-track-v2-parent="Landingpage Elemente - Content - Absatz Text-Bild" 3229 data-track-v2-parentlabel="OS - Inhalt" 3230 data-track-v2-elementposition="2" 3231 data-track-v2-elementtype="Button" 3232 data-track-v2-vendor="Internal" 3233 data-track-v2-link="" 3234 data-track-v2-linktype="External" 3235 data-track-v2-linkgenre="" 3236 data-track-v2-clickaction=""> 3237 <span class="px-6">Button</span> 3238 </a> 3239 </div> 3240 </div> 3241 </div>`,media:'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 400 400" style="enable-background:new 0 0 400 400;" xml:space="preserve"><g id="Mediatext"><g><path style="fill:#D3D3D3;" d="M21.2,252.8v-15.1h55.7v15.1H21.2z M21.2,222.6v-15.1h151.7v15.1H21.2z M21.2,192.5v-15.1h151.7 v15.1H21.2z M21.2,162.3v-15.1h151.7v15.1H21.2z"/><g><g><path style="fill:#D3D3D3;" d="M373.8,252.8H195.7c-2.7,0-4.8-2.2-4.8-4.8V152c0-2.7,2.2-4.8,4.8-4.8h178.1 c2.7,0,4.8,2.2,4.8,4.8
3241V248C378.6,250.6,376.4,252.8,373.8,252.8z"/></g><g><circle style="fill-rule:evenodd;clip-rule:evenodd;fill:#B2B2B2;" cx="341.3" cy="169.1" r="7.7"/></g><g><path style="fill-rule:evenodd;clip-rule:evenodd;fill:#B2B2B2;" d="M378.8,233.8V248c0,2.7-2.2,4.8-4.8,4.8H195.7 c-2.7,0-4.8-2.2-4.8-4.8v-14.1c0-1.6,0.7-3,2-3.9l48.8-35.2c6.2-4.5,16.3-4.5,22.5,0l54.8,39.6c0.1,0.1,0.3,0.2,0.4,0.3 c3.2,2.2,8.3,2,11.3-0.3c3-2.3,2.8-6-0.4-8.1l-4.9-3.5c-2.7-1.9-2.7-5.9,0-7.8l3.9-2.8c6.2-4.5,16.3-4.5,22.5,0l24.9,18 C378.1,230.8,378.8,232.3,378.8,233.8z"/></g></g></g></g></svg>'}),a.BlockManager.add("imageText",{id:"imageText",label:"Absatz Bild-Text",category:{id:"content",label:"Content"},attributes:{"data-os-group":"Landingpage Elemente","data-os-page-type":"aboshop"},content:` 3242 <div 3243 data-component-id="21" 3244 data-component-version="1.0.0" 3245 data-component-name="Landingpage Elemente - Content - Absatz Bild-Text" 3246 class="w-full block mb-8 md:mb-8 p-2 px-4 md:px-2 lg:flex lg:items-center"> 3247 <div class="w-full h-auto lg:w-[45%] lg:mr-5"> 3248 <picture> 3249 <source media="(max-width: 639px)" srcset="https://placehold.co/640x360?text=Mobile_640x360px"> 3250 <source media="(min-width: 640px)" srcset="https://placehold.co/960x540?text=Desktop_960x540px"> 3251 <img src="https://placehold.co/960x540?text=Desktop_960x540px" alt="Descriptive text of the image" class="aspect-[16/9] skeleton"> 3252 </picture> 3253 </div> 3254 <div class="w-full mt-5 lg:w-[55%] lg:mt-0"> 3255 <h2 class="text-title5">Headline 2</h2> 3256 <p class="text-body2 mt-2">In dui magna, posuere eget, vestibulum et, tempor auctor, justo. Pellentesque ut neque. In ac felis quis tortor malesuada pretium.</p> 3257 <ul class="custom-list-style list-bullet-brand-primary-500"> 3258 <li>Option 1</li> 3259 <li>Option 2</li> 3260 </ul> 3261 <div class="flex justify-start flex-wrap gap-2"> 3262 <a href target="_self" title="" 3263 class="no-underline font-medium inline-block overflow-hidden text-ellipsis whitespace-nowrap rounded border-2 px-6 mt-4 text-center uppercase transition hover:shadow-sm focus:shadow-sm active:shadow-sm disabled:border-gray-100 disabled:bg-gray-100 disabled:text-copy-primary disabled:shadow-none text-sm leading-[41px] border-brand-primary-500 hover:border-brand-primary-700 focus:border-brand-primary-700 active:border-brand-primary-300 bg-brand-primary-500 hover:bg-brand-primary-700 focus:bg-brand-primary-700 active:bg-brand-primary-300 text-brand-contrast hover:text-brand-contrast" 3264 data-track-v2-parentposition="Content" 3265 data-track-v2-parent="Landingpage Elemente - Content - Absatz Bild-Text" 3266 data-track-v2-parentlabel="OS - Inhalt" 3267 data-track-v2-elementposition="1" 3268 data-track-v2-elementtype="Button" 3269 data-track-v2-vendor="Internal" 3270 data-track-v2-link="" 3271 data-track-v2-linktype="External" 3272 data-track-v2-linkgenre="" 3273 data-track-v2-clickaction=""> 3274 <span class="px-6">Button</span> 3275 </a> 3276 <a href target="_self" title="" 3277 class="no-underline font-medium inline-block overflow-hidden text-ellipsis whitespace-nowrap rounded border-2 px-6 mt-4 text-center uppercase transition hover:shadow-sm focus:shadow-sm active:shadow-sm disabled:border-gray-100 disabled:bg-gray-100 disabled:text-copy-primary disabled:shadow-none text-sm leading-[41px] border-brand-primary-500 hover:border-brand-primary-700 focus:border-brand-primary-700 active:border-brand-primary-300 text-brand-primary-500 hover:text-brand-primary-700" 3278 data-track-v2-parentposition="Content" 3279 data-track-v2-parent="Landingpage Elemente - Content - Absatz Bild-Text" 3280 data-track-v2-parentlabel="OS - Inhalt" 3281 data-track-v2-elementposition="2" 3282 data-track-v2-elementtype="Button" 3283 data-track-v2-vendor="Internal" 3284 data-track-v2-link="" 3285 data-track-v2-linktype="External" 3286 data-track-v2-linkgenre="" 3287 data-track-v2-clickaction="">
3288 <span class="px-6">Button</span> 3289 </a> 3290 </div> 3291 </div> 3292 </div>`,media:'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 400 400" style="enable-background:new 0 0 400 400;" xml:space="preserve"><g id="Textmedia_00000119839977268023685250000008117141932680639884_"><path style="fill:#D3D3D3;" d="M227.3,252.8v-15.1H283v15.1H227.3z M227.3,222.6v-15.1H379v15.1H227.3z M227.3,192.5v-15.1H379 v15.1H227.3z M227.3,162.3v-15.1H379v15.1H227.3z"/><g><g><path style="fill:#D3D3D3;" d="M203.9,252.8H25.8c-2.7,0-4.8-2.2-4.8-4.8V152c0-2.7,2.2-4.8,4.8-4.8h178.1c2.7,0,4.8,2.2,4.8,4.8 V248C208.7,250.6,206.6,252.8,203.9,252.8z"/></g><g><circle style="fill-rule:evenodd;clip-rule:evenodd;fill:#B2B2B2;" cx="171.4" cy="169.1" r="7.7"/></g><g><path style="fill-rule:evenodd;clip-rule:evenodd;fill:#B2B2B2;" d="M209,233.8V248c0,2.7-2.2,4.8-4.8,4.8H25.8 c-2.7,0-4.8-2.2-4.8-4.8v-14.1c0-1.6,0.7-3,2-3.9l48.8-35.2c6.2-4.5,16.3-4.5,22.5,0l54.8,39.6c0.1,0.1,0.3,0.2,0.4,0.3 c3.2,2.2,8.3,2,11.3-0.3c3-2.3,2.8-6-0.4-8.1l-4.9-3.5c-2.7-1.9-2.7-5.9,0-7.8l3.9-2.8c6.2-4.5,16.3-4.5,22.5,0l24.9,18 C208.2,230.8,209,232.3,209,233.8z"/></g></g></g></svg>'}),a.BlockManager.add("doubleImageText",{id:"doubleImageText",label:"Doppel Bild-Text Elemente",category:{id:"content",label:"Content"},attributes:{"data-os-group":"Landingpage Elemente","data-os-page-type":"cue"},content:` 3293 <div 3294 data-component-id="22" 3295 data-component-version="1.0.0" 3296 data-component-name="Landingpage Elemente - Content - Doppel Bild-Text Elemente" 3297 class="w-full block px-4 md:px-2 md:flex md:gap-8"> 3298 <!-- Erstes Bild-Text Element --> 3299 <div class="w-full block md:w-1/2 mb-8 md:mb-8"> 3300 <div class="flex flex-row md:items-start"> 3301 <div class="h-auto max-w-[120px] mr-2.5 md:mr-5"> 3302 <picture> 3303 <source media="(max-width: 639px)" srcset="https://placehold.co/120x120?text=Mobile_120x120px"> 3304 <source media="(min-width: 640px)" srcset="https://placehold.co/120x120?text=Desktop_120x120px"> 3305 <img src="https://placehold.co/120x120?text=Desktop_120x120px" alt="Descriptive text of the image" class="aspect-[1/1] skeleton"> 3306 </picture> 3307 </div> 3308 <div class="w-full flex-1"> 3309 <strong>Headline 1</strong> 3310 <p class="text-body2 mt-2">In dui magna, posuere eget, vestibulum et, tempor auctor, justo. Pellentesque ut neque. In dui magna, posuere eget.</p> 3311 </div> 3312 </div> 3313 </div> 3314 <!-- Zweites Bild-Text Element --> 3315 <div class="w-full block md:w-1/2 mb-8 md:mb-8"> 3316 <div class="flex flex-row md:items-start"> 3317 <div class="h-auto max-w-[120px] mr-2.5 md:mr-5"> 3318 <picture> 3319 <source media="(max-width: 639px)" srcset="https://placehold.co/120x120?text=Mobile_120x120px"> 3320 <source media="(min-width: 640px)" srcset="https://placehold.co/120x120?text=Desktop_120x120px"> 3321 <img src="https://placehold.co/120x120?text=Desktop_120x120px" alt="Descriptive text of the image" class="aspect-[1/1] skeleton"> 3322 </picture> 3323 </div> 3324 <div class="w-full flex-1"> 3325 <strong>Headline 2</strong> 3326 <p class="text-body2 mt-2">In dui magna, posuere eget, vestibulum et, tempor auctor, justo. Pellentesque ut neque. In dui magna, posuere eget.</p> 3327 </div> 3328 </div> 3329 </div> 3330 </div>`,media:'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 400 400" style="enable-background:new 0 0 400 400;" xml:space="preserve"><g><rect x="30" y="80" width="80" height="80" style="fill:#D3D3D3;"/><rect x="120" y="90" width="80" height="15" style="fill:#B2B2B2;"/><rect x="120" y="110" width="60" height="8" style="fill:#B2B2B2;"/><rect x="120" y="125" width="50" height="20" style="fill:#888888;"/><rect x="220" y="80" width="80" height="80" style="fill:#D3D3D3;"/><rect x="310" y="90" width="80" height="15" style="fill:#B2B2B2;"/><rect x="310" y="110" width="60" height="8" style="fill:#B2B2B2;"/><rect x="310" y="125" width="50" height="20" style="fill:#888888;"/></g></svg>'}),a.BlockManager.add("osTextblock",{id:"osTextblock",label:"Absatz Text, Aufzählung, CTA",category:{id:"c
3330ontent",label:"Content"},attributes:{"data-os-group":"Landingpage Elemente","data-os-page-type":"cue"},content:` 3331 <div 3332 data-component-id="24" 3333 data-component-version="1.0.0" 3334 data-component-name="Landingpage Elemente - Content - Absatz Text, Aufzählung, CTA" 3335 class="w-full block mb-8 p-2 px-4 md:px-2"> 3336 <h2 class="text-title5">Headline 2</h2> 3337 <p class="text-body2 mt-2">In dui magna, posuere eget, vestibulum et, tempor auctor, justo. Pellentesque ut neque. In ac felis quis tortor malesuada pretium.</p> 3338 <ul class="custom-list-style list-bullet-brand-primary-500"> 3339 <li>Option 1</li> 3340 <li>Option 2</li> 3341 </ul> 3342 <div class="flex justify-start flex-wrap gap-2"> 3343 <a href target="_self" title="" 3344 class="no-underline font-medium inline-block overflow-hidden text-ellipsis whitespace-nowrap rounded border-2 px-6 mt-4 text-center uppercase transition hover:shadow-sm focus:shadow-sm active:shadow-sm disabled:border-gray-100 disabled:bg-gray-100 disabled:text-copy-primary disabled:shadow-none text-sm leading-[41px] border-brand-primary-500 hover:border-brand-primary-700 focus:border-brand-primary-700 active:border-brand-primary-300 bg-brand-primary-500 hover:bg-brand-primary-700 focus:bg-brand-primary-700 active:bg-brand-primary-300 text-brand-contrast hover:text-brand-contrast" 3345 data-track-v2-parentposition="Content" 3346 data-track-v2-parent="Landingpage Elemente - Content - Absatz Text, Aufzählung, CTA" 3347 data-track-v2-parentlabel="OS - Inhalt" 3348 data-track-v2-elementposition="1" 3349 data-track-v2-elementtype="Button" 3350 data-track-v2-vendor="Internal" 3351 data-track-v2-link="" 3352 data-track-v2-linktype="External" 3353 data-track-v2-linkgenre="" 3354 data-track-v2-clickaction=""> 3355 <span class="px-6">Button</span> 3356 </a> 3357 <a href target="_self" title="" 3358 class="no-underline font-medium inline-block overflow-hidden text-ellipsis whitespace-nowrap rounded border-2 px-6 mt-4 text-center uppercase transition hover:shadow-sm focus:shadow-sm active:shadow-sm disabled:border-gray-100 disabled:bg-gray-100 disabled:text-copy-primary disabled:shadow-none text-sm leading-[41px] border-brand-primary-500 hover:border-brand-primary-700 focus:border-brand-primary-700 active:border-brand-primary-300 text-brand-primary-500 hover:text-brand-primary-700" 3359 data-track-v2-parentposition="Content" 3360 data-track-v2-parent="Landingpage Elemente - Content - Absatz Text, Aufzählung, CTA" 3361 data-track-v2-parentlabel="OS - Inhalt" 3362 data-track-v2-elementposition="2" 3363 data-track-v2-elementtype="Button" 3364 data-track-v2-vendor="Internal" 3365 data-track-v2-link="" 3366 data-track-v2-linktype="External" 3367 data-track-v2-linkgenre="" 3368 data-track-v2-clickaction=""> 3369 <span class="px-6">Button</span> 3370 </a> 3371 </div> 3372 </div>`,media:'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 400 400" enable-background="new 0 0 400 400" xml:space="preserve"><g id="Text"><path style="fill:#D3D3D3;" d="M30,348.3v-42.4h211.9v42.4H30z M30,263.6v-42.4h339v42.4H30z M30,178.8v-42.4h339 v42.4H30z M30,94.1V51.7h339v42.4H30z"/></g></svg>'})}const T2={draggable:!1,droppable:!1,copyable:!1,removable:!1};function tR(a){a.Config.canvasCss+=` 3373 .drawer-wrapper { 3374 grid-template-rows: 1fr !important; 3375 opacity: 1 !important; 3376 visibility: visible !important; 3377 pointer-events: auto !important; 3378 } 3379 `,a.DomComponents.addType("textmedia-enhanced",{view:{onRender(){const r=this.model;r&&typeof r.enforceLocks=="function"&&r.enforceLocks()}},model:{defaults:{traits:[{type:"select",label:"Layout",name:"layout",changeProp:!0,options:[{id:"image-right",label:"Bild rechts (Standard)"},{id:"image-left",label:"Bild links"}]},{type:"text",label:"Button Text",name:"button_text",changeProp:!0},{type:"checkbox",label:"Karten-Style deaktivieren",name:"cardStyleDisabled",changeProp:!0},...Array.from({length:8},(r,t)=>[{type:"checkbox",label:`Slide ${t+1}: Aktiv`,name:`slide_${t+1}_active`,category:`Slide ${t+1}`,changeProp:!0},{type:"text",label:`Slide ${t+1}: Icon`,name:`slide_${t+1}_icon`,category:`Slide ${t+1}`,changeProp:!0},{type:"text",label:`Slide ${t+1}: Titel`,name:`slide_${t+1}_title`,category:`Slide ${t+1}`,changeProp:!0},{type:"textarea",label:`Slide ${t+1}: Text`,name:`slide_${t+1}_text`,category:`Slide ${t+1}`,changeProp:!0}]).flat()],button_text:"Inhalte entdecken",layout:"image-right",cardStyleDisabled:!1,drawer_id:"",slide_1_active:!0,slide_
33791_icon:"material-symbols:star",slide_1_title:"Vorteil 1",slide_1_text:"Kurze Beschreibung des Vorteils",slide_2_active:!0,slide_2_icon:"material-symbols:star",slide_2_title:"Vorteil 2",slide_2_text:"Kurze Beschreibung des Vorteils",slide_3_active:!0,slide_3_icon:"material-symbols:star",slide_3_title:"Vorteil 3",slide_3_text:"Kurze Beschreibung des Vorteils",slide_4_active:!0,slide_4_icon:"material-symbols:star",slide_4_title:"Vorteil 4",slide_4_text:"Kurze Beschreibung des Vorteils",slide_5_active:!1,slide_5_icon:"material-symbols:star",slide_5_title:"Vorteil 5",slide_5_text:"Kurze Beschreibung des Vorteils",slide_6_active:!1,slide_6_icon:"material-symbols:star",slide_6_title:"Vorteil 6",slide_6_text:"Kurze Beschreibung des Vorteils",slide_7_active:!1,slide_7_icon:"material-symbols:star",slide_7_title:"Vorteil 7",slide_7_text:"Kurze Beschreibung des Vorteils",slide_8_active:!1,slide_8_icon:"material-symbols:star",slide_8_title:"Vorteil 8",slide_8_text:"Kurze Beschreibung des Vorteils"},init(){if(!this.get("drawer_id")){const r="drawer-"+Math.random().toString(36).substr(2,9);this.set("drawer_id",r)}this.on("change:button_text",this.updateButtonText),this.on("change:layout",this.updateLayout),this.on("change:cardStyleDisabled",this.updateCardStyle);for(let r=1;r<=8;r++)this.on(`change:slide_${r}_active`,this.renderSlides),this.on(`change:slide_${r}_icon`,this.renderSlides),this.on(`change:slide_${r}_title`,this.renderSlides),this.on(`change:slide_${r}_text`,this.renderSlides);setTimeout(()=>{this.updateIds(this.ensureUniqueDrawerId()),this.enforceLocks(),this.renderSlides(),this.updateLayout(),this.updateCardStyle()},100)},ensureUniqueDrawerId(){var o;const r=this.get("drawer_id"),t=((o=a.getWrapper())==null?void 0:o.findType("textmedia-enhanced"))||[];
3379if(t.find(s=>s.get("drawer_id")===r)===this)return r;const n=new Set(t.filter(s=>s!==this).map(s=>s.get("drawer_id")));let i="";do i="drawer-"+Math.random().toString(36).substr(2,9);while(n.has(i));return this.set("drawer_id",i),i},enforceLocks(){this.find(".drawer-wrapper").forEach(r=>{r.set(T2)}),this.find("button").forEach(r=>{r.set({...T2,editable:!1})})},updateLayout(){const r=this.get("layout")||"image-right",t=this.find(".text-col")[0],e=this.find(".image-col")[0];t&&(r==="image-left"?t.addAttributes({class:"flex flex-col gap-3 sm:gap-4 text-left text-col order-2 md:order-2 p-4 sm:p-6 xl:pl-16 xl:py-12 max-w-lg mx-auto"}):t.addAttributes({class:"flex flex-col gap-3 sm:gap-4 text-left text-col order-2 md:order-1 p-4 sm:p-6 xl:pl-16 xl:py-12 max-w-lg mx-auto"})),e&&(r==="image-left"?e.addAttributes({class:"aspect-video w-full h-full overflow-hidden rounded-md shadow-sm image-col order-1 md:order-1 group-hover:shadow-md transition-shadow duration-300"}):e.addAttributes({class:"aspect-video w-full h-full overflow-hidden rounded-md shadow-sm image-col order-1 md:order-2 group-hover:shadow-md transition-shadow duration-300"}))},updateCardStyle(){var i,o;const r=this.find('[data-textmedia-enhanced-card="wrap"]')[0]||((i=this.find(".text-col")[0])==null?void 0:i.parent()),t=this.find('[data-textmedia-enhanced-slider-container="wrap"]')[0]||((o=this.find(".swiper")[0])==null?void 0:o.parent());if(!r)return;const e="bg-slate-50 dark:bg-dark-surface border border-slate-200 dark:border-dark-border shadow-sm",n="bg-slate-50 dark:bg-dark-surface border border-slate-200 dark:border-dark-border";this.get("cardStyleDisabled")?(r.removeClass(e),r.removeClass("bg-white"),t==null||t.removeClass(n)):(r.removeClass("bg-white"),r.addClass(e),t==null||t.addClass(n))},updateButtonText(){const r=this.find("button")[0],t=this.get("button_text");if(r){const e=r.find("span")[0];e&&e.set("content",t)}},getSwiperConfig(r,t,e,n){const i=r>4;return{slidesPerView:1,spaceBetween:16,breakpoints:{640:{slidesPerView:2,enabled:!0},1024:i?{slidesPerView:4,enabled:!0}:{slidesPerView:4,enabled:!1}},navigation:{nextEl:"#"+t,prevEl:"#"+e},pagination:{el:"#"+n,clickable:!0}}},renderSlides(){const r=this.find(".swiper-wrapper")[0];if(!r)return;let t="",e=0;for(let o=1;o<=8;o++){const s=this.get(`slide_${o}_active`),c=this.get(`slide_${o}_icon`),d=this.get(`slide_${o}_title`),f=this.get(`slide_${o}_text`);s&&(e++,t+=` 3380 <div class="swiper-slide !h-auto"> 3381 <div class="h-full rounded-md border border-slate-200 bg-white p-4 shadow-sm transition-shadow duration-300 hover:shadow-md sm:p-6 dark:border-dark-border dark:bg-dark-surface"> 3382 <iconify-icon icon="${c||"material-symbols:star"}" class="text-3xl sm:text-4xl text-brand-primary-500 mb-3" aria-hidden="true"></iconify-icon> 3383 <h4 class="font-bold text-base sm:text-lg text-slate-900 dark:text-white">${d||`Vorteil ${o}`}</h4> 3384 <p class="text-xs sm:text-sm text-slate-600 dark:text-slate-400">${f||"Kurze Beschreibung des Vorteils"}</p> 3385 </div> 3386 </div>`)}r.set("content",t);const n=this.find(".swiper")[0],i=this.get("drawer_id")||"drawer-enhanced";if(n){const o=this.getSwiperConfig(e,i+"-next",i+"-prev",i+"-pagination");n.addAttributes({"data-swiper":JSON.stringify(o)})}},updateIds(r){const t=this.find("button")[0],e=this.find(".drawer-wrapper")[0],n=this.find(".swiper")[0],i=this.find(".swiper-pagination")[0],o=this.find(".swiper-button-prev")[0],s=this.find(".swiper-button-next")[0],c=r+"-prev",d=r+"-next",f=r+"-pagination";if(t&&t.addAttributes({"data-drawer-toggle":r,"aria-controls":r}),e&&e.addAttributes({id:r}),n){let g=0;for(let y=1;y<=8;y++)this.get(`slide_${y}_active`)&&g++;const m=this.getSwiperConfig(g,d,c,f);n.addAttributes({"data-swiper":JSON.stringify(m)})}o&&o.addAttributes({id:c}),s&&s.addAttributes({id:d}),i&&i.addAttributes({id:f})}}}),a.BlockManager.add("textMediaEnhanced",{id:"textMediaEnhanced",label:"Text-Media mit Icon-Slider",category:{id:"c
3386ontent",label:"Content"},attributes:{"data-os-group":"Landingpage Elemente","data-os-page-type":"aboshop"},content:` 3387 <div 3388 data-gjs-type="textmedia-enhanced" 3389 data-component-id="38" 3390 data-component-version="1.4.2" 3391 data-component-name="Landingpage Elemente - Content - Text-Media mit Icon-Slider" 3392 class="content-block-wrapper group w-full px-4 sm:px-6 mb-12 sm:mb-16 lg:mb-20 animate-slide-up"> 3393 <div data-textmedia-enhanced-card="wrap" class="grid md:grid-cols-2 items-center gap-6 sm:gap-8 lg:gap-12 relative z-10 bg-slate-50 dark:bg-dark-surface p-6 rounded-md overflow-hidden border border-slate-200 dark:border-dark-border shadow-sm"> 3394 <div class="flex flex-col gap-3 sm:gap-4 text-left text-col order-2 md:order-1 p-4 sm:p-6 xl:pl-16 xl:py-12 max-w-lg mx-auto"> 3395 <h3 class="font-serif text-xl sm:text-2xl md:text-3xl font-bold text-slate-900 dark:text-white leading-tight">Ãberschrift</h3> 3396 <p class="text-slate-600 dark:text-dark-muted text-base sm:text-lg leading-relaxed max-w-[65ch]">Beschreibungstext hier einfügen. Journalismus aus Leidenschaft trifft auf die Flexibilität Ihres digitalen Alltags.</p> 3397 <button data-drawer-toggle="drawer-enhanced" class="self-start mt-2 px-4 sm:px-6 py-2 sm:py-3 bg-white dark:bg-neutral-800 hover:bg-slate-100 dark:hover:bg-neutral-700 border border-slate-200 dark:border-dark-border text-slate-900 dark:text-dark-text text-sm sm:text-base font-bold rounded-sm transition-all flex items-center gap-2 shadow-sm min-h-[44px] active:scale-95 cursor-pointer" aria-expanded="false" aria-controls="drawer-enhanced"> 3398 <span>Inhalte entdecken</span> 3399 <iconify-icon icon="material-symbols:expand-more" class="transition-transform duration-300 motion-reduce:transition-none text-xl" aria-hidden="true"></iconify-icon> 3400 </button> 3401 </div> 3402 <div class="aspect-video w-full h-full overflow-hidden rounded-md shadow-sm image-col order-1 md:order-2 group-hover:shadow-md transition-shadow duration-300"> 3403 <picture> 3404 <source media="(max-width: 639px)" srcset="https://placehold.co/640x360?text=Mobile_640x360px"> 3405 <source media="(min-width: 640px)" srcset="https://placehold.co/960x540?text=Desktop_960x540px"> 3406 <img src="https://placehold.co/960x540?text=Desktop_960x540px" alt="Descriptive text of the image" class="h-full w-full object-cover transform group-hover:scale-105 transition-transform duration-700 ease-out skeleton"> 3407 </picture> 3408 </div> 3409 </div>
3410 <div id="drawer-enhanced" class="drawer-wrapper mt-0" role="region" aria-label="Details" inert> 3411 <div class="drawer-inner"> 3412 <div class="pt-4"> 3413 <div data-textmedia-enhanced-slider-container="wrap" class="p-4 sm:p-6 md:p-8 bg-slate-50 dark:bg-dark-surface rounded-md border border-slate-200 dark:border-dark-border"> 3414 <div 3415 class="swiper" 3416 data-equalize-slide-heights 3417 data-swiper='{"slidesPerView": 1, "spaceBetween": 16, "breakpoints": {"640": {"slidesPerView": 2, "enabled": true}, "1024": {"slidesPerView": 3, "enabled": false}}, "navigation": {"nextEl": "#drawer-enhanced-next", "prevEl": "#drawer-enhanced-prev"}, "pagination": {"el": "#drawer-enhanced-pagination", "clickable": true}}' 3418 > 3419 <div class="swiper-wrapper items-stretch"></div> 3420 <div class="swiper-button-prev dark:text-white dark:bg-surface-700" id="drawer-enhanced-prev"></div> 3421 <div class="swiper-button-next dark:text-white dark:bg-surface-700" id="drawer-enhanced-next"></div> 3422 <div class="swiper-pagination" id="drawer-enhanced-pagination"></div> 3423 </div> 3424 </div> 3425 </div> 3426 </div> 3427 </div> 3428 </div>`,media:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><rect x="20" y="42" width="360" height="178" rx="10" fill="#e5e7eb"/><rect x="218" y="62" width="142" height="138" rx="6" fill="#b2b2b2"/><rect x="40" y="72" width="150" height="16" rx="4" fill="#9ca3af"/><rect x="40" y="98" width="120" height="12" rx="3" fill="#d1d5db"/><rect x="40" y="122" width="140" height="10" rx="3" fill="#d1d5db"/><rect x="40" y="138" width="100" height="10" rx="3" fill="#d1d5db"/><rect x="40" y="166" width="90" height="22" rx="11" fill="#9ca3af"/><rect x="20" y="232" width="360" height="126" rx="10" fill="#f1f5f9"/><rect x="36" y="248" width="98" height="94" rx="6" fill="#d1d5db"/><rect x="151" y="248" width="98" height="94" rx="6" fill="#d1d5db"/><rect x="266" y="248" width="98" height="94" rx="6" fill="#d1d5db"/><rect x="48" y="262" width="26" height="26" rx="13" fill="#9ca3af"/><rect x="163" y="262" width="26" height="26" rx="13" fill="#9ca3af"/><rect x="278" y="262" width="26" height="26" rx="13" fill="#9ca3af"/><rect x="48" y="302" width="68" height="8" rx="3" fill="#9ca3af"/><rect x="163" y="302" width="68" height="8" rx="3" fill="#9ca3af"/><rect x="278" y="302" width="68" height="8" rx="3" fill="#9ca3af"/><rect x="48" y="318" width="52" height="6" rx="3" fill="#e5e7eb"/><rect x="163" y="318" width="52" height="6" rx="3" fill="#e5e7eb"/><rect x="278" y="318" width="52" height="6" rx="3" fill="#e5e7eb"/></svg>'})}const eR='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><rect width="49.6" height="49.6" x="30.2" y="103" fill="#d3d3d3" rx="1.3" ry="1.3"/><circle cx="66.6" cy="113.6" r="2.8" fill="#b2b2b2"/><path fill="#b2b2b2" fill-rule="evenodd" d="M79.8 147.7v3.7c0 .7-.6 1.3-1.3 1.3H31.4c-.7 0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2 4.3-1.2 5.9 0l14.5 10.4h.1c.8.6 2.2.5 3 0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6 0-2.1l1-.7c1.6-1.2 4.3-1.2 5.9 0l6.6 4.7c.3.2.5.6.5 1Z"/><path fill="#b2b2b2" d="M41 157h28v4H41z"/><rect width="49.6" height="49.6" x="88.2" y="103" fill="#d3d3d3" rx="1.3" ry="1.3"/><circle cx="124.6" cy="113.6" r="2.8" fill="#b2b2b2"/><path fill="#b2b2b2" fill-rule="evenodd" d="M137.8 147.7v3.7c0 .7-.6 1.3-1.3 1.3H89.4c-.7 0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2 4.3-1.2 5.9 0l14.5 10.4h.1c.8.6 2.2.5 3 0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6 0-2.1l1-.7c1.6-1.2 4.3-1.2 5.9 0l6.6 4.7c.3.2.5.6.5 1Z"/><path fill="#b2b2b2" d="M99 157h28v4H99z"/><rect width="49.6" height="49.6" x="146.2" y="103" fill="#d3d3d3" rx="1.3" ry="1.3"/><circle cx="182.6" cy="113.6" r="2.8" fill="#b2b2b2"/><path fill="#b2b2b2" fill-rule="evenodd" d="M195.8 147.7v3.7c0 .7-.6 1.3-1.3 1.3h-47.1c-.7 0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2 4.3-1.2 5.9 0l14.5 10.4h.1c.8.6 2.2.5 3 0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6 0-2.1l1-.7c1.6-1.2 4.3-1.2 5.9 0l6.6 4.7c.3.2.5.6.5 1Z"/><path fill="#b2b2b2" d="M157 157h28v4h-28z"/><rect width="49.6" height="49.6" x="204.2" y="103" fill="#d3d3d3" rx="1.3" ry="1.3"/><circle cx="240.6" cy="113.6" r="2.8" fill="#b2b2b2"/><path fill="#b2b2b2" fill-rule="evenodd" d="M253.8 147.7v3.7c0 .7-.6 1.3-1.3 1.3h-47.1c-.7 0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2 4.3-1.2 5.9 0l14.5 10.4h.1c.8.6 2.2.5 3 0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6 0-2.1l1-.7c1.6-1.2 4.3-1.2 5.9 0l6.6 4.7c.3.2.5.6.5 1Z"/><path fill="#b2b2b2" d="M215 157h28v4h-28z"/><rect width="49.6" height="49.6" x="262.2" y="103" fill="#d3d3d3" rx="1.3" ry="1.3"/><circle cx="298.6" cy="113.6" r="2.8" fill="#b2b2b2"/><path fill="#b2b2b2" fill-rule="evenodd" d="M311.8 147.7v3.7c0 .7-.6 1.3-1.3 1.3h-47.1c-.7 0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2 4.3-1.2 5.9 0l14.5 10.4h.1c.8.6 2.2.5 3 0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6 0-2.1l1-.7c1.6-1.2 4.3-1.2 5.9 0l6.6 4.7c.3.2.5.6.5 1Z"/><path fill="#b2b2b2" d="M273 157h28v4h-28z"/><rect width="49.6" height="49.6" x="320.2" y="103" fill="#d3d3d3" rx="1.3" ry="1.3"/><circle cx="356.6" cy="113.6" r="2.8" fill="#b2b2b2"/><path fill="#b2b2b2" fill-rule="evenodd" d="M369.8 147.7v3.7c0 .7-.6 1.3-1.3 1.3h-47.1c-.7 0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2 4.3-1.2 5.9 0l14.5 10.4h.1c.8.6 2.2.5 3 0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6 0-2.1l1-.7c1.6-1.2 4.3-1.2 5.9 0l6.6 4.7c.3.2.5.6.5 1Z"/><path fill="#b2b2b2" d="M331 157h28v4h-28z"/><rect width="49.6" height="49.6" x="30.2" y="171" fill="#d3d3d3" rx="1.3" ry="1.3"/><circle cx="66.6" cy="181.6" r="2.8" fill="#b2b2b2"/><path fill="#b2b2b2" fill-rule="evenodd" d="M79.8 215.7v3.7c0 .7-.6 1.3-1.3 1.3H31.4c-.7 0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2 4.3-1.2 5.9 0l14.5 10.4h.1c.8.6 2.2.5 3 0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6 0-2.1l1-.7c1.6-1.2 4.3-1.2 5.9 0l6.6 4.7c.3.2.5.6.5 1Z"/><path fill="#b2b2b2" d="M41 225h28v4H41z"/><rect width="49.6" height="49.6" x="88.2" y="171" fill="#d3d3d3" rx="1.3" ry="1.3"/><circle cx="124.6" cy="181.6" r="2.8" fill="#b2b2b2"/><path fill="#b2b2b2" fill-rule="evenodd" d="M137.8 215.7v3.7c0 .7-.6 1.3-1.3 1.3H89.4c-.7 0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2 4.3-1.2 5.9 0l14.5 10.4h.1c.8.6 2.2.5 3 0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6 0-2.1l1-.7c1.6-1.2 4.3-1.2 5.9 0l6.6 4.7c.3.2.5.6.5 1Z"/><path fill="#b2b2b2" d="M99 225h28v4H99z"/><rect width="49.6" height="49.6" x="146.2" y="171" fill="#d3d3d3" rx="1.3" ry="1.3"/><circle cx="182.6" cy="181.6" r="2.8" fill="#b2b2b2"/><path fill="#b2b2b2" fill-rule="evenodd" d="M195.8 215.7v3.7c0 .7-.6 1.3-1.3 1.3h-47.1c-.7 0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2 4.3-1.2 5.9 0l14.5 10.4h.1c.8.6 2.2.5 3 0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6 0-2.1l1-.7c1.6-1.2 4.3-1.2 5.9 0l6.6 4.7c.3.2.5.6.5 1Z"/><path fill="#b2b2b2" d="M157 225h28v4h-28z"/><rect width="49.6" height="49.6" x="204.2" y="171" fill="#d3d3d3" rx="1.3" ry="1.3"/><circle cx="240.6" cy="181.6" r="2.8" fill="#b2b2b2"/><path fill="#b2b2b2" fill-rule="evenodd" d="M253.8 215.7v3.7c0 .7-.6 1.3-1.3 1.3h-47.1c-.7 0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2 4.3-1.2 5.9 0l14.5 10.4h.1c.8.6 2.2.5 3 0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6 0-2.1l1-.7c1.6-1.2 4.3-1.2 5.9 0l6.6 4.7c.3.2.5.6.5 1Z"/><path fill="#b2b2b2" d="M215 225h28v4h-28z"/><rect width="49.6" height="49.6" x="262.2" y="171" fill="#d3d3d3" rx="1.3" ry="1.3"/><circle cx="298.6" cy="181.6" r="2.8" fill="#b2b2b2"/><path fill="#b2b2b2" fill-rule="evenodd" d="M311.8 215.7v3.7c0 .7-.6 1.3-1.3 1.3h-47.1c-.7 0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2 4.3-1.2 5.9 0l14.5 10.4h.1c.8.6 2.2.5 3 0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6 0-2.1l1-.7c1.6-1.2 4.3-1.2 5.9 0l6.6 4.7c.3.2.5.6.5 1Z"/><path fill="#b2b2b2" d="M273 225h28v4h-28z"/><rect width="49.6" height="49.6" x="320.2" y="171" fill="#d3d3d3" rx="1.3" ry="1.3"/><circle cx="356.6" cy="181.6" r="2.8" fill="#b2b2b2"/><path fill="#b2b2b2" fill-rule="evenodd" d="M369.8 215.7v3.7c0 .7-.6 1.3-1.3 1.3h-47.1c-.7 0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2 4.3-1.2 5.9 0l14.5 10.4h.1c.8.6 2.2.5 3 0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6 0-2.1l1-.7c1.6-1.2 4.3-1.2 5.9 0l6.6 4.7c.3.2.5.6.5 1Z"/><path fill="#b2b2b2" d="M331 225h28v4h-28z"/><rect width="49.6" height="49.6" x="30.2" y="239" fill="#d3d3d3" rx="1.3" ry="1.3"/><circle cx="66.6" cy="249.6" r="2.8" fill="#b2b2b2"/><path fill="#b2b2b2" fill-rule="evenodd" d="M79.8 283.7v3.7c0 .7-.6 1.3-1.3 1.3H31.4c-.7 0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2 4.3-1.2 5.9 0l14.5 10.4h.1c.8.6 2.2.5 3 0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6 0-2.1l1-.7c1.6-1.2 4.3-1.2 5.9 0l6.6 4.7c.3.2.5.6.5 1Z"/><path fill="#b2b2b2" d="M41 293h28v4H41z"/><rect width="49.6" height="49.6" x="88.2" y="239" fill="#d3d3d3" rx="1.3" ry="1.3"/><circle cx="124.6" cy="249.6" r="2.8" fill="#b2b2b2"/><path fill="#b2b2b2" fill-rule="evenodd" d="M137.8 283.7v3.7c0 .7-.6 1.3-1.3 1.3H89.4c-.7 0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2 4.3-1.2 5.9 0l14.5 10.4h.1c.8.6 2.2.5 3 0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6 0-2.1l1-.7c1.6-1.2 4.3-1.2 5.9 0l6.6 4.7c.3.2.5.6.5 1Z"/><path fill="#b2b2b2" d="M99 293h28v4H99z"/><rect width="49.6" height="49.6" x="146.2" y="239" fill="#d3d3d3" rx="1.3" ry="1.3"/><circle cx="182.6" cy="249.6" r="2.8" fill="#b2b2b2"/><path fill="#b2b2b2" fill-rule="evenodd" d="M195.8 283.7v3.7c0 .7-.6 1.3-1.3 1.3h-47.1c-.7 0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2 4.3-1.2 5.9 0l14.5 10.4h.1c.8.6 2.2.5 3 0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6 0-2.1l1-.7c1.6-1.2 4.3-1.2 5.9 0l6.6 4.7c.3.2.5.6.5 1Z"/><path fill="#b2b2b2" d="M157 293h28v4h-28z"/><rect width="49.6" height="49.6" x="204.2" y="239" fill="#d3d3d3" rx="1.3" ry="1.3"/><circle cx="240.6" cy="249.6" r="2.8" fill="#b2b2b2"/><path fill="#b2b2b2" fill-rule="evenodd" d="M253.8 283.7v3.7c0 .7-.6 1.3-1.3 1.3h-47.1c-.7 0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2 4.3-1.2 5.9 0l14.5 10.4h.1c.8.6 2.2.5 3 0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6 0-2.1l1-.7c1.6-1.2 4.3-1.2 5.9 0l6.6 4.7c.3.2.5.6.5 1Z"/><path fill="#b2b2b2" d="M215 293h28v4h-28z"/><rect width="49.6" height="49.6" x="262.2" y="239" fill="#d3d3d3" rx="1.3" ry="1.3"/><circle cx="298.6" cy="249.6" r="2.8" fill="#b2b2b2"/><path fill="#b2b2b2" fill-rule="evenodd" d="M311.8 283.7v3.7c0 .7-.6 1.3-1.3 1.3h-47.1c-.7 0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2 4.3-1.2 5.9 0l14.5 10.4h.1c.8.6 2.2.5 3 0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6 0-2.1l1-.7c1.6-1.2 4.3-1.2 5.9 0l6.6 4.7c.3.2.5.6.5 1Z"/><path fill="#b2b2b2" d="M273 293h28v4h-28z"/><rect width="49.6" height="49.6" x="320.2" y="239" fill="#d3d3d3" rx="1.3" ry="1.3"/><circle cx="356.6" cy="249.6" r="2.8" fill="#b2b2b2"/><path fill="#b2b2b2" fill-rule="evenodd" d="M369.8 283.7v3.7c0 .7-.6 1.3-1.3 1.3h-47.1c-.7 0-1.3-.6-1.3-1.3v-3.7c0-.4.2-.8.5-1l12.9-9.3c1.6-1.2 4.3-1.2 5.9 0l14.5 10.4h.1c.8.6 2.2.5 3 0s.7-1.6-.1-2.1l-1.3-.9c-.7-.5-.7-1.6 0-2.1l1-.7c1.6-1.2 4.3-1.2 5.9 0l6.6 4.7c.3.2.5.6.5 1Z"/><path fill="#b2b2b2" d="M331 293h28v4h-28z"/></svg>',rR="12",nR="2.0.0",cw="Landingpage Elemente - Content - Kacheln",O2=1,E2=64,A2=12,hp="6",M2="https://placehold.co/768x768?text=768x768px",P2="https://placehold.co/1920x1920?text=1920x1920px",L2="(min-width: 1024px) 165px, (min-width: 768px) 200px, 50vw",Kv={5:"lg:grid-cols-5",6:"lg:grid-cols-6"},iR="grid gap-4 w-full grid-cols-2 md:grid-cols-4";function dw(a){return` 3429 <li class="relative flex flex-col items-center w-full" 3430 data-os-tile="wrap" 3431 data-gjs-copyable="false" data-gjs-removable="false" data-gjs-draggable="false"> 3432 <a href="" target="_self" title="" 3433 class="group block w-full no-underline text-copy-primary hover:text-copy-primary focus:outline-none p-1" 3434 data-track-v2-parentposition="Content" 3435 data-track-v2-parent="${cw}"
3436 data-track-v2-parentlabel="OS - Inhalt" 3437 data-track-v2-elementposition="${a}" 3438 data-track-v2-elementtype="Tile" 3439 data-track-v2-vendor="Internal" 3440 data-track-v2-link="" 3441 data-track-v2-linktype="External" 3442 data-track-v2-linkgenre="" 3443 data-track-v2-clickaction=""> 3444 <div class="mb-2 w-full aspect-square overflow-hidden rounded border border-slate-200 shadow-sm transition-shadow duration-300 group-hover:shadow-md dark:border-dark-border"> 3445 <picture class="block w-full h-full"> 3446 <source media="(max-width: 767px)" srcset="${M2} 768w" sizes="${L2}"> 3447 <source media="(min-width: 768px)" srcset="${M2} 768w, ${P2} 1920w" sizes="${L2}"> 3448 <img src="${P2}" 3449 alt="Tile Image" 3450 data-gjs-type="image" 3451 class="object-cover w-full h-full skeleton transition-transform duration-300 ease-out group-hover:scale-105"> 3452 </picture> 3453 </div> 3454 <div class="outline-none text-center text-xs font-semibold line-clamp-2">Lorem ipsum</div> 3455 </a> 3456 </li>`}function aR(){const a=Array.from({length:A2},(r,t)=>dw(t+1)).join("");return` 3457<section data-os-tiles="wrap" 3458 data-component-id="${rR}" 3459 data-component-version="${nR}" 3460 data-component-name="${cw}" 3461 data-os-tiles-count="${A2}" 3462 data-os-tiles-columns="${hp}" 3463 aria-label="Kacheln" 3464 class="relative w-screen left-1/2 -translate-x-1/2 overflow-hidden py-8 sm:py-12"> 3465 <div data-os-tiles-container="wrap" class="mx-auto px-4 sm:px-6 max-w-[960px]"> 3466 <div class="text-center max-w-3xl mx-auto mb-10 sm:mb-12 animate-fade-in"> 3467 <h2 class="text-3xl md:text-4xl font-bold mb-4">Ihre Ãberschrift</h2> 3468 <p class="max-w-[65ch] mx-auto">Ein kurzer Einleitungstext, der die folgenden Kacheln einordnet.</p> 3469 </div> 3470 <ul class="${iR} ${Kv[hp]}" 3471 data-gjs-draggable="false" data-gjs-copyable="false" data-gjs-removable="false">${a}</ul> 3472 </div> 3473</section>`}function oR(a){const{DomComponents:r,BlockManager:t}=a;r.addType("os-tiles-container",{isComponent(e){return e&&e.getAttribute&&e.getAttribute("data-os-tiles-container")==="wrap"?{type:"os-tiles-container"}:!1},model:{defaults:{draggable:!1,copyable:!1,removable:!1,droppable:!0,wide_content:!1},init(){this.on("change:wide_content",this.handleWideContentChange),this.handleWideContentChange()},handleWideContentChange(){const e=!!this.get("wide_content"),n=this.getAttributes()||{},i=String(n.class||"").split(" ").filter(o=>o&&!o.startsWith("max-w-"));i.push(e?"max-w-[1280px]":"max-w-[960px]"),this.setAttributes({...n,class:i.join(" ")})}}}),r.addType("os-tiles",{isComponent(e){return e&&e.getAttribute&&e.getAttribute("data-os-tiles")==="wrap"?{type:"os-tiles"}:!1},model:{defaults:{traits:[{type:"number",label:"Anzahl Kacheln",name:"data-os-tiles-count",min:O2,max:E2,step:1},{type:"select",label:"Kacheln pro Reihe (Desktop)",name:"data-os-tiles-columns",options:[{id:"5",name:"5 pro Reihe"},{id:"6",name:"6 pro Reihe"}]}]},init(){this.on("change:attributes:data-os-tiles-count",this.syncTileCount),this.on("change:attributes:data-os-tiles-columns",this.syncColumns)},getList(){return this.find("ul")[0]},getTiles(e){var o;const n=(o=e==null?void 0:e.components)==null?void 0:o.call(e),i=(n==null?void 0:n.models)||n||[];return Array.isArray(i)?i.filter(s=>{var c;return((c=s==null?void 0:s.get)==null?void 0:c.call(s,"tagName"))==="li"}):[]},syncTileCount(){const e=this.getList();if(!e)return;const n=this.getAttributes()["data-os-tiles-count"],i=parseInt(String(n??""),10);if(isNaN(i))return;const o=Math.max(O2,Math.min(E2,i)),s=e.components(),c=this.getTiles(e),d=c.length;if(typeof console<"u"&&console.debug("[tiles] count",{raw:n,count:o,current:d}),d<o){const f=Array.from({length:o-d},(g,m)=>dw(d+m+1)).join("");s.add(f)}else d>o&&c.slice(o).forEach(f=>{var g;return(g=f==null?void 0:f.remove)==null?void 0:g.call(f)});this.syncColumns(),String(o)!==String(n)&&this.addAttributes({"data-os-tiles-count":String(o)})},syncColumns(){const e=this.getList();if(!e)return;const n=String(this.getAttributes()["data-os-tiles-columns"]||hp),i=Kv[n]||Kv[hp],o=e.getAttributes()||{},s=String(o.class||"").split(" ").filter(d=>d&&!d.startsWith("lg:grid-cols-"));s.push(i);const c=s.join(" ");typeof console<"u"&&console.debug("[tiles] columns",{value:n,target:i,before:o.class,next:c}),c!==o.class&&e.setAttributes({...o,class:c})}}}),t.add("tiles",{label:"Kacheln",category:"content",attributes:{"data-os-page-type":"both","data-os-group":"Landingpage Elemente"},media:eR,content:aR()})}function yu(a=document){var n;const r=(a instanceof Document?a.defaultView:(n=a.ownerDocument)==null?void 0:n.defaultView)||window,t=r.Swiper;if(typeof t>"u")return;a.querySelectorAll(".swiper").forEach(i=>
3473{try{if(i.swiper){i.swiper.update();return}const o=i.getAttribute("data-swiper")||"{}";let s={};try{s=JSON.parse(o)}catch{console.error("Invalid swiper config:",o),s={}}const c=r.location.pathname.includes("/grapes/")||r.parent&&r.parent.location.pathname.includes("/grapes/")||r.frameElement&&r.frameElement.closest(".gjs-cv-canvas");c&&(console.log("Initializing Swiper in Editor mode for:",i),s={...s,allowTouchMove:!0,simulateTouch:!0,autoplay:!1});const d=new t(i,s);c&&i.querySelectorAll(".swiper-button-prev, .swiper-button-next").forEach(g=>{g.setAttribute("data-gjs-selectable","false"),g.setAttribute("data-gjs-hoverable","false"),g.setAttribute("data-gjs-draggable","false"),g.setAttribute("data-gjs-removable","false"),g.addEventListener("mousedown",m=>m.stopPropagation(),{capture:!0}),g.addEventListener("click",m=>{m.stopPropagation(),g.classList.contains("swiper-button-next")?d.slideNext():d.slidePrev()},{capture:!0})}),console.log("Swiper initialized:",i)}catch(o){console.error("Failed to initialize Swiper:",o)}})}function bu(a,r=window,t=5e3){const e=Date.now(),n=()=>
3473{if(typeof r.Swiper<"u"){a();return}Date.now()-e<t?setTimeout(n,100):console.error("Swiper load timeout in target window")};n()}const sR="47",lR="1.2.0",cR="Landingpage Elemente - Content - Bento",dR="Landingpage Elemente",uR="aboshop",ze={wrap:"os-bento-wrap",container:"os-bento-container",header:"os-bento-header",heading:"os-bento-heading",subtext:"os-bento-subtext",row:"os-bento-row",grid:"os-bento-grid",tile:"os-bento-tile",label:"os-bento-label",stat:"os-bento-stat",desc:"os-bento-desc",media:"os-bento-media",slot:"os-bento-slot"},Fo=2,$o=6,fR=3,sd="data-bento-key",Gv="data-bento-header",D2="https://placehold.co/768x576?text=768x576px",I2="https://placehold.co/1920x1440?text=1920x1440px",uw="Ihre überzeugende Headline",pR="Kontexte und Hintergründe, denen Sie vertrauen können.",ba=(a,r)=>{var t;return((t=a.classList)==null?void 0:t.contains(r))||!1},Yv=(a,r,t)=>Math.min(t,Math.max(r,Number.isFinite(a)?a:r)),Xv=a=>a.split(" ").filter(Boolean),fw=()=>`b${Math.random().toString(36).slice(2,10)}`,Do=a=>String(a.getAttributes()[sd]||""),hR=(a,r)=>{a.addClass("animate-slide-up");const t=a.getAttributes(),e=String(t.style||"").split(";").map(n=>n.trim()).filter(n=>n&&!n.startsWith("animation-delay:"));e.push(`animation-delay: ${(r+1)*100}ms`),a.addAttributes({...t,style:e.join("; ")+";"})},xu=(a,r,t,e)=>{Xv(r?e:t).forEach(n=>a.removeClass(n)),Xv(r?t:e).forEach(n=>a.addClass(n))},j2=a=>{var e,n;const r=a,t=typeof r.getView=="function"?r.getView():r.view;(e=t==null?void 0:t.updateAttributes)==null||e.call(t),(n=t==null?void 0:t.updateClasses)==null||n.call(t)},gR={editable:!0,droppable:!1,draggable:!1,copyable:!1,removable:!1},vR="os-bento-header text-center max-w-3xl mx-auto mb-10 sm:mb-16 animate-fade-in",mR="os-bento-heading text-3xl md:text-4xl font-bold mb-4",yR="os-bento-subtext max-w-[65ch] mx-auto",bR="os-bento-tile relative rounded-2xl border p-6 flex flex-col justify-center gap-1 cursor-pointer shadow-sm transition-shadow duration-300 hover:shadow-md outline-none focus-visible:ring-2 focus-visible:ring-brand-primary-500 animate-slide-up",Gc="bg-white border-slate-200 dark:bg-dark-surface dark:border-dark-border text-copy-primary",ol="bg-brand-primary-500 border-transparent text-white",pw="pointer-events-auto z-10",hw="pointer-events-none z-0",xR="md:w-[55%]",gw="md:-ml-[5%]",vw="md:-mr-[5%]",wR=["md:w-1/2","md:-ml-[20%]","md:-mr-[20%]",gw,vw],N2=[{label:"Leistung",stat:"A15 Bionic",desc:"Schneller Chip für flüssiges Arbeiten und Multitasking."},{label:"Akku",stat:"10 Std.",desc:"Ein ganzer Tag Nutzung ohne Nachladen."},{label:"Display",stat:'10,9"',desc:"Liquid Retina Display mit True Tone."},{label:"Speicher",stat:"64â256 GB",desc:"Genug Platz für Fotos, Apps und Dokumente."},{label:"Kamera",stat:"12 MP",desc:"Scharfe Fotos und Videos in jeder Situation."},{label:"Gewicht",stat:"477 g",desc:"Leicht genug für unterwegs, stabil genug für den Alltag."}],_R='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><rect width="140" height="18" x="130" y="58" fill="#757575" rx="6"/><rect width="190" height="10" x="105" y="86" fill="#d3d3d3" rx="5"/><rect width="165" height="185" x="205" y="130" fill="#d3d3d3" rx="14"/><rect width="165" height="185" x="195" y="142" fill="#efefef" rx="14"/><circle cx="232" cy="182" r="13" fill="#b2b2b2"/><path fill="#b2b2b2" d="m203 313 45-61 33 40 24-24 47 45z"/><rect width="81" height="90" x="30" y="125" fill="#757575" rx="10"/><rect width="32" height="6" x="42" y="143" fill="#efefef" rx="3"/><rect width="52" height="14" x="42" y="157" fill="#efefef" rx="4"/><rect width="57" height="6" x="42" y="179" fill="#efefef" rx="3"/><rect width="38" height="6" x="42" y="191" fill="#efefef" rx="3"/><rect width="81" height="90" x="124" y="125" fill="#d3d3d3" rx="10"/><rect width="32" height="6" x="136" y="143" fill="#b2b2b2" rx="3"/><rect width="52" height="14" x="136" y="157" fill="#b2b2b2" rx="4"/><rect width="57" height="6" x="136" y="179" fill="#b2b2b2" rx="3"/><rect width="38" height="6" x="136" y="191" fill="#b2b2b2" rx="3"/><rect width="81" height="90" x="30" y="225" fill="#d3d3d3" rx="10"/><rect width="32" height="6" x="42" y="243" fill="#b2b2b2" rx="3"/><rect width="52" height="14" x="42" y="257" fill="#b2b2b2" rx="4"/><rect width="57" height="6" x="42" y="279" fill="#b2b2b2" rx="3"/><rect width="38" height="6" x="42" y="291" fill="#b2b2b2" rx="3"/><rect width="81" height="90" x="124" y="225" fill="#d3d3d3" rx="10"/><rect width="32" height="6" x="136" y="243" fill="#b2b2b2" rx="3"/><rect width="52" height="14" x="136" y="257" fill="#b2b2b2" rx="4"/><rect width="57" height="6" x="136" y="279" fill="#b2b2b2" rx="3"/><rect width="38" height="6" x="136" y="291" fill="#b2b2b2" rx="3"/></svg>
3473',mw=(a=uw,r=pR)=>` 3474 <div data-gjs-type="${ze.header}" class="${vR}"> 3475 <h2 data-gjs-type="${ze.heading}" class="${mR}">${a}</h2> 3476 <p data-gjs-type="${ze.subtext}" class="${yR}">${r}</p> 3477 </div>`,CR=(a,r)=>{const t=N2[a%N2.length],e=a===0;return` 3478 <div 3479 data-gjs-type="${ze.tile}" 3480 ${sd}="${r}" 3481 class="${bR} ${e?ol:Gc}" 3482 role="button" 3483 tabindex="0" 3484 aria-pressed="${e?"true":"false"}"> 3485 <div data-gjs-type="${ze.label}" class="os-bento-label text-xs font-bold uppercase tracking-wider opacity-70">${t.label}</div> 3486 <div data-gjs-type="${ze.stat}" class="os-bento-stat text-4xl font-black">${t.stat}</div> 3487 <div data-gjs-type="${ze.desc}" class="os-bento-desc text-sm leading-snug opacity-80">${t.desc}</div> 3488 </div>`},yw=(a,r)=>` 3489 <picture class="os-bento-slot absolute inset-0 transition-opacity duration-300 ${r?pw:hw}" data-gjs-type="${ze.slot}" ${sd}="${a}" style="opacity: ${r?1:0};"> 3490 <source media="(max-width: 767px)" srcset="${D2} 768w" sizes="100vw"> 3491 <source media="(min-width: 768px)" srcset="${D2} 768w, ${I2} 1920w" sizes="50vw"> 3492 <img src="${I2}" alt="" class="w-full h-full object-contain"> 3493 </picture>`;function kR(){const a=this;if(a.__osBentoInit)return;a.__osBentoInit=!0;const r=window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches,t=r?0:350,e=r?0:500,n=Math.max(e,150),i=S=>(S||"").split(" ").filter(Boolean),o=i(a.getAttribute("data-bento-active-classes")),s=i(a.getAttribute("data-bento-inactive-classes")),c=()=>Array.prototype.slice.call(a.querySelectorAll(".os-bento-tile")),d=()=>Array.prototype.slice.call(a.querySelectorAll(".os-bento-slot")),f=S=>o.length?o.every(A=>S.classList.contains(A)):S.getAttribute("aria-pressed")==="true",g=(S,A)=>{const L=S.getAttribute("data-bento-key"),D=d();if(L){for(let W=0;W<D.length;W++)if(D[W].getAttribute("data-bento-key")===L)return D[W]}return D[A]||null},m=S=>{const A=S,L=A&&A.closest?A.closest(".os-bento-tile"):null;return L&&a.contains(L)?L:null};let y=!1,x=null,w;const k=S=>{if(x=S,y||f(S))return;const A=c(),L=A.indexOf(S);if(L<0)return;y=!0;const D=["background-color","border-color","color"].map(j=>j+" "+t+"ms ease-in-out").join(", ");A.forEach(j=>{const et=j===S;j.style.transition=D,s.forEach(z=>j.classList.toggle(z,!et)),o.forEach(z=>j.classList.toggle(z,et)),j.setAttribute("aria-pressed",et?"true":"false")});const W=g(S,L);d().forEach(j=>{const et=j===W;j.style.transition="opacity "+e+"ms "+(et?"ease-out":"ease-in"),j.style.opacity=et?"1":"0",j.classList.toggle("pointer-events-auto",et),j.classList.toggle("z-10",et),j.classList.toggle("pointer-events-none",!et),j.classList.toggle("z-0",!et)}),setTimeout(()=>{y=!1,x&&x!==S&&k(x)},n)};a.addEventListener("click",S=>{const A=m(S.target);A&&k(A)}),a.addEventListener("mouseover",S=>{const A=m(S.target);!A||A.contains(S.relatedTarget)||(clearTimeout(w),w=setTimeout(()=>k(A),130))}),a.addEventListener("mouseout",S=>{const A=m(S.target);!A||A.contains(S.relatedTarget)||clearTimeout(w)}),a.addEventListener("keydown",S=>{if(S.key!=="Enter"&&S.key!==" ")return;const A=S.target;if(A&&A.isContentEditable)return;const L=m(A);L&&(S.preventDefault(),k(L))})}const SR=a=>{const r=Yv(a,Fo,$o),t=Array.from({length:r},()=>fw());return` 3494<section 3495 data-component-id="${sR}" 3496 data-component-version="${lR}" 3497 data-component-name="${cR}" 3498 data-gjs-type="${ze.wrap}" 3499 data-os-media-position="right" 3500 ${Gv}="1" 3501 data-bento-active-classes="${ol}" 3502 data-bento-inactive-classes="${Gc}" 3503 class="relative w-screen left-1/2 -translate-x-1/2 overflow-hidden py-8 sm:py-12"> 3504 <div data-gjs-type="${ze.container}" class="os-bento-container mx-auto px-4 sm:px-6 max-w-[960px]"> 3505 ${mw()} 3506 <div data-gjs-type="${ze.row}" class="os-bento-row flex flex-col md:flex-row items-stretch"> 3507 <div data-gjs-type="${ze.grid}" class="os-bento-grid relative z-10 w-full md:w-1/2 grid grid-cols-1 md:grid-cols-2 gap-4"> 3508 ${t.map((e,n)=>CR(n,e)).join("")} 3509 </div> 3510 <div data-gjs-type="${ze.media}" class="os-bento-media hidden md:block relative z-0 w-full md:w-[55%] md:-ml-[5%] rounded-2xl overflow-hidden"> 3511 ${t.map((e,n)=>yw(e,n===0)).join("")} 3512 </div> 3513 </div> 3514 </div> 3515</section>`};function TR(a){const r=a.DomComponents,t=(o,s,c,d={})=>{r.addType(o,{extend:"text",isComponent:f=>ba(f,s),model:{defaults:{name:c,...gR,...d}}})};t(ze.heading,"os-bento-heading","Ãberschrift",{tagName:"h2",removable:!0}),t(ze.subtext,"os-bento-subtext","Subtext",{tagName:"p",removable:!0}),t(ze.label,"os-bento-label","Kachel-Label",{layerable:!1}),t(ze.stat,"os-bento-stat","Kachel-Wert",{layerable:!1}),t(ze.desc,"os-bento-desc","Kachel-Beschreibung",{layerable:!1}),r.addType(ze.header,{isComponent:o=>ba(o,"os-bento-header"),model:{defaults:{name:"Kopfbereich",droppable:!1,draggable:!1,
3515copyable:!1,removable:!1,selectable:!1,hoverable:!1}}}),r.addType(ze.tile,{isComponent:o=>ba(o,"os-bento-tile"),model:{defaults:{name:"Kachel",droppable:!1,draggable:".os-bento-grid",copyable:!0,removable:!0}}}),r.addType(ze.grid,{isComponent:o=>ba(o,"os-bento-grid"),model:{defaults:{name:"Kachel-Raster",droppable:".os-bento-tile",draggable:!1,copyable:!1,removable:!1,selectable:!1,hoverable:!1}}}),r.addType(ze.slot,{isComponent:o=>ba(o,"os-bento-slot"),model:{defaults:{name:"Bild-Ebene",draggable:!1,copyable:!1,removable:!1,selectable:!1,hoverable:!1}}}),r.addType(ze.media,{isComponent:o=>ba(o,"os-bento-media"),model:{defaults:{name:"Bild-Spalte",droppable:!1,draggable:!1,copyable:!1,removable:!1,selectable:!1,hoverable:!1}}}),r.addType(ze.row,{isComponent:o=>ba(o,"os-bento-row"),model:{defaults:{name:"Zeile",droppable:!1,draggable:!1,copyable:!1,removable:!1,selectable:!1,hoverable:!1}}}),r.addType(ze.container,{isComponent:o=>ba(o,"os-bento-container"),model:{defaults:{name:"Breiten-Container",tagName:"div",draggable:!1,copyable:!1,removable:!1,droppable:!1,wide_content:!1},init(){this.on("change:wide_content",this.applyWidth),a.on("load",()=>this.readWidthFromDom()),setTimeout(()=>this.readWidthFromDom(),0)},readWidthFromDom(){const o=this.getClasses().includes("max-w-[1280px]");this._syncing=!0,this.set("wide_content",o),this._syncing=!1},applyWidth(){if(this._syncing)return;const o=this.get("wide_content")===!0;this.getClasses().filter(s=>/^max-w-\[\d+px]$/.test(s)).forEach(s=>this.removeClass(s)),this.addClass(`max-w-[${o?1280:960}px]`)},_syncing:!1}}),r.addType(ze.wrap,{isComponent:o=>ba(o,"os-bento-wrap"),model:{defaults:{name:"Bento-Grid",droppable:!1,script:kR,traits:[{type:"select",name:"tileCount",label:"Anzahl Kacheln",options:Array.from(Array($o-Fo+1).keys(),o=>{const s=String(Fo+o);return{id:s,name:`${s} Kacheln`}}),changeProp:!0},{type:"select",name:"activeTile",label:"Aktive Kachel",options:Array.from(Array($o).keys(),o=>({id:String(o),name:`Kachel ${o+1}`})),changeProp:!0},{type:"select",name:"mediaPosition",label:"Bild-Position",options:[{id:"right",name:"Rechts (Standard)"},{id:"left",name:"Links"}],changeProp:!0}]},_syncing:!1,init(){this.on("change:tileCount",this.syncTiles),this.on("change:activeTile",this.applyActiveTile),this.on("change:mediaPosition",this.applyMediaPosition),a.on("load",()=>this.readFromDom()),setTimeout(()=>this.readFromDom(),0)},container(){return this.findType(ze.container)[0]},grid(){return this.findType(ze.grid)[0]},media(){return this.findType(ze.media)[0]},row(){return this.findType(ze.row)[0]},tiles(){const o=this.grid();return o?o.components().filter(s=>s.get("type")===ze.tile):[]},slots(){const o=this.media();return o?o.components().filter(s=>s.get("type")===ze.slot):[]},slotFor(o){const s=Do(o);return s?this.slots().find(c=>Do(c)===s):void 0},ensureHeader(){if(this.getAttributes()[Gv])return;const o=this.container();if(o){if(!this.findType(ze.header).length){const s=this.findType(ze.heading)[0],c=s?s.getInnerHTML().trim():"";s==null||s.remove(),o.append(mw(c||uw),{at:0})}this.addAttributes({[Gv]:"1"})}},removeEmptyHeader(){this.findType(ze.header).forEach(o=>{o.components().filter(c=>c.get("type")!=="textnode").length||o.remove()})},ensureSlots(){const o=this.media(),s=this.tiles();if(!o||!s.length)return!1;let c=!1;const d=new Set,f=new Map;s.forEach(y=>{const x=Do(y);if(x&&!d.has(x)){d.add(x);return}const w=fw();x&&f.set(y,x),y.addAttributes({[sd]:w}),d.add(w),c=!0});const g=new Map,m=[];
3515return this.slots().forEach(y=>{const x=Do(y);x&&d.has(x)&&!g.has(x)?g.set(x,y):m.push(y)}),s.forEach(y=>{const x=Do(y);if(g.has(x))return;const w=f.get(y),k=w?g.get(w):void 0;let S;k?(S=k.clone(),o.append(S)):m.length?S=m.shift():S=o.append(yw(x,!1))[0],S&&(S.addAttributes({[sd]:x}),g.set(x,S),c=!0)}),m.forEach(y=>{y.remove(),c=!0}),c},readFromDom(){const o=this.tiles();if(!o.length)return;this.ensureHeader(),this.removeEmptyHeader(),o.forEach(hR),o.forEach(m=>m.removeClass("select-none"));const s=this.grid();s&&s.getClasses().includes("grid-cols-2")&&(s.removeClass("grid-cols-2"),s.addClass("grid-cols-1"),s.addClass("md:grid-cols-2"));const c=this.ensureSlots(),d=Xv(ol);let f=o.findIndex(m=>d.every(y=>m.getClasses().includes(y)));f<0&&(f=o.findIndex(m=>String(m.getAttributes()["aria-pressed"])==="true"));const g=this.getAttributes()["data-os-media-position"]==="left"?"left":"right";this._syncing=!0,this.set({tileCount:String(o.length),activeTile:String(Math.max(f,0)),mediaPosition:g}),this._syncing=!1,(c||f<0)&&this.applyActiveTile(),this.applyMediaPosition()},syncTiles(){if(this._syncing)return;const o=Yv(parseInt(this.get("tileCount"),10),Fo,$o),s=this.grid(),c=this.tiles();if(!(!s||!c.length)){if(o>c.length){const d=c[c.length-1];for(let f=c.length;f<o;f++){const g=d.clone();xu(g,!1,ol,Gc),g.addAttributes({"aria-pressed":"false"}),s.append(g)}}else o<c.length&&c.slice(o).forEach(d=>d.remove());this.readFromDom()}},applyActiveTile(){if(this._syncing)return;const o=this.tiles();if(!o.length)return;const s=Yv(parseInt(this.get("activeTile"),10),0,o.length-1);String(s)!==String(this.get("activeTile"))&&this.set("activeTile",String(s),{silent:!0});const c=Do(o[s]);o.forEach((d,f)=>{const g=f===s;xu(d,g,ol,Gc),d.addAttributes({"aria-pressed":g?"true":"false"}),j2(d)}
3515),this.slots().forEach(d=>{const f=!!c&&Do(d)===c;d.addStyle({opacity:f?"1":"0"}),xu(d,f,pw,hw),j2(d)})},applyMediaPosition(){if(this._syncing)return;const o=this.get("mediaPosition")==="left"?"left":"right";this.addAttributes({"data-os-media-position":o});const s=this.row(),c=this.media();if(s&&(o==="left"?s.addClass("md:flex-row-reverse"):s.removeClass("md:flex-row-reverse"),c)){const d=o==="left"?vw:gw;wR.filter(f=>f!==d).forEach(f=>c.removeClass(f)),c.addClass(xR),c.addClass(d)}}}});const e=[ze.tile,ze.heading,ze.subtext];let n;const i=o=>{e.includes(String(o.get("type")||""))&&(window.clearTimeout(n),n=window.setTimeout(()=>{const s=a.getWrapper();s&&s.findType(ze.wrap).forEach(c=>{const d=c,f=d.tiles();if(f.length>$o&&(f.slice($o).forEach(g=>g.remove()),a.log(`Maximal ${$o} Kacheln.`,{level:"warning",ns:"os-bento"})),f.length<Fo&&f.length){const g=d.grid(),m=f[f.length-1];for(;d.tiles().length<Fo;){const y=m.clone();xu(y,!1,ol,Gc),y.addAttributes({"aria-pressed":"false"}),g.append(y)}a.log(`Mindestens ${Fo} Kacheln.`,{level:"warning",ns:"os-bento"})}d.readFromDom()})},30))};a.on("component:add",i),a.on("component:remove",i),a.BlockManager.add("os-bento",{label:"Bento-Grid",category:{id:"content",label:"Content"},attributes:{"data-os-group":dR,"data-os-page-type":uR},media:_R,content:SR(fR)})}const OR="41",ER="1.0.0",AR="Landingpage Elemente - Content - Testimonials",MR="Landingpage Elemente",PR="aboshop",Fr={wrap:"os-testi-wrap",track:"os-testi-track",card:"os-testi-card",quote:"os-testi-quote",name:"os-testi-name",starsWrap:"os-testi-stars",starIcon:"os-testi-star"},zo=2,Ga=5,R2=3,B2=5,bw=5,Gu="material-symbols:star",gp="#e67e22",Jv=(a,r,t)=>Math.min(t,Math.max(r,Number.isFinite(a)?a:r)),xw=(a,r)=>{const t=/^#?([a-f\d]{3}|[a-f\d]{6})$/i.exec((a||"").trim());if(!t)return"transparent";let e=t[1];e.length===3&&(e=e.split("").map(s=>s+s).join(""));const n=parseInt(e.slice(0,2),16),i=parseInt(e.slice(2,4),16),o=parseInt(e.slice(4,6),16);return`rgba(${n}, ${i}, ${o}, ${r})`},Io=(a,r)=>{var t;return((t=a.classList)==null?void 0:t.contains(r))||!1},V2={draggable:!1,droppable:!1,copyable:!1,removable:!1,selectable:!1,editable:!1,layerable:!1,hoverable:!1},H2={type:"text",editable:!0,droppable:!1,draggable:!1,copyable:!1,removable:!1,layerable:!1},F2=[{quote:"Die Kombination aus Print und Digital ist perfekt für meinen Alltag. Morgens die Zeitung, unterwegs die App â besser geht's nicht!",name:"Anna M."},{quote:"Super Kundenservice und eine wirklich intuitive App. Ich bin seit über einem Jahr treuer Digital-Abonnent.",name:"Jürgen T."},{quote:"Das Tablet-Angebot hat mich überzeugt. Top-Gerät und immer die neuesten Nachrichten direkt zur Hand.",name:"Sabine K."},{quote:"Der Wechsel war unkompliziert und der Kundenservice hat mir bei allen Fragen sofort geholfen.",name:"Michael R."},{quote:"Endlich eine App, die wirklich zuverlässig funktioniert. Ich lese jeden Morgen meine Zeitung digital.",name:"Petra S."}],LR=a=>{const r=F2[a%F2.length];return` 3516 <div class="os-testi-card min-w-[300px] md:min-w-[350px] snap-center bg-white p-8 rounded-2xl border border-slate-200 shadow-sm hover:shadow-md transition-shadow duration-300 animate-slide-up dark:bg-dark-surface dark:border-dark-border" data-gjs-type="${Fr.card}"> 3517 <p class="os-testi-quote italic text-copy-secondary mb-6" data-gjs-type="${Fr.quote}">"${r.quote}"</p> 3518 <div class="os-testi-name font-bold text-copy-primary" data-gjs-type="${Fr.name}">${r.name}</div> 3519 </div>`},DR=a=>Array.from({length:a},()=>`<iconify-icon data-gjs-type="${Fr.starIcon}" class="os-testi-star text-2xl" icon="${Gu}" style="color: ${gp};" aria-hidden="true"></iconify-icon>`).join(""),IR=a=>{const r=Jv(a,zo,Ga);return` 3520<section 3521 data-component-id="${OR}" 3522 data-component-version="${ER}" 3523 data-component-name="${AR}" 3524 data-gjs-type="${Fr.wrap}" 3525 class="relative w-screen left-1/2 -translate-x-1/2 overflow-hidden py-8 sm:py-12"> 3526 <div data-showcase-container="wrap" class="mx-auto px-4 sm:px-6 max-w-[960px]"> 3527 <div class="flex flex-col items-center text-center mb-12"> 3528 <h2 class="font-display text-3xl font-bold text-copy-primary mb-4">Was unsere Leser sagen</h2> 3529 <div class="os-testi-stars flex gap-1 px-8 py-3 rounded-full" data-gjs-type="${Fr.starsWrap}" style="background: radial-gradient(ellipse at center, ${xw(gp,.18)} 0%, transparent 70%);">${DR(bw)}</div> 3530 </div> 3531 <div class="os-testi-track flex overflow-x-auto snap-x snap-mandatory gap-6 pb-8 no-scrollbar" data-gjs-type="${Fr.track}"> 3532 ${Array.from({length:r},(t,e)=>LR(e)).join("")} 3533 </div> 3534 </div> 3535</section>`};function jR(a){const r=a.DomComponents;r.addType(Fr.quote,{extend:"text",isComponent:i=>Io(i,"os-testi-quote"),model:{defaults:{name:"Zitat",...H2}}}),r.addType(Fr.name,{extend:"text",isComponent:i=>Io(i,"os-testi-name"),model:{defaults:{name:"Name",...H2}}}),r.addType(Fr.starIcon,{isComponent:i=>Io(i,"os-testi-star"),model:{defaults:{name:"Stern",tagName:"iconify-icon",...V2}}}),r.addType(Fr.starsWrap,{isComponent:i=>Io(i,"os-testi-stars"),model:{defaults:{name:"Sternebewertung",...V2}}}),r.addType(Fr.card,{isComponent:i=>Io(i,"os-testi-card"),model:{defaults:{name:"Testimonial-Karte",droppable:!1,draggable:".os-testi-track",copyable:!0,removable:!0,toolbar:[{attributes:{class:"fa fa-arrow-up",title:"Block auswählen"},command:"os-testi:select-wrap"},{attributes:{class:"fa fa-clone",title:"Karte duplizieren"},command:"os-testi:card-clone"}
3535,{attributes:{class:"fa fa-trash",title:"Karte löschen"},command:"os-testi:card-remove"}]}}}),r.addType(Fr.track,{isComponent:i=>Io(i,"os-testi-track"),model:{defaults:{name:"Karten-Reihe",droppable:".os-testi-card",draggable:!1,copyable:!1,removable:!1,selectable:!1,hoverable:!1}}}),r.addType(Fr.wrap,{isComponent:i=>Io(i,"os-testi"),model:{defaults:{name:"Testimonials",droppable:!1,toolbar:[{attributes:{class:"fa fa-arrows",title:"Verschieben"},command:"tlb-move"},{attributes:{class:"fa fa-trash",title:"Löschen"},command:"tlb-delete"}],traits:[{type:"number",name:"cardCount",label:`Anzahl Karten (${zo}â${Ga})`,min:zo,max:Ga,step:1,changeProp:!0},{type:"text",name:"icon",label:"Sterne-Icon (Iconify)",placeholder:Gu,changeProp:!0},{type:"color",name:"starColor",label:"Sternfarbe",changeProp:!0},{type:"select",name:"starCount",label:`Anzahl Sterne (${R2}â${B2})`,options:[{id:"3",name:"3"},{id:"4",name:"4"},{id:"5",name:"5"}],changeProp:!0}]},_syncing:!1,init(){this.on("change:cardCount",this.syncCards),this.on("change:icon",this.syncIcon),this.on("change:starColor",this.syncStarColor),this.on("change:starCount",this.syncStarCount),a.on("load",()=>this.readFromDom()),setTimeout(()=>this.readFromDom(),0)},track(){return this.findType(Fr.track)[0]},starsWrap(){return this.findType(Fr.starsWrap)[0]},cards(){const i=this.track();return i?i.components().filter(o=>o.get("type")===Fr.card):[]},starIcons(){return this.findType(Fr.starIcon)},readFromDom(){var d,f,g;const i=this.cards();if(!i.length)return;const o=this.starIcons(),s=((d=o[0])==null?void 0:d.getAttributes().icon)||Gu,c=((g=(f=o[0])==null?void 0:f.getStyle())==null?void 0:g.color)||gp;this._syncing=!0,this.set({cardCount:i.length,icon:s,starColor:c,starCount:String(o.length||bw)}),this._syncing=!1},syncCards(){if(this._syncing)return;const i=Jv(parseInt(this.get("cardCount"),10),zo,Ga);i!==this.get("cardCount")&&this.set("cardCount",i,{silent:!0});const o=this.track(),s=this.cards();if(!(!o||!s.length))if(i>s.length){const c=s[s.length-1];for(let d=s.length;d<i;d++)o.append(c.clone())}else for(let c=s.length;c>i;c--)s[c-1].remove()},syncIcon(){if(this._syncing)return;const i=(this.get("icon")||"").trim()||Gu;this.starIcons().forEach(o=>o.addAttributes({icon:i}))},syncStarColor(){var o;if(this._syncing)return;const i=(this.get("starColor")||"").trim()||gp;this.starIcons().forEach(s=>s.addStyle({color:i})),(o=this.starsWrap())==null||o.addStyle({background:`radial-gradient(ellipse at center, ${xw(i,.18)} 0%, transparent 70%)`})},syncStarCount(){if(this._syncing)return;const i=Jv(parseInt(this.get("starCount"),10),R2,B2);String(i)!==this.get("starCount")&&this.set("starCount",String(i),{silent:!0});const o=this.starsWrap(),s=this.starIcons();if(!(!o||!s.length))if(i>s.length){const c=s[s.length-1];for(let d=s.length;d<i;d++)o.append(c.clone())}else for(let c=s.length;c>i;c--)s[c-1].remove()}}});const t=i=>{let o=i;for(;o&&o.get("type")!==Fr.wrap;)o=o.parent();return o};a.Commands.add("os-testi:select-wrap",{run(i){const o=i.getSelected(),s=o&&t(o);s&&i.select(s)}}),a.Commands.add("os-testi:card-clone",{run(i){var d;const o=i.getSelected(),s=o&&t(o);if(!o||!s)return;if(s.cards().length>=Ga){i.log(`Maximal ${Ga} Karten.`,{level:"warning",ns:"os-testi"});return}const c=o.clone();(d=o.parent())==null||d.append(c,{at:o.index()+1}),s.readFromDom()}}),a.Commands.add("os-testi:card-remove",{run(i){const o=i.getSelected(),s=o&&t(o);if(!(!o||!s)){if(s.cards().length<=zo){i.log(`Mindestens ${zo} Karten.`,{level:"warning",ns:"os-testi"});return}o.remove(),s.readFromDom(),i.select(s)}}});let e;const n=i=>{if(i.get("type")!==Fr.card)return;const o=t(i);o&&(window.clearTimeout(e),e=window.setTimeout(()=>{const s=o.cards();if(s.length){if(s.length>Ga){s[s.length-1].remove(),a.log(`Maximal ${Ga} Karten.`,{level:"warning",ns:"os-testi"});return}o.readFromDom()}},30))};a.on("component:add",n),a.on("component:remove",n),a.BlockManager.add("os-testimonials",{label:"Testimonials",category:{id:"content",label:"Content"},attributes:{"data-os-group":MR,"data-os-page-type":PR},media:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><rect x="104" y="48" width="192" height="16" rx="8" fill="#6b7280"/><rect x="136" y="76" width="128" height="10" rx="5" fill="#9ca3af"/><path d="m168 111 4.4 9 9.6 1.4-7 6.8 1.7 9.6-8.7-4.6-8.7 4.6 1.7-9.6-7-6.8 9.6-1.4Zm24 0 4.4 9 9.6 1.4-7 6.8 1.7 9.6-8.7-4.6-8.7 4.6 1.7-9.6-7-6.8 9.6-1.4Zm24 0 4.4 9 9.6 1.4-7 6.8 1.7 9.6-8.7-4.6-8.7 4.6 1.7-9.6-7-6.8 9.6-1.4Zm24 0 4.4 9 9.6 1.4-7 6.8 1.7 9.6-8.7-4.6-8.7 4.6 1.7-9.6-7-6.8 9.6-1.4Zm24 0 4.4 9 9.6 1.4-7 6.8 1.7 9.6-8.7-4.6-8.7 4.6 1.7-9.6-7-6.8 9.6-1.4Z" fill="#9ca3af"/><rect x="28" y="164" width="156" height="176" rx="14" fill="#f3f4f6" stroke="#d1d5db" stroke-width="4"/><path d="M57 205h-13v-10h16v18H50v-8h7Zm30 0H74v-10h16v18H80v-8h7Z" fill="#9ca3af"/><rect x="48" y="230" width="116" height="9" rx="4.5" fill="#9ca3af"/><rect x="48" y="248" width="96" height="9" rx="4.5" fill="#d1d5db"/><rect x="48" y="284" width="70" height="10" rx="5" fill="#6b7280"/><rect x="216" y="164" width="156" height="176" rx="14" fill="#f3f4f6" stroke="#d1d5db" stroke-width="4"/><path d="M245 205h-13v-10h16v18h-10v-8h7Zm30 0h-13v-10h16v18h-10v-8h7Z" fill="#9ca3af"/><rect x="236" y="230" width="116" height="9" rx="4.5" fill="#9ca3af"/><rect x="236" y="248" width="96" height="9" rx="4.5" fill="#d1d5db"/><rect x="236" y="284" width="70" height="10" rx="5" fill="#6b7280"/></svg>',content:IR(zo)})}function NR(a){let r=a;if(typeof r=="string")try{r=JSON.parse(r)}catch{return null}return!r||typeof r!="object"||!("success"in r)||r.success!==!0?null:r}const ww=new WeakMap;function _w(a){const r=ww.get(a);return r?r.save():Promise.reject(new Error("Die zentrale Speichersteuerung ist noch nicht initialisiert."))}function RR(a,r={}){let t=!1,e=0,n=null,i=null;const o=new Map,s=new Set,c=r.autosaveDelayMs??1200,d=()=>
3535{t=!1,s.forEach(j=>j()),s.clear()};a.on("storage:start:store",()=>{t=!0,e+=1}),a.on("storage:store",(j,et)=>{o.set(e,et),o.size>20&&o.delete(o.keys().next().value)}),a.on("storage:end:store",d),a.on("storage:error:store",d);const f=async()=>{t&&await new Promise(j=>s.add(j))},g=(j,et)=>{const z=[];let B=et;for(;B&&B!==j;){const X=B.parentNode;if(!X)return null;z.unshift(Array.prototype.indexOf.call(X.childNodes,B)),B=X}return B===j?z:null},m=(j,et)=>{let z=j;for(const B of et){const X=z.childNodes.item(B);if(!X)return null;z=X}return z},y=j=>{const et=j.ownerDocument.getSelection();if(!(et!=null&&et.anchorNode)||!et.focusNode)return null;const z=g(j,et.anchorNode),B=g(j,et.focusNode);return!z||!B?null:{anchorPath:z,anchorOffset:et.anchorOffset,focusPath:B,focusOffset:et.focusOffset}},x=(j,et)=>{var Z;if(!et)return;const z=m(j,et.anchorPath),B=m(j,et.focusPath);if(!z||!B)return;const X=F=>{var st;return F.nodeType===3?((st=F.textContent)==null?void 0:st.length)??0:F.childNodes.length};(Z=j.ownerDocument.getSelection())==null||Z.setBaseAndExtent(z,Math.min(et.anchorOffset,X(z)),B,Math.min(et.focusOffset,X(B)))},w=()=>{const j=a.getEditing();return j==null?void 0:j.getView()},k=async()=>{var z;const j=w(),et=j!=null&&j.el?y(j.el):null;await((z=j==null?void 0:j.syncContent)==null?void 0:z.call(j,{force:!0,noCount:!0})),j!=null&&j.el&&x(j.el,et)},S=async()=>{const j=w();return j!=null&&j.getContent?await j.getContent():null},A=()=>{const j=a.getModel(),et=w();et&&j.setEditing(!1);try{return a.getProjectData()}finally{et&&j.setEditing(et)}},L=async()=>{let j=null;do{await f(),await k();const et=await S(),z=A(),B=crypto.randomUUID();z.__oranje_save_token=B,a.clearDirtyCount(),await a.Storage.store(z);const X=o.get(e);o.delete(e);const Z=NR(X);if(!Z||Z.save_token!==B||!Z.project_hash)throw new Error("Der Server hat die Speicherung nicht bestätigt.");j=Z,await new Promise(st=>setTimeout(st,0));const F=await S();if(i&&(clearTimeout(i),i=null),a.getDirtyCount()===0&&F===et)break}while(!0);return j},D={save:()=>{var et;if(i&&(clearTimeout(i),i=null),n)return n;(et=r.onSaveStart)==null||et.call(r);const j=L().then(z=>{var B;(B=r.onSaveSuccess)==null||B.call(r,z)}).catch(z=>{var B;throw(B=r.onSaveError)==null||B.call(r,z),z}).finally(()=>{n===j&&(n=null)});return n=j,j}};ww.set(a,D);const W=()=>{i&&clearTimeout(i),i=setTimeout(()=>{if(i=null,a.getEditing()){W();return}D.save().catch(()=>{})},c)};return a.on("update",()=>{a.getDirtyCount()<1||W()}),D}function wu(a=document){var n;const r=(a instanceof Document?a.defaultView:(n=a.ownerDocument)==null?void 0:n.defaultView)||window,t=a.querySelectorAll(".flipdown");if(t.length>0){const i=r.FlipDown;t.forEach(o=>{var d;const s=o.getAttribute("data-endtime")||((d=o.closest("[data-endtime]"))==null?void 0:d.getAttribute("data-endtime"))||"";let c=0;if(s.includes("T")){const f=new Date(s);isNaN(f.getTime())||(c=Math.floor(f.getTime()/1e3)),console.log("Counter-Helper: Parsed ISO time:",s,"to",c,"Current time:",Math.floor(Date.now()/1e3))}else c=parseInt(s),console.log("Counter-Helper: Parsed Unix time:",s,"to",c);if(c>0){const f=typeof i<"u"?!!o.querySelector(".rotor"):Ac.has(o);if(_u.get(o)===c&&f)return;o.id||(o.id="flipdown-"+Math.floor(Math.random()*1e6));try{typeof i<"u"?(o.innerHTML="",new i(c,o.id,{headings:["Tage","Stunden","Minuten","Sekunden"]}).start(),BR(o),_u.set(o,c)):(Og(o,c,r),_u.set(o,c))}catch(g){console.warn("FlipDown konnte nicht initialisiert werden; nutze nativen Countdown.",g),Og(o,c,r),_u.set(o,c)}}else Og(o,Math.floor(Date.now()/1e3),r)})}a.querySelectorAll(".countup").forEach(i=>{var c,d,f,g;const o=$2(((d=(c=i.parentElement)==null?void 0:c.closest("[data-target]"))==null?void 0:d.getAttribute("data-target"))||i.getAttribute("data-target")||"0"),s=$2(((g=(f=i.parentElement)==null?void 0:f.closest("[data-duration]"))==null?void 0:g.getAttribute("data-duration"))||i.getAttribute("data-duration")||"2000");VR(i,o,s,r)})}function $2(a){const r=a.trim().replace(/[^\d-]/g,""),t=Number.parseInt(r,10);return Number.isFinite(t)?Math.max(0,t):0}const z2=new WeakMap,Ac=new WeakMap,_u=new WeakMap;function Og(a,r,t){const e=Ac.get(a);if((e==null?void 0:e.endTime)===r)return;e&&t.clearInterval(e.interval),a.classList.add("flipdown-native");const n=()=>{var w;const o=Math.max(0,r-Math.floor(Date.now()/1e3)),s=Math.floor(o/86400),c=Math.floor(o%86400/3600),d=Math.floor(o%3600/60),f=o%60,g=[s,c,d,f],m=["Tage","Stunden","Minuten","Sekunden"],x=`inline-block px-2 py-1 rounded bg-brand-primary-700 !bg-${a.getAttribute("data-os-brand")||((w=a.closest("[data-os-brand]"))==null?void 0:w.getAttribute("data-os-brand"))||"placeholder"}-primary-700 text-white shadow font-bold text-5xl md:text-7xl`;if(a.innerHTML=g.map((k,S)=>{const A=S<g.length-1?'<span class="countdown-separator" aria-hidden="true">:</span>':"";return`<div class="countdown-unit"><span class="countdown-value ${x}">${String(k).padStart(2,"0")}</span><span class="countdown-label">${m[S]}</span></div>${A}`}).join(""),o===0){const k=Ac.get(a);k&&(t.clearInterval(k.interval),Ac.delete(a))}};n();const i=t.setInterval(n,1e3);Ac.set(a,{endTime:r,interval:i})}function BR(a){var c,d;const r=a.getAttribute("data-os-brand")||((c=a.closest("[data-os-brand]"))==null?void 0:c.getAttribute("data-os-brand"))||"placeholder",t=`bg-brand-primary-700 !bg-${r}-primary-700 text-white`,e=`bg-brand-primary-700 !bg-${r}-primary-700`,n=a.querySelectorAll(".rotor-leaf-front, .rotor-leaf-rear, .rotor-top, .rotor-bottom"),i=a.querySelectorAll(".rotor");
3535i.forEach(f=>{f.classList.add(...e.split(" "))}),n.forEach(f=>f.classList.add(...t.split(" ")));const o=i[0],s=o?(d=o.ownerDocument.defaultView)==null?void 0:d.getComputedStyle(o).backgroundColor:void 0;s&&a.style.setProperty("--flipdown-sheet-color",s)}function VR(a,r,t,e){t=Math.max(1,t);const n=z2.get(a);if(n!=null&&n.finished&&n.target===r&&n.duration===t)return;(n==null?void 0:n.frame)!==null&&(n==null?void 0:n.frame)!==void 0&&e.cancelAnimationFrame(n.frame);const i={target:r,duration:t,frame:null,finished:!1};z2.set(a,i);const o=Math.ceil(t/16),s=r/o;let c=0,d=0;const f=m=>{var w;const y=String(Math.floor(m)).split("");a.innerHTML="";const x=a.getAttribute("data-os-brand")||((w=a.closest("[data-os-brand]"))==null?void 0:w.getAttribute("data-os-brand"))||"placeholder";y.forEach(k=>{const S=e.document.createElement("span");S.className=`inline-block px-2 py-1 rounded bg-brand-primary-700 !bg-${x}-primary-700 text-white shadow font-bold text-5xl md:text-7xl`,S.textContent=k,a.appendChild(S)})};f(0);const g=()=>{d++,c+=s,d<o?(f(c),i.frame=e.requestAnimationFrame(g)):(f(r),i.frame=null,i.finished=!0)};g()}function Cu(a,r=window,t=3e3){const e=Date.now(),n=()=>{try{if(r&&typeof r.FlipDown<"u"){a();return}}catch{return}Date.now()-e<t?setTimeout(n,200):(console.warn("FlipDown not found in target window (optional component)"),a())};n()}const Qv=a=>{var t,e;let r=(t=a==null?void 0:a.parent)==null?void 0:t.call(a);for(;r;){if(r.get("tagName")==="picture")return r;r=(e=r.parent)==null?void 0:e.call(r)}return null},Eg=a=>{(a==null?void 0:a.get("type"))!=="image"||!Qv(a)||a.set({selectable:!1,hoverable:!1,highlightable:!1})};function HR(a){const r=a.DomComponents.getType("image"),t=r?r.model:null,e=()=>{const o=a.getWrapper();if(!o||typeof o.find!="function")return;(o.find("img")||[]).forEach(Eg)};a.DomComponents.addType("image",{model:{defaults:t?t.prototype.defaults:{}},view:{events:{dblclick:"onDblClick"},onDblClick(o){const s=this.model;if(Qv(s))o.preventDefault();else{const d=a.getModel();d&&d.trigger("request:asset",s)}}}}),a.on("component:selected",o=>{if((o==null?void 0:o.get("type"))!=="image")return;const s=Qv(o);s&&a.getSelected()===o&&(Eg(o),a.select(s))}),a.on("component:add",Eg),a.on("load",e);const n=o=>{if(!o)return null;const s=a.getWrapper();return!s||typeof s.find!="function"?null:(s.find("picture")||[]).find(d=>typeof d.getEl=="function"&&d.getEl()===o)||null},i=()=>{const o=a.Canvas.getFrameEl(),s=o&&o.contentDocument;s&&(s.__osPictureDblClickBound||(s.__osPictureDblClickBound=!0,s.addEventListener("dblclick",c=>{const d=c.target,f=d&&typeof d.closest=="function"?d.closest("picture"):null;if(!f)return;c.preventDefault(),c.stopPropagation();const g=n(f);g&&a.runCommand("open-asset-wizard",{pictureComponent:g})},!0)))};a.on("load",i)}function FR(a){a.on("rte:enable",r=>{const t=r==null?void 0:r.el;t&&requestAnimationFrame(()=>{var e;t.isConnected&&(t.getAttribute("contenteditable")!=="true"&&t.setAttribute("contenteditable","true"),t.setAttribute("draggable","false"),(e=t.focus)==null||e.call(t))})}),a.on("rte:disable",r=>{var t,e;(e=(t=r==null?void 0:r.el)==null?void 0:t.setAttribute)==null||e.call(t,"draggable","true")})}const Cw="data-os-visibility",vp="data-os-hidden-for",mp="data-os-visibility-mode",yp="data-os-visibility-date",U2="data-os-visibility-label",L1="data-os-visible-for",kw="data-os-hidden",D1="data-os-visibility-device",I1="data-os-visibility-device-for",W2=768;function Ag(a,r){return[...new Set(String(a??"").split(",").map(t=>t.trim().toLowerCase()).filter(t=>t&&r.has(t)))]}function t1(a){const r=String(a??"").trim().toLowerCase();return r==="mobile"||r==="desktop"?r:"all"}function ku(a,r){var d;const t=((d=a==null?void 0:a.getAttributes)==null?void 0:d.call(a))??{},e=new Set(r.map(f=>f.shortcode_cue.toLowerCase())),n=t1(t[D1]),i=Ag(t[I1],e);try{const f=JSON.parse(String(t[Cw]??""));if(Array.isArray(f.titles))return{titles:[...new Set(f.titles.map(g=>String(g).toLowerCase()))].filter(g=>e.has(g)),mode:f.mode==="none"||f.mode==="hide-from"||f.mode==="show-from"||f.mode==="show-only"?f.mode:"always",date:f.date?String(f.date):null,device:t1(f.device??n)}}catch{}const o=Ag(t[vp],e),s=Ag(t[L1],e),c=t[mp];return c==="show-only"&&s.length?{titles:s,mode:"show-only",date:null,device:n}:o.length&&(c==="hide-from"||c==="show-from")?{titles:o,mode:c,date:t[yp]?String(t[yp]):null,device:n}:o.length?{titles:o,mode:"always",date:null,device:n}:String(t[kw]).toLowerCase()==="true"?{titles:r.map(f=>f.shortcode_cue.toLowerCase()),mode:"always",date:null,device:n}:{titles:i,mode:"none",date:null,device:n}}function $R(a,r,t){if(!(r.mode==="none"||!t.length)){if(r.mode==="always"){a.addAttributes({[vp]:t.join(",")});return}if(r.mode==="show-only"){a.addAttributes({[L1]:t.join(","),[mp]:r.mode});return}a.addAttributes({[vp]:t.join(","),[mp]:r.mode,[yp]:r.date||""})}}function zR(a,r,t){r.device==="all"||!t.length||a.addAttributes({[D1]:r.device,[I1]:t.join(",")})}function UR(a,r){var e,n,i,o,s,c,d,f;const t=[...new Set(r.titles.map(g=>
3535g.trim().toLowerCase()).filter(Boolean))];(e=a.removeAttributes)==null||e.call(a,kw),(n=a.removeAttributes)==null||n.call(a,vp),(i=a.removeAttributes)==null||i.call(a,L1),(o=a.removeAttributes)==null||o.call(a,mp),(s=a.removeAttributes)==null||s.call(a,yp),(c=a.removeAttributes)==null||c.call(a,D1),(d=a.removeAttributes)==null||d.call(a,I1),(f=a.removeAttributes)==null||f.call(a,Cw),$R(a,r,t),zR(a,r,t)}function Mg(a){return a.replace(/[&<>'"]/g,r=>({"&":"&","<":"<",">":">","'":"'",'"':"""})[r]??r)}const WR='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12z"/><circle cx="12" cy="12" r="3"/></svg>',ZR='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M17.94 17.94A10.94 10.94 0 0 1 12 20c-7 0-11-8-11-8a21.77 21.77 0 0 1 5.06-6.88"/><path d="M1 1l22 22"/><path d="M9.88 9.88A3 3 0 0 0 12 15a3 3 0 0 0 2.12-.88"/></svg>',Sw='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="14" height="20" x="5" y="2" rx="2" ry="2"/><path d="M12 18h.01"/></svg>',Tw='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="20" height="14" x="2" y="3" rx="2"/><line x1="8" x2="16" y1="21" y2="21"/><line x1="12" x2="12" y1="17" y2="21"/></svg>';function qR(a,r){return r>0?ZR:a.device==="mobile"?Sw:a.device==="desktop"?Tw:WR}function Ow(a,r){return a.mode==="show-only"?Math.max(0,r.length-a.titles.length):a.titles.length}function Z2(a){return a.mode!=="none"||a.device!=="all"}const Pg=3;function KR(a){const r=a.titles.map(t=>t.toUpperCase());return r.length<=Pg?r.join(" "):`${r.slice(0,Pg).join(" ")} +${r.length-Pg}`}function q2(a){const r=/^(\d{4})-(\d{2})-(\d{2})T/.exec(a??"");return r?`${r[3]}.${r[2]}.${r[1].slice(2)}`:"?"}function K2(a){if(!a)return"Zeitpunkt nicht festgelegt";const r=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})/.exec(a);return r?`${r[3]}.${r[2]}.${r[1]}, ${r[4]}:${r[5]} Uhr`:a}function GR(a){return a==="mobile"?"nur auf Mobil sichtbar":a==="desktop"?"nur auf Desktop sichtbar":""}function G2(a){const r=GR(a.device),t=a.mode==="none"?"":a.mode==="show-only"?"Nur für ausgewählte Titel sichtbar":a.mode==="hide-from"?`Ab dem ${K2(a.date)} ausgeblendet`:a.mode==="show-from"?`Erst ab dem ${K2(a.date)} sichtbar`:"Für ausgewählte Titel ausgeblendet";return t&&r?`${t} â zusätzlich ${r}`:t||(r?r.charAt(0).toUpperCase()+r.slice(1):"Keine Sichtbarkeitsregel")}function Y2(a,r){const t=new Map(r.map(e=>[e.shortcode_cue.toLowerCase(),e.name]));return a.titles.map(e=>t.get(e)||e).join(", ")}function YR(a,r){const t=KR(a);return a.mode==="show-only"?`Nur ${t}`:a.mode==="hide-from"?`Ausgeblendet ab ${q2(a.date)} · ${t}`:a.mode==="show-from"?`Sichtbar ab ${q2(a.date)} · ${t}`:a.mode==="always"?`Ausgeblendet · ${t}`:t}function Su(a,r,t){var o,s,c;const e=Ow(r,t),n=r.device!=="all"&&r.titles.length>0;n?a.addAttributes({"data-os-visibility-device-state":r.device}):(o=a.removeAttributes)==null||o.call(a,"data-os-visibility-device-state");const i=e===0?n?"device":"":e>=t.length?"hidden":"partial";if(!i){(s=a.removeAttributes)==null||s.call(a,"data-os-visibility-state"),(c=a.removeAttributes)==null||c.call(a,U2);return}a.addAttributes({"data-os-visibility-state":i,[U2]:YR(r)})}function XR(a,r){const e=[...r.titles].sort((c,d)=>{var g,m;return(((g=c.region)==null?void 0:g.name)??"").localeCompare(((m=d.region)==null?void 0:m.name)??"","de",{sensitivity:"base"})||c.name.localeCompare(d.name,"de",{sensitivity:"base"})}),n=e.reduce((c,d)=>{var m;const f=((m=d.region)==null?void 0:m.name)||"Ohne Region",g=c.find(y=>y.name===f);return g?g.titles.push(d):c.push({name:f,titles:[d]}),c},[]),i=c=>{const d=ku(c,e),f=Ow(d,e);Su(c,d,e);const g=f>=e.length?"Versteckt":"Teilweise versteckt",m=f===0?`Sichtbar für alle ${e.length} Titel`:`${g} für ${f} von ${e.length} Titeln`,y=Z2(d)&&d.titles.length?`${m} â Titel: ${Y2(d,e)} â Regel: ${G2(d)}`:"Sichtbarkeit je Titel festlegen";return{attributes:{"data-os-toolbar":"visibility",class:"os-toolbar-visibility",title:y,"aria-label":y},label:qR(d,f),command:"os-configure-visibility"}},o=c=>{var g;const d=(g=c==null?void 0:c.get)==null?void 0:g.call(c,"toolbar");!Array.isArray(d)||!d.some(m=>{var y;return((y=m==null?void 0:m.attributes)==null?void 0:y["data-os-toolbar"])==="visibility"})||c.set("toolbar",d.map(m=>{var y;return((y=m==null?void 0:m.attributes)==null?void 0:y["data-os-toolbar"])==="visibility"?i(c):m}))},s=c=>{var gt,St;if(!e.length)return;const d=ku(c,e),f=new Set(d.titles),g=document.createElement("div");g.className="os-visibility-modal",g.innerHTML=` 3536 <p class="os-visibility-intro">Lege fest, wann und auf welchen Geräten dieses Modul für die ausgewählten Titel sichtbar sein soll.</p> 3537 <div class="os-visibility-schedule"> 3538 <label for="os-visibility-mode">Regel</label> 3539 <select id="os-visibility-mode" class="os-visibility-mode"> 3540 <option value="none">Für alle Titel sichtbar</option> 3541 <option value="always">Für ausgewählte Titel ausblenden</option> 3542 <option value="hide-from">Für ausgewählte Titel ab einem Zeitpunkt ausblenden</option> 3543 <option value="show-from">
3543Für ausgewählte Titel erst ab einem Zeitpunkt einblenden</option> 3544 <option value="show-only">Nur für ausgewählte Titel sichtbar</option> 3545 </select> 3546 <label for="os-visibility-date" class="os-visibility-date-label">Zeitpunkt</label> 3547 <input id="os-visibility-date" class="os-visibility-date" type="datetime-local"> 3548 <span class="os-visibility-device-label">Geräte</span> 3549 <div class="os-visibility-device-group" role="radiogroup" aria-label="Geräte"> 3550 <label class="os-visibility-device-option"> 3551 <input type="radio" name="os-visibility-device" value="all"> 3552 <span>Auf allen Geräten anzeigen</span> 3553 </label> 3554 <label class="os-visibility-device-option"> 3555 <input type="radio" name="os-visibility-device" value="mobile"> 3556 ${Sw}<span>Nur auf Mobile anzeigen</span> 3557 </label> 3558 <label class="os-visibility-device-option"> 3559 <input type="radio" name="os-visibility-device" value="desktop"> 3560 ${Tw}<span>Nur auf Desktop anzeigen</span> 3561 </label> 3562 </div> 3563 <p class="os-visibility-schedule-hint"></p> 3564 </div> 3565 <div class="os-visibility-description-row"> 3566 <p class="os-visibility-description">Ausgewählte Titel</p> 3567 <button type="button" class="os-visibility-toggle-all">Alle auswählen</button> 3568 </div> 3569 <p class="os-visibility-empty" role="status" aria-live="polite"> 3570 Wähle zuerst oben eine Regel oder eine Geräteoption aus, um Titel auswählen zu können. 3571 </p> 3572 <div class="os-visibility-regions"> 3573 ${n.map(wt=>` 3574 <section class="os-visibility-region-column"> 3575 <h3 class="os-visibility-region">${Mg(wt.name)}</h3> 3576 <div class="os-visibility-region-options"> 3577 ${wt.titles.map(mt=>{const It=mt.shortcode_cue.toLowerCase(),Bt=f.has(It)?" checked":"";return`<label class="os-visibility-option"> 3578 <input type="checkbox" value="${Mg(It)}"${Bt}> 3579 <span>${Mg(mt.name)}</span> 3580 </label>`}).join("")} 3581 </div> 3582 </section> 3583 `).join("")} 3584 </div> 3585 <p class="os-visibility-summary"></p> 3586 <p class="os-visibility-error" hidden>Bitte mindestens einen Titel auswählen.</p> 3587 <div class="os-visibility-actions"> 3588 <button type="button" class="gjs-btn-prim os-visibility-cancel">Abbrechen</button> 3589 <button type="button" class="gjs-btn-prim os-visibility-save">Speichern</button> 3590 </div> 3591 `;const m=()=>a.Modal.close(),y=()=>Array.from(g.querySelectorAll('.os-visibility-regions input[type="checkbox"]')),x=g.querySelector(".os-visibility-toggle-all"),w=g.querySelector(".os-visibility-mode"),k=g.querySelector(".os-visibility-date"),S=g.querySelector(".os-visibility-date-label"),A=Array.from(g.querySelectorAll('input[name="os-visibility-device"]')),L=g.querySelector(".os-visibility-schedule-hint"),D=g.querySelector(".os-visibility-regions"),W=g.querySelector(".os-visibility-empty"),j=g.querySelector(".os-visibility-description-row"),et=g.querySelector(".os-visibility-summary"),z=g.querySelector(".os-visibility-error"),B=g.querySelector(".os-visibility-save"),X="Speichern",Z='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="os-visibility-spinner" aria-hidden="true"><path d="M21 12a9 9 0 1 1-6.219-8.56"/></svg>Speichernâ¦',F=()=>{var wt;return t1((wt=A.find(mt=>mt.checked))==null?void 0:wt.value)},st=()=>y().filter(wt=>wt.checked).map(wt=>wt.value),q=()=>{const wt=y(),mt=wt.length>0&&wt.every(It=>It.checked);
3591x&&(x.textContent=mt?"Alle abwählen":"Alle auswählen")},Ct=(wt,mt)=>{const It=mt==="mobile"?` Zusätzlich erscheint es für diese Titel nur auf Mobil (bis ${W2-1} px).`:mt==="desktop"?` Zusätzlich erscheint es für diese Titel erst ab ${W2} px Breite.`:"";return wt==="none"?mt==="all"?"Es wird keine Sichtbarkeitsregel angewendet. Das Modul bleibt für alle Titel auf allen Geräten sichtbar.":`Für die ausgewählten Titel gilt ausschlieÃlich die Geräteregel.${It}`:wt==="show-only"?`Das Modul erscheint ausschlieÃlich für die ausgewählten Titel. Alle anderen Titel sehen es nicht.${It}`:wt==="always"?`Für die ausgewählten Titel ist das Modul dauerhaft ausgeblendet. Nicht ausgewählte Titel sehen es.${It}`:wt==="hide-from"?`Bis zum Zeitpunkt sehen die ausgewählten Titel das Modul. Danach ist es für sie ausgeblendet.${It}`:`Bis zum Zeitpunkt ist das Modul für die ausgewählten Titel ausgeblendet. Danach sehen sie es.${It}`},_=()=>{const wt=(w==null?void 0:w.value)||"none",mt=F(),It=st(),Bt={titles:It,mode:wt,date:(k==null?void 0:k.value)||null,device:mt};if(!Z2(Bt)){et&&(et.textContent="Aktuell ist keine Sichtbarkeitsregel gesetzt.");return}if(!It.length){et&&(et.textContent="Noch kein Titel ausgewählt â die Regel greift derzeit nicht.");return}et&&(et.textContent=`${G2(Bt)} â für: ${Y2(Bt,e)}.`)},Q=()=>{const wt=(w==null?void 0:w.value)||"none",mt=F(),Bt=(wt!=="none"||mt!=="all")&&!st().length;z&&(z.hidden=!Bt),B&&(B.disabled=Bt)},J=()=>{const wt=(w==null?void 0:w.value)||"none",mt=F(),It=wt==="hide-from"||wt==="show-from",Bt=wt!=="none"||mt!=="all";k&&(k.disabled=!It,k.required=It,k.hidden=!It),S&&(S.classList.toggle("is-disabled",!It),S.hidden=!It),D&&(D.hidden=!Bt),j&&(j.hidden=!Bt),W&&(W.hidden=Bt),A.forEach(se=>{var ue;(ue=se.closest(".os-visibility-device-option"))==null||ue.classList.toggle("is-active",se.checked)}),L&&(L.textContent=Ct(wt,mt)),q(),_(),Q()};y().forEach(wt=>wt.addEventListener("change",()=>{q(),_(),Q()})),x==null||x.addEventListener("click",()=>{const wt=y(),mt=!wt.every(It=>It.checked);wt.forEach(It=>{It.checked=mt}),q(),_(),Q()}),w==null||w.addEventListener("change",J),A.forEach(wt=>wt.addEventListener("change",J)),k==null||k.addEventListener("change",_),w&&(w.value=d.mode),k&&d.date&&(k.value=d.date),A.forEach(wt=>
3591{wt.checked=wt.value===d.device}),J(),(gt=g.querySelector(".os-visibility-cancel"))==null||gt.addEventListener("click",m),(St=g.querySelector(".os-visibility-save"))==null||St.addEventListener("click",()=>{var ne,kt,Ot;const wt=(w==null?void 0:w.value)||"none",mt=F(),It=(k==null?void 0:k.value)||null,Bt=st();if((wt==="hide-from"||wt==="show-from")&&!It){k==null||k.reportValidity();return}if((wt!=="none"||mt!=="all")&&!Bt.length){Q();return}B&&(B.disabled=!0,B.innerHTML=Z);const ue={titles:Bt,mode:wt,date:It,device:mt};UR(c,ue),Su(c,ue,e),(ne=r.onChange)==null||ne.call(r,c),o(c);try{(Ot=(kt=c.view)==null?void 0:kt.render)==null||Ot.call(kt)}catch{}_w(a).then(()=>{a.trigger("os-visibility-saved",{success:!0}),m()}).catch(()=>{B&&(B.disabled=!1,B.textContent=X),a.trigger("os-visibility-saved",{success:!1})})}),a.Modal.open({title:"Sichtbarkeit des Moduls festlegen",content:g})};return a.Commands.add("os-configure-visibility",{run(c){const d=c.getSelected();d&&s(d)}}),a.on("load",()=>{var c;(((c=a.getWrapper())==null?void 0:c.find("*"))||[]).forEach(d=>{Su(d,ku(d,e),e)})}),{getToolbarItem(c){return i(c)},updateVisualState(c){Su(c,ku(c,e),e)}}}function Tu(a){const r={ä:"ae",ö:"oe",ü:"ue",Ã:"ss",Ã:"Ae",Ã:"Oe",Ã:"Ue"};let t=a;for(const[e,n]of Object.entries(r))t=t.split(e).join(n);return t=t.replace(/[^A-Za-z0-9\-_]/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),t}function JR(a){return a.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\r\n|\r|\n/g,"<br>")}function QR(a,r,t,e,n=[],i="",o=!1,s=[],c="",d="",f="",g=[]){const m=g.includes("admin")||g.includes("superadmin"),y=o?n.filter(j=>s.includes(j.id)):n,x=j=>{j.Storage.add("remote",{async load(){const et=await ns(`/grapes/load/${e}`,{headers:{Accept:"application/json"}});if(!et.ok)throw new Error(`Die Landingpage konnte nicht geladen werden (Status ${et.status}).`);return await et.json()},async store(et){const z=await ns(`/grapes/save/${e}`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify(et)}),B=await z.json().catch(()=>null);if(!z.ok){const X=B&&typeof B=="object"&&"message"in B?String(B.message):`Die Landingpage konnte nicht gespeichert werden (Status ${z.status}).`;throw new Error(X)}return B}})},w=FL.init({container:a,height:"100%",width:"auto",avoidBadCharacters:!1,canvas:{styles:[r,t,"https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css","https://cdn.jsdelivr.net/npm/[email protected]/dist/flipdown.min.css","/css/grapes-editor-canvas.css?v=1.30.2"],scripts:["https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js","https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js","https://cdn.jsdelivr.net/npm/[email protected]/src/flipdown.min.js"]},richTextEditor:{actions:["bold","italic","underline","strikethrough","link","wrap"],onPaste:({ev:j,rte:et})=>{const z=j.clipboardData,B=(z==null?void 0:z.getData("text/plain"))||(z==null?void 0:z.getData("text"))||"";B&&(j.preventDefault(),et.exec("insertHTML",JR(B)))}},parser:{optionsHtml:{keepEmptyTextNodes:!0}},layerManager:{appendTo:".layers-container"},panels:{defaults:[{id:"panel-brand-preview",el:".panel__brand-preview",buttons:[{id:"edit-mode",label:"Editor",command:"show-editor",active:!0,togglable:!1,attributes:{class:"edit-btn flex-shrink-0"}},...y.flatMap(j=>[{id:`brand-${j.shortcode}-preview`,label:`<div class="isolate inline-flex rounded-md me-2 flex-shrink-0"> 3592 <button type="button" class="brand-preview-btn relative inline-flex items-center gap-x-1 rounded-l-md bg-white px-2 py-1 text-sm text-gray-900 ring-1 ring-inset ring-gray-300 hover:bg-gray-50 focus:z-10 cursor-pointer" data-brand-shortcode="${j.shortcode_cue}" data-brand-uuid="${i}"> 3593 ${j.shortcode.toUpperCase()} 3594 </button> 3595 <button type="button" class="brand-external-btn relative -ml-px inline-flex items-center rounded-r-md bg-white px-2 py-1 text-sm text-gray-900 ring-1 ring-inset ring-gray-300 hover:bg-gray-50 focus:z-10 cursor-pointer" data-brand-shortcode="${j.shortcode_cue}" data-brand-uuid="${i}"> 3596 <svg viewBox="0 0 20 20" fill="currentColor" class="size-4 text-gray-400" aria-hidden="true"> 3597 <path fill-rule="evenodd" d="M4.25 5.5a.75.75 0 0 0-.75.75v8.5c0 .414.336.75.75.75h8.5a.75.75 0 0 0 .75-.75v-4a.75.75 0 0 1 1.5 0v4A2.25 2.25 0 0 1 12.75 17h-8.5A2.25 2.25 0 0 1 2 14.75v-8.5A2.25 2.25 0 0 1 4.25 4h5a.75.75 0 0 1 0 1.5h-5Z" clip-rule="evenodd"/> 3598 <path fill-rule="evenodd" d="M6.194 12.753a.75.75 0 0 0 1.06.053L16.5 4.44v2.81a.75.75 0 0 0 1.5 0v-4.5a.75.75 0 0 0-.75-.75h-4.5a.75.75 0 0 0 0 1.5h2.553l-9.056 8.194a.75.75 0 0 0-.053 1.06Z" clip-rule="evenodd"/> 3599 </svg> 3600 </button> 3601 </div>`,togglable:!1,attributes:{class:"brand-btn-group flex-shrink-0",title:j.name}}])]},{id:"layers",el:".panel__right",resizable:{maxDim:350,minDim:200,tc:!1,cl:!0,cr:!1,bc:!1,keyWidth:"flex-basis"}},{id:"basic-actions",el:".panel__basic-actions",buttons:[{id:"visibility",active:!0,className:"btn-toggle-borders",label:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-square-dashed-icon lucide-square-dashed !fill-none"><path d="M5 3a2 2 0 0 0-2 2"/><path d="M19 3a2 2 0 0 1 2 2"/><path d="M21 19a2 2 0 0 1-2 2"/><path d="M5 21a2 2 0 0 1-2-2"/><path d="M9 3h1"/><path d="M9 21h1"/><path d="M14 3h1"/><path d="M14 21h1"/><path d="M3 9v1"/><path d="M21 9v1"/><path d="M3 14v1"/><path d="M21 14v1"/></svg>',command:"sw-visibility"},{id:"export",className:"btn-open-export",label:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-code-icon lucide-code !fill-none"><path d="m16 18 6-6-6-6"/><path d="m8 6-6 6 6 6"/></svg>',command:"export-template",context:"export-template"},...m?[{id:"show-json",className:"btn-show-json",label:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-braces-icon notebook-tabs !fill-none"><path d="M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1"/><path d="M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1"/></svg>',context:"show-json",command(){const j=w.getProjectData?w.getProjectData():{dataSources:[],assets:w.AssetManager.getAll().toJSON(),styles:w.getStyle(),pages:[{component:w.getComponents()}]},et=JSON.stringify(j,null,2),z=document.createElement("div");z.innerHTML=` 3602 <div style="display:flex; flex-direction:column; gap:8px;"> 3603 <textarea class="os-grapes-json-editor" style="width:100%; height: 400px; font-family: monospace; font-size: 12px; padding: 8px; box-sizing: border-box;"></textarea> 3604 <div class="os-grapes-json-error" style="color:#c00; min-height:18px; font-size:12px;"></div> 3605 <div style="display:flex; gap:8px; justify-content:flex-end;"> 3606 <button type="button" class="os-grapes-json-cancel gjs-btn-prim" style="background:#f3f3f3;">Abbrechen</button> 3607 <button type="button" class="os-grapes-json-save gjs-btn-prim" style="background:#f3f3f3;">
3607Speichern und neu laden</button> 3608 </div> 3609 </div> 3610 `;const B=z.querySelector(".os-grapes-json-editor"),X=z.querySelector(".os-grapes-json-error"),Z=z.querySelector(".os-grapes-json-save"),F=z.querySelector(".os-grapes-json-cancel");B.value=et,F.addEventListener("click",()=>{w.Modal.close()}),Z.addEventListener("click",()=>{X.textContent="";let st;try{st=JSON.parse(B.value)}catch(q){X.textContent="Ungültiges JSON: "+((q==null?void 0:q.message)||q);return}try{typeof w.loadProjectData=="function"?w.loadProjectData(st):(st.pages&&st.pages[0]&&st.pages[0].component!==void 0?w.setComponents(st.pages[0].component):st.components!==void 0&&w.setComponents(st.components),st.styles!==void 0&&w.setStyle(st.styles)),w.Modal.close(),_w(w).catch(q=>{X.textContent=q instanceof Error?q.message:"Speichern fehlgeschlagen."})}catch(q){X.textContent="Fehler beim Laden: "+((q==null?void 0:q.message)||q)}}),w.Modal.setTitle("GrapesJS Projekt JSON bearbeiten").setContent(z).open()}}]:[],{id:"undo",className:"btn-undo",attributes:{title:"Rückgängig"},label:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-undo2-icon lucide-undo-2"><path d="M9 14 4 9l5-5"/><path d="M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11"/></svg>',command:"core:undo"},{id:"redo",className:"btn-redo",attributes:{title:"Wiederholen"},label:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-redo2-icon lucide-redo-2"><path d="m15 14 5-5-5-5"/><path d="M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13"/></svg>',command:"core:redo"},{id:"toggle-dark",className:"btn-canvas-dark",attributes:{title:"Dark/Light umschalten"},label:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-moon-icon lucide-moon !fill-none"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/></svg>',command:"canvas:toggle-dark"},{id:"clear-canvas",className:"btn-clear-canvas",attributes:{title:"Canvas leeren"},label:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-trash-2-icon lucide-trash-2 !fill-none"><path d="M3 6h18"/><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"/><path d="M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/><line x1="10" y1="11" x2="10" y2="17"/><line x1="14" y1="11" x2="14" y2="17"/></svg>',command:"canvas:clear"},{id:"open-docs",className:"btn-open-docs",attributes:{title:"Dokumentation öffnen"},label:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-book-open-text-icon lucide-book-open-text"><path d="M12 7v14"/><path d="M16 12h2"/><path d="M16 8h2"/><path d="M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z"/><path d="M6 12h2"/><path d="M6 8h2"/></svg>',command:"canvas:open-docs"},{id:"open-asset-folder",className:"btn-open-asset-folder",attributes:{title:"Asset-Ordner öffnen"},label:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-folder-open-icon lucide-folder-open !fill-none"><path d="m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2"/></svg>',command:"canvas:open-asset-folder"},{id:"open-placeholders",className:"btn-open-placeholders",attributes:{title:"Platzhalter"},label:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-notebook-tabs-icon lucide-notebook-tabs"><path d="M2 6h4"/><path d="M2 10h4"/><path d="M2 14h4"/><path d="M2 18h4"/><rect width="16" height="20" x="4" y="2" rx="2"/><path d="M15 2v20"/><path d="M15 7h5"/><path d="M15 12h5"/><path d="M15 17h5"/></svg>',command:"canvas:toggle-placeholders"}]},{id:"panel-switcher",el:".panel__switcher",buttons:[{id:"show-blocks",active:!0,label:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-toy-brick-icon lucide-toy-brick !fill-none"><rect width="18" height="12" x="3" y="8" rx="1"/><path d="M10 8V5c0-.6-.4-1-1-1H6a1 1 0 0 0-1 1v3"/><path d="M19 8V5c0-.6-.4-1-1-1h-3a1 1 0 0 0-1 1v3"/></svg>',command:"show-blocks",togglable:!1},{id:"show-traits",active:!0,label:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-settings-icon lucide-settings !fill-none"><path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"/><circle cx="12" cy="12" r="3"/></svg>',command:"show-traits",togglable:!1},{id:"show-style",active:!0,label:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-paintbrush-icon lucide-paintbrush !fill-none"><path d="m14.622 17.897-10.68-2.913"/><path d="M18.376 2.622a1 1 0 1 1 3.002 3.002L17.36 9.643a.5.5 0 0 0 0 .707l.944.944a2.41 2.41 0 0 1 0 3.408l-.944.944a.5.5 0 0 1-.707 0L8.354 7.348a.5.5 0 0 1 0-.707l.944-.944a2.41 2.41 0 0 1 3.408 0l.944.944a.5.5 0 0 0 .707 0z"/><path d="M9 8c-1.804 2.71-3.97 3.46-6.583 3.948a.507.507 0 0 0-.302.819l7.32 8.883a1 1 0 0 0 1.185.204C12.735 20.405 16 16.792 16 15"/></svg>',command:"show-styles",togglable:!1},{id:"show-layers",active:!0,label:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-layers-icon lucide-layers !fill-none"><path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"/><path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"/><path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"/></svg>',command:"show-layers",togglable:!1},{id:"show-settings",label:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sliders-horizontal-icon lucide-sliders-horizontal
3610!fill-none"><line x1="21" x2="14" y1="4" y2="4"/><line x1="10" x2="3" y1="4" y2="4"/><line x1="21" x2="12" y1="12" y2="12"/><line x1="8" x2="3" y1="12" y2="12"/><line x1="21" x2="16" y1="20" y2="20"/><line x1="12" x2="3" y1="20" y2="20"/><line x1="14" x2="14" y1="2" y2="6"/><line x1="8" x2="8" y1="10" y2="14"/><line x1="16" x2="16" y1="18" y2="22"/></svg>',command:"show-settings",togglable:!1,attributes:{title:"Landingpage-Einstellungen"}}]},{id:"panel-devices",el:".panel__devices",buttons:[{id:"device-mobile-portrait",label:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-smartphone-icon lucide-smartphone !fill-none"><rect width="14" height="20" x="5" y="2" rx="2" ry="2"/><path d="M12 18h.01"/></svg>',command:"set-device-mobile-portrait",togglable:!1},{id:"device-mobile-landscape",label:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-smartphone-icon lucide-smartphone !fill-none rotate-90"><rect width="14" height="20" x="5" y="2" rx="2" ry="2"/><path d="M12 18h.01"/></svg>',command:"set-device-mobile-landscape",togglable:!1},{id:"device-tablet",label:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-tablet-icon lucide-tablet !fill-none"><rect width="16" height="20" x="4" y="2" rx="2" ry="2"/><line x1="12" x2="12.01" y1="18" y2="18"/></svg>',command:"set-device-tablet",togglable:!1},{id:"device-desktop",label:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-monitor-icon lucide-monitor !fill-none"><rect width="20" height="14" x="2" y="3" rx="2"/><line x1="8" x2="16" y1="21" y2="21"/><line x1="12" x2="12" y1="17" y2="21"/></svg>',command:"set-device-desktop",togglable:!1,active:!0}]}]},blockManager:{appendTo:".blocks-container"},selectorManager:{appendTo:".styles-container",escapeName:j=>j},styleManager:{appendTo:".styles-container",sectors:[{name:"Dimension",open:!1,buildProps:["width","min-height","padding"],properties:[{type:"integer",name:"The width",property:"width",units:["px","%"],defaults:"auto",min:0}]},{name:"Extra",open:!1,buildProps:["background-color","box-shadow","custom-prop"],properties:[{id:"custom-prop",name:"Custom Label",property:"font-size",type:"select",defaults:"32px",options:[{id:"1",value:"12px",name:"Tiny"},{id:"2",value:"18px",name:"Medium"},{id:"3",value:"32px",name:"Big"}]}]}]},traitManager:{appendTo:".traits-container"},deviceManager:{devices:[{name:"MobilePortrait",width:"320px",widthMedia:"480px"},{name:"MobileLandscape",width:"640px",widthMedia:"640px",height:"320px"},{name:"Tablet",width:"768px",widthMedia:"768px"},{name:"Desktop",width:""}]},storageManager:{type:"remote",autosave:!1,autoload:!0,options:{remote:{urlLoad:`/grapes/load/${e}`,urlStore:`/grapes/save/${e}`,onStore:j=>{const et=typeof j.__oranje_save_token=="string"?j.__oranje_save_token:"",z={...j};delete z.__oranje_save_token;let B=w.getHtml();const X=w.getCss();try{B=(F=>F.replace(/<details\b[^>]*>/gi,st=>st.replace(/\sopen(=("|')?(?:[^"']*)(\2))?/gi,"").replace(/\s{2,}/g," ")))(B)}catch{}return B=B.replace(/%7B/gi,"{").replace(/%7D/gi,"}"),{data:z,html:B,css:X,save_token:et}},onLoad:j=>j}}},assetManager:{custom:!0},plugins:[x,WI,ZD,f5,zI,ZI,iN,ND,aI,QN,iI,qI,II,qD,gN,tR,jI,oR,vj,Kj,tN,pN,MD,nI,VN,HN,lN,rI,WN,JN,BN,DI,BI,TR,jR]}),k=XR(w,{titles:y});rD(w,k),m||w.on("load",()=>{w.BlockManager.getAll().filter(j=>{var et,z;return((et=j.get("category"))==null?void 0:et.id)==="admin-elemente"||((z=j.get("category"))==null?void 0:z.label)==="Admin Elemente"||j.get("category")==="Admin Elemente"}).forEach(j=>{w.BlockManager.remove(j.id)})}),w.Commands.add("canvas:toggle-dark",{run(j,et){try{const z=j.Canvas.getDocument(),B=z&&z.documentElement?z.documentElement:null;if(!B)return;const X=B.classList.toggle("dark");et&&typeof et.set=="function"&&et.set("label",X?'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sun lucide-sun-icon !fill-none"><circle cx="12" cy="12" r="4"/><path d="M12 2v2"/><path d="M12 20v2"/><path d="m4.93 4.93 1.41 1.41"/><path d="m17.66 17.66 1.41 1.41"/><path d="M2 12h2"/><path d="M20 12h2"/><path d="m6.34 17.66-1.41 1.41"/><path d="m19.07 4.93-1.41 1.41"/></svg>':'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-moon lucide-moon-icon !fill-none"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/></svg>')}catch{}}}),w.Commands.add("canvas:clear",{run(j){typeof window<"u"&&!window.confirm("Canvas wirklich leeren? Diese Aktion kann nicht rückgängig gemacht werden.")||(j.DomComponents.clear(),j.UndoManager.clear(),j.select(void 0))}}),w.Commands.add("canvas:open-docs",{run(){typeof window<"u"&&window.open("https://next.abo-funkemedien.de/index.php/apps/external/13/","_blank","noopener")}}),w.Commands.add("canvas:open-asset-folder",{run(){if(typeof window<"u"&&c){const j=d?Tu(d):"Ohne-Kampagne",et=Tu(c);window.open(`/files/public/mediahub/Landingpages/${j}/${et}`,"_blank","noopener")}}}),w.Commands.add("canvas:toggle-placeholders",{run(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("placeholders:toggle"))}}),w.Commands.add("show-editor",{run:()=>{const j=document.querySelector("#grapejs-editor-container"),et=document.querySelector("#brand-preview-iframe");j&&et&&(j.style.display="flex",et.style.display="none")}}),w.Commands.add("open-asset-wizard",{run(j,et,z={}){if(typeof window<"u"){const B=c?`public/mediahub/Landingpages/${d?Tu(d):"Ohne-Kampagne"}/${Tu(c)}`:"";window.dispatchEvent(new CustomEvent("asset-wizard:open",{detail:{pictureComponent:z.pictureComponent||null,editor:j,initialPath:B}}))}}}
3610),HR(w),y.forEach(j=>{w.Commands.add(`show-brand-preview-${j.shortcode_cue}`,{run:()=>{const et=document.querySelector("#grapejs-editor-container"),z=document.querySelector("#brand-preview-iframe"),B=z==null?void 0:z.querySelector("iframe");et&&z&&B&&(et.style.display="none",z.style.display="block",B.src=o&&f?`/pages/${f}?brand=${j.shortcode_cue}`:`/landingpage/${i}?brand=${j.shortcode_cue}`)}})}),w.on("load",()=>{const j=w.Canvas.getFrameEl();if(j&&j.contentDocument&&j.contentDocument.body){j.contentDocument.body.id="gjs-canva";const X=document.querySelector("#gjs-setting-wide");X&&(j.contentDocument.body.style.maxWidth=X.checked?"1280px":"960px")}const et=()=>{j.contentDocument&&(console.log("Editor on load: initializing sliders"),yu(j.contentDocument),window.initializeSwiperSliders=yu)},z=()=>{!j.contentDocument||!B||(console.log("Editor on load: initializing counters"),[0,100,300].forEach(X=>{B.setTimeout(()=>{j.contentDocument&&wu(j.contentDocument)},X)}))},B=j.contentWindow;if(B){B.document.readyState==="complete"?(console.log("Iframe readyState complete"),bu(et,B),Cu(z,B)):(console.log("Iframe not complete, waiting for load event"),B.addEventListener("load",()=>{console.log("Iframe load event fired"),bu(et,B),Cu(z,B)}));const X=B.document.body;if(X){let Z=null;new MutationObserver(()=>{!Array.from(X.querySelectorAll(".flipdown")).some(q=>!q.querySelector(".rotor")&&!q.classList.contains("flipdown-native"))||Z!==null||(Z=B.setTimeout(()=>{Z=null,j.contentDocument&&wu(j.contentDocument)},50))}).observe(X,{childList:!0,subtree:!0})}}setTimeout(()=>{document.querySelectorAll(".brand-preview-btn").forEach(X=>{X.addEventListener("click",Z=>{Z.stopPropagation();const F=X.dataset.brandShortcode;F&&w.Commands.run(`show-brand-preview-${F}`)})}),document.querySelectorAll(".brand-external-btn").forEach(X=>{X.addEventListener("click",Z=>{Z.stopPropagation();const F=X.dataset.brandShortcode,st=X.dataset.brandUuid;if(F&&st){const q=o&&f?`${window.location.origin}/pages/${f}?brand=${F}`:`${window.location.origin}/landingpage/${st}?brand=${F}`;window.open(q,"_blank")}})})},100)}),w.on("component:add",j=>{var et,z,B;j.get("wide_content")!==void 0&&j.set("wide_content",!!((et=document.querySelector("#gjs-setting-wide"))!=null&&et.checked));try{const X=w.Canvas.getFrameEl();if(!X||!X.contentDocument)return;const Z=(z=j.view)==null?void 0:z.el;if(!Z||typeof Z.hasAttribute!="function")return;const F=Z.classList.contains("swiper")||((B=Z.querySelector)==null?void 0:B.call(Z,".swiper")),st=Z.classList.contains("countup")||Z.querySelector(".countup")||Z.classList.contains("flipdown")||Z.querySelector(".flipdown");(F||st)&&setTimeout(()=>{if(X.contentWindow){const q=()=>{X.contentDocument&&(F&&yu(X.contentDocument),st&&wu(X.contentDocument))};F?bu(q,X.contentWindow):Cu(q,X.contentWindow)}},200)}catch(X){console.error("Failed to initialize slider on component add:",X)}}),w.on("component:update",j=>{var et;try{const z=(et=j.view)==null?void 0:et.el;if(!z||typeof z.hasAttribute!="function")return;const B=z.classList.contains("swiper")||z.querySelector(".swiper"),X=z.classList.contains("countup")||z.querySelector(".countup")||z.classList.contains("flipdown")||z.querySelector(".flipdown");if(B||X){const Z=w.Canvas.getFrameEl();if(Z&&Z.contentDocument&&Z.contentWindow){const F=()=>{if(B){const q=(z.classList.contains("swiper")?z:z.querySelector(".swiper")).swiper;q&&q.destroy(!0,!0),yu(Z.contentDocument)}X&&wu(Z.contentDocument)};B?bu(F,Z.contentWindow):Cu(F,Z.contentWindow)}}}catch(z){console.error("Failed to update slider:",z)}}),w.on("component:remove",j=>{var et;try{const z=(et=j.view)==null?void 0:et.el;if(!z||typeof z.hasAttribute!="function")return;if(z.classList.contains("swiper")||z.querySelector(".swiper")){const X=(z.classList.contains("swiper")?z:z.querySelector(".swiper")).swiper;X&&X.destroy(!0,!0)}}catch(z){console.error("Failed to cleanup slider:",z)}}),w.on("component:selected",j=>{try{S(j)}catch{}});function S(j){if(!!!(j&&j.get&&j.get("type")==="os-headline"))return;const z=(()=>{var X,Z,F,st;const B=((Z=(X=w.getWrapper())==null?void 0:X.find)==null?void 0:Z.call(X,"h1"))||[];try{const q=(st=(F=j.components())==null?void 0:F.at)==null?void 0:st.call(F,0);if(q&&q.get("tagName")==="h1")return!1}catch{}return B.length>0})();setTimeout(()=>{const B=document;if(!B)return;const Z=Array.from(B.querySelectorAll(".gjs-trt-trait")).find(q=>/Ebene/i.test(q.textContent||""));if(!Z)return;const F=Z.querySelector("select");if(!F)return;const st=Array.from(F.options).find(q=>(q.value||q.text).toLowerCase()==="h1");st&&(st.disabled=z)},0)}$L(w),zL(w),UL(w),WL(w),YL(w),GL(w),KL(w),qL(w),ZL(w);const A=new WeakMap;function L(j){try{const et=j!=null&&j.get&&j.get("tagName")?String(j.get("tagName")).toLowerCase():"",z=typeof(j==null?void 0:j.is)=="function"?!!j.is("link"):!1;if(!(et==="a"||z))return;const X=A.get(j);X&&clearTimeout(X);const Z=setTimeout(()=>{try{const F=typeof j.getAttributes=="function"?j.getAttributes():{};if(!F||!("data-track-v2-link"in F))return;
3610const st=F&&typeof F.href<"u"?String(F.href||""):"";String(F["data-track-v2-link"]||"")!==st&&(typeof j.addAttributes=="function"?j.addAttributes({"data-track-v2-link":st}):typeof j.setAttributes=="function"&&j.setAttributes({"data-track-v2-link":st}))}catch{}},300);A.set(j,Z)}catch{}}w.on("component:update:attributes",j=>{try{if(!j)return;L(j),W(j)}catch{}});const D=new WeakMap;function W(j){try{if((j!=null&&j.get&&j.get("tagName")?String(j.get("tagName")).toLowerCase():"")!=="img")return;const z=D.get(j);z&&clearTimeout(z);const B=setTimeout(async()=>{try{const X=typeof j.getAttributes=="function"?j.getAttributes():{},Z=(X==null?void 0:X.alt)??null,F=(X==null?void 0:X.src)??"";if(!F)return;const st="https://static.sparksystem.de/mediahub/";if(!F.startsWith(st))return;const Ct="public/mediahub/"+decodeURIComponent(F.slice(st.length).split("?")[0]);await ns("/api/files/asset/update",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({path:Ct,alt_text:Z})})}catch{}},600);D.set(j,B)}catch{}}w.on("component:add",j=>{try{if(!j)return;L(j)}catch{}});try{const j=w.getWrapper&&w.getWrapper();(j&&typeof j.find=="function"?j.find("a"):[]).forEach(z=>L(z))}catch{}try{const j=w.getWrapper&&w.getWrapper();(j&&typeof j.find=="function"?j.find("a"):[]).forEach(z=>L(z))}catch{}return FR(w),w.on("load",()=>{var j,et;(j=w.getWrapper())==null||j.find(".custom-text").forEach(z=>{z.get("type")!=="os-textflow"&&z.set({type:"os-textflow",editable:!1})}),(et=w.getWrapper())==null||et.find('[data-textflow-body="wrap"]').forEach(z=>{z.get("type")!=="textflow-body"&&z.set({type:"textflow-body",editable:!1,draggable:!1})})}),window.gjsEditorHandle=w,w}function tB(a,r,t=1e3){let e=!1,n=0;const i=new WeakSet,o=[],s=()=>{var m;const g=Date.now();e||g-n<t||(n=g,e=!0,(m=r.onSaveStart)==null||m.call(r),r.save().then(()=>{var y;return(y=r.onSaveSuccess)==null?void 0:y.call(r)}
3610).catch(y=>{var x;return(x=r.onSaveError)==null?void 0:x.call(r,y)}).finally(()=>{e=!1}))},c=g=>{if(i.has(g))return;const m=y=>{y.key.toLowerCase()!=="s"||!y.ctrlKey&&!y.metaKey||(y.preventDefault(),y.stopImmediatePropagation(),s())};i.add(g),o.push({target:g,handler:m}),g.addEventListener("keydown",m,{capture:!0})};c(window);const d=({window:g})=>c(g);a.on("canvas:frame:load",d);const f=a.Canvas.getWindow();return f&&c(f),()=>{a.off("canvas:frame:load",d),o.forEach(({target:g,handler:m})=>g.removeEventListener("keydown",m,{capture:!0})),o.length=0}}const eB={class:"mt-4 flex items-center justify-center gap-0"},rB={class:"flex flex-col items-center gap-1"},nB={class:"min-h-0 flex-1 overflow-y-auto"},iB={key:0,class:"mx-1 mb-3 flex items-center gap-2 rounded-lg border border-destructive/30 bg-destructive/5 p-3 text-sm text-destructive"},aB={key:1,class:"flex flex-col items-center gap-6 py-8"},oB={key:0,class:"w-full max-w-md rounded-lg border border-primary/20 bg-primary/5 p-4"},sB={class:"flex justify-center gap-4"},lB={key:0,class:"flex flex-col items-center gap-1"},cB=["src"],dB={key:1,class:"flex flex-col items-center gap-1"},uB=["src"],fB={class:"flex gap-4"},pB={class:"flex gap-1"},hB={key:2,class:"flex flex-col gap-3"},gB={class:"flex items-center gap-2 px-1"},vB={key:0,class:"mx-1 flex items-center gap-3 rounded-lg border border-primary/30 bg-primary/5 p-2"},mB=["src","alt"],yB={class:"min-w-0 flex-1"},bB={class:"truncate text-sm font-medium"},xB={class:"max-h-[50vh] overflow-y-auto rounded-lg border"},wB={key:3,class:"flex flex-col gap-3"},_B={class:"flex items-center gap-2 px-1"},CB={key:0,class:"mx-1 flex items-center gap-3 rounded-lg border border-primary/30 bg-primary/5 p-2"},kB=["src","alt"],SB={class:"min-w-0 flex-1"},TB={class:"truncate text-sm font-medium"},OB={class:"max-h-[50vh] overflow-y-auto rounded-lg border"},EB={key:4,class:"flex flex-col gap-6 py-6"},AB={class:"flex justify-center gap-8"},MB={key:0,class:"flex flex-col items-center gap-2"},PB={class:"flex items-center gap-1.5 text-sm font-medium"},LB={key:0,class:"overflow-hidden rounded-lg border bg-gray-50 dark:bg-gray-800"},DB=["src","alt"],IB={key:1,class:"max-w-[200px] truncate text-xs text-muted-foreground"},jB={class:"flex flex-col items-center gap-2"},NB={class:"flex items-center gap-1.5 text-sm font-medium"},RB={key:0,class:"overflow-hidden rounded-lg border bg-gray-50 dark:bg-gray-800"},BB=["src","alt"],VB={key:1,class:"max-w-[200px] truncate text-xs text-muted-foreground"},HB={class:"flex gap-2"},Ou="https://static.sparksystem.de/mediahub",Eu="public/mediahub",FB=bp({__name:"AssetWizard",emits:["confirm"],setup(a,{expose:r,emit:t}){const e=wt=>encodeURIComponent(wt).replace(/%7B/gi,"{").replace(/%7D/gi,"}"),n=wt=>{const It=(wt.startsWith(Eu+"/")?wt.slice(Eu.length+1):wt).split("/").map(Bt=>e(Bt)).join("/");return`${Ou}/${It}`},i=wt=>{if(!wt)return null;let mt=wt;mt.startsWith(Ou+"/")&&(mt=mt.slice(Ou.length+1));const It=mt.match(/^(.+)\/_variants\/([^\/]+)\/[^\/]+$/);if(It)return It[2];const Bt=mt.lastIndexOf("/"),se=Bt>=0?mt.substring(Bt+1):mt,ue=se.lastIndexOf(".");return ue>0?se.substring(0,ue):se},o=wt=>{const mt=wt.startsWith(Eu+"/")?wt.slice(Eu.length+1):wt,It=mt.lastIndexOf("/"),Bt=It>=0?mt.substring(0,It):"",se=It>=0?mt.substring(It+1):mt,ue=se.substring(0,se.lastIndexOf("."))||se,kt=(Bt?`${Bt}/_variants/${ue}/thumbnail.webp`:`_variants/${ue}/thumbnail.webp`).split("/").map(Ot=>e(Ot)).join("/");return`${Ou}/${kt}`},s=He(!1),c=He(0),d=He(!1),f=He(null),g=He(null),m=He(null),y=He(null),x=He(!1),w=He(null),k=He(null),S=He(null),A=t,L=Qi(()=>d.value?4:3),D=Qi(()=>{const wt=[{label:"Platzierung",icon:"breakpoint"}];return d.value?(wt.push({label:"Mobile",icon:"mobile"}),wt.push({label:"Desktop",icon:"desktop"})):wt.push({label:"Desktop",icon:"desktop"}),wt.push({label:"Ãbersicht",icon:"confirm"}),wt}),W=Qi(()=>c.value===0?!0:c.value===1&&d.value?!!g.value:c.value===1&&!d.value||c.value===2&&d.value?!!f.value:!0),j=Qi(()=>c.value===L.value-1),et=()=>{c.value<L.value-1&&c.value++},z=()=>{c.value>0&&c.value--},B=()=>{d.value=!1,g.value=null,c.value=1},X=()=>{d.value=!0,c.value=1},Z=wt=>{f.value=wt},F=wt=>{g.value=wt},st=()=>{x.value=!0,w.value=null,A("confirm",{desktop:f.value,mobile:d.value?g.value:null,pictureComponent:m.value,editor:y.value})};r({onConfirmResult:(wt,mt)=>{x.value=!1,wt?Ct():w.value=mt||"Ein Fehler ist aufgetreten."}});const Ct=()=>{s.value=!1,c.value=0,d.value=!1,f.value=null,g.value=null,m.value=null,y.value=null,x.value=!1,w.value=null,k.value=null,S.value=null},_=He(""),Q=wt=>{if(!wt)return null;try{return decodeURIComponent(wt).split("?")[0]}catch{return wt.split("?")[0]}},J=Qi(()=>i(Q(k.value)||"")||""),gt=Qi(()=>i(Q(S.value)||"")||""),St=wt=>{const mt=wt.detail;if(m.value=(mt==null?void 0:mt.pictureComponent)||null,y.value=(mt==null?void 0:mt.editor)||null,_.value=(mt==null?void 0:mt.initialPath)||"",c.value=0,d.value=!1,f.value=null,g.value=null,x.value=!1,w.value=null,k.value=null,S.value=null,m.value){const It=m.value.components();let Bt=null,se=null;It.forEach(ue=>{const ne=ue.get("tagName"),kt=ue.getAttributes();if(ne==="source"){const Ot=(kt==null?void 0:kt.media)||"",Mt=(kt==null?void 0:kt.srcset)||"";Ot.includes("max-width")&&Mt&&!Mt.includes("placehold.co")?Bt=Mt:Ot.includes("min-width")&&Mt&&!Mt.includes("placehold.co")&&(se=Mt)}}
3610),k.value=se,S.value=Bt,Bt&&se&&Bt!==se&&(d.value=!0)}s.value=!0};return e1(()=>{window.addEventListener("asset-wizard:open",St)}),W4(()=>{window.removeEventListener("asset-wizard:open",St)}),(wt,mt)=>(_e(),ci(Se(r5),{open:s.value,"onUpdate:open":mt[4]||(mt[4]=It=>s.value=It)},{default:pr(()=>[Le(Se(X4),{class:"flex max-h-[90vh] max-w-[95vw] flex-col overflow-hidden sm:max-w-4xl"},{default:pr(()=>[Le(Se(J4),null,{default:pr(()=>[Le(Se(Q4),null,{default:pr(()=>[...mt[5]||(mt[5]=[_n("Bild auswählen",-1)])]),_:1}),Le(Se(t5),null,{default:pr(()=>[...mt[6]||(mt[6]=[_n(" Wählen Sie ein Bild für das Picture-Element aus. ",-1)])]),_:1}),Ht("div",eB,[(_e(!0),Ne(na,null,ao(D.value,(It,Bt)=>(_e(),Ne(na,{key:Bt},[Bt>0?(_e(),Ne("div",{key:0,class:rs(["h-0.5 w-8 transition-colors sm:w-12",Bt<=c.value?"bg-primary":"bg-gray-200 dark:bg-gray-700"])},null,2)):Ar("",!0),Ht("div",rB,[Ht("div",{class:rs(["flex h-8 w-8 items-center justify-center rounded-full border-2 transition-colors",{"border-primary bg-primary text-white":Bt===c.value,"border-primary bg-primary/10 text-primary":Bt<c.value,"border-gray-300 text-gray-400 dark:border-gray-600":Bt>c.value}])},[Bt<c.value?(_e(),ci(Se(nc),{key:0,class:"h-4 w-4"})):It.icon==="desktop"?(_e(),ci(Se(ic),{key:1,class:"h-4 w-4"})):It.icon==="mobile"?(_e(),ci(Se(Xd),{key:2,class:"h-4 w-4"})):It.icon==="breakpoint"?(_e(),ci(Se(l5),{key:3,class:"h-4 w-4"})):(_e(),ci(Se(nc),{key:4,class:"h-4 w-4"}))],2),Ht("span",{class:rs(["text-[10px] font-medium",Bt<=c.value?"text-primary":"text-gray-400"])},hn(It.label),3)])],64))),128))])]),_:1}),Ht("div",nB,[w.value?(_e(),Ne("div",iB,[Le(Se(hc),{class:"h-4 w-4 shrink-0"}),_n(" "+hn(w.value),1)])):Ar("",!0),c.value===0?(_e(),Ne("div",aB,[k.value||S.value?(_e(),Ne("div",oB,[mt[9]||(mt[9]=Ht("p",{class:"mb-2 text-center text-xs font-medium text-primary"},"Aktuell gesetzte Bilder:",-1)),Ht("div",sB,[k.value?(_e(),Ne("div",lB,[Ht("img",{src:k.value,alt:"Desktop",class:"h-16 w-24 rounded border object-cover"},null,8,cB),mt[7]||(mt[7]=Ht("span",{class:"text-[10px] text-muted-foreground"},"Desktop",-1))])):Ar("",!0),S.value&&S.value!==k.value?(_e(),Ne("div",dB,[Ht("img",{src:S.value,alt:"Mobile",class:"h-16 w-24 rounded border object-cover"},null,8,uB),mt[8]||(mt[8]=Ht("span",{class:"text-[10px] text-muted-foreground"},"Mobile",-1))])):Ar("",!0)])])):Ar("",!0),mt[14]||(mt[14]=Ht("p",{class:"text-center text-sm text-muted-foreground"}," Soll sich das Bild auf Mobile von dem auf Desktop unterscheiden? ",-1)),Ht("div",fB,[Le(Se(jo),{variant:"outline",class:"flex h-auto flex-col gap-2 px-6 py-4",onClick:B},{default:pr(()=>[Le(Se(ic),{class:"h-8 w-8"}),mt[10]||(mt[10]=Ht("span",{class:"text-sm font-medium"},"Gleiches Bild für alle",-1)),mt[11]||(mt[11]=Ht("span",{class:"text-xs text-muted-foreground"},"Ein Bild für Desktop & Mobile",-1))]),_:1}),Le(Se(jo),{variant:"outline",class:"flex h-auto flex-col gap-2 px-6 py-4",onClick:X},{default:pr(()=>[Ht("div",pB,[Le(Se(ic),{class:"h-6 w-6"}),Le(Se(Xd),{class:"h-6 w-6"})]),mt[12]||(mt[12]=Ht("span",{class:"text-sm font-medium"},"Unterschiedliche Bilder",-1)),mt[13]||(mt[13]=Ht("span",{class:"text-xs text-muted-foreground"},"Jeweils ein Bild für Desktop & Mobile",-1))]),_:1})])])):Ar("",!0),c.value===1&&d.value?(_e(),Ne("div",hB,[Ht("div",gB,[Le(Se(Xd),{class:"h-4 w-4 text-muted-foreground"}),mt[15]||(mt[15]=Ht("span",{class:"text-sm font-medium"},"Mobile-Bild auswählen",-1))]),g.value?(_e(),Ne("div",vB,[Ht("img",{src:o(g.value.path),alt:g.value.name,class:"h-12 w-12 rounded object-cover",onError:mt[0]||(mt[0]=It=>It.target.src=n(g.value.path))},null,40,mB),Ht("div",yB,[Ht("p",bB,hn(g.value.name),1),mt[16]||(mt[16]=Ht("p",{class:"text-xs text-muted-foreground"},"Ausgewählt",-1))]),Le(Se(nc),{class:"h-5 w-5 shrink-0 text-primary"})])):Ar("",!0),Ht("div",xB,[Le(l0,{"selection-mode":!0,"initial-path":_.value,"highlighted-file":gt.value,onFileSelected:F},null,8,["initial-path","highlighted-file"])])])):Ar("",!0),c.value===1&&!d.value||c.value===2&&d.value?(_e(),Ne("div",wB,[Ht("div",_B,[Le(Se(ic),{class:"h-4 w-4 text-muted-foreground"}),mt[17]||(mt[17]=Ht("span",{class:"text-sm font-medium"},"Desktop-Bild auswählen",-1))]),f.value?(_e(),Ne("div",CB,[Ht("img",{src:o(f.value.path),alt:f.value.name,class:"h-12 w-12 rounded object-cover",onError:mt[1]||(mt[1]=It=>It.target.src=n(f.value.path))},null,40,kB),Ht("div",SB,[Ht("p",TB,hn(f.value.name),1),mt[18]||(mt[18]=Ht("p",{class:"text-xs text-muted-foreground"},"Ausgewählt",-1))]),Le(Se(nc),{class:"h-5 w-5 shrink-0 text-primary"})])):Ar("",!0),Ht("div",OB,[Le(l0,{"selection-mode":!0,"initial-path":_.value,"highlighted-file":J.value,onFileSelected:Z},null,8,["initial-path","highlighted-file"])])])):Ar("",!0),j.value?(_e(),Ne("div",EB,[mt[21]||(mt[21]=Ht("p",{class:"text-center text-sm text-muted-foreground"}," Ãberprüfen Sie Ihre Auswahl und bestätigen Sie. ",-1)),Ht("div",AB,[d.value?(_e(),Ne("div",MB,[Ht("div",PB,[Le(Se(Xd),{class:"h-4 w-4"}),mt[19]||(mt[19]=_n(" Mobile ",-1))]),g.value?(_e(),Ne("div",LB,[Ht("img",{src:o(g.value.path),alt:g.value.name,class:"h-32 w-48 object-cover",onError:mt[2]||(mt[2]=It=>It.target.src=n(g.value.path))},null,40,DB)])):Ar("",!0),g.value?(_e(),Ne("p",IB,hn(g.value.name),1)):Ar("",!0)])):Ar("",!0),Ht("div",jB,[Ht("div",NB,[Le(Se(ic),{class:"h-4 w-4"}),mt[20]||(mt[20]=_n(" Desktop ",-1))]),f.value?(_e(),Ne("div",RB,[Ht("img",{src:o(f.value.path),alt:f.value.name,class:"h-32 w-48 object-cover",onError:mt[3]||(mt[3]=It=>It.target.src=n(f.value.path))},null,40,BB)])):Ar("",!0),f.value?(_e(),Ne("p",VB,hn(f.value.name),1)):Ar("",!0)])])])):Ar("",!0)]),c.value>0?(_e(),ci(Se(e5),{key:0,class:"flex items-center justify-between border-t pt-4 sm:justify-between"},{default:pr(()=>[Le(Se(jo),{variant:"outline",onClick:z},{default:pr(()=>[Le(Se(c5),{class:"mr-1.5 h-4 w-4"}),mt[22]||(mt[22]=_n(" Zurück ",-1))]),_:1}),Ht("div",HB,[Le(Se(jo),{variant:"ghost",onClick:Ct},{default:pr(()=>[...mt[23]||(mt[23]=[_n(" Abbrechen ",-1)])]),_:1}),j.value?(_e(),ci(Se(jo),{key:1,disabled:!f.value||x.value,onClick:st},{default:pr(()=>[x.value?(_e(),ci(Se(Q2),{key:0,class:"mr-1.5 h-4 w-4 animate-spin"})):(_e(),ci(Se(nc),{key:1,class:"mr-1.5 h-4 w-4"})),_n(" "+hn(x.value?"Wird übernommenâ¦":"Ãbernehmen"),1)]),_:1},8,["disabled"])):(_e(),ci(Se(jo),{key:0,disabled:!W.value,onClick:et},{default:pr(()=>[mt[24]||(mt[24]=_n(" Weiter ",-1)),Le(Se(d5),{class:"ml-1.5 h-4 w-4"})]),_:1},8,["disabled"]))])]),_:1})):Ar("",!0)]),_:1})]),_:1},8,["open"]))}}),$B={class:"os-placeholder-panel"},zB={class:"os-placeholder-header"},UB={class:"os-placeholder-tabs mb-2"},WB={class:"os-placeholder-search mb-3"},ZB={key:0,class:"os-title-tabs"},qB=["onClick"],KB={key:1,class:"os-placeholder-list-header"}
3610,GB=["aria-label","title"],YB={key:2,class:"os-placeholder-list"},XB=["onClick","title"],JB={class:"os-placeholder-key"},QB={key:0,class:"os-placeholder-value"},tV={key:0,class:"text-xs text-gray-400 text-center py-4"},eV={key:3,class:"text-xs text-gray-400 text-center py-4"},rV=bp({__name:"PlaceholderPanel",props:{visible:{type:Boolean},landingpageId:{},landingpageName:{}},emits:["insert"],setup(a,{expose:r,emit:t}){const e=a,n=t,i=He(""),o=He([]),s=He([]),c=He([]),d=He(!1),f=He(null),g=He(!0),m=He("system"),y=He(!1),{toast:x}=J2(),w=He({}),k=He(!1);let S;const A=Qi(()=>[...o.value].sort((F,st)=>{const q=F.placeholder_key.localeCompare(st.placeholder_key,"de",{sensitivity:"base"});return g.value?q:-q}));function L(F){x({message:F,variant:"info"})}async function D(){d.value=!0;try{const F=new URLSearchParams;i.value&&F.set("search",i.value),f.value&&F.set("title",f.value),m.value==="landingpage"&&F.set("landingpage_id",String(e.landingpageId));const q=await(await fetch(`/placeholders/api/list?${F.toString()}`,{headers:{Accept:"application/json","X-Requested-With":"XMLHttpRequest"}})).json();if(s.value=q.titles,c.value=q.regions||[],f.value===null&&s.value.length>0){f.value=s.value[0],await D();return}o.value=q.placeholders}catch(F){console.error("Fehler beim Laden der Platzhalter:",F)}finally{d.value=!1}}function W(){clearTimeout(S),S=setTimeout(()=>{D()},300)}function j(F){f.value=F,D()}function et(){g.value=!g.value}function z(F){m.value=F,i.value="",f.value=s.value.length>0?s.value[0]:null,D()}Lg(()=>e.visible,F=>{F&&D()}),e1(()=>{e.visible&&D()});function B(F){const st=F.startsWith("{")?F:`{${F}}`;n("insert",st)}function X(){w.value={},y.value=!0}async function Z(F){if(k.value=!0,w.value={},F.length===0){w.value={general:"Mindestens ein Key mit einem Wert muss ausgefüllt werden."},k.value=!1;return}const st={placeholders:F};m.value==="landingpage"&&(st.landingpage_id=e.landingpageId);try{const q=await ns("/placeholders/bulk",{method:"POST",headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest",Accept:"application/json"},body:JSON.stringify(st)});if(q.ok||q.status===302||q.status===303)y.value=!1,D();else if(q.status===422){const Ct=await q.json();w.value=Ct.errors||{}}else console.error("Fehler beim Erstellen:",q.status)}catch(q){console.error("Fehler beim Erstellen:",q)}finally{k.value=!1}}return r({showToast:L}),(F,st)=>to((_e(),Ne("div",$B,[Ht("div",zB,[st[4]||(st[4]=Ht("h3",{class:"text-sm font-semibold mb-2"},"Platzhalter",-1)),Ht("div",UB,[Ht("button",{class:rs(["os-tab-btn",m.value==="system"&&"os-tab-btn--active"]),onClick:st[0]||(st[0]=q=>z("system"))},"System",2),Ht("button",{class:rs(["os-tab-btn",m.value==="landingpage"&&"os-tab-btn--active"]),onClick:st[1]||(st[1]=q=>z("landingpage"))},"Landingpage",2)]),Ht("div",WB,[to(Ht("input",{"onUpdate:modelValue":st[2]||(st[2]=q=>i.value=q),onInput:W,type:"text",placeholder:"Suchenâ¦",class:"w-full rounded-md border border-gray-300 bg-white px-3 py-1.5 text-sm focus:outline-none focus:ring-2 focus:ring-orange-500 focus:border-orange-500"},null,544),[[Z4,i.value]])]),Le(Se(jo),{size:"sm",class:"w-full mb-3",onClick:X},{default:pr(()=>[_n(" + "+hn(m.value==="system"?"Neuer Systemplatzhalter":"Neuer Landingpageplatzhalter"),1)]),_:1})]),s.value.length>0?(_e(),Ne("div",ZB,[(_e(!0),Ne(na,null,ao(s.value,q=>(_e(),Ne("button",{key:q,class:rs(["os-title-tab",f.value===q&&"os-title-tab--active"]),onClick:Ct=>j(q)},hn(q),11,qB))),128))])):Ar("",!0),!d.value&&o.value.length>0?(_e(),Ne("div",KB,[Ht("button",{class:"os-sort-btn",type:"button","aria-label":g.value?"Absteigend sortieren":"Aufsteigend sortieren",title:g.value?"Absteigend sortieren":"Aufsteigend sortieren",onClick:et},[g.value?(_e(),ci(Se(p5),{key:0,class:"os-sort-icon","aria-hidden":"true"})):(_e(),ci(Se(h5),{key:1,class:"os-sort-icon","aria-hidden":"true"}))],8,GB)])):Ar("",!0),d.value?(_e(),Ne("div",eV," Laden⦠")):(_e(),Ne("div",YB,[(_e(!0),Ne(na,null,ao(A.value,q=>(_e(),Ne("div",{key:q.id,class:"os-placeholder-item",onClick:Ct=>B(q.placeholder_key),title:`{${q.placeholder_key}} â ${q.placeholder_value}`},[Ht("div",JB,[st[5]||(st[5]=_n("{",-1)),Ht("span",null,hn(q.placeholder_key),1),st[6]||(st[6]=_n("}",-1))]),q.placeholder_value?(_e(),Ne("div",QB,hn(q.placeholder_value),1)):Ar("",!0)],8,XB))),128)),o.value.length===0?(_e(),Ne("div",tV," Keine Platzhalter gefunden. ")):Ar("",!0)])),Le(u5,{open:y.value,"onUpdate:open":st[3]||(st[3]=q=>y.value=q),titles:s.value,regions:c.value,processing:k.value,errors:w.value,"dialog-title":m.value==="system"?"Systemplatzhalter erstellen":"Landingpageplatzhalter erstellen","dialog-description":m.value==="system"?"Erstellen Sie einen oder mehrere System-Platzhalter, die global für alle Landingpages gelten.":`Erstellen Sie einen oder mehrere Platzhalter, die nur für die Landingpage â${e.landingpageName}â gelten.`,"general-error":w.value.general,onSubmit:Z},null,8,["open","titles","regions","processing","errors","dialog-title","dialog-description","general-error"])],512)),[[Uo,a.visible]])}}),nV=X2(rV,[["__scopeId","data-v-f2a84c5f"]]),iV=""+new URL("app-CMgGupQj.css",import.meta.url).href,aV={class:"editor-container"},oV={key:0,class:"loading-overlay"},sV={class:"loading-status",role:"status","aria-live":"polite"},lV={class:"loading-icon"},cV={class:"grapejs-editor-container",id:"grapejs-editor-container"},dV={class:"editor-row mx-1"},uV={class:"panel__right"},fV={class:"traits-container"},pV={class:"styles-container"},hV={class:"layers-container"},gV={class:"settings-container h-full overflow-y-auto p-4 pb-20"},vV={class:"mb-8"},mV={class:"flex items-center space-x-2"},yV={class:"mb-8"},bV={class:"flex items-center space-x-2"},xV={class:"space-y-6"},wV={class:"space-y-2"},_V=["value"],CV={class:"space-y-2"},kV=["value"],SV={class:"mt-10 rounded-r border-l-4 border-blue-400 bg-blue-50 p-3 text-left"},TV={class:"flex"},OV={class:"flex-shrink-0"},eH=bp({__name:"Grapes",props:{customCss:{},landingpage:{},brands:{},navigationOptions:{},footerOptions:{},offers:{}},setup(a){var se,ue,ne;const t=((ue=(se=Y4().props.auth)==null?void 0:se.user)==null?void 0:ue.roles)??[],{toast:e}=J2(),n=He(!1),i=He(300);function o(kt){kt.preventDefault();const Ot=kt.clientX,Mt=i.value;document.body.style.userSelect="none",document.body.style.cursor="col-resize";
3610const zt=document.querySelectorAll("iframe");zt.forEach(Zt=>Zt.style.pointerEvents="none");function Kt(Zt){Zt.preventDefault();const ve=Mt+(Zt.clientX-Ot);i.value=Math.min(500,Math.max(240,ve))}function le(){document.body.style.userSelect="",document.body.style.cursor="",zt.forEach(Zt=>Zt.style.pointerEvents=""),document.removeEventListener("mousemove",Kt),document.removeEventListener("mouseup",le)}document.addEventListener("mousemove",Kt),document.addEventListener("mouseup",le)}const s=He(null),c=He(null),d=He(null),f=He(!0),g=He(!1),m=He(!1),y=He("idle"),x=He(null),w=Qi(()=>x.value?`Zuletzt gespeichert: ${new Intl.DateTimeFormat("de-DE",{dateStyle:"short",timeStyle:"medium"}).format(x.value)}`:"Noch nicht gespeichert"),k=performance.now();let S=null,A=null,L=null;const D=async()=>{if(!S)throw new Error("Die Speichersteuerung ist noch nicht initialisiert.");await S.save()},W=a;typeof window<"u"&&(window.__grapesOffers=W.offers??[],window.__grapesOfferContext={campaignId:((ne=W.landingpage.campaign)==null?void 0:ne.id)??null,brandIds:W.landingpage.brand_ids??[]});const{editor:j,hierarchy:et,rightPanel:z,refreshBlocks:B,startDrag:X,initAfterLoad:Z}=g5(null,W.landingpage.page_type==="aboshop"),F=He(W.landingpage.show_totop_button),st=He(W.landingpage.wide_content),q=He(W.landingpage.navigation_variant),Ct=He(W.landingpage.footer_variant);Lg(()=>W.landingpage,kt=>{F.value=kt.show_totop_button,st.value=kt.wide_content,q.value=kt.navigation_variant,Ct.value=kt.footer_variant},{deep:!0});const _=async(kt,Ot)=>{try{if(!(await ns(`/grapes/settings/${W.landingpage.id}`,{method:"POST",headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify({[kt]:Ot})})).ok)throw new Error("Failed to update settings");console.log(`Setting ${kt} updated to ${Ot}`)}catch(Mt){console.error("Error updating settings:",Mt)}},Q=kt=>{q.value=String(kt??""),_("navigation_variant",q.value)},J=kt=>{Ct.value=String(kt??""),_("footer_variant",Ct.value)};typeof window<"u"&&window.addEventListener("placeholders:toggle",()=>{n.value=!n.value});const gt=async kt=>{var Kt,le,Zt,ve,xe,ce;if(!c.value)return;const Ot=c.value,Mt=Ot.RichTextEditor;if(((Kt=Mt==null?void 0:Mt.getToolbarEl())==null?void 0:Kt.style.display)!=="none"){const P=(le=Ot.Canvas)==null?void 0:le.getFrameEl(),H=(P==null?void 0:P.contentDocument)||((Zt=P==null?void 0:P.contentWindow)==null?void 0:Zt.document);if(H){const Y=H.getSelection();if(Y&&Y.rangeCount>0){const ct=Y.getRangeAt(0);ct.deleteContents();const _t=H.createTextNode(kt);ct.insertNode(_t),ct.setStartAfter(_t),ct.setEndAfter(_t),Y.removeAllRanges(),Y.addRange(ct),(ve=s.value)==null||ve.showToast("{â¦} an Cursorposition eingefügt");return}}}try{await navigator.clipboard.writeText(kt),(xe=s.value)==null||xe.showToast(`${kt} in Zwischenablage kopiert`)}catch{(ce=s.value)==null||ce.showToast("Kopieren fehlgeschlagen")}},St=async()=>{if(c.value){m.value=!0;try{await D(),e({icon:Gd,variant:"success",title:"Gespeichert",message:"Die Landingpage wurde erfolgreich gespeichert."})}catch(kt){console.error("Fehler beim Speichern:",kt),e({icon:hc,variant:"error",title:"Speichern fehlgeschlagen",message:"Die Landingpage konnte nicht gespeichert werden."});return}try{await ns(`/grapes/unlock/${W.landingpage.id}`,{method:"POST",headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"}})}catch(kt){console.error("Fehler beim Freigeben der Bearbeitungssperre:",kt)}finally{await new Promise(kt=>setTimeout(kt,500)),window.location.href="/landingpages"}}},wt=async()=>{if(c.value){g.value=!0;try{await D(),e({icon:Gd,variant:"success",title:"Gespeichert",message:"Die Landingpage wurde erfolgreich gespeichert."})}catch(kt){console.error("Fehler beim Speichern:",kt),e({icon:hc,variant:"error",title:"Speichern fehlgeschlagen",message:"Die Landingpage konnte nicht gespeichert werden."})}finally{g.value=!1}}},mt=[{title:"Landingpages",href:"/landingpages"},{title:W.landingpage.title,href:`/grapes/${W.landingpage.id}`,id:W.landingpage.id,is_public:W.landingpage.page_type==="aboshop"}],It=kt=>{st.value=kt,_("wide_content",kt)};Lg(st,kt=>{var zt,Kt;if(!c.value)return;const Ot=(zt=c.value.getContainer())==null?void 0:zt.querySelector("#gjs-canva");if(Ot)Ot.style.maxWidth=kt?"1280px":"960px";else{const le=(Kt=c.value.Canvas)==null?void 0:Kt.getFrameEl();le&&le.contentDocument&&le.contentDocument.body&&(le.contentDocument.body.style.maxWidth=kt?"1280px":"960px")}const Mt=c.value.getWrapper();Mt&&Mt.find("*").forEach(le=>{le.get("wide_content")!==void 0&&le.set("wide_content",kt)})});const Bt=async kt=>{var Zt,ve;const{desktop:Ot,mobile:Mt,pictureComponent:zt,editor:Kt}=kt;if(!zt||!Kt)return;const le=async xe=>{const P=await(await ns("/api/files/picture-sources",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({path:xe})})).json();if(!P.success)throw new Error("Failed to fetch picture sources");return P.data};try{console.log("[AssetWizard] desktop.path:",Ot.path,"mobile:",Mt==null?void 0:Mt.path);const xe=await le(Ot.path),ce=Mt?await le(Mt.path):xe;console.log("[AssetWizard] desktopSources:",xe,"mobileSources:",ce);const P=zt.components();let H=null,Y=null,ct=null;if(console.log("[AssetWizard] pictureComponent tagName:",zt.get("tagName"),"children count:",P.length),P.forEach(_t=>{const K=_t.get("tagName"),yt=_t.getAttributes();if(console.log("[AssetWizard] child tag:",K,"attrs:",JSON.stringify(yt)),K==="source"){const ut=(yt==null?void 0:yt.media)||"";ut.includes("max-width")?H=_t:ut.includes("min-width")&&(Y=_t)}else K==="img"&&(ct=_t)}),console.log("[AssetWizard] found mobileSource:",!!H,"desktopSource:",!!Y,"imgComponent:",!!ct),H&&H.addAttributes({srcset:ce.mobile||ce.fallback}),Y&&Y.addAttributes({srcset:xe.desktop||xe.fallback}),ct){ct.addAttributes({src:xe.fallback||xe.desktop}),Ot.alt_text&&ct.addAttributes({alt:Ot.alt_text});const _t=xe.fallback||xe.desktop;
3610ct.set("src",_t),ct.addAttributes({src:_t}),ct.getClasses().includes("skeleton")&&ct.removeClass("skeleton")}if(!H&&!Y&&!ct){console.log("[AssetWizard] No children found, rebuilding picture HTML");const _t=ce.mobile||ce.fallback,K=xe.desktop||xe.fallback,yt=xe.fallback||xe.desktop,ut=Ot.alt_text||"";zt.components(` 3611 <source media="(max-width: 639px)" srcset="${_t}"> 3612 <source media="(min-width: 640px)" srcset="${K}"> 3613 <img src="${yt}" alt="${ut}" class="w-full h-auto" loading="lazy"> 3614 `)}await D(),(Zt=d.value)==null||Zt.onConfirmResult(!0)}catch(xe){console.error("Fehler beim Laden der Bild-Varianten:",xe);const ce=xe instanceof Error?xe.message:"Fehler beim Laden der Bild-Varianten.";(ve=d.value)==null||ve.onConfirmResult(!1,ce)}};return e1(()=>{var Ot;const kt=QR("#gjs",iV,W.customCss,W.landingpage.id,W.brands,W.landingpage.uuid,W.landingpage.page_type==="aboshop",W.landingpage.brand_ids,W.landingpage.title,((Ot=W.landingpage.campaign)==null?void 0:Ot.name)??"",W.landingpage.custom_path??"",t);c.value=kt,S=RR(kt,{onSaveStart:()=>{y.value="saving"},onSaveSuccess:Mt=>
3614{const zt=Mt.saved_at?new Date(Mt.saved_at):new Date;x.value=Number.isNaN(zt.getTime())?new Date:zt,y.value="saved"},onSaveError:Mt=>{y.value="error",console.error("Fehler beim Speichern:",Mt)}}),A=tB(kt,{save:D,onSaveSuccess:()=>{e({icon:Gd,variant:"success",title:"Gespeichert",message:"Die Landingpage wurde erfolgreich gespeichert.",duration:2200})},onSaveError:Mt=>{console.error("Fehler beim Speichern per Tastatur:",Mt),e({icon:hc,variant:"error",title:"Speichern fehlgeschlagen",message:"Die Landingpage konnte nicht gespeichert werden."})}}),kt.on("os-visibility-saved",Mt=>{Mt!=null&&Mt.success?e({icon:Gd,variant:"success",title:"Sichtbarkeit gespeichert",message:"Die Sichtbarkeit des Moduls wurde erfolgreich gespeichert."}):e({icon:hc,variant:"error",title:"Speichern fehlgeschlagen",message:"Die Sichtbarkeit des Moduls konnte nicht gespeichert werden."})}),j.value=kt,B(),kt.on("load",async()=>{var le,Zt;const Mt=kt.getWrapper();Mt&&Mt.find("*").forEach(ve=>{ve.get("wide_content")!==void 0&&ve.set("wide_content",st.value)});const zt=(le=kt.getContainer())==null?void 0:le.querySelector("#gjs-canva");if(zt)zt.style.maxWidth=st.value?"1280px":"960px";else{const ve=(Zt=kt.Canvas)==null?void 0:Zt.getFrameEl();ve&&ve.contentDocument&&ve.contentDocument.body&&(ve.contentDocument.body.style.maxWidth=st.value?"1280px":"960px")}Z(),L==null||L.abort(),L=new AbortController;const Kt=await I5(kt,{loaderStartedAt:k,signal:L.signal});Kt!=="aborted"&&(Kt==="timeout"?console.warn("Der GrapeJS-Canvas wurde vor Ablauf des Lade-Timeouts nicht vollständig stabil."):Kt==="unavailable"&&console.warn("Der GrapeJS-Canvas war beim Abschluss des Editor-Ladevorgangs nicht verfügbar."),f.value=!1)})}),q4(()=>{L==null||L.abort(),L=null,A==null||A(),A=null}),(kt,Ot)=>(_e(),Ne(na,null,[Le(Se(K4),{title:`${a.landingpage.title} - GrapeJS Editor`},null,8,["title"]),Le(n5,{breadcrumbs:mt,description:"Bearbeiten Sie das Design und den Inhalt Ihrer Landingpage mit dem visuellen Editor.","button-text":"Speichern & Zurück","button-id":"save-and-back-btn","button2-id":"save-btn","button2-text":"Speichern","button-loading":m.value,"button2-loading":g.value,onButtonClick:St,onButton2Click:wt},{"extra-buttons":pr(()=>[Ht("span",{class:rs(["mr-2 hidden text-xs text-gray-500 sm:inline",{"text-blue-600":y.value==="saving","text-red-600":y.value==="error"}]),"aria-live":"polite"},hn(y.value==="saving"?"Speichertâ¦":y.value==="error"?"Speichern fehlgeschlagen":w.value),3)]),default:pr(()=>[Ht("div",aV,[f.value?(_e(),Ne("div",oV,[Ht("div",sV,[Ht("div",lV,[Le(Se(Q2),{"aria-hidden":"true"})]),Ot[4]||(Ot[4]=Ht("div",{class:"loading-copy"},[Ht("p",{class:"loading-title"},"Editor wird vorbereitet"),Ht("p",{class:"loading-description"},"Inhalte und Styles werden geladen")],-1))])])):Ar("",!0),Ot[17]||(Ot[17]=Ht("div",{class:"panel__brand-preview"},null,-1)),Ht("div",cV,[Ot[16]||(Ot[16]=Ht("div",{class:"panel__top !border-sidebar-border/70 border-b"},[Ht("div",{class:"panel__basic-actions"}),Ht("div",{class:"panel__devices"}),Ht("div",{class:"panel__switcher"})],-1)),Ht("div",dV,[to(Ht("div",{class:"panel__left",style:G4({flexBasis:i.value+"px"})},[Le(nV,{ref_key:"placeholderPanelRef",ref:s,visible:n.value,"landingpage-id":a.landingpage.id,"landingpage-name":a.landingpage.title,onInsert:gt},null,8,["visible","landingpage-id","landingpage-name"]),Ht("div",{class:"panel__left-resize",onMousedown:o},null,32)],4),[[Uo,n.value]]),Ot[15]||(Ot[15]=Ht("div",{class:"editor-canvas"},[Ht("div",{id:"gjs"})],-1)),Ht("div",uV,[Ot[14]||(Ot[14]=Ht("div",{class:"blocks-container hidden"},null,-1)),Le(M5,{hierarchy:Se(et),visible:Se(z)==="blocks",onDragStart:Se(X)},null,8,["hierarchy","visible","onDragStart"]),to(Ht("div",fV,null,512),[[Uo,Se(z)==="traits"]]),to(Ht("div",pV,null,512),[[Uo,Se(z)==="styles"]]),to(Ht("div",hV,null,512),[[Uo,Se(z)==="layers"]]),to(Ht("div",gV,[Ot[13]||(Ot[13]=Ht("h3",{class:"mb-6 border-b pb-2 text-lg font-semibold text-gray-900"},"Landingpage-Einstellungen",-1)),Ht("div",vV,[Ht("div",mV,[Le(Se(a0),{id:"gjs-setting-totop",checked:F.value,"onUpdate:checked":Ot[0]||(Ot[0]=Mt=>{typeof Mt=="boolean"&&(F.value=Mt,_("show_totop_button",Mt))})},null,8,["checked"]),Le(Yd,{for:"gjs-setting-totop",class:"text-sm leading-none font-medium select-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"},{default:pr(()=>[...Ot[5]||(Ot[5]=[_n(" To-Top Button anzeigen ",-1)])]),_:1}),Le(Se(i5),{"delay-duration":300},{default:pr(()=>[Le(Se(a5),null,{default:pr(()=>[Le(Se(o5),{"as-child":""},{default:pr(()=>[Le(Se(s0),{class:"inline size-4 cursor-help text-gray-400"})]),_:1}),Le(Se(s5),{side:"right"},{default:pr(()=>[...Ot[6]||(Ot[6]=[Ht("p",{class:"max-w-xs text-xs"}," Der To-Top Button wird nur in der Live-Vorschau und auf der öffentlichen Seite angezeigt, nicht im GrapesJS-Editor. ",-1)])]),_:1})]),_:1})]),_:1})]),Ot[7]||(Ot[7]=Ht("p",{class:"mt-2 text-left text-xs text-gray-500 italic"},"Aktiviert den schwebenden Button zum Hochscrollen.",-1))]),Ht("div",yV,[Ht("div",bV,[Le(Se(a0),{id:"gjs-setting-wide",checked:st.value,"onUpdate:checked":Ot[1]||(Ot[1]=Mt=>{typeof Mt=="boolean"&&It(Mt)}
3614)},null,8,["checked"]),Le(Yd,{for:"gjs-setting-wide",class:"text-sm leading-none font-medium select-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"},{default:pr(()=>[...Ot[8]||(Ot[8]=[_n(" Breiter Content ",-1)])]),_:1})]),Ot[9]||(Ot[9]=Ht("p",{class:"mt-2 text-left text-xs text-gray-500 italic"},"Nutzt 1280px statt 960px Breite.",-1))]),Ht("div",xV,[Ht("div",wV,[Le(Yd,{for:"gjs-setting-nav",class:"text-sm font-semibold"},{default:pr(()=>[...Ot[10]||(Ot[10]=[_n("Navigation",-1)])]),_:1}),Le(Se(o0),{id:"gjs-setting-nav",modelValue:q.value,"onUpdate:modelValue":[Ot[2]||(Ot[2]=Mt=>q.value=Mt),Q],class:"w-full"},{default:pr(()=>[(_e(!0),Ne(na,null,ao(a.navigationOptions,Mt=>(_e(),Ne("option",{key:Mt.value,value:Mt.value},hn(Mt.label),9,_V))),128))]),_:1},8,["modelValue"])]),Ht("div",CV,[Le(Yd,{for:"gjs-setting-footer",class:"text-sm font-semibold"},{default:pr(()=>[...Ot[11]||(Ot[11]=[_n("Footer",-1)])]),_:1}),Le(Se(o0),{id:"gjs-setting-footer",modelValue:Ct.value,"onUpdate:modelValue":[Ot[3]||(Ot[3]=Mt=>Ct.value=Mt),J],class:"w-full"},{default:pr(()=>[(_e(!0),Ne(na,null,ao(a.footerOptions,Mt=>(_e(),Ne("option",{key:Mt.value,value:Mt.value},hn(Mt.label),9,kV))),128))]),_:1},8,["modelValue"])])]),Ht("div",SV,[Ht("div",TV,[Ht("div",OV,[Le(Se(s0),{class:"h-5 w-5 text-blue-400"})]),Ot[12]||(Ot[12]=Ht("div",{class:"ml-3"},[Ht("p",{class:"text-xs font-medium text-blue-700"},"Hinweis"),Ht("p",{class:"mt-1 text-[11px] leading-relaxed text-blue-600"}," Ãnderungen hier werden sofort im Hintergrund gespeichert. ")],-1))])])],512),[[Uo,Se(z)==="settings"]])])])]),Ot[18]||(Ot[18]=Ht("div",{id:"brand-preview-iframe",class:"display-none mt-[65px]"},[Ht("iframe",{style:{width:"100%",height:"100%",border:"none"},src:""})],-1))])]),_:1},8,["button-loading","button2-loading"]),Le(FB,{ref_key:"assetWizardRef",ref:d,onConfirm:Bt},null,512)],64))}});export{eH as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.