@plaidev/karte-action-sdk 1.1.268-29083022.42c3d847 → 1.1.268

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2110,1356 +2110,1049 @@ function createFog$1({ color = '#000', opacity = '50%', zIndex = 999, onclick, }
2110
2110
  }
2111
2111
 
2112
2112
  /**
2113
- * モーダル(ポップアップ)に関連するコードの管理
2113
+ * スクリプト接客が利用するコードの管理
2114
+ */
2115
+ /** @internal */
2116
+ async function runScript$1(options = {
2117
+ send: () => { },
2118
+ publish: () => { },
2119
+ props: {},
2120
+ variables: {},
2121
+ localVariablesQuery: undefined,
2122
+ karteTemplate: {},
2123
+ context: { api_key: '', collection_endpoint: undefined },
2124
+ }) {
2125
+ if (!options.onCreate)
2126
+ return;
2127
+ let data = getVariables();
2128
+ initialize({ send: options.send, initialState: data.initial_state });
2129
+ initActionTable(options.localVariablesQuery);
2130
+ const { success } = await setupActionTable(options.localVariablesQuery, data, data.api_key, options.context.collection_endpoint);
2131
+ if (!success)
2132
+ return;
2133
+ // Action Tableの取得結果を反映する
2134
+ data = getVariables();
2135
+ const actionProps = {
2136
+ send: options.send,
2137
+ publish: options.publish,
2138
+ data,
2139
+ };
2140
+ options.send('script_fired');
2141
+ // 旧Widget API IFの処理
2142
+ const { onCreateHandlers } = getInternalHandlers();
2143
+ if (onCreateHandlers) {
2144
+ onCreateHandlers.forEach(h => {
2145
+ h({ send: options.send, publish: options.publish, data });
2146
+ console.debug(`${ACTION_HOOK_LABEL}: onCreate`);
2147
+ });
2148
+ }
2149
+ options.onCreate(actionProps);
2150
+ finalize();
2151
+ }
2152
+ /**
2153
+ * ES Modules に対応していない JavaScript をページに読み込む
2114
2154
  *
2115
- * アクションのShow, Close, ChangeStateの状態はここで管理する。
2155
+ * @param src - JavaScript ファイルのリンク URL
2156
+ *
2157
+ * @public
2116
2158
  */
2159
+ async function loadGlobalScript(src) {
2160
+ return new Promise((resolve, reject) => {
2161
+ const script = document.createElement('script');
2162
+ script.src = src;
2163
+ document.body.appendChild(script);
2164
+ script.addEventListener('load', () => resolve(script));
2165
+ script.addEventListener('error', () => reject(script));
2166
+ });
2167
+ }
2117
2168
  /**
2118
- * アクションが表示 (show) された後にフックする関数
2169
+ * グローバル CSS をページに適用する
2119
2170
  *
2120
- * @param fn - 呼び出されるフック関数
2171
+ * @param css - CSS
2121
2172
  *
2122
2173
  * @public
2123
2174
  */
2124
- function onShow(fn) {
2125
- let { onShowHandlers } = getInternalHandlers();
2126
- if (!onShowHandlers) {
2127
- onShowHandlers = [];
2128
- }
2129
- onShowHandlers.push(fn);
2130
- setInternalHandlers({ onShowHandlers });
2175
+ async function applyGlobalCss(css) {
2176
+ return new Promise((resolve, reject) => {
2177
+ const action = document.querySelector(`.${KARTE_ACTION_ROOT}[data-${KARTE_ACTION_RID}='${actionId}']`);
2178
+ if (!action) {
2179
+ return;
2180
+ }
2181
+ const style = document.createElement('style');
2182
+ style.textContent = css;
2183
+ action.appendChild(style);
2184
+ style.addEventListener('load', () => resolve(style));
2185
+ style.addEventListener('error', () => reject(style));
2186
+ });
2131
2187
  }
2132
2188
  /**
2133
- * アクションがクローズ (close) される前にフックする関数
2189
+ * style ファイルをページに読み込む
2134
2190
  *
2135
- * @param fn - 呼び出されるフック関数
2191
+ * @param href - style ファイルのリンク URL
2136
2192
  *
2137
2193
  * @public
2138
2194
  */
2139
- function onClose(fn) {
2140
- let { onCloseHandlers } = getInternalHandlers();
2141
- if (!onCloseHandlers) {
2142
- onCloseHandlers = [];
2143
- }
2144
- onCloseHandlers.push(fn);
2145
- setInternalHandlers({ onCloseHandlers });
2195
+ async function loadGlobalStyle(href) {
2196
+ return new Promise((resolve, reject) => {
2197
+ const action = document.querySelector(`.${KARTE_ACTION_ROOT}[data-${KARTE_ACTION_RID}='${actionId}']`);
2198
+ if (!action) {
2199
+ return;
2200
+ }
2201
+ const link = document.createElement('link');
2202
+ link.rel = 'stylesheet';
2203
+ link.href = href;
2204
+ link.type = 'text/css';
2205
+ action.appendChild(link);
2206
+ link.addEventListener('load', () => resolve(link));
2207
+ link.addEventListener('error', () => reject(link));
2208
+ });
2146
2209
  }
2210
+
2147
2211
  /**
2148
- * アクションのステートが変更された (changeState) 後にフックする関数
2212
+ * Edgeが起動するアクションに関連するコードを管理する
2149
2213
  *
2150
- * @param fn - 呼び出されるフック関数
2214
+ * アクションのCreate, Destroyの状態はここで管理する。
2215
+ */
2216
+ const emptyOptions = {
2217
+ send: () => { },
2218
+ publish: () => { },
2219
+ props: {},
2220
+ variables: {},
2221
+ localVariablesQuery: undefined,
2222
+ karteTemplate: {},
2223
+ context: { api_key: '', collection_endpoint: undefined },
2224
+ };
2225
+ /**
2226
+ * アクションを作成する
2227
+ *
2228
+ * @param App - Svelte コンポーネントのエントリポイント
2229
+ * @param options - {@link ActionOptions | オプション}
2230
+ *
2231
+ * @returns アクションを破棄する関数
2151
2232
  *
2152
2233
  * @public
2153
2234
  */
2154
- function onChangeState(fn) {
2155
- let { onChangeStateHandlers } = getInternalHandlers();
2156
- if (!onChangeStateHandlers) {
2157
- onChangeStateHandlers = [];
2235
+ function create(App, options) {
2236
+ // TSの型検査が効かない場所やエラーを無視している箇所があるため、念の為
2237
+ options = { ...emptyOptions, ...options };
2238
+ setVariables({
2239
+ ...options.props,
2240
+ ...options.variables,
2241
+ });
2242
+ const data = getVariables();
2243
+ const actionProps = {
2244
+ send: options.send,
2245
+ publish: options.publish,
2246
+ data,
2247
+ };
2248
+ const handleDestroy = () => {
2249
+ const { onDestroyHandlers } = getInternalHandlers();
2250
+ onDestroyHandlers?.forEach(h => {
2251
+ const actionHookLog = { name: 'onDestroy' };
2252
+ console.info(`${ACTION_HOOK_LABEL}:${JSON.stringify(actionHookLog)}`);
2253
+ h(actionProps);
2254
+ });
2255
+ // 旧Widget APIの内部で利用するため、実行ログは出力しない
2256
+ const { onDestroyHandlers: onDestroyWidgetHandlers } = getWidgetHandlers();
2257
+ if (onDestroyWidgetHandlers) {
2258
+ onDestroyWidgetHandlers.forEach(h => h(actionProps));
2259
+ }
2260
+ };
2261
+ // ここからメインの処理
2262
+ setSystem({
2263
+ // @ts-ignore
2264
+ apiKey: data.api_key || null,
2265
+ collection_endpoint: options.context.collection_endpoint,
2266
+ shortenId: data.shorten_id || null,
2267
+ campaignId: data.campaign_id || null,
2268
+ });
2269
+ setActionRunnerContext(options.context);
2270
+ const loggerCleanup = listenConsoleLogger() ;
2271
+ window.addEventListener(ACTION_DESTROY_EVENT, handleDestroy);
2272
+ window.addEventListener('beforeunload', dispatchDestroyEvent, false);
2273
+ let modalCleanup = NOOP;
2274
+ if (options.karteTemplate?.template_type === 'script' ||
2275
+ options.karteTemplate?.template_content_types?.includes('script')) {
2276
+ runScript$1(options);
2158
2277
  }
2159
- onChangeStateHandlers.push(fn);
2160
- setInternalHandlers({ onChangeStateHandlers });
2278
+ else {
2279
+ modalCleanup = createModal(App, options);
2280
+ }
2281
+ return () => {
2282
+ loggerCleanup();
2283
+ modalCleanup();
2284
+ window.removeEventListener(ACTION_DESTROY_EVENT, handleDestroy);
2285
+ };
2161
2286
  }
2162
2287
  /**
2163
- * アクションを表示する
2288
+ * アクションの破棄する
2164
2289
  *
2165
2290
  * @public
2166
2291
  */
2167
- function showAction() {
2168
- const event = new CustomEvent(ACTION_SHOW_EVENT, { detail: { trigger: 'custom' } });
2169
- window.dispatchEvent(event);
2292
+ function destroyAction() {
2293
+ setDestroyed(true);
2294
+ dispatchDestroyEvent();
2170
2295
  }
2171
2296
  /**
2172
- * アクションを閉じる
2297
+ * アクションが作成 (create) される前にフックする関数
2173
2298
  *
2174
- * @param trigger - 閉じた時のトリガー。デフォルト `'none'`
2299
+ * @param fn - 呼び出されるフック関数
2175
2300
  *
2176
2301
  * @public
2177
2302
  */
2178
- function closeAction(trigger = 'none') {
2179
- const event = new CustomEvent(ACTION_CLOSE_EVENT, { detail: { trigger } });
2180
- window.dispatchEvent(event);
2303
+ function onCreate(fn) {
2304
+ let { onCreateHandlers } = getInternalHandlers();
2305
+ if (!onCreateHandlers) {
2306
+ onCreateHandlers = [];
2307
+ }
2308
+ onCreateHandlers.push(fn);
2309
+ setInternalHandlers({ onCreateHandlers });
2181
2310
  }
2182
2311
  /**
2183
- * アクションに CSS を適用する
2184
- *
2185
- * @param css - 適用する CSS
2312
+ * アクションが破棄 (destroy) される前にフックする関数
2186
2313
  *
2187
- * @returns 適用された style 要素を返す Promise
2314
+ * @param fn - 呼び出されるフック関数
2188
2315
  *
2189
2316
  * @public
2190
2317
  */
2191
- async function applyCss(css) {
2192
- return new Promise((resolve, reject) => {
2193
- const style = document.createElement('style');
2194
- style.textContent = css;
2195
- const shadowRoot = getActionRoot();
2196
- if (!shadowRoot)
2197
- return;
2198
- shadowRoot.append(style);
2199
- style.addEventListener('load', () => resolve(style));
2200
- style.addEventListener('error', () => reject(style));
2201
- });
2202
- }
2203
- async function fixFontFaceIssue(href, cssRules) {
2204
- const css = new CSSStyleSheet();
2205
- // @ts-ignore
2206
- await css.replace(cssRules);
2207
- const rules = [];
2208
- const fixedRules = [];
2209
- Array.from(css.cssRules).forEach(cssRule => {
2210
- if (cssRule.type !== 5) {
2211
- rules.push(cssRule.cssText);
2212
- }
2213
- // type 5 is @font-face
2214
- const split = href.split('/');
2215
- const stylePath = split.slice(0, split.length - 1).join('/');
2216
- const cssText = cssRule.cssText;
2217
- const newCssText = cssText.replace(
2218
- // relative paths
2219
- /url\s*\(\s*['"]?(?!((\/)|((?:https?:)?\/\/)|(?:data:?:)))([^'")]+)['"]?\s*\)/g, `url("${stylePath}/$4")`);
2220
- if (cssText === newCssText)
2221
- return;
2222
- fixedRules.push(newCssText);
2223
- });
2224
- return [rules.join('\n'), fixedRules.join('\n')];
2318
+ function onDestroy(fn) {
2319
+ let { onDestroyHandlers } = getInternalHandlers();
2320
+ if (!onDestroyHandlers) {
2321
+ onDestroyHandlers = [];
2322
+ }
2323
+ onDestroyHandlers.push(fn);
2324
+ setInternalHandlers({ onDestroyHandlers });
2225
2325
  }
2326
+ // -------- The following codes are deprecated --------
2226
2327
  /**
2227
- * アクションにグローバルなスタイルを読み込む
2328
+ * 非推奨
2228
2329
  *
2229
- * @param href - style ファイルのリンク URL
2330
+ * @deprecated 非推奨
2230
2331
  *
2231
- * @public
2332
+ * @internal
2232
2333
  */
2233
- async function loadStyle(href) {
2234
- const sr = getActionRoot();
2235
- if (!sr)
2236
- return;
2237
- let cssRules = '';
2238
- try {
2239
- const res = await fetch(href);
2240
- cssRules = await res.text();
2241
- }
2242
- catch (_) {
2243
- // pass
2244
- }
2245
- if (!cssRules)
2246
- return;
2247
- // Chromeのバグで、Shadow Rootの@font-faceを絶対パスで指定する必要がある
2248
- // @see https://stackoverflow.com/a/63717709
2249
- const [rules, fontFaceRules] = await fixFontFaceIssue(href, cssRules);
2250
- const css = new CSSStyleSheet();
2251
- // @ts-ignore
2252
- await css.replace(rules);
2253
- const fontFaceCss = new CSSStyleSheet();
2254
- // @ts-ignore
2255
- await fontFaceCss.replace(fontFaceRules);
2256
- // @ts-ignore
2257
- sr.adoptedStyleSheets = [...sr.adoptedStyleSheets, css, fontFaceCss];
2258
- // Chromeのバグで、ページとShadow Rootの両方に、@font-faceを設定する必要がある
2259
- // @see https://stackoverflow.com/a/63717709
2260
- // @ts-ignore
2261
- document.adoptedStyleSheets = [...document.adoptedStyleSheets, css, fontFaceCss];
2262
- }
2263
- // @internal
2264
- function getCssVariables(data) {
2265
- return Object.entries(data)
2266
- .filter(([key, value]) => {
2267
- return ['string', 'number'].includes(typeof value) && key.startsWith('--');
2268
- })
2269
- .map(([key, value]) => `${key}:${value}`)
2270
- .join(';');
2271
- }
2334
+ const showModal = create;
2272
2335
  /**
2273
- * アクションのルートの DOM 要素を取得する
2336
+ * 非推奨
2274
2337
  *
2275
- * @returns アクションがルートの DOM 要素 を持つ場合は DOM 要素を返します。ない場合は `null` を返します
2338
+ * @deprecated 非推奨
2276
2339
  *
2277
- * @public
2340
+ * @internal
2278
2341
  */
2279
- function getActionRoot() {
2280
- const root = document.querySelector(`.${KARTE_ACTION_ROOT}[data-${KARTE_ACTION_RID}='${actionId}']`);
2281
- if (!root?.shadowRoot) {
2282
- return null;
2342
+ function destroy() {
2343
+ setDestroyed(true);
2344
+ dispatchDestroyEvent();
2345
+ }
2346
+
2347
+ const USER_ID_VARIABLE_NAME = '__karte_form_identify_user_id';
2348
+ const MAX_LENGTH_FREE_ANSWER = 2000;
2349
+ function isEmpty(value) {
2350
+ if (Array.isArray(value)) {
2351
+ return value.length === 0;
2352
+ }
2353
+ else {
2354
+ return !value;
2283
2355
  }
2284
- return root.shadowRoot;
2285
2356
  }
2286
2357
  /** @internal */
2287
- function ensureActionRoot(useShadow = true) {
2288
- const systemConfig = getSystem();
2289
- const rootAttrs = {
2290
- class: `${KARTE_ACTION_ROOT} ${KARTE_MODAL_ROOT}`,
2291
- [`data-${KARTE_ACTION_RID}`]: actionId,
2292
- [`data-${KARTE_ACTION_SHORTEN_ID}`]: systemConfig.shortenId
2293
- ? systemConfig.shortenId
2294
- : ALL_ACTION_SHORTEN_ID,
2295
- style: { display: 'block' },
2358
+ function createInputRegisterer(formData) {
2359
+ const registerInput = ({ name, statePath, validator = () => true, initialValue, }) => {
2360
+ const writableValue = {
2361
+ subscribe(run) {
2362
+ return formData.subscribe(formData => {
2363
+ run(formData[name]?.value);
2364
+ });
2365
+ },
2366
+ set(value) {
2367
+ formData.update(prev => ({
2368
+ ...prev,
2369
+ [name]: {
2370
+ statePath,
2371
+ value,
2372
+ isValid: validator(value),
2373
+ },
2374
+ }));
2375
+ },
2376
+ update(updater) {
2377
+ formData.update(prev => {
2378
+ const prevValue = prev[name]?.value;
2379
+ if (prevValue === undefined)
2380
+ return prev;
2381
+ const value = updater(prevValue);
2382
+ return {
2383
+ ...prev,
2384
+ [name]: {
2385
+ statePath,
2386
+ value,
2387
+ isValid: validator(value),
2388
+ },
2389
+ };
2390
+ });
2391
+ },
2392
+ };
2393
+ const readableIsValid = {
2394
+ subscribe(run) {
2395
+ return formData.subscribe(formData => {
2396
+ run(formData[name]?.isValid);
2397
+ });
2398
+ },
2399
+ };
2400
+ if (isEmpty(get(writableValue))) {
2401
+ writableValue.set(initialValue);
2402
+ }
2403
+ return {
2404
+ value: writableValue,
2405
+ isValid: readableIsValid,
2406
+ };
2296
2407
  };
2297
- let el = document.querySelector(`.${KARTE_MODAL_ROOT}[data-${KARTE_ACTION_RID}='${actionId}']`);
2298
- if (el == null) {
2299
- el = h('div', rootAttrs);
2300
- document.body.appendChild(el);
2408
+ return registerInput;
2409
+ }
2410
+ /** @internal */
2411
+ const registerInput = createInputRegisterer(formData);
2412
+ /** @internal */
2413
+ const registerIdentifyInput = createInputRegisterer(identifyFormData);
2414
+ function validateFormData(formData, statePath) {
2415
+ return Object.entries(formData)
2416
+ .filter(([_, { statePath: s }]) => s === statePath) // eslint-disable-line @typescript-eslint/no-unused-vars
2417
+ .every(([_, { isValid }]) => isValid); // eslint-disable-line @typescript-eslint/no-unused-vars
2418
+ }
2419
+ /** @internal */
2420
+ const getValuesAreValidReadable = statePath => ({
2421
+ subscribe(callback) {
2422
+ return formData.subscribe(formData => identifyFormData.subscribe(identifyFormData => {
2423
+ const valuesAreValid = validateFormData(formData, statePath) && validateFormData(identifyFormData, statePath);
2424
+ callback(valuesAreValid);
2425
+ }));
2426
+ },
2427
+ });
2428
+ function createAnswerValue(value) {
2429
+ if (Array.isArray(value)) {
2430
+ return {
2431
+ choices: value,
2432
+ };
2301
2433
  }
2302
- const isShadow = !!document.body.attachShadow && useShadow;
2303
- if (isShadow) {
2304
- return el.shadowRoot ?? el.attachShadow({ mode: 'open' });
2434
+ else if (typeof value === 'string') {
2435
+ return {
2436
+ free_answer: value,
2437
+ };
2305
2438
  }
2306
- else {
2307
- return el;
2439
+ }
2440
+ function formDataToEventValues(campaignId, formData) {
2441
+ const questions = [];
2442
+ const answersMap = {};
2443
+ Object.entries(formData).forEach(([name, dataItem]) => {
2444
+ questions.push(name);
2445
+ const value = dataItem.value;
2446
+ const answerKey = `question_${name}`;
2447
+ const answerValue = createAnswerValue(value);
2448
+ answersMap[answerKey] = answerValue;
2449
+ });
2450
+ return {
2451
+ [campaignId]: {
2452
+ questions,
2453
+ ...answersMap,
2454
+ },
2455
+ };
2456
+ }
2457
+ function formDataToIdentifyEventValues(formData) {
2458
+ return Object.fromEntries(Object.entries(formData).map(([name, dataItem]) => {
2459
+ const value = dataItem.value;
2460
+ return [name, value];
2461
+ }));
2462
+ }
2463
+ /** @internal */
2464
+ function submit() {
2465
+ const systemConfig = getSystem();
2466
+ const campaignId = systemConfig.campaignId;
2467
+ if (campaignId) {
2468
+ const formData$1 = get(formData);
2469
+ const identifyFormData$1 = get(identifyFormData);
2470
+ const values = formDataToEventValues(campaignId, formData$1);
2471
+ const identifyValues = formDataToIdentifyEventValues(identifyFormData$1);
2472
+ if (Object.keys(identifyValues).length > 0) {
2473
+ identifyValues['user_id'] = getVariables()?.[USER_ID_VARIABLE_NAME];
2474
+ }
2475
+ return { values, identifyValues };
2308
2476
  }
2477
+ return {};
2309
2478
  }
2310
2479
  /**
2311
- * 非推奨
2480
+ * 選択式のアンケート回答を追加する
2312
2481
  *
2313
- * @deprecated 非推奨
2482
+ * @param questionId - 質問ID
2483
+ * @param choices - 回答内容
2314
2484
  *
2315
- * @internal
2485
+ * @public
2316
2486
  */
2317
- const show = showAction;
2487
+ function addChoiceAnswer(questionId, choices, validation) {
2488
+ formData.update(prev => ({
2489
+ ...prev,
2490
+ [questionId]: {
2491
+ value: choices,
2492
+ statePath: validation?.statePath ?? '',
2493
+ isValid: validation?.isValid ?? true,
2494
+ },
2495
+ }));
2496
+ }
2318
2497
  /**
2319
- * 非推奨
2498
+ * 自由記述式のアンケート回答を追加する
2320
2499
  *
2321
- * @deprecated 非推奨
2500
+ * @param questionId - 質問ID
2501
+ * @param freeAnswer - 回答内容
2322
2502
  *
2323
- * @internal
2503
+ * @public
2324
2504
  */
2325
- const close = closeAction;
2505
+ function addFreeAnswer(questionId, freeAnswer, validation) {
2506
+ formData.update(prev => ({
2507
+ ...prev,
2508
+ [questionId]: {
2509
+ value: freeAnswer.slice(0, MAX_LENGTH_FREE_ANSWER),
2510
+ statePath: validation?.statePath ?? '',
2511
+ isValid: validation?.isValid ?? true,
2512
+ },
2513
+ }));
2514
+ }
2326
2515
  /**
2327
- * 非推奨
2516
+ * 回答済の回答を削除
2328
2517
  *
2329
- * @deprecated 非推奨
2518
+ * @param questionId - 質問ID
2330
2519
  *
2331
- * @internal
2520
+ * @public
2332
2521
  */
2333
- const ensureModalRoot = ensureActionRoot;
2522
+ function removeAnswer(questionId) {
2523
+ formData.update(prev => {
2524
+ const next = { ...prev };
2525
+ delete next[questionId];
2526
+ return next;
2527
+ });
2528
+ }
2334
2529
  /**
2335
- * 非推奨
2530
+ * 回答済の回答内容を取得する
2336
2531
  *
2337
- * @deprecated 非推奨
2532
+ * @param questionId - 質問ID
2338
2533
  *
2339
- * @internal
2340
- */
2341
- function createApp(App, options = {
2342
- send: () => { },
2343
- publish: () => { },
2344
- props: {},
2345
- variables: {},
2346
- localVariablesQuery: undefined,
2347
- context: { api_key: '' },
2348
- }) {
2349
- let app = null;
2350
- const close = () => {
2351
- if (app) {
2352
- {
2353
- // @ts-ignore -- Svelte5 では $destroy は存在しない
2354
- app.$destroy();
2355
- }
2356
- app = null;
2357
- }
2358
- };
2359
- const appArgs = {
2360
- target: null,
2361
- props: {
2362
- send: options.send,
2363
- publish: options.publish,
2364
- close,
2365
- data: {
2366
- ...options.props,
2367
- ...options.variables,
2368
- },
2369
- },
2370
- };
2371
- const win = ensureActionRoot(isOnSite());
2372
- appArgs.target = win;
2373
- return {
2374
- close,
2375
- show: () => {
2376
- if (app) {
2377
- return;
2378
- }
2379
- options.send('message_open');
2380
- app = // @ts-ignore -- Svelte5 では `App` はクラスではない
2381
- new App(appArgs);
2382
- },
2383
- };
2534
+ * @returns 回答データ
2535
+ *
2536
+ * @public
2537
+ */
2538
+ function getAnsweredQuestion(questionId) {
2539
+ const formData$1 = get(formData);
2540
+ const valueState = formData$1[questionId];
2541
+ if (valueState) {
2542
+ return createAnswerValue(valueState.value);
2543
+ }
2384
2544
  }
2385
2545
  /**
2386
- * 非推奨
2546
+ * 回答済の回答IDのリストを取得
2387
2547
  *
2388
- * @deprecated 非推奨
2548
+ * @returns 回答済の質問の質問IDの配列
2389
2549
  *
2390
- * @internal
2550
+ * @public
2391
2551
  */
2392
- function createFog({ color = '#000', opacity = '50%', zIndex = 999, onclick, }) {
2393
- console.log('createFog');
2394
- const root = ensureModalRoot();
2395
- if (root.querySelector('.__krt-fog')) {
2396
- return { fog: null, close: () => { } };
2397
- }
2398
- const fog = document.createElement('div');
2399
- fog.className = '__krt-fog';
2400
- Object.assign(fog.style, {
2401
- position: 'fixed',
2402
- left: 0,
2403
- top: 0,
2404
- width: '100%',
2405
- height: '100%',
2406
- 'z-index': zIndex,
2407
- 'background-color': color,
2408
- opacity,
2409
- });
2410
- const close = () => {
2411
- onclick();
2412
- fog.remove();
2413
- };
2414
- fog.onclick = close;
2415
- root.appendChild(fog);
2416
- return { fog, close };
2552
+ function getAnsweredQuestionIds() {
2553
+ const formData$1 = get(formData);
2554
+ return Object.keys(formData$1);
2417
2555
  }
2418
-
2419
2556
  /**
2420
- * スクリプト接客が利用するコードの管理
2557
+ * `sendAnswers`のエイリアス
2558
+ *
2559
+ * @public
2421
2560
  */
2422
- /** @internal */
2423
- async function runScript$1(options = {
2424
- send: () => { },
2425
- publish: () => { },
2426
- props: {},
2427
- variables: {},
2428
- localVariablesQuery: undefined,
2429
- karteTemplate: {},
2430
- context: { api_key: '', collection_endpoint: undefined },
2431
- }) {
2432
- if (!options.onCreate)
2433
- return;
2434
- let data = getVariables();
2435
- initialize({ send: options.send, initialState: data.initial_state });
2436
- initActionTable(options.localVariablesQuery);
2437
- const { success } = await setupActionTable(options.localVariablesQuery, data, data.api_key, options.context.collection_endpoint);
2438
- if (!success)
2439
- return;
2440
- // Action Tableの取得結果を反映する
2441
- data = getVariables();
2442
- const actionProps = {
2443
- send: options.send,
2444
- publish: options.publish,
2445
- data,
2446
- };
2447
- options.send('script_fired');
2448
- // 旧Widget API IFの処理
2449
- const { onCreateHandlers } = getInternalHandlers();
2450
- if (onCreateHandlers) {
2451
- onCreateHandlers.forEach(h => {
2452
- h({ send: options.send, publish: options.publish, data });
2453
- console.debug(`${ACTION_HOOK_LABEL}: onCreate`);
2454
- });
2455
- }
2456
- options.onCreate(actionProps);
2457
- finalize();
2561
+ function sendAnswer() {
2562
+ return sendAnswers();
2458
2563
  }
2564
+ // NOTE: sendAnswers用
2565
+ let isSent = false;
2459
2566
  /**
2460
- * ES Modules に対応していない JavaScript をページに読み込む
2567
+ * 回答済の回答をまとめてイベントとして送信する
2461
2568
  *
2462
- * @param src - JavaScript ファイルのリンク URL
2569
+ * @returns イベント送信の成功/失敗
2463
2570
  *
2464
2571
  * @public
2465
2572
  */
2466
- async function loadGlobalScript(src) {
2467
- return new Promise((resolve, reject) => {
2468
- const script = document.createElement('script');
2469
- script.src = src;
2470
- document.body.appendChild(script);
2471
- script.addEventListener('load', () => resolve(script));
2472
- script.addEventListener('error', () => reject(script));
2473
- });
2573
+ function sendAnswers() {
2574
+ const { values, identifyValues } = submit();
2575
+ if (isSent)
2576
+ return false;
2577
+ if (Object.keys(values ?? {}).length === 0 && Object.keys(identifyValues ?? {}).length === 0) {
2578
+ return false;
2579
+ }
2580
+ send_event('_answer_question', values);
2581
+ if (Object.keys(identifyValues ?? {}).length > 0) {
2582
+ send_event('identify', identifyValues);
2583
+ }
2584
+ isSent = true;
2585
+ return true;
2474
2586
  }
2587
+
2475
2588
  /**
2476
- * グローバル CSS をページに適用する
2589
+ * エディタv1のWidget API 互換のインターフェース
2590
+ */
2591
+ const STORE_LS_KEY_PREFIX = 'krt___';
2592
+ const valCallbacks = {};
2593
+ const eventCallbacks = {};
2594
+ const memoryStore = {};
2595
+ setWidgetHandlers({
2596
+ onChangeState: [
2597
+ (_props, newState) => {
2598
+ setVal('state', newState);
2599
+ },
2600
+ ],
2601
+ onDestroy: [
2602
+ () => {
2603
+ Object.entries(eventCallbacks).map(([name, cbs]) => {
2604
+ cbs.forEach(cb => {
2605
+ window.removeEventListener(name, cb);
2606
+ });
2607
+ });
2608
+ },
2609
+ ],
2610
+ });
2611
+ /**
2612
+ * 変数を設定する
2477
2613
  *
2478
- * @param css - CSS
2614
+ * @param name - 変数名
2615
+ * @param value - 変数値
2479
2616
  *
2480
2617
  * @public
2481
2618
  */
2482
- async function applyGlobalCss(css) {
2483
- return new Promise((resolve, reject) => {
2484
- const action = document.querySelector(`.${KARTE_ACTION_ROOT}[data-${KARTE_ACTION_RID}='${actionId}']`);
2485
- if (!action) {
2486
- return;
2619
+ function setVal(name, value) {
2620
+ variables.update(current => {
2621
+ if (valCallbacks[name]) {
2622
+ valCallbacks[name].forEach(cb => {
2623
+ cb({ newVal: value, oldVal: current[name], key: name });
2624
+ });
2487
2625
  }
2488
- const style = document.createElement('style');
2489
- style.textContent = css;
2490
- action.appendChild(style);
2491
- style.addEventListener('load', () => resolve(style));
2492
- style.addEventListener('error', () => reject(style));
2626
+ current[name] = value;
2627
+ return current;
2493
2628
  });
2494
2629
  }
2495
2630
  /**
2496
- * style ファイルをページに読み込む
2631
+ * 変数を取得する
2497
2632
  *
2498
- * @param href - style ファイルのリンク URL
2633
+ * @param name - 変数名
2634
+ *
2635
+ * @returns 変数値
2499
2636
  *
2500
2637
  * @public
2501
2638
  */
2502
- async function loadGlobalStyle(href) {
2503
- return new Promise((resolve, reject) => {
2504
- const action = document.querySelector(`.${KARTE_ACTION_ROOT}[data-${KARTE_ACTION_RID}='${actionId}']`);
2505
- if (!action) {
2506
- return;
2507
- }
2508
- const link = document.createElement('link');
2509
- link.rel = 'stylesheet';
2510
- link.href = href;
2511
- link.type = 'text/css';
2512
- action.appendChild(link);
2513
- link.addEventListener('load', () => resolve(link));
2514
- link.addEventListener('error', () => reject(link));
2515
- });
2639
+ function getVal(name) {
2640
+ const cv = getVariables();
2641
+ return cv[name];
2516
2642
  }
2517
-
2518
2643
  /**
2519
- * Edgeが起動するアクションに関連するコードを管理する
2644
+ * 変数が変更されたときに実行されるコールバック関数を設定する
2520
2645
  *
2521
- * アクションのCreate, Destroyの状態はここで管理する。
2646
+ * @param name - 変数名
2647
+ * @param callback - コールバック関数
2648
+ *
2649
+ * @public
2522
2650
  */
2523
- const emptyOptions = {
2524
- send: () => { },
2525
- publish: () => { },
2526
- props: {},
2527
- variables: {},
2528
- localVariablesQuery: undefined,
2529
- karteTemplate: {},
2530
- context: { api_key: '', collection_endpoint: undefined },
2531
- };
2651
+ function onChangeVal(name, callback) {
2652
+ if (!valCallbacks[name]) {
2653
+ valCallbacks[name] = [];
2654
+ }
2655
+ valCallbacks[name].push(callback);
2656
+ }
2532
2657
  /**
2533
- * アクションを作成する
2534
- *
2535
- * @param App - Svelte コンポーネントのエントリポイント
2536
- * @param options - {@link ActionOptions | オプション}
2658
+ * WEBのイベントが発生したときに実行されるコールバック関数を設定する
2537
2659
  *
2538
- * @returns アクションを破棄する関数
2660
+ * @param name - WEBのイベント名
2661
+ * @param callback - コールバック関数
2539
2662
  *
2540
2663
  * @public
2541
2664
  */
2542
- function create(App, options) {
2543
- // TSの型検査が効かない場所やエラーを無視している箇所があるため、念の為
2544
- options = { ...emptyOptions, ...options };
2545
- setVariables({
2546
- ...options.props,
2547
- ...options.variables,
2548
- });
2549
- const data = getVariables();
2550
- const actionProps = {
2551
- send: options.send,
2552
- publish: options.publish,
2553
- data,
2554
- };
2555
- const handleDestroy = () => {
2556
- const { onDestroyHandlers } = getInternalHandlers();
2557
- onDestroyHandlers?.forEach(h => {
2558
- const actionHookLog = { name: 'onDestroy' };
2559
- console.info(`${ACTION_HOOK_LABEL}:${JSON.stringify(actionHookLog)}`);
2560
- h(actionProps);
2561
- });
2562
- // 旧Widget APIの内部で利用するため、実行ログは出力しない
2563
- const { onDestroyHandlers: onDestroyWidgetHandlers } = getWidgetHandlers();
2564
- if (onDestroyWidgetHandlers) {
2565
- onDestroyWidgetHandlers.forEach(h => h(actionProps));
2566
- }
2567
- };
2568
- // ここからメインの処理
2569
- setSystem({
2570
- // @ts-ignore
2571
- apiKey: data.api_key || null,
2572
- collection_endpoint: options.context.collection_endpoint,
2573
- shortenId: data.shorten_id || null,
2574
- campaignId: data.campaign_id || null,
2575
- });
2576
- setActionRunnerContext(options.context);
2577
- const loggerCleanup = listenConsoleLogger() ;
2578
- window.addEventListener(ACTION_DESTROY_EVENT, handleDestroy);
2579
- window.addEventListener('beforeunload', dispatchDestroyEvent, false);
2580
- let modalCleanup = NOOP;
2581
- if (options.karteTemplate?.template_type === 'script' ||
2582
- options.karteTemplate?.template_content_types?.includes('script')) {
2583
- runScript$1(options);
2665
+ function method(name, callback) {
2666
+ window.addEventListener(name, callback);
2667
+ if (!eventCallbacks[name]) {
2668
+ eventCallbacks[name] = [];
2669
+ }
2670
+ eventCallbacks[name].push(callback);
2671
+ }
2672
+ /**
2673
+ * Widgetのイベントが発生したときに実行されるコールバック関数を設定する
2674
+ *
2675
+ * @param name - Widgetのイベント名
2676
+ * @param callback - コールバック関数
2677
+ *
2678
+ * @public
2679
+ */
2680
+ function on(name, callback) {
2681
+ let onCallback;
2682
+ if (name === 'hide') {
2683
+ onCallback = (event) => {
2684
+ if (event.detail.trigger !== 'button')
2685
+ return;
2686
+ callback(event);
2687
+ eventCallbacks[name].push(callback);
2688
+ };
2689
+ window.addEventListener(ACTION_CLOSE_EVENT, onCallback);
2690
+ }
2691
+ else if (name === 'clickBackdrop') {
2692
+ onCallback = (event) => {
2693
+ if (event.detail.trigger !== 'overlay')
2694
+ return;
2695
+ callback(event);
2696
+ };
2697
+ window.addEventListener(ACTION_CLOSE_EVENT, onCallback);
2698
+ }
2699
+ else if (name === 'destroyed') {
2700
+ onCallback = callback;
2701
+ window.addEventListener(ACTION_DESTROY_EVENT, onCallback);
2584
2702
  }
2585
2703
  else {
2586
- modalCleanup = createModal(App, options);
2704
+ console.warn('warn: private event handler', name);
2587
2705
  }
2588
- return () => {
2589
- loggerCleanup();
2590
- modalCleanup();
2591
- window.removeEventListener(ACTION_DESTROY_EVENT, handleDestroy);
2592
- };
2706
+ if (!eventCallbacks[name]) {
2707
+ eventCallbacks[name] = [];
2708
+ }
2709
+ eventCallbacks[name].push(onCallback);
2593
2710
  }
2594
2711
  /**
2595
- * アクションの破棄する
2712
+ * 現在のステートを設定する
2713
+ *
2714
+ * @param stateId - ステートID
2596
2715
  *
2597
2716
  * @public
2598
2717
  */
2599
- function destroyAction() {
2600
- setDestroyed(true);
2601
- dispatchDestroyEvent();
2718
+ function setState(stateId) {
2719
+ const stateIds = getStates();
2720
+ if (stateIds.includes(stateId))
2721
+ return;
2722
+ setState$1(stateId);
2602
2723
  }
2603
2724
  /**
2604
- * アクションが作成 (create) される前にフックする関数
2725
+ * 現在のステートを取得する
2605
2726
  *
2606
- * @param fn - 呼び出されるフック関数
2727
+ * @returns ステートID
2607
2728
  *
2608
2729
  * @public
2609
2730
  */
2610
- function onCreate(fn) {
2611
- let { onCreateHandlers } = getInternalHandlers();
2612
- if (!onCreateHandlers) {
2613
- onCreateHandlers = [];
2614
- }
2615
- onCreateHandlers.push(fn);
2616
- setInternalHandlers({ onCreateHandlers });
2731
+ function getState() {
2732
+ return getState$1();
2617
2733
  }
2618
2734
  /**
2619
- * アクションが破棄 (destroy) される前にフックする関数
2735
+ * ページ内の変数を設定する
2620
2736
  *
2621
- * @param fn - 呼び出されるフック関数
2737
+ * @param key - 変数のキー
2738
+ * @param value - 変数値
2622
2739
  *
2623
2740
  * @public
2624
2741
  */
2625
- function onDestroy(fn) {
2626
- let { onDestroyHandlers } = getInternalHandlers();
2627
- if (!onDestroyHandlers) {
2628
- onDestroyHandlers = [];
2629
- }
2630
- onDestroyHandlers.push(fn);
2631
- setInternalHandlers({ onDestroyHandlers });
2742
+ function setMemoryStore(key, value) {
2743
+ memoryStore[key] = value;
2632
2744
  }
2633
- // -------- The following codes are deprecated --------
2634
2745
  /**
2635
- * 非推奨
2746
+ * ページ内の変数を取定する
2636
2747
  *
2637
- * @deprecated 非推奨
2748
+ * @param key - 変数のキー
2638
2749
  *
2639
- * @internal
2750
+ * @returns 変数
2751
+ *
2752
+ * @public
2640
2753
  */
2641
- const showModal = create;
2754
+ function getMemoryStore(key) {
2755
+ return memoryStore[key];
2756
+ }
2642
2757
  /**
2643
- * 非推奨
2758
+ * ページをまたぐ変数を設定する
2644
2759
  *
2645
- * @deprecated 非推奨
2760
+ * @param key - 変数のキー
2761
+ * @param value - 変数値
2646
2762
  *
2647
- * @internal
2763
+ * @public
2648
2764
  */
2649
- function destroy() {
2650
- setDestroyed(true);
2651
- dispatchDestroyEvent();
2765
+ function setLocalStore(key, value, options = { expire: false }) {
2766
+ const item = {
2767
+ val: value,
2768
+ last: new Date().getTime(),
2769
+ };
2770
+ if (options.expire) {
2771
+ item.expire = options.expire;
2772
+ }
2773
+ localStorage.setItem(STORE_LS_KEY_PREFIX + key, JSON.stringify(item));
2652
2774
  }
2653
-
2654
- const USER_ID_VARIABLE_NAME = '__karte_form_identify_user_id';
2655
- const MAX_LENGTH_FREE_ANSWER = 2000;
2656
- function isEmpty(value) {
2657
- if (Array.isArray(value)) {
2658
- return value.length === 0;
2775
+ /**
2776
+ * ページをまたぐ変数を取得設定する
2777
+ *
2778
+ * @param key - 変数のキー
2779
+ *
2780
+ * @returns 変数
2781
+ *
2782
+ * @public
2783
+ */
2784
+ function getLocalStore(key) {
2785
+ const lsKey = STORE_LS_KEY_PREFIX + key;
2786
+ const itemJson = localStorage.getItem(lsKey);
2787
+ if (!itemJson) {
2788
+ return;
2659
2789
  }
2660
- else {
2661
- return !value;
2790
+ let item;
2791
+ try {
2792
+ item = JSON.parse(itemJson);
2662
2793
  }
2794
+ catch (_) {
2795
+ return;
2796
+ }
2797
+ if (item.val === undefined) {
2798
+ return;
2799
+ }
2800
+ const now = new Date().getTime();
2801
+ if (now - item.last > item.expire) {
2802
+ localStorage.removeItem(lsKey);
2803
+ return;
2804
+ }
2805
+ return item.val;
2663
2806
  }
2664
- /** @internal */
2665
- function createInputRegisterer(formData) {
2666
- const registerInput = ({ name, statePath, validator = () => true, initialValue, }) => {
2667
- const writableValue = {
2668
- subscribe(run) {
2669
- return formData.subscribe(formData => {
2670
- run(formData[name]?.value);
2671
- });
2672
- },
2673
- set(value) {
2674
- formData.update(prev => ({
2675
- ...prev,
2676
- [name]: {
2677
- statePath,
2678
- value,
2679
- isValid: validator(value),
2680
- },
2681
- }));
2682
- },
2683
- update(updater) {
2684
- formData.update(prev => {
2685
- const prevValue = prev[name]?.value;
2686
- if (prevValue === undefined)
2687
- return prev;
2688
- const value = updater(prevValue);
2689
- return {
2690
- ...prev,
2691
- [name]: {
2692
- statePath,
2693
- value,
2694
- isValid: validator(value),
2695
- },
2696
- };
2697
- });
2698
- },
2699
- };
2700
- const readableIsValid = {
2701
- subscribe(run) {
2702
- return formData.subscribe(formData => {
2703
- run(formData[name]?.isValid);
2704
- });
2705
- },
2706
- };
2707
- if (isEmpty(get(writableValue))) {
2708
- writableValue.set(initialValue);
2709
- }
2710
- return {
2711
- value: writableValue,
2712
- isValid: readableIsValid,
2713
- };
2714
- };
2715
- return registerInput;
2716
- }
2717
- /** @internal */
2718
- const registerInput = createInputRegisterer(formData);
2719
- /** @internal */
2720
- const registerIdentifyInput = createInputRegisterer(identifyFormData);
2721
- function validateFormData(formData, statePath) {
2722
- return Object.entries(formData)
2723
- .filter(([_, { statePath: s }]) => s === statePath) // eslint-disable-line @typescript-eslint/no-unused-vars
2724
- .every(([_, { isValid }]) => isValid); // eslint-disable-line @typescript-eslint/no-unused-vars
2725
- }
2726
- /** @internal */
2727
- const getValuesAreValidReadable = statePath => ({
2728
- subscribe(callback) {
2729
- return formData.subscribe(formData => identifyFormData.subscribe(identifyFormData => {
2730
- const valuesAreValid = validateFormData(formData, statePath) && validateFormData(identifyFormData, statePath);
2731
- callback(valuesAreValid);
2732
- }));
2733
- },
2734
- });
2735
- function createAnswerValue(value) {
2736
- if (Array.isArray(value)) {
2737
- return {
2738
- choices: value,
2739
- };
2740
- }
2741
- else if (typeof value === 'string') {
2742
- return {
2743
- free_answer: value,
2744
- };
2745
- }
2746
- }
2747
- function formDataToEventValues(campaignId, formData) {
2748
- const questions = [];
2749
- const answersMap = {};
2750
- Object.entries(formData).forEach(([name, dataItem]) => {
2751
- questions.push(name);
2752
- const value = dataItem.value;
2753
- const answerKey = `question_${name}`;
2754
- const answerValue = createAnswerValue(value);
2755
- answersMap[answerKey] = answerValue;
2756
- });
2757
- return {
2758
- [campaignId]: {
2759
- questions,
2760
- ...answersMap,
2761
- },
2762
- };
2763
- }
2764
- function formDataToIdentifyEventValues(formData) {
2765
- return Object.fromEntries(Object.entries(formData).map(([name, dataItem]) => {
2766
- const value = dataItem.value;
2767
- return [name, value];
2768
- }));
2769
- }
2770
- /** @internal */
2771
- function submit() {
2772
- const systemConfig = getSystem();
2773
- const campaignId = systemConfig.campaignId;
2774
- if (campaignId) {
2775
- const formData$1 = get(formData);
2776
- const identifyFormData$1 = get(identifyFormData);
2777
- const values = formDataToEventValues(campaignId, formData$1);
2778
- const identifyValues = formDataToIdentifyEventValues(identifyFormData$1);
2779
- if (Object.keys(identifyValues).length > 0) {
2780
- identifyValues['user_id'] = getVariables()?.[USER_ID_VARIABLE_NAME];
2781
- }
2782
- return { values, identifyValues };
2783
- }
2784
- return {};
2785
- }
2786
- /**
2787
- * 選択式のアンケート回答を追加する
2788
- *
2789
- * @param questionId - 質問ID
2790
- * @param choices - 回答内容
2791
- *
2792
- * @public
2793
- */
2794
- function addChoiceAnswer(questionId, choices, validation) {
2795
- formData.update(prev => ({
2796
- ...prev,
2797
- [questionId]: {
2798
- value: choices,
2799
- statePath: validation?.statePath ?? '',
2800
- isValid: validation?.isValid ?? true,
2801
- },
2802
- }));
2803
- }
2807
+ const storage = {
2808
+ memory: { store: setMemoryStore, restore: getMemoryStore },
2809
+ local: { store: setLocalStore, restore: getLocalStore },
2810
+ };
2804
2811
  /**
2805
- * 自由記述式のアンケート回答を追加する
2812
+ * アクションテーブルを操作するオブジェクト
2806
2813
  *
2807
- * @param questionId - 質問ID
2808
- * @param freeAnswer - 回答内容
2814
+ * @param table - アクションテーブル名
2809
2815
  *
2810
2816
  * @public
2811
2817
  */
2812
- function addFreeAnswer(questionId, freeAnswer, validation) {
2813
- formData.update(prev => ({
2814
- ...prev,
2815
- [questionId]: {
2816
- value: freeAnswer.slice(0, MAX_LENGTH_FREE_ANSWER),
2817
- statePath: validation?.statePath ?? '',
2818
- isValid: validation?.isValid ?? true,
2819
- },
2820
- }));
2818
+ function collection(table) {
2819
+ const systemConfig = getSystem();
2820
+ const collectionName = table.replace(/^v2\//, '');
2821
+ return collection$1({
2822
+ api_key: systemConfig.apiKey || 'mock',
2823
+ collection_endpoint: systemConfig.collection_endpoint,
2824
+ table: collectionName,
2825
+ });
2821
2826
  }
2827
+
2828
+ var widget = /*#__PURE__*/Object.freeze({
2829
+ __proto__: null,
2830
+ collection: collection,
2831
+ getState: getState,
2832
+ getVal: getVal,
2833
+ hide: closeAction$1,
2834
+ method: method,
2835
+ on: on,
2836
+ onChangeVal: onChangeVal,
2837
+ setState: setState,
2838
+ setVal: setVal,
2839
+ show: showAction$1,
2840
+ storage: storage
2841
+ });
2842
+
2822
2843
  /**
2823
- * 回答済の回答を削除
2824
- *
2825
- * @param questionId - 質問ID
2844
+ * エレメントをマウントしたときに実行される関数の登録
2826
2845
  *
2827
- * @public
2846
+ * @param fn - マウントしたときに実行される関数
2828
2847
  */
2829
- function removeAnswer(questionId) {
2830
- formData.update(prev => {
2831
- const next = { ...prev };
2832
- delete next[questionId];
2833
- return next;
2834
- });
2835
- }
2848
+ const onMount = onMount$1;
2836
2849
  /**
2837
- * 回答済の回答内容を取得する
2838
- *
2839
- * @param questionId - 質問ID
2840
- *
2841
- * @returns 回答データ
2850
+ * エレメントを破棄したときに実行される関数の登録
2842
2851
  *
2843
- * @public
2852
+ * @param fn - マウントしたときに実行される関数
2844
2853
  */
2845
- function getAnsweredQuestion(questionId) {
2846
- const formData$1 = get(formData);
2847
- const valueState = formData$1[questionId];
2848
- if (valueState) {
2849
- return createAnswerValue(valueState.value);
2850
- }
2851
- }
2854
+ const onDestory = onDestroy$1;
2852
2855
  /**
2853
- * 回答済の回答IDのリストを取得
2854
- *
2855
- * @returns 回答済の質問の質問IDの配列
2856
+ * エレメントを更新する前に実行される関数の登録
2856
2857
  *
2857
- * @public
2858
+ * @param fn - マウントしたときに実行される関数
2858
2859
  */
2859
- function getAnsweredQuestionIds() {
2860
- const formData$1 = get(formData);
2861
- return Object.keys(formData$1);
2862
- }
2860
+ const beforeUpdate = beforeUpdate$1;
2863
2861
  /**
2864
- * `sendAnswers`のエイリアス
2862
+ * エレメントを更新した後に実行される関数の登録
2865
2863
  *
2866
- * @public
2864
+ * @param fn - マウントしたときに実行される関数
2867
2865
  */
2868
- function sendAnswer() {
2869
- return sendAnswers();
2870
- }
2871
- // NOTE: sendAnswers用
2872
- let isSent = false;
2866
+ const afterUpdate = afterUpdate$1;
2873
2867
  /**
2874
- * 回答済の回答をまとめてイベントとして送信する
2875
- *
2876
- * @returns イベント送信の成功/失敗
2868
+ * エレメントのライフサイクルを進める
2877
2869
  *
2878
- * @public
2870
+ * @returns Promise<void>
2879
2871
  */
2880
- function sendAnswers() {
2881
- const { values, identifyValues } = submit();
2882
- if (isSent)
2883
- return false;
2884
- if (Object.keys(values ?? {}).length === 0 && Object.keys(identifyValues ?? {}).length === 0) {
2885
- return false;
2886
- }
2887
- send_event('_answer_question', values);
2888
- if (Object.keys(identifyValues ?? {}).length > 0) {
2889
- send_event('identify', identifyValues);
2890
- }
2891
- isSent = true;
2892
- return true;
2872
+ const tick = tick$1;
2873
+ // @internal
2874
+ const LAYOUT_COMPONENT_NAMES = [
2875
+ 'BreakPoint',
2876
+ 'BreakPointItem',
2877
+ 'Grid',
2878
+ 'GridItem',
2879
+ 'Modal',
2880
+ 'State',
2881
+ 'StateItem',
2882
+ ];
2883
+
2884
+ /* src/components/Header.svelte generated by Svelte v3.53.1 */
2885
+
2886
+ function create_if_block$j(ctx) {
2887
+ let link;
2888
+
2889
+ return {
2890
+ c() {
2891
+ link = element("link");
2892
+ this.h();
2893
+ },
2894
+ l(nodes) {
2895
+ link = claim_element(nodes, "LINK", { href: true, type: true, rel: true });
2896
+ this.h();
2897
+ },
2898
+ h() {
2899
+ attr(link, "href", /*googleFontUrl*/ ctx[0]);
2900
+ attr(link, "type", "text/css");
2901
+ attr(link, "rel", "stylesheet");
2902
+ },
2903
+ m(target, anchor) {
2904
+ insert_hydration(target, link, anchor);
2905
+ },
2906
+ p(ctx, dirty) {
2907
+ if (dirty & /*googleFontUrl*/ 1) {
2908
+ attr(link, "href", /*googleFontUrl*/ ctx[0]);
2909
+ }
2910
+ },
2911
+ d(detaching) {
2912
+ if (detaching) detach(link);
2913
+ }
2914
+ };
2893
2915
  }
2894
2916
 
2895
- /**
2896
- * エディタv1のWidget API 互換のインターフェース
2897
- */
2898
- const STORE_LS_KEY_PREFIX = 'krt___';
2899
- const valCallbacks = {};
2900
- const eventCallbacks = {};
2901
- const memoryStore = {};
2902
- setWidgetHandlers({
2903
- onChangeState: [
2904
- (_props, newState) => {
2905
- setVal('state', newState);
2906
- },
2907
- ],
2908
- onDestroy: [
2909
- () => {
2910
- Object.entries(eventCallbacks).map(([name, cbs]) => {
2911
- cbs.forEach(cb => {
2912
- window.removeEventListener(name, cb);
2913
- });
2914
- });
2915
- },
2916
- ],
2917
- });
2918
- /**
2919
- * 変数を設定する
2920
- *
2921
- * @param name - 変数名
2922
- * @param value - 変数値
2923
- *
2924
- * @public
2925
- */
2926
- function setVal(name, value) {
2927
- variables.update(current => {
2928
- if (valCallbacks[name]) {
2929
- valCallbacks[name].forEach(cb => {
2930
- cb({ newVal: value, oldVal: current[name], key: name });
2931
- });
2932
- }
2933
- current[name] = value;
2934
- return current;
2935
- });
2917
+ function create_fragment$1v(ctx) {
2918
+ let if_block_anchor;
2919
+ let if_block = /*googleFontUrl*/ ctx[0] && create_if_block$j(ctx);
2920
+
2921
+ return {
2922
+ c() {
2923
+ if (if_block) if_block.c();
2924
+ if_block_anchor = empty();
2925
+ },
2926
+ l(nodes) {
2927
+ const head_nodes = head_selector('svelte-16cot5i', document.head);
2928
+ if (if_block) if_block.l(head_nodes);
2929
+ if_block_anchor = empty();
2930
+ head_nodes.forEach(detach);
2931
+ },
2932
+ m(target, anchor) {
2933
+ if (if_block) if_block.m(document.head, null);
2934
+ append_hydration(document.head, if_block_anchor);
2935
+ },
2936
+ p(ctx, [dirty]) {
2937
+ if (/*googleFontUrl*/ ctx[0]) {
2938
+ if (if_block) {
2939
+ if_block.p(ctx, dirty);
2940
+ } else {
2941
+ if_block = create_if_block$j(ctx);
2942
+ if_block.c();
2943
+ if_block.m(if_block_anchor.parentNode, if_block_anchor);
2944
+ }
2945
+ } else if (if_block) {
2946
+ if_block.d(1);
2947
+ if_block = null;
2948
+ }
2949
+ },
2950
+ i: noop,
2951
+ o: noop,
2952
+ d(detaching) {
2953
+ if (if_block) if_block.d(detaching);
2954
+ detach(if_block_anchor);
2955
+ }
2956
+ };
2936
2957
  }
2937
- /**
2938
- * 変数を取得する
2939
- *
2940
- * @param name - 変数名
2941
- *
2942
- * @returns 変数値
2943
- *
2944
- * @public
2945
- */
2946
- function getVal(name) {
2947
- const cv = getVariables();
2948
- return cv[name];
2958
+
2959
+ function instance$1v($$self, $$props, $$invalidate) {
2960
+ let $fonts;
2961
+ component_subscribe($$self, fonts, $$value => $$invalidate(1, $fonts = $$value));
2962
+ let googleFontUrl = '';
2963
+
2964
+ $$self.$$.update = () => {
2965
+ if ($$self.$$.dirty & /*$fonts*/ 2) {
2966
+ {
2967
+ {
2968
+ // フォントのロードが遅れてエディタのプレビューがガタつく対策
2969
+ $$invalidate(0, googleFontUrl = makeGoogleFontUrl(Fonts.filter(font => font !== SYSTEM_FONT)));
2970
+ }
2971
+ }
2972
+ }
2973
+
2974
+ if ($$self.$$.dirty & /*googleFontUrl*/ 1) {
2975
+ {
2976
+ if (googleFontUrl) {
2977
+ loadGlobalStyle(googleFontUrl);
2978
+ }
2979
+ }
2980
+ }
2981
+ };
2982
+
2983
+ return [googleFontUrl, $fonts];
2949
2984
  }
2950
- /**
2951
- * 変数が変更されたときに実行されるコールバック関数を設定する
2952
- *
2953
- * @param name - 変数名
2954
- * @param callback - コールバック関数
2955
- *
2956
- * @public
2957
- */
2958
- function onChangeVal(name, callback) {
2959
- if (!valCallbacks[name]) {
2960
- valCallbacks[name] = [];
2961
- }
2962
- valCallbacks[name].push(callback);
2985
+
2986
+ let Header$1 = class Header extends SvelteComponent {
2987
+ constructor(options) {
2988
+ super();
2989
+ init(this, options, instance$1v, create_fragment$1v, safe_not_equal, {});
2990
+ }
2991
+ };
2992
+
2993
+ const BRAND_KIT_DEFAULT = {
2994
+ font_family: 'sans-serif, serif, monospace, system-ui',
2995
+ color_text_primary: '#222222',
2996
+ color_text_secondary: '#555555',
2997
+ color_brand: '#33403e',
2998
+ color_link: '#1558d6',
2999
+ color_danger: '#f44336',
3000
+ color_warning: '#ffa726',
3001
+ color_success: '#10b981',
3002
+ color_info: '#29b6f6',
3003
+ color_white: '#FFFFFF',
3004
+ };
3005
+ const getBrandKit = (customBrandKit) => {
3006
+ return {
3007
+ font_family: customBrandKit?.font_family ?? BRAND_KIT_DEFAULT.font_family,
3008
+ color_text_primary: customBrandKit?.color_text_primary ?? BRAND_KIT_DEFAULT.color_text_primary,
3009
+ color_text_secondary: customBrandKit?.color_text_secondary ?? BRAND_KIT_DEFAULT.color_text_secondary,
3010
+ color_brand: customBrandKit?.color_brand ?? BRAND_KIT_DEFAULT.color_brand,
3011
+ color_link: customBrandKit?.color_link ?? BRAND_KIT_DEFAULT.color_link,
3012
+ color_danger: customBrandKit?.color_danger ?? BRAND_KIT_DEFAULT.color_danger,
3013
+ color_warning: customBrandKit?.color_warning ?? BRAND_KIT_DEFAULT.color_warning,
3014
+ color_success: customBrandKit?.color_success ?? BRAND_KIT_DEFAULT.color_success,
3015
+ color_info: customBrandKit?.color_info ?? BRAND_KIT_DEFAULT.color_info,
3016
+ color_white: customBrandKit?.color_white ?? BRAND_KIT_DEFAULT.color_white,
3017
+ };
3018
+ };
3019
+ const useBrandKit = () => {
3020
+ return {
3021
+ brandKit: (getContext('brandKit') || getBrandKit()),
3022
+ };
3023
+ };
3024
+
3025
+ /* src/components/State.svelte generated by Svelte v3.53.1 */
3026
+
3027
+ function create_fragment$1u(ctx) {
3028
+ let header;
3029
+ let t;
3030
+ let current;
3031
+ header = new Header$1({});
3032
+ const default_slot_template = /*#slots*/ ctx[2].default;
3033
+ const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[1], null);
3034
+
3035
+ return {
3036
+ c() {
3037
+ create_component(header.$$.fragment);
3038
+ t = space();
3039
+ if (default_slot) default_slot.c();
3040
+ },
3041
+ l(nodes) {
3042
+ claim_component(header.$$.fragment, nodes);
3043
+ t = claim_space(nodes);
3044
+ if (default_slot) default_slot.l(nodes);
3045
+ },
3046
+ m(target, anchor) {
3047
+ mount_component(header, target, anchor);
3048
+ insert_hydration(target, t, anchor);
3049
+
3050
+ if (default_slot) {
3051
+ default_slot.m(target, anchor);
3052
+ }
3053
+
3054
+ current = true;
3055
+ },
3056
+ p(ctx, [dirty]) {
3057
+ if (default_slot) {
3058
+ if (default_slot.p && (!current || dirty & /*$$scope*/ 2)) {
3059
+ update_slot_base(
3060
+ default_slot,
3061
+ default_slot_template,
3062
+ ctx,
3063
+ /*$$scope*/ ctx[1],
3064
+ !current
3065
+ ? get_all_dirty_from_scope(/*$$scope*/ ctx[1])
3066
+ : get_slot_changes(default_slot_template, /*$$scope*/ ctx[1], dirty, null),
3067
+ null
3068
+ );
3069
+ }
3070
+ }
3071
+ },
3072
+ i(local) {
3073
+ if (current) return;
3074
+ transition_in(header.$$.fragment, local);
3075
+ transition_in(default_slot, local);
3076
+ current = true;
3077
+ },
3078
+ o(local) {
3079
+ transition_out(header.$$.fragment, local);
3080
+ transition_out(default_slot, local);
3081
+ current = false;
3082
+ },
3083
+ d(detaching) {
3084
+ destroy_component(header, detaching);
3085
+ if (detaching) detach(t);
3086
+ if (default_slot) default_slot.d(detaching);
3087
+ }
3088
+ };
2963
3089
  }
2964
- /**
2965
- * WEBのイベントが発生したときに実行されるコールバック関数を設定する
2966
- *
2967
- * @param name - WEBのイベント名
2968
- * @param callback - コールバック関数
2969
- *
2970
- * @public
2971
- */
2972
- function method(name, callback) {
2973
- window.addEventListener(name, callback);
2974
- if (!eventCallbacks[name]) {
2975
- eventCallbacks[name] = [];
2976
- }
2977
- eventCallbacks[name].push(callback);
2978
- }
2979
- /**
2980
- * Widgetのイベントが発生したときに実行されるコールバック関数を設定する
2981
- *
2982
- * @param name - Widgetのイベント名
2983
- * @param callback - コールバック関数
2984
- *
2985
- * @public
2986
- */
2987
- function on(name, callback) {
2988
- let onCallback;
2989
- if (name === 'hide') {
2990
- onCallback = (event) => {
2991
- if (event.detail.trigger !== 'button')
2992
- return;
2993
- callback(event);
2994
- eventCallbacks[name].push(callback);
2995
- };
2996
- window.addEventListener(ACTION_CLOSE_EVENT, onCallback);
2997
- }
2998
- else if (name === 'clickBackdrop') {
2999
- onCallback = (event) => {
3000
- if (event.detail.trigger !== 'overlay')
3001
- return;
3002
- callback(event);
3003
- };
3004
- window.addEventListener(ACTION_CLOSE_EVENT, onCallback);
3005
- }
3006
- else if (name === 'destroyed') {
3007
- onCallback = callback;
3008
- window.addEventListener(ACTION_DESTROY_EVENT, onCallback);
3009
- }
3010
- else {
3011
- console.warn('warn: private event handler', name);
3012
- }
3013
- if (!eventCallbacks[name]) {
3014
- eventCallbacks[name] = [];
3015
- }
3016
- eventCallbacks[name].push(onCallback);
3017
- }
3018
- /**
3019
- * 現在のステートを設定する
3020
- *
3021
- * @param stateId - ステートID
3022
- *
3023
- * @public
3024
- */
3025
- function setState(stateId) {
3026
- const stateIds = getStates();
3027
- if (stateIds.includes(stateId))
3028
- return;
3029
- setState$1(stateId);
3030
- }
3031
- /**
3032
- * 現在のステートを取得する
3033
- *
3034
- * @returns ステートID
3035
- *
3036
- * @public
3037
- */
3038
- function getState() {
3039
- return getState$1();
3040
- }
3041
- /**
3042
- * ページ内の変数を設定する
3043
- *
3044
- * @param key - 変数のキー
3045
- * @param value - 変数値
3046
- *
3047
- * @public
3048
- */
3049
- function setMemoryStore(key, value) {
3050
- memoryStore[key] = value;
3051
- }
3052
- /**
3053
- * ページ内の変数を取定する
3054
- *
3055
- * @param key - 変数のキー
3056
- *
3057
- * @returns 変数
3058
- *
3059
- * @public
3060
- */
3061
- function getMemoryStore(key) {
3062
- return memoryStore[key];
3063
- }
3064
- /**
3065
- * ページをまたぐ変数を設定する
3066
- *
3067
- * @param key - 変数のキー
3068
- * @param value - 変数値
3069
- *
3070
- * @public
3071
- */
3072
- function setLocalStore(key, value, options = { expire: false }) {
3073
- const item = {
3074
- val: value,
3075
- last: new Date().getTime(),
3076
- };
3077
- if (options.expire) {
3078
- item.expire = options.expire;
3079
- }
3080
- localStorage.setItem(STORE_LS_KEY_PREFIX + key, JSON.stringify(item));
3081
- }
3082
- /**
3083
- * ページをまたぐ変数を取得設定する
3084
- *
3085
- * @param key - 変数のキー
3086
- *
3087
- * @returns 変数
3088
- *
3089
- * @public
3090
- */
3091
- function getLocalStore(key) {
3092
- const lsKey = STORE_LS_KEY_PREFIX + key;
3093
- const itemJson = localStorage.getItem(lsKey);
3094
- if (!itemJson) {
3095
- return;
3096
- }
3097
- let item;
3098
- try {
3099
- item = JSON.parse(itemJson);
3100
- }
3101
- catch (_) {
3102
- return;
3103
- }
3104
- if (item.val === undefined) {
3105
- return;
3106
- }
3107
- const now = new Date().getTime();
3108
- if (now - item.last > item.expire) {
3109
- localStorage.removeItem(lsKey);
3110
- return;
3111
- }
3112
- return item.val;
3113
- }
3114
- const storage = {
3115
- memory: { store: setMemoryStore, restore: getMemoryStore },
3116
- local: { store: setLocalStore, restore: getLocalStore },
3117
- };
3118
- /**
3119
- * アクションテーブルを操作するオブジェクト
3120
- *
3121
- * @param table - アクションテーブル名
3122
- *
3123
- * @public
3124
- */
3125
- function collection(table) {
3126
- const systemConfig = getSystem();
3127
- const collectionName = table.replace(/^v2\//, '');
3128
- return collection$1({
3129
- api_key: systemConfig.apiKey || 'mock',
3130
- collection_endpoint: systemConfig.collection_endpoint,
3131
- table: collectionName,
3132
- });
3090
+
3091
+ function instance$1u($$self, $$props, $$invalidate) {
3092
+ let { $$slots: slots = {}, $$scope } = $$props;
3093
+ let { customBrandKit = undefined } = $$props;
3094
+ setContext('brandKit', getBrandKit(customBrandKit));
3095
+
3096
+ $$self.$$set = $$props => {
3097
+ if ('customBrandKit' in $$props) $$invalidate(0, customBrandKit = $$props.customBrandKit);
3098
+ if ('$$scope' in $$props) $$invalidate(1, $$scope = $$props.$$scope);
3099
+ };
3100
+
3101
+ return [customBrandKit, $$scope, slots];
3133
3102
  }
3134
3103
 
3135
- var widget = /*#__PURE__*/Object.freeze({
3136
- __proto__: null,
3137
- collection: collection,
3138
- getState: getState,
3139
- getVal: getVal,
3140
- hide: closeAction$1,
3141
- method: method,
3142
- on: on,
3143
- onChangeVal: onChangeVal,
3144
- setState: setState,
3145
- setVal: setVal,
3146
- show: showAction$1,
3147
- storage: storage
3148
- });
3104
+ let State$1 = class State extends SvelteComponent {
3105
+ constructor(options) {
3106
+ super();
3107
+ init(this, options, instance$1u, create_fragment$1u, safe_not_equal, { customBrandKit: 0 });
3108
+ }
3109
+ };
3149
3110
 
3150
- /**
3151
- * エレメントをマウントしたときに実行される関数の登録
3152
- *
3153
- * @param fn - マウントしたときに実行される関数
3154
- */
3155
- const onMount = onMount$1;
3156
- /**
3157
- * エレメントを破棄したときに実行される関数の登録
3158
- *
3159
- * @param fn - マウントしたときに実行される関数
3160
- */
3161
- const onDestory = onDestroy$1;
3162
- /**
3163
- * エレメントを更新する前に実行される関数の登録
3164
- *
3165
- * @param fn - マウントしたときに実行される関数
3166
- */
3167
- const beforeUpdate = beforeUpdate$1;
3168
- /**
3169
- * エレメントを更新した後に実行される関数の登録
3170
- *
3171
- * @param fn - マウントしたときに実行される関数
3172
- */
3173
- const afterUpdate = afterUpdate$1;
3174
- /**
3175
- * エレメントのライフサイクルを進める
3176
- *
3177
- * @returns Promise<void>
3178
- */
3179
- const tick = tick$1;
3180
- // @internal
3181
- const LAYOUT_COMPONENT_NAMES = [
3182
- 'BreakPoint',
3183
- 'BreakPointItem',
3184
- 'Grid',
3185
- 'GridItem',
3186
- 'Modal',
3187
- 'State',
3188
- 'StateItem',
3189
- ];
3111
+ /* src/components/StateItem.svelte generated by Svelte v3.53.1 */
3190
3112
 
3191
- /* src/components/Header.svelte generated by Svelte v3.53.1 */
3113
+ function add_css$T(target) {
3114
+ append_styles(target, "svelte-1amihue", ".state-item.svelte-1amihue{position:absolute;display:none}");
3115
+ }
3192
3116
 
3193
- function create_if_block$j(ctx) {
3194
- let link;
3117
+ // (22:0) {#if $state === path}
3118
+ function create_if_block$i(ctx) {
3119
+ let div;
3120
+ let t;
3121
+ let current;
3122
+ const default_slot_template = /*#slots*/ ctx[3].default;
3123
+ const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[2], null);
3195
3124
 
3196
3125
  return {
3197
3126
  c() {
3198
- link = element("link");
3127
+ div = element("div");
3128
+ t = space();
3129
+ if (default_slot) default_slot.c();
3199
3130
  this.h();
3200
3131
  },
3201
3132
  l(nodes) {
3202
- link = claim_element(nodes, "LINK", { href: true, type: true, rel: true });
3133
+ div = claim_element(nodes, "DIV", { "data-state-path": true, class: true });
3134
+ children(div).forEach(detach);
3135
+ t = claim_space(nodes);
3136
+ if (default_slot) default_slot.l(nodes);
3203
3137
  this.h();
3204
3138
  },
3205
3139
  h() {
3206
- attr(link, "href", /*googleFontUrl*/ ctx[0]);
3207
- attr(link, "type", "text/css");
3208
- attr(link, "rel", "stylesheet");
3140
+ attr(div, "data-state-path", /*path*/ ctx[0]);
3141
+ attr(div, "class", "state-item svelte-1amihue");
3209
3142
  },
3210
3143
  m(target, anchor) {
3211
- insert_hydration(target, link, anchor);
3144
+ insert_hydration(target, div, anchor);
3145
+ insert_hydration(target, t, anchor);
3146
+
3147
+ if (default_slot) {
3148
+ default_slot.m(target, anchor);
3149
+ }
3150
+
3151
+ current = true;
3212
3152
  },
3213
3153
  p(ctx, dirty) {
3214
- if (dirty & /*googleFontUrl*/ 1) {
3215
- attr(link, "href", /*googleFontUrl*/ ctx[0]);
3216
- }
3217
- },
3218
- d(detaching) {
3219
- if (detaching) detach(link);
3220
- }
3221
- };
3222
- }
3223
-
3224
- function create_fragment$1v(ctx) {
3225
- let if_block_anchor;
3226
- let if_block = /*googleFontUrl*/ ctx[0] && create_if_block$j(ctx);
3227
-
3228
- return {
3229
- c() {
3230
- if (if_block) if_block.c();
3231
- if_block_anchor = empty();
3232
- },
3233
- l(nodes) {
3234
- const head_nodes = head_selector('svelte-16cot5i', document.head);
3235
- if (if_block) if_block.l(head_nodes);
3236
- if_block_anchor = empty();
3237
- head_nodes.forEach(detach);
3238
- },
3239
- m(target, anchor) {
3240
- if (if_block) if_block.m(document.head, null);
3241
- append_hydration(document.head, if_block_anchor);
3242
- },
3243
- p(ctx, [dirty]) {
3244
- if (/*googleFontUrl*/ ctx[0]) {
3245
- if (if_block) {
3246
- if_block.p(ctx, dirty);
3247
- } else {
3248
- if_block = create_if_block$j(ctx);
3249
- if_block.c();
3250
- if_block.m(if_block_anchor.parentNode, if_block_anchor);
3251
- }
3252
- } else if (if_block) {
3253
- if_block.d(1);
3254
- if_block = null;
3255
- }
3256
- },
3257
- i: noop,
3258
- o: noop,
3259
- d(detaching) {
3260
- if (if_block) if_block.d(detaching);
3261
- detach(if_block_anchor);
3262
- }
3263
- };
3264
- }
3265
-
3266
- function instance$1v($$self, $$props, $$invalidate) {
3267
- let $fonts;
3268
- component_subscribe($$self, fonts, $$value => $$invalidate(1, $fonts = $$value));
3269
- let googleFontUrl = '';
3270
-
3271
- $$self.$$.update = () => {
3272
- if ($$self.$$.dirty & /*$fonts*/ 2) {
3273
- {
3274
- {
3275
- // フォントのロードが遅れてエディタのプレビューがガタつく対策
3276
- $$invalidate(0, googleFontUrl = makeGoogleFontUrl(Fonts.filter(font => font !== SYSTEM_FONT)));
3277
- }
3278
- }
3279
- }
3280
-
3281
- if ($$self.$$.dirty & /*googleFontUrl*/ 1) {
3282
- {
3283
- if (googleFontUrl) {
3284
- loadGlobalStyle(googleFontUrl);
3285
- }
3286
- }
3287
- }
3288
- };
3289
-
3290
- return [googleFontUrl, $fonts];
3291
- }
3292
-
3293
- let Header$1 = class Header extends SvelteComponent {
3294
- constructor(options) {
3295
- super();
3296
- init(this, options, instance$1v, create_fragment$1v, safe_not_equal, {});
3297
- }
3298
- };
3299
-
3300
- const BRAND_KIT_DEFAULT = {
3301
- font_family: 'sans-serif, serif, monospace, system-ui',
3302
- color_text_primary: '#222222',
3303
- color_text_secondary: '#555555',
3304
- color_brand: '#33403e',
3305
- color_link: '#1558d6',
3306
- color_danger: '#f44336',
3307
- color_warning: '#ffa726',
3308
- color_success: '#10b981',
3309
- color_info: '#29b6f6',
3310
- color_white: '#FFFFFF',
3311
- };
3312
- const getBrandKit = (customBrandKit) => {
3313
- return {
3314
- font_family: customBrandKit?.font_family ?? BRAND_KIT_DEFAULT.font_family,
3315
- color_text_primary: customBrandKit?.color_text_primary ?? BRAND_KIT_DEFAULT.color_text_primary,
3316
- color_text_secondary: customBrandKit?.color_text_secondary ?? BRAND_KIT_DEFAULT.color_text_secondary,
3317
- color_brand: customBrandKit?.color_brand ?? BRAND_KIT_DEFAULT.color_brand,
3318
- color_link: customBrandKit?.color_link ?? BRAND_KIT_DEFAULT.color_link,
3319
- color_danger: customBrandKit?.color_danger ?? BRAND_KIT_DEFAULT.color_danger,
3320
- color_warning: customBrandKit?.color_warning ?? BRAND_KIT_DEFAULT.color_warning,
3321
- color_success: customBrandKit?.color_success ?? BRAND_KIT_DEFAULT.color_success,
3322
- color_info: customBrandKit?.color_info ?? BRAND_KIT_DEFAULT.color_info,
3323
- color_white: customBrandKit?.color_white ?? BRAND_KIT_DEFAULT.color_white,
3324
- };
3325
- };
3326
- const useBrandKit = () => {
3327
- return {
3328
- brandKit: (getContext('brandKit') || getBrandKit()),
3329
- };
3330
- };
3331
-
3332
- /* src/components/State.svelte generated by Svelte v3.53.1 */
3333
-
3334
- function create_fragment$1u(ctx) {
3335
- let header;
3336
- let t;
3337
- let current;
3338
- header = new Header$1({});
3339
- const default_slot_template = /*#slots*/ ctx[2].default;
3340
- const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[1], null);
3341
-
3342
- return {
3343
- c() {
3344
- create_component(header.$$.fragment);
3345
- t = space();
3346
- if (default_slot) default_slot.c();
3347
- },
3348
- l(nodes) {
3349
- claim_component(header.$$.fragment, nodes);
3350
- t = claim_space(nodes);
3351
- if (default_slot) default_slot.l(nodes);
3352
- },
3353
- m(target, anchor) {
3354
- mount_component(header, target, anchor);
3355
- insert_hydration(target, t, anchor);
3356
-
3357
- if (default_slot) {
3358
- default_slot.m(target, anchor);
3359
- }
3360
-
3361
- current = true;
3362
- },
3363
- p(ctx, [dirty]) {
3364
- if (default_slot) {
3365
- if (default_slot.p && (!current || dirty & /*$$scope*/ 2)) {
3366
- update_slot_base(
3367
- default_slot,
3368
- default_slot_template,
3369
- ctx,
3370
- /*$$scope*/ ctx[1],
3371
- !current
3372
- ? get_all_dirty_from_scope(/*$$scope*/ ctx[1])
3373
- : get_slot_changes(default_slot_template, /*$$scope*/ ctx[1], dirty, null),
3374
- null
3375
- );
3376
- }
3377
- }
3378
- },
3379
- i(local) {
3380
- if (current) return;
3381
- transition_in(header.$$.fragment, local);
3382
- transition_in(default_slot, local);
3383
- current = true;
3384
- },
3385
- o(local) {
3386
- transition_out(header.$$.fragment, local);
3387
- transition_out(default_slot, local);
3388
- current = false;
3389
- },
3390
- d(detaching) {
3391
- destroy_component(header, detaching);
3392
- if (detaching) detach(t);
3393
- if (default_slot) default_slot.d(detaching);
3394
- }
3395
- };
3396
- }
3397
-
3398
- function instance$1u($$self, $$props, $$invalidate) {
3399
- let { $$slots: slots = {}, $$scope } = $$props;
3400
- let { customBrandKit = undefined } = $$props;
3401
- setContext('brandKit', getBrandKit(customBrandKit));
3402
-
3403
- $$self.$$set = $$props => {
3404
- if ('customBrandKit' in $$props) $$invalidate(0, customBrandKit = $$props.customBrandKit);
3405
- if ('$$scope' in $$props) $$invalidate(1, $$scope = $$props.$$scope);
3406
- };
3407
-
3408
- return [customBrandKit, $$scope, slots];
3409
- }
3410
-
3411
- let State$1 = class State extends SvelteComponent {
3412
- constructor(options) {
3413
- super();
3414
- init(this, options, instance$1u, create_fragment$1u, safe_not_equal, { customBrandKit: 0 });
3415
- }
3416
- };
3417
-
3418
- /* src/components/StateItem.svelte generated by Svelte v3.53.1 */
3419
-
3420
- function add_css$T(target) {
3421
- append_styles(target, "svelte-2qb6dm", ".state-item.svelte-2qb6dm{position:absolute;display:none}");
3422
- }
3423
-
3424
- // (22:0) {#if $state === path}
3425
- function create_if_block$i(ctx) {
3426
- let div;
3427
- let t;
3428
- let current;
3429
- const default_slot_template = /*#slots*/ ctx[3].default;
3430
- const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[2], null);
3431
-
3432
- return {
3433
- c() {
3434
- div = element("div");
3435
- t = space();
3436
- if (default_slot) default_slot.c();
3437
- this.h();
3438
- },
3439
- l(nodes) {
3440
- div = claim_element(nodes, "DIV", { "data-state-path": true, class: true });
3441
- children(div).forEach(detach);
3442
- t = claim_space(nodes);
3443
- if (default_slot) default_slot.l(nodes);
3444
- this.h();
3445
- },
3446
- h() {
3447
- attr(div, "data-state-path", /*path*/ ctx[0]);
3448
- attr(div, "class", "state-item svelte-2qb6dm");
3449
- },
3450
- m(target, anchor) {
3451
- insert_hydration(target, div, anchor);
3452
- insert_hydration(target, t, anchor);
3453
-
3454
- if (default_slot) {
3455
- default_slot.m(target, anchor);
3456
- }
3457
-
3458
- current = true;
3459
- },
3460
- p(ctx, dirty) {
3461
- if (!current || dirty & /*path*/ 1) {
3462
- attr(div, "data-state-path", /*path*/ ctx[0]);
3154
+ if (!current || dirty & /*path*/ 1) {
3155
+ attr(div, "data-state-path", /*path*/ ctx[0]);
3463
3156
  }
3464
3157
 
3465
3158
  if (default_slot) {
@@ -3774,7 +3467,7 @@ function customAnimation(node, { transforms, animationStyle, delay = 0, duration
3774
3467
  /* src/components/BackgroundOverlay.svelte generated by Svelte v3.53.1 */
3775
3468
 
3776
3469
  function add_css$S(target) {
3777
- append_styles(target, "svelte-1d4fta", ".background.svelte-1d4fta{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.3);z-index:2147483646}");
3470
+ append_styles(target, "svelte-g6ucc2", ".background.svelte-g6ucc2{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.3);z-index:2147483646}");
3778
3471
  }
3779
3472
 
3780
3473
  // (14:0) {#if backgroundOverlay}
@@ -3795,7 +3488,7 @@ function create_if_block$h(ctx) {
3795
3488
  this.h();
3796
3489
  },
3797
3490
  h() {
3798
- attr(div, "class", div_class_value = "" + (null_to_empty(['background', /*className*/ ctx[1] || ''].join(' ')) + " svelte-1d4fta"));
3491
+ attr(div, "class", div_class_value = "" + (null_to_empty(['background', /*className*/ ctx[1] || ''].join(' ')) + " svelte-g6ucc2"));
3799
3492
  },
3800
3493
  m(target, anchor) {
3801
3494
  insert_hydration(target, div, anchor);
@@ -3806,7 +3499,7 @@ function create_if_block$h(ctx) {
3806
3499
  }
3807
3500
  },
3808
3501
  p(ctx, dirty) {
3809
- if (dirty & /*className*/ 2 && div_class_value !== (div_class_value = "" + (null_to_empty(['background', /*className*/ ctx[1] || ''].join(' ')) + " svelte-1d4fta"))) {
3502
+ if (dirty & /*className*/ 2 && div_class_value !== (div_class_value = "" + (null_to_empty(['background', /*className*/ ctx[1] || ''].join(' ')) + " svelte-g6ucc2"))) {
3810
3503
  attr(div, "class", div_class_value);
3811
3504
  }
3812
3505
  },
@@ -3916,7 +3609,7 @@ function checkStopPropagation(eventName, handler) {
3916
3609
  /* src/components/Button.svelte generated by Svelte v3.53.1 */
3917
3610
 
3918
3611
  function add_css$R(target) {
3919
- append_styles(target, "svelte-15k4deh", ".button.svelte-15k4deh{display:block;text-decoration:none;color:inherit;border:none;background:none;margin:0;padding:0}.button.svelte-15k4deh:link,.button.svelte-15k4deh:visited,.button.svelte-15k4deh:active,.button.svelte-15k4deh:hover{color:inherit}");
3612
+ append_styles(target, "svelte-1kmu8zp", ".button.svelte-1kmu8zp{display:block;text-decoration:none;color:inherit;border:none;background:none;margin:0;padding:0}.button.svelte-1kmu8zp:link,.button.svelte-1kmu8zp:visited,.button.svelte-1kmu8zp:active,.button.svelte-1kmu8zp:hover{color:inherit}");
3920
3613
  }
3921
3614
 
3922
3615
  // (53:0) {:else}
@@ -3955,7 +3648,7 @@ function create_else_block$5(ctx) {
3955
3648
  },
3956
3649
  h() {
3957
3650
  set_attributes(button, button_data);
3958
- toggle_class(button, "svelte-15k4deh", true);
3651
+ toggle_class(button, "svelte-1kmu8zp", true);
3959
3652
  },
3960
3653
  m(target, anchor) {
3961
3654
  insert_hydration(target, button, anchor);
@@ -3994,7 +3687,7 @@ function create_else_block$5(ctx) {
3994
3687
  dataAttrStopPropagation('click')
3995
3688
  ]));
3996
3689
 
3997
- toggle_class(button, "svelte-15k4deh", true);
3690
+ toggle_class(button, "svelte-1kmu8zp", true);
3998
3691
  },
3999
3692
  i(local) {
4000
3693
  if (current) return;
@@ -4035,7 +3728,7 @@ function create_if_block_2$2(ctx) {
4035
3728
  this.h();
4036
3729
  },
4037
3730
  h() {
4038
- attr(div, "class", "" + (null_to_empty(BUTTON_CLASS) + " svelte-15k4deh"));
3731
+ attr(div, "class", "" + (null_to_empty(BUTTON_CLASS) + " svelte-1kmu8zp"));
4039
3732
  attr(div, "style", /*style*/ ctx[1]);
4040
3733
  },
4041
3734
  m(target, anchor) {
@@ -4135,7 +3828,7 @@ function create_if_block_1$4(ctx) {
4135
3828
  },
4136
3829
  h() {
4137
3830
  set_attributes(a, a_data);
4138
- toggle_class(a, "svelte-15k4deh", true);
3831
+ toggle_class(a, "svelte-1kmu8zp", true);
4139
3832
  },
4140
3833
  m(target, anchor) {
4141
3834
  insert_hydration(target, a, anchor);
@@ -4177,7 +3870,7 @@ function create_if_block_1$4(ctx) {
4177
3870
  dataAttrStopPropagation('click')
4178
3871
  ]));
4179
3872
 
4180
- toggle_class(a, "svelte-15k4deh", true);
3873
+ toggle_class(a, "svelte-1kmu8zp", true);
4181
3874
  },
4182
3875
  i(local) {
4183
3876
  if (current) return;
@@ -4218,7 +3911,7 @@ function create_if_block$g(ctx) {
4218
3911
  this.h();
4219
3912
  },
4220
3913
  h() {
4221
- attr(div, "class", "" + (BUTTON_CLASS + " _disabled" + " svelte-15k4deh"));
3914
+ attr(div, "class", "" + (BUTTON_CLASS + " _disabled" + " svelte-1kmu8zp"));
4222
3915
  attr(div, "style", /*style*/ ctx[1]);
4223
3916
  },
4224
3917
  m(target, anchor) {
@@ -4431,7 +4124,7 @@ let Button$1 = class Button extends SvelteComponent {
4431
4124
  /* src/components/Modal.svelte generated by Svelte v3.53.1 */
4432
4125
 
4433
4126
  function add_css$Q(target) {
4434
- append_styles(target, "svelte-1ijkyzl", ".modal.svelte-1ijkyzl{position:fixed;box-sizing:border-box;z-index:2147483647;display:flex}.modal.svelte-1ijkyzl > .button{flex:auto;display:flex}.close.svelte-1ijkyzl{position:absolute;top:0;right:0}.close.svelte-1ijkyzl > .button{position:absolute;display:flex;justify-content:center;align-items:center;background-color:transparent;border:none;cursor:pointer;padding:0;transition:all 0.25s}.close.svelte-1ijkyzl > .button:hover{transform:rotate(90deg)}.modal-content.svelte-1ijkyzl{flex:auto;display:flex;justify-content:center;align-items:center;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}@media screen and (min-width: 641px){.modal-bp.svelte-1ijkyzl{height:var(--modal-bp-height-pc) !important;width:var(--modal-bp-width-pc) !important;top:var(--modal-bp-top-pc) !important;left:var(--modal-bp-left-pc) !important;bottom:var(--modal-bp-bottom-pc) !important;right:var(--modal-bp-right-pc) !important;transform:var(--modal-bp-transform-pc);margin:var(--modal-bp-margin-pc) !important}.background-bp-pc{display:block}.background-bp-sp{display:none}}@media screen and (max-width: 640px){.modal-bp.svelte-1ijkyzl{height:var(--modal-bp-height-sp) !important;width:var(--modal-bp-width-sp) !important;top:var(--modal-bp-top-sp) !important;left:var(--modal-bp-left-sp) !important;bottom:var(--modal-bp-bottom-sp) !important;right:var(--modal-bp-right-sp) !important;transform:var(--modal-bp-transform-sp);margin:var(--modal-bp-margin-sp) !important}.background-bp-pc{display:none}.background-bp-sp{display:block}}");
4127
+ append_styles(target, "svelte-1i2vo31", ".modal.svelte-1i2vo31{position:fixed;box-sizing:border-box;z-index:2147483647;display:flex}.modal.svelte-1i2vo31 > .button{flex:auto;display:flex}.close.svelte-1i2vo31{position:absolute;top:0;right:0}.close.svelte-1i2vo31 > .button{position:absolute;display:flex;justify-content:center;align-items:center;background-color:transparent;border:none;cursor:pointer;padding:0;transition:all 0.25s}.close.svelte-1i2vo31 > .button:hover{transform:rotate(90deg)}.modal-content.svelte-1i2vo31{flex:auto;display:flex;justify-content:center;align-items:center;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}@media screen and (min-width: 641px){.modal-bp.svelte-1i2vo31{height:var(--modal-bp-height-pc) !important;width:var(--modal-bp-width-pc) !important;top:var(--modal-bp-top-pc) !important;left:var(--modal-bp-left-pc) !important;bottom:var(--modal-bp-bottom-pc) !important;right:var(--modal-bp-right-pc) !important;transform:var(--modal-bp-transform-pc);margin:var(--modal-bp-margin-pc) !important}.background-bp-pc{display:block}.background-bp-sp{display:none}}@media screen and (max-width: 640px){.modal-bp.svelte-1i2vo31{height:var(--modal-bp-height-sp) !important;width:var(--modal-bp-width-sp) !important;top:var(--modal-bp-top-sp) !important;left:var(--modal-bp-left-sp) !important;bottom:var(--modal-bp-bottom-sp) !important;right:var(--modal-bp-right-sp) !important;transform:var(--modal-bp-transform-sp);margin:var(--modal-bp-margin-sp) !important}.background-bp-pc{display:none}.background-bp-sp{display:block}}");
4435
4128
  }
4436
4129
 
4437
4130
  // (278:0) {:else}
@@ -4606,7 +4299,7 @@ function create_if_block$f(ctx) {
4606
4299
  this.h();
4607
4300
  },
4608
4301
  h() {
4609
- attr(div, "class", div_class_value = "" + (null_to_empty(['modal', /*useBreakPoint*/ ctx[3] ? 'modal-bp' : ''].join(' ')) + " svelte-1ijkyzl"));
4302
+ attr(div, "class", div_class_value = "" + (null_to_empty(['modal', /*useBreakPoint*/ ctx[3] ? 'modal-bp' : ''].join(' ')) + " svelte-1i2vo31"));
4610
4303
  attr(div, "role", "dialog");
4611
4304
  attr(div, "aria-modal", "true");
4612
4305
  attr(div, "style", Array.from(/*modalStyles*/ ctx[23]).join(';'));
@@ -4630,7 +4323,7 @@ function create_if_block$f(ctx) {
4630
4323
 
4631
4324
  button.$set(button_changes);
4632
4325
 
4633
- if (!current || dirty[0] & /*useBreakPoint*/ 8 && div_class_value !== (div_class_value = "" + (null_to_empty(['modal', /*useBreakPoint*/ ctx[3] ? 'modal-bp' : ''].join(' ')) + " svelte-1ijkyzl"))) {
4326
+ if (!current || dirty[0] & /*useBreakPoint*/ 8 && div_class_value !== (div_class_value = "" + (null_to_empty(['modal', /*useBreakPoint*/ ctx[3] ? 'modal-bp' : ''].join(' ')) + " svelte-1i2vo31"))) {
4634
4327
  attr(div, "class", div_class_value);
4635
4328
  }
4636
4329
  },
@@ -4695,7 +4388,7 @@ function create_if_block_1$3(ctx) {
4695
4388
  this.h();
4696
4389
  },
4697
4390
  h() {
4698
- attr(div, "class", "close svelte-1ijkyzl");
4391
+ attr(div, "class", "close svelte-1i2vo31");
4699
4392
  set_style(div, "z-index", /*$maximumZindex*/ ctx[22] + 1);
4700
4393
  },
4701
4394
  m(target, anchor) {
@@ -4820,7 +4513,7 @@ function create_default_slot$7(ctx) {
4820
4513
  this.h();
4821
4514
  },
4822
4515
  h() {
4823
- attr(div, "class", "modal-content svelte-1ijkyzl");
4516
+ attr(div, "class", "modal-content svelte-1i2vo31");
4824
4517
  attr(div, "style", /*_style*/ ctx[5]);
4825
4518
  },
4826
4519
  m(target, anchor) {
@@ -5458,7 +5151,7 @@ class Grid extends SvelteComponent {
5458
5151
  /* src/components/GridItem.svelte generated by Svelte v3.53.1 */
5459
5152
 
5460
5153
  function add_css$P(target) {
5461
- append_styles(target, "svelte-n7kdl3", ".grid-item.svelte-n7kdl3{word-break:break-all;position:relative}.grid-item-inner.svelte-n7kdl3{position:absolute;inset:0}");
5154
+ append_styles(target, "svelte-1cryhmb", ".grid-item.svelte-1cryhmb{word-break:break-all;position:relative}.grid-item-inner.svelte-1cryhmb{position:absolute;inset:0}");
5462
5155
  }
5463
5156
 
5464
5157
  function create_fragment$1o(ctx) {
@@ -5492,8 +5185,8 @@ function create_fragment$1o(ctx) {
5492
5185
  this.h();
5493
5186
  },
5494
5187
  h() {
5495
- attr(div0, "class", "grid-item-inner svelte-n7kdl3");
5496
- attr(div1, "class", "grid-item svelte-n7kdl3");
5188
+ attr(div0, "class", "grid-item-inner svelte-1cryhmb");
5189
+ attr(div1, "class", "grid-item svelte-1cryhmb");
5497
5190
  attr(div1, "data-element-id", /*gridItemId*/ ctx[0]);
5498
5191
  attr(div1, "data-grid-item-id", /*gridItemId*/ ctx[0]);
5499
5192
  attr(div1, "style", /*_style*/ ctx[1]);
@@ -5815,7 +5508,7 @@ class RenderText extends SvelteComponent {
5815
5508
  /* src/components/TextElement.svelte generated by Svelte v3.53.1 */
5816
5509
 
5817
5510
  function add_css$O(target) {
5818
- append_styles(target, "svelte-9ixs0b", ".text-element-wrapper.svelte-9ixs0b.svelte-9ixs0b{position:relative;height:100%}.text-element.svelte-9ixs0b.svelte-9ixs0b{display:flex;position:relative;width:100%;height:100%;box-sizing:border-box;white-space:pre-wrap;margin:0px;padding:0px;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden;font-size:12px;line-height:1.5}.text-link-element.svelte-9ixs0b.svelte-9ixs0b{text-decoration:none;color:inherit}.text-element-inner.svelte-9ixs0b.svelte-9ixs0b{width:100%;height:auto}.text-direction-vertical.svelte-9ixs0b.svelte-9ixs0b{writing-mode:vertical-rl}.text-direction-vertical.svelte-9ixs0b .text-element-inner.svelte-9ixs0b{width:auto;height:100%}.tooltip.svelte-9ixs0b.svelte-9ixs0b{display:none;position:absolute;bottom:-40px;left:50%;transform:translateX(-50%);color:#fff;background-color:#3d4948;white-space:nowrap;padding:4px 8px 4px 8px;border-radius:4px;font-size:12px;z-index:2147483647}.tooltip.svelte-9ixs0b.svelte-9ixs0b:before{content:'';position:absolute;top:-13px;left:50%;margin-left:-7px;border:7px solid transparent;border-bottom:7px solid #3d4948}.tooltip.show.svelte-9ixs0b.svelte-9ixs0b{display:block}.tooltip-error.svelte-9ixs0b.svelte-9ixs0b{background-color:#c00}.tooltip-error.svelte-9ixs0b.svelte-9ixs0b:before{border-bottom:7px solid #c00}");
5511
+ append_styles(target, "svelte-vz6867", ".text-element-wrapper.svelte-vz6867.svelte-vz6867{position:relative;height:100%}.text-element.svelte-vz6867.svelte-vz6867{display:flex;position:relative;width:100%;height:100%;box-sizing:border-box;white-space:pre-wrap;margin:0px;padding:0px;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden;font-size:12px;line-height:1.5}.text-link-element.svelte-vz6867.svelte-vz6867{text-decoration:none;color:inherit}.text-element-inner.svelte-vz6867.svelte-vz6867{width:100%;height:auto}.text-direction-vertical.svelte-vz6867.svelte-vz6867{writing-mode:vertical-rl}.text-direction-vertical.svelte-vz6867 .text-element-inner.svelte-vz6867{width:auto;height:100%}.tooltip.svelte-vz6867.svelte-vz6867{display:none;position:absolute;bottom:-40px;left:50%;transform:translateX(-50%);color:#fff;background-color:#3d4948;white-space:nowrap;padding:4px 8px 4px 8px;border-radius:4px;font-size:12px;z-index:2147483647}.tooltip.svelte-vz6867.svelte-vz6867:before{content:'';position:absolute;top:-13px;left:50%;margin-left:-7px;border:7px solid transparent;border-bottom:7px solid #3d4948}.tooltip.show.svelte-vz6867.svelte-vz6867{display:block}.tooltip-error.svelte-vz6867.svelte-vz6867{background-color:#c00}.tooltip-error.svelte-vz6867.svelte-vz6867:before{border-bottom:7px solid #c00}");
5819
5512
  }
5820
5513
 
5821
5514
  // (92:2) {:else}
@@ -5845,8 +5538,8 @@ function create_else_block$2(ctx) {
5845
5538
  this.h();
5846
5539
  },
5847
5540
  h() {
5848
- attr(div0, "class", "text-element-inner svelte-9ixs0b");
5849
- attr(div1, "class", div1_class_value = "" + (null_to_empty(`text-element text-direction-${/*textDirection*/ ctx[1]}`) + " svelte-9ixs0b"));
5541
+ attr(div0, "class", "text-element-inner svelte-vz6867");
5542
+ attr(div1, "class", div1_class_value = "" + (null_to_empty(`text-element text-direction-${/*textDirection*/ ctx[1]}`) + " svelte-vz6867"));
5850
5543
  attr(div1, "style", /*style*/ ctx[5]);
5851
5544
  },
5852
5545
  m(target, anchor) {
@@ -5860,7 +5553,7 @@ function create_else_block$2(ctx) {
5860
5553
  if (dirty & /*text*/ 1) rendertext_changes.text = /*text*/ ctx[0];
5861
5554
  rendertext.$set(rendertext_changes);
5862
5555
 
5863
- if (!current || dirty & /*textDirection*/ 2 && div1_class_value !== (div1_class_value = "" + (null_to_empty(`text-element text-direction-${/*textDirection*/ ctx[1]}`) + " svelte-9ixs0b"))) {
5556
+ if (!current || dirty & /*textDirection*/ 2 && div1_class_value !== (div1_class_value = "" + (null_to_empty(`text-element text-direction-${/*textDirection*/ ctx[1]}`) + " svelte-vz6867"))) {
5864
5557
  attr(div1, "class", div1_class_value);
5865
5558
  }
5866
5559
 
@@ -5935,12 +5628,12 @@ function create_if_block$d(ctx) {
5935
5628
  this.h();
5936
5629
  },
5937
5630
  h() {
5938
- attr(div0, "class", "text-element-inner svelte-9ixs0b");
5631
+ attr(div0, "class", "text-element-inner svelte-vz6867");
5939
5632
  attr(a, "href", '');
5940
- attr(a, "class", a_class_value = "" + (null_to_empty(`text-element text-link-element text-direction-${/*textDirection*/ ctx[1]}`) + " svelte-9ixs0b"));
5633
+ attr(a, "class", a_class_value = "" + (null_to_empty(`text-element text-link-element text-direction-${/*textDirection*/ ctx[1]}`) + " svelte-vz6867"));
5941
5634
  attr(a, "style", /*style*/ ctx[5]);
5942
- attr(div1, "class", "tooltip svelte-9ixs0b");
5943
- attr(div2, "class", "tooltip tooltip-error svelte-9ixs0b");
5635
+ attr(div1, "class", "tooltip svelte-vz6867");
5636
+ attr(div2, "class", "tooltip tooltip-error svelte-vz6867");
5944
5637
  },
5945
5638
  m(target, anchor) {
5946
5639
  insert_hydration(target, a, anchor);
@@ -5966,7 +5659,7 @@ function create_if_block$d(ctx) {
5966
5659
  if (dirty & /*text*/ 1) rendertext_changes.text = /*text*/ ctx[0];
5967
5660
  rendertext.$set(rendertext_changes);
5968
5661
 
5969
- if (!current || dirty & /*textDirection*/ 2 && a_class_value !== (a_class_value = "" + (null_to_empty(`text-element text-link-element text-direction-${/*textDirection*/ ctx[1]}`) + " svelte-9ixs0b"))) {
5662
+ if (!current || dirty & /*textDirection*/ 2 && a_class_value !== (a_class_value = "" + (null_to_empty(`text-element text-link-element text-direction-${/*textDirection*/ ctx[1]}`) + " svelte-vz6867"))) {
5970
5663
  attr(a, "class", a_class_value);
5971
5664
  }
5972
5665
 
@@ -6028,7 +5721,7 @@ function create_fragment$1m(ctx) {
6028
5721
  this.h();
6029
5722
  },
6030
5723
  h() {
6031
- attr(div, "class", "text-element-wrapper svelte-9ixs0b");
5724
+ attr(div, "class", "text-element-wrapper svelte-vz6867");
6032
5725
  },
6033
5726
  m(target, anchor) {
6034
5727
  insert_hydration(target, div, anchor);
@@ -6194,7 +5887,7 @@ class TextElement extends SvelteComponent {
6194
5887
  /* src/components/TextButtonElement.svelte generated by Svelte v3.53.1 */
6195
5888
 
6196
5889
  function add_css$N(target) {
6197
- append_styles(target, "svelte-1vg84sc", ".text-button-element.svelte-1vg84sc{width:100%;height:100%}.text-button-element.svelte-1vg84sc > .button{display:flex;width:100%;height:100%;border:none;box-shadow:transparent;box-sizing:border-box;transition:box-shadow 0.2s;white-space:pre-wrap;overflow:hidden;color:#ffffff;font-size:14px;font-weight:bold;justify-content:center;align-items:center;padding:1px 6px 1px 6px;line-height:1.5;background-color:#33403e;border-radius:4px;cursor:pointer;border-width:0px;border-style:solid;border-color:#000000}.text-button-element.svelte-1vg84sc > .button._disabled{cursor:not-allowed !important;opacity:0.2}.text-button-element.svelte-1vg84sc > .button:not(._disabled):active{box-shadow:inset 0 0 100px 100px rgba(0, 0, 0, 0.3)}.text-button-element.svelte-1vg84sc > .button:not(._disabled):hover{box-shadow:inset 0 0 100px 100px rgba(255, 255, 255, 0.3)}");
5890
+ append_styles(target, "svelte-ujdxfc", ".text-button-element.svelte-ujdxfc{width:100%;height:100%}.text-button-element.svelte-ujdxfc > .button{display:flex;width:100%;height:100%;border:none;box-shadow:transparent;box-sizing:border-box;transition:box-shadow 0.2s;white-space:pre-wrap;overflow:hidden;color:#ffffff;font-size:14px;font-weight:bold;justify-content:center;align-items:center;padding:1px 6px 1px 6px;line-height:1.5;background-color:#33403e;border-radius:4px;cursor:pointer;border-width:0px;border-style:solid;border-color:#000000}.text-button-element.svelte-ujdxfc > .button._disabled{cursor:not-allowed !important;opacity:0.2}.text-button-element.svelte-ujdxfc > .button:not(._disabled):active{box-shadow:inset 0 0 100px 100px rgba(0, 0, 0, 0.3)}.text-button-element.svelte-ujdxfc > .button:not(._disabled):hover{box-shadow:inset 0 0 100px 100px rgba(255, 255, 255, 0.3)}");
6198
5891
  }
6199
5892
 
6200
5893
  // (48:2) <Button {onClick} {style} {eventName}>
@@ -6263,7 +5956,7 @@ function create_fragment$1l(ctx) {
6263
5956
  this.h();
6264
5957
  },
6265
5958
  h() {
6266
- attr(div, "class", "text-button-element svelte-1vg84sc");
5959
+ attr(div, "class", "text-button-element svelte-ujdxfc");
6267
5960
  },
6268
5961
  m(target, anchor) {
6269
5962
  insert_hydration(target, div, anchor);
@@ -6355,7 +6048,7 @@ class TextButtonElement extends SvelteComponent {
6355
6048
  /* src/components/ImageElement.svelte generated by Svelte v3.53.1 */
6356
6049
 
6357
6050
  function add_css$M(target) {
6358
- append_styles(target, "svelte-t6tu0e", ".image-element.svelte-t6tu0e{width:100%;height:100%;max-width:100%;max-height:100%;box-sizing:border-box}.image-element.svelte-t6tu0e > .button{display:flex;position:relative;width:100%;height:100%;max-width:100%;max-height:100%;justify-content:center;align-items:center;white-space:nowrap;box-sizing:border-box;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}.image-element.svelte-t6tu0e > .button._disabled{cursor:not-allowed !important;opacity:0.2}.image-element.transport.svelte-t6tu0e > .button:not(._disabled):hover,.image-element.transport.svelte-t6tu0e > .button:not(._disabled):focus{opacity:0.75;box-shadow:0 5px 16px rgba(0, 0, 0, 0.1), 0 8px 28px rgba(0, 0, 0, 0.16)}.image.svelte-t6tu0e{width:100%;height:100%}");
6051
+ append_styles(target, "svelte-1alkh1m", ".image-element.svelte-1alkh1m{width:100%;height:100%;max-width:100%;max-height:100%;box-sizing:border-box}.image-element.svelte-1alkh1m > .button{display:flex;position:relative;width:100%;height:100%;max-width:100%;max-height:100%;justify-content:center;align-items:center;white-space:nowrap;box-sizing:border-box;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}.image-element.svelte-1alkh1m > .button._disabled{cursor:not-allowed !important;opacity:0.2}.image-element.transport.svelte-1alkh1m > .button:not(._disabled):hover,.image-element.transport.svelte-1alkh1m > .button:not(._disabled):focus{opacity:0.75;box-shadow:0 5px 16px rgba(0, 0, 0, 0.1), 0 8px 28px rgba(0, 0, 0, 0.16)}.image.svelte-1alkh1m{width:100%;height:100%}");
6359
6052
  }
6360
6053
 
6361
6054
  // (44:2) <Button {onClick} style={_style} {eventName}>
@@ -6383,7 +6076,7 @@ function create_default_slot$5(ctx) {
6383
6076
  this.h();
6384
6077
  },
6385
6078
  h() {
6386
- attr(img, "class", "image svelte-t6tu0e");
6079
+ attr(img, "class", "image svelte-1alkh1m");
6387
6080
  attr(img, "loading", "lazy");
6388
6081
  attr(img, "width", "auto");
6389
6082
  attr(img, "height", "auto");
@@ -6455,7 +6148,7 @@ function create_fragment$1k(ctx) {
6455
6148
  this.h();
6456
6149
  },
6457
6150
  h() {
6458
- attr(div, "class", div_class_value = "image-element " + (/*transport*/ ctx[2] ? ' transport' : '') + " svelte-t6tu0e");
6151
+ attr(div, "class", div_class_value = "image-element " + (/*transport*/ ctx[2] ? ' transport' : '') + " svelte-1alkh1m");
6459
6152
  },
6460
6153
  m(target, anchor) {
6461
6154
  insert_hydration(target, div, anchor);
@@ -6474,7 +6167,7 @@ function create_fragment$1k(ctx) {
6474
6167
 
6475
6168
  button.$set(button_changes);
6476
6169
 
6477
- if (!current || dirty & /*transport*/ 4 && div_class_value !== (div_class_value = "image-element " + (/*transport*/ ctx[2] ? ' transport' : '') + " svelte-t6tu0e")) {
6170
+ if (!current || dirty & /*transport*/ 4 && div_class_value !== (div_class_value = "image-element " + (/*transport*/ ctx[2] ? ' transport' : '') + " svelte-1alkh1m")) {
6478
6171
  attr(div, "class", div_class_value);
6479
6172
  }
6480
6173
  },
@@ -6546,7 +6239,7 @@ class ImageElement extends SvelteComponent {
6546
6239
  /* src/components/List.svelte generated by Svelte v3.53.1 */
6547
6240
 
6548
6241
  function add_css$L(target) {
6549
- append_styles(target, "svelte-aquv6z", ".list.svelte-aquv6z{display:flex;width:100%;height:100%;overflow:hidden;border-width:0px;border-style:solid;border-color:#000000}");
6242
+ append_styles(target, "svelte-1t8r9z", ".list.svelte-1t8r9z{display:flex;width:100%;height:100%;overflow:hidden;border-width:0px;border-style:solid;border-color:#000000}");
6550
6243
  }
6551
6244
 
6552
6245
  function create_fragment$1j(ctx) {
@@ -6569,7 +6262,7 @@ function create_fragment$1j(ctx) {
6569
6262
  this.h();
6570
6263
  },
6571
6264
  h() {
6572
- attr(div, "class", "list svelte-aquv6z");
6265
+ attr(div, "class", "list svelte-1t8r9z");
6573
6266
  attr(div, "style", /*style*/ ctx[0]);
6574
6267
  },
6575
6268
  m(target, anchor) {
@@ -6703,7 +6396,7 @@ let List$1 = class List extends SvelteComponent {
6703
6396
  /* src/components/ListItem.svelte generated by Svelte v3.53.1 */
6704
6397
 
6705
6398
  function add_css$K(target) {
6706
- append_styles(target, "svelte-9n97pe", ".list-item.svelte-9n97pe{flex:auto;box-sizing:border-box;min-width:0;min-height:0;position:relative}.list-item.svelte-9n97pe > .button{position:absolute;inset:0;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}");
6399
+ append_styles(target, "svelte-1lbw8v2", ".list-item.svelte-1lbw8v2{flex:auto;box-sizing:border-box;min-width:0;min-height:0;position:relative}.list-item.svelte-1lbw8v2 > .button{position:absolute;inset:0;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}");
6707
6400
  }
6708
6401
 
6709
6402
  // (67:2) <Button {onClick} style={_style} eventName={clickEventName}>
@@ -6786,7 +6479,7 @@ function create_fragment$1i(ctx) {
6786
6479
  this.h();
6787
6480
  },
6788
6481
  h() {
6789
- attr(div, "class", "list-item svelte-9n97pe");
6482
+ attr(div, "class", "list-item svelte-1lbw8v2");
6790
6483
  attr(div, "style", /*listItemStyle*/ ctx[3]);
6791
6484
  },
6792
6485
  m(target, anchor) {
@@ -6912,7 +6605,7 @@ let ListItem$1 = class ListItem extends SvelteComponent {
6912
6605
  /* src/components/EmbedElement.svelte generated by Svelte v3.53.1 */
6913
6606
 
6914
6607
  function add_css$J(target) {
6915
- append_styles(target, "svelte-wocq4p", ".embed.svelte-wocq4p{box-shadow:0 1px rgba(0, 0, 0, 0.06);overflow:hidden;width:100%;height:100%}.embed.svelte-wocq4p iframe{position:absolute;top:0;left:0;width:100%;height:100%;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}");
6608
+ append_styles(target, "svelte-w6jkzh", ".embed.svelte-w6jkzh{box-shadow:0 1px rgba(0, 0, 0, 0.06);overflow:hidden;width:100%;height:100%}.embed.svelte-w6jkzh iframe{position:absolute;top:0;left:0;width:100%;height:100%;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}");
6916
6609
  }
6917
6610
 
6918
6611
  function create_fragment$1h(ctx) {
@@ -6930,7 +6623,7 @@ function create_fragment$1h(ctx) {
6930
6623
  this.h();
6931
6624
  },
6932
6625
  h() {
6933
- attr(div, "class", "embed svelte-wocq4p");
6626
+ attr(div, "class", "embed svelte-w6jkzh");
6934
6627
  attr(div, "style", /*_style*/ ctx[1]);
6935
6628
  },
6936
6629
  m(target, anchor) {
@@ -6973,7 +6666,7 @@ class EmbedElement extends SvelteComponent {
6973
6666
  /* src/components/MovieYouTubeElement.svelte generated by Svelte v3.53.1 */
6974
6667
 
6975
6668
  function add_css$I(target) {
6976
- append_styles(target, "svelte-vikz49", ".embed.svelte-vikz49{box-shadow:0 1px rgba(0, 0, 0, 0.06);overflow:hidden;width:100%;height:100%;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}.embed.svelte-vikz49 iframe{position:absolute;top:0;left:0;width:100%;height:100%}");
6669
+ append_styles(target, "svelte-ljxq7x", ".embed.svelte-ljxq7x{box-shadow:0 1px rgba(0, 0, 0, 0.06);overflow:hidden;width:100%;height:100%;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}.embed.svelte-ljxq7x iframe{position:absolute;top:0;left:0;width:100%;height:100%}");
6977
6670
  }
6978
6671
 
6979
6672
  function create_fragment$1g(ctx) {
@@ -6996,7 +6689,7 @@ function create_fragment$1g(ctx) {
6996
6689
  },
6997
6690
  h() {
6998
6691
  attr(div0, "class", "karte-player");
6999
- attr(div1, "class", "embed svelte-vikz49");
6692
+ attr(div1, "class", "embed svelte-ljxq7x");
7000
6693
  attr(div1, "style", /*_style*/ ctx[0]);
7001
6694
  },
7002
6695
  m(target, anchor) {
@@ -7338,7 +7031,7 @@ class MovieYouTubeElement extends SvelteComponent {
7338
7031
  /* src/components/MovieVimeoElement.svelte generated by Svelte v3.53.1 */
7339
7032
 
7340
7033
  function add_css$H(target) {
7341
- append_styles(target, "svelte-vikz49", ".embed.svelte-vikz49{box-shadow:0 1px rgba(0, 0, 0, 0.06);overflow:hidden;width:100%;height:100%;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}.embed.svelte-vikz49 iframe{position:absolute;top:0;left:0;width:100%;height:100%}");
7034
+ append_styles(target, "svelte-ljxq7x", ".embed.svelte-ljxq7x{box-shadow:0 1px rgba(0, 0, 0, 0.06);overflow:hidden;width:100%;height:100%;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}.embed.svelte-ljxq7x iframe{position:absolute;top:0;left:0;width:100%;height:100%}");
7342
7035
  }
7343
7036
 
7344
7037
  function create_fragment$1f(ctx) {
@@ -7361,7 +7054,7 @@ function create_fragment$1f(ctx) {
7361
7054
  },
7362
7055
  h() {
7363
7056
  attr(div0, "class", "karte-player");
7364
- attr(div1, "class", "embed svelte-vikz49");
7057
+ attr(div1, "class", "embed svelte-ljxq7x");
7365
7058
  attr(div1, "style", /*_style*/ ctx[0]);
7366
7059
  },
7367
7060
  m(target, anchor) {
@@ -7545,7 +7238,7 @@ class MovieVimeoElement extends SvelteComponent {
7545
7238
  /* src/components/FormTextarea.svelte generated by Svelte v3.53.1 */
7546
7239
 
7547
7240
  function add_css$G(target) {
7548
- append_styles(target, "svelte-zxvkkc", ".textarea-wrapper.svelte-zxvkkc{display:flex;align-items:center;width:100%;height:100%}.textarea.svelte-zxvkkc{width:100%;height:100%;box-sizing:border-box;resize:none;appearance:none;background-color:#fff;border:solid 2px #ccc;border-radius:6px;padding:6px 10px 6px 10px;font-size:12px;line-height:1.5}.textarea.svelte-zxvkkc::placeholder{color:var(--placeholder-color)}.textarea.svelte-zxvkkc:focus{outline:none;border-width:var(--focus-border-width) !important;border-color:var(--focus-border-color) !important;border-style:var(--focus-border-style) !important}");
7241
+ append_styles(target, "svelte-1fjy5oo", ".textarea-wrapper.svelte-1fjy5oo{display:flex;align-items:center;width:100%;height:100%}.textarea.svelte-1fjy5oo{width:100%;height:100%;box-sizing:border-box;resize:none;appearance:none;background-color:#fff;border:solid 2px #ccc;border-radius:6px;padding:6px 10px 6px 10px;font-size:12px;line-height:1.5}.textarea.svelte-1fjy5oo::placeholder{color:var(--placeholder-color)}.textarea.svelte-1fjy5oo:focus{outline:none;border-width:var(--focus-border-width) !important;border-color:var(--focus-border-color) !important;border-style:var(--focus-border-style) !important}");
7549
7242
  }
7550
7243
 
7551
7244
  function create_fragment$1e(ctx) {
@@ -7575,12 +7268,12 @@ function create_fragment$1e(ctx) {
7575
7268
  this.h();
7576
7269
  },
7577
7270
  h() {
7578
- attr(textarea, "class", "textarea svelte-zxvkkc");
7271
+ attr(textarea, "class", "textarea svelte-1fjy5oo");
7579
7272
  textarea.value = /*$value*/ ctx[4];
7580
7273
  textarea.required = /*required*/ ctx[1];
7581
7274
  attr(textarea, "placeholder", /*placeholder*/ ctx[0]);
7582
7275
  attr(textarea, "style", /*style*/ ctx[3]);
7583
- attr(div, "class", "textarea-wrapper svelte-zxvkkc");
7276
+ attr(div, "class", "textarea-wrapper svelte-1fjy5oo");
7584
7277
  attr(div, "style", /*styleVariables*/ ctx[2]);
7585
7278
  },
7586
7279
  m(target, anchor) {
@@ -7732,7 +7425,7 @@ class FormTextarea extends SvelteComponent {
7732
7425
  /* src/components/FormRadioButtons.svelte generated by Svelte v3.53.1 */
7733
7426
 
7734
7427
  function add_css$F(target) {
7735
- append_styles(target, "svelte-17s08g", ".radio-buttons.svelte-17s08g{display:flex;justify-content:space-between;flex-direction:column;width:100%;height:100%}.radio-button.svelte-17s08g{cursor:pointer;display:flex;align-items:center}.radio-button-input.svelte-17s08g{appearance:none;margin:0;box-sizing:border-box;border-radius:var(--size);position:relative;width:var(--size);height:var(--size);border:solid calc(var(--size) / 3) var(--color-main);background-color:var(--color-sub);cursor:pointer;flex:none}.radio-button-input.svelte-17s08g:checked{border:solid calc(var(--size) / 3) var(--color-main-active);background-color:var(--color-sub-active);box-shadow:0px 1px 8px 2px rgba(18,160,160,.08),0px 1px 4px -1px rgba(18,160,160,.24)}.radio-button-text.svelte-17s08g{margin-left:0.5em}");
7428
+ append_styles(target, "svelte-1ntb6j8", ".radio-buttons.svelte-1ntb6j8{display:flex;justify-content:space-between;flex-direction:column;width:100%;height:100%}.radio-button.svelte-1ntb6j8{cursor:pointer;display:flex;align-items:center}.radio-button-input.svelte-1ntb6j8{appearance:none;margin:0;box-sizing:border-box;border-radius:var(--size);position:relative;width:var(--size);height:var(--size);border:solid calc(var(--size) / 3) var(--color-main);background-color:var(--color-sub);cursor:pointer;flex:none}.radio-button-input.svelte-1ntb6j8:checked{border:solid calc(var(--size) / 3) var(--color-main-active);background-color:var(--color-sub-active);box-shadow:0px 1px 8px 2px rgba(18,160,160,.08),0px 1px 4px -1px rgba(18,160,160,.24)}.radio-button-text.svelte-1ntb6j8{margin-left:0.5em}");
7736
7429
  }
7737
7430
 
7738
7431
  function get_each_context$7(ctx, list, i) {
@@ -7789,14 +7482,14 @@ function create_each_block$7(ctx) {
7789
7482
  },
7790
7483
  h() {
7791
7484
  attr(input, "type", "radio");
7792
- attr(input, "class", "radio-button-input svelte-17s08g");
7485
+ attr(input, "class", "radio-button-input svelte-1ntb6j8");
7793
7486
  attr(input, "style", /*buttonStyle*/ ctx[5]);
7794
7487
  attr(input, "name", /*name*/ ctx[0]);
7795
7488
  input.value = input_value_value = /*option*/ ctx[17];
7796
7489
  input.checked = input_checked_value = /*option*/ ctx[17] === /*_value*/ ctx[3];
7797
- attr(span, "class", "radio-button-text svelte-17s08g");
7490
+ attr(span, "class", "radio-button-text svelte-1ntb6j8");
7798
7491
  attr(span, "style", span_style_value = `${/*_textStyle*/ ctx[2]} ${/*fontCss*/ ctx[6]}`);
7799
- attr(label, "class", "radio-button svelte-17s08g");
7492
+ attr(label, "class", "radio-button svelte-1ntb6j8");
7800
7493
  },
7801
7494
  m(target, anchor) {
7802
7495
  insert_hydration(target, label, anchor);
@@ -7875,7 +7568,7 @@ function create_fragment$1d(ctx) {
7875
7568
  this.h();
7876
7569
  },
7877
7570
  h() {
7878
- attr(div, "class", "radio-buttons svelte-17s08g");
7571
+ attr(div, "class", "radio-buttons svelte-1ntb6j8");
7879
7572
  attr(div, "style", /*_layoutStyle*/ ctx[1]);
7880
7573
  },
7881
7574
  m(target, anchor) {
@@ -8044,7 +7737,7 @@ class FormRadioButtons extends SvelteComponent {
8044
7737
  /* src/components/FormSelect.svelte generated by Svelte v3.53.1 */
8045
7738
 
8046
7739
  function add_css$E(target) {
8047
- append_styles(target, "svelte-t9ynyj", ".select.svelte-t9ynyj{width:100%;height:100%}.select-select.svelte-t9ynyj{position:relative;appearance:none;width:100%;height:100%;cursor:pointer;background-color:#fff;border:solid 2px #ccc;border-radius:6px;padding:0 0 0 10px;font-size:12px;line-height:1.5}.select-select.svelte-t9ynyj:focus{outline:none;border-width:var(--focus-border-width) !important;border-color:var(--focus-border-color) !important;border-style:var(--focus-border-style) !important}.select-icon.svelte-t9ynyj{position:absolute;width:calc(var(--icon-size) / 1.41);height:calc(var(--icon-size) / 1.41);top:calc(50% - calc(var(--icon-size) / 4));right:calc(var(--icon-size) * 1.2);box-sizing:border-box;border-right:solid 2px var(--icon-color);border-top:solid 2px var(--icon-color);transform:translateY(-35.4%) rotate(135deg);pointer-events:none}");
7740
+ append_styles(target, "svelte-iejizj", ".select.svelte-iejizj{width:100%;height:100%}.select-select.svelte-iejizj{position:relative;appearance:none;width:100%;height:100%;cursor:pointer;background-color:#fff;border:solid 2px #ccc;border-radius:6px;padding:0 0 0 10px;font-size:12px;line-height:1.5}.select-select.svelte-iejizj:focus{outline:none;border-width:var(--focus-border-width) !important;border-color:var(--focus-border-color) !important;border-style:var(--focus-border-style) !important}.select-icon.svelte-iejizj{position:absolute;width:calc(var(--icon-size) / 1.41);height:calc(var(--icon-size) / 1.41);top:calc(50% - calc(var(--icon-size) / 4));right:calc(var(--icon-size) * 1.2);box-sizing:border-box;border-right:solid 2px var(--icon-color);border-top:solid 2px var(--icon-color);transform:translateY(-35.4%) rotate(135deg);pointer-events:none}");
8048
7741
  }
8049
7742
 
8050
7743
  function get_each_context$6(ctx, list, i) {
@@ -8215,10 +7908,10 @@ function create_fragment$1c(ctx) {
8215
7908
  this.h();
8216
7909
  },
8217
7910
  h() {
8218
- attr(select, "class", "select-select svelte-t9ynyj");
7911
+ attr(select, "class", "select-select svelte-iejizj");
8219
7912
  attr(select, "style", /*style*/ ctx[3]);
8220
- attr(div0, "class", "select-icon svelte-t9ynyj");
8221
- attr(div1, "class", "select svelte-t9ynyj");
7913
+ attr(div0, "class", "select-icon svelte-iejizj");
7914
+ attr(div1, "class", "select svelte-iejizj");
8222
7915
  attr(div1, "style", /*styleVariables*/ ctx[2]);
8223
7916
  },
8224
7917
  m(target, anchor) {
@@ -8420,7 +8113,7 @@ class FormSelect extends SvelteComponent {
8420
8113
  /* src/components/FormCheckBoxes.svelte generated by Svelte v3.53.1 */
8421
8114
 
8422
8115
  function add_css$D(target) {
8423
- append_styles(target, "svelte-1p65cg8", ".check-boxes.svelte-1p65cg8.svelte-1p65cg8{display:flex;justify-content:space-between;flex-direction:column;width:100%;height:100%;gap:0px}.check-box.svelte-1p65cg8.svelte-1p65cg8{display:flex;align-items:center;position:relative;cursor:pointer}.check-box-input.svelte-1p65cg8.svelte-1p65cg8{width:var(--size);height:var(--size);margin:0;position:absolute;appearance:none;cursor:pointer}.check-box-check.svelte-1p65cg8.svelte-1p65cg8{display:inline-flex;background-color:var(--color-main);width:var(--size);height:var(--size);border-radius:calc(var(--size) / 4);justify-content:center;align-items:center;flex:none}.check-box-icon.svelte-1p65cg8.svelte-1p65cg8{display:inline-block;--icon-size:calc(var(--size) * 3 / 4);width:var(--icon-size);height:var(--icon-size)}.check-box-icon.svelte-1p65cg8.svelte-1p65cg8:after{content:'';display:block;box-sizing:border-box;width:45%;height:91%;transform:translate(60%, -8%) rotate(45deg);border-style:none solid solid none;border-width:2px;border-color:var(--color-sub)}.check-box-check._checked.svelte-1p65cg8.svelte-1p65cg8{background-color:var(--color-main-active)}.check-box-check._checked.svelte-1p65cg8 .check-box-icon.svelte-1p65cg8:after{border-color:var(--color-sub-active)}.check-box-text.svelte-1p65cg8.svelte-1p65cg8{margin-left:0.5em;color:#333;font-size:12px;line-height:1.5}");
8116
+ append_styles(target, "svelte-2pz1us", ".check-boxes.svelte-2pz1us.svelte-2pz1us{display:flex;justify-content:space-between;flex-direction:column;width:100%;height:100%;gap:0px}.check-box.svelte-2pz1us.svelte-2pz1us{display:flex;align-items:center;position:relative;cursor:pointer}.check-box-input.svelte-2pz1us.svelte-2pz1us{width:var(--size);height:var(--size);margin:0;position:absolute;appearance:none;cursor:pointer}.check-box-check.svelte-2pz1us.svelte-2pz1us{display:inline-flex;background-color:var(--color-main);width:var(--size);height:var(--size);border-radius:calc(var(--size) / 4);justify-content:center;align-items:center;flex:none}.check-box-icon.svelte-2pz1us.svelte-2pz1us{display:inline-block;--icon-size:calc(var(--size) * 3 / 4);width:var(--icon-size);height:var(--icon-size)}.check-box-icon.svelte-2pz1us.svelte-2pz1us:after{content:'';display:block;box-sizing:border-box;width:45%;height:91%;transform:translate(60%, -8%) rotate(45deg);border-style:none solid solid none;border-width:2px;border-color:var(--color-sub)}.check-box-check._checked.svelte-2pz1us.svelte-2pz1us{background-color:var(--color-main-active)}.check-box-check._checked.svelte-2pz1us .check-box-icon.svelte-2pz1us:after{border-color:var(--color-sub-active)}.check-box-text.svelte-2pz1us.svelte-2pz1us{margin-left:0.5em;color:#333;font-size:12px;line-height:1.5}");
8424
8117
  }
8425
8118
 
8426
8119
  function get_each_context$5(ctx, list, i) {
@@ -8482,19 +8175,19 @@ function create_each_block$5(ctx) {
8482
8175
  this.h();
8483
8176
  },
8484
8177
  h() {
8485
- attr(input, "class", "check-box-input svelte-1p65cg8");
8178
+ attr(input, "class", "check-box-input svelte-2pz1us");
8486
8179
  attr(input, "type", "checkbox");
8487
8180
  attr(input, "name", /*name*/ ctx[0]);
8488
8181
  input.checked = input_checked_value = /*isCheckedArray*/ ctx[4][/*i*/ ctx[19]];
8489
- attr(span0, "class", "check-box-icon svelte-1p65cg8");
8182
+ attr(span0, "class", "check-box-icon svelte-2pz1us");
8490
8183
 
8491
8184
  attr(span1, "class", span1_class_value = "" + (null_to_empty(`check-box-check${/*isCheckedArray*/ ctx[4][/*i*/ ctx[19]]
8492
8185
  ? ' _checked'
8493
- : ''}`) + " svelte-1p65cg8"));
8186
+ : ''}`) + " svelte-2pz1us"));
8494
8187
 
8495
- attr(span2, "class", "check-box-text svelte-1p65cg8");
8188
+ attr(span2, "class", "check-box-text svelte-2pz1us");
8496
8189
  attr(span2, "style", span2_style_value = `${/*_textStyle*/ ctx[2]} ${/*fontCss*/ ctx[6]}`);
8497
- attr(label, "class", "check-box svelte-1p65cg8");
8190
+ attr(label, "class", "check-box svelte-2pz1us");
8498
8191
  attr(label, "style", /*styleVariables*/ ctx[5]);
8499
8192
  },
8500
8193
  m(target, anchor) {
@@ -8526,7 +8219,7 @@ function create_each_block$5(ctx) {
8526
8219
 
8527
8220
  if (dirty & /*isCheckedArray*/ 16 && span1_class_value !== (span1_class_value = "" + (null_to_empty(`check-box-check${/*isCheckedArray*/ ctx[4][/*i*/ ctx[19]]
8528
8221
  ? ' _checked'
8529
- : ''}`) + " svelte-1p65cg8"))) {
8222
+ : ''}`) + " svelte-2pz1us"))) {
8530
8223
  attr(span1, "class", span1_class_value);
8531
8224
  }
8532
8225
 
@@ -8579,7 +8272,7 @@ function create_fragment$1b(ctx) {
8579
8272
  this.h();
8580
8273
  },
8581
8274
  h() {
8582
- attr(div, "class", "check-boxes svelte-1p65cg8");
8275
+ attr(div, "class", "check-boxes svelte-2pz1us");
8583
8276
  attr(div, "style", /*_layoutStyle*/ ctx[1]);
8584
8277
  },
8585
8278
  m(target, anchor) {
@@ -8754,7 +8447,7 @@ class FormCheckBoxes extends SvelteComponent {
8754
8447
  /* src/components/FormRatingButtonsNumber.svelte generated by Svelte v3.53.1 */
8755
8448
 
8756
8449
  function add_css$C(target) {
8757
- append_styles(target, "svelte-1iqf36p", ".rating-buttons.svelte-1iqf36p{display:flex;justify-content:space-between;align-items:center;width:100%;height:100%}.rating-button.svelte-1iqf36p{cursor:pointer;display:flex;justify-content:center;align-items:center;transition:background-color 0.2s, box-shadow 0.2s;appearance:none;background:none;border:none;margin:0;padding:0}");
8450
+ append_styles(target, "svelte-9idbf1", ".rating-buttons.svelte-9idbf1{display:flex;justify-content:space-between;align-items:center;width:100%;height:100%}.rating-button.svelte-9idbf1{cursor:pointer;display:flex;justify-content:center;align-items:center;transition:background-color 0.2s, box-shadow 0.2s;appearance:none;background:none;border:none;margin:0;padding:0}");
8758
8451
  }
8759
8452
 
8760
8453
  function get_each_context$4(ctx, list, i) {
@@ -8789,7 +8482,7 @@ function create_each_block$4(ctx) {
8789
8482
  this.h();
8790
8483
  },
8791
8484
  h() {
8792
- attr(button, "class", "rating-button svelte-1iqf36p");
8485
+ attr(button, "class", "rating-button svelte-9idbf1");
8793
8486
  attr(button, "style", button_style_value = /*getTextButtonStyle*/ ctx[5](/*i*/ ctx[14] === /*_value*/ ctx[2]));
8794
8487
  },
8795
8488
  m(target, anchor) {
@@ -8852,7 +8545,7 @@ function create_fragment$1a(ctx) {
8852
8545
  this.h();
8853
8546
  },
8854
8547
  h() {
8855
- attr(div, "class", "rating-buttons svelte-1iqf36p");
8548
+ attr(div, "class", "rating-buttons svelte-9idbf1");
8856
8549
  },
8857
8550
  m(target, anchor) {
8858
8551
  insert_hydration(target, div, anchor);
@@ -8996,7 +8689,7 @@ class FormRatingButtonsNumber extends SvelteComponent {
8996
8689
  /* src/components/FormRatingButtonsFace.svelte generated by Svelte v3.53.1 */
8997
8690
 
8998
8691
  function add_css$B(target) {
8999
- append_styles(target, "svelte-tbunko", ".rating-buttons.svelte-tbunko{display:flex;justify-content:space-between;align-items:center;width:100%;height:100%}.rating-button.svelte-tbunko{appearance:none;background:none;border:none;margin:0;padding:0}.rating-button-image.svelte-tbunko{cursor:pointer;user-select:none;-webkit-user-drag:none;width:100%;height:100%}.rating-button-image.svelte-tbunko:not(._active){filter:grayscale(100%)}");
8692
+ append_styles(target, "svelte-1b5dvzw", ".rating-buttons.svelte-1b5dvzw{display:flex;justify-content:space-between;align-items:center;width:100%;height:100%}.rating-button.svelte-1b5dvzw{appearance:none;background:none;border:none;margin:0;padding:0}.rating-button-image.svelte-1b5dvzw{cursor:pointer;user-select:none;-webkit-user-drag:none;width:100%;height:100%}.rating-button-image.svelte-1b5dvzw:not(._active){filter:grayscale(100%)}");
9000
8693
  }
9001
8694
 
9002
8695
  function get_each_context$3(ctx, list, i) {
@@ -9032,9 +8725,9 @@ function create_each_block$3(ctx) {
9032
8725
  },
9033
8726
  h() {
9034
8727
  if (!src_url_equal(img.src, img_src_value = /*ICONS*/ ctx[2][/*i*/ ctx[10]])) attr(img, "src", img_src_value);
9035
- attr(img, "class", img_class_value = "" + (null_to_empty(`rating-button-image${/*i*/ ctx[10] === /*_value*/ ctx[1] ? ' _active' : ''}`) + " svelte-tbunko"));
8728
+ attr(img, "class", img_class_value = "" + (null_to_empty(`rating-button-image${/*i*/ ctx[10] === /*_value*/ ctx[1] ? ' _active' : ''}`) + " svelte-1b5dvzw"));
9036
8729
  attr(img, "alt", "rate" + /*i*/ ctx[10]);
9037
- attr(button, "class", "rating-button svelte-tbunko");
8730
+ attr(button, "class", "rating-button svelte-1b5dvzw");
9038
8731
  attr(button, "style", /*buttonStyle*/ ctx[0]);
9039
8732
  },
9040
8733
  m(target, anchor) {
@@ -9050,7 +8743,7 @@ function create_each_block$3(ctx) {
9050
8743
  p(new_ctx, dirty) {
9051
8744
  ctx = new_ctx;
9052
8745
 
9053
- if (dirty & /*_value*/ 2 && img_class_value !== (img_class_value = "" + (null_to_empty(`rating-button-image${/*i*/ ctx[10] === /*_value*/ ctx[1] ? ' _active' : ''}`) + " svelte-tbunko"))) {
8746
+ if (dirty & /*_value*/ 2 && img_class_value !== (img_class_value = "" + (null_to_empty(`rating-button-image${/*i*/ ctx[10] === /*_value*/ ctx[1] ? ' _active' : ''}`) + " svelte-1b5dvzw"))) {
9054
8747
  attr(img, "class", img_class_value);
9055
8748
  }
9056
8749
 
@@ -9097,7 +8790,7 @@ function create_fragment$19(ctx) {
9097
8790
  this.h();
9098
8791
  },
9099
8792
  h() {
9100
- attr(div, "class", "rating-buttons svelte-tbunko");
8793
+ attr(div, "class", "rating-buttons svelte-1b5dvzw");
9101
8794
  },
9102
8795
  m(target, anchor) {
9103
8796
  insert_hydration(target, div, anchor);
@@ -9205,7 +8898,7 @@ class FormRatingButtonsFace extends SvelteComponent {
9205
8898
  /* src/components/FormIdentifyInput.svelte generated by Svelte v3.53.1 */
9206
8899
 
9207
8900
  function add_css$A(target) {
9208
- append_styles(target, "svelte-h8fqwx", ".input-wrapper.svelte-h8fqwx{display:flex;align-items:center;width:100%;height:100%}.input.svelte-h8fqwx{width:100%;height:100%;box-sizing:border-box;resize:none;appearance:none;background-color:#fff;border:solid 2px #ccc;border-radius:6px;padding:6px 10px 6px 10px;font-size:12px;line-height:1.5}.input.svelte-h8fqwx::placeholder{color:var(--placeholder-color)}.input.svelte-h8fqwx:focus{outline:none;border-width:var(--focus-border-width) !important;border-color:var(--focus-border-color) !important;border-style:var(--focus-border-style) !important}.input._error.svelte-h8fqwx{outline:none;border-width:var(--error-border-width) !important;border-color:var(--error-border-color) !important;border-style:var(--error-border-style) !important}");
8901
+ append_styles(target, "svelte-f14zo5", ".input-wrapper.svelte-f14zo5{display:flex;align-items:center;width:100%;height:100%}.input.svelte-f14zo5{width:100%;height:100%;box-sizing:border-box;resize:none;appearance:none;background-color:#fff;border:solid 2px #ccc;border-radius:6px;padding:6px 10px 6px 10px;font-size:12px;line-height:1.5}.input.svelte-f14zo5::placeholder{color:var(--placeholder-color)}.input.svelte-f14zo5:focus{outline:none;border-width:var(--focus-border-width) !important;border-color:var(--focus-border-color) !important;border-style:var(--focus-border-style) !important}.input._error.svelte-f14zo5{outline:none;border-width:var(--error-border-width) !important;border-color:var(--error-border-color) !important;border-style:var(--error-border-style) !important}");
9209
8902
  }
9210
8903
 
9211
8904
  function create_fragment$18(ctx) {
@@ -9236,13 +8929,13 @@ function create_fragment$18(ctx) {
9236
8929
  this.h();
9237
8930
  },
9238
8931
  h() {
9239
- attr(input, "class", input_class_value = "" + (null_to_empty(['input', /*isValidForUI*/ ctx[3] ? '' : '_error'].join(' ')) + " svelte-h8fqwx"));
8932
+ attr(input, "class", input_class_value = "" + (null_to_empty(['input', /*isValidForUI*/ ctx[3] ? '' : '_error'].join(' ')) + " svelte-f14zo5"));
9240
8933
  attr(input, "type", "text");
9241
8934
  input.value = /*$value*/ ctx[2];
9242
8935
  input.required = /*required*/ ctx[0];
9243
8936
  attr(input, "placeholder", /*placeholder*/ ctx[1]);
9244
8937
  attr(input, "style", /*style*/ ctx[5]);
9245
- attr(div, "class", "input-wrapper svelte-h8fqwx");
8938
+ attr(div, "class", "input-wrapper svelte-f14zo5");
9246
8939
  attr(div, "style", /*styleVariables*/ ctx[4]);
9247
8940
  },
9248
8941
  m(target, anchor) {
@@ -9255,7 +8948,7 @@ function create_fragment$18(ctx) {
9255
8948
  }
9256
8949
  },
9257
8950
  p(ctx, [dirty]) {
9258
- if (dirty & /*isValidForUI*/ 8 && input_class_value !== (input_class_value = "" + (null_to_empty(['input', /*isValidForUI*/ ctx[3] ? '' : '_error'].join(' ')) + " svelte-h8fqwx"))) {
8951
+ if (dirty & /*isValidForUI*/ 8 && input_class_value !== (input_class_value = "" + (null_to_empty(['input', /*isValidForUI*/ ctx[3] ? '' : '_error'].join(' ')) + " svelte-f14zo5"))) {
9259
8952
  attr(input, "class", input_class_value);
9260
8953
  }
9261
8954
 
@@ -9443,7 +9136,7 @@ class FormIdentifyInput extends SvelteComponent {
9443
9136
  /* src/components/FormIdentifyChoices.svelte generated by Svelte v3.53.1 */
9444
9137
 
9445
9138
  function add_css$z(target) {
9446
- append_styles(target, "svelte-8zbmyo", ".radio-buttons.svelte-8zbmyo{display:flex;justify-content:space-between;flex-direction:column;width:100%;height:100%}.radio-button.svelte-8zbmyo{cursor:pointer;display:flex;align-items:center}.radio-button-input.svelte-8zbmyo{appearance:none;margin:0;box-sizing:border-box;border-radius:var(--size);position:relative;width:var(--size);height:var(--size);border:solid calc(var(--size) / 3) var(--color-main);background-color:var(--color-sub);cursor:pointer;flex:none}.radio-button-input.svelte-8zbmyo:checked{border:solid calc(var(--size) / 3) var(--color-main-active);background-color:var(--color-sub-active);box-shadow:0px 1px 8px 2px rgba(18, 160, 160, 0.08), 0px 1px 4px -1px rgba(18, 160, 160, 0.24)}.radio-button-text.svelte-8zbmyo{margin-left:0.5em}");
9139
+ append_styles(target, "svelte-pzrwlo", ".radio-buttons.svelte-pzrwlo{display:flex;justify-content:space-between;flex-direction:column;width:100%;height:100%}.radio-button.svelte-pzrwlo{cursor:pointer;display:flex;align-items:center}.radio-button-input.svelte-pzrwlo{appearance:none;margin:0;box-sizing:border-box;border-radius:var(--size);position:relative;width:var(--size);height:var(--size);border:solid calc(var(--size) / 3) var(--color-main);background-color:var(--color-sub);cursor:pointer;flex:none}.radio-button-input.svelte-pzrwlo:checked{border:solid calc(var(--size) / 3) var(--color-main-active);background-color:var(--color-sub-active);box-shadow:0px 1px 8px 2px rgba(18, 160, 160, 0.08), 0px 1px 4px -1px rgba(18, 160, 160, 0.24)}.radio-button-text.svelte-pzrwlo{margin-left:0.5em}");
9447
9140
  }
9448
9141
 
9449
9142
  function create_fragment$17(ctx) {
@@ -9509,20 +9202,20 @@ function create_fragment$17(ctx) {
9509
9202
  },
9510
9203
  h() {
9511
9204
  attr(input0, "type", "radio");
9512
- attr(input0, "class", "radio-button-input svelte-8zbmyo");
9205
+ attr(input0, "class", "radio-button-input svelte-pzrwlo");
9513
9206
  attr(input0, "style", /*buttonStyle*/ ctx[2]);
9514
9207
  input0.checked = input0_checked_value = /*$value*/ ctx[3] === true;
9515
- attr(span0, "class", "radio-button-text svelte-8zbmyo");
9208
+ attr(span0, "class", "radio-button-text svelte-pzrwlo");
9516
9209
  attr(span0, "style", span0_style_value = `${/*_textStyle*/ ctx[1]} ${/*fontCss*/ ctx[4]}`);
9517
- attr(label0, "class", "radio-button svelte-8zbmyo");
9210
+ attr(label0, "class", "radio-button svelte-pzrwlo");
9518
9211
  attr(input1, "type", "radio");
9519
- attr(input1, "class", "radio-button-input svelte-8zbmyo");
9212
+ attr(input1, "class", "radio-button-input svelte-pzrwlo");
9520
9213
  attr(input1, "style", /*buttonStyle*/ ctx[2]);
9521
9214
  input1.checked = input1_checked_value = /*$value*/ ctx[3] === false;
9522
- attr(span1, "class", "radio-button-text svelte-8zbmyo");
9215
+ attr(span1, "class", "radio-button-text svelte-pzrwlo");
9523
9216
  attr(span1, "style", span1_style_value = `${/*_textStyle*/ ctx[1]} ${/*fontCss*/ ctx[4]}`);
9524
- attr(label1, "class", "radio-button svelte-8zbmyo");
9525
- attr(div, "class", "radio-buttons svelte-8zbmyo");
9217
+ attr(label1, "class", "radio-button svelte-pzrwlo");
9218
+ attr(div, "class", "radio-buttons svelte-pzrwlo");
9526
9219
  attr(div, "style", /*_layoutStyle*/ ctx[0]);
9527
9220
  },
9528
9221
  m(target, anchor) {
@@ -9690,7 +9383,7 @@ class FormIdentifyChoices extends SvelteComponent {
9690
9383
  /* src/components/Slide.svelte generated by Svelte v3.53.1 */
9691
9384
 
9692
9385
  function add_css$y(target) {
9693
- append_styles(target, "svelte-ji1fh", ".root.svelte-ji1fh{width:100%;height:100%;position:relative}.container.svelte-ji1fh{width:100%;height:100%;position:relative;overflow:hidden;box-sizing:border-box;border-width:0px;border-style:solid;border-color:#000000}.slide.svelte-ji1fh{height:100%;position:absolute;display:flex}.transition.svelte-ji1fh{transition:left 0.2s cubic-bezier(.04,.67,.53,.96)}.item.svelte-ji1fh{height:100%;flex:none}.prev-button-container.svelte-ji1fh,.next-button-container.svelte-ji1fh{top:50%;height:0;position:absolute;display:flex;overflow:visible;align-items:center}.prev-button-container.svelte-ji1fh{left:0}.next-button-container.svelte-ji1fh{right:0}.move-button.svelte-ji1fh{display:flex;align-items:center;justify-content:center;cursor:pointer;box-sizing:border-box;border:none;background:none;margin:0;padding:0}.navigation.svelte-ji1fh{position:absolute;width:0;left:50%;bottom:0;display:flex;justify-content:center;overflow:visible}.navigation-item.svelte-ji1fh{flex-shrink:0;cursor:pointer;border:none;background:none;margin:0;padding:0;appearance:none}.navigation-item-inner.circle.svelte-ji1fh{border-radius:51%}");
9386
+ append_styles(target, "svelte-1qfq79t", ".root.svelte-1qfq79t{width:100%;height:100%;position:relative}.container.svelte-1qfq79t{width:100%;height:100%;position:relative;overflow:hidden;box-sizing:border-box;border-width:0px;border-style:solid;border-color:#000000}.slide.svelte-1qfq79t{height:100%;position:absolute;display:flex}.transition.svelte-1qfq79t{transition:left 0.2s cubic-bezier(.04,.67,.53,.96)}.item.svelte-1qfq79t{height:100%;flex:none}.prev-button-container.svelte-1qfq79t,.next-button-container.svelte-1qfq79t{top:50%;height:0;position:absolute;display:flex;overflow:visible;align-items:center}.prev-button-container.svelte-1qfq79t{left:0}.next-button-container.svelte-1qfq79t{right:0}.move-button.svelte-1qfq79t{display:flex;align-items:center;justify-content:center;cursor:pointer;box-sizing:border-box;border:none;background:none;margin:0;padding:0}.navigation.svelte-1qfq79t{position:absolute;width:0;left:50%;bottom:0;display:flex;justify-content:center;overflow:visible}.navigation-item.svelte-1qfq79t{flex-shrink:0;cursor:pointer;border:none;background:none;margin:0;padding:0;appearance:none}.navigation-item-inner.circle.svelte-1qfq79t{border-radius:51%}");
9694
9387
  }
9695
9388
 
9696
9389
  function get_each_context$2(ctx, list, i) {
@@ -9736,9 +9429,9 @@ function create_if_block_1$2(ctx) {
9736
9429
  attr(svg, "viewBox", "0 0 10 16");
9737
9430
  attr(svg, "xmlns", "http://www.w3.org/2000/svg");
9738
9431
  attr(svg, "style", /*prevIconStyle*/ ctx[10]);
9739
- attr(button, "class", "move-button svelte-ji1fh");
9432
+ attr(button, "class", "move-button svelte-1qfq79t");
9740
9433
  attr(button, "style", /*_prevButtonContainerStyle*/ ctx[9]);
9741
- attr(div, "class", "prev-button-container svelte-ji1fh");
9434
+ attr(div, "class", "prev-button-container svelte-1qfq79t");
9742
9435
  },
9743
9436
  m(target, anchor) {
9744
9437
  insert_hydration(target, div, anchor);
@@ -9804,9 +9497,9 @@ function create_if_block$b(ctx) {
9804
9497
  attr(svg, "viewBox", "0 0 10 16");
9805
9498
  attr(svg, "xmlns", "http://www.w3.org/2000/svg");
9806
9499
  attr(svg, "style", /*nextIconStyle*/ ctx[8]);
9807
- attr(button, "class", "move-button svelte-ji1fh");
9500
+ attr(button, "class", "move-button svelte-1qfq79t");
9808
9501
  attr(button, "style", /*_nextButtonContainerStyle*/ ctx[7]);
9809
- attr(div, "class", "next-button-container svelte-ji1fh");
9502
+ attr(div, "class", "next-button-container svelte-1qfq79t");
9810
9503
  },
9811
9504
  m(target, anchor) {
9812
9505
  insert_hydration(target, div, anchor);
@@ -9866,9 +9559,9 @@ function create_each_block$2(ctx) {
9866
9559
  this.h();
9867
9560
  },
9868
9561
  h() {
9869
- attr(div, "class", "navigation-item-inner circle svelte-ji1fh");
9562
+ attr(div, "class", "navigation-item-inner circle svelte-1qfq79t");
9870
9563
  attr(div, "style", div_style_value = /*getNavigationItemInnerStyle*/ ctx[5](/*i*/ ctx[63]));
9871
- attr(button, "class", "navigation-item svelte-ji1fh");
9564
+ attr(button, "class", "navigation-item svelte-1qfq79t");
9872
9565
  attr(button, "style", /*navigationItemStyle*/ ctx[6]);
9873
9566
  },
9874
9567
  m(target, anchor) {
@@ -9974,14 +9667,14 @@ function create_fragment$16(ctx) {
9974
9667
  this.h();
9975
9668
  },
9976
9669
  h() {
9977
- attr(div0, "class", div0_class_value = "" + (null_to_empty(/*slideClass*/ ctx[13]) + " svelte-ji1fh"));
9670
+ attr(div0, "class", div0_class_value = "" + (null_to_empty(/*slideClass*/ ctx[13]) + " svelte-1qfq79t"));
9978
9671
  attr(div0, "style", /*slideStyle*/ ctx[14]);
9979
- attr(div1, "class", "container svelte-ji1fh");
9672
+ attr(div1, "class", "container svelte-1qfq79t");
9980
9673
  attr(div1, "style", /*_style*/ ctx[0]);
9981
- attr(div2, "class", "navigation svelte-ji1fh");
9674
+ attr(div2, "class", "navigation svelte-1qfq79t");
9982
9675
  attr(div2, "style", /*navigationStyle*/ ctx[4]);
9983
9676
  set_attributes(div3, div3_data);
9984
- toggle_class(div3, "svelte-ji1fh", true);
9677
+ toggle_class(div3, "svelte-1qfq79t", true);
9985
9678
  },
9986
9679
  m(target, anchor) {
9987
9680
  insert_hydration(target, div3, anchor);
@@ -10023,7 +9716,7 @@ function create_fragment$16(ctx) {
10023
9716
  }
10024
9717
  }
10025
9718
 
10026
- if (!current || dirty[0] & /*slideClass*/ 8192 && div0_class_value !== (div0_class_value = "" + (null_to_empty(/*slideClass*/ ctx[13]) + " svelte-ji1fh"))) {
9719
+ if (!current || dirty[0] & /*slideClass*/ 8192 && div0_class_value !== (div0_class_value = "" + (null_to_empty(/*slideClass*/ ctx[13]) + " svelte-1qfq79t"))) {
10027
9720
  attr(div0, "class", div0_class_value);
10028
9721
  }
10029
9722
 
@@ -10089,7 +9782,7 @@ function create_fragment$16(ctx) {
10089
9782
  }
10090
9783
 
10091
9784
  set_attributes(div3, div3_data = get_spread_update(div3_levels, [{ class: "root" }, dataAttrStopPropagation('click')]));
10092
- toggle_class(div3, "svelte-ji1fh", true);
9785
+ toggle_class(div3, "svelte-1qfq79t", true);
10093
9786
  },
10094
9787
  i(local) {
10095
9788
  if (current) return;
@@ -10601,7 +10294,7 @@ class Slide extends SvelteComponent {
10601
10294
  /* src/components/SlideItem.svelte generated by Svelte v3.53.1 */
10602
10295
 
10603
10296
  function add_css$x(target) {
10604
- append_styles(target, "svelte-9ygf1w", ".item.svelte-9ygf1w{height:100%;flex:none;position:relative}.item.svelte-9ygf1w img{user-select:none;-webkit-user-drag:none}.item-inner.svelte-9ygf1w{position:absolute;inset:0;border-width:0px;border-style:solid;border-color:#000000;cursor:default;overflow:hidden}");
10297
+ append_styles(target, "svelte-1rv0qgo", ".item.svelte-1rv0qgo{height:100%;flex:none;position:relative}.item.svelte-1rv0qgo img{user-select:none;-webkit-user-drag:none}.item-inner.svelte-1rv0qgo{position:absolute;inset:0;border-width:0px;border-style:solid;border-color:#000000;cursor:default;overflow:hidden}");
10605
10298
  }
10606
10299
 
10607
10300
  function create_fragment$15(ctx) {
@@ -10629,9 +10322,9 @@ function create_fragment$15(ctx) {
10629
10322
  this.h();
10630
10323
  },
10631
10324
  h() {
10632
- attr(div0, "class", "item-inner svelte-9ygf1w");
10325
+ attr(div0, "class", "item-inner svelte-1rv0qgo");
10633
10326
  attr(div0, "style", /*_style*/ ctx[0]);
10634
- attr(div1, "class", "item svelte-9ygf1w");
10327
+ attr(div1, "class", "item svelte-1rv0qgo");
10635
10328
  attr(div1, "style", /*itemStyle*/ ctx[1]);
10636
10329
  },
10637
10330
  m(target, anchor) {
@@ -10757,7 +10450,7 @@ class SlideItem extends SvelteComponent {
10757
10450
  /* src/components/Countdown.svelte generated by Svelte v3.53.1 */
10758
10451
 
10759
10452
  function add_css$w(target) {
10760
- append_styles(target, "svelte-rroxiz", ".countdown.svelte-rroxiz{position:relative;width:100%;height:100%}.countdown-inner.svelte-rroxiz{position:absolute;inset:0;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}");
10453
+ append_styles(target, "svelte-t87l6f", ".countdown.svelte-t87l6f{position:relative;width:100%;height:100%}.countdown-inner.svelte-t87l6f{position:absolute;inset:0;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}");
10761
10454
  }
10762
10455
 
10763
10456
  const get_default_slot_changes$1 = dirty => ({ countdown: dirty & /*countdown*/ 2 });
@@ -10788,9 +10481,9 @@ function create_fragment$14(ctx) {
10788
10481
  this.h();
10789
10482
  },
10790
10483
  h() {
10791
- attr(div0, "class", "countdown-inner svelte-rroxiz");
10484
+ attr(div0, "class", "countdown-inner svelte-t87l6f");
10792
10485
  attr(div0, "style", /*_style*/ ctx[0]);
10793
- attr(div1, "class", "countdown svelte-rroxiz");
10486
+ attr(div1, "class", "countdown svelte-t87l6f");
10794
10487
  },
10795
10488
  m(target, anchor) {
10796
10489
  insert_hydration(target, div1, anchor);
@@ -10920,7 +10613,7 @@ class Countdown extends SvelteComponent {
10920
10613
  /* src/components/Box.svelte generated by Svelte v3.53.1 */
10921
10614
 
10922
10615
  function add_css$v(target) {
10923
- append_styles(target, "svelte-1ccydfy", ".box.svelte-1ccydfy{position:relative;width:100%;height:100%}.box.svelte-1ccydfy > .button{position:absolute;inset:0;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}");
10616
+ append_styles(target, "svelte-1c91vpe", ".box.svelte-1c91vpe{position:relative;width:100%;height:100%}.box.svelte-1c91vpe > .button{position:absolute;inset:0;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}");
10924
10617
  }
10925
10618
 
10926
10619
  // (24:2) <Button {onClick} style={_style} {eventName}>
@@ -11003,7 +10696,7 @@ function create_fragment$13(ctx) {
11003
10696
  this.h();
11004
10697
  },
11005
10698
  h() {
11006
- attr(div, "class", "box svelte-1ccydfy");
10699
+ attr(div, "class", "box svelte-1c91vpe");
11007
10700
  },
11008
10701
  m(target, anchor) {
11009
10702
  insert_hydration(target, div, anchor);
@@ -11064,7 +10757,7 @@ class Box extends SvelteComponent {
11064
10757
  /* src/components/IconElement.svelte generated by Svelte v3.53.1 */
11065
10758
 
11066
10759
  function add_css$u(target) {
11067
- append_styles(target, "svelte-1mkvcuo", ".icon.svelte-1mkvcuo{display:flex;justify-content:center;align-items:center;width:100%;height:100%}.icon.svelte-1mkvcuo > .button{display:flex;position:relative;width:100%;height:100%;max-width:100%;max-height:100%;justify-content:center;align-items:center;white-space:nowrap;box-sizing:border-box;overflow:hidden}.icon.svelte-1mkvcuo > .button._disabled{cursor:not-allowed !important;opacity:0.2}.icon.svelte-1mkvcuo svg{width:var(--width);height:var(--height);color:var(--color);stroke:var(--stroke);fill:var(--fill)}");
10760
+ append_styles(target, "svelte-1mk6wi4", ".icon.svelte-1mk6wi4{display:flex;justify-content:center;align-items:center;width:100%;height:100%}.icon.svelte-1mk6wi4 > .button{display:flex;position:relative;width:100%;height:100%;max-width:100%;max-height:100%;justify-content:center;align-items:center;white-space:nowrap;box-sizing:border-box;overflow:hidden}.icon.svelte-1mk6wi4 > .button._disabled{cursor:not-allowed !important;opacity:0.2}.icon.svelte-1mk6wi4 svg{width:var(--width);height:var(--height);color:var(--color);stroke:var(--stroke);fill:var(--fill)}");
11068
10761
  }
11069
10762
 
11070
10763
  // (56:4) {#if svg}
@@ -11168,7 +10861,7 @@ function create_fragment$12(ctx) {
11168
10861
  this.h();
11169
10862
  },
11170
10863
  h() {
11171
- attr(div, "class", "icon svelte-1mkvcuo");
10864
+ attr(div, "class", "icon svelte-1mk6wi4");
11172
10865
  },
11173
10866
  m(target, anchor) {
11174
10867
  insert_hydration(target, div, anchor);
@@ -11277,7 +10970,7 @@ class IconElement extends SvelteComponent {
11277
10970
  /* src/components/CodeElement.svelte generated by Svelte v3.53.1 */
11278
10971
 
11279
10972
  function add_css$t(target) {
11280
- append_styles(target, "svelte-ymsb9l", ".codeElement.svelte-ymsb9l{box-sizing:border-box;margin:0px;padding:0px;width:100%;height:100%}");
10973
+ append_styles(target, "svelte-1ng2n51", ".codeElement.svelte-1ng2n51{box-sizing:border-box;margin:0px;padding:0px;width:100%;height:100%}");
11281
10974
  }
11282
10975
 
11283
10976
  function create_fragment$11(ctx) {
@@ -11313,7 +11006,7 @@ function create_fragment$11(ctx) {
11313
11006
  this.h();
11314
11007
  },
11315
11008
  h() {
11316
- attr(div, "class", "codeElement svelte-ymsb9l");
11009
+ attr(div, "class", "codeElement svelte-1ng2n51");
11317
11010
  attr(div, "style", /*style*/ ctx[3]);
11318
11011
  },
11319
11012
  m(target, anchor) {
@@ -11402,7 +11095,7 @@ class CodeElement extends SvelteComponent {
11402
11095
  /* src/components/Flex.svelte generated by Svelte v3.53.1 */
11403
11096
 
11404
11097
  function add_css$s(target) {
11405
- append_styles(target, "svelte-1e71ejc", ".flex.svelte-1e71ejc{display:flex}");
11098
+ append_styles(target, "svelte-9v2qdg", ".flex.svelte-9v2qdg{display:flex}");
11406
11099
  }
11407
11100
 
11408
11101
  function create_fragment$10(ctx) {
@@ -11426,7 +11119,7 @@ function create_fragment$10(ctx) {
11426
11119
  this.h();
11427
11120
  },
11428
11121
  h() {
11429
- attr(div, "class", "flex svelte-1e71ejc");
11122
+ attr(div, "class", "flex svelte-9v2qdg");
11430
11123
  attr(div, "style", div_style_value = "width:" + /*width*/ ctx[1] + "; height:" + /*height*/ ctx[2] + "; flex-direction:" + /*direction*/ ctx[0] + "; " + /*_style*/ ctx[3]);
11431
11124
  },
11432
11125
  m(target, anchor) {
@@ -11523,7 +11216,7 @@ class Flex extends SvelteComponent {
11523
11216
  /* src/components/FlexItem.svelte generated by Svelte v3.53.1 */
11524
11217
 
11525
11218
  function add_css$r(target) {
11526
- append_styles(target, "svelte-1p0bk1x", ".flex-item.svelte-1p0bk1x{max-width:100%;max-height:100%;position:relative;isolation:isolate}");
11219
+ append_styles(target, "svelte-164ah5d", ".flex-item.svelte-164ah5d{max-width:100%;max-height:100%;position:relative;isolation:isolate}");
11527
11220
  }
11528
11221
 
11529
11222
  function create_fragment$$(ctx) {
@@ -11546,7 +11239,7 @@ function create_fragment$$(ctx) {
11546
11239
  this.h();
11547
11240
  },
11548
11241
  h() {
11549
- attr(div, "class", "flex-item svelte-1p0bk1x");
11242
+ attr(div, "class", "flex-item svelte-164ah5d");
11550
11243
  attr(div, "style", /*style*/ ctx[0]);
11551
11244
  },
11552
11245
  m(target, anchor) {
@@ -11966,7 +11659,7 @@ class GridModalState extends SvelteComponent {
11966
11659
  /* src/components/TextBlock.svelte generated by Svelte v3.53.1 */
11967
11660
 
11968
11661
  function add_css$q(target) {
11969
- append_styles(target, "svelte-15pej1m", ".text-block.svelte-15pej1m.svelte-15pej1m{display:flex;position:relative;width:100%;height:100%;box-sizing:border-box;white-space:pre-wrap;overflow:hidden}.text-block-inner.svelte-15pej1m.svelte-15pej1m{width:100%;height:auto}.text-direction-vertical.svelte-15pej1m.svelte-15pej1m{writing-mode:vertical-rl}.text-direction-vertical.svelte-15pej1m .text-block-inner.svelte-15pej1m{width:auto;height:100%}");
11662
+ append_styles(target, "svelte-akic2e", ".text-block.svelte-akic2e.svelte-akic2e{display:flex;position:relative;width:100%;height:100%;box-sizing:border-box;white-space:pre-wrap;overflow:hidden}.text-block-inner.svelte-akic2e.svelte-akic2e{width:100%;height:auto}.text-direction-vertical.svelte-akic2e.svelte-akic2e{writing-mode:vertical-rl}.text-direction-vertical.svelte-akic2e .text-block-inner.svelte-akic2e{width:auto;height:100%}");
11970
11663
  }
11971
11664
 
11972
11665
  function create_fragment$Z(ctx) {
@@ -11995,8 +11688,8 @@ function create_fragment$Z(ctx) {
11995
11688
  this.h();
11996
11689
  },
11997
11690
  h() {
11998
- attr(div0, "class", "text-block-inner svelte-15pej1m");
11999
- attr(div1, "class", div1_class_value = "" + (null_to_empty(`text-block text-direction-${/*textDirection*/ ctx[1]}`) + " svelte-15pej1m"));
11691
+ attr(div0, "class", "text-block-inner svelte-akic2e");
11692
+ attr(div1, "class", div1_class_value = "" + (null_to_empty(`text-block text-direction-${/*textDirection*/ ctx[1]}`) + " svelte-akic2e"));
12000
11693
  attr(div1, "style", /*style*/ ctx[2]);
12001
11694
  },
12002
11695
  m(target, anchor) {
@@ -12010,7 +11703,7 @@ function create_fragment$Z(ctx) {
12010
11703
  if (dirty & /*text*/ 1) rendertext_changes.text = /*text*/ ctx[0];
12011
11704
  rendertext.$set(rendertext_changes);
12012
11705
 
12013
- if (!current || dirty & /*textDirection*/ 2 && div1_class_value !== (div1_class_value = "" + (null_to_empty(`text-block text-direction-${/*textDirection*/ ctx[1]}`) + " svelte-15pej1m"))) {
11706
+ if (!current || dirty & /*textDirection*/ 2 && div1_class_value !== (div1_class_value = "" + (null_to_empty(`text-block text-direction-${/*textDirection*/ ctx[1]}`) + " svelte-akic2e"))) {
12014
11707
  attr(div1, "class", div1_class_value);
12015
11708
  }
12016
11709
 
@@ -12088,7 +11781,7 @@ class TextBlock extends SvelteComponent {
12088
11781
  /* src/components/TextButtonBlock.svelte generated by Svelte v3.53.1 */
12089
11782
 
12090
11783
  function add_css$p(target) {
12091
- append_styles(target, "svelte-ff0k6r", ".text-button-block.svelte-ff0k6r{width:100%;height:100%;background-color:#000000;border-radius:4px}.text-button.svelte-ff0k6r{display:flex;width:100%;height:100%;background-color:transparent;border:none;box-shadow:transparent;box-sizing:border-box;cursor:pointer;transition:box-shadow 0.2s;color:#ffffff;font-size:14px;font-weight:bold;justify-content:center;align-items:center;padding:1px 6px 1px 6px;line-height:1.5}.text-button.svelte-ff0k6r:active{box-shadow:inset 0 0 100px 100px rgba(0, 0, 0, 0.3)}.text-button.svelte-ff0k6r:hover{box-shadow:inset 0 0 100px 100px rgba(255, 255, 255, 0.3)}");
11784
+ append_styles(target, "svelte-1c34p4n", ".text-button-block.svelte-1c34p4n{width:100%;height:100%;background-color:#000000;border-radius:4px}.text-button.svelte-1c34p4n{display:flex;width:100%;height:100%;background-color:transparent;border:none;box-shadow:transparent;box-sizing:border-box;cursor:pointer;transition:box-shadow 0.2s;color:#ffffff;font-size:14px;font-weight:bold;justify-content:center;align-items:center;padding:1px 6px 1px 6px;line-height:1.5}.text-button.svelte-1c34p4n:active{box-shadow:inset 0 0 100px 100px rgba(0, 0, 0, 0.3)}.text-button.svelte-1c34p4n:hover{box-shadow:inset 0 0 100px 100px rgba(255, 255, 255, 0.3)}");
12092
11785
  }
12093
11786
 
12094
11787
  function create_fragment$Y(ctx) {
@@ -12118,9 +11811,9 @@ function create_fragment$Y(ctx) {
12118
11811
  this.h();
12119
11812
  },
12120
11813
  h() {
12121
- attr(button, "class", "text-button svelte-ff0k6r");
11814
+ attr(button, "class", "text-button svelte-1c34p4n");
12122
11815
  attr(button, "style", /*_buttonStyle*/ ctx[1]);
12123
- attr(div, "class", "text-button-block svelte-ff0k6r");
11816
+ attr(div, "class", "text-button-block svelte-1c34p4n");
12124
11817
  attr(div, "style", /*_style*/ ctx[2]);
12125
11818
  },
12126
11819
  m(target, anchor) {
@@ -12226,7 +11919,7 @@ class TextButtonBlock extends SvelteComponent {
12226
11919
  /* src/components/ImageBlock.svelte generated by Svelte v3.53.1 */
12227
11920
 
12228
11921
  function add_css$o(target) {
12229
- append_styles(target, "svelte-1pdw891", ".image-block.svelte-1pdw891{display:flex;position:relative;width:100%;height:100%;max-width:100%;max-height:100%;justify-content:center;align-items:center;white-space:nowrap;box-sizing:border-box;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}.image.svelte-1pdw891{width:100%;height:100%}.transport.svelte-1pdw891:hover,.transport.svelte-1pdw891:focus{opacity:0.75;box-shadow:0 5px 16px rgba(0, 0, 0, 0.1), 0 8px 28px rgba(0, 0, 0, 0.16)}");
11922
+ append_styles(target, "svelte-1jus6sx", ".image-block.svelte-1jus6sx{display:flex;position:relative;width:100%;height:100%;max-width:100%;max-height:100%;justify-content:center;align-items:center;white-space:nowrap;box-sizing:border-box;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}.image.svelte-1jus6sx{width:100%;height:100%}.transport.svelte-1jus6sx:hover,.transport.svelte-1jus6sx:focus{opacity:0.75;box-shadow:0 5px 16px rgba(0, 0, 0, 0.1), 0 8px 28px rgba(0, 0, 0, 0.16)}");
12230
11923
  }
12231
11924
 
12232
11925
  function create_fragment$X(ctx) {
@@ -12262,14 +11955,14 @@ function create_fragment$X(ctx) {
12262
11955
  this.h();
12263
11956
  },
12264
11957
  h() {
12265
- attr(img, "class", "image svelte-1pdw891");
11958
+ attr(img, "class", "image svelte-1jus6sx");
12266
11959
  attr(img, "loading", "lazy");
12267
11960
  attr(img, "width", "auto");
12268
11961
  attr(img, "height", "auto");
12269
11962
  attr(img, "style", img_style_value = `${/*_imageStyle*/ ctx[4]} object-fit: ${/*objectFit*/ ctx[3]};`);
12270
11963
  if (!src_url_equal(img.src, img_src_value = /*src*/ ctx[0])) attr(img, "src", img_src_value);
12271
11964
  attr(img, "alt", /*alt*/ ctx[1]);
12272
- attr(div, "class", div_class_value = "" + (null_to_empty('image-block' + (/*transport*/ ctx[2] ? ' transport' : '')) + " svelte-1pdw891"));
11965
+ attr(div, "class", div_class_value = "" + (null_to_empty('image-block' + (/*transport*/ ctx[2] ? ' transport' : '')) + " svelte-1jus6sx"));
12273
11966
  attr(div, "style", /*_style*/ ctx[5]);
12274
11967
  },
12275
11968
  m(target, anchor) {
@@ -12294,7 +11987,7 @@ function create_fragment$X(ctx) {
12294
11987
  attr(img, "alt", /*alt*/ ctx[1]);
12295
11988
  }
12296
11989
 
12297
- if (dirty & /*transport*/ 4 && div_class_value !== (div_class_value = "" + (null_to_empty('image-block' + (/*transport*/ ctx[2] ? ' transport' : '')) + " svelte-1pdw891"))) {
11990
+ if (dirty & /*transport*/ 4 && div_class_value !== (div_class_value = "" + (null_to_empty('image-block' + (/*transport*/ ctx[2] ? ' transport' : '')) + " svelte-1jus6sx"))) {
12298
11991
  attr(div, "class", div_class_value);
12299
11992
  }
12300
11993
 
@@ -12746,7 +12439,7 @@ const AVATAR_SIZE_STYLES = {
12746
12439
  /* src/components-flex/avatar/Avatar.svelte generated by Svelte v3.53.1 */
12747
12440
 
12748
12441
  function add_css$n(target) {
12749
- append_styles(target, "svelte-1krsdyx", ".avatar.svelte-1krsdyx{display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0;border:0}");
12442
+ append_styles(target, "svelte-apww0t", ".avatar.svelte-apww0t{display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0;border:0}");
12750
12443
  }
12751
12444
 
12752
12445
  // (42:0) <svelte:element {...attributes} this={element} class="avatar" style={style} data-layer-id={layerId} on:click={handleClick} >
@@ -12798,7 +12491,7 @@ function create_dynamic_element$b(ctx) {
12798
12491
  },
12799
12492
  h() {
12800
12493
  if (!src_url_equal(img.src, img_src_value = /*props*/ ctx[0].image)) attr(img, "src", img_src_value);
12801
- attr(img, "class", "avatar-image svelte-1krsdyx");
12494
+ attr(img, "class", "avatar-image svelte-apww0t");
12802
12495
  attr(img, "alt", img_alt_value = /*props*/ ctx[0].alt);
12803
12496
  attr(img, "style", /*imgStyle*/ ctx[2]);
12804
12497
 
@@ -12808,7 +12501,7 @@ function create_dynamic_element$b(ctx) {
12808
12501
  set_attributes(svelte_element, svelte_element_data);
12809
12502
  }
12810
12503
 
12811
- toggle_class(svelte_element, "svelte-1krsdyx", true);
12504
+ toggle_class(svelte_element, "svelte-apww0t", true);
12812
12505
  },
12813
12506
  m(target, anchor) {
12814
12507
  insert_hydration(target, svelte_element, anchor);
@@ -12845,7 +12538,7 @@ function create_dynamic_element$b(ctx) {
12845
12538
  set_attributes(svelte_element, svelte_element_data);
12846
12539
  }
12847
12540
 
12848
- toggle_class(svelte_element, "svelte-1krsdyx", true);
12541
+ toggle_class(svelte_element, "svelte-apww0t", true);
12849
12542
  },
12850
12543
  d(detaching) {
12851
12544
  if (detaching) detach(svelte_element);
@@ -15013,7 +14706,7 @@ const ICON_VARIANTS = {
15013
14706
  /* src/components-flex/icon/Icon.svelte generated by Svelte v3.53.1 */
15014
14707
 
15015
14708
  function add_css$m(target) {
15016
- append_styles(target, "svelte-19rssou", ".icon.svelte-19rssou{display:flex;align-items:center;overflow:hidden;width:auto;cursor:pointer;text-decoration:none}");
14709
+ append_styles(target, "svelte-mut6o2", ".icon.svelte-mut6o2{display:flex;align-items:center;overflow:hidden;width:auto;cursor:pointer;text-decoration:none}");
15017
14710
  }
15018
14711
 
15019
14712
  // (24:0) <svelte:element {...attributes} this={element} class="icon" style={style} data-layer-id={layerId} on:click={handleClick} >
@@ -15075,7 +14768,7 @@ function create_dynamic_element$a(ctx) {
15075
14768
  set_attributes(svelte_element, svelte_element_data);
15076
14769
  }
15077
14770
 
15078
- toggle_class(svelte_element, "svelte-19rssou", true);
14771
+ toggle_class(svelte_element, "svelte-mut6o2", true);
15079
14772
  },
15080
14773
  m(target, anchor) {
15081
14774
  insert_hydration(target, svelte_element, anchor);
@@ -15128,7 +14821,7 @@ function create_dynamic_element$a(ctx) {
15128
14821
  set_attributes(svelte_element, svelte_element_data);
15129
14822
  }
15130
14823
 
15131
- toggle_class(svelte_element, "svelte-19rssou", true);
14824
+ toggle_class(svelte_element, "svelte-mut6o2", true);
15132
14825
  },
15133
14826
  i(local) {
15134
14827
  if (current) return;
@@ -15430,7 +15123,7 @@ function darkenColor(color, percent) {
15430
15123
  /* src/components-flex/button/Button.svelte generated by Svelte v3.53.1 */
15431
15124
 
15432
15125
  function add_css$l(target) {
15433
- append_styles(target, "svelte-o2gomt", ".button.svelte-o2gomt{display:inline-flex;gap:0.8em;align-items:center;justify-content:center;text-decoration:none;outline:0;border-width:1px;border-style:solid;line-height:1.5;transition:background-color 0.12s, border-color 0.12s, color 0.12s;cursor:pointer;color:var(--color);border-color:var(--border-color);background-color:var(--bg-color)}.button.svelte-o2gomt:hover{background-color:var(--hover-bg-color);border-color:var(--hover-border-color)}.button-icon.svelte-o2gomt{display:flex;align-items:center;justify-content:center;margin-left:-0.2em;margin-right:-0.2em}");
15126
+ append_styles(target, "svelte-brd6e9", ".button.svelte-brd6e9{display:inline-flex;gap:0.8em;align-items:center;justify-content:center;text-decoration:none;outline:0;border-width:1px;border-style:solid;line-height:1.5;transition:background-color 0.12s, border-color 0.12s, color 0.12s;cursor:pointer;color:var(--color);border-color:var(--border-color);background-color:var(--bg-color)}.button.svelte-brd6e9:hover{background-color:var(--hover-bg-color);border-color:var(--hover-border-color)}.button-icon.svelte-brd6e9{display:flex;align-items:center;justify-content:center;margin-left:-0.2em;margin-right:-0.2em}");
15434
15127
  }
15435
15128
 
15436
15129
  // (91:2) {#if props.isIcon && props.iconVariant}
@@ -15464,7 +15157,7 @@ function create_if_block$9(ctx) {
15464
15157
  this.h();
15465
15158
  },
15466
15159
  h() {
15467
- attr(div, "class", "button-icon svelte-o2gomt");
15160
+ attr(div, "class", "button-icon svelte-brd6e9");
15468
15161
  },
15469
15162
  m(target, anchor) {
15470
15163
  insert_hydration(target, div, anchor);
@@ -15561,7 +15254,7 @@ function create_dynamic_element$9(ctx) {
15561
15254
  set_attributes(svelte_element, svelte_element_data);
15562
15255
  }
15563
15256
 
15564
- toggle_class(svelte_element, "svelte-o2gomt", true);
15257
+ toggle_class(svelte_element, "svelte-brd6e9", true);
15565
15258
  },
15566
15259
  m(target, anchor) {
15567
15260
  insert_hydration(target, svelte_element, anchor);
@@ -15616,7 +15309,7 @@ function create_dynamic_element$9(ctx) {
15616
15309
  set_attributes(svelte_element, svelte_element_data);
15617
15310
  }
15618
15311
 
15619
- toggle_class(svelte_element, "svelte-o2gomt", true);
15312
+ toggle_class(svelte_element, "svelte-brd6e9", true);
15620
15313
  },
15621
15314
  i(local) {
15622
15315
  if (current) return;
@@ -15895,7 +15588,7 @@ const BUTTON_OUTLINED_WRAP_STYLES = {
15895
15588
  /* src/components-flex/button-outlined/ButtonOutlined.svelte generated by Svelte v3.53.1 */
15896
15589
 
15897
15590
  function add_css$k(target) {
15898
- append_styles(target, "svelte-38fju1", ".button-outlined.svelte-38fju1{display:inline-flex;gap:0.65em;align-items:center;justify-content:center;text-decoration:none;outline:0;border-width:1px;border-style:solid;line-height:1.5;transition:background-color 0.12s, border-color 0.12s, color 0.12s;cursor:pointer;background-color:var(--bg-color)}.button-outlined.svelte-38fju1:hover{background-color:var(--hover-bg-color)}.button-outlined-icon.svelte-38fju1{display:flex;align-items:center;justify-content:center;margin-left:-0.2em;margin-right:-0.2em;margin-bottom:0.1em}");
15591
+ append_styles(target, "svelte-ypshn1", ".button-outlined.svelte-ypshn1{display:inline-flex;gap:0.65em;align-items:center;justify-content:center;text-decoration:none;outline:0;border-width:1px;border-style:solid;line-height:1.5;transition:background-color 0.12s, border-color 0.12s, color 0.12s;cursor:pointer;background-color:var(--bg-color)}.button-outlined.svelte-ypshn1:hover{background-color:var(--hover-bg-color)}.button-outlined-icon.svelte-ypshn1{display:flex;align-items:center;justify-content:center;margin-left:-0.2em;margin-right:-0.2em;margin-bottom:0.1em}");
15899
15592
  }
15900
15593
 
15901
15594
  // (53:2) {#if props.isIcon && props.iconVariant}
@@ -15929,7 +15622,7 @@ function create_if_block$8(ctx) {
15929
15622
  this.h();
15930
15623
  },
15931
15624
  h() {
15932
- attr(div, "class", "button-outlined-icon svelte-38fju1");
15625
+ attr(div, "class", "button-outlined-icon svelte-ypshn1");
15933
15626
  },
15934
15627
  m(target, anchor) {
15935
15628
  insert_hydration(target, div, anchor);
@@ -16016,7 +15709,7 @@ function create_dynamic_element$8(ctx) {
16016
15709
  this.h();
16017
15710
  },
16018
15711
  h() {
16019
- attr(span, "class", "button-outlined-label svelte-38fju1");
15712
+ attr(span, "class", "button-outlined-label svelte-ypshn1");
16020
15713
 
16021
15714
  if ((/-/).test(/*element*/ ctx[4])) {
16022
15715
  set_custom_element_data_map(svelte_element, svelte_element_data);
@@ -16024,7 +15717,7 @@ function create_dynamic_element$8(ctx) {
16024
15717
  set_attributes(svelte_element, svelte_element_data);
16025
15718
  }
16026
15719
 
16027
- toggle_class(svelte_element, "svelte-38fju1", true);
15720
+ toggle_class(svelte_element, "svelte-ypshn1", true);
16028
15721
  },
16029
15722
  m(target, anchor) {
16030
15723
  insert_hydration(target, svelte_element, anchor);
@@ -16078,7 +15771,7 @@ function create_dynamic_element$8(ctx) {
16078
15771
  set_attributes(svelte_element, svelte_element_data);
16079
15772
  }
16080
15773
 
16081
- toggle_class(svelte_element, "svelte-38fju1", true);
15774
+ toggle_class(svelte_element, "svelte-ypshn1", true);
16082
15775
  },
16083
15776
  i(local) {
16084
15777
  if (current) return;
@@ -16274,7 +15967,7 @@ const getButtonTextThemeStyles = getPropStyles(callback$2);
16274
15967
  /* src/components-flex/button-text/ButtonText.svelte generated by Svelte v3.53.1 */
16275
15968
 
16276
15969
  function add_css$j(target) {
16277
- append_styles(target, "svelte-1xgvp8r", ".button-text.svelte-1xgvp8r{display:inline-flex;gap:0.65em;align-items:center;justify-content:center;text-decoration:none;outline:0;border:0;line-height:1.5;transition:background-color 0.12s, border-color 0.12s, color 0.12s;cursor:pointer;background-color:rgba(255, 255, 255, 0)}.button-text.svelte-1xgvp8r:hover{background-color:var(--hover-bg-color)}.button-text-icon.svelte-1xgvp8r{display:flex;align-items:center;justify-content:center;margin-left:-0.2em;margin-right:-0.2em}");
15970
+ append_styles(target, "svelte-lted9r", ".button-text.svelte-lted9r{display:inline-flex;gap:0.65em;align-items:center;justify-content:center;text-decoration:none;outline:0;border:0;line-height:1.5;transition:background-color 0.12s, border-color 0.12s, color 0.12s;cursor:pointer;background-color:rgba(255, 255, 255, 0)}.button-text.svelte-lted9r:hover{background-color:var(--hover-bg-color)}.button-text-icon.svelte-lted9r{display:flex;align-items:center;justify-content:center;margin-left:-0.2em;margin-right:-0.2em}");
16278
15971
  }
16279
15972
 
16280
15973
  // (49:2) {#if props.isIcon && props.iconVariant}
@@ -16308,7 +16001,7 @@ function create_if_block$7(ctx) {
16308
16001
  this.h();
16309
16002
  },
16310
16003
  h() {
16311
- attr(div, "class", "button-text-icon svelte-1xgvp8r");
16004
+ attr(div, "class", "button-text-icon svelte-lted9r");
16312
16005
  },
16313
16006
  m(target, anchor) {
16314
16007
  insert_hydration(target, div, anchor);
@@ -16395,7 +16088,7 @@ function create_dynamic_element$7(ctx) {
16395
16088
  this.h();
16396
16089
  },
16397
16090
  h() {
16398
- attr(span, "class", "button-text-label svelte-1xgvp8r");
16091
+ attr(span, "class", "button-text-label svelte-lted9r");
16399
16092
 
16400
16093
  if ((/-/).test(/*element*/ ctx[4])) {
16401
16094
  set_custom_element_data_map(svelte_element, svelte_element_data);
@@ -16403,7 +16096,7 @@ function create_dynamic_element$7(ctx) {
16403
16096
  set_attributes(svelte_element, svelte_element_data);
16404
16097
  }
16405
16098
 
16406
- toggle_class(svelte_element, "svelte-1xgvp8r", true);
16099
+ toggle_class(svelte_element, "svelte-lted9r", true);
16407
16100
  },
16408
16101
  m(target, anchor) {
16409
16102
  insert_hydration(target, svelte_element, anchor);
@@ -16457,7 +16150,7 @@ function create_dynamic_element$7(ctx) {
16457
16150
  set_attributes(svelte_element, svelte_element_data);
16458
16151
  }
16459
16152
 
16460
- toggle_class(svelte_element, "svelte-1xgvp8r", true);
16153
+ toggle_class(svelte_element, "svelte-lted9r", true);
16461
16154
  },
16462
16155
  i(local) {
16463
16156
  if (current) return;
@@ -16609,7 +16302,7 @@ const BUTTON_TEXT_THEME = {
16609
16302
  /* src/components-flex/close-button/CloseButton.svelte generated by Svelte v3.53.1 */
16610
16303
 
16611
16304
  function add_css$i(target) {
16612
- append_styles(target, "svelte-3mvsv6", ".close-button.svelte-3mvsv6.svelte-3mvsv6{display:inline-flex;align-items:center;justify-content:center;align-self:center;gap:8px;border-radius:100%;background:none;cursor:pointer;border:0;outline:0;transition:background-color 0.12s, border-color 0.12s, color 0.12s}.close-button.svelte-3mvsv6 svg.svelte-3mvsv6{transition:transform 0.12s}.close-button.svelte-3mvsv6:hover svg.svelte-3mvsv6{transform:rotate(90deg)}.close-button-order-one.svelte-3mvsv6.svelte-3mvsv6{order:1}.close-button-order-two.svelte-3mvsv6.svelte-3mvsv6{order:2}");
16305
+ append_styles(target, "svelte-3133h2", ".close-button.svelte-3133h2.svelte-3133h2{display:inline-flex;align-items:center;justify-content:center;align-self:center;gap:8px;border-radius:100%;background:none;cursor:pointer;border:0;outline:0;transition:background-color 0.12s, border-color 0.12s, color 0.12s}.close-button.svelte-3133h2 svg.svelte-3133h2{transition:transform 0.12s}.close-button.svelte-3133h2:hover svg.svelte-3133h2{transform:rotate(90deg)}.close-button-order-one.svelte-3133h2.svelte-3133h2{order:1}.close-button-order-two.svelte-3133h2.svelte-3133h2{order:2}");
16613
16306
  }
16614
16307
 
16615
16308
  // (90:2) {#if hasLabel}
@@ -16635,7 +16328,7 @@ function create_if_block$6(ctx) {
16635
16328
 
16636
16329
  attr(span, "class", "close-button-label " + (/*isLeftLabelPlacement*/ ctx[10]
16637
16330
  ? 'close-button-order-one'
16638
- : '') + " svelte-3mvsv6");
16331
+ : '') + " svelte-3133h2");
16639
16332
  },
16640
16333
  m(target, anchor) {
16641
16334
  insert_hydration(target, span, anchor);
@@ -16727,7 +16420,7 @@ function create_dynamic_element$6(ctx) {
16727
16420
  set_style(svg, "width", "100%");
16728
16421
  set_style(svg, "height", "100%");
16729
16422
  attr(svg, "fill", /*color*/ ctx[8]);
16730
- attr(svg, "class", "svelte-3mvsv6");
16423
+ attr(svg, "class", "svelte-3133h2");
16731
16424
  attr(span, "style", /*iconStyle*/ ctx[1]);
16732
16425
 
16733
16426
  if ((/-/).test(/*element*/ ctx[6])) {
@@ -16736,7 +16429,7 @@ function create_dynamic_element$6(ctx) {
16736
16429
  set_attributes(svelte_element, svelte_element_data);
16737
16430
  }
16738
16431
 
16739
- toggle_class(svelte_element, "svelte-3mvsv6", true);
16432
+ toggle_class(svelte_element, "svelte-3133h2", true);
16740
16433
  },
16741
16434
  m(target, anchor) {
16742
16435
  insert_hydration(target, svelte_element, anchor);
@@ -16782,7 +16475,7 @@ function create_dynamic_element$6(ctx) {
16782
16475
  set_attributes(svelte_element, svelte_element_data);
16783
16476
  }
16784
16477
 
16785
- toggle_class(svelte_element, "svelte-3mvsv6", true);
16478
+ toggle_class(svelte_element, "svelte-3133h2", true);
16786
16479
  },
16787
16480
  d(detaching) {
16788
16481
  if (detaching) detach(svelte_element);
@@ -17023,7 +16716,7 @@ const IMAGE_ROUND_STYLES = {
17023
16716
  /* src/components-flex/image/Image.svelte generated by Svelte v3.53.1 */
17024
16717
 
17025
16718
  function add_css$h(target) {
17026
- append_styles(target, "svelte-rewdem", ".image.svelte-rewdem{max-width:100%;overflow:hidden;display:flex;align-items:center;justify-content:center}.image-img.svelte-rewdem{vertical-align:top;width:100%;height:100%;object-fit:cover;user-select:none;-webkit-user-drag:none}");
16719
+ append_styles(target, "svelte-1xwoqy", ".image.svelte-1xwoqy{max-width:100%;overflow:hidden;display:flex;align-items:center;justify-content:center}.image-img.svelte-1xwoqy{vertical-align:top;width:100%;height:100%;object-fit:cover;user-select:none;-webkit-user-drag:none}");
17027
16720
  }
17028
16721
 
17029
16722
  // (26:0) <svelte:element this={element} {...attributes} class="image" {style} data-layer-id={layerId} on:click={handleClick} >
@@ -17069,7 +16762,7 @@ function create_dynamic_element$5(ctx) {
17069
16762
  h() {
17070
16763
  if (!src_url_equal(img.src, img_src_value = /*props*/ ctx[0].image)) attr(img, "src", img_src_value);
17071
16764
  attr(img, "alt", img_alt_value = /*props*/ ctx[0].alt);
17072
- attr(img, "class", "image-img svelte-rewdem");
16765
+ attr(img, "class", "image-img svelte-1xwoqy");
17073
16766
 
17074
16767
  if ((/-/).test(/*element*/ ctx[4])) {
17075
16768
  set_custom_element_data_map(svelte_element, svelte_element_data);
@@ -17077,7 +16770,7 @@ function create_dynamic_element$5(ctx) {
17077
16770
  set_attributes(svelte_element, svelte_element_data);
17078
16771
  }
17079
16772
 
17080
- toggle_class(svelte_element, "svelte-rewdem", true);
16773
+ toggle_class(svelte_element, "svelte-1xwoqy", true);
17081
16774
  },
17082
16775
  m(target, anchor) {
17083
16776
  insert_hydration(target, svelte_element, anchor);
@@ -17110,7 +16803,7 @@ function create_dynamic_element$5(ctx) {
17110
16803
  set_attributes(svelte_element, svelte_element_data);
17111
16804
  }
17112
16805
 
17113
- toggle_class(svelte_element, "svelte-rewdem", true);
16806
+ toggle_class(svelte_element, "svelte-1xwoqy", true);
17114
16807
  },
17115
16808
  d(detaching) {
17116
16809
  if (detaching) detach(svelte_element);
@@ -17229,7 +16922,7 @@ const IMAGE_ASPECT_VARIANTS = {
17229
16922
  /* src/components-flex/layout/Layout.svelte generated by Svelte v3.53.1 */
17230
16923
 
17231
16924
  function add_css$g(target) {
17232
- append_styles(target, "svelte-139vx15", ".layout.svelte-139vx15{text-decoration:none;color:inherit}.layout[data-clickable=true].svelte-139vx15{cursor:pointer}.layout[data-clickable=true].svelte-139vx15:hover{opacity:0.8}");
16925
+ append_styles(target, "svelte-1tjo4al", ".layout.svelte-1tjo4al{text-decoration:none;color:inherit}.layout[data-clickable=true].svelte-1tjo4al{cursor:pointer}.layout[data-clickable=true].svelte-1tjo4al:hover{opacity:0.8}");
17233
16926
  }
17234
16927
 
17235
16928
  // (28:0) <svelte:element {...attributes} this="div" class="layout" style={style} data-layer-id={layerId} on:click={handleClick} >
@@ -17279,7 +16972,7 @@ function create_dynamic_element$4(ctx) {
17279
16972
  set_attributes(svelte_element, svelte_element_data);
17280
16973
  }
17281
16974
 
17282
- toggle_class(svelte_element, "svelte-139vx15", true);
16975
+ toggle_class(svelte_element, "svelte-1tjo4al", true);
17283
16976
  },
17284
16977
  m(target, anchor) {
17285
16978
  insert_hydration(target, svelte_element, anchor);
@@ -17324,7 +17017,7 @@ function create_dynamic_element$4(ctx) {
17324
17017
  set_attributes(svelte_element, svelte_element_data);
17325
17018
  }
17326
17019
 
17327
- toggle_class(svelte_element, "svelte-139vx15", true);
17020
+ toggle_class(svelte_element, "svelte-1tjo4al", true);
17328
17021
  },
17329
17022
  i(local) {
17330
17023
  if (current) return;
@@ -17452,7 +17145,7 @@ const LAYOUT_JUSTIFY = ['flex-start', 'center', 'flex-end', 'space-between'];
17452
17145
  /* src/components-flex/slider/Slider.svelte generated by Svelte v3.53.1 */
17453
17146
 
17454
17147
  function add_css$f(target) {
17455
- append_styles(target, "svelte-1slel1d", ".slider-list.svelte-1slel1d{-webkit-user-drag:none;margin:0;padding:0;list-style:none}");
17148
+ append_styles(target, "svelte-1k4xkut", ".slider-list.svelte-1k4xkut{-webkit-user-drag:none;margin:0;padding:0;list-style:none}");
17456
17149
  }
17457
17150
 
17458
17151
  function get_each_context$1(ctx, list, i) {
@@ -17592,12 +17285,12 @@ function create_fragment$j(ctx) {
17592
17285
  this.h();
17593
17286
  },
17594
17287
  h() {
17595
- attr(ul, "class", "slider-list svelte-1slel1d");
17288
+ attr(ul, "class", "slider-list svelte-1k4xkut");
17596
17289
  attr(ul, "style", ul_style_value = [/*containerStyle*/ ctx[5], /*overrideStyle*/ ctx[1]].join(' '));
17597
17290
  attr(div0, "style", /*indicatorListStyle*/ ctx[4]);
17598
17291
  attr(div1, "data-layer-id", /*layerId*/ ctx[0]);
17599
17292
  attr(div1, "style", /*style*/ ctx[6]);
17600
- attr(div1, "class", "slider svelte-1slel1d");
17293
+ attr(div1, "class", "slider svelte-1k4xkut");
17601
17294
  },
17602
17295
  m(target, anchor) {
17603
17296
  insert_hydration(target, div1, anchor);
@@ -17946,7 +17639,7 @@ class Slider extends SvelteComponent {
17946
17639
  /* src/components-flex/slider/SliderItem.svelte generated by Svelte v3.53.1 */
17947
17640
 
17948
17641
  function add_css$e(target) {
17949
- append_styles(target, "svelte-1amglxo", ".slider-item.svelte-1amglxo{overflow:hidden}.slider-item-inner.svelte-1amglxo{text-decoration:none;background:none;border:0;margin:0;padding:0;color:inherit;-webkit-user-drag:none;user-select:none}");
17642
+ append_styles(target, "svelte-j5pon4", ".slider-item.svelte-j5pon4{overflow:hidden}.slider-item-inner.svelte-j5pon4{text-decoration:none;background:none;border:0;margin:0;padding:0;color:inherit;-webkit-user-drag:none;user-select:none}");
17950
17643
  }
17951
17644
 
17952
17645
  // (10:2) <svelte:element {...attributes} this={element} class="slider-item-inner" on:click={handleClick} >
@@ -17984,7 +17677,7 @@ function create_dynamic_element$3(ctx) {
17984
17677
  set_attributes(svelte_element, svelte_element_data);
17985
17678
  }
17986
17679
 
17987
- toggle_class(svelte_element, "svelte-1amglxo", true);
17680
+ toggle_class(svelte_element, "svelte-j5pon4", true);
17988
17681
  },
17989
17682
  m(target, anchor) {
17990
17683
  insert_hydration(target, svelte_element, anchor);
@@ -18024,7 +17717,7 @@ function create_dynamic_element$3(ctx) {
18024
17717
  set_attributes(svelte_element, svelte_element_data);
18025
17718
  }
18026
17719
 
18027
- toggle_class(svelte_element, "svelte-1amglxo", true);
17720
+ toggle_class(svelte_element, "svelte-j5pon4", true);
18028
17721
  },
18029
17722
  i(local) {
18030
17723
  if (current) return;
@@ -18065,7 +17758,7 @@ function create_fragment$i(ctx) {
18065
17758
  },
18066
17759
  h() {
18067
17760
  attr(li, "data-layer-id", /*layerId*/ ctx[0]);
18068
- attr(li, "class", "slider-item svelte-1amglxo");
17761
+ attr(li, "class", "slider-item svelte-j5pon4");
18069
17762
  },
18070
17763
  m(target, anchor) {
18071
17764
  insert_hydration(target, li, anchor);
@@ -18222,7 +17915,7 @@ const TEXT_VARIANTS = {
18222
17915
  /* src/components-flex/text/Text.svelte generated by Svelte v3.53.1 */
18223
17916
 
18224
17917
  function add_css$d(target) {
18225
- append_styles(target, "svelte-vifn7y", ".text.svelte-vifn7y{margin:0;word-break:break-all;text-decoration:none}");
17918
+ append_styles(target, "svelte-14kt34i", ".text.svelte-14kt34i{margin:0;word-break:break-all;text-decoration:none}");
18226
17919
  }
18227
17920
 
18228
17921
  function create_fragment$h(ctx) {
@@ -18245,7 +17938,7 @@ function create_fragment$h(ctx) {
18245
17938
  this.h();
18246
17939
  },
18247
17940
  h() {
18248
- attr(p, "class", "text svelte-vifn7y");
17941
+ attr(p, "class", "text svelte-14kt34i");
18249
17942
  attr(p, "data-layer-id", /*layerId*/ ctx[0]);
18250
17943
  attr(p, "style", /*style*/ ctx[1]);
18251
17944
  },
@@ -18363,7 +18056,7 @@ class Text extends SvelteComponent {
18363
18056
  /* src/components-flex/rich-text/RichText.svelte generated by Svelte v3.53.1 */
18364
18057
 
18365
18058
  function add_css$c(target) {
18366
- append_styles(target, "svelte-dxr423", ".rich-text.svelte-dxr423 p{margin:0;word-break:break-all;text-decoration:none}.rich-text.svelte-dxr423 p + p{margin-top:0.75em}");
18059
+ append_styles(target, "svelte-mq7h73", ".rich-text.svelte-mq7h73 p{margin:0;word-break:break-all;text-decoration:none}.rich-text.svelte-mq7h73 p + p{margin-top:0.75em}");
18367
18060
  }
18368
18061
 
18369
18062
  function create_fragment$g(ctx) {
@@ -18387,7 +18080,7 @@ function create_fragment$g(ctx) {
18387
18080
  this.h();
18388
18081
  },
18389
18082
  h() {
18390
- attr(div, "class", "rich-text svelte-dxr423");
18083
+ attr(div, "class", "rich-text svelte-mq7h73");
18391
18084
  attr(div, "style", /*style*/ ctx[2]);
18392
18085
  attr(div, "data-layer-id", /*layerId*/ ctx[1]);
18393
18086
  },
@@ -18560,7 +18253,7 @@ const getTextLinkThemeStyles = getPropStyles(callback);
18560
18253
  /* src/components-flex/text-link/TextLink.svelte generated by Svelte v3.53.1 */
18561
18254
 
18562
18255
  function add_css$b(target) {
18563
- append_styles(target, "svelte-dc9m5n", ".link.svelte-dc9m5n{-webkit-appearance:none;border:0;background:none;padding:0;display:inline-flex}.link.svelte-dc9m5n,.link.svelte-dc9m5n:visited,.link.svelte-dc9m5n:link{color:var(--color)}.link.svelte-dc9m5n:hover{color:var(--hover-color)}.link.svelte-dc9m5n:active{color:var(--active-color)}.link.underline-hover-on.svelte-dc9m5n{text-decoration:none}.link.underline-hover-on.svelte-dc9m5n:hover{text-decoration:underline}.link.underline-hover-off.svelte-dc9m5n{text-decoration:underline}.link.underline-hover-off.svelte-dc9m5n:hover{text-decoration:none}.link.underline-on.svelte-dc9m5n{text-decoration:underline}.link.underline-off.svelte-dc9m5n{text-decoration:none}");
18256
+ append_styles(target, "svelte-1qyhpm7", ".link.svelte-1qyhpm7{-webkit-appearance:none;border:0;background:none;padding:0;display:inline-flex}.link.svelte-1qyhpm7,.link.svelte-1qyhpm7:visited,.link.svelte-1qyhpm7:link{color:var(--color)}.link.svelte-1qyhpm7:hover{color:var(--hover-color)}.link.svelte-1qyhpm7:active{color:var(--active-color)}.link.underline-hover-on.svelte-1qyhpm7{text-decoration:none}.link.underline-hover-on.svelte-1qyhpm7:hover{text-decoration:underline}.link.underline-hover-off.svelte-1qyhpm7{text-decoration:underline}.link.underline-hover-off.svelte-1qyhpm7:hover{text-decoration:none}.link.underline-on.svelte-1qyhpm7{text-decoration:underline}.link.underline-off.svelte-1qyhpm7{text-decoration:none}");
18564
18257
  }
18565
18258
 
18566
18259
  // (81:2) {#if props.isIcon && props.iconVariant}
@@ -18674,7 +18367,7 @@ function create_dynamic_element$2(ctx) {
18674
18367
  set_attributes(svelte_element, svelte_element_data);
18675
18368
  }
18676
18369
 
18677
- toggle_class(svelte_element, "svelte-dc9m5n", true);
18370
+ toggle_class(svelte_element, "svelte-1qyhpm7", true);
18678
18371
  },
18679
18372
  m(target, anchor) {
18680
18373
  insert_hydration(target, svelte_element, anchor);
@@ -18727,7 +18420,7 @@ function create_dynamic_element$2(ctx) {
18727
18420
  set_attributes(svelte_element, svelte_element_data);
18728
18421
  }
18729
18422
 
18730
- toggle_class(svelte_element, "svelte-dc9m5n", true);
18423
+ toggle_class(svelte_element, "svelte-1qyhpm7", true);
18731
18424
  },
18732
18425
  i(local) {
18733
18426
  if (current) return;
@@ -18914,7 +18607,7 @@ const TEXT_LINK_UNDERLINE = {
18914
18607
  /* src/components-flex/background-overlay/BackgroundOverlay.svelte generated by Svelte v3.53.1 */
18915
18608
 
18916
18609
  function add_css$a(target) {
18917
- append_styles(target, "svelte-18nkdjz", ".v2-background.svelte-18nkdjz{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.3);z-index:2147483646}");
18610
+ append_styles(target, "svelte-ed4ktn", ".v2-background.svelte-ed4ktn{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.3);z-index:2147483646}");
18918
18611
  }
18919
18612
 
18920
18613
  // (14:0) {#if backgroundOverlay}
@@ -18935,7 +18628,7 @@ function create_if_block$4(ctx) {
18935
18628
  this.h();
18936
18629
  },
18937
18630
  h() {
18938
- attr(div, "class", div_class_value = "" + (null_to_empty(['v2-background', /*className*/ ctx[1] || ''].join(' ')) + " svelte-18nkdjz"));
18631
+ attr(div, "class", div_class_value = "" + (null_to_empty(['v2-background', /*className*/ ctx[1] || ''].join(' ')) + " svelte-ed4ktn"));
18939
18632
  },
18940
18633
  m(target, anchor) {
18941
18634
  insert_hydration(target, div, anchor);
@@ -18946,7 +18639,7 @@ function create_if_block$4(ctx) {
18946
18639
  }
18947
18640
  },
18948
18641
  p(ctx, dirty) {
18949
- if (dirty & /*className*/ 2 && div_class_value !== (div_class_value = "" + (null_to_empty(['v2-background', /*className*/ ctx[1] || ''].join(' ')) + " svelte-18nkdjz"))) {
18642
+ if (dirty & /*className*/ 2 && div_class_value !== (div_class_value = "" + (null_to_empty(['v2-background', /*className*/ ctx[1] || ''].join(' ')) + " svelte-ed4ktn"))) {
18950
18643
  attr(div, "class", div_class_value);
18951
18644
  }
18952
18645
  },
@@ -19022,7 +18715,7 @@ class BackgroundOverlay extends SvelteComponent {
19022
18715
  /* src/components-flex/modal/Modal.svelte generated by Svelte v3.53.1 */
19023
18716
 
19024
18717
  function add_css$9(target) {
19025
- append_styles(target, "svelte-45ue06", "*{box-sizing:border-box}.modal.svelte-45ue06{position:fixed;z-index:2147483647;display:flex}.modal.svelte-45ue06 > .button{flex:auto;display:flex}@media screen and (min-width: 641px){.modal-bp.svelte-45ue06{height:var(--modal-bp-height-pc) !important;width:var(--modal-bp-width-pc) !important;top:var(--modal-bp-top-pc) !important;left:var(--modal-bp-left-pc) !important;bottom:var(--modal-bp-bottom-pc) !important;right:var(--modal-bp-right-pc) !important;transform:var(--modal-bp-transform-pc);margin:var(--modal-bp-margin-pc) !important}.background-bp-pc{display:block}.background-bp-sp{display:none}}@media screen and (max-width: 640px){.modal-bp.svelte-45ue06{height:var(--modal-bp-height-sp) !important;width:var(--modal-bp-width-sp) !important;top:var(--modal-bp-top-sp) !important;left:var(--modal-bp-left-sp) !important;bottom:var(--modal-bp-bottom-sp) !important;right:var(--modal-bp-right-sp) !important;transform:var(--modal-bp-transform-sp);margin:var(--modal-bp-margin-sp) !important}.background-bp-pc{display:none}.background-bp-sp{display:block}}");
18718
+ append_styles(target, "svelte-15b58xm", "*{box-sizing:border-box}.modal.svelte-15b58xm{position:fixed;z-index:2147483647;display:flex}.modal.svelte-15b58xm > .button{flex:auto;display:flex}@media screen and (min-width: 641px){.modal-bp.svelte-15b58xm{height:var(--modal-bp-height-pc) !important;width:var(--modal-bp-width-pc) !important;top:var(--modal-bp-top-pc) !important;left:var(--modal-bp-left-pc) !important;bottom:var(--modal-bp-bottom-pc) !important;right:var(--modal-bp-right-pc) !important;transform:var(--modal-bp-transform-pc);margin:var(--modal-bp-margin-pc) !important}.background-bp-pc{display:block}.background-bp-sp{display:none}}@media screen and (max-width: 640px){.modal-bp.svelte-15b58xm{height:var(--modal-bp-height-sp) !important;width:var(--modal-bp-width-sp) !important;top:var(--modal-bp-top-sp) !important;left:var(--modal-bp-left-sp) !important;bottom:var(--modal-bp-bottom-sp) !important;right:var(--modal-bp-right-sp) !important;transform:var(--modal-bp-transform-sp);margin:var(--modal-bp-margin-sp) !important}.background-bp-pc{display:none}.background-bp-sp{display:block}}");
19026
18719
  }
19027
18720
 
19028
18721
  // (219:0) {:else}
@@ -19189,7 +18882,7 @@ function create_if_block$3(ctx) {
19189
18882
  this.h();
19190
18883
  },
19191
18884
  h() {
19192
- attr(div, "class", div_class_value = "" + (null_to_empty(['modal', /*useBreakPoint*/ ctx[0] ? 'modal-bp' : ''].join(' ')) + " svelte-45ue06"));
18885
+ attr(div, "class", div_class_value = "" + (null_to_empty(['modal', /*useBreakPoint*/ ctx[0] ? 'modal-bp' : ''].join(' ')) + " svelte-15b58xm"));
19193
18886
  attr(div, "role", "dialog");
19194
18887
  attr(div, "aria-modal", "true");
19195
18888
  attr(div, "data-layer-id", /*layerId*/ ctx[2]);
@@ -19223,7 +18916,7 @@ function create_if_block$3(ctx) {
19223
18916
  }
19224
18917
  }
19225
18918
 
19226
- if (!current || dirty & /*useBreakPoint*/ 1 && div_class_value !== (div_class_value = "" + (null_to_empty(['modal', /*useBreakPoint*/ ctx[0] ? 'modal-bp' : ''].join(' ')) + " svelte-45ue06"))) {
18919
+ if (!current || dirty & /*useBreakPoint*/ 1 && div_class_value !== (div_class_value = "" + (null_to_empty(['modal', /*useBreakPoint*/ ctx[0] ? 'modal-bp' : ''].join(' ')) + " svelte-15b58xm"))) {
19227
18920
  attr(div, "class", div_class_value);
19228
18921
  }
19229
18922
 
@@ -19687,7 +19380,7 @@ class Modal extends SvelteComponent {
19687
19380
  /* src/components-flex/code/Code.svelte generated by Svelte v3.53.1 */
19688
19381
 
19689
19382
  function add_css$8(target) {
19690
- append_styles(target, "svelte-igivoz", ".code.svelte-igivoz{flex-grow:1;flex-shrink:0;align-self:stretch}");
19383
+ append_styles(target, "svelte-jviwnb", ".code.svelte-jviwnb{flex-grow:1;flex-shrink:0;align-self:stretch}");
19691
19384
  }
19692
19385
 
19693
19386
  function create_fragment$c(ctx) {
@@ -19706,7 +19399,7 @@ function create_fragment$c(ctx) {
19706
19399
  this.h();
19707
19400
  },
19708
19401
  h() {
19709
- attr(div, "class", "code svelte-igivoz");
19402
+ attr(div, "class", "code svelte-jviwnb");
19710
19403
  attr(div, "data-layer-id", /*layerId*/ ctx[1]);
19711
19404
  },
19712
19405
  m(target, anchor) {
@@ -19788,7 +19481,7 @@ const LIST_ITEM_CONTEXT_KEY = 'ListItemContext';
19788
19481
  /* src/components-flex/list/List.svelte generated by Svelte v3.53.1 */
19789
19482
 
19790
19483
  function add_css$7(target) {
19791
- append_styles(target, "svelte-v2vy6p", ".list.svelte-v2vy6p{padding:0;margin:0;list-style:none;display:flex;flex-direction:column;--border-width:0;--border-style:solit;--border-color:rgba(255, 255, 255, 0);border-top-width:var(--border-width);border-top-style:var(--border-style);border-top-color:var(--border-color);border-bottom-width:var(--border-width);border-bottom-style:var(--border-style);border-bottom-color:var(--border-color)}");
19484
+ append_styles(target, "svelte-5g0mcl", ".list.svelte-5g0mcl{padding:0;margin:0;list-style:none;display:flex;flex-direction:column;--border-width:0;--border-style:solit;--border-color:rgba(255, 255, 255, 0);border-top-width:var(--border-width);border-top-style:var(--border-style);border-top-color:var(--border-color);border-bottom-width:var(--border-width);border-bottom-style:var(--border-style);border-bottom-color:var(--border-color)}");
19792
19485
  }
19793
19486
 
19794
19487
  function create_fragment$b(ctx) {
@@ -19817,7 +19510,7 @@ function create_fragment$b(ctx) {
19817
19510
  },
19818
19511
  h() {
19819
19512
  attr(ul, "data-layer-id", /*layerId*/ ctx[0]);
19820
- attr(ul, "class", "list svelte-v2vy6p");
19513
+ attr(ul, "class", "list svelte-5g0mcl");
19821
19514
  attr(ul, "style", /*style*/ ctx[1]);
19822
19515
  },
19823
19516
  m(target, anchor) {
@@ -19940,7 +19633,7 @@ class List extends SvelteComponent {
19940
19633
  /* src/components-flex/list/ListItem.svelte generated by Svelte v3.53.1 */
19941
19634
 
19942
19635
  function add_css$6(target) {
19943
- append_styles(target, "svelte-1223veg", ".list-item.svelte-1223veg{margin:0;padding:0}.list-item-inner.svelte-1223veg{display:flex;align-items:center;width:100%;text-decoration:none;color:inherit}.list-item-inner.svelte-1223veg:hover{opacity:0.8}.list-item.svelte-1223veg:not(:first-child){border-top-width:var(--list-item-border-width);border-top-style:var(--list-item-border-style);border-top-color:var(--list-item-border-color)}");
19636
+ append_styles(target, "svelte-1e6dn58", ".list-item.svelte-1e6dn58{margin:0;padding:0}.list-item-inner.svelte-1e6dn58{display:flex;align-items:center;width:100%;text-decoration:none;color:inherit}.list-item-inner.svelte-1e6dn58:hover{opacity:0.8}.list-item.svelte-1e6dn58:not(:first-child){border-top-width:var(--list-item-border-width);border-top-style:var(--list-item-border-style);border-top-color:var(--list-item-border-color)}");
19944
19637
  }
19945
19638
 
19946
19639
  // (30:2) <svelte:element {...attributes} this={element} class="list-item-inner" style={innerStyle} on:click={handleClick} >
@@ -19984,7 +19677,7 @@ function create_dynamic_element$1(ctx) {
19984
19677
  set_attributes(svelte_element, svelte_element_data);
19985
19678
  }
19986
19679
 
19987
- toggle_class(svelte_element, "svelte-1223veg", true);
19680
+ toggle_class(svelte_element, "svelte-1e6dn58", true);
19988
19681
  },
19989
19682
  m(target, anchor) {
19990
19683
  insert_hydration(target, svelte_element, anchor);
@@ -20028,7 +19721,7 @@ function create_dynamic_element$1(ctx) {
20028
19721
  set_attributes(svelte_element, svelte_element_data);
20029
19722
  }
20030
19723
 
20031
- toggle_class(svelte_element, "svelte-1223veg", true);
19724
+ toggle_class(svelte_element, "svelte-1e6dn58", true);
20032
19725
  },
20033
19726
  i(local) {
20034
19727
  if (current) return;
@@ -20073,7 +19766,7 @@ function create_fragment$a(ctx) {
20073
19766
  this.h();
20074
19767
  },
20075
19768
  h() {
20076
- attr(li, "class", "list-item svelte-1223veg");
19769
+ attr(li, "class", "list-item svelte-1e6dn58");
20077
19770
  attr(li, "data-layer-id", /*layerId*/ ctx[0]);
20078
19771
  attr(li, "style", /*style*/ ctx[2]);
20079
19772
  },
@@ -20219,7 +19912,7 @@ function splitNumberAndUnit(value) {
20219
19912
  /* src/components-flex/multi-column/MultiColumn.svelte generated by Svelte v3.53.1 */
20220
19913
 
20221
19914
  function add_css$5(target) {
20222
- append_styles(target, "svelte-aoppwp", ".list.svelte-aoppwp{padding:0;margin:0;list-style:none;display:flex;flex-direction:row}");
19915
+ append_styles(target, "svelte-1csavnh", ".list.svelte-1csavnh{padding:0;margin:0;list-style:none;display:flex;flex-direction:row}");
20223
19916
  }
20224
19917
 
20225
19918
  function create_fragment$9(ctx) {
@@ -20248,7 +19941,7 @@ function create_fragment$9(ctx) {
20248
19941
  },
20249
19942
  h() {
20250
19943
  attr(ul, "data-layer-id", /*layerId*/ ctx[0]);
20251
- attr(ul, "class", "list svelte-aoppwp");
19944
+ attr(ul, "class", "list svelte-1csavnh");
20252
19945
  attr(ul, "style", /*style*/ ctx[1]);
20253
19946
  },
20254
19947
  m(target, anchor) {
@@ -20360,7 +20053,7 @@ class MultiColumn extends SvelteComponent {
20360
20053
  /* src/components-flex/multi-column/MultiColumnItem.svelte generated by Svelte v3.53.1 */
20361
20054
 
20362
20055
  function add_css$4(target) {
20363
- append_styles(target, "svelte-1blzs1a", ".multi-column-item.svelte-1blzs1a{margin:0;width:100%;padding-top:0;padding-bottom:0;padding-left:var(--multi-column-item-padding);padding-right:var(--multi-column-item-padding)}.multi-column-item-inner.svelte-1blzs1a{display:flex;flex-direction:column;align-items:center;gap:var(--multi-column-item-gap);width:100%;text-decoration:none;color:inherit;padding-top:var(--multi-column-item-padding-top);padding-left:var(--multi-column-item-padding-left);padding-right:var(--multi-column-item-padding-right);padding-bottom:var(--multi-column-item-padding-bottom)}.multi-column-item-inner.svelte-1blzs1a:hover{opacity:0.8}.multi-column-item.svelte-1blzs1a:not(:first-child){border-left-width:var(--multi-column-item-border-width);border-left-style:var(--multi-column-item-border-style);border-left-color:var(--multi-column-item-border-color)}");
20056
+ append_styles(target, "svelte-1mk0qj6", ".multi-column-item.svelte-1mk0qj6{margin:0;width:100%;padding-top:0;padding-bottom:0;padding-left:var(--multi-column-item-padding);padding-right:var(--multi-column-item-padding)}.multi-column-item-inner.svelte-1mk0qj6{display:flex;flex-direction:column;align-items:center;gap:var(--multi-column-item-gap);width:100%;text-decoration:none;color:inherit;padding-top:var(--multi-column-item-padding-top);padding-left:var(--multi-column-item-padding-left);padding-right:var(--multi-column-item-padding-right);padding-bottom:var(--multi-column-item-padding-bottom)}.multi-column-item-inner.svelte-1mk0qj6:hover{opacity:0.8}.multi-column-item.svelte-1mk0qj6:not(:first-child){border-left-width:var(--multi-column-item-border-width);border-left-style:var(--multi-column-item-border-style);border-left-color:var(--multi-column-item-border-color)}");
20364
20057
  }
20365
20058
 
20366
20059
  // (28:2) <svelte:element {...attributes} this={element} class="multi-column-item-inner" on:click={handleClick} >
@@ -20398,7 +20091,7 @@ function create_dynamic_element(ctx) {
20398
20091
  set_attributes(svelte_element, svelte_element_data);
20399
20092
  }
20400
20093
 
20401
- toggle_class(svelte_element, "svelte-1blzs1a", true);
20094
+ toggle_class(svelte_element, "svelte-1mk0qj6", true);
20402
20095
  },
20403
20096
  m(target, anchor) {
20404
20097
  insert_hydration(target, svelte_element, anchor);
@@ -20438,7 +20131,7 @@ function create_dynamic_element(ctx) {
20438
20131
  set_attributes(svelte_element, svelte_element_data);
20439
20132
  }
20440
20133
 
20441
- toggle_class(svelte_element, "svelte-1blzs1a", true);
20134
+ toggle_class(svelte_element, "svelte-1mk0qj6", true);
20442
20135
  },
20443
20136
  i(local) {
20444
20137
  if (current) return;
@@ -20483,7 +20176,7 @@ function create_fragment$8(ctx) {
20483
20176
  this.h();
20484
20177
  },
20485
20178
  h() {
20486
- attr(li, "class", "multi-column-item svelte-1blzs1a");
20179
+ attr(li, "class", "multi-column-item svelte-1mk0qj6");
20487
20180
  attr(li, "data-layer-id", /*layerId*/ ctx[0]);
20488
20181
  attr(li, "style", /*style*/ ctx[1]);
20489
20182
  },
@@ -20598,7 +20291,7 @@ class MultiColumnItem extends SvelteComponent {
20598
20291
  /* src/components-flex/youtube/Youtube.svelte generated by Svelte v3.53.1 */
20599
20292
 
20600
20293
  function add_css$3(target) {
20601
- append_styles(target, "svelte-odfkc2", ".youtube.svelte-odfkc2{position:relative;aspect-ratio:16 / 9;width:100%;border-radius:3px}.youtube.svelte-odfkc2 iframe{position:absolute;width:100%;height:100%;object-fit:cover}");
20294
+ append_styles(target, "svelte-1bgnrue", ".youtube.svelte-1bgnrue{position:relative;aspect-ratio:16 / 9;width:100%;border-radius:3px}.youtube.svelte-1bgnrue iframe{position:absolute;width:100%;height:100%;object-fit:cover}");
20602
20295
  }
20603
20296
 
20604
20297
  function create_fragment$7(ctx) {
@@ -20626,7 +20319,7 @@ function create_fragment$7(ctx) {
20626
20319
  },
20627
20320
  h() {
20628
20321
  attr(div0, "class", "youtube-player");
20629
- attr(div1, "class", "youtube svelte-odfkc2");
20322
+ attr(div1, "class", "youtube svelte-1bgnrue");
20630
20323
  attr(div1, "style", /*style*/ ctx[2]);
20631
20324
  attr(div1, "data-layer-id", /*layerId*/ ctx[0]);
20632
20325
  },
@@ -20773,7 +20466,7 @@ class Youtube extends SvelteComponent {
20773
20466
  /* src/components-flex/count-down/CountDown.svelte generated by Svelte v3.53.1 */
20774
20467
 
20775
20468
  function add_css$2(target) {
20776
- append_styles(target, "svelte-1n395il", ".countdown.svelte-1n395il{display:flex;align-items:center;gap:4px}");
20469
+ append_styles(target, "svelte-1eft5i1", ".countdown.svelte-1eft5i1{display:flex;align-items:center;gap:4px}");
20777
20470
  }
20778
20471
 
20779
20472
  const get_default_slot_changes = dirty => ({
@@ -20810,7 +20503,7 @@ function create_fragment$6(ctx) {
20810
20503
  this.h();
20811
20504
  },
20812
20505
  h() {
20813
- attr(div, "class", "countdown svelte-1n395il");
20506
+ attr(div, "class", "countdown svelte-1eft5i1");
20814
20507
  attr(div, "data-layer-id", /*layerId*/ ctx[0]);
20815
20508
  },
20816
20509
  m(target, anchor) {
@@ -21120,7 +20813,7 @@ class CountDownValue extends SvelteComponent {
21120
20813
  /* src/components-flex/clip-copy/ClipCopy.svelte generated by Svelte v3.53.1 */
21121
20814
 
21122
20815
  function add_css$1(target) {
21123
- append_styles(target, "svelte-30zd8m", ".clipboard.svelte-30zd8m{position:relative;display:inline-flex}.clipboard-button.svelte-30zd8m{position:relative;display:inline-flex;align-items:center;white-space:nowrap;gap:12px;background:none;border:0;transition:0.12s;cursor:pointer}.clipboard-button.svelte-30zd8m:hover{opacity:0.8}.clipboard-button.svelte-30zd8m:active{opacity:0.6}.clipboard-tooltip.svelte-30zd8m{position:absolute;top:-8px;left:50%;display:block;transform:translate(-50%, -100%);padding:4px 10px;background-color:#333333;color:#ffffff;font-size:11px;font-weight:bold;border-radius:4px;transition:transform 0.2s ease-out;white-space:nowrap;pointer-events:none}.clipboard-tooltip.svelte-30zd8m:after{content:'';display:block;position:absolute;bottom:0;left:50%;width:8px;height:8px;background-color:#333333;border-radius:1px;transform:translate(-50%, 40%) rotate(45deg)}.clipboard-tooltip[aria-hidden=\"true\"].svelte-30zd8m{opacity:0;transform:translate(-50%, -80%)}");
20816
+ append_styles(target, "svelte-1z01gne", ".clipboard.svelte-1z01gne{position:relative;display:inline-flex}.clipboard-button.svelte-1z01gne{position:relative;display:inline-flex;align-items:center;white-space:nowrap;gap:12px;background:none;border:0;transition:0.12s;cursor:pointer}.clipboard-button.svelte-1z01gne:hover{opacity:0.8}.clipboard-button.svelte-1z01gne:active{opacity:0.6}.clipboard-tooltip.svelte-1z01gne{position:absolute;top:-8px;left:50%;display:block;transform:translate(-50%, -100%);padding:4px 10px;background-color:#333333;color:#ffffff;font-size:11px;font-weight:bold;border-radius:4px;transition:transform 0.2s ease-out;white-space:nowrap;pointer-events:none}.clipboard-tooltip.svelte-1z01gne:after{content:'';display:block;position:absolute;bottom:0;left:50%;width:8px;height:8px;background-color:#333333;border-radius:1px;transform:translate(-50%, 40%) rotate(45deg)}.clipboard-tooltip[aria-hidden=\"true\"].svelte-1z01gne{opacity:0;transform:translate(-50%, -80%)}");
21124
20817
  }
21125
20818
 
21126
20819
  function create_fragment$4(ctx) {
@@ -21162,10 +20855,10 @@ function create_fragment$4(ctx) {
21162
20855
  this.h();
21163
20856
  },
21164
20857
  h() {
21165
- attr(button, "class", "clipboard-button svelte-30zd8m");
20858
+ attr(button, "class", "clipboard-button svelte-1z01gne");
21166
20859
  attr(span, "aria-hidden", span_aria_hidden_value = !/*showTooltip*/ ctx[2]);
21167
- attr(span, "class", "clipboard-tooltip svelte-30zd8m");
21168
- attr(div, "class", "clipboard svelte-30zd8m");
20860
+ attr(span, "class", "clipboard-tooltip svelte-1z01gne");
20861
+ attr(div, "class", "clipboard svelte-1z01gne");
21169
20862
  attr(div, "data-layer-id", /*layerId*/ ctx[0]);
21170
20863
  },
21171
20864
  m(target, anchor) {
@@ -21290,6 +20983,312 @@ class ClipCopy extends SvelteComponent {
21290
20983
  }
21291
20984
  }
21292
20985
 
20986
+ /**
20987
+ * モーダル(ポップアップ)に関連するコードの管理
20988
+ *
20989
+ * アクションのShow, Close, ChangeStateの状態はここで管理する。
20990
+ */
20991
+ /**
20992
+ * アクションが表示 (show) された後にフックする関数
20993
+ *
20994
+ * @param fn - 呼び出されるフック関数
20995
+ *
20996
+ * @public
20997
+ */
20998
+ function onShow(fn) {
20999
+ let { onShowHandlers } = getInternalHandlers();
21000
+ if (!onShowHandlers) {
21001
+ onShowHandlers = [];
21002
+ }
21003
+ onShowHandlers.push(fn);
21004
+ setInternalHandlers({ onShowHandlers });
21005
+ }
21006
+ /**
21007
+ * アクションがクローズ (close) される前にフックする関数
21008
+ *
21009
+ * @param fn - 呼び出されるフック関数
21010
+ *
21011
+ * @public
21012
+ */
21013
+ function onClose(fn) {
21014
+ let { onCloseHandlers } = getInternalHandlers();
21015
+ if (!onCloseHandlers) {
21016
+ onCloseHandlers = [];
21017
+ }
21018
+ onCloseHandlers.push(fn);
21019
+ setInternalHandlers({ onCloseHandlers });
21020
+ }
21021
+ /**
21022
+ * アクションのステートが変更された (changeState) 後にフックする関数
21023
+ *
21024
+ * @param fn - 呼び出されるフック関数
21025
+ *
21026
+ * @public
21027
+ */
21028
+ function onChangeState(fn) {
21029
+ let { onChangeStateHandlers } = getInternalHandlers();
21030
+ if (!onChangeStateHandlers) {
21031
+ onChangeStateHandlers = [];
21032
+ }
21033
+ onChangeStateHandlers.push(fn);
21034
+ setInternalHandlers({ onChangeStateHandlers });
21035
+ }
21036
+ /**
21037
+ * アクションを表示する
21038
+ *
21039
+ * @public
21040
+ */
21041
+ function showAction() {
21042
+ const event = new CustomEvent(ACTION_SHOW_EVENT, { detail: { trigger: 'custom' } });
21043
+ window.dispatchEvent(event);
21044
+ }
21045
+ /**
21046
+ * アクションを閉じる
21047
+ *
21048
+ * @param trigger - 閉じた時のトリガー。デフォルト `'none'`
21049
+ *
21050
+ * @public
21051
+ */
21052
+ function closeAction(trigger = 'none') {
21053
+ const event = new CustomEvent(ACTION_CLOSE_EVENT, { detail: { trigger } });
21054
+ window.dispatchEvent(event);
21055
+ }
21056
+ /**
21057
+ * アクションに CSS を適用する
21058
+ *
21059
+ * @param css - 適用する CSS
21060
+ *
21061
+ * @returns 適用された style 要素を返す Promise
21062
+ *
21063
+ * @public
21064
+ */
21065
+ async function applyCss(css) {
21066
+ return new Promise((resolve, reject) => {
21067
+ const style = document.createElement('style');
21068
+ style.textContent = css;
21069
+ const shadowRoot = getActionRoot();
21070
+ if (!shadowRoot)
21071
+ return;
21072
+ shadowRoot.append(style);
21073
+ style.addEventListener('load', () => resolve(style));
21074
+ style.addEventListener('error', () => reject(style));
21075
+ });
21076
+ }
21077
+ async function fixFontFaceIssue(href, cssRules) {
21078
+ const css = new CSSStyleSheet();
21079
+ // @ts-ignore
21080
+ await css.replace(cssRules);
21081
+ const rules = [];
21082
+ const fixedRules = [];
21083
+ Array.from(css.cssRules).forEach(cssRule => {
21084
+ if (cssRule.type !== 5) {
21085
+ rules.push(cssRule.cssText);
21086
+ }
21087
+ // type 5 is @font-face
21088
+ const split = href.split('/');
21089
+ const stylePath = split.slice(0, split.length - 1).join('/');
21090
+ const cssText = cssRule.cssText;
21091
+ const newCssText = cssText.replace(
21092
+ // relative paths
21093
+ /url\s*\(\s*['"]?(?!((\/)|((?:https?:)?\/\/)|(?:data:?:)))([^'")]+)['"]?\s*\)/g, `url("${stylePath}/$4")`);
21094
+ if (cssText === newCssText)
21095
+ return;
21096
+ fixedRules.push(newCssText);
21097
+ });
21098
+ return [rules.join('\n'), fixedRules.join('\n')];
21099
+ }
21100
+ /**
21101
+ * アクションにグローバルなスタイルを読み込む
21102
+ *
21103
+ * @param href - style ファイルのリンク URL
21104
+ *
21105
+ * @public
21106
+ */
21107
+ async function loadStyle(href) {
21108
+ const sr = getActionRoot();
21109
+ if (!sr)
21110
+ return;
21111
+ let cssRules = '';
21112
+ try {
21113
+ const res = await fetch(href);
21114
+ cssRules = await res.text();
21115
+ }
21116
+ catch (_) {
21117
+ // pass
21118
+ }
21119
+ if (!cssRules)
21120
+ return;
21121
+ // Chromeのバグで、Shadow Rootの@font-faceを絶対パスで指定する必要がある
21122
+ // @see https://stackoverflow.com/a/63717709
21123
+ const [rules, fontFaceRules] = await fixFontFaceIssue(href, cssRules);
21124
+ const css = new CSSStyleSheet();
21125
+ // @ts-ignore
21126
+ await css.replace(rules);
21127
+ const fontFaceCss = new CSSStyleSheet();
21128
+ // @ts-ignore
21129
+ await fontFaceCss.replace(fontFaceRules);
21130
+ // @ts-ignore
21131
+ sr.adoptedStyleSheets = [...sr.adoptedStyleSheets, css, fontFaceCss];
21132
+ // Chromeのバグで、ページとShadow Rootの両方に、@font-faceを設定する必要がある
21133
+ // @see https://stackoverflow.com/a/63717709
21134
+ // @ts-ignore
21135
+ document.adoptedStyleSheets = [...document.adoptedStyleSheets, css, fontFaceCss];
21136
+ }
21137
+ // @internal
21138
+ function getCssVariables(data) {
21139
+ return Object.entries(data)
21140
+ .filter(([key, value]) => {
21141
+ return ['string', 'number'].includes(typeof value) && key.startsWith('--');
21142
+ })
21143
+ .map(([key, value]) => `${key}:${value}`)
21144
+ .join(';');
21145
+ }
21146
+ /**
21147
+ * アクションのルートの DOM 要素を取得する
21148
+ *
21149
+ * @returns アクションがルートの DOM 要素 を持つ場合は DOM 要素を返します。ない場合は `null` を返します
21150
+ *
21151
+ * @public
21152
+ */
21153
+ function getActionRoot() {
21154
+ const root = document.querySelector(`.${KARTE_ACTION_ROOT}[data-${KARTE_ACTION_RID}='${actionId}']`);
21155
+ if (!root?.shadowRoot) {
21156
+ return null;
21157
+ }
21158
+ return root.shadowRoot;
21159
+ }
21160
+ /** @internal */
21161
+ function ensureActionRoot(useShadow = true) {
21162
+ const systemConfig = getSystem();
21163
+ const rootAttrs = {
21164
+ class: `${KARTE_ACTION_ROOT} ${KARTE_MODAL_ROOT}`,
21165
+ [`data-${KARTE_ACTION_RID}`]: actionId,
21166
+ [`data-${KARTE_ACTION_SHORTEN_ID}`]: systemConfig.shortenId
21167
+ ? systemConfig.shortenId
21168
+ : ALL_ACTION_SHORTEN_ID,
21169
+ style: { display: 'block' },
21170
+ };
21171
+ let el = document.querySelector(`.${KARTE_MODAL_ROOT}[data-${KARTE_ACTION_RID}='${actionId}']`);
21172
+ if (el == null) {
21173
+ el = h('div', rootAttrs);
21174
+ document.body.appendChild(el);
21175
+ }
21176
+ const isShadow = !!document.body.attachShadow && useShadow;
21177
+ if (isShadow) {
21178
+ return el.shadowRoot ?? el.attachShadow({ mode: 'open' });
21179
+ }
21180
+ else {
21181
+ return el;
21182
+ }
21183
+ }
21184
+ /**
21185
+ * 非推奨
21186
+ *
21187
+ * @deprecated 非推奨
21188
+ *
21189
+ * @internal
21190
+ */
21191
+ const show = showAction;
21192
+ /**
21193
+ * 非推奨
21194
+ *
21195
+ * @deprecated 非推奨
21196
+ *
21197
+ * @internal
21198
+ */
21199
+ const close = closeAction;
21200
+ /**
21201
+ * 非推奨
21202
+ *
21203
+ * @deprecated 非推奨
21204
+ *
21205
+ * @internal
21206
+ */
21207
+ const ensureModalRoot = ensureActionRoot;
21208
+ /**
21209
+ * 非推奨
21210
+ *
21211
+ * @deprecated 非推奨
21212
+ *
21213
+ * @internal
21214
+ */
21215
+ function createApp(App, options = {
21216
+ send: () => { },
21217
+ publish: () => { },
21218
+ props: {},
21219
+ variables: {},
21220
+ localVariablesQuery: undefined,
21221
+ context: { api_key: '' },
21222
+ }) {
21223
+ let app = null;
21224
+ const close = () => {
21225
+ if (app) {
21226
+ {
21227
+ // @ts-ignore -- Svelte5 では $destroy は存在しない
21228
+ app.$destroy();
21229
+ }
21230
+ app = null;
21231
+ }
21232
+ };
21233
+ const appArgs = {
21234
+ target: null,
21235
+ props: {
21236
+ send: options.send,
21237
+ publish: options.publish,
21238
+ close,
21239
+ data: {
21240
+ ...options.props,
21241
+ ...options.variables,
21242
+ },
21243
+ },
21244
+ };
21245
+ const win = ensureModalRoot(true);
21246
+ appArgs.target = win;
21247
+ return {
21248
+ close,
21249
+ show: () => {
21250
+ if (app) {
21251
+ return;
21252
+ }
21253
+ options.send('message_open');
21254
+ app = // @ts-ignore -- Svelte5 では `App` はクラスではない
21255
+ new App(appArgs);
21256
+ },
21257
+ };
21258
+ }
21259
+ /**
21260
+ * 非推奨
21261
+ *
21262
+ * @deprecated 非推奨
21263
+ *
21264
+ * @internal
21265
+ */
21266
+ function createFog({ color = '#000', opacity = '50%', zIndex = 999, onclick, }) {
21267
+ const root = ensureModalRoot();
21268
+ if (root.querySelector('.__krt-fog')) {
21269
+ return { fog: null, close: () => { } };
21270
+ }
21271
+ const fog = document.createElement('div');
21272
+ fog.className = '__krt-fog';
21273
+ Object.assign(fog.style, {
21274
+ position: 'fixed',
21275
+ left: 0,
21276
+ top: 0,
21277
+ width: '100%',
21278
+ height: '100%',
21279
+ 'z-index': zIndex,
21280
+ 'background-color': color,
21281
+ opacity,
21282
+ });
21283
+ const close = () => {
21284
+ onclick();
21285
+ fog.remove();
21286
+ };
21287
+ fog.onclick = close;
21288
+ root.appendChild(fog);
21289
+ return { fog, close };
21290
+ }
21291
+
21293
21292
  /* src/components-flex/state/Header.svelte generated by Svelte v3.53.1 */
21294
21293
 
21295
21294
  function create_if_block$2(ctx) {
@@ -21488,7 +21487,7 @@ class State extends SvelteComponent {
21488
21487
  /* src/components-flex/state/StateItem.svelte generated by Svelte v3.53.1 */
21489
21488
 
21490
21489
  function add_css(target) {
21491
- append_styles(target, "svelte-2qb6dm", ".state-item.svelte-2qb6dm{position:absolute;display:none}");
21490
+ append_styles(target, "svelte-1amihue", ".state-item.svelte-1amihue{position:absolute;display:none}");
21492
21491
  }
21493
21492
 
21494
21493
  // (22:0) {#if $state === path}
@@ -21515,7 +21514,7 @@ function create_if_block$1(ctx) {
21515
21514
  },
21516
21515
  h() {
21517
21516
  attr(div, "data-state-path", /*path*/ ctx[0]);
21518
- attr(div, "class", "state-item svelte-2qb6dm");
21517
+ attr(div, "class", "state-item svelte-1amihue");
21519
21518
  },
21520
21519
  m(target, anchor) {
21521
21520
  insert_hydration(target, div, anchor);